[
  {
    "path": ".github/workflows/main.yml",
    "content": "name: Release Creation\n\non:\n  release:\n    types: [published]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4.1.6\n\n      # Run minify\n      # - uses: actions/setup-node@v4.0.2\n      #   with:\n      #     node-version: '20'\n      # - run: npm install\n      # - run: npm run minify\n\n      # Update the GitHub release with the manifest and module archive files.\n      - name: Update Release with Files\n        id: create_version_release\n        uses: ncipollo/release-action@v1\n        with:\n          allowUpdates: true\n          name: ${{ github.event.release.name }}\n          draft: ${{ github.event.release.unpublished }}\n          prerelease: ${{ github.event.release.prerelease }}\n          token: ${{ secrets.GITHUB_TOKEN }}\n          artifacts: \"./WotC material/all_WotC_*.js\"\n          tag: ${{ github.event.release.tag_name }}\n          body: ${{ github.event.release.body }}\n"
  },
  {
    "path": ".gitignore",
    "content": "node_modules/\r\ndebug.log"
  },
  {
    "path": "Homebrew/reddit_20180203_Tome-of-Monstrous-Races.js",
    "content": "/*\t-WHAT IS THIS?-\r\n\tThis file adds optional material to \"MPMB's Character Record Sheet\" found at https://flapkan.com/mpmb/charsheets\r\n\tImport this file using the \"Add Extra Materials\" bookmark.\r\n\r\n\t-KEEP IN MIND-\r\n\tIt is recommended to enter the code in a fresh sheet before adding any other information (i.e. before making your character with it).\r\n*/\r\n\r\n/*\t-INFORMATION-\r\n\tSubject:\tRace: Gnoll\r\n\tEffect:\t\tThis script adds the Gnoll race from the Tome of Monstrous Races by /u/revlid on /r/UnearthedArcana (https://redd.it/7uzdvb)\r\n\t\t\t\tThis homebrew was created by revlid and is available here: http://homebrewery.naturalcrit.com/share/S1x4kCFv-\r\n\tCode by:\t/u/sea__ (edits by /u/safety-orange)\r\n\tDate:\t\t2018-02-12 (sheet v12.999)\r\n*/\r\n\r\nvar iFileName = \"Tome of Monstrous Races: Gnoll [revlid's work, transcribed by /u/sea__].js\";\r\nRequiredSheetVersion(12.999);\r\n\r\nSourceList[\"ToMR\"] = {\r\n\tname : \"/u/revlid's Tome of Monstrous Races\",\r\n\tabbreviation : \"ToMR\",\r\n\tgroup : \"Reddit/r/UnearthedArcana\",\r\n\turl : \"http://homebrewery.naturalcrit.com/share/S1x4kCFv-\",\r\n\tdate : \"2018/02/03\"\r\n};\r\n\r\nRaceList[\"gnoll-cult\"] = {\r\n\tregExpSearch : /^(?=.*gnoll)(?=.*cult).*$/i,\r\n\tname : \"Cult Gnoll\",\r\n\tsortname : \"Gnoll, Cult\",\r\n\tsource : [\"ToMR\", 8],\r\n\tplural : \"Gnolls\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\tlanguageProfs : [\"Common\", \"Abyssal\"],\r\n\tweapons: [\"gnoll bite\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" rarely live longer than 30 years, but mature to adulthood in their first few years, and show no signs of age until a sudden collapse in their last year of life.\",\r\n\theight : \" normally stand between 7 and 8 feet tall, even in their characteristic hunched posture.\",\r\n\tweight : \" weigh around 300 pounds.\",\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tskills : [\"Intimidation\"],\r\n\timprovements : \"Cult Gnoll: +1 Strength, +2 Constitution;\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"carrion eater\" : {\r\n\t\t\tname : \"Carrion Eater\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\ttooltip : \"\"\r\n\t\t},\r\n\t\t\"rampage\" : {\r\n\t\t\tname : \"Rampage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [\"bonus action\",\"\"],\r\n\t\t\ttooltip : \"\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Cult Gnoll (+1 Strength, +2 Constitution)\\nBite: I can bite for 1d6 piercing damage instead of using unarmed strikes.\\nCarrion Eater: Once per long rest, I can feed on a corpse during a short rest. At the end of the rest, I regain HP equal to the consumed creature's HD + my Constitution modifier.\\nRampage: As a bonus action when I reduce a creature to 0 HP with a melee attack on my turn, I can move up to half my speed and make a bite attack.\"\r\n};\r\n\r\nRaceList[\"gnoll-spotted\"] = {\r\n\tregExpSearch : /^(?=.*gnoll)(?=.*spotted).*$/i,\r\n\tname : \"Spotted Gnoll\",\r\n\tsortname : \"Gnoll, Spotted\",\r\n\tsource : [\"ToMR\", 8],\r\n\tplural : \"Gnolls\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\tlanguageProfs : [\"Common\", \"Abyssal\", 1],\r\n\tweapons: [\"gnoll bite\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" rarely live longer than 30 years, but mature to adulthood in their first few years, and show no signs of age until a sudden collapse in their last year of life.\",\r\n\theight : \" normally stand between 7 and 8 feet tall, even in their characteristic hunched posture.\",\r\n\tweight : \" weigh around 300 pounds.\",\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tskills : [\"Intimidation\", \"Deception\"],\r\n\timprovements : \"Spotted Gnoll: +2 Constitution, +1 Charisma;\",\r\n\tscores : [0, 0, 2, 0, 0, 1],\r\n\tspellcastingAbility : 6,\r\n\tfeatures : {\r\n\t\t\"carrion eater\" : {\r\n\t\t\tname : \"Carrion Eater\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\ttooltip : \"\"\r\n\t\t},\r\n\t\t\"butchers lure\" : {\r\n\t\t\tname : \"Butcher's Lure\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [\"action\",\"\"],\r\n\t\t\ttooltip : \", and can only be used to create illusory sounds\",\r\n\t\t\tspellcastingBonus : {\r\n\t\t\t\tname : \"Butcher's Lure\",\r\n\t\t\t\tspells : [\"minor illusion\"],\r\n\t\t\t\tselection : [\"minor illusion\"]\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\ttrait : \"Spotted Gnoll (+2 Constitution, +1 Charisma)\\nBite: I can bite for 1d6 piercing damage instead of using unarmed strikes.\\nCarrion Eater: Once per long rest, I can feed on a corpse during a short rest. At the end of the rest, I regain HP equal to the consumed creature's HD + my Constitution modifier.\\nButcher's Lure: I know the Minor Illusion cantrip and can cast it without components. I can only use it to create illusory sounds, but others have disadvantage on checks to determine they are illusions. Charisma is my spellcasting ability for this.\"\r\n};\r\n\r\nRaceList[\"gnoll-tearer\"] = {\r\n\tregExpSearch : /^(?=.*gnoll)(?=.*tearer).*$/i,\r\n\tname : \"Tearer Gnoll\",\r\n\tsortname : \"Gnoll, Tearer\",\r\n\tsource : [\"ToMR\", 8],\r\n\tplural : \"Gnolls\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 35, enc : 25 } },\r\n\tlanguageProfs : [\"Common\", \"Abyssal\"],\r\n\tweapons: [\"gnoll tearer bite\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" rarely live longer than 30 years, but mature to adulthood in their first few years, and show no signs of age until a sudden collapse in their last year of life.\",\r\n\theight : \" normally stand between 7 and 8 feet tall, even in their characteristic hunched posture.\",\r\n\tweight : \" weigh around 300 pounds.\",\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tskills : [\"Intimidation\"],\r\n\timprovements : \"Tearer Gnoll: +1 Dexterity, +2 Constitution;\",\r\n\tscores : [0, 1, 2, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"carrion eater\" : {\r\n\t\t\tname : \"Carrion Eater\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\ttooltip : \"\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Tearer Gnoll (+1 Dexterity, +2 Constitution)\\nBite: I can bite for 1d6 piercing damage instead of using unarmed strikes. This bite attack is treated as a finesse weapon and as a light weapon for the purpose of two-weapon fighting.\\nCarrion Eater: Once per long rest, I can feed on a corpse during a short rest. At the end of the rest, I regain HP equal to the consumed creature's HD + my Constitution modifier.\"\r\n};\r\n\r\nWeaponsList[\"gnoll bite\"] = {\r\n\tregExpSearch : /^(?=.*gnoll)(?=.*bite).*$/i,\r\n\tname : \"Bite (Gnoll)\",\r\n\tsource : [\"ToMR\", 9],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Natural\",\r\n\tdamage : [1, 6, \"piercing\"],\r\n\trange : \"Melee\",\r\n\tdescription : \"\",\r\n\tabilitytodamage : true\r\n};\r\n\r\nWeaponsList[\"gnoll tearer bite\"] = {\r\n\tregExpSearch : /^(?=.*gnoll)(?=.*bite)(?=.*tearer).*$/i,\r\n\tname : \"Bite (Gnoll, Tearer)\",\r\n\tsource : [\"ToMR\", 9],\r\n\tlist : \"melee\",\r\n\tability : 2,\r\n\ttype : \"Natural\",\r\n\tdamage : [1, 6, \"piercing\"],\r\n\trange : \"Melee\",\r\n\tdescription : \"Finesse, Light\",\r\n\tabilitytodamage : true\r\n};"
  },
  {
    "path": "README.md",
    "content": "# Imports for MPMB's Character Sheet\nThis git repository holds different fan-created materials that can be used with **MorePurpleMoreBetter's D&D 5e Character Record Sheet**. The repository for the sheet is [found on MPMB's GitHub](https://github.com/morepurplemorebetter/MPMBs-Character-Record-Sheet).\n\nYou can get the sheet for free on [MPMB's website](https://www.flapkan.com/#download).\n\n&nbsp;\n\n## Join the discussion\nQuestions or remarks are best made on the MPMB [Discord server](https://discord.gg/P6drkuk9bt) or the [subreddit](https://www.reddit.com/r/mpmb/).\n\n&nbsp;\n\n## How to use\nTo get all the non-duplicate WotC content, all you need is the **all_WotC** files from a [release](../../releases). Be aware that the files above might be for a version of MPMB's that is still under development.\n\n1. Download the latest version of the PDF from [MPMB's website](https://www.flapkan.com/#download).\n2. [Click here](https://github.com/safety-orange/Imports-for-MPMB-s-Character-Sheet/releases/latest/download/all_WotC_pub+UA.min.js) to download the latest all_WotC_pub+UA.min.js release, and save it somewhere on your machine.\n3. Open the PDF and click on the bookmark **Functions** >> **Add Extra Materials**.\n4. From the menu that appears, select the option **Import a file with additional material**.\n5. In the dialog that opens, click **Add file**, and open the file you saved in step 1.\n6. Click **Apply changes** in the Import Files dialog and the sheet will process the file you added. You will get a pop-up message if it was successful or not.\n\nMPMB has a more flashy explanation, along with a video, on how to do this in [this how-to guide on his website](https://www.flapkan.com/how-to/add-more-content).\n\n&nbsp;\n\n## Different Versions\nThe code above is under development, [see releases](../../releases) for the latest stable build. It is updated along with the development of MPMB's Character Record Sheet and thus might be ahead of the latest stable version of MPMB's.\n\nIn [releases](../../releases) you can find the files for the latest version of MPMB's Character Record Sheet as well as for older versions (v13.1.13 or later).\n\nIf you are looking for versions before v13.1.13, see [tags](../../releases).\n\nBe aware that this content is for the 5th edition of Dungeon & Dragons (2014).\n\n&nbsp;\n\n## Concatenation and Minification\n\n### Setup\nEnsure you have `node` and `npm` installed, then:\n```sh\nnpm install\n```\n\n### Use\nTo minify run one of these three commands:\n```sh\n# For all (stable and beta)\nnpm run minify\n# Just stable\nnpm run minifyStable\n# Just beta\nnpm run minifyBeta\n```"
  },
  {
    "path": "WotC 2024/not-reprinted_20140819_PHB.js",
    "content": "var iFileName = \"not-reprinted_20140819_PHB.js\";\nRequiredSheetVersion(\"24.0.5-beta\");\n// This file adds options from the 2014 Player's Handbook to MPMB's Character Record Sheet that have not been replaced with new options in the 2024 Player's Handbook\n\n// Define the source\nSourceList[\"P\"] = {\n\tname: \"2014 Player's Handbook\",\n\tabbreviation: \"PHB'14\",\n\tabbreviationSpellsheet: \"P\",\n\tgroup: \"Legacy Sources\",\n\turl: \"https://dnd.wizards.com/products/rpg_playershandbook\",\n\tdate: \"2014/08/19\",\n\tdefaultExcluded: true,\n};\n\n// Races\nRaceList[\"half-elf\"] = {\n\tregExpSearch: /^(?=.*half)(?=.*(elf|elv|drow|silvanesti|qualinesti|grugach|kagonesti)).*$/i,\n\tname: \"Half-elf\",\n\tsource: [[\"SRD\", 6], [\"P\", 39]],\n\tplural: \"Half-elves\",\n\tsize: 3,\n\tspeed: {\n\t\twalk: { spd: 30, enc: 20 },\n\t},\n\tlanguageProfs: [\"Common\", \"Elvish\", 1],\n\tvision: [[\"Darkvision\", 60]],\n\tsavetxt: {\n\t\ttext: [\"Magic can't put me to sleep\"],\n\t\tadv_vs: [\"charmed\"],\n\t},\n\tskillstxt: \"Choose any two skills\",\n\tage: \" reach adulthood around age 20 and often live over 180 years\",\n\theight: \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight: \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric: \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric: \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscorestxt: \"+2 Charisma and +1 to two other ability scores of my choice\",\n\ttrait: \"Half-Elf\"+\n\t\"\\n##\\u25C6 Fey Ancestry##. I have Advantage on saving throws against being charmed, and magic can't put me to sleep.\"+\n\t\"\\n##\\u25C6 Skill Versatility##. I gain proficiency in two skills of my choice.\",\n};\nRaceList[\"half-orc\"] = {\n\tregExpSearch: /^(?=.*half)(?=.*\\bor(c|k)).*$/i,\n\tname: \"Half-orc\",\n\tsource: [[\"SRD\", 7], [\"P\", 41]],\n\tplural: \"Half-orcs\",\n\tsize: 3,\n\tspeed: {\n\t\twalk: { spd: 30, enc: 20 },\n\t},\n\tlanguageProfs: [\"Common\", \"Orc\"],\n\tvision: [[\"Darkvision\", 60]],\n\tskills: [\"Intimidation\"],\n\tage: \" reach adulthood around age 14 and rarely live longer than 75 years\",\n\theight: \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\n\tweight: \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\n\theightMetric: \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\n\tweightMetric: \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\n\tfeatures: {\n\t\t\"relentless endurance\": {\n\t\t\tname: \"Relentless Endurance\",\n\t\t\tminlevel: 1,\n\t\t\tusages: 1,\n\t\t\trecovery: \"long rest\",\n\t\t},\n\t\t\"savage attacks\": {\n\t\t\tname: \"Savage Attacks\",\n\t\t\tminlevel: 1,\n\t\t\tcalcChanges: {\n\t\t\t\tatkAdd: [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/d\\d+/).test(fields.Damage_Die)) {\n\t\t\t\t\t\t\tif (v.extraCritM) {\n\t\t\t\t\t\t\t\tv.extraCritM += 1;\n\t\t\t\t\t\t\t\tvar extraCritRegex = /\\d+(d\\d+ extra on a crit(ical)?( hit)? in melee)/i;\n\t\t\t\t\t\t\t\tfields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tv.extraCritM = 1;\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\\d+).*/, '$1') + ' extra on a crit in melee';\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"My melee weapon attacks roll 1 additional dice on a critical hit.\",\n\t\t\t\t\t900,\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t},\n\ttrait: \"Half-Orc\"+\n\t\"\\n##\\u25C6 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.\"+\n\t\"\\n##\\u25C6 Savage 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.\",\n};\n\n// Eldritch Invocations\nAddWarlockInvocation(\"Beast Speech\", {\n\tname: \"Beast Speech\",\n\tsource: [[\"SRD\", 48], [\"P\", 110]],\n\tdescription: desc(\"I can cast Speak with Animals without using a spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Beast Speech\",\n\t\tspells: [\"speak with animals\"],\n\t\tselection: [\"speak with animals\"],\n\t\tfirstCol: \"atwill\",\n\t}],\n});\nAddWarlockInvocation(\"Beguiling Influence\", {\n\tname: \"Beguiling Influence\",\n\tsource: [[\"SRD\", 48], [\"P\", 110]],\n\tdescription: desc(\"I gain proficiencies with the Deception and Persuasion skills.\"),\n\tskills: [\"Deception\", \"Persuasion\"],\n});\nAddWarlockInvocation(\"Bewitching Whispers (req: lvl 7+)\", {\n\tname: \"Bewitching Whispers\",\n\tsource: [[\"SRD\", 48], [\"P\", 110]],\n\tminlevel: 7,\n\tsubmenu: \"[Warlock level  7+]\",\n\tdescription: desc(\"Once per Long Rest, I can cast Compulsion using a Pact Magic spell slot.\"),\n\tspellcastingBonus : [{\n\t\tname: \"Bewitching Whispers\",\n\t\tspells: [\"compulsion\"],\n\t\tselection: [\"compulsion\"],\n\t\tfirstCol: \"oncelr\",\n\t}],\n});\nAddWarlockInvocation(\"Book of Ancient Secrets (req: Pact of the Tome)\", {\n\tname: \"Book of Ancient Secrets\",\n\tdescription: desc(\"My Book of Shadows is inscribed with two 1st-level Ritual spells of my choice. When I come across other Ritual spell, I can inscribe them as well. I can cast these inscribed spells as Rituals, they are not automatically prepared. (Select only these inscribed spells in the 'Spells' column.)\"),\n\tsource: [[\"SRD\", 48], [\"P\", 110]],\n\tsubmenu: \"[improves Pact of the Tome]\",\n\tprereqeval: function(v) { return v.choiceActive.indexOf('pact of the tome') !== -1; },\n\teval: function() {\n\t\tvar oSpells = CurrentSpells['warlock-book of shadows'];\n\t\tif (!oSpells) return;\n\t\t// Change into a \"book\" caster that has access to ritual spells from any level\n\t\toSpells.known.spells = \"book\";\n\t\toSpells.typeSp = \"book\";\n\t\toSpells.typeList = 2;\n\t\toSpells.list.level = [0, 9];\n\t\t// Make it so that all cantrips are always displayed\n\t\toSpells.known.cantripsPrepare = true;\n\t\toSpells.preparedCantrips = true;\n\t\t// Add it so that all 1st-level ritual spells are always displayed\n\t\toSpells.extra = CreateSpellList({ritual: true, level : [1, 1]});\n\t\toSpells.extraSpecial = true;\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\n\t\t// cleanup old versions of this invocation\n\t\tif (CurrentSpells['warlock-book of ancient secrets'] || CurrentSpells['book of ancient secrets']) {\n\t\t\tvar oSpellsOld = CurrentSpells['book of ancient secrets'] ? CurrentSpells['book of ancient secrets'] : CurrentSpells['warlock-book of ancient secrets'];\n\t\t\tif (oSpellsOld.selectSp) oSpells.selectSp = oSpellsOld.selectSp;\n\t\t\tif (oSpellsOld.offsetBo) oSpells.offsetBo = oSpellsOld.offsetBo;\n\t\t\tif (oSpellsOld.selectBo) oSpells.selectBo = oSpellsOld.selectBo;\n\t\t\tdelete CurrentSpells['warlock-book of ancient secrets'];\n\t\t\tdelete CurrentSpells['book of ancient secrets'];\n\t\t};\n\t},\n\tremoveeval: function() {\n\t\tif (CurrentSpells['book of ancient secrets']) delete CurrentSpells['book of ancient secrets'];\n\t\tvar oSpells = CurrentSpells['warlock-book of shadows'];\n\t\tif (!oSpells) return;\n\t\toSpells.known.spells = \"list\";\n\t\toSpells.typeSp = \"list\";\n\t\toSpells.list.level = [0, 1];\n\t\tdelete oSpells.known.cantripsPrepare;\n\t\tdelete oSpells.preparedCantrips;\n\t\tdelete oSpells.extra;\n\t\tdelete oSpells.extraSpecial;\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\n\t},\n\tcalcChanges: {\n\t\tspellAdd: [\n\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\tif (spName !== \"warlock-book of shadows\") return;\n\t\t\t\tvar oSpells = CurrentSpells[spName];\n\t\t\t\tif (oSpells.selectSp.indexOf(spellKey)) {\n\t\t\t\t\tspellObj.firstCol = SpellRitualTag;\n\t\t\t\t\tif (!(/.*(\\d+ ?h\\b|special|see b).*/i).test(spellObj.time)) {\n\t\t\t\t\t\tvar numMinutes = Number(spellObj.time.replace(/(\\d+) ?min.*/, \"$1\"));\n\t\t\t\t\t\tif (isNaN(numMinutes)) numMinutes = 0;\n\t\t\t\t\t\tspellObj.time = (numMinutes + 10) + \" min\";\n\t\t\t\t\t};\n\t\t\t\t\treturn true;\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"By the Book of Ancient Secrets invocation, I can cast any Ritual spells I've added to my Book of Shadows, but only as a Ritual. Ritual spell always have a casting time of 10 minutes or more. The sheet assumes any Ritual spells above 1st-level are manual additions.\",\n\t\t],\n\t},\n});\nAddWarlockInvocation(\"Chains of Carceri (req: lvl 15+, Pact of the Chain)\", {\n\tname : \"Chains of Carceri\",\n\tsource : [[\"SRD\", 49], [\"P\", 110]],\n\tminlevel: 15,\n\tsubmenu: [\"[Warlock level 15+]\", \"[improves Pact of the Chain]\"],\n\tprereqeval: function(v) { return v.choiceActive.indexOf('pact of the chain') !== -1; },\n\tdescription: desc(\"I can cast Hold Monster without expending a spell slot or material components, but only on a Celestial, Fiend, or Elemental. I can only target a specific individual once per Long Rest.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Chains of Carceri\",\n\t\tspells: [\"hold monster\"],\n\t\tselection: [\"hold monster\"],\n\t\tfirstCol: \"atwill\",\n\t}],\n\tspellChanges: {\n\t\t\"hold monster\": {\n\t\t\tcomponents: \"V,S\",\n\t\t\tcompMaterial: \"\",\n\t\t\tdescription: \"1 Celestial, Fiend, or Elemental, save or paralyzed; extra save at end of each turn\",\n\t\t\tchanges: \"With the Chains of Carceri invocation I can cast Hold Monster without a material component, but only on a Celestial, Fiend, or Elemental.\",\n\t\t},\n\t},\n});\nAddWarlockInvocation(\"Dreadful Word (req: lvl 7+)\", {\n\tname: \"Dreadful Word\",\n\tsource: [[\"SRD\", 49], [\"P\", 110]],\n\tminlevel: 7,\n\tsubmenu: \"[Warlock level  7+]\",\n\tdescription: desc(\"Once per Long Rest, I can cast Confusion using a Pact Magic spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Dreadful Word\",\n\t\tspells: [\"confusion\"],\n\t\tselection: [\"confusion\"],\n\t\tfirstCol: \"oncelr\",\n\t}],\n});\nAddWarlockInvocation(\"Eldritch Sight\", {\n\tname: \"Eldritch Sight\",\n\tsource: [[\"SRD\", 49], [\"P\", 110]],\n\tdescription: desc(\"I can cast Detect Magic without expending a spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Eldritch Sight\",\n\t\tspells: [\"detect magic\"],\n\t\tselection: [\"detect magic\"],\n\t\tfirstCol: \"atwill\",\n\t}],\n});\nAddWarlockInvocation(\"Eyes of the Rune Keeper\", {\n\tname: \"Eyes of the Rune Keeper\",\n\tsource: [[\"SRD\", 49], [\"P\", 111]],\n\tdescription: \" [I can read all writing]\",\n});\nAddWarlockInvocation(\"Minions of Chaos\", {\n\tname: \"Minions of Chaos\",\n\tsource: [[\"SRD\", 49], [\"P\", 111]],\n\tminlevel: 9,\n\tsubmenu: \"[Warlock level  9+]\",\n\tdescription: desc(\"Once per Long Rest, I can cast Conjure Elemental using a Pact Magic spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Minions of Chaos\",\n\t\tspells: [\"conjure elemental\"],\n\t\tselection: [\"conjure elemental\"],\n\t\tfirstCol: \"oncelr\",\n\t}],\n});\nAddWarlockInvocation(\"Mire the Mind\", {\n\tname: \"Mire the Mind\",\n\tsource: [[\"SRD\", 49], [\"P\", 111]],\n\tminlevel: 5,\n\tsubmenu: \"[Warlock level  5+]\",\n\tdescription: desc(\"Once per Long Rest, I can cast Slow using a Pact Magic spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Mire the Mind\",\n\t\tspells: [\"slow\"],\n\t\tselection: [\"slow\"],\n\t\tfirstCol: \"oncelr\",\n\t}],\n});\nAddWarlockInvocation(\"Sculptor of Flesh\", {\n\tname: \"Sculptor of Flesh\",\n\tsource: [[\"SRD\", 50], [\"P\", 111]],\n\tminlevel: 7,\n\tsubmenu: \"[Warlock level  7+]\",\n\tdescription: desc(\"Once per Long Rest, I can cast Polymorph using a Pact Magic spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Sculptor of Flesh\",\n\t\tspells: [\"polymorph\"],\n\t\tselection: [\"polymorph\"],\n\t\tfirstCol: \"oncelr\",\n\t}],\n});\nAddWarlockInvocation(\"Sign of Ill Omen\", {\n\tname: \"Sign of Ill Omen\",\n\tsource: [[\"SRD\", 50], [\"P\", 111]],\n\tminlevel: 5,\n\tsubmenu: \"[Warlock level  5+]\",\n\tdescription: desc(\"Once per Long Rest, I can cast Bestow Curse using a Pact Magic spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Sign of Ill Omen\",\n\t\tspells: [\"bestow curse\"],\n\t\tselection: [\"bestow curse\"],\n\t\tfirstCol: \"oncelr\",\n\t}],\n});\nAddWarlockInvocation(\"Thief of Five Fates\", {\n\tname: \"Thief of Five Fates\",\n\tsource: [[\"SRD\", 50], [\"P\", 111]],\n\tdescription: desc(\"Once per Long Rest, I can cast Bane using a Pact Magic spell slot.\"),\n\tspellcastingBonus: [{\n\t\tname: \"Thief of Five Fates\",\n\t\tspells: [\"bane\"],\n\t\tselection: [\"bane\"],\n\t\tfirstCol: \"oncelr\",\n\t}],\n});\nAddWarlockInvocation(\"Voice of the Chain Master\", {\n\tname : \"Voice of the Chain Master\",\n\tsource: [[\"SRD\", 50], [\"P\", 111]],\n\tsubmenu: \"[improves Pact of the Chain]\",\n\tprereqeval: function(v) { return v.choiceActive.indexOf('pact of the chain') !== -1; },\n\tdescription: desc(\"While on the same plane as my familiar, I can communicate telepathically with it and I can perceive through its senses. While doing the latter, I can speak through it with my voice.\"),\n});\n\n// Subclasses\nAddSubClass(\"wizard\", \"necromancy\", {\n\tregExpSearch: /necromancy|necromancer|necromantic/i,\n\tsubname: \"School of Necromancy\",\n\tsubnameShort: \"Necromancy\",\n\tfullname: \"Necromancer\",\n\tsource: [[\"P\", 118]],\n\tfeatures: {\n\t\t\"subclassfeature3\" : {\n\t\t\tname: \"Necromancy Savant\",\n\t\t\tsource: [[\"P\", 118]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy necromancy spells into my spellbook\"),\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Grim Harvest\",\n\t\t\tsource: [[\"P\", 118]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"Once per turn, when I kill something with a 1st-level or higher spell, I regain hit points\",\n\t\t\t\t\"The number of hit points regained is 2\\xD7 the spell's level (or 3\\xD7 with necromancy spells)\",\n\t\t\t\t\"This doesn't occur for constructs/undead\",\n\t\t\t]),\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Undead Thralls\",\n\t\t\tsource: [[\"P\", 119]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc([\n\t\t\t\t\"I add Animate Dead to my spellbook and can have an additional target when casting it\",\n\t\t\t\t\"Undead created by my necromancy spells have the following benefits:\",\n\t\t\t\t\"They add my proficiency bonus to damage and my wizard level to their HP maximums\",\n\t\t\t]),\n\t\t\tspellcastingBonus: [{\n\t\t\t\tname: \"Undead Thralls\",\n\t\t\t\tspells: [\"animate dead\"],\n\t\t\t\tselection: [\"animate dead\"],\n\t\t\t}],\n\t\t\tspellChanges: {\n\t\t\t\t\"animate dead\": {\n\t\t\t\t\tdescription: \"Turn corpses into 2+2/SL Skeletons or Zombies; control for 24h; Bns command within 60 ft\",\n\t\t\t\t\tchanges: \"My Undead Thralls class feature allows me to animate one more corpse than normal with Animate Dead.\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature10\": {\n\t\t\tname: \"Inured to Undead\",\n\t\t\tsource: [[\"P\", 119]],\n\t\t\tminlevel: 10,\n\t\t\tdescription: desc(\"I have resistance to necrotic damage and my hit point maximum can't be reduced\"),\n\t\t\tdmgres: [\"Necrotic\"],\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Command Undead\",\n\t\t\tsource: [[\"P\", 11]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc([\n\t\t\t\t\"As an action, an undead within 60 ft that I can see must make a Charisma save\",\n\t\t\t\t\"If its Int is > 7, it has adv. on the save; If its Int is > 11, it repeats the save every hour\",\n\t\t\t\t\"If failed, it becomes friendly to me and obeys my commands until I use this on another\",\n\t\t\t\t\"On success, it becomes permanently immune to my further attempts\",\n\t\t\t]),\n\t\t\taction: [[\"action\", \"\"]],\n\t\t},\n\t},\n});\nCompanionList[\"undead_thrall\"] = {\n\tname: \"Undead Thralls\",\n\tnameOrigin: \"School of Necromancy 6\",\n\tnameMenu : \"Undead Thrall (School of Necromancy feature)\",\n\tsource: [[\"P\", 119]],\n\tincludeCheck: function(sCrea, objCrea, iCreaCR, bIsAL) {\n\t\treturn /undead/i.test(objCrea.type);\n\t},\n\tattributesChange: function(sCrea, objCrea) {\n\t\tobjCrea.hp += classes.known.wizard ? classes.known.wizard.level : classes.totallevel;\n\t\tif (!objCrea.attacks) return;\n\t\tobjCrea.attacks = objCrea.attacks.map(function(oAtk) {\n\t\t\tif (oAtk.abilitytodamage !== false && !oAtk.dc) {\n\t\t\t\tif (!oAtk.modifiers) {\n\t\t\t\t\toAtk.modifiers = [\"\", \"oProf\"];\n\t\t\t\t} else {\n\t\t\t\t\toAtk.modifiers[1] += \"+oProf\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn oAtk;\n\t\t});\n\t},\n\tcalcChanges: {\n\t\thp: function (totalHD, HDobj, prefix) {\n\t\t\tif (classes.known.wizard) {\n\t\t\t\treturn [classes.known.wizard.level, \"Undead Thralls (wizard level)\"];\n\t\t\t} else {\n\t\t\t\treturn [classes.totallevel, \"Undead Thralls (character level)\"];\n\t\t\t}\n\t\t},\n\t},\n\tnotes: [{\n\t\tname: \"Undead I create with a necromancy spell\",\n\t\tdescription: \"add my wizard level to their hit point maximum and add my proficiency bonus to their weapon damage rolls.\",\n\t\tjoinString: \" \",\n\t}],\n\teval: function(prefix, lvl) {\n\t\t// Set HP to use average value, so that the level bonus is automatically included\n\t\tvar sHPfld = prefix + \"Comp.Use.HP.Max\";\n\t\tvar aHPsets = How(sHPfld).split(\",\");\n\t\taHPsets[3] = \"average\";\n\t\tAddTooltip(sHPfld, undefined, aHPsets.toString());\n\t},\n};\n\n// Background Features\nBackgroundFeatureList[\"shelter of the faithful\"] = { // from Acolyte\n\tdescription: \"I command the respect of those who share my faith. I can perform the religious ceremonies of my faith. My companions and I can expect free healing and care at an establishment of my faith, though I must provide any material components needed for spells. Those who share my religion will support me at a modest lifestyle.\",\n\tsource: [[\"SRD\", 61], [\"P\", 127]],\n};\nBackgroundFeatureList[\"false identity\"] = { // from Charlatan\n\tdescription: \"I have created a second identity that includes documentation, established acquaintances, and disguises that allow me to assume that persona. Additionally, I can forge documents, including official papers and personal letters, as long as I have seen an example of the kind of document or the handwriting I am trying to copy.\",\n\tsource: [[\"P\", 128]],\n};\nBackgroundFeatureList[\"criminal contact\"] = { // from Criminal\n\tdescription: \"I have a reliable and trustworthy contact who acts as my liaison to a network of other criminals. I know how to get messages to and from my contact, even over great distances; specifically, I know the local messengers, corrupt caravan masters, and seedy sailors who can deliver my messages.\",\n\tsource: [[\"P\", 129]],\n};\nBackgroundFeatureList[\"by popular demand\"] = { // from Entertainer\n\tdescription: \"I can always find a place to perform (inn/tavern/circus/etc.), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\n\tsource: [[\"P\", 130]],\n};\nBackgroundFeatureList[\"are you entertained?\"] = { // from Gladiator\n\tdescription: \"I can always find a place to perform (arena/pit fight), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\n\tsource: [[\"P\", 131]],\n};\nBackgroundFeatureList[\"rustic hospitality\"] = { // from Folk Hero\n\tdescription: \"Since I come from the ranks of the common folk, I fit in among them with ease. I can find a place to hide, rest, or recuperate among other commoners, unless I have shown myself to be a danger to them. They will shield me from the law or anyone else searching for me, though they will not risk their lives for me.\",\n\tsource: [[\"P\", 131]],\n};\nBackgroundFeatureList[\"guild membership\"] = { // from Guild Artisan\n\tdescription: \"5 gp membership fees per month: The guild offers lodging if possible. In case of being accused of a crime, the guild will support me if a good case can be made for my innocence or the crime is justifiable. I can also gain access to powerful political figures through the guild, as long as I'm in good standing and the guild is paid enough.\",\n\tsource: [[\"P\", 133]],\n};\nBackgroundFeatureList[\"discovery\"] = { // from Hermit\n\tdescription: \"The quiet seclusion of my extended hermitage gave me access to a unique and powerful discovery. The exact nature of this revelation depends on the nature of my seclusion. It might be a great truth, a hidden site, a long forgotten fact, or unearthed some relic of the past that could rewrite history.\",\n\tsource: [[\"P\", 134]],\n};\nBackgroundFeatureList[\"position of privilege\"] = { // from Noble\n\tdescription: \"I am welcome in high society, and people assume I have the right to be wherever I am. The common folk make every effort to accommodate me and avoid my displeasure, and other people of high birth treat me as a member of the same social sphere. I can secure an audience with a local noble if I need to.\",\n\tsource: [[\"P\", 135]],\n};\nBackgroundFeatureList[\"retainers\"] = { // from Knight\n\tdescription: \"I have the service of three retainers loyal to my family, one of whom is another noble and my squire. My other retainers are commoners who can perform mundane tasks for me, but they do not fight for me, will not follow me into obviously dangerous areas (such as dungeons), and will leave if they are frequently endangered or abused.\",\n\tsource: [[\"P\", 136]],\n};\nBackgroundFeatureList[\"wanderer\"] = { // from Outlander\n\tdescription: \"I have an excellent memory for maps and geography, and I can always recall the general layout of terrain, settlements, and other features around me. In addition, I can find food and fresh water for myself and up to five other people each day, provided that the land offers berries, small game, water, and so forth.\",\n\tsource: [[\"P\", 136]],\n};\nBackgroundFeatureList[\"researcher\"] = { // from Researcher\n\tdescription: \"When I attempt to learn or recall a piece of lore, if I do not know that information, I often know where and from whom I can obtain it. Usually, this information comes from a library, scriptorium, university, or a sage or other learned person or creature. Unearthing the deepest secrets of the multiverse can require an adventure or even a whole campaign.\",\n\tsource: [[\"P\", 138]],\n};\nBackgroundFeatureList[\"ship's passage\"] = { // from Sailor\n\tdescription: \"When I need to, I can secure free passage on a sailing ship for myself and my companions. I might sail on the ship I served on, or another ship I have good relations with. Because I'm calling in a favor, I can't be certain of a schedule or route that will meet my every need. My companions and I are expected to assist the crew during the voyage.\",\n\tsource: [[\"P\", 139]],\n};\nBackgroundFeatureList[\"bad reputation\"] = { // from Pirate\n\tdescription: \"No matter where I go, people are afraid of me due to my reputation. When I am in a civilized settlement, I can get away with minor criminal offenses, such as refusing to pay for food at a tavern or breaking down doors at a local shop, since most people will not report my activity to the authorities.\",\n\tsource: [[\"P\", 139]],\n};\nBackgroundFeatureList[\"military rank\"] = { // from Soldier\n\tdescription: \"I have a military rank from my career as a soldier. Soldiers loyal to my former military organization still recognize my authority and influence. I can invoke my rank to influence soldiers and temporarily requisition simple equipment or horses. I can usually gain access to friendly military encampments and fortresses where my rank is recognized.\",\n\tsource: [[\"P\", 140]],\n};\nBackgroundFeatureList[\"city secrets\"] = { // from Urchin\n\tdescription: \"I know the secret patterns and flow to cities and can find passages through the urban sprawl that others would miss. When I am not in combat, I (and companions I lead) can travel between any two locations in the city twice as fast as my speed would normally allow.\",\n\tsource: [[\"P\", 141]],\n};\n\n// Feats\nFeatsList[\"dungeon delver\"] = {\n\tname: \"Dungeon Delver\",\n\tsource: [[\"P\", 166]],\n\tdescription: \"I have adv. on Wis (Perception) and Int (Investigation) checks made to detect the presence of secret doors. I have resistance to damage dealt by traps and advantage on saves to avoid or resist traps. Travelling at a fast pace doesn't impose -5 on my passive Perception.\",\n\tdescriptionFull: [\n\t\t\"Alert to the hidden traps and secret doors found in many dungeons, you gain the following benefits:\",\n\t\t\" \\u2022 You have advantage on Wisdom (Perception) and Intelligence (Investigation) checks made to detect the presence of secret doors.\",\n\t\t\" \\u2022 You have advantage on saving throws made to avoid or resist traps.\",\n\t\t\" \\u2022 You have resistance to the damage dealt by traps.\",\n\t\t\" \\u2022 Traveling at a fast pace doesn't impose the normal -5 penalty on your passive Wisdom (Perception) score.\",\n\t],\n\tdmgres: [\"Traps\"],\n\tsavetxt: { adv_vs: [\"traps\"] },\n\tvision: [\n\t\t[\"Adv. on Perception and Investigation for secret doors\", 0],\n\t\t[\"No -5 for travelling at fast pace\", 0],\n\t],\n};\nFeatsList[\"linguist\"] = {\n\tname: \"Linguist\",\n\tsource: [[\"P\", 167]],\n\tdescription: \"\",\n\tcalculate: \"event.value = \\\"I can ably create written ciphers that others can't decipher unless I teach them, they succeed on an Intelligence check DC \\\" + (Number(What('Int')) + Number(How('Proficiency Bonus'))) + ' (Intelligence score + proficiency bonus), or they use magic to decipher it. I learn three languages of my choice. [+1 Intelligence]';\",\n\tdescriptionFull: [\n\t\t\"You have studied languages and codes, gaining the following benefits:\",\n\t\t\" \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\",\n\t\t\" \\u2022 You learn three languages of your choice.\",\n\t\t\" \\u2022 You can ably create written ciphers. Others can't decipher a code you create unless you teach them, they succeed on an Intelligence check (DC equal to your Intelligence score + your proficiency bonus), or they use magic to decipher it.\",\n\t],\n\tscores: [0, 0, 0, 1, 0, 0],\n\tlanguageProfs: [3],\n};\nFeatsList[\"martial adept\"] = {\n\tname: \"Martial Adept\",\n\tsource: [[\"P\", 168]],\n\tdescription: \"\",\n\tcalculate: \"event.value = 'I learn two maneuvers of my choice from those available to the Battle Master (2nd page \\\"Choose Feature\\\" button). The saving throw DC for this is ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Dex Mod')))) + ' (8 + proficiency bonus + Str/Dex mod). I gain one superiority die (d6), which I regain when I finish a short rest.';\",\n\tdescriptionFull: [\n\t\t\"You have martial training that allows you to perform special combat maneuvers. You gain the following benefits:\",\n\t\t\" \\u2022 You learn two maneuvers of your choice from among those available to the Battle Master archetype in the fighter class. If a maneuver you use requires your target to make a saving throw to resist the maneuver's effects, the saving throw DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice).\",\n\t\t\" \\u2022 You gain one superiority die, which is a d6 (this die is added to any superiority dice you have from another source). This die is used to fuel your maneuvers. A superiority die is expended when you use it. You regain your expended superiority dice when you finish a short or long rest.\",\n\t],\n\tbonusClassExtrachoices: [{\n\t\t\"class\": \"fighter\",\n\t\tsubclass: \"fighter-battle master\",\n\t\tfeature: \"subclassfeature3.1\",\n\t\tbonus: 2,\n\t}],\n\textraLimitedFeatures: [{\n\t\tname: \"Superiority Dice\",\n\t\tusages: 1,\n\t\tadditional: 'd6',\n\t\trecovery: \"short rest\",\n\t\taddToExisting: true,\n\t}],\n};"
  },
  {
    "path": "WotC 2024/not-reprinted_20201117_TCoE.js",
    "content": "var iFileName = \"not-reprinted_20201117_TCoE.js\";\nRequiredSheetVersion(\"24.0.5-beta\");\n// This file adds options from Tasha's Cauldron of Everything to MPMB's Character Record Sheet that have not been replaced with new options published specifically for the 2024 (5.5e) rules\n\n// Define the source\nSourceList.T = {\n\tname: \"Tasha's Cauldron of Everything\",\n\tabbreviation: \"TCoE\",\n\tabbreviationSpellsheet: \"T\",\n\tgroup: \"Legacy Sources\",\n\turl: \"https://dnd.wizards.com/products/tashas-cauldron-everything\",\n\tdate: \"2020/11/17\",\n\tdefaultExcluded: true,\n};\n\nAddSubClass(\"bard\", \"college of eloquence\", {\n\tregExpSearch: /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\n\tsubname: \"College of Eloquence\",\n\tsubnameShort: \"Eloquence\",\n\tsource: [[\"T\", 29], [\"MOT\", 28]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Silver Tongue\",\n\t\t\tsource: [[\"T\", 30], [\"MOT\", 28]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"When I make a Persuasion or Deception check, I can treat a roll of 9 or lower as a 10.\"),\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Unsettling Words\",\n\t\t\tsource: [[\"T\", 30], [\"MOT\", 28]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"As a Bonus Action, I can expend and roll a Bardic Inspiration Die to have a creature I can see within 60 ft subtract the result from the next save it makes before my next turn starts.\"),\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Unfailing Inspiration\",\n\t\t\tsource: [[\"T\", 30], [\"MOT\", 28]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"When a creature adds my Bardic Inspiration Die to a roll but fails, they can keep the die.\"),\n\t\t},\n\t\t\"subclassfeature6.1\": {\n\t\t\tname: \"Universal Speech\",\n\t\t\tsource: [[\"T\", 30], [\"MOT\", 28]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc([\n\t\t\t\t\"As an Action, I can choose a number of creatures equal to my Charisma modifier (min 1). They can magically understand me, regardless of the language I speak, for 1 hour.\",\n\t\t\t\t\"I can do this once per Long Rest, or by expending a 1st-level or higher spell slot (SS 1+).\",\n\t\t\t]),\n\t\t\trecovery: \"Long Rest\",\n\t\t\tusages: 1,\n\t\t\taltResource: \"SS 1+\",\n\t\t\taction: [[\"action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Infectious Inspiration\",\n\t\t\tsource: [[\"T\", 30], [\"MOT\", 28]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc(\"As a Reaction when a creature uses my Bardic Inspiration Die and succeeds, I can give another creature within 60 ft that can hear me a \" + (typePF ? \"Bardic Inspiration Die\" : \"BID\") + \" without expending any.\"),\n\t\t\taction: [[\"reaction\", \"\"]],\n\t\t\tusages: \"Charisma modifier per \",\n\t\t\tusagescalc: \"event.value = Math.max(1, What('Cha Mod'));\",\n\t\t\trecovery: \"Long Rest\",\n\t\t},\n\t},\n});"
  },
  {
    "path": "WotC 2024/pub_20240917_PHB.js",
    "content": "var iFileName = \"pub_20240917_PHB.js\";\nRequiredSheetVersion(\"24.0.6-beta\");\n// This file adds material from the 2024 Player's Handbook that isn't in the SRD v5.2.1 to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"P24\"] = {\n\tname: \"2024 Player's Handbook\",\n\tabbreviation: \"PHB'24\",\n\tabbreviationSpellsheet: \"P2\",\n\tgroup: \"Primary Sources\",\n\turl: \"https://marketplace.dndbeyond.com/core-rules/3709000\",\n\tdate: \"2024/09/17\",\n};\n\n// Barbarian Subclasses\nAddSubClass(\"barbarian\", \"wild heart\", {\n\tregExpSearch: /^(?=.*barbarian)(?=.*wild)(?=.*heart).*$/i,\n\tsubname: \"Path of the Wild Heart\",\n\tsubnameShort: \"Wild Heart\",\n\tsource: [[\"P24\", 55]],\n\tabilitySave: 5,\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Animal Speaker\",\n\t\t\tsource: [[\"P24\", 55]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\treturn n < 14 ? desc(\"I can cast *Beast Sense* and *Speak with Animals* using Wisdom, but only as Rituals.\") : \" [*Beast Sense* \\x26 *Speak with Animals* as Ritual]\";\n\t\t\t}),\n\t\t\tspellcastingBonus: [{\n\t\t\t\tname: \"Animal Speaker\",\n\t\t\t\tspells: [\"beast sense\", \"speak with animals\"],\n\t\t\t\tselection: [\"beast sense\", \"speak with animals\"],\n\t\t\t\ttimes: 2,\n\t\t\t\tfirstCol: SpellRitualTag,\n\t\t\t\tspellcastingAbility: 5,\n\t\t\t}],\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Rage of the Wilds\",\n\t\t\tsource: [[\"P24\", 55]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"Whenever I enter Rage, I can gain one of the following benefits during that Rage.\",\n\t\t\t\t\" \\u2022 ***Bear***. Resistance to all damage types except Force, Necrotic, Psychic, and Radiant.\",\n\t\t\t\t\" \\u2022 ***Eagle***. Can Disengage or Dash when entering Rage. As Bonus Action, take both actions.\",\n\t\t\t\t\" \\u2022 ***Wolf***. Allies have Advantage on attack rolls against any enemy within 5 ft of me.\",\n\t\t\t]),\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Aspect of the Wilds\",\n\t\t\tsource: [[\"P24\", 55]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: ' #[Select option with \"Choose Feature\"]#' + desc('Use the \"Choose Feature\" button to select which aspect (Owl, Panther, or Salmon) is currently active and automated, or select to show all of them but have none of them added to the automation.'),\n\t\t\tchoices: [\"Owl\", \"Panther\", \"Salmon\", \"show all (bonuses not automated)\"],\n\t\t\t\"owl\": {\n\t\t\t\tname: \"Owl Aspect of the Wilds\",\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"I have Darkvision 60 ft. If I already have Darkvision, its range increases with 60 ft instead.\",\n\t\t\t\t\t\"After I finish a Long Rest, I can switch to: ***Panther*** (Climb Speed) or ***Salmon*** (Swim Speed).\",\n\t\t\t\t]),\n\t\t\t\tvision: [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\t\t\t},\n\t\t\t\"panther\": {\n\t\t\t\tname: \"Panther Aspect of the Wilds\",\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"I have a Climb Speed equal to my Speed.\",\n\t\t\t\t\t\"After I finish a Long Rest, I can switch to: ***Owl*** (+60ft Darkvision) or ***Salmon*** (Swim Speed).\",\n\t\t\t\t]),\n\t\t\t\tspeed: { climb: { spd: \"walk\", enc: \"walk\" } },\n\t\t\t},\n\t\t\t\"salmon\": {\n\t\t\t\tname: \"Salmon Aspect of the Wilds\",\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"I have a Swim Speed equal to my Speed.\",\n\t\t\t\t\t\"After I finish a Long Rest, I can switch to: ***Owl*** (+60ft Darkvision) or ***Panther*** (Climb Speed).\",\n\t\t\t\t]),\n\t\t\t\tspeed: { swim: { spd: \"walk\", enc: \"walk\" } },\n\t\t\t},\n\t\t\t\"show all (bonuses not automated)\": {\n\t\t\t\tname: \"Aspect of the Wilds\",\n\t\t\t\tdescription: desc(\"I gain one option, which I can change when I finish a Long Rest. ***Owl***. +60 ft Darkvision. ***Panther***. Climb Speed equal to my Speed. ***Salmon***. Swim Speed equal to my Speed.\"),\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature10\": {\n\t\t\tname: \"Nature Speaker\",\n\t\t\tsource: [[\"P24\", 55]],\n\t\t\tminlevel: 10,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\treturn n < 10 ? \"\" : n < 14 ? desc(\"I can cast *Commune with Nature* using Wisdom, but only as a Ritual.\") : \" [*Commune with Nature* as Ritual]\";\n\t\t\t}),\n\t\t\tspellcastingBonus: [{\n\t\t\t\tname: \"Nature Speaker\",\n\t\t\t\tspells: [\"commune with nature\"],\n\t\t\t\tselection: [\"commune with nature\"],\n\t\t\t\tfirstCol: SpellRitualTag,\n\t\t\t}],\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Power of the Wilds\",\n\t\t\tsource: [[\"P24\", 55]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: \" [choose one benefit per Rage]\" + desc([\n\t\t\t\t\" \\u2022 ***Falcon***. I have a Fly Speed equal to my Speed if I'm not wearing any armor.\",\n\t\t\t\t\" \\u2022 ***Lion***. Any enemy within 5 ft of me has Disadvantage on attacks against others than me.\",\n\t\t\t\t\" \\u2022 ***Ram***. When I hit a Large or smaller creature with a melee attack, I can knock it Prone.\",\n\t\t\t]),\n\t\t},\n\t},\n});\nAddSubClass(\"barbarian\", \"world tree\", {\n\tregExpSearch: /^(?=.*barbarian)((?=.*world)(?=.*tree)|(?=.*yggdrasil)).*$/i,\n\tsubname: \"Path of the World Tree\",\n\tsubnameShort: \"World Tree\",\n\tsource: [[\"P24\", 56]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Vitality of the Tree\",\n\t\t\tsource: [[\"P24\", 56]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\tvar rageDamage = n < 9 ? 2 : n < 16 ? 3 : 4;\n\t\t\t\treturn desc(\"When I enter Rage, I gain \" + n + \" Temp HP (level). At the start of my turn while in Rage, I can give another within 10 ft \" + rageDamage + \"d6 Temp HP (1d6 per Rage damage) until my Rage ends.\");\n\t\t\t}),\n\t\t\tadditional: levels.map(function (n) {\n\t\t\t\treturn n < 3 ? \"\" : \"me \" + n + \", others \" + (n < 9 ? 2 : n < 16 ? 3 : 4) + \"d6 Temp HP\";\n\t\t\t}),\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Branches of the Tree\",\n\t\t\tsource: [[\"P24\", 56]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"As a Reaction while in Rage when a creature I can see starts its turn within 30 ft, I can have it make a Strength save or teleport it to the empty space of my choice nearest to me that I can see. After it teleports, I can reduce its Speed to 0 until the end of its turn.\"),\n\t\t\taction: [[\"reaction\", \" (in Rage)\"]],\n\t\t\tadditional: \"DC 8 + Str mod + Prof Bonus\",\n\t\t},\n\t\t\"subclassfeature10\": {\n\t\t\tname: \"Battering Roots\",\n\t\t\tsource: [[\"P24\", 56]],\n\t\t\tminlevel: 10,\n\t\t\tdescription: desc(\"On my turn, I have +10 ft reach with Heavy and Versatile melee weapons. With those, I can use the Push or Topple mastery in addition to a different mastery I'm using with it.\"),\n\t\t\tcalcChanges: {\n\t\t\t\tatkAdd: [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && /heavy|versatile/i.test(fields.Description)) {\n\t\t\t\t\t\t\tvar text = \"+10 ft reach on my turn\";\n\t\t\t\t\t\t\tif (!/\\b(topple|push)\\b/i.test(fields.Description)) {\n\t\t\t\t\t\t\t\ttext = \"Push or Topple; \" + text;\n\t\t\t\t\t\t\t} else if (!/\\bpush\\b/i.test(fields.Description)) {\n\t\t\t\t\t\t\t\ttext = \"Push; \" + text;\n\t\t\t\t\t\t\t} else if (!/\\btopple\\b/i.test(fields.Description)) {\n\t\t\t\t\t\t\t\ttext = \"Topple; \" + text;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + text;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"Heavy and Versatile melee weapons get the Push and Topple masteries added to their description if they don't already have it. With those weapons, I have +10 ft reach on my turn.\",\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Travel along the Tree\",\n\t\t\tsource: [[\"P24\", 56]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc(\"When I enter Rage and as a Bonus Action during, I can teleport up to 60 ft to an empty space I can see. Once per Rage, I can teleport up to 150 ft and bring along up to 6 willing creatures within 10 ft, who each arrive in an empty space of my choice within 10 ft of \" + (typePF ? \"where I arrive.\" : \"me.\")),\n\t\t\taction: [[\"bonus action\", \" (in Rage)\"]],\n\t\t\tusages: 1,\n\t\t\trecovery: \"Rage\",\n\t\t\tadditional: \"150 ft \\x26 bring 6\",\n\t\t},\n\t},\n});\nAddSubClass(\"barbarian\", \"zealot\", {\n\tregExpSearch: /zealot/i,\n\tsubname: \"Path of the Zealot\",\n\tsubnameShort: \"Zealot\",\n\tfullname: \"Zealot\",\n\tsource: [[\"P24\", 57]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Divine Fury\",\n\t\t\tsource: [[\"P24\", 57]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\treturn desc(\"While in Rage, the first creature I hit with a weapon or Unarmed Strike on my turn takes +1d6 + \" + Math.floor(n / 2) + \" (half level) Necrotic or Radiant damage; I choose the type each time.\");\n\t\t\t}),\n\t\t\tadditional: levels.map(function (n) {\n\t\t\t\treturn n < 3 ? \"\" : \"+1d6 + \" + Math.floor(n / 2) + \" damage\";\n\t\t\t}),\n\t\t\tcalcChanges: {\n\t\t\t\tatkAdd: [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tvar lvl = classes.known.barbarian ? classes.known.barbarian.level : false;\n\t\t\t\t\t\tif (lvl && (v.isWeapon || v.baseWeaponName === \"unarmed strike\") && /\\brage\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"1/turn +1d6+\" + Math.floor(lvl / 2) + \" Necrotic/Radiant dmg\";\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"\",\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Warrior of the Gods\",\n\t\t\tsource: [[\"P24\", 57]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"As a Bonus Action, I can expend dice from my pool of d12s to regain HP equal to their roll.\"),\n\t\t\tusages: levels.map(function (n) {\n\t\t\t\treturn n < 3 ? \"\" : (n < 6 ? 4 : n < 12 ? 5 : n < 17 ? 6 : 7) + \"d12 per \";\n\t\t\t}),\n\t\t\trecovery: \"Long Rest\",\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Fanatical Focus\",\n\t\t\tsource: [[\"P24\", 57]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\tvar rageDamageBonus = n < 9 ? 2 : n < 16 ? 3 : 4;\n\t\t\t\treturn n < 6 ? \"\" : desc(\"Once per Rage, I can reroll a failed save with a +\" + rageDamageBonus + \" (Rage damage), but must use the result.\");\n\t\t\t}),\n\t\t\tadditional: levels.map(function (n) {\n\t\t\t\tvar rageDamageBonus = n < 9 ? 2 : n < 16 ? 3 : 4;\n\t\t\t\treturn n < 6 ? \"\" : \"reroll save with +\" + rageDamageBonus;\n\t\t\t}),\n\t\t\tusages: \"1\\xD7 each \",\n\t\t\trecovery: \"Rage\",\n\t\t},\n\t\t\"subclassfeature10\": {\n\t\t\tname: \"Zealous Presence\",\n\t\t\tsource: [[\"P24\", 57]],\n\t\t\tminlevel: 10,\n\t\t\tdescription: desc(\"As a Bonus Action, I can give up to 10 creatures of my choice within 60 ft Adv. on attacks and saves until my next turn starts. I can expend a use of Rage to regain use of this.\"),\n\t\t\tusages: 1,\n\t\t\trecovery: \"Long Rest\",\n\t\t\taltResource: \"Rage\",\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Rage of the Gods\",\n\t\t\tsource: [[\"P24\", 57]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\treturn n < 14 ? \"\" : desc(\"When I enter Rage, I can gain benefits for 1 minute or until I'm at 0 HP. ***Fly Speed*** equal to my Speed. ***Resistance*** to Necrotic, Psychic, and Radiant. ***Revivification***. As a Reaction when a creature within 30 ft drops to 0 HP, I can expend a Rage use to give it \" + n + \" HP (level).\");\n\t\t\t}),\n\t\t\tusages: 1,\n\t\t\trecovery: \"Long Rest\",\n\t\t\taction: [[\"reaction\", \" (Revivification)\"]],\n\t\t},\n\t},\n});\n\n// Bard Subclasses\nAddSubClass(\"bard\", \"dance\", {\n\tregExpSearch: /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*dance).*$/i,\n\tsubname: \"College of Dance\",\n\tsubnameShort: \"Dance\",\n\tsource: [[\"P24\", 64]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Dazzling Footwork\",\n\t\t\tsource: [[\"P24\", 64]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"While I'm not wearing armor or wielding a Shield, I gain the following benefits:\",\n\t\t\t\t\"***Dance Virtuoso***. I have Advantage on any Charisma (Performance) checks involving dancing.\",\n\t\t\t\t\"***Unarmored Defense***. My AC is 10 + Dexterity modifier + Charisma modifier.\",\n\t\t\t\t\"***Agile Strikes***. When I use Bardic Inspiration as part of an action, Bonus Action, or Reaction, I can make one Unarmed Strike as part of that action, Bonus Action, or Reaction.\",\n\t\t\t\t\"***Bardic Damage***. My Unarmed Strikes can use Dexterity and deal damage equal to my BID.\",\n\t\t\t]),\n\t\t\tcalcChanges: {\n\t\t\t\tatkAdd: [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tvar n = classes.known.bard ? classes.known.bard.level : false;\n\t\t\t\t\t\tif (n && v.baseWeaponName.indexOf(\"unarmed strike\") !== -1) {\n\t\t\t\t\t\t\t// Set the ability to the highest of Str and Dex, if currently one of those or lower than Str or Dex\n\t\t\t\t\t\t\tif (fields.Mod === 1 || fields.Mod === 2 || What(AbilityScores.abbreviations[fields.Mod - 1] + \" Mod\") < What(AbilityScores.abbreviations[v.StrDex - 1] + \" Mod\")) {\n\t\t\t\t\t\t\t\tfields.Mod = v.StrDex;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Improve the damage die if there is one and the Bardic Inspiration Die is better\n\t\t\t\t\t\t\tvar bardInspDie = n < 5 ? 6 : n < 10 ? 8 : n < 15 ? 10 : 12;\n\t\t\t\t\t\t\tvar rxDice = /(\\d+)d?(\\d*)/;\n\t\t\t\t\t\t\tif (rxDice.test(fields.Damage_Die)) {\n\t\t\t\t\t\t\t\tvar curDie = fields.Damage_Die.match(rxDice);\n\t\t\t\t\t\t\t\tvar curDieSize = Math.max(Number(curDie[1]), 1) * Math.max(Number(curDie[2]), 1);\n\t\t\t\t\t\t\t\tif (curDieSize < bardInspDie) {\n\t\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(curDie[0], '1d' + bardInspDie);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"Unarmed Strikes can use Dexterity and deal Bardic Inspiration Die damage.\",\n\t\t\t\t],\n\t\t\t},\n\t\t\tarmorOptions: [{\n\t\t\t\tregExpSearch: /justToAddToDropDownAndAffectWildShape/,\n\t\t\t\tname: \"Unarmored Defense (Cha)\",\n\t\t\t\tsource: [[\"P24\", 64]],\n\t\t\t\tac: \"10+Cha\",\n\t\t\t\taffectsWildShape: true,\n\t\t\t\tselectNow: true,\n\t\t\t}],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Inspiring Movement\",\n\t\t\tsource: [[\"P24\", 64]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"As a Reaction when an enemy I can see ends its turn within 5 ft, I can expend a use of Bardic Inspiration to move up to half my Speed without provoking Opportunity Attacks. Then one ally of my choice within 30 ft can do the same with their Reaction.\"),\n\t\t\tadditional: \"1 Bardic Inspiration\",\n\t\t\taction: [[\"reaction\", \" (1 BID)\"]],\n\t\t},\n\t\t\"subclassfeature6.1\": {\n\t\t\tname: \"Tandem Footwork\",\n\t\t\tsource: [[\"P24\", 64]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"When I roll Initiative and I'm not Incapacitated, I can expend and roll one Bardic Inspiration Die and add it to the Initiative of every ally within 30 ft that can see or hear me.\"),\n\t\t\tadditional: \"1 Bardic Inspiration\",\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Leading Evasion\",\n\t\t\tsource: [[\"P24\", 65]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: \" [if not Incapacitated]\" + desc([\n\t\t\t\t\"When I make a Dex save to halve damage, I instead take none if I succeed and half if I fail.\",\n\t\t\t\t\"I can share this benefit with creatures within 5 ft making the same save.\",\n\t\t\t]),\n\t\t\tsavetxt: { text: [\"**Dex Save for Half**. *Failure:* half dmg, *Success:* no dmg\"] },\n\t\t},\n\t},\n});\nAddSubClass(\"bard\", \"glamour\", {\n\tregExpSearch: /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*glamour).*$/i,\n\tsubname: \"College of Glamour\",\n\tsubnameShort: \"Glamour\",\n\tsource: [[\"P24\", 65]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Beguiling Magic\",\n\t\t\tsource: [[\"P24\", 65]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"Immediately after I use a spell slot to cast an Enchantment or Illusion spell, I can have a creature I can see within 60 ft make a Wisdom save or be either Charmed or Frightened for 1 minute, repeating the save as each of its turns end. I can expend a Bardic Inspiration Die to regain use of this. I always have *Charm Person* and *Mirror Image* prepared.\"),\n\t\t\tusages: 1,\n\t\t\trecovery: \"Long Rest\",\n\t\t\taltResource: \"BID\",\n\t\t\tspellcastingBonus: [{\n\t\t\t\tname: \"Beguiling Magic\",\n\t\t\t\tspells: [\"charm person\", \"mirror image\"],\n\t\t\t\tselection: [\"charm person\", \"mirror image\"],\n\t\t\t\ttimes: 2,\n\t\t\t\tfirstCol: \"markedbox\",\n\t\t\t}],\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Mantle of Inspiration\",\n\t\t\tsource: [[\"P24\", 65]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"As a Bonus Action, I can expend and roll a Bardic Inspiration Die to grant other creatures within 60 ft of me Temporary Hit Points equal to twice the number rolled, and then each can use its Reaction to move up to its Speed without provoking Opportunity Attacks.\",\n\t\t\t\t\"I can choose up to my Charisma modifier (minimum 1) number of creatures to affect.\",\n\t\t\t]),\n\t\t\tadditional: levels.map(function (n) {\n\t\t\t\tvar bardInspDie = n < 5 ? 6 : n < 10 ? 8 : n < 15 ? 10 : 12;\n\t\t\t\treturn n < 3 ? \"\" : \"1 BID; 1d\" + bardInspDie + \" \\xD7 2 Temp HP\";\n\t\t\t}),\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Mantle of Majesty\",\n\t\t\tsource: [[\"P24\", 65]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"As a Bonus Action, I can take on an unearthly appearance for 1 minute, requiring Concentration. When I do so and as a Bonus Action during, I can cast *Command* without using a spell slot. Creatures Charmed by me automatically fail their save against it. I can expend a level 3+ spell slot (SS 3+) to regain use of this. I always have *Command* prepared.\"),\n\t\t\tusages: 1,\n\t\t\trecovery: \"Long Rest\",\n\t\t\taltResource: \"SS 3+\",\n\t\t\tspellcastingBonus: [{\n\t\t\t\tname: \"Mantle of Majesty\",\n\t\t\t\tspells: [\"command\"],\n\t\t\t\tselection: [\"command\"],\n\t\t\t\tfirstCol: \"markedbox\",\n\t\t\t}],\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Unbreakable Majesty\",\n\t\t\tsource: [[\"P24\", 66]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc([\n\t\t\t\t\"As a Bonus Action, I can gain a majestic presence for 1 minute or until I'm Incapacitated.\",\n\t\t\t\t\"While active, whenever any creature hits me with an attack roll for the first time on a turn, it has to make a Charisma save or miss instead.\",\n\t\t\t]),\n\t\t\tusages: 1,\n\t\t\trecovery: \"Short Rest\",\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t},\n});\nAddSubClass(\"bard\", \"valor\", {\n\tregExpSearch: /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*valor).*$/i,\n\tsubname: \"College of Valor\",\n\tsubnameShort: \"Valor\",\n\tsource: [[\"P24\", 67]],\n\tattacks: [1, 1, 1, 1, 2],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Combat Inspiration\",\n\t\t\tsource: [[\"P24\", 67]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"A creature that has a Bardic Inspiration Die (BID) from me can use it in one of these ways.\",\n\t\t\t\t\"***Defense***. As a Reaction when hit by an attack, it can add the BID to \" + (typePF ? \"its \" : \"\") + \"AC against that attack.\",\n\t\t\t\t\"***Offense***. After it hits with an attack roll, it can add the BID to that attack's damage.\",\n\t\t\t]),\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Martial Training\",\n\t\t\tsource: [[\"P24\", 67]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"I have proficiency with Martial weapons, Medium armor, and Shields.\",\n\t\t\t\t\"I can use a Simple or Martial weapon as a Spellcasting Focus for my Bard spells.\"\n\t\t\t]),\n\t\t\tarmorProfs: [false, true, false, true],\n\t\t\tweaponProfs: [false, true],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Extra Attack\",\n\t\t\tsource: [[\"P24\", 67]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc([\n\t\t\t\t\"I can attack twice instead of once when I take the Attack action on my turn.\",\n\t\t\t\t\"I can cast a cantrip with a casting time of one action in place of one of those attacks.\",\n\t\t\t]),\n\t\t\taction: [[\"action\", \"1 Attack and cast Cantrip\"]]\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Battle Magic\",\n\t\t\tsource: [[\"P24\", 67]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc(\"As a Bonus Action after I cast a spell that takes an action, I can make one weapon attack.\"),\n\t\t\taction: [[\"bonus action\", \"Weapon attack (after cast spell)\"]],\n\t\t},\n\t},\n});\n\n// Cleric subclasses\n\n// Druid subclasses\n\n// Druid Subclasses\nAddSubClass(\"druid\", \"moon\", {\n\tregExpSearch: /^(?=.*druid)((?=.*\\bmoon\\b)|((?=.*\\bmany\\b)(?=.*\\bforms?\\b))).*$/i,\n\tsubname: \"Circle of the Moon\",\n\tsubnameShort: \"Moon\",\n\tsource: [[\"P24\", 86]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Circle Forms\",\n\t\t\tsource: [[\"P24\", 86]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"The max CR for my Wild Shape forms is my Druid level divided by 3. While in WS, my AC can be 13 + my Wisdom modifier. I gain 3\\xD7 my Druid level in temp HP when I shape-shift.\"),\n\t\t\twildshapePageInfo: {\n\t\t\t\tduration: ClassList.druid.features[\"wild shape\"].wildshapePageInfo.duration,\n\t\t\t\tknownForms: ClassList.druid.features[\"wild shape\"].wildshapePageInfo.knownForms,\n\t\t\t\ttempHP: levels.map(function (n) {\n\t\t\t\t\treturn n < 3 ? n : n*3;\n\t\t\t\t}),\n\t\t\t\tlimitations: levels.map(function (n) {\n\t\t\t\t\tvar CR = n < 3 ? \"1/4\" : Math.floor(n/3);\n\t\t\t\t\treturn n < 8 ? \"max CR \" + CR + \", no Fly Speed\" : \"CR \" + CR + \" or lower\";\n\t\t\t\t}),\n\t\t\t},\n\t\t\t\"wild shape rules\": {\n\t\t\t\tname: \"Circle Forms Wild Shape Rules\",\n\t\t\t\tsource: [[\"P24\", \"80-86\"]],\n\t\t\t\textraname: \"Moon 3\",\n\t\t\t\tdescription: levels.map(function (n) {\n\t\t\t\t\tif (n < 3) return \"\";\n\t\t\t\t\tvar tempHP = n*3;\n\t\t\t\t\tvar duration = Math.floor(n/2) + \" hour\" + (n > 3 ? \"s\" : \"\");\n\t\t\t\t\tvar knownForms = n < 4 ? 4 : n < 8 ? 6 : 8;\n\t\t\t\t\tvar CR = Math.floor(n/3);\n\t\t\t\t\tvar canFly = n < 8 ? \"can't\" : \"can\";\n\t\t\t\t\treturn desc([\n\t\t\t\t\t\t\"As a Bonus Action, I can expend a Wild Shape (WS) use to shape-shift into a known Beast form and gain **\" + tempHP + \" Temp HP** (3\\xD7 Druid level). I stay in that form for **\" + duration + \"** (half Druid level), until I use Wild Shape again, end it as a Bonus Action, become Incapacitated, or die.\",\n\t\t\t\t\t\t\"I know **\" + knownForms + \" forms** of **max CR \" + CR + \"** (one-third Druid level) that **\" + canFly + \" have a Fly Speed**. \" + (typePF ? \"Whenever I finish\" : \"After\") + \" a Long Rest, I can change one known form for another eligible Beast form.\",\n\t\t\t\t\t\t\"In Wild Shape, I use the Beast's stats, but retain my type, HP, HD, Int, Wis, Cha, feats, class features, and ability to speak. I retain my skill and save proficiencies with my Prof Bonus and gain the beast's, using its bonus if higher. My AC is 13 + my Wisdom mod, unless the Beast's AC is higher. I can't cast spells except my Circle of the Moon Spells, but shape-shifting doesn't break concentration. I choose what equipment falls to the ground, merges, or stays worn.\",\n\t\t\t\t\t\t\"Use the Wild Shape page to track known forms and their stats.\",\n\t\t\t\t\t]);\n\t\t\t\t}),\n\t\t\t},\n\t\t\tautoSelectExtrachoices: [{\n\t\t\t\textrachoice: \"wild shape rules\",\n\t\t\t}],\n\t\t\teval: function() {\n\t\t\t\t// Remove the Wild Shape Rules set by the default Wild Shape feature so they can be replaced by the ones from this feature\n\t\t\t\tClassFeatureOptions([\"druid\", \"wild shape\", \"wild shape rules\", true], \"remove\");\n\t\t\t},\n\t\t\tremoveeval: function(lvlA) {\n\t\t\t\t// Return the Wild Shape Rules from the default Wild Shape feature as the ones from this feature are removed, but the new level is still 2 or higher\n\t\t\t\tif (lvlA[1] >= 2) ClassFeatureOptions([\"druid\", \"wild shape\", \"wild shape rules\", true], \"add\");\n\t\t\t},\n\t\t\tcalcChanges: {\n\t\t\t\twildshapeCallback: [\n\t\t\t\t\tfunction(prefix, fieldNo, oWildshape, sCrea) {\n\t\t\t\t\t\toWildshape.acOptions.push({\n\t\t\t\t\t\t\tname: \"Circle of the Moon: Circle Forms\",\n\t\t\t\t\t\t\tac: \"13+Wis\",\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t\t\"While in Wild Shape, my AC equals 13 plus my Wisdom modifier if that total is higher than the Beast's AC.\",\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Circle of the Moon Spells\",\n\t\t\tsource: [[\"P24\", 86]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"I always have these spells prepared and can cast them even when I'm in a Wild Shape form.\"),\n\t\t\tspellcastingExtra: [\"starry wisp\", \"cure wounds\", \"moonbeam\", \"conjure animals\", \"fount of moonlight\", \"mass cure wounds\"],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Improved Circle Forms\",\n\t\t\tsource: [[\"P24\", 87]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"While in Wild Shape form, I gain ***Lunar Radiance***: my attacks can deal Radiant damage, and ***Increased Toughness***: I add my Wisdom modifier to my Constitution saving throws.\"),\n\t\t\tcalcChanges: {\n\t\t\t\twildshapeCallback: [\n\t\t\t\t\tfunction(prefix, fieldNo, oWildshape, sCrea) {\n\t\t\t\t\t\toWildshape.save.Con.creature.bonus += \"+Wis\";\n\t\t\t\t\t\tif (!classes.known.druid) return;\n\t\t\t\t\t\tvar regularLunarRadiance = classes.known.druid.level < 14;\n\t\t\t\t\t\toWildshape.wildshapeTraits.push({\n\t\t\t\t\t\t\tname: \"Lunar Radiance\",\n\t\t\t\t\t\t\tdescription: regularLunarRadiance ? \"(Moon 6). Attacks can deal Radiant.\" : \"(Moon 14). Attacks can deal Radiant. Once per turn after a hit, deal +2d10 Radiant damage.\",\n\t\t\t\t\t\t\tjoinString: \" \",\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t\t\"While in a Wild Shape form, I can have my attacks deal Radiant damage and I can add my Wisdom modifier to my Constitution saving throws. Once per turn from level 14 onwards, I can deal an extra 2d10 Radiant damage to a target I hit with a Wild Shape form's attack.\",\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature10\": {\n\t\t\tname: \"Moonlight Step\",\n\t\t\tsource: [[\"P24\", 87]],\n\t\t\tminlevel: 10,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\treturn n < 10 ? \"\" : n < 14 ?\n\t\t\t\t\tdesc(\"As a Bonus Action, I can teleport up to 30 ft to an empty space I can see, and I gain Adv. on my next attack roll this turn. I can expend a level 2+ spell slot (SS 2+) to regain 1 use.\") :\n\t\t\t\t\tdesc(\"As a Bonus Action, I and a willing creature within 10 ft can teleport up to 30 ft to an empty space I can see, with the creature appearing within 10 ft of me. I then gain Adv. on my next attack roll this turn. I can expend a level 2+ spell slot (SS 2+) to regain 1 use.\");\n\t\t\t}),\n\t\t\tusages: typePF ? \"\" : \"Wisdom modifier per \",\n\t\t\tusagescalc: \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\taltResource: \"SS 2+\",\n\t\t\trecovery: \"Long Rest\",\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Lunar Form\",\n\t\t\tsource: [[\"P24\", 87]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc(\"***Improved Lunar Radiance***. Once per turn, I can deal +2d10 Radiant damage on a hit with a WS attack. ***Shared Moonlight***. I can bring along an ally with Moonlight Step, see above.\"),\n\t\t},\n\t},\n});\nAddSubClass(\"druid\", \"sea\", {\n\tregExpSearch: /^(?=.*druid)(?=.*\\b(sea|waves|tides)\\b).*$/i,\n\tsubname: \"Circle of the Sea\",\n\tsubnameShort: \"Sea\",\n\tsource: [[\"P24\", 87]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Wrath of the Sea\",\n\t\t\tsource: [[\"P24\", 87]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: levels.map(function (n) {\n\t\t\t\tvar part = {\n\t\t\t\t\trange: n < 6 ? 5 : 10,\n\t\t\t\t\ttarget: n < 14 ? \"\" : \" or around an ally within 60 ft that I can see, or around both by expending 2 WS uses\",\n\t\t\t\t\tturn: n < 14 ? \"my turn\" : \"turns\",\n\t\t\t\t\tbearer: n < 14 ? \"I\" : \"the bearer\",\n\t\t\t\t\tsubject: n < 14 ? \"I\" : \"they\",\n\t\t\t\t}\n\t\t\t\tvar text = [\n\t\t\t\t\t\"As a Bonus Action, I can expend 1 Wild Shape use to create a \" + part.range + \"-ft Emanation of ocean spray around me\" + part.target + \". When manifested and as a Bonus Actions on \" + part.turn + \" thereafter, \" + part.bearer + \" can have a creature \" + part.subject + \" can see in the area make a Constitution save or take 1d6 Cold damage per my Wisdom modifier and, if it's Large or smaller, be pushed 15 ft away.\",\n\t\t\t\t\t\"This lasts for 10 \" + (typePF ? \"minutes\" : \"min\") + \" or until I dismiss it (no action), manifest it again, or I'm Incapacitated.\",\n\t\t\t\t];\n\t\t\t\treturn desc(text);\n\t\t\t}),\n\t\t\tspellcastingExtra: [\"ray of frost\", \"fog cloud\", \"thunderwave\", \"gust of wind\", \"shatter\", \"lightning bolt\", \"water breathing\", \"control water\", \"ice storm\", \"conjure elemental\", \"hold monster\"],\n\t\t\taction: [[\"bonus action\", \" (1 WS to create)\"]],\n\t\t\tadditional: levels.map(function (n) {\n\t\t\t\tvar WSuses = n < 14 ? \"1 WS use\" : \"1-2 WS uses\";\n\t\t\t\tvar emanation = n < 6 ? 5 : 10;\n\t\t\t\treturn n < 3 ? \"\" : WSuses + \"; Wis mod \\xD7 d6 dmg; \" + emanation + \"-ft rad\"\n\t\t\t}),\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Aquatic Affinity\",\n\t\t\tsource: [[\"P24\", 87]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"I gain a Swim Speed equal to my Speed and Wrath of the Sea is now a 10-ft Emanation.\"),\n\t\t\tspeed: { swim: { spd: \"walk\", end: \"walk\" } },\n\t\t},\n\t\t\"subclassfeature10\": {\n\t\t\tname: \"Stormborn\",\n\t\t\tsource: [[\"P24\", 87]],\n\t\t\tminlevel: 10,\n\t\t\tdescription: desc(\"While my Wrath of the Sea is active, it now also grants: ***Resistance*** to Cold, Lightning, and Thunder damage, and ***Flight***. A Fly Speed equal to my Speed.\"),\n\t\t\tdmgres: [\n\t\t\t\t[\"Cold\",      \"Cold (in WotS)\"],\n\t\t\t\t[\"Lightning\", \"Lightn. (in WotS)\"],\n\t\t\t\t[\"Thunder\",   \"Thunder (in WotS)\"],\n\t\t\t],\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Oceanic Gift\",\n\t\t\tsource: [[\"P24\", 88]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc([\n\t\t\t\t\"I can create Wrath of the Sea around an ally within 60 ft that I can see instead of myself, or around both my and the ally by expending 2 Wild Shape uses.\",\n\t\t\t\t\"It grants all benefits to the bearer, but always uses my spell save DC and my Wisdom \" + (typePF ? \"modifier\" : \"mod\") + \".\",\n\t\t\t]),\n\t\t},\n\t},\n});\nAddSubClass(\"druid\", \"stars\", {\n\tregExpSearch: /^(?=.*druid)(?=.*\\b(stars?|constellations?)\\b).*$/i,\n\tsubname: \"Circle of the Stars\",\n\tsubnameShort: \"Stars\",\n\tsource: [[\"P24\", 88]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Star Map\",\n\t\t\tsource: [[\"P24\", 88]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"I can use this Tiny object as my spellcasting focus. While holding it, I know *Guidance* and always have *Guiding Bolt* prepared, which I can cast my Wisdom mod times per Long Rest without a spell slot. I can recreate it with a 1-hour ceremony during a Short or Long Rest.\"),\n\t\t\tadditional: \"Guiding Bolt\",\n\t\t\tusages: \"Wisdom modifier per \",\n\t\t\tusagescalc: \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery: \"Long Rest\",\n\t\t\tspellcastingBonus: [{\n\t\t\t\tname: \"Star Map\",\n\t\t\t\tspells: [\"guidance\"],\n\t\t\t\tselection: [\"guidance\"],\n\t\t\t}, {\n\t\t\t\tname: \"Star Map\",\n\t\t\t\tspells: [\"guiding bolt\"],\n\t\t\t\tselection: [\"guiding bolt\"],\n\t\t\t\tfirstCol: \"oncelr+markedbox\",\n\t\t\t}],\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Starry Form\",\n\t\t\tsource: [[\"P24\", 88]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"As a Bonus Action, I can expend a WS use to take on a glowing form with the benefits of a constellation (3rd page). I shed Bright Light in \" + (typePF ? \"10-ft radius\" : \"10 ft\") + \" and Dim Light for an additional 10 ft.\",\n\t\t\t\t\"This lasts for 10 minutes or until I dismiss it (no action), use it again, or I'm Incapacitated.\",\n\t\t\t]),\n\t\t\taction: [[\"bonus action\", \" (1 WS)\"]],\n\t\t\tadditional: \"1 Wild Shape use\",\n\t\t\tweaponOptions: [{\n\t\t\t\tregExpSearch: /^(?=.*luminous)(?=.*arrow).*$/i,\n\t\t\t\tname: \"Luminous Arrow\",\n\t\t\t\tsource: [[\"P24\", 89]],\n\t\t\t\tability: 5,\n\t\t\t\ttype: \"Spell\",\n\t\t\t\tdamage: [1, 8, \"radiant\"],\n\t\t\t\trange: \"60 ft\",\n\t\t\t\tdescription: \"Use as a Bonus Action\",\n\t\t\t\tabilitytodamage: true,\n\t\t\t\tuseSpellMod: \"druid\",\n\t\t\t\tselectNow: true,\n\t\t\t\tisLuminousArrow: true,\n\t\t\t}],\n\t\t\textraname: \"Starry Form\",\n\t\t\t\"archer constellation\": {\n\t\t\t\tname: \"Archer Constellation\",\n\t\t\t\tsource: [[\"P24\", 89]],\n\t\t\t\tdescription: levels.map(function (n) {\n\t\t\t\t\treturn desc(\"As a Bonus Action, including the one to take this Starry Form, I can make a ranged spell attack to hurl a luminous arrow 60 ft that deals \" + (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier Radiant damage.\");\n\t\t\t\t}),\n\t\t\t\tadditional: levels.map(function (n) {\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 10 ? 1 : 2) + \"d8 damage\";\n\t\t\t\t}),\n\t\t\t\taction: [[\"bonus action\", \"Archer (Luminous Arrow)\"]],\n\t\t\t},\n\t\t\t\"chalice constellation\": {\n\t\t\t\tname: \"Chalice Constellation\",\n\t\t\t\tsource: [[\"P24\", 89]],\n\t\t\t\tdescription: levels.map(function (n) {\n\t\t\t\t\treturn desc(\"Whenever I cast a healing spell using a spell slot, I can also heal myself or another within 30 ft for \" + (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier HP.\");\n\t\t\t\t}),\n\t\t\t\tadditional: levels.map(function (n) {\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 10 ? 1 : 2) + \"d8 healing\";\n\t\t\t\t}),\n\t\t\t},\n\t\t\t\"dragon constellation\": {\n\t\t\t\tname: \"Dragon Constellation\",\n\t\t\t\tsource: [[\"P24\", 89]],\n\t\t\t\tdescription: levels.map(function (n) {\n\t\t\t\t\tvar text = [\n\t\t\t\t\t\t\"When I make an Intelligence or Wisdom check, or make a Con save to maintain Concentration,\",\n\t\t\t\t\t\t\"I can treat a roll of 9 or lower on the d20 as a 10.\",\n\t\t\t\t\t];\n\t\t\t\t\tif (n >= 10) text[1] += \" I also gain 20 ft Fly Speed and can hover.\";\n\t\t\t\t\treturn desc(text);\n\t\t\t\t}),\n\t\t\t\tadditional: levels.map(function (n) {\n\t\t\t\t\treturn n < 10 ? \"\" : \"gain Fly Speed\";\n\t\t\t\t}),\n\t\t\t},\n\t\t\tautoSelectExtrachoices : [{\n\t\t\t\textrachoice: \"archer constellation\",\n\t\t\t}, {\n\t\t\t\textrachoice: \"chalice constellation\",\n\t\t\t}, {\n\t\t\t\textrachoice: \"dragon constellation\",\n\t\t\t}],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Cosmic Omen\",\n\t\t\tsource: [[\"P24\", 89]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc([\n\t\t\t\t\"When I finish a Long Rest, I roll a die to determine which omen I can use until my next LR.\",\n\t\t\t\t\"As a Reaction when I see a creature within 30 ft about to make a D20 test, I can use it to:\",\n\t\t\t\t\"**Weal (even)**. Add 1d6 to the total. **Woe (odd)**. Subtract 1d6 from the total.\",\n\t\t\t]),\n\t\t\taction: [[\"reaction\", \"\"]],\n\t\t\tusages: \"Wisdom modifier per \",\n\t\t\tusagescalc: \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery: \"Long Rest\",\n\t\t},\n\t\t\"subclassfeature10\": {\n\t\t\tname: \"Twinkling Constellations\",\n\t\t\tsource: [[\"P24\", 89]],\n\t\t\tminlevel: 10,\n\t\t\tdescription: \" [improves constellations, see 3rd page]\" + desc(\"While in my Starry Form, I can change the constellation at the start of each of my turns.\"),\n\t\t\tcalcChanges: {\n\t\t\t\tatkAdd: [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.theWea.isLuminousArrow && fields.Damage_Die.indexOf('1d8') !== -1) {\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('1d8', '2d8');\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'',\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature14\": {\n\t\t\tname: \"Full of Stars\",\n\t\t\tsource: [[\"P24\", 89]],\n\t\t\tminlevel: 14,\n\t\t\tdescription: desc(\"While in my Starry Form, I have Resistance to Bludgeoning, Piercing, and Slashing damage.\"),\n\t\t\tdmgres: [\n\t\t\t\t[\"Bludgeoning\", \"Bludgeon. (in SF)\"],\n\t\t\t\t[\"Piercing\",    \"Piercing (in SF)\"],\n\t\t\t\t[\"Slashing\",    \"Slashing (in SF)\"],\n\t\t\t],\n\t\t},\n\t},\n});\n\n// Fighter Subclasses\nAddSubClass(\"fighter\", \"battle master\", {\n\tregExpSearch: /^(?=.*(war|fighter|battle|martial))(?=.*master).*$/i,\n\tsubname: \"Battle Master\",\n\tfullname: \"Battle Master\",\n\tsource: [[\"P24\", 93]],\n\tabilitySave: 1,\n\tabilitySaveAlt: 2,\n\tfeatures: {\n\t\t\"subclassfeature3\": { // includes the level 10 and 18 Improved/Ultimate Combat Superiority features\n\t\t\tname: \"Combat Superiority\",\n\t\t\tsource: [[\"P24\", 93]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"I gain a number of Superiority Dice (SD) that I can use to fuel special Maneuvers.\"),\n\t\t\tadditional: levels.map(function (n) {\n\t\t\t\tif (n < 3) return \"\";\n\t\t\t\treturn \"d\" + (n < 10 ? 8 : n < 18 ? 10 : 12);\n\t\t\t}),\n\t\t\tlimfeaname: \"Superiority Dice\",\n\t\t\tusages: levels.map(function (n) {\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 4 : n < 15 ? 5 : 6;\n\t\t\t}),\n\t\t\trecovery: \"Short Rest\",\n\t\t},\n\t\t\"subclassfeature3.1\": {\n\t\t\tname: \"Maneuvers\",\n\t\t\tsource: [[\"P24\", 93]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc([\n\t\t\t\t\"I can expend one Superiority Die to do a Maneuver I know, but only one per attack.\",\n\t\t\t\t\"The save DC for my Maneuvers is 8 + my Prof. Bonus + my Str or Dex modifier (my choice).\",\n\t\t\t]),\n\t\t\tadditional: levels.map(function (n) {\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9) + \" known\";\n\t\t\t}),\n\t\t\textraTimes: levels.map(function (n) {\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9;\n\t\t\t}),\n\t\t\textraname: \"Maneuver Options\",\n\t\t\textrachoices: [\"Ambush\", \"Bait and Switch\", \"Commander's Strike\", \"Commanding Presence\", \"Disarming Attack\", \"Distracting Strike\", \"Evasive Footwork\", \"Feinting Attack\", \"Goading Attack\", \"Lunging Attack\", \"Maneuvering Attack\", \"Menacing Attack\", \"Parry\", \"Precision Attack\", \"Pushing Attack\", \"Rally\", \"Riposte\", \"Sweeping Attack\", \"Tactical Assessment\", \"Trip Attack\"],\n\t\t\t\"ambush\": {\n\t\t\t\tname: \"Ambush\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 94]],\n\t\t\t\tdescription: desc(\"When I roll for Initiative or Dex (Stealth), I can expend and add 1 SD unless I'm Incapacitated.\"),\n\t\t\t\tadditional: \"add SD to Stealth or Initiative\",\n\t\t\t},\n\t\t\t\"bait and switch\": {\n\t\t\t\tname: \"Bait and Switch\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 94]],\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"On my turn, I can expend 1 SD to switch places with a willing, not-Incapacitated creature within 5 ft, if I spend at least 5 ft of movement. This doesn't provoke Opportunity Attacks.\",\n\t\t\t\t\t\"The other creature or I (my choice) can add the SD to AC until the start of my next turn.\",\n\t\t\t\t]),\n\t\t\t\tadditional: \"add SD to my/ally's AC\",\n\t\t\t},\n\t\t\t\"commander's strike\": {\n\t\t\t\tname: \"Commander's Strike\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 94]],\n\t\t\t\tdescription: desc(\"When I take the Attack action on my turn, I can forgo one attack to direct a willing creature I can see or hear to strike. I expend 1 SD and that creature can immediately use its Reaction to make one attack with a weapon or Unarmed Strike, adding the SD to the attack's damage.\"),\n\t\t\t\tadditional: \"ally adds SD to damage\",\n\t\t\t},\n\t\t\t\"commanding presence\": {\n\t\t\t\tname: \"Commanding Presence\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I make an Intimidation, Performance, or Persuasion check, I can expend and add 1 SD.\"),\n\t\t\t\tadditional: \"add SD to Charisma skill check\",\n\t\t\t},\n\t\t\t\"disarming attack\": {\n\t\t\t\tname: \"Disarming Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I hit a creature with an attack, I can expend and add 1 SD to the damage. The target must make a Strength save or drop one object of my choice that it's holding in its space.\"),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t},\n\t\t\t\"distracting strike\": {\n\t\t\t\tname: \"Distracting Strike\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I hit a creature with an attack, I can expend and add 1 SD to the damage. The next attack vs. the target by another than me has Advantage, if made before my next turn starts.\"),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t},\n\t\t\t\"evasive footwork\": {\n\t\t\t\tname: \"Evasive Footwork\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"As a Bonus Action, I can expend 1 SD to take the Disengage action.\",\n\t\t\t\t\t\"I add the Superiority Die to my AC until the start of my next turn.\",\n\t\t\t\t]),\n\t\t\t\tadditional: \"add SD to AC\",\n\t\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t\t},\n\t\t\t\"feinting attack\": {\n\t\t\t\tname: \"Feinting Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"As a Bonus Action, I can expend 1 SD to gain Advantage on my next attack this turn against a creature within 5 ft. If that attack hits, I add the Superiority Die to its damage.\"),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t\t},\n\t\t\t\"goading attack\": {\n\t\t\t\tname: \"Goading Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I hit a creature with an attack, I can expend and add 1 SD to the damage. The target must make a Wis save or have Disadvantage on attacks not vs. me until my next turn ends.\"),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t},\n\t\t\t\"lunging attack\": {\n\t\t\t\tname: \"Lunging Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"As a Bonus Action, I can expend 1 SD to take the Dash action. If I move 5 ft in a straight line before hitting a melee attack in the same turn's Attack action, I add the SD to the damage.\"),\n\t\t\t\tadditional: \"add SD to melee damage\",\n\t\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t\t},\n\t\t\t\"maneuvering attack\": {\n\t\t\t\tname: \"Maneuvering Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"When I hit a creature with an attack, I can expend and add 1 SD to the damage.\",\n\t\t\t\t\t\"A willing creature of my choice who can see or hear me can then use its Reaction to move up to half its Speed without provoking an Opportunity Attack from the target of my attack.\",\n\t\t\t\t]),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t},\n\t\t\t\"menacing attack\": {\n\t\t\t\tname: \"Menacing Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I hit a creature with an attack, I can expend and add 1 SD to the damage. The target must make a Wisdom save or have the Frightened condition until the end of my next turn.\"),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t},\n\t\t\t\"parry\": {\n\t\t\t\tname: \"Parry\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"As a Reaction when I take damage from a melee attack, I can expend and roll 1 SD to reduce the damage by it plus my Strength or Dexterity modifier (my choice).\"),\n\t\t\t\tadditional: \"reduce damage taken by SD + Str/Dex mod\",\n\t\t\t\taction: [[\"reaction\", \"\"]],\n\t\t\t},\n\t\t\t\"precision attack\": {\n\t\t\t\tname: \"Precision Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I miss an attack, I can expend and add 1 SD to the roll, potentially causing it to hit.\"),\n\t\t\t\tadditional: \"add SD to attack roll\",\n\t\t\t},\n\t\t\t\"pushing attack\": {\n\t\t\t\tname: \"Pushing Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I hit a creature with a weapon or Unarmed Strike, I can expend and add 1 SD to the damage. If Large or smaller, it must make a Str save or be pushed up to 15 ft back from me.\"),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t},\n\t\t\t\"rally\": {\n\t\t\t\tname: \"Rally\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"As a Bonus Action, I can expend 1 SD to grant an ally within 30 ft who can see or hear me Temporary Hit Points equal to the SD roll plus half my Fighter level.\"),\n\t\t\t\tadditional: levels.map(function (n) {\n\t\t\t\t\treturn \"ally gains SD + \" + Math.floor(n/2) + \" Temp HP\";\n\t\t\t\t}),\n\t\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t\t},\n\t\t\t\"riposte\": {\n\t\t\t\tname: \"Riposte\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"As a Reaction when a creature misses me with a melee attack, I can expend 1 SD to make a melee attack with a weapon or Unarmed Strike against it, adding the SD to the damage.\"),\n\t\t\t\tadditional: \"add SD to melee damage\",\n\t\t\t\taction: [[\"reaction\", \"\"]],\n\t\t\t},\n\t\t\t\"sweeping attack\": {\n\t\t\t\tname: \"Sweeping Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I hit a creature with a melee weapon or Unarmed Strike, I can expend 1 SD to damage another creature within reach and within 5 ft of the first. If the original attack roll would hit the second creature, it takes 1 SD damage of the same type as the original attack.\"),\n\t\t\t\tadditional: \"deal SD damage\",\n\t\t\t},\n\t\t\t\"tactical assessment\": {\n\t\t\t\tname: \"Tactical Assessment\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I make a History, Investigation, or Insight check, I can expend and add 1 SD to it.\"),\n\t\t\t\tadditional: \"add SD to certain skill checks\",\n\t\t\t},\n\t\t\t\"trip attack\": {\n\t\t\t\tname: \"Trip Attack\",\n\t\t\t\textraname: \"Maneuver\",\n\t\t\t\tsource: [[\"P24\", 95]],\n\t\t\t\tdescription: desc(\"When I hit a creature with a weapon or Unarmed Strike, I can expend and add 1 SD to the damage. If the target is Large or smaller, it must make a Strength save or be knocked Prone.\"),\n\t\t\t\tadditional: \"add SD to damage\",\n\t\t\t},\n\t\t},\n\t\t\"subclassfeature3.2\": function () {\n\t\t\tvar a = {\n\t\t\t\tname: \"Student of War\",\n\t\t\t\tsource: [[\"P24\", 94]],\n\t\t\t\tminlevel: 3,\n\t\t\t\tdescription: ' #[Select option with \"Choose Feature\"]#' + desc(\"I gain proficiency with one type of Artisan's Tools and in one skill from the Fighter list. Use the \\\"Choose Feature\\\" button to select a skill.\"),\n\t\t\t\ttoolProfs: [[\"Artisan's tools\", 1]],\n\t\t\t\tchoices: [\"Acrobatics\", \"Animal Handling\", \"Athletics\", \"History\", \"Insight\", \"Intimidation\", \"Persuasion\", \"Perception\", \"Survival\"],\n\t\t\t};\n\t\t\tfor (var i = 0; i < a.choices.length; i++) {\n\t\t\t\tvar attr = a.choices[i].toLowerCase();\n\t\t\t\tvar skill = a.choices[i];\n\t\t\t\ta[attr] = {\n\t\t\t\t\tname: \"Student of War: \" + skill,\n\t\t\t\t\tdescription: desc(\"I gain proficiency with one type of Artisan's Tools of my choice and \" + skill + \".\"),\n\t\t\t\t\tskills: [skill],\n\t\t\t\t\tprereqeval: function (v) {\n\t\t\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn a;\n\t\t}(),\n\t\t\"subclassfeature7\": {\n\t\t\tname: \"Know Your Enemy\",\n\t\t\tsource: [[\"P24\", 94]],\n\t\t\tminlevel: 7,\n\t\t\tdescription: desc(\"As a Bonus Action, I can learn the Immunities, Resistances, and Vulnerabilities of a creature I can see within 30 ft. I can expend a Superiority Die to regain use of this.\"),\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t\tusages: 1,\n\t\t\trecovery: \"Long Rest\",\n\t\t\taltResource: \"1 SD\",\n\t\t},\n\t\t\"subclassfeature15\": {\n\t\t\tname: \"Relentless\",\n\t\t\tsource: [[\"P24\", 94]],\n\t\t\tminlevel: 15,\n\t\t\tdescription: desc(\"Once per turn when I do a Maneuver, I can use a d8 instead of expending a Superiority Die.\"),\n\t\t},\n\t},\n});\n\n// Monk Subclasses\nAddSubClass(\"monk\", \"shadow\", {\n\tregExpSearch: /^(?=.*shadow)((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\n\tsubname: \"Warrior of Shadow\",\n\tsubnameShort: \"Shadow\",\n\tsource: [[\"P24\", 105]],\n\tfeatures: {\n\t\t\"subclassfeature3\": {\n\t\t\tname: \"Shadow Arts\",\n\t\t\tsource: [[\"P24\", 105]],\n\t\t\tminlevel: 3,\n\t\t\tdescription: desc(\"I gain +60 ft Darkvision. I know the *Minor Illusion* cantrip, using Wis as spellcasting ability.\"),\n\t\t\tvision: [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\t\t\tspellFirstColTitle : \"Ki\",\n\t\t\tspellcastingBonus: [{\n\t\t\t\tname: \"Shadow Arts\",\n\t\t\t\tspells: [\"minor illusion\"],\n\t\t\t\tselection: [\"minor illusion\"],\n\t\t\t}, {\n\t\t\t\tname: \"Shadow Arts\",\n\t\t\t\tspells: [\"darkness\"],\n\t\t\t\tselection: [\"darkness\"],\n\t\t\t\tfirstCol: 1,\n\t\t\t}],\n\t\t\tspellChanges: {\n\t\t\t\t\"darkness\": {\n\t\t\t\t\tcomponents: \"\",\n\t\t\t\t\tcompMaterial: \"\",\n\t\t\t\t\tdescription: \"15-ft rad darkness; blocks other's vision/nonmagical light; dispels magical light SL \\u22642; my SoT move it\",\n\t\t\t\t\tdescriptionMetric: \"4,5m rad darkness; blocks other's vision/nonmagical light; dispels magical light SL \\u22642; my SoT move it\",\n\t\t\t\t\tchanges: \"With the Shadow Arts feature I can cast Darkness without spell components, can see through it, and can move it to a space within 60 ft of me at the start of each of my turns.\",\n\t\t\t\t},\n\t\t\t},\n\t\t\textraname: \"Focus Feature\",\n\t\t\t\"shadow arts: darkness\": {\n\t\t\t\tname: \"Shadow Arts: Darkness\",\n\t\t\t\textraname: \"Warrior of Shadow 3\",\n\t\t\t\tsource: [[\"P24\", 105]],\n\t\t\t\tdescription: desc(\"I can expend 1 Focus Point to cast *Darkness* without spell components. When I do so, I can see within its area and I can move it to a space within 60 ft at the start of each of my turns.\"),\n\t\t\t\tadditional: \"1 Focus Point\",\n\t\t\t},\n\t\t\tautoSelectExtrachoices: [{ extrachoice: \"shadow arts: darkness\" }],\n\t\t},\n\t\t\"subclassfeature6\": {\n\t\t\tname: \"Shadow Step\",\n\t\t\tsource: [[\"P24\", 105]],\n\t\t\tminlevel: 6,\n\t\t\tdescription: desc(\"As a Bonus Action while in Dim Light or Darkness, I can teleport up to 60 ft to an empty \" + (typePF ? \"space\" : \"spot\") + \" I can see in Dim Light or Darkness. I then gain Adv\" + (typePF ? \"antage\" : \".\") + \" on my next melee attack this turn.\"),\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t},\n\t\t\"subclassfeature11\": {\n\t\t\tname: \"Improved Shadow Step\",\n\t\t\tsource: [[\"P24\", 105]],\n\t\t\tminlevel: 11,\n\t\t\textraname: \"Focus Feature\",\n\t\t\t\"improved shadow step\": {\n\t\t\t\tname: \"Improved Shadow Step\",\n\t\t\t\textraname: \"Warrior of Shadow 11\",\n\t\t\t\tsource: [[\"P24\", 105]],\n\t\t\t\tdescription: desc(\"When I use Shadow Step, I can expend 1 Focus Point to remove the need to start and end in Dim Light or Darkness, and I can make an Unarmed Strike immediately after I teleport.\"),\n\t\t\t\tadditional: \"1 Focus Point\",\n\t\t\t},\n\t\t\tautoSelectExtrachoices: [{ extrachoice: \"improved shadow step\" }],\n\t\t},\n\t\t\"subclassfeature17\": {\n\t\t\tname: \"Cloak of Shadows\",\n\t\t\tsource: [[\"P24\", 105]],\n\t\t\tminlevel: 17,\n\t\t\taction: [[\"action\", \" (3 FP)\"]],\n\t\t\textraname: \"Focus Feature\",\n\t\t\t\"cloak of shadows\": {\n\t\t\t\tname: \"Cloak of Shadows\",\n\t\t\t\textraname: \"Warrior of Shadow 17\",\n\t\t\t\tsource: [[\"P24\", 105]],\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"As a Magic action while in Dim Light or Darkness, I can expend 3 Focus Points to shroud myself in shadows for 1 min, until I'm Incapacitated, or I end my turn in Bright Light.\",\n\t\t\t\t\t\"While shrouded, I'm Invisible, using Flurry of Blows requires no Focus Points, and I can move through occupied spaces as if they were Difficult Terrain, but can't end my turn in one.\",\n\t\t\t\t]),\n\t\t\t\tadditional: \"3 Focus Points\",\n\t\t\t},\n\t\t\tautoSelectExtrachoices: [{ extrachoice: \"cloak of shadows\" }],\n\t\t},\n\t},\n});\n\n// Paladin Subclasses\n\n// Ranger Subclasses\n\n// Rogue Subclasses\n\n// Sorcerer Subclasses\n\n// Warlock Subclasses\n\n// Wizard Subclasses\n\n// Backgrounds and their corresponding Background Features (which grant the origin feats)\nBackgroundList[\"artisan\"] = {\n\tregExpSearch: /^(?!.*guild)(?=.*artisan).*$/i,\n\tname: \"Artisan\",\n\tsource: [[\"P24\", 178]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Strength, Dexterity, and Intelligence\",\n\tskills: [\"Investigation\", \"Persuasion\"],\n\ttoolProfs: [[\"Artisan's tools\", 1]],\n\tgold: 32,\n\tequipleft: [\n\t\t[\"Artisan's tools (same as proficiency)\", \"\", 5],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t],\n\tfeature: \"Artisan\",\n\t// from PHB'14 (Guild Artisan):\n\ttraitsOriginName: \"Guild Artisan\",\n\ttraitsSourceString: \"PHB'14 133\",\n\ttrait: [\n\t\t\"I believe that anything worth doing is worth doing right. I can't help it\\u2015 I'm a perfectionist.\",\n\t\t\"I'm a snob who looks down on those who can't appreciate fine art.\",\n\t\t\"I always want to know how things work and what makes people tick.\",\n\t\t\"I'm full of witty aphorisms and have a proverb for every occasion.\",\n\t\t\"I'm rude to people who lack my commitment to hard work and fair play.\",\n\t\t\"I like to talk at length about my profession.\",\n\t\t\"I don't part with my money easily and will haggle tirelessly to get the best deal possible.\",\n\t\t\"I'm well known for my work, and I want to make sure everyone appreciates it. I'm always taken aback when people haven't heard of me.\",\n\t],\n\tideal: [\n\t\t\"**Community**. It is the duty of all civilized people to strengthen the bonds of community and the security of civilization. (Lawful)\",\n\t\t\"**Generosity**. My talents were given to me so that I could use them to benefit the world. (Good)\",\n\t\t\"**Freedom**. Everyone should be free to pursue his or her own livelihood. (Chaotic)\",\n\t\t\"**Greed**. I'm only in it for the money. (Evil)\",\n\t\t\"**People**. I'm committed to the people I care about, not to ideals. (Neutral)\",\n\t\t\"**Aspiration**. I work hard to be the best there is at my craft. (Any)\",\n\t],\n\tbond: [\n\t\t\"The workshop where I learned my trade is the most important place in the world to me.\",\n\t\t\"I created a great work for someone, and then found them unworthy to receive it. I'm still looking for someone worthy.\",\n\t\t\"I owe my guild a great debt for forging me into the person I am today.\",\n\t\t\"I pursue wealth to secure someone's love.\",\n\t\t\"One day I will return to my guild and prove that I am the greatest artisan of them all.\",\n\t\t\"I will get revenge on the evil forces that destroyed my place of business and ruined my livelihood.\",\n\t],\n\tflaw: [\n\t\t\"I'll do anything to get my hands on something rare or priceless.\",\n\t\t\"I'm quick to assume that someone is trying to cheat me.\",\n\t\t\"No one must ever learn that I once stole money from guild coffers.\",\n\t\t\"I'm never satisfied with what I have\\u2015 I always want more.\",\n\t\t\"I would kill to acquire a noble title.\",\n\t\t\"I'm horribly jealous of anyone who can outshine my handiwork. Everywhere I go, I'm surrounded by rivals.\",\n\t],\n\textra: [\n\t\t\"Select a Artisan Business\",\n\t\t\"Alchemists and apothecaries\",\n\t\t\"Armorers, locksmiths, and finesmiths\",\n\t\t\"Brewers, distillers, and vintners\",\n\t\t\"Calligraphers, scribes, and scriveners\",\n\t\t\"Carpenters, roofers, and plasterers\",\n\t\t\"Cartographers, surveyors, and chart-makers\",\n\t\t\"Cobblers and shoemakers\",\n\t\t\"Cooks and bakers\",\n\t\t\"Glassblowers and glaziers\",\n\t\t\"Jewelers and gemcutters\",\n\t\t\"Leatherworkers, skinners, and tanners\",\n\t\t\"Masons and stonecutters\",\n\t\t\"Painters, limners, and sign-makers\",\n\t\t\"Potters and tile-makers\",\n\t\t\"Shipwrights and sailmakers\",\n\t\t\"Smiths and metal-forgers\",\n\t\t\"Tinkers, pewterers, and casters\",\n\t\t\"Wagon-makers and wheelwrights\",\n\t\t\"Weavers and dyers\",\n\t\t\"Woodcarvers, coopers, and bowyers\",\n\t],\n};\nBackgroundFeatureList[\"artisan\"] = {\n\tdescription: \"I began mopping floors and scrubbing counters in an artisan's workshop for a few coppers per day as soon as I was strong enough to carry a bucket. When I was old enough to apprentice, I learned to create basic crafts of my own, as well as how to sweet talk the occasional demanding customer. My trade has also given me a keen eye for detail.\",\n\tsource: [[\"P24\", 178]],\n\tfeatsAdd: [\"Crafter\"],\n};\nBackgroundList[\"charlatan\"] = {\n\tregExpSearch: /charlatan/i,\n\tname: \"Charlatan\",\n\tsource: [[\"P24\", 179]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Dexterity, Constitution, and Charisma\",\n\tskills: [\"Deception\", \"Sleight of Hand\"],\n\ttoolProfs: [[\"Forgery Kit\", \"Dex\"]],\n\tgold: 15,\n\tequipleft: [\n\t\t[\"Forgery kit\", \"\", 5],\n\t\t[\"Costume clothes\", \"\", 1],\n\t],\n\tequipright: [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t],\n\tfeature: \"Charlatan\",\n\t// from PHB'14:\n\ttraitsSourceString: \"PHB'14 128\",\n\ttrait: [\n\t\t\"I fall in and out of love easily, and am always pursuing someone.\",\n\t\t\"I have a joke for every occasion, especially occasions where humor is inappropriate.\",\n\t\t\"Flattery is my preferred trick for getting what I want.\",\n\t\t\"I'm a born gambler who can't resist taking a risk for a potential payoff.\",\n\t\t\"I lie about almost everything, even when there's no good reason to.\",\n\t\t\"Sarcasm and insults are my weapons of choice.\",\n\t\t\"I keep multiple holy symbols on me and invoke whatever deity might come in useful at any given moment.\",\n\t\t\"I pocket anything I see that might have some value.\",\n\t],\n\tideal: [\n\t\t\"**Independence**. I am a free spirit \\u2015 no one tells me what to do. (Chaotic)\",\n\t\t\"**Fairness**. I never target people who can't afford to lose a few coins. (Lawful)\",\n\t\t\"**Charity**. I distribute the money I acquire to the people who really need it. (Good)\",\n\t\t\"**Creativity**. I never run the same con twice. (Chaotic)\",\n\t\t\"**Friendship**. Material goods come and go. Bonds of friendship last forever. (Good)\",\n\t\t\"**Aspiration**. I'm determined to make something of myself. (Any)\",\n\t],\n\tbond: [\n\t\t\"I fleeced the wrong person and must work to ensure that this individual never crosses paths with me or those I care about.\",\n\t\t\"I owe everything to my mentor \\u2015 a horrible person who's probably rotting in jail somewhere.\",\n\t\t\"Somewhere out there, I have a child who doesn't know me. I'm making the world better for him or her.\",\n\t\t\"I come from a noble family, and one day I'll reclaim my lands and title from those who stole them from me.\",\n\t\t\"A powerful person killed someone I love. Someday soon, I'll have my revenge.\",\n\t\t\"I swindled and ruined a person who didn't deserve it. I seek to atone for my misdeeds but might never be able to forgive myself.\",\n\t],\n\tflaw: [\n\t\t\"I can't resist a pretty face.\",\n\t\t\"I'm always in debt. I spend my ill-gotten gains on decadent luxuries faster than I bring them in.\",\n\t\t\"I'm convinced that no one could ever fool me the way I fool others.\",\n\t\t\"I'm too greedy for my own good. I can't resist taking a risk if there's money involved.\",\n\t\t\"I can't resist swindling people who are more powerful than me.\",\n\t\t\"I hate to admit it and will hate myself for it, but I'll run and preserve my own hide if the going gets tough.\",\n\t],\n\textra: [\n\t\t\"Select a Favorite Scheme\",\n\t\t\"Cheat at games of chance\",\n\t\t\"Shave coins, forge documents\",\n\t\t\"User/manipulator\",\n\t\t\"Change identity\",\n\t\t\"Sleight-of-hand cons\",\n\t\t\"Sell junk as expensive necessities\",\n\t],\n};\nBackgroundFeatureList[\"charlatan\"] = {\n\tdescription: \"Once I was old enough to order an ale, I soon had a favorite stool in every tavern within ten miles of where I was born. As I traveled the circuit from public house to watering hole, I learned to prey on unfortunates who were in the market for a comforting lie or two - perhaps a sham potion or forged ancestry records.\",\n\tsource: [[\"P24\", 179]],\n\tfeatsAdd: [\"Skilled\"],\n};\nBackgroundList[\"entertainer\"] = {\n\tregExpSearch: /(entertainer|actor|dancer|fire.?eater|jester|juggler|instrumentalist|poet|singer|storyteller|tumbler)/i,\n\tname: \"Entertainer\",\n\tsource: [[\"P24\", 180]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Strength, Dexterity, and Charisma\",\n\tskills: [\"Acrobatics\", \"Performance\"],\n\ttoolProfs: [[\"Musical Instrument\", 1]],\n\tgold: 11,\n\tequipleft: [\n\t\t[\"Costume clothes\", 2, 1],\n\t\t[\"Mirror\", \"\", 0.5],\n\t\t[\"Perfume\", \"\", \"\"],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Musical instrument (choose one)\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t],\n\tfeature: \"Entertainer\",\n\t// from PHB'14:\n\ttraitsSourceString: \"PHB'14 130\",\n\ttrait: [\n\t\t\"I know a story relevant to almost every situation.\",\n\t\t\"Whenever I come to a new place, I collect local rumors and spread gossip.\",\n\t\t\"I'm a hopeless romantic, always searching for that 'special someone'.\",\n\t\t\"Nobody stays angry at me or around me for long, since I can defuse any amount of tension.\",\n\t\t\"I love a good insult, even one directed at me.\",\n\t\t\"I get bitter if I'm not the center of attention.\",\n\t\t\"I'll settle for nothing less than perfection.\",\n\t\t\"I change my mood or my mind as quickly as I change key in a song.\",\n\t],\n\tideal: [\n\t\t\"**Beauty**. When I perform, I make the world better than it was. (Good)\",\n\t\t\"**Tradition**. The stories, legends, and songs of the past must never be forgotten, for they teach us who we are. (Lawful)\",\n\t\t\"**Creativity**. The world is in need of new ideas and bold action. (Chaotic)\",\n\t\t\"**Greed**. I'm only in it for the money and fame. [Evil]\",\n\t\t\"**People**. I like seeing the smiles on people's faces when I perform. That's all that matters. (Neutral)\",\n\t\t\"**Honesty**. Art should reflect the soul; it should come from within and reveal who we really are. (Any)\",\n\t],\n\tbond: [\n\t\t\"My instrument is my most treasured possession, and it reminds me of someone I love.\",\n\t\t\"Someone stole my precious instrument, and someday I'll get it back.\",\n\t\t\"I want to be famous, whatever it takes.\",\n\t\t\"I idolize a hero of the old tales and measure my deeds against that person's.\",\n\t\t\"I will do anything to prove myself superior to my hated rival.\",\n\t\t\"I would do anything for the other members of my old troupe.\",\n\t],\n\tflaw: [\n\t\t\"I'll do anything to win fame and renown.\",\n\t\t\"I'm a sucker for a pretty face.\",\n\t\t\"A scandal prevents me from ever going home again. That kind of trouble seems to follow me around.\",\n\t\t\"I once satirized a noble who still wants my head. It was a mistake that I will likely repeat.\",\n\t\t\"I have trouble keeping my true feelings hidden. My sharp tongue lands me in trouble.\",\n\t\t\"Despite my best efforts, I am unreliable to my friends.\",\n\t],\n\textra: [\n\t\t\"Select an Entertainer Routine\",\n\t\t\"Actor\",\n\t\t\"Dancer\",\n\t\t\"Fire-eater\",\n\t\t\"Jester\",\n\t\t\"Juggler\",\n\t\t\"Instrumentalist\",\n\t\t\"Poet\",\n\t\t\"Singer\",\n\t\t\"Storyteller\",\n\t\t\"Tumbler\",\n\t],\n};\nBackgroundFeatureList[\"entertainer\"] = {\n\tdescription: \"I spent much of my youth following roving fairs and carnivals, performing odd jobs for musicians and acrobats in exchange for lessons. I may have learned how to walk a tightrope, how to play a lute in a distinct style, or how to recite poetry with impeccable diction. To this day, I thrive on applause and long for the stage.\",\n\tsource: [[\"P24\", 180]],\n\tfeatsAdd: [\"Musician\"],\n};\nBackgroundList[\"farmer\"] = {\n\tregExpSearch: /farmer/i,\n\tname: \"Farmer\",\n\tsource: [[\"P24\", 180]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Strength, Constitution, and Wisdom\",\n\tskills: [\"Animal Handling\", \"Nature\"],\n\ttoolProfs: [[\"Carpenter's Tools\", \"Str\"]],\n\tgold: 30,\n\tequipleft: [\n\t\t[\"Iron pot\", \"\", 10],\n\t\t[\"Shovel\", \"\", 5],\n\t\t[\"Healer's kit\", \"\", 3],\n\t\t[\"Carpenter's tools\", \"\", 6],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t\t[\"Sickle\", \"\", 2],\n\t],\n\tequip1stPage: {\n\t\tweapons: [\"Sickle\"],\n\t},\n\tfeature: \"Farmer\",\n\t// from PHB'14 (Folk Hero):\n\ttraitsOriginName: \"Folk Hero\",\n\ttraitsSourceString: \"PHB'14 131\",\n\ttrait: [\n\t\t\"I judge people by their actions, not their words.\",\n\t\t\"If someone is in trouble, I'm always ready to lend help.\",\n\t\t\"When I set my mind to something, I follow through no matter what gets in my way.\",\n\t\t\"I have a strong sense of fair play and always try to find the most equitable solution to arguments.\",\n\t\t\"I'm confident in my own abilities and do what I can to instill confidence in others.\",\n\t\t\"Thinking is for other people. I prefer action.\",\n\t\t\"I misuse long words in an attempt to sound smarter.\",\n\t\t\"I get bored easily. When am I going to get on with my destiny?\",\n\t],\n\tideal: [\n\t\t\"**Respect**. People deserve to be treated with dignity and respect. (Good)\",\n\t\t\"**Fairness**. No one should get preferential treatment before the law, and no one is above the law. (Lawful)\",\n\t\t\"**Freedom**. Tyrants must not be allowed to oppress the people. (Chaotic)\",\n\t\t\"**Might**. If I become strong, I can take what I want\\u2015 what I deserve. (Evil)\",\n\t\t\"**Sincerity**. There's no good in pretending to be something I'm not. (Neutral)\",\n\t\t\"**Destiny**. Nothing and no one can steer me away from my higher calling. (Any)\",\n\t],\n\tbond: [\n\t\t\"I have a family, but I have no idea where they are. One day, I hope to see them again.\",\n\t\t\"I worked the land, I love the land, and I will protect the land.\",\n\t\t\"A proud noble once gave me a horrible beating, and I will take my revenge on any bully I encounter.\",\n\t\t\"My tools are symbols of my past life, and I carry them so that I will never forget my roots.\",\n\t\t\"I protect those who cannot protect themselves.\",\n\t\t\"I wish my childhood sweetheart had come with me to pursue my destiny.\",\n\t],\n\tflaw: [\n\t\t\"The tyrant who rules my land will stop at nothing to see me killed.\",\n\t\t\"I'm convinced of the significance of my destiny, and blind to my shortcomings and the risk of failure.\",\n\t\t\"The people who knew me when I was young know my shameful secret, so I can never go home again.\",\n\t\t\"I have a weakness for the vices of the city, especially hard drink.\",\n\t\t\"Secretly, I believe that things would be better if I were a tyrant lording over the land.\",\n\t\t\"I have trouble trusting in my allies.\",\n\t],\n\textra: [\n\t\t\"Select a Defining Event\",\n\t\t\"I stood up to a tyrant's agents\",\n\t\t\"I saved people during a natural disaster\",\n\t\t\"I stood alone against a terrible monster\",\n\t\t\"I stole from a corrupt merchant for the poor\",\n\t\t\"I led a militia to fight off an invading army\",\n\t\t\"I stole weapons from a tyrant to arm the people\",\n\t\t\"I trained peasantry to fight a tyrant with farm tools\",\n\t\t\"A decree was rescinded after I led a protest against it\",\n\t\t\"A magical creature gave me a blessing or insight\",\n\t\t\"I rose to leadership in a lord's army\",\n\t],\n};\nBackgroundFeatureList[\"farmer\"] = {\n\tdescription: \"I grew up close to the land. Years tending animals and cultivating the earth rewarded me with patience and good health. I have a keen appreciation for nature's bounty alongside a healthy respect for nature's wrath.\",\n\tsource: [[\"P24\", 180]],\n\tfeatsAdd: [\"Tough\"],\n};\nBackgroundList[\"guard\"] = {\n\tregExpSearch: /guard/i,\n\tname: \"Guard\",\n\tsource: [[\"P24\", 181]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Strength, Intelligence, and Wisdom\",\n\tskills: [\"Athletics\", \"Perception\"],\n\ttoolProfs: [[\"Gaming Set\", 1]],\n\tgold: 12,\n\tequipleft: [\n\t\t[\"Manacles\", \"\", 6],\n\t\t[\"Hooded lantern\", \"\", 2],\n\t\t[\"Gaming set (same as proficiency)\", \"\", \"\"],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t\t[\"Spear\", \"\", 3],\n\t\t[\"Light crossbow\", \"\", 5],\n\t\t[\"Crossbow bolt case, with:\", \"\", 1],\n\t\t[\"- Crossbow bolts\", 20, 0.075],\n\t],\n\tequip1stPage: {\n\t\tweapons: [\"Spear\", \"Light Crossbow\"],\n\t\tammo: [[\"Bolts\", 20]],\n\t},\n\tfeature: \"Guard\",\n};\nBackgroundFeatureList[\"guard\"] = {\n\tdescription: \"My feet ache when I remember the countless hours I spent at my post in the tower. I was trained to keep one eye looking outside the wall watching for marauders sweeping from the nearby forest, and my other eye looking inside the wall searching for cut purses and troublemakers.\",\n\tsource: [[\"P24\", 181]],\n\tfeatsAdd: [\"Alert\"],\n};\nBackgroundList[\"guide\"] = {\n\tregExpSearch: /^(?!.*urban)(?=.*(guide|outlander|forester|trapper|homesteader|exile|outcast|bounty.?hunter|tribal nomad|hunter.?gatherer|tribal.?marauder)).*$/i,\n\tname: \"Guide\",\n\tsource: [[\"P24\", 181]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Dexterity, Constitution, and Wisdom\",\n\tskills: [\"Stealth\", \"Survival\"],\n\ttoolProfs: [[\"Cartographer's Tools\", \"Wis\"]],\n\tgold: 3,\n\tequipleft: [\n\t\t[\"Bedroll\", \"\", 7],\n\t\t[\"Cartographer's tools\", \"\", 6],\n\t\t[\"Two-person tent\", \"\", 20],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t\t[\"Shortbow\", \"\", 2],\n\t\t[\"Quiver, with:\", \"\", 1],\n\t\t[\"- Arrows\", 20, 0.05],\n\t],\n\tequip1stPage: {\n\t\tweapons: [\"Shortbow\"],\n\t\tammo: [[\"Arrows\", 20]],\n\t},\n\tfeature: \"Guide\",\n\t// from PHB'14 (Outlander):\n\ttraitsOriginName: \"Outlander\",\n\ttraitsSourceString: \"PHB'14 137\",\n\ttrait: [\n\t\t\"I'm driven by a wanderlust that led me away from home.\",\n\t\t\"I watch over my friends as if they were a litter of newborn pups.\",\n\t\t\"I once ran twenty-five miles without stopping to warn to my clan of an approaching orc horde. I'd do it again if I had to.\",\n\t\t\"I have a lesson for every situation, drawn from observing nature.\",\n\t\t\"I place no stock in wealthy or well-mannered folk. Money and manners won't save you from a hungry owlbear.\",\n\t\t\"I'm always picking things up, absently fiddling with them, and sometimes accidentally breaking them.\",\n\t\t\"I feel far more comfortable around animals than people.\",\n\t\t\"I was, in fact, raised by wolves.\",\n\t],\n\tideal: [\n\t\t\"**Change**. Life is like the seasons, in constant change, and we must change with it. (Chaotic)\",\n\t\t\"**Greater Good**. It is each person's responsibility to make the most happiness for the whole tribe. (Good)\",\n\t\t\"**Honor**. If I dishonor myself, I dishonor my whole clan. (Lawful)\",\n\t\t\"**Might**. The strongest are meant to rule. (Evil)\",\n\t\t\"**Nature**. The natural world is more important than all the constructs of civilization. (Neutral)\",\n\t\t\"**Glory**. I must earn glory in battle, for myself and my clan. (Any)\",\n\t],\n\tbond: [\n\t\t\"My family, clan, or tribe is the most important thing in my life, even when they are far from me.\",\n\t\t\"An injury to the unspoiled wilderness of my home is an injury to me.\",\n\t\t\"I will bring terrible wrath down on the evildoers who destroyed my homeland.\",\n\t\t\"I am the last of my tribe, and it is up to me to ensure their names enter legend.\",\n\t\t\"I suffer awful visions of a coming disaster and will do anything to prevent it.\",\n\t\t\"It is my duty to provide children to sustain my tribe.\",\n\t],\n\tflaw: [\n\t\t\"I am too enamored of ale, wine, and other intoxicants.\",\n\t\t\"There's no room for caution in a life lived to the fullest.\",\n\t\t\"I remember every insult I've received and nurse a silent resentment toward anyone who's ever wronged me.\",\n\t\t\"I am slow to trust members of other races, tribes, and societies.\",\n\t\t\"Violence is my answer to almost any challenge.\",\n\t\t\"Don't expect me to save those who can't save themselves. It is nature's way that the strong thrive and the weak perish.\",\n\t],\n\textra: [\"Select an Origin\",\n\t\t\"Forester\",\n\t\t\"Trapper\",\n\t\t\"Homesteader\",\n\t\t\"Guide\",\n\t\t\"Exile or outcast\",\n\t\t\"Bounty hunter\",\n\t\t\"Pilgrim\",\n\t\t\"Tribal nomad\",\n\t\t\"Hunter-gatherer\",\n\t\t\"Tribal marauder\",\n\t],\n};\nBackgroundFeatureList[\"guide\"] = {\n\tdescription: \"I came of age outdoors, far from settled lands. My home was anywhere I chose to spread my bedroll. The wilderness has wonders like strange monsters, pristine forests, streams, overgrown ruins, and I learned to fend for myself as I explored them. From time to time, I guided nature priests who taught me the fundamentals of using the magic of the wild.\",\n\tsource: [[\"P24\", 181]],\n\tfeatsAdd: [{ key: \"magic initiate\", choice: \"druid\" }],\n};\nBackgroundList[\"hermit\"] = {\n\tregExpSearch: /hermit/i,\n\tname: \"Hermit\",\n\tsource: [[\"P24\", 182]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Constitution, Wisdom, and Charisma\",\n\tskills: [\"Medicine\", \"Religion\"],\n\ttoolProfs: [[\"Herbalism Kit\", \"Int\"]],\n\tgold: 16,\n\tequipleft: [\n\t\t[\"Bedroll\", \"\", 7],\n\t\t[\"Book (philosophy)\", \"\", 5],\n\t\t[\"Herbalism kit\", \"\", 3],\n\t\t[\"Lamp\", \"\", 1],\n\t\t[\"Oil, flasks of\", 3, 1],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t\t[\"Quarterstaff\", \"\", 4],\n\t],\n\tequip1stPage: {\n\t\tweapons: [\"Quarterstaff\"],\n\t},\n\tfeature: \"Hermit\",\n\t// from PHB'14:\n\ttraitsSourceString: \"PHB'14 134\",\n\ttrait: [\n\t\t\"I've been isolated for so long that I rarely speak, preferring gestures and the occasional grunt.\",\n\t\t\"I am utterly serene, even in the face of disaster.\",\n\t\t\"The leader of my community had something wise to say on every topic, and I am eager to share that wisdom.\",\n\t\t\"I feel tremendous empathy for all who suffer.\",\n\t\t\"I'm oblivious to etiquette and social expectations.\",\n\t\t\"I connect everything that happens to me to a grand, cosmic plan.\",\n\t\t\"I often get lost in my own thoughts and contemplation, becoming oblivious to my surroundings.\",\n\t\t\"I am working on a grand philosophical theory and love sharing my ideas.\",\n\t],\n\tideal: [\n\t\t\"**Greater Good**. My gifts are meant to be shared with all, not used for my own benefit. (Good)\",\n\t\t\"**Logic**. Emotions must not cloud our sense of what is right and true, or our logical thinking. (Lawful)\",\n\t\t\"**Free Thinking**. Inquiry and curiosity are the pillars of progress. (Chaotic)\",\n\t\t\"**Power**. Solitude and contemplation are paths toward mystical or magical power. (Evil)\",\n\t\t\"**Live and Let Live**. Meddling in the affairs of others only causes trouble. (Neutral)\",\n\t\t\"**Self-Knowledge**. If you know yourself, there's nothing left to know. (Any)\",\n\t],\n\tbond: [\n\t\t\"Nothing is more important than the other members of my hermitage, order, or association.\",\n\t\t\"I entered seclusion to hide from the ones who might still be hunting me. I must someday confront them.\",\n\t\t\"I'm still seeking the enlightenment I pursued in my seclusion, and it still eludes me.\",\n\t\t\"I entered seclusion because I loved someone I could not have.\",\n\t\t\"Should my discovery come to light, it could bring ruin to the world.\",\n\t\t\"My isolation gave me great insight into a great evil that only I can destroy.\",\n\t],\n\tflaw: [\n\t\t\"Now that I've returned to the world, I enjoy its delights a little too much.\",\n\t\t\"I harbor dark, bloodthirsty thoughts that my isolation and meditation failed to quell.\",\n\t\t\"I am dogmatic in my thoughts and philosophy.\",\n\t\t\"I let my need to win arguments overshadow friendships and harmony.\",\n\t\t\"I'd risk too much to uncover a lost bit of knowledge.\",\n\t\t\"I like keeping secrets and won't share them with anyone.\",\n\t],\n\textra: [\n\t\t\"Select a Life of Seclusion\",\n\t\t\"Searching for spiritual enlightenment\",\n\t\t\"Living in accordance with a religious order\",\n\t\t\"Exiled for a crime I didn't commit\",\n\t\t\"Retreated from society after a life-altering event\",\n\t\t\"Worked on my art, literature, music, or manifesto\",\n\t\t\"Commune with nature, far from civilization\",\n\t\t\"Caretaker of an ancient ruin or relic\",\n\t\t\"Pilgrim in search of a thing of spiritual significance\",\n\t],\n};\nBackgroundFeatureList[\"hermit\"] = {\n\tdescription: \"I spent my early years secluded in a hut or monastery located well beyond the outskirts of the nearest settlement. In those days, my only companions were the creatures of the forest and those who would occasionally visit to bring news of the outside world and supplies. The solitude allowed me to spend many hours pondering the mysteries of creation.\",\n\tsource: [[\"P24\", 182]],\n\tfeatsAdd: [\"Healer\"],\n};\nBackgroundList[\"merchant\"] = {\n\tregExpSearch: /^(?!.*guild)(?=.*merchant).*$/i,\n\tname: \"Merchant\",\n\tsource: [[\"P24\", 182]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Constitution, Intelligence, and Charisma\",\n\tskills: [\"Animal Handling\", \"Persuasion\"],\n\ttoolProfs: [[\"Navigator's Tools\", \"Wis\"]],\n\tgold: 22,\n\tequipleft: [\n\t\t[\"Navigator's tools\", \"\", 2],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t],\n\tfeature: \"Merchant\",\n\t// from PHB'14 (Guild Merchant variant for the Guild Artisan):\n\ttraitsOriginName: \"Guild Merchant\",\n\ttraitsSourceString: \"PHB'14 133\",\n\textra: [\n\t\t\"Select a Business\",\n\t\t\"Trader\",\n\t\t\"Caravan master\",\n\t\t\"Shopkeeper\",\n\t],\n};\nBackgroundFeatureList[\"merchant\"] = {\n\tdescription: \"I was apprenticed to a trader, caravan master, or shopkeeper, learning the fundamentals of commerce. I traveled broadly and earned a living by buying and selling raw materials artisans need to practice their craft, or their finished works. I transported goods from one place to another or bought them from traveling traders and sold them in my own shop.\",\n\tsource: [[\"P24\", 182]],\n\tfeatsAdd: [\"Lucky\"],\n};\nBackgroundList[\"noble\"] = {\n\tregExpSearch: /^(?!.*(waterdhavian|waterdeep|knight))(?=.*noble).*$/i,\n\tname: \"Noble\",\n\tsource: [[\"P24\", 183]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Strength, Intelligence, and Charisma\",\n\tskills: [\"History\", \"Persuasion\"],\n\ttoolProfs: [[\"Gaming Set\", 1]],\n\tgold: 25,\n\tequipleft: [\n\t\t[\"Gaming set (same as proficiency)\", \"\", \"\"],\n\t\t[\"Perfume\", \"\", \"\"],\n\t],\n\tequipright: [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Purse (with coins)\", \"\", 1],\n\t],\n\tfeature: \"Noble\",\n\t// from PHB'14:\n\ttraitsSourceString: \"PHB'14 135\",\n\ttrait: [\n\t\t\"My eloquent flattery makes everyone I talk to feel like the most wonderful and important person in the world.\",\n\t\t\"The common folk love me for my kindness and generosity.\",\n\t\t\"No one could doubt by looking at my regal bearing that I am a cut above the unwashed masses.\",\n\t\t\"I take great pains to always look my best and follow the latest fashions.\",\n\t\t\"I don't like to get my hands dirty, and I won't be caught dead in unsuitable accommodations.\",\n\t\t\"Despite my noble birth, I do not place myself above other folk. We all have the same blood.\",\n\t\t\"My favor, once lost, is lost forever.\",\n\t\t\"If you do me an injury, I will crush you, ruin your name, and salt your fields.\",\n\t],\n\tideal: [\n\t\t\"**Respect**. Respect is due to me because of my position, but all people regardless of station deserve to be treated with dignity. (Good)\",\n\t\t\"**Responsibility**. It is my duty to respect the authority of those above me, just as those below me must respect mine. (Lawful)\",\n\t\t\"**Independence**. I must prove that I can handle myself without the coddling of my family. (Chaotic)\",\n\t\t\"**Power**. If I can attain more power, no one will tell me what to do. (Evil)\",\n\t\t\"**Family**. Blood runs thicker than water. (Any)\",\n\t\t\"**Noble Obligation**. It is my duty to protect and care for the people beneath me. (Good)\",\n\t],\n\tbond: [\n\t\t\"I will face any challenge to win the approval of my family.\",\n\t\t\"My house's alliance with another noble family must be sustained at all costs.\",\n\t\t\"Nothing is more important than the other members of my family.\",\n\t\t\"I am in love with the heir of a family that my family despises.\",\n\t\t\"My loyalty to my sovereign is unwavering.\",\n\t\t\"The common folk must see me as a hero of the people.\",\n\t],\n\tflaw: [\n\t\t\"I secretly believe that everyone is beneath me.\",\n\t\t\"I hide a truly scandalous secret that could ruin my family forever.\",\n\t\t\"I too often hear veiled insults and threats in every word addressed to me, and I'm quick to anger.\",\n\t\t\"I have an insatiable desire for carnal pleasures.\",\n\t\t\"In fact, the world does revolve around me.\",\n\t\t\"By my words and actions, I often bring shame to my family.\",\n\t],\n};\nBackgroundFeatureList[\"noble\"] = {\n\tdescription: \"I was raised in a castle, surrounded by wealth, power, and privilege. My family of minor aristocrats ensured that I received a first-class education, some of which I appreciated and some of which I resented. My time in the castle, especially the many hours I spent observing my family at court, also taught me a great deal about leadership.\",\n\tsource: [[\"P24\", 183]],\n\tfeatsAdd: [\"Skilled\"],\n};\nBackgroundList[\"sailor\"] = {\n\tregExpSearch: /sailor/i,\n\tname: \"Sailor\",\n\tsource: [[\"P24\", 184]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Strength, Dexterity, and Wisdom\",\n\tskills: [\"Acrobatics\", \"Perception\"],\n\ttoolProfs: [[\"Navigator's Tools\", \"Wis\"]],\n\tgold: 20,\n\tequipleft: [\n\t  [\"Navigator's tools\", \"\", 2],\n\t  [\"Rope\", \"\", 5],\n\t],\n\tequipright: [\n\t  [\"Traveler's clothes\", \"\", 4],\n\t  [\"Belt pouch (with coins)\", \"\", 1],\n\t  [\"Dagger\", \"\", 1],\n\t],\n\tequip1stPage: {\n\t\tweapons: [\"Dagger\"],\n\t},\n\tfeature: \"Sailor\",\n\t// from PHB'14:\n\ttraitsSourceString: \"PHB'14 139\",\n\ttrait: [\n\t\t\"My friends know they can rely on me, no matter what.\",\n\t\t\"I work hard so that I can play hard when the work is done.\",\n\t\t\"I enjoy sailing into new ports and making new friends over a flagon of ale.\",\n\t\t\"I stretch the truth for the sake of a good story.\",\n\t\t\"To me, a tavern brawl is a nice way to get to know a new city.\",\n\t\t\"I never pass up a friendly wager.\",\n\t\t\"My language is as foul as an otyugh nest.\",\n\t\t\"I like a job well done, especially if I can convince someone else to do it.\",\n\t],\n\tideal: [\n\t\t\"**Respect**. The thing that keeps a ship together is mutual respect between captain and crew. (Good)\",\n\t\t\"**Fairness**. We all do the work, so we all share in the rewards. (Lawful)\",\n\t\t\"**Freedom**. The sea is freedom\\u2015 the freedom to go anywhere and do anything. (Chaotic)\",\n\t\t\"**Mastery**. I'm a predator, and the other ships on the sea are my prey. (Evil)\",\n\t\t\"**People**. I'm committed to my crewmates, not to ideals. (Neutral)\",\n\t\t\"**Aspiration**. Someday I'll own my own ship and chart my own destiny. (Any)\",\n\t],\n\tbond: [\n\t\t\"I'm loyal to my captain first, everything else second.\",\n\t\t\"The ship is most important\\u2015 crewmates and captains come and go.\",\n\t\t\"I'll always remember my first ship.\",\n\t\t\"In a harbor town, I have a paramour whose eyes nearly stole me from the sea.\",\n\t\t\"I was cheated out of my fair share of the profits, and I want to get my due.\",\n\t\t\"Ruthless pirates murdered my captain and crewmates, plundered our ship, and left me to die. Vengeance will be mine.\",\n\t],\n\tflaw: [\n\t\t\"I follow orders, even if I think they're wrong.\",\n\t\t\"I'll say anything to avoid having to do extra work.\",\n\t\t\"Once someone questions my courage, I never back down no matter how dangerous the situation.\",\n\t\t\"Once I start drinking, it's hard for me to stop.\",\n\t\t\"I can't help but pocket loose coins and other trinkets I come across.\",\n\t\t\"My pride will probably lead to my destruction.\",\n\t],\n};\nBackgroundFeatureList[\"sailor\"] = {\n\tdescription: \"I lived as a seafarer, wind at my back and decks swaying beneath my feet. I've perched on bar stools in more ports of call than I can remember, faced mighty storms, and swapped stories with folk who live beneath the waves.\",\n\tsource: [[\"P24\", 184]],\n\tfeatsAdd: [\"Tavern Brawler\"],\n};\nBackgroundList[\"scribe\"] = {\n\tregExpSearch: /scribe/i,\n\tname: \"Scribe\",\n\tsource: [[\"P24\", 184]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Dexterity, Intelligence, and Wisdom\",\n\tskills: [\"Investigation\", \"Perception\"],\n\ttoolProfs: [[\"Calligrapher's Supplies\", \"Dex\"]],\n\tgold: 23,\n\tequipleft: [\n\t\t[\"Calligrapher's supplies\", \"\", 5],\n\t\t[\"Lamp\", \"\", 1],\n\t\t[\"Oil, flasks of\", 3, 1],\n\t\t[\"Parchment, sheets of\", 12, \"\"],\n\t],\n\tequipright: [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t],\n\tfeature: \"Scribe\",\n};\nBackgroundFeatureList[\"scribe\"] = {\n\tdescription: \"I spent formative years in a scriptorium, monastery, or government agency, where I learned to write with a clear hand and produce finely written texts. Perhaps I scribed government documents, or copied tomes, or perhaps I've written poetry, prose, or scholarly research. I have an attention to detail, helping me avoid mistakes in that I copy or create.\",\n\tsource: [[\"P24\", 184]],\n\tfeatsAdd: [\"Skilled\"],\n};\nBackgroundList[\"wayfarer\"] = {\n\tregExpSearch: /wayfarer/i,\n\tname: \"Wayfarer\",\n\tsource: [[\"P24\", 185]],\n\tscorestxt: \"+2 to one and +1 to another -or- +1 to all three: Dexterity, Wisdom, and Charisma\",\n\tskills: [\"Insight\", \"Stealth\"],\n\ttoolProfs: [[\"Thieves' Tools\", \"Dex\"]],\n\tgold: 16,\n\tequipleft: [\n\t\t[\"Bedroll\", \"\", 7],\n\t\t[\"Gaming set (choose one)\", \"\", \"\"],\n\t\t[\"Thieves' tools\", \"\", 1],\n\t],\n\tequipright: [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\n\t\t[\"Dagger\", 2, 1],\n\t],\n\tequip1stPage: {\n\t\tweapons: [\"Dagger\", \"Dagger (off-hand)\"],\n\t},\n\tfeature: \"Wayfarer\",\n\t// from PHB'14 (Urchin):\n\ttraitsOriginName: \"Urchin\",\n\ttraitsSourceString: \"PHB'14 141\",\n\ttrait: [\n\t\t\"I keep scraps of food and trinkets hidden away in my pockets.\",\n\t\t\"I ask questions all the time.\",\n\t\t\"I like to squeeze into compact places where nobody can harm me.\",\n\t\t\"I sleep with my back to solid surface, with all that I own embraced tightly in my arms.\",\n\t\t\"I have bad manners and eat like a pig.\",\n\t\t\"I expect that anybody who's nice to me is hiding malicious intent.\",\n\t\t\"I eschew bathing.\",\n\t\t\"I say, without reserve, what other people are implying or masking.\",\n\t],\n\tideal: [\n\t\t\"**Respect**. Everybody, no matter their riches, deserves respect. (Good)\",\n\t\t\"**Community**. We have to take look out for each other, because nobody else will do it for us. (Lawful)\",\n\t\t\"**Change**. The low rise up, and the high and mighty come down. Change is natural. (Chaotic)\",\n\t\t\"**Retribution**. The rich need to be shown how it is to live and die in the poor quarters. (Evil)\",\n\t\t\"**People**. I help those who help me\\u2015 that is what lets us stay alive. (Neutral)\",\n\t\t\"**Aspiration**. I'm going to prove that I'm worthy of a better life. (Any)\",\n\t],\n\tbond: [\n\t\t\"My town or city is my home, and I'll battle those that threaten it.\",\n\t\t\"I'm the benefactor of an orphanage so others may be kept from enduring what I was forced to endure.\",\n\t\t\"I owe my life to another urchin who taught me the ways of living in the gutters.\",\n\t\t\"I owe a debt I can never repay to the person who showed me sympathy.\",\n\t\t\"I got away from my life of poverty by robbing an influential person, and I'm wanted for it.\",\n\t\t\"No one else should have to suffer the difficulties I've been through.\",\n\t],\n\tflaw: [\n\t\t\"I will run away from a fight if I'm outnumbered.\",\n\t\t\"A gold piece already has a lot of value to me, and I'll do just about anything for more of it.\",\n\t\t\"I will never completely trust another. I only trust myself.\",\n\t\t\"I would rather use an unfair advantage than fight honorably.\",\n\t\t\"It's not theft if I have more use for it than someone else.\",\n\t\t\"People who are incapable of taking care of themselves get what they deserve.\",\n\t],\n};\nBackgroundFeatureList[\"wayfarer\"] = {\n\tdescription: \"I grew up on the streets surrounded by similarly ill-fated castoffs, a few of them friends and a few of them rivals. I slept where I could and did odd jobs for food. At times, when the hunger became unbearable, I resorted to theft. Still, I never lost my pride and never abandoned hope. Fate is not yet finished with me.\",\n\tsource: [[\"P24\", 185]],\n\tfeatsAdd: [\"Lucky\"],\n};\n\n// Species\nRaceList[\"aasimar\"] = {\n\tregExpSearch: /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel)))).*$/i,\n\tname: \"Aasimar\",\n\tsource: [[\"P24\", 186]],\n\tplural: \"Aasimar\",\n\tsize: [3, 4],\n\tspeed: { walk: { spd: 30, enc: 20 } },\n\tvision: [[\"Darkvision\", 60]],\n\tdmgres: [\"Necrotic\", \"Radiant\"],\n\tspellcastingAbility: 6,\n\tspellcastingBonus: [{\n\t\tname: \"Light Bearer\",\n\t\tspells: [\"light\"],\n\t\tselection: [\"light\"],\n\t}],\n\tfeatures: {\n\t\t\"healing hands\": {\n\t\t\tname: \"Healing Hands\",\n\t\t\tsource: [[\"P24\", 186]],\n\t\t\tminlevel: 1,\n\t\t\tusages: 1,\n\t\t\trecovery: \"long rest\",\n\t\t\taction: [[\"action\", \"\"]],\n\t\t\tadditional: ProficiencyBonusList.map(function(n) { return n + \"d4 healing\"; }),\n\t\t},\n\t\t\"celestial revelation\": {\n\t\t\tname: \"Celestial Revelation\",\n\t\t\tsource: [[\"P24\", 186]],\n\t\t\tminlevel: 3,\n\t\t\tusages: 1,\n\t\t\trecovery: \"long rest\",\n\t\t\tadditional: ProficiencyBonusList.map(function(n) { return \"+\" + n + \" damage\"; }),\n\t\t\taction: [[\"bonus action\", \"\"]],\n\t\t\ttoNotesPage: [{\n\t\t\t\tname: \"Celestial Revelation\",\n\t\t\t\tnote: [\n\t\t\t\t\t\"As a Bonus Action once per Long Rest, I can transform using one of the options below (choose the option each time). This lasts for 1 min or until I end it (no action).\",\n\t\t\t\t\t\"While transformed, once on each of my turns when I deal damage with an attack or spell, I can deal my Proficiency Bonus in extra damage to one target. This extra damage's type is Necrotic for Necrotic Shroud, or Radiant for Heavenly Wings and Inner Radiance.\",\n\t\t\t\t\t\" **\\u2022 Heavenly Wings**. Two spectral wings sprout from my back temporarily. Until the transformation ends, I have a Fly Speed equal to my Speed.\",\n\t\t\t\t\t\"While transformed like this, the extra damage on attacks/spells mentioned above is Radiant.\",\n\t\t\t\t\t\" **\\u2022 Inner Radiance**. Searing light temporarily radiates from my eyes and mouth. For the duration, I shed Bright Light in a 10-ft radius and Dim Light for an additional 10 ft, and at the end of each of my turns, each creature within 10 ft of me takes Radiant damage equal to my Proficiency Bonus\",\n\t\t\t\t\t\"While transformed like this, the extra damage on attacks/spells mentioned above is Radiant.\",\n\t\t\t\t\t\" **\\u2022 Necrotic Shroud**. My eyes briefly become pools of darkness, and flightless wings sprout from my back temporarily. Creatures other than my allies within 10 ft of me must succeed on a Charisma saving throw (DC 8 + Cha mod + Prof. Bonus) or have the Frightened condition until the end of my next turn.\",\n\t\t\t\t\t\"While transformed like this, the extra damage on attacks/spells mentioned above is Necrotic.\",\n\t\t\t\t],\n\t\t\t\tadditional: \"1\\xD7 per long rest\",\n\t\t\t}],\n\t\t},\n\t},\n\ttrait: [\n\t\t\"**Aasimar**\",\n\t\t\"##\\u25C6 Healing Hands##. As a Magic action once per Long Rest, I can touch a creature and restore HP to it for a number of d4s equal to my Proficiency Bonus.\",\n\t\t\"##\\u25C6 Light Bearer##. I know the *Light* cantrip. Charisma is my spellcasting ability for it.\",\n\t\t\"##\\u25C6 Celestial Revelation## (level 3). As a Bonus Action once per Long Rest, I can transform for 1 min or until I end it (no action). Once on each of my turns while transformed, I can deal my Prof. Bonus in extra damage. I choose how I transform each time. See Notes page.\",\n\t].join(\"\\n\"),\n\t// from VGM:\n\tage : \" reach adulthood in their late teens and live around 160 years\",\n\theight: \" are about 2-4 ft (small) or 4-7 ft (medium) tall (4'8\\\" + 2d10\\\")\",\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\n\theightMetric: \" are about 60-120 cm (small) or 120-210 cm (medium) tall (145 + 5d10 cm)\",\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\n};\n\n// Origin feats\nFeatsList[\"crafter\"] = {\n\tname: \"Crafter\",\n\tsource: [[\"P24\", 200]],\n\ttype: \"origin\",\n\tdescription: \"I received a 20% discount on nonmagical items. I'm proficient with three Artisan's Tools of choice from the Fast Crafting table. Fast Crafting. I can craft one item from that table during a Long Rest, which lasts until I finish another Long Rest. I need to have the associated tools and proficiency to do this. [See Notes page]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Tool Proficiency***. You gain proficiency with three different Artisan's Tools of your choice from the Fast Crafting table.\",\n\t\t\"***Discount***. Whenever you buy a nonmagical item, you receive a 20 percent discount on it.\",\n\t\t\"***Fast Crafting***. When you finish a Long Rest, you can craft one piece of gear from the Fast Crafting table, provided you have the Artisan's Tools associated with that item and have proficiency with those tools. The item lasts until you finish another Long Rest, at which point the item falls apart.\",\n\t\t[\n\t\t\t[\"Artisan's Tools\", \"Crafted Gear\"],\n\t\t\t[\"Carpenter's Tools\", \"Ladder, Torch\"],\n\t\t\t[\"Leatherworker's Tools\", \"Crossbow Bolt Case, Map or Scroll Case, Pouch\"],\n\t\t\t[\"Mason's Tools\", \"Block and Tackle\"],\n\t\t\t[\"Potter's Tools\", \"Jug, Lamp\"],\n\t\t\t[\"Smith's Tools\", \"Ball Bearings, Bucket, Caltrops, Grappling Hook, Iron Pot\"],\n\t\t\t[\"Tinker's Tools\", \"Bell, Shovel, Tinderbox\"],\n\t\t\t[\"Weaver's Tools\", \"Basket, Rope, Net, Tent\"],\n\t\t\t[\"Woodcarver's Tools\", \"Club, Greatclub, Quarterstaff\"],\n\t\t],\n\t],\n\ttoolProfs: [[\"Artisan's tools\", 3]],\n\ttoNotesPage: [\n\t\t{\n\t\t\tname: \"Fast Crafting\",\n\t\t\tnote: [\n\t\t\t\t\"When I finish a Long Rest, I can craft one piece of gear from the table below, provided I have the Artisan's Tools associated with that item and have proficiency with those tools. The item lasts until I finish another Long Rest, at which point the item falls apart.\",\n\t\t\t\t[\n\t\t\t\t\t[\"Artisan's Tools\", \"Crafted Gear\"],\n\t\t\t\t\t[\"Carpenter's Tools\", \"Ladder, Torch\"],\n\t\t\t\t\t[\"Leatherworker's Tools\", \"Crossbow Bolt Case, Map or Scroll Case, Pouch\"],\n\t\t\t\t\t[\"Mason's Tools\", \"Block and Tackle\"],\n\t\t\t\t\t[\"Potter's Tools\", \"Jug, Lamp\"],\n\t\t\t\t\t[\"Smith's Tools\", \"Ball Bearings, Bucket, Caltrops, Grappling Hook, Iron Pot\"],\n\t\t\t\t\t[\"Tinker's Tools\", \"Bell, Shovel, Tinderbox\"],\n\t\t\t\t\t[\"Weaver's Tools\", \"Basket, Rope, Net, Tent\"],\n\t\t\t\t\t[\"Woodcarver's Tools\", \"Club, Greatclub, Quarterstaff\"],\n\t\t\t\t],\n\t\t\t],\n\t\t},\n\t],\n};\nFeatsList[\"healer\"] = {\n\tname: \"Healer\",\n\tsource: [[\"P24\", 201]],\n\ttype: \"origin\",\n\tdescription: \"##Battle Medic##. As a Utilize action, I can expend 1 use of a Healer's Kit to allow a creature within 5 ft of me to expend 1 Hit Die and regain HP equal to the HD's roll plus my Proficiency Bonus. ##Healing Rerolls##. Whenever I roll a 1 on the die to heal using a spell or this feat, I can reroll the die but must use the new roll.\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Battle Medic***. If you have a Healer's Kit, you can expend one use of it and tend to a creature within 5 feet of yourself as a Utilize action. That creature can expend one of its Hit Point Dice, and you then roll that die. The creature regains a number of Hit Points equal to the roll plus your Proficiency Bonus.\",\n\t\t\"***Healing Rerolls***. Whenever you roll a die to determine the number of Hit Points you restore with a spell or with this feat's Battle Medic benefit, you can reroll the die if it rolls a 1, and you must use the new roll.\",\n\t],\n\taction: [[\"action\", \"Battle Medic\"]],\n};\nFeatsList[\"lucky\"] = {\n\tname: \"Lucky\",\n\tsource: [[\"P24\", 201]],\n\ttype: \"origin\",\n\tdescription: [\n\t\t\"I gain a number of ##Luck Points## equal to my Proficiency Bonus that I regain \"+ (typePF ? \"after\" : \"when\") + \" I finish a Long Rest. I can expend 1 of them to:\",\n\t\t\" \\u2022 Give myself Advantage on a D20 Test.\",\n\t\t\" \\u2022 Impose Disadvantage on an attack roll against me.\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Luck Points***. You have a number of Luck Points equal to your Proficiency Bonus and can spend the points on the benefits below. You regain your expended Luck Points when you finish a Long Rest.\",\n\t\t\"***Advantage***. When you roll a d20 for a D20 Test, you can spend 1 Luck Point to give yourself Advantage on the roll.\",\n\t\t\"***Disadvantage***. When a creature rolls a d20 for an attack roll against you, you can spend 1 Luck Point to impose Disadvantage on that roll.\",\n\t],\n\tlimfeaname: \"Luck Points\",\n\tusages: \"Proficiency bonus per \",\n\tusagescalc: \"event.value = Number(How('Proficiency Bonus'));\",\n\trecovery: \"long rest\",\n};\nFeatsList[\"musician\"] = {\n\tname: \"Musician\",\n\tsource: [[\"P24\", 201]],\n\ttype: \"origin\",\n\tdescription: [\n\t\t\"At the end of a Short or Long Rest, I can play an instrument I'm proficient with to give Heroic Inspiration to a number of allies up to my Proficiency Bonus, if they hear the song.\",\n\t\t\"I gain proficiency with three Musical Instruments of my choice.\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Instrument Training***. You gain proficiency with three Musical Instruments of your choice.\",\n\t\t\"***Encouraging Song***. As you finish a Short or Long Rest, you can play a song on a Musical Instrument with which you have proficiency and give Heroic Inspiration to allies who hear the song. The number of allies you can affect in this way equals your Proficiency Bonus.\",\n\t],\n\ttoolProfs: [[\"Musical Instrument\", 3]],\n};\nFeatsList[\"tavern brawler\"] = {\n\tname: \"Tavern Brawler\",\n\tsource: [[\"P24\", 202]],\n\ttype: \"origin\",\n\tdescription: \"Once per turn when I hit a creature with an Unarmed Strike as part of the Attack action on my turn, I can deal damage to the target and also push it 5 ft away from me. My Unarmed Strike deals 1d4 damage and I can reroll a 1 on its damage die, but must use the new roll. I'm proficient with improvised weapons. \",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Enhanced Unarmed Strike***. When you hit with your Unarmed Strike and deal damage, you can deal Bludgeoning damage equal to 1d4 plus your Strength modifier instead of the normal damage of an Unarmed Strike.\",\n\t\t\"***Damage Rerolls***. Whenever you roll a damage die for your Unarmed Strike, you can reroll the die if it rolls a 1, and you must use the new roll.\",\n\t\t\"***Improvised Weaponry***. You have proficiency with improvised weapons.\",\n\t\t\"***Push***. When you hit a creature with an Unarmed Strike as part of the Attack action on your turn, you can deal damage to the target and also push it 5 feet away from you. You can use this benefit only once per turn.\",\n\t],\n\tweaponProfs: [false, false, [\"Improvised weapons\"]],\n\tcalcChanges: {\n\t\tatkAdd: [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == \"improvised weapon\" || /improvised/i.test(v.WeaponName + v.baseWeaponName) || /improvised weapon/i.test(v.theWea.type)) {\n\t\t\t\t\tfields.Proficiency = true;\n\t\t\t\t};\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\tfields.Description += (fields.Description ? \"; \" : \"\") + \"1/turn also push 5 ft; reroll 1 on damage\";\n\t\t\t\t\tif (fields.Damage_Die == 1) fields.Damage_Die = \"1d4\";\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My Unarmed Strike deals 1d4 damage instead of 1.\\n \\u2022 Whenever I roll a 1 on the damage die of an Unarmed Strike, I can reroll it but must use the new roll.\\n \\u2022 Once per turn as part of the Attack action on my turn, I can deal damage and push the target 5 ft away from me.\",\n\t\t],\n\t},\n};\nFeatsList[\"tough\"] = {\n\tname: \"Tough\",\n\tsource: [[\"P24\", 202]],\n\ttype: \"origin\",\n\tdescription: \"My Hit Point maximum increases by an amount equal to twice my character level when I gain this feat. Whenever I gain a character level thereafter, my Hit Point maximum increases by an additional 2 Hit Points.\",\n\tdescriptionFull: [\n\t\t\"Your Hit Point maximum increases by an amount equal to twice your character level when you gain this feat. Whenever you gain a character level thereafter, your Hit Point maximum increases by an additional 2 Hit Points.\",\n\t],\n\tcalcChanges: {\n\t\thp: function (totalHD) {\n\t\t\treturn [totalHD * 2, '\\n + ' + totalHD + ' \\xD7 2 from the Tough feat (' + (totalHD * 2) + ')', true];\n\t\t},\n\t},\n};\n// General feats\nFeatsList[\"actor\"] = {\n\tname: \"Actor\",\n\tsource: [[\"P24\", 202]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Charisma 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && What(\"Cha\") >= 13;\n\t},\n\tdescription: \"While disguised as a specific person, I have Advantage on Charisma (Deception or Performance) checks to convince others that I am that person. I am able to mimic the sounds and speech of others. Wisdom (Insight) check (DC 8 + Cha mod + Prof Bonus) to determine the effect is faked. [+1 Charisma]\",\n\tcalculate: 'var dc = 8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Cha Mod\")); event.value = \"While disguised as a specific person, I have Advantage on Charisma (Deception or Performance) checks to convince others that I am that person. I am able to mimic the sounds and speech of others. DC \" + dc + \" (8 + Cha mod + Prof Bonus) Wisdom (Insight) check to determine the effect is faked. [+1 Charisma]\"',\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Impersonation***. While you're disguised as a real or fictional person, you have Advantage on Charisma (Deception or Performance) checks to convince others that you are that person.\",\n\t\t\"***Mimicry***. You can mimic the sounds of other creatures, including speech. A creature that hears the mimicry must succeed on a Wisdom (Insight) check to determine the effect is faked (8 plus your Charisma modifier and Proficiency Bonus).\",\n\t],\n\tscores: [0, 0, 0, 0, 0, 1],\n};\nFeatsList[\"athlete\"] = {\n\tname: \"Athlete\",\n\tsource: [[\"P24\", 202]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Strength or Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Str\") >= 13 || What(\"Dex\") >= 13);\n\t},\n\tdescription: [\n\t\t\"I gain a Climb Speed equal to my Speed.\",\n\t\t\"I can make a running Long or High Jump after moving only 5 ft.\",\n\t\t\"I can right myself from the Prone condition with only 5 ft of movement. [+1 Str or Dex]\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Climb Speed***. You gain a Climb Speed equal to your Speed.\",\n\t\t\"***Hop Up***. When you have the Prone condition, you can right yourself with only 5 feet of movement.\",\n\t\t\"***Jumping***. You can make a running Long or High Jump after moving only 5 feet.\",\n\t],\n\tspeed: { climb: { spd: \"walk\", enc: \"walk\" } },\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: [\n\t\t\t\"I gain a Climb Speed equal to my Speed.\",\n\t\t\t\"I can make a running Long or High Jump after moving only 5 ft.\",\n\t\t\t\"I can right myself from the Prone condition with only 5 ft of movement. [+1 Strength]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: [\n\t\t\t\"I gain a Climb Speed equal to my Speed.\",\n\t\t\t\"I can make a running Long or High Jump after moving only 5 ft.\",\n\t\t\t\"I can right myself from the Prone condition with only 5 ft of movement. [+1 Dexterity]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"charger\"] = {\n\tname: \"Charger\",\n\tsource: [[\"P24\", 202]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Strength or Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Str\") >= 13 || What(\"Dex\") >= 13);\n\t},\n\tdescription: \"When I take the Dash action, my Speed increases by 10 ft for that action. If I move at least 10 ft in a straight line towards an enemy and hit it with a melee attack as part of the Attack action, once per turn I may either deal +1d8 damage or push the target 10 ft away from me if it's no more than 1 size larger. [+1 Str or Dex]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Improved Dash***. When you take the Dash action, your Speed increases by 10 feet for that action.\",\n\t\t\"***Charge Attack***. If you move at least 10 feet in a straight line toward a target immediately before hitting it with a melee attack roll as part of the Attack action, choose one of the following effects: gain a 1d8 bonus to the attack's damage roll, or push the target up to 10 feet away if it is no more than one size larger than you. You can use this benefit only once on each of your turns.\",\n\t],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"When I take the Dash action, my Speed increases by 10 ft for that action. If I move at least 10 ft in a straight line towards an enemy and hit it with a melee attack as part of the Attack action, once per turn I may either deal +1d8 damage or push the target 10 ft away from me if it's no more than 1 size larger. [+1 Str\" + (typePF ? \"]\" : \"ength]\"),\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"When I take the Dash action, my Speed increases by 10 ft for that action. If I move at least 10 ft in a straight line towards an enemy and hit it with a melee attack as part of the Attack action, once per turn I may either deal +1d8 damage or push the target 10 ft away from me if it's no more than 1 size larger. [+1 Dex\" + (typePF ? \"]\" : \"terity]\"),\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"chef\"] = {\n\tname: \"Chef\",\n\tsource: [[\"P24\", 202]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"I'm proficient with Cook's Utensils. In a Short Rest I can cook for 4+Prof Bonus creatures. If they eat and spend 1+ HD in that rest, they heal +1d8 HP. In 1 hour or after a Long Rest, I can cook Prof Bonus of special treats that last for 8 hours. As a Bonus Action, one can eat a treat to gain my Prof Bonus of Temp HP.\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Constitution or Wisdom score by 1, to a maximum of 20.\",\n\t\t\"***Cook's Utensils***. You gain proficiency with Cook's Utensils if you don't already have it.\",\n\t\t\"***Replenishing Meal***. As part of a Short Rest, you can cook special food if you have ingredients and Cook's Utensils on hand. You can prepare enough of this food for a number of creatures equal to 4 plus your Proficiency Bonus. At the end of the Short Rest, any creature who eats the food and spends one or more Hit Dice to regain Hit Points regains an extra 1d8 Hit Points.\",\n\t\t\"***Bolstering Treats***. With 1 hour of work or when you finish a Long Rest, you can cook a number of treats equal to your Proficiency Bonus if you have ingredients and Cook's Utensils on hand. These special treats last 8 hours after being made. A creature can use a Bonus Action to eat one of those treats to gain a number of Temporary Hit Points equal to your Proficiency Bonus.\",\n\t],\n\ttoolProfs: [\"Cook's Utensils\"],\n\ttoNotesPage: [{\n\t\tname: \"Replenishing Meal\",\n\t\tnote: [\"As part of a Short Rest, I can cook special food if I have ingredients and Cook's Utensils on hand. I can prepare enough of this food for a number of creatures equal to 4 plus my Proficiency Bonus. At the end of the Short Rest, any creature who eats the food and spends one or more Hit Dice to regain Hit Points regains an extra 1d8 Hit Points.\"],\n\t}, {\n\t\tname: \"Bolstering Treats\",\n\t\tnote: [\n\t\t\t\"With 1 hour of work or when I finish a Long Rest, I can cook a number of treats equal to my Proficiency Bonus if I have ingredients and Cook's Utensils on hand. These special treats last 8 hours after being made.\",\n\t\t\t\"As a Bonus Action, a creature can eat one of those treats to gain a number of Temporary Hit Points equal to my Proficiency Bonus.\",\n\t\t],\n\t\tamendTo: \"Replenishing Meal\",\n\t}],\n\tchoices: [\"Constitution\", \"Wisdom\"],\n\tchoicesNotInMenu: true,\n\t\"constitution\": {\n\t\tdescription: \"I'm proficient with Cook's Utensils. In a Short Rest I can cook for 4+Prof Bonus creatures. If they eat and spend 1+ HD in that rest, they heal +1d8 HP. In 1 hour or after a Long Rest, I can cook Prof Bonus of special treats that last for 8 hours. As a Bonus Action, one can eat a treat to gain my Prof Bonus of Temp HP.\" + (typePF ? \"\" : \" [+1 Constitution]\"),\n\t\tscores: [0, 0, 1, 0, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: \"I'm proficient with Cook's Utensils. In a Short Rest I can cook for 4+Prof Bonus creatures. If they eat and spend 1+ HD in that rest, they heal +1d8 HP. In 1 hour or after a Long Rest, I can cook Prof Bonus of special treats that last for 8 hours. As a Bonus Action, one can eat a treat to gain my Prof Bonus of Temp HP.\" + (typePF ? \"\" : \" [+1 Wisdom]\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n};\nFeatsList[\"crossbow expert\"] = {\n\tname: \"Crossbow Expert\",\n\tsource: [[\"P24\", 203]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && What(\"Dex\") >= 13;\n\t},\n\tdescription: \"I ignore the Loading property of Hand, Light, and Heavy Crossbows. Being within 5 ft of an enemy doesn't impose Disadvantage on my crossbow attacks. I can add my ability modifier to the damage of off-hand attacks I make with crossbows that have the light property. [+1 Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Ignore Loading***. You ignore the Loading property of the Hand Crossbow, Heavy Crossbow, and Light Crossbow (all called crossbows elsewhere in this feat). If you're holding one of them, you can load a piece of ammunition into it even if you lack a free hand.\",\n\t\t\"***Firing in Melee***. Being within 5 feet of an enemy doesn't impose Disadvantage on your attack rolls with crossbows.\",\n\t\t\"***Dual Wielding***. When you make the extra attack of the Light property, you can add your ability modifier to the damage of the extra attack if that attack is with a crossbow that has the Light property and you aren't already adding that modifier to the damage.\",\n\t],\n\tscores: [0, 1, 0, 0, 0, 0],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (/(hand|heavy|light) crossbow/i.test(v.baseWeaponName)) {\n\t\t\t\t\tfields.Description = fields.Description.replace(/([,;]? ?loading|loading[,;]? ?)/i, '');\n\t\t\t\t\tif (v.isOffHand && /\\blight\\b/i.test(fields.Description))  {\n\t\t\t\t\t\toutput.modToDmg = true;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"I ignore the Loading property of the Hand Crossbow, Heavy Crossbow, and Light Crossbow.\",\n\t\t],\n\t},\n};\nFeatsList[\"crusher\"] = {\n\tname: \"Crusher\",\n\tsource: [[\"P24\", 203]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"Once per turn when my attack deals Bludgeoning damage to a creature up to one size larger than me, I can move it 5 ft to an empty space. When I score a Critical Hit that deals Bludgeoning damage to a creature, attack rolls against that creature have Advantage until the start of my next turn. [+1 Str or Con]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Constitution score by 1, to a maximum of 20.\",\n\t\t\"***Push***. Once per turn, when you hit a creature with an attack that deals Bludgeoning damage, you can move it 5 feet to an unoccupied space if the target is no more than one size larger than you.\",\n\t\t\"***Enhanced Critical***. When you score a Critical Hit that deals Bludgeoning damage to a creature, attack rolls against that creature have Advantage until the start of your next turn.\",\n\t],\n\tchoices: [\"Strength\", \"Constitution\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"Once per turn when my attack deals Bludgeoning damage to a creature up to one size larger than me, I can move it 5 ft to an empty space. When I score a Critical Hit that deals Bludgeoning damage to a creature, attack rolls against that creature have Advantage until the start of my next turn. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"constitution\": {\n\t\tdescription: \"Once per turn when my attack deals Bludgeoning damage to a creature up to one size larger than me, I can move it 5 ft to an empty space. When I score a Critical Hit that deals Bludgeoning damage to a creature, attack rolls against that creature have Advantage until the start of my next turn. [+1 Constitution]\",\n\t\tscores: [0, 0, 1, 0, 0, 0],\n\t},\n};\nFeatsList[\"defensive duelist\"] = {\n\tname: \"Defensive Duelist\",\n\tsource: [[\"P24\", 203]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && What(\"Dex\") >= 13;\n\t},\n\tdescription: \"##Parry##. As a reaction when I'm holding a Finesse weapon and another creature hits me with a melee attack, I can add my Proficiency Bonus to my Armor Class, potentially causing the attack to miss me. I gain this bonus to my AC against melee attacks until the start of my next turn. [+1 Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Parry***. If you're holding a Finesse weapon and another creature hits you with a melee attack, you can take a Reaction to add your Proficiency Bonus to your Armor Class, potentially causing the attack to miss you. You gain this bonus to your AC against melee attacks until the start of your next turn.\",\n\t],\n\tscores: [0, 1, 0, 0, 0, 0],\n\taction: [[\"reaction\", \"Parry\"]],\n};\nFeatsList[\"dual wielder\"] = {\n\tname: \"Dual Wielder\",\n\tsource: [[\"P24\", 203]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Strength or Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Str\") >= 13 || What(\"Dex\") >= 13);\n\t},\n\tdescription: \"I can draw and stow 2 non-Two-Handed weapons at a time. If I take the Attack action on my turn to attack with a Light weapon, I can make an off-hand attack with another non-Two-Handed weapon as a Bonus Action. I don't add my ability modifier to this attack's damage unless it is negative. [+1 Str or Dex]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Enhanced Dual Wielding***. When you take the Attack action on your turn and attack with a weapon that has the Light property, you can make one extra attack as a Bonus Action later on the same turn with a different weapon, which must be a Melee weapon that lacks the Two-Handed property. You don't add your ability modifier to the extra attack's damage unless that modifier is negative.\",\n\t\t\"***Quick Draw***. You can draw or stow two weapons that lack the Two-Handed property when you would normally be able to draw or stow only one.\",\n\t],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"I can draw and stow 2 non-Two-Handed weapons at a time. If I take the Attack action on my turn to attack with a Light weapon, I can make an off-hand attack with another non-Two-Handed weapon as a Bonus Action. I don't add my ability modifier to this attack's damage unless it is negative. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"I can draw and stow 2 non-Two-Handed weapons at a time. If I take the Attack action on my turn to attack with a Light weapon, I can make an off-hand attack with another non-Two-Handed weapon as a Bonus Action. I don't add my ability modifier to this attack's damage unless it is negative. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"durable\"] = {\n\tname: \"Durable\",\n\tsource: [[\"P24\", 203]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: [\n\t\t\"##Defy Death##. I have Advantage on Death Saving Throws.\",\n\t\t\"##Speedy Recovery##. As a Bonus Action, I can expend and roll one of my Hit Dice to regain a number of Hit Points equal to the roll. [+1 Constitution]\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Constitution score by 1, to a maximum of 20.\",\n\t\t\"***Defy Death***. You have Advantage on Death Saving Throws.\",\n\t\t\"***Speedy Recovery***. As a Bonus Action, you can expend one of your Hit Point Dice, roll the die, and regain a number of Hit Points equal to the roll.\",\n\t],\n\tscores: [0, 0, 1, 0, 0, 0],\n\tsavetxt: {\n\t\ttext: [\"Adv. on Death Saves\"],\n\t},\n\taction: [[\"bonus action\", \"Speedy Recovery (1 HD)\"]],\n};\nFeatsList[\"elemental adept\"] = {\n\tname: \"Elemental Adept\",\n\tsource: [[\"P24\", 203]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Spellcasting or Pact Magic Feature\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.isSpellcastingClass;\n\t},\n\tdescription: \"Choose one of the damage types: Acid, Cold, Fire, Lightning, or Thunder. Spells I cast ignore resistance to damage from this damage type. For any spell I cast that deals this damage type, I can treat any 1 on a damage die as a 2. [+1 Int, Wis, or Cha]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Energy Mastery***. Choose one of the following damage types: Acid, Cold, Fire, Lightning, or Thunder. Spells you cast ignore Resistance to damage of the chosen type. In addition, when you roll damage for a spell you cast that deals damage of that type, you can treat any 1 on a damage die as a 2.\",\n\t\t\"***Repeatable***. You can take this feat more than once, but you must choose a different damage type each time for Energy Mastery.\",\n\t],\n\tscorestxt: \"+1 Intelligence, Wisdom, or Charisma\",\n\tallowDuplicates: true,\n\tchoices: [\"Acid Energy Mastery\", \"Cold Energy Mastery\", \"Fire Energy Mastery\", \"Lightning Energy Mastery\", \"Thunder Energy Mastery\"],\n\t\"acid energy mastery\": {\n\t\tname: \"Elemental Adept [Acid]\",\n\t\tdescription: [\n\t\t\t\"Spells cast by me ignore Resistance to Acid damage.\",\n\t\t\t\"When I roll damage for a spell casted by me that deals Acid damage, I can treat any 1 on a damage die as a 2.\",\n\t\t\t\"[+1 Intelligence, Wisdom, or Charisma]\",\n\t\t].join(\"\\n\"),\n\t},\n\t\"cold energy mastery\": {\n\t\tname: \"Elemental Adept [Cold]\",\n\t\tdescription: [\n\t\t\t\"Spells cast by me ignore Resistance to Cold damage.\",\n\t\t\t\"When I roll damage for a spell casted by me that deals Cold damage, I can treat any 1 on a damage die as a 2.\",\n\t\t\t\"[+1 Intelligence, Wisdom, or Charisma]\",\n\t\t].join(\"\\n\"),\n\t},\n\t\"fire energy mastery\": {\n\t\tname: \"Elemental Adept [Fire]\",\n\t\tdescription: [\n\t\t\t\"Spells cast by me ignore Resistance to Fire damage.\",\n\t\t\t\"When I roll damage for a spell casted by me that deals Fire damage, I can treat any 1 on a damage die as a 2.\",\n\t\t\t\"[+1 Intelligence, Wisdom, or Charisma]\",\n\t\t].join(\"\\n\"),\n\t},\n\t\"lightning energy mastery\": {\n\t\tname: \"Elemental Adept [Lightning]\",\n\t\tdescription: [\n\t\t\t\"Spells cast by me ignore Resistance to Lightning damage.\",\n\t\t\t\"When I roll damage for a spell casted by me that deals Lightning damage, I can treat any 1 on a damage die as a 2.\",\n\t\t\t\"[+1 Intelligence, Wisdom, or Charisma]\",\n\t\t].join(\"\\n\"),\n\t},\n\t\"thunder energy mastery\": {\n\t\tname: \"Elemental Adept [Thunder]\",\n\t\tdescription: [\n\t\t\t\"Spells cast by me ignore Resistance to Thunder damage.\",\n\t\t\t\"When I roll damage for a spell casted by me that deals Thunder damage, I can treat any 1 on a damage die as a 2.\",\n\t\t\t\"[+1 Intelligence, Wisdom, or Charisma]\",\n\t\t].join(\"\\n\"),\n\t},\n};\nFeatsList[\"fey-touched\"] = {\n\tname: \"Fey-Touched\",\n\tsource: [[\"P24\", 204]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"I learn *Misty Step* and one 1st-level Divination or Enchantment spell. I always have these spells prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and by expending a spell slot as normal. The spells' spellcasting ability is the ability increased by this feat. [+1 Int, Wis, or Cha]\",\n\tdescriptionFull: [\n\t\t\"Your exposure to the Feywild's magic grants you the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Fey Magic***. Choose one level 1 spell from the Divination or Enchantment school of magic. You always have that spell and the *Misty Step* spell prepared. You can cast each of these spells without expending a spell slot. Once you cast either spell in this way, you can't cast that spell in this way again until you finish a Long Rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\n\t],\n\tspellFirstColTitle: \"PR\",\n\tspellcastingBonus: [{\n\t\tname: \"Misty Step\",\n\t\tspells: [\"misty step\"],\n\t\tselection: [\"misty step\"],\n\t\tfirstCol: \"oncelr+markedbox\",\n\t}, {\n\t\tname: \"1st-level Ench/Div spell\",\n\t\tschool: [\"Ench\", \"Div\"],\n\t\tlevel: [1, 1],\n\t\tfirstCol: \"oncelr+markedbox\",\n\t}],\n\tchoices: [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"intelligence\": {\n\t\tdescription: \"I learn Misty Step and one 1st-level Divination or Enchantment spell. I always have these spell prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Int\" + (typePF ? \"]\" : \"elligence]\"),\n\t\tspellcastingAbility: 4,\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: \"I learn Misty Step and one 1st-level Divination or Enchantment spell. I always have these spell prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\n\t\tspellcastingAbility: 5,\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tdescription: \"I learn Misty Step and one 1st-level Divination or Enchantment spell. I always have these spell prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\n\t\tspellcastingAbility: 6,\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"great weapon master\"] = {\n\tname: \"Great Weapon Master\",\n\tsource: [[\"P24\", 204]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Strength 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && What(\"Str\") >= 13;\n\t},\n\tdescription: [\n\t\t\"##Heavy Weapon Mastery##. During the Attack action on my turn, I can add my Proficiency Bonus to the damage of \" + (typePF ? \"Heavy weapons. \" : \"weapons with the Heavy property.\"),\n\t\t\"##Hew##. Immediately after I reduce a creature to 0 HP with a melee weapon or score a Critical Hit with one, I can make another attack with that weapon as a Bonus Action. [+1 Str]\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength score by 1, to a maximum of 20.\",\n\t\t\"***Heavy Weapon Mastery***. When you hit a creature with a weapon that has the Heavy property as part of the Attack action on your turn, you can cause the weapon to deal extra damage to the target. The extra damage equals your Proficiency Bonus.\",\n\t\t\"***Hew***. Immediately after you score a Critical Hit with a Melee weapon or reduce a creature to 0 Hit Points with one, you can make one attack with the same weapon as a Bonus Action.\",\n\t],\n\tscores: [1, 0, 0, 0, 0, 0],\n\taction: [[\"bonus action\", \"Hew (Great Weapon Master)\"]],\n\tcalcChanges: {\n\t\tatkCalc: [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.isWeapon && /heavy/i.test(fields.Description) && /\\bgwm\\b|power.{0,3}attack|great.{0,3}weapon.{0,3}master/i.test(v.WeaponTextName)) {\n\t\t\t\t\toutput.extraDmg += Number(How(\"Proficiency Bonus\"));\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"If I include the words 'Power Attack', 'Great Weapon Master', or 'GWM' in the name of a weapon with the Heavy property, my Proficiency Bonus is added to its damage.\",\n\t\t],\n\t},\n};\nFeatsList[\"heavily armored\"] = {\n\tname: \"Heavily Armored\",\n\tsource: [[\"P24\", 204]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Medium Armor Training\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.mediumArmorProf;\n\t},\n\tdescription: \"I gain training with Heavy armor. [+1 Strength or Constitution]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Constitution or Strength score by 1, to a maximum of 20.\",\n\t\t\"***Armor Training***. You gain training with Heavy armor.\",\n\t],\n\tarmorProfs: [false, false, true, false],\n\tchoices: [\"Constitution\", \"Strength\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"I gain training with Heavy armor. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"constitution\": {\n\t\tdescription: \"I gain training with Heavy armor. [+1 Constitution]\",\n\t\tscores: [0, 0, 1, 0, 0, 0],\n\t},\n};\nFeatsList[\"heavy armor master\"] = {\n\tname: \"Heavy Armor Master\",\n\tsource: [[\"P24\", 204]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Heavy Armor Training\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.heavyArmorProf;\n\t},\n\tdescription: \"When I'm hit by an attack while I'm wearing Heavy armor, any Bludgeoning, Piercing, and Slashing damage dealt to me by that attack is reduced by an amount equal to my Proficiency Bonus. [+1 Strength or Constitution]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Constitution or Strength score by 1, to a maximum of 20.\",\n\t\t\"***Damage Reduction***. When you're hit by an attack while you're wearing Heavy armor, any Bludgeoning, Piercing, and Slashing damage dealt to you by that attack is reduced by an amount equal to your Proficiency Bonus.\",\n\t],\n\tchoices: [\"Constitution\", \"Strength\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"When I'm hit by an attack while I'm wearing Heavy armor, any Bludgeoning, Piercing, and Slashing damage dealt to me by that attack is reduced by an amount equal to my Proficiency Bonus. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"constitution\": {\n\t\tdescription: \"When I'm hit by an attack while I'm wearing Heavy armor, any Bludgeoning, Piercing, and Slashing damage dealt to me by that attack is reduced by an amount equal to my Proficiency Bonus. [+1 Constitution]\",\n\t\tscores: [0, 0, 1, 0, 0, 0],\n\t},\n};\nFeatsList[\"inspiring leader\"] = {\n\tname: \"Inspiring Leader\",\n\tsource: [[\"P24\", 204]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Wisdom or Charisma 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Wis\") >= 13 || What(\"Cha\") >= 13);\n\t},\n\tdescription: \"When I finish a Short or Long Rest, I can give an inspiring performance. Up to six allies (which can include myself) within 30 ft who witness this performance each gain Temporary Hit Points equal to my character level plus the modifier of the ability increased by this feat. [+1 Wisdom or Charisma]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Wisdom or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Bolstering Performance***. When you finish a Short or Long Rest, you can give an inspiring performance: a speech, song, or dance. When you do so, choose up to six allies (which can include yourself) within 30 feet of yourself who witness the performance. The chosen creatures each gain Temporary Hit Points equal to your character level plus the modifier of the ability you increased with this feat.\",\n\t],\n\tchoices: [\"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"wisdom\": {\n\t\tcalculate: 'event.value = \"When I finish a Short or Long Rest, I can give an inspiring performance. I can choose up to six allies (or five and myself) within 30 ft of myself who witness this performance to each gain \" + ( Number(What(\"Character Level\")) + Number(What(\"Wis Mod\")) ) + \" Temporary Hit Points (= character level + Wisdom modifier). [+1 Wisdom]\";',\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tcalculate: 'event.value = \"When I finish a Short or Long Rest, I can give an inspiring performance. I can choose up to six allies (or five and myself) within 30 ft of myself who witness this performance to each gain \" + ( Number(What(\"Character Level\")) + Number(What(\"Cha Mod\")) ) + \" Temporary Hit Points (= character level + Charisma modifier). [+1 Charisma]\";',\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"keen mind\"] = {\n\tname: \"Keen Mind\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Intelligence 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && What(\"Int\") >= 13;\n\t},\n\tdescription: \"##Quick Study##. I can take the Study action as a Bonus Action. ##Lore Knowledge##. I gain proficiency in one Intelligence skill of my choice. If I already have proficiency in it, I gain Expertise in it. [+1 Intelligence]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence score by 1, to a maximum of 20.\",\n\t\t\"***Lore Knowledge***. Choose one of the following skills: Arcana, History, Investigation, Nature, or Religion. If you lack proficiency in the chosen skill, you gain proficiency in it, and if you already have proficiency in it, you gain Expertise in it.\",\n\t\t\"***Quick Study***. You can take the Study action as a Bonus Action.\",\n\t],\n\tscores: [0, 0, 0, 1, 0, 0],\n\taction: [[\"bonus action\", \"Study\"]],\n\tchoices: [\"Arcana\", \"History\", \"Investigation\", \"Nature\", \"Religion\"],\n\tchoicesNotInMenu: true,\n\t\"arcana\": {\n\t\tdescription: [\n\t\t\t\"##Quick Study##. I can take the Study action as a Bonus Action.\",\n\t\t\t\"##Lore Knowledge##. I gain proficiency in the Arcana skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tskills: [[\"Arcana\", \"increment\"]],\n\t},\n\t\"history\": {\n\t\tdescription: [\n\t\t\t\"##Quick Study##. I can take the Study action as a Bonus Action.\",\n\t\t\t\"##Lore Knowledge##. I gain proficiency in the History skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tskills: [[\"History\", \"increment\"]],\n\t},\n\t\"investigation\": {\n\t\tdescription: [\n\t\t\t\"##Quick Study##. I can take the Study action as a Bonus Action.\",\n\t\t\t\"##Lore Knowledge##. I gain proficiency in the Investigation skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tskills: [[\"Investigation\", \"increment\"]],\n\t},\n\t\"nature\": {\n\t\tdescription: [\n\t\t\t\"##Quick Study##. I can take the Study action as a Bonus Action.\",\n\t\t\t\"##Lore Knowledge##. I gain proficiency in the Nature skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tskills: [[\"Nature\", \"increment\"]],\n\t},\n\t\"religion\": {\n\t\tdescription: [\n\t\t\t\"##Quick Study##. I can take the Study action as a Bonus Action.\",\n\t\t\t\"##Lore Knowledge##. I gain proficiency in the Religion skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tskills: [[\"Religion\", \"increment\"]],\n\t},\n};\nFeatsList[\"lightly armored\"] = {\n\tname: \"Lightly Armored\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"I gain training with Light armor and Shields. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Armor Training***. You gain training with Light armor and Shields.\",\n\t],\n\tarmorProfs: [true, false, false, true],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"I gain training with Light armor and Shields. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"I gain training with Light armor and Shields. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"mage slayer\"] = {\n\tname: \"Mage Slayer\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"##Concentration Breaker##. When I damage a creature that is Concentrating, they have Disadvantage on their save to maintain it.\" + (typePF ? \" \" : \"\\n\") + \"##Guarded Mind##. Once per Short or Long Rest when I fail an Intelligence, Wisdom, or Charisma saving throw, I can cause myself to succeed instead. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Concentration Breaker***. When you damage a creature that is Concentrating, it has Disadvantage on the saving throw it makes to maintain Concentration.\",\n\t\t\"***Guarded Mind***. If you fail an Intelligence, a Wisdom, or a Charisma saving throw, you can cause yourself to succeed instead. Once you use this benefit, you can't use it again until you finish a Short or Long Rest.\",\n\t],\n\textraLimitedFeatures: [{\n\t\tname: \"Guarded Mind (Mage Slayer)\",\n\t\tusages: 1,\n\t\trecovery: \"short rest\",\n\t}],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"##Concentration Breaker##. When I damage a creature that is Concentrating, they have Disadvantage on their save to maintain it.\" + (typePF ? \" \" : \"\\n\") + \"##Guarded Mind##. Once per Short or Long Rest when I fail an Intelligence, Wisdom, or Charisma saving throw, I can cause myself to succeed instead. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"##Concentration Breaker##. When I damage a creature that is Concentrating, they have Disadvantage on their save to maintain it.\" + (typePF ? \" \" : \"\\n\") + \"##Guarded Mind##. Once per Short or Long Rest when I fail an Intelligence, Wisdom, or Charisma saving throw, I can cause myself to succeed instead. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"martial weapon training\"] = {\n\tname: \"Martial Weapon Training\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"I gain proficiency with Martial weapons. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Weapon Proficiency***. You gain proficiency with Martial weapons.\",\n\t],\n\tweaponProfs: [false, true],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"I gain proficiency with Martial weapons. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"I gain proficiency with Martial weapons. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"medium armor master\"] = {\n\tname: \"Medium Armor Master\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Medium Armor Training\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.mediumArmorProf;\n\t},\n\tdescription: \"While I'm wearing Medium armor, I can add 3, rather than 2 to my AC if I have a Dexterity score of 16 or higher. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Dexterous Wearer***. While you're wearing Medium armor, you can add 3, rather than 2 to your AC if you have a Dexterity score of 16 or higher.\",\n\t],\n\teval: function () {\n\t\tValue(\"Medium Armor Max Mod\", 3);\n\t\tApplyArmor(What(\"AC Armor Description\"));\n\t},\n\tremoveeval: function () {\n\t\ttDoc.resetForm([\"Medium Armor Max Mod\"]);\n\t\tApplyArmor(What(\"AC Armor Description\"));\n\t},\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"While I'm wearing Medium armor, I can add 3, rather than 2 to my AC if I have a Dexterity score of 16 or higher. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"While I'm wearing Medium armor, I can add 3, rather than 2 to my AC if I have a Dexterity score of 16 or higher. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"moderately armored\"] = {\n\tname: \"Moderately Armored\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Light Armor Training\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.lightArmorProf;\n\t},\n\tdescription: \"I gain training with Medium armor. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Armor Training***. You gain training with Medium armor.\",\n\t],\n\tarmorProfs: [false, true, false, false],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"I gain training with Medium armor. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"I gain training with Medium armor. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"mounted combatant\"] = {\n\tname: \"Mounted Combatant\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"While I'm mounted and not Incapacitated: ##\\u2022 Mounted Strike##. I have Advantage on attacks against unmounted within 5 ft that are smaller than my mount. ##\\u2022 Leap Aside##. If my mount is not Incapacitated and makes a Dex save to halve the damage, it takes none on a pass and half on a fail. ##\\u2022 Veer##. When an attack hits my mount, I can have it hit me instead. [+1 Strength, Dexterity, or Wisdom]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength, Dexterity, or Wisdom score by 1, to a maximum of 20.\",\n\t\t\"***Mounted Strike***. While mounted, you have Advantage on attack rolls against any unmounted creature within 5 feet of your mount that is at least one size smaller than the mount.\",\n\t\t\"***Leap Aside***. If your mount is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw and only half damage if it fails. For your mount to gain this benefit, you must be riding it, and neither of you can have the Incapacitated condition.\",\n\t\t\"***Veer***. While mounted, you can force an attack that hits your mount to hit you instead if you don't have the Incapacitated condition.\",\n\t],\n\tchoices: [\"Strength\", \"Dexterity\", \"Wisdom\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"While I'm mounted and not Incapacitated:\"+\n\t\t\t(typePF ? \" \\u2022 \" : \" ##\\u2022 Mounted Strike##. \") + \"I have Advantage on attacks against unmounted within 5 ft that are smaller than my mount.\"+\n\t\t\t(typePF ? \" \\u2022 \" : \" ##\\u2022 Leap Aside##. \") + \"If my mount is not Incapacitated and makes a Dex save to halve the damage, it takes none on a pass and half on a fail.\"+\n\t\t\t(typePF ? \"\\n\\u2022 \" : \" ##\\u2022 Veer##. \") + \"When an attack hits my mount, I can have it hit me instead.\"+\n\t\t\t(typePF ? \"\" : \" [+1 Str]\"),\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"While I'm mounted and not Incapacitated:\"+\n\t\t\t(typePF ? \" \\u2022 \" : \" ##\\u2022 Mounted Strike##. \") + \"I have Advantage on attacks against unmounted within 5 ft that are smaller than my mount.\"+\n\t\t\t(typePF ? \" \\u2022 \" : \" ##\\u2022 Leap Aside##. \") + \"If my mount is not Incapacitated and makes a Dex save to halve the damage, it takes none on a pass and half on a fail.\"+\n\t\t\t(typePF ? \"\\n\\u2022 \" : \" ##\\u2022 Veer##. \") + \"When an attack hits my mount, I can have it hit me instead.\"+\n\t\t\t(typePF ? \"\" : \" [+1 Dex]\"),\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: \"While I'm mounted and not Incapacitated:\"+\n\t\t\t(typePF ? \" \\u2022 \" : \" ##\\u2022 Mounted Strike##. \") + \"I have Advantage on attacks against unmounted within 5 ft that are smaller than my mount.\"+\n\t\t\t(typePF ? \" \\u2022 \" : \" ##\\u2022 Leap Aside##. \") + \"If my mount is not Incapacitated and makes a Dex save to halve the damage, it takes none on a pass and half on a fail.\"+\n\t\t\t(typePF ? \"\\n\\u2022 \" : \" ##\\u2022 Veer##. \") + \"When an attack hits my mount, I can have it hit me instead.\"+\n\t\t\t(typePF ? \"\" : \" [+1 Wis]\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n};\nFeatsList[\"observant\"] = {\n\tname: \"Observant\",\n\tsource: [[\"P24\", 205]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Intelligence or Wisdom 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Int\") >= 13 || What(\"Wis\") >= 13);\n\t},\n\tdescription: \"##Quick Search##. I can take the Search action as a Bonus Action. ##Keen Observer##. I gain proficiency in Insight, Investigation, or Perception. If I already have proficiency in it, I gain Expertise in it. [+1 Intelligence or Wisdom]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence or Wisdom score by 1, to a maximum of 20.\",\n\t\t\"***Keen Observer***. Choose one of the following skills: Insight, Investigation, or Perception. If you lack proficiency with the chosen skill, you gain proficiency in it, and if you already have proficiency in it, you gain Expertise in it.\",\n\t\t\"***Quick Search***. You can take the Search action as a Bonus Action.\",\n\t],\n\taction: [[\"bonus action\", \"Search\"]],\n\tchoices: [\n\t\t\"Intelligence, Insight\", \"Intelligence, Investigation\", \"Intelligence, Perception\",\n\t\t\"Wisdom, Insight\", \"Wisdom, Investigation\", \"Wisdom, Perception\",\n\t],\n\tchoicesNotInMenu: true,\n\t\"intelligence, insight\": {\n\t\tdescription: [\n\t\t\t\"##Quick Search##. I can take the Search action as a Bonus Action.\",\n\t\t\t\"##Keen Observer##. I gain proficiency in the Insight skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t\tskills: [[\"Insight\", \"increment\"]],\n\t},\n\t\"intelligence, investigation\": {\n\t\tdescription: [\n\t\t\t\"##Quick Search##. I can take the Search action as a Bonus Action.\",\n\t\t\t\"##Keen Observer##. I gain proficiency in the Investigation skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t\tskills: [[\"Investigation\", \"increment\"]],\n\t},\n\t\"intelligence, perception\": {\n\t\tdescription: [\n\t\t\t\"##Quick Search##. I can take the Search action as a Bonus Action.\",\n\t\t\t\"##Keen Observer##. I gain proficiency in the Perception skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t\tskills: [[\"Perception\", \"increment\"]],\n\t},\n\t\"wisdom, insight\": {\n\t\tdescription: [\n\t\t\t\"##Quick Search##. I can take the Search action as a Bonus Action.\",\n\t\t\t\"##Keen Observer##. I gain proficiency in the Insight skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Wisdom]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t\tskills: [[\"Insight\", \"increment\"]],\n\t},\n\t\"wisdom, investigation\": {\n\t\tdescription: [\n\t\t\t\"##Quick Search##. I can take the Search action as a Bonus Action.\",\n\t\t\t\"##Keen Observer##. I gain proficiency in the Investigation skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Wisdom]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t\tskills: [[\"Investigation\", \"increment\"]],\n\t},\n\t\"wisdom, perception\": {\n\t\tdescription: [\n\t\t\t\"##Quick Search##. I can take the Search action as a Bonus Action.\",\n\t\t\t\"##Keen Observer##. I gain proficiency in the Perception skill. If I already have proficiency in it, I gain Expertise in it.\",\n\t\t\t\"[+1 Wisdom]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t\tskills: [[\"Perception\", \"increment\"]],\n\t},\n};\nFeatsList[\"piercer\"] = {\n\tname: \"Piercer\",\n\tsource: [[\"P24\", 206]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"##Puncture##. Once per turn when I hit a creature with an attack that deals Piercing damage, I can reroll one of its damage dice and must use this new roll. ##Enhanced Critical##. When I score a Critical Hit that deals Piercing damage to a creature, I add one extra damage die to the Piercing damage. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Puncture***. Once per turn, when you hit a creature with an attack that deals Piercing damage, you can reroll one of the attack's damage dice, and you must use the new roll.\",\n\t\t\"***Enhanced Critical***. When you score a Critical Hit that deals Piercing damage to a creature, you can roll one additional damage die when determining the extra Piercing damage the target takes.\",\n\t],\n\tcalcChanges: {\n\t\tatkAdd: [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (/pierc/i.test(fields.Damage_Type)) {\n\t\t\t\t\tvar descrAdd = '1/turn reroll 1 dmg die';\n\t\t\t\t\tvar dmgDice = fields.Damage_Die.match(/(\\b\\w|\\b\\d+|\\b)d\\d+/ig);\n\t\t\t\t\tif (dmgDice && !v.isDC) {\n\t\t\t\t\t\tvar dieSize = dmgDice.reduce(function (acc, val) {\n\t\t\t\t\t\t\tvar size = Number(val.replace(/.+d/, ''));\n\t\t\t\t\t\t\treturn size > acc ? size : acc;\n\t\t\t\t\t\t}, 0);\n\t\t\t\t\t\tdescrAdd += '; Crit: +1' + dieSize + ' dmg';\n\t\t\t\t\t};\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + descrAdd;\n\t\t\t\t};\n\t\t\t},\n\t\t\t'Attacks that deal Piercing damage get the benefits from the Piercer feat added to their description: Once per turn reroll 1 damage die, and to roll an extra damage die on a Critical Hit.',\n\t\t],\n\t},\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"##Puncture##. Once per turn, when I hit a creature with an attack that deals Piercing damage, I can reroll one of its damage dice and must use this new roll.\"+\n\t\t\t(typePF ? \" \" : \"\\n\") + \"##Enhanced Critical##. When I score a Critical Hit that deals Piercing damage to a creature, I add one extra damage die to the Piercing damage. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"##Puncture##. Once per turn, when I hit a creature with an attack that deals Piercing damage, I can reroll one of its damage dice and must use this new roll.\"+\n\t\t\t(typePF ? \" \" : \"\\n\") + \"##Enhanced Critical##. When I score a Critical Hit that deals Piercing damage to a creature, I add one extra damage die to the Piercing damage. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"poisoner\"] = {\n\tname: \"Poisoner\",\n\tsource: [[\"P24\", 206]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"As a Bonus Action, I can apply poison to weapon/ammo, lasting for 1 min or until used to damage. Creatures damaged this way must make a Con save (DC 8+Prof+mod) or take 2d8 Poison damage and be Poisoned until my next turn ends. Poison damage I deal ignores Resistance. I can create poisons. See Notes page. [+1 Dex or Int]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\",\n\t\t\"***Potent Poison***. When you make a damage roll that deals Poison damage, it ignores Resistance to Poison damage.\",\n\t\t\"***Brew Poison***. You gain proficiency with the Poisoner's Kit. With 1 hour of work using such a kit and expending 50 GP worth of materials, you can create a number of poison doses equal to your Proficiency Bonus. As a Bonus Action, you can apply a poison dose to a weapon or piece of ammunition. Once applied, the poison retains its potency for 1 minute or until you deal damage with the poisoned item, whichever is shorter. When a creature takes damage from the poisoned item, that creature must succeed on a Constitution saving throw (8 plus the modifier of the ability increased by this feat and your Proficiency Bonus) or take 2d8 Poison damage and have the Poisoned condition until the end of your next turn.\",\n\t],\n\ttoolProfs: [[\"Poisoner's Kit\"]],\n\taction: [[\"bonus action\", \"Apply Poison\"]],\n\ttoNotesPage: [{\n\t\tname: \"Potent Poison\",\n\t\tnote: [\"When I make a damage roll that deals Poison damage, it ignores Resistance to Poison damage.\"],\n\t}],\n\tchoices: [\"Dexterity\", \"Intelligence\"],\n\tchoicesNotInMenu: true,\n\t\"dexterity\": {\n\t\tcalculate: 'var abi = \"Dex\";\\n var dc = 8 + Number(How(\"Proficiency Bonus\")) + Number(What(abi + \" Mod\"));\\n event.value = \"As a Bonus Action, I can apply poison to weapon/ammo, lasting for 1 min or until used to damage. Creatures damaged this way must make a DC \" + dc + \" Con save or take 2d8 Poison damage and be Poisoned until my next turn ends. Poison damage I deal ignores Resistance. I can create poisons. See Notes page. [+1 \" + abi + \"]\";',\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t\ttoNotesPage: [{\n\t\t\tname: \"Brew Poison\",\n\t\t\tnote: [\n\t\t\t\t\"I gain proficiency with the Poisoner's Kit. With 1 hour of work using such a kit and expending 50 GP worth of materials, I can create a number of poison doses equal to my Proficiency Bonus.\",\n\t\t\t\t\"As a Bonus Action, I can apply a poison dose to a weapon or piece of ammunition. Once applied, the poison retains its potency for 1 minute or until I deal damage with the poisoned item, whichever is shorter.\",\n\t\t\t\t\"When a creature takes damage from the poisoned item, that creature must succeed on a Constitution saving throw (8 + my Proficiency Bonus + my Dexterity modifier) or take 2d8 Poison damage and have the Poisoned condition until the end of my next turn.\",\n\t\t\t],\n\t\t\tamendTo: \"Potent Poison\",\n\t\t}],\n\t},\n\t\"intelligence\": {\n\t\tcalculate: 'var abi = \"Int\";\\n var dc = 8 + Number(How(\"Proficiency Bonus\")) + Number(What(abi + \" Mod\"));\\n event.value = \"As a Bonus Action, I can apply poison to weapon/ammo, lasting for 1 min or until used to damage. Creatures damaged this way must make a DC \" + dc + \" Con save or take 2d8 Poison damage and be Poisoned until my next turn ends. Poison damage I deal ignores Resistance. I can create poisons. See Notes page. [+1 \" + abi + \"]\";',\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t\ttoNotesPage: [{\n\t\t\tname: \"Brew Poison\",\n\t\t\tnote: [\n\t\t\t\t\"I gain proficiency with the Poisoner's Kit. With 1 hour of work using such a kit and expending 50 GP worth of materials, I can create a number of poison doses equal to my Proficiency Bonus.\",\n\t\t\t\t\"As a Bonus Action, I can apply a poison dose to a weapon or piece of ammunition. Once applied, the poison retains its potency for 1 minute or until I deal damage with the poisoned item, whichever is shorter.\",\n\t\t\t\t\"When a creature takes damage from the poisoned item, that creature must succeed on a Constitution saving throw (8 + my Proficiency Bonus + my Intelligence modifier) or take 2d8 Poison damage and have the Poisoned condition until the end of my next turn.\",\n\t\t\t],\n\t\t\tamendTo: \"Potent Poison\",\n\t\t}],\n\t},\n};\nFeatsList[\"polearm master\"] = {\n\tname: \"Polearm Master\",\n\tsource: [[\"P24\", 206]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Strength or Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Str\") >= 13 || What(\"Dex\") >= 13);\n\t},\n\tdescription: \"While wielding a Quarterstaff, Spear, or Heavy Reach weapon: ##Pole Strike##. As a Bonus Action directly after an Attack action with it, I can make a 1d4 Bludgeoning attack with its other end. ##Reactive Strike##. As a Reaction when a creature enters my reach with it, I can make one melee attack against them. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Dexterity or Strength score by 1, to a maximum of 20.\",\n\t\t\"***Pole Strike***. Immediately after you take the Attack action and attack with a Quarterstaff, a Spear, or a weapon that has the Heavy and Reach properties, you can use a Bonus Action to make a melee attack with the opposite end of the weapon. The weapon deals Bludgeoning damage, and the weapon's damage die for this attack is a d4.\",\n\t\t\"***Reactive Strike***. While you're holding a Quarterstaff, a Spear, or a weapon that has the Heavy and Reach properties, you can take a Reaction to make one melee attack against a creature that enters the reach you have with that weapon.\",\n\t],\n\tweaponOptions: [{\n\t\tname: \"Pole Strike\",\n\t\tregExpSearch : /pole strike|polearm master|^(?=.*(polearm|(quarterstaff|\\bstaff\\b|\\bbo\\b)|(spear|qiang|\\byaris?\\b)|(glaive|guandao|bisento|naginata)|(halberd|\\bji\\b|kamayari)|(lance|umayari)|(pike|\\bmaos?\\b|nagaeyari)))(?=.*butt)(?=.*end).*$/i,\n\t\tsource: [[\"P24\", 206]],\n\t\tability: 1,\n\t\ttype: \"polearm master\",\n\t\tdamage: [1, 4, \"bludgeoning\"],\n\t\trange: \"Melee\",\n\t\tdescription: \"As Bonus Action after Attack action with Quarterstaff, Spear, or Heavy Reach weapon\",\n\t\tabilitytodamage: true,\n\t\tselectNow: true,\n\t\tisAlwaysProf: true,\n\t}],\n\taction: [\n\t\t[\"bonus action\", \"Pole Strike (after Attack action)\"],\n\t\t[\"reaction\", \"Reactive Strike (if enters my reach)\"],\n\t],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"While wielding a Quarterstaff, Spear, or Heavy Reach weapon: ##Pole Strike##. As a Bonus Action directly after an Attack action with it, I can make a 1d4 Bludgeoning attack with its other end. ##Reactive Strike##. As a Reaction when a creature enters my reach with it, I can make one melee attack against them.\" + (typePF ? \"\" : \" [+1 Strength]\"),\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"While wielding a Quarterstaff, Spear, or Heavy Reach weapon: ##Pole Strike##. As a Bonus Action directly after an Attack action with it, I can make a 1d4 Bludgeoning attack with its other end. ##Reactive Strike##. As a Reaction when a creature enters my reach with it, I can make one melee attack against them.\" + (typePF ? \"\" : \" [+1 Dexterity]\"),\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"resilient\"] = {\n\tname: \"Resilient\",\n\tsource: [[\"P24\", 206]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"Select an ability score using the square button on this feat line. I gain proficiency with the saving throw of that ability score and a +1 added to it.\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase one ability score of your choice by 1, to a maximum of 20.\",\n\t\t\"***Saving Throw Proficiency***. You gain saving throw proficiency with the chosen ability.\",\n\t],\n\tchoices: [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"I gain proficiency with Strength saving throws. [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t\tsaves: [\"Str\"],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"I gain proficiency with Dexterity saving throws. [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t\tsaves: [\"Dex\"],\n\t},\n\t\"constitution\": {\n\t\tdescription: \"I gain proficiency with Constitution saving throws. [+1 Constitution]\",\n\t\tscores: [0, 0, 1, 0, 0, 0],\n\t\tsaves: [\"Con\"],\n\t},\n\t\"intelligence\": {\n\t\tdescription: \"I gain proficiency with Intelligence saving throws. [+1 Intelligence]\",\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t\tsaves: [\"Int\"],\n\t},\n\t\"wisdom\": {\n\t\tdescription: \"I gain proficiency with Wisdom saving throws. [+1 Wisdom]\",\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t\tsaves: [\"Wis\"],\n\t},\n\t\"charisma\": {\n\t\tdescription: \"I gain proficiency with Charisma saving throws. [+1 Charisma]\",\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t\tsaves: [\"Cha\"],\n\t},\n};\nvar PHB24_RitualCasterDescription = [\n\t\"##Ritual Spells##. I know a number of 1st-level Ritual spells equal to my Proficiency Bonus.\" + (typePF ? \" \" : \"\\n\") + \"I always have these spells prepared and can cast them as a Ritual or using spell slots.\",\n\t\"##Quick Ritual##. Once per Long Rest, I can cast a prepared Ritual spell using its regular casting time without \" + (typePF ? \"using\" : \"expending\") + \" a spell slot.\",\n]; if (typePF) PHB24_RitualCasterDescription.reverse();\nFeatsList[\"ritual caster\"] = {\n\tname: \"Ritual Caster\",\n\tsource: [[\"P24\", 206]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+; Intelligence, Wisdom, or Charisma 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Int\") >= 13 || What(\"Wis\") >= 13 || What(\"Cha\") >= 13);\n\t},\n\tdescription: PHB24_RitualCasterDescription.join(\"\\n\") + \" [+1 Intelligence, Wisdom, or Charisma]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Ritual Spells***. Choose a number of level 1 spells equal to your Proficiency Bonus that have the Ritual tag. You always have those spells prepared, and you can cast them with any spell slots you have. The spells' spellcasting ability is the ability increased by this feat. Whenever your Proficiency Bonus increases thereafter, you can add an additional level 1 spell with the Ritual tag to the spells always prepared with this feature.\",\n\t\t\"***Quick Ritual***. With this benefit, you can cast a Ritual spell that you have prepared using its regular casting time rather than the extended time for a Ritual. Doing so doesn't require a spell slot. Once you cast the spell in this way, you can't use this benefit again until you finish a Long Rest.\",\n\t],\n\tspellcastingBonus: [{\n\t\tname: \"1st-level Ritual spell\",\n\t\tritual: true,\n\t\tlevel: [1, 1],\n\t\ttimes: ProficiencyBonusList,\n\t\tfirstCol: \"markedbox\",\n\t}],\n\textraLimitedFeatures: [{\n\t\tname: \"Quick Ritual\",\n\t\tusages: 1,\n\t\trecovery: \"long rest\",\n\t}],\n\tchoices: [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"intelligence\": {\n\t\tdescription: PHB24_RitualCasterDescription.join(\"\\n\") + (typePF ? \" [+1 Int]\" : \" [+1 Intelligence]\"),\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t\tspellcastingAbility: 4,\n\t},\n\t\"wisdom\": {\n\t\tdescription: PHB24_RitualCasterDescription.join(\"\\n\") + (typePF ? \" [+1 Wis]\" : \" [+1 Wisdom]\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t\tspellcastingAbility: 5,\n\t},\n\t\"charisma\": {\n\t\tdescription: PHB24_RitualCasterDescription.join(\"\\n\") + (typePF ? \" [+1 Cha]\" : \" [+1 Charisma]\"),\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t\tspellcastingAbility: 6,\n\t},\n};\nFeatsList[\"sentinel\"] = {\n\tname: \"Sentinel\",\n\tsource: [[\"P24\", 207]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Strength or Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Str\") >= 13 || What(\"Dex\") >= 13);\n\t},\n\tdescription: [\n\t\t\"##Guardian##. When a creature within 5 ft of me takes the Disengage action or hits a target other than me with an attack, I can make an Opportunity Attack against them.\",\n\t\t\"##Halt##. When I make an Opportunity Attack against a creature, its Speed becomes 0 for the rest of the current turn. [+1 Strength or Dexterity]\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Guardian***. Immediately after a creature within 5 feet of you takes the Disengage action or hits a target other than you with an attack, you can make an Opportunity Attack against that creature.\",\n\t\t\"***Halt***. When you hit a creature with an Opportunity Attack, the creature's Speed becomes 0 for the rest of the current turn.\",\n\t],\n\taction: [[\"reaction\", \"Guardian (ally hit/enemy Disengages)\"]],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: [\n\t\t\t\"##Guardian##. When a creature within 5 ft of me takes the Disengage action or hits a target other than me with an attack, I can make an Opportunity Attack against them.\",\n\t\t\t\"##Halt##. When I make an Opportunity Attack against a creature, its Speed becomes 0 for the rest of the current turn. [+1 Strength]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: [\n\t\t\t\"##Guardian##. When a creature within 5 ft of me takes the Disengage action or hits a target other than me with an attack, I can make an Opportunity Attack against them.\",\n\t\t\t\"##Halt##. When I make an Opportunity Attack against a creature, its Speed becomes 0 for the rest of the current turn. [+1  Dexterity]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"shadow-touched\"] = {\n\tname: \"Shadow-Touched\",\n\tsource: [[\"P24\", 207]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"I learn *Invisibility* and one 1st-level Illusion or Necromancy spell. I always have these spells prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and by expending a spell slot as normal. The spells' spellcasting ability is the ability increased by this feat. [+1 Int, Wis, or Cha]\",\n\tdescriptionFull: [\n\t\t\"Your exposure to the Shadowfell's magic grants you the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Shadow Magic***. Choose one level 1 spell from the Illusion or Necromancy school of magic. You always have that spell and the *Invisibility* spell prepared. You can cast each of these spells without expending a spell slot. Once you cast either spell in this way, you can't cast that spell in this way again until you finish a Long Rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\n\t],\n\tspellFirstColTitle: \"PR\",\n\tspellcastingBonus: [{\n\t\tname: \"Invisibility\",\n\t\tspells: [\"invisibility\"],\n\t\tselection: [\"invisibility\"],\n\t\tfirstCol: \"oncelr+markedbox\",\n\t}, {\n\t\tname: \"1st-level Illus/Necro spell\",\n\t\tschool: [\"Illus\", \"Necro\"],\n\t\tlevel: [1, 1],\n\t\tfirstCol: \"oncelr+markedbox\",\n\t}],\n\tchoices: [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"intelligence\": {\n\t\tdescription: \"I learn Invisibility and one 1st-level Illusion or Necromancy spell. I always have these spell prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\n\t\tspellcastingAbility: 4,\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: \"I learn Invisibility and one 1st-level Illusion or Necromancy spell. I always have these spell prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\n\t\tspellcastingAbility: 5,\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tdescription: \"I learn Invisibility and one 1st-level Illusion or Necromancy spell. I always have these spell prepared. I can cast each once per Long Rest at their lowest level without expending a spell slot and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\n\t\tspellcastingAbility: 6,\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"sharpshooter\"] = {\n\tname: \"Sharpshooter\",\n\tsource: [[\"P24\", 207]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && What(\"Dex\") >= 13;\n\t},\n\tdescription: [\n\t\t\"My attack rolls with Ranged weapons:\",\n\t\t\"\\n##Bypass Cover##. Ignore Half Cover and Three-Quarters Cover.\",\n\t\t\"\\n##Firing in Melee##. Suffer no Disadvantage when I'm within 5 ft of an enemy.\",\n\t\t\"\\n##Long Shots##. Suffer no Disadvantage when used at long range.\",\n\t\t\" [+1 Dexterity]\",\n\t].map(function (n, idx, arr) {\n\t\t// Swap 'Firing in Melee' with 'Long Shots' lines on the Printer Friendly sheet\n\t\treturn typePF && idx === 2 ? arr[3] : typePF && idx === 3 ? arr[2] : n;\n\t}).join(\"\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Bypass Cover***. Your ranged attacks with weapons ignore Half Cover and Three-Quarters Cover.\",\n\t\t\"***Firing in Melee***. Being within 5 feet of an enemy doesn't impose Disadvantage on your attack rolls with Ranged weapons.\",\n\t\t\"***Long Shots***. Attacking at long range doesn't impose Disadvantage on your attack rolls with Ranged weapons.\",\n\t],\n\tscores: [0, 1, 0, 0, 0, 0],\n\tcalcChanges: {\n\t\tatkAdd: [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.isRangedWeapon || v.isThrownWeapon) {\n\t\t\t\t\tfields.Description += (fields.Description ? \"; \" : \"\") + \"No Disadv. at long range; Ignores \\u00BD \\x26 \\u00BE cover\";\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My attack rolls with Ranged weapons suffer no Disadvantage from being used at long range nor from me being within 5 ft of an enemy. They also ignore Half Cover and Three-Quarters Cover.\",\n\t\t],\n\t},\n};\nFeatsList[\"shield master\"] = {\n\tname: \"Shield Master\",\n\tsource: [[\"P24\", 207]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Shield Training\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.shieldProf;\n\t},\n\tdescription: \"##Shield Bash##. Once per turn after I hit a creature in 5 ft during the Attack action, I can have it make a Str save (DC 8 + Str mod + Prof B.) or be pushed 5 ft away or knocked Prone. ##Interpose Shield##. As a Reaction when I succeed on a Dex save to halve damage, I can interpose my shield to avoid all the damage. [+1 Strength]\",\n\tcalculate: 'var dc = 8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Str Mod\"));\\n var txt = [\"##Shield Bash##. Once per turn after I hit a creature in 5 ft during the Attack action, I can have it make a DC \" + dc + \" (8+Str+Prof) Str save or be pushed 5 ft away or knocked Prone.\", \"##Interpose Shield##. As a Reaction when I succeed on a Dex save to halve damage, I can interpose my shield to avoid all the damage.\"];\\n if (typePF) { txt.reverse(); };\\n event.value = txt.join(\"\\\\n\") + \" [+1 Strength]\";',\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength score by 1, to a maximum of 20.\",\n\t\t\"***Shield Bash***. If you attack a creature within 5 feet of you as part of the Attack action and hit with a Melee weapon, you can immediately bash the target with your Shield if it's equipped, forcing the target to make a Strength saving throw (8 plus your Strength modifier and Proficiency Bonus). On a failed save, you either push the target 5 feet from you or cause it to have the Prone condition (your choice). You can use this benefit only once on each of your turns.\",\n\t\t\"***Interpose Shield***. If you're subjected to an effect that allows you to make a Dexterity saving throw to take only half damage, you can take a Reaction to take no damage if you succeed on the saving throw and are holding a Shield.\",\n\t],\n\tscores: [1, 0, 0, 0, 0, 0],\n\tweaponOptions: [{\n\t\tname: \"Shield Bash\",\n\t\tregExpSearch: /^(?=.*shield)(?=.*bash).*$/i,\n\t\tsource: [[\"P24\", 207]],\n\t\tability: 1,\n\t\ttype: \"shield master\",\n\t\tdamage: [\"Str save\", \"\", \"Shove/Prone\"],\n\t\trange: \"Melee\",\n\t\tdescription: \"1/turn after Melee weapon hit during Attack action\",\n\t\tabilitytodamage: false,\n\t\tdc: true,\n\t\tselectNow: true,\n\t\tisNotWeapon: true,\n\t\tisAlwaysProf: true,\n\t}],\n\taction: [[\"reaction\", \"Interpose Shield\"]],\n};\nFeatsList[\"skill expert\"] = {\n\tname: \"Skill Expert\",\n\tsource: [[\"P24\", 207]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: [\n\t\t\"I gain proficiency in one skill of my choice.\",\n\t\t\"I also gain Expertise in one skill of my choice in which I have proficiency (can be the same skill).\",\n\t\t\"Neither are automated. [+1 to one ability score of my choice]\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase one ability score of your choice by 1, to a maximum of 20.\",\n\t\t\"***Skill Proficiency***. You gain proficiency in one skill of your choice.\",\n\t\t\"***Expertise***. Choose one skill in which you have proficiency but lack Expertise. You gain Expertise with that skill.\",\n\t],\n\tskillstxt: \"Proficiency in one skill, and Expertise with one skill I'm proficient with.\",\n\tchoices: [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: [\n\t\t\t\"I gain proficiency in one skill of my choice.\",\n\t\t\t\"I also gain Expertise in one skill of my choice in which I have proficiency (can be the same skill).\",\n\t\t\t\"Neither are automated. [+1 Strength]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: [\n\t\t\t\"I gain proficiency in one skill of my choice.\",\n\t\t\t\"I also gain Expertise in one skill of my choice in which I have proficiency (can be the same skill).\",\n\t\t\t\"Neither are automated. [+1 Dexterity]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n\t\"constitution\": {\n\t\tdescription: [\n\t\t\t\"I gain proficiency in one skill of my choice.\",\n\t\t\t\"I also gain Expertise in one skill of my choice in which I have proficiency (can be the same skill).\",\n\t\t\t\"Neither are automated. [+1 Constitution]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 1, 0, 0, 0],\n\t},\n\t\"intelligence\": {\n\t\tdescription: [\n\t\t\t\"I gain proficiency in one skill of my choice.\",\n\t\t\t\"I also gain Expertise in one skill of my choice in which I have proficiency (can be the same skill).\",\n\t\t\t\"Neither are automated. [+1 Intelligence]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: [\n\t\t\t\"I gain proficiency in one skill of my choice.\",\n\t\t\t\"I also gain Expertise in one skill of my choice in which I have proficiency (can be the same skill).\",\n\t\t\t\"Neither are automated. [+1 Wisdom]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tdescription: [\n\t\t\t\"I gain proficiency in one skill of my choice.\",\n\t\t\t\"I also gain Expertise in one skill of my choice in which I have proficiency (can be the same skill).\",\n\t\t\t\"Neither are automated. [+1 Charisma]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"skulker\"] = {\n\tname: \"Skulker\",\n\tsource: [[\"P24\", 208]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Dexterity 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && What(\"Dex\") >= 13;\n\t},\n\tdescription: [\n\t\t\"##Fog of War##. I have Advantage on Dexterity (Stealth) checks when using the Hide action during combat.\",\n\t\t\"##Sniper##. If I miss an attack while hidden, making the attack doesn't reveal my location.\",\n\t\t\"##Blindsight##. I have Blindsight with a range of 10 ft. [+1 Dexterity]\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Blindsight***. You have Blindsight with a range of 10 feet.\",\n\t\t\"***Fog of War***. You exploit the distractions of battle, gaining Advantage on any Dexterity (Stealth) check you make as part of the Hide action during combat.\",\n\t\t\"***Sniper***. If you make an attack roll while hidden and the roll misses, making the attack roll doesn't reveal your location.\",\n\t],\n\tscores: [0, 1, 0, 0, 0, 0],\n\tvision: [[\"Blindsight\", 10]],\n};\nFeatsList[\"slasher\"] = {\n\tname: \"Slasher\",\n\tsource: [[\"P24\", 208]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"##Hamstring##. Once per turn when I hit a creature with an attack that deals Slashing damage, I can reduce its Speed by 10 ft until the start of my next turn. ##Enhanced Critical##. When I score a Critical Hit that deals Slashing damage to a creature, it gets Disadvantage on attack rolls until the start of my next turn. [+1 Strength or Dexterity]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Hamstring***. Once per turn when you hit a creature with an attack that deals Slashing damage, you can reduce the Speed of that creature by 10 feet until the start of your next turn.\",\n\t\t\"***Enhanced Critical***. When you score a Critical Hit that deals Slashing damage to a creature, it has Disadvantage on attack rolls until the start of your next turn.\",\n\t],\n\tcalcChanges: {\n\t\tatkAdd: [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (/slash/i.test(fields.Damage_Type)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '1/turn target -10 ft Spd till my next SoT, Crit: also Disadv. on atks';\n\t\t\t\t};\n\t\t\t},\n\t\t\t'Attacks that deal Slashing damage get the benefits from the Slasher feat added to their description: Once per turn -10 ft Speed, and on a Critical Hit target gets Disadvantage on attacks. Each effect lasts until the start of my next turn.',\n\t\t],\n\t},\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: \"##Hamstring##. Once per turn when I hit a creature with an attack that deals Slashing damage, I can reduce its Speed by 10 ft\" + (typePF ? \".\" : \" until the start of my next turn.\")+\n\t\t\t\"\\n##Enhanced Critical##. When I score a Critical Hit that deals Slashing damage to a creature, it gets Disadvantage on attack rolls\" + (typePF ? \".\" : \" until the start of my next turn.\")+\n\t\t\t(typePF ? \"\\nEach effect lasts until the start of my next turn.\" : \"\")+\n\t\t\t\" [+1 Strength]\",\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: \"##Hamstring##. Once per turn when I hit a creature with an attack that deals Slashing damage, I can reduce its Speed by 10 ft\" + (typePF ? \".\" : \" until the start of my next turn.\")+\n\t\t\t\"\\n##Enhanced Critical##. When I score a Critical Hit that deals Slashing damage to a creature, it gets Disadvantage on attack rolls\" + (typePF ? \".\" : \" until the start of my next turn.\")+\n\t\t\t(typePF ? \"\\nEach effect lasts until the start of my next turn.\" : \"\")+\n\t\t\t\" [+1 Dexterity]\",\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\nFeatsList[\"speedy\"] = {\n\tname: \"Speedy\",\n\tsource: [[\"P24\", 208]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Dexterity or Constitution 13+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && (What(\"Dex\") >= 13 || What(\"Con\") >= 13);\n\t},\n\tdescription: [\n\t\t\"##Agile Movement##. Opportunity Attacks have Disadvantage against me.\",\n\t\t\"##Dash over Difficult Terrain##. When I take the Dash action on my turn, Difficult Terrain doesn't cost me extra movement that turn.\",\n\t\t\"##Speed Increase##. I have +10 ft Speed. [+1 Dexterity or Constitution]\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Dexterity or Constitution score by 1, to a maximum of 20.\",\n\t\t\"***Speed Increase***. Your Speed increases by 10 feet.\",\n\t\t\"***Dash over Difficult Terrain***. When you take the Dash action on your turn, Difficult Terrain doesn't cost you extra movement for the rest of that turn.\",\n\t\t\"***Agile Movement***. Opportunity Attacks have Disadvantage against you.\",\n\t],\n\tspeed: { allModes: { bonus: \"+10\" } },\n\tchoices: [\"Dexterity\", \"Constitution\"],\n\tchoicesNotInMenu: true,\n\t\"dexterity\": {\n\t\tdescription: [\n\t\t\t\"##Agile Movement##. Opportunity Attacks have Disadvantage against me.\",\n\t\t\t\"##Dash over Difficult Terrain##. When I take the Dash action on my turn, Difficult Terrain doesn't cost me extra movement that turn.\",\n\t\t\t\"##Speed Increase##. I have +10 ft Speed. [+1 Dexterity]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n\t\"constitution\": {\n\t\tdescription: [\n\t\t\t\"##Agile Movement##. Opportunity Attacks have Disadvantage against me.\",\n\t\t\t\"##Dash over Difficult Terrain##. When I take the Dash action on my turn, Difficult Terrain doesn't cost me extra movement that turn.\",\n\t\t\t\"##Speed Increase##. I have +10 ft Speed. [+1 Constitution]\",\n\t\t].join(\"\\n\"),\n\t\tscores: [0, 0, 1, 0, 0, 0],\n\t},\n};\nvar PHB24_SpellSniperDescription = [\n\t\"My attack rolls with spells:\",\n\t\"##Bypass Cover##. Ignore Half Cover and Three-Quarters Cover.\",\n\t\"##Casting in Melee##. Suffer no Disadvantage when I'm within 5 ft of an enemy.\",\n\t\"##Increased Range##. Gain +60 ft range if the spell's range is \" + (typePF ? \"\\u226510 ft.\" : \"10 ft or more.\"),\n].map(function (n, idx, arr) {\n\t// Swap 'Increased Range' with 'Casting in Melee' lines on the Printer Friendly sheet\n\treturn typePF && idx === 2 ? arr[3] : typePF && idx === 3 ? arr[2] : n;\n}).join(\"\\n\");\nFeatsList[\"spell sniper\"] = {\n\tname: \"Spell Sniper\",\n\tsource: [[\"P24\", 208]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Spellcasting or Pact Magic Feature\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.isSpellcastingClass;\n\t},\n\tdescription: PHB24_SpellSniperDescription + \" [+1 Intelligence, Wisdom, or Charisma]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Bypass Cover***. Your attack rolls for spells ignore Half Cover and Three-Quarters Cover.\",\n\t\t\"***Casting in Melee***. Being within 5 feet of an enemy doesn't impose Disadvantage on your attack rolls with spells.\",\n\t\t\"***Increased Range***. When you cast a spell that has a range of at least 10 feet and requires you to make an attack roll, you can increase the spell's range by 60 feet.\",\n\t],\n\tcalcChanges: {\n\t\tatkAdd: [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.isDC && v.isSpell) {\n\t\t\t\t\tvar name = \"spell sniper\", addition = \"+60\";\n\t\t\t\t\tvar useRange = v.rangeObject ? v.rangeObject : fields.Range;\n\t\t\t\t\tvar stopFunction = function (sRange, nRangeFT) { return nRangeFT < 10; };\n\t\t\t\t\tv.rangeObject = amendRangeObject(useRange, name, addition, stopFunction);\n\t\t\t\t\t// Test if something changed\n\t\t\t\t\tif (v.rangeObject && v.rangeObject.result !== fields.Range) {\n\t\t\t\t\t\tfields.Range = v.rangeObject.result;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My spells and cantrips that require an attack roll and have a range of 10 ft or more gain +60 ft range.\",\n\t\t\t700,\n\t\t],\n\t\tspellAdd: [\n\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\tif ( !spellObj.psionic && /spell at(tac)?k/i.test(spellObj.description + spellObj.descriptionFull) && /^(?!.*(S:|rad|touch|self|cone|cube)).*\\d+([.,]\\d+)?.?(f.{0,2}t|m).*$/i.test(spellObj.range) ) {\n\t\t\t\t\tvar name = \"spell sniper\", addition = \"+60\";\n\t\t\t\t\tvar useRange = spellObj.rangeObject ? spellObj.rangeObject : spellObj.range;\n\t\t\t\t\tvar stopFunction = function (sRange, nRangeFT) { return nRangeFT < 10; };\n\t\t\t\t\tspellObj.rangeObject = amendRangeObject(useRange, name, addition, stopFunction);\n\t\t\t\t\t// Test if something changed\n\t\t\t\t\tif (spellObj.rangeObject && spellObj.rangeObject.result !== spellObj.range) {\n\t\t\t\t\t\tspellObj.range = spellObj.rangeObject.result;\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My spells and cantrips that require an attack roll and have a range of 10 ft or more gain +60 ft range.\",\n\t\t\t700,\n\t\t],\n\t},\n\tchoices: [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"intelligence\": {\n\t\tdescription: PHB24_SpellSniperDescription + \" [+1 Intelligence]\",\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: PHB24_SpellSniperDescription + \" [+1 Wisdom]\",\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tdescription: PHB24_SpellSniperDescription + \" [+1 Charisma]\",\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"telekinetic\"] = {\n\tname: \"Telekinetic\",\n\tsource: [[\"P24\", 208]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"I know the *Mage Hand* cantrip, can cast it without components, can make it invisible, and with +30 ft range. As a Bonus Action, I can have one creature I can see within 30 ft make a Strength save (vs. this feat's spell save DC) or move it 5 ft from or towards me. My spellcasting ability is the one increased by this feat. [+1 Int, Wis, or Cha]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Minor Telekinesis***. You learn the *Mage Hand* spell. You can cast it without Verbal or Somatic components, you can make the spectral hand Invisible, and its range and the distance it can be away from you both increase by 30 feet when you cast it. The spell's spellcasting ability is the ability increased by this feat.\",\n\t\t\"***Telekinetic Shove***. As a Bonus Action, you can telekinetically shove one creature you can see within 30 feet of yourself. When you do so, the target must succeed on a Strength saving throw (8 plus the ability modifier of the score increased by this feat and your Proficiency Bonus) or be moved 5 feet toward or away from you.\",\n\t],\n\taction: [[\"bonus action\", \"Telekinetic Shove\"]],\n\tspellcastingBonus: [{\n\t\tname: \"Mage Hand\",\n\t\tspells: [\"mage hand\"],\n\t\tselection: [\"mage hand\"],\n\t}],\n\tspellChanges: {\n\t\t\"mage hand\": {\n\t\t\tcomponents: \"\",\n\t\t\trange: \"60 ft\",\n\t\t\tdescription: \"(in)visible hand does simple task, carry \\u226410lb; Act: control again \\x26 move 30ft; ends if recast/out range\",\n\t\t\tchanges: \"I can cast Mage Hand without Verbal or Somatic components, can make the spectral hand Invisible, and can the range and distance it can be away from me increases by +30 ft.\",\n\t\t},\n\t},\n\tchoices: [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"intelligence\": {\n\t\tdescription: (typePF ? \"\" : \"##Minor Telekinesis##. \") + \"I know the Mage Hand cantrip, can cast it without components, can make it invisible, and with +30 ft range. Intelligence is my spellcasting ability for it. \"+\n\t\t\t(typePF ? \"\" : \"##Telekinetic Shove##. \") + \"As a Bonus Action, I can have one creature I can see within 30 ft make a Strength save (vs. this feat's spell save DC) or move it 5 ft from or towards me. [+1 Int]\",\n\t\tspellcastingAbility: 4,\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: (typePF ? \"\" : \"##Minor Telekinesis##. \") + \"I know the Mage Hand cantrip, can cast it without components, can make it invisible, and with +30 ft range. Wisdom is my spellcasting ability for it. \"+\n\t\t\t(typePF ? \"\" : \"##Telekinetic Shove##. \") + \"As a Bonus Action, I can have one creature I can see within 30 ft make a Strength save (vs. this feat's spell save DC) or move it 5 ft from or towards me. [+1 Wis]\",\n\t\tspellcastingAbility: 5,\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tdescription: (typePF ? \"\" : \"##Minor Telekinesis##. \") + \"I know the Mage Hand cantrip, can cast it without components, can make it invisible, and with +30 ft range. Charisma is my spellcasting ability for it. \"+\n\t\t\t(typePF ? \"\" : \"##Telekinetic Shove##. \") + \"As a Bonus Action, I can have one creature I can see within 30 ft make a Strength save (vs. this feat's spell save DC) or move it 5 ft from or towards me. [+1 Cha]\",\n\t\tspellcastingAbility: 6,\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"telepathic\"] = {\n\tname: \"Telepathic\",\n\tsource: [[\"P24\", 208]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4;\n\t},\n\tdescription: \"##Telepathic Utterance##. I can telepathically speak to a creature I can see within 60 ft in a language I know, but they can't respond telepathically. I always have ##Detect Thoughts## prepared. I can cast it once per Long Rest without a spell slot or components and by expending a spell slot as normal. My spellcasting ability is the one increased by this feat. [+1 Int, Wis, or Cha]\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Telepathic Utterance***. You can speak telepathically to any creature you can see within 60 feet of yourself. Your telepathic utterances are in a language you know, and the creature understands you only if it knows that language. Your communication doesn't give the creature the ability to respond to you telepathically.\",\n\t\t\"***Detect Thoughts***. You always have the *Detect Thoughts* spell prepared. You can cast it without a spell slot or spell components, and you must finish a Long Rest before you can cast it in this way again. You can also cast it using spell slots you have of the appropriate level. Your spellcasting ability for the spell is the ability increased by this feat.\",\n\t],\n\tspellcastingBonus: [{\n\t\tname: \"Detect Thoughts\",\n\t\tspells: [\"detect thoughts\"],\n\t\tselection: [\"detect thoughts\"],\n\t\tfirstCol: \"oncelr+markedbox\",\n\t}],\n\tspellChanges: {\n\t\t\"detect thoughts\": {\n\t\t\tcomponents: \"(V,S,M)\",\n\t\t\tchanges: \"My Telepathic feat allows me to cast Detect Thoughts once per Long Rest without requiring a spell slot or components, or by using a spell slot to cast it with components as normal.\",\n\t\t},\n\t},\n\tchoices: [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"intelligence\": {\n\t\tdescription: (typePF ? \"\" : \"##Telepathic Utterance##. \") + \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but they can't respond telepathically. I always have ##Detect Thoughts## prepared. I can cast it once per Long Rest without a spell slot or components and by expending a spell slot as normal. Intelligence is my spellcasting ability for it. [+1 Int]\",\n\t\tspellcastingAbility: 4,\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: (typePF ? \"\" : \"##Telepathic Utterance##. \") + \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but they can't respond telepathically. I always have ##Detect Thoughts## prepared. I can cast it once per Long Rest without a spell slot or components and by expending a spell slot as normal. Wisdom is my spellcasting ability for it. [+1 Wis]\",\n\t\tspellcastingAbility: 5,\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tdescription: (typePF ? \"\" : \"##Telepathic Utterance##. \") + \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but they can't respond telepathically. I always have ##Detect Thoughts## prepared. I can cast it once per Long Rest without a spell slot or components and by expending a spell slot as normal. Charisma is my spellcasting ability for it. [+1 Cha]\",\n\t\tspellcastingAbility: 6,\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"war caster\"] = {\n\tname: \"War Caster\",\n\tsource: [[\"P24\", 209]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+, Spellcasting or Pact Magic Feature\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 4 && v.isSpellcastingClass;\n\t},\n\tdescription: \"I have Advantage on Con saves to maintain ##Concentration##. I can do ##Somatic components## even when I have weapons or a Shield in both hands. ##Reactive Spell##. instead of an Opportunity Attack when a creature leaves my reach, I can cast a spell on it, a spell with a one action casting time that targets only that creature.\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\",\n\t\t\"***Concentration***. You have Advantage on Constitution saving throws that you make to maintain Concentration.\",\n\t\t\"***Reactive Spell***. When a creature provokes an Opportunity Attack from you by leaving your reach, you can take a Reaction to cast a spell at the creature rather than making an Opportunity Attack. The spell must have a casting time of one action and must target only that creature.\",\n\t\t\"***Somatic Components***. You can perform the Somatic components of spells even when you have weapons or a Shield in one or both hands.\",\n\t],\n\taction: [[\"reaction\", \"Reactive Spell\"]],\n\tsavetxt: { text: \"Adv. on Con (Concentration) saves\" },\n\tchoices: [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\tchoicesNotInMenu: true,\n\t\"intelligence\": {\n\t\tdescription: \"I have Advantage on Con saves to maintain ##Concentration##. I can \" + (typePF ? \"do\" : \"perform\") + \" ##Somatic components## \" + (typePF ? \"\" : \"of spells \") + \"even when I have weapons or a Shield in both hands. ##Reactive Spell##. instead of an Opportunity Attack when a creature leaves my reach, I can cast a spell on it, a spell with a one action casting time that targets only that creature.\" + (typePF ? \"\" : \" [+1 Intelligence]\"),\n\t\tscores: [0, 0, 0, 1, 0, 0],\n\t},\n\t\"wisdom\": {\n\t\tdescription: \"I have Advantage on Con saves to maintain ##Concentration##. I can \" + (typePF ? \"do\" : \"perform\") + \" ##Somatic components## \" + (typePF ? \"\" : \"of spells \") + \"even when I have weapons or a Shield in both hands. ##Reactive Spell##. instead of an Opportunity Attack when a creature leaves my reach, I can cast a spell on it, a spell with a one action casting time that targets only that creature.\" + (typePF ? \"\" : \" [+1 Wisdom]\"),\n\t\tscores: [0, 0, 0, 0, 1, 0],\n\t},\n\t\"charisma\": {\n\t\tdescription: \"I have Advantage on Con saves to maintain ##Concentration##. I can \" + (typePF ? \"do\" : \"perform\") + \" ##Somatic components## \" + (typePF ? \"\" : \"of spells \") + \"even when I have weapons or a Shield in both hands. ##Reactive Spell##. instead of an Opportunity Attack when a creature leaves my reach, I can cast a spell on it, a spell with a one action casting time that targets only that creature.\" + (typePF ? \"\" : \" [+1 Charisma]\"),\n\t\tscores: [0, 0, 0, 0, 0, 1],\n\t},\n};\nFeatsList[\"weapon master\"] = {\n\tname: \"Weapon Master\",\n\tsource: [[\"P24\", 209]],\n\ttype: \"general\",\n\tprerequisite: \"Level 4+\",\n\tprereqeval: function (v) { return v.characterLevel >= 4; },\n\tdescription: 'I gain mastery with one Simple or Martial weapon. Whenever I finish a Long Rest, I can change my choice. Use 2nd page \"Choose Feature\" button to select this. [+1 Strength or Dexterity]',\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase your Strength or Dexterity score by 1, to a maximum of 20.\",\n\t\t\"***Mastery Property***. Your training with weapons allows you to use the mastery property of one kind of Simple or Martial weapon of your choice, provided you have proficiency with it. Whenever you finish a Long Rest, you can change the kind of weapon to another eligible kind.\",\n\t],\n\tbonusClassExtrachoices: [{\n\t\t\"class\": \"fighter\",\n\t\t\"feature\": \"weapon mastery\",\n\t\t\"bonus\": 1,\n\t}],\n\tchoices: [\"Strength\", \"Dexterity\"],\n\tchoicesNotInMenu: true,\n\t\"strength\": {\n\t\tdescription: 'I gain mastery with one Simple or Martial weapon. Whenever I finish a Long Rest, I can change my choice. Use 2nd page \"Choose Feature\" button to select this. [+1 Strength]',\n\t\tscores: [1, 0, 0, 0, 0, 0],\n\t},\n\t\"dexterity\": {\n\t\tdescription: 'I gain mastery with one Simple or Martial weapon. Whenever I finish a Long Rest, I can change my choice. Use 2nd page \"Choose Feature\" button to select this. [+1 Dexterity]',\n\t\tscores: [0, 1, 0, 0, 0, 0],\n\t},\n};\n// Fighting Style feats\nFeatsList[\"blind fighting\"] = {\n\tname: \"Blind Fighting\",\n\tsource: [[\"P24\", 209]],\n\ttype: \"fighting style\",\n\tdescription: \"I have Blindsight with a range of 10 ft.\",\n\tdescriptionFull: [\n\t\t\"You have Blindsight with a range of 10 feet.\",\n\t],\n\tvision : [[\"Blindsight\", 10]],\n};\nFeatsList[\"dueling\"] = {\n\tname: \"Dueling\",\n\tsource: [[\"P24\", 209]],\n\ttype: \"fighting style\",\n\tdescription: \"When I'm holding a Melee weapon in one hand and no other weapons, I gain a +2 bonus to damage rolls with that weapon.\",\n\tdescriptionClassFeature: desc(\"I add +2 to damage rolls when wielding a Melee weapon in one hand and no other weapons.\"),\n\tdescriptionFull: [\n\t\t\"When you're holding a Melee weapon in one hand and no other weapons, you gain a +2 bonus to damage rolls with that weapon.\",\n\t],\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tfor (var i = 1; i <= FieldNumbers.actions; i++) {\n\t\t\t\t\tif (/off.hand.attack/i.test(What('Bonus Action ' + i))) return;\n\t\t\t\t};\n\t\t\t\tif (v.isMeleeWeapon && !/((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b/i.test(fields.Description)) output.extraDmg += 2;\n\t\t\t},\n\t\t\t\"When I'm holding a Melee weapon in one hand and no other weapons, I gain a +2 bonus to damage rolls with that weapon. This condition will always be false if the bonus action 'Off-hand Attack' exists.\",\n\t\t],\n\t},\n};\nFeatsList[\"interception\"] = {\n\tname: \"Interception\",\n\tsource: [[\"P24\", 209]],\n\ttype: \"fighting style\",\n\tdescription: \"As a reaction when a creature I can see hits another creature within 5 ft of me with an attack, I can reduce the damage dealt by 1d10 plus my Proficiency Bonus. I must be holding a Shield or a Simple or Martial weapon to do this.\",\n\tcalculate: 'event.value = \"As a reaction when a creature I can see hits another creature within 5 ft of me with an attack, I can reduce the damage dealt by 1d10 plus my Proficiency Bonus (1d10+\" + Number(How(\"Proficiency Bonus\")) + \"). I must be holding a Shield or a Simple or Martial weapon to do this.\";',\n\tdescriptionClassFeature: desc(\"As a reaction when a creature I can see hits another within 5 ft of me, I can use a Shield or Simple/Martial weapon I'm holding to reduce the damage done by 1d10 + my Prof Bonus.\"),\n\tdescriptionFull: [\n\t\t\"When a creature you can see hits another creature within 5 feet of you with an attack roll, you can take a Reaction to reduce the damage dealt to the target by 1d10 plus your Proficiency Bonus. You must be holding a Shield or a Simple or Martial weapon to use this Reaction.\",\n\t],\n\taction : [[\"reaction\", \"Interception Fighting Style\"]],\n};\nFeatsList[\"protection\"] = {\n\tname: \"Protection\",\n\tsource: [[\"P24\", 209]],\n\ttype: \"fighting style\",\n\tdescription: \"As a reaction when a creature I can see attacks a target other than me within 5 ft of me, I can interpose my Shield if I'm holding one. This gives Disadv\" + (typePF ? \"antage\" : \".\") + \" to the triggering attack and all other attacks against the target until the start of my next turn while I stay within 5 ft\" + (typePF ? \" of the target.\" : \".\"),\n\tdescriptionClassFeature: desc(\"As a reaction when a creature I can see attacks another within 5 ft of me, I can use a shield I'm holding to impose Disadv\" + (typePF ? \"antage\" : \".\") + \" on this and other attacks vs. them until my next turn starts.\"),\n\tdescriptionFull: [\n\t\t\"When a creature you can see attacks a target other than you that is within 5 feet of you, you can take a Reaction to interpose your Shield if you're holding one. You impose Disadvantage on the triggering attack roll and all other attack rolls against the target until the start of your next turn if you remain within 5 feet of the target.\",\n\t],\n\taction : [[\"reaction\", \"Protection Fighting Style\"]],\n};\nFeatsList[\"thrown weapon fighting\"] = {\n\tname: \"Thrown Weapon Fighting\",\n\tsource: [[\"P24\", 210]],\n\ttype: \"fighting style\",\n\tdescription: \"I add +2 to the damage roll when I hit with a ranged attack roll using a weapon that has the Thrown property.\",\n\tdescriptionClassFeature: desc(\"I add +2 damage to ranged attacks made with weapons with the Thrown property.\"),\n\tdescriptionFull: [\n\t\t\"When you hit with a ranged attack roll using a weapon that has the Thrown property, you gain a +2 bonus to the damage roll.\",\n\t],\n\tcalcChanges: {\n\t\tatkAdd: [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.isThrownWeapon && v.isMeleeWeapon) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2 damage when thrown';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"I deal +2 damage when I hit a ranged attack made with a thrown weapon.\",\n\t\t],\n\t\tatkCalc: [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.isThrownWeapon && !v.isMeleeWeapon) {\n\t\t\t\t\toutput.extraDmg += 2;\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"\",\n\t\t],\n\t},\n};\nFeatsList[\"unarmed fighting\"] = {\n\tname: \"Unarmed Fighting\",\n\tsource: [[\"P24\", 210]],\n\ttype: \"fighting style\",\n\tdescription: \"My Unarmed Strikes deal 1d6 damage instead of 1. If I'm not holding any weapons or a Shield when I make the attack roll, the d6 becomes a d8. At the start of each of my turns, I can deal 1d4 Bludgeoning damage to one creature Grappled by me.\",\n\tdescriptionClassFeature: desc([\n\t\t\"My unarmed strikes deal 1d6 damage, or 1d8 when I'm not holding any weapons or Shield.\",\n\t\t\"At the start of my turn, I can deal 1d4 Bludgeoning damage to a creature I'm Grappling.\",\n\t]),\n\tdescriptionFull: [\n\t\t\"When you hit with your Unarmed Strike and deal damage, you can deal Bludgeoning damage equal to 1d6 plus your Strength modifier instead of the normal damage of an Unarmed Strike. If you aren't holding any weapons or a Shield when you make the attack roll, the d6 becomes a d8.\",\n\t\t\"At the start of each of your turns, you can deal 1d4 Bludgeoning damage to one creature Grappled by you.\",\n\t],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\tif (fields.Damage_Die == 1 || fields.Damage_Die == \"1d4\") fields.Damage_Die = '1d6';\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Versatile (d8)';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My unarmed strikes deal 1d6 damage instead of 1, which increases to 1d8 if I'm not holding any weapons or a Shield when I make the attack roll.\",\n\t\t\t1,\n\t\t],\n\t},\n};\n// Epic Boons feats\nFeatsList[\"boon of energy resistance\"] = {\n\tname: \"Boon of Energy Resistance\",\n\tsource: [[\"P24\", 210]],\n\ttype: \"epic boon\",\n\tprerequisite: \"Level 19+\",\n\tprereqeval: function (v) { return v.characterLevel >= 19; },\n\tdescription: \"I gain ***Resistance*** to two non-physical damage types, which I can change after a Long Rest. ***Energy Redirection***. As a reaction when I take these types of damage, I can have a creature I can see within 60 ft make a Dex save DC 8 + Con mod + Prof Bonus, or take 2d12+Con mod damage of the same type.\",\n\tcalculate: 'var conMod = Number(What(\"Con Mod\")), profB = Number(How(\"Proficiency Bonus\")); var conModStr = conMod > 0 ? \"+\" + conMod : conMod === 0 ? \"\" : conMod; event.value = \"I gain ***Resistance*** to two non-physical damage types, which I can change after a Long Rest. ***Energy Redirection***. As a reaction when I take these types of damage, I can have a creature I can see within 60 ft make a Dex save DC \" + (8+conMod+profB) + \" (8 + Con mod + Prof Bonus) or take 2d12\" + conModStr + \" (Con mod) damage of the same type.\";',\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase one ability score of your choice by 1, to a maximum of 30.\",\n\t\t\"***Energy Resistances***. You gain Resistance to two of the following damage types of your choice: Acid, Cold, Fire, Lightning, Necrotic, Poison, Psychic, Radiant, or Thunder. Whenever you finish a Long Rest, you can change your choices.\",\n\t\t\"***Energy Redirection***. When you take damage of one of the types chosen for the Energy Resistances benefit, you can take a Reaction to direct damage of the same type toward another creature you can see within 60 feet of yourself that isn't behind Total Cover. If you do so, that creature must succeed on a Dexterity saving throw (8 plus your Constitution modifier and Proficiency Bonus) or take damage equal to 2d12 plus your Constitution modifier.\",\n\t],\n\taction: [[\"reaction\", \"Energy Redirection\"]],\n};\nFeatsList[\"boon of fortitude\"] = {\n\tname: \"Boon of Fortitude\",\n\tsource: [[\"P24\", 210]],\n\ttype: \"epic boon\",\n\tprerequisite: \"Level 19+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 19;\n\t},\n\tdescription: \"My Hit Point maximum increases by 40. When I regain Hit Points, I can add my Constitution modifier to the amount of HP regained. Once I've regained these additional HP, I can't do so again until the start of my next turn.\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase one ability score of your choice by 1, to a maximum of 30.\",\n\t\t\"***Fortified Health***. Your Hit Point maximum increases by 40. In addition, whenever you regain Hit Points, you can regain additional Hit Points equal to your Constitution modifier. Once you've regained these additional Hit Points, you can't do so again until the start of your next turn.\",\n\t],\n\tcalcChanges: {\n\t\thp: function (totalHD, HDobj, prefix) { return [40, \"Boon of Fortitude\"]; },\n\t},\n};\nFeatsList[\"boon of recovery\"] = {\n\tname: \"Boon of Recovery\",\n\tsource: [[\"P24\", 211]],\n\ttype: \"epic boon\",\n\tprerequisite: \"Level 19+\",\n\tprereqeval: function (v) {\n\t\treturn v.characterLevel >= 19;\n\t},\n\tdescription: [\n\t\t\"##Last Stand##. Once per Long Rest when I would be reduced to 0 HP, I can instead drop to 1 HP and regain half my max HP.\",\n\t\t\"n##Recover Vitality##. I have a pool of ten d10s, which replenish after a Long Rest. As a Bonus Action, I can expend and roll a number of dice from this pool to regain HP.\",\n\t].join(\"\\n\"),\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase one ability score of your choice by 1, to a maximum of 30.\",\n\t\t\"***Last Stand***. When you would be reduced to 0 Hit Points, you can drop to 1 Hit Point instead and regain a number of Hit Points equal to half your Hit Point maximum. Once you use this benefit, you can't use it again until you finish a Long Rest.\",\n\t\t\"***Recover Vitality***. You have a pool of ten d10s. As a Bonus Action, you can expend dice from the pool, roll those dice, and regain a number of Hit Points equal to the roll's total. You regain all the expended dice when you finish a Long Rest.\",\n\t],\n\taction: [[\"bonus action\", \"Recover Vitality\"]],\n\textraLimitedFeatures: [{\n\t\tname: \"Last Stand\",\n\t\tusages: 1,\n\t\trecovery: \"long rest\",\n\t}, {\n\t\tname: \"Recover Vitality (d10)\",\n\t\tusages: 10,\n\t\trecovery: \"long rest\",\n\t}],\n};\nFeatsList[\"boon of skill\"] = {\n\tname: \"Boon of Skill\",\n\tsource: [[\"P24\", 211]],\n\ttype: \"epic boon\",\n\tprerequisite: \"Level 19+\",\n\tprereqeval: function (v) { return v.characterLevel >= 19; },\n\tdescription: \"I gain proficiency in all skills and Expertise in one skill of my choice.\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase one ability score of your choice by 1, to a maximum of 30.\",\n\t\t\"***All-Around Adept***. You gain proficiency in all skills.\",\n\t\t\"***Expertise***. Choose one skill in which you lack Expertise. You gain Expertise in that skill.\",\n\t],\n\tskills: [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\n\tskillstxt: \"I gain proficiency in all skills and Expertise in one skill of my choice.\",\n};\nFeatsList[\"boon of speed\"] = {\n\tname: \"Boon of Speed\",\n\tsource: [[\"P24\", 211]],\n\ttype: \"epic boon\",\n\tprerequisite: \"Level 19+\",\n\tprereqeval: function (v) { return v.characterLevel >= 19; },\n\tdescription: \"***Escape Artist***. As a Bonus Action, I can take the Disengage action, which also ends the Grappled condition on me.\\n***Quickness***. My Speed increases by 30 ft.\",\n\tdescriptionFull: [\n\t\t\"You gain the following benefits.\",\n\t\t\"***Ability Score Increase***. Increase one ability score of your choice by 1, to a maximum of 30.\",\n\t\t\"***Escape Artist***. As a Bonus Action, you can take the Disengage action, which also ends the Grappled condition on you.\",\n\t\t\"***Quickness***. Your Speed increases by 30 feet.\",\n\t],\n\tspeed: { allModes: { bonus: \"+30\" } },\n\taction: [[\"bonus action\", \"Escape Artist (Disengage \\x26 Escape Grapple)\"]],\n};\n\n[ // Add ability score choices to the epic boons\n\t[\"boon of energy resistance\", true, false],\n\t[\"boon of fortitude\", true, false],\n\t[\"boon of recovery\", true, true],\n\t[\"boon of skill\", false, false],\n\t[\"boon of speed\", false, false],\n].forEach(function (entry) {\n\taddAbilityScoreChoicesToFeat(FeatsList[entry[0]], false, 30, entry[1], entry[2]);\n});\n\n\n// Weapons (cantrips not in the free rules)\nWeaponsList[\"mind sliver\"] = {\n\tregExpSearch: /^(?=.*mind)(?=.*sliver).*$/i,\n\tname: \"Mind Sliver\",\n\tsource: [[\"P24\", 298]],\n\tlist: \"spell\",\n\tability: 6,\n\ttype: \"Cantrip\",\n\tdamage: [\"C\", 6, \"psychic\"],\n\trange: \"60 ft\",\n\tdescription: \"Int save to avoid; Target has -1d4 on next save before my next turn ends\",\n\tabilitytodamage: false,\n\tdc: true,\n};\nWeaponsList[\"thorn whip\"] = {\n\tregExpSearch: /^(?=.*thorn)(?=.*whip).*$/i,\n\tname: \"Thorn Whip\",\n\tsource: [[\"P24\", 333]],\n\tlist: \"spell\",\n\tability: 5,\n\ttype: \"Cantrip\",\n\tdamage: [\"C\", 6, \"piercing\"],\n\trange: \"Melee, 30 ft\",\n\tdescription: \"Melee spell attack; Pull up to Large target up to 10 ft closer\",\n\tabilitytodamage: false,\n};\nWeaponsList[\"thunderclap\"] = {\n\tregExpSearch: /thunderclap/i,\n\tname: \"Thunderclap\",\n\tsource: [[\"P24\", 333]],\n\tlist: \"spell\",\n\tability: 6,\n\ttype: \"Cantrip\",\n\tdamage: [\"C\", 6, \"thunder\"],\n\trange: \"5-ft radius\",\n\tdescription: \"Con save to avoid; All creatures in area; Audible in 100 ft\",\n\tabilitytodamage: false,\n\tdc: true,\n};\nWeaponsList[\"toll the dead\"] = {\n\tregExpSearch: /^(?=.*toll)(?=.*dead).*$/i,\n\tname: \"Toll the Dead\",\n\tsource: [[\"P24\", 334]],\n\tlist: \"spell\",\n\tability: 5,\n\ttype: \"Cantrip\",\n\tdamage: [\"C\", 12, \"necrotic\"],\n\trange: \"60 ft\",\n\tdescription: \"Wis save to avoid; If target is at full HP, d8 instead of d12 damage\",\n\tabilitytodamage: false,\n\tdc: true,\n};\nWeaponsList[\"word of radiance\"] = {\n\tregExpSearch: /^(?=.*word)(?=.*radiance).*$/i,\n\tname: \"Word of Radiance\",\n\tsource: [[\"P24\", 343]],\n\tlist: \"spell\",\n\tability: 5,\n\ttype: \"Cantrip\",\n\tdamage: [\"C\", 6, \"radiant\"],\n\trange: \"5-ft radius\",\n\tdescription: \"Con save to avoid; Only chosen creatures I can see are affected\",\n\tabilitytodamage: false,\n\tdc: true,\n};\n\n// Spells\nSpellsList[\"arcane gate\"] = {\n\tname: \"Arcane Gate\",\n\tclasses: [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 242]],\n\treqLoS: true,\n\tlevel: 6,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"500 ft\",\n\tcomponents: \"V,S\",\n\tduration: \"Conc, 10 min\",\n\tdescription: \"Two portals up to 500 ft apart filled with opaque mist; teleport any between; Bns change orientation\",\n\tdescriptionFull: [\n\t\t\"You create linked teleportation portals. Choose two Large, unoccupied spaces on the ground that you can see, one space within range and the other one within 10 feet of you. A circular portal opens in each of those spaces and remains for the duration.\",\n\t\t\"The portals are two-dimensional glowing rings filled with mist that blocks sight. They hover inches from the ground and are perpendicular to it.\",\n\t\t\"A portal is open on only one side (you choose which). Anything entering the open side of a portal exits from the open side of the other portal as if the two were adjacent to each other. As a Bonus Action, you can change the facing of the open sides.\",\n\t],\n};\nSpellsList[\"arcane vigor\"] = {\n\tname: \"Arcane Vigor\",\n\tclasses: [\"sorcerer\", \"wizard\"],\n\tsource: [[\"P24\", 242]],\n\tlevel: 2,\n\tschool: \"Abjur\",\n\ttime: \"Bns\",\n\trange: \"Self\",\n\tcomponents: \"V,S\",\n\tduration: \"Instantaneous\",\n\tdescription: \"Expend and roll up to 2+1/SL unused Hit Dice; Heal roll + spellcasting ability modifier in HP\",\n\tdescriptionFull: [\n\t\t\"You tap into your life force to heal yourself. Roll one or two of your unexpended Hit Point Dice, and regain a number of Hit Points equal to the roll's total plus your spellcasting ability modifier. Those dice are then expended.\",\n\t\tUsingHigherLvl + \"The number of unexpended Hit Dice you can roll increases by one for each spell slot level above 2.\",\n\t],\n};\nSpellsList[\"armor of agathys\"] = {\n\tname: \"Armor of Agathys\",\n\tclasses: [\"warlock\"],\n\tsource: [[\"P24\", 243]],\n\tlevel: 1,\n\tschool: \"Abjur\",\n\ttime: \"Bns\",\n\trange: \"Self\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A shard of blue glass\",\n\tduration: \"1 h\",\n\tdescription: \"5+5/SL temp HP; crea that hit me with melee atk take 5+5/SL Cold dmg; spell ends if 0 temp HP left\",\n\tdescriptionShorter: \"5+5/SL temp HP; melee attackers vs. me take 5+5/SL Cold dmg; spell ends if 0 temp HP\",\n\tdescriptionFull: [\n\t\t\"Protective magical frost surrounds you. You gain 5 Temporary Hit Points. If a creature hits you with a melee attack roll before the spell ends, the creature takes 5 Cold damage. The spell ends early if you have no Temporary Hit Points.\",\n\t\tUsingHigherLvl + \"The Temporary Hit Points and the Cold damage both increase by 5 for each spell slot level above 1.\",\n\t],\n};\nSpellsList[\"arms of hadar\"] = {\n\tname: \"Arms of Hadar\",\n\tclasses: [\"warlock\"],\n\tsource: [[\"P24\", 243]],\n\tlevel: 1,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"S:10-ft rad\",\n\tcomponents: \"V,S\",\n\tduration: \"Instantaneous\",\n\tsave: \"Str\",\n\tdescription: \"All crea in range 2d6+1d6/SL Necrotic dmg; save halves; on failed save no reactions until next turn\",\n\tdescriptionFull: [\n\t\t\"Invoking Hadar, you cause tendrils to erupt from yourself. Each creature in a 10-foot Emanation originating from you makes a Strength saving throw. On a failed save, a target takes 2d6 Necrotic damage and can't take Reactions until the start of its next turn. On a successful save, a target takes half as much damage only.\",\n\t\tUsingHigherLvl + \"The damage increases by 1d6 for each spell slot level above 1.\",\n\t],\n};\nSpellsList[\"aura of purity\"] = {\n\tname: \"Aura of Purity\",\n\tclasses: [\"cleric\", \"paladin\"],\n\tsource: [[\"P24\", 244]],\n\tlevel: 4,\n\tschool: \"Abjur\",\n\ttime: \"Act\",\n\trange: \"S:30-ft rad\",\n\tcomponents: \"V\",\n\tduration: \"Conc, 10 min\",\n\tdescription: \"Me \\x26 allies resist Poison dmg, adv. on saves vs. blind, charm, deaf, fright, paralysis, poison, and stun\",\n\tdescriptionFull: [\n\t\t\"An aura radiates from you in a 30-foot Emanation for the duration. While in the aura, you and your allies have Resistance to Poison damage and Advantage on saving throws to avoid or end effects that include the Blinded, Charmed, Deafened, Frightened, Paralyzed, Poisoned, or Stunned condition.\",\n\t],\n};\nSpellsList[\"aura of vitality\"] = {\n\tname: \"Aura of Vitality\",\n\tclasses: [\"cleric\", \"druid\", \"paladin\"],\n\tsource: [[\"P24\", 244]],\n\tlevel: 3,\n\tschool: \"Abjur\",\n\ttime: \"Act\",\n\trange: \"S:30-ft rad\",\n\tcomponents: \"V\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"On cast and at the start of each of my turns, 1 creature in aura heals 2d6 HP\",\n\tdescriptionFull: [\n\t\t\"An aura radiates from you in a 30-foot Emanation for the duration. When you create the aura and at the start of each of your turns while it persists, you can restore 2d6 Hit Points to one creature in it.\",\n\t],\n};\nSpellsList[\"banishing smite\"] = {\n\tname: \"Banishing Smite\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 245]],\n\tlevel: 5,\n\tschool: \"Conj\",\n\ttime: \"Bns\",\n\ttimeFull: \"Bonus Action, which you take immediately after hitting a creature with a Melee weapon or an Unarmed Strike\",\n\trange: \"Self\",\n\tcomponents: \"V\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"Cast on melee wea hit; +5d10 Force dmg; if this brings target HP\\u226450, banished until spell ends\",\n\tdescriptionFull: [\n\t\t\"The target hit by the attack roll takes an extra 5d10 Force damage from the attack. If the attack reduces the target to 50 Hit Points or fewer, the target must succeed on a Charisma saving throw or be transported to a harmless demiplane for the duration. While there, the target has the Incapacitated condition. When the spell ends, the target reappears in the space it left or in the nearest unoccupied space if that space is occupied.\",\n\t],\n\tdynamicDamageBonus: {\n\t\tmultipleDmgMoments: false,\n\t},\n};\nSpellsList[\"beast sense\"] = {\n\tname: \"Beast Sense\",\n\tclasses: [\"druid\", \"ranger\"],\n\tsource: [[\"P24\", 245]],\n\tritual: true,\n\tlevel: 2,\n\tschool: \"Div\",\n\ttime: \"Act\",\n\trange: \"Touch\",\n\tcomponents: \"S\",\n\tduration: \"Conc, 1 h\",\n\tdescription: \"Use 1 willing Beast's senses as well as my own for the duration\",\n\tdescriptionFull: [\n\t\t\"You touch a willing Beast. For the duration, you can perceive through the Beast's senses as well as your own. When perceiving through the Beast's senses, you benefit from any special senses it has.\",\n\t],\n};\nSpellsList[\"blade ward\"] = {\n\tname: \"Blade Ward\",\n\tclasses: [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 247]],\n\tlevel: 0,\n\tschool: \"Abjur\",\n\ttime: \"Act\",\n\trange: \"Self\",\n\tcomponents: \"V,S\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"Creatures subtract 1d4 from attack rolls made against me for the duration\",\n\tdescriptionFull: [\"Whenever a creature makes an attack roll against you before the spell ends, the attacker subtracts 1d4 from the attack roll.\"],\n};\nSpellsList[\"blinding smite\"] = {\n\tname: \"Blinding Smite\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 247]],\n\tlevel: 3,\n\tschool: \"Evoc\",\n\ttime: \"Bns\",\n\ttimeFull: \"Bonus Action, which you take immediately after hitting a creature with a Melee weapon or an Unarmed Strike\",\n\trange: \"Self\",\n\tcomponents: \"V\",\n\tduration: \"1 min\",\n\tsave: \"Con\",\n\tdescription: \"Cast on melee wea hit; +3d8+1d8/SL Radiant dmg and Blinded; save at end of its turns to stop\",\n\tdescriptionFull: [\n\t\t\"The target hit by the strike takes an extra 3d8 Radiant damage from the attack, and the target has the Blinded condition until the spell ends. At the end of each of its turns, the Blinded target makes a Constitution saving throw, ending the spell on itself on a success.\",\n\t\tUsingHigherLvl + \"The extra damage increases by 1d8 for each spell slot level above 3.\",\n\t],\n\tdynamicDamageBonus: { multipleDmgMoments: false },\n};\nSpellsList[\"circle of power\"] = {\n\tname: \"Circle of Power\",\n\tclasses: [\"cleric\", \"paladin\", \"wizard\"],\n\tsource: [[\"P24\", 250]],\n\tlevel: 5,\n\tschool: \"Abjur\",\n\ttime: \"Act\",\n\trange: \"S:30-ft rad\",\n\tcomponents: \"V\",\n\tduration: \"Conc, 10 min\",\n\tdescription: \"While in aura, me \\x26 allies adv. on saves vs magical effects; if save would half dmg, we take no dmg\",\n\tdescriptionFull: [\n\t\t\"An aura radiates from you in a 30-foot Emanation for the duration. While in the aura, you and your allies have Advantage on saving throws against spells and other magical effects. When an affected creature makes a saving throw against a spell or magical effect that allows a save to take only half damage, it takes no damage if it succeeds on the save.\",\n\t],\n};\nSpellsList[\"cloud of daggers\"] = {\n\tname: \"Cloud of Daggers\",\n\tclasses: [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 251]],\n\tlevel: 2,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"60 ft\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A sliver of glass\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"5-ft cube all in it on cast/enter/end 4d4+2d4/SL Slashing dmg; Act to teleport cube 30 ft\",\n\tdescriptionFull: [\n\t\t\"You conjure spinning daggers in a 5-foot Cube centered on a point within range. Each creature in that area takes 4d4 Slashing damage. A creature also takes this damage if it enters the Cube or ends its turn there or if the Cube moves into its space. A creature takes this damage only once per turn.\",\n\t\t\"On your later turns, you can take a Magic action to teleport the Cube up to 30 feet.\",\n\t\tUsingHigherLvl + \"The damage increases by 2d4 for each spell slot level above 2.\",\n\t],\n};\nSpellsList[\"compelled duel\"] = {\n\tname: \"Compelled Duel\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 252]],\n\treqLoS: true,\n\tlevel: 1,\n\tschool: \"Ench\",\n\ttime: \"Bns\",\n\trange: \"30 ft\",\n\tcomponents: \"V\",\n\tduration: \"Conc, 1 min\",\n\tsave: \"Wis\",\n\tdescription: \"1 crea save or dis. atk vs. not-me, can't move >30ft away; ends if ally dmg, I atk other or move >30ft\",\n\tdescriptionFull: [\n\t\t\"You try to compel a creature into a duel. One creature that you can see within range makes a Wisdom saving throw. On a failed save, the target has Disadvantage on attack rolls against creatures other than you, and it can't willingly move to a space that is more than 30 feet away from you.\",\n\t\t\"The spell ends if you make an attack roll against a creature other than the target, if you cast a spell on an enemy other than the target, if an ally of yours damages the target, or if you end your turn more than 30 feet away from the target.\",\n\t],\n};\nSpellsList[\"conjure barrage\"] = {\n\tname: \"Conjure Barrage\",\n\tclasses: [\"ranger\"],\n\tsource: [[\"P24\", 254]],\n\treqLoS: true,\n\tlevel: 3,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"S:60-ft cone\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A Melee or Ranged weapon worth at least 1 CP\",\n\tduration: \"Instantaneous\",\n\tsave: \"Dex\",\n\tdescription: \"Conjure more of held weapon (or its ammo); any creatures in area 5d8+1d8/SL Force dmg; save half\",\n\tdescriptionFull: [\n\t\t\"You brandish the weapon used to cast the spell and conjure similar spectral weapons (or ammunition appropriate to the weapon) that launch forward and then disappear. Each creature of your choice that you can see in a 60-foot Cone makes a Dexterity saving throw, taking 5d8 Force damage on a failed save or half as much damage on a successful one.\",\n\t\tUsingHigherLvl + \"The damage increases by 1d8 for each spell slot level above 3.\",\n\t],\n};\nSpellsList[\"conjure volley\"] = {\n\tname: \"Conjure Volley\",\n\tclasses: [\"ranger\"],\n\tsource: [[\"P24\", 255]],\n\treqLoS: true,\n\tlevel: 5,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"150 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A Melee or Ranged weapon worth at least 1 CP\",\n\tduration: \"Instantaneous\",\n\tsave: \"Dex\",\n\tdescription: \"Volley falls in 40-ft rad 20-ft high cylinder; any seen creatures in it take 8d8 Force dmg; save halves\",\n\tdescriptionFull: [\n\t\t\"You brandish the weapon used to cast the spell and choose a point within range. Hundreds of similar spectral weapons (or ammunition appropriate to the weapon) fall in a volley and then disappear. Each creature of your choice that you can see in a 40-foot-radius, 20-foot-high Cylinder centered on that point makes a Dexterity saving throw. A creature takes 8d8 Force damage on a failed save or half as much damage on a successful one.\",\n\t],\n};\nSpellsList[\"cordon of arrows\"] = {\n\tname: \"Cordon of Arrows\",\n\tclasses: [\"ranger\"],\n\tsource: [[\"P24\", 258]],\n\tlevel: 2,\n\tschool: \"Trans\",\n\ttime: \"Act\",\n\trange: \"Touch\",\n\tcomponents: \"V,S,M\\u2020\",\n\tcompMaterial: \"Four or more arrows or bolts\",\n\tduration: \"8 h\",\n\tsave: \"Dex\",\n\tdescription: \"4+2/SL ammo in space; undesignated crea enter/end in 30 ft: 1 ammo atk, save or 2d4 Piercing dmg\",\n\tdescriptionShorter: \"4+2/SL ammo; undesignated crea enter/end in 30 ft: 1 ammo atk, save or 2d4 Piercing dmg\",\n\tdescriptionFull: [\n\t\t\"You touch up to four nonmagical Arrows or Bolts and plant them in the ground in your space. Until the spell ends, the ammunition can't be physically uprooted, and whenever a creature other than you enters a space within 30 feet of the ammunition for the first time on a turn or ends its turn there, one piece of ammunition flies up to strike it. The creature must succeed on a Dexterity saving throw or take 2d4 Piercing damage. The piece of ammunition is then destroyed. The spell ends when none of the ammunition remains planted in the ground.\",\n\t\t\"When you cast this spell, you can designate any creatures you choose, and the spell ignores them.\",\n\t\tUsingHigherLvl + \"The amount of ammunition that can be affected increases by two for each spell slot level above 2.\",\n\t],\n};\nSpellsList[\"crown of madness\"] = {\n\tname: \"Crown of Madness\",\n\tclasses: [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 259]],\n\treqLoS: true,\n\tlevel: 2,\n\tschool: \"Ench\",\n\ttime: \"Act\",\n\trange: \"120 ft\",\n\tcomponents: \"V,S\",\n\tduration: \"Conc, 1 min\",\n\tsave: \"Wis\",\n\tdescription: \"1 humanoid save or Charmed \\x26 melee atk chosen crea before move; Act to keep; repeat save turn's end\",\n\tdescriptionFull: [\n\t\t\"One creature that you can see within range must succeed on a Wisdom saving throw or have the Charmed condition for the duration. The creature succeeds automatically if it isn't Humanoid.\",\n\t\t\"A spectral crown appears on the Charmed target's head, and it must use its action before moving on each of its turns to make a melee attack against a creature other than itself that you mentally choose. The target can act normally on its turn if you choose no creature or if no creature is within its reach. The target repeats the save at the end of each of its turns, ending the spell on itself on a success.\",\n\t\t\"On your later turns, you must take the Magic action to maintain control of the target, or the spell ends.\",\n\t],\n};\nSpellsList[\"crusader's mantle\"] = {\n\tname: \"Crusader's Mantle\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 259]],\n\tlevel: 3,\n\tschool: \"Evoc\",\n\ttime: \"Act\",\n\trange: \"S:30-ft rad\",\n\tcomponents: \"V\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"Allies within the aura and I deal +1d4 Radiant dmg with weapons and unarmed strikes\",\n\tdescriptionFull: [\n\t\t\"You radiate a magical aura in a 30-foot Emanation. While in the aura, you and your allies each deal an extra 1d4 Radiant damage when hitting with a weapon or an Unarmed Strike.\",\n\t],\n};\nSpellsList[\"destructive wave\"] = {\n\tname: \"Destructive Wave\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 261]],\n\tlevel: 5,\n\tschool: \"Evoc\",\n\ttime: \"Act\",\n\trange: \"S:30-ft rad\",\n\tcomponents: \"V\",\n\tduration: \"Instantaneous\",\n\tsave: \"Con\",\n\tdescription: \"Any crea 5d6 Thunder dmg \\x26 5d6 Radiant or Necrotic dmg \\x26 knocked prone; save halves, not prone\",\n\tdescriptionShorter: \"Any crea 5d6 Thunder dmg \\x26 5d6 Radiant or Necrotic dmg \\x26 prone; save half, not prone\",\n\tdescriptionFull: [\n\t\t\"Destructive energy ripples outward from you in a 30-foot Emanation. Each creature you choose in the Emanation makes a Constitution saving throw. On a failed save, a target takes 5d6 Thunder damage and 5d6 Radiant or Necrotic damage (your choice) and has the Prone condition. On a successful save, a target takes half as much damage only.\",\n\t],\n\tdynamicDamageBonus: {\n\t\tallDmgTypesSingleMoment: true,\n\t\tmultipleDmgTypes: {\n\t\t\tdmgTypes: [\"radiant\", \"necrotic\"],\n\t\t\tinDescriptionAs: \"Radiant or Necrotic\",\n\t\t},\n\t},\n};\nSpellsList[\"elemental weapon\"] = {\n\tname: \"Elemental Weapon\",\n\tclasses: [\"artificer\", \"druid\", \"paladin\", \"ranger\"],\n\tsource: [[\"P24\", 267]],\n\tlevel: 3,\n\tschool: \"Trans\",\n\ttime: \"Act\",\n\trange: \"Touch\",\n\tcomponents: \"V,S\",\n\tduration: \"Conc, 1 h\",\n\tdescription: \"Nonmagical to +1 wea \\x26 +1d4 Acid/Cold/Fire/Lightn./Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\n\tdescriptionShorter: \"+1 wea \\x26 +1d4 Acid/Cold/Fire/Lightning/Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\n\tdescriptionFull: [\n\t\t\"A nonmagical weapon you touch becomes a magic weapon. Choose one of the following damage types: Acid, Cold, Fire, Lightning, or Thunder. For the duration, the weapon has a +1 bonus to attack rolls and deals an extra 1d4 damage of the chosen type when it hits.\",\n\t\tUsingHigherLvl + \"If you use a level 5-6 spell slot, the bonus to attack rolls increases to +2, and the extra damage increases to 2d4. If you use a level 7+ spell slot, the bonus increases to +3, and the extra damage increases to 3d4.\",\n\t],\n\tdynamicDamageBonus: {\n\t\tmultipleDmgTypes: {\n\t\t\tdmgTypes: [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\n\t\t\tinDescriptionAs: \"Acid/Cold/Fire/Lightning/Thunder|Acid/Cold/Fire/Lightn\\./Thunder\",\n\t\t},\n\t},\n};\nSpellsList[\"feign death\"] = {\n\tname: \"Feign Death\",\n\tclasses: [\"bard\", \"cleric\", \"druid\", \"wizard\"],\n\tsource: [[\"P24\", 271]],\n\tritual: true,\n\tlevel: 3,\n\tschool: \"Necro\",\n\ttime: \"Act\",\n\trange: \"Touch\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A pinch of graveyard dirt\",\n\tduration: \"1 h\",\n\tdescription: \"Willing crea looks dead: Blinded, Incapacitated, speed 0, resist. all dmg but Psychic, Poisoned immune\",\n\tdescriptionFull: [\n\t\t\"You touch a willing creature and put it into a cataleptic state that is indistinguishable from death.\",\n\t\t\"For the duration, the target appears dead to outward inspection and to spells used to determine the target's status. The target has the Blinded and Incapacitated conditions, and its Speed is 0.\",\n\t\t\"The target also has Resistance to all damage except Psychic damage, and it has Immunity to the Poisoned condition.\",\n\t],\n};\nSpellsList[\"fount of moonlight\"] = {\n\tname: \"Fount of Moonlight\",\n\tclasses: [\"bard\", \"druid\"],\n\tsource: [[\"P24\", 277]],\n\tlevel: 4,\n\tschool: \"Evoc\",\n\ttime: \"Act\",\n\trange: \"Self\",\n\tcomponents: \"V,S\",\n\tduration: \"Conc, 10 min\",\n\tsave: \"Con\",\n\tdescription: \"Radiant dmg resistance; melee atk +2d6 Radiant dmg; 20-ft rad bright/20-ft dim light; Reaction below\",\n\tdescriptionShorter: \"Radiant resistance; melee atk +2d6 Radiant dmg; 20-ft bright/20-ft dim light; React below\",\n\tdescriptionFull: [\n\t\t\"A cool light wreathes your body for the duration, emitting Bright Light in a 20-foot radius and Dim Light for an additional 20 feet.\",\n\t\t\"Until the spell ends, you have Resistance to Radiant damage, and your melee attacks deal an extra 2d6 Radiant damage on a hit.\",\n\t\t\"In addition, immediately after you take damage from a creature you can see within 60 feet of yourself, you can take a Reaction to force the creature to make a Constitution saving throw. On a failed save, the creature has the Blinded condition until the end of your next turn.\",\n\t],\n\tdependencies: [\"fount of moonlight-1-reaction\"],\n\twithoutDependencies: {\n\t\tdescription: \"Radiant resist; melee atk +2d6 Radiant dmg; 60ft React vis. crea dmg me: save or Blind to my next EoT\",\n\t\tdescriptionShorter: \"Radiant resist; melee atk+2d6 Radiant dmg; 60ft React vis. crea dmg me: save or Blind to EoT\",\n\t},\n};\nSpellsList[\"fount of moonlight-1-reaction\"] = {\n\tname: \"Fount of Moonlight: Reaction\",\n\tnameShort: \"Fount of Moon: reaction\", // capitalized Reacton doesn't fit\n\tclasses: [\"bard\", \"druid\"],\n\tsource: [[\"P24\", 277]],\n\treqLoS: true,\n\tlevel: 4,\n\tschool: \"Evoc\",\n\ttime: \"React\",\n\trange: \"60 ft\",\n\tcomponents: \"option\",\n\tduration: \"My next EoT\",\n\tsave: \"Con\",\n\tdescription: \"Reaction if crea I can see within 60 ft damages me: save or Blinded until the end of my next turn\",\n\tdescriptionFull: [\n\t\t\"Immediately after you take damage from a creature you can see within 60 feet of yourself, you can take a Reaction to force the creature to make a Constitution saving throw. On a failed save, the creature has the Blinded condition until the end of your next turn.\",\n\t\t\"This is an option of the Fount of Moonlight spell, see the line above for its full description.\",\n\t],\n\tdynamicDamageBonus: {\n\t\tdoNotProcess: true, // sheet makes mistake because \"damage\" comes after a numerical\n\t},\n};\nSpellsList[\"friends\"] = {\n\tname: \"Friends\",\n\tclasses: [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 277]],\n\treqLoS: true,\n\tlevel: 0,\n\tschool: \"Ench\",\n\ttime: \"Act\",\n\trange: \"10 ft\",\n\tcomponents: \"S,M\",\n\tcompMaterial: \"Some makeup\",\n\tduration: \"Conc, 1 min\",\n\tsave: \"Wis\",\n\tdescription: \"1 humanoid save or Charmed; once/24h; ends if dmged or if I atk, dmg, force save a crea; knows after\",\n\tdescriptionFull: [\n\t\t\"You magically emanate a sense of friendship toward one creature you can see within range. The target must succeed on a Wisdom saving throw or have the Charmed condition for the duration. The target succeeds automatically if it isn't a Humanoid, if you're fighting it, or if you have cast this spell on it within the past 24 hours.\",\n\t\t\"The spell ends early if the target takes damage or if you make an attack roll, deal damage, or force anyone to make a saving throw. When the spell ends, the target knows it was Charmed by you.\",\n\t],\n};\nSpellsList[\"grasping vine\"] = {\n\tname: \"Grasping Vine\",\n\tclasses: [\"druid\", \"ranger\"],\n\tsource: [[\"P24\", 280]],\n\treqLoS: true,\n\tlevel: 4,\n\tschool: \"Conj\",\n\ttime: \"Bns\",\n\trange: \"60 ft\",\n\tcomponents: \"V,S\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"Place vine; at cast/Bns: 30 ft melee spell atk: 4d8 Bludg. dmg, pull \\u226430 ft, \\u2264Huge Grappled (1+1/SL)\",\n\tdescriptionShorter: \"Place vine; cast/Bns: 30 ft melee spell atk: 4d8 Bludg. dmg, pull \\u226430 ft, Grappled (1+1/SL)\",\n\tdescriptionFull: [\n\t\t\"You conjure a vine that sprouts from a surface in an unoccupied space that you can see within range. The vine lasts for the duration.\",\n\t\t\"Make a melee spell attack against a creature within 30 feet of the vine. On a hit, the target takes 4d8 Bludgeoning damage and is pulled up to 30 feet toward the vine; if the target is Huge or smaller, it has the Grappled condition (escape DC equal to your spell save DC). The vine can grapple only one creature at a time, and you can cause the vine to release a Grappled creature (no action required).\",\n\t\t\"As a Bonus Action on your later turns, you can repeat the attack against a creature within 30 feet of the vine.\",\n\t\tUsingHigherLvl + \"The number of creatures the vine can grapple increases by one for each spell slot level above 4.\",\n\t],\n};\nSpellsList[\"hail of thorns\"] = {\n\tname: \"Hail of Thorns\",\n\tclasses: [\"ranger\"],\n\tsource: [[\"P24\", 283]],\n\tlevel: 1,\n\tschool: \"Conj\",\n\ttime: \"Bns\",\n\ttimeFull: \"Bonus Action, which you take immediately after hitting a creature with a Ranged weapon\",\n\trange: \"Self\",\n\tcomponents: \"V\",\n\tduration: \"Instantaneous\",\n\tsave: \"Dex\",\n\tdescription: \"Cast on ranged wea hit: target and all crea in 5 ft take 1d10+1d10/SL Piercing dmg; save halves\",\n\tdescriptionFull: [\n\t\t\"As you hit the creature, this spell creates a rain of thorns that sprouts from your Ranged weapon or ammunition. The target of the attack and each creature within 5 feet of it make a Dexterity saving throw, taking 1d10 Piercing damage on a failed save or half as much damage on a successful one.\",\n\t\tUsingHigherLvl + \"The damage increases by 1d10 for each spell slot level above 1.\",\n\t],\n};\n/*\n\tHunger of Hadar doesn't behave correctly with `genericSpellDmgEdit`,\n\tif adding a bonus that matches both damage types (Cold and Acid) and not\n\trestricted to a single roll. There is no setting to prevent both damage types\n\tgetting the bonus added.,\n\tHowever, no official feature allows for adding damage to multiple rolls of a spell.\n*/\nSpellsList[\"hunger of hadar\"] = {\n\tname: \"Hunger of Hadar\",\n\tclasses: [\"warlock\"],\n\tsource: [[\"P24\", 286]],\n\tlevel: 3,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"150 ft\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A pickled tentacle\",\n\tduration: \"Conc, 1 min\",\n\tsave: \"Dex\",\n\tdescription: \"20-ft rad all in area Blinded; start in: 2d6 Cold dmg; end in: save or 2d6 Acid dmg; +1d6/SL one type\",\n\tdescriptionShorter: \"20-ft rad all in: Blinded; start: 2d6 Cold dmg; end save or 2d6 Acid dmg; +1d6/SL one type\",\n\tdescriptionFull: [\n\t\t\"You open a gateway to the Far Realm, a region infested with unspeakable horrors. A 20-foot-radius Sphere of Darkness appears, centered on a point with range and lasting for the duration. The Sphere is Difficult Terrain, and it is filled with strange whispers and slurping noises, which can be heard up to 30 feet away. No light, magical or otherwise, can illuminate the area, and creatures fully within it have the Blinded condition.\",\n\t\t\"Any creature that starts its turn in the area takes 2d6 Cold damage. Any creature that ends its turn there must succeed on a Dexterity saving throw or take 2d6 Acid damage from otherworldly tentacles.\",\n\t\tUsingHigherLvl + \"The Cold or Acid damage (your choice) increases by 1d6 for each spell slot level above 3.\",\n\t],\n};\nSpellsList[\"jallarzi's storm of radiance\"] = {\n\tname: \"Jallarzi's Storm of Radiance\",\n\tnameShort: \"J's Storm of Radiance\",\n\tnameAlt: \"Storm of Radiance\",\n\tclasses: [\"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 289]],\n\treqLoS: true,\n\tlevel: 5,\n\tschool: \"Evoc\",\n\ttime: \"Act\",\n\trange: \"120 ft\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A pinch of phosphorus\",\n\tduration: \"Conc, 1 min\",\n\tsave: \"Con\",\n\tdescription: \"10\\xD740ft all cast/enter/end 2d10+1d10/SL Radiant \\x26 again Thunder dmg; save \\xBD; all in Blind \\x26 Deaf\",\n\tdescriptionMetric: \"3\\xD712m all cast/enter/end 2d10+1d10/SL Radiant \\x26 again Thunder dmg; save \\xBD; all in Blind \\x26 Deaf\",\n\tdescriptionShorter: \"10\\xD740ft all cast/enter/end 2d10+1d10/SL Radiant \\x26 Thndr dmg; save \\xBD; all in blind, deaf\",\n\tdescriptionShorterMetric: \"3\\xD712m all cast/enter/end 2d10+1d10/SL Radiant \\x26 Thndr dmg; save \\xBD; all in blind, deaf\",\n\tdescriptionFull: [\n\t\t\"You unleash a storm of flashing light and raging thunder in a 10-foot-radius, 40-foot-high Cylinder centered on a point you can see within range. While in this area, creatures have the Blinded and Deafened conditions, and they can't cast spells with a Verbal component.\",\n\t\t\"When the storm appears, each creature in it makes a Constitution saving throw, taking 2d10 Radiant damage and 2d10 Thunder damage on a failed save or half as much damage on a successful one. A creature also makes this save when it enters the spell's area for the first time on a turn or ends its turn there. A creature makes this save only once per turn.\",\n\t\tUsingHigherLvl + \"The Radiant and Thunder damage increase by 1d10 for each spell slot level above 5.\",\n\t],\n\tdynamicDamageBonus: {\n\t\tmultipleDmgTypes: {\n\t\t\tdmgTypes: [\"radiant\", \"thunder\"],\n\t\t\tinDescriptionAs: \"Radiant \\x26 again Thunder dmg|Radiant \\x26 Thndr dmg\",\n\t\t},\n\t},\n};\nSpellsList[\"lightning arrow\"] = {\n\tname: \"Lightning Arrow\",\n\tclasses: [\"ranger\"],\n\tsource: [[\"P24\", 292]],\n\tlevel: 3,\n\tschool: \"Trans\",\n\ttime: \"Bns\",\n\ttimeFull: \"Bonus Action, which you take immediately after hitting or missing a target with a ranged attack using a weapon\",\n\trange: \"Self\",\n\tcomponents: \"V,S\",\n\tduration: \"Instantaneous\",\n\tsave: \"Dex\",\n\tdescription: \"After rngd wea atk: 4d8+1d8/SL Lightn. dmg, miss half; all in 10ft 2d8+1d8/SL Lightn. dmg, save \\xBD\",\n\tdescriptionShorter: \"Aftr rng wea atk: 4d8+1d8/SL Lightn. dmg, miss half; 10ft all 2d8+1d8/SL Lightn. dmg, save \\xBD\",\n\tdescriptionFull: [\n\t\t\"As your attack hits or misses the target, the weapon or ammunition you're using transforms into a lightning bolt. Instead of taking any damage or other effects from the attack, the target takes 4d8 Lightning damage on a hit or half as much damage on a miss. Each creature within 10 feet of the target then makes a Dexterity saving throw, taking 2d8 Lightning damage on a failed save or half as much damage on a successful one.\",\n\t\t\"The weapon or ammunition then returns to its normal form.\",\n\t\tUsingHigherLvl + \"The damage for both effects of the spell increases by 1d8 for each spell slot level above 3.\",\n\t],\n\tdynamicDamageBonus: {\n\t\tmultipleDmgMoments: false,\n\t\tskipDmgGroupIfNotMultiple: /(atk .*?lightn\\. dmg.*?)/i,\n\t},\n};\nSpellsList[\"mind sliver\"] = {\n\tname: \"Mind Sliver\",\n\tclasses: [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 298]],\n\treqLoS: true,\n\tlevel: 0,\n\tschool: \"Ench\",\n\ttime: \"Act\",\n\trange: \"60 ft\",\n\tcomponents: \"V\",\n\tduration: \"Instantaneous\",\n\tsave: \"Int\",\n\tdescription: \"1 crea save or 1d6 Psychic dmg \\x26 -1d4 on first save before my next EoT; +1d6 at CL 5, 11, \\x26 17\",\n\tdescriptionCantripDie: \"1 crea save or `CD`d6 Psychic dmg and -1d4 on first saving throw before my next turn ends\",\n\tdescriptionFull: [\n\t\t\"You try to temporarily sliver the mind of one creature you can see within range. The target must succeed on an Intelligence saving throw or take 1d6 Psychic damage and subtract 1d4 from the next saving throw it makes before the end of your next turn.\",\n\t\tCantripUpgrade + \"The damage increases by 1d6 when you reach levels 5 (2d6), 11 (3d6), and 17 (4d6).\",\n\t],\n};\nSpellsList[\"power word fortify\"] = {\n\tname: \"Power Word Fortify\",\n\tclasses: [\"bard\", \"cleric\"],\n\tsource: [[\"P24\", 306]],\n\treqLoS: true,\n\tlevel: 7,\n\tschool: \"Ench\",\n\ttime: \"Act\",\n\trange: \"60 ft\",\n\tcomponents: \"V\",\n\tduration: \"Instantaneous\",\n\tdescription: \"Divide 120 Temporary HP equally among up to 6 visible creatures in range\",\n\tdescriptionFull: [\"You fortify up to six creatures you can see within range. The spell bestows 120 Temporary Hit Points, which you divide among the spell's recipients.\"],\n};\nSpellsList[\"staggering smite\"] = {\n\tname: \"Staggering Smite\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 320]],\n\tlevel: 4,\n\tschool: \"Ench\",\n\ttime: \"Bns\",\n\ttimeFull: \"Bonus Action, which you take immediately after hitting a creature with a Melee weapon or an Unarmed Strike\",\n\trange: \"Self\",\n\tcomponents: \"V\",\n\tduration: \"Instantaneous\",\n\tsave: \"Wis\",\n\tdescription: \"Cast on melee wea hit; +4d6+1d6/SL Psychic dmg; target save or Stunned until my next EoT\",\n\tdescriptionFull: [\n\t\t\"The target takes an extra 4d6 Psychic damage from the attack, and the target must succeed on a Wisdom saving throw or have the Stunned condition until the end of your next turn.\",\n\t\tUsingHigherLvl + \"The extra damage increases by 1d6 for each spell slot level above 4.\",\n\t],\n};\nSpellsList[\"steel wind strike\"] = {\n\tname: \"Steel Wind Strike\",\n\tclasses: [\"ranger\", \"wizard\"],\n\tsource: [[\"P24\", 320]],\n\treqLoS: true,\n\tlevel: 5,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"30 ft\",\n\tcomponents: \"S,M\\u0192\",\n\tcompMaterial: \"A Melee weapon worth 1+ SP\",\n\tduration: \"Instantaneous\",\n\tdescription: \"Melee spell atk vs. 5 visible creature for each 6d10 Force dmg; after, I teleport next to 1 target\",\n\tdescriptionFull: [\n\t\t\"You flourish the weapon used in the casting and then vanish to strike like the wind. Choose up to five creatures you can see within range. Make a melee spell attack against each target. On a hit, a target takes 6d10 Force damage.\",\n\t\t\"You then teleport to an unoccupied space you can see within 5 feet of one of the targets.\",\n\t],\n\tdynamicDamageBonus: { multipleDmgMoments: true },\n};\nSpellsList[\"summon aberration\"] = {\n\tname: \"Summon Aberration\",\n\tclasses: [\"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 322]],\n\treqLoS: true,\n\tlevel: 4,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A pickled tentacle and an eyeball in a platinum-inlaid vial worth 400+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: (typePF ? \"C\" : \"c\") + \"hosen Abberant spirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (400gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth an aberrant spirit. It manifests in an unoccupied space that you can see within range and uses the Aberrant Spirit stat block. When you cast the spell, choose Beholderkin, Mind Flayer, or Slaad. The creature resembles an Aberration of that kind, which determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, it shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"summon beast\"] = {\n\tname: \"Summon Beast\",\n\tclasses: [\"druid\", \"ranger\"],\n\tsource: [[\"P24\", 322]],\n\treqLoS: true,\n\tlevel: 2,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A feather, tuft of fur, and fish tail inside a gilded acorn worth 200+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: \"Chosen Bestial Spirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (200gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth a bestial spirit. It manifests in an unoccupied space that you can see within range and uses the Bestial Spirit stat block. When you cast the spell, choose an environment: Air, Land, or Water. The creature resembles an animal of your choice that is native to the chosen environment, which determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, the creature shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"summon celestial\"] = {\n\tname: \"Summon Celestial\",\n\tclasses: [\"cleric\", \"paladin\"],\n\tsource: [[\"P24\", 323]],\n\treqLoS: true,\n\tlevel: 5,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A reliquary worth 500+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: \"Chosen Celestial Spirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (500gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth a Celestial spirit. It manifests in an angelic form in an unoccupied space that you can see within range and uses the Celestial Spirit stat block. When you cast the spell, choose Avenger or Defender. Your choice determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, the creature shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"summon construct\"] = {\n\tname: \"Summon Construct\",\n\tclasses: [\"artificer\", \"wizard\"],\n\tsource: [[\"P24\", 324]],\n\treqLoS: true,\n\tlevel: 4,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A lockbox worth 400+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: (typePF ? \"C\" : \"c\") + \"hosen Construct \" + (typePF ? \"S\" : \"s\") + \"pirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (400gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth the spirit of a Construct. It manifests in an unoccupied space that you can see within range and uses the Construct Spirit stat block. When you cast the spell, choose a material: Clay, Metal, or Stone. The creature resembles an animate statue (you determine the appearance) made of the chosen material, which determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, the creature shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"summon elemental\"] = {\n\tname: \"Summon Elemental\",\n\tclasses: [\"druid\", \"ranger\", \"wizard\"],\n\tsource: [[\"P24\", 325]],\n\treqLoS: true,\n\tlevel: 4,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"Air, a pebble, ash, and water inside a gold-inlaid vial worth 400+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: (typePF ? \"C\" : \"c\") + \"hosen Elemental \" + (typePF ? \"S\" : \"s\") + \"pirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (400gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth an Elemental spirit. It manifests in an unoccupied space that you can see within range and uses the Elemental Spirit stat block. When you cast the spell, choose an element: Air, Earth, Fire, or Water. The creature resembles a bipedal form wreathed in the chosen element, which determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, the creature shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"summon fey\"] = {\n\tname: \"Summon Fey\",\n\tclasses: [\"druid\", \"ranger\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 326]],\n\treqLoS: true,\n\tlevel: 3,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A gilded flower worth 300+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: \"Chosen Fey Spirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (300gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth a Fey spirit. It manifests in an unoccupied space that you can see within range and uses the Fey Spirit stat block. When you cast the spell, choose a mood: Fuming, Mirthful, or Tricksy. The creature resembles a Fey creature of your choice marked by the chosen mood, which determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, the creature shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"summon fiend\"] = {\n\tname: \"Summon Fiend\",\n\tclasses: [\"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 326]],\n\treqLoS: true,\n\tlevel: 6,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A bloody vial worth 600+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: \"Chosen Fiend Spirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (600gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth a fiendish spirit. It manifests in an unoccupied space that you can see within range and uses the Fiendish Spirit stat block. When you cast the spell, choose Demon, Devil, or Yugoloth. The creature resembles a Fiend of the chosen type, which determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, the creature shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"summon undead\"] = {\n\tname: \"Summon Undead\",\n\tclasses: [\"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 328]],\n\treqLoS: true,\n\tlevel: 3,\n\tschool: \"Necro\",\n\ttime: \"Act\",\n\trange: \"90 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A gilded skull worth 300+ GP\",\n\tduration: \"Conc, 1 h\",\n\tdescription: \"Chosen Undead Spirit; obeys verbal commands; takes turn after mine; vanishes at 0 HP; see B (300gp)\",\n\tdescriptionFull: [\n\t\t\"You call forth an Undead spirit. It manifests in an unoccupied space that you can see within range and uses the Undead Spirit stat block. When you cast the spell, choose the creature's form: Ghostly, Putrid, or Skeletal. The spirit resembles an Undead creature with the chosen form, which determines certain details in its stat block. The creature disappears when it drops to 0 Hit Points or when the spell ends.\",\n\t\t\"The creature is an ally to you and your allies. In combat, the creature shares your Initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its movement to avoid danger.\",\n\t\tUsingHigherLvl + \"Use the spell slot's level for the spell's level in the stat block.\",\n\t],\n};\nSpellsList[\"swift quiver\"] = {\n\tname: \"Swift Quiver\",\n\tclasses: [\"ranger\"],\n\tsource: [[\"P24\", 329]],\n\tlevel: 5,\n\tschool: \"Trans\",\n\ttime: \"Bns\",\n\trange: \"Self\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A Quiver worth 1+ GP\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"At cast \\x26 Bns after: attack twice with weapon that uses arrows or bolts; spell creates nonmagical ammo\",\n\tdescriptionFull: [\n\t\t\"When you cast the spell and as a Bonus Action until it ends, you can make two attacks with a weapon that fires Arrows or Bolts, such as a Longbow or a Light Crossbow. The spell magically creates the ammunition needed for each attack. Each Arrow or Bolt created by the spell deals damage like a nonmagical piece of ammunition of its kind and disintegrates immediately after it hits or misses.\",\n\t],\n};\nSpellsList[\"synaptic static\"] = {\n\tname: \"Synaptic Static\",\n\tclasses: [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 330]],\n\tlevel: 5,\n\tschool: \"Ench\",\n\ttime: \"Act\",\n\trange: \"120 ft\",\n\tcomponents: \"V,S\",\n\tduration: \"Instantaneous\",\n\tsave: \"Int\",\n\tdescription: \"20-ft rad all save or 8d6 Psychic dmg, 1 min -1d6 on atk/chk/conc save; save half only; redo save EoT\",\n\tdescriptionShorter: \"20ft rad all save or 8d6+1d8 Psychic dmg, 1 min -1d6 to atks/check/conc save; save \\xBD only; EoT save\",\n\tdescriptionFull: [\n\t\t\"You cause psychic energy to erupt at a point within range. Each creature in a 20-foot-radius Sphere centered on that point makes an Intelligence saving throw, taking 8d6 Psychic damage on a failed save or half as much damage on a successful one.\",\n\t\t\"On a failed save, a target also has muddled thoughts for 1 minute. During that time, it subtracts 1d6 from all its attack rolls and ability checks, as well as any Constitution saving throws to maintain Concentration. The target makes an Intelligence saving throw at the end of each of its turns, ending the effect on itself on a success.\",\n\t],\n};\nSpellsList[\"tasha's bubbling cauldron\"] = {\n\tname: \"Tasha's Bubbling Cauldron\",\n\tnameAlt: \"Bubbling Cauldron\",\n\tnameShort: \"T's Bubbling Cauldron\",\n\tclasses: [\"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 330]],\n\tlevel: 6,\n\tschool: \"Conj\",\n\ttime: \"Act\",\n\trange: \"5 ft\",\n\tcomponents: \"V,S,M\\u0192\",\n\tcompMaterial: \"A gilded ladle worth 500+ GP\",\n\tduration: \"10 min\",\n\tdescription: \"Conjure immobile pot with spell mod of (un)common potion; Bns to take 1, lasting till recast (500 gp)\",\n\tdescriptionFull: [\n\t\t\"You conjure a claw-footed cauldron filled with bubbling liquid. The cauldron appears in an unoccupied space on the ground within 5 feet of you and lasts for the duration. The cauldron can't be moved and disappears when the spell ends, along with the bubbling liquid inside it.\",\n\t\t\"The liquid in the cauldron duplicates the properties of a Common or an Uncommon potion of your choice (such as a Potion of Healing). As a Bonus Action, you or an ally can reach into the cauldron and withdraw one potion of that kind. The potion is contained in a vial that disappears when the potion is consumed. The cauldron can produce a number of these potions equal to your spellcasting ability modifier (minimum 1). When the last of these potions is withdrawn from the cauldron, the cauldron disappears, and the spell ends.\",\n\t\t\"Potions obtained from the cauldron that aren't consumed disappear when you cast this spell again.\",\n\t],\n};\nSpellsList[\"telepathy\"] = {\n\tname: \"Telepathy\",\n\tclasses: [\"wizard\"],\n\tsource: [[\"P24\", 331]],\n\tlevel: 8,\n\tschool: \"Div\",\n\ttime: \"Act\",\n\trange: \"Unlimited\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A pair of linked silver rings\",\n\tduration: \"24 h\",\n\tdescription: \"1 familiar willing crea \\x26 I telepathic link; share \\x26 understand words, images, sounds and sensory info\",\n\tdescriptionFull: [\n\t\t\"You create a telepathic link between yourself and a willing creature with which you are familiar. The creature can be anywhere on the same plane of existence as you. The spell ends if you or the target are no longer on the same plane.\",\n\t\t\"Until the spell ends, you and the target can instantly share words, images, sounds, and other sensory messages with each other through the link, and the target recognizes you as the creature it is communicating with. The spell enables a creature to understand the meaning of your words and any sensory messages you send to it.\",\n\t],\n};\nSpellsList[\"thorn whip\"] = {\n\tname: \"Thorn Whip\",\n\tclasses: [\"artificer\", \"druid\"],\n\tsource: [[\"P24\", 333]],\n\tlevel: 0,\n\tschool: \"Trans\",\n\ttime: \"Act\",\n\trange: \"30 ft\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"The stem of a plant with thorns\",\n\tduration: \"Instantaneous\",\n\tdescription: \"Melee spell atk for 1d6 Piercing dmg \\x26 can pull \\u2264Large crea up to 10 ft closer; +1d6 at CL 5, 11, \\x26 17\",\n\tdescriptionShorter: \"Melee spell atk for 1d6 Piercing dmg \\x26 pull \\u2264Large crea up to 10 ft closer; +1d6 at CL 5, 11, 17\",\n\tdescriptionCantripDie: \"Melee spell atk for `CD`d6 Piercing dmg and can pull up to Large crea up to 10 ft closer\",\n\tdescriptionFull: [\n\t\t\"You create a vine-like whip covered in thorns that lashes out at your command toward a creature in range. Make a melee spell attack against the target. On a hit, the target takes 1d6 Piercing damage, and if it is Large or smaller, you can pull it up to 10 feet closer to you.\",\n\t\tCantripUpgrade + \"The damage increases by 1d6 when you reach levels 5 (2d6), 11 (3d6), and 17 (4d6).\",\n\t],\n};\nSpellsList[\"thunderclap\"] = {\n\tname: \"Thunderclap\",\n\tclasses: [\"artificer\", \"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 333]],\n\tlevel: 0,\n\tschool: \"Evoc\",\n\ttime: \"Act\",\n\trange: \"S:5-ft rad\",\n\tcomponents: \"S\",\n\tduration: \"Instantaneous\",\n\tsave: \"Con\",\n\tdescription: \"All creatures but me save or 1d6 Thunder dmg; 100-ft rad audible; +1d6 at CL 5, 11, and 17\",\n\tdescriptionCantripDie: \"All creatures but me save or `CD`d6 Thunder dmg; 100-ft rad audible\",\n\tdescriptionFull: [\n\t\t\"Each creature in a 5-foot Emanation originating from you must succeed on a Constitution saving throw or take 1d6 Thunder damage. The spell's thunderous sound can be heard up to 100 feet away.\",\n\t\tCantripUpgrade + \"The damage increases by 1d6 when you reach levels 5 (2d6), 11 (3d6), and 17 (4d6).\",\n\t],\n};\nSpellsList[\"thunderous smite\"] = {\n\tname: \"Thunderous Smite\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 334]],\n\tlevel: 1,\n\tschool: \"Evoc\",\n\ttime: \"Bns\",\n\ttimeFull: \"Bonus Action, which you take immediately after hitting a target with a Melee weapon or an Unarmed Strike\",\n\trange: \"Self\",\n\tcomponents: \"V\",\n\tduration: \"Instantaneous\",\n\tsave: \"Str\",\n\tdescription: \"Cast on melee wea hit; +2d6+1d6/SL Thunder dmg; save or 10 ft push \\x26 Prone; audible in 300\" + (typePF ? \" \" : \"\") + \"ft\",\n\tdescriptionFull: [\n\t\t\"Your strike rings with thunder that is audible within 300 feet of you, and the target takes an extra 2d6 Thunder damage from the attack. Additionally, if the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet away from you and have the Prone condition.\",\n\t\tUsingHigherLvl + \"The damage increases by 1d6 for each spell slot level above 1.\",\n\t],\n};\nSpellsList[\"toll the dead\"] = {\n\tname: \"Toll the Dead\",\n\tclasses: [\"cleric\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 334]],\n\treqLoS: true,\n\tlevel: 0,\n\tschool: \"Necro\",\n\ttime: \"Act\",\n\trange: \"60 ft\",\n\tcomponents: \"V,S\",\n\tduration: \"Instantaneous\",\n\tsave: \"Wis\",\n\tdescription: \"1 crea save or 1d12 Necrotic dmg (d8 if full HP); bell audible in 10 ft; +1d12/1d8 at CL 5, 11, \\x26 17\",\n\tdescriptionShorter: \"1 crea save or 1d12 Necrotic dmg (d8 not d12 if full HP); bell audible 10ft; +1d at CL 5, 11, 17\",\n\tdescriptionCantripDie: \"1 crea save or `CD`d12 Necrotic damage (d8 not d12 if at full HP); bell audible in 10 ft\",\n\tdescriptionFull: [\n\t\t\"You point at one creature you can see within range, and the single chime of a dolorous bell is audible within 10 feet of the target. The target must succeed on a Wisdom saving throw or take 1d8 Necrotic damage. If the target is missing any of its Hit Points, it instead takes 1d12 Necrotic damage.\",\n\t\tCantripUpgrade + \"The damage increases by one die when you reach levels 5 (2d8 or 2d12), 11 (3d8 or 3d12), and 17 (4d8 or 4d12).\",\n\t],\n};\nSpellsList[\"witch bolt\"] = {\n\tname: \"Witch Bolt\",\n\tclasses: [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource: [[\"P24\", 343]],\n\tlevel: 1,\n\tschool: \"Evoc\",\n\ttime: \"Act\",\n\trange: \"60 ft\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A twig struck by lightning\",\n\tduration: \"Conc, 1 min\",\n\tdescription: \"Rngd atk 2d12+1d12/SL Lightn. dmg; rnds after: Bns 1d12 Lightn. dmg; end: out of range/total cover\",\n\tdescriptionShorter: \"Rngd atk 2d12+1d12/SL Lightn. dmg; Bns 1d12 Lightn. dmg; end: out of range/total cover\",\n\tdescriptionFull: [\n\t\t\"A beam of crackling energy lances toward a creature within range, forming a sustained arc of lightning between you and the target. Make a ranged spell attack against it. On a hit, the target takes 2d12 Lightning damage.\",\n\t\t\"On each of your subsequent turns, you can take a Bonus Action to deal 1d12 Lightning damage to the target automatically, even if the first attack missed.\",\n\t\t\"The spell ends if the target is ever outside the spell's range or if it has Total Cover from you.\",\n\t\tUsingHigherLvl + \"The initial damage increases by 1d12 for each spell slot level above 1.\",\n\t],\n\tdynamicDamageBonus: {\n\t\tmultipleDmgMoments: false,\n\t\textraDmgGroupsSameType: /(Bns )(.*?)( Lightn. dmg)/i, // WERKT DIT???\n\t},\n};\nSpellsList[\"word of radiance\"] = {\n\tname: \"Word of Radiance\",\n\tclasses: [\"cleric\"],\n\tsource: [[\"P24\", 343]],\n\treqLoS: true,\n\tlevel: 0,\n\tschool: \"Evoc\",\n\ttime: \"Act\",\n\trange: \"S:5-ft rad\",\n\tcomponents: \"V,M\",\n\tcompMaterial: \"A sunburst token\",\n\tduration: \"Instantaneous\",\n\tsave: \"Con\",\n\tdescription: \"Any creature save or 1d6 Radiant damage; +1d6 at CL 5, 11, and 17\",\n\tdescriptionCantripDie: \"Any creature save or `CD`d6 Radiant damage\",\n\tdescriptionFull: [\n\t\t\"Burning radiance erupts from you in a 5-foot Emanation. Each creature of your choice that you can see in it must succeed on a Constitution saving throw or take 1d6 Radiant damage.\",\n\t\tCantripUpgrade + \"The damage increases by 1d6 when you reach levels 5 (2d6), 11 (3d6), and 17 (4d6).\",\n\t],\n};\nSpellsList[\"wrathful smite\"] = {\n\tname: \"Wrathful Smite\",\n\tclasses: [\"paladin\"],\n\tsource: [[\"P24\", 343]],\n\tlevel: 1,\n\tschool: \"Necro\",\n\ttime: \"Bns\",\n\ttimeFull: \"Bonus Action, which you take immediately after hitting a creature with a Melee weapon or an Unarmed Strike\",\n\trange: \"Self\",\n\tcomponents: \"V\",\n\tduration: \"1 min\",\n\tsave: \"Wis\",\n\tdescription: \"Cast on melee wea hit; +1d6 Necrotic dmg and save or Frightened; repeat save EoT to end\",\n\tdescriptionFull: [\n\t\t\"The target takes an extra 1d6 Necrotic damage from the attack, and it must succeed on a Wisdom saving throw or have the Frightened condition until the spell ends. At the end of each of its turns, the Frightened target repeats the save, ending the spell on itself on a success.\",\n\t\tUsingHigherLvl + \"The damage increases by 1d6 for each spell slot level above 1.\",\n\t],\n};\nSpellsList[\"yolande's regal presence\"] = {\n\tname: \"Yolande's Regal Presence\",\n\tnameShort: \"Y's Regal Presence\",\n\tclasses: [\"bard\", \"wizard\"],\n\tsource: [[\"P24\", 343]],\n\treqLoS: true,\n\tlevel: 5,\n\tschool: \"Ench\",\n\ttime: \"Act\",\n\trange: \"S:10-ft rad\",\n\tcomponents: \"V,S,M\",\n\tcompMaterial: \"A miniature tiara\",\n\tduration: \"Conc, 1 min\",\n\tsave: \"Wis\",\n\tdescription: \"Any crea cast/enter/end 4d6 Psychic dmg, Prone, and can push it up to 10 ft away; save half dmg only\",\n\tdescriptionShorter: \"Any crea cast/enter/end 4d6 Psychic dmg, Prone, can push it up to 10 ft; save half dmg only\",\n\tdescriptionFull: [\n\t\t\"You surround yourself with unearthly majesty in a 10-foot Emanation. Whenever the Emanation enters the space of a creature you can see and whenever a creature you can see enters the Emanation or ends its turn there, you can force that creature to make a Wisdom saving throw. On a failed save, the target takes 4d6 Psychic damage and has the Prone condition, and you can push it up to 10 feet away. On a successful save, the target takes half as much damage only. A creature makes this save only once per turn.\",\n\t],\n};\n"
  },
  {
    "path": "WotC 2024/pub_20250218_MM.js",
    "content": "var iFileName = \"pub_20250218_MM.js\";\nRequiredSheetVersion(\"24.0.1-beta\");\n// This file adds material from the 2025 Monster Manual that isn't in the SRD v5.2.1 to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"M24\"] = {\n\tname: \"2025 Monster Manual\",\n\tabbreviation: \"MM'25\",\n\tgroup: \"Primary Sources\",\n\turl: \"https://marketplace.dndbeyond.com/core-rules/3711000\",\n\tdate: \"2025/02/18\",\n};\n\n\n// Pact of the Chain familiar\nCreatureList[\"slaad tadpole\"] = {\n\tname: \"Slaad Tadpole\",\n\tnameThis: \"slaad\",\n\tsource: [[\"M24\", 284]],\n\tsize: 5,\n\ttype: \"Aberration\",\n\tcompanion: [\"pact_of_the_chain\"],\n\talignment: \"Chaotic Neutral\",\n\tac: 12,\n\thp: 7,\n\thd: [3, 4],\n\tspeed: \"30 ft, burrow 10 ft\",\n\tscores: [7, 15, 10, 3, 5, 3],\n\tskills: {\n\t\t\"stealth\": 4,\n\t},\n\tresistances: \"Acid, Cold, Fire, Lightning, Thunder\",\n\tsenses: \"Darkvision 60 ft\",\n\tpassivePerception: 7,\n\tlanguages: \"Understands Slaad but can't speak\",\n\tchallengeRating: \"1/8\",\n\tproficiencyBonus: 2,\n\tattacksAction: 1,\n\ttraits: [{\n\t\tname: \"Magic Resistance\",\n\t\tdescription: \"The [THIS] has Advantage on saving throws against spells and other magical effects.\",\n\t}],\n\tattacks: [{\n\t\tname: \"Bite\",\n\t\tability: 2,\n\t\tdamage: [1, 6, \"piercing\"],\n\t\trange: \"Melee (5 ft)\",\n\t}],\n};\n// Undead\nCreatureList[\"crawling claw\"] = {\n\tname: \"Crawling Claw\",\n\tsource: [[\"M24\", 83]],\n\tsize: 5,\n\ttype: \"Undead\",\n\talignment: \"Neutral Evil\",\n\tac: 12,\n\thp: 2,\n\thd: [1, 4],\n\tspeed: \"20 ft, climb 20 ft\",\n\tscores: [13, 14, 11, 5, 10, 4],\n\timmunities: \"Necrotic, Poison; Charmed, Exhaustion, Frightened, Incapacitated, Poisoned\",\n\tsenses: \"Blindsight 30 ft\",\n\tpassivePerception: 10,\n\tlanguages: \"Understands Common but can't speak\",\n\tchallengeRating: \"0\",\n\tproficiencyBonus: 2,\n\tattacksAction: 1,\n\tattacks: [{\n\t\tname: \"Slam\",\n\t\tability: 1,\n\t\tdamage: [1, \"\", \"necrotic\"],\n\t\trange: \"Melee (5 ft)\",\n\t}],\n};\n// Beast\nCreatureList[\"giant squid\"] = {\n\tname: \"Giant Squid\",\n\tsource: [[\"M24\", 360]],\n\tsize: 1,\n\ttype: \"Beast\",\n\talignment: \"Unaligned\",\n\tac: 12,\n\thp: 120,\n\thd: [16, 12],\n\tspeed: \"5 ft, swim 80 ft\",\n\tscores: [23, 14, 12, 5, 11, 4],\n\tsaves: [9, 5, \"\", \"\", \"\", \"\"],\n\tskills: {\n\t\t\"perception\": 6,\n\t},\n\tsenses: \"Darkvision 120 ft\",\n\tpassivePerception: 16,\n\tchallengeRating: \"6\",\n\tproficiencyBonus: 3,\n\tattacksAction: 2,\n\tfeatures: [{\n\t\tname: \"Water Breathing\",\n\t\tdescription: \"The [THIS] can breathe only underwater.\",\n\t}],\n\tactions: [{\n\t\tname: \"Multiattack\",\n\t\tdescription: \"As an Attack action, the [THIS] can make one Bite and one Tentacle attack.\",\n\t}, {\n\t\tname: \"Ink Cloud (1/Day)\",\n\t\tdescription: \"As a Reaction when the [THIS] takes damage while underwater, it can release ink that fills a 15-ft Cube centered on itself, and it moves up to its Swim Speed. The Cube is Heavily Obscured for 1 minute or until a strong current or similar effect disperses the ink.\",\n\t\twildshapeShow: \"As a Reaction after taking damage underwater, can release a 15-ft Cube of ink on itself and move up to Swim Speed. The area is Heavily Obscured for 1 minute or until dispersed by a strong current.\",\n\t}, {\n\t\tname: \"Tentacle\",\n\t\tdescription: \"If the target is a Huge or smaller creature, it has the Grappled condition (escape DC 16) from one of two tentacles, and the [THIS] can pull the target up to 10 ft straight toward itself.\",\n\t\twildshapeShow: false,\n\t}],\n\tattacks: [{\n\t\tname: \"Bite\",\n\t\tability: 1,\n\t\tdamage: [4, 10, \"piercing\"],\n\t\trange: \"Melee (5 ft)\",\n\t}, {\n\t\tname: \"Tentacle\",\n\t\tability: 1,\n\t\tdamage: [3, 8, \"bludgeoning\"],\n\t\trange: \"Melee (15 ft)\",\n\t\tdescription: \"\\u2264Huge is Grappled (escape DC 16) \\x26 pulled 10 ft closer\",\n\t}],\n};\n"
  },
  {
    "path": "WotC material/all_WotC_pub+UA.js",
    "content": "if (sheetVersion < 14000006) { throw \"This add-on script was made for a newer version of the sheet (v14.0.6-beta). Please use this required version or a later version (but lower than v15.0.0) and try again.\\n\\nYou can get the different versions at www.flapkan.com.\\n\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };\nif (sheetVersion >= 15000000) { throw \"This add-on script was made for a lower version of the sheet (one before v15.0.0). Please use the required version (v14.0.6-beta) or a later version and try again.\\n\\nYou can get the different versions at www.flapkan.com.\\n\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };\nvar iFileName = \"all_WotC_pub+UA.js\";\nRequiredSheetVersion(\"14.0.6-beta\", \"15.0.0\");\n\n// pub_20140715_LMoP.js\r\n// This file adds the magic items from the Lost Mines of Phandelver adventure from the D&D 5e starter set to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"LMoP\"] = {\r\n\tname : \"Lost Mines of Phandelver [items]\",\r\n\tabbreviation : \"LMoP\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dndbeyond.com/sources/lmop\",\r\n\tdate : \"2014/07/15\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"dragonguard\"] = {\r\n\tname : \"Dragonguard\",\r\n\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 72]],\r\n\ttype : \"armor (breastplate)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This +1 breastplate has a gold dragon motif worked into its design. It grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\r\n\tdescriptionFull : \"This +1 breastplate has a gold dragon motif worked into its design. Created for a human hero of Neverwinter named Tergon, it grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\r\n\tweight : 20,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /dragonguard/i,\r\n\t\tname : \"Dragonguard\",\r\n\t\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 72]],\r\n\t\ttype : \"medium\",\r\n\t\tac : \"14+1\",\r\n\t\tweight : 20,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"breath weapons of dragons\"] }\r\n}\r\nMagicItemsList[\"hew\"] = {\r\n\tname : \"Hew\",\r\n\tsource : [[\"LMoP\", 33], [\"PaBTSO\", 54]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : 'Dwarvish runes on the head of this rusty battleaxe read \"Hew\". It adds a +1 bonus to attack and damage rolls made with it and deals maximum damage against plant creatures or objects made of wood. While carrying it, I feel uneasy when I travel through a forest, as its creator was a dwarf smith who feuded with dryads.',\r\n\tdescriptionFull : 'This rusty old battleaxe of dwarven manufacture has runes in Dwarvish on the axe head which read \"Hew\". Hew is a +1 battleaxe that deals maximum damage when the wielder hits a plant creature or an object made of wood. The axe\\'s creator was a dwarf smith who feuded with the dryads of a forest where he used it for protection while he cut firewood. Whoever carries the axe feels uneasy whenever he or she travels through a forest.',\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /\\bhew\\b/i,\r\n\t\tname : '\"Hew\"',\r\n\t\tsource : [[\"LMoP\", 33], [\"PaBTSO\", 54]],\r\n\t\tdescription : \"Versatile (1d10); Max damage against plant creatures and wooden objects\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"lightbringer\"] = {\r\n\tname : \"Lightbringer\",\r\n\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 54]],\r\n\ttype : \"weapon (mace)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This mace adds a +1 bonus to attack and damage rolls made with it. It is made for a cleric of the god of dawn, with its head shaped like a sunburst and made of solid brass. I can command it to glow as bright as a torch. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\r\n\tdescriptionFull : \"This +1 mace was made for a cleric of Lathander, the god of dawn. The head of the mace is shaped like a sunburst and is made of solid brass. Named Lightbringer, this weapon glows as bright as a torch when its wielder commands. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /lightbringer/i,\r\n\t\tname : \"Lightbringer\",\r\n\t\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 54]],\r\n\t\tdescription : \"Command to glow as torch and deal +1d6 radiant damage to undead\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"spider staff\"] = { // changed to the new version introduced in Phandelver and Below: The Shattered Obelisk with the prerequisite\r\n\tname : \"Spider Staff\",\r\n\tsource : [[\"LMoP\", 53], [\"PaBTSO\", 220]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"Attacks with this black adamantine quarterstaff topped with a spider deal +1d6 poison damage on a hit. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Spider Climb (1 charge) or Web (2 charges, spell save DC 15).\",\r\n\tdescriptionFull : \"The top of this black, adamantine staff is shaped like a spider. The staff weighs 6 pounds. You must be attuned to the staff to gain its benefits and cast its spells. The staff can be wielded as a quarterstaff. It deals 1d6 extra poison damage on a hit when used to make a weapon attack.\\n   The staff has 10 charges, which are used to fuel the spells within it. With the staff in hand, you can use your action to cast one of the following spells from the staff if the spell is on your class's spell list: Spider Climb (1 charge) or Web (2 charges, spell save DC 15). No components are required.\\n   The staff regains 1d6+4 expended charges each day at dusk. If you expend the staff's last charge, roll a d20. On a 1, the staff crumbles to dust and is destroyed.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tweight : 6, // kept to the original weight\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /^(?=.*spider)(?=.*staff).*$/i,\r\n\t\tname : \"Spider Staff\",\r\n\t\tsource : [[\"LMoP\", 53], [\"PaBTSO\", 220]],\r\n\t\tdescription : \"Versatile (1d8); +1d6 poison damage\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tfixedDC : 15,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"spider climb\"],\r\n\t\tselection : [\"spider climb\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"web\"],\r\n\t\tselection : [\"web\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"staff of defense\"] = { // changed to the new version introduced in Phandelver and Below: The Shattered Obelisk with the prerequisite\r\n\tname : \"Staff of Defense\",\r\n\tsource : [[\"LMoP\", 53]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This slender, hollow staff is made of glass yet is as strong as oak. While holding it, I gain a +1 bonus to AC. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Mage Armor (1 charge) or Shield (2 charges) as an action.\",\r\n\tdescriptionFull : \"This slender, hollow staff is made of glass yet is as strong as oak. It weighs 3 pounds. You must be attuned to the staff to gain its benefits and cast its spells.\\n   While holding the staff, you have a +1 bonus to your Armor Class.\\n   The staff has 10 charges, which are used to fuel the spells within it. With the staff in hand, you can use your action to cast one of the following spells from the staff if the spell is on your class's spell list: Mage Armor (1 charge) or Shield (2 charges). No components are required.\\n   The staff regains 1d6+4 expended charges each day at dawn. If you expend the staff's last charge, roll a d20. On a 1, the staff shatters and is destroyed.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tweight : 3,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tweaponsAdd : { options : [\"Staff of Defense\"] },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"mage armor\"],\r\n\t\tselection : [\"mage armor\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"shield\"],\r\n\t\tselection : [\"shield\"],\r\n\t\tfirstCol : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"shield\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Cast as an action.\"\r\n\t\t}\r\n\t},\r\n\textraAC : [{name : \"Staff of Defense\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while holding the Staff of Defense.\"}],\r\n}\r\n\n// pub_20140818_PHB.js\r\n// This file adds all material from the Player's Handbook to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.P={\r\n\tname : \"Player's Handbook\",\r\n\tabbreviation : \"PHB\",\r\n\tabbreviationSpellsheet : \"P\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/rpg_playershandbook\",\r\n\tdate : \"2014/08/19\"\r\n};\r\n\r\n// (sub)Races that are not in the SRD\r\nRaceList[\"mountain dwarf\"] = {\r\n\tregExpSearch : /^((?=.*(hylar|daewar))|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(mountain|shield)\\b))).*$/i,\r\n\tname : \"Mountain dwarf\",\r\n\tsortname : \"Dwarf, Mountain\",\r\n\tsource : [[\"P\", 20]],\r\n\tplural : \"Mountain dwarves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\tarmorProfs : [true, true, false, false],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 2, 0, 0, 0],\r\n\ttrait : \"Mountain Dwarf (+2 Strength, +2 Constitution)\\n\\nStonecunning:\\n   Whenever I make an Intelligence (History) check related to the origin of stonework, I am considered proficient in the History skill and add double my proficiency bonus to the check, instead of my normal proficiency bonus.\"\r\n};\r\nRaceList[\"dark elf\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*drow)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(dark|underdarks?|deep|depths?)\\b))).*$/i,\r\n\tname : \"Drow\",\r\n\tsortname : \"Elf, Dark (Drow)\",\r\n\tsource : [[\"P\", 24]],\r\n\tplural : \"Drow\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"rapier\", \"shortsword\", \"hand crossbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to 5 1/2 feet tall (4'5\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 100 lb (75 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,7 metres tall (135 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 45 kg (35 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Drow (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nDrow Magic: 1st level: Dancing Lights cantrip; 3rd level: Faerie Fire; 5th level: Darkness. Both spells can be used once per long rest. Charisma is my spellcasting ability for these.\", // errata to specify once per day is long rest\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Drow Magic (level 1)\",\r\n\t\tspells : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"faerie fire\" : {\r\n\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Faerie Fire\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\tlimfeaname : \"Darkness\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"wood elf\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*(grugach|kagonesti|silhana))|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(woodlands?|woods?|forests?|wilds?|green)\\b))).*$/i,\r\n\tname : \"Wood elf\",\r\n\tsortname : \"Elf, Wood\",\r\n\tsource : [[\"P\", 24]],\r\n\tplural : \"Wood elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 125 lb (100 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 60 kg (45 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Wood Elf (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nMask of the Wild: I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n};\r\nRaceList[\"forest gnome\"] = {\r\n\tregExpSearch : /^((?=.*\\bgnomes?\\b)(?=.*\\b(woods?|forests?|wilds?|green)\\b)).*$/i,\r\n\tname : \"Forest gnome\",\r\n\tsortname : \"Gnome, Forest\",\r\n\tsource : [[\"P\", 37]],\r\n\tplural : \"Forest gnomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 2, 0, 0],\r\n\ttrait : \"Forest Gnome (+1 Dexterity, +2 Intelligence)\" + (typePF ? \"\\n\" : \" \") + \"\\nNatural Illusionist:\\n   I know the Minor Illusion cantrip. Intelligence is my spellcasting ability for it.\\n\\nSpeak with Small Beasts:\\n   Through sounds and gestures, I can communicate simple ideas with Small or smaller beasts.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Natural Illusionist\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t}]\r\n};\r\nRaceList[\"stout halfling\"] = {\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*stout).*$/i,\r\n\tname : \"Stout halfling\",\r\n\tsortname : \"Halfling, Stout\",\r\n\tsource : [[\"P\", 28]],\r\n\tplural : \"Stout halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\", \"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Stout Halfling (+2 Dexterity, +1 Constitution)\\n\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\n\\nHalfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\"\r\n};\r\n\r\n// Add racial variants that are not part of the SRD\r\nAddRacialVariant(\"human\", \"variant\", {\r\n\tregExpSearch : /variant/i,\r\n\tsource : [[\"P\", 31]],\r\n\tskillstxt : \"Choose any one skill\",\r\n\tscorestxt : \"+1 to two different ability scores of my choice\",\r\n\tscores : [0, 0, 0, 0, 0, 0],\r\n\ttrait : \"Human (+1 to two different ability scores of my choice)\\n\\nSkills: I gain proficiency in one skill of my choice.\\n\\nFeat: I gain one feat of my choice.\",\r\n\tfeatsAdd: [{ type: /^(?!.*(blessing|boon|gift|fighting style)).*$/i }],\r\n});\r\n\r\n// Add the subclasses that are not in the SRD\r\nAddSubClass(\"barbarian\", \"totem warrior\", {\r\n\tregExpSearch : /^(?=.*totem)(?=.*(warrior|fighter|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Totem Warrior\",\r\n\tfullname : \"Totem Warrior\",\r\n\tsource : [[\"P\", 50]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spirit Seeker\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast Beast Sense and Speak with Animals as rituals (PHB 217 \\u0026 277)\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"beast sense\", \"speak with animals\"],\r\n\t\t\t\tselection : [\"beast sense\", \"speak with animals\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"beast sense\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"speak with animals\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Totem Spirit\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Spirit using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Bear Spirit\",\r\n\t\t\t\tdescription: desc(\"While raging, I have resistance to all damage types except psychic\"),\r\n\t\t\t\tdmgres : [[\"All -Psychic\", \"All -Psychic (rage)\"]],\r\n\t\t\t\teval : function() {\r\n\t\t\t\t\tprocessResistance(false, 'Barbarian: Rage', ClassList.barbarian.features.rage.dmgres);\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function() {\r\n\t\t\t\t\tprocessResistance(true, 'Barbarian: Rage', ClassList.barbarian.features.rage.dmgres);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Eagle Spirit\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging without heavy armor, others have disadv. on opportunity attacks vs. me\",\r\n\t\t\t\t\t\"I can use the Dash action as a bonus action\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (Dash)\"]]\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Wolf Spirit\",\r\n\t\t\t\tdescription: desc(\"While raging, friends have advantage on melee attacks vs. hostiles within 5 ft of me\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Aspect of the Beast\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Aspect using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Aspect of the Bear\",\r\n\t\t\t\tdescription: desc(\"Advantage on Strength checks to push/pull/lift/break; Carrying capacity is doubled\"),\r\n\t\t\t\tcarryingCapacity : 2\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Aspect of the Eagle\",\r\n\t\t\t\tdescription: desc(\"I can see up to 1 mile away perfectly; No disadvantage on Perception from dim light\")\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Aspect of the Wolf\",\r\n\t\t\t\tdescription: desc(\"I can track while traveling at a fast pace; I can move stealthily at a normal pace\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Spirit Walker\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can cast Commune with Nature as a ritual\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Walker\",\r\n\t\t\t\tspells : [\"commune with nature\"],\r\n\t\t\t\tselection : [\"commune with nature\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"commune with nature\" : {\r\n\t\t\t\t\ttime : \"11 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Totemic Attunement\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Attunement using the \"Choose Feature\" button'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Bear Attunement\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, any creature that sees me within 5 ft has disadv. on attacks vs. others\",\r\n\t\t\t\t\t\"Enemies that can't perceive me or be frightened are immune\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Eagle Attunement\",\r\n\t\t\t\tdescription: desc(\"While raging, I can fly at my current speed, but I can only stay aloft during my turn\")\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Wolf Attunement\",\r\n\t\t\t\tdescription: desc(\"If my melee attack hits while raging, I can knock prone as a bonus action (up to Large)\"),\r\n\t\t\t\taction : [[\"bonus action\", \" (raging: knock prone)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of valor\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*valor).*$/i,\r\n\tsubname : \"College of Valor\",\r\n\tsubnameshort: \"Valor\",\r\n\tsource : [[\"P\", 55]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor, shields, and martial weapons\"),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Inspiration\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"My Bardic Inspiration can also be used to add the die to a weapon damage roll\",\r\n\t\t\t\t\"Alternatively, it can be used as a reaction to add the die to AC against one attack\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Battle Magic\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"As a bonus action when I use my action to cast a bard spell, I can make a weapon attack\"),\r\n\t\t\taction : [[\"bonus action\", \" (with Bard spell)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"knowledge domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(knowledge|wisdom|learning)).*$/i,\r\n\tsubname : \"Knowledge Domain\",\r\n\tsubnameshort: \"Knowledge\",\r\n\tsource : [[\"P\", 59]],\r\n\tspellcastingExtra : [\"command\", \"identify\", \"augury\", \"suggestion\", \"nondetection\", \"speak with dead\", \"arcane eye\", \"confusion\", \"legend lore\", \"scrying\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Blessings of Knowledge\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I learn two languages and gain proficiency and expertise with two skills\",\r\n\t\t\t\t\"I can choose from the following: Arcana, History, Nature, or Religion\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from Arcana, History, Nature, and Religion. You also gain expertise with these skills\",\r\n\t\t\tlanguageProfs : [2]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Knowledge of Ages\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"As an action, I gain proficiency with a chosen skill or tool for 10 minutes\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Read Thoughts\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one creature within 60 ft I can see must make a Wisdom save\",\r\n\t\t\t\t\"If it fails, I can read its surface thoughts for 1 min, as long as it's within 60 ft of me\",\r\n\t\t\t\t\"As an action, I can end this and cast Suggestion on it (it fails its save automatically)\",\r\n\t\t\t\t\"If it succeeded on its save, I can't use this feature again on it until I finish a long rest\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"P\", 60]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Visions of the Past\",\r\n\t\t\tsource : [[\"P\", 60]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can see recent events of an object or area by concentrating and praying for 1 min\",\r\n\t\t\t\t\"I can meditate this way for up to a number of minutes equal to my Wisdom score\",\r\n\t\t\t\t\"\\u2022 Object Reading (after meditating for 1 minute per owner):\",\r\n\t\t\t\t\"   If an owner owned it in the last Wis score in days, I learn how that owner got/lost it\",\r\n\t\t\t\t\"   I also learn the most recent significant event involving the object and the owner\",\r\n\t\t\t\t\"\\u2022 Area Reading (my immediate surroundings, up to a 50-foot cube):\",\r\n\t\t\t\t\"   Going back my Wisdom score in days, per minute I meditate, I learn about one event\",\r\n\t\t\t\t\"   This starts with the most recent event; It can be significant or just important to me\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"light domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(light|sun|shining)\\b).*$/i,\r\n\tsubname : \"Light Domain\",\r\n\tsource : [[\"P\", 61]],\r\n\tspellcastingExtra : [\"burning hands\", \"faerie fire\", \"flaming sphere\", \"scorching ray\", \"daylight\", \"fireball\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"scrying\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrip\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn the Light cantrip if I didn't already know it\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (Light)\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Warding Flare\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature within 30 ft attacks me and I can see it, I can interpose divine light\",\r\n\t\t\t\t\"As a reaction, I impose disadv. on the attacker's attack roll (unless it can't be blinded)\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Radiance of the Dawn\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, in 30 ft, magical darkness is dispelled and hostiles must make a Con save\",\r\n\t\t\t\t\"Each takes radiant damage, saves for half, and negates with total cover\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"2d10 + 2 damage\", \"2d10 + 3 damage\", \"2d10 + 4 damage\", \"2d10 + 5 damage\", \"2d10 + 6 damage\", \"2d10 + 7 damage\", \"2d10 + 8 damage\", \"2d10 + 9 damage\", \"2d10 + 10 dmg\", \"2d10 + 11 dmg\", \"2d10 + 12 dmg\", \"2d10 + 13 dmg\", \"2d10 + 14 dmg\", \"2d10 + 15 dmg\", \"2d10 + 16 dmg\", \"2d10 + 17 dmg\", \"2d10 + 18 dmg\", \"2d10 + 19 dmg\", \"2d10 + 20 dmg\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Improved Flare\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can also use my Warding Flare if another is attacked by a creature within 30 ft of me\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Corona of Light\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I have an aura of 60 ft sunlight and 30 ft dim light for 1 min\",\r\n\t\t\t\t\"Enemies in the sunlight have disadv. on saves vs. spells that deal fire or radiant damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (start/stop)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"nature domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(nature|natural|animal|element(s|al)?)\\b).*$/i,\r\n\tsubname : \"Nature Domain\",\r\n\tsource : [[\"P\", 62]],\r\n\tspellcastingExtra : [\"animal friendship\", \"speak with animals\", \"barkskin\", \"spike growth\", \"plant growth\", \"wind wall\", \"dominate beast\", \"grasping vine\", \"insect plague\", \"tree stride\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Acolyte of Nature\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn a druid cantrip and proficiency with a skill: Animal Handling, Nature, Survival\"),\r\n\t\t\tskillstxt : \"Choose one from Animal Handling, Nature, or Survival\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Acolyte of Nature\",\r\n\t\t\t\t\"class\" : \"druid\",\r\n\t\t\t\tlevel : [0, 0]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Charm Animals and Plants\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all beasts and plants within 30 ft that I can see must make a Wis save\",\r\n\t\t\t\t\"If failed, each is charmed and friendly to allies and me for 1 min or until damaged\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Dampen Elements\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, if an ally in 30 ft or I takes acid/cold/fire/lightning/thunder damage,\",\r\n\t\t\t\t\"I can grant resistance against that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 cold/fire/lightning damage (choice)\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 cold/fire/lightning damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra cold, fire, or lightning damage (my choice).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Master of Nature\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a bonus action, I can command creatures that are charmed by my Channel Divinity\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"tempest domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(tempest|destruction|storm)\\b).*$/i,\r\n\tsubname : \"Tempest Domain\",\r\n\tsource : [[\"P\", 62]],\r\n\tspellcastingExtra : [\"fog cloud\", \"thunderwave\", \"gust of wind\", \"shatter\", \"call lightning\", \"sleet storm\", \"control water\", \"ice storm\", \"destructive wave\", \"insect plague\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Wrath of the Storm\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when a creature I can see within 5 ft hits me, I can thunderously rebuke\",\r\n\t\t\t\t\"It takes 2d8 lightning or thunder damage (my choice) that a Dex save can halve\",\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Destructive Wrath\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"Instead of rolling, I can do maximum damage when I do lightning or thunder damage\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Thunderbolt Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I deal lightning damage to a Large or smaller foe, I can push it up to 10 ft away\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 thunder damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 thunder damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra thunder damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Stormborn\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"Whenever I'm not underground or indoors, I have a fly speed equal to my current speed\"),\r\n\t\t\tspeed : { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"trickery domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(trickery|trickster|illusion)).*$/i,\r\n\tsubname : \"Trickery Domain\",\r\n\tsubnameshort: \"Trickery\",\r\n\tsource : [[\"P\", 63]],\r\n\tspellcastingExtra : [\"charm person\", \"disguise self\", \"mirror image\", \"pass without trace\", \"blink\", \"dispel magic\", \"dimension door\", \"polymorph\", \"dominate person\", \"modify memory\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Blessing of the Trickster\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a willing creature I touch (not me) has adv. on Dex (Stealth) checks\",\r\n\t\t\t\t\"This lasts for 1 hour or until I use it again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Invoke Duplicity\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I create illusory duplicates of myself within 30 ft of me for 1 min (conc)\",\r\n\t\t\t\t\"As a bonus action, I can move them 30 ft to space(s) I can see within 120 ft of me\",\r\n\t\t\t\t\"I can cast spells as though I were in a duplicate's space, using my own senses\",\r\n\t\t\t\t\"I have advantage on attacks if the target is within 5 ft of a duplicate and me\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : (n < 17 ? 1 : 2) + \" illusory duplicate\" + (n < 17 ? \"\" : \"s\"); }),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Move Duplicate(s)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Cloak of Shadows\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As an action, I become invisible until the end of my next turn or I attack/cast a spell\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 poison damage\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 poison damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra poison damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Improved Duplicity\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Invoke Duplicity, I make four illusory duplicates instead of one\",\r\n\t\t\t\t\"I can move any number of the illusory duplicates as part of the same bonus action\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"war domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(war|fighting|conflict)\\b).*$/i,\r\n\tsubname : \"War Domain\",\r\n\tsource : [[\"P\", 63]],\r\n\tspellcastingExtra : [\"divine favor\", \"shield of faith\", \"magic weapon\", \"spiritual weapon\", \"crusader's mantle\", \"spirit guardians\", \"freedom of movement\", \"stoneskin\", \"flame strike\", \"hold monster\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"War Priest\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"When I use the Attack action, I can make a weapon attack as a bonus action\"),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: War God's Blessing\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, when a creature within 30 ft makes an attack roll, I can bless its attack\",\r\n\t\t\t\t\"The creature then adds a +10 bonus to the roll; I can do this after seeing the d20 roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 damage of the weapon's type\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Avatar of Battle\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I have resistance to bludgeoning/piercing/slashing damage from nonmagical weapons\"),\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the moon\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))((?=.*\\bmoon\\b)|((?=.*\\bmany\\b)(?=.*\\bforms?\\b))).*$/i,\r\n\tsubname : \"Circle of the Moon\",\r\n\tsubnameshort: \"Moon\",\r\n\tsource : [[\"P\", 69]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Forms\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I am able to transform into more dangerous animal forms when using Wild Shape\")\r\n\t\t},\r\n\t\t\"subclassfeature2.wild shape\" : {\r\n\t\t\tname : \"Wild Shape\",\r\n\t\t\tsource : [[\"P\", 66]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I assume the shape of a beast I have seen before with these rules:\",\r\n\t\t\t\t\" \\u2022 I gain all its game statistics except Intelligence, Wisdom, or Charisma\",\r\n\t\t\t\t\" \\u2022 I get its skill/saving throw prof. while keeping my own, using whichever is higher\",\r\n\t\t\t\t\" \\u2022 I assume the beast's HP and HD; I get mine back when I revert back\",\r\n\t\t\t\t\" \\u2022 I can't cast spells in beast form, but transforming doesn't break concentration\",\r\n\t\t\t\t\" \\u2022 I retain features from class, race, etc., but I don't retain special senses\",\r\n\t\t\t\t\" \\u2022 I can choose whether equipment falls to the ground, merges, or stays worn\",\r\n\t\t\t\t\" \\u2022 I revert if out of time or unconscious; if KOd by damage, excess damage carries over\"\r\n\t\t\t]),\r\n\t\t\tusages : ClassList.druid.features[\"subclassfeature2.wild shape\"].usages,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\tvar cr = Math.max(1, Math.floor(n/3));\r\n\t\t\t\tvar hr = Math.floor(n/2);\r\n\t\t\t\tvar limits = n < 4 ? \", no fly/swim\" : n < 8 ? \", no fly\" : \"\";\r\n\t\t\t\treturn \"CR \" + cr + limits + \"; \" + hr + (limits.length ? \" h\" : \" hours\");\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \" (start/stop)\"]],\r\n\t\t\teval : function() {\r\n\t\t\t\tprocessActions(false, \"Druid: Wild Shape\", ClassList.druid.features[\"subclassfeature2.wild shape\"].action, \"Wild Shape\");\r\n\t\t\t},\r\n\t\t\twildshapePageInfo: {\r\n\t\t\t\tuses: ClassList.druid.features[\"subclassfeature2.wild shape\"].wildshapePageInfo.uses,\r\n\t\t\t\tduration: ClassList.druid.features[\"subclassfeature2.wild shape\"].wildshapePageInfo.duration,\r\n\t\t\t\tlimitations: levels.map(function (n) {\r\n\t\t\t\t\tvar CR = Math.max(1, Math.floor(n/3));\r\n\t\t\t\t\tvar limits = n < 4 ? \", no fly/swim\" : \", no fly speed\";\r\n\t\t\t\t\treturn n < 8 ? \"max CR \" + CR + limits : \"CR \" + CR + \"or lower\";\r\n\t\t\t\t}),\r\n\t\t\t},\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Combat Wild Shape\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action while in Wild Shape, I can expend spell slots to heal myself\",\r\n\t\t\t\t\"I regain 1d8 HP per expended spell slot level; I can use Wild Shape as a bonus action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (heal)\"]],\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\tprocessActions(true, \"Druid: Wild Shape\", ClassList.druid.features[\"subclassfeature2.wild shape\"].action, \"Wild Shape\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Primal Strike\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My attacks count as magical while in Wild Shape\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Elemental Wild Shape\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can transform into an air/earth/fire/water elemental by expending 2 Wild Shape uses\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Thousand Forms\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can cast Alter Self at will without using a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Thousand Forms\",\r\n\t\t\t\tspells : [\"alter self\"],\r\n\t\t\t\tselection : [\"alter self\"],\r\n\t\t\t\tfirstCol : \"atwill\",\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"battle master\", {\r\n\tregExpSearch : /^(?=.*(war|fighter|battle|martial))(?=.*master).*$/i,\r\n\tsubname : \"Battle Master\",\r\n\tfullname : \"Battle Master\",\r\n\tsource : [[\"P\", 73]],\r\n\tabilitySave : 1,\r\n\tabilitySaveAlt : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special Maneuvers\",\r\n\t\t\t\t\"I regain all superiority dice after a short rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Maneuvers\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page',\r\n\t\t\t\t\"I can use a Maneuver by expending a superiority die (only one Maneuver per attack)\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9) + \" known\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Maneuver\",\r\n\t\t\textrachoices : [\"Commander's Strike\", \"Disarming Attack\", \"Distracting Strike\", \"Evasive Footwork\", \"Feinting Attack\", \"Goading Attack\", \"Lunging Attack\", \"Maneuvering Attack\", \"Menacing Attack\", \"Parry\", \"Precision Attack\", \"Pushing Attack\", \"Rally\", \"Riposte\", \"Sweeping Attack\", \"Trip Attack\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9;\r\n\t\t\t}),\r\n\t\t\t\"commander's strike\" : {\r\n\t\t\t\tname : \"Commander's Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I forgo one attack of my Attack action to use a bonus action to direct an ally I see/hear\",\r\n\t\t\t\t\t\"The ally can use a reaction to make an attack, adding the superiority die to damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t\t},\r\n\t\t\t\"disarming attack\" : {\r\n\t\t\t\tname : \"Disarming Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Strength save or drops a held object of my choice to its feet\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"distracting strike\" : {\r\n\t\t\t\tname : \"Distracting Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"The next attack of an ally before my next turn has adv. against the creature\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"evasive footwork\" : {\r\n\t\t\t\tname : \"Evasive Footwork\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Use when moving; I add the superiority die to my AC until I stop moving\")\r\n\t\t\t},\r\n\t\t\t\"feinting attack\" : {\r\n\t\t\t\tname : \"Feinting Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can feint to gain adv. on my next attack this turn vs. a target in 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"goading attack\" : {\r\n\t\t\t\tname : \"Goading Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wis save or has disadv. vs. other targets until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"lunging attack\" : {\r\n\t\t\t\tname : \"Lunging Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can spend a superiority die to increase the reach of a melee weapon attack by 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"maneuvering attack\" : {\r\n\t\t\t\tname : \"Maneuvering Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Ally can use reaction to move half speed without opportunity attack from the target\",\r\n\t\t\t\t]),\r\n\r\n\t\t\t},\r\n\t\t\t\"menacing attack\" : {\r\n\t\t\t\tname : \"Menacing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wisdom save or is frightened of me until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"parry\" : {\r\n\t\t\t\tname : \"Parry\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"When damaged in melee, I can use a reaction to reduce it by superiority die + Dex mod\"),\r\n\t\t\t\taction : [[\"reaction\", \" (when damaged in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"precision attack\" : {\r\n\t\t\t\tname : \"Precision Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"I add the superiority die to my attack roll, either before or after rolling\")\r\n\t\t\t},\r\n\t\t\t\"pushing attack\" : {\r\n\t\t\t\tname : \"Pushing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be pushed up to 15 ft away\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"rally\" : {\r\n\t\t\t\tname : \"Rally\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Ally that can see/hear me gets temporary HP equal to superiority die + Charisma mod\"),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"riposte\" : {\r\n\t\t\t\tname : \"Riposte\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When missed in melee, I can use my reaction to make one melee attack vs. the attacker\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (after missed in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping attack\" : {\r\n\t\t\t\tname : \"Sweeping Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature and a second creature is within 5 ft of the first\",\r\n\t\t\t\t\t\"If the original attack roll hits this second creature, it takes the superiority die in damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"trip attack\" : {\r\n\t\t\t\tname : \"Trip Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Student of War\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I have proficiency with one artisan's tool set of my choice\"),\r\n\t\t\ttoolProfs : [[\"Artisan's tools\", 1]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Know Your Enemy\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I spend 1 min studying someone, the DM will tell me info about him/her\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"eldritch knight\", {\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green|arcane archer))(?=.*(knight|fighter|warrior|militant|warlord|phalanx|gladiator|trooper))(?=.*\\b(eldritch|arcane|magic|mage|witch)\\b).*$/i,\r\n\tsubname : \"Eldritch Knight\",\r\n\tfullname : \"Eldritch Knight\",\r\n\tsource : [[\"P\", 75]],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 3,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tschool : [\"Evoc\", \"Abjur\"],\r\n\t\tlevel : [0, 4]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [0, 0, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\r\n\t\tspells : [0, 0, 2, 3, 3, 3, 4, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"action surge\" : {\r\n\t\t\tname : \"Action Surge\",\r\n\t\t\tsource : [[\"P\", 72]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can take one additional action on my turn on top of my normally allowed actions\"),\r\n\t\t\tusages : [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\"]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast known wizard cantrips/spells, using Intelligence as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"\", \"2 cantrips \\u0026 3 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 5 spells known\", \"2 cantrips \\u0026 6 spells known\", \"2 cantrips \\u0026 6 spells known\", \"3 cantrips \\u0026 7 spells known\", \"3 cantrips \\u0026 8 spells known\", \"3 cantrips \\u0026 8 spells known\", \"3 cantrips \\u0026 9 spells known\", \"3 cantrips \\u0026 10 spells known\", \"3 cantrips \\u0026 10 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 12 spells known\", \"3 cantrips \\u0026 13 spells known\"],\r\n\t\t\tspellcastingBonus : [{ // the spells gained at level 3, 8, 14, 20\r\n\t\t\t\tname : \"From any school\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\ttimes : [0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4],\r\n\t\t\t\tlevel : [1, 4]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Weapon Bond\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can bond with up to two weapons by spending a short rest with each\",\r\n\t\t\t\t\"I can't be disarmed of a bonded weapon and I can summon one as a bonus action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"War Magic\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"When I use my action to cast a cantrip, I can make a weapon attack as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Eldritch Strike\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"A creature hit by my weapon attack has disadv. on the save vs. the next spell I cast\",\r\n\t\t\t\t\"This lasts until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Arcane Charge\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I use Action Surge, I can also teleport up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"I can do so before or after the extra action\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Improved War Magic\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"When I use my action to cast a spell, I can make a weapon attack as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the four elements\", {\r\n\tregExpSearch : /^(?=.*\\b(four|4)\\b)((?=.*elements?)|((?=.*earth)|(?=.*(wind|air))|(?=.*fire)|(?=.*water)))((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Four Elements\",\r\n\tsubnameshort: \"Four Elements\",\r\n\tsource : [[\"P\", 80]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Disciple of the Elements\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I know Elemental Attunement and additional Elemental Disciplines, depending on level\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Elemental Disciplines to the third page',\r\n\t\t\t\t\"From 5th level onward, I can use additional ki points to increase their spell slot level\",\r\n\t\t\t\t\"I can trade known Elemental Disciplines for others when I gain new ones\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : ((n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" known; \") + (n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6) + \" max ki\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Elemental Discipline\",\r\n\t\t\textrachoices : [\"Breath of Winter (prereq: level 17 monk)\", \"Clench of the North Wind (prereq: level 6 monk)\", \"Elemental Attunement\", \"Eternal Mountain Defense (prereq: level 17 monk)\", \"Fangs of the Fire Snake\", \"Fist of Four Thunders\", \"Fist of Unbroken Air\", \"Flames of the Phoenix (prereq: level 11 monk)\", \"Gong of the Summit (prereq: level 6 monk)\", \"Mist Stance (prereq: level 11 monk)\", \"Ride the Wind (prereq: level 11 monk)\", \"River of Hungry Flame (prereq: level 17 monk)\", \"Rush of the Gale Spirits\", \"Shape the Flowing River\", \"Sweeping Cinder Strike\", \"Water Whip\", \"Wave of Rolling Earth (prereq: level 17 monk)\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"elemental attunement\" }],\r\n\t\t\t\"elemental attunement\" : {\r\n\t\t\t\tname : \"Elemental Attunement\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can briefly control elemental forces within 30 ft of me\",\r\n\t\t\t\t\t\"I can make a harmless sensory effect, light/snuff light, chill/warm 1 lb for 1 hour,\",\r\n\t\t\t\t\t\"or I cause earth/fire/water/mist in a 1 ft cube to shape itself into a form for 1 minute\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"breath of winter (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"Breath of Winter\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"6 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Cone of Cold without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Breath of Winter\",\r\n\t\t\t\t\tspells : [\"cone of cold\"],\r\n\t\t\t\t\tselection : [\"cone of cold\"],\r\n\t\t\t\t\tfirstCol : 6\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"cone of cold\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Breath of Winter discipline, I can cast Cone of Cold without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"clench of the north wind (prereq: level 6 monk)\" : {\r\n\t\t\t\tname : \"Clench of the North Wind\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"3 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Hold Person without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Clench of the North Wind\",\r\n\t\t\t\t\tspells : [\"hold person\"],\r\n\t\t\t\t\tselection : [\"hold person\"],\r\n\t\t\t\t\tfirstCol : 3\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 6; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"hold person\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Clench of the North Wind discipline, I can cast Hold Person without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"eternal mountain defense (prereq: level 17 monk)\" : { // errata from level 11 to level 17\r\n\t\t\t\tname : \"Eternal Mountain Defense\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Stoneskin on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Eternal Mountain Defense\",\r\n\t\t\t\t\tspells : [\"stoneskin\"],\r\n\t\t\t\t\tselection : [\"stoneskin\"],\r\n\t\t\t\t\tfirstCol : 5\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"stoneskin\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I gain resistance to nonmagical Bludgeoning, Piercing, and Slashing damage\",\r\n\t\t\t\t\t\tchanges : \"With the Eternal Mountain Defense discipline, I can cast Stoneskin without a material component but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fangs of the fire snake\" : {\r\n\t\t\t\tname : \"Fangs of the Fire Snake\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"With Attack action, my unarmed strikes +10 ft reach and deal fire damage this turn\",\r\n\t\t\t\t\t\"Also, I can spent an additional 1 ki point to cause an attack to deal +1d10 fire damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && (/^(?=.*fire)(?=.*snake).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'After hit, spend 1 ki point for +1d10 fire damage';\r\n\t\t\t\t\t\t\t\tfields.Range = 'Melee (15 ft reach)';\r\n\t\t\t\t\t\t\t\tfields.Damage_Type = 'fire';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the words 'Fire Snake' in the name of an unarmed strike, it gets +10 ft reach, does fire damage, and gains the option to deal +1d10 fire damage by spending 1 additional ki point.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fist of four thunders\" : {\r\n\t\t\t\tname : \"Fist of Four Thunders\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Thunderwave\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Fist of Four Thunders\",\r\n\t\t\t\t\tspells : [\"thunderwave\"],\r\n\t\t\t\t\tselection : [\"thunderwave\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"thunderwave\" : {\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Fist of Four Thunders discipline, I can cast Thunderwave.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fist of unbroken air\" : {\r\n\t\t\t\tname : \"Fist of Unbroken Air\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points; +1d10/extra ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, target within 30 ft takes 3d10 bludgeoning damage (spend ki for more)\",\r\n\t\t\t\t\t\"It is also pushed up to 20 ft away from me and knocked prone\",\r\n\t\t\t\t\t\"It can make a Strength save to halve damage and avoid being pushed and knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"flames of the phoenix (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Flames of the Phoenix\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Fireball without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Flames of the Phoenix\",\r\n\t\t\t\t\tspells : [\"fireball\"],\r\n\t\t\t\t\tselection : [\"fireball\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"fireball\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Flames of the Phoenix discipline, I can cast Fireball without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"gong of the summit (prereq: level 6 monk)\" : {\r\n\t\t\t\tname : \"Gong of the Summit\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"3 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Shatter without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Gong of the Summit\",\r\n\t\t\t\t\tspells : [\"shatter\"],\r\n\t\t\t\t\tselection : [\"shatter\"],\r\n\t\t\t\t\tfirstCol : 3\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 6; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"shatter\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Gong of the Summit discipline, I can cast Shatter without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"mist stance (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Mist Stance\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Gaseous Form on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mist Stance\",\r\n\t\t\t\t\tspells : [\"gaseous form\"],\r\n\t\t\t\t\tselection : [\"gaseous form\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"gaseous form\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I turn into a misty cloud with fly 10 ft, resist. to nonmagical dmg, adv. on Str/Dex/saves\",\r\n\t\t\t\t\t\tchanges : \"With the Mist Stance discipline, I can cast Gaseous Form without a material component, but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"ride the wind (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Ride the Wind\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Fly on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Ride the Wind\",\r\n\t\t\t\t\tspells : [\"fly\"],\r\n\t\t\t\t\tselection : [\"fly\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"fly\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I gain 60 ft flying speed\",\r\n\t\t\t\t\t\tchanges : \"With the Ride the Wind discipline, I can cast Fly without a material component but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"river of hungry flame (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"River of Hungry Flame\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Wall of Fire without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"River of Hungry Flame\",\r\n\t\t\t\t\tspells : [\"wall of fire\"],\r\n\t\t\t\t\tselection : [\"wall of fire\"],\r\n\t\t\t\t\tfirstCol : 5\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"wall of fire\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the River of Hungry Flame discipline, I can cast Wall of Fire without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"rush of the gale spirits\" : {\r\n\t\t\t\tname : \"Rush of the Gale Spirits\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Gust of Wind without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Rush of the Gale Spirits\",\r\n\t\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"gust of wind\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"With the Rush of the Gale Spirits discipline, I can cast Gust of Wind without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"shape the flowing river\" : {\r\n\t\t\t\tname : \"Shape the Flowing River\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can affect ice/water up to a 30-foot cube within 120 ft\",\r\n\t\t\t\t\t\"I can switch it between water/ice states and reshape ice up to half its largest dimension\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping cinder strike\" : {\r\n\t\t\t\tname : \"Sweeping Cinder Strike\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Burning Hands\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Sweeping Cinder Strike\",\r\n\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Sweeping Cinder Strike discipline, I can cast Burning Hands.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"water whip\" : {\r\n\t\t\t\tname : \"Water Whip\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points; +1d10/extra ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a creature within 30 ft takes 3d10 bludgeoning damage (spend ki for more)\",\r\n\t\t\t\t\t\"It is also knocked prone or pulled up to 25 ft closer to me (my choice)\",\r\n\t\t\t\t\t\"It can make a Dexterity save to halve damage and avoid being pulled or knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"wave of rolling earth (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"Wave of Rolling Earth\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"6 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Wall of Stone without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Wave of Rolling Earth\",\r\n\t\t\t\t\tspells : [\"wall of stone\"],\r\n\t\t\t\t\tselection : [\"wall of stone\"],\r\n\t\t\t\t\tfirstCol : 6\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"wall of stone\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"With the Wave of Rolling Earth discipline, I can cast Wall of Stone without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of shadow\", {\r\n\tregExpSearch : /^(?=.*shadow)((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of Shadow\",\r\n\tsubnameshort: \"Shadow\",\r\n\tsource : [[\"P\", 80]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Shadow Arts\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I know the Minor Illusion cantrip and can cast certain spells by using ki (see page 3)\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Shadow Arts\",\r\n\t\t\t\tspells : [\"minor illusion\"],\r\n\t\t\t\tselection : [\"minor illusion\"],\r\n\t\t\t}],\r\n\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\"shadow spells\" : {\r\n\t\t\t\tname : \"Shadow Spells\",\r\n\t\t\t\textraname : \"Shadow Arts\",\r\n\t\t\t\tsource : [[\"P\", 80]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can cast Darkness, Darkvision, Pass Without Trace, or Silence\",\r\n\t\t\t\t\t\"I don't require spell slots or material components to cast these spells like this, just ki points\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Shadow Arts\",\r\n\t\t\t\t\tspells : [\"darkness\", \"darkvision\", \"pass without trace\", \"silence\"],\r\n\t\t\t\t\tselection : [\"darkness\", \"darkvision\", \"pass without trace\", \"silence\"],\r\n\t\t\t\t\tfirstCol : 2,\r\n\t\t\t\t\ttimes : 4\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"shadow spells\" }],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"darkness\" : {\r\n\t\t\t\t\tcomponents : \"V\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"darkvision\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Shadow Step\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can teleport from and into dim light or darkness within 60 ft\",\r\n\t\t\t\t\"After I do this, I have adv. on the next melee attack I make before the end of my turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Cloak of Shadows\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"As an action, I can become invisible in dim light or darkness until I attack/cast\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Opportunist\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a reaction, if a creature in 5 ft is hit by another, I can make a melee attack vs. it\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the ancients\", {\r\n\tregExpSearch : /^(((?=.*(ancient|nature|natural|green|fey|horned))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))|((?=.*(green|fey|horned))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Ancients\",\r\n\tsubnameshort: \"Ancients\",\r\n\tsource : [[\"P\", 87]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Nature's Wrath\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a creature I can see within 10 ft must make a Str/Dex save (its choice)\",\r\n\t\t\t\t\"If it fails this save, it is restrained until it succeeds on a save at the end of its turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"ensnaring strike\", \"speak with animals\", \"moonbeam\", \"misty step\", \"plant growth\", \"protection from energy\", \"ice storm\", \"stoneskin\", \"commune with nature\", \"tree stride\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Turn the Faithless\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all fey/fiends within 30 ft that can hear me must make a Wisdom save\",\r\n\t\t\t\t\"If one fails, it is turned for 1 minute or until it takes damage and must show true form\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Warding\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"Allies within range and I have resistance to damage from spells\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"],\r\n\t\t\tdmgres : [\"Spells\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Undying Sentinel\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If dropped to 0 hit points and not killed outright, I can choose to stay at 1 hit point\",\r\n\t\t\t\t\"Additionally, I suffer no drawbacks of old age and can't be aged magically\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Elder Champion\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I assume the form of a force of nature for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 At the start of each of my turns, I regain 10 hit points\",\r\n\t\t\t\t\" \\u2022 I can cast paladin spells with a casting time of 1 action as a bonus action instead\",\r\n\t\t\t\t\" \\u2022 Enemies within 10 ft have disadv. on saves vs. my paladin spells and channel divinity\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of vengeance\", {\r\n\tregExpSearch : /^(((?=.*(vengeance|wrath|justice))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))|((?=.*dark)(?=.*knight))|(?=.*avenger)).*$/i,\r\n\tsubname : \"Oath of Vengeance\",\r\n\tsubnameshort: \"Vengeance\",\r\n\tsource : [[\"P\", 88]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure Enemy\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one creature within 60 ft that I can see me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is frightened and its speed is 0 despite bonuses; if success, its speed is halved\",\r\n\t\t\t\t\"This lasts for 1 minute or until it takes damage; Undead/fiends have disadv. on save\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"bane\", \"hunter's mark\", \"hold person\", \"misty step\", \"haste\", \"protection from energy\", \"banishment\", \"dimension door\", \"hold monster\", \"scrying\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Vow of Enmity\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I utter a vow against a creature I can see within 10 ft\",\r\n\t\t\t\t\"I get adv. on attacks against it for 1 minute or until it drops to 0 HP or falls unconscious\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Relentless Avenger\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"After I hit with an opportunity attack, I can move 1/2 my speed in the same reaction\",\r\n\t\t\t\t\"This movement doesn't provoke opportunity attacks\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Soul of Vengeance\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When an enemy I have an active Vow of Enmity against makes an attack, I can react\",\r\n\t\t\t\t\"As a reaction, I can make a melee weapon attack against it if it is within range\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (with Vow of Enmity)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Avenging Angel\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I gain a flying speed of 60 ft and a 30 ft aura of menace for 1 hour\",\r\n\t\t\t\t\"When a creature first enters or starts its turn in the aura, it must make a Wis save\",\r\n\t\t\t\t\"If failed, for 1 min or until it takes damage, it is frightened and attacks vs. it have adv.\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ranger\", \"beast master\", {\r\n\tregExpSearch : /^(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural|green))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Beast Master\",\r\n\tfullname : \"Beast Master\",\r\n\tsource : [[\"P\", 93]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger's Companion\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"It adds my proficiency bonus to AC, attacks, damage, and save/skill proficiencies\",\r\n\t\t\t\t\"Its hit point maximum equals four times my ranger level if higher than its normal HP\",\r\n\t\t\t\t\"It takes a turn on my initiative; It takes the Dodge action unless I command it otherwise\",\r\n\t\t\t\t\"As an action, I can have it take the Attack, Dash, Disengage, or Help action on its turn\",\r\n\t\t\t\t\"I can still use Extra Attack while commanding it to Attack; No action to order to move\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Beast \\u2264Medium and CR \\u22641/4\",\r\n\t\t\tcreaturesAdd : [[\"Ranger's Companion\", false, function(AddRemove, prefix) {\r\n\t\t\t\tif (!AddRemove) return;\r\n\t\t\t\tvar cObj = MakeCompMenu_CompOptions(prefix, \"justCompanions\");\r\n\t\t\t\tif (!cObj.companion || !cObj.companion.length) {\r\n\t\t\t\t\tvar selectedRace = \"Wolf\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar compOptions = cObj.companion.map(function(n) { return n[0] });\r\n\t\t\t\t\tvar selectedRace = AskUserOptions(\"Select Ranger's Companion\", \"Select which beast you would like to have as your ranger's companion.\\nThis can be any beast that is no larger than Medium and that has a challenge rating of 1/4 or lower.\\nYou can change the beast at any time using the \\\"Companion Options\\\" button at the top of the Companion page.\", compOptions, \"radio\", true);\r\n\t\t\t\t}\r\n\t\t\t\tApplyCompRace(selectedRace, prefix, \"companion\");\r\n\t\t\t}]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Exceptional Training\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My beast's attacks count as magical for overcoming resistances and immunities\",\r\n\t\t\t\t\"As a bonus action, I can command it to take the Dash/Disengage/Help action on its turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Bestial Fury\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"When I command my beast to use the Attack action, it can attack twice on its turn\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Share Spells\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"When I cast a spell on myself, I can have it also affect my beast if it is within 30 ft\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"arcane trickster\", {\r\n\tregExpSearch : /^(?=.*(trickster|rogue|miscreant))(?=.*\\b(eldritch|arcane|magic|mage|witch)\\b).*$/i,\r\n\tsubname : \"Arcane Trickster\",\r\n\tfullname : \"Arcane Trickster\",\r\n\tsource : [[\"P\", 98]],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 3,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tschool : [\"Ench\", \"Illus\"],\r\n\t\tlevel : [0, 4]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [0, 0, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\r\n\t\tspells : [0, 0, 2, 3, 3, 3, 4, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast known wizard cantrips/spells, using Intelligence as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"\", \"3 cantrips \\u0026 3 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 5 spells known\", \"3 cantrips \\u0026 6 spells known\", \"3 cantrips \\u0026 6 spells known\", \"4 cantrips \\u0026 7 spells known\", \"4 cantrips \\u0026 8 spells known\", \"4 cantrips \\u0026 8 spells known\", \"4 cantrips \\u0026 9 spells known\", \"4 cantrips \\u0026 10 spells known\", \"4 cantrips \\u0026 10 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 12 spells known\", \"4 cantrips \\u0026 13 spells known\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mage Hand cantrip\", // the Mage Hand cantrip gained at level 1\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"From any school\", // the spells gained at level 3, 8, 14, 20\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\ttimes : [0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4],\r\n\t\t\t\tlevel : [1, 4]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Mage Hand Legerdemain\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can direct my Mage Hand\",\r\n\t\t\t\t\"With a Dex (Sleight of Hand) vs. Wis (Perception) checks, I can do so discreetly\",\r\n\t\t\t\t\"I can make it invisible and perform the following tasks:\",\r\n\t\t\t\t\" \\u2022 Stow/retrieve an object the hand is holding in a container worn/carried by another\",\r\n\t\t\t\t\" \\u2022 Use thieves' tools to pick locks and disarm traps at range\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\tdescription : \"Invisible hand, carries 10 lb; 1 bns to control, use thieves' tools, or stow/retrieve obj; only 1 instance\",\r\n\t\t\t\t\tchanges : \"My Mage Hand Legerdemain class feature expands my use of the Mage Hand cantrip and makes the spectral hand invisible.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Magical Ambush\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"When I cast a spell while hidden, the target(s) have disadvantage against that spell\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Versatile Trickster\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc(\"As a bonus action, gain adv. on attacks this turn on creature within 5 ft of Mage Hand\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Spell Thief\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, after a spell is cast at me, I can try to negate and steal it\",\r\n\t\t\t\t\"The caster makes a save against my spell DC with his/her spellcasting ability\",\r\n\t\t\t\t\"On failure, the caster forgets how to cast that spell for eight hours\",\r\n\t\t\t\t\"If I have a spell slot of a high enough level for it, I learn how to cast it during this time\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"assassin\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*assassin).*$/i,\r\n\tsubname : \"Assassin\",\r\n\tfullname : \"Assassin\",\r\n\tsource : [[\"P\", 97]],\r\n\tabilitySave : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I am proficient with disguise kits and poisoner's kits\"),\r\n\t\t\ttoolProfs : [\"Disguise kit\", \"Poisoner's kit\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Assassinate\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have adv. on attack rolls against creatures that have not taken a turn in combat yet\",\r\n\t\t\t\t\"Any hit I score against a creature that is surprised is a critical hit\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Infiltration Expertise\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"I can create false identities in 7 days for 25 gp\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Imposter\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"After 3 hours of studying a person, I can mimic speech, writing, and behavior\",\r\n\t\t\t\t\"I have advantage on Charisma (Deception) checks to maintain this ruse\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Death Strike\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"When I hit a surprised creature, it must make a Con save or take double damage\"),\r\n\t\t\tadditional : \"Save DC: 8 + Dex mod + Proficiency bonus\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"wild magic\", {\r\n\tregExpSearch : /^(?=.*(mage|magus|sorcerer|witch))(?=.*(wild|chaos|chaotic|limbo)).*$/i,\r\n\tsubname : \"Wild Magic\",\r\n\tfullname : \"Wild Mage\",\r\n\tsource : [[\"P\", 103]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Wild Magic Surge\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Wild Magic Surges can happen 5% of the time that I cast a sorcerer spell\",\r\n\t\t\t\t\"This doesn't happen with cantrips and I only take this chance if the DM tells me to\",\r\n\t\t\t\t\"Metamagic can't affect spells cast because of the surge, but they require no concentration\",\r\n\t\t\t\t'\"See the \"Notes\" page for the table\"',\r\n\t\t\t]),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Magic Surge Table\",\r\n\t\t\t\tsource : [[\"P\", 104]],\r\n\t\t\t\tpopupName : \"Wild Mage's Wild Magic Surge Table, part 1\",\r\n\t\t\t\tadditional : \"results 01-50\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My spellcasting can unleash surges of untamed magic. Immediately after I cast a sorcerer spell of 1st level or higher, the DM can have me roll a d20. If I roll a 1, a Wild Magic Surge happens. Roll on the table below to create a random magical effect. A surge can happen only once per turn.\",\r\n\t\t\t\t\t\"If a Wild Magic effect is a spell, it's too wild to be affected by Metamagic. If it normally requires concentration, it doesn't require concentration in this case; the spell lasts for its full duration.\",\r\n\t\t\t\t\t\"d100  Effect\",\r\n\t\t\t\t\t\"01-02 Roll on this table at the start of each of your turns for the next minute, ignoring this result on subsequent rolls.\",\r\n\t\t\t\t\t\"03-04 For the next minute, you can see any invisible creature if you have line of sight to it.\",\r\n\t\t\t\t\t\"05-06 A modron chosen and controlled by the DM appears in an unoccupied space within 5 ft of you, then disappears 1 minute later.\",\r\n\t\t\t\t\t\"07-08 You cast fireball as a 3rd-level spell centered on yourself.\",\r\n\t\t\t\t\t\"09-10 You cast magic missile as a 5th-level spell.\",\r\n\t\t\t\t\t\"11-12 Roll a d10. Your height changes by a number of inches equal to the roll. If the roll is odd, you shrink. If the roll is even, you grow.\",\r\n\t\t\t\t\t\"13-14 You cast confusion centered on yourself.\",\r\n\t\t\t\t\t\"15-16 For the next minute, you regain 5 hit points at the start of each of your turns.\",\r\n\t\t\t\t\t\"17-18 You grow a long beard made of feathers that remains until you sneeze, at which point the feathers explode out from your face.\",\r\n\t\t\t\t\t\"19-20 You cast grease centered on yourself.\",\r\n\t\t\t\t\t\"21-22 Creatures have disadvantage on saving throws against the next spell you cast in the next minute that involves a saving throw.\",\r\n\t\t\t\t\t\"23-24 Your skin turns a vibrant shade of blue. A remove curse spell can end this effect.\",\r\n\t\t\t\t\t\"25-26 An eye appears on your forehead for the next minute.\",\r\n\t\t\t\t\t\"27-28 For the next minute, all your spells with a casting time feet of 1 action have a casting time of 1 bonus action.\",\r\n\t\t\t\t\t\"29-30 You teleport up to 60 ft to an unoccupied space of your choice that you can see.\",\r\n\t\t\t\t\t\"31-32 You are transported to the Astral Plane until the end of your next turn, after which time you return to the space you previously occupied or the nearest unoccupied space if that space is occupied.\",\r\n\t\t\t\t\t\"33-34 Maximize the damage of the next damaging spell you cast within the next minute.\",\r\n\t\t\t\t\t\"35-36 Roll a d10. Your age changes by a number of years equal to the roll. If the roll is odd, you get younger (minimum 1 year old). If the roll is even, you get older.\",\r\n\t\t\t\t\t\"37-38 1d6 flumphs controlled by the DM appear in unoccupied spaces within 60 ft of you and are frightened of you. They vanish after 1 minute.\",\r\n\t\t\t\t\t\"39-40 You regain 2d10 hit points.\",\r\n\t\t\t\t\t\"41-42 You turn into a potted plant until the start of your next turn. While a plant, you are incapacitated and have vulnerability to all damage. If you drop to 0 hit points, your pot breaks, and your form reverts.\",\r\n\t\t\t\t\t\"43-44 For the next minute, you can teleport up to 20 ft as a bonus action on each of your turns.\",\r\n\t\t\t\t\t\"45-46 You cast levitate on yourself.\",\r\n\t\t\t\t\t\"47-48 A unicorn controlled by the DM appears in a space within 5 ft of you, then disappears 1 minute later.\",\r\n\t\t\t\t\t\"49-50 You can't speak for the next minute. Whenever you try, pink bubbles float out of your mouth.\"\r\n\t\t\t\t]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Wild Magic Surge Table\",\r\n\t\t\t\tsource : [[\"P\", 104]],\r\n\t\t\t\tpopupName : \"Wild Mage's Wild Magic Surge Table, part 2\",\r\n\t\t\t\tadditional : \"results 51-100\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"d100  Effect\",\r\n\t\t\t\t\t\"51-52 A spectral shield hovers near you for the next minute, granting you a +2 bonus to AC and immunity to magic missile.\",\r\n\t\t\t\t\t\"53-54 You are immune to being intoxicated by alcohol for the next 5d6 days.\",\r\n\t\t\t\t\t\"55-56 Your hair falls out but grows back within 24 hours.\",\r\n\t\t\t\t\t\"57-58 For the next minute, any flammable object you touch that isn't being worn or carried by another creature bursts into flame.\",\r\n\t\t\t\t\t\"59-60 You regain your lowest-level expended spell slot.\",\r\n\t\t\t\t\t\"61-62 For the next minute, you must shout when you speak.\",\r\n\t\t\t\t\t\"63-64 You cast fog cloud centered on yourself.\",\r\n\t\t\t\t\t\"65-66 Up to three creatures you choose within 30 ft of you take 4d10 lightning damage.\",\r\n\t\t\t\t\t\"67-68 You are frightened by the nearest creature until the end of your next turn.\",\r\n\t\t\t\t\t\"69-70 Each creature within 30 ft of you becomes invisible for the next minute. The invisibility ends on a creature when it attacks or casts a spell.\",\r\n\t\t\t\t\t\"71-72 You gain resistance to all damage for the next minute.\",\r\n\t\t\t\t\t\"73-74 A random creature within 60 ft of you becomes poisoned for 1d4 hours.\",\r\n\t\t\t\t\t\"75-76 You glow with bright light in a 30-ft radius for the next minute. Any creature that ends its turn within 5 ft of you is blinded until the end of its next turn.\",\r\n\t\t\t\t\t\"79-80 Illusory butterflies and flower petals flutter in the air within 10 ft of you for the next minute.\",\r\n\t\t\t\t\t\"77-78 You cast polymorph on yourself. If you fail the saving throw, you turn into a sheep for the spell's duration.\",\r\n\t\t\t\t\t\"81-82 You can take one additional action immediately.\",\r\n\t\t\t\t\t\"83-84 Each creature within 30 ft of you takes 1d10 necrotic damage. You regain hit points equal to the sum of the necrotic damage dealt.\",\r\n\t\t\t\t\t\"85-86 You cast mirror image.\",\r\n\t\t\t\t\t\"87-88 You cast fly on a random creature within 60 ft of you.\",\r\n\t\t\t\t\t\"89-90 You become invisible for the next minute. During that time, other creatures can't hear you. The invisibility ends if you attack or cast a spell.\",\r\n\t\t\t\t\t\"91-92 If you die within the next minute, you immediately come back to life as if by the reincarnate spell.\",\r\n\t\t\t\t\t\"93-94 Your size increases by one size category for the next minute.\",\r\n\t\t\t\t\t\"95-96 You and all creatures within 30 ft of you gain vulnerability to piercing damage for the next minute.\",\r\n\t\t\t\t\t\"97-98 You are surrounded by faint, ethereal music for the next minute.\",\r\n\t\t\t\t\t\"99-100 You regain all expended sorcery points.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Tides of Chaos\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can gain advantage on either one attack roll, ability check, or saving throw\",\r\n\t\t\t\t\"After I cast a 1st-level or higher sorcerer spell, the DM can impose a Wild Magic Surge\",\r\n\t\t\t\t\"After I roll on the Wild Magic Surge table, I regain my use of Tides of Chaos\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bend Luck\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction, I can add/subtract 1d4 from another's attack roll, ability check, or save\"),\r\n\t\t\taction : [[\"reaction\", \" (2 sorcery points)\"]],\r\n\t\t\tadditional : \"2 sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Controlled Chaos\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Whenever I roll on the Wild Magic Surge table, I can roll twice and use either result\")\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Spell Bombardment\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per turn, when I roll spell damage, I can take one damage die that rolled max\",\r\n\t\t\t\t\"I can then roll this die again and add it to the spell's damage\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the archfey\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*warlock).*$/i,\r\n\tsubname : \"the Archfey\",\r\n\tsource : [[\"P\", 109]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"calm emotions\", \"phantasmal force\", \"blink\", \"plant growth\", \"dominate beast\", \"greater invisibility\", \"dominate person\", \"seeming\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Fey Presence\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all creatures in a 10-ft cube around me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, they're all charmed or frightened (my choice) until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Misty Escape\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when I take damage, I can turn invisible and teleport up to 60 ft\",\r\n\t\t\t\t\"I stay invisible until the start of my next turn or until I attack or cast a spell\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (taking damage)\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Beguiling Defenses\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when a creature tries to charm me, I can turn the charm back on it\",\r\n\t\t\t\t\"It must make a Wis save or be charmed by me for 1 minute or until taking damage\",\r\n\t\t\t\t\"I am immune to being charmed\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when charmed)\"]],\r\n\t\t\tsavetxt : { immune : [\"charmed\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Dark Delirium\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a creature within 60 ft must make a Wis save or be charmed/frightened\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration is broken or it takes damage\",\r\n\t\t\t\t\"During this time, it can't see or hear anything but the illusion, me, and itself\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the great old one\", {\r\n\tregExpSearch : /^(((?=.*(tharizdun|cthulhu))(?=.*warlock))|((?=.*(great|dread))(?=.*(ancient|old))(?=.*\\b(one|entity)\\b))).*$/i,\r\n\tsubname : \"the Great Old One\",\r\n\tsource : [[\"P\", 110]],\r\n\tspellcastingExtra : [\"dissonant whispers\", \"tasha's hideous laughter\", \"detect thoughts\", \"phantasmal force\", \"clairvoyance\", \"sending\", \"dominate beast\", \"evard's black tentacles\", \"dominate person\", \"telekinesis\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Awakened Mind\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can telepathically speak to creatures I can see within 30 ft if they know a language\"), // 'to' not 'with', so one-way\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Entropic Ward\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when I'm attacked, I can impose disadvantage to that attack roll\",\r\n\t\t\t\t\"If it misses me, I have adv. on my next attack vs. the attacker during my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Thought Shield\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"No one can read my mind unless I allow it; I have resistance to psychic damage\",\r\n\t\t\t\t\"When I take psychic damage, the dealer of the psychic damage takes the same amount\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Psychic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Create Thrall\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can charm an incapacitated humanoid by touch\",\r\n\t\t\t\t\"While it is charmed, I can communicate with it telepathically if it is on the same plane\",\r\n\t\t\t\t\"This lasts until the charm is removed (can be by Remove Curse) or I use this again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"abjuration\", {\r\n\tregExpSearch : /abjuration|abjurer/i,\r\n\tsubname : \"School of Abjuration\",\r\n\tsubnameshort: \"Abjuration\",\r\n\tfullname : \"Abjurer\",\r\n\tsource : [[\"P\", 115]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Abjuration Savant\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy abjuration spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Arcane Ward\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Whenever I cast an 1st-level or higher abjuration spell, I make/heal a ward\",\r\n\t\t\t\t\"I make it at max HP; When I cast again, it heals two HP per spell level\",\r\n\t\t\t\t\"It stays active at 0 HP and doesn't go away until my next long rest\",\r\n\t\t\t\t\"If I take damage, the ward takes the damage instead, but excess damage carries over\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"Ward max HP: \" + (n * 2) + \"+Int mod\";\r\n\t\t\t}),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Projected Ward\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction, my Arcane Ward can absorb damage done to a creature within 30 ft\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Abjuration\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"When I cast an abjuration spell requiring an ability check, I add my proficiency bonus\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"dispel magic\" || spellKey === \"counterspell\") {\r\n\t\t\t\t\t\t\tvar profB = Number(How(\"Proficiency Bonus\"));\r\n\t\t\t\t\t\t\tvar checkStr = \"(\" + AbilityScores.names.join(\"|\") + \"|spell(casting)?( ability )?) check\";\r\n\t\t\t\t\t\t\tvar checkRx = RegExp(checkStr + \" \\\\(([+-]?\\\\d+)\\\\)\", \"i\");\r\n\t\t\t\t\t\t\tvar theBonus = profB;\r\n\t\t\t\t\t\t\tif (checkRx.test(spellObj.description)) {\r\n\t\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(checkRx);\r\n\t\t\t\t\t\t\t\ttheBonus += Number(theMatch[2]);\r\n\t\t\t\t\t\t\t\tif (tDoc.getField(\"Remarkable Athlete\").isBoxChecked(0) === 1 && theMatch[1].test(/Str|Dex|Con/i)) {\r\n\t\t\t\t\t\t\t\t\ttheBonus -= Math.ceil(profB/2);\r\n\t\t\t\t\t\t\t\t} else if (tDoc.getField(\"Jack of All Trades\").isBoxChecked(0) === 1) {\r\n\t\t\t\t\t\t\t\t\ttheBonus -= Math.floor(profB/2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(RegExp(checkStr, \"i\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(theMatch[0], theMatch[1] + \" check (\" + (theBonus >= 0 ? \"+\" : \"\") + theBonus + \")\");\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my proficiency bonus to ability checks required by abjuration spells. This is shown on the spell sheet by a lowered DC or higher bonus on the check.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spell Resistance\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I have adv. on spell saves and resistance to damaging spells\"),\r\n\t\t\tdmgres : [\"Spells\"],\r\n\t\t\tsavetxt : { adv_vs : [\"spells\"] }\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"conjuration\", {\r\n\tregExpSearch : /conjuration|conjurer/i,\r\n\tsubname : \"School of Conjuration\",\r\n\tsubnameshort: \"Conjuration\",\r\n\tfullname : \"Conjurer\",\r\n\tsource : [[\"P\", 116]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Conjuration Savant\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy conjuration spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Minor Conjuration\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can conjure an object up to 3 ft on each side and no more than 10 lbs\",\r\n\t\t\t\t\"It must be of a form of a nonmagical object I have seen and is created within 10 ft\",\r\n\t\t\t\t\"The object disappears after 1 hour, if it takes or deals damage, or when I use this again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Benign Transposition\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can teleport to a place within 30 ft that I can see\",\r\n\t\t\t\t\"Instead, I can swap places with a willing Small/Medium creature in 30 ft that I can see\",\r\n\t\t\t\t\"I can do this again after a long rest or casting a 1st-level or higher conjuration spell\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Focused Conjuration\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While I am concentrating on a conjuration spell, it can't be broken by taking damage\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Durable Summons\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Any creature I summon or create with a conjuration spell has 30 temporary hit points\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey.indexOf(\"conjure\") !== -1 && !(/barrage|volley|knowbot/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/verbal commands/i, \"command\").replace(/^summon /i, '') + \"; +30 temp hp\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t} else if ((/find (greater )?(steed|familiar)/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/Gain the services of a ([^;]+)/i, \"A $1 (+30 temp hp)\");\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Any creature I summon or create with a conjuration spell gains 30 temporary hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"divination\", {\r\n\tregExpSearch : /divination|diviner|divinator/i,\r\n\tsubname : \"School of Divination\",\r\n\tsubnameshort: \"Divination\",\r\n\tfullname : \"Diviner\",\r\n\tsource : [[\"P\", 116]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Divination Savant\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy divination spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Portent\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After a long rest, I roll dice and keep the results to be used before my next long rest\",\r\n\t\t\t\t\"A result can replace an attack/save/ability check made by me or a creature I can see\",\r\n\t\t\t\t\"I choose to switch them before the dice to be replaced are rolled; Max once per turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 14 ? 2 : 3) + \"d20 after a long rest\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Expert Divination\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I cast a divination spell, I recover a spell slot of a lower level than the one I cast\"),\r\n\t\t\tadditional : \"Spell slot < 6th-level\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"The Third Eye\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I gain one of the following until my next short or long rest:\",\r\n\t\t\t\t\"Darkvision 60ft, see the Ethereal Plane 60ft, read any language, or see invisibility 10ft\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Greater Portent\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can roll 3d20 instead of 2d20 when using my Portent feature\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"enchantment\", {\r\n\tregExpSearch : /enchantment|enchanter/i,\r\n\tsubname : \"School of Enchantment\",\r\n\tsubnameshort: \"Enchantment\",\r\n\tfullname : \"Enchanter\",\r\n\tsource : [[\"P\", 117]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Enchantment Savant\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy enchantment spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Hypnotic Gaze\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a seen enemy within 5 ft must make a Wis save or be charmed\",\r\n\t\t\t\t\"This doesn't work if it can't see/hear me; It's also incapacitated and reduced to 0 speed\",\r\n\t\t\t\t\"This lasts until the end of my next turn, but I can use an action to extend the duration\",\r\n\t\t\t\t\"It also ends if it takes damage, can't see or hear me, or is more than 5 ft from me\",\r\n\t\t\t\t\"On success or once it ends, I can't use this on it again until after a long rest\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Instinctive Charm\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when someone I can see in 30 ft attacks me, it must make a Wis save\",\r\n\t\t\t\t\"If failed, it must instead attack the closest creature within range (not me or self)\",\r\n\t\t\t\t\"On a success, the target is immune to this until after my long rest; This is a charm effect\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Split Enchantment\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I cast an enchantment spell with only one target, I can target a second in range\",\r\n\t\t\t\t\"This does not apply to cantrips\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || !spellObj.level || spellObj.school !== \"Ench\") return;\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch(spellKey) {\r\n\t\t\t\t\t\t\tcase \"animal messenger\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Tiny beast delivers\", \"2 tiny beasts deliver single\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"antipathy/sympathy\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Creature,\", \"2 crea, 1\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"heroism\" :\r\n\t\t\t\t\t\t\tcase \"command\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/, halt| as spell lasts/i, \"\");\r\n\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1+1/SL\", \"2 or 1+1/SL\").replace(/1 (crea(ture)?|beast|humanoid)/i, \"2 $1s\").replace(/creas\\b/gi, \"crea\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My enchantment, single-target 1st-level or higher spells can affect two targets instead of only one.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Alter Memories\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I cast an enchantment spell that charms, I can have one target be unaware of it\",\r\n\t\t\t\t\"Also, once before that spell ends, I can have that target forget time while affected\",\r\n\t\t\t\t\"It must make an Intelligence save or lose up to 1 + Charisma modifier hours of memory\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"illusion\", {\r\n\tregExpSearch : /illusion|illusionist|illusionary/i,\r\n\tsubname : \"School of Illusion\",\r\n\tsubnameshort: \"Illusion\",\r\n\tfullname : \"Illusionist\",\r\n\tsource : [[\"P\", 118]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Illusion Savant\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy illusion spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Improved Minor Illusion\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain the knowledge of the Minor Illusion cantrip (or another if I already knew it)\",\r\n\t\t\t\t\"When I cast it, I can create both a sound and an image with a single casting\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Minor Illusion cantrip\",\r\n\t\t\t\tspells : [\"minor illusion\"],\r\n\t\t\t\tselection : [\"minor illusion\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"minor illusion\" : {\r\n\t\t\t\t\tdescription : \"5-ft cube illusion includes visible and audible; Int(Investigation) check vs. Spell DC; see book\",\r\n\t\t\t\t\tchanges : \"My Improved Minor Illusion class feature allows me to make both a sound and an image with a single casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Malleable Illusion\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"After I cast an illusion spell that lasts 1 min or longer, I can use an action to change it\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Illusory Self\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"As a reaction, when I'm attacked, I can impose an illusion that makes the attack miss\"),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Illusory Reality\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, after I cast a 1st-level or higher illusion spell, I can make it real\",\r\n\t\t\t\t\"One inanimate, nonmagical object that is part of the illusion becomes real for 1 minute\",\r\n\t\t\t\t\"The object can't be something that directly harms someone\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"necromancy\", {\r\n\tregExpSearch : /necromancy|necromancer|necromantic/i,\r\n\tsubname : \"School of Necromancy\",\r\n\tsubnameshort: \"Necromancy\",\r\n\tfullname : \"Necromancer\",\r\n\tsource : [[\"P\", 118]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Necromancy Savant\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy necromancy spells into my spellbook\"),\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Grim Harvest\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per turn, when I kill something with a 1st-level or higher spell, I regain hit points\",\r\n\t\t\t\t\"The number of hit points regained is 2\\xD7 the spell's level (or 3\\xD7 with necromancy spells)\",\r\n\t\t\t\t\"This doesn't occur for constructs/undead\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Undead Thralls\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add Animate Dead to my spellbook and can have an additional target when casting it\",\r\n\t\t\t\t\"Undead created by my necromancy spells have the following benefits:\",\r\n\t\t\t\t\"They add my proficiency bonus to damage and my wizard level to their HP maximums\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Undead Thralls\",\r\n\t\t\t\tspells : [\"animate dead\"],\r\n\t\t\t\tselection : [\"animate dead\"],\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"animate dead\" : {\r\n\t\t\t\t\tdescription : \"Turn corpses into 2+2/SL Skeletons or Zombies; control for 24h; bns a command within 60 ft\",\r\n\t\t\t\t\tchanges : \"My Undead Thralls class feature allows me to animate one more corpse than normal with Animate Dead.\",\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Inured to Undead\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I have resistance to necrotic damage and my hit point maximum can't be reduced\"),\r\n\t\t\tdmgres : [\"Necrotic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Command Undead\",\r\n\t\t\tsource : [[\"P\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, an undead within 60 ft that I can see must make a Charisma save\",\r\n\t\t\t\t\"If its Int is > 7, it has adv. on the save; If its Int is > 11, it repeats the save every hour\",\r\n\t\t\t\t\"If failed, it becomes friendly to me and obeys my commands until I use this on another\",\r\n\t\t\t\t\"On success, it becomes permanently immune to my further attempts\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"transmutation\", {\r\n\tregExpSearch : /transmutation|transmuter/i,\r\n\tsubname : \"School of Transmutation\",\r\n\tsubnameshort: \"Transmutation\",\r\n\tfullname : \"Transmuter\",\r\n\tsource : [[\"P\", 119]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Transmutation Savant\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy transmutation spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Minor Alchemy\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can transform an object of wood/stone/iron/copper/silver into another of those\",\r\n\t\t\t\t\"For each 10 min I spend, I can transform up to 1 cubic foot of the material\",\r\n\t\t\t\t\"It reverts back when I lose concentration or after 1 hour\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Transmuter's Stone\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In 8 hours, I can create a transmuter's stone that gives its wielder one of the following:\",\r\n\t\t\t\t\" \\u2022 Darkvision 60 ft\",\r\n\t\t\t\t\" \\u2022 10 ft increase to speed while unencumbered\",\r\n\t\t\t\t\" \\u2022 Proficiency in Constitution saving throws\",\r\n\t\t\t\t\" \\u2022 Resistance to either acid, cold, fire, lightning, or thunder damage\",\r\n\t\t\t\t\"The benefit is chosen at creation; I can have only one active stone at a time\",\r\n\t\t\t\t\"I can change the benefit when I cast a 1st-level or higher transmutation spell with it\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shapechanger\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add Polymorph to my spellbook; I can cast it on myself without using a spell slot\",\r\n\t\t\t\t\"When I do that, I can only transform into a beast with a challenge rating of 1 or lower\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Add to spellbook\",\r\n\t\t\t\tspells : [\"polymorph\"],\r\n\t\t\t\tselection : [\"polymorph\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"1/SR no spell slot\",\r\n\t\t\t\tspells : [\"polymorph\"],\r\n\t\t\t\tselection : [\"polymorph\"],\r\n\t\t\t\tfirstCol : \"oncesr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"polymorph\" : {\r\n\t\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tdescription : \"I transformed into a beast of my choice with a CR 1 or lower; see book\",\r\n\t\t\t\t\tchanges : \"Using my Shapechanger class feature, I can cast Polymorph once per short rest without using a spell slot, but when I do so I can only cast it on myself and transform into a beast.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Transmuter\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can destroy my transmuter's stone and do one of the four following:\",\r\n\t\t\t\t\"##\\u2022 Major Transformation##.\",\r\n\t\t\t\t\"  In 10 minutes, I transmute one nonmagical object up to 5 cubic foot into another\",\r\n\t\t\t\t\"  This new, nonmagical object must be of similar size and mass and equal or less value\",\r\n\t\t\t\t\"##\\u2022 Panacea##.\",\r\n\t\t\t\t\"  One touched has all curses, diseases, and poisons removed and is healed to max HP\",\r\n\t\t\t\t\"##\\u2022 Restore Life##.\",\r\n\t\t\t\t\"  I cast Raise Dead without using spell slots or needing to have it in my spellbook\",\r\n\t\t\t\t\"##\\u2022 Restore Youth##.\",\r\n\t\t\t\t\"  A touched creature's apparent age is reduced by 3d10 years (to a minimum of 13)\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Companions\r\nCompanionList[\"undead_thrall\"] = {\r\n\tname: \"Undead Thralls\",\r\n\tnameOrigin: \"School of Necromancy 6\",\r\n\tnameMenu : \"Undead Thrall (School of Necromancy feature)\",\r\n\tsource: [[\"P\", 119]],\r\n\tincludeCheck: function(sCrea, objCrea, iCreaCR, bIsAL) {\r\n\t\treturn /undead/i.test(objCrea.type);\r\n\t},\r\n\tattributesChange: function(sCrea, objCrea) {\r\n\t\tobjCrea.hp += classes.known.wizard ? classes.known.wizard.level : classes.totallevel;\r\n\t\tif (!objCrea.attacks) return;\r\n\t\tobjCrea.attacks = objCrea.attacks.map(function(oAtk) {\r\n\t\t\tif (oAtk.abilitytodamage !== false && !oAtk.dc) {\r\n\t\t\t\tif (!oAtk.modifiers) {\r\n\t\t\t\t\toAtk.modifiers = [\"\", \"oProf\"];\r\n\t\t\t\t} else {\r\n\t\t\t\t\toAtk.modifiers[1] += \"+oProf\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn oAtk;\r\n\t\t});\r\n\t},\r\n\tcalcChanges: {\r\n\t\thp: function (totalHD, HDobj, prefix) {\r\n\t\t\tif (classes.known.wizard) {\r\n\t\t\t\treturn [classes.known.wizard.level, \"Undead Thralls (wizard level)\"];\r\n\t\t\t} else {\r\n\t\t\t\treturn [classes.totallevel, \"Undead Thralls (character level)\"];\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tnotes: [{\r\n\t\tname: \"Undead I create with a necromancy spell\",\r\n\t\tdescription: \"add my wizard level to their hit point maximum and add my proficiency bonus to their weapon damage rolls.\",\r\n\t\tjoinString: \" \",\r\n\t}],\r\n\teval: function(prefix, lvl) {\r\n\t\t// Set HP to use average value, so that the level bonus is automatically included\r\n\t\tvar sHPfld = prefix + \"Comp.Use.HP.Max\";\r\n\t\tvar aHPsets = How(sHPfld).split(\",\");\r\n\t\taHPsets[3] = \"average\";\r\n\t\tAddTooltip(sHPfld, undefined, aHPsets.toString());\r\n\t},\r\n};\r\n\r\n// Add the backgrounds that are not in the SRD\r\nBackgroundList[\"charlatan\"] = {\r\n\tregExpSearch : /charlatan/i,\r\n\tname : \"Charlatan\",\r\n\tsource : [[\"P\", 128], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Sleight of Hand\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Tools for chosen con\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"False Identity\",\r\n\ttrait : [\r\n\t\t\"I fall in and out of love easily, and am always pursuing someone.\",\r\n\t\t\"I have a joke for every occasion, especially occasions where humor is inappropriate.\",\r\n\t\t\"Flattery is my preferred trick for getting what I want.\",\r\n\t\t\"I'm a born gambler who can't resist taking a risk for a potential payoff.\",\r\n\t\t\"I lie about almost everything, even when there's no good reason to.\",\r\n\t\t\"Sarcasm and insults are my weapons of choice.\",\r\n\t\t\"I keep multiple holy symbols on me and invoke whatever deity might come in useful at any given moment.\",\r\n\t\t\"I pocket anything I see that might have some value.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: I am a free spirit \\u2015 no one tells me what to do. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: I never target people who can't afford to lose a few coins. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Charity\",\r\n\t\t\t\"Charity: I distribute the money I acquire to the people who really need it. (Good)\"\r\n\t\t],\r\n\t\t[\"Creativity\",\r\n\t\t\t\"Creativity: I never run the same con twice. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Friendship\",\r\n\t\t\t\"Friendship: Material goods come and go. Bonds of friendship last forever. (Good)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I'm determined to make something of myself. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I fleeced the wrong person and must work to ensure that this individual never crosses paths with me or those I care about.\",\r\n\t\t\"I owe everything to my mentor \\u2015 a horrible person who's probably rotting in jail somewhere.\",\r\n\t\t\"Somewhere out there, I have a child who doesn't know me. I'm making the world better for him or her.\",\r\n\t\t\"I come from a noble family, and one day I'll reclaim my lands and title from those who stole them from me.\",\r\n\t\t\"A powerful person killed someone I love. Someday soon, I'll have my revenge.\",\r\n\t\t\"I swindled and ruined a person who didn't deserve it. I seek to atone for my misdeeds but might never be able to forgive myself.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I can't resist a pretty face.\",\r\n\t\t\"I'm always in debt. I spend my ill-gotten gains on decadent luxuries faster than I bring them in.\",\r\n\t\t\"I'm convinced that no one could ever fool me the way I fool others.\",\r\n\t\t\"I'm too greedy for my own good. I can't resist taking a risk if there's money involved.\",\r\n\t\t\"I can't resist swindling people who are more powerful than me.\",\r\n\t\t\"I hate to admit it and will hate myself for it, but I'll run and preserve my own hide if the going gets tough.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Favorite Scheme\",\r\n\t\t\"Cheat at games of chance\",\r\n\t\t\"Shave coins, forge documents\",\r\n\t\t\"User/manipulator\",\r\n\t\t\"Change identity\",\r\n\t\t\"Sleight-of-hand cons\",\r\n\t\t\"Sell junk as expensive necessities\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", \"Forgery kit\"],\r\n\tlifestyle : \"comfortable\"\r\n};\r\nBackgroundList[\"criminal\"] = {\r\n\tregExpSearch : /criminal/i,\r\n\tname : \"Criminal\",\r\n\tsource : [[\"P\", 129], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Dark, common clothes with hood\", \"\", 3],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Criminal Contact\",\r\n\ttrait : [\r\n\t\t\"I always have a plan for what to do when things go wrong.\",\r\n\t\t\"I am always calm, no matter the situation. I never raise my voice or let my emotions control me.\",\r\n\t\t\"The first thing I do in a new place is note the locations of everything valuable \\u2015 or where such things could be hidden.\",\r\n\t\t\"I would rather make a new friend than a new enemy.\",\r\n\t\t\"I am incredibly slow to trust. Those who seem the fairest often have the most to hide.\",\r\n\t\t\"I don't pay attention to the risks in a situation. Never tell me the odds.\",\r\n\t\t\"The best way to get me to do something is to tell me I can't do it.\",\r\n\t\t\"I blow up at the slightest insult.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Honor\",\r\n\t\t\t\"Honor: I don't steal from others in the trade. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Chains are meant to be broken, as are those who would forge them. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Charity\",\r\n\t\t\t\"Charity: I steal from the wealthy so that I can help people in need. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I will do whatever it takes to become wealthy. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm loyal to my friends, not to any ideals, and everyone else can take a trip down the Styx for all I care. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Redemption\",\r\n\t\t\t\"Redemption: There's a spark of good in everyone. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'm trying to pay off an old debt I owe to a generous benefactor.\",\r\n\t\t\"My ill-gotten gains go to support my family.\",\r\n\t\t\"Something important was taken from me, and I aim to steal it back.\",\r\n\t\t\"I will become the greatest thief that ever lived.\",\r\n\t\t\"I'm guilty of a terrible crime. I hope I can redeem myself for it.\",\r\n\t\t\"Someone I loved died because of a mistake I made. That will never happen again.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"When I see something valuable, I can't think about anything but how to steal it.\",\r\n\t\t\"When faced with a choice between money and my friends, I usually choose the money.\",\r\n\t\t\"If there's a plan, I'll forget it. If I don't forget it, I'll ignore it.\",\r\n\t\t\"I have a \\\"tell\\\" that reveals when I'm lying.\",\r\n\t\t\"I turn tail and run when things look bad.\",\r\n\t\t\"An innocent person is in prison for a crime that I committed. I'm okay with that.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Criminal Specialty\",\r\n\t\t\"Blackmailer\",\r\n\t\t\"Burglar\",\r\n\t\t\"Enforcer\",\r\n\t\t\"Fence\",\r\n\t\t\"Highway robber\",\r\n\t\t\"Hired killer\",\r\n\t\t\"Pickpocket\",\r\n\t\t\"Smuggler\",\r\n\t\t\"Spy\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"entertainer\"] = {\r\n\tregExpSearch : /(entertainer|actor|dancer|fire.?eater|jester|juggler|instrumentalist|poet|singer|storyteller|tumbler)/i,\r\n\tname : \"Entertainer\",\r\n\tsource : [[\"P\", 130], [\"ALbackground\", 0]],\r\n\tskills : [\"Acrobatics\", \"Performance\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Costume\", \"\", 4],\r\n\t\t[\"Favor of an admirer\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"By Popular Demand\",\r\n\ttrait : [\r\n\t\t\"I know a story relevant to almost every situation.\",\r\n\t\t\"Whenever I come to a new place, I collect local rumors and spread gossip.\",\r\n\t\t\"I'm a hopeless romantic, always searching for that 'special someone'.\",\r\n\t\t\"Nobody stays angry at me or around me for long, since I can defuse any amount of tension.\",\r\n\t\t\"I love a good insult, even one directed at me.\",\r\n\t\t\"I get bitter if I'm not the center of attention.\",\r\n\t\t\"I'll settle for nothing less than perfection.\",\r\n\t\t\"I change my mood or my mind as quickly as I change key in a song.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Beauty\",\r\n\t\t\t\"Beauty: When I perform, I make the world better than it was. (Good)\"\r\n\t\t],\r\n\t\t[\"Tradition\",\r\n\t\t\t\"Tradition: The stories, legends, and songs of the past must never be forgotten, for they teach us who we are. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Creativity\",\r\n\t\t\t\"Creativity: The world is in need of new ideas and bold action. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I'm only in it for the money and fame. [Evil]\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I like seeing the smiles on people's faces when I perform. That's all that matters. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Honesty\",\r\n\t\t\t\"Honesty: Art should reflect the soul; it should come from within and reveal who we really are. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My instrument is my most treasured possession, and it reminds me of someone I love.\",\r\n\t\t\"Someone stole my precious instrument, and someday I'll get it back.\",\r\n\t\t\"I want to be famous, whatever it takes.\",\r\n\t\t\"I idolize a hero of the old tales and measure my deeds against that person's.\",\r\n\t\t\"I will do anything to prove myself superior to my hated rival.\",\r\n\t\t\"I would do anything for the other members of my old troupe.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'll do anything to win fame and renown.\",\r\n\t\t\"I'm a sucker for a pretty face.\",\r\n\t\t\"A scandal prevents me from ever going home again. That kind of trouble seems to follow me around.\",\r\n\t\t\"I once satirized a noble who still wants my head. It was a mistake that I will likely repeat.\",\r\n\t\t\"I have trouble keeping my true feelings hidden. My sharp tongue lands me in trouble.\",\r\n\t\t\"Despite my best efforts, I am unreliable to my friends.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Entertainer Routine\",\r\n\t\t\"Actor\",\r\n\t\t\"Dancer\",\r\n\t\t\"Fire-eater\",\r\n\t\t\"Jester\",\r\n\t\t\"Juggler\",\r\n\t\t\"Instrumentalist\",\r\n\t\t\"Poet\",\r\n\t\t\"Singer\",\r\n\t\t\"Storyteller\",\r\n\t\t\"Tumbler\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", [\"Musical instrument\", 1]],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"folk hero\"] = {\r\n\tregExpSearch : /^(?=.*folk)(?=.*hero).*$/i,\r\n\tname : \"Folk Hero\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Shovel\", \"\", 5],\r\n\t\t[\"Iron pot\", \"\", 10]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Rustic Hospitality\",\r\n\ttrait : [\r\n\t\t\"I judge people by their actions, not their words.\",\r\n\t\t\"If someone is in trouble, I'm always ready to lend help.\",\r\n\t\t\"When I set my mind to something, I follow through no matter what gets in my way.\",\r\n\t\t\"I have a strong sense of fair play and always try to find the most equitable solution to arguments.\",\r\n\t\t\"I'm confident in my own abilities and do what I can to instill confidence in others.\",\r\n\t\t\"Thinking is for other people. I prefer action.\",\r\n\t\t\"I misuse long words in an attempt to sound smarter.\",\r\n\t\t\"I get bored easily. When am I going to get on with my destiny?\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: People deserve to be treated with dignity and respect. (Good)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: No one should get preferential treatment before the law, and no one is above the law. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Tyrants must not be allowed to oppress the people. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: If I become strong, I can take what I want\\u2015 what I deserve. (Evil)\"\r\n\t\t],\r\n\t\t[\"Sincerity\",\r\n\t\t\t\"Sincerity: There's no good in pretending to be something I'm not. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Destiny\",\r\n\t\t\t\"Destiny: Nothing and no one can steer me away from my higher calling. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have a family, but I have no idea where they are. One day, I hope to see them again.\",\r\n\t\t\"I worked the land, I love the land, and I will protect the land.\",\r\n\t\t\"A proud noble once gave me a horrible beating, and I will take my revenge on any bully I encounter.\",\r\n\t\t\"My tools are symbols of my past life, and I carry them so that I will never forget my roots.\",\r\n\t\t\"I protect those who cannot protect themselves.\",\r\n\t\t\"I wish my childhood sweetheart had come with me to pursue my destiny.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"The tyrant who rules my land will stop at nothing to see me killed.\",\r\n\t\t\"I'm convinced of the significance of my destiny, and blind to my shortcomings and the risk of failure.\",\r\n\t\t\"The people who knew me when I was young know my shameful secret, so I can never go home again.\",\r\n\t\t\"I have a weakness for the vices of the city, especially hard drink.\",\r\n\t\t\"Secretly, I believe that things would be better if I were a tyrant lording over the land.\",\r\n\t\t\"I have trouble trusting in my allies.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Defining Event\",\r\n\t\t\"I stood up to a tyrant's agents\",\r\n\t\t\"I saved people during a natural disaster\",\r\n\t\t\"I stood alone against a terrible monster\",\r\n\t\t\"I stole from a corrupt merchant for the poor\",\r\n\t\t\"I led a militia to fight off an invading army\",\r\n\t\t\"I stole weapons from a tyrant to arm the people\",\r\n\t\t\"I trained peasantry to fight a tyrant with farm tools\",\r\n\t\t\"A decree was rescinded after I led a protest against it\",\r\n\t\t\"A magical creature gave me a blessing or insight\",\r\n\t\t\"I rose to leadership in a lord's army\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], \"Vehicles (land)\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"guild artisan\"] = {\r\n\tregExpSearch : /^(?=.*guild)(?=.*artisan).*$/i,\r\n\tname : \"Guild Artisan\",\r\n\tsource : [[\"P\", 132], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Letter of introduction from guild\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Guild Membership\",\r\n\ttrait : [\r\n\t\t\"I believe that anything worth doing is worth doing right. I can't help it\\u2015 I'm a perfectionist.\",\r\n\t\t\"I'm a snob who looks down on those who can't appreciate fine art.\",\r\n\t\t\"I always want to know how things work and what makes people tick.\",\r\n\t\t\"I'm full of witty aphorisms and have a proverb for every occasion.\",\r\n\t\t\"I'm rude to people who lack my commitment to hard work and fair play.\",\r\n\t\t\"I like to talk at length about my profession.\",\r\n\t\t\"I don't part with my money easily and will haggle tirelessly to get the best deal possible.\",\r\n\t\t\"I'm well known for my work, and I want to make sure everyone appreciates it. I'm always taken aback when people haven't heard of me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Community\",\r\n\t\t\t\"Community: It is the duty of all civilized people to strengthen the bonds of community and the security of civilization. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Generosity\",\r\n\t\t\t\"Generosity: My talents were given to me so that I could use them to benefit the world. (Good)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Everyone should be free to pursue his or her own livelihood. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I'm only in it for the money. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm committed to the people I care about, not to ideals. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I work hard to be the best there is at my craft. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The workshop where I learned my trade is the most important place in the world to me.\",\r\n\t\t\"I created a great work for someone, and then found them unworthy to receive it. I'm still looking for someone worthy.\",\r\n\t\t\"I owe my guild a great debt for forging me into the person I am today.\",\r\n\t\t\"I pursue wealth to secure someone's love.\",\r\n\t\t\"One day I will return to my guild and prove that I am the greatest artisan of them all.\",\r\n\t\t\"I will get revenge on the evil forces that destroyed my place of business and ruined my livelihood.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'll do anything to get my hands on something rare or priceless.\",\r\n\t\t\"I'm quick to assume that someone is trying to cheat me.\",\r\n\t\t\"No one must ever learn that I once stole money from guild coffers.\",\r\n\t\t\"I'm never satisfied with what I have\\u2015 I always want more.\",\r\n\t\t\"I would kill to acquire a noble title.\",\r\n\t\t\"I'm horribly jealous of anyone who can outshine my handiwork. Everywhere I go, I'm surrounded by rivals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Guild Business\",\r\n\t\t\"Alchemists and apothecaries\",\r\n\t\t\"Armorers, locksmiths, and finesmiths\",\r\n\t\t\"Brewers, distillers, and vintners\",\r\n\t\t\"Calligraphers, scribes, and scriveners\",\r\n\t\t\"Carpenters, roofers, and plasterers\",\r\n\t\t\"Cartographers, surveyors, and chart-makers\",\r\n\t\t\"Cobblers and shoemakers\",\r\n\t\t\"Cooks and bakers\",\r\n\t\t\"Glassblowers and glaziers\",\r\n\t\t\"Jewelers and gemcutters\",\r\n\t\t\"Leatherworkers, skinners, and tanners\",\r\n\t\t\"Masons and stonecutters\",\r\n\t\t\"Painters, limners, and sign-makers\",\r\n\t\t\"Potters and tile-makers\",\r\n\t\t\"Shipwrights and sailmakers\",\r\n\t\t\"Smiths and metal-forgers\",\r\n\t\t\"Tinkers, pewterers, and casters\",\r\n\t\t\"Wagon-makers and wheelwrights\",\r\n\t\t\"Weavers and dyers\",\r\n\t\t\"Woodcarvers, coopers, and bowyers\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"comfortable\"\r\n};\r\nBackgroundList[\"hermit\"] = {\r\n\tregExpSearch : /hermit/i,\r\n\tname : \"Hermit\",\r\n\tsource : [[\"P\", 134], [\"ALbackground\", 0]],\r\n\tskills : [\"Medicine\", \"Religion\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Winter blanket\", \"\", 3],\r\n\t\t[\"Herbalism kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Scroll case with notes\", \"\", 1]\r\n\t],\r\n\tfeature : \"Discovery\",\r\n\ttrait : [\r\n\t\t\"I've been isolated for so long that I rarely speak, preferring gestures and the occasional grunt.\",\r\n\t\t\"I am utterly serene, even in the face of disaster.\",\r\n\t\t\"The leader of my community had something wise to say on every topic, and I am eager to share that wisdom.\",\r\n\t\t\"I feel tremendous empathy for all who suffer.\",\r\n\t\t\"I'm oblivious to etiquette and social expectations.\",\r\n\t\t\"I connect everything that happens to me to a grand, cosmic plan.\",\r\n\t\t\"I often get lost in my own thoughts and contemplation, becoming oblivious to my surroundings.\",\r\n\t\t\"I am working on a grand philosophical theory and love sharing my ideas.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: My gifts are meant to be shared with all, not used for my own benefit. (Good)\"\r\n\t\t],\r\n\t\t[\"Logic\",\r\n\t\t\t\"Logic: Emotions must not cloud our sense of what is right and true, or our logical thinking. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Free Thinking\",\r\n\t\t\t\"Free Thinking: Inquiry and curiosity are the pillars of progress. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Solitude and contemplation are paths toward mystical or magical power. (Evil)\"\r\n\t\t],\r\n\t\t[\"Live and Let Live\",\r\n\t\t\t\"Live and Let Live: Meddling in the affairs of others only causes trouble. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Self-Knowledge\",\r\n\t\t\t\"Self-Knowledge: If you know yourself, there's nothing left to know. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"Nothing is more important than the other members of my hermitage, order, or association.\",\r\n\t\t\"I entered seclusion to hide from the ones who might still be hunting me. I must someday confront them.\",\r\n\t\t\"I'm still seeking the enlightenment I pursued in my seclusion, and it still eludes me.\",\r\n\t\t\"I entered seclusion because I loved someone I could not have.\",\r\n\t\t\"Should my discovery come to light, it could bring ruin to the world.\",\r\n\t\t\"My isolation gave me great insight into a great evil that only I can destroy.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Now that I've returned to the world, I enjoy its delights a little too much.\",\r\n\t\t\"I harbor dark, bloodthirsty thoughts that my isolation and meditation failed to quell.\",\r\n\t\t\"I am dogmatic in my thoughts and philosophy.\",\r\n\t\t\"I let my need to win arguments overshadow friendships and harmony.\",\r\n\t\t\"I'd risk too much to uncover a lost bit of knowledge.\",\r\n\t\t\"I like keeping secrets and won't share them with anyone.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Life of Seclusion\",\r\n\t\t\"Searching for spiritual enlightenment\",\r\n\t\t\"Living in accordance with a religious order\",\r\n\t\t\"Exiled for a crime I didn't commit\",\r\n\t\t\"Retreated from society after a life-altering event\",\r\n\t\t\"Worked on my art, literature, music, or manifesto\",\r\n\t\t\"Commune with nature, far from civilization\",\r\n\t\t\"Caretaker of an ancient ruin or relic\",\r\n\t\t\"Pilgrim in search of a thing of spiritual significance\"\r\n\t],\r\n\ttoolProfs : [\"Herbalism kit\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"noble\"] = {\r\n\tregExpSearch : /^(?!.*(waterdhavian|waterdeep|knight))(?=.*noble).*$/i,\r\n\tname : \"Noble\",\r\n\tsource : [[\"P\", 135], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Persuasion\"],\r\n\tgold : 25,\r\n\tequipleft : [\r\n\t\t[\"Scroll of pedigree\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Position of Privilege\",\r\n\ttrait : [\r\n\t\t\"My eloquent flattery makes everyone I talk to feel like the most wonderful and important person in the world.\",\r\n\t\t\"The common folk love me for my kindness and generosity.\",\r\n\t\t\"No one could doubt by looking at my regal bearing that I am a cut above the unwashed masses.\",\r\n\t\t\"I take great pains to always look my best and follow the latest fashions.\",\r\n\t\t\"I don't like to get my hands dirty, and I won't be caught dead in unsuitable accommodations.\",\r\n\t\t\"Despite my noble birth, I do not place myself above other folk. We all have the same blood.\",\r\n\t\t\"My favor, once lost, is lost forever.\",\r\n\t\t\"If you do me an injury, I will crush you, ruin your name, and salt your fields.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: Respect is due to me because of my position, but all people regardless of station deserve to be treated with dignity. (Good)\"\r\n\t\t],\r\n\t\t[\"Responsibility\",\r\n\t\t\t\"Responsibility: It is my duty to respect the authority of those above me, just as those below me must respect mine. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: I must prove that I can handle myself without the coddling of my family. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: If I can attain more power, no one will tell me what to do. (Evil)\"\r\n\t\t],\r\n\t\t[\"Family\",\r\n\t\t\t\"Family: Blood runs thicker than water. (Any)\"\r\n\t\t],\r\n\t\t[\"Noble Obligation\",\r\n\t\t\t\"Noble Obligation: It is my duty to protect and care for the people beneath me. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I will face any challenge to win the approval of my family.\",\r\n\t\t\"My house's alliance with another noble family must be sustained at all costs.\",\r\n\t\t\"Nothing is more important than the other members of my family.\",\r\n\t\t\"I am in love with the heir of a family that my family despises.\",\r\n\t\t\"My loyalty to my sovereign is unwavering.\",\r\n\t\t\"The common folk must see me as a hero of the people.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I secretly believe that everyone is beneath me.\",\r\n\t\t\"I hide a truly scandalous secret that could ruin my family forever.\",\r\n\t\t\"I too often hear veiled insults and threats in every word addressed to me, and I'm quick to anger.\",\r\n\t\t\"I have an insatiable desire for carnal pleasures.\",\r\n\t\t\"In fact, the world does revolve around me.\",\r\n\t\t\"By my words and actions, I often bring shame to my family.\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"outlander\"] = {\r\n\tregExpSearch : /^(?!.*urban)(?=.*(outlander|forester|trapper|homesteader|guide|exile|outcast|bounty.?hunter|tribal nomad|hunter-gatherer|tribal.?marauder)).*$/i,\r\n\tname : \"Outlander\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Staff\", \"\", 4],\r\n\t\t[\"Hunting trap\", \"\", 25],\r\n\t\t[\"Trophy from animal\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Wanderer\",\r\n\ttrait : [\r\n\t\t\"I'm driven by a wanderlust that led me away from home.\",\r\n\t\t\"I watch over my friends as if they were a litter of newborn pups.\",\r\n\t\t\"I once ran twenty-five miles without stopping to warn to my clan of an approaching orc horde. I'd do it again if I had to.\",\r\n\t\t\"I have a lesson for every situation, drawn from observing nature.\",\r\n\t\t\"I place no stock in wealthy or well-mannered folk. Money and manners won't save you from a hungry owlbear.\",\r\n\t\t\"I'm always picking things up, absently fiddling with them, and sometimes accidentally breaking them.\",\r\n\t\t\"I feel far more comfortable around animals than people.\",\r\n\t\t\"I was, in fact, raised by wolves.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Change\",\r\n\t\t\t\"Change: Life is like the seasons, in constant change, and we must change with it. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: It is each person's responsibility to make the most happiness for the whole tribe. (Good)\"\r\n\t\t],\r\n\t\t[\"Honor\",\r\n\t\t\t\"Honor: If I dishonor myself, I dishonor my whole clan. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: The strongest are meant to rule. (Evil)\"\r\n\t\t],\r\n\t\t[\"Nature\",\r\n\t\t\t\"Nature: The natural world is more important than all the constructs of civilization. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Glory\",\r\n\t\t\t\"Glory: I must earn glory in battle, for myself and my clan. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My family, clan, or tribe is the most important thing in my life, even when they are far from me.\",\r\n\t\t\"An injury to the unspoiled wilderness of my home is an injury to me.\",\r\n\t\t\"I will bring terrible wrath down on the evildoers who destroyed my homeland.\",\r\n\t\t\"I am the last of my tribe, and it is up to me to ensure their names enter legend.\",\r\n\t\t\"I suffer awful visions of a coming disaster and will do anything to prevent it.\",\r\n\t\t\"It is my duty to provide children to sustain my tribe.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am too enamored of ale, wine, and other intoxicants.\",\r\n\t\t\"There's no room for caution in a life lived to the fullest.\",\r\n\t\t\"I remember every insult I've received and nurse a silent resentment toward anyone who's ever wronged me.\",\r\n\t\t\"I am slow to trust members of other races, tribes, and societies.\",\r\n\t\t\"Violence is my answer to almost any challenge.\",\r\n\t\t\"Don't expect me to save those who can't save themselves. It is nature's way that the strong thrive and the weak perish.\"\r\n\t],\r\n\textra : [\"Select an Origin\",\r\n\t\t\"Forester\",\r\n\t\t\"Trapper\",\r\n\t\t\"Homesteader\",\r\n\t\t\"Guide\",\r\n\t\t\"Exile or outcast\",\r\n\t\t\"Bounty hunter\",\r\n\t\t\"Pilgrim\",\r\n\t\t\"Tribal nomad\",\r\n\t\t\"Hunter-gatherer\",\r\n\t\t\"Tribal marauder\"\r\n\t],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"sage\"] = {\r\n\tregExpSearch : /(sage|alchemist|astronomer|academic|librarian|professor|researcher|apprentice|scribe)/i,\r\n\tname : \"Sage\",\r\n\tsource : [[\"P\", 137], [\"ALbackground\", 0]],\r\n\tskills : [\"Arcana\", \"History\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5],\r\n\t\t[\"Letter from dead colleague\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Researcher\",\r\n\ttrait : [\r\n\t\t\"I use polysyllabic words that convey the impression of great erudition.\",\r\n\t\t\"I've read every book in the world's greatest libraries\\u2015 or I like to boast that I have.\",\r\n\t\t\"I'm used to helping out those who aren't as smart as I am, and I patiently explain anything and everything to others.\",\r\n\t\t\"There's nothing I like more than a good mystery.\",\r\n\t\t\"I'm willing to listen to every side of an argument before I make my own judgment.\",\r\n\t\t\"I . . . speak . . . slowly . . . when talking . . . to idiots, . . . which . . . almost. . . everyone . . . is . . . compared . . . to me.\",\r\n\t\t\"I am horribly, horribly awkward in social situations.\",\r\n\t\t\"I'm convinced that people are always trying to steal my secrets.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: The path to power and self-improvement is through knowledge. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Beauty\",\r\n\t\t\t\"Beauty: What is beautiful points us beyond itself toward what is true. (Good)\"\r\n\t\t],\r\n\t\t[\"Logic\",\r\n\t\t\t\"Logic: Emotions must not cloud our logical thinking. (Lawful)\"\r\n\t\t],\r\n\t\t[\"No Limits\",\r\n\t\t\t\"No Limits: Nothing should fetter the infinite possibility inherent in all existence. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Knowledge is the path to power and domination. (Evil)\"\r\n\t\t],\r\n\t\t[\"Self-Improvement\",\r\n\t\t\t\"Self-Improvement: The goal of a life of study is the betterment of oneself. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"It is my duty to protect my students.\",\r\n\t\t\"I have an ancient text that holds terrible secrets that must not fall into the wrong hands.\",\r\n\t\t\"I work to preserve a library, university, scriptorium, or monastery.\",\r\n\t\t\"My life's work is a series of tomes related to a specific field of lore.\",\r\n\t\t\"I've been searching my whole life for the answer to a certain question.\",\r\n\t\t\"I sold my soul for knowledge. I hope to do great deeds and win it back.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am easily distracted by the promise of information.\",\r\n\t\t\"Most people scream and run when they see a demon. I stop and take notes on its anatomy.\",\r\n\t\t\"Unlocking an ancient mystery is worth the price of a civilization.\",\r\n\t\t\"I overlook obvious solutions in favor of complicated ones.\",\r\n\t\t\"I speak without really thinking through my words, invariably insulting others.\",\r\n\t\t\"I can't keep a secret to save my life, or anyone else's.\"\r\n\t],\r\n\textra : [\"Select a Specialty\",\r\n\t\t\"Alchemist\",\r\n\t\t\"Astronomer\",\r\n\t\t\"Discredited academic\",\r\n\t\t\"Librarian\",\r\n\t\t\"Professor\",\r\n\t\t\"Researcher\",\r\n\t\t\"Wizard's apprentice\",\r\n\t\t\"Scribe\"\r\n\t],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"sailor\"] = {\r\n\tregExpSearch : /sailor/i,\r\n\tname : \"Sailor\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Perception\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Silk rope, feet of\", 50, 0.1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belaying pin (club)\", \"\", 2],\r\n\t\t[\"Lucky charm\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Ship's Passage\",\r\n\ttrait : [\r\n\t\t\"My friends know they can rely on me, no matter what.\",\r\n\t\t\"I work hard so that I can play hard when the work is done.\",\r\n\t\t\"I enjoy sailing into new ports and making new friends over a flagon of ale.\",\r\n\t\t\"I stretch the truth for the sake of a good story.\",\r\n\t\t\"To me, a tavern brawl is a nice way to get to know a new city.\",\r\n\t\t\"I never pass up a friendly wager.\",\r\n\t\t\"My language is as foul as an otyugh nest.\",\r\n\t\t\"I like a job well done, especially if I can convince someone else to do it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: The thing that keeps a ship together is mutual respect between captain and crew. (Good)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: We all do the work, so we all share in the rewards. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: The sea is freedom\\u2015 the freedom to go anywhere and do anything. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Mastery\",\r\n\t\t\t\"Mastery: I'm a predator, and the other ships on the sea are my prey. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm committed to my crewmates, not to ideals. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: Someday I'll own my own ship and chart my own destiny. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'm loyal to my captain first, everything else second.\",\r\n\t\t\"The ship is most important\\u2015 crewmates and captains come and go.\",\r\n\t\t\"I'll always remember my first ship.\",\r\n\t\t\"In a harbor town, I have a paramour whose eyes nearly stole me from the sea.\",\r\n\t\t\"I was cheated out of my fair share of the profits, and I want to get my due.\",\r\n\t\t\"Ruthless pirates murdered my captain and crewmates, plundered our ship, and left me to die. Vengeance will be mine.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I follow orders, even if I think they're wrong.\",\r\n\t\t\"I'll say anything to avoid having to do extra work.\",\r\n\t\t\"Once someone questions my courage, I never back down no matter how dangerous the situation.\",\r\n\t\t\"Once I start drinking, it's hard for me to stop.\",\r\n\t\t\"I can't help but pocket loose coins and other trinkets I come across.\",\r\n\t\t\"My pride will probably lead to my destruction.\"\r\n\t],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (water)\"],\r\n\tlifestyle : \"modest\",\r\n};\r\nBackgroundList[\"soldier\"] = {\r\n\tregExpSearch : /^(?!.*mercenary)(?=.*soldier).*$/i,\r\n\tname : \"Soldier\",\r\n\tsource : [[\"P\", 140], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Intimidation\"],\r\n\tgold : 10,\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Trophy from fallen enemy\", \"\", \"\"],\r\n\t\t[\"Bone dice or playing cards\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Military Rank\",\r\n\ttrait : [\r\n\t\t\"I'm always respectful and polite.\",\r\n\t\t\"I'm haunted by memories of war. I can't get the violent images out of my mind.\",\r\n\t\t\"I'm slow to make new friends, because I've lost too many old ones.\",\r\n\t\t\"I'm full of inspiring and cautionary tales from my military experience with some relevance to almost every type of combat situation.\",\r\n\t\t\"I can stare down an owlbear without flinching.\",\r\n\t\t\"I enjoy my strength and like to break things.\",\r\n\t\t\"I have a rough sense of humor.\",\r\n\t\t\"I approach problems head-on. A simple, direct course is the best path to a solution.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: Our fate is to give our lives in the defense of others. (Good)\"\r\n\t\t],\r\n\t\t[\"Responsibility\",\r\n\t\t\t\"Responsibility: I do what I have to and follow just authority. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: When people obey orders blindly, they affirm a kind of tyranny. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: In life as in war, the mightier force prevails. (Evil)\"\r\n\t\t],\r\n\t\t[\"Live and Let Live\",\r\n\t\t\t\"Live and Let Live: Ideals aren't worth killing over or going to war for. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Nation\",\r\n\t\t\t\"Nation: My city, state, or people are the only things that matter. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I would still give my life for the people I have served with.\",\r\n\t\t\"Someone saved my life on the battlefield. Even now, I would never leave a friend behind.\",\r\n\t\t\"My honor is my life.\",\r\n\t\t\"I'll never forget the crushing defeat my company endured or the foes who inflicted it.\",\r\n\t\t\"Those who fight with me are those worth laying down my life for.\",\r\n\t\t\"I fight for those who cannot fight for themselves.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"The atrocious enemy we faced in battle still leaves me trembling with fear.\",\r\n\t\t\"I have little respect for those who are not a tested warrior.\",\r\n\t\t\"A disastrous mistake I made in battle cost many lives\\u2015 I will do anything to keep that mistake a secret.\",\r\n\t\t\"My hatred of my foes is blind and unreasoning. \",\r\n\t\t\"I uphold the law, even if the law causes suffering.\",\r\n\t\t\"I'd rather eat my weapon than admit when I'm wrong.\"\r\n\t],\r\n\textra : [\"Select a Specialty\",\r\n\t\t\"Officer\",\r\n\t\t\"Scout\",\r\n\t\t\"Infantry\",\r\n\t\t\"Cavalry\",\r\n\t\t\"Healer\",\r\n\t\t\"Quartermaster\",\r\n\t\t\"Standard-bearer\",\r\n\t\t\"Support staff\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"urchin\"] = {\r\n\tregExpSearch : /urchin/i,\r\n\tname : \"Urchin\",\r\n\tsource : [[\"P\", 141], [\"ALbackground\", 0]],\r\n\tskills : [\"Sleight of Hand\", \"Stealth\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Map of the city\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Token from my parents\", \"\", \"\"],\r\n\t\t[\"Pet mouse\", \"\", 0.1],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"City Secrets\",\r\n\ttrait : [\r\n\t\t\"I keep scraps of food and trinkets hidden away in my pockets.\",\r\n\t\t\"I ask questions all the time.\",\r\n\t\t\"I like to squeeze into compact places where nobody can harm me.\",\r\n\t\t\"I sleep with my back to solid surface, with all that I own embraced tightly in my arms.\",\r\n\t\t\"I have bad manners and eat like a pig.\",\r\n\t\t\"I expect that anybody who's nice to me is hiding malicious intent.\",\r\n\t\t\"I eschew bathing.\",\r\n\t\t\"I say, without reserve, what other people are implying or masking.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: Everybody, no matter their riches, deserves respect. (Good)\"\r\n\t\t],\r\n\t\t[\"Community\",\r\n\t\t\t\"Community: We have to take look out for each other, because nobody else will do it for us. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Change\",\r\n\t\t\t\"Change: The low rise up, and the high and mighty come down. Change is natural. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Retribution\",\r\n\t\t\t\"Retribution: The rich need to be shown how it is to live and die in the poor quarters. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I help those who help me\\u2015 that is what lets us stay alive. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I'm going to prove that I'm worthy of a better life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My town or city is my home, and I'll battle those that threaten it.\",\r\n\t\t\"I'm the benefactor of an orphanage so others may be kept from enduring what I was forced to endure.\",\r\n\t\t\"I owe my life to another urchin who taught me the ways of living in the gutters.\",\r\n\t\t\"I owe a debt I can never repay to the person who showed me sympathy.\",\r\n\t\t\"I got away from my life of poverty by robbing an influential person, and I'm wanted for it.\",\r\n\t\t\"No one else should have to suffer the difficulties I've been through.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I will run away from a fight if I'm outnumbered.\",\r\n\t\t\"A gold piece already has a lot of value to me, and I'll do just about anything for more of it.\",\r\n\t\t\"I will never completely trust another. I only trust myself.\",\r\n\t\t\"I would rather use an unfair advantage than fight honorably.\",\r\n\t\t\"It's not theft if I have more use for it than someone else.\",\r\n\t\t\"People who are incapable of taking care of themselves get what they deserve.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", [\"Thieves' tools\", \"Dex\"]],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Add the background variants\r\nAddBackgroundVariant(\"entertainer\", \"gladiator\", {\r\n\tregExpSearch : /gladiator/i,\r\n\tname : \"Gladiator\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Costume\", \"\", 4],\r\n\t\t[\"Favor of an admirer\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Inexpensive, unusual weapon\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Are You Entertained?\",\r\n\textra : \"\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"guild merchant\", {\r\n\tregExpSearch : /^(?=.*guild)(?=.*merchant).*$/i,\r\n\tname : \"Guild Merchant\",\r\n\tsource : [[\"P\", 133], [\"ALbackground\", 0]],\r\n\tequipleft : [\r\n\t\t[\"Letter of introduction from guild\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Cart\", \"\", \"\"],\r\n\t\t[\"Mule\", \"\", \"\"]\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Guild Business\",\r\n\t\t\"Traders\",\r\n\t\t\"Caravan masters\",\r\n\t\t\"Shopkeepers\"\r\n\t],\r\n\ttoolProfs : [\"Navigator's tools (or language)\"]\r\n});\r\nAddBackgroundVariant(\"noble\", \"knight\", {\r\n\tregExpSearch : /^(?!.*order)(?=.*knight).*$/i,\r\n\tname : \"Knight\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t\t[\"Banner or token from devoted love\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Retainers\"\r\n});\r\nAddBackgroundVariant(\"sailor\", \"pirate\", {\r\n\tregExpSearch : /pirate/i,\r\n\tname : \"Pirate\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]],\r\n\tfeature : \"Bad Reputation\"\r\n});\r\n\r\n// Add the backgrounds features that are not in the SRD\r\nBackgroundFeatureList[\"are you entertained?\"] = {\r\n\tdescription : \"I can always find a place to perform (arena/pit fight), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"bad reputation\"] = {\r\n\tdescription : \"No matter where I go, people are afraid of me due to my reputation. When I am in a civilized settlement, I can get away with minor criminal offenses, such as refusing to pay for food at a tavern or breaking down doors at a local shop, since most people will not report my activity to the authorities.\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"by popular demand\"] = {\r\n\tdescription : \"I can always find a place to perform (inn/tavern/circus/etc.), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\r\n\tsource : [[\"P\", 130], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"city secrets\"] = {\r\n\tdescription : \"I know the secret patterns and flow to cities and can find passages through the urban sprawl that others would miss. When I am not in combat, I (and companions I lead) can travel between any two locations in the city twice as fast as my speed would normally allow.\",\r\n\tsource : [[\"P\", 141], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"criminal contact\"] = {\r\n\tdescription : \"I have a reliable and trustworthy contact who acts as my liaison to a network of other criminals. I know how to get messages to and from my contact, even over great distances; specifically, I know the local messengers, corrupt caravan masters, and seedy sailors who can deliver my messages.\",\r\n\tsource : [[\"P\", 129], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"discovery\"] = {\r\n\tdescription : \"The quiet seclusion of my extended hermitage gave me access to a unique and powerful discovery. The exact nature of this revelation depends on the nature of my seclusion. It might be a great truth, a hidden site, a long forgotten fact, or unearthed some relic of the past that could rewrite history.\",\r\n\tsource : [[\"P\", 134], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"false identity\"] = {\r\n\tdescription : \"I have created a second identity that includes documentation, established acquaintances, and disguises that allow me to assume that persona. Additionally, I can forge documents, including official papers and personal letters, as long as I have seen an example of the kind of document or the handwriting I am trying to copy.\",\r\n\tsource : [[\"P\", 128], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"guild membership\"] = {\r\n\tdescription : \"5 gp membership fees per month: The guild offers lodging if possible. In case of being accused of a crime, the guild will support me if a good case can be made for my innocence or the crime is justifiable. I can also gain access to powerful political figures through the guild, as long as I'm in good standing and the guild is paid enough.\",\r\n\tsource : [[\"P\", 133], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"military rank\"] = {\r\n\tdescription : \"I have a military rank from my career as a soldier. Soldiers loyal to my former military organization still recognize my authority and influence. I can invoke my rank to influence soldiers and temporarily requisition simple equipment or horses. I can usually gain access to friendly military encampments and fortresses where my rank is recognized.\",\r\n\tsource : [[\"P\", 140], [\"ALbackground\", 0]],\r\n};\r\nBackgroundFeatureList[\"position of privilege\"] = {\r\n\tdescription : \"I am welcome in high society, and people assume I have the right to be wherever I am. The common folk make every effort to accommodate me and avoid my displeasure, and other people of high birth treat me as a member of the same social sphere. I can secure an audience with a local noble if I need to.\",\r\n\tsource : [[\"P\", 135], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"researcher\"] = {\r\n\tdescription : \"When I attempt to learn or recall a piece of lore, if I do not know that information, I often know where and from whom I can obtain it. Usually, this information comes from a library, scriptorium, university, or a sage or other learned person or creature. Unearthing the deepest secrets of the multiverse can require an adventure or even a whole campaign.\",\r\n\tsource : [[\"P\", 138], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"retainers\"] = {\r\n\tdescription : \"I have the service of three retainers loyal to my family, one of whom is another noble and my squire. My other retainers are commoners who can perform mundane tasks for me, but they do not fight for me, will not follow me into obviously dangerous areas (such as dungeons), and will leave if they are frequently endangered or abused.\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"rustic hospitality\"] = {\r\n\tdescription : \"Since I come from the ranks of the common folk, I fit in among them with ease. I can find a place to hide, rest, or recuperate among other commoners, unless I have shown myself to be a danger to them. They will shield me from the law or anyone else searching for me, though they will not risk their lives for me.\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ship's passage\"] = {\r\n\tdescription : \"When I need to, I can secure free passage on a sailing ship for myself and my companions. I might sail on the ship I served on, or another ship I have good relations with. Because I'm calling in a favor, I can't be certain of a schedule or route that will meet my every need. My companions and I are expected to assist the crew during the voyage.\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"wanderer\"] = {\r\n\tdescription : \"I have an excellent memory for maps and geography, and I can always recall the general layout of terrain, settlements, and other features around me. In addition, I can find food and fresh water for myself and up to five other people each day, provided that the land offers berries, small game, water, and so forth.\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Add the feats that are not in the SRD\r\nFeatsList[\"actor\"] = {\r\n\tname : \"Actor\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Skilled at mimicry and dramatics, you gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You have advantage on Charisma (Deception) and Charisma (Performance) checks when trying to pass yourself off as a different person.\\n \\u2022 You can mimic the speech of another person or the sounds made by other creatures. You must have heard the person speaking, or heard the creature make the sound, for at least 1 minute. A successful Wisdom (Insight) check contested by your Charisma (Deception) check allows a listener to determine that the effect is faked.\",\r\n\tdescription : \"Advantage on Charisma (Deception) and (Performance) if trying to pass as another. I can mimic a person's speech or other creature's sounds if I've heard it for at least 1 minute. Wisdom (Insight) vs. Charisma (Deception) to determine the sound is faked. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1]\r\n};\r\nFeatsList[\"alert\"] = {\r\n\tname : \"Alert\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Always on the lookout for danger, you gain the following benefits:\\n \\u2022 You gain a +5 bonus to initiative.\\n \\u2022 You can't be surprised while you are conscious.\\n \\u2022 Other creatures don't gain advantage on attack rolls against you as a result of being unseen by you.\",\r\n\tdescription : \"I can't be surprised while I'm conscious. I have a +5 bonus on initiative rolls. Other creatures don't gain advantage on attack rolls against me as a result of being hidden from me.\",\r\n\taddMod : { type : \"skill\", field : \"Init\", mod : 5, text : \"I have a +5 bonus on initiative rolls.\" }\r\n};\r\nFeatsList[\"athlete\"] = {\r\n\tname : \"Athlete\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"You have undergone extensive physical training to gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 When you are prone, standing up uses only 5 feet of your movement.\\n \\u2022 Climbing doesn't cost you extra movement.\\n \\u2022 You can make a running long jump or a running high jump after moving only 5 feet on foot, rather than 10 feet.\",\r\n\tdescription : \"Standing up from prone uses only 5 ft of movement. Climbing doesn't cost me extra movement. I can make a running long jump or a running high jump after moving only 5 feet on foot, rather than 10 feet. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\nFeatsList[\"charger\"] = {\r\n\tname : \"Charger\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"When you use your action to Dash, you can use a bonus action to make one melee weapon attack or to shove a creature.\\n   If you move at least 10 feet in a straight line immediately before taking this bonus action, you either gain a +5 bonus to the attack's damage roll (if you chose to make a melee attack and hit) or push the target up to 10 feet away from you (if you chose to shove and you succeed).\",\r\n\tdescription : \"As a bonus action after taking the Dash action, I can make one melee weapon attack or shove a creature. If I move at least 10 ft in a straight line before this bonus action, I add +5 damage to the attack or increase the distance up to 10 ft for the shove.\",\r\n\taction : [[\"bonus action\", \" (after Dash action)\"]]\r\n};\r\nFeatsList[\"crossbow expert\"] = {\r\n\tname : \"Crossbow Expert\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Thanks to extensive practice with the crossbow, you gain the following benefits:\\n \\u2022 You ignore the loading quality of crossbows with which you are proficient.\\n \\u2022 Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls.\\n \\u2022 When you use the Attack action and attack with a one-handed weapon, you can use a bonus action to attack with a hand crossbow you are holding.\",\r\n\tdescription : \"I ignore the loading quality of crossbows I'm proficient with. I don't suffer disadv. on ranged attack rolls for being within 5 ft of a hostile. When I attack with a one-handed weapon in my Attack action, I can use a bonus action to attack with a hand crossbow I'm holding.\",\r\n\taction : [[\"bonus action\", \" (with Attack action)\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (/crossbow/i.test(v.baseWeaponName) && fields.Proficiency) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(,? ?loading|loading,? ?)/i, '');\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of crossbows I'm proficient with.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"defensive duelist\"] = {\r\n\tname : \"Defensive Duelist\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"When you are wielding a finesse weapon with which you are proficient and another creature hits you with a melee attack, you can use your reaction to add your proficiency bonus to your AC for that attack, potentially causing the attack to miss you.\",\r\n\tdescription : \"When wielding a finesse weapon with which I am proficient and another creature hits me with a melee attack, I can use my reaction to add my proficiency bonus to my AC for that attack, potentially causing the attack to miss me.\",\r\n\tprerequisite : \"Dexterity 13 or higher\",\r\n\tprereqeval : function(v) { return What('Dex') >= 13; },\r\n\taction : [[\"reaction\", \" (when hit in melee)\"]]\r\n};\r\nFeatsList[\"dual wielder\"] = {\r\n\tname : \"Dual Wielder\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"You master fighting with two weapons, gaining the following benefits:\\n \\u2022 You gain a +1 bonus to AC while you are wielding a separate melee weapon in each hand.\\n \\u2022 You can use two-weapon fighting even when the one-handed melee weapons you are wielding aren't light.\\n \\u2022 You can draw or stow two one-handed weapons when you would normally be able to draw or stow only one.\",\r\n\tdescription : \"I can use two-weapon fighting even when the one-handed melee weapons I'm wielding aren't light. I can draw or stow two one-handed weapons when I would normally be able to draw or stow only one. +1 AC while wielding separate melee weapons in each hand.\",\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC when holding a melee weapon in each hand.\",\r\n\t\tstopeval : function (v) { return v.usingShield && !(/animated/i).test(What(\"AC Shield Bonus Description\")); }\r\n\t}\r\n};\r\nFeatsList[\"dungeon delver\"] = {\r\n\tname : \"Dungeon Delver\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"Alert to the hidden traps and secret doors found in many dungeons, you gain the following benefits:\\n \\u2022 You have advantage on Wisdom (Perception) and Intelligence (Investigation) checks made to detect the presence of secret doors.\\n \\u2022 You have advantage on saving throws made to avoid or resist traps.\\n \\u2022 You have resistance to the damage dealt by traps.\\n \\u2022 Traveling at a fast pace doesn't impose the normal -5 penalty on your passive Wisdom (Perception) score.\",\r\n\tdescription : \"I have adv. on Wis (Perception) and Int (Investigation) checks made to detect the presence of secret doors. I have resistance to damage dealt by traps and advantage on saves to avoid or resist traps. Travelling at a fast pace doesn't impose -5 on my passive Perception.\",\r\n\tdmgres : [\"Traps\"],\r\n\tsavetxt : { adv_vs : [\"traps\"] },\r\n\tvision : [[\"Adv. on Perception and Investigation for secret doors\", 0], [\"No -5 for travelling at fast pace\", 0]]\r\n};\r\nFeatsList[\"durable\"] = {\r\n\tname : \"Durable\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"Hardy and resilient, you gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 When you roll a Hit Die to regain hit points, the minimum number of hit points you regain from the roll equals twice your Constitution modifier (minimum of 2).\",\r\n\tdescription : \"When I roll a hit die to regain hit points, the minimum number of hit points I regain from the roll equals twice my Constitution modifier (minimum of 2). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elemental adept\"] = {\r\n\tname : \"Elemental Adept\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"When you gain this feat, choose one of the following damage types: acid, cold, fire, lightning, or thunder.\\n   Spells you cast ignore resistance to damage of the chosen type. In addition, when you roll damage for a spell you cast that deals damage of that type, you can treat any 1 on a damage die as a 2.\\n\\nYou can select this feat multiple times. Each time you do so, you must choose a different damage type.\",\r\n\tdescription : \"Choose one of the damage types: acid, cold, fire, lightning, or thunder. Spells I cast ignore resistance to damage from this damage type. For any spell I cast that deals this damage type, I can treat any 1 on a damage die as a 2.\",\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tallowDuplicates : true,\r\n\tchoices : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\"acid\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to acid damage. For any spell I cast that deals acid damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"cold\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to cold damage. For any spell I cast that deals cold damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"fire\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to fire damage. For any spell I cast that deals fire damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"lightning\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to lightning damage. For any spell I cast that deals lightning damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"thunder\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to thunder damage. For any spell I cast that deals thunder damage, I can treat any 1 on a damage die as a 2.\"\r\n\t}\r\n};\r\nFeatsList[\"great weapon master\"] = {\r\n\tname : \"Great Weapon Master\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You've learned to put the weight of a weapon to your advantage, letting its momentum empower your strikes. You gain the following benefits:\\n \\u2022 On your turn, when you score a critical hit with a melee weapon or reduce a creature to 0 hit points with one, you can make one melee weapon attack as a bonus action.\\n \\u2022 Before you make a melee attack with a heavy weapon that you are proficient with, you can choose to take a -5 penalty to the attack roll. If the attack hits, you add +10 to the attack's damage.\",\r\n\tdescription : \"If I score a critical hit or reduce a creature to 0 hit points with a melee weapon in my turn, I can make one melee weapon attack as a bonus action. With a heavy melee weapon, I can choose to take a -5 penalty on the attack roll for +10 on the attack's damage.\",\r\n\taction : [[\"bonus action\", \" (after crit or take-down)\"]],\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/heavy/i).test(fields.Description) && (/\\bgwm\\b|power.{0,3}attack|great.{0,3}weapon.{0,3}master/i).test(v.WeaponText)) {\r\n\t\t\t\t\toutput.extraDmg += 10;\r\n\t\t\t\t\toutput.extraHit -= 5;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the words 'Power Attack', 'Great Weapon Master', or just 'GWM' in a heavy melee weapon's name or description, the calculation will put a -5 penalty on the attack's To Hit and +10 on its Damage.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"healer\"] = {\r\n\tname : \"Healer\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You are an able physician, allowing you to mend wounds quickly and get your allies back in the fight. You gain the following benefits:\\n \\u2022 When you use a healer's kit to stabilize a dying creature, that creature also regains 1 hit point.\\n \\u2022 As an action, you can spend one use of a healer's kit to tend to a creature and restore 1d6+4 hit points to it, plus additional hit points equal to the creature's maximum number of Hit Dice. The creature can't regain hit points from this feat again until it finishes a short or long rest.\",\r\n\tdescription : \"Using a healer's kit to stabilize someone gives them 1 hit point as well. As an action, I can spend one use of a healer's kit to restore 1d6 + 4 + (creature's HD) hit points. After that, the creature can't gain hit points from this feat again until it finishes a short rest.\",\r\n\taction : [[\"action\", \" (1d6+4+HD with healing kit)\"]]\r\n};\r\nFeatsList[\"heavily armored\"] = {\r\n\tname : \"Heavily Armored\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have trained to master the use of heavy armor, gaining the following benefits:\\n \\u2022 Increase your Strength score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with heavy armor.\",\r\n\tdescription : \"I gain proficiency with heavy armor. [+1 Strength]\",\r\n\tprerequisite : \"Proficiency with medium armor\",\r\n\tprereqeval : function(v) { return v.mediumArmorProf; },\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\tarmorProfs : [false, false, true, false]\r\n};\r\nFeatsList[\"heavy armor master\"] = {\r\n\tname : \"Heavy Armor Master\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You can use your armor to deflect strikes that would kill others. You gain the following benefits:\\n \\u2022 While you are wearing heavy armor, bludgeoning, piercing, and slashing damage that you take from nonmagical weapons is reduced by 3.\",\r\n\tdescription : \"While wearing heavy armor, bludgeoning, piercing, and slashing damage taken from nonmagical weapons is reduced by 3. [+1 Strength]\",\r\n\tprerequisite : \"Proficiency with heavy armor\",\r\n\tprereqeval : function(v) { return v.heavyArmorProf; },\r\n\tscores : [1, 0, 0, 0, 0, 0]\r\n};\r\nFeatsList[\"inspiring leader\"] = {\r\n\tname : \"Inspiring Leader\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You can spend 10 minutes inspiring your companions, shoring up their resolve to fight. When you do so, choose up to six friendly creatures (which can include yourself) within 30 feet of you who can see or hear you and who can understand you. Each creature can gain temporary hit points equal to your level + your Charisma modifier. A creature can't gain temporary hit points from this feat again until it has finished a short or long rest.\",\r\n\tcalculate : \"event.value = 'I can spend 10 minutes inspiring up to 6 friendly creatures within 30 feet who can see or hear and can understand me. Each gains lvl (' + What('Character Level') + ') + Cha mod (' + What('Cha Mod') + \\\") temporary hit points. One can't gain temporary hit points from this feat again until after a short rest.\\\";\",\r\n\tprerequisite : \"Charisma 13 or higher\",\r\n\tprereqeval : function(v) { return What('Cha') >= 13; }\r\n};\r\nFeatsList[\"keen mind\"] = {\r\n\tname : \"Keen Mind\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have a mind that can track time, direction, and detail with uncanny precision. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You always know which way is north.\\n \\u2022 You always know the number of hours left before the next sunrise or sunset.\\n \\u2022 You can accurately recall anything you have seen or heard within the past month.\",\r\n\tdescription : \"I always know which way is north and the number of hours left before the next sunrise or sunset. I can accurately recall anything I have seen or heard within the past month. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0]\r\n};\r\nFeatsList[\"lightly armored\"] = {\r\n\tname : \"Lightly Armored\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have trained to master the use of light armor, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with light armor.\",\r\n\tdescription : \"I gain proficiency with light armor. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tarmorProfs : [true, false, false, false]\r\n};\r\nFeatsList[\"linguist\"] = {\r\n\tname : \"Linguist\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have studied languages and codes, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn three languages of your choice.\\n \\u2022 You can ably create written ciphers. Others can't decipher a code you create unless you teach them, they succeed on an Intelligence check (DC equal to your Intelligence score + your proficiency bonus), or they use magic to decipher it.\",\r\n\tcalculate : \"event.value = \\\"I can ably create written ciphers that others can't decipher unless I teach them, they succeed on an Intelligence check DC \\\" + (Number(What('Int')) + Number(How('Proficiency Bonus'))) + ' (Intelligence score + proficiency bonus), or they use magic to decipher it. I learn three languages of my choice. [+1 Intelligence]';\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tlanguageProfs : [3]\r\n};\r\nFeatsList[\"lucky\"] = {\r\n\tname : \"Lucky\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have inexplicable luck that seems to kick in at just the right moment.\\n   You have 3 luck points. Whenever you make an attack roll, an ability check, or a saving throw, you can spend one luck point to roll an additional d20. You can choose to spend one of your luck points after you roll the die, but before the outcome is determined. You choose which of the d20s is used for the attack roll, ability check, or saving throw.\\n   You can also spend one luck point when an attack roll is made against you. Roll a d20, and then choose whether the attack uses the attacker's roll or yours. If more than one creature spends a luck point to influence the outcome of a roll, the points cancel each other out; no additional dice are rolled.\\n   You regain your expended luck points when you finish a long rest.\",\r\n\tdescription : \"Use one of three luck points to roll an extra d20 for attacking, being attacked, an ability check, or a saving throw before the outcome is determined. If more than one creature uses luck, no extra dice are rolled. I regain expended luck points when I finish a long rest.\",\r\n\tusages : 3,\r\n\trecovery : \"long rest\",\r\n\tadditional : \"attack/check/save\"\r\n};\r\nFeatsList[\"mage slayer\"] = {\r\n\tname : \"Mage Slayer\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have practiced techniques useful in melee combat against spellcasters, gaining the following benefits:\\n \\u2022 When a creature within 5 feet of you casts a spell, you can use your reaction to make a melee weapon attack against that creature.\\n \\u2022 When you damage a creature that is concentrating on a spell, that creature has disadvantage on the saving throw it makes to maintain its concentration.\\n \\u2022 You have advantage on saving throws against spells cast by creatures within 5 feet of you.\",\r\n\tdescription : \"As a reaction, I can make a melee weapon attack on a creature within 5 ft of me that casts a spell. Concentration checks from damage from me are made with disadvantage. I have advantage on saving throws against spells cast by creatures within 5 feet of me.\",\r\n\tsavetxt : { adv_vs : [\"spells cast within 5 ft\"] },\r\n\taction : [[\"reaction\", \"Melee weapon attack (if spell cast in 5 ft)\"]]\r\n};\r\nFeatsList[\"magic initiate\"] = {\r\n\tname : \"Magic Initiate\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Choose a class: bard, cleric, druid, sorcerer, warlock, or wizard. You learn two cantrips of your choice from that class's spell list.\\n   In addition, choose one 1st-level spell to learn from that same list. Using this feat, you can cast the spell once at its lowest level, and you must finish a long rest before you can cast it in this way again.\\n   Your spellcasting ability for these spells depends on the class you chose: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid: or Intelligence for wizard.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I learn two cantrips and one 1st-level spell of my choice from that class' spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot.\",\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spName.indexOf(\"magic initiate\") === 0 && spellObj.level > 0) {\r\n\t\t\t\t\t// test if levels in same class\r\n\t\t\t\t\tvar casterClass = spName.replace(/magic initiate[_-]*/i, '');\r\n\t\t\t\t\tif (classes.known[casterClass]) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"oncelr+markedbox\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the bard's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a bard, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Bard cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Bard 1st-level spell\",\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the cleric's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a cleric, I can also cast the 1st-level spell by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Cleric 1st-level spell\",\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the druid's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a druid, I can also cast the 1st-level spell by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Druid cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Druid 1st-level spell\",\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the sorcerer's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a sorcerer, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Sorcerer cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the warlock's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a warlock, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Warlock cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Warlock 1st-level spell\",\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the wizard's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a wizard, I can also cast the 1st-level spell by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard cantrip\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Wizard 1st-level spell\",\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"martial adept\"] = {\r\n\tname : \"Martial Adept\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have martial training that allows you to perform special combat maneuvers. You gain the following benefits:\\n \\u2022 You learn two maneuvers of your choice from among those available to the Battle Master archetype in the fighter class. If a maneuver you use requires your target to make a saving throw to resist the maneuver's effects, the saving throw DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice).\\n \\u2022 You gain one superiority die, which is a d6 (this die is added to any superiority dice you have from another source). This die is used to fuel your maneuvers. A superiority die is expended when you use it. You regain your expended superiority dice when you finish a short or long rest.\",\r\n\tdescription : \"\",\r\n\tcalculate : \"event.value = 'I learn two maneuvers of my choice from those available to the Battle Master (2nd page \\\"Choose Feature\\\" button). The saving throw DC for this is ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Dex Mod')))) + ' (8 + proficiency bonus + Str/Dex mod). I gain one superiority die (d6), which I regain when I finish a short rest.';\",\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"fighter\",\r\n\t\t\"subclass\" : \"fighter-battle master\",\r\n\t\t\"feature\" : \"subclassfeature3.1\",\r\n\t\t\"bonus\" : 2\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Combat Superiority\",\r\n\t\tusages : 1,\r\n\t\tadditional : 'd6',\r\n\t\trecovery : \"short rest\",\r\n\t\taddToExisting : true\r\n\t}]\r\n};\r\nFeatsList[\"medium armor master\"] = {\r\n\tname : \"Medium Armor Master\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have practiced moving in medium armor to gain the following benefits:\\n \\u2022 Wearing medium armor doesn't impose disadvantage on your Dexterity (Stealth) checks.\\n \\u2022 When you wear medium armor, you can add 3, rather than 2, to your AC if you have a Dexterity of 16 or higher.\",\r\n\tdescription : \"Wearing medium armor doesn't impose disadvantage on my Dexterity (Stealth) checks. When I wear medium armor, I can add up to 3, rather than 2, to my AC if my Dexterity is 16 or higher.\",\r\n\tprerequisite : \"Proficiency with medium armor\",\r\n\tprereqeval : function(v) { return v.mediumArmorProf; },\r\n\teval : function () {\r\n\t\tValue('Medium Armor Max Mod', 3);\r\n\t\tApplyArmor(What(\"AC Armor Description\"));\r\n\t},\r\n\tremoveeval : function () {\r\n\t\ttDoc.resetForm(['Medium Armor Max Mod']);\r\n\t\tApplyArmor(What(\"AC Armor Description\"));\r\n\t}\r\n};\r\nFeatsList[\"mobile\"] = {\r\n\tname : \"Mobile\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You are exceptionally speedy and agile. You gain the following benefits:\\n \\u2022 Your speed increases by 10 feet.\\n \\u2022 When you use the Dash action, difficult terrain doesn't cost you extra movement on that turn.\\n \\u2022 When you make a melee attack against a creature, you don't provoke opportunity attacks from that creature for the rest of the turn, whether you hit or not.\",\r\n\tdescription : \"When I use the Dash action, difficult terrain doesn't cost me extra movement that turn. When I make a melee attack against a creature, I don't provoke opportunity attacks from that creature for the rest of the turn, whether I hit or not. [+10 ft speed]\",\r\n\tspeed : { allModes : { bonus : \"+10\" } }\r\n};\r\nFeatsList[\"moderately armored\"] = {\r\n\tname : \"Moderately Armored\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have trained to master the use of medium armor and shields, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with medium armor and shields.\",\r\n\tdescription : \"I gain proficiency with medium armor and shields. [+1 Strength or Dexterity]\",\r\n\tprerequisite : \"Proficiency with light armor\",\r\n\tprereqeval : function(v) { return v.lightArmorProf; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tarmorProfs : [false, true, false, true]\r\n};\r\nFeatsList[\"mounted combatant\"] = {\r\n\tname : \"Mounted Combatant\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You are a dangerous foe to face while mounted. While you are mounted and aren't incapacitated, you gain the following benefits:\\n \\u2022 You have advantage on melee attack rolls against any unmounted creature that is smaller than your mount.\\n \\u2022 You can force an attack targeted at your mount to target you instead.\\n \\u2022 If your mount is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\",\r\n\tdescription : \"I have advantage on melee attack rolls against unmounted creatures smaller than my mount. I can force attacks targeting my mount to target me instead. When a Dex save would halve damage, my mount takes no damage on success and half damage on failure.\"\r\n};\r\nFeatsList[\"observant\"] = {\r\n\tname : \"Observant\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Quick to notice details of your environment, you gain the following benefits:\\n \\u2022 Increase your Intelligence or Wisdom score by 1, to a maximum of 20.\\n \\u2022 If you can see a creature's mouth while it is speaking a language you understand, you can interpret what it's saying by reading its lips.\\n \\u2022 You have a +5 bonus to your passive Wisdom (Perception) and passive Intelligence (Investigation) scores.\",\r\n\tdescription : \"If I can see a creature's mouth while it is speaking a language I understand, I can interpret what it's saying by reading its lips. I have a +5 bonus to passive Wisdom (Perception) and passive Intelligence (Investigation) scores. [+1 Intelligence or Wisdom]\",\r\n\tscorestxt : \"+1 Intelligence or Wisdom\",\r\n\taddMod : { type : \"skill\", field : \"passive perception\", mod : 5, text : \"I have a +5 bonus to passive Wisdom (Perception).\" }\r\n};\r\nFeatsList[\"polearm master\"] = {\r\n\tname : \"Polearm Master\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You can keep your enemies at bay with reach weapons. You gain the following benefits:\\n \\u2022 When you take the Attack action and attack with only a glaive, halberd, quarterstaff, or spear, you can use a bonus action to make a melee attack with the opposite end of the weapon; this attack uses the same ability modifier as the primary attack. The weapon's damage die for this attack is a d4, and the attack deals bludgeoning damage.\\n \\u2022 While you are wielding a glaive, halberd, pike, quarterstaff, or spear, other creatures provoke an opportunity attack from you when they enter your reach.\",\r\n\tdescription : \"As a bonus action when I do the Attack action with a glaive/\" + (typePF ? \" \" : \"\") + \"halberd/quarterstaff/spear, I can make a 1d4 bludgeoning attack with its butt end.\" + (typePF ? \"\\n\" : \" \") + \"While wielding a glaive/halberd/\" + (typePF ? \"\" : \" \") + \"pike/quarterstaff/spear, I get an opportunity attack when a creature enters my reach.\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*(polearm|(glaive|guandao|bisento|naginata)|(halberd|\\bji\\b|kamayari)|(quarterstaff|\\bstaff\\b|\\bbo\\b)|(spear|qiang|\\byaris?\\b)))(?=.*butt)(?=.*end).*$/i,\r\n\t\tname : \"Polearm Butt End\",\r\n\t\tsource : [[\"P\", 168]],\r\n\t\tability : 1,\r\n\t\ttype : \"polearm butt end\",\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"As bonus action after Attack action with only a glaive, halberd, spear, or quarterstaff\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : ['bonus action', 'Butt End Attack (after attack with polearm)'],\r\n\tweaponProfs : [false, false, [\"polearm butt end\"]]\r\n};\r\nFeatsList[\"resilient\"] = {\r\n\tname : \"Resilient\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Choose one ability score. You gain the following benefits:\\n \\u2022 Increase the chosen ability score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in saving throws using the chosen ability.\",\r\n\tdescription : \"Select an ability score using the square button on this feat line. I gain proficiency with the saving throw of that ability score and a +1 added to it.\",\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"strength\" : {\r\n\t\tdescription : \"I gain proficiency with Strength saving throws. [+1 Strength]\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tsaves : [\"Str\"]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tdescription : \"I gain proficiency with Dexterity saving throws. [+1 Dexterity]\",\r\n\t\tscores : [0, 1, 0, 0, 0, 0],\r\n\t\tsaves : [\"Dex\"]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tdescription : \"I gain proficiency with Constitution saving throws. [+1 Constitution]\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tsaves : [\"Con\"]\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I gain proficiency with Intelligence saving throws. [+1 Intelligence]\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0],\r\n\t\tsaves : [\"Int\"]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I gain proficiency with Wisdom saving throws. [+1 Wisdom]\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tsaves : [\"Wis\"]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I gain proficiency with Charisma saving throws. [+1 Charisma]\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1],\r\n\t\tsaves : [\"Cha\"]\r\n\t}\r\n};\r\nFeatsList[\"ritual caster\"] = {\r\n\tname : \"Ritual Caster\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"You have learned a number of spells that you can cast as rituals. These spells are written in a ritual book, which you must have in hand while casting one of them.\\n   When you choose this feat, you acquire a ritual book holding two 1st-level spells of your choice. Choose one of the following classes: bard, cleric, druid, sorcerer, warlock, or wizard. You must choose your spells from that class's spell list, and the spells you choose must have the ritual tag. The class you choose also determines your spellcasting ability for these spells: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid; or Intelligence for wizard.\\n   If you come across a spell in written form, such as a magical spell scroll or a wizard's spellbook, you might be able to add it to your ritual book. The spell must be on the spell list for the class you chose, the spell's level can be no higher than half your level (rounded up), and it must have the ritual tag. The process of copying the spell into your ritual book takes 2 hours per level of the spell, and costs 50 gp per level. The cost represents material components you expend as you experiment with the spell to master it, as well as the fine inks you need to record it.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I gain a book with two 1st-level ritual spells from that class' spell list. I can transcribe more ritual spells into this book and cast them as rituals only.\",\r\n\tprerequisite : \"Intelligence or Wisdom 13 or higher\",\r\n\tprereqeval : function(v) { return What('Int') >= 13 || What('Wis') >= 13; },\r\n\tcommoneval : function(chc, spellAbility) {\r\n\t\tif (!chc) return;\r\n\t\tCurrentSpells['ritual caster ' + chc] = {\r\n\t\t\tname : 'Ritual Book [' + chc.capitalize() + ']',\r\n\t\t\tability : spellAbility,\r\n\t\t\tlist : {\"class\" : chc, ritual : true},\r\n\t\t\tknown : {spells : 'book'},\r\n\t\t\trefType : \"feat\"\r\n\t\t};\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tcommonremoveeval : function(chc) {\r\n\t\tif (!chc) return;\r\n\t\tdelete CurrentSpells['ritual caster ' + chc];\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (!spellObj.ritualCasterFeatChange && spName.indexOf(\"ritual caster \") !== -1) {\r\n\t\t\t\t\tspellObj.ritualCasterFeatChange = true;\r\n\t\t\t\t\tspellObj.firstCol = SpellRitualTag;\r\n\t\t\t\t\tif (!(/.*(\\d+ ?h\\b|special|see b).*/i).test(spellObj.time)) {\r\n\t\t\t\t\t\tvar numMinutes = Number(spellObj.time.replace(/(\\d+) ?min.*/, \"$1\"));\r\n\t\t\t\t\t\tif (isNaN(numMinutes)) numMinutes = 0;\r\n\t\t\t\t\t\tspellObj.time = (numMinutes + 10) + \" min\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"By the Ritual Caster feat, I can cast ritual spells from my Ritual Book. Casting a spell as a ritual means adding 10 minutes to its casting time.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual bard spells.\\nI can copy ritual bard spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual cleric spells.\\nI can copy ritual cleric spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Wisdom is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 5); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual druid spells.\\nI can copy ritual druid spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Wisdom is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 5); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual sorcerer spells.\\nI can copy ritual sorcerer spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual warlock spells.\\nI can copy ritual warlock spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual wizard spells.\\nI can copy ritual wizard spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Intelligence is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 4); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t}\r\n};\r\nFeatsList[\"savage attacker\"] = {\r\n\tname : \"Savage Attacker\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"Once per turn when you roll damage for a melee weapon attack, you can reroll the weapon's damage dice and use either total.\",\r\n\tdescription : \"Once per turn, when I roll damage for a melee weapon attack, I can reroll the weapon's damage dice and use either total.\"\r\n};\r\nFeatsList[\"sentinel\"] = {\r\n\tname : \"Sentinel\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"You have mastered techniques to take advantage of every drop in any enemy's guard, gaining the following benefits:\\n \\u2022 When you hit a creature with an opportunity attack, the creature's speed becomes 0 for the rest of the turn.\\n \\u2022 Creatures provoke opportunity attacks from you even if they take the Disengage action before leaving your reach.\\n \\u2022 When a creature within 5 feet of you makes an attack against a target other than you (and that target doesn't have this feat), you can use your reaction to make a melee weapon attack against the attacking creature.\",\r\n\tdescription : \"Creatures I hit with opportunity attacks have 0 speed for this turn. The Disengage action doesn't work on me. When a creature within 5 ft makes an attack against a target other than me, I can use my reaction to make a melee weapon attack against the attacker.\",\r\n\taction : [[\"reaction\", \" (after attack on ally)\"]]\r\n};\r\nFeatsList[\"sharpshooter\"] = {\r\n\tname : \"Sharpshooter\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have mastered ranged weapons and can make shots that others find impossible. You gain the following benefits:\\n \\u2022 Attacking at long range doesn't impose disadvantage on your ranged weapon attack rolls.\\n \\u2022 Your ranged weapon attacks ignore half cover and three-quarters cover.\\n \\u2022 Before you make an attack with a ranged weapon that you are proficient with, you can choose to take a -5 penalty to the attack roll. If the attack hits, you add +10 to the attack's damage.\",\r\n\tdescription : \"My ranged weapon attacks don't have disadvantage on long range and ignore half cover and three-quarters cover. With a ranged weapon that I am proficient with, I can choose to take a -5 penalty on the attack roll for +10 on the attack's damage.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isRangedWeapon || v.isThrownWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"No disadv. at long range; Ignore \\u00BD and \\u00BE cover\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My ranged weapon attacks suffer no disadvantage for long range and ignore half cover and three-quarters cover. This includes thrown weapons.\\n \\u2022 If I include the words 'Power Attack', 'Sharpshooter', or 'Sharpshot' in the name or description of a ranged weapon that I'm proficient with, the calculation will put a -5 penalty on the attack's To Hit and a +10 bonus to its Damage. This does not work with thrown weapons.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isRangedWeapon && fields.Proficiency && /power.{0,3}attack|sharp.{0,3}shoo?t/i.test(v.WeaponText)) {\r\n\t\t\t\t\toutput.extraDmg += 10;\r\n\t\t\t\t\toutput.extraHit -= 5;\r\n\t\t\t\t};\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"shield master\"] = {\r\n\tname : \"Shield Master\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You use shields not just for protection but also for offense. You gain the following benefits while you are wielding a shield:\\n \\u2022 If you take the Attack action on your turn, you can use a bonus action to try to shove a creature within 5 feet of you with your shield.\\n \\u2022 If you aren't incapacitated, you can add your shield's AC bonus to any Dexterity saving throw you make against a spell or other harmful effect that targets only you.\\n \\u2022 If you are subjected to an effect that allows you to make a Dexterity saving throw to take only half damage, you can use your reaction to take no damage if you succeed on the saving throw, interposing your shield between yourself and the source of the effect.\",\r\n\tdescription : \"As a bonus action, when I use the Attack action, I can shove someone within 5 ft with my shield. I add my shield's AC bonus to Dex saves vs. effects targeting only me. As a reaction, if I succeed on a Dex save for half damage, I can interpose my shield to avoid the damage.\",\r\n\taction : [['bonus action', 'Shove with shield (with Attack action)'], ['reaction', 'Interpose shield (if Dex save half dmg)']]\r\n};\r\nFeatsList[\"skilled\"] = {\r\n\tname : \"Skilled\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You gain proficiency in any combination of three skills or tools of your choice.\",\r\n\tdescription : \"I gain proficiency with any combination of three skills or tools of my choice.\",\r\n\tskillstxt : \"Choose three skills or tools\"\r\n};\r\nFeatsList[\"skulker\"] = {\r\n\tname : \"Skulker\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You are expert at slinking through shadows. You gain the following benefits:\\n \\u2022 You can try to hide when you are lightly obscured from the creature from which you are hiding.\\n \\u2022 When you are hidden from a creature and miss it with a ranged weapon attack, making the attack doesn't reveal your position.\\n \\u2022 Dim light doesn't impose disadvantage on your Wisdom (Perception) checks relying on sight.\",\r\n\tdescription : \"I can try to hide when I am lightly obscured. My position is not revealed when I am hidden from a creature and miss it with a ranged weapon attack. Dim light doesn't impose disadvantage on my Wisdom (Perception) checks relying on sight.\",\r\n\tprerequisite : \"Dexterity 13 or higher\",\r\n\tprereqeval : function(v) { return What('Dex') >= 13; },\r\n\tvision : [[\"No disadv. on Perception in dim light\", 0]]\r\n};\r\nFeatsList[\"spell sniper\"] = {\r\n\tname : \"Spell Sniper\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have learned techniques to enhance your attacks with certain kinds of spells, gaining the following benefits:\\n \\u2022 When you cast a spell that requires you to make an attack roll, the spell's range is doubled.\\n \\u2022 Your ranged spell attacks ignore half cover and three-quarters cover.\\n \\u2022 You learn one cantrip that requires an attack roll. Choose the cantrip from the bard, cleric, druid, sorcerer, warlock, or wizard spell list. Your spellcasting ability for this cantrip depends on the spell list you chose from: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid; or Intelligence for wizard.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I learn one cantrip requiring an attack roll from the spell list of the chosen class. Any spell I cast requiring an attack roll has its range doubled and ignores half and 3/4 cover.\",\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.spellSniper && !v.isDC && v.isSpell && (/\\d+ ?(f.{0,2}t|m)/i).test(fields.Range)) {\r\n\t\t\t\t\tv.spellSniper = true;\r\n\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\tvar notNmbrs = fields.Range.split(RegExp(rangeNmbr.join('|')));\r\n\t\t\t\t\tfields.Range = '';\r\n\t\t\t\t\trangeNmbr.forEach(function (dR, idx) {\r\n\t\t\t\t\t\tfields.Range += (notNmbrs[idx] ? notNmbrs[idx] : '') + (parseFloat(dR.toString().replace(',', '.') * 2));\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (notNmbrs.length > rangeNmbr.length) {\r\n\t\t\t\t\t\tfields.Range += notNmbrs[notNmbrs.length - 1];\r\n\t\t\t\t\t};\r\n\t\t\t\t\tif (!v.rangeM) {\r\n\t\t\t\t\t\tv.rangeM = 2;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tv.rangeM *= 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My spells and cantrips that require an attack roll have their range doubled.\",\r\n\t\t\t700\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ( !spellObj.spellSniper && !spellObj.psionic && (/spell attack/i).test(spellObj.description + spellObj.descriptionFull) && (/^(?!.*(S:|rad|touch|self|cone|cube)).*\\d+([.,]\\d+)?[\\- ]?(f.{0,2}t|m).*$/i).test(spellObj.range) ) {\r\n\t\t\t\t\tspellObj.spellSniper = true;\r\n\t\t\t\t\tvar rangeNmbr = spellObj.range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\tvar notNmbrs = spellObj.range.split(RegExp(rangeNmbr.join('|')));\r\n\t\t\t\t\tspellObj.range = '';\r\n\t\t\t\t\trangeNmbr.forEach(function (dR, idx) {\r\n\t\t\t\t\t\tspellObj.range += (notNmbrs[idx] ? notNmbrs[idx] : '') + (parseFloat(dR.toString().replace(',', '.') * 2));\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (notNmbrs.length > rangeNmbr.length) {\r\n\t\t\t\t\t\tspellObj.range += notNmbrs[notNmbrs.length - 1];\r\n\t\t\t\t\t};\r\n\t\t\t\t\tif (!spellObj.rangeM) {\r\n\t\t\t\t\t\tspellObj.rangeM = 2;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.rangeM *= 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My spells and cantrips that require an attack roll have their range doubled.\",\r\n\t\t\t700\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one bard cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one cleric cantrip that requires an attack roll. Wisdom is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one druid cantrip that requires an attack roll. Wisdom is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one sorcerer cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one warlock cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one wizard cantrip that requires an attack roll. Intelligence is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"tavern brawler\"] = {\r\n\tname : \"Tavern Brawler\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"Accustomed to rough-and-tumble fighting using whatever weapons happen to be at hand, you gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 You are proficient with improvised weapons.\\n \\u2022 Your unarmed strike uses a d4 for damage.\\n \\u2022 When you hit a creature with an unarmed strike or an improvised weapon on your turn, you can use a bonus action to attempt to grapple the target.\",\r\n\tdescription : \"I am proficient with improvised weapons. My unarmed strike does 1d4 damage. When I hit a creature with an unarmed strike or improvised weapon on my turn, I can attempt to grapple the target as a bonus action. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : ['bonus action', 'Grapple (on hit with unarmed/improv.)'],\r\n\tweaponProfs : [false, false, [\"Improvised weapons\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" || v.baseWeaponName == \"improvised weapon\" || /improvised/i.test(v.WeaponName + v.baseWeaponName) || /improvised weapon/i.test(v.theWea.type)) {\r\n\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\tif (v.isMeleeWeapon) fields.Description += (fields.Description ? '; ' : '') + 'After hit, can attempt to grapple as a bonus action';\r\n\t\t\t\t};\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && fields.Damage_Die == 1) {\r\n\t\t\t\t\tfields.Damage_Die = '1d4';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d4 damage instead of 1.\\n \\u2022 After hitting a creature with an unarmed strike or improvised weapon in melee, I can attempt to start a grapple as a bonus action.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"tough\"] = {\r\n\tname : \"Tough\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"Your hit point maximum increases by an amount equal to twice your level when you gain this feat. Whenever you gain a level thereafter, your hit point maximum increases by an additional 2 hit points.\",\r\n\tdescription : \"My hit point maximum increases by an amount equal to twice my character level.\",\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) {\r\n\t\t\treturn [totalHD * 2, '\\n + ' + totalHD + ' \\xD7 2 from the Tough feat (' + (totalHD * 2) + ')', true];\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"war caster\"] = {\r\n\tname : \"War Caster\",\r\n\tsource : [[\"P\", 170]],\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescriptionFull : \"You have practiced casting spells in the midst of combat, learning techniques that grant you the following benefits:\\n \\u2022 You have advantage on Constitution saving throws that you make to maintain your concentration on a spell when you take damage.\\n \\u2022 You can perform the somatic components of spells even when you have weapons or a shield in one or both hands.\\n \\u2022 When a hostile creature's movement provokes an opportunity attack from you, you can use your reaction to cast a spell at the creature, rather than making an opportunity attack. The spell must have a casting time of 1 action and must target only that creature.\",\r\n\tdescription : \"Advantage on Con saves to maintain concentration on spells when damaged. Perform somatic components even when holding weapons or shield in one or both hands. Cast spell of 1 action casting time that targets only one creature instead of an opportunity attack.\",\r\n\taction : [[\"reaction\", \" - Opportunity Spell\"]],\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves when damaged\" }\r\n};\r\nFeatsList[\"weapon master\"] = {\r\n\tname : \"Weapon Master\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have practiced extensively with a variety of weapons, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with four simple or martial weapons of your choice.\",\r\n\tdescription : \"I gain proficiency with four simple or martial weapons of my choice.\\n[+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\n\r\n// Add attack entry that is not in the SRD\r\nWeaponsList[\"thorn whip\"] = {\r\n\tregExpSearch : /^(?=.*thorn)(?=.*whip).*$/i,\r\n\tname : \"Thorn Whip\",\r\n\tsource : [[\"P\", 282]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"piercing\"],\r\n\trange : \"Melee, 30 ft\",\r\n\tdescription : \"Melee spell attack, pull target up to 10 ft closer\",\r\n\tabilitytodamage : false\r\n};\r\n\r\n// Add spells that are not in the SRD\r\nSpellsList[\"arcane gate\"] = {\r\n\tname : \"Arcane Gate\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 214]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"500 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Two portals, up to 500 ft apart, teleport any to other side; portals are filled with opaque mist\",\r\n\tdescriptionFull : \"You create linked teleportation portals that remain open for the duration. Choose two points on the ground that you can see, one point within 10 feet of you and one point within 500 feet of you. A circular portal, 10 feet in diameter, opens over each point. If the portal would open in the space occupied by a creature, the spell fails, and the casting is lost.\" + \"\\n   \" + \"The portals are two-dimensional glowing rings filled with mist, hovering inches from the ground and perpendicular to it at the points you choose. A ring is visible only from one side (your choice), which is the side that functions as a portal.\" + \"\\n   \" + \"Any creature or object entering the portal exits from the other portal as if the two were adjacent to each other, passing through a portal from the non-portal side has no effect. The mist that fills each portal is opaque and blocks vision through it. On your turn, you can rotate the rings as a bonus action so that the active side faces in a different direction.\"\r\n};\r\nSpellsList[\"armor of agathys\"] = {\r\n\tname : \"Armor of Agathys\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 215]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A cup of water\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"5+5/SL temp HP; as long as temp HP last any crea that hits in melee takes 5+5/SL Cold dmg\",\r\n\tdescriptionFull : \"A protective magical force surrounds you, manifesting as a spectral frost that covers you and your gear. You gain 5 temporary hit points for the duration. If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, both the temporary hit points and the cold damage increase by 5 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"arms of hadar\"] = {\r\n\tname : \"Arms of Hadar\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 215]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"2d6+1d6/SL Necrotic dmg; save halves; on failed save no reactions until next turn\",\r\n\tdescriptionFull : \"You invoke the power of Hadar, the Dark Hunger. Tendrils of dark energy erupt from you and batter all creatures within 10 feet of you. Each creature in that area must make a Strength saving throw. On a failed save, a target takes 2d6 necrotic damage and can't take reactions until its next turn. On a successful save, the creature takes half damage, but suffers no other effect.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"aura of life\"] = {\r\n\tname : \"Aura of Life\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 4,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Me + any crea while in area Necrotic dmg resist.; at turn start, 0 HP living in area heal 1 HP\",\r\n\tdescriptionFull : \"Life-preserving energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. Each non-hostile creature in the aura (including you) has resistance to necrotic damage, and its hit point maximum can't be reduced. In addition, a non-hostile, living creature regains 1 hit point when it starts its turn in the aura with 0 hit points.\"\r\n};\r\nSpellsList[\"aura of purity\"] = {\r\n\tname : \"Aura of Purity\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 4,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Me + any crea while in area Poison dmg resist., immune to disease, adv. on saves vs. conditions\",\r\n\tdescriptionFull : \"Purifying energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. Each non-hostile creature in the aura (including you) can't become diseased, has resistance to poison damage, and has advantage on saving throws against effects that cause any of the following conditions - blinded, charmed, deafened, frightened, paralyzed, poisoned, and stunned.\"\r\n};\r\nSpellsList[\"aura of vitality\"] = {\r\n\tname : \"Aura of Vitality\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"As a bonus action for the duration, I can heal 2d6 HP to 1 creature in range (can be me)\",\r\n\tdescriptionFull : \"Healing energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. You can use a bonus action to cause one creature in the aura (including you) to regain 2d6 hit points.\"\r\n};\r\nSpellsList[\"banishing smite\"] = {\r\n\tname : \"Banishing Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Next weapon hit +5d10 Force dmg; if this brings target HP<50, I banish it until spell ends\",\r\n\tdescriptionFull : \"The next time you hit a creature with a weapon attack before this spell ends, your weapon crackles with force, and the attack deals an extra 5d10 force damage to the target. Additionally, if this attack reduces the target to 50 hit points of fewer, you banish it. If the target is native to a different plane of existence than the one you're on, the target disappears, returning to its home plane. If the target is native to the plane you're on, the creature vanishes into a harmless demiplane. While there, the target is incapacitated. It remains there until the spell ends, at which point the tart reappears in the space it left or in the nearest unoccupied space if that space is occupied.\"\r\n};\r\nSpellsList[\"beast sense\"] = {\r\n\tname : \"Beast Sense\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"P\", 217]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Use 1 willing beast's senses; I'm blinded and deafened while doing so\",\r\n\tdescriptionFull : \"You touch a willing beast. For the duration of the spell, you can use your action to see through the beast's eyes and hear what it hears, and continue to do so until you use your action to return to your normal senses. While perceiving through the beast's senses, you gain the benefits of any special senses possessed by that creature, though you are blinded and deafened to your own surroundings.\"\r\n};\r\nSpellsList[\"blade ward\"] = {\r\n\tname : \"Blade Ward\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 218]],\r\n\tlevel : 0,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"Until the end of my next turn, Bludgeoning, Piercing, and Slashing dmg resist. vs. weapons\",\r\n\tdescriptionFull : \"You extend your hand and trace a sigil of warding in the air. Until the end of your next turn, you have resistance against bludgeoning, piercing, and slashing damage dealt by weapon attacks.\"\r\n};\r\nSpellsList[\"blinding smite\"] = {\r\n\tname : \"Blinding Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 219]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Next melee weapon hit +3d8 Radiant dmg; save or blinded; extra save at end of every turn\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during this spell's duration, you weapon flares with a bright light, and the attack deals an extra 3d8 radiant damage to the target. Additionally, the target must succeed on a Constitution saving throw or be blinded until the spell ends.\" + \"\\n   \" + \"A creature blinded by this spell makes another Constitution saving throw at the end of each of its turns. On a successful save, it is no longer blinded.\"\r\n};\r\nSpellsList[\"chromatic orb\"] = {\r\n\tname : \"Chromatic Orb\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 221]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A diamond worth at least 50 gp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell attack for 3d8+1d8/SL Acid, Cold, Fire, Lightning, Poison or Thunder dmg (50gp)\",\r\n\tdescriptionFull : \"You hurl a 4-inch-diameter sphere of energy at a creature that you can see within range. You choose acid, cold, fire, lightning, poison, or thunder for the type of orb you create, and then make a ranged spell attack against the target. If the attack hits, the creature takes 3d8 damage of the type you chose.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"poison\", \"thunder\"],\r\n\t\t\tinDescriptionAs :\"Acid, Cold, Fire, Lightning, Poison or Thunder\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"circle of power\"] = {\r\n\tname : \"Circle of Power\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 221]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Any crea while in area adv. on saves vs. magical effects; if save would half dmg it takes no dmg\",\r\n\tdescriptionFull : \"Divine energy radiates from you, distorting and diffusing magical energy within 30 feet of you. Until the spell ends, the sphere moves with you, centered on you. For the duration, each friendly creature in the area (including you) has advantage on saving throws against spells and other magical effects. Additionally, when an affected creature succeeds on a saving throw made against a spell or magical effect that allows it to make a saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw.\"\r\n};\r\nSpellsList[\"cloud of daggers\"] = {\r\n\tname : \"Cloud of Daggers\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 222]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A sliver of glass\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"5-ft cube 4d4+2d4/SL Slashing dmg to all that enter or start turn in area\",\r\n\tdescriptionFull : \"You fill the air with spinning daggers in a cube 5 feet on each side, centered on a point you choose within range. A creature takes 4d4 slashing damage when it enters the spell's area for the first time on a turn or starts its turn there.\" + AtHigherLevels + \"when you cast this spell using a spell slot of 3rd level or higher, the damage increases by 2d4 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"compelled duel\"] = {\r\n\tname : \"Compelled Duel\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 224]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or dis. on attacks vs. not-me and save if moving more than 30 ft away\",\r\n\tdescriptionFull : \"You attempt to compel a creature into a duel. One creature that you can see within range must make a Wisdom saving throw. On a failed save, the creature is drawn to you, compelled by your divine demand. For the duration, it has disadvantage on attack rolls against creatures other than you, and must make a Wisdom saving throw each time it attempts to move to a space that is more than 30 feet away from you, if it succeeds on this saving throw, this spell doesn't restrict the target's movement for that turn.\" + \"\\n   \" + \"The spell ends if you attack any other creature, if you cast a spell that targets a hostile creature other than the target, if a creature friendly to you damages the target or casts a harmful spell on it, or if you end your turn more than 30 feet away from the target.\"\r\n};\r\nSpellsList[\"conjure barrage\"] = {\r\n\tname : \"Conjure Barrage\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 225]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:60\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"One piece of ammunition or a thrown weapon\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Throw weapon or ammo; copies rain down for 3d8 dmg; dmg type as weapon; save halves\",\r\n\tdescriptionFull : \"You throw a nonmagical weapon or fire a piece of nonmagical ammunition into the air to create a cone of identical weapons that shoot forward and then disappear. Each creature in a 60-foot cone must succeed on a Dexterity saving throw. A creature takes 3d8 damage on a failed save, or half as much damage on a successful one. The damage type is the same as that of the weapon or ammunition used as a component.\"\r\n};\r\nSpellsList[\"conjure volley\"] = {\r\n\tname : \"Conjure Volley\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 226]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"One piece of ammunition or one thrown weapon\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Turn ammo/thrown wea into volley; 40-ft rad 20-ft high 8d8 dmg; dmg type as weapon; save halves\",\r\n\tdescriptionFull : \"You fire a piece of nonmagical ammunition from a ranged weapon or throw a nonmagical weapon into the air and choose a point within range. Hundreds of duplicates of the ammunition or weapon fall in a volley from above and then disappear. Each creature in a 40-foot-radius. 20-foot-high cylinder centered on that point must make a Dexterity saving throw. A creature takes 8d8 damage on a failed save, or half as much damage on a successful one. The damage type is the same as that of the ammunition or weapon.\"\r\n};\r\nSpellsList[\"cordon of arrows\"] = {\r\n\tname : \"Cordon of Arrows\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 228]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Four or more arrows or bolts\",\r\n\tduration : \"8 h\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"4+2/SL arrows/bolts attack first crea in 30 ft one at a time for 1d6 Piercing dmg; save halves\",\r\n\tdescriptionFull : \"You plant four pieces of nonmagical ammunition - arrows or crossbow bolts - in the ground within range and lay magic upon them to protect an area. Until the spell ends, whenever a creature other than you comes within 30 feet of the ammunition for the first time on a turn or ends its turn there, one piece of ammunition flies up to strike it. The creature must succeed on a Dexterity saving throw or take 1d6 piercing damage. The piece of ammunition is then destroyed. The spell ends when no ammunition remains.\" + \"\\n   \" + \"When you cast this spell, you can designate any creatures you choose, and the spell ignores them.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the amount of ammunition that can be affected increases by two for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"crown of madness\"] = {\r\n\tname : \"Crown of Madness\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 229]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 humanoid save or charmed and must melee attack against crea chosen by me; extra save/rnd\",\r\n\tdescriptionFull : \"One humanoid of your choice that you can see within range must succeed on a Wisdom saving throw or become charmed by you for the duration. While the target is charmed in this way, a twisted crown of jagged iron appears on its head, and a madness glows in its eyes.\" + \"\\n   \" + \"The charmed target must use its action before moving on each of its turns to make a melee attack against a creature other than itself that you mentally choose. The target can act normally on its turn if you choose no creature or if none are within its reach.\" + \"\\n   \" + \"On your subsequent turns, you must use your action to maintain control over the target, or the spell ends. Also, the target can make a Wisdom saving throw at the end of each of its turns. On a success, the spell ends.\"\r\n};\r\nSpellsList[\"crusader's mantle\"] = {\r\n\tname : \"Crusader's Mantle\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 230]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me and allies in range deal extra 1d4 Radiant dmg with weapon attacks\",\r\n\tdescriptionFull : \"Holy power radiates from you in an aura with a 30-foot radius, awakening boldness in friendly creatures. Until the spell ends, the aura moves with you, centered on you. While in the aura, each non-hostile creature in the aura (including you) deals an extra 1d4 radiant damage when it hits with a weapon attack.\"\r\n};\r\nSpellsList[\"destructive wave\"] = {\r\n\tname : \"Destructive Wave\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 231]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any crea 5d6 Thunder dmg \\u0026 5d6 Radiant or Necrotic dmg \\u0026 knocked prone; save halves, not prone\",\r\n\tdescriptionShorter : \"Any crea 5d6 Thunder dmg \\u0026 5d6 Radiant or Necrotic dmg \\u0026 prone; save half, not prone\",\r\n\tdescriptionFull : \"You strike the ground, creating a burst of divine energy that ripples outward from you. Each creature you choose within 30 feet of you must succeed on a Constitution saving throw or take 5d6 thunder damage, as well as 5d6 radiant or necrotic damage (your choice), and be knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\r\n\tdynamicDamageBonus : {\r\n\t\tallDmgTypesSingleMoment : true,\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"radiant\", \"necrotic\"],\r\n\t\t\tinDescriptionAs : \"Radiant or Necrotic\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"dissonant whispers\"] = {\r\n\tname : \"Dissonant Whispers\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"P\", 234]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea 3d6+1d6/SL Psychic dmg and flee; save halves and no fleeing; deaf crea are immune\",\r\n\tdescriptionFull : \"You whisper a discordant melody that only one creature of your choice within range can hear, wracking it with terrible pain. The target must make a Wisdom saving throw. On a failed save, it takes 3d6 psychic damage and must immediately use its reaction, if available, to move as far as its speed allows away from you. The creature doesn't move into obviously dangerous ground, such as a fire or a pit. On a successful save, the target takes half as much damage and doesn't have to move away. A deafened creature automatically succeeds on the save.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"elemental weapon\"] = {\r\n\tname : \"Elemental Weapon\",\r\n\tclasses : [\"artificer\", \"paladin\"],\r\n\tsource : [[\"P\", 237]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"+1 magical weapon; +1d4 Acid, Cold, Fire, Lightning, or Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\r\n\tdescriptionShorter : \"+1 wea; +1d4 Acid/Cold/Fire/Lightning/Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\r\n\tdescriptionFull : \"A nonmagical weapon you touch becomes a magic weapon. Choose one of the following damage types - acid, cold, fire, lightning, or thunder. For the duration, the weapon has a +1 bonus to attack rolls and deals an extra 1d4 damage of the chosen type when it hits.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th or 6th level, the bonus to attack rolls increases to +2 and the extra damage increases to 2d4. When you use a spell slot of 7th level or higher, the bonus increases to +3 and the extra damage increases to 3d4.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\t\tinDescriptionAs : \"Acid, Cold, Fire, Lightning, or Thunder|Acid/Cold/Fire/Lightning/Thunder\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"ensnaring strike\"] = {\r\n\tname : \"Ensnaring Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 237]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Next crea hit save (Large adv.) or restrained, 1d6+1d6/SL Piercing dmg/rnd; Str check to escape\",\r\n\tdescriptionShorter : \"Next crea hit save (Large adv.) or restrained, 1d6+1d6/SL Piercing dmg/rnd; Str chk escape\",\r\n\tdescriptionFull : \"The next time you hit a creature with a weapon attack before this spell ends, a writhing mass of thorny vines appears at the point of impact, and the target must succeed on a Strength saving throw or be restrained by the magical vines until the spell ends. A Large or larger creature has advantage on this saving throw. If the target succeeds on the save, the vines shrivel away.\" + \"\\n   \" + \"While restrained by this spell, the target takes 1d6 piercing damage at the start of each of its turns. A creature restrained by the vines or one that can touch the creature can use its action to make a Strength check against your spell save DC. On a success, the target is freed.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"feign death\"] = {\r\n\tname : \"Feign Death\",\r\n\tclasses : [\"bard\", \"cleric\", \"druid\", \"wizard\"],\r\n\tsource : [[\"P\", 240]],\r\n\tritual : true,\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pinch of graveyard dirt\",\r\n\tduration : \"1 h (D)\",\r\n\tdescription : \"Willing creature appears dead; it is blinded, incapacitated, has dmg resist. all but Psychic, and speed 0\",\r\n\tdescriptionFull : \"You touch a willing creature and put it into a cataleptic state that is indistinguishable from death.\" + \"\\n   \" + \"For the spell's duration, or until you use an action to touch the target and dismiss the spell, the target appears dead to all outward inspection and to spells used to determine the target's status. The target is blinded and incapacitated, and its speed drops to 0. The target has resistance to all damage except psychic damage. If the target is diseased or poisoned when you cast the spell, or becomes diseased or poisoned while under the spell's effect, the disease and poison have no effect until the spell ends.\"\r\n};\r\nSpellsList[\"friends\"] = {\r\n\tname : \"Friends\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 244]],\r\n\tlevel : 0,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A small amount of makeup applied to the face as this spell is cast\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Adv. on Cha checks vs. 1 crea currently not hostile; when spell ends, crea knows and becomes hostile\",\r\n\tdescriptionFull : \"For the duration, you have advantage on all Charisma checks directed at one creature of your choice that isn't hostile toward you. When the spell ends, the creature realizes that you used magic to influence its mood and becomes hostile toward you. A creature prone to violence might attack you. Another creature might seek retribution in other ways (at the DM's discretion), depending on the nature of your interaction with it.\"\r\n};\r\nSpellsList[\"grasping vine\"] = {\r\n\tname : \"Grasping Vine\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"P\", 246]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Conjure vine with 30 ft reach; bns a to direct to 1 crea save or pulled 20 ft to vine\",\r\n\tdescriptionFull : \"You conjure a vine that sprouts from the ground in an unoccupied space of your choice that you can see within range. When you cast this spell, you can direct the vine to lash out at a creature within 30 feet of it that you can see. That creature must succeed on a Dexterity saving throw or be pulled 20 feet directly toward the vine.\" + \"\\n   \" + \"Until the spell ends, you can direct the vine to lash out at the same creature or another one as a bonus action on each of your turns.\"\r\n};\r\nSpellsList[\"hail of thorns\"] = {\r\n\tname : \"Hail of Thorns\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 249]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Next ranged weapon hit, all within 5 ft of target 1d10+1d10/SL Piercing dmg; save halves\",\r\n\tdescriptionFull : \"The next time you hit a creature with a ranged weapon attack before the spell ends, this spell creates a rain of thorns that sprouts from your ranged weapon or ammunition. In addition to the normal effect of the attack, the target of the attack and each creature within 5 feet of it must make a Dexterity saving throw. A creature takes 1d10 piercing damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d10 for each slot level above 1st (to a maximum of 6d10).\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"hex\"] = {\r\n\tname : \"Hex\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 251]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"The petrified eye of a newt\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 crea +1d6 Necrotic dmg from my atks; dis. on chosen ability checks; SL3: conc, 8h; SL5: conc, 24h\",\r\n\tdescriptionShorter : \"1 crea +1d6 Necrotic dmg from my atks; dis. chosen abi chks; SL3: conc, 8h; SL5: conc, 24h\",\r\n\tdescriptionFull : \"You place a curse on a creature that you can see within range. Until the spell ends, you deal an extra 1d6 necrotic damage to the target whenever you hit it with an attack. Also, choose one ability when you cast the spell. The target has disadvantage on ability checks made with the chosen ability.\" + \"\\n   \" + \"If the target drops to 0 hit points before this spell ends, you can use a bonus action on a subsequent turn of yours to curse a new creature.\" + \"\\n   \" + \"A remove curse cast on the target ends this spell early.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd or 4th level, you can maintain your concentration on the spell for up to 8 hours. When you use a spell slot of 5th level or higher, you can maintain your concentration on the spell for up to 24 hours.\"\r\n};\r\nSpellsList[\"hunger of hadar\"] = {\r\n\tname : \"Hunger of Hadar\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 251]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pickled octopus tentacle\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft rad all: blind while in, start turn in 2d6 Cold dmg, end turn in save or 2d6 Acid dmg\",\r\n\tdescriptionFull : \"You open a gateway to the dark between the stars, a region infested with unknown horrors. A 20-foot-radius sphere of blackness and bitter cold appears, centered on a point with range and lasting for the duration. This void is filled with a cacophony of soft whispers and slurping noises that can be heard up to 30 feet away. No light, magical or otherwise, can illuminate the area, and creatures fully within the area are blinded.\" + \"\\n   \" + \"The void creates a warp in the fabric of space, and the area is difficult terrain. Any creature that starts its turn in the area takes 2d6 cold damage. Any creature that ends its turn in the area must succeed on a Dexterity saving throw or take 2d6 acid damage as milky, otherworldly tentacles rub against it.\"\r\n};\r\nSpellsList[\"lightning arrow\"] = {\r\n\tname : \"Lightning Arrow\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 255]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Next rngd wea atk 4d8+1d8/SL Lightn. dmg, miss half; 10 ft all 2d8+1d8/SL Lightn. dmg, save half\",\r\n\tdescriptionShorter : \"Next atk 4d8+1d8/SL Lightn. dmg, miss h\" + (typePF ? \"a\" : \"\") + \"lf; 10 ft all 2d8+1d8/SL Lightn. dmg, save half\",\r\n\tdescriptionFull : \"The next time you make a ranged weapon attack during the spell's duration, the weapon's ammunition, or the weapon itself if it's a thrown weapon, transforms into a bolt of lightning. Make the attack roll as normal. The target takes 4d8 lightning damage on a hit, or half as much damage on a miss, instead of the weapon's normal damage.\" + \"\\n   \" + \"Whether you hit or miss, each creature within 10 feet of the target must make a Dexterity saving throw. Each of these creatures takes 2d8 lightning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"The piece of ammunition or weapon then returns to its normal form.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage for both effects of the spell increases by 1d8 for each slot level above 3rd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\tskipDmgGroupIfNotMultiple : /(atk .*?lightn\\. dmg.*?)/i\r\n\t}\r\n};\r\nSpellsList[\"phantasmal force\"] = {\r\n\tname : \"Phantasmal Force\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 264]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of fleece\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or sees 10 ft cube illusion that does 1d6 Psychic dmg/rnd; Int(Investigation) vs. spell DC\",\r\n\tdescriptionShorter : \"1 crea save or sees 10 ft cube illusion that does 1d6 Psychic dmg/rnd; Investigation vs. DC\",\r\n\tdescriptionFull : \"You craft an illusion that takes root in the mind of a creature that you can see within range. The target must make an Intelligence saving throw. On a failed save, you create a phantasmal object, creature, or other visible phenomenon of your choice that is no larger than a 10-foot cube and that is perceivable only to the target for the duration. This spell has no effect on undead or constructs.\" + \"\\n   \" + \"The phantasm includes sound, temperature, and other stimuli, also evident only to the creature.\" + \"\\n   \" + \"The target can use its action to examine the phantasm with an Intelligence (Investigation) check against your spell save DC. If the check succeeds, the target realizes that the phantasm is an illusion, and the spell ends.\" + \"\\n   \" + \"While a target is affected by the spell, the target treats the phantasm as if it were real. The target rationalizes any illogical outcomes from interacting with the phantasm. For example, a target attempting to walk across a phantasmal bridge that spans a chasm falls once it steps onto the bridge. If the target survives the fall, it still believes that the bridge exists and comes up with some other explanation for its fall - it was pushed, it slipped, or a strong wind might have knocked it off.\" + \"\\n   \" + \"An affected target is so convinced of the phantasm's reality that it can even take damage from the illusion. A phantasm created to appear as a creature can attack the target. Similarly, a phantasm created to appear as fire, a pool of acid, or lava can burn the target. Each round on your turn, the phantasm can deal 1d6 psychic damage to the target if it is in the phantasm's area or within 5 feet of the phantasm, provided that the illusion is of a creature or hazard that could logically deal damage, such as by attacking. The target perceives the damage as a type appropriate to the illusion.\"\r\n};\r\nSpellsList[\"power word heal\"] = {\r\n\tname : \"Power Word Heal\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"P\", 266]],\r\n\tlevel : 9,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea heals all HP and stops being charmed, frightened, paralyzed, stunned; it can use rea to stand up\",\r\n\tdescriptionShorter : \"1 crea heals all HP, not charmed, frightened, paralyzed, stunned; rea to stand up\",\r\n\tdescriptionFull : \"A wave of healing energy washes over the creature you touch. The target regains all its hit points. If the creature is charmed, frightened, paralyzed, or stunned, the condition ends. If the creature is prone, it can use its reaction to stand up. This spell has no effect on undead or constructs.\"\r\n};\r\nSpellsList[\"ray of sickness\"] = {\r\n\tname : \"Ray of Sickness\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 271]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Spell attack for 2d8+1d8/SL Poison dmg; save or also poisoned until end of my next turn\",\r\n\tdescriptionFull : \"A ray of sickening greenish energy lashes out toward a creature within range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 poison damage and must make a Constitution saving throw. On a failed save, it is also poisoned until the end of your next turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"searing smite\"] = {\r\n\tname : \"Searing Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 274]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Next melee weapon hit +1d6+1d6/SL Fire dmg and target ignites: start of turn save to end or 1d6 dmg\",\r\n\tdescriptionShorter : \"Next melee wea hit +1d6+1d6/SL Fire dmg \\u0026 ignites: start of turn save to end or 1d6 dmg\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during the spell's duration, your weapon flares with white-hot intensity, and the attack deals an extra 1d6 fire damage to the target and causes the target to ignite in flames. At the start of each of its turns until the spell ends, the target must make a Constitution saving throw. On a failed save, it takes 1d6 fire damage. On a successful save, the spell ends. If the target or a creature within 5 feet of it uses an action to put out the flames, or if some other effect douses the flames (such as the target being submerged in water), the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the initial extra damage dealt by the attack increases by 1d6 for each slot above the 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\textraDmgGroupsSameType : /(end or )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"staggering smite\"] = {\r\n\tname : \"Staggering Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 278]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Next melee weapon hit +4d6 Psychic dmg and save or dis. on atks/chks, no rea, until end next turn\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during this spell's duration, your weapon pierces both body and mind, and the attack deals an extra 4d6 psychic damage to the target. The target must make a Wisdom saving throw. On a failed save, it has disadvantage on attack rolls and ability checks, and can't take reactions, until the end of its next turn.\"\r\n};\r\nSpellsList[\"swift quiver\"] = {\r\n\tname : \"Swift Quiver\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 279]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A quiver containing at least one piece of ammunition\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Quiver gives nonmagical ammo; bns a to make 2 atks with weapon that uses ammo from that quiver\",\r\n\tdescriptionFull : \"You transmute your quiver so it produces an endless supply of nonmagical ammunition, which seems to leap into your hand when you reach for it.\" + \"\\n   \" + \"On each of your turns until the spell ends, you can use a bonus action to make two attacks with a weapon that uses ammunition from the quiver. Each time you make such a ranged attack, your quiver magically replaces the piece of ammunition you used with a similar piece of nonmagical ammunition. Any pieces of ammunition created by this spell disintegrate when the spell ends. If the quiver leaves your possession, the spell ends.\"\r\n};\r\nSpellsList[\"telepathy\"] = {\r\n\tname : \"Telepathy\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"P\", 281]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Unlimited\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pair of linked silver rings\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"1 willing crea Int>0 and I telepathic link; share words, sensory information if on same plane\",\r\n\tdescriptionFull : \"You create a telepathic link between yourself and a willing creature with which you are familiar. The creature can be anywhere on the same plane of existence as you. The spell ends if you or the target are no longer on the same plane.\" + \"\\n   \" + \"Until the spell ends, you and the target can instantaneously share words, images, sounds, and other sensory messages with one another through the link, and the target recognizes you as the creature it is communicating with. The spell enables a creature with an Intelligence score of at least 1 to understand the meaning of your words and take in the scope of any sensory messages you send to it.\"\r\n};\r\nSpellsList[\"thorn whip\"] = {\r\n\tname : \"Thorn Whip\",\r\n\tclasses : [\"artificer\", \"druid\"],\r\n\tsource : [[\"P\", 282]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"The stem of a plant with thorns\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell atk for 1d6 Piercing dmg and pull crea up to 10 ft towards me; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Melee spell attack for `CD`d6 Piercing dmg and pull crea up to 10 ft towards me\",\r\n\tdescriptionFull : \"You create a long, vine-like whip covered in thorns that lashes out at your command toward a creature in range. Make a melee spell attack against the target. If the attack hits, the creature takes 1d6 piercing damage, and if the creature is Large or smaller, you pull the creature up to 10 feet closer to you.\" + \"\\n   \" + \"This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"thunderous smite\"] = {\r\n\tname : \"Thunderous Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 282]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Next melee weapon hit +2d6 Thunder dmg and save or 10 ft push and prone; audible in 300 ft\",\r\n\tdescriptionFull : \"The first time you hit with a melee weapon attack during this spell's duration, your weapon rings with thunder that is audible within 300 feet of you, and the attack deals an extra 2d6 thunder damage to the target. Additionally, if the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet away from you and knocked prone.\"\r\n};\r\nSpellsList[\"tsunami\"] = {\r\n\tname : \"Tsunami\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"P\", 284]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Sight\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 6 rnds\",\r\n\tsave : \"Str\",\r\n\tdescription : \"300\\xD750\\xD7300ft (l\\xD7w\\xD7h) wall of water moves away at 50 ft/rnd; 6d10 Bludg. dmg; save halves; see B\",\r\n\tdescriptionShorter : \"300\\xD750\\xD7300ft (l\\xD7w\\xD7h) wave moves away at 50 ft/rnd; 6d10 Bludg. dmg; save half; see B\",\r\n\tdescriptionMetric : \"90\\xD715\\xD790m (l\\xD7w\\xD7h) wall of water moves away at 15 m/rnd; 6d10 Bludg. dmg; save halves; see B\",\r\n\tdescriptionShorterMetric : \"90\\xD715\\xD790m (l\\xD7w\\xD7h) wave moves away at 15 m/rnd; 6d10 Bludg. dmg; save half; see B\",\r\n\tdescriptionFull : \"A wall of water springs into existence at a point you choose within range. You can make the wall up to 300 feet long, 300 feet high, and 50 feet thick. The wall lasts for the duration.\" + \"\\n   \" + \"When the wall appears, each creature within its area must make a Strength saving throw. On a failed save, a creature takes 6d10 bludgeoning damage, or half as much damage on a successful save.\" + \"\\n   \" + \"At the start of each of your turns after the wall appears, the wall, along with any creatures in it, moves 50 feet away from you. Any Huge or smaller creature inside the wall or whose space the wall enters when it moves must succeed on a Strength saving throw or take 5d10 bludgeoning damage. A creature can take this damage only once per round. At the end of the turn, the wall's height is reduced by 50 feet, and the damage creatures take from the spell on subsequent rounds is reduced by 1d10. When the wall reaches 0 feet in height, the spell ends.\" + \"\\n   \" + \"A creature caught in the wall can move by swimming. Because of the force of the wave, though, the creature must make a successful Strength (Athletics) check against your spell save DC in order to move at all. If it fails the check, it can't move. A creature that moves out of the area falls to the ground.\"\r\n};\r\nSpellsList[\"witch bolt\"] = {\r\n\tname : \"Witch Bolt\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 289]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A twig from a tree that has been struck by lightning\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Rngd spell atk 1d12+1d12/SL Lightn. dmg; 1 a 1d12 Lightn. dmg; ends if out of range or I do other a\",\r\n\tdescriptionShorter : \"Rngd atk 1d12+1d12/SL Lightn. dmg; 1 a 1d12 Lightn. dmg; end: out of range/do other a\",\r\n\tdescriptionFull : \"A beam of crackling, blue energy lances out toward a creature within range, forming a sustained arc of lightning between you and the target. Make a ranged spell attack against that creature. On a hit, the target takes 1d12 lightning damage, and on each of your turns for the duration, you can use your action to deal 1d12 lightning damage to the target automatically. The spell ends if you use your action to do anything else. The spell also ends if the target is ever outside the spell's range or if it has total cover from you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the initial damage increases by 1d12 for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /(1 a )(.*?)( Lightn. dmg)/i\r\n\t}\r\n};\r\nSpellsList[\"wrathful smite\"] = {\r\n\tname : \"Wrathful Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 289]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Next melee weapon hit +1d6 Psychic dmg and save or frightened; it can take 1 a for extra save\",\r\n\tdescriptionFull : \"The next time you hit with a melee weapon attack during this spell's duration, your attack deals an extra 1d6 psychic damage. Additionally, if the target is a creature, it must make a Wisdom saving throw or be frightened of you until the spell ends. As an action, the creature can make a Wisdom check against your spell save DC to steel its resolve and end this spell.\"\r\n};\r\n\n// pub_20140819_HotDQ+20141104_RoT.js\r\n// This file adds the background features and magic items from the Hoard of the Dragon Queen and Rise of Tiamat adventure books to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.HotDQ={\r\n\tname : \"Hoard of the Dragon Queen [background features, items]\",\r\n\tabbreviation : \"HotDQ\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://wpn.wizards.com/en/products/tyranny-of-dragons\",\r\n\tdate : \"2014/08/19\"\r\n};\r\nSourceList.RoT = {\r\n\tname : \"Rise of Tiamat [items]\",\r\n\tabbreviation : \"RoT\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://wpn.wizards.com/en/products/tyranny-of-dragons\",\r\n\tdate : \"2014/11/04\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"cult of the dragon infiltrator\"] = {\r\n\tdescription : \"I have infiltrated the ranks of the Cult of the Dragon. Having spied on the organization for quite some time, I am familiar with its inner workings and customs. I have a second identity as an initiate of the cult, enough of a facade to blend in as a simple grunt or servant.\",\r\n\tsource : [[\"HotDQ\", 87], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"dragon scholar\"] = {\r\n\tdescription : \"I have studied dragons and their lore for many years. I can automatically identify locations built or used by dragons, and I can identify dragon eggs and scales by sight. If I fail an Intelligence check to recall lore relating to dragons, I know someone or some book that I can consult for the answer unless the DM rules that the lore is unknown.\",\r\n\tsource : [[\"HotDQ\", 87], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Magic Items\r\n// The magic cauldron on page 79 is omitted as its only magic is that it functions as the material component for the Augury spell. Not something an adventurer is likely to use, with it being 50 lb.\r\nMagicItemsList[\"dragongleam\"] = {\r\n\tname : \"Dragongleam\",\r\n\tsource : [[\"HotDQ\", 69]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This rusty spear is engraved with draconic runes on its crossguard which read \\\"Tiamat's Eyes Shine\\\". The spear has 10 charges. As an action while holding it, I can say this command and expend 1 charge to cast Daylight. The spear loses its magic once all charges are expended.\",\r\n\tdescriptionFull : \"This rusty spear is engraved with draconic runes on its crossguard which read \\\"Tiamat's Eyes Shine\\\". The spear has 10 charges. While holding it, you can say the command and expend 1 charge as an action to cast the Daylight spell. The spear loses this property if it has no charges left.\",\r\n\tweight : 3,\r\n\tusages : 10,\r\n\trecovery : \"Never\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"daylight\"],\r\n\t\tselection : [\"daylight\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"daylight\" : {\r\n\t\t\tcomponent : \"V,M\\u0192\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"spear\",\r\n\t\tregExpSearch : /dragongleam/i,\r\n\t\tname : \"Dragongleam\",\r\n\t\tsource : [[\"HotDQ\", 69]],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"tankard of plenty\"] = {\r\n\tname : \"Tankard of Plenty\",\r\n\tsource : [[\"HotDQ\", 74]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"A\",\r\n\tdescription : 'This golden stein is decorated with dancing dwarves and grain patterns. Speaking the command word \"Illefarn\" while grasping the handle fills the tankard with three pints of rich dwarven ale. This power can be used up to three times per day.',\r\n\tdescriptionFull : 'This golden stein is decorated with dancing dwarves and grain patterns. Speaking the command word (\"Illefarn\") while grasping the handle fills the tankard with three pints of rich dwarven ale. This power can be used up to three times per day.',\r\n\tusages : 3,\r\n\trecovery : \"Day\"\r\n}\r\nvar HotDQ_tempDragonMaskNoteTxt = [\r\n\tdesc([\r\n\t\ttoUni(\"Damage Absorption\") + \". You have resistance against DTYPE damage. If you already have resistance to DTYPE damage from another source, you instead have immunity to DTYPE damage. If you already have immunity to DTYPE damage from another source, whenever you are subjected to DTYPE damage, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\",\r\n\t\ttoUni(\"Draconic Majesty\") + \". While you are wearing no armor, you can add your Charisma bonus to your Armor Class.\",\r\n\t\ttoUni(\"Dragon Breath\") + \". If you have a breath weapon that requires rest to recharge, it gains a recharge of 6.\",\r\n\t\ttoUni(\"Dragon Sight\") + \". You gain darkvision out to 60 feet, or to an additional 60 feet if you already have that sense. Once per day, you can gain blindsight out to 30 feet for 5 minutes.\",\r\n\t\ttoUni(\"Dragon Tongue\") + \". You can speak and understand Draconic. You also have advantage on any Charisma check you make against DCOLOUR dragons.\",\r\n\t\ttoUni(\"Legendary Resistance (1/Day)\") + \". If you fail a saving throw, you can choose to succeed instead.\"\r\n\t]), [\r\n\t\t\" It reshapes to fit my face and head when I attuned to it. While I'm wearing a dragon mask and attuned to it, it grants me the following benefits.\",\r\n\t\t\"\\u2022 Damage Absorption. I have resistance against DTYPE damage. If I already have resistance to DTYPE damage from another source, I instead gain immunity to DTYPE damage. If I already have immunity to DTYPE damage from another source, whenever I am subjected to DTYPE damage, I take none of that damage and instead regain a number of hit points equal to half the DTYPE damage dealt.\",\r\n\t\t\"\\u2022 Draconic Majesty. While I am wearing no armor, I can add my Charisma bonus to my Armor Class.\",\r\n\t\t\"\\u2022 Dragon Breath. If I have a breath weapon that requires rest to recharge, it gains a recharge of 6.\",\r\n\t\t\"\\u2022 Dragon Sight. I gain darkvision out to 60 ft, or to an additional 60 ft if I already have that sense. Once per day, I can gain blindsight out to 30 ft for 5 minutes.\",\r\n\t\t\"\\u2022 Dragon Tongue. I can speak and understand Draconic. I also have advantage on any Charisma check I make against DCOLOUR dragons.\",\r\n\t\t\"\\u2022 Legendary Resistance. Once per day when I fail a saving throw, I can choose to succeed instead.\"\r\n\t].join(\"\\n   \")\r\n];\r\nMagicItemsList[\"dragon mask\"] = {\r\n\tname : \"Dragon Mask\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb associated damage type, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. a dragon type, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, see Notes page.\",\r\n\tdescriptionFull : \"Each dragon mask is a legendary wondrous item that reshapes to fit the face and head of a wearer attuned to it. While you are wearing any dragon mask and attuned to it, you gain the following benefits.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/You have resistance against DTYPE damage.*?\\n/, \"You have resistance against the mask's damage type. If you already have resistance to that damage type from another source, you instead have immunity to that damage type. If you already have immunity to that damage type from another source, whenever you are subjected to damage of that type, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR dragons\", \"dragons that share the mask's color\"),\r\n\tattunement : true,\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tusages : 1,\r\n\trecovery : \"Day\",\r\n\tadditional : \"Legendary Resistance\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Dragon Mask (Blindsight 30 ft, 5 min)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Day\"\r\n\t}],\r\n\textraAC : [{\r\n\t\tmod : \"Cha\",\r\n\t\tmagic : true,\r\n\t\ttext : \"I add my Charisma modifier to AC while I'm not wearing armor.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor; }\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.dbBreathWeapon || (/^(?=.*breath)(?=.*weapon).*$/i).test(v.theWea.name)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(Us(e|able)( only)? )?once per (short|long) rest/i, 'Recharge 6');\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tincrementDamageRes : function (dType, dRes) {\r\n\t\tSetProf(\r\n\t\t\t\"savetxt\",\r\n\t\t\tCurrentProfs.resistance[dRes] && CurrentProfs.resistance[dRes].src.length > 1,\r\n\t\t\t{ immune : [dRes] },\r\n\t\t\t!dType ? \"Mask of the Dragon Queen (magic item)\" : dType + \" Dragon Mask (magic item)\"\r\n\t\t);\r\n\t},\r\n\tchoices : [\"Black\", \"Blue\", \"Green\", \"Red\", \"White\", \"Mask of the Dragon Queen\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"black\" : {\r\n\t\tname : \"Black Dragon Mask\",\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb acid damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. black dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This horned mask of glossy ebony has horns and a skull-like mien. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb acid damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against black dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and water breathing. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This horned mask of glossy ebony has horns and a skull-like mien. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"acid\").replace(\"DCOLOUR\", \"black\") + \"\\n   \" + toUni(\"Water Breathing\") + \". You can breathe underwater.\",\r\n\t\tdmgres : [\"Acid\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Black\", \"acid\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This horned mask of glossy ebony has horns and a skull-like mien.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"acid\").replace(\"DCOLOUR\", \"black\") + \"\\n   Water Breathing. I can breathe underwater.\"\r\n\t\t}]\r\n\t},\r\n\t/*\r\n\t\tAlthough the adventure book only includes the Black Dragon Mask,\r\n\t\tthis code also includes the Blue, Green, Red, and White Dragon Masks.\r\n\t\tThe rules for these are found in the Rise of Tiamat Online Supplement,\r\n\t\there: https://media.wizards.com/2014/downloads/dnd/RiseTiamatSupplementv0.2_Printer.pdf\r\n\t*/\r\n\t\"blue\" : {\r\n\t\tname : \"Blue Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb lightning damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. Cha checks vs. blue dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask of glossy azure has spikes around its edges and a ridged horn in its center. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb lightning damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against blue dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Lingering Shock. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mask of glossy azure has spikes around its edges and a ridged horn in its center. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"lightning\").replace(\"DCOLOUR\", \"blue\") + \"\\n   \" + toUni(\"Lingering Shock\") + \". If you deal lightning damage to a creature, it can't take reactions until its next turn.\",\r\n\t\tdmgres : [\"Lightning\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Blue\", \"lightning\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mask of glossy azure has spikes around its edges and a ridged horn in its center.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"lightning\").replace(\"DCOLOUR\", \"blue\") + \"\\n   Lingering Shock. If I deal lightning damage to a creature, it can't take reactions until its next turn.\"\r\n\t\t}]\r\n\t},\r\n\t\"green\" : {\r\n\t\tname : \"Green Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb poison damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. green dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mottled green mask is surmounted by a frilled crest and has spikes along its jaw. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb poison damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against green dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and water breathing. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mottled green mask is surmounted by a frilled crest and has leathery spiked plates along its jaw. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"poison\").replace(\"DCOLOUR\", \"green\") + \"\\n   \" + toUni(\"Water Breathing\") + \". You can breathe underwater.\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Green\", \"poison\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mottled green mask is surmounted by a frilled crest and has leathery spiked plates along its jaw.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"poison\").replace(\"DCOLOUR\", \"green\") + \"\\n   Water Breathing. I can breathe underwater.\"\r\n\t\t}]\r\n\t},\r\n\t\"red\" : {\r\n\t\tname : \"Red Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb fire damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. red dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask of glossy crimson has swept-back horns and spiked cheek ridges. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb fire damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against red dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Dragon Fire. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mask of glossy crimson has swept-back horns and spiked cheek ridges. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"fire\").replace(\"DCOLOUR\", \"red\") + \"\\n   \" + toUni(\"Dragon Fire\") + \". If you deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\",\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"red\", \"fire\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mask of glossy crimson has swept-back horns and spiked cheek ridges.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"fire\").replace(\"DCOLOUR\", \"red\") + \"\\n   Dragon Fire. If I deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\"\r\n\t\t}]\r\n\t},\r\n\t\"white\" : {\r\n\t\tname : \"White Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb cold damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. white dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This gleaming mask is white with highlights of pale blue and is topped by a spined crest. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb cold damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against white dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Winter's Fury. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This gleaming mask is white with highlights of pale blue and is topped by a spined crest. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"cold\").replace(\"DCOLOUR\", \"white\") + \"\\n   \" + toUni(\"Winter's Fury\") + \". While your current hit points are equal to or less than half your hit point maximum, you deal an extra 1d8 cold damage with your melee attacks.\",\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"white\", \"cold\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This gleaming mask is white with highlights of pale blue and is topped by a spined crest.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"cold\").replace(\"DCOLOUR\", \"white\") + \"\\n   Winter's Fury. While my current hit points are equal to or less than half my hit point maximum, I deal an extra 1d8 cold damage with my melee attacks.\"\r\n\t\t}]\r\n\t},\r\n\t\"mask of the dragon queen\" : {\r\n\t\tname : \"Mask of the Dragon Queen\",\r\n\t\tsource : [[\"RoT\", 94]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It allows to absorb acid, cold, fire, lightning, and poison damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (5/day), adv. on Cha checks vs. dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask gives me a draconic visage and covers my face, neck, and shoulders. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb acid, cold, fire, lightning, and poison damage, depending on how resistant I'm already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against dragons, lets me add my Charisma modifier to AC while not wearing armor, and more. 5 times per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"When two or more of the dragon masks are assembled they magically transform into the Mask of the Dragon Queen. Each mask shrinks to become the modeled head of a chromatic dragon, appearing to roar its devotion to Tiamat where all the masks brought together are arranged crown-like on the wearer's head. Below the five masks, a new mask shapes itself, granting the wearer a draconic visage that covers the face, neck, and shoulders. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/You have resistance against DTYPE damage.*?\\n/, \"You have resistance against acid, cold, fire, lightning, and poison damage. If you already have resistance to a damage type from another source, you instead have immunity to that damage type. If you already have immunity to a damage type from another source, whenever you are subjected to that damage type, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR \", \"\").replace(toUni(\"(1/Day)\"), toUni(\"(5/Day)\")) + \"\\n\\n   It can have the properties of any one of the colored masks, but only can have one active at a time. These are the following:\\n   \" + toUni(\"Water Breathing (black and green)\") + \". You can breathe underwater.\\n   \" + toUni(\"Lingering Shock (blue)\") + \". If you deal lightning damage to a creature, it can't take reactions until its next turn.\\n   \" + toUni(\"Dragon Fire (red)\") + \". If you deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\\n   \" + toUni(\"Winter's Fury (white)\") + \". While your current hit points are equal to or less than half your hit point maximum, you deal an extra 1d8 cold damage with your melee attacks.\",\r\n\t\tdmgres : [\"Acid\", \"Cold\", \"Fire\", \"Lightning\", \"Poison\"],\r\n\t\tchangeeval : function () {\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"acid\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"cold\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"fire\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"lightning\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"poison\");\r\n\t\t},\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   When two or more of the dragon masks are assembled they magically transform into the Mask of the Dragon Queen. Each mask shrinks to become the modeled head of a chromatic dragon, appearing to roar its devotion to Tiamat where all the masks brought together are arranged crown-like on the wearer's head. Below the five masks, a new mask shapes itself, granting the wearer a draconic visage that covers the face, neck, and shoulders.\" +\r\n\t\t\tHotDQ_tempDragonMaskNoteTxt[1].replace(/Damage Absorption.*?\\n/, \"Damage Absorption. I have resistance to acid, cold, fire, lightning, and poison damage. If I already have resistance to a damage type from another source, I instead have immunity to that damage type. If I already have immunity to a damage type from another source, whenever I am subjected to that damage type, I take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR \", \"\").replace(\"Once per day when\", \"Five times per day when\") +\r\n\t\t\t\"\\n   \\u2022 Special Properties. I can access the properties of any one of the colored masks, but only can have one active at a time. These are the following:\"+\r\n\t\t\t\"\\n      \\u25E6 Water Breathing (black and green). I can breathe underwater.\"+\r\n\t\t\t\"\\n      \\u25E6 Lingering Shock (blue). If I deal lightning damage to a creature, it can't take reactions until its next turn.\"+\r\n\t\t\t\"\\n      \\u25E6 Dragon Fire (red). If I deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\"+\r\n\t\t\t\"\\n      \\u25E6 Winter's Fury (white). While my current hit points are equal to or less than half my hit point maximum, I deal an extra 1d8 cold damage with my melee attacks.\"\r\n\t\t}],\r\n\t\tusages : 5,\r\n\t\trecovery : \"Day\",\r\n\t\tadditional : \"Legendary Resistance\"\r\n\t}\r\n}\r\nMagicItemsList[\"hazirawn\"] = {\r\n\tname : \"Hazirawn\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This sentient, neutral evil, greatsword functions depend on whether you are attuned to it or not.\",\r\n\tdescriptionFull : \"A sentient (neutral evil) greatsword, Hazirawn is capable of speech in Common and Netherese. Even if you aren't attuned to the sword, you gain a +1 bonus on attack and damage rolls made with this weapon and you deal an extra 1d6 necrotic damage when you hit with the weapon.\\n   \" + toUni(\"Increased Potency\") + \". While you are attuned to this weapon, its bonus on attack and damage rolls increases to +2, and a hit deals an extra 2d6 necrotic damage (instead of 1d6).\\n   \" + toUni(\"Spells\") + \". Hazirawn has 4 charges to cast spells. As long as the sword is attuned to you and you are holding it in your hand, you can cast Detect Magic (1 charge), Detect Evil and Good (1 charge), or Detect Thoughts (2 charges). Each night at midnight, Hazirawn regains 1d4 expended charges.\\n   \" + toUni(\"Wounding\") + \". While you are attuned to the weapon, any creature that you hit with Hazirawn can't regain hit points for 1 minute. The target can make a DC 15 Constitution saving throw at the end of each of its turns, ending this effect early on a success.\",\r\n\tweight : 6,\r\n\tchoices : [\"not attuned\", \"attuned\"],\r\n\t\"not attuned\" : {\r\n\t\tname : \"Hazirawn\\u200A\",\r\n\t\tdescription : \"A sentient (neutral evil) greatsword, Hazirawn is capable of speech in Common and Netherese. While I'm not attuned to the sword, I gain a +1 bonus on attack and damage rolls made with it. It also deals an extra 1d6 necrotic damage on attacks made with the sword.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"greatsword\",\r\n\t\t\tregExpSearch : /hazirawn/i,\r\n\t\t\tname : \"Hazirawn\",\r\n\t\t\tsource : [[\"HotDQ\", 94]],\r\n\t\t\tdescription : \"Heavy, two-handed; +1d6 necrotic damage\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"attuned\" : {\r\n\t\tname : \"Hazirawn\\u200A\\u200A\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This sentient, neutral evil, greatsword adds +2 to damage and to hit rolls, deals +2d6 necrotic damage, and those hit with it can't regain HP for 1 min, but can make a DC 15 Con save at the end of each turn to stop this effect. It has 4 charges to cast spells, regaining 1d4 at midnight. It speaks Common and Netherese.\",\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Hazirawn (regains 1d4)\",\r\n\t\t\tusages : 4,\r\n\t\t\trecovery : \"Midnight\"\r\n\t\t}],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"greatsword\",\r\n\t\t\tregExpSearch : /hazirawn/i,\r\n\t\t\tname : \"Hazirawn\",\r\n\t\t\tsource : [[\"HotDQ\", 94]],\r\n\t\t\tdescription : \"Heavy, two-handed; +2d6 necrotic damage; Wounding (can't regain HP for 1 min, DC 15 Con save to stop)\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"detect evil and good\", \"detect magic\"],\r\n\t\t\tselection : [\"detect evil and good\", \"detect magic\"],\r\n\t\t\tfirstCol : 1,\r\n\t\t\ttimes : 2\r\n\t\t}, {\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}],\r\n\t\tfixedDC : 15, // assumed from the fact that its Wounding property has DC 15\r\n\t\tspellFirstColTitle : \"Ch\"\r\n\t}\r\n}\r\nMagicItemsList[\"insignia of claws\"] = {\r\n\tname : \"Insignia of Claws\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"The jewels in the insignia flare with purple light when I enter combat, empowering my fists. While wearing the insignia, I gain a +1 bonus to the attack rolls and the damage rolls of my unarmed strikes and natural weapons. Such attacks are considered to be magical.\",\r\n\tdescriptionFull : \"The jewels in the insignia of the Cult of the Dragon flare with purple light when you enter combat, empowering your natural fists or natural weapons.\\n   While wearing the insignia you gain a +1 bonus to the attack rolls and the damage rolls you make with unarmed strikes and natural weapons. Such attacks are considered to be magical.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes gain a +1 bonus to their attack and damage rolls, and count as magical.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\toutput.magic += 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"wand of winter\"] = {\r\n\tname : \"Wand of Winter\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This wand looks and feels like an icicle and has 7 charges, regaining 1d6+1 expended charges at dawn. If I use its last charge, roll a d20. On a 20, it melts away. I can use its charges to cast spells with DC 15/+5 to hit: Ray of Frost (0 charges: 1d8, 1 charge: 2d8), Sleet Storm (3 charges), or Ice Storm (4 charges).\",\r\n\tdescriptionFull : \"This wand looks and feels like an icicle. You must be attuned to the wand to use it.\\n   The wand has 7 charges, which are used to fuel the spells within it. With the wand in hand, you can use your action to cast one of the following spells from the wand, even if you are incapable of casting spells: Ray of Frost (no charges, or 1 charge to cast at 5th level; +5 to hit with ranged spell attack), Sleet Storm (3 charges; spell save DC 15), or Ice Storm (4 charges; spell save DC 15). No components are required. The wand regains 1d6+1 expended charges each day at dawn. If you expend the wand's last charge, roll a d20. On a 20, the wand melts away, forever destroyed.\",\r\n\tweight : 1,\r\n\tusages : 7,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+1\",\r\n\tfixedDC : 15,\r\n\tfixedSpAttack : 5,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"ray of frost\"],\r\n\t\tselection : [\"ray of frost\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"0 charges (at will)\",\r\n\t\tspells : [\"ray of frost\"],\r\n\t\tselection : [\"ray of frost\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"sleet storm\"],\r\n\t\tselection : [\"sleet storm\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"ice storm\"],\r\n\t\tselection : [\"ice storm\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spellKey == \"ray of frost\" && spName == \"wand of winter\") {\r\n\t\t\t\t\tif (isDuplicate) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"1\";\r\n\t\t\t\t\t\tspellObj.description = \"Spell attack for 2d8 Cold dmg and -10 ft speed until start of my next turn\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.description = \"Spell attack for 1d8 Cold dmg and -10 ft speed until start of my next turn\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"dragontooth dagger\"] = {\r\n\tname : \"Dragontooth Dagger\",\r\n\tsource : [[\"RoT\", 94]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"This dagger is fashioned from the tooth of a dragon. Its handle is its leather wrapped root and there is no crossguard. It adds a +1 bonus to attack and damage rolls made with it and deals +1d6 acid damage on a hit. Against the enemies of the Cult of the Dragon this increases to a +2 bonus and +2d6 acid damage.\",\r\n\tdescriptionFull : \"A dagger fashioned from the tooth of a dragon. While the blade is obviously a fang or predator's tooth, the handle is leather wrapped around the root of the tooth, and there is no crossguard.\\n   You gain a +1 bonus to attack and damage rolls made with this weapon. On a hit with this weapon, the target takes an extra 1d6 acid damage.\\n   \" + toUni(\"Draconic Potency\") + \". Against enemies of the Cult of the Dragon, the dagger's bonus to attack and damage rolls increases to 2, and the extra acid damage increases to 2d6.\",\r\n\tweight : 1,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*dragontooth)(?=.*dagger).*$/i,\r\n\t\tname : \"Dragontooth Dagger\",\r\n\t\tsource : [[\"RoT\", 94]],\r\n\t\tdescription : \"Finesse, light, thrown; +1d6 acid damage; Vs. Cult of the Dragon enemies: +2 magic \\u0026 +2d6 acid damage\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\r\n// Beast\r\n// Sled dog is just a wolf under a different name, it has been added to the SRD code as a `nameAlt`\r\n\n// pub_20140930_MM.js\r\n// This file adds all the player-material from the Monster Manual to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.M={\r\n\tname : \"Monster Manual\",\r\n\tabbreviation : \"MM\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/monster-manual\",\r\n\tdate : \"2014/09/30\"\r\n};\r\n\r\n// Dinosaurs not in the SRD\r\nCreatureList[\"allosaurus\"] = {\r\n\tname : \"Allosaurus\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 51,\r\n\thd : [6, 10], //[#, die]\r\n\tspeed : \"60 ft\",\r\n\tscores : [19, 13, 17, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tpassivePerception : 15,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 30 ft straight in the same round, see Pounce trait\"\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 10, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Can be used in combination with claw while pouncing (see Pounce trait)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the allosaurus moves at least 30 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the allosaurus can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"ankylosaurus\"] = {\r\n\tname : \"Ankylosaurus\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 68,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [19, 11, 15, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\",\r\n\t\tmodifiers : [1, \"\"]\r\n\t}]\r\n};\r\nCreatureList[\"pteranodon\"] = {\r\n\tname : \"Pteranodon\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 13,\r\n\thd : [3, 8], //[#, die]\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [12, 15, 10, 2, 9, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 1\r\n\t},\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The pteranodon doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\n\r\n// Special familiars not in the SRD\r\nCreatureList[\"faerie dragon\"] = { // With contributions by Patrick O.\r\n\tname : \"Faerie Dragon\",\r\n\tnameAlt : [\"Dragon, Faerie\"],\r\n\tsource : [[\"M\", 133]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Dragon\",\r\n\talignment : \"Chaotic Good\",\r\n\tac : 15,\r\n\thp : 14,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [3, 20, 13, 14, 12, 16], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"arcana\" : 4,\r\n\t\t\"perception\" : 3,\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 13,\r\n\tlanguages : \"Draconic, Sylvan\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : false\r\n\t}, {\r\n\t\tname : \"Euphoria Breath (Recharge 5-6)\",\r\n\t\tability : 3,\r\n\t\tdamage : [\"Wis save\", \"\", \"Euphoria\"],\r\n\t\trange : \"5 ft\",\r\n\t\tdescription : \"For 1 min, target rolls d6 at turn start: 1-4 move random (no actions), 5-6 save again (no actions/move)\",\r\n\t\tdc : true,\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"The dragon exhales a puff of euphoria gas at one creature within 5 feet of it. The target must succeed on a DC 11 Wisdom saving throw, or for 1 minute, the target can't take reactions and must roll a d6 at the start of each of its turns to determine its behavior during the turn: 1-4 - the target takes no action or bonus action and uses all its movement to move in a random direction. 5-6 - the target doesn't move, and the only thing it can do on its turn is make a DC 11 Wisdom saving throw, ending the effect on itself on a success.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Superior Invisibility\",\r\n\t\tdescription : \"As a bonus action, the dragon can magically turn invisible until its concentration ends (as with a spell). Anything it wears or carries is invisible with it.\"\r\n\t}, {\r\n\t\tname : \"Limited Telepathy\",\r\n\t\tdescription : \"Using telepathy, the dragon can magically communicate with any other faerie dragon within 60 feet of it.\"\r\n\t}, {\r\n\t\tname : \"Magic Resistance\",\r\n\t\tdescription : \"The dragon has advantage on saves against spells and magical effects.\"\r\n\t}, {\r\n\t\tname : \"Euphoria Breath (Recharge 5-6)\",\r\n\t\tdescription : \"Exhale a puff of euphoria gas at a creature within 5 ft. It must succeed on a DC 11 Wisdom save, or for 1 minute, it can't take reactions and must roll a d6 at the start of each of its turns:\\n 1-4 - No action or bonus action, using all movment to move in a random direction.\\n 5-6 - The target does nothing except attempt another save to try end the effect on itself.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Innate Spellcasting\",\r\n\t\tdescription : \"Cast spells using Charisma (save DC 13), requiring no material components. The spells it knows depends on its age (and stack):\\n Red: 1/day - Dancing Lights, Mage Hand, Minor Illusion\\n Orange (6-10 years): 1/day - Color Spray\\n Yellow (11-20 years): 1/day - Mirror Image\\n Green (21-30 years): 1/day - Suggestion\\n Blue (31-40 years): 1/day - Major Image\\n Indigo (41-50 years): 1/day - Hallucinatory Terrain\\n Violet (51+ years): 1/day - Polymorph\"\r\n\t}]\r\n};\r\nCreatureList[\"crawling claw\"] = {\r\n\tname : \"Crawling Claw\",\r\n\tsource : [[\"M\", 44]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Undead\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 2,\r\n\thd : [1, 4], //[#, die]\r\n\tspeed : \"20 ft, climb 20 ft\",\r\n\tscores : [13, 14, 11, 5, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Blindsight 30 ft (blind beyond this radius)\",\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Does bludgeoning or slashing damage (claw's choice)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Turn Immunity\",\r\n\t\tdescription : \"The claw is immune to effects that turn undead.\"\r\n\t}]\r\n};\r\nCreatureList[\"peryton\"] = {\r\n\tname : \"Peryton\",\r\n\tsource : [[\"M\", 251]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Monstrosity\",\r\n\tcompanion : \"steed\",\r\n\talignment : \"Chaotic Evil\",\r\n\tac : 13,\r\n\thp : 33,\r\n\thd : [6, 8], //[#, die]\r\n\tspeed : \"20 ft, fly 60 ft\",\r\n\tscores : [16, 12, 13, 9, 12, 10], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight/smell\",\r\n\tpassivePerception : 16,\r\n\tlanguages : \"understands Common and Elvish, but can't speak\",\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One gore and one talons attack as an Attack action; +2d8 after 30 ft dive straight down\"\r\n\t}, {\r\n\t\tname : \"Talons\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One talons and one gore attack as an Attack action; +2d8 after 30 ft dive straight down\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the peryton can make one Gore and one Talon attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Dive Attack\",\r\n\t\tdescription : \"If the peryton is flying and dives at least 30 ft. straight toward a target and then hits it with a melee weapon attack, the attack deals an extra 9 (2d8) damage to the target.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The peryton doesn't provoke an opportunity attack when it flies out of an enemy's reach.\"\r\n\t}, {\r\n\t\tname : \"Keen Sight and Smell\",\r\n\t\tdescription : \"The peryton has advantage on Wisdom (Perception) checks that rely on sight or smell.\"\r\n\t}]\r\n};\r\n\r\n// Blights and spores\r\nCreatureList[\"needle blight\"] = {\r\n\tname : \"Needle Blight\",\r\n\tnameAlt : [\"Blight, Needle\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 11,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 12, 13, 4, 8, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Needles\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"30/60 ft\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"twig blight\"] = {\r\n\tname : \"Twig Blight\",\r\n\tnameAlt : [\"Blight, Twig\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 4, //Small\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 13,\r\n\thp : 4,\r\n\thd : [1, 6], //[#, die]\r\n\tspeed : \"20 ft\",\r\n\tscores : [6, 13, 12, 4, 8, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tdamage_vulnerabilities : \"fire\",\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"False Appearance\",\r\n\t\tdescription : \"While the blight remains motionless, it is indistinguishable from a dead shrub.\"\r\n\t}]\r\n};\r\nCreatureList[\"vine blight\"] = {\r\n\tname : \"Vine Blight\",\r\n\tnameAlt : [\"Blight, Vine\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 26,\r\n\thd : [4, 8], //[#, die]\r\n\tspeed : \"10 ft\",\r\n\tscores : [15, 8, 14, 5, 10, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"stealth\" : 1\r\n\t},\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"Common\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Constrict\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Large or smaller target is grappled and restrained (escape DC 12); Can't use constrict again until grapple ends\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"False Appearance\",\r\n\t\tdescription : \"While the blight remains motionless, it is indistinguishable from a tangle of vines.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Entangling Plants (Recharge 5-6)\",\r\n\t\tdescription : \"As an action, grasping roots and vines sprout in a 15-ft radius centered on the blight, withering away after 1 minute. For the duration, that area is difficult terrain for nonplant creatures. In addition, each creature of the blight's choice in that area when the plants appear must succeed on a DC 12 Strength saving throw or become restrained. A creature can use its action to make a DC 12 Strength check, freeing it self or another entangled creature within reach on a success.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t(typePF ? \"##Senses##. \" : \"\") + \"Blindsight 60 ft (blind beyond).\",\r\n\t\t\"##Immunities##. Blinded, deafened.\",\r\n\t\t\"##Entangling Plants (Recharge 5-6)##. As an action, 15-ft radius is difficult terrain for nonplant creatures for 1 min. Chosen creatures in it must make a DC 12 Str save or become restrained. A creature can use its action to free itself or another within reach with a DC 12 Str check.\",\r\n\t\t\"##False Appearance##. While motionless, it's indistinguishable from a tangle of vines.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\nCreatureList[\"gas spore\"] = {\r\n\tname : \"Gas Spore\",\r\n\tsource : [[\"M\", 138]],\r\n\tsize : 2, //Large\r\n\ttype : \"Plant\",\r\n\talignment : \"Unaligned\",\r\n\tac : 5,\r\n\thp : 1,\r\n\thd : [1, 10], //[#, die]\r\n\tspeed : \"fly 10 ft (hover)\",\r\n\tscores : [5, 1, 3, 1, 1, 1], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tcondition_immunities : \"blinded, deafened, frightened\",\r\n\tsenses : \"Blindsight 30 ft (blind beyond this radius).\",\r\n\tpassivePerception : 5,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Touch\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, \"\", \"poison\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"DC 10 Con save or infected with Death Burst disease, see traits\",\r\n\t\tmodifiers : [1, \"\"],\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"The gas spore explodes when it drops to 0 hit points. Each creature within 20 feet of it must succeed on a DC 15 Constitution saving throw or take 10 (3d6) poison damage and become infected with a disease on a failed save. Creatures immune to the poisoned condition are immune to this disease.\\n   Spores invade an infected creature's system, killing the creature in a number of hours equal to 1d12+the creature's Constitution score, unless the disease is removed. In half that time, the creature becomes poisoned for the rest of the duration. After the creature dies, it sprouts 2d4 Tiny gas spores that grow to full size in 7 days.\"\r\n\t}, {\r\n\t\tname : \"Eerie Resemblance\",\r\n\t\tdescription : \"The gas spore resembles a beholder. A creature that can see the gas spore can discern its true nature with a successful DC 15 Intelligence (Nature) check.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t(typePF ? \"##Senses##. \" : \"\") + \"Blindsight 30 ft (blind beyond).\",\r\n\t\t\"##Immunities##. Blinded, deafened, frightened.\",\r\n\t\t\"##Eerie Resemblance##. Distinguishable form a beholder only with a DC 15 Nature check. ##Death Burst##. Explodes at 0 HP: all within 20 ft DC 15 Con save or 3d6 poison damage and infected with disease that kills a creature in 1d12+its Con score of hours. After half that, it's poisoned for the remainder. When dies, sprouts 2d4 Tiny gas spores that grow to full size in 7 days.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\n\r\n// Even though the shield guardian is in the SRD, the description for its control amulet is only found in the Monster Manual\r\nMagicItemsList[\"shield guardian amulet\"] = {\r\n\tname : \"Shield Guardian Amulet\",\r\n\tsource : [[\"M\", 271], [\"RotF\", 149]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tnotLegalAL : true,\r\n\tprerequisite : \"Requires attunement by a humanoid\",\r\n\tprereqeval : function(v) { return !CurrentRace.known || !RaceList[CurrentRace.known] || !/creature type/i.test(RaceList[CurrentRace.known].trait); },\r\n\tdescription : \"A shield guardian is magically linked to this amulet. It has AC 10, 10 HP, and immunity to poison and psychic damage. I know the distance and direction of the guardian while I'm wearing the amulet and I'm on the same plane as it. While within 10 ft of it, I can use the amulet to reactivate it with a DC 20 Arcana check.\",\r\n\tdescriptionFull : \"The amulet is a 4-inch-wide disk composed of silver-framed wood, with a rune carved into its face. A detect magic spell reveals a magical aura of enchantment around the amulet.\"+\r\n\t\"\\n   Every shield guardian has an amulet magically linked to it. A shield guardian can have only one corresponding amulet, and if that amulet is destroyed, the shield guardian is incapacitated until a replacement amulet is created.\"+\r\n\t\"\\n   A shield guardian's amulet is subject to direct attack if it isn't being worn or carried. It has AC 10, 10 hit points, and immunity to poison and psychic damage. Crafting an amulet requires 1 week and costs 1,000 gp in components.\"+\r\n\t\"\\n   A shield guardian's solitary focus is to protect the amulet's wearer. The amulet's wearer can command the guardian to attack its enemies or to guard the wielder against attack. If an attack threatens to injure the wearer, the construct can magically absorb the blow into its own body, even at a distance.\"+\r\n\t\"\\n   A humanoid that attunes to this amulet knows the distance and direction of the shield guardian, provided the amulet and the guardian are on the same plane of existence. As an action, the amulet's attuned wearer can try to reactivate the shield guardian, doing so with a successful DC 20 Intelligence (Arcana) check. Reactivation can only be attempted while the amulet and guardian are within 10 feet of each other.\",\r\n\tcreaturesAdd : [[\"Shield Guardian\"]]\r\n};\r\n\r\n\r\n// Player characters as Lycanthropes race - even though they are in the SRD, the rules for applying their abilities to player characters are not (added in v13.1.13)\r\n/*\r\nGains:\r\n - speed in non-humanoid form\r\n - damage immunities\r\n - traits\r\n - actions that don't involve equipment\r\n\r\n P.S. multiattack is a weird one, going with the interpretation here: https://rpg.stackexchange.com/questions/70694\r\n*/\r\nvar MM_lycanthrope = {\r\n\tcreateDefaultTraits : function(sLycanName, sLycanPlural) {\r\n\t\t// the traits of a human\r\n\t\tvar obj = {\r\n\t\t\tname : \"Human \" + sLycanName,\r\n\t\t\tplural : \"Human \" + sLycanPlural,\r\n\t\t\tlanguageProfs : [\"Common\", 1],\r\n\t\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\t\tscorestxt : \"+1 to all ability scores\",\r\n\t\t\tscores : [1, 1, 1, 1, 1, 1, 1]\r\n\t\t}\r\n\t\treturn obj;\r\n\t},\r\n\tcreateMessage : function(sLycanName, aOtherGains) {\r\n\t\tvar aGained = [\r\n\t\t\t\"Its speed in nonhumanoid form.\",\r\n\t\t\t\"Natural attacks in nonhumanoid form (e.g. bite/claw).\",\r\n\t\t\t\"Damage immunity to bludgeoning, piercing, and slashing from nonmagical attacks that aren't silvered.\",\r\n\t\t\t\"Shapechanger trait.\"\r\n\t\t].concat(aOtherGains);\r\n\t\treturn \"The lycanthrope races are template races. All features and traits of the base race are retained and all the \" + sLycanName + \"'s features are added to it.\"+\r\n\t\t\"\\nIf you choose not to use a previous race as the base race or you selected a \" + sLycanName + \" at character creation, a human (non-variant) will be used as the base race.\"+\r\n\t\t\"\\nThe \" + sLycanName + \"'s features added to the base race are:\"+\r\n\t\tdesc(aGained, \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nThe possible alignment change and moon-related limitations of lycanthrope are not mentioned in this race. Discuss with your DM how they want to handle lycanthrope.\"\r\n\t},\r\n};\r\nRaceList[\"lycanthrope-werebear\"] = {\r\n\tregExpSearch : /were.?bear|^(?=.*lycanthrope)(?=.*bear).*$/i,\r\n\tname : \"Werebear\",\r\n\tsource : [[\"M\", 208]],\r\n\tplural : \"Werebears\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Werebear (+1 to all ability scores; min 19 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a Large bear-hybrid, into a Large bear, or back. In those forms, I gain 40 ft walking speed, 30 ft climb speed, +1 AC, and a bite and claw attack. My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my bite must save or be cursed with werebear lycanthrope.\",\r\n\t\t\"Keen Smell: I have adv. on Wis (Perception) checks using smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 208]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 19 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a Large bear-hybrid, into a Large bear, or back\",\r\n\t\t\t\t\t\"In my bear and hybrid forms, I gain 40 ft walking speed, 30 ft climb speed, and +1 AC\",\r\n\t\t\t\t\t\"In these forms I also gain a bite and claw attack, but can't use bite as part of a multiattack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with werebear lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, none of which can be with my werebear bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (bear/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, no bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [19, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Werebear Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werebear|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 208]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Bear and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Werebear Claw\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werebear|lycanthrope))(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 208]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Bear and Hybrid form only\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in bear/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my bear or bear-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tsource : [[\"M\", 208]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Drow Werebear\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"werebear\", [\r\n\t\t\t\"Strength increase to 19 unless it was already higher.\",\r\n\t\t\t\"Keen Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Werebear\", \"Werebears\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\nRaceList[\"lycanthrope-wereboar\"] = {\r\n\tregExpSearch : /were.?boar|^(?=.*lycanthrope)(?=.*boar).*$/i,\r\n\tname : \"Wereboar\",\r\n\tsource : [[\"M\", 209]],\r\n\tplural : \"Wereboars\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Wereboar (+1 to all ability scores; min 17 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a boar-\" + (typePF ? \"\" : \"humanoid \") + \"hybrid, into a boar, or back. In those forms, I gain 40 ft walking speed, +1 AC, and a tusks attack. My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my tusks must save or be cursed\" + (typePF ? \".\" : \" with lycanthrope.\"),\r\n\t\t\"Relentless: If I'm reduced to 0 HP by 14 damage or less, I can instead drop to 1 HP.\",\r\n\t\t\"Charge: If I move 15 ft straight before a tusks hit, +2d6 damage and Str save or prone.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 17 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a boar-humanoid hybrid, into a boar, or back\",\r\n\t\t\t\t\t\"In my boar and hybrid forms, I gain 40 ft walking speed, a tusks attack, and +1 AC\",\r\n\t\t\t\t\t\"I also gain a bite and claw attack; As an action, I can make two claw attacks (multiattack)\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with wereboar lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my wereboar tusks\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (boar/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 tusks)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [17, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Wereboar Tusks\",\r\n\t\t\t\tregExpSearch : /^(?=.*(wereboar|lycanthrope))(?=.*tusks).*$/i,\r\n\t\t\t\tsource : [[\"M\", 209]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Boar/hybrid form only; Humanoids Con save or cursed; Charge for +2d6 damage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in boar/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my boar or boar-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\twereboar_relentless : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Relentless\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If I'm reduced to 0 HP by an affect dealing 14 damage or less, I can instead drop to 1 HP\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in boar or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\twereboar_charge : {\r\n\t\t\tname : \"Charge\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If, in one turn, I move straight for 15 ft and then hit with my tusks, I deal +2d6 damage\",\r\n\t\t\t\t\t\"Those hit like this must make a Str save or be knocked prone (DC 8 + Prof B. + Str mod)\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in boar or hybrid form only\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"High Elf Wereboar\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"wereboar\", [\r\n\t\t\t\"Strength increase to 17 unless it was already higher.\",\r\n\t\t\t\"Relentless and Charge traits.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Wereboar\", \"Wereboars\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t},\r\n\tabilitySave : 1 // for charge trait\r\n};\r\nRaceList[\"lycanthrope-wererat\"] = {\r\n\tregExpSearch : /were.?rat|^(?=.*lycanthrope)(?=.*rat).*$/i,\r\n\tname : \"Wererat\",\r\n\tsource : [[\"M\", 209]],\r\n\tplural : \"Wererats\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Wererat (+1 to all ability scores; min 15 Dex)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can transform into a rat-humanoid hybrid, into a giant rat, or back. In those forms, I gain a bite attack, which can use Strength or Dexterity. In my giant rat form, I also become small and gain Darkvision 60 ft My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my bite must save or be cursed with wererat lycanthrope.\",\r\n\t\t\"Keen Smell: I have adv. on Wis (Perception) checks using smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Dexterity score increases to 15 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can transform into a rat-humanoid hybrid, into a giant rat (Small), or back\",\r\n\t\t\t\t\t\"In my rat and hybrid forms, I gain a bite attack that can use either Strength or Dexterity\",\r\n\t\t\t\t\t\"In my giant rat form, I also become small and gain Darkvision 60 ft\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with wererat lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my wererat bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (giant rat/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [0, 15, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Wererat Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(wererat|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 209]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Rat and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisWereratBite : true, // for calcChanges.atkAdd\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isWereratBite) fields.Mod = v.StrDex;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'I can use Strength or Dexterity for my Wererat Bite, whichever is higher.'\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Lizardfolk Wererat\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"wererat\", [\r\n\t\t\t\"Dexterity increase to 15 unless it was already higher.\",\r\n\t\t\t\"Keen Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Wererat\", \"Wererats\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\nRaceList[\"lycanthrope-weretiger\"] = {\r\n\tregExpSearch : /were.?tiger|^(?=.*lycanthrope)(?=.*tiger).*$/i,\r\n\tname : \"Weretiger\",\r\n\tsource : [[\"M\", 210]],\r\n\tplural : \"Weretigers\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Weretiger (+1 to all ability scores; min 15 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a tiger-humanoid hybrid, into a Large tiger, or back. In those forms, I gain 40 ft walking speed, a bite attack, and a claw attack. My stats don't otherwise change when transformed, but my equipment doesn't transform and I revert back when I die. Humanoids hit by my bite must save or be cursed with weretiger lycanthrope.\"+\r\n\t\t(typePF ? \"\\n \\u2022 Pounce: \" : \" \") + \"I can pounce in my tiger and hybrid form, see notes.\",\r\n\t\t\"Keen Hearing and Smell: I have adv. on Wis (Perception) checks using hearing or smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 17 unless it was already higher; I gain 60 ft darkvision\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a tiger-humanoid hybrid, into a Large tiger, or back\",\r\n\t\t\t\t\t\"In my tiger and hybrid forms, I gain 40 ft walking speed, a bite attack, and a claw attack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with weretiger lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, none of which can be with my weretiger bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (tiger/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, no bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [17, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Weretiger Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(weretiger|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 210]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Tiger and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Weretiger Claw\",\r\n\t\t\t\tregExpSearch : /^(?=.*(weretiger|lycanthrope))(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 210]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Tiger and Hybrid form only; Can be use to pounce\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Darkvision\", 60]]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on hearing or smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Hearing and Smell\", 0]]\r\n\t\t},\r\n\t\tweretiger_pounce : {\r\n\t\t\tname : \"Pounce\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Pounce\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If, in one turn, I move straight for 15 ft and then hit with my claw, I can pounce a target\",\r\n\t\t\t\t\t\"The creature must make a Str save or be knocked prone (DC 8 + Prof Bonus + Str mod)\",\r\n\t\t\t\t\t\"If I knocked someone prone, I can then make a bite attack against them as a bonus action\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in tiger or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"bonus action\", \"Bite after successful Pounce\"]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Mountain Dwarf Weretiger\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"weretiger\", [\r\n\t\t\t\"Strength increase to 17 unless it was already higher.\",\r\n\t\t\t\"Keen Hearing and Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Weretiger\", \"Weretigers\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t},\r\n\tabilitySave : 1 // for pounce trait\r\n};\r\nRaceList[\"lycanthrope-werewolf\"] = {\r\n\tregExpSearch : /were.?wol(f|ve)|^(?=.*lycanthrope)(?=.*wol(f|ve)).*$/i,\r\n\tname : \"Werewolf\",\r\n\tsource : [[\"M\", 211]],\r\n\tplural : \"Werewolves\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Werewolf (+1 to all ability scores; min 15 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a wolf-humanoid hybrid, into a wolf, or back. In those forms, I gain 40 ft walking speed, a bite attack, and +1 AC. In my hybrid form, I also gain a claws attack. My stats don't otherwise change when transformed, but my equipment doesn't transform and I revert back when I die. Humanoids hit by my bite must save or be cursed with werewolf lycanthrope.\",\r\n\t\t\"Keen Hearing and Smell: I have adv. on Wis (Perception) checks using hearing or smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 211]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 15 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a wolf-humanoid hybrid, into a wolf, or back\",\r\n\t\t\t\t\t\"In my wolf and hybrid forms, I gain 40 ft walking speed, a bite attack, and +1 AC\",\r\n\t\t\t\t\t\"In my hybrid form, I also gain a claws attack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with werewolf lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my werewolf bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (wolf/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [15, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Werewolf Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werewolf|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 211]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Wolf and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Wolf-hybrid Claws\",\r\n\t\t\t\tregExpSearch : /^(?=.*wolf)(?=.*hybrid)(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 211]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 4, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Hybrid form only\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in wolf/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my wolf or wolf-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\tsource : [[\"M\", 211]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on hearing or smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Hearing and Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Rock Gnome Werewolf\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"werewolf\", [\r\n\t\t\t\"Strength increase to 15 unless it was already higher.\",\r\n\t\t\t\"Keen Hearing and Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Werewolf\", \"Werewolves\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\n\n// pub_20141209_DMG.js\r\n// This file adds all the player-material from the Dungeon Master's Guide to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.D={\r\n\tname : \"Dungeon Master's Guide\",\r\n\tabbreviation : \"DMG\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/dungeon-masters-guide\",\r\n\tdate : \"2014/12/09\"\r\n};\r\n\r\n// Races\r\nRaceList[\"aasimar\"] = {\r\n\tregExpSearch : /^(?!.*(fallen|protector|scourge))((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel)))).*$/i,\r\n\tname : \"Aasimar\",\r\n\tsource : [[\"D\", 286]],\r\n\tplural : \"Aasimar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 1, 2],\r\n\ttrait : \"Aasimar (+1 Wisdom, +2 Charisma)\\n\\nCelestial Legacy:\\n   I know the Light cantrip.\\n   Once I reach 3rd level, I can cast the Lesser Restoration spell once per long rest.\\n   Once I reach 5th level, I can cast the Daylight spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Celestial Legacy (level 1)\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tname : \"Celestial Legacy (level 3)\",\r\n\t\t\tlimfeaname : \"Lesser Restoration\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Celestial Legacy (level 3)\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"daylight\" : {\r\n\t\t\tname : \"Celestial Legacy (level 5)\",\r\n\t\t\tlimfeaname : \"Daylight\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 5,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Celestial Legacy (level 5)\",\r\n\t\t\t\tspells : [\"daylight\"],\r\n\t\t\t\tselection : [\"daylight\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"eladrin\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin)\",\r\n\tsource : [[\"D\", 286]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 1, 0, 0],\r\n\ttrait : \"Eladrin (+2 Dexterity, +1 Intelligence)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nFey Step: I can cast the Misty Step spell once using this trait. I regain the ability to do so when I finish a short rest.\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fey Step\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Subclasses\r\nAddSubClass(\"cleric\", \"death domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(death|dead|dying)).*$/i,\r\n\tsubname : \"Death Domain\",\r\n\tsource : [[\"D\", 96]],\r\n\tspellcastingExtra : [\"false life\", \"ray of sickness\", \"blindness/deafness\", \"ray of enfeeblement\", \"animate dead\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"cloudkill\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"D\", 96]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons\"),\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Reaper\",\r\n\t\t\tsource : [[\"D\", 96]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I learn one necromancy cantrip of my choice from any spell list\",\r\n\t\t\t\t\"My necromancy, single-target cantrips can affect two targets within 5 ft of each other\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reaper\",\r\n\t\t\t\t\"class\" : \"any\",\r\n\t\t\t\tschool : [\"Necro\"],\r\n\t\t\t\tlevel : [0, 0]\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.school == \"Necro\" && spellObj.level === 0) {\r\n\t\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\t\tcase \"chill touch\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Spell attack\", \"2 crea in 5 ft spell atk\").replace(\"Necrotic\", \"Necro.\").replace(\"at CL 5, 11, and 17\", \"CL 5/11/17\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"spare the dying\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 living creature\", \"1 living creature (or 2 within 5 ft of each other)\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"toll the dead\" :\r\n\t\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/1 crea(ture)?/i, \"2 crea in 5 ft\").replace(\"disadvantage\", \"disadv.\").replace(\"save halves\", \"save half\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My necromancy, single-target cantrips can affect two targets within 5 ft of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Touch of Death\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"When I hit a creature with a melee attack, I can deal extra necrotic damage\"),\r\n\t\t\tadditional : [\"\", \"+9 damage\", \"+11 damage\", \"+13 damage\", \"+15 damage\", \"+17 damage\", \"+19 damage\", \"+21 damage\", \"+23 damage\", \"+25 damage\", \"+27 damage\", \"+29 damage\", \"+31 damage\", \"+33 damage\", \"+35 damage\", \"+37 damage\", \"+39 damage\", \"+41 damage\", \"+43 damage\", \"+45 damage\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Inescapable Destruction\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I deal necrotic damage with spells or Channel Divinity, I ignore resistance to it\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 necrotic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 necrotic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra necrotic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Improved Reaper\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I cast a 5th-level or lower necromancy spell that has one target, I can target two\",\r\n\t\t\t\t\"They need to be within 5 ft of each other; I have to provide material comp. for both\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.school == \"Necro\" && spellObj.level && spellObj.level < 6) {\r\n\t\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\t\tcase \"blindness/deafness\" :\r\n\t\t\t\t\t\t\t\t\t// only 2 target if not cast at higher SL\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 crea in 5 ft or \" + spellObj.description;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"contagion\" :\r\n\t\t\t\t\t\t\t\tcase \"inflict wounds\" :\r\n\t\t\t\t\t\t\t\tcase \"ray of enfeeblement\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(Melee )?spell attack/i, \"2 \" + \"$1\".toLowerCase() + \"spell atk in 5 ft\").replace(\"spell ends\", \"ends\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"cause fear\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 crea in 5 ft or 1+1/SL crea max 30 ft apart (no constr/undead), save or frightened; save end of turn\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"feign death\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 willing crea in 5 ft appear dead; Are blinded, incapacitated, dmg resist. all but Psychic, speed 0\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"gentle repose\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 corpse protected from\", \"2 corpses in 5 ft suffer no\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"raise dead\" :\r\n\t\t\t\t\t\t\t\tcase \"revivify\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"a creature's body that has\", \"body of 2 crea in 5 ft that\").replace(\"cons.)\", \"cons. \\xD72)\");\r\n\t\t\t\t\t\t\t\t\tspellObj.compMaterial += \" (once for each target)\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"speak with dead\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 corpse with mouth answers 5 questions\", \"2 corpses in 5 ft answer 5 questions each\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"enervation\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"action\", \"1 a\").replace(\"see book\", \"see B\");\r\n\t\t\t\t\t\t\t\tcase \"bestow curse\" :\r\n\t\t\t\t\t\t\t\tcase \"blight\" :\r\n\t\t\t\t\t\t\t\tcase \"cause fear-uass\" :\r\n\t\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\t\tcase \"negative energy flood\" :\r\n\t\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/1 crea(ture)?/i, \"2 crea in 5 ft\").replace(\"disadvantage\", \"disadv.\").replace(\"save halves\", \"save half\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My necromancy, single-target 5th-level or lower spells can affect two targets within 5 ft of each other if both are within range of the spell. The spells still require material components for each target separately.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oathbreaker\", {\r\n\tregExpSearch : /^((?=.*blackguard)|((?=.*(oath.*breaker|breaker.*oath))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))).*$/i,\r\n\tsubname : \"Oathbreaker\",\r\n\tsource : [[\"D\", 97]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Control Undead\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one undead (CR < paladin level) I can see in 30 ft must make a Wis save\",\r\n\t\t\t\t\"If failed, it must obey my commands for 24 hours or until I use this on another\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"hellish rebuke\", \"inflict wounds\", \"crown of madness\", \"darkness\", \"animate dead\", \"bestow curse\", \"blight\", \"confusion\", \"contagion\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Dreadful Aspect\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, anyone I choose within 30 ft that can see me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is frightened for 1 min or until it succeeds a save at the end of its turns\",\r\n\t\t\t\t\"It can't save at the end of its turn if it's still within 30 ft of me\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Hate\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Fiends/undead within range and I add my Cha mod as bonus on melee weapon damage\",\r\n\t\t\t\t\"Multiple Auras of Hate don't stack; only the strongest applies\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Cha mod added to damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my Charisma modifier to my melee weapon damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Number(What(\"Cha Mod\"));\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Supernatural Resistance\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I have resistance to bludgeoning/piercing/slashing damage from nonmagical weapons\"),\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Dread Lord\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I gain a 30-ft aura of gloom that reduces bright light to dim for 1 min\",\r\n\t\t\t\t\"If frightened of me, foes starting their turn in the aura take 4d10 psychic damage\",\r\n\t\t\t\t\"Attacks vs. my allies and me inside the aura have disadvantage if attackers need sight\",\r\n\t\t\t\t\"As a bonus action, I can make a melee spell attack vs. a target inside the aura\",\r\n\t\t\t\t\"If this attack hits, it does 3d10 + Charisma modifier necrotic damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Magic Items not found in the SRD\r\nMagicItemsList[\"alchemy jug\"] = {\r\n\tname : \"Alchemy Jug\",\r\n\tsource : [[\"D\", 150]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"As an action, command the jug to produce liquid; or an action to uncorked it and pour 2 gal/min. After producing, it only makes the same up to its max, until next dawn. Oil (1 qt), acid (8 fl oz), basic poison (1/2 fl oz), beer (4 gal), honey/wine (1 gal), fresh water (8 gal), mayonnaise/vinegar (2 gal), salt water (12 gal).\",\r\n\tdescriptionLong : \"A heavy ceramic jug. As an action, the jug can be commanded to hold a chosen liquid. With another action, I can uncork the jug and pour the liquid out at 2 gallons per minute. Once commanded to produce a liquid, it can't produce a different one or more than the maximum of one, until the next dawn.\\rLiquids (with maximum): acid (8 fl. oz.), basic poison (1/2 fl. oz.), beer (4 gallons), honey (1 gallon), mayonnaise (2 gallons), oil (1 quart), vinegar (2 gallons), fresh water (8 gallons), salt water (12 gallons), wine (1 gallon).\",\r\n\tdescriptionFull : \"This ceramic jug appears to be able to hold a gallon of liquid and weighs 12 pounds whether full or empty. Sloshing sounds can be heard from within the jug when it is shaken, even if the jug is empty.\"+\r\n\t\"\\n   You can use an action and name one liquid from the table below to cause the jug to produce the chosen liquid. Afterward, you can uncork the jug as an action and pour that liquid out, up to 2 gallons per minute. The maximum amount of liquid the jug can produce depends on the liquid you named.\"+\r\n\t\"\\n   Once the jug starts producing a liquid, it can't produce a different one, or more of one that has reached its maximum, until the next dawn.\\n\\n\"+\r\n\ttoUni(\"Max        \\tLiquid\\t\\tMax        \\tLiquid\")+\r\n\t\"\\n8 ounces  \\tAcid\\t\\t1 quart   \\tOil\"+\r\n\t\"\\n1/2 ounce\\tBasic poison\\t2 gallons  \\tVinegar\"+\r\n\t\"\\n4 gallons  \\tBeer\\t\\t8 gallons  \\tWater, fresh\"+\r\n\t\"\\n1 gallon    \\tHoney\\t\\t12 gallons\\tWater, salt\"+\r\n\t\"\\n2 gallons \\tMayonnaise\\t1 gallon    \\tWine\",\r\n\tweight : 12\r\n}\r\nMagicItemsList[\"cap of water breathing\"] = {\r\n\tname : \"Cap of Water Breathing\",\r\n\tsource : [[\"D\", 157]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this cap underwater, I can speak its command word as an action to create a bubble of air around my head. It allows me to breathe normally underwater. This bubble stays with me until I speak the command word again, the cap is removed, or I am no longer underwater.\",\r\n\tdescriptionFull : \"While wearing this cap underwater, you can speak its command word as an action to create a bubble of air around your head. It allows you to breathe normally underwater. This bubble stays with you until you speak the command word again, the cap is removed, or you are no longer underwater.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"cloak of invisibility\"] = {\r\n\tname : \"Cloak of Invisibility\",\r\n\tsource : [[\"D\", 158]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"As an action, I can pull the hood of this cloak down or up over my head, making myself invisible (down) or visible again (up). While invisible, anything I carry or wear is invisible as well. It functions for 2 hours, usable in increments of 1 minute. It regains 1 hour of duration for every 12 hours not being used.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can pull its hood over your head to cause yourself to become invisible. While you are invisible, anything you are carrying or wearing is invisible with you. You become visible when you cease wearing the hood. Pulling the hood up or down requires an action.\\n   Deduct the time you are invisible, in increments of 1 minute, from the cloak's maximum duration of 2 hours. After 2 hours of use, the cloak ceases to function. For every uninterrupted period of 12 hours the cloak goes unused, it regains 1 hour of duration.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\tusages : \"120 min\",\r\n\trecovery : \"Special\",\r\n\tadditional : \"regain 1h/12h\"\r\n}\r\nMagicItemsList[\"driftglobe\"] = {\r\n\tname : \"Driftglobe\",\r\n\tsource : [[\"D\", 166]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : [\"A\", \"B\"],\r\n\tdescription : \"By speaking its command word while within 60 ft, this glass sphere casts Light or Daylight on itself. Daylight only works once per dawn. While lit up, I can use an action to speak another command word to make it hover 5 ft off the ground and follow me at a distance of 60 ft. It stops hovering when grasped.\",\r\n\tdescriptionFull : \"This small sphere of thick glass weighs 1 pound. If you are within 60 feet of it, you can speak its command word and cause it to emanate the Light or Daylight spell. Once used, the Daylight effect can't be used again until the next dawn.\\n   You can speak another command word as an action to make the illuminated globe rise into the air and float no more than 5 feet off the ground. The globe hovers in this way until you or another creature grasps it. If you move more than 60 feet from the hovering globe, it follows you until it is within 60 feet of you. It takes the shortest route to do so. If prevented from moving, the globe sinks gently to the ground and becomes inactive, and its light winks out.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \" (hover)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Daylight\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"On globe\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"On globe\",\r\n\t\tspells : [\"daylight\"],\r\n\t\tselection : [\"daylight\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"light\" : {\r\n\t\t\trange : \"Globe\",\r\n\t\t\tdescription : \"Driftglobe sheds bright light in a 20-ft radius and dim light in an additional 20-ft radius\",\r\n\t\t\tchanges : \"The spell can only affect the globe.\"\r\n\t\t},\r\n\t\t\"daylight\" : {\r\n\t\t\trange : \"Globe\",\r\n\t\t\tdescription : \"Driftglobe shed 60-ft rad bright light + 60-ft dim light; only magical darkness of SL 4+ works in it\",\r\n\t\t\tchanges : \"The spell can only affect the globe.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"efreeti chain\"] = {\r\n\tname : \"Efreeti Chain\",\r\n\tsource : [[\"D\", 167]],\r\n\ttype : \"armor (chain mail)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"While wearing this armor, I gain a +3 bonus to AC, I am immune to fire damage, and I can understand and speak Primordial. In addition, I can stand on and walk across molten rock as if it were solid ground.\",\r\n\tdescriptionFull : \"While wearing this armor, you gain a +3 bonus to AC, you are immune to fire damage, and you can understand and speak Primordial. In addition, you can stand on and walk across molten rock as if it were solid ground.\",\r\n\tattunement : true,\r\n\tweight : 55,\r\n\tlanguageProfs : [\"Primordial\"],\r\n\tsavetxt : { immune : [\"fire\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*efreeti)(?=.*chain).*$/i,\r\n\t\tname : \"Efreeti Chain\",\r\n\t\tsource : [[\"D\", 167]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"16+3\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 55,\r\n\t\tstrReq : 13,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"elixir of health\"] = {\r\n\tname : \"Elixir of Health\",\r\n\tsource : [[\"D\", 168]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to cure any disease, and removing the blinded, deafened, paralyzed, and poisoned conditions. The potion's clear red liquid has tiny bubbles of light in it.\",\r\n\tdescriptionFull : \"When you drink this potion, it cures any disease afflicting you, and it removes the blinded, deafened, paralyzed, and poisoned conditions. The clear red liquid has tiny bubbles of light in it.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"gloves of thievery\"] = {\r\n\tname : \"Gloves of Thievery\",\r\n\tsource : [[\"D\", 172]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"These gloves are invisible while worn. While wearing them, I gain a +5 bonus to Dexterity (Sleight of Hand) checks and Dexterity checks made to pick locks.\",\r\n\tdescriptionFull : \"These gloves are invisible while worn. While wearing them, you gain a +5 bonus to Dexterity (Sleight of Hand) checks and Dexterity checks made to pick locks.\",\r\n\taddMod : [{ type: \"skill\", field : \"Sleight of Hand\", mod : 5, text : \"I gain a +5 bonus to Dexterity (Sleight of Hand) checks while wearing Gloves of Thievery.\" }]\r\n}\r\nMagicItemsList[\"instrument of the bards\"] = {\r\n\tname : \"Instrument of the Bards\",\r\n\tsource : [[\"D\", 176]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\tdescription : \"If I play this exquisite, magical instruments while casting a spell that has a somatic or material component and charms on a failed save, it imposes disadvantage on that save. I can also use it to cast a set of spells, each once per dawn, using my spellcasting ability and spell save DC.\",\r\n\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\",\r\n\tattunement : true,\r\n\tweight : 3, // Magic of Faerûn (2001) page 161\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tchoices : [\"Anstruth Harp (very rare)\", \"Canaith Mandolin (rare)\", \"Cli Lyre (rare)\", \"Doss Lute (uncommon)\", \"Fochlucan Bandore (uncommon)\", \"Mac-Fuirmidh Cittern (uncommon)\", \"Ollamh Harp (legendary)\"],\r\n\t\"anstruth harp (very rare)\" : {\r\n\t\tname : \"Anstruth Harp [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Anstruth Harp\",\r\n\t\trarity : \"very rare\",\r\n\t\tmagicItemTable : \"H\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Anstruth harp can be used to cast Control Weather, Cure Wounds (5th level), and Wall of Thorns.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"control weather\", \"cure wounds\", \"wall of thorns\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"control weather\", \"cure wounds\", \"wall of thorns\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"cure wounds\" : {\r\n\t\t\t\tdescription : \"1 living creature heals 5d8+spellcasting ability modifier HP\",\r\n\t\t\t\tchanges : \"When using the Anstruth Harp to cast Cure Wounds, it is cast at 5th-level.\"\r\n\t\t\t},\r\n\t\t\t\"control weather\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tchanges : \"Casting time is only an action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"canaith mandolin (rare)\" : {\r\n\t\tname : \"Canaith Mandolin [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Canaith Mandolin\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Canaith mandolin can be used to cast Cure Wounds (3rd level), Dispel Magic, and Protection from Energy (lightning only).\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"cure wounds\", \"dispel magic\", \"protection from energy\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"cure wounds\", \"dispel magic\", \"protection from energy\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"cure wounds\" : {\r\n\t\t\t\tdescription : \"1 living creature heals 3d8+spellcasting ability modifier HP\",\r\n\t\t\t\tchanges : \"When using the Canaith Mandolin to cast Cure Wounds, it is cast at 3rd-level.\"\r\n\t\t\t},\r\n\t\t\t\"protection from energy\" : {\r\n\t\t\t\tdescription : \"1 creature gains resistance to Lightning damage for the duration\",\r\n\t\t\t\tchanges : \"When using the Canaith Mandolin to cast Protection from Energy, it can only grant resistance to lightning damage.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"cli lyre (rare)\" : {\r\n\t\tname : \"Cli Lyre [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Cli Lyre\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Cli lyre can be used to cast Stone Shape, Wall of Fire, and Wind Wall.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"stone shape\", \"wall of fire\", \"wind wall\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"stone shape\", \"wall of fire\", \"wind wall\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"doss lute (uncommon)\" : {\r\n\t\tname : \"Doss Lute [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Doss Lute\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Doss lute can be used to cast Animal Friendship, Protection from Energy (fire only), and Protection from Poison.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"animal friendship\", \"protection from energy\", \"protection from poison\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"animal friendship\", \"protection from energy\", \"protection from poison\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"protection from energy\" : {\r\n\t\t\t\tdescription : \"1 creature gains resistance to Fire damage for the duration\",\r\n\t\t\t\tchanges : \"When using the Doss Lute to cast Protection from Energy, it can only grant resistance to fire damage.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"fochlucan bandore (uncommon)\" : {\r\n\t\tname : \"Fochlucan Bandore [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Fochlucan Bandore\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Fochlucan bandore can be used to cast Entangle, Faerie Fire, Shillelagh, and Speak with Animals.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"entangle\", \"faerie fire\", \"shillelagh\", \"speak with animals\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"entangle\", \"faerie fire\", \"shillelagh\", \"speak with animals\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 8,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"mac-fuirmidh cittern (uncommon)\" : {\r\n\t\tname : \"Mac-Fuirmidh Cittern [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Mac-Fuirmidh Cittern\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Mac-Fuirmidh cittern can be used to cast Barkskin, Cure Wounds, and Fog Cloud.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"barkskin\", \"cure wounds\", \"fog cloud\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"barkskin\", \"cure wounds\", \"fog cloud\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"ollamh harp (legendary)\" : {\r\n\t\tname : \"Ollamh Harp [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Ollamh Harp\",\r\n\t\trarity : \"legendary\",\r\n\t\tmagicItemTable : \"I\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Ollamh harp can be used to cast Confusion, Control Weather, and Fire Storm.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"confusion\", \"control weather\", \"fire storm\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"confusion\", \"control weather\", \"fire storm\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"control weather\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tchanges : \"Casting time is only an action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"mariner's armor\"] = {\r\n\tname : \"Mariner's Armor\",\r\n\tnameTest : \"Mariner's\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this armor, I have a swimming speed equal to my walking speed. In addition, whenever I start my turn underwater with 0 hit points, the armor causes me to rise 60 ft toward the surface. The armor is decorated with fish and shell motifs.\",\r\n\tdescriptionFull : \"While wearing this armor, you have a swimming speed equal to your walking speed. In addition, whenever you start your turn underwater with 0 hit points, the armor causes you to rise 60 feet toward the surface. The armor is decorated with fish and shell motifs.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n}\r\nMagicItemsList[\"potion of fire breath\"] = {\r\n\tname : \"Potion of Fire Breath\",\r\n\tsource : [[\"D\", 187]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to, for 1 hour, use a bonus action to do 4d6 fire damage at a target within 30 ft, Dex save DC 13 halves. This can be done 3 times. This potion's orange liquid flickers, and smoke fills the top of the container and wafts out whenever it is opened.\",\r\n\tdescriptionFull : \"After drinking this potion, you can use a bonus action to exhale fire at a target within 30 feet of you. The target must make a DC 13 Dexterity saving throw, taking 4d6 fire damage on a failed save, or half as much damage on a successful one. The effect ends after you exhale the fire three times or when 1 hour has passed. This potion's orange liquid flickers, and smoke fills the top of the container and wafts out whenever it is opened.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of invulnerability\"] = {\r\n\tname : \"Potion of Invulnerability\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to have resistance to all damage for 1 minute. The potion's syrupy liquid looks like liquefied iron.\",\r\n\tdescriptionFull : \"For 1 minute after you drink this potion, you have resistance to all damage. The potion's syrupy liquid looks like liquefied iron.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of longevity\"] = {\r\n\tname : \"Potion of Longevity\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to reduce the consumer's physical age is by 1d6+6 years, to a minimum of 13 years. Subsequent consumptions of this type of potion have a 10% cumulative chance to instead age the consumer by 1d6+6 years.\",\r\n\tdescriptionLong : \"Once as an action, I can drink this potion or administer it to another to reduce the consumer's physical age is by 1d6+6 years, to a minimum of 13 years. Subsequent consumptions of this type of potion have a 10% cumulative chance to instead age the consumer by 1d6+6 years. Suspended in this amber liquid are a scorpion's tail, an adder's fang, a dead spider, and a tiny heart that, against all reason, is still beating. These ingredients vanish when the potion is opened.\",\r\n\tdescriptionFull : \"When you drink this potion, your physical age is reduced by 1d6+6 years, to a minimum of 13 years. Each time you subsequently drink a potion of longevity, there is 10 percent cumulative chance that you instead age by 1d6+6 years. Suspended in this amber liquid are a scorpion's tail, an adder's fang, a dead spider, and a tiny heart that, against all reason, is still beating. These ingredients vanish when the potion is opened.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of vitality\"] = {\r\n\tname : \"Potion of Vitality\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to remove any exhaustion, disease, and poison affecting the consumer. For the next 24 hours, the consumer regains the maximum number of HP for any HD used. The potion's crimson liquid regularly pulses with dull light, calling to mind a heartbeat.\",\r\n\tdescriptionFull : \"When you drink this potion, it removes any exhaustion you are suffering and cures any disease or poison affecting you. For the next 24 hours, you regain the maximum number of hit points for any Hit Die you spend. The potion's crimson liquid regularly pulses with dull light, calling to mind a heartbeat.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"rod of resurrection\"] = {\r\n\tname : \"Rod of Resurrection\",\r\n\tsource : [[\"D\", 197]],\r\n\ttype : \"rod\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"This rod has 5 charges and regains 1 expended charge daily at dawn. While I hold it, I can use an action to expend 1 charge and cast Heal from it, or expend 5 charges and cast Resurrection from it. If the rod is reduced to 0 charges, roll a d20. On a 1, the rod disappears in a burst of radiance.\",\r\n\tdescriptionFull : \"The rod has 5 charges. While you hold it, you can use an action to cast one of the following spells from it: Heal (expends 1 charge) or Resurrection (expends 5 charges).\\n   The rod regains 1 expended charge daily at dawn. If the rod is reduced to 0 charges, roll a d20. On a 1, the rod disappears in a burst of radiance.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tprerequisite : \"Requires attunement by a cleric, druid, or paladin\",\r\n\tprereqeval : function(v) { return classes.known.cleric || classes.known.druid || classes.known.paladin ? true : false; },\r\n\tusages : 5,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"heal\"],\r\n\t\tselection : [\"heal\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"5 charges\",\r\n\t\tspells : [\"resurrection\"],\r\n\t\tselection : [\"resurrection\"],\r\n\t\tfirstCol : 5\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"resurrection\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Casting time is only 1 action instead of 1 hour.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"rod of the pact keeper, +1, +2, or +3\"] = {\r\n\tname : \"Rod of the Pact Keeper, +1, +2, or +3\",\r\n\tsource : [[\"D\", 197]],\r\n\ttype : \"rod\",\r\n\tdescription : \"While holding this rod, I gain a bonus to spell attack rolls and to the saving throw DCs of my warlock spells, determined by the rod's rarity: uncommon (+1), rare (+2), or very rare (+3). As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\tdescriptionFull : \"While holding this rod, you gain a bonus to spell attack rolls and to the saving throw DCs of your warlock spells. The bonus is determined by the rod's rarity: uncommon (+1), rare (+2), or very rare (+3).\\n   In addition, you can regain one warlock spell slot as an action while holding the rod. You can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tprerequisite : \"Requires attunement by a warlock\",\r\n\tprereqeval : function(v) { return classes.known.warlock; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tlimfeaname : \"Rod of the Pact Keeper (warlock spell slot)\",\r\n\taction : [[\"action\", \"\"]],\r\n\tallowDuplicates : true,\r\n\tchoices : [\"+1 Rod (uncommon)\", \"+2 Rod (rare)\", \"+3 Rod (very rare)\"],\r\n\t\"+1 rod (uncommon)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescription : \"While holding this rod, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 rod (rare)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +2\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"While holding this rod, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 rod (very rare)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tmagicItemTable : \"H\",\r\n\t\tdescription : \"While holding this rod, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"saddle of the cavalier\"] = {\r\n\tname : \"Saddle of the Cavalier\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While in this saddle on a mount, I can't be dismounted against my will if I am conscious, and attack rolls against the mount have disadvantage.\",\r\n\tdescriptionFull : \"While in this saddle on a mount, you can't be dismounted against your will if you're conscious, and attack rolls against the mount have disadvantage.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"scroll of protection\"] = {\r\n\tname : \"Scroll of Protection\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"scroll\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops a creature type from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected.\",\r\n\tdescriptionFull : \"Each scroll of protection works against a specific type of creature chosen by the DM or determined randomly by rolling on the following table.\\n\\n\" + [\r\n\t\ttoUni(\"d100\\tCreature Type\\td100\\tCreature Type\"),\r\n\t\t\"01-10\\tAberrations\\t41-50\\tFey\",\r\n\t\t\"11-20\\tBeasts\\t\\t51-75\\tFiends\",\r\n\t\t\"21-30\\tCelestials   \\t76-80\\tPlants\",\r\n\t\t\"31-40\\tElementals\\t81-00\\tUndead\",\r\n\t].join(\"\\n\") + \"\\nUsing an action to read the scroll encloses you in an invisible barrier that extends from you to form a 5-foot-radius, 10-foot-high cylinder. For 5 minutes, this barrier prevents creatures of the specified type from entering or affecting anything within the cylinder.\\n   The cylinder moves with you and remains centered on you. However, if you move in such a way that an aberration would be inside the cylinder, the effect ends.\\n   A creature can attempt to overcome the barrier by using an action to make a DC 15 Charisma check. On a success, the creature ceases to be affected by the barrier.\",\r\n\tchoices : [\"Aberrations\", \"Beasts\", \"Celestials\", \"Elementals\", \"Fey\", \"Fiends\", \"Plants\", \"Undead\"],\r\n\t\"aberrations\" : {\r\n\t\tname : \"Scroll of Protection from Aberrations\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops aberrations from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes an aberration, it ends.\"\r\n\t},\r\n\t\"beasts\" : {\r\n\t\tname : \"Scroll of Protection from Beasts\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops beasts from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a beast, it ends.\"\r\n\t},\r\n\t\"celestials\" : {\r\n\t\tname : \"Scroll of Protection from Celestials\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops celestials from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes a celestial, it ends.\"\r\n\t},\r\n\t\"elementals\" : {\r\n\t\tname : \"Scroll of Protection from Elementals\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops elementals from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes an elemental, it ends.\"\r\n\t},\r\n\t\"fey\" : {\r\n\t\tname : \"Scroll of Protection from Fey\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops fey from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a fey, it ends.\"\r\n\t},\r\n\t\"fiends\" : {\r\n\t\tname : \"Scroll of Protection from Fiends\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops fiends from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a fiend, it ends.\"\r\n\t},\r\n\t\"plants\" : {\r\n\t\tname : \"Scroll of Protection from Plants\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops plants from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a plant, it ends.\"\r\n\t},\r\n\t\"undead\" : {\r\n\t\tname : \"Scroll of Protection from Undead\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops undead from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes a undead, it ends.\"\r\n\t}\r\n}\r\nMagicItemsList[\"sending stones\"] = {\r\n\tname : \"Sending Stones\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"While I touch one of this pair of stones, I can use an action to cast Sending, targeting the bearer of the other stone. If no creature has the other stone, the spell won't cast. Once it is cast, neither stone can be used again until the next dawn. Sending allows each bearer to communicate up to 25 words.\",\r\n\tdescriptionFull : \"Sending stones come in pairs, with each smooth stone carved to match the other so the pairing is easily recognized. While you touch one stone, you can use an action to cast the Sending spell from it. The target is the bearer of the other stone. If no creature bears the other stone, you know that fact as soon as you use the stone and don't cast the spell.\\n   Once Sending is cast through the stones, they can't be used again until the next dawn. If one of the stones in a pair is destroyed, the other one becomes nonmagical.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"To other stone bearer only\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tusages : 1, \r\n\trecovery : \"dawn\",\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tdescription : \"Send a 25 word message to the bearer of the other Sending Stone, who can respond with 25 words\",\r\n\t\t\tchanges : \"Using one stone of a pair of Sending Stones, the spell can only target the bearer of the other stone of the pair.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"sentinel shield\"] = {\r\n\tname : \"Sentinel Shield\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"shield\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While holding this shield, I have advantage on initiative rolls and Wisdom (Perception) checks. The shield is emblazoned with a symbol of an eye.\",\r\n\tdescriptionFull : \"While holding this shield, you have advantage on initiative rolls and Wisdom (Perception) checks. The shield is emblazoned with a symbol of an eye.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Sentinel Shield\",\r\n\tadvantages : [[\"Initiative\", true], [\"Perception\", true]],\r\n\tvision : [[\"Adv. on Perception checks\", 0]]\r\n}\r\nMagicItemsList[\"staff of the adder\"] = {\r\n\tname : \"Staff of the Adder\",\r\n\tsource : [[\"D\", 203]],\r\n\ttype : \"staff\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"As a bonus action, I can speak this staff's command word to animate its snake head for 1 minute or make it inanimate again. While animated, I can use it in melee (1d6 piercing + DC 15 Con save or 3d6 poison), but it can be attacked and has AC 15 and 20 HP (full every time). If it reaches 0 HP, the staff is destroyed.\",\r\n\tdescriptionFull : \"You can use a bonus action to speak this staff's command word and make the head of the staff become that of an animate poisonous snake for 1 minute. By using another bonus action to speak the command word again, you return the staff to its normal inanimate form.\\n   You can make a melee attack using the snake head, which has a reach of 5 feet. Your proficiency bonus applies to the attack roll. On a hit, the target takes 1d6 piercing damage and must succeed on a DC 15 Constitution saving throw or take 3d6 poison damage.\\n   The snake head can be attacked while it is animate. It has an Armor Class of 15 and 20 hit points. If the head drops to 0 hit points, the staff is destroyed. As long as it's not destroyed, the staff regains all lost hit points when it reverts to its inanimate form.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tprerequisite : \"Requires attunement by a cleric, druid, or warlock\",\r\n\tprereqeval : function(v) { return classes.known.cleric || classes.known.druid || classes.known.warlock ? true : false; },\r\n\taction : [[\"bonus action\", \" (animate/end)\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*snake)(?=.*head)(?=.*staff)(?=.*adder).*$/i,\r\n\t\tname : \"Animated Snake Head from Staff of the Adder\",\r\n\t\tsource : [[\"D\", 203]],\r\n\t\tlist : \"melee\",\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tweight : 4,\r\n\t\tdescription : \"DC 15 Constitution save or 3d6 poison damage\",\r\n\t\tabilitytodamage : false,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"sword of answering\"] = {\r\n\tname : \"Sword of Answering\",\r\n\tsource : [[\"D\", 206]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a gem set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\",\r\n\tdescriptionFull : 'In the world of Greyhawk, only nine of these blades are known to exist. Each is patterned after the legendary sword Fragarach, which is variously translated as \"Final Word.\" Each of the nine swords has its own name and alignment, and each bears a different gem in its pommel.\\n   You gain a +3 bonus to attack and damage rolls made with this sword. In addition, while you hold the sword, you can use your reaction to make one melee attack with it against any creature in your reach that deals damage to you. You have advantage on the attack roll, and any damage dealt with this special attack ignores any damage immunity or resistance the target has.\\n\\n' + [\r\n\t\ttoUni(\"Name\\t\\tAlignment\\tGem\"),\r\n\t\t\"Answerer    \\tChaotic good\\tEmerald\",\r\n\t\t\"Back Talker\\tChaotic evil\\tJet\",\r\n\t\t\"Concluder    \\tLawful neutral\\tAmethyst\",\r\n\t\t\"Last Quip    \\tChaotic neutral\\tTourmaline\",\r\n\t\t\"Rebutter\\t\\tNeutral good\\tTopaz\",\r\n\t\t\"Replier\\t\\tNeutral\\t\\tPeridot\",\r\n\t\t\"Retorter\\t\\tLawful good\\tAquamarine\",\r\n\t\t\"Scather\\t\\tLawful evil\\tGarnet\",\r\n\t\t\"Squelcher    \\tNeutral evil\\tSpinel\"\r\n\t].join(\"\\n\"),\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /^(?=.*sword)(?=.*answering).*$/i,\r\n\t\tname : \"Sword of Answering\",\r\n\t\tsource : [[\"D\", 206]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tchoices : [\"Answerer (chaotic good)\", \"Back Talker (chaotic evil)\", \"Concluder (lawful neutral)\", \"Last Quip (chaotic neutral)\", \"Rebutter (neutral good)\", \"Replier (neutral)\", \"Retorter (lawful good)\", \"Scather (lawful evil)\", \"Squelcher (neutral evil)\"],\r\n\t\"answerer (chaotic good)\" : {\r\n\t\tname : \"Sword of Answering [Answerer]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an emerald set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"back talker (chaotic evil)\" : {\r\n\t\tname : \"Sword of Answering [Back Talker]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has jet set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"concluder (lawful neutral)\" : {\r\n\t\tname : \"Sword of Answering [Concluder]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*neutral).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an amethyst set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"last quip (chaotic neutral)\" : {\r\n\t\tname : \"Sword of Answering [Last Quip]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*neutral).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a tourmaline set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"rebutter (neutral good)\" : {\r\n\t\tname : \"Sword of Answering [Rebutter]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a topaz set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"replier (neutral)\" : {\r\n\t\tname : \"Sword of Answering [Replier]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?!.*(chaotic|lawful|evil|good)).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a peridot set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"retorter (lawful good)\" : {\r\n\t\tname : \"Sword of Answering [Retorter]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an aquamarine set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"scather (lawful evil)\" : {\r\n\t\tname : \"Sword of Answering [Scather]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a garnet set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"squelcher (neutral evil)\" : {\r\n\t\tname : \"Sword of Answering [Squelcher]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a spinel set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t}\r\n}\r\nMagicItemsList[\"sword of vengeance\"] = {\r\n\tname : \"Sword of Vengeance\",\r\n\tnameTest : \"of Vengeance\",\r\n\tsource : [[\"D\", 206]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tattunement : true,\r\n\tdescription : \"This sword gives +1 to hit and damage and is cursed. I can't part with this sword and have disadv. on attacks with other weapons. If I take damage in combat, I must make a DC 15 Wis save or I will attack the attacker until it drops to 0 HP or I can't attack it in melee anymore.\",\r\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon.\\n   \" + toUni(\"Curse\") + \". This sword is cursed and possessed by a vengeful spirit. Becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the sword, keeping it on your person at all times. While attuned to this weapon, you have disadvantage on attack rolls made with weapons other than this one.\\n   In addition, while the sword is on your person, you must succeed on a DC 15 Wisdom saving throw whenever you take damage in combat. On a failed save you must attack the creature that damaged you until you drop to 0 hit points or it does, or until you can't reach the creature to make a melee attack against it.\\n   You can break the curse in the usual ways. Alternatively, casting banishment on the sword forces the vengeful spirit to leave it. The sword then becomes a +1 weapon with no other properties.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of vengeance/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Cursed';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Vengeance\" in the name of a sword, it will be treated as the magic weapon Sword of Vengeance. It has +1 to hit and damage, but also bears a curse.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of vengeance/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"tentacle rod\"] = {\r\n\tname : \"Tentacle Rod\",\r\n\tsource : [[\"D\", 208]],\r\n\ttype : \"rod\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, all 3 tentacles of this rod attack with 15 ft reach, +9 to hit, dealing 1d6 bludgeoning damage. If a target is hit by all 3 it must make a DC 15 Con save or have half speed, disadv. on Dex saves, no reactions, and do action or bonus action, not both, for 1 min. It can repeat the save at the end of each of its turns.\",\r\n\tdescriptionLong : \"As an action while holding the rod, I can direct each of its three tentacles to attack a creature I can see within 15 ft. Each tentacle makes a melee attack roll, +9 to hit, dealing 1d6 bludgeoning damage. If a target is hit by all three tentacles, it must make a DC 15 Constitution saving throw. On a failure, the creature's speed is halved, it has disadvantage on Dexterity saving throws, and it can't use reactions for 1 minute. Moreover, on each of its turns, it can take either an action or a bonus action, but not both. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tdescriptionFull : \"Made by the drow, this rod is a magic weapon that ends in three rubbery tentacles. While holding the rod, you can use an action to direct each tentacle to attack a creature you can see within 15 feet of you. Each tentacle makes a melee attack roll with a +9 bonus. On a hit, the tentacle deals 1d6 bludgeoning damage. If you hit a target with all three tentacles, it must make a DC 15 Constitution saving throw. On a failure, the creature's speed is halved, it has disadvantage on Dexterity saving throws, and it can't use reactions for 1 minute. Moreover, on each of its turns, it can take either an action or a bonus action, but not both. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*tentacle)(?=.*rod).*$/i,\r\n\t\tname : \"Tentacle Rod\",\r\n\t\tsource : [[\"D\", 208]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (15 ft)\",\r\n\t\tdescription : \"Action to use, 3 attacks; If all 3 hit same target, it DC 15 Con save, see magic item\",\r\n\t\tabilitytodamage : false,\r\n\t\tmodifiers : [9, \"\"],\r\n\t\tweight : 2,\r\n\t\tisAlwaysProf : false,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"tome of the stilled tongue\"] = {\r\n\tname : \"Tome of the Stilled Tongue\",\r\n\tsource : [[\"D\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"I can use this thick leather-bound tome as a spellbook and an arcane focus. Once per dawn while holding it, I can use a bonus action to cast a spell I have written in it, without expending a spell slot or using any verbal or somatic components. Removing the tongue on the cover erases all spells within.\",\r\n\tdescriptionLong : \"The first few pages of this thick leather-bound tome are filled with indecipherable scrawls. The remaining pages are blank and pristine. I can use it as a spellbook and an arcane focus. Once per dawn while holding it, I can use a bonus action to cast a spell I have written in the tome, without expending a spell slot or using any verbal or somatic components. While attuned to the book, I can remove the tongue from the book's cover, permanently erasing all spells within. Vecna watches the user or this tome and sometimes has cryptic messages appear in it at midnight and fade away after they are read.\",\r\n\tdescriptionFull : \"This thick leather-bound volume has a desiccated tongue pinned to the front cover. Five of these tomes exist, and it's unknown which one is the original. The grisly cover decoration on the first tome of the stilled tongue once belonged to a treacherous former servant of the lich-god Vecna, keeper of secrets. The tongues pinned to the covers of the four copies came from other spellcasters who crossed Vecna. The first few pages of each tome are filled with indecipherable scrawls. The remaining pages are blank and pristine.\\n   If you can attune to this item, you can use it as a spellbook and an arcane focus. In addition, while holding the tome, you can use a bonus action to cast a spell you have written in this tome, without expending a spell slot or using any verbal or somatic components. Once used, this property of the tome can't be used again until the next dawn.\\n   While attuned to the book, you can remove the tongue from the book's cover. If you do so, all spells written in the book are permanently erased.\\n   Vecna watches anyone using this tome. He can also write cryptic messages in the book. These messages appear at midnight and fade away after they are read.\",\r\n\tattunement : true,\r\n\tweight : 5,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"weapon of warning\"] = {\r\n\tname : \"Weapon of Warning\",\r\n\tnameTest : \"of Warning\",\r\n\tsource : [[\"D\", 213]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While this magic weapon is on my person, I have advantage on initiative rolls. In addition, both me and my allies within 30 ft of me can't be surprised and the weapon magically awakens us when combat starts, except those incapacitated by something other than nonmagical sleep.\",\r\n\tdescriptionFull : \"This magic weapon warns you of danger. While the weapon is on your person, you have advantage on initiative rolls. In addition, you and any of your companions within 30 feet of you can't be surprised, except when incapacitated by something other than nonmagical sleep. The weapon magically awakens you and your companions within range if any of you are sleeping naturally when combat begins.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/warning/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Warning\" in the name of a weapon, it will be treated as the magic weapon Weapon of Warning.'\r\n\t\t]\r\n\t},\r\n\tsavetxt : { immune : [\"surprised\"] }\r\n}\r\n\r\n// Sentient Items\r\nvar DMG_blackrazorFullDescription = [\r\n\t\"Hidden in the dungeon of White Plume Mountain, Blackrazor shines like a piece of night sky filled with stars. Its black scabbard is decorated with pieces of cut obsidian.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. It has the following additional properties.\",\r\n\t\">>Devour Soul<<. Whenever you use it to reduce a creature to 0 hit points, the sword slays the creature devours its soul, unless it is a construct or an undead. A creature whose soul has been devoured by Blackrazor can be restored to life only by a Wish spell.\",\r\n\t\"When it devours a soul, Blackrazor grants you temporary hit points equal to the slain creature's hit point maximum. These hit points fade after 24 hours. As long as these temporary hit points last and you keep Blackrazor in hand, you have advantage on attack rolls, saving throws, and ability checks.\",\r\n\t\"If you hit an undead with this weapon, you take 1d10 necrotic damage and the target regains 1d10 hit points. If this necrotic damage reduces you to 0 hit points, Blackrazor devours your soul.\",\r\n\t\">>Soul Hunter<<. While you hold the weapon, you are aware of the presence of Tiny or larger creatures within 60 feet of you that aren't constructs or undead. You also can't be charmed or frightened.\",\r\n\t\"Blackrazor can cast the Haste spell on you once per day. It decides when to cast the spell and maintains concentration on it so that you don't have to.\",\r\n\t\">>Sentience<<. Blackrazor is a sentient chaotic neutral weapon with an Intelligence of 17, a Wisdom of 10, and a Charisma of 19. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon can speak, read, and understand Common, and can communicate with its wielder telepathically. Its voice is deep and echoing. While you are attuned to it, Blackrazor also understands every language you know.\",\r\n\t\">>Personality<<. Blackrazor speaks with an imperious tone, as though accustomed to being obeyed.\",\r\n\t\"The sword's purpose is to consume souls. It doesn't care whose souls it eats, including the wielder's. The sword believes that all matter and energy sprang from a void of negative energy and will one day return to it. Blackrazor is meant to hurry that process along.\",\r\n\t\"Despite its nihilism, Blackrazor feels a strange kinship to Wave and Whelm, two other weapons locked away under White Plume Mountain. It wants the three weapons to be united again and wielded together in combat, even though it violently disagrees with Whelm and finds Wave tedious.\",\r\n\t\"Blackrazor's hunger for souls must be regularly fed. If the sword goes three days or more without consuming a soul, a conflict between it and its wielder occurs at the next sunset.\"\r\n];\r\nMagicItemsList[\"blackrazor\"] = {\r\n\tname : \"Blackrazor\",\r\n\tsource : [[\"D\", 216]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sentient greatsword adds +3 to hit and damage and makes me immune to being charmed or frightened. Once per day it can cast Haste on me as it sees fit. If I use it to bring a creature to 0 HP, it devours the creature's soul, granting me temporary HP equal to the creature's max HP for 24 hours. See Notes page.\",\r\n\tdescriptionFull : DMG_blackrazorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-lawful alignment\",\r\n\tprereqeval : function(v) { return !(/lawful/i).test(What(\"Alignment\")); },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweight : 6,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /blackrazor/i,\r\n\t\tname : \"Blackrazor\",\r\n\t\tsource : [[\"D\", 216]],\r\n\t\tdescription : \"Heavy, two-handed; Devours soul; Heals undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(DMG_blackrazorFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|reduces|grants) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\tsavetxt : { immune : [\"charmed\", \"frightened\"] },\r\n\tusages : 1,\r\n\trecovery : \"day\",\r\n\tadditional : \"Haste\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per day\",\r\n\t\tspells : [\"haste\"],\r\n\t\tselection : [\"haste\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"haste\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"1 min\",\r\n\t\t\tdescription : \"I get +2 AC, speed doubled, adv. on Dex saves, extra action (1 attack, dash, disengage, hide)\",\r\n\t\t\tchanges : \"Blackrazor casts the spell on me, so I don't need to concentrate on it.\"\r\n\t\t}\r\n\t}\r\n}\r\nvar DMG_waveFullDescription = [\r\n\t\"Held in the dungeon of White Plume Mountain, this trident is an exquisite weapon engraved with images of waves, shells, and sea creatures. Although you must worship a god of the sea to attune to this weapon, Wave happily accepts new converts.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. If you score a critical hit with it, the target takes extra necrotic damage equal to half its hit point maximum.\",\r\n\t\"The weapon also functions as a trident of fish command and a weapon of warning. It can confer the benefit of a cap of water breathing while you hold it, and you can use it as a cube of force by choosing the effect, instead of pressing cube sides to select it.\",\r\n\t\">>Sentience<<. Wave is a sentient weapon of neutral alignment, with an Intelligence of 14, a Wisdom of 10, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Aquan. It can also speak with aquatic animals as if using a Speak with Animals spell, using telepathy to involve its wielder in the conversation.\",\r\n\t\">>Personality<<. When it grows restless, Wave has a habit of humming tunes that vary from sea chanteys to sacred hymns of the sea gods.\",\r\n\t\"Wave zealously desires to convert mortals to the worship of one or more sea gods, or else to consign the faithless to death. Conflict arises if the wielder fails to further the weapon's objectives in the world. The trident has a nostalgic attachment to the place where it was forged, a desolate island called Thunderforge. A sea god imprisoned a family of storm giants there, and the giants forged Wave in an act of devotion to\\u2014or rebellion against\\u2014that god.\",\r\n\t\"Wave harbors a secret doubt about its own nature and purpose. For all its devotion to the sea gods, Wave fears that it was intended to bring about a particular sea god's demise. This destiny is something Wave might not be able to avert.\"\r\n];\r\nif (MagicItemsList[\"trident of fish command\"] && MagicItemsList[\"weapon of warning\"] && MagicItemsList[\"cap of water breathing\"] && MagicItemsList[\"cube of force\"]) {\r\n\tMagicItemsList[\"wave\"] = {\r\n\t\tname : \"Wave\",\r\n\t\tsource : [[\"D\", 218]],\r\n\t\ttype : \"weapon (trident)\",\r\n\t\trarity : \"legendary\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"This sentient trident adds +3 to hit and damage and if I score a critical hit with it, the target takes extra necrotic damage equal to half its max HP. It also functions as a trident of fish command, a weapon of warning, cap of water breathing while I hold it, and I can use it as a cube of force. See Notes page.\",\r\n\t\tdescriptionFull : DMG_waveFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a creature that worships a god of the sea\",\r\n\t\tprereqeval : function(v) { return (/deep sashelas|sekolah|ulutiu|umberlee|valkur|poseidon|neptune|aegir|nehalennia|njord/i).test(What(\"Faith/Deity\")); },\r\n\t\tweight : 4,\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"trident\",\r\n\t\t\tregExpSearch : /wave/i,\r\n\t\t\tname : \"Wave\",\r\n\t\t\tsource : [[\"D\", 218]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); On crit: necrotic damage equal to half target max HP\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : desc(DMG_waveFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/you/ig, \"I\") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t\t}, {\r\n\t\t\tname : \"Contained Items\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\n\\n\\u2022 Trident of Fish Command (SRD 247, DMG 209)\\n   \" + MagicItemsList[\"trident of fish command\"].description,\r\n\t\t\t\t\"\\u2022 Weapon of Warning (DMG 213)\\n   \" + MagicItemsList[\"weapon of warning\"].description,\r\n\t\t\t\t\"\\u2022 Cap of Water Breathing (DMG 157)\\n   \" + MagicItemsList[\"cap of water breathing\"].description,\r\n\t\t\t\t\"\\u2022 Cube of Force (SRD 215, DMG 159)\" + desc(MagicItemsList[\"cube of force\"].toNotesPage[0].note)\r\n\t\t\t].join(\"\\n\\n\")\r\n\t\t}],\r\n\t\t// cube of force & cap of water breathing\r\n\t\taction : [[\"action\", \" (Cap of Water Breathing)\"], [\"action\", \" (Cube of Force)\"]],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Wave [Cube of Force] (regains 1d20)\",\r\n\t\t\tusages : 36,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t// trident of fish command\r\n\t\t\tname : \"Wave [Fish Command] (regains 1d3)\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"dominate beast\"],\r\n\t\t\tselection : [\"dominate beast\"],\r\n\t\t\tfirstCol : 1\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate beast\" : {\r\n\t\t\t\tdescription : \"1 beast with swim speed save or charmed, follows telepathic commands, 1 a for complete control\",\r\n\t\t\t\tchanges : \"Can only affect beasts with innate swim speed.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t// weapon of warning\r\n\t\tadvantages : [[\"Initiative\", true]]\r\n\t}\r\n}\r\nvar DMG_whelmFullDescription = [\r\n\t\"Whelm is a powerful warhammer forged by dwarves and lost in the dungeon of White Plume Mountain.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. At dawn the day after you first make an attack roll with Whelm, you develop a fear of being outdoors that persists as long as you remain attuned to the weapon. This causes you to have disadvantage on attack rolls, saving throws, and ability checks while you can see the daytime sky.\",\r\n\t\">>Thrown Weapon<<. Whelm has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When you hit with a ranged weapon attack using it, the target takes an extra 1d8 bludgeoning damage, or an extra 2d8 bludgeoning damage if the target is a giant. Each time you throw the weapon, it flies back to your hand after the attack. If you don't have a hand free, the weapon lands at your feet.\",\r\n\t\">>Shock Wave<<. You can use an action to strike the ground with Whelm and send a shock wave out from the point of impact. Each creature of your choice on the ground within 60 feet of that point must succeed on a DC 15 Constitution saving throw or become stunned for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Once used, this property can't be used again until the next dawn.\",\r\n\t\">>Supernatural Awareness<<. While you are holding the weapon, it alerts you to the location of any secret or concealed doors within 30 feet of you. In addition, you can use an action to cast Detect Evil and Good or Locate Object from the weapon. Once you cast either spell, you can't cast it from the weapon again until the next dawn.\",\r\n\t\">>Sentience<<. Whelm is a sentient lawful neutral weapon with an Intelligence of 15, a Wisdom of 12, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Dwarvish. Giant, and Goblin. It shouts battle cries in Dwarvish when used in combat.\",\r\n\t\">>Personality<<. Whelm's purpose is to slaughter giants and goblinoids. It also seeks to protect dwarves against all enemies. Conflict arises if the wielder fails to destroy goblins and giants or to protect dwarves. Whelm has ties to the dwarf clan that created it, variously called the Dankil or the Mightyhammer clan. It longs to be returned to that clan. It would do anything to protect those dwarves from harm. The hammer also carries a secret shame. Centuries ago, a dwarf named Ctenmiir wielded it valiantly for a time. But Ctenmiir was turned into a vampire. His will was strong enough that he bent Whelm to his evil purposes, even killing members of his own clan.\"\r\n];\r\nMagicItemsList[\"whelm\"] = {\r\n\tname : \"Whelm\",\r\n\tsource : [[\"D\", 218]],\r\n\ttype : \"weapon (warhammer)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sentient warhammer adds +3 to hit and damage, has the thrown property, deals extra damage when thrown, and returns to my hand when thrown. I can use it to create a shock wave. It makes me afraid of the outdoors, so while I can see the daytime sky, I have disadv. on attacks, saves, and checks. See Notes page.\",\r\n\tdescriptionFull : DMG_whelmFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"warhammer\",\r\n\t\tregExpSearch : /whelm/i,\r\n\t\tname : \"Whelm\",\r\n\t\tsource : [[\"D\", 218]],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Versatile (1d10), thrown, returning; +1d8 damage when thrown (+2d8 vs. giants)\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(DMG_whelmFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|causes|alerts) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\taction : [[\"action\", \" (Shock Wave)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Whelm [Shock Wave]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Whelm [Detect Evil and Good]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Whelm [Locate Object]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tvision : [[\"Know location of secret doors\", 30]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"detect evil and good\", \"locate object\"],\r\n\t\tselection : [\"detect evil and good\", \"locate object\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\n\r\n// Firearms [weapons and ammunition] (includes contributions by grungydan)\r\nWeaponsList[\"pistol\"] = {\r\n\tregExpSearch : /^(?!.*(automatic|laser|antimatter|needler|paralysis))(?=.*\\bpistols?\\b).*$/i,\r\n\tname : \"Pistol\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 10, \"piercing\"],\r\n\trange : \"30/90 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, loading\",\r\n\tabilitytodamage : true,\r\n\tammo : \"renaissance bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"musket\"] = {\r\n\tregExpSearch : /musket/i,\r\n\tname : \"Musket\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 12, \"piercing\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 10,\r\n\tdescription : \"Ammunition, loading, two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"renaissance bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"renaissance bullet\"] = {\r\n\tname : \"Bullets, Renaissance\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 0.2,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Bullets, renaissance\",\r\n\talternatives : [/^(?=.*bullet)(?=.*renaissance).*$/i],\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"pistol automatic\"] = {\r\n\tregExpSearch : /^(?=.*pistol)(?=.*automatic).*$/i,\r\n\tname : \"Automatic pistol\",\r\n\tnameAlt : [\"Pistol, Automatic\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 6, \"piercing\"],\r\n\trange : \"50/150 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, reload (15 shots)\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"revolver\"] = {\r\n\tregExpSearch : /revolver/i,\r\n\tname : \"Revolver\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, reload (6 shots)\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"rifle hunting\"] = {\r\n\tregExpSearch : /^(((?=.*hunting)(?=.*rifle))|((?!.*(automatic|laser|antimatter))(?=.*\\brifles?\\b))).*$/i,\r\n\tname : \"Hunting rifle\",\r\n\tnameAlt : [\"Rifle, Hunting\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 10, \"piercing\"],\r\n\trange : \"80/240 ft\",\r\n\tweight : 8,\r\n\tdescription : \"Ammunition, reload (5 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"rifle automatic\"] = {\r\n\tregExpSearch : /^(?=.*automatic)(?=.*rifle).*$/i,\r\n\tname : \"Automatic rifle\",\r\n\tnameAlt : [\"Rifle, Automatic\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"80/240 ft\",\r\n\tweight : 8,\r\n\tdescription : \"Ammunition, burst fire, reload (30 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true,\r\n\ttooltip : \"A weapon that has the burst fire property can make a single-target attack, or it can spray a 10-foot-cube area within normal range with shots. Each creature in the area must succeed on a DC 15 Dexterity saving throw or take the weapon's normal damage. This action uses ten pieces of ammunition.\"\r\n};\r\nWeaponsList[\"shotgun\"] = {\r\n\tregExpSearch : /shotgun/i,\r\n\tname : \"Shotgun\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"30/90 ft\",\r\n\tweight : 7,\r\n\tdescription : \"Ammunition, reload (2 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"modern bullet\"] = {\r\n\tname : \"Bullets, Modern\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 0.1,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Bullets, modern\",\r\n\talternatives : [/^(?=.*bullet)(?=.*modern).*$/i],\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"laser pistol\"] = {\r\n\tregExpSearch : /^(?=.*laser)(?=.*pistol).*$/i,\r\n\tname : \"Laser pistol\",\r\n\tnameAlt : [\"Pistol, Laser\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [3, 6, \"radiant\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, reload (50 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"antimatter rifle\"] = {\r\n\tregExpSearch : /^(?=.*antimatter)(?=.*rifle).*$/i,\r\n\tname : \"Antimatter rifle\",\r\n\tnameAlt : [\"Rifle, Antimatter\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [6, 8, \"necrotic\"],\r\n\trange : \"120/360 ft\",\r\n\tweight : 10,\r\n\tdescription : \"Ammunition, reload (2 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"laser rifle\"] = {\r\n\tregExpSearch : /^(?=.*laser)(?=.*rifle).*$/i,\r\n\tname : \"Laser rifle\",\r\n\tnameAlt : [\"Rifle, Laser\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [3, 8, \"radiant\"],\r\n\trange : \"100/300 ft\",\r\n\tweight : 7,\r\n\tdescription : \"Ammunition, reload (30 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"energy cell\"] = {\r\n\tname : \"Energy Cell\",\r\n\tsource : [[\"D\", 268], [\"QftIS\", 192]],\r\n\tweight : 0,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Energy Cell\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Explosives as weapons and ammunition\r\nWeaponsList[\"bomb, renaissance\"] = {\r\n\tregExpSearch : /^(?=.*bomb)(?=.*renaissance).*$/i,\r\n\tname : \"Bomb, renaissance\",\r\n\tsource : [[\"D\", 267]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [3, 6, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"Dex save for all within 5-ft radius\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [4, \"\"],\r\n\tdc : true,\r\n\tammo : \"bomb\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a character can light this bomb and throw it at a point up to 60 ft away. Each creature within 5 ft of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\"+\r\n\t\"\\n   A bomb costs 150 gp and weights 1 lb.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"bomb\"] = {\r\n\tname : \"Bomb\",\r\n\tsource : [[\"D\", 267]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Bomb, renaissance\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"dynamite stick\"] = {\r\n\tregExpSearch : /^(?=.*dynamite)(?=.*stick).*$/i,\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [3, 6, \"bludgeoning\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"All within 5-ft radius, Dex save halves; +1d6 damage \\u0026 +5 ft radius per extra stick used (max 10d6/20 ft)\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [4, \"\"],\r\n\tdc : true,\r\n\tammo : \"dynamite stick\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a creature can light a stick of dynamite and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must make a DC 12 Dexterity saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   A character can bind sticks of dynamite together so they explode at the same time. Each additional stick increases the damage by 1d6 (to a maximum of 10d6) and the burst radius by 5 feet (to a maximum of 20 feet).\"+\r\n\t\"\\n   Dynamite can be rigged with a longer fuse to explode after a set amount of time, usually 1 to 6 rounds. Roll initiative for the dynamite. After the set number of rounds goes by, the dynamite explodes on that initiative.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"dynamite stick\"] = {\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Dynamite stick\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"grenade, fragmentation\"] = {\r\n\tregExpSearch : /^(?=.*grenade)(?=.*frag(\\b|mentation)).*$/i,\r\n\tname : \"Fragmentation Grenade\",\r\n\tnameAlt : [\"Grenade, Fragmentation\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [5, 6, \"piercing\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"All within 20-ft radius, Dex save halves\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [7, \"\"],\r\n\tdc : true,\r\n\tammo : \"grenade\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\"\\n   Each creature within 20 feet of an exploding fragmentation grenade must make a DC 15 Dexterity saving throw, taking 5d6 piercing damage on a failed save, or half as much damage on a successful one.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"grenade\"] = {\r\n\tname : \"Grenade\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Grenade\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Explosives as \"technological\" magic items\r\nMagicItemsList[\"bomb, renaissance\"] = {\r\n\tname : \"Bomb, renaissance\",\r\n\tsource : [[\"D\", 267]],\r\n\ttype : \"explosive, renaissance\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, I can light this bomb and throw it at a point up to 60 ft away. Each creature within 5 ft of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\",\r\n\tdescriptionFull : \"As an action, a character can light this bomb and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tweaponsAdd : { select : [\"Bomb, Renaissance\"] },\r\n\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\tif (CurrentSources.weapExcl.eject(\"bomb, renaissance\") !== -1) SetWeaponsdropdown();\r\n\t\tif (CurrentSources.ammoExcl.eject(\"bomb\") !== -1) SetAmmosdropdown();\r\n\t}\r\n};\r\nMagicItemsList[\"gunpowder\"] = {\r\n\tname : \"Gunpowder\",\r\n\tsource : [[\"D\", 267]],\r\n\ttype : \"explosive, renaissance\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"Gunpowder is chiefly used to propel a bullet out of the barrel of a pistol or rifle, or it is formed into a bomb. Gunpowder is sold in small wooden kegs or in water-resistant powder horns.\",\r\n\tdescriptionFull : \"Gunpowder is chiefly used to propel a bullet out of the barrel of a pistol or rifle, or it is formed into a bomb. Gunpowder is sold in small wooden kegs or in water-resistant powder horns.\"+\r\n\t\"\\n   Setting fire to a container full of gunpowder can cause it to explode, dealing fire damage to creatures within 10 feet of it (3d6 for a powder horn). A successful DC 12 Dexterity saving throw halves the damage. Setting fire to an ounce of gunpowder causes it to flare for 1 round, shedding bright light in a 30-foot radius and dim light for an additional 30 feet.\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Horn (35 gp)\", \"Keg (250 gp)\"],\r\n\t\"horn (35 gp)\" : {\r\n\t\tname : \"Gunpowder Horn\",\r\n\t\tdescription : \"This water-resistant horn contains explosive powder that is chiefly used to propel a bullet and can be formed into a bomb. The horn explodes if set on fire, dealing 3d6 fire damage to all within 10 ft, DC 12 Dex save halves. If 1 ounce is set on fire, it flares for 1 round with 20-ft radius bright and equal dim light.\",\r\n\t\tweight : 2\r\n\t},\r\n\t\"keg (250 gp)\" : {\r\n\t\tname : \"Gunpowder Keg\",\r\n\t\tdescription : \"This small wooden keg contains explosive powder that is chiefly used to propel a bullet and can be formed into a bomb. The horn explodes if set on fire, dealing 3d6 fire damage to all within 10 ft, DC 12 Dex save halves. If 1 ounce is set on fire, it flares for 1 round with 20-ft radius bright light and 20-ft radius dim light.\",\r\n\t\tweight : 20\r\n\t}\r\n}\r\nMagicItemsList[\"dynamite stick\"] = {\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\ttype : \"explosive, modern\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, I can light a (bundle of) stick(s) of dynamite and throw it at a point up to 60 ft away. All creatures within 5-ft/stick of that point take 2d6+1d6/stick fire damage, DC 12 Dex save for half. Maximum 10d6 damage and 20-ft radius. I can also explode it using a longer fuse (roll separate initiative for it).\",\r\n\tdescriptionFull : \"As an action, a creature can light a stick of dynamite and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must make a DC 12 Dexterity saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   A character can bind sticks of dynamite together so they explode at the same time. Each additional stick increases the damage by 1d6 (to a maximum of 10d6) and the burst radius by 5 feet (to a maximum of 20 feet).\"+\r\n\t\"\\n   Dynamite can be rigged with a longer fuse to explode after a set amount of time, usually 1 to 6 rounds. Roll initiative for the dynamite. After the set number of rounds goes by, the dynamite explodes on that initiative.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tweaponsAdd : { select : [\"Dynamite Stick\"] },\r\n\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\tif (CurrentSources.weapExcl.eject(\"dynamite stick\") !== -1) SetWeaponsdropdown();\r\n\t\tif (CurrentSources.ammoExcl.eject(\"dynamite stick\") !== -1) SetAmmosdropdown();\r\n\t}\r\n};\r\nMagicItemsList[\"grenade\"] = {\r\n\tname : \"Grenade\",\r\n\tsource : [[\"D\", 268], [\"QftIS\", 192]],\r\n\ttype : \"explosive, modern\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\",\r\n\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tchoices : [\"Fragmentation Grenade\", \"Smoke Grenade\"],\r\n\t\"fragmentation grenade\" : {\r\n\t\tname : \"Fragmentation Grenade\",\r\n\t\tsortname : \"Grenade, Fragmentation\",\r\n\t\tsource : [[\"D\", 268]],\r\n\t\tdefaultExcluded : true,\r\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. All creatures within 20 ft of an exploding fragmentation grenade take 6d6 piercing damage, but can make a DC 15 Dexterity save to halve that damage.\",\r\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\t\"\\n   Each creature within 20 feet of an exploding fragmentation grenade must make a DC 15 Dexterity saving throw, taking 5d6 piercing damage on a failed save, or half as much damage on a successful one.\",\r\n\t\tweight : 1,\r\n\t\tweaponsAdd : { select : [\"Fragmentation Grenade\"] },\r\n\t\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\t\tif (CurrentSources.weapExcl.eject(\"grenade, fragmentation\") !== -1) SetWeaponsdropdown();\r\n\t\t\tif (CurrentSources.ammoExcl.eject(\"grenade\") !== -1) SetAmmosdropdown();\r\n\t\t}\r\n\t},\r\n\t\"smoke grenade\" : {\r\n\t\tname : \"Smoke Grenade\",\r\n\t\tsortname : \"Grenade, Smoke\",\r\n\t\tsource : [[\"D\", 268]],\r\n\t\tdefaultExcluded : true,\r\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. 1 round after a smoke grenade lands, it emits a cloud of smoke that heavily obscures a 20-ft radius area. A moderate wind (10 mph) disperses this smoke in 4 rounds, a strong wind (20+ mph) in 1 round.\",\r\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\t\"\\n   One round after a smoke grenade lands, it emits a cloud of smoke that creates a heavily obscured area in a 20-foot radius. A moderate wind (at least 10 miles per hour) disperses the smoke in 4 rounds; a strong wind (20 or more miles per hour) disperses it in 1 round.\",\r\n\t\tweight : 2\r\n\t}\r\n};\r\n\n// pub_20150407_PotA.js\r\n// This file adds the magic items from the Princes of the Apocalypse adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"PotA\"] = {\r\n\tname : \"Princes of the Apocalypse [items]\",\r\n\tabbreviation : \"PotA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/princes-apocalypse\",\r\n\tdate : \"2015/04/07\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"balloon pack\"] = {\r\n\tname : \"Balloon Pack\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"As an action, I can deploy the balloon to gain the effects of Levitate for 10 minutes. As a reaction, I can deploy the balloon to gain the effects of Feather Fall. After either effect ends, I descend slowly for 60 ft as it deflates. Once used in either way, the backpack is useless until recharged in an air node for 1 hour.\",\r\n\tdescriptionFull : \"This backpack contains the spirit of an air elemental and a compact leather balloon. While you're wearing the backpack, you can deploy the balloon as an action and gain the effect of the Levitate spell for 10 minutes, targeting yourself and requiring no concentration. Alternatively, you can use a reaction to deploy the balloon when you're falling and gain the effect of the Feather Fall spell for yourself.\\n   When either spell ends, the balloon slowly deflates as the elemental spirit escapes and returns to the Elemental Plane of Air. As the balloon deflates, you descend gently toward the ground for up to 60 feet. If you are still in the air at the end of this distance, you fall if you have no other means of staying aloft.\\n   After the spirit departs, the backpack's property is unusable unless the backpack is recharged for 1 hour in an elemental air node, which binds another spirit to the backpack.\",\r\n\tweight : 5, // as backpack\r\n\tusages : 1,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\",\r\n\taction : [[\"action\", \" (Levitate)\"], [\"reaction\", \" (Feather Fall)\"]],\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"feather fall\", \"levitate\"],\r\n\t\tselection : [\"feather fall\", \"levitate\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"feather fall\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tdescription : \"I descent only 60 ft/rnd for duration or until landed, taking no falling damage\",\r\n\t\t\tchanges : \"Using the Balloon Pack, I can only target myself.\"\r\n\t\t},\r\n\t\t\"levitate\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"10 min\",\r\n\t\t\tsave : \"\",\r\n\t\t\tdescription : \"I rise vertically, up to 20 ft; move up/down 20 ft instead of normal move\",\r\n\t\t\tchanges : \"Using the Balloon Pack, I can only target myself, but the spell requires no concentration.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bottled breath\"] = {\r\n\tname : \"Bottled Breath\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can inhale this breath of elemental air or administer it to another. The target then either exhale it or hold it in. If exhaled immediately, it produces the effects of Gust of Wind. Holding it in removes the need to breathe for 1 hour, though this benefit can end early, by speaking for example.\",\r\n\tdescriptionFull : \"This bottle contains a breath of elemental air. When you inhale it, you either exhale it or hold it.\\n   If you exhale the breath, you gain the effect of the Gust of Wind spell. If you hold the breath, you don't need to breathe for 1 hour, though you can end this benefit early (for example, to speak). Ending it early doesn't give you the benefit of exhaling the breath.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"claws of the umber hulk\"] = {\r\n\tname : \"Claws of the Umber Hulk\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"These brown iron gauntlets, shaped like umber hulk claws, cover my hands up to my elbows. While wearing both, I can tunnel 1 ft per round through solid rock and have a burrowing speed of 20 ft, but can't manipulate items or use somatic spell components. I can use them as melee weapons, dealing 1d8 slashing damage.\",\r\n\tdescriptionFull : \"These heavy gauntlets of brown iron are forged in the shape of an umber hulk's claws, and they fit the wearer's hands and forearms all the way up to the elbow. While wearing both claws, you gain a burrowing speed of 20 feet, and you can tunnel through solid rock at a rate of 1 foot per round.\\n   You can use a claw as a melee weapon while wearing it. You have proficiency with it, and it deals 1d8 slashing damage on a hit (your Strength modifier applies to the attack and damage rolls, as normal).\\n   While wearing the claws, you can't manipulate objects or cast spells with somatic components.\",\r\n\tweight : 1,\r\n\tattunement : true,\r\n\tspeed : { burrow : { spd : \"fixed20\", enc : \"fixed10\" } },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*claws)(?=.*umber)(?=.*hulk).*$/i,\r\n\t\tname : \"Claws of the Umber Hulk\",\r\n\t\tsource : [[\"PotA\", 222]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 8, \"slashing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nvar PotA_tempDevastationOrbNoteTxt = [\r\n\t\"A devastation orb is an elemental bomb that can be created at the site of an elemental node by performing a ritual with an elemental weapon. The type of orb created depends on the node used. For example, an air node creates a devastation orb of air. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed.\\n   A devastation orb measures 12 inches in diameter, weighs 10 pounds, and has a solid outer shell. The orb detonates 1d100 hours after its creation, releasing the elemental energy it contains. The orb gives no outward sign of how much time remains before it will detonate. Spells such as Identify and Divination can be used to ascertain when the orb will explode. An orb has AC 10, 15 hit points, and immunity to poison and psychic damage. Reducing it to 0 hit points causes it to explode instantly.\\n   A special container can be crafted to contain a devastation orb and prevent it from detonating. The container must be inscribed with symbols of the orb's opposing element. For example, a case inscribed with earth symbols can be used to contain a devastation orb of air and keep it from detonating. While in the container, the orb thrums. If it is removed from the container after the time when it was supposed to detonate, it explodes 1d6 rounds later, unless it is returned to the container.\\n   Regardless of the type of orb, its effect is contained within a sphere with a 1 mile radius. The orb is the sphere's point of origin. The orb is destroyed after one use.\",\r\n\tdesc([\r\n\t\t\"This elemental bomb can be created at the site of an elemental node of tELEMENT by performing a ritual with an elemental weapon. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed.\",\r\n\t\t\"A devastation orb measures 12 inches in diameter, weighs 10 pounds, and has a solid outer shell. The orb detonates 1d100 hours after its creation, releasing the elemental energy it contains. The orb gives no outward sign of how much time remains before it will detonate. Spells such as Identify and Divination can be used to ascertain when the orb will explode. An orb has AC 10, 15 hit points, and immunity to poison and psychic damage. Reducing it to 0 hit points causes it to explode instantly.\",\r\n\t\t\"A special container inscribed with symbols of oELEMENT can be crafted to contain a devastation orb of tELEMENT and prevent it from detonating. While in the container, the orb thrums. If it is removed from the container after the time when it was supposed to detonate, it explodes 1d6 rounds later, unless it is returned to the container.\"\r\n\t])\r\n];\r\nMagicItemsList[\"devastation orb\"] = {\r\n\tname : \"Devastation Orb\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates an effect in a 1-mile radius around it.\",\r\n\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0],\r\n\tweight : 10,\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Air\", \"Earth\", \"Fire\", \"Water\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"air\" : {\r\n\t\tname : \"Devastation Orb of Air\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates a powerful windstorm in 1 mile around it for 1 hour. Everything exposed to the wind is damage by it. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Air Orb\") + \". When this orb detonates, it creates a powerful windstorm that lasts for 1 hour. Whenever a creature ends its turn exposed to the wind, the creature must succeed on a DC 18 Constitution saving throw or take 1d4 bludgeoning damage, as the wind and debris batter it. The wind is strong enough to uproot weak trees and destroy light structures after at least 10 minutes of exposure. Otherwise, the rules for strong wind apply, as detailed in chapter 5 of the Dungeon Master's Guide.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"air\").replace(/oElement/g, \"earth\") + \"\\n  When this orb detonates, it creates a powerful windstorm within a sphere with a 1 mile radius that lasts for 1 hour. Whenever a creature ends its turn exposed to the wind, the creature must succeed on a DC 18 Constitution saving throw or take 1d4 bludgeoning damage, as the wind and debris batter it. The wind is strong enough to uproot weak trees and destroy light structures after at least 10 minutes of exposure. Otherwise, the rules for strong wind apply. A strong wind imposes disadvantage on ranged weapon attack rolls and Wisdom (Perception) checks that rely on hearing. A strong wind also extinguishes open flames, disperses fog, and makes flying by nonmagical means nearly impossible. A flying creature in a strong wind must land at the end of its turn or fall. A strong wind in a desert can create a sandstorm that imposes disadvantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t\t}]\r\n\t},\r\n\t\"earth\" : {\r\n\t\tname : \"Devastation Orb of Earth\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates the effect of an Earthquake spell in 1 mile around it for 1 minute. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Earth Orb\") + \". When this orb detonates, it subjects the area to the effects of the Earthquake spell for 1 minute (spell save DC 18). For the purpose of the spell's effects, the spell is cast on the turn that the orb explodes.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"earth\").replace(/oElement/g, \"air\") + desc([\r\n\t\t\t\t\"When this orb detonates, it subjects the area to the effects of the Earthquake spell for 1 minute (spell save DC 18). For the purpose of the spell's effects, the spell is cast on the turn that the orb explodes.\",\r\n\t\t\t\t\"The Earthquake spell creates a seismic disturbance that shakes creatures and structures in contact with the ground in that area. The ground in the area becomes difficult terrain. Each creature on the ground that is concentrating must make a Constitution saving throw. On a failed save, the creature's concentration is broken.\",\r\n\t\t\t\t\"At the end of each turn this goes on, each creature on the ground in the area must make a Dexterity saving throw. On a failed save, the creature is knocked prone.\",\r\n\t\t\t\t\"This spell can have additional effects depending on the terrain in the area, as determined by the DM.\",\r\n\t\t\t\t\"\\u2022 Fissures. Fissures open throughout the spell's area at the start of the turn after the orb detonates. A total of 1d6 such fissures open in locations chosen by the DM. Each is 1d10 \\xD7 10 ft deep, 10 ft wide, and extends from one edge of the area to the opposite side. A creature standing on a spot where a fissure opens must succeed on a Dexterity saving throw or fall in. A creature that successfully saves moves with the fissure's edge as it opens. A fissure that opens beneath a structure causes it to automatically collapse (see below).\",\r\n\t\t\t\t\"\\u2022 Structures. The tremor deals 50 bludgeoning damage to any structure in contact with the ground in the area when the orb detonates and at the start of each of turns for the duration. If a structure drops to 0 hit points, it collapses and potentially damages nearby creatures. A creature within half the distance of a structure's height must make a Dexterity saving throw. On a failed save, the creature takes 5d6 bludgeoning damage, is knocked prone, and is buried in the rubble, requiring a DC 20 Strength (Athletics) check as an action to escape. The DM can adjust the DC higher or lower, depending on the nature of the rubble. On a successful save, the creature takes half as much damage and doesn't fall prone or become buried.\"\r\n\t\t\t])\r\n\t\t}]\r\n\t},\r\n\t\"fire\" : {\r\n\t\tname : \"Devastation Orb of Fire\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates a dry heat wave in 1 mile around it for 24 hours. There is extreme heat within the area and wildfires can appear within, see Notes.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Fire Orb\") + \". When this orb detonates, it creates a dry heat wave that lasts for 24 hours. Within the area of effect, the rules for extreme heat apply, as detailed in chapter 5 of the Dungeon Master's Guide. At the end of each hour, there is a ten percent chance that the heat wave starts a wildfire in a random location within the area of effect. The wildfire covers a 10-foot-square area initially but expands to fill another 10-foot square each round until the fire is extinguished or burns itself out. A creature that comes within 10 feet of a wildfire for the first time on a turn or starts its turn there takes 3d6 fire damage.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"fire\").replace(/oElement/g, \"water\") + \"\\n  When this orb detonates, it creates a dry heat wave within a 1-mile radius sphere that lasts for 24 hours. At the end of each hour, there is a ten percent chance that the heat wave starts a wildfire in a random location within the area of effect. The wildfire covers a 10-foot-square area initially but expands to fill another 10-foot square each round until the fire is extinguished or burns itself out. A creature that comes within 10 feet of a wildfire for the first time on a turn or starts its turn there takes 3d6 fire damage.\\n   Within the area of effect, the rules for extreme heat apply, as the temperature is above 100 \\u00B0F. Any creature exposed to the heat and without access to drinkable water must succeed on a Constitution saving throw at the end of each hour or gain one level of exhaustion. The DC is 5 for the first hour and increases by 1 for each additional hour. Creatures wearing medium or heavy armor, or who are clad in heavy clothing, have disadvantage on the saving throw. Creatures with resistance or immunity to fire damage automatically succeed on the saving throw, as do creatures naturally adapted to hot climates.\"\r\n\t\t}]\r\n\t},\r\n\t\"water\" : {\r\n\t\tname : \"Devastation Orb of Water\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates torrential rainstorm in 1 mile around it for 24 hours. If bodies of water exist in the area, they rise 10 ft and flood. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Water Orb\") + \". When this orb detonates, it creates a torrential rainstorm that lasts for 24 hours. Within the area of effect, the rules for heavy precipitation apply, as detailed in chapter 5 of the Dungeon Master's Guide. If there is a substantial body of water in the area, it floods after 2d10 hours of heavy rain, rising 10 feet above its banks and inundating the surrounding area. The flood advances at a rate of 100 feet per round, moving away from the body of water where it began until it reaches the edge of the area of effect: at that point, the water flows downhill (and possibly recedes back to its origin). Light structures collapse and wash away. Any Large or smaller creature caught in the flood's path is swept away. The flooding destroys crops and might trigger mudslides, depending on the terrain.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"water\").replace(/oElement/g, \"fire\") + \"\\n  When this orb detonates, it creates a torrential rainstorm in a 1-mile radius sphere that lasts for 24 hours. If there is a substantial body of water in the area, it floods after 2d10 hours of heavy rain, rising 10 feet above its banks and inundating the surrounding area. The flood advances at a rate of 100 feet per round, moving away from the body of water where it began until it reaches the edge of the area of effect: at that point, the water flows downhill (and possibly recedes back to its origin). Light structures collapse and wash away. Any Large or smaller creature caught in the flood's path is swept away. The flooding destroys crops and might trigger mudslides, depending on the terrain.\\n   Within the area of effect, the rules for heavy precipitation apply. Everything is lightly obscured, and creatures in the area have disadvantage on Wisdom (Perception) checks that rely on sight. Heavy rain also extinguishes open flames and imposes disadvantage on Wisdom (Perception) checks that rely on hearing.\"\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"drown\"] = {\r\n\tname : \"Drown\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (trident)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This trident has a +1 bonus on to hit and damage and deals +1d8 cold damage. It allows me to speak Aquan, grants me resistance to cold damage, and allows me to cast Dominate Monster on a water elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A steel trident decorated with bronze barnacles along the upper part of its haft, Drown has a sea-green jewel just below the tines and a silver shell at the end of its haft. It floats on the surface if dropped onto water, and it floats in place if it is released underwater. The trident is always cool to the touch, and it is immune to any damage due to exposure to water. Drown contains a spark of Olhydra, the Princess of Evil Water.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the targets take an extra 1d8 cold damage.\\n   \" + toUni(\"Water Mastery\") + \". You gain the following benefits while you hold Drown:\\n \\u2022 You can speak Aquan fluently.\\n \\u2022 You have resistance to cold damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on a water elemental. Once you have done so, Drown can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Tears of Endless Anguish\") + \". While inside a water node, you can perform a ritual called the Tears of Endless Anguish, using Drown to create a devastation orb of water. Once you perform the ritual, Drown can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + \". Drown makes its wielder covetous. While attuned to the weapon, you gain the following flaw: \\\"I demand and deserve the largest share of the spoils, and I refuse to part with anything that's mine.\\\" In addition, if you are attuned to Drown for 24 consecutive hours, barnacles form on your skin. The barnacles can be removed with a Greater Restoration spell or similar magic, but not while you are attuned to the weapon.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tlanguageProfs : [\"Aquan\"],\r\n\tdmgres : [\"Cold\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Water elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect a water elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"trident\",\r\n\t\tregExpSearch : /drown/i,\r\n\t\tname : \"Drown\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"Thrown, versatile (1d8); +1d8 cold damage\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A steel trident decorated with bronze barnacles along the upper part of its haft, Drown has a sea-green jewel just below the tines and a silver shell at the end of its haft. It floats on the surface if dropped onto water, and it floats in place if it is released underwater. The trident is always cool to the touch, and it is immune to any damage due to exposure to water. Drown contains a spark of Olhydra, the Princess of Evil Water.\",\r\n\t\t\t\"I gain a +1 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the targets take an extra 1d8 cold damage.\",\r\n\t\t\t\"While holding Drown, I can speak Aquan fluently, have resistance to cold damage, I can cast Dominate Monster (save DC 17) on a water elemental once per dawn.\",\r\n\t\t\t\"While inside a water node, I can perform a ritual called the Tears of Endless Anguish, using Drown to create a Devastation Orb of Water. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Drown can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t\"Drown makes me covetous. While attuned to the weapon, I gain the following flaw: \\\"I demand and deserve the largest share of the spoils, and I refuse to part with anything that's mine.\\\" In addition, if I am attuned to Drown for 24 consecutive hours, barnacles form on my skin. The barnacles can be removed with a Greater Restoration spell or similar magic, but not while I am attuned to the weapon.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"ironfang\"] = {\r\n\tname : \"Ironfang\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (war pick)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This war pick has a +2 bonus on to hit and damage and deals +1d8 thunder damage. It allows me to speak Terran, grants me resistance to cold damage, tremorsense 60 ft, allows me to cast Dominate Monster on an earth elemental once per dawn, and to cast Shatter using 1 of its 3 charges and more, see Notes page.\",\r\n\tdescriptionFull : \"A war pick forged from a single piece of iron, Ironfang has a fang-like head inscribed with ancient runes. The pick is heavy in the hand, but when the wielder swings the pick in anger, the weapon seems almost weightless. This weapon is immune to any form of rust, acid, or corrosion\\u2014nothing seems to mark it. Ironfang contains a spark of Ogr\\xE9moch, the Prince of Evil Earth.\\n   You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the target takes an extra 1d8 thunder damage.\\n   \" + toUni(\"Earth Mastery\") + \". You gain the following benefits while you hold Ironfang:\\n \\u2022 You can speak Terran fluently.\\n \\u2022 You have resistance to acid damage.\\n \\u2022 You have tremorsense out to a range of 60 feet.\\n \\u2022 You can sense the presence of precious metals and stones within 60 feet of you, but not their exact location.\\n \\u2022 You can cast Dominate Monster (save DC 17) on an earth elemental. Once you have done so, Ironfang can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Shatter\") + \". Ironfang has 3 charges. You can use your action to expend 1 charge and cast the 2nd-level version of Shatter (DC 17). Ironfang regains 1d3 expended charges daily at dawn.\\n   \" + toUni(\"The Rumbling\") + \". While inside an earth node, you can perform a ritual called the Rumbling, using Ironfang to create a devastation orb of earth. Once you perform the ritual, Ironfang can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + \". Ironfang heightens its wielder's destructive nature. While attuned to the weapon, you gain the following flaw: \\\"I like to break things and cause ruin.\\\"\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tlanguageProfs : [\"Terran\"],\r\n\tdmgres : [\"Acid\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tlimfeaname : \"Ironfang [Rumbling ritual]\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ironfang [Dominate Monster]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Ironfang [Shatter] (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\",\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}, {\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"shatter\"],\r\n\t\tselection : [\"shatter\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Earth elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect an earth elemental.\"\r\n\t\t},\r\n\t\t\"shatter\" : {\r\n\t\t\tdescription : \"10-ft rad all 4d8 Thunder dmg; save halves; nonmagical unattended objects also take dmg\",\r\n\t\t\tchanges : \"Cast as if using a 2nd-level spell slot.\"\r\n\t\t}\r\n\t},\r\n\tvision : [[\"Tremorsense\", \"fixed 60\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"war pick\",\r\n\t\tregExpSearch : /ironfang/i,\r\n\t\tname : \"Ironfang\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"+1d8 thunder damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A war pick forged from a single piece of iron, Ironfang has a fang-like head inscribed with ancient runes. The pick is heavy in the hand, but when the wielder swings the pick in anger, the weapon seems almost weightless. This weapon is immune to any form of rust, acid, or corrosion\\u2014nothing seems to mark it. Ironfang contains a spark of Ogr\\xE9moch, the Prince of Evil Earth.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the target takes an extra 1d8 thunder damage.\",\r\n\t\t\t\"While holding Ironfang, I can speak Terran fluently, have resistance to acid damage, have tremorsense out to a range of 60 ft, can sense the presence of precious metals and stones within 60 ft of me, but not their exact location, and can cast Dominate Monster (save DC 17) on an earth elemental once per dawn.\",\r\n\t\t\t\"Ironfang has 3 charges and regains 1d3 expended charges daily at dawn. I can use your action to expend 1 charge and cast the 2nd-level version of Shatter (DC 17).\",\r\n\t\t\t\"While inside an earth node, I can perform a ritual called the Rumbling, using Ironfang to create a Devastation Orb of Earth. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Ironfang can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Ironfang heightens my destructive nature. While attuned to the weapon, I gain the following flaw: \"I like to break things and cause ruin.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"lost crown of besilmer\"] = {\r\n\tname : \"Lost Crown of Besilmer\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This dwarven battle-helm gives me psychic resistance and adv. on saves against being charmed. It has 3 charges, regaining 1d3 at dawn. As a bonus action, I can use 1 charge to inspire an ally in 60 ft that I can see and that can see and hear me. Once before my next turn ends, it can add a d6 to one check, attack, or save.\",\r\n\tdescriptionFull : \"This dwarven battle-helm consists of a sturdy open-faced steel helmet, decorated with a golden circlet above the brow from which seven small gold spikes project upward. You gain the following benefits while wearing the crown:\\n \\u2022 You have resistance to psychic damage.\\n \\u2022 You have advantage on saving throws against effects that would charm you.\\n \\u2022 You can use a bonus action to inspire one creature you can see that is within 60 feet of you and that can see or hear you. Once before the end of your next turn, the inspired creature can roll a d6 and add the number rolled to one ability check, attack roll, or saving throw it makes. This uses 1 charge from the crown. It has 3 charges, and it regains 1d3 expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \" (inspire)\"]],\r\n\tdmgres : [\"Psychic\"],\r\n\tsavetxt : { adv_vs : [\"charmed\"] }\r\n}\r\nMagicItemsList[\"orcsplitter\"] = {\r\n\tname : \"Orcsplitter\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"G\",\r\n\tprerequisite : \"Requires attunement by a good-aligned dwarf, fighter, or paladin\",\r\n\tdescription : \"This sentient greataxe has a +2 bonus on to hit and damage. If I roll a 20 on an attack vs. an orc with it, the orc must make a DC 17 Con save or be reduced to 0 HP. While I'm not incapacitated, I can't be surprised by orcs, and me and my allies in 30 ft can't be frightened. I can sense orcs within 120 ft. See Notes page.\",\r\n\tdescriptionFull : \"A mighty axe wielded long ago by the dwarf king Torhild Flametongue, Orcsplitter is a battered weapon that appears unremarkable at first glance. Its head is graven with the Dwarvish runes for \\\"orc,\\\" but the runes are depicted with a gap or slash through the markings; the word \\\"orc\\\" is literally split in two.\\n   You gain the following benefits while holding this magic weapon:\\n \\u2022 You gain a +2 bonus to attack and damage rolls made with it.\\n \\u2022 When you roll a 20 on an attack roll with this weapon against an orc, that orc must succeed on a DC 17 Constitution saving throw or drop to 0 hit points.\\n \\u2022 You can't be surprised by orcs while you're not incapacitated. You are also aware when orcs are within 120 feet of you and aren't behind total cover, although you don't know their location.\\n \\u2022 You and any of your friends within 30 feet of you can't be frightened while you're not incapacitated.\\n\\n\" + toUni(\"Sentience\") + \". Orcsplitter is a sentient, lawful good weapon with an Intelligence of 6, a Wisdom of 15, and a Charisma of 10. It can see and hear out to 120 feet and has darkvision. It communicates by transmitting emotions to its wielder, although on rare occasions it uses a limited form of telepathy to bring to the wielder's mind a couplet or stanza of ancient Dwarvish verse.\\n   \" + toUni(\"Personality\") + \". Orcsplitter is grim, taciturn, and inflexible. It knows little more than the desire to face orcs in battle and serve a courageous, just wielder. It disdains cowards and any form of duplicity, deception, or disloyalty. The weapon's purpose is to defend dwarves and to serve as a symbol of dwarven resolve. It hates the traditional foes of dwarves\\u2014giants, goblins, and, most of all, orcs\\u2014and silently urges its possessor to meet such creatures in battle.\",\r\n\tattunement : true,\r\n\tweight : 7,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /orcsplitter/i,\r\n\t\tname : \"Orcsplitter\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"Heavy, two-handed; On 20 vs. Orc: it DC 17 Con save or 0 HP\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { immune : [\"frightened\"] },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t'A mighty axe wielded long ago by the dwarf king Torhild Flametongue, Orcsplitter is a battered weapon that appears unremarkable at first glance. Its head is graven with the Dwarvish runes for \"orc,\" but the runes are depicted with a gap or slash through the markings; the word \"orc\" is literally split in two.',\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with it. When I roll a 20 on an attack roll with this weapon against an orc, that orc must succeed on a DC 17 Constitution saving throw or drop to 0 hit points.\",\r\n\t\t\t\"While I am not incapacitated, I can't be surprised by orcs and I am aware when orcs are within 120 ft of meand aren't behind total cover, although I don't know their location. Also, me and any of my friends within 30 ft of can't be frightened while I am not incapacitated.\",\r\n\t\t\t\"Orcsplitter is a sentient, lawful good weapon with an Intelligence of 6, a Wisdom of 15, and a Charisma of 10. It can see and hear out to 120 feet and has darkvision. It communicates by transmitting emotions to its wielder, although on rare occasions it uses a limited form of telepathy to bring to the wielder's mind a couplet or stanza of ancient Dwarvish verse.\",\r\n\t\t\t\"Orcsplitter is grim, taciturn, and inflexible. It knows little more than the desire to face orcs in battle and serve a courageous, just wielder. It disdains cowards and any form of duplicity, deception, or disloyalty. The weapon's purpose is to defend dwarves and to serve as a symbol of dwarven resolve. It hates the traditional foes of dwarves\\u2014giants, goblins, and, most of all, orcs\\u2014and silently urges its possessor to meet such creatures in battle.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"reszur\"] = {\r\n\tname : \"Reszur\",\r\n\tsource : [[\"PotA\", 157]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this dagger. It doesn't make noise when it hits or cuts something. If I speaks the name \\\"Reszur\\\", which is engraved on its pommel, the blade gives off a faint, cold glow, shedding dim light in a 10-foot radius until I speak the name again.\",\r\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this weapon, which doesn't make noise when it hits or cuts something.\\n   The name \\\"Reszur\\\" is graven on the dagger's pommel. If the wielder speaks the name, the blade gives off a faint, cold glow, shedding dim light in a 10-foot radius until the wielder speaks the name again.\",\r\n\tweight : 1,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /reszur/i,\r\n\t\tname : \"Reszur\",\r\n\t\tsource : [[\"PotA\", 157]],\r\n\t\tdescription : \"Finesse, light, thrown; Doesn't make any noise\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"seeker dart\"] = {\r\n\tname : \"Seeker Dart\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"weapon (dart)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"Once as an action, when I whisper \\\"seek\\\" and hurl this dart, it seeks out a target of my choice within 120 ft that I have seen at least once. If the target isn't within range or there is no clear path to it, the dart's magic is spent. Else, the target must make a DC 16 Dex save or take 1d4 piercing and 3d4 lightning damage.\",\r\n\tdescriptionFull : \"This small dart is decorated with designs like windy spirals that span the length of its shaft.\\n   When you whisper the word \\\"seek\\\" and hurl this dart, it seeks out a target of your choice within 120 feet of you. You must have seen the target before, but you don't need to see it now. If the target isn't within range or if there is no clear path to it, the dart falls to the ground, its magic spent and wasted. Otherwise, elemental winds guide the dart instantly through the air to the target. The dart can pass though openings as narrow as 1 inch wide and can change direction to fly around corners.\\n   When the dart reaches its target, the target must succeed on a DC 16 Dexterity saving throw or take 1d4 piercing damage and 3d4 lightning damage. The dart's magic is then spent, and it becomes an ordinary dart.\",\r\n\tweight : 0.25\r\n}\r\nMagicItemsList[\"storm boomerang\"] = {\r\n\tname : \"Storm Boomerang\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"weapon (javelin)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This ranged weapon has 60/120 ft range, deals 1d4 bludgeoning and 3d4 thunder damage, and its target must make a DC 10 Con save or be stunned until its next turn ends. On a miss, it returns to the thrower's hand. Once it deals thunder damage, it can't do so or stun again until recharged in an air node for 1 hour.\",\r\n\tdescriptionFull : \"This boomerang is a ranged weapon carved from griffon bone and etched with the symbol of elemental air. When thrown, it has a range of 60/120 feet, and any creature that is proficient with the javelin is also proficient with this weapon. On a hit, the boomerang deals 1d4 bludgeoning damage and 3d4 thunder damage, and the target must succeed on a DC 10 Constitution saving throw or be stunned until the end of its next turn. On a miss, the boomerang returns to the thrower's hand.\\n   Once the boomerang deals thunder damage to a target, the weapon loses its ability to deal thunder damage and its ability to stun a target. These properties return after the boomerang spends at least 1 hour inside an elemental air node.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"javelin\",\r\n\t\tname : \"Storm Boomerang\",\r\n\t\tregExpSearch : /^(?=.*storm)(?=.*boomerang).*$/i,\r\n\t\tlist : \"melee\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"60/120 ft\",\r\n\t\tweight : 2,\r\n\t\tdescription : \"Returns on a miss; Once: +3d4 thunder damage, target DC 10 Con save or stunned 1 turn\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\"\r\n}\r\nMagicItemsList[\"tinderstrike\"] = {\r\n\tname : \"Tinderstrike\",\r\n\tsource : [[\"PotA\", 225]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This flint dagger has a +2 bonus on to hit and damage and deals +2d6 fire damage. It allows me to speak Ignan, grants me resistance to fire damage, and allows me to cast Dominate Monster on a fire elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A flint dagger, Tinderstrike is uncommonly sharp, and sparks cascade off its edge whenever it strikes something solid. Its handle is always warm to the touch, and the blade smolders for 1d4 minutes after it is used to deal damage. It contains a spark of Imix, Prince of Evil Fire.\\n   You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the target takes an extra 2d6 fire damage.\\n   \" + toUni(\"Fire Mastery\") + \". You gain the following benefits while you hold Tinderstrike:\\n \\u2022 You can speak Ignan fluently.\\n \\u2022 You have resistance to fire damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on a fire elemental. Once you have done so, Tinderstrike can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Dance of the All-Consuming Fire\") + \". While inside a fire node, you can perform a ritual called the Dance of the All-Consuming Fire, using Tinderstrike to create a devastation orb of fire. Once you perform the ritual, Tinderstrike can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + '. Tinderstrike makes its wielder impatient and rash. While attuned to the weapon, you gain the following flaw: \"I act without thinking and take risks without weighing the consequences.\"',\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tlanguageProfs : [\"Ignan\"],\r\n\tdmgres : [\"Fire\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Fire elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect a fire elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /tinderstrike/i,\r\n\t\tname : \"Tinderstrike\",\r\n\t\tsource : [[\"PotA\", 225]],\r\n\t\tdescription : \"Finesse, light, thrown; +2d6 fire damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A flint dagger, Tinderstrike is uncommonly sharp, and sparks cascade off its edge whenever it strikes something solid. Its handle is always warm to the touch, and the blade smolders for 1d4 minutes after it is used to deal damage. It contains a spark of Imix, Prince of Evil Fire.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the target takes an extra 2d6 fire damage.\",\r\n\t\t\t\"While holding Tinderstrike, I can speak Ignan fluently, have resistance to fire damage, and can cast Dominate Monster (save DC 17) on a fire elemental once per dawn.\",\r\n\t\t\t\"While inside a fire node, I can perform a ritual called the Dance of the All-Consuming Fire, using Tinderstrike to create a Devastation Orb of Fire. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Tinderstrike can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Tinderstrike makes me impatient and rash. While attuned to the weapon, I gain the following flaw: \"I act without thinking and take risks without weighing the consequences.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"weird tank\"] = {\r\n\tname : \"Weird Tank\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, I can open (or close) this tank of water, allowing the water weird within it to act or not. The weird is bound to the tank, follows my telepathic commands, and acts after me in combat. If the weird is killed, a new one can be formed by placing the tank in a water node for 24 hours.\",\r\n\tdescriptionLong : \"As an action, I can open (or close) this tank of water, allowing the water weird within it to act or not. The weird is bound to the tank, follows my telepathic commands, and acts after me in combat. If it is killed, a new one can be formed by placing the tank in a water node for 24 hours. I can close the tank as an action, but I can only close the tank after commanding the weird to retract into it or if it died. The tank has AC 15, 50 HP, vulnerability to bludgeoning damage, and immunity to poison and psychic damage. Reducing the tank to 0 hit points destroys it and the water weird contained within it.\",\r\n\tdescriptionFull : \"A weird tank is a ten-gallon tank of blown glass and sculpted bronze with a backpack-like carrying harness fashioned from tough leather. A water weird is contained within the tank. While wearing the tank, you can use an action to open it, allowing the water weird to emerge. The water weird acts immediately after you in the initiative order, and it is bound to the tank.\\n   You can command the water weird telepathically (no action required) while you wear the tank. You can close the tank as an action only if you have first commanded the water weird to retract into it or if the water weird is dead.\\n   If the water weird is killed, the tank loses its magical containment property until it spends at least 24 hours inside an elemental water node. When the tank is recharged, a new water weird forms inside it.\\n   The tank has AC 15, 50 hit points, vulnerability to bludgeoning damage, and immunity to poison and psychic damage. Reducing the tank to 0 hit points destroys it and the water weird contained within it.\",\r\n\tweight : 120,\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"windvane\"] = {\r\n\tname : \"Windvane\",\r\n\tsource : [[\"PotA\", 225]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This spear with the finesse property has a +2 bonus on to hit and damage and deals +1d6 lightning damage. It allows me to speak Auran, grants me resistance to lightning damage, and allows me to cast Dominate Monster on an air elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A silver spear, Windvane has dark sapphires on the filigreed surface of its polished head. Held by its shining haft, the weapon feels insubstantial, as if clutching a cool, gently flowing breeze. The spear contains a spark of Yan-C-Bin, the Prince of Evil Air.\\n   You have a +2 bonus to attack and damage rolls made with this magic weapon, which has the finesse weapon property. When you hit with it, the target takes an extra 1d6 lightning damage.\\n   \" + toUni(\"Air Mastery\") + \". You gain the following benefits while you hold Windvane:\\n \\u2022 You can speak Auran fluently.\\n \\u2022 You have resistance to lightning damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on an air elemental. Once you have done so, Windvane can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Song of the Four Winds\") + \". While inside an air node, you can perform a ritual called the Song of the Four Winds, using Windvane to create a devastation orb of air. Once you perform the ritual, Windvane can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + '. Windvane makes its wielder mercurial and unreliable. While attuned to the weapon, you gain the following flaw: \"I break my vows and plans. Duty and honor mean nothing to me.\"',\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tlanguageProfs : [\"Auran\"],\r\n\tdmgres : [\"Lightning\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Air elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect an air elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"spear\",\r\n\t\tregExpSearch : /windvane/i,\r\n\t\tname : \"Windvane\",\r\n\t\tsource : [[\"PotA\", 225]],\r\n\t\tdescription : \"Finesse, thrown, versatile (1d6); +1d6 lightning damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A silver spear, Windvane has dark sapphires on the filigreed surface of its polished head. Held by its shining haft, the weapon feels insubstantial, as if clutching a cool, gently flowing breeze. The spear contains a spark of Yan-C-Bin, the Prince of Evil Air.\",\r\n\t\t\t\"I have a +2 bonus to attack and damage rolls made with this magic weapon, which has the finesse weapon property. When I hit with it, the target takes an extra 1d6 lightning damage.\",\r\n\t\t\t\"While holding Windvane, I can speak Auran fluently, have resistance to lightning damage, and can cast Dominate Monster (save DC 17) on an air elemental once per dawn.\",\r\n\t\t\t\"While inside an air node, I can perform a ritual called the Song of the Four Winds, using Windvane to create a Devastation Orb of Air. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Windvane can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Windvane makes me mercurial and unreliable. While attuned to the weapon, I gain the following flaw: \"I break my vows and plans. Duty and honor mean nothing to me.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"wingwear\"] = {\r\n\tname : \"Wingwear\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"This snug uniform with leathery flaps has 3 charges, regaining all when placed in an air not for 1 hour. As a bonus action, I can expend 1 charge to gain a flying speed of 30 ft until I land or have 0 altitude. At the end of each of my turns, my altitude drops by 5 ft and I must move at least 30 ft horizontally or I fall.\",\r\n\tdescriptionFull : \"This snug uniform has symbols of air stitched into it and leathery flaps that stretch along the arms, waist, and legs to create wings for gliding. A suit of wingwear has 3 charges. While you wear the suit, you can use a bonus action and expend 1 charge to gain a flying speed of 30 feet until you land. At the end of each of your turns, your altitude drops by 5 feet. Your altitude drops instantly to 0 feet at the end of your turn if you didn't fly at least 30 feet horizontally on that turn. When your altitude drops to 0 feet, you land (or fall), and you must expend another charge to use the suit again.\\n   The suit regains all of its expended charges after spending at least 1 hour in an elemental air node.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\n// pub_20150415_AL-EE.js\r\n// This file adds the optional backgrounds from the Adventurers League season 2 (Elemental Evil) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"AL:EE\"]={\r\n\tname : \"Elemental Evil Backgrounds [Mulmaster]\",\r\n\tabbreviation : \"AL:EE\",\r\n\tgroup : \"Adventurers League\",\r\n\turl : \"https://www.dropbox.com/s/ljtrwzmkoijb02o/Mulmaster-Bonds-and-Backgrounds.pdf?dl=1\", // used to be https://dndadventurersleague.org/wp-content/uploads/2015/04/Mulmaster-Bonds-and-Backgrounds.pdf\r\n\tdate : \"2015/04/15\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"caravan specialist\"] = {\r\n\tregExpSearch : /^(?=.*caravan)(?=.*specialist).*$/i,\r\n\tname : \"Caravan Specialist\",\r\n\tsource : [[\"AL:EE\", 2], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Two-person tent\", \"\", 20],\r\n\t\t[\"Regional map\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Wagonmaster\",\r\n\ttrait : [\r\n\t\t\"Any group is only as strong as its weakest link. Everyone has to pull their own weight.\",\r\n\t\t\"There's always someone out there trying to take what I've got. Always be vigilant.\",\r\n\t\t\"Anything can be learned if you have the right teacher. Most folks just need a chance.\",\r\n\t\t\"Early to bed and early to rise; this much at least is under my control.\",\r\n\t\t\"You can listen to me or don't and wish you had. Everyone ends up on one side of that fence.\",\r\n\t\t\"Eventually my hard work will be rewarded. Maybe that time has finally come.\",\r\n\t\t\"A strong ox or horse is more reliable than most people I've met.\",\r\n\t\t\"I never had time for books, but wish I had. I admire folks who have taken the time to learn.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Service\",\r\n\t\t\t\"Service: Using my talents to help others is the best way of helping myself. (Good)\"\r\n\t\t],\r\n\t\t[\"Selfish\",\r\n\t\t\t\"Selfish: What people don't know WILL hurt them, but why is that my problem? (Evil)\"\r\n\t\t],\r\n\t\t[\"Wanderer\",\r\n\t\t\t\"Wanderer: I go where the road takes me. Sometimes that's a good thing… (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Fittest\",\r\n\t\t\t\"Fittest: On the open road, the law of nature wins. Victims are the unprepared. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Focused\",\r\n\t\t\t\"Focused: I simply have a job to do, and I'm going to do it. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Motivated\",\r\n\t\t\t\"Motivated: There's a reason I'm good at what I do, I pay attention to the details. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My brother has a farm In Elmwood and I've helped him and his neigbors move their goods to Mulmaster and other surrounding towns. Those are good people.\",\r\n\t\t\"A caravan I lead was attacked by bandits and many innocents died. I swear that I will avenge them by killing any bandits I encounter.\",\r\n\t\t\"The Soldiery are mostly good guys who understand the importance of protecting the roads. The City Watch is who you have to look out for. If they are inspecting your goods, get ready to pay a fine.\",\r\n\t\t\"The new commander of Southroad Tower, Capt. Holke, understands the importance of safe roads. He's hired me for several jobs and I'm grateful.\",\r\n\t\t\"There's always a road I haven't traveled before. I'm always looking for new places to explore.\",\r\n\t\t\"Wealth and power mean little without the freedom to go where and when you want.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have trouble trusting people I've just met.\",\r\n\t\t\"I enjoy the open road. Underground and tight spaces make me very nervous.\",\r\n\t\t\"I expect others to heed my orders and have little respect or sympathy if they don't.\",\r\n\t\t\"I am very prideful and have trouble admitting when I'm wrong.\",\r\n\t\t\"Once I decide on a course of action, I do not waver.\",\r\n\t\t\"I like to explore, and my curiosity will sometimes get me into trouble.\"\r\n\t],\r\n\ttoolProfs : [\"Vehicles (land)\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"earthspur miner\"] = {\r\n\tregExpSearch : /^(?=.*earthspur)(?=.*miner).*$/i,\r\n\tname : \"Earthspur Miner\",\r\n\tsource : [[\"AL:EE\", 3], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Shovel or miner's pick\", \"\", 5],\r\n\t\t[\"Block and tackle\", \"\", 5],\r\n\t\t[\"Climber's kit\", \"\", 12]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Deep Miner\",\r\n\ttrait : [\r\n\t\t\"Nothing bothers me for long.\",\r\n\t\t\"I hate the horrors of the Underdark with a passion. They took my friends and family and almost got me.\",\r\n\t\t\"Anything worth doing takes time and patience. I have learned to plan and wait for the things I want and to be patient to achieve my goals.\",\r\n\t\t\"I can party with everyone. Whether with dwarves, or goliaths, or deep gnomes, I can find a way to have a good time.\",\r\n\t\t\"I'd rather be mining. This is okay; mining is better.\",\r\n\t\t\"I think that I will stumble upon great riches if I just keep looking.\",\r\n\t\t\"People who don't work with their hands and who live in houses are soft and weak.\",\r\n\t\t\"I wish I were more educated. I look up to people who are.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Generosity\",\r\n\t\t\t\"Generosity: The riches of the earth are to be shared by all. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: Gems and precious metals, I want them all for myself. (Evil)\"\r\n\t\t],\r\n\t\t[\"Mooch\",\r\n\t\t\t\"Mooch: Property, schmoperty. If I need it, I take and use it. If I don't, I leave it for someone else. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Boundaries\",\r\n\t\t\t\"Boundaries: Everything and everyone has its prescribed place; I respect that and expect others to do the same. (Lawful) \"\r\n\t\t],\r\n\t\t[\"Let it Be\",\r\n\t\t\t\"Let it Be: I don't meddle in the affairs of others if I can avoid it. They're none of my business. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Materialist\",\r\n\t\t\t\"Materialist: I want riches to improve my life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The people of the Earthspur mines are my family. I will do anything to protect them.\",\r\n\t\t\"A deep gnome saved my life when I was injured and alone. I owe his people a great debt.\",\r\n\t\t\"I must behold and preserve the natural beauty of places below the earth.\",\r\n\t\t\"Gems hold a special fascination for me, more than gold, land, magic, or power.\",\r\n\t\t\"I want to explore new depths and scale new heights.\",\r\n\t\t\"Someday I'm going to find the mother lode, then I'll spend the rest of my life in luxury.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'm uncomfortable spending time under the open sky. I'd rather be indoors or underground.\",\r\n\t\t\"I'm not used to being around other people much and sometimes get grouchy about it.\",\r\n\t\t\"Good tools are more reliable than people. In a cave in, I would save a sturdy pick before a stranger.\",\r\n\t\t\"I jealously guard my secrets, because I think others will take advantage of me if they learn what I know.\",\r\n\t\t\"I am obsessed with getting rich. I always have a scheme brewing for making it big.\",\r\n\t\t\"I'm afraid of the dark.\"\r\n\t],\r\n\tlanguageProfs : [\"Dwarvish\", \"Undercommon\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"harborfolk\"] = {\r\n\tregExpSearch : /harborfolk/i,\r\n\tname : \"Harborfolk\",\r\n\tsource : [[\"AL:EE\", 4], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Sleight of Hand\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Fishing tackle\", \"\", 4],\r\n\t\t[\"Set of dice, playing cards, or three-dragon ante\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Rowboat\", \"\", 100]\r\n\t],\r\n\tfeature : \"Harborfolk\",\r\n\ttrait : [\r\n\t\t\"I am curious. I want to know why things are the way they are and why people do the things that they do.\",\r\n\t\t\"I can't sing, but that never stops me from doing it, loudly. Everyone loves a good sea chanty!\",\r\n\t\t\"I think the High Blade is doing a terrific job, don't you?\",\r\n\t\t\"I'm very excited that the House Built on Gold is being restored. I am a zealous worshipper of Waukeen.\",\r\n\t\t\"I am quite superstitious. I see portents in everyday occurances.\",\r\n\t\t\"I resent the rich and enjoy thwarting their plans and spoiling their fun in small ways.\",\r\n\t\t\"I have a sea story to fit every occasion.\",\r\n\t\t\"I'm a fisher, but I secretly detest eating fish. I will do anything to avoid it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Calm\",\r\n\t\t\t\"Calm: For all things, there is a tide. I set sail when it is right, and mend my nets when it is not. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Windblown\",\r\n\t\t\t\"Windblown: I go where the winds blow. No man or woman tells me where or when to sail. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Aspiring\",\r\n\t\t\t\"Aspiring: I will gain the favor of a Zor or Zora patron, maybe even one of the Blades! (Any)\"\r\n\t\t],\r\n\t\t[\"Salty\",\r\n\t\t\t\"Salty: I want people to look to me as an expert on plying Mulmaster Harbor. (Any)\"\r\n\t\t],\r\n\t\t[\"Selfless\",\r\n\t\t\t\"Selfless: We are all children of the sea. I help everyone in peril afloat and ashore. (Good)\"\r\n\t\t],\r\n\t\t[\"Let them Drown\",\r\n\t\t\t\"Let them Drown: I refuse to risk my hide to help others. They wouldn't help me if roles were reversed. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I once lost everything but my rowboat. I'll do anything to protect it.\",\r\n\t\t\"My brother was in the Soldiery, but he was killed. I really look up to the men and women who serve.\",\r\n\t\t\"The Cloaks killed my friend for spellcasting. I'll get them back somehow, someday.\",\r\n\t\t\"The High House of Hurting helped me when I was hurt and asked nothing in return. I owe them my life.\",\r\n\t\t\"I was robbed in the Zhent ghetto once. It will not happen again.\",\r\n\t\t\"I would do anything to protect the other harborfolk. They are my family.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I drink too much, which causes me to miss the tide.\",\r\n\t\t\"I killed a drunk member of the City Watch in a brawl. I am terrified that they might find out.\",\r\n\t\t\"I oversell myself and make promises I can't keep when I want to impress someone.\",\r\n\t\t\"Book learning is a waste of time. I have no patience for people who don't speak from experience.\",\r\n\t\t\"I almost always cheat. I can't help myself.\",\r\n\t\t\"I am a secret informant for the Hawks. I send them reports about everything I see and hear, even what my friends and allies are up to.\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (water)\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"mulmaster aristocrat\"] = {\r\n\tregExpSearch : /^(?=.*mulmaster)(?=.*aristocrat).*$/i,\r\n\tname : \"Mulmaster Aristocrat\",\r\n\tsource : [[\"AL:EE\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Performance\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Artisan's tools or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Highborn\",\r\n\ttrait : [\r\n\t\t\"My ambitions are boundless. I will be a Zor or Zora one day!\",\r\n\t\t\"I must alwayss look my best.\",\r\n\t\t\"Beauty is everywhere. I can find it in even the homliest person and the most horrible tragedy.\",\r\n\t\t\"Décorum must be preserved at all costs.\",\r\n\t\t\"I will not admit I am wrong if I can avoid it.\",\r\n\t\t\"I am extremely well-educated and frequently remind others of that fact.\",\r\n\t\t\"I take what I can today, because I do not know what tomorrow holds.\",\r\n\t\t\"My life is full of dance, song, drink, and love.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Generous\",\r\n\t\t\t\"Generous: I have a responsibility to help and protect the less fortunate. (Good)\"\r\n\t\t],\r\n\t\t[\"Loyal\",\r\n\t\t\t\"Loyal: My word, once given, is my bond. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Callous\",\r\n\t\t\t\"Callous: I am unconcerned with any negative effects my actions may have on the lives and fortunes of others. (Evil)\"\r\n\t\t],\r\n\t\t[\"Impulsive\",\r\n\t\t\t\"Impulsive: I follow my heart. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Ignorant\",\r\n\t\t\t\"Ignorant: Explanations bore me. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Isolationist\",\r\n\t\t\t\"Isolationist: I am concerned with the fortunes of my friends and family. Others must see to themselves. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have dedicated my wealth and my talents to the service of one of the city's many temples.\",\r\n\t\t\"My family and I are loyal supporters of High Blade Jaseen Drakehorn. Our fortunes are inexorably tied to hers. I would do anything to support her.\",\r\n\t\t\"Like many families who were close to High Blade Selfaril Uoumdolphin, mine has suffered greatly since his fall. We honor his memory in secret.\",\r\n\t\t\"My family plotted with Rassendyll Uoumdolphin brother usurped brother as High Blade. Betrayal is the quickest route to power.\",\r\n\t\t\"Wealth and power are nothing. Fulfillment can only be found in artistic expression.\",\r\n\t\t\"It's not how you feel, who you know, or what you can do - it's how you look, and I look fabulous.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have difficulty caring about anyone or anything other than myself.\",\r\n\t\t\"Having grown up with wealth, I am careless with my finances. I overspend and am overly generous.\",\r\n\t\t\"The ends (my advancement) justify any means.\",\r\n\t\t\"I must have what I want and will brook no delay.\",\r\n\t\t\"My family has lost everything. I must keep up appearances, lest we become a laughingstock.\",\r\n\t\t\"I have no artistic sense. I hide that fact behind extreme opinons and have become a trendsetter.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], [\"Musical instrument\", 1]],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"phlan refugee\"] = {\r\n\tregExpSearch : /^(?=.*phlan)(?=.*refugee).*$/i,\r\n\tname : \"Phlan Refugee\",\r\n\tsource : [[\"AL:EE\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Athletics\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Token of the life I once knew\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Phlan Survivor\",\r\n\ttrait : [\r\n\t\t\"I may have lost everything I worked for most of my life, but there's work to be done, no time to linger on the past.\",\r\n\t\t\"I worked hard to get where I am and I refuse to let a little hardship stop me from succeeding.\",\r\n\t\t\"I protect those around me, you never know when one of them will be useful.\",\r\n\t\t\"I have always gotten ahead by giving, why change now?\",\r\n\t\t\"I prepare for everything, it paid off in Phlan and it will pay off again.\",\r\n\t\t\"I will reclaim my home, though the path may be long, I will never give up hope.\",\r\n\t\t\"I never cared for personal hygiene, and am amazed that It bothers others.\",\r\n\t\t\"I am always willing to volunteer my services, just as long as don't have to do anything.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Justice\",\r\n\t\t\t\"Justice: Corruption brought Phlan down, I will not tolerate that any longer. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Acceptance\",\r\n\t\t\t\"Acceptance: Stability is a myth, to think you can control your future is futile. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: I am guided by a higher power and I trust that everything will be right in the end. (Good)\"\r\n\t\t],\r\n\t\t[\"Restraint\",\r\n\t\t\t\"Restraint: I hate those who caused my loss. It is all I can do not to lash out at them. (Any)\"\r\n\t\t],\r\n\t\t[\"Strength\",\r\n\t\t\t\"Strength: As shown in Phlan, the strong survive. If you are weak you deserve what you get (Evil)\"\r\n\t\t],\r\n\t\t[\"Openness\",\r\n\t\t\t\"Openness: I am always willing to share my life story with anyone who will listen. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have the chance at a new life and this time I am going to do things right.\",\r\n\t\t\"The Lord Regent brought this suffering upon his people. I will see him brought to justice.\",\r\n\t\t\"I await the day I will be able to return to my home in Phlan.\",\r\n\t\t\"I will never forget the debt owed to Glevith of the Welcomers. I will be ready to repay that debt when called upon.\",\r\n\t\t\"There was someone I cared about in Phlan, I will find out what happened to them.\",\r\n\t\t\"Some say my life wasn't worth saving, I will prove them wrong.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I used the lives of children to facilitate my escape from Phlan.\",\r\n\t\t\"I am a sucker for the underdog, and always bet on the loosing team.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"I will borrow money from friends with no intention to repay it.\",\r\n\t\t\"I am unable to keep secrets. A secret is just an untold story.\",\r\n\t\t\"When something goes wrong, it's never my fault.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"wagonmaster\"] = {\r\n\tdescription : \"I'm used to being in charge. My reputation has me on a short list for critical jobs, allows me to attract two more loyal workers for caravaning, and causes others to look to me for direction. I can identify the most defensible locations for camping. I have a great memory for maps and geography. While travelling, I can always find my cardinal directions.\",\r\n\tsource : [[\"AL:EE\", 2], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"deep miner\"] = {\r\n\tdescription : \"I am used to navigating the deep places of the earth. I never get lost in caves or mines if I have either seen an accurate map of them or have been through them before. Furthermore, I am able to scrounge fresh water and food for myself and as many as five other people each day if I am in a mine or natural caves.\",\r\n\tsource : [[\"AL:EE\", 3], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"harborfolk\"] = {\r\n\tdescription : \"I grew up on the docks and waters of Mulmaster Harbor. The harborfolk remember me and still treat me as one of them. They welcome me and my companions. While they might charge me for it, they'll always offer what food and shelter they have; they'll even hide me if the City Watch is after me (but not if the Hawks are).\",\r\n\tsource : [[\"AL:EE\", 4], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"highborn\"] = {\r\n\tdescription : \"Mulmaster is run by and for its aristoracy. Every other class of citizen in the city defers to me, and even the priesthood, Soldiery, Hawks, and Cloaks treat me with deference. Other aristocrats and nobles accept me in their circles and likely know me or of me. My connections can get me the ear of a Zor or Zora under the right circumstances.\",\r\n\tsource : [[\"AL:EE\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"phlan survivor\"] = {\r\n\tdescription : \"Whatever my prior standing I'm now one of the many refugees that came to Mulmaster. I'm able to find refuge with others from Phlan and those who sympathize with my plight. Within Mulmaster this means that I can find a place to sleep, recover, and hide from the watch with either other refugees from Phlan, or the Zhents within the ghettos.\",\r\n\tsource : [[\"AL:EE\", 6], [\"ALbackground\", 0]]\r\n};\r\n\n// pub_20150416_EE.js\r\n// This file adds all the player-material from the Elemental Evil Player's Companion (November 2017, after the XGtE update) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.E={\r\n\tname : \"Elemental Evil Player's Companion\", // November 2017 version\r\n\tabbreviation : \"EE\",\r\n\tabbreviationSpellsheet : \"EE\",\r\n\tgroup : \"Primary Sources\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dropbox.com/scl/fi/h3rt7296724s6p8xgr1w2/Elemental-Evil-Players-Companion-v2017.pdf?rlkey=99p2n6gpk0qcz9r3hdjka0b9y&dl=1\", // used to be https://media.dnd.wizards.com/EE-Players-Companion_0_0.pdf\r\n\tdate : \"2015/04/16\"\r\n};\r\n\r\n// Races\r\nRaceList[\"aarakocra\"] = {\r\n\tregExpSearch : /aarakocra/i,\r\n\tname : \"Aarakocra\",\r\n\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\tplural : \"Aarakocra\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 },\r\n\t\tfly : { spd : 50, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Aarakocra\", \"Auran\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /talon/i,\r\n\t\tname : \"Talons\",\r\n\t\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach maturity by age 3 and live about 30 years\",\r\n\theight : \" are about 5 feet tall\",\r\n\tweight : \" weigh between 80 and 100 lb\",\r\n\theightMetric : \" are about 1,5 metres tall\",\r\n\tweightMetric : \" weigh between 36 and 45 kg\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Aarakocra (+2 Dexterity, +1 Wisdom)\\n\\nFlight: I have a flying speed of 50 feet. To use this speed, I can't be wearing medium or heavy armor.\\n\\nTalons: My unarmed strikes deal 1d4 slashing damage on a hit.\"\r\n};\r\nRaceList[\"deep gnome\"] = {\r\n\tregExpSearch : /^((?=.*svirfneblin)|((?=.*\\bgnomes?\\b)(?=.*\\b(underdarks?|deep|depths?)\\b))).*$/i,\r\n\tname : \"Svirfneblin\",\r\n\tsortname : \"Gnome, Deep (Svirfneblin)\",\r\n\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 113]],\r\n\tplural : \"Svirfneblin\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\", \"Undercommon\"],\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" are considered full-grown adults when they reach 25 and live 200 to 250 years\",\r\n\theight : \" stand between 3 and 3 1/2 feet tall (2'9\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 90 lb (80 + 2d4 \\xD7 1d4 lb)\",\r\n\theightMetric : \" stand between 90 and 105 cm tall (85 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 50 kg (35 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 2, 0, 0],\r\n\ttrait : \"Svirfneblin (+1 Dexterity, +2 Intelligence)\\n\\nStone Camouflage:\\n   I have advantage on Dexterity (stealth) checks to hide in rocky terrain.\"\r\n};\r\nRaceList[\"air genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bairs?\\b).*$/i,\r\n\tname : \"Air genasi\",\r\n\tsortname : \"Genasi, Air\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Air genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 2, 0, 0, 0],\r\n\ttrait : \"Air Genasi (+1 Dexterity, +2 Constitution)\\n\\nUnending Breath: I can hold my breath indefinitely while I am not incapacitated.\\n\\nMingle with the Wind: I can cast the Levitate spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\tspellcastingAbility : 3,\r\n\tfeatures : {\r\n\t\t\"levitate\" : {\r\n\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\tselection : [\"levitate\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Levitate once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"earth genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bearths?\\b).*$/i,\r\n\tname : \"Earth genasi\",\r\n\tsortname : \"Genasi, Earth\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Earth genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Earth Genasi (+1 Strength, +2 Constitution)\" + (typePF ? \"\\n\" : \"\") + \"\\nEarth Walk: I can move across difficult terrain made of earth or stone without expending extra movement.\" + (typePF ? \"\\n\" : \"\") + \"\\nMerge with Stone: I can cast the Pass without Trace spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\tspellcastingAbility : 3,\r\n\tfeatures : {\r\n\t\t\"pass without trace\" : {\r\n\t\t\tname : \"Merge with Stone\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"pass without trace\"],\r\n\t\t\t\tselection : [\"pass without trace\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Pass without Trace once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"fire genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bfires?\\b).*$/i,\r\n\tname : \"Fire genasi\",\r\n\tsortname : \"Genasi, Fire\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Fire genasi\",\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\ttrait : \"Fire Genasi (+2 Constitution, +1 Intelligence)\\n\\nReach to the Blaze:\\n   I know the Produce Flame cantrip.\\n   Once I reach 3rd level, I can cast the Burning Hands spell once as a 1st-level spell.\\n   I regain the ability to cast it this way when I finish a long rest.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Reach to the Blaze (level 1)\",\r\n\t\tspells : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"burning hands\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"water genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bwaters?\\b).*$/i,\r\n\tname : \"Water genasi\",\r\n\tsortname : \"Genasi, Water\",\r\n\tsource : [[\"E\", 10], [\"W\", 172]],\r\n\tplural : \"Water genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tdmgres : [\"Acid\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\ttrait : \"Water Genasi (+2 Constitution, +1 Wisdom)\\nAmphibious: I can breathe air and water.\\nSwim: I have a swimming speed of 30 feet.\\nCall to the Wave: I know the Shape Water cantrip.\\n   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.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Call to the Wave (level 1)\",\r\n\t\tspells : [\"shape water\"],\r\n\t\tselection : [\"shape water\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"create or destroy water\" : {\r\n\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\t\tspells : [\"create or destroy water\"],\r\n\t\t\t\tselection : [\"create or destroy water\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"goliath\"] = { // Added cold resistance in accordance with the VGtM 2020 errata https://media.wizards.com/2020/dnd/downloads/VGtM-Errata.pdf\r\n\tregExpSearch : /goliath/i,\r\n\tname : \"Goliath\",\r\n\tsource : [[\"E\", 11], [\"V\", 108], [\"W\", 175]],\r\n\tplural : \"Goliaths\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Giant\"],\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Athletics\"],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" are between 6 and a half and 8 feet tall (6'2\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 280 and 340 lb (200 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 2 and 2,4 metres tall (190 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 100 and 155 kg (90 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"stone's endurance\" : {\r\n\t\t\tname : \"Stone's Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Goliath (+2 Strength, +1 Constitution)\"+\r\n\t\"\\n \\u2022 Stone's Endurance: Once per short rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\"+\r\n\t(typePF ? \"\\n \\u2022 Natural Athlete: I have proficiency in the Athletics skill.\" : \"\"),\r\n\tcarryingCapacity : 2\r\n};\r\n\r\n// Feat\r\nFeatsList[\"svirfneblin magic\"] = {\r\n\tname : \"Svirfneblin Magic\",\r\n\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 114]],\r\n\tprerequisite : \"Being a Svirfneblin (Deep Gnome)\",\r\n\tprereqeval : function(v) { return CurrentRace.known === 'deep gnome'; },\r\n\tdescriptionFull : \"You have inherited the innate spellcasting ability of your ancestors. This ability allows you to cast Nondetection on yourself at will, without needing a material component. You can also cast each of the following spells once with this ability: Blindness/Deafness, Blur, and Disguise Self. You regain the ability to cast these spells when you finish a long rest.\\n   Intelligence is your spellcasting ability for these spells, and you cast them at their lowest possible levels.\",\r\n\tdescription : \"I can cast Nondetection on myself at will, without a material component. I can also cast the spells Blindness/Deafness, Blur, and Disguise Self once each. I regain the ability to cast these spells when I finish a long rest. Intelligence is my spellcasting ability for these spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"at will (self only)\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"nondetection\"],\r\n\t\tselection : [\"nondetection\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"1\\xD7 long rest (self only)\",\r\n\t\tspells : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\tselection : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\tfirstCol : 'oncelr',\r\n\t\ttimes : 3\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"nondetection\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"I am hidden from all divination magic\",\r\n\t\t\tchanges : \"Using Svirfneblin Magic, I can cast Nondetection without a material component, but only on myself.\"\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Spells\r\nSpellsList[\"abi-dalzim's horrid wilting\"] = {\r\n\tname : \"Abi-Dalzim's Horrid Wilting\",\r\n\tnameShort : \"Abi-D's Horrid Wilting\",\r\n\tnameAlt : \"Horrid Wilting\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 8,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of sponge\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft cube all crea 12d8 Necrotic dmg; save halves; plants/water elem. dis. const/undead immune\",\r\n\tdescriptionFull : \"You draw the moisture from every creature in a 30-foot cube centered on a point you choose within range. Each creature in that area must make a Constitution saving throw. Constructs and undead aren't affected, and plants and water elementals make this saving throw with disadvantage. A creature takes 12d8 necrotic damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"Nonmagical plants in the area that aren't creatures, such as trees and shrubs, wither and die instantly.\"\r\n};\r\nSpellsList[\"absorb elements\"] = {\r\n\tname : \"Absorb Elements\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take acid, cold, fire, lightning, or thunder damage\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"Acid, Cold, Fire, Lightning, or Thunder resistance till next turn start; first melee hit +1d6+1d6/SL dmg\",\r\n\tdescriptionFull : \"The spell captures some of the incoming energy, lessening its effect on you and storing it for your next melee attack. You have resistance to the triggering damage type until the start of your next turn. Also, the first time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the extra damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"aganazzar's scorcher\"] = {\r\n\tname : \"Aganazzar's Scorcher\",\r\n\tnameAlt : \"Scorch\", //as per the Spell Compendium's (DnD 3.5e) alternative name\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A red dragon's scale\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft long 5-ft wide line all creatures 3d8+1d8/SL Fire dmg; save halves\",\r\n\tdescriptionFull : \"A line of roaring flame 30 feet long and 5 feet wide emanates from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 3d8 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"beast bond\"] = {\r\n\tname : \"Beast Bond\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of fur wrapped in a cloth\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Telepathic link with 1 beast Int<4 while in line of sight; beast has adv. on attacks vs. crea I can see\",\r\n\tdescriptionFull : \"You establish a telepathic link with one beast you touch that is friendly to you or charmed by you. The spell fails if the beast's Intelligence is 4 or higher. Until the spell ends, the link is active while you and the beast are within line of sight of each other. Through the link, the beast can understand your telepathic messages to it, and it can telepathically communicate simple emotions and concepts back to you. While the link is active, the beast gains advantage on attack rolls against any creature within 5 feet of you that you can see.\"\r\n};\r\nSpellsList[\"bones of the earth\"] = {\r\n\tname : \"Bones of the Earth\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lifted, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionShorter : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionShorterMetric : \"6+2/SL 1,5-m dia stone lift 9 m; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionFull : \"You cause up to six pillars of stone to burst from places on the ground that you can see within range. Each pillar is a cylinder that has a diameter of 5 feet and a height of up to 30 feet. The ground where a pillar appears must be wide enough for its diameter, and you can target the ground under a creature if that creature is Medium or smaller. Each pillar has AC 5 and 30 hit points. When reduced to 0 hit points, a pillar crumbles into rubble, which creates an area of difficult terrain with a 10-foot radius that lasts until the rubble is cleared. Each 5-foot-diameter portion of the area requires at least 1 minute to clear by hand.\\n   If a pillar is created under a creature, that creature must succeed on a Dexterity saving throw or be lifted by the pillar. A creature can choose to fail the save.\\n   If a pillar is prevented from reaching its full height because of a ceiling or other obstacle, a creature on the pillar takes 6d6 bludgeoning damage and is restrained, pinched between the pillar and the obstacle. The restrained creature can use an action to make a Strength or Dexterity check (the creature's choice) against the spell's save DC. On a success, the creature is no longer restrained and must either move off the pillar or fall off it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 7th level or higher, you can create two additional pillars for each slot level above 6th.\"\r\n};\r\nSpellsList[\"catapult\"] = {\r\n\tname : \"Catapult\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Send 5+5/SL lb unattended object in 90 ft straight line; if crea hit, save or 3d8+1d8/SL Bludg. dmg\",\r\n\tdescriptionFull : \"Choose one object weighing 1 to 5 pounds within range that isn't being worn or carried. The object flies in a straight line up to 90 feet in a direction you choose before falling to the ground, stopping early if it impacts against a solid surface. If the object would strike a creature, that creature must make a Dexterity saving throw. On a failed save, the object strikes the target and stops moving. When the object strikes something, the object and what it strikes each take 3d8 bludgeoning damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the maximum weight of objects that you can target with this spell increases by 5 pounds, and the damage increases by 1d8, for each slot level above 1st.\"\r\n};\r\nSpellsList[\"control flames\"] = {\r\n\tname : \"Control Flames\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"Nonmagical flame up to 5 cu ft; instant: expand/extinguish, 1h: brighten/dim/color/create shapes\",\r\n\tdescriptionFull : \"You choose nonmagical flame that you can see within range and that fits within a 5-foot cube. You affect it in one of the following ways.\" + \"\\n \\u2022 \" + \"You instantaneously expand the flame 5 feet in one direction, provided that wood or other fuel is present in the new location.\" + \"\\n \\u2022 \" + \"You instantaneously extinguish the flames within the cube.\" + \"\\n \\u2022 \" + \"You double or halve the area of bright light and dim light cast by the flame, change its color, or both. The change lasts for 1 hour.\" + \"\\n \\u2022 \" + \"You cause simple shapes-such as the vague form of a creature, an inanimate object, or a location-to appear within the flames and animate as you like. The shapes last for 1 hour.\" + \"\\n   \" + \"If you cast this spell multiple times, you can have up to three of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"control winds\"] = {\r\n\tname : \"Control Winds\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16], [\"UA:D\", 8]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"100-ft cube of air either gusts, downdraft, or updraft; affects flying/jump/ranged; 1 a change; see B\",\r\n\tdescriptionFull : \"You take control of the air in a 100-foot cube that you can see within range. Choose one of the following effects when you cast the spell. The effect lasts for the spell's duration, unless you use your action on a later turn to switch to a different effect. You can also use your action to temporarily halt the effect or to restart one you've halted.\" + \"\\n   \" + toUni(\"Gusts\") + \": A wind picks up within the cube, continually blowing in a horizontal direction you designate. You choose the intensity of the wind: calm, moderate, or strong. If the wind is moderate or strong, ranged weapon attacks that enter or leave the cube or pass through it have disadvantage on their attack rolls. If the wind is strong, any creature moving against the wind must spend 1 extra foot of movement for each foot moved.\" + \"\\n   \" + toUni(\"Downdraft\") + \": You cause a sustained blast of strong wind to blow downward from the top of the cube. Ranged weapon attacks that pass through the cube or that are made against targets within it have disadvantage on their attack rolls. A creature must make a Strength saving throw if it flies into the cube for the first time on a turn or starts its turn there flying. On a failed save, the creature is knocked prone.\" + \"\\n   \" + toUni(\"Updraft\") + \": You cause a sustained updraft within the cube, rising upward from the cube's bottom side. Creatures that end a fall within the cube take only half damage from the fall. When a creature in the cube makes a vertical jump, the creature can jump up to 10 feet higher than normal.\"\r\n};\r\nSpellsList[\"create bonfire\"] = {\r\n\tname : \"Create Bonfire\",\r\n\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft cube all crea now/enter/end turn save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\tdescriptionShorter : \"5-ft cube all now/enter/end save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"5-ft cube all crea at casting, entering, or end turn in save or `CD`d8 Fire dmg; ignites flammable\",\r\n\tdescriptionFull : \"You create a bonfire on ground that you can see within range. Until the spell ends, the magic bonfire fills a 5-foot cube. Any creature in the bonfire's space when you cast the spell must succeed on a Dexterity saving throw or take 1d8 fire damage. A creature must also make the saving throw when it moves into the bonfire's space for the first time on a turn or ends its turn there.\" + \"\\n   \" + \"The bonfire ignites flammable objects in its area that aren't being worn or carried.\" + \"\\n   \" + \"The spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\"\r\n};\r\nSpellsList[\"dust devil\"] = {\r\n\tname : \"Dust Devil\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pinch of dust\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft cube; all in 5-ft 1d8+1d8/SL Bludg. dmg and pushed 10 ft away; save halves, no push; see book\",\r\n\tdescriptionFull : \"Choose an unoccupied 5-foot cube of air that you can see within range. An elemental force that resembles a dust devil appears in the cube and lasts for the spell's duration.\" + \"\\n   \" + \"Any creature that ends its turn within 5 feet of the dust devil must make a Strength saving throw. On a failed save, the creature takes 1d8 bludgeoning damage and is pushed 10 feet away from the dust devil. On a successful save, the creature takes half as much damage and isn't pushed.\" + \"\\n   \" + \"As a bonus action, you can move the dust devil up to 30 feet in any direction. If the dust devil moves over sand, dust, loose dirt, or light gravel, it sucks up the material and forms a 10-foot-radius cloud of debris around itself that lasts until the start of your next turn. The cloud heavily obscures its area.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"earthbind\"] = {\r\n\tname : \"Earthbind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 creatures save or fly speed is reduced to 0; airborne creatures safely descend at 60 ft per round\",\r\n\tdescriptionFull : \"Choose one creature you can see within range. Yellow strips of magical energy loop around the creature. The target must succeed on a Strength saving throw, or its flying speed (if any) is reduced to 0 feet for the spell's duration. An airborne creature affected by this spell safely descends at 60 feet per round until it reaches the ground or the spell ends.\"\r\n};\r\nSpellsList[\"earth tremor\"] = {\r\n\tname : \"Earth Tremor\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea in range except me save or 1d6+1d6/SL Bludgeoning dmg and prone; loose ground is dif. ter.\",\r\n\tdescriptionFull : \"You cause a tremor in the ground within range. Each creature other than you in that area must make a Dexterity saving throw. On a failed save, a creature takes 1d6 bludgeoning damage and is knocked prone. If the ground in that area is loose earth or stone, it becomes difficult terrain until cleared, with each 5-foot-diameter portion requiring at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"elemental bane\"] = {\r\n\tname : \"Elemental Bane\",\r\n\tclasses : [\"artificer\", \"druid\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. to it \\u0026 +2d6 to first dmg with it/turn\",\r\n\tdescriptionShorter : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. \\u0026 +2d6 first dmg/turn\",\r\n\tdescriptionFull : \"Choose one creature you can see within range, and choose one of the following damage types - acid, cold, fire, lightning, or thunder. The target must succeed on a Constitution saving throw or be affected by the spell for its duration. The first time each turn the affected target takes damage of the chosen type, the target takes an extra 2d6 damage of that type. Moreover, the target loses any resistance to that damage type until the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\t\tinDescriptionAs : \"first\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"erupting earth\"] = {\r\n\tname : \"Erupting Earth\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A piece of obsidian\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft cube all crea 3d12+1d12/SL Bludgeoning dmg; save halves; area becomes difficult terrain\",\r\n\tdescriptionFull : \"Choose a point you can see on the ground within range. A fountain of churned earth and stone erupts in a 20-foot cube centered on that point. Each creature in that area must make a Dexterity saving throw. A creature takes 3d12 bludgeoning damage on a failed save, or half as much damage on a successful one. Additionally, the ground in that area becomes difficult terrain until cleared. Each 5-foot-square portion of the area requires at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d12 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"flame arrows\"] = {\r\n\tname : \"Flame Arrows\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"12+2/SL ammunition drawn from touched quiver do +1d6 Fire damage on a successful hit\",\r\n\tdescriptionFull : \"You touch a quiver containing arrows or bolts. When a target is hit by a ranged weapon attack using a piece of ammunition drawn from the quiver, the target takes an extra 1d6 fire damage. The spell's magic ends on the piece of ammunition when it hits or misses, and the spell ends when twelve pieces of ammunition have been drawn from the quiver.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of pieces of ammunition you can affect with this spell increases by two for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"frostbite\"] = {\r\n\tname : \"Frostbite\",\r\n\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Cold dmg and dis. on next weapon attack roll; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Cold dmg and dis. on next weapon attack roll\",\r\n\tdescriptionFull : \"You cause numbing frost to form on one creature that you can see within range. The target must make a Constitution saving throw. On a failed save, the target takes 1d6 cold damage, and it has disadvantage on the next weapon attack roll it makes before the end of its next turn.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"gust\"] = {\r\n\tname : \"Gust\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 157], [\"E\", 19], [\"E:RLW\", 50], [\"UA:D\", 6], [\"WGtE\", 107]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Med. or smaller crea save or push 5 ft; or push unattended 5 lb obj 10 ft; or harmless sensory effect\",\r\n\tdescriptionFull : \"You seize the air and compel it to create one of the following effects at a point you can see within range.\" + \"\\n \" + \"\\u2022 One Medium or smaller creature that you choose must succeed on a Strength saving throw or be pushed up to 5 feet away from you.\" + \"\\n \" + \"\\u2022 You create a small blast of air capable of moving one object that is neither held nor carried and that weighs no more than 5 pounds. The object is pushed up to 10 feet away from you. It isn't pushed with enough force to cause damage.\" + \"\\n \" + \"\\u2022 You create a harmless sensory affect using air, such as causing leaves to rustle, wind to slam shutters shut, or your clothing to ripple in a breeze.\"\r\n};\r\nSpellsList[\"ice knife\"] = {\r\n\tname : \"Ice Knife\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 157], [\"E\", 19]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A drop of water or piece of ice\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Ranged atk for 1d10 Piercing dmg; hit/miss 5-ft rad on target all crea save or 2d6+1d6/SL Cold dmg\",\r\n\tdescriptionShorter : \"Ranged atk 1d10 Piercing dmg; on target 5-ft rad all crea save or 2d6+1d6/SL Cold dmg\",\r\n\tdescriptionFull : \"You create a shard of ice and fling it at one creature within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 piercing damage. Hit or miss, the shard then explodes. The target and each creature within 5 feet of it must succeed on a Dexterity saving throw or take 2d6 cold damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the cold damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"immolation\"] = {\r\n\tname : \"Immolation\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 158], [\"E\", 19]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or 8d6 Fire dmg \\u0026 burns for 4d6 Fire dmg/rnd; save each rnd to end; save half, no burning\",\r\n\tdescriptionShorter : \"1 crea save or 8d6 Fire dmg \\u0026 4d6 Fire dmg/rnd; save each rnd to end; save half, no rnds\",\r\n\tdescriptionFull : \"Flames wreathe one creature you can see within range. The target must make a Dexterity saving throw. It takes 8d6 fire damage on a failed save, or half as much damage on a successful one. On a failed save, the target also burns for the spell's duration. The burning target sheds bright light in a 30-foot radius and dim light for an additional 30 feet. At the end of each of its turns, the target repeats the saving throw. It takes 4d6 fire damage on a failed save, and the spell ends on a successful one. These magical flames can't be extinguished by nonmagical means.\" + \"\\n   \" + \"If damage from this spell kills a target, the target is turned to ash.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"investiture of flame\"] = {\r\n\tname : \"Investiture of Flame\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Fire immune; Cold res.; 1d10 Fire dmg in 5 ft; 1 a 15-ft long 5-ft wide all crea 4d8 Fire dmg, save half\",\r\n\tdescriptionShorter : \"Fire im.; Cold res.; 1d10 Fire dmg in 5 ft; 1a 15-ft long 5-ft wide all 4d8 Fire dmg, save half\",\r\n\tdescriptionShorterMetric : \"Fire immune; Cold res.; 1d10 Fire dmg in 1,5 m; 1 a 4,5-m long all 4d8 Fire dmg, save half\",\r\n\tdescriptionFull : \"Flames race across your body, shedding bright light in a 30-foot radius and dim light for an additional 30 feet for the spell's duration. The flames don't harm you. Until the spell ends, you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to fire damage and have resistance to cold damage.\" + \"\\n \" + \"\\u2022 Any creature that moves within 5 feet of you for the first time on a turn or ends its turn there takes 1d10 fire damage.\" + \"\\n \" + \"\\u2022 You can use your action to create a line of fire 15 feet long and 5 feet wide extending from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 4d8 fire damage on a failed save, or half as much damage on a successful one.\"\r\n};\r\nSpellsList[\"investiture of ice\"] = {\r\n\tname : \"Investiture of Ice\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all crea 4d6 Cold dmg, half spd; save half, no spd\",\r\n\tdescriptionShorter : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all 4d6 Cold dmg, half speed; save half\",\r\n\tdescriptionFull : \"Until the spell ends, ice rimes your body, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to cold damage and have resistance to fire damage.\" + \"\\n \" + \"\\u2022 You can move across difficult terrain created by ice or snow without spending extra movement.\" + \"\\n \" + \"\\u2022 The ground in a 10-foot radius around you is icy and is difficult terrain for creatures other than you. The radius moves with you.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cone of freezing wind extending from your outstretched hand in a direction you choose. Each creature in the cone must make a Constitution saving throw. A creature takes 4d6 cold damage on a failed save, or half as much damage on a successful one. A creature that fails its save against this effect has its speed halved until the start of your next turn.\"\r\n};\r\nSpellsList[\"investiture of stone\"] = {\r\n\tname : \"Investiture of Stone\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Nonmagical Bludg/Pierc/Slash resist.; 1 a 15-ft rad all crea save or prone; move through earth/stone\",\r\n\tdescriptionFull : \"Until the spell ends, bits of rock spread across your body, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks.\" + \"\\n \\u2022 \" + \"You can use your action to create a small earthquake on the ground in a 15-foot radius centered on you. Other creatures on that ground must succeed on a Dexterity saving throw or be knocked prone.\" + \"\\n \\u2022 \" + \"You can move across difficult terrain made of earth or stone without spending extra movement. You can move through solid earth or stone as if it was air and without destabilizing it, but you can't end your movement there. If you do so, you are ejected to the nearest unoccupied space, this spell ends, and you are stunned until the end of your next turn.\"\r\n};\r\nSpellsList[\"investiture of wind\"] = {\r\n\tname : \"Investiture of Wind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Rngd wea atks dis. vs. me; fly 60 ft; 1 a 15-ft cube in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\tdescriptionShorter : \"Rngd wea atk dis; fly 60 ft; 1 a 15-ft cu in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\tdescriptionFull : \"Until the spell ends, wind whirls around you, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 Ranged weapon attacks made against you have disadvantage on the attack roll.\" + \"\\n \" + \"\\u2022 You gain a flying speed of 60 feet. If you are still flying when the spell ends, you fall, unless you can somehow prevent it.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cube of swirling wind centered on a point you can see within 60 feet of you. Each creature in that area must make a Constitution saving throw. A creature takes 2d10 bludgeoning damage on a failed save, or half as much damage on a successful one. If a Large or smaller creature fails the save, that creature is also pushed up to 10 feet away from the center of the cube.\"\r\n};\r\nSpellsList[\"maelstrom\"] = {\r\n\tname : \"Maelstrom\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Paper or leaf in the shape of a funnel\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft deep 30-ft rad dif. ter.; all crea starting turn in save or 6d6 Bludg. dmg and pulled 10 ft to center\",\r\n\tdescriptionShorter : \"5-ft deep 30-ft rad dif. ter.; all start turn in save or 6d6 Bludg. dmg \\u0026 pull 10 ft to center\",\r\n\tdescriptionFull : \"A mass of 5-foot-deep water appears and swirls in a 30-foot radius centered on a point you can see within range. The point must be on ground or in a body of water. Until the spell ends, that area is difficult terrain, and any creature that starts its turn there must succeed on a Strength saving throw or take 6d6 bludgeoning damage and be pulled 10 feet toward the center.\"\r\n};\r\nSpellsList[\"magic stone\"] = {\r\n\tname : \"Magic Stone\",\r\n\tclasses : [\"artificer\", \"druid\", \"warlock\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"Imbue 3 pebbles for spell attacks, thrown 60 ft or with sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\tdescriptionShorter : \"Imbue 3 pebbles for spell atk, thrown 60 ft or sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\tdescriptionFull : \"You touch one to three pebbles and imbue them with magic. You or someone else can make a ranged spell attack with one of the pebbles by throwing it or hurling it with a sling. If thrown, it has a range of 60 feet. If someone else attacks with the pebble, that attacker adds your spellcasting ability modifier, not the attacker's, to the attack roll. On a hit, the target takes bludgeoning damage equal to 1d6 + your spellcasting ability modifier. Hit or miss, the spell then ends on the stone.\" + \"\\n   \" + \"If you cast this spell again, the spell ends early on any pebbles still affected by it.\"\r\n};\r\nSpellsList[\"maximilian's earthen grasp\"] = {\r\n\tname : \"Maximilian's Earthen Grasp\",\r\n\tnameShort : \"Max's Earthen Grasp\",\r\n\tnameAlt : \"Earthen Grasp\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A miniature hand sculpted from clay\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Medium hand atks 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a hand moves/atks, releases; see B\",\r\n\tdescriptionShorter : \"Medium hand atk 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a move/atk, release; see B\",\r\n\tdescriptionFull : \"You choose a 5-foot-square unoccupied space on the ground that you can see within range. A Medium hand made from compacted soil rises there and reaches for one creature you can see within 5 feet of it. The target must make a Strength saving throw. On a failed save, the target takes 2d6 bludgeoning damage and is restrained for the spell's duration.\" + \"\\n   \" + \"As an action, you can cause the hand to crush the restrained target, which must make a Strength saving throw. The target takes 2d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"To break out, the restrained target can use its action to make a Strength check against your spell save DC. On a success, the target escapes and is no longer restrained by the hand.\" + \"\\n   \" + \"As an action, you can cause the hand to reach for a different creature or to move to a different unoccupied space within range. The hand releases a restrained target if you do either.\"\r\n};\r\nSpellsList[\"melf's minute meteors\"] = {\r\n\tname : \"Melf's Minute Meteors\",\r\n\tnameAlt : \"Minute Meteors\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Niter, sulfur, and pine tar formed into a bead\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"6+2/SL meteors; at casting/bns a send up to two 120 ft for 5-ft rad all crea 2d6 Fire dmg; save half\",\r\n\tdescriptionShorter : \"6+2/SL meteors; at cast/bns a send up to two 120 ft for 5-ft rad all 2d6 Fire dmg; save half\",\r\n\tdescriptionFull : \"You create six tiny meteors in your space. They float in the air and orbit you for the spell's duration. When you cast the spell-and as a bonus action on each of your turns thereafter-you can expend one or two of the meteors, sending them streaking toward a point or points you choose within 120 feet of you. Once a meteor reaches its destination or impacts against a solid surface, the meteor explodes. Each creature within 5 feet of the point where the meteor explodes must make a Dexterity saving throw. A creature takes 2d6 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of meteors created increases by two for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"mold earth\"] = {\r\n\tname : \"Mold Earth\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 162], [\"E\", 21]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"5 cu ft earth; instant.: excavate; 1h: change to difficult or normal terrain, or change shape and color\",\r\n\tdescriptionFull : \"You choose a portion of dirt or stone that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 If you target an area of loose earth, you can instantaneously excavate it, move it along the ground, and deposit it up to 5 feet away. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause shapes, colors, or both to appear on the dirt or stone, spelling out words, creating images, or shaping patterns. The changes last for 1 hour.\" + \"\\n \" + \"\\u2022 If the dirt or stone you target is on the ground, you cause it to become difficult terrain. Alternatively, you can cause the ground to become normal terrain if it is already difficult terrain. This change lasts for 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"primordial ward\"] = {\r\n\tname : \"Primordial Ward\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Acid, Cold, Fire, Lightning, and Thunder resistance; use rea to gain 1 immunity for 1 rnd, spell ends\",\r\n\tdescriptionFull : \"You have resistance to acid, cold, fire, lightning, and thunder damage for the spell's duration.\" + \"\\n   \" + \"When you take damage of one of those types, you can use your reaction to gain immunity to that type of damage, including against the triggering damage. If you do so, the resistances end, and you have the immunity until the end of your next turn, at which time the spell ends.\"\r\n};\r\nSpellsList[\"pyrotechnics\"] = {\r\n\tname : \"Pyrotechnics\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"5 cu ft nonma. flame extinguish, or 10-ft rad all crea save or blind 1 rnd, or 20-ft rad hvy obsc. 1 min\",\r\n\tdescriptionFull : \"Choose an area of nonmagical flame that you can see and that fits within a 5-foot cube within range. You can extinguish the fire in that area, and you create either fireworks or smoke when you do so.\" + \"\\n   \" + toUni(\"Fireworks\") + \": The target explodes with a dazzling display of colors. Each creature within 10 feet of the target must succeed on a Constitution saving throw or become blinded until the end of your next turn.\" + \"\\n   \" + toUni(\"Smoke\") + \": Thick black smoke spreads out from the target in a 20-foot radius, moving around corners. The area of the smoke is heavily obscured. The smoke persists for 1 minute or until a strong wind disperses it.\"\r\n};\r\nSpellsList[\"shape water\"] = {\r\n\tname : \"Shape Water\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 164], [\"E\", 21], [\"W\", 172]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"5 cu ft water; instant: move/change flow; 1h: simple shapes/change color or opacity/freeze\",\r\n\tdescriptionFull : \"You choose an area of water that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 You instantaneously move or otherwise change the flow of the water as you direct, up to 5 feet in any direction. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause the water to form into simple shapes and animate at your direction. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You change the water's color or opacity. The water must be changed in the same way throughout. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You freeze the water, provided that there are no creatures in it. The water unfreezes in 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"skywrite\"] = {\r\n\tname : \"Skywrite\",\r\n\tclasses : [\"artificer\", \"bard\", \"druid\", \"wizard\"],\r\n\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Sight\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Write up to 10 words with clouds in a part of the sky I can see; strong wind can diperse the clouds\",\r\n\tdescriptionFull : \"You cause up to ten words to form in a part of the sky you can see. The words appear to be made of cloud and remain in place for the spell's duration. The words dissipate when the spell ends. A strong wind can disperse the clouds and end the spell early.\"\r\n};\r\nSpellsList[\"snilloc's snowball swarm\"] = {\r\n\tname : \"Snilloc's Snowball Swarm\",\r\n\tnameAlt : \"Snowball Swarm\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A piece of ice or a small white rock chip\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft radius all creatures 3d6+1d6/SL Cold damage; save halves\",\r\n\tdescriptionFull : \"A flurry of magic snowballs erupts from a point you choose within range. Each creature in a 5-foot-radius sphere centered on that point must make a Dexterity saving throw. A creature takes 3d6 cold damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"storm sphere\"] = {\r\n\tname : \"Storm Sphere\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 166], [\"E\", 22]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad dif. ter., all now/end turn save or 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\tdescriptionShorter : \"20-ft rad dif. ter., all save/turn 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\tdescriptionFull : \"A 20-foot-radius sphere of whirling air springs into existence centered on a point you choose within range. The sphere remains for the spell's duration. Each creature in the sphere when it appears or that ends its turn there must succeed on a Strength saving throw or take 2d6 bludgeoning damage. The sphere's space is difficult terrain.\" + \"\\n   \" + \"Until the spell ends, you can use a bonus action on each of your turns to cause a bolt of lightning to leap from the center of the sphere toward one creature you choose within 60 feet of the center. Make a ranged spell attack. You have advantage on the attack roll if the target is in the sphere. On a hit, the target takes 4d6 lightning damage.\" + \"\\n   \" + \"Creatures within 30 feet of the sphere have disadvantage on Wisdom (Perception) checks made to listen.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases for each of its effects by 1d6 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"thunderclap\"] = {\r\n\tname : \"Thunderclap\",\r\n\tclasses : [\"artificer\", \"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"100-ft rad audible; all crea but me in area save or 1d6 Thunder dmg; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"100-ft rad audible; all crea but me in area save or `CD`d6 Thunder dmg\",\r\n\tdescriptionFull : \"You create a burst of thunderous sound that can be heard up to 100 feet away. Each creature within range, other than you, must succeed on a Constitution saving throw or take 1d6 thunder damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"tidal wave\"] = {\r\n\tname : \"Tidal Wave\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of water\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft x 10-ft, 10-ft high all crea 4d8 Bludg. dmg and prone; save halves not prone; extinguish flames\",\r\n\tdescriptionFull : \"You conjure up a wave of water that crashes down on an area within range. The area can be up to 30 feet long, up to 10 feet wide, and up to 10 feet tall. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 4d8 bludgeoning damage and is knocked prone. On a successful save, a creature takes half as much damage and isn't knocked prone. The water then spreads out across the ground in all directions, extinguishing unprotected flames in its area and within 30 feet of it, and then it vanishes.\"\r\n};\r\nSpellsList[\"transmute rock\"] = {\r\n\tname : \"Transmute Rock\",\r\n\tclasses : [\"artificer\", \"druid\", \"wizard\"],\r\n\tsource : [[\"X\", 169], [\"E\", 22]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Clay and water\",\r\n\tduration : \"Until dispelled\",\r\n\tdescription : \"40 cu ft stone to mud or mud to stone; mud and stone restrains; mud from ceiling falls; see book\",\r\n\tdescriptionFull : \"You choose an area of stone or mud that you can see that fits within a 40-foot cube and is within range, and choose one of the following effects.\" + \"\\n   \" + toUni(\"Transmute Rock to Mud\") + \": Nonmagical rock of any sort in the area becomes an equal volume of thick, flowing mud that remains for the spell's duration.\" + \"\\n   \" + \"The ground in the spell's area becomes muddy enough that creatures can sink into it. Each foot that a creature moves through the mud costs 4 feet of movement, and any creature on the ground when you cast the spell must make a Strength saving throw. A creature must also make the saving throw when it moves into the area for the first time on a turn or ends its turn there. On a failed save, a creature sinks into the mud and is restrained, though it can use an action to end the restrained condition on itself by pulling itself free of the mud.\" + \"\\n   \" + \"If you cast the spell on a ceiling, the mud falls. Any creature under the mud when it falls must make a Dexterity saving throw. A creature takes 4d8 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + toUni(\"Transmute Mud to Rock\") + \": Nonmagical mud or quicksand in the area no more than 10 feet deep transforms into soft stone for the spell's duration. Any creature in the mud when it transforms must make a Dexterity saving throw. On a successful save, a creature is shunted safely to the surface in an unoccupied space. On a failed save, a creature becomes restrained by the rock. A restrained creature, or another creature within reach, can use an action to try to break the rock by succeeding on a DC 20 Strength check or by dealing damage to it. The rock has AC 15 and 25 hit points, and it is immune to poison and psychic damage.\"\r\n};\r\nSpellsList[\"vitriolic sphere\"] = {\r\n\tname : \"Vitriolic Sphere\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of giant slug bile\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn end; save half \\u0026 no dmg next turn\",\r\n\tdescriptionShorter : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn; save half \\u0026 no next turn\",\r\n\tdescriptionFull : \"You point at a location within range, and a glowing, 1-foot-diameter ball of emerald acid streaks there and explodes in a 20-foot-radius sphere. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 10d4 acid damage and another 5d4 acid damage at the end of its next turn. On a successful save, a creature takes half the initial damage and no damage at the end of its next turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the initial damage increases by 2d4 for each slot level above 4th.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /((?:\\+?\\d+d?\\d*)+)( dmg next turn)/i\r\n\t}\r\n};\r\nSpellsList[\"wall of sand\"] = {\r\n\tname : \"Wall of Sand\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A handful of sand\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"30\\xD710\\xD710ft (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\tdescriptionMetric : \"9\\xD73\\xD73m (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\tdescriptionFull : \"You conjure up a wall of swirling sand on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 10 feet thick, and it vanishes when the spell ends. It blocks line of sight but not movement. A creature is blinded while in the wall's space and must spend 3 feet of movement for every 1 foot it moves there.\"\r\n};\r\nSpellsList[\"wall of water\"] = {\r\n\tname : \"Wall of Water\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23], [\"V\", 116], [\"MOT\", 27]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of water\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"30\\xD71\\xD710ft (l\\xD7w\\xD7h) or 20-ft rad 20-ft high; dif. ter.; range wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\tdescriptionMetric : \"9\\xD70,3\\xD73m (l\\xD7w\\xD7h) or 6-m rad 6-m high; dif. ter.; ranged wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\tdescriptionFull : \"You conjure up a wall of water on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 1 foot thick, or you can make a ringed wall up to 20 feet in diameter, 20 feet high, and 1 foot thick. The wall vanishes when the spell ends. The wall's space is difficult terrain.\" + \"\\n   \" + \"Any ranged weapon attack that enters the wall's space has disadvantage on the attack roll, and fire damage is halved if the fire effect passes through the wall to reach its target. Spells that deal cold damage that pass through the wall cause the area of the wall they pass through to freeze solid (at least a 5-foot square section is frozen). Each 5-foot-square frozen section has AC 5 and 15 hit points. Reducing a frozen section to 0 hit points destroys it. When a section is destroyed, the wall's water doesn't fill it.\"\r\n};\r\nSpellsList[\"warding wind\"] = {\r\n\tname : \"Warding Wind\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Strong (20 mph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\tdescriptionMetric : \"Strong (32 kph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\tdescriptionFull : \"A strong wind (20 miles per hour) blows around you in a 10-foot radius and moves with you, remaining centered on you. The wind lasts for the spell's duration.\\n   The wind has the following effects.\"+\r\n\t\"\\n \\u2022 It deafens you and other creatures in its area.\"+\r\n\t\"\\n \\u2022 It extinguishes unprotected flames in its area that are torch-sized or smaller.\"+\r\n\t\"\\n \\u2022 The area is difficult terrain for creatures other than you.\"+\r\n\t\"\\n \\u2022 The attack rolls of ranged weapon attacks have disadvantage if they pass in or out of the wind.\"+\r\n\t\"\\n \\u2022 It hedges out vapor, gas, and fog that can be dispersed by strong wind.\"\r\n};\r\nSpellsList[\"watery sphere\"] = {\r\n\tname : \"Watery Sphere\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A droplet of water\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft rad all crea < Huge save or restrained; on save ejected; save each rnd; 1 a move sphere 30 ft\",\r\n\tdescriptionFull : \"You conjure up a sphere of water with a 5-foot radius at a point you can see within range. The sphere can hover but no more than 10 feet off the ground. The sphere remains for the spell's duration.\" + \"\\n   \" + \"Any creature in the sphere's space must make a Strength saving throw. On a successful save, a creature is ejected from that space to the nearest unoccupied space of the creature's choice outside the sphere. A Huge or larger creature succeeds on the saving throw automatically, and a Large or smaller creature can choose to fail it. On a failed save, a creature is restrained by the sphere and is engulfed by the water. At the end of each of its turns, a restrained target can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"The sphere can restrain as many as four Medium or smaller creatures or one Large creature. If the sphere restrains a creature that causes it to exceed this capacity, a random creature that was already restrained by the sphere falls out of it and lands prone in a space within 5 feet of it.\" + \"\\n   \" + \"As an action, you can move the sphere up to 30 feet in a straight line. If it moves over a pit, a cliff, or other drop-off, it safely descends until it is hovering 10 feet above the ground. Any creature restrained by the sphere moves with it. You can ram the sphere into creatures, forcing them to make the saving throw.\" + \"\\n   \" + \"When the spell ends, the sphere falls to the ground and extinguishes all normal flames within 30 feet of it. Any creature restrained by the sphere is knocked prone in the space where it falls. The water then vanishes.\"\r\n};\r\nSpellsList[\"whirlwind\"] = {\r\n\tname : \"Whirlwind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 171], [\"E\", 24]],\r\n\tlevel : 7,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A piece of straw\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"10-ft rad 30-ft high all crea 10d6 Bludg. dmg; save halves; restrains; 1 a move 30 ft; see book\",\r\n\tdescriptionFull : \"A whirlwind howls down to a point that you can see on the ground within range. The whirlwind is a 10-foot-radius, 30-foot-high cylinder centered on that point. Until the spell ends, you can use your action to move the whirlwind up to 30 feet in any direction along the ground. The whirlwind sucks up any Medium or smaller objects that aren't secured to anything and that aren't worn or carried by anyone.\" + \"\\n   \" + \"A creature must make a Dexterity saving throw the first time on a turn that it enters the whirlwind or that the whirlwind enters its space, including when the whirlwind first appears. A creature takes 10d6 bludgeoning damage on a failed save, or half as much damage on a successful one. In addition, a Large or smaller creature that fails the save must succeed on a Strength saving throw or become restrained in the whirlwind until the spell ends. When a creature starts its turn restrained by the whirlwind, the creature is pulled 5 feet higher inside it, unless the creature is at the top. A restrained creature moves with the whirlwind and falls when the spell ends, unless the creature has some means to stay aloft.\" + \"\\n   \" + \"A restrained creature can use an action to make a Strength or Dexterity check against your spell save DC. If successful, the creature is no longer restrained by the whirlwind and is hurled 3d6 \\xD7 10 feet away from it in a random direction.\"\r\n};\r\n\r\n// Weapons (attack cantrips)\r\nWeaponsList[\"create bonfire\"] = {\r\n\tregExpSearch : /^(?=.*create)(?=.*bonfire).*$/i,\r\n\tname : \"Create Bonfire\",\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"5-ft cube; Dex save at casting or when moved into, success - no damage; Conc, 1 min\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"frostbite\"] = {\r\n\tregExpSearch : /frostbite/i,\r\n\tname : \"Frostbite\",\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"cold\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also disadv. on next weapon attack roll in next turn; 1 creature\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"magic stone\"] = {\r\n\tregExpSearch : /^(?=.*magic)(?=.*stone).*$/i,\r\n\tname : \"Magic Stone\",\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [1, 6, \"bludgeoning\"],\r\n\trange : \"60/120 ft\",\r\n\tdescription : \"Produces 3 stones that each can be thrown (60 ft) or hurled with a sling (120 ft) as a spell attack\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"thunderclap\"] = {\r\n\tregExpSearch : /thunderclap/i,\r\n\tname : \"Thunderclap\",\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"thunder\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; all creatures in area; audible in 100 ft\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\n// pub_20150714_AL-RoD.js\r\n// This file adds the optional backgrounds from the Adventurers League season 3 (Rage of Demons) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"AL:RoD\"]={\r\n\tname : \"Rage of Demons Backgrounds [Hillsfar]\",\r\n\tabbreviation : \"AL:RoD\",\r\n\tgroup : \"Adventurers League\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dropbox.com/s/h4ijcnfun1cn580/Hillsfar-Regional-Character-Options.pdf?dl=1\", // used to be https://dndadventurersleague.org/wp-content/uploads/2015/07/Hillsfar-Regional-Character-Options.pdf\r\n\tdate : \"2015/07/14\"\r\n};\r\n\r\n// Backgrounds (with contributions by AggieBear)\r\nBackgroundList[\"cormanthor refugee\"] = {\r\n\tregExpSearch : /^(?=.*cormanthor)(?=.*refugee).*$/i,\r\n\tname : \"Cormanthor Refugee\",\r\n\tsource : [[\"AL:RoD\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Nature\", \"Survival\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Two-person tent\", \"\", 20],\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Holy symbol (type)\", \"\", 1],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Shelter of the Elven Clergy\",\r\n\ttrait : [\r\n\t\t\"I long for a home that never really existed, whether in the camps, Hillsfar, or Myth Drannor.\",\r\n\t\t\"Though I am not an elf, I am a fervent, radical worshipper of the elven gods.\",\r\n\t\t\"I live in the moment, knowing my life could be turned upside down any day.\",\r\n\t\t\"I appreciate beauty in all of its forms.\",\r\n\t\t\"I hate the dark elves and the Netherese for each driving the elves out of Cormanthyr in the past.\",\r\n\t\t\"I am a forest bumpkin who grew up in a tent in the woods and is wholly ignorant of city life.\",\r\n\t\t\"I was raised alongside children of many other races. I harbor no racial prejudices at all.\",\r\n\t\t\"The elves have just the right word for so many things that cannot be expressed as well in other languages. I pepper my speech with elven words, phrases, and sayings.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Patient\",\r\n\t\t\t\"Patient: The elves have taught me to think and plan for the long-term. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Rebellious\",\r\n\t\t\t\"Rebellious: Governments and politicians drove my family to the camps. I subtly defy authority whenever I think I can get away with it. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Self-Absorbed\",\r\n\t\t\t\"Self-Absorbed: I've had to look out for number one so long that it has become second nature. (Any)\"\r\n\t\t],\r\n\t\t[\"Wanderlust\",\r\n\t\t\t\"Wanderlust: I want to see as much of the world beyond the camps as I can. (Any)\"\r\n\t\t],\r\n\t\t[\"Generous\",\r\n\t\t\t\"Generous: I give everything I can to help those in need, regardless of who they are. (Good)\"\r\n\t\t],\r\n\t\t[\"To the Abyss with Them\",\r\n\t\t\t\"To the Abyss with Them: The people of Hillsfar cast me out. I won't risk my hide to help them. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The elves took me in when I had nowhere else to go. In return, I do what I can to help elves in need.\",\r\n\t\t\"I seek revenge against the people of Hillsfar for driving my family into the forest.\",\r\n\t\t\"My family lost everything when they were driven from Hillsfar. I strive to rebuild that fortune.\",\r\n\t\t\"The forest has provided me with food and shelter. In return, I protect forests and those who dwell within.\",\r\n\t\t\"I am deeply, tragically in love with someone whose racial lifespan is far longer or shorter than mine.\",\r\n\t\t\"Members of my extended family did not make it to the camps or have been kidnapped to fight in the Arena. I search for them tirelessly.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am very uncomfortable indoors and underground\",\r\n\t\t\"I am haughty. I grew up among the elves and emulate them. Other races are crude in comparison.\",\r\n\t\t\"Elf this, elf that. I am sick and tired of the elves.\",\r\n\t\t\"I am a miser. Having lost everything once before, I clutch my possessions and wealth very tightly.\",\r\n\t\t\"I am a moocher. I am so used to others providing for me that I have come to expect everyone to do it.\",\r\n\t\t\"I believe the gods have cursed me, my family, and all of the Cormanthor refugees. We are all doomed, doomed I tell you!\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [\"Elvish\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"gate urchin\"] = {\r\n\tregExpSearch : /^(?=.*gate)(?=.*urchin).*$/i,\r\n\tname : \"Gate Urchin\",\r\n\tsource : [[\"AL:RoD\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Sleight of Hand\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Battered alms box\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Cast-off military jacket, cap, or scarf\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Red Plume and Mage Guild Contacts\",\r\n\ttrait : [\r\n\t\t\"I appreciate the simple things in life: a song, a warm meal, a sunny day. I don't need any more.\",\r\n\t\t\"My problems are always caused by others. I'm never to blame.\",\r\n\t\t\"I am afraid I could wind up back on the streets any day.\",\r\n\t\t\"I get along with everyone.\",\r\n\t\t\"I see people as marks for a con and have difficulty feeling true empathy for them.\",\r\n\t\t\"I have a real flair for matchmaking. I can find anyone a spouse!\",\r\n\t\t\"I think money is the true measure of appreciation and affection. Everything else is talk or an act.\",\r\n\t\t\"I don't like having a lot of stuff, just a few simple things I need. I don't like being tied down and tend to leave things behind when I don't need them anymore.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loyal\",\r\n\t\t\t\"Loyal: I never rat out any of my friends, even when the Red Plumes or the Rogues Guild ask. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Adventurous\",\r\n\t\t\t\"Adventurous: I don't like doing the same thing every day. I crave variety. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Strong\",\r\n\t\t\t\"Strong: Only the strong survive. I respect those who are strong and powerful. (Any)\"\r\n\t\t],\r\n\t\t[\"Witty\",\r\n\t\t\t\"Witty: Brains are better than brawn. I rely on my wits and respect others who do the same. (Any)\"\r\n\t\t],\r\n\t\t[\"Honest\",\r\n\t\t\t\"Honest: Others can do what they want, but I won't lie or steal, even to feed my family. (Good)\"\r\n\t\t],\r\n\t\t[\"Ungrateful\",\r\n\t\t\t\"Ungrateful: Those who give, only do it to make themselves feel better. I steal from them. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The Joydancers of Lliira gave me my instrument when I really needed food. I hate them for that.\",\r\n\t\t\"Busking has taught me to love music above all else.\",\r\n\t\t\"The Rogues Guild spared me when I did a job without cutting them in. I owe them a great debt.\",\r\n\t\t\"I know people hate the Red Plumes, but some of them were really good to me. I help Red Plumes whenever I can, and I respect them. They're just doing what they have to do to get by in this world.\",\r\n\t\t\"I will be wealthy some day. My descendants will live in comfort and style.\",\r\n\t\t\"I know how hard life on the streets is. I do everything I can for those who have less than me.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Though I no longer live at the Gate, I am still always concerned about where I will get my next meal.\",\r\n\t\t\"Years of thieving have become habit. I sometimes steal from strangers without thinking about it.\",\r\n\t\t\"I am ashamed of my origins. I pretend I am higher-born and fear others will find out the truth.\",\r\n\t\t\"I think people who grew up in houses are soft, spoiled, and ungrateful. I frequently tell them so.\",\r\n\t\t\"I am still very uncomfortable wearing nice clothes, sleeping in a warm bed, and eating fine food.\",\r\n\t\t\"I do not trust anyone who has not had a hard life.\"\r\n\t],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], [\"Musical instrument\", 1]],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"hillsfar merchant\"] = {\r\n\tregExpSearch : /^(?=.*hillsfar)(?=.*merchant).*$/i,\r\n\tname : \"Hillsfar Merchant\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 25,\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t\t[\"Letter of introduction from family's trading house\", \"\", 1]\r\n\t],\r\n\tfeature : \"Factor\",\r\n\tfeatureAlt : \"Trade Contact\",\r\n\ttrait : [\r\n\t\t\"I fill my evenings with wine or mead and song.\",\r\n\t\t\"I greatly admire gladiators and enjoy the Arena.\",\r\n\t\t\"I take my wealth for granted. It seldom occurs to me that others aren't rich themselves.\",\r\n\t\t\"I leave broken hearts all around the Moonsea and up and down the Sword Coast.\",\r\n\t\t\"I work hard and seldom make time for fun.\",\r\n\t\t\"I am a particularly devout and pray often.\",\r\n\t\t\"The Red Plumes caught me once. I hate them.\",\r\n\t\t\"I ask a lot of questions to get information about those with whom I am working and dealing.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Frugal\",\r\n\t\t\t\"Frugal: I spend my money very carefully. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Profligate\",\r\n\t\t\t\"Profligate: I tend to spend extravagantly. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Honest\",\r\n\t\t\t\"Honest: I deal with others above board. (Any)\"\r\n\t\t],\r\n\t\t[\"Sharp\",\r\n\t\t\t\"Sharp: I seek to make the best deal possible. (Any)\"\r\n\t\t],\r\n\t\t[\"Charitable\",\r\n\t\t\t\"Charitable: I give generously to others. (Good)\"\r\n\t\t],\r\n\t\t[\"Greedy\",\r\n\t\t\t\"Greedy: I do not share my wealth with others. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I am fiercely loyal to those with whom I work.\",\r\n\t\t\"I must uphold the good name of my family.\",\r\n\t\t\"I will prove myself to my family as an adventurer.\",\r\n\t\t\"Deals are sacrosanct. I never go back on my word.\",\r\n\t\t\"I love making deals and negotiating agreements.\",\r\n\t\t\"I guard my wealth jealously.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am a braggart. I promote myself shamelessly.\",\r\n\t\t\"I am vain. I always wear the latest fashions.\",\r\n\t\t\"I am a glutton. I eat and drink to excess.\",\r\n\t\t\"I am a snob. I want only the finest things in life.\",\r\n\t\t\"I am lazy. I want others to take care of everything.\",\r\n\t\t\"I am overconfident. I overestimate my abilities.\"\r\n\t],\r\n\ttoolProfs : [\"Vehicles (land)\", \"Vehicles (water)\"],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"hillsfar smuggler\"] = {\r\n\tregExpSearch : /^(?=.*hillsfar)(?=.*smuggler).*$/i,\r\n\tname : \"Hillsfar Smuggler\",\r\n\tsource : [[\"AL:RoD\", 8], [\"ALbackground\", 0]],\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Forgery kit\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Passage\",\r\n\ttrait : [\r\n\t\t\"When I'm not smuggling, I gamble.\",\r\n\t\t\"I just love Halfling cooking and baking!\",\r\n\t\t\"I party with dwarves whenever I can.\",\r\n\t\t\"I'm a terrible singer, but I love to do it.\",\r\n\t\t\"I was raised to honor Chauntea and still do.\",\r\n\t\t\"The blood sports of the Arena sicken me.\",\r\n\t\t\"I think non-humans are really interesting.\",\r\n\t\t\"I exaggerate the tales of my exploits.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Fair\",\r\n\t\t\t\"Fair: I think everyone deserves to be treated fairly. I don't play favorites. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Impulsive\",\r\n\t\t\t\"Impulsive: Planning is often a waste of time. No plan survives contact with reality. It's easier to dive in and deal with the consequences. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Curious\",\r\n\t\t\t\"Curious: I want to learn as much as I can about the people and places I encounter. (Any)\"\r\n\t\t],\r\n\t\t[\"Prepared\",\r\n\t\t\t\"Prepared: I think success depends on preparing as much as possible in advance. (Any)\"\r\n\t\t],\r\n\t\t[\"Respectful\",\r\n\t\t\t\"Respectful: I think everyone deserves to be treated with respect and dignity, regardless of their race, creed, color, or origin. (Good)\"\r\n\t\t],\r\n\t\t[\"Corrupt\",\r\n\t\t\t\"Corrupt: I will break the law or act dishonestly if the money is right. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I am loyal to the Rogues Guild and would do anything for them.\",\r\n\t\t\"I love the city of Hillsfar and my fellow Hillsfarians, despite the recent problems.\",\r\n\t\t\"I admire the elves. I help them whenever I can.\",\r\n\t\t\"A gnome helped me once. I pay the favor forward.\",\r\n\t\t\"I enjoy tricking the Red Plumes at every opportunity.\",\r\n\t\t\"I smuggled agricultural goods for non-human farmers. I try to help them when I can.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"My hatred for the Red Plumes burns so brightly that I have difficulty suppressing It around them.\",\r\n\t\t\"The Red Plumes caught me once before, and I was branded for my crime. If they catch me again, for any offense, the punishment will be dire.\",\r\n\t\t\"I treat all Hillsfarans poorly. I am disgusted with their failure to revolt against the Great Law of Humanity.\",\r\n\t\t\"I have difficulty trusting strangers. Anyone could be a spy for the authorities.\",\r\n\t\t\"I am greedy. There Isn't much I won't do for money.\",\r\n\t\t\"I'm an informant for the Red Plumes. They let me continue my activities, so long as I pass them information about illegal activity in Hillsfar.\"\r\n\t],\r\n\ttoolProfs : [\"Forgery kit\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"secret identity\"] = {\r\n\tregExpSearch : /^(?=.*secret)(?=.*identity).*$/i,\r\n\tname : \"Secret Identity\",\r\n\tsource : [[\"AL:RoD\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Forgery kit\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Identity\",\r\n\ttrait : [\r\n\t\t\"Despite its problems, I love Hillsfar, it's the greatest city in the world. The only one for me.\",\r\n\t\t\"I move from place to place, never staying anywhere long and leaving nothing behind.\",\r\n\t\t\"I think flattery is the best way to direct attention away from me.\",\r\n\t\t\"I don't make friends easily. They're a liability I cannot afford.\",\r\n\t\t\"Risk and danger are exhilarate me. Pulling off schemes and deceptions is a rush.\",\r\n\t\t\"The First Lord is right, humans are superior. I really admire them, despite the atrocities.\",\r\n\t\t\"I avoid people of my own race, as well as things associated with my race, lest they give me away.\",\r\n\t\t\"I live for the Arena. I admire gladiators and enjoy the thrill of blood on the sands!\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Quisling\",\r\n\t\t\t\"Quisling: Supporting the rulers of the land and following the laws is the road to salvation. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Scoflaw\",\r\n\t\t\t\"Scoflaw: The laws and lawmakers are corrupt. I follow laws only when it suits me. (Chaotic))\"\r\n\t\t],\r\n\t\t[\"Optimist\",\r\n\t\t\t\"Optimist: Everyone Is basically good. Though the government is misguided it will all be okay. (Any)\"\r\n\t\t],\r\n\t\t[\"Secretive\",\r\n\t\t\t\"Secretive: I am in the habit of not talking about myself. My business is none of yours. (Any)\"\r\n\t\t],\r\n\t\t[\"Heroic\",\r\n\t\t\t\"Heroic: I do everything I can to help non-humans, regardless of the personal cost to me. (Good)\"\r\n\t\t],\r\n\t\t[\"Depraved\",\r\n\t\t\t\"Depraved: I have lost my moral compass. The ends justify most any means. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The humans of Hillsfar have inflicted terrible harm on me, my family, and my race. I will have revenge.\",\r\n\t\t\"I am part of an underground network that smuggles non-humans into and out of the city.\",\r\n\t\t\"I am a partisan. I commit minor acts of defiance against the First Lord and Red Plumes when I can.\",\r\n\t\t\"I am a spy. I report on events in and around Hillfar.\",\r\n\t\t\"My secret identity is the only thing protecting me from the Arena. I will stop at nothing to maintain it.\",\r\n\t\t\"I am madly in love with a human who does not know my true identity, and I fear rejection if I reveal it.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"After years of denying who I am, I now despise myself and other members of my pathetic race.\",\r\n\t\t\"Years of hiding have made me somewhat paranoid. I trust no one.\",\r\n\t\t\"I've been lying so often and for so long that I can't help it anymore. I frequently lie for no reason at all.\",\r\n\t\t\"I am ashamed. I failed to protect a member of my family who was seized and thrown into the Area.\",\r\n\t\t\"I am struggling with maintaining my secret identity. I subconsciously want to get caught and therefore sometimes let my secret identity slip.\",\r\n\t\t\"Years of successfully deceiving others have made me cocky. I think no one can see through my lies.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", \"Forgery kit\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"shade fanatic\"] = {\r\n\tregExpSearch : /^(?=.*shade)(?=.*fanatic).*$/i,\r\n\tname : \"Shade Fanatic\",\r\n\tsource : [[\"AL:RoD\", 10], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Intimidation\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Forgery kit\", \"\", 5],\r\n\t\t[\"Transparent shadow cylinder\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Society\",\r\n\ttrait : [\r\n\t\t\"I am a bully; I try to hide it though.\",\r\n\t\t\"I let my actions speak for themselves\",\r\n\t\t\"I am important; I will not let anyone forget that.\",\r\n\t\t\"You are either with me or against me.\",\r\n\t\t\"I know it is only a time before I am betrayed by those I care for.\",\r\n\t\t\"I never understand why people get so emotional.\",\r\n\t\t\"They are out to get me. It is only my cunning that keeps me ahead of them\",\r\n\t\t\"Everyone has a choice, the one I make is always right though.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: I know even if I need do evil acts, history will be my redemption. (Chaos)\"\r\n\t\t],\r\n\t\t[\"Dedicated\",\r\n\t\t\t\"Dedicated: I can do anything I put my mind to (Lawful)\"\r\n\t\t],\r\n\t\t[\"Exciting\",\r\n\t\t\t\"Exciting: I have found the truth of the Shadovar and want to share it with everyone. (Any)\"\r\n\t\t],\r\n\t\t[\"Frugal\",\r\n\t\t\t\"Frugal: I horde my possessions knowing that someday I will be called upon to give everything I have to the cause (Any)\"\r\n\t\t],\r\n\t\t[\"Eloquent\",\r\n\t\t\t\"Eloquent: I use my words to sway others to my beliefs. (Any)\"\r\n\t\t],\r\n\t\t[\"Compassionate\",\r\n\t\t\t\"Compassionate: It is through love that others will join In our cause. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"They say the Shade broke the bonds of mortality; I want to find out how.\",\r\n\t\t\"The whispers in my head remind me that there is power to be found in the shadows.\",\r\n\t\t\"For the glory of Netheril, I will grow in power.\",\r\n\t\t\"I once lived in Hillsfar, I was chased out before I was able to say farewell.\",\r\n\t\t\"My true love was a killed by the Red Plumes; I plot to make them suffer.\",\r\n\t\t\"I had a loved one die in the arena at Hillsfar; I am out to prove I am stronger than them!\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I always over exaggerate my abilities.\",\r\n\t\t\"I cannot bear to let those I care for out of my sight.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"The group I am with has committed atrocities; I am always worried their actions will become public.\",\r\n\t\t\"I always enjoy a good mug of ale … or five.\",\r\n\t\t\"I know what I do is wrong, but am afraid to speak up about it.\"\r\n\t],\r\n\ttoolProfs : [\"Forgery kit\"],\r\n\tlanguageProfs : [\"Netherese\"],\r\n\tlifestyle : \"moderate\"\r\n};\r\nBackgroundList[\"trade sheriff\"] = {\r\n\tregExpSearch : /^(?=.*trade)(?=.*sheriff).*$/i,\r\n\tname : \"Trade Sheriff\",\r\n\tsource : [[\"AL:RoD\", 11], [\"ALbackground\", 0]],\r\n\tskills : [\"Investigation\", \"Persuasion\"],\r\n\tgold : 17,\r\n\tequipleft : [\r\n\t\t[\"Thieves' tools\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Gray cloak\", \"\", \"\"],\r\n\t\t[\"Sheriff's insignia\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Investigative Services\",\r\n\ttrait : [\r\n\t\t\"I am always polite and respectful\",\r\n\t\t\"I let my actions speak for themselves\",\r\n\t\t\"I am haunted by my past having seen the murder of a close friend or family member and it is the one case I always needed to solve but have not been able to.\",\r\n\t\t\"I am quick to judge and slow to vindicate\",\r\n\t\t\"I can be very persuasive and am able to ask questions where others might not be able to.\",\r\n\t\t\"I have a quirky personality that seems to take others off their guard.\",\r\n\t\t\"My sense of humor is considered by most to be awkward\",\r\n\t\t\"Everyone has a choice, and they can always make the right choice, mine!\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: my job is to speak for the victim (good)\"\r\n\t\t],\r\n\t\t[\"Dedicated\",\r\n\t\t\t\"Dedicated: Once I start an investigation, until told to do so, I do not quit, not matter where it leads. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Nation\",\r\n\t\t\t\"Nation: My city, nation, or people are all that matter (any)\"\r\n\t\t],\r\n\t\t[\"Mercenary\",\r\n\t\t\t\"Mercenary: When I do investigations, I expect answers immediately (Any)\"\r\n\t\t],\r\n\t\t[\"Eloquent\",\r\n\t\t\t\"Eloquent: I use my words to sway others to give me answers.(good)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: It is through threats and force that I get my answers (lawful)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"To this day an unsolved case will always leave me haunted and bother me.\",\r\n\t\t\"Through the might of my personality I will solve an investigation or puzzle.\",\r\n\t\t\"It is my right to believe what I will, just try and stop me.\",\r\n\t\t\"I need to prove my worth to my fellow Sheriffs.\",\r\n\t\t\"Someone I cared for died under suspicious circumstances. I will find out what happened to them and bring their killer to justice.\",\r\n\t\t\"I speak for those that cannot speak for themselves.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I always over exaggerate my abilities.\",\r\n\t\t\"I cannot bear to let those I care for out of my sight.\",\r\n\t\t\"I took a bribe to tank an investigation and I would do anything to keep it secret.\",\r\n\t\t\"I have little respect for those that are of \\\"low\\\" intelligence/race.\",\r\n\t\t\"I always enjoy a good mug of ale … or five to cover up my past.\",\r\n\t\t\"I speak for the First Lord of Hillsfar and make sure everyone knows it.\"\r\n\t],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\tlanguageProfs : [\"Elvish\"],\r\n\tlifestyle : \"moderate\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"factor\"] = {\r\n\tdescription : \"My family has assigned me the services of a loyal retainer from the business. This person can perform mundane tasks for me such as making purchases, delivering messages, and running errands. He or she will not fight for me or follow me into danger, and will leave if frequently endangered or abused. If killed, my family assigns me another within days.\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"investigative services\"] = {\r\n\tdescription : \"I have a way of communicating with others that puts them at ease. I can invoke my rank to allow me access to a crime scene or to requisition equipment or horses on a temporary basis. When entering a settlement around Hillsfar, I can identify a contact who will give me information and would help me because I want to stop anyone from disrupting trade.\",\r\n\tsource : [[\"AL:RoD\", 11], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"red plume and mage guild contacts\"] = {\r\n\tdescription : \"I made friends among the Red Plumes and Mage's Guild when I lived at the Hillsfar Gate. They remember me fondly and help me in little ways when they can. I can invoke their assistance in and around Hillsfar to obtain food, simple equipment for temporary use, and to gain access to the low-security areas of their garrisons, halls, and encampments.\",\r\n\tsource : [[\"AL:RoD\", 6], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret identity\"] = {\r\n\tdescription : \"I have created a secret identity that I use to conceal my true race and that offers a covering explanation for my presence in Hillsfar. In addition, I can forge documents, including official papers and personal letters, as long as I have seen an example of the kind of document or the handwriting I am trying to copy.\",\r\n\tsource : [[\"AL:RoD\", 9], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret passage\"] = {\r\n\tdescription : \"I can call on my smuggler contacts to secure secret passage into or out of Hillsfar for myself and my friends, no questions asked, and no Red Plume entanglements. Because I'm calling in a favor, I can't be certain when or if they can help. In return for passage, my companions and I may owe the Rogue's Guild a favor and/or may have to pay bribes.\",\r\n\tsource : [[\"AL:RoD\", 8], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret society\"] = {\r\n\tdescription : \"I have a special way of communicating with others who feel the same way I do about the Shade. When I enter a village or larger city, I can identify a contact who will give me information on those that would hinder my goals and those would help me simply because of my desire to see the Shade Enclave return in all its glory.\",\r\n\tsource : [[\"AL:RoD\", 10], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"shelter of the elven clergy\"] = {\r\n\tdescription : \"The clerics of Elventree have vowed to care for the Cormanthor refugees. They will help me when they can, including providing me and my companions with free healing and care at temples, shrines, and other established presences in Elventree. They will also provide me (but only me) with a poor lifestyle.\",\r\n\tsource : [[\"AL:RoD\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"trade contact\"] = {\r\n\tdescription : \"My family and I have trade contacts such as caravan masters, sailors, artisans, farmers, and shopkeepers throughout the Moonsea region and all along the Sword Coast. When adventuring in either of those areas, I can use those contacts to get information about the local area or to pass a message to someone in those areas, even across great distance.\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]]\r\n};\r\n\n// pub_20150915_OotA.js\r\n// This file adds all the beasts and background features from the Out of the Abyss adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.OotA={\r\n\tname : \"Out of the Abyss [beasts, background features, items]\",\r\n\tabbreviation : \"OotA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/outoftheabyss\",\r\n\tdate : \"2015/09/15\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"deep delver\"] = {\r\n\tdescription : \"I have a knack for finding my way in the Underdark, recalling all twists and turns with ease, such that I can always retrace my steps underground. I can determine which sources of food and water are safe to consume. I can always find sufficient food and water for myself and up to five other people in the Underdark, if sustenance is available in the area.\",\r\n\tsource : [[\"OotA\", 221], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"underdark experience\"] = {\r\n\tdescription : \"I'm no casual visitor to the Underdark, but have spent considerable time there learning its ways. I'm familiar with the various races, civilizations, settlements, and travel routes of the Underdark. If I fail an Intelligence check to recall some piece of Underdark lore, I know a source I can consult for the answer unless the DM rules that the lore is unknown.\",\r\n\tsource : [[\"OotA\", 221], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Creatures\r\nCreatureList[\"cave badger\"] = { // contributed by Nod_Hero\r\n\tname : \"Cave Badger\",\r\n\tnameAlt : [\"Badger, Cave\"],\r\n\tsource : [[\"OotA\", 96]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 13,\r\n\thd : [2, 8],\r\n\tspeed : \"30 ft, burrow 15 ft\",\r\n\tscores : [13, 10, 15, 2, 12, 5],\r\n\tsenses : \"Darkvision 30 ft, Tremorsense 60 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 11,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claws attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One claws and one bite attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the badger can make one Bite and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Smell\",\r\n\t\tdescription : \"The badger has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t}]\r\n};\r\nCreatureList[\"steeder, female\"] = {\r\n\tname : \"Female Steeder\",\r\n\tnameAlt : [\"Steeder, Female\", \"Steeder\"],\r\n\tsource : [[\"OotA\", 231]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 30,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [15, 16, 14, 2, 10, 3],\r\n\tskills : {\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Darkvision 120 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 2d8 acid damage, half on a DC 12 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Sticky Leg\",\r\n\t\tability : 2,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Grappled\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Medium or smaller is stuck to the steeder's leg and grappled (escape DC 12); Can't use again until grapple ends\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The steeder can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Leap\",\r\n\t\tdescription : \"The steeder can expend all its movement on its turn to jump up to 90 ft vertically or horizontally, provided that its speed is at least 30 feet.\"\r\n\t}]\r\n};\r\nCreatureList[\"steeder, male\"] = {\r\n\tname : \"Male Steeder\",\r\n\tnameAlt : [\"Steeder, Male\"],\r\n\tsource : [[\"OotA\", 231]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 13,\r\n\thd : [2, 8],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [15, 12, 14, 2, 10, 3],\r\n\tskills : {\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tsenses : \"Darkvision 120 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 1d8 acid damage, half on a DC 12 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Sticky Leg\",\r\n\t\tability : 1,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Grappled\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Small or smaller is stuck to the steeder's leg and grappled (escape DC 12); Can't use again until grapple ends\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The steeder can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Leap\",\r\n\t\tdescription : \"The steeder can expend all its movement on its turn to jump up to 60 ft vertically or horizontally, provided that its speed is at least 30 feet.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"dawnbringer\"] = {\r\n\tname : \"Dawnbringer\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-evil alignment\",\r\n\tprereqeval : function(v) { return !(/evil/i).test(What(\"Alignment\")); },\r\n\tdescription : \"As a bonus action, I can have this hilt create a blade of radiance. It acts like a longsword that does +2 to attack and damage rolls, radiant damage (+1d8 to undead), has finesse, emits bright sunlight in a 15-ft radius and dim light in another 15 ft. I can use it to cast Lesser Restoration and it is sentient, see Notes page.\",\r\n\tdescriptionLong : \"As a bonus action, I can have this longsword hilt create or dismiss a blade of pure radiance. It acts like a longsword that grants a +2 bonus to attack and damage rolls, does radiant damage and has the finesse property. It deals +1d8 radiant damage to undead and emits sunlight, bright light in a 15-ft radius and dim light in an additional 15ft. As an action, I can expand or reduce both the bright and dim light's radius by 5 ft each, to a maximum of 30 feet each or a minimum of 10 feet each. Once per dawn, I can use it to cast Lesser Restoration. Also, it is sentient, see Notes page.\",\r\n\tdescriptionFull : \"Lost for ages in the Underdark, Dawnbringer appears to be a gilded longsword hilt. While grasping the hilt, you can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, this magic longsword has the finesse property. If you are proficient with shortswords or longswords, you are proficient with Dawnbringer.\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When you hit an undead with it, that target takes an extra 1d8 radiant damage.\\n   The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the blade persists, you can use an action to expand or reduce its radius of bright and dim light by 5 feet each, to a maximum of 30 feet each or a minimum of 10 feet each.\\n   While holding the weapon, you can use an action to touch a creature with the blade and cast Lesser Restoration on that creature. Once used, this ability can't be used again until the next dawn.\\n   \" + toUni(\"Sentience\") + \". Dawnbringer is a sentient neutral good weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet.\\n   The sword can speak, read, and understand Common, and it can communicate with its wielder telepathically. Its voice is kind and feminine. It knows every language you know while attuned to it.\\n   \" + toUni(\"Personality\") + \". Forged by ancient sun worshippers, Dawnbringer is meant to bring light into darkness and to fight creatures of darkness. It is kind and compassionate to those in need, but fierce and destructive to its enemies.\\n   Long years lost in darkness have made Dawnbringer frightened of both the dark and abandonment. It prefers that its blade always be present and shedding light in areas of darkness, and it strongly resists being parted from its wielder for any length of time.\" +\r\n\t// Addition from Adventurers League Content Catalogue 8.07\r\n\t\"\\n   If an evil creature attempts to attune to the weapon, it not only finds it impossible, but Dawnbringer attempts to take control of its wielder (DC 14 Charisma saving throw). If the weapon is successful, it insists on being taken to the surface or willingly given to the first creature it comes across that is not a member of a race indigenous to the Underdark. Dawnbringer will not allow its relinquishment to a creature that it or its wielder knows is evil, and instead compels its wielder to find a new recipient.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \" (start/stop)\"], [\"action\", \" (change light)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /dawnbringer/i,\r\n\t\tname : \"Dawnbringer\",\r\n\t\tsource : [[\"OotA\", 222]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Finesse, versatile (1d10); +1d8 damage to undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.name == \"Dawnbringer\" && !fields.Proficiency) {\r\n\t\t\t\t\tfields.Proficiency = CurrentProfs.weapon.otherWea && CurrentProfs.weapon.otherWea.finalProfs.indexOf(\"shortsword\") !== -1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Lesser Restoration\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"lesser restoration\"],\r\n\t\tselection : [\"lesser restoration\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"Lost for ages in the Underdark, Dawnbringer appears to be a gilded longsword hilt. While grasping the hilt, I can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, it functions as a magic longsword that has the finesse property. I'm proficient with it if I'm proficient with either shortswords or longswords.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When I hit an undead with it, that target takes an extra 1d8 radiant damage.\",\r\n\t\t\t\"The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 ft. The light is sunlight. As an action while the blade persists, I can expand or reduce its radius of bright and dim light by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each.\",\r\n\t\t\t\"As an action while holding the weapon, I can touch a creature with the blade and cast Lesser Restoration on that creature. Once used, this ability can't be used again until the next dawn.\",\r\n\t\t\t\"Dawnbringer is a sentient neutral good weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet. The sword can speak, read, and understand Common, and it can communicate with its wielder telepathically. Its voice is kind and feminine. It knows every language you know while attuned to it.\",\r\n\t\t\t\"Forged by ancient sun worshippers, Dawnbringer is meant to bring light into darkness and to fight creatures of darkness. It is kind and compassionate to those in need, but fierce and destructive to its enemies. Long years lost in darkness have made Dawnbringer frightened of both the dark and abandonment. It prefers that its blade always be present and shedding light in areas of darkness, and it strongly resists being parted from its wielder for any length of time.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"piwafwi (cloak of elvenkind)\"] = {\r\n\tname : \"Piwafwi\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While I wear this dark spider-silk cloak with its hood up, Wisdom (Perception) checks made to see me have disadv., and I have adv. on Dex (Stealth) checks made to hide, as its color shifts to camouflage me. Pulling the hood up or down requires an action. It loses its magic if exposed to sunlight for 1 uninterrupted hour.\",\r\n\tdescriptionFull : \"This dark spider-silk cloak is made by drow. It is a cloak of elvenkind. It loses its magic if exposed to sunlight for 1 hour without interruption.\\n   While you wear this cloak with its hood up, Wisdom (Perception) checks made to see you have disadvantage. and you have advantage on Dexterity (Stealth) checks made to hide, as the cloak's color shifts to camouflage you. Pulling the hood up or down requires an action.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\teval : function () {\r\n\t\tif (CurrentMagicItems.known.indexOf(\"boots of elvenkind\") !== -1) {\r\n\t\t\tSetProf(\"advantage\", true, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t\t}\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tSetProf(\"advantage\", false, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t}\r\n}\r\nMagicItemsList[\"piwafwi of fire resistance (cloak of elvenkind)\"] = {\r\n\tname : \"Piwafwi of Fire Resistance\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"While I wear this dark spider-silk cloak with its hood up, Wisdom (Perception) checks made to see me have disadv., and I get adv. on Dex (Stealth) checks made to hide. Pulling the hood up or down requires an action. It also grants me fire resistance. It loses its magic if exposed to sunlight for 1 hour without interruption.\",\r\n\tdescriptionFull : \"This dark spider-silk cloak is made by drow. It is a cloak of elvenkind. It also grants resistance to fire damage while you wear it. It loses its magic if exposed to sunlight for 1 hour without interruption.\\n   While you wear this cloak with its hood up, Wisdom (Perception) checks made to see you have disadvantage. and you have advantage on Dexterity (Stealth) checks made to hide, as the cloak's color shifts to camouflage you. Pulling the hood up or down requires an action.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Fire\"],\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\teval : function () {\r\n\t\tif (CurrentMagicItems.known.indexOf(\"boots of elvenkind\") !== -1) {\r\n\t\t\tSetProf(\"advantage\", true, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t\t}\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tSetProf(\"advantage\", false, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t}\r\n}\r\nMagicItemsList[\"spell gem\"] = { // not legal in AL\r\n\tname : \"Spell Gem\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This gem can store 1 spell in it. If it is empty, I can cast a spell as normal, but have it stored in the gem. As an action, I can cast a stored spell from it, if that spell is on my class' spell list.\",\r\n\tdescriptionFull : \"A spell gem can contain one spell from any class's spell list. You become aware of the spell when you learn the gem's properties. While holding the gem, you can cast the spell from it as an action if you know the spell or if the spell is on your class's spell list. Doing so doesn't require any components, and doesn't require attunement. The spell then disappears from the gem.\\n   If the spell is of a higher level than you can normally cast, you must make an ability check using your spellcasting ability to determine whether you cast it successfully. The DC equals 10 + the spell's level. On a failed check, the spell disappears from the gem with no other effect\\n   Each spell gem has a maximum level for the spell it can store. The spell level determines the gem's rarity, the stored spell's saving throw DC, and attack bonus, as shown in the table below.\\n   You can imbue the gem with a spell if you're attuned to it and it's empty. To do so, you cast the spell while holding the gem. The spell is stored in the gem instead of having any effect. Casting the spell must require either 1 action or 1 minute or longer, and the spell's level must be no higher than the gem's maximum. If the spell belongs to the school of abjuration and requires material components that are consumed, you must provide them, but they can be worth half as much as normal.\\n   Once imbued with a spell, the gem can't be imbued again until the next dawn.\\n   Deep gnomes created these magic gemstones and keep the creation process a secret.\\n\\n\" + [\r\n\t\ttoUni(\"Level\\tStone\\t\\tRarity\\t\\tDC/Atk\"),\r\n\t\t\"Cantrip\\tObsidian\\t\\tUncommon\\t13/+5\",\r\n\t\t\"1st\\tLapis Lazuli\\tUncommon\\t13/+5\",\r\n\t\t\"2nd\\tQuartz\\t\\tRare\\t\\t13/+5\",\r\n\t\t\"3rd\\tBloodstone\\tRare\\t\\t15/+7\",\r\n\t\t\"4th\\tAmber\\t\\tVery Rare   \\t15/+9\",\r\n\t\t\"5th\\tJade\\t\\tVery Rare   \\t17/+9\",\r\n\t\t\"6th\\tTopaz\\t\\tVery Rare   \\t17/+10\",\r\n\t\t\"7th\\tStar Ruby  \\tLegendary \\t18/+10\",\r\n\t\t\"8th\\tRuby\\t\\tLegendary \\t18/+10\",\r\n\t\t\"9th\\tDiamond\\t\\tLegendary \\t19/+11\"\r\n\t].join(\"\\n\"),\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ((/spell gem/i).test(spName) && spellObj.time != \"1 a\") {\r\n\t\t\t\t\tspellObj.time = \"1 a\";\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Spells cast into a Spell Gem can only have a casting time of either 1 action or 1 minute or longer.\\n \\u2022 Spells cast from a Spell Gem always require 1 action to cast.\"\r\n\t\t],\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// only continue for spell gems\r\n\t\t\t\tif (!(/spell gem/i).test(CurrentSpells[spName].name)) return;\r\n\t\t\t\t// create the notspells array if it didn't already exist\r\n\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t// now add all the spells of this spell gem's level that have a casting time of 1 reaction or 1 bonus action\r\n\t\t\t\tfor (var spell in SpellsList) {\r\n\t\t\t\t\tvar aSp = SpellsList[spell];\r\n\t\t\t\t\tif (aSp.level <= spList.level[1] && aSp.time && (/1 (rea|bns)/i).test(aSp.time)) spList.notspells.push(spell);\r\n\t\t\t\t}\r\n\t\t\t}, \"\"\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Storing Spells\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"Casting a spell stored from a spell gem doesn't require attunement\",\r\n\t\t\t\"Only spells with a casting time of 1 action or 1 min or more can be stored in a spell gem\",\r\n\t\t\t\"Imbuing a spell gem requires casting a spell as normal, but the spell produces no effect\",\r\n\t\t\t\"I only need to provide half the costly material components for abjuration spells to imbue\"\r\n\t\t]\r\n\t}],\r\n\tchoices : [\"Obsidian (cantrip, uncommon)\", \"Lapis Lazuli (1st-level, uncommon)\", \"Quartz (2nd-level, rare)\", \"Bloodstone (3rd-level, rare)\", \"Amber (4th-level, very rare)\", \"Jade (5th-level, very rare)\", \"Topaz (6th-level, very rare)\", \"Star Ruby (7th-level, legendary)\", \"Ruby (8th-level, legendary)\", \"Diamond (9th-level, legendary)\"],\r\n\t\"obsidian (cantrip, uncommon)\" : {\r\n\t\tname : \"Spell Gem [Obsidian]\",\r\n\t\tsortname : \"Spell Gem  (cantrip) [Obsidian]\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This gem can store one cantrip. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,0],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"lapis lazuli (1st-level, uncommon)\" : {\r\n\t\tname : \"Spell Gem [Lapis Lazuli]\",\r\n\t\tsortname : \"Spell Gem (1st-level) [Lapis Lazuli]\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This gem can store one spell up to 1st-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack. If the spell's level is higher than I can cast, I need to make a DC 11 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,1],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"quartz (2nd-level, rare)\" : {\r\n\t\tname : \"Spell Gem [Quartz]\",\r\n\t\tsortname : \"Spell Gem (2nd-level) [Quartz]\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This gem can store one spell up to 2nd-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack. If the spell's level is higher than I can cast, I need to make a DC 12 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,2],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"bloodstone (3rd-level, rare)\" : {\r\n\t\tname : \"Spell Gem [Bloodstone]\",\r\n\t\tsortname : \"Spell Gem (3rd-level) [Bloodstone]\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This gem can store one spell up to 3rd-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 15 and +7 spell attack. If the spell's level is higher than I can cast, I need to make a DC 13 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,3],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"amber (4th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Amber]\",\r\n\t\tsortname : \"Spell Gem (4th-level) [Amber]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 4th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 15 and +9 spell attack. If the spell's level is higher than I can cast, I need to make a DC 14 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 15,\r\n\t\tfixedSpAttack : 9,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,4],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"jade (5th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Jade]\",\r\n\t\tsortname : \"Spell Gem (5th-level) [Jade]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 5th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 17 and +9 spell attack. If the spell's level is higher than I can cast, I need to make a DC 15 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,5],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"topaz (6th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Topaz]\",\r\n\t\tsortname : \"Spell Gem (6th-level) [Topaz]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 6th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 17, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 16 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 17,\r\n\t\tfixedSpAttack : 10,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,6],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"star ruby (7th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Star Ruby]\",\r\n\t\tsortname : \"Spell Gem (7th-level) [Star Ruby]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 7th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 18, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 17 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 18,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,7],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"ruby (8th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Ruby]\",\r\n\t\tsortname : \"Spell Gem (8th-level) [Ruby]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 8th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 18, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 18 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 18,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,8],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"diamond (9th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Diamond]\",\r\n\t\tsortname : \"Spell Gem (9th-level) [Diamond]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 9th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 19, +11 spell attack. If the spell's level is higher than I can cast, I need to make a DC 19 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 19,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,9],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"stonespeaker crystal\"] = {\r\n\tname : \"Stonespeaker Crystal\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This crystal has 10 charges, regaining 1d6+4 at dawn, which I can use to cast its spells. When I use its last charge, roll a d20. On a 1, it vanishes. It gives me adv. on Int (Investigation) checks. When I cast an abjuration spell, I can expend 1 charge per level of the spell to substitute one material component of the spell.\",\r\n\tdescriptionFull : \"Created by the stone giant librarians of Gravenhollow, this nineteen-inch-long shard of quartz grants you advantage on Intelligence (Investigation) checks while it is on your person.\\n   The crystal has 10 charges. While holding it, you can use an action to expend some of its charges to cast one of the following spells from it: Speak with Animals (2 charges), Speak with Dead (4 charges), or Speak with Plants (3 charges).\\n   When you cast a Divination spell, you can use the crystal in place of one material component that would normally be consumed by the spell, at a cost of 1 charge per level of the spell. The crystal is not consumed when used in this way.\\n   The crystal regains 1d6+4 expended charges daily at dawn. If you expend the crystal's last charge, roll a d20. On a 1, the crystal vanishes, lost forever.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"speak with animals\"],\r\n\t\tselection : [\"speak with animals\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"speak with plants\"],\r\n\t\tselection : [\"speak with plants\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"speak with dead\"],\r\n\t\tselection : [\"speak with dead\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tadvantages : [[\"Investigation\", true]]\r\n}\r\nMagicItemsList[\"wand of viscid globs\"] = {\r\n\tname : \"Wand of Viscid Globs\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This black wand has 7 charges, regaining 1d6+1 at midnight. If its last charge is used, roll a d20. On a 1, it melts. As an action, I can expend 1 charge to make a ranged attack roll on a target in 60 ft (with my spellcasting ability). On a hit, it is restrained for 1 hour. The wand is destroyed if exposed to sunlight for 1 hour.\",\r\n\tdescriptionFull : \"Crafted by the drow, this slim black wand has 7 charges. While holding it, you can use an action to expend 1 of its charges to cause a small glob of viscous material to launch from the tip at one creature within 60 feet of you. Make a ranged attack roll against the target, with a bonus equal to your spellcasting modifier (or your Intelligence modifier, if you don't have a spellcasting modifier) plus your proficiency bonus. On a hit, the glob expands and dries on the target, which is restrained for 1 hour. After that time, the viscous material cracks and falls away.\\n   Applying a pint or more of alcohol to the restrained creature dissolves the glob instantly, as does the application of oil of etherealness or universal solvent. The glob also dissolves instantly if exposed to sunlight. No other nonmagical process can remove the viscous material until it deteriorates on its own.\\n   The wand regains 1d6+1 expended charges daily at midnight. If you expend the wands last charge, roll a d20. On a 1, the wand melts into harmless slime and is destroyed.\\n   A wand of viscous globs is destroyed if exposed to sunlight for 1 hour without interruption.\",\r\n\tweight : 1,\r\n\tusages : 7,\r\n\trecovery : \"Midnight\",\r\n\tadditional : \"regains 1d6+1\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*wand)(?=.*viscid)(?=.*globs).*$/i,\r\n\t\tname : \"Wand of Viscid Globs\",\r\n\t\tsource : [[\"OotA\", 223]],\r\n\t\tability : 4,\r\n\t\ttype : \"Spell\",\r\n\t\tdamage : [\"\\u2015\", \"\", \"Restrained\"],\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"1 charge; Lasts 1 hour or until exposed to sunlight, a pint of alcohol, oil of etherealness, or universal solvent\",\r\n\t\tabilitytodamage : false,\r\n\t\tuseSpellcastingAbility : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\n// pub_20151103_SCAG.js\r\n// This file adds all the player-material from Sword Coast Adventure Guide to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.S={\r\n\tname : \"Sword Coast Adventure Guide\",\r\n\tabbreviation : \"SCAG\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/sword-coast-adventurers-guide\",\r\n\tdate : \"2015/11/03\"\r\n};\r\n\r\n// Races\r\nRaceList[\"ghostwise halfling\"] = {\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*ghostwise).*$/i,\r\n\tname : \"Ghostwise halfling\",\r\n\tsortname : \"Halfling, Ghostwise\",\r\n\tplural : \"Ghostwise halflings\",\r\n\tsource : [[\"S\", 110]],\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Ghostwise Halfling (+2 Dexterity, +1 Wisdom)\" + (typePF ? \"\\n\" : \" \") + \"\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\" + (typePF ? \"\\n\" : \" \") + \"\\nHalfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\" + (typePF ? \"\\n\" : \" \") + \"\\nSilent Speech: I can speak telepathically to any one creature within 30 feet of me. It only understands me if we share a language.\"\r\n};\r\nRaceList[\"gray dwarf\"] = {\r\n\tregExpSearch : /^((?=.*\\bduergars?\\b)|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(grey|gray|underdark)\\b))).*$/i,\r\n\tname : \"Duergar\",\r\n\tsortname : \"Dwarf, Gray (Duergar)\",\r\n\tsource : [[\"S\", 104], [\"MToF\", 81]],\r\n\tplural : \"Duergar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\", \"Undercommon\"],\r\n\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\r\n\tsavetxt : { adv_vs : [\"charmed\", \"illusions\", \"paralyzed\", \"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (3'8\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (115 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (110 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (55 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Duergar (+2 Constitution, +1 Strength)\\nStonecunning: Whenever I make an Int (History) check related to the origin of stonework, I am considered proficient in the skill and add double my proficiency bonus to the check.\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nDuergar Magic: 3rd: Enlarge/Reduce to enlarge; 5th: Invisibility. If not in direct sunlight,\" + (!typePF ? \"\\n\" : \" \") + \"I can cast both spells on myself once per long rest without material components, using Int.\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"enlarge\" : {\r\n\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"enlarge/reduce\" : {\r\n\t\t\t\t\tname : \"Enlarge\",\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"I'm enlarged, adv. on Str checks/aves and +1d4 on weapon dmg; Can't cast this in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I cast Enlarge/Reduce while I'm not in direct sunlight, but only to enlarge myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Me and my worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Invisibility while I'm not in direct sunlight, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n// Racial variants\r\nAddRacialVariant(\"half-elf\", \"aquatic\", {\r\n\tregExpSearch : /aquatic/i,\r\n\tname : \"Half-aquatic elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-aquatic elves\",\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Aquatic Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nSwimming Speed:\\n   My aquatic heritage gives me a swimming speed of 30 feet.\"\r\n});\r\nAddRacialVariant(\"half-elf\", \"cantrip\", {\r\n\tregExpSearch : /cantrip/i,\r\n\tname : \"Half-high elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-high elves\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-High Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nCantrip:\\n   I know one cantrip of my choice from the wizard spell list.\\n   Intelligence is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"High Elf Cantrip\",\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n});\r\nAddRacialVariant(\"half-elf\", \"drow magic\", {\r\n\tregExpSearch : /^(?=.*drow)(?=.*magic).*$/i,\r\n\tname : \"Half-drow\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-drow\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-drow (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nDrow Magic:\\n   I know the Dancing Lights cantrip.\\n   Once I reach 3rd level, I can cast the Faerie Fire spell once per long rest.\\n   Once I reach 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Drow Magic (level 1)\",\r\n\t\tspells : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"faerie fire\" : {\r\n\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"half-elf\", \"elf weapon training\", {\r\n\tregExpSearch : /^(?=.*\\b(elf|elven)\\b)(?=.*weapon)(?=.*training).*$/i,\r\n\tsource : [[\"S\", 116]],\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Elf (+2 Charisma and +1 to two other ability scores of my choice)\",\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]]\r\n});\r\nAddRacialVariant(\"half-elf\", \"fleet of foot\", {\r\n\tregExpSearch : /^(?=.*fleet)(?=.*\\b(foot|feet)\\b).*$/i,\r\n\tname : \"Half-wood elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-wood elves\",\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Wood Elf (+2 Charisma and +1 to two other ability scores of my choice)\"\r\n});\r\nAddRacialVariant(\"half-elf\", \"mask of the wild\", {\r\n\tregExpSearch : /^(?=.*\\bmasks?\\b)(?=.*\\bwilds?\\b).*$/i,\r\n\tname : \"Half-wood elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-wood elves\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Wood Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nMask of the Wild:\\n   I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n});\r\nAddRacialVariant(\"tiefling\", \"devil's tongue\", {\r\n\tregExpSearch : /^(?=.*devil)(?=.*tongue).*$/i,\r\n\tname : \"Devil's tongue tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Devil's tongue tieflings\",\r\n\ttrait : \"Devil's Tongue Tiefling (+1 Intelligence, +2 Charisma)\\n\\nDevil's Tongue:\\n   I know the Vicious Mockery cantrip.\\n   At 3rd level, I can cast the Charm Person spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Enthrall spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Devil's Tongue (level 1)\",\r\n\t\tspells : [\"vicious mockery\"],\r\n\t\tselection : [\"vicious mockery\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"charm person\" : {\r\n\t\t\tname : \"Devil's Tongue (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Devil's Tongue (level 3)\",\r\n\t\t\t\tspells : [\"charm person\"],\r\n\t\t\t\tselection : [\"charm person\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"charm person\" : {\r\n\t\t\t\t\tdescription : \"2 humanoids, max 30 ft apart, save or charmed; advantage on save if I or my allies are fighting it\",\r\n\t\t\t\t\tchanges : \"Using Devil's Tongue, I cast Charm Person as if I'm using a 2nd-level spell slot, affecting 2 humanoids.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"enthrall\" : {\r\n\t\t\tname : \"Devil's Tongue (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Devil's Tongue (level 5)\",\r\n\t\t\t\tspells : [\"enthrall\"],\r\n\t\t\t\tselection : [\"enthrall\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"tiefling\", \"hellfire\", {\r\n\tregExpSearch : /hellfire/i,\r\n\tname : \"Hellfire tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Hellfire tieflings\",\r\n\ttrait : \"Hellfire Tiefling (+1 Intelligence, +2 Charisma)\\n\\nInfernal Legacy (Hellfire):\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Burning Hands spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tfeatures : {\r\n\t\t\"burning hands\" : {\r\n\t\t\tname : \"Hellfire Legacy (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Hellfire Legacy (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\tdescription : \"4d6 Fire damage; save halves; unattended flammable objects ignite\",\r\n\t\t\t\t\tchanges : \"Using Hellfire Legacy, I cast Burning Hands as if I'm using a 2nd-level spell slot, doing 4d6 Fire damage.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Hellfire Legacy (level 5)\",\r\n\t\t\tlimfeaname : \"Darkness\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Infernal Legacy (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"tiefling\", \"winged\", {\r\n\tregExpSearch : /wing/i,\r\n\tname : \"Winged tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Winged tieflings\",\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\ttrait : \"Winged Tiefling (+1 Intelligence, +2 Charisma)\\n\\nWings:\\n   I have bat-like wings sprouting from my shoulder blades that give me flying speed of 30 ft when I'm not wearing heavy armor.\",\r\n\tfeatures : \"\",\r\n\tspellcastingAbility : \"\",\r\n\tspellcastingBonus : \"\"\r\n});\r\nRunFunctionAtEnd(function() {\r\n\tif (!RaceList.tiefling) return;\r\n\tvar tRace = {\r\n\t\tobjname : \"feral tiefling\",\r\n\t\treplaceTraitTxt : [\"+1 Intelligence, +2 Charisma\", \"+2 Dexterity, +1 Intelligence\"],\r\n\t\treplaceNameTxt : [\"tiefling\", \"feral tiefling\"],\r\n\t\tregExpSearch : /^(?=.*feral)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\t\tname : \"Feral tiefling\",\r\n\t\tsortname : \"Tiefling, Feral\",\r\n\t\tsource : [[\"S\", 118]],\r\n\t\tplural : \"Feral tieflings\",\r\n\t\tscores : [0, 2, 0, 1, 0, 0],\r\n\t\ttrait : \"Feral Tiefling (+2 Dexterity, +1 Intelligence)\\n\\nInfernal Legacy:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Hellish Rebuke spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\"\r\n\t};\r\n\t// Create the RaceList entry\r\n\tRaceList[tRace.objname] = newObj(RaceList.tiefling);\r\n\tfor (var rFea in tRace) {\r\n\t\tif ((/objname|replaceTraitTxt|replaceNameTxt/).test(rFea)) continue;\r\n\t\tRaceList[tRace.objname][rFea] = tRace[rFea];\r\n\t};\r\n\t// Create feral tiefling variants\r\n\tRaceList[tRace.objname].variants.forEach( function(nVar) {\r\n\t\tRaceSubList[tRace.objname + \"-\" + nVar] = newObj(RaceSubList[\"tiefling-\" + nVar]);\r\n\t\tvar thisVar = RaceSubList[tRace.objname + \"-\" + nVar];\r\n\t\tthisVar.trait = thisVar.trait.replace(tRace.replaceTraitTxt[0], tRace.replaceTraitTxt[1]);\r\n\t\tthisVar.trait = thisVar.trait.replace(tRace.replaceNameTxt[0].capitalize(), tRace.replaceNameTxt[1].capitalize());\r\n\t\tthisVar.name = thisVar.name.replace(tRace.replaceNameTxt[0], tRace.replaceNameTxt[1]);\r\n\t\tthisVar.plural = thisVar.plural.replace(tRace.replaceNameTxt[0], tRace.replaceNameTxt[1]);\r\n\t});\r\n});\r\n\r\n// Subclasses\r\nAddSubClass(\"barbarian\", \"battlerager\", {\r\n\tregExpSearch : /(battlerager|kuldjargh)/i,\r\n\tsubname : \"Path of the Battlerager\",\r\n\tsubnameShort: \"Battlerager\",\r\n\tfullname : \"Battlerager\",\r\n\tsource : [[\"S\", 121]],\r\n\tabilitySave : 6,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Battlerager Armor\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with spiked armor both as an armor and as a weapon\",\r\n\t\t\t\t\"As a bonus action while raging, I can attack once with my armor spikes\",\r\n\t\t\t\t\"With my spiked armor I do 3 piercing damage when I use my Attack action to grapple\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Armor Spikes attack (in rage)\"]],\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?!.*(dragon|draconic|beast))(?=.*spike(d|s))(?=.*armou?r).*$/i,\r\n\t\t\t\tname : \"Spiked armor\",\r\n\t\t\t\tsource : [[\"S\", 121]],\r\n\t\t\t\ttype : \"medium\",\r\n\t\t\t\tac : 14,\r\n\t\t\t\tstealthdis : true,\r\n\t\t\t\tweight : 45\r\n\t\t\t}],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*armou?r)(?=.*spike).*$/i,\r\n\t\t\t\tname : \"Armor spikes\",\r\n\t\t\t\tsource : [[\"S\", 121]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"armor spikes\",\r\n\t\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Does 3 piercing damage when grappling during my Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tweaponProfs : [false, false, [\"armor spikes\"]],\r\n\t\t\teval : function() {\r\n\t\t\t\tAddString('Proficiency Armor Other Description', 'Spiked Armor', ', ');\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tRemoveString('Proficiency Armor Other Description', 'Spiked Armor');\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Reckless Abandon\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"If I use Reckless Attack during rage, I also gain temporary HP equal to my Con mod\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Battlerager Charge\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"As a bonus action while raging, I can use the Dash action\"),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spiked Retribution\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I'm hit in melee by an attacker within 5 ft, it takes 3 piercing damage\",\r\n\t\t\t\t\"This only works while I'm wearing spiked armor, in rage, and I'm not incapacitated\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"arcana domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(arcana|magic|wizardry)).*$/i,\r\n\tsubname : \"Arcana Domain\",\r\n\tsource : [[\"S\", 125]],\r\n\tspellcastingExtra : [\"detect magic\", \"magic missile\", \"magic weapon\", \"nystul's magic aura\", \"dispel magic\", \"magic circle\", \"arcane eye\", \"leomund's secret chest\", \"planar binding\", \"teleportation circle\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Arcane Initiate\",\r\n\t\t\tsource : [[\"S\", 125]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with Arcana and two wizard cantrips that count as cleric cantrips\"),\r\n\t\t\tskills : [\"Arcana\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Initiate\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Arcane Abjuration\",\r\n\t\t\tsource : [[\"S\", 125]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, one celestial, elemental, fey, or fiend within 30 ft must make a Wis save\",\r\n\t\t\t\t\"If it fails and is able to see/hear me, it is turned for 1 min or until it takes damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\",\r\n\t\t\t\t\"If its CR is low enough and it is not on its home plane, it is banished for 1 min instead\",\r\n\t\t\t\t\"Banished: sent to home plane, reappearing where it was if the effect ends before 1 min\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"CR 1/2 or lower\", \"CR 1/2 or lower\", \"CR 1/2 or lower\", \"CR 1 or lower\", \"CR 1 or lower\", \"CR 1 or lower\", \"CR 2 or lower\", \"CR 2 or lower\", \"CR 2 or lower\", \"CR 3 or lower\", \"CR 3 or lower\", \"CR 3 or lower\", \"CR 4 or lower\", \"CR 4 or lower\", \"CR 4 or lower\", \"CR 4 or lower\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spell Breaker\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I restore HP to an ally with a 1st-level or higher spell, I can also end one spell\",\r\n\t\t\t\t\"The chosen spell on the ally ends if it is equal or lower level to the spell slot level used\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"mass heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = \"Heal 700 hp, split over crea in range; also cures blindness, deafness, and all diseases; spell breaker\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"power word heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/heals all.*/i, \"full hp; no longer charmed, frightened, paralyzed, stunned; can stand up as rea; spell breaker\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"goodberry\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Create \", \"\").replace(\"lose potency after \", \"remain\");\r\n\t\t\t\t\t\t\tcase \"regenerate\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\" for rest of duration\", \"\");\r\n\t\t\t\t\t\t\tcase \"heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"all diseases\", \"diseases\");\r\n\t\t\t\t\t\t\tcase \"cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"healing word\" :\r\n\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\tcase \"mass cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"mass healing word\" :\r\n\t\t\t\t\t\t\tcase \"prayer of healing\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/creatures?/i, \"crea\").replace(\"within\", \"in\").replace(\"spellcasting ability modifier\", \"spellcasting ability mod\") + \"; spell breaker\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast a spell that restores hit points to another creature than myself, I can also end a spell affecting the target. This spell can be of the same level of the spell slot used to cast the healing spell, or lower.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Arcane Mastery\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add four wizards spells, a 6th, 7th, 8th, and 9th-level spell, to my domain spells\",\r\n\t\t\t\t\"As any domain spell, these spells are automatically prepared and count as cleric spells\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Mastery (6)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [6, 6],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (7)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [7, 7],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (8)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [8, 8],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (9)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [9, 9],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"purple dragon knight\", {\r\n\tregExpSearch : /^(((?=.*purple)(?=.*dragon)(?=.*knight))|(?=.*banneret)).*$/i,\r\n\tsubname : \"Purple Dragon Knight\",\r\n\tsubnameShort : \"Purple Dragon\",\r\n\tfullname : \"Purple Dragon Knight\",\r\n\tsource : [[\"S\", 128]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Rallying Cry\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When I use Second Wind, I also heal three allies within 60 ft that can see or hear me\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n + \" HP\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Second Wind (+Rallying Cry)\", \"Second Wind\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Royal Envoy\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the Persuasion skill and I gain expertise with the Persuasion skill\",\r\n\t\t\t\t\"If already proficient, I can choose Animal Handling, Insight, Intimidation, or Performance\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Persuasion proficiency and expertise; If already proficient, choose one from Animal Handling, Insight, Intimidation, or Performance\",\r\n\t\t\tskills : [\"Persuasion\", \"full\"]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Inspiring Surge\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my Action Surge, I can inspire an ally within 60 ft that can see or hear me\",\r\n\t\t\t\t\"The ally can then use its reaction to make one melee or ranged weapon attack\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n < 18 ? \"1 ally\" : \"2 allies\"; // level 18 per errata\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Bulwark\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Indomitable to reroll a Int, Wis, or Cha save, I can extend it to an ally\",\r\n\t\t\t\t\"The ally can reroll its failed saving throw against the same effect and take the result\",\r\n\t\t\t\t\"It only works if not incapacitated and the ally is within 60 ft and can see or hear me\",\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the long death\", {\r\n\tregExpSearch : /^(?=.*\\blong)(?=.*\\b(death|dead))((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Long Death\",\r\n\tsubnameShort: \"Long Death\",\r\n\tsource : [[\"S\", 130]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Touch of Death\",\r\n\t\t\tsource : [[\"S\", 130]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"If I reduce someone within 5 ft to 0 HP, I gain Wis mod + monk level temporary HP\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hour of Reaping\",\r\n\t\t\tsource : [[\"S\", 130]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures within 30 feet of me must make a Wisdom saving throw\",\r\n\t\t\t\t\"On a failed save the creature is frightened until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Mastery of Death\",\r\n\t\t\tsource : [[\"S\", 131]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tadditional : \"1 ki point\",\r\n\t\t\tdescription : desc(\"When I'm reduced to 0 HP, I can expend 1 ki point to have 1 HP instead\"),\r\n\t\t\t\"touch of the long death\" : {\r\n\t\t\t\tname : \"Touch of the Long Death\",\r\n\t\t\t\textraname : \"Way of the Long Death 17\",\r\n\t\t\t\tsource : [[\"S\", 131]],\r\n\t\t\t\tadditional: \"1-10 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a target within 5 ft takes 2d10 necrotic damage per ki point I spent\",\r\n\t\t\t\t\t\"It can make a Constitution saving throw to half the damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"touch of the long death\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the sun soul\", {\r\n\tregExpSearch : /^(?=.*\\bsun)(?=.*\\b(soul|spirit))((?=.*(warrior|monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Sun Soul\",\r\n\tsubnameShort: \"Sun Soul\",\r\n\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional : \"1 ki point for 2 extra attacks\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a ranged spell attack that I can use as an attack in the Attack action\",\r\n\t\t\t\t\"If I do this and spend 1 ki point, I can make 2 of these attacks as a bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (2\\xD7 with Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*radiant)(?=.*(sun|light))(?=.*bolt).*$/i,\r\n\t\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 4, \"radiant\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"If used in an Attack action, spend 1 ki point to use it twice as a bonus action\",\r\n\t\t\t\tmonkweapon : true,\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"searing arc strike\" : {\r\n\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\textraname : \"Way of the Sun Soul 6\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"After taking the Attack action, I can cast Burning Hands as a bonus action [PHB 220]\",\r\n\t\t\t\t\t\"For every additional ki point I spend, Burning hands is cast at 1 higher spell level\",\r\n\t\t\t\t\t\"The maximum total ki points I can spend for this (including the 2) is half my Monk level\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\t\tvar xtrKi = Math.max(0,Math.floor(n/2) - 2);\r\n\t\t\t\t\treturn \"2 ki points + max \" + xtrKi + \" ki point\" + (xtrKi == 1 ? \"\" : \"s\");\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (after Attack action)\"]],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tdescription : \"3d6+1d6/extra Ki Fire dmg; save halves; unattended flammable objects ignite (ki max 1/2 monk lvl)\",\r\n\t\t\t\t\t\tchanges : \"After I use the Attack action, I can cast Burning Hands as a bonus action by spending 2 ki points. I can even spend additional ki points to increase its spell level. The total amount of ki points I can spend on it is half my monk level.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"searing arc strike\",\r\n\t\t\t\tminlevel : 6\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Searing Sunburst\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, anyone in a 20-ft radius light on a point within 150 ft makes a Con save\",\r\n\t\t\t\t\"If failed and not behind opaque total cover, take 2d6 (+ 2d6/ki point) radiant damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : \"0 ki points + max 3 ki points\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*searing)(?=.*sunburst).*$/i,\r\n\t\t\t\tname : \"Searing Sunburst\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [2, 6, \"radiant\"],\r\n\t\t\t\trange : \"150 ft\",\r\n\t\t\t\tdescription : \"All in 20-ft radius; Con save - success no damage; +2d6 damage per ki point (max 3 ki)\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : \"monk\",\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sun Shield\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, when I'm hit by a melee attack, I can deal 5 + Wis mod radiant damage\",\r\n\t\t\t\t\"I can only do this while my light aura is on; I can turn it on/off as a bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start/stop)\"], [\"reaction\", \" (hit in melee)\"]],\r\n\t\t\tadditional : \"30-ft rad bright + 30-ft dim light\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the crown\", {\r\n\tregExpSearch : /^(?=.*(crown|king|country))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))).*$/i,\r\n\tsubname : \"Oath of the Crown\",\r\n\tsubnameShort: \"Crown\",\r\n\tsource : [[\"S\", 133]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Champion Challenge\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have any chosen creatures within 30 ft of me make a Wis save\",\r\n\t\t\t\t\"If failed, a target is unable to willingly move more than 30 ft away from me\",\r\n\t\t\t\t\"The effect ends if I'm incapacitated, die, or it is moved more than 30 ft away from me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]], // changed to bonus action per errata (v1.0, 2017)\r\n\t\t\tspellcastingExtra : [\"command\", \"compelled duel\", \"warding bond\", \"zone of truth\", \"aura of vitality\", \"spirit guardians\", \"banishment\", \"guardian of faith\", \"circle of power\", \"geas\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Turn the Tide\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, any chosen creatures within 30 ft that can hear me regains HP\",\r\n\t\t\t\t\"Each regain 1d6 + my Charisma modifier HP, up to half of its total HP\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Divine Allegiance\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature within 5 feet of me takes damage, I can substitute my HP for it\",\r\n\t\t\t\t\"The creature takes no damage and I take all of it; this damage can't be prevented\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Unyielding Spirit\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"I have advantage on saving throws against effects that paralyze or stun\"),\r\n\t\t\tsavetxt : { adv_vs : [\"paralyzed\", \"stunned\"] }\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Exalted Champion\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I gain the following benefits for 1 hour or until I'm incapacitated:\",\r\n\t\t\t\t\" \\u2022 \" + \"Resistance to bludgeoning, piercing, and slashing damage from nonmagical weapons\",\r\n\t\t\t\t\" \\u2022 \" + \"My allies within 30 ft of me and I have advantage on Wisdom and Death saves\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"mastermind\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*(mastermind|strategist)).*$/i,\r\n\tsubname : \"Mastermind\",\r\n\tfullname : \"Mastermind\",\r\n\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Master of Intrigue\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with disguise kits, forgery kits, one gaming set, and two languages\",\r\n\t\t\t\t\"I can mimic speech patterns and accents if I've heard them for at least 1 minute\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [2],\r\n\t\t\ttoolProfs : [\"Disguise kit\", \"Forgery kit\", [\"Gaming set\", 1]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Master of Tactics\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use the Help action as a bonus action\",\r\n\t\t\t\t\"This even works if the ally attacks a target within 30 ft of me that can see or hear me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Insightful Manipulator\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By spending 1 minute observing/interacting outside of combat I can learn capabilities\",\r\n\t\t\t\t\"The DM tells me if the target is my equal, superior, or inferior in regard to two things:\",\r\n\t\t\t\t\" - Intelligence score    - Wisdom score    - Charisma score    - Class levels (if any)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Misdirection\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, I can redirect an attack meant for me to a creature within 5 ft of me\",\r\n\t\t\t\t\"This only works if the creature is providing me with cover against the attack\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Soul of Deceit\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My thoughts can't be read by telepathy or similar means; I can project false thoughts\",\r\n\t\t\t\t\"For that, I must pass a Cha (Deception) vs. Wis (Insight) check to fool the mind reader\",\r\n\t\t\t\t\"Magic always determines I'm truthful; I can't be magically compelled to tell the truth\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"swashbuckler\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*swashbuckl).*$/i,\r\n\tsubname : \"Swashbuckler\",\r\n\tfullname : \"Swashbuckler\",\r\n\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fancy Footwork\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Enemies I make a melee attack against in my turn can't use opportunity attacks on me\",\r\n\t\t\t\t\"This lasts until the end of my current turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rakish Audacity\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I don't need advantage to sneak attack if my target is the only one within 5 ft of me\",\r\n\t\t\t\t\"I still can't sneak attack if I have disadv.; I add my Charisma modifier to initiative rolls\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Cha|0)\", text : \"I can add my Charisma modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Panache\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can beguile a creature that hears and understands me, for 1 minute\",\r\n\t\t\t\t\"It must succeed a Wis (Insight) check opposed by my Cha (Persuasion) or be affected as:\",\r\n\t\t\t\t\"\\u2022 A hostile target gains disadv. on attacks and can't do opportunity attacks vs. not-me\",\r\n\t\t\t\t\"  This effect ends if an ally attacks or casts a spell vs. it, or if it and I are 60 ft apart\",\r\n\t\t\t\t\"\\u2022 Targets that are not hostile are charmed and regard me as a friendly acquaintance\",\r\n\t\t\t\t\"  This effect ends if me or an ally do anything harmful to it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Elegant Maneuver\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc(\"As a bonus action, I can gain adv. on my next Dex (Acrobatics) or Str (Athletics) check\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Master Duelist\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"Once per short rest, when I miss with an attack roll, I can roll again with advantage\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"storm sorcery\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))((?=.*(storm|tempest|hurricane))|((?=.*air)(?=.*element))).*$/i,\r\n\tsubname : \"Storm Sorcery\",\r\n\tfullname : \"Storm Sorcerer\",\r\n\tsource : [[\"S\", 137], [\"X\", 51]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Wind Speaker\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I can speak, read, and write Primordial (and its dialects Aquan, Auran, Ignan, Terran)\"),\r\n\t\t\tlanguageProfs : [\"Primordial\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Tempestuous Magic\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, before or after casting a 1st-level or higher spell, I can fly 10 ft\",\r\n\t\t\t\t\"This movement doesn't provoke opportunity attacks as whirling gust of air surround me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with casting)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Heart of the Storm\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to lightning and thunder damage\",\r\n\t\t\t\t\"When I start casting a 1st-level or higher spell that deals lightning or thunder damage,\",\r\n\t\t\t\t\"I deal lightning or thunder damage to creatures of my choice that I can see within 10 ft\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : Math.floor(n/2) + \" damage\"; }),\r\n\t\t\tdmgres : [\"Lightning\", \"Thunder\"]\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Storm Guide\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can stop rain around me in 20-ft radius; bonus action for it to resume\",\r\n\t\t\t\t\"As a bonus action, I can choose the direction of wind around me in a 100-ft radius\",\r\n\t\t\t\t\"This lasts until the end of my next turn and doesn't alter the wind's speed\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Storm's Fury\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when hit by a melee attack, I can deal lightning damage to the attacker\",\r\n\t\t\t\t\"The attacker must also make a Strength save or be pushed up to 20 ft away from me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : n + \" lightning damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Wind Soul\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have immunity to lightning and thunder damage and gain magical 60 ft fly speed\",\r\n\t\t\t\t\"As an action, I reduce my fly speed to 30 ft and give allies 30 ft fly speed for 1 hour\",\r\n\t\t\t\t\"I can do this once per short rest for up to 3 + my Charisma modifier allies within 30 ft\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tsavetxt : { immune : [\"lightning\", \"thunder\"] },\r\n\t\t\tspeed : { fly : { spd : \"fixed 60\", enc : \"fixed 60\" } },\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the undying\", {\r\n\tregExpSearch : /^(?!.*light)(?=.*warlock)(?=.*(immortal|undying|neverending|unending)).*$/i,\r\n\tsubname : \"the Undying\",\r\n\tsource : [[\"S\", 139]],\r\n\tspellcastingExtra : [\"false life\", \"ray of sickness\", \"blindness/deafness\", \"silence\", \"feign death\", \"speak with dead\", \"aura of life\", \"death ward\", \"contagion\", \"legend lore\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Among the Dead\",\r\n\t\t\tsource : [[\"S\", 139]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Spare the Dying cantrip and gain advantage on saving throws vs. diseases\",\r\n\t\t\t\t\"If an undead targets me directly with an attack or spell, it must make a Wisdom save\",\r\n\t\t\t\t\"On a fail, it must choose a new target or forfeit its attack or harmful spell\",\r\n\t\t\t\t\"On a success or if I attack or cast a harmful spell on it, it is immune for 24 hours\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"disease\"] },\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Among the Dead\",\r\n\t\t\t\tspells : [\"spare the dying\"],\r\n\t\t\t\tselection : [\"spare the dying\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Defy Death\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I regain 1d8 + my Constitution modifier in HP when I succeed on a Death saving throw\",\r\n\t\t\t\t\"I also regain this amount whenever I use Spare the Dying to stabilize a creature\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Undying Nature\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can hold my breath indefinitely; I don't require food, water, or sleep (I still need rest)\",\r\n\t\t\t\t\"I age more slowly, only 1 year for every 10 years that pass; I can't be magically aged\",\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Indestructible Life\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"As a bonus action, I can regain HP and reattach severed body parts\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : \"1d8 + \" + n + \" HP\"; })\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"bladesinging\", {\r\n\tregExpSearch : /(bladesinging|bladesinger)/i,\r\n\tsubname : \"Tradition of Bladesinging\",\r\n\tsubnameShort: \"Bladesinging\",\r\n\tfullname : \"Bladesinger\",\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Training in War and Song\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain proficiency with light armor, a one-handed melee weapon, and Performance\"),\r\n\t\t\tarmorProfs : [true, false, false, false],\r\n\t\t\tskills : [\"Performance\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Bladesong\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can start the bladesong for 1 minute; I can dismiss it at any time\",\r\n\t\t\t\t\"It stops when I wear a shield, medium or heavy armor, or attack with two hands\",\r\n\t\t\t\t\"While the bladesong is active I have the following benefits:\",\r\n\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to AC\",\r\n\t\t\t\t\" \\u2022 Base walking speed increases by 10 foot\",\r\n\t\t\t\t\" \\u2022 Advantage on Dexterity (Acrobatics) checks\",\r\n\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to concentration saves for maintaining conc. on a spell\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start)\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Extra Attack\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can attack twice instead of once when I take the Attack action on my turn\",\r\n\t\t\t\t\"Moreover, I can cast one of my cantrips in place of one of those attacks\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Song of Defense\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while my bladesong is active, I can expend a spell slot to reduce damage\",\r\n\t\t\t\t\"The damage I take is reduced by 5 for every level of the spell slot I expend\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in bladesong)\"]]\r\n\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Song of Victory\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"While my bladesong is active, I add my Int mod (min 1) to melee weapon attack damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/blade.?song/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(1, Number(What('Int Mod')));\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Bladesong' in the name or description of a melee weapon, it gets my Intelligence modifier added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// New Totem Warrior options\r\nif (ClassSubList[\"barbarian-totem warrior\"]) {\r\n\tvar SCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature3.1\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Elk Spirit\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"While raging without heavy armor, my base walking speed increases by 15 ft\")\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Tiger Spirit\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"While raging, I can add 10 ft to my long jump and 3 ft to my high jump distance\")\r\n\t\t});\r\n\t}\r\n\tSCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature6\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Aspect of the Elk\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While mounted or on foot and not incapacitated, my travel pace is doubled\",\r\n\t\t\t\t\"I can extend this benefit to up to ten companions, while they are within 60 ft of me\"\r\n\t\t\t])\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Aspect of the Tiger\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"I gain proficiency with two skills chosen from: Athletics, Acrobatics, Stealth, or Survival\"),\r\n\t\t\tskillstxt : \"Choose two from Athletics, Acrobatics, Stealth, and Survival\"\r\n\t\t});\r\n\t}\r\n\tSCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature14\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Elk Attunement\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can move through a Large or smaller creature's space\",\r\n\t\t\t\t\"It must make a Strength save of DC 8 + Strength modifier + Proficiency bonus\",\r\n\t\t\t\t\"If failed, it is knocked prone and takes 1d12 + Strength modifier bludgeoning damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Tiger Attunement\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can make a melee weapon attack on these conditions:\",\r\n\t\t\t\t\" \\u2022 I move at least 20 ft in a straight line towards the target that is Large or smaller\",\r\n\t\t\t\t\" \\u2022 I make a melee weapon attack against it after the bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t});\r\n\t}\r\n}\r\n\r\n// Backgrounds\r\nBackgroundList[\"far traveler\"] = {\r\n\tregExpSearch : /^(?=.*far)(?=.*traveler).*$/i,\r\n\tname : \"Far Traveler\",\r\n\tsource : [[\"S\", 148], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Perception\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Gaming set or musical instrument\", \"\", \"\"],\r\n\t\t[\"Poorly wrought maps\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Piece of jewelry worth 10 gp\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"All Eyes on You\",\r\n\ttrait : [\r\n\t\t\"I have different assumptions from those around me concerning personal space, blithely invading others' space in innocence, or reacting to ignorant invasion of my own.\",\r\n\t\t\"I have my own ideas about what is and is not food, and I find the eating habits of those around me fascinating, confusing, or revolting.\",\r\n\t\t\"I have a strong code of honor or sense of propriety that others don't comprehend.\",\r\n\t\t\"I express affection or contempt in ways that are unfamiliar to others.\",\r\n\t\t\"I honor my deities through practices that are foreign to this land.\",\r\n\t\t\"I begin or end my day with small traditional rituals that are unfamiliar to those around me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Open\",\r\n\t\t\t\"Open: I have much to learn from the kindly folk I meet along my way. (Good)\"\r\n\t\t],\r\n\t\t[\"Reserved\",\r\n\t\t\t\"Reserved: As someone new to these strange lands, I am cautious and respectful in my dealings. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Adventure\",\r\n\t\t\t\"Adventure: I'm far from home, and everything is strange and wonderful! (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Cunning\",\r\n\t\t\t\"Cunning: Though I may not know their ways, neither do they know mine, which can be to my advantage. (Evil)\"\r\n\t\t],\r\n\t\t[\"Inquisitive\",\r\n\t\t\t\"Inquisitive: Everything is new, but I have a thirst to learn. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Suspicious\",\r\n\t\t\t\"Suspicious: I must be careful, for I have no way of telling friend from foe here. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"So long as I have this token from my homeland, I can face any adversity in this strange land.\",\r\n\t\t\"The gods of my people are a comfort to me so far from home.\",\r\n\t\t\"I hold no greater cause than my service to my people.\",\r\n\t\t\"My freedom is my most precious possession. I'll never let anyone take it from me again.\",\r\n\t\t\"I'm fascinated by the beauty and wonder of this new land.\",\r\n\t\t\"Though I had no choice, I lament having to leave my loved one(s) behind. I hope to see them again one day.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am secretly (or not so secretly) convinced of the superiority of my own culture over that of this foreign land.\",\r\n\t\t\"I pretend not to understand the local language in order to avoid interactions I would rather not have.\",\r\n\t\t\"I have a weakness for the new intoxicants and other pleasures of this land.\",\r\n\t\t\"I don't take kindly to some of the actions and motivations of the people of this land, because these folk are different from me.\",\r\n\t\t\"I consider the adherents of other gods to be deluded innocents at best, or ignorant fools at worst.\",\r\n\t\t\"I have a weakness for the exotic beauty of the people of these lands.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Why You Are Here\",\r\n\t\t\"Emissary\",\r\n\t\t\"Exile\",\r\n\t\t\"Fugitive\",\r\n\t\t\"Pilgrim\",\r\n\t\t\"Sightseer\",\r\n\t\t\"Wanderer\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Background variants\r\nAddBackgroundVariant(\"soldier\", \"city watch\", {\r\n\tregExpSearch : /^(?=.*city)(?=.*(watch|guard)).*$/i,\r\n\tname : \"City Watch\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Insight\"],\r\n\tequipright : [\r\n\t\t[\"Uniform of my unit\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Horn\", \"\", 2],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Watcher's Eye\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"clan crafter\", {\r\n\tregExpSearch : /^(?=.*clan)(?=.*(crafter|smith|builder|miner)).*$/i,\r\n\tname : \"Clan Crafter\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Insight\"],\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Maker's mark chisel\", \"\", 0.5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins and 10 gp gem)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Respect of the Stout Folk\",\r\n\textra : \"\",\r\n\tlanguageProfs : [\"Dwarvish\"],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"sage\", \"cloistered scholar\", {\r\n\tregExpSearch : /^(?=.*cloistered)(?=.*scholar).*$/i,\r\n\tname : \"Cloistered Scholar\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]],\r\n\tskills : [\"History\"],\r\n\tskillstxt : \"History and choose one from Arcana, Nature, and Religion\",\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Quill\", \"\", \"\"],\r\n\t\t[\"Parchment, sheets of\", 1, \"\"],\r\n\t\t[\"Small penknife\", \"\", 0.5],\r\n\t\t[\"Borrowed book\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Scholar's robes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Library Access\",\r\n\textra : [\"Name your Library\"],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"courtier\", {\r\n\tregExpSearch : /courtier/i,\r\n\tname : \"Courtier\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 5,\r\n\tequipleft : \"\",\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Court Functionary\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"acolyte\", \"faction agent\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*(faction|harper|order of the gauntlet|emerald enclave|lord.?s alliance|zhentarim)).*$/i,\r\n\tname : \"Faction Agent\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\"],\r\n\tskillstxt : \"Insight and choose one Intelligence, Wisdom, or Charisma skill\",\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Copy of seminal faction's text\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Badge or emblem of faction\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Safe Haven\",\r\n\textra : [\r\n\t\t\"Select a Faction\",\r\n\t\t\"The Harpers\",\r\n\t\t\"The Order of the Gauntlet\",\r\n\t\t\"The Emerald Enclave\",\r\n\t\t\"The Lord's Alliance\",\r\n\t\t\"The Zhentarim\"\r\n\t],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"folk hero\", \"inheritor\", {\r\n\tregExpSearch : /inheritor/i,\r\n\tname : \"Inheritor\",\r\n\tsource : [[\"S\", 150], [\"ALbackground\", 0]],\r\n\tskills : [\"Survival\"],\r\n\tskillstxt : \"Survival and choose one from Arcana, History, and Religion\",\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Gaming set or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"The inheritance\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Inheritance\",\r\n\textra : [\r\n\t\t\"Select an Inheritance\",\r\n\t\t\"Document such as a map, letter, or journal\",\r\n\t\t\"A trinket\",\r\n\t\t\"Article of clothing\",\r\n\t\t\"Piece of jewelry\",\r\n\t\t\"Arcane book or formulary\",\r\n\t\t\"Written story, song, poem, or secret\",\r\n\t\t\"Tattoo or other body marking\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n});\r\nAddBackgroundVariant(\"soldier\", \"investigator\", {\r\n\tregExpSearch : /investigator/i,\r\n\tname : \"Investigator\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Investigation\"],\r\n\tequipright : [\r\n\t\t[\"Uniform\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Horn\", \"\", 2],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Watcher's Eye\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2]\r\n});\r\nAddBackgroundVariant(\"soldier\", \"knight of the order\", {\r\n\tregExpSearch : /^(?=.*knight)(?=.*order).*$/i,\r\n\tname : \"Knight of the Order\",\r\n\tsource : [[\"S\", 151], [\"ALbackground\", 0]],\r\n\tskills : [\"Persuasion\"],\r\n\tskillstxt : \"Persuasion and choose one from Arcana, History, Nature, and Religion\",\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Signet, banner, or seal of rank\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Knightly Regard\",\r\n\textra : [\"Name your Knightly Order\"],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"soldier\", \"mercenary veteran\", {\r\n\tregExpSearch : /^(?=.*mercenary)(?=.*(veteran|soldier)).*$/i,\r\n\tname : \"Mercenary Veteran\",\r\n\tsource : [[\"S\", 152], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Persuasion\"],\r\n\tequipright : [\r\n\t\t[\"Uniform of my company\", \"\", 4],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Gaming set\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Mercenary Life\",\r\n\textra : [\"Name your Mercenary Company\"],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"criminal\", \"urban bounty hunter\", {\r\n\tregExpSearch : /^(?=.*urban)(?=.*bounty)(?=.*hunter).*$/i,\r\n\tname : \"Urban Bounty Hunter\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]],\r\n\tskills : \"\",\r\n\tskillstxt : \"Choose two from Deception, Insight, Persuasion, and Stealth\",\r\n\tgold : 20,\r\n\tequipright : [\r\n\t\t[\"Appropriate Clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Ear to the Ground\",\r\n\textra : \"\",\r\n\ttoolProfs : [[\"Gaming set, instrument, or thieves' tools\", 2]],\r\n\tlifestyle : \"poor\"\r\n});\r\nAddBackgroundVariant(\"outlander\", \"uthgardt tribe member\", {\r\n\tregExpSearch : /^(?=.*(uthgardt|barbarian|nomad|clan))(?=.*tribe)(?=.*member).*$/i,\r\n\tname : \"Uthgardt Tribe Member\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Hunting trap\", \"\", 25],\r\n\t\t[\"Totemic token or tattoos of tribal totem\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Uthgardt Heritage\",\r\n\textra : \"\",\r\n\ttoolProfs : [[\"Artisan's tools or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n});\r\nAddBackgroundVariant(\"noble\", \"waterdhavian noble\", {\r\n\tregExpSearch : /^(?=.*(waterdhavian|waterdeep))(?=.*noble).*$/i,\r\n\tname : \"Waterdhavian Noble\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]],\r\n\tgold : 20,\r\n\tequipleft : [\r\n\t\t[\"Scroll of pedigree\", \"\", \"\"],\r\n\t\t[\"Skin of fine zzar or wine\", \"\", 5] // weight based on waterskin\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring or brooch\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Kept in Style\",\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n});\r\n\r\n// Background features\r\nBackgroundFeatureList[\"court functionary\"] = {\r\n\tdescription : \"My knowledge of how bureaucracies function lets me gain access to the records and inner workings of any noble court or government I encounter. I know or can easily acquire the knowledge who the movers and shakers are, whom to go to for the favors I seek, and what the current intrigues of interest in the group are.\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"all eyes on you\"] = {\r\n\tdescription : \"My accent, mannerisms, figures of speech all mark me as foreign. Curious glances are directed my way wherever I go. A nuisance, but I also gain the friendly interest of the curious. I can parley this attention into access I might not otherwise have, for me and my companions. Nobles, scholars, merchants, and guilds, might be among the interested.\",\r\n\tsource : [[\"S\", 149], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ear to the ground\"] = {\r\n\tdescription : \"I am in frequent contact with people in my chosen segment of society. These people might be associated with the criminal underworld, the rough-and-tumble folk of the streets, or members of high society. This connection comes in the form of a contact in any city I visit, a person who provides information about the people and places of the local area.\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"inheritance\"] = {\r\n\tdescription : \"The item I inherited has a special significance, history, power, and/or important value. When I begin my adventuring career, I can decide whether to tell my companions about it right away. Rather than attracting attention to myself, I could decide to keep it a secret until I learn more about what it means to me and what it can do for me.\",\r\n\tsource : [[\"S\", 150], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"kept in style\"] = {\r\n\tdescription : \"While I am in Waterdeep or elsewhere in the North my house sees to my everyday needs. My name and signet are sufficient to cover most of my expenses; the inns, taverns, and festhalls I frequent are glad to record my debt and send an accounting to my family's estate. This advantage enables me to take 2 gp of my daily lifestyle costs down to 0 gp.\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"knightly regard\"] = {\r\n\tdescription : \"I receive shelter and succor from members of my knightly order and its sympathizers. Religious knightly orders get aid from temples and communities of my deity. Civic order knights get help from the community they serve. Philosophical order knights can find help from those they have aided in pursuit of their ideals, and those who share those ideals.\",\r\n\tsource : [[\"S\", 151], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"library access\"] = {\r\n\tdescription : \"I have free access to most of the library I work at, though it might have repositories of lore that are too valuable, magical, or secret to permit anyone immediate access. I have a working knowledge of my cloister's personnel and bureaucracy, and I know how to navigate those connections. I am likely to gain preferential treatment at other libraries.\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"mercenary life\"] = {\r\n\tdescription : \"I know the mercenary life well. I am able to identify mercenary company emblems, and I know a little about any such company, including the leaders, reputation, and who hired them recently. I can find the locales where mercenaries abide anywhere, as long as I speak the language. My mercenary work between adventures affords me a comfortable lifestyle.\",\r\n\tsource : [[\"S\", 152], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"respect of the stout folk\"] = {\r\n\tdescription : \"No one esteems clan crafters quite so highly as dwarves do. I always have free room and board in any place where shield dwarves or gold dwarves dwell, and the individuals in such a settlement might vie among themselves to determine who can offer me (and possibly my compatriots) the finest accommodations and assistance.\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"safe haven\"] = {\r\n\tdescription : \"As a faction agent, I have access to a secret network of support and operatives who can provide assistance on my adventures. I know secret signs and passwords to identify such operatives, who can provide me with access to a hidden safe house, free room and board, or assistance in finding information. These agents never risk their lives or identity for me.\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"uthgardt heritage\"] = {\r\n\tdescription : \"I have an excellent knowledge of my tribe's territory, and surrounding terrain and natural resources. I am familiar enough with any wilderness area that I can find twice as much food and water as one normally would. I can call upon the hospitality of my people, and those allied, often including members of druid circles, nomadic elves, and priesthoods.\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"watcher's eye\"] = {\r\n\tdescription : \"My experience in enforcing the law, and dealing with lawbreakers, gives me a feel for local laws and criminals. I can easily find the local outpost of the watch, guards or a similar organization, and just as easily pick out the dens of criminal activity in a community. I am far more likely to be welcome in the former locations rather than the latter, however.\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Spells\r\nSpellsList[\"booming blade\"] = {\r\n\tname : \"Booming Blade\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"1 round\",\r\n\tdescription : \"Melee wea atk with cast; hit: 0d8 Thunder dmg, if it moves next round +1d8; +1d8 at CL5, 11, \\u0026 17\",\r\n\tdescriptionShorter : \"melee wea atk with cast; hit: 0d8 Thunder dmg, if move next rnd +1d8; +1d8 CL 5/11/17 \",\r\n\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Thunder dmg and if moves next round +`CD`d8 Thunder dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects and then becomes sheathed in booming energy until the start of your next turn. If the target willingly moves 5 feet or more before then, the target takes 1d8 thunder damage, and the spell ends.\",\r\n\t\t\"This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 thunder damage to the target on a hit, and the damage the target takes for moving increases to 2d8. Both damage rolls increase by 1d8 at 11th level (2d8 and 3d8) and again at 17th level (3d8 and 4d8).\",\r\n\t],\r\n\tdynamicDamageBonus : {\r\n\t\textraDmgGroupsSameType : /(next r(?:ou)?nd )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"green-flame blade\"] = {\r\n\tname : \"Green-Flame Blade\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee wea atk with cast; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\tdescriptionShorter : \"Melee wea atk; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Fire dmg, 1 crea in 5 ft `CD-1`d8+spellcasting ability modifier Fire dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects, and you can cause green fire to leap from the target to a different creature of your choice that you can see within 5 feet of it. The second creature takes fire damage equal to your spellcasting ability modifier.\",\r\n\t\t\"This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 fire damage to the target on a hit, and the fire damage to the second creature increases to 1d8 + your spellcasting ability modifier. Both damage rolls increase by 1d8 at 11th level (2d8 and 2d8) and 17th level (3d8 and 3d8).\"\r\n\t],\r\n};\r\nSpellsList[\"lightning lure\"] = {\r\n\tname : \"Lightning Lure\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:15-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea in 15 ft save or pulled 10 ft to me; if it ends in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5, 11, \\u0026 17\",\r\n\tdescriptionShorter : \"1 crea in 15 ft save or pulled 10 ft to me; if end in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"1 crea I see save or pulled 10 ft to me; if it ends in 5 ft, `CD`d8 Lightning dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You create a lash of lightning energy that strikes at one creature of your choice that you can see within 15 feet of you. The target must succeed on a Strength saving throw or be pulled up to 10 feet in a straight line toward you and then take 1d8 lightning damage if it is within 5 feet of you.\",\r\n\t\t\"This spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\",\r\n\t],\r\n};\r\nSpellsList[\"sword burst\"] = {\r\n\tname : \"Sword Burst\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea in range save or 1d6 Force damage; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"All crea in range save or `CD`d6 Force damage\",\r\n\tdescriptionFull: [\r\n\t\t\"You create a momentary circle of spectral blades that sweep around you. All other creatures within 5 feet of you must succeed on a Dexterity saving throw or take 1d6 force damage.\",\r\n\t\t\"This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\",\r\n\t],\r\n};\r\n\r\nWeaponsList[\"booming blade\"] = {\r\n\tregExpSearch : /^(?=.*booming)(?=.*blade).*$/i,\r\n\tname : \"Booming Blade\",\r\n\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"Bd8/Cd8\", \"\", \"thunder\"],\r\n\trange : \"With melee wea\",\r\n\tdescription : \"First damage added to the attack; second to the target if it moves next round\",\r\n\tabilitytodamage : false\r\n};\r\nWeaponsList[\"green-flame blade\"] = {\r\n\tregExpSearch : /^(?=.*green)(?=.*flame)(?=.*blade).*$/i,\r\n\tname : \"Green-Flame Blade\",\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"Bd8/Bd8\", \"\", \"fire\"],\r\n\trange : \"With melee wea\",\r\n\tdescription : \"First damage added to the attack; second to a target within 5 ft\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"lightning lure\"] = {\r\n\tregExpSearch : /^(?=.*lightning)(?=.*lure).*$/i,\r\n\tname : \"Lightning Lure\",\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"lightning\"],\r\n\trange : \"15 ft\",\r\n\tdescription : \"Str save; success - nothing; fail - pulled 10 ft closer to me, only take damage if end within 5 ft of me\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"sword burst\"] = {\r\n\tregExpSearch : /^(?=.*sword)(?=.*burst).*$/i,\r\n\tname : \"Sword Burst\",\r\n\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Dex save, success - no damage; all creatures in range\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\n// pub_20160315_CoS.js\r\n// This file adds the backgrounds from the Curse of Strahd adventure book and the optional backgrounds from the Adventurers League season 4 (Curse of Strahd) to MPMB's Character Record Sheet\r\n\r\n// Define the sources\r\nSourceList.CoS={\r\n\tname : \"Curse of Strahd [background, items, pack]\",\r\n\tabbreviation : \"CoS\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Ravenloft\",\r\n\turl : \"https://media.wizards.com/2016/downloads/DND/CoS_Character_Options.pdf?dl=1\",\r\n\tdate : \"2016/03/15\"\r\n};\r\nSourceList[\"AL:CoS\"]={\r\n\tname : \"Curse of Strahd Backgrounds\", // v1.1\r\n\tabbreviation : \"AL:CoS\",\r\n\tgroup : \"Adventurers League\",\r\n\turl : \"https://www.dropbox.com/s/f9ktz5u2gcu2509/Curse-of-Strahd-Backgrounds-v1.1.pdf\", // used to be https://dndadventurersleague.org/wp-content/uploads/2016/06/Curse-of-Strahd-Backgrounds-v1.1.pdf\r\n\tdate : \"2016/04/07\"\r\n};\r\n\r\n// Backgrounds (with contributions by RCanine)\r\nBackgroundList[\"haunted one\"] = {\r\n\tregExpSearch : /haunted.one/i,\r\n\tname : \"Haunted One\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Arcana, Investigation, Religion, and Survival\",\r\n\tlanguageProfs : [2], // was 1 in book, fixed in errata\r\n\tgold : 0.1, // added in VRGtR reprint\r\n\tequipleft : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden Stakes\", 3, 1],\r\n\t\t[\"Holy symbol\", \"\", 1],\r\n\t\t[\"Holy water, flasks of\", \"\", 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel Mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", \"\", 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torch\", 3, 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3], // added in VRGtR reprint\r\n\t\t[\"Trinket of special significance\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Heart of Darkness\",\r\n\ttrait : [\r\n\t\t\"I don't run from evil. Evil runs from me.\",\r\n\t\t\"I like to read and memorize poetry. It keeps me calm and brings me fleeting moments of happiness.\",\r\n\t\t\"I spend money freely and live life to the fullest, knowing that tomorrow I might die.\",\r\n\t\t\"I live for the thrill of the hunt.\",\r\n\t\t\"I don't talk about the thing that torments me. I'd rather not burden others with my curse.\",\r\n\t\t\"I expect danger around every corner.\",\r\n\t\t\"I refuse to become a victim, and I will not allow others to be victimized.\",\r\n\t\t\"I put no trust in divine beings.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Sacrifice\", \"Sacrifice: I try to help those in need, no matter what the personal cost. (Good)\"],\r\n\t\t[\"Desperation\", \"Desperation: I'll stop the spirits that haunt me or die trying. (Any)\"],\r\n\t\t[\"Cleansing\", \"Cleansing: I kill monsters to make the world a safer place, and to exorcise my own demons. (Good)\"],\r\n\t\t[\"Vigilante\", \"Vigilante: I have a dark calling that puts me above the law. (Chaotic)\"],\r\n\t\t[\"Preparation\", \"Preparation: I like to know my enemy's capabilities and weaknesses before rushing into battle. (Lawful)\"],\r\n\t\t[\"Destruction\", \"Destruction: I'm a monster that destroys other monsters, and anything else that gets in my way. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I keep my thoughts and discoveries in a journal. My journal is my legacy.\",\r\n\t\t\"I would sacrifice my life and my soul to protect the innocent.\",\r\n\t\t\"My torment drove away the person I love. I strive to win back the love I've lost.\",\r\n\t\t\"A terrible guilt consumes me. I hope that I can find redemption through my actions.\",\r\n\t\t\"There's evil in me, I can feel it. It must never be set free.\",\r\n\t\t\"I have a child to protect. I must make the world a safer place for him (or her).\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have certain rituals that I must follow every day. I can never break them.\",\r\n\t\t\"I assume the worst in people.\",\r\n\t\t\"I feel no compassion for the dead. They're the lucky ones.\",\r\n\t\t\"I have an addiction.\",\r\n\t\t\"I am a purveyor of doom and gloom who lives in a world without hope.\",\r\n\t\t\"I talk to spirits that no one else can see.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Harrowing Event\",\r\n\t\t\"Monster spared my life\",\r\n\t\t\"Born under a dark star\",\r\n\t\t\"Haunted by an apparition\",\r\n\t\t\"Dark arts in the family\",\r\n\t\t\"An oni took my sibling\",\r\n\t\t\"Memory of cured lycanthropy\",\r\n\t\t\"Raised by a hag\",\r\n\t\t\"Studied an eldritch tome\",\r\n\t\t\"Formerly possessed by a fiend\",\r\n\t\t\"Avenged a murder\"\r\n\t]\r\n};\r\nBackgroundList[\"black fist double agent\"] = {\r\n\tregExpSearch : /black\\W*fist/i,\r\n\tname : \"Black Fist Double Agent\",\r\n\tsource : [[\"AL:CoS\", 2], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Insight\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Tears of Virulence emblem\", \"\", \"\"],\r\n\t\t[\"Writ of free agency\", \"\", \"\"],\r\n\t\t[\"Set of artisan's tools or gaming set\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Double Agent\",\r\n\ttrait : [\r\n\t\t\"People are only as trustworthy as you are valuable to them. Always strive to be the most valuable person around.\",\r\n\t\t\"My eloquence and sophistication are tools I use to avoid arousing suspicion myself.\",\r\n\t\t\"I am a thrill-seeker, excited by covert and dangerous missions.\",\r\n\t\t\"I live by my wits and always check every lock twice, just to be certain.\",\r\n\t\t\"I never admit to my mistakes lest they be used against me.\",\r\n\t\t\"I take every effort to be unnoticeable and blend into the crowd. Passersby rarely give me a second look.\",\r\n\t\t\"I am prepared for any eventuality; including the day my usefulness as a spy comes to an end.\",\r\n\t\t\"I always make certain to know my enemy before acting, lest I bite off more than I can chew.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Suspicious\", \"Suspicious: In my experience, everybody has something to hide, and what they hide can usually hurt me. (Any)\"],\r\n\t\t[\"Secretive\", \"Secretive: I trade in secrets, and am not about to let any of mine slip. (Any)\"],\r\n\t\t[\"Hedonist\", \"Hedonist: Life is short. I live my life to the fullest, as I know any day could be my last. (Chaotic)\"],\r\n\t\t[\"Selfless\", \"Selfless: I use my position to help the downtrodden avoid persecution from the authorities. (Good)\"],\r\n\t\t[\"Patriotic\" , \"Patriotic: I am a loyal supporter of Phlan and its leaders, and see my role as a solemn duty and necessary evil to prevent anarchy. (Lawful)\"],\r\n\t\t[\"Manipulative\", \"Manipulative: I use my knowledge to blackmail and manipulate others to my own benefit. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I was framed for a crime I did not commit, and seek to bring the true culprit to justice.\",\r\n\t\t\"I am a part of an underground network that smuggles innocent civilians out of the city prior to being raided by the authorities.\",\r\n\t\t\"I miss the glory days of Phlan, before the coming of the dragon.\",\r\n\t\t\"I seek to prove myself worthy of joining the Black Fist as a member of their order.\",\r\n\t\t\"My sister was killed by a Tear of Virulence, and now I feed them false information whenever possible.\",\r\n\t\t\"My family was wrongly imprisoned, and I act as an informant in order to secure their release.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I think too highly of myself, and have an exaggerated sense of self-importance.\",\r\n\t\t\"I have difficulty trusting strangers. I see spies and informants everywhere.\",\r\n\t\t\"Years of getting away with minor crimes has left me believing that I am above the law, and have diplomatic immunity above my station.\",\r\n\t\t\"Years of seeing innocent people suffer have left me despondent and pessimistic for the future.\",\r\n\t\t\"My desire for vengeance often gets me into trouble\",\r\n\t\t\"I am spendthrift, and share my wealth with the patrons of my favorite tavern.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise Kit\", [\"Artisan's tools or gaming set\", 1]],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"dragon casualty\"] = {\r\n\tregExpSearch : /^(?=.*dragon)(?=.*casualty).*$/i,\r\n\tname : \"Dragon Casualty\",\r\n\tsource : [[\"AL:CoS\", 3], [\"ALbackground\", 0]],\r\n\tskills : [\"Intimidation\", \"Survival\"],\r\n\ttoolProfs : [\"Based on my origin\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Loaf of moldy bread\", \"\", 1],\r\n\t\t[\"Cast-off Vorgansharax scale\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Tattered Rags\", \"\", 3],\r\n\t\t[\"Dagger\", \"\", 1],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Dragonscarred\",\r\n\textra : [\r\n\t\t\"Select an Origin (or Disfigurement)\",\r\n\t\t\"Dockworker\",\r\n\t\t\"Fisherman\",\r\n\t\t\"Tradesperson\",\r\n\t\t\"Merchant\",\r\n\t\t\"Black Fist Soldier\",\r\n\t\t\"Adventurer\",\r\n\t\t\"Visitor\",\r\n\t\t\"Entertainer\",\r\n\t\t\"Scholar\",\r\n\t\t\"Healer\",\r\n\t\t\"Criminal\",\r\n\t\t\"Unskilled laborer\",\r\n\t\t\"\",\r\n\t\t\"- Disfigurements (optional):\",\r\n\t\t\"Extensive scarring\",\r\n\t\t\"Small non-functional wing(s)\",\r\n\t\t\"Misshapen, wing-like membrane(s)\",\r\n\t\t\"Elongated, claw-like hand(s) or feet\",\r\n\t\t\"Painful green scales embedded in skin\",\r\n\t\t\"Bulbous, reptilian eye(s)\",\r\n\t\t\"Enlarged dorsal spines\",\r\n\t\t\"Small irregular spines instead of hair\"\r\n\t],\r\n\ttrait : [\r\n\t\t\"I am driven to escape my past, and rarely stay in one place long.\",\r\n\t\t\"I know secrets of the Maimed Virulence, but fear the harm that may befall me should others learn them.\",\r\n\t\t\"Speaking of my ordeal helps sooth the still open wounds in my soul.\",\r\n\t\t\"My former life is meaningless, and was ripped to shreds by the claws of Vorgansharax. All that matters now is what I do with the future.\",\r\n\t\t\"I have faced the worst a dragon can deliver and survived. I am fearless, and my resolve unshakable.\",\r\n\t\t\"I am haunted my tortured past, and wake at night screaming at half-remembered horrors.\",\r\n\t\t\"I sleep with my back to a wall or tree, and a weapon within arm's reach.\",\r\n\t\t\"I am slow to trust, but incredibly loyal to those who have earned it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Survivor\", \"Survivor: No matter the cost, I will take any action necessary to survive (any)\"],\r\n\t\t[\"Independence\", \"Independence: When in trouble, the only person I can rely on is myself (Chaotic)\"],\r\n\t\t[\"Compassionate\", \"Compassionate: I have suffered long at the hands of a Dragon, and take pity and compassion on the suffering of others (Good)\"],\r\n\t\t[\"Secretive\", \"Secretive: I am withdrawn, and hide my monstrous appearance for fear of drawing unwanted attention. (Chaotic)\"],\r\n\t\t[\"Justice\", \"Justice: I have been wronged, and will not allow the same fate to befall others. (Lawful)\"],\r\n\t\t[\"Sycophant\", \"Sycophant: During my ordeal, I became a willing servant of the Maimed Virulence, and spy on his behalf. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have sworn vengeance on the Maimed Virulence and those that follow him.\",\r\n\t\t\"I long to reunite with friends and family who may dwell among the Phlan Refugees, and protect them.\",\r\n\t\t\"While a prisoner of the Maimed Virulence, I overheard rumors of an item or treasure the Dragon seeks. I will have that treasure for myself!\",\r\n\t\t\"I seek to reclaim and rebuild my former life to the best of my ability.\",\r\n\t\t\"I have been reborn as a child of Vorgansharax. I will claim my birthright as his chosen heir and successor.\",\r\n\t\t\"I attribute my survival to the work of the divine, and seek to prove myself worthy of the honor.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have been touched with dragon-greed, and have a lust for wealth which can never be satisfied.\",\r\n\t\t\"I secretly believe others are plotting to harm me.\",\r\n\t\t\"I no longer enjoy the simple pleasures in life. Food is but ashes and bile in my throat.\",\r\n\t\t\"Anyone who refuses to celebrate my celebrity does not deserve my company.\",\r\n\t\t\"I am paranoid and overly suspicious of others. Anyone may be an agent of the Maimed Virulence.\",\r\n\t\t\"Once I make up my mind, I follow my chosen course of action regardless of the consequences.\"\r\n\t],\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tlifestyle : \"wretched\"\r\n};\r\nBackgroundList[\"iron route bandit\"] = {\r\n\tregExpSearch : /^(?=.*iron)(?=.*route)(?=.*bandit).*$/i,\r\n\tname : \"Iron Route Bandit\",\r\n\tsource : [[\"AL:CoS\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Stealth\"],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Backpack, with:\", \"\", 5],\r\n\t\t[\"Bag of 1000 ball bearings\", 1, 2],\r\n\t\t[\"String, feet of\", 10, \"\"],\r\n\t\t[\"Bell\", \"\", \"\"],\r\n\t\t[\"Candles\", 5, \"\"],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Pitons\", 10, .25],\r\n\t\t[\"Hooded lantern\", \"\", 2],\r\n\t\t[\"Oil, flasks of\", 2, 1],\r\n\t\t[\"Rations, days of\", 5, 2],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Waterskin\", \"\", 5],\r\n\t\t[\"Hempen rope, feet of\", 50, 0.2]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Dark common clothes\", \"\", 3],\r\n\t\t[\"Pack Saddle\", \"\", \"\"],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Black-Market Breeder\",\r\n\ttrait : [\r\n\t\t\"If people leave their gear unsecured, they must not want it very much.\",\r\n\t\t\"I feel more comfortable sleeping under the open sky.\",\r\n\t\t\"I always pre-plan my escape should things go bad; I always like to have an exit strategy.\",\r\n\t\t\"I tend to give animal owners breeding and care advice whether or not they want it.\",\r\n\t\t\"I lost a pet as a child and sadly reflect on it to this day.\",\r\n\t\t\"I always form a powerful, emotional bond with my mount.\",\r\n\t\t\"I recoil at the thought of killing someone else's pet or mount.\",\r\n\t\t\"I prefer to hang to the back of a scuffle or discussion. Better to have my enemies in front of me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loyalty\", \"Loyalty: Never bite the hand that feeds. (Good)\"],\r\n\t\t[\"Unpredictability\", \"Unpredictability: Keep your enemy guessing and off-balance like a confused deer. (Chaotic)\"],\r\n\t\t[\"Power\", \"Power: I strive to become leader of the pack at all costs. (Lawful)\"],\r\n\t\t[\"Freedom\", \"Freedom: I bow to no one I don't respect. (Chaotic)\"],\r\n\t\t[\"Resourcefulness\", \"Resourcefulness: Our wits are our most valuable resource in troubled times. (Any)\"],\r\n\t\t[\"Unity\", \"Unity: Lone wolves fail where the pack succeeds. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I cannot leave a harmed animal behind; I must save it or put it out of its misery.\",\r\n\t\t\"I leave behind my own personal calling cards when I do a job.\",\r\n\t\t\"I do not trust people who do not have a pet, mount, or furry companion.\",\r\n\t\t\"The pelt I wear on my back was from an animal that died saving my life, I will always cherish it.\",\r\n\t\t\"If my pet does not like you, I do not like you!\",\r\n\t\t\"Once you've ridden with me and fought by my side, I'll be there for you odds be damned.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I talk to animals; I believe they understand me, even if they do not.\",\r\n\t\t\"I growl at and bite anyone who gets too close to my food while I am eating.\",\r\n\t\t\"I strongly dislike enclosed spaces and require intoxication or firm encouragement to enter them.\",\r\n\t\t\"I robbed the wrong caravan once. The owner is a powerful merchant who holds a grudge.\",\r\n\t\t\"I'm an inveterate gambler.\",\r\n\t\t\"I judge people based on how well they stand their ground in a fight. I got not time for cowards…\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"phlan insurgent\"] = {\r\n\tregExpSearch : /^(?=.*phlan)(?=.*insurgent).*$/i,\r\n\tname : \"Phlan Insurgent\",\r\n\tsource : [[\"AL:CoS\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Stealth\", \"Survival\"],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], \"Vehicles (land)\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Caltrops\", 20, 0.1],\r\n\t\t[\"Small trinket of my life before\", \"\", \"\"],\r\n\t\t[\"Healer's kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Dark common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Guerilla\",\r\n\textra : [\r\n\t\t\"Select an Origin\",\r\n\t\t\"Fisher\",\r\n\t\t\"Hunter\",\r\n\t\t\"Craftsperson\",\r\n\t\t\"Priest/Priestess\",\r\n\t\t\"Cook\",\r\n\t\t\"City Watch\",\r\n\t\t\"Servant\",\r\n\t\t\"Unskilled laborer\",\r\n\t\t\"Stojanow river worker\",\r\n\t\t\"Twilight Marsh worker\",\r\n\t\t\"Mantor's Library scribe\",\r\n\t\t\"Clergy of Ilmater\",\r\n\t\t\"Laughing Goblin server\",\r\n\t\t\"Black Fist guard\",\r\n\t\t\"House Sokol retainer\",\r\n\t\t\"Bay of Phlan dockworker\"\r\n\t],\r\n\ttrait : [\r\n\t\t\"My patience knows no bounds, so long as my goal is in sight.\",\r\n\t\t\"In life and in struggle, the ends justify my actions.\",\r\n\t\t\"If you aren't helping me, you'd best at least stay out of my way.\",\r\n\t\t\"I long for the life that was taken away from me.\",\r\n\t\t\"Friends and family perished, tragically, before my eyes. I hope never to undergo that again.\",\r\n\t\t\"Making the right choices in life are important to me. The choices I make might save not just my life, but the lives of others as well.\",\r\n\t\t\"I can never allow my foes to get the drop on me.\",\r\n\t\t\"Time is a precious resource that I must spend wisely.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Leadership\", \"Leadership: The oppressed need someone to inspire them to courageous acts. (Good)\"],\r\n\t\t[\"Unpredictability\", \"Unpredictability: Keeping the enemy guessing and off-balance is my tactical strength. (Chaos)\"],\r\n\t\t[\"Determination\", \"Determination: Threats to my home must be eliminated at all costs. (Any)\"],\r\n\t\t[\"Freedom\", \"Freedom: Those who are enslaved and unjustly imprisoned deserve my aid. (Good)\"],\r\n\t\t[\"Resourcefulness\", \"Resourcefulness: Our wits are our most valuable resource in troubled times. (Any)\"],\r\n\t\t[\"Unity\", \"Unity: Working together, we can overcome all obstacles, even the most seemingly insurmountable ones. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'll never let my fellow insurgents down. They are my only remaining friends.\",\r\n\t\t\"I was separated from a loved one during my escape from town. I will find them.\",\r\n\t\t\"One of the Tears of the Virulence was a trusted friend, until the day they betrayed the city. They will pay harshly for their transgressions.\",\r\n\t\t\"An item I hold close is my last remaining connection to the family I lost during the fall.\",\r\n\t\t\"The dragon who took my past life away from me will feel the full extent of my vengeance.\",\r\n\t\t\"The knowledge in Mantor's Library is an irreplaceable treasure that must be protected.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have no respect for those who flee. I harbor a deep grudge against the citizens who abandoned Phlan.\",\r\n\t\t\"Ale is the only way I can escape the desperation of my circumstances.\",\r\n\t\t\"It doesn't take much to get me into a fight.\",\r\n\t\t\"Being an insurgent means doing things that aren't always ethical. I'm still learning to live with that.\",\r\n\t\t\"My desire to liberate Phlan oftentimes clouds my judgement, despite my best efforts.\",\r\n\t\t\"I relentlessly despise the Maimed Virulence and his allies. I'd abandon other goals in order to strike out at them\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"stojanow prisoner\"] = {\r\n\tregExpSearch : /^(?=.*stojanow)(?=.*prisoner).*$/i,\r\n\tname : \"Stojanow Prisoner\",\r\n\tsource : [[\"AL:CoS\", 8], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Perception\"],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Small knife\", \"\", 0.25],\r\n\t\t[\"Small trinket from my life before\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Ex-Convict\",\r\n\ttrait : [\r\n\t\t\"I am a bully; others will suffer as I have.\",\r\n\t\t\"I always say yes even when I mean no; it's just easier.\",\r\n\t\t\"I aim to misbehave.\",\r\n\t\t\"I go out of my way to frustrate or anger those in power.\",\r\n\t\t\"I strive to obey the law. I will never again make the mistake of going against authority.\",\r\n\t\t\"I always plan everything out. The one time I let others plan things it did not end well for me.\",\r\n\t\t\"I take blame to protect others from pain.\",\r\n\t\t\"I horde information, you never know what may come in handy.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loss\", \"Loss: I freely give those who offend me what was so brutally denied me, death. (Chaos)\"],\r\n\t\t[\"Dedication\", \"Dedication: I never betray those who trust me. (Law)\"],\r\n\t\t[\"Vengeance\", \"Vengeance: I use any means to get information I need; I have been well taught. (Evil)\"],\r\n\t\t[\"Redemption\", \"Redemption: Everyone deserves a second chance. (Good)\"],\r\n\t\t[\"Resilience\", \"Resilience: I can survive any challenge. (Any)\"],\r\n\t\t[\"Leadership\", \"Leadership: The best teams are made up of those that society has discarded. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I take up arms to help establish a free Phlan.\",\r\n\t\t\"The horrors of my time in Stojanow haunt my dreams, only after a day of hard work can I find sleep.\",\r\n\t\t\"I am indebted to those who freed me from prison, I will repay this debt.\",\r\n\t\t\"My torturer survived the attack that set me free, I will find him/her.\",\r\n\t\t\"I will not rest while others suffer fates similar to mine.\",\r\n\t\t\"I am searching for a way to heal the scars of Stojanow, both physical and emotional.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"During stressful times, I find myself crying for no reason.\",\r\n\t\t\"My nerve endings are shot from the interrogations; I am numb to all but the harshest touch.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"I folded under the torture, and gave information that I promised would be kept secret. My life would be in jeopardy if others found out.\",\r\n\t\t\"Survival is worth more than friendship.\",\r\n\t\t\"The ghosts from my past hinder my actions.\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"ticklebelly nomad\"] = {\r\n\tregExpSearch : /^(?=.*ticklebelly)(?=.*nomad).*$/i,\r\n\tname : \"Ticklebelly Nomad\",\r\n\tsource : [[\"AL:CoS\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Nature\"],\r\n\ttoolProfs : [\"Herbalism Kit\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Herbalism kit\", \"\", 3],\r\n\t\t[\"Small tribal jewelry\", \"\", \"\"],\r\n\t\t[\"Hunting trap\", \"\", 25]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"At Home in the Wild\",\r\n\ttrait : [\r\n\t\t\"I eagerly inject myself into the unknown.\",\r\n\t\t\"Villages, towns, and cities do not suit me. I'd rather be out in the wilderness any day.\",\r\n\t\t\"I accomplish my tasks efficiently, using as few resources as possible.\",\r\n\t\t\"It's difficult for me to remain in one place for long.\",\r\n\t\t\"I loudly brag about my tribe every chance I get.\",\r\n\t\t\"Having walked among giants, I am fearless in the face of bigger creatures.\",\r\n\t\t\"I am quiet and reserved, but observant. Nothing escapes my attention.\",\r\n\t\t\"My word is my bond. I see a promise to completion, even if it conflicts with my beliefs.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Kinship\", \"Kinship: Family is most important in life. Though I may be far from my own, the bonds of family must be protected in others' lives as well. (Good)\"],\r\n\t\t[\"Preservation\", \"Preservation: Nature must not be despoiled by encroaching civilization. (Any)\"],\r\n\t\t[\"Wanderlust\", \"Wanderlust: One must expand their horizons by seeing the world and exploring. (Chaos)\"],\r\n\t\t[\"Isolation\", \"Isolation: My tribe and its ways must be protected and shielded from outside influence. (Neutral)\"],\r\n\t\t[\"Protection\", \"Protection: Threats to the land and to the people must be dealt with at any and all costs. (Law)\"],\r\n\t\t[\"Belonging\", \"Belonging: All creatures have a place in the world, so I strive to help others find theirs. (Good)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I ache to return to my tribe and the family I left, but cannot until my obligations are fulfilled.\",\r\n\t\t\"The dragon cultists that invaded my homeland stole away one of my tribe's people. I will not know rest until I've found them.\",\r\n\t\t\"The dragon's presence in the hills destroyed valuable territory and resulted in deaths within my tribe. The creature must pay for what it has done.\",\r\n\t\t\"I carry a trinket that spiritually and emotionally ties me to my people and my home.\",\r\n\t\t\"I discovered a strange relic in the hills during my tribe's wanderings. I must discover what it is.\",\r\n\t\t\"One of the stone giant clans from the Giant's Cairn has graced me with a mark of kinship.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I throw myself and my friends into situations rarely ever thinking about consequences.\",\r\n\t\t\"Unfamiliar people and surroundings put me on edge.\",\r\n\t\t\"I have absolutely no patience for slowpokes and those who prove indecisive.\",\r\n\t\t\"My desire to experience new things causes me to make unsafe choices.\",\r\n\t\t\"I am overly protective of nature, sometimes to the detriment of my companions and myself.\",\r\n\t\t\"My lack of worldliness often proves my undoing in social, commercial, and hostile situations.\"\r\n\t],\r\n\tlanguageProfs : [\"Giant\"],\r\n\tlifestyle : \"poor\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"at home in the wild\"] = {\r\n\tdescription : \"In the wilderness, my home, I can find a place to hide, rest, or recuperate that is secure enough to conceal me from most natural threats, but not all supernatural, magical, or threats that actively seek me out. However, this feature doesn't shield or conceal me from scrying, mental probing, nor from threats that don't need the five senses to find me.\",\r\n\tsource : [[\"AL:CoS\", 9], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"black-market breeder\"] = {\r\n\tdescription : \"I know how to find people who are always looking for stolen animals and vehicles, for pit fights or getaways during an illegal job. This provides me with information of what such animals & vehicles are in high demand in the area, but also offer to give me favors and information (DM choice) if I bring such animals and vehicles to them.\",\r\n\tsource : [[\"AL:CoS\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"double agent\"] = {\r\n\tdescription : \"I have a trusty contact in the Tears of Virulence garrison in Phlan to whom I pass information. In exchange, I get away with minor criminal offenses in Phlan. My Black Fists contacts can help me get an audience with the Lord Regent, the Lord Sage, Black Fists members, or deposed nobles who are sympathetic to the Phlan refugees and insurgents.\",\r\n\tsource : [[\"AL:CoS\", 2], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"dragonscarred\"] = {\r\n\tdescription : \"My extensive scars from being tortured by Vorgansharax give me fame and notoriety, but it is difficult to disguise my appearance and hide from prying eyes. I can use this to gain access to people and places I might not otherwise have, for me and my companions. However, I fear that my afflictions are not completely mundane, as they burn and writhe.\",\r\n\tsource : [[\"AL:CoS\", 3], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ex-convict\"] = {\r\n\tdescription : \"The knowledge gained during my incarceration lets me gain insight into local guards and jailors. I know which will accept bribes, or look the other way for me. I can also seek shelter for myself from authorities with other criminals in the area.\",\r\n\tsource : [[\"AL:CoS\", 8], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"guerilla\"] = {\r\n\tdescription : \"I've come to know the surrounding other natural features in which I can take refuge--or set up ambushes. I can quickly survey my environment for advantageous features. Additionally, I can scavenge around my natural surroundings to cobble together simple supplies (such as improvised torches, rope, patches of fabric, etc.) that are consumed after use.\",\r\n\tsource : [[\"AL:CoS\", 6], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"heart of darkness\"] = {\r\n\tdescription : \"Those who look into my eyes can see that I have faced unimaginable horror and that I am no stranger to darkness. Though they might fear me, commoners will extend me every courtesy and do their utmost to help. Unless I have shown myself to be a danger to them, they will even take up arms to fight with me, should I find myself facing an enemy alone.\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Equipment pack\r\nPacksList.monsterhunter = {\r\n\tname : \"Monster hunter's pack (33 gp)\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34]],\r\n\titems : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden stake\", 3, 1],\r\n\t\t[\"Amulet holy symbol\", \"\", \"\"],\r\n\t\t[\"Holy water, flasks of\", 1, 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", 1, 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torches\", 3, 1]\r\n\t]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"plantslayer battleaxe\"] = {\r\n\tname : \"Plantslayer Battleaxe\", // name taken from Adventurers League Content Catalogue v8.07, page 28\r\n\tnameAlt : \"Adventurer's Battleaxe\",\r\n\tsource : [[\"CoS\", 198]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This battleaxe's handle is carved with leaves and vines. It deals an extra 1d8 slashing damage against ordinary plants and plant creatures. When a creature of non-good alignment makes an attack with it, it sprouts thorns, dealing 1 magical piercing damage to the wielder after the attack is made.\",\r\n\tdescriptionFull : \"The axe's handle is carved with leaves and vines, and it weighs half as much as a normal battleaxe. When the axe hits a plant, whether an ordinary plant or a plant creature, the target takes an extra 1d8 slashing damage. When a creature of non-good alignment wields the axe, it sprouts thorns whenever its wielder makes an attack with it. These thorns prick the wielder for 1 piercing damage after the attack is made, and this damage is considered magical.\",\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /^(?=.*plantslayer)(?=.*battleaxe).*$/i,\r\n\t\tname : \"Plantslayer Battleaxe\",\r\n\t\tsource : [[\"CoS\", 198]],\r\n\t\tdescription : \"Versatile (1d10); +1d8 damage vs. plants\",\r\n\t\tweight : 2,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"blood spear\"] = {\r\n\tname : \"Blood Spear\",\r\n\tsource : [[\"CoS\", 221]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This spear drains the life from those it kills and transfers that life to its wielder, imbuing that individual with the stamina to keep fighting. When I use it to reduce the target to 0 HP, I gain 2d6 temporary HP. If I'm chosen by Kavan to wield this spear, I gain a +2 bonus to attack and damage rolls made with it.\",\r\n\tdescriptionFull : \"Kavan was a ruthless chieftain whose tribe lived in the Balinok Mountains centuries before the arrival of Strahd von Zarovich. Although he was very much alive, Kavan had some traits in common with vampires: he slept during the day and hunted at night, he drank the blood of his prey, and he lived underground. In battle, he wielded a spear stained with blood. His was the first blood spear, a weapon that drains life from those it kills and transfers that life to its wielder, imbuing that individual with the stamina to keep fighting.\\n   When you hit with a melee attack using this magic spear and reduce the target to 0 hit points, you gain 2d6 temporary hit points.\\n   Any creature can wield the spear, but only the character chosen by Kavan to wield it gains a +2 bonus to attack and damage rolls made with this magic weapon.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tchoices : [\"Chosen of Kavan\", \"Not a chosen of Kavan\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"chosen of kavan\" : {\r\n\t\tname : \"Blood\\u200A Spear\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*blood)(?=.*spear).*$/i,\r\n\t\t\tname : \"Blood Spear\",\r\n\t\t\tsource : [[\"CoS\", 221]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); If used to reduce target to 0 HP, I gain 2d6 temp HP\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"not a chosen of kavan\" : {\r\n\t\tname : \"Blood\\u200A\\u200A Spear\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*blood)(?=.*spear).*$/i,\r\n\t\t\tname : \"Blood Spear\",\r\n\t\t\tsource : [[\"CoS\", 221]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); If used to reduce target to 0 HP, I gain 2d6 temp HP\",\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"green copper ewer\"] = {\r\n\tname : \"Green Copper Ewer\",\r\n\tsource : [[\"CoS\", 188]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Any poisonous liquid poured into the ewer is instantly transformed into an equal amount of sweet wine. If I speak the ewer's command word while grasping its handle, the ewer fills with 1 gallon of wine. After doing so, it can't produce more wine until the next dawn.\",\r\n\tdescriptionFull : \"Any poisonous liquid poured into the ewer is instantly transformed into an equal amount of sweet wine. Furthermore, a creature that grasps the ewer's handle can command the ewer to fill with 1 gallon of wine, and it can't produce more wine until the next dawn.\"\r\n}\r\nMagicItemsList[\"gulthias staff\"] = {\r\n\tname : \"Gulthias Staff\",\r\n\tsource : [[\"CoS\", 221]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This black wooden quarterstaff has 10 charges, regaining 1d6+4 at dusk. When I hit with it in melee, I can use 1 charge to regain HP equal to the damage dealt, but I must make a DC 12 Wis save or be afflicted by short-term madness (DMG 259). While attuned to it, evil plant creatures are indifferent to me.\",\r\n\tdescriptionLong : \"This spongy, black wooden quarterstaff has 10 charges, regaining 1d6+4 at dusk. When I hit with it in melee, I can use 1 charge to regain HP equal to the damage dealt, but I must make a DC 12 Wis save or be afflicted by short-term madness (see table at SRD 201 or DMG 259). While I'm attuned to the staff, evil plant creatures don't regard me as hostile unless I harm them. If it is broken or burned to ashes, it releases an inhuman scream that can be heard out to 300 ft. All blights that can hear the scream immediately wither and die.\",\r\n\tdescriptionFull : \"Made from the branch of a Gulthias tree (see the blights entry of the Monster Manual), a Gulthias staff is a spongy, black length of wood. Its evil makes beasts visibly uncomfortable while within 30 feet of it. The staff has 10 charges and regains 1d6+4 of its expended charges daily at dusk.\\n   If the staff is broken or burned to ashes, its wood releases a terrible, inhuman scream that can be heard out to a range of 300 feet. All blights that can hear the scream immediately wither and die.\\n   \" + toUni(\"Vampiric Strike\") + \". The staff can be wielded as a magic quarterstaff. On a hit, it deals damage as a normal quarterstaff, and you can expend 1 charge to regain a number of hit points equal to the damage dealt by the weapon. Each time a charge is spent, red blood oozes from the staff's pores, and you must succeed on a DC 12 Wisdom saving throw or be afflicted with short term madness (see \\\"Madness\\\" in chapter 8 of the Dungeon Master's Guide).\\n   \" + toUni(\"Blight Bane\") + \". While you are attuned to the staff, blights and other evil plant creatures don't regard you as hostile unless you harm them.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"Dusk\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /^(?=.*gulthias)(?=.*staff).*$/i,\r\n\t\tname : \"Gulthias Staff\",\r\n\t\tsource : [[\"CoS\", 221]],\r\n\t\tdescription : \"Versatile (1d8); On hit, 1 charge to regain HP equal to damage dealt but DC 12 Wis save or madness\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"holy symbol of ravenkind\"] = {\r\n\tname : \"Holy Symbol of Ravenkind\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin of good alignment\",\r\n\tprereqeval : function(v) { return (/good/i).test(What(\"Alignment\")) && (classes.known.cleric || classes.known.paladin); },\r\n\tdescription : \"This platinum amulet has 10 charges, regaining 1d6+4 at dawn. As an action, I can use 1 charge to hold vampires (see 3rd page notes). I can use 3 charges with Turn Undead to give disadv. on its saves. As an action, ican use 5 charges to shed daylight, 30-ft radius bright light and dim light for another 30-ft for 10 minutes.\",\r\n\tdescriptionFull : \"The Holy Symbol of Ravenkind is a unique holy symbol sacred to the good-hearted faithful of Barovia. It predates the establishment of any church in Barovia. According to legend, it was delivered to a paladin named Lugdana by a giant raven - or an angel in the form of a giant raven. Lugdana used the holy symbol to root out and destroy nests of vampires until her death. The high priests of Ravenloft kept and wore the holy symbol after Lugdana's passing.\\n   The holy symbol is a platinum amulet shaped like the sun, with a large crystal embedded in its center.\\n   The holy symbol has 10 charges for the following properties. It regains 1d6+4 charges daily at dawn.\\n   \" + toUni(\"Hold Vampires\") + \". As an Action, you can expend 1 charge and present the holy symbol to make it flare with holy power. Vampires and vampire spawn within 30 feet of the holy symbol when it flares must make a DC 15 Wisdom saving throw. On a failed save, a target is paralyzed for 1 minute. It can repeat the saving throw at the end of its turns to end the effect on itself.\\n   \" + toUni(\"Turn Undead\") + \". If you have the Turn Undead or the Turn the Unholy feature, you can expend 3 charges when you present the holy symbol while using that feature. When you do so, undead have disadvantage on their saving throws against the effect.\\n   \" + toUni(\"Sunlight\") + \". As an action, you can expend 5 charges while presenting the holy symbol to make it shed bright light in a 30-foot radius and dim light for an additional 30 feet. The light is sunlight and lasts for 10 minutes or until you end the effect (no action required).\",\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hold Vampires\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"As an action, I can use 1 charge to have all vampires within 30 ft make a DC 15 Wis save\",\r\n\t\t\t\"If failed, a target is paralyzed for 1 minute but can repeat the save at the end of its turns\"\r\n\t\t],\r\n\t\tadditional : \"1 charge\"\r\n\t}]\r\n}\r\nMagicItemsList[\"icon of ravenloft\"] = {\r\n\tname : \"Icon of Ravenloft\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature of good alignment\",\r\n\tprereqeval : function(v) { return (/good/i).test(What(\"Alignment\")); },\r\n\tdescription : \"All within 30 ft of this silver statue are under the effect of Protection from Evil and Good that works against fiends and undead. As an action while attuned to it, I can cast Augury or Cure Wounds (3d8+3, 30 ft range) from it, each once per dawn and if I use it for my Turn Undead, the DC increases by 2.\",\r\n\tdescriptionFull : \"The Icon of Ravenloft is a 12-inch tall statuette made of the purest silver, weighing 10 pounds. It depicts a cleric kneeling in supplication.\\n   The icon was given to Strahd by the archpriest Ciril Romulich, an old family friend, to consecrate the castle and its chapel.\\n   While within 30 feet of the icon, a creature is under the effect of a Protection from Evil and Good spell against fiends and undead. Only a creature attuned to the icon can use its other properties.\\n   \" + toUni(\"Augury\") + \". You can use an action to cast an Augury spell from the icon, with no material components required. Once used, this property can't be used again until the next dawn.\\n   \" + toUni(\"Bane of the Undead\") + \". You can use the icon as a holy symbol while using the Turn Undead or Turn the Unholy feature. If you do so, increase the save DC by 2.\\n   \" + toUni(\"Cure Wounds\") + \". While holding the icon, you can take an action to heal one creature that you can see within 30 feet of you. The target regains 3d8+3 hit points, unless it is an undead, a construct, or a fiend. Once used, this property can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 10,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Icon of Ravenloft [Augury]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Icon of Ravenloft [Cure Wounds]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"All in 30 ft\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"markedbox\"\r\n\t}, {\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"augury\", \"cure wounds\"],\r\n\t\tselection : [\"augury\", \"cure wounds\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"protection from evil and good\" : {\r\n\t\t\trange : \"30-ft rad\",\r\n\t\t\ttime : \"Always\",\r\n\t\t\tdescription : \"All in range immune to fear, charm, and possession by fiends and undead, they also disadv. on attacks\",\r\n\t\t\tduration : \"Unlimited\",\r\n\t\t\tchanges : \"All within 30 ft of the Icon of Ravenloft have this spell protect them from undead and fiends.\"\r\n\t\t},\r\n\t\t\"augury\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Icon of Ravenloft, it only takes an action to cast.\"\r\n\t\t},\r\n\t\t\"cure wounds\" : {\r\n\t\t\trange : \"30 ft\",\r\n\t\t\tdescription : \"1 living creature heals 3d8+3 HP if it not an undead, construct, or fiend\",\r\n\t\t\tdynamicDamageBonus : { doNotProcess : true },\r\n\t\t\tchanges : \"Using the Icon of Ravenloft, it has a range of 30 ft and always heals 3d8+3 HP, but can't affect undead, a construct, or a fiend.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"lost sword\"] = {\r\n\tname : \"Lost Sword\",\r\n\tsource : [[\"CoS\", 81]],\r\n\ttype : \"weapon (shortsword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tprerequisite : \"Requires attunement by a creature of lawful good alignment\",\r\n\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\tdescription : \"This lawful good shortsword is sentient (Int 11, Wis 13, Cha 13). It adds +1 to hit and damage and shines bright light in a 15-ft radius and dim light for an additional 15 ft. Attuning to it takes only 1 minute. Once per dawn, I can use it to cast Crusader's Mantle. Its purpose is to fight evil. See Notes page.\",\r\n\tdescriptionFull : \"The Lost Sword is a sentient lawful good +1 shortsword (Intelligence 11, Wisdom 13, Charisma 13). It has hearing and normal vision out to a range of 120 feet. It communicates by transmitting emotion to the creature carrying or wielding it.\\n   The sword's purpose is to fight evil. The sword has the following additional properties:\\n \\u2022 The sword continually sheds bright light in a 15-foot radius and dim light for an additional 15 feet. Only by destroying the sword can this light be extinguished.\\n \\u2022 A lawful good creature can attune itself to the sword in 1 minute.\\n \\u2022 While attuned to the weapon, the sword's wielder can use the sword to cast the Crusader's Mantle spell. Once used, this property of the sword can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Crusader's Mantle\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"shortsword\",\r\n\t\tregExpSearch : /^(?=.*lost)(?=.*sword).*$/i,\r\n\t\tname : \"Lost Sword\",\r\n\t\tsource : [[\"CoS\", 81]],\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"crusader's mantle\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"The Lost Sword is a sentient lawful good +1 shortsword.\",\r\n\t\t\t\"A lawful good creature can attune itself to the sword in 1 minute.\",\r\n\t\t\t\"It continually sheds bright light in a 15-ft radius and dim light for an additional 15 ft. Only by destroying the sword can this light be extinguished.\",\r\n\t\t\t\"While attuned to the weapon, the sword's wielder can use the sword to cast the Crusader's Mantle spell. Once used, this property of the sword can't be used again until the next dawn.\",\r\n\t\t\t\"It has Intelligence 11, Wisdom 13, and Charisma 13 and can hear and see as a human out to a range of 120 ft. It communicates by transmitting emotion to the creature carrying or wielding it. The sword's purpose is to fight evil.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"saint markovia's thighbone\"] = {\r\n\tname : \"Saint Markovia's Thighbone\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"weapon (mace)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This mace sheds bright light in a 20-ft radius and dim light for another 20 ft while held. Fiends and undead hit with it take +2d6 radiant damage, become frightened of me until my next turn ends, and if below 26 HP after its damage, must make a DC 15 Wis save or die. If it hits an undead, it crumbles after the combat.\",\r\n\tdescriptionFull : \"Saint Markovia's thighbone has the properties of a mace of disruption. If it scores one or more hits against a vampire or a vampire spawn in the course of a single battle, the thighbone crumbles into dust once the battle concludes.\\n   As a youth, Markovia followed her heart and became a priest of the Morninglord soon after her eighteenth birthday. She proved to be a charismatic proselytizer and, before the age of thirty, had gained a reputation for allowing no evil to stand before her.\\n   Markovia had long considered Strahd a mad tyrant, but only after his transformation into a vampire did she dare to challenge him. As she rallied her followers and prepared to march on Castle Ravenloft, Strahd sent a group of vampire spawn to her abbey. They confronted Markovia and were destroyed to a one.\\n   Suffused with confidence born of a righteous victory, Markovia advanced on Castle Ravenloft. A great battle raged from the catacombs to the parapets. In the end, Markovia never returned to Barovia, and Strahd long afterward walked with a limp and a grimace of pain. It is said that he trapped Markovia in a crypt beneath his castle, and her remains linger there yet.\\n   The essence of Markovia's saintliness passed partly into her bones as the rest of her body decomposed. Her remaining thighbone is imbued with power that inflicts grievous injury on the undead.\\n   Mace of Disruption. When you hit a fiend or an undead with this magic weapon, that creature takes an extra 2d6 radiant damage. If the target has 25 hit points or fewer after taking this damage, it must succeed on a DC 15 Wisdom saving throw or be destroyed. On a successful save, the creature becomes frightened of you until the end of your next turn.\\n   While you hold this weapon, it sheds bright light in a 20-foot radius and dim light for an additional 20 feet.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*markovia)(?=.*thighbone).*$/i,\r\n\t\tname : \"Saint Markovia's Thighbone\",\r\n\t\tsource : [[\"CoS\", 222]],\r\n\t\tdescription : \"Fiend/undead +2d6 radiant damage, frightened until my next turn ends, and if HP<26, DC 15 Wis save or die\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"silver dragon shield +2\"] = {\r\n\tname : \"Silver Dragon Shield +2\",\r\n\tsource : [[\"CoS\", 68]],\r\n\ttype : \"shield\",\r\n\trarity : \"rare\",\r\n\tdescription : \"While holding this shield, I have a +2 bonus to AC. This bonus is in addition to the shield's normal bonus to AC. It is emblazoned with a stylized silver dragon that is the emblem of the Order of the Silver Dragon. The shield whispers warnings to me, granting me a +2 bonus to initiative while I am not incapacitated.\",\r\n\tdescriptionFull : \"While holding this shield, you have a +2 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\\n   The shield is emblazoned with a stylized silver dragon that is the emblem of the Order of the Silver Dragon (see Curse of Strahd, chapter 7). The shield whispers warnings to its bearer, granting a +2 bonus to initiative if the bearer isn't incapacitated.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Silver Dragon Shield +2\",\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : 2, text : \"While I carry the Silver Dragon Shield, it whispers warnings to me, granting me a +2 bonus to initiative rolls.\" }]\r\n}\r\nMagicItemsList[\"statuette of saint markovia\"] = {\r\n\tname : \"Statuette of Saint Markovia\",\r\n\tsource : [[\"CoS\", 152]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This golden statuette grants any good-aligned creature that carries it a +1 bonus to saving throws.\",\r\n\tdescriptionFull : \"This golden statuette grants any good-aligned creature that carries it a +1 bonus to saving throws.\",\r\n\taddMod : [{ type : \"save\", field : \"all\", mod : 1, text : \"While I carry the Statuette of Saint Markovia, I gain a +1 bonus to all my saving throws.\" }]\r\n}\r\nMagicItemsList[\"sunsword\"] = {\r\n\tname : \"Sunsword\",\r\n\tsource : [[\"CoS\", 223]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"As a bonus action, I can have this hilt create a blade of radiance. It acts like a longsword with +2 to hit and damage, does radiant damage (+1d8 to undead), has finesse, emits bright sunlight in a 15-ft radius and dim light in another 15 ft. As an action, I can change the light's radius by 5 ft. It is sentient, see Notes page.\",\r\n\tdescriptionLong : \"As a bonus action, I can have this longsword hilt create or dismiss a blade of pure radiance. While the blade exists, it acts like a longsword that has +2 to attack and damage rolls, does radiant damage, and has the finesse property. It deals +1d8 damage to undead and emits sunlight, bright light in a 15-ft radius and dim light in an additional 15-ft radius. As an action, I can expand or reduce both the bright and dim light's radius by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each. I'm proficient with it if I'm proficient with either longswords or shortswords. It is sentient, see Notes page.\",\r\n\tdescriptionFull : \"The Sunsword is a unique blade once possessed by Strahd's brother, Sergei von Zarovich. In its original form, it had a platinum hilt and guard, and a thin crystal blade as strong as steel.\\n   Strahd employed a powerful wizard named Khazan to destroy the weapon after Sergei's death. The first part of the process required the hilt and the blade to be separated, which Khazan accomplished. While Khazan was busying himself destroying the blade, his apprentice stole the hilt and fled. Khazan later located his apprentice's mutilated corpse in the Svalich Woods, but the hilt was nowhere to be found. To avoid the vampire's wrath, Khazan told Strahd that the entire weapon had been destroyed.\\n   The hilt, which is sentient, knows that it can never be reunited with its original crystal blade. It has, however, gained the properties of a sun blade.\\n   While grasping the hilt, you can use a bonus action to cause a blade of pure radiance to spring into existence, or make the blade disappear. While the blade exists, this magic longsword has the finesse property. If you are proficient with shortswords or longswords, you are proficient with the sun blade.\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When you hit an undead with it, that target takes an extra 1d8 radiant damage.\\n   The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the blade persists, you can use an action to expand or reduce its radius of bright and dim light by 5 feet each, to a maximum of 30 feet each or a minimum of 10 feet each.\\n   \" + toUni(\"Sentience\") + \". The Sunsword is a sentient chaotic good weapon with an Intelligence of 11, a Wisdom of 17, and a Charisma of 16. It has hearing and normal vision out to a range of 60 feet. The weapon communicates by transmitting emotions to the creature carrying it or wielding it.\\n   \" + toUni(\"Personality\") + \". The Sunsword's special purpose is to destroy Strahd, not so much because it wants to free the land of Barovia from evil but because it wants revenge for the loss of its crystal blade. The weapon secretly fears its own destruction.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \" (start/stop)\"], [\"action\", \" (change light)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /sunsword/i,\r\n\t\tname : \"Sunsword\",\r\n\t\tsource : [[\"CoS\", 223]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Finesse, versatile (1d10); +1d8 damage to undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.name == \"Sunsword\" && !fields.Proficiency) {\r\n\t\t\t\t\tfields.Proficiency = CurrentProfs.weapon.otherWea && CurrentProfs.weapon.otherWea.finalProfs.indexOf(\"shortsword\") !== -1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"The Sunsword is a unique blade once possessed by Strahd's brother, Sergei von Zarovich. In its original form, it had a platinum hilt and guard, and a thin crystal blade as strong as steel.\",\r\n\t\t\t\"Strahd employed a powerful wizard named Khazan to destroy the weapon after Sergei's death. The first part of the process required the hilt and the blade to be separated, which Khazan accomplished. While Khazan was busying himself destroying the blade, his apprentice stole the hilt and fled. Khazan later located his apprentice's mutilated corpse in the Svalich Woods, but the hilt was nowhere to be found. To avoid the vampire's wrath, Khazan told Strahd that the entire weapon had been destroyed.\",\r\n\t\t\t\"The hilt, which is sentient, knows that it can never be reunited with its original crystal blade. It has, however, gained the properties of a sun blade. While grasping the hilt, I can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, it functions as a magic longsword that has the finesse property. I'm proficient with it if I'm proficient with either shortswords or longswords.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When I hit an undead with it, that target takes an extra 1d8 radiant damage.\",\r\n\t\t\t\"The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 ft. The light is sunlight. As an action while the blade persists, I can expand or reduce its radius of bright and dim light by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each.\",\r\n\t\t\t\"The Sunsword is a sentient chaotic good weapon with an Intelligence of 11, a Wisdom of 17, and a Charisma of 16. It has hearing and normal vision out to a range of 60 feet. The weapon communicates by transmitting emotions to the creature carrying it or wielding it.\",\r\n\t\t\t\"The Sunsword's special purpose is to destroy Strahd, not so much because it wants to free the land of Barovia from evil but because it wants revenge for the loss of its crystal blade. The weapon secretly fears its own destruction\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\n\n// pub_20160906_SKT.js\r\n// This file adds the beasts from the Storm King's Thunder adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.SKT={\r\n\tname : \"Storm King's Thunder [beasts, items]\",\r\n\tabbreviation : \"SKT\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/storm-kings-thunder\",\r\n\tdate : \"2016/09/06\"\r\n};\r\n\r\n// Creatures [Crag Cat removed, because it is a monstrosity according to 2020 errata https://media.wizards.com/2020/dnd/downloads/SKT-Errata.pdf ]\r\nCreatureList[\"ice spider\"] = { // contributed by Nod_Hero\r\n\tname : \"Ice Spider\",\r\n\tnameAlt : [\"Spider, Ice\"],\r\n\tsource : [[\"SKT\", 127]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [14, 16, 12, 2, 11, 4],\r\n\tskills : {\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Blindsight 10 ft; Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 2d8 poison damage, half on a DC 11 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Icy Web (Recharge 5-6)\",\r\n\t\tability : 2,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Restrained\"],\r\n\t\trange : \"30/60 ft\",\r\n\t\tdescription : \"Target can escape as an action with a DC 12 Strength check, or by destroying the webbing (AC 10; 5 HP)\",\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"On a hit, the target is restrained by webbing and takes 1 cold damage at the start of each of its turns. As an action, the restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to poison and psychic damage).\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bite\",\r\n\t\tdescription : \"If the poison damage from the spider's bite attack reduces the target to 0 HP, the target is stable but poisoned for 1 hour, even after regaining HP, and is paralyzed while poisoned in this way.\"\r\n\t}, {\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Web Sense\",\r\n\t\tdescription : \"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.\"\r\n\t}, {\r\n\t\tname : \"Web Walker\",\r\n\t\tdescription : \"The spider ignores movement restrictions caused by webbing.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Icy Web (Recharge 5-6)\",\r\n\t\tdescription : \"See attack. On a hit, the target is restrained by webbing and takes 1 cold damage at the start of each of its turns. As an action, the restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to bludgeoning, poison, and psychic damage).\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Blindsight 10 ft, Darkvision 60 ft.\",\r\n\t\t\"##Bite##. If the poison damage reduces the target to 0 HP, the target is stable but poisoned and paralyzed for 1 hour, even after regaining HP.\",\r\n\t\t\"##Spider Climb##. Climb difficult surfaces, including upside down, without an ability check.\",\r\n\t\t\"##Web Sense##. Knows the exact location of any other creature in contact with the same web.\",\r\n\t\t\"##Web Walker##. No movement restrictions from webbing.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\nCreatureList[\"sheep\"] = {\r\n\tname : \"Sheep\",\r\n\tsource : [[\"SKT\", 142]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 10, 11, 2, 10, 5],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 0,\r\n\tattacks : [],\r\n\ttraits : [{\r\n\t\tname : \"Sure-Footed\",\r\n\t\tdescription : \"The sheep has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\r\n\t}]\r\n};\r\nCreatureList[\"pig\"] = {\r\n\tname : \"Pig\",\r\n\tsource : [[\"SKT\", 143]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 5,\r\n\thd : [1, 8],\r\n\tspeed : \"30 ft\",\r\n\tscores : [13, 11, 12, 2, 9, 5],\r\n\tpassivePerception : 9,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 0,\r\n\tattacks : []\r\n};\r\nCreatureList[\"hulking crab\"] = {\r\n\tname : \"Hulking Crab\",\r\n\tnameAlt : [\"Crab, Hulking\"],\r\n\tsource : [[\"SKT\", 240]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 17,\r\n\thp : 76,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"20 ft, swim 30 ft\",\r\n\tscores : [19, 8, 16, 3, 11, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"stealth\" : 2\r\n\t},\r\n\tsenses : \"Blindsight 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\t\tname : \"Claws\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tmodifiers : [-4, \"\"],\r\n\t\t\tabilitytodamage : false\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Amphibious\",\r\n\t\t\tdescription : \"The hulking crab can breate air and water.\"\r\n\t\t}, {\r\n\t\t\tname : \"Shell Camouflage\",\r\n\t\t\tdescription : \"While the hulking crab remains motionless with its eyestalks and pincers tucked close to its body, it resembles a natural formation or a pile of detritus. A creature within 30 feet of it can discern its true nature with a DC 15 Intelligence (Nature) check.\"\r\n\t\t}\r\n\t]\r\n};\r\nCreatureList[\"tressym\"] = {\r\n\tname : \"Tressym\",\r\n\tsource : [[\"SKT\", 242]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 5,\r\n\thd : [2, 4], //[#, die]\r\n\tspeed : \"40 ft, climb 30 ft, fly 40 ft\",\r\n\tscores : [3, 15, 10, 11, 12, 12], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 15,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Claws\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tmodifiers : [-4, \"\"],\r\n\t\t\tabilitytodamage : false\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Detect Invisibility\",\r\n\t\t\tdescription : \"Within 60 feet of the tressym, magical invisibility fails to conceal anything from the tressym's sight.\"\r\n\t\t}, {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tdescription : \"The tressym has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t\t}, {\r\n\t\t\tname : \"Poison Sense\",\r\n\t\t\tdescription : \"The tressym can detect whether a substance is poisonous by taste, touch, or smell.\"\r\n\t\t}\r\n\t],\r\n\twildshapeString : [\r\n\t\t\"##Languages##. Understands Common but can't speak.\",\r\n\t\t\"##Senses##. Darkvision 60 ft; Advantage on Wisdom (Perception) checks that rely on smell.\",\r\n\t\t\"##Immunities##. Poison damage, poisoned condition.\",\r\n\t\t\"##Detect Invisibility##. Magical invisibility fails to conceal anything from sight, out to 60 ft.\",\r\n\t\t\"##Poison Sense##. Detect whether a substance is poisonous by taste, touch, or smell.\",\r\n\t].join(\"\\n\"),\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"faerie dust\"] = { // contains contributions by Nod_Hero\r\n\tname : \"Faerie Dust\",\r\n\tsource : [[\"SKT\", 35]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"A pinch of this dust can substitute for the material components of any enchantment spell of 3rd level or lower. If a pinch of faerie dust is sprinkled on a creature, roll percentile dice and consult the Faerie Dust Table to determine the effect, see notes.\",\r\n\tdescriptionFull : \"This small pouch contains ten pinches of faerie dust. A pinch of this dust can substitute for the material components of any enchantment spell of 3rd level or lower. If a pinch of faerie dust is sprinkled on a creature, roll percentile dice and consult the Faerie Dust table to determine the effect.\"+\r\n\t\"\\n\\nFaerie Dust Table\"+\r\n\t\"\\n   d100\\tMagical Effect\"+\r\n\t\"\\n  01-70\\tThe creature sprinkled with dust gains a flying\"+\r\n\t\t\"\\n\\tspeed of 60 feet for 10 minutes.\"+\r\n\t\"\\n  71-80\\tThe creature sprinkled with dust must succeed\"+\r\n\t\t\"\\n\\ton a DC 11 Constitution saving throw or fall\"+\r\n\t\t\"\\n\\tunconscious for 1 minute. The creature awakens\"+\r\n\t\t\"\\n\\tif it takes damage or if it is shaken or slapped as\"+\r\n\t\t\"\\n\\tan action.\"+\r\n\t\"\\n  81-90\\tThe creature sprinkled with dust must succeed on\"+\r\n\t\t\"\\n\\ta DC 11 Wisdom saving throw or be affected by a\"+\r\n\t\t\"\\n\\tconfusion spell.\"+\r\n\t\"\\n  91-00\\tThe creature sprinkled with dust becomes\"+\r\n\t\t\"\\n\\tinvisible for 1 hour. Any equipment it is wearing\"+\r\n\t\t\"\\n\\tor carrying is invisible as long as it is on the\"+\r\n\t\t\"\\n\\tcreature's person. The effect on the creature ends\"+\r\n\t\t\"\\n\\tif it attacks, deals any damage, or casts a spell.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Faerie Dust Table\",\r\n\t\tnote : \"\\n   d100 \\tMagical Effect\"+\r\n\t\t\t\"\\n  01-70\\tThe creature sprinkled with dust gains a flying speed of 60 ft\"+\r\n\t\t\t\"\\n\\tfor 10 minutes.\"+\r\n\t\t\t\"\\n  71-80\\tThe creature sprinkled with dust must succeed on a DC 11\"+\r\n\t\t\t\t\"\\n\\tConstitution saving throw or fall unconscious for 1 minute.\"+\r\n\t\t\t\t\"\\n\\tThe creature awakens if it takes damage or if it is shaken or slapped\"+\r\n\t\t\t\t\"\\n\\tas an action.\"+\r\n\t\t\t\"\\n  81-90\\tThe creature sprinkled with dust must succeed on a DC 11 Wisdom\"+\r\n\t\t\t\t\"\\n\\tsaving throw or be affected by a confusion spell.\"+\r\n\t\t\t\"\\n  91-00\\tThe creature sprinkled with dust becomes invisible for 1 hour.\"+\r\n\t\t\t\t\"\\n\\tAny equipment it is wearing or carrying is invisible as long as it is on\"+\r\n\t\t\t\t\"\\n\\tthe creature's person. The effect on the creature ends if it attacks,\"+\r\n\t\t\t\t\"\\n\\tdeals any damage, or casts a spell.\"\r\n\t}],\r\n\tusages : 10,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"banner of the krig rune\"] = {\r\n\tname : \"Banner of the Krig Rune\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, I can furl or unfurl this 5 ft by 3 ft banner. While it is unfurled and I'm attuned to it, I can use its magical properties to see invisible creatures, and each once per short rest emanate courage or protect from ranged attacks. I can even transfer them over to a place, destroying the banner in the process. See Notes.\",\r\n\tdescriptionFull : \"Crafted from a thick, red fabric, this banner measures 5 feet high and 3 feet wide. The krig (war) rune is displayed on the fabric with round, metal plates sewn into it. It can be attached to a 10-foot pole to serve as a standard. Furling or unfurling the banner requires an action. The banner has the following properties.\\n   \" + toUni(\"Mark of Courage\") + \". As a bonus action, you can touch the unfurled banner and cause it to emanate courage. You and your allies are immune to the frightened condition while within 20 feet of it. This benefit lasts for 10 minutes or until the banner is furled. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Sentinel Standard\") + \". You can see invisible creatures while they are within 20 feet of the unfurled banner and within your line of sight.\\n   \" + toUni(\"Standard's Shield\") + \". As a bonus action, you can touch the unfurled banner and invoke this power. Any ranged attack roll that targets you or an ally of yours has disadvantage if the target is within 20 feet of the unfurled banner. This benefit lasts for 1 minute or until the banner is furled. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Battle\") + \". You can transfer the banner's magic to a place by tracing the krig rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 500-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the banner to be within 5 feet of you and during which you choose creatures, creature types, or both that will benefit from the magic. At the end, the banner is destroyed, and the area gains the following property:\\n   While in the 500-foot-radius sphere, the creatures you chose during the transfer process are immune to the frightened condition and gain a +1 bonus to attack rolls and AC.\",\r\n\tattunement : true,\r\n\taction : [\r\n\t\t[\"bonus action\", \"Mark of Courage (Krig Banner)\"],\r\n\t\t[\"bonus action\", \"Standard's Shield (Krig Banner)\"]\r\n\t],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Mark of Courage (Krig Banner)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}, {\r\n\t\tname : \"Standard's Shield (Krig Banner)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"Crafted from a thick, red fabric, this banner measures 5 ft high and 3 ft wide. The krig (war) rune is displayed on the fabric with round, metal plates sewn into it. It can be attached to a 10-ft pole to serve as a standard. Furling or unfurling the banner requires an action. The banner has the following properties.\",\r\n\t\t\t\"As a bonus action, I can touch the unfurled banner and use the Mark of Courage, have it emanate courage. Me and my allies are immune to the frightened condition while within 20 ft of it. This benefit lasts for 10 minutes or until the banner is furled. Once I use this property, I can't use it again until I finish a short or long rest.\",\r\n\t\t\t\"I can see invisible creatures while they are within 20 ft of the unfurled banner and within my line of sight.\",\r\n\t\t\t\"As a bonus action, I can touch the unfurled banner and invoke the Standard's Shield power. While within 20 ft of the unfurled banner, me an my allies are protected from ranged attacks. Any ranged attack roll targetting those protected has disadvantage. This benefit lasts for 1 minute or until the banner is furled. Once I use this property, I can't use it again until I finish a short or long rest.\\n\",\r\n\t\t\t\"I can transfer the banner's magic to a place by tracing the krig rune on the ground with my finger. The point where I trace it becomes the center of a spherical area of magic that has a 500-ft radius and that is fixed to the place. The transfer takes 8 hours of work that requires the banner to be within 5 ft of me and during which I choose creatures, creature types, or both that will benefit from the magic. At the end, the banner is destroyed, and the creatures I chose during the transfer process are immune to the frightened condition and gain a +1 bonus to attack rolls and AC while within the area.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"blod stone\"] = {\r\n\tname : \"Blod Stone\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"As an action while I carry this diamond with the blod rune, I can divine the location of the creature nearest to me that is related to the blood in the item and that isn't undead. I sense the distance and direction of the creature. The diamond is worth at least 5000 gp. If it is destroyed, the blood inside evaporates.\",\r\n\tdescriptionFull : \"This diamond contains the blood of a creature\\u2014blood that appears in the form of the blod (blood) rune. While the item is on your person, you can use your action to divine the location of the creature nearest to you that is related to the blood in the item and that isn't undead. You sense the distance and direction of the creature relative to your location. The creature is either the one whose blood is in the item or a blood relative.\\n   This item is made from a large diamond worth at least 5,000 gp. When the blood of a creature is poured onto it during the creation process, the blood seeps into the heart of the gem. If the gem is destroyed, the blood evaporates and is gone forever. A vengeful being might use a blod stone to hunt down an entire bloodline. Such stones are sometimes given as gifts to siblings or handed down from parent to child.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"claw of the wyrm rune\"] = {\r\n\tname : \"Claw of the Wyrm Rune\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This silvered dragon's claw gives me resistance to dragon breath weapons. As an action 3 times per dawn, I can have a dragon within 30 ft make a DC 15 Con save or gain vulnerability to all damage types until the end of my next turn. I can transfer its magic to a place, destroying the claw in the process. See book.\",\r\n\tdescriptionFull : \"This dragon's claw has been covered with a coat of molten silver, upon which has been inscribed the wyrm (dragon) rune. The claw has the following properties.\\n   \" + toUni(\"Wyrmslayer\") + \". As an action, you can point the claw at a dragon within 30 feet of you. The dragon must then succeed on a DC 15 Constitution saving throw or gain vulnerability to all damage types until the end of your next turn. This property can be used three times. The claw regains all expended uses at the next dawn.\\n   \" + toUni(\"Wyrm Shield\") + \". While the claw is displayed on your person, you have resistance to the damage caused by any dragon's breath weapon.\\n   \" + toUni(\"Wyrm Ward\") + \". You can transfer the c1aw's magic to a place by tracing the wyrm rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 100-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the claw to be within 5 feet of you. At the end, the claw is destroyed, and the area gains the following property:\\n   While in the 100-foot-radius sphere, any dragon has disadvantage on saving throws and can have a flying speed no higher than 10 feet.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Dragon Breath Weapons\"],\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"conch of teleportation\"] = {\r\n\tname : \"Conch of Teleportation\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This 2.5 ft conch shell is inscribed with the uvar rune. As an action once per dawn, I can blow into the shell, teleporting myself and up to 8 willing creatures to a predetermined location without any chance of mishap. The location is determined at creation of the item and can't be changed.\",\r\n\tdescriptionFull : \"This item is an ordinary, albeit rather large, conch shell that has been inscribed with the uvar rune. The conch measures 2\\xBD feet long and weighs 20 pounds.\\n   As an action, you can cast the Teleport spell by blowing into the shell. The destination is fixed, and there is no chance of either a mishap or the spell being off target. Anyone teleported by the conch appears in a specific location designated by the item's creator at the time the uvar rune is inscribed on the conch. It doesn't allow teleportation to any other destination. Once its spell is cast, the conch can't be used again until the next dawn.\",\r\n\tweight : 20,\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"gavel of the venn rune\"] = {\r\n\tname : \"Gavel of the Venn Rune\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This wooden gavel imposes disadv. on attacks against me before my first turn in a combat. As an action once per long rest, I can strike it on a hard surface and have the first creature that deals damage with an attack within 60 ft of the strike take half that damage itself as psychic damage. Can transfer rune, see book.\",\r\n\tdescriptionFull : \"This wooden gavel is small by giant reckoning but nearly the size of a warhammer in human hands. The venn (friend) rune is inscribed in mithral in the base of the haft. Among giants, this item is used as part of rituals to resolve disputes. The gavel has the following properties.\\n   \" + toUni(\"Arbiters Shield\") + \". At the start of every combat, attack rolls against you have disadvantage before the start of your first turn, provided that the gavel is on your person.\\n   \" + toUni(\"Bond of Amity\") + \". As an action, you can use the gavel to strike a point on a hard surface. The first time in the next minute that a creature within 60 feet of that point deals damage to another creature with an attack that hits, the attacker takes psychic damage equal to half the damage it dealt to the target. Once you use this property, you can't use it again until you finish a long rest.\\n   \" + toUni(\"Gift of Truth\") + \". You can transfer the gavel's magic to a place by tracing the venn rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 30-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the gavel to be within 5 feet of you. At the end, the gavel is destroyed, and the area gains the following property:\\n   Whenever a creature utters a lie while within the 30-foot-radius sphere, that creature takes 5 psychic damage and flinches visibly.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n}\r\nMagicItemsList[\"gurt's greataxe\"] = {\r\n\tname : \"Gurt's Greataxe\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This giant-sized greataxe adds +1 to hit and damage and deals 3d12 slashing damage (+2d12 vs. humans). When in an area that is below 0 \\u00B0F, it sheds bright light in a 20-ft radius and dim light for another 20 ft. As an action once per dawn, I can use it to cast Heat Metal (DC 13) that deals cold damage instead of fire.\",\r\n\tdescriptionFull : \"In the Year of the Icy Axe (123 DR), the frost giant Lord Gurt fell to Uthgar Gardolfsson\\u2014leader of the folk who would become the Uthgardt barbarians\\u2014in a battle that marked the ascendance of humankind over the giants in the Dessarin Valley. Gurt's greataxe was buried in Morgur's Mound until it was unearthed and brought back to Waterdeep. After laying in the city's vaults for decades, the axe was given to Harshnag, a frost giant adventurer, in recognition of his service to Waterdeep. Uthgardt barbarians recognize the weapon on sight and attack any giant that wields it.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. It is sized for a giant, weighs 325 pounds, and deals 3d12 slashing damage on a hit, plus an extra 2d12 slashing damage if the target is human.\\n   The axe sheds light as a torch when the temperature around it drops below 0 degrees Fahrenheit. The light can't be shut off in these conditions.\\n   As an action, you can cast a version of the Heat Metal spell (save DC 13) that deals cold damage instead of fire damage. Once this power is used, it can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 325,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /^(?=.*gurt)(?=.*greataxe).*$/i,\r\n\t\tname : \"Gurt's Greataxe\",\r\n\t\tsource : [[\"SKT\", 234]],\r\n\t\tdamage : [3, 12, \"slashing\"],\r\n\t\tweight : 325,\r\n\t\tdescription : \"Heavy, two-handed; +2d12 damage against humans\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tfixedDC : 13,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Deals cold damage\",\r\n\t\tspells : [\"heat metal\"],\r\n\t\tselection : [\"heat metal\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"heat metal\" : {\r\n\t\t\tdescription : \"1 metal obj on touch 2d8 Cold dmg; save or drop obj; if held: dis. atk/chk; bns a cool obj again\",\r\n\t\t\tdescriptionShorter : \"1 metal obj, touch it 2d8 Cold dmg; save or drop it; if held: dis. atk/chk; bns a redo\",\r\n\t\t\tchanges : \"Using Gurt's Greataxe, the spell deals cold damage instead of fire.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"ingot of the skold rune\"] = {\r\n\tname : \"Ingot of the Skold Rune\",\r\n\tsource : [[\"SKT\", 234]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the ingot as it is, or transfer its runic properties over to a shield or two-handed melee weapon.\",\r\n\tdescriptionFull : \"This appears to be a simple ingot of iron ore, about a foot long and a few inches across. Inspection of its surface reveals the faint, silvery outline of the skold (shield) rune. The ingot has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Runic Shield\") + \". You have a +1 bonus to AC.\\n   \" + toUni(\"Shield Bond\") + \". As a bonus action, choose a creature that you can see within 30 feet of you, other than yourself. Until the end of your next turn, any damage the target takes is reduced to 1, but you take half the damage prevented in this way. The damage you take can't be reduced in any way. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Shield Ward\") + \". You can transfer the ingot's magic to a nonmagical item\\u2014a shield or a two-handed melee weapon-by tracing the skold rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the ingot is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Shield\") + \". The shield is now a rare magic item that requires attunement. Its magic gives you a +1 bonus to AC, and the first time after each of your long rests that damage reduces you to 0 hit points, you are instead reduced to 1 hit point. You must be wielding the shield to gain these benefits.\\n \\u2022 \" + toUni(\"Weapon\") + \". The weapon is now an uncommon magic weapon. It grants you a +1 bonus to AC while you're holding it.\",\r\n\tchoices : [\"Ingot\", \"Transferred to a shield\", \"Transferred to a two-handed melee weapon\"],\r\n\t\"ingot\" : {\r\n\t\tname : \"Ingot of the Skold Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This iron ingot gives me +1 AC. As a bonus action, I can use it to choose a creature within 30 ft other than myself. Until the end of my next turn, any damage it takes is reduced to 1, but I take half the prevented damage and this damage can't be reduced in any way. I can transfer the rune to a shield or weapon, see book.\",\r\n\t\tattunement : true,\r\n\t\textraAC : [{name : \"Skold Rune\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t},\r\n\t\"transferred to a shield\" : {\r\n\t\tname : \"Skold Rune Shield\",\r\n\t\tsortname : \"Rune Shield, Skold\",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This shield gives my +1 AC on top of its normal bonus to AC. While carrying it, the first time after a long rest that damage reduces me to 0 HP, I drop to 1 HP instead.\",\r\n\t\tshieldAdd : [\"Skold Rune Shield\", 3, 6],\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t},\r\n\t\"transferred to a two-handed melee weapon\" : {\r\n\t\tname : \"Skold Rune Weapon\",\r\n\t\tsortname : \"Rune Weapon, Skold\",\r\n\t\ttype : \"weapon (any two-handed melee)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic weapon grants me a +1 bonus to AC.\",\r\n\t\textraAC : [{name : \"Skold Rune\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Skold Rune\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !(/melee/i).test(inObj.range) || !(/((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b/i).test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*\\bskold\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Skold Rune\" in the name of a weapon, it will be treated as the magic weapon Skold Rune Weapon.'\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"korolnor scepter\"] = {\r\n\tname : \"Korolnor Scepter\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"weapon (club)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This tapered mithral rod the size of a dwarf's forearm has 10 charges, regaining 1d6+4 at dawn. It can be wielded as a +3 club. As an action while below sea level, I can expend 1 charge to determine the distance to the surface. I can also use the charges to cast Sending (2 charges) and Teleport (3 charges).\",\r\n\tdescriptionFull : \"The Korolnor Scepter is one of ten Ruling Scepters of Shanatar, forged by the dwarven gods and given to the ruling houses of the ancient dwarven empire. The Korolnor Scepter's location was unknown for the longest time until a storm giant queen, Neri, found it in a barnacle-covered shipwreck at the bottom of the Trackless Sea. The Ruling Scepters are all roughly the same size and shape, but their materials and properties vary.\\n   The Korolnor Scepter is a tapered mithral rod as thick and long as a dwarf's forearm, with a small platinum knob at the bottom and a rounded disk adorned with a ring of seven tiny blue gems at the top.\\n   You gain a +3 bonus to attack and damage rolls made with this scepter, which can be wielded as a magic club.\\n   You can use the properties of the Wyrmskull Throne, as well as the properties of the scepter itself. The scepter has 10 charges, and it regains 1d6+4 expended charges at dawn. Its properties are as follows.\\n   If you are underground or underwater, you can use an action to expend 1 charge to determine the distance to the surface.\\n   As an action: you can expend 2 charges to cast the Sending spell from the scepter.\\n   As an action: you can expend 3 charges to cast the Teleport spell from the scepter. If the destination is within 60 feet of the Wyrmskull Throne, there is no chance of a teleport error or mishap occurring.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"teleport\"],\r\n\t\tselection : [\"teleport\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"club\",\r\n\t\tregExpSearch : /^(?=.*korolnor)(?=.*scepter).*$/i,\r\n\t\tname : \"Korolnor Scepter\",\r\n\t\tsource : [[\"SKT\", 234]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"navigation orb\"] = {\r\n\tname : \"Navigation Orb\",\r\n\tsource : [[\"SKT\", 235]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This hollow 7-ft diameter sphere of thin, polished mithral bears the skye rune and is keyed to a particular cloud castle. It only works while within that castle. As an action while touching it, I can use it to move the cloud castle 1 mph until commanded otherwise, have it stop, or turn 90 degrees.\",\r\n\tdescriptionFull : \"A navigation orb is a hollow, 7-foot-diameter sphere of thin, polished mithral with a large skye (cloud) rune embossed on its outer surface. The orb levitates 10 feet above the ground and is keyed to a particular cloud castle, allowing you to control that castle's altitude and movement while the orb is inside the castle. If the orb is destroyed or removed from its castle, the castle's altitude and location remain fixed until the orb is returned or replaced.\\n   As an action, you can cause one of the following effects to occur if you are touching the orb:\\n   The castle moves at a speed of 1 mph in a straight line, in a direction of your choice, until the castle stops or is made to stop, or until another action is used to change its direction. If this movement brings the castle into contact with the ground, the castle lands gently.\\n   The castle, if it is moving, comes to a gradual stop.\\n   The castle makes a slow, 90-degree turn clockwise or counterclockwise (turning a northerly view into a westerly view, for example). The castle can turn while it is moving in a straight line.\\n   Any creature touching the orb knows the altitude of the base of the castle above the ground or water below it.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"opal of the ild rune\"] = {\r\n\tname : \"Opal of the Ild Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I can use the opal as it is, or transfer its runic properties over to a suit of armor or weapon.\",\r\n\tdescriptionFull : \"This triangular fire opal measures about three inches on each side and is half an inch thick. The ild (fire) rune shimmers within its core, causing it to be slightly warm to the touch. The opal has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Ignite\") + \". As an action, you can ignite an object within 10 feet of you. The object must be flammable, and the fire starts in a circle no larger than 1 foot in diameter.\\n   \" + toUni(\"Fires Friend\") + \". You have resistance to cold damage.\\n   \" + toUni(\"Fire Tamer\") + \". As an action, you can extinguish any open flame within 10 feet of you. You choose how much fire to extinguish in that radius.\\n   \" + toUni(\"Gift of Flame\") + \". You can transfer the opal's magic to a nonmagical item\\u2014a weapon or a suit of armor\\u2014by tracing the ild rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the opal is destroyed, and the rune appears in red on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Weapon\") + \". The weapon is now an uncommon magic weapon. It deals an extra 1d6 fire damage to any target it hits.\\n \\u2022 \" + toUni(\"Armor\") + \". The armor is now a rare magic item that requires attunement. You have resistance to cold damage while wearing the armor.\",\r\n\tchoices : [\"Opal\", \"Transferred to a suit of armor\", \"Transferred to a weapon\"],\r\n\t\"opal\" : {\r\n\t\tname : \"Opal of the Ild Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This triangular fire opal gives me resistance to cold damage. As an action, I can use it to extinguish any open flames of my choice within 10 ft, or I can ignite a flammable object within 10 ft with a fire up to 1 ft in diameter. I can undertake an 8 hour ritual to transfer the rune to a suit of armor or weapon, see book.\",\r\n\t\tattunement : true,\r\n\t\tdmgres : [\"Cold\"],\r\n\t\taction : [[\"action\", \"\"]]\r\n\t},\r\n\t\"transferred to a suit of armor\" : {\r\n\t\tname : \"Ild Rune Armor\",\r\n\t\tsortname : \"Rune Armor, Ild\",\r\n\t\ttype : \"armor (any)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This magic armor gives me resistance to cold damage.\",\r\n\t\tattunement : true,\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Ild Rune\"]\r\n\t\t}\r\n\t},\r\n\t\"transferred to a weapon\" : {\r\n\t\tname : \"Ild Rune Weapon\",\r\n\t\tsortname : \"Rune Weapon, Ild\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic weapon deals +1d6 fire damage to any target it hits.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Ild Rune\"]\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*\\bild\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 fire damage';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Ild Rune\" in a the name of a weapon, it will be treated as the magic weapon Ild Rune Weapon, which deals +1d6 fire damage.'\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"orb of the stein rune\"] = {\r\n\tname : \"Orb of the Stein Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I can use the orb as it is, or transfer its runic properties over to a shield or pair of boots.\",\r\n\tdescriptionFull : \"This orb of granite is about the size of an adult human's fist. The stein (stone) rune appears on it in the form of crystalline veins that run across the surface. The orb has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Indomitable Stand\") + \". As an action, you can channel the orb's magic to hold your ground. For the next minute or until you move any distance, you have advantage on all checks and saving throws to resist effects that force you to move. In addition, any enemy that moves to a space within 10 feet of you must succeed on a DC 12 Strength saving throw or be unable to move any farther this turn.\\n   \" + toUni(\"Stone Soul\") + \". You can't be petrified.\\n   \" + toUni(\"Earthen Step\") + \". You can cast Meld into Stone as a bonus action. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Stone\") + \". You can transfer the orb's magic to a nonmagical item\\u2014a shield or a pair of boots\\u2014by tracing the stein rune there with your finger. The transfer takes8 hours of work that requires the two items to be within 5 feet of each other. At the end, the orb is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Shield\") + \". The shield is now a rare magic item that requires attunement. While you wield it, you have resistance to all damage dealt by ranged weapon attacks.\\n \\u2022 \" + toUni(\"Boots\") + \". The pair of boots is now an uncommon magic item that requires attunement. While you wear the boots, you have advantage on Strength saving throws, and you can use your reaction to avoid being knocked prone.\",\r\n\tchoices : [\"Orb\", \"Transferred to a shield\", \"Transferred to a pair of boots\"],\r\n\t\"orb\" : {\r\n\t\tname : \"Orb of the Stein Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This orb gives me petrification immunity. As a bonus action once per short rest, I can cast Meld Into Stone. As an action, I can hold my ground for 1 min or until I move any distance, giving me adv. on saves/checks vs. moving and enemies moving to a space in 10 ft must make a DC 12 Str save or have speed 0 for this turn.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { immune : [\"petrified\"] },\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"meld into stone\"],\r\n\t\t\tselection : [\"meld into stone\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"meld into stone\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\tchanges : \"Using the Orb of the Stein Rune, I can cast this as a bonus action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a shield\" : {\r\n\t\tname : \"Stein Rune Shield\",\r\n\t\tsortname : \"Rune Shield, Stein\",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This shield gives me resistance to all damage dealt by range weapon attack.\",\r\n\t\tattunement : true,\r\n\t\tshieldAdd : \"Stein Rune Shield\",\r\n\t\tdmgres : [\"Ranged Weapon Attacks\"]\r\n\t},\r\n\t\"transferred to a pair of boots\" : {\r\n\t\tname : \"Stein Rune Boots\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"These pair of boots give me advantage on Strength saving throws. As a reaction, I can avoid being knocked prone.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { text : [\"Adv. on Str saves\"] },\r\n\t\tadvantages : [\"Strength\", true],\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t}\r\n}\r\nMagicItemsList[\"pennant of the vind rune\"] = {\r\n\tname : \"Pennant of the Vind Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the pennant as it is, or transfer its runic properties over to a suit of armor, pair of boots, or cloak.\",\r\n\tdescriptionFull : \"This blue pennant is crafted from silk and is five feet long and whips about as if buffeted by a wind. The vind (wind) rune appears on its surface, looking almost like a cloud. The pennant has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Wind Step\") + \". As an action, you fly up to 20 feet. If you don't land at the end of this flight, you fall unless you have another means of staying aloft.\\n   \" + toUni(\"Comforting Wind\") + \". You can't suffocate.\\n   \" + toUni(\"Winds Grasp\") + \". As a reaction when you fall, you can cause yourself to take no damage from the fall. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Wind Walker\") + \". While you are attuned to this rune, you can cast Levitate as a bonus action. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Wind\") + \". You can transfer the pennant's magic to a nonmagical item\\u2014a suit of armor, a pair of boots, or a cloak\\u2014by tracing the vind rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the pennant is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Armor\") + \". The armor is now an uncommon magic item that requires attunement. You gain a bonus to speed of 5 feet while you wear the armor, and if it normally imposes disadvantage on Stealth checks, it no longer does so.\\n \\u2022 \" + toUni(\"Boots/Cloak\") + \". The pair of boots or cloak is now a rare magic item that requires attunement. While wearing the item, you can convert up to 20 feet of your movement on each of your turns into flight. If you don't land at the end of this flight, you fall unless you have another means of staying aloft. You can also cast Feather Fall once from the item, and you regain the ability to do so when you finish a short or long rest.\",\r\n\tchoices : [\"Pennant\", \"Transferred to a suit of armor\", \"Transferred to a pair of boots or cloak\"],\r\n\t\"pennant\" : {\r\n\t\tname : \"Pennant of the Vind Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This blue pennant stops me from suffocating. As an action, I can fly up to 20 ft, but won't stay aloft at the end of it. As a reaction once per short rest when I fall, I can use Wind Grasp to take no damage from the fall. As a bonus action once per short rest, I can cast Levitate. I can transfer this rune, see book.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { immune : [\"suffocation\"] },\r\n\t\taction : [\r\n\t\t\t[\"action\", \"Wind Step (Vind Rune)\"],\r\n\t\t\t[\"reaction\", \"Winds Grasp (Vind Rune)\"]\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Levitate (Vind Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Winds Grasp (Vind Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"levitate\"],\r\n\t\t\tselection : [\"levitate\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"levitate\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\tchanges : \"Using the Pennant of the Vind Rune, I can cast this as a bonus action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a suit of armor\" : {\r\n\t\tname : \"Vind Rune Armor\",\r\n\t\tsortname : \"Rune Armor, Vind\",\r\n\t\ttype : \"armor (any)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic armor doesn't impose disadvantage on stealth checks and gives me a 5 ft bonus to my speed.\",\r\n\t\tattunement : true,\r\n\t\tspeed : { allModes : { bonus : \"+5\" } },\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Vind Rune\"],\r\n\t\t\tnoStealthDis : /^(?=.*\\bvind)(?=.*rune\\b).*$/i\r\n\t\t}\r\n\t},\r\n\t\"transferred to a pair of boots or cloak\" : {\r\n\t\tname : \"Vind Rune Boots or Cloak\",\r\n\t\tnameAlt : \"Vind Rune Boots\",\r\n\t\tnameTest : \"Vind Rune Cloak\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing this item, I can convert up to 20 ft of my movement on each of my turns into flight. If I don't land at the end of this flight, I fall unless I have other means of staying aloft. Once per short rest, I can use this item to cast Feather Fall.\",\r\n\t\tattunement : true,\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"feather fall\"],\r\n\t\t\tselection : [\"feather fall\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"potion of giant size\"] = {\r\n\tname : \"Potion of Giant Size\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"potion\",\r\n\trarity : \"legendary\",\r\n\tdescription : \"Once as an action, I can drink this potion of pale white liquid or administer it to another to grow to Huge for 24 hours. This gives Str 25, +5 ft reach, double max HP (current HP also doubles), and roll three times damage die for weapons. When its effect ends, HP above the max HP becomes temporary HP.\",\r\n\tdescriptionFull : \"When you drink this potion, you become Huge for 24 hours if you are Medium or smaller, otherwise the potion does nothing. For that duration, your Strength becomes 25, if it isn't already higher, and your hit point maximum is doubled (your current hit points are doubled when you drink the potion). In addition, the reach of your melee attacks increases by 5 feet.\\n   Everything you are carrying and wearing also increases in size for the duration. When rolling damage for weapons enlarged in this manner, roll three times the normal number of dice; for example, an enlarged longsword would deal 3d8 slashing damage (instead of1d8), or 3d10 slashing damage (instead of 1d10) when used with two hands.\\n   When the effect ends, any hit points you have above your hit point maximum become temporary hit points. This potion is a pale white liquid made from the tongue of a giant clam, with a pungent aroma akin to that of rotting algae. It tastes sweet, however, when consumed.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"robe of serpents\"] = {\r\n\tname : \"Robe of Serpents\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"As a bonus action, I can remove one of the 1d4+3 emblazoned, brightly colored snakes from this robe and have it turn into a giant poisonous snake within 5 ft of me. It acts on my initiative and attacks those hostile to me. It disappears after 1 hour, when it drops to 0 HP, or when I dismiss it (no action).\",\r\n\tdescriptionFull : \"A robe of serpents is a stylish silk garment that is popular among wealthy nobles and retired assassins. The robe is emblazoned with 1d4+3 stylized serpents, all brightly colored.\\n   As a bonus action on your turn, you can transform one of the robe's serpents into a giant poisonous snake. The snake instantly falls from the robe, slithers into an unoccupied space next to you, and acts on your initiative count. The snake can tell friendly creatures from hostile ones and attacks the latter. The snake disappears in a harmless puff of smoke after 1 hour, when it drops to 0 hit points, or when you dismiss it (no action required). Once detached, a snake can't return to the robe. When all of the robe's snakes have detached, the robe becomes a nonmagical garment.\",\r\n\tattunement : true,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"1d4+3\",\r\n\trecovery : \"Never\"\r\n}\r\nMagicItemsList[\"rod of the vonindod\"] = {\r\n\tname : \"Rod of the Vonindod\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"rod\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This 4 ft adamantine rod sized for a giant has 10 charges and regains 1d6+4 expended charges daily at dawn. I can expend 1 charge to cast Locate Object from it which has a range of 10 miles when used to locate objects made of adamantine. It has two prongs at one end and a molded handle grip on the other.\",\r\n\tdescriptionFull : \"The fire giant Duke Zalto hired a wizard to craft several of these adamantine rods. Each measures 4 feet long, weighs 100 pounds, and is sized to fit comfortably in a fire giant's hand. The rod has two prongs at one end and a molded handle grip on the opposite end.\\n   The rod has 10 charges and regains 1d6+4 of its expended charges daily at dawn. As an action, you can grasp it by the handle and expend 1 charge to cast the Locate Object spell from it. When the rod is used to detect objects made of adamantine, such as fragments of the Vonindod construct, its range increases to 10 miles.\",\r\n\tweight : 100,\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"locate object\"],\r\n\t\tselection : [\"locate object\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"locate object\" : {\r\n\t\t\tdescription : \"Learn direction to closest described kind or specific obj in 1000 ft (10 miles if adamantine); see book\",\r\n\t\t\tchanges : \"Using the Rod of the Vonindod, the spell detection range increases to 10 miles when used to locate adamantine objects.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"shard of the ise rune\"] = {\r\n\tname : \"Shard of the Ise Rune\",\r\n\ttype : \"wondrous item\",\r\n\tsource : [[\"SKT\", 236]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the shard as it is, or transfer its runic properties over to a cloak or a pair of boots.\",\r\n\tdescriptionFull : \"This shard of ice is long and slender, roughly the size of a dagger. The ise (ice) rune glows within it. The shard has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Frigid Touch\") + \". As an action, you can touch a body of water and freeze the water in a 10-foot-radius sphere around the spot you touched. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Frost Friend\") + \". You have resistance to fire damage.\\n   \" + toUni(\"Icy Mantle\") + \". As an action, you can touch yourself or another creature with water on your finger. The water creates an icy mantle of protection. The next time within the next minute that the target takes bludgeoning, slashing, or piercing damage, that damage is reduced to 0, and the mantle is destroyed. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Winter's Howl\") + \". As an action, you can cast Sleet Storm (spell save DC 17). You regain this ability after you finish a short or long rest.\\n   \" + toUni(\"Gift of Frost\") + \". You can transfer the shard's magic to a nonmagical item\\u2014a cloak or a pair of boots-by tracing the ise rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the shard is destroyed, and the rune appears in blue on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Cloak\") + \". The cloak is now a rare magic item that requires attunement. While wearing it, you have resistance to fire damage, and you have advantage on Dexterity (Stealth) checks made while in snowy terrain.\\n \\u2022 \" + toUni(\"Boots\") + \". The pair of boots is now a rare magic item that requires attunement. While wearing it, you ignore difficult terrain while walking, and you can walk on water.\",\r\n\tattunement : true,\r\n\tchoices : [\"Shard\", \"Transferred to a cloak\", \"Transferred to a pair of boots\"],\r\n\t\"shard\" : {\r\n\t\tname : \"Shard of the Ise Rune \",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This shard of ice gives me fire resistance. As an action, I can use Frigid Touch, freezing water in a 10-ft radius where I touch it, or Icy Mantle, to prevent the first bludgeoning, slashing, or piercing damagein the next minute for a creature I touch. I can use it to cast Sleet Storm (DC 17). I can do all 3 each once per short rest.\",\r\n\t\tdmgres : [\"Fire\"],\r\n\t\taction : [\r\n\t\t\t[\"action\", \"Frigid Touch (Ise Rune)\"],\r\n\t\t\t[\"action\", \"Icy Mantle (Ise Rune)\"]\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Frigid Touch (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Icy Mantle (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Sleet Storm (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}],\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"sleet storm\"],\r\n\t\t\tselection : [\"sleet storm\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}]\r\n\t},\r\n\t\"transferred to a cloak\" : {\r\n\t\tname : \"Ise Rune Cloak\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing this cloak, I have resistance to fire damage, and I have advantage on Dexterity (Stealth) checks made while in snowy terrain.\",\r\n\t\tdmgres : [\"Fire\"]\r\n\t},\r\n\t\"transferred to a pair of boots\" : {\r\n\t\tname : \"Ise Rune Boots\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing these boots, I ignore difficult terrain while walking, and I can walk on water.\"\r\n\t}\r\n}\r\nMagicItemsList[\"ring of hardened magma\"] = {\r\n\tname : \"Ring of Hardened Magma\",\r\n\tsource : [[\"SKT\", 105]], // Raven Rock ancient relic\r\n\ttype : \"ring\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"Warm orange light spills from minuscule cracks that form on this rings outer surface. It automatically resizes to fit the creature attuned to it. It has 6 charges which can be used to cast Conjure Minor Elementals (summoning 4 magma mephits or 4 magmins) or Fire Shield (warm shield version only), costing 1 charge each.\",\r\n\tdescriptionFull : \"This ring is sized for a fire giant's finger. When a creature attunes to the ring, it magically shrinks to fit that creature's index finger, and warm orange light spills from minuscule cracks that form on its outer surface. The ring has 6 charges. While attuned to the ring, a creature can expend 1 charge to cast conjure minor elementals (summoning either four magma mephits or four magmins, as the wearer wishes) or fire shield (warm shield version only) from the ring. Once all of its charges are spent, the ring loses its spellcasting properties but retains its resizing property.\",\r\n\tattunement : true,\r\n\tusages : 6,\r\n\trecovery : \"Never\",\r\n\tspellcastingAbility : \"class\", // https://www.sageadvice.eu/2015/11/27/hat-of-disguise-dc/\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"conjure minor elementals\", \"fire shield\"],\r\n\t\tselection : [\"conjure minor elementals\", \"fire shield\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"conjure minor elementals\" : {\r\n\t\t\tdescription : \"Summon 4 magma mephits or 4 magmins that obey my verbal commands\",\r\n\t\t\tchanges : \"Using the Ring of Hardened Magma, the spell summons either four magma mephits or four magmins.\"\r\n\t\t},\r\n\t\t\"fire shield\" : {\r\n\t\t\tdescription : \"Fiery shield gives resistance to Cold damage and deals 2d8 Fire damage to melee attackers\",\r\n\t\t\tdynamicDamageBonus : false,\r\n\t\t\tchanges : \"Using the Ring of Hardened Magma, the spell can only produce the warm shield.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"red dragon's thighbone\"] = {\r\n\tname : \"Red Dragon's Thighbone\",\r\n\tsource : [[\"SKT\", 105]], // Raven Rock ancient relic\r\n\ttype : \"weapon (greatclub)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This 14-ft long, 250 lb red dragon's thighbone can be used as a greatclub by a giant. It magically shrinks to a size that a creature that attunes to it can wield it effectively as a greatclub. It deals an extra 2d8 bludgeoning damage whenever it hits a creature of the dragon type.\",\r\n\tdescriptionFull : \"This 14-ft long, 250 lb red dragon's thighbone can be used as a greatclub by a giant. If a creature attunes to the greatclub, it magically shrinks to a size that the creature can wield effectively. The greatclub is considered a magic weapon that deals an extra 2d8 bludgeoning damage whenever it hits a dragon (including any creature of the dragon type).\",\r\n\tattunement : true,\r\n\tweight : 10,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greabclub\",\r\n\t\tregExpSearch : /^(?=.*red)(?=.*dragon)(?=.*thighbone).*$/i,\r\n\t\tname : \"Red Dragon's Thighbone\",\r\n\t\tsource : [[\"SKT\", 105]],\r\n\t\tdescription : \"Two-handed; +2d6 damage vs. dragons\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ancient relic boulder\"] = {\r\n\tname : \"Ancient Relic Boulder\",\r\n\tsource : [[\"SKT\", 105]], // One Stone ancient relic\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"As an action once per 7 days, I can use this stone to cast either Control Weather or Divination. As an action once per 24 hours, I can have it shrink to 6-inch diameter, 25 lb, or enlarge to normal, 15-ft diameter, 24000 lb. Anything the enlarged boulder falls on takes 10d10 bludgeoning damage, DC 15 Dex save to avoid.\",\r\n\tdescriptionFull : \"This boulder is a relic of giantkind that was shaped, carved, and abandoned long ago by a stone giant earth shaman. Any character who succeeds on a DC 15 Intelligence (Arcana) check can tell that the engraved lines adorning its outer surface are carefully designed to channel magical energy. A detect magic spell reveals an aura of transmutation magic emanating from it and casting identify spell on the boulder allows one to learn its magical properties, each of which is activated by tracing specific lines on its surface:\\n \\u2022 A creature can use an action to cast the control weather spell or the divination spell from the stone. Once either spell is cast, this property can't be used again for 7 days.\\n \\u2022 A creature can use an action to shrink the stone to the size of a 6-inch-diameter orb weighing 25 pounds, or enlarge the boulder to its normal size (15-foot diameter) and weight (12 tons). Anything the enlarged boulder falls on takes 55 (10d10) bludgeoning damage. A creature can avoid taking this damage by tumbling out of the way with a successful DC 15 Dexterity saving throw. Once the reducing or enlarging effect is used, this property can't be used again for 24 hours.\",\r\n\tweight : 25,\r\n\taction : [[\"action\", \" (shrink/enlarge)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ancient Relic Boulder (spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"7 days\"\r\n\t}, {\r\n\t\tname : \"Ancient Relic Boulder (shrink/enlarge)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"24 h\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"\",\r\n\t\tspells : [\"control weather\", \"divination\"],\r\n\t\tselection : [\"control weather\", \"divination\"],\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"control weather\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Ancient Relic Boulder, the spell takes only 1 action to cast.\"\r\n\t\t}\r\n\t}\r\n}\r\n\n// pub_20161115_VGtM.js\r\n// This file adds all the player-material from Volo's Guide to Monsters to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.V = {\r\n\tname : \"Volo's Guide to Monsters\",\r\n\tabbreviation : \"VGtM\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/volos-guide-to-monsters\",\r\n\tdate : \"2016/11/15\"\r\n};\r\n\r\n// Races\r\nRaceList[\"fallen aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*fallen).*$/i,\r\n\tname : \"Fallen Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 168]],\r\n\tplural : \"Fallen Aasimar\",\r\n\tsortname : \"Aasimar, Fallen\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 0, 0, 0, 2],\r\n\ttrait : \"Fallen Aasimar (+1 Strength, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nNecrotic Shroud: Once per long rest when I'm 3rd level, I can use an action to transform, causing all within 10 ft of me to make a Cha\" + (typePF ? \"\" : \"risma\") + \" saving throw (DC 8 + Cha mod + Prof Bonus) or be frightened of me until the end of my next turn. This lasts for 1 minute or until I end it as a bonus action. Once on my turn I can have one of my attacks or spells deals my level in extra necrotic damage to one target.\",\r\n\tabilitySave : 6,\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"necrotic shroud\" : {\r\n\t\t\tname : \"Necrotic Shroud\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"protector aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*protector).*$/i,\r\n\tname : \"Protector Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\tplural : \"Protector Aasimar\",\r\n\tsortname : \"Aasimar, Protector\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 1, 2],\r\n\ttrait : \"Protector Aasimar (+1 Wisdom, +2 Charisma)\\nLight Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Soul: Once per long rest when I'm 3rd level, I can use an action to transform, gaining glimmer in my eyes and two incorporeal wings. For 1 minute or until I end it as a bonus action, I have 30 feet fly speed; once on my turn I can have one of my attacks or spells deal my level in extra radiant damage to one target.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"radiant soul\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"scourge aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*scourge).*$/i,\r\n\tname : \"Scourge Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\tplural : \"Scourge Aasimar\",\r\n\tsortname : \"Aasimar, Scourge\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Scourge Aasimar (+1 Constitution, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Consumption: Once per long rest when I'm 3rd level, I can use an action to radiate bright light in 10-ft radius and dim light for another 10-ft, for 1 minute or until I end it as a bonus action. Once on my turn my attack or spell deals my level in extra radiant damage to one target, and at the end of my turns all creatures within 10 ft of me, including myself, take half my level in radiant damage.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"radiant consumption\" : {\r\n\t\t\tname : \"Radiant Consumption\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 3) return \"\"\r\n\t\t\t\treturn Math.ceil(n/2) + \"/\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"bugbear\"] = {\r\n\tregExpSearch : /bugbear/i,\r\n\tname : \"Bugbear\",\r\n\tsource : [[\"V\", 119], [\"E:RLW\", 25], [\"W\", 174]],\r\n\tplural : \"Bugbears\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Stealth\"],\r\n\tage : \" reach adulthood at age 16 and live up to 80 years\",\r\n\theight : \" are between 6 and 8 feet tall (6'0\\\" + 2d12\\\")\",\r\n\tweight : \" weigh between 250 and 350 lb (200 + 2d12 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 1,9 and 2,4 metres tall (185 + 5d12 cm)\",\r\n\tweightMetric : \" weigh between 115 and 160 kg (90 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 1, 0, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"surprise attack\" : {\r\n\t\t\tname : \"Surprise Attack\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"Combat\",\r\n\t\t\tadditional : \"2d6\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Bugbear (+2 Strength, +1 Dexterity)\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\nLong-Limbed: I have an additional 5 feet reach with melee attacks that I make on my turn.\\nSurprise Attack: If I hit a surprised creature on my first turn in combat, that attack deals an extra 2d6 damage. I can do this only once per combat.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"firbolg\"] = {\r\n\tregExpSearch : /firbolg/i,\r\n\tname : \"Firbolg\",\r\n\tsource : [[\"V\", 106], [\"W\", 170]],\r\n\tplural : \"Firbolg\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Giant\", \"Speech of Beast and Leaf\"],\r\n\tage : \" reach adulthood around 30 and can live for 500 years\",\r\n\theight : \" are between 6 and half and 8 feet tall (6'2\\\" + 2d12\\\")\",\r\n\tweight : \" weigh between 240 and 300 lb (175 + 2d12 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 2 and 2,5 metres tall (190 + 5d12 cm)\",\r\n\tweightMetric : \" weigh between 110 and 135 kg (80 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 0, 0, 2, 0],\r\n\ttrait : \"Firbolg (+1 Strength, +2 Wisdom)\" + (typePF ? \"\\n\" : \" \") + \"Hidden Step: Once per short rest, as a bonus action, I turn invisible until the start of my next turn as per the invisibility spell.\\nPowerful Build: I count as one size larger for the weight I can carry.\\nFirbolg Magic: I can cast the Detect Magic and Disguise Self spells each once per short rest. With Disguise Self I can seem up to 3 feet shorter. Wisdom is my ability for these spells.\\nSpeech of Beast and Leaf: I can make my words understood, in a limited manner, by beasts and plants. I have advantage on Charisma checks to influence them.\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"firbolg magic (detect magic)\" : {\r\n\t\t\tname : \"Firbolg Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\tspells : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tselection : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"disguise self\" : {\r\n\t\t\t\t\tdescription : \"Alter appearance, up to 3ft shorter/taller; Int(Investigation) check vs. spell DC to determine disguise\",\r\n\t\t\t\t\tchanges : \"Using Firbolg Magic, I can cast Disguise Self once per short rest to also seem up to 3 feet shorter or taller.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"hidden step\" : {\r\n\t\t\tname : \"Hidden Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"goblin\"] = {\r\n\tregExpSearch : /^(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\tname : \"Goblin\",\r\n\tsource : [[\"V\", 119], [\"G\", 17], [\"E:RLW\", 26], [\"W\", 174]],\r\n\tplural : \"Goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"fury of the small\" : {\r\n\t\t\tname : \"Fury of the Small\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map(function (n) { return \"+\" + n + \" damage\"; })\r\n\t\t}\r\n\t},\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Goblin (+2 Dexterity, +1 Constitution)\"+\r\n\t\"\\n \\u2022 Fury of the Small: Once per short rest, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my level.\"+\r\n\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\nRaceList[\"hobgoblin\"] = {\r\n\tregExpSearch : /hobgoblin/i,\r\n\tname : \"Hobgoblin\",\r\n\tsource : [[\"V\", 119], [\"E:RLW\", 26], [\"W\", 175]],\r\n\tplural : \"Hobgoblins\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tarmorProfs : [true, false, false, false],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 150 and 200 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 70 and 90 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\tfeatures : {\r\n\t\t\"saving face\" : {\r\n\t\t\tname : \"Saving Face\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hobgoblin (+2 Constitution, +1 Intelligence)\\n\\nMartial Training: I am proficient with two martial weapons of my choice and light armor.\\n\\nSaving Face: Once per short rest, when I miss an attack roll or fail an ability check or a saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5).\"\r\n};\r\nRaceList[\"kenku\"] = {\r\n\tregExpSearch : /kenku/i,\r\n\tname : \"Kenku\",\r\n\tsource : [[\"V\", 109], [\"W\", 177]],\r\n\tplural : \"Kenku\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Acrobatics, Deception, Stealth, and Sleight of Hand\",\r\n\tlanguageProfs : [\"Common\", \"Auran\"],\r\n\tage : \" reach maturity at about 12 years old and can live to 60\",\r\n\theight : \" are around 5 feet tall (4'4\\\" + 2d8\\\")\",\r\n\tweight : \" weigh between 90 and 120 lb (70 + 2d8 \\xD7 1d4 lb)\",\r\n\theightMetric : \" are around 1,5 metres tall (135 + 5d8 cm)\",\r\n\tweightMetric : \" weigh between 40 and 55 kg (35 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Kenku (+2 Dexterity, +1 Wisdom)\"+\r\n\t\t\"\\n \\u2022 Expert Forgery: Kenku can duplicate other creatures' handwriting and craftwork. I have advantage on all checks made to produce forgeries or duplicates of existing objects.\"+\r\n\t\t\"\\n \\u2022 Mimicry: I can mimic any sounds I have heard, including voices, but can otherwise not speak. Creatures hearing these sounds can determine they are imitations with a successful Wisdom (Insight) check opposed by my Charisma (Deception).\"\r\n};\r\nRaceList[\"kobold\"] = {\r\n\tregExpSearch : /kobold/i,\r\n\tname : \"Kobold\",\r\n\tsource : [[\"V\", 119]],\r\n\tplural : \"Kobolds\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tvision : [[\"Darkvision\", 60], [\"Sunlight Sensitivity\", 0]],\r\n\tage : \" reach adulthood at age 6 and can live up to 120 years, but rarely do so\",\r\n\theight : \" are between 2 and 3 feet tall (2'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 25 and 35 lb (25 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 65 and 90 cm tall (63 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 10 and 15 kg (11 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"grovel, cower, and beg\" : {\r\n\t\t\tname : \"Grovel, Cower, and Beg\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kobold (+2 Dexterity)\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nGrovel, Cower, and Beg: As an action, I can distract all foes within 10 feet of me that can see me so that my allies gain advantage on attack rolls against them.\\nPack Tactics: I have advantage on attack rolls against creatures when at least one of my allies is within 5 feet of that creature and that ally is not incapacitated.\"\r\n};\r\nRaceList[\"lizardfolk\"] = {\r\n\tregExpSearch : /lizard(folk|man|men)/i,\r\n\tname : \"Lizardfolk\",\r\n\tsource : [[\"V\", 111]],\r\n\tplural : \"Lizardfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Animal Handling, Nature, Perception, Stealth, and Survival\",\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bbite\\b/i,\r\n\t\tname : \"Bite\",\r\n\t\tsource : [[\"V\", 113]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\r\n\t\tname : \"Natural Armor\",\r\n\t\tsource : [[\"V\", 113]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach maturity around age 14 and rarely live longer than 60 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'9\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 200 lb (120 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 95 kg (55 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\tfeatures : {\r\n\t\t\"cunning artisan\" : {\r\n\t\t\tname : \"Cunning Artisan\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"hungry jaws\" : {\r\n\t\t\tname : \"Hungry Jaws\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Lizardfolk (+2 Constitution, +1 Wisdom) Bite: I can use my fanged maw to make unarmed strikes dealing 1d6 piercing damage.\" + (typePF ? \"\\n\" : \" \") + \"Cunning Artisan: As part of a short rest I can harvest parts of a slain creature to make a shield, club, javelin, or 1d4 darts/blowgun needles. This requires a suitable corpse and appropriate tools.\" + (typePF ? \"\\n\" : \" \") + \"Hold Breath: I can hold my breath for up to 15 minutes at a time.\" + (typePF ? \"\\n\" : \" \") + \"Natural Armor: I have an AC of 13 + Dexterity modifier + shield.\" + (typePF ? \"\\n\" : \" \") + \"Hungry Jaws: As a bonus action, once per short rest, I can make a special bite attack and if it hits I gain temporary HP equal to my Con modifier (min 1).\"\r\n};\r\nRaceList[\"orc\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\bor(c|k)).*$/i,\r\n\tname : \"Orc\",\r\n\tsource : [[\"V\", 120], [\"E:RLW\", 32], [\"W\", 178]],\r\n\tplural : \"Orcs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskillstxt : \"Choose two from Animal Handling, Insight, Intimidation, Medicine, Nature, Perception, and Survival.\",\r\n\tage : \" reach adulthood at age 12 and live up to 50 years\",\r\n\theight : \" are usually over 6 feet tall (5'4\\\" + 2d8\\\")\",\r\n\tweight : \" weigh between 230 and 280 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are usually over 1,8 metres tall (160 + 5d8 cm)\",\r\n\tweightMetric : \" weigh between 100 and 125 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\ttrait : \"Orc (+2 Strength, +1 Constitution)\\n\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\n\\nAggressive: As a bonus action, I can move up to my speed toward an enemy that I can see or hear. I must end my move closer to this enemy than I started.\",\r\n\taction : [[\"bonus action\", \"Aggressive (dash to enemy)\"]],\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"tabaxi\"] = {\r\n\tregExpSearch : /tabaxi/i,\r\n\tname : \"Tabaxi\",\r\n\tsource : [[\"V\", 113], [\"W\", 179]],\r\n\tplural : \"Tabaxi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : 20, enc : 10 }\r\n\t},\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(tabaxi|\\bcat\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Tabaxi Claws\",\r\n\t\tsource : [[\"V\", 115]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\tfeatures : {\r\n\t\t\"feline agility\" : {\r\n\t\t\tname : \"Feline Agility\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \" Turn\",\r\n\t\t\tadditional : \"still for 1 turn to recover\",\r\n\t\t\ttooltip : \" (can be replenished by not moving for one whole turn)\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Tabaxi (+2 Dexterity, +1 Charisma)\"+\r\n\t\"\\n \\u2022 Cat's Talent: I have proficiency in Perception and Stealth.\"+\r\n\t\"\\n \\u2022 Cat's Claws: I can use my retractable claws to make unarmed strikes dealing 1d4 slashing damage. They also give me a climbing speed of 20 ft.\"+\r\n\t\"\\n \\u2022 Feline Agility: When moving on my turn in combat, I can move double my speed. Once I do this, I can't do it again until I don't move at all on one of my turns.\"\r\n};\r\nRaceList[\"triton\"] = {\r\n\tregExpSearch : /triton/i,\r\n\tname : \"Triton\",\r\n\tsource : [[\"V\", 115], [\"MOT\", 26]],\r\n\tplural : \"Triton\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\", \"Emissary of the Sea\"],\r\n\tdmgres : [\"Cold\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach maturity around age 15 and can live up to 200 years\",\r\n\theight : \" are around 5 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" are around 1,6 metres tall (135 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 1],\r\n\ttrait : \"Triton (+1 Strength, +1 Constitution, and +1 Charisma)\\nControl Air and Water: I can cast the Fog Cloud spell. Once I reach 3rd level, I can cast the Gust of Wind spell. Once I reach 5th level, I can cast the Wall of Water spell. All three spells can be used once per long rest. Charisma is my spellcasting ability for these spells.\\nEmissary of the Sea: I can communicate simple ideas to beasts that can breathe water.\\nGuardians of the Depths: Adapted to even the most extreme ocean depths, I have resistance to cold damage.\" + (typePF ? \"\\n\" : \" \") + \"Amphibious: I can breathe air and water.\",\r\n\tspellcastingAbility : 6,\r\n\tfeatures : {\r\n\t\t\"fog cloud\" : {\r\n\t\t\tname : \"Control Air and Water (level 1)\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (1)\",\r\n\t\t\t\tspells : [\"fog cloud\"],\r\n\t\t\t\tselection : [\"fog cloud\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Control Air and Water (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"wall of water\" : {\r\n\t\t\tname : \"Control Air and Water (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (5)\",\r\n\t\t\t\tspells : [\"wall of water\"],\r\n\t\t\t\tselection : [\"wall of water\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"yuan-ti pureblood\"] = {\r\n\tregExpSearch : /^(?!.*human)(?=.*yuan.ti)(?=.*pure.?blood).*$/i,\r\n\tname : \"Yuan-Ti Pureblood\",\r\n\tsource : [[\"V\", 120]],\r\n\tplural : \"Yuan-Ti Purebloods\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Abyssal\", \"Draconic\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\timmune : [\"poison\"],\r\n\t\tadv_vs : [\"magic\"]\r\n\t},\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Yuan-Ti Pureblood (+1 Intelligence, +2 Charisma)\"+\r\n\t\t\"\\n \\u2022 Innate Spellcasting: I know the Poison Spray cantrip and I can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\"+\r\n\t\t\"\\n \\u2022 Magic Resistance: I have advantage on saving throws against spells and other magical effects.\"+\r\n\t\t\"\\n \\u2022 Poison Immunity: I am immune to poison damage and the poisoned condition.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"One snake with Intelligence 3 or less save or charmed for the duration\",\r\n\t\t\tchanges : \"I can cast Animal Friendship at-will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"suggestion\" : {\r\n\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Creatures\r\nCreatureList[\"aurochs\"] = {\r\n\tname : \"Aurochs\",\r\n\tsource : [[\"V\", 207], [\"MotM\", 71]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 38,\r\n\thd : [4, 10], //[#, die]\r\n\tspeed : \"50 ft\",\r\n\tscores : [20, 10, 19, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the aurochs moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) piercing damage. A targeted creature must succeed on a DC 15 Strength saving throw or be knocked prone.\"\r\n\t}]\r\n};\r\nCreatureList[\"cow\"] = {\r\n\tname : \"Cow\",\r\n\tsource : [[\"V\", 207]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the cow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}]\r\n};\r\nCreatureList[\"ox\"] = {\r\n\tname : \"Ox\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the ox moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Beast of Burden\",\r\n\t\tdescription : \"The oxen is considered to be a Huge animal for the purpose of determining its carrying capacity.\"\r\n\t}]\r\n};\r\nCreatureList[\"deep rothe\"] = {\r\n\tname : \"Deep Roth\\xE9\",\r\n\tnameAlt : [\"Roth\\xE9, Deep\"],\r\n\tsource : [[\"V\", 208], [\"MotM\", 71]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 13,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the roth\\xE9 moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Dancing Lights\",\r\n\t\tdescription : \"The roth\\xE9 casts dancing lights, requiring no spell components and using Wisdom as the spellcasting ability.\"\r\n\t}]\r\n};\r\nCreatureList[\"rothe\"] = {\r\n\tname : \"Roth\\xE9\",\r\n\tsource : [[\"V\", 208]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the roth\\xE9 moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}]\r\n};\r\nCreatureList[\"stench kow\"] = {\r\n\tname : \"Stench Kow\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\tsize : 2, //Large\r\n\ttype : \"Fiend\", // Change in MotM from Beast\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tdamage_resistances : \"cold, fire, and poison damage\",\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Stench\",\r\n\t\tdescription : \"Any creature other than a stench kow starting its turn within 5 ft of a stench kow must make a DC 12 Constitution saving throw or be poisoned until the start of the creature's next turn. On a successful saving throw, the creature is immune to the stench of all stench kows for 1 hour.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Darkvision 60 ft.\" + (typePF ? \"\\n\" : \" \") + \"##Resistances##. Cold, fire, poison.\",\r\n\t\t\"##Charge##. If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, it deals extra 2d6 piercing damage.\",\r\n\t\t\"##Stench##. Any creature starting its turn within 5 ft of a stench kow must make a DC 12 Con save or be poisoned until the start of the its next turn. On a success, it is immune to the stench of all stench kows for 1 hour\",\r\n\t].join(\"\\n\")\r\n};\r\nCreatureList[\"dolphin\"] = {\r\n\tname : \"Dolphin\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 97]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 11,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"swim 60 ft\",\r\n\tscores : [14, 13, 13, 6, 12, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Blindsight 60 ft\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 30 ft straight in the same round, deals extra 1d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the dolphin moves at least 30 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 3 (1d6) bludgeoning damage.\"\r\n\t}, {\r\n\t\tname : \"Hold Breath\",\r\n\t\tdescription : \"The dolphin can hold its breath for 20 minutes.\"\r\n\t}]\r\n};\r\nCreatureList[\"cranium rat\"] = {\r\n\tname : \"Cranium Rat\",\r\n\tnameAlt : [\"Rat, Cranium\"],\r\n\tsource : [[\"V\", 133], [\"MotM\", 83]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Aberration\", // Change in MotM from Beast\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Lawful Evil\",\r\n\tac : 12,\r\n\thp : 2,\r\n\thd : [1, 4], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [2, 14, 10, 4, 11, 8], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Illumination\",\r\n\t\tdescription : \"As a bonus action, the cranium rat can shed dim light from its brain in a 5-foot radius or extinguish the light.\"\r\n\t}, {\r\n\t\tname : \"Telepathic Shroud\",\r\n\t\tdescription : \"The cranium rat is immune to any effect that would sense its emotions or read its thoughts, as well as to all divination spells.\"\r\n\t}]\r\n};\r\nCreatureList[\"brontosaurus\"] = {\r\n\tname : \"Brontosaurus\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 215], [\"MotM\", 95]],\r\n\tsize : 0, //Gargantuan\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 121,\r\n\thd : [9, 20], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsaves : [\"\", \"\", 6, \"\", \"\", \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Stomp\",\r\n\t\tability : 1,\r\n\t\tdamage : [5, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (20 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\"\r\n\t}, {\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [6, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (20 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"deinonychus\"] = {\r\n\tname : \"Deinonychus\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 26,\r\n\thd : [4, 8], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [15, 15, 14, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 3,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two claw and one bite as one Attack action; If used after moving 20 ft straight in the same round, see Pounce trait\"\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two claw and one bite as one Attack action (also, see Pounce trait)\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the deinonychus can make two Claw and one Bite attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the deinonychus moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the deinonychus can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"dimetrodon\"] = {\r\n\tname : \"Dimetrodon\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 19,\r\n\thd : [3, 8], //[#, die]\r\n\tspeed : \"30 ft, swim 20 ft\",\r\n\tscores : [14, 10, 15, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"hadrosaurus\"] = {\r\n\tname : \"Hadrosaurus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 224], [\"MotM\", 96]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 19,\r\n\thd : [3, 10], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [15, 10, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"quetzalcoatlus\"] = {\r\n\tname : \"Quetzalcoatlus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 230], [\"MotM\", 96]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 30,\r\n\thd : [4, 12], //[#, die]\r\n\tspeed : \"10 ft, fly 80 ft\",\r\n\tscores : [15, 13, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [3, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"If used after diving 30 ft towards a target, the attack deals 3d6 extra damage (Dive Attack)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Dive Attack\",\r\n\t\tdescription : \"If the quetzalcoatlus is flying and dives at least 30 ft toward a creature and then hits it with a bite attack, the attack deals an extra 10 (3d6) damage to the target.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The quetzalcoatlus doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\nCreatureList[\"stegosaurus\"] = {\r\n\tname : \"Stegosaurus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 231], [\"MotM\", 96]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 76,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [20, 9, 17, 2, 11, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [6, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"velociraptor\"] = {\r\n\tname : \"Velociraptor\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 235], [\"MotM\", 96]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 10,\r\n\thd : [3, 4], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [6, 14, 13, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claw\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the velociraptor can make one Bite and one Claw attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The velociraptor has advantage on an attack roll against a creature if at least one of the velociraptor's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}]\r\n};\r\nCreatureList[\"gazer\"] = {\r\n\tname : \"Gazer\",\r\n\tsource : [[\"V\", 126], [\"MotM\", 134]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Aberration\",\r\n\tsubtype : \"Beholder\", // MotM addition\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 13,\r\n\thp : 13,\r\n\thd : [3, 4], //[#, die]\r\n\tspeed : \"0 ft, fly 30 ft\",\r\n\tscores : [3, 17, 14, 3, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsaves : [\"\", \"\", \"\", \"\", 2, \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Eye Rays\",\r\n\t\tability : 3,\r\n\t\tdamage : [\"Special\", \"\", \"\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"Shoot two randomly determined different rays as one action; Each ray has its own target; See traits\",\r\n\t\tdc : true,\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Aggressive\",\r\n\t\tdescription : \"As a bonus action, the gazer moves its speed toward an enemy that it can see.\"\r\n\t}, {\r\n\t\tname : \"Mimicry\",\r\n\t\tdescription : \"The gazer can mimic simple speech it has heard, in any language. Any who hear this can tell it is an imitation with a successful DC 10 Wis (Insight) check.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Eye Rays\",\r\n\t\tdescription : \"1. Dazing Ray: Wisdom saving throw or charmed until the start of the gazer's next turn. While charmed, half speed and disadv. on attacks.\\n2. Fear Ray: Wisdom saving throw or frightened until the start of the gazer's next turn.\\n3. Frost Ray: Target must make a Dexterity saving throw or 10 (3d6) cold damage.\\n4. Telekinetic Ray: Medium or smaller creature, Strength saving throw or be moved up to 30 ft away from the gazer. If it is an unattended Tiny object, the gazer moves it up to 30 ft in any direction. It can exert fine control on objects this way.\" // MotM: no longer 10 lb limit, just Tiny object\r\n\t}],\r\n\tvariant : [{\r\n\t\tname : \"Variant: Familiar\",\r\n\t\tdescription : \"The gazer can serve another creature as a familiar, forming a telepathic bond with its willing master, provided that the master is at least a 3rd-level spellcaster. While the two are bonded, the master can sense what the gazer senses as long as they are within 1 mile of each other. If its master causes it physical harm, the gazer will end its service as a familiar, breaking the telepathic bond.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"mind blade\"] = {\r\n\tname : \"Mind Blade\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"Mind flayers can turn any nonmagical sword into a mind blade. Only one creature can attune to this sword: either a specific mind flayer or one of its thralls. In the hands of its intended wielder, the mind blade is a magic weapon that deals an extra 2d6 psychic damage to any target it hits.\",\r\n\tdescriptionFull : \"Mind flayers can turn any nonmagical sword into a mind blade. Only one creature can attune to it: either a specific mind flayer or one of its thralls. In the hands of any other creature, the mind blade functions as a normal sword of its kind. In the hands of its intended wielder, the mind blade is a magic weapon that deals an extra 2d6 psychic damage to any target it hits.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by the creature this armor was made for: either a specific mind flayer or one of its thralls\",\r\n\tprereqeval : function (v) { return false; },\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/^(?=.*mind)(?=.*blade).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 psychic damage';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Mind Blade\" in a the name of a sword, it will be treated as the magic weapon Mind Blade, which adds +2d6 psychic damage on any hit as long as attuned to its intended wielder.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"mind carapace armor\"] = {\r\n\tname : \"Mind Carapace Armor\",\r\n\tnameTest : /mind.carapace.*armou?r/i,\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"armor (heavy)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Only one creature can attune to this armor: either a specific mind flayer or one of its thralls. To its intended wearer, the armor grants advantage on Intelligence, Wisdom, and Charisma saving throws and makes its wearer immune to the frightened condition.\",\r\n\tdescriptionFull : \"Any nonmagical suit of heavy armor can be turned by mind flayers into mind carapace armor. Only one creature can attune to it: either a specific mind flayer or one of its thralls. While worn by any other creature, the mind carapace armor functions as normal armor of its kind. To its intended wearer, the armor grants advantage on Intelligence, Wisdom, and Charisma saving throws and makes its wearer immune to the frightened condition.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by the creature this armor was made for: either a specific mind flayer or one of its thralls\",\r\n\tprereqeval : function (v) { return false; },\r\n\tsavetxt : { text : [\"Adv. on Int, Wis, and Cha saves\"], immune : [\"frightened\"] },\r\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]],\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Mind Carapace\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Mind Carapace\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/heavy/i).test(inObj.type);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"mind lash\"] = {\r\n\tname : \"Mind Lash\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"weapon (whip)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This magic whip strips away a creature's will to survive as it also strips away flesh and deals +2d4 psychic damage on each hit. Any target taking psychic damage must succeed on a DC 15 Wisdom save or have disadv. on Int, Wis, and Cha saves for 1 minute. It can repeat the save at the end of each of its turns.\",\r\n\tdescriptionFull : \"In the hands of any creature other than a mind flayer, a mind lash functions as a normal whip. In the hands of an illithid, this magic weapon strips away a creature's will to survive as it also strips away flesh, dealing an extra 2d4 psychic damage to any target it hits. Any creature that takes psychic damage from the mind lash must also succeed on a DC 15 Wisdom saving throw or have disadvantage on Intelligence, Wisdom, and Charisma saving throws for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tprerequisite : \"Requires attunement by an illithid\",\r\n\tprereqeval : function (v) { return (/mind flayer|illithid/i).test(What(\"Race\")); },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"whip\",\r\n\t\tregExpSearch : /^(?=.*mind)(?=.*lash).*$/i,\r\n\t\tname : \"Mind Lash\",\r\n\t\tsource : [[\"V\", 81]],\r\n\t\tdescription : \"Finesse, reach; +2d4 psychic damage; DC 15 Wis save or disadv. on Int/Wis/Cha saves for 1 min\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"shield of far sight\"] = {\r\n\tname : \"Shield of Far Sight\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"shield\",\r\n\trarity : \"rare\",\r\n\tdescription : \"The mind flayer that created this shield can see through its eye with 60 ft darkvision while it is on the same plane. While peering through this magical eye, the mind flayer can use its Mind Blast action as though it were standing behind the shield. If a shield of far sight is destroyed, its creator is blinded for 2d12 hours.\",\r\n\tdescriptionFull : \"A mind flayer skilled at crafting magic items creates a shield of far sight by harvesting an eye from an intelligent humanoid and magically implanting it on the outer surface of a nonmagical shield. The shield becomes a magic item once the eyes is implanted, whereupon the mind flayer can give the shield to a thrall or hang it on a wall in its lair. As long as the shield is on the same plane of existence as its creator, the mind flayer can see through the shield's eye, which has darkvision out to a range of 60 feet. While peering through this magical eye, the mind flayer can use its Mind Blast action as though it were standing behind the shield.\\n   If a shield of far sight is destroyed, the mind flayer that created it is blinded for 2d12 hours.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Shield of Far Sight\"\r\n}\r\nMagicItemsList[\"survival mantle\"] = {\r\n\tname : \"Survival Mantle\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"armor (half plate)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"This mantle functions as a half plate and takes just as long to don or doff. It encases portions of my shoulders, neck, and chest so that I can breathe normally in any environment (including a vacuum) and gives me advantage on saving throws against gases (such as Cloudkill, Stinking Cloud, or inhaled poisons).\",\r\n\tdescriptionFull : \"This carapace-like augmentation encases portions of the wearer's shoulders, neck, and chest. A survival mantle is equivalent to a suit of nonmagical half plate armor and takes just as long to don or doff. It can't be worn with other kinds of armor.\\n   A creature wearing a survival mantle can breathe normally in any environment (including a vacuum) and has advantage on saving throws against harmful gases (such as those created by a Cloudkill spell, a Stinking Cloud spell, inhaled poisons, and the breath weapons of some dragons).\",\r\n\tweight : 40,\r\n\tsavetxt : { adv_vs : [\"gases\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*survival)(?=.*mantle).*$/i,\r\n\t\tname : \"Survival Mantle\",\r\n\t\tsource : [[\"V\", 81]],\r\n\t\ttype : \"medium\",\r\n\t\tac : 15,\r\n\t\tstealthdis : true,\r\n\t\tweight : 40,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\n// pub_20170404_TftYP.js\n// This file adds the beasts from the Tales from the Yawning Portal adventure book to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.TftYP={\n\tname : \"Tales from the Yawning Portal [beasts, items]\",\n\tabbreviation : \"TftYP\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Anthology\",\n\turl : \"https://dnd.wizards.com/products/tales-yawning-portal\",\n\tdate : \"2017/04/04\"\n};\n\n// Creatures\n// Snow leopard is just a tiger under a different name, it has been added to the SRD code as a `nameAlt`\nCreatureList[\"giant crayfish\"] = {\n\tname : \"Giant Crayfish\",\n\tnameAlt : [\"Crayfish, Giant\"],\n\tsource : [[\"TftYP\", 235]],\n\tsize : 2, //Large\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 15,\n\thp : 45,\n\thd : [7, 10], //[#, die]\n\tspeed : \"30 ft, swim 30 ft\",\n\tscores : [15, 13, 13, 1, 9, 3], //[Str, Dex, Con, Int, Wis, Cha]\n\tskills : {\n\t\t\"stealth\" : 3\n\t},\n\tsenses : \"Blindsight 30 ft\",\n\tpassivePerception : 9,\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\t\tname : \"Claw\",\n\t\t\tability : 1,\n\t\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Target grappled on hit (escape DC 12); 2 claw attacks as Attack action, if not grappling with claw\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Amphibious\",\n\t\t\tdescription : \"The giant crayfish can breathe air and water.\"\n\t\t}\n\t]\n};\nCreatureList[\"giant ice toad\"] = {\n\tname : \"Giant Ice Toad\",\n\tnameAlt : [\"Toad, Giant Ice\"],\n\tsource : [[\"TftYP\", 235]],\n\tsize : 2, //Large\n\ttype : \"Monstrosity\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 52,\n\thd : [7, 10], //[#, die]\n\tspeed : \"30 ft\",\n\tscores : [16, 13, 14, 8, 10, 6], //[Str, Dex, Con, Int, Wis, Cha]\n\tdamage_immunities : \"cold\",\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 10,\n\tlanguages : \"Ice Toad\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\t\tname : \"Bite\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Target is grappled and restrained (escape DC 13); Can't use bite again until grapple ends\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Amphibious\",\n\t\t\tdescription : \"The toad can breathe air and water\"\n\t\t}, {\n\t\t\tname : \"Cold Aura\",\n\t\t\tdescription : \"A creature that starts its turn within 10 feet of the toad takes 5 (1d10) cold damage.\"\n\t\t}, {\n\t\t\tname : \"Standing Leap\",\n\t\t\tdescription : \"The toad's long jump is up to 20 ft and its high jump is up to 10 ft, with or without a running start.\"\n\t\t}\n\t],\n\tfeatures : [{\n\t\t\tname : \"Swallow\",\n\t\t\tdescription : \"The toad can make a bite attack against a Medium or smaller target it is grappling. If it hits, the target takes bite damage, is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the toad, and it takes 10 (3d6) acid damage and 11 (2d6) cold damage at the start of each of the toad's turns. The toad can have only one target swallowed at a time.\\nIf the toad dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 5 feet of movement, exiting prone.\"\n\t\t}\n\t],\n\twildshapeString : (typePF ? \"##Senses##. \" : \"\") + \"Darkvision 60 ft. ##Cold Aura##. Any within 5 ft at start of their turn take 1d10 cold damage. ##Amphibious##. Breathes air and water. ##Standing Leap##. Long jump 20 ft and high jump 10 ft, regardless of start. ##Swallow##. If bite attack hits Medium or smaller being grappling, it takes bite damage and is swallowed: blinded, restrained, total cover, takes 3d6 acid and 2d6 cold damage at the start of each of the toad's turns; Only 1 swallowed at a time.\"\n};\nCreatureList[\"giant lightning eel\"] = {\n\tname : \"Giant Lightning Eel\",\n\tnameAlt : [\"Eel, Giant Lightning\"],\n\tsource : [[\"TftYP\", 236]],\n\tsize : 2, //Large\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 42,\n\thd : [5, 10], //[#, die]\n\tspeed : \"5 ft, swim 30 ft\",\n\tscores : [11, 17, 16, 2, 12, 3], //[Str, Dex, Con, Int, Wis, Cha]\n\tdamage_resistances : \"lightning\",\n\tsenses : \"Blindsight 60 ft\",\n\tpassivePerception : 11,\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"+1d8 lightning damage on a hit; Two bite attacks as an Attack action\"\n\t}, {\n\t\tname : \"Lightning Jolt (Recharge 5-6)\",\n\t\tability : 3,\n\t\tdamage : [3, 8, \"lightning\"], //[#, die, type] \"\" for die is allowed\n\t\trange : \"Out/in 5/15 ft\",\n\t\tdc : true,\n\t\tdescription : \"Out water: 5 ft, 1 crea; In water: all in 15 ft; Con save: fail― stunned until eel's next turn end, success― half damage\",\n\t\tmodifiers : [-1, \"\"],\n\t\tabilitytodamage : false,\n\t\ttooltip : \"One creature the eel touches within 5 feet of it outside water, or each creature within 15 feet of it in a body of water, must make a DC 12 Constitution saving throw. On failed save, a target takes 13 (3d8) lightning damage. If the target takes any of this damage, the target is stunned until the end of the eel's next turn. On a successful save, a target takes half as much damage and isn't stunned\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the eel can make two Bite attacks.\"\n\t}, {\n\t\tname : \"Lightning Jolt (Recharge 5-6)\",\n\t\tdescription : \"See Attack. One creature the eel touches within 5 feet of it outside water, or each creature within 15 feet of it in a body of water, must make a DC 12 Constitution saving throw. On failed save, a target takes 13 (3d8) lightning damage. If the target takes any of this damage, the target is stunned until the end of the eel's next turn. On a successful save, a target takes half as much damage and isn't stunned\"\n\t}]\n};\nCreatureList[\"giant subterranean lizard\"] = {\n\tname : \"Giant Subterranean Lizard\",\n\tnameAlt : [\"Lizard, Giant Subterranean\"],\n\tsource : [[\"TftYP\", 236]],\n\tsize : 1, //Huge\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 66,\n\thd : [7, 12], //[#, die]\n\tspeed : \"30 ft, swim 50 ft\",\n\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\n\tskills : {\n\t\t\"stealth\" : 3\n\t},\n\tpassivePerception : 10,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\t\tname : \"Bite\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 10, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Target grappled \\u0026 restrained (escape DC 15); Can't use bite until grapple ends\"\n\t\t}, {\n\t\t\tname : \"Tail\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (10 ft)\",\n\t\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Target DC 15 Str save or knocked prone\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Swallow\",\n\t\t\tdescription : \"The lizard can make one bite attack against a Medium or smaller target it is grappling. If the attack hits, the target takes bite damage, is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the lizard, and it takes 10 (3d6) acid damage at the start of each of the lizard's turns. The lizard can have only one target swallowed at a time.\\nIf the lizard dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 10 feet of movement, exiting prone.\"\n\t\t}\n\t],\n\twildshapeString : \"##Swallow##. If a bite attack hits a Small or smaller target that is currently being grappled by the lizard, the target is swallowed, ending the grapple. While swallowed, it is blinded, restrained, has total cover, and takes 3d4 acid damage at the start of each of the lizard's turns; The lizard can have only 1 swallowed at a time. If the lizard dies, the swallowed creature is no longer restrained and can escape using 10 ft movement.\"\n};\n\n// Magic Items\nMagicItemsList[\"flame tongue shortsword of gem detection\"] = {\t// contributed by Nod_Hero\n\tname : \"Flame Tongue Shortsword of Gem Detection\",\n\tsource : [[\"TftYP\", 178]],\n\ttype : \"weapon (shortsword)\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can speak the command word to cause flames that add +2d6 fire damage and shine bright light for 40 ft \\u0026 dim light for 40 ft. The flames last until I speak the word again or sheathe it. As an action, I can mentally command it to detect type and quantity of gems and jewels within 60 ft of the sword.\",\n\tdescriptionFull : \"You can use a bonus action to speak this magic sword's command word, causing flames to erupt from the blade. These flames shed bright light in a 40-foot radius and dim light for an additional 40 feet. While the sword is ablaze, it deals an extra 2d6 fire damage to any target it hits. The flames last until you use a bonus action to speak the command word again or until you drop or sheathe the sword.\"+\n\t\"\\n   While you are attuned to this sword you can use an action to mentally command it to detect gems and jewels. You learn the kind and number of such objects within 60 feet of the sword.\",\n\taction : [\n\t\t[\"bonus action\", \"Flame Tongue (activate/end)\"],\n\t\t[\"action\", \"Gem Detection (within 60 ft)\"]\n\t],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"shortsword\",\n\t\tregExpSearch : /^(?=.*flame tongue)(?=.*short)(?=.*sword).*$/i,\n\t\tname : \"Flame Tongue Shortsword\",\n\t\tsource : [[\"TftYP\", 179]],\n\t\tdescription : \"Finesse, light; While active, +2d6 fire damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"amulet of protection from turning\"] = {\n\tname : \"Amulet of Protection from Turning\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"This silver and turquoise amulet has 3 charges, regain all at dawn. It gives me adv. on saves against effects that turn undead. If I fail a save against such an effect, I can expend 1 charge to succeed instead. It glows with a silvery blue light for a few seconds each time an effect that turns undead is used on me.\",\n\tdescriptionFull : \"While you wear this amulet of silver and turquoise, you have advantage on saving throws against effects that turn undead.\\n   If you fail a saving throw against such an effect, you can choose to succeed instead. You can do so three times, and expended uses recharge daily at dawn. Each time an effect that turns undead is used against you, the amulet glows with silvery blue light for a few seconds.\",\n\tattunement : true,\n\tweight : 1,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tsavetxt : { adv_vs : [\"turn undead\"] }\n}\nMagicItemsList[\"balance of harmony\"] = {\n\tname : \"Balance of Harmony\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"D\",\n\tdescription : \"I can use the scale to cast Detect Evil and Good as a ritual by placing a gem of 100 gp or more or holy water on both pans. It then tips to the side it detected, good or evil, or fluctuates slightly if what it detected is neutral. After this, I can touch it to learn the rest of the information the spell normally conveys.\",\n\tdescriptionFull : \"This scale bears celestial symbols on one pan and fiendish symbols on the other. You can use the scale to cast Detect Evil and Good as a ritual. Doing so requires you to place the scale on a solid surface, then sprinkle the pans with holy water or place a transparent gem worth 100 gp in each pan. The scale remains motionless if it detects nothing, tips to one side or the other for good (consecrated) or evil (desecrated), and fluctuates slightly if it detects a creature appropriate to the spell but neither good nor evil. By touching the scales after casting the ritual, you instantly learn any information the spell can normally convey, and then the effect ends.\",\n\tweight : 1,\n\tspellcastingBonus : [{\n\t\tname : \"Only as ritual\",\n\t\tspells : [\"detect evil and good\"],\n\t\tselection : [\"detect evil and good\"],\n\t\tfirstCol : SpellRitualTag,\n\t}],\n\tspellChanges : {\n\t\t\"detect evil and good\" : {\n\t\t\ttime : \"10 min\",\n\t\t\tcompMaterial : \"The Balance of Harmony requires placing the scale on a solid surface and sprinkling the pans with holy water or placing a transparent gem worth 100 gp in each pan.\",\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"bracelet of rock magic\"] = {\n\tname : \"Bracelet of Rock Magic\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This gold bracelet grants me immunity to being petrified. It has 16 charges to cast Flesh to Stone (DC 15). Once all charges are used, it turns to lead and loses its magic. If I use it to target a creature strongly related to stone, the target has adv. on its save. If it saves, Flesh to Stone is cast on me with disadv. on the save.\",\n\tdescriptionFull : \"While you wear this gold bracelet, it grants you immunity to being petrified, and it allows you to cast Flesh to Stone (save DC 15) as an action. Once the spell has been cast three times, the bracelet can no longer cast it. Thereafter, you can cast Stone Shape as an action. After you have done this thirteen times, the bracelet loses its magic and turns from gold to lead.\\n   \" + toUni(\"Curse\") + \". The bracelet's affinity with earth manifests as an unusual curse. Creatures of flesh that are strongly related to earth and stone, such as stone giants and dwarves, have advantage on the saving throw against Flesh to Stone cast from the bracelet. If such a creature's save is successful, the bracelet breaks your attunement to it and casts the spell on you. You make your saving throw with disadvantage, and on a failed save you are petrified instantly.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true,\n\tusages : 16,\n\trecovery : \"Never\",\n\tsavetxt : { immune : [\"petrified\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"flesh to stone\"],\n\t\tselection : [\"flesh to stone\"],\n\t\tfirstCol : 1\n\t}]\n}\nMagicItemsList[\"eagle whistle\"] = {\n\tname : \"Eagle Whistle\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"Three times per dawn, I can blow this whistle, gaining a flying speed equal to twice my walking speed while I do so continuously. I can blow it for a number for rounds equal to 5 + five times my Constitution modifier (minimum of 1 round) or until I talk, hold my breath, start suffocating, or land.\",\n\tdescriptionFull : \"While you blow an eagle whistle continuously, you can fly twice as fast as your walking speed. You can blow the whistle continuously for a number of rounds equal to 5 + five times your Constitution modifier (minimum of 1 round) or until you talk, hold your breath, or start suffocating. A use of the whistle also ends if you land. If you are aloft when you stop blowing the whistle, you fall. The whistle has three uses. It regains expended uses daily at dawn.\",\n\tweight : 1,\n\tusages : 3,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"hell hound cloak\"] = {\n\tname : \"Hell Hound Cloak\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"H\",\n\tdescription : \"As an action, I can command this cloak to Polymorph me into a hell hound for 1 hour, or until I stop it as a bonus action. The 6th time I use it and every time after, I must make a DC 15 Cha save or be stuck in hell hound form until dispelled or I drop to 0 HP. If I remain in hell hound form for 6 hours, it becomes permanent.\",\n\tdescriptionFull : \"This dark cloak is made of cured hell hound hide. As an action, you can command the cloak to transform you into a hell hound for up to 1 hour. The transformation otherwise functions as the Polymorph spell, but you can use a bonus action to revert to your normal form.\\n   \" + toUni(\"Curse\") + \". This cloak is cursed with the essence of a hell hound, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the cloak, keeping it within reach at all times.\\n   The sixth time you use the cloak, and each time thereafter, you must make a DC 15 Charisma saving throw. On a failed save, the transformation lasts until dispelled or until you drop to 0 hit points, and you can't willingly return to normal form. If you ever remain in hell hound form for 6 hours, the transformation becomes permanent and you lose your sense of self. All your statistics are then replaced by those of a hell hound. Thereafter, only Remove Curse or similar magic allows you to regain your identity and return to normal. If you remain in this permanent form for 6 days, only a Wish spell can reverse the transformation.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true\n}\nMagicItemsList[\"javelin of backbiting\"] = {\n\tname : \"Javelin of Backbiting\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (javelin)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This javelin has +2 to hit and damage, +30 ft range, and deals +1d6 damage when thrown. After a throwing attack, it flies back to my hand immediately. While its curse lasts, I'm unwilling to part with it and have disadv. on attacks with other weapon. Also, on a roll of 1 to hit, I roll the attack again, but at myself with adv.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, its normal and long ranges both increase by 30 feet. and it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the weapon, keeping it within reach at all times. In addition, you have disadvantage on attack rolls made with weapons other than this one.\\n   Whenever you roll a 1 on an attack roll using this weapon, the weapon bends or flies to hit you in the back. Make a new attack roll with advantage against your own AC. If the result is a hit, you take damage as if you had attacked yourself with the spear.\",\n\tattunement : true,\n\tweight : 2,\n\tcursed : true,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"javelin\",\n\t\tregExpSearch : /^(?=.*javelin)(?=.*backbiting).*$/i,\n\t\tname : \"Javelin of Backbiting\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\trange : \"Melee, 60/150 ft\",\n\t\tdescription : \"Thrown; +1d6 damage if thrown; Returning; On 1 to hit: attack myself with adv.\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"loadstone\"] = {\n\tname : \"Loadstone\",\n\tnameAlt : \"Lodestone\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"The large gem worth 150 gp is cursed. Detect Magic doesn't detect it, but Identify does reveal its nature. If I take the Dash or Disengage action while it is on my person, its curse activates. While cursed, I am unwilling to part with it, my speed is reduced by 5 ft, and my maximum load and lift capacities are halved.\",\n\tdescriptionFull : \"This stone is a large gem worth 150 gp.\\n   \" + toUni(\"Curse\") + \". The stone is cursed, but its magical nature is hidden; Detect Magic doesn't detect it. An Identify spell reveals the stone's true nature. If you use the Dash or Disengage action while the stone is on your person, its curse activates. Until the curse is broken with Remove Curse or similar magic, your speed is reduced by 5 feet, and your maximum load and maximum lift capacities are halved. You also become unwilling to part with the stone.\",\n\tweight : 1,\n\tcursed : true\n}\nMagicItemsList[\"mirror of the past\"] = {\n\tname : \"Mirror of the Past\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"As an action once per dawn, I can gaze into this mirror while thinking of a specific object or creature. The mirror then shows me scenes from the target's past for 1 minute or less, instead of my reflection. Information conveyed is accurate, but it is random and cryptic, and presented in no particular order.\",\n\tdescriptionFull : \"The holder of this platinum hand mirror can learn something about the history of a specific object or creature by taking an action to gaze into the mirror and think of the target. Instead of the holder's reflection, the mirror presents scenes from the target's past. Information conveyed is accurate, but it is random and cryptic, and presented in no particular order. Once it is activated, the mirror gives its information for 1 minute or less, then returns to normal. It can't be used again until the next dawn.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"action\", \"\"]]\n}\nMagicItemsList[\"night caller\"] = {\n\tname : \"Night Caller\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"I can use this whistle to cast Animate Dead, if I blow it under the night sky or in darkness. Once used, it can't function for 7 days. It can affect targets through 10 ft of soft earth or similar, but they take 1 min to claw to the surface. Once per 24 hours, I can blow it to reassert control over 1 or 2 targ I animated with it.\",\n\tdescriptionFull : \"This whistle is carved from transparent crystal, and it resembles a tiny dragon curled up like a snail. The name Night Caller is etched on the whistle in Dwarvish runes. If a character succeeds on a DC 20 Intelligence (Arcana or History) check, the character recalls lore that says the duergar made several such whistles for various groups in an age past.\\n   If you blow the whistle in darkness or under the night sky, it allows you to cast the Animate Dead spell. The target can be affected through up to 10 feet of soft earth or similar material, and if it is, it takes 1 minute to claw its way to the surface to serve you. Once the whistle has animated an undead creature, it can't do so again until 7 days have passed.\\n   Once every 24 hours, you can blow the whistle to reassert control over one or two creatures you animated with it.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"7 days\",\n\tspellFirstColTitle : \"Us\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per 7 days\",\n\t\tspells : [\"animate dead\"],\n\t\tselection : [\"animate dead\"],\n\t\tfirstCol : \"checkbox\"\n\t}],\n\tspellChanges : {\n\t\t\"animate dead\" : {\n\t\t\tdescription : \"In darkness, turn (buried) corpse into Skeleton/Zombie; control for 24h; bns a command within 60 ft\",\n\t\t\tchanges : \"Night Caller can only be used in darkness or under the night sky. It can only create a single Skeleton or Zombie, but can animate a corpse buried below up to 10 feet of soft earth or similar material.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"potion of mind control\"] = {\n\tname : \"Potion of Mind Control\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"potion\",\n\tmagicItemTable : \"E\",\n\tdescription : \"\",\n\tdescriptionFull : \"When you drink a potion of mind control, you can cast a dominate spell (save DC 15) on a specific creature if you do so before the end of your next turn. If you don't, the potion is wasted.\\n   A potion of mind control produces the effect of a Dominate Beast (beast), Dominate Person (humanoid), or Dominate Monster (monster) spell depending on its type. If the target's initial saving throw fails, the effect lasts for 1 hour, with no concentration required on your part. The charmed creature has disadvantage on new saving throws to break the effect during this time.\",\n\tweight : 1,\n\tchoices : [\"Beast\", \"Humanoid\", \"Monster\"],\n\t\"beast\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Beast before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t},\n\t\"humanoid\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Person before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t},\n\t\"monster\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Monster before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t}\n}\nMagicItemsList[\"robe of summer\"] = {\n\tname : \"Robe of Summer\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This elegant garment is made from fine cloth in hues of red, orange, and gold. While I wear the robe, I have resistance to cold damage. In addition, I am comfortable as if the temperature were that of a balmy day, so I suffer no ill effects from the weather's temperature extremes.\",\n\tdescriptionFull : \"This elegant garment is made from fine cloth in hues of red, orange, and gold. While you wear the robe, you have resistance to cold damage. In addition, you are comfortable as if the temperature were that of a balmy day, so you suffer no ill effects from the weather's temperature extremes.\",\n\tattunement : true,\n\tweight : 1,\n\tdmgres : [\"Cold\"]\n}\nMagicItemsList[\"shatterspike\"] = {\n\tname : \"Shatterspike\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this magic longsword. If it hits an object, the hit is automatically a critical hit, and it can deal bludgeoning or slashing damage to the object (my choice). Further, damage from nonmagical sources can't harm the weapon.\",\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon. If it hits an object, the hit is automatically a critical hit, and it can deal bludgeoning or slashing damage to the object (your choice). Further, damage from nonmagical sources can't harm the weapon.\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /Shatterspike/i,\n\t\tname : \"Shatterspike\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\tdescription : \"Versatile (1d10); Against objects: always critical hit, can choose to deal bludgeoning damage\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"spear of backbiting\"] = {\n\tname : \"Spear of Backbiting\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (spear)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This spear has +2 to hit and damage, +30 ft range, and deals +1d6 damage when thrown. After a throwing attack, it flies back to my hand immediately. While its curse lasts, I'm unwilling to part with it and have disadv. on attacks with other weapon. Also, on a roll of 1 to hit, I roll the attack again, but at myself with adv.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, its normal and long ranges both increase by 30 feet. and it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the weapon, keeping it within reach at all times. In addition, you have disadvantage on attack rolls made with weapons other than this one.\\n   Whenever you roll a 1 on an attack roll using this weapon, the weapon bends or flies to hit you in the back. Make a new attack roll with advantage against your own AC. If the result is a hit, you take damage as if you had attacked yourself with the spear.\",\n\tattunement : true,\n\tweight : 3,\n\tcursed : true,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"spear\",\n\t\tregExpSearch : /^(?=.*spear)(?=.*backbiting).*$/i,\n\t\tname : \"Spear of Backbiting\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\trange : \"Melee, 50/90 ft\",\n\t\tdescription : \"Thrown, versatile (1d8); +1d6 damage if thrown; Returning; On 1 to hit: attack myself with adv.\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"stone of ill luck\"] = {\n\tname : \"Stone of Ill Luck\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"C\",\n\tdescription : \"Although this polished agate appears to be a stone of good luck to anyone who tries to identify it. While it is on my person, it gives me a +1 bonus and a -2 penalty (from the curse) to ability checks and saving throws (for a total of -1). Until the curse is broken, I am unwilling to part with the item.\",\n\tdescriptionFull : \"This polished agate appears to be a stone of good luck to anyone who tries to Identify it, and it confers that item's property while on your person.\\n   \" + toUni(\"Curse\") + \". This item is cursed. While it is on your person, you take a -2 penalty to ability checks and saving throws. Until the curse is discovered, the DM secretly applies this penalty, assuming you are adding the item's bonus. You are unwilling to part with the stone until the curse is broken with Remove Curse or similar magic.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true,\n\taddMod : [\n\t\t{ type : \"save\", field : \"all\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my saving throws.\" },\n\t\t{ type : \"skill\", field : \"all\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my ability checks.\" },\n\t\t{ type : \"skill\", field : \"Init\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my ability checks.\" }\n\t]\n}\nMagicItemsList[\"wand of entangle\"] = {\n\tname : \"Wand of Entangle\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wand\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"This wand has 7 charges, regaining 1d6+1 expended charges daily at dawn. If I use its last charge, I roll a d20. On a 1, it is destroyed. As an action, I can expend 1 charge to cast Entangle (save DC 13) from it.\",\n\tdescriptionFull : \"This wand has 7 charges. While holding it, you can use an action to expend 1 of its charges to cast the Entangle spell (save DC 13) from it.\\n   The wand regains 1d6+1 expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand crumbles into ashes and is destroyed.\",\n\tattunement : true,\n\tweight : 1,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tusages : 7,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+1\",\n\tfixedDC : 13,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"entangle\"],\n\t\tselection : [\"entangle\"],\n\t\tfirstCol : 1\n\t}]\n}\nMagicItemsList[\"waythe\"] = {\n\tname : \"Waythe\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (greatsword)\",\n\trarity : \"legendary\",\n\tstoryItemAL : true,\n\tdescription : \"This greatsword adds +1 to hit and damage. Against giants, it deal +2d6 damage and they must make a DC 15 Str save or be knocked prone. It has 7 charges, regaining 1d6+1 at dawn. As an action, I can expend 1 charge to speak its command word to detect enemies within 60 ft. Waythe is sentient, see Notes page.\",\n\tdescriptionLong : \"This greatsword adds a +1 bonus to attack and damage rolls made with it. Against giants, it deal 2d6 extra slashing damage and when a giant is hit with it, they must make a DC 15 Strength saving throw or be knocked prone. It has 7 charges, regaining 1d6+1 at dawn. As an action, I can expend 1 charge to speak its command, letting me know the direction of the nearest creature hostile to me within 60 ft, regardless of it being ethereal, invisible, disguised, or hidden. This lasts for 1 minute. Waythe is sentient and has a mind of its own, see Notes page.\",\n\tdescriptionFull : \"Waythe is a unique greatsword most recently in the possession of a high-ranking cloud giant ambassador.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. When you hit a creature of the giant type with it, the giant takes an extra 2d6 slashing damage, and it must succeed on a DC 15 Strength saving throw or fall prone.\\n   The sword also functions as a wand of enemy detection. It regains all of its expended charges at dawn and isn't at risk of crumbling if its last charge is used.\\n   \" + toUni(\"Sentience\") + \". Waythe is a sentient weapon of neutral good alignment, with an Intelligence of 12, a Wisdom of 2, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet.\\n   The weapon can speak and understand Giant and Common, and it can communicate telepathically with its wielder.\\n   \" + toUni(\"Personality\") + \". This sword believes in freedom and allowing others to live as they see fit. It is protective of its friends, and wants to be friends with a like-minded wielder. (It takes only 1 minute for a good-aligned character to gain attunement with the sword.) Waythe is courageous to the point of foolhardiness, however, and vocally urges bold action. It is likely to come into conflict with an evil or a timid wielder.\",\n\tattunement : true,\n\tweight : 6,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greatsword\",\n\t\tregExpSearch : /waythe/i,\n\t\tname : \"Waythe\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\tdescription : \"Heavy, two-handed; +2d6 damage vs. giants; Giants DC 15 Str save or fall prone\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 7,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+1\",\n\taction : [[\"action\", \"\"]],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc([\n\t\t\t\"It takes only 1 minute for a good-aligned character to gain attunement with this sword.\",\n\t\t\t\"I gain a +1 bonus to attack and damage rolls made with this magic greatsword. When I hit a creature of the giant type with it, it deals an extra 2d6 slashing damage, and the giant must succeed on a DC 15 Strength saving throw or fall prone.\",\n\t\t\t\"Waythe has 7 charges and regains 1d6+1 expended charges daily at dawn. As an action while holding it, I can expend 1 charge to speak its command word. For the next minute, I know the direction of the nearest creature hostile to me within 60 ft, but not its distance from me. Waythe can sense the presence of hostile creatures that are ethereal, invisible, disguised, or hidden, as well as those in plain sight. The effect ends if I stop holding Waythe.\",\n\t\t\t\"Waythe is a sentient weapon of neutral good alignment, with an Intelligence of 12, a Wisdom of 2, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet, can speak and understand Giant and Common, and can communicate telepathically with its wielder.\",\n\t\t\t\"Waythe believes in freedom and allowing others to live as they see fit. It is protective of its friends, and wants to be friends with a like-minded wielder. Waythe is courageous to the point of foolhardiness, however, and vocally urges bold action. It is likely to come into conflict with an evil or a timid wielder.\"\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\n\t}]\n}\nMagicItemsList[\"white dragonhide cape\"] = { // worn by king Snurre\n\tname : \"White Dragonhide Cape\",\n\tsource : [[\"TftYP\", 193]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"I have resistance to cold damage while wearing this cape\",\n\tdescriptionFull : \"This magic cape grants the wearer resistance to cold damage.\",\n\tdmgres : [\"Cold\"]\n}\nMagicItemsList[\"spellcasting bolts\"] = {\n\tname : \"Spellcasting Bolts\",\n\tsource : [[\"TftYP\", 209]],\n\ttype : \"weapon (crossbow bolts)\",\n\trarity : \"rare\",\n\tmagicItemTable : \"B\",\n\tdescription : \"These magical crossbow bolts cast a spell on the target they are used on.\",\n\tdescriptionFull : \"These magical crossbow bolts cast a spell on the target they are used on. The spell has a save DC of 15 and a duration of 1 minute.\",\n\tchoices : [\"Bolt of Holding\", \"Bolt of Blinding\", \"Bolt of Vapors\"],\n\t\"bolt of holding\" : {\n\t\tname : \"Bolt of Holding\",\n\t\tdescription : \"This magic crossbow bolt casts Hold Person on the target hit with it, as well as up to two others within 30 ft of that target. The targets must succeed on a DC 15 Wisdom save or be paralyzed for 1 minute. At the end of each of their turns, they can make another Wisdom save to end the effect on themselves.\",\n\t\tdescriptionFull : \"This magic bolt casts hold person on the target hit with it, as well as up to two other targets within 30 feet of that target. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t},\n\t\"bolt of blinding\" : {\n\t\tname : \"Bolt of Blinding\",\n\t\tdescription : \"This magic bolt casts Blindness/Deafness on the target hit with it, as well as up to two others within 30 ft of that target. The targets must make a DC 15 Con save or be blinded or deafened (my choice) for 1 minute. At the end of each of their turns, a target can make another Con save to end the effect on itself.\",\n\t\tdescriptionFull : \"This magic bolt casts blindness/deafness to blind on a target hit with the bolt, as well as up to two other targets within 30 feet of that target. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t},\n\t\"bolt of vapors\" : {\n\t\tname : \"Bolt of Vapors\",\n\t\tdescription : \"This magic crossbow bolt casts Stinking Cloud centered on the point it hits, creating a 20-ft radius sphere of yellow, nauseating gas there for 1 minute. It heavily obscures and creatures fully in the cloud or starting their turn in it must make a DC 15 Con save against poison or spend their action that turn retching.\",\n\t\tdescriptionFull : \"This magic bolt casts stinking cloud centered on the point it hits. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t}\n}\nMagicItemsList[\"berserker battleaxe (tamoachan)\"] = {\n\tname : \"Berserker Battleaxe (Tamoachan)\", // can't just be \"Berserker Battleaxe\" or the magic item \"Berserker Axe\" wouldn't work anymore\n\tsource : [[\"TftYP\", 68]], // Tloques' battleaxe\n\ttype : \"weapon (battleaxe)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"H\",\n\tdescription : \"This axe gives +2 to hit and damage, +1 HP per level, and has 12 charges to cast spells, regaining 1d6+4 at dawn. I can't part with it, have disadv. with other weapons, and if I'm damaged by a hostile, I must make a DC 15 Wis save or go berserk: attack the closest creature with the axe until none remain within 60 ft.\",\n\tdescriptionLong : \"This axe adds a +2 bonus to attack and damage rolls made with it. While attuned to it, my HP maximum increases by 1 for each level I have. It has scrolls of Passwall, Burning Hands, and Gust of Wind beneath the wrappings of its handle. As long as these remain there, it has 12 charges to cast these spells, regaining 1d6+4 at dawn. It is cursed, making it so that I can't part with it and have disadvantage on attack rolls made with other weapons. If I'm damaged by a hostile, I must make a DC 15 Wis save or go berserk, using my action each turn to attack the closest creature with the axe until none remain within 60 ft.\",\n\tdescriptionFull : \"This battleaxe has a blade of bronze, and the haft is wound with snakeskin wrappings. You gain a +2 bonus to attack and damage rolls made with this magic weapon. In addition, while you are attuned to this weapon, your hit point maximum increases by 1 for each level you have attained.\\n   Concealed beneath the wrappings around the handle is a parchment containing the spells passwall, burning hands, and gust of wind. When the attuned wielder uses an action to say the correct words of power, which are engraved in Olman on the axe blade, one of these spells can be cast.\\n   The axe has 12 charges and regains 1d6+4 expended charges daily at dawn. Casting a spell from it takes a number of charges equal to the level at which the spell is cast (5th for passwall, 2nd for gust of wind, and 1st or higher for burning hands; spell save DC 15). If the parchment is removed from the axe, the axe loses the capability of casting these spells forever.\\n   \" + toUni(\"Curse\") + \". This axe is cursed, and becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the axe, keeping it within reach at all times. You also have disadvantage on attack rolls with weapons other than this one, unless no foe is within 60 feet of you that you can see or hear.\\n   Whenever a hostile creature damages you while the axe is in your possession, you must succeed on a DC 15 Wisdom saving throw or go berserk. While berserk, you must use your action each round to attack the creature nearest to you with the axe. If you can make extra attacks as part of the Attack action, you use those extra attacks, moving to attack the next nearest creature after you fell your current target. If you have multiple possible targets, you attack one at random. You are berserk until you start your turn with no creatures within 60 feet of you that you can see or hear.\",\n\tattunement : true,\n\tweight : 4,\n\tusages : 12,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+4\",\n\tlimfeaname : \"Berserker Battleaxe\",\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1+ charges\",\n\t\tspells : [\"burning hands\"],\n\t\tselection : [\"burning hands\"],\n\t\tfirstCol : \"1+\"\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"gust of wind\"],\n\t\tselection : [\"gust of wind\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"passwall\"],\n\t\tselection : [\"passwall\"],\n\t\tfirstCol : 5\n\t}],\n\tspellChanges : {\n\t\t\"burning hands\" : {\n\t\t\tdescription : \"All in area 3d6+1d6/extra charge Fire dmg; save halves; unattended flammable objects ignite\",\n\t\t\tchanges : \"The spell level this is cast at depends on the amount of charges spend, 1 charge per spell slot level.\"\n\t\t}\n\t},\n\tcalcChanges : {\n\t\thp : function (totalHD) { return [totalHD]; }\n\t},\n\tweaponOptions : [{\n\t\tbaseWeapon : \"battleaxe\",\n\t\tregExpSearch : /^(?=.*berserker)(?=.*battleaxe).*$/i,\n\t\tname : \"Berserker Battleaxe\",\n\t\tsource : [[\"TftYP\", 68]],\n\t\tdescription : \"Versatile (1d10); Cursed\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"plantslayer longsword\"] = {\n\tname : \"Plantslayer Longsword\",\n\tsource : [[\"TftYP\", 70]], // from Stone Statue\n\ttype : \"weapon (longsword)\",\n\trarity : \"rare\",\n\tmagicItemTable : \"F\",\n\tdescription : \"This sword is made of laminated wood, inset with jagged teeth of obsidian. I gain a +1 bonus to attack and damage rolls made with this magic weapon. In addition, it deals an extra 2d6 damage to any creature of the plant type.\",\n\tdescriptionFull : \"This sword is made of laminated wood, inset with jagged teeth of obsidian. You gain a +1 bonus to attack and damage rolls made with this magic weapon. In addition, it deals an extra 2d6 damage to any creature of the plant type.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*plantslayer)(?=.*longsword).*$/i,\n\t\tname : \"Plantslayer Longsword\",\n\t\tsource : [[\"TftYP\", 70]],\n\t\tdescription : \"Versatile (1d10); +2d6 damage vs. plants\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\n\n// pub_20170915_Tortle.js\r\n// This file adds the Tortle Race from the Tortle Package from Extra Life to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.TP={\r\n\tname : \"Tortle Package\",\r\n\tabbreviation : \"TP\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/221716/Tortle-Package-5e\",\r\n\tdate : \"2017/09/15\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// The Tortle race\r\nRaceList.tortle = {\r\n\tregExpSearch : /tortle/i,\r\n\tname : \"Tortle\",\r\n\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\tplural : \"Tortles\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Aquan\"],\r\n\tskills : [\"Survival\"],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*shell).*$/i,\r\n\t\tname : \"Tortle's Shell\",\r\n\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\tac : 17,\r\n\t\tdex : -10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*\\bclaws?\\b).*$/i,\r\n\t\tname : \"Tortle's Claws\",\r\n\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood by the age of 15 and live an average of 50 years\",\r\n\theight : \" stand between 5 and 6 feet tall (4'10\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 450 lb (400 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 and 1,8 metres tall (150 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 190 kg (180 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 0, 0, 0, 1, 0],\r\n\taction : [[\"action\", \"Shell Defense (start)\"], [\"bonus action\", \"Shell Defense (end)\"]],\r\n\ttrait : \"Tortle (+2 Strength, +1 Wisdom)\"+\r\n\t\"\\n \\u2022 Claws: My unarmed strikes with my claws deal 1d4 slashing damage.\"+\r\n\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 1 hour at a time.\"+\r\n\t\"\\n \\u2022 Natural Armor: I have a base AC of 17, but I can't add my Dex to it or wear armor.\"+\r\n\t\"\\n \\u2022 Shell Defense: As an action, I can withdraw into my shell and gain +4 AC and adv. on Str and Con saves, but I count as prone, have speed 0, have disadv. on Dex saves, and can't take reactions. The only action I can take is a bonus action to emerge from the shell.\"\r\n};\r\n\n// pub_20170919_ToA.js\r\n// This file adds the backgrounds and beasts from the Tomb of Annihilation adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.ToA={\r\n\tname : \"Tomb of Annihilation [backgrounds, beasts, items]\",\r\n\tabbreviation : \"ToA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/tomb-annihilation\",\r\n\tdate : \"2017/09/19\"\r\n};\r\n\r\n// Add Human to Yuan-ti tranformation from the ritual (excluded by default)\r\nAddRacialVariant(\"human\", \"yuan-ti transformed\", {\r\n\tdefaultExcluded : true,\r\n\tregExpSearch : /^(?!.*variant)(?=.*yuan.ti)(?=.*transformed)?.*$/i,\r\n\tsource : [[\"ToA\", 119]],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\timmune : [\"poison\"],\r\n\t\tadv_vs : [\"magic\"]\r\n\t},\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"1 snake (beast) with less than 4 Int save or charmed for the duration\",\r\n\t\t\tchanges : \"Using Innate Spellcasting, I can cast Animal Friendship at will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"suggestion\" : {\r\n\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Yuan-ti Human (+1 to all ability scores)\\n   Madness: I suffer from an indefinite madness (DMG 258).\\n   Innate Spellcasting: I know the Poison Spray cantrip and can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\\n   Magic Resistance: I have advantage on saves against spells and other magical effects.\"\r\n});\r\nif (RaceSubList['human-variant']) {\r\n\tAddRacialVariant(\"human\", \"yuan-ti transformed variant\", {\r\n\t\tdefaultExcluded : true,\r\n\t\tregExpSearch : /^(?=.*variant)(?=.*yuan.ti)(?=.*transformed)?.*$/i,\r\n\t\tsource : [[\"ToA\", 119]],\r\n\t\tskillstxt : \"Choose any one skill\",\r\n\t\tscorestxt : \"+1 to two different ability scores of my choice\",\r\n\t\tscores : [0, 0, 0, 0, 0, 0],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : {\r\n\t\t\timmune : [\"poison\"],\r\n\t\t\tadv_vs : [\"magic\"]\r\n\t\t},\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\t\tfirstCol : 'atwill',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"animal friendship\" : {\r\n\t\t\t\tdescription : \"1 snake (beast) with less than 4 Int save or charmed for the duration\",\r\n\t\t\t\tchanges : \"Using Innate Spellcasting, I can cast Animal Friendship at will, but only to target snakes.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tfeatures : {\r\n\t\t\t\"suggestion\" : {\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Yuan-ti Human (+1 to two different ability scores of my choice)\\n   Skill & Feat: I gain proficiency in one skill of my choice and I gain one feat of my choice.\\n   Madness: I suffer from an indefinite madness (DMG 258).\\n   Innate Spellcasting: I know the Poison Spray cantrip and can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\\n   Magic Resistance: I have advantage on saves against spells and other magical effects.\",\r\n\t\teval : RaceSubList['human-variant'].eval,\r\n\t\tremoveeval : RaceSubList['human-variant'].removeeval\r\n\t});\r\n}\r\n\r\n// Backgrounds (with contributions by SoilentBrad and @lowbrr)\r\nBackgroundList[\"anthropologist\"] = {\r\n\tregExpSearch : /anthropologist/i,\r\n\tname : \"Anthropologist\",\r\n\tsource : [[\"ToA\", 191], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Religion\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Leather-bound diary\", \"\", 5],\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Trinket of special significance\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Adept Linguist\",\r\n\ttrait : [\r\n\t\t\"I prefer the company of those who aren't like me, including people of other races.\",\r\n\t\t\"I'm a stickler when it comes to observing proper etiquette and local customs.\",\r\n\t\t\"I would rather observe than meddle.\",\r\n\t\t\"By living among violent people, I have become desensitized to violence.\",\r\n\t\t\"I would risk life and limb to discover a new culture or unravel the secrets of a dead one.\",\r\n\t\t\"When I arrive at a new settlement for the first time, I must learn all its customs.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Discovery\",\r\n\t\t\t\"Discovery: I want to be the first person to discover a lost culture. (Any)\"\r\n\t\t],\r\n\t\t[\"Distance\",\r\n\t\t\t\"Distance: One must not interfere with the affairs of another culture \\u2015 even one in need of aid. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: By understanding other races and cultures, we learn to understand ourselves. (Any)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Common people crave strong leadership, and I do my utmost to provide it. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Protection\",\r\n\t\t\t\"Protection: I must do everything possible to save a society facing extinction. (Good)\"\r\n\t\t],\r\n\t\t[\"Indifferent\",\r\n\t\t\t\"Indifferent: Life is cruel. What's the point in saving people if they're going to die anyway? (Chaotic)\"\r\n\t\t],\r\n\t],\r\n\tbond : [\r\n\t\t\"My mentor gave me a journal filled with lore and wisdom. Losing it would devastate me.\",\r\n\t\t\"Having lived among the people of a primeval tribe or clan, I long to return and see how they are faring.\",\r\n\t\t\"Years ago, tragedy struck the members of an isolated society I befriended, and I will honor them.\",\r\n\t\t\"I want to learn more about a particular humanoid culture that fascinates me.\",\r\n\t\t\"I seek to avenge a clan, tribe, kingdom, or empire that was wiped out.\",\r\n\t\t\"I have a trinket that I believe is the key to finding a long-lost society.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Boats make me seasick.\",\r\n\t\t\"I talk to myself, and I don't make friends easily.\",\r\n\t\t\"I believe that I'm intellectually superior to people from other cultures and have much to teach them.\",\r\n\t\t\"I've picked up some unpleasant habits living among goblins, lizardfolk, or orcs.\",\r\n\t\t\"I complain about everything.\",\r\n\t\t\"I wear a tribal mask and never take it off.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Adopted Culture\",\r\n\t\t\"Aarakocra\",\r\n\t\t\"Dwarf\",\r\n\t\t\"Elf\",\r\n\t\t\"Goblin\",\r\n\t\t\"Halfling\",\r\n\t\t\"Human\",\r\n\t\t\"Lizardfolk\",\r\n\t\t\"Orc\",\r\n\t],\r\n\tlanguageProfs : [2]\r\n};\r\nBackgroundList[\"archaeologist\"] = {\r\n\tregExpSearch : /archa?eologist/i,\r\n\tname : \"Archaeologist\",\r\n\tsource : [[\"ToA\", 192], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Survival\"],\r\n\tgold : 25,\r\n\tequipleft : [\r\n\t\t[\"Map case with a map of a ruin/dungeon\", \"\", 1],\r\n\t\t[\"Bullseye lantern\", \"\", 2],\r\n\t\t[\"Miner's pick\", \"\", 10],\r\n\t\t[\"Shovel\", \"\", 5],\r\n\t\t[\"Two-person tent\", \"\", 20]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Trinket recovered from a dig site\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Historical Knowledge\",\r\n\ttrait : [\r\n\t\t\"I love a good puzzle or mystery.\",\r\n\t\t\"I'm a pack rat who never throws anything away.\",\r\n\t\t\"Fame is more important to me than money.\",\r\n\t\t\"I have no qualms about stealing from the dead.\",\r\n\t\t\"I'm happier in a dusty old tomb than I am in the centers of civilization.\",\r\n\t\t\"Traps don't make me nervous. Idiots who trigger traps make me nervous.\",\r\n\t\t\"I might fail, but I will never give up.\",\r\n\t\t\"You might think I'm a scholar, but I love a good brawl. These fists were made for punching.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Preservation\",\r\n\t\t\t\"Preservation: That artifact belongs in a museum. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I won't risk my life for nothing. I expect some kind of payment. (Any)\"\r\n\t\t],\r\n\t\t[\"Death Wish\",\r\n\t\t\t\"Death Wish: Nothing is more exhilarating than a narrow escape from the jaws of death. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Dignity\",\r\n\t\t\t\"Dignity: The dead and their belongings deserve to be treated with respect. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Immortality\",\r\n\t\t\t\"Immortality: All my exploring is part of a plan to find the secret of everlasting life. (Any)\"\r\n\t\t],\r\n\t\t[\"Danger\",\r\n\t\t\t\"Danger: With every great discovery comes grave danger. The two walk hand in hand. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"Ever since I was a child, I've heard stories about a lost city. I aim to find it, learn its secrets, and earn my place in the history books.\",\r\n\t\t\"I want to find my mentor, who disappeared on an expedition some time ago.\",\r\n\t\t\"I have a friendly rival. Only one of us can be the best, and I aim to prove it's me.\",\r\n\t\t\"I won't sell an art object or other treasure that has historical significance or is one of a kind.\",\r\n\t\t\"I'm secretly in love with the wealthy patron who sponsors my archaeological exploits.\",\r\n\t\t\"I hope to bring prestige to a library, a museum, or a university.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have a secret fear of some common wild animal \\u2015 and in my work, I see them everywhere.\",\r\n\t\t\"I can't leave a room without searching it for secret doors.\",\r\n\t\t\"When I'm not exploring dungeons or ruins, I get jittery and impatient.\",\r\n\t\t\"I have no time for friends or family. I spend every waking moment thinking about and preparing for my next expedition.\",\r\n\t\t\"When given the choice of going left or right, I always go left.\",\r\n\t\t\"I can't sleep except in total darkness.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Signature Item\",\r\n\t\t\"10-foot pole\",\r\n\t\t\"Crowbar\",\r\n\t\t\"Hat\",\r\n\t\t\"Hooded lantern\",\r\n\t\t\"Medallion\",\r\n\t\t\"Shovel\",\r\n\t\t\"Sledgehammer\",\r\n\t\t\"Whip\"\r\n\t],\r\n\ttoolProfs : [[\"Cartographer or navigator tools\", 1]],\r\n\tlanguageProfs : [1]\r\n};\r\n\r\n// Background features (with contributions by SoilentBrad and @lowbrr)\r\nBackgroundFeatureList[\"adept linguist\"] = {\r\n\tdescription : \"I can communicate with humanoids who don't speak any language I know. I must observe the humanoids interacting with one another for at least one day, after which I learn a handful of important words, expressions, and gestures \\u2015 enough to communicate on a rudimentary level.\",\r\n\tsource : [[\"ToA\", 191], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"historical knowledge\"] = {\r\n\tdescription : \"When I enter a ruin or dungeon, I can correctly ascertain its original purpose and determine its builders, whether those were dwarves, elves, humans, yuan-ti, or some other known race. In addition, I can determine the monetary value of art objects more than a century old.\",\r\n\tsource : [[\"ToA\", 192], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Weapon\r\nWeaponsList[\"yklwa\"] = {\r\n\tregExpSearch : /yklwa/i,\r\n\tname : \"Yklwa\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Simple\",\r\n\tdamage : [1, 8, \"piercing\"],\r\n\trange : \"Melee, 10/30 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Thrown\",\r\n\tmonkweapon : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Gear\r\nGearList[\"rain catcher\"] = {\r\n\tinfoname : \"Rain catcher [1 gp]\",\r\n\tname : \"Rain catcher\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 1,\r\n\tweight : 5\r\n};\r\nGearList[\"insect repellent salve\"] = {\r\n\tinfoname : \"Salve (vial) [5 sp]\",\r\n\tname : \"Insect Repellent Salve, applications of\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 20,\r\n\tweight : \"\",\r\n\ttype : \"insect repellent\"\r\n};\r\nGearList[\"insect repellent incense\"] = {\r\n\tinfoname : \"Incense (block) [1 gp]\",\r\n\tname : \"Insect Repellent Incense, blocks of\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 1,\r\n\tweight : \"\",\r\n\ttype : \"insect repellent\"\r\n};\r\n\r\n// Creatures\r\n// The following creatures were transcribed with the help of SoilentBrand and @lowbrr\r\nCreatureList[\"almiraj\"] = {\r\n\tname : \"Almiraj\",\r\n\tsource : [[\"ToA\", 211]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"50 ft\",\r\n\tscores : [2, 16, 10, 2, 14, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 5,\r\n\t},\r\n\tsenses : \"Darkvision 30 ft; Adv. on Wis (Perception) checks using hearing/sight\",\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Horn\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Senses\",\r\n\t\tdescription : \"The almiraj has advantage on Wisdom (Perception) checks that rely on hearing or sight.\"\r\n\t}]\r\n};\r\nCreatureList[\"flying monkey\"] = {\r\n\tname : \"Flying Monkey\",\r\n\tnameAlt : [\"Monkey, Flying\"],\r\n\tsource : [[\"ToA\", 220]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"30 ft, climb 20 ft, fly 30 ft\",\r\n\tscores : [8, 14, 11, 5, 12, 6],\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The flying monkey has advantage on an attack roll against a creature if at least one of the monkey's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}]\r\n};\r\nCreatureList[\"giant snapping turtle\"] = {\r\n\tname : \"Giant Snapping Turtle\",\r\n\tnameAlt : [\"Turtle, Giant Snapping\"],\r\n\tsource : [[\"ToA\", 222]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 17,\r\n\thp : 75,\r\n\thd : [10, 10],\r\n\tspeed : \"30 ft, swim 40 ft\",\r\n\tscores : [19, 10, 14, 2, 12, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amphibious\",\r\n\t\tdescription : \"The turtle can breathe air and water.\"\r\n\t}, {\r\n\t\tname : \"Stable\",\r\n\t\tdescription : \"Whenever an effect knocks the turtle prone, it can make a DC 10 Constitution saving throw to avoid being knocked prone. A prone turtle is upside down. To stand up, it must succeed on a DC 10 Dexterity check on its turn and then use all its movement for that turn. While prone, the turtle's AC becomes 12.\"\r\n\t}]\r\n};\r\nCreatureList[\"jaculi\"] = {\r\n\tname : \"Jaculi\",\r\n\tsource : [[\"ToA\", 225]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 16,\r\n\thd : [3, 10],\r\n\tspeed : \"30 ft, climb 20 ft\",\r\n\tscores : [15, 14, 11, 2, 8, 3],\r\n\tskills : {\r\n\t\t\"athletics\" : 4,\r\n\t\t\"perception\" : 1,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tsenses : \"Blindsight 30 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after at least 10 ft jump, adv. on to hit and extra 2d6 damage, see Spring trait\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Spring\",\r\n\t\tdescription : \"The jaculi springs up to 30 feet in a straight line and makes a bite attack against a target within its reach. This attack has advantage if the jaculi springs at least 10 feet. If the attack hits, the bite deals an extra 7 (2d6) piercing damage.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Camouflage\",\r\n\t\tdescription : \"The jaculi has advantage on Dexterity (Stealth) checks made to hide.\"\r\n\t}, {\r\n\t\tname : \"Keen Smell\",\r\n\t\tdescription : \"The jaculi has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Blindsight 30 ft.\",\r\n\t\t\"##Camouflage##. Advantage on Dexterity (Stealth) checks made to hide.\",\r\n\t\t\"##Keen Smell##. Advantage on Wisdom (Perception) checks that rely on smell.\",\r\n\t\t\"##Spring##. 30 ft in a straight line and make a bite attack. Advantage on the attack roll if springing at least 10 ft. It deals an extra 7 (2d6) piercing damage on a hit.\",\r\n\t].join(\"\\n\"),\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"bob\"] = { // contributed by Nod_Hero\r\n\tname : \"Bob\",\r\n\tsource : [[\"ToA\", 89]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Dwarvish runes on the head of this rusty battleaxe read 'Bob'. It adds a +1 bonus to attack and damage rolls made with it, floats on water and other liquids, and grants me advantage on Strength (Athletics) checks made to swim.\",\r\n\tdescriptionFull : \"Etched into the haft of the battleaxe are Dethek (Dwarvish) runes that spell the weapon's name: Bob. It floats on water and other liquids, adds a +1 bonus to attack and damage rolls made with it, and grants its bearer advantage on Strength (Athletics) checks made to swim.\",\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /\\bbob\\b/i,\r\n\t\tname : '\"Bob\"',\r\n\t\tsource : [[\"ToA\", 89]],\r\n\t\tdescription : \"Versatile (1d10); Floats\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"longsword of speaking draconic\"] = { // contributed by Nod_Hero\r\n\tname : \"Longsword of Speaking Draconic\",\r\n\tsource : [[\"ToA\", 173]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This longsword has a dragon-shaped hilt. While I carry it, I gain the ability to speak and understand the Draconic language.\",\r\n\tdescriptionFull : \"This longsword has a dragon-shaped hilt. While you carry it, you gain the ability to speak and understand the Draconic language.\",\r\n\tweight : 3,\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tweaponsAdd : {\r\n\t\tselect : [\"Longsword of Speaking Draconic\"],\r\n\t\toptions : [\"Longsword of Speaking Draconic\"]\r\n\t}\r\n};\r\nMagicItemsList[\"amulet of the black skull\"] = {\r\n\tname : \"Amulet of the Black Skull\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"The obsidian amulet has 6 charges, regaining 1d6 at dawn. As an action, I can expend a charge to teleport to a location within 100 ft that I'm familiar with. If I'm not undead, I must make a DC 16 Con save whenever I do so and if I fail, I'm transformed (see table on Notes page) as I arrive at the destination.\",\r\n\tdescriptionFull : \"This amulet is carved from obsidian and shaped like a screaming humanoid skull, with ruby eyes and emeralds for teeth. It hangs from an iron chain necklace.\\n   The amulet has 6 charges and regains 1d6 charges daily at dawn. While wearing the amulet, you can use an action to expend 1 of its charges to transport yourself and anything you are wearing or carrying to a location within 100 feet of you. The destination you choose doesn't need to be in your line of sight, but it must be familiar to you (in other words, a place you have seen or visited), and it must be on the same plane of existence as you. This effect isn't subject to the magic restrictions placed on the Tomb of the Nine Gods; thus, the amulet can be used to enter and exit the tomb.\\n   If you aren't undead, you must make a DC 16 Constitution saving throw each time you use the amulet to teleport. On a failed saving throw, the black skull cackles as you are transformed in transit. The transformation takes effect as soon as you arrive at the destination, and is determined randomly by rolling percentile dice and consulting the Black Skull Transformation table.\\n\\n\" + toUni(\"d100\\tTransformation\") + \"\\n01-20\\tThe symbol of Acererak is burned into your flesh, a curse that can only be removed with a Remove Curse spell or similar magic. Until the curse ends, your hit points can't be restored by magic.\\n21-35\\tYou grow larger as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\\n36-50\\tYou grow smaller as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\\n51-70\\tYou arrive at the destination wearing nothing but the amulet of the black skull. Everything else that you were wearing or carrying appears in a random unoccupied space within 100 feet of you.\\n71-95\\tYou are paralyzed for 1 minute or until this effect is ended with a Lesser Restoration spell or similar magic.\\n96-00\\tYou become petrified. This effect can be ended only with a Greater Restoration spell or similar magic.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Transformation Table\",\r\n\t\tnote : [\r\n\t\t\t\"This amulet is carved from obsidian and shaped like a screaming humanoid skull, with ruby eyes and emeralds for teeth. It hangs from an iron chain necklace.\",\r\n\t\t\t\"If I'm not undead, I must make a DC 16 Constitution save each time I use the amulet to teleport. On a failure, the black skull cackles as I'm transformed in transit. The transformation is random (see table below) and takes effect as soon as I arrive at the destination.\",\r\n\t\t\t\"d100\\tTRANSFORMATION\",\r\n\t\t\t\"01-20\\tThe symbol of Acererak is burned into my flesh, a curse that can only be removed with a Remove Curse spell or similar magic. Until the curse ends, my hit points can't be restored by magic.\",\r\n\t\t\t\"21-35\\tI grow larger as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\",\r\n\t\t\t\"36-50\\tI grow smaller as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\",\r\n\t\t\t\"51-70\\tI arrive at the destination wearing nothing but the amulet of the black skull. Everything else that I was wearing or carrying appears in a random unoccupied space within 100 ft.\",\r\n\t\t\t\"71-95\\tI am paralyzed for 1 minute or until this effect is ended with a Lesser Restoration spell or similar magic.\",\r\n\t\t\t\"96-00\\tI become petrified. This effect can be ended only with a Greater Restoration spell or similar magic.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"bookmark\"] = {\r\n\tname : \"Bookmark\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This dagger adds +3 to hit and damage. As a bonus action while holding it, I can have it shed bright light in a 20-ft radius and dim light for another 20 ft, go dark, act as a compass, cast Dimension Door once per dawn, or cast Compulsion once per dawn, which effects only spiders of the beast type within 90 ft.\",\r\n\tdescriptionFull : \"This +3 dagger belongs to Artus Cimber. While you have the dagger drawn, you can use a bonus action to activate one of the following properties:\\n \\u2022 Cause a blue gem set into the dagger's pommel to shed bright light in a 20-foot radius and dim light for an additional 20 feet, or make the gem go dark.\\n \\u2022 Turn the dagger into a compass that, while resting on your palm, points north.\\n \\u2022 Cast Dimension Door from the dagger. Once this property is used, it can't be used again until the next dawn.\\n \\u2022 Cast Compulsion (save DC 15) from the dagger. The range of the spell increases to 90 feet but it targets only spiders that are beasts. Once this property is used, it can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /bookmark/i,\r\n\t\tname : \"Bookmark\",\r\n\t\tsource : [[\"ToA\", 206]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Compulsion (Bookmark)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Dimension Door (Bookmark)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"compulsion\", \"dimension door\"],\r\n\t\tselection : [\"compulsion\", \"dimension door\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"compulsion\" : {\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\trange : \"90 ft\",\r\n\t\t\tdescription : \"Any spiders that hear me save or I can, as bns, have it move fully in a direction; save again after move\",\r\n\t\t\tchanges : \"Using Bookmark, I can cast this as a bonus action with a range of 90 ft, but it can only target spiders with the beast type.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"ghost lantern\"] = {\r\n\tname : \"Ghost Lantern\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"As a bonus action, I can command the spirit in the lantern to shed bright light in 30-ft radius and dim light for another 30 ft. I can order the spirit to act as my Mage Hand. If I fall unconscious within 10 ft of the lantern, the spirit stabilizes me. Casting Dispel Evil and Good on it releases the spirit and makes it nonmagical.\",\r\n\tdescriptionFull : \"A restless spirit is trapped inside this lantern. While holding the lantern, you can command the spirit as a bonus action to shed bright light in a 30-foot radius and dim light for an additional 30 feet.\\n   While holding the lantern, you can use an action to order the spirit to leave the lantern and duplicate the effect of the Mage Hand spell. The spirit returns to the lantern when the spell ends.\\n   If you fall unconscious within 10 feet of the lantern, the spirit emerges from it, magically stabilizes you with a touch, and then quickly returns to the lantern.\\n   The spirit is bound to the lantern and can't be harmed, turned, or raised from the dead.\\n   Casting a Dispel Evil and Good spell on the lantern releases the spirit to the afterlife and renders the lantern nonmagical.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"mask of the beast\"] = {\r\n\tname : \"Mask of the Beast\",\r\n\tsource : [[\"ToA\", 207]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"This wooden mask is shaped in the likeness of a beast's visage and has 3 charges. While wearing the mask I can expend 1 charge and use the mask to cast the Animal Friendship spell as an action. The mask regains all expended charges at dawn.\",\r\n\tdescriptionFull : \"This wooden mask is shaped in the likeness of a beast's visage and has 3 charges. While wearing the mask you can expend 1 charge and use the mask to cast the Animal Friendship spell as an action. The mask regains all expended charges at dawn.\",\r\n\tweight : 1,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"animal friendship\"],\r\n\t\tselection : [\"animal friendship\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n}\r\nMagicItemsList[\"scorpion armor\"] = {\r\n\tname : \"Scorpion Armor\",\r\n\tsource : [[\"ToA\", 208]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"This suit of plate armor fashioned from giant scorpion chitin doesn't impose disadv. on stealth or saves against extreme heat. It gives me +5 bonus on initiative while I'm not incapacitated. Whenever I don or doff it, I take 10d10+45 poison damage, DC 15 Con save halves. Only a Wish can remove this curse.\",\r\n\tdescriptionFull : \"This suit of plate armor is fashioned from giant scorpion chitin. While wearing this armor, you gain the following benefits:\\n \\u2022 The armor improves your combat readiness, granting you a +5 bonus to initiative as long as you aren't incapacitated.\\n \\u2022 The armor doesn't impose disadvantage on your Dexterity (Stealth) checks.\\n \\u2022 The armor doesn't impose disadvantage on saving throws made to resist the effects of extreme heat (see chapter 5 of the Dungeon Master's Guide).\\n\\n\" + toUni(\"Curse\") + \". This armor is cursed. Whenever you don or doff it, you must make a DC 15 Constitution saving throw, taking 100 (10d10+45) poison damage on a failed save, or half as much damage on a successful one. Only a Wish spell can remove the armor's curse.\",\r\n\tattunement : true,\r\n\tweight : 65,\r\n\tcursed : true,\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : 5, text : \"I gain a +5 bonus on my initiative rolls.\" }],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*scorpion)(?=.*armor).*$/i,\r\n\t\tname : \"Scorpion Armor\",\r\n\t\tsource : [[\"ToA\", 208]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : 18,\r\n\t\tstealthdis : false,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\n// pub_20171011_One-Grung-Above.js\r\n// This file adds the Grung Race from the One Grung Above from Extra Life to MPMB's Character Record Sheet\r\n// This file contains contributions by /u/GoldenSnurp\r\n// Be aware that this race is not legal in adventurers league!\r\n\r\nSourceList[\"OGA\"] = {\r\n\tname : \"One Grung Above\",\r\n\tabbreviation : \"OGA\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/223738/One-Grung-Above-5e\",\r\n\tdate : \"2017/10/11\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nRaceList[\"grung\"] = {\r\n\tregExpSearch : /grung/i,\r\n\tname : \"Grung\",\r\n\tsource : [[\"OGA\", 4]],\r\n\tplural : \"Grung\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd: 25, enc: 15 },\r\n\t\tclimb : { spd: 25, enc: 15 }\r\n\t},\r\n\tlanguageProfs : [\"Grung\"],\r\n\tsavetxt : { immune: [\"poison\"] },\r\n\tskills : [\"Perception\"],\r\n\tage : \" reach adulthood at the age of one and live around 50 years\",\r\n\theight : \" range from 2 1/2 to 3 1/2 feet tall\",\r\n\tweight : \" weigh around 30 lb\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Grung (+2 Dexterity, +1 Constitution)\\nPoisonous Skin: Creatures that touch me must make a DC 12 Con save or be poisoned for 1 min, repeating the save at the end of each of its turns. My piercing weapon attacks deal +2d4 poison damage if the target fails a DC 12 Con save.\\nStanding Leap: Without a running start, I can long jump to 25 ft and high jump to 15 ft.\\nWater Dependency: I can breathe air and water. I need to be immersed in water for 1 hour every day or suffer 1 level of exhaustion at the end of that day until I immerse for 1 hour.\"\r\n};\r\n\n// pub_20171121_XGtE.js\r\n// This file adds the backgrounds and beasts from Xanathar's Guide to Everything to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.X={\r\n\tname : \"Xanathar's Guide to Everything\",\r\n\tabbreviation : \"XGtE\",\r\n\tabbreviationSpellsheet : \"X\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/xanathars-guide-everything\",\r\n\tdate : \"2017/11/21\"\r\n};\r\n\r\n// Add 3 subclasses for the Barbarian\r\nAddSubClass(\"barbarian\", \"ancestral guardian\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"X\", 9]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with an attack on my turn becomes distracted\",\r\n\t\t\t\t\"While distracted, it has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"In addition, everybody but me counts as having resistance to all of the target's attacks\",\r\n\t\t\t\t\"This lasts until the start of my next turn, or until my rage ends\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spirit Shield\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while raging when an ally I see within 30 ft is damaged, I can reduce it\",\r\n\t\t\t\t\"My guardian spirits reduce the damage by an amount equal to the roll of the dice\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d6 damage reduced\"; }),\r\n\t\t\taction : [[\"reaction\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast either Clairvoyance or Augury, without a spell slot or material components\",\r\n\t\t\t\t\"Augury consults ancestral spirits; Clairvoyance summons an invisible ancestral spirit\",\r\n\t\t\t\t\"Wisdom is my spellcasting ability for these spells\"\r\n\t\t\t]),\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"clairvoyance\"],\r\n\t\t\t\tselection : [\"clairvoyance\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"augury\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Omen about specific course of action I plan to take in the next 30 min\",\r\n\t\t\t\t\tchanges : \"My casting of Augury is a practice of consulting my ancestral spirits, thus requiring no material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"clairvoyance\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"My casting of Clairvoyance is a practice of consulting my an ancestral spirit of mine, thus requiring no material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"When using Spirit Shield, the attacker takes the reduced amount as force damage\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"storm herald\", {\r\n\tregExpSearch : /^(?=.*storm)(?=.*herald).*$/i,\r\n\tsubname : \"Path of the Storm Herald\",\r\n\tsubnameShort: \"Storm Herald\",\r\n\tfullname : \"Storm Herald\",\r\n\tsource : [[\"X\", 10]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Storm Aura\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the type of aura'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Desert\", \"Sea\", \"Tundra\"],\r\n\t\t\taction : [[\"bonus action\", \" (reactivate)\"]],\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Aura: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, anybody in my aura other than me takes fire damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 20 ? 5 : 6) + \" fire damage\"; })\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Aura: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, I can choose one creature in my aura other than me\",\r\n\t\t\t\t\t\"It takes lightning damage, or half as much on a successful Dexterity saving throw\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 10 ? 1 : n < 15 ? 2 : n < 20 ? 3 : 4) + \"d6 lightning damage\"; })\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Aura: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, all creatures of my choice in my aura gain temporary HP\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 20 ? 5 : 6) + \" temporary hit points\"; })\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature10\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature14\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Storm Soul\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Soul: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to fire damage and don't suffer the effects of extreme heat\",\r\n\t\t\t\t\t\"As an action, I can set fire to an unattended flammable object I touch\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (ignite)\"]],\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme heat\"] }\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Soul: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can breathe underwater and I have 30 ft swim speed\",\r\n\t\t\t\t\t\"In addition, I have resistance to lightning damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Lightning\"],\r\n\t\t\t\tspeed : { swim : { spd : 30, enc : 20 } }\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Soul: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to cold damage and don't suffer the effects of extreme cold\",\r\n\t\t\t\t\t\"As an action, I can turn a 5-ft cube of water to ice, which melts after 1 minute\",\r\n\t\t\t\t\t\"This action fails if there are any creatures within the cube of water\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (freeze)\"]],\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme cold\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shielding Storm\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"In rage, creatures of my choice within my Storm Aura also gain Storm Soul resistance\"),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Shielding Storm: Desert\",\r\n\t\t\t\tdescription : desc(\"While raging, creatures of my choice within my Storm Aura also gain resistance to fire\")\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Shielding Storm: Sea\",\r\n\t\t\t\tdescription : desc(\"In rage, creatures of my choice within my Storm Aura also gain resistance to lightning\")\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Shielding Storm: Tundra\",\r\n\t\t\t\tdescription : desc(\"While raging, creatures of my choice within my Storm Aura also gain resistance to cold\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Raging Storm\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Raging Storm: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when hit by a creature in my Storm Aura, I can have it make a Dex save\",\r\n\t\t\t\t\t\"On a failed save, the attacker takes fire damage equal to half my barbarian level\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (if hit)\"]],\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : Math.floor(n/2) + \" fire damage\"; })\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Raging Storm: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when I hit a creature in my Storm Aura, I can have it make a Str save\",\r\n\t\t\t\t\t\"On a failed save, the creature is knocked prone, as if struck by a wave\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (with attack)\"]]\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Raging Storm: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I activate my Storm Aura, I can choose a creature in my aura that I can see\",\r\n\t\t\t\t\t\"It must make a Str save or have its speed reduced to 0 until the start of my next turn\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"zealot\", {\r\n\tregExpSearch : /zealot/i,\r\n\tsubname : \"Path of the Zealot\",\r\n\tsubnameShort: \"Zealot\",\r\n\tfullname : \"Zealot\",\r\n\tsource : [[\"X\", 11]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Divine Fury\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\"This is necrotic or radiant damage equal to 1d6 + half my barbarian level\",\r\n\t\t\t\t'Choose a damage type using the \"Choose Feature\" button above'\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" damage\"; }),\r\n\t\t\tchoices : [\"Necrotic Damage\", \"Radiant Damage\"],\r\n\t\t\t\"necrotic damage\" : {\r\n\t\t\t\tname : \"Divine Fury\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\t\"It takes an extra 1d6 + half my barbarian level worth of necrotic damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"radiant damage\" : {\r\n\t\t\t\tname : \"Divine Fury\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\t\"It takes an extra 1d6 + half my barbarian level worth of radiant damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" radiant damage\"; })\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && classes.known.barbarian && classes.known.barbarian.level > 2 && (/\\brage\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tvar theDMG = GetFeatureChoice('class', 'barbarian', 'subclassfeature3');\r\n\t\t\t\t\t\t\tif (!theDMG) return;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6+' + Math.floor(classes.known.barbarian.level / 2) + ' ' + GetFeatureChoice('class', 'barbarian', 'subclassfeature3') + ' on first hit each turn';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Rage' in a melee weapon's name, it will show in its description that its first hit does extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Warrior of the Gods\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"Spells restoring me to life (not undeath or anything else) don't require material comp.\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fanatical Focus\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I fail a saving throw while raging, I can reroll it and must use the new roll\",\r\n\t\t\t\t\"I can use this ability only once per rage\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"rage\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Zealous Presence\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose up to 10 creatures within 60 ft that can hear my battle cry\",\r\n\t\t\t\t\"These creatures gain adv. on attacks and saves until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage Beyond Death\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, having 0 hit points doesn't knock me unconscious\",\r\n\t\t\t\t\"I still must make death saves, and I suffer the normal effects of taking damage\",\r\n\t\t\t\t\"I only die due to failed death saves if my rage ends while I'm at 0 HP\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Bard\r\nAddSubClass(\"bard\", \"college of glamour\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*glamour).*$/i,\r\n\tsubname : \"College of Glamour\",\r\n\tsubnameShort: \"Glamour\",\r\n\tsource : [[\"X\", 14]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mantle of Inspiration\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I expend one Bardic Inspiration die to aid those within 60 ft of me\",\r\n\t\t\t\t\"My Cha mod (min 1) of creatures that I can see and can see me gain temporary HP\",\r\n\t\t\t\t\"They can immediately use a reaction to move their speed, without opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"1 inspiration die; \" + (n < 5 ? 5 : n < 10 ? 8 : n < 15 ? 11 : 14) + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Enthralling Performance\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By performing for at least 1 minute, I can charm humanoids within 60 ft of me\",\r\n\t\t\t\t\"After the performance, my Cha mod (min 1) number of targets must make a Wis save\",\r\n\t\t\t\t\"On a fail, a target is charmed for 1 hour; If success, it doesn't knows I tried to charm it\",\r\n\t\t\t\t\"While charmed, the target idolizes me, hinders those opposing me, and avoids violence\",\r\n\t\t\t\t\"This lasts until a target takes damage, I attack it, or if it sees me attacking its allies\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I appear unearthly beautiful while I concentrate, up to 1 minute\",\r\n\t\t\t\t\"At the same time, and as a bonus action during, I can cast Command without a spell slot\",\r\n\t\t\t\t\"Creatures charmed by me automatically fail their saves against these Command spells\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\t\tspells : [\"command\"],\r\n\t\t\t\tselection : [\"command\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"command\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tdescription : \"1 crea save or follow one word command, e.g. approach, drop, flee, halt\",\r\n\t\t\t\t\tchanges : \"Using my Mantle of Majesty class feature, I can cast Command as a bonus action once per long rest without using a spell slot, thus only affect a single target.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I gain a magically majestic presence for 1 min or until incapacitated\",\r\n\t\t\t\t\"During this, the first time a creature attacks me each turn they must make a Cha save\",\r\n\t\t\t\t\"If failed, it can't attack me this turn and must choose another target or lose its attack\",\r\n\t\t\t\t\"If successful, it can attack, but has disadv. on all saves against my spells on my next turn\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of swords\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"X\", 15]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor and scimitars\",\r\n\t\t\t\t\"My bardic spellcasting focus can be any simple or martial weapon I'm proficient with\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Style\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc('Select a Fighting Style for the college of swords using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dueling\", \"Two-Weapon Fighting\"],\r\n\t\t\t\"dueling\" : FightingStyles.dueling,\r\n\t\t\t\"two-weapon fighting\" : FightingStyles.two_weapon\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action on my turn, I gain bonus speed and special attack options\",\r\n\t\t\t\t\"I gain +10 ft to my walking speed until the end of the current turn\",\r\n\t\t\t\t\"Once per turn when I hit with a weapon attack, I can expend a Bardic Inspiration die\",\r\n\t\t\t\t\"The roll of that die is added to the weapon's damage, in addition to one of the following:\",\r\n\t\t\t\t\"\\u2022 Defensive Flourish: the result is also added to my AC until the start of my next turn\",\r\n\t\t\t\t\"\\u2022 Slashing Flourish: the extra damage is also dealt to any of my choosing in 5 ft of me\",\r\n\t\t\t\t\"\\u2022 Mobile Flourish: the target is also pushed 5 plus the die result in feet away from me\",\r\n\t\t\t\t\"  As a reaction after this push, I can move my speed to a space within 5 ft of the target\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Flourish\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"When I do a Blade Flourish, I can use a d6 instead of expending a Bardic Inspiration die\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of whispers\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*whispers).*$/i,\r\n\tsubname : \"College of Whispers\",\r\n\tsubnameShort: \"Whispers\",\r\n\tsource : [[\"X\", 16]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psychic Blades\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I hit a creature with a weapon attack, I can expend one use of Bardic Inspiration\",\r\n\t\t\t\t\"If so, the attack does extra psychic damage; I can do so only once per round, on my turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"1 Bardic Inspiration for +\" + (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 5 : 8) + \"d6 damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Words of Terror\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By speaking privately with a humanoid for at least 1 minute, I can try to inspire terror\",\r\n\t\t\t\t\"After the talk, it must make a Wis save or be frightened of me or someone of my choice\",\r\n\t\t\t\t\"If the save is successful, the target doesn't know I tried to frighten it\",\r\n\t\t\t\t\"This lasts for 1 hour, or until it sees its allies or itself being attacked or damaged\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Whispers\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a humanoid dies within 30 ft of me, I can capture its shadow\",\r\n\t\t\t\t\"As an action, I can use it to make me look just like the dead person did while it was alive\",\r\n\t\t\t\t\"While disguised, I know general information about it and its memories, but not its secrets\",\r\n\t\t\t\t\"Others can see through the disguise with a Wis (Insight) check vs. my Cha (Deception) +5\",\r\n\t\t\t\t\"A shadow lasts until used or next long rest; The disguise ends as a bonus action or 1 hour\"\r\n\t\t\t]),\r\n\t\t\taction : [['action', 'Shadow Disguise (start)'], ['bonus action', 'Shadow Disguise (end)']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Lore\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I whisper to a creature within 30 ft that can hear and understand me\",\r\n\t\t\t\t\"Only the target can hear me; It must make a Wis save or be charmed by me for 8 hours\",\r\n\t\t\t\t\"If failed, it thinks I know its most mortifying secret, otherwise it only hears mumbling\",\r\n\t\t\t\t\"While charmed, the target obeys my commands, but won't fight or risk its life for me\",\r\n\t\t\t\t\"This lasts for 8 hours, or until I or my allies attack it, damage it, or have it make a save\"\r\n\t\t\t\t//\"When the effect ends, the target has no idea why it was so afraid of me\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 2 subclasses for the Cleric\r\nAddSubClass(\"cleric\", \"forge domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(forge|forgery|blacksmith)).*$/i,\r\n\tsubname : \"Forge Domain\",\r\n\tsource : [[\"X\", 18]],\r\n\tspellcastingExtra : [\"identify\", \"searing smite\", \"heat metal\", \"magic weapon\", \"elemental weapon\", \"protection from energy\", \"fabricate\", \"wall of fire\", \"animate objects\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with heavy armor and smith's tools\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\ttoolProfs : [\"Smith's tools\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Blessing of the Forge\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the end of a long rest, I can imbue magic into a nonmagical weapon or armor\",\r\n\t\t\t\t\"It becomes magical: +1 AC if armor, or +1 to attack and damage rolls if a weapon\",\r\n\t\t\t\t\"This lasts until the end of my next long rest or until I die\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Artisan's Blessing\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With an hour-long ritual, I can craft a nonmagical item that is at least part metal\",\r\n\t\t\t\t\"Including: suit of armor, simple or martial weapon, set of tools, 10 pieces of ammunition\",\r\n\t\t\t\t\"The creation can be worth up to 100 gp, and I must expend metals of equal value to it\",\r\n\t\t\t\t\"The metals irretrievably coalesce into the new item, forming even nonmetal parts of it\",\r\n\t\t\t\t\"The item can be an exact duplicate of a nonmagical item if I possess the original\",\r\n\t\t\t\t\"The item comes into existence at the end of the hour in an unoccupied space within 5 ft\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Forge\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"I gain resistance to fire damage and +1 to AC while wearing medium or heavy armor\"),\r\n\t\t\tdmgres : [\"Fire\"],\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while wearing Medium or Heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.mediumArmor && !v.heavyArmor; }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 fire damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 fire damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra fire damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Saint of Forge and Fire\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain immunity to fire damage\",\r\n\t\t\t\t\"When wearing heavy armor, I'm resistant to nonmagical bludg./piercing/slashing damage\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"fire\"] },\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"grave domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*grave).*$/i,\r\n\tsubname : \"Grave Domain\",\r\n\tsource : [[\"X\", 19]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"gentle repose\", \"ray of enfeeblement\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"raise dead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Circle of Mortality\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Spells I cast to heal a living creature at 0 HP have their dice count as their max result\",\r\n\t\t\t\t\"I learn Spare the Dying, which I can cast as a bonus action with a range of 30 ft\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Circle of Mortality\",\r\n\t\t\t\tspells : [\"spare the dying\"],\r\n\t\t\t\tselection : [\"spare the dying\"],\r\n\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spare the dying\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\tchanges : \"I can cast Spare the Dying as a bonus action instead of an action, and it has a range of 30 ft instead of touch.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of the Grave\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : typePF ? \"Wisdom mod per \" : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I sense undead within 60 ft that aren't protected from divination magic\",\r\n\t\t\t\t\"Until the end of my next turn, I sense the location of any undead not behind total cover\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Path to the Grave\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can curse a creature within 30 ft until the end of my next turn\",\r\n\t\t\t\t\"It is vulnerable to all the damage from the next attack by me or my allies that hits it\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sentinel at Death's Door\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tusages : typePF ? \"Wisdom mod per \" : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription : desc(\"As a reaction, I turn a critical hit to me or an ally I see within 30 ft to a normal hit\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Keeper of Souls\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per round, if I'm not incapacitated, I can manipulate the energy of the dying\",\r\n\t\t\t\t\"When an enemy I can see dies within 60 ft of me, I or an ally within 60 ft regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the enemy's number of Hit Dice\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 2 subclasses for the Druid\r\nAddSubClass(\"druid\", \"circle of dreams\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*\\bdreams\\b).*$/i,\r\n\tsubname : \"Circle of Dreams\",\r\n\tsubnameShort: \"Dreams\",\r\n\tsource : [[\"X\", 22]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Balm of the Summer Court\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of fey energy represented by a number of d6s equal to my druid level\",\r\n\t\t\t\t\"As a bonus action, I can spend dice to heal an ally within 120 ft of me that I can see\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"The ally heals an amount equal to the total rolled and gains 1 temp HP per die spent\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n + \"d6 per \"; }),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hearth of Moonlight and Shadow\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of a rest, I can create a 30-ft radius invisible magical sphere\",\r\n\t\t\t\t\"The sphere extends from a point in space I touch, but doesn't extend through total cover\",\r\n\t\t\t\t\"Within this area, my allies and I gain +5 on Wis (Perception) and Dex (Stealth) checks\",\r\n\t\t\t\t\"Also, any light from open flames that are in the sphere is invisible from outside the area\",\r\n\t\t\t\t\"This effect lasts until the end of the rest or when I leave the sphere\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hidden Paths\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can teleport myself up to 60 ft to a spot I can see\",\r\n\t\t\t\t\"As an action, I can teleport a willing ally I touch up to 30 ft to a spot I can see\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"], ['action', ' (on ally)']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Walker in Dreams\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can cast either Dream, Scrying, or Teleportation Circle\",\r\n\t\t\t\t\"This doesn't require a spell slot or material components; Dream uses me as the messenger\",\r\n\t\t\t\t\"Teleportation Circle connects to the last place I finished a long rest, if on the same plane\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"dream\"],\r\n\t\t\t\tselection : [\"dream\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"scrying\"],\r\n\t\t\t\tselection : [\"scrying\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"teleportation circle\"],\r\n\t\t\t\tselection : [\"teleportation circle\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"dream\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"scrying\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"1 crea save or sensor follows it around; or create sensor in familiar location; see book\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"teleportation circle\" : {\r\n\t\t\t\t\tcomponents : \"V\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Create a circle to teleport to the place where I finished my last long rest, if on the same plane; see book\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\\n \\u2022 The teleportation circle brings me back to the place where I finished my last long rest.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the shepherd\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"X\", 23]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Speech of the Woods\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts; Additionally, I learn Sylvan\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Sylvan\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Totem\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon, or move, a spirit to a point I can see within 60 ft\",\r\n\t\t\t\t\"It is a spectral form of a Bear, Hawk, or Unicorn (my choice), with a 30-ft radius aura\",\r\n\t\t\t\t\"It is incorporeal, immobile, doesn't counts as a creature or object, and persists for 1 min\",\r\n\t\t\t\t\"The spirit persists for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"\\u2022 Bear: my allies and I, if in the aura, immediately gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"  While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: As a reaction, I can grant advantage on an attack vs. a target in the aura\",\r\n\t\t\t\t\"  While in the aura, my allies and I gain advantage on Wisdom (Perception) checks\",\r\n\t\t\t\t\"\\u2022 Unicorn: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"  When I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"Beasts or Fey I summon with spells get +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that summons beast or fey creatures, those summons have +2 HP per HD and their attacks count as magical.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"When a Beast or Fey that I summoned ends its turn in my Spirit Totem aura, it heals\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 10 ? \"\" : \"heals \" + Math.floor(n / 2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can cast Conjure Animals\",\r\n\t\t\t\t\"This is done as if using a 9th-level spell slot to summon 4 beast of my choice up to CR 2\",\r\n\t\t\t\t\"They appear within 20 ft of me, last 1 hour, and protect me from harm and attack foes\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Faithful Summons\",\r\n\t\t\t\tspells : [\"conjure animals\"],\r\n\t\t\t\tselection : [\"conjure animals\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"conjure animals\" : {\r\n\t\t\t\t\tnameShort : \"Conjure Animals (level 9)\",\r\n\t\t\t\t\trange : \"20 ft\",\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"Summon 4 CR 2 beasts; protect me from harm and attack foes\",\r\n\t\t\t\t\tchanges : \"Using my Faithful Summons class feature when I'm reduced to 0 HP, I can cast Conjure Animals as if using a 9th-level spell slot. This then summons 4 beast of my choice up to CR 2 within 20 ft of me without needing concentration.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Fighter\r\nAddSubClass(\"fighter\", \"arcane archer\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"X\", 28]],\r\n\tfullname : \"Arcane Archer\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with either the Arcana or Nature skill\",\r\n\t\t\t\t\"I also learn either the Prestidigitation or the Druidcraft cantrip\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Arcana or Nature\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\t\tspells : [\"druidcraft\", \"prestidigitation\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can unleash magical effects when I fire an arrow from a short- or longbow\",\r\n\t\t\t\t\"I can use this once per turn as part of the Attack action, after an attack hits\",\r\n\t\t\t\t\"I know a number of Arcane Shot Options and learn additional at certain levels\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Arcane Shots Options to the third page'\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" options known\"; }),\r\n\t\t\textraname : \"Arcane Shot Option\",\r\n\t\t\textrachoices : [\"Banishing Arrow [Abjuration]\", \"Beguiling Arrow [Enchantment]\", \"Bursting Arrow [Evocation]\", \"Enfeebling Arrow [Necromancy]\", \"Grasping Arrow [Conjuration]\", \"Piercing Arrow [Transmutation]\", \"Seeking Arrow [Divination]\", \"Shadow Arrow [Illusion]\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"banishing arrow [abjuration]\" : {\r\n\t\t\t\tname : \"Banishing Arrow [Abjuration]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target makes a Cha save or is banished to the Feywild until the end of its next turn\",\r\n\t\t\t\t\t\"While banished, its speed is 0 and is incapacitated; It re-appearing in the same spot\",\r\n\t\t\t\t\t\"When I reach 18th level, this Arcane Shot Option also does an extra 2d6 force damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 18 ? \"\" : \"+2d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"beguiling arrow [enchantment]\" : {\r\n\t\t\t\tname : \"Beguiling Arrow [Enchantment]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, it is charmed by one of my allies within 30 ft of it that I choose\",\r\n\t\t\t\t\t\"This lasts until my next turn starts or until the chosen ally attacks the target in any way\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 damage\"; })\r\n\t\t\t},\r\n\t\t\t\"bursting arrow [evocation]\" : {\r\n\t\t\t\tname : \"Bursting Arrow [Evocation]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc(\"The target, in addition to the shot, and all creatures within 10 ft of it take damage\"),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"enfeebling arrow [necromancy]\" : {\r\n\t\t\t\tname : \"Enfeebling Arrow [Necromancy]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra necrotic damage and must make a Constitution save\",\r\n\t\t\t\t\t\"If failed, the damage of the target's attacks are halved until the start of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"grasping arrow [conjuration]\" : {\r\n\t\t\t\tname : \"Grasping Arrow [Conjuration]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra poison damage as brambles wrap around it for 1 minute\",\r\n\t\t\t\t\t\"The brambles give it -10 ft speed and do it slashing damage every round it moves\",\r\n\t\t\t\t\t\"These can be removed by it or another as an action with Strength (Athletics) vs. my DC\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 18 ? 2 : 4) + \"d6 poison/slash. damage\"; })\r\n\t\t\t},\r\n\t\t\t\"piercing arrow [transmutation]\" : {\r\n\t\t\t\tname : \"Piercing Arrow [Transmutation]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but shoot the arrow in a 30-ft long, 1-ft wide line\",\r\n\t\t\t\t\t\"It passes through objects, ignoring cover, but all creatures in the area take damage\",\r\n\t\t\t\t\t\"The damage is the same as a normal hit from my attack, plus extra piercing damage\",\r\n\t\t\t\t\t\"A creature can make a Dexterity save to reduce the damage by half\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 piercing damage\"; })\r\n\t\t\t},\r\n\t\t\t\"seeking arrow [divination]\" : {\r\n\t\t\t\tname : \"Seeking Arrow [Divination]\",\r\n\t\t\t\tsource : [[\"X\", 30]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but I choose a target I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners, obstacles, and ignores cover to hit the target\",\r\n\t\t\t\t\t\"It is hit if it is within the weapon's range and there is a path for the arrow to get to it\",\r\n\t\t\t\t\t\"The target takes the full damage of the attack plus extra force damage\",\r\n\t\t\t\t\t\"It can make a Dexterity save to reduce the damage by half; If failed, I know its location\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"shadow arrow [illusion]\" : {\r\n\t\t\t\tname : \"Shadow Arrow [Illusion]\",\r\n\t\t\t\tsource : [[\"X\", 30]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, the target can't see anything beyond 5 ft until the end of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 psychic damage\"; })\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Magic Arrow\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"Whenever I fire a nonmagical arrow from a short- or longbow, I can make it magical\")\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Curving Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn when I miss with a magic arrow, I can use a bonus action to redirect it\",\r\n\t\t\t\t\"I reroll the attack against a different target within 60 ft of the original target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"I regain one use of Arcane Shot if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"X\", 30]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t'Alternatively, I learn one language; Use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: Animal Handling, History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: animal handling, history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Unwavering Mark\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I hit a creature with a melee weapon attack, I mark it until the end of my next turn\",\r\n\t\t\t\t\"While it is within 5 ft of me, a marked target has disadv. on attacks not directed at me\",\r\n\t\t\t\t\"If it damages anybody but me, I can make a special melee attack vs. it in my next turn\",\r\n\t\t\t\t\"This takes a bonus action, but has adv. and adds half my fighter level to the damage\",\r\n\t\t\t\t\"A mark ends early if I'm incapacitated, die, or somebody else marks the target\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Strength modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Str Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + Math.floor(n/2) + \" damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/\\b(unwavering.?mark|marked)\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.floor(classes.known.fighter.level / 2);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Unwavering Mark' or 'Marked' in the name of a melee weapon, it gets half my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Warding Maneuver\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature within 5 ft is hit, I can try to fend off the strike\",\r\n\t\t\t\t\"I add 1d8 to the target's AC; If the attack still hits, the target has resistance against it\",\r\n\t\t\t\t\"I can only do this while wielding a melee weapon or a shield\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hold the Line\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Creatures provoke opportunity attacks when moving 5 ft or more while within my reach\",\r\n\t\t\t\t\"If I hit an opportunity attack, the target's speed is reduced to 0 until the end of the turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I hit a creature after moving 10 ft in a straight line, it must make a Strength save\",\r\n\t\t\t\t\"If failed, the target is knocked prone; I can do this only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Vigilant Defender\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can make opportunity attacks without using my reaction\",\r\n\t\t\t\t\"I can do this only once on every creature's turn, except on my own turn\",\r\n\t\t\t\t\"I can't do this on the same turn that I use my normal reaction\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"samurai\", {\r\n\tregExpSearch : /samurai/i,\r\n\tsubname : \"Samurai\",\r\n\tsource : [[\"X\", 31]],\r\n\tfullname : \"Samurai\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t'Alternatively, I learn one language; Use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Spirit\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can give myself advantage on weapon attacks and temporary HP\",\r\n\t\t\t\t\"This advantage on weapon attack rolls lasts until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 10 ? 5 : n < 15 ? 10 : 15) + \" temporary HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Elegant Courtier\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to any Charisma (Persuasion) checks I make\",\r\n\t\t\t\t\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"\r\n\t\t\t]),\r\n\t\t\tsaves : [\"Wis\"],\r\n\t\t\taddMod : { type : \"skill\", field : \"Pers\", mod : \"max(Wis|0)\", text : \"I can add my Wisdom modifier to any Charisma (Persuasion) checks I make.\" }\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Tireless Spirit\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"I regain one use of Fighting Spirit if I have no more remaining when I roll initiative\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can forgo advantage on one attack to make one extra attack\",\r\n\t\t\t\t\"This extra attack is part of the same action; I can do this only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Strength Before Death\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I'm reduced to 0 HP but not killed outright, I can delay falling unconscious\",\r\n\t\t\t\t\"I then immediately take a bonus turn, interrupting the current turn\",\r\n\t\t\t\t\"While I'm at 0 HP, I suffer damage normally and die if I have 3 failed death saves\",\r\n\t\t\t\t\"If I'm still at 0 HP at the end of this bonus turn, I fall unconscious\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Monk\r\nAddSubClass(\"monk\", \"way of the drunken master\", {\r\n\tregExpSearch : /^((?=.*drunken)(?=.*master))|((?=.*drunk)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Drunken Master\",\r\n\tsubnameShort: \"Drunken Master\",\r\n\tfullname : \"Drunken Master\",\r\n\tsource : [[\"X\", 33]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I gain proficiency with the Performance skill and brewer's supplies\"),\r\n\t\t\tskills : [\"Performance\"],\r\n\t\t\ttoolProfs : [\"Brewer's supplies\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drunken Technique\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When using Flurry of Blows, I gain the benefits of a Disengage and +10 ft speed this turn\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Tipsy Sway\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"1 ki point: as a reaction if missed in melee, attacker instead hits other I see within 5 ft\"),\r\n\t\t\tadditional : \"Standing up from prone costs only 5 ft\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drunkard's Luck\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc(\"By spending 2 ki points, I can remove disadv. from an ability check, attack roll, or save\"),\r\n\t\t\tadditional : \"2 ki points\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Intoxicated Frenzy\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"I can make 3 extra attacks with Flurry of Blows if each is used on a different target\")\r\n\t\t}\r\n\t}\r\n});\r\n// Create the Kensei and its weapon options last, so we benefit of all possible weapons that were added\r\nRunFunctionAtEnd(function () {\r\n\tvar theKenseiSubclassName = AddSubClass(\"monk\", \"way of the kensei\", {\r\n\t\tregExpSearch : /kensei/i,\r\n\t\tsubname : \"Way of the Kensei\",\r\n\t\tsubnameShort: \"Kensei\",\r\n\t\tfullname : \"Kensei\",\r\n\t\tsource : [[\"X\", 34]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Path of the Kensei\",\r\n\t\t\t\tsource : [[\"X\", 34]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with either calligrapher's supplies or painter's supplies\",\r\n\t\t\t\t\t\"Some weapons, that don't have the heavy or special property, are kensei weapons for me\",\r\n\t\t\t\t\t\"At least one ranged and one melee weapon, more at higher levels (longbow does qualify)\",\r\n\t\t\t\t\t\"With these: proficient, count as a monk weapons, special bonuses depending on type held:\",\r\n\t\t\t\t\t\"\\u2022 Melee: if I do unarmed strike during an Attack action, +2 AC until my next turn starts\",\r\n\t\t\t\t\t\"\\u2022 Ranged: as a bonus action, ranged weapon attacks deal +1d4 damage in current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with ranged)\"]],\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" kensei weapons\"; }),\r\n\t\t\t\ttoolProfs : [\"calligrapher's or painter's supplies\"],\r\n\t\t\t\textraname : \"Kensei Weapon\",\r\n\t\t\t\textrachoices : [], // add these dynamically, see below\r\n\t\t\t\textraTimes : levels.map( function(n) { return n < 3 ? 0 : n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5; }),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tvar theKenseiWeapons = GetFeatureChoice(\"class\", \"monk\", \"subclassfeature3\", true);\r\n\t\t\t\t\t\t\tif (theKenseiWeapons.indexOf(v.baseWeaponName) != -1 || ((/kensei/i).test(v.WeaponTextName) && !v.theWea.special && (!(/heavy|special/i).test(fields.Description) || v.baseWeaponName === 'longbow'))) {\r\n\t\t\t\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t\t\t\t\tv.theWea.kenseiweapon = true;\r\n\t\t\t\t\t\t\t\tif (v.isRangedWeapon) {\r\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 damage';\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"For the weapons that I select using the \\\"Choose Feature\\\" button on the second page or when I include the word 'Kensei' in the name of a weapon that doesn't have the Heavy or Special attribute, or that is a longbow, that weapon gains the same benefits as any other 'Monk Weapon'.\\nIn addition, with ranged 'Kensei Weapons', I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 damage.\",\r\n\t\t\t\t\t\t1\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"ki-empowered strikes\" : {\r\n\t\t\t\tname : \"One with the Blade\",\r\n\t\t\t\tsource : [[\"X\", 34]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description) && (v.baseWeaponName === \"unarmed strike\" || v.theWea.kenseiweapon)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My unarmed strikes and any Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t},\r\n\t\t\t\t\"deft strike\" : {\r\n\t\t\t\t\tname : \"Deft Strike\",\r\n\t\t\t\t\textraname : \"Way of the Kensei 6\",\r\n\t\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\t\tdescription : desc(\"Once per turn when I hit with a kensei weapon, I can do a martial arts die extra damage\"),\r\n\t\t\t\t\tadditional : \"1 ki point\"\r\n\t\t\t\t},\r\n\t\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a bonus action, I can grant my kensei weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\t\"This bonus is equal to the number of ki points I spend and doesn't stack with magic\",\r\n\t\t\t\t\t\t\"This lasts for 1 minute or until I use this feature again\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"1 to 3 ki points\",\r\n\t\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t\t},\r\n\t\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\t\textrachoice : \"deft strike\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\t\tminlevel : 11\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature17\" : {\r\n\t\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\tminlevel : 17,\r\n\t\t\t\tdescription : desc(\"Once per turn, if I miss a monk weapon attack on my turn, I can reroll the attack roll\")\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tvar itsFea = ClassSubList[theKenseiSubclassName].features.subclassfeature3;\r\n\tfor (var weapon in WeaponsList) {\r\n\t\tvar aWea = WeaponsList[weapon];\r\n\t\t// skip attacks that are not simple or martial weapons, that have the heavy or special property, are magic weapons, or those that are spells or cantrips\r\n\t\tif (weapon !== \"longbow\" && (aWea.isMagicWeapon || !(/simple|martial/i).test(aWea.type) || (/heavy|special/i).test(aWea.description) || aWea.special || (/improvised|gear|spell|cantrip/i).test(aWea.list))) continue;\r\n\t\titsFea.extrachoices.push(aWea.name);\r\n\t\titsFea[aWea.name.toLowerCase()] = {\r\n\t\t\tname : aWea.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : aWea.source,\r\n\t\t\tweaponProfs : [false, false, [weapon]],\r\n\t\t\tweaponsAdd : { select : [aWea.name] },\r\n\t\t\tsubmenu : ((/simple/i).test(aWea.type) ? \"\\x1BSimple weapon, \" : \"Martial weapon, \") + ((/^(?!.*melee).*\\d+.*$/i).test(aWea.range) ? \"ranged\" : \"melee\"),\r\n\t\t\tprereqeval : 'testSource(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"], \"weapExcl\") ? \"skip\" : true;'\r\n\t\t}\r\n\t}\r\n});\r\n// Add 2 subclasses for the Paladin\r\nAddSubClass(\"paladin\", \"oath of conquest\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"X\", 37]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Presence\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures of my choice within a 30-ft radius must make a Wisdom save\",\r\n\t\t\t\t\"If failed, a target is frightened for 1 minute; It can save again at the end of each turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"dominate beast\", \"stoneskin\", \"cloudkill\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Creatures that are frightened of me have their speed reduced to 0 while in my aura\",\r\n\t\t\t\t\"They also take psychic damage whenever they start theirs turn within my aura\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 7) return \"\";\r\n\t\t\t\treturn (n < 18 ? 10 : 30) + \"-foot aura; \" + Math.floor(n / 2) + \" psychic damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Scornful Rebuke\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I'm hit with an attack while I'm not incapacitated, the attacker takes damage\",\r\n\t\t\t\t\"This is psychic damage equal to my Charisma modifier (minimum of 1)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" - I have resistance to all damage\",\r\n\t\t\t\t\" - I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\" - My melee weapons score critical hits on a roll of 19 or 20\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of redemption\", {\r\n\tregExpSearch : /^((?=.*redeemer)|((?=.*redemption)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Redemption\",\r\n\tsubnameShort: \"Redemption\",\r\n\tsource : [[\"X\", 38]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Emissary of Peace\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"As a bonus action, I grant myself +5 on Charisma (Persuasion) checks for 10 minutes\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"sanctuary\", \"sleep\", \"calm emotions\", \"hold person\", \"counterspell\", \"hypnotic pattern\", \"otiluke's resilient sphere\", \"stoneskin\", \"hold monster\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Rebuke the Violent\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after a creature within 30 ft attacks and damages another, I can rebuke it\",\r\n\t\t\t\t\"It takes the same damage as it dealt but as radiant damage, with a Wis save to halve it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Guardian\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when an ally within my aura takes damage, I instead take the damage\",\r\n\t\t\t\t\"This damage can't be reduced in any way; Other effects might still apply to my ally\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Protective Spirit\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"At the end of my turn when I'm below half HP and not incapacitated, I regain HP\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"1d6+\" + Math.floor(n/2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Emissary of Redemption\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When taking damage from a creature, I take only half and it takes the other half\",\r\n\t\t\t\t\"This stops working on any that I attack or force to make a save, until I have a long rest\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"All from creatures\"]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Ranger\r\nvar XGtE_Ranger_Subclass_Gloom_Stalker = AddSubClass(\"ranger\", \"gloom stalker\", {\r\n\tregExpSearch : /^(?=.*gloom)(?=.*stalker).*$/i,\r\n\tsubname : \"Gloom Stalker\",\r\n\tsource : [[\"X\", 41]],\r\n\tfullname : \"Gloom Stalker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dread Ambusher\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to my initiative rolls\",\r\n\t\t\t\t\"In the first turn of combat I get +10 ft speed and an extra attack with the Attack action\",\r\n\t\t\t\t\"If I take the Attack action and that extra attack hits, it does +1d8 damage\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Wis|0)\", text : \"I can add my Wisdom modifier to my initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Gloom Stalker Magic\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"fear\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Umbral Sight\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain 60 ft darkvision, or add 30 ft to darkvision if I already had it because of my race\",\r\n\t\t\t\t\"When I'm in darkness, others gain no benefit from darkvision to detect me\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc(\"Once on each of my turns when I miss a weapon attack, I can make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Shadowy Dodge\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nvar XGtE_Ranger_Subclass_Horizon_Walker = AddSubClass(\"ranger\", \"horizon walker\", {\r\n\tregExpSearch : /^(?=.*horizon)(?=.*walker).*$/i,\r\n\tsubname : \"Horizon Walker\",\r\n\tsource : [[\"X\", 42]],\r\n\tfullname : \"Horizon Walker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Detect Portal\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"As an action, I sense the distance and direction to the closest planar portal within 1 mile\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Horizon Walker Magic\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"misty step\", \"haste\", \"banishment\", \"teleportation circle\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Planar Warrior\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose one creature that I can see within 30 ft of me\",\r\n\t\t\t\t\"All damage from my first weapon attack that hits it on this turn becomes force damage\",\r\n\t\t\t\t\"In addition, that first hit does extra damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + (n < 11 ? 1 : 2) + \"d8 force damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ethereal Step\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"As a bonus action, I can cast the Etherealness spell, which lasts until the end of my turn\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Ethereal Step\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tduration : \"1 rnd\",\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Ethereal Step class feature I can cast Etherealness as a bonus action once per short rest, but it only affects myself and lasts until the end of my turn.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Distant Strike\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can teleport 10 ft before each attack, to a place I can see\",\r\n\t\t\t\t\"If I attack two different creatures with this action, I get an extra attack against a third\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Spectral Defense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"As a reaction when an attack damages me, I can give myself resistance vs. that attack\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nvar XGtE_Ranger_Subclass_Monster_Slayer = AddSubClass(\"ranger\", \"monster slayer\", {\r\n\tregExpSearch : /^(?=.*monster)(?=.*slayer).*$/i,\r\n\tsubname : \"Monster Slayer\",\r\n\tsource : [[\"X\", 43]],\r\n\tfullname : \"Monster Slayer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hunter's Sense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I learn vulnerabilities/immunities/resistances of a target I see within 60 ft\",\r\n\t\t\t\t\"If it is protected from divination magic, I sense it has none of these\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Monster Slayer Magic\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"zone of truth\", \"magic circle\", \"banishment\", \"hold monster\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Slayer's Prey\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I designate a creature I see within 60 ft; This lasts until I do this again\",\r\n\t\t\t\t\"My first hit to the target with a weapon attack on each of my turns does +1d6 damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Supernatural Defense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add 1d6 to saving throws the current target of my Slayer's Prey forces me to make\",\r\n\t\t\t\t\"In addition, I also add 1d6 to checks to escape that target's grapple\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Magic-User's Nemesis\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see someone within 60 ft casting a spell or teleporting, I can foil it\",\r\n\t\t\t\t\"The target must make a Wisdom save or have its spell or teleport fail and be wasted\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Slayer's Counter\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when the target of my Slayer's Prey has me make a save, I can attack it\",\r\n\t\t\t\t\"I can make one weapon attack; If this hits, I automatically succeed on the saving throw\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Add all three subclasses to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(XGtE_Ranger_Subclass_Gloom_Stalker, XGtE_Ranger_Subclass_Horizon_Walker, XGtE_Ranger_Subclass_Monster_Slayer);\r\n};\r\n\r\n// Add 4 subclasses for the Rogue\r\nAddSubClass(\"rogue\", \"inquisitive\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*inquisitive).*$/i,\r\n\tsubname : \"Inquisitive\",\r\n\tsource : [[\"X\", 45]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ear for Deceit\",\r\n\t\t\tsource : [[\"X\", 45]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"For Wis (Insight) to sense if another is lying, I can treat a die roll of 7 or lower as an 8\")\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eye for Detail\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can do either of the following:\",\r\n\t\t\t\t\"\\u2022 Make a Wisdom (Perception) check to spot a hidden creature or object\",\r\n\t\t\t\t\"\\u2022 Make an Intelligence (Investigation) check to uncover or decipher clues\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Insightful Fighting\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can decipher the tactics of another I can see that's not incapacitated\",\r\n\t\t\t\t\"I have to make a Wisdom (Insight) check vs. the target's Charisma (Deception) check\",\r\n\t\t\t\t\"If I succeed, I can use my sneak attack on it even if I don't have adv. (but not if disadv.)\",\r\n\t\t\t\t\"This benefit lasts for 1 minute or until I successfully use Insightful Fighting again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Steady Eye\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I'm more perceptive when I don't move more than half my speed in the same turn\",\r\n\t\t\t\t\"If so, I gain adv. on Wis (Perception) and Int (Investigation) checks during that turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Unerring Eye\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can sense magical deceptions within 30 feet of me, but not what it does\",\r\n\t\t\t\t\"I learn the presence of illusions, shapechanged creatures, or magic designed to deceive\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Eye for Weakness\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"While my Insightful Fighting is active, I add 3d6 to sneak attacks against that target\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"scout\", {\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"X\", 47]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Skirmisher\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile ends its turn within 5 ft of me, I can move half my speed\",\r\n\t\t\t\t\"This movement does not provoke attacks of opportunity\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Survivalist\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I gain proficiency and expertise with the Nature and Survival skills\"),\r\n\t\t\tskills : [['Nature', 'full'], ['Survival', 'full']]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Superior Mobility\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc(\"I gain +10 ft to my walking speed (and swimming/climbing speed, if applicable)\"),\r\n\t\t\tspeed : {\r\n\t\t\t\tallModes : { bonus : \"+10\", exclude : [\"fly\", \"burrow\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ambush Master\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain advantage on Initiative rolls\",\r\n\t\t\t\t\"The first creature I hit in the first round of combat becomes an easy target\",\r\n\t\t\t\t\"Until the start of my next turn, all attacks against the target have advantage\"\r\n\t\t\t]),\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sudden Strike\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can make one additional attack as a bonus action\",\r\n\t\t\t\t\"This attack can benefit from my Sneak Attack even if I already used it this turn\",\r\n\t\t\t\t\"However, I still can't use Sneak Attack on a single target more than once per turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Add 3 subclasses for the Sorcerer\r\nAddSubClass(\"sorcerer\", \"divine soul\", { // this code includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?=.*divine)(?=.*soul).*$/i,\r\n\tsubname : \"Divine Soul\",\r\n\tsource : [[\"X\", 50]],\r\n\tfullname : \"Divine Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t\t'I also learn a spell based on my affinity, use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Good\", \"Evil\", \"Law\", \"Chaos\", \"Neutrality\"],\r\n\t\t\t\"good\" : {\r\n\t\t\t\tname : \"Divine Magic: Good\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Cure Wounds, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Good)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"cure wounds\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"eagle\"\r\n\t\t\t},\r\n\t\t\t\"evil\" : {\r\n\t\t\t\tname : \"Divine Magic: Evil\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Inflict Wounds, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Evil)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"inflict wounds\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"bat\"\r\n\t\t\t},\r\n\t\t\t\"law\" : {\r\n\t\t\t\tname : \"Divine Magic: Law\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Bless, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Law)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"bless\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"eagle\"\r\n\t\t\t},\r\n\t\t\t\"chaos\" : {\r\n\t\t\t\tname : \"Divine Magic: Chaos\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Bane, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Chaos)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"bane\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"bat\"\r\n\t\t\t},\r\n\t\t\t\"neutrality\" : {\r\n\t\t\t\tname : \"Divine Magic: Neutrality\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I learn Protection from Evil \\xD7 Good; It doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Neutrality)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"protection from evil and good\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"dragonfly\"\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature14\",\r\n\t\t\t\tchoiceAttribute : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Empowered Healing\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn, when I or an ally in 5 ft roll dice to healing with a spell, I can reroll dice\",\r\n\t\t\t\t\"By spending 1 sorcery point; I can reroll any number of those dice for that spell once\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 sorcery point\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"eagle\", \"bat\", \"dragonfly\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I manifest a pair of spectral eagle wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"bat\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I manifest a pair of spectral bat wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"dragonfly\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I create a pair of spectral dragonfly wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspeed : { fly : { spd : 30, enc : 20 } }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP remaining, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my hit point maximum\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"shadow magic\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*shadow).*$/i,\r\n\tsubname : \"Shadow Magic\",\r\n\tsource : [[\"X\", 50]],\r\n\tfullname : \"Shadow Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain 120 ft darkvision\"),\r\n\t\t\tvision : [[\"Darkvision\", 120]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Strength of the Grave\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When damage reduces me to 0 HP, that isn't radiant damage or a critical hit,\",\r\n\t\t\t\t\"I can make a Charisma save (DC 5 + damage taken) to drop to 1 HP instead\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Darkness\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Darkness, which doesn't count against my number of spells known\",\r\n\t\t\t\t\"I can also cast it by spending 2 sorcery points and then I can see through it normally\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"2 sorcery points\",\r\n\t\t\taction : [[\"action\", \" (2 sorcery points)\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I summon a hound within 30 ft of a creature I see within 120 ft\",\r\n\t\t\t\t\"The hound has all the stats of a dire wolf with the following exceptions:\",\r\n\t\t\t\t\"\\u2022 It is medium size and counts as a monstrosity not a beast\",\r\n\t\t\t\t\"\\u2022 It starts with a number of temporary hit points equal to half my sorcerer level\",\r\n\t\t\t\t\"\\u2022 At the start of its turn, it automatically knows where the (hidden) target is\",\r\n\t\t\t\t\"\\u2022 It can only move towards and make (opportunity) attack against the target\",\r\n\t\t\t\t\"\\u2022 It can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"\\u2022 It takes 5 force damage if it ends its turn inside an object\",\r\n\t\t\t\t\"The target has disadvantage on saves vs. my spells while the hound is within 5 ft of it\",\r\n\t\t\t\t\"It disappears if reduced to 0 HP, if the target is reduced to 0 HP, or after 5 minutes\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : \"3 sorcery points; \" + Math.floor(n/2) + \" temporary HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]],\r\n\t\t\tcreaturesAdd : [[\"Hound of Ill Omen\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\t\tsource : [[\"X\", 51]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Monstrosity\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : 14,\r\n\t\t\t\thp : 37,\r\n\t\t\t\thd : [5, 10],\r\n\t\t\t\tspeed : \"50 ft\",\r\n\t\t\t\tscores : [17, 15, 15, 3, 12, 7],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"perception\" : 3,\r\n\t\t\t\t\t\"stealth\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell;\\nAt the start of each turn, knows where the target is\",\r\n\t\t\t\tpassivePerception : 13,\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [2, 6, \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"Target must succeed on a DC 13 Strength saving throw or be knocked prone\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\t\tdescription : \"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Pack Tactics\",\r\n\t\t\t\t\tdescription : \"The hound has advantage on an attack roll against a creature if at least one of the hound's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Actions\",\r\n\t\t\t\t\tdescription : \"The hound can only move towards its targets and make attacks or opportunity attacks against its target.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Temporary Hit Points\",\r\n\t\t\t\t\tdescription : \"When the hound is summoned, it gains temporary HP equal to half my sorcerer level.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shadowy Form\",\r\n\t\t\t\t\tdescription : \"The hound can move through other creatures and objects as if they were difficult terrain. It takes 5 force damage if it ends its turn inside an object.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sign of Ill Omen\",\r\n\t\t\t\t\tdescription : \"While the hound is within 5 ft of its target, that target has disadvantage on saving throws versus my spells.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Summoned\",\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"The hound of ill omen gains half my sorcerer level as temporary HP when created.\");\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"\");\r\n\t\t\t\t},\r\n\t\t\t\tchangeeval : function (prefix, lvl) {\r\n\t\t\t\t\tif (!classes.known.sorcerer) return;\r\n\t\t\t\t\tValue(prefix + 'Comp.Use.HP.Temp', Math.floor(classes.known.sorcerer.level / 2));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Walk\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can teleport up to 120 ft\",\r\n\t\t\t\t\"The destination has to be unoccupied, within line of sight, and in dim light or darkness\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Umbral Form\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional : \"6 sorcery points\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I transform into a shadow form for 1 minute\",\r\n\t\t\t\t\"While transformed, I have resistance to all damage except force and radiant damage\",\r\n\t\t\t\t\"Also, I can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 5 force damage if I end my turn inside an object\",\r\n\t\t\t\t\"This ends early if I end it as a bonus action, I die, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (6 sorcery points)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Add 2 subclasses for the Warlock\r\nAddSubClass(\"warlock\", \"the celestial\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*celestial).*$/i,\r\n\tsubname : \"the Celestial\",\r\n\tsource : [[\"X\", 54]],\r\n\tspellcastingExtra : [\"cure wounds\", \"guiding bolt\", \"flaming sphere\", \"lesser restoration\", \"daylight\", \"revivify\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"greater restoration\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\tsource : [[\"X\", 54]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I learn the Light and Sacred Flame cantrips, not counting for the number I can know\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"X\", 54]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can heal a creature I can see within 60 ft by expending dice\",\r\n\t\t\t\t\"I can expend up to my Charisma modifier (min 1) of dice from my pool at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain all expended dice on a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return (n + 1) + \"d6 per \"; }),\r\n\t\t\tusagescalc : \"event.value = !classes.known.warlock ? '' : (1 + classes.known.warlock.level) + 'd6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add my Cha modifier once to the fire or radiant damage of cantrips and spells I cast\",\r\n\t\t\t\t\"This bonus only applies to one target; Also, I have resistance to radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage to one target.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\", true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage to one target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Celestial Resilience\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 10 ? \"\" : \"Me: \" + n + \"+Cha mod; Allies: \" + Math.floor(n / 2) + \"+Cha mod\"; })\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn when I would make a death save, I can instead spring back up\",\r\n\t\t\t\t\"I recover HP equal to half my current HP maximum, and can then stand up if I choose\",\r\n\t\t\t\t\"When I do, creatures of my choice within 30 ft take 2d8 + Cha mod in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the hexblade\", { // this code includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?=.*hexblade)(?=.*warlock).*$/i,\r\n\tsubname : \"the Hexblade\",\r\n\tsource : [[\"X\", 55]],\r\n\tspellcastingExtra : [\"shield\", \"wrathful smite\", \"blur\", \"branding smite\", \"blink\", \"elemental weapon\", \"phantasmal killer\", \"staggering smite\", \"banishing smite\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Hexblade's Curse\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can curse a creature I can see within 30 ft of me for 1 minute\",\r\n\t\t\t\t\"\\u2022 I add my proficiency bonus to damage rolls against the cursed target\",\r\n\t\t\t\t\"\\u2022 My attack rolls against the curse target score a critical hit on a roll of 19 and 20\",\r\n\t\t\t\t\"\\u2022 If the target dies while cursed, I regain HP equal to my warlock level + Cha mod\",\r\n\t\t\t\t\"The curse ends after 1 minute, when the target dies, I die, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && /curse/i.test(v.WeaponTextName) && !v.CritChance) {\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Curse' in the name of a weapon, the automation will treat the attack as being against a target of the Hexblade's Curse: adding my proficiency bonus to the damage and adding the increased chance of a critical hit to the description.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/curse/i).test(v.WeaponTextName)) output.extraDmg += output.prof;\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hex Warrior\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor, shields, and martial weapons\",\r\n\t\t\t\t\"When I finish a long rest, I can imbue one weapon I touch with my will\",\r\n\t\t\t\t\"Until my next long rest, I can use it with Charisma instead of Strength or Dexterity\",\r\n\t\t\t\t\"I have to be proficient with the weapon and it can't have the two-handed property\",\r\n\t\t\t\t\"This benefit also works with every weapon from Pact of the Blade, with no restriction\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (What('Cha Mod') > What(AbilityScores.abbreviations[fields.Mod - 1] + ' Mod') && (v.pactWeapon || v.theWea.pactWeapon || /^(?=.*hexblade)(?!.*((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b).*$/i.test(v.WeaponText))) {\r\n\t\t\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Hexblade' in the name of a weapon that is not two-handed, it gets treated as the weapon I imbued to use Charisma instead of Strength or Dexterity, if my Charisma modifier is higher than the ability it would otherwise use. Alternatively, if I have the Pact of the Blade feature, this will also work for any weapons set to be my Pact Weapon.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Accursed Specter\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I slay a humanoid, I can curse its soul and have it rise as a specter from its corpse\",\r\n\t\t\t\t\"It has the stats of a specter with temporary hit points equal to half my warlock level\",\r\n\t\t\t\t\"It rolls initiative and has its own turns, obeying my verbal commands\",\r\n\t\t\t\t\"It gains a bonus to attack rolls equal to my Charisma modifier (min +0)\",\r\n\t\t\t\t\"The specter remains until the end of my next long rest, at which point it vanishes\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) { return n < 6 ? \"\" : Math.floor(n/2) + \" temp HP\"; }),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcreaturesAdd : [[\"Accursed Specter\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Accursed Specter\",\r\n\t\t\t\tnameAlt : [\"Accursed Spectre\"],\r\n\t\t\t\tsource : [[\"X\", 56]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Undead\",\r\n\t\t\t\talignment : \"Chaotic Evil\",\r\n\t\t\t\tac : 12,\r\n\t\t\t\thp : 22,\r\n\t\t\t\thd : [5, 8],\r\n\t\t\t\tspeed : \"fly 50 ft (hover)\",\r\n\t\t\t\tscores : [1, 14, 11, 10, 10, 12],\r\n\t\t\t\tdamage_resistances : \"acid; cold; fire; lightning; thunder; bludgeoning, piercing, and slashing from nonmagical weapons\",\r\n\t\t\t\tdamage_immunities : \"necrotic, poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft; While in sunlight, disadv. on Wis (Perception) checks using sight\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tlanguages : \"all languages it knew in life, but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Life Drain\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [3, 6, \"necrotic\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"DC 10 Con save or HP max reduced by same as damage taken until a long rest\",\r\n\t\t\t\t\tmodifiers : [\"max(oCha|0)\", \"\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"A target of the specter's life drain must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Incorporeal Movement\",\r\n\t\t\t\t\tdescription : \"The specter can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sunlight Sensitivity\",\r\n\t\t\t\t\tdescription : \"While in sunlight, the specter has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Life Drain\",\r\n\t\t\t\t\tdescription : \"A target of the specter's life drain must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Bound Spirit\",\r\n\t\t\t\t\tdescription : \"The specter obeys my verbal commands and remains in my service until the end of my next long rest, at which point it vanishes to the afterlife. It acts on its own turn with its own initiative.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Bound Spirit\",\r\n\t\t\t\teval : function(prefix) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"The accursed specter gains half my warlock level as temporary HP when created.\");\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function(prefix) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"\");\r\n\t\t\t\t},\r\n\t\t\t\tchangeeval : function (prefix, newLvl) {\r\n\t\t\t\t\tif (!classes.known.warlock) return;\r\n\t\t\t\t\tValue(prefix + 'Comp.Use.HP.Temp', Math.floor(classes.known.warlock.level / 2));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Armor of Hexes\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a Hexblade's Curse recipient hits me with an attack, I can roll a d6\",\r\n\t\t\t\t\"On a result of 4 or higher, the attacks misses me instead, regardless of its d20 roll\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Hexes\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When the target of my Hexblade's Curse dies, I can curse another I can see within 30 ft\",\r\n\t\t\t\t\"I can't do this while incapacitated and I don't regain HP from the death of the previous\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add Warlock Invocations\r\nAddWarlockInvocation(\"Aspect of the Moon (prereq: Pact of the Tome)\", {\r\n\tname : \"Aspect of the Moon\",\r\n\tdescription : desc(\"I don't need sleep nor can be forced to by any means; I can rest while doing light activity\"),\r\n\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome'; },\r\n\tsavetxt : { text : [\"Nothing can force me to sleep\"] }\r\n});\r\nAddWarlockInvocation(\"Cloak of Flies (prereq: level 5 warlock)\", {\r\n\tname : \"Cloak of Flies\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can surround myself with a 5-ft radius magical aura of buzzing flies\",\r\n\t\t\"It lasts until I'm incapacitated or dismiss it as a bonus action; Total cover block the aura\",\r\n\t\t\"The aura grants me adv. on Cha (Intimidation), but disadv. on all other Cha checks\",\r\n\t\t\"Creatures starting their turn in the aura take my Cha mod (min 0) in poison damage\"\r\n\t]),\r\n\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"bonus action\", \" (start/stop)\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Smite (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Eldritch Smite\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when I hit a creature with my pact weapon, I can empower the strike\",\r\n\t\t\"By expending a warlock spell slot, the creature takes extra damage and is knocked prone\",\r\n\t\t\"It takes 1d8 force damage and another 1d8 force damage per level of the spell slot\",\r\n\t\t\"The target is only knocked prone if it is Huge or smaller\"\r\n\t]),\r\n\tsource : [[\"X\", 56]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; }\r\n});\r\nAddWarlockInvocation(\"Ghostly Gaze (prereq: level 7 warlock)\", {\r\n\tname : \"Ghostly Gaze\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can gain darkvision, and the ability to see through solid objects, out to 30 ft\",\r\n\t\t\"Objects appear ghostly to me; This lasts up to 1 minute, while I'm concentrating on this\"\r\n\t]),\r\n\tsource : [[\"X\", 56]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Gift of the Depths (prereq: level 5 warlock)\", {\r\n\tname : \"Gift of the Depths\",\r\n\tdescription : desc([\r\n\t\t\"I can breathe underwater and I have a swim speed equal to my walking speed\",\r\n\t\t\"Once per long rest, I can cast Water Breathing without using a spell slot (PHB 287)\"\r\n\t]),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Gift of the Depths\",\r\n\t\tspells : [\"water breathing\"],\r\n\t\tselection : [\"water breathing\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n});\r\nAddWarlockInvocation(\"Gift of the Ever-Living Ones (prereq: Pact of the Chain)\", {\r\n\tname : \"Gift of the Ever-Living Ones\",\r\n\tdescription : desc(\"When I regain HP while my familiar is within 100 ft, I regain the max the dice can roll\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain'; }\r\n});\r\nAddWarlockInvocation(\"Grasp of Hadar (prereq: Eldritch Blast cantrip)\", {\r\n\tname : \"Grasp of Hadar\",\r\n\tdescription : desc(\"Once per turn when my Eldritch Blast hits a creature, I can move it 10 ft closer to me\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target moved 10 ft to me';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can move it in a straight line 10 ft closer to me.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"I can use any pact weapon I create as my spellcasting focus for warlock spells\",\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a +1 magic weapon\",\r\n\t\t\"I can now also conjure a shortbow, longbow, or light or heavy crossbow as my pact weapon\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif ((/^(shortbow|longbow|light crossbow|heavy crossbow)$/).test(v.baseWeaponName) && (/\\bpact\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t}\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tif (v.pactWeapon && !output.magic) {\r\n\t\t\t\t\tvar bContinue = true;\r\n\t\t\t\t\t// Now test if this isn't a weaponOptions addition with a static + bonus set to the modifier fields\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon && v.theWea.modifiers) {\r\n\t\t\t\t\t\t// Test the first two modifiers to see if both offer a +1 or more. Returns `true` if one contains no numbers or is less than the improved pact weapon bonus\r\n\t\t\t\t\t\tvar bContinue = v.theWea.modifiers.slice(0, 2).some(function (n) {\r\n\t\t\t\t\t\t\tif (!n || !/\\d/.test(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = 0;\r\n\t\t\t\t\t\t\t} else if (isNaN(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = n.match(/(^|\\+|-)\\d+\\b/g);\r\n\t\t\t\t\t\t\t\tnmbr = !nmbr ? 0 : nmbr.reduce(function(a, b) {return Number(a) + Number(b)});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar nmbr = Number(n);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn nmbr < 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if the continue boolean wasn't set to false, we can proceed\r\n\t\t\t\t\tif (bContinue) {\r\n\t\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the word 'Pact' in a the name of a melee weapon, shortbow, longbow, light crossbow, or heavy crossbow, it will be treated as my Pact Weapon.\\n \\u2022 If my Pact Weapon doesn't already include a magical bonus in its name and is not a magic weapon with at least a +1 bonus, the calculation will add +1 to its To Hit and Damage.\",\r\n\t\t\t290\r\n\t\t],\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/^(shortbow|longbow|light crossbow|heavy crossbow)$/).test(v.baseWeaponName) && (/\\bpact\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t};\r\n\t\t\t}, \"\", 90]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Lance of Lethargy (prereq: Eldritch Blast cantrip)\", {\r\n\tname : \"Lance of Lethargy\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when my Eldritch Blast hits a creature, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; 1 target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"Once on each of my turns when I hit a creature with my Eldritch Blast cantrip, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Maddening Hex (prereq: level 5 warlock, Hex spell or warlock feature that curses)\", {\r\n\tname : \"Maddening Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I cause pain around a target hexed by me that I can see within 30 ft\",\r\n\t\t\"It and any of my choice I can see in 5 ft of it take my Cha mod (min 1) in psychic damage\",\r\n\t\t\"The Hex spell and all of my warlock features that curse are considered a hex for this\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Hex spell or warlock feature that curses]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && (isSpellUsed('hex', true) || (/hexblade/).test(classes.known.warlock.subclass)); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 7 warlock, Hex spell or warlock feature that curses)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport to a target hexed by me that I can see within 30 ft\",\r\n\t\t\"I teleport up to 30 ft to an unoccupied space that I can see within 5 ft of the target\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Hex spell or warlock feature that curses]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7 && (isSpellUsed('hex', true) || (/hexblade/).test(classes.known.warlock.subclass)); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Shroud of Shadow (prereq: level 15 warlock)\", {\r\n\tname : \"Shroud of Shadow\",\r\n\tdescription : desc(\"I can cast Invisibility at will, without using spell slots (PHB 254)\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level 15+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shroud of Shadow\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 15; },\r\n\tspellChanges : {\r\n\t\t\"invisibility\" : {\r\n\t\t\tdescription : \"1 crea invisible; attacking/casting makes the crea visible; anything worn/carried also invisible\",\r\n\t\t\tchanges : \"With the Shroud of Shadow invocation I can cast Invisibility at will, but when I do so I am unable to cast it using a higher level spell slot.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Tomb of Levistus (prereq: level 5 warlock)\", {\r\n\tname : \"Tomb of Levistus\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when I take damage, I can entomb myself in ice until the end of my turn\",\r\n\t\t\"During, I get 10 temp. HP per warlock level, which I use to absorb the triggering damage\",\r\n\t\t\"After, till the ice is gone, I also get vulnerability to fire, 0 speed, and am incapacitated\"\r\n\t]),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tadditional : levels.map( function(n) { return (n * 10) + \" temp HP\"; })\r\n});\r\nAddWarlockInvocation(\"Trickster's Escape (prereq: level 7 warlock)\", {\r\n\tname : \"Trickster's Escape\",\r\n\tdescription : desc(\"Once per long rest, I can cast Freedom of Movement on myself without using a spell slot\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 7]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Trickster's Escape\",\r\n\t\tspells : [\"freedom of movement\"],\r\n\t\tselection : [\"freedom of movement\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\tspellChanges : {\r\n\t\t\"freedom of movement\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tdescription : \"Magic can't reduce my speed, paralyze or restrain me; I can use 5 ft to escape nonmagical restrains\",\r\n\t\t\tchanges : \"With the Trickster's Escape invocation I can cast Freedom of Movement, but only on myself.\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 1 subclass for the Wizard\r\nAddSubClass(\"wizard\", \"war magic\", {\r\n\tregExpSearch : /^(?=.*war)(?=.*(wizard|magic|mage)).*$/i,\r\n\tsubname : \"War Magic\",\r\n\tfullname : \"War Mage\",\r\n\tsource : [[\"X\", 59]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : { //has to be identical to a feature named in the ClassList\r\n\t\t\tname : \"Arcane Deflection\",\r\n\t\t\tsource : [[\"X\", 59]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I'm hit by an attack, I can gain +2 to my AC against that attack\",\r\n\t\t\t\t\"As a reaction when I fail a save, I can gain +4 bonus to that saving throw\",\r\n\t\t\t\t\"After I do either, I can't cast spells other than cantrips until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Tactical Wit\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Power Surge\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of stored power surges that I can use to empower my damaging spells\",\r\n\t\t\t\t\"I gain a power surge whenever I successfully end a spell with Dispel Magic or Counterspell\",\r\n\t\t\t\t\"This pool can store a number of power surges equal to my Intelligence modifier (min 1)\",\r\n\t\t\t\t\"It resets to 1 power surge after a long rest or when I have 0 surges left after a short rest\",\r\n\t\t\t\t\"When I deal damage with a wizard spell, I can spend a power surge to do extra damage\",\r\n\t\t\t\t\"One target takes half my wizard level in force damage; I can do this only once per turn\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Resets to 1 after \",\r\n\t\t\tusagescalc : \"event.value = !event.value || event.value == 'Resets to 1 after ' ? 1 : event.value;\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 6 ? \"\" : \"+\" + Math.floor(n/2) + \" force damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Durable Magic\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"While I'm maintaining concentration on a spell, I gain +2 to AC and all saving throws\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Deflecting Shroud\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my Arcane Deflection feature, magical energy arcs from me to creatures\",\r\n\t\t\t\t\"Up to 3 targets I can see within 60 ft of me take half my wizard level in force damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) { return n < 14 ? \"\" : Math.floor(n/2) + \" force damage\"; })\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add feats\r\nFeatsList[\"bountiful luck\"] = {\r\n\tname : \"Bountiful Luck\",\r\n\tsource : [[\"X\", 73]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Your people have extraordinary luck, which you have learned to mystically lend to your companions when you see them falter. You're not sure how you do it; you just wish it, and it happens. Surely a sign of fortune's favor!\\n   When an ally you can see within 30 feet of you rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, you can use your reaction to let the ally reroll the die. The ally must use the new roll\\n   When you use this ability, you can't use your Lucky racial trait before the end of your next turn.\",\r\n\tdescription : \"When an ally I can see within 30 ft of me rolls a 1 on an attack roll, an ability check, or a saving throw, I can use my reaction to let the ally reroll the die. The ally must use the new roll. When I use this, I can't use my racial Lucky trait until the end of my next turn.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"dragon fear\"] = {\r\n\tname : \"Dragon Fear\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"When angered, you radiate menace. You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Instead of exhaling destructive energy, you can expend a use of your Breath Weapon trait to roar, forcing each creature of your choice within 30 feet of you to make a Wisdom saving throw (DC 8 + your proficiency bonus + your Charisma modifier). A target automatically succeeds on the save if it can't hear or see you. On a failed save, a target becomes frightened of you for 1 minute. If the frightened target takes any damage, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tcalculate : \"event.value = 'I can use my Breath Weapon to roar instead. Chosen creatures within 30 ft that see and hear me must make a DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' Wis save (8 + Prof Bonus + Cha mod) or be frightened of me for 1 min. A target can repeat the save whenever it takes damage. [+1 Str, Con, or Cha]';\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Charisma\",\r\n\taction : [['action', 'Breath Weapon or Dragon Fear', 'Breath Weapon']]\r\n};\r\nFeatsList[\"dragon hide\"] = {\r\n\tname : \"Dragon Hide\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You manifest scales and claws reminiscent of your draconic ancestors. You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Your scales harden. While you aren't wearing armor, you can calculate your AC as 13 + your Dexterity modifier. You can use a shield and still gain this benefit.\\n \\u2022 You grow retractable claws from the tips of your fingers. Extending or retracting the claws requires no action. The claws are natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal slashing damage equal to 1d4 + your Strength modifier, instead of the normal bludgeoning damage for an unarmed strike.\",\r\n\tdescription : \"I gain retractable claws that I can retract or extend, requiring no action. While extended, my unarmed strikes deal 1d4 slashing damage. My scales harden, giving me an AC of 13 + Dexterity modifier + shield when I'm not wearing armor. [+1 Str, Con, or Cha]\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Charisma\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(retractable|dragon))(?=.*claw).*$/i,\r\n\t\tname : \"Retractable Claws\",\r\n\t\tsource : [[\"X\", 74]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*(dragon|draconic|scaly))(?=.*(hide|skin|scales|resilience)).*$/i,\r\n\t\tname : \"Dragon Hide\",\r\n\t\tsource : [[\"X\", 74]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nFeatsList[\"drow high magic\"] = {\r\n\tname : \"Drow High Magic\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Drow (Dark Elf)\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dark elf') !== -1; },\r\n\tdescriptionFull : \"You learn more of the magic typical of dark elves. You learn the Detect Magic spell and can cast it at will, without expending a spell slot. You also learn Levitate and Dispel Magic, each of which you can cast once without expending a spell slot. You regain the ability to cast those two spells in this way when you finish a long rest. Charisma is your spellcasting ability for all three spells.\",\r\n\tdescription : \"I can cast Detect Magic at will, without expending a spell slot. I can also cast Levitate and Dispel Magic without expending a spell slot, but each only once per long rest. Charisma is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"dispel magic\"],\r\n\t\tselection : [\"dispel magic\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dwarven fortitude\"] = {\r\n\tname : \"Dwarven Fortitude\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have the blood of dwarf heroes flowing through your veins. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 Whenever you take the Dodge action in combat, you can spend one Hit Die to heal yourself. Roll the die, add your Constitution modifier, and regain a number of hit points equal to the total (minimum of 1).\",\r\n\tdescription : \"Whenever I take the Dodge action in combat, I can spend one Hit Die to heal myself. I roll the die, add my Constitution modifier, and regain a number of hit points equal to the total (minimum of 1). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elven accuracy\"] = {\r\n\tname : \"Elven Accuracy\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being an Elf or a Half-Elf\",\r\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"The accuracy of elves is legendary, especially that of elf archers and spellcasters. You have uncanny aim with attacks that rely on precision rather than brute force. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Whenever you have advantage on an attack roll using Dexterity, Intelligence, Wisdom, or Charisma, you can reroll one of the dice once.\",\r\n\tdescription : \"Whenever I have advantage on an attack roll that uses Dexterity, Intelligence, Wisdom, or Charisma, I can reroll one of the dice once. [+1 Dexterity, Intelligence, Wisdom, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Intelligence, Wisdom, or Charisma\"\r\n};\r\nFeatsList[\"fade away\"] = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('gnome') !== -1; },\r\n\tdescriptionFull : \"Your people are clever, with a knack for illusion magic. You have learned a magical trick for fading away when you suffer harm. You gain the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 Immediately after you take damage, you can use a reaction to magically become invisible until the end of your next turn or until you attack, deal damage, or force someone to make a saving throw. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"As a reaction when I take damage, I can magically become invisible until the end of my next turn or until I attack, deal damage, or force someone to make a saving throw. Once I do this, I can't do so again until I finish a short rest. [+1 Dexterity or Intelligence]\",\r\n\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"fey teleportation\"] = { // this code includes contributions by SoilentBrad\r\n\tname : \"Fey Teleportation\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a High Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('high elf') !== -1; },\r\n\tdescriptionFull : \"Your study of high elven lore has unlocked fey power that few other elves possess, except your eladrin cousins. Drawing on your fey ancestry, you can momentarily stride through the Feywild to shorten your path from one place to another. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn to speak, read, and write Sylvan.\\n \\u2022 You learn the Misty Step spell and can cast it once without expending a spell slot. You regain the ability to cast it in this way when you finish a short or long rest. Intelligence is your spellcasting ability for this spell.\",\r\n\tdescription : \"I can cast Misty Step without using a spell slot. I can do so once per short rest. Intelligence is my spellcasting ability for this spell. I also learn to speak, read, and write Sylvan. [+1 Intelligence or Charisma]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per short rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 'oncesr'\r\n\t}],\r\n\tlanguageProfs : [\"Sylvan\"],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"flames of phlegethos\"] = {\r\n\tname : \"Flames of Phlegethos\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"You learn to call on hellfire to serve your commands. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 When you roll fire damage for a spell you cast, you can reroll any roll of 1 on the fire damage dice, but you must use the new roll, even if it is another 1.\\n \\u2022 Whenever you cast a spell that deals fire damage, you can cause flames to wreathe you until the end of your next turn. The flames don't harm you or your possessions, and they shed bright light out to 30 feet and dim light for an additional 30 feet. While the flames are present, any creature within 5 feet of you that hits you with a melee attack takes 1d4 fire damage.\",\r\n\tdescription : \"When I cast a fire damage spell, I can reroll any 1 on fire damage dice once. I then sheathe myself in flame until my next turn ends. These shed bright light in 30 ft, dim light in 30 ft and cause any within 5 ft that hit me in melee to take 1d4 fire damage. [+1 Int or Cha]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\"\t\r\n};\r\nFeatsList[\"infernal constitution\"] = {\r\n\tname : \"Infernal Constitution\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"Fiendish blood runs strong in you, unlocking a resilience akin to that possessed by some fiends. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You have resistance to cold and poison damage.\\n \\u2022 You have advantage on saving throws against being poisoned.\",\r\n\tdescription : \"I have resistance to cold and poison damage and I have advantage on saving throws against being poisoned.\\n[+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tdmgres : [\"Cold\", \"Poison\"],\r\n\tsavetxt : { adv_vs : [\"poison\"] }\r\n};\r\nFeatsList[\"orcish fury\"] = {\r\n\tname : \"Orcish Fury\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"Your fury burns tirelessly. You gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 When you hit with an attack using a simple or martial weapon, you can roll one of the weapon's damage dice an additional time and add it as extra damage of the weapon's damage type. Once you use this ability, you can't use it again until you finish a short or long rest.\\n \\u2022 Immediately after you use your Relentless Endurance trait, you can use your reaction to make one weapon attack.\",\r\n\tdescription : \"Once per short rest, I can roll an extra damage die for an attack with a simple or martial weapon. In addition, Immediately after I use my Relentless Endurance trait, I can use my reaction to make one weapon attack. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : [[\"reaction\", \" (after Relentless Endurance)\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"extra damage\"\r\n};\r\nFeatsList[\"prodigy\"] = {\r\n\tname : \"Prodigy\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Half-Elf, Half-Orc, or Human\",\r\n\tprereqeval : function(v) { return (/human|^(?=.*half)(?=.*(elf|orc)).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 You gain one skill proficiency of your choice, one tool proficiency of your choice, and fluency in one language of your choice.\\n \\u2022 Choose one skill in which you have proficiency. You gain expertise with that skill, which means your proficiency bonus is doubled for any ability check you make with it. The skill you choose must be one that isn't already benefiting from a feature, such as Expertise, that doubles your proficiency bonus.\",\r\n\tdescription : \"I gain proficiency with one skill of my choice and expertise with it, or expertise with another skill of my choice that I'm already proficient with. I also gain proficiency with one tool of my choice and fluency in one language of my choice.\",\r\n\tskillstxt : \"Proficiency with any one skill and Expertise with any one skill that you are already proficient with\",\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n};\r\nFeatsList[\"second chance\"] = {\r\n\tname : \"Second Chance\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Fortune favors you when someone tries to strike you. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 When a creature you can see hits you with an attack roll, you can use your reaction to force that creature to reroll. Once you use this ability, you can't use it again until you roll initiative at the start of combat or until you finish a short or long rest.\",\r\n\tdescription : \"When a creature I can see hits me with an attack roll, I can use my reaction to force that creature to reroll. Once I use this ability, I can't do so again until I roll initiative at the start of combat or I finish a short rest. [+1 Dexterity, Constitution, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"Combat\"\r\n};\r\nFeatsList[\"squat nimbleness\"] = {\r\n\tname : \"Squat Nimbleness\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Dwarf or a small race\",\r\n\tprereqeval : function(v) { return (/dwarf/i).test(CurrentRace.known) || tDoc.getField('Size Category').currentValueIndices === 4; },\r\n\tdescriptionFull : \"You are uncommonly nimble for your race. You gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 Increase your walking speed by 5 feet.\\n \\u2022 You gain proficiency in the Acrobatics or Athletics skill (your choice).\\n \\u2022 You have advantage on any Strength (Athletics) or Dexterity (Acrobatics) check you make to escape from being grappled.\",\r\n\tdescription : \"My walking speed increases by 5 ft. I gain proficiency in either the Acrobatics or the Athletics skill. I have advantage on Dexterity (Acrobatics) and Strength (Athletics) checks I make to escape from being grappled. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tskillstxt : \"Acrobatics or Athletics\",\r\n\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } }\r\n};\r\nFeatsList[\"wood elf magic\"] = {\r\n\tname : \"Wood Elf Magic\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Wood Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('wood elf') !== -1; },\r\n\tdescriptionFull : \"You learn the magic of the primeval woods, which are revered and protected by your people. You learn one druid cantrip of your choice. You also learn the Longstrider and Pass Without Trace spells, each of which you can cast once without expending a spell slot. You regain the ability to cast these two spells in this way when you finish a long rest. Wisdom is your spellcasting ability for all three spells.\",\r\n\tdescription : \"I learn a druid cantrip. In addition, I can cast Longstrider and Pass Without Trace, without expending a spell slot, but each only once per long rest. Wisdom is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druid Cantrip\",\r\n\t\tspellcastingAbility : 5,\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"longstrider\"],\r\n\t\tselection : [\"longstrider\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"pass without trace\"],\r\n\t\tselection : [\"pass without trace\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\r\n// Then add the new spells from XGtE (contains contributions by SoilentBrad)\r\nSpellsList[\"catnap\"] = {\r\n\tname : \"Catnap\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A pinch of sand\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"3+1/SL willing crea unconscious for 10 min to gain benefits of short rest; Ends if dmg or 1 a to wake\",\r\n\tdescriptionFull : \"You make a calming gesture, and up to three willing creatures of your choice that you can see within range fall unconscious for the spell's duration. The spell ends on a target early if it takes damage or someone uses an action to shake or slap it awake. If a target remains unconscious for the full duration, that target gains the benefit of a short rest, and it can't be affected by this spell again until it finishes a long rest.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional willing creature for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"cause fear\"] = {\r\n\tname : \"Cause Fear\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1+1/SL crea (not construct/undead), each max 30 ft apart, save or frightened; save end of each turn\",\r\n\tdescriptionFull : \"You awaken the sense of mortality in one creature you can see within range. A construct or an undead is immune to this effect. The target must succeed on a Wisdom saving throw or become frightened of you until the spell ends. The frightened target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, you can target one additional creature for each slot level above 1st. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"ceremony\"] = {\r\n\tname : \"Ceremony\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"X\", 151]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"25 gp worth of powdered silver, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Perform religious ceremony on target(s) within 10 ft throughout the casting; see book (25gp cons.)\",\r\n\tdescriptionFull : \"You perform a special religious ceremony that is infused with magic. When you cast the spell, choose one of the following rites, the target of which must be within 10 feet of you throughout the casting.\" + \"\\n   \" + toUni(\"Atonement\") + \": You touch one willing creature whose alignment has changed, and you make a DC 20 Wisdom (Insight) check. On a successful check, you restore the target to its original alignment.\" + \"\\n   \" + toUni(\"Bless Water\") + \": You touch one vial of water and cause it to become holy water.\" + \"\\n   \" + toUni(\"Coming of Age\") + \": You touch one humanoid who is a young adult. For the next 24 hours, whenever the target makes an ability check, it can roll a d4 and add the number rolled to the ability check. A creature can benefit from this rite only once.\" + \"\\n   \" + toUni(\"Dedication\") + \": You touch one humanoid who wishes to be dedicated to your god's service. For the next 24 hours, whenever the target makes a saving throw, it can roll a d4 and add the number rolled to the save. A creature can benefit from this rite only once.\" + \"\\n   \" + toUni(\"Funeral Rite\") + \": You touch one corpse, and for the next 7 days, the target can't become undead by any means short of a wish spell.\" + \"\\n   \" + toUni(\"Wedding\") + \": You touch adult humanoids willing to be bonded together in marriage. For the next 7 days, each target gains a +2 bonus to AC while they are within 30 feet of each other. A creature can benefit from this rite again only if widowed.\"\r\n};\r\nSpellsList[\"chaos bolt\"] = {\r\n\tname : \"Chaos Bolt\",\r\n\tclasses : [\"sorcerer\"],\r\n\tsource : [[\"X\", 151], [\"G\", 67]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft\",\r\n\tdescriptionShorter : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set type, see B; double on d8s: new atk vs. crea in 30 ft\",\r\n\tdescriptionFull : \"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 + 1d6 damage. Choose one of the d8s. The number rolled on that die determines the attack's damage type, as shown below.\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Damage Type\") + \"\\n  1\\tAcid\" + \"\\n  2\\tCold\" + \"\\n  3\\tFire\" + \"\\n  4\\tForce\" + \"\\n  5\\tLightning\" + \"\\n  6\\tPoison\" + \"\\n  7\\tPsychic\" + \"\\n  8\\tThunder\" + \"\\n\\n   \" + \"If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\" + \"\\n   \" + \"A creature can be targeted only once by each casting of this spell.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, each target takes 1d6 extra damage of the type rolled for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"force\", \"lightning\", \"poison\", \"psychic\", \"thunder\"],\r\n\t\t\tinDescriptionAs : ''\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"charm monster\"] = {\r\n\tname : \"Charm Monster\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1+1/SL creatures, each max 30 ft apart, save or charmed; adv. on save if me/ally is fighting it\",\r\n\tdescriptionFull : \"You attempt to charm a creature you can see within range. It must make a Wisdom saving throw, and it does so with advantage if you or your companions are fighting it. If it fails the saving throw, it is charmed by you until the spell ends or until you or your companions do anything harmful to it. The charmed creature is friendly to you. When the spell ends, the creature knows it was charmed by you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"create homunculus\"] = {\r\n\tname : \"Create Homunculus\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 152]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Clay, ash, and mandrake root, all of which the spell consumes, and a jewel-encrusted dagger worth at least 1,000 gp\", \r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I take 2d4 piercing dmg to create a homunculus as my faithful companion; see book (1000gp)\",\r\n\tdescriptionFull : \"While speaking an intricate incantation, you cut yourself with a jewel-encrusted dagger, taking 2d4 piercing damage that can't be reduced in any way. You then drip your blood on the spell's other components and touch them, transforming them into a special construct called a homunculus.\" + \"\\n   \" + \"The statistics of the homunculus are in the Monster Manual. It is your faithful companion, and it dies if you die. Whenever you finish a long rest, you can spend up to half your Hit Dice if the homunculus is on the same plane of existence as you. When you do so, roll each die and add your Constitution modifier to it. Your hit point maximum is reduced by the total, and the homunculus's hit point maximum and current hit points are both increased by it. This process can reduce you to no lower than 1 hit point, and the change to your and the homunculus's hit points ends when you finish your next long rest. The reduction to your hit point maximum can't be removed by any means before then, except by the homunculus's death.\" + \"\\n   \" + \"You can have only one homunculus at a time. If you cast this spell while your homunculus lives, the spell fails.\",\r\n\tdynamicDamageBonus : { doNotProcess : true } // You don't want to do yourself more damage do you?\r\n};\r\nSpellsList[\"crown of stars\"] = {\r\n\tname : \"Crown of Stars\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 152]],\r\n\tlevel : 7,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"7+2/SL motes shed 30-ft light; bonus action to fire one as 120 ft ranged atk for 4d12 Radiant dmg\",\r\n\tdescriptionShorter : \"7+2/SL motes shed 30-ft light; bns a to fire one as 120 ft ranged atk for 4d12 Radiant dmg\",\r\n\tdescriptionFull : \"Seven star-like motes of light appear and orbit your head until the spell ends. You can use a bonus action to send one of the motes streaking toward one creature or object within 120 feet of you. When you do so, make a ranged spell attack. On a hit, the target takes 4d12 radiant damage. Whether you hit or miss, the mote is expended. The spell ends early if you expend the last mote.\" + \"\\n   \" + \"If you have four or more motes remaining, they shed bright light in a 30-foot radius and dim light for an additional 30 feet. If you have one to three motes remaining, they shed dim light in a 30-foot radius.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 8th level or higher, the number of motes created increases by two for each slot level above 7th.\"\r\n};\r\nSpellsList[\"danse macabre\"] = {\r\n\tname : \"Danse Macabre\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 153]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"5+2/SL small/medium corpses as zombie/skeleton; spellc. mod to atk/dmg; bns a command in 60 ft\",\r\n\tdescriptionFull : \"Threads of dark power leap from your fingers to pierce up to five Small or Medium corpses you can see within range. Each corpse immediately stands up and becomes undead. You decide whether it is a zombie or a skeleton (the statistics for zombies and skeletons are in the Monster Manual), and it gains a bonus to its attack and damage rolls equal to your spellcasting ability modifier.\" + \"\\n   \" + \"You can use a bonus action to mentally command the creatures you make with this spell, issuing the same command to all of them. To receive the command, a creature must be within 60 feet of you. You decide what action the creatures will take and where they will move during their next turn, or you can issue a general command, such as to guard a chamber or passageway against your foes. If you issue no commands, the creatures do nothing except defend themselves against hostile creatures. Once given an order, the creatures continue to follow it until their task is complete.\" + \"\\n   \" + \"The creatures are under your control until the spell ends, after which they become inanimate once more\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, you animate up to two additional corpses for each slot level above 5th.\"\r\n};\r\nSpellsList[\"dawn\"] = {\r\n\tname : \"Dawn\",\r\n\tclasses : [\"cleric\", \"wizard\"],\r\n\tsource : [[\"X\", 153]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A sunburst pendant worth at least 100 gp\", \r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft rad 40-ft high all crea 4d10 Radiant dmg at cast/end turn; bns a move it 60 ft (100gp)\",\r\n\tdescriptionFull : \"The light of dawn shines down on a location you specify within range. Until the spell ends, a 30-foot-radius, 40-foot-high cylinder of bright light glimmers there. This light is sunlight.\" + \"\\n   \" + \"When the cylinder appears, each creature in it must make a Constitution saving throw, taking 4d10 radiant damage on a failed save, or half as much damage on a successful one. A creature must also make this saving throw whenever it ends its turn in the cylinder.\" + \"\\n   \" + \"If you're within 60 feet of the cylinder, you can move it up to 60 feet as a bonus action on your turn.\"\r\n};\r\nSpellsList[\"dragon's breath\"] = {\r\n\tname : \"Dragon's Breath\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 154]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A hot pepper\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 willing crea: 1 a breathe 15-ft cone all 3d6+1d6/SL Acid/Cold/Fire/Lightn./Poison dmg; save half\",\r\n\tdescriptionShorter : \"1 willing crea: 1 a 15-ft cone 3d6+1d6/SL Acid/Cold/Fire/Lightn/Poison dmg; save half\",\r\n\tdescriptionFull : \"You touch one willing creature and imbue it with the power to spew magical energy from its mouth, provided it has one. Choose acid, cold, fire, lightning, or poison. Until the spell ends, the creature can use an action to exhale energy of the chosen type in a 15-foot cone. Each creature in that area must make a Dexterity saving throw, taking 3d6 damage of the chosen type on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot level above 2nd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"poison\"],\r\n\t\t\tinDescriptionAs : \"Acid/Cold/Fire/Lightn.?/Poison\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"druid grove\"] = {\r\n\tname : \"Druid Grove\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 154]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"10 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Mistletoe, which the spell consumes, that was harvested with a golden sickle under the light of a full moon\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Protect 30-ft to 90-ft cube outdoors or underground; see book for effects\",\r\n\tdescriptionFull : \"You invoke the spirits of nature to protect an area outdoors or underground. The area can be as small as a 30-foot cube or as large as a 90-foot cube. Buildings and other structures are excluded from the affected area. If you cast this spell in the same area every day for a year, the spell lasts until dispelled.\" + \"\\n   \" + \"The spell creates the following effects within the area. When you cast this spell, you can specify creatures as friends who are immune to the effects. You can also specify a password that, when spoken aloud, makes the speaker immune to these effects.\" + \"\\n   \" + \"The entire warded area radiates magic. A dispel magic cast on the area, if successful, removes only one of the following effects, not the entire area. That spell's caster chooses which effect to end. Only when all its effects are gone is this spell dispelled.\" + \"\\n   \" + toUni(\"Solid Fog\") + \": You can fill any number of 5-foot squares on the ground with thick fog, making them heavily obscured. The fog reaches 10 feet high. In addition, every foot of movement through the fog costs 2 extra feet. To a creature immune to this effect, the fog obscures nothing and looks like soft mist, with motes of green light floating in the air.\" + \"\\n   \" + toUni(\"Grasping Undergrowth\") + \": You can fill any number of 5-foot squares on the ground that aren't filled with fog with grasping weeds and vines, as if they were affected by an entangle spell. To a creature immune to this effect, the weeds and vines feel soft and reshape themselves to serve as temporary seats or beds.\" + \"\\n   \" + toUni(\"Grove Guardians\") + \": You can animate up to four trees in the area, causing them to uproot themselves from the ground. These trees have the same statistics as an awakened tree, which appears in the Monster Manual, except they can't speak, and their bark is covered with druidic symbols. If any creature not immune to this effect enters the warded area, the grove guardians fight until they have driven off or slain the intruders. The grove guardians also obey your spoken commands (no action required by you) that you issue while in the area. If you don't give them commands and no intruders are present, the grove guardians do nothing. The grove guardians can't leave the warded area. When the spell ends, the magic animating them disappears, and the trees take root again if possible.\" + \"\\n   \" + toUni(\"Additional Spell Effects\") + \": You can place your choice of one of the following magical effects within the warded area:\" + \"\\n \\u2022 \" + \"A constant gust of wind in two locations of your choice\" + \"\\n \\u2022 \" + \"Spike growth in one location of your choice\" + \"\\n \\u2022 \" + \"Wind wall in two locations of your choice\" + \"\\n   \" + \"To a creature immune to this effect, the winds are a fragrant, gentle breeze, and the area of spike growth is harmless.\"\r\n};\r\nSpellsList[\"enemies abound\"] = {\r\n\tname : \"Enemies Abound\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or regard all creatures it can see as enemies, random targeting; save when damaged to end\",\r\n\tdescriptionFull : \"You reach into the mind of one creature you can see and force it to make an Intelligence saving throw. A creature automatically succeeds if it is immune to being frightened. On a failed save, the target loses the ability to distinguish friend from foe, regarding all creatures it can see as enemies until the spell ends. Each time the target takes damage, it can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"Whenever the affected creature chooses another creature as a target, it must choose the target at random from among the creatures it can see within range of the attack, spell, or other ability it's using. If an enemy provokes an opportunity attack from the affected creature, the creature must make that attack if it is able to.\"\r\n};\r\nSpellsList[\"enervation\"] = {\r\n\tname : \"Enervation\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 2d8+1d8/SL Necrotic dmg, saved: ends; fail: +2d8 dmg and Act to repeat; I heal half; see B\",\r\n\tdescriptionShorter : \"1 crea 2d8+1d8/SL Necro. dmg, save: ends; fail: +2d8 dmg & Act repeat; I heal half; see B\",\r\n\tdescriptionFull : \"A tendril of inky darkness reaches out from you, touching a creature you can see within range to drain life from it. The target must make a Dexterity saving throw. On a successful save, the target takes 2d8 necrotic damage, and the spell ends. On a failed save, the target takes 4d8 necrotic damage, and until the spell ends, you can use your action on each of your turns to automatically deal 4d8 necrotic damage to the target. The spell ends if you use your action to do anything else, if the target is ever outside the spell's range, or if the target has total cover from you.\" + \"\\n   \" + \"Whenever the spell deals damage to a target, you regain hit points equal to half the amount of necrotic damage the target takes.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the damage increases by 1d8 for each slot level above 5th.\",\r\n};\r\nSpellsList[\"far step\"] = {\r\n\tname : \"Far Step\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"At casting and as bonus action for duration, I can teleport 60 ft to a space I can see\",\r\n\tdescriptionFull : \"You teleport up to 60 feet to an unoccupied space you can see. On each of your turns before the spell ends, you can use a bonus action to teleport in this way again.\"\r\n};\r\nSpellsList[\"find greater steed\"] = {\r\n\tname : \"Find Greater Steed\",\r\n\t\tclasses : [\"paladin\"],\r\n\t\tsource : [[\"X\", 156]],\r\n\t\tlevel : 4,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"10 min\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tdescription : \"Gain the services of a steed; can communicate with it telepathically; can share spells with it; see book\",\r\n\t\tdescriptionFull : \"You summon a spirit that assumes the form of a loyal, majestic mount. Appearing in an unoccupied space within range, the spirit takes on a form you choose: a griffon, a pegasus, a peryton, a dire wolf, a rhinoceros, or a saber-toothed tiger. The creature has the statistics provided in the Monster Manual for the chosen form, though it is a celestial, a fey, or a fiend (your choice) instead of its normal creature type. Additionally, if it has an Intelligence score of 5 or lower, its Intelligence becomes 6, and it gains the ability to understand one language of your choice that you speak.\" + \"\\n   \" + \"You control the mount in combat. While the mount is within 1 mile of you, you can communicate with it telepathically. While mounted on it, you can make any spell you cast that targets only you also target the mount.\" + \"\\n   \" + \"The mount disappears temporarily when it drops to 0 hit points or when you dismiss it as an action. Casting this spell again re-summons the bonded mount, with all its hit points restored and any conditions removed.\" + \"\\n   \" + \"You can't have more than one mount bonded by this spell or find steed at the same time. As an action, you can release a mount from its bond, causing it to disappear permanently.\" + \"\\n   \" + \"Whenever the mount disappears, it leaves behind any objects it was wearing or carrying.\"\r\n};\r\nSpellsList[\"guardian of nature\"] = {\r\n\tname : \"Guardian of Nature\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I transform into a Primal Beast (offensive bonuses) or a Great Tree (defensive bonuses); see book\",\r\n\tdescriptionFull : \"A nature spirit answers your call and transforms you into a powerful guardian. The transformation lasts until the spell ends. You choose one of the following forms to assume: Primal Beast or Great Tree.\" + \"\\n\\n\" + toUni(\"Primal Beast\") + \": Bestial fur covers your body, your facial features become feral, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"Your walking speed increases by 10 feet.\" + \"\\n \\u2022 \" + \"You gain darkvision with a range of 120 feet.\" + \"\\n \\u2022 \" + \"You make Strength-based attack rolls with advantage.\" + \"\\n \\u2022 \" + \"Your melee weapon attacks deal an extra 1d6 force damage on a hit.\" + \"\\n\\n\" + toUni(\"Great Tree\") + \": Your skin appears barky, leaves sprout from your hair, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You gain 10 temporary hit points.\" + \"\\n \\u2022 \" + \"You make Constitution saving throws with advantage.\" + \"\\n \\u2022 \" + \"You make Dexterity- and Wisdom-based attack rolls with advantage.\" + \"\\n \\u2022 \" + \"While you are on the ground, the ground within 15 feet of you is difficult terrain for your enemies.\"\r\n};\r\nSpellsList[\"healing spirit\"] = { // limited usages (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Healing Spirit\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"5-ft cube; any living crea I see start/enter heals 1d6+1d6/SL HP; 1+spell mod uses; bns a move it 30 ft\",\r\n\tdescriptionShorter : \"5-ft cube; any living start/enter heals 1d6+1d6/SL HP; 1+spell mod uses; bns a move 30 ft\",\r\n\tdescriptionFull : \"You call forth a nature spirit to soothe the wounded. The intangible spirit appears in a space that is a 5-foot cube you can see within range. The spirit looks like a transparent beast or fey (your choice).\" + \"\\n   \" + \"Until the spell ends, whenever you or a creature you can see moves into the spirit's space for the first time on a turn or starts its turn there, you can cause the spirit to restore 1d6 hit points to that creature (no action required). The spirit can't heal constructs or undead. The spirit can heal a number of times equal to 1 + your spellcasting ability modifier (minimum of twice). After healing that number of times, the spirit disappears.\" + \"\\n   \" + \"As a bonus action on your turn, you can move the spirit up to 30 feet to a space you can see.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the healing increases by 1d6 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"holy weapon\"] = { \r\n\tname : \"Holy Weapon\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Wea +2d8 Radiant dmg; bns a end spell: 30-ft rad all crea 4d8 Radiant dmg, blind; save half, no blind\",\r\n\tdescriptionShorter : \"wea +2d8 Radiant dmg; bns a end: 30-ft rad all 4d8 Radiant dmg, blind; save half, no blind\",\r\n\tdescriptionFull : \"You imbue a weapon you touch with holy power. Until the spell ends, the weapon emits bright light in a 30-foot radius and dim light for an additional 30 feet. In addition, weapon attacks made with it deal an extra 2d8 radiant damage on a hit. If the weapon isn't already a magic weapon, it becomes one for the duration.\" + \"\\n   \" + \"As a bonus action on your turn, you can dismiss this spell and cause the weapon to emit a burst of radiance. Each creature of your choice that you can see within 30 feet of the weapon must make a Constitution saving throw. On a failed save, a creature takes 4d8 radiant damage, and it is blinded for 1 minute. On a successful save, a creature takes half as much damage and isn't blinded. At the end of each of its turns, a blinded creature can make a Constitution saving throw, ending the effect on itself on a success.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\tskipDmgGroupIfNotMultiple : /(wea .*?radiant dmg.*?)/i\r\n\t}\r\n};\r\nSpellsList[\"illusory dragon\"] = {\r\n\tname : \"Illusory Dragon\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 8,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"W/I\",\r\n\tdescription : \"Huge shadowy dragon; see: Wis save or fright.; bns a move 60 ft \\u0026 breath wea 7d6 dmg; Int save half\",\r\n\tdescriptionShorter : \"Huge illus.; see: Wis save or fright.; bns a move 60 ft \\u0026 breath wea 7d6 dmg; Int save half\",\r\n\tdescriptionFull : \"By gathering threads of shadow material from the Shadowfell, you create a Huge shadowy dragon in an unoccupied space that you can see within range. The illusion lasts for the spell's duration and occupies its space, as if it were a creature.\" + \"\\n   \" + \"When the illusion appears, any of your enemies that can see it must succeed on a Wisdom saving throw or become frightened of it for 1 minute. If a frightened creature ends its turn in a location where it doesn't have line of sight to the illusion, it can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"As a bonus action on your turn, you can move the illusion up to 60 feet. At any point during its movement, you can cause it to exhale a blast of energy in a 60-foot cone originating from its space. When you create the dragon, choose a damage type: acid, cold, fire, lightning, necrotic, or poison. Each creature in the cone must make an Intelligence saving throw, taking 7d6 damage of the chosen damage type on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"The illusion is tangible because of the shadow stuff used to create it, but attacks miss it automatically, it succeeds on all saving throws, and it is immune to all damage and conditions. A creature that uses an action to examine the dragon can determine that it is an illusion by succeeding on an Intelligence (Investigation) check against your spell save DC. If a creature discerns the illusion for what it is, the creature can see through it and has advantage on saving throws against its breath.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"radiant\", \"necrotic\"],\r\n\t\t\tinDescriptionAs : ''\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"infernal calling\"] = {\r\n\tname : \"Infernal Calling\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 158]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A ruby worth at least 999 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 1 devil of CR 6+1/SL; hostile to all, obeys my command if to its liking or Cha check; see B\",\r\n\tdescriptionFull : \"Uttering a dark incantation, you summon a devil from the Nine Hells. You choose the devil's type, which must be one of challenge rating 6 or lower, such as a barbed devil or a bearded devil. The devil appears in an unoccupied space that you can see within range. The devil disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The devil is unfriendly toward you and your companions. Roll initiative for the devil, which has its own turns. It is under the Dungeon Master's control and acts according to its nature on each of its turns, which might result in its attacking you if it thinks it can prevail, or trying to tempt you to undertake an evil act in exchange for limited service. The DM has the creature's statistics.\" + \"\\n   \" + \"On each of your turns, you can try to issue a verbal command to the devil (no action required by you). It obeys the command if the likely outcome is in accordance with its desires, especially if the result would draw you toward evil. Otherwise, you must make a Charisma (Deception, Intimidation, or Persuasion) check contested by its Wisdom (Insight) check. You make the check with advantage if you say the devil's true name. If your check fails, the devil becomes immune to your verbal commands for the duration of the spell, though it can still carry out your commands if it chooses. If your check succeeds, the devil carries out your command \\u2014 such as “attack my enemies,” “explore the room ahead,” or “bear this message to the queen” \\u2014 until it completes the activity, at which point it returns to you to report having done so.\" + \"\\n   \" + \"If your concentration ends before the spell reaches its full duration, the devil doesn't disappear if it has become immune to your verbal commands. Instead, it acts in whatever manner it chooses for 3d6 minutes, and then it disappears.\" + \"\\n   \" + \"If you possess an individual devil's talisman, you can summon that devil if it is of the appropriate challenge rating plus 1, and it obeys all your commands, with no Charisma checks required.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the challenge rating increases by 1 for each slot level above 5th.\"\r\n};\r\nSpellsList[\"infestation\"] = {\r\n\tname : \"Infestation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 158]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A living flea\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Poison dmg and moved 5 ft in random direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Poison dmg and moved 5 ft in random direction\",\r\n\tdescriptionFull : \"You cause a cloud of mites, fleas, and other parasites to appear momentarily on one creature you can see within range. The target must succeed on a Constitution saving throw, or it takes 1d6 poison damage and moves 5 feet in a random direction if it can move and its speed is at least 5 feet. Roll a d4 for the direction:\" + \"\\n\\n\" + toUni(\"d4\") + \"\\t\" + toUni(\"Direction\") + \"\\n  1\\tNorth\" + \"\\n  2\\tSouth\" + \"\\n  3\\tEast\" + \"\\n  4\\tWest\" + \"\\n\\n   \" + \"This movement doesn't provoke opportunity attacks, and if the direction rolled is blocked, the target doesn't move.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"invulnerability\"] = {\r\n\tname : \"Invulnerability\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 9,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A small piece of adamantine worth at least 500 gp, which the spell consumes\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Immune to all damage until the spell ends (500gp cons.)\",\r\n\tdescriptionFull : \"You are immune to all damage until the spell ends.\"\r\n};\r\nSpellsList[\"life transference\"] = { // can't reduce damage taken (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Life Transference\",\r\n\tclasses : [\"cleric\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I take 4d8+1d8/SL Necrotic dmg (in full) and 1 crea in range I can see heals twice that in HP\",\r\n\tdescriptionFull : \"You sacrifice some of your health to mend another creature's injuries. You take 4d8 necrotic damage, which can't be reduced in any way, and one creature of your choice that you can see within range regains a number of hit points equal to twice the necrotic damage you take.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"maddening darkness\"] = {\r\n\tname : \"Maddening Darkness\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A drop of pitch mixed with a drop of mercury\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"60-ft rad darkness; darkvision, no light works; all crea starting turn in 8d8 Psychic dmg, save halves\",\r\n\tdescriptionShorter : \"60-ft rad darkness; darkvision, no light works; all start turn in 8d8 Psychic dmg, save half\",\r\n\tdescriptionFull : \"Magical darkness spreads from a point you choose within range to fill a 60-foot-radius sphere until the spell ends. The darkness spreads around corners. A creature with darkvision can't see through this darkness. Nonmagical light, as well as light created by spells of 8th level or lower, can't illuminate the area.\" + \"\\n   \" + \"Shrieks, gibbering, and mad laughter can be heard within the sphere. Whenever a creature starts its turn in the sphere, it must make a Wisdom saving throw, taking 8d8 psychic damage on a failed save, or half as much damage on a successful one.\"\r\n};\r\nSpellsList[\"mass polymorph\"] = {\r\n\tname : \"Mass Polymorph\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 9,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A caterpillar cocoon\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"10 crea save or take chosen beast form of CR \\u2264 its CR or half its char. level; can only act as beast; see B\",\r\n\tdescriptionFull : \"You transform up to ten creatures of your choice that you can see within range. An unwilling target must succeed on a Wisdom saving throw to resist the transformation. An unwilling shapechanger automatically succeeds on the save.\" + \"\\n   \" + \"Each target assumes a beast form of your choice, and you can choose the same form or different ones for each target. The new form can be any beast you have seen whose challenge rating is equal to or less than the target's (or half the target's level, if the target doesn't have a challenge rating). The target's game statistics, including mental ability scores, are replaced by the statistics of the chosen beast, but the target retains its hit points, alignment, and personality.\" + \"\\n   \" + \"Each target gains a number of temporary hit points equal to the hit points of its new form. These temporary hit points can't be replaced by temporary hit points from another source. A target reverts to its normal form when it has no more temporary hit points or it dies. If the spell ends before then, the creature loses all its temporary hit points and reverts to its normal form.\" + \"\\n   \" + \"The creature is limited in the actions it can perform by the nature of its new form. It can't speak, cast spells, or do anything else that requires hands or speech.\" + \"\\n   \" + \"The target's gear melds into the new form. The target can't activate, use, wield, or otherwise benefit from any of its equipment.\"\r\n};\r\nSpellsList[\"mental prison\"] = {\r\n\tname : \"Mental Prison\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 161]],\r\n\tlevel : 6,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 5d10 Psychic dmg; save or restrained, blind, deaf, and if moved: 10d10 dmg, ends; charm effect\",\r\n\tdescriptionShorter : \"1 crea 5d10 Psychic dmg; save or restrained, blind, deaf, if move: 10d10 dmg, ends; charm\",\r\n\tdescriptionFull : \"You attempt to bind a creature within an illusory cell that only it perceives. One creature you can see within range must make an Intelligence saving throw. The target succeeds automatically if it is immune to being charmed. On a successful save, the target takes 5d10 psychic damage, and the spell ends. On a failed save, the target takes 5d10 psychic damage, and you make the area immediately around the target's space appear dangerous to it in some way. You might cause the target to perceive itself as being surrounded by fire, floating razors, or hideous maws filled with dripping teeth. Whatever form the illusion takes, the target can't see or hear anything beyond it and is restrained for the spell's duration. If the target is moved out of the illusion, makes a melee attack through it, or reaches any part of its body through it, the target takes 10d10 psychic damage, and the spell ends.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /(if moved?: )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"mighty fortress\"] = {\r\n\tname : \"Mighty Fortress\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 161]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"1 mile\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A diamond worth at least 500 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Create a stone fortress 120 ft on a side for 7 days; see book for effects (500gp cons.)\",\r\n\tdescriptionFull : \"A fortress of stone erupts from a square area of ground of your choice that you can see within range. The area is 120 feet on each side, and it must not have any buildings or other structures on it. Any creatures in the area are harmlessly lifted up as the fortress rises.\" + \"\\n   \" + \"The fortress has four turrets with square bases, each one 20 feet on a side and 30 feet tall, with one turret on each corner. The turrets are connected to each other by stone walls that are each 80 feet long, creating an enclosed area. Each wall is 1 foot thick and is composed of panels that are 10 feet wide and 20 feet tall. Each panel is contiguous with two other panels or one other panel and a turret. You can place up to four stone doors in the fortress's outer wall.\" + \"\\n   \" + \"A small keep stands inside the enclosed area. The keep has a square base that is 50 feet on each side, and it has three floors with 10-foot-high ceilings. Each of the floors can be divided into as many rooms as you like, provided each room is at least 5 feet on each side. The floors of the keep are connected by stone staircases, its walls are 6 inches thick, and interior rooms can have stone doors or open archways as you choose. The keep is furnished and decorated however you like, and it contains sufficient food to serve a nine-course banquet for up to 100 people each day. Furnishings, food, and other objects created by this spell crumble to dust if removed from the fortress.\" + \"\\n   \" + \"A staff of one hundred invisible servants obeys any command given to them by creatures you designate when you cast the spell. Each servant functions as if created by the unseen servant spell.\" + \"\\n   \" + \"The walls, turrets, and keep are all made of stone that can be damaged. Each 10-foot-by-10-foot section of stone has AC 15 and 30 hit points per inch of thickness. It is immune to poison and psychic damage. Reducing a section of stone to 0 hit points destroys it and might cause connected sections to buckle and collapse at the DM's discretion.\" + \"\\n   \" + \"After 7 days or when you cast this spell somewhere else, the fortress harmlessly crumbles and sinks back into the ground, leaving any creatures that were inside it safely on the ground.\" + \"\\n   \" + \"Casting this spell on the same spot once every 7 days for a year makes the fortress permanent.\"\r\n};\r\nSpellsList[\"mind spike\"] = { // +1d8 at higher levels errata (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Mind Spike\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 162]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea 3d8+1d8/SL Psychic dmg, know its location, can't be invis for me; save half, no other benefits\",\r\n\tdescriptionShorter : \"1 crea 3d8+1d8/SL Psychic dmg, know its location, can't be invis for me; save half, not rest\",\r\n\tdescriptionFull : \"You reach into the mind of one creature you can see within range. The target must make a Wisdom saving throw, taking 3d8 psychic damage on a failed save, or half as much damage on a successful one. On a failed save, you also always know the target's location until the spell ends, but only while the two of you are on the same plane of existence. While you have this knowledge, the target can't become hidden from you, and if it's invisible, it gains no benefit from that condition against you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"negative energy flood\"] = {\r\n\tname : \"Negative Energy Flood\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A broken bone and a square of black silk\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea: living 5d12 Necrotic dmg, save halves, rises as zombie if killed; undead 5d12/2 temp HP\",\r\n\tdescriptionFull : \"You send ribbons of negative energy at one creature you can see within range. Unless the target is undead, it must make a Constitution saving throw, taking 5d12 necrotic damage on a failed save, or half as much damage on a successful one. A target killed by this damage rises up as a zombie at the start of your next turn. The zombie pursues whatever creature it can see that is closest to it. Statistics for the zombie are in the Monster Manual.\" + \"\\n   \" + \"If you target an undead with this spell, the target doesn't make a saving throw. Instead, roll 5d12. The target gains half the total as temporary hit points.\"\r\n};\r\nSpellsList[\"power word pain\"] = {\r\n\tname : \"Power Word Pain\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 7,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea with 100 HP or less disadv. atk/check/save, conc. save to cast; save/rnd to end; charm effect\",\r\n\tdescriptionFull : \"You speak a word of power that causes waves of intense pain to assail one creature you can see within range. If the target has 100 hit points or fewer, it is subject to crippling pain. Otherwise, the spell has no effect on it. A target is also unaffected if it is immune to being charmed.\" + \"\\n   \" + \"While the target is affected by crippling pain, any speed it has can be no higher than 10 feet. The target also has disadvantage on attack rolls, ability checks, and saving throws, other than Constitution saving throws. Finally, if the target tries to cast a spell, it must first succeed on a Constitution saving throw, or the casting fails and the spell is wasted.\" + \"\\n   \" + \"A target suffering this pain can make a Constitution saving throw at the end of each of its turns. On a successful save, the pain ends.\"\r\n};\r\nSpellsList[\"primal savagery\"] = { \r\n\tname : \"Primal Savagery\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack, 5 ft range, for 1d10 Acid dmg; +1d10 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Melee spell attack, 5 ft range, for `CD`d10 Acid dmg\",\r\n\tdescriptionFull : \"You channel primal magic to cause your teeth or fingernails to sharpen, ready to deliver a corrosive attack. Make a melee spell attack against one creature within 5 feet of you. On a hit, the target takes 1d10 acid damage. After you make the attack, your teeth or fingernails return to normal.\" + \"\\n   \" + \"The spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nSpellsList[\"psychic scream\"] = {\r\n\tname : \"Psychic Scream\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 9,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"10 crea Int>2 save or 14d6 Psychic dmg and stunned; save halves, no stun; end of turn save to stop\",\r\n\tdescriptionFull : \"You unleash the power of your mind to blast the intellect of up to ten creatures of your choice that you can see within range. Creatures that have an Intelligence score of 2 or lower are unaffected.\" + \"\\n   \" + \"Each target must make an Intelligence saving throw. On a failed save, a target takes 14d6 psychic damage and is stunned. On a successful save, a target takes half as much damage and isn't stunned. If a target is killed by this damage, its head explodes, assuming it has one.\" + \"\\n   \" + \"A stunned target can make an Intelligence saving throw at the end of each of its turns. On a successful save, the stunning effect ends.\"\r\n};\r\nSpellsList[\"scatter\"] = {\r\n\tname : \"Scatter\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Up to 5 creatures in range, save or teleported 120 ft to a different space I can see on the ground\",\r\n\tdescriptionFull : \"The air quivers around up to five creatures of your choice that you can see within range. An unwilling creature must succeed on a Wisdom saving throw to resist this spell. You teleport each affected target to an unoccupied space that you can see within 120 feet of you. That space must be on the ground or on a floor.\"\r\n};\r\nSpellsList[\"shadow blade\"] = {\r\n\tname : \"Shadow Blade\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Sword 2d8 Psychic dmg, finesse, light, thrown (20/60 ft), adv. if target in dim/dark; +1d8 at SL3/5/7\",\r\n\tdescriptionMetric : \"Sword: 2d8 Psychic dmg, finesse, light, thrown (6/18 m), adv. if target in dim/dark; +1d8 at SL3/5/7\",\r\n\tdescriptionShorter : \"Sword 2d8 Psychic dmg, finesse, light, thrown (20/60ft), adv. in dim/dark; +1d8 SL3/5/7\",\r\n\tdescriptionShorterMetric : \"Sword 2d8 Psychic dmg, finesse, light, thrown (6/18 m), adv. in dim/dark; +1d8 SL3/5/7\",\r\n\tdescriptionFull : \"You weave together threads of shadow to create a sword of solidified gloom in your hand. This magic sword lasts until the spell ends. It counts as a simple melee weapon with which you are proficient. It deals 2d8 psychic damage on a hit and has the finesse, light, and thrown properties (range 20/60). In addition, when you use the sword to attack a target that is in dim light or darkness, you make the attack roll with advantage.\" + \"\\n   \" + \"If you drop the weapon or throw it, it dissipates at the end of the turn. Thereafter, while the spell persists, you can use a bonus action to cause the sword to reappear in your hand.\" + AtHigherLevels + \"When you cast this spell using a 3rd- or 4th-level spell slot, the damage increases to 3d8. When you cast it using a 5th- or 6th-level spell slot, the damage increases to 4d8. When you cast it using a spell slot of 7th level or higher, the damage increases to 5d8.\"\r\n};\r\nWeaponsList[\"shadow blade\"] = {\r\n\tregExpSearch : /(?=.*shadow)(?=.*blade).*$/i,\r\n\tname : \"Shadow Blade\",\r\n\tsource : [[\"X\", 164]],\r\n\tlist : \"spell\",\r\n\tability : 1,\r\n\ttype : \"Simple\",\r\n\tdamage : [2, 8, \"psychic\"],\r\n\trange : \"Melee, 20/60 ft\",\r\n\tdescription : \"Finesse, light, thrown; +1d8 at SL3/5/7; Adv. if target in dim light/darkness\",\r\n\tabilitytodamage : true,\r\n\tisAlwaysProf : true,\r\n\tuseSpellcastingAbility : false\r\n};\r\nSpellsList[\"shadow of moil\"] = {\r\n\tname : \"Shadow of Moil\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 4,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An undead eyeball encased in a gem worth at least 150 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me: heavy obsc., Radiant resistance; 10-ft rad: 1 step darker, hit vs. me get 2d8 Necrotic dmg (150gp)\",\r\n\tdescriptionShorter : \"Me: hvy obsc., Radiant resist; 10-ft rad: 1 step darker, hit vs. me 2d8 Necrotic dmg (150gp)\",\r\n\tdescriptionFull : \"Flame-like shadows wreathe your body until the spell ends, causing you to become heavily obscured to others. The shadows turn dim light within 10 feet of you into darkness, and bright light in the same area to dim light.\" + \"\\n   \" + \"Until the spell ends, you have resistance to radiant damage. In addition, whenever a creature within 10 feet of you hits you with an attack, the shadows lash out at that creature, dealing it 2d8 necrotic damage.\"\r\n};\r\nSpellsList[\"sickening radiance\"] = {\r\n\tname : \"Sickening Radiance\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft rad all enter/start turn save or 4d10 Radiant dmg, 1 level of exhaustion, and emit 5-ft rad light\",\r\n\tdescriptionShorter : \"30-ft rad all enter/start turn save or 4d10 Radiant dmg, 1 lvl exhaust., emit 5-ft rad light\",\r\n\tdescriptionFull : \"Dim, greenish light spreads within a 30-foot-radius sphere centered on a point you choose within range. The light spreads around corners, and it lasts until the spell ends.\" + \"\\n   \" + \"When a creature moves into the spell's area for the first time on a turn or starts its turn there, that creature must succeed on a Constitution saving throw or take 4d10 radiant damage, and it suffers one level of exhaustion and emits a dim, greenish light in a 5-foot radius. This light makes it impossible for the creature to benefit from being invisible. The light and any levels of exhaustion caused by this spell go away when the spell ends.\"\r\n};\r\nSpellsList[\"skill empowerment\"] = {\r\n\tname : \"Skill Empowerment\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 willing creature gains expertise in one skill of my choice that it is proficient with for the duration\",\r\n\tdescriptionFull : \"Your magic deepens a creature's understanding of its own talent. You touch one willing creature and give it expertise in one skill of your choice; until the spell ends, the creature doubles its proficiency bonus for ability checks it makes that use the chosen skill.\" + \"\\n   \" + \"You must choose a skill in which the target is proficient and that isn't already benefiting from an effect, such as Expertise, that doubles its proficiency bonus.\"\r\n};\r\nSpellsList[\"snare\"] = {\r\n\tname : \"Snare\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"S,M\\u2020\",\r\n\tcompMaterial : \"25 feet of rope, which the spell consumes\",\r\n\tduration : \"8 h, till trigger\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft rad trap; Investigation vs spell DC to see; save or restrained 3 ft in the air; save each rnd (5sp)\",\r\n\tdescriptionFull : \"As you cast this spell, you use the rope to create a circle with a 5-foot radius on the ground or the floor. When you finish casting, the rope disappears and the circle becomes a magic trap.\" + \"\\n   \" + \"This trap is nearly invisible, requiring a successful Intelligence (Investigation) check against your spell save DC to be discerned.\" + \"\\n   \" + \"The trap triggers when a Small, Medium, or Large creature moves onto the ground or the floor in the spell's radius. That creature must succeed on a Dexterity saving throw or be magically hoisted into the air, leaving it hanging upside down 3 feet above the ground or the floor. The creature is restrained there until the spell ends.\" + \"\\n   \" + \"A restrained creature can make a Dexterity saving throw at the end of each of its turns, ending the effect on itself on a success. Alternatively, the creature or someone else who can reach it can use an action to make an Intelligence (Arcana) check against your spell save DC. On a success, the restrained effect ends.\" + \"\\n   \" + \"After the trap is triggered, the spell ends when no creature is restrained by it.\"\r\n};\r\nSpellsList[\"soul cage\"] = {\r\n\tname : \"Soul Cage\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 6,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when a humanoid you can see within 60 feet of you dies\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A tiny silver cage worth 100 gp\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"As a reaction when humanoid in range dies, I capture their soul in a tiny cage; see book (100gp)\",\r\n\tdescriptionFull : \"This spell snatches the soul of a humanoid as it dies and traps it inside the tiny cage you use for the material component. A stolen soul remains inside the cage until the spell ends or until you destroy the cage, which ends the spell. While you have a soul inside the cage, you can exploit it in any of the ways described below. You can use a trapped soul up to six times. Once you exploit a soul for the sixth time, it is released, and the spell ends. While a soul is trapped, the dead humanoid it came from can't be revived.\" + \"\\n   \" + toUni(\"Steal Life\") + \": You can use a bonus action to drain vigor from the soul and regain 2d8 hit points.\" + \"\\n   \" + toUni(\"Query Soul\") + \": You ask the soul a question (no action required) and receive a brief telepathic answer, which you can understand regardless of the language used. The soul knows only what it knew in life, but it must answer you truthfully and to the best of its ability. The answer is no more than a sentence or two and might be cryptic.\" + \"\\n   \" + toUni(\"Borrow Experience\") + \": You can use a bonus action to bolster yourself with the soul's life experience, making your next attack roll, ability check, or saving throw with advantage. If you don't use this benefit before the start of your next turn, it is lost.\" + \"\\n   \" + toUni(\"Eyes of the Dead\") + \": You can use an action to name a place the humanoid saw in life, which creates an invisible sensor somewhere in that place if it is on the plane of existence you're currently on. The sensor remains for as long as you concentrate, up to 10 minutes (as if you were concentrating on a spell). You receive visual and auditory information from the sensor as if you were in its space using your senses\" + \"\\n   \" + \"A creature that can see the sensor (such as one using see invisibility or truesight) sees a translucent image of the tormented humanoid whose soul you caged.\"\r\n};\r\nSpellsList[\"steel wind strike\"] = {\r\n\tname : \"Steel Wind Strike\",\r\n\tclasses : [\"ranger\", \"wizard\"],\r\n\tsource : [[\"X\", 166]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack vs. 5 crea in range; 6d10 Force dmg on hit; after, I teleport next to one target\",\r\n\tdescriptionFull : \"You flourish the weapon used in the casting and then vanish to strike like the wind. Choose up to five creatures you can see within range. Make a melee spell attack against each target. On a hit, a target takes 6d10 force damage.\" + \"\\n   \" + \"You can then teleport to an unoccupied space you can see within 5 feet of one of the targets you hit or missed.\"\r\n};\r\nSpellsList[\"summon greater demon\"] = {\r\n\tname : \"Summon Greater Demon\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 166]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from a humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"Summon 1 demon of CR 5+1/SL that obeys me; end of each of its turn, save to break free; see book\",\r\n\tdescriptionFull : \"You utter foul words, summoning one demon from the chaos of the Abyss. You choose the demon's type, which must be one of challenge rating 5 or lower, such as a shadow demon or a barlgura. The demon appears in an unoccupied space you can see within range, and the demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"Roll initiative for the demon, which has its own turns. When you summon it and on each of your turns thereafter, you can issue a verbal command to it (requiring no action on your part), telling it what it must do on its next turn. If you issue no command, it spends its turn attacking any creature within reach that has attacked it.\" + \"\\n   \" + \"At the end of each of the demon's turns, it makes a Charisma saving throw. The demon has disadvantage on this saving throw if you say its true name. On a failed save, the demon continues to obey you. On a successful save, your control of the demon ends for the rest of the duration, and the demon spends its turns pursuing and attacking the nearest non-demons to the best of its ability. If you stop concentrating on the spell before it reaches its full duration, an uncontrolled demon doesn't disappear for 1d6 rounds if it still has hit points.\" + \"\\n   \" + \"As part of casting the spell, you can form a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. While the spell lasts, the summoned demon can't cross the circle or harm it, and it can't target anyone within it. Using the material component in this manner consumes it when the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the challenge rating increases by 1 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"summon lesser demons\"] = {\r\n\tname : \"Summon Lesser Demons\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from a humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon up to 8 (16 at SL6, 24 at SL8) CR \\u22641 1 demons, DM choice; attack nearest non-demons\",\r\n\tdescriptionFull : \"You utter foul words, summoning demons from the chaos of the Abyss. Roll on the following table to determine what appears.\" + \"\\n\\n \" + toUni(\"d6\") + \"\\t\" + toUni(\"Demons Summoned\") + \"\\n  1-2\\tTwo demons of challenge rating 1 or lower\" + \"\\n  3-4\\tFour demons of challenge rating 1/2 or lower\" + \"\\n  5-6\\tEight demons of challenge rating 1/4 or lower\" + \"\\n\\n   \" + \"The DM chooses the demons, such as manes or dretches, and you choose the unoccupied spaces you can see within range where they appear. A summoned demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The demons are hostile to all creatures, including you. Roll initiative for the summoned demons as a group, which has its own turns. The demons pursue and attack the nearest non-demons to the best of their ability.\" + \"\\n   \" + \"As part of casting the spell, you can form a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. While the spell lasts, the summoned demons can't cross the circle or harm it, and they can't target anyone within it. Using the material component in this manner consumes it when the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th or 7th level, you summon twice as many demons. If you cast it using a spell slot of 8th or 9th level, you summon three times as many demons.\"\r\n};\r\nSpellsList[\"synaptic static\"] = {\r\n\tname : \"Synaptic Static\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 5,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instant, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"20-ft rad all crea Int>2 save or 8d6 Psychic dmg, -1d6 on atks/check/conc. save; save half, no -1d6\",\r\n\tdescriptionShorter : \"20-ft rad all crea Int>2 save or 8d6 Psychic dmg, -1d6 on atk/chk/conc save; save half, no -1d6\",\r\n\tdescriptionFull : \"You choose a point within range and cause psychic energy to explode there. Each creature in a 20-foot-radius sphere centered on that point must make an Intelligence saving throw. A creature with an Intelligence score of 2 or lower can't be affected by this spell. A target takes 8d6 psychic damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"After a failed save, a target has muddled thoughts for 1 minute. During that time, it rolls a d6 and subtracts the number rolled from all its attack rolls and ability checks, as well as its Constitution saving throws to maintain concentration. The target can make an Intelligence saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n};\r\nSpellsList[\"temple of the gods\"] = {\r\n\tname : \"Temple of the Gods\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 h\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A holy symbol worth at least 5 gp\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Create a temple 120 ft on a side to the deity of a holy symbol used; see book for effects\",\r\n\tdescriptionFull : \"You cause a temple to shimmer into existence on ground you can see within range. The temple must fit within an unoccupied cube of space, up to 120 feet on each side. The temple remains until the spell ends. It is dedicated to whatever god, pantheon, or philosophy is represented by the holy symbol used in the casting.\" + \"\\n   \" + \"You make all decisions about the temple's appearance. The interior is enclosed by a floor, walls, and a roof, with one door granting access to the interior and as many windows as you wish. Only you and any creatures you designate when you cast the spell can open or close the door.\" + \"\\n   \" + \"The temple's interior is an open space with an idol or altar at one end. You decide whether the temple is illuminated and whether that illumination is bright light or dim light. The smell of burning incense fills the air within, and the temperature is mild.\" + \"\\n   \" + \"The temple opposes types of creatures you choose when you cast this spell. Choose one or more of the following: celestials, elementals, fey, fiends, or undead. If a creature of the chosen type attempts to enter the temple, that creature must make a Charisma saving throw. On a failed save, it can't enter the temple for 24 hours. Even if the creature can enter the temple, the magic there hinders it; whenever it makes an attack roll, an ability check, or a saving throw inside the temple, it must roll a d4 and subtract the number rolled from the d20 roll.\" + \"\\n   \" + \"In addition, the sensors created by divination spells can't appear inside the temple, and creatures within can't be targeted by divination spells.\" + \"\\n   \" + \"Finally, whenever any creature in the temple regains hit points from a spell of 1st level or higher, the creature regains additional hit points equal to your Wisdom modifier (minimum 1 hit point).\" + \"\\n   \" + \"The temple is made from opaque magical force that extends into the Ethereal Plane, thus blocking ethereal travel into the temple's interior. Nothing can physically pass through the temple's exterior. It can't be dispelled by dispel magic, and antimagic field has no effect on it. A disintegrate spell destroys the temple instantly.\" + \"\\n   \" + \"Casting this spell on the same spot once every 7 days for a year makes this effect permanent.\"\r\n};\r\nSpellsList[\"tenser's transformation\"] = {\r\n\tname : \"Tenser's Transformation\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A few hairs from a bull\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"50 temp HP; prof Str/Con save, all wea/arm; extra atk; adv., wea atks +2d12 Force dmg; no spellc.\",\r\n\tdescriptionShorter : \"50 temp HP; prof Str/Con save, wea/arm; +1 atk; adv, wea atks +2d12 Force dmg; no spellc\",\r\n\tdescriptionFull : \"You endow yourself with endurance and martial prowess fueled by magic. Until the spell ends, you can't cast spells, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You gain 50 temporary hit points. If any of these remain when the spell ends, they are lost.\" + \"\\n \\u2022 \" + \"You have advantage on attack rolls that you make with simple and martial weapons.\" + \"\\n \\u2022 \" + \"When you hit a target with a weapon attack, that target takes an extra 2d12 force damage.\" + \"\\n \\u2022 \" + \"You have proficiency with all armor, shields, simple weapons, and martial weapons.\" + \"\\n \\u2022 \" + \"You have proficiency in Strength and Constitution saving throws.\" + \"\\n \\u2022 \" + \"You can attack twice, instead of once, when you take the Attack action on your turn. You ignore this benefit if you already have a feature, like Extra Attack, that gives you extra attacks.\" + \"\\n   \" + \"Immediately after the spell ends, you must succeed on a DC 15 Constitution saving throw or suffer one level of exhaustion.\"\r\n};\r\nSpellsList[\"thunder step\"] = {\r\n\tname : \"Thunder Step\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Me + 1 willing crea teleport 90 ft; all crea in 10 ft of origin 3d10+1d10/SL Thunder dmg; save half\",\r\n\tdescriptionShorter : \"Me + 1 willing crea teleport 90 ft; all in 10 ft of origin 3d10+1d10/SL Thunder dmg; save half\",\r\n\tdescriptionFull : \"You teleport yourself to an unoccupied space you can see within range. Immediately after you disappear, a thunderous boom sounds, and each creature within 10 feet of the space you left must make a Constitution saving throw, taking 3d10 thunder damage on a failed save, or half as much damage on a successful one. The thunder can be heard from up to 300 feet away.\" + \"\\n   \" + \"You can bring along objects as long as their weight doesn't exceed what you can carry. You can also teleport one willing creature of your size or smaller who is carrying gear up to its carrying capacity. The creature must be within 5 feet of you when you cast this spell, and there must be an unoccupied space within 5 feet of your destination space for the creature to appear in; otherwise, the creature is left behind.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d10 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"tiny servant\"] = {\r\n\tname : \"Tiny Servant\",\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"Animate 1+2/SL Tiny, nonmagical, unattended obj as tiny servants; bns a to command telepathically\",\r\n\tdescriptionFull : \"You touch one Tiny, nonmagical object that isn't attached to another object or a surface and isn't being carried by another creature. The target animates and sprouts little arms and legs, becoming a creature under your control until the spell ends or the creature drops to 0 hit points. See the Tiny Servant stat block for its statistics.\" + \"\\n   \" + \"As a bonus action, you can mentally command the creature if it is within 120 feet of you. (If you control multiple creatures with this spell, you can command any or all of them at the same time, issuing the same command to each one.) You decide what action the creature will take and where it will move during its next turn, or you can issue a simple, general command, such as to fetch a key, stand watch, or stack some books. If you issue no commands, the servant does nothing other than defend itself against hostile creatures. Once given an order, the servant continues to follow that order until its task is complete.\" + \"\\n   \" + \"When the creature drops to 0 hit points, it reverts to its original form, and any remaining damage carries over to that form.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can animate two additional objects for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"toll the dead\"] = {\r\n\tname : \"Toll the Dead\",\r\n\tclasses : [\"cleric\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\tlevel : 0,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 1d12 Necrotic dmg (d8 instead of d12 if at full HP); +1d12/1d8 at CL 5, 11, \\u0026 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d12 Necrotic damage (d8 instead of d12 if at full HP)\",\r\n\tdescriptionFull : \"You point at one creature you can see within range, and the sound of a dolorous bell fills the air around it for a moment. The target must succeed on a Wisdom saving throw or take 1d8 necrotic damage. If the target is missing any of its hit points, it instead takes 1d12 necrotic damage.\" + \"\\n   \" + \"The spell's damage increases by one die when you reach 5th level (2d8 or 2d12), 11th level (3d8 or 3d12), and 17th level (4d8 or 4d12).\"\r\n};\r\nSpellsList[\"wall of light\"] = {\r\n\tname : \"Wall of Light\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 170]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A hand mirror\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"60\\xD75\\xD710ft (l\\xD7w\\xD7h) 4d8+1d8/SL Radiant dmg \\u0026 blind; save half, not blind; 1 a rngd spell atk; see B\",\r\n\tdescriptionShorter : \"60|5|10ft (l|w|h) 4d8+1d8/SL Radiant dmg, blind; save half, no blind; 1 a rngd atk; see B\",\r\n\tdescriptionMetric : \"18\\xD71,5\\xD73m (l\\xD7w\\xD7h) 4d8+1d8/SL Radiant dmg \\u0026 blind; save half, not blind; 1 a rngd spell atk; see B\",\r\n\tdescriptionShorterMetric : \"18|1,5|3m (l|w|h) 4d8+1d8/SL Radiant dmg, blind; save half, no blind; 1 a rngd atk; see B\",\r\n\tdescriptionFull : \"A shimmering wall of bright light appears at a point you choose within range. The wall appears in any orientation you choose: horizontally, vertically, or diagonally. It can be free floating, or it can rest on a solid surface. The wall can be up to 60 feet long, 10 feet high, and 5 feet thick. The wall blocks line of sight, but creatures and objects can pass through it. It emits bright light out to 120 feet and dim light for an additional 120 feet.\" + \"\\n   \" + \"When the wall appears, each creature in its area must make a Constitution saving throw. On a failed save, a creature takes 4d8 radiant damage, and it is blinded for 1 minute. On a successful save, it takes half as much damage and isn't blinded. A blinded creature can make a Constitution saving throw at the end of each of its turns, ending the effect on itself on a success.\" + \"\\n   \" + \"A creature that ends its turn in the wall's area takes 4d8 radiant damage.\" + \"\\n   \" + \"Until the spell ends, you can use an action to launch a beam of radiance from the wall at one creature you can see within 60 feet of it. Make a ranged spell attack. On a hit, the target takes 4d8 radiant damage. Whether you hit or miss, reduce the length of the wall by 10 feet. If the wall's length drops to 0 feet, the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the damage increases by 1d8 for each slot level above 5th.\"\r\n};\r\nSpellsList[\"word of radiance\"] = {\r\n\tname : \"Word of Radiance\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A holy symbol\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any crea within range save or 1d6 Radiant damage; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Any crea within range save or `CD`d6 Radiant damage\",\r\n\tdescriptionFull : \"You utter a divine word, and burning radiance erupts from you. Each creature of your choice that you can see within range must succeed on a Constitution saving throw or take 1d6 radiant damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"wrath of nature\"] = {\r\n\tname : \"Wrath of Nature\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"60-ft cu dif. ter.; rock: rngd atk 3d8 Bludg. dmg; tree: Dex or 4d6 Slash. dmg; root: Str or restr.; see B\",\r\n\tdescriptionShorter : \"60-ft cu dif. ter.; rock: atk 3d8 Bludg. dmg; tree: Dex or 4d6 Slash. dmg; root: Str or restrain\",\r\n\tdescriptionFull : \"You call out to the spirits of nature to rouse them against your enemies. Choose a point you can see within range. The spirits cause trees, rocks, and grasses in a 60-foot cube centered on that point to become animated until the spell ends.\" + \"\\n   \" + toUni(\"Grasses and Undergrowth\") + \": Any area of ground in the cube that is covered by grass or undergrowth is difficult terrain for your enemies.\" + \"\\n   \" + toUni(\"Trees\") + \": At the start of each of your turns, each of your enemies within 10 feet of any tree in the cube must succeed on a Dexterity saving throw or take 4d6 slashing damage from whipping branches.\" + \"\\n   \" + toUni(\"Roots and Vines\") + \": At the end of each of your turns, one creature of your choice that is on the ground in the cube must succeed on a Strength saving throw or become restrained until the spell ends. A restrained creature can use an action to make a Strength (Athletics) check against your spell save DC, ending the effect on itself on a success.\" + \"\\n   \" + toUni(\"Rocks\") + \": As a bonus action on your turn, you can cause a loose rock in the cube to launch at a creature you can see in the cube. Make a ranged spell attack against the target. On a hit, the target takes 3d8 nonmagical bludgeoning damage, and it must succeed on a Strength saving throw or fall prone.\"\r\n};\r\nSpellsList[\"zephyr strike\"] = { \r\n\tname : \"Zephyr Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Moving doesn't provoke opportunity atks; once: adv. on wea atk, +1d8 Force dmg, +30 ft spd for turn\",\r\n\tdescriptionShorter : \"Moving doesn't provoke opport. atks; once: adv. on wea atk, +1d8 Force dmg, +30 ft spd for turn\",\r\n\tdescriptionFull : \"You move like the wind. Until the spell ends, your movement doesn't provoke opportunity attacks.\" + \"\\n   \" + \"Once before the spell ends, you can give yourself advantage on one weapon attack roll on your turn. That attack deals an extra 1d8 force damage on a hit. Whether you hit or miss, your walking speed increases by 30 feet until the end of that turn.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\n\r\n// Add weapons (attack cantrips)\r\nWeaponsList[\"create bonfire\"] = {\r\n\tregExpSearch : /^(?=.*create)(?=.*bonfire).*$/i,\r\n\tname : \"Create Bonfire\",\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"5-ft cube; Dex save at casting or when moved into, success - no damage; Conc, 1 min\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"frostbite\"] = {\r\n\tregExpSearch : /frostbite/i,\r\n\tname : \"Frostbite\",\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"cold\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also disadv. on next weapon attack roll in next turn; 1 creature\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"infestation\"] = {\r\n\tregExpSearch : /infestation/i,\r\n\tname : \"Infestation\",\r\n\tsource : [[\"X\", 158]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"poison\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - target also moved 5 ft in random direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"magic stone\"] = {\r\n\tregExpSearch : /^(?=.*magic)(?=.*stone).*$/i,\r\n\tname : \"Magic Stone\",\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [1, 6, \"bludgeoning\"],\r\n\trange : \"60/120 ft\",\r\n\tdescription : \"Produces 3 stones that each can be thrown (60 ft) or hurled with a sling (120 ft) as a spell attack\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"primal savagery\"] = {\r\n\tregExpSearch : /^(?=.*primal)(?=.*savagery).*$/i,\r\n\tname : \"Primal Savagery\",\r\n\tsource : [[\"X\", 169]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"acid\"],\r\n\trange : \"Melee (5 ft)\",\r\n\tdescription : \"\",\r\n\tabilitytodamage : false\r\n};\r\nWeaponsList[\"thunderclap\"] = {\r\n\tregExpSearch : /thunderclap/i,\r\n\tname : \"Thunderclap\",\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"thunder\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; all creatures in area; audible in 100 ft\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"toll the dead\"] = {\r\n\tregExpSearch : /^(?=.*toll)(?=.*the)(?=.*dead).*$/i,\r\n\tname : \"Toll the Dead\",\r\n\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 12, \"necrotic\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Wis save, success - no damage; If target is at full HP, d8 instead of d12 damage\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"word of radiance\"] = {\r\n\tregExpSearch : /^(?=.*word)(?=.*radiance).*$/i,\r\n\tname : \"Word of Radiance\",\r\n\tsource : [[\"X\", 171]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"radiant\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; Only chosen creatures I can see are affected\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\r\n// Companion options (Find Greater Steed spell)\r\nCompanionList.steed = {\r\n\tname : \"Find Greater Steed\",\r\n\tnameTooltip : \"the Find Greater Steed spell\",\r\n\tnameOrigin : \"4th-level conjuration spell\",\r\n\tnameMenu : \"Greater steed (Find Greater Steed spell)\",\r\n\tsource : [[\"X\", 156]],\r\n\taction : [[\"action\", \"Find Greater Steed (dismiss)\"]],\r\n\tattributesAdd : {\r\n\t\theader : \"Mount\",\r\n\t\ttype : [\"Celestial\", \"Fey\", \"Fiend\"],\r\n\t\tsubtype : \"\",\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Find Greater Steed\",\r\n\t\t\tdescription : \"If dropped to 0 HP, the steed disappears, leaving behind no physical form.\"\r\n\t\t}],\r\n\t\tlanguages : \"understands one language its master speaks (master's choice)\"\r\n\t},\r\n\tattributesChange : function(sCrea, objCrea) {\r\n\t\tif (objCrea.scores[3] < 6) objCrea.scores[3] = 6;\r\n\t},\r\n\tnotes : function() {\r\n\t\tif (!CompanionList.mount) return;\r\n\t\tvar a = newObj(CompanionList.mount.notes);\r\n\t\ta[0].description = a[0].description.replace(/It assumes a chosen form.*/i, \"It has the chosen form: griffon, pegasus, peryton, dire wolf, rhinoceros, or saber-toothed tiger\");\r\n\t\treturn a;\r\n\t}()\r\n};\r\n\r\n// Add creatures\r\nCreatureList[\"tiny servant\"] = { // Stats for the Tiny Servant spell (contains contributions by SoilentBrad)\r\n\tname : \"Tiny Servant\",\r\n\tsource : [[\"X\", 169]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 10,\r\n\thd : [4, 4],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [4, 16, 10, 2, 10, 1],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius)\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"adamantine ammunition\"] = {\r\n\tname : \"Adamantine Ammunition\",\r\n\tsource : [[\"X\", 78]],\r\n\ttype : \"weapon (any ammunition)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Whenever a ammunition made or coated with adamantine hits an object, the hit is a critical hit. The adamantine version of ten pieces of ammunition costs 500 gp more than the normal version, whether the ammunition is made of the metal or coated with it.\",\r\n\tdescriptionFull : \"Ammunition made of or coated with adamantine is unusually effective when used to break objects. Whenever a piece of adamantine ammunition hits an object, the hit is a critical hit.\\n   The adamantine version of ten pieces of ammunition costs 500 gp more than the normal version, whether the ammunition is made of the metal or coated with it.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"ammo\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\titemName1stPage : [\"suffix\", \"Adamantine\"],\r\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"adamantine weapon\"] = {\r\n\tname : \"Adamantine Weapon\",\r\n\tsource : [[\"X\", 78]],\r\n\ttype : \"weapon (any melee)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Whenever a weapon made or coated with adamantine hits an object, the hit is a critical hit. The adamantine version of a melee weapon costs 500 gp more than the normal version, whether the weapon is made of the metal or coated with it.\",\r\n\tdescriptionFull : \"Melee weapons made of or coated with adamantine are unusually effective when used to break objects. Whenever an adamantine weapon hits an object, the hit is a critical hit.\\n   The adamantine version of a melee weapon costs 500 gp more than the normal version, whether the weapon is made of the metal or coated with it.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\titemName1stPage : [\"suffix\", \"Adamantine\"],\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn inObj.list != \"melee\";\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.list == \"melee\" && /adamantine/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Always critical hits on objects';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Adamantine\" in the name of a melee weapon, it will be treated as the magic item Adamantine Weapon. Whenever it hits an object, it automatically scores a critical hit.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"armor of gleaming\"] = {\r\n\tname : \"Armor of Gleaming\",\r\n\tnameTest : \"of Gleaming\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"armor (medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This armor never gets dirty.\",\r\n\tdescriptionFull : \"This armor never gets dirty.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/medium|heavy/i).test(inObj.type);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bead of nourishment\"] = {\r\n\tname : \"Bead of Nourishment\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once I can eat this spongy, flavorless, gelatinous bead. It dissolves on my tongue and provides as much nourishment as 1 day of rations.\",\r\n\tdescriptionFull : \"This spongy, flavorless, gelatinous bead dissolves on your tongue and provides as much nourishment as 1 day of rations.\"\r\n}\r\nMagicItemsList[\"bead of refreshment\"] = {\r\n\tname : \"Bead of Refreshment\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once I can drop this spongy, flavorless, gelatinous bead in liquid. It dissolves in the liquid and transforms up to a pint of it into fresh, cold drinking water. The bead has no effect on magical liquids or harmful substances such as poison.\",\r\n\tdescriptionFull : \"This spongy, flavorless, gelatinous bead dissolves in liquid, transforming up to a pint of the liquid into fresh, cold drinking water. The bead has no effect on magical liquids or harmful substances such as poison.\"\r\n}\r\nMagicItemsList[\"boots of false tracks\"] = {\r\n\tname : \"Boots of False Tracks\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Only humanoids can wear these boots. While wearing the boots, I can choose to have them leave tracks like those of another kind of humanoid of my size.\",\r\n\tdescriptionFull : \"Only humanoids can wear these boots. While wearing the boots, you can choose to have them leave tracks like those of another kind of humanoid of your size.\"\r\n}\r\nMagicItemsList[\"candle of the deep\"] = {\r\n\tname : \"Candle of the Deep\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"The flame of this candle is not extinguished when immersed in water. It gives off light and heat like a normal candle.\",\r\n\tdescriptionFull : \"The flame of this candle is not extinguished when immersed in water. It gives off light and heat like a normal candle.\"\r\n}\r\nMagicItemsList[\"cast-off armor\"] = {\r\n\tname : \"Cast-Off Armor\",\r\n\tnameTest : \"Cast-Off\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action, I can doff this armor.\",\r\n\tdescriptionFull : \"You can doff this armor as an action.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"charlatan's die\"] = {\r\n\tname : \"Charlatan's Die\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Whenever I roll this six-sided die, I can control which number it rolls.\",\r\n\tdescriptionFull : \"Whenever you roll this six-sided die, you can control which number it rolls.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"cloak of billowing\"] = {\r\n\tname : \"Cloak of Billowing\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a bonus action while wearing this cloak, I can make it billow dramatically.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can use a bonus action to make it billow dramatically.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"cloak of many fashions\"] = {\r\n\tname : \"Cloak of Many Fashions\",\r\n\tsource : [[\"X\", 136], [\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a bonus action while wearing this cloak, I can change its style, color, and apparent qualities. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can use a bonus action to change the style, color, and apparent quality of the garment. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"clockwork amulet\"] = {\r\n\tname : \"Clockwork Amulet\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once per dawn when I make an attack roll while wearing this copper amulet, I can forgo rolling the d20 to get a 10 on the die. The amulet contains tiny interlocking gears powered by magic from Mechanus, a plane of clockwork predictability. When I hold it up to my ear, I can hear faint ticking and whirring noises.\",\r\n\tdescriptionFull : \"This copper amulet contains tiny interlocking gears and is powered by magic from Mechanus, a plane of clockwork predictability. A creature that puts an ear to the amulet can hear faint ticking and whirring noises coming from within.\\n   When you make an attack roll while wearing the amulet, you can forgo rolling the d20 to get a 10 on the die. Once used, this property can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"clothes of mending\"] = {\r\n\tname : \"Clothes of Mending\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This elegant outfit of traveler's clothes magically mends itself to counteract daily wear and tear. Pieces of the outfit that are destroyed can't be repaired in this way.\",\r\n\tdescriptionFull : \"This elegant outfit of traveler's clothes magically mends itself to counteract daily wear and tear. Pieces of the outfit that are destroyed can't be repaired in this way.\",\r\n\tweight : 4\r\n}\r\nMagicItemsList[\"dark shard amulet\"] = {\r\n\tname : \"Dark Shard Amulet\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this amulet of extraplanar material from the realm of my warlock patron as a spellcasting focus for my warlock spells. Once per long rest, I can use it to cast a warlock cantrip that I don't know. To do so, I must make a DC 10 Intelligence (Arcana) check, wasting the attempt as well as my action if I fail.\",\r\n\tdescriptionFull : \"This amulet is fashioned from a single shard of resilient extraplanar material originating from the realm of your warlock patron. While you are wearing it, you gain the following benefits:\\n \\u2022 You can use the amulet as a spellcasting focus for your warlock spells.\\n \\u2022 You can try to cast a cantrip that you don't know. The cantrip must be on the warlock spell list, and you must make a DC 10 Intelligence (Arcana) check. If the check succeeds, you cast the spell. If the check fails, so does the spell, and the action used to cast the spell is wasted. In either case, you can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warlock\",\r\n\tprereqeval : function (v) { return classes.known.warlock ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility: \"warlock\",\r\n\tspellFirstColTitle: \"\",\r\n\tspellcastingPreparedCantrips: { 'class': 'warlock' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'warlock',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('dark shard amulet') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName.indexOf('dark shard amulet') !== -1) {\r\n\t\t\t\t\tspellObj.firstCol = \"\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n}\r\nMagicItemsList[\"dread helm\"] = {\r\n\tname : \"Dread Helm\",\r\n\tsource : [[\"X\", 137], [\"WBtW\", 209]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This fearsome steel helm makes my eyes glow red while I wear it.\",\r\n\tdescriptionFull : \"This fearsome steel helm makes your eyes glow red while you wear it.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"ear horn of hearing\"] = {\r\n\tname : \"Ear Horn of Hearing\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While held up to my ear, this horn suppresses the effects of the deafened condition on me, allowing me to hear normally.\",\r\n\tdescriptionFull : \"While held up to your ear, this horn suppresses the effects of the deafened condition on you, allowing you to hear normally.\",\r\n\tsavetxt : { immune : [\"deafened\"] },\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"enduring spellbook\"] = {\r\n\tname : \"Enduring Spellbook\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This spellbook, along with anything written on its pages, can't be damaged by fire or immersion in water. In addition, the spellbook doesn't deteriorate with age.\",\r\n\tdescriptionFull : \"This spellbook, along with anything written on its pages, can't be damaged by fire or immersion in water. In addition, the spellbook doesn't deteriorate with age.\",\r\n\tweight : 5\r\n}\r\nMagicItemsList[\"ersatz eye\"] = {\r\n\tname : \"Ersatz Eye\",\r\n\tsource : [[\"X\", 137], [\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in my eye socket, it can't be removed by anyone other than me, and I can see through the tiny orb as though it were a normal eye.\",\r\n\tdescriptionFull : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in your eye socket, it can't be removed by anyone other than you, and you can see through the tiny orb as though it were a normal eye.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"hat of vermin\"] = {\r\n\tname : \"Hat of Vermin\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This hat has 3 charges, regaining all at dawn. As an action while holding it, I can expend 1 charge and speak a command word to have one bat, frog, or rat appear in the hat. The creature acts as an ordinary member of its kind and disappears after 1 hour or when it has 0 HP. It is not under my control.\",\r\n\tdescriptionFull : \"This hat has 3 charges. While holding the hat, you can use an action to expend 1 of its charges and speak a command word that summons your choice of a bat, a frog, or a rat. The summoned creature magically appears in the hat and tries to get away from you as quickly as possible. The creature is neither friendly nor hostile, and it isn't under your control. It behaves as an ordinary creature of its kind and disappears after 1 hour or when it drops to 0 hit points. The hat regains all expended charges daily at dawn.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"hat of wizardry\"] = {\r\n\tname : \"Hat of Wizardry\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this antiquated, cone-shaped hat adorned with gold crescent moons and stars as a spellcasting focus for my wizard spells. Once per long rest, I can use it to cast a wizard cantrip that I don't know. To do so, I must make a DC 10 Intelligence (Arcana) check, wasting the attempt as well as my action if I fail.\",\r\n\tdescriptionFull : \"This antiquated, cone-shaped hat is adorned with gold crescent moons and stars. While you are wearing it, you gain the following benefits:\\n \\u2022 You can use the hat as a spellcasting focus for your wizard spells.\\n \\u2022 You can try to cast a cantrip that you don't know. The cantrip must be on the wizard spell list, and you must make a DC 10 Intelligence (Arcana) check. If the check succeeds, you cast the spell. If the check fails, so does the spell, and the action used to cast the spell is wasted. In either case, you can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility: \"wizard\",\r\n\tspellFirstColTitle: \"\",\r\n\tspellcastingPreparedCantrips: { 'class': 'wizard' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'wizard',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('hat of wizardry') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName.indexOf('hat of wizardry') !== -1) {\r\n\t\t\t\t\tspellObj.firstCol = \"\";\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n}\r\nMagicItemsList[\"heward's handy spice pouch\"] = {\r\n\tname : \"Heward's Handy Spice Pouch\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This belt pouch appears empty. It has 10 charges, regaining 1d6+4 expended charges at dawn. As an action while holding it, I can speak the name of any nonmagical food seasoning (e.g. salt, pepper, or saffron), and remove a pinch of the desired seasoning from the pouch. A pinch is enough to season a single meal.\",\r\n\tdescriptionFull : \"This belt pouch appears empty and has 10 charges. While holding the pouch, you can use an action to expend 1 of its charges, speak the name of any nonmagical food seasoning (such as salt, pepper, saffron, or cilantro), and remove a pinch of the desired seasoning from the pouch. A pinch is enough to season a single meal. The pouch regains 1d6+4 expended charges daily at dawn.\",\r\n\tweight : 1,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"horn of silent alarm\"] = {\r\n\tname : \"Horn of Silent Alarm\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This horn has 4 charges, regaining 1d4 expended charges daily at dawn. As an action, I can expend 1 charge and blow it, have only one creature within 600 ft of my choice hear the horn's blare, provided it isn't deafened. No other creature hears sound coming from the horn.\",\r\n\tdescriptionFull : \"This horn has 4 charges. When you use an action to blow it, one creature of your choice can hear the horn's blare, provided the creature is within 600 feet of the horn and not deafened. No other creature hears sound coming from the horn. The horn regains 1d4 expended charges daily at dawn.\",\r\n\tweight : 2,\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"instrument of illusions\"] = { // contains contributions by AelarTheElFRogue\r\n\tname : \"Instrument of Illusions\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"common\",\r\n\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 5-ft-radius (15-ft for bards) sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\",\r\n\tdescriptionFull : \"While you are playing this musical instrument, you can create harmless, illusory visual effects within a 5-foot-radius sphere centered on the instrument. If you are a bard, the radius increases to 15 feet. Sample visual effects include luminous musical notes, a spectral dancer, butterflies, and gently falling snow. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when you stop playing.\",\r\n\tattunement : true,\r\n\tweight : 3, // same as instrument of the bards\r\n\tchoices : [\"Bard (15-ft radius)\", \"Not a Bard (5-ft radius)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.bard ? \"bard (15-ft radius)\" : \"not a bard (5-ft radius)\";\r\n\t},\r\n\t\"bard (15-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A of Illusions\",\r\n\t\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 15-ft-radius sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\"\r\n\t},\r\n\t\"not a bard (5-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A\\u200A of Illusions\",\r\n\t\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 5-ft-radius sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\"\r\n\t}\r\n}\r\nMagicItemsList[\"instrument of scribing\"] = {\r\n\tname : \"Instrument of Scribing\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 (or 7) words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\",\r\n\tdescriptionFull : \"This musical instrument has 3 charges. While you are playing it, you can use an action to expend 1 charge from the instrument and write a magical message on a nonmagical object or surface that you can see within 30 feet of you. The message can be up to six words long and is written in a language you know. If you are a bard, you can scribe an additional seven words and choose to make the message glow faintly, allowing it to be seen in nonmagical darkness. Casting Dispel Magic on the message erases it. Otherwise, the message fades away after 24 hours.\\n   The instrument regains all expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tweight : 3, // same as instrument of the bards\r\n\tchoices : [\"Bard (15-ft radius)\", \"Not a Bard (5-ft radius)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.bard ? \"bard (15-ft radius)\" : \"not a bard (5-ft radius)\";\r\n\t},\r\n\t\"bard (15-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A of Scribing\",\r\n\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 7 words in a language I know and I can have it glow faintly. Dispel Magic erases it, otherwise it fades away after 24 hours. This can be used 3 times per dawn.\"\r\n\t},\r\n\t\"not a bard (5-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A\\u200A of Scribing\",\r\n\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\"\r\n\t}\r\n}\r\nMagicItemsList[\"lock of trickery\"] = {\r\n\tname : \"Lock of Trickery\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This lock appears to be an ordinary lock and comes with a single key. The tumblers in this lock magically adjust to thwart burglars. Without the key, a creature proficient with thieves' tools can pick this lock with a successful DC 15 Dexterity check, but has disadvantage on that check.\",\r\n\tdescriptionFull : \"This lock appears to be an ordinary lock and comes with a single key. The tumblers in this lock magically adjust to thwart burglars. Dexterity checks made to pick the lock have disadvantage. Thus, without the key, a creature proficient with thieves' tools can pick this lock with a successful DC 15 Dexterity check, but has disadvantage on that check.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"moon-touched sword\"] = {\r\n\tname : \"Moon-Touched Sword\",\r\n\tnameTest : \"Moon-Touched\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"common\",\r\n\tdescription : \"In darkness, the unsheathed blade of this sword sheds moonlight, creating bright light in a 15-ft radius and dim light for an additional 15 ft.\",\r\n\tdescriptionFull : \"In darkness, the unsheathed blade of this sword sheds moonlight, creating bright light in a 15-foot radius and dim light for an additional 15 feet.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /moon.touched/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Moon-Touched\" in the name of a sword, it will be treated as the magic weapon Moon-Touched Sword.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"mystery key\"] = {\r\n\tname : \"Mystery Key\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"A question mark is worked into the head of this key. The key has a 5% chance of unlocking any lock into which it's inserted. Once it unlocks something, the key disappears.\",\r\n\tdescriptionFull : \"A question mark is worked into the head of this key. The key has a 5% chance of unlocking any lock into which it's inserted. Once it unlocks something, the key disappears.\"\r\n}\r\nMagicItemsList[\"orb of direction\"] = {\r\n\tname : \"Orb of Direction\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this orb, I can determine which way is north. This property functions only on the Material Plane.\",\r\n\tdescriptionFull : \"While holding this orb, you can use an action to determine which way is north. This property functions only on the Material Plane.\",\r\n\tweight : 3,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"orb of time\"] = {\r\n\tname : \"Orb of Time\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this orb, I can determine whether it is morning, afternoon, evening, or nighttime outside. This property functions only on the Material Plane.\",\r\n\tdescriptionFull : \"While holding this orb, you can use an action to determine whether it is morning, afternoon, evening, or nighttime outside. This property functions only on the Material Plane.\",\r\n\tweight : 3,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"perfume of bewitching\"] = {\r\n\tname : \"Perfume of Bewitching\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can apply the perfume in this tiny vial to myself and its effect lasts 1 hour. For the duration, I have advantage on all Charisma checks directed at humanoids of challenge rating 1 or lower. Those subjected to the perfume's effect are not aware that they've been influenced by magic.\",\r\n\tdescriptionFull : \"This tiny vial contains magic perfume, enough for one use. You can use an action to apply the perfume to yourself, and its effect lasts 1 hour. For the duration, you have advantage on all Charisma checks directed at humanoids of challenge rating 1 or lower. Those subjected to the perfume's effect are not aware that they've been influenced by magic.\"\r\n}\r\nMagicItemsList[\"pipe of smoke monsters\"] = {\r\n\tname : \"Pipe of Smoke Monsters\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while smoking this pipe, I can exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-ft cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\",\r\n\tdescriptionFull : \"While smoking this pipe, you can use an action to exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-foot cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\"\r\n}\r\nMagicItemsList[\"pole of angling\"] = {\r\n\tname : \"Pole of Angling\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While holding this 10 ft pole, I can speak a command word and transform it into a fishing pole with a hook, a line, and a reel. Speaking the command word again changes the fishing pole back into a normal 10 ft pole.\",\r\n\tdescriptionFull : \"While holding this 10-foot pole, you can speak a command word and transform it into a fishing pole with a hook, a line, and a reel. Speaking the command word again changes the fishing pole back into a normal 10-foot pole.\",\r\n\tweight : 7\r\n}\r\nMagicItemsList[\"pole of collapsing\"] = {\r\n\tname : \"Pole of Collapsing\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this 10 ft pole, I can speak a command word to have it collapse into a 1-ft-long rod. The pole's weight doesn't change. As an action while holding the rod, I can speak a different command word to have it elongate back to a pole, but only as long as the surrounding space allows.\",\r\n\tdescriptionFull : \"While holding this 10-foot pole, you can use an action to speak a command word and cause it to collapse into a 1-foot-long rod, for ease of storage. The pole's weight doesn't change. You can use an action to speak a different command word and cause the rod to revert to a pole; however, the rod will elongate only as far as the surrounding space allows.\",\r\n\tweight : 7,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"pot of awakening\"] = {\r\n\tname : \"Pot of Awakening\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I plant an ordinary shrub in this 10 lb clay pot and let it grow for 30 days, the shrub magically transforms into an awakened shrub at the end of that time. When the shrub awakens, its roots break the pot, destroying it. The awakened shrub is friendly toward me. Absent commands from me, it does nothing.\",\r\n\tdescriptionFull : \"If you plant an ordinary shrub in this 10-pound clay pot and let it grow for 30 days, the shrub magically transforms into an awakened shrub at the end of that time. When the shrub awakens, its roots break the pot, destroying it.\\n   The awakened shrub is friendly toward you. Absent commands from you, it does nothing.\",\r\n\tweight : 10\r\n}\r\nMagicItemsList[\"rope of mending\"] = {\r\n\tname : \"Rope of Mending\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can cut this 50-foot coil of hempen rope into any number of smaller pieces, and then use an action to speak a command word and cause the pieces to knit back together. The pieces must be in contact with each other and not otherwise in use. A rope of mending is forever shortened if a section of it is lost.\",\r\n\tdescriptionFull : \"You can cut this 50-foot coil of hempen rope into any number of smaller pieces, and then use an action to speak a command word and cause the pieces to knit back together. The pieces must be in contact with each other and not otherwise in use. A rope of mending is forever shortened if a section of it is lost or destroyed.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweight : 10\r\n}\r\nMagicItemsList[\"ruby of the war mage\"] = {\r\n\tname : \"Ruby of the War Mage\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"By pressing this 1-inch-diameter ruby etched with eldritch runes to a simple or martial weapon for 10 minutes, it attaches itself to the weapon. I can then use that weapon as a spellcasting focus. Once attached, it can't be removed unless my attunement ends, I detach it as an action, or the weapon is destroyed.\",\r\n\tdescriptionFull : \"Etched with eldritch runes, this 1-inch-diameter ruby allows you to use a simple or martial weapon as a spellcasting focus for your spells. For this property to work, you must attach the ruby to the weapon by pressing the ruby against it for at least 10 minutes. Thereafter, the ruby can't be removed unless you detach it as an action or the weapon is destroyed. Not even an Antimagic Field causes it to fall off. The ruby does fall off the weapon if your attunement to the ruby ends.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; }\r\n}\r\nMagicItemsList[\"shield of expression\"] = {\r\n\tname : \"Shield of Expression\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"shield\",\r\n\trarity : \"common\",\r\n\tdescription : \"The front of this shield is shaped in the likeness of a face. As a bonus action while bearing the shield, I can have the shield alter the expression of the face.\",\r\n\tdescriptionFull : \"The front of this shield is shaped in the likeness of a face. While bearing the shield, you can use a bonus action to alter the face's expression.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Shield of Expression\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"smoldering armor\"] = {\r\n\tname : \"Smoldering Armor\",\r\n\tnameTest : \"Smoldering\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"Wisps of harmless, odorless smoke rise from this armor while it is worn.\",\r\n\tdescriptionFull : \"Wisps of harmless, odorless smoke rise from this armor while it is worn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t}\r\n}\r\nMagicItemsList[\"staff of adornment\"] = {\r\n\tname : \"Staff of Adornment\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I place an object up to 1 lb above the tip of the staff while holding it, the object floats 1 inch from its tip and remains there until it is removed or until I no longer possess the staff. It can have up to three objects floating over its tip at any given time and I can make one or more objects slowly spin or turn in place.\",\r\n\tdescriptionFull : \"If you place an object weighing no more than 1 pound (such as a shard of crystal, an egg, or a stone) above the tip of the staff while holding it, the object floats an inch from the staff's tip and remains there until it is removed or until the staff is no longer in your possession. The staff can have up to three such objects floating over its tip at any given time. While holding the staff, you can make one or more of the objects slowly spin or turn in place.\",\r\n\tweight : 4\r\n}\r\nMagicItemsList[\"staff of birdcalls\"] = {\r\n\tname : \"Staff of Birdcalls\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"This staff has 10 charges, regaining 1d6+4 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can use 1 charge to create a sound out to a range of 60 ft: a finch's chirp, raven's caw, duck's quack, chicken's cluck, goose's honk, loon's call, turkey's gobble, seagull's cry, owl's hoot, or eagle's shriek.\",\r\n\tdescriptionFull : \"This wooden staff is decorated with bird carvings. It has 10 charges. While holding it, you can use an action to expend 1 charge from the staff and cause it to create one of the following sounds out to a range of 60 feet: a finch's chirp, a raven's caw, a duck's quack, a chicken's cluck, a goose's honk, a loon's call, a turkey's gobble, a seagull's cry, an owl's hoot, or an eagle's shriek.\\n   The staff regains 1d6+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff explodes in a harmless cloud of bird feathers and is lost forever.\",\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"staff of flowers\"] = {\r\n\tname : \"Staff of Flowers\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"This staff has 10 charges, regaining 1d6+4 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can use 1 charge to cause a flower of my choice to sprout from a patch of earth or soil within 5 ft or from the staff itself. The flower is nonmagical and grows or withers as a normal flower would.\",\r\n\tdescriptionFull : \"This wooden staff has 10 charges. While holding it, you can use an action to expend 1 charge from the staff and cause a flower to sprout from a patch of earth or soil within 5 feet of you, or from the staff itself. Unless you choose a specific kind of flower, the staff creates a mildscented daisy. The flower is harmless and nonmagical, and it grows or withers as a normal flower would. The staff regains 1d6+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff turns into flower petals and is lost forever.\",\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"talking doll\"] = {\r\n\tname : \"Talking Doll\",\r\n\tsource : [[\"X\", 139], [\"WBtW\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"During a short rest with this doll within 5 ft of me, I can tell it to say up to 6 phrases of up to 6 words each, and set an observable condition under which the doll speaks each phrase. Conditions must happen within 5 ft of the doll. The doll can remember only 6 phrases that are lost when my attunement to it ends.\",\r\n\tdescriptionFull : \"While this stuffed doll is within 5 feet of you, you can spend a short rest telling it to say up to six phrases, none of which can be more than six words long, and set an observable condition under which the doll speaks each phrase. You can also replace old phrases with new ones. Whatever the condition, it must occur within 5 feet of the doll to make it speak. For example, whenever someone picks up the doll, it might say, \\\"I want a piece of candy.\\\" The doll's phrases are lost when your attunement to the doll ends.\"\r\n}\r\nMagicItemsList[\"tankard of sobriety\"] = {\r\n\tname : \"Tankard of Sobriety\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This tankard has a stern face sculpted into one side. I can drink ale, wine, or any other nonmagical alcoholic beverage poured into it without becoming inebriated. The tankard has no effect on magical liquids or harmful substances such as poison.\",\r\n\tdescriptionFull : \"This tankard has a stern face sculpted into one side. You can drink ale, wine, or any other nonmagical alcoholic beverage poured into it without becoming inebriated. The tankard has no effect on magical liquids or harmful substances such as poison.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"unbreakable arrow\"] = {\r\n\tname : \"Unbreakable Arrow\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"weapon (arrow)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This arrow can't be broken, except when it is within an Antimagic Field.\",\r\n\tdescriptionFull : \"This arrow can't be broken, except when it is within an Antimagic Field.\",\r\n\tweight : 0.05\r\n}\r\nMagicItemsList[\"veteran's cane\"] = {\r\n\tname : \"Veteran's Cane\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as a bonus action, I can grasp this walking cane and speak its command word to have it transform into an ordinary longsword. Once transformed, the longsword is nonmagical and can't revert back to a walking cane.\",\r\n\tdescriptionFull : \"When you grasp this walking cane and use a bonus action to speak the command word, it transforms into an ordinary longsword and ceases to be magical.\",\r\n\tweight : 4,\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"walloping ammunition\"] = {\r\n\tname : \"Walloping Ammunition\",\r\n\tnameTest : \"Walloping\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"weapon (any ammunition)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This magic ammunition packs a wallop. A creature hit by the ammunition must succeed on a DC 10 Strength saving throw or be knocked prone.\",\r\n\tdescriptionFull : \"This ammunition packs a wallop. A creature hit by the ammunition must succeed on a DC 10 Strength saving throw or be knocked prone.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"ammo\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"wand of conducting\"] = {\r\n\tname : \"Wand of Conducting\",\r\n\tsource : [[\"X\", 140]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regaining all at dawn. As an action, I can wave it around and expend 1 charge to create orchestral music that can be heard out to a range of 60 ft and ends when I stop waving the wand. If I use its last charge, roll a d20. On a 1, a sad tuba sound plays as the wand crumbles to dust.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and create orchestral music by waving it around. The music can be heard out to a range of 60 feet and ends when you stop waving the wand.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, a sad tuba sound plays as the wand crumbles to dust and is destroyed.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"wand of pyrotechnics\"] = {\r\n\tname : \"Wand of Pyrotechnics\",\r\n\tsource : [[\"X\", 140]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 7 charges, regaining 1d6+1 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can expend 1 charge to create a harmless burst of sound light at a point I can see up to 60 ft away, with the noise travelling 300 ft. The light is as bright as a torch flame but lasts only a second.\",\r\n\tdescriptionFull : \"This wand has 7 charges. While holding it, you can use an action to expend 1 of its charges and create a harmless burst of multicolored light at a point you can see up to 60 feet away. The burst of light is accompanied by a crackling noise that can be heard up to 300 feet away. The light is as bright as a torch flame but lasts only a second.\\n   The wand regains 1d6+1 expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand erupts in a harmless pyrotechnic display and is destroyed.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 7,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+1\"\r\n}\r\nMagicItemsList[\"wand of scowls\"] = {\r\n\tname : \"Wand of Scowls\",\r\n\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to scowl for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to scowl for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"wand of smiles\"] = {\r\n\tname : \"Wand of Smiles\",\r\n\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to smile for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to smile for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\n\n// pub_20180529_MToF.js\n// This file adds all the player-material from Mordenkainen's Tome of Foes to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.MToF={\n\tname : \"Mordenkainen's Tome of Foes\",\n\tabbreviation : \"MToF\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://dnd.wizards.com/products/mordenkainens-tome-foes\",\n\tdate : \"2018/05/29\"\n};\n\n// Tiefling subraces\nRaceList[\"baalzebul tiefling\"] = {\n\tregExpSearch : /^(?=.*baalzebul)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Baalzebul tiefling\",\n\tsortname : \"Tiefling, Baalzebul\",\n\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\n\tplural : \"Baalzebul tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Baalzebul Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Maladomini:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Ray of Sickness once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Crown of Madness once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Maladomini (1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"ray of sickness\" : {\n\t\t\tname : \"Legacy of Maladomini (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Maladomini (3)\",\n\t\t\t\tspells : [\"ray of sickness\"],\n\t\t\t\tselection : [\"ray of sickness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"ray of sickness\" : {\n\t\t\t\t\tdescription : \"Spell attack for 3d8 Poison dmg; save or also poisoned until end of my next turn\",\n\t\t\t\t\tchanges : \"Using Legacy of Maladomini, I cast Ray of Sickness as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"crown of madness\" : {\n\t\t\tname : \"Legacy of Maladomini (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Maladomini (5)\",\n\t\t\t\tspells : [\"crown of madness\"],\n\t\t\t\tselection : [\"crown of madness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"dispater tiefling\"] = {\n\tregExpSearch : /^(?=.*dispater)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Dispater tiefling\",\n\tsortname : \"Tiefling, Dispater\",\n\tsource : [[\"MToF\", 21]],\n\tplural : \"Dispater tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 0, 2],\n\ttrait : \"Dispater Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Dis:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Disguise Self once per long rest.\\n   At 5th level, I can also cast Detect Thoughts once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Dis (level 1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"disguise self\" : {\n\t\t\tname : \"Legacy of Dis (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Dis (level 3)\",\n\t\t\t\tspells : [\"disguise self\"],\n\t\t\t\tselection : [\"disguise self\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t},\n\t\t\"detect thoughts\" : {\n\t\t\tname : \"Legacy of Dis (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Dis (level 5)\",\n\t\t\t\tspells : [\"detect thoughts\"],\n\t\t\t\tselection : [\"detect thoughts\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"fierna tiefling\"] = {\n\tregExpSearch : /^(?=.*fierna)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Fierna tiefling\",\n\tsortname : \"Tiefling, Fierna\",\n\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\n\tplural : \"Fierna tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 0, 1, 2],\n\ttrait : \"Fierna Tiefling (+1 Wisdom, +2 Charisma)\\n\\nLegacy of Phlegethos:\\n   I know the Friends cantrip.\\n   At 3rd level, I can cast Charm Person once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Suggestion once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Phlegethos (1)\",\n\t\tspells : [\"friends\"],\n\t\tselection : [\"friends\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"charm person\" : {\n\t\t\tname : \"Legacy of Phlegethos (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Phlegethos (3)\",\n\t\t\t\tspells : [\"charm person\"],\n\t\t\t\tselection : [\"charm person\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"charm person\" : {\n\t\t\t\t\tdescription : \"2 humanoids, max 30 ft apart, save or charmed; adv. on save if me/ally is fighting it\",\n\t\t\t\t\tchanges : \"Using Legacy of Phlegethos, I cast Charm Person as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"suggestion\" : {\n\t\t\tname : \"Legacy of Phlegethos (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Phlegethos (5)\",\n\t\t\t\tspells : [\"suggestion\"],\n\t\t\t\tselection : [\"suggestion\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"glasya tiefling\"] = {\n\tregExpSearch : /^(?=.*glasya)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Glasya tiefling\",\n\tsortname : \"Tiefling, Glasya\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Glasya tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 0, 2],\n\ttrait : \"Glasya Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Malbolge:\\n   I know the Minor Illusion cantrip.\\n   At 3rd level, I can cast Disguise Self once per long rest.\\n   At 5th level, I can also cast Invisibility once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Malbolge (1)\",\n\t\tspells : [\"minor illusion\"],\n\t\tselection : [\"minor illusion\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"disguise self\" : {\n\t\t\tname : \"Legacy of Malbolge (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Malbolge (3)\",\n\t\t\t\tspells : [\"disguise self\"],\n\t\t\t\tselection : [\"disguise self\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t},\n\t\t\"invisibility\" : {\n\t\t\tname : \"Legacy of Malbolge (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Malbolge (5)\",\n\t\t\t\tspells : [\"invisibility\"],\n\t\t\t\tselection : [\"invisibility\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"levistus tiefling\"] = {\n\tregExpSearch : /^(?=.*levistus)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Levistus tiefling\",\n\tsortname : \"Tiefling, Levistus\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Levistus tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 1, 0, 0, 2],\n\ttrait : \"Levistus Tiefling (+1 Constitution, +2 Charisma)\\n\\nLegacy of Stygia:\\n   I know the Ray of Frost cantrip.\\n   At 3rd level, I can cast Armor of Agathys once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Darkness once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Stygia (1)\",\n\t\tspells : [\"ray of frost\"],\n\t\tselection : [\"ray of frost\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"armor of agathys\" : {\n\t\t\tname : \"Legacy of Stygia (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Stygia (3)\",\n\t\t\t\tspells : [\"armor of agathys\"],\n\t\t\t\tselection : [\"armor of agathys\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"armor of agathys\" : {\n\t\t\t\t\tdescription : \"10 temp HP; as long as temp HP last any crea that hits in melee takes 10 Cold dmg\",\n\t\t\t\t\tchanges : \"Using Legacy of Stygia, I cast Armor of Agathys as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"darkness\" : {\n\t\t\tname : \"Legacy of Stygia (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Stygia (5)\",\n\t\t\t\tspells : [\"darkness\"],\n\t\t\t\tselection : [\"darkness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"mammon tiefling\"] = {\n\tregExpSearch : /^(?=.*mammon)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Mammon tiefling\",\n\tsortname : \"Tiefling, Mammon\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Mammon tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Mammon Tiefling (+1 Intelligence, +2 Charisma)\\nLegacy of Minauros:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast Tenser's Floating Disk once per short rest.\\n   At 5th level, I can also cast Arcane Lock without a material component once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Minauros (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"tenser's floating disk\" : {\n\t\t\tname : \"Legacy of Minauros (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Minauros (3)\",\n\t\t\t\tspells : [\"tenser's floating disk\"],\n\t\t\t\tselection : [\"tenser's floating disk\"],\n\t\t\t\tfirstCol : 'oncesr'\n\t\t\t}]\n\t\t},\n\t\t\"arcane lock\" : {\n\t\t\tname : \"Legacy of Minauros (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Minauros (5)\",\n\t\t\t\tspells : [\"arcane lock\"],\n\t\t\t\tselection : [\"arcane lock\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"arcane lock\" : {\n\t\t\t\t\tcomponents : \"V,S\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nRaceList[\"mephistopheles tiefling\"] = {\n\tregExpSearch : /^(?=.*mephistopheles)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Mephistopheles tiefling\",\n\tsortname : \"Tiefling, Mephistopheles\",\n\tsource : [[\"MToF\", 23]],\n\tplural : \"Mephistopheles tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Mephistopheles Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Cania:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast Burning Hands once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Flame Blade once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Cania (level 1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"burning hands\" : {\n\t\t\tname : \"Legacy of Cania (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Cania (level 3)\",\n\t\t\t\tspells : [\"burning hands\"],\n\t\t\t\tselection : [\"burning hands\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"burning hands\" : {\n\t\t\t\t\tdescription : \"All in area 4d6 Fire dmg; save halves; unattended flammable objects ignite\",\n\t\t\t\t\tchanges : \"Using Legacy of Cania, I cast Burning Hands as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"flame blade\" : {\n\t\t\tname : \"Legacy of Cania (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Cania (level 5)\",\n\t\t\t\tspells : [\"flame blade\"],\n\t\t\t\tselection : [\"flame blade\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"zariel tiefling\"] = {\n\tregExpSearch : /^(?=.*zariel)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Zariel tiefling\",\n\tsortname : \"Tiefling, Zariel\",\n\tsource : [[\"MToF\", 23], [\"UA:FO\", 2]],\n\tplural : \"Zariel tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [1, 0, 0, 0, 0, 2],\n\ttrait : \"Zariel Tiefling (+1 Strength, +2 Charisma)\\n\\nLegacy of Avernus:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Searing Smite once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Branding Smite once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Avernus (1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"searing smite\" : {\n\t\t\tname : \"Legacy of Avernus (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Avernus (3)\",\n\t\t\t\tspells : [\"searing smite\"],\n\t\t\t\tselection : [\"searing smite\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"searing smite\" : {\n\t\t\t\t\tdescription : \"Next melee weapon hit +2d6 Fire dmg and target ignites; save to end spell or 1d6 Fire dmg\",\n\t\t\t\t\tchanges : \"Using Legacy of Avernus, I cast Searing Smite as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"branding smite\" : {\n\t\t\tname : \"Legacy of Avernus (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Avernus (5)\",\n\t\t\t\tspells : [\"branding smite\"],\n\t\t\t\tselection : [\"branding smite\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\n\n// Elf subraces\nRaceList[\"eladrin-mtof\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\n\tname : \"Eladrin\",\n\tsortname : \"Elf, Fey (Eladrin)\",\n\tsource : [[\"MToF\", 61]],\n\tplural : \"Eladrin\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 0, 0, 0, 1],\n\tabilitySave : 6,\n\ttrait : \"Eladrin (+2 Dexterity, +1 Charisma)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\",\n\t\t\"Fey Step: Once per short rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. Once I reach 3rd level, this gains an additional effect, based on the current season I'm aligned with. See the third page notes section for the effects.\",\n\t\t\"Shifting Seasons: After I finish a long rest, I can align myself with a season of my choice.\"\n\t]),\n\tfeatures : {\n\t\t\"fey step\" : {\n\t\t\tname : \"Fey Step\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Eladrin Season Features\",\n\t\tsource : [[\"MToF\", 62]],\n\t\tpopupName : \"Eladrin Shifting Season Features\",\n\t\tadditional : \"save DC 8 + Cha mod + Prof Bonus\",\n\t\tpage3notes : true,\n\t\tnote : \"\\n  \\u2022 Autumn (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" After using Fey Step, up to 2 creatures I can see within 10 ft of me must make a Wis save\",\n\t\t\t\" If failed, a target is charmed by me for 1 minute, or until I or my allies damage it\"\n\t\t]) + \"\\n  \\u2022 Winter (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" When I use Fey Step, one target in 5 ft of where I teleported from must make a Wis save\",\n\t\t\t\" If failed, it is frightened of me until the end of my next turn\"\n\t\t]) + \"\\n  \\u2022 Spring (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" When I use Fey Step, I can instead teleport one willing creature I touch within 5 ft of me\",\n\t\t\t\" It teleports to an unoccupied space of my choice that I can see within 30 ft of me\"\n\t\t]) + \"\\n  \\u2022 Summer (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" After using Fey Step, each creature of my choice within 5 ft of me takes fire damage\",\n\t\t\t\" This fire damage is equal to my Charisma modifier (minimum 1)\"\n\t\t])\n\t}]\n};\nRaceList[\"sea elf\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\n\tname : \"Sea elf\",\n\tsortname : \"Elf, Sea\",\n\tsource : [[\"MToF\", 62], [\"W\", 163], [\"UA:ES\", 1]],\n\tplural : \"Sea elves\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 30, enc : 20 }\n\t},\n\tweaponProfs : [false, false, [\"spear\", \"trident\", \"light crossbow\", \"net\"]],\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Aquan\", \"Friend of the Sea\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to almost 1,8 metres tall (140 + 5d8 cm)\",\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Sea Elf (+2 Dexterity, +1 Constitution)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\",\n\t\t\"Child of the Sea. I have 30 ft swimming speed and can breathe air and water.\",\n\t\t\"Friend of the Sea: Through sounds and gestures, I can communicate simple ideas with any beast that has an inborn swimming speed.\"\n\t])\n};\nRaceList[\"shadar-kai elf\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\n\tname : \"Shadar-kai\",\n\tsortname : \"Elf, Shadow (Shadar-kai)\",\n\tsource : [[\"MToF\", 62]],\n\tplural : \"Shadar-kai\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tdmgres : [\"Necrotic\"],\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to over 6 feet tall (4'8\\\" + 2d8\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Shadar-kai (+2 Dexterity, +1 Constitution)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\",\n\t\t\"Blessing of the Raven Queen: Once per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\",\n\t\t\"Once I reach 3rd level, after I use the Blessing of the Raven Queen, I appear translucent and have resistance to all damage until the start of my next turn.\"\n\t]),\n\tfeatures : {\n\t\t\"blessing of the raven queen\" : {\n\t\t\tname : \"Blessing of the Raven Queen\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t}\n};\n\n// Gith and its two subraces\nRaceList[\"githyanki-mtof\"] = {\n\tregExpSearch : /githyanki/i,\n\tname : \"Githyanki\",\n\tsource : [[\"MToF\", 96]],\n\tplural : \"Githyanki\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Gith\", 1],\n\tarmorProfs : [true, true, false, false],\n\tweaponProfs : [false, false, [\"shortsword\", \"longsword\", \"greatsword\"]],\n\tskillstxt : \"Choose any one skill or tool\",\n\tage : \" reach adulthood in their late teens and live for about a century\",\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (5'0\\\" + 2d12\\\")\",\n\tweight : \" weigh around 135 lb (100 + 2d12 \\xD7 2d4 lb)\",\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\n\tweightMetric : \" weigh around 61 kg (45 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [2, 0, 0, 1, 0, 0],\n\ttrait : \"Githyanki (+2 Strength, +1 Intelligence)\\n\" + (typePF ? \"\\n\" : \"\") + \"Githyanki Psionics:\" + desc([\n\t\t\"I know the Mage Hand cantrip, but the hand is invisible.\",\n\t\t\"At 3rd level, I can cast Jump once per long rest.\",\n\t\t\"At 5th level, I can also cast Misty Step once per long rest.\",\n\t\t\"Intelligence is my spellcasting ability for these spells.\",\n\t\t\"I don't require components to cast these spells.\"\n\t]),\n\tspellcastingAbility : 4,\n\tspellcastingBonus : [{\n\t\tname : \"Githyanki Psionics (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"mage hand\" : {\n\t\t\tcomponents : \"\",\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\n\t\t\tchanges : \"Using Githyanki Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\n\t\t}\n\t},\n\tfeatures : {\n\t\t\"jump\" : {\n\t\t\tname : \"Githyanki Psionics (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githyanki Psionics (3)\",\n\t\t\t\tspells : [\"jump\"],\n\t\t\t\tselection : [\"jump\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"jump\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Jump once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"misty step\" : {\n\t\t\tname : \"Githyanki Psionics (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githyanki Psionics (5)\",\n\t\t\t\tspells : [\"misty step\"],\n\t\t\t\tselection : [\"misty step\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"misty step\" : {\n\t\t\t\t\tcomponents : SpellsList[\"misty step\"].components + \"*\",\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Misty Step once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"githyanki-mtof\", \"tool proficiency\", {\n\tregExpSearch : /tool proficiency/i,\n\tskillstxt : \"\",\n\ttoolProfs : [[\"Any tool\", 1]]\n});\nAddRacialVariant(\"githyanki-mtof\", \"skill proficiency\", {\n\tregExpSearch : /skill proficiency/i,\n\tskillstxt : \"Choose any one skill\"\n});\nRaceList[\"githzerai-mtof\"] = {\n\tregExpSearch : /githzerai/i,\n\tname : \"Githzerai\",\n\tsource : [[\"MToF\", 96]],\n\tplural : \"Githzerai\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Gith\"],\n\tage : \" reach adulthood in their late teens and live for about a century\",\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (4'11\\\" + 2d12\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 2, 0],\n\ttrait : \"Githzerai (+1 Intelligence, +2 Wisdom)\\n\" + (typePF ? \"\\n\" : \"\") + \"Githzerai Psionics:\" + desc([\n\t\t\"I know the Mage Hand cantrip, but the hand is invisible.\",\n\t\t\"At 3rd level, I can cast Shield once per long rest.\",\n\t\t\"At 5th level, I can also cast Detect Thoughts once per long rest.\",\n\t\t\"Wisdom is my spellcasting ability for these spells.\",\n\t\t\"I don't require components to cast these spells.\"\n\t]),\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\n\tspellcastingAbility : 5,\n\tspellcastingBonus : [{\n\t\tname : \"Githzerai Psionics (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"mage hand\" : {\n\t\t\tcomponents : \"\",\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\n\t\t\tchanges : \"Using Githzerai Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\n\t\t}\n\t},\n\tfeatures : {\n\t\t\"shield\" : {\n\t\t\tname : \"Githzerai Psionics (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githzerai Psionics (3)\",\n\t\t\t\tspells : [\"shield\"],\n\t\t\t\tselection : [\"shield\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"shield\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Shield once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"detect thoughts\" : {\n\t\t\tname : \"Githzerai Psionics (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githzerai Psionics (5)\",\n\t\t\t\tspells : [\"detect thoughts\"],\n\t\t\t\tselection : [\"detect thoughts\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"detect thoughts\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Detect Thoughts once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Magic Items\nMagicItemsList[\"greater silver sword\"] = {\n\tname : \"Greater Silver Sword\",\n\tsource : [[\"MToF\", 89]],\n\ttype : \"weapon (greatsword)\",\n\trarity : \"legendary\",\n\tdescription : \"This magic greatsword gives +1 to hit and damage. While holding it, I have adv. on Int, Wis, and Cha saves, immunity to being charmed, and resistance to psychic damage. If I score a critical hit with it on a creature's astral body, I can cut the cord tethering it to its material body, instead of dealing damage.\",\n\tdescriptionFull : \"This magic weapon grants a +3 bonus to attack and damage rolls made with it. While you hold the sword, you have advantage on Intelligence, Wisdom, and Charisma saving throws, you are immune to being charmed, and you have resistance to psychic damage. In addition, if you score a critical hit with it against a creature's astral body, you can cut the silvery cord that tethers the target to its material body, instead of dealing damage.\",\n\tattunement : true,\n\tweight : 6,\n\tprerequisite : \"Requires attunement by a creature that has psionic ability\",\n\tprereqeval : function (v) {\n\t\tif (!v.isSpellcaster) return false;\n\t\tif ((/psion|mystic/i).test(What(\"Racial Traits\"))) return true;\n\t\tfor (var aCast in CurrentSpells) {\n\t\t\tvar spCast = CurrentSpells[aCast];\n\t\t\tif ((/psion|mystic/i).test(spCast.name) || (spCast.list && spCast.list.psionic)) return true;\n\t\t\tif (!spCast.bonus) continue;\n\t\t\tfor (var aBon in spCast.bonus) {\n\t\t\t\tif ((/psion|mystic/i).test(aBon) || (/psion|mystic/i).test(spCast.bonus[aBon].name)) return true;\n\t\t\t}\n\t\t}\n\t},\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greatsword\",\n\t\tregExpSearch : /^(?=.*greater)(?=.*silver)(?=.*sword).*$/i,\n\t\tname : \"Greater Silver Sword\",\n\t\tsource : [[\"MToF\", 89]],\n\t\tdescription : \"Heavy, two-handed; On crit vs. astral body, cut cord instead of damage\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}],\n\tsavetxt : { text : [\"Adv. on Int, Wis, and Cha saves\"], immune : [\"charmed\"] },\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]],\n\tdmgres : [\"Psychic\"]\n}\nMagicItemsList[\"infernal tack\"] = {\n\tname : \"Infernal Tack\",\n\tsource : [[\"MToF\", 167], [\"DiA\", 224]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tnotLegalAL : true,\n\tdescription : \"While wearing the spurs of this set, the nightmare equipped with the bridle, bit, reins, saddle, and stirrups is under my command. As an action, I can have it appear in 20 ft at the start of my next turn. It acts on as my ally on my initiative, remains for 1 day, until I or it dies, or I dismiss it as an action. If it dies, it reforms in 24 h.\",\n\tdescriptionLong : \"This tack consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with the tack serves whoever wears the spurs until the wearer dies or the tack is removed. As an action, I can clash the spurs together or scrape them through blood, causing the nightmare to appear within 20 ft at the start of my next turn. It acts as my ally on my initiative count, remains for 1 day, until I or it dies, or until I dismiss it as an action. If it dies, it reforms within 24 hours, after which I can summon it again. The tack doesn't create a nightmare from thin air; one must first be subdued so the tack can be placed on it.\",\n\tdescriptionFull : \"A narzugon binds a nightmare to its service with infernal tack, which consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with infernal tack must serve whoever wears the spurs until the wearer dies or the tack is removed.\\n   You can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of your next turn, within 20 feet of you. It acts as your ally and takes its turn on your initiative count. It remains for 1 day, until you or it dies, or until you dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which you can summon it again.\\n   The tack doesn't conjure a nightmare from thin air; one must first be subdued so the tack can be placed on it. No nightmare accepts this forced servitude willingly, but some eventually form strong loyalties to their masters and become true partners in evil.\",\n\tattunement : true,\n\tweight : 26, // riding saddle (25) + bit and bridle (1)\n\tprerequisite : \"Requires attunement by a creature of evil alignment\",\n\tprereqeval : function(v) { return (/evil/i).test(What(\"Alignment\")); },\n\taction : [[\"action\", \"\"]],\n\tcreaturesAdd : [[\"Nightmare\", true,\n\tfunction (AddRemove, prefix) {\n\t\tif (!AddRemove) return;\n\t\t// Show equipment section\n\t\tMakeCompMenu_CompOptions(prefix, [\"companion\", \"visible\", \"comp.eqp\"], true);\n\t\t// Add equipment when added\n\t\tvar equip = [\"bit and bridle\", \"riding\"];\n\t\tfor (var i = 0; i < equip.length; i++) {\n\t\t\tvar gear = GearList[equip[i]];\n\t\t\tif (!gear) continue;\n\t\t\tAddToInv(prefix + \"comp\", \"l\", gear.name, gear.amount, gear.weight, \"\", false, false, false, false);\n\t\t}\n\t\t// Add notes\n\t\tvar note = \"I can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of my next turn, within 20 ft of me.\\nThe nightmare acts as my ally and takes its turn on my initiative count. It remains for 1 day, until I or it dies, or until I dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which I can summon it again.\";\n\t\tValue(prefix + \"Comp.eqp.Notes\", What(\"Unit System\") === \"metric\" ? ConvertToMetric(note, 0.5) : note);\n\t}]]\n}\n\n// pub_20180918_WDH.js\r\n// This file adds the magic items from the Waterdeep: Dragon Heist adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"WDH\"] = {\r\n\tname : \"Waterdeep: Dragon Heist [items]\",\r\n\tabbreviation : \"WDH\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/waterdeep-dragon-heist\",\r\n\tdate : \"2018/09/18\"\r\n};\r\n\r\n// Mundane Items\r\nWeaponsList[\"oversized longbow\"] = {\r\n\tregExpSearch : /^(?=.*oversized?)(?=.*(\\bbows?\\b|longbow)).*$/i,\r\n\tname : \"Oversized Longbow\",\r\n\tnameAlt : [\"Bow, Oversized\"],\r\n\tsource : [[\"WDH\", 201]],\r\n\tlist : \"ranged\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 6, \"piercing\"],\r\n\trange : \"150/600 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, heavy, two-handed; Damage uses Str; Requires Medium size and Str 18\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [\"\", \"Str\"],\r\n\tammo : \"oversized arrow\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"oversized arrow\"] = {\r\n\tname : \"Oversized Arrows\",\r\n\tsource : [[\"WDH\", 201]],\r\n\ticon : \"Arrows\",\r\n\tweight : 0.10,\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Magic Items\r\nvar WDH_azuredgeFullDescription = [\r\n\t\"Forged by the archwizard Ahghairon, this intelligent battleaxe was crafted to defend Waterdeep. Its current wielder is a former member of Force Grey named Meloon Wardragon, but the weapon is searching for a new owner.\",\r\n\t\"Azuredge has a solid steel handle etched with tiny runes, wrapped in blue dragon hide with a star sapphire set into the pommel. The axe head is forged from silver, electrum, and steel alloys whose edges constantly shimmer with a deep blue luminescence.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. The Shield spell provides no defense against the axe, which passes through that spell's barrier of magical force.\",\r\n\t\"When you hit a fiend or an undead with the axe, cold blue flames erupt from its blade and deal an extra 2d6 radiant damage to the target.\",\r\n\t\">>Hurling<<. The battleaxe has 3 charges. You can expend 1 charge and make a ranged attack with the axe, hurling it as if it had the thrown property with a normal range of 60 feet and a long range of 180 feet. Whether it hits or misses, the axe flies back to you at the end of the current turn, landing in your open hand or at your feet in your space (as you choose). The axe regains all expended charges daily at dawn.\",\r\n\t\">>Illumination<<. While holding the axe, you can use an action to cause the axe to glow blue or to quench the glow. This glow sheds bright light in a 30-foot radius and dim light for an additional 30 feet.\",\r\n\t\">>Sentience<<. Azuredge is a sentient lawful neutral weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Common. It has a calm, delicate voice. The weapon can sense the presence of non-lawful creatures within 120 feet of it.\",\r\n\t\">>Personality<<. Azuredge is sworn to protect Waterdeep, and it desires to be wielded by a law-abiding person willing to dedicate everything to the city's defense. The weapon is patient and takes its time finding its ideal wielder.\",\r\n\t\"If someone tries to use Azuredge against its will, the axe can become ten times heavier than normal, and can magically adhere to any Medium or larger object or surface it comes into contact with. Once it does so, the axe can't be wielded. Nothing short of a Wish spell can separate the axe from the item or surface to which it is adhered without destroying one or the other, though the axe can choose to end the effect at any time.\"\r\n];\r\nMagicItemsList[\"azuredge\"] = {\r\n\tname : \"Azuredge\",\r\n\tsource : [[\"WDH\", 189]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This battleaxe is sentient, adds +3 to hit and damage, and deals +2d6 radiant damage vs. fiends/undead. As an action, I can stop or start its glow of bright light in a 30-ft radius and dim light for another 30 ft. It has 3 charges, regaining all at dawn, which can be used to throw it, after which it returns to my hand. See Notes.\",\r\n\tdescriptionFull : WDH_azuredgeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tweight : 4,\r\n\taction : [[\"action\", \" (glow/end)\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"throw\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /azuredge/i,\r\n\t\tname : \"Azuredge\",\r\n\t\tsource : [[\"WDH\", 189]],\r\n\t\trange : \"Melee, 60/180 ft\",\r\n\t\tdescription : \"Versatile (1d10), thrown (1 charge); Returning; Ignores Shield spell; +2d6 radiant damage vs. fiends/undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"crusader's mantle\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : \"\\n   \" + WDH_azuredgeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"badge of the watch\"] = { // contains contributions by Pengsloth\r\n\tname : \"Badge of the Watch\",\r\n\tsource : [[\"WDH\", 189]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While wearing this badge and not using a shield, I gain +2 AC. If it is more than 5 ft away from me for over 1 minute, it vanishes and reappears within 5 ft of the Open Lord. While holding the badge, the Open Lord knows my location if we are both on the same plane and can, as an action end my attunement to it.\",\r\n\tprerequisite : \"Requires attunement by someone designated by the Open Lord of Waterdeep\",\r\n\tprereqeval : function () { return false; },\r\n\tdescriptionFull : \"A badge of the Watch is given only to those who have earned the trust of the Open Lord of Waterdeep. The badge, signifying the rank of captain in Waterdeep's City Watch, bears the emblem of Waterdeep and is meant to be worn or carried.\\n   While wearing the badge, you gain a +2 bonus to AC if you aren't using a shield.\\n   If the badge is more than 5 feet away from you for more than 1 minute, it vanishes and harmlessly reappears on a surface within 5 feet of the Open Lord. While holding the badge, the Open Lord knows your location, provided the two of you are on the same plane of existence and your attunement to the badge hasn't ended.\\n   As an action, the Open Lord can touch the badge and end your attunement to it.\",\r\n\tattunement : true,\r\n\textraAC : [{\r\n\t\tmod : 2,\r\n\t\tname : \"Badge of the Watch\",\r\n\t\tmagic : true,\r\n\t\ttext : \"While wearing the badge, I gain a +2 bonus to AC if I'm not using a shield.\",\r\n\t\tstopeval : function (v) {\r\n\t\t\treturn v.usingShield;\r\n\t\t}\r\n\t}]\r\n}\r\nvar WDH_blackstaffFullDescription = \"The Blackstaff is a sentient, rune-carved staff set with thin silver veins. It is the symbol of office for the Blackstaff, the highest-ranking wizard in Waterdeep. As the rightful owner of the Blackstaff, Vajra Safahr is the only one who can become attuned to it. The staff can, however, choose a new owner (see \\\"Personality\\\" below).\\n   This staff can be wielded as a magic quarterstaff that grants a +2 bonus to attack and damage rolls made with it. While holding it, you gain a +2 bonus to Armor Class, saving throws, and spell attack rolls.\\n   The staff has 20 charges for the following properties. The staff regains 2d8+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff retains its +2 bonus to attack and damage roll but loses all other properties. On a 20, the staff regain 1d8+2 charges.\\n   >>Power Strike<<. When you hit with a melee attack using the staff, you can expend 1 charge to deal an extra 1d6 force damage to the target.\\n   >>Spells<<. While holding this staff, you can use an action to expend 1 or more of its charges to cast one of the following spells from it, using your spell save DC and spell attack bonus: Cone of Cold (5 charges), Fireball (5th-level version, 5 charges), Globe of Invulnerability (6 charges), Hold Monster (5 charges), Levitate (2 charges). Lightning Bolt (5th-level version, 5 charges), Magic Missile (1 charge), Ray of Enfeeblement (1 charge), or Wall of Force (5 charges).\\n   >>Retributive Strike<<. You can use an action to break the staff over your knee or against a solid surface, performing a retributive strike. The staff is destroyed and releases its remaining magic in an explosion that expands to fill a 30-foot-radius sphere centered on it.\\n   You have a 50% chance to instantly travel to a random plane of existence, avoiding the explosion. If you fail to avoid the effect, you take force damage equal to 16 \\xD7 the number of charges in the staff. Every other creature in the area must make a DC 17 Dexterity saving throw. On a failed save, a creature takes an amount of damage based on how far away it is from the point of origin, as shown in the following table. On a successful save, a creature takes half as much damage.\\n\\n>>Distance from Origin\\tEffect<<\\n10 ft. away or closer\\t8 \\xD7 the number of charges in the staff\\n11 to 20 ft. away\\t6 \\xD7 the number of charges in the staff\\n21 to 30 ft. away\\t4 \\xD7 the number of charges in the staff\\n\\n\\n   >>Animate Walking Statues<<. You can expend 1 or more of the staff's charges as an action to animate or deactivate one or more of the walking statues of Waterdeep. You must be in the city to use this property, and you can animate or deactivate one statue for each charge expended. An animated statue obeys the telepathic commands of Khelben Arunsun's spirit, which is trapped inside the staff (see \\\"Personality\\\" below). A walking statue becomes inanimate if deactivated or if the staff is broken.\\n   >>Dispel Magic<<. You can expend 1 of the staff's charges as a bonus action to cast Dispel Magic on a creature, an object, or a magical effect that you touch with the tip of the staff. If the target is an unwilling creature or an object in the possession of such a creature, you must hit the creature with a melee attack using the Blackstaff before you can expend the charge to cast the spell.\\n   >>Drain Magic<<. This property affects only creatures that use spell slots. When you hit such a creature with a melee attack using the Blackstaff, you can expend 1 of the staff's charges as a bonus action, causing the target to expend one spell slot of the highest spell level it can cast without casting a spell. If the target has already expended all its spell slots, nothing happens. Spell slots that are expended in this fashion are regained when the target finishes a long rest, as normal.\\n   >>Master of Enchantment<<. When you cast an enchantment spell of 1st level or higher while holding the staff, you can make an Intelligence (Arcana) check with a DC of 10 + the level of the spell. If the check succeeds, you cast the spell without expending a spell slot.\\n   >>Sentience<<. The Blackstaff is a sentient staff of neutral alignment, with an Intelligence of 22, a Wisdom of 15, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet, and it can communicate telepathically with any creature that is holding it.\\n   >>Personality<<. The staff has the spirits of all previous Blackstaffs trapped within it. Its creator, Khelben Arunsun, is the dominant personality among them. Like Khelben, the staff is extremely devious and manipulative. It prefers to counsel its owner without exerting outright control. The staff's primary goal is to protect Waterdeep and its Open Lord, currently Laeral Silverhand. Its secondary goal is to help its wielder become more powerful.\\n   In the event that the holder of the office of the Blackstaff no longer serves the staff's wishes, the staff ceases to function until it finds a worthy inheritor\\u2014someone whose loyalty to Waterdeep is beyond reproach.\\n   >>Spirit Trap<<. When the Blackstaff dies, the spirit of that individual becomes trapped in the staff along with the spirits of the previous Blackstaffs. (A Blackstaff whose spirit is trapped in the staff can't be raised from the dead.)\\n   Destroying the staff would release the spirits trapped inside it, but in that event, Khelben's spirit can lodge itself inside any one piece of the staff that remains. The piece containing Khelben's spirit has the staff's Sentience property but none of its other properties. As long as this piece of the staff exists, Khelben's spirit can make the staff whole again whenever he wishes. When the staff is remade, the spirits of the previous Blackstaffs become trapped inside it again.\";\r\nif (MagicItemsList[\"staff of power\"]) {\r\n\tMagicItemsList[\"blackstaff\"] = {\r\n\t\tname : \"Blackstaff\",\r\n\t\tsource : [[\"WDH\", 190]],\r\n\t\ttype : \"staff\",\r\n\t\trarity : \"legendary\",\r\n\t\tstoryItemAL : true,\r\n\t\tdescription : \"This +2 quarterstaff gives me a +2 bonus on saves, AC, and spell attacks. It has 20 charges, regaining 2d8+4 at dawn, which can be used to cast spells, deal +1d6 force damage in melee, drain magic from a target hit in melee, or animate walking statues. It is sentient and has more features, see Notes page.\",\r\n\t\tdescriptionFull : WDH_blackstaffFullDescription.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\tattunement : true,\r\n\t\tweight : 4,\r\n\t\tprerequisite : \"Requires attunement by the Blackstaff heir, who must be a wizard\",\r\n\t\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\t\tusages : 20,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"regains 2d8+4\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"quarterstaff\",\r\n\t\t\tregExpSearch : /blackstaff/i,\r\n\t\t\tname : \"Blackstaff\",\r\n\t\t\tsource : [[\"WDH\", 190]],\r\n\t\t\tdescription : \"Versatile (1d8); On hit, use 1 charge for: +1d6 force damage or, as a bonus action, Drain Magic or Dispel Magic\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Blackstaff, I have a +2 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\taddMod : [{ type : \"save\", field : \"all\", mod : 2, text : \"While holding the Blackstaff, I gain a +2 bonus to all my saving throws.\" }],\r\n\t\textraAC : [{name : \"Blackstaff\", mod : 2, magic : true, text : \"I gain a +2 bonus to AC while attuned.\"}],\r\n\t\taction : [\r\n\t\t\t[\"action\",\" (Animate Walking Statues)\"],\r\n\t\t\t[\"action\", \" (Retributive Strike)\"],\r\n\t\t\t[\"bonus action\", \" (Drain Magic)\"]\r\n\t\t],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : MagicItemsList[\"staff of power\"].spellcastingBonus.concat([{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"dispel magic\"],\r\n\t\t\tselection : [\"dispel magic\"],\r\n\t\t\tfirstCol : 1\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"fireball\" : MagicItemsList[\"staff of power\"].spellChanges.fireball,\r\n\t\t\t\"lightning bolt\" : MagicItemsList[\"staff of power\"].spellChanges[\"lightning bolt\"],\r\n\t\t\t\"dispel magic\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\trange : \"Melee atk\",\r\n\t\t\t\tdescription : \"Dispel all magic on crea or object hit with melee atk; DC 10+SL spellcasting ability check if level >3\",\r\n\t\t\t\tchanges : \"Can cast as a bonus action, but only on something touched by the staff. It might first require an attack by the staff to be able to cast it on\"\r\n\t\t\t}\r\n\t\t},\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   \" + WDH_blackstaffFullDescription.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you /ig, \"I \")\r\n\t\t}, {\r\n\t\t\tname : \"Sentient Item Features\",\r\n\t\t\tnote : sentientItemConflictTxt\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"bracer of flying daggers\"] = {\r\n\tname : \"Bracer of Flying Daggers\",\r\n\tsource : [[\"WDH\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This armband appears to have thin daggers strapped to it. As an action, I can pull up to two magic daggers from the bracer and immediately hurl them, making a ranged attack with each dagger. A dagger vanishes if I don't hurl it right away, and the daggers disappear right after they hit or miss.\",\r\n\tdescriptionFull : \"This armband appears to have thin daggers strapped to it. As an action, you can pull up to two magic daggers from the bracer and immediately hurl them, making a ranged attack with each dagger. A dagger vanishes if you don't hurl it right away, and the daggers disappear right after they hit or miss. The bracer never runs out of daggers.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*bracer)(?=.*flying)(?=.*dagger).*$/i,\r\n\t\tname : \"Bracer of Flying Daggers\",\r\n\t\tsource : [[\"WDH\", 190]],\r\n\t\trange : \"20/60 ft\",\r\n\t\tdescription : \"Finesse, light, thrown; As action, throw 2; Doesn't work with Attack action\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"dragonstaff of ahghairon\"] = { // contains contributions by Pengsloth\r\n\tname : \"Dragonstaff of Ahghairon\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"staff\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This staff has 10 charges, regaining 1d10 at dawn, which can be used to cast Command. Dragons have disadv. on their save against it. The staff gives me adv. on saves against the spells and breath weapons of dragons. I can touch a dragon with the staff, allowing it to ignore the effects of Ahghairon's Dragonward.\",\r\n\tdescriptionFull : \"While holding the dragonstaff of Ahghairon, you have advantage on saving throws against the spells and breath weapons of dragons, as well as the breath weapons of other creatures of the dragon type (such as dragon turtles).\\n   A creature of the dragon type that you touch with the staff can move through the city of Waterdeep, ignoring Ahghairon's dragonward (see \\\"Ahghairon's Dragonward,\\\" in the Introduction of Waterdeep: Dragon Heist). This effect lasts until the creature is touched again by the staff or until a time you proclaim when you confer the benefit.\\n   The staff has 10 charges. While holding it, you can expend 1 charge as an action to cast the Command spell. If you target a dragon with this casting, the dragon has disadvantage on its saving throw. The staff regains 1d10 charges daily at dawn.\",\r\n\tattunement : true,\r\n\tsavetxt : { adv_vs : [\"dragon breath weapons\", \"dragon spells\"] },\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d10\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"command\"],\r\n\t\tselection : [\"command\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"command\" : {\r\n\t\t\tdescription : \"1 crea, save or follow one word command, e.g. approach, drop, flee, halt; dragons disadv. on save\",\r\n\t\t\tchanges : \"When this spell is cast on a dragon they have disadvantage on the saving throw.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"feather of diatryma summoning\"] = {\r\n\tname : \"Feather of Diatryma Summoning\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"As an action once per 7 days, I can speak the command word and throw this feather to an empty large space in 5 ft, where it becomes a diatryma (axe beak stats) for 6 hours, until I speak the command again, or it reaches 0 HP. It is friendly, understands my languages, obeys my commands, and can be used as a mount.\",\r\n\tdescriptionFull : \"This bright plume is made from the feather of a diatryma (pronounced dee-ah-TRY-mah), a Large, colorful, flightless bird native to the Underdark. If you use an action to speak the command word and throw the feather into a Large unoccupied space on the ground within 5 feet of you, the feather becomes a living diatryma for up to 6 hours, after which it reverts to its feather form. It reverts to feather form early if it drops to 0 hit points or if you use an action to speak the command word again while touching the bird.\\n   When the diatryma reverts to feather form, the magic of the feather can't be used again until 7 days have passed.\\n   The diatryma uses the statistics of an axe beak, except that its beak deals piercing damage instead of slashing damage. The creature is friendly to you and your companions, and it can be used as a mount. It understands your languages and obeys your spoken commands. If you issue no commands, the diatryma defends itself but takes no other actions.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"7 days\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"knave's eye patch\"] = { // contains contributions by Pengsloth\r\n\tname : \"Knave's Eye Patch\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"While wearing this eye patch I have advantage on Perception checks that rely on sight, I am unaffected by Sunlight Sensitivity if I have it, and I am immune to magic that would read my thoughts or determine whether I'm lying. Creatures can communicate telepathically with me only if I allow it.\",\r\n\tdescriptionFull : \"While wearing this eye patch, you gain these benefits:\\n \\u2022 You have advantage on Wisdom (Perception) checks that rely on sight.\\n \\u2022 If you have the Sunlight Sensitivity trait, you are unaffected by the trait.\\n \\u2022 You are immune to magic that allows other creatures to read your thoughts or determine whether you are lying. Creatures can communicate telepathically with you only if you allow it.\",\r\n\tattunement : true,\r\n\tvision : [[\"Adv. on Perception checks relying on sight\", 0]]\r\n}\r\nMagicItemsList[\"lord's ensemble\"] = {\r\n\tname : \"Lord's Ensemble\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature with a humanoid build\",\r\n\tdescription : \"While wearing this helm, amulet, and ring, my identity can't be determined. I move through difficult terrain as normal terrain. Magic can't be used to reduce my speed, paralyze me, restrain me, read my thoughts, or learn my alignment, creature type, or if I'm lying. I'm hidden from scrying and Divination magic.\",\r\n\tdescriptionLong : \"This set of a helm, amulet, and ring can be worn and attuned to as a single magic item, but only while within Waterdeep. The helm magically alters my voice to sound genderless, and makes me immune to magic that reads my thoughts, determines if I'm lying, or reveals my alignment or creature type. Creatures can't speak telepathically with me unless I allow it. The amulet causes me to be hidden from Divination magic and magical scrying sensors. The robe makes me look nondescript, makes difficult terrain not cost me extra movement, and stops magic from reducing my speed or me to be paralyze or restrained.\",\r\n\tdescriptionFull : \"The Masked Lords of Waterdeep don this ensemble when meeting with one another. This raiment renders each lord indistinguishable from the others. The ensemble consists of three pieces\\u2014a helm, an amulet, and a robe\\u2014that function as a single magic item when worn together, but only within the city of Waterdeep and its sewers. You become attuned to the ensemble as a single item.\\n   \" + toUni(\"Lord's Helm\") + \". This bucket helm covers your head and conceals your face. Screens over the eyes help to shroud your identity without blinding you. While you wear the helm, your voice is magically altered to sound genderless, and you are immune to magic that allows other creatures to read your thoughts, to determine whether you are lying, to know your alignment, or to know your creature type. Creatures can communicate telepathically with you only if you allow it.\\n   \" + toUni(\"Lord's Amulet\") + \". This amulet bears the crest of Waterdeep. It functions as an amulet of proof against detection and location.\\n   \" + toUni(\"Lord's Robe\") + \". This elegant robe functions as a ring of free action, and it creates the illusion that you have a nondescript, androgynous humanoid build and stand 6 feet tall.\",\r\n\tattunement : true,\r\n\tsavetxt : { immune : [\"paralyzed\", \"restrained\"] }\r\n}\r\nMagicItemsList[\"paper bird\"] = {\r\n\tname : \"Paper Bird\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"I can write up to 50 words on a sheet of the 1d6+3 in this box and speak a creature's name, causing the parchment to fold into a Tiny bird and fly to that creature on the same plane if it isn't stopped. It has 60 ft fly speed, 1 HP, AC 13, Dex 16, 1 in all other ability scores, and immunity to poison and psychic damage.\",\r\n\tdescriptionFull : \"After you write a message of fifty words or fewer on this magic sheet of parchment and speak a creature's name, the parchment magically folds into a Tiny paper bird and flies to the recipient whose name you uttered. The recipient must be on the same plane of existence as you, otherwise the bird turns into ash as it takes flight.\\n   The bird is an object that has 1 hit point, an Armor Class of 13, a flying speed of 60 feet, a Dexterity of 16 (+3), and a score of 1 (\\u22125) in all other abilities, and it is immune to poison and psychic damage.\\n   It travels to within 5 feet of its intended recipient by the most direct route, whereupon it turns into a nonmagical and inanimate sheet of parchment that can be unfolded only by the intended recipient. If the bird's hit points or speed is reduced to 0 or if it is otherwise immobilized, it turns into ash.\\n   Paper birds usually come in small, flat boxes containing 1d6 + 3 sheets of the parchment.\",\r\n\tusages : \"1d6+3\",\r\n\trecovery : \"Never\"\r\n}\r\nMagicItemsList[\"ring of truth telling\"] = {\r\n\tname : \"Ring of Truth Telling\",\r\n\tsource : [[\"WDH\", 192]],\r\n\ttype : \"ring\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this ring, I have advantage on Wisdom (Insight) checks to determine whether someone is lying to me.\",\r\n\tdescriptionFull : \"While wearing this ring, you have advantage on Wisdom (Insight) checks to determine whether someone is lying to you.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"smokepowder\"] = {\r\n\tname : \"Smokepowder\",\r\n\tsource : [[\"WDH\", 192]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"The Forgotten Realms version of gunpowder.\",\r\n\tdescriptionFull : \"Smokepowder is a magical explosive chiefly used to propel a bullet out of the barrel of a firearm. It is stored in airtight wooden kegs or tiny, waterproof leather packets. A packet contains enough smokepowder for five shots, and a keg holds enough smokepowder for five hundred shots.\"+\r\n\t\t\"\\n   If smokepowder is set on fire, dropped, or otherwise handled roughly, it explodes and deals fire damage to each creature or object within 20 feet of it: 1d6 for a packet, 9d6 for a keg. A successful DC 12 Dexterity saving throw halves the damage.\"+\r\n\t\t\"\\n   Casting Dispel Magic on smokepowder renders it permanently inert.\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Keg (500 shots)\", \"Packet (5 shots)\"],\r\n\t\"packet (5 shots)\" : {\r\n\t\tname : \"Smokepowder Packet\",\r\n\t\tdescription : \"This magical explosive is used to propel a bullet out of a firearm. These tiny, waterproof leather packets contain enough for five shots. Casting dispel magic on it renders it permanently inert. If it is set on fire, dropped, or handled roughly, it explodes and deals 1d6 fire damage to all within 20 ft, DC 12 Dex save halves.\",\r\n\t\tusages : 5,\r\n\t\trecovery : \"Never\",\r\n\t\tadditional : \"shots\",\r\n\t\tweight : 0.1, // 7000 grains per lb, 100 grains per shot\r\n\t\textraTooltip : \"AL: can be purchased for 1 treasure checkpoint. Once found, this item goes on a character's evergreen list of available items.\"\r\n\t},\r\n\t\"keg (500 shots)\" : {\r\n\t\tname : \"Smokepowder Keg\",\r\n\t\tdescription : \"This magical explosive is used to propel a bullet out of a firearm. This airtight wooden kegs contain enough for five hundred shots. Casting dispel magic on it renders it permanently inert. If it is set on fire, dropped, or handled roughly, it explodes and deals 9d6 fire damage to all within 20 ft, DC 12 Dex save halves.\",\r\n\t\tusages : 500,\r\n\t\trecovery : \"Never\",\r\n\t\tadditional : \"shots\",\r\n\t\tweight : 12 // 7000 grains per lb, 100 grains per shot (+2 for the keg itself)\r\n\t}\r\n}\r\n\r\n// Beast\r\n// Falcon is just a hawk under a different name, it has been added to the SRD code as a `nameAlt`\r\n\n// pub_20181107_LLoK.js\r\n// This file adds the magic items from the Lost Laboratory of Kwalish adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"LLoK\"] = {\r\n\tname : \"Lost Laboratory of Kwalish [items, spells]\",\r\n\tabbreviation : \"LLoK\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/258047/Lost-Laboratory-of-Kwalish-5e\",\r\n\tdate : \"2018/11/07\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"blade of the medusa\"] = {\r\n\tname : \"Blade of the Medusa\",\r\n\tnameTest : \"of the Medusa\",\r\n\tsource : [[\"LLoK\", 53]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I'm unwilling to part with this magic blade. When I attack a creature with it and roll a 20 to hit, it must make a DC 15 Con save or be restrained, and on a roll of 1, I must make that save. At the end of each of the target's turns, it can save again, ending the effect with 3 successes, or petrified for 1 hour after 3 failures.\",\r\n\tdescriptionLong : \"I'm unwilling to part with this magic sword. When I attack a creature with it and roll a 20 to hit, it must make a DC 15 Constitution save or be restrained. However, if I roll of 1 on the attack roll, I must make that same save. At the end of each of the effected target's turns, it can make the save again. If it successfully saves against this effect three times, the effect ends. However, if it failed three times, it is turned to stone and petrified for 1 hour. A creature is immune to this effect if it is immune to damage of the weapon's type, does not have a body made of flesh, or has legendary actions.\",\r\n\tdescriptionFull : \"When you attack a creature with this magic weapon and roll a 20 on the attack roll, the creature must make a DC 15 Constitution saving throw in addition to suffering the attack's normal effects. On a failed save, the creature is restrained and must make another Constitution saving throw at the end of each of its turns. If it successfully saves against this effect three times, the effect ends. If it fails its saves three times, it is turned to stone and subjected to the petrified condition for 1 hour.\\n   A creature is immune to this effect if it is immune to damage of the weapon's type, does not have a body made of flesh, or has legendary actions.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the weapon. Whenever you attack a creature with this weapon and roll a 1 on the attack roll, you must succeed on a DC 15 Constitution saving throw or be restrained and forced to make additional saves against being petrified, as above.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of the medusa/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: DC 15 Con save or restrained, see item; On 1 to hit: I same save';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of the Medusa\" in a the name of a sword, it will be treated as the magic weapon Blade of the Medusa.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"galder's bubble pipe\"] = {\r\n\tname : \"Galder's Bubble Pipe\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This finely carved pipe has 3 charges, regaining all at dawn, which I can use to cast spells. As an action, I can expend all 3 charges to summon a steam mephit. It acts on its own initiative, is friendly to me, obeys my verbal commands, and disappears after 1 minute or if it ends its turn more than 60 ft from the pipe.\",\r\n\tdescriptionFull : \"This finely carved pipe blows odorless bubbles instead of smoke when used. The pipe has 3 charges, and it regains all spent charges daily at dawn. While you hold the pipe, you can expend charges to gain access to the following properties:\\n \\u2022 You can cast Fog Cloud as an action (1 charge).\\n \\u2022 You can cast Misty Step as a bonus action (2 charges).\\n \\u2022 You can summon a steam mephit as an action (3 charges). The mephit is friendly to you, obeys your verbal commands, and acts on its own turn in the initiative order. It disappears in a harmless puff of steam after 1 minute or if it ends its turn more than 60 feet from the pipe.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"fog cloud\"],\r\n\t\tselection : [\"fog cloud\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"gambler's blade\"] = {\r\n\tname : \"Gambler's Blade\",\r\n\tnameTest : \"Gambler's\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I am unwilling to part with this sword until I'm freed of its curse. Each day at dawn, I can choose its magical bonus to attack and damage rolls of +1, +2, or +3. However, I take a corresponding penalty (-1, -2, or -3) to my death saving throws.\",\r\n\tdescriptionFull : \"Choose a magical bonus of +1 to +3. This sword gains that bonus to its attack and damage rolls. For each point of bonus you choose for the sword, you take a corresponding penalty (-1 to -3) to your death saving throws. You can change this magical bonus each day at dawn.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the weapon.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/gambler's/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Choose its magic bonus (1-3), but equal penalty on death saves';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If I include the word \\\"Gambler's\\\" in a the name of a sword, it will be treated as the magic weapon Gambler's Blade.\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"heward's hireling armor\"] = {\r\n\tname : \"Heward's Hireling Armor\",\r\n\tnameAlt : \"Hireling Armor\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This leather armor gives me a +1 bonus to AC and allows me to draw or stow two one-handed weapons when I would normally be able to draw or stow only one. It has 6 pockets that hold 20 lb (2 cu ft) each as they are extradimensional spaces. Retrieving an item from a pocket requires an action.\",\r\n\tdescriptionFull : \"A number of Kwalish's experiments were attempts to research the works of the legendary mage Heward, who first crafted what he named hireling armor. While wearing this armor, you gain a +1 bonus to AC. In addition, the armor's animated straps can assist with the drawing and sheathing of weapons, such that you can draw or stow two one-handed weapons when you would normally be able to draw or stow only one.\\n   This armor also has six pockets, each of which is an extradimensional space. Each pocket can hold up to 20 pounds of material, not exceeding a volume of 2 cubic feet. The armor always weighs 10 pounds, regardless of its pockets' contents. Placing an object into one of the armor's pockets follows the normal rules for interacting with objects. Retrieving an item from a pocket of the armor requires you to use an action. When you reach into a pocket for a specific item, the item is always magically on top.\\n   Placing the armor inside an extradimensional space created by a bag of holding, a Heward's handy haversack, or a similar item instantly destroys both items and opens a gate to the Astral Plane. The gate originates where the one item was placed inside the other. Any creature within 10 feet of the gate is sucked through it and deposited in a random location on the Astral Plane. The gate then closes. The gate is one-way only and can't be reopened.\",\r\n\tweight : 10,\r\n\taction : [[\"action\", \" (retrieve item)\"]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*heward)(?=.*hireling)(?=.*armor).*$/i,\r\n\t\tname : \"Heward's Hireling Armor\",\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nif (MagicItemsList[\"ioun stone\"]) {\r\n\tMagicItemsList[\"ioun stone\"].incrementSkill = function (aSkill, iType, forceRemove) {\r\n\t\tif (SkillsList.abbreviations.indexOf(aSkill) == -1) return;\r\n\t\tvar aIndx = SkillsList.abbreviations.indexOf(aSkill);\r\n\t\tvar aFld = (Who(\"Text.SkillsNames\") === \"alphabeta\" ? aSkill : SkillsList.abbreviationsByAS[aIndx]) + \" Bonus\";\r\n\t\tvar iSkill = SkillsList.names[aIndx];\r\n\t\tvar iName = \"Ioun Stone of \" + iType;\r\n\t\tvar iTxt = \"While the \" + iName + \" orbits my head and I'm proficient with the \" + iSkill + \" skill, I gain a +1 bonus on checks with it.\";\r\n\t\tvar addIt = forceRemove ? false : CurrentProfs.skill[aSkill] && CurrentProfs.skill[aSkill].length > 1;\r\n\t\tvar hasBonus = How(aFld).indexOf(iTxt) !== -1;\r\n\t\tif (hasBonus !== addIt) {\r\n\t\t\tprocessMods( addIt, iName + \" (magic item)\", [{ type : \"skill\", field : aSkill, mod : 1, text : iTxt }] );\r\n\t\t}\r\n\t}\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Supreme Intellect\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this faceted sphere orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I gain a +1 bonus on Intelligence checks.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain a +1 bonus to Intelligence checks while this faceted sphere orbits your head.\",\r\n\t\taddMod : [\r\n\t\t\t{ type : \"skill\", field : \"Arcana\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"History\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Investigation\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Nature\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Religion\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" }\r\n\t\t]\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Historical Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this polished, steely sphere orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the History skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the History skill, or a +1 bonus to checks with that skill if already proficient, while this polished, steely sphere orbits your head.\",\r\n\t\tskills : [\"History\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"His\", \"Historical Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"His\", \"Historical Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Natural Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this burnished, brassy stone orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the Nature skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the Nature skill, or a +1 bonus to checks with that skill if already proficient, while this burnished, brassy stone orbits your head.\",\r\n\t\tskills : [\"Nature\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Nat\", \"Natural Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Nat\", \"Natural Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Religious Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this tiny golden gem orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the Religion skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the Religion skill, or a +1 bonus to checks with that skill if already proficient, while this tiny golden gem orbits your head.\",\r\n\t\tskills : [\"Religion\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Rel\", \"Religious Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Rel\", \"Religious Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Language Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this pulsating bit of red jeweled crystal orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I am fluent in one additional language chosen by the DM.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You are fluent in one additional language while this pulsating bit of red jeweled crystal orbits your head. The DM chooses the language bestowed by the stone.\",\r\n\t\tlanguageProfs : [1]\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Self-Preservation\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As an action, I can make this silvery gem orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I gain a +1 bonus to Intelligence saving throws.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain a +1 bonus to Intelligence saving throws while this silvery gem orbits your head.\",\r\n\t\taddMod : [{ type : \"save\", field : \"Int\", mod : 1, text : \"While the Ioun stone of Self-Preservation orbits my head, I gain a +1 bonus to Intelligence saving throws.\" }]\r\n\t}, false, true); // force sorting on the last one\r\n}\r\nvar LLoK_leatherGolemArmorFullDescription = [\r\n\t\"Strange rituals have repurposed the body of a flesh golem into this partially sentient suit of leather armor. While wearing this armor, you gain the following benefits:\",\r\n\t\"\\u2022 You gain a +1 bonus to AC and to saving throws against spells and other magical effects.\",\r\n\t\"\\u2022 >>Immutable Form<<. You are immune to any spell or effect that would alter your form.\",\r\n\t\"\\u2022 >>Lightning Absorption<<. You gain resistance to lightning damage. Whenever you take lightning damage, you gain 5 temporary hit points.\",\r\n\t\">>Curse<<. This armor is cursed, and it extends to whomever becomes attuned to it. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the armor. In addition, while you wear the cursed armor, you gain the following properties:\",\r\n\t\"\\u2022 >>Aversion of Fire<<. If you take fire damage, you have disadvantage on attack rolls and ability checks until the end of your next turn.\",\r\n\t\"\\u2022 >>Berserk<<. Whenever you suffer a critical hit, roll a d6. On a 6, you go beserk because of the armor. On each of your turns while berserk, you attack the nearest creature you can see. If no creature is near enough to move to and attack, you attack an object, with preference for an object smaller than yourself. Once you go beserk because of the armor, it cannot be removed. You continue to attack until you are incapacitated or until another creature is able to change your state of mind with appropriate magic (such as a calm emotions spell) or a successful DC 15 Charisma (Persuasion) check.\"\r\n];\r\nMagicItemsList[\"leather golem armor\"] = {\r\n\tname : \"Leather Golem Armor\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I am unwilling to part with this leather armor until its curse is lifted from me, see Notes page. The curse makes me go berserk and have an aversion to fire. It gives me a +1 bonus to AC and saves vs. spells and magical effects. I have resistance to lightning damage and when I suffer such damage, I gain 5 temporary HP.\",\r\n\tdescriptionFull : LLoK_leatherGolemArmorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tweight : 10,\r\n\tdmgres : [\"Lightning\"],\r\n\tcursed : true,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*leather)(?=.*golem)(?=.*armor).*$/i,\r\n\t\tname : \"Leather Golem Armor\",\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { text : [\"+1 vs. spells and magical effects\"] },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_leatherGolemArmorFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/you /ig, \"I \")\r\n\t}]\r\n}\r\nvar LLoK_polymorphBladeFullDescription = [\r\n\t\"When you attack a creature with this magic weapon and roll a 20 on the attack roll, the creature must make a DC 15 Wisdom saving throw in addition to suffering the attack's normal effects. On a failed save, the creature also suffers the effects of a polymorph spell. Roll a d20 and consult the following table to determine the form the target creature is transformed into.\",\r\n\t\">>d20\\tNew Form   \\td20\\tNew Form<<\",\r\n\t\"  1\\tTyrannosaurus\\t 11\\tWolf\",\r\n\t\"  2\\tGiant ape    \\t 12\\tHorse\",\r\n\t\"  3\\tElephant     \\t 13\\tOx\",\r\n\t\"  4\\tGiant scorpion\\t 14\\tGiant frog\",\r\n\t\"  5\\tRhinoceros   \\t 15\\tPoisonous snake\",\r\n\t\"  6\\tPolar bear   \\t 16\\tHawk\",\r\n\t\"  7\\tGiant toad   \\t 17\\tOctopus\",\r\n\t\"  8\\tGiant eagle  \\t 18\\tCat\",\r\n\t\"  9\\tBlack bear   \\t 19\\tRat\",\r\n\t\"10\\tCrocodile     \\t 20\\tRabbit\",\r\n\t\"A creature is immune to this effect if it is immune to damage of the weapon's type, is a shapechanger, or has legendary actions.\",\r\n\t\">>Curse<<. This weapon is cursed, and it extends to whomever becomes attuned to it. Until the curse is broken with a Remove Curse spell or similar magic, you are unwilling to part with the weapon. Whenever you attack a creature with this weapon and roll a 1 on the attack roll, you suffer the effect of a polymorph spell for 1 hour, rolling on the table to determine your new form.\"\r\n];\r\nMagicItemsList[\"polymorph blade\"] = {\r\n\tname : \"Polymorph Blade\",\r\n\tnameTest : \"Polymorph\",\r\n\tsource : [[\"LLoK\", 59]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I'm unwilling to part with this magic sword. When I attack a creature with it and roll a 20 to hit, the creature must make a DC 15 Wisdom save or be polymorphed for 1 hour into a random beast (see Notes page). However, on a roll of 1 to hit, I am the one being polymorphed for 1 hour without a save.\",\r\n\tdescriptionFull : LLoK_polymorphBladeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/polymorph/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: DC 15 Wis save or polymorphed, see item; On 1 to hit: I polymorph';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Polymorph\" in a the name of a sword, it will be treated as the magic weapon Polymorph Blade.'\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_polymorphBladeFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/you /ig, \"I \")\r\n\t}]\r\n}\r\nvar LLoK_poweredArmorFullDescription = [\r\n\t\"Powered armor resembles a suit of unusual plate armor, with finely articulated joints connected by an oily, black, leather-like material. The armor has been worked to create the appearance of a heavily muscled warrior, and its great helm is unusual in that it has no openings\\u2014only a broad glass plate in the front with a second piece of glass above it. Strange plates, tubing, and large metal bosses adorn the armor in seemingly random fashion. On the back of the armor's left gauntlet is a rectangular metal box, from which projects a short rod tipped with a cone-shaped red crystal.\",\r\n\t\"While wearing this armor, you gain the following benefits:\",\r\n\t\"\\u2022 You have a +1 bonus to AC.\",\r\n\t\"\\u2022 Your Strength score is 18 (this has no effect if your Strength is already 18 or higher).\",\r\n\t\"\\u2022 You have advantage on death saving throws.\",\r\n\t\"The armor has further capabilities that can be powered either by energy cells or by your own life energy. You can use a bonus action to draw power from an energy cell or sacrifice hit points to gain one of the following benefits:\",\r\n\t\"\\u2022 Emit a force field to gain 2d6 + 5 temporary hit points (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Activate boosters to gain a flying speed of 15 feet for 1 minute (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Fire arm-mounted laser: +8 to hit, range 120 feet, one target. 2d6 radiant damage (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Translate any writing you can see in any nonmagical language, to a total of one thousand words over 1 minute (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Fill the armor with air, so you can breathe normally in any environment for up to 1 hour (1 charge or 5 hit points).\",\r\n\t\"u2022 Gain darkvision to a range of 60 feet for up to 1 hour (1 charge or 5 hit points).\",\r\n\t\"The armor can accept only one energy cell at a time. It is found with one energy cell attached, containing 2d10 charges.\"\r\n];\r\nMagicItemsList[\"powered armor-llk\"] = {\r\n\tname : \"Powered Armor (LLK)\", // add source to name so it won't conflict with Powered Armor from QftIS\r\n\tsource : [[\"LLoK\", 56]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This unusual plate armor looks like a heavily muscled warrior with a helm without openings. It gives me a +1 bonus to AC, increases my Strength to 18, and adv. on death saves. As a bonus action, I can use charges from its energy cell or expend my own HP to have it do various things, see Notes page.\",\r\n\tdescriptionFull : LLoK_poweredArmorFullDescription.join(\"\\n   \"),\r\n\tattunement : true,\r\n\tweight : 65,\r\n\tscoresOverride : [18, 0, 0, 0, 0, 0],\r\n\tsavetxt : { text : [\"Adv. on death saves\"] },\r\n\taction : [[\"bonus action\", \" (use energy)\"]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*powered)(?=.*armor).*$/i,\r\n\t\tname : \"Powered Armor\",\r\n\t\tsource : [[\"LLoK\", 56]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"18+1\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : \"2d10\",\r\n\trecovery : \"Never\",\r\n\tadditional : \"energy cell\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_poweredArmorFullDescription).replace(/your/g, \"my\").replace(/you /ig, \"I \")\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arm)(?=.*mounted)(?=.*laser).*$/i,\r\n\t\tname : \"Arm-Mounted Laser\",\r\n\t\tsource : [[\"LLoK\", 56]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [2, 6, \"radiant\"],\r\n\t\trange : \"120 ft\",\r\n\t\tdescription : \"Bonus action; Uses 1 charge or 5 HP\",\r\n\t\tabilitytodamage : false,\r\n\t\tmodifiers : [8, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\r\n// Spells (contain contributions by /u/KittenWithMittens)\r\nSpellsList[\"flock of familiars\"] = {\r\n\tname : \"Flock of Familiars\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 3+1/SL familiars as Find Familiar; can see through their eyes and deliver touch spells; see B\",\r\n\tdescriptionFull : \"You temporarily summon three familiars\\u2014spirits that take animal forms of your choice. Each familiar uses the same rules and options for a familiar conjured by the find familiar spell. All the familiars conjured by this spell must be the same type of creature (celestials, fey, or fiends; your choice). If you already have a familiar conjured by the find familiar spell or similar means, then one fewer familiars are conjured by this spell.\\n   Familiars summoned by this spell can telepathically communicate with you and share their visual or auditory senses while they are within 1 mile of you.\\n   When you cast a spell with a range of touch, one of the familiars conjured by this spell can deliver the spell, as normal. However, you can cast a touch spell through only one familiar per turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you conjure an additional familiar for each slot level above 2nd.\"\r\n}\r\nSpellsList[\"galder's speedy courier\"] = {\r\n\tname : \"Galder's Speedy Courier\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"25 gp, or mineral goods of equivalent value, which the spell consumes\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Send 3\\xD73\\xD73 ft chest of items I put in it to named crea on same plane; SL8: other plane (25gp cons.)\",\r\n\tdescriptionMetric : \"Send 1\\xD71\\xD71 m chest of items I put in it to named crea on same plane; SL8: other plane (25gp cons.)\",\r\n\tdescriptionFull : \"You summon a Small air elemental to a spot within range. The air elemental is formless, nearly transparent, immune to all damage, and cannot interact with other creatures or objects. It carries an open, empty chest whose interior dimensions are 3 feet on each side. While the spell lasts, you can deposit as many items inside the chest as will fit. You can then name a living creature you have met and seen at least once before, or any creature for which you possess a body part, lock of hair, clipping from a nail, or similar portion of the creature's body.\\n   As soon as the lid of the chest is closed, the elemental and the chest disappear, then reappear adjacent to the target creature. If the target creature is on another plane, or if it is proofed against magical detection or location, the contents of the chest reappear on the ground at your feet.\\n   The target creature is made aware of the chest's contents before it chooses whether or not to open it, and knows how much of the spell's duration remains in which it can retrieve them. No other creature can open the chest and retrieve its contents. When the spell expires or when all the contents of the chest have been removed, the elemental and the chest disappear. The elemental also disappears if the target creature orders it to return the items to you. When the elemental disappears, any items not taken from the chest reappear on the ground at your feet.\" + AtHigherLevels + \"When you cast this spell using an 8th-level spell slot, you can send the chest to a creature on a different plane of existence from you.\"\r\n}\r\nSpellsList[\"galder's tower\"] = {\r\n\tname : \"Galder's Tower\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A fragment of stone, wood, or other building material\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Conjure round or square tower with 2+1/Sl stories, each 100 sq ft and 10 ft high; see book\",\r\n\tdescriptionFull : \"You conjure a two-story tower made of stone, wood, or similar suitably sturdy materials. The tower can be round or square in shape. Each level of the tower is 10 feet tall and has an area of up to 100 square feet. Access between levels consists of a simple ladder and hatch. Each level takes one of the following forms, chosen by you when you cast the spell:\" +\r\n\t\"\\n \\u2022 A bedroom with a bed, chairs, chest, and magical fireplace\" +\r\n\t\"\\n \\u2022 A study with desks, books, bookshelves, parchments, ink, and ink pens\" +\r\n\t\"\\n \\u2022 A dining space with a table, chairs, magical fireplace, containers, and cooking utensils\" +\r\n\t\"\\n \\u2022 A lounge with couches, armchairs, side tables and footstools\" +\r\n\t\"\\n \\u2022 A washroom with toilets, washtubs, a magical brazier, and sauna benches\" +\r\n\t\"\\n \\u2022 An observatory with a telescope and maps of the night sky\" +\r\n\t\"\\n \\u2022 An unfurnished, empty room\" +\r\n\t\"\\n\\nThe interior of the tower is warm and dry, regardless of conditions outside. Any equipment or furnishings conjured with the tower dissipate into smoke if removed from it. At the end of the spell's duration, all creatures and objects within the tower that were not created by the spell appear safely outside on the ground, and all traces of the tower and its furnishings disappear.\" +\r\n\t\"\\n   You can cast this spell again while it is active to maintain the tower's existence for another 24 hours. You can create a permanent tower by casting this spell in the same location and with the same configuration every day for one year.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the tower can have one additional story for each slot level beyond 3rd.\"\r\n}\r\n\n// pub_20181120_GGtR.js\n// This file adds all material from the Guildmasters' Guide to Ravnica to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.G = {\n\tname : \"Guildmasters' Guide to Ravnica\",\n\tabbreviation : \"GGtR\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Magic: The Gathering\",\n\turl : \"https://dnd.wizards.com/products/guildmasters-guide-ravnica\",\n\tdate : \"2018/11/20\"\n};\n\n// Add the Centaur race\nRaceList[\"centaur\"] = {\n\tregExpSearch : /centaur/i,\n\tname : \"Centaur\",\n\tsortname : \"Centaur\",\n\tsource : [[\"G\", 15], [\"MOT\", 19]],\n\tplural : \"Centaurs\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 40, enc : 30 }\n\t},\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\n\t\tname : \"Hooves\",\n\t\tsource : [[\"G\", 15], [\"MOT\", 19]],\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\tdescription : \"Use as bonus action after charge 30 ft\",\n\t\tselectNow : true\n\t}],\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, or Survival\",\n\tage : \" mature and age at about the same rate as humans\",\n\theight : \" stand between 6 and 7 feet tall, with their equine bodies reaching about 4 feet at the withers (6'0\\\" + 1d10\\\")\",\n\tweight : \" weigh around 670 lb (600 + 1d10 \\xD7 2d12 lb)\",\n\theightMetric : \" stand around 2 metres tall, with their equine bodies reaching about 1,5 metres at the withers (183 + 3d8 cm)\",\n\tweightMetric : \" weigh around 300 kg (270 + 3d8 \\xD7 4d12 / 10 kg)\",\n\tscores : [2, 0, 0, 0, 1, 0],\n\ttrait : \"Centaur (+2 Strength +1 Wisdom)\" + desc([\n\t\t\"Fey: My creature type is fey, rather than humanoid.\",\n\t\t\"Hooves: I can use my hooves for unarmed strikes that deal 1d4 bludgeoning damage.\",\n\t\t\"Charge: If I move 30 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can make a hooves attack against it as a bonus action.\",\n\t\t\"Equine Build: I count as one size larger for my carrying capacity and the weight I can push, drag, or lift. Because of my hooves, 1 ft of movement while climbing costs me 4 ft.\"\n\t]),\n\taction : [[\"bonus action\", \"Hooves (after charge)\"]],\n\tcarryingCapacity : 2\n};\n// Add Loxodon\nRaceList[\"loxodon\"] = {\n\tregExpSearch : /loxodon/i,\n\tname : \"Loxodon\",\n\tsource : [[\"G\", 18]],\n\tplural : \"Loxodons\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Loxodon\"],\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*loxodon)(?=.*(natural|hide|skin)).*$/i,\n\t\tname : \"Loxodon Natural Armor\",\n\t\tsource : [[\"G\", 18]],\n\t\tac : \"12+Con\",\n\t\tdex : -10,\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Keen Smell\", 0]],\n\tage : \" physically mature at the same rate as humans, but are considered young until they reach the age of 60 and live about 450 years\",\n\theight : \" stand between 7 and 8 feet tall (6'7\\\" + 2d10\\\")\",\n\tweight : \" weigh between 300 and 400 pounds (295 + 2d10 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 2 and 2,5 metres tall (200 + 5d10 cm)\",\n\tweightMetric : \" weigh between 135 and 200 kg (133 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 2, 0, 1, 0],\n\ttrait : \"Loxodon (+2 Constitution, +1 Wisdom)\" +\n\t\t\"\\n  Powerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\" +\n\t\t\"\\n  Natural Armor: \" + (typePF ? \"I have an AC of\" : \"My thick, leathery skin gives me AC\") + \" 12 + Constitution modifier + shield.\" +\n\t\t\"\\n  Trunk: I can grasp things with my trunk or use it as a snorkel. It has a reach of 5 ft and can lift things up to 5\\xD7 my Strength in pounds. I can also use it to make unarmed strikes, but I can't use it to wield weapons, shields, or anything that requires manual precision.\" +\n\t\t\"\\n  Keen Smell: I have \" + (typePF ? \"advantage on Wisdom (Perception), Wisdom (Survival), and Intelligence (Investigation) checks that involve smell.\" : \"adv. on Perception, Survival, and Investigation checks involving smell.\"),\n\tcarryingCapacity : 2\n};\n\n// Add the Minotaur race\nRaceList[\"minotaur\"] = {\n\tregExpSearch : /minotaur/i,\n\tname : \"Minotaur\",\n\tsortname : \"Minotaur\",\n\tsource : [[\"G\", 19], [\"MOT\", 22]],\n\tplural : \"Minotaurs\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Minotaur\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /\\bhorns?\\b/i,\n\t\tname : \"Horns\",\n\t\tsource : [[\"G\", 19], [\"MOT\", 23]],\n\t\tdamage : [1, 6, \"piercing\"],\n\t\tdescription : \"Attack as a bonus action after moving 20 ft with the Dash action\",\n\t\tselectNow : true\n\t}],\n\tskillstxt : \"Choose one from Intimidation or Persuasion\",\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\n\theight : \" stand around 6 feet tall (5'4\\\" + 2d8\\\")\",\n\tweight : \" weigh around 300 pounds (175 + 2d8 \\xD7 2d6 lb)\",\n\theightMetric : \" stand around 175 cm tall (163 + 5d8 cm)\",\n\tweightMetric : \" weigh around 135 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\n\tscores : [2, 0, 1, 0, 0, 0],\n\tabilitySave : 1,\n\ttrait : \"Minotaur (+2 Strength +1 Constitution)\" + desc([\n\t\t\"Horns: I can use my horns for unarmed strikes that deal 1d6 piercing damage.\",\n\t\t\"Goring Rush: When taking a Dash action and moving at least 20 ft, I can make a horns attack as a bonus action.\",\n\t\t\"Hammering Horns: As a bonus action after I hit a melee attack during my Attack action, I can shove that target with my horns, if it is up to than one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 10 ft away from me.\"\n\t]),\n\tfeatures : {\n\t\t\"goring rush\" : {\n\t\t\tname : \"Goring Rush\",\n\t\t\tminlevel : 1,\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\n\t\t},\n\t\t\"hammering horns\" : {\n\t\t\tname : \"Hammering Horns\",\n\t\t\tminlevel : 1,\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]]\n\t\t}\n\t}\n};\n\n// Add Simic Hybrid\nRaceList[\"simic hybrid\"] = {\n\tregExpSearch : /^(?=.*(simic|elf|dwarf|human|orc))(?=.*hybrid).*$/i,\n\tname : \"Simic hybrid\",\n\tsource : [[\"G\", 20]],\n\tplural : \"Simic hybrids\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Elvish or Vedalken\", 1]],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptionsSp : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*grappling)(?=.*(appendage|tentacle|claw)).*$/i,\n\t\tname : \"Grappling Appendages\",\n\t\tsource : [[\"G\", 20]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tdescription : \"After hitting, start grapple on target as a bonus action\"\n\t}, {\n\t\tregExpSearch : /^(?=.*acid)(?=.*spit).*$/i,\n\t\tname : \"Acid Spit\",\n\t\tsource : [[\"G\", 21]],\n\t\tability : 3,\n\t\ttype : \"Natural\",\n\t\tdamage : [\"C\", 10, \"acid\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Dex save, success - no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\textraACSp : {\n\t\tname : \"Carapace\",\n\t\tmod : 1,\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor.\",\n\t\tstopeval : function (v) { return v.heavyArmor; }\n\t},\n\tage : \" age slightly faster than their base humanoid race and their maximum lifespan is somewhat reduced\",\n\theight : \" are of the same height as typical for their humanoid race\",\n\tweight : \" are of the same weight as typical for their humanoid race\",\n\tscorestxt : \"Simic Hybrid: +2 Constitution and +1 to one other ability score of my choice;\",\n\tscores : [0, 0, 2, 0, 0, 0],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (1st level): Choose one to three types of enhancement using the \\\"Racial Options\\\" button: Manta Glide, Nimble Climber, or Underwater Adaptation.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can either choose one I didn't take at 1st level or choose Grappling Appendages, Carapace, or Acid Spit.\",\n\tfeatures : {\n\t\t\"animal enhancement\" : {\n\t\t\tname : \"Animal Enhancement\",\n\t\t\tminlevel : 5,\n\t\t\teval : function() {\n\t\t\t\tvar curChoice = ParseRace(What('Race Remember'))[1].capitalize();\n\t\t\t\tvar AEoptions = [\"Manta Glide\", \"Nimble Climber\", \"Underwater Adaptation\", \"Grappling Appendages\", \"Carapace\", \"Acid Spit\"];\n\t\t\t\tif (curChoice && AEoptions.indexOf(curChoice) !== -1) AEoptions.splice(AEoptions.indexOf(curChoice), 1);\n\t\t\t\tvar theChoice = AskUserOptions('Simic Hybrid 5th-level Animal Enhancement', 'The Simic Hybrid race offers a choice of animal enhancement at 5th-level. Make a selection to update the sheet accordingly. You can only change this selection by removing the Simic Hybrid race or changing its variant.', AEoptions, 'radio', true);\n\t\t\t\tvar feaTxt = '';\n\t\t\t\tvar rObjNm = \"simic hybrid\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Manta Glide\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { climb : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Nimble Climber)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { swim : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Underwater Adaptation)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Grappling Appendages): I have two extra appendages which I can use to make unarmed strikes for 1d6 bludgeoning damage. As a bonus action after hitting with them, I can try to grapple the target. I can't use these appendages to wield anything.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tAddWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tAddAction(\"bonus action\", \"Grappling Appendages (after hit)\", rNm + \": Animal Enhancement (Grappling Appendages)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Carapace): My skin is covered by a thick shell, giving my a +1 to AC whenever I'm not wearing heavy armor.\";\n\t\t\t\t\t\tprocessExtraAC(true, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Acid Spit): As an action, I can spit acid at a creature within 30 ft that I can see. It must make a Dex save (DC 8 + Con mod + Prof Bonus) or take 2d10 acid damage (+1d10 at 11th and 17th level). I can do this my Con mod times per long rest.\";\n\t\t\t\t\t\tAddFeature(\"Acid Spit\", \"Con Mod\", \"\", \"long rest\", rNm + \": Animal Enhancement (Acid Spit)\", 0, \"event.value = Math.max(1, What('Con Mod'));\");\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tAddWeapon(\"Acid Spit\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tif (What(\"Unit System\") !== \"imperial\") feaTxt = ConvertToMetric(feaTxt, 0.5);\n\t\t\t\tValue(\"Racial Traits\", What(\"Racial Traits\").replace(/Animal Enhancement \\(5th level\\):.*/, '') + feaTxt);\n\t\t\t\tValue(\"Race Remember\", What(\"Race Remember\") + \"-*\" + theChoice.replace(' ', '_') + \"*\");\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar theRegex = /\\*(Manta_Glide|Nimble_Climber|Underwater_Adaptation|Grappling_Appendages|Carapace|Acid_Spit)\\*/i;\n\t\t\t\tvar raceRem = What(\"Race Remember\");\n\t\t\t\tif (!theRegex.test(raceRem)) return;\n\t\t\t\tvar theChoice = raceRem.match(theRegex)[1].replace('_', ' ').capitalize();\n\t\t\t\tvar rObjNm = \"simic hybrid\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { climb : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Nimble Climber)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { swim : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Underwater Adaptation)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tRemoveWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tRemoveAction(\"bonus action\", \"Grappling Appendages (after hit)\", rNm + \": Animal Enhancement (Grappling Appendages)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tprocessExtraAC(false, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tRemoveFeature(\"Acid Spit\", \"\", \"\", \"\", \"\", \"\", \"event.value = Math.max(1, What('Con Mod'));\");\n\t\t\t\t\t\tRemoveWeapon(\"Acid Spit\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tValue(\"Racial Traits\", What(\"Unit System\") === \"imperial\" ? CurrentRace.trait : ConvertToMetric(CurrentRace.trait, 0.5));\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"simic hybrid\", \"manta glide\", {\n\tregExpSearch : /manta glide/i,\n\tsource : [[\"G\", 20]],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Nimble Climber, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid\", \"nimble climber\", {\n\tregExpSearch : /nimble climber/i,\n\tsource : [[\"G\", 20]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid\", \"underwater adaptation\", {\n\tregExpSearch : /underwater adaptation/i,\n\tsource : [[\"G\", 20]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Nimble Climber, Grappling Appendages, Carapace, or Acid Split.\"\n});\n\n// Add Vedalken\nRaceList[\"vedalken\"] = {\n\tregExpSearch : /vedalken/i,\n\tname : \"Vedalken\",\n\tsource : [[\"G\", 21]],\n\tplural : \"Vedalken\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tskillstxt : \"Choose one from Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. I add 1d4 to a check with the chosen skill\",\n\tlanguageProfs : [\"Common\", \"Vedalken\", 1],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" reach maturity around age 40 and typically live 350 years, with some living up to 500 years\",\n\theight : \" stand between 6 and 6 and a half feet tall (5'4\\\" + 2d10\\\")\",\n\tweight : \" are slender, weighing around 200 pounds (110 + 2d10 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 1,8 and 2 metres tall (163 + 5d10 cm)\",\n\tweightMetric : \" are slender, weighing around 100 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 2, 1, 0],\n\ttrait : \"Vedalken (+2 Intelligence, +1 Wisdom)\" + desc([\n\t\t\"Vedalken Dispassion: I have advantage on all Intelligence, Wisdom, and Charisma saves.\",\n\t\t\"Tireless Precision: I am proficient with any one tool and one skill of my choice: Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. Whenever I make an ability check with the chosen tool or skill, I can add 1d4 to the check's total.\",\n\t\t\"Partially Amphibious: Once per long rest, I can breathe underwater for 1 hour by absorbing oxygen through my skin.\"\n\t]),\n\tfeatures : {\n\t\t\"partially amphibious\" : {\n\t\t\tname : \"Partially Amphibious\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t},\n\tadvantages : [[\"Int\", true], [\"Wis\", true], [\"Cha\", true]]\n};\n\n// New Subclass for Cleric: Order Domain\nAddSubClass(\"cleric\", \"order domain\", {\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*order).*$/i,\n\tsubname : \"Order Domain\",\n\tsource : [[\"T\", 31], [\"G\", 25]],\n\tspellcastingExtra : [\"command\", \"heroism\", \"hold person\", \"zone of truth\", \"mass healing word\", \"slow\", \"compulsion\", \"locate creature\", \"commune\", \"dominate person\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Bonus Proficiency\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 1,\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor, and either the Intimidation or Persuasion skill\"),\n\t\t\tarmorProfs : [false, false, true, false],\n\t\t\tskillstxt : \"Choose one from Intimidation or Persuasion\"\n\t\t},\n\t\t\"subclassfeature1.1\" : {\n\t\t\tname : \"Voice of Authority\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 1,\n\t\t\tdescription : desc([\n\t\t\t\t\"Whenever I use a spell slot to cast a spell on an ally, it can use its reaction to attack\",\n\t\t\t\t\"The ally makes one weapon attack against a target of my choice that I can see\",\n\t\t\t\t\"If the spell targets multiple allies, I can choose which one can make the attack\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Channel Divinity: Order's Demand\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, all chosen targets in 30 ft that can see or hear me must make a Wis save\",\n\t\t\t\t\"If failed, it is charmed by me until the end of my next turn or it takes any damage\",\n\t\t\t\t\"Also, I can choose to have a charmed target drop what its holding when it fails its save\"\n\t\t\t]),\n\t\t\taction : [[\"action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Embodiment of the Law\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I cast an enchantment spell using a spell slot, I can reduce its casting time\",\n\t\t\t\t\"If the spell normally has a casting time of an action, I can now cast it as a bonus action\"\n\t\t\t]),\n\t\t\tusages : \"Wisdom modifier per \",\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery : \"long rest\",\n\t\t\tcalcChanges : {\n\t\t\t\tspellAdd : [\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\t\t\tif (CurrentSpells[spName].refType == \"class\" && spellObj.school == \"Ench\" && spellObj.time == \"1 a\") {\n\t\t\t\t\t\t\tspellObj.time = \"1a/bns\"\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"When I cast an enchantment spell using a spell slot that normally requires 1 action to cast, I can reduce its casting time to a bonus action.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature8\" : {\n\t\t\tname : \"Divine Strike\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 8,\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\tif (n < 8) return \"\";\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\n\t\t\t}),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage' + (classes.known.cleric.level < 17 ? '' : ' \\u0026 again if hit by ally before my next turn');\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature17\" : {\n\t\t\tname : \"Order's Wrath\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 17,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I deal my Divine Strike damage to a creature, it is cursed until my next turn starts\",\n\t\t\t\t\"The next time it is hit by a weapon attack from my allies, it takes +2d8 psychic damage\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n// New Subclass for Druid: Circle of Spores (but add TCoE as main source, because it is more likely to be available at a table)\nAddSubClass(\"druid\", \"circle of spores\", {\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*spores).*$/i,\n\tsubname : \"Circle of Spores\",\n\tsubnameShort: \"Spores\",\n\tsource : [[\"T\", 36], [\"G\", 26]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Circle Spells\",\n\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"I learn the Chill Touch cantrip and gain the ability to cast certain spells\",\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Circle Spells\",\n\t\t\t\tspells : [\"chill touch\"],\n\t\t\t\tselection : [\"chill touch\"]\n\t\t\t}],\n\t\t\tspellcastingExtra : [\"blindness/deafness\", \"gentle repose\", \"animate dead\", \"gaseous form\", \"blight\", \"confusion\", \"cloudkill\", \"contagion\"]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Halo of Spores\",\n\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\n\t\t\tminlevel : 2,\n \t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when someone I can see in 10 ft starts its turn or moves, I can have it save\",\n\t\t\t\t\"It must succeed on a Constitution save or take necrotic damage from my cloud of spores\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : 'Con save or 1d' + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10) + \" necrotic damage\"; }),\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature2.2\" : { // changed from poison to necrotic damage in TCoE\n\t\t\tname : \"Symbiotic Entity\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can expend a Wild Shape use to boost my spores instead of transforming\",\n\t\t\t\t\"I gain 4 temporary hit points per druid level and my Halo of Spores damage increases\",\n\t\t\t\t\"Also, my melee weapon attacks do +1d6 necrotic damage with every hit\",\n\t\t\t\t\"This lasts for 10 min, until these temporary HP run out, or until I use Wild Shape again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 2 ? \"\" : Math.floor(n*4) + \" temp HP; Halo of Spores: 2d\" + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10);\n\t\t\t}),\n\t\t\taction : [[\"action\", \"\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/\\b(spore|symbiotic)\\b/i).test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 necrotic damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the word 'Spore' or 'Symbiotic' in a melee weapon's name, it gets treated as a weapon that is infused by my Symbiotic Entity feature, adding +1d6 necrotic damage in the description.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Fungal Infestation\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when a Small/Medium beast/humanoid dies in 10 ft, I can animate it\",\n\t\t\t\t\"It rises as a zombie with 1 HP that follows my mental commands and dies after 1 hour\",\n\t\t\t\t\"It can only take the attack action for one melee attack; It takes its turns after mine\"\n\t\t\t]),\n\t\t\tusages : \"Wisdom modifier per \",\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Spreading Spores\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : \" [only while Symbiotic Entity is active]\" + desc([\n\t\t\t\t\"As a bonus action, I create a 10-ft cube of fungal spores within 30 ft, lasting for 1 min\",\n\t\t\t\t\"Any creature moving into or starting its turn in it must save against my Halo of Spores\",\n\t\t\t\t\"The cube ends if I use this feature again; While it persists, I can't use my Halo of Spores\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Fungal Body\",\n\t\t\tsource : [[\"T\", 38], [\"G\", 27]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"I'm immune to being blinded, deafened, frightened, poisoned, and critical hits\"\n\t\t\t]),\n\t\t\tsavetxt : { immune : [\"blinded\", \"deafened\", \"frightened\", \"poisoned\", \"critical hits (unless incapacitated)\"] }\n\t\t}\n\t}\n});\n\nBackgroundList[\"azorius functionary\"] = {\n\tregExpSearch : /^(?=.*azorius)(?=.*functionary).*$/i,\n\tname : \"Azorius Functionary\",\n\tsource : [[\"G\", 33]],\n\tskills : [\"Insight\", \"Intimidation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"friends\", \"message\", \"command\", \"ensnaring strike\", \"arcane lock\", \"calm emotions\", \"hold person\", \"clairvoyance\", \"counterspell\", \"compulsion\", \"divination\", \"dominate person\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Friends, Message, Command, Ensnaring Strike, Arcane Lock, Calm Emotions, Hold Person, Clairvoyance, Counterspell, Compulsion, Divination, and Dominate Person.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Scroll with law text\", \"\", \"\"],\n\t\t[\"Blue ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Azorius insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Legal Authority\",\n\ttrait : [\n\t\t\"I try never to let my judgment become clouded by emotion.\",\n\t\t\"I have infinite patience with the dolts and boors I'm forced to deal with every day.\",\n\t\t\"When I give an order, I expect it to be obeyed.\",\n\t\t\"I just want things the way I like them: neat, orderly, and clean.\",\n\t\t\"No wrongdoing can escape my watchful gaze.\",\n\t\t\"I always say exactly what I mean, no matter how many words it takes to communicate the particular nuance I am attempting to convey.\",\n\t\t\"I'm very literal and don't appreciate metaphor or sarcasm.\",\n\t\t\"I never change my mind once it's made up.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Order\", \"Order: The law is meant to ensure that the gears of society turn smoothly and quietly. (Lawful)\"],\n\t\t[\"Peace\", \"Peace: The ultimate object of the law is to remove violence from society. (Good)\"],\n\t\t[\"Compliance\", \"Compliance: Coercion is a fine way of ensuring that the laws are obeyed. (Lawful)\"],\n\t\t[\"Legislation\", \"Legislation: The law embodies excellence in its precision and detail. (Lawful)\"],\n\t\t[\"Punishment\", \"Punishment: A public display of consequences is an excellent deterrent for other criminals. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I am beholden to an Azorius arrester who captured the criminal who killed my parents, saving me from the same fate.\",\n\t\t\"I hope one day to write the laws, not just enforce them.\",\n\t\t\"I tried and failed to prevent a murder, and I have sworn to find and arrest the perpetrator.\",\n\t\t\"I successfully prevented a murder, and the would-be perpetrator wants me dead.\",\n\t\t\"One of my parents was prominent in the guild, and I resent constantly being compared to that standard.\",\n\t\t\"I've modeled my career after a highly respected lawmage or arrester, but I fear that my role model might be involved in something illegal.\"\n\t],\n\tflaw : [\n\t\t\"I'm unable to distinguish between the letter and the spirit of the law.\",\n\t\t\"I seem like a harsh judge to others, but I judge myself most harshly of all.\",\n\t\t\"I have a secret, illegal vice.\",\n\t\t\"I was traumatized by witnessing a crime as a child.\",\n\t\t\"I'm incapable of deception.\",\n\t\t\"I wish I had joined the Boros, but I fear they'd never accept me.\"\n\t]\n};\nBackgroundFeatureList[\"legal authority\"] = {\n\tdescription : \"I have the authority to enforce the laws of Ravnica, inspiring respect and fear as a result. People mind their manners, avoid my attention, and assume I have a right to be wherever I am. My Azorius insignia gets me an audience with anyone I want, though it might work adversely with incorrigible lawbreakers. Abusing this privilege can get me in serious trouble.\",\n\tsource : [[\"G\", 33]]\n};\n\nBackgroundList[\"boros legionnaire\"] = {\n\tregExpSearch : /^(?=.*boros)(?=.*legionnaire).*$/i,\n\tname : \"Boros Legionnaire\",\n\tsource : [[\"G\", 40]],\n\tskills : [\"Athletics\", \"Intimidation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"sacred flame\", \"guiding bolt\", \"heroism\", \"aid\", \"scorching ray\", \"beacon of hope\", \"blinding smite\", \"death ward\", \"wall of fire\", \"flame strike\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Sacred Flame, Guiding Bolt, Heroism, Aid, Scorching Ray, Beacon of Hope, Blinding Smite, Death Ward, Wall of Fire, and Flame Strike.\"\n\t\t]\n\t},\n\tgold : 2,\n\tequipleft : [\n\t\t[\"Feather from angel's wing\", \"\", \"\"],\n\t\t[\"Tattered piece of Boros banner\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Boros insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Celestial, Draconic, Goblin, or Minotaur\", 1]],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tfeature : \"Legion Station\",\n\ttrait : [\n\t\t\"I approach every task with the same high degree of military precision.\",\n\t\t\"I am always the first into the fray.\",\n\t\t\"I bear any injury or indignity with stoic discipline.\",\n\t\t\"My righteous wrath is easily inflamed by the slightest iniquity.\",\n\t\t\"My honor is more important to me than my life.\",\n\t\t\"Dangerous work is best accomplished by an orderly group working with common purpose.\",\n\t\t\"I treat my weapons, uniform, and insignia with reverence, for they are gifts of the angels.\",\n\t\t\"I pace when standing and fidget incessantly when forced to sit.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Justice\", \"Justice: Achieving justice requires establishing fair, equitable, and compassionate relationships within a community. (Good)\"],\n\t\t[\"Protection\", \"Protection: It isn't right for innocents to suffer because of the arrogance of the powerful. (Good)\"],\n\t\t[\"Solidarity\", \"Solidarity: It is most crucial to act with a single will, marching side by side in perfect accord. (Lawful)\"],\n\t\t[\"Order\", \"Order: Society functions only if people do their duty and respect the chain of command. (Lawful)\"],\n\t\t[\"Conviction\", \"Conviction: Anything worth doing is worth doing with your whole heart. (Lawful)\"]\n\t],\n\tbond : [\n\t\t\"I would lay down my life for Aurelia and the angels.\",\n\t\t\"I owe my life to the Boros captain who took me in when I was living on the streets.\",\n\t\t\"My fellow legionnaires are my family.\",\n\t\t\"I wield the same Boros weapon my grandparent did, for the honor of our family.\",\n\t\t\"I ran with the Rakdos in my youth, and I'm striving to atone for my past misdeeds.\",\n\t\t\"I do what I can to help out the spouse of a comrade who died in battle.\"\n\t],\n\tflaw : [\n\t\t\"I act bravely when I'm in a group, but I'm a coward when I'm alone.\",\n\t\t\"I see everything in clear-cut black and white.\",\n\t\t\"I'm just a little fascinated by the ways of the Gruul.\",\n\t\t\"I trust the chain of command more than anything\\u2014more even than my closest friends.\",\n\t\t\"I'm slow to trust members of other guilds.\",\n\t\t\"I've been known to turn a blind eye to injustice, with the help of a modest bribe.\"\n\t],\n\tlifestyle : \"poor\"\n};\nBackgroundFeatureList[\"legion station\"] = {\n\tdescription : \"I am established in the hierarchy of the Boros Legion. I can requisition simple equipment for temporary use. I have access to any Boros garrison in Ravnica where I can rest in safety and have access to medics. I'm paid 1 gp per week (a Boros-minted 1-zino coin), allowing me (together with the free garrison lodging) to have a poor lifestyle between adventures.\",\n\tsource : [[\"G\", 40]]\n};\n\nBackgroundList[\"dimir operative\"] = {\n\tregExpSearch : /^(?=.*dimir)(?=.*operative).*$/i,\n\tname : \"Dimir Operative\",\n\tsource : [[\"G\", 46]],\n\tskills : [\"Deception\", \"Stealth\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"encode thoughts\", \"mage hand\", \"disguise self\", \"sleep\", \"detect thoughts\", \"pass without trace\", \"gaseous form\", \"meld into stone\", \"nondetection\", \"arcane eye\", \"freedom of movement\", \"modify memory\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Encode Thoughts, Mage Hand, Disguise Self, Sleep, Detect Thoughts, Pass Without Trace, Gaseous Form, Meld into Stone, Nondetection, Arcane Eye, Freedom of Movement, and Modify Memory.\"\n\t\t]\n\t},\n\tgold : 0,\n\tequipleft : [\n\t\t[\"Small knife\", 3, 0.25],\n\t\t[\"Starting equipment of secondary guild\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Dark-colored common clothes\", \"\", 3],\n\t\t[\"Dimir insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [\"Disguise kit\"],\n\tfeature : \"False Guild Identity\",\n\ttrait : [\n\t\t\"I'm good at hiding my true thoughts and feelings.\",\n\t\t\"When I'm in doubt about revealing something, I assume it's a secret, and I don't share it.\",\n\t\t\"I like to sound mysterious, because wisdom hidden grows deeper with time.\",\n\t\t\"I have no patience with people who get in my way.\",\n\t\t\"I love hearing about other people's nightmares.\",\n\t\t\"Combat is meant to be quick, clean, and one-sided.\",\n\t\t\"I like to stick to the shadows.\",\n\t\t\"I never show my anger. I just plot my revenge.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My true guild is all that really matters. (Any)\"],\n\t\t[\"Control\", \"Control: I like pulling the strings. (Lawful)\"],\n\t\t[\"Secrets\", \"Secrets: I collect secrets and never reveal them. (Any)\"],\n\t\t[\"Knowledge\", \"Knowledge: I want to know as much as I can about this city and how it works. (Any)\"],\n\t\t[\"Independence\", \"Independence: I value the freedom to pursue my own goals without interference. (Chaotic)\"],\n\t\t[\"Nihilism\", \"Nihilism: I don't believe in anything, and anyone who does is a fool. (Neutral)\"]\n\t],\n\tbond : [\n\t\t\"I discovered a secret I can't let anyone else uncover\\u2014including my guild superiors.\",\n\t\t\"I formed a close friendship or romance with someone in the guild I'm infiltrating.\",\n\t\t\"The Dimir agent who recruited me was unmasked and killed. My revenge on the killers will be thorough and painful.\",\n\t\t\"I spend as much time as I can in the Ismeri Library because I'm certain an information hub operates behind its facade. I want its secrets!\",\n\t\t\"I'm utterly loyal to my superior in the guild, more than to the guild or its guildmaster.\",\n\t\t\"Someone has discovered my true identity.\"\n\t],\n\tflaw : [\n\t\t\"I like secrets so much that I'm reluctant to share details of a plan even with those who need to know.\",\n\t\t\"I would let my friends die rather than reveal my true identity.\",\n\t\t\"I have trouble trusting anyone but myself.\",\n\t\t\"I have a particular vice that puts all my secrets at risk if I'm not careful.\",\n\t\t\"I'm pretty sure I've done something horrible that I can't remember because of the guild's mind magic.\",\n\t\t\"I put too much trust in the people who give me orders.\"\n\t],\n\textra : [\n\t\t\"Select a Reason for Infiltration\",\n\t\t\"Parental link\",\n\t\t\"Track activities\",\n\t\t\"Spy on individual\",\n\t\t\"Recruit more spies\",\n\t\t\"Member before recruitment\",\n\t\t\"Destroy from within\",\n\t\t\"Secret wish to join\",\n\t\t\"Randomly chosen\"\n\t]\n};\nBackgroundFeatureList[\"false guild identity\"] = {\n\tdescription : \"I have more than one identity. The one I wear most of the time makes me appear to be a member of a guild other than my own. I have documentation, established acquaintances, and disguises that allow me to assume that persona and fit into the secondary guild. Whenever I choose, I can drop this identity and blend into the guildless masses of the city.\",\n\tsource : [[\"G\", 46]]\n};\n\nBackgroundList[\"golgari agent\"] = {\n\tregExpSearch : /^(?=.*golgari)(?=.*agent).*$/i,\n\tname : \"Golgari Agent\",\n\tsource : [[\"G\", 53]],\n\tskills : [\"Nature\", \"Survival\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"dancing lights\", \"spare the dying\", \"entangle\", \"ray of sickness\", \"protection from poison\", \"ray of enfeeblement\", \"spider climb\", \"animate dead\", \"plant growth\", \"giant insect\", \"grasping vine\", \"cloudkill\", \"insect plague\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Dancing Lights, Spare the Dying, Entangle, Ray of Sickness, Protection from Poison, Ray of Enfeeblement, Spider Climb, Animate Dead, Plant Growth, Giant Insect, Grasping Vine, Cloudkill, and Insect Plague.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Poisoner's kit\", \"\", 2]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Golgari insignia\", \"\", \"\"],\n\t\t[\"Pet beetle or spider\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Elvish, Giant, or Kraul\", 1]],\n\ttoolProfs : [\"Poisoner's kit\"],\n\tfeature : \"Undercity Paths\",\n\ttrait : [\n\t\t\"Remember, I could kill you in your sleep. Or put centipedes in your bedroll.\",\n\t\t\"I like to remind people of their inevitable demise.\",\n\t\t\"Sometimes I give voice to the whispers of the rot, which I hear but no one else does.\",\n\t\t\"I do my best to discourage anyone from approaching or talking to me.\",\n\t\t\"I have accepted my death. Hence, I don't fear it.\",\n\t\t\"Like roots growing through stone, I am relentless and determined in my action.\",\n\t\t\"I put my knowledge of anatomy to use by narrating the injuries my enemies suffer in grisly detail.\",\n\t\t\"Like a wild animal, I lash out viciously when I'm provoked\\u2014and I'm easily provoked.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Stoicism\", \"Stoicism: All of us are part of the cyclical march of nature, which will continue with or without us. (Neutral)\"],\n\t\t[\"Nature\", \"Nature: The natural world is more important than the edifices of the city and civilization. (Neutral)\"],\n\t\t[\"Interdependence\", \"Interdependence: We are all part of nature's web. (Lawful)\"],\n\t\t[\"Ambition\", \"Ambition: The time of Golgari ascendance is at hand, and I intend to have a prominent place in the new world order. (Evil)\"],\n\t\t[\"Live and Let Live\", \"Live and Let Live: Meddling in the affairs of other guilds is a great way to get squashed like a bug. (Neutral)\"]\n\t],\n\tbond : [\n\t\t\"I cherish the finger of a family member who was petrified by a medusa.\",\n\t\t\"I have an identical twin who is as different from me as any person could be.\",\n\t\t\"I want to lead one faction of the guild to a new position of dominance.\",\n\t\t\"I love spending time in the moss-covered building where I took part in my first reclamation mission.\",\n\t\t\"I found something in the sewer that must never come to light.\",\n\t\t\"I am forever grateful to the reclaimer who found me floating facedown in the sewer, moments from death.\"\n\t],\n\tflaw : [\n\t\t\"Death comes for us all, so you can't expect me to take care of someone who can't fight it off.\",\n\t\t\"I assume that anyone outside the Golgari looks down on me.\",\n\t\t\"I feel a need for revenge against those who enjoy the privilege of living above ground.\",\n\t\t\"I don't bother to couch my opinions in flattering words.\",\n\t\t\"I can't help but pocket any trinket or coin I come across, no matter how worthless.\",\n\t\t\"I'm convinced that I'm better and stronger than members of other guilds, isolated as they are from the realities of life and death.\"\n\t]\n};\nBackgroundFeatureList[\"undercity paths\"] = {\n\tdescription : \"I know hidden, underground pathways that I can use to bypass crowds, obstacles, and observation as I move through the city. I can lead a group to travel between two locations in the city twice as fast as normally. The paths of the undercity are haunted by dangers that rarely brave the light of the surface world, so my journey isn't guaranteed to be safe.\",\n\tsource : [[\"G\", 53]]\n};\n\nBackgroundList[\"gruul anarch\"] = {\n\tregExpSearch : /^(?=.*gruul)(?=.*anarch).*$/i,\n\tname : \"Gruul Anarch\",\n\tsource : [[\"G\", 60]],\n\tskills : [\"Animal Handling\", \"Athletics\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"produce flame\", \"compelled duel\", \"speak with animals\", \"thunderwave\", \"beast sense\", \"shatter\", \"conjure animals\", \"conjure barrage\", \"dominate beast\", \"stoneskin\", \"destructive wave\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Produce Flame, Compelled Duel, Speak with Animals, Thunderwave, Beast Sense, Shatter, Conjure Animals, Conjure Barrage, Dominate Beast, Stoneskin, and Destructive Wave.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Herbalism kit\", \"\", 3],\n\t\t[\"Skull of a boar\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Gruul insignia\", \"\", \"\"],\n\t\t[\"Hunting trap\", \"\", 25],\n\t\t[\"Beast-hide cloak\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Draconic, Giant, Goblin, or Sylvan\", 1]],\n\ttoolProfs : [\"Herbalism kit\"],\n\tfeature : \"Rubblebelt Refuge\",\n\ttrait : [\n\t\t\"Unlike people, the beasts of the wild are friends who won't stab me in the back.\",\n\t\t\"Go ahead and insult me\\u2014I dare you.\",\n\t\t\"I scorn those who can't survive away from the comforts of the city.\",\n\t\t\"Don't tell me I'm not allowed to do something.\",\n\t\t\"Laws are for people who are afraid to face their inner beasts.\",\n\t\t\"I smear the blood of my enemies over my skin.\",\n\t\t\"I was, in fact, raised by maaka.\",\n\t\t\"HarrRRAAGGHH! [I rarely form a coherent sentence and prefer to express myself by breaking things.]\"\n\t],\n\tideal : [\n\t\t[\"Clan\", \"Clan: My clan is all that really matters. (Any)\"],\n\t\t[\"Anarchy\", \"Anarchy: No person or law or custom can tell another what to do. (Chaotic)\"],\n\t\t[\"Nature\", \"Nature: We weren't born tame or domesticated, so we shouldn't have to live that way. (Neutral)\"],\n\t\t[\"Might\", \"Might: The strongest are meant to dominate the weak. (Evil)\"],\n\t\t[\"Rage\", \"Rage: AAAAAARRRRggggh! [To live is to feel and express the rage burning in your belly.] (Chaotic)\"],\n\t\t[\"Tradition\", \"Tradition: The Old Ways must be preserved and upheld. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I am determined that one day I will lead my clan\\u2014or a new one.\",\n\t\t\"I would give my life for my clan chieftain.\",\n\t\t\"The chieftain of another clan has a grudge against me.\",\n\t\t\"I am devoted to a sacred site in the midst of the rubblebelt.\",\n\t\t\"My weapon is made from the first raktusk I ever hunted.\",\n\t\t\"GrrrRRAAAAGGHH! [I will do anything to prove myself greater than my siblings or ancestors.]\"\n\t],\n\tflaw : [\n\t\t\"If you question my courage, I will never back down.\",\n\t\t\"HrrrGGGAAAARRuuuh! [My anger in battle led to the death of a loved one.]\",\n\t\t\"I'm as stubborn as a batterboar.\",\n\t\t\"I'm so convinced of my superiority over soft, civilized people that I'll take great risks to prove it.\",\n\t\t\"I'm easily manipulated by people I find attractive.\",\n\t\t\"I'm not actually all that angry.\"\n\t],\n\textra : [\n\t\t\"Select a Gruul Clan\",\n\t\t\"Burning Tree clan\",\n\t\t\"Ghor clan\",\n\t\t\"Scab clan\",\n\t\t\"Slitz clan\",\n\t\t\"Gravel Hide clan\",\n\t\t\"Zhur-Taa clan\",\n\t\t\"Minor or new clan\",\n\t\t\"Trog\"\n\t]\n};\nBackgroundFeatureList[\"rubblebelt refuge\"] = {\n\tdescription : \"I'm very familiar with areas of the city that most people shun: neighborhoods ruined by wurms, overgrown parks gone untended for decades, and the vast, long abandoned rubblebelts of broken terrain. There, I can find a suitable place for me and my allies to hide or rest, as well as food and fresh water for myself and up to five other people each day.\",\n\tsource : [[\"G\", 60]]\t\n};\n\nBackgroundList[\"izzet engineer\"] = {\n\tregExpSearch : /^(?=.*izzet)(?=.*engineer).*$/i,\n\tname : \"Izzet Engineer\",\n\tsource : [[\"G\", 66]],\n\tskills : [\"Arcana\", \"Investigation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"produce flame\", \"shocking grasp\", \"chaos bolt\", \"create or destroy water\", \"unseen servant\", \"heat metal\", \"rope trick\", \"call lightning\", \"elemental weapon\", \"glyph of warding\", \"conjure minor elementals\", \"divination\", \"otiluke's resilient sphere\", \"animate objects\", \"conjure elemental\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Produce Flame, Shocking Grasp, Chaos Bolt, Create or Destroy Water, Unseen Servant, Heat Metal, Rope Trick, Call Lightning, Elemental Weapon, Glyph of Warding, Conjure Minor Elementals, Divination, Otiluke's Resilient Sphere, Animate Objects, and Conjure Elemental.\"\n\t\t]\n\t},\n\tgold : 5,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Twisted remains of failed experiment\", \"\", \"\"],\n\t\t[\"Hammer\", \"\", 3],\n\t\t[\"Block and tackle\", \"\", 5]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Izzet insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Draconic, Goblin, or Vedalken\", 1]],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Urban Infrastructure\",\n\ttrait : [\n\t\t\"I have a hard time staying focused on ... oh, and my brain tends to jump from one ... did I mention focus?\",\n\t\t\"I get really excited about my ideas and I can't wait to talk about them and start putting them into practice and tinkering with them and I want to tell you about how exciting it all is!\",\n\t\t\"It's not magic\\u2014or anything, really\\u2014if you do it only halfway. Whatever I do, I give it all I've got.\",\n\t\t\"I do what my gut tells me.\",\n\t\t\"Life's an experiment, and I can't wait to see what happens.\",\n\t\t\"I pepper my speech with the incomprehensible jargon of my trade, like mizzium droplets inserted into a weird-field suspension.\",\n\t\t\"Great ideas are fine, but great results are what counts.\",\n\t\t\"If you can guess what I'm about to do, that means I've run out of imagination.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Creativity\", \"Creativity: Half the world's troubles come from stodgy thinking, stuck in the past. We need innovative solutions. (Chaotic)\"],\n\t\t[\"Discovery\", \"Discovery: Every experiment has the potential to reveal more secrets of the multiverse. (Any)\"],\n\t\t[\"Science\", \"Science: A rigorous application of logical principles and protocols will lead us toward progress more surely than any belief system. (Lawful)\"],\n\t\t[\"Fun\", \"Fun: I love my job! Despite the dangerous working conditions, there's nothing I'd rather do. (Chaotic)\"],\n\t\t[\"Power\", \"Power: Someday I'll find or create the magic that will make me the most powerful being in Ravnica. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I have dedicated my life to finding a solution to a scientific problem.\",\n\t\t\"I'll never forget the laboratory where I learned my skills, or the other attendants who learned alongside me.\",\n\t\t\"I'm convinced it was sabotage that destroyed my first laboratory and killed many of my friends, and I seek revenge against whoever did it.\",\n\t\t\"I have the schematics for an invention that I hope to build one day, once I have the necessary resources.\",\n\t\t\"A fellow student and I are racing to solve the same scientific puzzle.\",\n\t\t\"I would do anything the guildmaster told me to do.\"\n\t],\n\tflaw : [\n\t\t\"If there's a plan, I'll probably forget it. If I don't forget it, I'll probably ignore it.\",\n\t\t\"I get bored easily, and if nothing is happening I'll make something happen.\",\n\t\t\"Nothing is ever simple, and if it seems simple, I'll find a way to make it complicated.\",\n\t\t\"I tend to ignore sleep for days when I'm conducting research, often at the expense of my own health and safety.\",\n\t\t\"I'm convinced there's not a soul in Ravnica, except maybe the great Niv-Mizzet, who can match my boundless intellect.\",\n\t\t\"I'm incapable of admitting a flaw in my logic.\"\n\t]\n};\nBackgroundFeatureList[\"urban infrastructure\"] = {\n\tdescription : \"Although the Izzet League is infamous for mad inventions it is also involved in construction of the city's infrastructure. I have a basic knowledge of the structure of buildings and what is behind its walls. I can find their blueprints showing entry points, secret spaces, structural weaknesses, or secret spaces. My guild won't protect me if I use this knowledge unlawfully.\",\n\tsource : [[\"G\", 66]]\n};\n\nBackgroundList[\"orzhov representative\"] = {\n\tregExpSearch : /^(?=.*orzhov)(?=.*representative).*$/i,\n\tname : \"Orzhov Representative\",\n\tsource : [[\"G\", 72]],\n\tskills : [\"Intimidation\", \"Religion\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"friends\", \"guidance\", \"command\", \"illusory script\", \"enthrall\", \"ray of enfeeblement\", \"zone of truth\", \"bestow curse\", \"speak with dead\", \"spirit guardians\", \"blight\", \"death ward\", \"leomund's secret chest\", \"geas\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Friends, Guidance, Command, Illusory Script, Enthrall, Ray of Enfeeblement, Zone of Truth, Bestow Curse, Speak with Dead, Spirit Guardians, Blight, Death Ward, Leomund's Secret Chest, and Geas.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Orzhov insignia\", \"\", \"\"],\n\t\t[\"Vestments\", \"\", 4],\n\t\t[\"Chain of 10 golden coins\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Leverage\",\n\ttrait : [\n\t\t\"I am always willing to act in accordance with the financial incentive offered.\",\n\t\t\"Debts are never meant to be forgiven.\",\n\t\t\"I am accustomed to enjoying the finest pleasures money can buy.\",\n\t\t\"No one could doubt that I am a cut above the masses of pitiful peasants that infest the city.\",\n\t\t\"I can't stand to spend a zib more than necessary to purchase what I need.\",\n\t\t\"I hate it when people try to make light of a serious situation.\",\n\t\t\"I want to make sure everyone is aware of how wealthy, powerful, and important I am.\",\n\t\t\"I can't think of anything to look forward to.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Wealth\", \"Wealth: I will do whatever it takes to become as rich as the oligarchs. (Evil)\"],\n\t\t[\"Power\", \"Power: One day, I will be the one giving orders. (Evil)\"],\n\t\t[\"Prestige\", \"Prestige: I want to be admired, respected, feared, or even hated for my position and wealth. (Evil)\"],\n\t\t[\"Stability\", \"Stability: The economy functions best when chaos is kept under control and everyone knows their place. (Lawful)\"],\n\t\t[\"Eternity\", \"Eternity: I want to live forever\\u2014in the flesh as long as possible, and as a spirit afterward. (Any)\"]\n\t],\n\tbond : [\n\t\t\"The unbearable weight of my debt has driven me to desperation.\",\n\t\t\"I'm duty-bound to obey the dictates of an ancestor on the Ghost Council.\",\n\t\t\"I value my worldly goods more highly than my mortal life.\",\n\t\t\"An oligarch publicly humiliated me, and I will exact revenge on that whole family.\",\n\t\t\"My faith in the Obzedat never wavers.\",\n\t\t\"I want to prove myself more worthy than an older sibling and thereby ensure that I inherit a greater share of my parents' wealth.\"\n\t],\n\tflaw : [\n\t\t\"I hold a scandalous secret that could ruin my family forever\\u2014but could also earn me the favor of the Ghost Council.\",\n\t\t\"I'm convinced that everyone I know is plotting against me.\",\n\t\t\"I'll brave any risk if the monetary reward is great enough.\",\n\t\t\"I am convinced that I am far more important than anyone else is willing to acknowledge.\",\n\t\t\"I have little respect for anyone who isn't wealthy.\",\n\t\t\"I'll take any opportunity to steal from wealthier people, even for worthless trinkets.\"\n\t]\n};\nBackgroundFeatureList[\"leverage\"] = {\n\tdescription : \"I can exert leverage over one or more below me in the guild's hierarchy and demand their help as needs warrant. For example, deliver a message, arrange a ride, or clean up a bloody mess. As my status in the guild improves, I gain influence over more people of higher station. The DM decides if the demands are reasonable and if subordinates are available.\",\n\tsource : [[\"G\", 72]]\n};\n\nBackgroundList[\"rakdos cultist\"] = {\n\tregExpSearch : /^(?=.*rakdos)(?=.*cultist).*$/i,\n\tname : \"Rakdos Cultist\",\n\tsource : [[\"G\", 79]],\n\tskills : [\"Acrobatics\", \"Performance\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"vicious mockery\", \"burning hands\", \"dissonant whispers\", \"hellish rebuke\", \"crown of madness\", \"enthrall\", \"flaming sphere\", \"fear\", \"haste\", \"confusion\", \"wall of fire\", \"dominate person\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Vicious Mockery, Burning Hands, Dissonant Whispers, Hellish Rebuke, Crown of Madness, Enthrall, Flaming Sphere, Fear, Haste, Confusion, Wall of Fire, and Dominate Person.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Musical instrument\", \"\", \"\"],\n\t\t[\"Costume\", \"\", 4],\n\t\t[\"Hooded lantern of wrought iron\", \"\", 2],\n\t\t[\"Chain with spiked links, feet of\", 10, 1],\n\t\t[\"Tinderbox\", \"\", 1],\n\t\t[\"Torches\", 10, 1],\n\t\t[\"Sweet, red juice, bottle of\", \"\", 4]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Rakdos insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Abyssal or Giant\", 1]],\n\ttoolProfs : [[\"Musical instrument\", 1]],\n\tfeature : \"Fearsome Reputation\",\n\ttrait : [\n\t\t\"I revel in mayhem, the more destructive the better.\",\n\t\t\"When violence breaks out, I lose myself in rage, and it's sometimes hard to stop.\",\n\t\t\"Everything is funny to me, and the most hilarious and bloodiest things leave me cackling with sadistic glee.\",\n\t\t\"I derive genuine pleasure from the pain of others.\",\n\t\t\"I enjoy testing other people's patience.\",\n\t\t\"I can't stand it when things are predictable, so I like to add a little chaos to every situation.\",\n\t\t\"I throw my weight around to make sure I get my way.\",\n\t\t\"I enjoy breaking delicate works of art. And fingers, which are sort of the same.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Hedonism\", \"Hedonism: Death comes for everyone, so take as much pleasure as you can from every moment of life. (Neutral)\"],\n\t\t[\"Creativity\", \"Creativity: I strive to find more ways to express my art through pain\\u2014my own as well as others'. (Chaotic)\"],\n\t\t[\"Freedom\", \"Freedom: No one tells me what to do. (Chaotic)\"],\n\t\t[\"Equality\", \"Equality: I want to see Ravnica remade, with no guilds and no hierarchies. (Chaotic)\"],\n\t\t[\"Spectacle\", \"Spectacle: People are inspired by the greatness they see in art. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I have belonged to the same performance troupe for years, and these people mean everything to me.\",\n\t\t\"A blood witch told me I have a special destiny to fulfill, and I'm trying to figure out what it is.\",\n\t\t\"I'm secretly hoping that I can change the cult from the inside, using my influence to help rein in the wanton violence.\",\n\t\t\"I own something that Rakdos once touched (it's seared black at the spot), and I cherish it.\",\n\t\t\"I want to be better at my chosen form of performance than any other member of my troupe.\",\n\t\t\"I am devoted to Rakdos and live to impress him.\"\n\t],\n\tflaw : [\n\t\t\"My family is prominent in another guild. I enjoy my wild life, but I don't want to embarrass them.\",\n\t\t\"I couldn't hide my emotions and opinions even if I wanted to.\",\n\t\t\"I throw caution to the wind.\",\n\t\t\"I resent the rich and powerful.\",\n\t\t\"When I'm angry, I lash out in violence.\",\n\t\t\"There's no such thing as too much pleasure.\"\n\t],\n\textra : [\n\t\t\"Select a Performance Style\",\n\t\t\"Spikewheel acrobat\",\n\t\t\"Lampooning satirist\",\n\t\t\"Fire juggler\",\n\t\t\"Marionette puppeteer\",\n\t\t\"Pain artist\",\n\t\t\"Noise musician\",\n\t\t\"Nightmare clown\",\n\t\t\"Master of ceremonies\"\n\t]\n};\nBackgroundFeatureList[\"fearsome reputation\"] = {\n\tdescription : \"People recognize me as a member of the Cult of Rakdos, and they're careful not to draw my anger or ridicule. I can get away with minor criminal offenses, such as refusing to pay for food at a restaurant or breaking down a door at a local shop, if no legal authorities witness the crime. Most are too daunted by me to report my wrongdoing to the Azorius.\",\n\tsource : [[\"G\", 79]]\n};\n\nBackgroundList[\"selesnya initiate\"] = {\n\tregExpSearch : /^(?=.*selesnya)(?=.*initiate).*$/i,\n\tname : \"Selesnya Initiate\",\n\tsource : [[\"G\", 86]],\n\tskills : [\"Nature\", \"Persuasion\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"druidcraft\", \"friends\", \"aid\", \"animal friendship\", \"charm person\", \"animal messenger\", \"calm emotions\", \"warding bond\", \"plant growth\", \"speak with plants\", \"aura of life\", \"conjure minor elementals\", \"awaken\", \"commune with nature\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Druidcraft, Friends, Aid, Animal Friendship, Charm Person, Animal Messenger, Calm Emotions, Warding Bond, Plant Growth, Speak with Plants, Aura of Life, Conjure Minor Elementals, Awaken, and Commune with Nature.\"\n\t\t]\n\t},\n\tgold : 5,\n\tequipleft : [\n\t\t[\"Healer's kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Robes\", \"\", 4],\n\t\t[\"Selesnya insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Elvish, Loxodon, or Sylvan\", 1]],\n\ttoolProfs : [[\"Artisan's tools or musical instrument\", 1]],\n\tfeature : \"Conclave's Shelter\",\n\ttrait : [\n\t\t\"I never raise my voice or lose my temper.\",\n\t\t\"I feel the pains and joys of everyone around me, friend or foe.\",\n\t\t\"I would rather make a friend than thwart an enemy.\",\n\t\t\"I'm always straining to peer into another reality that seems to be just beyond my senses.\",\n\t\t\"I'm uneasy if I can't see plants growing or feel soil beneath my feet.\",\n\t\t\"Seeing illness or injury in any creature saddens me.\",\n\t\t\"I have much to be proud of, but I am still just one strand in the grand, interwoven tapestry of life.\",\n\t\t\"Nature offers rich and abundant metaphors for understanding the complexities of life.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Harmony\", \"Harmony: Nothing is more beautiful than voices and actions aligned in common purpose. (Good)\"],\n\t\t[\"Order\", \"Order: Like a well-pruned tree, society thrives when everything is kept in good order. (Lawful)\"],\n\t\t[\"Life\", \"Life: Preserving life and nature is always a worthwhile endeavor. (Good)\"],\n\t\t[\"Humility\", \"Humility: Ambition and pride are the roots of strife. (Good)\"],\n\t\t[\"Evangelism\", \"Evangelism: When all have joined the Selesnya Conclave, Ravnica will finally know peace. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I would give my life in the defense of the small enclave where I first encountered Mat'Selesnya.\",\n\t\t\"I love beasts and plants of all kinds, and am loath to harm them.\",\n\t\t\"A healer nursed me to recovery from a mortal illness.\",\n\t\t\"I'll sing the invitation of Mat'Selesnya with my dying breath.\",\n\t\t\"I cherish a leaf from Vitu-Ghazi that changes color with the seasons, even though it is no longer attached to the tree.\",\n\t\t\"Every member of the conclave is my kin, and I would fight for any one of them.\"\n\t],\n\tflaw : [\n\t\t\"I'm terrified of getting into a fight where my side is outnumbered.\",\n\t\t\"I assume that people mean well until they prove otherwise.\",\n\t\t\"I enjoy comfort and quiet, and prefer to avoid extra effort.\",\n\t\t\"I have a fierce temper that doesn't reflect the inner calm I seek.\",\n\t\t\"I'm convinced that everyone else in the conclave has a deeper connection to the Worldsoul than I do.\",\n\t\t\"I'm trying to atone for the life of crime I led before I joined the Selesnya, but I find it hard to give up my bad habits.\"\n\t]\n};\nBackgroundFeatureList[\"conclave's shelter\"] = {\n\tdescription : \"My companions and I can find a place to hide or rest in any Selesnya enclave in the city, unless I have proven to be a danger to them. The members of the enclave will shield me from anyone searching for me, but will not risk their lives. I can receive free healing and care at a Selesnya enclave, though I must provide material components needed for spells.\",\n\tsource : [[\"G\", 86]]\n};\n\nBackgroundList[\"simic scientist\"] = {\n\tregExpSearch : /^(?=.*simic)(?=.*scientist).*$/i,\n\tname : \"Simic Scientist\",\n\tsource : [[\"G\", 93]],\n\tskills : [\"Arcana\", \"Medicine\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"acid splash\", \"druidcraft\", \"detect poison and disease\", \"expeditious retreat\", \"jump\", \"alter self\", \"enhance ability\", \"enlarge/reduce\", \"gaseous form\", \"water breathing\", \"wind wall\", \"freedom of movement\", \"polymorph\", \"creation\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Acid Splash, Druidcraft, Detect Poison and Disease, Expeditious Retreat, Jump, Alter Self, Enhance Ability, Enlarge/reduce, Gaseous Form, Water Breathing, Wind Wall, Freedom of Movement, Polymorph, and Creation.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Book of research notes\", \"\", 5],\n\t\t[\"Squid ink, 1 ounce bottle of\", \"\", \"\"],\n\t\t[\"Ink pen\", \"\", \"\"],\n\t\t[\"Blubber oil, flasks of\", \"\", 1],\n\t\t[\"Acid, vials of\", \"\", 1],\n\t\t[\"Fish scales, vial of\", \"\", 1],\n\t\t[\"Seaweed, vial of\", \"\", 1],\n\t\t[\"Jellyfish stingers, vial of\", \"\", 1],\n\t\t[\"Unidentified slime, glass bottle of\", \"\", 4]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Simic Researcher\",\n\ttrait : [\n\t\t\"I can't wait to see what I become next!\",\n\t\t\"I am convinced that everything inclines toward constant improvement.\",\n\t\t\"I'm eager to explain every detail of my most intricate experiments and theories to anyone who shows the least bit of interest.\",\n\t\t\"I assume that everyone needs even the most basic concepts explained to them.\",\n\t\t\"I describe everything that happens as if it were going into my research notes (and it often is).\",\n\t\t\"I am insatiably curious about the seemingly infinite forms and adaptations of life.\",\n\t\t\"I can't resist prying into anything forbidden, since it must be terribly interesting.\",\n\t\t\"I employ a highly technical vocabulary to avoid imprecision and ambiguity in my communication.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Change\", \"Change: All life is meant to progress toward perfection, and our work is to hurry it along\\u2014no matter what must be upended along the way. (Chaotic)\"],\n\t\t[\"Knowledge\", \"Knowledge: Understanding the world is more important than what you do with your knowledge. (Neutral)\"],\n\t\t\"Greater Good. I want to reshape the world into higher forms of life so that all can enjoy evolution. (Good)\",\n\t\t[\"Logic\", \"Logic: It's foolish to let emotions and principles interfere with the conclusions of logic. (Lawful)\"],\n\t\t[\"Superiority\", \"Superiority: My vast intellect and strength are directed toward increasing my sway over others. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I helped create a krasis that I love like a pet and would carry with me everywhere ... except it's the size of a building, and it might eat me.\",\n\t\t\"In my laboratory, I discovered something that I think could eliminate half the life on Ravnica.\",\n\t\t\"The other researchers in my clade are my family\\u2014a big, eccentric family including members and parts of many species.\",\n\t\t\"The laboratory where I did my research contains everything that is precious to me.\",\n\t\t\"I will get revenge on the shortsighted fool who killed my precious krasis creation.\",\n\t\t\"Everything I do is an attempt to impress someone I love.\"\n\t],\n\tflaw : [\n\t\t\"I have a rather embarrassing mutation that I do everything I can to keep hidden.\",\n\t\t\"I'm more interested in taking notes on monstrous anatomy than in fighting monsters.\",\n\t\t\"Every social situation I'm in seems to lead to my asking rude personal questions.\",\n\t\t\"I'm supremely confident in my ability to adapt to any situation and handle any danger.\",\n\t\t\"I'll take any risk to earn recognition for my scientific brilliance.\",\n\t\t\"I have a tendency to take shortcuts in my research and any other tasks I have to complete.\"\n\t],\n\textra : [\n\t\t\"Select a Clade or Research\",\n\t\t\"Hull Clade: protection/durability\",\n\t\t\"Fin Clade: movement\",\n\t\t\"Gyre Clade: patterns/metamagic\",\n\t\t\"Guardian Project: guard monsters/super soldiers\",\n\t\t\"Crypsis Project: (counter)intelligence\",\n\t\t\"Independent research in a new area\"\n\t]\n};\nBackgroundFeatureList[\"simic researcher\"] = {\n\tdescription : \"I know where or from whom I can acquire scientific facts, usually from a Simic laboratory, or sometimes an Izzet facility, library, university, independent scholar, or creature. I might need to offer bribes, favors, or other incentives to induce people to reveal their secrets. The DM can rule that the knowledge is inaccessible place, can't be found, or requires a quest.\",\n\tsource : [[\"G\", 93]]\n};\n\n// Spells\nSpellsList[\"encode thoughts\"] = {\n\tname : \"Encode Thoughts\",\n\tclasses : [],\n\tsource : [[\"G\", 47]],\n\tlevel : 0,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"Self\",\n\tcomponents : \"S\",\n\tduration : \"Up to 8 h\",\n\tdescription : \"Make physical thought strand of memory or vice versa; works with detect thoughts \\u0026 modify memory\",\n\tdescriptionFull : \"Putting a finger to your head, you pull a memory, an idea, or a message from your mind and transform it into a tangible string of glowing energy called a thought strand, which persists for the duration or until you cast this spell again. The thought strand appears in an unoccupied space within 5 feet of you as a Tiny, weightless, semisolid object that can be held and carried like a ribbon. It is otherwise stationary.\" + \"\\n   \" + \"If you cast this spell while concentrating on a spell or an ability that allows you to read or manipulate the thoughts of others (such as detect thoughts or modify memory), you can transform the thoughts or memories you read, rather than your own, into a thought strand.\" + \"\\n   \" + \"Casting this spell while holding a thought strand allows you to instantly receive whatever memory, idea, or message the thought strand contains. (Casting detect thoughts on the strand has the same effect.)\"\n};\n// Magic Items\nvar GGtR_GuildKeyrune = {\n\tfeaturesArtificial: {\n\t\tname: \"Artificial\",\n\t\tdescription: \"The [THIS] is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the [THIS] takes the Dodge action and moves to avoid danger.\",\n\t},\n\tnotesSummon: {\n\t\tname: \"Summon\",\n\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a [TYPE]. It reverts back to a keyrune after [DURATION], if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t},\n\tcreateCreatureOptions: function(type, nameThis, duration, aTraits, aActions, aFeatures, aNotes, fCallback) {\n\t\tif (!CreatureList[type]) return false;\n\t\tvar obj = newObj(CreatureList[type]);\n\t\tobj.name = \"Keyrune \" + obj.name;\n\t\tif (nameThis) {\n\t\t\tif (isArray(nameThis)) {\n\t\t\t\tobj.nameThis = nameThis[0];\n\t\t\t\ttype = nameThis[0];\n\t\t\t\tobj.name = nameThis[1];\n\t\t\t} else {\n\t\t\t\tobj.nameThis = nameThis;\n\t\t\t}\n\t\t}\n\t\tdelete obj.nameAlt;\n\t\tobj.source.push([\"G\", 177]);\n\t\tobj.header = \"Keyrune\";\n\t\tobj.languages = \"Understands the keyrune owner's languages\";\n\t\t// traits\n\t\tif (aTraits) {\n\t\t\tif (!obj.traits) obj.traits = [];\n\t\t\tobj.traits = obj.traits.concat(aTraits);\n\t\t}\n\t\t// actions\n\t\tif (aActions) {\n\t\t\tif (!obj.actions) obj.actions = [];\n\t\t\tobj.actions = obj.actions.concat(aTraits);\n\t\t}\n\t\t// features\n\t\tif (!obj.features) obj.features = [];\n\t\tobj.features.push(GGtR_GuildKeyrune.featuresArtificial);\n\t\tif (aFeatures) obj.features = obj.features.concat(aFeatures);\n\t\t// notes\n\t\tif (!obj.notes) obj.notes = [];\n\t\tobj.notes.push({\n\t\t\tname: GGtR_GuildKeyrune.notesSummon.name,\n\t\t\tdescription: GGtR_GuildKeyrune.notesSummon.description.replace(\"[TYPE]\", type).replace(\"[DURATION]\", duration),\n\t\t});\n\t\tif (aNotes) obj.notes = obj.notes.concat(aNotes);\n\t\tif (fCallback) fCallback(obj);\n\t\treturn [obj];\n\t},\n}\nMagicItemsList[\"guild keyrune\"] = {\n\tname : \"Guild Keyrune\",\n\tsource : [[\"G\", 177]],\n\ttype : \"wondrous item\",\n\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a creature. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for some hours, until it has 0 HP, or I dismiss it as an action.\",\n\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a creature if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\tdescriptionFull : \"Associated with a particular guild, a guild keyrune is a ceremonial, stylized key, about 1 foot long, made from carved stone. Not a literal key, the item is a badge of authority that gives its bearer access to privileged places in its guild's headquarters and outposts. At the DM's discretion, a character might be given a keyrune upon attaining a renown score of 25 in their guild.\\n    When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the key rune transforms into a creature. If there isn't enough space for the creature, the keyrune doesn't transform. See the Monster Manual for the creature's stat block- the name of which is given in bold in the keyrune's description- unless you're directed to chapter 6 of this book instead.\\n    The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n    The creature exists for a duration specific to each keyrune. At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\tattunement : true,\n\taction : [[\"action\", \"\"]],\n\tchoices : [\"Azorius\", \"Boros\", \"Dimir\", \"Golgari\", \"Gruul\", \"Izzet\", \"Orzhov\", \"Rakdos\", \"Selesnya\", \"Simic\"],\n\t\"azorius\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word and have it transform into a giant eagle for 1 hour with which I can talk telepathically if within 1 mile. It is friendly to me and my allies and obeys my spoken commands. As an action, I can see and hear what it does. I can have it revert back as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a a giant eagle for 1 hour. While within 1 mile, I can communicate telepathically with it. It is friendly to me and my allies and obeys my spoken commands, otherwise using only the Dodge action. It reverts back to its keyrune form when it drops to 0 HP or if I touch it and speak the command word as an action. Once it does, it can't transform again for 36 hours. As an action, I can see/hear through its senses as if I had keen sight until the start of my next turn, but I can't use my own senses during that time.\",\n\t\tdescriptionFull : \"This keyrune is carved from white marble and lapis lazuli to resemble a noble bird of prey. It can become a giant eagle for up to 1 hour. While the transformed eagle is within 1 mile of you, you can communicate with it telepathically. As an action, you can see through the eagle's eyes and hear what it hears until the start of your next turn, and you gain the benefit of its keen sight. During this time, you are deaf and blind with regard to your own senses.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a giant eagle. If there isn't enough space for the eagle, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the eagle takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Azorius guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/azorius/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\taction: [[\"action\", \" (Shared Vision)\"]],\n\t\tcreaturesAdd: [[\"Keyrune Giant Eagle\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"giant eagle\", \"eagle\", \"1 hour\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the eagle is within 1 mile of its owner, they can communicate telepathically.\",\n\t\t}, {\n\t\t\tname: \"Shared Vision\",\n\t\t\tdescription: \"As an action, the owner can see through the eagle's eyes and hear what it hears until the start of their next turn, and gain the benefit of its keen sight. During this time, the owner is deaf and blind with regard to their own senses.\",\n\t\t}]),\n\t},\n\t\"boros\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word and place it on the ground to transforms into a human veteran. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 8 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a human veteran if there is enough space. The creature is friendly to me and my allies and gives tactical advice, but is easily revealed as an artificial human. It understands my languages and obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I dismiss it as an action by touching it and speaking the command word again. Once it does, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Carved from red sandstone with white granite elements to resemble a member of the Boros Legion, this keyrune can become a veteran (human) for up to 8 hours. In addition to fighting on your behalf, this veteran cheerfully offers tactical advice, which is usually sound. Anyone who talks with the transformed keyrune or examines it closely can easily recognize that it is an artificial human.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a veteran (human). If there isn't enough space for the veteran, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Boros guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/boros/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd : [[\"Keyrune Veteran\", true]],\n\t\tcreatureOptions : [{\n\t\t\tname : \"Keyrune Veteran\",\n\t\t\tsource : [[\"SRD\", 403], [\"MM\", 350], [\"G\", 177]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Humanoid\",\n\t\t\talignment : \"Any\",\n\t\t\tac : 17,\n\t\t\thp : 58,\n\t\t\thd : [9, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [16, 13, 14, 10, 11, 10],\n\t\t\tskills : {\n\t\t\t\t\"athletics\" : 5,\n\t\t\t\t\"perception\" : 2,\n\t\t\t},\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tpassivePerception : 12,\n\t\t\tchallengeRating : \"3\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Longsword\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 8, \"slashing\"],\n\t\t\t\trange : \"Melee\",\n\t\t\t\tdescription : \"Versatile (1d10); Two attacks as an action\",\n\t\t\t}, {\n\t\t\t\tname : \"Shortsword\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 6, \"piercing\"],\n\t\t\t\trange : \"Melee\",\n\t\t\t\tdescription : \"Finesse, light\",\n\t\t\t}, {\n\t\t\t\tname : \"Heavy Crossbow\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 12, \"piercing\"],\n\t\t\t\trange : \"100/400 ft\",\n\t\t\t\tdescription : \"Ammunition, heavy, loading, two-handed\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The veteran is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the veteran takes the Dodge action and moves to avoid danger. Anyone who talks with the transformed keyrune or examines it closely can easily recognize that it is an artificial human.\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the veteran can make two Longsword attacks and, if it has a shortsword drawn, one Shortsword attack.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Tactician\",\n\t\t\t\tdescription : \"In addition to fighting on its owner's behalf, the veteran cheerfully offers tactical advice, which is usually sound.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a veteran. It reverts back to a keyrune after 8 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"dimir\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transform into an intellect devourer. It is friendly to me and my allies. It lasts for 24 hours, until it has 0 HP, or I dismiss it as an action. I can command it to pursue only a single mission each times it transforms and it returns to me at the end of it.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into an intellect devourer if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It lasts for 24 hours, during which time it pursues a single mission set by me, like information gathering, returning to me afterwards to report and transform back to the keyrune. It also reverts back when it drops to 0 HP or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again for 36 hours.\",\n\t\tdescriptionFull : \"This keyrune, carved from black stone accented with steel, resembles a stylized horror. On command, it transforms into an intellect devourer that resembles the Dimir guild symbol, with six bladelike legs. The creature exists for up to 24 hours. During that time, it pursues only a single mission you give it\\u2014usually an assignment to take over someone's body, either to impersonate that person for a brief time or to extract secrets from their mind. When the mission is complete, the creature returns to you, reports its success, and reverts to its keyrune form.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a intellect devourer. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Dimir guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/dimir/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd : [[\"Keyrune Intellect Devourer\", true]],\n\t\tcreatureOptions : [{\n\t\t\tname : \"Keyrune Intellect Devourer\",\n\t\t\tsource : [[\"MM\", 191], [\"G\", 177]],\n\t\t\tsize : 5,\n\t\t\ttype : \"Aberration\",\n\t\t\talignment : \"Lawful Evil\",\n\t\t\tac : 12,\n\t\t\thp : 21,\n\t\t\thd : [6, 4],\n\t\t\tspeed : \"40 ft\",\n\t\t\tscores : [6, 14, 13, 12, 11, 10],\n\t\t\tskills : {\n\t\t\t\t\"perception\" : 2,\n\t\t\t\t\"stealth\" : 4,\n\t\t\t},\n\t\t\tdamage_resistances : \"bludgeoning, piercing, and slashing from nonmagical weapons\",\n\t\t\tcondition_immunities : \"blinded\",\n\t\t\tlanguages: \"Understands the keyrune owner's languages, Telepathy 60 ft\",\n\t\t\tsenses: \"Blindsight 60 ft (blind beyond this radius), Detect Intelligence\",\n\t\t\tpassivePerception : 12,\n\t\t\tchallengeRating : \"2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 4, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"Claws and Devour Intellect as an action\",\n\t\t\t}, {\n\t\t\t\tname : \"Devour Intellect\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 10, \"psychic\"],\n\t\t\t\trange : \"10 ft\",\n\t\t\t\tdescription : \"Int save to avoid; Failure: if target's Int score \\u2264 3d6, it gains Int 0 and is stunned while at Int 0\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Detect Intelligence\",\n\t\t\t\tdescription: \"The devourer magically senses the location of creatures within 300 ft that have an Int score of 3 or higher, regardless of barriers.\",\n\t\t\t}, {\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The devourer is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the devourer takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the devourer can make one claws attack and uses Devour Intellect.\",\n\t\t\t}, {\n\t\t\t\tname : \"Devour Intellect\",\n\t\t\t\tdescription : \"As an action, the devourer targets one creature with a brain that it can see within 10 ft. The target must make an Intelligence save against this magic or take 2d10 psychic damage and if its Intelligence score is lower or equal to a roll of 3d6, that score is reduced to 0 and the target is stunned while its Int is 0.\",\n\t\t\t}, {\n\t\t\t\tname : \"Body Thief\",\n\t\t\t\tdescription : \"As an action, the devourer can initiate an Int contest with an incapacitated humanoid within 5 ft. If it wins, the devourer magically consumes the target's brain, teleports into its skull, and takes control of its body. While inside, the intellect has total cover. The devourer retains its Int, Wis, and Cha, as well as its Telepathy and traits. It otherwise adopts the target's statistics and knows everything it knew, including spells and languages.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname : \"Body Thief (continued)\",\n\t\t\t\tdescription : \"If the host body dies, the intellect devourer must leave it. The intellect devourer is also forced out if the target regains its devoured brain by means of Wish. By spending 5 ft of its movement, the intellect devourer can voluntarily leave the body, teleporting to the nearest unoccupied space within 5 ft. The body then dies, unless its brain is restored within 1 round. Protection from Evil and Good prevents the intellect devourer from consuming a brain, and when cast on a controlled body, it drives the intellect devourer out.\",\n\t\t\t}, {\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a veteran. It reverts back to a keyrune after 24 hours, if it drops to 0 HP, if the keyrune's owner uses an action to touch it and speak the command word, or if it finishes it mission.\\n   It pursues only a single mission given by its owner. This is usually an assignment to take over someone's body, either to impersonate that person for a brief time or to extract secrets from their mind. When the mission is complete, the creature returns to its owner, reports its success, and reverts to its keyrune form.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"golgari\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a giant scorpion with which I can talk telepathically if in 60 ft. It is friendly to me and my allies and obeys my commands. It reverts back after 6 hours, if it drops to 0 HP, or I touch it and speak its command word as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a giant scorpion if there is enough space. While within 60 ft of it, I can communicate with it telepathically. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Made from deep green jade with black veins, this keyrune has an insectile shape. It can transform into a giant scorpion for up to 6 hours. The scorpion has an Intelligence of 4 and can communicate with you telepathically while it is within 60 feet of you, though its messages are largely limited to describing the passage of potential prey.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a giant scorpion. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Golgari guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/golgari/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Giant Scorpion\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"giant scorpion\", \"scorpion\", \"6 hours\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the scorpion is within 60 ft of its owner, they can communicate telepathically.\",\n\t\t}], function(obj) { obj.scores[3] = 4; }),\n\t},\n\t\"gruul\" : {\n\t\ttype : \"wondrous item\",\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a ceratok (rhinoceros stats). It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 1 hour, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a ceratok (rhinoceros stats) if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 1 hour, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This crude keyrune is cobbled together from bits of rubble, broken glass, bone, and animal hair. One end resembles a horned beast. On command, the keyrune transforms into a ceratok, a horned creature much like a rhinoceros (and with the same statistics). It remains in its ceratok form for 1 hour.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a ceratok. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Gruul guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/gruul/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Ceratok\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"rhinoceros\", [\"ceratok\", \"Keyrune Ceratok\"], \"1 hour\"),\n\t},\n\t\"izzet\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a galvanice weird. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 3 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a galvanice weird if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 3 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Formed of carved and polished red and blue stone, the keyrune includes bits of cable and wire. One end resembles a humanlike head, suggesting the jagged elemental form of the galvanice weird that it can become for a duration of 3 hours. In this form, it will serve you as a bodyguard, lift and carry things for you, act as a test subject for your experiments, or aid you in any other way that its capabilities allow.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a galvanice weird. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Izzet guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/izzet/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Galvanice Weird\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Galvanice Weird\",\n\t\t\tsource : [[\"G\", 209]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Elemental\",\n\t\t\talignment : \"Chaotic Neutral\",\n\t\t\tac : 12,\n\t\t\thp : 22,\n\t\t\thd : [3, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [14, 10, 17, 3, 10, 5],\n\t\t\tdamage_resistances : \"cold, lightning; bludgeoning, piercing, and slashing from nonmagical attacks\",\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious\",\n\t\t\tsenses : \"Darkvision 60 ft\",\n\t\t\tpassivePerception : 10,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Slam\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"+2d4 Lightning damage and target must make Con save, see below\",\n\t\t\t\ttooltip : \"If the target is a creature, it must succeed on a DC 13 Constitution saving throw or lose the ability to use reactions until the start of the weird's next turn.\",\n\t\t\t}, {\n\t\t\t\tname : \"With Slam Hit\",\n\t\t\t\tability : 3,\n\t\t\t\tdamage : [\"Con save\", \"\", \"No Reactions\"],\n\t\t\t\trange : \"Creature hit\",\n\t\t\t\tdescription : \"If failed, target can't use reactions until the start of the weird's next turn\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t}, {\n\t\t\t\tname : \"Death Burst\",\n\t\t\t\tability : 3,\n\t\t\t\tdamage : [2, 6, \"lightning\"],\n\t\t\t\trange : \"10-ft radius\",\n\t\t\t\tdescription : \"Only when the weird dies; Dex save to halve damage\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t\ttooltip : \"When the weird dies, it explodes in a burst of ice and lightning. Each creature within 10 ft of the exploding weird must make a DC 13 Dexterity saving throw, taking 2d6 lightning damage on a failed save, or half as much damage on a successful one.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Death Burst\",\n\t\t\t\tdescription : \"When the weird dies, it explodes in a burst of ice and lightning. Each creature within 10 ft of the exploding weird must make a Dexterity saving throw, taking 2d6 lightning damage on a failed save, or half as much damage on a successful one.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The weird is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the weird takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a galvanice weird. It reverts back to a keyrune after 3 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\\n   In this form, it will serve as a bodyguard, lift and carry things, act as a test subject for experiments, or aid its owner in any other way that its capabilities allow.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"orzhov\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a winged thrull. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 2 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a winged thrull if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 2 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This keyrune is carved from white marble with veins of black. The end is shaped like a thrull's head, with a gold faceplate affixed. On command, the keyrune transforms into a winged thrull for up to 2 hours. If you don't come from an Orzhov oligarch family, it serves you grudgingly, clownishly aping your movements and mannerisms while carrying out your orders.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a winged thrull. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Orzhov guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/orzhov/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Winged Thrull\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Winged Thrull\",\n\t\t\tsource : [[\"G\", 221]],\n\t\t\tsize : 4,\n\t\t\ttype : \"Construct\",\n\t\t\talignment : \"Unaligned\",\n\t\t\tac : 12,\n\t\t\thp : 31,\n\t\t\thd : [7, 6],\n\t\t\tspeed : \"30 ft, fly 30 ft\",\n\t\t\tscores : [9, 15, 12, 8, 9, 8],\n\t\t\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"exhaustion, poisoned\",\n\t\t\tsenses : \"Darkvision 60 ft\",\n\t\t\tpassivePerception : 9,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1/2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 4, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Rock\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\t\t\trange : \"20/60 ft\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Self-Sacrifice\",\n\t\t\t\tdescription : \"As a reaction when a creature within 5 ft of the thrull is hit by an attack, the thrull can swap places with that creature and be hit by the attack instead.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The thrull is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the thrull takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a winged thrull. It reverts back to a keyrune after 2 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\\n   If the onwer doesn't come from an Orzhov oligarch family, the thrull serves them grudgingly, clownishly aping their movements and mannerisms while carrying out their orders.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"rakdos\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a cackler. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 1 hour, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a cackler if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 1 hour, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This dark granite keyrune is marbled with scarlet veins and carved with the leering visage of a mischievous demon. When activated, it transforms into a cackler for up to 1 hour.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a cackler. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Rakdos guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/rakdos/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Cackler\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Cackler\",\n\t\t\tsource : [[\"G\", 195]],\n\t\t\tsize : 4,\n\t\t\ttype : \"Fiend\",\n\t\t\tsubtype : \"Demon\",\n\t\t\talignment : \"Chaotic Evil\",\n\t\t\tac : 15,\n\t\t\thp : 10,\n\t\t\thd : [3, 6],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [9, 16, 11, 11, 7, 12],\n\t\t\tskills : {\n\t\t\t\t\"perception\" : 2,\n\t\t\t\t\"stealth\" : 4,\n\t\t\t},\n\t\t\tdamage_resistances : \"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical attacks\",\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"poisoned\",\n\t\t\tsenses : \"Darkvision 120 ft\",\n\t\t\tpassivePerception : 9,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1/2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Bite\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 4, \"piercing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Spiked Chain\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 6, \"slashing\"],\n\t\t\t\trange : \"Melee (10 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Last Laugh\",\n\t\t\t\tability : 6,\n\t\t\t\tdamage : [1, 4, \"psychic\"],\n\t\t\t\trange : \"10-ft radius\",\n\t\t\t\tdescription : \"Only when the cackler dies; Wis save to avoid\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t\ttooltip : \"When the cackler dies, it releases a dying laugh that scars the minds of other nearby creatures. Each creature within 10 ft of the cackler must succeed on a DC 11 Wisdom saving throw or take 1d4 psychic damage.\",\n\t\t\t}, {\n\t\t\t\tname : \"Fire Bolt\",\n\t\t\t\tability : 6,\n\t\t\t\tdamage : [1, 10, \"fire\"],\n\t\t\t\trange : \"120 ft\",\n\t\t\t\tdescription : \"Unattended flammable objects ignite\",\n\t\t\t\tabilitytodamage : false,\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Innate Spellcasting\",\n\t\t\t\tdescription : \"The cackler's innate spellcasting ability is Charisma (spell save DC 11, +3 to hit with spell attacks). The cackler can innately cast, without requiring material components, Fire Bolt (at will) and Tasha's Hideous Laughter (1/day).\",\n\t\t\t}, {\n\t\t\t\tname : \"Last Laugh\",\n\t\t\t\tdescription : \"When the cackler dies, it releases a dying laugh that scars the minds of other nearby creatures. Each creature within 10 ft of the cackler must succeed on a Wisdom saving throw or take 1d4 psychic damage.\",\n\t\t\t}, {\n\t\t\t\tname : \"Mimicry\",\n\t\t\t\tdescription : \"The cackler can mimic any sounds it has heard, including voices. A creature that hears the sounds can tell they are imitations with a successful DC 11 Wisdom (Insight) check.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The cackler is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the cackler takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a cackler. It reverts back to a keyrune after 1 hour, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"selesnya\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a wolf with Int 6 with which I can talk telepathically if within 1 mile. It is friendly to me and my allies. It obeys my commands, but only uses the Dodge action otherwise. It lasts for 8 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a wolf with Intelligence 6 if there is enough space. The creature is friendly to me and my allies, understands Elvish and Sylvan (but can't speak them), and obeys my commands. While within 1 mile, we can communicate telepathically. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 8 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Carved from white and green marble in the shape of a wolf's head, this keyrune transforms into a dire wolf. The wolf persists for 8 hours. Its Intelligence is 6, and it understands Elvish and Sylvan but can't speak those languages. While it is within 1 mile of you, you can communicate with each other telepathically.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a dire wolf. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Selesnya guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/selesnya/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Dire Wolf\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"dire wolf\", \"wolf\", \"8 hours\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the wolf is within 1 mile of its owner, they can communicate telepathically.\",\n\t\t}], function(obj) {\n\t\t\tobj.scores[3] = 6;\n\t\t\tobj.languages = \"Understands the keyrune owner's languages, Elvish, and Sylvan, but can't speak\";\n\t\t}),\n\t},\n\t\"simic\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a krasis (cat. 2, Grabber and Stabilizing Legs). It is friendly to me and my allies. It obeys my commands, taking only the Dodge action if not commanded otherwise. It lasts for 5 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 5 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This keyrune is assembled from coral, mother-of-pearl, and chrome and adorned with the spirals and curves characteristic of Simic ornamentation. The head resembles the shell of a sea creature. On command, the keyrune turns into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations. The transformation lasts for up to 5 hours.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Simic guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/simic/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Krasis\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Krasis\",\n\t\t\tsource : [[\"G\", 210]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Monstrosity\",\n\t\t\talignment : \"Unaligned\",\n\t\t\tac : 15,\n\t\t\thp : 19,\n\t\t\thd : [3, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [16, 15, 14, 2, 13, 8],\n\t\t\tpassivePerception : 11,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Bite\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 10, \"piercing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"One bite and one claws attack as an Attack action\",\n\t\t\t}, {\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 8, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"One claws and one bite attack as an Attack action; Target is grappled (escape DC 13)\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the krasis can make one Bite and one Claws attack.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Amphibious\",\n\t\t\t\tdescription : \"The krasis can breathe air and water.\",\n\t\t\t}, {\n\t\t\t\tname : \"Grabber\",\n\t\t\t\tdescription : \"When the krasis hits a creature with its claws, the target is grappled (escape DC 13) by a specialized grasping appendage on the krasis. It can have only one creature grappled in this way at a time.\",\n\t\t\t}, {\n\t\t\t\tname : \"Stabilizing Legs\",\n\t\t\t\tdescription : \"The krasis has several crablike legs. As a result, it has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The krasis is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the krasis takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a category 1 krasis that has the Grabber and Stabilizing Legs adaptations. It reverts back to a keyrune after 5 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t}\n}\nMagicItemsList[\"guild signet\"] = {\n\tname : \"Guild Signet\",\n\tsource : [[\"G\", 178]],\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This signet ring bears a symbol of its associated guild. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast the spell within (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\tdescriptionFull : \"This ring, adorned with the symbol of a guild, allows you to cast one spell closely associated with that guild, as shown in the table below. A guild signet is sometimes awarded to a guild member whose renown score in that guild is 5 or higher, as a reward for performing special services for the guild. Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\\n   A signet has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, you can expend 1 charge to cast the associated spell (save DC 13).\\n\\n\" +\n\ttoUni(\"Guild \\tAssociated Spell\") +\n\t\"\\nAzorius\\tensnaring strike\" +\n\t\"\\nBoros\\theroism\" +\n\t\"\\nDimir\\tdisguise self\" +\n\t\"\\nGolgari\\tentangle\" +\n\t\"\\nGruul\\tcompelled duel\" +\n\t\"\\nlzzet\\tchaos bolt\" +\n\t\"\\nOrzhov\\tcommand\" +\n\t\"\\nRakdos\\thellish rebuke\" +\n\t\"\\nSelesnya\\tcharm person\" +\n\t\"\\nSimic\\texpeditious retreat\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tchoices : [\"Azorius\", \"Boros\", \"Dimir\", \"Golgari\", \"Gruul\", \"Izzet\", \"Orzhov\", \"Rakdos\", \"Selesnya\", \"Simic\"],\n\t\"azorius\" : {\n\t\tdescription : \"This signet ring bears a symbol of Azorius. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Ensnaring Strike (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"ensnaring strike\"],\n\t\t\tselection : [\"ensnaring strike\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"boros\" : {\n\t\tdescription : \"This signet ring bears a symbol of Boros. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Heroism (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"heroism\"],\n\t\t\tselection : [\"heroism\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"dimir\" : {\n\t\tdescription : \"This signet ring bears a symbol of Dimir. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Disguise Self (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"disguise self\"],\n\t\t\tselection : [\"disguise self\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"golgari\" : {\n\t\tdescription : \"This signet ring bears a symbol of Golgari. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Entangle (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"entangle\"],\n\t\t\tselection : [\"entangle\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"gruul\" : {\n\t\tdescription : \"This signet ring bears a symbol of Gruul. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Compelled Duel (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"compelled duel\"],\n\t\t\tselection : [\"compelled duel\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"izzet\" : {\n\t\tdescription : \"This signet ring bears a symbol of lzzet. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Chaos Bolt (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"chaos bolt\"],\n\t\t\tselection : [\"chaos bolt\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"orzhov\" : {\n\t\tdescription : \"This signet ring bears a symbol of Orzhov. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Command (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"command\"],\n\t\t\tselection : [\"command\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"rakdos\" : {\n\t\tdescription : \"This signet ring bears a symbol of Rakdos. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Hellish Rebuke (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"hellish rebuke\"],\n\t\t\tselection : [\"hellish rebuke\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"selesnya\" : {\n\t\tdescription : \"This signet ring bears a symbol of Selesnya. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Charm Person (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"charm person\"],\n\t\t\tselection : [\"charm person\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"simic\" : {\n\t\tdescription : \"This signet ring bears a symbol of Simic. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Expeditious Retreat (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"expeditious retreat\"],\n\t\t\tselection : [\"expeditious retreat\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t}\n}\nMagicItemsList[\"illusionist's bracers\"] = {\n\tname : \"Illusionist's Bracers\",\n\tsource : [[\"G\", 178]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While wearing the bracers, whenever I cast a cantrip, I can use a bonus action on the same turn to cast that cantrip a second time.\",\n\tdescriptionFull : \"A powerful illusionist of House Dimir originally developed these bracers, which enabled her to create multiple minor illusions at once. The bracers' power, though, extends far beyond illusions.\\n   While wearing the bracers, whenever you cast a cantrip, you can use a bonus action on the same turn to cast that cantrip a second time.\",\n\tweight : 1,\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\taction : [[\"bonus action\", \" (with cantrip)\"]]\n}\nMagicItemsList[\"mizzium apparatus\"] = {\n\tname : \"Mizzium Apparatus\",\n\tsource : [[\"G\", 179]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"I can use this harness as an arcane focus and to attempt to cast a spells that I do not know or have prepared but is on my class' spell list. This requires an Int (Arcana) check DC 10 + twice the spell slot level and components and a spell slot as appropriate for the spell. On a failure, I cast a random spell, see Notes page.\",\n\tdescriptionLong : \"This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness. I can use it as an arcane focus. In addition, I can use it to attempt to cast a spell that I do not know or have prepared but is on my class' spell list. I use components and a spell slot as appropriate for the spell as normal, but I must succeed on an Intelligence (Arcana) check DC 10 + twice the spell slot level. On a failure, I cast a random spell, see Notes page. The DC for cantrips is 10, and on a failure nothing happens.\",\n\tdescriptionFull : \"Innovation is a dangerous pursuit, at least the way the mages of the Izzet League engage in it. As protection against the risk of an experiment going awry, they have developed a device to help channel and control their magic. This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness. The item weighs 8 pounds.\\n   While you are wearing the mizzium apparatus, you can use it as an arcane focus. In addition, you can attempt to cast a spell that you do not know or have prepared. The spell you choose must be on your class's spell list and of a level for which you have a spell slot, and you must provide the spell's components.\\n   You expend a spell slot to cast the spell as normal, but before resolving it you must make an Intelligence (Arcana) check. The DC is 10 + twice the level of the spell slot you expend to cast the spell.\\n   On a successful check, you cast the spell as normal, using your spell save DC and spellcasting ability modifier. On a failed check, you cast a different spell from the one you intended. Randomly determine the spell you cast by rolling on the table for the level of the spell slot you expended. If the slot is 6th level or higher, roll on the table for 5th-level spells.\\n   If you try to cast a cantrip you don't know, the DC for the Intelligence (Arcana) check is 10, and on a failed check, there is no effect.\\n\\n\" + [\n\t\ttoUni(\"d6\\t1st-level spell\"),\n\t\t\" 1\\tBurning Hands\",\n\t\t\" 2\\tChaos Bolt\",\n\t\t\" 3\\tColor Spray\",\n\t\t\" 4\\tFaerie Fire\",\n\t\t\" 5\\tFog Cloud\",\n\t\t\" 6\\tThunderwave\\n\",\n\t\ttoUni(\"d6\\t2nd-level spell\"),\n\t\t\" 1\\tBlur\",\n\t\t\" 2\\tGust of Wind\",\n\t\t\" 3\\tHeat Metal\",\n\t\t\" 4\\tMelf's Acid Arrow\",\n\t\t\" 5\\tScorching Ray\",\n\t\t\" 6\\tShatter\\n\",\n\t\ttoUni(\"d6\\t3rd-level spell\"),\n\t\t\" 1\\tFear\",\n\t\t\" 2\\tFeign Death\",\n\t\t\" 3\\tFireball\",\n\t\t\" 4\\tGaseous Form\",\n\t\t\" 5\\tSleet Storm\",\n\t\t\" 6\\tStinking Cloud\\n\",\n\t\ttoUni(\"d4\\t4th-level spell\"),\n\t\t\" 1\\tConfusion\",\n\t\t\" 2\\tConjure Minor Elementals\",\n\t\t\" 3\\tEvard's Black Tentacles\",\n\t\t\" 4\\tIce Storm\\n\",\n\t\ttoUni(\"d4\\t5th-level spell\"),\n\t\t\" 1\\tAnimate Objects\",\n\t\t\" 2\\tCloudkill\",\n\t\t\" 3\\tCone of Cold\",\n\t\t\" 4\\tFlame Strike\"\n\t].join(\"\\n\"),\n\tweight : 8,\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a sorcerer, warlock, or wizard\",\n\tprereqeval : function(v) { return classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\n\ttoNotesPage : [{\n\t\tname : \"Random Spells\",\n\t\tnote : [\n\t\t\t\"This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness.\",\n\t\t\t\"While I am wearing the mizzium apparatus, I can use it as an arcane focus. In addition, I can attempt to cast a spell that I do not know or have prepared. The spell I choose must be on my class's spell list and of a level for which I have a spell slot, and I must provide the spell's components.\",\n\t\t\t\"I expend a spell slot to cast the spell as normal, but before resolving it I must make an Intelligence (Arcana) check. The DC is 10 + twice the level of the spell slot I expend to cast the spell. On a successful check, I cast the spell as normal, using my spell save DC and spellcasting ability modifier. On a failed check, I cast a different spell from the one I intended, randomly determining the spell I cast by rolling on the table for the level of the spell slot expended. If the slot is 6th level or higher, I roll on the table for 5th-level spells. If I try to cast a cantrip I don't know, the DC for the Intelligence (Arcana) check is 10, and on a failed check, there is no effect.\\n\",\n\t\t\t\"1D6\\t1ST-LEVEL SPELL\\t1D6\\t2ND-LEVEL SPELL\",\n\t\t\t\"  1\\tBurning Hands \\t  1\\tBlur\",\n\t\t\t\"  2\\tChaos Bolt    \\t  2\\tGust of Wind\",\n\t\t\t\"  3\\tColor Spray   \\t  3\\tHeat Metal\",\n\t\t\t\"  4\\tFaerie Fire   \\t  4\\tMelf's Acid Arrow\",\n\t\t\t\"  5\\tFog Cloud     \\t  5\\tScorching Ray\",\n\t\t\t\"  6\\tThunderwave   \\t  6\\tShatter\\n\",\n\t\t\t\"1D6\\t3RD-LEVEL SPELL\",\n\t\t\t\"  1\\tFear\",\n\t\t\t\"  2\\tFeign Death\",\n\t\t\t\"  3\\tFireball\",\n\t\t\t\"  4\\tGaseous Form\",\n\t\t\t\"  5\\tSleet Storm\",\n\t\t\t\"  6\\tStinking Cloud\\n\",\n\t\t\t\"1D4\\t4TH-LEVEL SPELL\\t1D4\\t5TH-LEVEL SPELL (AND HIGHER)\",\n\t\t\t\"  1\\tConfusion\\t\\t  1\\tAnimate Objects\",\n\t\t\t\"  2\\tConjure Minor Elem.\\t  2\\tCloudkill\",\n\t\t\t\"  3\\tEvard's Black Tentacles\\t  3\\tCone of Cold\",\n\t\t\t\"  4\\tIce Storm\\t\\t  4\\tFlame Strike\"\n\t\t]\n\t}]\n}\nMagicItemsList[\"mizzium armor\"] = {\n\tname : \"Mizzium Armor\",\n\tnameTest : \"Mizzium\",\n\tsource : [[\"G\", 179]],\n\ttype : \"armor (medium or heavy)\",\n\trarity : \"rare\",\n\tdescription : \"This armor is reinforced with a magically enhanced metal alloy called mizzium. While I'm wearing it, any critical hit against me becomes a normal hit. In addition, when I'm subjected to a magical effect that allows me to make a Str or Con save to take only half damage, I instead take no damage if I succeed on it.\",\n\tdescriptionFull : \"This suit of armor is reinforced with a magically enhanced metal alloy called mizzium, which is made in Izzet foundries. While you're wearing the armor, any critical hit against you becomes a normal hit. In addition, when you are subjected to a magical effect that allows you to make a Strength or Constitution saving throw to take only half damage, you instead take no damage if you succeed on the saving throw.\",\n\tsavetxt : { text : [\"No damage on success Str or Con save for half damage\"] },\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !(/medium|heavy/i).test(inObj.type) || (/hide/i).test(inObj.name);\n\t\t},\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\n\t}\n}\nMagicItemsList[\"mizzium mortar\"] = {\n\tname : \"Mizzium Mortar\",\n\tsource : [[\"G\", 179]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This 4-ft-long, 6-inch-diameter tube has 4 charges, regaining 1d4 at dawn. As an action, I can expend 1 charge to have all in a 30-ft cone take 5d4 fire damage. As an action, I can expend 3 charges to have all in a 20-ft radius, 40-ft high cylinder in 60 ft take 5d8 fire damage. For both effects DC 15 Dex save halves.\",\n\tdescriptionLong : \"This 4-ft-long, 6-inch-diameter mizzium tube has 4 charges, regaining 1d4 expended charges at dawn. The end that's pointed toward a target is open, and a glowing ball of molten metal can be seen at the other end as long as the mortar has at least 1 charge remaining. As an action, I can expend 1 charge to create a spray of molten mizzium in a 30-ft cone. All within the cone take 5d4 fire damage, DC 15 Dexterity saving throw halves. As an action, I can expend 3 charges to create a 20-ft radius, 40-ft high cylinder within 60 ft of me that deals 5d8 fire damage to all within, DC 15 Dexterity saving throw halves.\",\n\tdescriptionFull : \"This short tube, about 2 feet long and 6 inches in diameter, is made from mizzium, a magically enhanced metal alloy forged by the Izzet League. The end that's pointed toward a target is open, and a glowing ball of molten metal can be seen at the other end as long as the mortar has at least 1 charge remaining.\\n   The mortar has 4 charges for the following properties. It regains 1d4 expended charges daily at dawn.\\n   \" + toUni(\"Molten Spray\") + \". You can expend 1 charge as an action to loose a 30-foot cone of molten mizzium. Each creature in the area must make a DC 15 Dexterity saving throw, taking 5d4 fire damage on a failed save, or half as much damage on a successful one.\\n   \" + toUni(\"Mizzium Bombard\") + \". You can expend 3 charges as an action to launch a hail of molten projectiles in a 20-foot-radius, 40-foot-high cylinder centered on a point you can see within 60 feet of you. Each creature in the area must make a DC 15 Dexterity saving throw. A creature takes 5d8 fire damage on a failed save, or half as much damage on a successful one.\",\n\tweight : 1,\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\"\n}\nMagicItemsList[\"moodmark paint\"] = {\n\tname : \"Moodmark Paint\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Once, I can spend 1 minute to apply this thick black paint to a creature's face. For the next 8 hours, anyone seeing the target can make a DC 10 Wisdom (Insight) check to see if it is happy, sad, angry, disgusted, surprised, or afraid, as well as the main source of that emotion. Drows have advantage on this check.\",\n\tdescriptionFull : \"This thick, black paint is stored in a small jar, containing enough paint to apply moodmarks to one creature. The paint is dabbed on the face in spots or markings that often resemble the eyes of insects or spiders. Applying the paint in this way takes 1 minute.\\n   For the next 8 hours, the marks change to reflect your mental state. A creature that can see you and makes a successful DC 10 Wisdom (Insight) check can discern whether you are happy, sad, angry, disgusted, surprised, or afraid, as well as the main source of that emotion. For example, you might communicate fear caused by a monster you just saw around the corner, grief at the loss of a friend, or happiness derived from pride in your performance in combat. A dark elf has advantage on this check.\",\n\tweight : 1\n}\nMagicItemsList[\"pariah's shield\"] = {\n\tname : \"Pariah's Shield\",\n\tsource : [[\"G\", 180]],\n\ttype : \"shield\",\n\trarity : \"rare\",\n\tdescription : \"While I wield this shield. I gain a +1 bonus to AC for every two allies within 5 ft of me on top of the shield's AC bonus, up to a +3 bonus. As a reaction when a creature I can see within 5 ft of me takes damage, I can take that damage instead, but the damage type for it changes to force.\",\n\tdescriptionFull : \"Soldiers of the Boros Legion consider it an honor to bear this shield, even knowing that it might be the last honor they receive. The front of the shield is sculpted to depict a grieving human face.\\n   You gain a +1 bonus to AC for every two allies within 5 feet of you (up to a maximum of +3) while you wield this shield. This bonus is in addition to the shield's normal bonus to AC.\\n   When a creature you can see within 5 feet of you takes damage, you can use your reaction to take that damage, instead of the creature taking it. When you do so, the damage type changes to force.\",\n\tattunement : true,\n\tweight : 6,\n\tshieldAdd : \"Pariah's Shield\",\n\taction : [[\"reaction\", \"\"]]\n}\nMagicItemsList[\"peregrine mask\"] = {\n\tname : \"Peregrine Mask\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While wearing this winged helm, I have a flying speed of 60 ft and advantage on initiative rolls.\",\n\tdescriptionFull : \"While wearing this winged helm, you have a flying speed of 60 feet. In addition, you have advantage on initiative rolls.\",\n\tattunement : true,\n\tadvantages : [[\"Initiative\", true]],\n\tspeed : { fly : { spd : \"fixed60\", enc : \"fixed50\" } }\n}\nMagicItemsList[\"pyroconverger\"] = {\n\tname : \"Pyroconverger\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"As an action, I can use this flamethrower to deal 4d6 fire damage to all in a 10-ft cone, DC 13 Dex save halves. I must roll a d10 each time I use it and add the times it was used since my last long rest. If the total is 11 or higher, it malfunctions and I take 4d6 fire damage and I can't use it again until I finish a long rest.\",\n\tdescriptionFull : \"A Pyroconverger is an Izzet-made flamethrower. It carries a risk of malfunction each time you use it.\\n   As an action, you can cause the Pyroconverger to project fire in a 10-foot cone. Each creature in that area must make a DC 13 Dexterity saving throw, taking 4d6 fire damage on a failed save, or half as much damage on a successful one.\\n   Each time you use the Pyroconverger, roll a d10 and add the number of times you have used it since your last long rest. If the total is 11 or higher, the Pyroconverger malfunctions: you take 4d6 fire damage, and you can't use the Pyroconverger again until you finish a long rest.\",\n\tattunement : true,\n\tweight : 1,\n\tweaponOptions : [{\n\t\tregExpSearch : /pyroconverger/i,\n\t\tname : \"Pyroconverger\",\n\t\tsource : [[\"G\", 180]],\n\t\tability : 0,\n\t\ttype : \"Magic Item\",\n\t\tdamage : [4, 6, \"fire\"],\n\t\trange : \"10-ft cone\",\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Roll each time for malfunction, see item\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\tmodifiers : [5, \"\"],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"if malfunction\"\n}\nMagicItemsList[\"rakdos riteknife\"] = {\n\tname : \"Rakdos Riteknife\",\n\tsource : [[\"G\", 180]],\n\ttype : \"weapon (dagger)\",\n\trarity : \"legendary\",\n\tdescription : \"This has +1 to hit/damage and imprisons souls of any killed with it, up to 5. It deals +1d4 necr. per stored soul. As a bonus action, I can release souls to regain 1d10 HP per soul. Once per long rest as a reaction after I deal damage with it, I can release 5 souls to have the target make a DC 15 Con save or die if below 75 HP.\",\n\tdescriptionLong : \"This magical dagger has a +1 bonus on attack and damage rolls made with it. When used to slay a creature, it imprisons its soul. It can store up to five souls. While it holds souls, it deals +1d4 necrotic damage per stored soul. [Siphon Vitality] As a bonus action, I can release one or more soul to regain 1d10 HP per soul released. [Annihilation] As a reaction after I deal damage with it, I can release five souls to have the target of the attack make a DC 15 Constitution saving throw or die if below 75 HP. If the target dies, I can't use this property again until I finish a long rest.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon. Its blade is cruelly serrated, and its hilt resembles a demonic head and wings. Whenever you slay a creature with an attack using the dagger, the creature's soul is imprisoned inside the dagger, and that creature can be restored to life only by a Wish spell. The dagger can hold a maximum of five souls.\\n   For each soul imprisoned in the dagger, your attacks with it deal an extra 1d4 necrotic damage on a hit. While the dagger is within 5 feet of you, your dreams are haunted by whispers from the trapped souls.\\n   The dagger has the following additional properties.\\n   \" + toUni(\"Siphon Vitality\") + \". As a bonus action, you can release any number of stored souls from the dagger to regain 1d10 hit points per soul released.\\n   \" + toUni(\"Annihilation\") + \". If the dagger holds five souls, you can use this property: As a reaction immediately after you hit a creature with the dagger and deal damage to that target, you can release all five souls. If the target now has fewer than 75 hit points, it must succeed on a DC 15 Constitution saving throw or die. If the target dies, you can't use this property again until you finish a long rest.\",\n\tattunement : true,\n\tweight : 1,\n\taction : [[\"bonus action\", \" (Siphon Vitality)\"], [\"reaction\", \" (Annihilation)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*rakdos)(?=.*riteknife).*$/i,\n\t\tname : \"Rakdos Riteknife\",\n\t\tsource : [[\"G\", 180]],\n\t\tdescription : \"Finesse, light, thrown; Imprisons soul on kill (max 5); +1d4 necrotic damage per stored soul\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"Annihilation\"\n}\nMagicItemsList[\"skyblinder staff\"] = {\n\tname : \"Skyblinder Staff\",\n\tsource : [[\"G\", 181]],\n\ttype : \"staff\",\n\trarity : \"uncommon\",\n\tdescription : \"This +1 quarterstaff gives me a +1 bonus on spell attacks. As a reaction when a flying creature I can see within 30 ft makes an attack roll against me, I can cause the staff to flare with light. The attacker has disadvantage on the attack roll, and it must make a DC 15 Con save or be blinded until the start of its next turn.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic quarterstaff. While holding it, you gain a +1 bonus to spell attack rolls.\\n   If a flying creature you can see within 30 feet of you makes an attack roll against you, you can use your reaction to hold the staff aloft and cause it to flare with light. The attacker has disadvantage on the attack roll, and it must succeed on a DC 15 Constitution saving throw or be blinded until the start of its next turn.\",\n\tattunement : true,\n\tweight : 4,\n\taction : [[\"reaction\", \" (vs. flying)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*skyblinder)(?=.*staff).*$/i,\n\t\tname : \"Skyblinder Staff\",\n\t\tsource : [[\"G\", 181]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type == \"attack\") return 1;\n\t\t\t},\n\t\t\t\"While holding the Skyblinder Staff, I have a +1 bonus to spell attack rolls.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"spies' murmur\"] = {\n\tname : \"Spies' Murmur\",\n\tsource : [[\"G\", 181]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This dark metal headpiece is worn curved around the ear. I can communicate telepathically with others that I know within 1 mile who are also wearing a spies' murmur. As a bonus action, I can allow that creature to hear everything I hear for 1 hour. I can end this effect as a bonus action, and it ends if I am incapacitated.\",\n\tdescriptionFull : \"This headpiece, crafted from dark metal, is worn curved around the ear. If you know a creature wearing another Spies' Murmur and that creature is within 1 mile of you, you can communicate telepathically with each other. As a bonus action, you can allow that creature to hear everything you hear for 1 hour. You can end this effect as a bonus action, and it ends if you're incapacitated.\",\n\tattunement : true\n}\nMagicItemsList[\"sunforger\"] = {\n\tname : \"Sunforger\",\n\tsource : [[\"G\", 181]],\n\ttype : \"weapon (warhammer)\",\n\trarity : \"rare\",\n\tdescription : \"This warhammer adds +2 to attack and damage rolls made with it. As an action once per short rest, I can hurl it up to 120 ft to a point I can see where it explodes in a 20-ft radius, dealing 6d6 fire damage to all within, DC 15 Dex save halves. Within 24 hours afterward, I can have it reform in my hand as an action.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon.\\n   As an action, you can hurl the weapon up to 120 feet to a point you can see. When it reaches that point, the weapon vanishes in an explosion, and each creature in a 20-foot-radius sphere centered on that point must make a DC 15 Dexterity saving throw, taking 6d6 fire damage on a failed save, or half as much damage on a successful one. Afterward, you can use an action to cause the weapon to reappear in your empty hand. You can't cause it to explode again until you finish a short or long rest.\\n   If you don't call the weapon back to your hand, it reappears at the point where it exploded when you are no longer attuned to it or when 24 hours have passed.\",\n\tattunement : true,\n\tweight : 2,\n\taction : [[\"action\", \" (hurl/recall)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /sunforger/i,\n\t\tname : \"Sunforger\",\n\t\tsource : [[\"G\", 181]],\n\t\tdescription : \"Versatile (1d10); As action, hurl 120 ft for 20-ft rad 6d6 fire dmg, Dex DC 15 half\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"short rest\",\n\tadditional : \"Hurl\"\n}\nMagicItemsList[\"sword of the paruns\"] = {\n\tname : \"Sword of the Paruns\",\n\tsource : [[\"G\", 181]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"very rare\",\n\tdescription : \"This longsword has a +1 to hit and damage. Once per round after I take an action while holding it, I can use it to have a creature within 60 ft use its reaction to do something based on the action I was taking: [Attack] make one weapon attack, [Dash] move its speed, or [Dodge] gain the benefits of a Dodge action.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon. Additionally, once on each of your turns, you can use one of the following properties if you're holding the sword:\\n \\u2022 Immediately after you use the Attack action to attack with the sword, you can enable one creature within 60 feet of you to use its reaction to make one weapon attack.\\n \\u2022 Immediately after you take the Dash action, you can enable one creature within 60 feet of you to use its reaction to move up to its speed.\\n \\u2022 Immediately after you take the Dodge action, you can enable one creature within 60 feet of you to use its reaction to gain the benefits of the Dodge action.\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*sword)(?=.*paruns).*$/i,\n\t\tname : \"Sword of the Paruns\",\n\t\tsource : [[\"G\", 181]],\n\t\tdescription : \"Versatile (1d10); Have ally in 60 ft do something when I take the Attack, Dash, or Dodge action\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"voyager staff\"] = {\n\tname : \"Voyager Staff\",\n\tsource : [[\"G\", 181]],\n\ttype : \"staff\",\n\trarity : \"very rare\",\n\tdescription : \"This +1 quarterstaff gives me a +1 bonus on spell attacks. It has 10 charges, regaining 1d6+4 expended charges at dawn. If I expend its last charge, roll a d20. On a 1, it vanishes. I can use its charges to cast Banishment (4 ch), Blink (3 ch), Misty Step (2 ch), Passwall (5 ch), and Teleport (7 ch), using my spellcasting ability.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic quarterstaff. While you hold it, you gain a +1 bonus to spell attack rolls.\\n   This staff has 10 charges. While holding it, you can use an action to expend 1 or more of the staff's charges to cast one of the following spells from it, using your spell save DC: Banishment (4 charges), Blink (3 charges), Misty Step (2 charges), Passwall (5 charges), or Teleport (7 charges).\\n   The staff regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff vanishes forever.\",\n\tattunement : true,\n\tweight : 4,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*voyager)(?=.*staff).*$/i,\n\t\tname : \"Voyager Staff\",\n\t\tsource : [[\"G\", 181]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type == \"attack\") return 1;\n\t\t\t},\n\t\t\t\"While holding the Voyager Staff, I have a +1 bonus to spell attack rolls.\"\n\t\t]\n\t},\n\tusages : 10,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+4\",\n\tspellcastingAbility : \"class\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"2 charges\",\n\t\tspells : [\"misty step\"],\n\t\tselection : [\"misty step\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"blink\"],\n\t\tselection : [\"blink\"],\n\t\tfirstCol : 3\n\t}, {\n\t\tname : \"4 charges\",\n\t\tspells : [\"banishment\"],\n\t\tselection : [\"banishment\"],\n\t\tfirstCol : 4\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"passwall\"],\n\t\tselection : [\"passwall\"],\n\t\tfirstCol : 5\n\t}, {\n\t\tname : \"7 charges\",\n\t\tspells : [\"teleport\"],\n\t\tselection : [\"teleport\"],\n\t\tfirstCol : 7\n\t}]\n}\n\n// pub_20181120_WDotMM.js\r\n// This file adds the magic items from the Waterdeep: Dungeon of the Mad Mage adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"WDotMM\"] = {\r\n\tname : \"Waterdeep: Dungeon of the Mad Mage [items]\",\r\n\tabbreviation : \"WDotMM\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/waterdeep-dungeon-of-the-mad-mage\",\r\n\tdate : \"2018/11/20\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"potion of comprehension\"] = {\r\n\tname : \"Potion of Comprehension\",\r\n\tsource : [[\"WDotMM\", 62]],\r\n\ttype : \"potion\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to gain the effect of the Comprehend Languages spell. The consumer understands the literal meaning of any spoken language heard or written text touched and read. This liquid is a clear concoction with bits of salt and soot swirling in it.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain the effect of a comprehend languages spell for 1 hour. This liquid is a clear concoction with bits of salt and soot swirling in it.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"potion of watchful rest\"] = { // contains contributions by Nod_Hero\r\n\tname : \"Potion of Watchful Rest\",\r\n\tsource : [[\"WDotMM\", 62]],\r\n\ttype : \"potion\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can drink this weet, amber-colored potion or administer it to another to gain the following benefits for the next 8 hours: magic can't put the consumer to sleep, and they can remain awake during a long rest and still gain its benefits. This brew has no effect on creatures that don't require sleep.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain the following benefits for the next 8 hours: magic can't put you to sleep, and you can remain awake during a long rest and still gain its benefits. This sweet, amber-colored brew has no effect on creatures that don't require sleep, such as elves.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"dagger of blindsight\"] = {\r\n\tname : \"Dagger of Blindsight\",\r\n\tsource : [[\"WDotMM\", 86]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This magical dagger has a saw-toothed edge and a black pearl nested in its pommel. While I'm attuned to it, I have blindsight out to a range of 30 ft.\",\r\n\tdescriptionFull : \"This rare magic item requires attunement. A creature attuned to it gains blindsight out to a range of 30 feet. The dagger has a saw-toothed edge and a black pearl nested in its pommel.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tweaponsAdd : {\r\n\t\tselect : [\"Dagger of Blindsight\"],\r\n\t\toptions : [\"Dagger of Blindsight\"]\r\n\t},\r\n\tvision : [[\"Blindsight\", 30]]\r\n}\r\nMagicItemsList[\"professor orb\"] = { // contains contributions by Pengsloth\r\n\tname : \"Professor Orb\",\r\n\tsource : [[\"WDotMM\", 131], [\"RotF\", 315]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This orb is sentient with the personality of a scholar, but no will of its own. It has Int 18, Wis and Cha of 3d6 each. It knows and reads 4 languages, can see/hear as a human out to 60 ft, and has extensive knowledge of 4 narrow academic subjects (+9 on checks). It knows Mage Hand, which it uses to move around.\",\r\n\tdescriptionFull : \"Each professor orb takes the form of a smooth, solid, 5-pound sphere of smoky gray quartz about the size of a grapefruit. Close examination reveals two or more pinpricks of silver light deep inside the sphere.\\n   A Professor Orb is sentient and has the personality of a scholar. Its alignment is determined by rolling on the alignment table in the \\\"Sentient Magic Items\\\" section in chapter 7 of the Dungeon Master's Guide. Regardless of its disposition, the orb has an Intelligence of 18, and Wisdom and Charisma scores determined by rolling 3d6 for each ability. The orb speaks, reads, and understands four languages, and can see and hear normally out to a range of 60 feet. Unlike most sentient items, the orb has no will of its own and can't initiate a conflict with the creature in possession of it.\\n   A Professor Orb has extensive knowledge of four narrow academic subjects. When making an Intelligence check to recall lore from any of its areas of expertise, the orb has a +9 bonus to its roll (including its Intelligence modifier).\\n   In addition to the knowledge it possesses, a professor orb can cast the Mage Hand cantrip at will. It uses the spell only to transport itself. Its spellcasting ability is Intelligence.\"\r\n}\r\nAddFeatureChoice(MagicItemsList[\"horn of valhalla\"], false, \"Endless Maze (rare; 3d4+3 berserkers; prereq: simple weapons prof.)\", {\r\n\tname : \"Horn of the Endless Maze\",\r\n\tsortname : \"Horn of Valhalla, Endless Maze\",\r\n\tsource : [[\"WDotMM\", 163]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\", // interpretation, made it the same as Brass Horn of Valhalla,\r\n\tdescription : \"As an action once per 7 days, I can blow this horn to summon 3d4+3 minotaurs (use berserker stats) from the Abyss in 60 ft. They return after 1 hour or when they drop to 0 HP. They follow my commands and are friendly to me and my companions if I'm proficient with all simple weapons. Otherwise, they attack me.\",\r\n\tdescriptionFull : \"You can use an action to blow this horn. In response, 3d4+3 warrior spirits from the Abyss appear within 60 feet of you. They look like Minotaurs and use the statistics of a berserker. They return to the Abyss after 1 hour or when they drop to 0 hit points. Once you use the horn, it can't be used again until 7 days have passed.\\n   If you blow the horn without having proficiency with all simple weapons, the summoned berserkers attack you. If you meet the requirement, they are friendly to you and your companions and follow your commands.\"\r\n});\r\nMagicItemsList[\"dodecahedron of doom\"] = {\r\n\tname : \"Dodecahedron of Doom\",\r\n\tsource : [[\"WDotMM\", 174]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This twelve-sided metal die is 1 ft across and bears the numbers 1 through 12 engraved on its pentagonal sides. As an action, I can hurl it up to 60 ft. A random magical effect occurs when the die comes to rest after rolling across the ground for at least 10 ft. See the Notes page for the table of effects.\",\r\n\tdescriptionFull : \"This twelve-sided metal die is 12 inches across and bears the numbers 1 through 12 engraved on its pentagonal sides. The dodecahedron contains arcane clockwork mechanisms that whir and click whenever the die is cast.\\n   The dodecahedron can be hurled up to 60 feet as an action. A random magical effect occurs when the die comes to rest after rolling across the ground for at least 10 feet. If an effect requires a target and no eligible target is within range, nothing happens. Spells cast by the dodecahedron require no components. Roll a d12 and consult the following table to determine the effect:\\n\\n\" + toUni(\"d12\\teffect\") + \"\\n1-2\\tThe dodecahedron explodes and is destroyed. Each creature within 20 feet of the exploding die must make a DC 13 Dexterity saving throw, taking 40 (9d8) force damage on a failed save, or half as much damage on a successful one.\\n3-4\\tThe dodecahedron casts Light on itself. The effect lasts until a creature touches the die.\\n5-6\\tThe dodecahedron casts Ray of Frost (+5 to hit), targeting a random creature within 60 feet of it that doesn't have total cover against the attack.\\n7-8\\tThe dodecahedron casts Shocking Grasp (+5 to hit) on the next creature that touches it.\\n9-10\\tThe dodecahedron casts Darkness on itself. The effect has a duration of 10 minutes.\\n11-12\\tThe next creature to touch the dodecahedron gains 1d10 temporary hit points that last for 1 hour.\",\r\n\tweight : 2,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effect Table\",\r\n\t\tnote : [\r\n\t\t\t\"This twelve-sided metal die is 12 inches across and bears the numbers 1 through 12 engraved on its pentagonal sides. The dodecahedron contains arcane clockwork mechanisms that whir and click whenever the die is cast.\",\r\n\t\t\t\"If an effect requires a target and no eligible target is within range, nothing happens.\",\r\n\t\t\t\"d12\\tEFFECT\",\r\n\t\t\t\"1-2\\tThe dodecahedron explodes and is destroyed. Each creature within 20 feet of the exploding die must make a DC 13 Dexterity saving throw, taking 40 (9d8) force damage on a failed save, or half as much damage on a successful one.\",\r\n\t\t\t\"3-4\\tThe dodecahedron casts light on itself. The effect lasts until a creature touches the die.\",\r\n\t\t\t\"5-6\\tThe dodecahedron casts ray of frost (+5 to hit), targeting a random creature within 60 feet of it that doesn't have total cover against the attack.\",\r\n\t\t\t\"7-8\\tThe dodecahedron casts shocking grasp (+5 to hit) on the next creature that touches it.\",\r\n\t\t\t\"9-10\\tThe dodecahedron casts darkness on itself. The effect has a duration of 10 minutes.\",\r\n\t\t\t\"11-12\\tThe next creature to touch the dodecahedron gains 1d10 temporary hit points that last for 1 hour.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"orb of gonging\"] = { // contains contributions by Pengsloth\r\n\tname : \"Orb of Gonging\",\r\n\tsource : [[\"WDotMM\", 174]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This item is a hollow, 5-inch-diameter orb with notches along its outside bronze rings. As an action, I can align the notches, causing the orb to gong loudly until the notches are no longer aligned. The sounds are spaced 6 seconds apart and can be heard out to a range of 600 ft.\",\r\n\tdescriptionFull : \"This common wondrous item is a hollow, 5-inch-diameter orb that weighs 5 pounds. Its outer shell is composed of notched bronze rings, which can be turned so that the notches line up. Aligning the notches requires an action, and doing so causes the orb to gong loudly until the notches are no longer aligned. The sounds are spaced 6 seconds apart and can be heard out to a range of 600 feet.\"\r\n}\r\nMagicItemsList[\"black crystal tablet\"] = { // contains contributions by Pengsloth\r\n\tname : \"Black Crystal Tablet\",\r\n\tsource : [[\"WDotMM\", 284]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"As an action once per dawn, I can use the tablet to cast Eyebite or Gate, but the latter only links to the Far Realm. When attuning to it, I must make a DC 20 Wisdom saving throw or be afflicted by afflicted long-term madness (see table at SRD 201 or DMG 259).\",\r\n\tdescriptionFull : \"Any creature that attunes to the tablet must make a DC 20 Wisdom saving throw at the end of its next long rest. On a failed save, the creature becomes afflicted with a random form of long-term madness (see \\\"Madness\\\" in chapter 8 of the Dungeon Master's Guide).\\n   As an action, a creature attuned to the Black Crystal Tablet can use it to cast Eyebite or Gate (the portal created by this spell links to the Far Realm only). After the tablet is used to cast a spell, it cannot be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature that has proficiency in the arcana skill\",\r\n\tprereqeval : function(v) { return v.skillProfs.indexOf(\"Arcana\") !== -1; },\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"eyebite\", \"gate\"],\r\n\t\tselection : [\"eyebite\", \"gate\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"gate\" : {\r\n\t\t\tdescription : \"Create a portal to a precise location in the far realm; can transport named crea to me\",\r\n\t\t\tchanges : \"The spell can only connect to the Far Realm.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"helm of the scavenger\"] = {\r\n\tname : \"Helm of the Scavenger\",\r\n\tsource : [[\"WDotMM\", 297]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This ornate chair can be placed on a ship weighing up to 100 tons. It generates artificial gravity and an envelope of fresh air at 70 \\u00B0F around the ship when in the void of space. While attuned to it and sitting in the chair, I can propel the ship, steer it, and see what is happening anywhere on it, but I can't use spell slots.\",\r\n\tdescriptionFull : \"This ornate chair is designed to propel and maneuver a ship through space.\\n   \" + toUni(\"Passive Properties\") + \". The following properties of the helm come into play even when no creature is attuned to it:\\n \\u2022 When placed aboard a vessel weighing between 1 and 100 tons, the helm generates an envelope of fresh air around the ship while it is in the void of space (but not underwater). This envelope extends out from the edges of the hull in all directions for a distance equal in length to the vessel's beam, so that creatures aboard and near the ship can breathe normally in space. The temperature within the air envelope is 70 degrees Fahrenheit.\\n \\u2022 When placed aboard a vessel weighing between 1 and 100 tons, the helm generates an artificial gravity field while the ship is in the void of space, so that creatures can walk on the ship's decks as they normally would. Creatures and objects that fall overboard bob in a gravity plane that extends out from the main deck for a distance equal in length to the vessel's beam.\\n\\n\" + toUni(\"Active Properties\") + \". The sensation of being attuned to the helm is akin to being immersed in warm water. While attuned to the helm, you gain the following abilities while you sit in it:\\n \\u2022 You can use the helm to propel the vessel across or through water and other liquids at a maximum speed in miles per hour equal to your highest-level unexpended spell slot.\\n \\u2022 You can use the helm to propel the vessel through air or space at a maximum speed in miles per hour equal to your highest-level unexpended spell slot \\xD7 10.\\n \\u2022 Provided you have at least one unexpended spell slot, you can steer the vessel, albeit in a somewhat clumsy fashion, in much the same way that oars or a rudder can maneuver a seafaring ship.\\n \\u2022 Whenever you like, you can see what's happening on and around the vessel as though you were standing in a location of your choice aboard it.\\n\\n\" + toUni(\"Drawback\") + \". While attuned to the helm, you cannot expend your own spell slots.\",\r\n\tattunement : true,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"When placed aboard a vessel weighing between 1 and 100 tons, this ornate chair can propel and maneuver a ship through space.\",\r\n\t\t\t\"The following properties of the helm come into play even when no creature is attuned to it:\",\r\n\t\t\t\" \\u2022 The helm generates an envelope of fresh air around the ship while it is in the void of space (but not underwater). This envelope extends out from the edges of the hull in all directions for a distance equal in length to the vessel's beam, so that creatures aboard and near the ship can breathe normally in space. The temperature within the air envelope is 70 degrees Fahrenheit.\",\r\n\t\t\t\" \\u2022 The helm generates an artificial gravity field while the ship is in the void of space, so that creatures can walk on the ship's decks as they normally would. Creatures and objects that fall overboard bob in a gravity plane that extends out from the main deck for a distance equal in length to the vessel's beam.\",\r\n\t\t\t\"The sensation of being attuned to the helm is akin to being immersed in warm water. While attuned to the helm, I gain the following abilities while I sit in it:\",\r\n\t\t\t\" \\u2022 I can use the helm to propel the vessel across or through water and other liquids at a maximum speed in miles per hour equal to my highest-level unexpended spell slot.\",\r\n\t\t\t\" \\u2022 I can use the helm to propel the vessel through air or space at a maximum speed in miles per hour equal to my highest-level unexpended spell slot \\xD7 10.\",\r\n\t\t\t\" \\u2022 Provided I have at least one unexpended spell slot, I can steer the vessel, albeit in a somewhat clumsy fashion, in much the same way that oars or a rudder can maneuver a seafaring ship.\",\r\n\t\t\t\" \\u2022 Whenever I like, I can see what's happening on and around the vessel as though I were standing in a location of my choice aboard it.\",\r\n\t\t\t\" \\u2022 I cannot expend my own spell slots.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"shield of the uven rune\"] = { // contains contributions by Pengsloth\r\n\tname : \"Shield of the Uven Rune\",\r\n\tsource : [[\"WDotMM\", 299]],\r\n\tstoryItemAL : true,\r\n\tdescription : \"I can use the shield as it is, or transfer its runic properties over to a weapon.\",\r\n\tdescriptionFull : \"This shield is made from the scale of an ancient white dragon. It has a rune burned into its outward-facing side. A character who examines the rune and succeeds on a DC 20 Intelligence (History) check recognizes it as an uven (\\\"enemy\\\" in Giant) rune that confers great power.\\n   While holding the shield, you benefit from the following properties.\\n   \" + toUni(\"Winter's Friend\") + \". You are immune to cold damage.\\n   \" + toUni(\"Deadly Rebuke\") + \". Immediately after a creature hits you with a melee attack, you can use your reaction to deal 3d6 necrotic damage to that creature.\\n   \" + toUni(\"Bane\") + \". You can cast the Bane spell from the shield (save DC 17). The spell does not require concentration and lasts for 1 minute. Once you cast the spell from the shield, you can't do so again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Vengeance\") + \". You can transfer the shield's magic to a nonmagical weapon by tracing the uven rune on the weapon with one finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the shield is destroyed, and the rune is etched or burned into the chosen weapon. This weapon becomes a rare magic item that requires attunement. It has the properties of a +1 weapon. The bonus increases to +3 when the weapon is used against one of the following creature types, chosen by you at the time of the magic weapon's creation: aberrations, celestials, constructs, dragons, elementals, fey, fiends, giants, or undead.\",\r\n\tattunement : true,\r\n\tchoices : [\"Shield\", \"Transferred to a weapon\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"shield\" : {\r\n\t\tname : \"Shield of the Uven Rune \",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This shield made from the scale of a white dragon gives me cold damage immunity. As a reaction when I'm hit by a melee attack, I can deal 3d6 necrotic damage to the attacker. Once per short rest, I can cast Bane (DC 17) needing no concentration. I can do an 8 hour ritual to transfer the rune to a weapon, see book.\",\r\n\t\tweight : 6,\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\",\r\n\t\tadditional : \"Bane\",\r\n\t\tshieldAdd : \"Shield of the Uven Rune\",\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tsavetxt : {\timmune : [\"cold\"] },\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"bane\"],\r\n\t\t\tselection : [\"bane\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"bane\" : {\r\n\t\t\t\tduration : \"1 min\",\r\n\t\t\t\tchanges : \"The spell does not require concentration.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a weapon\" : {\r\n\t\tname : \"Uven Rune Weapon\",\r\n\t\ttype : \"weapon (any)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This magic weapon adds a +1 bonus to attack and damage rolls made with it. This bonus increases to +3 when it is used against the creature type, chosen at the time of the magic weapon's creation: aberrations, celestials, constructs, dragons, elementals, fey, fiends, giants, or undead.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Uven Rune\"]\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (/^(?=.*\\buven\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2 to hit/damage vs. chosen creature type';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Uven Rune\" in a the name of a weapon, it will be treated as the magic weapon Uven Rune Weapon, which has a +1 bonus, or a +3 bonus against its chosen creature type.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif ((/^(?=.*\\buven\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"blast scepter\"] = { // contains contributions by Pengsloth\r\n\tname : \"Blast Scepter\",\r\n\tsource : [[\"WDotMM\", 310]],\r\n\ttype : \"rod\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"While attuned to the Blast Scepter, I gain resistance to fire and lightning damage and can, as an action, use it to cast Thunderwave as a 4th-level spell (save DC 16) without expending a spell slot. It can be used as an arcane focus.\",\r\n\tdescriptionFull : \"The Blast Scepter can be used as an arcane focus.\\n   Whoever is attuned to the Blast Scepter gains resistance to fire and lightning damage and can, as an action, use it to cast Thunderwave as a 4th-level spell (save DC 16) without expending a spell slot.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Fire\", \"Lightning\"],\r\n\tfixedDC : 16,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will (4th level)\",\r\n\t\tspells : [\"thunderwave\"],\r\n\t\tselection : [\"thunderwave\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"thunderwave\" : {\r\n\t\t\tnameShort : \"Thunderwave (4th level)\",\r\n\t\t\tdescription : \"All crea/obj in area 5d8 Thunder dmg, pushed 10 ft away; save halves and not pushed\",\r\n\t\t\tchanges : \"Cast as if using a 4th-level spell slot\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"chest of preserving\"] = {\r\n\tname : \"Chest of Preserving\",\r\n\tsource : [[\"WDotMM\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Food and other perishable items do not age or decay while inside this chest. It is 2.5 ft long, 1.5 ft wide, and 1 ft tall with a half-barrel lid. The chest has a lock, which can be picked with thieves' tools and a successful DC 15 Dexterity check. Smashing the lock or any other part of the chest renders it nonmagical.\",\r\n\tdescriptionFull : \"Food and other perishable items do not age or decay while inside a Chest of Preserving. The chest is 2\\xBD feet long, 1\\xBD feet wide, and 1 foot tall with a half-barrel lid. The chest has a lock, which can be picked with thieves' tools and a successful DC 15 Dexterity check. Smashing the lock or any other part of the chest renders it nonmagical.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"circlet of human perfection\"] = { // contains contributions by Pengsloth\r\n\tname : \"Circlet of Human Perfection\",\r\n\tsource : [[\"WDotMM\", 30]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tprerequisite : \"Requires attunement by a humanoid\",\r\n\tdescription : \"Wearing this circlet transforms my appearance into an attractive human of average height and weight, but otherwise doesn't change anything. The circlet chooses the physical characteristics of the form, such as age, gender, skin color, hair color, and voice. Removing the circlet ends the effect.\",\r\n\tdescriptionFull : \"The Circlet of Human Perfection transforms its attuned wearer into an attractive human of average height and weight. The circlet chooses the physical characteristics of the form, such as age, gender, skin color, hair color, and voice. Except for size, the wearer's statistics and racial traits don't change, nor do items worn or carried by the wearer. Removing the circlet ends the effect.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"propeller helm\"] = { // contains contributions by Pengsloth\r\n\tname : \"Propeller Helm\",\r\n\tsource : [[\"WDotMM\", 251]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tprerequisite : \"Requires attunement by a Small humanoid\",\r\n\tprereqeval : function () { return tDoc.getField(\"Size Category\").currentValueIndices == 4; },\r\n\tdescription : \"While worn, the helm allows me to use an action to cast Levitate, requiring no components. Each time the spell ends, there is a 50 percent chance that the helm loses its magic and becomes nonmagical.\",\r\n\tdescriptionFull : \"While worn, the helm allows its wearer to use an action to cast the Levitate spell, requiring no components. The helm's propeller spins and whirs loudly until the spell ends. Each time the spell ends, there is a 50 percent chance that the helm loses its magic and becomes nonmagical.\",\r\n\tattunement : true,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"tearulai\"] = { // contains contributions by Pengsloth\r\n\tname : \"Tearulai\",\r\n\tsource : [[\"WDotMM\", 76]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"If I roll a 20 on an attack with this sword, it deals +14 slashing damage and there is a 5% chance its lobs off a limb. It deals max damage to objects and has 6 charges, regaining 1d4+2 at dawn, which it can use to cast spells. It can shed light on command and is a sentient weapon with a will of its own, see Notes page.\",\r\n\tdescriptionFull : [\r\n\t\t\"The longsword, Tearulai, is a sentient, neutral good sword of sharpness with an emerald-colored blade and precious gemstones embedded in its hilt and pommel. The sword's magical properties are suppressed until it is removed from Valdemar's skull.\",\r\n\t\t\"Evil creatures can't attune to Tearulai; any evil creature that tries to do so takes 20 psychic damage. The weapon's emerald blade can't be damaged or dulled, and the sword can't be teleported anywhere without its wielder while the two are attuned to one another.\",\r\n\t\ttoUni(\"Sword of Sharpness\") + \". When you attack an object with this magic sword and hit, maximize your weapon damage dice against the target.\",\r\n\t\t\"When you attack a creature with this weapon and roll a 20 on the attack roll, that target takes an extra 14 slashing damage. Then roll another d20. If you roll a 20, you lop off one of the target's limbs, with the effect of such loss determined by the DM. If the creature has no limb to sever, you lop off a portion of its body instead.\",\r\n\t\t\"In addition, you can speak the sword's command to cause the blade to shed bright light in a 10-foot radius and dim light for an additional 10 feet. Speaking the command word again or sheathing the sword puts out the light.\\n\\nNote: According to the SRD, it is an extra 4d6 slashing damage, although this is incorrect.\",\r\n\t\ttoUni(\"Spells\") + \". The sword has 6 charges and regains 1d4 + 2 expended charges daily at dawn. A creature attuned to the sword can use an action and expend 1 or more charges to cast one of the following spells from it without material components: Fly (2 charges), Polymorph (3 charges), or Transport Via Plants (4 charges).\",\r\n\t\ttoUni(\"Sentience\") + \". The sword has an Intelligence of 17, a Wisdom of 12, and a Charisma of 20. It has hearing and truesight out to a range of 120 feet. It communicates telepathically with its attuned wielder and can speak, read, and understand Common, Draconic, Elvish, and Sylvan. In addition, the sword can ascertain the true value of any gemstone brought within 5 feet of it.\",\r\n\t\ttoUni(\"Personality\") + \". Tearulai admires great beauty, music, fine art, and poetry. Vain, the weapon strives to improve its appearance. It craves gemstones and seeks out better ones with which to adorn itself. Most of all, it longs to return to the forests around Myth Drannor, where it was created. If its wielder's goals run counter to its own, Tearulai attempts to take control of its wielder and escape Undermountain, whereupon it can use its Transport Via Plants spell to return whence it came.\"\r\n\t].join(\"\\n   \"),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-evil alignment\",\r\n\tprereqeval : function(v) { return !(/evil/i).test(What(\"Alignment\")); },\r\n\tweight : 3,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /tearulai/i,\r\n\t\tname : \"Tearulai\",\r\n\t\tsource : [[\"WDotMM\", 76]],\r\n\t\tdescription : \"Versatile (1d10); On 20 to hit: +14 damage \\u0026 5% chance to sever limb; Max damage vs. objects\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regain 1d4+2\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"fly\"],\r\n\t\tselection : [\"fly\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"transport via plants\"],\r\n\t\tselection : [\"transport via plants\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Traits and Personality\",\r\n\t\tnote : desc([\r\n\t\t\t\"Tearulai has an emerald-colored blade and precious gemstones embedded in its hilt and pommel. Evil creatures can't attune to it and take 20 psychic damage if they try to do so. Its emerald blade can't be damaged or dulled, and the sword can't be teleported anywhere without its wielder while the two are attuned to one another.\",\r\n\t\t\t\"Objects hit by the sword take maximum damage from it. When I roll a 20 on the attack roll against a creature, that target takes an extra 14 slashing damage. Then roll another d20. If you roll a 20, you lop off one of the target's limbs, with the effect of such loss determined by the DM. If the creature has no limb to sever, you lop off a portion of its body instead.\",\r\n\t\t\t\"I can speak the sword's command to cause the blade to shed bright light in a 10-ft radius and dim light for another 10 ft. The light stops when I sheath the sword or speaking the command word again.\",\r\n\t\t\t\"The sword has 6 charges and regains 1d4 + 2 expended charges daily at dawn. I can use the charges to cast Fly (2 charges), Polymorph (3 charges), or Transport Via Plants (4 charges).\",\r\n\t\t\t\"Tearulai is sentient and has an Intelligence of 17, a Wisdom of 12, and a Charisma of 20. It has hearing and truesight out to a range of 120 ft. It communicates telepathically with its attuned wielder and can speak, read, and understand Common, Draconic, Elvish, and Sylvan. In addition, the sword can ascertain the true value of any gemstone brought within 5 ft of it.\",\r\n\t\t\t\"Tearulai admires great beauty, music, fine art, and poetry. Vain, the weapon strives to improve its appearance. It craves gemstones and seeks out better ones with which to adorn itself. Most of all, it longs to return to the forests around Myth Drannor, where it was created. If its wielder's goals run counter to its own, Tearulai attempts to take control of its wielder and uses Transport Via Plants to return whence it came.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"vial of stardust\"] = {\r\n\tname : \"Vial of Stardust\",\r\n\tsource : [[\"WDotMM\", 251]],\r\n\ttype : \"potion\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Once as an action, I can sprinkles the stardust contained in this vial over myself. After I do so, I gain the ability to cast Dream once as an action (spell save DC 15), requiring no components.\",\r\n\tdescriptionFull : \"Any creature that sprinkles the contents of a Vial of Stardust over itself gains the ability to cast the Dream spell once as an action (spell save DC 15), requiring no components.\"\r\n}\r\n\r\n// Beast\r\n// Crow is just a raven under a different name, it has been added to the SRD code as a `nameAlt`\r\n\n// pub_20190521_GoS.js\n// This file adds all material from the Ghosts of Saltmarsh adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"GoS\"] = {\n\tname : \"Ghosts of Saltmarsh [backgrounds, beasts, items]\",\n\tabbreviation : \"GoS\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Anthology\",\n\turl : \"https://dnd.wizards.com/products/ghosts-saltmarsh\",\n\tdate : \"2019/05/21\"\n};\n\nBackgroundList[\"fisher\"] = {\n\tregExpSearch : /fisher/i,\n\tname : \"Fisher\",\n\tsource : [[\"GoS\", 29], [\"ALbackground\", 0]],\n\tskills : [\"History\", \"Survival\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Fishing tackle\", \"\", 4],\n\t\t[\"Net\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Fishing lure or oiled leather boots\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\tfeature : \"Harvest the Water\",\n\ttrait : [\n\t\t\"I am unmoved by the wrath of nature.\",\n\t\t\"My friends are my crew; we sink or float together.\",\n\t\t\"I need long stretches of quiet to clear my head.\",\n\t\t\"Rich folk don't know the satisfaction of hard work.\",\n\t\t\"I laugh heartily, feel deeply, and fear nothing.\",\n\t\t\"I work hard; nature offers no handouts.\",\n\t\t\"I dislike bargaining; state your price and mean it.\",\n\t\t\"Luck favors me, and I take risks others might not.\"\n\t],\n\tideal : [\n\t\t[\"Camaraderie\", \"Camaraderie. Good people make even the longest voyage bearable. (Good)\"],\n\t\t[\"Luck\", \"Luck. Our luck depends on respecting its rules\\u2014now throw this salt over your shoulder. (Lawful)\"],\n\t\t[\"Daring\", \"Daring. The richest bounty goes to those who risk everything. (Chaotic)\"],\n\t\t[\"Plunder\", \"Plunder. Take all that you can and leave nothing for the scavengers. (Evil)\"],\n\t\t[\"Balance\", \"Balance. Do not fish the same spot twice in a row; suppress your greed, and nature will reward you. (Neutral)\"],\n\t\t[\"Hard Work\", \"Hard Work. No wave can move a soul hard at work. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I lost something important in the deep sea, and I intend to find it.\",\n\t\t\"Someone else's greed destroyed my livelihood, and I will be compensated.\",\n\t\t\"I will fish the many famous waters of this land.\",\n\t\t\"The gods saved me during a terrible storm, and I will honor their gift.\",\n\t\t\"My destiny awaits me at the bottom of a particular pond in the Feywild.\",\n\t\t\"I must repay my village's debt.\"\n\t],\n\tflaw : [\n\t\t\"I am judgmental, especially of those I deem homebodies or otherwise lazy.\",\n\t\t\"I become depressed and anxious if I'm away from the sea too long.\",\n\t\t\"I have lived a hard life and find it difficult to empathize with others.\",\n\t\t\"I am inclined to tell long-winded stories at inopportune times.\",\n\t\t\"I work hard, but I play harder.\",\n\t\t\"I am obsessed with catching an elusive aquatic beast, often to the detriment of other pursuits.\"\n\t],\n\textra : [\n\t\t\"Select a Fishing Tale\",\n\t\t\"Lobster wrestling\",\n\t\t\"It dragged the boat\",\n\t\t\"Fins of pure gold\",\n\t\t\"Ghost fish\",\n\t\t\"Nemesis clam\",\n\t\t\"It swallowed the sun\",\n\t\t\"Dive into the abyss\",\n\t\t\"Love story\"\n\t]\n};\nBackgroundFeatureList[\"harvest the water\"] = {\n\tdescription : \"I gain advantage on ability checks made using fishing tackle. If I have access to a body of water that sustains marine life, I can maintain a moderate lifestyle while working as a fisher, and I can catch enough food to feed myself and up to ten other people each day.\",\n\tsource : [[\"GoS\", 29], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"marine\"] = {\n\tregExpSearch : /marine/i,\n\tname : \"Marine\",\n\tsource : [[\"GoS\", 31], [\"ALbackground\", 0]],\n\tskills : [\"Athletics\", \"Survival\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Folded flag with company symbol\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Dagger\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Vehicles (water)\", \"Vehicles (land)\"],\n\tfeature : \"Steady\",\n\ttrait : [\n\t\t\"I speak rarely but mean every word I say.\",\n\t\t\"I laugh loudly and see the humor in stressful situations.\",\n\t\t\"I prefer to solve problems without violence, but I finish fights decisively.\",\n\t\t\"I enjoy being out in nature; poor weather never sours my mood.\",\n\t\t\"I am dependable.\",\n\t\t\"I am always working on some project or other.\",\n\t\t\"I become cantankerous and quiet in the rain.\",\n\t\t\"When the sea is within my sight, my mood is jovial and optimistic.\"\n\t],\n\tideal : [\n\t\t[\"Teamwork\", \"Teamwork. Success depends on cooperation and communication. (Good)\"],\n\t\t[\"Code\", \"Code. The marines' code provides a solution for every problem, and following it is imperative. (Lawful)\"],\n\t\t[\"Embracing\", \"Embracing. Life is messy. Throwing yourself into the worst of it is necessary to get the job done. (Chaotic)\"],\n\t\t[\"Might\", \"Might. The strong train so that they might rule those who are weak. (Evil)\"],\n\t\t[\"Bravery\", \"Bravery. To act when others quake in fear\\u2014this is the essence of the warrior. (Any)\"],\n\t\t[\"Perseverance\", \"Perseverance. No injury or obstacle can turn me from my goal. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I face danger and evil to offset an unredeemable act in my past.\",\n\t\t\"I. Will. Finish. The. Job.\",\n\t\t\"I must set an example of hope for those who have given up.\",\n\t\t\"I'm searching for a fellow marine captured by an elusive enemy.\",\n\t\t\"Fear leads to tyranny, and both must be eradicated.\",\n\t\t\"My commander betrayed my unit, and I will have revenge.\"\n\t],\n\tflaw : [\n\t\t\"I grow combative and unpredictable when I drink.\",\n\t\t\"I find civilian life difficult and struggle to say the right thing in social situations.\",\n\t\t\"My intensity can drive others away.\",\n\t\t\"I hold grudges and have difficulty forgiving others.\",\n\t\t\"I become irrational when innocent people are hurt.\",\n\t\t\"I sometimes stay up all night listening to the ghosts of my fallen enemies.\"\n\t],\n\textra : [\n\t\t\"Select a Hardship Endured\",\n\t\t\"Nearly drowned\",\n\t\t\"Captured\",\n\t\t\"Sacrifice\",\n\t\t\"Juggernaut\",\n\t\t\"Stowaway\",\n\t\t\"Leave none behind\"\n\t]\n};\nBackgroundFeatureList[\"steady\"] = {\n\tdescription : \"I can move twice the normal amount of time (up to 16 hours) each day before being subject to the effect of a forced march and need to make Constitution saves at the end of each extra hour to avoid gaining a level of exhaustion. Additionally, I can automatically find a safe route to land a boat on shore, provided such a route exists.\",\n\tsource : [[\"GoS\", 31], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"shipwright\"] = {\n\tregExpSearch : /shipwright/i,\n\tname : \"Shipwright\",\n\tsource : [[\"GoS\", 33], [\"ALbackground\", 0]],\n\tskills : [\"History\", \"Perception\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Blank book\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"],\n\t\t[\"Carpenter's tools\", \"\", 8]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Carpenter's tools\", \"Vehicles (water)\"],\n\tfeature : \"I'll Patch It!\",\n\ttrait : [\n\t\t\"I love talking and being heard more than I like to listen.\",\n\t\t\"I'm extremely fond of puzzles.\",\n\t\t\"I thrive under pressure.\",\n\t\t\"I love sketching and designing objects, especially boats.\",\n\t\t\"I'm not afraid of hard work\\u2014in fact, I prefer it.\",\n\t\t\"A pipe, an ale, and the smell of the sea: paradise.\",\n\t\t\"I have an endless supply of cautionary tales related to the sea.\",\n\t\t\"I don't mind getting my hands dirty.\"\n\t],\n\tideal : [\n\t\t[\"Crew\", \"Crew. If everyone on deck pitches in, we'll never sink. (Good)\"],\n\t\t[\"Careful Lines\", \"Careful Lines. A ship must be balanced according to the laws of the universe. (Lawful)\"],\n\t\t[\"Invention\", \"Invention. Make what you need out of whatever is at hand. (Chaotic)\"],\n\t\t[\"Perfection\", \"Perfection. To measure a being and find it lacking is the greatest disappointment. (Evil)\"],\n\t\t[\"Reflection\", \"Reflection. Muddied water always clears in time. (Any)\"],\n\t\t[\"Hope\", \"Hope. The horizon at sea holds the greatest promise. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I must visit all the oceans of the world and behold the ships that sail there.\",\n\t\t\"Much of the treasure I claim will be used to enrich my community.\",\n\t\t\"I must find a kind of wood rumored to possess magical qualities.\",\n\t\t\"I repair broken things to redeem what's broken in myself.\",\n\t\t\"I will craft a boat capable of sailing through the most dangerous of storms.\",\n\t\t\"A kraken destroyed my masterpiece; its teeth shall adorn my hearth.\"\n\t],\n\tflaw : [\n\t\t\"I don't know when to throw something away. You never know when it might be useful again.\",\n\t\t\"I get frustrated to the point of distraction by shoddy craftsmanship.\",\n\t\t\"Though I am an excellent crafter, my work tends to look as though it belongs on a ship.\",\n\t\t\"I am so obsessed with sketching my ideas for elaborate inventions that I sometimes forget little thing like eating and sleeping.\",\n\t\t\"I'm judgmental of those who are not skilled with tools of some kind.\",\n\t\t\"I sometimes take things that don't belong to me, especially if they are very well made.\"\n\t],\n\textra : [\n\t\t\"Select a Sea's Influence\",\n\t\t\"Grand designs\",\n\t\t\"Solid and sound\",\n\t\t\"Favored\",\n\t\t\"Master of armaments\",\n\t\t\"Low places\",\n\t\t\"Mysteries of the deep\"\n\t]\n};\nBackgroundFeatureList[\"i'll patch it!\"] = {\n\tdescription : \"Provided I have carpenter's tools and wood, I can perform repairs on a water vehicle. When I use this ability, I restore a number of hit points to the hull of a water vehicle equal to 5\\xD7 my proficiency modifier. A vehicle cannot be patched by me in this way again until after it has been pulled ashore and fully repaired.\",\n\tsource : [[\"GoS\", 33], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"smuggler\"] = {\n\tregExpSearch : /smuggler/i,\n\tname : \"Smuggler\",\n\tsource : [[\"GoS\", 34], [\"ALbackground\", 0]],\n\tskills : [\"Athletics\", \"Deception\"],\n\tgold : 15,\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Leather boots or vest\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Vehicles (water)\"],\n\tfeature : \"Down Low\",\n\ttrait : [\n\t\t\"I love being on the water but hate fishing.\",\n\t\t\"I think of everything in terms of monetary value.\",\n\t\t\"I never stop smiling.\",\n\t\t\"Nothing rattles me; I have a lie for every occasion.\",\n\t\t\"I love gold but won't cheat a friend.\",\n\t\t\"I enjoy doing things others believe to be impossible.\",\n\t\t\"I become wistful when I see the sun rise over the ocean.\",\n\t\t\"I am no common criminal; I am a mastermind.\"\n\t],\n\tideal : [\n\t\t[\"Wealth\", \"Wealth. Heaps of coins in a secure vault is all I dream of. (Any)\"],\n\t\t[\"Smuggler's Code\", \"Smuggler's Code. I uphold the unwritten rules of the smugglers, who do not cheat one another or directly harm innocents. (Lawful)\"],\n\t\t[\"All for a Coin\", \"All for a Coin. I'll do nearly anything if it means I turn a profit. (Evil)\"],\n\t\t[\"Peace and Prosperity\", \"Peace and Prosperity. I smuggle only to achieve a greater goal that benefits my community. (Good)\"],\n\t\t[\"People\", \"People. For all my many lies, I place a high value on friendship. (Any)\"],\n\t\t[\"Daring\", \"Daring. I am most happy when risking everything. (Any)\"]\n\t],\n\tbond : [\n\t\t\"My vessel was stolen from me, and I burn with the desire to recover it.\",\n\t\t\"I intend to become the leader of the network of smugglers that I belong to.\",\n\t\t\"I owe a debt that cannot be repaid in gold.\",\n\t\t\"After one last job, I will retire from the business.\",\n\t\t\"I was tricked by a fellow smuggler who stole something precious from me. I will find that thief.\",\n\t\t\"I give most of my profits to a charitable cause, and I don't like to brag about it.\"\n\t],\n\tflaw : [\n\t\t\"Lying is reflexive, and I sometimes engage in it without realizing.\",\n\t\t\"I tend to assess my relationships in terms of profit and loss.\",\n\t\t\"I believe everyone has a price and am cynical toward those who present themselves as virtuous.\",\n\t\t\"I struggle to trust the words of others.\",\n\t\t\"Few people know the real me.\",\n\t\t\"Though I act charming, I feel nothing for others and don't know what friendship is.\"\n\t],\n\textra : [\n\t\t\"Select a Claim to Fame\",\n\t\t\"Spirit of the whale\",\n\t\t\"Cart and sword\",\n\t\t\"The recruit\",\n\t\t\"River of shadows\",\n\t\t\"Gold-hearted\",\n\t\t\"Playing both sides\"\n\t]\n};\nBackgroundFeatureList[\"down low\"] = {\n\tdescription : \"I am acquainted with a network of smugglers who are willing to help me out of tight spots. While in a particular town, city, or other similarly sized community, my companions and I can stay for free in safe houses. Safe houses provide a poor lifestyle. While staying at a safe house, I can choose to keep my presence (and that of my companions) a secret.\",\n\tsource : [[\"GoS\", 34], [\"ALbackground\", 0]]\n};\n\nMagicItemsList[\"charm of plant command\"] = {\n\tname : \"Charm of Plant Command\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"C\",\n\tdescription : \"This fist-sized charm is made from a bundle of dried plant stems wrapped in silver thread. It has 3 charges, regain all at dawn. As an action, I can expend 1 charge to cast Speak With Plants. While that spell lasts, I also have adv. on Charisma checks made to influence the behavior, demeanor, and attitude of plants.\",\n\tdescriptionFull : \"This fist-sized charm is made from a bundle of dried plant stems wrapped in silver thread. Hung on a leather thong, it is typically worn around the neck or attached to a belt.\\n   This charm has 3 charges. While you bear the charm, you can expend 1 charge as an action to cast the Speak With Plants spell. For the duration of the spell, you also have advantage on Charisma checks made to influence the behavior, demeanor, and attitude of plants. The charm regains all expended charges at dawn each day.\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"speak with plants\"],\n\t\tselection : [\"speak with plants\"],\n\t\tfirstCol : 1\n\t}],\n\tspellChanges : {\n\t\t\"speak with plants\" : {\n\t\t\tdescription : \"Talk with plants about previous 24h; plants to difficult terrain or vice versa; adv. Cha checks vs. plants\",\n\t\t\tchanges : \"For the duration of the spell, I also have advantage on Charisma checks made to influence the behavior, demeanor, and attitude of plants.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"cursed luckstone\"] = {\n\tname : \"Cursed Luckstone\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"C\",\n\tdescription : \"This flat, gray-and-black river stone is inscribed with an arcane symbol. It is cursed and attuning to it curses me. Once per dawn while it is on my person, I can gain adv. on one ability check of my choice, but disadv. on my next two ability checks. Discarding the stone will cause it to teleport back into my pocket.\",\n\tdescriptionFull : \"This flat, gray-and-black river stone is inscribed with an unknown arcane symbol and feels cool to the touch. While carrying the stone, you can gain advantage on one ability check of your choice. The stone can't be used this way again until the next dawn.\\n   \" + toUni(\"Curse\") + \"This item is cursed. Attuning to it curses you until you are targeted by a remove curse spell or similar magic. As long as you remain cursed, you cannot discard the stone, which immediately teleports back into your pocket or pack. After you use the stone's magic, your next two ability checks are made with disadvantage.\",\n\tattunement : true,\n\tusages : 1,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"helm of underwater action\"] = {\n\tname : \"Helm of Underwater Action\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"While wearing this brass helmet, I can breathe underwater, I gain darkvision with a range of 60 ft, and I gain a swimming speed of 30 ft.\",\n\tdescriptionFull : \"While wearing this brass helmet, you can breathe underwater, you gain darkvision with a range of 60 feet, and you gain a swimming speed of 30 feet.\",\n\tattunement : true,\n\tweight : 1,\n\tvision : [[\"Darkvision\", \"fixed 60\"]],\n\tspeed : { swim : { spd : 30, enc : 20 } }\n}\nMagicItemsList[\"pipe of remembrance\"] = {\n\tname : \"Pipe of Remembrance\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Smoke exhaled from this delicate wooden pipe with a river stone bowl does not dissipate, but lingers around. Once per dawn, I can have that smoke form moving shapes after 10 minutes. The shapes reenact my most impressive and heroic achievements realistically for 5 minutes, after which the smoke dissipates.\",\n\tdescriptionFull : \"This long, delicate wooden pipe features a bowl made from smooth river stone. When the pipe is lit, smoke exhaled from it does not dissipate, instead lingering around the bearer. After 10 minutes, the smoke forms moving shapes that reenact the bearer's most impressive and heroic achievements for 5 minutes. When this realistic performance is complete, the smoke dissipates. The pipe can't be used this way again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"pressure capsule\"] = {\n\tname : \"Pressure Capsule\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Consuming this capsule of beeswax, sand, and enchanted water plants will prevent the effects of swimming at depths greater than 100 ft for 1 hour. Thus, a creature without a swimming speed does not multiply the time spend swimming at depth for the purpose of determining exhaustion.\",\n\tdescriptionFull : \"This small capsule is made of beeswax blended with sand and a variety of enchanted water plants. A creature who consumes a pressure capsule ignores the effects of swimming at depths greater than 100 feet for 1 hour (see \\\"Unusual Environments\\\" in chapter 5 of the Dungeon Master's Guide).\" // addition of 1 hour duration from AL content catalogue v8.08\n}\nMagicItemsList[\"sekolahian worshiping statuette\"] = {\n\tname : \"Sekolahian Worshiping Statuette\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Skillfully carved from sandstone, this 1-ft-tall statuette depicts a shark twisting through the water with its mouth open. Once per hour when a Tiny sea-dwelling animal is within 1 inch of the statuette's mouth, the shark flashes to life and deals 1 piercing damage to it.\",\n\tdescriptionFull : \"Skillfully carved from sandstone, this 1-foot-tall statuette depicts a shark twisting through the water with its mouth open. If any Tiny sea-dwelling animal is within 1 inch of the statuette's mouth, the shark flashes to life and deals 1 piercing damage to it. The shark can deal damage in this way no more than once per hour.\"\n}\n\n// Creatures [Sea Lion removed, because it was completely rewritten as a monstrosity according to 2020 errata https://media.wizards.com/2020/dnd/downloads/GoS-Errata.pdf ]\nCreatureList[\"fish\"] = {\n\tname : \"Fish\",\n\tsource : [[\"GoS\", 215]],\n\tsize : 5,\n\ttype : \"Beast\",\n\tcompanion : \"familiar\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 1,\n\thd : [1, 4],\n\tspeed : \"swim 40 ft\",\n\tscores : [2, 16, 9, 1, 7, 2],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 8,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The fish can breathe only underwater.\"\n\t}]\n}\nCreatureList[\"giant white moray eel\"] = {\n\tname : \"Giant White Moray Eel\",\n\tnameAlt : [\"Eel, Giant White Moray\"],\n\tsource : [[\"GoS\", 216]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 60,\n\thd : [8, 12],\n\tspeed : \"swim 40 ft\",\n\tscores : [19, 14, 12, 1, 10, 3],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 4\n\t},\n\tsenses : \"Blindsight 10 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}]\n}\nCreatureList[\"giant coral snake\"] = {\n\tname : \"Giant Coral Snake\",\n\tnameAlt : [\"Snake, Giant Coral\"],\n\tsource : [[\"GoS\", 236]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 90,\n\thd : [12, 10],\n\tspeed : \"30 ft, swim 30 ft\",\n\tscores : [12, 16, 14, 2, 10, 3],\n\tskills : {\n\t\t\"perception\" : 2\n\t},\n\tsenses : \"Blindsight 10 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [2, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Target DC 12 Con save or stunned until end of its next turn and short-term madness for 10 min\"\n\t}]\n}\nCreatureList[\"giant sea eel\"] = {\n\tname : \"Giant Sea Eel\",\n\tnameAlt : [\"Eel, Giant Sea\"],\n\tsource : [[\"GoS\", 237]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 19,\n\thd : [3, 10],\n\tspeed : \"swim 40 ft\",\n\tscores : [11, 14, 12, 2, 10, 7],\n\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 4\n\t},\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"1/2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [2, 10, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}]\n}\n\n// pub_20190618_AcqInc.js\n// This file adds all material from the Acquisitions Incorporated book to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"AcqInc\"] = {\n\tname : \"Acquisitions Incorporated\",\n\tabbreviation : \"AcqInc\",\n\tabbreviationSpellsheet : \"AI\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Penny Arcade\",\n\turl : \"https://dnd.wizards.com/products/acquisitions-incorporated\",\n\tdate : \"2019/06/18\"\n};\n\nBackgroundList[\"celebrity adventurer's scion\"] = {\n\tregExpSearch : /^(?=.*celebrity)(?=.*adventurer)(?=.*scion).*$/i,\n\tname : \"Celebrity Adventurer's Scion\",\n\tsource : [[\"AcqInc\", 48]],\n\tskills : [\"Perception\", \"Performance\"],\n\tgold : 30,\n\tequipleft : [\n\t\t[\"Disguise kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\ttoolProfs : [\"Disguise kit\"],\n\tfeature : \"Name Dropping\",\n\ttrait : [\n\t\t\"I will never get out of my famous parent's shadow, and no one else will ever understand this burden.\",\n\t\t\"I've seen enough of the adventuring life to have realistic expectations and empathy for my peers.\",\n\t\t\"Living up to my legacy will be difficult, but I'm going to do it.\",\n\t\t\"I'm used to the very best in life, and that's a hard habit to break.\",\n\t\t\"My parent taught me a sense of duty. I strive to uphold it, even when the odds are against me.\",\n\t\t\"No one can fake a smile, a handshake, or an interested nod like I can.\",\n\t\t\"I've been part of the adventuring life since I was old enough to walk. Let me explain a few things to you.\",\n\t\t\"No risk is too great for the rewards of defeating my enemies... and taking their stuff.\"\n\t],\n\tideal : [\n\t\t[\"Power\", \"Power. The only way to get ahead in this world is to attain power and hold onto it with all your might. (Evil)\"],\n\t\t[\"Peace\", \"Peace. Those who can find or make peace in the chaotic world around them have everything. (Lawful)\"],\n\t\t[\"Fame\", \"Fame. I've seen what fame can bring. And I'll do anything to get all that for myself. (Neutral)\"],\n\t\t[\"Training\", \"Training. Hard work, sacrifice, and training lead to success\\u2014and eventually to perfection. (Any)\"],\n\t\t[\"Anonymity\", \"Anonymity. I want to be successful. And alone. With lots of guards and wards between me and everyone else in the world. (Any)\"],\n\t\t[\"Wisdom\", \"Wisdom. Material wealth is an illusion. Wisdom is the real treasure. (Good)\"]\n\t],\n\tbond : [\n\t\t\"While my parent was out adventuring, a servant raised me, and I care about that person more than anyone.\",\n\t\t\"I consider every member of my parent's former adventuring party to be family.\",\n\t\t\"Despite their absences, my famous parent was kind and generous. I love them and want to make them proud.\",\n\t\t\"My parent once brought a cursed magic item home. It is my obsession.\",\n\t\t\"My childhood home holds all my best memories, and its upkeep is my primary concern.\",\n\t\t\"Growing up, I had an imaginary friend I could always count on. That friend is still with me.\"\n\t],\n\tflaw : [\n\t\t\"You don't know what I'm going through. You never can.\",\n\t\t\"You. Fetch my cloak. And maybe rub my feet for a while.\",\n\t\t\"My comrades are brave, but I must defeat this threat alone to prove my worth.\",\n\t\t\"Oh, yeah, that spell? Named after my parent's best friend. Let me tell you about them.\",\n\t\t\"My best days are behind me. Ahead lies only toil, pain, and death.\",\n\t\t\"You have to look out for yourself. No one else will.\"\n\t]\n};\nBackgroundFeatureList[\"name dropping\"] = {\n\tdescription : \"I know and have met any number of powerful people across the land, and some might even remember me. I might be able to wrangle minor assistance from a major figure in the campaign, at the DM's discretion. Additionally, the common folk treat me with deference, and my heritage and the stories I tell might be good for a free meal or a place to sleep.\",\n\tsource : [[\"AcqInc\", 48]]\n};\n\nBackgroundList[\"failed merchant\"] = {\n\tregExpSearch : /^(?=.*failed)(?=.*merchant).*$/i,\n\tname : \"Failed Merchant\",\n\tsource : [[\"AcqInc\", 49]],\n\tskills : [\"Investigation\", \"Persuasion\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Merchant's scale\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Supply Chain\",\n\ttrait : [\n\t\t\"I didn't have the cutthroat attitude necessary to succeed. I won't make that mistake again.\",\n\t\t\"Even my competitors said I was affable and talented. Those traits should serve me well.\",\n\t\t\"To prosper, you have to be in control.\",\n\t\t\"The customer is always right.\",\n\t\t\"I was cutting corners and breaking deals to maximize profit. That's why I failed.\",\n\t\t\"When I get an idea, I am single-minded in its execution\\u2014even if it's a terrible idea.\",\n\t\t\"If I can be everyone's friend, I'll always have support.\",\n\t\t\"My heart wasn't in being a merchant, so I failed. I'm not all that keen on adventuring either, but I need the money.\"\n\t],\n\tideal : [\n\t\t[\"Survival\", \"Survival. Where there's life, there's hope. If I remain alive and flexible, I can succeed. (Any)\"],\n\t\t[\"Generosity\", \"Generosity. People helped me when I was down. Now that I'm back on my feet, I'll pay it forward. (Good)\"],\n\t\t[\"Excitement\", \"Excitement. Caution got me nowhere in my previous business. I'm not going to let it hold me back now. (Chaotic)\"],\n\t\t[\"Wealth\", \"Wealth. With enough coin, I can buy comfort, power, knowledge, and even eternal life. Nothing will stand between me and money. (Evil)\"],\n\t\t[\"Stability\", \"Stability. The mercantile trade was too chaotic for me. I need a nice stable profession, like adventuring. (Lawful)\"],\n\t\t[\"Redemption\", \"Redemption. Too many people consider me a failure. So I need to prove them wrong. (Any)\"]\n\t],\n\tbond : [\n\t\t\"My family means everything to me. I failed them before, and I must not do so again.\",\n\t\t\"My church provides a connection to my god, so I must ensure that it is protected and funded.\",\n\t\t\"My former business partner fell ill, and then our business failed. Part of my new venture involves earning enough to take care of their family.\",\n\t\t\"If I take care of my possessions, they'll take care of me. People come and go, but a weapon or a wand is something you can always rely on.\",\n\t\t\"Although my business failed, the people of my community were kind to me. I'll do everything in my power to protect them.\",\n\t\t\"I owe a dangerous person a lot of money. As long as they're happy, they let my debt rest unpaid.\"\n\t],\n\tflaw : [\n\t\t\"Why spend gold here when you can buy the same thing for copper in the next town?\",\n\t\t\"I must have the best of everything. Like, right now.\",\n\t\t\"You haven't heard of me? I'm sure that's because of your ignorance and low breeding.\",\n\t\t\"I failed, but I'm awesome. So when anyone else is successful, it must be because of nepotism, dishonesty, or dumb luck.\",\n\t\t\"I find that most people are trustworthy. Hey, where's my belt pouch?\",\n\t\t\"Nothing gets between me and danger except my fellow adventurers. So I'll be sure to put them there.\"\n\t]\n};\nBackgroundFeatureList[\"supply chain\"] = {\n\tdescription : \"From my time as a merchant, I retain connections with wholesalers, suppliers, and other merchants and entrepreneurs. I can call upon these connections when looking for items or information.\",\n\tsource : [[\"AcqInc\", 49]]\n};\n\nBackgroundList[\"gambler\"] = {\n\tregExpSearch : /gambler/i,\n\tname : \"Gambler\",\n\tsource : [[\"AcqInc\", 49]],\n\tskills : [\"Deception\", \"Insight\"],\n\tgold : 15,\n\tequipleft : [\n\t\t[\"Type of gaming set\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Lucky charm\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tfeature : \"Never Tell Me the Odds\",\n\ttrait : [\n\t\t\"I plan for every contingency. Leave nothing to chance!\",\n\t\t\"Every copper wants to be a silver. Each bet is an opportunity.\",\n\t\t\"I'm one of Lady Luck's favored. Anything I try is destined to succeed.\",\n\t\t\"I've lost so much to gambling that I refuse to spend money on anything anymore.\",\n\t\t\"Nothing is certain. Planning is a coward's act.\",\n\t\t\"I can't be sure who I've swindled, cheated, or defeated, so I keep a low profile in public.\",\n\t\t\"The perfect bet is out there somewhere. I just have to keep my eyes open.\",\n\t\t\"I have beaten my addiction, but all it takes is one weak moment and I'll be back at the card table.\"\n\t],\n\tideal : [\n\t\t[\"Knowledge\", \"Knowledge. Knowledge is power, and knowing which horse to back is the key to success. (Any)\"],\n\t\t[\"Fate\", \"Fate. Whatever happens is fated, regardless of any planning or striving. (Lawful)\"],\n\t\t[\"Bravery\", \"Bravery. If you want to succeed, you have to take risks. (Chaotic)\"],\n\t\t[\"Survival\", \"Survival. You can't win if you're dead. Live to fight another day\\u2014when the odds might be more in your favor. (Any)\"],\n\t\t[\"Reliability\", \"Reliability. When I was in need, I was able to rely on others. Now I want to be the one others rely on. (Good)\"],\n\t\t[\"Victory\", \"Victory. Winning is the real measure of a person. In the end, the only thing that matters is the scoreboard. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"One person in particular owes me a lot of money, and I need to keep them alive if I want to be repaid.\",\n\t\t\"I'm loyal to the friend or family member who taught me how to gamble.\",\n\t\t\"The person who saved me from my gambling addiction is the only reason I'm alive today.\",\n\t\t\"A patron once fronted me money in exchange for a percentage of my winnings. I owe them a debt of gratitude. And a lot of cash.\",\n\t\t\"A criminal syndicate I once played for isn't happy I left the game, and its enforcers are looking for me.\",\n\t\t\"Urchins once helped me find marks for my games. Now I'm driven to help them escape the streets.\"\n\t],\n\tflaw : [\n\t\t\"I don't know when to quit. Especially when everyone else is telling me to.\",\n\t\t\"I save my sympathy for my friends, and I have no friends.\",\n\t\t\"You think we're in trouble now? Let me tell you how bad things are likely to get!\",\n\t\t\"You can loan me a little, right? I've got a sure thing. I'll double your money, guaranteed.\",\n\t\t\"I was once a terribly flawed person, like you. Let me tell you how you can save yourself.\",\n\t\t\"I'm a great gambler. I'm just bad at math and logic.\"\n\t]\n};\nBackgroundFeatureList[\"never tell me the odds\"] = {\n\tdescription : \"Odds and probability are my bread and butter. During downtime activities that involve games of chance or figuring odds on the best plan, I can get a solid sense of which choice is likely the best one and which opportunities seem too good to be true, at the DM's determination.\",\n\tsource : [[\"AcqInc\", 50]]\n};\n\nBackgroundList[\"plaintiff\"] = {\n\tregExpSearch : /plaintiff/i,\n\tname : \"Plaintiff\",\n\tsource : [[\"AcqInc\", 50]],\n\tskills : [\"Medicine\", \"Persuasion\"],\n\tgold : 20,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Legalese\",\n\ttrait : [\n\t\t\"I can't believe I have a chance to join Acquisitions Incorporated! The fun I'm going to have!\",\n\t\t\"I've been wronged my entire life, and the world owes me.\",\n\t\t\"I have always tried to make the best of a bad situation.\",\n\t\t\"The law doesn't protect the honest and the hard working. I'm going to do whatever needs to be done to make things right.\",\n\t\t\"I'm always in the wrong place at the wrong time.\",\n\t\t\"My superiors are smarter and wiser than I am. I do what I'm told.\",\n\t\t\"Never pass up the opportunity to make an easy bit of coin. That's my motto.\",\n\t\t\"I'm beginning to feel like the gods are not on my side.\"\n\t],\n\tideal : [\n\t\t[\"Justice\", \"Justice. Those who break the law need to answer for their crimes. (Lawful)\"],\n\t\t[\"Freedom\", \"Freedom. People must have the freedom to do what they want and pursue their dreams. (Chaotic)\"],\n\t\t[\"Greed\", \"Greed. Everyone I see is getting theirs, so I'm surely going to get mine. (Evil)\"],\n\t\t[\"Chaos\", \"Chaos. You're out of order! And you're out of order! This whole realm is out of order! (Chaotic)\"],\n\t\t[\"Humility\", \"Humility. I'm just a small part of a larger whole. So is everyone else. (Neutral)\"],\n\t\t[\"Responsibility\", \"Responsibility. We all have our roles to play. I'll hold up my end of the bargain. (Any)\"]\n\t],\n\tbond : [\n\t\t\"Others hurt in the same accident that hurt me are my new family. I'll make sure they're taken care of.\",\n\t\t\"The rulers of this place were kind to me, and they have my lifelong devotion.\",\n\t\t\"My parents worry about me, but I'll make them proud.\",\n\t\t\"The only bond that matters is the one holding my money pouch to my belt.\",\n\t\t\"The other new hires at Acquisitions Incorporated are my allies. We have each other's backs.\",\n\t\t\"My legal counsel is my best friend. I owe all my forthcoming opportunities to their hard work.\"\n\t],\n\tflaw : [\n\t\t\"The person who gains the most reward for the least effort wins.\",\n\t\t\"Three magic beans for just one cow? What a deal!\",\n\t\t\"I have only one vice, but it controls my life.\",\n\t\t\"Sleep is for the weak. We need to keep training more if we're going to be ready for the challenges ahead.\",\n\t\t\"Until my songs are sung in every tavern in this realm, I won't be satisfied.\",\n\t\t\"If people find me unpleasant, that's their problem.\"\n\t]\n};\nBackgroundFeatureList[\"legalese\"] = {\n\tdescription : \"My experience with the local legal system has given me a firm knowledge of its ins and outs. Even when the law is not on my side, I can use complex terms like \\\"ex injuria jus non oritur\\\" to frighten people into thinking I know what I'm talking about. I might be able to intimidate or deceive folks who don't know any better to get favors or special treatment.\",\n\tsource : [[\"AcqInc\", 50]]\n};\n\nBackgroundList[\"rival intern\"] = {\n\tregExpSearch : /^(?=.*rival)(?=.*intern).*$/i,\n\tname : \"Rival Intern\",\n\tsource : [[\"AcqInc\", 51]],\n\tskills : [\"History\", \"Investigation\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Ledger from prev. employer\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Inside Informant\",\n\ttrait : [\n\t\t\"My previous employer didn't respect me, and now I'll do whatever I can to gain respect.\",\n\t\t\"The job is important, but the relationships I forge with my coworkers are even more so.\",\n\t\t\"The job is everything to me. Who needs relaxation, hobbies, and a social life?\",\n\t\t\"I know I'm not the best and brightest, but if I put my best self forward, I can overcome anything.\",\n\t\t\"My former boss was an idiot. So was my boss before that. And before that. I'm sure those were all coincidences.\",\n\t\t\"This company is so much better than my previous one. It will always be the best until they stop paying me.\",\n\t\t\"I know this dagger belongs to the company, but I'm sure they won't miss it. Or this flask. Or this armor.\",\n\t\t\"It's only a matter of time before I'll be upper management. I just have to kiss up to my superiors and kick down those beneath me.\"\n\t],\n\tideal : [\n\t\t[\"Advancement\", \"Advancement. Money and power can be gained more easily within an organization. I plan to gain as much as possible. (Evil)\"],\n\t\t[\"Structure\", \"Structure. Life goes much more smoothly when you follow the rules and work within a system. (Lawful)\"],\n\t\t[\"Uncertainty\", \"Uncertainty. The more chaos that swirls around me, the more opportunities I can find to profit. (Chaotic)\"],\n\t\t[\"Justice\", \"Justice. I can't stand people being treated unjustly. I do whatever it takes to stop injustice and those who flout the law. (Lawful)\"],\n\t\t[\"Pleasure\", \"Pleasure. What's the use of working hard and making money if you can't enjoy the finer things in life? (Any)\"],\n\t\t[\"Power\", \"Power. Money is fine, but real power means never having to say you're sorry. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I have a family member in need. I consider them in everything I do.\",\n\t\t\"My peers keep me grounded.\",\n\t\t\"My past mistakes cost someone else dearly. I have to rectify that.\",\n\t\t\"A childhood mentor put me on my current path. If I succeed, I want to repay that mentor in some way.\",\n\t\t\"I value an oath of loyalty I took to a group of friends over everything else in my life.\",\n\t\t\"Although I don't get along well with people, my pet means the world to me.\"\n\t],\n\tflaw : [\n\t\t\"I know what's best. Trust me.\",\n\t\t\"Flaw? I have no flaws. I'm perfect.\",\n\t\t\"My loyalties are... fluid.\",\n\t\t\"If anything goes wrong, it must be someone else's fault. Let me explain that in detail.\",\n\t\t\"There's right and there's wrong, and there's no gray area in between.\",\n\t\t\"Our superiors might not like what you're doing. I'm going to have to put that in my report.\"\n\t]\n};\nBackgroundFeatureList[\"inside informant\"] = {\n\tdescription : \"I have connections to my previous employer or other groups I dealt with during my previous employment. I can communicate with my contacts, gaining information at the DM's discretion.\",\n\tsource : [[\"AcqInc\", 51]]\n};\n\nRaceList[\"verdan\"] = {\n\tregExpSearch : /verdan/i,\n\tname : \"Verdan\",\n\tsource : [[\"AcqInc\", 74]],\n\tplural : \"Verdan\",\n\tsize : 4, // small at 1st level, but medium from level 5+\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Goblin\", 1],\n\tskills : [\"Persuasion\"],\n\tsavetxt : { text : [\"Adv. on Wis/Cha saves\"] },\n\tage : \" reach adulthood at around the age of 24, and it is thought that they might live to nearly 200 years old. However, because no verdan has died of old age since the race's initial creation, their upper age limits remain subject to speculation.\",\n\theight : \" are between 3 and a half and 4 feet tall, plus 2 feet from 5th level onwards\",\n\theightMetric : \" are between 100 and 120 cm tall, plus 60 cm from 5th level onwards\",\n\tscores : [0, 0, 1, 0, 0, 2],\n\ttrait : \"Verdan (+1 Constitution, +2 Charisma)\\nSudden Growth Spurt: At 5th level, I grow 2 ft, increasing my size from Small to Medium.\\nBlack Blood Healing: When I roll a 1 or 2 on any HD I spend at the end of short rest, I can reroll the die and must use the new roll.\\nLimited Telepathy: I can telepathically communicate simple ideas and straightforward concepts to a creature I can see within 30 ft, if it can understand at least one language.\\nTelepathic Insight: I have advantage on Wisdom and Charisma saving throws.\",\n\tfeatures : {\n\t\t\"sudden growth spurt\" : {\n\t\t\tname : \"Sudden Growth Spurt\",\n\t\t\tminlevel : 5,\n\t\t\teval : function () { PickDropdown(\"Size Category\", 3); },\n\t\t\tremoveeval : function () { PickDropdown(\"Size Category\", 4); }\n\t\t}\n\t},\n\tadvantages : [\n\t\t[\"Wisdom\", true],\n\t\t[\"Charisma\", true]\n\t]\n}\n\nSpellsList[\"distort value\"] = {\n\tname : \"Distort Value\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"AcqInc\", 75]],\n\tlevel : 1,\n\tschool : \"Illus\",\n\ttime : \"1 min\",\n\trange : \"Touch\",\n\tcomponents : \"V\",\n\tduration : \"8 hours\",\n\tdescription : \"1 obj up to 1+1/SL cu ft doubles/halves in perceived value; Investigation vs. spell DC to see true value\",\n\tdescriptionFull : \"Do you need to squeeze a few more gold pieces out of a merchant as you try to sell that weird octopus statue you liberated from the chaos temple? Do you need to downplay the worth of some magical assets when the tax collector stops by? Distort value has you covered.\\n   You cast this spell on an object no more than 1 foot on a side, doubling the object's perceived value by adding illusory flourishes or polish to it, or reducing its perceived value by half with the help of illusory scratches, dents, and other unsightly features. Anyone examining the object can ascertain its true value with a successful Intelligence (Investigation) check against your spell save DC.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the maximum size of the object increases by 1 foot for each slot level above 1st.\"\n};\nSpellsList[\"fast friends\"] = {\n\tname : \"Fast Friends\",\n\tclasses : [\"bard\", \"cleric\", \"wizard\"],\n\tsource : [[\"AcqInc\", 75]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V\",\n\tduration : \"Conc, 1 h\",\n\tsave : \"Wis\",\n\tdescription : \"1+1/SL humanoid save or charmed and perform tasks I ask it to do; adv. save if me/ally is fighting it\",\n\tdescriptionFull : \"When you need to make sure something gets done, you can't rely on vague promises, sworn oaths, or binding contracts of employment. When you cast this spell, choose one humanoid within range that can see and hear you, and that can understand you. The creature must succeed on a Wisdom saving throw or become charmed by you for the duration. While the creature is charmed in this way, it undertakes to perform any services or activities you ask of it in a friendly manner, to the best of its ability.\\n   You can set the creature new tasks when a previous task is completed, or if you decide to end its current task. If the service or activity might cause harm to the creature, or if it conflicts with the creature's normal activities and desires, the creature can make another Wisdom saving throw to try to end the effect. This save is made with advantage if you or your companions are fighting the creature. If the activity would result in certain death for the creature, the spell ends.\\n   When the spell ends, the creature knows it was charmed by you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional creature for each slot level above 3rd.\"\n};\nSpellsList[\"gift of gab\"] = {\n\tname : \"Gift of Gab\",\n\tclasses : [\"bard\", \"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 2,\n\tschool : \"Ench\",\n\ttime : \"1 rea\",\n\ttimeFull : \"1 reaction, which you take when you speak to another creature\",\n\trange : \"Self\",\n\tcomponents : \"V,S,R\\u2020\",\n\tcompMaterial : \"2 gp royalty component\",\n\tduration : \"Instantaneous\",\n\tdescription : \"Cast when talking, any crea within 5 ft think what I said in the last 6 seconds was only to cast a spell\",\n\tdescriptionFull : \"Jim Darkmagic is said to have invented this spell, originally calling it 'I said what?!'. Have you ever been talking to the local monarch and accidentally mentioned how their son looks like your favorite hog from when you were growing up on the family farm? We've all been there! But rather than being beheaded for an honest slip of the tongue, you can pretend it never happened\\u2014by ensuring that no one knows it happened.\\n   When you cast this spell, you skillfully reshape the memories of listeners in your immediate area, so that each creature of your choice within 5 feet of you forgets everything you said within the last 6 seconds. Those creatures then remember that you actually said the words you speak as the verbal component of the spell.\"\n};\nSpellsList[\"incite greed\"] = {\n\tname : \"Incite Greed\",\n\tclasses : [\"cleric\", \"warlock\", \"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A gem worth at least 50 gp\",\n\tduration : \"Conc, 1 min\",\n\tsave : \"Wis\",\n\tdescription : \"Any crea that see me save or charmed, only move to me, if in 5 ft do nothing; save end of each turn\",\n\tdescriptionFull : \"When you cast this spell, you present the gem used as the material component and choose any number of creatures within range that can see you. Each target must succeed on a Wisdom saving throw or be charmed by you until the spell ends, or until you or your companions do anything harmful to it. While charmed in this way, a creature can do nothing but use its movement to approach you in a safe manner. While an affected creature is within 5 feet of you, it cannot move, but simply stares greedily at the gem you present.\\n   At the end of each of its turns, an affected target can make a Wisdom saving throw. If it succeeds, this effect ends for that target.\"\n};\nSpellsList[\"jim's glowing coin\"] = {\n\tname : \"Jim's Glowing Coin\",\n\tclasses : [\"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 2,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,M,R\\u2020\",\n\tcompMaterial : \"A coin, and 2 gp royalty component\",\n\tduration : \"1 min\",\n\tsave : \"Wis\",\n\tdescription : \"30-ft radius any creature I can see save or disadvantage on Perception and Initiative for duration\",\n\tdescriptionFull : \"Of the many tactics employed by master magician and renowned adventurer Jim Darkmagic, the old glowing coin trick is a time-honored classic. When you cast the spell, you hurl the coin that is the spell's material component to any spot within range. The coin lights up as if under the effect of a light spell. Each creature of your choice that you can see within 30 feet of the coin must succeed on a Wisdom saving throw or be distracted for the duration. While distracted, a creature has disadvantage on Wisdom (Perception) checks and initiative rolls.\"\n};\nSpellsList[\"jim's magic missile\"] = {\n\tname : \"Jim's Magic Missile\",\n\tclasses : [\"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 1,\n\tschool : \"Evoc\",\n\ttime : \"1 a\",\n\trange : \"120 ft\",\n\tcomponents : \"V,S,R\\u2020\",\n\tcompMaterial : \"1 gp royalty component per spell slot level used\",\n\tduration : \"Instantaneous\",\n\tdescription : \"3+1/SL darts, each spell atk for 2d4 Force dmg, 5d4 crit; any 1 to hit, all dmg me 1 (1+1/SL gp cons.)\",\n\tdescriptionShorter : \"3+1/SL darts, atk 2d4 Force dmg, 5d4 crit; any 1 to hit, all dmg me 1 (1+1/SL gp cons.)\",\n\tdescriptionFull : \"Any apprentice wizard can cast a boring old magic missile. Sure, it always strikes its target. Yawn. Do away with the drudgery of your grandfather's magic with this improved version of the spell, as used by Jim Darkmagic!\\n   You create three twisting, whistling, hypoallergenic, gluten-free darts of magical force. Each dart targets a creature of your choice that you can see within range. Make a ranged spell attack for each missile. On a hit, a missile deals 2d4 force damage to its target.\\n   If the attack roll scores a critical hit, the target of that missile takes 5d4 force damage instead of you rolling damage twice for a critical hit. If the attack roll for any missile is a 1, all missiles miss their targets and blow up in your face, dealing 1 force damage per missile to you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the spell creates one more dart, and the royalty component increases by 1 gp, for each slot level above 1st.\",\n\tdynamicDamageBonus : {\n\t\tmultipleDmgMoments : true,\n\t\textraDmgGroupsSameType : /((?:\\+?\\d+d?\\d*)+)( crit)/i\n\t}\n};\nSpellsList[\"motivational speech\"] = {\n\tname : \"Motivational Speech\",\n\tclasses : [\"bard\", \"cleric\"],\n\tsource : [[\"AcqInc\", 77]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 min\",\n\trange : \"60 ft\",\n\tcomponents : \"V\",\n\tduration : \"1 h\",\n\tdescription : \"5 crea that hear me 5+5/SL temp HP, adv. Wis saves, if hit adv. on next atk; stops when temp HP gone\",\n\tdescriptionFull : \"You address allies, staff, or innocent bystanders to exhort and inspire them to greatness, whether they have anything to get excited about or not. Choose up to five creatures within range that can hear you. For the duration, each affected creature gains 5 temporary hit points and has advantage on Wisdom saving throws. If an affected creature is hit by an attack, it has advantage on the next attack roll it makes. Once an affected creature loses the temporary hit points granted by this spell, the spell ends for that creature.\" + AtHigherLevels + \"At Higher Levels. When you cast this spell using a spell slot of 4th level or higher, the temporary hit points increase by 5 for each slot level above 3rd.\"\n};\n\n// Magic Item from the adventure\nMagicItemsList[\"piercer\"] = {\n\tname : \"Piercer\",\n\tsource : [[\"AcqInc\", 121]],\n\ttype : \"weapon (shortsword)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magical shortsword. I regain the maximum possible number of hit points from expended Hit Dice. However, I must eat twice as much food each day to avoid exhaustion, a minimum of 2 lb.\",\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon.\\n   A character attuned to the sword regains the maximum possible number of hit points from expended Hit Dice. However, the attuned character must eat twice as much food each day (a minimum of 2 pounds) to avoid exhaustion (see \\\"The Environment\\\" in chapter 8 of the Player's Handbook.)\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"shortsword\",\n\t\tregExpSearch : /piercer/i,\n\t\tname : \"Piercer\",\n\t\tsource : [[\"AcqInc\", 121]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\n\n// pub_20190917_DiA.js\n// This file adds all material from the Baldur's Gate: Descent into Avernus adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"DiA\"] = {\n\tname : \"Baldur's Gate: Descent into Avernus [background, items]\",\n\tabbreviation : \"DiA\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dnd.wizards.com/products/baldurs-gate-descent-into-avernus\",\n\tdate : \"2019/09/17\"\n};\n\nBackgroundList[\"faceless\"] = {\n\tregExpSearch : /faceless/i,\n\tname : \"Faceless\",\n\tsource : [[\"DiA\", 203]],\n\tskills : [\"Deception\", \"Intimidation\"],\n\tgold : 10,\n\tlanguageProfs : [1],\n\ttoolProfs : [\"Disguise kit\"],\n\tequipleft : [\n\t\t[\"Disguise kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Costume\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Dual Personalities\",\n\ttrait : [\n\t\t\"I'm earnest and uncommonly direct.\",\n\t\t\"I strive to have no personality\\u2014it's easier to forget what's hardly there.\",\n\t\t\"I treasure a memento of the person or instance that set me upon my path.\",\n\t\t\"I sleep just as much as I need to and on an unusual schedule.\",\n\t\t\"I think far ahead, a detachedness often mistaken for daydreaming.\",\n\t\t\"I cultivate a single obscure hobby or study and eagerly discuss it at length.\",\n\t\t\"I am ever learning how to be among others\\u2014when to stay quiet, when to laugh.\",\n\t\t\"I behave like an extreme opposite of my persona.\"\n\t],\n\tideal : [\n\t\t[\"Justice\",\n\t\t\t\"Justice. Place in society shouldn't determine one's access to what is right. (Good)\"\n\t\t],\n\t\t[\"Security\",\n\t\t\t\"Security. Doing what must be done can't bring the innocent to harm. (Lawful)\"\n\t\t],\n\t\t[\"Confusion\",\n\t\t\t\"Confusion. Deception is a weapon. Strike from where your foes won't expect. (Chaotic)\"\n\t\t],\n\t\t[\"Infamy\",\n\t\t\t\"Infamy. My name will be a malediction, a curse that fulfills my will. (Evil)\"\n\t\t],\n\t\t[\"Incorruptibility\",\n\t\t\t\"Incorruptibility. Be a symbol, and leave your flawed being behind. (Any)\"\n\t\t],\n\t\t[\"Anonymity\",\n\t\t\t\"Anonymity. It's my deeds that should be remembered, not their instrument. (Any)\"\n\t\t]\n\t],\n\tbond : [\n\t\t\"I do everything for my family. My first thought is keeping them safe.\",\n\t\t\"What I do, I do for the world. The people don't realize how much they need me.\",\n\t\t\"I've seen too many in need. I must not fail them as everyone else has.\",\n\t\t\"I stand in opposition, lest the wicked go unopposed.\",\n\t\t\"I am exceptional. I do this because no one else can, and no one can stop me.\",\n\t\t\"I do everything for those who were taken from me.\"\n\t],\n\tflaw : [\n\t\t\"I am callous about death. It comes to us all eventually.\",\n\t\t\"I never make eye contact or hold it unflinchingly.\",\n\t\t\"I have no sense of humor. Laughing is uncomfortable and embarrassing.\",\n\t\t\"I overexert myself, sometimes needing to recuperate for a day or more.\",\n\t\t\"I think far ahead, a detachedness often mistaken for daydreaming.\",\n\t\t\"I see morality entirely in black and white.\"\n\t],\n\textra : [\n\t\t\"Select a Faceless Persona\",\n\t\t\"Flamboyant spy or brigand\",\n\t\t\"Incarnation of nation or people\",\n\t\t\"Scoundrel with masked guise\",\n\t\t\"Vengeful spirit\",\n\t\t\"Manifestation of deity or faith\",\n\t\t\"Beauty accented with makeup\",\n\t\t\"Impersonation of another hero\",\n\t\t\"Embodiment of a school of magic\",\n\t\t\"Warrior with distinctive armor\",\n\t\t\"Fear-inspiring monstrous disguise\"\n\t]\n};\nBackgroundFeatureList[\"religious community\"] = {\n\tdescription : \"I'm tightly connected with the religious community of the city. I know if a deity has a following in the city, any places that faith openly congregates, and the neighborhoods those faithful typically inhabit. While this isn't remarkable for most of the city's larger faiths, keeping track of the hundreds of religions newcomers bring with them is no mean feat.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"long-lost heir\"] = {\n\tdescription : \"I can pose as the long-lost heir to some imaginary or dead lineage. I'm well-versed in the mannerisms and idiosyncrasies of nobility, imitating them smoothly enough to convince anybody of my authenticity. However, any true test is likely to reveal my deception. I can enter places that only nobility can and might be able to bluff other through with me.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"criminal connections\"] = {\n\tdescription : \"In a big city, crime is just another business. As a result, I can arrange a meeting with a low-ranking operative of nearly any business, noble family, crew, government institution, or guild. This operative will hear me out and, at their discretion, take my information or request up their chain of command. These meetings almost always occur in shady venues.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"backstage pass\"] = {\n\tdescription : \"I know that most of the real business, in entertainment or otherwise, happens behind the scenes. It's easy for me to case what sorts of audiences attend a venue. After a successful performance, I may meet an enthusiastic member of the crowd\\u2014someone of an occupation or social class that frequents the venue, who is delighted to talk with me, and to listen.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"dual personalities\"] = {\n\tdescription : \"The world knows me as my persona and those who seek to learn more about me find themselves stymied by my disguise. I'm unidentifiable as my true self while disguised and behaving as my persona, allowing me to change appearances between my two personalities as I wish. My deception might lose its effectiveness if someone realize the connection.\",\n\tsource : [[\"DiA\", 204], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"social vengeance\"] = {\n\tdescription : \"I've lived my whole life amongst the lower class of the city, seeing the upper class flaunt their wealth while my hardworking neighbors struggled. I know their eagerness to give the wealthy their comeuppance. I can convince 1d6 commoners in a busy area in 2d10 min\" + (typePF ? \"utes\" : \"\") + \" to perform a non-illegal act that inconveniences a guard, noble, or wealthy looking individual.\",\n\tsource : [[\"DiA\", 204], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"professional courtesy\"] = {\n\tdescription : \"I conduct my business in one of the city's districts and I'm familiar with its local crews, their territories, and inter-crew politics. When I need information about something in my district, I can learn the local gossip from crew members. Within my district, I can gain entry to nearly any bank, guild hall, place of business, workhouse, or crew meeting place.\",\n\tsource : [[\"DiA\", 205], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"the real city\"] = {\n\tdescription : \"I know the city that most of its inhabitants ignore, the dog-eat-dog world of the homeless and unfortunate. I know where to go for anonymity. In these slums and alley camps, I can get a damp bed and a bad meal, but also a degree of privacy and no questions asked. Living here isn't comfortable, but it's unlikely any will find me\\u2014and I can stay as long as I want.\",\n\tsource : [[\"DiA\", 205], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"patriar\"] = {\n\tdescription : \"As a member of an elite family of the city, I may pass through without paying tolls, enter the better part of town and stay there after dark, mingle among the nobility unquestioned, and impress those looking for wealthy patrons. My word is accepted over others' without question, and any corruption among guards or officials tends to work in my favor.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"immigrant experience\"] = {\n\tdescription : \"Even after my short time in the city, I've learned it holds more walls and gates than those the guards patrol. I'm known within the city's immigrant communities. Should I ever need to learn about a foreign land, people, tradition, or history, I know where to find someone with firsthand experience\\u2014likely somewhere in the poorer part of town.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"rumor monger\"] = {\n\tdescription : \"Via my personal rumor mill and published articles, I can surmise a great deal about the secrets of the city's inhabitants\\u2014necromancy, spying, smuggling, dealing in magical wares. Whenever a noteworthy crime or happening occurs in the city, I immediately have a list of 1d4 suspects who, if they aren't involved, have a strong chance of knowing who is.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"smuggler's sense\"] = {\n\tdescription : \"I'm familiar with the docks of the city, the movement of inspectors and tax collectors, the way cargo and coin flows, the movements of the harbor guards, and how to operate the port's machinery for moving wares. As a result, it's easy for me to hustle a load of cargo ashore or see such a cargo onto a cooperative ship without attracting suspicion or taxation.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"city guard: lower city (the flaming fists)\"] = {\n\tdescription : \"I'm required to take a regular shift patrolling the lower or outer city and I must report for training once every ten days. In return, I have access to the guard's fortresses and a direct line of communication with officers and other soldiers. I can also pass through the city's gates and go to the upper city without question, but can't bring guests to the upper city.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"city guard: upper city (the watch)\"] = {\n\tdescription : \"I'm required to take a regular shift patrolling the upper city or its gates and I must report for training once every ten days. In return, I have access to the citadel and a direct line of communication with officers and officials. My word carries considerable weight. I can escort people into the upper city unimpeded, but I'm regarded with suspicion in the lower city.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"loyalty test\"] = {\n\tdescription : \"I can spot the behaviors common to corrupt guards and military officers a mile away. While this doesn't equate to evidence, and my sense isn't foolproof, my instinct proves a starting point to determine who might take a bribe, who might turn a blind eye to a crime, who might have criminal connections, or who might fulfill their duties strictly by the book.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"gateguide connection\"] = {\n\tdescription : \"I've associated with enough of the Gateguides crew that I know their torch-based code. From the lighting, placement, and type of torch arranged on or near a structure, I can gather information about those who live or do business there\\u2014if they deal fairly with strangers, have guild or government connections, or their standing with the Gateguides.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\n\n// Creatures\n// Peacock is just a vulture under a different name, it has been added to the SRD code as a `nameAlt`\nCreatureList[\"abyssal chicken\"] = {\n\tname : \"Abyssal Chicken\",\n\tnameAlt : [\"Chicken, Abyssal\"],\n\tsource : [[\"DiA\", 97]],\n\tsize : 5,\n\ttype : \"Fiend\",\n\tsubtype : \"demon\",\n\tcompanion : \"familiar_not_al\",\n\talignment : \"Chaotic Evil\",\n\tac : 13,\n\thp : 10,\n\thd : [3, 4],\n\tspeed : \"30 ft, fly 30 ft\",\n\tscores : [6, 14, 13, 4, 9, 5],\n\tdamage_resistances : \"cold, fire, lightning\",\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"blinded, poisoned\",\n\tsenses : \"Blindsight 30 ft (blind beyond this radius)\",\n\tpassivePerception : 9,\n\tlanguages : \"understands Abyssal but can't speak\",\n\tchallengeRating : \"1/4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One bite and one claws attack as an Attack action\"\n\t}, {\n\t\tname : \"Claws\",\n\t\tability : 2,\n\t\tdamage : [1, 6, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One claws and one bite attack as an Attack action\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the chicken can make one Bite and one Claws attack.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Bad Flier\",\n\t\tdescription : \"The chicken falls at the end of a turn if it's airborne and the only thing holding it aloft is its flying speed.\"\n\t}]\n}\n\nMagicItemsList[\"candle mace\"] = { // contributed by Nod_Hero\n\tname : \"Candle Mace\",\n\tsource : [[\"DiA\", 39]],\n\ttype : \"weapon (mace)\",\n\trarity : \"uncommon\",\n\tdescription : \"This mace adds a +1 bonus to attack and damage rolls made with it. The head of this mace sheds bright light in a 5-ft radius and dim light for an additional 5 ft. As an action when I wield this mace, I can extinguish or ignite its light.\",\n\tdescriptionFull : \"This +1 mace was made for a cleric of Lathander, the god of dawn. The head of this mace sheds bright light in a 5-foot-radius and dim light for an additional 5 feet. When you wield this mace, you can extinguish or ignite its light as an action.\",\n\tweight : 4,\n\taction : [[\"action\", \" (on/off)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"mace\",\n\t\tregExpSearch : /^(?=.*candle)(?=.*mace).*$/i,\n\t\tname : \"Candle Mace\",\n\t\tsource : [[\"DiA\", 39]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"battle standard of infernal power\"] = {\n\tname : \"Battle Standard of Infernal Power\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While holding the banner, my weapon attacks and those of my allies within 300 ft of me count as magical for the purposes of overcoming damage immunities and resistances. The standard has a small unopenable cage with an incapacitated quasit within. It turns to smoke if killed or released and a new one appears.\",\n\tdescriptionLong : \"While holding the banner, my weapon attacks and those of my allies within 300 ft of me count as magical for the purposes of overcoming damage immunities and resistances.\\nThis hell-forged battle standard is made of infernal iron and fitted with a small, unopenable cage containing a quasit. The trapped quasit is incapacitated, and its cage has AC 19, 10 hit points, and immunity to all types of damage except force damage. If killed or somehow released, the quasit disappears in a cloud of smoke, and a new one appears in the cage, provided the cage is intact.\",\n\tdescriptionFull : \"This hell-forged battle standard is made of infernal iron and fitted with a small, unopenable cage containing a quasit. The trapped quasit is incapacitated, and its cage has AC 19, 10 hit points, and immunity to all types of damage except force damage. If killed or somehow released, the quasit disappears in a cloud of smoke, and a new one appears in the cage, provided the cage is intact.\\n   While you hold the banner, your weapon attacks and those of all allied creatures within 300 feet of you count as magical for the purposes of overcoming damage immunities and resistances.\",\n\tattunement : true,\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My weapon attacks count as magical for overcoming resistances and immunities.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"gauntlets of flaming fury\"] = {\n\tname : \"Gauntlets of Flaming Fury\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"While wearing both these steel gauntlets, any weapons I grasp with them count as magical. As a bonus action once per dawn, I can use them to envelop one or two melee weapons in my grasp with magical flames, causing them to deal an extra 1d6 fire damage on a hit. This lasts until I sheathe or let go of a weapon.\",\n\tdescriptionFull : \"While you wear both of these steel gauntlets, any non- magical weapon you grasp with either gauntlet is treated as a magic weapon. As a bonus action, you can use the gauntlets to cause magical flames to envelop one or two melee weapons in your grasp. Each flaming weapon deals an extra 1d6 fire damage on a hit. The flames last until you sheathe or let go of either weapon. Once used, this property can't be used again until the next dawn.\",\n\tattunement : true,\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.isSpell && !v.isNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/dancing|counts as( a)? magical/i).test(fields.Description)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"Any nonmagical weapons that I grasp with my Gauntlets of Flaming Fury count as magical for overcoming resistances and immunities.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"fane-eater\"] = {\n\tname : \"Fane-Eater\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"weapon (battleaxe)\",\n\trarity : \"legendary\",\n\tdescription : \"This battleaxe adds a +3 bonus to attack and damage rolls made with it. When I use it to attack a creature and roll a 20 on the attack roll, the creature takes an extra 2d8 necrotic damage, and I regain a number of hit points equal to the necrotic damage taken.\",\n\tdescriptionFull : \"Fane-Eater is a battleaxe belonging to Arkhan the Cruel.\\n   You gain a +3 bonus to attack and damage rolls with Fane-Eater. If you attack a creature with this weapon and roll a 20 on the attack roll, the creature takes an extra 2d8 necrotic damage, and you regain a number of hit points equal to the necrotic damage taken.\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by an evil cleric or paladin\",\n\tprereqeval : function(v) { return (classes.known.paladin || classes.known.cleric) && (/evil/i).test(What(\"Alignment\")); },\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"battleaxe\",\n\t\tregExpSearch : /fane-eater/i,\n\t\tname : \"Fane-Eater\",\n\t\tsource : [[\"DiA\", 223]],\n\t\tdescription : \"Versatile (1d10); On 20 to hit: +2d8 necrotic damage and I heal same amount\",\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"hellfire weapon\"] = {\n\tname : \"Hellfire Weapon\",\n\tnameTest : \"Hellfire\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"weapon (any)\",\n\trarity : \"uncommon\",\n\tdescription : \"This weapon is fashioned from infernal iron and traced with veins of hellfire that shed dim light in a 5-ft radius. Any humanoid killed by an attack made with this weapon has its soul funneled into the River Styx, where it's reborn instantly as a lemure devil.\",\n\tdescriptionFull : \"This weapon is fashioned from infernal iron and traced with veins of hellfire that shed dim light in a 5-foot-radius.\\n   Any humanoid killed by an attack made with this weapon has its soul funneled into the River Styx, where it's reborn instantly as a lemure devil.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && (/hellfire/i).test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Humanoids killed lose their soul';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Hellfire\" in a the name of a weapon, it will be treated as the magic weapon Hellfire Weapon. Any humanoid killed by the weapon has its soul funneled into the River Styx, and are instantly reborn as a lemure devil.'\n\t\t]\n\t}\n}\nMagicItemsList[\"helm of devil command\"] = {\n\tname : \"Helm of Devil Command\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This helm has 3 charges, regaining all 24 h after using the last. I can use 1 charge to cast Dominate Monster on a devil, but it knows I tried to charm it. It allows me to know the exact location of all devils within 1000 ft and I can telepathically communicate with one of them at a time, or broadcast my thoughts to all.\",\n\tdescriptionLong : \"This bulky, eyeless helmet resizes to fit my head and allows me to see out of it as if I was not wearing it. It has 3 charges, regaining all 24 hours after using the last charge. I can use 1 charge to cast Dominate Monster on a devil, but if it can see me do so, the devil knows I tried to charm it. The helm also allows me to know the exact location of all devils within 1000 ft and I can telepathically communicate with one of them at a time, or broadcast my thoughts to all within range, but they have no special means of replying. If I use its dominating power while I'm on the Nine Hells, there is a chance it attracts a narzugon.\",\n\tdescriptionFull : \"This bulky, eyeless helmet is made for a pit fiend but magically resizes to fit the heads of other wearers.\\n   While wearing the helm, you can see out of it as though you weren't wearing it. In addition, you know the exact location and type of all devils within 1,000 feet of you. You can telepathically communicate with a devil within range, or you can broadcast your thoughts to all devils within range. The devils receiving your broadcasted thoughts have no special means of replying to them.\\n   The helm has 3 charges. As an action, you can expend 1 charge to cast dominate monster (save DC 21), which affects devils only. (The spell fails and the charge is wasted if you target any creature that's not a devil.) If a devil can see you when you cast this spell on it, the devil knows you tried to charm it. The helm regains all its charges 24 hours after its last charge is expended.\\n   If you are not a devil, using the helm's dominate monster property in the Nine Hells has a 20 percent chance of attracting a narzugon, which arrives on the back of a nightmare mount in 1d4 hours. The narzugon tries to recover the helm, killing you if necessary to obtain it. If it gets the helm, the narzugon tries to deliver it to its infernal master.\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a creature that can speak infernal\",\n\tprereqeval : function(v) { return (/infernal/i).test(v.languageProfs); },\n\tusages : 3,\n\trecovery : \"Special\",\n\tfixedDC : 21,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"dominate monster\"],\n\t\tselection : [\"dominate monster\"],\n\t\tfirstCol : 1\n\t}],\n\tspellChanges : {\n\t\t\"dominate monster\" : {\n\t\t\tdescription : \"Devil save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\n\t\t\tchanges : \"Can only affect a devil.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"infernal puzzle box\"] = {\n\tname : \"Infernal Puzzle Box\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This cube-shaped container is around 15 cm on a side and is composed of airtight, interlocking parts. It can't be magically opened and is immune to all damage. I can figure out how to open it in 1 hour with a DC 30 Investigation check. If failed by 5 or more, I take 12d6 psychic damage, Wis DC 18 halves.\",\n\tdescriptionLong : \"This cube-shaped container is around 15 cm on a side and is composed of airtight, interlocking parts made from materials found in the Nine Hells. It can't be magically opened and is immune to all damage while shut. Every infernal puzzle box has an unique mundane way of opening it. I can figure out how to open this box in 1 hour with a DC 30 Investigation check, but if I fail this check by 5 or more, I take 12d6 psychic damage, Wisdom save DC 18 halves. Once I figure out the trick or sequence of steps needed to open this box, I can open it as an action, allowing access to the box's contents.\",\n\tdescriptionFull : \"An infernal puzzle box is a cube-shaped container 5 to 6 inches on a side, composed of airtight, interlocking parts made from materials found in the Nine Hells. Most of these boxes are made of infernal iron, though some are carved from bone or horn. Infernal puzzle boxes are used to safeguard diabolical contracts signed between devils and mortals, even after the terms of these contracts are fulfilled. An empty infernal puzzle box weighs 3 pounds regardless of the materials used to fashion it.\\n   When an object small enough to fit inside an infernal puzzle box is placed in it, the container magically seals shut around the object, and no magic can force the box open. The sealed box becomes immune to all damage as well. Every infernal puzzle box is constructed with a unique means of opening it. The trick to solving the puzzle is always mundane, never magical. Once a creature figures out the trick or sequence of steps needed to open a particular infernal puzzle box, that creature can open the box as an action, allowing access to the box's contents.\\n   A creature that spends 1 hour holding an infernal puzzle box while trying to open it can make a DC 30 Intelligence (Investigation) check. If the check succeeds, the creature figures out the trick or sequence of steps needed to open the box. If the check fails by 5 or more, the creature must make a DC 18 Wisdom saving throw, taking 42 (12d6) psychic damage on a failed save, or half as much damage on a successful one.\",\n\tweight : 3\n}\nMagicItemsList[\"matalotok\"] = {\n\tname : \"Matalotok\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"weapon (warhammer)\",\n\trarity : \"legendary\",\n\tdescription : \"This ancient warhammer, the Frost Father, was fashioned by Thrym. It is frigid to the touch and wreathed in mist. I'm immune to cold damage while holding it. Whenever I deal damage to a creature with it, it radiates a burst of intense cold in a 30-ft radius sphere, dealing 3d6 cold damage to all creatures within.\",\n\tdescriptionFull : \"Matalotok, the Frost Father, is an ancient hammer fashioned by Thrym, the god of frost giants. The favored weapon of the demon lord Kostchtchie, Matalotok is frigid to the touch and wreathed in mist.\\n   You are immune to cold damage while holding Matalotok. Whenever it deals damage to a creature, the hammer radiates a burst of intense cold in a 30-foot-radius sphere. Each creature in that area takes 10 (3d6) cold damage.\",\n\tattunement : true,\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /matalotok/i,\n\t\tname : \"Matalotok\",\n\t\tsource : [[\"DiA\", 224]],\n\t\tdescription : \"Versatile (1d10); On hit: all in 30-ft radius take 3d6 cold damage\",\n\t\tselectNow : true\n\t}],\n\tsavetxt : { immune : [\"cold\"] }\n}\nMagicItemsList[\"obsidian flint dragon plate\"] = {\n\tname : \"Obsidian Flint Dragon Plate\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"armor (plate)\",\n\trarity : \"legendary\",\n\tdescription : \"I gain a +2 bonus to AC and resistance to poison damage while I wear this plate armor. In addition, I gain advantage on ability checks and saving throws made to avoid or end the grappled condition on myself.\",\n\tdescriptionFull : \"You gain a +2 bonus to AC and resistance to poison damage while you wear this armor. In addition, you gain advantage on ability checks and saving throws made to avoid or end the grappled condition on yourself.\",\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*obsidian)(?=.*flint)(?=.*dragon)(?=.*plate).*$/i,\n\t\tname : \"Obsidian Flint Dragon Plate\",\n\t\tsource : [[\"DiA\", 224]],\n\t\ttype : \"heavy\",\n\t\tac : \"18+2\",\n\t\tstealthdis : true,\n\t\tweight : 65,\n\t\tstrReq : 15,\n\t\tselectNow : true\n\t}],\n\tdmgres : [\"Poison\"],\n\tsavetxt : { adv_vs : [\"grappled\"] },\n\tweight : 65\n}\nvar DiA_shieldOfTheHiddenLordFullDescription = [\n\t\"The Shield of the Hidden Lord is of celestial origin and serves as a prison for the pit fiend Gargauth, whose mortal followers revere it as a god. Over time, Gargauth's evil has warped the shield's appearance, so that its celestial motif and designs have become twisted into a fiendish face that subtly moves in disturbing ways.\",\n\t\"While holding this shield, you gain a +2 bonus to AC and resistance to fire damage.\",\n\t\">>Sentience<<. The Shield of the Hidden Lord is sentient as long as it imprisons Gargauth. While sentient, the shield has the following properties:\",\n\t\"\\u2022 The shield has an Intelligence of 22, a Wisdom of 18, and a Charisma of 24, as well as hearing and truesight out to a range of 120 feet.\",\n\t\"\\u2022 The shield can speak, read, and understand Common and Infernal, and it can communicate telepathically with any creature it can sense within 120 feet of it. Its voice is a deep, hollow whisper.\",\n\t\"\\u2022 The shield has 3 charges. You can use an action to expend 1 charge to cast Fireball or 2 charges to cast Wall of Fire from the shield (save DC 21 for each). The Wall of Fire spell lasts for 1 minute (no concentration required). The shield regains all expended charges daily at dawn.\",\n\t\"\\u2022 Anytime during your turn, the shield can choose to radiate an aura of dread for 1 minute. (This is not a power of the shield that you control.) Any creature hostile to you that starts its turn within 20 feet of the shield must make a DC 18 Wisdom saving throw. On a failed save, the creature is frightened until the start of its next turn. On a successful save, the creature is immune to this power of the shield for the next 24 hours. Once the shield uses this power, it can't use it again until the next dawn.\\n\",\n\t\">>Gargauth's Personality<<. Gargauth desperately seeks freedom but can't escape on its own. The pit fiend won't reveal its true nature, referring to itself only as the Hidden Lord. It drops hints and subtle suggestions that it is an angel trapped in an unholy prison. If released from the shield, the pit fiend honors the terms of whatever bargain it struck to facilitate its escape.\",\n\t\"While trapped in the shield, Gargauth carefully steers the shield's current owner toward committing acts of cruelty and domination, hoping to condemn the individual's soul to the Nine Hells. Conflict occurs if the shield's owner does anything that would make it more difficult for Gargauth to escape its prison, such as leaving the shield in a place where others are unlikely to find it.\",\n\t\"Gargauth doesn't know how to escape from the shield. The pit fiend believes (incorrectly) that it can break free of the shield if it's brought to the Nine Hells, for it's convinced that the shield's powers are weaker there.\",\n\t\">>Freeing Gargauth<<. Casting dispel evil and good on the shield has a 1 percent chance of freeing the pit fiend, or automatically succeeds if the spell is cast by a solar, a planetar, or an archdevil. A god can release the pit fiend by touching the shield and speaking Gargauth's name. When released, Gargauth appears in a random, unoccupied space as close to the shield as possible.\"\n];\nMagicItemsList[\"shield of the hidden lord\"] = {\n\tname : \"Shield of the Hidden Lord\",\n\tsource : [[\"DiA\", 225]],\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tstoryItemAL : true,\n\tdescription : 'This shield grants me +2 bonus to AC and resistance to fire damage. It has 3 charges, regaining all at dawn. I can expend 1 charge to cast Fireball or 2 charges to cast Wall of Fire from it at DC 21. The shield is sentient and can communicate telepathically with any creature within 120 ft of it. See \"Notes\" page for more.',\n\tdescriptionFull : DiA_shieldOfTheHiddenLordFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\tattunement : true,\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(DiA_shieldOfTheHiddenLordFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(to) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tweight : 6,\n\tshieldAdd : [\"Shield of the Hidden Lord\", 4, 6],\n\tusages : 3,\n\trecovery : \"Dawn\",\n\tfixedDC : 21,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"fireball\"],\n\t\tselection : [\"fireball\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"wall of fire\"],\n\t\tselection : [\"wall of fire\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"wall of fire\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"The Wall of Fire lasts for 1 minute and does not require concentration.\"\n\t\t}\n\t}\n}\nvar DiA_soulCoinFullDescription = [\n\t\"Soul coins are about 5 inches across and about 1 inch thick, minted from infernal iron. Each coin weighs one-third of a pound, and is inscribed with Infernal writing and a spell that magically binds a single soul to the coin. Because each soul coin has a unique soul trapped within it, each has a story. A creature might have been imprisoned as a result of defaulting on a deal, while another might be the victim of a night hag's curse.\",\n\t\">>Carrying Soul Coins<<. To hold a soul coin is to feel the soul bound within it\\u2014overcome with rage or fraught with despair.\",\n\t\"An evil creature can carry as many soul coins as it wishes (up to its maximum weight allowance). A non-evil creature can carry a number of soul coins equal to or less than its Constitution modifier without penalty. A non-evil creature carrying a number of soul coins greater than its Constitution modifier has disadvantage on its attack rolls, ability checks, and saving throws.\",\n\t\">>Using a Soul Coin<<. A soul coin has 3 charges. A creature carrying the coin can use its action to expend 1 charge from a soul coin and use it to do one of the following:\",\n\t\"\\u2022 >>Drain Life<<. You siphon away some of the soul's essence and gain 1d10 temporary hit points.\",\n\t\"\\u2022 >>Query<<. You telepathically ask the soul a question and receive a brief telepathic response, which you can understand. The soul knows only what it knew in life, but it must answer you truthfully and to the best of its ability. The answer is no more than a sentence or two and might be cryptic.\\n\",\n\t\">>Freeing a Soul<<. Casting a spell that removes a curse on a soul coin frees the soul trapped within it, as does expending all of the coin's charges. The coin itself rusts from within and is destroyed once the soul is released. A freed soul travels to the realm of the god it served or the outer plane most closely tied to its alignment (DM's choice). The souls of lawful evil creatures released from soul coins typically emerge from the River Styx as lemure devils.\",\n\t\"A soul can also be freed by destroying the coin that contains it. A soul coin has AC 19, 1 hit point for each charge it has remaining, and immunity to all damage except that which is dealt by a hellfire weapon or an infernal war machine's furnace.\",\n\t\"Freeing a soul from a soul coin is considered a good act, even if the soul belongs to an evil creature.\",\n\t\">>Hellish Currency<<. Soul coins are a currency of the Nine Hells and are highly valued by devils. The coins are used among the infernal hierarchy to barter for favors, bribe the unwilling, and reward the faithful for services rendered.\",\n\t\"Soul coins are created by Mammon and his greater devils on Minauros, the third layer of the Nine Hells, in a vast chamber where the captured souls of evil mortals are bound into the coins. These coins are then distributed throughout the Nine Hells to be used for goods and services, infernal deals, dark bargains, and bribes.\"\n];\nMagicItemsList[\"soul coin\"] = {\n\tname : \"Soul Coin\",\n\tsource : [[\"DiA\", 225], [\"CoA\", 269]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Each coin traps a unique soul, whose rage or despair is felt by me while I hold it. A coin has 3 charges. As an action, I can expend 1 charge to either siphon the soul's essence to grant me 1d10 temporary HP or telepathically ask the soul a question which it must answer truthfully. See \\\"Notes\\\" page for more.\",\n\tdescriptionFull : DiA_soulCoinFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(DiA_soulCoinFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(answer) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}],\n\tweight : 0.3,\n\tusages : 3,\n\trecovery : \"Never\",\n\taction : [[\"action\", \"\"]]\n}\n\n// pub_20190919_LR.js\n// This file adds the Locathah from the Locathah Rising adventure from Extra Life to MPMB's Character Record Sheet\n\nSourceList.LR = {\n\tname : \"Locathah Rising\",\n\tabbreviation : \"LR\",\n\tgroup : \"Extra Life\",\n\turl : \"https://www.dmsguild.com/product/289261/Locathah-Rising-5e\",\n\tdate : \"2019/09/19\",\n\tdefaultExcluded : true\n};\n\nRaceList.locathah = {\n\tsource : [[\"LR\", 24]],\n\tregExpSearch : /locathah/i,\n\tname : \"Locathah\",\n\tplural : \"Locathah\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 30, enc : 20 },\n\t},\n\tlanguageProfs : [\"Common\", \"Aquan\"],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\", \"frightened\", \"paralyzed\", \"poisoned\", \"stunned\", \"sleep\"],\n\t},\n\tskills : [\"athletics\", \"perception\"],\n\tscores : [2, 1, 0, 0, 0, 0],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\n\t\tname : \"Natural Armor\",\n\t\tsource : [[\"LR\", 24]],\n\t\tac : 12,\n\t\tselectNow : true\n\t}],\n\tage : \" mature to adulthood by the age of 10 but have been known to live up to 80 years\",\n\theight : \" stand between 5 and 6 feet tall\",\n\tweight : \" average about 150 pounds\",\n\theightMetric : \" stand between 1,5 and 1,8 metres tall\",\n\tweightMetric : \" weigh around 70 kg\",\n\ttrait : \"Locathah (+2 Strength, +1 Dexterity)\\n   Limited Amphibiousness: I can breathe air and water, but need to be submerged at least once every 4 hours to avoid suffocating.\\n   Leviathan Will: I have advantage on saving throws against being charmed, frightened, paralyzed, poisoned, stunned, or put to sleep.\\n   Natural Armor: I have an AC of 12 + Dexterity modifier + shield.\\n   Observant & Athletic: I have proficiency in the Athletics and Perception skills.\"\n};\n\n// pub_20191112_Adventure-with-Muk.js\r\n// This file adds the Dankwood Goblin race from the Adventure with Muk from Extra Life to MPMB's Character Record Sheet\r\n// Be aware that this race is not legal in adventurers league!\r\n\r\nSourceList[\"AwM\"] = {\r\n\tname : \"Adventure with Muk\",\r\n\tabbreviation : \"AwM\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/294712/Adventure-with-Muk-5e\",\r\n\tdate : \"2019/11/12\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nRaceList[\"dankwood goblin\"] = {\r\n\tregExpSearch : /^(?=.*dankwood)(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\tname : \"Dankwood goblin\",\r\n\tsortname : \"Goblin, Dankwood\",\r\n\tsource : [[\"AwM\", 35]],\r\n\tplural : \"Dankwood goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Dankwood Goblin (+2 Dexterity, +1 Wisdom)\"+\r\n\t\"\\n   Speak with Small Beasts: Through sounds and gestures, I can communicate simple ideas with Small or smaller beasts. Dankwood goblins love animals and often keep squirrels, badgers, rabbits, moles, woodpeckers, and other creatures as beloved pets.\"+\r\n\t\"\\n   Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\n\n// pub_20191119_ERftLW.js\r\n// This file adds the content from Eberron: Rising from the Last War to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"E:RLW\"] = {\r\n\tname : \"Eberron: Rising from the Last War\",\r\n\tabbreviation : \"E:RLW\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://dnd.wizards.com/products/eberron\",\r\n\tdate : \"2019/11/19\"\r\n};\r\n\r\n// The changeling\r\nRaceList[\"changeling\"] = {\r\n\tregExpSearch : /changeling/i,\r\n\tname : \"Changeling\",\r\n\tsource : [[\"E:RLW\", 18]],\r\n\tplural : \"Changelings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Deception, Intimidation, Insight, and Persuasion\",\r\n\tlanguageProfs : [\"Common\", 2],\r\n\tage : \" mature slightly faster than humans but share a similar lifespan, typically a century or less. While a changeling can transform to conceal their age, the effects of aging affect them similarly to humans\",\r\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Charisma and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 0, 2],\r\n\ttrait : \"Changeling (+2 Charisma and +1 to one other ability score of my choice)\\nShapechanger: As an action, I can change my appearance and voice to or from a humanoid-shaped form I have seen, not changing my equipment. I determine the specifics of the form like hair length, eye color, and sex. I can adjust my height and weight, but not so much that my size changes. I revert back when I die. I can make myself appear as a member of another race, though none of my game statistics change.\",\r\n\taction : [[\"action\", \"Shapechanger\"]]\r\n};\r\n\r\n// Double bladed scimitar\r\nWeaponsList[\"double-bladed scimitar\"] = {\r\n\tregExpSearch : /^(?=.*double)(?=.*scimitar).*$/i,\r\n\tname : \"Double-bladed scimitar\",\r\n\tnameAlt : [\"Scimitar, Double-bladed\"],\r\n\tsource : [[\"E:RLW\", 22], [\"WGtE\", 74]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 4, \"slashing\"],\r\n\trange : \"Melee\",\r\n\tweight : 6,\r\n\tdescription : \"Two-handed; With Attack action, one attack as bonus action for 1d4\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Revenant blade feat\r\nFeatsList[\"revenant blade\"] = {\r\n\tname : \"Revenant Blade\",\r\n\tsource : [[\"E:RLW\", 22]],\r\n\tprerequisite : \"Being an Elf\",\r\n\tprereqeval : function(v) { return (/^(?!.*half)(?=.*(elf|eladrin|avariel|grugach|shadar-kai)).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You are descended from a master of the double blade and their skills have passed on to you. You gain the following benefits:\\n \\u2022 Increase your Dexterity or Strength score by 1, to a maximum of 20.\\n \\u2022 While you are holding a double-bladed scimitar with two hands, you gain a + 1 bonus to Armor Class.\\n \\u2022 A double-bladed scimitar has the finesse property when you wield it.\",\r\n\tdescription : \"My mastery with the double bladed scimitar allows me to treat it as having the finesse trait. In addition, I gain +1 AC while wielding it with two hands. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'double-bladed scimitar' && fields.Proficiency) {\r\n\t\t\t\t\tif (!/finesse/i.test(fields.Description)) fields.Description = 'Finesse, ' + fields.Description.substr(0,1).toLowerCase() + fields.Description.substr(1);\r\n\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"Double-bladed scimitars count as having finesse for me.\",\r\n\t\t\t1\r\n\t\t]\r\n\t},\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm wielding a double-bladed weapon in two hands.\",\r\n\t\tstopeval : function (v) { return v.usingShield && !(/animated/i).test(What(\"AC Shield Bonus Description\")) || !CurrentWeapons.known.some(function (n) { return n[0] == \"double-bladed scimitar\" || (WeaponsList[n[0]] && WeaponsList[n[0]].baseWeapon == \"double-bladed scimitar\"); }); }\r\n\t}\r\n};\r\n// The kalashtar\r\nRaceList[\"kalashtar\"] = {\r\n\tregExpSearch : /kalashtar/i,\r\n\tname : \"Kalashtar\",\r\n\tsource : [[\"E:RLW\", 30]],\r\n\tplural : \"Kalashtar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Quori\", 1],\r\n\tsavetxt : { immune : [\"effects that require me to dream\"], text : [\"Adv. on all Wis saves\"] },\r\n\tadvantages : [ [\"Wisdom\", true] ],\r\n\tdmgres : [\"Psychic\"],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from 5 and a half to well over 6 feet tall (5'4\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 145 lb (110 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from 1,7 to 1,9 metres tall (160 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (50 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 2, 1],\r\n\ttrait : \"Kalashtar (+2 Wisdom, +1 Charisma)\\n   Dual Mind: I have advantage on Wisdom saving throws.\\n   Mind Link: I can speak telepathically to any creature I can see within 10 ft \\xD7 my level, as long as it can speak at least one language. As an action, I can give that creature the ability to speak telepathically back to me while it can see me and is within range. This lasts for 1 hour, until I use this ability on another creature, or until I end it as an action.\\n   Severed from Dreams: I don't dream and thus immune to spells that affect dreams.\",\r\n\taction : [['action', 'Mind Link (start/stop)']]\r\n};\r\n\r\n// The four subraces of the shifter\r\nRaceList[\"beasthide shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*beast)(?=.*hide).*$/i,\r\n\tname : \"Beasthide shifter\",\r\n\tsortname : \"Shifter, Beasthide\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Beasthide shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Athletics\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Beasthide Shifter (+1 Strength, +2 Constitution)\\n\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to 1d6 + my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have a +1 bonus to AC.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return \"1d6 + \" + n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"longtooth shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\tname : \"Longtooth shifter\",\r\n\tsortname : \"Shifter, Longtooth\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Longtooth shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\tname : \"Longtooth Fangs\",\r\n\t\tsource : [[\"E:RLW\", 34]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tdescription : \"Only while shifted; One attack as bonus action\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 1, 0, 0, 0, 0],\r\n\ttrait : \"Longtooth Shifter (+2 Strength, +1 Dexterity)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I use my elongated fangs to make unarmed strikes, dealing 1d6 piercing damage. As a bonus action, I can maken one attack with my fangs.\",\r\n\taction : [['bonus action', 'Longtooth Fangs attack (while shifted)']],\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"swiftstride shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*swift)(?=.*stride).*$/i,\r\n\tname : \"Swiftstride shifter\",\r\n\tsortname : \"Shifter, Swiftstride\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Swiftstride shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Acrobatics\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Swiftstride Shifter (+2 Dexterity, +1 Charisma)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nWhile transformed like this, my walking speed increases with 10 ft.\\nAs a reaction when an enemy ends its turn within 5 ft of me while I'm shifted, I can move 10 ft without provoking opportunity attacks.\",\r\n\taction : [['reaction', 'Stride (while shifted)']],\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"wildhunt shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*wild)(?=.*hunt).*$/i,\r\n\tname : \"Wildhunt shifter\",\r\n\tsortname : \"Shifter, Wildhunt\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Wildhunt shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Survival\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 2, 0],\r\n\ttrait : \"Wildhunt Shifter (+1 Dexterity, +2 Wisdom)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have advantage on Wisdom checks and no creature within 30 ft can make an attack roll with advantage against me, unless I'm incapacitated.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// The warforged\r\nRaceList[\"warforged\"] = {\r\n\tregExpSearch : /warforged/i,\r\n\tname : \"Warforged\",\r\n\tsource : [[\"E:RLW\", 36]],\r\n\tplural : \"Warforged\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Any tool\", 1]],\r\n\tskillstxt : \"Choose any one skill and any one tool\",\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\timmune : [\"disease\", \"magical aging effects\"],\r\n\t\tadv_vs : [\"poison\"]\r\n\t},\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" typical are between two and thirty years old. The maximum warforged lifespan remains a mystery; so far, warforged have shown no signs of deterioration due to age. Warforged are immune to magical aging effects.\",\r\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\tscorestxt : \"+2 Constitution and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 2, 0, 0, 0],\r\n\ttrait : \"Warforged (+2 Constitution and +1 to one other ability score\" + (typePF ? \"\" : \" of my choice\") + \")\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: I gain +1 AC and I can don only armor with which I'm proficient. To don or doff armor, I must (un)incorporate it into my body over the course of 1 hour, which can be done during resting. Donned armor can't be removed against my will while I'm alive.\",\r\n\textraAC : {\r\n\t\tname : \"Integrated Protection\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC.\"\r\n\t}\r\n};\r\n\r\n// Dragonmarks subraces\r\nRaceList[\"dragonmark detection half-elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*detection)|(?=.*house)(?=.*medani)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Detection (Half-Elf)\",\r\n\tsource : [[\"E:RLW\", 40]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Wisdom and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\ttrait : \"Half-Elf, Dragonmark of Detection (+2 Wisdom \\u0026 +1 to one other ability of my choice)\\n   Deductive Intuition: I can add +1d4 to my Intelligence (Investigation) and Wisdom (Insight) checks.\\n   Magical Detection: I can cast Detect Magic and Detect Poison and Disease each once per long rest. At 3rd level, I can also cast See Invisibility once per long rest. Wisdom is my spellcasting ability for these and none of them require material components.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5, // changed from Int to Wis by errata\r\n\tfeatures : {\r\n\t\t\"magical detection\" : {\r\n\t\t\tname : \"Magical Detection (level 1)\",\r\n\t\t\tlimfeaname : \"Detect Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Detection (level 1)\",\r\n\t\t\t\tspells : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\t\tselection : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Poison and Disease\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect poison and disease\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"see invisibility\" : {\r\n\t\t\tname : \"Magical Detection (level 3)\",\r\n\t\t\tlimfeaname : \"See Invisibility\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Detection (level 3)\",\r\n\t\t\t\tspells : [\"see invisibility\"],\r\n\t\t\t\tselection : [\"see invisibility\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"see invisibility\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"detect evil and good\", \"detect poison and disease\", \"detect thoughts\", \"find traps\", \"clairvoyance\", \"nondetection\", \"arcane eye\", \"divination\", \"legend lore\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Detect Evil and Good, Detect Poison and Disease, Detect Thoughts, Find Traps, Clairvoyance, Nondetection, Arcane Eye, Divination, and Legend Lore.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding half-orc\"] = {\r\n\tregExpSearch : /^((?=.*half)(?=.*\\bor(c|k))((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk))).*$/i,\r\n\tname : \"Half-orc (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Half-Orc)\",\r\n\tsource : [[\"E:RLW\", 41]],\r\n\tplural : \"Half-orcs (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood around age 14 and rarely live longer than 75 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 2, 0],\r\n\ttrait : \"Half-Orc, Dragonmark of Finding (+1 Constitution, +2 Wisdom)\\n   Hunter's Intuition: I can add +1d4 to my Wisdom (Perception) and Wisdom (Survival) checks.\\n   Finder's Magic: I can cast Hunter's Mark once per long rest. At 3rd level, I can also cast Locate Object once per long rest. Wisdom is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"finder's magic\" : {\r\n\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\tlimfeaname : \"Hunter's Mark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\t\tspells : [\"hunter's mark\"],\r\n\t\t\t\tselection : [\"hunter's mark\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"locate object\" : {\r\n\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Locate Object\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\t\tspells : [\"locate object\"],\r\n\t\t\t\tselection : [\"locate object\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"faerie fire\", \"longstrider\", \"locate animals or plants\", \"locate object\", \"clairvoyance\", \"speak with plants\", \"divination\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Faerie Fire, Longstrider, Locate Animals or Plants, Locate Object, Clairvoyance, Speak with Plants, Divination, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding human\"] = {\r\n\tregExpSearch : /^((?=.*human)((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk))).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Human)\",\r\n\tsource : [[\"E:RLW\", 41]],\r\n\tplural : \"Human (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 2, 0],\r\n\ttrait : \"Human, Dragonmark of Finding (+1 Constitution, +2 Wisdom)\\n   Hunter's Intuition: I can add +1d4 to my Wisdom (Perception) and Wisdom (Survival) checks.\\n   Finder's Magic: I can cast Hunter's Mark once per long rest. At 3rd level, I can also cast Locate Object once per long rest. Wisdom is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"finder's magic\" : {\r\n\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\tlimfeaname : \"Hunter's Mark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\t\tspells : [\"hunter's mark\"],\r\n\t\t\t\tselection : [\"hunter's mark\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"locate object\" : {\r\n\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Locate Object\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\t\tspells : [\"locate object\"],\r\n\t\t\t\tselection : [\"locate object\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"faerie fire\", \"longstrider\", \"locate animals or plants\", \"locate object\", \"clairvoyance\", \"speak with plants\", \"divination\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Faerie Fire, Longstrider, Locate Animals or Plants, Locate Object, Clairvoyance, Speak with Plants, Divination, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark handling human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*handling)|(?=.*house)(?=.*vadalis)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Handling (Human)\",\r\n\tsource : [[\"E:RLW\", 42]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Wisdom and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\ttrait : \"Human, Dragonmark of Handling (+2 Wisdom, +1 to one other ability score of my choice)\\n   Wild Intuition: I can add +1d4 to my Wisdom (Animal Handling) and Intelligence (Nature) checks.\\n   Primal Connection: I can cast Animal Friendship and Speak with Animals each once per short rest. Wisdom is my spellcasting ability for these.\\n   The Bigger They Are: When I cast Animal Friendship or Speak with Animals, I can target a monstrosity with an Intelligence of 3 or lower instead of a beast.\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"primal connection\" : {\r\n\t\t\tname : \"Primal Connection\",\r\n\t\t\tlimfeaname : \"Animal Friendship\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Speak with Animals\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\tspells : [\"animal friendship\", \"speak with animals\"],\r\n\t\t\t\tselection : [\"animal friendship\", \"speak with animals\"],\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"animal friendship\" :\r\n\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"beasts\", \"beasts/monstrosities\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"speak with animals\" :\r\n\t\t\t\t\t\tspellObj.description = \"Communicate verbally with monstrosities Int<4 or beasts for duration; interactions limited by their Int\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"When I cast Animal Friendship or Speak with Animals, I can target a monstrosity with an Intelligence of 3 or lower instead of a beast.\"\r\n\t\t],\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"animal friendship\", \"speak with animals\", \"beast sense\", \"calm emotions\", \"beacon of hope\", \"conjure animals\", \"aura of life\", \"dominate beast\", \"awaken\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Animal Friendship, Speak with Animals, Beast Sense, Calm Emotions, Beacon of Hope, Conjure Animals, Aura of Life, Dominate Beast, and Awaken.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark healing halfling\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*healing)|(?=.*house)(?=.*jorasco)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Healing (Halfling)\",\r\n\tsource : [[\"E:RLW\", 43]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Halfling, Dragonmark of Healing (+2 Dexterity, +1 Wisdom)\\nLucky: When I roll a 1 on an attack, check, or save, I can reroll it but must use the result.\" + (typePF ? \" \" : \"\\n\") + \"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\\nMedical Intuition: I can add +1d4 to my Wisdom (Medicine) and herbalism kit checks.\\nHealing Touch: I can cast Cure Wounds each once per long rest. At 3rd level, I can also cast Lesser Restoration once per long rest. Wisdom is my spellcasting ability for these.\\nSpells of the Mark: I add several spells to \" + (typePF ? \"my class' spell list.\" : \"the spell list of my spellcasting class(es).\"),\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"healing touch\" : {\r\n\t\t\tname : \"Healing Touch (level 1)\",\r\n\t\t\tlimfeaname : \"Cure Wounds\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Healing Touch (level 1)\",\r\n\t\t\t\tspells : [\"cure wounds\"],\r\n\t\t\t\tselection : [\"cure wounds\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tname : \"Healing Touch (level 3)\",\r\n\t\t\tlimfeaname : \"Lesser Restoration\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Healing Touch (level 3)\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cure wounds\", \"healing word\", \"lesser restoration\", \"prayer of healing\", \"aura of vitality\", \"mass healing word\", \"aura of purity\", \"aura of life\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Cure Wounds, Healing Word, Lesser Restoration, Prayer of Healing, Aura of Vitality, Mass Healing Word, Aura of Purity, Aura of Life, and Greater Restoration.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark hospitality halfling\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*hospitality)|(?=.*house)(?=.*ghallanda)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Hospitality (Halfling)\",\r\n\tsource : [[\"E:RLW\", 44]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Halfling, Dragonmark of Hospitality (+2 Dexterity, +1 Charisma)\\nLucky: When I roll a 1 on an attack, check, or save, I can reroll it but must use the result.\" + (typePF ? \" \" : \"\\n\") + \"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\\nEver Hospitable: I can add +1d4 to my Charisma (Persuasion), brewer's supplies, and cook's utensils checks.\" + (typePF ? \"\\n\" : \" \") + \"Innkeeper's Magic: I know the Prestidigitation cantrip and I can cast Purify Food and Drink and Unseen Servant each once per long rest. Charisma as my spellcasting ability for these. Spells of the Mark: I add several spells to my class' spell list.\",\r\n\tspellcastingAbility : 6,\r\n\tfeatures : {\r\n\t\t\"innkeeper's magic\" : {\r\n\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\tlimfeaname : \"Purify Food and Drink\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\t\tspells : [\"prestidigitation\"],\r\n\t\t\t\tselection : [\"prestidigitation\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\t\tspells : [\"purify food and drink\", \"unseen servant\"],\r\n\t\t\t\tselection : [\"purify food and drink\", \"unseen servant\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Unseen Servant\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"goodberry\", \"sleep\", \"aid\", \"calm emotions\", \"create food and water\", \"leomund's tiny hut\", \"aura of purity\", \"mordenkainen's private sanctum\", \"hallow\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Goodberry, Sleep, Aid, Calm Emotions, Create Food and Water, Leomund's Tiny Hut, Aura of Purity, Mordenkainen's Private Sanctum, and Hallow.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark making human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*making)|(?=.*house)(?=.*cannith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Making (Human)\",\r\n\tsource : [[\"E:RLW\", 45]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Intelligence and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 2, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Making (+2 Intelligence, +1 to one other ability score of my choice)\\n   Artisan's Intuition: I can add +1d4 to Arcana checks and checks with artisan's tools.\\n   Spellsmith: I know the Mending cantrip. I can cast Magic Weapon once per long rest and when I do so, it doesn't require concentration and lasts for 1 hour. Intelligence is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\" + (typePF ? \"\" : \"\\n   Maker's Gift: I gain proficiency with one type of artisan's tools of my choice.\"),\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"spellsmith\" : {\r\n\t\t\tname : \"Spellsmith\",\r\n\t\t\tlimfeaname : \"Magic Weapon\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spellsmith\",\r\n\t\t\t\tspells : [\"mending\"],\r\n\t\t\t\tselection : [\"mending\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Spellsmith\",\r\n\t\t\t\tspells : [\"magic weapon\"],\r\n\t\t\t\tselection : [\"magic weapon\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"magic weapon\" : {\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"1 nonmagical weapon becomes magical with an +1 bonus to attack and damage\",\r\n\t\t\t\t\tchanges : \"When using my Spellsmith racial trait, this spell doesn't require concentration and lasts for 1 hour.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"identify\", \"tenser's floating disk\", \"continual flame\", \"magic weapon\", \"conjure barrage\", \"elemental weapon\", \"fabricate\", \"stone shape\", \"creation\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Identify, Tenser's Floating Disk, Continual Flame, Magic Weapon, Conjure Barrage, Elemental Weapon, Fabricate, Stone Shape, and Creation.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark passage human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*passage)|(?=.*house)(?=.*orien)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Passage (Human)\",\r\n\tsource : [[\"E:RLW\", 46]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity and +1 to one other ability score of my choice\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Passage (+2 Dexterity, +1 to one other ability score of my choice)\\n   Intuitive Motion: I can add +1d4 to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a land vehicle.\\n   Magical Passage: I can cast Misty Step once per long rest, using Dexterity as my spellcasting ability.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\\n   Courier's Speed: My base walking speed is 35 ft.\",\r\n\tspellcastingAbility : 2,\r\n\tfeatures : {\r\n\t\t\"magical passage\" : {\r\n\t\t\tname : \"Magical Passage\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Passage\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"expeditious retreat\", \"jump\", \"misty step\", \"pass without trace\", \"blink\", \"phantom steed\", \"dimension door\", \"freedom of movement\", \"teleportation circle\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Expeditious Retreat, Jump, Misty Step, Pass Without Trace, Blink, Phantom Steed, Dimension Door, Freedom of Movement, and Teleportation Circle.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark scribing gnome\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*scribing)|(?=.*house)(?=.*sivis)).*$/i,\r\n\tname : \"Gnome (dragonmark)\",\r\n\tsortname : \"Dragonmark, Scribing (Gnome)\",\r\n\tsource : [[\"E:RLW\", 47]],\r\n\tplural : \"Gnomes (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Gnome, Dragonmark of Scribing (+2 Intelligence, +1 Charisma)\\n   Gifted Scribe: I can add +1d4 to my Intelligence (History) checks and ability checks with calligrapher's supplies.\\n   Scribe's Insight: I know the Message cantrip. I can cast Comprehend Languages once per long rest. At 3rd level, I can also cast Magic Mouth once per long rest. Intelligence is my spellcasting ability for these spells.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"scribe's insight\" : {\r\n\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\tlimfeaname : \"Comprehend Languages\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\t\tspells : [\"message\"],\r\n\t\t\t\tselection : [\"message\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"magic mouth\" : {\r\n\t\t\tname : \"Scribe's Insight (level 3)\",\r\n\t\t\tlimfeaname : \"Magic Mouth\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight (level 3)\",\r\n\t\t\t\tspells : [\"magic mouth\"],\r\n\t\t\t\tselection : [\"magic mouth\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"comprehend languages\", \"illusory script\", \"animal messenger\", \"silence\", \"sending\", \"tongues\", \"arcane eye\", \"confusion\", \"dream\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Comprehend Languages, Illusory Script, Animal Messenger, Silence, Sending, Tongues, Arcane Eye, Confusion, and Dream.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark sentinel human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*sentinel)|(?=.*house)(?=.*deneith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Sentinel (Human)\",\r\n\tsource : [[\"E:RLW\", 48]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Sentinel (+2 Constitution, +1 Wisdom)\\n  Sentinel's Intuition: I can add +1d4 my Wisdom (Insight) and Wisdom (Perception) checks.\\n  Guardian's Shield: I can cast Shield once per long rest, using Wisdom as my spellcasting ability.\\n  Vigilant Guardian: Once per long rest as a reaction when a creature I can see within 5 ft is hit by an attack roll, I can swap places with it and I'm hit by the attack instead.\\n  Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"vigilant guardian\" : {\r\n\t\t\tname : \"Vigilant Guardian\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [['reaction', '']]\r\n\t\t},\r\n\t\t\"guardian's shield\" : {\r\n\t\t\tname : \"Guardian's Shield\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guardian's Shield\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"compelled duel\", \"shield of faith\", \"warding bond\", \"zone of truth\", \"counterspell\", \"protection from energy\", \"death ward\", \"guardian of faith\", \"bigby's hand\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Compelled Duel, Shield of Faith, Warding Bond, Zone of Truth, Counterspell, Protection from Energy, Death Ward, Guardian of Faith, and Bigby's Hand.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark shadow elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*shadow)|(?=.*house)(?=.*(phiarlan|thuranni))).*$/i,\r\n\tname : \"Elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Shadow (Elf)\",\r\n\tsource : [[\"E:RLW\", 49]],\r\n\tplural : \"Elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Elf, Dragonmark of Shadow (+2 Dexterity, +1 Charisma)\\n   Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\n   Cunning Intuition: I can add +1d4 to my Cha\" + (typePF ? \"risma\" : \"\") + \" (Performance) and Dex\" + (typePF ? \"terity\" : \"\") + \" (Stealth) checks.\\n   Shape Shadows: I know the Minor Illusion cantrip. At 3rd level, I can cast Invisibility once per long rest. Charisma is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to \" + (typePF ? \"my class' spell list.\" : \"the spell list of my spellcasting class(es).\"),\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shape Shadows (level 1)\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"shape shadows\" : {\r\n\t\t\tname : \"Shape Shadows (level 3)\",\r\n\t\t\tlimfeaname : \"Invisibility\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Shape Shadows (level 3)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"disguise self\", \"silent image\", \"darkness\", \"pass without trace\", \"clairvoyance\", \"major image\", \"greater invisibility\", \"hallucinatory terrain\", \"mislead\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Disguise Self, Silent Image, Darkness, Pass Without Trace, Clairvoyance, Major Image, Greater Invisibility, Hallucinatory Terrain, and Mislead.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark storm half-elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*storm)|(?=.*house)(?=.*lyrandar)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Storm (Half-Elf)\",\r\n\tsource : [[\"E:RLW\", 50]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\ttrait : \"Half-Elf, Dragonmark of Storm (+1 Dexterity, +2 Charisma)\\n   Windwright's Intuition: I can add +1d4 to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a water or air vehicle.\\n   Headwinds: I know the Gust cantrip. Once I reach 3rd level, I can cast Gust of Wind once per long rest. Charisma is my spellcasting ability for these spells.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Headwinds (level 1)\",\r\n\t\tspells : [\"gust\"],\r\n\t\tselection : [\"gust\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\tlimfeaname : \"Gust of Wind\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"feather fall\", \"fog cloud\", \"gust of wind\", \"levitate\", \"sleet storm\", \"wind wall\", \"conjure minor elementals\", \"control water\", \"conjure elemental\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Feather Fall, Fog Cloud, Gust of Wind, Levitate, Sleet Storm, Wind Wall, Conjure Minor Elementals, Control Water, and Conjure Elemental.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark warding dwarf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*warding)|(?=.*house)(?=.*kundarak)).*$/i,\r\n\tname : \"Dwarf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Warding (Dwarf)\",\r\n\tsource : [[\"E:RLW\", 51]],\r\n\tplural : \"Dwarves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\ttrait : \"Dwarf, Dragonmark of Warding (+2 Constitution, +1 Intelligence)\\n\" + (typePF ? \"   \" : \"- \") + \"Warder's Intuition: I can add +1d4 to my Intelligence (Investigation) checks and ability checks with thieves' tools.\" + (typePF ? \"\\n   Stonecunning: When I make an Int (History) check related to origin of stonework, I am considered having expertise in the History skill.\\n   \" : \" - Stonecunning: Expertise in History when concerning stonework.\\n- \") + \"Wards and Seals: I can cast Alarm and Mage Armor each once per long rest. At 3rd level, I can also cast Arcane Lock once per long rest. Intelligence is my spellcasting ability for these and none of them require material components.\\n\" + (typePF ? \"   \" : \"- \") + \"Spells of the Mark: I add several spells to my class' spell list(s).\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"wards and seals\" : {\r\n\t\t\tname : \"Wards and Seals (level 1)\",\r\n\t\t\tlimfeaname : \"Alarm\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 1)\",\r\n\t\t\t\tspells : [\"alarm\", \"mage armor\"],\r\n\t\t\t\tselection : [\"alarm\", \"mage armor\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Mage Armor\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"alarm\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mage armor\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"arcane lock\" : {\r\n\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"alarm\", \"armor of agathys\", \"arcane lock\", \"knock\", \"glyph of warding\", \"magic circle\", \"leomund's secret chest\", \"mordenkainen's faithful hound\", \"antilife shell\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Alarm, Armor of Agathys, Arcane Lock, Knock, Glyph of Warding, Magic Circle, Leomund's Secret Chest, Mordenkainen's Faithful Hound, and Antilife Shell.\"\r\n\t\t]\r\n\t}\r\n};\r\n\r\n// Aberrant Dragonmark feat\r\nFeatsList[\"aberrant dragonmark\"] = {\r\n\tname : \"Aberrant Dragonmark\",\r\n\tsource : [[\"E:RLW\", 52]],\r\n\tprerequisite : \"No other dragonmark\",\r\n\tprereqeval : function(v) { return !(/dragonmark/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have manifested an aberrant dragonmark. Determine its appearance and the flaw associated with it. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You learn a cantrip of your choice from the sorcerer spell list. In addition, choose a 1st-level spell from the sorcerer spell list. You learn that spell and can cast it through your mark. Once you cast it, you must finish a short or long rest before you can cast it again through the mark. Constitution is your spellcasting ability for these spells.\\n \\u2022 When you cast the 1st-level spell through your mark, you can expend one of your Hit Dice and roll it. If you roll an even number, you gain a number of temporary hit points equal to the number rolled. If you roll an odd number, one random creature within 30 feet of you (not including you) takes force damage equal to the number rolled. If no other creatures are in range, you take the damage.\\n\\nYou also develop a random flaw from the Aberrant Dragonmark Flaws table.\\n\\n\" + toUni(\"d8\\tFlaw\") + \"\\n  1\\tYour mark is a source of constant physical pain.\\n  2\\tYour mark whispers to you. Its meaning can be unclear.\\n  3\\tWhen you're stressed, the mark hisses audibly.\\n  4\\tThe skin around the mark is burned, scaly, or withered.\\n  5\\tAnimals are uneasy around you.\\n  6\\tYou have a mood swing any time you use your mark.\\n  7\\tYour looks change slightly whenever you use the mark.\\n  8\\tYou have horrific nightmares after you use your mark.\",\r\n\tdescription : \"I learn a sorcerer cantrip, and a 1st-level spell that I can cast once per short rest. They use Con as spellcasting ability. I can expend and roll an HD when I cast the level 1 spell. If even, I gain it in temp HP. If odd, a random target in 30 ft takes it in force damage. [+1 Con]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sorcerer cantrip\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [0, 0],\r\n\t}, {\r\n\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : 'oncesr'\r\n\t}]\r\n};\r\n\r\n// House Agent backgrounds\r\nBackgroundList[\"house agent\"] = { // the default is House Cannith\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*(noble|cannith)).*$/i,\r\n\tname : \"Agent of House Cannith\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tskills : [\"Investigation\", \"Persuasion\"],\r\n\tgold : 20,\r\n\tequipleft : [[\"Signet ring of house Cannith\", \"\", \"\"]],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"ID papers\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"House Connections\",\r\n\ttrait : [\r\n\t\t\"I never let emotion complicate work.\",\r\n\t\t\"I'm always looking to improve efficiency.\",\r\n\t\t\"I share trivia about my house's business (medicine, ships, warforged).\",\r\n\t\t\"I hold myself and anyone I work with to extremely high standards.\",\r\n\t\t\"I never forget an insult made against myself or my house.\",\r\n\t\t\"I'm very excited and enthusiastic about everything my house does.\",\r\n\t\t\"I'm representing my house and take great pride in my personal appearance.\",\r\n\t\t\"I'm critical of monarchies and opposed to any restrictions on the houses.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Common Good\",\r\n\t\t\t\"Common Good: My house serves a vital function, and its prosperity will help everyone. (Good)\"\r\n\t\t],\r\n\t\t[\"Tradition\",\r\n\t\t\t\"Tradition: I uphold traditions of my house and bring honor to my family. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Innovation\",\r\n\t\t\t\"Innovation: Abandon old traditions and find better ways to do things. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: I want to ensure the prosperity of my house and wield its power myself. (Evil)\"\r\n\t\t],\r\n\t\t[\"Discovery\",\r\n\t\t\t\"Discovery: I want to learn all I can, both for my house and for my own curiosity. (Any)\"\r\n\t\t],\r\n\t\t[\"Comfort\",\r\n\t\t\t\"Comfort: I want to ensure that me and friends of mine enjoy the best things in life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My house is my family, and I would do anything for my family.\",\r\n\t\t\"I love someone from another house, but the relationship is forbidden.\",\r\n\t\t\"Someone I love was killed by a rival faction within my house, and I will have revenge.\",\r\n\t\t\"I don't care about the house as a whole, but I would do anything for my old mentor.\",\r\n\t\t\"I believe my house needs to evolve to survive, and I need to lead that change.\",\r\n\t\t\"I'm determined to impress the leaders of my house, and to become a leader myself.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'm overly concerned with following established procedures and protocols.\",\r\n\t\t\"I'm obsessed with conspiracy theories and worried about secret societies and hidden demons.\",\r\n\t\t\"I believe that my house and bloodline makes me better than everyone else.\",\r\n\t\t\"I'm concealing a secret that could get me driven from my house.\",\r\n\t\t\"I have strong religious beliefs that aren't widespread in my house.\",\r\n\t\t\"I'm working for a hidden faction in my house that gives me secret assignments.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an House Agent Role\",\r\n\t\t\"Acquisition\",\r\n\t\t\"Investigation\",\r\n\t\t\"Research \\u0026 Development\",\r\n\t\t\"Security\",\r\n\t\t\"Intimidation\",\r\n\t\t\"Exploration\",\r\n\t\t\"Negotiation\",\r\n\t\t\"Covert Operations\"\r\n\t],\r\n\ttoolProfs : [\"Alchemist's supplies\", \"Tinker's tools\"]\r\n};\r\nAddBackgroundVariant(\"house agent\", \"deneith\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*deneith).*$/i,\r\n\tname : \"Agent of House Deneith\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Deneith\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"ghallanda\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*ghallanda).*$/i,\r\n\tname : \"Agent of House Ghallanda\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Ghallanda\", \"\", \"\"]],\r\n\ttoolProfs : [\"Brewer's supplies\", \"Cook's utensils\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"jorasco\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*jorasco).*$/i,\r\n\tname : \"Agent of House Jorasco\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Jorasco\", \"\", \"\"]],\r\n\ttoolProfs : [\"Alchemist's supplies\", \"Herbalism kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"kundarak\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*kundarak).*$/i,\r\n\tname : \"Agent of House Kundarak\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Kundarak\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"lyrandar\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*lyrandar).*$/i,\r\n\tname : \"Agent of House Lyrandar\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Lyrandar\", \"\", \"\"]],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (sea/air)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"medani\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*medani).*$/i,\r\n\tname : \"Agent of House Medani\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Medani\", \"\", \"\"]],\r\n\ttoolProfs : [\"Disguise kit\", [\"Thieves' tools\", \"Dex\"]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"orien\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*orien).*$/i,\r\n\tname : \"Agent of House Orien\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Orien\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"phiarlan\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*phiarlan).*$/i,\r\n\tname : \"Agent of House Phiarlan\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Phiarlan\", \"\", \"\"]],\r\n\ttoolProfs : [\"Disguise kit\", [\"Musical instrument\", 1]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"sivis\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*sivis).*$/i,\r\n\tname : \"Agent of House Sivis\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Sivis\", \"\", \"\"]],\r\n\ttoolProfs : [\"Calligrapher's tools\", \"Forgery kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"tharashk\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*tharashk).*$/i,\r\n\tname : \"Agent of House Tharashk\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Tharashk\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"thuranni\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*thuranni).*$/i,\r\n\tname : \"Agent of House Thuranni\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Thuranni\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Musical instrument\", 1], \"Poisoner's kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"vadalis\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*vadalis).*$/i,\r\n\tname : \"Agent of House Vadalis\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Vadalis\", \"\", \"\"]],\r\n\ttoolProfs : [\"Herbalism kit\", \"Vehicles (land)\"]\r\n});\r\nBackgroundFeatureList[\"house connections\"] = {\r\n\tdescription : \"As an agent of my house, I can always get food and lodging for my friends at a house enclave. My house usually provides me with necessary supplies and transportation if it assigns me a mission. I have many old friends, mentors, and rivals in my house that I might run into and be willing to help me depending on my current standing in the house.\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 95]]\r\n};\r\n\r\n// Artificer class\r\nClassList.artificer = {\r\n\tregExpSearch : /^(?=.*artificer)(?!.*wizard).*$/i,\r\n\tname : \"Artificer\",\r\n\tsource : [[\"E:RLW\", 54], [\"T\", 9]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Con\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Investigation, Medicine, Nature, Perception, and Sleight of Hand\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\", [\"Artisan's tools\", 1]],\r\n\t\tsecondary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false, [\"Firearms\"]]\r\n\t},\r\n\tequipment : \"Artificer starting equipment:\" +\r\n\t\t\"\\n \\u2022 Any two simple weapons;\" +\r\n\t\t\"\\n \\u2022 A light crossbow and 20 bolts;\" +\r\n\t\t\"\\n \\u2022 Studded leather armor -or- scale mail;\" +\r\n\t\t\"\\n \\u2022 Thieves' tools and a dungeoneer's pack;\" +\r\n\t\t\"\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Artificer Specialist\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingFactorRoundupMulti : true,\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells : \"list\",\r\n\t\tprepared : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"magical tinkering\" : {\r\n\t\t\tname : \"Magical Tinkering\",\r\n\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I use thieves/artisan's tools to give 1 property to a nonmagical tiny object:\",\r\n\t\t\t\t\" \\u2022 Emit light (5-ft radius bright light, equal dim), an odor, or a nonverbal sound\",\r\n\t\t\t\t\" \\u2022 Static visual effect on one surface, or emit a 6-second recorded message when tapped\",\r\n\t\t\t\t\"If I instill a property in more objects than I can have active, the oldest loses its property\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Intelligence modifier of active objects\",\r\n\t\t\taction : [[\"action\", \" (add/remove)\"]],\r\n\t\t\t\"infuse item\" : {\r\n\t\t\t\tname : \"Infuse Item\",\r\n\t\t\t\textraname : \"Artificer 2\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can turn nonmagical objects into magic items using my infusions\",\r\n\t\t\t\t\t\"I can attune to it immediately; If I infuse too many items, the oldest loses its magic\",\r\n\t\t\t\t\t\"The infusion lasts until my death + my Int mod in days, but ends if I unlearn the infusion\",\r\n\t\t\t\t\t\"Each infusion can only be used in one item at a time and only in appropriate items\",\r\n\t\t\t\t\t\"Whenever I gain an artificer level, I can replace an infusion I know with another\",\r\n\t\t\t\t\t\"I can use an infused item as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"infuse item\",\r\n\t\t\t\tminlevel : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast prepared artificer cantrips/spells, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"To cast, I must use thieves' or artisan's tools I'm proficient with as a spellcasting focus\",\r\n\t\t\t\t\"I can cast my prepared artificer spells as rituals if they have the ritual tag\",\r\n\t\t\t\t\"Whenever I gain an artificer level, I can swap one artificer cantrip I know for another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\treturn [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4][idx] + \" cantrips known\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic && spName == \"artificer\" && spellObj.compMaterial === SpellsList[spellKey].compMaterial) {\r\n\t\t\t\t\t\t\tvar extraFocus = classes.known.artificer.subclass.indexOf(\"artillerist\") !== -1 && classes.known.artificer.level > 4 ? \"my arcane firearm, \" : classes.known.artificer.subclass.indexOf(\"armorer\") !== -1 && classes.known.artificer.level > 2 ? \"my arcane armor, \" : \"\";\r\n\t\t\t\t\t\t\tspellObj.compMaterial = (spellObj.compMaterial ? spellObj.compMaterial + \".\\n\\nAlso a\" : \"A\") + \"lways requires my artificer spellcasting focus: thieves' tools, any set of artisan's tools I'm proficient with, \" + extraFocus + \"or an item infused by me.\";\r\n\t\t\t\t\t\t\tif (GetFeatureChoice(\"classes\", \"artificer\", \"spellcasting\", true).indexOf(\"don't change component column on spell sheet\") != -1) {\r\n\t\t\t\t\t\t\t\t// do nothing if set to do so\r\n\t\t\t\t\t\t\t} else if (!spellObj.components) {\r\n\t\t\t\t\t\t\t\tspellObj.components = \"M\\u0192\";\r\n\t\t\t\t\t\t\t} else if (spellObj.components.indexOf(\"M\") == -1) {\r\n\t\t\t\t\t\t\t\tspellObj.components += \",M\\u0192\";\r\n\t\t\t\t\t\t\t} else if ((/M([^\\u0192\\u2020]|$)/).test(spellObj.components)) {\r\n\t\t\t\t\t\t\t\tspellObj.components = spellObj.components.replace(\"M\", \"M\\u0192\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My artificer spells always require me to use a spellcasting focus: thieves' tools, artisan's tools I'm proficient with, or an item infused by me.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\textrachoices : [\"Don't change component column on spell sheet\"],\r\n\t\t\textraname : \"Artificer Spellcasting\",\r\n\t\t\t\"don't change component column on spell sheet\" : {\r\n\t\t\t\tname : \"[Meta] Don't alter spell sheets\",\r\n\t\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\t\tdescription: desc(\"The automation will not add M\\u0192 to each artificer spell on the generated spell sheets\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"infuse item\" : {\r\n\t\t\tname : \"Infuse Item\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 12]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to add Artificer Infusions to the third page'),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Artificer Infusion\",\r\n\t\t\textrachoices : [\"Boots of the Winding Path (prereq: level 6 artificer)\", \"Enhanced Arcane Focus\", \"Enhanced Defense (armor)\", \"Enhanced Defense (shield)\", \"Enhanced Weapon\", \"Homunculus Servant\", \"Radiant Weapon (prereq: level 6 artificer)\", \"Repeating Shot\", \"Repulsion Shield (prereq: level 6 artificer)\", \"Resistant Armor (prereq: level 6 artificer)\", \"Returning Weapon\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12;\r\n\t\t\t}),\r\n\t\t\t\"boots of the winding path (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Boots of the Winding Path\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The wearer can use a bonus action to teleport up to 15 ft to an unoccupied space it can see\",\r\n\t\t\t\t\t\"It must be a space that the wearer had occupied some time during the current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"pair of boots; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Boots of the Winding Path\"]\r\n\t\t\t},\r\n\t\t\t\"enhanced arcane focus\" : {\r\n\t\t\t\tname : \"Enhanced Arcane Focus\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription: desc(\"The holder has a bonus to spell attack rolls and ignores half cover with spell attacks\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"rod/staff/wand; attunement; +\" + (n < 10 ? 1 : 2);\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Enhanced Arcane Focus +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"enhanced arcane focus, +1 or +2\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense (armor)\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (shield)\") == -1;\r\n\t\t\t\t},\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Armor +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"armor, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense (shield)\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (armor)\") == -1;\r\n\t\t\t\t},\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Shield +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"shield, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced weapon\" : {\r\n\t\t\t\tname : \"Enhanced Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"simple/martial weapon; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Weapon +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"weapon, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"homunculus servant\" : {\r\n\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The item I infuse becomes the heart of a homunculus that immediately forms around it\",\r\n\t\t\t\t\t\"I determine its appearance; It is friendly to me and my allies and obeys my commands\",\r\n\t\t\t\t\t'See \"Homunculus Servant\" on a companion page to see its game statistics'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"gem or crystal of 100+ gp\",\r\n\t\t\t\taction : [[\"bonus action\", \" (command)\"]],\r\n\t\t\t\tcreaturesAdd : [[\"Homunculus Servant\"]],\r\n\t\t\t\tcreatureOptions : [{\r\n\t\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\t\tsize : 5,\r\n\t\t\t\t\ttype : \"Construct\",\r\n\t\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\t\tac : 13,\r\n\t\t\t\t\thp : 3,\r\n\t\t\t\t\thd : [2, 4],\r\n\t\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\t\tspeed : \"20 ft, fly 30 ft\",\r\n\t\t\t\t\tscores : [4, 15, 12, 10, 10, 7],\r\n\t\t\t\t\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\r\n\t\t\t\t\tskills : {\r\n\t\t\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\t\t\"stealth\" : 4\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\t\tcondition_immunities : \"exhaustion, poisoned\",\r\n\t\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\t\tpassivePerception : 14,\r\n\t\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\t\tattacksAction : 1,\r\n\t\t\t\t\tattacks : [{\r\n\t\t\t\t\t\tname : \"Force Strike\",\r\n\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tfeatures : [{\r\n\t\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\ttraits : [{\r\n\t\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\t\tdescription : \"The homunculus regains 2d6 hit points whenever the Mending spell is cast on it. Its HP total is equal to 1 + its creator's artificer level + its creator's Intelligence modifier. If it or its creator dies, the homunculus vanishes, leaving its heart in its space.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Evasion\",\r\n\t\t\t\t\t\tdescription : \"If the homunculus is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw, and only half damage if it fails. It can't use this trait if it's incapacitated.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tactions : [{\r\n\t\t\t\t\t\tname : \"Channel Magic\",\r\n\t\t\t\t\t\tdescription : \"As a reaction, the homunculus delivers a spell cast by its creator that has a range of touch. The homunculus must be within 120 ft of its creator to do so.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\theader : \"Construct\",\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\t\tHDobj.alt.push(1 + intMod + artLvl);\r\n\t\t\t\t\t\t\tHDobj.altStr.push(\" = 1 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + \" + artLvl + \" from its creator's artificer level\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t\t}\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"radiant weapon (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Radiant Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon has a +1 bonus to attack and damage rolls made with it and it sheds light\",\r\n\t\t\t\t\t\"As a bonus action, its wielder can start/stop the light, 30-ft radius bright + 30 ft dim light\",\r\n\t\t\t\t\t\"The weapon has 4 charges, regaining 1d4 expended charges daily at dawn\",\r\n\t\t\t\t\t\"As a reaction when hit by an attack, the wielder can expend 1 charge to blind its attacker\",\r\n\t\t\t\t\t\"The attacker makes a Con save (my spell save DC) or is blinded until its next turn ends\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"simple/martial weapon; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Radiant Weapon\"]\r\n\t\t\t},\r\n\t\t\t\"repeating shot\" : {\r\n\t\t\t\tname : \"Repeating Shot\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon requiring ammunition has a +1 bonus to attack and damage rolls made with it\",\r\n\t\t\t\t\t\"It magically produces one piece of ammunition whenever it is used to make a ranged attack\",\r\n\t\t\t\t\t\"Thus, it doesn't require ammunition and ignores the loading property if it has it\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"weapon with ammo; requires attunement\",\r\n\t\t\t\tmagicitemsAdd : [\"Repeating Shot\"]\r\n\t\t\t},\r\n\t\t\t\"repulsion shield (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Repulsion Shield\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The shield gives its wearer an extra +1 bonus to AC; It has 4 charges, regaining 1d4 daily\",\r\n\t\t\t\t\t\"As a reaction when hit in melee, the wearer can use 1 charge to push the attacker 15 ft\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"shield; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Repulsion Shield\"]\r\n\t\t\t},\r\n\t\t\t\"resistant armor (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Resistant Armor\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The armor gives its wearer resistance to one type of damage, chosen at the time of infusion\",\r\n\t\t\t\t\t\"Choose from: acid,\tcold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Armor of Resistance\"]\r\n\t\t\t},\r\n\t\t\t\"returning weapon\" : {\r\n\t\t\t\tname : \"Returning Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : \"After being used for a ranged attack, the weapon returns immediately; +1 magical bonus\",\r\n\t\t\t\tadditional : \"weapon with the thrown property\",\r\n\t\t\t\tmagicitemsAdd : [\"Returning Weapon\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"the right tool for the job\" : {\r\n\t\t\tname : \"The Right Tool for the Job\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: \" [using thieves' or artisan's tools]\" + desc(\"In 1 hour (during a rest) I can create a set of artisan's tools that last until I do so again\"),\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Artificer Specialist\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a specialism and put it in the \"Class\" field on the first page',\r\n\t\t\t\t\"Choose either alchemist, artillerist, or battle smith\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"tool expertise\" : {\r\n\t\t\tname : \"Tool Expertise\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [expertise with all tools I'm proficient with]\",\r\n\t\t\tskillstxt : \"Expertise with all tools I'm proficient with\",\r\n\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t},\r\n\t\t\"flash of genius\" : {\r\n\t\t\tname : \"Flash of Genius\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"As a reaction when I or another in 30 ft make a check/save, I can add my Int mod to it\"),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"magic item adept\" : {\r\n\t\t\tname : \"Magic Item Adept\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"It takes me half the normal time and gold to craft common and uncommon magic items\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"attune to \" + (n < 14 ? 4 : n < 18 ? 5 : 6) + \" magic items\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"spell-storing item\" : {\r\n\t\t\tname : \"Spell-Storing Item\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 13]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can infuse a 1st-/2nd-level artificer spell into an item I touch\",\r\n\t\t\t\t\"It has to be a weapon or spellcasting focus for me; Stored spells are lost if I do this again\",\r\n\t\t\t\t\"The spell must have a casting time of 1 action, but I need not have it prepared\",\r\n\t\t\t\t\"A creature holding an infused item can use an action to cast the spell, using my abilities\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"cast stored spell\",\r\n\t\t\tusages : \"2\\xD7 Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(2, Number(What('Int Mod')) * 2);\",\r\n\t\t\trecovery : typePF ? \"LR\" : \"long rest\"\r\n\t\t},\r\n\t\t\"magic item savant\" : {\r\n\t\t\tname : \"Magic Item Savant\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [ignore class/race/spell/level attune require.]\"\r\n\t\t},\r\n\t\t\"soul of artifice\" : {\r\n\t\t\tname : \"Soul of Artifice\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : \" [+1 on all saves per attuned magic item]\\n   As a reaction when I'm reduced to 0 HP, I can end one infusion to drop to 1 HP instead\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tsavetxt : {\r\n\t\t\t\ttext : [\"+1 to all saves per attuned magic item\"]\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tprereqLvl6 : function(v) { return classes.known.artificer.level >= 6; },\r\n\tprereqLvl10 : function(v) { return classes.known.artificer.level >= 10; },\r\n\tprereqLvl14 : function(v) { return classes.known.artificer.level >= 14; },\r\n};\r\n\r\n// Set the Artificer infusion list for Replicate Magic Item\r\nRunFunctionAtEnd(function() {\r\n\tvar artMi = [\r\n\t\t// 2nd-level artificer\r\n\t\t[\"alchemy jug\", 2],\r\n\t\t[\"bag of holding\", 2],\r\n\t\t[\"cap of water breathing\", 2],\r\n\t\t[\"goggles of night\", 2],\r\n\t\t[\"rope of climbing\", 2],\r\n\t\t[\"sending stones\", 2],\r\n\t\t[\"wand of magic detection\", 2],\r\n\t\t[\"wand of secrets\", 2],\r\n\t\t// 6th-level artificer\r\n\t\t[\"boots of elvenkind\", 6],\r\n\t\t[\"cloak of elvenkind\", 6],\r\n\t\t[\"cloak of the manta ray\", 6],\r\n\t\t[\"eyes of charming\", 6],\r\n\t\t[\"gloves of thievery\", 6],\r\n\t\t[\"lantern of revealing\", 6],\r\n\t\t[\"pipes of haunting\", 6],\r\n\t\t[\"ring of water walking\", 6],\r\n\t\t// 10th-level artificer\r\n\t\t[\"boots of striding and springing\", 10],\r\n\t\t[\"boots of the winterlands\", 10],\r\n\t\t[\"bracers of archery\", 10],\r\n\t\t[\"brooch of shielding\", 10],\r\n\t\t[\"cloak of protection\", 10],\r\n\t\t[\"eyes of the eagle\", 10],\r\n\t\t[\"gauntlets of ogre power\", 10],\r\n\t\t[\"gloves of missile snaring\", 10],\r\n\t\t[\"gloves of swimming and climbing\", 10],\r\n\t\t[\"hat of disguise\", 10],\r\n\t\t[\"headband of intellect\", 10],\r\n\t\t[\"helm of telepathy\", 10],\r\n\t\t[\"medallion of thoughts\", 10],\r\n\t\t[\"necklace of adaptation\", 10], // TCoE addition\r\n\t\t[\"periapt of wound closure\", 10],\r\n\t\t[\"pipes of the sewers\", 10],\r\n\t\t[\"quiver of ehlonna\", 10],\r\n\t\t[\"ring of jumping\", 10],\r\n\t\t[\"ring of mind shielding\", 10],\r\n\t\t[\"slippers of spider climbing\", 10],\r\n\t\t[\"ventilating lung\", 10],\r\n\t\t[\"winged boots\", 10],\r\n\t\t// 14th-level artificer\r\n\t\t[\"amulet of health\", 14],\r\n\t\t[\"arcane propulsion arm\", 14],\r\n\t\t[\"belt of giant strength\", 14, \"hill (str 21, rare)\"],\r\n\t\t[\"boots of levitation\", 14],\r\n\t\t[\"boots of speed\", 14],\r\n\t\t[\"bracers of defense\", 14],\r\n\t\t[\"cloak of the bat\", 14],\r\n\t\t[\"dimensional shackles\", 14],\r\n\t\t[\"gem of seeing\", 14],\r\n\t\t[\"horn of blasting\", 14],\r\n\t\t[\"ring of free action\", 14],\r\n\t\t[\"ring of protection\", 14],\r\n\t\t[\"ring of the ram\", 14]\r\n\t];\r\n\t// add all common items (except potions and scrolls)\r\n\tfor (var mi in MagicItemsList) {\r\n\t\tvar aMI = MagicItemsList[mi];\r\n\t\tif (aMI.type && !(/potion|scroll/i).test(aMI.type) &&\r\n\t\t\t( (!aMI.rarity && aMI.choices) || (aMI.rarity && aMI.rarity.toLowerCase() === \"common\") )\r\n\t\t) {\r\n\t\t\t// only look at choices if the main object has no rarity (i.e. the choices have different rarities)\r\n\t\t\tif (!aMI.rarity && aMI.choices) {\r\n\t\t\t\tfor (var c = 0; c < aMI.choices.length; c++) {\r\n\t\t\t\t\tvar choiceNmLC = aMI.choices[c].toLowerCase();\r\n\t\t\t\t\tvar aMIchoice = aMI[choiceNmLC];\r\n\t\t\t\t\t// skip if not common rarity or a potion or a scroll\r\n\t\t\t\t\tif (!aMIchoice || !aMIchoice.rarity || aMIchoice.rarity.toLowerCase() !== \"common\" || (/potion|scroll/i).test(aMIchoice.type)) continue;\r\n\t\t\t\t\tartMi.push([mi, 0, choiceNmLC]);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// the main object has rarity \"common\", so add it as a whole\r\n\t\t\t\tartMi.push([mi]);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tvar theObj = ClassList.artificer.features[\"infuse item\"];\r\n\tfor (var a = 0; a < artMi.length; a++) {\r\n\t\tvar MI0 = artMi[a][0];\r\n\t\tvar MI1 = artMi[a][1];\r\n\t\tvar MI2 = artMi[a][2];\r\n\t\tvar anArtMi = MagicItemsList[MI0];\r\n\t\tif (!anArtMi) continue;\r\n\t\tif (MI2 && anArtMi[MI2]) {\r\n\t\t\tanArtMi = {\r\n\t\t\t\tname : anArtMi[MI2].name ? anArtMi[MI2].name : anArtMi.name + \" [\" + MI2.capitalize() + \"]\",\r\n\t\t\t\trarity : anArtMi[MI2].rarity ? anArtMi[MI2].rarity : anArtMi.rarity,\r\n\t\t\t\tsource : anArtMi[MI2].source ? anArtMi[MI2].source : anArtMi.source,\r\n\t\t\t\tattunement : anArtMi[MI2].attunement !== undefined ? anArtMi[MI2].attunement : anArtMi.attunement\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar theI = anArtMi.name + (MI1 ? \" (prereq: level \" + MI1 + \" artificer)\" : \"\");\r\n\t\tvar theILC = theI.toLowerCase();\r\n\t\tif (theObj[theILC]) continue;\r\n\t\ttheObj[theILC] = {\r\n\t\t\tname : anArtMi.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : anArtMi.source,\r\n\t\t\tmagicitemsAdd : [anArtMi.name],\r\n\t\t\tadditional : anArtMi.attunement ? \"requires attunement\" : undefined,\r\n\t\t\tprereqeval : MI1 && MI1 > 2 ? ClassList.artificer[\"prereqLvl\" + MI1] : undefined,\r\n\t\t\tsubmenu : \"Replicate Magic Item\" + (MI1 ? \" (prereq: level \" + (\" \"+MI1).slice(-2) + \" artificer)\" : \" (common magic items) [\" + getLetterRange(anArtMi.name, [\"A-F\", \"G-Q\", \"R-Z\"]) + \"]\")\r\n\t\t};\r\n\t\ttheObj.extrachoices.push(theI);\r\n\t};\r\n});\r\n\r\n// Add the Alchemist specialism\r\nAddSubClass(\"artificer\", \"alchemist\", {\r\n\tregExpSearch : /^(?=.*alchemist)(?!.*wizard).*$/i,\r\n\tsubname : \"Alchemist\",\r\n\tfullname : \"Alchemist\",\r\n\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [proficient with alchemist's supplies]\",\r\n\t\t\ttoolProfs : [\"Alchemist's supplies\"],\r\n\t\t\tspellcastingExtra : [\"healing word\", \"ray of sickness\", \"flaming sphere\", \"melf's acid arrow\", \"gaseous form\", \"mass healing word\", \"blight\", \"death ward\", \"cloudkill\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Experimental Elixir\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest I can produce a number of elixirs in empty flasks I touch\",\r\n\t\t\t\t\"Also, as an action, I can expend a spell slot to create one elixir in a touched empty flask\",\r\n\t\t\t\t\"I need alchemist supplies on my person to do this; An elixir lasts until my next long rest\",\r\n\t\t\t\t\"For their effects, see the experimental elixir table on a Notes page; They work like potions\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 6 ? 1 : n < 15 ? 2 : 3) + \" elixir\" + (n < 6 ? \"\" : \"s\");\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Experimental Elixir Table\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Whenever I finish a long rest, I can magically produce a number of experimental elixir in empty flasks I touch. I can create one at 3rd level, two at 6th level, and three at 15th level.\",\r\n\t\t\t\t\t\"Creating an experimental elixir requires me to have alchemist's supplies on my person, and any elixir created like this lasts until it is drunk or until the end of my next long rest.\",\r\n\t\t\t\t\t\"I can create additional experimental elixirs by expending a spell slot of 1st level or higher for each one. When I do so, I use my action to create the elixir in an empty flask I touch.\",\r\n\t\t\t\t\t\"As an action, a creature can drink the elixir or administer it to an incapacitated creature.\",\r\n\t\t\t\t\t\"The effect of an elixir when someone drinks it is found on the table below. Roll to determine the effect for each elixir I create when finishing a long rest. I can choose the effect from the table for those created by expending a spell slot.\",\r\n\t\t\t\t\t\"\\n  D6\\tEFFECT\",\r\n\t\t\t\t\t\"1\\tHealing: The drinker regains a number of hit points equal to 2d4 + my Intelligence modifier.\",\r\n\t\t\t\t\t\"2\\tSwiftness: The drinker's walking speed increases by 10 ft for 1 hour.\",\r\n\t\t\t\t\t\"3\\tResilience: The drinker gains a +1 bonus to AC for 10 minutes.\",\r\n\t\t\t\t\t\"4\\tBoldness: The drinker can roll a d4 and add the number rolled to every attack roll and saving throw they make for the next minute.\",\r\n\t\t\t\t\t\"5\\tFlight: The drinker gains a flying speed of 10 ft for 10 minutes.\",\r\n\t\t\t\t\t\"6\\tTransformation: The drinker's body is transformed as if by the alter self spell. The drinker determines the transformation caused by the spell, the effects of which last for 10 minutes.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Alchemical Savant\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 15]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast spells using alchemist's supplies as my spellcasting focus, I can enhance them\",\r\n\t\t\t\t\"I add my Int mod to one roll of acid, fire, necrotic, or poison damage, or restoring HP\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1 && (/acid|fire|necrotic|poison/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells that deal acid, fire, necrotic, or poison damage which I cast while using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one damage die roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\tvar toAdd = Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"acid|fire|necro\\\\.?|necrotic|poison\", toAdd, true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", toAdd, true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells I cast using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one die rolled for dealing acid, fire, necrotic, or poison damage, or when restoring hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Restorative Reagents\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Drinking my experimental elixirs now also grants 2d6 + my Int mod in temp HP (min 1)\",\r\n\t\t\t\t\"I can cast Lesser Restoration with alchemist's supplies without a spell slot (Int mod times)\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tlimfeaname : \"Restorative Reagents: Lesser Restoration\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Restorative Reagents\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"Sp\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"lesser restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tchanges : \"When using my Restorative Reagents class feature, I can cast Lesser Restoration a number of times per long rest equal to my Intelligence modifier. To do so, I have to use alchemist's supplies as my spellcasting focus.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Chemical Mastery\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tadditional: \"each spell 1\\xD7 per long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to acid and poison damage and immunity to being poisoned\",\r\n\t\t\t\t\"I can cast Greater Restoration and Heal each once per long rest without a spell slot\",\r\n\t\t\t\t\"I need alchemist's supplies as a focus for it, but the spells require no material components\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Acid\", \"Poison\"],\r\n\t\t\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Chemical Mastery\",\r\n\t\t\t\tspells : [\"greater restoration\", \"heal\"],\r\n\t\t\t\tselection : [\"greater restoration\", \"heal\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"greater restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tdescription : \"Reduce exhaustion 1 lvl or end charm, petrify, curse, one ability score reduction, or max HP reduction\",\r\n\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Greater Restoration once per long rest without using a spell slot or requiring other material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"heal\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Heal once per long rest without using a spell slot.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the Artillerist specialism\r\nAddSubClass(\"artificer\", \"artillerist\", {\r\n\tregExpSearch : /^(?=.*artillerist)(?!.*wizard).*$/i,\r\n\tsubname : \"Artillerist\",\r\n\tfullname : \"Artillerist\",\r\n\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [proficient with woodcarver's tools]\",\r\n\t\t\ttoolProfs : [\"Woodcarver's tools\"],\r\n\t\t\tspellcastingExtra : [\"shield\", \"thunderwave\", \"scorching ray\", \"shatter\", \"fireball\", \"wind wall\", \"ice storm\", \"wall of fire\", \"cone of cold\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use woodcarver's or smith's tools to create an eldritch cannon in 5 ft\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+) to create one cannon\",\r\n\t\t\t\t\"I decide its size (Small/Tiny), appearance, type: flamethrower, force ballista, or protector\",\r\n\t\t\t\t\"It disappears after 1 hour, when reduced to 0 HP, or if I dismiss it as an action\",\r\n\t\t\t\t\"As a bonus action when within 60 ft of it, I can activate it to move and do its action\",\r\n\t\t\t\t\"I can't have multiple cannons; Select \\\"Eldritch Cannon\\\" on a companion page for its stats\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 15 ? \"1 cannon\" : \"2 cannons\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (create/dismiss)\"], [\"bonus action\", \" (activate)\"]],\r\n\t\t\tcreaturesAdd : [[\"Eldritch Cannon\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\t\tsize : [4, 5],\r\n\t\t\t\ttype : \"Object\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 18,\r\n\t\t\t\thp : 5,\r\n\t\t\t\thd : [\"\", \"\"],\r\n\t\t\t\tspeed : \"15 ft, climb 15 ft\",\r\n\t\t\t\tscores : [10, 10, 10, 10, 10, 10],\r\n\t\t\t\tdamage_immunities : \"poison, psychic\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 0,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flamethrower\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [2, 8, \"fire\"],\r\n\t\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\t\tdescription : \"Dex save, success - half damage; Unattended flammable objects ignite\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"The cannon exhales fire in an adjacent 15-ft cone that its creator designates. Each creature in that area must make a Dexterity saving throw against its creator's artificer spell save DC, taking 2d8 fire damage on a failed save or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Force Ballista\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [2, 8, \"force\"],\r\n\t\t\t\t\trange : \"120 ft\",\r\n\t\t\t\t\tdescription : \"Creature hit is pushed 5 ft away\",\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"The cannon's creator makes a ranged spell attack, originating from the cannon, at one creature or object within 120 ft of it. On a hit, the target takes 2d8 force damage, and if the target is a creature, it is pushed up to 5 ft away from the cannon.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Detonate\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [3, 8, \"force\"],\r\n\t\t\t\t\trange : \"20-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save, success - half damage; Destroys cannon\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"As an action, its creator can command the cannon to detonate if its creator is within 60 ft of it. Doing so destroys the cannon and forces each creature within 20 ft of it to make a Dexterity saving throw against its creator's artificer spell save DC, taking 3d8 force damage on a failed save or half as much damage on a successful one.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\tdescription : \"The cannon regains 2d6 HP whenever Mending is cast on it.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Cannon Type\",\r\n\t\t\t\t\tdescription : \"Upon creation, the creator decides what type of cannon it is: Flamethrower, Force Ballista, or Protector. What feature/attack it can use depends on its type.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Protector\",\r\n\t\t\t\t\tdescription : \"The cannon emits a burst of positive energy that grants itself and each creature of its creator's choice within 10 ft of it a number of temporary hit points equal to 1d8 + its creator's Intelligence modifier (minimum of +1).\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"As an object, the cannon only acts when activated by its creator, uses its creator's artificer spell attack and save DC, and has five times the artificer level in HP. It disappears after 1 hour, when reduced to 0 HP, or when its creator dismisses it as an action.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Activation\",\r\n\t\t\t\t\tdescription : \"The creator of the cannon can activate it as a bonus action while within 60 ft of it. Once activated, the cannon does as instructed, moves and uses the action associated with its type: flamethrower attack, force ballista attack, or protector feature.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Detonate (Artillerist 9)\",\r\n\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\tdescription : \"The creator of the cannon, can use an action to detonate the cannon when within 60 ft of it, see the attack section. The cannon's attacks now deal 3d8 damage.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// add the Detonate attack entry\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"Detonate\");\r\n\t\t\t\t\t\t// Upgrade the damage for the attacks\r\n\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"3d8\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// remove the Detonate attack entry\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t\t\t// Reset the damage for the attacks\r\n\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"2d8\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shimmering Field (Artillerist 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The creator of the cannon and their allies have half cover while within 10 ft of the cannon.\"\r\n\t\t\t\t}],\r\n\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\theader : \"Object\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\tHDobj.alt.push(5 * artLvl);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t},\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// remove the Detonate attack if adding this creature before artificer level 9\r\n\t\t\t\t\tif (lvl[0] < 9) Value(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Arcane Firearm\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 18]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : \" [lasts until I use this feature again]\" + desc([\r\n\t\t\t\t\"After a long rest, I can use woodcarver's tools to enhance a wand, staff, or rod\",\r\n\t\t\t\t\"If I use this as my spellcasting focus for an artificer spell, I add +1d8 to one damage\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\r\n\t\t\t\t\t\t\tvar d8Regex = /(\\d+)d8/;\r\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd8') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd8', 'Cd8');\r\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd8') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd8', 'Qd8');\r\n\t\t\t\t\t\t\t} else if (d8Regex.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d8Regex, Number(fields.Damage_Die.replace(d8Regex, '$1')) + 1 + 'd8');\r\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d8 dmg\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d8';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\",\r\n\t\t\t\t\t10\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d8\", true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Explosive Cannon\",\r\n\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"My eldritch cannons deal +1d8 damage; As an action, I can detonate a cannon in 60 ft\"),\r\n\t\t\taction : [[\"action\", \"Eldritch Cannon (detonate)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Fortified Position\",\r\n\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : \" [cannons grant half cover in 10 ft to allies]\" + desc([\r\n\t\t\t\t\"I can now have two cannons at the same time and activate both with one bonus action\",\r\n\t\t\t\t\"I can create 2 eldritch cannons with the same action (still only one with a spell slot)\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the Battle Smith specialism\r\nAddSubClass(\"artificer\", \"battle smith\", {\r\n\tregExpSearch : /^(?=.*battle)(?=.*smith)(?!.*wizard).*$/i,\r\n\tsubname : \"Battle Smith\",\r\n\tfullname : \"Battle Smith\",\r\n\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Battle Ready \\u0026 Tool Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with martial weapons and smith's tools\",\r\n\t\t\t\t\"I can use my Intelligence modifier instead of Strength or Dexterity for magic weapons\"\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tspellcastingExtra : [\"heroism\", \"shield\", \"branding smite\", \"warding bond\", \"aura of vitality\", \"conjure barrage\", \"aura of purity\", \"fire shield\", \"banishing smite\", \"mass cure wounds\"],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && (v.theWea.isMagicWeapon || v.thisWeapon[1]) && (fields.Mod === 1 || fields.Mod === 2) && Number(What(\"Int\")) > Number(What(fields.Mod === 1 ? \"Str\" : \"Dex\"))) {\r\n\t\t\t\t\t\t\tfields.Mod = 4;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'I can use my Intelligence modifier instead of Strength or Dexterity for the attack and damage rolls of magic weapons.'\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Steel Defender\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I end a long rest, I can use smith's tools to create a steel defender\",\r\n\t\t\t\t\"I determine its appearance; It obeys my commands and it acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can take reactions and move on its turn even if I don't command it\",\r\n\t\t\t\t\"I can't have multiple at once; Select \\\"Steel Defender\\\" on a companion page for its stats\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (command)\"], [\"action\", \" (restore)\"]],\r\n\t\t\tcreaturesAdd : [[\"Steel Defender\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Steel Defender\",\r\n\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : 15,\r\n\t\t\t\thp : 12,\r\n\t\t\t\thd : [2, 8],\r\n\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [14, 12, 14, 4, 10, 6],\r\n\t\t\t\tsaves : [\"\", 3, 4, \"\", \"\", \"\"],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"athletics\" : 4,\r\n\t\t\t\t\t\"perception\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\t\t\t\tpassivePerception : 14,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Rend\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\tability : 0,\r\n\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"After using the reaction, the attacker takes this damage, no attack roll required\",\r\n\t\t\t\t\tmodifiers : [\"-Prof\", \"oInt\"],\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The steel defender obeys the commands of its creator and shares its proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Vigilant\",\r\n\t\t\t\t\tdescription : \"The \" + (typePF ? \"\" : \"steel \") + \"defender can't be surprised.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\tdescription : \"The steel defender regains 2d6 HP whenever the Mending spell is cast on it. Its HP total is equal to 2 + its creator's artificer level times five + its creator's Int mod. Within an hour of its death, while within 5 ft, its creator can take an action to use smith's tools and expend a spell slot to have it return to full HP after 1 minute. If its creator dies, \" + (typePF ? \"the steel defender also perishes\" : \"so does it\") + \".\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Repair (3/Day)\",\r\n\t\t\t\t\tdescription : \"As an action, the \" + (typePF ? \"\" : \"magical mechanisms inside the \") + \"steel defender restore\" + (typePF ? \"s\" : \"\") + \" 2d8 + its proficiency bonus in HP to itself or to one construct or object within 5 ft of it.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\tdescription : typePF ? \"As a reaction, the steel defender imposes disadvantage on the attack roll of one creature it can see that is within 5 ft of it, provided the attack roll is against a creature other than the defender.\" : \"As a reaction, the defender imposes disadv. on the attack roll of one creature it can see within 5 ft, provided the creature attacks another than the defender.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Arcane Jolt (Battle Smith 9)\",\r\n\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"Arcane Jolt (1d6): On hit, deal force damage or heal target in 30 ft\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Improved Defender (Battle Smith 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The steel defender's Deflect Attack now deals 1d4 + its creator's Intelligence modifier in force damage to the attacker.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"Comp.Use.AC\", mod : 2, text : \"The steel defender gains a +2 bonus to its AC (base AC of 15).\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (1d6)\", \"Arcane Jolt (2d6)\"));\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"Deflect Attack (reaction)\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (2d6)\", \"Arcane Jolt (1d6)\"));\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\theader : \"Construct\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\tvar artLvl5 = 5 * artLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(2 + intMod + artLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 2 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level (\" + artLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t},\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// remove the Deflect Attack (reaction) attack if adding this creature before artificer level 15\r\n\t\t\t\t\tif (lvl[0] < 15) Value(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Arcane Jolt\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar descr9 = desc([\r\n\t\t\t\t\t\"Once per turn when my steel defender or magic weapon hits a target, I can have it:\",\r\n\t\t\t\t\t\" \\u2022 Deal an extra +2d6 force damage to the target\",\r\n\t\t\t\t\t\" \\u2022 Restore 2d6 HP to another target within 30 ft of the one that was hit\"\r\n\t\t\t\t]);\r\n\t\t\t\tvar descr15 = descr9.replace(/2d6/g, '4d6');\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 9 ? \"\" : n < 15 ? descr9 : descr15;\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 9 ? \"\" : (n < 15 ? 2 : 4) + \"d6\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isMagicWeapon || v.thisWeapon[1]) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Arcane Jolt (' + (classes.known.artificer && classes.known.artificer.level >= 15 ? 4 : 2) + 'd6)';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn when I hit with a magic weapon or my steel defender hits with its attack, I can use my Arcane Jolt class feature to have the hit either deal extra force damage or heal somebody within 30 ft of the target hit.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Improved Defender\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My defender's Deflect Attack now deals its attacker 1d4 + my Int mod force damage\",\r\n\t\t\t\t\"My arcane jolt damage/healing increases to 4d6; My steel defender gains +2 AC\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the new special magic items for the artificer class (infusions)\r\nMagicItemsList[\"boots of the winding path\"] = {\r\n\tname : \"Boots of the Winding Path\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 21], [\"UA:A2\", 9], [\"UA:A3\", 12]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While wearing these boots, I can teleport up to 15 ft as a bonus action to an unoccupied space I can see, as long as I occupied that space at some point during the current turn.\",\r\n\tdescriptionFull : \"While wearing these boots, a creature can teleport up to 15 feet as a bonus action to an unoccupied space the creature can see. The creature must have occupied that space at some point during the current turn.\",\r\n\tattunement : true,\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"enhanced arcane focus, +1 or +2\"] = {\r\n\tname : \"Enhanced Arcane Focus, +1 or +2\",\r\n\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff)).*$/i,\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls (or +2 if the artificer that created it is level 10 or higher). In addition, I ignore half cover when making a spell attack.\",\r\n\tdescriptionFull : \"While holding this rod, staff, or wand, a creature gains a +1 bonus to spell attack rolls. In addition, the creature ignores half cover when making a spell attack.\\n   The bonus increases to +2 when it is created by someone with 10 levels or more in the artificer class.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tchoices : [\"+1 to spell attacks\", \"+2 to spell attacks (artificer level 10+)\"],\r\n\t\"+1 to spell attacks\" : {\r\n\t\tname : \"Enhanced Arcane Focus +1\",\r\n\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?=.*\\+1)(?!.*\\+2).*$/i,\r\n\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks (artificer level 10+)\" : {\r\n\t\tname : \"Enhanced Arcane Focus +2\",\r\n\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?!.*\\+1)(?=.*\\+2).*$/i,\r\n\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +2 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +2 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"radiant weapon\"] = {\r\n\tname : \"Radiant Weapon\",\r\n\tnameTest : \"Radiant\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\ttype : \"weapon (any)\",\r\n\tdescription : \"This item adds a +1 on its to hit and damage, has 4 charges, and regains 1d4 at dawn. As a bonus action, I can have it start/stop shedding light, bright in 30 ft, dim in another 30 ft. As a reaction if hit by an attack, I can use 1 charge to blind the attacker until the end of its next turn unless it makes a Con save (my spell DC).\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it. While holding it, the wielder can take a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet. The wielder can extinguish the light as a bonus action.\\n   The weapon has 4 charges. As a reaction immediately after being hit by an attack, the wielder can expend 1 charge and cause the attacker to be blinded until the end of the attacker's next turn, unless the attacker succeeds on a Constitution saving throw against your spell save DC. The weapon regains 1d4 expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"blind attacker; regains 1d4\",\r\n\taction : [[\"bonus action\", \" (start/stop light)\"], [\"reaction\", \" (1 charge; after hit)\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reaction to blind attacker';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Radiant\" in the name of a weapon, it will be treated as the magic weapon Radiant Weapon. It has +1 to hit and damage and can be used to shed light and to blind an attacker.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"repeating shot\"] = {\r\n\tname : \"Repeating Shot\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 22], [\"UA:A3\", 13]],\r\n\ttype : \"weapon (any with ammunition)\",\r\n\tdescription : \"When I use this magic weapon to make a ranged attack, it magically produces one piece of ammunition and grants a +1 bonus to its attack and damage rolls. Thus, it doesn't require ammunition and ignores the loading property if it has it. The produced ammunition vanishes once it hits or misses a target.\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it when it's used to make a ranged attack, and it ignores the loading property if it has it.\\n   If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the weapon vanishes the instant after it hits or misses a target.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/ammunition/i).test(inObj.description);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '').replace(/(;|,)? ?loading/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Repeating Shot\" in the name of a weapon with the ammunition property, it will be treated as the magic weapon Repeating Shot. It has +1 to hit and damage and produces its own ammunition, thus its loading property is removed if it has it.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif ((/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText) && !v.isSpell) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"repulsion shield\"] = {\r\n\tname : \"Repulsion Shield\",\r\n\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\ttype : \"shield\",\r\n\tdescription : \"I gain an additional +1 bonus to Armor Class while wielding this shield. The shield has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction immediately after being hit by a melee attack, I can expend 1 charge to push the attacker up to 15 ft away.\",\r\n\tdescriptionFull : \"A creature gains a +1 bonus to Armor Class while wielding this shield.\\n   The shield has 4 charges. While holding it, the wielder can use a reaction immediately after being hit by a melee attack to expend 1 of the shield's charges and push the attacker up to 15 feet away. The shield regains 1d4 expended charges daily at dawn.\",\r\n\tweight : 6,\r\n\tattunement : true,\r\n\tusages : 4,\r\n\tadditional : \"regains 1d4\",\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (1 charge)\"]],\r\n\tshieldAdd : [\"Repulsion Shield\", 3, 6]\r\n}\r\nMagicItemsList[\"returning weapon\"] = {\r\n\tname : \"Returning Weapon\",\r\n\tnameTest : \"Returning\",\r\n\tsource : [[\"E:RLW\", 63], [\"T\", 23], [\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\ttype : \"weapon (any thrown)\",\r\n\tdescription : \"This magic weapon grants a +1 bonus to attack and damage rolls I make with it. It returns to my hand immediately after I use it to make a ranged attack.\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it, and it returns to the wielder's hand immediately after it is used to make a ranged attack.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !/\\bthrown\\b/i.test(inObj.description);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Returns immediately after ranged attack';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Returning\" in the name of a thrown weapon, it will be treated as the magic weapon Returning Weapon. It has +1 to hit and damage and returns to my hand immediately after I use it to make a ranged attack.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\n\r\n// Magic Items\r\nMagicItemsList[\"arcane propulsion arm\"] = {\r\n\tname : \"Arcane Propulsion Arm\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"Once attached to my wrist, elbow, or shoulder, this prosthetic magically forms a copy of the appendage it's replacing. It can't be removed against my will, but I can as an action. I can use it as a proficient melee weapon with the thrown property. After a throwing attack with it, it returns and reattaches immediately.\",\r\n\tdescriptionFull : \"This prosthetic appendage was developed by artificers of House Cannith. To attune to this item, you must attach it to your arm at the wrist, elbow, or shoulder, at which point the prosthetic magically forms a copy of the appendage it's replacing.\\n\\nWhile attached, the prosthetic provides these benefits:\\n \\u2022 The prosthetic is a fully capable part of your body.\\n \\u2022 You can take an action to remove the prosthetic, and it removes itself if your attunement to it ends. It can't be removed against your will.\\n \\u2022 The prosthetic is a magic melee weapon with which you're proficient. It deals 1d8 force damage on a hit and has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When thrown, the prosthetic detaches and flies at the target of the attack, then immediately returns to you and reattaches.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature missing a hand or an arm\",\r\n\tprereqeval : function (v) { return false; },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arcane)(?=.*propulsion)(?=.*arm).*$/i,\r\n\t\tname : \"Arcane Propulsion Arm\",\r\n\t\tsource : [[\"E:RLW\", 276]],\r\n\t\tability : 1,\r\n\t\ttype : \"AlwaysProf\",\r\n\t\tdamage : [1, 8, \"force\"],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Thrown; Returns immediately after thrown\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"armblade\"] = {\r\n\tname : \"Armblade\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"weapon (any one-handed melee weapon)\",\r\n\trarity : \"common\",\r\n\tdescription : \"While attuned to it, this magic weapon is attached to my arm and inseparable from me. As a bonus action, I can retract it into my forearm or extend it from there. While it is extended, I can use the weapon as if I was holding it, and I can't use that hand for other purposes.\",\r\n\tdescriptionFull : \"An armblade is a magic weapon that attaches to your arm, becoming inseparable from you as long as you're attuned to it. To attune to this item, you must hold it against your forearm for the entire attunement period.\\n   As a bonus action, you can retract the armblade into your forearm or extend it from there. While it is extended, you can use the weapon as if you were holding it, and you can't use that hand for other purposes.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn (!inObj.description || (/two.{0,3}handed/i).test(inObj.description)) || (!inObj.range || !(/melee/i).test(inObj.range));\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"belashyrra's beholder crown\"] = {\r\n\tname : \"Belashyrra's Beholder Crown\",\r\n\tnameAlt : \"Beholder Crown\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tdescription : \"This symbiotic crown of dark purple and mauve stone attaches to my skull and removing it requires ending a curse. It allows me to see normally in magical and normal darkness (devil's sight) out to 120 ft. It has 10 charges, regaining 1d6+3 at dawn, which I can use to cast several spells with spell save DC 16.\",\r\n\tdescriptionLong : \"This symbiotic crown of dark purple and mauve stone attaches to my skull once I attune to it and removing it requires ending a curse. It allows me to see normally in magical and normal darkness (devil's sight) out to 120 ft. It has 10 charges, regaining 1d6+3 at dawn, which I can use to cast several spells with spell save DC 16. These are: Charm Person (1 charge), Disintegrate (6 charges), Fear (3 charges), Finger of Death (7 charges), Flesh to Stone (6 charges), Hold Person (2 charges), Ray of Enfeeblement (2 charges), Sleep (1 charge), Slow (3 charges), and Telekinesis (5 charges).\",\r\n\tdescriptionFull : \"This symbiotic crown is carved from dark purple and mauve stone, with ten points like stalks set with gemstones resembling the eyestalks of a beholder. To attune to this item, you must wear it on your head for the entire attunement period, during which the crown's hidden tendrils burrow into your scalp to bond with your skull.\\n   While wearing the crown, you can see normally in darkness, both magical and nonmagical, to a distance of 120 feet.\\n   \" + toUni(\"Spells\") + \". The crown has 10 charges. While wearing it, you can use an action to expend some of its charges to cast one of the following spells from it (spell save DC 16): charm person (1 charge), disintegrate (6 charges), fear (3 charges), finger of death (7 charges), flesh to stone (6 charges), hold person (2 charges), ray of enfeeblement (2 charges), sleep (1 charge), slow (3 charges), telekinesis (5 charges).\\n   The crown regains 1d6 + 3 expended charges daily at dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The crown can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the crown ends, and it detaches from you.\\n   The daelkyr Belashyrra made these crowns. While on the same plane of existence as the crown, Belashyrra can see through its eyestalks.\",\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+3\",\r\n\tfixedDC : 16,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"charm person\", \"sleep\"],\r\n\t\tselection : [\"charm person\", \"sleep\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"hold person\", \"ray of enfeeblement\"],\r\n\t\tselection : [\"hold person\", \"ray of enfeeblement\"],\r\n\t\tfirstCol : 2,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"fear\", \"slow\"],\r\n\t\tselection : [\"fear\", \"slow\"],\r\n\t\tfirstCol : 3,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"5 charges\",\r\n\t\tspells : [\"telekinesis\"],\r\n\t\tselection : [\"telekinesis\"],\r\n\t\tfirstCol : 5\r\n\t}, {\r\n\t\tname : \"6 charges\",\r\n\t\tspells : [\"disintegrate\", \"flesh to stone\"],\r\n\t\tselection : [\"disintegrate\", \"flesh to stone\"],\r\n\t\tfirstCol : 6,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"7 charges\",\r\n\t\tspells : [\"finger of death\"],\r\n\t\tselection : [\"finger of death\"],\r\n\t\tfirstCol : 7\r\n\t}]\r\n}\r\nMagicItemsList[\"cleansing stone\"] = {\r\n\tname : \"Cleansing Stone\",\r\n\tsource : [[\"E:RLW\", 276], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This stone sphere is 1 ft in diameter and engraved with mystic sigils. As an action while touching it, I can activate it to remove dirt and grime from my garments and my person.\",\r\n\tdescriptionFull : \"A cleansing stone is a sphere 1 foot in diameter, engraved with mystic sigils. When touching the stone, you can use an action to activate it and remove dirt and grime from your garments and your person.\\n   Such stones are often embedded in pedestals in public squares in Aundair or in high-end Ghallanda inns.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweight : 88 // using average marble/limestone density of 2.711 g/cm3\r\n}\r\nvar ERftLW_docentFullDescription = [\r\n\t\"A docent is a small metal sphere, about 2 inches across, studded with dragonshards. To attune to a docent, you must embed the item somewhere on your body, such as your chest or your eye socket.\",\r\n\t'>>Sentience<<. A docent is a sentient item of any alignment with an Intelligence of 16, a Wisdom of 14, and a Charisma of 14. It perceives the world through your senses. It communicates telepathically with you and can speak, read, and understand any language it knows (see \"Random Properties\" below).',\r\n\t\">>Life Support<<. Whenever you end your turn with 0 hit points, the docent can make a Wisdom (Medicine) check with a +6 bonus. If this check succeeds, the docent stabilizes you.\",\r\n\t\">>Random Properties<<. A docent has the following properties:\",\r\n\t\" \\u2022 >>Languages<<. The docent knows Common, Giant, and 1d4 additional languages chosen by the DM. If a docent knows fewer than six languages, it can learn a new language after it hears or reads the language through your senses.\",\r\n\t\" \\u2022 >>Skills<<. The docent has a +7 bonus to one of the following skills (roll a d4): (1) Arcana, (2) History, (3) Investigation, or (4) Nature.\",\r\n\t\" \\u2022 >>Spells<<. The docent knows one of the following spells and can cast it at will, requiring no components (roll a d6): (1–2) detect evil and good or (3–6) detect magic. The docent decides when to cast the spell.\",\r\n\t\">>Personality<<. A docent is designed to advise and assist the warforged it's attached to. One of the simple functions of a docent is to serve as a translator. The docent's properties are under its control, and if you have a bad relationship with your docent, it might refuse to assist you.\"\r\n];\r\nMagicItemsList[\"docent\"] = {\r\n\tname : \"Docent\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I can embed this sentient small metal sphere studded with dragonshards into my chest or eye socket. I can communicate telepathically with it and it uses my senses. It can serve me as an advisor and a translator. It knowns 6 languages, a spells, an Intelligence skill, and can stabilize me. See Notes page.\",\r\n\tdescriptionFull : ERftLW_docentFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(ERftLW_docentFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/(with|stabilizes|assist) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"dyrrn's tentacle whip\"] = {\r\n\tname : \"Dyrrn's Tentacle Whip\",\r\n\tnameAlt : \"Tentacle Whip\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"weapon (whip)\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This magic whip embeds itself in my arm once I attune to it and removing it requires ending a curse. It has a +2 bonus to attack and damage rolls, deals +1d6 psychic damage, but has disadv. vs. aberrations. On a roll of 20 to hit, the target is stunned until it next turn ends. As a bonus action, I can draw/sheath it in my arm\",\r\n\tdescriptionFull : \"This long, whip-like strand of tough muscle bears a sharp stinger at one end. To attune to this symbiotic weapon, you wrap the whip around your wrist for the entire attunement period, during which time the whip painfully embeds its tendrils into your arm.\\n   You gain a +2 bonus to attack and damage rolls made with this magic whip, but attack rolls made against aberrations with this weapon have disadvantage. A creature hit by this weapon takes an extra 1d6 psychic damage. When you roll a 20 on the d20 for an attack roll with this weapon, the target is stunned until the end of its next turn.\\n   As a bonus action, you can sheathe the whip by causing it to retract into your arm, or draw the whip out of your arm again.\\n   \" + toUni(\"Symbiotic Nature\") + \". The whip can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the whip ends, and it detaches from you.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \"Tentacle Whip (draw/sheath)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"whip\",\r\n\t\tregExpSearch : /^(?=.*tentacle)(?=.*whip).*$/i,\r\n\t\tname : \"Dyrrn's Tentacle Whip\",\r\n\t\tsource : [[\"E:RLW\", 276]],\r\n\t\tdescription : \"Finesse, reach; +1d6 psychic dmg; On 20 to hit: stun until its next turn ends; Disadv. vs. aberrations\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"earworm\"] = {\r\n\tname : \"Earworm\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"This symbiont bonds to my skull once I attune to it and removing it to end the attunement requires ending a curse. It has 4 charges, regaining 1d4 at dawn, which I can use to cast Detect Thoughts (2 charges) or Dissonant Whispers (1 charge) with DC 15. It allows me to speak, read, and write deep speech.\",\r\n\tdescriptionFull : \"To attune to this symbiont, you must hold it against the skin behind your ear for the entire attunement period, whereupon it burrows into your head and bonds to your skull. While the earworm is inside you, you can speak, read, and write Deep Speech.\\n   \" + toUni(\"Spells\") + \". The earworm has 4 charges. You can cast the following spells from it, expending the necessary number of charges (spell save DC 15): detect thoughts (2 charges) or dissonant whispers (1 charge). Each time you use the earworm to cast the detect thoughts spell, it sends the information gleaned to the nearest daelkyr, or to the next nearest earworm until it reaches a daelkyr.\\n   The earworm regains 1d4 expended charges daily at dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The earworm can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the earworm ends, and it exits your body.\",\r\n\tattunement : true,\r\n\tlanguageProfs : [\"Deep Speech\"],\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\tfixedDC : 15,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"dissonant whispers\"],\r\n\t\tselection : [\"dissonant whispers\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"everbright lantern\"] = {\r\n\tname : \"Everbright Lantern\",\r\n\tsource : [[\"E:RLW\", 277], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This bullseye lantern is powered by a dragonshard that sheds light comparable to that produced by a Continual Flame spell. The light never goes out, but it can be shuttered off. It sheds light in a 120-ft cone; the closest 60 ft is bright light, and the farthest 60 ft is dim light.\",\r\n\tdescriptionFull : \"This bullseye lantern contains an Eberron dragonshard that sheds light comparable to that produced by a continual flame spell. An everbright lantern sheds light in a 120-foot cone; the closest 60 feet is bright light, and the farthest 60 feet is dim light.\",\r\n\tweight : 2\r\n}\r\nMagicItemsList[\"feather token\"] = {\r\n\tname : \"Feather Token\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This small metal disk is inscribed with the image of a feather. When I fall at least 20 ft while the token is on my person, I descend 60 ft per round and take no damage from falling. The token's magic is expended after landing, whereupon the disk becomes nonmagical.\",\r\n\tdescriptionFull : \"This small metal disk is inscribed with the image of a feather. When you fall at least 20 feet while the token is on your person, you descend 60 feet per round and take no damage from falling. The token's magic is expended after you land, whereupon the disk becomes nonmagical.\"\r\n}\r\nMagicItemsList[\"finder's goggles\"] = {\r\n\tname : \"Finder's Goggles\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"These goggles with dragonshard lenses grant me +1d4 on Wis (Insight) checks. As an action once per dawn, I can use them to find the last creature to touch an object with a Wis (Insight) check DC 13 + days since last contact. I learn the creature's type and can immediately cast Locate Creature to find the creature.\",\r\n\tdescriptionFull : \"The lenses of these garish goggles are carved from Siberys dragonshards. While wearing these lenses, you gain the following benefits:\\n \\u2022 When you make a Wisdom (Insight) check, you can roll a d4 and add the number rolled to the check.\\n \\u2022 As an action, you can use the goggles to examine an object to identify the aura of the last creature that touched it. Make a Wisdom (Insight) check against a DC of 13 + the number of days since the last contact occurred. On a success, you learn the creature's type and can immediately use the goggles to cast locate creature to find that creature. This property can't be used again until the next dawn.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Finding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known);\r\n\t},\r\n\taction : [[\"action\", \" (examine object)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"examine object\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"After examining object\",\r\n\t\tspells : [\"locate creature\"],\r\n\t\tselection : [\"locate creature\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}]\r\n}\r\nMagicItemsList[\"glamerweave\"] = {\r\n\tname : \"Glamerweave\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can turn the pattern within the cloth into a moving illusory pattern. For the uncommon version, this pattern extends beyond the cloth and gives me +1d4 on a Performance or Persuasion check.\",\r\n\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing the common version of these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\\n   Uncommon glamerweave can have the pattern rise from the cloth. For example, a glamerweave gown might be wreathed in harmless, illusory flames, while a glam­erweave hat might have illusory butterflies fluttering around it.\\n   When you make a Charisma (Performance) or Cha­risma (Persuasion) check while wearing the uncommon version of glamerweave, you can roll a d4 and add the number rolled to the check. Once you use this property, it can't be used again until the next dawn. \",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Common (moving illusory pattern)\", \"Uncommon (pattern rises from the cloth)\"],\r\n\t\"common (moving illusory pattern)\" : {\r\n\t\tname : \"Glamerweave \",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can create a moving illusory pattern within the cloth.\",\r\n\t\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing the common version of these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\"\r\n\t},\r\n\t\"uncommon (pattern rises from the cloth)\" : {\r\n\t\tname : \"Uncommon Glamerweave\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can have the pattern within them rise as an illusory visage (e.g. wreathed in flames). Once per dawn, I can use this to gives me +1d4 on a Charisma (Performance) or Charisma (Persuasion) check.\",\r\n\t\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\\n   You can have the pattern rise from the cloth. For example, a glamerweave gown might be wreathed in harmless, illusory flames, while a glamerweave hat might have illusory butterflies fluttering around it.\\n   When you make a Charisma (Performance) or Charisma (Persuasion) check while wearing the glamerweave, you can roll a d4 and add the number rolled to the check. Once you use this property, it can't be used again until the next dawn.\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}\r\n}\r\nMagicItemsList[\"imbued wood focus\"] = {\r\n\t// Note that this item is implemented here against RAW,\r\n\t// because according to PHB page 203 a spellcasting focus can only be used for\r\n\t// spells with a material component that is neither costly nor consumed.\r\n\t// See also https://dnd.wizards.com/articles/sage-advice/rules-spellcasting\r\n\t// This would mean that the Imbued Wood Focus in only useful for a limited number of spells.\r\n\t// Instead, this code just applies the damage bonus to all damage spells that roll for their damage.\r\n\tname : \"Imbued Wood Focus\",\r\n\tsource : [[\"E:RLW\", 277], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This rod, wand, or staff is cut from a tree infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal the associated damage type add a +1 bonus to one of their damage rolls.\",\r\n\tdescriptionFull : \"An imbued wood focus is a rod, staff, or wand cut from a tree infused with extraplanar energy. If you're a spell­caster, you can use this orb as a spellcasting focus.\\n   When you cast a damage-dealing spell using this item as your spellcasting focus, you gain a +1 bonus to one damage roll of the spell, provided the damage is of the type associated with the item's wood. The types of wood and their associated damage types are listed in the table below.\\n\\n\" + toUni(\"Wood\\t\\t\\tDamage Type\") + \"\\nFernian Ash\\t\\tFire\\nIrian Rosewood\\t\\tRadiant\\nKythrian Manchineel  \\tAcid or Poison\\nLamannian Oak\\t\\tLightning or Thunder\\nMabaran Ebony\\t\\tNecrotic\\nRisian Pine\\t\\tCold\\nShavarran Birch\\t\\tForce\\nXorian Wenge\\t\\tPsychic\",\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tweight : 2,\r\n\tchoices : [\"Fernian Ash (fire)\", \"Irian Rosewood (radiant)\", \"Kythrian Manchineel (acid and poison)\", \"Lamannian Oak (lightning and thunder)\", \"Mabaran Ebony (necrotic)\", \"Risian Pine (cold)\", \"Shavarran Birch (force)\", \"Xorian Wenge (psychic)\"],\r\n\t\"fernian ash (fire)\" : {\r\n\t\tname : \"Fernian Ash Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Fernian Ash (fire)\",\r\n\t\tnameTest : /^(?=.*fernian)(?=.*ash)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Fernian ash, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal fire damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/fire/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"irian rosewood (radiant)\" : {\r\n\t\tname : \"Irian Rosewood Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Irian Rosewood (radiant)\",\r\n\t\tnameTest : /^(?=.*irian)(?=.*rosewood)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Irian rosewood, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal radiant damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/radiant/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"radiant\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"kythrian manchineel (acid and poison)\" : {\r\n\t\tname : \"Kythrian Manchineel Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Kythrian Manchineel (acid and poison)\",\r\n\t\tnameTest : /^(?=.*kythrian)(?=.*manchineel)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Kythrian manchineel, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal acid or poison damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/acid|poison/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"acid|poison\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"lamannian oak (lightning and thunder)\" : {\r\n\t\tname : \"Lamannian Oak Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Lamannian Oak (lightning and thunder)\",\r\n\t\tnameTest : /^(?=.*lamannian)(?=.*oak)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Lamannian oak, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal lightning or thunder damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/lightning|thunder/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"lightning|thunder\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"mabaran ebony (necrotic)\" : {\r\n\t\tname : \"Mabaran Ebony Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Mabaran Ebony (necrotic)\",\r\n\t\tnameTest : /^(?=.*mabaran)(?=.*ebony)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Mabaran ebony, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal necrotic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/necrotic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"necro\\\\.?|necrotic\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"risian pine (cold)\" : {\r\n\t\tname : \"Risian Pine Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Risian Pine (cold)\",\r\n\t\tnameTest : /^(?=.*risian)(?=.*pine)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Risian pine, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal cold damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/cold/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"cold\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"shavarran birch (force)\" : {\r\n\t\tname : \"Shavarran Birch Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Shavarran Birch (force)\",\r\n\t\tnameTest : /^(?=.*shavarran)(?=.*birch)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Shavarran birch, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal force damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1 dmg\";\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] != \"eldritch blast\" && (/force/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"force\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"xorian wenge (psychic)\" : {\r\n\t\tname : \"Xorian Wenge Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Xorian Wenge (psychic)\",\r\n\t\tnameTest : /^(?=.*xorian)(?=.*wenge)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Xorian wenge, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal psychic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/psychic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"psychic\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"keycharm\"] = {\r\n\tname : \"Keycharm\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"When I cast Alarm, Arcane Lock, or Glyph of Warding, I can tie the effect to the keycharm. Its holder receives the notification from Alarm, bypasses the Arcane Lock, or avoids triggering the Glyph of Warding. It can have up to 3 tied spells at one time. As an action, the holder can speak the command to end a tied spell.\",\r\n\tdescriptionFull : \"This small stylized key plays a vital role in the work of House Kundarak. If you cast the alarm, arcane lock, or glyph of warding spell, you can tie the effect to the keycharm so that whoever holds it receives the notification from the alarm spell, bypasses the lock of the arcane lock spell, or avoids triggering the glyph placed by the glyph of warding spell. In addition, the holder (who needn't be attuned to the item) can take an action to end any one spell tied to it, provided the holder knows the command word you set for ending the tied spells. The keycharm can have up to three tied spells at one time.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Warding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"kyrzin's ooze\"] = {\r\n\tname : \"Kyrzin's Ooze\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"Once I attune to this opalescent goo by drinking it, it can only be removed by ending a curse. It gives me resistance to acid and poison damage and immunity to the poisoned condition. Each as an action once per short rest, I can exhale acid breath or become amorphous for 1 minute along with my equipment.\",\r\n\tdescriptionLong : \"I can only attune to this opalescent, symbiotic goo by drinking it. I can't remove it or end the attunement voluntarily, but it seeps out of me if the curse is removed. It gives me resistance to acid and poison damage and immunity to the poisoned condition. As an action once per dawn, I can become amorphous for 1 minute along with my equipment and can move through a space as narrow as 1 inch wide. As an action once per dawn, I can exhale a 30-ft line, 5-ft wide acid breath that deals 8d8 acid damage (Dexterity save DC 15 halves). If I die while it is inside me, it turns my corpse into a black pudding.\",\r\n\tdescriptionFull : \"This opalescent, symbiotic goo comes sealed in a jar and slowly shifts and moves, as if endlessly exploring the jar's interior. To attune to this item, you must first drink the contents of the jar, unlocking the following properties.\\n   \" + toUni(\"Resistant\") + \". While attuned to Kyrzin's ooze, you have resistance to poison and acid damage, and you're immune to the poisoned condition.\\n   \" + toUni(\"Amorphous\") + \". As an action, you can speak a command word and cause your body to assume the amorphous qualities of an ooze. For the next minute, you (along with any equipment you're wearing or carrying) can move through a space as narrow as 1 inch wide without squeezing. Once you use this property, it can't be used again until the next dawn.\\n   \" + toUni(\"Acid Breath\") + \". As an action, you can exhale acid in a 30-foot line that is 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 36 (8d8) acid damage on a failed save, or half as much damage on a successful one. Once you use this property, it can't be used again until the next dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The ooze can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the ooze ends, as it seeps out of you.\\n   If you die while the ooze is inside you, it bursts out and engulfs you, turning your corpse into a black pudding allied with the daelkyr.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Acid\", \"Poison\"],\r\n\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\taction : [[\"action\", \" (amorphous/acid breath)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Kyrzin's Ooze [Amorphous]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Kyrzin's Ooze [Acid Breath]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*ooze)(?=.*acid)(?=.*breath).*$/i,\r\n\t\tname : \"Kyrzin's Ooze Acid Breath\",\r\n\t\tsource : [[\"E:RLW\", 278]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [8, 8, \"acid\"],\r\n\t\trange : '5-ft \\xD7 30-ft line',\r\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tmodifiers : [7, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"living armor\"] = {\r\n\tname : \"Living Armor\",\r\n\tnameTest : /living.*armou?r/i,\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"armor (any)\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This armor of black chitin attaches itself to me once I attune to it and removing it requires ending a curse. It gives me +1 AC and resistance to necrotic, poison, and psychic damage. Whenever I finish a long rest, I must either feed it half my remaining HD (rounding up) or take 1 level of exhaustion.\",\r\n\tdescriptionFull : \"This hideous armor is formed from black chitin, beneath which veins pulse and red sinews glisten. To attune to this item, you must wear it for the entire attunement period, during which tendrils on the inside burrow into you.\\n   While wearing this armor, you have a +1 bonus to Armor Class, and you have resistance to the following damage types: necrotic, poison, and psychic.\\n   \" + toUni(\"Symbiotic Nature\") + \". The armor can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the armor ends, and it detaches from you.\\n   The armor requires fresh blood be fed to it. Immediately after you finish any long rest, you must either feed half of your remaining Hit Dice to the armor (round up) or take 1 level of exhaustion.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Necrotic\", \"Poison\", \"Psychic\"],\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Living\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"+1 Living\"]\r\n\t}\r\n}\r\nMagicItemsList[\"living gloves\"] = {\r\n\tname : \"Living Gloves\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"These gloves made of thin chitin and sinew bond with my skin once I attune to them and removing them requires ending a curse. Once I attune to them, I can choose to become proficient and gain expertise with either sleight of hand, thieves' tools, or an artisan's tools or musical instrument of my choice.\",\r\n\tdescriptionFull : \"These symbiotic gloves\\u2014made of thin chitin and sinew\\u2014pulse with a life of their own. To attune to them, you must wear them for the entire attunement period, during which the gloves bond with your skin.\\n   While attuned to these gloves, you gain one of the following proficiencies (your choice when you attune to the gloves):\\n \\u2022 Sleight of Hand\\n \\u2022 Thieves' tools\\n \\u2022 One kind of artisan's tools of your choice\\n \\u2022 One kind of musical instrument of your choice\\n\\nWhen you make an ability check using the chosen proficiency, you add double your proficiency bonus to the check, instead of your normal proficiency bonus.\\n   \" + toUni(\"Symbiotic Nature\") + \". The gloves can't be removed from you while you're attuned to them, and you can't voluntarily end your attunement to them. If you're targeted by a spell that ends a curse, your attunement to the gloves ends, and they can be removed.\",\r\n\tattunement : true,\r\n\tchoices : [\"Proficiency and expertise with Sleight of Hand\", \"Proficiency and expertise with Thieves' Tools\", \"Proficiency and expertise with chosen artisan's tools\", \"Proficiency and expertise with chosen musical instrument\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"proficiency and expertise with sleight of hand\" : {\r\n\t\tname : \"Living Gloves [Sleight of Hand]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with sleight of hand.\",\r\n\t\tskills : [[\"Sleight of Hand\", \"full\"]]\r\n\t},\r\n\t\"proficiency and expertise with thieves' tools\" : {\r\n\t\tname : \"Living Gloves [Thieves' Tools]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with thieves' tools.\",\r\n\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\t\teval : function () {\r\n\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\tCheckbox('Too Exp', true);\r\n\t\t\t};\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\tCheckbox('Too Exp', false);\r\n\t\t\t};\r\n\t\t}\r\n\t},\r\n\t\"proficiency and expertise with chosen artisan's tools\" : {\r\n\t\tname : \"Living Gloves [Artisan's Tools]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with a set of artisan's tools of my choice (chosen when I attune to them).\",\r\n\t\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\t},\r\n\t\"proficiency and expertise with chosen musical instrument\" : {\r\n\t\tname : \"Living Gloves [Musical Instrument]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with a musical instrument of my choice (chosen when I attune to them).\",\r\n\t\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\t}\r\n}\r\nMagicItemsList[\"orb of shielding\"] = {\r\n\tname : \"Orb of Shielding\",\r\n\tsource : [[\"E:RLW\", 278], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"An orb of shielding is made from crystal or stone aligned to one of the planes. I can use it as my spellcasting focus. While I am holding the orb and take damage of the type associated with the material the orb is made from, I can use my reaction to reduce the damage by 1d4 (to a minimum of 0).\",\r\n\tdescriptionFull : \"An orb of shielding is a polished, spherical chunk of crystal or stone aligned to one of the planes of existence. If you're a spellcaster, you can use this orb as a spellcasting focus.\\n   If you're holding the orb when you take damage of the type associated with the orb's material, you can use your reaction to reduce the damage by 1d4 (to a minimum of 0). The materials and their associated damage types are listed in the Orb of Shielding table.\\n\\n\" + toUni(\"Planar Material\\t\\tDamage Type\") + \"\\nFernian Basalt\\t\\tFire\\nIrian Quartz\\t\\tRadiant\\nKythrian Skarn\\t\\tAcid or Poison\\nLamannian Flint\\t\\tLightning or Thunder\\nMabaran Obsidian      \\tNecrotic\\nRisian Shale\\t\\tCold\\nShavarran Chert\\t\\tForce\\nXorian Marble\\t\\tPsychic\",\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tweight : 3,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchoices : [\"Fernian Basalt (fire)\", \"Irian Quartz (radiant)\", \"Kythrian Skarn (acid or poison)\", \"Lamannian Flint (lightning or thunder)\", \"Mabaran Obsidian (necrotic)\", \"Risian Shale (cold)\", \"Shavaran Chert (force)\", \"Xorian Marble (psychic)\"],\r\n\t\"fernian basalt (fire)\" : {\r\n\t\tname : \"Orb of Shielding [Fernian Basalt]\",\r\n\t\tdescription : \"This stone orb is made from fernian basalt. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take fire damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"irian quartz (radiant)\" : {\r\n\t\tname : \"Orb of Shielding [Irian Quartz]\",\r\n\t\tdescription : \"This crystal orb is made from irian quartz. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take radiant damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"kythrian skarn (acid or poison)\" : {\r\n\t\tname : \"Orb of Shielding [Kythrian Skarn]\",\r\n\t\tdescription : \"This stone orb is made from kythrian skarn. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take acid or poison damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"lamannian flint (lightning or thunder)\" : {\r\n\t\tname : \"Orb of Shielding [Lamannian Flint]\",\r\n\t\tdescription : \"This stone orb is made from lamannian flint. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take lightning or thunder damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"mabaran obsidian (necrotic)\" : {\r\n\t\tname : \"Orb of Shielding [Mabaran Obsidian]\",\r\n\t\tdescription : \"This crystal orb is made from mabaran obsidian. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take necrotic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"risian shale (cold)\" : {\r\n\t\tname : \"Orb of Shielding [Risian Shale]\",\r\n\t\tdescription : \"This stone orb is made from risian shale. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take cold damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"shavaran chert (force)\" : {\r\n\t\tname : \"Orb of Shielding [Shavaran Chert]\",\r\n\t\tdescription : \"This stone orb is made from shavaran chert. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take force damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"xorian marble (psychic)\" : {\r\n\t\tname : \"Orb of Shielding [Xorian Marble]\",\r\n\t\tdescription : \"This stone orb is made from xorian marble. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take psychic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t}\r\n}\r\nMagicItemsList[\"prosthetic limb\"] = { // no attument as per errata\r\n\tname : \"Prosthetic Limb\",\r\n\tsource : [[\"E:RLW\", 278], [\"W\", 268], [\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This artificial limb replaces a lost limb, like a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. As an action, I can detach or reattach it. It can't be removed against my will. It detaches if I die.\",\r\n\tdescriptionFull : \"This item replaces a lost limb\\u2014a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. You can detach or reattach it as an action, and it can't be removed against your will. It detaches if you die.\",\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"scribe's pen\"] = {\r\n\tname : \"Scribe's Pen\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this pen to write on any surface. I decide whether the writing is visible or invisible, but it is always visible to creatures with the Mark of Scribing. As an action, I or others with the Mark of Scribing can touch the writing and make it visible to all. Writing on creatures other than constructs fades after 7 days.\",\r\n\tdescriptionFull : \"You can use this pen to write on any surface. You decide whether the writing is visible or invisible, but the writing is always visible to a person with the Mark of Scribing.\\n   Any creature with the Mark of Scribing can use an action to touch the invisible writing, making it visible to all.\\n   If you use the pen to write on a creature that isn't a construct, the writing fades after 7 days.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Scribing\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"shiftweave\"] = {\r\n\tname : \"Shiftweave\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Up to five different outfits are embedded into these clothes. As a bonus action, I can speak its command word to transform the outfit into one of the other designs contained within. Regardless of its appearance, the outfit can't be anything but clothing or gain properties of other magical clothing.\",\r\n\tdescriptionFull : \"When a suit of shiftweave is created, up to five different outfits can be embedded into the cloth. While wearing the clothing, you can speak its command word as a bonus action to transform your outfit into your choice of one of the other designs contained within it. Regardless of its appearance, the outfit can't be anything but clothing. Although it can duplicate the look of other magical clothing, it doesn't gain their magical properties.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"speaking stone\"] = {\r\n\tname : \"Speaking Stone\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This dragonshard is inscribed with arcane symbols that uniquely identify it. By touching it, I can cast Sending to any other speaking stone whose location or unique sequence of symbols I know. A creature within 5 ft of the receiving speaking stone hears the message as if they were the target of the Sending.\",\r\n\tdescriptionFull : \"The key to long-distance, virtually instantaneous communication across Khorvaire is House Sivis's network of message stations. Each station contains at least one speaking stone, which is carved from a Siberys dragonshard and inscribed with arcane symbols that uniquely identify it. If you're a gnome with the Mark of Scribing, you can touch the stone and use an action to cast the sending spell from it. The target is any other speaking stone whose location or unique sequence of symbols you know. A creature within 5 feet of the stone hears the message as if they were the target.\\n   In a Sivis message station, a gnome is always on duty by the speaking stone, listening for messages that might come in and transcribing them for delivery to their intended recipients.\",\r\n\tprerequisite : \"Can only be used by a gnome with the Dragonmark of Scribing\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known);\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"spellshard\"] = {\r\n\tname : \"Spellshard\",\r\n\tsource : [[\"E:RLW\", 279], [\"WGtE\", 115], [\"UA:MIoE\", 3]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This dragonshard can store up to 320 pages of text or spells. As an action while holding it (and speaking its passphrase if it has one), I can open my mind to its content and concentrate on it to subsequently read from and write to it in the same amount of time as a normal book (same cost as a normal spellbook).\",\r\n\tdescriptionFull : 'This polished Eberron dragonshard fits in the hand and stores information similar to a book. The shard can hold the equivalent of one book that\\'s no more than 320 pages long. A shard can be created blank or already filled with information. When the shard is created, the creator can set a passphrase that must be spoken to access the information stored within.\\n   While holding the shard, you can use an action to open your mind to the shard, seeing its content in your mind. On subsequent rounds, reading the text or scribing new text on blank \"pages\" in the shard requires concentration (as if concentrating on a spell) and takes the same amount of time it takes you to read and write normally. Thinking of a particular phrase or topic draws you to the first section in the shard that addresses it.\\n   A wizard can use a spellshard as a spellbook, with the usual cost in gold and time to \"scribe\" a spell into the shard.',\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"ventilating lungs\"] = {\r\n\tname : \"Ventilating Lungs\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"These lungs replace those in my chest while I'm attuned to them. Their function can't be suppressed by (anti)magic. They allow me to breath normally in any environment and give me advantage on saves against harmful gases and vapors. Once per dawn, I can use them to cast Gust of Wind (save DC 15) by exhaling.\",\r\n\tdescriptionFull : \"These metallic nodules were created in response to the poisonous gases used on the battlefields of the Last War. When you attune to these lungs, they replace the lungs in your chest, which disappear. The lungs allow you to breathe normally, even in an antimagic field, and their breathing function can't be suppressed by magic.\\n   Outside an antimagic field or any other effect that suppresses magic, these lungs allow you to breathe normally in any environment (including a vacuum), and you have advantage on saving throws against harmful gases such as those created by a cloudkill spell, a stinking cloud spell, inhaled poisons, and gaseous breath weapons.\\n   As an action, you can use these lungs to exhale a gust of wind, as if you had cast the gust of wind spell (spell save DC 15) with no components. This property of the lungs can't be used again until the next dawn.\\n   If your attunement to the lungs ends, your original lungs reappear.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Gust of Wind\",\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"gust of wind\"],\r\n\t\tselection : [\"gust of wind\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"gases\", \"vapors\"] }\r\n}\r\nMagicItemsList[\"wand sheath\"] = {\r\n\tname : \"Wand Sheath\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This sheath clamps unto my arm and can't be removed while I'm attuned to it. As an action, I can insert a wand in it, which then doesn't count to the number of items I can attune to. As a bonus action, I can then retract the wand or extend the wand and use it as if holding it, while keeping my hand free.\",\r\n\tdescriptionFull : \"A wand sheath clamps onto your arm and imparts the following benefits:\\n \\u2022 The wand sheath can't be removed from you while you're attuned to it.\\n \\u2022 You can insert a wand into the sheath as an action. The sheath can hold only one wand at a time.\\n \\u2022 You can retract or extend a wand from the sheath as a bonus action. While the wand is extended, you can use it as if you were holding it, but your hand remains free.\\n\\nIf a sheathed wand requires attunement, you must attune to the wand before you can use it. However, the wand sheath and the attached wand count as a single magic item with regard to the number of magic items you can attune to. If you remove the wand from the sheath, your attunement to the wand ends.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\taction : [[\"action\", \" (insert)\"], [\"bonus action\", \" (extend/retract)\"]]\r\n}\r\nMagicItemsList[\"wheel of wind and water\"] = {\r\n\tname : \"Wheel of Wind and Water\",\r\n\tsource : [[\"E:RLW\", 280], [\"WGtE\", 115]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I can telepathically control the elemental bound into the elemental galleon or airship that has this wheel mounted at its helm. If I use a wheel of wind and water that is mounted on a mundane sailing ship, I can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\tdescriptionFull : \"When mounted at the helm of an elemental galleon or airship, this wheel allows a creature that possesses the Mark of Storm to telepathically control the elemental bound inside the vessel.\\n   If a wheel of wind and water is mounted on a mundane sailing ship, a creature with the Mark of Storm who is using the wheel can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\tprerequisite : \"Can only be used by a creature with the Dragonmark of Storm\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\n\r\n// Beasts\r\nCreatureList[\"clawfoot\"] = {\r\n\tname : \"Clawfoot\",\r\n\tsource : [[\"E:RLW\", 289]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 19,\r\n\thd : [3, 8],\r\n\tspeed : \"40 ft\",\r\n\tscores : [12, 16, 14, 4, 12, 6],\r\n\tskills : {\r\n\t\t\"perception\" : 3,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"1 bite \\u0026 1 claws attack as Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Pounce trait; 1 bite \\u0026 1 claws attack as Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the clawfoot can make one Bite and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The clawfoot has advantage on an attack roll against a creature if at least one of the clawfoot's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}, {\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the clawfoot moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 11 Strength saving throw or be knocked prone. If the target is prone, the clawfoot can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"fastieth\"] = {\r\n\tname : \"Fastieth\",\r\n\tsource : [[\"E:RLW\", 289]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 9,\r\n\thd : [2, 8],\r\n\tspeed : \"50 ft\",\r\n\tscores : [12, 18, 10, 4, 11, 4],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Quickness (Recharge 5-6)\",\r\n\t\tdescription : \"The fastieth can take the Dodge action as a bonus action.\"\r\n\t}]\r\n};\r\nERftLW_Valenar_Ancestral_Traits = [\r\n\t\"\\u25C6 [Variant] Ancestral Traits: Each Valenar animal can be customized with an ancestral gift, a supernatural trait granted by its ancestral spirit. Choose a trait or roll on the table below for each Valenar animal.\",\r\n\t\" d8\\tTrait\",\r\n\t\"  1\\tBestow Luck (1/day): As a bonus action, the animal chooses one creature it can see\",\r\n\t\t\"\\twithin 30 ft of it. The next ability check, attack roll, or saving throw the target\",\r\n\t\t\"\\tmakes in the next hour has advantage.\",\r\n\t\"  2\\tBurst of Speed (recharge 6): The animal can take the Dash action as a bonus action.\",\r\n\t\"  3\\tCamouflage: The animal has advantage on Dexterity (Stealth) checks it makes while\",\r\n\t\t\"\\toutdoors.\",\r\n\t\"  4\\tLie Detector: The animal knows when a creature within 15 ft of it tells a lie.\",\r\n\t\"  5\\tFey Ancestry: The animal has advantage on saving throws against being charmed or\",\r\n\t\t\"\\tfrightened, and magic can't put it to sleep.\",\r\n\t\"  6\\tFey Step (1/day): The animal, along with anything it is wearing or carrying,\",\r\n\t\t\"\\tteleports up to 30 ft to an unoccupied space it can see.\",\r\n\t\"  7\\tQuickness (recharge 6): The animal can take the Dodge action as a bonus action.\",\r\n\t\"  8\\tShrouded Step. The animal can't be tracked except by magical means, and it leaves\",\r\n\t\t\"\\tbehind no tracks or other traces of its passage.\"\r\n].join(\"\\n\");\r\nCreatureList[\"valenar hawk\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Hawk\",\r\n\tsource : [[\"E:RLW\", 312]],\r\n\tsize : 5,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 14,\r\n\thp : 10,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [8, 18, 10, 9, 16, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 15,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Talons\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The hawk has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}, {\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The hawk can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the hawk bonds with a different creature or until the bonded creature dies. While bonded, the hawk and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\nCreatureList[\"valenar hound\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Hound\",\r\n\tsource : [[\"E:RLW\", 312]],\r\n\tsize : 3,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 14,\r\n\thp : 19,\r\n\thd : [3, 8],\r\n\tspeed : \"40 ft\",\r\n\tscores : [17, 15, 14, 10, 15, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 13 Strength saving throw or be knocked prone\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Hearing and Smell\",\r\n\t\tdescription : \"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t}, {\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The hound can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the hound bonds with a different creature or until the bonded creature dies. While bonded, the hound and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\nCreatureList[\"valenar steed\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Steed\",\r\n\tsource : [[\"E:RLW\", 313]],\r\n\tsize : 2,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 22,\r\n\thd : [3, 10],\r\n\tspeed : \"60 ft\",\r\n\tscores : [14, 16, 14, 10, 15, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Hooves\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The steed can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the steed bonds with a different creature or until the bonded creature dies. While bonded, the steed and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\n\n// pub_20200317_EGtW.js\r\n// This file adds the content from Explorer's Guide to Wildemount to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.W = {\r\n\tname : \"Explorer's Guide to Wildemount\",\r\n\tabbreviation : \"EGtW\",\r\n\tabbreviationSpellsheet : \"W\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Critical Role\",\r\n\turl : \"https://dnd.wizards.com/products/wildemount\",\r\n\tdate : \"2020/03/17\"\r\n};\r\n\r\n// Races\r\nRaceList[\"pallid elf\"] = { // contains contributions by Smashman\r\n\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(pallid|pale)\\b)).*$/i,\r\n\tname : \"Pallid Elf\",\r\n\tsortname : \"Elf, Pallid\",\r\n\tsource : [[\"W\", 163]],\r\n\tplural : \"Pallid Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [\r\n\t\t[\"Darkvision\", 60],\r\n\t\t[\"Adv. on Int (Investigation) and Wis (Insight) checks\", \"\"]\r\n\t],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tadvantages : [ [\"Insight\", true], [\"Investigation\", true] ],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 110 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,7 metres tall (137 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 50 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Pallid Elf (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nIncisive Sense: I have advantage on Intelligence (Investigation) and Wisdom (Insight) checks.\\nBlessing of the Moonweaver: I know the Light cantrip. At 3rd level, I can cast Sleep once per long rest. At 5th level, I can also cast Invisibility on myself once per long rest. Spells cast using this trait require no material components and use Wisdom as spellcasting ability.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Blessing of the Moonweaver (level 1)\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"light\" : {\r\n\t\t\tcomponents : \"V\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Light without requiring a material component.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"sleep\" : {\r\n\t\t\tname : \"Blessing of the Moonweaver (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Blessing of the Moonweaver (level 3)\",\r\n\t\t\t\tspells : [\"sleep\"],\r\n\t\t\t\tselection : [\"sleep\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sleep\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Sleep once per long rest without requiring a material component.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Blessing of the Moonweaver (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Blessing of the Moonweaver (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Me and my worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Invisibility once per long rest without requiring a material component, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"lotusden halfling\"] = { // contains contributions by Metacomet10\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*lotusden).*$/i,\r\n\tname : \"Lotusden Halfling\",\r\n\tsortname : \"Halfling, Lotusden\",\r\n\tsource : [[\"W\", 164]],\r\n\tplural : \"Lotusden Halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Lotusden Halfling (+2 Dexterity, +1 Wisdom)\" + (typePF ?\r\n\t\t\"\\n- Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\"+\r\n\t\t\"\\n- Child of the Wood: I know the Druidcraft cantrip. At 3rd level, I can cast Entangle once per long rest. At 5th level, I can cast Spike Growth once per long rest without a material component. Wisdom is my spellcasting ability for these.\"+\r\n\t\t\" - Halfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\"+\r\n\t\t\"\\n- Timberwalk: Checks to track me have disadv. I need not expend extra movement to move over difficult terrain of nonmagical plants.\" :\r\n\t\t\"\\nChild of the Wood: I know the Druidcraft cantrip, at 3rd level: Entangle, at 5th level: Spike Growth. I can use both spells once per long rest and without material components. Wisdom is my spellcasting ability. \"+\r\n\t\t\"|Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll. \"+\r\n\t\t\"|Halfling Nimbleness: I can move through the space of any creature that is of a size larger than me. \"+\r\n\t\t\"|Timberwalk: Disadv. on checks to track me. I require no extra movement for difficult terrain of nonmagical plants.\"),\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Child of the Wood (level 1)\",\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"entangle\" : {\r\n\t\t\tname : \"Child of the Wood (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Child of the Wood (level 3)\",\r\n\t\t\t\tspells : [\"entangle\"],\r\n\t\t\t\tselection : [\"entangle\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"spike growth\" : {\r\n\t\t\tname : \"Child of the Wood (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Child of the Wood (level 5)\",\r\n\t\t\t\tspells : [\"spike growth\"],\r\n\t\t\t\tselection : [\"spike growth\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spike growth\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Child of the Wood, I can cast Spike Growth once per long rest without requiring a material component.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n{ // Dragonborn variants (almost completely made by Smashman)\r\n\tvar EGtW_breathWeaponDesc = function (dmgType, shape) {\r\n\t\tvar shapeStr = shape === \"line\" ? \"5-ft by 30-ft line\" : \"15-ft cone\";\r\n\t\tvar capitailzedDmgType = dmgType.charAt(0).toUpperCase() + dmgType.slice(1);\r\n\t\tvar saveStat = [\"cold\", \"poison\"].indexOf(dmgType) >= 0 ? \"Con\" : \"Dex\";\r\n\t\treturn capitailzedDmgType + \" Breath Weapon: As an action once per short rest, I can deal 2d6 \" + dmgType + \" damage to all in a \" + shapeStr + \", \" + saveStat + \" save halves (DC 8 + Con mod + Prof Bonus).\\nThis damage increases to 3d6 at level 6, 4d6 at level 11, and 5d6 at level 16.\";\r\n\t};\r\n\tvar EGtW_draconicAncestryFeature = {\r\n\t\tname : \"Draconic Ancestry\",\r\n\t\tlimfeaname : \"Breath Weapon\",\r\n\t\tminlevel : 1,\r\n\t\tusages : 1,\r\n\t\tadditional : levels.map(function (n) {\r\n\t\t\treturn (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + 'd6';\r\n\t\t}),\r\n\t\trecovery : \"short rest\",\r\n\t\taction : [['action', \"\"]],\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.theWea.dbBreathWeapon && (/dragonborn/i).test(CurrentRace.known)) {\r\n\t\t\t\t\t\tfields.Damage_Die = (CurrentRace.level < 6 ? 2 : CurrentRace.level < 11 ? 3 : CurrentRace.level < 16 ? 4 : 5) + 'd6';\r\n\t\t\t\t\t\tif (CurrentRace.variant) {\r\n\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.breathDmgType;\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(/(dex|con) save/i, ((/cold|poison/i).test(CurrentRace.breathDmgType) ? 'Con' : 'Dex') + ' save');\r\n\t\t\t\t\t\t\tfields.Range = (/black|blue|brass|bronze|copper/i).test(CurrentRace.variant) ? '5-ft \\xD7 30-ft line' : '15-ft cone';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'',\r\n\t\t\t\t1\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\tvar EGtW_breathWeaponObj = {\r\n\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\tname : \"Breath weapon\",\r\n\t\tsource : [[\"W\", 168]],\r\n\t\tability : 3,\r\n\t\ttype : 'Natural',\r\n\t\tdamage : [2, 6, 'fire'],\r\n\t\trange : \"15-ft cone\",\r\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per short rest\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tdbBreathWeapon : true,\r\n\t\tselectNow : true\r\n\t};\r\n\tvar EGtW_acidBreath = EGtW_breathWeaponDesc(\"acid\", \"line\");\r\n\tvar EGtW_fireBreathCone = EGtW_breathWeaponDesc(\"fire\", \"cone\");\r\n\tvar EGtW_fireBreathLine = EGtW_breathWeaponDesc(\"fire\", \"cone\");\r\n\tvar EGtW_coldBreath = EGtW_breathWeaponDesc(\"cold\", \"cone\");\r\n\tvar EGtW_lightningBreath = EGtW_breathWeaponDesc(\"lightning\", \"line\");\r\n\tvar EGtW_poisonBreath = EGtW_breathWeaponDesc(\"poison\", \"cone\");\r\n\tvar EGtW_forcefulPresenceStr = \"Forceful Presence: Once per short rest, I can give myself adv. on an Intimidation or Persuasion check.\";\r\n\tvar EGtW_vengefulAssaultStr = \"Vengeful Assault: As a reaction when I take damage from a creature in range of a weapon that I'm holding, I can use the weapon to make an attack against the creature. I can do this once per short rest.\";\r\n\r\n\t// Draconblood\r\n\tRaceList[\"draconblood dragonborn\"] = {\r\n\t\tregExpSearch : /draconblood/i,\r\n\t\tname : \"Draconblood Dragonborn\",\r\n\t\tsortname : \"Dragonborn, Draconblood\",\r\n\t\tsource : [[\"W\", 168]],\r\n\t\tplural : \"Draconblood Dragonborn\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tweaponOptions : [EGtW_breathWeaponObj],\r\n\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 2, 0, 1],\r\n\t\ttrait : \"Draconblood Dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\t\"Draconic Ancestry: Choose one type of dragon using the \\\"Racial Options\\\" button. I gain a breath weapon as determined by the dragon type chosen.\",\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"draconic ancestry\" : EGtW_draconicAncestryFeature,\r\n\t\t\t\"forceful presence\" : {\r\n\t\t\t\tname : \"Forceful Presence\",\r\n\t\t\t\tsource : [[\"W\", 168]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tvariants : []\r\n\t};\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"black\", {\r\n\t\tregExpSearch : /black/i,\r\n\t\tname : \"Black draconblood dragonborn\",\r\n\t\ttrait : \"Black draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"blue\", {\r\n\t\tregExpSearch : /blue/i,\r\n\t\tname : \"Blue draconblood dragonborn\",\r\n\t\ttrait : \"Blue draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"brass\", {\r\n\t\tregExpSearch : /brass/i,\r\n\t\tname : \"Brass draconblood dragonborn\",\r\n\t\ttrait : \"Brass draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathLine,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"bronze\", {\r\n\t\tregExpSearch : /bronze/i,\r\n\t\tname : \"Bronze draconblood dragonborn\",\r\n\t\ttrait : \"Bronze draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"copper\", {\r\n\t\tregExpSearch : /copper/i,\r\n\t\tname : \"Copper draconblood dragonborn\",\r\n\t\ttrait : \"Copper draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"gold\", {\r\n\t\tregExpSearch : /gold/i,\r\n\t\tname : \"Gold draconblood dragonborn\",\r\n\t\ttrait : \"Gold draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"green\", {\r\n\t\tregExpSearch : /green/i,\r\n\t\tname : \"Green draconblood dragonborn\",\r\n\t\ttrait : \"Green draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_poisonBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"poison\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"red\", {\r\n\t\tregExpSearch : /red/i,\r\n\t\tname : \"Red draconblood dragonborn\",\r\n\t\ttrait : \"Red draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"silver\", {\r\n\t\tregExpSearch : /silver/i,\r\n\t\tname : \"Silver draconblood dragonborn\",\r\n\t\ttrait : \"Silver draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"white\", {\r\n\t\tregExpSearch : /white/i,\r\n\t\tname : \"White draconblood dragonborn\",\r\n\t\ttrait : \"White draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\r\n\t// Ravenite\r\n\tRaceList[\"ravenite dragonborn\"] = {\r\n\t\tregExpSearch : /ravenite/i,\r\n\t\tname : \"Ravenite Dragonborn\",\r\n\t\tsortname : \"Dragonborn, Ravenite\",\r\n\t\tsource : [[\"W\", 169]],\r\n\t\tplural : \"Ravenite Dragonborn\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tweaponOptions : [EGtW_breathWeaponObj],\r\n\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [2, 1, 0, 0, 0, 0],\r\n\t\ttrait : \"Ravenite Dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\t\"Draconic Ancestry: Choose one type of dragon using the \\\"Racial Options\\\" button. I gain a breath weapon as determined by the dragon type chosen.\",\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"draconic ancestry\" : EGtW_draconicAncestryFeature,\r\n\t\t\t\"vengeful assault\" : {\r\n\t\t\t\tname : \"Vengeful Assault\",\r\n\t\t\t\tsource : [[\"W\", 168]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taction : [['reaction', \"\"]],\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tvariants : []\r\n\t};\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"black\", {\r\n\t\tregExpSearch : /black/i,\r\n\t\tname : \"Black ravenite dragonborn\",\r\n\t\ttrait : \"Black ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"blue\", {\r\n\t\tregExpSearch : /blue/i,\r\n\t\tname : \"Blue ravenite dragonborn\",\r\n\t\ttrait : \"Blue ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"brass\", {\r\n\t\tregExpSearch : /brass/i,\r\n\t\tname : \"Brass ravenite dragonborn\",\r\n\t\ttrait : \"Brass ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathLine,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"bronze\", {\r\n\t\tregExpSearch : /bronze/i,\r\n\t\tname : \"Bronze ravenite dragonborn\",\r\n\t\ttrait : \"Bronze ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"copper\", {\r\n\t\tregExpSearch : /copper/i,\r\n\t\tname : \"Copper ravenite dragonborn\",\r\n\t\ttrait : \"Copper ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"gold\", {\r\n\t\tregExpSearch : /gold/i,\r\n\t\tname : \"Gold ravenite dragonborn\",\r\n\t\ttrait : \"Gold ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"green\", {\r\n\t\tregExpSearch : /green/i,\r\n\t\tname : \"Green ravenite dragonborn\",\r\n\t\ttrait : \"Green ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_poisonBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"poison\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"red\", {\r\n\t\tregExpSearch : /red/i,\r\n\t\tname : \"Red ravenite dragonborn\",\r\n\t\ttrait : \"Red ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"silver\", {\r\n\t\tregExpSearch : /silver/i,\r\n\t\tname : \"Silver ravenite dragonborn\",\r\n\t\ttrait : \"Silver ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"white\", {\r\n\t\tregExpSearch : /white/i,\r\n\t\tname : \"White ravenite dragonborn\",\r\n\t\ttrait : \"White ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n}\r\n\r\n// Subclasses\r\nAddSubClass(\"fighter\", \"echo knight\", { // contains contributions by Smashman, @Nod_Hero#2046 (Discord), BraabHimself, and TysonJouglet\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green))(?=.*(knight|fighter|warrior|militant|warlord|phalanx|gladiator|trooper))(?=.*(echo|mirror|mirage|reflection)).*$/i,\r\n\tsubname : \"Echo Knight\",\r\n\tsource : [[\"W\", 183]],\r\n\tfullname : \"Echo Knight\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Manifest Echo\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can magically manifest a translucent image of myself within 15 ft\",\r\n\t\t\t\t\"My echo lasts until I dismiss it as a bonus action, I manifest another, or I'm incapacitated\",\r\n\t\t\t\t\"It is also destroyed if it is more than 30 ft away from me at the end of my turn\",\r\n\t\t\t\t\"It has 1 HP, immunity to all conditions, uses my save bonuses, and AC 14 + Prof Bonus\",\r\n\t\t\t\t\"On my turn as a free action, I can command it to move up to 30 ft in any direction\",\r\n\t\t\t\t\"As a bonus action, I can teleport to swap places with it, at a cost of 15 ft movement\",\r\n\t\t\t\t\"When I use the Attack action on my turn, I can have any attack originate from my echo\",\r\n\t\t\t\t\"I can also make opportunity attacks from the echo's location as if I were in its space\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/dismiss)\"], [\"bonus action\", \"Swap Location with Echo\"]],\r\n\t\t\tcreaturesAdd : [[\"Echo\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Echo\",\r\n\t\t\t\tsource : [[\"W\", 183]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Echo\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : \"14+oProf\",\r\n\t\t\t\thp : 1,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"fly 30 ft (hover)\",\r\n\t\t\t\tscores : [\"\", \"\", \"\", \"\", \"\", \"\"],\r\n\t\t\t\tsavesLinked : true,\r\n\t\t\t\tcondition_immunities : \"all conditions\",\r\n\t\t\t\tpassivePerception : 0,\r\n\t\t\t\tlanguages : \"\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 0,\r\n\t\t\t\tattacksAction : 0,\r\n\t\t\t\tattacks : [],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Echo\",\r\n\t\t\t\t\tdescription : \"The echo is a magical, translucent, gray image of its creator that doesn't act and has no turn in combat. It lasts until it is destroyed, dismissed, another is manifested, or its creator is incapacitated. The echo is also destroyed if it is ever more than 30 ft away from its creator at the end of its creator's turn.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Swap Place\",\r\n\t\t\t\t\tdescription : \"The echo's creator can, as a bonus action, teleport, magically swapping places with the echo at a cost of 15 feet of the creator's movement, regardless of the distance between the two.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Attack Origin\",\r\n\t\t\t\t\tdescription : \"When the echo's creator takes the Attack action on their turn, any attack they make with that action can originate from the echo's space. This choice is made for each attack separately.\\n   In addition, when a creature that the echo's creator can see within 5 ft of the echo moves at least 5 ft away from it, its creator can use their reaction to make an opportunity attack against that creature as if its creator was in the echo's space.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Echo\",\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// Same size as character\r\n\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", tDoc.getField(\"Size Category\").currentValueIndices);\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Age\", What(\"Age\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Sex\", What(\"Sex\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Height\", What(\"Height\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Alignment\", What(\"Alignment\"));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Unleash Incarnation\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use the Attack action, I can make one extra melee attack from my echo's position\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Echo Avatar\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can temporarily transfer my consciousness to my echo for up to 10 min\",\r\n\t\t\t\t\"During this time, I see and hear through its eyes and ears, but not my own eyes and ears\",\r\n\t\t\t\t\"While I use my echo this way, it can be up to 1000 ft away from me without issue\",\r\n\t\t\t\t\"I can end this at any time, requiring no action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shadow Martyr\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see is attacked, I can make my echo the target\",\r\n\t\t\t\t\"Before the attack roll, the echo teleports to an empty space within 5 ft of the creature\",\r\n\t\t\t\t\"The attack roll of the triggering attack is then made against the echo instead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Reclaim Potential\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When my echo is destroyed by taking damage, I gain 2d6 + my Con mod in temp HP\",\r\n\t\t\t\t\"I can only gain these temporary hit points if I don't already have temporary hit points\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Legion of One\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can now manifest two echoes instead of one with the same bonus action\",\r\n\t\t\t\t\"These two can coexist, but if I manifest a third, the previous two are destroyed\",\r\n\t\t\t\t\"Anything I can do from one echo's position can be done from the other's instead\",\r\n\t\t\t\t\"I regain one use of Unleash Incarnation if I have no more remaining when I roll initiative\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"chronurgy magic\", { // contains contributions by bassbogan on GitHub and @Nod_Hero#2046 on Discord\r\n\tregExpSearch : /chronurgy|chronomancer|chronurgist/i,\r\n\tsubname : \"Chronurgy Magic\",\r\n\tsubnameShort: \"Chronurgy\",\r\n\tfullname : \"Chronurgist\",\r\n\tsource : [[\"W\", 184]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Chronal Shift\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after I or a creature I see rolls a check, save, or attack, I can force a reroll\",\r\n\t\t\t\t\"I can do this after I see if the roll fails or succeeds; The target must use the second roll.\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\teval : function() {\r\n\t\t\t\t// Always have access to dunamancy spells enabled\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") === -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\t// Remove access to dunamancy spells when removing subclass\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") !== -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true], \"remove\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Temporal Awareness\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Momentary Stasis\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can have a Large or smaller creature I can see in 60 ft make a Con save\",\r\n\t\t\t\t\"If failed, it is encased in a field of magical energy, incapacitated and has a speed of 0\",\r\n\t\t\t\t\"This lasts until the end of my next turn or until the creature takes any damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Arcane Abeyance\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast a 4th-level or lower spell, I can condense it into a mote\",\r\n\t\t\t\t\"The spell is frozen in time at the moment of casting and held within a grey bead\",\r\n\t\t\t\t\"The bead is a Tiny object with 1 HP, AC 15, and immune to poison and psychic damage\",\r\n\t\t\t\t\"After 1 hour or if it is destroyed, it vanishes with a flash of light and the spell is lost\",\r\n\t\t\t\t\"As an action, a creature holding the bead can release the spell within as if they cast it\",\r\n\t\t\t\t\"The spell still uses my spell attack bonus and save DC; The bead vanishes once used\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Convergent Future\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after I or a creature I see rolls a check, save, or attack, I can choose the roll\",\r\n\t\t\t\t\"I decide the number rolled, if it is the minimum needed to succeed or 1 less than that\",\r\n\t\t\t\t\"When I use this feature, I gain a level of exhaustion which only a long rest can remove\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"graviturgy magic\", { // contains contributions by bassbogan on GitHub and @Nod_Hero#2046 on Discord\r\n\tregExpSearch : /^((?=.*graviturgy)(?=.*(wizard|magic|mage))|gravimancer|graviturgist).*$/i,\r\n\tsubname : \"Graviturgy Magic\",\r\n\tsubnameShort: \"Graviturgy\",\r\n\tfullname : \"Graviturgist\",\r\n\tsource : [[\"W\", 185]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Adjust Density\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically double or halve the weight of a creature I can see in 30 ft\",\r\n\t\t\t\t\"If doubled, it has -10 ft speed and advantage on Strength checks and Strength saves\",\r\n\t\t\t\t\"If halved, it has +10 ft speed, can jump twice as far, and disadv. on Str checks and saves\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration ends (like concentrating on a spell)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? \"Large\" : \"Huge\") + \" or smaller creatures\";\r\n\t\t\t}),\r\n\t\t\teval : function() {\r\n\t\t\t\t// Always have access to dunamancy spells enabled\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") === -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\t// Remove access to dunamancy spells when removing subclass\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") !== -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true], \"remove\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Gravity Well\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I cast a spell on a creature, I can move it 5 ft to an empty space of my choice\",\r\n\t\t\t\t\"This only works if the target is willing, fails its save vs. the spell, or the spell attack hits it\"\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Violent Attraction\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I see in 60 ft hits a weapon attack, I can improve it\",\r\n\t\t\t\t\"I increase the weapon's velocity, causing it to deal an extra 1d10 damage\",\r\n\t\t\t\t\"As a reaction if a creature within 60 ft is damaged by a fall, I can increase it by 2d10\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Event Horizon\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically emit powerful gravitational magic that pulls on hostiles\",\r\n\t\t\t\t\"Whenever a creature hostile to me starts it turn within 30 ft, it must make Str save\",\r\n\t\t\t\t\"If failed, it takes 2d10 force damage and its speed is 0 until the start of its next turn\",\r\n\t\t\t\t\"If successful, it takes half the damage and every foot it moves this turn costs 2 extra feet\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration ends (like concentrating on a spell)\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add option to allow Dunamancy spells for the other spellcastingclasses\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the bard spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the bard class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the cleric spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the cleric class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the druid spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the druid class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the paladin spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the paladin class with all dunamancy spells (spell level in brackets): Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), and Temporal Shunt (5).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\nvar EGtW_Ranger_Dunamancy_Spells = {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the ranger spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the ranger class with all dunamancy spells (spell level in brackets): Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), and Temporal Shunt (5).\"\r\n\t\t]\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Access to Dunamancy Spells\", EGtW_Ranger_Dunamancy_Spells, \"Optional 2nd-level ranger features\");\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList[\"rangerua\"]) return;\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Access to Dunamancy Spells\", EGtW_Ranger_Dunamancy_Spells, \"Optional 2nd-level ranger features\");\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the sorcerer spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the sorcerer class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the warlock spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the warlock class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the wizard spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the wizard class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList.artificer) return;\r\n\tAddFeatureChoice(ClassList.artificer.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\t\tname : \"Dunamancy Spells\",\r\n\t\textraname : \"Optional Artificer 1\",\r\n\t\tsource : [[\"W\", 186]],\r\n\t\tdescription : desc([\r\n\t\t\t\"All dunamancy spells are added to the artificer spell list, each still pending DM's approval\"\r\n\t\t]),\r\n\t\tcalcChanges : {\r\n\t\t\tspellList : [\r\n\t\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t\tif (spName !== \"artificer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t\t},\r\n\t\t\t\t\"This optional class feature expands the spell list of the artificer class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5).\"\r\n\t\t\t]\r\n\t\t}\r\n\t}, \"Optional 1st-level artificer features\");\r\n});\r\n\r\n// Backgrounds (includes contributions by remcovandalen)\r\nBackgroundList[\"grinner\"] = {\r\n\tregExpSearch : /grinner/i,\r\n\tname : \"Grinner\",\r\n\tsource : [[\"W\", 200]],\r\n\tskills : [\"Deception\", \"Performance\"],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], [\"Musical instrument\", 1]],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Gold-plated ring with smiling face\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Ballad of the Grinning Fool\",\r\n\ttrait : [\r\n\t\t\"I love the spotlight. Everyone, look at me!\",\r\n\t\t\"Give me a drink and I'm your friend.\",\r\n\t\t\"Talk to me about yourself. I'm a hell of a listener.\",\r\n\t\t\"I hate to start fights, but I love to finish them.\",\r\n\t\t\"I can't sit still.\",\r\n\t\t\"I'm always humming an old tune from my past.\",\r\n\t\t\"When I don't have a reason to smile, I'm miserable.\",\r\n\t\t\"I'm lucky like you wouldn't believe.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Revolution\",\r\n\t\t\t\"Revolution: Tyrants must fall, no matter the cost. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Compassion\",\r\n\t\t\t\"Compassion: The only way to make a better world is to perform small kindnesses. (Good)\"\r\n\t\t],\r\n\t\t[\"Justice\",\r\n\t\t\t\"Justice: A nation built upon just foundations will uphold freedom for all. (Law)\"\r\n\t\t],\r\n\t\t[\"Expression\",\r\n\t\t\t\"Expression: Music, joy, and laughter are the keys to freedom. (Good)\"\r\n\t\t],\r\n\t\t[\"Self-Determination\",\r\n\t\t\t\"Self-Determination: People should be free to do as they please. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Vigilance\",\r\n\t\t\t\"Vigilance: A free people must be carefully taught, lest they be misled. (Neutral)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I lost someone important to an agent of the empire. That regime will fall.\",\r\n\t\t\"The first people to be hurt by this war will be the common folk. I need to protect them.\",\r\n\t\t\"Music helped me through a dark time in my life. Now, I'll use music to change the world.\",\r\n\t\t\"I will be known as the greatest spy who ever lived.\",\r\n\t\t\"All life is precious to me. I know I can change the world without taking a humanoid life.\",\r\n\t\t\"The elite in their ivory towers don't understand how we suffer. I intend to show them.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I've never lied once in my life. What? No, I'm not crossing my fingers!\",\r\n\t\t\"I do everything big! Subtlety? I don't know the meaning of subtlety! Oh, that's a problem?\",\r\n\t\t\"Being a spy in wartime is painful. I've seen so much suffering, I think I'm losing my mind.\",\r\n\t\t\"I can't focus on my mission. I just want to carouse and sing and play!\",\r\n\t\t\"Yeah, that's my name. Yeah, I'm a Grinner spy. Who cares about staying undercover?\",\r\n\t\t\"I can't afford to trust anyone. Not. Anyone.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Your Favorite Code-Song\",\r\n\t\t\"Zan's Coming Back\",\r\n\t\t\"Blow Fire Down the Coast\",\r\n\t\t\"Hush! Onward Come the Dragons\",\r\n\t\t\"Let the Sword Grow Rust\",\r\n\t\t\"Drink Deep, Li'l Hummingbird\",\r\n\t\t\"Dirge for the Emerald Fire\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"ballad of the grinning fool\"] = {\r\n\tdescription : \"A member of the Golden Grin will find me and give shelter to me and my companions if I play the Ballad of the Grinning Fool in a major tavern or inn in a large city. This shelter might be discontinued if it becomes too dangerous to hide me. I must use the ballad with caution, for those who know the ballad can be traitors, counterspies, or agents of tyranny.\",\r\n\tsource : [[\"W\", 200]]\r\n};\r\nBackgroundList[\"volstrucker agent\"] = {\r\n\tregExpSearch : /^(?=.*volstrucker)(?=.*agent).*$/i,\r\n\tname : \"Volstrucker Agent\",\r\n\tsource : [[\"W\", 202]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\ttoolProfs : [\"Poisoner's kit\"],\r\n\tlanguageProfs : [1],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Poisoner's kit\", \"\", 2]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Black cloak with a hood\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Shadow Network\",\r\n\ttrait : [\r\n\t\t\"I prefer to keep my thoughts to myself.\",\r\n\t\t\"I indulge vice in excess to quiet my conscience.\",\r\n\t\t\"I've left emotion behind me. I'm now perfectly placid.\",\r\n\t\t\"Some event from the past keeps worming its way into my mind, making me restless.\",\r\n\t\t\"I always keep my word\\u2014except when I'm commanded to break it.\",\r\n\t\t\"I laugh off insults and never take them personally.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Order\",\r\n\t\t\t\"Order: The will of the crown is absolute. (Law)\"\r\n\t\t],\r\n\t\t[\"True Loyalty\",\r\n\t\t\t\"True Loyalty: The Cerberus Assembly is greater than any power, even the crown. (Any)\"\r\n\t\t],\r\n\t\t[\"Death\",\r\n\t\t\t\"Death: The penalty for disloyalty is death. (Evil)\"\r\n\t\t],\r\n\t\t[\"Determination\",\r\n\t\t\t\"Determination: I cannot fail. Not ever. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Fear\",\r\n\t\t\t\"Fear: People should not respect power. They should fear it. (Evil)\"\r\n\t\t],\r\n\t\t[\"Escape\",\r\n\t\t\t\"Escape: The Volstrucker are pure evil! I can't atone for what I've done for them, but I can escape with my life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The job is all that matters. I will see it through.\",\r\n\t\t\"My orders are important, but my comrades are worth more than anything. I would die for them.\",\r\n\t\t\"Everything I've done, I've done to protect someone close to me.\",\r\n\t\t\"If the empire falls, all of civilization falls with it. I will hold back chaos and barbarism at any cost.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I drink to dull the pain in the back of my head.\",\r\n\t\t\"I go a bit mad when I see blood.\",\r\n\t\t\"I can hear the voices of everyone I've killed. I see their faces. I can't be free of these ghosts.\",\r\n\t\t\"Fear is a powerful motivator. I will do whatever it takes to prevent those who know what I am from seeing me fail, and from those I care about from knowing what I am.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Your Tragedy\",\r\n\t\t\"Familicide\",\r\n\t\t\"Amnesia\",\r\n\t\t\"Capture\",\r\n\t\t\"Starvation\",\r\n\t\t\"Disfigurement\",\r\n\t\t\"Vicissitude\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"shadow network\"] = {\r\n\tdescription : \"I can use the Volstrucker shadow network to communicate with other members over long distances. I can write a letter in special arcane ink (10 gp per page), address it to another member of the Volstrucker, and cast it into a fire. It will burn and materialize whole again on the person of the addressee. This special ink is the same as used for a wizard's spellbook.\",\r\n\tsource : [[\"W\", 202]]\r\n};\r\nAddBackgroundVariant(\"acolyte\", \"luxonborn\", {\r\n\tregExpSearch : /luxonborn/i,\r\n\tname : \"Luxonborn\",\r\n\tsource : [[\"W\", 203]]\r\n});\r\nAddBackgroundVariant(\"criminal\", \"myriad operative\", {\r\n\tregExpSearch : /^(?=.*myriad)(?=.*operative).*$/i,\r\n\tname : \"Myriad Operative\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : \"\"\r\n});\r\nAddBackgroundVariant(\"sailor\", \"revelry pirate\", {\r\n\tregExpSearch : /^(?=.*revelry)(?=.*pirate).*$/i,\r\n\tname : \"Revelry Pirate\",\r\n\tsource : [[\"W\", 203]]\r\n});\r\nAddBackgroundVariant(\"sage\", \"cobalt scholar\", {\r\n\tregExpSearch : /^(?=.*cobalt)(?=.*scholar).*$/i,\r\n\tname : \"Cobalt Scholar\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : [\r\n\t\t\"Select Specific Role\",\r\n\t\t\"Rank-and-file\",\r\n\t\t\"Expositors\",\r\n\t\t\"Archivists\"\r\n\t]\r\n});\r\nAddBackgroundVariant(\"criminal\", \"augen trust\", {\r\n\tregExpSearch : /^(?=.*augen)(?=.*trust).*$/i,\r\n\tname : \"Augen Trust\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : \"\"\r\n});\r\n\r\n// Spells (contains contributions by Biggoron144)\r\nSpellsList[\"sapping sting\"] = {\r\n\tname : \"Sapping Sting\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 0,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 creature that I can see save or 1d4 Necrotic dmg and fall prone; +1d4 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 creature that I can see save or `CD`d4 Necrotic dmg and fall prone\",\r\n\tdescriptionFull : \"You sap the vitality of one creature you can see in range. The target must succeed on a Constitution saving throw or take 1d4 necrotic damage and fall prone.\\n   This spell's damage increases by 1d4 when you reach 5th level (2d4), 11th level (3d4), and 17th level (4d4).\"\r\n};\r\nWeaponsList[\"sapping sting\"] = {\r\n\tregExpSearch : /^(?=.*sapping)(?=.*sting).*$/i,\r\n\tname : \"Sapping Sting\",\r\n\tsource : [[\"W\", 189]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 4, \"necrotic\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also fall prone\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nSpellsList[\"gift of alacrity\"] = {\r\n\tname : \"Gift of Alacrity\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"1 willing creature can add 1d8 to its initiative rolls for the duration\",\r\n\tdescriptionFull : \"You touch a willing creature. For the duration, the target can add 1d8 to its initiative rolls.\"\r\n};\r\nSpellsList[\"magnify gravity\"] = {\r\n\tname : \"Magnify Gravity\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Con\",\r\n\tdescription : \"10-ft rad all crea 2d8+1d8/SL Force dmg, half spd; Save halves \\u0026 no spd reduce; Str check to move obj\",\r\n\tdescriptionShorter : \"10-ft rad all 2d8+1d8/SL Force dmg, half spd; Save half, no spd reduce; Str check to move obj\",\r\n\tdescriptionFull : \"The gravity in a 10-foot-radius sphere centered on a point you can see within range increases for a moment. Each creature in the sphere on the turn when you cast the spell must make a Constitution saving throw. On a failed save, a creature takes 2d8 force damage, and its speed is halved until the end of its next turn. On a successful save, a creature takes half as much damage and suffers no reduction to its speed.\\n   Until the start of your next turn, any object that isn't being worn or carried in the sphere requires a successful Strength check against your spell save DC to pick up or move.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"fortune's favor\"] = {\r\n\tname : \"Fortune's Favor\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A white pearl worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1+1/SL crea once roll extra d20 and select which to use for atk, check, save, or atk vs. it (100gp cons.)\",\r\n\tdescriptionFull : \"You impart latent luck to yourself or one willing creature you can see within range. When the chosen creature makes an attack roll, an ability check, or a saving throw before the spell ends, it can dismiss this spell on itself to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against the chosen creature, it can dismiss this spell on itself to roll a d20 and choose which of the d20s to use, the one it rolled or the one the attacker rolled.\\n   If the original d20 roll has advantage or disadvantage, the creature rolls the additional d20 after advantage or disadvantage has been applied to the original roll.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"immovable object\"] = {\r\n\tname : \"Immovable Object\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Gold dust worth at least 25 gp, which the spell consumes\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1 obj <10 lb fixed in place; holds 4k lb; Str check move, except chosen/password; See B (25gp cons.)\",\r\n\tdescriptionMetric : \"1 obj <5 kg fixed in place; holds 2k kg; Str check move, except chosen/password; See B (25gp cons.)\",\r\n\tdescriptionFull : \"You touch an object that weighs no more than 10 pounds and cause it to become magically fixed in place. You and the creatures you designate when you cast this spell can move the object normally. You can also set a password that, when spoken within 5 feet of the object, suppresses this spell for 1 minute.\\n   If the object is fixed in the air, it can hold up to 4,000 pounds of weight. More weight causes the object to fall. Otherwise, a creature can use an action to make a Strength check against your spell save DC. On a success, the creature can move the object up to 10 feet.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 4th or 5th level, the DC to move the object increases by 5, it can carry up to 8,000 pounds of weight, and the duration increases to 24 hours. If you cast this spell using a spell slot of 6th level or higher, the DC to move the object increases by 10, it can carry up to 20,000 pounds of weight, and the effect is permanent until dispelled.\"\r\n};\r\nSpellsList[\"wristpocket\"] = {\r\n\tname : \"Wristpocket\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 190]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Store 1 held obj <5 lb in extradim. space; 1 a to summon obj in free hand or return; reappears at end\",\r\n\tdescriptionMetric : \"Store 1 held obj <2,5 kg in extradim. space; 1 a summon obj in free hand or return; reappears at end\",\r\n\tdescriptionFull : \"You flick your wrist, causing one object in your hand to vanish. The object, which only you can be holding and can weigh no more than 5 pounds, is transported to an extradimensional space, where it remains for the duration.\\n   Until the spell ends, you can use your action to summon the object to your free hand, and you can use your action to return the object to the extradimensional space. An object still in the pocket plane when the spell ends appears in your space, at your feet.\"\r\n};\r\nSpellsList[\"pulse wave\"] = {\r\n\tname : \"Pulse Wave\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"6d6+1d6/SL Force dmg, pulled/pushed 15+5/SL ft from me (also free obj); save halves, no move\",\r\n\tdescriptionMetric : \"6d6+1d6/SL Force dmg, pull/push 4,5+1,5/SL m from me (also free obj); save halves, no move\",\r\n\tdescriptionShorter : \"6d6+1d6/SL Force dmg, pull/push 15+5/SL ft from me (also free obj); save half, no move\",\r\n\tdescriptionFull : \"You create intense pressure, unleash it in a 30-foot cone, and decide whether the pressure pulls or pushes creatures and objects. Each creature in that cone must make a Constitution saving throw. A creature takes 6d6 force damage on a failed save, or half as much damage on a successful one. And every creature that fails the save is either pulled 15 feet toward you or pushed 15 feet away from you, depending on the choice you made for the spell.\\n   In addition, unsecured objects that are completely within the cone are likewise pulled or pushed 15 feet.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d6 and the distance pulled or pushed increases by 5 feet for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"gravity sinkhole\"] = {\r\n\tname : \"Gravity Sinkhole\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A black marble\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all crea 5d10+1d10/SL Force dmg, pulled to center of radius; save halves and not pulled\",\r\n\tdescriptionFull : \"A 20-foot-radius sphere of crushing force forms at a point you can see within range and tugs at the creatures there. Each creature in the sphere must make a Constitution saving throw. On a failed save, the creature takes 5d10 force damage and is pulled in a straight line toward the center of the sphere, ending in an unoccupied space as close to the center as possible (even if that space is in the air). On a successful save, the creature takes half as much damage and isn't pulled.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d10 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"temporal shunt\"] = {\r\n\tname : \"Temporal Shunt\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, taken when a creature you can see makes an attack roll or starts to cast a spell\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Cast if see atk/cast, 1+1/SL crea, each max 30 ft apart, save or vanish until next turn, atk/cast wasted\",\r\n\tdescriptionFull : \"You target the triggering creature, which must succeed on a Wisdom saving throw or vanish, being thrown to another point in time and causing the attack to miss or the spell to be wasted. At the start of its next turn, the target reappears where it was or in the closest unoccupied space. The target doesn't remember you casting the spell or being affected by it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, you can target one additional creature for each slot level above 5th. All targets must be within 30 feet of each other.\"\r\n};\r\nSpellsList[\"gravity fissure\"] = {\r\n\tname : \"Gravity Fissure\",\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 6,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:100\" + (typePF ? \"-\" : \"\") + \"ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A fistful of iron filings\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"100-ft long 5-ft wide all 8d8+1d8/SL Force dmg, save half; all in 10 ft of line save or dmg \\u0026 pull to it\",\r\n\tdescriptionShorter : \"100-ft long 5-ft wide all 8d8+1d8/SL Force dmg, save half; all in 10 ft of it save or dmg \\u0026 pulled\",\r\n\tdescriptionFull : \"You manifest a ravine of gravitational energy in a line originating from you that is 100 feet long and 5 feet wide. Each creature in that line must make a Constitution saving throw, taking 8d8 force damage on a failed save, or half as much damage on a successful one.\\n   Each creature within 10 feet of the line but not in it must succeed on a Constitution saving throw or take 8d8 force damage and be pulled toward the line until the creature is in its area.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 7th level or higher, the damage increases by 1d8 for each slot level above 6th.\"\r\n};\r\nSpellsList[\"tether essence\"] = {\r\n\tname : \"Tether Essence\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 7,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A spool of platinum cord worth at least 250 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Con\",\r\n\tdescription : \"2 crea save (dis. if in 30 ft) or if both fail take same dmg and same healing; ends if 0 hp (250gp cons.)\",\r\n\tdescriptionFull : \"Two creatures you can see within range must make a Constitution saving throw, with disadvantage if they are within 30 feet of each other. Either creature can willingly fail the save. If either save succeeds, the spell has no effect. If both saves fail, the creatures are magically linked for the duration, regardless of the distance between them. When damage is dealt to one of them, the same damage is dealt to the other one. If hit points are restored to one of them, the same number of hit points are restored to the other one. If either of the tethered creatures is reduced to 0 hit points, the spell ends on both. If the spell ends on one creature, it ends on both.\"\r\n};\r\nSpellsList[\"dark star\"] = {\r\n\tname : \"Dark Star\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A shard of onyx and a drop of the caster's blood, both of which the spell consumes\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Up to 40-ft rad as Darkness spell, as Silence spell, dif. ter.; enter/start turn 8d10 Force dmg, save half\",\r\n\tdescriptionShorter : \"Up to 40-ft rad as Darkness \\u0026 Silence, dif. ter.; enter/start turn 8d10 Force dmg, save half\",\r\n\tdescriptionFull : \"This spell creates a sphere centered on a point you choose within range. The sphere can have a radius of up to 40 feet. The area within this sphere is filled with magical darkness and crushing gravitational force.\\n   For the duration, the spell's area is difficult terrain. A creature with darkvision can't see through the magical darkness, and nonmagical light can't illuminate it. No sound can be created within or pass through the area. Any creature or object entirely inside the sphere is immune to thunder damage, and creatures are deafened while entirely inside it. Casting a spell that includes a verbal component is impossible there.\\n   Any creature that enters the spell's area for the first time on a turn or starts its turn there must make a Constitution saving throw. The creature takes 8d10 force damage on a failed save, or half as much damage on a successful one. A creature reduced to 0 hit points by this damage is disintegrated. A disintegrated creature and everything it is wearing and carrying, except magic items, are reduced to a pile of fine gray dust.\"\r\n};\r\nSpellsList[\"reality break\"] = {\r\n\tname : \"Reality Break\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A crystal prism\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or can't take reactions, random effect each turn, see book; extra save at end of every turn\",\r\n\tdescriptionFull : \"You shatter the barriers between realities and timelines, thrusting a creature into turmoil and madness. The target must succeed on a Wisdom saving throw, or it can't take reactions until the spell ends. The affected target must also roll a d10 at the start of each of its turns; the number rolled determines what happens to the target, as shown on the Reality Break Effects table.\"+\r\n\t\"\\n   At the end of each of its turns, the affected target can repeat the Wisdom saving throw, ending the spell on itself on a success.\"+\r\n\t\"\\n\\n d10 \\tEffect\"+\r\n\t\"\\n 1-2 \\tVision of the Far Realm: The target takes 6d12 psychic damage, and it is stunned until the end of the turn.\"+\r\n\t\"\\n 3-5 \\tRending Rift: The target must make a Dexterity saving throw, taking 8d12 force damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n 6-8 \\tWormhole: The target is teleported, along with everything it is wearing and carrying, up to 30 feet to an unoccupied space of your choice that you can see. The target also takes 10d12 force damage and is knocked prone.\"+\r\n\t\"\\n 9-10\\tChill of the Dark Void: The target takes 10d12 cold damage, and it is blinded until the end of the turn.\"\r\n};\r\nSpellsList[\"ravenous void\"] = {\r\n\tname : \"Ravenous Void\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 9,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"1000 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A small, nine-pointed star made of iron\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad all enter/start 5d10 Force dmg, restrained; all enter/start in 100 ft save or pulled in; see B\",\r\n\tdescriptionShorter : \"20-ft rad all enter/start 5d10 Force dmg, restrained; all start in 100 ft save or pull in; see B\",\r\n\tdescriptionFull : \"You create a 20-foot-radius sphere of destructive gravitational force centered on a point you can see within range. For the spell's duration, the sphere and any space within 100 feet of it are difficult terrain, and nonmagical objects fully inside the sphere are destroyed if they aren't being worn or carried.\\n   When the sphere appears and at the start of each of your turns until the spell ends, unsecured objects within 100 feet of the sphere are pulled toward the sphere's center, ending in an unoccupied space as close to the center as possible.\\n   A creature that starts its turn within 100 feet of the sphere must succeed on a Strength saving throw or be pulled straight toward the sphere's center, ending in an unoccupied space as close to the center as possible. A creature that enters the sphere for the first time on a turn or starts its turn there takes 5d10 force damage and is restrained until it is no longer in the sphere. If the sphere is in the air, the restrained creature hovers inside the sphere. A creature can use its action to make a Strength check against your spell save DC, ending this restrained condition on itself or another creature in the sphere that it can reach. A creature reduced to 0 hit points by this spell is annihilated, along with any nonmagical items it is wearing or carrying.\"\r\n};\r\nSpellsList[\"time ravage\"] = {\r\n\tname : \"Time Ravage\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 9,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"An hourglass filled with diamond dust worth at least 5,000 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea 10d12 Necrotic dmg \\u0026 aged: dis. atk/chk/save, die in 30 days; save half, not aged (5k gp cons.)\",\r\n\tdescriptionShorter : \"1 crea 10d12 Necro. dmg, aged: dis. atk/chk/save, die in 30 days; save hlf, no aged (5k gp cons)\",\r\n\tdescriptionFull : \"You target a creature you can see within range, putting its physical form through the devastation of rapid aging. The target must make a Constitution saving throw, taking 10d12 necrotic damage on a failed save, or half as much damage on a successful one. If the save fails, the target also ages to the point where it has only 30 days left before it dies of old age. In this aged state, the target has disadvantage on attack rolls, ability checks, and saving throws, and its walking speed is halved. Only the wish spell or the greater restoration cast with a 9th-level spell slot can end these effects and restore the target to its previous age.\"\r\n};\r\n\r\n// Creatures - new beasts\r\nCreatureList[\"moorbounder\"] = {\r\n\tname : \"Moorbounder\",\r\n\tsource : [[\"W\", 295]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 30,\r\n\thd : [4, 10],\r\n\tspeed : \"70 ft\",\r\n\tscores : [18, 14, 14, 2, 13, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Standing Leap\",\r\n\t\tdescription : \"The moorbounder's long jump is up to 40 ft and its high jump is up to 20 ft, with or without a running start.\"\r\n\t}]\r\n};\r\nCreatureList[\"bristled moorbounder\"] = {\r\n\tname : \"Bristled Moorbounder\",\r\n\tsource : [[\"W\", 295]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 52,\r\n\thd : [7, 10],\r\n\tspeed : \"70 ft\",\r\n\tscores : [18, 14, 14, 2, 13, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Blades\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One blades and one claws attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One blades and one claws attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the moorbounder can makeone Blades and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bladed Hide\",\r\n\t\tdescription : \"At the start of each of its turns, the moorbounder deals 2d4 piercing damage to any creature grappling it.\"\r\n\t}, {\r\n\t\tname : \"Standing Leap\",\r\n\t\tdescription : \"The moorbounder's long jump is up to 40 ft and its high jump is up to 20 ft, with or without a running start.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items (each contain contributions by kat9137 [Discord] aka sophiechiabatta [GitHub])\r\nMagicItemsList[\"acheron blade\"] = {\r\n\tname : \"Acheron Blade\",\r\n\tnameTest : \"Acheron\",\r\n\tsource : [[\"W\", 265]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This sword gives a +1 to hit and damage rolls. While I'm holding it, I'm immune to effects that turn undead. As an action, once per dusk, I can use it to gain 1d4+4 temporary HP. Once per dusk, I can give a creature hit with it disadvantage on their next save until the end of my next turn (frighten effect).\",\r\n\tdescriptionFull : \"The black blade of this sword is crafted from a mysterious arcane alloy. You gain a +1 bonus to attack and damage rolls made with this magic weapon. While the sword is on your person, you are immune to effects that turn undead.\"+\r\n\t\"\\n   \" + toUni(\"Dark Blessing\") + \". While holding the sword, you can use an action to give yourself 1d4 + 4 temporary hit points. This property can't be used again until the next dusk.\"+\r\n\t\"\\n   \" + toUni(\"Disheartening Strike\") + \". When you hit a creature with an attack using this weapon, you can fill the target with unsettling dread: the target has disadvantage on the next saving throw it makes before the end of your next turn. The creature ignores this effect if it's immune to the frightened condition. Once you use this property, you can't do so again until the next dusk\",\r\n\taction : [[\"action\", \" (Dark Blessing)\"]],\r\n\tsavetxt : { immune : [\"Effects that turn undead\"] },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Acheron Blade (Dark Blessing)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Dusk\"\r\n\t}, {\r\n\t\tname : \"Acheron Blade (Disheartening Strike)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Dusk\"\r\n\t}],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/acheron/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per dusk, target disadv. on next save until my next turn ends';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Acheron\" in a the name of a sword, it will be treated as the magic weapon Acheron Blade.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/acheron/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t''\r\n\t\t]\r\n\t}\r\n};\r\n\r\nMagicItemsList[\"amulet of the drunkard\"] = {\r\n\tname : \"Amulet of the Drunkard\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This amulet smells of old, ale-stained wood. While wearing it, I can regain 4d4 + 4 hit points when I drink a pint of beer, ale, mead, or wine. Once the amulet has restored hit points, it can't do so again until the next dawn.\",\r\n\tdescriptionFull : \"This amulet smells of old, ale-stained wood. While wearing it, you can regain 4d4 + 4 hit points when you drink a pint of beer, ale, mead, or wine. Once the amulet has restored hit points, it can't do so again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nvar EGtW_ArcaneCannonFullDescription = [\r\n\t\"This Large cannon is imbued with magic. It requires no ammunition and doesn't need to be loaded. It takes one action to aim the cannon and one action to fire it. After the cannon has fired, it must recharge for 5 minutes before it can be fired again. The creature firing the cannon chooses the effect from the following options:\",\r\n\t\">>Acid Jet<<. The cannon discharges acid in a line 300 feet long and 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 4d10 acid damage on a failed save, or half as much damage on a successful one. In addition, a creature that fails its saving throw takes 2d10 acid damage at the start of each of its turns; a creature can end this damage by using its action to wash off the acid with a pint or more of water.\",\r\n\t\">>Fire Jet<<. The cannon discharges fire in a line 300 feet long and 5 feet wide. Each creature in the area must make a DC 15 Dexterity saving throw, taking 6d10 fire damage on a failed save, or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\",\r\n\t\">>Frost Shot<<. The cannon shoots a ball of frost to a point you can see within 1200 feet of the cannon. The ball then expands to form a 30-foot-radius sphere centered on that point. Each creature in that area must make a DC 15 Constitution saving throw. On a failed save, a creature takes 4d10 cold damage, and its speed is reduced by 10 feet for 1 minute. On a successful save, the creature takes half as much damage, and its speed isn't reduced. A creature whose speed is reduced by this effect can repeat the save at the end of each of its turns, ending the effect on itself on a success.\",\r\n\t\">>Lightning Shot<<. The cannon shoots a ball of lightning to a point you can see within 1200 feet of the cannon. The lightning then expands to form a 20-foot-radius sphere centered on that point. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d10 lightning damage on a failed save, or half as much damage on a successful one. Creatures wearing metal armor have disadvantage on the save.\",\r\n\t\">>Poison Spray<<. The cannon expels poison gas in a 60-foot cone. Each creature in that area must make a DC 15 Constitution saving throw. On a failed save, the creature takes 4d10 poison damage and is poisoned for 1 minute. On a successful save, the creature takes half as much damage and isn't poisoned. A creature poisoned in this way can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n];\r\nMagicItemsList[\"arcane cannon\"] = {\r\n\tname : \"Arcane Cannon\",\r\n\tsource : [[\"W\", 265]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This Large magical cannon requires no ammunition and doesn't need to be loaded, but takes 5 minutes to recharge once fired. It takes one action to aim it and another action to fire it. When I fire it, I can choose the effect, an acid jet, fire jet, frost shot, lightning shot, or poison spray. See Notes page.\",\r\n\tdescriptionFull : EGtW_ArcaneCannonFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\taction : [[\"action\", \" (Aim or Fire)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tnote : \"\\n\" + EGtW_ArcaneCannonFullDescription.join(\"\\n \\u2022 \").replace(/>>(.*?)<<\\./g, function(a, match) { return match.toUpperCase() + \":\"; }).replace(/\\byou\\b/ig, \"I\").replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t}]\r\n};\r\nMagicItemsList[\"battering shield\"] = {\r\n\tname : \"Battering Shield\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"shield\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This iron tower shield gives me a +1 bonus to AC, in addition to the shield's normal bonus to AC. It has 3 charges, regaining 1d3 expended charges daily at dawn. When I am holding the shield and push a creature 5 ft away, I can expend 1 charge to push that creature an additional 10 ft, knock it prone, or both.\",\r\n\tdescriptionFull : \"While holding this iron tower shield, you gain a +1 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\\n   Additionally, the shield has 3 charges, and it regains 1d3 expended charges daily at dawn. If you are holding the shield and push a creature within your reach at least 5 feet away, you can expend 1 charge to push that creature an additional 10 feet, knock it prone, or both.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tshieldAdd : [\"Battering Shield\", 3],\r\n\tweight : 6\r\n};\r\nMagicItemsList[\"bloodaxe\"] = {\r\n\tname : \"Bloodaxe\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This rust-colored magical greataxe grants a +2 bonus to attack and damage rolls made with it. The axe deals an additional 1d6 necrotic damage to creature's that aren't constructs or undead. If I reduce a creature to 0 hit points with this axe, I gain 10 temporary hit points.\",\r\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic axe. The axe deals an extra 1d6 necrotic damage to creatures that aren't constructs or undead. If you reduce such a creature to 0 hit points with an attack using this axe, you gain 10 temporary hit points.\\n   This axe is forged from a dark, rust-colored metal and once belonged to the goliath barbarian Grog Strongjaw of Vox Machina.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /bloodaxe/i,\r\n\t\tname : \"Bloodaxe\",\r\n\t\tsource : [[\"W\", 266]],\r\n\t\tdescription : \"Heavy, two-handed; +1d6 necrotic damage to living targets\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 7\r\n};\r\nMagicItemsList[\"breathing bubble\"] = {\r\n\tname : \"Breathing Bubble\",\r\n\tsource : [[\"W\", 266], [\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This translucent, bubble-like sphere has a slightly tacky outer surface. I gain its benefits only while wearing it over my head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tdescriptionFull : \"This translucent, bubble-like sphere has a slightly tacky outer surface, and you gain the item's benefits only while wearing it over your head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nMagicItemsList[\"brooch of living essence\"] = {\r\n\tname : \"Brooch of Living Essence\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing this nondescript brooch, spells and anything else that would detect or reveal my creature type treat me as humanoid, and those that would reveal my alignment treat it as neutral.\",\r\n\tdescriptionFull : \"While wearing this nondescript brooch, spells and anything else that would detect or reveal your creature type treat you as humanoid, and those that would reveal your alignment treat it as neutral.\"\r\n};\r\nMagicItemsList[\"butcher's bib\"] = {\r\n\tname : \"Butcher's Bib\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This black leather apron is perpetually covered by blood. Once per turn when I roll damage for a melee attack with a weapon, I can use it to reroll the weapon's damage dice, but must use the new roll. While wearing the bib, my weapon attacks that deal slashing damage score a critical hit on a roll of 19 or 20.\",\r\n\tdescriptionFull : \"This black leather apron is perpetually covered by blood, even after being washed off. You gain the following benefits while wearing the apron:\"+\r\n\t\"\\n \\u2022 Once per turn when you roll damage for a melee attack with a weapon, you can reroll the weapon's damage dice. If you do so, you must use the second total.\"+\r\n\t\"\\n \\u2022 Your weapon attacks that deal slashing damage score a critical hit on a roll of 19 or 20 on the d20.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isDC && !v.isSpell && !v.CritChance && /slash/i.test(v.theWea.damage[2])) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t}\r\n\t\t\t\tif (!v.isDC && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reroll damage once per turn';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"My weapon attacks that deal slashing damage score a critical on a to hit roll of both 19 and 20. Once per turn, I can reroll the damage of a melee weapon attack and must use the second result.\",\r\n\t\t\t19\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"coin of delving\"] = {\r\n\tname : \"Coin of Delving\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This scintillating copper coin sheds dim light in a 5-ft radius. If dropped a distance greater than 5 ft, the coin issues a melodious ringing sound when it hits a surface. Any creature that can hear the chime can determine the distance the coin dropped based on the tone.\",\r\n\tdescriptionFull : \"This scintillating copper coin sheds dim light in a 5-foot radius. If dropped a distance greater than 5 feet, the coin issues a melodious ringing sound when it hits a surface. Any creature that can hear the chime can determine the distance the coin dropped based on the tone.\"\r\n};\r\nMagicItemsList[\"corpse slayer\"] = {\r\n\tname : \"Corpse Slayer\",\r\n\tnameTest : \"Corpse Slaying\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magic weapon. Undead hit by it take an additional 1d8 damage and gain disadvantage on saving throws against effects that turn undead until the start of my next turn.\",\r\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon.\\n   When you hit an undead creature with an attack using this weapon, the attack deals an extra 1d8 damage of the weapon's type, and the creature has disadvantage on saving throws against effects that turn undead until the start of your next turn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : [\"between\", \"Corpse Slaying\", \"\"],\r\n\t\titemName1stPage : [\"suffix\", \"Corpse Slaying\"],\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isSpell && !v.theWea.isMagicWeapon && (/corpse slay(er|ing)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d8 damage vs. undead; Target disadv. vs. turn undead';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Corpse Slayer\" or \"Corpse Slaying\" in a the name of a weapon, it will be treated as the magic weapon Corpse Slayer, which has a +1 to hit and damage and deals +1d8 damage vs. undead.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (!v.isSpell && (/corpse slay(er|ing)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"dispelling stone\"] = {\r\n\tname : \"Dispelling Stone\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This smooth, rainbow-colored, egg-shaped stone can be thrown up to 30 ft and explodes in a 10-ft-radius sphere of magical energy on impact, destroying the stone. Any active spell of 5th level or lower in the sphere ends.\",\r\n\tdescriptionFull : \"This smooth, rainbow-colored, egg-shaped stone can be thrown up to 30 feet and explodes in a 10-foot-radius sphere of magical energy on impact, destroying the stone. Any active spell of 5th level or lower in the sphere ends.\",\r\n\tusages : 1,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"duskcrusher\"] = {\r\n\tname : \"Duskcrusher\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (warhammer)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This rod caries the symbol of Pelor. As a bonus action, I can activate its crackling head of sunlight, that shines bright light in 15 ft and dim for another 15 ft. While active, I can use it as a +2 warhammer that deals radiant damage and +1d8 damage to undead. Once per dawn, I can cast Sunbeam with it (DC 15).\",\r\n\tdescriptionLong : \"This leather-wrapped metal rod caries the symbol of Pelor on top. As a bonus action, I can cause a warhammer head of crackling radiance to spring into existence. It emits emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the radiant head is active, the rod functions as a +2 warhammer that deals radiant damage and +1d8 damage to undead. Once per dawn while its radiant head is active, I can use it to cast Sunbeam (DC 15). I can deactivate the head as an action.\",\r\n\tdescriptionFull : \"This item takes the form of a leather-wrapped metal rod emblazoned with the symbol of Pelor, the Dawn Father. While grasping the rod, you can use a bonus action to cause a warhammer head of crackling radiance to spring into existence. The warhammer's radiant head emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. You can use an action to make the radiant head disappear.\"+\r\n\t\"\\n   While the radiant head is active, you gain a +2 bonus to attack and damage rolls made with this magic weapon, and attacks with the weapon deal radiant damage instead of bludgeoning damage. An undead creature hit by the weapon takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   While you are holding Duskcrusher and its radiant head is active, you can use an action to cast the sunbeam spell (save DC 15) from the weapon, and this action can't be used again until the next dawn.\",\r\n\taction : [ [\"bonus action\", \" (activate)\"], [\"action\", \" (deactivate)\"] ],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Duskcrusher (Sunbeam)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"warhammer\",\r\n\t\tregExpSearch : /duskcrusher/i,\r\n\t\tname : \"Duskcrusher\",\r\n\t\tsource : [[\"W\", 266]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Versatile (1d10); +1d8 damage vs. undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 2,\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"sunbeam\"],\r\n\t\tselection : [\"sunbeam\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nMagicItemsList[\"dust of deliciousness\"] = {\r\n\tname : \"Dust of Deliciousness\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This reddish brown dust can be sprinkled over any edible substance to greatly improve the flavor. The dust also dulls the eater's senses: anyone eating food treated with this dust has disadvantage on Wisdom ability checks and Wisdom saving throws for 1 hour. There is enough dust to flavor six servings.\",\r\n\tdescriptionFull : \"This reddish brown dust can be sprinkled over any edible substance to greatly improve the flavor. The dust also dulls the eater's senses: anyone eating food treated with this dust has disadvantage on Wisdom ability checks and Wisdom saving throws for 1 hour. There is enough dust to flavor six servings.\",\r\n\tusages : 6,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"goggles of object reading\"] = {\r\n\tname : \"Goggles of Object Reading\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing these leather-framed goggles feature purple crystal lenses, I have advantage on Intelligence (Arcana) checks made to reveal information about a creature or object I can see. Once per dawn, I can cast Identify using the goggles.\",\r\n\tdescriptionFull : \"These leather-framed goggles feature purple crystal lenses. While wearing the goggles, you have advantage on Intelligence (Arcana) checks made to reveal information about a creature or object you can see. In addition, you can cast the identify spell using the goggles. Once you do so, you can't do so again until the next dawn.\", // Changed googles to goggles, as this is clearly a typo in the book\r\n\tadditional : \"Identify\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"identify\"],\r\n\t\tselection : [\"identify\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nMagicItemsList[\"hunter's coat\"] = {\r\n\tname : \"Hunter's Coat\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I have a +1 bonus to AC while wearing this leather armor. The coat has 3 charges. When I hit a creature with an attack and that creature doesn't have all its hit points, I can expend 1 charge to deal an extra 1d10 necrotic damage to the target. The coat regains 1d3 expended charges at dawn.\",\r\n\tdescriptionFull : \"You have a +1 bonus to AC while wearing this armor. The coat has 3 charges. When you hit a creature with an attack and that creature doesn't have all its hit points, you can expend 1 charge to deal an extra 1d10 necrotic damage to the target. The coat regains 1d3 expended charges daily at dawn.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*hunter)(?=.*coat).*$/i,\r\n\t\tname : \"Hunter's Coat\",\r\n\t\tsource : [[\"W\", 267]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 10\r\n};\r\nMagicItemsList[\"last stand armor\"] = {\r\n\tname : \"Last Stand Armor\",\r\n\tnameTest : /last.stand.*armou?r/i,\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"armor (any)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I have a +1 bonus to AC while wearing this magic armor. If I die while wearing this armor, it is destroyed, and each celestial, fey, and fiend with 30 ft of me must succeed on a DC 15 Charisma saving throw or be banished to their home plane of existence, unless they are already there.\",\r\n\tdescriptionFull : \"You have a +1 bonus to AC while wearing this armor, which shimmers softly. If you die while wearing the armor, it is destroyed, and each celestial, fey, and fiend with 30 feet of you must succeed on a DC 15 Charisma saving throw or be banished to its home plane of existence, unless it is already there.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Last Stand\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"between\", \"Last Stand\", \"(+1)\"]\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Last Stand Armor\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Never\"\r\n\t}]\r\n};\r\n\r\nvar EGtW_LuxonBeaconFullDescription = [\r\n\t\"This dodecahedron of faintly glowing crystal is heavier than it appears. A set of handles are affixed to its sides, and it pulsates and thrums when touched.\",\r\n\t\">>Fragment of Possibility<<. A creature that touches the beacon and concentrates for 1 minute receives a Fragment of Possibility, which looks like a Tiny, grayish bead of energy that follows the creature around, staying within 1 foot of it at all times. The fragment lasts for 8 hours or until used. Once the beacon grants a Fragment of Possibility, it can't grant another until the next dawn. A creature with a Fragment of Possibility from a Luxon Beacon can't gain another Fragment of Possibility from any source.\",\r\n\t\"When a creature with a Fragment of Possibility makes an attack roll, an ability check, or a saving throw, it can expend its fragment to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against the creature, it can expend its fragment to roll a d20 and choose which of the d20s to use, the one it rolled or the one the attacker rolled.\",\r\n\t\"If the original d20 roll has advantage or disadvantage, the creature rolls its d20 after advantage or disadvantage has been applied to the original roll.\",\r\n\t\">>Soul Snare<<. If a follower of the Luxon who has undergone a ritual of consecution dies within 100 miles of a Luxon Beacon, their soul is ensnared by it. This soul will be reincarnated within the body of a random humanoid baby developing within 100 miles of the beacon.\"\r\n];\r\nMagicItemsList[\"luxon beacon\"] = {\r\n\tname : \"Luxon Beacon\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once per dawn, a creature can touch this crystal for 1 minute to gain a Fragment of Possibility. Once for the next 8 hours, it can roll an extra d20 for an attack, check, save, or being attacked, before the outcome is determined. Creatures consecuted to the Luxon that die within 100 miles of it are reincarnated. See notes.\",\r\n\tdescriptionFull : EGtW_LuxonBeaconFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Luxon Beacon (Fragment of Possibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(EGtW_LuxonBeaconFullDescription).replace(/   >>(.*?)<<\\. /g, function(a, match) { return match.toUpperCase() + \"\\n   \"; })\r\n\t}]\r\n};\r\nMagicItemsList[\"needle of mending\"] = {\r\n\tname : \"Needle of Mending\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This weapon is a magic dagger disguised as a sewing needle. As a bonus action, I can speak its command word to transform it into a dagger or back into a needle. I gain a +1 bonus to attack and damage rolls made with the dagger. As an action while holding it, I can cast the mending cantrip from it.\",\r\n\tdescriptionFull : \"This weapon is a magic dagger disguised as a sewing needle. When you hold it and use a bonus action to speak its command word, it transforms into a dagger or back into a needle.\\n   You gain a +1 bonus to attack and damage rolls made with the dagger. While holding it, you can use an action to cast the mending cantrip from it.\",\r\n\taction : [[\"bonus action\", \" (transform)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*needle)(?=.*mending).*$/i,\r\n\t\tname : \"Needle of Mending\",\r\n\t\tsource : [[\"W\", 268]],\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mending\"],\r\n\t\tselection : [\"mending\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mending\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Needle of Mending, I can cast Mending as an action.\"\r\n\t\t}\r\n\t},\r\n\tweight : 1\r\n};\r\nMagicItemsList[\"nightfall pearl\"] = {\r\n\tname : \"Nightfall Pearl\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I can spend 10 minutes to activate this his 6-inch-diameter, jet-black orb, causing the area within 10 miles of it to become night even if it is daytime. This night lasts for 24 hours, until I cancel it as an action, or until my attunement to the pearl ends. Once used, the pearl can't be used again for 24 hours.\",\r\n\tdescriptionFull : \"Used to summon night, this 6-inch-diameter, jet-black orb is cold to the touch. You can spend 10 minutes to activate it, causing the area within 10 miles of it at the moment of activation to become night even if it is daytime. This night lasts for 24 hours, until you cancel it as an action, or until your attunement to the pearl ends. Once used, the pearl can't be used again for 24 hours.\",\r\n\taction : [[\"action\", \" (end)\"]],\r\n\tusages : 1,\r\n\trecovery : \"24 hrs\"\r\n};\r\nMagicItemsList[\"orb of the veil\"] = { // no automation for halving the fire damage, because it is very complex, error prone, and the curse could (and will) be removed\r\n\tname : \"Orb of the Veil\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This orb increases my Wisdom and maximum by 2, grants me +60 ft darkvision, and adv. on Wisdom checks to find hidden doors and paths. It is cursed and once attuned to it, I become unwilling to part with it, nonmagical flames within 30 ft of me extinguish, and fire damage I deal is halved (not automated).\",\r\n\tdescriptionFull : \"This onyx sphere bears deep, spiraling grooves and dangles from an iron chain. While the orb is on your person, you gain the following benefits:\\n Your Wisdom score increases by 2, as does your maximum for that score.\\n You gain darkvision out to a range of 60 feet. If you already have darkvision, the orb increases its range by 60 feet.\\n You have advantage on Wisdom checks to find hidden doors and paths.\\n   \" + toUni(\"Curse\") + \". The orb is cursed, and becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the orb, keeping it on your person at all times. All nonmagical flames within 30 feet of you automatically extinguish, and fire damage dealt by you is halved.\",\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\tscoresMaximum : [0, 0, 0, 0, \"+2\", 0],\r\n\tweight : 3\r\n};\r\nMagicItemsList[\"potion of maximum power\"] = {\r\n\tname : \"Potion of Maximum Power\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion of glowing purple liquid that smells of sugar and plum or administer it to another. The next time the recipient casts a damage-dealing spell of 4th-level or lower within 1 minute, instead of rolling the damage die, the highest number possible for each die is used.\",\r\n\tdescriptionFull : \"The first time you cast a damage-dealing spell of 4th level or lower within 1 minute after drinking the potion, instead of rolling dice to determine the damage dealt, you can instead use the highest number possible for each die.\\n This glowing purple liquid smells of sugar and plum, but it has a muddy taste.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"potion of possibility\"] = {\r\n\tname : \"Potion of Possibility\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion of glowing purple liquid that smells of sugar and plum or administer it to another. Twice for the next 8 hours, the consumer can roll an extra d20 for an attack, check, save, or being attacked, before the outcome is determined.\",\r\n\tdescriptionFull : \"When you drink this clear potion, you gain two Fragments of Possibility, each of which looks like a Tiny, grayish bead of energy that follows you around, staying within 1 foot of you at all times. Each fragment lasts for 8 hours or until used.\"+\r\n\t\"\\n   When you make an attack roll, an ability check, or a saving throw, you can expend your fragment to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against you, you can expend your fragment to roll a d20 and choose which of the d20s to use, the one you rolled or the one the attacker rolled.\"+\r\n\t\"\\n   If the original d20 roll has advantage or disadvantage, you roll your d20 after advantage or disadvantage has been applied to the original roll.\"+\r\n\t\"\\n   While you have one or more Fragments of Possibility from this potion, you can't gain another Fragment of Possibility from any source.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"reincarnation dust\"] = {\r\n\tname : \"Reincarnation Dust\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tusages : 1,\r\n\trecovery : \"Never\",\r\n\tdescription : \"Once I can sprinkle the purple dust in this small pouch on a dead humanoid or a piece of a dead humanoid. The dust is absorbed by the remains. If willing, the dead creature returns to life with a new body as if the reincarnate spell had been cast on the remains.\",\r\n\tdescriptionFull : \"When this small pouch of purple dust is sprinkled on a dead humanoid or a piece of a dead humanoid, the dust is absorbed by the remains. If willing, the dead creature returns to life with a new body as if the reincarnate spell had been cast on the remains.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Use once\",\r\n\t\tspells : [\"reincarnate\"],\r\n\t\tselection : [\"reincarnate\"]\r\n\t}]\r\n};\r\nMagicItemsList[\"ring of obscuring\"] = {\r\n\tname : \"Ring of Obscuring\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This band of iron resembling a skull has 3 charges, regaining 1d3 expended charges at dawn. As an action, I can expend 1 charge to cast Fog Cloud from it, with the following changes: the cloud is centered on me when it first appears, the spell lasts for 1 minute, and the spell requires no concentration.\",\r\n\tdescriptionFull : \"This band of iron resembles a skull and is cold to the touch. It has 3 charges and regains 1d3 expended charges daily at dawn. As an action while wearing the ring, you can expend 1 of its charges to cast the fog cloud spell from it, with the following changes: the cloud is centered on you when it first appears, and the spell lasts for 1 minute (no concentration required).\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ring of Obscuring\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"Dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"fog cloud\"],\r\n\t\tselection : [\"fog cloud\"],\r\n\t\tfirstCol : '1'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fog cloud\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"1 min\",\r\n\t\t\tchanges : \"When I cast fog cloud with the Ring of Obscuring, the spell is centered on me, lasts for 1 minute, and the requires no concentration.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"ring of temporal salvation\"] = {\r\n\tname : \"Ring of Temporal Salvation\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"If I die while wearing this gray crystal ring, I vanish and reappear in an empty space within 5 ft, with 3d6 + my Con mod in HP, and 1 less level of exhaustion (if any). If my maximum HP is less than the amount rolled, my max rises to a similar amount. Once this ring is used, it turns to dust and is destroyed.\",\r\n\tdescriptionFull : \"If you die while wearing this gray crystal ring, you vanish and reappear in an unoccupied space within 5 feet of the space you left (or the nearest unoccupied space). You have a number of hit points equal to 3d6 + your Constitution modifier. If your hit point maximum is lower than the number of hit points you regain, your hit point maximum rises to a similar amount. If you have any levels of exhaustion, reduce your level of exhaustion by 1. Once the ring is used, it turns to dust and is destroyed.\"\r\n};\r\nMagicItemsList[\"rod of retribution\"] = {\r\n\tname : \"Rod of Retribution\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"rod\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This adamantine rod with a glowing crystalline tip has 3 charges, regaining all daily at dawn. As a reaction when a creature I can see within 60 ft damages me, I can expend a charge to force it to make a DC 13 Dexterity save. It takes a 2d10 lightning damage on a failed save, or half as much on a successful one.\",\r\n\tdescriptionFull : \"This adamantine rod is tipped with a glowing crystalline eye. The rod has 3 charges and regains all its expended charges daily at dawn.\\n   When a creature you can see within 60 feet of you damages you while you are holding this rod, you can use your reaction to expend 1 of the rod's charges to force the creature to make a DC 13 Dexterity saving throw. The creature takes 2d10 lightning damage on a failed save, or half as much damage on a successful one.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (if damaged)\"]],\r\n\tweight : 2\r\n};\r\nMagicItemsList[\"spell bottle\"] = {\r\n\tname : \"Spell Bottle\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While holding this bottle, I can cast a 5th-level or lower spell into it if empty, or cast the stored spell from it (slot level, DC, and spell attack as original casting). As a reaction when I see a spell being cast in 60 ft, I can try to store it in the empty bottle. Works if 3rd-level or lower, otherwise Int check DC 10 + spell level.\",\r\n\tdescriptionFull : \"This glass bottle can store one spell of up to 5th level at a time. When found, roll a d6 and subtract 1; the total determines the level of spell in the bottle (the DM chooses the spell, and 0 means the bottle is empty). A swirling blue vapor fills the bottle while it contains a spell.\"+\r\n\t\"\\n   When the bottle is empty, any creature can cast a spell of 1st through 5th level into it by touching it while casting. The spell has no effect other than to be stored in the bottle.\"+\r\n\t\"\\n   While holding the bottle, you can cast the spell stored in it. The spell uses the slot level, spell save DC, spell attack bonus, and spellcasting ability of the original caster, but is otherwise treated as if you cast the spell. The bottle becomes empty once the spell is cast.\"+\r\n\t\"\\n   If you're holding the empty bottle when you see a creature casting a spell within 60 feet of you, you can open the bottle as a reaction in an attempt to interrupt the spell. If the creature is casting a spell of 3rd level or lower, the spell has no effect, and it is stored in the bottle. If it is casting a spell of 4th level or higher, make an Intelligence check. The DC equals 10 + the spell's level. On a success, the spell has no effect, and it is stored in the bottle.\"\r\n};\r\nMagicItemsList[\"staff of dunamancy\"] = {\r\n\tname : \"Staff of Dunamancy\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This staff has 10 charges, regains 1d6+4 at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. As an action, I can use its charges to cast Fortune's Favor (2), Pulse Wave (3), or Gravity Sinkhole (4), using my spellcasting ability. Once per dawn, I can turn a failed save vs. a spell that targets only me into a success.\",\r\n\tdescriptionFull : \"This staff of polished gray wood bears numerous runes carved along its length. The staff has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff turns into dust and is destroyed.\"+\r\n\t\"\\n   While holding the staff, you can use an action to expend 2 or more of its charges to cast one of the following spells from it, using your spell save DC and spell attack bonus: fortune's favor (2 charges), pulse wave (3 charges), or gravity sinkhole (4 charges).\"+\r\n\t\"\\n   \" + toUni(\"New Possibility\") + \". If you are holding the staff and fail a saving throw against a spell that targets only you, you can turn your failed save into a successful one. This property can't be used again until the next dawn.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Staff of Dunamancy (regains 1d6+4)\",\r\n\t\tusages : 10,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Staff of Dunamancy (New Possibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"fortune's favor\"],\r\n\t\tselection : [\"fortune's favor\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"pulse wave\"],\r\n\t\tselection : [\"pulse wave\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"gravity sinkhole\"],\r\n\t\tselection : [\"gravity sinkhole\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fortune's favor\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Staff of Dunamancy, I can cast Fortune's Favor as an action.\"\r\n\t\t}\r\n\t},\r\n\tweight : 4\r\n};\r\nMagicItemsList[\"staff of the ivory claw\"] = {\r\n\tname : \"Staff of the Ivory Claw\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This gray-and-cerulean staff is topped with a small dragon claw carved from ivory. While holding the staff, I gain a +1 bonus to spell attack rolls. Whenever you score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\",\r\n\tdescriptionFull : \"This gray-and-cerulean staff is topped with a small dragon claw carved from ivory. While holding the staff, you gain a +1 bonus to spell attack rolls. Whenever you score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\",\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"While holding the Staff of the Ivory Claw, I have a +1 bonus to spell attack rolls.\"\r\n\t\t],\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isSpell && !v.theWea.dc) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On crit, +3d6 radiant damage';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"While holding the Staff of the Ivory Claw whenever I score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\"\r\n\t\t]\r\n\t},\r\n\tweight : 4\r\n};\r\nMagicItemsList[\"vox seeker\"] = {\r\n\tname : \"Vox Seeker\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This clockwork device resembles a metal crab the size of a dinner plate. Every action used to wind up this clockwork device allows it to operate for 1 minute, to a maximum of 10 minutes. See the vox seeker on a companion page. This creature is under the DM's control. If reduced to 0 HP, it is destroyed.\",\r\n\tdescriptionFull : \"This clockwork device resembles a metal crab the size of a dinner plate. Every action used to wind up the device allows it to operate for 1 minute, to a maximum of 10 minutes. While operational, the item uses the accompanying Vox Seeker stat block. This automaton is under the DM's control. A vox seeker reduced to 0 hit points is destroyed.\",\r\n\taction : [[\"action\", \" (wind up)\"]],\r\n\tcreaturesAdd : [[\"Vox Seeker\"]],\r\n\tcreatureOptions : [{\r\n\t\tname : \"Vox Seeker\",\r\n\t\tsource : [[\"W\", 270]],\r\n\t\tsize : 5,\r\n\t\ttype : \"Construct\",\r\n\t\talignment : \"\",\r\n\t\tac : 14,\r\n\t\thp : 7,\r\n\t\thd : [2, 4],\r\n\t\tspeed : \"20 ft, climb 20 ft\",\r\n\t\tscores : [2, 10, 12, 1, 10, 1],\r\n\t\tdamage_immunities : \"poison, psychic\",\r\n\t\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\t\tsenses : \"Blindsight 60 ft (blind beyond this radius\",\r\n\t\tpassivePerception : 10,\r\n\t\tlanguages : \"\",\r\n\t\tchallengeRating : \"0\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Pincer\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"+3 lightning damage\",\r\n\t\t\tabilitytodamage : false\r\n\t\t}],\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Creator\",\r\n\t\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Spider Climb\",\r\n\t\t\tdescription : \"The vox seeker can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t\t}, {\r\n\t\t\tname : \"Voice Lock\",\r\n\t\t\tdescription : \"The vox seeker must move toward and attack the source of the nearest voice within 60 ft of it, to the exclusion of all other targets, for as long as it remains operational.\"\r\n\t\t}]\r\n\t}]\r\n};\r\nMagicItemsList[\"weapon of certain death\"] = {\r\n\tname : \"Weapon of Certain Death\",\r\n\tnameTest : \"of Certain Death\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"When I damage a creature with an attack using this magic weapon, the target can't regain hit points until the start of my next turn.\",\r\n\tdescriptionFull : \"When you damage a creature with an attack using this magic weapon, the target can't regain hit points until the start of your next turn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && (/of certain death/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"On hit, target can't heal until my next turn starts\";\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Certain Death\" in a the name of a weapon, it will be treated as the magic weapon \"Weapon of Certain Death\". On a hit, the target can\\'t regain hit points until the start of my next turn.'\r\n\t\t]\r\n\t}\r\n};\r\n\r\n// Vestiges of Divergence (contains contributions by kat9137 [Discord] aka sophiechiabatta [GitHub])\r\nvar EGtW_Vestiges_Replace = function (sDescr) {\r\n\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|giving|grants|of|to|for) I\\b/ig, \"$1 me\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; });\r\n}\r\nvar EGtW_DanothsVisorFullDescription = [\r\n\t\"These mithral-frame goggles with clear diamond lenses were used by the evoker Danoth Oro to spot invisible enemies and scout areas from afar.\",\r\n\t\">>Dormant<<. While wearing the goggles in their dormant state, you can see normally in darkness, both magical and nonmagical, to a distance of 60 feet. Additionally, you have advantage on Intelligence (Investigation) and Wisdom (Perception) checks that rely on sight.\",\r\n\t\">>Awakened<<. When Danoth's Visor reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 You see invisible creatures and objects within 60 feet of you as if they were visible, and you can see into the Ethereal Plane. Ethereal creatures and objects appear ghostly and translucent.\",\r\n\t\"\\u2022 As a bonus action, you can speak a command word and use the goggles to see into and through solid matter. This vision has a radius of 60 feet and lasts for 1 minute. To you, solid objects within that radius appear transparent. The vision can penetrate 1 foot of stone, 1 inch of common metal, or up to 3 feet of wood or dirt. Thicker substances block the vision, as does a thin sheet of lead. This property can't be used again until the next dawn.\",\r\n\t\"\\u2022 As a bonus action, you can speak a command word to switch the goggles into spyglass mode. While in this mode, creatures and objects viewed through the goggles are magnified to twice their size. Speaking the command word again reverts the goggles to their normal operation.\",\r\n\t\">>Exalted<<.\",\r\n\t\"When Danoth's Visor reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 You automatically detect illusions you can see and automatically succeed on saving throws against them. In addition, you see a bright aura around any creature that isn't in its true form.\",\r\n\t\"\\u2022 As an action, you can cast the antimagic field spell from the visor. This property can't be used again until the next dawn.\"\r\n];\r\nMagicItemsList[\"danoth's visor\"] = {\r\n\tname : \"Danoth's Visor\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"These mithral-frame goggles with clear diamond lenses were used by the evoker Danoth Oro to spot invisible enemies and scout areas from afar. See notes page for more information.\",\r\n\tdescriptionFull : EGtW_DanothsVisorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_DanothsVisorFullDescription)\r\n\t}],\r\n\tvision : [[\"Devil's Sight\", \"fixed 60\"], [\"Adv. on Investigation and Perception check that rely on sight\", 0]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Danoth's Visor [dormant]\",\r\n\t\tdescription : \"These mithral-frame goggles with clear diamond lenses grant me the ability to see in normally in nonmagical and magical darkness out to 60 ft. Also, they grant me advantage on Intelligence (Investigation) and Wisdom (Perception) checks that rely on sight.\"\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Danoth's Visor [awakened]\",\r\n\t\tdescription : \"These mithral-frame goggles with clear diamond lenses grant me the ability to see, out to 60 ft, in nonmagical and magical darkness, invisible creatures and objects, and into the Ethereal plane. They give me adv. on Investigation and Perception checks that rely on sight. I can active them to see more, see Notes page.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (see through matter)\"]\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (spyglass mode)\"],\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Danoth's Visor (see through matter)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Danoth's Visor [exalted]\",\r\n\t\tdescription : \"These goggles grant me the ability to see, out to 60 ft, in normal and magical darkness, invisible creatures and objects, and into the Ethereal plane. They allow me to automatically detect illusions for what they are, succeed on saves against them, and see if creatures aren't in their true form. See Notes for more.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (see through matter)\"]\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (spyglass mode)\"],\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Danoth's Visor (see through matter)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Danoth's Visor (Antimagic Field)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"antimagic field\"],\r\n\t\t\tselection : [\"antimagic field\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tsavetxt : { immune : [\"illusions\"] },\r\n\t}\r\n};\r\nvar EGtW_GrimoireInfinitusFullDescription = [\r\n\t\"Several of these spellbooks with gilded pages and silver-plated covers were created during the Age of Arcanum, but only one has been found since the Calamity ended. The book has an infinite number of pages, is three inches thick, eight inches wide, twelve inches long, and weighs three pounds.\",\r\n\t\">>Dormant<<. Most of the book is blank, but the following spells are recorded in the first pages of the tome: alarm, antimagic field, Bigby's hand, blight, charm person, confusion, control weather, create undead, detect thoughts, enlarge/reduce, fear, foresight, gaseous form, glyph of warding, legend lore, Leomund's tiny hut, mass suggestion, mislead, misty step, Mordenkainen's faithful hound, prismatic spray, ray of enfeeblement, silent image, teleport, and thunderwave.\",\r\n\t\"You can use the grimoire as your spellbook, and you can scribe new spells into it as normal. When you prepare wizard spells using the grimoire, the number of wizard spells you can prepare increases by 1.\",\r\n\t\">>Awakened<<. When the Grimoire Infinitus reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 While you carry the spellbook, you have advantage on saving throws against spells and magical effects.\",\r\n\t\"\\u2022 When you prepare wizard spells using the grimoire as your spellbook, the number of spells you can prepare increases by 1 again.\",\r\n\t\">>Exalted<<. When the Grimoire Infinitus reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 You can now use your Arcane Recovery feature twice between long rests, rather than once.\",\r\n\t\"\\u2022 When you prepare wizard spells using the grimoire as your spellbook, the number of spells you can prepare increases by 1 again.\"\r\n];\r\nMagicItemsList[\"grimoire infinitus\"] = {\r\n\tname : \"Grimoire Infinitus\",\r\n\tsource : [[\"W\", 271]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use to prepare wizards spells, I can prepare 1 additional spell.\",\r\n\tdescriptionFull : EGtW_GrimoireInfinitusFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_GrimoireInfinitusFullDescription)\r\n\t}],\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"alarm\", \"antimagic field\", \"bigby's hand\", \"blight\", \"charm person\", \"confusion\", \"control weather\", \"create undead\", \"detect thoughts\", \"enlarge/reduce\", \"fear\", \"foresight\", \"gaseous form\", \"glyph of warding\", \"legend lore\", \"leomund's tiny hut\", \"mass suggestion\", \"mislead\", \"misty step\", \"mordenkainen's faithful hound\", \"prismatic spray\", \"ray of enfeeblement\", \"silent image\", \"teleport\", \"thunderwave\"]\r\n\t},\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Grimoire Infinitus [dormant]\",\r\n\t\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use to prepare wizard spells, I can prepare 1 additional spell. See Notes page for more information.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 1.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Grimoire Infinitus [awakened]\",\r\n\t\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use it to prepare wizard spells, I can prepare 2 extra spells. It also grants me advantage on saves against spells and magical effects. See Notes page.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 2.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tsavetxt : { adv_vs : [\"magic\"] }\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Grimoire Infinitus [exalted]\",\r\n\t\tdescription : \"This spellbook with unlimited pages can be used by a wizard to prepare and store spells. When I use it to prepare wizard spells, I can prepare 3 more. It also grants me adv. on saves vs. spells and magical effects and allows me to use Arcane Recovery an extra time per long rest. See Notes page for more information.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 3.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tsavetxt : { adv_vs : [\"magic\"] },\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Arcane Recovery\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taddToExisting : true\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_HideFeralGuardianFullDescription = [\r\n\t\"It is believed that this polished and beautifully detailed leather armor was a gift from Melora, bestowed on a long-forgotten archdruid and champion of the natural world before the terrors of the Calamity.\",\r\n\t\">>Dormant<<. While wearing the armor in its dormant state, you gain the following benefits:\",\r\n\t\"\\u2022 The armor grants you a +1 bonus to AC.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, you have a +1 bonus to melee attack and damage rolls, and you retain the benefits of this armor.\",\r\n\t\"\\u2022 As an action, you can use the armor to cast polymorph on yourself, transforming into a giant owl while retaining your Intelligence, Wisdom, and Charisma scores. This property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. When the armor reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 The AC bonus of the armor increases to +2.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, your bonus to melee attack and damage rolls increases by 1 (to +2).\",\r\n\t\"\\u2022 When you cast the polymorph spell using this armor, you can transform into a cave bear.\",\r\n\t\">>Exalted<<. When the armor reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 The AC bonus of the armor increases to +3.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, your bonus to melee attack and damage rolls increases by 1 (to +3).\",\r\n\t\"\\u2022 When you cast the polymorph spell using this armor, you can transform into a guardian wolf.\"\r\n];\r\nMagicItemsList[\"hide of the feral guardian\"] = {\r\n\tname : \"Hide of the Feral Guardian\",\r\n\tsource : [[\"W\", 271]],\r\n\ttype : \"armor (studded leather)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a bonus to melee attack and damage rolls. Once per dawn, I can use it to cast Polymorph on myself.\",\r\n\tdescriptionFull : EGtW_HideFeralGuardianFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 13,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_HideFeralGuardianFullDescription) + \"\\n\\nNOTE\\n   Be aware that the bonus to melee attacks and damage in wild shape are not automated.\"\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Hide of the Feral Guardian (Polymorph)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Hide of the Feral Guardian [dormant]\",\r\n\t\tdescription : \"This +1 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a +1 bonus to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to transform into a giant owl.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+1\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Hide of the Feral Guardian [awakened]\",\r\n\t\tdescription : \"This +2 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a +2 bonus to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to become a giant owl or cave bear.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+2\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl or cave bear; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl or a cave bear, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Hide of the Feral Guardian [exalted]\",\r\n\t\tdescription : \"This +3 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then grants a +2 to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to become a giant owl, cave bear or guardian wolf.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+3\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl, cave bear, or guardian wolf; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl, cave bear, or guardian wolf, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Guardian Wolf\",\r\n\t\t\tsource : [[\"W\", 272]],\r\n\t\t\tsize : 1,\r\n\t\t\ttype : \"Monstrosity\",\r\n\t\t\talignment : \"\",\r\n\t\t\tac : 14,\r\n\t\t\thp : 66,\r\n\t\t\thd : [7, 12],\r\n\t\t\tspeed : \"60 ft\",\r\n\t\t\tscores : [22, 14, 16, 5, 12, 8],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 3\r\n\t\t\t},\r\n\t\t\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell\",\r\n\t\t\tpassivePerception : 15,\r\n\t\t\tlanguages : \"Common, Elvish\",\r\n\t\t\tchallengeRating : \"4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 2,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Bite\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"Target DC 16 Str save or knocked prone; One bite and one claw attack as an Attack action\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Claws\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [2, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tdescription : \"As an action on its turn, the wolf can make one Bite and one Claws attack.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tdescription : \"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Pack Tactics\",\r\n\t\t\t\tdescription : \"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t\t}]\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_InfiltratorsKeyFullDescription = [\r\n\t\"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items during the Age of Arcanum.\",\r\n\t\">>Dormant<<. The Infiltrator's Key grants the following benefits in its dormant state:\",\r\n\t\"\\u2022 The key can be used as thieves' tools for the purpose of opening locks. When using the key, you are considered proficient in thieves' tools and you have advantage on ability checks made to open locks.\",\r\n\t\"\\u2022 While holding the key, your steps are muffled, giving you advantage on Dexterity (Stealth) checks made to move silently.\",\r\n\t\">>Awakened<<. When the Infiltrator's Key reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 While holding the key, you can use a bonus action to transform the key into a magic dagger or back into a key. While the key is in the form of a dagger, you gain a +1 bonus to attack and damage rolls made with it, and it returns to your hand immediately after it is used to make a ranged attack.\",\r\n\t\"\\u2022 While holding the key, you can use an action to cast one of the following spells from it: alter self, invisibility, knock, or pass without trace. Once a spell has been cast using the key, it can't be used to cast that spell again until the next dawn.\",\r\n\t\">>Exalted<<. When the Infiltrator's Key reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 As a bonus action, you can touch the key to a floor, wall, or ceiling that is no more than 5 feet thick and cause a magical opening to appear in the surface. When you create the opening, you choose its length and width, up to 10 feet for each dimension. The opening lasts until the key passes through it to the other side, at which point it disappears (if a creature is in the opening when the doorway closes, the creature is safely shunted to the nearest unoccupied space). The key can't be used to create another opening until the next dawn.\",\r\n\t\"\\u2022 While holding the key, you can use an action to cast one of the following spells from it: dimension door, gaseous form, or mislead. Once a spell has been cast using the key, it can't be used to cast that spell again until the next dawn.\"\r\n];\r\nMagicItemsList[\"infiltrator's key\"] = {\r\n\tname : \"Infiltrator's Key\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items during the Age of Arcanum. See notes page for more information.\",\r\n\tdescriptionFull : EGtW_InfiltratorsKeyFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_InfiltratorsKeyFullDescription)\r\n\t}],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Infiltrator's Key [dormant]\",\r\n\t\tdescription : \"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items. It can be used as thieves' tools for the purpose of opening locks. I'm considered proficient when I do so with this key and gain adv. While holding it, I have adv. on Stealth checks to move silently.\"\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Infiltrator's Key [awakened]\",\r\n\t\tdescription : \"I can use this mithral skeleton key as thieves' tools to open locks. I'm proficient with it and gain adv. on the roll. While holding it, I have adv. on Stealth checks to move silently. As a bonus action, I can transform it into a +1 dagger that returns immediately when thrown. I can use it to cast several spells, each once per dawn.\",\r\n\t\taction : [[\"bonus action\", \"Infiltrator's Key (transform dagger)\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"dagger\",\r\n\t\t\tregExpSearch : /infiltrator's key|key of the infiltrator/i,\r\n\t\t\tname : \"Infiltrator's Key\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdescription : \"Finesse, light, thrown; Returns when thrown\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\"],\r\n\t\t\tselection : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\"],\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 4\r\n\t\t}]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Infiltrator's Key [exalted]\",\r\n\t\tdescription : \"I can use this mithral skeleton key as thieves' tools to open locks. I'm proficient with it and gain adv. on the roll. While holding it, I have adv. on Stealth checks to move silently. As a bonus action, I can transform it into a +1 dagger that returns when thrown. I can use it to cast several spells, each once per dawn. See Notes.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Infiltrator's Key (transform dagger)\"],\r\n\t\t\t[\"bonus action\", \"Infiltrator's Key (create opening)\"]\r\n\t\t],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"dagger\",\r\n\t\t\tregExpSearch : /infiltrator's key|key of the infiltrator/i,\r\n\t\t\tname : \"Infiltrator's Key\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdescription : \"Finesse, light, thrown; Returns when thrown\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\", \"dimension door\", \"gaseous form\", \"mislead\"],\r\n\t\t\tselection : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\", \"dimension door\", \"gaseous form\", \"mislead\"],\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 7\r\n\t\t}],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Infiltrator's Key (create opening)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_StormgirdleFullDescription = [\r\n\t\"A Stormgirdle is a wide belt made of thick leather branded with the symbol of Kord. The girdle's clasps are made from dragon ivory.\",\r\n\t\">>Dormant<<. While wearing the Stormgirdle in its dormant state, you have resistance to lightning damage and thunder damage, and your Strength score becomes 21 if it isn't already 21 or higher. In addition, you can use an action to become a Storm Avatar for 1 minute, gaining the following benefits for the duration:\",\r\n\t\"\\u2022 You have immunity to lightning damage and thunder damage.\",\r\n\t\"\\u2022 When you hit with a weapon attack that normally deals bludgeoning damage, it deals thunder damage instead. When you hit with a weapon attack that normally deals piercing or slashing damage, it deals lightning damage instead.\",\r\n\t\"\\u2022 As a bonus action, you can choose one creature you can see within 30 feet of you to be struck by lightning. The target must make a DC 15 Dexterity saving throw, taking 3d6 lightning damage on a failed save, or half as much damage on a successful one.\",\r\n\t\"Once you use the girdle's Storm Avatar property, that property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. While wearing the Stormgirdle in its awakened state, you gain the following benefits:\",\r\n\t\"\\u2022 Your Strength score becomes 23 if it isn't already 23 or higher.\",\r\n\t\"\\u2022 Your Storm Avatar's lightning strike deals 4d6 lightning damage (instead of 3d6).\",\r\n\t\"\\u2022 While transformed into a Storm Avatar, you gain a flying speed of 30 feet and can hover.\",\r\n\t\">>Exalted<<. While wearing the Stormgirdle in its exalted state, you gain the following benefits:\",\r\n\t\"\\u2022 Your Strength score becomes 25 if it isn't already 25 or higher.\",\r\n\t\"\\u2022 Your Storm Avatar's lightning strike deals 5d6 lightning damage (instead of 3d6).\",\r\n\t\"\\u2022 You can cast the control weather spell from the girdle. This property can't be used again until the next dawn.\"\r\n];\r\nMagicItemsList[\"stormgirdle\"] = {\r\n\tname : \"Stormgirdle\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"A wide belt of leather branded with the symbol of Kord. While attuned to and wearing this belt, I am resistant to lightning and thunder damage. My Strength score becomes 21, provided my Strength is not already 21 or higher. As an action, I can become a Storm Avatar for 1 minute. See notes page for more info.\",\r\n\tdescriptionFull : EGtW_StormgirdleFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_StormgirdleFullDescription)\r\n\t}],\r\n\tdmgres : [\"Lightning\", \"Thunder\"],\r\n\taction : [[\"action\", \" (Storm Avatar)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Storm Girdle (Storm Avatar)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*storm avatar)(?=.*lightning strike).*$/i,\r\n\t\tname : \"Storm Avatar's Lightning Strike\",\r\n\t\tsource : [[\"W\", 273]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [3, 6, \"lightning\"],\r\n\t\trange : '30 ft',\r\n\t\tdescription : \"Bonus action; Dex save, success - half damage\",\r\n\t\tmodifiers : [7, \"\"],\r\n\t\tdc : true,\r\n\t\tstormAvatarLightningStrike : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.stormAvatarLightningStrike && CurrentMagicItems.known.indexOf('stormgirdle') !== -1) {\r\n\t\t\t\t\tvar stormgirdleType = CurrentMagicItems.choices[CurrentMagicItems.known.indexOf('stormgirdle')];\r\n\t\t\t\t\tfields.Damage_Die = (stormgirdleType === \"exalted\" ? 5 : stormgirdleType === \"awakened\" ? 4 : 3) + 'd6';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\",\r\n\t\t\t1\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Stormgirdle [dormant]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 21. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. See Notes page for more information.\",\r\n\t\tscoresOverride : [21, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Stormgirdle [awakened]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 23. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. See Notes page for more information.\",\r\n\t\tscoresOverride : [23, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Stormgirdle [exalted]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 25. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. Once per dawn, I can cast Control Weather. See Notes page for more information.\",\r\n\t\tscoresOverride : [25, 0, 0, 0, 0, 0],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"control weather\"],\r\n\t\t\tselection : [\"control weather\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_VerminshroudFullDescription = [\r\n\t\"This patchy cloak was pieced together from the pelts of rats found feasting on the dead in Blightshore and is dotted with the bloated corpses of magically preserved insects along its seams.\",\r\n\t\">>Dormant<<. While wearing the Verminshroud in its dormant state, you gain the following benefits:\",\r\n\t\"\\u2022 You have advantage on Wisdom (Perception) checks that rely on smell, you are immune to disease, and you have darkvision out to a range of 60 feet. If you already have darkvision, wearing the cloak increases the range of your darkvision by 60 feet.\",\r\n\t\"\\u2022 As an action, you can use the Verminshroud to cast polymorph on yourself, transforming into a giant rat or rat while retaining your Intelligence, Wisdom, and Charisma scores, as well as the properties of the cloak. This property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. While wearing the Verminshroud in its awakened state, you gain the following benefits:\",\r\n\t\"\\u2022 You have resistance to poison damage.\",\r\n\t\"\\u2022 You can use an action to cast the insect plague spell (save DC 15) from the Verminshroud, requiring no material components. This property can't be used again until the next dawn.\",\r\n\t\"\\u2022 When you cast the polymorph spell using the Verminshroud, you can transform into a giant wasp.\",\r\n\t\">>Exalted<<. While wearing the Verminshroud in its exalted state, you gain the following benefits:\",\r\n\t\"\\u2022 You gain a climbing speed equal to your walking speed.\",\r\n\t\"\\u2022 Your teeth become razor-sharp natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal piercing damage equal to 1d6 + your Strength modifier, instead of the bludgeoning damage normal for an unarmed strike. You can make this attack as a bonus action. When you bite a creature and deal damage to it, the creature must succeed on a DC 17 Constitution saving throw or be poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the condition on itself on a success.\",\r\n\t\"\\u2022 When you cast the polymorph spell using the Verminshroud, you can transform into a giant scorpion.\"\r\n];\r\nMagicItemsList[\"verminshroud\"] = {\r\n\tname : \"Verminshroud\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This patchy cloak was pieced together from the pelts of rats found feasting on the dead in Blightshore and is dotted with the bloated corpses of magically preserved insects along its seams. See notes page for more info.\",\r\n\tdescriptionFull : EGtW_VerminshroudFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_VerminshroudFullDescription)\r\n\t}],\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"], [\"Adv. on Perception check that rely on smell\", 0]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Verminshroud (Polymorph)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Verminshroud [dormant]\",\r\n\t\tdescription : \"This patchy cloak of rat pelts grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, and advantage on Perception checks that rely on smell. Once per dawn, I can use it to cast Polymorph on myself to become a rat or a giant rat, but I retain my Int, Wis, and Cha, as well as the benefits of this cloak.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\"],\r\n\t\t\tselection : [\"polymorph\"],\r\n\t\t\tfirstCol : \"oncelr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat or giant rat; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat or giant rat, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Verminshroud [awakened]\",\r\n\t\tdescription : \"This patchy cloak of rat pelts grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, adv. on Perception checks that rely on smell, and resistance to poison. Once per dawn, I can use it to cast Polymorph on myself to become a rat, giant rat, or giant wasp. I can cast Insect Plague. See Notes page\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Verminshroud (Insect Plague)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus :[{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\", \"insect plague\"],\r\n\t\t\tselection : [\"polymorph\", \"insect plague\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat, giant rat, or giant wasp; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat, giant rat, or giant wasp, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Verminshroud [exalted]\",\r\n\t\tdescription : \"This patchy cloak grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, adv. on Perception checks that rely on smell, resistance to poison, and a climbing speed. Once per dawn, I can use it to cast Polymorph on myself to become a rat, giant rat, giant wasp, or giant scorpion. See Notes page.\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Verminshroud (Insect Plague)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\", \"insect plague\"],\r\n\t\t\tselection : [\"polymorph\", \"insect plague\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat, giant rat, giant wasp, or giant scorpion; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat, giant rat, giant wasp, or giant scorpion, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } },\r\n\t\taction : [[\"bonus action\", \"Verminshroud: Bite\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*verminshroud)(?=.*bite).*$/i,\r\n\t\t\tname : \"Verminshroud: Bite\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Bonus action; DC17 Con save or poisoned 1 min, repeat save end of their turns\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_WreathPrismFullDescription = [\r\n\t\"This loop of golden thorns is inset with dozens of gems representing the five colors of Tiamat.\",\r\n\t\">>Dormant<<. While wearing the wreath in its dormant state, you have darkvision out to a range of 60 feet. If you already have darkvision, wearing the wreath increases the range of your darkvision by 60 feet.\",\r\n\t\"When you hit a beast, dragon, or monstrosity of challenge rating 5 or lower with an attack, or when you grapple it, you can use the wreath to cast dominate monster on the creature (save DC 13). On a successful save, the target is immune to the power of the wreath for 24 hours. On a failure, a shimmering, golden image of the wreath appears as a collar around the target's neck or as a crown on its head (your choice) until it is no longer charmed by the spell. If you use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by you.\",\r\n\t\">>Awakened<<. Once the Wreath of the Prism reaches an awakened state, it gains the following benefits:\",\r\n\t\"\\u2022 You can affect creatures of challenge rating 10 or lower with the wreath.\",\r\n\t\"\\u2022 The save DC of the wreath's spell increases to 15.\",\r\n\t\">>Exalted<<. Once the Wreath of the Prism reaches an exalted state, it gains the following benefits:\",\r\n\t\"\\u2022 You can affect creatures of challenge rating 15 or lower with the wreath.\",\r\n\t\"\\u2022 The save DC of the wreath's spell increases to 17.\"\r\n];\r\nMagicItemsList[\"wreath of the prism\"] = {\r\n\tname : \"Wreath of the Prism\",\r\n\tsource : [[\"W\", 274]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision to 60 ft, or extend my darkvision by 60 ft. When I hit a beast, dragon, or monstrosity with an attack, I can cast dominate monster on that creature, depending on its CR. See notes page for info.\",\r\n\tdescriptionFull : EGtW_WreathPrismFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_WreathPrismFullDescription)\r\n\t}],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Wreath of the Prism [dormant]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 5 or lower with an attack, I can cast dominate monster on that creature (save DC 13). See notes page for more information.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 5 or lower, DC 13\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 5 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 5 when I hit it with an attack (save DC 13). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Wreath of the Prism [awakened]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 10 or lower with an attack, I can cast dominate monster on that creature (save DC 15). See notes page for more information.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 10 or lower, DC 15\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 10 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 10 when I hit it with an attack (save DC 15). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Wreath of the Prism [exalted]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 15 or lower with an attack, I can cast dominate monster on that creature (save DC 17). See notes page for more information.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 15 or lower, DC 17\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 15 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 15 when I hit it with an attack (save DC 17). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n/* Supernatural gift\r\n\r\nMagicItemsList[\"hollow one\"] = {\r\n\tname : \"Hollow One\",\r\n\tsource : [[\"W\", 182]],\r\n\ttype : \"supernatural gift\",\r\n\trarity : \"\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I don't age and aging effects don't work on me. When I roll a 16 or higher on a death save, I regain 1 HP. I register as undead for spells and other effects. As an action once per long rest, I can unsettle a creature I can see within 15 ft, giving it disadv. on the next save it makes in the next minute (frightening effect).\",\r\n\tdescriptionLong : \"The void left behind by my departed soul is filled with the strange magic of Blightshore.\\nI don't age and aging effects don't work on me. When I roll a 16 or higher on a death save, I regain 1 HP. Although my creature type is unchanged, I register as undead for spells and other effects. As an action once per long rest, I can unsettle a creature I can see within 15 ft, giving it disadvantage on the next save it makes in the next minute. Constructs, undead, and creatures that can't be frightened are immune to this feature.\",\r\n\tdescriptionFull : \"As a Hollow One, the void left behind by your departed soul is filled with the strange magic of Blightshore. Becoming a Hollow One is a supernatural gift that bestows upon you the following traits.\\n\"+\r\n\ttoUni(\"Ageless\") + \". You don't age, and effects that would cause you to age don't work on you.\\n\"+\r\n\ttoUni(\"Cling to Life\") + \". When you make a death saving throw and roll 16 or higher, you regain 1 hit point.\\n\"+\r\n\ttoUni(\"Revenance\") + \". You retain your creature type, yet you register as undead to spells and other effects that detect the presence of the undead creature type.\\n\"+\r\n\ttoUni(\"Unsettling Presence\") + \". As an action, you can unsettle a creature you can see within 15 feet of you. The target has disadvantage on the next saving throw it makes within the next minute. Constructs, undead, and creatures that can't be frightened are immune to this feature. Once you use this feature, you can't use it again until you finish a long rest.\",\r\n\tsavetxt : { text : [\"Can't be aged\", \"Regain 1 HP on 16+ death save\"] },\r\n\taction : [[\"action\", \"Unsettling Presence\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Unsettling Presence\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"hollow one\"] = MagicItemsList[\"hollow one\"];\r\n\r\n*/\n// pub_20200721_MOT.js\r\n// This file adds the content from Mythic Odysseys of Theros to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.MOT = {\r\n\tname : \"Mythic Odysseys of Theros\",\r\n\tabbreviation : \"MOT\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://dnd.wizards.com/products/mythic-odysseys-theros\",\r\n\tdate : \"2020/07/21\"\r\n};\r\n\r\nRaceList[\"leonin\"] = { // includes contributions by BraabHimself\r\n\tregExpSearch : /leonin/i,\r\n\tname : \"Leonin\",\r\n\tsource : [[\"MOT\", 20]],\r\n\tplural : \"Leonin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tskillstxt : \"Choose one from Athletics, Intimidation, Perception, or Survival\",\r\n\tlanguageProfs : [\"Common\", \"Leonin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(leonin|\\bcats?\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Leonin Claws\",\r\n\t\tsource : [[\"MoT\", 21]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tabilitySave : 3,\r\n\tage : \" mature and age at about the same rate as humans\",\r\n\theight : \" are typically over 6 feet tall, with some standing over 7 feet (5'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 250 lb (180 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are typically over 1,8 metres tall, with some standing over 2,1 metres (167 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 120 kg (80 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"daunting roar\" : {\r\n\t\t\tname : \"Daunting Roar\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Leonin (+2 Constitution +1 Strength)\" + desc([\r\n\t\t\"Claws: I can use my claws to make unarmed strikes that deal 1d4 slashing damage.\",\r\n\t\t\"Daunting Roar: As a bonus action once per short rest, I can let out a menacing roar. Creatures of my choice within 10 ft of me that can hear me must make a Wisdom saving throw (DC 8 + Constitution modifier + Proficiency Bonus) or become frightened of me until the end of my next turn.\",\r\n\t\t\"Hunter's Instincts: I'm proficient in either Athletics, Intimidation, Perception, or Survival.\"\r\n\t])\r\n};\r\nRaceList[\"satyr\"] = { // includes contributions by BraabHimself\r\n\tregExpSearch : /satyr|goat\\s*(wo)?man/i,\r\n\tname : \"Satyr\",\r\n\tsource : [[\"MOT\", 24]],\r\n\tplural : \"Satyr\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"magic\"] },\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(satyr|\\bram\\b))(?=.*headbutt).*$/i,\r\n\t\tname : \"Satyr Headbutt\",\r\n\t\tsource : [[\"MOT\", 25]],\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tage : \" mature and age at about the same rate as humans\",\r\n\theight : \" range from just under 5 feet to about 6 feet in height, with generally slender builds (4'8\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 145 lbs (100 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from just under 1,5 metres to about 1,8 metres in height, with generally slender builds (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 66 kg (45 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\tskills : [\"Performance\", \"Persuasion\"],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\ttrait : \"Satyr (+1 Dexterity, +2 Charisma)\" + desc([\r\n\t\t\"Fey: My creature type is fey, rather than humanoid.\",\r\n\t\t\"Ram: I can use my head for unarmed strikes that deal 1d4 bludgeoning damage.\",\r\n\t\t\"Magic Resistance: I have advantage on saves against spells and other magical effects.\",\r\n\t\t\"Mirthful Leaps: Whenever I make a long or high jump, I can roll a d8 and add the number rolled to the number of feet I cover, even when making a standing jump. This extra distance costs movement as normal.\"\r\n\t])\r\n};\r\n// Subclasses (but add TCoE as main source, because it is more likely to be available at a table)\r\nAddSubClass(\"bard\", \"college of eloquence\", { // includes contributions by /u/Holynight6\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\r\n\tsubname : \"College of Eloquence\",\r\n\tsubnameShort: \"Eloquence\",\r\n\tsource : [[\"T\", 29], [\"MOT\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Silver Tongue\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make a Persuasion or Deception check, I can treat a roll of 9 or lower as a 10\")\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Unsettling Words\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I expend a Bardic Inspiration use & choose a target I can see in 60 ft\",\r\n\t\t\t\t\"It subtracts my inspiration die from the next save it makes before my next turn starts\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Unfailing Inspiration\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When a creature adds my Bardic Inspiration die to a roll but fails, they can keep the die\")\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Universal Speech\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can choose up to my Charisma modifier (min 1) creatures within 60 ft\",\r\n\t\t\t\t\"Those creatures magically understand any language I speak for an hour\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Infectious Inspiration\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature uses my inspiration die and succeeds, I can inspire another\",\r\n\t\t\t\t\"I give a creature within 60 ft that can hear me an inspiration die without expending any\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of glory\", { // includes contributions by BraabHimself\r\n\tregExpSearch : /^(((?=.*glory)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Glory\",\r\n\tsubnameShort: \"Glory\",\r\n\tsource : [[\"T\", 53], [\"MOT\", 29]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Peerless Athlete\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can get adv. on Str (Athletics) \\u0026 Dex (Acrobatics) checks for 10 min\",\r\n\t\t\t\t\"In that time, I also add +10 ft to jumps, and double what I can carry, push, drag, \\u0026 lift\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"guiding bolt\", \"heroism\", \"enhance ability\", \"magic weapon\", \"haste\", \"protection from energy\", \"compulsion\", \"freedom of movement\", \"commune\", \"flame strike\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Inspiring Smite\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action after dealing damage with Divine Smite, I can grant temporary HP\",\r\n\t\t\t\t\"I distribute the temporary HP how I choose across creatures within 30 ft, including me\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"2d8 + \" + n + \" temporary HP\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Alacrity\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, allies starting their turn in range gain bonus speed for that turn\"),\r\n\t\t\tspeed : { walk : { spd : \"+10\", enc : \"+10\" } },\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 7 ? \"\" : (n < 18 ? 5 : 10) + \"-foot aura; +10 ft walking speed\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Glorious Defense\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another in 10 ft is hit with an attack roll, I can grant bonus AC\",\r\n\t\t\t\t\"I must be able to see the attacker; I add my Cha mod (min 1) to the AC for that attack\",\r\n\t\t\t\t\"If it misses, I can do a weapon attack vs. the attacker, if in reach, as part of this reaction\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Living Legend\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can empower myself with legends, gaining the following for 1 min:\",\r\n\t\t\t\t\" \\u2022 My otherworldly presence grants me advantage on Charisma checks\",\r\n\t\t\t\t\" \\u2022 Once on each of my turns when I miss with a weapon attack, I can have it hit instead\",\r\n\t\t\t\t\" \\u2022 As a reaction when I fail a saving throw, I can reroll it, but must use the new roll\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 5+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Background\r\nBackgroundList[\"athlete\"] = { // includes contributions by Smashman\r\n\tregExpSearch : /athlete/i,\r\n\tname : \"Athlete\",\r\n\tsource : [[\"MOT\", 31]],\r\n\tskills : [\"Acrobatics\", \"Athletics\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [\"Vehicles (land)\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"A bronze discus or leather ball\", \"\", \"\"],\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"A lucky charm or past trophy\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Echoes of Victory\",\r\n\ttrait : [\r\n\t\t\"I feel most at peace during physical exertion, be it exercise or battle.\",\r\n\t\t\"I don't like to sit idle.\",\r\n\t\t\"I have a daily exercise routine that I refuse to break.\",\r\n\t\t\"Obstacles exist to be overcome.\",\r\n\t\t\"When I see others struggling, I offer to help.\",\r\n\t\t\"I love to trade banter and gibes.\",\r\n\t\t\"Anything worth doing is worth doing best.\",\r\n\t\t\"I get irritated if people praise someone else and not me.\",\r\n\t],\r\n\tideal : [\r\n\t\t[\"Competition\", \"Competition: I strive to test myself in all things. (Chaotic)\"],\r\n\t\t[\"Triumph\", \"Triumph: The best part of winning is seeing my rivals brought low. (Evil)\"],\r\n\t\t[\"Camaraderie\", \"Camaraderie: The strongest bonds are forged through struggle. (Good)\"],\r\n\t\t[\"People\", \"People: I strive to inspire my spectators. (Neutral)\"],\r\n\t\t[\"Tradition\", \"Tradition: Every game has rules, and the playing field must be level. (Lawful)\"],\r\n\t\t[\"Growth\", \"Growth: Lessons hide in victory and defeat. (Any)\"],\r\n\t],\r\n\tbond : [\r\n\t\t\"My teammates are my family.\",\r\n\t\t\"I will overcome a rival and prove myself their better.\",\r\n\t\t\"My mistake got someone hurt. I'll never make that mistake again.\",\r\n\t\t\"I will be the best for the honor and glory of my home.\",\r\n\t\t\"The person who trained me is the most important person in my world.\",\r\n\t\t\"I strive to live up to a specific hero's example.\",\r\n\t],\r\n\tflaw : [\r\n\t\t\"I indulge in a habit that threatens my reputation or my health.\",\r\n\t\t\"I'll do absolutely anything to win.\",\r\n\t\t\"I ignore anyone who doesn't compete and anyone who loses to me.\",\r\n\t\t\"I have lingering pain from old injuries.\",\r\n\t\t\"Any defeat or failure on my part is because my opponent cheated.\",\r\n\t\t\"I must be the captain of any group I join.\",\r\n\t]\r\n};\r\nBackgroundFeatureList[\"echoes of victory\"] = { // includes contributions by Smashman\r\n\tdescription : \"I have attracted admiration among spectators, fellow athletes, and trainers in the region that hosted my past athletic victories. When visiting any settlement within 100 miles of where I grew up, there is a 50 percent change that I can find someone there who admires me and is willing to provide information or temporary shelter.\",\r\n\tsource : [[\"MOT\", 31]]\r\n};\r\n\r\n// Creature: possible familiar\r\nCreatureList[\"anvilwrought raptor\"] = {\r\n\tname : \"Anvilwrought Raptor\",\r\n\tsource : [[\"MOT\", 209]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 18,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [12, 16, 14, 3, 14, 1],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tdamage_immunities : \"fire, poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Darkvision 120 ft; Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands one language of its creator but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Beak\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two beak attacks as an Attack action\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The raptor has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}, {\r\n\t\tname : \"Recorded Mimicry\",\r\n\t\tdescription : \"The raptor can mimic any sound, including voices, it has heard in the last 24 hours. A creature that hears the sounds can tell they are imitations with a successful DC 12 Wisdom (Insight) check.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the raptor can make two Beak attacks.\"\r\n\t}],\r\n\tvariant : [{\r\n\t\tname : \"Variant: Familiar\",\r\n\t\tdescription : \"The anvilwrought can serve another creature as a familiar, forming a magical, telepathic bond with its willing master. While the two are bonded, the master can sense what the anvilwrought senses, as long as they are within 1 mile of each other.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items (each contain contributions by BraabHimself)\r\nMagicItemsList[\"flying chariot\"] = {\r\n\tname : \"Flying Chariot\",\r\n\tsource : [[\"MOT\", 196]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I gain +1 AC while riding this chariot, as do any passengers and the creatures pulling it. If this chariot is pulled by one or more flying creatures, they too can fly.\\n(The AC bonus is not added to the automation, as it is too situational.)\",\r\n\tdescriptionFull : \"The chariot's riders and creatures pulling the chariot gain a + 1 bonus to their AC.\"+\r\n\t\"\\n   If this magic chariot is pulled by one or more flying creatures, it too can fly.\",\r\n\tweight : 100\r\n};\r\nMagicItemsList[\"helm of the gods\"] = {\r\n\tname : \"Helm of the Gods\",\r\n\tsource : [[\"MOT\", 196]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing this helm, I know the location of all celestials and fiends within 30 ft, provided they aren't behind total cover. The helm has 3 charges, regaining 1d3 charges at dawn. I can use 1 charge to cast the spell stored in the helm (DC 13). After I finish a long rest, I can pray to a god to change the stored spell.\",\r\n\tdescriptionLong : \"While wearing this helm, I know the location of all celestials/fiends within 30 ft not behind total cover. The helm has 3 charges, regaining 1d3 at dawn. I can use 1 charge to cast the spell stored in it (DC 13). After a long rest, I can pray to a god to change the stored spell: Athreos: Protection from Evil/Good, Ephara: Sanctuary, Erebos: Inflict Wounds, Heliod: Guiding Bolt, Iroas: Heroism, Karametra: Goodberry, Keranos: Thunderous Smite, Klothys: Entangle, Kruphix: Dissonant Whispers, Mogis: Hellish Rebuke, Nylea: Faerie Fire, Pharika: Lesser Restoration, Phenax: Charm Person, Purphoros: Searing Smite, Thassa: Identify\",\r\n\tdescriptionFull : \"While wearing this helm, you know whether there is a celestial or fiend within 30 feet of you, as well as where the creature is located, provided the creature isn't behind total cover.\"+\r\n\t\"\\n   Whenever you finish a long rest while wearing the helm, you can pray to one of the gods listed on the Helm of the Gods table and store the listed spell in the helm, replacing any spell that is already stored there. The save DC for the spell is 13.\"+\r\n\t\"\\n   The helm has 3 charges. To cast a spell from the helm, you must expend 1 charge, and the helm regains 1d3 charges daily at dawn.\"+\r\n\ttoUni(\"\\n God\\t\\tSpell\")+\r\n\t\"\\n Athreos\\t\\tprotection from evil and good\"+\r\n\t\"\\n Ephara\\t\\tsanctuary\"+\r\n\t\"\\n Erebos\\t\\tinflict wounds\"+\r\n\t\"\\n Heliod\\t\\tguiding bolt\"+\r\n\t\"\\n Iroas\\t\\theroism\"+\r\n\t\"\\n Karametra\\tgoodberry\"+\r\n\t\"\\n Keranos\\t\\tthunderous smite\"+\r\n\t\"\\n Klothys\\t\\tentagle\"+\r\n\t\"\\n Kruphix\\t\\tdissonant whispers\"+\r\n\t\"\\n Mogis\\t\\thellish rebuke\"+\r\n\t\"\\n Nylea\\t\\tfaerie fire\"+\r\n\t\"\\n Pharika\\t\\tlesser restoration\"+\r\n\t\"\\n Phenax\\t\\tcharm person\"+\r\n\t\"\\n Purphoros\\tsearing smite\"+\r\n\t\"\\n Thassa\\t\\tidentify\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tfixedDC : 13,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Athreos\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Ephara\",\r\n\t\tspells : [\"sanctuary\"],\r\n\t\tselection : [\"sanctuary\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Erebos\",\r\n\t\tspells : [\"inflict wounds\"],\r\n\t\tselection : [\"inflict wounds\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Heliod\",\r\n\t\tspells : [\"guiding bolt\"],\r\n\t\tselection : [\"guiding bolt\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Iroas\",\r\n\t\tspells : [\"heroism\"],\r\n\t\tselection : [\"heroism\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Karametra\",\r\n\t\tspells : [\"goodberry\"],\r\n\t\tselection : [\"goodberry\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Keranos\",\r\n\t\tspells : [\"thunderous smite\"],\r\n\t\tselection : [\"thunderous smite\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Klothys\",\r\n\t\tspells : [\"entangle\"],\r\n\t\tselection : [\"entangle\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Kruphix\",\r\n\t\tspells : [\"dissonant whispers\"],\r\n\t\tselection : [\"dissonant whispers\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Mogis\",\r\n\t\tspells : [\"hellish rebuke\"],\r\n\t\tselection : [\"hellish rebuke\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Nylea\",\r\n\t\tspells : [\"faerie fire\"],\r\n\t\tselection : [\"faerie fire\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Pharika\",\r\n\t\tspells : [\"lesser restoration\"],\r\n\t\tselection : [\"lesser restoration\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Phenax\",\r\n\t\tspells : [\"charm person\"],\r\n\t\tselection : [\"charm person\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Purphoros\",\r\n\t\tspells : [\"searing smite\"],\r\n\t\tselection : [\"searing smite\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Thassa\",\r\n\t\tspells : [\"identify\"],\r\n\t\tselection : [\"identify\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"protection from evil and good\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Athreos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"sanctuary\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Ephara after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"inflict wounds\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Erebos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"guiding bolt\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Heliod after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"heroism\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Iroas after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"goodberry\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Karametra after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"thunderous smite\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Keranos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"entangle\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Klothys after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"dissonant whispers\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Kruphix after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"hellish rebuke\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Mogis after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"faerie fire\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Nylea after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Pharika after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"charm person\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Phenax after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"searing smite\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Purphoros after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"identify\" : {\r\n\t\t\tritual : false,\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Thassa after a long rest and expend 1 charge.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"molten bronze skin\"] = {\r\n\tname : \"Molten Bronze Skin\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"armor (breastplate, half plate, or plate)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. This armor can't be removed unless I choose to do so. It grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\tdescriptionFull : \"This magical armor appears as a jug of molten bronze. When you attune to it, the bronze adheres and contours to your skin. The armor can be worn under normal clothes, but it doesn't impede bodily functions. Once you put it on, it can't be removed unless you choose to do so.\"+\r\n\t\"\\n   While wearing the armor, you have resistance to fire damage. The armor also doesn't impose disadvantage on Dexterity (Stealth) checks.\",\r\n\tdmgres : [\"Fire\"],\r\n\tchoices : [\"Breastplate\", \"Half Plate\", \"Plate\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"breastplate\" : {\r\n\t\tdescription : \"This breastplate appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : 14,\r\n\t\t\tweight : 20,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"half plate\" : {\r\n\t\tdescription : \"This half plate armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : 15,\r\n\t\t\tweight : 40,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"plate\" : {\r\n\t\tdescription : \"This plate armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"heavy\",\r\n\t\t\tac : 18,\r\n\t\t\tweight : 65,\r\n\t\t\tstrReq : 15,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nMagicItemsList[\"potion of aqueous form\"] = {\r\n\tname : \"Potion of Aqueous Form\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion turns into a pool of water and gains several benefits and limitations while in this form. They revert back to their true form after 10 minutes, if they become incapacitated, or if they die. See Notes page.\",\r\n\tdescriptionFull : \"When you drink this potion, you transform into a pool of water. You return to your true form after 10 minutes or if you are incapacitated or die.\"+\r\n\t\"\\n   You're under the following effects while in this form:\"+\r\n\t\"\\n\\n\" + toUni(\"Liquid Movement\") + \". You have a swimming speed of 30 feet. You can move over or through other liquids. You can enter and occupy the space of another creature. You can rise up to your normal height, and you can pass through even Tiny openings. You extinguish nonmagical flames in any space you enter.\"+\r\n\t\"\\n\\n\" + toUni(\"Watery Resilience\") + \". You have resistance to nonmagical damage. You also have advantage on Strength, Dexterity, and Constitution saving throws.\"+\r\n\t\"\\n\\n\" + toUni(\"Limitations\") + \". You can't talk, attack, cast spells, or activate magic items. Any objects you were carrying or wearing meld into your new form and are inaccessible, though you continue to be affected by anything you're wearing, such as armor.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tpopupName : \"Potion of Aqueous Form Effects\",\r\n\t\tnote : [\r\n\t\t\t\"The consumer of the potion is under the following effects:\",\r\n\t\t\t\"\\u2022 They have a swimming speed of 30 ft\",\r\n\t\t\t\"\\u2022 They can move over or through other liquids\",\r\n\t\t\t\"\\u2022 They can enter and occupy the space of another creature\",\r\n\t\t\t\"\\u2022 They can rise up to their normal height and pass through tiny openings\",\r\n\t\t\t\"\\u2022 They extinguish nonmagical flames in any space they enter\",\r\n\t\t\t\"\\u2022 They have resistance to nonmagical damage\",\r\n\t\t\t\"\\u2022 They have advantage on Strength, Dexterity, and Constitution saving throws\",\r\n\t\t\t\"\\u2022 They can't talk, attack, cast spells, or activate magic items\",\r\n\t\t\t\"\\u2022 Their equipment merges into their new form, but still gain their benefits\"\r\n\t\t]\r\n\t}],\r\n\tweight : 0.5\r\n};\r\nvar MOT_PyxisOfPandemoniumFullDescription = [\r\n\t\"A creature that touches this ornate wooden vessel for 1 minute gains the benefits of a short rest. That creature also gains the effects of the bless spell until the creature finishes a short or long rest. The creature can't gain these benefits again until it finishes a long rest.\",\r\n\t\"If the vessel is opened, roll on the Pyxis of Pandemonium table to determine what happens. Any spells cast by the vessel have a spell save DC of 17. One minute after the vessel is opened, it disappears. It reappears, sealed, in a random location on the same plane of existence 24 hours later.\",\r\n\t\">>Curse<<. Any creature that gains the benefit of a short rest from the vessel hears cloying telepathic whispers emanating it. That creature must make a DC 17 Wisdom saving throw. On a failed save, the creature is charmed by the vessel for 1 hour. The charmed creature does everything it can to open the vessel as soon as possible. On a successful save, the creature is immune to the vessel's whispers for 24 hours.\\n\",\r\n\ttoUni(\"d8\\tCalamity\"),\r\n\t\" 1\\t>>Androphagia<<. Each creature within 60 feet of the vessel must succeed on a DC 17 Wisdom saving throw or go berserk for l minute. The berserk creature must begin its turn using the Attack action to make one melee or ranged attack (its choice) against the creature nearest to it. The berserk creature can repeat the save at the end of its turn, ending the effect on itself on a success.\",\r\n\t\" 2\\t>>Bile Blight<<. The vessel casts the harm spell on each creature within 30 feet of it.\",\r\n\t\" 3\\t>>Flood<<. The vessel casts the tsunami spell at a point of the DM's choice within 120 feet of it.\",\r\n\t\" 4\\t>>Medusa's Gaze<<. The vessel casts the flesh to stone spell on each creature within 30 feet of it.\",\r\n\t\" 5\\t>>Labyrinth<<. The vessel casts the maze spell on each creature within 30 feet of it.\",\r\n\t\" 6\\t>>Nightmare<<. Tendrils of shadow seep from the vessel and form into 1d4 shadow demons (see the Monster Manual for their stat block), which appear in unoccupied spaces within 30 feet of it and are hostile.\",\r\n\t\" 7\\t>>Swarming Insects<<. The vessel casts the insect plague spell, centered on itself and with a radius of 30 feet.\",\r\n\t\" 8\\t>>Unbridled Revel<<. The vessel casts the Otto's irresistible dance spell on each creature within 30 feet of it.\"\r\n];\r\nMagicItemsList[\"pyxis of pandemonium\"] = {\r\n\tname : \"Pyxis of Pandemonium\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once per long rest, I gain the benefits of a short rest by touching this ornate vessel for 1 minute. I also gain the benefit of Bless until I finish my next rest. After benefiting from this vessel, I have to make a DC 17 Wis save or become charmed by the vessel for 1 hour. If charmed, I must do everything to open it. See Notes.\",\r\n\tdescriptionLong : \"Once per long rest, I can touch this ornate wooden vessel for 1 minute to gain the benefits of a short rest. I then also gain the benefit of the Bless spell until I finish my next rest. After I gain the benefits of a short rest from this vessel, I must make a DC 17 Wisdom save or become charmed by it for 1 hour. On a success, I am immune to its charm for 24 hours. If charmed, I will do everything I can to open the vessel as soon as possible. Once opened, the vessel causes a random effect to occur, then it disappears after 1 minute and reappears, sealed, in random location on the same plane. See Notes.\",\r\n\tdescriptionFull : MOT_PyxisOfPandemoniumFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tsource : [[\"MOT\", 197]],\r\n\t\tnote : desc(MOT_PyxisOfPandemoniumFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n};\r\nMagicItemsList[\"siren song lyre\"] = {\r\n\tname : \"Siren Song Lyre\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can play this lyre and cast one of the following spells from it: Animal Friendship, Charm Person, Enthrall, or Suggestion. The DC for these spells is 13. Once I cast a spell, I can't use the lyre to cast that spell again until the next dawn.\",\r\n\tdescriptionFull : \"You can use an action to play this lyre and cast one of the following spells from it: animal friendship, charm person, enthrall, suggestion. If the spell requires a saving throw, the spell save DC is 13.\\n   Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn.\",\r\n\tweight : 2,\r\n\tfixedDC : 13,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Siren's Song Lyre [Animal Friendship]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Charm Person]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Enthrall]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Suggestion]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"animal friendship\", \"charm person\", \"enthrall\", \"suggestion\"],\r\n\t\tselection : [\"animal friendship\", \"charm person\", \"enthrall\", \"suggestion\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 4\r\n\t}]\r\n};\r\nvar MOT_SlingBulletsOfAlthemoneFullDescription = [\r\n\t\"The sling bullets come in a pouch, which contains 1d4 + 4 bullets. Roll on the Magic Sling Bullets table for each bullet to determine its magical property.\",\r\n\t\"You have a +2 bonus to attack and damage rolls made with each of these bullets. If a bullet misses its target, the bullet teleports back into the pouch. Once a bullet hits a target, the bullet loses its magic.\\n\",\r\n\t\">>d4  Bullet<<\",\r\n\t\"1   >>Banishment<<. A creature that takes damage from this bullet must succeed on a DC 15 Charisma saving throw or be banished as though affected by the banishment spell.\",\r\n\t\"2   >>Fulguration<<. On a hit, this bullet deals an extra 2d8 lightning damage to its target. All other creatures within 10 feet of the target must each succeed on a DC 15 Constitution saving throw or take 1d8 thunder damage.\",\r\n\t\"3   >>Stunning<<. On a hit, this bullet deals an extra ldlO force damage, and the target is stunned until the end of your next turn.\",\r\n\t\"4   >>Tracking<<. A creature that takes damage from this bullet is marked with a glowing rune where the bullet hit. The mark lasts 24 hours. While the creature is marked, you always know the direction to it.\",\r\n];\r\nMagicItemsList[\"sling bullets of althemone\"] = {\r\n\tname : \"Sling Bullets of Althemone\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"weapon (sling bullet)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"These bullets come in a pouch containing 1d4 + 4 bullets. Attacks made with these sling bullets add +2 to hit and damage. If a bullet misses, it teleports back to its pouch. On a hit, the bullet's effect happens and the bullet loses its magic. I roll on the table to determine each bullet's magical effect, see Notes.\",\r\n\tdescriptionFull : MOT_SlingBulletsOfAlthemoneFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"sling\" && (/althemone/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Bullets return on a miss, special effect on hit';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Althemone\" in the name of a sling, it will be treated as using the Sling Bullets of Althemone. It has +2 to hit and damage, bullets return on a miss, and cause a magical effect on a hit.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName == \"sling\" && (/althemone/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Magic Sling Bullets Table\",\r\n\t\tsource : [[\"MOT\", 198]],\r\n\t\tnote : desc(MOT_SlingBulletsOfAlthemoneFullDescription.slice(2)).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/\\byou\\b/ig, \"I\").replace(/your/g, \"my\")\r\n\t}],\r\n\tweight : 1.5 // assuming an averyage of 6,5 bullets (0.4875) and a pouch (1)\r\n};\r\nMagicItemsList[\"two-birds sling\"] = {\r\n\tname : \"Two-Birds Sling\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"weapon (sling)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sling adds +1 to hit and damage rolls made with it. On a hit, I can cause the ammunition to ricochet towards a second target within 10 ft of the first, rolling a ranged attack against the second target as well.\",\r\n\tdescriptionFull : \"You have a +l bonus to attack and damage rolls made with this weapon.\"+\r\n\t\"\\n   When you make a ranged attack with this sling and hit a target, you can cause the ammunition to ricochet toward a second target within 10 feet of the first, and then make a ranged attack against the second target.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"sling\",\r\n\t\tregExpSearch : /^(?=.*two-birds)(?=.*sling).*$/i,\r\n\t\tname : \"Two-Birds Sling\",\r\n\t\tsource : [[\"MOT\", 198]],\r\n\t\tdescription : \"Ammunition; On hit ricochet to another in 10 ft\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\n\n// pub_20200915_RotF.js\n// This file adds the content from the Icewind Dale: Rime of the Frostmaiden adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"RotF\"] = {\n\tname : \"Icewind Dale: Rime of the Frostmaiden [creatures, items, spells]\",\n\tabbreviation : \"RotF\",\n\tabbreviationSpellsheet : \"RF\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dnd.wizards.com/products/icewind-dale-rime-frostmaiden\",\n\tdate : \"2020/09/15\"\n};\n\n// Winter Survival Gear (contains contributions by Nod_Hero on Discord)\nGearList[\"cold weather\"] = {\n\tinfoname : \"Cold Weather [10 gp]\",\n\tname : \"Cold weather clothes\",\n\tsource : [[\"RotF\", 20]],\n\tamount : \"\",\n\tweight : 5,\n\ttype : \"clothes\"\n};\nGearList[\"crampons (2)\"] = {\n\tinfoname : \"Crampons (2) [2 gp]\",\n\tname : \"Crampons\",\n\tsource : [[\"RotF\", 20]],\n\tamount : 2,\n\tweight : 0.125\n};    \nGearList[\"snowshoes\"] = {\n\tinfoname : \"Snowshoes [2 gp]\",\n\tname : \"Snowshoes\",\n\tsource : [[\"RotF\", 20]],\n\tamount : \"\",\n\tweight : 4\n};\n\n// Creatures - new beasts (each contain contributions by BraabHimself)\n// Reindeer is just an elk under a different name and a moose uses the giant goat stat block. They have been added to the SRD code as a `nameAlt`\nCreatureList[\"awakened white moose\"] = {\n\tname : \"Awakened White Moose\",\n\tnameAlt : [\"Moose, Awakened White\"],\n\tsource : [[\"RotF\", 82]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Neutral Evil\",\n\tac : 11,\n\thp : 68,\n\thd : [8, 10],\n\tspeed : \"40 ft\",\n\tscores : [19, 11, 16, 10, 12, 6],\n\tpassivePerception : 11,\n\tlanguages : \"Druidic\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Antlers\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\n\t}, {\n\t\tname : \"Hooves\",\n\t\tability : 1,\n\t\tdamage : [2, 4, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One antlers and one hooves attack as an Attack action\"\n\t}],\n\ttraits : [{\n\t\tname : \"Charge\",\n\t\tdescription : \"If the moose moves at least 20 ft straight toward a target and then hits it with an antlers attack on the same turn, the target takes an extra 9 (2d8) bludgeoning damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be knocked prone.\"\n\t}, {\n\t\tname : \"Sure-Footed\",\n\t\tdescription : \"The moose has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the moose can make one Antlers and one Hooves attack.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Multiattack##. 1 Antlers and 1 Hooves attack.\",\n\t\t\"##Charge##. After moving 20 ft straight toward a target and then hitting it with an antlers attack on the same turn, the target takes an extra 2d8 bludgeoning damage and must make a DC 14 Str save or be knocked prone.\",\n\t\t\"##Sure-Footed##. Advantage on Str and Dex saves against effects that would knock it prone.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"fox\"] = {\n\tname : \"Fox\",\n\tcompanion : \"familiar_not_al\",\n\tsource : [[\"RotF\", 288]],\n\tsize : 5,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 2,\n\thd : [1, 4],\n\tspeed : \"30 ft, burrow 5 ft\",\n\tscores : [2, 16, 11, 3, 12, 6],\n\tskills : {\n\t\t\"perception\" : 3,\n\t\t\"stealth\" : 5\n\t},\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using hearing\",\n\tpassivePerception : 13,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [1, \"\", \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false\n\t}],\n\ttraits : [{\n\t\tname : \"Keen Hearing\",\n\t\tdescription : \"The fox has advantage on Wisdom (Perception) checks that rely on hearing.\"\n\t}]\n};\nCreatureList[\"hare\"] = {\n\tname : \"Hare\",\n\tsource : [[\"RotF\", 294]],\n\tcompanion : \"familiar_not_al\",\n\tsize : 5,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 1,\n\thd : [1, 4],\n\tspeed : \"20 ft, burrow 5 ft\",\n\tscores : [1, 17, 9, 2, 11, 4],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 5\n\t},\n\tpassivePerception : 12,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 0,\n\tattacks : [],\n\ttraits : [{\n\t\tname : \"Escape\",\n\t\tdescription : \"The hare can take the Dash, Disengage, or Hide action as a bonus action on each of its turns.\"\n\t}]\n};\nCreatureList[\"knucklehead trout\"] = {\n\tname : \"Knucklehead Trout\",\n\tsource : [[\"RotF\", 295]],\n\tsize : 4,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 7,\n\thd : [2, 6],\n\tspeed : \"0 ft, swim 30 ft\",\n\tscores : [14, 14, 11, 1, 6, 1],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 8,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}, {\n\t\tname : \"Tail\",\n\t\tability : 1,\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The trout can breathe only underwater.\"\n\t}]\n};\nCreatureList[\"mountain goat\"] = {\n\tname : \"Mountain Goat\",\n\tnameAlt : [\"Goat, Mountain\"],\n\tsource : [[\"RotF\", 304]],\n\tsize : 3,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 11,\n\thp : 13,\n\thd : [2, 8],\n\tspeed : \"40 ft, climb 30 ft\",\n\tscores : [14, 12, 14, 2, 10, 5],\n\tpassivePerception : 10,\n\tchallengeRating : \"1/8\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Ram\",\n\t\tability : 1,\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\n\t}],\n\ttraits : [{\n\t\tname : \"Charge\",\n\t\tdescription : \"If the goat moves at least 20 ft straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 3 (1d6) bludgeoning damage. If the target is a creature, it must succeed on a DC 12 Strength saving throw or be knocked prone.\"\n\t}, {\n\t\tname : \"Sure-Footed\",\n\t\tdescription : \"The goat has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Charge##. After moving 20 ft straight toward a target and then hitting it with a ram attack on the same turn, the target takes an extra 1d6 bludgeoning damage and must make a DC 12 Strength save or be knocked prone.\",\n\t\t\"##Sure-Footed##. Advantage on Strength and Dexterity saves against effects that would knock it prone.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"seal\"] = {\n\tname : \"Seal\",\n\tsource : [[\"RotF\", 308]],\n\tsize : 3,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 11,\n\thp : 9,\n\thd : [2, 8],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [10, 12, 11, 3, 12, 5],\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using smell\",\n\tpassivePerception : 11,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [1, \"\", \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The seal can hold its breath for 15 minutes.\"\n\t}, {\n\t\tname : \"Keen Smell\",\n\t\tdescription : \"The seal has advantage on Wisdom (Perception) checks that rely on smell.\"\n\t}]\n};\nCreatureList[\"sperm whale\"] = {\n\tname : \"Sperm Whale\",\n\tnameAlt : [\"Whale, Sperm\"],\n\tsource : [[\"RotF\", 309]],\n\tsize : 0,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 189,\n\thd : [14, 20],\n\tspeed : \"0 ft, swim 60 ft\",\n\tscores : [26, 8, 17, 3, 12, 5],\n\tsenses : \"Blindsight 120 ft; Adv. on Wis (Perception) checks using hearing\",\n\tpassivePerception : 11,\n\tchallengeRating : \"8\",\n\tproficiencyBonus : 3,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [3, 8, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; See Swallow feature\",\n\t\ttooltip : \"If the target is a Large or smaller creature, it must succeed on a DC 14 Dexterity saving throw or be swallowed by the whale. A swallowed creature has total cover against attacks and other effects outside the whale, and it takes 3 (1d6) acid damage at the start of each of the whale's turns. If the whale takes 30 damage or more on a single turn from a creature inside it, the whale must succeed on a DC 16 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the whale. If the whale dies, a swallowed creature can escape from the corpse by using 20 feet of movement, exiting prone.\"\n\t}, {\n\t\tname : \"Tail\",\n\t\tability : 1,\n\t\tdamage : [3, 6, \"bludgeoning\"],\n\t\trange : \"Melee (15 ft)\",\n\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Double damage vs. objects\",\n\t\ttooltip : \"If the target is an object, the tail attack deal 6d6 + twice the Strength modifier bludgeoning damage.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Swallow\",\n\t\tdescription : \"A Large or smaller creature hit by the whale's bite attack must make a DC 14 Dexterity saving throw or be swallowed whole. A swallowed creature has total cover against attacks and other effects outside the whale, and it takes 3 (1d6) acid damage at the start of each of the whale's turns. If the whale takes 30 damage or more on a single turn from a creature inside it, the whale must succeed on a DC 16 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 ft of the whale. If the whale dies, a swallowed creature can escape from the corpse by using 20 ft of movement, exiting prone.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Echolocation\",\n\t\tdescription : \"The whale can't use its blindsight while deafened.\"\n\t}, {\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The whale can hold its breath for 90 minutes.\"\n\t}, {\n\t\tname : \"Keen Hearing\",\n\t\tdescription : \"The whale has advantage on Wisdom (Perception) checks that rely on hearing.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the whale can make one Bite and one Tail attack.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Senses##. Blindsight 120 ft (unless deafened); Adv. on Wis (Perception) checks using hearing.\",\n\t\t\"##Hold Breath##. Can hold its breath for 90 minutes.\",\n\t\t\"##Swallow##. Large or smaller hit with bite DC 14 Dex save or swallowed. Swallowed: total cover from outside whale, 1d6 acid damage at start of each turn. If whale takes 30 or more damage in a turn from inside, it DC 16 Con save or spit out creature prone in 10 ft at end of turn.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"walrus\"] = {\n\tname : \"Walrus\",\n\tsource : [[\"RotF\", 312]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 9,\n\thp : 22,\n\thd : [3, 10],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [15, 9, 14, 3, 11, 4],\n\tpassivePerception : 10,\n\tchallengeRating : \"1/4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Tusks\",\n\t\tability : 1,\n\t\tdamage : [2, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The walrus can hold its breath for 10 minutes.\"\n\t}]\n};\nCreatureList[\"giant walrus\"] = {\n\tname : \"Giant Walrus\",\n\tnameAlt : [\"Walrus, Giant\"],\n\tsource : [[\"RotF\", 312]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 9,\n\thp : 85,\n\thd : [9, 12],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [22, 9, 16, 3, 11, 4],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 10,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Body Flop\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One body flop and one tusks attack as an Attack action\"\n\t}, {\n\t\tname : \"Tusks\",\n\t\tability : 1,\n\t\tdamage : [3, 6, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One body flop and one tusks attack as an Attack action\"\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The walrus can hold its breath for 30 minutes.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the walrus can make one Body Flop and one Tusks attack.\"\n\t}]\n};\n\n// Creatures - for the Create Magos spell (each contain contributions by BraabHimself)\nCreatureList[\"demos magen\"] = {\n\tname : \"Demos Magen\",\n\tnameAlt : [\"Magen, Demos\"],\n\tsource : [[\"RotF\", 300]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 16,\n\thp : 51,\n\thd : [6, 8],\n\tspeed : \"30 ft\",\n\tscores : [14, 14, 18, 10, 10, 7],\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"understands the languages of its creator but can't speak\",\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Greatsword\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"slashing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Two greatsword attacks as an Attack action\"\n\t}, {\n\t\tname : \"Light Crossbow\",\n\t\tability : 2,\n\t\tdamage : [1, 8, \"piercing\"],\n\t\trange : \"80/320 ft\",\n\t\tdescription : \"\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the magen can make two melee attacks.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}]\n};\nCreatureList[\"galvan magen\"] = {\n\tname : \"Galvan Magen\",\n\tnameAlt : [\"Magen, Galvan\"],\n\tsource : [[\"RotF\", 301]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 68,\n\thd : [8, 8],\n\tspeed : \"30 ft, fly 30 ft (hover)\",\n\tscores : [10, 18, 18, 12, 10, 7],\n\tdamage_immunities : \"lightning, poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"understands the languages of its creator but can't speak\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Shocking Touch\",\n\t\tability : 2,\n\t\tdamage : [1, 6, \"lightning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Two shocking touch attacks as an Attack action; Adv. if target wears metal armor\"\n\t}, {\n\t\tname : \"Static Discharge (Recharge 5-6)\",\n\t\tability : 3,\n\t\tdamage : [4, 10, \"lightning\"],\n\t\trange : \"5-ft \\xD7 30-ft line\",\n\t\tdescription : \"Hits all in area; Dex save, success\\u2015 half damage; Disadv. if wearing metal armor\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\ttooltip : \"The magen discharges a lightning bolt in a 60-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw (with disadvantage if the creature is wearing armor made of metal), taking 22 (4d10) lightning damage on a failed save, or half as much damage on a successful one.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the magen can make two Shocking Touch attacks.\"\n\t}, {\n\t\tname : \"Static Discharge (Recharge 5-6)\",\n\t\tdescription : \"See Attack. The magen discharges a lightning bolt in a 60-ft line that is 5 ft wide. Each creature in that line must make a DC 14 Dexterity saving throw (with disadvantage if the creature is wearing armor made of metal), taking 4d12 lightning damage on a failed save, or half as much damage on a successful one.\"\n\t}]\n};\nCreatureList[\"hypnos magen\"] = {\n\tname : \"Hypnos Magen\",\n\tnameAlt : [\"Magen, Hypnos\"],\n\tsource : [[\"RotF\", 301]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 34,\n\thd : [4, 8],\n\tspeed : \"30 ft\",\n\tscores : [10, 14, 18, 14, 10, 7],\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"telepathy 30 ft, understands the languages of its creator but can't speak\",\n\tchallengeRating : \"1\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Psychic Lash\",\n\t\tability : 4,\n\t\tdamage : [2, 10, \"psychic\"],\n\t\trange : \"60 ft\",\n\t\tdescription : \"One creature in sight; Wis save: success\\u2015 no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}],\n\tactions : [{\n\t\tname : \"Suggestion\",\n\t\tdescription : \"The magen casts the Suggestion spell (save DC 12), requiring no material components. The target must be a creature that the magen can communicate with telepathically. If it succeeds on its saving throw, the target is immune to this magen's suggestion spell for the next 24 hours. The magen's spellcasting ability is Intelligence.\"\n\t}]\n};\n\n// Magic Items\nMagicItemsList[\"orc stone\"] = { // from Appendix B: Character Secrets\n\tname : \"Orc Stone\",\n\tsource : [[\"RotF\", 264]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by its recipient\",\n\tdescription : \"This stone was given to me by an orc whose life I saved. As an action, I can use it to summon an orc warrior spirit within 30 ft. The spirit disappears after 10 minutes or when reduced to 0 HP, understands any language I speak, and obeys my commands. After the stone is used three times, it turns to dust.\",\n\tdescriptionFull : \"I saved the life of an orc, who gave me a stone with the symbol of the Many-Arrows tribe (a humanoid skull pierced by three arrows) carved into it. The stone is an uncommon magic item that requires attunement, and only I can attune to it.\"+\n\t\"\\n   As an action, I can use the stone to summon the spirit of an orc warrior, which appears within 30 feet of me. The spirit uses the orc war chief stat block in the Monster Manual and disappears after 10 minutes or when reduced to 0 hit points. The spirit understands any language I speak and obeys my commands.\"+\n\t\"\\n   After the stone is used three times, it turns to dust.\",\n\tusages : 3,\n\trecovery : \"Never\",\n\tcreaturesAdd : [[\"Orc Stone Spirit\", true]],\n\tcreatureOptions : [{\n\t\tname : \"Orc Stone Spirit\",\n\t\tsource : [[\"MM\", 246], [\"RotF\", 264]],\n\t\tsize : 3,\n\t\ttype : \"Humanoid\",\n\t\talignment : \"Chaotic Evil\",\n\t\tac : 16,\n\t\thp : 93,\n\t\thd : [11, 8],\n\t\tspeed : \"30 ft\",\n\t\tscores : [18, 12, 18, 11, 11, 16],\n\t\tskills : {\n\t\t\t\"intimidation\" : 5,\n\t\t},\n\t\tlanguages: \"Understands any language its summoner speaks\",\n\t\tsenses : \"Darkvision 60 ft\",\n\t\tpassivePerception : 10,\n\t\tchallengeRating : \"4\",\n\t\tproficiencyBonus : 2,\n\t\tattacksAction : 2,\n\t\tattacks : [{\n\t\t\tname : \"Greataxe\",\n\t\t\tability : 1,\n\t\t\tdamage : ['1d12+1', 8, \"slashing\"],\n\t\t\trange : \"Melee\",\n\t\t\tdescription : \"Heavy, two-handed; Two attacks as an action\",\n\t\t}, {\n\t\t\tname : \"Spear\",\n\t\t\tability : 1,\n\t\t\tdamage : ['1d6+1', 8, \"piercing\"],\n\t\t\trange : \"Melee, 20/60 ft\",\n\t\t\tdescription : \"Thrown, versatile (1d8); Two attacks as an action\",\n\t\t}],\n\t\tfeatures : [{\n\t\t\tname : \"Gruumsh's Fury\",\n\t\t\tdescription : \"The orc deals an extra 1d8 damage when it hits with a weapon attack (included in the attacks).\"\n\t\t}, {\n\t\t\tname : \"Orc Stone\",\n\t\t\tdescription : \"Summoned by an Orc Stone, the orc spirit appears within 30 ft and disappears after 10 minutes or when reduced to 0 hit points. It obeys the command of its summoner.\"\n\t\t}],\n\t\tactions : [{\n\t\t\tname : \"Multiattack\",\n\t\t\tdescription : \"As an action on its turn, the orc can make two attacks.\"\n\t\t}, {\n\t\t\tname : \"Aggressive\",\n\t\t\tdescription : \"As a bonus action, the orc can move up to its speed toward a hostile creature that it can see.\"\n\t\t}, {\n\t\t\tname : \"Battle Cry (1/Day)\",\n\t\t\tdescription : \"As an action, the orc can utter a Battle Cry. Each creature of the orc's choice that is within 30 ft of it, can hear it, and not already affected by Battle Cry gain advantage on attack rolls until the start of the orc's next turn. The orc can then make one attack as a bonus action.\"\n\t\t}],\n\t\theader : \"Summoned\",\n\t}],\n};\nMagicItemsList[\"abracadabrus\"] = { // contains contributions by BraabHimself\n\tname : \"Abracadabrus\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This gemstone-studded wooden chest with a volume of 1.5 cu ft has 20 charges, regaining 1d20 charges at dawn. I roll a d20 if I use its last charge. On a 1, it loses its magic and gems. As an action, I can touch it and expend 1 charge to have up to 1 gp of nonmagical objects form inside, provided they fit and it's empty.\",\n\tdescriptionLong : \"This ornate, gemstone-studded wooden chest has a volume of 1.5 cu ft and weighs 25 lb. It has 20 charges and regains 1d20 expended charges daily at dawn. I roll a d20 if I use its last charge. On a 1, it loses its magic and gems. As an action, I can touch it and expend 1 charge to have up to 1 gp of nonmagical objects form inside (including raw materials, foodstuffs, and liquids), provided they fit inside and the chest is empty. Food and drink produced by the chest is delicious and spoils if not consumed after 24 hours. Gems and precious metals produced by the chest disappear after 1 minute.\",\n\tdescriptionFull : \"An abracadabrus is an ornate, gemstone-studded wooden chest that weighs 25 pounds while empty. Its interior compartment is a cube measuring 1\\u00BD feet on a side.\"+\n\t\"\\n   The chest has 20 charges. A creature can use an action to touch the closed lid of the chest and expend 1 of the chest's charges while naming one or more nonmagical objects (including raw materials, foodstuffs, and liquids) worth a total of 1 gp or less. The named objects magically appear in the chest, provided they can all fit inside it and the chest doesn't contain anything else. For example, the chest can conjure a plate of strawberries, a bowl of hot soup, a flagon of water, a stuffed animal, or a bag of twenty caltrops. Food and drink conjured by the chest are delicious, and they spoil if not consumed after 24 hours. Gems and precious metals created by the chest disappear after 1 minute.\"+\n\t\"\\n   The chest regains 1d20 expended charges daily at dawn. If the item's last charge is expended, roll a d20. On a 1, the chest loses its magic (becoming an ordinary chest), and its gemstones turn to dust.\",\n\tweight : 25,\n\tusages : 20,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d20\",\n\taction : [[\"action\", \"\"]]\n};\nMagicItemsList[\"cauldron of plenty\"] = { // contains contributions by BraabHimself\n\tname : \"Cauldron of Plenty\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This copper cauldron is 4 ft wide, 3.5 ft in diameter, and holds 30 gal. It has a lid, handles, and 5 clawed feet. Water stirred in it for 1 min becomes hot stew for 4 people per 1 gal. Stew stays hot in the cauldron, cools if removed, but cauldron's surface remains cool. Can be used 3 times per day, regaining all uses at dawn.\",\n\tdescriptionLong : \"This thick copper cauldron has turned green with age. It is 4ft wide, has a 3.5 ft diameter mouth, and holds 30 gallons. It has a lid, handles, and 5 clawed feet. If water is poured into the cauldron and stirred for 1 minute, it transforms into a hearty, hot stew, which can provide one nourishing meal for up to four people per 1 gallon. The stew remains hot while in the cauldron, then cools naturally after it is removed. The outside of the cauldron remains safe to touch despite the heat of the stew. The cauldron can create stew three times. It then ceases to function until the next dawn, when it regains all its uses.\",\n\tdescriptionFull : \"This cauldron is made of thick copper that has turned green with age. It is 4 feet wide, has a mouth 3\\u00BD feet in diameter, weighs 50 pounds, and can hold up to 30 gallons of liquid. Embossed on its bulging sides are images of satyrs and nymphs in repose, holding ladles. The cauldron comes with a lid and has side handles. It sits on five little clawed feet that keep it from tipping.\"+\n\t\"\\n   If water is poured into the cauldron and stirred for 1 minute, it transforms into a hearty, hot stew, which can provide one nourishing meal for up to four people per gallon. The stew remains hot while in the cauldron, then cools naturally after it is removed. The outside of the cauldron remains safe to touch despite the heat of the stew.\"+\n\t\"\\n   The cauldron can create stew three times. It then ceases to function until the next dawn, when it regains all its uses.\",\n\tweight : 50,\n\tusages : 3,\n\trecovery : \"dawn\"\n};\nvar IDRotF_HookOfFishersDelightFullDescription = [\n\t\"This tiny silver fishhook has a little gold feather attached to it. For it to function, the feathered hook must be tied to the end of a fishing line and immersed in enough water to fill at least a 10-foot cube. At the end of each uninterrupted hour of immersion, roll a d6. On a 6, a floppy, 6-inch-long magical fish appears on the end of the hook. The color and properties of the conjured fish are determined by rolling on the table below. Once the hook conjures a fish, it can't do so again until the next dawn.\\n\",\n\t\">>d20\\tFish color and result<<\",\n\t\"1-10\\t>>Green with copper bands<<. This tasty fish provides a day's worth of nourishment to one creature that eats it. The fish loses this property and rots if it's not eaten within 24 hours of being caught.\",\n\t\"11-14\\t>>Yellow with black stripes<<. Once removed from the hook, this awful-tasting fish can be thrown up to 120 feet, targeting a creature the thrower can see. The target must succeed on a DC 15 Strength saving throw or be knocked prone. The fish then disappears.\",\n\t\"15-18\\t>>Blue with white bands<<. When released from the hook, this fish squirms free, sprouts wings, follows you around, and sings a beautiful tune in Aquan. It disappears after 2d4 hours or when reduced to 0 hit points. The fish uses the quipper stat block, except that it can breathe air and has a flying speed of 30 feet.\",\n\t\"19-20\\t>>Gold with silver stripes<<. This tasty fish provides a day's worth of nourishment to one creature that eats it and grants 2d10 temporary hit points to that creature. The fish loses these properties and rots if it's not eaten within 24 hours of being caught.\"\n];\nMagicItemsList[\"hook of fisher's delight\"] = { // contains contributions by BraabHimself\n\tname : \"Hook of Fisher's Delight\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"For this tiny silver fishhook to work, I must attach it to the end of a fishing line and immerse it in at least 10 cu ft of water. Then, at the end of each uninterrupted hour of immersion, I roll a d6. On a 6, a magical fish appears on the hook; roll a d20 to determine the fish's properties on the table on the Notes page.\",\n\tdescriptionFull : IDRotF_HookOfFishersDelightFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Fish Properties Table\",\n\t\tnote : desc(IDRotF_HookOfFishersDelightFullDescription).replace(/>>|<</g, \"\").replace(/\\byou\\b/ig, \"I\").replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"lantern of tracking\"] = function () { // contains contributions by BraabHimself\n\tvar oObj = {\n\t\tname : \"Lantern of Tracking\",\n\t\tsource : [[\"RotF\", 314]],\n\t\ttype : \"wondrous item\",\n\t\trarity : \"common\",\n\t\tdescriptionFull : [\n\t\t\t\"This hooded lantern burns for 6 hours on 1 pint of oil, shedding bright light in a 30-foot radius and dim light for an additional 30 feet.\"+\n\t\t\t\"\\n   Each lantern of tracking is designed to track down a certain type of creature, which is determined by rolling on the Lantern of Tracking table. Once determined, this creature type can't be changed. While the lantern is within 300 feet of any creature of that type, its flame turns bright green. The lantern doesn't pinpoint the creature's exact location, however.\\n\",\n\t\t\ttoUni(\"d10\\tCreature Type\"),\n\t\t\t\"  1\\tAberrations\",\n\t\t\t\"  2\\tCelestials\",\n\t\t\t\"  3\\tConstructs\",\n\t\t\t\"  4\\tDragons\",\n\t\t\t\"  5\\tElementals\",\n\t\t\t\"  6\\tFey\",\n\t\t\t\"  7\\tFiends\",\n\t\t\t\"  8\\tGiants\",\n\t\t\t\"  9\\tMonstrosities\",\n\t\t\t\"10\\tUndead\"\n\t\t].join(\"\\n   \"),\n\t\tallowDuplicates : true,\n\t\tweight : 2,\n\t\tchoices : [\"Aberrations\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fey\", \"Fiends\", \"Giants\", \"Monstrosities\", \"Undead\"],\n\t\tchoicesNotInMenu : true\n\t};\n\tvar sDescr = \"This hooded lantern burns for 6 hours on 1 pint of oil, shedding bright light in a 30-ft radius and dim light for an additional 30 ft. While this lantern is within 300 ft of any CREATURE TYPE, its flame turns bright green. The lantern doesn't pinpoint the creature's exact location, however.\";\n\toObj.description = sDescr.replace(\"any CREATURE TYPE\", \"a specified creature type\");\n\tfor (var i = 0; i < oObj.choices.length; i++) {\n\t\tvar sChoice = oObj.choices[i].toLowerCase();\n\t\toObj[sChoice] = {\n\t\t\tname : \"Lantern of \" + oObj.choices[i] + \" Tracking\",\n\t\t\tsortname : \"Lantern of Tracking, \" + oObj.choices[i],\n\t\t\tdescription : sDescr.replace(\"CREATURE TYPE\", sChoice)\n\t\t}\n\t}\n\treturn oObj;\n}();\nMagicItemsList[\"professor skant\"] = { // contains contributions by Pengsloth\n\tname : \"Professor Skant\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This sentient orb with the personality of a scholar has Int 18, Wis 11, Cha 9, and no will of its own. It can hear and see out to 60 ft. It knows and reads Common, Draconic, Elvish, and Loross. It has+9 on checks regarding history of Netheril, vampirism, tarrasque, and Elverquisst. It moves itself around using Mage Hand.\",\n\tdescriptionLong : \"This sentient orb, which calls itself Professor Skant, has the personality of a scholar, but no will of its own to cause conflicts. It's a smooth, solid, 5 lb sphere of smoky gray quartz about the size of a grapefruit with two or more pinpricks of silver light deep inside. It's alignment is lawful good and it has Intelligence 18, Wisdom 11, and Charisma 9. It knows and reads Common, Draconic, Elvish, and Loross. It has expertise in the following academic topics (+9 on checks): history of Netheril, vampirism and the traits of vampires, rituals surrounding the making, bottling, and drinking of Elverquisst, and the tarrasque.\",\n\tdescriptionFull : \"The professor orb owned by Vellynne Harpell and stolen by Nass Lantomir calls itself Professor Skant. It is lawful good, and it has a Wisdom of 11 and a Charisma of 9 (as a professor orb, it has an Intelligence of 18). It speaks and reads Common, Draconic, Elvish, and Loross (the dead language of the Empire of Netheril). Professor Skant is a chatterbox and assumes all humanoids are dunderheads. When elaborating on its areas of expertise, it adopts an unintentionally patronizing tone. It has the following four areas of expertise:\"+\n\t\"\\n \\u2022 The history of Netheril (see the \\\"Fate of Netheril\\\" sidebar)\"+\n\t\"\\n \\u2022 Vampirism and the traits of vampires\"+\n\t\"\\n \\u2022 Rituals surrounding the making, bottling, and drinking of Elverquisst (a rare, ruby-colored elven liquor distilled from sunshine and rare summer fruits)\"+\n\t\"\\n \\u2022 The tarrasque (see the Monster Manual)\"+\n\t\"When making an Intelligence check to recall lore from any of its areas of expertise, the orb has a +9 bonus to its roll (including its Intelligence modifier).\"+\n\t\"\\n   Professor Skant takes the form of a smooth, solid, 5-pound sphere of smoky gray quartz about the size of a grapefruit. Close examination reveals two or more pinpricks of silver light deep inside the sphere.\"+\n\t\"\\n   Professor Skant can see and hear normally out to a range of 60 feet. Unlike most sentient items, the orb has no will of its own and can't initiate a conflict with the creature in possession of it.\"+\n\t\"\\n   In addition to the knowledge it possesses, Professor Skant can cast the mage hand cantrip at will. It uses the spell only to transport itself. Its spellcasting ability is Intelligence.\"\n};\nMagicItemsList[\"psi crystal\"] = { // contains contributions by BraabHimself\n\tname : \"Psi Crystal\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a creature with an intelligence score of 3 or higher\",\n\tprereqeval : function(v) { return Number(What(\"Int\")) >= 3; },\n\tdescription : \"While attuned to this orb, it glows with an inner purplish light and gives me telepathy. The range of telepathy and intensity of light are determined by my Intelligence score.\",\n\tdescriptionFull : \"This crystal grants you telepathy for as long as you remain attuned to it. See the introduction of the Monster Manual for rules on how this telepathy works.\"+\n\t\"\\n   The crystal also glows with a purplish inner light while you are attuned to it.\"+\n\t\"\\n   The higher your intelligence, the greater the light's intensity and the greater the range of the telepathy (see the table below).\"+\n\ttoUni(\"\\n\\nIntelligence\\tRange of   \\tLight\"+\n\t\"\\n    Score\\t\\tTelepathy  \\tIntensity\")+\n\t\"\\n      3-7\\t\\t  15 feet\\t\\tDim light out to a range of 5 ft\"+\n\t\"\\n      8-11\\t\\t  30 feet\\t\\tBright light in a 5-ft radius and dim light for an additional 5 ft\"+\n\t\"\\n    12-15\\t\\t  60 feet\\t\\tBright light in a 10-ft radius and dim light for an additional 10 ft\"+\n\t\"\\n    16 or higher\\t 120 feet\\t\\tBright light in a 15-ft radius and dim light for an additional 15 ft\",\n\tweight : 3,\n\tchoices : [\"Intelligence   3-7\", \"Intelligence   8-11\", \"Intelligence 12-15\", \"Intelligence 16 or higher\"],\n\tselfChoosing : function () {\n\t\tvar iInt = Number(What(\"Int\"));\n\t\treturn iInt >= 16 ? \"intelligence 16 or higher\" : iInt >= 12 ? \"intelligence 12-15\" : iInt >= 8 ? \"intelligence   8-11\" : \"intelligence   3-7\";\n\t},\n\t\"intelligence   3-7\" : {\n\t\tname : \"Psi Crystal (Int 3-7)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, dim light out to a range of 5 ft. It also grants me telepathy out to a range of 15 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence   8-11\" : {\n\t\tname : \"Psi Crystal (Int 8-11)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 5-ft radius and dim light for an additional 5 ft. It also grants me telepathy out to a range of 30 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence 12-15\" : {\n\t\tname : \"Psi Crystal (Int 12-15)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 10-ft radius and dim light for an additional 10 ft. It also grants me telepathy out to a range of 60 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence 16 or higher\" : {\n\t\tname : \"Psi Crystal (Int 16+)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 15-ft radius and dim light for an additional 15 ft. It also grants me telepathy out to a range of 120 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t}\n};\nMagicItemsList[\"scroll of tarrasque summoning\"] = { // contains contributions by BraabHimself\n\tname : \"Scroll of Tarrasque Summoning\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"scroll\",\n\trarity : \"legendary\",\n\tdescription : \"Once as an action, I can use this to cause the tarrasque to appear in an unoccupied space I can see within 1 mile. The tarrasque disappears when it drops to 0 hit points and is hostile toward all creatures other than itself.\",\n\tdescriptionFull : \"Using an action to read the scroll causes the tarrasque (see the creature's entry in the Monster Manual) to appear in an unoccupied space you can see within 1 mile of you. The tarrasque disappears when it drops to 0 hit points and is hostile toward all creatures other than itself.\"\n};\nMagicItemsList[\"scroll of the comet\"] = { // contains contributions by BraabHimself\n\tname : \"Scroll of the Comet\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"scroll\",\n\trarity : \"legendary\",\n\tdescription : \"Once as an action outdoors, I can use this to cause a comet to fall on a point I can see within 1 mile, creating a 50-ft deep, 500-ft radius crater. All creatures in the radius take 30d10 force damage and can make a DC 20 Dex save to halve this damage. It destroys all nonmagical objects and structures within the area.\",\n\tdescriptionFull : \"By using an action to read the scroll, you cause a comet to fall from the sky and crash to the ground at a point you can see up to 1 mile away from you. You must be outdoors when you use the scroll, or nothing happens and the scroll is wasted.\"+\n\t\"\\n   The comet creates a 50-foot-deep, 500-foot-radius crater on impact. Any creature in that radius must make a DC 20 Dexterity saving throw, taking 30d10 force damage on a failed saving throw, or half as much damage on a successful one. All structures in the crater are destroyed, as are all nonmagical objects that aren't being worn or held.\"\n};\nMagicItemsList[\"thermal cube\"] = { // contains contributions by BraabHimself\n\tname : \"Thermal Cube\",\n\tsource : [[\"RotF\", 316]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"This 3-inch cube of solid brimstone generates enough dry heat to keep the temperature within 15 ft of it at 95 degrees Fahrenheit.\",\n\tdescriptionFull : \"This 3-inch cube of solid brimstone generates enough dry heat to keep the temperature within 15 feet of it at 95 degrees Fahrenheit (35 degrees Celsius).\"\n};\nMagicItemsList[\"ythryn mythallar\"] = { // contains contributions by BraabHimself\n\tname : \"Ythryn Mythallar\",\n\tsource : [[\"RotF\", 316]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"This 50 ft diameter crystal ball sheds light in a 300 ft radius and dim light for an additional 300 ft. Up to 8 creatures can attune to it at one time, a 9th creature's attunement fails. All those attuned to it can sense when it is used and they all must agree to any properties being used. See Notes page.\",\n\tdescriptionFull : \"A mythallar looks like an enormous crystal ball held in an ornate cradle. The globe sheds bright light in a 300-foot radius and dim light for an additional 300 feet. The globe draws magic from the Weave that can be harnessed for various purposes. For example, Netherese mages used mythallars to keep their cities aloft and empower their magic items. The bigger the mythallar, the more magic it can hold. The largest mythallars are 150 feet in diameter.\"+\n\t\"\\n   The Ythryn mythallar is a relatively small device\\u2014a mere 50 feet in diameter. To attune to this mythallar, a creature must finish a short rest within 30 feet of it, meditating on the mythallar. Up to eight creatures can be attuned to it at one time; otherwise, the Ythryn mythallar follows the attunement rules in the Dungeon Master's Guide. If a ninth creature tries to attune to the mythallar, nothing happens.\"+\n\t\"\\n   All creatures attuned to the Ythryn mythallar can sense when the device is being used. A creature attuned to the device can use any of its properties, but only if all other creatures attuned to the device agree to allow it. The Ythryn mythallar's properties are as follows:\"+\n\t\"\\n    \\u2022 While you're on the same plane of existence as the Ythryn mythallar, you can use an action to cause it to fly in any direction you choose at a speed of 30 feet. All matter within 500 feet of the device moves with it. The Ythryn mythallar and all structures held aloft by it hover in place when not in motion.\"+\n\t\"\\n   \\u2022 As an action, you can cause one magic item you are holding within 30 feet of the Ythryn mythallar to immediately regain all its expended charges or uses. A magic item recharged in this manner can't be recharged by the Ythryn mythallar again until after the item regains expended charges or uses on its own.\"+\n\t\"\\n   \\u2022 You can use the Ythryn mythallar to cast the control weather spell without requiring any components and without the need for you to be outdoors. This casting of the spell has a 50-mile radius. For the duration of the spell's casting time, you must be within 30 feet of the Ythryn mythallar or the spell fails.\"+\n\t\"\\n\" + toUni(\"Touching the Mythallar\") + \". Any creature that touches the globe of the mythallar must make a DC 22 Constitution saving throw, taking 180 (20d10 + 70) radiant damage on a failed save, or half as much damage on a successful one. Undead have disadvantage on this saving throw. Any object that touches the globe, other than an artifact or the mythallar's cradle, is disintegrated instantly (no save).\",\n\ttoNotesPage : [{\n\t\tname : \"Properties\",\n\t\tnote : [\n\t\t\t\"The Ythryn Mythallar is a 50 ft diameter crystal ball that sits on a cradle\",\n\t\t\t\"It has the following properties:\",\n\t\t\t\"\\u2022 Sheds light in a 300 ft radius and dim light for an additional 300 ft\",\n\t\t\t\"\\u2022 Up to 8 creatures can attune to it, a 9th attunement fails\",\n\t\t\t\"\\u2022 To attune, a creature must short rest within 30 ft of it\",\n\t\t\t\"\\u2022 All those attuned to it can sense when sense when it is being used\",\n\t\t\t\"\\u2022 All those attuned must agree to allow any properties to be used\",\n\t\t\t\"\\u2022 You can use an action to use the Ythryn Mythallar in the following ways:\",\n\t\t\t\"  \\u25E6 While on the same plane, give it a flying speed of 30 ft\",\n\t\t\t\"    All matter within 500 ft of it moves with it\",\n\t\t\t\"    The ball and all structures held aloft by it hover in place when not in motion\",\n\t\t\t\"  \\u25E6 Cause one magic item to regain all charges/uses\",\n\t\t\t\"    I must be within 30 ft of the ball and holding the item\",\n\t\t\t\"    It cannot be recharged again until all charges/uses are expended\",\n\t\t\t\"  \\u25E6 Cast the control weather spell without components or spell slots\",\n\t\t\t\"    It has a radius of 50 miles and can be cast inside\",\n\t\t\t\"    I must be within 30 ft of the ball for the casting time, or it will fail\",\n\t\t\t\"\\nTOUCHING THE MYTHALLAR\",\n\t\t\t\"Any creature that touches the ball must make a DC 22 Constitution save\",\n\t\t\t\"On a failure, they take 20d10 + 70 radiant damage, or half that on a success\",\n\t\t\t\"Undead have disadvantage on this saving throw\",\n\t\t\t\"Objects touching the ball, except artifacts or the cradle, disintegrate instantly\"\n\t\t]\n\t}]\n};\nMagicItemsList[\"the codicil of white\"] = {\n\tname : \"The Codicil of White\",\n\tsource : [[\"RotF\", 317]],\n\ttype : \"wondrous item\",\n\trarity : \"\",\n\tnotLegalAL : true,\n\tdescription : 'This volume bound in white fur, sealed with a silver lock, containing velum pages with silver edges is cold to the touch. While I have this tome in my possession, I gain resistance to cold damage. It contains the Frost Fingers spell which a wizard can learn and a poem incantation \"Rime of the Frostmaiden\".',\n\tdescriptionFull : \"The Codicil of White is a tall, thin volume bound in white ermine fur over seasoned boards of white pine and sealed with a clasp and lock of tarnished silver. The book is cold to the touch, and the fur is worn about the edges from use. The twenty-seven pages within are of vellum painted with silver gilt on the outer edges. The whole is sewn to a leather binding with strips of sinews, making it quite durable.\"+\n\t\"\\n   A creature with the codicil in its possession has resistance to cold damage.\"+\n\t\"\\n   The codicil was written by followers of Auril as a primer on her worship. The first page is a title page with the snowflake symbol of Auril on it. The remaining pages describe various priestly rituals and ceremonies in chilling detail. Nestled among these descriptions is a spell that wizards can learn (frost fingers, and a poem called \\\"Rime of the Frostmaiden\\\", see appendix E of Icewind Dale: Rime of the Frostmaiden). The poem is an incantation, the power of which can be used to split a glacier (see chapter 6 of Icewind Dale: Rime of the Frostmaiden). The poem might have other capabilities, at the DM's discretion\",\n\tdmgres : [\"Cold\"],\n\tweight : 3\n};\n// Spells\nSpellsList[\"blade of disaster\"] = {\n\tname : \"Blade of Disaster\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"T\", 106], [\"RotF\", 318]],\n\tlevel : 9,\n\tschool : \"Conj\",\n\ttime : \"1 bns\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"Create weapon; 2 spell atks 4d12 Force dmg; crit on 18+, triple dmg; bns a to move 30 ft \\u0026 do 2 atks\",\n\tdescriptionShorter : \"Create wea; 2 spell atks 4d12 Force dmg; crit 18+, triple dmg; bns a to move 30 ft \\u0026 2 atks\",\n\tdescriptionFull : \"You create a blade-shaped planar rift about 3 feet long in an unoccupied space you can see within range. The blade lasts for the duration. When you cast this spell, you can make up to two melee spell attacks with the blade, each one against a creature, loose object, or structure within 5 feet of the blade. On a hit, the target takes 4d12 force damage. This attack scores a critical hit if the number on the d20 is 18 or higher. On a critical hit, the blade deals an extra 8d12 force damage (for a total of 12d12 force damage).\"+\n\t\"\\n   As a bonus action on your turn, you can move the blade up to 30 feet to an unoccupied space you can see and then make up to two melee spell attacks with it again.\"+\n\t\"\\n   The blade can harmlessly pass through any barrier, including a wall of force.\"\n};\nSpellsList[\"create magen\"] = { // contains contributions by BraabHimself\n\tname : \"Create Magen\",\n\tsource : [[\"RotF\", 318]],\n\tclasses : [\"wizard\"],\n\tlevel : 7,\n\tschool : \"Trans\",\n\ttime : \"1 h\",\n\trange : \"Touch\",\n\tcomponents : \"V,S,M\\u2020\",\n\tcompMaterial : \"A vial of quicksilver worth 500 gp and a life-sized human doll, both of which the spell consumes, and an intricate crystal rod worth at least 1,500 gp that is not consumed\",\n\tduration : \"Instantaneous\",\n\tdescription : \"Transform doll into magen (500gp cons.); obeys me; my HP max reduced by its CR; see book (1.5k gp)\",\n\tdescriptionFull : \"While casting the spell, you place a vial of quicksilver in the chest of a life-sized human doll stuffed with ash or dust. You then stitch up the doll and drip your blood on it. At the end of the casting, you tap the doll with a crystal rod, transforming it into a magen clothed in whatever the doll was wearing. The type of magen is chosen by you during the casting of the spell. See appendix C for different kinds of magen and their statistics.\"+\n\t\"\\n   When the magen appears, your hit point maximum decreases by an amount equal to the magen's challenge rating (minimum reduction of 1). Only a wish spell can undo this reduction to your hit point maximum.\"+\n\t\"\\n   Any magen you create with this spell obeys your commands without question.\"\n};\nSpellsList[\"frost fingers\"] = { // contains contributions by BraabHimself\n\tname : \"Frost Fingers\",\n\tsource : [[\"RotF\", 318]],\n\tclasses : [\"wizard\"],\n\tlevel : 1,\n\tschool : \"Evoc\",\n\ttime : \"1 a\",\n\trange : \"S:15\" + (typePF ? \"-\" : \"\") + \"ft cone\",\n\tcomponents : \"V,S\",\n\tduration : \"Instantaneous\",\n\tsave : \"Con\",\n\tdescription : \"All in area 2d8+1d8/SL Cold dmg; save halves; unattended nonmagical liquids freeze\",\n\tdescriptionFull : \"Freezing cold blasts from your fingertips in a 15-foot cone. Each creature in that area must make a Constitution saving throw, taking 2d8 cold damage on a failed save, or half as much damage on a successful one.\"+\n\t\"\\n   The cold freezes nonmagical liquids in the area that aren't being worn or carried.\"+\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\n};\n\n// pub_20201117-2_TCoE-sidekicks.js\r\n// This file adds the sidekick classes from Tasha's Cauldron of Everything (p142-147) to MPMB's Character Record Sheet\r\n\r\n/* - NOTICE -\r\n\tThese sidekick classes are available as normal classes because the sheet doesn't support classes for the companion page\r\n\r\n\tThese classes are excluded by default so that they aren't confused with normal classes\r\n\r\n\tThe base 1/2 CR creature will have to be added manually\r\n\tIt would be too complex and messy to add them all as racial options\r\n*/\r\n\r\n// Define the source, if it doesn't yet exist\r\nif (!SourceList.T) {\r\n\tSourceList.T = {\r\n\t\tname : \"Tasha's Cauldron of Everything\",\r\n\t\tabbreviation : \"TCoE\",\r\n\t\tabbreviationSpellsheet : \"T\",\r\n\t\tgroup : \"Primary Sources\",\r\n\t\turl : \"https://dnd.wizards.com/products/tashas-cauldron-everything\",\r\n\t\tdate : \"2020/11/17\"\r\n\t};\r\n}\r\n\r\n// Define some functions here, so we an use them for all sidekick classes without duplication\r\nglobal_TCoE_Sidekick_fn = {\r\n\t// prereqeval runs before any of the other class stuff is added, so we can even modify the ClassList object with it to set the HD\r\n\tprereqeval : function(v) {\r\n\t\tvar sClass = v['class'];\r\n\t\tvar sSubclass = v.subclass;\r\n\t\tvar sClassOld = CurrentVars.sidekickDialogShown === undefined ? false : CurrentVars.sidekickDialogShown[0];\r\n\t\t// If we already did this function for this (sub)class, stop now\r\n\t\tif (CurrentVars.sidekickDialogShown && CurrentVars.sidekickDialogShown[0] === sClass && (!CurrentVars.sidekickDialogShown[1] || CurrentVars.sidekickDialogShown[1] === sSubclass)) {\r\n\t\t\t// if no subclass was defined when previously calling this, but now there is one selected, add that to the CurrentVars\r\n\t\t\tif (!CurrentVars.sidekickDialogShown[1] && sSubclass) {\r\n\t\t\t\tCurrentVars.sidekickDialogShown[1] = sSubclass;\r\n\t\t\t\tSetStringifieds(\"vars\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// Tell the player what is about to happen and give an option to opt-out\r\n\t\tvar sClassName = ClassList[sClass].name.replace(/\\(?sidekick\\)?/i, '').trim();\r\n\t\tvar warningMsg = {\r\n\t\t\tnIcon : 3, // Status\r\n\t\t\tnType : 2, // Yes,No\r\n\t\t\tcTitle : \"Creating a Sidekick Works Differently\",\r\n\t\t\tcMsg : \"You are about to create a character with a \" + sClassName + \" sidekick class. Sidekick classes use the rules as described in Tasha's Cauldron of Everything, page 142. As this character sheet is intended for regular, non-sidekick classes, some changes will be made that you need to be aware off:\"\r\n\t\t};\r\n\t\tvar lineNo = 1;\r\n\t\t[\r\n\t\t\t\"A sidekick class is added to a creature of CR 1/2 or lower. Before continuing, lookup the stat block of the base creature you would like to use. You will have to manually enter its:\"+\r\n\t\t\t\t\"\\n   \\u2022 Ability scores\"+\r\n\t\t\t\t\"\\n   \\u2022 Proficiencies for: skills, saving throws, weapons, armor, languages, and tools\"+\r\n\t\t\t\t\"\\n   \\u2022 Attacks (tip: use Modifier fields for attacks that aren't weapons/cantrips)\"+\r\n\t\t\t\t\"\\n   \\u2022 Hit dice (you will be prompted to enter)\",\r\n\t\t\t\tsClass.indexOf('warrior') !== -1 ? false : 'To gain either the Expert of Spellcaster sidekick class, a creature must have at least one language in its stat block that it can speak.',\r\n\t\t\t'If you continue, the race and background automation will be turned off and the respective fields emptied. You can use these fields to enter the name and type of the base creature.'+\r\n\t\t\t\t'\\nFor example. when using the bandit stat block, you could enter:'+\r\n\t\t\t\t'\\n   \\u2022 Race: Elf'+\r\n\t\t\t\t'\\n   \\u2022 Background: Bandit'+\r\n\t\t\t\t'\\nYou can turn the automation back on with the \"Auto/Manual\" bookmark.',\r\n\t\t\t\"Sidekicks don't use experience points, but gain levels as the average level of the group goes up. Thus, simply ignore the experience points box and change the level when needed.\",\r\n\t\t\t\"Sidekick classes can't multiclass and haven't been tested to work that way.\"\r\n\t\t].forEach(function (line) {\r\n\t\t\tif (!line) return;\r\n\t\t\twarningMsg.cMsg += \"\\n\\n\" + lineNo + \". \" + line;\r\n\t\t\tlineNo++;\r\n\t\t});\r\n\t\twarningMsg.cMsg += \"\\n\\n\\n>>> Do you want to continue making a sidekick? <<<\";\r\n\t\twarningMsg.cMsg += \"\\n\\nIf you select 'No', the \" + v.classlevel + \" level(s) of this class will be counted towards the total character level, but none of its features will be added.\";\r\n\t\tif (app.alert(warningMsg) !== 4) return 'skip';\r\n\t\t// Save that this dialog has been shown\r\n\t\tCurrentVars.sidekickDialogShown = [sClass, sSubclass];\r\n\t\t// Remove race and background, and set them to manual\r\n\t\tglobal_TCoE_Sidekick_fn.manualRaceBackground();\r\n\t\t// if the sidekick HD is already defined, delete those HD first before applying the new one\r\n\t\tif (CurrentVars.sidekickHD && sClassOld && classes.old[sClassOld]) {\r\n\t\t\tglobal_TCoE_Sidekick_fn.eval([classes.old[sClassOld].classlevel, 0], false, false, true);\r\n\t\t};\r\n\t\t// Ask the player to enter the number and type of HD the creature has in its stat block\r\n\t\tCurrentVars.sidekickHD = AskUserOptions(\r\n\t\t\t\"Set Base Creature Hit Dice\", // title\r\n\t\t\t\"Enter the number and type of hit dice that the chosen base creature has in its stat block (i.e. without bonuses from sidekick levels).\\nThe sidekick will gain 1 extra HD for each level it gains after the first.\", // top explanation\r\n\t\t\t['Number of hit dice, for example \"2\"', 'Size of the hit dice, for example \"d8\"'],\r\n\t\t\tfalse, true,\r\n\t\t\t\"Be aware that you *can't* change the *size* of the hit die (e.g. d8) at a later time. To do that, you will have to first remove the sidekick class completely.\\n\\nHowever, you *can* change the *number* of hit dice manually by editing the appropriate field.\" // bottom explanation\r\n\t\t).map(function (n, idx) {\r\n\t\t\tvar a = n.replace(/.*?(\\d+).*/, \"$1\");\r\n\t\t\treturn !isNaN(a) ? Number(a) : idx === 0 ? 2 : 8;\r\n\t\t});\r\n\t\tClassList[sClass].die = CurrentVars.sidekickHD[1];\r\n\t\tCurrentClasses[sClass].die = CurrentVars.sidekickHD[1];\r\n\t\tSetStringifieds(\"vars\");\r\n\t},\r\n\t// Change the race and background to manual or auto\r\n\tmanualRaceBackground : function(bAuto) {\r\n\t\tif (bAuto && (CurrentVars.manual.background || CurrentVars.manual.race)) {\r\n\t\t\t// set to automatic\r\n\t\t\tif (CurrentVars.manual.background) {\r\n\t\t\t\tValue(\"Background\", \"\");\r\n\t\t\t\tSetToManual_Dialog.mBac = false;\r\n\t\t\t}\r\n\t\t\tif (CurrentVars.manual.race) {\r\n\t\t\t\tValue(\"Race\", \"\");\r\n\t\t\t\tSetToManual_Dialog.mRac = false;\r\n\t\t\t}\r\n\t\t\tSetToManual_Button(true);\r\n\t\t} else if (!bAuto) {\r\n\t\t\t// set to manual\r\n\t\t\tif (CurrentVars.manual.race || CurrentVars.manual.background || CurrentVars.manual.backgroundFeature) {\r\n\t\t\t\t// if currently already set to manual, set to auto before emptying the fields\r\n\t\t\t\tIsNotImport = false;\r\n\t\t\t\tignorePrereqs = true;\r\n\t\t\t\tSetToManual_Dialog.mBac = false;\r\n\t\t\t\tSetToManual_Dialog.mBFe = false;\r\n\t\t\t\tSetToManual_Dialog.mRac = false;\r\n\t\t\t\tSetToManual_Button(true);\r\n\t\t\t\tIsNotImport = true;\r\n\t\t\t\tignorePrereqs = false;\r\n\t\t\t};\r\n\t\t\t// Remove the race and background\r\n\t\t\tif (CurrentRace.known) Value(\"Race\", \"\");\r\n\t\t\tif (CurrentBackground.known) Value(\"Background\", \"\");\r\n\t\t\t// Set race and background to manual\r\n\t\t\tSetToManual_Dialog.mRac = true;\r\n\t\t\tSetToManual_Dialog.mBac = true;\r\n\t\t\tSetToManual_Button(true);\r\n\t\t}\r\n\t},\r\n\t// When removing a sidekick class, return some stuff to normal\r\n\tremoveeval : function(lvl) {\r\n\t\t// This could be called after the dialog was shown for another sidekick, so check if there is actually something to do\r\n\t\tvar sClass = CurrentVars.sidekickDialogShown ? CurrentVars.sidekickDialogShown[0] : false;\r\n\t\tvar sSubclass = CurrentVars.sidekickDialogShown ? CurrentVars.sidekickDialogShown[1] : false;\r\n\t\tif (!sClass || !classes.known[sClass] || classes.known[sClass].level ||\r\n\t\t\t(classes.old[sClass] && classes.old[sClass].subclass && classes.old[sClass].subclass !== sSubclass)\r\n\t\t\t) return;\r\n\t\t// Remove the extra sidekickHD and delete it from the CurrentVars\r\n\t\tglobal_TCoE_Sidekick_fn.eval(lvl, false, false, true);\r\n\t\tdelete CurrentVars.sidekickHD;\r\n\t\tdelete CurrentVars.sidekickDialogShown;\r\n\t\tSetStringifieds(\"vars\");\r\n\t\t// Reset race and background to auto (if not already)\r\n\t\tglobal_TCoE_Sidekick_fn.manualRaceBackground(true);\r\n\t},\r\n\t// After the HD has been set, we still need to enter the bonus HD, if any (this can't be done with the prereqeval)\r\n\teval : function(lvl, chc, undef, bRemove) {\r\n\t\tvar hd = CurrentVars.sidekickHD;\r\n\t\tvar extraHD = hd[0] - 1;\r\n\t\tif (isNaN(extraHD) || extraHD < 1) return;\r\n\t\tvar totalHD = bRemove ? lvl[0] : lvl[1] + extraHD;\r\n\t\tvar expectedHD = bRemove ? lvl[0] + extraHD : lvl[1];\r\n\t\t// Add the extra HD to the field\r\n\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\tvar dieFld = \"HD\" + i + \" Die\";\r\n\t\t\tvar lvlFld = \"HD\" + i + \" Level\";\r\n\t\t\tif (What(dieFld) == hd[1] && What(lvlFld) == expectedHD) {\r\n\t\t\t\tValue(lvlFld, totalHD);\r\n\t\t\t\tCurrentUpdates.types.push(\"hp\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges_hp : function (totalHD, HDobj) {\r\n\t\t// remove 1st level max (and change its average and fixed value to reflect this change)\r\n\t\tvar hd = CurrentVars.sidekickHD[1];\r\n\t\tvar matchRegex = RegExp('(\\\\d+)(d' + hd + ' \\\\()(\\\\d+\\\\.?\\\\d+?)\\\\)');\r\n\t\tvar match = HDobj.dieStr[1] ? HDobj.dieStr[1].match(matchRegex) : false;\r\n\t\tif (!match) return;\r\n\t\tvar hdAverage = hd / 2 + 0.5;\r\n\t\tvar hdFixed = Math.ceil(hdAverage);\r\n\t\tHDobj.dieStr.shift();\r\n\t\tHDobj.average += hdAverage - hd;\r\n\t\tHDobj.fixed += hdFixed - hd;\r\n\t\tHDobj.dieStr[0] = HDobj.dieStr[0].replace(matchRegex, (Number(match[1]) + 1) + match[2] + (Number(match[3]) + hdAverage) + \") [sidekicks don't get max for 1st level]\");\r\n\t},\r\n\tspellcasting_additional : levels.map(function (n, idx) {\r\n\t\tvar cantr = [2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4][idx];\r\n\t\tvar splls = [1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11][idx];\r\n\t\treturn cantr + \" cantrips \\u0026 \" + splls + \" spells known\";\r\n\t})\r\n}\r\n\r\n// Add the three classes\r\nClassList[\"sidekick-expert-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*expert)(?=.*sidekick).*$/i,\r\n\tname : \"Expert (sidekick)\",\r\n\tsource : [[\"T\", 143]],\r\n\tprimaryAbility : \"Dexterity, Intelligence, or Charisma\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 10 ? 2 : n < 12 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose any five skills\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1],\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"The Spellcaster and Expert classes can only apply to creatures that can speak a language\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Dex, Int, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dexterity\", \"Intelligence\", \"Charisma\"],\r\n\t\t\t\"dexterity\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Dexterity Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Dexterity saving throws\"),\r\n\t\t\t\tsaves : [\"Dex\"]\r\n\t\t\t},\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Intelligence Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"]\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Charisma Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with light armor and in five skills of my choice\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and in five skills of my choice\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with two tools of my choice and with all simple weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tweaponProfs : [true, false],\r\n\t\t\t\ttoolProfs : [[\"Tool of my choice\", 2]]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with light armor and in five skills of my choice\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"helpful\" : {\r\n\t\t\tname : \"Helpful\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I can use a bonus action to take the Help action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"cunning action\" : {\r\n\t\t\tname : \"Cunning Action\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I can use a bonus action to take the Dash, Disengage, or Hide action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"expertise\" : function() {\r\n\t\t\tvar a = {\r\n\t\t\t\tname : \"Expertise\",\r\n\t\t\t\tsource : [[\"T\", 143]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain expertise with two skills I am proficient with\",\r\n\t\t\t\t\t\"At level 15th, I gain expertise with two more skills I am proficient with\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Expertise with any two skill proficiencies, two more at level 15th\",\r\n\t\t\t\textraname : \"Expertise\",\r\n\t\t\t\textrachoices : [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\r\n\t\t\t\textraTimes : levels.map(function (n) { return n < 3 ? 0 : n < 15 ? 2 : 4; })\r\n\t\t\t}\r\n\t\t\tfor (var i = 0; i < a.extrachoices.length; i++) {\r\n\t\t\t\tvar attr = a.extrachoices[i].toLowerCase();\r\n\t\t\t\ta[attr] = {\r\n\t\t\t\t\tname : a.extrachoices[i] + \" Expertise\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tsource : a.source,\r\n\t\t\t\t\tskills : [[a.extrachoices[i], \"only\"]],\r\n\t\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? false : v.skillExpertiseLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn a;\r\n\t\t}(),\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 10th, 12th, 16th, and 19th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 10 ? 2 : n < 12 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"coordinated strike\" : {\r\n\t\t\tname : \"Coordinated Strike\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use Helpful to aid an ally to attack a creature up to 30 ft away from me\",\r\n\t\t\t\t\"If I do so, I add +2d6 damage on my next attack to that creature in the current turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"evasion\" : {\r\n\t\t\tname : \"Evasion\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If an effect allows me to make a Dex save for half damage, I take no damage on a success\",\r\n\t\t\t\t\"Also, I only take half damage on a failed save; I can't do this while incapacitated\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { text : [\"Dex save vs. area effects: fail \\u2015 half dmg, success \\u2015 no dmg\"] }\r\n\t\t},\r\n\t\t\"inspiring help\" : {\r\n\t\t\tname : \"Inspiring Help\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use the Help action, the creature that receives the help adds +1d6 to its d20 roll\",\r\n\t\t\t\t\"If it was an attack roll that hits without the +1d6, it can add it to the damage instead\",\r\n\t\t\t\t\"At 20th level, this bonus increases to 2d6\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : \"+\" + (n < 20 ? 1 : 2) + \"d6 bonus\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"reliable talent\" : {\r\n\t\t\tname : \"Reliable Talent\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"If I make an ability check where I add my proficiency bonus, rolls of 9 or lower are 10\")\r\n\t\t},\r\n\t\t\"sharp mind\" : {\r\n\t\t\tname : \"Sharp Mind\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc('Choose Int, Wis, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Sharp Mind: Intelligence\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Int ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t},\r\n\t\t\t\"wisdom\" : {\r\n\t\t\t\tname : \"Sharp Mind: Wisdom\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Wisdom saving throws\"),\r\n\t\t\t\tsaves : [\"Wis\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Wis ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Sharp Mind: Charisma\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Cha ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nClassList[\"sidekick-spellcaster-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*(spellcaster|mage|healer|prodigy))(?=.*sidekick).*$/i,\r\n\tname : \"Spellcaster (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tprimaryAbility : \"Intelligence, Wisdom, or Charisma\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 12 ? 2 : n < 16 ? 3 : n < 18 ? 4 : 5;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"Spellcaster's Role\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 2,\r\n\tspellcastingTable : ClassList.artificer && ClassList.artificer.spellcastingTable ? ClassList.artificer.spellcastingTable : [[0, 0, 0, 0, 0, 0, 0, 0, 0]].concat(levels.map(function (n) {\r\n\t\treturn defaultSpellTable[Math.ceil(n / 2)];\r\n\t})),\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells :   [1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"The Spellcaster and Expert classes can only apply to creatures that can speak a language\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Int, Wis, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Intelligence Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"]\r\n\t\t\t},\r\n\t\t\t\"wisdom\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Wisdom Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Wisdom saving throws\"),\r\n\t\t\t\tsaves : [\"Wis\"]\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Charisma Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with all simple weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tweaponProfs : [true, false]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcaster's Role\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose the role of the sidekick, mage, healer, or prodigy, and put it in the \"Class\" field')\r\n\t\t},\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 12th, 16th, and 18th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 12 ? 2 : n < 16 ? 3 : n < 18 ? 4 : 5) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"potent cantrips\" : {\r\n\t\t\tname : \"Potent Cantrips\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"I add my spellcasting ability modifier to the damage I deal with any cantrip\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave) return;\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1] + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod > 0 && v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0) {\r\n\t\t\t\t\t\t\toutput.extraDmg += spAbiMod;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave || spellObj.psionic || spellObj.level !== 0) return;\r\n\t\t\t\t\t\tvar spAbi = AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1];\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(spAbi + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod < 1) return;\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", spAbi);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"empowered spells\" : {\r\n\t\t\tname : \"Empowered Spells\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Select one of the eight schools of magic using the \"Choose Feature\" button above',\r\n\t\t\t\t\"Whenever I cast a spell from the selected school by expending a spell slot, I empower it\",\r\n\t\t\t\t\"I add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tvar spSchool = GetFeatureChoice(\"classes\", \"sidekick-spellcaster-tcoe\", \"empowered spells\");\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave || !spSchool || spellObj.psionic || !spellObj.level) return;\r\n\t\t\t\t\t\tfor (var aSchl in spellSchoolList) {\r\n\t\t\t\t\t\t\tif (spellSchoolList[aSchl] == spSchool) {\r\n\t\t\t\t\t\t\t\tspSchool = aSchl;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (spellObj.school !== spSchool) return;\r\n\t\t\t\t\t\tvar spAbi = AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1];\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(spAbi + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod < 1) return;\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", spAbiMod, true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", spAbiMod, true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Spells from my selected school cast by expending a spell slot get my spellcasting ability modifier added to their damage or healing rolls.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"Abjuration\", \"Conjuration\", \"Divination\", \"Enchantment\", \"Evocation\", \"Illusion\", \"Necromancy\", \"Transmutation\"],\r\n\t\t\t\"abjuration\" : {\r\n\t\t\t\tname : \"Empowered Abjurations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast an abjuration spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"conjuration\" : {\r\n\t\t\t\tname : \"Empowered Conjurations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a conjuration spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"divination\" : {\r\n\t\t\t\tname : \"Empowered Divinations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a divination spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"enchantment\" : {\r\n\t\t\t\tname : \"Empowered Enchantments\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a enchantment spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"evocation\" : {\r\n\t\t\t\tname : \"Empowered Evocations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a evocation spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"illusion\" : {\r\n\t\t\t\tname : \"Empowered Illusions\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast an illusion spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"necromancy\" : {\r\n\t\t\t\tname : \"Empowered Necromancy\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a necromancy spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"transmutation\" : {\r\n\t\t\t\tname : \"Empowered Transmutations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a transmutation spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"focused casting\" : {\r\n\t\t\tname : \"Focused Casting\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc(\"Taking damage can't break my concentration on a spell\")\r\n\t\t}\r\n\t}\r\n}\r\nClassList[\"sidekick-warrior-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*warrior)(?=.*sidekick).*$/i,\r\n\tname : \"Warrior (sidekick)\",\r\n\tsource : [[\"T\", 146]],\r\n\tprimaryAbility : \"Strength, Dexterity, or Constitution\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 12 ? 2 : n < 14 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, true, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3],\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Str, Dex, or Con save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\"],\r\n\t\t\t\"strength\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Strength Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Strength saving throws\"),\r\n\t\t\t\tsaves : [\"Str\"]\r\n\t\t\t},\r\n\t\t\t\"dexterity\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Dexterity Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Dexterity saving throws\"),\r\n\t\t\t\tsaves : [\"Dex\"]\r\n\t\t\t},\r\n\t\t\t\"constitution\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Constitution Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Constitution saving throws\"),\r\n\t\t\t\tsaves : [\"Con\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with shields and all simple and martial weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tarmorProfs : [false, false, false, true],\r\n\t\t\t\tweaponProfs : [true, true]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"martial role\" : {\r\n\t\t\tname : \"Martial Role\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose a Martial Role for the warrior using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Attacker\", \"Defender\"],\r\n\t\t\t\"attacker\" : {\r\n\t\t\t\tname : \"Martial Role: Attacker\",\r\n\t\t\t\tdescription : desc(\"I gain a +2 bonus to all my attack rolls\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (!v.isDC) output.extraHit += 2;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add a +2 bonus on the To Hit of all my attack rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"defender\" : {\r\n\t\t\t\tname : \"Martial Role: Defender\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction, I can give disadv. on an attack made vs. someone within 5 ft of me\",\r\n\t\t\t\t\t\"I need to be able to see the attacker to do this\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"second wind\" : {\r\n\t\t\tname : \"Second Wind\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can regain hit points equal to 1d10 + warrior level\",\r\n\t\t\t\t\"I can use this once per short rest (twice at 20th-level)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn \"1d10+\" + n;\r\n\t\t\t}),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n < 20 ? 1 : 2 }),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"improved critical\" : {\r\n\t\t\tname : \"Improved Critical\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I score a critical hit with my weapon attacks on a roll of 19 and 20\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && !v.isSpell && !v.CritChance && classes.known[\"sidekick-warrior\"]) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My weapon attacks score a critical on a to hit roll of both 19 and 20.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 12th, 14th, 16th, and 19th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 12 ? 2 : n < 14 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"extra attack\" : {\r\n\t\t\tname : \"Extra Attack\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can attack twice, instead of once, whenever I take the Attack action on my turn\",\r\n\t\t\t\t\"This increases to three at 15th level\",\r\n\t\t\t\t\"If I have the Multiattack action, I can use either that or extra attack on a turn, not both\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : (n < 15 ? 1 : 3) + \" attacks as an action on my turn\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"battle readiness\" : {\r\n\t\t\tname : \"Battle Readiness\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"I have advantage on my Initiative rolls\"),\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"improved defense\" : {\r\n\t\t\tname : \"Improved Defense\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"I gain a +1 bonus to AC\"),\r\n\t\t\textraAC : { mod : 1 }\r\n\t\t},\r\n\t\t\"indomitable\" : {\r\n\t\t\tname : \"Indomitable\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can reroll a failed saving throw, but must keep the new result\",\r\n\t\t\t\t\"I can use this once per long rest (twice at 20th-level)\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 11 ? \"\" : n < 20 ? 1 : 2 }),\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// Add three subclasses to the spellcaster sidekick\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"mage\", {\r\n\tregExpSearch : /^(?=.*mage)(?=.*sidekick).*$/i,\r\n\tsubname : \"Mage\",\r\n\tfullname : \"Spellcaster: Mage (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 4,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast wizard cantrips/spells I know, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"I can use an arcane focus as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"healer\", {\r\n\tregExpSearch : /^(?=.*healer)(?=.*sidekick).*$/i,\r\n\tsubname : \"Healer\",\r\n\tfullname : \"Spellcaster: Healer (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 5,\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"druid\"],\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast cleric and druid cantrips/spells I know, using Wisdom as my spellcasting ability\",\r\n\t\t\t\t\"I can use a holy symbol or druidic focus as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"prodigy\", {\r\n\tregExpSearch : /^(?=.*prodigy)(?=.*sidekick).*$/i,\r\n\tsubname : \"Prodigy\",\r\n\tfullname : \"Spellcaster: Prodigy (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 6,\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"bard\", \"warlock\"],\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast bard and warlock cantrips/spells I know, using Cha as my spellcasting ability\",\r\n\t\t\t\t\"I can use an arcane focus or musical instrument as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\n\n// pub_20201117_TCoE.js\r\n// This file adds the content from Tasha's Cauldron of Everything to MPMB's Character Record Sheet\r\n\r\n/*\tACKNOWLEDGEMENTS\r\n\tThis file contains contributions from many different people over on the /r/mpmb subreddit and\r\n\tthe MPMB Discord server.\r\n\r\n\tMany contributions have been reworked by Safety-Orange to fix bugs, make texts more uniform,\r\n\tadhere to MPMB's standards, and/or adhere to the latest syntax version.\r\n\tCombined with the fact that many contributions haven't been individually tracked (on GitHub),\r\n\tit is no longer possible to assign specific additions to a single person.\r\n\r\n\tInstead, here is a list of people (account names on GitHub) who made contributions,\r\n\thelped collect materials, or were otherwise essential to this script coming to fruition,\r\n\tin no particular order:\r\n\t\t- Nod_Hero#2046 (Discord)\r\n\t\t- Smashman\r\n\t\t- Metacomet10\r\n\t\t- BraabHimself\r\n\t\t- AelarTheElfRogue\r\n\t\t- uhohspaghetti0\r\n\t\t- Undrhil\r\n\t\t- easyboy\r\n\t\t- SoggieWafflz\r\n\t\t- phelot\r\n\t\t- Cosaur\r\n\t\t- remcovandalen\r\n\t\t- Seneschal55\r\n\t\t- Gam90\r\n\t\t- CountVladmir\r\n\t\t- alastairmarchant\r\n\t\t- edimshuffling\r\n\t\t- githubtkompare\r\n\t\t- Holynight6\r\n\t\t- lizrdgizrd\r\n\r\n\tThink you're missing from this list? Please let me know!\r\n*/\r\n\r\n// Define the source\r\nSourceList.T = {\r\n\tname : \"Tasha's Cauldron of Everything\",\r\n\tabbreviation : \"TCoE\",\r\n\tabbreviationSpellsheet : \"T\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/tashas-cauldron-everything\",\r\n\tdate : \"2020/11/17\"\r\n};\r\n\r\n// Add Custom Lineage\r\nRaceList[\"custom lineage\"] = {\r\n\tregExpSearch : /^(?=.*custom)(?=.*lineage).*$/i,\r\n\tname : \"Custom lineage\",\r\n\tsource : [[\"T\", 8]],\r\n\tplural : \"Custom lineages\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscorestxt : \"+2 to one ability score of my choice\",\r\n\teval : function() { AddString('Feat Note 1', 'Custom lineage bonus feat', '; '); },\r\n\tremoveeval : function() { RemoveString('Feat Note 1', 'Custom lineage bonus feat'); },\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I gain either darkvision with a range of 60 ft or proficiency with a skill of my choice. Use the Racial Options button to select either one.\"\r\n\t])\r\n};\r\nAddRacialVariant(\"custom lineage\", \"darkvision\", {\r\n\tregExpSearch : /darkvision/i,\r\n\tsource : [[\"T\", 8]],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I have darkvision with a range of 60 ft.\"\r\n\t])\r\n});\r\nAddRacialVariant(\"custom lineage\", \"skill proficiency\", {\r\n\tregExpSearch : /skill proficiency/i,\r\n\tsource : [[\"T\", 8]],\r\n\tskillstxt : \"Choose any one skill\",\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I have proficiency with a skill of my choice.\"\r\n\t])\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Artificer Class >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// New Artificer Infusions\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Arcane Propulsion Armor (prereq: level 14 artificer)\", {\r\n\tname : \"Arcane Propulsion Armor\",\r\n\tsource : [[\"T\", 20]],\r\n\tdescription : desc([\r\n\t\t\"The armor replaces any missing limbs of the wearer and can't be removed against its will\",\r\n\t\t\"It increases the wearer's walking speed by 5 ft; Its gauntlet can be used as melee weapons\"\r\n\t]),\r\n\tadditional : \"suit of armor; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 14; },\r\n\tmagicitemsAdd : [\"Arcane Propulsion Armor\"]\r\n});\r\nMagicItemsList[\"arcane propulsion armor\"] = {\r\n\tname : \"Arcane Propulsion Armor\",\r\n\tnameTest : /arcane.propulsion.*armou?r/i,\r\n\tsource : [[\"T\", 20]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\tdescriptionFull : \"The wearer of this armor gains these benefits:\\n \\u2022 The wearer's walking speed increases by 5 feet.\\n \\u2022 The armor includes gauntlets, each of which is a magic melee weapon that can be wielded only when the hand is holding nothing. The wearer is proficient with the gauntlets, and each one deals 1d8 force damage on a hit and has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When thrown, the gauntlet detaches and flies at the attack's target, then immediately returns to the wearer and reattaches.\\n \\u2022 The armor can't be removed against the wearer's will.\\n \\u2022 If the wearer is missing any limbs, the armor replaces those limbs\\u2014hands, arms, feet, legs, or similar appendages. The replacements function identically to the body parts they replace.\",\r\n\tdescription : \"This armor replaces any missing limbs, increases my walking speed by 5 ft, and can't be removed against my will. I can use either empty-handed gauntlet as a proficient melee weapon with the thrown property. After a throwing attack with a gauntlet, it returns and reattaches immediately.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Arcane Propulsion\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Arcane Propulsion\"]\r\n\t},\r\n\tspeed : { walk : { spd : \"+5\", enc : \"+5\" } },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arcane)(?=.*propulsion)(?=.*gauntlet).*$/i,\r\n\t\tname : \"Arcane Propulsion Gauntlets\",\r\n\t\tsource : [[\"T\", 20]],\r\n\t\tability : 1,\r\n\t\ttype : \"AlwaysProf\",\r\n\t\tdamage : [1, 8, \"force\"],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Thrown; Returns immediately after thrown\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Magical Strength\", {\r\n\tname : \"Armor of Magical Strength\",\r\n\tsource : [[\"T\", 20]],\r\n\tdescription : desc([\r\n\t\t\"The armor has 6 charges, regaining 1d6 expended charges daily at dawn\",\r\n\t\t\"As a reaction when being knocked prone, the wearer can use 1 charge to not be prone\",\r\n\t\t\"When making a Str check/save, the wearer can use 1 charge to add its Int mod to the roll\"\r\n\t]),\r\n\tadditional : \"suit of armor; requires attunement\",\r\n\tmagicitemsAdd : [\"Armor of Magical Strength\"]\r\n});\r\nMagicItemsList[\"armor of magical strength\"] = {\r\n\tname : \"Armor of Magical Strength\",\r\n\tnameTest : \"of Magical Strength\",\r\n\tsource : [[\"T\", 20]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\tdescriptionFull : \"This armor has 6 charges. The wearer can expend the armor's charges in the following ways:\\n \\u2022 When the wearer makes a Strength check or a Strength saving throw, it can expend 1 charge to add a bonus to the roll equal to its Intelligence modifier.\\n \\u2022 If the creature would be knocked prone, it can use its reaction to expend 1 charge to avoid being knocked prone.\\nThe armor regains 1d6 expended charges daily at dawn.\",\r\n\tdescription : \"This armor has 6 charges and regains 1d6 expended charges daily at dawn. As a reaction when I would be knocked prone, I can expend 1 charge to avoid being knocked prone. When I make a Strength check or Strength saving throw, I can expend 1 charge to add my Intelligence modifier to the roll.\",\r\n\tattunement : true,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"prefix\"\r\n\t},\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\"\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Helm of Awareness (prereq: level 10 artificer)\", {\r\n\tname : \"Helm of Awareness\",\r\n\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\tdescription: desc(\"The wearer has advantage on Initiative rolls and can't be surprised while not incapacitated\"),\r\n\tadditional : \"helmet; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 10; },\r\n\tmagicitemsAdd : [\"Helm of Awareness\"]\r\n});\r\nMagicItemsList[\"helm of awareness\"] = {\r\n\tname : \"Helm of Awareness\",\r\n\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While wearing this helmet, I have advantage on initiative rolls. In addition, I can't be surprised, provided I'm not incapacitated.\",\r\n\tdescriptionFull : \"While wearing this helmet, a creature has advantage on initiative rolls. In addition, the wearer can't be surprised, provided it isn't incapacitated.\",\r\n\tattunement : true,\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tsavetxt : { immune : [\"surprised\"] }\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Mind Sharpener\", {\r\n\tname : \"Mind Sharpener\",\r\n\tsource : [[\"T\", 22]],\r\n\tdescription: desc(\"The wearer can use its reaction to ignore a failed Con save to maintain concentration\"),\r\n\tadditional : \"suit of armor or robes\",\r\n\tmagicitemsAdd : [\"Mind Sharpener\"]\r\n});\r\nMagicItemsList[\"mind sharpener\"] = {\r\n\tname : \"Mind Sharpener\",\r\n\tsource : [[\"T\", 22]],\r\n\tdescriptionFull : \"The infused item can send a jolt to the wearer to refocus their mind. The item has 4 charges. When the wearer fails a Constitution saving throw to maintain concentration on a spell, the wearer can use its reaction to expend 1 of the item's charges to succeed instead. The item regains 1d4 expended charges daily at dawn.\",\r\n\tdescription : \"This magic armor or robes can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\tchoices : [\"Mind Sharpener Armor\", \"Mind Sharpener Robes\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"mind sharpener armor\" : {\r\n\t\tname : \"Mind\\u200A Sharpener\",\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"This magic armor can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\titemName1stPage : [\"suffix\", \"Mind Sharpener\"],\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t\t}\r\n\t},\r\n\t\"mind sharpener robes\" : {\r\n\t\tname : \"Mind Sharpener (Robes)\",\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"These magic robes can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\"\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Spell-Refueling Ring (prereq: level 6 artificer)\", {\r\n\tname : \"Spell-Refueling Ring\",\r\n\tsource : [[\"T\", 23]],\r\n\tdescription: desc(\"As an action once per dawn, this ring's wearer can recover one 3rd-level or lower spell slot\"),\r\n\tadditional : \"ring; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\tmagicitemsAdd : [\"Spell-Refueling Ring\"]\r\n});\r\nMagicItemsList[\"spell-refueling ring\"] = {\r\n\tname : \"Spell-Refueling Ring\",\r\n\tsource : [[\"T\", 23]],\r\n\ttype : \"ring\",\r\n\tdescriptionFull : \"While wearing this ring, the creature can recover one expended spell slot as an action. The recovered slot can be of 3rd level or lower. Once used, the ring can't be used again until the next dawn.\",\r\n\tdescription : \"As an action, I can activate this magic ring to recover one expended spell slot. The recovered slot can be of 3rd level or lower. Once used, the ring can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\n\r\n// Add the Armorer specialism (but after all other scripts, so that all armour options are present)\r\nRunFunctionAtEnd(function () {\r\n\tvar TCoE_Artificer_Subclass_Armorer = AddSubClass(\"artificer\", \"armorer\", {\r\n\t\tregExpSearch : /^(?=.*armou?rer)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Armorer\",\r\n\t\tfullname : \"Armorer\",\r\n\t\tsource : [[\"T\", 15]],\r\n\t\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools of the Trade\",\r\n\t\t\t\tsource : [[\"T\", 15]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with heavy armor \\u0026 smith's tools]\",\r\n\t\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\t\tspellcastingExtra : [\"magic missile\", \"thunderwave\", \"mirror image\", \"shatter\", \"hypnotic pattern\", \"lightning bolt\", \"fire shield\", \"greater invisibility\", \"passwall\", \"wall of force\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Arcane Armor\",\r\n\t\t\t\tsource : [[\"T\", 15]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [reverts back if I die or don another armor]\" + desc([\r\n\t\t\t\t\t\"As an action, I can use smith's tool to turn an armor I'm wearing into arcane armor\",\r\n\t\t\t\t\t\"As an action, I can don or doff it; As a bonus action, I can deploy or retract its helmet\",\r\n\t\t\t\t\t\"It can't be removed against my will, covers all my limbs, and even replaces missing limbs\",\r\n\t\t\t\t\t\"I ignore the Strength requirement of arcane armor and can use it as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (create/don/doff)\"], [\"bonus action\", \" (retract/deploy helmet)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.2\" : {\r\n\t\t\t\tname : \"Armor Model\",\r\n\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a rest, I can use smith's tools to change the model of my arcane armor\",\r\n\t\t\t\t\t'Select a model using the \"Choose Feature\" button; See \"Notes\" page for features of each'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"also see notes page\",\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Arcane Armor Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"I can customize my arcane armor to the guardian or infiltrator model whenever I finish a short or long rest, provided I have smith's tools in hand.\",\r\n\t\t\t\t\t\t\"Each model includes a special weapon. When I attack with that weapon, I can use my Intelligence modifier, instead of Strength or Dexterity, for the attack and damage rolls.\"\r\n\t\t\t\t\t])\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Guardian Arcane Armor\",\r\n\t\t\t\t\tpopupName : \"Guardian Arcane Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"\\u2022 Thunder Gauntlets: Each of the armor's gauntlets counts as a simple melee weapon while I'm not holding anything in it, and it deals 1d8 thunder damage on a hit. A creature hit by the gauntlet has disadvantage on attack rolls against targets other than me until the start of me next turn, as the armor magically emits a distracting pulse when the creature attacks someone else.\",\r\n\t\t\t\t\t\t\"\\u2022 Defensive Field: As a bonus action, I can gain temporary hit points equal to my artificer level, replacing any temporary hit points I already have. I lose these temporary hit points if I doff the armor. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when I finish a long rest.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infiltrator Arcane Armor\",\r\n\t\t\t\t\tpopupName : \"Infiltrator Arcane Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"\\u2022 Lightning Launcher: A gemlike node on one of the armored fists or on the chest (my choice) counts as a simple ranged weapon, with a normal range of 90 ft and a long range of 300 ft. It deals 1d6 lightning damage on a hit. Once on each of my turns when I hit a creature with it, I can deal an extra 1d6 lightning damage to that target.\",\r\n\t\t\t\t\t\t\"\\u2022 Powered Steps: My walking speed increases by 5 feet.\",\r\n\t\t\t\t\t\t\"\\u2022 Dampening Field: I have advantage on Dexterity (Stealth) checks. If the armor normally imposes disadvantage on such checks, the advantage and disadvantage cancel each other, as normal.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [],\r\n\t\t\t\tchoiceDependencies : [{\r\n\t\t\t\t\tfeature : \"subclassfeature15\",\r\n\t\t\t\t\tchoiceAttribute : true\r\n\t\t\t\t}],\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*thunder)(?=.*gauntlet).*$/i,\r\n\t\t\t\t\tname : \"Thunder Gauntlets\",\r\n\t\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 8, \"thunder\"],\r\n\t\t\t\t\trange : \"Melee\",\r\n\t\t\t\t\tdescription : \"Target hit disadv. on attacks vs. others than me until my next turn starts\",\r\n\t\t\t\t\tabilitytodamage : true,\r\n\t\t\t\t\tmonkweapon : true\r\n\t\t\t\t}, {\r\n\t\t\t\t\tregExpSearch : /^(?=.*lightning)(?=.*launcher).*$/i,\r\n\t\t\t\t\tname : \"Lightning Launcher\",\r\n\t\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 6, \"lightning\"],\r\n\t\t\t\t\trange : \"90/300 ft\",\r\n\t\t\t\t\tdescription : \"Once per turn on hit, +1d6 lightning damage\",\r\n\t\t\t\t\tabilitytodamage : true\r\n\t\t\t\t}],\r\n\t\t\t\t// Do this in the parent object, so that it is always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"bonus action\", \"Defensive Field (Guardian Model)\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Defensive Field (Guardian Model)\",\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Armor Modifications\",\r\n\t\t\t\tsource : [[\"T\", 17]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Arcane armor now counts as armor, boots, helmet, and a weapon for holding infusions\",\r\n\t\t\t\t\t\"Each can hold one infusion; The infusions remain when I change the armor's model\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"+2 infused items if\" + (typePF ? \"\" : \" used\") + \" on arcane armor\",\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Perfected Armor\",\r\n\t\t\t\tsource : [[\"T\", 17]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t'My armor gets additional features, based on the model; Use \"Choose Feature\" to select it',\r\n\t\t\t\t\t\"The guardian gets the ability to pull a creature closer as a reaction and make an attack\",\r\n\t\t\t\t\t\"The infiltrator gets an upgrade to its lightning launcher weapon attack\"\r\n\t\t\t\t]),\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Guardian Perfected Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Tinkering with my armor's energy system leads me to discover a powerful pulling force.\",\r\n\t\t\t\t\t\t\"As a reaction when a Huge or smaller creature I can see ends its turn within 30 ft of me, I can magically force the creature to make a Strength saving throw against my spell save DC, pulling the creature up to 30 ft toward me to an unoccupied space. If I pull the target to a space within 5 ft of me, I can make a melee weapon attack against it as part of this reaction.\",\r\n\t\t\t\t\t\t\"I can use this reaction a number of times equal to my proficiency bonus. I regain all expended uses of it when I finish a long rest.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infiltrator Perfected Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Any creature that takes lightning damage from my Lightning Launcher glimmers with magical light until the start of my next turn.\",\r\n\t\t\t\t\t\t\"The glimmering creature sheds dim light in a 5-ft radius, and it has disadvantage on attack rolls against me, as the light jolts it if it attacks me. In addition, the next attack roll against it has advantage, and if that attack hits, the target takes an extra 1d6 lightning damage.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"guardian\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tadditional: \"Proficiency Bonus per long rest\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn in 30 ft, I have it make a Str save\",\r\n\t\t\t\t\t\t\"If it is Huge or smaller and fails, I pull it up to 30 ft towards me to an unoccupied space\",\r\n\t\t\t\t\t\t\"If I pull it within 5 ft, I can make a melee weapon attack vs. it as part of this reaction\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t\"infiltrator\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Infiltrator\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"Those hit by my lightning launcher shed 5-ft radius dim light until my next turn starts\",\r\n\t\t\t\t\t\t\"The light gives the target disadvantage on attacks rolls made against me\",\r\n\t\t\t\t\t\t\"Also, the next attack against it has advantage and deals an extra 1d6 lightning damage\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t// Do these in the parent object, so that they are always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"reaction\", \"Perfected Armor: Guardian\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tvar itsFea = ClassSubList[TCoE_Artificer_Subclass_Armorer].features[\"subclassfeature3.2\"];\r\n\tvar guardianTxt = desc([\r\n\t\t\"Both fists are Thunder Gauntlets, simple melee weapons that distract those hit by it\",\r\n\t\t\"As a bonus action, I can activate a defensive shield to gain my artificer level in temp HP\"\r\n\t])\r\n\tvar guardianAdditional = levels.map(function (n) {\r\n\t\treturn n + \" temp HP, Prof B. per long rest\";\r\n\t})\r\n\tvar infiltratorTxt = desc([\r\n\t\t\"+5 ft walking speed; Gemlike node in fist/chest is a ranged weapon, Lightning Launcher\",\r\n\t\t\"It gives me advantage on Dexterity (Stealth) checks\"\r\n\t])\r\n\tvar prereqFunc = function(v) {\r\n\t\tvar sParsed = ParseArmor(v.choice.replace(/(Guardian|Infiltrator) arcane /i, ''));\r\n\t\treturn sParsed && testSource(sParsed, ArmourList[sParsed], \"armorExcl\") ? \"skip\" : true;\r\n\t};\r\n\tfor (var armor in ArmourList) {\r\n\t\tvar anArm = ArmourList[armor];\r\n\t\tif (anArm.isMagicArmor || !anArm.weight || (CurrentVars.extraArmour && CurrentVars.extraArmour[armor])) continue;\r\n\t\t// Add the Guardian variant of the armor\r\n\t\tvar gArmName = \"Guardian Arcane \" + anArm.name;\r\n\t\titsFea[gArmName.toLowerCase()] = {\r\n\t\t\tname : (typePF ? \"Armor \" : \"\") + \"Model: Guardian \" + anArm.name,\r\n\t\t\tsubmenu : \"Guardian Arcane Armor\",\r\n\t\t\tdescription : guardianTxt,\r\n\t\t\tadditional : guardianAdditional,\r\n\t\t\tarmorAdd : { select : gArmName, options : [gArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Thunder Gauntlets\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tdependentChoices : \"guardian\"\r\n\t\t}\r\n\t\t// And now add the Infiltrator variant of the armor\r\n\t\tvar iArmName = \"Infiltrator Arcane \" + anArm.name;\r\n\t\titsFea[iArmName.toLowerCase()] = {\r\n\t\t\tname : \"Armor Model: Infiltrator \" + anArm.name,\r\n\t\t\tsubmenu : \"Infiltrator Arcane Armor\",\r\n\t\t\tdescription : infiltratorTxt + (anArm.stealthdis ? \", cancelling out the disadv. it imposes\" : \"\"),\r\n\t\t\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } },\r\n\t\t\tarmorAdd : { select : iArmName, options : [iArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Lightning Launcher\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tadvantages : [[\"Stealth\", true]],\r\n\t\t\tdependentChoices : \"infiltrator\"\r\n\t\t}\r\n\t\t// Lastly push both choices to the array\r\n\t\titsFea.choices.push(gArmName, iArmName);\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Barbarian Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Barbarian Optional Class Features\r\nAddFeatureChoice(ClassList.barbarian.features[\"danger sense\"], true, \"Primal Knowledge\", {\r\n\tname : \"Primal Knowledge\",\r\n\textraname : \"Optional Barbarian 3\",\r\n\tsource : [[\"T\", 24]],\r\n\tdescription : desc([\r\n\t\t\"At 3rd level and again at 10th level I gain proficiency with one skill of my choice\",\r\n\t\t\"I can choose from Animal Handling, Athletics, Intimidation, Nature, Perception, Survival\"\r\n\t]),\r\n\tskillstxt : \"Choose one from Animal Handling, Athletics, Intimidation, Nature, Perception and Survival.\\nChoose another from this list at 10th level\",\r\n\tprereqeval : function (v) { return classes.known.barbarian.level >= 3 ? true : \"skip\"; }\r\n}, \"Optional 3rd-level barbarian features\");\r\nAddFeatureChoice(ClassList.barbarian.features[\"feral instinct\"], true, \"Instinctive Pounce\", {\r\n\tname : \"Instinctive Pounce\",\r\n\textraname : \"Optional Barbarian 7\",\r\n\tsource : [[\"T\", 24]],\r\n\tdescription : desc([\r\n\t\t\"As part of the bonus action I use to enter rage, I can move up to half my speed\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"Rage (start & half move / end)\", \"Rage (start/end)\"]]\r\n}, \"Optional 7th-level barbarian features\");\r\n\r\n// Barbarian Subclasses\r\nAddSubClass(\"barbarian\", \"path of the beast\", {\r\n\tregExpSearch : /^(?=.*\\bbeast\\b)(?=.*(warrior|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Beast\",\r\n\tsubnameShort: \"Beast\",\r\n\tsource : [[\"T\", 24]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Form of the Beast\",\r\n\t\t\tsource : [[\"T\", 24]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my rage, I can transform to gain a bite, tail, or claws attack for that rage\",\r\n\t\t\t\t\"On a hit with the bite attack once on each of my turns, I can heal my Prof Bonus in HP\",\r\n\t\t\t\t\"This only works if I have less than half my hit points when I hit with this bite attack\",\r\n\t\t\t\t\"With the claws I can make one extra attack when I attack with it in my Attack action\",\r\n\t\t\t\t\"As a reaction with the tail when I'm hit, I can add 1d8 to my AC for that attack\",\r\n\t\t\t\t\"This only works if the hit is from an attack roll made a creature I can see within 30 ft\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*bite).*$/i,\r\n\t\t\t\tname : \"Bestial Bite\",\r\n\t\t\t\tsource : [[\"T\", 24]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; On a hit once on my turn, regain Prof Bonus in HP (if below 1/2 HP)\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*claws?).*$/i,\r\n\t\t\t\tname : \"Bestial Claws\",\r\n\t\t\t\tsource : [[\"T\", 24]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; Extra attack if used as part of Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*tail).*$/i,\r\n\t\t\t\tname : \"Bestial Tail\",\r\n\t\t\t\tsource : [[\"T\", 25]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Reach; Only in rage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"chosen weapon counts as magical\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"Bestial Tail\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bestial Soul\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can choose one of the following benefits until my next rest:\",\r\n\t\t\t\t\" \\u2022 Swimming speed equal to my walking speed and I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 Climb speed (same as walking) and no check to climb difficult surfaces or upside down\",\r\n\t\t\t\t\" \\u2022 Once per turn when I jump, I can extend it by the result of an Athletics check in feet\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.bestialNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The natural melee weapon that I gain from Form of the Beast count as magical for the purpose of overcoming resistance and immunity to nonmagical attacks and damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Infectious Fury\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In rage, when I hit a creature with my natural weapon, I can have it make a Wis save\",\r\n\t\t\t\t\"If it fails (DC 8 + my Prof Bonus + my Con mod) it suffers one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 It uses its reaction to make a melee attack against one creature I can see of my choice\",\r\n\t\t\t\t\" \\u2022 It takes 2d12 psychic damage\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Call the Hunt\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter rage, I can choose my Con mod of willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"Once on each of their turns, if they hit an attack, they can have it deal +1d6 damage\",\r\n\t\t\t\t\"This lasts as long as I rage; I gain 5 temporary HP per creature that accepts this benefit\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"path of wild magic\", {\r\n\tregExpSearch : /^(?=.*\\bwild\\b)(?=.*\\bmagic\\b).*$/i,\r\n\tsubname : \"Path of Wild Magic\",\r\n\tsubnameShort: \"Wild Magic\",\r\n\tsource : [[\"T\", 25]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Magic Awareness\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can open my awareness to the presence of concentrated magic\",\r\n\t\t\t\t\"Until my next turn ends, I know the location of any spell or magic item within 60 ft\",\r\n\t\t\t\t\"I also learn the school of magic of a spell; This doesn't reveal anything behind total cover\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wild Surge\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Whenever I enter my rage, I roll on the Wild Magic table (see Notes page)\"),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Magic Table\",\r\n\t\t\t\tsource : [[\"T\", 26]],\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"The magical energy roiling inside me sometimes erupts from me. Whenever I enter my rage, I have to roll on the table below to see what happens.\",\r\n\t\t\t\t\t\"If the effect calls for a saving throw, the DC is equal to 8 + my proficiency bonus + my Constitution modifier.\\n\",\r\n\t\t\t\t\t\"d8\\tEFFECT\",\r\n\t\t\t\t\t\" 1\\tShadowy tendrils lash around me. Each creature of my choice that I can see within 30 ft of me must succeed on a Constitution saving throw or take 1d12 necrotic damage. I also gain 1d12 temporary hit points.\",\r\n\t\t\t\t\t\" 2\\tI teleport up to 30 ft to an unoccupied space I can see. Until my rage ends, I can use this effect again on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 3\\tAn intangible spirit, which looks like a flumph or a pixie (my choice), appears within 5 ft of one creature of my choice that I can see within 30 ft of me. At the end of the current turn, the spirit explodes, and each creature within 5 ft of it must succeed on a Dexterity saving throw or take 1d6 force damage. Until my rage ends, I can use this effect again, summoning another spirit, on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 4\\tMagic infuses one weapon of my choice that I am holding. Until my rage ends, the weapon's damage type changes to force, and it gains the light and thrown properties, with a normal range of 20 ft and a long range of 60 ft. If the weapon leaves my hand, the weapon reappears in my hand at the end of the current turn.\",\r\n\t\t\t\t\t\" 5\\tWhenever a creature hits me with an attack roll before my rage ends, that creature takes 1d6 force damage, as magic lashes out in retribution.\",\r\n\t\t\t\t\t\" 6\\tUntil my rage ends, I am surrounded by multicolored, protective lights; I gain a +1 bonus to AC, and while within 10 ft of me, my allies gain the same bonus.\",\r\n\t\t\t\t\t\" 7\\tFlowers and vines temporarily grow around me; until my rage ends, the ground within 15 ft of me is difficult terrain for my enemies.\",\r\n\t\t\t\t\t\" 8\\tA bolt of light shoots from my chest. Another creature of my choice that I can see within 30 ft of me must succeed on a Constitution saving throw or take 1d6 radiant damage and be blinded until the start of my next turn. Until my rage ends, I can use this effect again on each of my turns as a bonus action.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bolstering Magic\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can touch a creature or myself and confer one of the following benefits:\",\r\n\t\t\t\t\" \\u2022 For 10 minutes, they can add 1d3 to any attack roll and ability check\",\r\n\t\t\t\t\" \\u2022 Roll 1d3. They regain an expended spell slot of a level equal to or lower than the roll\",\r\n\t\t\t\t\"A creature that receives the second benefit can't receive it again until after a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Unstable Backlash\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction in rage when taking damage or failing a save, I can lash out with magic\",\r\n\t\t\t\t\"I roll on the Wild Magic table and immediately apply the roll, replacing my current effect\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in rage on damage/save fail)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Controlled Surge\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I roll on the Wild Magic table, I can roll two dice and choose which to use\",\r\n\t\t\t\t\"If I roll the same on both dice, I can instead choose any effect on the Wild Magic table\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n// >>> Bard Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Bard Optional Class Features\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Additional Bard Spells\", {\r\n\tname : \"Additional Bard Spells\",\r\n\tsource : [[\"T\", 27]],\r\n\textraname : \"Optional Bard 1\",\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"color spray\", \"command\", \"aid\", \"enlarge/reduce\", \"mirror image\", \"mass healing word\", \"slow\", \"phantasmal killer\", \"rary's telepathic bond\", \"heroes' feast\", \"prismatic spray\", \"antipathy/sympathy\", \"prismatic wall\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the bard class with the following spells (spell level in brackets): Color Spray (1), Command (1), Aid (2), Enlarge/Reduce (2), Mirror Image (2), Mass Healing Word (3), Slow (3), Phantasmal Killer (4), Rary's Telepathic Bond (5), Heroes' Feast (6), Prismatic Spray (7), Antipathy/Sympathy (8), and Prismatic Wall (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features[\"jack of all trades\"], true, \"Magical Inspiration\", {\r\n\tname : \"Magical Inspiration\",\r\n\textraname : \"Optional Bard 2\",\r\n\tsource : [[\"T\", 27]],\r\n\tdescription : desc([\r\n\t\t\"A bardic inspiration die recipient can also use it when casting a damaging or healing spell\",\r\n\t\t\"They can expend the die and add it to healing or damage dealt to one target of the spell\"\r\n\t])\r\n}, \"Optional 2nd-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features[\"song of rest\"], true, \"Bardic Versatility\", {\r\n\tname : \"Bardic Versatility\",\r\n\textraname : \"Optional Bard 4\",\r\n\tsource : [[\"T\", 28]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the bard class, I can change one cantrip or expertise choice\",\r\n\t\t\"I can select another cantrip from the bard spell list or another skill I'm proficient with\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.bard.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level bard features\");\r\n\r\n// Bard Subclasses\r\nAddSubClass(\"bard\", \"college of creation\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*creation).*$/i,\r\n\tsubname : \"College of Creation\",\r\n\tsubnameShort: \"Creation\",\r\n\tsource : [[\"T\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mote of Potential\",\r\n\t\t\tsource : [[\"T\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Those who use my Bardic Inspiration die gain an extra bonus depending how they use it:\",\r\n\t\t\t\t\"\\u2022 Ability check: Roll the die twice and choose which result to use\",\r\n\t\t\t\t\"\\u2022 Attack roll: the target and others of my choice I can see in 5 ft must make a Con save\",\r\n\t\t\t\t\"  If failed, they take the die roll in thunder damage; This uses my spell save DC\",\r\n\t\t\t\t\"\\u2022 Saving throw: Grants temporary HP equal to the roll + my Cha mod (min 1 temp HP)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Performance of Creation\",\r\n\t\t\tsource : [[\"T\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tif (n < 14) {\r\n\t\t\t\t\tvar descr = [\r\n\t\t\t\t\t\t\"As an action, I create \" + (n < 6 ? \"a Medium\" : \"one Large\") + \" or smaller nonmagical item in an empty space in 10 ft\",\r\n\t\t\t\t\t\t\"It can't be worth more than \" + (20 * n) + \" gp; It lasts for my Proficiency Bonus in hours\",\r\n\t\t\t\t\t\t\"I can't have multiple, creating more makes the first one vanish\",\r\n\t\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t\t];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar descr = [\r\n\t\t\t\t\t\t\"As an action, I create my Charisma mod of nonmagical items in an empty space in 10 ft\",\r\n\t\t\t\t\t\t\"One can be Huge, the rest Small or smaller; They last for my Proficiency Bonus in hours\",\r\n\t\t\t\t\t\t\"I can't have more than my Cha mod; If I create more, I get to choose which vanish\",\r\n\t\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t\t];\r\n\t\t\t\t}\r\n\t\t\t\treturn desc(descr);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 2+\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Animating Performance\",\r\n\t\t\tsource : [[\"T\", 29]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can animate a Large or smaller nonmagical item I can see within 30 ft\",\r\n\t\t\t\t\"It is friendly and obeys my commands; It lasts for 1 hour, until it has 0 HP, or I die\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can take reactions and move on its turn without commands; I can't have multiple\",\r\n\t\t\t\t\"When I use bardic inspiration, I can command the item as part of the same bonus action\",\r\n\t\t\t\t'It acts on my initiative, after me; See \"Dancing Item\" on a companion page for its stats',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Dancing Item\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tcreaturesAdd : [[\"Dancing Item\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Dancing Item\",\r\n\t\t\t\tsource : [[\"T\", 29]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 16,\r\n\t\t\t\thp : 25,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"fly 30 ft (hover)\",\r\n\t\t\t\tscores : [18, 14, 16, 4, 10, 6],\r\n\t\t\t\tdamage_immunities : \"poison, psychic\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned, frightened\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1/2\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Slam\",\r\n\t\t\t\t\tability : 6,\r\n\t\t\t\t\tdamage : [1, 10, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"bard\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Variable Size\",\r\n\t\t\t\t\tdescription : \"The item animated can be Large or smaller.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The item obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Immutable Form\",\r\n\t\t\t\t\tdescription : \"The item is immune to any spell or effect that would alter its form.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Irrepressible Dance\",\r\n\t\t\t\t\tdescription : \"When any creature starts its turn within 10 ft of the item, the item can increase or decrease (its creator's choice) the walking speed of that creature by 10 ft until the end of the turn, provided the item isn't incapacitated.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : 'Animated',\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.bard) return;\r\n\t\t\t\t\t\tvar brdLvl = classes.known.bard.level;\r\n\t\t\t\t\t\tvar brdLvl5 = 5 * brdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(10 + brdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + brdLvl + \" from five times its creator's bard level (\" + brdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Creative Crescendo\",\r\n\t\t\tsource : [[\"T\", 29]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [enhances Performance of Creation]\"\r\n\t\t}\r\n\t}\r\n});\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Cleric Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Cleric Optional Class Features\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Additional Cleric Spells\", {\r\n\tname : \"Additional Cleric Spells\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"T\", 30]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"aura of vitality\", \"aura of life\", \"aura of purity\", \"sunbeam\", \"sunburst\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the cleric class with the following spells (spell level in brackets): Aura of Vitality (3), Aura of Life (4), Aura of Purity (4), Sunbeam (6), Sunburst (8), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"channel divinity\"], true, \"Harness Divine Power\", {\r\n\tname : \"Channel Divinity: Harness Divine Power\",\r\n\textraname : \"Optional Cleric 2\",\r\n\tsource : [[\"T\", 30]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can expend a use of my channel divinity to regain one used spell slot\",\r\n\t\t\"The level of this spell slot can be no more than half my Proficiency Bonus (rounded up)\",\r\n\t\t\"I can only do this so many times per long rest, even if I have uses of channel divinity left\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : levels.map(function(n) {\r\n\t\treturn n < 3 ? \"\" : n < 6 ? 1 : n < 18 ? 2 : 3;\r\n\t}),\r\n\trecovery : \"long rest\"\r\n}, \"Optional 2nd-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"turn undead\"], true, \"Cantrip Versatility\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Cleric 4\",\r\n\tsource : [[\"T\", 31]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the cleric class, I can change one cleric cantrip for another\",\r\n\tprereqeval : function (v) { return classes.known.cleric.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level cleric features\");\r\n// Cleric subclass alternative feature, so only run this after we are sure all subclasses have been added\r\nRunFunctionAtEnd(function() {\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar domain = ClassList.cleric.subclasses[1][i];\r\n\t\tvar objDomain = ClassSubList[domain];\r\n\t\tif (!objDomain || !objDomain.features.subclassfeature8 || !(/divine strike|potent spellcasting/i).test(objDomain.features.subclassfeature8.name)) continue;\r\n\t\tCreateClassFeatureVariant(domain, \"subclassfeature8\", \"Blessed Strikes\", {\r\n\t\t\tname : \"Blessed Strikes\",\r\n\t\t\tsource : [[\"T\", 31]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When my weapon attack or cantrip damages a creature, I can do +1d8 radiant damage\",\r\n\t\t\t\t\"Once I deal this extra damage, I can't do so again until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && (v.isWeapon || (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0)) && /\\d/.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per round +1d8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per round, when a creature takes damage from one of my spell or weapon attacks, I can also deal 1d8 radiant damage to the target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// Cleric Subclasses\r\nAddSubClass(\"cleric\", \"peace domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*peace).*$/i,\r\n\tsubname : \"Peace Domain\",\r\n\tsource : [[\"T\", 32]],\r\n\tspellcastingExtra : [\"heroism\", \"sanctuary\", \"aid\", \"warding bond\", \"beacon of hope\", \"sending\", \"aura of purity\", \"otiluke's resilient sphere\", \"greater restoration\", \"rary's telepathic bond\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Emboldening Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"As an action, I can magically bond my Prof Bonus of willing creatures I can see in 30 ft\",\r\n\t\t\t\t\t\"I can be one of the bonded creatures; The bond lasts for 10 min or until I use this again\",\r\n\t\t\t\t\t\"While within \" + (n < 17 ? 30 : 60) + \" ft of another, a bonded target can add +1d4 to a save, attack, or check\",\r\n\t\t\t\t\t\"Each creature can add the +1d4 only once per turn\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Implement of Peace\",\r\n\t\t\tdescription : desc(\"I gain proficiency in the Insight, Performance, or Persuasion skill (my choice)\"),\r\n\t\t\tskillstxt : \"Choose one from: Insight, Performance, or Persuasion\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Balm of Peace\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can move up to my speed without provoking opportunity attacks\",\r\n\t\t\t\t\"During this move, I can heal each creature that I come within 5 ft of once\",\r\n\t\t\t\t\"I restore a number of hit points equal to 2d6 + my Wisdom modifier (minimum 1 HP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Protective Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My Emboldening Bond now also helps those bonded to protect each other if within range\",\r\n\t\t\t\t\"When one is about to take damage, another bonded can use its reaction to teleport closer\",\r\n\t\t\t\t\"They teleport to an empty space within 5 ft of the first and take all the damage instead\",\r\n\t\t\t\t\"From 17th-level, they count as having resistance for this damage, thus take only half\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"the bonded must be within \" + (n < 17 ? 30 : 60) + \" ft\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Expansive Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Emboldening and Protective Bond work when the bonded are within 60 ft of each other\",\r\n\t\t\t\t\"Protective Bond now also grants resistance when used to take damage for another\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"twilight domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(twilight|transition)).*$/i,\r\n\tsubname : \"Twilight Domain\",\r\n\tsubnameShort: \"Twilight\",\r\n\tsource : [[\"T\", 34]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"moonbeam\", \"see invisibility\", \"aura of vitality\", \"leomund's tiny hut\", \"aura of life\", \"greater invisibility\", \"circle of power\", \"mislead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"T\", 34]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of Night\",\r\n\t\t\tsource : [[\"T\", 34]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain darkvision out to a range of 300 ft; As an action, I can grant others this as well\",\r\n\t\t\t\t\"I can grant it for 1 hour to my Wis mod (min 1) of willing targets I can see within 10 ft\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (grant others)\"]],\r\n\t\t\tvision : [[\"Darkvision\", 300]],\r\n\t\t\tadditional : \"grant others\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Vigilant Blessing\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can grant myself or a creature I touch adv. on the next initiative roll\",\r\n\t\t\t\t\"This benefit ends immediately after the roll or when I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Twilight Sanctuary\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use my holy symbol to create a 30-ft radius sphere around myself\",\r\n\t\t\t\t\"It moves with me, is filled with dim light, and lasts for 1 min or until I'm incapacitated\",\r\n\t\t\t\t\"When a creature, including me, ends its turn inside the sphere, I can grant it a benefit:\",\r\n\t\t\t\t\" \\u2022 I grant it temporary hit points equal to 1d6 + my cleric level\",\r\n\t\t\t\t\" \\u2022 I end one effect on it causing it to be charmed or frightened\",\r\n\t\t\t\t\"From 17th-level onwards, me and my allies have half cover while inside the sphere\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"1d6 + \" + n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Steps of Night\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can magically grant myself flight\",\r\n\t\t\t\t\"I gain a flying speed equal to my walking speed for 1 minute\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 radiant damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra radiant damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Twilight Shroud\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Me and my allies have half cover while in the sphere created by my Twilight Sanctuary\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Druid Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Druid Optional Class Features\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Additional Druid Spells\", {\r\n\tname : \"Additional Druid Spells\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"T\", 35]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"protection from evil and good\", \"augury\", \"continual flame\", \"enlarge/reduce\", \"aura of vitality\", \"elemental weapon\", \"revivify\", \"divination\", \"fire shield\", \"cone of cold\", \"flesh to stone\", \"symbol\", \"incendiary cloud\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the druid class with the following spells (spell level in brackets): Protection from Evil and Good (1), Augury (2), Continual Flame (2), Enlarge/Reduce (2), Aura of Vitality (3), Elemental Weapon (3), Revivify (3), Divination (4), Fire Shield (4), Cone of Cold (5), Flesh to Stone (6), Symbol (7), and Incendiary Cloud (8).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\nvar TCoE_Wild_Companion = {\r\n\tname : \"Wild Companion\",\r\n\textraname : \"Optional Druid 2\",\r\n\tsource : [[\"T\", 35], [\"UA:CFV\", 4]],\r\n\tdescription : desc([\r\n\t\t\"I can expend a use of wild shape to cast Find Familiar without material components\",\r\n\t\t\"The familiar always has the Fey type and disappears after half my druid level in hours\"\r\n\t]),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn n < 2 ? \"\" : Math.floor(n/2) + \" hours\";\r\n\t}),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Wild Companion\",\r\n\t\tspells : [\"find familiar\"],\r\n\t\tselection : [\"find familiar\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"find familiar\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Gain the services of a fey familiar; can see through its eyes; it can deliver touch spells; see B\",\r\n\t\t\tduration : \"\\u00BD druid lvl h\",\r\n\t\t\tchanges : \"By using my Wild Companion class feature, I can expend a use of wild shape to cast Find Familiar without material components. The familiar created this way always has the Fey type and disappears after a number of hours equal to half my druid level.\"\r\n\t\t}\r\n\t}\r\n}\r\nAddFeatureChoice(ClassList.druid.features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", TCoE_Wild_Companion, \"Optional 2nd-level druid features\");\r\nif (ClassSubList[\"druid-circle of the moon\"]) {\r\n\tAddFeatureChoice(ClassSubList[\"druid-circle of the moon\"].features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", TCoE_Wild_Companion, \"Optional 2nd-level druid features\");\r\n}\r\nAddFeatureChoice(ClassList.druid.features.druidic, true, \"Cantrip Versatility\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Druid 4\",\r\n\tsource : [[\"T\", 35]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the druid class, I can change one druid cantrip for another\",\r\n\tprereqeval : function (v) { return classes.known.druid.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level druid features\");\r\n\r\n// Druid Subclasses\r\nAddSubClass(\"druid\", \"circle of the stars\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*circle)(?=.*stars).*$/i,\r\n\tsubname : \"Circle of the Stars\",\r\n\tsubnameShort: \"Stars\",\r\n\tsource : [[\"T\", 38]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Star Map\",\r\n\t\t\tsource : [[\"T\", 38]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I've created a star map, a Tiny object which I can use as my spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to create a replacement\",\r\n\t\t\t\t\"While holding it, I know the Guidance cantrip and always have Guiding Bolt prepared\",\r\n\t\t\t\t\"These count as druid spells, but do not count against the number of spells I can prepare\",\r\n\t\t\t\t\"I can cast Guiding Bolt without expending a spell slot my Proficiency Bonus per long rest\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guidance\"],\r\n\t\t\t\tselection : [\"guidance\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guiding bolt\"],\r\n\t\t\t\tselection : [\"guiding bolt\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tadditional : \"Guiding Bolt\",\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Starry Form\",\r\n\t\t\tsource : [[\"T\", 38]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend a use of wild shape to take on a starry form for 10 min\",\r\n\t\t\t\t\"In that form I shed bright light in a 10-ft radius and dim light for an extra 10-ft radius\",\r\n\t\t\t\t\"When I do so, I choose one constellation that glimmers on my body, granting me benefits\",\r\n\t\t\t\t'See the 3rd page \"Notes\" section for the benefits of the possible constellations',\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*luminous)(?=.*arrow).*$/i,\r\n\t\t\t\tname : \"Luminous Arrow\",\r\n\t\t\t\tsource : [[\"T\", 38]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"radiant\"],\r\n\t\t\t\trange : \"60 ft\",\r\n\t\t\t\tdescription : \"Use as bonus action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tuseSpellMod : \"druid\",\r\n\t\t\t\tluminousarrow : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraname : \"Starry Form\",\r\n\t\t\t\"archer constellation\" : {\r\n\t\t\t\tname : \"Archer Constellation\",\r\n\t\t\t\tsource : [[\"T\", 38]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can make a ranged spell attack to hurl a luminous arrow 60 ft\",\r\n\t\t\t\t\t\"I can also do this as part of the bonus action I use to assume the starry form\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier radiant damage\";\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (Luminous Arrow)\"]]\r\n\t\t\t},\r\n\t\t\t\"chalice constellation\" : {\r\n\t\t\t\tname : \"Chalice Constellation\",\r\n\t\t\t\tsource : [[\"T\", 39]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I cast a healing spell with a spell slot, I can heal myself or another within 30 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier hit points restored\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"dragon constellation\" : {\r\n\t\t\t\tname : \"Dragon Constellation\",\r\n\t\t\t\tsource : [[\"T\", 39]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can treat a roll below 10 as a 10 for Int/Wis checks and saves to maintain concentration\",\r\n\t\t\t\t\t\"From 10th-level onwards, I also gain a flying speed of 20 ft and can hover\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"archer constellation\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"chalice constellation\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"dragon constellation\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cosmic Omen\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I roll a die to gain an omen based on the result (odd/even)\",\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft makes an attack, check, or save, I can:\",\r\n\t\t\t\t\" \\u2022 Weal (even): add 1d6 to the number rolled for the attack, check, or save\",\r\n\t\t\t\t\" \\u2022 Woe (odd): subtract 1d6 from the number rolled for the attack, check, or save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Twinkling Constellations\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in my starry form, I can change the constellation at the start of each of my turns\",\r\n\t\t\t\t'The benefit of my constellations improve, see the 3rd page \"Notes\" section',\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.luminousarrow && fields.Damage_Die.indexOf('1d8') !== -1) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('1d8', '2d8');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'',\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Full of Stars\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"While in my starry form, I have resistance to bludgeoning, piercing, and slashing damage\"),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Bludgeoning\", \"Bludgeon. (in form)\"],\r\n\t\t\t\t[\"Piercing\", \"Piercing (in form)\"],\r\n\t\t\t\t[\"Slashing\", \"Slashing (in form)\"]\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of wildfire\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*wild.{0,1}fire).*$/i,\r\n\tsubname : \"Circle of Wildfire\",\r\n\tsubnameShort: \"Wildfire\",\r\n\tsource : [[\"T\", 39]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Spells\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My link to a wildfire spirit grants me access to spells, which count as druid spells to me\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"burning hands\", \"cure wounds\", \"flaming sphere\", \"scorching ray\", \"plant growth\",\"revivify\", \"aura of life\", \"fire shield\", \"flame strike\", \"mass cure wounds\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Summon Wildfire Spirit\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a wildfire spirit within 30 ft\",\r\n\t\t\t\t\"All within 10 ft of where it manifests must make a Dex save or take 2d10 fire damage\",\r\n\t\t\t\t\"It is friendly and obeys my commands; It lasts for 1 hour, until it has 0 HP, or I die\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can always take reactions and move on its turn; It acts on my initiative, after me\",\r\n\t\t\t\t'It disappears if I summon another; See \"Wildfire Spirit\" on a companion page for its stats',\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Wildfire Spirit\"]],\r\n\t\t\tcreaturesAdd : [[\"Wildfire Spirit\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Wildfire Spirit\",\r\n\t\t\t\tsource : [[\"T\", 40]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Elemental\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 13,\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"30 ft, fly 30 ft (hover)\",\r\n\t\t\t\tscores : [10, 14, 14, 13, 15, 11],\r\n\t\t\t\tdamage_immunities : \"fire\",\r\n\t\t\t\tcondition_immunities : \"charmed, frightened, grappled, prone, restrained\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"understands the languages of its creator\",\r\n\t\t\t\tchallengeRating : \"1/2\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flame Seed\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"60 ft\",\r\n\t\t\t\t\tdescription : \"Ranged weapon attack\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"5-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 5 ft of teleportation origin, success - no damage; See traits\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [2, 6, \"fire\"],\r\n\t\t\t\t\trange : \"10-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft where spirit is summoned, success - no damage\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The spirit obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tdescription : \"The spirit and each willing creature of its creator's choice within 5 ft of it teleport up to 15 ft to unoccupied spaces its creator can see. Then each creature within 5 ft of the space that the spirit left must succeed on a Dexterity saving throw against its creator's spell save DC or take fire damage equal to 1d6 + its proficiency bonus.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tdescription : \"The spirit appears in an unoccupied space of its creator's choice that its creator can see within 30 ft. Each creature within 10 ft of the spirit (other than its creator) when it appears must succeed on a Dexterity saving throw against its creator's spell save DC or take 2d6 fire damage.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Wildfire\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvl5 = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + drdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + drdLvl + \" from five times its creator's druid level (\" + drdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Enhanced Bond\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my wildfire spirit is present, I can have my spells originate from it (no range 'self')\",\r\n\t\t\t\t\"Also, I can then add 1d8 to a single roll of my spells that restore HP or deal fire damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Cauterizing Flames\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a Small or larger creature dies within 30 ft of me or wildfire spirit,\",\r\n\t\t\t\t\"I can have a spectral flame erupt in its space that lasts for 1 minute\",\r\n\t\t\t\t\"As a reaction when I see a creature enter the flame's space, I can extinguish the flame\",\r\n\t\t\t\t\"This heals or deals fire damage to the creature (my choice) equal to 2d10 + my Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Blazing Revival\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I drop to 0 HP and don't die, and my wildfire spirit is within 120 ft, it can save me\",\r\n\t\t\t\t\"I can have it drop to 0 HP; I then regain half my HP and immediately rise to my feet\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Fighter Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Fighter Optional Class Features\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Blind Fighting\", {\r\n\tname : \"Blind Fighting Style\",\r\n\tsource : [[\"T\", 41]],\r\n\tdescription : desc([\r\n\t\t\"I have blindsight with 10 ft range, allowing me to see anything not behind total cover\",\r\n\t\t\"In range, I can see invisible, but not hidden, things, even when blinded or in darkness\"\r\n\t]),\r\n\tvision : [[\"Blindsight\", 10]]\r\n});\r\nAddFightingStyle([\"fighter\", \"paladin\"], \"Interception\", {\r\n\tname : \"Interception Fighting Style\",\r\n\tsource : [[\"T\", 41], [\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature I can see hits another within 5 ft of me, I can intercept\",\r\n\t\t\"I reduce the damage the target takes by 1d10 + my Proficiency Bonus (min 0 damage)\",\r\n\t\t\"I can't be the target and it requires me wielding a shield or a simple or martial weapon\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\"], \"Thrown Weapon Fighting\", {\r\n\tname : \"Thrown Weapon Fighting Style\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : desc([\r\n\t\t\"I can draw a weapon with the thrown property as part of the attack I make with it\",\r\n\t\t\"In addition, my ranged attacks made with thrown weapons deal +2 damage\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isThrownWeapon && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2 damage when thrown';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I deal +2 damage when I hit a ranged attack made with a thrown weapon.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && !v.isMeleeWeapon) {\r\n\t\t\t\t\toutput.extraDmg += 2;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\"], \"Unarmed Fighting\", {\r\n\tname : \"Unarmed Fighting Style\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : desc([\r\n\t\t\"My unarmed strikes deal 1d6 damage, or 1d8 damage when I have both hands free\",\r\n\t\t\"At the start of my turn, I can deal 1d4 bludgeoning damage to one target I'm grappling\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\tif (fields.Damage_Die == 1 || fields.Damage_Die == \"1d4\") fields.Damage_Die = '1d6';\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Versatile (d8)';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d6 damage instead of 1, which increases to 1d8 if I have both hands free to make an unarmed strike with.\",\r\n\t\t\t1\r\n\t\t]\r\n\t}\r\n});\r\nAddFeatureChoice(ClassList.fighter.features['action surge'], true, \"Martial Versatility\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Fighter 4\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the fighter class, I can change a fighting style or a maneuver\",\r\n\tprereqeval : function (v) { return classes.known.fighter.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level fighter features\");\r\n// Fighter alternative class features and enhancements (only if Battle Master subclass exists)\r\nif (ClassSubList[\"fighter-battle master\"]) {\r\n\tAddFightingStyle([\"fighter\"], \"Superior Technique\", {\r\n\t\tname : \"Superior Technique\",\r\n\t\tsource : [[\"T\", 41], [\"UA:CFV\", 5]],\r\n\t\tadditional: \"1 maneuver; d6, 1\\xD7 per short rest\",\r\n\t\tdescription : desc([\r\n\t\t\t\"I gain one superiority die (d6) that I can expend to fuel a special Maneuver\",\r\n\t\t\t\"I can only use one Maneuver per attack; DCs are 8 + Prof B. + Str/Dex mod, my choice\",\r\n\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page'\r\n\t\t]),\r\n\t\tbonusClassExtrachoices : [{\r\n\t\t\t\"class\" : \"fighter\",\r\n\t\t\t\"subclass\" : \"fighter-battle master\",\r\n\t\t\t\"feature\" : \"subclassfeature3.1\",\r\n\t\t\t\"bonus\" : 1\r\n\t\t}],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : 'd6',\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taddToExisting : true\r\n\t\t}]\r\n\t});\r\n\t// New Maneuver options\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Ambush\", {\r\n\t\tname : \"Ambush\",\r\n\t\tsource : [[\"T\", 42], [\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"When I make an initiative roll or a Dex (Stealth) check, I can add a superiority die to it\",\r\n\t\t\t\"I can't do this if I'm incapacitated\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Bait and Switch\", {\r\n\t\tname : \"Bait and Switch\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"On my turn, I can expend a superiority die to swap places with an ally within 5 ft\",\r\n\t\t\t\"I can't do this if the ally is incapacitated or unwilling to swap\",\r\n\t\t\t\"Doing this costs me 5 ft of movement, but this doesn't provoke opportunity attacks\",\r\n\t\t\t\"Me or my ally (my choice) can then add the superiority die to AC until my next turn starts\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Brace\", {\r\n\t\tname : \"Brace\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when a creature I can see moves within my melee reach, I can attack it\",\r\n\t\t\t\"I expend a superiority die and make one weapon attack, adding the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Commanding Presence\", {\r\n\t\tname : \"Commanding Presence\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription: desc(\"When I make a Performance, Intimidation, or Persuasion check, I can add a superiority die\")\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Grappling Strike\", {\r\n\t\tname : \"Grappling Strike\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Immediately after hitting with a melee attack, I can use a bonus action to try to grapple\",\r\n\t\t\t\"I add the superiority die to the Str (Athletics) check; I can only do this on my own turn\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \" (after melee hit)\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Quick Toss\", {\r\n\t\tname : \"Quick Toss\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a bonus action, I can use a superiority die to do a ranged attack with a thrown weapon\",\r\n\t\t\t\"I can draw a thrown weapon as part of making this attack; I add the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Tactical Assessment\", {\r\n\t\tname : \"Tactical Assessment\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription: desc(\"When I make an Investigation, History, or Insight check, I can add a superiority die to it\")\r\n\t});\r\n}\r\n\r\n// Fighter Subclasses\r\nAddSubClass(\"fighter\", \"psi warrior\", {\r\n\tregExpSearch : /^(?=.*\\bpsi(onic)?s?\\b)(?=.*warrior).*$/i,\r\n\tsubname : \"Psi Warrior\",\r\n\tsource : [[\"T\", 42]],\r\n\tfullname : \"Psi Warrior\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Energy Dice\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain twice my proficiency bonus of psionic energy dice (PsiD) that fuel my psionics\",\r\n\t\t\t\t\"I regain all expended psionic energy dice after a long rest\",\r\n\t\t\t\t\"As a bonus action once per short rest, I can regain one expended psionic energy die\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 5 ? \"d6\" : n < 11 ? \"d8\" : n < 17 ? \"d10\" : \"d12\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Regain 1 Psionic Energy Die\"]],\r\n\t\t\tusages : \"Proficiency Bonus \\xD7 2 per \",\r\n\t\t\tusagescalc : \"event.value = Number(How('Proficiency Bonus'))*2\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Regain 1 Psionic Energy die\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psionic Power: Protective Field\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"1 psionic energy die\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce it\",\r\n\t\t\t\t\"I reduce the damage by the roll of the one psionic energy die I expend + my Int mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"Protective Field\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Psionic Power: Psionic Strike\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"1 psionic energy die\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once on each of my turns after I hit a target in 30 ft and damage it with a weapon,\",\r\n\t\t\t\t\"I can expend a psionic energy die to deal it the die roll + my Int mod in force damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.3\" : {\r\n\t\t\tname : \"Psionic Power: Telekinetic Movement\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can move a Large or smaller loose object or one willing creature in 30 ft\",\r\n\t\t\t\t\"I must be able to see the target and can move it up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"If it is a Tiny object, I can also move it to or from my hand; I can't move myself this way\",\r\n\t\t\t\t\"I can do this once per short rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Telekinetic Movement\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Telekinetic Adept: Psi-Powered Leap\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I gain a flying speed of twice my walking speed until the turn ends\",\r\n\t\t\t\t\"I can do this once per short rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Psi-Powered Leap\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature7.2\" : {\r\n\t\t\tname : \"Telekinetic Adept: Telekinetic Thrust\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tadditional: \"DC 8 + Prof B. + Int mod\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I deal damage with my Psionic Strike, I can have the target make a Strength save\",\r\n\t\t\t\t\"If failed, I knock the target prone or move it up to 10 ft in any direction horizontally\"\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guarded Mind\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend a psionic energy die to end all effects on me causing charmed or frightened\",\r\n\t\t\t\t\"I can do this if at the start of my turn; I also gain resistance to psychic damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Psychic\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Bulwark of Force\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can choose up to my Int mod of creatures (min 1) I can see in 30 ft\",\r\n\t\t\t\t\"This can include me; Each chosen gains half cover for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Telekinetic Master\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Telekinesis, requiring no spell slot or components, with Int spellcasting ability\",\r\n\t\t\t\t\"As a bonus action while concentrating on this spell, I can make one weapon attack\",\r\n\t\t\t\t\"I can cast Telekinesis once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Telekinetic Master\",\r\n\t\t\t\tspells : [\"telekinesis\"],\r\n\t\t\t\tselection : [\"telekinesis\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"telekinesis\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tchanges : \"Using Telekinetic Master, I can cast Telekinesis without requiring components or spell slots.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"Weapon Attack while Telekinesis conc.\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"rune knight\", {\r\n\tregExpSearch : /^(?=.*rune)(?=.*knight).*$/i,\r\n\tsubname : \"Rune Knight\",\r\n\tsource : [[\"T\", 44]],\r\n\tfullname : \"Rune Knight\",\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with smith's tools and I learn to speak, read, and write Giant\"),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tlanguageProfs : [\"Giant\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rune Carver\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn how to use magic runes to enhance my gear that I can wear or hold in my hand\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a rune and add it to the third page',\r\n\t\t\t\t\"When I finish a long rest, I can inscribe each rune I know upon a different item I touch\",\r\n\t\t\t\t\"Each item can hold only one rune and remains there until I finish a long rest\",\r\n\t\t\t\t\"Runes inscribed on a carried object grant both a passive and a limited-use active effect\",\r\n\t\t\t\t\"Whenever I gain a fighter level, I can swap a rune I know for another\",\r\n\t\t\t\t\"The DC for a rune's abilities is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5) + \" runes known\"\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\textraname : \"Rune Knight 3\",\r\n\t\t\textrachoices : [\"Cloud Rune\", \"Fire Rune\", \"Frost Rune\", \"Stone Rune\", \"Hill Rune (prereq: level 7 fighter)\", \"Storm Rune (prereq: level 7 fighter)\"],\r\n\t\t\t\"cloud rune\" : {\r\n\t\t\t\tname : \"Cloud Rune\",\r\n\t\t\t\tsource : [[\"T\", 44]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a deceptiveness reminiscent of cloud giants\",\r\n\t\t\t\t\t\"I always gain advantage on Dexterity (Sleight of Hand) and Charisma (Deception) checks\",\r\n\t\t\t\t\t\"As a reaction when I or another I can see within 30 ft is hit by an attack, I can invoke this\",\r\n\t\t\t\t\t\"I select another target for the attack within 30 ft of me, using the same roll (ignore range)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Sleight of Hand\", true], [\"Deception\", true] ]\r\n\t\t\t},\r\n\t\t\t\"fire rune\" : {\r\n\t\t\t\tname : \"Fire Rune\",\r\n\t\t\t\tsource : [[\"T\", 44]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain craftsmanship reminiscent of great smiths\",\r\n\t\t\t\t\t\"I always double my proficiency bonus when making an ability check with a tool\",\r\n\t\t\t\t\t\"When I hit a creature with a weapon attack, I can invoke it to summon fiery shackles\",\r\n\t\t\t\t\t\"It takes an extra 2d6 fire damage and must make a Str save or be restrained for 1 min\",\r\n\t\t\t\t\t\"While restrained, the creature takes 2d6 fire damage at the start of each of its turns\",\r\n\t\t\t\t\t\"It can repeat the save at the end of each of its turns, banishing the shackles on a success\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t\t},\r\n\t\t\t\"frost rune\" : {\r\n\t\t\t\tname : \"Frost Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain might of those surviving wintry wilderness\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Animal Handling) and Charisma (Intimidation) checks\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke this to gain +2 on Str and Con checks and saves for 10 min\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Animal Handling\", true], [\"Intimidation\", true] ]\r\n\t\t\t},\r\n\t\t\t\"stone rune\" : {\r\n\t\t\t\tname : \"Stone Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain judiciousness reminiscent of stone giants\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Insight) checks and I gain darkvision out to 120 ft\",\r\n\t\t\t\t\t\"As a reaction when a creature I can see ends it turn within 30 ft, I can invoke this rune\",\r\n\t\t\t\t\t\"This causes the creature to make a Wisdom save or be charmed by me for 1 minute\",\r\n\t\t\t\t\t\"While charmed, it descends into a dreamy stupor, becoming incapacitated and has speed 0\",\r\n\t\t\t\t\t\"It can repeat the save at the end of each of its turns, ending the effect on a success\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tvision : [[\"Darkvision\", 120]],\r\n\t\t\t\tadvantages : [ [\"Insight\", true] ]\r\n\t\t\t},\r\n\t\t\t\"hill rune (prereq: level 7 fighter)\" : {\r\n\t\t\t\tname : \"Hill Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I gain a resilience reminiscent of hill giants\",\r\n\t\t\t\t\t\"I always gain advantage on saves against being poisoned and resistance to poison damage\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to gain resistance to bludg/slash/pierc damage for 1 min\"\r\n\t\t\t\t]),\r\n\t\t\t\tprereqeval : function(v) { return classes.known.fighter.level >= 7; },\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tdmgres : [\"Poison\"],\r\n\t\t\t\tsavetxt : { adv_vs : [\"poison\"] }\r\n\t\t\t},\r\n\t\t\t\"storm rune (prereq: level 7 fighter)\" : {\r\n\t\t\t\tname : \"Storm Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I can glimpse the future like storm giants\",\r\n\t\t\t\t\t\"I always gain adv. on Int (Arcana) checks and I can't be surprised while not incapacitated\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to enter a prophetic state for 1 min or till incapacitated\",\r\n\t\t\t\t\t\"While in this state, I can use a reaction to cause a roll to gain advantage or disadvantage\",\r\n\t\t\t\t\t\"I can do this for attacks, saves, and checks of myself or others I can see within 60 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\tprereqeval : function(v) { return classes.known.fighter.level >= 7; },\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Arcana\", true] ],\r\n\t\t\t\tsavetxt : { immune : [\"surprised\"] },\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Giant's Might\",\r\n\t\t\tsource : [[\"T\", 45]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue myself with giant magic for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 Space permitted, I grow to a larger size category along with everything I'm wearing\",\r\n\t\t\t\t\" \\u2022 I have advantage on my Strength check and saves\",\r\n\t\t\t\t\" \\u2022 My weapon and unarmed strike attacks deal extra damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 18 ? \"Large\" : \"Huge\") + \", +1d\" + (n < 10 ? 6 : n < 18 ? 8 : 10) + \" damage\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { text : [\"Adv. on Str saves in Giant's Might\"] },\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.fighter && classes.known.fighter.level >= 3 && v.isWeapon && (/giant('s)? might/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tvar GMdmgDie = classes.known.fighter.level < 10 ? 'd6' : classes.known.fighter.level < 18 ? 'd8' : 'd10';\r\n\t\t\t\t\t\t\tvar dmgDieRx = RegExp('(\\\\d+)' + GMdmgDie, 'i');\r\n\t\t\t\t\t\t\tif (dmgDieRx.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tvar dmgDieMatch = fields.Damage_Die.match(dmgDieRx);\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(dmgDieRx, Number(dmgDieMatch[1]) + 1 + GMdmgDie);\r\n\t\t\t\t\t\t\t\tfields.Description = fields.Description.replace(/Versatile \\((\\d+d\\d+)\\)/i, 'Versatile ($1+1' + GMdmgDie + ')');\r\n\t\t\t\t\t\t\t} else if (!isNaN(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = 1 + GMdmgDie + \"+\" + fields.Damage_Die;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1' + GMdmgDie + ' damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (classes.known.fighter.level >= 18 && v.isMeleeWeapon) fields.Description += (fields.Description ? '; ' : '') + '+5 ft reach';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words \\\"Giant Might\\\" in the name of a weapon or unarmed strike, it gets treated as a weapon that I use while imbued by my Giant's Might feature. It adds +1d6 weapon damage. From 10th-level onwards, this increases to +1d8 damage. From 18th-level onwards, this increases to +1d10 damage and my reach increases by 5 ft (for melee weapons).\",\r\n\t\t\t\t\t8\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Runic Shield\",\r\n\t\t\tsource : [[\"T\", 45]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see a creature within 60 ft get hit by an attack, I can protect it\",\r\n\t\t\t\t\"The attacker must reroll its attack roll and use the new roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Great Stature\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My runes permanently make me grow; I add 3d4 inches to my length\",\r\n\t\t\t\t\"In addition, the extra weapon damage I deal with Giant Might increases to 1d8\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Master of Runes\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I can now invoke each of my runes twice per short rest instead of once\")\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Runic Juggernaut\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Giant's Might now adds +1d10 weapon damage, and can make me grow up to Huge\",\r\n\t\t\t\t\"While I'm Huge, my reach increases by 5 ft\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n// >>> Monk Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Monk Optional Class Features\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Dedicated Weapon\", {\r\n\tname : \"Dedicated Weapon\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"T\", 48]],\r\n\tdescription : desc([\r\n\t\t\"When I finish a short or long rest, I can focus ki and touch one simple or martial weapon\",\r\n\t\t\"From then on, until I use this feature again, this weapon counts as a monk weapon for me\",\r\n\t\t\"I have to be proficient with the weapon and it can't have the heavy or special property\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.monkweapon && !v.theWea.special && classes.known.monk && classes.known.monk.level && (/dedicated/i).test(v.WeaponTextName) && fields.Proficiency && (/simple|martial/i).test(v.theWea.type) && !(/\\b(heavy|special)\\b/i).test(fields.Description)) {\r\n\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Dedicated\" in the name of a simple or martial weapon that I\\'m proficient with and that doesn\\'t have the heavy or special property, it will be treated as a monk weapon.',\r\n\t\t\t1\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"unarmored movement\"], true, \"Ki-Fueled Attack\", {\r\n\tname : \"Ki-Fueled Attack\",\r\n\textraname : \"Optional Monk 3\",\r\n\tsource : [[\"T\", 48]],\r\n\tdescription : desc([\r\n\t\t\"If I use any ki points during my action on my turn, I can make an attack as a bonus action\",\r\n\t\t\"This attack has to be in the same turn and with an unarmed strike or a monk weapon\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 3rd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"deflect missiles\"], true, \"Quickened Healing (2 ki points)\", {\r\n\tname : \"Quickened Healing\",\r\n\textraname : \"Optional Monk 4\",\r\n\tsource : [[\"T\", 49]],\r\n\tdescription : \" [2 ki points]\\n   As an action, I can regain HP equal to the roll of my martial arts die + Proficiency Bonus\",\r\n\taction : [[\"action\", \"\"]]\r\n}, \"Optional 4th-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"slow fall\"], true, \"Focused Aim (1-3 ki points)\", {\r\n\tname : \"Focused Aim\",\r\n\textraname : \"Optional Monk 5\",\r\n\tsource : [[\"T\", 49]],\r\n\tdescription : \" [1-3 ki points]\\n   When I miss an attack roll, I can spend ki to increase the roll by +2 per ki point (max +6)\",\r\n\tprereqeval : function (v) { return classes.known.monk.level >= 5 ? true : \"skip\"; }\r\n}, \"Optional 5th-level monk features\");\r\n\r\n// Monk Subclasses\r\nAddSubClass(\"monk\", \"way of mercy\", {\r\n\tregExpSearch : /^(?=.*mercy)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Mercy\",\r\n\tsubnameShort: \"Mercy\",\r\n\tsource : [[\"T\", 49]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Implements of Mercy\",\r\n\t\t\tsource : [[\"T\", 49]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Insight, Medicine, and herbalism kit; I have a special Merciful Mask\"\r\n\t\t\t]),\r\n\t\t\tskills : [\"Insight\", \"Medicine\"],\r\n\t\t\ttoolProfs : [\"Herbalism kit\"],\r\n\t\t\t\"hands of healing\" : {\r\n\t\t\t\tname : \"Hands of Healing\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"T\", 49]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"As an action, I can spend 1 ki point to touch a creature and restore a number of its HP\";\r\n\t\t\t\t\tvar b6 = \"It also recovers from one disease or being blinded, deafened, paralyzed, poisoned or stunned\";\r\n\t\t\t\t\tvar c = \"When I use Flurry of Blows, I can do this instead of one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, c] :\r\n\t\t\t\t\t\t[a, b6, n < 11 ? c : c.replace(\"one\", \"each\")]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; heal 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wisdom modifier\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"hands of harm\" : {\r\n\t\t\t\tname : \"Hands of Harm\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"When I hit a creature with an unarmed strike, I can spend 1 ki point to deal extra damage\";\r\n\t\t\t\t\tvar b6 = \"I can also subject the target to the poisoned condition until the end of my next turn\";\r\n\t\t\t\t\tvar c11 = \"When I use Flurry of Blows, I can do this with one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\tvar d = \"I can use this feature only once per turn\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, d] :\r\n\t\t\t\t\t\tn < 11 ? [a, b6, d] :\r\n\t\t\t\t\t\t[a, b6, c11, d]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wis mod necrotic damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hands of healing\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"hands of harm\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Physician's touch\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Hand of Healing also ends 1 disease, blinded, deafened, paralyzed, poisoned or stunned\",\r\n\t\t\t\t\"Hand of Harm also causes target to be poisoned until the end of my next turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Flurry of Healing and Harm\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use Hand of Healing instead of each Flurry of Blows unarmed strike without ki cost\",\r\n\t\t\t\t\"I can use Hand of Harm on one Flurry of Blows unarmed strike without ki cost\"\r\n\t\t\t]),\r\n\t\t\t\"hand of ultimate mercy\" : {\r\n\t\t\t\tname : \"Hand of Ultimate Mercy\",\r\n\t\t\t\textraname : \"Way of Mercy 17\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can spend 5 ki points and touch a creature that died in the last 24 hours\",\r\n\t\t\t\t\t\"The creature returns to life and regains 4d10 + my Wisdom modifier in hit points\",\r\n\t\t\t\t\t\"It is also cured of all these conditions: blinded, deafened, paralyzed, poisoned, and stunned\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : \"5 ki points\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hand of ultimate mercy\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the astral self\", {\r\n\tregExpSearch : /^(?=.*astral)(?=.*(self|projection|travel))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Astral Self\",\r\n\tsubnameShort: \"Astral Self\",\r\n\tsource : [[\"T\", 50]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arms of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : ' [1 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use my ki to summon the arms of my astral self for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\t\tregExpSearch : /^(?=.*\\bastral\\b)(?=.*\\barms?\\b).*$/i,\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\trange : \"Melee (+5 ft)\",\r\n\t\t\t\tdamage : [1, \"\", \"Force\"],\r\n\t\t\t\tdescription : \"+5 ft reach; Uses Str, Dex, or Wis\",\r\n\t\t\t\tisAstralArms : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"astral arms\" : {\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\textraname : \"Way of the Astral Self 3\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms to hover next to or over my own arms\",\r\n\t\t\t\t\t\"When I summon them, all creatures of my choice I can see in 10 ft must make a Dex save\",\r\n\t\t\t\t\t\"If failed, they take twice my martial arts die in force damage\",\r\n\t\t\t\t\t\"I can use the arms to make unarmed strikes, using Wisdom instead of Strength/Dexterity\",\r\n\t\t\t\t\t\"I have +5 ft reach on attacks made with my astral arms and they deal force damage\",\r\n\t\t\t\t\t\"They last for 10 minutes or until I'm incapacitated or die; I choose their appearance\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 2d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" force damage on summon\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral arms\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Visage of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : ' [1 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use my ki to summon the visage of my astral self for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage\", \"Summon Astral Arms\"]],\r\n\t\t\t\"astral visage\" : {\r\n\t\t\t\tname : \"Astral Visage\",\r\n\t\t\t\textraname : \"Way of the Astral Self 6\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action (or when summoning my astral arms), I can summon my astral visage\",\r\n\t\t\t\t\t\"It lasts for 10 minutes or until I'm incapacitated or die; I choose its appearance\",\r\n\t\t\t\t\t\"My astral visage covers my face like a helmet or mask and grants me the following benefits:\",\r\n\t\t\t\t\t\" \\u2022 Astral Sight: I can see normally in normal and magical darkness to a distance of 120 ft\",\r\n\t\t\t\t\t\" \\u2022 Wisdom of the Spirit: I have advantage on Wisdom (Insight) and Charisma (Intimidation)\",\r\n\t\t\t\t\t\" \\u2022 Word of the Spirit: I can have only one target I can see in 60 ft hear me, or all in 300 ft\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral visage\" }]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Body of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 51]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : ' [see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"When I have both my astral arms and visage summoned, my astral body appears as well\",\r\n\t\t\t\t\"This spectral body covers me like an armor, connecting my astral arms and astral visage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"Deflect Energy\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Astral Body\",\r\n\t\t\t\textraname : \"Way of the Astral Self 11\",\r\n\t\t\t\tsource : [[\"T\", 51]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage are present]\" + desc([\r\n\t\t\t\t\t\" \\u2022 Deflect Energy: As a reaction when I take damage, I can reduce it by 1d10 + Wis mod\",\r\n\t\t\t\t\t\"   I can only do this if the damage I take is acid, cold, fire, force, lightning, or thunder\",\r\n\t\t\t\t\t\" \\u2022 Empowered Arms: Once per my turn, I can add martial art die to astral arms damage\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isAstralArms && classes.known.monk && classes.known.monk.level) {\r\n\t\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once on each of my turns +1d' + aMonkDie + ' damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once on each of my turns when I hit a target with my astral arms, I can add my martial arts die to the damage dealt.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Awakened Astral Self\",\r\n\t\t\tsource : [[\"T\", 51]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : ' [5 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use 5 ki points to summon astral arms and visage with benefits\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Awakened Astral Self\",\r\n\t\t\t\textraname : \"Way of the Astral Self 17\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms and astral visage, with extra benefits:\",\r\n\t\t\t\t\t\" \\u2022 Armor of the Spirit: I gain a +2 bonus to my armor class\",\r\n\t\t\t\t\t\" \\u2022 Astral Barrage: I can do three attacks with the Attack action, if all are with astral arms\",\r\n\t\t\t\t\t\"This lasts for 10 minutes or until I'm incapacitated or die\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Paladin Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Paladin Optional Class Features\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Additional Paladin Spells\", {\r\n\tname : \"Additional Paladin Spells\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"T\", 52]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gentle repose\", \"prayer of healing\", \"warding bond\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the paladin class with the following spells (spell level in brackets): Gentle Repose (2), Prayer of Healing (2), and Warding Bond (2).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\n// Blind Fighting & Interception already added in the Fighter Options section\r\nAddFightingStyle([\"paladin\"], \"Blessed Warrior\", {\r\n\tname : \"Blessed Warrior Fighting Style\",\r\n\tsource : [[\"T\", 52], [\"UA:CFV\", 6]],\r\n\tdescription : desc([\r\n\t\t\"I learn two cleric cantrips that count as paladin spells for me and use Cha for spellcasting\",\r\n\t\t\"Whenever I gain a paladin level, I can swap one of these for another cleric cantrip\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Blessed Warrior\",\r\n\t\t\"class\" : \"cleric\",\r\n\t\tlevel : [0, 0],\r\n\t\ttimes : 2\r\n\t}]\r\n});\r\nAddFeatureChoice(ClassList.paladin.features[\"subclassfeature3.0-channel divinity\"], true, \"Harness Divine Power\", {\r\n\tname : \"Channel Divinity: Harness Divine Power\",\r\n\textraname : \"Optional Paladin 3\",\r\n\tsource : [[\"T\", 52]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can expend a use of my channel divinity to regain one used spell slot\",\r\n\t\t\"The level of this spell slot can be no more than half my Proficiency Bonus (rounded up)\",\r\n\t\t\"I can only do this so many times per long rest, even if I have uses of channel divinity left\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : levels.map(function(n) {\r\n\t\treturn n < 3 ? \"\" : n < 7 ? 1 : n < 15 ? 2 : 3;\r\n\t}),\r\n\trecovery : \"long rest\"\r\n}, \"Optional 3rd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features['divine health'], true, \"Martial Versatility\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Paladin 4\",\r\n\tsource : [[\"T\", 53]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the paladin class, I can change my paladin fighting style\",\r\n\tprereqeval : function (v) { return classes.known.paladin.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level paladin features\");\r\n\r\n// Paladin Subclasses\r\nAddSubClass(\"paladin\", \"oath of the watchers\", {\r\n\tregExpSearch : /^(?=.*watchers)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Watchers\",\r\n\tsubnameShort: \"Watchers\",\r\n\tsource : [[\"T\", 54]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Watcher's Will\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As an action, Cha mod of creatures I see in 30 ft adv. on Int/Wis/Cha saves for 1 min\"),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"alarm\", \"detect magic\", \"moonbeam\", \"see invisibility\", \"counterspell\", \"nondetection\", \"aura of purity\", \"banishment\", \"hold monster\", \"scrying\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure the Extraplanar\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all aberration, celestial, elemental, fey, fiend in 30 ft must make Wis save\",\r\n\t\t\t\t\"Succeeds if it can't hear me; On fail, turned for 1 minute or until it takes any damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Sentinel\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, chosen creatures in range and I add my Prof Bonus to Initiative\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"prof\", text : \"I can add my Proficiency Bonus to initiative rolls.\" }]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Vigilant Rebuke\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another I can see succeeds a Int, Wis, or Cha save, I can rebuke\",\r\n\t\t\t\t\"The creature that forced the saving throw takes 2d8 + my Charisma mod force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Mortal Bulwark\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 Truesight 120 ft; Adv. on attacks vs. aberrations, celestials, elementals, fey, and fiends\",\r\n\t\t\t\t\" \\u2022 When I hit and damage a creature with an attack, I can banish it if it fails a Cha save\",\r\n\t\t\t\t\"   It's banished to its native plane if not there now; It's immune for 24 hours on a success\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 5+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Ranger Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Ranger Optional Class Features\r\nvar TCoE_Deft_Explorer = function () {\r\n\tvar a = {\r\n\t\tname : \"Deft Explorer: Canny\",\r\n\t\tsource : [[\"T\", 56]],\r\n\t\tdescription: desc(\"I learn two languages and gain expertise with one skill I'm proficient with\"),\r\n\t\tlanguageProfs : [2],\r\n\t\tskillstxt : \"Expertise with one skill I'm proficient with\",\r\n\t\tadditional : \"extra benefits at 6th and 10th level\",\r\n\t\textraTimes : [1],\r\n\t\textraname : \"Canny (select skill for expertise)\",\r\n\t\textrachoices : [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\r\n\t\t\"roving benefit\" : {\r\n\t\t\tname : \"Roving\",\r\n\t\t\textraname : \"Deft Explorer Benefit 6\",\r\n\t\t\tsource : [[\"T\", 56]],\r\n\t\t\tdescription: desc(\"I gain +5 ft walking speed and climbing and swimming speed equal to my walking speed\"),\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : \"+5\", enc : \"+5\" },\r\n\t\t\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\t\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"tireless benefit\" : {\r\n\t\t\tname : \"Tireless\",\r\n\t\t\textraname : \"Deft Explorer Benefit 10\",\r\n\t\t\tsource : [[\"T\", 56]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I finish a short rest, I reduce my exhaustion level, if any, by 1\",\r\n\t\t\t\t\"As an action a number of times per long rest, I can give myself temp HP of 1d8 + Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : \"1d8 + Wis Mod\",\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\tautoSelectExtrachoices : [{\r\n\t\t\textrachoice : \"roving benefit\",\r\n\t\t\tminlevel : 6\r\n\t\t}, {\r\n\t\t\textrachoice : \"tireless benefit\",\r\n\t\t\tminlevel : 10\r\n\t\t}]\r\n\t}\r\n\tfor (var i = 0; i < a.extrachoices.length; i++) {\r\n\t\tvar attr = a.extrachoices[i].toLowerCase();\r\n\t\ta[attr] = {\r\n\t\t\tname : a.extrachoices[i] + \" Expertise\",\r\n\t\t\textraname : \"Deft Explorer Benefit 1\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : a.source,\r\n\t\t\tskills : [[a.extrachoices[i], \"only\"]],\r\n\t\t\tprereqeval : function(v) {\r\n\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? false : v.skillExpertiseLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn a;\r\n}();\r\nCreateClassFeatureVariant(\"ranger\", \"natural explorer\", \"Deft Explorer\", TCoE_Deft_Explorer);\r\nvar TCoE_Favored_Foe = {\r\n\tname : \"Favored Foe\",\r\n\tsource : [[\"T\", 56]],\r\n\tdescription : desc([\r\n\t\t\"When I hit a creature with an attack roll, I can mark it as my favored enemy for 1 min\",\r\n\t\t\"I deal extra damage to it when I mark it and the first time I hit a marked on my turn\",\r\n\t\t\"Keeping a creature marked as favored enemy requires me to concentrate, like on a spell\"\r\n\t]),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn \"+1d\" + (n < 6 ? 4 : n < 14 ? 6 : 8) + \" damage\";\r\n\t}),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isSpell && (classes.known.rangerua || classes.known.ranger) && /favou?red.{1,2}(foe|enemy)/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +1d' + (rngrLvl < 6 ? 4 : rngrLvl < 14 ? 6 : 8) + ' damage';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Favored Foe\" or \"Favored Enemy\" in the name of a weapon, it gets the bonus damage I do against marked favored enemies added to its description.'\r\n\t\t]\r\n\t}\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"favored enemy\", \"Favored Foe\", TCoE_Favored_Foe);\r\nvar TCoE_Additional_Ranger_Spells = {\r\n\tname : \"Additional Ranger Spells\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"searing smite\", \"aid\", \"enhance ability\", \"gust of wind\", \"magic weapon\", \"elemental weapon\", \"meld into stone\", \"revivify\", \"dominate beast\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the ranger class with the following spells (spell level in brackets): Entangle (1), Searing Smite (1), Aid (2), Enhance Ability (2), Gust of Wind (2), Magic Weapon (2), Elemental Weapon (3), Meld into Stone (3), Revivify (3), Dominate Beast (4), and Greater Restoration (5).\"\r\n\t\t]\r\n\t},\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 2) || (classes.known.rangerau && classes.known.rangerau.level >= 2) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Additional Ranger Spells (prereq: level 2 ranger)\", TCoE_Additional_Ranger_Spells, \"Optional ranger features\");\r\n// Blind Fighting & Thrown Weapon Fighting already added in the Fighter Options section\r\nAddFightingStyle([\"ranger\"], \"Druidic Warrior\", {\r\n\tname : \"Druidic Warrior Fighting Style\",\r\n\tsource : [[\"T\", 57], [\"UA:CFV\", 7]],\r\n\tdescription : desc([\r\n\t\t\"I learn two druid cantrips that count as ranger spells for me and use Wis for spellcasting\",\r\n\t\t\"Whenever I gain a ranger level, I can swap one of these for another druid cantrip\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druidic Warrior\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\ttimes : 2\r\n\t}]\r\n});\r\nvar TCoE_Ranger_Spellcasting_Focus = {\r\n\tname : \"Spellcasting Focus\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"T\", 57], [\"UA:CFV\", 8]],\r\n\tdescription: desc(\"I can use a druidic focus as a spellcasting focus for my ranger spells\"),\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 2) || (classes.known.rangerau && classes.known.rangerau.level >= 2) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Spellcasting Focus (prereq: level 2 ranger)\", TCoE_Ranger_Spellcasting_Focus, \"Optional ranger features\");\r\nvar TCoE_Primal_Awareness = {\r\n\tname : \"Primal Awareness\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : desc([\r\n\t\t\"I get bonus spells known, which do not count against the number of spells I can know\",\r\n\t\t\"In addition, I can cast each once per long rest without expending a spell slot\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the bonus spells from the normally selectable list\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I know the following spells, without them counting towards the maximum number of spells I can know: Speak with Animals, Beast Sense, Speak with Plants, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Primal Awareness\",\r\n\t\tspells : [\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tselection : [\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : levels.map(function (n) {\r\n\t\t\treturn n < 5 ? 1 : n < 9 ? 2 : n < 13 ? 3 : n < 17 ? 4 : 5;\r\n\t\t})\r\n\t}]\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"primeval awareness\", \"Primal Awareness\", TCoE_Primal_Awareness);\r\nvar TCoE_Ranger_Martial_Versatility = {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Ranger 4\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the ranger class, I can change my ranger fighting style\",\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 4) || (classes.known.rangerau && classes.known.rangerau.level >= 4) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Martial Versatility (prereq: level 4 ranger)\", TCoE_Ranger_Martial_Versatility, \"Optional ranger features\");\r\nvar TCoE_Natures_Veil = {\r\n\tname : \"Nature's Veil\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can become invisible along with any equipment I'm wearing/carrying\",\r\n\t\t\"This invisibility lasts until the start of my next turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"hide in plain sight\", \"Nature's Veil\", TCoE_Natures_Veil);\r\n\r\n// Add the Ranger alternative class features also to the Revised Ranger, if it exists after all scripts have ran\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList[\"rangerua\"]) return;\r\n\tCreateClassFeatureVariant(\"rangerua\", \"natural explorer\", \"Deft Explorer\", TCoE_Deft_Explorer);\r\n\r\n\t// Add Favored Foe as an alternative choice (can't be done by automation because of choices) and add \"Favored Foe\" variant option\r\n\t// Move some attributes from the main object to the favored enemy choice objects\r\n\t['additional', 'languageProfs', 'calcChanges'].forEach( function(attr) {\r\n\t\tvar fea = ClassList.rangerua.features[\"favored enemy\"];\r\n\t\tif (!fea[attr]) return;\r\n\t\t// Move the attribute to each of the choices\r\n\t\tfor (var i = 0; i < fea.choices.length; i++) {\r\n\t\t\tvar aCh = fea[fea.choices[i].toLowerCase()];\r\n\t\t\tif (aCh.source) continue; // don't do options that are not part of the original entry (which don't have a source)\r\n\t\t\taCh[attr] = fea[attr];\r\n\t\t}\r\n\t\t// Now delete the attributes from the parent object\r\n\t\tdelete fea[attr];\r\n\t});\r\n\t// Now add the alternative class feature as another choice\r\n\tAddFeatureChoice(ClassList.rangerua.features[\"favored enemy\"], false, \"[alternative feature] Favored Foe\", TCoE_Favored_Foe);\r\n\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Additional Ranger Spells (prereq: level 2 ranger)\", TCoE_Additional_Ranger_Spells, \"Optional ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Spellcasting Focus (prereq: level 2 ranger)\", TCoE_Ranger_Spellcasting_Focus, \"Optional ranger features\");\r\n\tCreateClassFeatureVariant(\"rangerua\", \"primeval awareness\", \"Primal Awareness\", TCoE_Primal_Awareness);\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Martial Versatility (prereq: level 4 ranger)\", TCoE_Ranger_Martial_Versatility, \"Optional ranger features\");\r\n\tCreateClassFeatureVariant(\"rangerua\", \"hide in plain sight\", \"Nature's Veil\", TCoE_Natures_Veil);\r\n});\r\n\r\n// Ranger (Beast Master) alternative class feature\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tvar TCoE_Primal_Companion_Attributes = {\r\n\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\tlanguages : \"understands the languages of its master but can't speak\",\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Master\",\r\n\t\t\tdescription : \"The beast obeys the commands of its master and shares its proficiency bonus. It takes its turn during that of its master, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its master takes a bonus action to command it to take another action. Its master can also forgo one attack during their Attack action to command the beast to take the Attack action. If its master is incapacitated, the beast can take any action, not just Dodge. The beast vanishes if its master dies.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Primal Rebirth\",\r\n\t\t\tdescription : \"Within an hour of the beast's death, its master can take an action to touch it and expend a spell slot to have it return to full HP after 1 minute.\"\r\n\t\t}, {\r\n\t\t\tname : \"Primal Bond\",\r\n\t\t\tdescription : \"The beast adds it proficiency bonus to all its ability check and saving throws.\"\r\n\t\t}, {\r\n\t\t\tname : \"Exceptional Training (Beast Master 7)\",\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : \"The beast's attacks count as magical for overcoming resistances and immunities.\",\r\n\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\tAddString(prefix + \"Comp.Use.Attack.1.Description\", \"Counts as magical\", \"; \");\r\n\t\t\t},\r\n\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\tRemoveString(prefix + \"Comp.Use.Attack.1.Description\", \"Counts as magical\");\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\tname : \"Bestial Fury (Beast Master 11)\",\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : \"When commanded to take the Attack action, the beast can make 2 attacks as part of its Attack action.\",\r\n\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\tValue(prefix + \"Comp.Use.Attack.perAction\", 2);\r\n\t\t\t},\r\n\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\tValue(prefix + \"Comp.Use.Attack.perAction\", 1);\r\n\t\t\t}\r\n\t\t}],\r\n\t\taddMod : [\r\n\t\t\t{ type : \"skill\", field : \"all\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" },\r\n\t\t\t{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" },\r\n\t\t\t{ type : \"save\", field : \"all\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" }\r\n\t\t],\r\n\t\tcalcChanges : {\r\n\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\tvar multiplier = What(prefix + \"Comp.Use.HD.Die\") == 6 ? [4, \"four\"] : [5, \"five\"];\r\n\t\t\t\tvar rngrLvlM = multiplier[0] * rngrLvl;\r\n\t\t\t\tHDobj.alt.push(multiplier[0] + rngrLvlM);\r\n\t\t\t\tHDobj.altStr.push(\" = \" + multiplier[0] + \" as a base\\n + \" + multiplier[0] + \" \\xD7 \" + rngrLvl + \" from \" + multiplier[1] + \" times its master's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t},\r\n\t\t\tsetAltHp : true\r\n\t\t}\r\n\t};\r\n\tCreateClassFeatureVariant(\"ranger-beast master\", \"subclassfeature3\", \"Primal Companion\", {\r\n\t\tname : \"Primal Companion\",\r\n\t\tsource : [[\"T\", 61]],\r\n\t\tdescription : desc([\r\n\t\t\t\"When I finish a long rest, I can summon a primal beast of the land, sea, or sky in 5 ft\",\r\n\t\t\t\"I determine what animal it looks like, but it always has primal markings\",\r\n\t\t\t\"It is friendly to me and my allies, obeys my commands, and acts during my turn\",\r\n\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\"I can also forgo one attack of my Attack action to command it to take the Attack action\",\r\n\t\t\t\"It can take reactions and move on its turn even if I don't command it\",\r\n\t\t\t\"As an action within 1 hour of it dying, I can touch it and expend a spell slot to revive it\",\r\n\t\t\t\"It then returns to full HP in 1 minute; It vanishes if I summon another one or if I die\"\r\n\t\t]),\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \" (command)\"],\r\n\t\t\t[\"action\", \" (revive)\"]\r\n\t\t],\r\n\t\tcreaturesAdd : [\r\n\t\t\t[\"Beast of the Land\", true],\r\n\t\t\t[\"Beast of the Sea\", true],\r\n\t\t\t[\"Beast of the Sky\", true]\r\n\t\t],\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Beast of the Land\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\thp : 20,\r\n\t\t\thd : [3, 8],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"40 ft, climb 40 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Maul\",\r\n\t\t\t\tability : 5,\r\n\t\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"+1d6 damage if hits after moving 20 ft straight in same round, see Charge\",\r\n\t\t\t\ttooltip : \"If the beast moves at least 20 feet straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against your spell save DC or be knocked prone.\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tability : 5,\r\n\t\t\t\tdamage : [\"Str save\", \"\", \"Knocked prone\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"Str save or knocked prone; Only if maul hits after moving 20 ft straight in same round\",\r\n\t\t\t\ttooltip : \"If the beast moves at least 20 feet straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against your spell save DC or be knocked prone.\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tdescription : \"If the beast moves at least 20 ft straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against my spell save DC or be knocked prone.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits.map( function(n) {\r\n\t\t\t\tif (!typePF && /Exceptional Training/i.test(n.name)) {\r\n\t\t\t\t\tvar a = newObj(n);\r\n\t\t\t\t\ta.description = \"The beast's attacks count as magical.\";\r\n\t\t\t\t\treturn a;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn n;\r\n\t\t\t\t}\r\n\t\t\t}),\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Sea\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\thp : 20,\r\n\t\t\thd : [3, 8],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"5 ft, swim 60 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Binding Strike\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 6, \"Pierc./Bludg.\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"On hit, target is grappled (escape DC is spell DC) and beast can't use attack on others\",\r\n\t\t\t\ttooltip : \"If the beast hits a target with its blinding strike, the target is grappled (escape DC equal to your spellcasting save DC). Until this grapple ends, the beast can't use this attack on another target.\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Amphibious\",\r\n\t\t\t\tdescription : \"The beast can breathe both air and water.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits,\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Sky\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 4,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"10+Dex+Prof\",\r\n\t\t\thp : 16,\r\n\t\t\thd : [3, 6],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"10 ft, fly 60 ft\",\r\n\t\t\tscores : [6, 16, 13, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Shred\",\r\n\t\t\t\tability : 2,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Flyby\",\r\n\t\t\t\tdescription : \"The beast doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits,\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}],\r\n\t\teval : function() {\r\n\t\t\t// Remove any ranger companion pages\r\n\t\t\tWhat(\"Template.extras.AScomp\").split(\",\").forEach(function (prefix) {\r\n\t\t\t\tif (What(prefix + \"Companion.Remember\") === \"companion\") {\r\n\t\t\t\t\tDoTemplate(\"AScomp\", \"Remove\", prefix, true)\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n}\r\n\r\n// Ranger Subclasses\r\nvar TCoE_Ranger_Subclass_Fey_Wanderer = AddSubClass(\"ranger\", \"fey wanderer\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*wanderer).*$/i,\r\n\tsubname : \"Fey Wanderer\",\r\n\tsource : [[\"T\", 58]],\r\n\tfullname : \"Fey Wanderer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dreadful Strikes\",\r\n\t\t\tsource : [[\"T\", 58]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My weapons deal extra psychic damage, but only once per turn per creature\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 11 ? 4 : 6) + \" psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isWeapon && (classes.known.ranger || classes.known.rangerua)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn per target +1d' + (rngrLvl < 11 ? 4 : 6) + ' psychic damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I hit a creature with a weapon, I can deal an extra 1d4 psychic damage to the target, which can take this extra damage only once per turn. From 11th-level, this damage increases to 1d6.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fey Wanderer Magic\",\r\n\t\t\tsource : [[\"T\", 58]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"charm person\", \"misty step\", \"dispel magic\", \"dimension door\", \"mislead\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\t'I gain proficiency in Deception, Performance, or Persuasion; Use \"Choose Feature\" button'\r\n\t\t\t]),\r\n\t\t\taddMod : [\"Deception\", \"Intimidation\", \"Performance\", \"Persuasion\"].map(function(skill){return { type : \"skill\", field : skill, mod : \"max(Wis|1)\", text : \"I can add my Wisdom modifier to any Charisma check I make (minimum of +1).\" };}),\r\n\t\t\tchoices : [\"Deception proficiency\", \"Performance proficiency\", \"Persuasion proficiency\"],\r\n\t\t\t\"deception proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Deception proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Deception\"]\r\n\t\t\t},\r\n\t\t\t\"performance proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Performance proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Performance\"]\r\n\t\t\t},\r\n\t\t\t\"persuasion proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Persuasion proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Persuasion\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Beguiling Twist\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves against being charmed or frightened; Below uses my save DC\",\r\n\t\t\t\t\"As a reaction when a creature I see in 120 ft succeeds its save vs. charmed or frightened,\",\r\n\t\t\t\t\"I can have another I see in 120 ft make a Wis save or be charmed/frightened (I choose)\",\r\n\t\t\t\t\"This lasts for 1 minute and the target can repeat the save at the end of each of its turns\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Fey Reinforcements\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Summon Fey; It needs no material component, nor counts against spells known\",\r\n\t\t\t\t\"Once per long rest, I can cast it without expending a spell slot\",\r\n\t\t\t\t\"When I cast it, I can have it not require concentration, but than its duration is 1 minute\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fey Reinforcements\",\r\n\t\t\t\tspells : [\"summon fey\"],\r\n\t\t\t\tselection : [\"summon fey\"],\r\n\t\t\t\tfirstCol : 'oncelr+markedbox'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"summon fey\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tduration : \"Conc,1h/1min\",\r\n\t\t\t\t\tchanges : \"Using my Fey Reinforcements class feature, I can cast Summon Fey without requiring material components and I can cast it once per long rest without requiring a spell slot. Whenever I start casting the spell, I can modify it so that it doesn't require concentration. If I do so, the spell's duration becomes 1 minute for that casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Misty Wanderer\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Misty Step without a spell slot and can bring a willing creature in 5 ft along\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"misty step\") {\r\n\t\t\t\t\t\t\tspellObj.firstCol = \"oncelr+markedbox\";\r\n\t\t\t\t\t\t\tspellObj.description = \"I and one willing creature I can see within 5 ft of me teleport 30 ft to a unoccupied space I can see\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Whenever I cast misty step, I can bring along one willing creature I can see within 5 ft of me. That creature teleports to an unoccupied space of my choice within 5 ft of my destination space.\\nI can cast Misty Step without expending a spell slot a number of times per long rest equal to my Wisdom modifier (minimum of once).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nvar TCoE_Ranger_Subclass_Swarmkeeper = AddSubClass(\"ranger\", \"swarmkeeper\", {\r\n\tregExpSearch : /swarmkeeper/i,\r\n\tsubname : \"Swarmkeeper\",\r\n\tsource : [[\"T\", 59]],\r\n\tfullname : \"Swarmkeeper\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Gathered Swarm\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tvar a = [\r\n\t\t\t\t\t\"I'm bonded to a swarm of nature spirits crawling in my space; I choose their appearance\",\r\n\t\t\t\t\t\"Once on each of my turns, I can have it assist me after I hit a creature with an attack:\",\r\n\t\t\t\t\t\" \\u2022 The target takes an extra 1d\" + (n < 11 ? 6 : 8) + \" piercing damage from the swarm\",\r\n\t\t\t\t\t\" \\u2022 The target must make a Strength save or be moved 15 ft horizontally by the swarm\",\r\n\t\t\t\t\t\" \\u2022 The swarm moves me 5 ft horizontally\" + (n < 11 ? \"\" : \" and I have half cover until my next turn starts\"),\r\n\t\t\t\t\t\"I get to choose the direction whenever the target or I'm moved by the swarm\"\r\n\t\t\t\t];\r\n\t\t\t\tif (n >= 11) a.splice(4, 0, \"   Additionally, on a failed save, I can also have the target be knocked prone\");\r\n\t\t\t\tif (n >= 20) a.pop();\r\n\t\t\t\treturn desc(a);\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Mage Hand; When cast, its hand takes the form of my swarming nature spirits\",\r\n\t\t\t\t\"I get bonus spells known, which do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"web\", \"gaseous form\", \"arcane eye\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Writhing Tide\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can fly on my swarm for 1 minute: 10 ft flying speed and can hover\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Mighty Swarm\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : \" [improves Gathered Swarm, see above]\\n   Now 1d8 damage, knocks prone on failed save, or grants me half cover until next turn\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Swarming Dispersal\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can gain resistance to that damage and teleport\",\r\n\t\t\t\t\"I vanish into my swarm and teleport to an unoccupied space within 30 ft that I can see\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n// Add both subclasses to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(TCoE_Ranger_Subclass_Fey_Wanderer, TCoE_Ranger_Subclass_Swarmkeeper);\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Rogue Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Rogue Optional Class Features\r\nAddFeatureChoice(ClassList.rogue.features[\"thieves cant\"], true, \"Steady Aim\", {\r\n\tname : \"Steady Aim\",\r\n\textraname : \"Optional Rogue 3\",\r\n\tsource : [[\"T\", 62]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action if I don't move during my turn, I can give myself adv. on my next attack\",\r\n\t\t\"This attack roll has to be in the same turn and my speed is 0 until the end of the turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tprereqeval : function (v) { return classes.known.rogue.level >= 3 ? true : \"skip\"; }\r\n}, \"Optional 3rd-level rogue features\");\r\n\r\n// Rogue Subclasses\r\nAddSubClass(\"rogue\", \"phantom\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*phantom).*$/i,\r\n\tsubname : \"Phantom\",\r\n\tsource : [[\"T\", 62]],\r\n\tfullname : \"Phantom\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Whispers of the Dead\",\r\n\t\t\tsource : [[\"UA:SR\", 1]],\r\n\t\t\tsource : [[\"T\", 62]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a rest, I gain a skill or tool proficiency of my choice until I change it again\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a short or long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wails from the Grave\",\r\n\t\t\tsource : [[\"T\", 62]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tvar a = [\r\n\t\t\t\t\t\"Directly after I deal sneak attack damage to a creature on my turn, I \" + (n < 17 ? \"can\" : \"also\") + \" harm another\",\r\n\t\t\t\t\tn < 17 ? \"I then deal half my sneak attack in necrotic damage to a creature I can see within 30 ft\" : \"I deal half my sneak attack in necrotic damage to both it and another I can see in 30 ft\"\r\n\t\t\t\t];\r\n\t\t\t\tif (n >= 9) a.push(\"I can do this my Proficiency Bonus per long rest, or by destroying a soul trinket (ST)\");\r\n\t\t\t\treturn desc(a);\r\n\t\t\t}),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn Math.ceil(n / 4) + \"d6\";\r\n\t\t\t}),\r\n\t\t\taltResource : levels.map(function (n) {\r\n\t\t\t\treturn n < 9 ? \"\" : \"ST\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Tokens of the Departed\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : \" [max Proficiency Bonus of soul trinkets]\" + desc([\r\n\t\t\t\t\"As a reaction when I see a creature within 30 ft die, I can create a Tiny soul trinket\",\r\n\t\t\t\t\"The token of its life essence appears in my free hand; The DM determines its appearance\",\r\n\t\t\t\t\"While a soul trinket is on my person, I have advantage on death and Constitution saves\",\r\n\t\t\t\t\"As an action, I can destroy one of my soul trinkets and ask its associated spirit a question\",\r\n\t\t\t\t\"Its spirit appears and answers concisely in a language it knew; Trinket can be anywhere\"\r\n\t\t\t]),\r\n\t\t\taction : [\r\n\t\t\t\t[\"reaction\", \"Create Soul Trinket\"],\r\n\t\t\t\t[\"action\", \"Destroy Soul Trinket\"]\r\n\t\t\t],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Soul Trinkets (max Prof Bonus)\",\r\n\t\t\t\tusages : \"\",\r\n\t\t\t\trecovery : \"Special\"\r\n\t\t\t}],\r\n\t\t\tsavetxt : { text : [\"While soul trinket is on me, Adv. on Con and death saves\"] }\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ghost Walk\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can assume a spectral form with 10 ft flying speed and can hover\",\r\n\t\t\t\t\"Attacks vs. me have disadv.; I can move through creatures and objects as difficult terrain\",\r\n\t\t\t\t\"This lasts 10 min; I take 1d10 force damage if I end my turn inside a creature or object\",\r\n\t\t\t\t\"I can assume this form once per long rest, or by destroying one of my soul trinkets (ST)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"ST\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Death's Friend\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Wails from the Grave now also deals damage to the target of the original sneak attack\",\r\n\t\t\t\t\"If I don't have any soul trinkets at the end of a long rest, one appears in my hand\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"soulknife\", {\r\n\tregExpSearch : /soulknife/i,\r\n\tsubname : \"Soulknife\",\r\n\tsource : [[\"T\", 63]],\r\n\tfullname : \"Soulknife\",\r\n\tabilitySave : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Energy Dice\",\r\n\t\t\tsource : [[\"T\", 64]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain twice my proficiency bonus of psionic energy dice (PsiD) that fuel my psionics\",\r\n\t\t\t\t\"I regain all expended psionic energy dice after a long rest; See psionic powers on page 3\",\r\n\t\t\t\t\"As a bonus action once per short rest, I can regain one expended psionic energy die\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 5 ? \"d6\" : n < 11 ? \"d8\" : n < 17 ? \"d10\" : \"d12\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Regain 1 Psionic Energy Die\"]],\r\n\t\t\tusages : \"Proficiency Bonus \\xD7 2 per \",\r\n\t\t\tusagescalc : \"event.value = Number(How('Proficiency Bonus'))*2\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Regain 1 Psionic Energy die\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}],\r\n\t\t\textraname : \"Soulknife 3\",\r\n\t\t\t\"psi-bolstered knack\" : {\r\n\t\t\t\tname : \"Psionic Power: Psi-Bolstered Knack\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tadditional: \"1 PsiD if successful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I fail an check using a skill or tool I'm proficient with, I can add a psionic energy die to it\",\r\n\t\t\t\t\t\"The psionic energy die is only expended if this addition turns the failure into a success\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"psychic whispers\" : {\r\n\t\t\t\tname : \"Psionic Power: Psychic Whispers\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can select my Prof Bonus of creatures I can see and roll a psionic energy die\",\r\n\t\t\t\t\t\"For the roll of hours, I can telepathically communicate with each and they with me\",\r\n\t\t\t\t\t\"To send or receive messages (no action), we must be within 1 mile of each other\",\r\n\t\t\t\t\t\"A creature must be able to speak a language to do this; It can end the link at any time\",\r\n\t\t\t\t\t\"The first time I do this after a long rest, I don't expend the psionic energy die (PsiD)\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Psychic Whispers\",\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"PsiD\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"psi-bolstered knack\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"psychic whispers\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psychic Blades\",\r\n\t\t\tsource : [[\"T\", 64]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As part of an Attack action, I can manifest a psychic blade from a free hand to attack\",\r\n\t\t\t\t\"It vanishes immediately after making the attack and leaves no mark on its target\",\r\n\t\t\t\t\"As a bonus action after this attack, I can manifest and attack with another psychic blade\",\r\n\t\t\t\t\"To do this, my other hand needs to be free as well and this blade does only 1d4 damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Psychic Blade (after Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*psychic)(?=.*blade).*$/i,\r\n\t\t\t\tname : \"Psychic Blade\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Simple\",\r\n\t\t\t\tdamage : [1, 6, \"psychic\"],\r\n\t\t\t\trange : \"Melee, 60 ft\",\r\n\t\t\t\tdescription : \"Finesse, thrown; Bonus action: 1d4 instead of 1d6\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Soul Blades\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'My psi-suffused soul grants me more psionic powers, see the 3rd page \"Notes\" section',\r\n\t\t\t]),\r\n\t\t\textraname : \"Soulknife 9\",\r\n\t\t\t\"homing strikes\" : {\r\n\t\t\t\tname : \"Homing Strikes\",\r\n\t\t\t\tsource : [[\"T\", 65]],\r\n\t\t\t\tadditional: \"1 PsiD if successful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I miss an attack with my psychic blades, I can add a psionic energy die to the attack roll\",\r\n\t\t\t\t\t\"The psionic energy die is only expended if this addition turns the miss into a hit\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"psychic teleportation\" : {\r\n\t\t\t\tname : \"Psychic Teleportation\",\r\n\t\t\t\tsource : [[\"T\", 65]],\r\n\t\t\t\tadditional: \"1 PsiD\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can teleport up to 10 ft away times the roll of my psionic energy die\",\r\n\t\t\t\t\t\"I manifest a psychic blade and throw it to an empty space I can see before teleporting to it\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"homing strikes\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"psychic teleportation\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Psychic Veil\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become invisible along with what I'm wearing or carrying for 1 hour\",\r\n\t\t\t\t\"I can end it (no action); It also ends if I damage a creature or force one to make a save\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Rend Mind\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my psychic blade to deal sneak attack damage to a target, I can have it save\",\r\n\t\t\t\t\"It must make a Wisdom save (DC 8 + Prof Bonus + Dex mod) or be stunned for 1 min\",\r\n\t\t\t\t\"It can repeat the save at the end of each of its turns to end being stunned\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending three psionic energy dice (3 PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"3 PsiD\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Sorcerer Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Sorcerer Optional Class Features\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Additional Sorcerer Spells\", {\r\n\tname : \"Additional Sorcerer Spells\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"T\", 65]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"grease\", \"flame blade\", \"flaming sphere\", \"magic weapon\", \"vampiric touch\", \"fire shield\", \"bigby's hand\", \"flesh to stone\", \"otiluke's freezing sphere\", \"demiplane\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the sorcerer class with the following spells (spell level in brackets): Grease (1), Flame Blade (2), Flaming Sphere (2), Magic Weapon (2), Vampiric Touch (3), Fire Shield (4), Bigby's Hand (5), Flesh to Stone (6), Otiluke's Freezing Sphere (6), and Demiplane (8).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\n// Metamagic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Seeking Spell\", {\r\n\tname : \"Seeking Spell\",\r\n\tsource : [[\"T\", 66]],\r\n\tadditional: \"2 sorcery points\",\r\n\tdescription : desc([\r\n\t\t\"If I miss an attack roll for a spell, I can reroll the d20 and must use the new roll\",\r\n\t\t\"I can do this even if I already used another Metamagic option during the casting of the spell\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Transmuted Spell\", {\r\n\tname : \"Transmuted Spell\",\r\n\tsource : [[\"T\", 66]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"If the spell deals one of the below damage types, I can change it to another on the list\",\r\n\t\t\"These damage types are: acid, cold, fire, lightning, poison, or thunder\"\r\n\t])\r\n});\r\n// Other optional features\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Sorcerous Versatility (prereq: level 4 sorcerer)\", {\r\n\tname : \"Sorcerous Versatility\",\r\n\textraname : \"Optional Sorcerer 4\",\r\n\tsource : [[\"T\", 66]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the sorcerer class, I can change a cantrip or Metamagic choice\",\r\n\t\t\"I can select either another cantrip from the sorcerer spell list or another Metamagic option\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.sorcerer.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Magical Guidance (prereq: level 5 sorcerer)\", {\r\n\tname : \"Magical Guidance\",\r\n\textraname : \"Optional Sorcerer 5\",\r\n\tsource : [[\"T\", 66]],\r\n\tdescription : \" [1 sorcery point]\\n   When I make an ability check that fails, I can reroll the d20 and must use the new roll\",\r\n\tprereqeval : function (v) { return classes.known.sorcerer.level >= 5 ? true : \"skip\"; }\r\n}, \"Optional sorcerer features\");\r\n\r\n// Sorcerer Subclasses\r\nAddSubClass(\"sorcerer\", \"aberrant mind\", {\r\n\tregExpSearch : /^(?=.*aberrant)(?=.*mind).*$/i,\r\n\tsubname : \"Aberrant Mind\",\r\n\tsource : [[\"T\", 67]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Psionic Spells\",\r\n\t\t\tsource : [[\"T\", 67]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn additional spells, which do not count towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I gain a sorcerer level, I can replace one of these with another of the same level\",\r\n\t\t\t\t\"It must be a divination or enchantment spell on the sorcerer, wizard, or warlock spell list\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Psionic Spells (cantrip)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\textraspells : [\"mind sliver\"],\r\n\t\t\t\tselection : [\"mind sliver\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (1st-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"arms of hadar\", \"dissonant whispers\"],\r\n\t\t\t\tselection : [\"arms of hadar\", \"dissonant whispers\"],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (2nd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [2, 2],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"calm emotions\", \"detect thoughts\"],\r\n\t\t\t\tselection : [\"calm emotions\", \"detect thoughts\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 3 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (3rd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [3, 3],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"hunger of hadar\", \"sending\"],\r\n\t\t\t\tselection : [\"hunger of hadar\", \"sending\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 5 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (4th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [4, 4],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"evard's black tentacles\", \"summon aberration\"],\r\n\t\t\t\tselection : [\"evard's black tentacles\", \"summon aberration\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 7 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (5th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [5, 5],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"rary's telepathic bond\", \"telekinesis\"],\r\n\t\t\t\tselection : [\"rary's telepathic bond\", \"telekinesis\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 9 ? 0 : 2; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Telepathic Speech\",\r\n\t\t\tsource : [[\"T\", 67]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can telepathic link myself with a creature within 30 ft that I can see\",\r\n\t\t\t\t\"If we share a language, we can talk telepathically while in my Cha mod of miles (min 1)\",\r\n\t\t\t\t\"This last for my level in minutes, until I'm incapacitated, I die, or I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n + \" minute\" + (n > 1 ? \"s\" : \"\");\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Sorcery\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend sorcery points instead of a spell slot to cast a spell from my Psionic Spells\",\r\n\t\t\t\t\"This costs the spell's level in sorcery points, but in doing so requires no other components\",\r\n\t\t\t\t\"However, I do need to provide a material components if it is consumed by the spell\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Psychic Defenses\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I gain resistance to psychic damage and adv. on saves vs. being charmed or frightened\"),\r\n\t\t\tdmgres : [\"Psychic\"],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Revelation in Flesh\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend 1 or more sorcery points to transform for 10 minutes\",\r\n\t\t\t\t\"For each sorcery point used, I gain one of the following benefits of my choice:\",\r\n\t\t\t\t\" \\u2022 I can see any invisible creatures within 60 ft of me not behind total cover\",\r\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\" \\u2022 I gain a swimming speed equal to twice my walking speed \\u0026 I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 I can move, with equipment, through any space as narrow as 1 inch without squeezing\",\r\n\t\t\t\t\"   Also, I can spend 5 ft of movement to escape form a grapple or nonmagical restraints\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : \"1+ sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Warping Implosion\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport to an unoccupied space I can see within 120 ft\",\r\n\t\t\t\t\"All within 30 ft of where I left take 3d10 force damage and must make a Strength save\",\r\n\t\t\t\t\"If failed, each is pulled towards the space I left, ending up in the nearest empty space\",\r\n\t\t\t\t\"If successful, a creature takes only half damage and isn't pulled\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"clockwork soul\", {\r\n\tregExpSearch : /^((?=.*(sorcerer|witch))(?=.*mechanus)|(?=.*clockwork)(?=.*soul)).*$/i,\r\n\tsubname : \"Clockwork Soul\",\r\n\tsource : [[\"T\", 68]],\r\n\tfullname : \"Clockwork Soul\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Clockwork Magic\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn additional spells, which do not count towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I gain a sorcerer level, I can replace one of these with another of the same level\",\r\n\t\t\t\t\"It must be an abjuration or transmutation spell on the sorcerer, wizard, or warlock list\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Clockwork Magic (1st-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\textraspells : [\"alarm\", \"protection from evil and good\"],\r\n\t\t\t\tselection : [\"alarm\", \"protection from evil and good\"],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (2nd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [2, 2],\r\n\t\t\t\textraspells : [\"aid\", \"lesser restoration\"],\r\n\t\t\t\tselection : [\"aid\", \"lesser restoration\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 3 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (3rd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [3, 3],\r\n\t\t\t\textraspells : [\"dispel magic\", \"protection from energy\"],\r\n\t\t\t\tselection : [\"dispel magic\", \"protection from energy\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 5 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (4th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [4, 4],\r\n\t\t\t\textraspells : [\"freedom of movement\", \"summon construct\"],\r\n\t\t\t\tselection : [\"freedom of movement\", \"summon construct\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 7 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (5th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [5, 5],\r\n\t\t\t\textraspells : [\"greater restoration\", \"wall of force\"],\r\n\t\t\t\tselection : [\"greater restoration\", \"wall of force\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 9 ? 0 : 2; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Restore Balance\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 60 ft is about to roll a d20 with adv./disadv.,\",\r\n\t\t\t\t\"I can prevent that roll from being affected by advantage and disadvantage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bulwark of Law\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can imbue a creature I can see within 30 ft with a magical ward\",\r\n\t\t\t\t\"The ward has a number of d8s equal to the number of sorcery points I expend to do this\",\r\n\t\t\t\t\"As a reaction when the creature takes damage, it can expend any number of those dice\",\r\n\t\t\t\t\"The dice roll reduces the damage; The ward lasts until I finish a long rest or do this again\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1-5 sorcery points; 1d8 per point\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Trance of Order\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can enter a state of clockwork consciousness for 1 minute\",\r\n\t\t\t\t\"While in this state, attack rolls against me can't benefit from advantage\",\r\n\t\t\t\t\"Also, I can then treat a d20 roll below 9 as a 10 for my attack rolls, checks, and saves\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Clockwork Cavalcade\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can call spirits to bring balance in a 30-ft cube originating from me\",\r\n\t\t\t\t\"Inside the cube, the intangible spirits do all the following before vanishing:\",\r\n\t\t\t\t\" \\u2022 Restore up to 100 HP, divided among the creatures in the cube as I choose\",\r\n\t\t\t\t\" \\u2022 Repair all damaged objects entirely in the cube instantly\",\r\n\t\t\t\t\" \\u2022 End every spell of 6th-level or lower on objects or creatures of my choice in the cube\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 7 sorcery points (7 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"7 SP\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Warlock Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Warlock Optional Class Features\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Additional Warlock Spells\", {\r\n\tname : \"Additional Warlock Spells\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"mislead\", \"planar binding\", \"teleportation circle\", \"gate\", \"weird\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the warlock class with the following spells (spell level in brackets): Mislead (5), Planar Binding (5), Teleportation Circle (5), Gate (9), and Weird (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\nAddWarlockPactBoon(\"Pact of the Talisman\", {\r\n\tname : \"Pact of the Talisman\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : desc([\r\n\t\t\"When the wearer of this amulet fails an ability check, they can add +1d4 to the roll\",\r\n\t\t\"I can give the talisman to others to use; The talisman turns to ash when I die\",\r\n\t\t\"If I lose my talisman, I can perform a 1-hour ceremony to gain a replacement\",\r\n\t\t\"This ceremony destroys the previous amulet and can be done during a short or long rest\"\r\n\t]),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddFeatureChoice(ClassList.warlock.features[\"pact boon\"], true, \"Eldritch Versatility\", {\r\n\tname : \"Eldritch Versatility\",\r\n\textraname : \"Optional Warlock 4\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the warlock class, I can change one of the following things:\",\r\n\t\t\" \\u2022 I can replace one warlock cantrip with another cantrip from the warlock spell list\",\r\n\t\t\" \\u2022 I can replace my pact boon for another\",\r\n\t\t\" \\u2022 If I have Mystic Arcanum, I can replace one spell from it with another of the same level\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.warlock.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level warlock features\");\r\n// Eldritch Invocation options\r\nAddWarlockInvocation(\"Bond of the Talisman (prereq: level 12 warlock, Pact of the Talisman)\", {\r\n\tname : \"Bond of the Talisman\",\r\n\tsource : [[\"T\", 70]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can teleport to the unoccupied space closest to the wearer of my talisman\",\r\n\t\t\"The talisman's wearer can do the same to teleport to me; Only works if both on same plane\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 12 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Eldritch Mind\", {\r\n\tname : \"Eldritch Mind\",\r\n\tsource : [[\"T\", 71]],\r\n\tdescription: desc(\"I have advantage on my Constitution saving throws to maintain concentration on a spell\"),\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves\" }\r\n});\r\nAddWarlockInvocation(\"Far Scribe (prereq: level 5 warlock, Pact of the Tome)\", {\r\n\tname : \"Far Scribe\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Proficiency Bonus in creature names; I can remove one as an action\",\r\n\t\t\"I can cast Sending without a spell slot or material components, targeting one on the page\",\r\n\t\t\"Instead of saying the message, I write it on the page and any reply appears there as well\",\r\n\t\t\"This writing disappears after 1 minute; The target still hears the message in their mind\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Far Scribe\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Send 25 word message to crea named in book of shadows; it recognizes me and can respond 25 words\",\r\n\t\t\tchanges : \"By using Far Scribe, I can cast Sending without using a spell slot or material components, but only to target one of the creatures that wrote their name in my book of shadows. Instead of speaking the message, I write it in my book and any response appears there as well, lasting for 1 minute. The target still hears the message in their mind.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gift of the Protectors (prereq: level 9 warlock, Pact of the Tome)\", {\r\n\tname : \"Gift of the Protectors\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Proficiency Bonus in creature names; I can remove one as an action\",\r\n\t\t\"If a creature whose name is on the page drops to 0 HP, it magically drops to 1 HP instead\",\r\n\t\t\"This doesn't work if the creature would be killed outright\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Investment of the Chain Master (prereq: Pact of the Chain)\", {\r\n\tname : \"Investment of the Chain Master\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription : desc([\r\n\t\t\"When I cast Find Familiar, the summoned create has additional benefits:\",\r\n\t\t\"\\u2022 It gains a flying or swimming speed of 40 ft (my choice at casting)\",\r\n\t\t\"\\u2022 As a bonus action, I can command it to take the Attack action\",\r\n\t\t\"\\u2022 Its weapon attacks are considered magical for overcoming immunities and resistances\",\r\n\t\t\"\\u2022 If it forces a creature to make a saving throw, it uses my spell save DC\",\r\n\t\t\"\\u2022 As a reaction when it takes damage, I can grant it resistance against that damage\"\r\n\t]),\r\n\taction : [[\"bonus action\", \" (command to attack)\"], [\"reaction\", \" (give resistance)\"]],\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\tcalcChanges : {\r\n\t\tcompanionCallback : [function(prefix, oCrea, bAdd, sCompType) {\r\n\t\t\tif (sCompType !== \"pact_of_the_chain\") return;\r\n\t\t\tvar strFea = \"##\\u25C6 Investment of the Chain Master (TCoE 71)##. The familiar gains 40 ft fly or swim speed (my choice), its attacks are considered magical, and it can use my spell save DC instead of its own DC's (if any).\";\r\n\t\t\tvar strSpd = \"fly or swim 40 ft\";\r\n\t\t\tif (What(\"Unit System\") === \"metric\") {\r\n\t\t\t\tstrFea = ConvertToMetric(strFea, 0.5);\r\n\t\t\t\tstrSpd = ConvertToMetric(strSpd, 0.5);\r\n\t\t\t}\r\n\t\t\tvar aFnc = bAdd ? AddString : RemoveString;\r\n\t\t\taFnc(prefix + \"Comp.Use.Features\", strFea, true);\r\n\t\t\taFnc(prefix + \"Comp.Use.Speed\", strSpd, typePF ? \",\\n\" : \", \");\r\n\t\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\t\tvar baseFld = prefix + \"Comp.Use.Attack.\" + i;\r\n\t\t\t\tvar weaDescrFld = baseFld + \".Description\";\r\n\t\t\t\tvar strWeaDescr = What(weaDescrFld);\r\n\t\t\t\tif (bAdd && What(baseFld + \".Weapon Selection\") && !(/(,|;)? ?counts as magical/i).test(strWeaDescr)) {\r\n\t\t\t\t\tAddString(weaDescrFld, \"Counts as magical\", \"; \");\r\n\t\t\t\t} else if (!bAdd) {\r\n\t\t\t\t\tValue(weaDescrFld, strWeaDescr.replace(/(,|;)? ?counts as magical/i, ''));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"My pact of the chain familiars gain an extra feature listing the extra bonuses they gain.\"]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Protection of the Talisman (prereq: level 7 warlock, Pact of the Talisman)\", {\r\n\tname : \"Protection of the Talisman\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription: desc(\"When the wearer of my talisman fails a saving throw, they can add +1d4 to the roll\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 7 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Rebuke of the Talisman (prereq: Pact of the Talisman)\", {\r\n\tname : \"Rebuke of the Talisman\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when the wearer of my talisman is hit, I deal damage and push the attacker\",\r\n\t\t\"To be able to do this, I have to see the attacker and it has to be within 30 ft of me\",\r\n\t\t\"I deal it my Proficiency Bonus in psychic damage and push it 10 ft away from the talisman\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Undying Servitude (prereq: level 5 warlock)\", {\r\n\tname : \"Undying Servitude\",\r\n\tdescription: desc(\"Once per long rest, I can cast Animate Dead without using a spell slot\"),\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tusages : 1,\r\n\tadditional : \"no spell slot\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Undying Servitude\",\r\n\t\tspells : [\"animate dead\"],\r\n\t\tselection : [\"animate dead\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; }\r\n});\r\n\r\n// Warlock Subclasses\r\nAddSubClass(\"warlock\", \"the fathomless\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*fathomless).*$/i,\r\n\tsubname : \"the Fathomless\",\r\n\tsource : [[\"T\", 72]],\r\n\tspellcastingExtra : [\"create or destroy water\", \"thunderwave\", \"gust of wind\", \"silence\", \"lightning bolt\", \"sleet storm\", \"control water\", \"summon elemental\", \"bigby's hand\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Tentacle of the Deeps\",\r\n\t\t\tsource : [[\"T\", 72]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon or move a spectral tentacle and make an attack with it\",\r\n\t\t\t\t\"I can summon it to a space within 60 ft that I can see or move an existing one 30 ft\",\r\n\t\t\t\t\"I make melee spell attacks with 10 ft reach with it that deal cold damage\",\r\n\t\t\t\t\"Creatures hit by the tentacle suffer 10 ft speed reduction until the start of my next turn\",\r\n\t\t\t\t\"The 10-ft long tentacle lasts for 1 minute or until I summon another\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/move)\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8\";\r\n\t\t\t}),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*tentacle)(?=.*\\b(deeps?|spectral)\\b).*$/i,\r\n\t\t\t\tname : \"Tentacle of the Deeps\",\r\n\t\t\t\tsource : [[\"T\", 72]],\r\n\t\t\t\tability : 6,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"Cold\"],\r\n\t\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\t\tdescription : \"On hit, -10 ft speed until my next turn starts\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\ttentacleOfTheDeeps : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.tentacleOfTheDeeps && classes.known.warlock.level >= 10) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '2d8';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'',\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Gift of the Sea\",\r\n\t\t\tsource : [[\"T\", 72]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I have a swimming speed of 40 ft and I can breathe underwater\"),\r\n\t\t\tspeed : { swim : { spd : 40, enc : 30 } }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Oceanic Soul\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to cold damage now that I'm even more at home in the depths\",\r\n\t\t\t\t\"While I'm fully submerged, others who are as well can understand my speech and I theirs\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Cold\"],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"summon elemental\" : {\r\n\t\t\t\t\tdescription : \"Summon Water Elemental Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\t\t\t\t\tchanges : \"My warlock spell Summon Elemental can only call forth an elemental spirit of water.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Guardian Coil\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I see in 10 ft of my tentacle is damaged, it can help\",\r\n\t\t\t\t\"The tentacle interposes itself, reducing the damage of the attack for that creature\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8 damage reduced\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Grasping Tentacles\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Evard's Black Tentacles; Once per long rest, I can cast it without using a spell slot\",\r\n\t\t\t\t\"It counts as a warlock spell for me, but not towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I cast it, I gain temporary hit points equal to my warlock level\",\r\n\t\t\t\t\"Moreover, damage can't break my concentration on this spell\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n + \" temp HP; 1\\xD7 per long rest no SS\";\r\n\t\t\t}),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Grasping Tentacles\",\r\n\t\t\t\tspells : [\"evard's black tentacles\"],\r\n\t\t\t\tselection : [\"evard's black tentacles\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Evard's Black Tentacles (no spell slot)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"evard's black tentacles\") {\r\n\t\t\t\t\t\t\tspellObj.description = \"I temp hp; All enter/start in 20-ft rad save or restrained \\u0026 3d6 Bludg. dmg/rnd; Str/Dex check escape\";\r\n\t\t\t\t\t\t\tspellObj.duration = \"Conc*, 1 min\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Whenever I cast Evard's Black Tentacles, I gain temporary hit points equal to my warlock level.\\n \\u2022 Damage can't break my concentration on this spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fathomless Plunge\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport myself and up to 5 willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"We reappear up to 1 mile away, inside or within 30 ft of a body of water I've seen\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the genie\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*(genie|dao|djinni|efreeti|marid)).*$/i,\r\n\tsubname : \"the Genie\",\r\n\tsource : [[\"T\", 73], [\"UA:SR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Choose Genie Kind\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to choose the kind of genie your patron is'),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellList : [\r\n\t\t\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && spList.name && /mystic arcanum/i.test(spList.name) && spList.level[0] === 9) {\r\n\t\t\t\t\t\t\tspList.extraspells.push(\"wish\");\r\n\t\t\t\t\t\t} else if (spType.indexOf(\"bonus\") === -1 && spName === \"warlock\") {\r\n\t\t\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\t\t\tspList.notspells.push(\"wish\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The Genie patron adds Wish as a spell available for my 9th-level Mystic Arcanum selection.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"Dao (earth)\", \"Djinni (air)\", \"Efreeti (fire)\", \"Marid (water)\"],\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Dao, associated with earth\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"sanctuary\", \"phantasmal force\", \"spike growth\", \"create food and water\", \"meld into stone\", \"phantasmal killer\", \"stone shape\", \"creation\", \"wall of stone\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Djinni, associated with air\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"thunderwave\", \"gust of wind\", \"phantasmal force\", \"create food and water\", \"wind wall\", \"greater invisibility\", \"phantasmal killer\", \"creation\", \"seeming\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is an Efreeti, associated with fire\"),\r\n\t\t\t\tspellcastingExtra : [\"burning hands\", \"detect evil and good\", \"phantasmal force\", \"scorching ray\", \"create food and water\", \"fireball\", \"fire shield\", \"phantasmal killer\", \"creation\", \"flame strike\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Marid, associated with water\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"fog cloud\", \"blur\", \"phantasmal force\", \"create food and water\", \"sleet storm\", \"control water\", \"phantasmal killer\", \"cone of cold\", \"creation\", \"wish\"]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature1.3\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Genie's Vessel\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My patron gifts me a magical vessel, a Tiny object, granting me a measure of its power\",\r\n\t\t\t\t\"I choose the vessel's appearance; I can use it as my spellcasting focus for warlock spells\",\r\n\t\t\t\t\"The vessel's AC is my spell save DC and it has my warlock level + Proficiency Bonus in HP\",\r\n\t\t\t\t\"If it is destroyed or lost, I can get a replacement with a 1-hour ceremony during a rest\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Genie's Vessel: Bottled Respite\",\r\n\t\t\tsource : [[\"T\", 74], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can vanish and enter the extradimensional space inside my genie's vessel\",\r\n\t\t\t\t\"The vessel stays in its location; The space inside is a 20-ft high, 20-ft radius cylinder\",\r\n\t\t\t\t\"As a bonus action, I can exit my vessel; I exit it early if I die or the vessel is destroyed\",\r\n\t\t\t\t\"I can remain inside for twice my Proficiency Bonus in hours; Objects can be left inside\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Bottled Respite\",\r\n\t\t\taction : [[\"action\", \" (enter)\"], [\"bonus action\", \" (eject)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature1.3\" : {\r\n\t\t\tname : \"Genie's Wrath\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can deal bonus damage on my attacks, its type depending on my patron's genie kind\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Prof Bonus in extra bludgeoning damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' bludgeoning damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra bludgeoning damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra thunder damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' thunder damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra thunder damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra fire damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' fire damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra fire damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra cold damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' cold damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra cold damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Gift\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to a damage type depending on my patron's genie kind\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is',\r\n\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to bludgeoning damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Bludgeoning\"]\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to thunder damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Thunder\"]\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to fire damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Fire\"]\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to cold damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Cold\"]\r\n\t\t\t},\r\n\t\t\tadditional : \"Fly 10 min\",\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Sanctuary Vessel\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my vessel I can have up to 5 willing creatures I can see in 30 ft join me\",\r\n\t\t\t\t\"As a bonus action, I can eject any number of creatures from my genie's vessel\",\r\n\t\t\t\t\"Everyone is ejected when I leave it, I die, or if the vessel is destroyed\",\r\n\t\t\t\t\"Anyone who remains in the vessel for at least 10 min gains the benefits of a short rest\",\r\n\t\t\t\t\"Also, HD spend as part of this short rest has my Proficiency Bonus added to the roll\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Limited Wish\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tadditional: \"1\\xD7 per 1d4 long rests\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cast a 6th-level or lower spell with a casting time time of one action\",\r\n\t\t\t\t\"This can be any spell; It doesn't require any costly components, it simply takes effect\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Limited Wish\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"1d4 LR\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Wizard Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Wizard Optional Class Features\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Additional Wizard Spells\", {\r\n\tname : \"Additional Wizard Spells\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"T\", 75]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"augury\", \"enhance ability\", \"speak with dead\", \"divination\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the wizard class with the following spells (spell level in brackets): Augury (2), Enhance Ability (2), Speak with Dead (3), and Divination (4).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\nAddFeatureChoice(ClassList.wizard.features[\"arcane recovery\"], true, \"Cantrip Formulas\", {\r\n\tname : \"Cantrip Formulas\",\r\n\textraname : \"Optional Wizard 3\",\r\n\tsource : [[\"T\", 76]],\r\n\tdescription : desc([\r\n\t\t\"I have scribed arcane formulas in my spellbook with which I formulate cantrips in my mind\",\r\n\t\t\"Whenever I finish a long rest, I can use this to change a wizard cantrip I know for another\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.wizard.level >= 3 ? true : \"skip\"; },\r\n\tspellcastingPreparedCantrips: { \"class\": [\"wizard\"] },\r\n}, \"Optional 3rd-level wizard features\");\r\n\r\n// Wizard Subclasses\r\nAddSubClass(\"wizard\",\"order of scribes\", {\r\n\tregExpSearch : /^(?=.*wizard)(?=.*order)(?=.*scribes?).*$|scrivener/i,\r\n\tsubname : \"Order of Scribes\",\r\n\tsubnameShort: \"Scribes\",\r\n\tsource : [[\"T\", 77]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Wizardly Quill\",\r\n\t\t\tsource : [[\"T\", 77]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can magically create a Tiny quill with the following properties:\",\r\n\t\t\t\t\" \\u2022 It doesn't require ink and produces ink in the color of my choice when writing with it\",\r\n\t\t\t\t\" \\u2022 I require only 2 minutes per spell level to transcribe spells into my spellbook with it\",\r\n\t\t\t\t\" \\u2022 As a bonus action, I can use it to erase a text written with it if within 5 ft of the text\",\r\n\t\t\t\t\"The quill disappear if I create another or if I die\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create/erase)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Awakened Spellbook\",\r\n\t\t\tsource : [[\"T\", 77]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My spellbook gains sentience and grants me the following benefits while I am holding it:\",\r\n\t\t\t\t\" \\u2022 I can use the book as a spellcasting focus for my wizard spells\",\r\n\t\t\t\t\" \\u2022 When I cast a wizard spell using a spell slot, I can temporarily replace its damage type\",\r\n\t\t\t\t\"   The new type must appear in my spellbook in a spell of the same level as the spell slot\",\r\n\t\t\t\t\" \\u2022 Once per long rest, I can ritual cast a wizard spell without 10 min extra casting time\",\r\n\t\t\t\t\"I can replace it over a short rest, transferring its spells and sentience to a blank book\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"fast ritual cast\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Manifest Mind\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have the mind of my awakened spellbook manifest within 60 ft\",\r\n\t\t\t\t\"The spellbook needs to be on my person to do this; The mind is a Tiny spectral object\",\r\n\t\t\t\t\"The mind is intangible, doesn't occupy a space, hovers, and sheds dim light in 10 ft\",\r\n\t\t\t\t\"It can hear, see, has 60 ft darkvision, and telepathically shares with me what it perceives\",\r\n\t\t\t\t\"As a bonus action, I can dismiss it or move it up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"It can pass through creatures; It stops manifesting if it's over 300 ft from me or I die\",\r\n\t\t\t\t\"It also stop manifesting if Dispel Magic is cast on it or the awakened spellbook is no more\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+) to manifest it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (conjure/move/dismiss)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Manifest Mind: Cast Spell\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can have wizard spells I cast on my turn originate from the mind while its manifested\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Master Scrivener\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can write a spell in my awakened spellbook on a blank paper\",\r\n\t\t\t\t\"It must be a level 1 or 2 spell with 1 action casting time; My spellbook must be in 5 ft\",\r\n\t\t\t\t\"As an action, I can use this scroll to cast the spell on it at one higher level than normal\",\r\n\t\t\t\t\"Only I can use the scroll; The scroll turns blank again when I use it or finish a long rest\",\r\n\t\t\t\t\"Also, using my Wizardly Quill, the gold and time I need to craft spell scrolls is halved\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (cast scroll)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Master Scrivener scoll\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [1, 2],\r\n\t\t\t\tfirstCol : \"MS\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (!isDuplicate && spName === \"wizard\" && spellObj.firstCol === \"MS\" && (spellObj.level === 1 || spellObj.level === 2)) {\r\n\t\t\t\t\t\t\t// Calculate upcasting to be exactly 1 level higher\r\n\t\t\t\t\t\t\tvar rxMatch = /(\\d*d?\\d+)\\+(\\d*d?\\d+)\\/(\\d*SL)\\b/i;\r\n\t\t\t\t\t\t\twhile (rxMatch.test(spellObj.description)) {\r\n\t\t\t\t\t\t\t\tvar aMatch = spellObj.description.match(rxMatch);\r\n\t\t\t\t\t\t\t\tvar strDie1 = !isNaN(aMatch[1]) ? true : /\\d+d\\d+/i.test(aMatch[1]) ? aMatch[1].replace(/\\d+(d\\d+)/i, \"$1\") : false;\r\n\t\t\t\t\t\t\t\tvar strDie2 = !isNaN(aMatch[2]) ? true : /\\d+d\\d+/i.test(aMatch[2]) ? aMatch[2].replace(/\\d+(d\\d+)/i, \"$1\") : undefined;\r\n\t\t\t\t\t\t\t\tif (!/^SL$/i.test(aMatch[3])) {\r\n\t\t\t\t\t\t\t\t\t// only increases if more than 1 level higher spell slot, so nothing we can do with it, just remove all upcasting\r\n\t\t\t\t\t\t\t\t\tremoveSpellUpcasting(spellObj);\r\n\t\t\t\t\t\t\t\t} else if (/^\\d/.test(aMatch[1]) && strDie1 === strDie2) {\r\n\t\t\t\t\t\t\t\t\t// identical type steps (e.g. 1d6+1d6/SL or 3+1/SL), so add the second to the first\r\n\t\t\t\t\t\t\t\t\tvar strNew = (Number(aMatch[1].replace(/^(\\d+).*/, \"$1\")) + Number(aMatch[2].replace(/^(\\d+).*/, \"$1\"))) + aMatch[1].replace(/^\\d+(.*)/, \"$1\");\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(rxMatch, strNew);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// non-identical steps, so leave the first and second along, but remove the /SL\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(rxMatch, \"$1+$2\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// Remove costly material components\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/ \\(\\d+ ?gp( cons\\.?)?\\)/i, '');\r\n\t\t\t\t\t\t\t// List only the scroll as a component from the spell\r\n\t\t\t\t\t\t\tspellObj.components = \"M\\u2020\";\r\n\t\t\t\t\t\t\tspellObj.compMaterial = \"Spells cast from spell scrolls don't require any components other than the spell scroll itself.\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I finish a long rest, I can create a scroll of a spell in my spellbook using my Master Scrivener class feature. I can then cast this spell from the scroll and the spell is cast as if using a spell slot one level higher than its spell level.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"One with the Word\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : ' [see 3rd page \"Notes\" section]',\r\n\t\t\taction : [[\"reaction\", \" (when damaged)\"]],\r\n\t\t\tadvantages : [[\"Arcana\", true]],\r\n\t\t\t\"one with the word\" : {\r\n\t\t\t\tname : \"One with the Word\",\r\n\t\t\t\textraname : \"Order of Scribes 14\",\r\n\t\t\t\tsource : [[\"T\", 78]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While my awakened spellbook is on my person, I have advantage on Int (Arcana) checks\",\r\n\t\t\t\t\t\"As a reaction when I take damage while my spellbook's mind is manifested, I can dismiss it\",\r\n\t\t\t\t\t\"In dismissing the manifested mind like this, I prevent all of the damage taken by me\",\r\n\t\t\t\t\t\"After doing so, I lose spells with a combined level of 3d6 from my awakened spellbook\",\r\n\t\t\t\t\t\"If I do not have enough spells left to cover the number rolled, I drop to 0 HP instead\",\r\n\t\t\t\t\t\"The spells vanish from my spellbook, reappearing only after I finish 1d6 long rests\",\r\n\t\t\t\t\t\"I can't cast spells that I lost this way, even if found on a scroll or in another spellbook\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"one with the word\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>> //\r\n// >>> New Feats >>> //\r\n// >>>>>>>>>>>>>>>>> //\r\nFeatsList[\"artificer initiate\"] = {\r\n\tname : \"Artificer Initiate\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"You've learned some of an artificer's inventiveness:\\n \\u2022 You learn one cantrip of your choice from the artificer spell list, and you learn one 1st-level spell of your choice from that list. Intelligence is your spellcasting ability for these spells.\\n \\u2022 You can cast this feat's 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n \\u2022 You gain proficiency with one type of artisan's tools of your choice, and you can use that type of tool as a spellcasting focus for any spell you cast that uses Intelligence as its spellcasting ability.\",\r\n\tdescription : typePF ? \"I learn a cantrip and a 1st-level spell from the artificer's spell list. Int is my spellcasting ability for these. Once per long rest, I can cast the 1st-level spell at its lowest level without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for spells I cast with Int as spellcasting ability.\" : \"I learn one cantrip and one 1st-level spell from the artificer's spell list. Intelligence is my spellcasting ability for these. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for any spell I cast that uses Intelligence as its spellcasting ability.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Artificer cantrip\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tallowUpCasting : true,\r\n\t\t\"class\" : 'artificer',\r\n\t\tlevel : [0, 0],\r\n\t}, {\r\n\t\tname : \"1st-level artificer spell\",\r\n\t\t\"class\" : 'artificer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr\",\r\n\t}],\r\n\ttoolProfs : [ [\"Artisan's tools\", 1] ]\r\n};\r\nFeatsList[\"chef\"] = {\r\n\tname : \"Chef\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"Time spent mastering the culinary arts has paid off, granting you the following benefits:\\n \\u2022 Increase your Constitution or Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with cook's utensils if you don't already have it.\\n \\u2022 As part of a short rest, you can cook special food, provided you have ingredients and cook's utensils on hand. You can prepare enough of this food for a number of creatures equal to 4 + your proficiency bonus. At the end of the short rest, any creature who eats the food and spends one or more Hit Dice to regain hit points regains an extra 1d8 hit points.\\n \\u2022 With one hour of work or when you finish a long rest, you can cook a number of treats equal to your proficiency bonus. These special treats last 8 hours after being made. A creature can use a bonus action to eat one of those treats to gain temporary hit points equal to your proficiency bonus.\",\r\n\tdescription : \"During a short rest, I can make food for 4 + my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus creatures; if they eat it and spend 1\" + (typePF ? \"+ HD\" : \" or more Hit Die\") + \", they regain 1d8 HP. In one hour or during a long rest, I can make treats equal to my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus that last for 8 hours; As a bonus action, one can eat a treat, gaining my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus in temporary HP. [+1 \" + (typePF ? \"Con or Wis\" : \"Constitution or Wisdom\") + \"]\",\r\n\taction : [[\"bonus action\", \"Consume Chef's Treat\"]],\r\n\ttoolProfs : [\"Cook's utensils\"],\r\n\tscorestxt : \"+1 Constitution or Wisdom\"\r\n};\r\nFeatsList[\"crusher\"] = {\r\n\tname : \"Crusher\",\r\n\tsource : [[\"T\", 79]],\r\n\tdescriptionFull : \"You are practiced in the art of crushing your enemies, granting you the following benefits:\\n \\u2022 Increase your Strength or Constitution by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals bludgeoning damage, you can move it 5 feet to an unoccupied space, provided the target is no more than one size larger than you.\\n \\u2022 When you score a critical hit that deals bludgeoning damage to a creature, attack rolls against that creature are made with advantage until the start of your next turn.\",\r\n\tdescription : \"Once per turn, when I hit a creature no more than one size larger than me with an attack that deals bludgeoning damage, I can move it 5 ft to an unoccupied space. If I score a critical hit that deals bludgeoning damage, attacks against the creature hit gain advantage until the start of my next turn. [+1 \" + (typePF ? \"Str or Con\" : \"Strength or Constitution\") + \"]\",\r\n\tscorestxt : \"+1 Strength or Constitution\"\r\n};\r\nFeatsList[\"eldritch adept\"] = {\r\n\tname : \"Eldritch Adept\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"Studying occult lore, you have unlocked eldritch power within yourself: you learn one Eldritch Invocation option of your choice from the warlock class. If the invocation has a prerequisite of any kind, you can choose that invocation only if you're a warlock who meets the prerequisite.\\n   Whenever you gain a level, you can replace the invocation with another one from the warlock class.\",\r\n\tdescription : 'I learn one Eldritch Invocation from the warlock class for which I meet the prerequisites (2nd page \"Choose Feature\" button). I can replace this invocation for another whenever I gain a level.',\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"warlock\",\r\n\t\tfeature : \"eldritch invocations\",\r\n\t\tbonus : 1\r\n\t}],\r\n\tprerequisite : \"Spellcasting or Pact Magic feature\",\r\n\tprereqeval : function (v) { return v.isSpellcastingClass; }\r\n};\r\nFeatsList[\"fey touched\"] = {\r\n\tname : \"Fey Touched\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"Your exposure to the Feywild's magic has changed you, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn the misty step spell and one 1st-level spell of your choice. The 1st-level spell must be from the divination or enchantment school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\r\n\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Misty Step\",\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"1st-level Ench/Div spell\",\r\n\t\t'class': \"any\",\r\n\t\tschool : [\"Ench\", \"Div\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them \" + (typePF ? \"by expending\" : \"with\") + \" a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n// Add the fighting initiate only when all other code has run, so that we get fighting styles added by the code\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList.fighter || !ClassList.fighter.features[\"fighting style\"]) return;\r\n\tvar FtngStyles = ClassList.fighter.features[\"fighting style\"];\r\n\tFeatsList[\"fighting initiate\"] = {\r\n\t\tname : \"Fighting Initiate\",\r\n\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\t\tdescriptionFull : \"Your martial training has helped you develop a particular style of fighting. As a result, you learn one Fighting Style option of your choice from the fighter class. If you already have a style, the one you choose must be different.\\n   Whenever you reach a level that grants the Ability Score Improvement feature, you can replace this feat's fighting style with another one from the fighter class that you don't have.\",\r\n\t\tdescription : \"I learn one Fighting Style from the fighter class, which must be one that I don't yet know. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\tprerequisite : \"Proficiency with a martial weapon\",\r\n\t\tprereqeval : function(v) {\r\n\t\t\treturn v.martialWeaponsProf || v.otherWeaponsProf.some(function (n) {\r\n\t\t\t\treturn WeaponsList[n] && (/Martial/i).test(WeaponsList[n].type);\r\n\t\t\t});\r\n\t\t},\r\n\t\tchoices : [],\r\n\t\t\"archery\" : {\r\n\t\t\tdescription : \"I gain a +2 bonus to attack rolls I make with ranged weapons. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"defense\" : {\r\n\t\t\tdescription : \"I gain a +1 bonus to my AC while I'm wearing armor. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"dueling\" : {\r\n\t\t\tdescription : \"When I wield a melee weapon in one hand and no other weapons, I gain a +2 bonus to damage rolls with that weapon. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"great weapon fighting\" : {\r\n\t\t\tdescription : \"When I roll a 1 or 2 on a damage die for an attack I make with a two-handed or versatile melee weapon that I'm wielding with two hands, I can reroll the die and must use the new roll, even if the new roll is a 1 or a 2. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"protection\" : {\r\n\t\t\tdescription : \"When a creature I can see attacks a target other than me that is within 5 ft of me, I can use my reaction to impose disadvantage on the attack roll. I must be wielding a shield to do this. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"two-weapon fighting\" : {\r\n\t\t\tdescription : \"When I engage in two-weapon fighting, I can add my ability modifier to the damage of the second (off-hand) attack. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"blind fighting\" : {\r\n\t\t\tdescription : \"I have blindsight with a range of 10 ft, wherein I can effectively see anything that isn't behind total cover, including invisible things, even if I'm blinded or in darkness. This doesn't allow me to see things hidden from me. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 41]]\r\n\t\t},\r\n\t\t\"interception\" : {\r\n\t\t\tdescription : \"As a reaction when a creature I can see hits a target, other than me, within 5 ft of me with an attack, I can reduce the damage the target takes by 1d10 + my proficiency bonus (min 0 damage). I must be wielding a shield or a simple or martial weapon to do this. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 41], [\"UA:CFV\", 12]]\r\n\t\t},\r\n\t\t\"thrown weapon fighting\" : {\r\n\t\t\tdescription : \"I can draw a weapon that has the thrown property as part of the attack I make with the weapon. In addition, when I hit with a ranged attack using a thrown weapon, I gain a +2 bonus to the damage roll. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 42]]\r\n\t\t},\r\n\t\t\"unarmed fighting\" : {\r\n\t\t\tdescription : \"My unarmed strikes deal 1d6 damage, or 1d8 if I'm not wielding any weapons or a shield. At the start of each of my turns, I can deal 1d4 bludgeoning damage to one creature grappled by me. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 42]]\r\n\t\t}\r\n\t};\r\n\tFtngStyles.choices.forEach(function (sName) {\r\n\t\tvar sNameLC = sName.toLowerCase();\r\n\t\tif (!FtngStyles[sNameLC]) return;\r\n\t\tFeatsList[\"fighting initiate\"].choices.push(sName);\r\n\t\tif (!FeatsList[\"fighting initiate\"][sNameLC]) {\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC] = {\r\n\t\t\t\tdescription : FtngStyles[sNameLC].description.replace(/^\\n   /i, '').replace(/\\n   /g, '. ') + \". I can replace this fighting style whenever I gain an ASI.\",\r\n\t\t\t\tsource : FtngStyles[sNameLC].source ? FtngStyles[sNameLC].source : FtngStyles.source\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Copy all attributes except name, source and description\r\n\t\tfor (var attr in FtngStyles[sNameLC]) {\r\n\t\t\tif ((/\\b(name|description|source)\\b/i).test(attr)) continue;\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC][attr] = FtngStyles[sNameLC][attr];\r\n\t\t}\r\n\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prereqeval) {\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC].prereqeval = function(v) {\r\n\t\t\t\tvar knownStyles = GetFightingStyleSelection();\r\n\t\t\t\treturn knownStyles[v.choice] ? false : true;\r\n\t\t\t};\r\n\t\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prerequisite) FeatsList[\"fighting initiate\"][sNameLC].prerequisite = sName + \" Fighting Style is not selected anywhere else.\"\r\n\t\t};\r\n\t});\r\n});\r\nFeatsList[\"gunner\"] = {\r\n\tname : \"Gunner\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You have a quick hand and keen eye when employing firearms, granting you the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with firearms (see \\\"Firearms\\\" in the Dungeon Master's Guide).\\n \\u2022 You ignore the loading property of firearms.\\n \\u2022 Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls.\",\r\n\tdescription : \"I gain proficiency with firearms. I ignore the loading property of firearms. I don't suffer disadvantage on ranged attack rolls for being within 5 ft of a hostile creature. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tweaponProfs : [false, false, [\"Firearms\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/firearm/i).test(v.theWea.type) || (/firearm/i).test(v.theWea.list)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/([;,]? ?loading|loading[;,]? ?)/i, '');\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of firearms.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"metamagic adept\"] = {\r\n\tname : \"Metamagic Adept\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You've learned how to exert your will on your spells to alter how they function:\\n \\u2022 You learn two Metamagic options of your choice from the sorcerer class. You can use only one Metamagic option on a spell when you cast it, unless the option says otherwise. Whenever you reach a level that grants the Ability Score Improvement feature, you can replace one of these Metamagic options with another one from the sorcerer class.\\n \\u2022 You gain 2 sorcery points to spend on Metamagic (these points are added to any sorcery points you have from another source but can be used only on Metamagic). You regain all spent sorcery points when you finish a long rest.\",\r\n\tdescription : 'I learn two Metamagic options from the sorcerer class (2nd page \"Choose Feature\" button). I can use only one option on a spell unless it says otherwise. I gain 2 sorcery points, which I can only use for Metamagic. I regain all expended sorcery points when I finish a long rest. I can change one ' + (typePF ? '' : 'Metamagic option ') + 'whenever I gain an ' + (typePF ? 'ASI' : 'Ability Score Improvement') + '.',\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"sorcerer\",\r\n\t\tfeature : \"metamagic\",\r\n\t\tbonus : 2\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Sorcery Points\",\r\n\t\tusages : 2,\r\n\t\trecovery : \"long rest\",\r\n\t\taddToExisting : true\r\n\t}],\r\n\tprerequisite : \"Spellcasting or Pact Magic feature\",\r\n\tprereqeval : function (v) { return v.isSpellcastingClass; }\r\n};\r\nFeatsList[\"piercer\"] = {\r\n\tname : \"Piercer\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You have achieved a penetrating precision in combat, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals piercing damage, you can reroll one of the attack's damage dice, and you must use the new roll.\\n \\u2022 When you score a critical hit that deals piercing damage to a creature, you can roll one additional damage die when determining the extra piercing damage the target takes.\",\r\n\tdescription : \"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target, I can roll one additional damage die. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/pierc(\\.|ing)/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\tvar extraCritRegex = /\\d+(d\\d+ extra on a crit(ical)?( hit)?( in melee)?)/i;\r\n\t\t\t\t\tv.extraCritM = (v.extraCritM ? v.extraCritM : 0) + 1;\r\n\t\t\t\t\tif (extraCritRegex.test(fields.Description)) {\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');\r\n\t\t\t\t\t} else if ((/d\\d/).test(fields.Damage_Die)) {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\\d+).*/, '$1') + ' extra on a crit';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!(/re-?roll (one|1)? ?damage/i).test(fields.Description)) {\r\n\t\t\t\t\t\tfields.Description += '; Once per turn, re-roll one damage die';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target, I can roll one additional damage die.\",\r\n\t\t\t900\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"poisoner\"] = {\r\n\tname : \"Poisoner\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You can prepare and deliver deadly poisons, granting you the following benefits:\\n \\u2022 When you make a damage roll that deals poison damage, it ignores resistance to poison damage.\\n \\u2022 You can apply poison to a weapon or piece of ammunition as a bonus action, instead of an action.\\n \\u2022 You gain proficiency with the poisoner's kit if you don't already have it. With one hour of work using a poisoner's kit and expending 50 gp worth of materials, you can create a number of doses of potent poison equal to your proficiency bonus. Once applied to a weapon or piece of ammunition, the poison retains its potency for 1 minute or until you hit with the weapon or ammunition. When a creature takes damage from the coated weapon or ammunition, that creature must succeed on a DC 14 Constitution saving throw or take 2d8 poison damage and become poisoned until the end of your next turn.\",\r\n\tdescription : \"My poison damage rolls ignore poison resistance. As a bonus action, I can apply poison to a weapon or piece of ammo. I can use a poisoner's kit and 50 gp to create my Prof Bonus doses of poison in 1 hour. Potent 1 min after applying. DC 14 Con save or 2d8 poison damage and poisoned until the end of my next turn.\",\r\n\ttoolProfs : [\"Poisoner's kit\"],\r\n\taction : [[\"bonus action\", \"Apply poison to weapon/ammo\"]]\r\n};\r\nFeatsList[\"shadow touched\"] = {\r\n\tname : \"Shadow Touched\",\r\n\tsource : [[\"T\", 80]],\r\n\tdescriptionFull : \"Your exposure to the Shadowfell's magic has changed you, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You learn the invisibility spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You learn the invisibility spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\r\n\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Invisibility\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"1st-level Illus/Necro spell\",\r\n\t\t'class' : \"any\",\r\n\t\tschool : [\"Illus\", \"Necro\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"skill expert\"] = {\r\n\tname : \"Skill Expert\",\r\n\tsource : [[\"T\", 80]],\r\n\tdescriptionFull : \"You have honed your proficiency with particular skills, granting you the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in one skill of your choice.\\n \\u2022 Choose one skill in which you have proficiency. You gain expertise with that skill, which means your proficiency bonus is doubled for any ability check you make with it. The skill you choose must be one that isn't already benefiting from a feature, such as Expertise, that doubles your proficiency bonus.\",\r\n\tdescription : \"I gain proficiency in one skill and expertise in that same skill or another skill I'm proficient with. [+1 to one ability score of my choice]\",\r\n\tskillstxt : \"Proficiency with one skill, and\\n   Expertise with one skill I'm proficient with\",\r\n\tscorestxt : \"+1 to one ability score of my choice\"\r\n};\r\nFeatsList[\"slasher\"] = {\r\n\tname : \"Slasher\",\r\n\tsource : [[\"T\", 81], [\"UA:F2\", 3]],\r\n\tdescriptionFull : \"You've learned where to cut to have the greatest results, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn when you hit a creature with an attack that deals slashing damage, you can reduce the speed of the target by 10 feet until the start of your next turn.\\n \\u2022 When you score a critical hit that deals slashing damage to a creature, you grievously wound it. Until the start of your next turn, the target has disadvantage on all attack rolls.\",\r\n\tdescription : \"Once per turn when I deal slashing damage to a target, I can reduce its speed by 10 ft until the start of my next turn. When I score a critical hit that deals slashing damage to a creature, the grievous wound causes it to have disadvantage on all attack rolls until the start of my next turn. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\nFeatsList[\"telekinetic\"] = {\r\n\tname : \"Telekinetic\",\r\n\tsource : [[\"T\", 81]],\r\n\tdescriptionFull : \"You learn to move things with your mind, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You learn the mage hand cantrip. You can cast it without verbal or somatic components, and you can make the spectral hand invisible. If you already know this spell, its range increases by 30 feet when you cast it. Its spellcasting ability is the ability increased by this feat.\\n \\u2022 As a bonus action, you can try to telekinetically shove one creature you can see within 30 feet of you. When you do so, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + the ability modifier of the score increased by this feat) or be moved 5 feet toward you or away from you. A creature can willingly fail this save.\",\r\n\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str save vs. this feat's spell save DC or be moved 5 ft from or towards me. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Int, Wis, or Cha]\",\r\n\taction : [[\"bonus action\", \" Shove\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Mage Hand\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spellKey !== \"mage hand\") return;\r\n\t\t\t\tspellObj.components = \"\";\r\n\t\t\t\tif (spellObj.description === SpellsList[\"mage hand\"].description) spellObj.description = \"Create (in)visible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\";\r\n\t\t\t\tvar rangeRx = /(\\d+)( ?ft| ?m)/i;\r\n\t\t\t\tif (!/^(?=.*telekinetic)(?=.*feat).*$/i.test(CurrentSpells[spName].name) && rangeRx.test(spellObj.range)) {\r\n\t\t\t\t\t// add the +30 ft range only if not the entry for the feat itself\r\n\t\t\t\t\tvar spRangeM = spellObj.range.match(rangeRx);\r\n\t\t\t\t\tspellObj.range = spellObj.range.replace(rangeRx, Number(spRangeM[1]) + (What(\"Unit System\") === \"metric\" ? 9 : 30) + spRangeM[2]);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t},\r\n\t\t\t\"My Telekinetic feat allows me to cast the Mage Hand cantrip without verbal or somatic components and I can make the spectral hand invisible. If I already know the cantrip from another source, its range is also increased with 30 ft.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Intelligence is my spellcasting ability for these. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Wisdom is my spellcasting ability for these. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Charisma is my spellcasting ability for these. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"telepathic\"] = {\r\n\tname : \"Telepathic\",\r\n\tsource : [[\"T\", 81]],\r\n\tdescriptionFull : \"You awaken the ability to mentally connect with others, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You can speak telepathically to any creature you can see within 60 feet of you. Your telepathic utterances are in a language you know, and the creature understands you only if it knows that language. Your communication doesn't give the creature the ability to respond to you telepathically.\\n \\u2022 You can cast the detect thoughts spell, requiring no spell slot or components, and you must finish a long rest before you can cast it this way again. Your spellcasting ability for the spell is the ability increased by this feat. If you have spell slots of 2nd level or higher, you can cast this spell with them.\",\r\n\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. My spellcasting ability is the ability I increase with this feat. [+1 Int, Wis, or Cha]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Detect Thoughts\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tspellChanges : {\r\n\t\t\"detect thoughts\" : {\r\n\t\t\tcomponents : \"(V,S,M)\",\r\n\t\t\tchanges : \"My Telepathic feat allows me to cast Detect Thoughts once per long rest without requiring a spell slot or spell components, or by using a spell slot and cast it with components as normal.\"\r\n\t\t}\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Intelligence is my spellcasting ability for this. [+1 Int\" + (typePF ? \"\" : \"elligence\") + \"]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Wisdom is my spellcasting ability for this. [+1 Wis\" + (typePF ? \"\" : \"dom\") + \"]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Charisma is my spellcasting ability for this. [+1 Cha\" + (typePF ? \"\" : \"risma\") + \"]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>> //\r\n// >>> New Spells >>> //\r\n// >>>>>>>>>>>>>>>>>> //\r\nSpellsList[\"dream of the blue veil\"] = {\r\n\tname : \"Dream of the Blue Veil\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 106]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"20 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A magic item or a willing creature from the destination world\",\r\n\tduration : \"6 hours\",\r\n\tdescription : \"9 willing crea unconscious for duration, after that travel to origin material plane of magic item or crea\",\r\n\tdescriptionFull : \"You and up to eight willing creatures within range fall unconscious for the spell's duration and experience visions of another world on the Material Plane, such as Oerth, Toril, Krynn, or Eberron. If the spell reaches its full duration, the visions conclude with each of you encountering and pulling back a mysterious blue curtain. The spell then ends with you mentally and physically transported to the world that was in the visions.\" +\r\n\t\"\\n   To cast this spell, you must have a magic item that originated on the world you wish to reach, and you must be aware of the world's existence, even if you don't know the world's name. Your destination in the other world is a safe location within 1 mile of where the magic item was created. Alternatively, you can cast the spell if one of the affected creatures was born on the other world, which causes your destination to be a safe location within 1 mile of where that creature was born.\" +\r\n\t\"\\n   The spell ends early on a creature if that creature takes any damage, and the creature isn't transported. If you take any damage, the spell ends for you and all the other creatures, with none of you being transported.\"\r\n};\r\nSpellsList[\"intellect fortress\"] = {\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107]],\r\n\tlevel : 3,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1+1/SL crea, each max 30 ft apart, has Psychic damage resistance and adv. on Int, Wis, and Cha saves\",\r\n\tdescriptionFull : \"For the duration, you or one willing creature you can see within range has resistance to psychic damage, as well as advantage on Intelligence, Wisdom, and Charisma saving throws.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional creature for each slot level above 3rd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"mind sliver\"] = {\r\n\tname : \"Mind Sliver\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\tlevel : 0,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d6 Psychic dmg, -1d4 on first save before my next turn ends; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionShorter : \"1 crea save or 1d6 Psychic dmg, -1d4 on 1st save before my next turn end; +1d6 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Psychic dmg and subtract 1d4 from first saving throw before my next turn ends\",\r\n\tdescriptionFull : \"You drive a disorienting spike of psychic energy into the mind of one creature you can see within range. The target must succeed on an Intelligence saving throw or take 1d6 psychic damage and subtract 1d4 from the next saving throw it makes before the end of your next turn.\" +\r\n\t\"\\n   This spell's damage increases by 1d6 when you reach certain levels: 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nWeaponsList[\"mind sliver\"] = {\r\n\tregExpSearch : /^(?=.*mind)(?=.*sliver).*$/i,\r\n\tname : \"Mind Sliver\",\r\n\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"psychic\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"1 creature Int save, success - no damage, fail - also -1d4 on first save before my next turn ends\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nSpellsList[\"spirit shroud\"] = {\r\n\tname : \"Spirit Shroud\",\r\n\tclasses : [\"cleric\", \"paladin\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 108]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 bns\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"My atks +1d8+1d8/2SL Cold/Necro/Radiant dmg, no heal until next turn; any crea I see -10 ft spd\",\r\n\tdescriptionShorter : \"My atks +1d8+1d8/2SL Cold/Necro/Radiant dmg, no heal 1 rnd; any crea -10 ft spd\",\r\n\tdescriptionFull : \"You call forth spirits of the dead, which flit around you for the spell's duration. The spirits are intangible and invulnerable.\"+\r\n\t\"\\n   Until the spell ends, any attack you make deals 1d8 extra damage when you hit a creature within 10 feet of you. This damage is radiant, necrotic, or cold (your choice when you cast the spell). Any creature that takes this damage can't regain hit points until the start of your next turn.\"+\r\n\t\"\\n   In addition, any creature of your choice that you can see that starts its turn within 10 feet of you has its speed reduced by 10 feet until the start of your next turn.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for every two slot levels above 3rd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"cold\", \"necrotic\", \"radiant\"],\r\n\t\t\tinDescriptionAs : \"Cold/Necro/Radiant\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"summon aberration\"] = {\r\n\tname : \"Summon Aberration\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 109]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A pickled tentacle and an eyeball in a platinum-inlaid vial worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Abberant Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth an aberrant spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Aberrant Spirit stat block. When you cast the spell, choose Beholderkin, Slaad, or Star Spawn. The creature resembles an aberration of that kind, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon beast\"] = {\r\n\tname : \"Summon Beast\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"T\", 109]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A feather, tuft of fur, and fish tail inside a gilded acorn worth at least 200 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Bestial Spirit; obeys commands; takes turn after mine; disappears at 0 hp (200gp)\",\r\n\tdescriptionFull : \"You call forth a bestial spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Bestial Spirit stat block. When you cast the spell, choose an environment: Air, Land, or Water. The creature resembles an animal of your choice that is native to the chosen environment, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon celestial\"] = {\r\n\tname : \"Summon Celestial\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"T\", 110]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A golden reliquary worth at least 500 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Celestial Spirit; obeys commands; takes turn after mine; disappears at 0 hp (500gp)\",\r\n\tdescriptionFull : \"You call forth a celestial spirit. It manifests in an angelic form in an unoccupied space that you can see within range. This corporeal form uses the Celestial Spirit stat block. When you cast the spell, choose Avenger or Defender. Your choice determines the creature's attack in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon construct\"] = {\r\n\tname : \"Summon Construct\",\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"T\", 111]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An ornate stone and metal lockbox worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Construct Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth the spirit of a construct. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Construct Spirit stat block. When you cast the spell, choose a material: Clay, Metal, or Stone. The creature resembles a golem or a modron (your choice) made of the chosen material, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon elemental\"] = {\r\n\tname : \"Summon Elemental\",\r\n\tclasses : [\"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"T\", 111]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Air, a pebble, ash, and water inside a gold-inlaid vial worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Elemental Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth an elemental spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Elemental Spirit stat block. When you cast the spell, choose an element: Air, Earth, Fire, or Water. The creature resembles a bipedal form wreathed in the chosen element, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon fey\"] = {\r\n\tname : \"Summon Fey\",\r\n\tclasses : [\"druid\", \"ranger\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 112]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded flower worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Fey Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a fey spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Fey Spirit stat block. When you cast the spell, choose a mood: Fuming, Mirthful, or Tricksy. The creature resembles a fey creature of your choice marked by the chosen mood, which determines one of the traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon fiend\"] = {\r\n\tname : \"Summon Fiend\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 112]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Humanoid blood inside a ruby vial worth at least 600 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Fiendish Spirit; obeys commands; takes turn after mine; disappears at 0 hp (600gp)\",\r\n\tdescriptionFull : \"You call forth a fiendish spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Fiendish Spirit stat block. When you cast the spell, choose Demon, Devil, or Yugoloth. The creature resembles a fiend of the chosen type, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon shadowspawn\"] = {\r\n\tname : \"Summon Shadowspawn\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 113]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Tears inside a gem worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Shadow Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a shadowy spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Shadow Spirit stat block. When you cast the spell, choose an emotion: Fury, Despair, or Fear. The creature resembles a misshapen biped marked by the chosen emotion, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon undead\"] = {\r\n\tname : \"Summon Undead\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 114]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded skull worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Undead Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth an undead spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Undead Spirit stat block. When you cast the spell, choose the creature's form: Ghostly, Putrid, or Skeletal. The spirit resembles an undead creature with the chosen form, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"tasha's caustic brew\"] = {\r\n\tname : \"Tasha's Caustic Brew\",\r\n\tnameAlt : \"Caustic Brew\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"T\", 115]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of rotten food\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft long 5-ft wide all save or 2d4+2d4/SL Acid dmg at start of turn; action to clean self or adjacent\",\r\n\tdescriptionShorter : \"30-ft long 5-ft wide all save or 2d4+2d4/SL Acid dmg at turn start; 1 a clean self/adjacent\",\r\n\tdescriptionFull : \"A stream of acid emanates from you in a line 30 feet long and 5 feet wide in a direction you choose. Each creature in the line must succeed on a Dexterity saving throw or be covered in acid for the spell's duration or until a creature uses its action to scrape or wash the acid off itself or another creature. A creature covered in the acid takes 2d4 acid damage at start of each of its turns.\" +\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 2d4 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"tasha's mind whip\"] = {\r\n\tname : \"Tasha's Mind Whip\",\r\n\tnameAlt : \"Mind Whip\",\r\n\tregExpSearch : /^(?=.*mind)(?=.*(whip|thrust)).*$/i, // \"Mind Thrust\" in UA:POR\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"T\", 115], [\"UA:POR\", 8]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1+1/SL crea, max 30 ft apart; 3d6 Psychic dmg; no rea; only move, act, or bns; save half, no act limit\",\r\n\tdescriptionShorter : \"1+1/SL crea, max 30 ft apart; 3d6 Psychic dmg; no rea; move, act, or bns; save half, no act limit\",\r\n\tdescriptionFull : \"You psychically lash out at one creature you can see within range. The target must make an Intelligence saving throw. On a failed save, the target takes 3d6 psychic damage, and it can't take a reaction until the end of its next turn. Moreover, on its next turn, it must choose whether it gets a move, an action, or a bonus action; it gets only one of the three. On a successful save, the target takes half as much damage and suffers none of the spell's other effects.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"tasha's otherworldly guise\"] = {\r\n\tname : \"Tasha's Otherworldly Guise\",\r\n\tnameShort : \"T's Otherworldly Guise\",\r\n\tnameAlt : \"Otherworldly Guise\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 116]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An object engraved with a symbol of the Outer Planes, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Fire/Poison or Radiant/Necrotic/Charm immune; 40 ft fly; +2 AC; 2 atks; spellcast. abi atks (500gp)\",\r\n\tdescriptionFull : \"Uttering an incantation, you draw on the magic of the Lower Planes or Upper Planes (your choice) to transform yourself. You gain the following benefits until the spell ends:\" +\r\n\t\"\\n \\u2022 You are immune to fire and poison damage (Lower Planes) or radiant and necrotic damage (Upper Planes).\" +\r\n\t\"\\n \\u2022 You are immune to the poisoned condition (Lower Planes) or the charmed condition (Upper Planes).\" +\r\n\t\"\\n \\u2022 Spectral wings appear on your back, giving you a flying speed of 40 feet.\" +\r\n\t\"\\n \\u2022 You have a +2 bonus to AC.\" +\r\n\t\"\\n \\u2022 All your weapon attacks are magical, and when you make a weapon attack, you can use your spellcasting ability modifier, instead of Strength or Dexterity, for the attack and damage rolls.\" +\r\n\t\"\\n \\u2022 You can attack twice, instead of once, when you take the Attack action on your turn. You ignore this benefit if you already have a feature, like Extra Attack, that lets you attack more than once when you take the Attack action on your turn.\"\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>> //\r\n// >>> Magic Items >>> //\r\n// >>>>>>>>>>>>>>>>>>> //\r\n// Tattoos\r\nvar TCoE_magicTattoosDescription = desc([\r\n\t\" >>Tattoo Attunement<<. To attune to this item, you hold the needle to your skin where you want the tattoo to appear, pressing the needle there throughout the attunement process. When the attunement is complete, the needle turns into the ink that becomes the tattoo, which appears on the skin.\",\r\n\t\" If your attunement to the tattoo ends, the tattoo vanishes, and the needle reappears in your space.\",\r\n\t\"\\n>>Magic Tattoos<< (TCoE 118)\",\r\n\t\" Blending magic and artistry with ink and needles, magic tattoos imbue their bearers with wondrous abilities. Magic tattoos are initially bound to magic needles, which transfer their magic to a creature.\",\r\n\t\" Once inscribed on a creature's body, damage or injury doesn't impair the tattoo's function, even if the tattoo is defaced. When applying a magic tattoo, a creature can customize the tattoo's appearance. A magic tattoo can look like a brand, scarification, a birthmark, patterns of scale, or any other cosmetic alteration.\",\r\n\t\" The rarer a magic tattoo is, the more space it typically occupies on a creature's skin. The table below offers guidelines for how large a given tattoo is.\",\r\n\t\"\\n>>Tattoo Rarity\\tArea Covered<<\",\r\n\t\"Common     \\tOne hand or foot or a quarter of a limb\",\r\n\t\"Uncommon   \\tHalf a limb or the scalp\",\r\n\t\"Rare\\t\\tOne limb\",\r\n\t\"Very Rare  \\tTwo limbs or the chest or upper back\",\r\n\t\"Legendary  \\tTwo limbs and the torso\"\r\n], \"\\n  \");\r\nmagicTattoosTxt = { // a public variable to be used for any magical tattoo that uses these rules\r\n\tbase : TCoE_magicTattoosDescription,\r\n\tunicode : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tuppercase : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/\\byou\\b/ig, \"I\"),\r\n\tplain : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, \"$1\").replace(/your/g, \"my\").replace(/\\byou\\b/ig, \"I\")\r\n};\r\nMagicItemsList[\"absorbing tattoo\"] = function() {\r\n\tvar oObj = {\r\n\t\tname : \"Absorbing Tattoo\",\r\n\t\tsource : [[\"T\", 119]],\r\n\t\ttype : \"wondrous item (tattoo)\",\r\n\t\trarity : \"very rare\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing. It grants me resistance to a damage type. As a reaction once per dawn when I take that type of damage, I can gain immunity against that instance of damage and recover half the damage as HP.\",\r\n\t\tdescriptionFull : \"Produced by a special needle, this magic tattoo features designs that emphasize one color.\"+\r\n\t\t\"\\n   \" + toUni(\"Damage Resistance\") + \". While the tattoo is on your skin, you have resistance to a type of damage associated with that color, as shown on the table below. The DM chooses the color or determines it randomly.\"+\r\n\t\ttoUni(\"\\nd10\\tDamage Type\\tColor\")+\r\n\t\t\"\\n   1\\tAcid\\t\\tGreen\"+\r\n\t\t\"\\n   2\\tCold\\t\\tBlue\"+\r\n\t\t\"\\n   3\\tFire\\t\\tRed\"+\r\n\t\t\"\\n   4\\tForce\\t\\tWhite\"+\r\n\t\t\"\\n   5\\tLightning  \\tYellow\"+\r\n\t\t\"\\n   6\\tNecrotic\\t\\tBlack\"+\r\n\t\t\"\\n   7\\tPoison\\t\\tViolet\"+\r\n\t\t\"\\n   8\\tPsychic\\t\\tSilver\"+\r\n\t\t\"\\n   9\\tRadiant\\t\\tGold\"+\r\n\t\t\"\\n 10\\tThunder\\t\\tOrange\"+\r\n\t\t\"\\n\\n   \" + toUni(\"Damage Absorption\") + \". When you take damage of the chosen type, you can use your reaction to gain immunity against that instance of the damage, and you regain a number of hit points equal to half the damage you would have taken. Once this reaction is used, it can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"Immunity\",\r\n\t\tchoices : [\"Acid (green)\", \"Cold (blue)\", \"Fire (red)\", \"Force (white)\", \"Lightning (yellow)\", \"Necrotic (black)\", \"Poison (violet)\", \"Psychic (silver)\", \"Radiant (gold)\", \"Thunder (orange)\"]\r\n\t};\r\n\tvar sDescr = \"When I attune to this magic needle, it disappears and I gain a COLOR magical tattoo of a design of my choosing. It grants me resistance to TYPE damage. As a reaction once per dawn when I take TYPE damage, I can gain immunity against that instance of damage and recover half the damage as HP.\";\r\n\tfor (var i = 0; i < oObj.choices.length; i++) {\r\n\t\tvar aType = oObj.choices[i].split(/ \\(|\\)/g);\r\n\t\toObj[oObj.choices[i].toLowerCase()] = {\r\n\t\t\tname : aType[0] + \" Absorbing Tattoo\",\r\n\t\t\tsortname : \"Absorbing Tattoo, \" + aType[0],\r\n\t\t\tdescription : sDescr.replace(/TYPE/g, aType[0].toLowerCase()).replace(/COLOR/g, aType[1]),\r\n\t\t\tdmgres : [aType[0]],\r\n\t\t\taction : [[\"reaction\", \" (Immunity)\"]]\r\n\t\t}\r\n\t}\r\n\treturn oObj;\r\n}();\r\nMagicItemsList[\"barrier tattoo\"] = {\r\n\tname : \"Barrier Tattoo\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\tdescription : \"This magic tattoo depicts protective imagery and uses ink that resembles liquid metal. While not wearing armor, this tattoo grants me an Armor Class related to the rarity of the tattoo.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo depicts protective imagery and uses ink that resembles liquid metal.\"+\r\n\t\"\\n   \" + toUni(\"Protection\") + \". While you aren't wearing armor, the tattoo grants you an Armor Class depending on the tattoo's rarity, as shown below. You can use a shield and still gain this benefit.\"+\r\n\ttoUni(\"\\nTattoo Rarity\\tAC\")+\r\n\t\"\\n  Uncommon\\t12 + your Dexterity modifier\"+\r\n\t\"\\n  Rare\\t\\t15 + your Dexterity modifier (maximum of +2)\"+\r\n\t\"\\n  Very Rare\\t18\\n\"+\r\n\tmagicTattoosTxt.unicode,\r\n\tattunement : true,\r\n\tchoices : [\"AC 12+Dex (uncommon)\", \"AC 15+Dex (rare)\", \"AC 18 (very rare)\"],\r\n\t\"ac 12+dex (uncommon)\" : {\r\n\t\tname : \"Barrier Tattoo (uncommon)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 12 + my Dexterity modifier. I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 12,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"ac 15+dex (rare)\" : {\r\n\t\tname : \"Barrier Tattoo (rare)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 15 + my Dexterity modifier (maximum of +2). I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 15,\r\n\t\t\tdex : 2,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"ac 18 (very rare)\" : {\r\n\t\tname : \"Barrier Tattoo (very rare)\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 18. I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 18,\r\n\t\t\tdex : -10,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"blood fury tattoo\"] = {\r\n\tname : \"Blood Fury Tattoo\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo has 10 charges, regaining all at dawn. As a reaction when a creature I can see damages me, I can use 1 charge to make a melee attack with advantage against it. When I hit a creature with a melee attack, I can use 1 charge to deal it 4d6 necrotic damage and regain the same amount in hit points.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo evokes fury in its form and colors.\"+\r\n\t\"\\n   \" + toUni(\"Bloodthirsty Strikes\") + \". The tattoo has 10 charges, and it regains all expended charges daily at dawn. While this tattoo is on your skin, you gain the following benefits:\"+\r\n\t\"\\n \\u2022 When you hit a creature with a weapon attack, you can expend a charge to deal an extra 4d6 necrotic damage to the target, and you regain a number of hit points equal to the necrotic damage dealt.\"+\r\n\t\"\\n \\u2022 When a creature you can see damages you, you can expend a charge and use your reaction to make a melee attack against that creature, with advantage on your attack roll.\" + magicTattoosTxt.unicode,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (after taking damage)\"]]\r\n}\r\nMagicItemsList[\"coiling grasp tattoo\"] = {\r\n\tname : \"Coiling Grasp Tattoo\",\r\n\tsource : [[\"T\", 123]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo features intertwining designs. As an action, I can have a creature I can see within 15 ft make a DC 14 Str save or take 3d6 force damage and be grappled. It can use its action to try and escape (DC 14 Athletics/Acrobatics). Grapple ends if I halt it, use it again, or if the target is more than 15 ft away.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo has long intertwining designs.\"+\r\n\t\"\\n   \" + toUni(\"Grasping Tendrils\") + \". While the tattoo is on your skin, you can, as an action, cause the tattoo to extrude into inky tendrils, which reach for a creature you can see within 15 feet of you. The creature must succeed on a DC 14 Strength saving throw or take 3d6 force damage and be grappled by you. As an action, the creature can escape the grapple by succeeding on a DC 14 Strength (Athletics) or Dexterity (Acrobatics) check. The grapple also ends if you halt it (no action required), if the creature is ever more than 15 feet away from you, or if you use this tattoo on a different creature.\" + magicTattoosTxt.unicode,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*coiling grasp)(?=.*tattoo).*$/i,\r\n\t\tname : \"Coiling Grasp Tattoo\",\r\n\t\tsource : [[\"T\", 123]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [3, 6, \"force\"],\r\n\t\trange : \"15 ft\",\r\n\t\tdescription : \"Str save, success - no damage, fail - grappled; Escape DC 14 Athletics/Acrobatics\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tmodifiers : [6, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"eldritch claw tattoo\"] = {\r\n\tname : \"Eldritch Claw Tattoo\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo featuring clawlike forms makes my unarmed strikes magical with a +1 bonus to attack and damage. As a bonus action once per dawn, I can have it empower me for 1 minute so that all my melee attacks with weapons and unarmed strikes have 15 ft reach and deal an extra 1d6 force damage.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo depicts clawlike forms and other jagged shapes.\"+\r\n\t\"\\n   \" + toUni(\"Magical Strikes\") + \". While the tattoo is on your skin, your unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks, and you gain a +1 bonus to attack and damage rolls with unarmed strikes.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Maul\") + \". As a bonus action, you can empower the tattoo for 1 minute. For the duration, each of your melee attacks with a weapon or an unarmed strike can reach a target up to 15 feet away from you, as inky tendrils launch toward the target. In addition, your melee attacks deal an extra 1d6 force damage on a hit. Once used, this bonus action can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Eldritch Maul\",\r\n\taction : [[\"bonus action\", \" (Eldritch Maul)\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((v.baseWeaponName === \"unarmed strike\" || v.isMeleeWeapon) && (/eldritch (claw|maul)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tif (fields.Range.toLowerCase() === 'melee') {\r\n\t\t\t\t\t\tfields.Range = 'Melee (15 ft reach)';\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 force damage';\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '15 ft reach; +1d6 force damage';\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the words 'Eldritch Maul' or 'Eldritch Claw' in the name of a melee weapon or an unarmed strike, it gets +10 ft reach and +1d6 force damage.\",\r\n\t\t\t700\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\toutput.magic += 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"ghost step tattoo\"] = {\r\n\tname : \"Ghost Step Tattoo\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action 3 times per day, I can become incorporeal until my next turn ends. While incorporeal, I can't be grappled or restrained, gain nonmagical bludgeoning, piercing, and slashing damage resistance, and can move through creatures or objects as difficult terrain (1d10 force damage if I end my turn in one).\",\r\n\tdescriptionFull : \"Produced by a special needle, this tattoo shifts and wavers on the skin, parts of it appearing blurred.\"+\r\n\t\"\\n   \" + toUni(\"Ghostly Form\") + \". The tattoo has 3 charges, and it regains all expended charges daily at dawn. As a bonus action while the tattoo is on your skin, you can expend 1 of the tattoo's charges to become incorporeal until the end of your next turn. For the duration, you gain the following benefits:\"+\r\n\t\"\\n \\u2022 You have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks.\"+\r\n\t\"\\n \\u2022 You can't be grappled or restrained.\"+\r\n\t\"\\n \\u2022 You can move through creatures and solid objects as if they were difficult terrain. If you end your turn in a solid object, you take 1d10 force damage. If the effect ends while you are inside a solid object, you instead are shunted to the nearest unoccupied space, and you take 1d10 force damage for every 5 feet traveled.\" + magicTattoosTxt.unicode,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"illuminator's tattoo\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Illuminator's Tattoo\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"While this beautiful calligraphy tattoo is on my skin, I can write with my fingertip as if it is an ink pen that never runs out of ink. As an action, I can touch writing up to one page and speak a creature's name, making it invisible to everyone else but me and the creature for up to 24 hours or until I or the creature touch it.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo features beautiful calligraphy, images of writing implements, and the like.\"+\r\n\t\"\\n   \" + toUni(\"Magical Scribing\") + \". While this tattoo is on your skin, you can write with your fingertip as if it were an ink pen that never runs out of ink.\"+\r\n\t\"\\n   As an action, you can touch a piece of writing up to one page in length and speak a creature's name. The writing becomes invisible to everyone other than you and the named creature for the next 24 hours. Either of you can dismiss the invisibility by touching the script (no action required). Once used, this action can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"lifewell tattoo\"] = {\r\n\tname : \"Lifewell Tattoo\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring symbols of life and rebirth. It grants me resistance to necrotic damage. The first time per dawn when I would be reduced to 0 hit points, I drop to 1 hit point instead.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo features symbols of life and rebirth.\"+\r\n\t\"\\n   \" + toUni(\"Necrotic Resistance\") + \". You have resistance to necrotic damage.\"+\r\n\t\"\\n   \" + toUni(\"Life Ward\") + \". When you would be reduced to 0 hit points, you drop to 1 hit point instead. Once used, this property can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tdmgres : [\"Necrotic\"]\r\n}\r\nMagicItemsList[\"masquerade tattoo\"] = {\r\n\tname : \"Masquerade Tattoo\",\r\n\tsource : [[\"T\", 131]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo. As a bonus action, I can change its size, color, pattern, and location on my skin to whatever I want, but it's always obviously a tattoo. As an action once per dawn, I can use the tattoo to cast Disguise Self (DC 13 to discern the disguise).\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo appears on your body as whatever you desire.\"+\r\n\t\"\\n   \" + toUni(\"Fluid Ink\") + \". As a bonus action, you can shape the tattoo into any color or pattern and move it to any area of your skin. Whatever form it takes, it is always obviously a tattoo. It can range in size from no smaller than a copper piece to an intricate work of art that covers all your skin.\"+\r\n\t\"\\n   \" + toUni(\"Disguise Self\") + \". As an action, you can use the tattoo to cast the disguise self spell (DC 13 to discern the disguise). Once the spell is cast from the tattoo, it can't be cast from the tattoo again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Disguise Self\",\r\n\taction : [[\"bonus action\", \" (change)\"]],\r\n\tfixedDC : 13,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Disguise Self\",\r\n\t\tspells : [\"disguise self\"],\r\n\t\tselection : [\"disguise self\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\nMagicItemsList[\"shadowfell brand tattoo\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Shadowfell Brand Tattoo\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a dark, abstract magical tattoo. It gives me darkvision with a range of 60 ft and advantage on Dexterity (Stealth) checks. As a reaction once per sunset when I take damage, I can become insubstantial for a moment, halving the damage I take.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo is dark in color and abstract.\"+\r\n\t\"\\n   \" + toUni(\"Shadow Essence\") + \". You gain darkvision with a range of 60 feet, and you have advantage on Dexterity (Stealth) checks.\"+\r\n\t\"\\n   \" + toUni(\"Shadowy Defense\") + \". When you take damage, you can use your reaction to become insubstantial for a moment, halving the damage you take. Then the reaction can't be used again until the next sunset.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"sunset\",\r\n\taction : [[\"reaction\", \" (halve damage)\"]],\r\n\tadvantages : [\"Stealth\", true],\r\n\tvision : [[\"Darkvision\", 60]]\r\n}\r\nMagicItemsList[\"spellwrought tattoo\"] = {\r\n\tname : \"Spellwrought Tattoo\",\r\n\tsource : [[\"T\", 135]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\tdescription : \"When I hold this magic needle against my skin and speak the command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its spell, requiring no material components. The tattoo glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo contains a single spell of up to 5th level, wrought on your skin by a magic needle. To use the tattoo, you must hold the needle against your skin and speak the command word. The needle turns into ink that becomes the tattoo, which appears on the skin in whatever design you like. Once the tattoo is there, you can cast its spell, requiring no material components. The tattoo glows faintly while you cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes from your skin.\"+\r\n\t\"\\n   The level of the spell in the tattoo determines the spell's saving throw DC, attack bonus, spellcasting ability modifier, and the tattoo's rarity, as shown in the table below.\\n\"+\r\n\ttoUni(\"\\n Spell\\t\\t     Spellcasting\\tSave\\tAttack\"+\r\n\t\"\\n Level\\tRarity\\t     Ability Mod.\\t DC\\tBonus\")+\r\n\t\"\\nCantrip\\tCommon\\t\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  1st\\tCommon\\t\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  2nd\\tUncommon\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  3rd\\tUncommon\\t+4\\t 15\\t  +7\"+\r\n\t\"\\n  4th\\tRare\\t\\t+4\\t 15\\t  +7\"+\r\n\t\"\\n  5th\\tRare\\t\\t+5\\t 17\\t  +9\" + magicTattoosTxt.unicode.replace(/[\\s\\S]*in your space\\.\\n */, \"\\n\"),\r\n\tallowDuplicates : true,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ((/^spellwrought tattoo/i).test(spName)) {\r\n\t\t\t\t\tif (spellObj.components) spellObj.components = spellObj.components.replace(/,?[RM][\\u0192\\u2020]?/ig, '');\r\n\t\t\t\t\tif (spellObj.compMaterial) spellObj.compMaterial = \"Spell cast using a Spellwrought Tattoo, require no material components\";\r\n\t\t\t\t\tspellObj.ritual = false;\r\n\t\t\t\t\t[\"description\", \"descriptionMetric\", \"descriptionShorter\", \"descriptionShorterMetric\"].forEach (function (attr) {\r\n\t\t\t\t\t\tif (!spellObj[attr]) return;\r\n\t\t\t\t\t\tspellObj[attr] = spellObj[attr].replace(/ \\(\\d+k? ?gp( cons\\.?)?\\)/i, '');\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"When casting a spell using a Spellwrought Tattoo, no material components are needed, and can't be cast as a ritual.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Cantrip (common)\", \"1st-level (common)\", \"2nd-level (uncommon)\", \"3rd-level (uncommon)\", \"4th-level (rare)\", \"5th-level (rare)\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"cantrip (common)\" : {\r\n\t\tname : \"Spellwrought Tattoo (cantrip)\",\r\n\t\tsortname : \"Spellwrought Tattoo  (cantrip)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its cantrip, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,0],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"1st-level (common)\" : {\r\n\t\tname : \"Spellwrought Tattoo (1st-level)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 1st-level spell, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [1,1],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"2nd-level (uncommon)\" : {\r\n\t\tname : \"Spellwrought Tattoo (2nd-level)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 2nd-level spell, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [2,2],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"3rd-level (uncommon)\" : {\r\n\t\tname : \"Spellwrought Tattoo (3rd-level)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 3rd-level spell, requiring no material components, with DC 15, +7 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [3,3],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"4th-level (rare)\" : {\r\n\t\tname : \"Spellwrought Tattoo (4th-level)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 4th-level spell, requiring no material components, with DC 15, +7 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [4,4],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"5th-level (rare)\" : {\r\n\t\tname : \"Spellwrought Tattoo (5th-level)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 5th-level spell, requiring no material components, with DC 17, +9 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [5,5],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t}\r\n}\r\n// Bonus to spell attack rolls and saving throw DCs\r\nMagicItemsList[\"all-purpose tool\"] = {\r\n\tname : \"All-Purpose Tool\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by an artificer\",\r\n\tprereqeval : function(v) { return classes.known.artificer ? true : false; },\r\n\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\tdescriptionFull : \"This simple screwdriver can transform into a variety of tools; as an action, you can touch the item and transform it into any type of artisan's tool of your choice (see the \\\"Equipment\\\" chapter in the Player's Handbook for a list of artisan's tools). Whatever form the tool takes, you are proficient with it.\"+\r\n\t\"\\n   While holding this tool, you gain a bonus to the spell attack rolls and the saving throw DCs of your artificer spells. The bonus is determined by the tool's rarity.\"+\r\n\t\"\\n   As an action, you can focus on the tool to channel your creative forces. Choose a cantrip that you don't know from any class list. For 8 hours, you can cast that cantrip, and it counts as an artificer cantrip for you. Once this property is used, it can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"choose cantrip\",\r\n\tspellcastingAbility: \"artificer\",\r\n\tspellFirstColTitle: \"8h\",\r\n\tspellcastingPreparedCantrips: { 'class': 'any' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'any',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('all-purpose tool') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n\taction : [[\"action\", \" (transform tool)\"], [\"action\", \" (choose cantrip)\"]],\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"All-Purpose Tool +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +1 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"All-Purpose Tool +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +2 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"All-Purpose Tool +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +3 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"amulet of the devout\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Amulet of the Devout\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\tdescriptionFull : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While you wear the holy symbol you gain a bonus to spell attack rolls and the saving throw DCs of your spells. The bonus is determined by the amulet's rarity.\"+\r\n\t\"\\n   While you wear this amulet, you can use your Channel Divinity feature without expending one of the feature's uses. Once this property is used, it can't be used again until the next dawn.\",\r\n\tweight : 1, // as amulet holy symbol\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Channel Divinity\",\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Amulet of the Devout +1\",\r\n\t\tnameTest : \"+1 Amulet of the Devout\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +1 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Amulet of the Devout +2\",\r\n\t\tnameTest : \"+2 Amulet of the Devout\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +2 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Amulet of the Devout +3\",\r\n\t\tnameTest : \"+3 Amulet of the Devout\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +3 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"arcane grimoire\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Arcane Grimoire\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a bonus to spell attack rolls and the saving throw DCs of my wizard spells.\",\r\n\tdescriptionFull : \"While you are holding this leather-bound book, you can use it as a spellcasting focus for your wizard spells, and you gain a bonus to spell attack rolls and the saving throw DCs of your wizard spells. The bonus is determined by the book's rarity.\"+\r\n\t\"\\n   You can use this book as a spellbook. In addition, when you use your Arcane Recovery feature, you can increase the number of spell slot levels you regain by 1.\",\r\n\tweight : 3, // as spellbook\r\n\tchangeeval : function() {\r\n\t\t// Update the limited feature \"Arcane Recovery\" to display 1 more spell level than for the wizard level (unless there is no wizard level)\r\n\t\tif (!classes.known.wizard) return;\r\n\t\t// This changeeval is called before the class feature updates the limited feature, so we need to use setTimeOut to do the change after\r\n\t\tvar arcaneGrimoireArcaneRecoveryFix = function() {\r\n\t\t\tvar lvls = Math.ceil(classes.known.wizard.level / 2) + 1;\r\n\t\t\tvar additional = \" (\" + lvls + \" levels of spell slots)\";\r\n\t\t\tvar tooltip = \"Arcane Grimoire (recover +1 level)\";\r\n\t\t\tAddFeature(\"Arcane Recovery\", 1, additional, \"long rest\", tooltip, \"replace\");\r\n\t\t}\r\n\t\tvar timeout = app.setTimeOut(\"arcaneGrimoireArcaneRecoveryFix();\", 300);\r\n\t},\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Arcane Grimoire +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +1 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Arcane Grimoire +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +2 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Arcane Grimoire +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +3 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bloodwell vial\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Bloodwell Vial\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\tdescriptionFull : \"To attune to this vial, you must place a few drops of your blood into it. The vial can't be opened while your attunement to it lasts. If your attunement to the vial ends, the contained blood turns to ash. You can use the vial as a spellcasting focus for your spells while wearing or holding it, and you gain a bonus to spell attack rolls and to the saving throw DCs of your sorcerer spells. The bonus is determined by the vial's rarity.\"+\r\n\t\"\\n   In addition, when you roll any Hit Dice to recover hit points while you are carrying the vial, you can regain 5 sorcery points. This property of the vial can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"recover 5 Sorcery Points\",\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Bloodwell Vial +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +1 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Bloodwell Vial +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +1 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Bloodwell Vial +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +3 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"moon sickle\"] = {\r\n\tname : \"Moon Sickle\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"weapon (sickle)\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or ranger\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.ranger || classes.known.rangerua ? true : false;\r\n\t},\r\n\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a bonus to attack and damage rolls made with it. While I'm holding it, I gain a bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\tdescriptionFull : \"This silver-bladed sickle glimmers softly with moonlight. While holding this magic weapon, you gain a bonus to attack and damage rolls made with it, and you gain a bonus to spell attack rolls and the saving throw DCs of your druid and ranger spells. The bonus is determined by the weapon's rarity. In addition, you can use the sickle as a spellcasting focus for your druid and ranger spells.\"+\r\n\t\"\\n   When you cast a spell that restores hit points, you can roll a d4 and add the number rolled to the amount of hit points restored, provided you are holding the sickle.\",\r\n\tweight : 2,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spellObj.psionic || !spellObj.level) return;\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"enervation\" :\r\n\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\tcase \"vampiric touch\" :\r\n\t\t\t\t\t\tvar useSpellDescr = getSpellShortDescription(spellKey, spellObj);\r\n\t\t\t\t\t\tvar strAdd = \" +1d4\";\r\n\t\t\t\t\t\tspellObj.description = useSpellDescr.replace(/(heals? (half|twice)( the damage dealt| that)?)( in HP)?/, \"$1\" + strAdd);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tdefault :\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d4\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"While holding the Moon Sickle when I cast a spell that restores hit points, I can roll a d4 and add the number rolled to the amount of hit points restored.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"+1 weapon, +1 to spell attacks and DCs (uncommon)\", \"+2 weapon, +2 to spell attacks and DCs (rare)\", \"+3 weapon, +3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 weapon, +1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Moon Sickle +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +1 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +1 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +1\"], options : [\"Moon Sickle +1\"] }\r\n\t},\r\n\t\"+2 weapon, +2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Moon Sickle +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +2 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +2 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +2\"], options : [\"Moon Sickle +2\"] }\r\n\t},\r\n\t\"+3 weapon, +3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Moon Sickle +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +3 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +3 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +3\"], options : [\"Moon Sickle +3\"] }\r\n\t}\r\n}\r\nMagicItemsList[\"rhythm maker's drum\"] = {\r\n\tname : \"Rhythm Maker's Drum\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this drum, I gain a bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\tdescriptionFull : \"While holding this drum, you gain a bonus to spell attack rolls and to the spell saving throw DCs or your bard spells. The bonus is determined by the drum's rarity.\"+\r\n\t\"\\n   As an action, you can play the drum to regain one use of your Bardic Inspiration feature. This property of the drum can't be used again until the next dawn.\",\r\n\tweight : 3,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \" (bardic inspiration)\"]],\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"While holding this drum, I gain a +1 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While holding this drum, I gain a +2 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this drum, I gain a +3 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\n// Spellbook alternatives\r\nMagicItemsList[\"alchemical compendium\"] = {\r\n\tname : \"Alchemical Compendium\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this tome with spells as my spellbook and spellcasting focus. It has 3 charges, regaining 1d3 at dawn. With 1 charge \\u0026 1 min of study, I can change a prepared spell to a transmutation spell within. As an action, I can touch an unattended, nonmagical object and use charges to transform it into another. See tooltip.\",\r\n\tdescriptionLong : \"I can use this acrid smelling, stained, heavy book with metal fittings as my spellbook and, while held, as my spellcasting focus. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a transmutation spell within. As an action, I can touch an unattended, nonmagical object and use charges to transform it into another. For 1 charge, the object can be up to 1 ft on a side. I can spend additional charges to increase these dimensions by 2 ft per charge. The new object must have no higher gp value than the original.\",\r\n\tdescriptionFull : \"Acrid odors cling to this stained, heavy volume. The book's metal fittings are copper, iron, lead, silver, and gold, some frozen mid-transition from one metal to another. When found, the book contains the following spells: enlarge/reduce, feather fall, flesh to stone, gaseous form, magic weapon, and polymorph. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the transmutation school.\"+\r\n\t\"\\n \\u2022 As an action, you can touch a nonmagical object that isn't being worn or carried and spend a number of charges to transform the target into another object. For 1 charge, the object can be no larger than 1 foot on a side. You can spend additional charges to increase the maximum dimensions by 2 feet per charge. The new object must have a gold value equal to or less than the original.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"enlarge/reduce\", \"feather fall\", \"flesh to stone\", \"gaseous form\", \"magic weapon\", \"polymorph\"]\r\n\t},\r\n\taction : [[\"action\", \" (transform object)\"]]\r\n}\r\nMagicItemsList[\"astromancy archive\"] = {\r\n\tname : \"Astromancy Archive\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"As bonus action, I can (un)fold this disc into an armillary sphere. I can use it as a spellcasting focus and spellbook with 3 charges, regains 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can swap a prepared spell for a divination spell within. As a reaction, I can use 1 charge to add/subtract d4 from attack/check/save in 30 ft.\",\r\n\tdescriptionLong : \"As a bonus action, I can unfold this brass disc of articulated, concentric rings into an armillary sphere or back into a disc. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a divination spell within. As a reaction when I see a creature within 30 ft roll for an attack, check, or save, I can expend 1 change to add or subtract 1d4 from the roll. This happens after I see the roll but before the roll's effects are applied.\",\r\n\tdescriptionFull : \"This brass disc of articulated, concentric rings unfolds into an armillary sphere. As a bonus action, you can unfold it into the sphere or back into a disc. When found, it contains the following spells, which are wizard spells for you while you are attuned to it: augury, divination, find the path, foresight, locate creature, and locate object. It functions as a spellbook for you, with spells encoded on the rings.\"+\r\n\t\"\\n   While you are holding the archive, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The archive has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the archive, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the archive. The new spell must be of the divination school.\"+\r\n\t\"\\n \\u2022 When a creature you can see within 30 feet of you makes an attack roll, an ability check, or a saving throw, you can use your reaction to expend 1 charge and force the creature to roll a d4 and apply the number rolled as a bonus or penalty (your choice) to the original roll. You can do this after you see the roll but before its effects are applied.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Astromancy Archive\",\r\n\t\t\tspells : [\"augury\", \"divination\", \"find the path\"], // not wizard spells!\r\n\t\t\tselection : [\"augury\", \"divination\", \"find the path\"],\r\n\t\t\ttimes : 3\r\n\t\t}],\r\n\t\taddToKnown : [\"foresight\", \"locate creature\", \"locate object\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"bonus action\", \" (fold/unfold)\"],\r\n\t\t[\"reaction\", \" (add/subtract d4)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"atlas of endless horizons\"] = {\r\n\tname : \"Atlas of Endless Horizons\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a conjuration spell within. As a reaction when hit by an attack, I can use 1 charge to teleport up to 10 ft, making it miss if I'm out of range.\",\r\n\tdescriptionLong : \"This thick book is bound in dark leather, crisscrossed with inlaid silver lines suggesting a map or chart. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to replace one of my prepared wizard spells with a conjuration spell in this book. As a reaction when I am hit by an attack, I can expend 1 charge to teleport up to 10 ft to an unoccupied space I can see. If my new position is out of range of the attack, it misses me.\",\r\n\tdescriptionFull : \"This thick book is bound in dark leather, crisscrossed with inlaid silver lines suggesting a map or chart. When found, the book contains the following spells, which are wizard spells for you while you are attuned to the book: arcane gate, dimension door, gate, misty step, plane shift, teleportation circle, and word of recall. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the conjuration school.\"+\r\n\t\"\\n \\u2022 When you are hit by an attack, you can use your reaction to expend 1 charge to teleport up to 10 feet to an unoccupied space you can see. If your new position is out of range of the attack, it misses you.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Atlas of Endless Horizons\",\r\n\t\t\tspells : [\"word of recall\"], // not a wizard spell!\r\n\t\t\tselection : [\"word of recall\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"arcane gate\", \"dimension door\", \"gate\", \"misty step\", \"plane shift\", \"teleportation circle\"]\r\n\t},\r\n\taction : [[\"reaction\", \"Teleport 10ft (1 charge)\"]]\r\n}\r\nMagicItemsList[\"crystalline chronicle\"] = {\r\n\tname : \"Crystalline Chronicle\",\r\n\tsource : [[\"T\", 124]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this orb with spells as a wizard spellcasting focus and spellbook. It lets me use Mage Hand, Mind Sliver, and Message. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to another within. I can use 1 charge to ignore components of a wizard spell (max 100 gp).\",\r\n\tdescriptionLong : \"This grapefruit sized, etched crystal sphere hums pulses with irregular flares of inner light. I can retrieve and store information within the crystal as a spellbook by touching it. It contains several spells and has 3 charges, regaining 1d3 at dawn. While holding it, I can use it as a spellcasting focus for my wizard spells, I know the Mage Hand, Mind Sliver, and Message cantrips, I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to another within, and when I cast a wizard spell, I can expend 1 charge to cast it without verbal, somatic, or material components of up to 100 gp value.\",\r\n\tdescriptionFull : \"An etched crystal sphere the size of a grapefruit hums faintly and pulses with irregular flares of inner light. While you are touching the crystal, you can retrieve and store information and spells within the crystal at the same rate as reading and writing. When found, the crystal contains the following spells: detect thoughts, intellect fortress, Rary's telepathic bond, sending, telekinesis, Tasha's mind whip, and Tenser's floating disk. It functions as a spellbook for you, with its spells and other writing psychically encoded within it.\"+\r\n\t\"\\n   While you are holding the crystal, you can use it as a spellcasting focus for your wizard spells, and you know the mage hand, mind sliver, and message cantrips if you don't already know them.\"+\r\n\t\"\\n   The crystal has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the information within the crystal, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book.\"+\r\n\t\"\\n \\u2022 When you cast a wizard spell, you can expend 1 charge to cast the spell without verbal, somatic, or material components of up to 100 gp value.\",\r\n\tweight : 3, // As orb arcane focus\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"mage hand\", \"mind sliver\", \"message\", \"detect thoughts\", \"intellect fortress\", \"rary's telepathic bond\", \"sending\", \"telekinesis\", \"tasha's mind whip\", \"tenser's floating disk\"]\r\n\t}\r\n}\r\nMagicItemsList[\"duplicitous manuscript\"] = {\r\n\tname : \"Duplicitous Manuscript\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to an illusion spell within. As a reaction when a save or Investigation check is made vs. my illusion spells, I can use 1 charge to impose disadv.\",\r\n\tdescriptionLong : \"This book appears to be a volume of romance fiction to anyone but me. As an action, I can change its appearance and plot. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an illusion spell within. As a reaction while holding it when a creature I can see makes a save or an Intelligence (Investigation) check against an illusion spell I cast, I can expend 1 charge to impose disadvantage on the roll.\",\r\n\tdescriptionFull : \"To you, this book is a magical spellbook. To anyone else, the book appears to be a volume of verbose romance fiction. As an action, you can change the book's appearance and alter the plot of the romance.\"+\r\n\t\"\\n   When found, the book contains the following spells: hallucinatory terrain, major image, mirror image, mislead, Nystul's magic aura, phantasmal force, and silent image. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the illusion school.\"+\r\n\t\"\\n \\u2022 When a creature you can see makes an Intelligence (Investigation) check to discern the true nature of an illusion spell you cast, or makes a saving throw against an illusion spell you cast, you can use your reaction and expend 1 charge to impose disadvantage on the roll.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"hallucinatory terrain\", \"major image\", \"mirror image\", \"mislead\", \"nystul's magic aura\", \"phantasmal force\", \"silent image\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"reaction\", \" (impose disadv.)\"],\r\n\t\t[\"action\", \" (change book)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"fulminating treatise\"] = {\r\n\tname : \"Fulminating Treatise\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this tome as a wizard spellcasting focus and spellbook. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min study, I can change a prepared spell to an evocation spell within. As a reaction when my evocation spell damages a creature, I can use 1 charge to deal it 2d6 force damage and knock it prone.\",\r\n\tdescriptionLong : \"This thick, scorched book reeks of smoke and ozone, and sparks of energy crackles along the edges of its pages. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an evocation spell within. As a reaction while holding it when a creature I can see takes damage from an evocation spell I cast, I can expend 1 charge to deal the creature an extra 2d6 force damage and knock it prone if it's Large or smaller.\",\r\n\tdescriptionFull : \"This thick, scorched spellbook reeks of smoke and ozone, and sparks of energy crackles along the edges of its pages. When found, the book contains the following spells: contingency, fireball, gust of wind, Leomund's tiny hut, magic missile, thunderwave, and wall of force. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the evocation school.\"+\r\n\t\"\\n \\u2022 When one creature you can see takes damage from an evocation spell you cast, you can use your reaction and expend 1 charge to deal an extra 2d6 force damage to the creature and knock the creature prone if it is Large or smaller.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"contingency\", \"fireball\", \"gust of wind\", \"leomund's tiny hut\", \"magic missile\", \"thunderwave\", \"wall of force\"]\r\n\t},\r\n\taction : [[\"reaction\", \"Add 2d6 Force Dmg (1 chg)\"]]\r\n}\r\nMagicItemsList[\"heart weaver's primer\"] = {\r\n\tname : \"Heart Weaver's Primer\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this book as a wizard spellcasting focus and spellbook. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to an enchantment spell in it. When I cast an enchantment spell, I can use 1 charge to grant disadv. on the first save one target makes against the spell.\",\r\n\tdescriptionLong : \"This pristine book smells faintly of a random scent I find pleasing. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells that I can prepare as wizards spells. It has 3 charges and it regains 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an enchantment spell within the book. When I cast an enchantment spell while holding the book, I can expend 1 charge to impose disadvantage on the first saving throw one target makes against the spell.\",\r\n\tdescriptionFull : \"This pristine book smells faintly of a random scent you find pleasing. When found, the book contains the following spells: antipathy/sympathy, charm person, dominate person, enthrall, hypnotic pattern, modify memory, and suggestion. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the enchantment school.\"+\r\n\t\"\\n \\u2022 When you cast an enchantment spell, you can expend 1 charge to impose disadvantage on the first saving throw one target makes against the spell.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Heart Weaver's Primer\",\r\n\t\t\tspells : [\"enthrall\"], // not a wizard spell!\r\n\t\t\tselection : [\"enthrall\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"antipathy/sympathy\", \"charm person\", \"dominate person\", \"hypnotic pattern\", \"modify memory\", \"suggestion\"]\r\n\t}\r\n}\r\nMagicItemsList[\"libram of souls and flesh\"] = {\r\n\tname : \"Libram of Souls and Flesh\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a necromancy spell within. As an action, I can use 1 charge to appear undead for 10 min, causing undead I haven't damage to be indifferent.\",\r\n\tdescriptionLong : \"With covers made of skin and fittings of bone, this tome is cold to the touch, and fainlty whispers. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a necromancy spell within. As an action, I can expend 1 charge to appear undead for 10 minutes, fooling even spells. For the duration, undead are indifferent to me, unless I have damaged them. The effect ends early if I deal damage or force a creature to make a save.\",\r\n\tdescriptionFull : \"With covers made of skin and fittings of bone, this tome is cold to the touch, and it whispers faintly. When found, the book contains the following spells, which are wizard spells for you while you are attuned to the book: animate dead, circle of death, false life, finger of death, speak with dead, summon undead, and vampiric touch. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the necromancy school.\"+\r\n\t\"\\n \\u2022 As an action, you can expend 1 charge to take on a semblance of undeath for 10 minutes. For the duration, you take on a deathly appearance, and undead creatures are indifferent to you, unless you have damaged them. You also appear undead to all outward inspection and to spells used to determine the target's status. The effect ends if you deal damage or force a creature to make a saving throw.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Libram of Souls and Flesh\",\r\n\t\t\tspells : [\"speak with dead\"], // not a wizard spell!\r\n\t\t\tselection : [\"speak with dead\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"animate dead\", \"circle of death\", \"false life\", \"finger of death\", \"summon undead\", \"vampiric touch\"]\r\n\t},\r\n\taction : [[\"action\", \"Semblance of Undeath\"]]\r\n}\r\nMagicItemsList[\"planecaller's codex\"] = {\r\n\tname : \"Planecaller's Codex\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 6 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a conjuration spell within. When I cast a conjuration spell to summon or create one creature, I can give it adv. on attacks for 1 min for 1 charge.\",\r\n\tdescriptionLong : \"The pages of this book are bound in fiend hide, and its cover is embossed with a diagram of the multiverse. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a conjuration spell within the book. When I hold the book and cast a conjuration spell that summons or creates one creature, I can expend 1 charge to grant that creature advantage on attack rolls for 1 minute.\",\r\n\tdescriptionFull : \"The pages of this book are bound in fiend hide, and its cover is embossed with a diagram of the Great Wheel of the multiverse. When found, the book contains the following spells: banishment, find familiar, gate, magic circle, planar binding, and summon elemental. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the conjuration school.\"+\r\n\t\"\\n \\u2022 When you cast a conjuration spell that summons or creates one creature, you can expend 1 charge to grant that creature advantage on attack rolls for 1 minute.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"banishment\", \"find familiar\", \"gate\", \"magic circle\", \"planar binding\", \"summon elemental\"]\r\n\t}\r\n}\r\nMagicItemsList[\"protective verses\"] = {\r\n\tname : \"Protective Verses\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this book with an iron lock as a spellcasting focus and spellbook. As an action, I can use Arcane Lock it. It has 3 charges, regains 1d3 at dawn. For 1 charge \\u0026 1 min study, I can change a prepared spell to an abjuration within. I can use 1 charge when I cast an abjuration spell to give a creature in 30 ft 2d10 temp HP.\",\r\n\tdescriptionLong : \"This leather-bound spellbook is reinforced with iron and silver fittings and an iron lock (DC 20 to open). As an action, I can touch the book's cover and cause it to lock as if I cast arcane lock on it. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an abjuration spell within. When I hold the book and cast an abjuration, I can expend 1 charge to grant a creature I can see within 30 ft 2d10 temporary hit points.\",\r\n\tdescriptionFull : \"This leather-bound spellbook is reinforced with iron and silver fittings and an iron lock (DC 20 to open). As an action, you can touch the book's cover and cause it to lock as if you cast arcane lock on it. When found, the book contains the following spells: arcane lock, dispel magic, globe of invulnerability, glyph of warding, Mordenkainen's private sanctum, protection from evil, and symbol. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the abjuration school.\"+\r\n\t\"\\n \\u2022 When you cast an abjuration spell, you can expend 1 charge to grant a creature you can see within 30 feet of you 2d10 temporary hit points.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"arcane lock\", \"dispel magic\", \"globe of invulnerability\", \"glyph of warding\", \"mordenkainen's private sanctum\", \"protection from evil and good\", \"symbol\"]\r\n\t},\r\n\taction : [[\"action\", \" (Arcane Lock itself)\"]]\r\n}\r\n// Sorcerer stones\r\nMagicItemsList[\"astral shard\"] = {\r\n\tname : \"Astral Shard\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this crystal swirling with silver mist as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. Immediately after I cast a spell with a metamagic option while I hold or wear this shard, I can teleport to an unoccupied space I can see within 30 ft.\",\r\n\tdescriptionFull : \"This crystal is a solidified shard of the Astral Plane, swirling with silver mist. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus for your sorcerer spells while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, immediately after casting the spell you can teleport to an unoccupied space you can see within 30 feet of you.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"elemental essence shard\"] = {\r\n\tname : \"Elemental Essence Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this flickering crystal as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. It holds the essence of an Elemental Plane, which grants me additional benefits when I use a Metamagic option on a spell.\",\r\n\tdescriptionFull : \"This crackling crystal contains the essence of an elemental plane. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   Roll a d4 and consult the Elemental Essence Shards table to determine the shard's essence and property. When you use a Metamagic option on a spell while you are holding or wearing the shard, you can use that property.\"+\r\n\ttoUni(\"\\n d4\\tEssence\")+\r\n\t\"\\n  1\\tAir\"+\r\n\t\"\\n  2\\tEarth\"+\r\n\t\"\\n  3\\tFire\"+\r\n\t\"\\n  4\\tWater\\n\"+\r\n\t\"\\n   \" + toUni(\"Air\") + \". You can immediately fly up to 60 feet without provoking opportunity attacks.\"+\r\n\t\"\\n   \" + toUni(\"Earth\") + \". You gain resistance to a damage type of your choice until the start of your next turn.\"+\r\n\t\"\\n   \" + toUni(\"Fire\") + \". One target of the spell that you can see catches fire. The burning target takes 2d10 fire damage at the start of its next turn, and then the flames go out.\"+\r\n\t\"\\n   \" + toUni(\"Water\") + \". You create a wave of water that bursts out from you in a 10-foot radius. Each creature of your choice that you can see in that area takes 2d6 cold damage and must succeed on a Strength saving throw against your spell save DC or be pushed 10 feet away from you and fall prone.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"Air Essence\", \"Earth Essence\", \"Fire Essence\", \"Water Essence\"],\r\n\t\"air essence\" : {\r\n\t\tname : \"Air Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Air\",\r\n\t\tdescription : \"As an action, I can attach or detach this crackling crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can immediately fly up to 60 ft without provoking opportunity attacks.\"\r\n\t},\r\n\t\"earth essence\" : {\r\n\t\tname : \"Earth Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Earth\",\r\n\t\tdescription : \"As an action, I can attach or detach this crackling crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I gain resistance to a damage type of my choice until the start of my next turn.\"\r\n\t},\r\n\t\"fire essence\" : {\r\n\t\tname : \"Fire Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Fire\",\r\n\t\tdescription : \"As an action, I can attach/detach this crackling crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, one target of that spell that I can see catches fire for a round, taking 2d10 fire damage at the start of its next turn.\"\r\n\t},\r\n\t\"water essence\" : {\r\n\t\tname : \"Water Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Water\",\r\n\t\tdescription : \"As an action, I can attach/detach this crackling crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, all chosen creatures in 10 ft of me take 2d6 cold damage and must make a Str save or fall prone \\u0026 be pushed back 10 ft\"\r\n\t}\r\n}\r\nMagicItemsList[\"far realm shard\"] = {\r\n\tname : \"Far Realm Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this crystal to an object. While I hold or wear it, it works as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option, I can have a creature I can see in 30 ft make a Cha save (my spell save DC) or take 3d6 psychic damage \\u0026 be frightened of me until my next turn starts.\",\r\n\tdescriptionFull : \"This writhing crystal is steeped in the warped essence of the Far Realm. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can cause a slimy tentacle to rip through the fabric of reality and strike one creature you can see within 30 feet of you. The creature must succeed on a Charisma saving throw against your spell save DC or take 3d6 psychic damage and become frightened of you until the start of your next turn.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"outer essence shard\"] = {\r\n\tname : \"Outer Essence Shard\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this flickering crystal as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. It holds the essence of an Outer Plane, which grants me additional benefits when I use a Metamagic option on a spell.\",\r\n\tdescriptionFull : \"This flickering crystal holds the essence of an Outer Plane. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   Roll a d4 and consult the Outer Essence Shards table to determine the shard's essence and property. When you use a Metamagic option on a spell while you are holding or wearing the shard, you can use that property.\"+\r\n\ttoUni(\"\\n d4\\tEssence\")+\r\n\t\"\\n  1\\tLawful\"+\r\n\t\"\\n  2\\tChaotic\"+\r\n\t\"\\n  3\\tGood\"+\r\n\t\"\\n  4\\tEvil\\n\"+\r\n\t\"\\n   \" + toUni(\"Lawful\") + \". You can end one of the following conditions affecting yourself or one creature you can see within 30 feet of you: charmed, blinded, deafened, frightened, poisoned, or stunned.\"+\r\n\t\"\\n   \" + toUni(\"Chaotic\") + \". Choose one creature who takes damage from the spell. That target has disadvantage on attack rolls and ability checks made before the start of your next turn.\"+\r\n\t\"\\n   \" + toUni(\"Good\") + \". You or one creature of your choice that you can see within 30 feet of you gains 3d6 temporary hit points.\"+\r\n\t\"\\n   \" + toUni(\"Evil\") + \". Choose one creature who takes damage from the spell. That target takes an extra 3d6 necrotic damage.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"Lawful Essence\", \"Chaotic Essence\", \"Good Essence\", \"Evil Essence\"],\r\n\t\"lawful essence\" : {\r\n\t\tname : \"Lawful Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Lawful\",\r\n\t\tdescription : \"As an action, I can attach/detach this flickering crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have myself or another I can see in 30 ft no longer be charmed, blinded, deafened, frightened, poisoned, or stunned.\"\r\n\t},\r\n\t\"chaotic essence\" : {\r\n\t\tname : \"Chaotic Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Chaotic\",\r\n\t\tdescription : \"As an action, I can attach/detach this flickering crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that was damaged by that spell have disadv. on its attacks and checks until my next turn starts.\"\r\n\t},\r\n\t\"good essence\" : {\r\n\t\tname : \"Good Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Good\",\r\n\t\tdescription : \"As an action, I can attach or detach this flickering crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that I can see within 30 ft or myself gain 3d6 temporary hit points.\"\r\n\t},\r\n\t\"evil essence\" : {\r\n\t\tname : \"Evil Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Evil\",\r\n\t\tdescription : \"As an action, I can attach or detach this flickering crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that took damage from that spell take an extra 3d6 necrotic damage.\"\r\n\t}\r\n}\r\nMagicItemsList[\"shadowfell shard\"] = {\r\n\tname : \"Shadowfell Shard\",\r\n\tsource : [[\"T\", 135]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this dull crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can curse a target of that spell to have disadv. on checks and saves with an ability score of my choice until my next turn ends.\",\r\n\tdescriptionFull : \"This dull, cold crystal sits heavy and leaden, saturated by the Shadowfell's despair. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can momentarily curse one creature targeted by the spell; choose one ability score, and until the end of your next turn, the creature has disadvantage on ability checks and saving throws that use that ability.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"feywild shard\"] = {\r\n\tname : \"Feywild Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and once per dawn when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table (see Notes for the table).\",\r\n\tdescriptionFull : \"This warm crystal glints with the sunset colors of the Feywild sky and evokes whispers of emotional memory. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can roll on the Wild Magic Surge table in the Player's Handbook. If the result is a spell, it is too wild to be affected by your Metamagic, and if it normally requires concentration, it doesn't require concentration in this case; the spell lasts for its full duration.\"+\r\n\t\"\\n   If you don't have the Wild Magic Sorcerous Origin, once this property is used to roll on the Wild Magic Surge table, it can't be used again until the next dawn.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"As a wild magic sorcerer (Wild Mage)\", \"As any other sorcerer\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.sorcerer && /wild mag(ic|e)/i.test(classes.known.sorcerer.subclass) ? \"as a wild magic sorcerer (wild mage)\" : \"as any other sorcerer\";\r\n\t},\r\n\t\"as a wild magic sorcerer (wild mage)\" : {\r\n\t\tname : \"Feywild Shard (Wild Mage)\",\r\n\t\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. It falls off if my attunement ends. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table.\"\r\n\t},\r\n\t\"as any other sorcerer\" : {\r\n\t\tname : \"Feywild Shard  \", // spaces are intentional\r\n\t\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and once per dawn when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table (see Notes for the table).\",\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Feywild Shard (wild magic surge)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t}\r\n}\r\nif (ClassSubList['sorcerer-wild magic'] && ClassSubList['sorcerer-wild magic'].features.subclassfeature1.toNotesPage) { // Add the wild magic surge tables to this item\r\n\tMagicItemsList[\"feywild shard\"].toNotesPage = ClassSubList['sorcerer-wild magic'].features.subclassfeature1.toNotesPage;\r\n}\r\n// Bard instruments\r\nMagicItemsList[\"reveler's concertina\"] = {\r\n\tname : \"Reveler's Concertina\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this concertina, I gain a +2 bonus to the saving throw DC of my bard spells.\\nOnce per dawn, I can use the concertina to cast Otto's Irresistible Dance.\",\r\n\tdescriptionFull : \"While holding this concertina, you gain a +2 bonus to the saving throw DC of your bard spells.\"+\r\n\t\"\\n   As an action, you can use the concertina to cast Otto's irresistible dance from the item. This property of the concertina can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Irresistible Dance\",\r\n\tspellcastingAbility : \"class\", // https://www.sageadvice.eu/2015/11/27/hat-of-disguise-dc/\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Otto's Irresistible Dance\",\r\n\t\tspells : [\"otto's irresistible dance\"],\r\n\t\tselection : [\"otto's irresistible dance\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('bard') !== -1) return 2;\r\n\t\t\t},\r\n\t\t\t\"While holding the Reveler's Concertina, I gain a +2 bonus to the saving throw DCs of my bard spells.\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"lyre of building\"] = {\r\n\tname : \"Lyre of Building\",\r\n\tsource : [[\"T\", 131]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this lyre, I can cast mending as an action. As a reaction, I can protect a structure or object that takes damage from that damage type until the my next turn starts. As an action, I can play the lyre to cast Fabricate, Move Earth, Passwall, or Summon Construct from it, each spell once per dawn.\",\r\n\tdescriptionFull : \"While holding this lyre, you can cast mending as an action. You can also play the lyre as a reaction when an object or a structure you can see within 300 feet of you takes damage, causing it to be immune to that damage and any further damage of the same type until the start of your next turn.\"+\r\n\t\"\\n   In addition, you can play the lyre as an action to cast fabricate, move earth, passwall, or summon construct, and that spell can't be cast from it again until the next dawn.\",\r\n\tweight : 2,\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mending\"],\r\n\t\tselection : [\"mending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"fabricate\", \"move earth\", \"passwall\", \"summon construct\"],\r\n\t\tselection : [\"fabricate\", \"move earth\", \"passwall\", \"summon construct\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 4\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fabricate\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Lyre of Building, I can cast Fabricate as an action.\"\r\n\t\t},\r\n\t\t\"mending\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Lyre of Building, I can cast Mending as an action.\"\r\n\t\t}\r\n\t},\r\n\taction : [[\"reaction\", \" (protect object)\"]]\r\n}\r\n// Other magic items\r\nMagicItemsList[\"bell branch\"] = {\r\n\tname : \"Bell Branch\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or warlock\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.warlock ? true : false;\r\n\t},\r\n\tdescription : \"This silver branch with bells has 3 charges, regains 1d3 at dawn. I can use it as my spellcasting focus. As a bonus action, I can use 1 charge to detect the presence of aberrations, celestials, fiends, constructs, elementals, fey, or undead in 60 ft not behind total cover. I can use 1 charge to cast Protection from Evil and Good.\",\r\n\tdescriptionFull : \"This silver implement is shaped like a tree branch and is strung with small golden bells. The branch is a spellcasting focus for your spells while you hold it.\"+\r\n\t\"\\n   The branch has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it.\"+\r\n\t\"\\n \\u2022 As a bonus action, you can expend 1 charge to detect the presence of aberrations, celestials, constructs, elementals, fey, fiends, or undead within 60 feet of you. If such creatures are present and don't have total cover from you, the bells ring softly, their tone indicating the creature types present.\"+\r\n\t\"\\n \\u2022 As an action, you can expend 1 charge to cast protection from evil and good.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \" (detect)\"]],\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Protection from Evil/Good\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n}\r\nMagicItemsList[\"cauldron of rebirth\"] = {\r\n\tname : \"Cauldron of Rebirth\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or warlock\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.warlock ? true : false;\r\n\t},\r\n\tdescription : \"After a long rest, I can use this Tiny pot to create a potion of greater healing that lasts up to 24 hours. As an action, I can have it grow to fit a Medium creature, or shrink it back down. I can place a dead creature inside with 200 lb salt (10 gp) for 8 hours to Raise Dead. Once used, it can't do this again for 7 days.\",\r\n\tdescriptionFull : \"This Tiny pot bears relief scenes of heroes on its cast iron sides. You can use the cauldron as a spellcasting focus for your druid spells, and it functions as a suitable component for the scrying spell. When you finish a long rest, you can use the cauldron to create a potion of greater healing. The potion lasts for 24 hours, then loses its magic if not consumed.\"+\r\n\t\"\\n   As an action, you can cause the cauldron to grow large enough for a Medium creature to crouch within. You can revert the cauldron to its normal size as an action, harmlessly shunting anything that can't fit inside to the nearest unoccupied space.\"+\r\n\t\"\\n   If you place the corpse of a humanoid into the cauldron and cover the corpse with 200 pounds of salt (which costs 10 gp) for at least 8 hours, the salt is consumed and the creature returns to life as if by raise dead at the next dawn. Once used, this property can't be used again for 7 days.\",\r\n\taction : [[\"action\", \" (grow/shrink)\"]],\r\n\tusages : 1,\r\n\trecovery : \"7 days\",\r\n\tadditional : \"Raise Dead\"\r\n}\r\nMagicItemsList[\"devotee's censer\"] = {\r\n\tname : \"Devotee's Censer\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"weapon\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"I can use this magic flail, perforated with tiny holes, as a holy symbol. Attacks with it deal +1d8 radiant damage. As a bonus action once per dawn, I can speak the command word to cause it to emanate incense out to 10 ft for 1 minute. At the start of each of my turns, all creatures in the incense heal 1d4 hit points.\",\r\n\tdescriptionFull : \"The rounded head of this flail is perforated with tiny holes, arranged in symbols and patterns. The flail counts as a holy symbol for you. When you hit with an attack using this magic flail, the target takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   As a bonus action, you can speak the command word to cause the flail to emanate a thin cloud of incense out to 10 feet for 1 minute. At the start of each of your turns, you and any other creatures in the incense each regain 1d4 hit points. This property can't be used again until the next dawn.\",\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"bonus action\", \" (incense cloud)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*devotee)(?=.*censer).*$/i,\r\n\t\tname : \"Devotee's Censer\",\r\n\t\tsource : [[\"T\", 126]],\r\n\t\tdescription : \"+1d8 radiant damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"guardian emblem\"] = {\r\n\tname : \"Guardian Emblem\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"As an action, I can attach or detach this symbol of a deity to a shield or a suit of armor. It has 3 charges, regaining all at dawn. As a reaction when I or a creature I can see within 30 ft suffers a critical hit while I wear the armor or wield the shield that bears the emblem, I can expend 1 charge to turn it into a normal hit.\",\r\n\tdescriptionFull : \"This emblem is the symbol of a deity or a spiritual tradition. As an action, you can attach the emblem to a suit of armor or a shield or remove it.\"+\r\n\t\"\\n   The emblem has 3 charges. When you or a creature you can see within 30 feet of you suffers a critical hit while you're wearing the armor or wielding the shield that bears the emblem, you can use your reaction to expend 1 charge to turn the critical hit into a normal hit instead.\"+\r\n\t\"\\n   The emblem regains all expended charges daily at dawn.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"stop critical\",\r\n\taction : [\r\n\t\t[\"action\", \" (attach/detach)\"],\r\n\t\t[\"reaction\", \" (stop critical)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"nature's mantle\"] = {\r\n\tname : \"Nature's Mantle\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"wonderous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or ranger.\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.ranger || classes.known.rangerua ? true : false;\r\n\t},\r\n\tdescription : \"This cloak shifts color and texture to blend with the terrain surrounding me. While wearing the cloak, I can use it as a spellcasting focus for my druid and ranger spells. While I am in an area that is lightly obscured, I can Hide as a bonus action even if I am being directly observed.\",\r\n\tdescriptionFull : \"This cloak shifts color and texture to blend with the terrain surrounding you. While wearing the cloak, you can use it as a spellcasting focus for your druid and ranger spells.\"+\r\n\t\"\\n   While you are in an area that is lightly obscured, you can Hide as a bonus action even if you are being directly observed.\",\r\n\taction : [[\"bonus action\", \" (Hide)\"]]\r\n}\r\n\n// pub_20210316_CM.js\r\n// This file adds the content from the Candlekeep Mysteries adventure to MPMB's Character Record Sheet\r\n// All content in this file contains contributions by Ratatoskr589\r\n\r\nSourceList.CM = {\r\n\tname : \"Candlekeep Mysteries\",\r\n\tabbreviation : \"CM\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/candlekeep-mysteries\",\r\n\tdate : \"2021/03/16\"\r\n};\r\n\r\nMagicItemsList[\"orcus figurine\"] = {\r\n\tname : \"Orcus Figurine\",\r\n\tsource : [[\"CM\", 44]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"\",\r\n\tstoryItemAL : true,\r\n\tattunement : false,\r\n\tdescription : \"This Tiny figurine smells of decaying flesh, detectable out to 5 ft. Within 30 ft of it, dead can't be brought back to life and undead can't be turned. If I hold it and pray for 1 hour, I have a 10% chance of calling a wraith for 1 hour that attacks all non-undead. Once summoned, the figurine can't do so again for 30 days.\",\r\n\tdescriptionFull : \"Carved from an ogre's petrified heart, the gray figurine depicts the Demon Prince of Undeath in ghastly detail, clutching his skull-topped wand in one hand and three severed heads by the hair in the other. The figurine smells like decaying flesh, and this scent is detectable out to a range of 5 feet.\"+\r\n\t\"\\n   The figurine is a Tiny object with AC 17, 3 hit points, and immunity to all types of damage except radiant damage. A detect evil and good spell or similar magic reveals that the figurine has been desecrated. As long as it has at least 1 hit point, the figurine has the following magical properties:\"+\r\n\t\"\\n   \\u2022 Undead within 30 feet of the figurine can't be turned.\"+\r\n\t\"\\n   \\u2022 Dead creatures within 30 feet of the figurine can't be brought back to life.\"+\r\n\t\"\\n   \\u2022 A creature that holds the figurine while praying to Orcus for at least 1 hour has a 10 percent chance of summoning a smoky avatar of the demon lord. Once this avatar is summoned, it can't be summoned again for 30 days. Orcus's avatar has the statistics of a wraith except that it's chaotic evil. It attacks all non-undead creatures it encounters, and it disappears after 1 hour or when reduced to 0 hit points.\"\r\n};\r\nMagicItemsList[\"radiance (wand)\"] = {\r\n\tname : \"Radiance (wand)\",\r\n\tsource : [[\"CM\", 87]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\", // inferred, as it is a wand of the war mage +1 (uncommon) with extra's\r\n\tattunement : true,\r\n\tdescription : \"While I am holding this exquisite golden hand mirror, I gain a +1 bonus to spell attack rolls and I ignore half cover when making a spell attack. This arcane focus sheds dim light in a 5-ft radius while in darkness. As a bonus action once per dawn, I can use Radiance to cast Enhance Ability on myself.\",\r\n\tdescriptionFull : \"While holding this wand, you gain a +1 bonus to spell attack rolls. In addition, you ignore half cover when making a spell attack. Radiance is in the form of an exquisite golden hand mirror.\"+\r\n\t\"\\n   While surrounded by darkness, it sheds dim light in a 5-foot radius. A creature that is attuned to Radiance can use a bonus action while holding the mirror to cast the enhance ability spell, choosing itself and no other creature as the spell's target. Once this property of the wand is used, it can't be used again until the next dawn.\",\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Radiance (Enhance Ability)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn, self only\",\r\n\t\tspells : [\"enhance ability\"],\r\n\t\tselection : [\"enhance ability\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"enhance ability\" : {\r\n\t\t\tdescription : \"I gain adv. on checks with 1 ability score; choosing Str, Dex, or Con gives secondary benefits\",\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\trange : \"Self\",\r\n\t\t\tchanges : \"Using Radiance, I can cast Enhance Ability once per dawn as a bonus action instead of an action, but only on myself.\"\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"serpent scale armor\"] = {\r\n\tname : \"Serpent Scale Armor\",\r\n\tsource : [[\"CM\", 98]],\r\n\ttype : \"armor (scale mail)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : false,\r\n\tdescription : \"This suit of magical scale mail is made from shimmering scales. Unlike normal scale mail, it does not impose disadvantage on my Dexterity (Stealth) checks and allows me to apply my full Dexterity modifier instead of the normal maximum of +2 for Medium armor.\",\r\n\tdescriptionFull : \"This suit of magic armor is made from shimmering scales. While wearing it, you can apply your full Dexterity modifier (instead of a maximum of +2) when determining your Armor Class. In addition, this armor does not impose disadvantage on your Dexterity (Stealth) checks.\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /serpent scale/i,\r\n\t\tname : \"Serpent Scale Armor\",\r\n\t\tsource : [[\"CM\", 98]],\r\n\t\ttype : \"medium\",\r\n\t\tac : 14,\r\n\t\tweight : 45,\r\n\t\tdex : 100,\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"serpent's fang\"] = {\r\n\tname : \"Serpent's Fang\",\r\n\tsource : [[\"CM\", 98]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"rare\",\r\n\tattunement : false,\r\n\tdescription : \"This single-edged magic sword is made from the scrimshawed fang of a giant serpent. Its hilt changes shape to adjust to the grasp of any creature that picks it up. The weapon deals an extra 1d10 poison damage to any target it hits.\",\r\n\tdescriptionFull : \"This single-edged magic sword is made from the scrimshawed fang of a giant serpent. Its hilt changes shape to adjust to the grasp of any creature that picks it up. The weapon deals an extra 1d10 poison damage to any target it hits.\",\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /^(?=.*serpent)(?=.*fang).*$/i,\r\n\t\tname : \"Serpent's Fang\",\r\n\t\tsource : [[\"CM\", 98]],\r\n\t\tdescription : \"Versatile (d10); +1d10 poison damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nif (MagicItemsList[\"alchemy jug\"]) {\r\n\t// Make the default into a choice (if not done so already)\r\n\tif (!MagicItemsList[\"alchemy jug\"].choices) {\r\n\t\tMagicItemsList[\"alchemy jug\"].source = [[\"D\", 150], [\"CM\", 144]];\r\n\t\tMagicItemsList[\"alchemy jug\"].allowDuplicates = true;\r\n\t\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Regular (acid and poison)\", {\r\n\t\t\tname : \"Alchemy Jug (regular)\",\r\n\t\t\tsource : [[\"D\", 150]],\r\n\t\t\tdescription : MagicItemsList[\"alchemy jug\"].description,\r\n\t\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong,\r\n\t\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull\r\n\t\t}, true);\r\n\t};\r\n\t// Add the blue and orange jugs as choices\r\n\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Blue (hot tea)\", {\r\n\t\tname : \"Alchemy Jug (Blue)\",\r\n\t\tsource : [[\"CM\", 144]],\r\n\t\tdescription : MagicItemsList[\"alchemy jug\"].description.replace(\"acid (8 fl oz), basic poison (1/2 fl oz)\", \"boiling hot tea (1 qt)\"),\r\n\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong.replace(\"acid (8 fl. oz.), basic poison (1/2 fl. oz.)\", \"boiling hot tea (1 quart)\"),\r\n\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull.replace(/\\n8 ounces[\\s\\S]+/, \r\n\t\t\t\"\\n4 gallons  \\tBeer\\t\\t2 gallons  \\tVinegar\"+\r\n\t\t\t\"\\n1 quart   \\tBoiling hot tea\\t8 gallons  \\tWater, fresh\"+\r\n\t\t\t\"\\n1 gallon    \\tHoney\\t\\t12 gallons\\tWater, salt\"+\r\n\t\t\t\"\\n2 gallons \\tMayonnaise\\t1 gallon    \\tWine\"+\r\n\t\t\t\"\\n1 quart   \\tOil\"\r\n\t\t)\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Orange (soy sauce)\", {\r\n\t\tname : \"Alchemy Jug (Orange)\",\r\n\t\tsource : [[\"CM\", 144]],\r\n\t\tdescription : MagicItemsList[\"alchemy jug\"].description.replace(\"acid (8 fl oz), basic poison (1/2 fl oz)\", \"soy sauce (1 gal)\"),\r\n\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong.replace(\"acid (8 fl. oz.), basic poison (1/2 fl. oz.)\", \"soy sauce (1 gallon)\"),\r\n\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull.replace(/\\n8 ounces[\\s\\S]+/, \r\n\t\t\t\"\\n4 gallons  \\tBeer\\t\\t2 gallons  \\tVinegar\"+\r\n\t\t\t\"\\n1 gallon    \\tHoney\\t\\t8 gallons  \\tWater, fresh\"+\r\n\t\t\t\"\\n2 gallons \\tMayonnaise\\t12 gallons\\tWater, salt\"+\r\n\t\t\t\"\\n1 quart   \\tOil\\t\\t1 gallon    \\tWine\"+\r\n\t\t\t\"\\n1 gallon    \\tSoy sauce\"\r\n\t\t)\r\n\t});\r\n};\r\nMagicItemsList[\"gloves of soul catching\"] = {\r\n\tname : \"Gloves of Soul Catching\",\r\n\tsource : [[\"CM\", 169]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\t\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"My Constitution increases to 20 while wearing these gloves. After hitting with an unarmed strike while wearing these gloves, I can deal an extra 2d10 force damage to target and regain an equal amount of HP. Alternatively, instead of regaining hit points in this way, you can choose to gain advantage on one attack roll, ability check, or saving throw you make before the end of your next turn.\",\r\n\tdescriptionFull : \"Your Constitution score is 20 while you wear these gloves. This property of the gloves has no effect on you if your Constitution is already 20 or higher.\"+\r\n\t\"\\n   After making a successful unarmed strike while wearing these gloves, you can use the gloves to deal an extra 2d10 force damage to the target, and you regain a number of hit points equal to the force damage dealt. Alternatively, instead of regaining hit points in this way, you can choose to gain advantage on one attack roll, ability check, or saving throw you make before the end of your next turn.\",\r\n\tscoresOverride : [0, 0, 20, 0, 0, 0],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*gloves)(?=.*soul)(?=.*catching).*$/i,\r\n\t\tname : \"Gloves of Soul Catching\",\r\n\t\tsource : [[\"CM\", 169]],\r\n\t\tdescription : \"+2d10 force damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"watchful helm\"] = {\r\n\tname : \"Watchful Helm\",\r\n\tsource : [[\"CM\", 183]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\t\r\n\tattunement : true,\r\n\tdescription : \"While I wear this helm, I gain a +1 bonus to AC, remain aware of my surroundings even while asleep, and have advantage on Wisdom (Perception) checks that rely on sight. As a bonus action once per dawn, I can use it to cast See Invisibility.\",\r\n\tdescriptionFull : \"While you wear this helm, you gain a +1 bonus to AC and remain aware of your surroundings even while you're asleep, and you have advantage on Wisdom (Perception) checks that rely on sight.\"+\r\n\t\"\\n   As a bonus action, you can cast the see invisibility spell from the helm. Once this property of the helm is used, it can't be used again until the next dawn.\",\r\n\tweight : 1,\r\n\textraAC : [{name : \"Watchful Helm\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Watchful Helm (See Invisibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tvision : [[\"Adv. on Perception checks that rely on sight\", 0]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"see invisibility\"],\r\n\t\tselection : [\"see invisibility\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"see invisibility\" : {\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\tchanges : \"Using the Watchful Helm, I can cast See Invisibility once per dawn as a bonus action instead of an action.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"staff of fate\"] = {\r\n\tname : \"Staff of Fate\",\r\n\tsource : [[\"CM\", 183]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This +3 crystal quarterstaff has 6 charges. If I use its last charge, I roll a d20. On a 10+ it regains 1d6 charges, but on a 9 or less it becomes nonmagical. As a bonus action, I can expend 1 charge to give myself or a creature I can see a d4 that can be added to a check, save, attack, or damage roll before my next turn starts.\",\r\n\tdescriptionFull : \"This transparent crystal staff can be wielded as a magic quarterstaff that grants a +3 bonus to attack and damage rolls made with it.\"+\r\n\t\"\\n   \" + toUni(\"Altered Outcome\") + \". The staff has 6 charges. As a bonus action, you can expend 1 of the staff's charges to give yourself or one other creature that you can see a d4. The recipient can roll this d4 and add the number rolled to one ability check, attack roll, damage roll, or saving throw it makes before the start of your next turn. If this extra die is not used before then, it is lost.\"+\r\n\t\"\\n   If you expend the staff's last charge, roll a d20. On a roll of 9 or lower, the staff becomes a nonmagical quarterstaff that breaks the first time it scores a hit and deals damage. On a roll of 10 or higher, the staff regains 1d6 of its expended charges.\",\r\n\tweight : 4,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Staff of Fate (Alter Outcome)\",\r\n\t\tusages : 6,\r\n\t\trecovery : \"Special\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /\\bstaff of fate\\b/i,\r\n\t\tname : \"Staff of Fate\",\r\n\t\tsource : [[\"CM\", 183]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nvar CM_NetherScrollOfAzumar = \"After 30 days of studying 8 h/day, I make a DC 25 Int (Arcana) check. If failed, I take 16d10 psychic damage and start anew. On a success, I gain +2 Int to a max of 22, I gain advantage on saves against spells and magical effects, and a stone golem appears within 60 ft that acts as ally. If I die, the golem turns to dust.\";\r\nMagicItemsList[\"nether scroll of azumar\"] = {\r\n\tname : \"Nether Scroll of Azumar\",\r\n\tsource : [[\"CM\", 210]],\r\n\ttype : \"scroll\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tchoicesNotInMenu : true,\r\n\tdescription : CM_NetherScrollOfAzumar,\r\n\tdescriptionFull : \"Unlike most scrolls, a Nether Scroll of Azumar is not a consumable magic item. It takes 30 days of concentrated study\\u2014at least 8 hours per day\\u2014to attempt to understand this scroll. After completing this study, you must make a DC 25 Intelligence (Arcana) check. If this check fails, you take 16d10 psychic damage, and you can attempt the check again after another 30 days of concentrated study.\"+\r\n\t\"\\n   When you succeed on the check, you gain the following benefits:\"+\r\n\t\"\\n   \\u2022 Your Intelligence score increases by 2, to a maximum of 22. Once you gain this benefit, you can't use this scroll to increase your Intelligence again.\"+\r\n\t\"\\n   \\u2022 You gain advantage on saving throws against spells and other magical effects.\"+\r\n\t\"\\n\\n   When you gain the scroll's benefits, a stone golem magically appears in an unoccupied space within 60 feet of you and acts as your ally. If you die, the golem turns to dust.\",\r\n\tchoices : [\"Not Read\", \"Read\"],\r\n\t\"not read\" : {\r\n\t\tdescription : CM_NetherScrollOfAzumar\r\n\t},\r\n\t\"read\" : { // contains contributions by Nod_Hero\r\n\t\tdescription : CM_NetherScrollOfAzumar,\r\n\t\teval : function() {\r\n\t\t\tvar src = \"Nether Scroll of Azumar\";\r\n\t\t\tMagicItemsList[\"manual of bodily health\"].applyStatBonus(src, \"Intelligence\", 2);\r\n\t\t\tSetProf(\"savetxt\", true, { adv_vs : [\"magic\"] }, src);\r\n\t\t},\r\n\t\tcreaturesAdd : [[\"Stone Golem\", \"stop\"]]\r\n\t}\r\n};\r\n\n// pub_20210518_VRGtR.js\r\n// This file adds all the player-material from Van Richten's Guide to Ravenloft to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.VRGtR = {\r\n\tname : \"Van Richten's Guide to Ravenloft\",\r\n\tabbreviation : \"VRGtR\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Ravenloft\",\r\n\turl : \"https://dnd.wizards.com/products/van-richtens-guide-ravenloft\",\r\n\tdate : \"2021/05/18\"\r\n};\r\n\r\n// Races\r\nRaceList[\"dhampir\"] = {\r\n\tregExpSearch : /dhampir/i,\r\n\tname : \"Dhampir\",\r\n\tsource : [[\"VRGtR\", 17]],\r\n\tplural : \"Dhampirs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Dhampir\" + (typePF ? \"\\n \" : \"\\t\") +\r\n\t\"\\u2022 Deathless Nature: I don't need to breathe.\" +\r\n\t\"\\n \\u2022 Spider Climb: Climbing speed equal to walking speed. At 3rd level, I can move up, down, and across vertical surfaces and upside down along ceilings, while leaving my hands free.\" +\r\n\t\"\\n \\u2022 Vampiric Bite: Uses Constitution and has adv. on the attack roll if I'm at or below half HP. My Proficiency Bonus per long rest, when I hit a creature other than a construct or undead, I can empower myself. I either regain HP or gain a bonus on my next ability check or attack roll. The bonus is equal to the piercing damage dealt.\",\r\n\tfeatures : {\r\n\t\t\"spider climb\" : { // So it doesn't interfere with inherited speeds by useFromPreviousRace\r\n\t\t\tname : \"Spider Climb\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t}\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*vampiric)(?=.*bite).*$/i,\r\n\t\tname : \"Vampiric Bite\",\r\n\t\tsource : [[\"VRGtR\", 17]],\r\n\t\tability : 3,\r\n\t\ttype : \"Simple\",\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Adv. while at or below half HP; Can empower myself on hit\",\r\n\t\tisAlwaysProf : true,\r\n\t\tabilitytodamage : true,\r\n\t\tmonkweapon : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Vampiric Bite\",\r\n\t\tadditional : \"empower myself\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Dhampir lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"prefix\" // e.g. \"Hill Dwarf Dhampir\"\r\n\t}\r\n};\r\nRaceList[\"hexblood\"] = {\r\n\tregExpSearch : /hexblood/i,\r\n\tname : \"Hexblood\",\r\n\tsource : [[\"VRGtR\", 18]],\r\n\tplural : \"Hexbloods\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Hexblood\" + (typePF ? \"\\n \" : \"\\t\") +\r\n\t\"\\u2022 Fey: My creature type is fey, rather than humanoid.\" +\r\n\t\"\\n \\u2022 Eerie Token: As a bonus action once per long rest, I can harmlessly remove a lock of my hair, one of my nails or teeth and imbue this token with magic until I finish a long rest. While the token is imbued in this way, I can telepathically speak to a creature holding it or see and hear around it. See the Notes page for more information.\" +\r\n\t\"\\n \\u2022 Hex Magic: I known Disguise Self and Hex. I can cast each spell once per long rest without using a spell slot, or by using a spell slot as normal.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hexblood's Eerie Token\",\r\n\t\tnote : [\"As a bonus action, I can harmlessly remove a lock of my hair, one of my nails, or one of my teeth. This token is imbued with magic until I finish a long rest. While the token is imbued in this way, I can take these actions:\"+\r\n\t\t\"\\n\\u2022 Telepathic Message\",\r\n\t\t\"As an action, I can send a telepathic message to the creature holding or carrying the token, as long as I'm within 10 miles of it. The message can contain up to twenty-five words.\"+\r\n\t\t\"\\n\\u2022 Remote Viewing\",\r\n\t\t\"If I'm within 10 miles of the token, I can enter a trance as an action. The trance lasts for 1 minute, but it ends early if I dismiss it (no action required) or I'm incapacitated. During this trance, I can see and hear from the token as if I were located where it is. While I'm using my senses at the token's location, I'm blinded and deafened in regard to my own surroundings. When the trance ends, the token is harmlessly destroyed.\",\r\n\t\t\"\\nOnce I create a token using this feature, I can't do so again until I finish a long rest, at which point my missing part regrows.\"]\r\n\t}],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\taction : [[\"bonus action\", \"Eerie Token (create)\"], [\"action\", \"Eerie Token (use)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Eerie Token\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"hex magic\" : {\r\n\t\t\tname : \"Hex Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Hex Magic\",\r\n\t\t\t\tspells : [\"disguise self\", \"hex\"],\r\n\t\t\t\tselection : [\"disguise self\", \"hex\"],\r\n\t\t\t\tfirstCol : 'oncelr+markedbox',\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tallowUpCasting : true,\r\n\t\t\t}],\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Hexblood lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"prefix\" // e.g. \"Tiefling Hexblood\"\r\n\t}\r\n};\r\nRaceList[\"reborn\"] = {\r\n\tregExpSearch : /reborn/i,\r\n\tname : \"Reborn\",\r\n\tsource : [[\"VRGtR\", 21]],\r\n\tplural : \"Reborns\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Reborn\" +\r\n\t\"\\n \\u2022 Deathless Nature: I don't need to sleep, eat, drink, or breathe. I have adv. on saves vs. disease, poison, and death saves. I have resistance to poison damage. Magic can't put me to sleep and I can finish a long rest in 4 hours if I spend it in an inactive, motionless state.\" +\r\n\t\"\\n \\u2022 Knowledge from a Past Life: When I make an ability check that uses a skill, I can add +1d6 to the roll after seeing the d20 result. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"disease\", \"poison\", \"death saves\"],\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Knowledge from a Past Life\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Reborn lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"suffix\" // e.g. \"Reborn Human\"\r\n\t}\r\n};\r\n\r\n// Subclasses\r\nAddSubClass(\"bard\", \"college of spirits\",{\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*spirits?).*$/i,\r\n\tsubname : \"College of Spirits\",\r\n\tsubnameShort: \"Spirits\",\r\n\tsource : [[\"VRGtR\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Guiding Whispers\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Guidance cantrip and can cast it with a range of 60 ft\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guiding Whispers\",\r\n\t\t\t\tspells : [\"guidance\"],\r\n\t\t\t\tselection : [\"guidance\"],\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"guidance\" : {\r\n\t\t\t\t\trange : \"60 ft\",\r\n\t\t\t\t\tchanges : \"I can cast Guidance with a range of 60 ft.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Spiritual Focus\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [only for bard spells]\" + desc([\r\n\t\t\t\t\"I can use a candle, crystal ball, skull, spirit board, or tarokka deck as a spellcasting focus\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Tales from Beyond\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend a bardic inspiration die to roll on the Spirit Tales table\",\r\n\t\t\t\t\"I retain the rolled tale in my mind until I bestow its effects or finish a short or long rest\",\r\n\t\t\t\t\"I can only retain one tale at a time; I need to hold a spiritual focus to roll on the table\",\r\n\t\t\t\t\"As an action, I can choose a creature I see in 30 ft or myself to bestow the tale's effect\",\r\n\t\t\t\t\"The tales use my spell save DC; See the Notes page for the Spirit Tales table\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (roll on table)\"], [\"action\", \" (use effect)\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Spirit Tales Table\",\r\n\t\t\t\tnote : desc([\r\n\t\t\t\t\t\"As a bonus action while I'm holding my spiritual focus, I can reach out to spirits who tell their tales through me. I expend one use of my Bardic Inspiration and roll on the table below using my Bardic Inspiration die to determine the tale. I retain the tale in mind until I bestow the tale's effect or finish a short or long rest.\",\r\n\t\t\t\t\t\"I can retain only one of these tales in mind at a time, and rolling on the table immediately ends the effect of the previous tale.\",\r\n\t\t\t\t\t\"As an action, I can choose myself or one creature I can see within 30 ft to be the target of the tale's effect. If the tale requires a saving throw, the DC equals my spell save DC.\",\r\n\t\t\t\t\t\"\\nRoll \" + (typePF ? \"\" : \" \") + \"Tale\"\r\n\t\t\t\t])+\r\n\t\t\t\t desc([\r\n\t\t\t\t\t\"  1    Tale of the Clever Animal: For the next 10 minutes, whenever the target makes an Intelligence, a Wisdom, or a Charisma check, the target can roll my Bardic Inspiration die immediately after rolling the d20 and add it to the check.\",\r\n\t\t\t\t\t\"  2    Tale of the Renowned Duelist: I make a melee spell attack against the target. On a hit, the target takes force damage equal to two rolls of my Bardic Inspiration die + my Charisma modifier.\",\r\n\t\t\t\t\t\"  3    Tale of the Beloved Friends: The target and another creature of its choice it can see within 5 ft of it gains temporary hit points equal to a roll of my Bardic Inspiration die + my Charisma modifier.\",\r\n\t\t\t\t\t\"  4    Tale of the Runaway: The target can immediately use its reaction to teleport up to 30 ft to an unoccupied space it can see. When the target teleports, it can choose a number of creatures it can see within 30 ft of it up to my Charisma modifier (minimum of 0) to immediately use the same reaction.\",\r\n\t\t\t\t\t\"  5    Tale of the Avenger: For 1 minute, any creature that hits the target with a melee attack takes force damage equal to a roll of my Bardic Inspiration die.\",\r\n\t\t\t\t\t\"  6    Tale of the Traveler: The target gains temporary hit points equal to a roll of my Bardic Inspiration die + my bard level. While it has these temporary hit points, the target's walking speed increases by 10 ft and it gains a +1 bonus to its AC.\",\r\n\t\t\t\t\t\"  7    Tale of the Beguiler: The target must succeed on a Wisdom saving throw or take psychic damage equal to two rolls of my Bardic Inspiration die, and the target is incapacitated until the end of its next turn.\",\r\n\t\t\t\t\t\"  8    Tale of the Phantom: The target becomes invisible until the end of its next turn or until it hits a creature with an attack. If the target hits a creature with an attack during this invisibility, the creature it hits takes necrotic damage equal to a roll of my Bardic Inspiration die and is frightened of the target until the end of the frightened creature's next turn.\",\r\n\t\t\t\t\t\"  9    Tale of the Brute: Each creature of the target's choice it can see within 30 ft of it must make a Strength saving throw. On a failed save, a creature takes thunder damage equal to three rolls of my Bardic Inspiration die and is knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\r\n\t\t\t\t\t\" 10    Tale of the Dragon: The target spews fire from the mouth in a 30-ft cone. Each creature in that area must make a Dexterity saving throw, taking fire damage equal to four rolls of my Bardic Inspiration die on a failed save, or half as much damage on a successful one.\",\r\n\t\t\t\t\t\" 11    Tale of the Angel: The target regains hit points equal to two rolls of my Bardic Inspiration die + my Charisma modifier, and I end one condition from the following list affecting the target: blinded, deafened, paralyzed, petrified, or poisoned.\",\r\n\t\t\t\t\t\" 12    Tale of the Mind-Bender: I evoke an incomprehensible fable from an otherworldly being. The target must succeed on an Intelligence saving throw or take psychic damage equal to three rolls of my Bardic Inspiration die and be stunned until the end of its next turn.\"\r\n\t\t\t\t], \"\\n\")\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]] && v.thisWeapon[4].indexOf(\"bard\") !== -1) {\r\n\t\t\t\t\t\t\t// If RAW is selected, first test if this spell is eligible to use with a spellcasting focus\r\n\t\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\r\n\t\t\t\t\t\t\tvar spellObj = SpellsList[v.thisWeapon[3]];\r\n\t\t\t\t\t\t\tif (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components))) return;\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\r\n\t\t\t\t\t\t\tvar d6Regex = /(\\d+)d6/;\r\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd6') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd6', 'Cd6');\r\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd6') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd6', 'Qd6');\r\n\t\t\t\t\t\t\t} else if (d6Regex.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d6Regex, Number(fields.Damage_Die.replace(d6Regex, '$1')) + 1 + 'd6');\r\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d6 dmg\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d6';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.',\r\n\t\t\t\t\t1\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t// Do not process if a psionic, not a bard spell, or, if RAW is selected, not eligible to use with a spellcasting focus\r\n\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"bard\" || (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components)))) return;\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d6\", true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d6\", true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"RAW: only +1d6 for spells with non-costly material components\", \"Allow +1d6 for any bard spell\"],\r\n\t\t\t\"raw: only +1d6 for spells with non-costly material components\" : {\r\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I use a spiritual focus to cast a bard spell, I can add 1d6 to one damage or healing roll\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"allow +1d6 for any bard spell\" : {\r\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tdefaultChoice : \"allow +1d6 for any bard spell\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Spirit Session\",\r\n\t\t\tsource : [[\"VRGtR\", 29]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Using my spiritual focus, I can conduct a hour-long ritual to channel spirit during a rest\",\r\n\t\t\t\t\"The number of willing participants, me included, can be up to my Proficiency Bonus\",\r\n\t\t\t\t\"At the end, I learn a divination or necromancy spell of my choice until I start a long rest\",\r\n\t\t\t\t\"The spell can't be higher level than the number of participants and of a level I can cast\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Session\",\r\n\t\t\t\tschool : [\"Div\", \"Necro\"],\r\n\t\t\t\tfirstCol : \"SS\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Mystical Connection\",\r\n\t\t\tsource : [[\"VRGtR\", 29]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"For Tales from Beyond, I now roll my bardic inspiration die twice and \" + (typePF ? \"choose\" : \"select\") + \" which to use\",\r\n\t\t\t\t\"If I roll the same number on both dice, I can instead choose any effect on the table\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the undead\",{\r\n\tregExpSearch : /^(?=.*undead)(?=.*warlock).*$/i,\r\n\tsubname : \"the Undead\",\r\n\tsource : [[\"VRGtR\", 30]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"blindness/deafness\", \"phantasmal force\", \"phantom steed\", \"speak with dead\", \"death ward\", \"greater invisibility\", \"antilife shell\", \"cloudkill\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Form of Dread\",\r\n\t\t\tsource : [[\"VRGtR\", 30]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can transform for 1 minute and gain the following benefits:\",\r\n\t\t\t\t\" \\u2022 I gain temporary hit points equal to 1d10 + my warlock level\",\r\n\t\t\t\t\" \\u2022 I am immune to the frightened condition\",\r\n\t\t\t\t\" \\u2022 Once per turns when I hit an attack, I can force the target to make a Wis save\",\r\n\t\t\t\t\"   If the target fails this save, it is frightened of me until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn \"1d10+\" + n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { immune : [\"frightened (Form of Dread)\"] }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Grave Touched\",\r\n\t\t\tsource : [[\"VRGtR\", 30]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to eat, drink, or breathe\",\r\n\t\t\t\t\"Once per turn if I damage a creature with an attack, I can change its type to necrotic\",\r\n\t\t\t\t\"While I'm in my Form of Dread, I can roll one extra damage die for this necrotic damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Necrotic Husk\",\r\n\t\t\tsource : [[\"VRGtR\", 31]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to necrotic damage, or immunity while I'm in my Form of Dread\",\r\n\t\t\t\t\"As a reaction when reduced to 0 HP, I can drop to 1 HP instead and erupt with energy\",\r\n\t\t\t\t\"Each creature of my choice within 30 ft takes 2d10 + my warlock level necrotic damage\",\r\n\t\t\t\t\"After this, I gain 1 level of exhaustion and must complete 1d4 long rests to do so again\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"2d10+\" + n + \" damage, 1\\xD7 per 1d4 long rests\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdmgres : [[\"Necrotic\"]],\r\n\t\t\tsavetxt : { immune : [\"necrotic (Form of Dread)\"] },\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Necrotic Husk (revive)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"1d4 LR\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spirit Projection\",\r\n\t\t\tsource : [[\"VRGtR\", 31]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can project my spirit from my body, leaving it suspended and unconscious\",\r\n\t\t\t\t\"This lasts 1 hour or until my concentration is broken; Damage and effects affect both\",\r\n\t\t\t\t\"When it ends, I can have my spirit return to my body or my body teleport to my spirit\",\r\n\t\t\t\t\"My spirit has my abilities, but no gear; While projecting I gain the following benefits:\",\r\n\t\t\t\t\" \\u2022 My spirit and body gain resistance to bludgeoning, piercing, and slashing damage\",\r\n\t\t\t\t\" \\u2022 My conjuration/necromancy spells need no verbal, somatic, non-costly material comp.\",\r\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and can hover\",\r\n\t\t\t\t\" \\u2022 Move through creatures/objects as difficult terrain; 1d10 force damage if end turn in\",\r\n\t\t\t\t\" \\u2022 While in my Form of Dread, once per turns when I deal necrotic damage, I can heal\",\r\n\t\t\t\t\"   I regain hit points equal to half the amount of necrotic damage dealt\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds and Background Features\r\nBackgroundFeatureList[\"inheritor\"] = {\r\n\tdescription : \"I'm the clear inheritor of a famed legacy, my ancestor or mentor. I've inherited a token that marks me as their inheritor. Revealing my legacy lets me swiftly learn the local opinion of my predecessor, if they heard of it. As rumors spread swiftly, locals will consider me either a hero or a threat. Heroes are welcomed, while threats are encouraged to leave.\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"mist wanderer\"] = {\r\n\tdescription : \"The Mists whisper to me and guide me through. I immediately know if an object I'm touching is a Mist talisman, a nonmagical object that resonates with the domain where it originated, allowing the creature holding it to find a path to that domain. I recognize where the talisman originates from if I have been to its domain of origin.\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"spirit medium\"] = {\r\n\tdescription : \"A fateful experience made me believe I'm aligned with spirits and can serve as a conduit for their insights and goals. I have advantage on Arcana and Religion check to remember or research information about spirits and the afterlife. I have and am proficient with a device I made for communing with otherworldly forces (e.g. a spirit-board or tarokka deck).\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"trauma survivor\"] = {\r\n\tdescription : \"I faced something specifically traumatic and survived. Now people view me as an expert on it and can help others make it through. I'm aware of nonmagical recovery techniques, common resources, and misinformation. I know how to speak to sympathetic doctors, clergy, and leaders to can convince them to shelter one other than myself up to one month.\",\r\n\tsource : [[\"VRGtR\", 32], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"traveler\"] = {\r\n\tdescription : \"I come from another place that others couldn't begin to understand. I can find a spot to hide, rest, or recuperate among sympathetic trading caravans, itinerant families, or displaced groups, so long as I present no visible danger. Such groups will hide me, but won't risk their lives for me. I can tell if an object I can see and touch is from my homeland.\",\r\n\tsource : [[\"VRGtR\", 32], [\"ALbackground\", 0]]\r\n};\r\nBackgroundList[\"haunted one\"] = { // Reprint from Curse of Strahd, but re-define because of new \"horror\" background traits options\r\n\tregExpSearch : /haunted.one/i,\r\n\tname : \"Haunted One\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Arcana, Investigation, Religion, and Survival\",\r\n\tlanguageProfs : [2],\r\n\tgold : 0.1,\r\n\tequipleft : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden Stakes\", 3, 1],\r\n\t\t[\"Holy symbol\", \"\", 1],\r\n\t\t[\"Holy water, flasks of\", \"\", 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel Mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", \"\", 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torch\", 3, 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Trinket of special significance\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Heart of Darkness\",\r\n\ttrait : [\r\n\t\t\"I don't run from evil. Evil runs from me.\",\r\n\t\t\"I like to read and memorize poetry. It keeps me calm and brings me fleeting moments of happiness.\",\r\n\t\t\"I spend money freely and live life to the fullest, knowing that tomorrow I might die.\",\r\n\t\t\"I live for the thrill of the hunt.\",\r\n\t\t\"I don't talk about the thing that torments me. I'd rather not burden others with my curse.\",\r\n\t\t\"I expect danger around every corner.\",\r\n\t\t\"I refuse to become a victim, and I will not allow others to be victimized.\",\r\n\t\t\"I put no trust in divine beings.\",\r\n\t\t\"I had an encounter that I believe gives me a special affinity with a supernatural creature or event.\",\r\n\t\t\"A signature piece of clothing or distinct weapon serves as an emblem of who I am.\",\r\n\t\t\"I never accept that I'm out of my depth.\",\r\n\t\t\"I must know the answer to every secret. No door remains unopened in my presence.\",\r\n\t\t\"I let people underestimate me, revealing my full competency only to those close to me.\",\r\n\t\t\"I compulsively seek to collect trophies of my travels and victories.\",\r\n\t\t\"It doesn't matter if the whole world's against me. I'll always do what I think is right.\",\r\n\t\t\"I have morbid interests and a macabre aesthetic.\",\r\n\t\t\"I have a personal ritual, mantra, or relaxation method I use to deal with stress.\",\r\n\t\t\"Nothing is more important than life, and I never leave anyone in danger.\",\r\n\t\t\"I'm quick to jump to extreme solutions. Why risk a lesser option not working?\",\r\n\t\t\"I'm easily startled, but I'm not a coward.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Sacrifice\", \"Sacrifice: I try to help those in need, no matter what the personal cost. (Good)\"],\r\n\t\t[\"Desperation\", \"Desperation: I'll stop the spirits that haunt me or die trying. (Any)\"],\r\n\t\t[\"Cleansing\", \"Cleansing: I kill monsters to make the world a safer place, and to exorcise my own demons. (Good)\"],\r\n\t\t[\"Vigilante\", \"Vigilante: I have a dark calling that puts me above the law. (Chaotic)\"],\r\n\t\t[\"Preparation\", \"Preparation: I like to know my enemy's capabilities and weaknesses before rushing into battle. (Lawful)\"],\r\n\t\t[\"Destruction\", \"Destruction: I'm a monster that destroys other monsters, and anything else that gets in my way. (Evil)\"],\r\n\t\t[\"Adrenaline\", \"Adrenaline: I've experienced such strangeness that now I feel alive only in extreme situations.\"],\r\n\t\t[\"Balance\", \"Balance: I strive to counter the deeds of someone for whom I feel responsible.\"],\r\n\t\t[\"Bound\", \"Bound: I've wronged someone and must work their will to avoid their curse.\"],\r\n\t\t[\"Escape\", \"Escape: I believe there is something beyond the world I know, and I need to find it.\"],\r\n\t\t[\"Legacy\", \"Legacy: I must do something great so that I'm remembered, and my time is running out.\"],\r\n\t\t[\"Misdirection\", \"Misdirection: I work vigorously to keep others from realizing my flaws or misdeeds.\"],\r\n\t\t[\"Obsession\", \"Obsession: I've lived this way for so long that I can't imagine another way.\"],\r\n\t\t[\"Obligation\", \"Obligation: I owe it to my people, faith, family, or teacher to continue a vaunted legacy.\"],\r\n\t\t[\"Promise\", \"Promise: My life is no longer my own. I must fulfill the dream of someone who's gone.\"],\r\n\t\t[\"Revelation\", \"Revelation: I need to know what lies beyond the mysteries of death, the world, or the Mists.\"],\r\n\t\t[\"Sanctuary\", \"Sanctuary: I know the forces at work in the world and strive to create islands apart from them.\"],\r\n\t\t[\"Truth\", \"Truth: I care about the truth above all else, even if it doesn't benefit anyone.\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I keep my thoughts and discoveries in a journal. My journal is my legacy.\",\r\n\t\t\"I would sacrifice my life and my soul to protect the innocent.\",\r\n\t\t\"My torment drove away the person I love. I strive to win back the love I've lost.\",\r\n\t\t\"A terrible guilt consumes me. I hope that I can find redemption through my actions.\",\r\n\t\t\"There's evil in me, I can feel it. It must never be set free.\",\r\n\t\t\"I have a child to protect. I must make the world a safer place for him (or her).\",\r\n\t\t\"I desperately need to get back to someone or someplace, but I lost them in the Mists.\",\r\n\t\t\"Everything I do is in the service of a powerful master, one I must keep a secret from everyone.\",\r\n\t\t\"I owe much to my vanished mentor. I seek to continue their work even as I search to find them.\",\r\n\t\t\"I've seen great darkness, and I'm committed to being a light against it\\u2014the light of all lights.\",\r\n\t\t\"Someone I love has become a monster, murderer, or other threat. It's up to me to redeem them.\",\r\n\t\t\"The world has been convinced of a terrible lie. It's up to me to reveal the truth.\",\r\n\t\t\"I deeply miss someone and am quick to adopt people who remind me of them.\",\r\n\t\t\"A great evil dwells within me. I will fight against it and the world's other evils for as long as I can.\",\r\n\t\t\"I'm desperately seeking a cure to an affliction or a curse, either for someone close to me for myself.\",\r\n\t\t\"Spirits are drawn to me. I do all I can to help them find peace.\",\r\n\t\t\"I use my cunning mind to solve mysteries and find justice for those who've been wronged.\",\r\n\t\t\"I lost someone I care about, but I still see them in guilty visions, recurring dreams, or as a spirit.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have certain rituals that I must follow every day. I can never break them.\",\r\n\t\t\"I assume the worst in people.\",\r\n\t\t\"I feel no compassion for the dead. They're the lucky ones.\",\r\n\t\t\"I have an addiction.\",\r\n\t\t\"I am a purveyor of doom and gloom who lives in a world without hope.\",\r\n\t\t\"I talk to spirits that no one else can see.\",\r\n\t\t\"I believe doom follows me and that anyone who gets close to me will face a tragic end.\",\r\n\t\t\"I'm convinced something is after me, appearing in mirrors, dreams, and places where no one could.\",\r\n\t\t\"I'm especially superstitious and live life seeking to avoid bad luck, wicked spirits, or the Mists.\",\r\n\t\t\"I've done unspeakable evil and will do anything to prevent others from finding out.\",\r\n\t\t\"I am exceptionally credulous and believe any story or legend immediately.\",\r\n\t\t\"I'm a skeptic and don't believe in the power of rituals, religion, superstition, or spirits.\",\r\n\t\t\"I know my future is written and that anything I do will lead to a prophesied end.\",\r\n\t\t\"I need to find the best in everyone and everything, even when that means denying obvious malice.\",\r\n\t\t\"I've seen the evil of a type of place\\u2014like forests, cities, or graveyards\\u2014and resist going there.\",\r\n\t\t\"I'm exceptionally cautious, planning laboriously and devising countless contingencies.\",\r\n\t\t\"I have a reputation for defeating a great evil, but that's a lie and the wicked force knows.\",\r\n\t\t\"I know the ends always justify the means and am quick to make sacrifices to attain my goals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Harrowing Event\",\r\n\t\t\"Monster spared my life\",\r\n\t\t\"Born under a dark star\",\r\n\t\t\"Haunted by an apparition\",\r\n\t\t\"Dark arts in the family\",\r\n\t\t\"An oni took my sibling\",\r\n\t\t\"Memory of cured lycanthropy\",\r\n\t\t\"Raised by a hag\",\r\n\t\t\"Studied an eldritch tome\",\r\n\t\t\"Formerly possessed by a fiend\",\r\n\t\t\"Avenged a murder\"\r\n\t]\r\n};\r\nBackgroundList[\"investigator-vrgtr\"] = {\r\n\tregExpSearch : /^((?=.*investigator)(?=.*(VRGtR|Richten|Ravenloft))|private eye).*$/i,\r\n\tname : \"Investigator (VRGtR)\",\r\n\tsource : [[\"VRGtR\", 35], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Insight, Investigation, and Perception\",\r\n\ttoolProfs : [[\"Disguise kit\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Magnifying glass\", \"\", \"\"],\r\n\t\t[\"Evidence from a past case (horror trinket)\", \"\", \"\"],\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Official Inquiry\",\r\n\ttrait : [\r\n\t\t\"I had an encounter that I believe gives me a special affinity with a supernatural creature or event.\",\r\n\t\t\"A signature piece of clothing or distinct weapon serves as an emblem of who I am.\",\r\n\t\t\"I never accept that I'm out of my depth.\",\r\n\t\t\"I must know the answer to every secret. No door remains unopened in my presence.\",\r\n\t\t\"I let people underestimate me, revealing my full competency only to those close to me.\",\r\n\t\t\"I compulsively seek to collect trophies of my travels and victories.\",\r\n\t\t\"It doesn't matter if the whole world's against me. I'll always do what I think is right.\",\r\n\t\t\"I have morbid interests and a macabre aesthetic.\",\r\n\t\t\"I have a personal ritual, mantra, or relaxation method I use to deal with stress.\",\r\n\t\t\"Nothing is more important than life, and I never leave anyone in danger.\",\r\n\t\t\"I'm quick to jump to extreme solutions. Why risk a lesser option not working?\",\r\n\t\t\"I'm easily startled, but I'm not a coward.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Adrenaline\", \"Adrenaline: I've experienced such strangeness that now I feel alive only in extreme situations.\"],\r\n\t\t[\"Balance\", \"Balance: I strive to counter the deeds of someone for whom I feel responsible.\"],\r\n\t\t[\"Bound\", \"Bound: I've wronged someone and must work their will to avoid their curse.\"],\r\n\t\t[\"Escape\", \"Escape: I believe there is something beyond the world I know, and I need to find it.\"],\r\n\t\t[\"Legacy\", \"Legacy: I must do something great so that I'm remembered, and my time is running out.\"],\r\n\t\t[\"Misdirection\", \"Misdirection: I work vigorously to keep others from realizing my flaws or misdeeds.\"],\r\n\t\t[\"Obsession\", \"Obsession: I've lived this way for so long that I can't imagine another way.\"],\r\n\t\t[\"Obligation\", \"Obligation: I owe it to my people, faith, family, or teacher to continue a vaunted legacy.\"],\r\n\t\t[\"Promise\", \"Promise: My life is no longer my own. I must fulfill the dream of someone who's gone.\"],\r\n\t\t[\"Revelation\", \"Revelation: I need to know what lies beyond the mysteries of death, the world, or the Mists.\"],\r\n\t\t[\"Sanctuary\", \"Sanctuary: I know the forces at work in the world and strive to create islands apart from them.\"],\r\n\t\t[\"Truth\", \"Truth: I care about the truth above all else, even if it doesn't benefit anyone.\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I desperately need to get back to someone or someplace, but I lost them in the Mists.\",\r\n\t\t\"Everything I do is in the service of a powerful master, one I must keep a secret from everyone.\",\r\n\t\t\"I owe much to my vanished mentor. I seek to continue their work even as I search to find them.\",\r\n\t\t\"I've seen great darkness, and I'm committed to being a light against it\\u2014the light of all lights.\",\r\n\t\t\"Someone I love has become a monster, murderer, or other threat. It's up to me to redeem them.\",\r\n\t\t\"The world has been convinced of a terrible lie. It's up to me to reveal the truth.\",\r\n\t\t\"I deeply miss someone and am quick to adopt people who remind me of them.\",\r\n\t\t\"A great evil dwells within me. I will fight against it and the world's other evils for as long as I can.\",\r\n\t\t\"I'm desperately seeking a cure to an affliction or a curse, either for someone close to me for myself.\",\r\n\t\t\"Spirits are drawn to me. I do all I can to help them find peace.\",\r\n\t\t\"I use my cunning mind to solve mysteries and find justice for those who've been wronged.\",\r\n\t\t\"I lost someone I care about, but I still see them in guilty visions, recurring dreams, or as a spirit.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I believe doom follows me and that anyone who gets close to me will face a tragic end.\",\r\n\t\t\"I'm convinced something is after me, appearing in mirrors, dreams, and places where no one could.\",\r\n\t\t\"I'm especially superstitious and live life seeking to avoid bad luck, wicked spirits, or the Mists.\",\r\n\t\t\"I've done unspeakable evil and will do anything to prevent others from finding out.\",\r\n\t\t\"I am exceptionally credulous and believe any story or legend immediately.\",\r\n\t\t\"I'm a skeptic and don't believe in the power of rituals, religion, superstition, or spirits.\",\r\n\t\t\"I know my future is written and that anything I do will lead to a prophesied end.\",\r\n\t\t\"I need to find the best in everyone and everything, even when that means denying obvious malice.\",\r\n\t\t\"I've seen the evil of a type of place\\u2014like forests, cities, or graveyards\\u2014and resist going there.\",\r\n\t\t\"I'm exceptionally cautious, planning laboriously and devising countless contingencies.\",\r\n\t\t\"I have a reputation for defeating a great evil, but that's a lie and the wicked force knows.\",\r\n\t\t\"I know the ends always justify the means and am quick to make sacrifices to attain my goals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Path to Mystery\",\r\n\t\t\"Proved friend's innocence\",\r\n\t\t\"My memory loss\",\r\n\t\t\"Helped spirit find peace\",\r\n\t\t\"Uncovered magical hoax\",\r\n\t\t\"Fugitive after wrongful convicion\",\r\n\t\t\"Tracking supernatural phenomena\",\r\n\t\t\"Tried to expose mysterious cabal\",\r\n\t\t\"Investigate unsolved crimes\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"official inquiry\"] = {\r\n\tdescription : \"Through a combination of fast-talking, determination, and official-looking documentation, I can gain access to a place or an individual related to a crime I'm investigating. Those who aren't involved in my investigation avoid impeding me or pass along my requests. Local law enforcement has firm opinions, viewing me as either a nuisance or one of their own.\",\r\n\tsource : [[\"VRGtR\", 35], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"harkon's bite\"] = {\r\n\tname : \"Harkon's Bite\",\r\n\tsource : [[\"VRGtR\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This necklace with a dire wolf tooth gives me a +1 on checks and saves. Curse: I can't remove it once I'm attuned to it. If I don or remove the necklace, even if I'm not attuned, I'm afflicted with werewolf lycanthropy (MM 211). This lasts until the dawn after the next full moon, unless I'm still wearing the necklace at dawn.\",\r\n\tdescriptionFull : \"A dire wolf tooth dangles from this simple cord necklace. While you wear it, the necklace grants you a +1 bonus to ability checks and saving throws.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Attuning to Harkon's Bite curses you until either Harkon Lukas removes the necklace from you or you are targeted by a remove curse spell or similar magic. As long as you remain cursed, you cannot remove the necklace.\"+\r\n\t\"\\n   Upon donning or removing the necklace, whether you are attuned to it or not, you are afflicted with werewolf lycanthropy as detailed in the Monster Manual. The curse lasts until the dawn after the next full moon. If you are still wearing the necklace at this time, you are afflicted with the lycanthropy again.\",\r\n\taddMod : [\r\n\t\t{ type : \"save\", field : \"all\", mod : 1, text : \"I gain a +1 bonus on all my saving throws.\" },\r\n\t\t{ type : \"skill\", field : \"all\", mod : 1, text : \"I gain a +1 bonus on all my ability checks.\" },\r\n\t\t{ type : \"skill\", field : \"Init\", mod : 1, text : \"I gain a +1 bonus on all my ability checks.\" }\r\n\t]\r\n}\r\nvar VRGtR_nepentheFullDescription = [\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. When you hit a fiend or an undead with it, that creature takes an extra 2d10 radiant damage.\",\r\n\t\"While you hold the drawn sword, it creates an aura in a 10-foot radius around you. You and all creatures friendly to you in the aura have advantage on saving throws against spells and other magical effects. If you have 17 or more levels in the paladin class, the radius of the aura increases to 30 feet.\",\r\n\t\">>Sentience<<. Nepenthe is a sentient, neutral evil weapon with an Intelligence of 10, a Wisdom of 8, and a Charisma of 18. It has hearing and darkvision out to a range of 60 feet. It can read and understand Elvish. It can also speak Elvish, but only through the voice of its wielder, with whom the sword can communicate telepathically.\",\r\n\t\">>Personality<<. In its lifetime, the sword has beheaded thousands of criminals, not all of whom were guilty of the crimes for which they were convicted. The sword cannot distinguish the guilty from the innocent. With each beheading, it hungers for more justice and blood. The sword is corrupt and irredeemable.\"\r\n]\r\nMagicItemsList[\"nepenthe\"] = {\r\n\tname : \"Nepenthe\",\r\n\tsource : [[\"VRGtR\", 137]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a paladin\",\r\n\tprereqeval : function (v) { return classes.known.paladin ? true : false; },\r\n\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 10-ft radius aura (30-ft if level 17 paladin) that grants me and my allies adv. on saves against spells and magical effects.\",\r\n\tdescriptionFull : VRGtR_nepentheFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(VRGtR_nepentheFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/(to|around) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /nepenthe/i,\r\n\t\tname : \"Nepenthe\",\r\n\t\tsource : [[\"VRGtR\", 137]],\r\n\t\tdescription : \"Versatile (1d10); +2d10 radiant damage vs. fiends and undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"spells\", \"magical effects\"] },\r\n\tchoices : [\"Paladin level 1-16 (10-ft aura)\", \"Paladin level 17+ (30-ft aura)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn !classes.known.paladin ? \"\" : classes.known.paladin.level < 17 ? \"paladin level 1-16 (10-ft aura)\" : \"paladin level 17+ (30-ft aura)\";\r\n\t},\r\n\t\"paladin level 1-16 (10-ft aura)\" : {\r\n\t\tname : \"Nepenthe\\u200A\",\r\n\t\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls made with it. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 10-ft radius aura that grants me and my allies advantage on saving throws against spells and magical effects.\"\r\n\t},\r\n\t\"paladin level 17+ (30-ft aura)\" : {\r\n\t\tname : \"Nepenthe\\u200A\\u200A\",\r\n\t\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls made with it. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 30-ft radius aura that grants me and my allies advantage on saving throws against spells and magical effects.\"\r\n\t}\r\n}\r\n\r\n/* Dark gift\r\n\r\nMagicItemsList[\"living shadow\"] = {\r\n\tname : \"Living Shadow\",\r\n\tsource : [[\"VRGtR\", 24]],\r\n\ttype : \"dark gift\",\r\n\trarity : \"\",\r\n\tdescription : \"I learn the Mage Hand cantrip and require no components to cast it. My Prof Bonus per long rest, I can gain +10 ft reach for one melee attack. The first time I roll a 1 on a d20 after a short rest, my shadow will act up. The next time I or another I can see in 30 ft rolls a d20, I roll a d4. If even: add to roll, odd: subtract.\",\r\n\tdescriptionLong : \"I learn the Mage Hand cantrip and require no components to cast it. The hand created by the spell is shadowy but is not bound to your actual shadow. My proficiency bonus per long rest, when I make a melee attack, I can gain +10 ft reach for that attack as my shadow stretches and delivers the attack. The first time after a short rest when I roll a 1 on an attack, check, or save, my shadow will act up. The next time I or a creature I can see within 30 ft rolls for an attack, check, or save, roll a d4. If the number is odd, reduce the total by that number. If it is even, increase the total by that number instead.\",\r\n\tdescriptionFull : \"The shadow you cast is animate and ever-present, even when lighting conditions would otherwise prevent it. Your shadow occasionally moves out of sync with you. Sometimes it appears to be undertaking random but mundane tasks, while at other times it acts out your darker impulses, threatening or even attacking other shadows. With effort, you can bend this shadow puppetry to your will.\\n\"+\r\n\ttoUni(\"Grasping Shadow\") + \". You learn the mage hand cantrip if you don't already know it, and require no components to cast it. The hand created by the spell is shadowy but is not bound to your actual shadow. Your spellcasting ability for this spell is Intelligence, Wisdom, or Charisma (your choice when you gain this Dark Gift).\\n\"+\r\n\ttoUni(\"Shadow Strike\") + \". When you make a melee attack roll, you can increase your reach for that attack by 10 feet. Your shadow stretches and delivers the attack as if it were you. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\\n\"+\r\n\ttoUni(\"Ominous Will\") + \". Immediately after you make an attack roll, an ability check, or a saving throw and roll a 1 on the d20, your shadow exerts a will of its own and might assist or hinder you or those around you. The next time you or a creature within 30 feet of you that you can see makes an attack roll, an ability check, or a saving throw, roll a d4. If the number is odd, reduce the total by the number rolled. If the number is even, increase the total by the number rolled. Once this effect occurs, it can't happen again until you finish a short or long rest.\",\r\n\taction : [[\"action\", \"Unsettling Presence\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Shadow Strike\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}, {\r\n\t\tname : \"Ominous Will\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Grasping Shadow\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tchanges : \"Using Grasping Shadow from my Living Shadow dark gift, I can cast Mage Hand without any components. The hand created by the spell is shadowy but is not bound to my actual shadow.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"living shadow\"] = MagicItemsList[\"living shadow\"];\r\n\r\n*/\n// pub_20210921_WBtW.js\r\n// This file adds the content from The Wild Beyond the Witchlight adventure to MPMB's Character Record Sheet\r\n\r\nSourceList.WBtW = {\r\n\tname : \"The Wild Beyond the Witchlight\",\r\n\tabbreviation : \"WBtW\",\r\n\tgroup : \"Adventure Books\",\r\n\turl : \"https://dnd.wizards.com/products/wild-beyond-witchlight\",\r\n\tdate : \"2021/09/21\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"feylost\"] = {\r\n\tregExpSearch : /feylost/i,\r\n\tname : \"Feylost\",\r\n\tsource : [[\"WBtW\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Survival\"],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [[\"Elvish, Gnomish, Goblin, or Sylvan\", 1]],\r\n\tgold : 8,\r\n\tequipleft : [\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"],\r\n\t\t[\"Three Feywild trinkets\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Feywild Connection\",\r\n\ttrait : [\r\n\t\t\"I'm haunted by fey laughter that only I can hear, though I know it's just my mind playing tricks on me.\",\r\n\t\t\"Like a nomad, I can't settle down in one place for very long.\",\r\n\t\t\"Good music makes me weep like a baby.\",\r\n\t\t\"Wherever I go, I try to bring a little of the warmth and tranquility of home with me.\",\r\n\t\t\"I have never lost my childlike sense of wonder.\",\r\n\t\t\"When I have a new idea, I get wildly excited about it until I come up with another, better idea.\",\r\n\t\t\"I live by my own set of weird and wonderful rules.\",\r\n\t\t\"I can't bring myself to trust most adults.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Friendship\", \"Friendship: I never leave a friend behind. (Good)\"],\r\n\t\t[\"Empathy\", \"Empathy: No creature should be made to suffer. (Good)\"],\r\n\t\t[\"Wanderlust\", \"Wanderlust: I prefer to take the less traveled path. (Chaotic)\"],\r\n\t\t[\"Changeability\", \"Changeability: Change is good, which is why I live by an ever-changing set of rules. (Chaotic)\"],\r\n\t\t[\"Honor\", \"Honor: A deal is a deal, and I would never break one. (Lawful)\"],\r\n\t\t[\"Rule of Three\", 'Rule of Three: Everything in the multiverse happens in threes. I see the \"rule of three\" everywhere. (Lawful)'],\r\n\t\t[\"Obsession\", \"Obsession: I won't let go of a grudge. (Evil)\"],\r\n\t\t[\"Greed\", \"Greed: I will do whatever it takes to get what I want, regardless of the harm it might cause. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I would never break my word.\",\r\n\t\t\"I find magic in all its forms to be compelling. The more magical a place, the more I am drawn to it.\",\r\n\t\t\"I do what I can to protect the natural world.\",\r\n\t\t\"A trusted friend is the most important thing in the multiverse to me.\",\r\n\t\t\"I can't bring myself to harm a Fey creature, either because I consider myself one or because I fear the repercussions.\",\r\n\t\t\"The Witchlight Carnival feels like home to me.\",\r\n\t\t\"I'm drawn to the Feywild and long to return there, if only for a short while.\",\r\n\t\t\"I feel indebted to Mister Witch and Mister Light for giving me a home and a purpose.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I easily lose track of time. My poor sense of time means I'm always late.\",\r\n\t\t\"I think the whole multiverse is out to get me.\",\r\n\t\t\"I'm always operating under a tight timeline, and I'm obsessed with keeping everything on schedule.\",\r\n\t\t\"I'm a kleptomaniac who covets shiny, sparkling treasure.\",\r\n\t\t\"I'm forgetful. Sometimes I can't remember even the simplest things.\",\r\n\t\t\"I never give away anything for free and always expect something in return.\",\r\n\t\t\"I have many vices and tend to indulge them.\",\r\n\t\t\"I'm always changing my mind\\u2014well, almost always.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Fey Mark\",\r\n\t\t\"Iridescent color eyes\",\r\n\t\t\"Sweet scent\",\r\n\t\t\"Long whiskers\",\r\n\t\t\"Furry ears\",\r\n\t\t\"Skin sparkles in moonlight\",\r\n\t\t\"Flowers bloom in my presence\",\r\n\t\t\"Flowers wilt in my presence\",\r\n\t\t\"Vines for hair\",\r\n\t\t\"Brambles for hair\",\r\n\t\t\"Tail\"\r\n\t],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Feywild Visitor\",\r\n\t\tnote : [\r\n\t\t\t\"Whenever I'm sound asleep or in a deep trance during a long rest, a spirit of the Feywild might pay me a visit, if the DM wishes it. Determine the spirit's form by rolling on the table below. No harm ever comes to me as a result of such visits, which can last for minutes or hours, and I remember each visit when I wake up. Conversations that occur with a visitor can contain any number of things, from messages and insights to nonsense and red herrings, at the DM's discretion. Such conversations are always conducted in a language I can understand, even if the Feywild visitor can't speak that language normally.\\n\",\r\n\t\t\t\"d8\\tVisitor\",\r\n\t\t\t\" 1\\tAwakened creature (beast or plant that had the Awaken spell cast on it)\",\r\n\t\t\t\" 2\\tCentaur\",\r\n\t\t\t\" 3\\tDryad\",\r\n\t\t\t\" 4\\tFaerie dragon\",\r\n\t\t\t\" 5\\tPixie\",\r\n\t\t\t\" 6\\tSatyr\",\r\n\t\t\t\" 7\\tSprite\",\r\n\t\t\t\" 8\\tUnicorn\"\r\n\t\t]\r\n\t}]\r\n};\r\nBackgroundFeatureList[\"feywild connection\"] = {\r\n\tdescription : \"My mannerisms and knowledge of fey customs are recognized by natives of the Feywild, who see me as one of their own. Because of this, friendly Fey creatures are inclined to come to my aid if I am lost or need help in the Feywild.\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]]\r\n};\r\nBackgroundList[\"witchlight hand\"] = {\r\n\tregExpSearch : /^(?=.*(witchlight|carnival))(?=.*hand).*$/i,\r\n\tname : \"Witchlight Hand\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]],\r\n\tskills : [\"Performance\", \"Sleight of Hand\"],\r\n\ttoolProfs : [[\"Disguise kit or Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tgold : 8,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit or Musical instrument\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"],\r\n\t\t[\"Feywild trinket\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Carnival uniform or Costume\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Carnival Fixture\",\r\n\ttrait : BackgroundList[\"feylost\"].trait,\r\n\tideal : BackgroundList[\"feylost\"].ideal,\r\n\tbond : BackgroundList[\"feylost\"].bond,\r\n\tflaw : BackgroundList[\"feylost\"].flaw,\r\n\textra : [\r\n\t\t\"Select Carnival Companion\",\r\n\t\t\"Old, cantankerous Witchlight hand\",\r\n\t\t\"Young, impressionable Witchlight hand\",\r\n\t\t\"Performer\",\r\n\t\t\"Retired performer\",\r\n\t\t\"Seasoned animal trainer\",\r\n\t\t\"Old blink dog\",\r\n\t\t\"Your hair is made of vines or brambles and grows back to normal length within 1 hour of being cut.\",\r\n\t\t\"You have a tail like that of a dog or another animal.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"carnival fixture\"] = {\r\n\tdescription : \"The Witchlight Carnival provides me with free, modest lodging and food. In addition, I may wander about the carnival and partake of its many wonders at no cost to me, provided I don't disrupt its shows or cause any other trouble.\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Races\r\nRaceList[\"fairy\"] = {\r\n\tregExpSearch : /fairy/i,\r\n\tname : \"Fairy\",\r\n\tsource : [[\"WBtW\", 12], [\"MotM\", 14]],\r\n\tplural : \"Fairies\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Fairy Magic\",\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"fairy magic (level 3)\" : {\r\n\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Faerie Fire\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"fairy magic (level 5)\" : {\r\n\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Enlarge/Reduce\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Fairy\"+\r\n\t\t(typePF ? \"\\n \\u2022 Fey: My \" : \" (\") + \"creature type is fey, rather than humanoid\" + (typePF ? \".\" : \")\") +\r\n\t\t\"\\n \\u2022 Flight: I have a flying speed equal to my walking speed. To use this speed, I can't be wearing medium or heavy armor.\"+\r\n\t\t\"\\n \\u2022 Fairy Magic: I know the Druidcraft cantrip. At 3rd level, I can cast Faerie Fire. At 5th level, I can cast Enlarge/Reduce. I can cast each spell without using a spell slot once per long rest, as well as by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\"\r\n};\r\nRaceList[\"harengon\"] = {\r\n\tregExpSearch : /harengon/i,\r\n\tname : \"Harengon\",\r\n\tsource : [[\"WBtW\", 13], [\"MotM\", 22]],\r\n\tplural : \"Harengons\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"I can add my proficiency bonus to my initiative rolls.\" }],\r\n\tscoresGeneric : true,\r\n\taction : [[\"reaction\", \"Lucky Footwork\"], [\"bonus action\", \"Rabbit Hop\"]],\r\n\tfeatures : {\r\n\t\t\"rabbit hop\" : {\r\n\t\t\tname : \"Rabbit Hop\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) {\r\n\t\t\t\tvar hopDistance = n * 5 + ' ft';\r\n\t\t\t\treturn What(\"Unit System\") === \"metric\" ? ConvertToMetric(hopDistance) : hopDistance;\r\n\t\t\t})\r\n\t\t}\r\n\t},\r\n\ttrait : \"Harengon\"+\r\n\t\t\"\\n \\u2022 Hare-Trigger: I can add my proficiency bonus to my initiative rolls.\"+\r\n\t\t\"\\n \\u2022 Leporine Senses: I have proficiency in the Perception skill.\"+\r\n\t\t\"\\n \\u2022 Lucky Footwork: As a reaction when I fail a Dexterity saving throw, I can add +1d4 to the result, potentially making it a success. I can't do this if I'm prone or my speed is 0.\"+\r\n\t\t\"\\n \\u2022 Rabbit Hop: As a bonus action if my speed isn't 0, I can jump 5 ft times my Prof Bonus without provoking opportunity attacks. I can do this my Prof Bonus times per long rest.\"\r\n};\r\n\r\n// Magic Items\r\nvar WBtW_Sentient_Item_toNotes = function (sDescr, skipConflict) {\r\n\tvar theR = desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|of|to|for) I\\b|\\bI to|\\bI an?\\b/ig, \"$1 me\")\r\n\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); });\r\n\treturn skipConflict ? theR : theR + \"\\n\\n\" + sentientItemConflictTxt\r\n}\r\nMagicItemsList[\"bobbing lily pad\"] = {\r\n\tname : \"Bobbing Lily Pad\",\r\n\tsource : [[\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This 10-ft diameter vehicle float on water and has a walking, flying, and swimming speed of 20 ft, and it can hover. While I ride it, it moves according to my spoken directions. The lily pad can transport up to 600 lb, but moves at only half speed when carrying more than 300 lb.\",\r\n\tdescriptionFull : \"This magic vehicle is a 10-foot-diameter leaf that floats on water. It has tendrils that propel it across land and across the water's surface (but not underwater), as well as through the air. It has a walking, flying, and swimming speed of 20 feet, and it can hover. It moves according to your spoken directions while you are riding it.\"+\r\n\t\"\\n   The lily pad can transport up to 300 pounds without hindrance. It can carry up to twice this weight, but it moves at half speed if it carries more than its normal capacity.\",\r\n}\r\nMagicItemsList[\"chromatic rose\"] = {\r\n\tname : \"Chromatic Rose\",\r\n\tsource : [[\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"While I hold this magic rose, it grants me resistance to a damage type determined by its color. If I would take 10+ damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 damage.\",\r\n\tdescriptionFull : \"This magic rose comes in one of five colors, as noted in the table below. While a rose is held, it gains a harmless visual effect as indicated on the table.\"+\r\n\t\"\\n   While holding the rose by its stem, you gain resistance to damage of the type associated with the rose's color. If you would take more than 10 damage of this type from a single source (after applying the resistance), the rose disintegrates, and you take no damage instead.\"+\r\n\t\"\\n   As an action, you can blow the petals from the rose to produce a 20-foot cone of acid, lightning, poisonous gas, fire, or cold, as dictated by the rose's damage type. Each creature in the cone must make a DC 15 Constitution saving throw, taking 3d10 damage of the appropriate type on a failed save, or half as much damage on a successful one. Using this property destroys the rose.\"+\r\n\ttoUni(\"\\n Color\\tVisual Effect\\tDamage Type\")+\r\n\t\"\\n Black\\tDrips acid\\tAcid\"+\r\n\t\"\\n Blue\\tCrackles with lightning\\tLightning\"+\r\n\t\"\\n Green\\tIssues green gas\\tPoison\"+\r\n\t\"\\n Red\\tWreathed in fire\\tFire\"+\r\n\t\"\\n White\\tCovered in frost\\tCold\",\r\n\tallowDuplicates : true,\r\n\taction : [[\"action\", \"Destroy Chromatic Rose for Cone\"]],\r\n\tchoices : [\"Black (acid)\", \"Blue (lightning)\", \"Green (poison)\", \"Red (fire)\", \"White (cold)\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"black (acid)\" : {\r\n\t\tname : \"Black Chromatic Rose\",\r\n\t\tdescription : \"While I hold this acid dripping rose, it grants me acid resistance. If I would take more than 10 acid damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 acid damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Acid\"]\r\n\t},\r\n\t\"blue (lightning)\" : {\r\n\t\tname : \"Blue Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me lightning resistance. If I would take more than 10 lightning damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 lightning damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Lightning\"]\r\n\t},\r\n\t\"green (poison)\" : {\r\n\t\tname : \"Green Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me poison resistance. If I would take more than 10 poison damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 poison damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Poison\"]\r\n\t},\r\n\t\"red (fire)\" : {\r\n\t\tname : \"Red Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me fire resistance. If I would take more than 10 fire damage from a single source (after resistance), the rose disintegrates and I take no damage instead. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 fire damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Fire\"]\r\n\t},\r\n\t\"white (cold)\" : {\r\n\t\tname : \"White Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me cold resistance. If I would take more than 10 cold damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 cold damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Cold\"]\r\n\t}\r\n}\r\nMagicItemsList[\"dust of corrosion\"] = {\r\n\tname : \"Dust of Corrosion\",\r\n\tsource : [[\"WBtW\", 209]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can throw this dust in the air, affecting a 10-ft cube that extends from me. Objects made of nonmagical ferrous metal in the area corrode and turn to dust. Creatures in the area (partly) made out of ferrous metal take 4d8 necrotic damage and can make a DC 13 Con save to halve this damage.\",\r\n\tdescriptionFull : \"As an action, you can throw this dust into the air, filling a 10-foot cube that extends out from you. Surfaces and objects made of nonmagical ferrous metal in the area instantly corrode and turn to dust, becoming useless and unsalvageable. Any creature in the area that is made wholly or partly out of ferrous metal must make a DC 13 Constitution saving throw, taking 4d8 necrotic damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   Found in a small packet, this dust is made from finely ground rust monster antennae. There is enough dust in each packet for one use.\",\r\n}\r\nMagicItemsList[\"eldritch staff\"] = {\r\n\tname : \"Eldritch Staff\",\r\n\tsource : [[\"WBtW\", 209]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This +1 quarterstaff has 10 charges, regaining 1d6+4 charges at dawn. 5% chance it's destroyed If I use its last charge. When I hit with it, I can deal +1d8 lightning damage per charge (max 3). As a reaction when I'm damaged, I can use 3 charges to teleport 60 ft and become invisible until my next turn starts, or I attack/cast.\",\r\n\tdescriptionLong : \"This magic quarterstaff grants a +1 bonus to attack and damage rolls made with it. It has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff is destroyed in an otherwise harmless burst of eldritch energy. When I hit with it in melee, I can expend up to 3 charges, dealing +1d8 lightning damage per charge. As a reaction when I'm damaged while holding the staff, I can use 3 charges to become invisible and teleport 60 ft to an empty space I can see. I then remain invisible until the start of my next turn or until I attack, cast a spell, or deal damage.\",\r\n\tdescriptionFull : \"This staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it.\"+\r\n\t\"\\n   The staff has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff is destroyed in an otherwise harmless burst of eldritch energy.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Attack\") + \". When you hit with a melee attack using the staff, you can expend up to 3 of its charges. For each charge you expend, the target takes an extra 1d8 lightning damage.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Escape\") + \". If you take damage while holding the staff, you can use your reaction to expend 3 of the staff's charges, whereupon you turn invisible and teleport yourself, along with any equipment you are wearing or carrying, up to 60 feet to an unoccupied space that you can see. You remain invisible until the start of your next turn or until you attack, cast a spell, or deal damage.\",\r\n\tweight : 4,\r\n\taction : [[\"reaction\", \" (if damaged)\"]],\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /eldritch staff/i,\r\n\t\tname : \"Eldritch Staff\",\r\n\t\tsource : [[\"WBtW\", 209]],\r\n\t\tdescription : \"Versatile (1d8); On hit, +1d8 lightning damage per charge (max 3)\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ornithopter of flying\"] = {\r\n\tname : \"Ornithopter of Flying\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This contraption can lift up to 300 lb in the air. It has a flying speed of 30 ft and moves according to my spoken directions while I am riding it. It can't hover. If the ornithopter loses its rider while airborne, it falls and can't fly again for 1d6 + 4 days. It is 8 ft long, has a 14-ft wingspan, and weighs 25 lb.\",\r\n\tdescriptionFull : \"You can use this contraption to fly, provided your weight (including whatever you are wearing or carrying) doesn't exceed 300 pounds. The ornithopter has a flying speed of 30 feet, and it moves according to your spoken directions while you are riding it. It can't hover. If the ornithopter loses its rider while airborne, it falls and can't fly again for 1d6 + 4 days.\"+\r\n\t\"\\n   The ornithopter is 8 feet long, has a 14-foot wingspan, and weighs 25 pounds.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"pixie dust\"] = {\r\n\tname : \"Pixie Dust\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can sprinkle this dust on myself or another creature I can see within 5 ft. The recipient gains a flying speed of 30 ft and the ability to hover for 1 minute. If the creature is airborne when this effect ends, it falls safely to the ground, taking no damage and landing on its feet.\",\r\n\tdescriptionFull : \"As an action, you can sprinkle this dust on yourself or another creature you can see within 5 feet of you. The recipient gains a flying speed of 30 feet and the ability to hover for 1 minute. If the creature is airborne when this effect ends, it falls safely to the ground, taking no damage and landing on its feet.\"+\r\n\t\"\\n   A small packet holds enough pixie dust for one use.\",\r\n}\r\nMagicItemsList[\"potion of advantage\"] = {\r\n\tname : \"Potion of Advantage\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can drink this potion of a sparkling, golden mist that moves and pours like water or administer it to another. The consumer of the potion gains advantage on one ability check, attack roll, or saving throw of its choice that it makes within the next hour.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain advantage on one ability check, attack roll, or saving throw of your choice that you make within the next hour.\"+\r\n\t\"\\n   This potion takes the form of a sparkling, golden mist that moves and pours like water.\",\r\n}\r\n\r\nvar WBtW_Scissors_of_Shadow_Snipping_Full_Description = [\r\n\t\"As an action, you make a few snips with these iron shears and cause the shadow of a Humanoid creature you can see within 5 feet of you to detach from its source. If the creature is unwilling to give up its shadow, it can make a DC 15 Charisma saving throw, retaining its shadow on a success. Whether or not the shadow is snipped, this property of the scissors can't be used again until the next dawn.\",\r\n\t\"The detached shadow is rooted to the spot where it was snipped until you use a bonus action to cause it to behave in one of the following ways, either of which is possible only if you can see the shadow:\",\r\n\t\"\\u2022 You control the shadow's movements and can make the shadow move up to 30 feet across a solid or liquid surface, in any direction you choose (including along vertical surfaces), provided it remains within your sight at all times. The shadow is harmless and unable to be harmed, and it is invisible in darkness. It can't speak, and it doesn't require air, sleep, or nourishment.\",\r\n\t\"\\u2022 You can relinquish control of the shadow, at which point it becomes autonomous and behaves as the DM wishes. It uses the shadow stat block in the Monster Manual, but its creature type is Fey instead of Undead. A creature whose Strength is reduced to 0 by this shadow's Strength Drain attack does not die but falls unconscious instead. The creature regains consciousness and all its Strength after finishing a short or long rest.\",\r\n\t\"A creature whose shadow has detached from it is cursed. If a shadowless creature is subjected to any spell that ends a curse, or if its detached shadow is reduced to 0 hit points, the detached shadow disappears, and the creature regains its normal shadow instantly.\"\r\n];\r\nMagicItemsList[\"scissors of shadow snipping\"] = {\r\n\tname : \"Scissors of Shadow Snipping\",\r\n\tsource : [[\"WBtW\", 213]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a fey or a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; }, // no fey player races exist that don't have racial spellcasting\r\n\tdescription : \"As an action once per dawn, I can use these iron shears to detach the shadow of a Humanoid I can see within 5 ft. An involuntary target can make a DC 15 Cha save to resist. The detached shadow stays where it was snipped until I use a bonus action to control it or set it free. See Notes page.\",\r\n\tdescriptionFull : WBtW_Scissors_of_Shadow_Snipping_Full_Description.join(\"\\n   \"),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Scissors_of_Shadow_Snipping_Full_Description, true)\r\n\t}],\r\n\taction : [[\"action\", \" (snip)\"], [\"bonus action\", \" (control)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nvar WBtW_Snicker_Snack_Full_Description = [\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic vorpal sword. In addition, the weapon ignores resistance to slashing damage. When you use this weapon to attack a creature that has at least one head and roll a 20 on the attack roll, you cut off one of the creature's heads. The creature dies if it can't survive without the lost head. A creature is immune to this effect if it is immune to slashing damage, it doesn't have or need a head, it has legendary actions, or the DM decides that the creature is too big for its head to be cut off with this weapon. Such a creature instead takes an extra 6d8 slashing damage from the hit.\",\r\n\t\"While attuned to Snicker-Snack, you have proficiency with greatswords, and you can use your Charisma modifier instead of your Strength modifier for attack and damage rolls made with the weapon.\",\r\n\t\">>Sentience<<. Snicker-Snack is a sentient, chaotic good greatsword with an Intelligence of 9, a Wisdom of 14, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet. It can speak, read, and understand Common, and its voice sounds silvery and melodic. Snicker-Snack craves the destruction of evil Dragons and urges you to seek out these creatures and slay them.\",\r\n\t\">>Personality<<. Snicker-Snack has a fickle personality. It ends its attunement to you if you miss on attack rolls with the weapon three times in a row. Each time you finish a long rest after that happens, you can attempt to regain the sword's trust by making a contested Charisma check against Snicker-Snack. If you win the contest, your attunement to the weapon is instantly restored. Your attunement to the weapon can't be restored in any other way.\"\r\n];\r\nMagicItemsList[\"snicker-snack\"] = {\r\n\tname : \"Snicker-Snack\",\r\n\tsource : [[\"WBtW\", 213]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a non-evil creature\",\r\n\tprereqeval : function(v) { return !/evil/i.test(What(\"Alignment\")); },\r\n\tdescription : \"I have a +3 bonus on attack and damage rolls with this sentient magic greatsword and can use Cha instead of Str. It ignores slashing resistance. On a 20 to hit, it cuts off \" + (typePF ? \"a head\" : \"one head, possibly killing it instantly\") + \". If the target has legendary actions, no head, too wide neck, or is immune to slashing damage, it takes +6d8 damage instead. See Notes.\",\r\n\tdescriptionFull : WBtW_Snicker_Snack_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 6,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Snicker_Snack_Full_Description)\r\n\t}],\r\n\tweaponProfs : [false, false [\"greatsword\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /snicker.snack/i,\r\n\t\tname : \"Snicker-Snack\",\r\n\t\tsource : [[\"WBtW\", 213]],\r\n\t\tdescription : \"Heavy, two-handed; Ignores slashing resistance; On 20 to hit: cut off head\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tisSnickerSnack : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.isSnickerSnack && fields.Mod === 1 && What('Cha') > What('Str')) {\r\n\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I can use my Charisma modifier instead of my Strength modifier for attack and damage rolls made with Snicker-Snack.\"\r\n\t\t]\r\n\t}\r\n}\r\nvar WBtW_Steel_Full_Description = [\r\n\t\"You have a +2 bonus to attack and damage rolls made with this magic weapon.\",\r\n\t\">>Revivify<<. You can use an action to cast the revivify spell from the sword. You must touch the target with the sword to cast the spell. Once this property of the weapon is used, it can't be used again until the next dawn.\",\r\n\t\">>Sentience<<. Steel is a sentient, lawful good longsword with an Intelligence of 8, a Wisdom of 11, and a Charisma of 15. It can see and hear out to a range of 60 feet. The sword can speak, read, and understand Common and Draconic. It frets over your well-being while you are attuned to it, and it doesn't like to back down from a fight.\"\r\n];\r\nMagicItemsList[\"steel\"] = {\r\n\tname : \"Steel\",\r\n\tsource : [[\"WBtW\", 214]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a good-aligned creature\",\r\n\tprereqeval : function(v) { return /good/i.test(What(\"Alignment\")); },\r\n\tdescription : \"This sentient longsword adds +2 to attack and damage rolls made with it. As an action once per dawn, I can use it to cast Revivify on a target I touch with the sword. Steel is lawful good and frets over my well-being and doesn't like to back down from a fight. It has Int 8, Wis 11, and Cha 15. See Notes page.\",\r\n\tdescriptionFull : WBtW_Steel_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Steel_Full_Description)\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /['\"]steel['\"]/i,\r\n\t\tname : '\"Steel\"',\r\n\t\tsource : [[\"WBtW\", 214]],\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"revivify\"],\r\n\t\tselection : [\"revivify\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\nMagicItemsList[\"woodcutter's axe\"] = {\r\n\tname : \"Woodcutter's Axe\",\r\n\tsource : [[\"WBtW\", 214]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this magic greataxe. When I use this axe to make an attack against a plant (an ordinary plant or a creature with the Plant type) or a wooden object that isn't being worn or carried, the attack deals an extra 2d6 slashing damage on a hit.\",\r\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon.\"+\r\n\t\"\\n   When you use this axe to make an attack against a plant (an ordinary plant or a creature with the Plant type) or a wooden object that isn't being worn or carried, the attack deals an extra 2d6 slashing damage on a hit.\",\r\n\tweight : 7,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /^(?=.*woodcutter)(?=.*axe).*$/i,\r\n\t\tname : \"Woodcutter's Axe\",\r\n\t\tsource : [[\"WBtW\", 214]],\r\n\t\tdescription : \"Heavy, two-handed; +2d6 damage vs. plants/wood\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nvar WBtW_Witchlight_Vane_Full_Description = [\r\n\t\"This ornate rod is topped by a pair of butterfly wings and incorporates bits of red glass into its length. It weighs 3 pounds.\",\r\n\t\">>Magic Weapon<<. In the hands of one who is attuned to it, the vane can be wielded as a magic mace that grants a +3 bonus to attack and damage rolls made with it. In addition, the vane deals an extra 1d8 radiant damage on a hit.\",\r\n\t\">>Sense Mood<<. While the vane is inside the perimeter of the Witchlight Carnival, it can sense the mood of every creature in the carnival that has an Intelligence of 4 or higher. As an action, a creature attuned to the vane can use it to pinpoint the location of the happiest creature in the carnival.\",\r\n\t\"The butterfly shape at the top of the vane spins slowly clockwise when spirits in the carnival are generally high; if the general mood in the carnival is dour, the top of the vane spins slowly counterclockwise.\",\r\n\t\">>Sentience<<. The vane is a sentient, chaotic good wondrous item with an Intelligence of 11, a Wisdom of 14, and a Charisma of 14. It has hearing and normal vision out to a range of 30 feet, and it communicates by transmitting emotion to the creature attuned to it. Its purpose is to make sure everyone in the Witchlight Carnival is having a good time.\",\r\n\t\">>Additional Properties<<. The vane has the following additional properties:\",\r\n\t\"\\u2022 The creature holding the vane has vulnerability to lightning damage.\",\r\n\t\"\\u2022 The creature attuned to the vane can't be blinded, deafened, petrified, or stunned.\",\r\n\t\"\\u2022 While carrying the vane, the creature attuned to it can cast the dancing lights, polymorph, or ray of frost spell as an action, requiring no spell components and using Charisma as the spellcasting ability. After the vane's polymorph spell is cast, roll a d8; on a roll of 3 or 8, the vane can't be used to cast this spell again until the next dawn.\"\r\n];\r\nMagicItemsList[\"witchlight vane\"] = {\r\n\tname : \"Witchlight Vane\",\r\n\tsource : [[\"WBtW\", 27]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a mister light or his handpicked successor\",\r\n\tdescription : \"I can use this sentient ornate rod as a +3 mace that deals an extra 1d8 radiant damage on a hit. It can sense the mood of every creature in the carnival. As an action, I can pinpoint the happiest in the carnival. I can use it to cast spells. I can't be blinded, deafened, petrified, or stunned. See Notes page.\",\r\n\tdescriptionLong : \"This sentient ornate rod is topped by a pair of butterfly wings and incorporates bits of red glass into its length. I can use it as a +3 mace that deals an extra 1d8 radiant damage on a hit. It can sense the mood of every creature in the carnival. As an action, I can use it to pinpoint the happiest in the carnival. I can use it to cast Dancing Light, Ray of Frost, and Polymorph. After I use it to cast Polymorph, roll a d8. On a roll of 3 or 8, the vane can't be used to cast Polymorph again until the next dawn. It makes me vulnerable to lightning damage, but I can't be blinded, deafened, petrified, or stunned. See Notes page.\",\r\n\tdescriptionFull : WBtW_Witchlight_Vane_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Witchlight_Vane_Full_Description)\r\n\t}],\r\n\taction : [[\"action\", \" (find happiest)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*witchlight)(?=.*vane).*$/i,\r\n\t\tname : \"Witchlight Vane\",\r\n\t\tsource : [[\"WBtW\", 27]],\r\n\t\tdescription : \"+1d8 radiant damage\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witchlight Vane [Polymorph] (25% chance use)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"dancing lights\", \"ray of frost\"],\r\n\t\tselection : [\"dancing lights\", \"ray of frost\"],\r\n\t}, {\r\n\t\tname : \"See Notes\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : \"SP\"\r\n\t}],\r\n\tsavetxt : {\r\n\t\ttext : [\"Vulnerable to lightning\"],\r\n\t\timmune : [\"blinded\", \"deafened\", \"petrified\", \"stunned\"]\r\n\t}\r\n}\r\nvar WBtW_Witchlight_Watch_Full_Description = [\r\n\t\"This ornate pocket watch is fastened to the end of a gold chain. It glows with a faint golden light when opened, and it makes a soft ticking noise that can be heard only by the creature holding it. The face of the watch shows a miniature painting of the Witchlight Carnival ringed by a tiny henge, orbited at night by a mote of light small enough to slip through the eye of a needle. This light causes the henge to cast shadows, and these shadows allow the watch's owner to track the passage of time.\",\r\n\t\">>Carnival Setup and Takedown<<. The creature attuned to the watch can use an action to initiate the packing up or the unpacking of the Witchlight Carnival, provided the creature and the carnival are on the same plane of existence. In the span of 1 hour, all objects that are elements of the carnival are magically whisked about until everything is packed up and ready for travel, or unpacked and assembled. The watch has no effect on creatures, which can move about freely and safely while the carnival is being set up or taken down. Once the process of packing up or unpacking the carnival begins, it can't be stopped until the task is complete. When the watch is used to pack up or unpack the carnival, this property cannot be used again until 8 hours have elapsed.\",\r\n\t\">>Additional Properties<<. The pocket watch has the following additional properties:\",\r\n\t\"\\u2022 While carrying the watch, the creature attuned to it can cast the fire bolt, invisibility, or message spell as an action, requiring no spell components and using Intelligence as the spellcasting ability. After the watch's invisibility spell is cast, roll a d8; on a roll of 3 or 8, the watch can't be used to cast this spell again until the next dawn.\",\r\n\t\"\\u2022 The creature attuned to the watch gains 30 pounds. This extra weight vanishes when the attunement ends.\",\r\n\t\"\\u2022 The creature attuned to the watch must eat and drink eight times the normal amount each day.\"\r\n];\r\nMagicItemsList[\"witchlight watch\"] = {\r\n\tname : \"Witchlight Watch\",\r\n\tsource : [[\"WBtW\", 25]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a mister witch or his handpicked successor\",\r\n\tdescription : \"As an action once per 8 hours, I can use this ornate pocket watch to initiate the (un)packing of the carnival over the next hour. I can use it to cast Fire Bolt, Message, and Invisibility. After it casts Invisibility, I roll a d8. On a roll of 3 or 8, I can't cast this again until the next dawn. See Notes page.\",\r\n\tdescriptionLong : \"This ornate pocket watch is fastened to the end of a gold chain and glows with a faint golden light when opened. As an action once per 8 hours, I can use this ornate pocket watch to initiate the (un)packing of the carnival over the next hour, provided the carnival and I are on the same plane of existence. I can use it to cast Fire Bolt, Message, and Invisibility. After I use it to cast Invisibility, roll a d8. On a roll of 3 or 8, it can't be used to cast Invisibility again until the next dawn. As long as I'm attuned to it, I'm 30 lb heavier and must eat and drink eight times the normal amount each day. See Notes page.\",\r\n\tdescriptionFull : WBtW_Witchlight_Watch_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Witchlight_Watch_Full_Description, true)\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witchlight Watch [initiate (un)packing]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"8 hrs\"\r\n\t}, {\r\n\t\tname : \"Witchlight Watch [Invisibility] (25% chance use)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\taction : [[\"action\", \" [initiate (un)packing]\"]],\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"fire bolt\", \"message\"],\r\n\t\tselection : [\"fire bolt\", \"message\"],\r\n\t}, {\r\n\t\tname : \"See Notes\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"SP\"\r\n\t}],\r\n}\r\n// Beasts\r\nCreatureList[\"giant swan\"] = { // a giant eagle except that it has no talons, can attack twice with its beak as an action, and speaks Common and Auran\r\n\tname : \"Giant Swan\",\r\n\tnameAlt : [\"Swan, Giant\"],\r\n\tsource : [[\"WBtW\", 38]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Neutral Good\",\r\n\tac : 13,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, fly 80 ft\",\r\n\tscores : [16, 17, 13, 8, 14, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"Common and Auran\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Beak\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two beak attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the swan can make two Beak attacks.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The swan has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}]\r\n}\r\nCreatureList[\"giant dragonfly\"] = {\r\n\tname : \"Giant Dragonfly\",\r\n\tnameAlt : [\"Dragonfly, Giant\"],\r\n\tsource : [[\"WBtW\", 234]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 16,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [15, 18, 11, 3, 10, 3],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Drone\",\r\n\t\tdescription : \"When it beats its wings, the dragonfly emits a loud droning sound that can be heard out to a range of 120 ft.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Uncanny Dodge\",\r\n\t\tdescription : \"As a reaction, the dragonfly can halve the damage it takes from an attack made against it, provided it can see the attacker.\"\r\n\t}]\r\n}\r\nCreatureList[\"giant snail\"] = {\r\n\tname : \"Giant Snail\",\r\n\tnameAlt : [\"Snail, Giant\"],\r\n\tsource : [[\"WBtW\", 234]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, climb 10 ft\",\r\n\tscores : [15, 3, 11, 3, 10, 3],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Salt Osmosis\",\r\n\t\tdescription : \"Whenever the snail starts its turn in contact with a pound or more of salt, it takes 1d4 necrotic damage. Using an action to sprinkle a pound of salt on the snail deals 1d4 necrotic damage to it immediately and another 1d4 necrotic damage to it at the start of its next turn (after which the salt rubs off), provided the snail has not withdrawn into its shell.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Shell Defense\",\r\n\t\tdescription : \"As an action, the snail withdraws into its shell, gaining a +4 bonus to its AC until it emerges. It can emerge from its shell as a bonus action on its turn.\"\r\n\t}]\r\n}\r\n\n// pub_20211019_FToD.js\r\n// This file adds all the player-material from Fizban's Treasury of Dragons to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.FToD = {\r\n\tname : \"Fizban's Treasury of Dragons\",\r\n\tabbreviation : \"FToD\",\r\n\tabbreviationSpellsheet : \"FD\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/treasury-dragons\",\r\n\tdate : \"2021/10/19\"\r\n};\r\n\r\n// Races\r\nvar FToD_dragonborns_add = function () { // New dragonborn variants\r\n\tvar objDragonborns = {\r\n\t\tChromatic : {\r\n\t\t\tregExpSearch : /^(?=.*chromatic)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 10]],\r\n\t\t\tvariants : [[\"Black\", \"Acid\"], [\"Blue\", \"Lightning\"], [\"Green\", \"Poison\"], [\"Red\", \"Fire\"], [\"White\", \"Cold\"]],\r\n\t\t\tbreathWeaponShape : \"5-ft by 30-ft line\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 5-ft by 30-ft line, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest. The damage increases with +1d10 at 5th, 11th, and 17th level.\",\r\n\t\t\t\t\"Chromatic Warding: From 5th level, I can protect myself using my draconic energies. As an action once per long rest, I can become immune to >>type<< damage for 1 minute.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"chromatic warding\" : {\r\n\t\t\t\t\tname : \"Chromatic Warding\",\r\n\t\t\t\t\tsource : [[\"FToD\", 10]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tGem : {\r\n\t\t\tregExpSearch : /^(?=.*gem)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 11]],\r\n\t\t\tvariants : [[\"Amethyst\", \"Force\"], [\"Crystal\", \"Radiant\"], [\"Emerald\", \"Psychic\"], [\"Sapphire\", \"Thunder\"], [\"Topaz\", \"Necrotic\"]],\r\n\t\t\tbreathWeaponShape : \"15-ft cone\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Prof Bonus). I can do this my Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus per long rest.\",\r\n\t\t\t\t\"Psionic Mind: \" + (typePF ? \"I can send telepathic messages to any creature I can see within 30 ft that understands at least one language.\" : \"I can telepathically message a creature with a language I can see in 30 ft.\"),\r\n\t\t\t\t\"Gem Flight: From 5th level, I can manifest spectral wings. As a bonus action once per long rest, I can gain, for 1 minute, a flying speed equal to my walking speed and can hover.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"gem flight\" : {\r\n\t\t\t\t\tname : \"Gem Flight\",\r\n\t\t\t\t\tsource : [[\"FToD\", 11]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tMetallic : {\r\n\t\t\tregExpSearch : /^(?=.*metallic)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\tvariants : [[\"Brass\", \"Fire\"], [\"Bronze\", \"Lightning\"], [\"Copper\", \"Acid\"], [\"Gold\", \"Fire\"], [\"Silver\", \"Cold\"]],\r\n\t\t\tbreathWeaponShape : \"15-ft cone\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus). I can do this my Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus per long rest.\",\r\n\t\t\t\t\"Metallic Breath Weapon: At 5th level I gain a second breath weapon once per long rest, that works just like the first, but I choose the effect when I use it: Enervating: Con save or incapacitated until my next turn starts. Repulsion: Str save or pushed 20 ft and prone.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"metallic breath weapon\" : {\r\n\t\t\t\t\tname : \"Metallic Breath Weapon\",\r\n\t\t\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\t\tregExpSearch : /^(?=.*metallic)(?=.*breath)(?=.*weapon).*$/i,\r\n\t\t\t\t\t\tname : \"Metallic breath weapon\",\r\n\t\t\t\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\t\t\t\tability : 3,\r\n\t\t\t\t\t\ttype : 'Natural',\r\n\t\t\t\t\t\tdamage : ['Enervating', '', 'or Repulsion'],\r\n\t\t\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\t\t\tdescription : \"Repulsion: Str save or pushed 20 ft \\u0026 prone; Enervating: Con save or incapacitated till my next turn starts\",\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\tdc : true,\r\n\t\t\t\t\t\tselectNow : true\r\n\t\t\t\t\t}]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tfor (var sDrBrn in objDragonborns) {\r\n\t\tvar sDrBrnLC = sDrBrn.toLowerCase();\r\n\t\tvar oDrBrn = objDragonborns[sDrBrn];\r\n\t\tRaceList[sDrBrnLC + \" dragonborn\"] = {\r\n\t\t\tregExpSearch : oDrBrn.regExpSearch,\r\n\t\t\tname : sDrBrn + \" Dragonborn\",\r\n\t\t\tsortname : \"Dragonborn, \" + sDrBrn,\r\n\t\t\tsource : oDrBrn.source,\r\n\t\t\tplural : sDrBrn + \" Dragonborn\",\r\n\t\t\tsize : 3,\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t\t},\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\t\t\tname : \"Breath weapon\",\r\n\t\t\t\tsource : oDrBrn.source,\r\n\t\t\t\tability : 3,\r\n\t\t\t\ttype : 'Natural',\r\n\t\t\t\tdamage : ['C', 10, 'fire'],\r\n\t\t\t\trange : oDrBrn.breathWeaponShape.replace('by', '\\xD7'),\r\n\t\t\t\tdescription : \"Hits all in area; Dex save, success - half damage\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tdbBreathWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\t\tscoresGeneric : true,\r\n\t\t\ttrait : sDrBrn + \" Dragonborn\"+\r\n\t\t\t\t\"\\n \\u2022 \" + sDrBrn + ' Ancestry: Choose a type of dragon using the \"Racial Options\" button. The damage type of my resistance and my breath weapon are determined by the dragon type chosen.'+\r\n\t\t\t\t+ oDrBrn.trait.replace(/>>type<< /ig, \"\"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"breath weapon\" : {\r\n\t\t\t\t\tname : \"Breath Weapon\",\r\n\t\t\t\t\tminlevel : 1,\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tadditional : cantripDie.map(function (n) {\r\n\t\t\t\t\t\treturn n + 'd10';\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && /dragonborn/i.test(CurrentRace.known) && CurrentRace.dmgres) {\r\n\t\t\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.dmgres[0];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t'',\r\n\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tvariants : []\r\n\t\t};\r\n\t\tif (oDrBrn.features) {\r\n\t\t\tfor (var sFea in oDrBrn.features) {\r\n\t\t\t\tRaceList[sDrBrnLC + \" dragonborn\"].features[sFea] = oDrBrn.features[sFea];\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (var i = 0; i < oDrBrn.variants.length; i++) {\r\n\t\t\tvar sDrBrnVar = oDrBrn.variants[i][0];\r\n\t\t\tvar sDrBrnDmg = oDrBrn.variants[i][1];\r\n\t\t\tAddRacialVariant(sDrBrnLC + \" dragonborn\", sDrBrnVar.toLowerCase(), {\r\n\t\t\t\tregExpSearch : RegExp(sDrBrnVar, \"i\"),\r\n\t\t\t\tname : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\",\r\n\t\t\t\ttrait : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\"+\r\n\t\t\t\t\toDrBrn.trait.replace(/>>TYPE<</g, sDrBrnDmg).replace(/>>type<</g, sDrBrnDmg.toLowerCase()),\r\n\t\t\t\tdmgres : [sDrBrnDmg]\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}();\r\n\r\n// Subclasses\r\nAddSubClass(\"monk\", \"ascendant dragon\", {\r\n\tregExpSearch : /^(?=.*ascendant)(?=.*(dragon|draconic))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Ascendant Dragon\",\r\n\tsubnameShort: \"Ascendant Dragon\",\r\n\tsource : [[\"FToD\", 13]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Disciple\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn to speak, read, and write Draconic or one other language of my choice\",\r\n\t\t\t\t\"I can change the damage type of my unarmed strikes to acid, cold, fire, lightning, poison\",\r\n\t\t\t\t\"As a reaction when I fail an Intimidation or Persuasion check, I can reroll the check\",\r\n\t\t\t\t\"If this reroll turns the check into a success, I can't do so again until I finish a long rest\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [[\"Draconic or other\", 1]],\r\n\t\t\taction : [[\"reaction\", \" (reroll check)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reroll\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"Change type to acid/cold/fire/lightning/poison\";\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I damage a target with an unarmed strike, I can change the damage type to acid, cold, fire, lightning or poison.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"breath of the dragon\" : {\r\n\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\textraname : \"Ascendant Dragon 3\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar iMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"When I take the Attack action on my turn, I can replace one attack with a breath weapon\",\r\n\t\t\t\t\t\t\"This deals \" + (n < 11 ? 2 : 3) + \"d\" + iMonkDie + \" acid, cold, fire, lightning, or poison (my choice) damage to all in the area\",\r\n\t\t\t\t\t\t\"The area can be a 20-ft cone or a 5-ft wide, 30-ft line; Dex save to halve the damage\",\r\n\t\t\t\t\t\t\"I can do this my Proficiency Bonus times per long rest, or by expending 2 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, I can expend 1 (extra) ki point when I use this feature to augment it\",\r\n\t\t\t\t\t\t\"The damage increases to 4d\" + iMonkDie + \" and the area to a 60-ft cone or a 5-ft wide, 90-ft line\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : \"Prof B. per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"2 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 11 ? 2 : 3) + \"d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon).*$/i,\r\n\t\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\ttype : \"Natural\",\r\n\t\t\t\t\tdamage : [2, 4, \"My choice\"],\r\n\t\t\t\t\trange : \"5-ft \\xD7 30-ft line\",\r\n\t\t\t\t\tdescription : \"All in area; Dex save for half damage; Alt: 20-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmonkweapon : false,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tWotAD_BreathWeapon : true,\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && v.theWea.WotAD_BreathWeapon) {\r\n\t\t\t\t\t\t\t\tvar n = classes.known.monk.level;\r\n\t\t\t\t\t\t\t\tvar aMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = (v.theWea.WotAD_BreathWeaponAugmented ? 4 : n < 11 ? 2 : 3) + \"d\" + aMonkDie;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My Breath of the Dragon deals damage equal to two rolls of my Martials Arts die. At 11th level, this increases to three rolls of my Martial Arts die. At 17th level, I can expend 1 ki point to augment the breath to increase the damage to four rolls of my Martial Arts die.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"breath of the dragon\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wings Unfurled\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Step of the Wind, I can gain a flying speed equal to my walking speed\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\"aspect of the wyrm\" : {\r\n\t\t\t\tname : \"Aspect of the Wyrm\",\r\n\t\t\t\textraname : \"Ascendant Dragon 11\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"As a bonus action, I can activate a 10 ft aura for 1 minute that grants me one benefit:\",\r\n\t\t\t\t\t\t\" \\u2022 My allies in the aura and I gain resistance to acid, cold, fire, lightning, or poison damage\",\r\n\t\t\t\t\t\t\" \\u2022 When I create this aura and as a bonus action while it is active, I can frighten a creature\",\r\n\t\t\t\t\t\t\"      One creature must make a Wisdom save or become frightened of me for 1 minute\",\r\n\t\t\t\t\t\t\"      It can repeat the save at the end of each of its turns, ending the effect on a success\",\r\n\t\t\t\t\t\t\"I can activate this aura once per long rest, or by expending 3 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, when I active this, I can choose any creatures I can see in the aura\",\r\n\t\t\t\t\t\t\"Each must then make a Dex save or take 3d10 acid, cold, fire, lightning, or poison damage\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"3 ki\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"aspect of the wyrm\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Ascendant Aspect\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I gain 10 ft blindsight and both Breath of the Dragon and Aspect of the Wyrm improve\"),\r\n\t\t\tvision : [[\"blindsight\", 10]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon)(?=.*augment).*$/i,\r\n\t\t\t\tname : \"Breath of the Dragon (Augmented)\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [4, 10, \"My choice\"],\r\n\t\t\t\trange : \"5-ft \\xD7 90-ft line\",\r\n\t\t\t\tdescription : \"[1 ki] All in area; Dex save for half damage; Alt: 60-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tmonkweapon : false,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tWotAD_BreathWeapon : true,\r\n\t\t\t\tWotAD_BreathWeaponAugmented : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nvar FToD_Ranger_Subclass_Drakewarden = AddSubClass(\"ranger\", \"drakewarden\", {\r\n\tregExpSearch : /^(?=.*(drake|dragon|draconic))(?=.*(warden|ranger|trainer)).*$/i,\r\n\tsubname : \"Drakewarden\",\r\n\tsource : [[\"FToD\", 15]],\r\n\tfullname : \"Drakewarden\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Gift\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Draconic language and the Thaumaturgy cantrip\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Draconic Gift\",\r\n\t\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drake Companion\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon my drake to appear in an empty space within 30 ft\",\r\n\t\t\t\t'Select a \"Drake Companion\" on the companion page for its stats and rules',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \" (summon)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\tcreaturesAdd : [[\"Drake Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Drake Companion\",\r\n\t\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Dragon\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : \"14+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [3, 10],\r\n\t\t\t\thdLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tminlevelLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [16, 12, 15, 8, 14, 8],\r\n\t\t\t\tsaves : [\"\", 3, \"\", \"\", 4, \"\"],\r\n\t\t\t\tdamage_immunities : \"the chosen Draconic Essence damage type\",\r\n\t\t\t\tsenses : \"Darkvision 40 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"Draconic\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\", //+1d6 damage of the chosen Draconic Essense type\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Warden\",\r\n\t\t\t\t\tdescription : \"The drake obeys the commands of its warden and shares its proficiency bonus. It takes its turn immediately after that of its warden, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its warden takes a bonus action to command it to take another action. If its warden is incapacitated, the drake can take any action, not just Dodge. The drake vanishes when it is reduced to 0 hit points, when its warden summons another drake, or when its warden dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Draconic Essence\",\r\n\t\t\t\t\tdescription : \"Chosen when summoned: acid, cold, fire, lightning, or poison damage.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infused Strikes\",\r\n\t\t\t\t\tdescription : \"As a reaction when another creature within 30 ft of the drake that it can see hits with a weapon attack, the drake can infuse the strike with its essence, causing the attack to deal an extra 1d6 damage of its chosen Draconic Essence damage type\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Bond of Fang and Scale (Drakewarden 7)\",\r\n\t\t\t\t\tminlevel : 7,\r\n\t\t\t\t\tdescription : \"The drake is now Medium and can be ridden as a mount. It has a flying speed equal to its walking speed, but can't fly with a rider on its back. The drake's bite deals an extra 1d6 damage of its chosen Draconic Essence type.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t\tAddString(prefix + \"Comp.Use.Attack.1.Description\", \"+1d6 damage of the chosen Draconic Essense type\");\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, ''));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 4); // Small\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Perfected Bond (Drakewarden 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The drake is now Large and can fly while its being ridden. Its bite attack deals an extra 1d6 damage (for a total of +2d6) of its chosen Draconic Essence type.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, '+2d6 damage of the chosen Draconic Essense type'));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, '+1d6 damage of the chosen Draconic Essense type'));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.ranger && !classes.known.rangerua) return;\r\n\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\tvar rngrLvlM = 5 * rngrLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + rngrLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 as a base\\n + 5 \\xD7 \" + rngrLvl + \" from five times its warden's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Bond of Fang and Scale\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Medium, has a 40 ft fly speed, and can be ridden, but not while flying\",\r\n\t\t\t\t\"The drake's bite attack deals an extra 1d6 damage chosen by its Draconic Essense\",\r\n\t\t\t\t\"While it is summoned, I gain resistance to the damage type of its Draconic Essense\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"(See Drake)\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drake's Breath\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause my drake or myself to exhale a 30-ft cone breath weapon\",\r\n\t\t\t\t\"Its damage type is acid, cold, fire, lightning, or poison; Dex save to halve the damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : (n < 15 ? 8 : 10) + \"d6 damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*drake)(?=.*breath).*$/i,\r\n\t\t\t\tname : \"Drake's Breath\",\r\n\t\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [8, 6, \"My choice\"],\r\n\t\t\t\trange : \"30-ft cone\",\r\n\t\t\t\tdescription : \"Hits all in area; Dex save for half damage; Damage type: acid, cold, fire, lightning, or poison\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tDrakewardenDrakeBreath : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.DrakewardenDrakeBreath && (classes.known.rangerua || classes.known.ranger)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Damage_Die = (rngrLvl < 15 ? 8 : 10) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\",\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Perfected Bond\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Large, can serve as a mount, and adds another +1d6 damage to its bite\",\r\n\t\t\t\t\"As a reaction when the drake or I take damage while within 30 ft of each other,\",\r\n\t\t\t\t\"I can give myself or the drake resistance to that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reaction\"\r\n\t\t}\r\n\t}\r\n});\r\n// Add the subclass to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(FToD_Ranger_Subclass_Drakewarden);\r\n};\r\n\r\n// Feats\r\nFeatsList[\"gift of the chromatic dragon\"] = {\r\n\tname : \"Gift of the Chromatic Dragon\",\r\n\tsource : [[\"FToD\", 17], [\"UA:DO\", 4]],\r\n\tdescriptionFull : \"You've manifested some of the power of chromatic dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Chromatic Infusion\") + \". As a bonus action, you can touch a simple or martial weapon and infuse it with one of the following damage types: acid, cold, fire, lightning, or poison. For the next minute, the weapon deals an extra 1d4 damage of the chosen type when it hits. After you use this bonus action, you can't do so again until you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Reactive Resistance\") + \". When you take acid, cold, fire, lightning, or poison damage, you can use your reaction to give yourself resistance to that instance of damage. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"As a bonus action once per long rest, I can touch a simple or martial weapon and infuse it to deal +1d4 acid, cold, fire, poison, or lightning damage for 1 minute. As a reaction when I take acid, cold, fire, lightning, or poison damage, I can gain resistance to that damage instance. I can do this my Prof Bonus per long rest.\",\r\n\taction : [\r\n\t\t[\"bonus action\", \"Chromatic Gift (Chromatic Infusion)\"],\r\n\t\t[\"reaction\", \"Chromatic Gift (Reactive Resistance)\"]\r\n\t],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Chromatic Gift (Chromatic Infusion)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}, {\r\n\t\tname : \"Chromatic Gift (Reactive Resistance)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"gift of the gem dragon\"] = {\r\n\tname : \"Gift of the Gem Dragon\",\r\n\tsource : [[\"FToD\", 17], [\"UA:DO\", 5]],\r\n\tdescriptionFull : \"You've manifested some of the power of gem dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Telekinetic Reprisal\") + \". When you take damage from a creature that is within 10 feet of you, you can use your reaction to emanate telekinetic energy. The creature that dealt damage to you must make a Strength saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the creature takes 2d8 force damage and is pushed up to 10 feet away from you. On a successful save, the creature takes half as much damage and isn't pushed. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"As a reaction when I take damage from a creature that is within 10 ft, I can have it take 2d8 force damage and push it up to 10 ft away. If it succeeds on a Str save (DC 8 + Prof Bonus + chosen ability score modifier), it halves the damage and isn't pushed. I can do this my Prof Bonus per long rest. [+1 Int, Wis or Cha]\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + ( 8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod')) ) + ' (8 + Prof Bonus + Int mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Intelligence]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Wisdom]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Charisma]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"gift of the metallic dragon\"] = {\r\n\tname : \"Gift of the Metallic Dragon\",\r\n\tsource : [[\"FToD\", 17]],\r\n\tdescriptionFull : \"You've manifested some of the power of metallic dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Draconic Healing\") + \". You learn the cure wounds spell. You can cast this spell without expending a spell slot. Once you cast this spell in this way, you can't do so again until you finish a long rest. You can also cast this spell using spell slots you have. The spell's spellcasting ability is Intelligence, Wisdom, or Charisma when you cast it with this feat (choose when you gain the feat).\"+\r\n\t\"\\n   \" + toUni(\"Protective Wings\") + \". You can manifest protective wings that can shield you or others. When you or another creature you can see within 5 feet of you is hit by an attack roll, you can use your reaction to manifest spectral wings from your back for a moment. You grant a bonus to the target's AC equal to your proficiency bonus against that attack roll, potentially causing it to miss. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I know Cure Wounds. I can cast it using spell slots and once per long rest without a spell slot. As a reaction when I or another I can see within 5 ft is hit by an attack, I can add my Proficiency Bonus to AC, potentially causing the attack to miss. I can do this my Proficiency Bonus per long rest.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tallowUpCasting : true,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Cure Wounds\",\r\n\t\tspells : [\"cure wounds\"],\r\n\t\tselection : [\"cure wounds\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\taction : [[\"reaction\", \"Metallic Gift (Protective Wings)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Metallic Gift (Protective Wings)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\n\r\n// Spells\r\nSpellsList[\"ashardalon's stride\"] = { // contains contributions by Nod_Hero (Flame Stride in UA:DO)\r\n\tname : \"Ashardalon's Stride\",\r\n\tnameAlt : \"Flame Stride\",\r\n\tclasses : [\"artificer\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 19], [\"UA:DO\", 6]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"+20+5/SL ft speed; provoke no opp atks for moving; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionShorter : \"+20+5/SL ft spd; no opp atks with move; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionMetric : \"+6+1,5/SL m spd; provoke no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionShorterMetric : \"+6+1,5/SL m spd; no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionFull : \"The billowing flames of a dragon blast from your feet, granting you explosive speed. For the duration, your speed increases by 20 feet and moving doesn't provoke opportunity attacks.\"+\r\n\t\"\\n   When you move within 5 feet of a creature or an object that isn't being worn or carried, it takes 1d6 fire damage from your trail of heat. A creature or object can take this damage only once during a turn.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, increase your speed by 5 feet for each spell slot level above 3rd. The spell deals an additional 1d6 fire damage for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"draconic transformation\"] = {\r\n\tname : \"Draconic Transformation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 19]],\r\n\tlevel : 7,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"S:60\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A statuette of a dragon, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Blindsight 30 ft; 60 ft fly speed; at cast and 1 bns: 60-ft cone all 6d8 Force damage, save half (500gp)\",\r\n\tdescriptionShorter : \"Blindsight 30 ft; 60 ft fly; at cast and 1 bns: 60-ft cone all 6d8 Force dmg, save half (500gp)\",\r\n\tdescriptionFull : \"With a roar, you draw on the magic of dragons to transform yourself, taking on various draconic features. You gain the following benefits until the spell ends:\"+\r\n\t\"\\n   \" + toUni(\"Blindsight\") + \". You have blindsight with a range of 30 feet. Within that range, you can effectively see anything that isn't behind total cover, even if you're blinded or in darkness. Moreover, you can see an invisible creature, unless the creature successfully hides from you.\"+\r\n\t\"\\n   \" + toUni(\"Breath Weapon\") + \". When you cast this spell, and as a bonus action on subsequent turns for the duration, you can exhale shimmering energy in a 60-foot cone. Each creature in that area must make a Dexterity saving throw, taking 6d8 force damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   \" + toUni(\"Wings\") + \". Incorporeal wings sprout from your back, giving you a flying speed of 60 feet.\"\r\n};\r\nSpellsList[\"fizban's platinum shield\"] = {\r\n\tname : \"Fizban's Platinum Shield\",\r\n\tnameAlt : \"Platinum Shield\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 20]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A platinum-plated dragon scale, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 crea Acid, Cold, Fire, Lightn. \\u0026 Poison resist., half cover, better Dex saves; 1 bns change crea (500gp)\",\r\n\tdescriptionFull : \"You create a field of silvery light that surrounds a creature of your choice within range (you can choose yourself). The field sheds dim light out to 5 feet. While surrounded by the field, a creature gains the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Cover\") + \". The creature has half cover.\"+\r\n\t\"\\n   \" + toUni(\"Damage Resistance\") + \". The creature has resistance to acid, cold, fire, lightning, and poison damage.\"+\r\n\t\"\\n   \" + toUni(\"Evasion\") + \". If the creature is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, the creature instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\"+\r\n\t\"\\n   As a bonus action on subsequent turns, you can move the field to another creature within 60 feet of the field.\"\r\n};\r\nSpellsList[\"nathair's mischief\"] = {\r\n\tname : \"Nathair's Mischief\",\r\n\tnameAlt : \"Mischief\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 20], [\"UA:DO\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A piece of crust from an apple pie\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Var\",\r\n\tdescription : \"20-ft cube of magic, roll d4 for effect; At start of my turn, move cube 10 ft and reroll effect; see book\",\r\n\tdescriptionFull : \"You fill a 20-foot cube you can see within range with fey and draconic magic. Roll on the Mischievous Surge table to determine the magical effect produced, and roll again at the start of each of your turns until the spell ends. You can move the cube up to 10 feet before you roll.\"+\r\n\t\"\\n\\nMischievous Surge\"+\r\n\ttoUni(\"\\nd4\\tEffect\")+\r\n\t\"\\n  1\\tThe smell of apple pie fills the air, and each creature in the cube must succeed on a Wisdom saving throw or become charmed by you until the start of your next turn.\"+\r\n\t\"\\n  2\\tBouquets of flowers appear all around, and each creature in the cube must succeed on a Dexterity saving throw or be blinded until the start of your next turn as the flowers spray water in their faces.\"+\r\n\t\"\\n  3\\tEach creature in the cube must succeed on a Wisdom saving throw or begin giggling until the start of your next turn. A giggling creature is incapacitated and uses all its movement to move in a random direction.\"+\r\n\t\"\\n  4\\tDrops of molasses hover in the cube, making it difficult terrain until the start of your next turn.\"\r\n};\r\nSpellsList[\"raulothim's psychic lance\"] = {\r\n\tname : \"Raulothim's Psychic Lance\",\r\n\tnameAlt : \"Psychic Lance\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea I see or can name 7d6+1d6/SL Psychic dmg \\u0026 incap. till start of my turn; save half, not incap.\",\r\n\tdescriptionShorter : \"1 crea I see or can name 7d6+1d6/SL Psychic dmg \\u0026 incap. for 1 rnd; save half, not incap.\",\r\n\tdescriptionFull : \"You unleash a shimmering lance of psychic power from your forehead at a creature that you can see within range. Alternatively, you can utter a creature's name. If the named target is within range, it becomes the spell's target even if you can't see it. If the named target isn't within range, the lance dissipates without effect.\"+\r\n\t\"\\n   The target must make an Intelligence saving throw. On a failed save, the target takes 7d6 psychic damage and is incapacitated until the start of your next turn. On a successful save, the creature takes half as much damage and isn't incapacitated.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d6 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"rime's binding ice\"] = { // Icingdeath's Frost in UA:DO\r\n\tname : \"Rime's Binding Ice\",\r\n\tnameAlt : \"Binding Ice\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21], [\"UA:DO\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A vial of meltwater\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"All in area 3d8+1d8/SL Cold dmg and speed 0 for 1 min until 1 a to undo; save halves, normal speed\",\r\n\tdescriptionShorter : \"All in area 3d8+1d8/SL Cold dmg \\u0026 spd 0 for 1 min until 1 a to undo; save halves, normal spd\",\r\n\tdescriptionFull : \"A burst of cold energy emanates from you in a 30-foot cone. Each creature in that area must make a Constitution saving throw. On a failed save, a creature takes 3d8 cold damage and is hindered by ice formations for 1 minute, or until it or another creature within reach of it uses an action to break away the ice. A creature hindered by ice has its speed reduced to 0. On a successful save, a creature takes half as much damage and isn't hindered by ice.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, increase the cold damage by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"summon draconic spirit\"] = {\r\n\tname : \"Summon Draconic Spirit\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21], [\"UA:DO\", 7]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"an object with the image of a dragon engraved on it, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Draconic Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (500gp)\",\r\n\tdescriptionFull : \"You call forth a draconic spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Draconic Spirit stat block. When you cast this spell, choose a family of dragon: chromatic, gem, or metallic. The creature resembles a dragon of the chosen family, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\"+\r\n\t\"\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"amethyst lodestone\"] = {\r\n\tname : \"Amethyst Lodestone\",\r\n\tsource : [[\"FToD\", 22]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This \" + (typePF ? \"\" : \"mineral \") + \"grants me adv. on Str saves. It has 6 charges, regain\" + (typePF ? \"s\" : \"ing\") + \" 1d6 at dawn.\"+\r\n\t\t(typePF ? \" \" : \"\\n\") + \"\\u2022 1 charge, bonus action: I gain a fly speed equal to walk speed for 10 min and I can hover.\"+\r\n\t\t(typePF ? \" \\u2022 1 charge, action: a creature I can see in 60 ft makes DC 18 Str save or pushed 20 ft in chosen direction.\" : \"\\n\\u2022 1 charge, action: a creature I can see in 60 ft must make a DC 18 Str save or be pushed up to 20 ft in a direction of my choice.\")+\r\n\t\t\" \\u2022 3 charges, action: I cast Reverse Gravity (DC 18).\",\r\n\tdescriptionFull : \"This fist-sized chunk of amethyst is infused with an amethyst dragon's ability to bend gravitational forces. While you are carrying the lodestone, you have advantage on Strength saving throws.\"+\r\n\t\"\\n   The lodestone has 6 charges for the following properties, which you can use while you are holding the stone. The stone regains 1d6 expended charges daily at dawn.\"+\r\n\t\"\\n   \" + toUni(\"Flight\") + \". As a bonus action, you can expend 1 charge to gain the power of flight for 10 minutes. For the duration, you gain a flying speed equal to your walking speed, and you can hover.\"+\r\n\t\"\\n   \" + toUni(\"Gravitational Thrust\") + \". As an action, you can expend 1 charge to focus gravity around a creature you can see within 60 feet of you. The target must succeed on a DC 18 Strength saving throw or be pushed up to 20 feet in a direction of your choice.\"+\r\n\t\"\\n   \" + toUni(\"Reverse Gravity\") + \". As an action, you can expend 3 charges to cast reverse gravity from the stone (save DC 18).\",\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tfixedDC : 18,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"reverse gravity\"],\r\n\t\tselection : [\"reverse gravity\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tadvantages : [[\"Strength\", true]],\r\n\tsavetxt : { text : [\"Adv. on Str saves\"] },\r\n\taction : [[\"bonus action\", \" (Flight)\"], [\"action\", \" (Grav. Thrust)\"]]\r\n}\r\nMagicItemsList[\"crystal blade\"] = {\r\n\tname : \"Crystal Blade\",\r\n\tsource : [[\"FToD\", 22]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"This magic sword has 3 charges, regaining 1d3 at dawn. It deals an extra 1d8 radiant damage. When it does so to a creature, I can expend 1 charge to heal myself for the same amount. As a bonus action, I can have it start or stop shedding light: either 30 ft bright light and 30 ft dim, or only 10 ft dim.\",\r\n\tdescriptionFull : \"This magic sword's blade is fashioned from a horn or spine from a crystal dragon. When you hit with an attack roll using this sword, the target takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   The sword has 3 charges and regains 1d3 expended charges daily at dawn. When you hit a creature with an attack roll using the sword, you can expend 1 charge to regain a number of hit points equal to the extra radiant damage the sword dealt.\"+\r\n\t\"\\n   While you're holding the sword, you can use a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet, to cause it to shed dim light in a 10-foot radius, or to douse the light.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\titemName1stPage : [\"suffix\", \"Crystal Bladed\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/\\bcrystal bladed?\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d8 radiant damage; 1 charge to heal';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Crystal Blade\" or \"Crystal Bladed\" in a the name of a sword, it will be treated as the magic weapon Crystal Blade. The sword deals an extra 1d8 radiant damage and when it does so, I can expend 1 of its charges to heal me for the same amount.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"dragonhide belt, +1, +2, or +3\"] = {\r\n\tname : \"Dragonhide Belt, +1, +2, or +3\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a bonus to the save DCs of my ki features determined by its rarity: uncommon (+1), rare (+2), or very rare (+3). As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. I can't use this action again until the next dawn.\",\r\n\tdescriptionFull : \"This finely detailed belt is made of dragonhide. While wearing it, you gain a bonus to the saving throw DCs of your ki features. The bonus is determined by the belt's rarity: uncommon (+1), rare (+2), or very rare (+3). In addition, you can use an action to regain ki points equal to a roll of your Martial Arts die. You can't use this action again until the next dawn.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a monk\",\r\n\tprereqeval : function(v) { return classes.known.monk ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regain ki points\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"+1 to ki save DCs (uncommon)\", \"+2 to ki save DCs (rare)\", \"+3 to ki save DCs (very rare)\"],\r\n\t\"+1 to ki save dcs (uncommon)\" : {\r\n\t\tname : \"Dragonhide Belt +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +1 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 1, text : \"I gain a +1 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +1 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to ki save dcs (rare)\" : {\r\n\t\tname : \"Dragonhide Belt +2\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +2 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 2, text : \"I gain a +2 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +2 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to ki save dcs (very rare)\" : {\r\n\t\tname : \"Dragonhide Belt +3\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +3 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 3, text : \"I gain a +3 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +3 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"dragonlance\"] = {\r\n\tname : \"Dragonlance\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"weapon (lance or pike)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\tdescriptionFull : \"A dragonlance is a renowned weapon forged from rare metal with the aid of powerful artifacts associated with Bahamut. Different lances are forged for use by foot soldiers (as pikes) and by riders (as lances), but the magical properties of the weapons are the same.\"+\r\n\t\"\\n   You gain a +3 bonus to attack and damage rolls made with this magic weapon.\"+\r\n\t\"\\n   When you hit a Dragon with this weapon, the Dragon takes an extra 3d6 force damage, and any Dragon of your choice that you can see within 30 feet of you can immediately use its reaction to make a melee attack.\",\r\n\tchoices : [\"A lance for riders\", \"A pike for foot soldiers\"],\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\t\"a lance for riders\" : {\r\n\t\tname : \"Dragonlance (for riders)\",\r\n\t\tdescription : \"This magic lance forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"lance\",\r\n\t\t\tregExpSearch : /dragonlance/i,\r\n\t\t\tname : \"Dragonlance\",\r\n\t\t\tsource : [[\"FToD\", 23]],\r\n\t\t\tdescription : \"Reach, disadv. within 5 ft, two-handed if not mounted; +3d6 force damage vs. dragons\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"a pike for foot soldiers\" : {\r\n\t\tname : \"Dragonlance (for foot soldiers)\",\r\n\t\tdescription : \"This magic pike forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"pike\",\r\n\t\t\tregExpSearch : /^(?=.*dragonlance)(?=.*pike).*$/i,\r\n\t\t\tname : \"Dragonlance (pike)\",\r\n\t\t\tsource : [[\"FToD\", 23]],\r\n\t\t\tdescription : \"Heavy, reach, two-handed; +3d6 force damage vs. dragons\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"dragon wing bow\"] = function () {\r\n\tvar obj = {\r\n\t\tname : \"Dragon Wing Bow\",\r\n\t\tsource : [[\"FToD\", 23]],\r\n\t\ttype : \"weapon (any bow)\",\r\n\t\trarity : \"rare\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This magic bow has limb tips shaped like dragon wings and is infused with the essence of a dragon's breath. Attacks made with it deal an extra 1d6 damage of the dragon's type. When I pull back the string without ammo loaded in it, the weapon creates its own that lasts until it hits or misses a target.\",\r\n\t\tdescriptionFull : \"The limb tips of this magic bow are shaped like a dragon's wings, and the weapon is infused with the essence of a chromatic, gem, or metallic dragon's breath. When you hit with an attack roll using this magic bow, the target takes an extra 1d6 damage of the same type as the breath infused in the bow\\u2014acid, cold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder.\"+\r\n\t\t\"\\n   If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you pull back the string. The ammunition created by the bow vanishes the instant after it hits or misses a target.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"bow\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\tvar testRegex = /bow/i;\r\n\t\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon || !v.isRangedWeapon || !/bow/i.test(v.baseWeaponName) || !/\\bdragon wing\\b/i.test(v.WeaponTextName)) return;\r\n\t\t\t\t\tvar oBowUse = false;\r\n\t\t\t\t\tfor (var i = 0; i < CurrentMagicItems.known.length; i++) {\r\n\t\t\t\t\t\tif (CurrentMagicItems.known[i] !== \"dragon wing bow\") continue;\r\n\t\t\t\t\t\tvar oBow = MagicItemsList[\"dragon wing bow\"][CurrentMagicItems.choices[i]];\r\n\t\t\t\t\t\t// see if this one matches\r\n\t\t\t\t\t\tif (oBow && oBow.dragonWingBowDragonType && v.WeaponTextName.toLowerCase().indexOf(oBow.dragonWingBowDragonType) !== -1) oBowUse = oBow;\r\n\t\t\t\t\t\t// save the first one found in case none match(ed)\r\n\t\t\t\t\t\tif (oBowUse === false) oBowUse = oBow;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (oBowUse) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 ' + oBowUse.dragonWingBowDmgType + ' damage; Creates own ammo';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Dragon Wing\" and a dragon type in the name of a bow, it will be treated as the magic weapon Dragon Wing Bow. The bow deals an extra 1d6 damage of the type of its associated dragon. It also requires no ammunition, creating its own if fired without loading ammunition.'\r\n\t\t\t]\r\n\t\t},\r\n\t\tchoices : [],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true\r\n\t};\r\n\tvar aDragons = [[\"Black\", \"acid\"], [\"Blue\", \"lightning\"], [\"Green\", \"poison\"], [\"Red\", \"fire\"], [\"White\", \"cold\"], [\"Amethyst\", \"force\"], [\"Crystal\", \"radiant\"], [\"Emerald\", \"psychic\"], [\"Sapphire\", \"thunder\"], [\"Topaz\", \"necrotic\"], [\"Brass\", \"fire\"], [\"Bronze\", \"lightning\"], [\"Copper\", \"acid\"], [\"Gold\", \"fire\"], [\"Silver\", \"cold\"]];\r\n\tvar aVowels = [\"a\", \"e\"];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i][0];\r\n\t\tvar sDragonLC = sDragon.toLowerCase();\r\n\t\tvar sDmg = aDragons[i][1];\r\n\t\tvar sNameTest = sDragon + \" Dragon Wing\";\r\n\t\tvar sNameFull = sNameTest + \" Bow\";\r\n\t\tvar sNameChoice = sDragon + \" dragon (\" + sDmg + \")\";\r\n\t\tvar sAorAn = aVowels.indexOf(sDragon[0].toLowerCase()) === -1 ? \"a \" : \"an \";\r\n\t\tobj.choices.push(sNameChoice);\r\n\t\tobj[sNameChoice.toLowerCase()] = {\r\n\t\t\tname : sNameFull,\r\n\t\t\tnameTest : sNameTest,\r\n\t\t\tdescription : \"This magic bow has limb tips shaped like dragon wings and is infused with the essence of \" + sAorAn + sDragonLC + \" dragon's breath. Attacks made with it deal an extra 1d6 \" + sDmg + \" damage. When I pull back the string without ammunition loaded in it, the weapon creates its own that lasts until it hits or misses a target.\",\r\n\t\t\tdragonWingBowDmgType : sDmg,\r\n\t\t\tdragonWingBowDragonType : sDragonLC\r\n\t\t}\r\n\t}\r\n\treturn obj;\r\n}();\r\nMagicItemsList[\"emerald pen\"] = {\r\n\tname : \"Emerald Pen\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"This pen is tipped with an emerald nib and requires no ink to write. While holding this pen, I can cast Illusory Script at will, requiring no material components.\",\r\n\tdescriptionFull : \"This pen is tipped with an emerald nib and requires no ink to write. While holding this pen, you can cast illusory script at will, requiring no material components.\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"illusory script\"],\r\n\t\tselection : [\"illusory script\"],\r\n\t\tfirstCol : \"atwill\",\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"illusory script\" : {\r\n\t\t\tritual : false,\r\n\t\t\tchanges : \"Using the Emerald Pen, I can cast Illusory Script at will without requiring material components. Thus, the Ritual tag is removed.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"flail of tiamat\"] = {\r\n\tname : \"Flail of Tiamat\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"weapon (flail)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical flail adds a +3 bonus to its attack and damage rolls and deals +5d4 damage. As an action once per dawn, I can have it breathe flames in a 90-ft cone that deals 14d6 damage, Dex save DC 18 to halve. Damage type is acid, cold, fire, lightning, or poison, which I can choose when I deal the damage (cone or hit).\",\r\n\tdescriptionFull : \"This magic flail is made in the image of Tiamat, with five jagged heads shaped like the heads of five different chromatic dragons. You gain a +3 bonus to attack and damage rolls made with this flail. When you hit with an attack roll using it, the target takes an extra 5d4 damage of your choice of one of the following damage types: acid, cold, fire, lightning, or poison.\"+\r\n\t\"\\n   While holding the flail, you can use an action and speak a command word to cause the heads to breathe multicolored flames in a 90-foot cone. Each creature in that area must make a DC 18 Dexterity saving throw. On a failed save, it takes 14d6 damage of one of the following damage types (your choice): acid, cold, fire, lightning, or poison. On a successful save, it takes half as much damage. Once this action is used, it can't be used again until the next dawn.\",\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Breathe Flames\",\r\n\taction : [[\"action\", \" (Breathe Flames)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*flail)(?=.*tiamat).*$/i,\r\n\t\tname : \"Flail of Tiamat\",\r\n\t\tsource : [[\"FToD\", 23]],\r\n\t\tdescription : \"+5d4 acid, cold, fire, lightning, or poison damage\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nAddFeatureChoice(MagicItemsList[\"figurine of wondrous power\"], false, \"Gold Canary\", {\r\n\tsource : [[\"FToD\", 23]],\r\n\trarity : \"legendary\",\r\n\tdescription : \"As an action, I can speak the command word and throw this statuette to an empty space within 60 ft, where it becomes a giant canary for 8 hours (or once a year an adult gold dragon for 1 hour), until I use the command again, or it drops to 0 hp. It is friendly, understands my languages, and obeys my commands.\",\r\n\tdescriptionLong : \"As an action, I can speak the command word and throw this gold statuette of a canary to an unoccupied space within 60 ft, where it becomes a giant canary for up to 8 hours, until I use an action to repeat the command word, or it reaches 0 HP. It is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. Once per year, I can have it become an adult gold dragon for up to 1 hour. When it reverts back to a figurine, it can't be used again until the next dawn (canary) or 1 year has passed (dragon).\",\r\n\tdescriptionFull : \"This gold statuette is carved in the likeness of a canary and is small enough to fit in a pocket. If you use an action to speak the command word and throw the figurine to a point on the ground within 60 feet of you, the figurine becomes a living creature in one of two forms (you choose). If there isn't enough space for the creature where it would appear, the figurine doesn't become a creature. The two forms are as follows:\"+\r\n\t\"\\n   \" + toUni(\"Giant Canary Form\") + \". The figurine becomes a giant canary for up to 8 hours and can be ridden as a mount. Once the figurine has become a giant canary, it can't be used this way again until the next dawn.\"+\r\n\t\"\\n   \" + toUni(\"Gold Dragon Form\") + \". While you are missing half or more of your hit points, you can speak a different command word and the figurine becomes an adult gold dragon (see its stat block in the Monster Manual) for up to 1 hour. The dragon can't use any legendary actions or lair actions. Once the figurine has become an adult gold dragon, it can't be used this way again until 1 year has passed.\"+\r\n\t\"\\n   In either form, the creature is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the creature defends itself but takes no other actions.\"+\r\n\t\"\\n   The creature exists for a duration specific to each form. At the end of the duration, the creature reverts to its figurine form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature becomes a figurine again, its property can't be used again until a certain amount of time has passed, as specified in the description.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Gold Canary Figurine [canary form]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Gold Canary Figurine [dragon form]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"1 year\"\r\n\t}]\r\n}, false, true);\r\nMagicItemsList[\"platinum scarf\"] = {\r\n\tname : \"Platinum Scarf\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can pull a scale from this scarf, of which it has 3 per dawn. When I do so, I can choose the effect: heal 10d4 HP to a creature I touch, or for 1 hour it becomes a shield (+1 shield that grants radiant damage immunity) or a light hammer (deals 2d4 radiant damage and +2d4 to chromatic dragons).\",\r\n\tdescriptionFull : \"This scarf is made of sturdy cloth and covered in platinum-colored scales.\"+\r\n\t\"\\n   As an action, you can pull a scale from the scarf and speak a command word. When you do so, choose one of the following effects:\"+\r\n\t\"\\n   \" + toUni(\"Breath of Life\") + \". The scale disappears, and you or a creature you touch regains 10d4 hit points.\"+\r\n\t\"\\n   \" + toUni(\"Platinum Shield\") + \". For 1 hour or until you dismiss it (no action required), the scale becomes a +1 shield, which you or another creature can use. A creature wielding the shield has immunity to radiant damage.\"+\r\n\t\"\\n   \" + toUni(\"Radiant Hammer\") + \". For 1 hour or until you dismiss it (no action required), the scale becomes a magic light hammer, which you or another creature can use. The weapon deals 2d4 radiant damage, instead of the bludgeoning damage normal for a light hammer. It deals an extra 2d4 radiant damage to chromatic dragons.\"+\r\n\t\"\\n   Once three scales have been pulled from the scarf, no more scales can be removed until the next dawn, when all the missing scales grow back. If you pull off a scale but don't speak a command word, it disappears after 1 minute.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"light hammer\",\r\n\t\tregExpSearch : /^(?=.*platinum scarf)(?=.*radiant hammer).*$/i,\r\n\t\tname : \"Platinum Scarf's Radiant Hammer\",\r\n\t\tdamage : [2, 4, \"radiant\"],\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\tdescription : \"Light, thrown; +2d4 damage vs. chromatic dragons\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"potion of dragon's majesty\"] = function () { // NOG AFMAKEN!!!!\r\n\tvar obj = {\r\n\t\tname : \"Potion of Dragon's Majesty\",\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\ttype : \"potion\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to transform into an adult dragon for 1 hour. They can't use Change Shape, legendary actions, or lair actions. They retain languages, personality, and memories, but their equipment melds into the form or falls to the ground (their choice).\",\r\n\t\tdescriptionFull : \"This potion looks like liquid gold, with a single scale from a chromatic, gem, or metallic dragon suspended in it. When you drink this potion, you transform into an adult dragon of the same kind as the dragon the scale came from. The transformation lasts for 1 hour. Any equipment you are wearing or carrying melds into your new form or falls to the ground (your choice). For the duration, you use the game statistics of the adult dragon instead of your own, but you retain your languages, personality, and memories. You can't use a dragon's Change Shape or its legendary or lair actions.\",\r\n\t\tweight : 0.5,\r\n\t\tchoices : [],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true\r\n\t}\r\n\tvar aDragons = [\"Black\", \"Blue\", \"Green\", \"Red\", \"White\", \"Amethyst\", \"Crystal\", \"Emerald\", \"Sapphire\", \"Topaz\", \"Brass\", \"Bronze\", \"Copper\", \"Gold\", \"Silver\"];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i];\r\n\t\tvar sNameChoice = sDragon + \" Dragon\";\r\n\t\tobj.choices.push(sNameChoice);\r\n\t\tobj[sNameChoice.toLowerCase()] = {\r\n\t\t\tname : \"Potion of \" + sDragon + \" Dragon's Majesty\",\r\n\t\t\tdescription : \"Once as an action, I can drink this potion or administer it to transform into an adult \" + sDragon.toLowerCase() + \" dragon for 1 hour. They can't use Change Shape, legendary actions, or lair actions. They retain languages, personality, and memories, but their equipment melds into the form or falls to the ground (their choice).\"\r\n\t\t}\r\n\t}\r\n\treturn obj;\r\n}();\r\nMagicItemsList[\"ruby weave gem\"] = {\r\n\tname : \"Ruby Weave Gem\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"While I hold this gem, I can use it as my spellcasting focus. It has 3 charges per dawn. When I cast a spell while holding it, I can use charges to ignore 500 gp per charge of components with a gp cost. When I finish a long rest, I learn any one spell of a level I can cast until my next long rest. I can cast it using spell slots.\",\r\n\tdescriptionFull : \"While you are holding this gem, you can use it as a spellcasting focus for your spells.\"+\r\n\t\"\\n   The gem has 3 charges and regains all expended charges daily at dawn. When you cast a spell while holding this gem, you can expend up to 3 charges to ignore the spell's material components with a gold piece cost, up to 500 gp per charge expended.\"+\r\n\t\"\\n   When you finish a long rest, choose a spell from any class list. The spell you choose must be of a level you can cast. You know the chosen spell and can cast it with your spell slots of the appropriate level until the end of your next long rest.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Any one spell per LR, so\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}, {\r\n\t\tname : \"add as many as needed\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}, {\r\n\t\tname : \"to have some choices.\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}]\r\n}\r\nMagicItemsList[\"sapphire buckler\"] = {\r\n\tname : \"Sapphire Buckler\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"shield\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"While I wield this crystalline blue shield, I have resistance to psychic and thunder damage. As a reaction when I take damage from a creature within 5 ft, I can deal it 2d6 thunder damage. As an action once per dawn, I can use it to know the direction of all aberrations within 1 mile until the end of my next turn.\",\r\n\tdescriptionFull : \"This crystalline blue shield is fashioned from a sapphire dragon's scale and is created to aid in rooting out the influence of Aberrations. While wielding the shield, you have resistance to psychic and thunder damage. Also, when you take damage from a creature that is within 5 feet of you, you can use your reaction to deal 2d6 thunder damage to that creature.\"+\r\n\t\"\\n   As an action, you can use the shield to help you locate Aberrations until the end of your next turn. If any Aberrations are within 1 mile of you, the shield emits a low humming tone for a moment, and you know the direction of all Aberrations within that range. Once this property is used, it can't be used again until the next dawn.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Sapphire Buckler\",\r\n\tdmgres : [\"Psychic\", \"Thunder\"],\r\n\taction : [[\"reaction\", \" (damaged in melee)\"], [\"action\", \" (locate aberrations)\"]]\r\n}\r\nMagicItemsList[\"topaz annihilator\"] = {\r\n\tname : \"Topaz Annihilator\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"weapon (firearm)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical firearm deals 2d6 necrotic damage on a hit. It has the two-handed property, requires no ammunition, 100 ft short range, and 300 ft long range. Targets reduced to 0 HP by it turn to dust and only True Resurrection or Wish can restore them to life. Once per dawn, I can use it to cast Disintegrate (DC 18).\",\r\n\tdescriptionFull : \"This magic ranged weapon resembles a musket, but in lieu of any ammunition, it holds a glowing yellow scale from a topaz dragon in its heart.\"+\r\n\t\"\\n   The weapon has a normal range of 100 feet and a long range of 300 feet, and it has the two-handed property. It deals 2d6 necrotic damage on a hit. If this damage reduces a creature or object to 0 hit points, the target is reduced to dust. A creature reduced to dust can be restored to life only by a true resurrection or wish spell.\"+\r\n\t\"\\n   While the weapon is on your person, you can use an action to cast the disintegrate spell (save DC 18). Once this property is used, it can't be used again until the next dawn.\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*Topaz)(?=.*tiamat).*$/i,\r\n\t\tname : \"Topaz Annihilator\",\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\tability : 2,\r\n\t\ttype : \"firearm\",\r\n\t\tdamage : [2, 6, \"necrotic\"],\r\n\t\trange : \"100/300 ft\",\r\n\t\tweight : 10,\r\n\t\tdescription : \"Two-handed; Targets reduced to 0 HP turn to dust\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Disintegrate\",\r\n\tfixedDC : 18,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"disintegrate\"],\r\n\t\tselection : [\"disintegrate\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n}\r\nvar FToD_HoardItems = {\r\n\t\"dragon's wrath weapon\" : [\r\n\t\t\"This weapon is decorated with dragon heads, claws, wings, scales, or Draconic letters. When it steeps in a dragon's hoard, it absorbs the energy of the dragon's breath weapon and deals damage of that type with its special properties.\",\r\n\t\t\">>Slumbering (Uncommon)<<. Whenever you roll a 20 on your attack roll with this weapon, each creature of your choice within 5 feet of the target takes 5 damage of the type dealt by the dragon's breath weapon.\",\r\n\t\t\">>Stirring (Rare)<<. The Stirring weapon has the Slumbering property. In addition, you gain a +1 bonus to attack and damage rolls made using the weapon. On a hit, the weapon deals an extra 1d6 damage of the type dealt by the dragon's breath weapon.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened weapon has the Slumbering property, and it improves on the Stirring property. The bonus to attack and damage rolls increases to +2, and the extra damage dealt by the weapon increases to 2d6.\",\r\n\t\t\"As an action, you can unleash a 30-foot cone of destructive energy from the weapon. Each creature in that area must make a DC 16 Dexterity saving throw, taking 8d6 damage of the type dealt by the dragon's breath weapon on a failed save, or half as much damage on a successful one. Once this action is used, it can't be used again until the next dawn.\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant weapon has the Slumbering property, and it improves on the Stirring and Wakened properties. The bonus to attack and damage rolls increases to +3, and the extra damage dealt by the weapon increases to 3d6.\",\r\n\t\t\"The cone of destructive energy the weapon creates increases to a 60-foot cone, the save DC increases to 18, and the damage increases to 12d6.\"\r\n\t],\r\n\t\"dww-slumbering\" : {\r\n\t\tdescription : \"This magic weapon decorated with draconic ornaments has absorbed the energy of >>a dragon<< dragon's breath weapon. Whenever I roll a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 >>dmg type<< damage.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*slumbering)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Slumbering\\\" in the name of a weapon, it will be treated as the magic item Slumbering Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (slumbering)\\\"). Whenever I roll a 20 on an attack roll with a slumbering dragon's wrath weapon, each creature of my choice within 5 ft of the target takes 5 damage of the associated dragon's type. \"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"dww-stirring\" : {\r\n\t\tdescription : \"This dragon decorated weapon has absorbed the energy of >>a dragon<< dragon's breath weapon. I add +1 on attack and damage rolls made with it and it deals +1d6 >>dmg type<< damage. When I roll a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 >>dmg type<< damage.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*stirring)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Stirring\\\" in the name of a weapon, it will be treated as the magic item Stirring Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (stirring)\\\"). A stirring dragon's wrath weapon adds +1 to attack and damage rolls made with it. On a hit, the weapon deals an extra +1d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*stirring)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"dww-wakened\" : {\r\n\t\tdescription : \"This weapon uses >>dmg type<< of >>a dragon<< dragon. It adds +2 to its attack and damage rolls and deals +2d6 >>dmg type<< damage. On a 20 to hit, any creature of my choice in 5 ft of the target take 5 damage. As an action once per dawn, it can do a 30-ft cone, Dex DC 16 half, 8d6 damage dragon breath.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*wakened)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Wakened\\\" in the name of a weapon, it will be treated as the magic item Wakened Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (wakened)\\\"). A wakened dragon wrath weapon adds +2 to attack and damage rolls made with it. On a hit, the weapon deals an extra +2d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*wakened)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t},\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tlimfeaname : \">>dragon<< Dragon's Wrath Breath (wakened)\",\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : \"^(?=.*wakened)(?=.*>>dragon<< (dragon'?s? wrath|DW))(?=.*breath).*$\",\r\n\t\t\tname : \">>dragon<< Dragon's Wrath Breath (wakened)\",\r\n\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\tability : 0,\r\n\t\t\ttype : \"Magic Item\",\r\n\t\t\tdamage : [8, 6, \">>type<<\"],\r\n\t\t\trange : \"30-ft cone\",\r\n\t\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tdc : true,\r\n\t\t\tmodifiers : [8, \"\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"dww-ascendant\" : {\r\n\t\tdescription : \"This weapon uses >>dmg type<< of >>a dragon<< dragon. It adds +3 to its attack and damage rolls and deals +3d6 >>dmg type<< damage. On a 20 to hit, any creature of my choice in 5 ft of the target take 5 damage. As an action once per dawn, it can do a 60-ft cone, Dex DC 18 half, 12d6 damage dragon breath.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*ascendant)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+3d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Ascendant\\\" in the name of a weapon, it will be treated as the magic item Ascendant Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (ascendant)\\\"). An ascendant dragon wrath weapon adds +3 to attack and damage rolls made with it. On a hit, the weapon deals an extra +3d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*ascendant)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t},\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tlimfeaname : \">>dragon<< Dragon's Wrath Breath (ascendant)\",\r\n\t\taction : [[\"action\", \"Dragon's Wrath Breath Weapon\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : \"^(?=.*ascendant)(?=.*>>dragon<< (dragon'?s? wrath|DW))(?=.*breath).*$\",\r\n\t\t\tname : \">>dragon<< Dragon's Wrath Breath (ascendant)\",\r\n\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\tability : 0,\r\n\t\t\ttype : \"Magic Item\",\r\n\t\t\tdamage : [12, 6, \">>type<<\"],\r\n\t\t\trange : \"60-ft cone\",\r\n\t\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tdc : true,\r\n\t\t\tmodifiers : [10, \"\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\tdragonsWrathWeaponCreate : function() {\r\n\t\tvar aTypes = [[\"Slumbering\", \"uncommon\"], [\"Stirring\", \"rare\"], [\"Wakened\", \"very rare\"], [\"Ascendant\", \"legendary\"]];\r\n\t\tvar aDragons = [[\"Black\", \"acid\"], [\"Blue\", \"lightning\"], [\"Green\", \"poison\"], [\"Red\", \"fire\"], [\"White\", \"cold\"], [\"Amethyst\", \"force\"], [\"Crystal\", \"radiant\"], [\"Emerald\", \"psychic\"], [\"Sapphire\", \"thunder\"], [\"Topaz\", \"necrotic\"], [\"Brass\", \"fire\"], [\"Bronze\", \"lightning\"], [\"Copper\", \"acid\"], [\"Gold\", \"fire\"], [\"Silver\", \"cold\"]];\r\n\t\tvar aVowels = [\"a\", \"e\"];\r\n\t\tvar sDescriptionFull = FToD_HoardItems[\"dragon's wrath weapon\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); });\r\n\t\tvar sNotesDescription = FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon's wrath weapon\"]);\r\n\t\tfor (var t = 0; t < aTypes.length; t++) {\r\n\t\t\tvar sItemType = aTypes[t][0];\r\n\t\t\tvar sItemTypeLC = sItemType.toLowerCase();\r\n\t\t\tvar sItemName = \"Dragon's Wrath Weapon (\" + sItemTypeLC + \")\";\r\n\t\t\tvar sItemNameLC = sItemName.toLowerCase();\r\n\t\t\tvar oDwwObj = FToD_HoardItems[\"dww-\"+sItemTypeLC];\r\n\t\t\tMagicItemsList[sItemNameLC] = {\r\n\t\t\t\tname : sItemName,\r\n\t\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\t\ttype : \"weapon (any)\",\r\n\t\t\t\trarity : aTypes[t][1],\r\n\t\t\t\tattunement : true,\r\n\t\t\t\tdescription : oDwwObj.description.replace(/>>a dragon<</ig, \"a\").replace(/>>dmg type<< /ig, \"\"),\r\n\t\t\t\tdescriptionFull : sDescriptionFull,\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Full Text\",\r\n\t\t\t\t\tnote : sNotesDescription\r\n\t\t\t\t}],\r\n\t\t\t\tallowDuplicates : true,\r\n\t\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\tchoices : []\r\n\t\t\t}\r\n\t\t\tfor (var sAttr in oDwwObj) {\r\n\t\t\t\tif (/^(description|weaponOptions|limfeaname)$/.test(sAttr)) continue;\r\n\t\t\t\tMagicItemsList[sItemNameLC][sAttr] = oDwwObj[sAttr];\r\n\t\t\t}\r\n\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\tvar sDragon = aDragons[i][0];\r\n\t\t\t\tvar sDragonLC = sDragon.toLowerCase();\r\n\t\t\t\tvar sDmg = aDragons[i][1];\r\n\t\t\t\tvar sNameChoice = sDragon + \" dragon (\" + sDmg + \")\";\r\n\t\t\t\tvar sNameChoiceLC = sNameChoice.toLowerCase();\r\n\t\t\t\tvar sNameTest = sItemType + \" \" + sDragon + \" Dragon's Wrath\";\r\n\t\t\t\tvar sAorAnDragon = (aVowels.indexOf(sDragonLC[0]) === -1 ? \"a \" : \"an \") + sDragonLC;\r\n\t\t\t\tMagicItemsList[sItemNameLC].choices.push(sNameChoice);\r\n\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC] = {\r\n\t\t\t\t\tname : sNameTest + \" Weapon\",\r\n\t\t\t\t\tnameTest : sNameTest,\r\n\t\t\t\t\tdescription : oDwwObj.description.replace(/>>a dragon<</ig, sAorAnDragon).replace(/>>dmg type<</ig, sDmg),\r\n\t\t\t\t\tchooseGear : {\r\n\t\t\t\t\t\ttype : \"weapon\",\r\n\t\t\t\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\t\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\t\t\t\titemName1stPage : [\"between\", sDragon + \" Dragon's Wrath\", \"(\" + sItemTypeLC + \")\"]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (oDwwObj.limfeaname) {\r\n\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].limfeaname = [oDwwObj.limfeaname.replace(/>>dragon<</ig, sDragon)]\r\n\t\t\t\t}\r\n\t\t\t\tif (oDwwObj.weaponOptions) {\r\n\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].weaponOptions = [{}];\r\n\t\t\t\t\tfor (var sAttr in oDwwObj.weaponOptions[0]) {\r\n\t\t\t\t\t\tvar toSet = oDwwObj.weaponOptions[0][sAttr];\r\n\t\t\t\t\t\tswitch (sAttr) {\r\n\t\t\t\t\t\t\tcase \"regExpSearch\":\r\n\t\t\t\t\t\t\t\ttoSet = RegExp(toSet.replace(/>>dragon<</ig, sDragonLC), \"i\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\ttoSet = toSet.replace(/>>dragon<</ig, sDragon);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"damage\":\r\n\t\t\t\t\t\t\t\ttoSet = [toSet[0], toSet[1], sDmg];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].weaponOptions[0][sAttr] = toSet;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"dragon-touched focus\" : [\r\n\t\t\"This wondrous item can be a scepter, an orb, an amulet, a crystal, or another finely crafted object. It typically incorporates imagery of dragons' wings, claws, teeth, or scales.\",\r\n\t\t\">>Slumbering (Uncommon)<<. You have advantage on initiative rolls. While you are holding the focus, it can function as a spellcasting focus for all your spells.\",\r\n\t\t\">>Stirring (Rare)<<. The Stirring focus has the Slumbering property, and it gains an additional property determined by the family of the dragon in whose hoard it became Stirring:\",\r\n\t\t\"\\u2022 Chromatic. Whenever you use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, roll a d6, and you gain a bonus equal to the number rolled to one of the spell's damage rolls.\",\r\n\t\t\"\\u2022 Gem. Whenever you use a spell slot to cast a spell, you can immediately teleport to an unoccupied space you can see within 15 feet of you.\",\r\n\t\t\"\\u2022 Metallic. When a creature you can see within 30 feet of you makes a saving throw, you can use your reaction to give that creature advantage on the saving throw.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened focus has the Slumbering and Stirring properties, and while you are holding a Wakened focus, you can use it to cast certain spells. Once the item is used to cast a given spell, it can't be used to cast that spell again until the next dawn. The spells are determined by the family of the dragon in whose hoard it became Wakened. An asterisk indicates a new spell that appears earlier in this chapter.\",\r\n\t\t\"\\u2022 Chromatic. Hold monster, Rime's binding ice\",\r\n\t\t\"\\u2022 Gem. Rary's telepathic bond, Raulothim's psychic lance\",\r\n\t\t\"\\u2022 Metallic. Fizban's platinum shield, legend lore\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant focus has the Slumbering, Stirring, and Wakened properties. In addition, when you cast a spell of 1st level or higher while holding this focus, you can treat the spell as if it were cast using a 9th-level spell slot. Once this property is used, it can't be used again until the next dawn.\"\r\n\t],\r\n\tdtf_chromatic : {\r\n\t\tcalcChanges : {\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (CurrentSpells[spName].refType == \"class\" && !spellObj.psionic && spellObj.level !== 0 && (/(check|checked|marked)box/i.test(spellObj.firstCol) || (spName === \"warlock\" && !/atwill|sp/i.test(spellObj.firstCol)))) return genericSpellDmgEdit(spellKey, spellObj, \"acid|cold|fire|lightning|lightn\\\\.?|poison\", \"1d6\", true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"Whenever I use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, roll a d6, and I gain a bonus equal to the number rolled to one of the spell's damage rolls.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (Hold Monster)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (Rime's Binding Ice)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"hold monster\", \"rime's binding ice\"],\r\n\t\t\tselection : [\"hold monster\", \"rime's binding ice\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_gem : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (Rary's Telepathic Bond)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (R's Psychic Lance)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"rary's telepathic bond\", \"raulothim's psychic lance\"],\r\n\t\t\tselection : [\"rary's telepathic bond\", \"raulothim's psychic lance\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_metallic : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (F's Platinum Shield)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (Legend Lore)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"fizban's platinum shield\", \"legend lore\"],\r\n\t\t\tselection : [\"fizban's platinum shield\", \"legend lore\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_ascendant : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (upcast to 9th-level)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t},\r\n\t\"dragon vessel\" : [\r\n\t\t\"This vessel can be a potion bottle, drinking horn, or other container meant to hold a liquid.\",\r\n\t\t\">>Slumbering (Uncommon)<<. As a bonus action, if the vessel is empty, you can speak the command word to fill the vessel with one of the following (your choice): ale, olive oil, a potion of healing, or a potion of climbing. Once this property is used, it can't be used until the next dawn. A potion you create in this way loses its magical properties if it isn't imbibed within 24 hours.\",\r\n\t\t\">>Stirring (Rare)<<. In addition to the options for a Slumbering vessel, you can fill a Stirring vessel with mead, a potion of fire breath, or a potion of healing (greater).\",\r\n\t\t\">>Wakened (Very Rare)<<. In addition to the options for a Slumbering or Stirring vessel, you can fill a Wakened vessel with wine, a potion of flying, or a potion of healing (superior).\",\r\n\t\t\">>Ascendant (Legendary)<<. In addition to the options for other states, you can fill an Ascendant vessel with whiskey, a potion of healing (supreme), or a potion of dragon's majesty (described earlier in this chapter).\"\r\n\t],\r\n\t\"scaled ornament\" : [\r\n\t\t\"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes.\",\r\n\t\t\">>Slumbering (Uncommon)<<. You have advantage on saving throws you make to avoid being charmed or frightened or to end those conditions on you.\",\r\n\t\t\">>Stirring (Rare)<<. You gain a +1 bonus to AC, and you can't be charmed or frightened. Moreover, each creature of your choice within 30 feet of you has advantage on saving throws it makes to avoid being charmed or frightened or to end those conditions on itself.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened ornament has the Stirring property. In addition, when you would take damage of the type dealt by the breath of the dragon in whose hoard the ornament became Wakened, you can use your reaction to take no damage instead, and you regain hit points equal to the damage you would have taken. Once this property is used, it can't be used again until the next dawn.\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant ornament has the Stirring and Wakened properties. In addition, while you are wearing the ornament, you gain a flying speed equal to your walking speed and can hover. While you are flying using this speed, spectral dragon wings appear on your back.\"\r\n\t],\r\n\thoardMagicItems : [\r\n\t\t\"\\n\\n\\u25C6 Hoard Magic Items (FToD 25)\",\r\n\t\t\"Certain magic items can absorb the ambient magic of a dragon's hoard. The mightier the dragon, the more powerful the item becomes when it is steeped in the dragon's hoard. These items, called hoard items, have four states. A hoard item in its Slumbering state has certain base properties, and it gains additional properties when it enters the Stirring (young dragon), Wakened (adult dragon), or Ascendant (ancient dragon) state.\",\r\n\t\t\"Ordinarily, a hoard item must steep in a dragon's hoard for 1 year to reach the maximum possible state allowed by the age of the hoard's dragon. For example, a hoard item that steeps in an adult dragon's hoard for 1 year enters its Wakened state.\",\r\n\t\t\"When a dragon is slain, the magic surrounding its hoard becomes volatile. This allows a hoard item to steep more quickly in the hoard. A hoard item steeped in a dragon's hoard for 8 hours rises one state, as long as the steeping begins within 1 hour of the dragon's death and occurs within the dragon's lair. Steeping in this way can't raise the state of the item beyond the state associated with the dragon's age.\",\r\n\t\t\"Just as hoard items can grow in power by absorbing the ambient magic of a dragon's hoard, so too can these treasures fall back into slumber. If no creature is attuned to a hoard item and that item isn't in a dragon's hoard, the item decreases in power by one state every 30 days until it is Slumbering.\"\r\n\t].join(\"\\n   \"),\r\n\tto1stPerson : function (sDescr) {\r\n\t\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t\t.replace(/(by|of|to|for|on) I\\b|\\bI to|\\bI an?\\b/ig, \"$1 me\")\r\n\t\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\r\n\t\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t\t.replace(/   >>(.*?)( \\(.*?\\))?<<. /g, function(a, p1, p2) { return \"\\n   \" + p1.toUpperCase() + p2.toLowerCase() + \"\\n   \"; })+\r\n\t\t\tFToD_HoardItems.hoardMagicItems;\r\n\t}\r\n}\r\nFToD_HoardItems.dragonsWrathWeaponCreate();\r\nMagicItemsList[\"dragon-touched focus\"] = {\r\n\tname : \"Dragon-Touched Focus\",\r\n\tnameTest : /^(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\tsource : [[\"FToD\", 26]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"\",\r\n\tdescriptionFull : FToD_HoardItems[\"dragon-touched focus\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Full Text\",\r\n\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon-touched focus\"])\r\n\t}],\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tchoices : [\"Slumbering (uncommon)\", \"Stirring - Chromatic (rare)\", \"Stirring - Gem (rare)\", \"Stirring - Metallic (rare)\", \"Wakened - Chromatic (very rare)\",  \"Wakened - Gem (very rare)\",  \"Wakened - Metallic (very rare)\", \"Ascendant - Chromatic (legendary)\", \"Ascendant - Gem (legendary)\", \"Ascendant - Metallic (legendary)\"],\r\n\t\"slumbering (uncommon)\" : {\r\n\t\tname : \"Dragon-Touched Focus (slumbering)\",\r\n\t\tnameTest : /^(?=.*slumbering)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This wondrous item can be a scepter, an orb, an amulet, a crystal, or another finely crafted object. It typically incorporates imagery of dragons' wings, claws, teeth, or scales. It grants me advantage on initiative rolls. While I am holding the focus, it can function as a spellcasting focus for all my spells.\"\r\n\t},\r\n\t\"stirring - chromatic (rare)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of chromatic dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus and when I use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, I can add +1d6 to one of the spell's damage rolls.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges\r\n\t},\r\n\t\"stirring - gem (rare)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of gem dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus and when I use a spell slot to cast a spell I can immediately teleport to an unoccupied space I can see within 15 ft.\"\r\n\t},\r\n\t\"stirring - metallic (rare)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of metallic dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus. As a reaction when a creature I can see within 30 ft makes a saving throw, I can grant it advantage on that save.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]]\r\n\t},\r\n\t\"wakened - chromatic (very rare)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus and I can add +1d6 to one damage roll of spells I cast with a spell slot that deal acid, cold, fire, lightning, or poison damage. It also grants me advantage on initiative and allows me to cast Hold Monster and Rime's Binding Ice each once per dawn.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges,\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_chromatic.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_chromatic.extraLimitedFeatures\r\n\t},\r\n\t\"wakened - gem (very rare)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus and I can immediately teleport to an unoccupied space I can see within 15 ft when I cast a spell with a spell slot. It also grants me advantage on initiative and allows me to cast Rary's Telepathic Bond and Raulothim's Psychic Lance each once per dawn.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_gem.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_gem.extraLimitedFeatures\r\n\t},\r\n\t\"wakened - metallic (very rare)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus. As a reaction when a creature I can see within 30 ft makes a saving throw, I can grant it advantage on that save. It also grants me advantage on initiative and allows me to cast Fizban's Platinum Shield and Legend Lore each once per dawn.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_metallic.extraLimitedFeatures,\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_metallic.spellcastingBonus\r\n\t},\r\n\t\"ascendant - chromatic (legendary)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus and I can add 1d6 to a roll of acid, cold, fire, lightning, or poison damage for spells I cast with a spell slot. It grants me adv. on initiative and allows me to cast 2 spells once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges,\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_chromatic.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_chromatic.extraLimitedFeatures)\r\n\t},\r\n\t\"ascendant - gem (legendary)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus and I can teleport to an empty space I can see in 15 ft when I cast a spell with a spell slot. It also grants me adv. on initiative and allows me to cast 2 spells each once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_gem.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_gem.extraLimitedFeatures)\r\n\t},\r\n\t\"ascendant - metallic (legendary)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus. As a reaction when a creature I can see in 30 ft makes a save, I can grant it adv. on that save. It also grants me adv. on initiative and allows me to cast 2 spells each once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_metallic.extraLimitedFeatures,\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_metallic.spellcastingBonus)\r\n\t}\r\n}\r\nMagicItemsList[\"dragon vessel\"] = {\r\n\tname : \"Dragon Vessel\",\r\n\tsource : [[\"FToD\", 27]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one liquid of my choice. The list of options depends on the level and rarity of the item.\",\r\n\tdescriptionFull : FToD_HoardItems[\"dragon vessel\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Full Text\",\r\n\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon vessel\"])\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\tchoices : [\"Slumbering (uncommon)\", \"Stirring (rare)\", \"Wakened (very rare)\", \"Ascendant (legendary)\"],\r\n\t\"slumbering (uncommon)\" : {\r\n\t\tname : \"Dragon Vessel (slumbering)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one of the following of my choice:  ale, olive oil, a potion of healing, or a potion of climbing. A potion loses its magic if it is not consumed within 24 hours.\"\r\n\t},\r\n\t\"stirring (rare)\" : {\r\n\t\tname : \"Dragon Vessel (stirring)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one of the following of my choice:  ale, mead, olive oil, a potion of healing (normal or greater), or a potion of climbing. A potion loses its magic if it is not consumed within 24 hours.\"\r\n\t},\r\n\t\"wakened (very rare)\" : {\r\n\t\tname : \"Dragon Vessel (wakened)\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill it with one of the following of my choice:  ale, mead, wine, olive oil, a potion of healing (normal, greater, or superior), a potion of climbing, or a potion of flying. Unused potions lose their magic after 24 hours.\"\r\n\t},\r\n\t\"ascendant (legendary)\" : {\r\n\t\tname : \"Dragon Vessel (ascendant)\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"As a bonus action once per dawn, I can speak the command word to fill this empty vessel with one of my choice:  ale, mead, wine, whiskey, olive oil, a potion of healing (normal, greater, superior, or supreme), a potion of climbing, a potion of flying, or a potion of dragon's majesty. Potions lose magic after 24 hours.\"\r\n\t}\r\n}\r\nMagicItemsList[\"scaled ornament\"] = function (n) {\r\n\tvar obj = {\r\n\t\tname : \"Scaled Ornament\",\r\n\t\tsource : [[\"FToD\", 27]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes.\",\r\n\t\tdescriptionFull : FToD_HoardItems[\"scaled ornament\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Full Text\",\r\n\t\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"scaled ornament\"])\r\n\t\t}],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true,\r\n\t\tchoices : [\"Slumbering (uncommon)\", \"Stirring (rare)\"],\r\n\t\t\"slumbering (uncommon)\" : {\r\n\t\t\tname : \"Scaled Ornament (slumbering)\",\r\n\t\t\trarity : \"uncommon\",\r\n\t\t\tdescription : \"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes. It grants me advantage on saving throws to avoid being charmed or frightened and to end those conditions on myself.\",\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"stirring (rare)\" : {\r\n\t\t\tname : \"Scaled Ornament (stirring)\",\r\n\t\t\trarity : \"rare\",\r\n\t\t\tdescription : \"This ornament is fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes. It makes me immune to being charmed or frightened and grants my allies within 30 ft advantage on saves to avoid or end those conditions on themselves. It also gives me a +1 bonus to my AC.\",\r\n\t\t\tsavetxt : { immune : [\"charmed\", \"frightened\"] },\r\n\t\t\textraAC : [{\r\n\t\t\t\tmod : 1,\r\n\t\t\t\tname : \"Scaled Ornament\",\r\n\t\t\t\tmagic : true,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm attuned to the scaled ornament.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"wakened (very rare)\" : {\r\n\t\t\tname : \"Scaled Ornament (wakened)\",\r\n\t\t\trarity : \"very rare\",\r\n\t\t\tdescription : \"\"\r\n\t\t},\r\n\t\t\"ascendant (legendary)\" : {\r\n\t\t\tname : \"Scaled Ornament (ascendant)\",\r\n\t\t\trarity : \"legendary\",\r\n\t\t\tdescription : \"\"\r\n\t\t}\r\n\t};\r\n\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\tvar aChoicesNew = [[], []];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i][0];\r\n\t\tvar sDmg = aDragons[i][1];\r\n\t\tvar sWakenedChoice = \"Wakened - \" + sDragon + \" dragon - \" + sDmg + \" (very rare)\";\r\n\t\tvar sWakenedChoiceLC = sWakenedChoice.toLowerCase();\r\n\t\tvar sWakenedName = \"Scaled Ornament (\" + sDragon + \", wakened)\";\r\n\t\tvar sAscendantChoice = \"Ascendant - \" + sDragon + \" dragon - \" + sDmg + \" (very rare)\";\r\n\t\tvar sAscendantChoiceLC = sAscendantChoice.toLowerCase();\r\n\t\tvar sAscendantName = \"Scaled Ornament (\" + sDragon + \", ascendant)\";\r\n\t\taChoicesNew[0].push(sWakenedChoice);\r\n\t\taChoicesNew[1].push(sAscendantChoice);\r\n\t\tobj[sWakenedChoiceLC] = {\r\n\t\t\tname : sWakenedName,\r\n\t\t\trarity : \"very rare\",\r\n\t\t\tdescription : \"This wearable accessory makes me immune to being charmed or frightened and grants my allies within 30 ft adv. on saves vs. those conditions. It also gives me a +1 bonus to my AC. As a reaction once per dawn when I take \" + sDmg + \" damage, I can ignore that damage and heal for the same amount instead.\",\r\n\t\t\tsavetxt : obj[\"stirring (rare)\"].savetxt,\r\n\t\t\textraAC : obj[\"stirring (rare)\"].extraAC,\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Scaled Ornament (absorb \" + sDmg + \")\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"dawn\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"reaction\", \"Scaled Ornament (absorb \" + sDmg + \")\"]],\r\n\t\t}\r\n\t\tobj[sAscendantChoiceLC] = newObj(obj[sWakenedChoiceLC]);\r\n\t\tobj[sAscendantChoiceLC].name = sAscendantName;\r\n\t\tobj[sAscendantChoiceLC].rarity = \"legendary\";\r\n\t\tobj[sAscendantChoiceLC].description = \"This makes me immune to being charmed or frightened and my allies in 30 ft gain adv. on saves vs. those conditions. It also gives me +1 bonus to AC, a flying speed equal to my walking speed, and I can hover. As a reaction once per dawn when I take \" + sDmg + \" damage, I can ignore it and instead heal that amount.\";\r\n\t\tobj[sAscendantChoiceLC].speed = { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t}\r\n\tobj.choices = obj.choices.concat(aChoicesNew[0]).concat(aChoicesNew[1]);\r\n\treturn obj;\r\n}();\r\n\r\n// Creatures\r\nCreatureList[\"giant canary\"] = {\r\n\tname : \"Giant Canary\",\r\n\tnameAlt : [\"Canary, Giant\"],\r\n\tsource : [[\"FToD\", 23]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, fly 60 ft\",\r\n\tscores : [10, 14, 12, 2, 10, 6],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius)\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Peck\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 10, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"dragonnel\"] = { // Alternate for Find Greater Steed spell (contributed by Nod_Hero)\r\n\tname : \"Dragonnel\",\r\n\tsource : [[\"FToD\", 190]],\r\n\tsize : 2, //Large\r\n\ttype : \"Dragon\",\r\n\tcompanion : [\"steed_not_al\"],\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 58,\r\n\thd : [9, 10],\r\n\tspeed : \"30 ft, fly 60 ft\",\r\n\tscores : [16, 15, 12, 8, 13, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Blindsight 30 ft; Darkvision 120 ft\",\r\n\tpassivePerception : 13,\r\n\tlanguages : \"understands Draconic and Common but can't speak\",\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Rend\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two rend attacks as Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the dragonnel can make two Rend attacks.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The dragonnel doesn't provoke an opportunity attack when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\n\n// pub_20211207_SCC.js\r\n// This file adds all the player-material from Strixhaven: A Curriculum of Chaos to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.SCC = {\r\n\tname : \"Strixhaven: A Curriculum of Chaos\",\r\n\tabbreviation : \"SCC\",\r\n\tabbreviationSpellsheet : \"SC\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://dnd.wizards.com/products/strixhaven-curriculum-chaos\",\r\n\tdate : \"2021/12/07\"\r\n};\r\n\r\n// Race\r\nRaceList[\"owlin\"] = {\r\n\tregExpSearch : /owlin/i,\r\n\tname : \"Owlin\",\r\n\tsource : [[\"SCC\", 29]],\r\n\tplural : \"Owlin\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tskills : [\"Stealth\"],\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\r\n\ttrait : \"Owlin\"+\r\n\t\"\\n \\u2022 Flight: Thanks to my wings, I have a flying speed equal to my walking speed. I can't use this flying speed if I'm wearing medium or heavy armor.\"+\r\n\t\"\\n \\u2022 Silent Feathers: I have proficiency in the Stealth skill.\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"lorehold student\"] = {\r\n\tregExpSearch : /^(?=.*lorehold)(?=.*student).*$/i,\r\n\tname : \"Lorehold Student\",\r\n\tsource : [[\"SCC\", 31]],\r\n\tskills : [\"History\", \"Religion\"],\r\n\tlanguageProfs : [2],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Tome of history\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Hooded lantern\", \"\", 2],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Lorehold Initiate\",\r\n\ttrait : [\r\n\t\t\"I thrive on esoteric lore. The more obscure the historical references I can include in everyday conversation, the better.\",\r\n\t\t\"By searching for these lost artifacts, I hope to find who I really am along the way.\",\r\n\t\t\"I can barely go a minute without talking about my research. I have so much knowledge in my head, and it needs to be let out somewhere!\",\r\n\t\t\"The spirits of the dead are so much more interesting to talk with than living classmates.\",\r\n\t\t\"I can speak eloquently about the historical ramifications of an ancient war. But ask me to add two-digit numbers together, and I'm a mess.\",\r\n\t\t\"In the end, it's all just entropy. Everything falls apart someday.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"lorehold initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Lorehold college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Comprehend Languages, Identify, Borrowed Knowledge, Locate Object, Speak with Dead, Spirit Guardians, Arcane Eye, Stone Shape, Flame Strike, and Legend Lore.\",\r\n\tsource : [[\"SCC\", 31]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"comprehend languages\", \"identify\", \"borrowed knowledge\", \"locate object\", \"speak with dead\", \"spirit guardians\", \"arcane eye\", \"stone shape\", \"flame strike\", \"legend lore\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Comprehend Languages, Identify, Borrowed Knowledge, Locate Object, Speak with Dead, Spirit Guardians, Arcane Eye, Stone Shape, Flame Strike, and Legend Lore.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"lorehold\" }],\r\n};\r\nBackgroundList[\"prismari student\"] = {\r\n\tregExpSearch : /^(?=.*prismari)(?=.*student).*$/i,\r\n\tname : \"Prismari Student\",\r\n\tsource : [[\"SCC\", 32]],\r\n\tskills : [\"Acrobatics\", \"Performance\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Artisan's tools or Musical instrument\", 1]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Artisan's tools or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Prismari Initiate\",\r\n\ttrait : [\r\n\t\t\"I'm the life of the party, and I expect everyone's attention when I walk into a room.\",\r\n\t\t\"Two weeks ago, I was enthralled with my latest project. Now, I think it's garbage and deserves to be destroyed.\",\r\n\t\t\"I believe everyone has the ability to express their truest selves through art, and I'm happy to quietly push them in the right direction.\",\r\n\t\t\"Everyone is a critic, and I work to win them all over.\",\r\n\t\t\"I'm beset with such an overwhelming sense of ennui regarding my art. Nothing quite captures my attention anymore.\",\r\n\t\t\"Instead of confronting my negative emotions, I channel them into explosive artistic displays.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"prismari initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Prismari college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Chromatic Orb, Thunderwave, Flaming Sphere, Kinetic Jaunt, Haste, Water Walk, Freedom of Movement, Wall of Fire, Cone of Cold, and Conjure Elemental.\",\r\n\tsource : [[\"SCC\", 32]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"chromatic orb\", \"thunderwave\", \"flaming sphere\", \"kinetic jaunt\", \"haste\", \"water walk\", \"freedom of movement\", \"wall of fire\", \"cone of cold\", \"conjure elemental\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Chromatic Orb, Thunderwave, Flaming Sphere, Kinetic Jaunt, Haste, Water Walk, Freedom of Movement, Wall of Fire, Cone of Cold, and Conjure Elemental.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"prismari\" }],\r\n};\r\nBackgroundList[\"quandrix student\"] = {\r\n\tregExpSearch : /^(?=.*quandrix)(?=.*student).*$/i,\r\n\tname : \"Quandrix Student\",\r\n\tsource : [[\"SCC\", 33]],\r\n\tskills : [\"Arcana\", \"Nature\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Abacus\", \"\", 2],\r\n\t\t[\"Book of arcane theory\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Quandrix Initiate\",\r\n\ttrait : [\r\n\t\t\"When I find a subject I'm interested in, I won't stop studying until I know everything about it. It keeps me up at night.\",\r\n\t\t\"I hope this all makes sense to me one day. Until then, I'm going to keep faking it.\",\r\n\t\t\"Equations and patterns come naturally to my mind. I wish friendship came just as easily.\",\r\n\t\t\"I believe I'm always the smartest person in the room. And I'll prove it, even if no one asks me to.\",\r\n\t\t\"If these classes have taught me anything, it's that reality is a lie, and nothing matters. So why bother?\",\r\n\t\t\"Before I graduate, I want to achieve something mathematically impossible. I must leave a legacy!\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"quandrix initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Quandrix college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Entangle, Guiding Bolt, Enlarge/Reduce, Vortex Warp, Aura of Vitality, Haste, Control Water, Freedom of Movement, Circle of Power, and Passwall.\",\r\n\tsource : [[\"SCC\", 33]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"guiding bolt\", \"enlarge/reduce\", \"vortex warp\", \"aura of vitality\", \"haste\", \"control water\", \"freedom of movement\", \"circle of power\", \"passwall\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Entangle, Guiding Bolt, Enlarge/Reduce, Vortex Warp, Aura of Vitality, Haste, Control Water, Freedom of Movement, Circle of Power, and Passwall.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"quandrix\" }],\r\n};\r\nBackgroundList[\"silverquill student\"] = {\r\n\tregExpSearch : /^(?=.*silverquill)(?=.*student).*$/i,\r\n\tname : \"Silverquill Student\",\r\n\tsource : [[\"SCC\", 35]],\r\n\tskills : [\"Intimidation\", \"Persuasion\"],\r\n\tlanguageProfs : [2],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Book of poetry\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Silverquill Initiate\",\r\n\ttrait : [\r\n\t\t\"I'll say whatever I need to in order to maintain my high social status.\",\r\n\t\t\"I prefer saying the blunt truth over a pretty lie, and I don't particularly care whose feelings I hurt.\",\r\n\t\t\"I believe that uplifting my peers is the best way to succeed.\",\r\n\t\t\"I've mastered the art of using humor as a defense, and I always have a charming joke ready.\",\r\n\t\t\"I always wait before speaking, analyzing the situation for whichever angle is most advantageous to my goals.\",\r\n\t\t\"No one knows about the all-nighters I've pulled to keep my magic looking effortless, and I'm going to keep it that way.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"silverquill initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Silverquill college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Dissonant Whispers, Silvery Barbs, Calm Emotions, Darkness, Beacon of Hope, Daylight, Compulsion, Confusion, Dominate Person, and Rary's Telepathic Bond.\",\r\n\tsource : [[\"SCC\", 35]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"dissonant whispers\", \"silvery barbs\", \"calm emotions\", \"darkness\", \"beacon of hope\", \"daylight\", \"compulsion\", \"confusion\", \"dominate person\", \"rary's telepathic bond\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Dissonant Whispers, Silvery Barbs, Calm Emotions, Darkness, Beacon of Hope, Daylight, Compulsion, Confusion, Dominate Person, and Rary's Telepathic Bond.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"silverquill\" }],\r\n};\r\nBackgroundList[\"witherbloom student\"] = {\r\n\tregExpSearch : /^(?=.*witherbloom)(?=.*student).*$/i,\r\n\tname : \"Witherbloom Student\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tskills : [\"Nature\", \"Survival\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [\"Herbalism kit\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Book about plant identification\", \"\", 5],\r\n\t\t[\"Iron pot\", \"\", 10],\r\n\t\t[\"Herbalism kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Witherbloom Initiate\",\r\n\ttrait : [\r\n\t\t\"I love brewing up a new recipe, even if some might be repulsed by my choice of ingredients. Or the final product. Or both.\",\r\n\t\t\"My fashion sense is like my garden: withered, black, and weird.\",\r\n\t\t\"I'm going to befriend every single monster in this swamp if it's the last thing I do.\",\r\n\t\t\"Everything in this world dies eventually. The question is, what will you do with the time you have left?\",\r\n\t\t\"I know we just met, but when you die, may I have your bones? For research.\",\r\n\t\t\"Don't interrupt me; I'm brooding.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"witherbloom initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Witherbloom college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Cure Wounds, Inflict Wounds, Lesser Restoration, Wither and Bloom, Revivify, Vampiric Touch, Blight, Death Ward, Antilife Shell, and Greater Restoration.\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cure wounds\", \"inflict wounds\", \"lesser restoration\", \"wither and bloom\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Cure Wounds, Inflict Wounds, Lesser Restoration, Wither and Bloom, Revivify, Vampiric Touch, Blight, Death Ward, Antilife Shell, and Greater Restoration.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"witherbloom\" }],\r\n};\r\n\r\n// Feats\r\nFeatsList[\"strixhaven initiate\"] = {\r\n\tname : \"Strixhaven Initiate\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tdescription : \"I learn two cantrips and a 1st-level spell from a list depending on my Strixhaven college. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You have studied some magical theory and have learned a few spells associated with Strixhaven University.\"+\r\n\t\"\\n   Choose one of Strixhaven's colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. You learn two cantrips and one 1st-level spell based on the college you choose, as specified in the Strixhaven Spells table.\"+\r\n\t\"\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\tchoices : [\"Lorehold\", \"Prismari\", \"Quandrix\", \"Silverquill\", \"Witherbloom\"],\r\n\t\"lorehold\" : {\r\n\t\tdescription : \"I learn two cantrips (Light, Sacred Flame, or Thaumaturgy) and a 1st-level spell from the cleric or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"light\", \"sacred flame\", \"thaumaturgy\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"prismari\" : {\r\n\t\tdescription : \"I learn two cantrips (Fire Bolt, Prestidigitation, or Ray of Frost) and a 1st-level spell from the bard or sorcerer spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"fire bolt\", \"prestidigitation\", \"ray of frost\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"bard\", \"sorcerer\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"quandrix\" : {\r\n\t\tdescription : \"I learn two cantrips (Druidcraft, Guidance, or Mage Hand) and a 1st-level spell from the druid or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"druidcraft\", \"guidance\", \"mage hand\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"silverquill\" : {\r\n\t\tdescription : \"I learn two cantrips (Sacred Flame, Thaumaturgy, or Vicious Mockery) and a 1st-level spell from the bard or cleric spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can have Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"sacred flame\", \"thaumaturgy\", \"vicious mockery\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"bard\", \"cleric\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"witherbloom\" : {\r\n\t\tdescription : \"I learn two cantrips (Chill Touch, Druidcraft, or Spare the Dying) and a 1st-level spell from the druid or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"druidcraft\", \"spare the dying\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"strixhaven mascot\"] = {\r\n\tname : \"Strixhaven Mascot\",\r\n\tsource : [[\"SCC\", 37]],\r\n\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of my college's mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\tdescriptionFull : \"You have learned how to summon a Strixhaven mascot to assist you, granting you these benefits:\"+\r\n\t\"\\n \\u2022 You can cast the find familiar spell as a ritual. Your familiar can take the form of the mascot associated with the college you chose for the Strixhaven Initiate feat: a spirit statue mascot (Lorehold), an art elemental mascot (Prismari), a fractal mascot (Quandrix), an inkling mascot (Silverquill), or a pest mascot (Witherbloom).\"+\r\n\t\"\\n \\u2022 When you take the Attack action on your turn, you can forgo one attack to allow your mascot familiar to make one attack of its own with its reaction.\"+\r\n\t\"\\n \\u2022 If your mascot familiar is within 60 feet of you, you can teleport as an action, swapping places with the familiar. If your destination space is too small for you to occupy, the teleportation fails and is wasted. Once you teleport in this way, you can't do so again until you finish a long rest, unless you expend a spell slot of 2nd level or higher to do it again.\",\r\n\tprerequisite : \"4th level, Strixhaven Initiate feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"strixhaven initiate\") !== -1; },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Swap places with Strixhaven Mascot\",\r\n\t\trecovery : \"long rest\",\r\n\t\tusages : 1,\r\n\t\taltResource : \"SS 2+\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Strixhaven Mascot\",\r\n\t\tspells : [\"find familiar\"],\r\n\t\tselection : [\"find familiar\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t}],\r\n\tchoices : [\"Lorehold\", \"Prismari\", \"Quandrix\", \"Silverquill\", \"Witherbloom\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iStrixInit = CurrentFeats.known.indexOf(\"strixhaven initiate\");\r\n\t\tif (iStrixInit !== -1 && CurrentFeats.choices[iStrixInit]) {\r\n\t\t\treturn CurrentFeats.choices[iStrixInit];\r\n\t\t}\r\n\t},\r\n\t\"lorehold\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Spirit Statue Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Spirit Statue Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"prismari\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of an Art Elemental Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make an attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Art Elemental Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"quandrix\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Fractal Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Fractal Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"silverquill\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of an Inkling Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Inkling Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"witherbloom\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Pest Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Pest Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t}\r\n};\r\nif (CompanionList.familiar && CompanionList.pact_of_the_chain) { // Needs to be revisited for v24\r\n\tCompanionList.strixhaven_mascot = {\r\n\t\tname : \"Strixhaven Mascot\",\r\n\t\tnameTooltip : \"Strixhaven Mascot (feat)\",\r\n\t\tnameOrigin : \"variant of the Find Familiar 1st-level conjuration [ritual] spell\",\r\n\t\tnameMenu : \"Strixhaven Mascot familiar (feat)\",\r\n\t\tsource : [[\"SCC\", 37]],\r\n\t\tincludeCheck : CompanionList.pact_of_the_chain.includeCheck,\r\n\t\taction : [[\"action\", \"Swap places with Strixhaven Mascot\"]].concat(CompanionList.familiar.action),\r\n\t\tattributesChange : CompanionList.pact_of_the_chain.attributesChange,\r\n\t\tattributesAdd : CompanionList.familiar.attributesAdd,\r\n\t\tnotes : function() {\r\n\t\t\tvar a = newObj(CompanionList.pact_of_the_chain.notes);\r\n\t\t\ta[0].description = [\r\n\t\t\t\t\"appearing in an unoccupied space within 10 ft\",\r\n\t\t\t\t\"It assumes a chosen beast or mascot form (can change at every casting), see the spell and feat\",\r\n\t\t\t\t\"It has the chosen form's statistics, but its type changes from beast to celestial, fey, or fiend\",\r\n\t\t\t\t\"When the familiar drops to 0 hit points, it disappears, leaving behind no physical form\",\r\n\t\t\t\t\"It reappears when I cast this spell again (in a new form if so desired)\"\r\n\t\t\t].join(\"\\n   \");\r\n\t\t\ta.push({\r\n\t\t\t\tname : \"As an action while it is within 60 ft, we can teleport\",\r\n\t\t\t\tdescription : [\r\n\t\t\t\t\t\"swapping places if there is enough space\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t].join(\"\\n   \"),\r\n\t\t\t\tjoinString : \", \"\r\n\t\t\t});\r\n\t\t\treturn a;\r\n\t\t}()\r\n\t};\r\n}\r\n\r\n// Spells\r\nSpellsList[\"borrowed knowledge\"] = {\r\n\tname : \"Borrowed Knowledge\",\r\n\tclasses : [\"bard\", \"cleric\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"SCC\", 37]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A book worth at least 25 gp.\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"Gain proficiency with one skill; ends early if cast again (25gp)\",\r\n\tdescriptionFull : \"You draw on knowledge from spirits of the past. Choose one skill in which you lack proficiency. For the spell's duration, you have proficiency in the chosen skill. The spell ends early if you cast it again.\"\r\n};\r\nSpellsList[\"kinetic jaunt\"] = {\r\n\tname : \"Kinetic Jaunt\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 37]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"+10 ft walk spd; provoke no opportunity atks; move through crea space, counts not as difficult terrain\",\r\n\tdescriptionFull : \"You magically empower your movement with dance-like steps, giving yourself the following benefits for the duration.\"+\r\n\t\"\\n \\u2022 Your walking speed increases by 10 feet.\"+\r\n\t\"\\n \\u2022 You don't provoke opportunity attacks.\"+\r\n\t\"\\n \\u2022 You can move through the space of another creature, and it doesn't count as difficult terrain. If you end your turn in another creature's space, you are shunted to the last unoccupied space you occupied, and you take 1d8 force damage.\"\r\n};\r\nSpellsList[\"silvery barbs\"] = {\r\n\tname : \"Silvery Barbs\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when a creature you can see within 60 feet of yourself succeeds on an attack roll, an ability check, or a saving throw\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea reroll d20 and use lowest for atk, check, or save; 1 crea adv. next atk, check, or save in 1 min\",\r\n\tdescriptionFull : \"You magically distract the triggering creature and turn its momentary uncertainty into encouragement for another creature. The triggering creature must reroll the d20 and use the lower roll.\"+\r\n\t\"\\n   You can then choose a different creature you can see within range (you can choose yourself). The chosen creature has advantage on the next attack roll, ability check, or saving throw it makes within 1 minute. A creature can be empowered by only one use of this spell at a time.\"\r\n};\r\nSpellsList[\"vortex warp\"] = {\r\n\tname : \"Vortex Warp\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or teleported to a sufficiently empty space of my choice within range; +30 ft/SL range\",\r\n\tdescriptionFull : \"You magically twist space around another creature you can see within range. The target must succeed on a Constitution saving throw (the target can choose to fail), or the target is teleported to an unoccupied space of your choice that you can see within range. The chosen space must be on a surface or in a liquid that can support the target without the target having to squeeze.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the range of the spell increases by 30 feet for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"wither and bloom\"] = {\r\n\tname : \"Wither and Bloom\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 2,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A withered vine twisted into a loop.\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"10-ft rad any crea 2d6+1d6/SL Necrotic dmg, save half; 1 crea can heal using 1+1/SL HD; see B\",\r\n\tdescriptionFull : \"You invoke both death and life upon a 10-foot-radius sphere centered on a point within range. Each creature of your choice in that area must make a Constitution saving throw, taking 2d6 necrotic damage on a failed save, or half as much damage on a successful one. Nonmagical vegetation in that area withers.\"+\r\n\t\"\\n   In addition, one creature of your choice in that area can spend and roll one of its unspent Hit Dice and regain a number of hit points equal to the roll plus your spellcasting ability modifier.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot above the 2nd, and the number of Hit Dice that can be spent and added to the healing roll increases by one for each slot above 2nd.\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"bottle of boundless coffee\"] = {\r\n\tname : \"Bottle of Boundless Coffee\",\r\n\tsource : [[\"SCC\", 38]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This metal bottle is full with delicious, comfortably warm coffee, but I can't feel the heat. It has a stopper on a little chain. It will accept only the coffee it produces. Each time I drink the coffee, I roll a d20. On a 1, the bottle stops dispensing coffee for 1 hour. Unless drunk, the coffee vanishes when it leaves the bottle.\",\r\n\tdescriptionFull : \"This metal bottle carries delicious, warm coffee. The bottle comes with a stopper, which is attached to the bottle by a little chain. Even when open, the bottle won't accept any liquid other than the coffee it produces. The coffee inside is always comfortably warm, and none of the heat can be felt through the bottle.\"+\r\n\t\"\\n   Each time you drink the coffee, roll a d20. On a 1, the bottle refuses to dispense coffee for the next hour. If you pour coffee from the bottle, rather than drinking from it, the coffee vanishes the moment it leaves the bottle.\"\r\n}\r\nMagicItemsList[\"cuddly strixhaven mascot\"] = {\r\n\tname : \"Cuddly Strixhaven Mascot\",\r\n\tsource : [[\"SCC\", 38]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This soft, Tiny, magic toy represents a Strixhaven mascot. As an action, I can press it to my arm, shoulder, or leg, and it attaches there for 1 hour or until I remove it as an action. Once per long rest while this toy is on my person, I can give myself advantage on the save to avoid or end the frightened condition on myself.\",\r\n\tdescriptionFull : \"Representing one of the mascots of Strixhaven, this soft, Tiny, magic toy is perfect for cuddling. If you press it to your arm, shoulder, or leg as an action, the toy stays attached there for 1 hour or until you use an action to remove it.\"+\r\n\t\"\\n   The toy can also be used to fight off fear. When you make a saving throw to avoid or end the frightened condition on yourself, you can give yourself advantage on the roll if the toy is on your person. You must decide to do so before rolling the d20. If the save succeeds, you can't use the toy in this way until you finish a long rest.\",\r\n\taction : [[\"action\", \" (attach/remove)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n}\r\nMagicItemsList[\"lorehold primer\"] = {\r\n\tname : \"Lorehold Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an History or Religion check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level cleric or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Lorehold Primer is a magic textbook created at Strixhaven's Lorehold College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (History) or Intelligence (Religion) check while holding the primer, you can expend 1 charge to give yourself 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the cleric or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Lorehold Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Lorehold Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfCreateSCCPrimerSpellsEntry : function(bAddIt, sName, aClasses) {\r\n\t\tvar sNameLC = sName.toLowerCase();\r\n\t\tif (bAddIt) {\r\n\t\t\tCurrentSpells[sNameLC] = {\r\n\t\t\t\tname : sName + ' (item)',\r\n\t\t\t\tlist : { 'class' : aClasses, level : [1, 1] },\r\n\t\t\t\tknown : { spells : 1 },\r\n\t\t\t\tbonus : {\r\n\t\t\t\t\tbon0 : {\r\n\t\t\t\t\t\tname : 'Either select a spell',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbon1 : {\r\n\t\t\t\t\t\tname : 'or just select \"Full List\"',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbon2 : {\r\n\t\t\t\t\t\tname : 'on the bottom left',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\ttypeList : 4,\r\n\t\t\t\trefType : \"item\",\r\n\t\t\t\tallowUpCasting : false,\r\n\t\t\t\tfirstCol : \"LR\"\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tdelete CurrentSpells[sNameLC];\r\n\t\t}\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\teval : function () {\r\n\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Lorehold Primer\", ['cleric', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Lorehold Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"prismari primer\"] = {\r\n\tname : \"Prismari Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Acrobatics or Performance check, after the d20 roll. If I study it in a long rest, I can pick a 1st-level bard or sorcerer spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Prismari Primer is a magic textbook created at Strixhaven's Prismari College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make a Dexterity (Acrobatics) or a Charisma (Performance) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the bard or sorcerer spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Prismari Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Prismari Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Prismari Primer\", ['bard', 'sorcerer']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Prismari Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"quandrix primer\"] = {\r\n\tname : \"Quandrix Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Arcana or Nature check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level druid or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Quandrix Primer is a magic textbook created at Strixhaven's Quandrix College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (Arcana) or an Intelligence (Nature) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the druid or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Quandrix Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Quandrix Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Quandrix Primer\", ['druid', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Quandrix Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"silverquill primer\"] = {\r\n\tname : \"Silverquill Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Intimidation or Persuasion check, after the d20 roll. If I study it in a long rest, I can pick a 1st-level bard or cleric spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Silverquill Primer is a magic textbook created at Strixhaven's Silverquill College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make a Charisma (Intimidation) or a Charisma (Persuasion) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the bard or cleric spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Silverquill Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Silverquill Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Silverquill Primer\", ['bard', 'cleric']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Silverquill Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"strixhaven pennant\"] = {\r\n\tname : \"Strixhaven Pennant\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This magic pennant bears the symbol of Strixhaven or one of its colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. While I wave the pennant, the symbol on it glitters, and the pennant sheds bright light in a 10-ft radius and dim light for an additional 10 ft.\",\r\n\tdescriptionFull : \"This magic pennant bears the symbol of Strixhaven or one of its colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. While you wave the pennant, the symbol on it glitters, and the pennant sheds bright light in a 10-foot-radius and dim light for an additional 10 feet.\"\r\n}\r\nMagicItemsList[\"witherbloom primer\"] = {\r\n\tname : \"Witherbloom Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to a Nature or Survival check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level druid or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Witherbloom Primer is a magic textbook created at Strixhaven's Witherbloom College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (Nature) or Wisdom (Survival) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the druid or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witherbloom Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Witherbloom Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Witherbloom Primer\", ['druid', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Witherbloom Primer\");\r\n\t}\r\n}\r\nvar SCC_Murgaxors_Orb_Full_Description = [\r\n\t\"Roiling green mist fills this glass orb, which the exiled Strixhaven mage Murgaxor once used in foul magical experiments. Murgaxor's spirit has infused the orb, which he uses to spread a terrible curse among Strixhaven's students.\",\r\n\t\">>Sentience<<. Murgaxor's orb is a sentient, chaotic evil magic item with the following properties:\",\r\n\t\"\\u2022 The orb has an Intelligence of 20, a Wisdom of 16, and a Charisma of 16, as well as hearing and darkvision out to a range of 30 feet.\",\r\n\t\"\\u2022 The orb can speak, read, and understand Common, and it can communicate telepathically with any creature touching it.\",\r\n\t\"\\u2022 At any time during your turn, the orb can cast the suggestion spell (save DC 17), targeting you or one other creature that touched the orb within the last 24 hours. This isn't a power of the orb that you control.\",\r\n\t\">>Curse<<. Any Humanoid you touch while holding the orb must succeed on a DC 10 Wisdom saving throw or become cursed. Each creature cursed by the orb bears an echo of Murgaxor's hateful thoughts, and that creature suffers from headaches that are persistent but not debilitating until the curse ends. On your turn, the orb can use an action to produce one of the following effects, targeting one or more creatures it has cursed:\",\r\n\t\"\\u2022 >>Unconsciousness<<. The cursed creature falls unconscious for 1 hour. The creature is roused if it takes damage or someone uses an action to shake or slap it awake.\",\r\n\t\"\\u2022 >>Visions of Terror<<. The cursed creature sees terrifying visions, causing it to view all creatures that aren't also cursed as dangerous monsters for 10 minutes. The cursed creature must use its action each round to make one attack against the nearest non-cursed creature. If the cursed creature has multiple possible targets, it attacks one at random. This effect ends if the cursed creature is incapacitated.\",\r\n\t\"After either of these effects ends, the affected creature is no longer cursed. The curse can also be removed from a creature with a remove curse spell or similar magic. All cases of the curse end if Murgaxor's orb is destroyed.\",\r\n\t\">>Magical Signature<<. As a side effect of the orb's curse, the spell detect magic reveals an aura of enchantment surrounding creatures bearing the curse. This aura is distinctive, but in a way detect magic offers no further details about.\",\r\n\t\">>Destroying the Orb<<. Murgaxor's orb has AC 18; 20 hit points; immunity to necrotic, poison, and psychic damage; and resistance to all other types of damage. If reduced to 0 hit points, the orb shatters.\"\r\n]\r\nMagicItemsList[\"murgaxor's orb\"] = {\r\n\tname : \"Murgaxor's Orb\",\r\n\tsource : [[\"SCC\", 126]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This sentient, chaotic evil orb bears a curse. It can communicate telepathically with any creature touching it. It can cast Suggestion on my turn, possibly on me. I have no control over it. Any Humanoid I touch while holding the orb must make a DC 10 Wisdom save or become cursed. See the Notes page.\",\r\n\tdescriptionFull : SCC_Murgaxors_Orb_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(SCC_Murgaxors_Orb_Full_Description).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(targeting) you/ig, \"$1 me\").replace(/you /ig, \"I \").replace(/feet/ig, \"ft\") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"masque charm\"] = {\r\n\tname : \"Masque Charm\",\r\n\tsource : [[\"SCC\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While wearing this small silver pin, I can cast Disguise Self once per sunset. It has DC 13 to discern the disguise. I can have the spell last its normal 1 hour duration, or 6 hours. If I choose 6 hours, the charm becomes nonmagical when the spell ends. In either case, the spell ends if the pin is removed from me.\",\r\n\tdescriptionFull : \"A masque charm is a small silver pin. While wearing this charm, you can use an action to cast the disguise self spell (DC 13 to discern the disguise). Once the spell is cast, it can't be cast from the charm again until the next sunset. When casting the spell, you can have the spell last for its normal 1 hour duration or for 6 hours. If you choose the 6-hour duration, the charm becomes nonmagical when the spell ends. In either case, the spell ends if the charm is removed from you.\",\r\n\tusages : 1,\r\n\trecovery : \"Sunset\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per sunset\",\r\n\t\tspells : [\"disguise self\"],\r\n\t\tselection : [\"disguise self\"],\r\n\t\tfirstCol : \"oncelr\"\r\n   }],\r\n   fixedDC : 13\r\n}\r\n\r\n// Creatures (for Strixhaven Mascot feat)\r\nCreatureList[\"art elemental mascot\"] = { // Prismari\r\n\tname : \"Art Elemental Mascot\",\r\n\tnameAlt : [\"Mascot, Art Elemental\"],\r\n\tsource : [[\"SCC\", 185]],\r\n\tsize : 4,\r\n\ttype : \"Elemental\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 11,\r\n\thp : 18,\r\n\thd : [4, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [6, 13, 12, 8, 11, 15],\r\n\tskills : {\r\n\t\t\"performance\" : 4\r\n\t},\r\n\tdamage_resistances : \"cold, fire\",\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Joyful Flare\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"fire\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Melancholic Bolt\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"cold\"],\r\n\t\trange : \"30 ft\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Captivating Artistry (1/Day)\",\r\n\t\tdescription : \"As an action, the elemental can target one creature it can see within 30 ft of itself. The target must succeed on a DC 12 Charisma saving throw or be charmed for 1 minute. The charmed target can repeat the save at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"When the elemental dies, it explodes in a burst of colored light. Each creature within 5 ft of the elemental must succeed on a DC 11 Constitution saving throw or be blinded for 1 minute. A blinded creature can repeat the save at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}]\r\n};\r\nCreatureList[\"fractal mascot\"] = { // Quandrix\r\n\tname : \"Fractal Mascot\",\r\n\tnameAlt : [\"Mascot, Fractal\"],\r\n\tsource : [[\"SCC\", 192]],\r\n\tsize : 4,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 12,\r\n\thp : 27,\r\n\thd : [6, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 14, 13, 7, 10, 5],\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Quantum Strike\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"force\"],\r\n\t\trange : \"30 ft\",\r\n\t\tdescription : \"+1d4 damage if the fractal is Medium or bigger\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Augment (bonus action)\",\r\n\t\tdescription : \"The fractal can increase its size by one category as a bonus action. While the fractal is Medium or bigger, it makes Strength checks and Strength saving throws with advantage. The fractal can become no larger than Huge via this bonus action.\"\r\n\t}, {\r\n\t\tname : \"Diminish (bonus action)\",\r\n\t\tdescription : \"The fractal can decreases its size by one category as a bonus action. While the fractal is Tiny, it makes attack rolls, Dexterity checks, and Dexterity saving throws with advantage. The fractal can become no smaller than 1 ft in height via this bonus action.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Relative Density\",\r\n\t\tdescription : \"The fractal can move through creatures and objects as if they were difficult terrain. It takes 1d10 force damage if it ends its turn inside an object.\"\r\n\t}]\r\n};\r\nCreatureList[\"inkling mascot\"] = { // Silverquill\r\n\tname : \"Inkling Mascot\",\r\n\tnameAlt : [\"Mascot, Inkling\"],\r\n\tsource : [[\"SCC\", 195]],\r\n\tsize : 5,\r\n\ttype : \"Ooze\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 18,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 30 ft (hover)\",\r\n\tscores : [10, 16, 14, 6, 7, 11],\r\n\tskills : {\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tdamage_immunities : \"psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, prone\",\r\n\tsenses : \"Blindsight 60 ft\",\r\n\tpassivePerception : 8,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Blot\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"psychic\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Ink Spray (1/Day)\",\r\n\t\tdescription : \"As an action, the inkling can spray viscous ink at one creature within 15 ft of itself. The target must succeed on a DC 12 Constitution saving throw or be blinded until the end of the inkling's next turn.\"\r\n\t}, {\r\n\t\tname : \"Shadow Stealth (bonus action)\",\r\n\t\tdescription : \"While in dim light or darkness, the inkling can take the Hide action as a bonus action.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amorphous\",\r\n\t\tdescription : \"The inkling can move through a space as narrow as 1 inch wide without squeezing.\"\r\n\t}]\r\n};\r\nCreatureList[\"pest mascot\"] = { // Witherbloom\r\n\tname : \"Pest Mascot\",\r\n\tnameAlt : [\"Mascot, Pest\"],\r\n\tsource : [[\"SCC\", 203]],\r\n\tsize : 5,\r\n\ttype : \"Monstrosity\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 22,\r\n\thd : [4, 4],\r\n\tspeed : \"30 ft\",\r\n\tscores : [11, 14, 17, 5, 13, 4],\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Regeneration\",\r\n\t\tdescription : \"The pest regains 5 hit points at the start of its turn if it has at least 1 hit point. If it takes fire damage, this trait doesn't function at the start of the pest's next turn.\"\r\n\t}, {\r\n\t\tname : \"Spiny Hide\",\r\n\t\tdescription : \"At the start of each of its turns, the pest deals 1d4 piercing damage to any creature grappling it or that it is grappling.\"\r\n\t}]\r\n};\r\nCreatureList[\"spirit statue mascot\"] = { // Lorehold\r\n\tname : \"Spirit Statue Mascot\",\r\n\tnameAlt : [\"Mascot, Spirit Statue\"],\r\n\tsource : [[\"SCC\", 216]],\r\n\tsize : 3,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Any alignment\",\r\n\tac : 14,\r\n\thp : 26,\r\n\thd : [4, 8],\r\n\tspeed : \"30 ft\",\r\n\tscores : [14, 9, 15, 12, 13, 8],\r\n\tskills : {\r\n\t\t\"arcana\" : 5,\r\n\t\t\"history\" : 5,\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tlanguages : \"any languages it knew in life\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Counsel of the Past (2/Day)\",\r\n\t\tdescription : \"The spirit statue touches one creature. Once within the next 10 minutes, that creature can roll a d4 and add the number rolled to one ability check of its choice, immediately after rolling the d20.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"When the spirit statue is reduced to 0 hit points, the statue crumbles, and the spirit returns to the afterlife in a burst of ghostly white flame. Each creature within 5 ft of it must succeed on a DC 12 Constitution saving throw or take 1d6 radiant damage.\"\r\n\t}]\r\n};\r\n\n// pub_20220125_MotM.js\r\n// This file adds all the player-material from Mordenkainen Presents: Monsters of the Multiverse to MPMB's Character Record Sheet\r\n// Includes many contributions by Nod_Hero and BraabHimself\r\n\r\n// Define the source\r\nSourceList.MotM = {\r\n\tname : \"Mordenkainen Presents: Monsters of the Multiverse\",\r\n\tabbreviation : \"MotM\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/monsters-of-the-multiverse\",\r\n\tdate : \"2022/01/25\" // box set release date\r\n};\r\n\r\n//Add Races\r\nRaceList[\"multiverse aarakocra\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*aarakocra).*$/i,\r\n\tname : \"Multiverse Aarakocra\",\r\n\tsortname : \"Aarakocra, Multiverse\",\r\n\tsource : [[\"MotM\", 5]],\r\n\tplural : \"Aarakocra\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /talon/i,\r\n\t\tname : \"Talons\",\r\n\t\tsource : [[\"MotM\", 5]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"wind caller\" : {\r\n\t\t\tname : \"Wind Caller\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wind Caller\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Gust of Wind\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"gust of wind\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"gust of wind\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"gust of wind\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Wind Caller trait.\",\r\n\t\t\t\t\tchanges : \"Using Wind Caller, I can cast Gust of Wind once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Aarakocra\"+\r\n\t\t\"\\n \\u2022 Flight: I have a flying speed equal to my walking speed. To use this speed, I can't be wearing medium or heavy armor.\"+\r\n\t\t\"\\n \\u2022 Talons: My unarmed strikes with talons deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Wind Caller: At 3rd level, I can cast Gust of Wind without using a spell slot or material component once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for this (one-time choice).\"\r\n};\r\nvar MotM_Aasimar_trait = (typePF ? \"\\n\" : \"\") + \" \\u2022 Light Bearer: I know the Light cantrip.\" +\r\n\"\\n \\u2022 Healing Hands: As an action once per long rest, I can touch a creature and heal it for a number of d4s equal to my Prof\" + (typePF ? \".\" : \"iciency\") + \" Bonus.\";\r\nvar MotM_Aasimar_HealingHands = {\r\n\tname : \"Healing Hands\",\r\n\tminlevel : 1,\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tadditional : ProficiencyBonusList.map(function(n) { return n + \"d4 healing\"; }),\r\n\taction : [[\"action\", \"\"]]\r\n};\r\nRaceList[\"multiverse aasimar\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*aasimar).*$/i,\r\n\tname : \"Multiverse Aasimar\",\r\n\tsortname : \"Aasimar, Multiverse\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Aasimar\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Celestial Revelation: At 3rd level, I choose one option from Necrotic Shroud, Radiant Consumption, or Radiant Soul. As a bonus action once per long rest, I can transform and gain its benefits. This transformation lasts for 1 minute or until I end it as a bonus action.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands\r\n\t}\r\n};\r\nAddRacialVariant(\"multiverse aasimar\", \"necrotic shroud\", {\r\n\tregExpSearch : /shroud/i,\r\n\tname : \"Necrotic Shroud Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tabilitySave : 6,\r\n\ttrait : \"Aasimar (Necrotic Shroud)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Necrotic Shroud (3rd level): Once per long rest, I can transform for 1 minute as a bonus action (start/end), causing enemies within 10 ft to make a Cha save (DC 8 + Cha mod + Prof Bonus) or become frightened of me until my next turn ends. Also, once on each of my turns, I can deal my Prof Bonus in necrotic damage to one damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"necrotic shroud\" : {\r\n\t\t\tname : \"Necrotic Shroud\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" necrotic damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"multiverse aasimar\", \"radiant consumption\", {\r\n\tregExpSearch : /consumption/i,\r\n\tname : \"Radiant Consumption Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\ttrait : \"Aasimar (Radiant Consumption)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Radiant Consumption (3rd level): Once per long rest, I can transform for 1 minute as a bonus action (start/end). I shed 10-ft radius bright light and 10-ft dim light. At the end of my turns, all in this bright light take my Prof Bonus in radiant damage. Also, once on my turns, I can deal Prof Bonus in radiant damage to one damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"radiant consumption\" : {\r\n\t\t\tname : \"Radiant Consumption\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" radiant damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"multiverse aasimar\", \"radiant soul\", {\r\n\tregExpSearch : /soul/i,\r\n\tname : \"Radiant Soul Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\ttrait : \"Aasimar (Radiant Soul)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Radiant Soul (3rd level): As a bonus action once per long rest, I can transform to gain spectral wings that give my a flying speed equal to my walking speed. These last for 1 minute or until I dismiss them as a bonus action. Once on each of my turns while active, I can deal my Prof Bonus in radiant damage to one target damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"radiant soul\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" radiant damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nRaceList[\"multiverse bugbear\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*bugbear).*$/i,\r\n\tname : \"Multiverse Bugbear\",\r\n\tsortname : \"Bugbear, Multiverse\",\r\n\tsource : [[\"MotM\", 8]],\r\n\tplural : \"Bugbears\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tskills : [\"Stealth\"],\r\n\tscoresGeneric : true,\r\n\tcarryingCapacity : 2,\r\n\ttrait : \"Bugbear (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have adv. on saves to avoid or end being charmed.\"+\r\n\t\t\"\\n \\u2022 Powerful Build: I count as one size larger for the weight I can carry.\"+\r\n\t\t\"\\n \\u2022 Long-Limbed: I add 5 ft of reach with my melee attacks on my turn.\"+\r\n\t\t\"\\n \\u2022 Sneaky: I am proficient in Stealth and can move through and stop in a space large enough for a Small creature without squeezing.\"+\r\n\t\t\"\\n \\u2022 Surprise Attack: My attacks deal +2d6 damage if the target hasn't taken a turn yet\" + (typePF ? \" in the current combat.\" : \".\")\r\n};\r\nRaceList[\"multiverse centaur\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*centaur).*$/i,\r\n\tname : \"Multiverse Centaur\",\r\n\tsortname : \"Centaur, Multiverse\",\r\n\tsource : [[\"MotM\", 9]],\r\n\tplural : \"Centaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\r\n\t\tname : \"Hooves\",\r\n\t\tsource : [[\"MotM\", 9]],\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\tdescription : \"Use as bonus action after charge 30 ft\",\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : [[\"bonus action\", \"Hooves (after charge)\"]],\r\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, or Survival\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Centaur\"+\r\n\t\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\r\n\t\t\"\\n \\u2022 Hooves: I can use my hooves for unarmed strikes that deal 1d6 bludgeoning damage.\"+\r\n\t\t\"\\n \\u2022 Charge: If I move 30 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can make a hooves attack against it as a bonus action.\"+\r\n\t\t\"\\n \\u2022 Equine Build: I count as one size larger for my carrying capacity and the weight I can push, drag, or lift. Because of my hooves, 1 ft of movement while climbing costs me 4 ft.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse changeling\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*changeling).*$/i,\r\n\tname : \"Multiverse Changeling\",\r\n\tsortname : \"Changeling, Multiverse\",\r\n\tsource : [[\"MotM\", 41]],\r\n\tplural : \"Changelings\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Deception, Insight, Intimidation, Performance, and Persuasion\",\r\n\tage : \" typically live to be around 100 years old. While a changeling can transform to conceal their age, the effects of aging affect them similarly to humans\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Changeling\"+\r\n\t\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\r\n\t\t\"\\n \\u2022 Shapechanger: As an action, I can change my appearance and voice to or from a humanoid-shaped form I have seen, not changing my equipment. I determine the specifics of the form like hair length, eye color, and sex. I can adjust my height and weight between Medium and Small and can appear as a member of another race, though none of my game statistics change. I revert back when I die.\"+\r\n\t\t(typePF ? \"\\n \\u2022 Changeling Instincts: I gain proficiency with 2 of the following skills: Deception, Insight, Intimidation, Performance, or Persuasion.\" : \"\"),\r\n\taction : [[\"action\", \"Shapechanger\"]]\r\n};\r\nRaceList[\"multiverse deep gnome\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))((?=.*\\b(underdarks?|deep|depths?)\\b)(?=.*\\bgnomes?\\b)|(?=.*svirfneblin)).*$/i,\r\n\tname : \"Multiverse Svirfneblin\",\r\n\tsortname : \"Gnome, Deep, Multiverse\",\r\n\tsource : [[\"MotM\", 41]],\r\n\tplural : \"Svirfneblin\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. spells\"] },\r\n\tage : \" can live to be 500 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Svirfneblin (my creature type is humanoid, gnome)\"+\r\n\t\t\"\\n \\u2022 Svirfneblin Camouflage: Proficiency bonus per long rest, I can gain adv. on Stealth checks.\"+\r\n\t\t\"\\n \\u2022 Gnomish Magic Resistance: I have advantage on Int, Wis, and Cha saves vs. spells.\"+\r\n\t\t\"\\n \\u2022 Gift of the Svirfneblin: At 3rd level, I can cast Disguise Self once per long rest without a spell slot. At 5th level, I can cast Nondetection once per long rest without a spell slot or material components. I can also cast each spell using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"svirfneblin camouflage\" : {\r\n\t\t\tname : \"Svirfneblin Camouflage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"gift of the svirfneblin (level 3)\" : {\r\n\t\t\tname : \"Gift of the Svirfneblin (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Gift of the Svirfneblin\",\r\n\t\t\t\tspells : [\"disguise self\"],\r\n\t\t\t\tselection : [\"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Disguise Self\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"gift of the svirfneblin (level 5)\" : {\r\n\t\t\tname : \"Gift of the Svirfneblin (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Gift of the Svirfneblin\",\r\n\t\t\t\tspells : [\"nondetection\"],\r\n\t\t\t\tselection : [\"nondetection\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"nondetection\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"nondetection\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Gift of the Svirfneblin trait.\",\r\n\t\t\t\t\tchanges : \"Using Gift of the Svirfneblin, I can cast Nondetection once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Nondetection\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse duergar\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))((?=.*\\bduergars?\\b)|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(grey|gray|underdark)\\b))).*$/i,\r\n\tname : \"Multiverse Duergar\",\r\n\tsortname : \"Duergar, Multiverse\",\r\n\tsource : [[\"MotM\", 12]],\r\n\tplural : \"Duergar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { adv_vs : [\"charmed\", \"poisoned\", \"stunned\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" can live to be 350 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Duergar (my creature type is humanoid, dwarf)\"+\r\n\t\t\"\\n \\u2022 Dwarven Resilience \\u0026 Psionic Fortitude: I have advantage on saving throws to avoid or end being poisoned, charmed, or stunned and I have resistance to poison damage.\"+\r\n\t\t\"\\n \\u2022 Duergar Magic: At 3rd level, I learn the Enlarge/Reduce spell. At 5th level, I learn the Invisibility spell. I can cast each spell on myself once per long rest without using a spell slot or material components, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"duergar magic (level 3)\" : {\r\n\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"enlarge/reduce\" : {\r\n\t\t\t\t\trange : \"Self/\" + SpellsList[\"enlarge/reduce\"].range,\r\n\t\t\t\t\tcomponents : SpellsList[\"enlarge/reduce\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"enlarge/reduce\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Duergar Magic trait.\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Enlarge/Reduce on myself once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Enlarge/Reduce\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"duergar magic (level 5)\" : {\r\n\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self/\" + SpellsList[\"invisibility\"].range,\r\n\t\t\t\t\tcomponents : SpellsList[\"invisibility\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"invisibility\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Duergar Magic trait.\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Invisibility on myself once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Invisibility\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse eladrin\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Multiverse Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin), Multiverse\",\r\n\tsource : [[\"MotM\", 13]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\tabilitySave : [4, 5, 6],\r\n\ttrait : \"Eladrin (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Shifting Seasons: After finish a long rest, I can align with a season.\"+\r\n\t\t\"\\n \\u2022 Fey Step: Prof Bonus per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. At 3rd level, additional effects based on my season.\",\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Shifting Seasons\",\r\n\t\tsource : [[\"MotM\", 13]],\r\n\t\tpopupName : \"Eladrin Shifting Season Features\",\r\n\t\tadditional : \"save DC 8 + Prof Bonus + Int/Wis/Cha mod\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"\\u2022 Autumn (Eladrin Season)\",\r\n\t\t\t\" After using Fey Step, up to 2 creatures I can see within 10 ft of me must make a Wis save\",\r\n\t\t\t\" If failed, a target is charmed by me for 1 minute, or until I or my allies damage it\",\r\n\t\t\t\"\\u2022 Winter (Eladrin Season)\",\r\n\t\t\t\" When I use Fey Step, one target \" + (typePF ? \"with\" : \"\") + \"in 5 ft of where I teleported from must make a Wis save\",\r\n\t\t\t\" If failed, it is frightened of me until the end of my next turn\",\r\n\t\t\t\"\\u2022 Spring (Eladrin Season)\",\r\n\t\t\t\" When I use Fey Step, I can instead teleport one willing creature I touch within 5 ft of me\",\r\n\t\t\t\" It teleports to an unoccupied space of my choice that I can see within 30 ft of me\",\r\n\t\t\t\"\\u2022 Summer (Eladrin Season)\",\r\n\t\t\t\" After using Fey Step, each creature of my choice I can see within 5 ft of me takes damage\",\r\n\t\t\t\" This is fire damage equal to my proficiency bonus\"\r\n\t\t]\r\n\t}]\r\n};\r\nRaceList[\"multiverse firbolg\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*firbolg).*$/i,\r\n\tname : \"Multiverse Firbolg\",\r\n\tsortname : \"Firbolg, Multiverse\",\r\n\tsource : [[\"MotM\", 15]],\r\n\tplural : \"Firbolg\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Speech of Beast and Leaf\", 1],\r\n\tage : \" can live up to 500 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Firbolg\"+\r\n\t\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Powerful Build: I count as one size larger for my carrying capacity.\"+\r\n\t\t\"\\n \\u2022 Hidden Step: Proficiency Bonus per long rest, as a bonus action, I can turn invisible until my next turn starts, as per the Invisibility spell.\"+\r\n\t\t\"\\n \\u2022 Firbolg Magic: I can cast Detect Magic and Disguise Self each once per long rest, or using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Speech of Beast and Leaf: I can make my words understood, in a limited manner, by Beasts, Plants, and vegetation. I have advantage on Charisma checks to influence them.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"firbolg magic \" : {\r\n\t\t\tname : \"Firbolg Magic\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\tspells : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tselection : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Magic\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Disguise Self\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"disguise self\" : {\r\n\t\t\t\t\tdescription : \"Alter appearance, up to 3ft shorter/taller; Int(Investigation) check vs. spell DC to determine disguise\",\r\n\t\t\t\t\tchanges : \"Using Firbolg Magic, I can cast Disguise Self once per long rest without using a spell slot. When I cast it using Firbolg Magic, I can also seem up to 3 feet shorter or taller.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"hidden step\" : {\r\n\t\t\tname : \"Hidden Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse air genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bairs?\\b).*$/i,\r\n\tname : \"Multiverse Air Genasi\",\r\n\tsortname : \"Genasi, Air, Multiverse\",\r\n\tsource : [[\"MotM\", 16]],\r\n\tplural : \"Air genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Air Genasi\"+\r\n\t\"\\n \\u2022 Unending Breath: I can hold my breath indefinitely while I am not incapacitated.\"+\r\n\t\"\\n \\u2022 Lightning Resistance: I have resistance to lightning damage.\"+\r\n\t\"\\n \\u2022 Mingle with the Wind: I know the Shocking Grasp cantrip. At 3rd level, I learn Feather Fall. At 5th level, I learn Levitate. I can cast each spell without using a spell slot or material components once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Mingle with the Wind\",\r\n\t\tspells : [\"shocking grasp\"],\r\n\t\tselection : [\"shocking grasp\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"mingle with the wind (level 3)\" : {\r\n\t\t\tname : \"Mingle with the Wind (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"feather fall\"],\r\n\t\t\t\tselection : [\"feather fall\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Feather Fall\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"feather fall\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"feather fall\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"feather fall\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Mingle with the Wind trait.\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Feather Fall once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"mingle with the wind (level 5)\" : {\r\n\t\t\tname : \"Mingle with the Wind (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\tselection : [\"levitate\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Levitate\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"levitate\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"levitate\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Mingle with the Wind trait.\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Levitate once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse earth genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bearths?\\b).*$/i,\r\n\tname : \"Multiverse Earth Genasi\",\r\n\tsortname : \"Genasi, Earth, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Earth genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Earth Genasi\"+\r\n\t\"\\n \\u2022 Earth Walk: I can move across difficult terrain without expending extra movement if I am using my walking speed on the ground or a floor.\"+\r\n\t\"\\n \\u2022 Merge with Stone: I can cast the Blade Ward cantrip as normal and as a bonus action Prof Bonus times per long rest. At 5th level, I can cast Pass Without Trace without using a spell slot or material component once per long rest, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"Merge with Stone (level 1)\" : {\r\n\t\t\tname : \"Merge with Stone\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"blade ward\"],\r\n\t\t\t\tselection : [\"blade ward\"],\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Blade Ward (as bonus action)\",\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"bonus action\", \"Blade Ward\"]],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"blade ward\" : {\r\n\t\t\t\t\ttime : \"1 a/bns\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Blade Ward as a bonus action a number of times per long rest equal to my proficiency bonus.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"merge with stone (level 5)\" : {\r\n\t\t\tname : \"Merge with Stone (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"pass without trace\"],\r\n\t\t\t\tselection : [\"pass without trace\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Pass Without Trace\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"pass without trace\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"pass without trace\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Merge with Stone trait.\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Pass Without Trace once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse fire genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bfires?\\b).*$/i,\r\n\tname : \"Multiverse Fire Genasi\",\r\n\tsortname : \"Genasi, Fire, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Fire genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Fire Genasi\"+\r\n\t\"\\n \\u2022 Fire Resistance: I have resistance to fire damage.\"+\r\n\t\"\\n \\u2022 Reach to the Blaze: I know the Produce Flame cantrip. At 3rd level, I learn Burning Hands. At 5th level, I learn Flame Blade. I can cast each spell without using a spell slot or material components once per long rest, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Reach to the Blaze\",\r\n\t\tspells : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"reach to the blaze (level 3)\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Burning Hands\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"reach to the blaze (level 5)\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze\",\r\n\t\t\t\tspells : [\"flame blade\"],\r\n\t\t\t\tselection : [\"flame blade\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Flame Blade\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"flame blade\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"flame blade\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"flame blade\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Reach to the Blaze trait.\",\r\n\t\t\t\t\tchanges : \"Using Reach to the Blaze, I can cast Flame Blade once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse water genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bwaters?\\b).*$/i,\r\n\tname : \"Multiverse Water Genasi\",\r\n\tsortname : \"Genasi, Water, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Water genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Acid\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Water Genasi\"+\r\n\t\"\\n \\u2022 Amphibious: I can breathe air and water\" + (typePF ? \"and I have a swimming speed equal to my walking speed.\" : \", have a swimming speed equal to walking speed.\")+\r\n\t\"\\n \\u2022 Acid Resistance: I have resistance to acid damage.\"+\r\n\t\"\\n \\u2022 Call to the Wave: I know the Acid Splash cantrip. At 3rd level, I can cast Create or Destroy Water without using a spell slot once per long rest. At 5th level, I can cast Water Walk without using a spell slot or material components once per long rest. I can also cast each spell using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these\" + (typePF ? \" (one-time choice).\" : \".\"),\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Call to the Wave\",\r\n\t\tspells : [\"acid splash\"],\r\n\t\tselection : [\"acid splash\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"call to the wave (level 3)\" : {\r\n\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave\",\r\n\t\t\t\tspells : [\"create or destroy water\"],\r\n\t\t\t\tselection : [\"create or destroy water\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Create or Destroy Water\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"call to the wave (level 5)\" : {\r\n\t\t\tname : \"Call to the Wave (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave\",\r\n\t\t\t\tspells : [\"water walk\"],\r\n\t\t\t\tselection : [\"water walk\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Water Walk\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"water walk\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"water walk\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"water walk\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Call to the Wave trait.\",\r\n\t\t\t\t\tchanges : \"Using Call to the Wave, I can cast Water Walk once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse githyanki\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*githyanki).*$/i,\r\n\tname : \"Multiverse Githyanki\",\r\n\tsortname : \"Githyanki, Multiverse\",\r\n\tsource : [[\"MotM\", 18]],\r\n\tplural : \"Githyanki\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Psychic\"],\r\n\tskillstxt : \"Choose any one skill that lasts until the end of my next long rest\",\r\n\ttoolProfs : [[\"Astral Knowledge: tool/weapon\", 1]],\r\n\tage : \" typically live to be around 100 years old. Githyanki who reside in the Astral Plane can live indefinitely.\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Githyanki\"+\r\n\t\t\"\\n \\u2022 Astral Knowledge: When I finish a long rest, I gain proficiency with 1 skill and with 1 weapon or tool from the PHB until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Githyanki Psionics: I know the Mage Hand cantrip, but require no components to cast it and the hand is invisible. At 3rd level, I learn Jump. At 5th level, I learn Misty Step. I can cast each without using components or a spell slot once per long rest, as well as by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githyanki Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\r\n\t\t\tchanges : \"Using Githyanki Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"githyanki psionics (level 3)\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (3)\",\r\n\t\t\t\tspells : [\"jump\"],\r\n\t\t\t\tselection : [\"jump\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Jump\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"jump\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"jump\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"jump\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Githyanki Psionics trait.\",\r\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Jump once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"githyanki psionics (level 5)\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (5)\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Misty Step\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"misty step\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"misty step\"].components + \"*\",\r\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Misty Step once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n// Githzerai\r\nRaceList[\"multiverse githzerai\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*githzerai).*$/i,\r\n\tname : \"Multiverse Githzerai\",\r\n\tsortname : \"Githzerai, Multiverse\",\r\n\tsource : [[\"MotM\", 19]],\r\n\tplural : \"Githzerai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\r\n\tdmgres : [\"Psychic\"],\r\n\tage : \" typically live to be around 100 years old. Githzerai who reside in the Astral Plane can live indefinitely.\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Githzerai\"+\r\n\t\t\"\\n \\u2022 Githzerai Psionics: I know the Mage Hand cantrip, but require no components to cast it and the hand is invisible. At 3rd level, I learn Shield. At 5th level, I learn Detect Thoughts. I can cast each without using components or a spell slot once per long rest, or by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Mental Discipline: I have advantage on saving throws to avoid or end the charmed and frightened conditions on myself.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githzerai Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\r\n\t\t\tchanges : \"Using Githzerai Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"githzerai psionics (level 3)\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (3)\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Shield\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"shield\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"shield\"].components + \"*\",\r\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Shield once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"githzerai psionics (level 5)\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (5)\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Thoughts\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect thoughts\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"detect thoughts\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"detect thoughts\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Githzerai Psionics trait.\",\r\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Detect Thoughts once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse goblin\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*goblin).*$/i,\r\n\tname : \"Multiverse Goblin\",\r\n\tsortname : \"Goblin, Multiverse\",\r\n\tsource : [[\"MotM\", 20]],\r\n\tplural : \"Goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"fury of the small\" : {\r\n\t\t\tname : \"Fury of the Small\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" damage\"; })\r\n\t\t}\r\n\t},\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Goblin (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have advantage on saving throws to avoid or end the charmed condition on myself.\"+\r\n\t\t\"\\n \\u2022 Fury of the Small: A number of times per long rest equal to my Proficiency Bonus, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my Proficiency Bonus.\"+\r\n\t\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\nRaceList[\"multiverse goliath\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*goliath).*$/i,\r\n\tname : \"Multiverse Goliath\",\r\n\tsortname : \"Goliath, Multiverse\",\r\n\tsource : [[\"MotM\", 21]],\r\n\tplural : \"Goliaths\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Athletics\"],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"stone's endurance\" : {\r\n\t\t\tname : \"Stone's Endurance\",\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Goliath\"+\r\n\t\t\"\\n \\u2022 Stone's Endurance: Proficiency Bonus per long rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\t\"\\n \\u2022 Little Giant: I have proficiency in the Athletics skill and count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse hobgoblin\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*hobgoblin).*$/i,\r\n\tname : \"Multiverse Hobgoblin\",\r\n\tsortname : \"Hobgoblin, Multiverse\",\r\n\tsource : [[\"MotM\", 23]],\r\n\tplural : \"Hobgoblins\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tfeatures : {\r\n\t\t\"fey gift\" : {\r\n\t\t\tname : \"Fey Gift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \" (Help action)\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"fortune from the many\" : {\r\n\t\t\tname : \"Fortune from the Many\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"fey gift: additional effect\" : {\r\n\t\t\tname : \"Fey Gifts: Additional Effects\",\r\n\t\t\tminlevel : 3,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Whenever I use Fey Gift to take the Help action, I can choose one of these additional effects:\",\r\n\t\t\t\t\t\" \\u2022 Hospitality: The one I help and I each gain 1d6 + my Prof Bonus in temporary HP\",\r\n\t\t\t\t\t\" \\u2022 Passage: The one I help and I both gain +10 ft walking speed until my next turn stats\",\r\n\t\t\t\t\t\" \\u2022 Spite: The first time the one I help hits an attack roll before my next turn starts,\",\r\n\t\t\t\t\t\"   the creature hit gains disadvantage on its next attack roll within the next minute\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hobgoblin (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have adv. on saves to avoid or end being charmed.\"+\r\n\t\t'\\n \\u2022 Fey Gift: Prof Bonus per long rest, I can take the Help action as a bonus action. From 3rd-level, I can produce an additional effect when I do this: Hospitality, Passage, or Spite.'+\r\n\t\t\"\\n \\u2022 Fortune from the Many: Prof Bonus per long rest, when I miss an attack or fail an ability check or saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +3).\"\r\n};\r\nRaceList[\"multiverse kenku\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*kenku).*$/i,\r\n\tname : \"Multiverse Kenku\",\r\n\tsortname : \"Kenku, Multiverse\",\r\n\tsource : [[\"MotM\", 24]],\r\n\tplural : \"Kenku\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose any two skills\",\r\n\tabilitySave : 6,\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"kenku recall\" : {\r\n\t\t\tname : \"Kenku Recall\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kenku\"+\r\n\t\t\"\\n \\u2022 Expert Duplication: I have adv. on checks to produce exact copies of writing or craftwork.\"+\r\n\t\t\"\\n \\u2022 Kenku Recall: Proficiency Bonus per long rest, I can give myself advantage on an ability check using any skill in which I have proficiency.\"+\r\n\t\t\"\\n \\u2022 Mimicry: I can mimic sounds and voices I have heard. Creatures hearing me can determine the imitation with a successful Wisdom (Insight) check against a DC of 8 + my Proficiency Bonus + my Charisma modifier.\"\r\n};\r\nvar MotM_Kobold_Draconic_Cry = \"\\n \\u2022 Draconic Cry: As a bonus action, I can let out a cry. Until the start of my next turn, my allies and I have advantage on attack rolls against any enemies within 10 ft of me who could hear the cry. I can do this a number of times per long rest equal to my Proficiency Bonus.\";\r\nRaceList[\"multiverse kobold\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*kobold).*$/i,\r\n\tname : \"Multiverse Kobold\",\r\n\tsortname : \"Kobold, Multiverse\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tplural : \"Kobolds\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"draconic cry\" : {\r\n\t\t\tname : \"Draconic Cry\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy: Choose one of the following with the \"Racial Options\" button:'+\r\n\t\t\"\\n    - Defiance: I have advantage on saves vs. being frightened\"+\r\n\t\t\"\\n    - Draconic Sorcery: I know one sorcerer cantrip of my choice\"+\r\n\t\t\"\\n    - Craftiness: I gain proficiency in one of the following: Arcana, Investigation, Medicine, Sleight of Hand, or Survival.\"+\r\n\t\tMotM_Kobold_Draconic_Cry\r\n};\r\nAddRacialVariant(\"multiverse kobold\", \"craftiness\", {\r\n\tregExpSearch : /craftiness/i,\r\n\tname : \"Craftiness Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tskillstxt : \"Choose one from Arcana, Investigation, Medicine, Sleight of Hand, or Survival\",\r\n\ttrait : \"Kobold\"+\r\n\t\t\"\\n \\u2022 Kobold Legacy (Craftiness): I gain proficiency in one of the following skills of my choice: Arcana, Investigation, Medicine, Sleight of Hand, or Survival.\"+\r\n\t\tMotM_Kobold_Draconic_Cry\r\n});\r\nAddRacialVariant(\"multiverse kobold\", \"defiance\", {\r\n\tregExpSearch : /defiance/i,\r\n\tname : \"Defiance Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tplural : \"Kobolds\",\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy (Defiance): I have advantage on saving throws to avoid or end the frightened condition on myself.'+\r\n\t\tMotM_Kobold_Draconic_Cry,\r\n});\r\nAddRacialVariant(\"multiverse kobold\", \"draconic sorcery\", {\r\n\tregExpSearch : /sorcery/i,\r\n\tname : \"Draconic Sorcery Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Kobold Legacy\",\r\n\t\t\"class\" : \"sorcerer\",\r\n\t\tlevel : [0, 0],\r\n\t}],\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy (Draconic Sorcery): I know one cantrip from the sorcerer spell list. Intelligence, Wisdom, or Charisma is my spellcasting ability for it (one-time choice).'+\r\n\t\tMotM_Kobold_Draconic_Cry,\r\n});\r\n// Lizardfolk\r\nRaceList[\"multiverse lizardfolk\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*lizard(folk|man|men)).*$/i,\r\n\tname : \"Multiverse Lizardfolk\",\r\n\tsortname : \"Lizardfolk, Multiverse\",\r\n\tsource : [[\"MotM\", 26]],\r\n\tplural : \"Lizardfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tskillstxt : \"Choose two from Animal Handling, Medicine, Nature, Perception, Stealth, and Survival\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bbite\\b/i,\r\n\t\tname : \"Bite\",\r\n\t\tsource : [[\"MotM\", 26]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\r\n\t\tname : \"Natural Armor\",\r\n\t\tsource : [[\"MotM\", 26]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"hungry jaws\" : {\r\n\t\t\tname : \"Hungry Jaws\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return n + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Lizardfolk\"+\r\n\t\t\"\\n \\u2022 Bite: My unarmed strikes with my fanged maw deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 15 minutes at a time.\"+\r\n\t\t\"\\n \\u2022 Hungry Jaws: Prof Bonus per long rest, as a bonus action, I can make a special bite attack. If it hits, it deals damage and I gain temporary HP equal to my proficiency bonus.\"+\r\n\t\t\"\\n \\u2022 Natural Armor: I have an AC of 13 + Dexterity modifier + shield.\"+\r\n\t\t\"\\n \\u2022 Nature's Intuition: I gain proficiency with two of the following  Animal Handling, Medicine, Nature, Perception, Stealth, or Survival.\"\r\n};\r\nRaceList[\"multiverse minotaur\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*minotaur).*$/i,\r\n\tname : \"Multiverse Minotaur\",\r\n\tsortname : \"Minotaur, Multiverse\",\r\n\tsource : [[\"MotM\", 27]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"MotM\", 27]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tdescription : \"Attack as a bonus action after moving 20 ft with the Dash action\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tabilitySave : 1,\r\n\tvision : [[\"Always know north\", 0], [\"Adv. on Survival to navigate or track\", 0]],\r\n\taction : [[\"bonus action\", \"Goring Rush (with Dash)\"], [\"bonus action\", \"Hammering Horns (after hit)\"]],\r\n\ttrait : \"Minotaur\"+(typePF ? \"\\n\" : \"\")+\r\n\t\t\" \\u2022 Horns: My unarmed strikes with horns deal 1d6 piercing damage.\"+\r\n\t\t\"\\n \\u2022 Goring Rush: When taking a Dash action and moving at least 20 ft, I can make a horns attack as a bonus action.\"+\r\n\t\t\"\\n \\u2022 Hammering Horns: As a bonus action after I hit a melee attack on my turn during my Attack action, I can shove the target, if it's up to one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 10 ft away from me.\"+\r\n\t\t\"\\n \\u2022 Labyrinthine Recall: \" + (typePF ? \"I always know which direction is north, and have adv. on any Wis (Survival) check I make to navigate or track.\" : \"I have adv. on Survival to navigate or track and always know north.\")\r\n};\r\nRaceList[\"multiverse orc\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))(?=.*orc).*$/i,\r\n\tname : \"Multiverse Orc\",\r\n\tsortname : \"Orc, Multiverse\",\r\n\tsource : [[\"MotM\", 28]],\r\n\tplural : \"Orcs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Orc\"+\r\n\t\t\"\\n \\u2022 Adrenaline Rush: Proficiency bonus per long rest, I can take the Dash action as a bonus action and gain my proficiency bonus in temporary hit points.\"+\r\n\t\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\"\\n \\u2022 Relentless Endurance: Once per long rest, when I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead.\",\r\n\tfeatures : {\r\n\t\t\"adrenaline rush\" : {\r\n\t\t\tname : \"Adrenaline Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t},\r\n\t\t\"relentless endurance\" : {\r\n\t\t\tname : \"Relentless Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse satyr\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*satyr).*$/i,\r\n\tname : \"Multiverse Satyr\",\r\n\tsortname : \"Satyr, Multiverse\",\r\n\tsource : [[\"MotM\", 29]],\r\n\tplural : \"Satyr\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"spells\"] },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(satyr|\\bram\\b))(?=.*headbutt).*$/i,\r\n\t\tname : \"Satyr Headbutt\",\r\n\t\tsource : [[\"MotM\", 29]],\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tscoresGeneric : true,\r\n\tskills : [\"Performance\", \"Persuasion\"],\r\n\ttrait : \"Satyr (my creature type is fey, rather than humanoid)\"+\r\n\t\t\"\\n \\u2022 Ram: My unarmed strikes with my horned head deal 1d6 bludgeoning damage.\"+\r\n\t\t\"\\n \\u2022 Magic Resistance: I have advantage on saves against spells.\"+\r\n\t\t\"\\n \\u2022 Mirthful Leaps: Whenever I make a long or high jump, I can roll a d8 and add the number rolled to the number of feet I cover, even when making a standing jump. This extra distance costs movement as normal.\"+\r\n\t\t\"\\n \\u2022 Reveler: I have proficiency in Performance, Persuasion, and one musical instrument.\"\r\n};\r\nRaceList[\"multiverse sea elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\r\n\tname : \"Multiverse Sea Elf\",\r\n\tsortname : \"Elf, Sea, Multiverse\",\r\n\tsource : [[\"MotM\", 30]],\r\n\tplural : \"Sea Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Friend of the Sea\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Sea Elf (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Child of the Sea. I can breathe air and water and have resistance to cold damage.\"+\r\n\t\t\"\\n \\u2022 Friend of the Sea: I can communicate simple ideas to beasts with a swimming speed. It can understand my words, though I have no special ability to understand it in return.\"\r\n};\r\nRaceList[\"multiverse shadar-kai\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\r\n\tname : \"Multiverse Shadar-kai\",\r\n\tsortname : \"Elf, Shadow (Shadar-kai), Multiverse\",\r\n\tsource : [[\"MotM\", 31]],\r\n\tplural : \"Shadar-kai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tdmgres : [\"Necrotic\"],\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Shadar-kai (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Blessing of the Raven Queen: Prof Bonus per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. Once I reach 3rd level, I then also appear translucent and have resistance to all damage until the start of my next turn.\",\r\n\tfeatures : {\r\n\t\t\"blessing of the raven queen\" : {\r\n\t\t\tname : \"Blessing of the Raven Queen\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n[{\r\n\tname : \"Beasthide\",\r\n\tregExpSearch : \"(?=.*beast)(?=.*hide)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Beasthide): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance. This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain 1d6 + twice my proficiency bonus in temporary hit points and a +1 bonus to my AC.\",\r\n\textra : {\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"1d6 + \" + (2 * n) + \" temp HP\"; })\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}, {\r\n\tname : \"Longtooth\",\r\n\tregExpSearch : \"(?=.*long)(?=.*(tooth|teeth))\",\r\n\ttrait : \"\\n \\u2022 Shifting (Longtooth): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points and my fangs elongate. As part of the bonus action when I shift and as a bonus action while shifted, I can make a single unarmed strike with my elongated fangs that deals 1d6 piercing damage.\",\r\n\textra : {\r\n\t\taction : [[\"bonus action\", \"Longtooth Fangs (while shifted)\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\t\tname : \"Longtooth Fangs\",\r\n\t\t\tsource : [[\"MotM\", 32]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Only while shifted; One attack as bonus action\",\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}, {\r\n\tname : \"Swiftstride\",\r\n\tregExpSearch : \"(?=.*swift)(?=.*stride)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Swiftstride): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points and +10 ft to my walking speed. Additionally, as a reaction when a creature ends its turn within 5 ft of me, I can move up to 10 ft. This reactive movement doesn't provoke opportunity attacks.\",\r\n\textra : {\r\n\t\taction : [['reaction', 'Reactive Stride (while shifted)']]\r\n\t}\r\n}, {\r\n\tname : \"Wildhunt\",\r\n\tregExpSearch : \"(?=.*wild)(?=.*hunt)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Wildhunt): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance. This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points. While I'm shifted, I have advantage on Wisdom checks and no creature within 30 ft of me can make an attack roll with advantage against me unless I'm incapacitated.\",\r\n\textra : {\r\n\t\tvision : [\r\n\t\t\t[\"Darkvision\", 60],\r\n\t\t\t[\"While shifted, creatures within 30 ft can't attack me with adv.\", 0]\r\n\t\t],\r\n\t\tsavetxt : { text : [\"While shifted, Adv. on Wis checks\"] }\r\n\t}\r\n}].forEach(function(o) {\r\n\tvar objNm = \"multiverse \" + o.name.toLowerCase() + \" shifter\";\r\n\tRaceList[objNm] = {\r\n\t\tregExpSearch : RegExp(\"^(?=.*(multiverse|motm\\\\b))\" + o.regExpSearch + \"(?=.*shifter).*$\", \"i\"),\r\n\t\tname : \"Multiverse \" + o.name + \" Shifter\",\r\n\t\tsortname : \"Shifter, \" + o.name + \", Multiverse\",\r\n\t\tsource : [[\"MotM\", 32]],\r\n\t\tplural : o.name + \" shifters\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskillstxt : \"Choose one skill from Acrobatics, Athletics, Intimidation, or Survival\",\r\n\t\tscoresGeneric : true,\r\n\t\ttrait : o.name + \" Shifter\"+\r\n\t\t\t\"\\n \\u2022 Bestial Instincts: I have proficiency in Acrobatics, Athletics, Intimidation, or Survival.\"+\r\n\t\t\to.trait,\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : ProficiencyBonusList.map(function(n) { return 2 * n + \" temp HP\"; }),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tfor (var attr in o.extra) {\r\n\t\tRaceList[objNm][attr] = o.extra[attr];\r\n\t}\r\n});\r\nRaceList[\"tabaxi-motm\"] = { // just a plain improvement over the previous, no need to make it a separate \"multiverse\" choice\r\n\tregExpSearch : /tabaxi/i,\r\n\tname : \"Tabaxi\",\r\n\tsource : [[\"MotM\", 33]],\r\n\tplural : \"Tabaxi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(tabaxi|\\bcat\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Tabaxi Claws\",\r\n\t\tsource : [[\"MotM\", 33]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tage : \" reach adulthood in their late teens and live less than 100 years [according to VGtM]\",\r\n\theight : \", when Medium sized, range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\") [according to VGtM]\",\r\n\tweight : \", when Medium sized, weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb) [according to VGtM]\",\r\n\theightMetric : \", when Medium sized, range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm) [according to VGtM]\",\r\n\tweightMetric : \", when Medium sized, weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tfeatures : {\r\n\t\t\"feline agility\" : {\r\n\t\t\tname : \"Feline Agility\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \" Turn\",\r\n\t\t\tadditional : \"still for 1 turn to recover\",\r\n\t\t\ttooltip : \" (can be replenished by not moving for one whole turn)\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Tabaxi\"+\r\n\t\t\"\\n \\u2022 Cat's Talent: I have proficiency in Perception and Stealth.\"+\r\n\t\t\"\\n \\u2022 Cat's Claws: I can use my retractable claws to make unarmed strikes dealing 1d6 slashing damage. They also give me a climbing speed equal to my walking speed.\"+\r\n\t\t\"\\n \\u2022 Feline Agility: When moving on my turn in combat, I can move double my speed. Once I do this, I can't do it again until I don't move at all on one of my turns.\"\r\n};\r\nRaceList[\"tortle-motm\"] = { // just a plain improvement over the previous, no need to make it a separate \"multiverse\" choice\r\n\tregExpSearch : /tortle/i,\r\n\tname : \"Tortle\",\r\n\tsortname : \"Tortle\",\r\n\tsource : [[\"MotM\", 34]],\r\n\tplural : \"Tortles\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, Perception, Stealth, or Survival\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*shell).*$/i,\r\n\t\tname : \"Tortle's Shell\",\r\n\t\tsource : [[\"MotM\", 34]],\r\n\t\tac : 17,\r\n\t\tdex : -10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*\\bclaws?\\b).*$/i,\r\n\t\tname : \"Tortle's Claws\",\r\n\t\tsource : [[\"MotM\", 34]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tage : \" reach adulthood by the age of 15 and live an average of 50 years [according to the Tortle Package]\",\r\n\theight : \", when Medium sized, stand between 5 and 6 feet tall (4'10\\\" + 2d8\\\") [according to the Tortle Package]\",\r\n\tweight : \", when Medium sized, weigh around 450 lb (400 + 2d8 \\xD7 2d4 lb) [according to the Tortle Package]\",\r\n\theightMetric : \", when Medium sized, stand between 1,5 and 1,8 metres tall (150 + 5d8 cm) [according to the Tortle Package]\",\r\n\tweightMetric : \", when Medium sized, weigh around 190 kg (180 + 5d8 \\xD7 4d4 / 10 kg) [according to the Tortle Package]\",\r\n\taction : [[\"action\", \"Shell Defense (start)\"], [\"bonus action\", \"Shell Defense (end)\"]],\r\n\ttrait : \"Tortle\"+\r\n\t\t\"\\n \\u2022 Claws: My unarmed strikes with my claws deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 1 hour at a time.\"+\r\n\t\t\"\\n \\u2022 Natural Armor: I have a base AC of 17, but I can't add my Dex to it or wear armor.\"+\r\n\t\t\"\\n \\u2022 Shell Defense: As an action, I can withdraw into my shell and gain +4 AC and adv. on Str and Con saves, but I count as prone, have speed 0, have disadv. on Dex saves, and can't take reactions. The only action I can take is a bonus action to emerge from the shell.\"\r\n};\r\nRaceList[\"multiverse triton\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*triton).*$/i,\r\n\tname : \"Multiverse Triton\",\r\n\tsortname : \"Triton, Multiverse\",\r\n\tsource : [[\"MotM\", 35]],\r\n\tplural : \"Triton\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tlanguageProfs : [\"Common\", \"Emissary of the Sea\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Triton\"+\r\n\t\t\"\\n \\u2022 Control Air and Water: I can cast the Fog Cloud spell. At 3rd level, Gust of Wind. At 5th level, Water Walk. I can cast each without using a spell slot once per long rest, and by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Emissary of the Sea: I can communicate simple ideas to beasts, elementals, and monstrosities with a swimming speed. They can understand my words, though I have no special ability to understand them in return.\"+\r\n\t\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Amphibious: I can breathe air and water.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"control air and water (level 1)\" : {\r\n\t\t\tname : \"Control Air and Water (level 1)\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"fog cloud\"],\r\n\t\t\t\tselection : [\"fog cloud\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Fog Cloud\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"control air and water (level 3)\" : {\r\n\t\t\tname : \"Control Air and Water (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Gust of Wind\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"control air and water (level 5)\" : {\r\n\t\t\tname : \"Control Air and Water (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"water walk\"],\r\n\t\t\t\tselection : [\"water walk\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Water Walk\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse yuan-ti\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*yuan.ti).*$/i,\r\n\tname : \"Multiverse Yuan-Ti\",\r\n\tsortname : \"Yuan-Ti, Multiverse\",\r\n\tsource : [[\"MotM\", 36]],\r\n\tplural : \"Yuan-Ti\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"poisoned\", \"spells\"],\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Yuan-Ti\"+\r\n\t\t\"\\n \\u2022 Serpentine Spellcasting: I know the Poison Spray cantrip and I can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these spells (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Magic and Poison Resistance: I have advantage on saving throws against spells and on saving throws to avoid or end being poisoned. I also have resistance to poison damage.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Serpentine Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2,\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"One snake with Intelligence 3 or less save or charmed for the duration\",\r\n\t\t\tchanges : \"I can cast Animal Friendship at-will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"serpentine spellcasting (level 3)\" : {\r\n\t\t\tname : \"Serpentine Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Serpentine Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Suggestion\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Creatures\r\n\n// pub_20220315_CotN.js\r\n// This file adds all the magic items from Critical Role: Call of the Netherdeep to MPMB's Character Record Sheet\r\n\r\nSourceList.CotN = {\r\n\tname : \"Critical Role: Call of the Netherdeep [magic items]\",\r\n\tabbreviation : \"CotN\",\r\n\tabbreviationSpellsheet : \"MO\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Critical Role\",\r\n\turl : \"https://dnd.wizards.com/products/call-netherdeep\",\r\n\tdate : \"2022/03/15\"\r\n};\r\n\r\nCreatureList[\"young horizonback tortoise\"] = { // Contains contributions by Nod_Hero\r\n\tname : \"Young Horizonback Tortoise\",\r\n\tnameAlt : [\"Tortoise, Young Horizonback\"],\r\n\tsource : [[\"CotN\", 26]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 68,\r\n\thd : [8, 12],\r\n\tspeed : \"30 ft\",\r\n\tscores : [19, 11, 15, 2, 12, 5],\r\n\tpassivePerception : 11,\r\n\tlanguages : \"understands Goblin but can't speak\",\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"piercing\"],\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\",\r\n\t\tmodifiers : [1, \"\"]\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amphibious\",\r\n\t\tdescription : \"The tortoise can breathe air and water.\",\r\n\t}]\r\n};\r\n\r\nMagicItemsList[\"breathing bubble\"] = {\r\n\tname : \"Breathing Bubble\",\r\n\tsource : [[\"W\", 266], [\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This translucent, bubble-like sphere has a slightly tacky outer surface. I gain its benefits only while wearing it over my head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tdescriptionFull : \"This translucent, bubble-like sphere has a slightly tacky outer surface, and you gain the item's benefits only while wearing it over your head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nMagicItemsList[\"earring of message\"] = {\r\n\tname : \"Earring of Message\",\r\n\tsource : [[\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"The blue crystal of this earring is wrapped with delicate copper wire. The earring has 5 charges. While wearing it, I can use an action to expend 1 charge and cast the message spell. The earring regains 1d4 + 1 expended charges daily at dawn.\",\r\n\tdescriptionFull : \"The blue crystal of this earring is wrapped with delicate copper wire. The earring has 5 charges. While wearing it, you can use an action to expend 1 charge and cast the message spell. The earring regains 1d4 + 1 expended charges daily at dawn.\",\r\n\tusages : 5,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4+1\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"message\"],\r\n\t\tselection : [\"message\"],\r\n\t\tfirstCol : '1'\r\n\t}]\r\n};\r\nMagicItemsList[\"medal of muscle\"] = {\r\n\tname : \"Medal of Muscle\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as a an action, I can squeeze this medal tightly in the palm of my hand. Doing so gives me advantage on Strength checks and Strength saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"You can squeeze this medal tightly in the palm of your hand as an action. Doing so gives you advantage on Strength checks and Strength saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the conch\"] = {\r\n\tname : \"Medal of the Conch\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can rub this medal to gain a swimming speed equal to my walking speed for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to rub this medal, you gain a swimming speed equal to your walking speed for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the horizonback\"] = {\r\n\tname : \"Medal of the Horizonback\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as a reaction when I would be hit by an attack, I can increase my AC by 5 until the start of my next turn, including against the triggering attack. I must be wearing the medal and able to see the creature that made the triggering attack. Once this property has been used, the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you would be hit by an attack, you can use your reaction to increase your AC by 5 until the start of your next turn, including against the triggering attack. You must be wearing the medal and able to see the creature that made the triggering attack to use this property. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the maze\"] = {\r\n\tname : \"Medal of the Maze\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can trace the maze inscribed on this medal to gain advantage on Wisdom checks and to know the quickest route to the end of any nonmagical path or maze for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to trace the maze inscribed on this medal, you gain advantage on Wisdom checks and know the quickest route to the end of any nonmagical path or maze for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the meat pie\"] = {\r\n\tname : \"Medal of the Meat Pie\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can press this medal to my mouth to gain 2d4 + 2 temporary hit points. Once this property has been used, it can't be used again, and the medal becomes nonmagical. While magical, this medal is slightly warm to the touch (as if it's fresh from the oven) and smells faintly of baked pie crust.\",\r\n\tdescriptionFull : \"You gain 2d4 + 2 temporary hit points when you use an action to press this medal to your mouth. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"+\r\n\t\"\\n   While magical, this medal is slightly warm to the touch (as if it's fresh from the oven) and smells faintly of baked pie crust.\"\r\n};\r\nMagicItemsList[\"medal of the wetlands\"] = {\r\n\tname : \"Medal of the Wetlands\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can trace the edge of this medal, making it so that difficult terrain doesn't cost me extra movement for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to trace the edge of this medal, difficult terrain doesn't cost you extra movement for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of wit\"] = {\r\n\tname : \"Medal of Wit\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can press this medal to my temple to give me advantage on Intelligence checks and Intelligence saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"You can press this medal to your temple as an action. Doing so gives you advantage on Intelligence checks and Intelligence saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"ring of red fury\"] = {\r\n\tname : \"Ring of Red Fury\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"ring\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This ring allows me to breathe water and gives me a swimming speed equal to my walking speed. As a bonus action once per long rest, I can use it to, for 1 minute, have adv. on Str checks and saves, add my Prof Bonus to damage rolls of my attacks, ignore difficult terrain, be immune to paralyzed and restrained.\",\r\n\tdescriptionLong : \"While wearing this ring with a stripe of ruidium running through it, I am able to breathe water and I have a swimming speed equal to my walking speed. As a bonus action once per long rest, I can use it to, for 1 minute, have adv. on my Strength checks and saves, add my proficiency bonus to the damage rolls of my attacks, have difficult terrain not cost me extra movement, and be immune to being paralyzed and restrained. When I do this bonus action, I have to make a DC 20 Charisma save or gain 1 level of exhaustion and become corrupted. If the Apotheon is killed or redeemed, this ring turns into a Ring of Free Action.\",\r\n\tdescriptionFull : [\r\n\t\t\"This ring has a stripe of ruidium running through it. While wearing the ring, you gain the following benefits:\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Rage\") + \". As a bonus action, you can use the ring to gain the following benefits, which last for 1 minute or until you are incapacitated:\",\r\n\t\t\"\\u2022 You have advantage on Strength checks and Strength saving throws.\",\r\n\t\t\"\\u2022 When you hit with an attack, you can add your proficiency bonus to the damage roll.\",\r\n\t\t\"\\u2022 Difficult terrain doesn't cost you extra movement, and you are immune to the paralyzed and restrained conditions.\",\r\n\t\t\"You can't use this property of the ring again until you finish a long rest.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you use the Ruidium Rage property of the ring, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and the ring of red fury becomes a Ring of Free Action.\"\r\n\t].join(\"\\n   \"),\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nMagicItemsList[\"ruidium armor\"] = {\r\n\tname : \"Ruidium Armor\",\r\n\tnameTest : /ruidium.*armou?r/i,\r\n\tsource : [[\"CotN\", 215]],\r\n\ttype : \"armor (medium or heavy)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic armor containing ruidium gives me resistance to psychic damage, a swimming speed equal to my walking speed, and allows me to breathe water. If I roll a 1 on a save while wearing it, I must make a DC 15 Charisma save or gain 1 level of exhaustion and become corrupted by ruidium.\",\r\n\tdescriptionFull : [\r\n\t\t\"This magic armor has a dull, rusty color or has veins of ruidium running through it. While you wear this armor, you gain the following benefits:\",\r\n\t\t\"\\u2022 You have resistance to psychic damage.\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you roll a 1 on a saving throw while wearing this armor, you must make a DC 15 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and ruidium armor becomes +1 armor.\"\r\n\t].join(\"\\n   \"),\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Ruidium\", \"Armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Ruidium\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/medium|heavy/i).test(inObj.type) || (/hide/i).test(inObj.name);\r\n\t\t},\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\tdmgres : [\"Psychic\"],\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n};\r\nMagicItemsList[\"ruidium shield\"] = {\r\n\tname : \"Ruidium Shield\",\r\n\tsource : [[\"CotN\", 215]],\r\n\ttype : \"shield\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic shield gives me resistance to psychic damage, a swimming speed equal to my walking speed, and allows me to breathe water. As a reaction when I take psychic damage, I can have another creature I can see in 30 ft take the damage instead, but I must make a DC 20 Cha save or gain 1 level of exhaustion.\",\r\n\tdescriptionFull : [\r\n\t\t\"Tendrils of ruidium extend across the metal surface of this shield. While this shield is on your person, you gain the following benefits:\",\r\n\t\t\"\\u2022 You have resistance to psychic damage.\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Psychic Reflection\") + \". When you take psychic damage while holding the shield, you can use your reaction to choose another creature you can see within 30 feet of you. That creature takes the psychic damage you would have taken.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you use the shield's Psychic Reflection property, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and a ruidium shield becomes a +2 shield.\"\r\n\t].join(\"\\n   \"),\r\n\tweight : 6,\r\n\tshieldAdd : \"Ruidium Shield\",\r\n\tdmgres : [\"Psychic\"],\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\taction : [[\"reaction\", \" (if taking psychic damage)\"]]\r\n}\r\nMagicItemsList[\"ruidium weapon\"] = {\r\n\tname : \"Ruidium Weapon\",\r\n\tnameTest : \"Ruidium\",\r\n\tsource : [[\"CotN\", 216]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon deals an extra 2d6 psychic damage to creatures. It also allows me to breath water and gives me a swimming speed equal to my walking speed. If I roll a 1 on an attack roll with it, I must make a DC 20 Cha save or gain 1 level of exhaustion and become corrupted by ruidium.\",\r\n\tdescriptionFull : [\r\n\t\t\"This magic weapon has a dull, rusty color or has veins of ruidium running through it. While this weapon is on your person, you gain the following benefits:\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Strike\") + \". A creature you hit with this weapon takes an extra 2d6 psychic damage.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you roll a 1 on an attack roll made with this weapon, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and a ruidium weapon becomes a +2 weapon.\"\r\n\t].join(\"\\n   \"),\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ( /ruidium/i.test(v.WeaponTextName) ) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 psychic damage vs. creatures';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Ruidium\" in the name of a weapon, it will be treated as the magic item Ruidium Weapon. Whenever it hits a creature, it deals an extra 2d6 psychic damage.'\r\n\t\t]\r\n\t},\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n};\r\nMagicItemsList[\"teleportation tablet\"] = {\r\n\tname : \"Teleportation Tablet\",\r\n\tsource : [[\"CotN\", 216]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can break this clay tablet in half to create a 5-ft radius Teleportation Circle to its predetermined destination within 30 ft, lasting until the end of my next turn. I can learn its destination by studying it for 10 minutes and making a DC 21 Arcana check. Once broken, the tablet turns to dust.\",\r\n\tdescriptionFull : \"This clay tablet is eight inches long, four inches wide, and half an inch thick. Inscribed on it is the sigil sequence for a permanent teleportation circle. A creature that studies the sequence for 10 minutes can make a DC 21 Intelligence (Arcana) check, learning the circle's destination on a success.\"+\r\n\t\"\\n   You can use an action to break the tablet in half, turning it to dust. If the tablet is broken while it is on the same plane of existence as the teleportation circle whose sigil sequence was engraved on it, a 10-foot-diameter teleportation circle of glowing blue light appears on the ground in an unoccupied space you choose within 30 feet of you. This teleportation circle has the characteristics of one created using the teleportation circle spell, except that it connects to the teleportation circle whose sigil sequence appears on the tablet.\"+\r\n\t\"\\n   The teleportation circle created by the tablet disappears at the end of your next turn.\"\r\n};\r\n\r\n// Vestige of Divergence\r\nvar EGtW_Vestiges_Replace = function (sDescr) {\r\n\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|giving|grants|of|to|for) I\\b/ig, \"$1 me\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; });\r\n}\r\nvar EGtW_JewelOfThreePrayersFullDescription = [\r\n\t\"The Jewel of Three Prayers is a Vestige of Divergence. In ancient times, Alyxian the Apotheon bore this amulet as a symbol of his covenant with three Prime Deities: Sehanine the Moon Weaver, Avandra the Change Bringer, and Corellon the Arch Heart.[[ When the jewel is found, only Sehanine's power thrums within its dormant heart. The power of the other two deities waits to be reawakened by a hero \\u2014 or heroes \\u2014 who can follow in Alyxian's footsteps.]]\",\r\n\t\">>Dormant<<. In this state, the Jewel of Three Prayers is a glittering golden disk attached to a fine golden chain. The chain magically resizes to function as a necklace for the creature that wears it.\",\r\n\t\"In its Dormant State, the jewel has the following properties:\",\r\n\t\"\\u2022 You gain a +1 bonus to AC while wearing the jewel.\",\r\n\t\"\\u2022 While wearing or holding the jewel, you can use an action to cause it to shed bright light in a 15-foot radius and dim light for an additional 15 feet. The light lasts until you extinguish it (no action required).\",\r\n\t\"\\u2022 The jewel has 3 charges and regains all its expended charges daily at dawn. While holding the jewel, you can expend 1 charge from it to cast the invisibility spell.\",\r\n\t\">>Awakened<<. In this state, the jewel has received the blessing of Avandra the Change Bringer. Three delicate spires unfurl from the jewel's center, like the buds of flowers opening in the spring. Three lapis lazuli stones rest like dewdrops on these spires.\",\r\n\t\"The following benefits of the jewel improve:\",\r\n\t\"\\u2022 The bonus that the jewel confers to your AC increases to +2.\",\r\n\t\"\\u2022 Its number of charges increases to 5.\",\r\n\t\"The jewel gains the following additional properties, which you can use while wearing or holding it:\",\r\n\t\"\\u2022 You can expend 1 of the jewel's charges (no action required) to end one of the following conditions on yourself: grappled, paralyzed, or restrained.\",\r\n\t\"\\u2022 When another creature you can see within 60 feet of you fails a saving throw, you can expend 1 of the jewel's charges as a reaction to enable that creature to reroll the saving throw, potentially turning a failure into a success. The creature must use the new roll.\",\r\n\t\">>Exalted<<. In this state, the jewel has received the blessing of Corellon the Arch Heart. A gleaming emerald surrounded by a halo of gold appears on the jewel.\",\r\n\t\"The following benefits of the jewel improve:\",\r\n\t\"\\u2022 The bonus that the jewel confers to your AC increases to +3.\",\r\n\t\"\\u2022 Its number of charges increases to 7.\",\r\n\t\"The jewel gains the following additional properties, which you can use while wearing or holding it:\",\r\n\t\"\\u2022 You gain the ability to breathe water, and you gain a swimming speed equal to your walking speed.\",\r\n\t\"\\u2022 Each of your allies within 30 feet of you gains the ability to breathe water and gains a swimming speed equal to its walking speed.\",\r\n\t\"\\u2022 As a bonus action, you can expend 1 of the jewel's charges to target yourself or one willing creature you can see within 15 feet of yourself. The target teleports to an unoccupied space of your choice within 15 feet of yourself, along with any equipment the target is wearing or carrying. The target appears in a flash of golden radiance, and each creature of your choice within 5 feet of the target's new location must make a DC 18 Constitution saving throw. On a failed save, the creature takes 4d10 radiant damage and is blinded until the start of your next turn. On a successful save, the creature takes half as much damage and isn't blinded.\"\r\n];\r\nMagicItemsList[\"jewel of three prayers\"] = {\r\n\tname : \"Jewel of Three Prayers\",\r\n\tsource : [[\"CotN\", 213]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"The golden chain of this intricate jewel magically resizes to function as a necklace for the creature that wears it. In ancient times, Alyxian the Apotheon bore this amulet as a symbol of his covenant with three Prime Deities: Sehanine the Moon Weaver, Avandra the Change Bringer, and Corellon the Arch Heart.\",\r\n\tdescriptionFull : EGtW_JewelOfThreePrayersFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }).replace(/\\[\\[|\\]\\]/g, ''),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_JewelOfThreePrayersFullDescription).replace(/\\[\\[.*?\\]\\]/, '')\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"1\"\r\n\t}],\r\n\taction : [[\"action\", \" (shed light)\"]],\r\n\t\"dormant\" : {\r\n\t\tname : \"Jewel of Three Prayers [dormant]\",\r\n\t\tdescription : \"This piece of jewelry grants me +1 AC and has 3 charges, regaining all at dawn. As an action, I can use it to shed bright light in a 15-ft radius and dim for another 15 ft (extinguishing requires no action). I can expend 1 charge to cast Invisibility.\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}]\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Jewel of Three Prayers [awakened]\",\r\n\t\tdescription : \"This grants me +2 AC. It has 5 charges, regaining all at dawn. As an action, I can have it shed 15-ft radius bright light and dim for another 15 ft. I can use 1 charge to cast Invisibility or stop being grappled, paralyzed, or restrained. As a reaction when I see a creature in 60 ft fail a save, I can use 1 charge to have it reroll.\",\r\n\t\tusages : 5,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 2, magic : true, text : \"I gain a +2 bonus to AC while attuned.\"}],\r\n\t\taction : [[\"reaction\", \"Jewel of Three Prayers (reroll save)\"]]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Jewel of Three Prayers [exalted]\",\r\n\t\tdescription : \"This grants me +3 AC. It has 7 charges, regaining all at dawn. As an action, I can have it shed 15-ft radius bright light and dim for another 15 ft. I can use 1 charge to cast Invisibility or stop being grappled, paralyzed, or restrained. As a reaction when I see failed save in 60 ft, I can use 1 charge for a reroll. See notes.\",\r\n\t\tusages : 7,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 3, magic : true, text : \"I gain a +3 bonus to AC while attuned.\"}],\r\n\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\t\taction : [[\"reaction\", \"Jewel of Three Prayers (reroll save)\"], [\"bonus action\", \"Jewel of Three Prayers (teleport)\"]]\r\n\t}\r\n}\r\n\n// pub_20220816_Spelljammer.js\r\n/*\r\n\tThis file adds the Character Options content from the \"Spelljammer: Adventures in Space\" set\r\n\t(the \"Astral Adventurer's Guide\" book and the \"Boo's Astral Menagerie\" book)\r\n\tto MPMB's Character Record Sheet\r\n\r\n\tIncludes many contributions by Nod_Hero\r\n\r\n\t- ERRATA -\r\n\tNote that this document includes the second \"Spelljammer: Adventures in Space\" Errata\r\n\thttps://media.dndbeyond.com/compendium-images/errata/SAiS/SJA-Errata.pdf\r\n*/\r\n\r\n\r\n// Unless otherwise noted, page numbers refer to the \"Astral Adventurer's Guide\" book\r\nSourceList[\"S:AiS\"] = {\r\n\tname : \"Spelljammer: Adventures in Space\",\r\n\tabbreviation : \"S:AiS\",\r\n\tabbreviationSpellsheet : \"SJ\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Spelljammer\",\r\n\turl : \"https://dnd.wizards.com/products/spelljammer\",\r\n\tdate : \"2022/08/16\"\r\n};\r\n\r\n// Backgrounds from Astral Adventurer's Guide\r\nBackgroundList[\"astral drifter\"] = {\r\n\tregExpSearch : /^(?=.*astral)(?=.*drifter).*$/i,\r\n\tname : \"Astral Drifter\",\r\n\tsource : [[\"S:AiS\", 7]],\r\n\tskills : [\"Insight\", \"Religion\"],\r\n\tlanguageProfs : [[\"Any, Celestial or Gith recommended\", 2]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Diary\", \"\", 5],\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Divine Contact\",\r\n\textra : [\"Select a Divine Contact\",\r\n\t\t\"Corellon (art/magic; CG)\",\r\n\t\t\"Tymora (good fortune; CG)\",\r\n\t\t\"Fharlanghn (horizons/travel; NG)\",\r\n\t\t\"Istus (fate/destiny; N)\",\r\n\t\t\"Nuada (war/warriors; N)\",\r\n\t\t\"Zivilyn (wisdom; N)\",\r\n\t\t\"Arawn (life/death; NE)\",\r\n\t\t\"Hecate (magic/moons; CE)\",\r\n\t\t\"Celestian (stars/wanderers; N)\",\r\n\t\t\"Ptah (knowledge/secrets; LN)\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"divine contact\"] = {\r\n\tdescription : \"I am 20d6 years older than I look, thanks to time spent in the Astral Sea without aging. While in the Astral Sea, I crossed paths with a wandering deity. The encounter was brief and nonviolent, yet it made a lasting impression on me. This deity saw fit to share one secret or obscure bit of cosmic lore with me. I gain the Magic Initiate [Cleric] feat.\",\r\n\tsource : [[\"S:AiS\", 7]],\r\n\tfeatsAdd: [{ key: \"magic initiate\", choice: \"cleric\" }],\r\n};\r\n\r\nBackgroundList[\"wildspacer\"] = {\r\n\tregExpSearch : /wildspacer/i,\r\n\tname : \"Wildspacer\",\r\n\tsource : [[\"S:AiS\", 8]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (space)\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Hempen rope, feet of\", 50, 0.2],\r\n\t\t[\"Grappling hook\", \"\", 4]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belaying pin (club)\", \"\", 2],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Wildspace Adaptation\",\r\n\textra : [\"Select a Close Encounter\",\r\n\t\t\"Beholder\",\r\n\t\t\"Cosmic horror\",\r\n\t\t\"Feyr\",\r\n\t\t\"Lunar dragon\",\r\n\t\t\"Mind flayer\",\r\n\t\t\"Neh-thalggu\",\r\n\t\t\"Neogi\",\r\n\t\t\"Space clown\",\r\n\t\t\"Vampirate\",\r\n\t\t\"Void scavver\",\r\n\t]\r\n};\r\nBackgroundFeatureList[\"wildspace adaptation\"] = {\r\n\tdescription : \"I was raised in the void of Wildspace, home to asteroid miners, moon farmers, and other hardy folk. Life in Wildspace has toughened me to face the terrors and other challenges of the airless night and I've learned how to adapt to zero gravity. Being weightless doesn't give me disadvantage on any of my melee attack rolls and I gain the Tough feat.\",\r\n\tsource : [[\"S:AiS\", 8]],\r\n\tfeatsAdd: [\"Tough\"],\r\n};\r\n\r\n// Races from Astral Adventurer's Guide\r\nRaceList[\"astral elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(astral|silver void)\\b).*$/i,\r\n\tname : \"Astral elf\",\r\n\tsortname : \"Elf, Astral\",\r\n\tsource : [[\"S:AiS\", 10]],\r\n\tplural : \"Astral elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old. Because nothing ages in the Astral Plane, astral elves from that plane can be thousands of years old.\",\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tskillstxt : \"Perception and choose any one skill which lasts until the end of my next Astral Trance\",\r\n\ttoolProfs : [[\"Astral Trance: tool or weapon\", 1]],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Astral Fire\",\r\n\t\tspells : [\"dancing lights\", \"light\", \"sacred flame\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"starlight step\" : {\r\n\t\t\tname : \"Starlight Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Astral Elf (my creature type is humanoid, elf)\"+\r\n\t\"\\n \\u2022 Starlight Step: A number of times per long rest equal to my proficiency bonus, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\"+\r\n\t\"\\n \\u2022 Astral Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours if I spend those hours in a trancelike meditation, during which I remain conscious. Whenever I finish this trance, I gain proficiency with one skill, and one weapon or tool of my choice. They last until I finish my next long rest.\"\r\n};\r\nRaceList[\"autognome\"] = {\r\n\tregExpSearch : /autognome/i,\r\n\tname : \"Autognome\",\r\n\tsource : [[\"S:AiS\", 11]],\r\n\tplural : \"Autognomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tage : \" can live for centuries, typically up to 500 years\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*casing).*$/i,\r\n\t\tname : \"Armored Casing\",\r\n\t\tsource : [[\"S:AiS\", 2]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Built for Success\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"paralyzed\", \"poison\"],\r\n\t\timmune : [\"disease\"]\r\n\t},\r\n\ttoolProfs : [[\"Tool of my choice\", 2]],\r\n\ttrait : typePF ?\r\n\t\t\"Autognome (my creature type is Construct)\"+\r\n\t\t\"\\n \\u2022 Armored Casing: My base AC is 13 + my Dexterity modifier.\"+\r\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save, after I see the roll, but before the effect.\"+\r\n\t\t\"\\n \\u2022 Mechanical Nature: I don't need to eat, drink or breathe.\"+\r\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay in an inactive and motionless state during which I'm conscious.\"+\r\n\t\t\"\\n \\u2022 Healing Machine: Cure Wounds, Healing Word, and Spare the Dying work on me. If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\r\n\t\t:\r\n\t\t\"Autognome (my creature type is Construct; I don't need to eat, drink or breathe)\"+\r\n\t\t\"\\n \\u2022 Armored Casing: While I'm not wearing armor, my AC is 13 + my Dexterity modifier.\"+\r\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save. I can do this after seeing the d20 roll, but before knowing the roll's effects.\"+\r\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay inactive and motionless.\"+\r\n\t\t\"\\n \\u2022 Healing Machine: Cure Wounds, Healing Word, and Spare the Dying work on me. If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\r\n};\r\nRaceList[\"giff\"] = {\r\n\tregExpSearch : /giff|hippofolk/i,\r\n\tname : \"Giff\",\r\n\tsource : [[\"S:AiS\", 12]],\r\n\tplural : \"Giff\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"astral spark\" : {\r\n\t\t\tname : \"Astral Spark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" force damage\"; })\r\n\t\t}\r\n\t},\r\n\tweaponProfs : [false, false, [\"Firearms\"]],\r\n\tcarryingCapacity : 2,\r\n\tsavetxt : { text : [\"Adv. on Str saves and checks\"] },\r\n\tadvantages : [[\"Strength\", true]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (/firearm/i.test(v.theWea.type) || /firearm/i.test(v.theWea.list)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/([;,]? ?loading|loading[;,]? ?)/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"No disadv. at long range\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of firearms and attacking at long range with a firearm doesn't impose disadvantage on my attack roll.\"\r\n\t\t]\r\n\t},\r\n\ttrait : \"Giff\"+\r\n\t\"\\n \\u2022 Astral Spark: My proficiency bonus times per long rest, when I hit a target with a simple or martial weapon, I can once per turn deal extra force damage equal to my prof\" + (typePF ? \"iciency\" : \".\") + \" bonus.\"+\r\n\t\"\\n \\u2022 Firearms Mastery: I am proficient with firearms, ignore their loading property, and they don't impose disadvantage at long range.\"+\r\n\t\"\\n \\u2022 Hippo Build: I have advantage on Strength saves and checks. In addition, I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"\r\n};\r\nRaceList[\"hadozee\"] = {\r\n\tregExpSearch : /hadozee/i,\r\n\tname : \"Hadozee\",\r\n\tsource : [[\"S:AiS\", 13]],\r\n\tplural : \"Hadozees\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tscoresGeneric : true,\r\n\taction : [\r\n\t\t[\"bonus action\", \"Dexterous Feet (Use an Object)\"],\r\n\t\t[\"reaction\", \"Glide (if 10 ft above ground)\"]\r\n\t],\r\n\tfeatures : {\r\n\t\t\"hadozee dodge\" : {\r\n\t\t\tname : \"Hadozee Dodge\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"1d6+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hadozee\"+\r\n\t\"\\n \\u2022 Dexterous Feet: As a bonus action, I can manipulate an object, open or close a door or container, or pick up or set down a Tiny object.\"+\r\n\t\"\\n \\u2022 Glide: As a reaction when I fall at least 10 ft above the ground, I can extend my skin membranes to glide my walking speed horizontally, and take 0 damage from the fall.\"+\r\n\t\"\\n \\u2022 Hadozee Dodge: A number of times equal to my proficiency bonus per long rest, as a reaction when I take damage, I can reduce the damage by 1d6 + my proficiency bonus.\"\r\n};\r\nRaceList[\"plasmoid\"] = {\r\n\tregExpSearch : /plasmoid/i,\r\n\tname : \"Plasmoid\",\r\n\tsource : [[\"S:AiS\", 14]],\r\n\tplural : \"Plasmoids\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscoresGeneric : true,\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Acid\", \"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"poison\"],\r\n\t\ttext : [\"Adv. on grapple checks\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"action\", \"Reshape Body\"],\r\n\t\t[\"bonus action\", \"Extrude/Reabsorb Pseudopod\"]\r\n\t],\r\n\ttrait : \"Plasmoid (my creature type is Ooze)\"+\r\n\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Hold Breath: I can hold my breath for 1 hour.\"+\r\n\t\"\\n \\u2022 Amorphous: I can squeeze through a 1-inch wide space without my equipment or clothes. \" + (typePF ? \"I have advantage on grapple checks.\" : \"I also have advantage on ability checks I make to initiate or escape a grapple.\")+\r\n\t\"\\n \\u2022 Shape Self: As an action, I can reshape my body to have a head and limbs, or back to a limbless blob. As a bonus action, I can extrude/reabsorb a pseudopod up to 6 inch wide and 10 ft long. As part of the bonus action, it can manipulate objects, open/close doors, or pick up/set down a Tiny object. It can carry up to 10 lb, but not attack or use magic items.\"\r\n};\r\nRaceList[\"thri-kreen\"] = {\r\n\tregExpSearch : /thri.?kreen/i,\r\n\tname : \"Thri-kreen\",\r\n\tsource : [[\"S:AiS\", 15]],\r\n\tplural : \"Thri-kreen\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\t// age, height and weight taken from Shining South (2004) p17 (using the male option)\r\n\tage : \" reach maturity around 7 years old and typically live around 30 years\",\r\n\theight : \" stand between 5 and 7 feet tall (5'2\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 140 and 375 pounds (135 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand from 1,6 to over 2 metres tall (160 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 60 and 180 kg (60 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tlanguageProfs : [\"Common\", \"Thri-kreen Telepathy\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*carapace)(?=.*chameleon).*$/i,\r\n\t\tname : \"Chameleon Carapace\",\r\n\t\tsource : [[\"S:AiS\", 4]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : [[\"action\", \"Chameleon Carapace\"]],\r\n\ttrait : \"Thri-kreen (my creature type is Monstrosity)\"+\r\n\t\"\\n \\u2022 Chameleon Carapace: My base AC is 13 + Dex mod. As an action, \" + (typePF ? \"I can gain adv. on Stealth checks to hide in my current surroundings.\" : \"I can have it match my current surroundings, granting me adv. on Stealth checks to hide in those surroundings.\")+\r\n\t\"\\n \\u2022 Secondary Arms: \" + (typePF ? \"I have two slightly smaller arms below my primary pair of arms. I can use these secondary arms\" : \"Able\") + \" to manipulate objects, hold Tiny objects, or wield light weapons.\"+\r\n\t\"\\n \\u2022 Sleepless: I don't \" + (typePF ? \"\" : \"require \") + \"sleep. I rest by refraining from strenuous activity.\"+\r\n\t\"\\n \\u2022 \" + (typePF ? \"Thri-kreen \" : \"\") + \"Telepathy: I can't speak, but can communicate telepathically to any willing creatures within 120 ft that understand at least one language. Any can break this (no action).\"\r\n};\r\n\r\n// Spells from Astral Adventurer's Guide\r\nSpellsList[\"air bubble\"] = {\r\n\tname : \"Air Bubble\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"S:AiS\", 22]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Create spectral globe of fresh air around a head of 1+2/SL willing creatures, lasts for the duration\",\r\n\tdescriptionFull : \"You create a spectral globe around the head of a willing creature you can see within range. The globe is filled with fresh air that lasts until the spell ends. If the creature has more than one head, the globe of air appears around only one of its heads (which is all the creature needs to avoid suffocation, assuming that all its heads share the same respiratory system).\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can create two additional globes of fresh air for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"create spelljamming helm\"] = {\r\n\tname : \"Create Spelljamming Helm\", \r\n\tnameShort : typePF ? \"Create spelljamming helm\" : \"Create spelljammin' helm\", // Lowercase or won't fit, shortened for Colourful version\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"S:AiS\", 22]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A crystal rod worth at least 5,000 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"One Large or smaller unoccupied chair I touch transforms into a spelljamming helm (5000gp cons.)\",\r\n\tdescriptionFull : \"Holding the rod used in the casting of the spell, you touch a Large or smaller chair that is unoccupied. The rod disappears, and the chair is transformed into a spelljamming helm.\"\r\n};\r\n\r\n// Magic Items from Astral Adventurer's Guide\r\nMagicItemsList[\"fish suit\"] = {\r\n\tname : \"Fish Suit\",\r\n\tsource : [[\"S:AiS\", 22]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tsavetxt : { immune : [\"surrounding gas\"] },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }, // flying speed is more situational, so not added to the listing\r\n\tdescription : \"This bulky suit takes 1 minute to don or doff. While worn, I can breathe in an airless environment and am immune to any gas that surrounds me. The suit grants me a swimming speed equal to my walking speed while underwater, or a flying speed equal to my walking speed in an environment with no gravity.\",\r\n\tdescriptionFull : \"This bulky suit, which fully encases your head and body, takes 1 minute to don or doff. While worn, it enables you to breathe in an airless environment and renders you immune to the harmful effects of any gas that surrounds you. The suit also grants you a swimming speed equal to your walking speed while underwater, or a flying speed equal to your walking speed in an environment with no gravity.\"\r\n};\r\nvar SJAAG_SpelljammingHelm = [\r\n\t\"The function of this ornate chair is to propel and maneuver a ship on which it has been installed through space and air. It can also propel and maneuver a ship on water or underwater, provided the ship is built for such travel. The ship in question must weigh 1 ton or more.\",\r\n\t\"The sensation of being attuned to a spelljamming helm is akin to the pins-and-needles effect one experiences after one's arm or leg falls asleep, but not as painful.\",\r\n\t\"While attuned to a spelljamming helm and sitting in it, you gain the following abilities for as long as you maintain concentration (as if concentrating on a spell):\",\r\n\t\"\\u2022 You can use the spelljamming helm to move the ship through space, air, or water up to the ship's speed. If the ship is in space and no other objects weighing 1 ton or more are within 1 mile of it, you can use the spelljamming helm to move the vessel fast enough to travel 100 million miles in 24 hours.\",\r\n\t\"\\u2022 You can steer the vessel, albeit in a somewhat clumsy fashion, in much the way that a rudder or oars can be used to maneuver a seafaring ship.\",\r\n\t\"\\u2022 At any time, you can see and hear what's happening on and around the vessel as though you were standing in a location of your choice aboard it.\",\r\n\t\">>Transfer Attunement<<. You can use an action to touch a willing spellcaster. That creature attunes to the spelljamming helm immediately, and your attunement to it ends.\"\r\n];\r\nMagicItemsList[\"spelljamming helm\"] = {\r\n\tname : \"Spelljamming Helm\",\r\n\tsource : [[\"S:AiS\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"While attuned to  this ornate chair and sitting in it, I can propel and maneuver the ship on which it has been installed through space, air, or water up to the ship's speed. I need to maintain concentration as if concentrating on a spell to do so. The ship can move faster in space if nothing is nearby. See Notes page.\",\r\n\tdescriptionFull : SJAAG_SpelljammingHelm.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\taction : [[\"action\", \" (Transfer Attunement)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(SJAAG_SpelljammingHelm).replace(/your/ig, \"my\").replace(/\\byou\\b/ig, \"I\").replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; })\r\n\t}]\r\n};\r\nMagicItemsList[\"wildspace orrery\"] = {\r\n\tname : \"Wildspace Orrery\",\r\n\tsource : [[\"S:AiS\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Inside a Wildspace system, this portable arcane device automatically tracks the positions and movements of all suns, planets, moons, and comets within that system, projecting a display of all these bodies in the space above its current location, marking itself as a white, pulsating pinprick of light.\",\r\n\tdescriptionFull : \"Inside a Wildspace system, this portable arcane device automatically tracks the positions and movements of all suns, planets, moons, and comets within that system, projecting a display of all these bodies in the space above its current location. In that display, a white, pulsating pinprick of light marks the orrery's location.\"\r\n};\r\n\r\n// Beasts from Boo's Astral Menagerie\r\nCreatureList[\"space eel\"] = {\r\n\tname : \"Space Eel\",\r\n\tnameAlt : [\"Eel, Space\"],\r\n\tsource : [[\"S:AiS\", 55]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 7,\r\n\thd : [2, 6],\r\n\tspeed : \"10 ft, fly 30 ft\",\r\n\tscores : [12, 18, 11, 1, 10, 1],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Attaches on hit; While attached, auto-damage at turn start, but can't make bite attacks\",\r\n\t\ttooltip : \"On a hit, the eel attaches to the target. While attached, the eel can't make bite attacks. Instead, the target takes the bite damage at the start of each of the eel's turns. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t}, {\r\n\t\tname : \"Tail Spine\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target DC 10 Con save or poisoned and paralyzed for 1 min (can save as each turn ends)\",\r\n\t\ttooltip : \"The target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Unusual Nature\",\r\n\t\tdescription : \"The eel doesn't require air.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn if not attached to a creature, the eel can make one Bite and one Tail Spine attack.\"\r\n\t}, {\r\n\t\tname : \"Attach\",\r\n\t\tdescription : \"If the eel hits with its bite attack, it attaches to the target. While attached, the eel can't make bite attacks. Instead, the target takes the bite damage at the start of each of the eel's turns. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t}, {\r\n\t\tname : \"Tail Spine\",\r\n\t\tdescription : \"If the eel hits with its tail spine, the target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Darkvision 60 ft\",\r\n\t\t\"##Unusual Nature##. Doesn't require air.\",\r\n\t\t\"##Multiattack##. 1 bite and 1 tail spine attack if not attached to a creature.\",\r\n\t\t\"##Bite##. Attaches to the target hit by its bite attack, dealing bite damage at the start of each turn. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t].join(\"\\n\"),\r\n};\r\nCreatureList[\"space guppy\"] = {\r\n\tname : \"Space Guppy\",\r\n\tnameAlt : [\"Guppy, Space\"],\r\n\tsource : [[\"S:AiS\", 55]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"0 ft, fly 30 ft\",\r\n\tscores : [3, 16, 10, 1, 10, 1],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail Slap\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Air Envelope\",\r\n\t\tdescription : \"If it has at least 1 hit point, the guppy can generate an air envelope around itself when in a vacuum. This air envelope can sustain the guppy and one other Tiny creature in its space indefinitely.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The guppy doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\nCreatureList[\"giant space hamster\"] = {\r\n\tname : \"Giant Space Hamster\",\r\n\tnameAlt : [\"Hamster, Giant Space\"],\r\n\tsource : [[\"S:AiS\", 56]], // page number in Boo's Astral Menagerie\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, burrow 10 ft\",\r\n\tscores : [14, 12, 10, 2, 12, 4],\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}]\r\n};\r\nCreatureList[\"space mollymawk\"] = {\r\n\tname : \"Space Mollymawk\",\r\n\tnameAlt : [\"Mollymawk, Space\"],\r\n\tsource : [[\"S:AiS\", 57]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"10 ft, fly 50 ft\",\r\n\tscores : [6, 14, 11, 3, 12, 3],\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tpassivePerception : 15,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The mollymawk doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}, {\r\n\t\tname : \"Hold Breath\",\r\n\t\tdescription : \"The mollymawk can hold its breath for 15 minutes.\"\r\n\t}]\r\n};\r\nCreatureList[\"space swine\"] = {\r\n\tname : \"Space Swine\",\r\n\tnameAlt : [\"Swine, Space\"],\r\n\tsource : [[\"S:AiS\", 57]], // page number in Boo's Astral Menagerie\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 8],\r\n\tspeed : \"40 ft, fly 40 ft\",\r\n\tscores : [14, 12, 10, 2, 12, 4],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"survival\" : 4\r\n\t},\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Barding\",\r\n\t\tdescription : \"Space swine that are trained for battle are typically outfitted with half-plate barding and are referred to as death squealers. This barding gives them an AC of 16.\"\r\n\t}],\r\n\twildshapeString : \" \" // the barding trait is not applicable to wild shapes\r\n};\r\n\n// pub_20221206_Dragonlance.js\r\n// This file adds the Character Options content from Dragonlance: Shadow of the Dragon Queen to MPMB's Character Record Sheet\r\n\r\nSourceList[\"D:SotDQ\"] = {\r\n\tname : \"Dragonlance: Shadow of the Dragon Queen\",\r\n\tabbreviation : \"D:SotDQ\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Dragonlance\",\r\n\turl : \"https://dnd.wizards.com/products/dragonlance\",\r\n\tdate : \"2022/12/06\"\r\n};\r\n\r\nRaceList[\"kender\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"D:SotDQ\", 27]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"frightened\"]},\r\n\tskillstxt : \"Choose one from Insight, Investigation, Sleight of Hand, Stealth, or Survival\",\r\n\tabilitySave : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"fearless\" : {\r\n\t\t\tname : \"Fearless\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t\"\\n \\u2022 Fearless: I have adv. on saves against the frightened condition. Once per long rest when I fail \" + (typePF ? \"such a save\" : \"a save to avoid being frightened\") + \", I can choose to succeed\" + (typePF ? \".\" : \" instead\")+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can taunt a creature within 60 ft of me that can hear and understand me. They must make a Wisdom \" + (typePF ? \"saving throw or have disadvantage\" : \"save (DC 8 + Prof B + Int/Wis/Cha mod; one-time choice) or have disadv.\") + \" on attack rolls not made against me until the start of my next turn. I can do this a number of times per long rest equal to my proficiency bonus.\" + (typePF ? \" The DC equals 8 + my proficiency bonus + Intelligence, Wisdom, or Charisma modifier (one-time choice when selecting this race).\" : \"\")\r\n};\r\n\r\nBackgroundList[\"knight of solamnia\"] = {\r\n\tregExpSearch : /^(?=.*(knight|champion|warrior))(?=.*solamnia).*$/i,\r\n\tname : \"Knight of Solamnia\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Squire of Solamnia\",\r\n\ttrait : [ // Kept those from the UA article\r\n\t\t\"I pledge my sword to the greater good. If I must perish in pursuit of that good, so be it.\",\r\n\t\t\"My comrades-in-arms are my family. I'll do whatever it takes to keep them safe.\",\r\n\t\t\"The protection of innocent people comes first. All other concerns come second.\",\r\n\t\t\"I joined the knights for the free meals, but their lessons grew on me over time.\",\r\n\t\t\"I wish my deeds to become the stuff of legends\\xD7just like those of the knighthood's heroic founders.\",\r\n\t\t\"A dishonorable act drove me to become a knight. I have acted with honor ever since.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Choose a Trinket\",\r\n\t\t\"Silver disk, recording my heroics\",\r\n\t\t\"Piece of a fallen knight's armor\",\r\n\t\t\"Pendant with a crown/rose/sword\",\r\n\t\t\"Pommel of my mentor's sword\",\r\n\t\t\"Favor from someone I defended\",\r\n\t\t\"Locket with silver dragon sketch\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"squire of solamnia\"] = {\r\n\tdescription : \"I gain the Squire of Solamnia feat. In addition, the Knights of Solamnia provide me free, modest lodging and food at any of their fortresses or encampments.\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2], [\"UA:HoK\", 3]],\r\n\tfeatsAdd: [\"Squire of Solamnia\"],\r\n};\r\n\r\nBackgroundList[\"mage of high sorcery\"] = {\r\n\tregExpSearch : /^(?=.*(mage|wizard|magus))(?=.*high)(?=.*sorcery).*$/i,\r\n\tname : \"Mage of High Sorcery\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\tskills : [\"Arcana\", \"History\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Bottle of colored ink\", \"\", \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Initiate of High Sorcery\",\r\n\ttrait : [ // Kept those from the UA article\r\n\t\t\"I wish to use my knowledge of magic to better people's lives.\",\r\n\t\t\"My study of magic might reveal all manner of secrets.\",\r\n\t\t\"Magic is a means to power, and I will use it to pursue my ambitions.\",\r\n\t\t\"I learned magic so I'd be able to protect those I care about.\",\r\n\t\t\"I use my magic to maintain the balance between all things.\",\r\n\t\t\"Whether in the past, present, or future, I will be the greatest mage ever known.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Choose a Trinket\",\r\n\t\t\"Unopened letter from first teacher\",\r\n\t\t\"Broken black/red/white wooden wand\",\r\n\t\t\"Scroll with incomprehensible formula\",\r\n\t\t\"Stone-covered foldable device\",\r\n\t\t\"Pouch with triple moon symbol\",\r\n\t\t\"Spellbook with triple moon symbol\",\r\n\t\t\"Lens to see Nuitari, invisible moon\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"initiate of high sorcery\"] = {\r\n\tdescription : \"I gain the Initiate of High Sorcery feat. In addition, the Mages of High Sorcery provide me with free, modest lodging and food indefinitely at any occupied Tower of High Sorcery and for one night at the home of an organization member.\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\tfeatsAdd: [\"Initiate of High Sorcery\"],\r\n};\r\n\r\n\r\n// Feats tree for Initiate of High Sorcery\r\nFeatsList[\"initiate of high sorcery\"] = {\r\n\tname : \"Initiate of High Sorcery\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a wizard cantrip and two 1st-levels spell from a list depending on my chosen moon. I can cast each spell once per long rest at its lowest levels without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You've received training from magic-users affiliated with the Mages of High Sorcery.\"+\r\n\t\"\\n   Choose one of the three moons of Krynn to influence your magic: the black moon, Nuitari; the red moon, Lunitari; or the white moon, Solinari. You learn one cantrip of your choice from the wizard spell list and two 1st-level spells based on the moon you choose, as specified in the Lunar Spells table.\"+\r\n\t\"\\n\\n\" + toUni(\"Lunar Spells\")+\r\n\t\"\\n\" + toUni(\"Moon\\t1st-Level Spell\")+\r\n\t\"\\nNuitari\\tChoose two from dissonant whispers, false life,\"+\r\n\t\"\\n\\thex, and ray of sickness\"+\r\n\t\"\\nLunitari\\tChoose two from color spray, disguise self,\"+\r\n\t\"\\n\\tfeather fall, and longstrider\"+\r\n\t\"\\nSolinari\\tChoose two from comprehend languages, detect\"+\r\n\t\"\\n\\tevil and good, protection from evil and good, and\"+\r\n\t\"\\n\\tshield\"+\r\n\t\"\\n\\n   You can cast each of the chosen 1st-level spells without a spell slot, and you must finish a long rest before you can cast them in this way again. You can also cast the spells using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\tprerequisite : \"Dragonlance Campaign, plus Sorcerer, Wizard, or Mage of High Sorcery background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.wizard || classes.known.sorcerer || CurrentBackground.known.indexOf('mage of high sorcery') !== -1 || /initiate of high sorcery/i.test(What(\"Background Feature\"));\r\n\t},\r\n\tchoices : [\"Nuitari\", \"Lunitari\", \"Solinari\"],\r\n\t\"nuitari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Dissonant Whispers, False Life, Hex, or Ray of Sickness). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level spell\",\r\n\t\t\tspells : [\"dissonant whispers\", \"false life\", \"hex\", \"ray of sickness\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"lunitari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Color Spray, Disguise Self, Feather Fall, Longstrider). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level spell\",\r\n\t\t\tspells : [\"color spray\", \"disguise self\", \"feather fall\", \"longstrider\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"solinari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Comprehend Languages, Detect Evil and Good, Protection from Evil and Good, Shield). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level spell\",\r\n\t\t\tspells : [\"comprehend languages\", \"detect evil and good\", \"protection from evil and good\", \"shield\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"adept of the black robes\"] = {\r\n\tname : \"Adept of the Black Robes\",\r\n\tsource : [[\"D:SotDQ\", 31], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn one 2nd-level Ench or Necro spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When a creature I can see within 60 ft fails its save vs. my damaging spell, I can expend HD up to the spell's level and add the rolls to the damage of the spell for that one creature.\",\r\n\tdescriptionFull : \"You chose the moon Nuitari to influence your magic, and your ambition and loyalty to the Order of the Black Robes have been recognized, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ambitious Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the evocation or necromancy school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Life Channel\") + \". You can channel your life force into the power of your magic. When a creature you can see within 60 feet fails on a saving throw against a spell that deals damage that you cast, you can expend a number of Hit Dice equal to the level of the spell. Roll the expended Hit Dice and add them together. The damage that the creature takes increases by an amount equal to that total.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Nuitari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'nuitari';\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Evoc/Necro spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_nuitari',\r\n\tallowUpCasting : true\r\n};\r\nFeatsList[\"adept of the red robes\"] = {\r\n\tname : \"Adept of the Red Robes\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a 2nd-level Illusion or Transmutation spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When I roll 9 or lower on the d20 for an attack or ability check, I can treat the roll as a 10. I can do this a number of times per long rest equal to my proficiency bonus.\",\r\n\tdescriptionFull : \"You chose the moon Lunitari to influence your magic, and your dedication to maintaining the balance between all things has been recognized by the Order of the Red Robes, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Insightful Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the illusion or transmutation school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Magical Balance\") + \". When you make an attack roll, an ability check, or a saving throw, and roll a 9 or lower on the d20, you can use your reaction to balance fate and treat the roll as a 10. you can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Lunitari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'lunitari';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Illus/Trans spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Illus\", \"Trans\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_lunitari',\r\n\tallowUpCasting : true\r\n};\r\nFeatsList[\"adept of the white robes\"] = {\r\n\tname : \"Adept of the White Robes\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn one 2nd-level Abjur or Div spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. As a reaction when I or a creature I can see within 30 ft is damaged, I can expend a spell slot and roll d6s equal to its level to reduce the damage by that much + my spellcasting modifier.\",\r\n\tdescriptionFull : \"You chose the moon Solinari to influence your magic, and your oath to use magic to make the world a better place has been recognized by the Order of the White Robes, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Protective Magic\") + \". You learn one 2nd-level spell of you choice. The 2nd-level spell must be from the abjuration or divination school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Protective Ward\") + \". When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to expend a spell slot and weave protective magic around the target. Roll a number of d6s equal to the level of the spell slot expended and reduce the damage the target takes by the total rolled on those dice + your spellcasting ability modifier.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Solinari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'solinari';\r\n\t},\r\n\taction : [[\"reaction\", \"\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Abjur/Div spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Div\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_solinari',\r\n\tallowUpCasting : true\r\n};\r\n\r\n// Feat Divinely Favored\r\nFeatsList[\"divinely favored\"] = {\r\n\tname : \"Divinely Favored\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a cleric cantrip, a 1st-level spell based on my alignment, and Augury. I can cast the spells each once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\tdescriptionFull : \"A god chose you to carry a spark of their power.\"+\r\n\t\"\\n   You learn one cantrip of your choice from the cleric spell list and one 1st-level spell based on the alignment of your character, as specified in the table below. You also learn the augury spell.\"+\r\n\t\"\\n\\n\" + toUni(\"Alignment\\t1st-level Spell\")+\r\n\t\"\\n Evil\\t\\tChoose one 1st level warlock spell\"+\r\n\t\"\\n Good\\t\\tChoose one 1st-level cleric spell\"+\r\n\t\"\\n Neutral\\t\\tChoose one 1st-level druid spell\"+\r\n\t\"\\n\\n   You can cast the chosen 1st-level spell and the augury spell without a spell slot, and you must finish a long rest before you can cast either of these spells in this way again. You can also cast these spells using spell slots you have of the appropriate level.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\t\"\\n\\n   In addition, you can use a holy symbol as a spellcasting focus for any spell you cast that uses the spellcasting ability you choose when you select this feat.\",\r\n\tchoices : [\"Evil (warlock spell)\", \"Good (cleric spell)\", \"Neutral (druid spell)\"],\r\n\t\"evil (warlock spell)\" : {\r\n\t\tname : \"Divinely Favored [Evil]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level warlock spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock Spell\",\r\n\t\t\t\"class\" : [\"warlock\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"good (cleric spell)\" : {\r\n\t\tname : \"Divinely Favored [Good]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level cleric spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric Spell\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"neutral (druid spell)\" : {\r\n\t\tname : \"Divinely Favored [Neutral]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level druid spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid Spell\",\r\n\t\t\t\"class\" : [\"druid\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t}\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nFeatsList[\"squire of solamnia\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"D:SotDQ\", 34]],\r\n\tdescription : \"Mounting or dismounting costs me only 5-ft of movement. Once per turn, I can grant myself advantage on a weapon attack, adding +1d8 to the damage roll if it hits. I can use this benefit my proficiency bonus per long rest, but a use is expended only if the attack hits.\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Mount Up\") + \". Mounting or dismounting costs you only 5 feet of movement.\"+\r\n\t\"\\n   \" + toUni(\"Precise Strike\") + \". Once per turn, when you make a weapon attack roll against a creature, you can cause the attack roll to have advantage. If the attack hits, you roll a d8 and add the number rolled as a bonus to the attack's damage roll. You can use this benefit a number of times equal to your proficiency bonus, but a use is expended only if the attack hits. You regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"Dragonlance Campaign, plus Fighter, Paladin, or Knight of Solamnia background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.fighter || classes.known.paladin || CurrentBackground.known.indexOf('knight of solamnia') !== -1 || /squire of solamnia/i.test(What(\"Background Feature\"));\r\n\t},\r\n\tlimfeaname : \"Precise Strike (Squire of Solamnia)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the crown\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"D:SotDQ\", 32]],\r\n\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Strength, Dexterity, or Constitution]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Dexterity, or Constitution by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Commanding Rally\") + \". As a bonus action, you can command one ally within 30 feet of yourself to attack. If that ally can see or hear you, they can immediately make one weapon attack as a reaction. If the attack hits, the ally can roll a d8 and add the number rolled as a bonus to the attack's damage roll. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Commanding Rally (Knight of the Crown)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\"],\r\n\t\"strength\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Strength]\",\r\n\t\tscores : [1,0,0,0,0,0]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Dexterity]\",\r\n\t\tscores : [0,1,0,0,0,0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Constitution]\",\r\n\t\tscores : [0,0,1,0,0,0]\r\n\t}\r\n};\r\nFeatsList[\"knight of the rose\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"D:SotDQ\", 33]],\r\n\tdescription : \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + my proficiency bonus + the modifier of the ability chosen to increase temporary hit points. I can do this my proficiency bonus per long rest. [+1 Constitution, Wisdom, or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution, Wisdom, or Charisma by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Bolstering Rally\") + \". As a bonus action, you can encourage one creature you can see within 30 feet of yourself (you can choose yourself). If the target can see or hear you, the target gains temporary hit points equal to 1d8 + your proficiency bonus + the ability modifier of the ability score increased by this feat. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Bolstering Rally (Knight of the Rose)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Constitution\", \"Wisdom\", \"Charisma\"],\r\n\t\"constitution\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Con Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Constitution modifier). I can do this my proficiency bonus per long rest. [+1 Constitution]\";',\r\n\t\tscores : [0,0,1,0,0,0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Wis Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Wisdom modifier). I can do this my proficiency bonus per long rest. [+1 Wisdom]\";',\r\n\t\tscores : [0,0,0,0,1,0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Cha Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Charisma modifier). I can do this my proficiency bonus per long rest. [+1 Charisma]\";',\r\n\t\tscores : [0,0,0,0,0,1]\r\n\t}\r\n};\r\nFeatsList[\"knight of the sword\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"D:SotDQ\", 33]],\r\n\tdescription : \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC (8 + Prof Bonus + mod of the ability increased by this feat) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Int/Wis/Cha]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Demoralizing Strike\") + \". Once per turn, when you hit a creature with a weapon attack roll, you can attempt to frighten that target. The target must make a Wisdom saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the target is frightened of you until the end of your next turn. On a successful save, the target has disadvantage on the next attack roll it makes before the end of its next turn. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Demoralizing Strike (Knight of the Sword)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Int Mod\"))) + \" (8 + Prof Bonus + Int mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Int]\";',\r\n\t\tscores : [0,0,0,1,0,0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Wis Mod\"))) + \" (8 + Prof Bonus + Wis mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Wis]\";',\r\n\t\tscores : [0,0,0,0,1,0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Cha Mod\"))) + \" (8 + Prof Bonus + Cha mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Cha]\";',\r\n\t\tscores : [0,0,0,0,0,1]\r\n\t}\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"sorcerer\", \"lunar sorcery\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|sorcery|witch))(?=.*(lunar|moon)).*$/i,\r\n\tsubname : \"Lunar Sorcery\",\r\n\tfullname : \"Lunar Sorcerer\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Lunar Embodiment\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tadditional : levels.map(function (n) { return (n < 3 ? 3 : n < 5 ? 6 : n < 7 ? 9 : n < 9 ? 12 : 15) + \" additional spells known\"}),\r\n\t\t\tspellcastingExtra : [\r\n\t\t\t\t// full moon\r\n\t\t\t\t\"shield\", \"lesser restoration\", \"dispel magic\", \"death ward\", \"rary's telepathic bond\",\r\n\t\t\t\t// new moon\r\n\t\t\t\t\"ray of sickness\", \"blindness/deafness\", \"vampiric touch\", \"confusion\", \"hold monster\",\r\n\t\t\t\t// crescent moon\r\n\t\t\t\t\"color spray\", \"alter self\", \"phantom steed\", \"hallucinatory terrain\", \"mislead\"\r\n\t\t\t],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tdescription : levels.map(function(n) {\r\n\t\t\t\tvar phases = {\r\n\t\t\t\t\t\"\\u25CB Full: \" : [\"Shield\", \"Lesser Restoration\", \"Dispel Magic\", \"Death Ward\", \"Rary's Telepathic Bond\"],\r\n\t\t\t\t\t\"\\u25CF New: \" : [\"Ray of Sickness\", \"Blindness/deafness\", \"Vampiric Touch\", \"Confusion\", \"Hold Monster\"],\r\n\t\t\t\t\t\"\\u25D6 Crescent: \" : [\"Color Spray\", \"Alter Self\", \"Phantom Steed\", \"Hallucinatory Terrain\", \"Mislead\"]\r\n\t\t\t\t};\r\n\t\t\t\tvar aReturn = [\r\n\t\t\t\t\t\"When I finish a long rest, I can choose a lunar phase: Full, New, or Crescent Moon\",\r\n\t\t\t\t\t\"I can cast the 1st-level spell of that lunar phase once per long rest without a spell slot\"\r\n\t\t\t\t];\r\n\t\t\t\tvar iSpellsAdd = n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : 5;\r\n\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\taReturn.push(phase + phases[phase].slice(0,iSpellsAdd).join(\", \"));\r\n\t\t\t\t}\r\n\t\t\t\t//aReturn.push(\"I know all \" + (iSpellsAdd * 3) + \" spells above; They don't count towards the number of spells I can know\");\r\n\t\t\t\treturn desc(aReturn);\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName === \"sorcerer\" && !isDuplicate && CurrentSpells.sorcerer.extra.indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\tvar phases = {\r\n\t\t\t\t\t\t\t\t\"F\" : [\"shield\", \"lesser restoration\", \"dispel magic\", \"death ward\", \"rary's telepathic bond\"],\r\n\t\t\t\t\t\t\t\t\"N\" :  [\"ray of sickness\", \"blindness/deafness\", \"vampiric touch\", \"confusion\", \"hold monster\"],\r\n\t\t\t\t\t\t\t\t\"C\" : [\"color spray\", \"alter self\", \"phantom steed\", \"hallucinatory terrain\", \"mislead\"]\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\t\t\t\tif (phases[phase].indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\t\t\tspellObj.firstCol = phase;\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'The letters \"F\", \"N\", or \"C\" in the first column are used to indicate that a spell belongs to either the Full Moon, New Moon, or Crescent Moon lunar phase.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tspellFirstColTitle : \"Ph\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"1st-level lunar phase spell\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Moon Fire\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I know the Sacred Flame cantrip and can use it on 2 creatures within 5 ft of each other\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Moon Fire\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tweaponsAdd : { select : [\"Sacred Flame\"] },\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sacred flame\" : {\r\n\t\t\t\t\tdescription : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 at CL 5, 11, and 17\",\r\n\t\t\t\t\tdescriptionShorter : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 CL 5/11/17\",\r\n\t\t\t\t\tdescriptionCantripDie : \"Up to 2 creas I see, max 5 ft apart, save or `CD`d8 Radiant dmg; no bonus for cover on save\",\r\n\t\t\t\t\tchanges : \"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName == 'sacred flame') {\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(\"1 creature\", \"up to 2 creatures within 5 ft\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Lunar Boons\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Each lunar phase is additionally associated with spells of the following schools of magic:\",\r\n\t\t\t\t\"\\u25CB Full: Abjur \\u0026 Div\\t\\t\\u25CF New: Ench \\u0026 Necro\\t\" + (typePF ? \"\\t\" : Array(8).join(\" \")) + \"\\u25D6 Crescent: Illus \\u0026 Trans\",\r\n\t\t\t\t\"I can reduce the sorcery point needed for Metamagic of spells of my current phase by 1\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Waxing and Waning\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 sorcery point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 sorcery point to change my lunar phase\",\r\n\t\t\t\t\"I can cast each lunar phase's 1st-level spells once per long rest, if it is my current phase\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Shield (in Full lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Ray of Sickness (in New lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Color Spray (in Crescent lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\teval : function () {\r\n\t\t\t\tRemoveFeature(\"1st-level lunar phase spell\", 0, \"\", \"\", \"Lunar Sorcerer: Lunar Embodiment\");\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tAddFeature(\"1st-level lunar phase spell\", 1, \"\", \"long rest\", \"Lunar Sorcerer: Lunar Embodiment\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Lunar Empowerment\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [passive benefits for current phase]\" + desc([\r\n\t\t\t\t\"\\u25CB Full: I shed bright light in a 10-ft radius \\u0026 dim light for extra 10 ft\",\r\n\t\t\t\t\"  Myself and creatures I choose in 10 ft have adv. on Investigation and Perception checks\",\r\n\t\t\t\t\"\\u25CF New: I have adv. on Stealth checks; While I'm in darkness, attacks have disadv. vs me\",\r\n\t\t\t\t\"\\u25D6 Crescent: I have resistance to Necrotic and Radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Necrotic\", \"Necro. (in crescent)\"],\r\n\t\t\t\t[\"Radiant\", \"Rad. (in crescent)\"]\r\n\t\t\t]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Lunar Phenomenon\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional: \"per phase: 1\\xD7 per long rest or 5 SP\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, or as part of changing phase, I can use a power of the (new) phase:\",\r\n\t\t\t\t\"\\u25CB Full: Chosen creatures within 30 ft of me must make a Constitution save or be blinded\",\r\n\t\t\t\t\"  This lasts until their next turn ends; I also heal one creature within 30 ft for 3d8 HP\",\r\n\t\t\t\t\"\\u25CF New: Chosen creatures within 30 ft of me must make a Dexterity save\",\r\n\t\t\t\t\"  If failed, they take 3d10 Necrotic damage and have 0 speed until their next turn ends\",\r\n\t\t\t\t\"  Also, I become invisible until the end of my next turn, or until I attack or cast a spell\",\r\n\t\t\t\t\"\\u25D6 Crescent: I can magically teleport to an unoccupied space I can see within 60 ft\",\r\n\t\t\t\t\"  Both of us gain resistance to all damage until the start of my next turn\",\r\n\t\t\t\t\"I can use each phase's bonus action 1/LR, or by spending 5 sorcery points to use it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Lunar Phenomenon (Full)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (New)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (Crescent)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Weapon, Hoopak\r\nWeaponsList[\"hoopak, melee\"] = {\r\n\tregExpSearch : /hoopak/i,\r\n\tname : \"Hoopak, melee\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 6, \"piercing\"],\r\n\trange : \"Melee\",\r\n\tweight : 2,\r\n\tdescription : \"Finesse, two-handed; Can be used ranged (40/160 ft) with ammo, for 1d4 bludgeoning damage\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"hoopak, ranged\"] = {\r\n\tregExpSearch : /^(?=.*hoopak)(?=.*ranged).*$/i,\r\n\tname : \"Hoopak, ranged\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tlist : \"ranged\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 4, \"bludgeoning\"],\r\n\trange : \"40/160 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, finesse, two-handed; Can be used in melee without ammo, for 1d6 piercing damage\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"flying citadel helm\"] = {\r\n\tname : \"Flying Citadel Helm\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This ornate chair allows me to maneuver a flying citadel while concentrating (as if a spell). I can move the citadel through the air 80 ft/round or 8 miles/h, steer it, and see and hear from its highest point as though I was at that location. As an action or bonus action, I can transfer attunement to a willing spellcaster.\",\r\n\tdescriptionFull : \"The function of this ornate chair is to propel and maneuver a flying citadel on which it has been installed. The chair has AC 15, 18 hit points, and immunity to poison and psychic damage. It is destroyed if reduced to 0 hit points.\"+\r\n\t\"\\n   The sensation of being attuned to a flying citadel helm is akin to the pins-and-needles effect one experiences after one's arm or leg falls asleep, but not as intense.\"+\r\n\t\"\\n   While attuned to a flying citadel helm and sitting in it, you gain the following abilities for as long as you maintain concentration (as if concentrating on a spell):\"+\r\n\t\"\\n \\u2022 You can use the flying citadel helm to move the citadel through the air, up to 80 feet per round, or up to 8 miles per hour.\"+\r\n\t\"\\n \\u2022 You can steer the citadel, albeit in a somewhat clumsy fashion, in much the way that a rudder or oars can be used to maneuver a seafaring ship.\"+\r\n\t\"\\n \\u2022 At any time, you can see and hear from the highest point outside the citadel as though you were at that location.\"+\r\n\t\"\\n\\n   If no creature attuned to the helm is maintaining concentration, the citadel remains motionless in its space.\"+\r\n\t\"\\n   \"+toUni(\"Transfer Attunement\")+\". You can use an action or a bonus action to touch a willing spellcaster, whereupon that creature attunes to the flying citadel helm immediately, and your attunement to the flying citadel helm ends.\"+\r\n\t\"\\n   \"+toUni(\"Crash\")+\". Should the flying citadel helm be destroyed, the citadel it is installed on loses power and begins to crumble. If the crumbling citadel is in the air, it descends at a rate of 30 feet per round, or 300 feet per minute. Any creature on the citadel or on the ground within 120 feet of the citadel when it lands must make a DC 20 Dexterity saving throw, taking 39 (6d12) bludgeoning damage on a failed save, or half as much damage on a successful one.\",\r\n\taction : [\r\n\t\t[\"action\", \" (Transfer Attunement)\"],\r\n\t\t[\"bonus action\", \" (Transfer Attunement)\"]\r\n\t]\r\n};\r\nMagicItemsList[\"kagonesti forest shroud\"] = {\r\n\tname : \"Kagonesti Forest Shroud\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"This cloak of autumnal leaves woven together grants me advantage on Dexterity (Stealth) checks. As a bonus action once per dawn, I can use it to magically teleport to an unoccupied space I can see within 30 ft. I then have advantage on the next attack roll I make before the end of the turn.\",\r\n\tdescriptionFull : \"This cloak appears to be made of autumnal leaves woven together. While you wear this cloak, you have advantage on Dexterity (Stealth) checks, and you can use a bonus action to magically teleport, along with any equipment you are wearing or carrying, to an unoccupied space you can see within 30 feet of yourself. You then have advantage on the next attack roll you make before the end of the turn. Once this bonus action is used, it can't be used again until the next dawn.\",\r\n\tadvantages : [[\"Stealth\", true]],\r\n\taction : [[\"bonus action\", \" (teleport)\"]],\r\n\tusages : 1,\r\n\trecovery : \"Dawn\",\r\n\tadditional : \"teleport\"\r\n};\r\nMagicItemsList[\"mirror of reflected pasts\"] = {\r\n\tname : \"Mirror of Reflected Pasts\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can (de)activate this mirror. It can be activated once per dawn, making it hover in the air, can't be moved, and when a non-construct sees its reflection in it while within 30 ft, it must make a DC 15 Wis save. It is paralyzed until the mirror is deactivated. It can retry the save at the end of each of its turns.\",\r\n\tdescriptionLong : \"As an action, I can activate this mirror of elven design once per dawn, or deactive it. While active, it hovers in the air and can't be moved. When a non-construct creature within 30 ft of the mirror sees its reflection in it, the creature must make a DC 15 Wisdom save or become paralyzed. The creature can repeat the save at the end of each of its turns, but is otherwise paralyzed until the  mirror is deactivated. A successful save makes a creature immune for 24 hours. While paralyzed by the mirror, the creature sees idealized versions of events from their past reflected in the mirror's glass.\",\r\n\tdescriptionFull : \"This mirror of elven design allows those who stare into it to reflect on positive memories. The 3-foot-tall mirror weighs 25 pounds, and it has AC 11, 10 hit points, and vulnerability to bludgeoning damage. It shatters and is destroyed if reduced to 0 hit points.\"+\r\n\t\"While holding the mirror upright, you can use an action to speak its command word and activate it. While activated, the mirror hovers in the air, and it can be destroyed but not moved. It remains activated until you use an action to speak the command word again or your attunement to the mirror ends, at which point the mirror harmlessly floats to the ground. Once the mirror has been deactivated, it can't be activated again until the next dawn.\"+\r\n\t\"If a non-Construct creature other than you sees its reflection in the activated mirror while within 30 feet of it, that creature must succeed on a DC 15 Wisdom saving throw or become paralyzed until the mirror is deactivated or until that creature can no longer see the mirror. A creature paralyzed by the mirror can repeat the saving throw at the end of each of its turns, ending the effect on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to this mirror's effect for the next 24 hours.\"+\r\n\t\"While paralyzed by the mirror, the creature sees events from their past reflected in the mirror's glass. These memories aren't real, but rather idealized versions of those occurrences. Nearby observers can glimpse flashes of these memories if looking indirectly at the mirror.\",\r\n\tweight : 25,\r\n\taction : [[\"action\", \" [(de)activate]\"]],\r\n\tusages : 1,\r\n\trecovery : \"Dawn\"\r\n};\r\n\n// pub_20230221_KftGV.js\r\n// This file adds the magic items from the Keys from the Golden Vault adventure book to MPMB's Character Record Sheet\r\n\r\nSourceList[\"KftGV\"] = {\r\n\tname : \"Keys from the Golden Vault [items]\",\r\n\tabbreviation : \"KftGV\",\r\n\tgroup : \"Adventure Books\",\r\n\turl : \"https://dnd.wizards.com/products/keys-from-the-golden-vault\",\r\n\tdate : \"2023/02/21\"\r\n};\r\n\r\nvar KftGV_ConstantoriPortrait = [\r\n\t\"This painting by famed artist Dkesii Kwan depicts Constantori, a beautiful courtier, who was paid a staggering sum to be Dkesii's model. Whether Constantori's actual appearance matches the painting remains a subject of debate. The portrait is one of several paintings commissioned by the late Daiyani Grysthorn, a crime lord who frequently gave magical paintings as gifts to her most esteemed associates.\",\r\n\t\">>Sentience<<. Constantori's Portrait is a sentient, lawful evil item with an Intelligence score of 14, a Wisdom score of 12, and a Charisma score of 8. It can hear within a range of 120 feet and has darkvision within a range of 60 feet, but it can't see anything behind itself.\",\r\n\t\"The painting can converse in Common, Draconic, and Elvish as if it were a living person, though Constantori's mouth doesn't move. Whenever conversation occurs within the portrait's auditory range, the painting eagerly gathers secrets, the names of secret tellers, significant events, or any political conversations.\",\r\n\t\">>Personality<<. Constantori's Portrait is demanding, condescending, and vain. It doesn't like being covered or placed out of sight, and it loudly condemns anyone who tries to remove it from its gold-leaf frame.\",\r\n\t\">>Wealth of Information<<. The painting's primary purpose is to observe and recall conversations. Over the past few decades, Constantori's Portrait has quietly observed countless conversations and now possesses an unquantifiable amount of lore\\u2014everything from criminal conspiracies to secret passwords. The DM decides what the painting knows and what it doesn't.\",\r\n\t\"While attuned to the painting, you can take an action to telepathically contact it over any distance, provided the painting and you are on the same plane of existence. The painting can't telepathically contact you, however. Maintaining telepathic contact with the painting requires your concentration (as if concentrating on a spell).\",\r\n\t\">>Guardian Portrait<<. While you are attuned to the painting, you can command it to guard its location against one or more creatures you identify as the painting's enemies. The painting performs this function until you command it to stop or until your attunement to the painting ends.\",\r\n\t\"The painting has 3 charges. When a creature the painting identifies as its enemy starts its turn in a space the painting can see, the painting expends 1 of its charges to cast magic missile (3 missiles), targeting that creature. The painting regains all expended charges daily at dawn.\",\r\n\t\"The painting is a Small object with AC 12, 20 hit points, and immunity to poison damage. In its gold-leaf frame, the painting weighs 15 pounds. If the painting has at least 1 hit point and is targeted by a mending spell, it regains 2d6 hit points.\"\r\n];\r\nMagicItemsList[\"constantori's portrait\"] = {\r\n\tname : \"Constantori's Portrait\",\r\n\tsource : [[\"KftGV\", 101]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can telepathically contact this sentient painting over any distance while on the same plane. It can't contact me. Maintaining contact requires concentration like on a spell. I can command the painting to guard an area. It can cast Magic Missile 3 times per dawn. See Notes page.\",\r\n\tdescriptionFull : KftGV_ConstantoriPortrait.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(KftGV_ConstantoriPortrait).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(contact) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\taction : [[\"action\", \" (contact)\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"magic missile\"],\r\n\t\tselection : [\"magic missile\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n};\r\n\r\nMagicItemsList[\"shard of xeluan\"] = {\r\n\tname : \"Shard of Xeluan\",\r\n\tsource : [[\"KftGV\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"While holding this 1-ft long obsidian shard, I can use it as a spellcasting focus, and I gain a +1 bonus to my spell attack rolls. While it is on my person, I gain +4 Strength up to 22. Attuning to this shard extends its curse to me: When I roll a 1 on a check, attack, or save, I must roll on its misfortunes table, see Notes.\",\r\n\tdescriptionFull : \"This 1-foot-long shard of obsidian has veins of silver and gold beneath its cold surface.\"+\r\n\t\"\\n   \" + toUni(\"Empowered Magic\") + \". While holding the shard, you can use it as a spellcasting focus, and it gives you a +1 bonus to your spell attack rolls.\"+\r\n\t\"\\n   \" + toUni(\"Enhanced Strength\") + \". Your Strength score increases by 4 while the shard is on your person. The shard can't raise your Strength score above 22.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Attuning to this item extends its curse to you. You remain cursed until you are targeted by a remove curse spell or similar magic, or until the shard is reattached to Xeluan's petrified heart.\"+\r\n\t\"\\n   The shard's curse causes misfortune to befall you. When you roll a 1 on an attack roll, an ability check, or a saving throw, roll on the Shard Misfortunes table to determine the misfortune. For as long as this misfortune lasts, no other shard misfortunes befall you.\"+\r\n\t\"\\n\\n \" + toUni(\"d6\\tMisfortune\")+\r\n\t\"\\n  1\\tYou accidentally cut yourself with the shard and are poisoned until the next dawn.\"+\r\n\t\"\\n  2\\tYou experience a vision of an ancient calamity\\u2014a beautiful city threatened by crumbling mountains and erupting volcanoes\\u2014and are stunned until the end of your next turn.\"+\r\n\t\"\\n  3\\tFor a few seconds, the ground shakes under you. You and each creature within 10 feet of you must succeed on a DC 16 Dexterity saving throw or be knocked prone.\"+\r\n\t\"\\n  4\\tThe shard releases three glowing darts of magical force that target one random creature within 30 feet of you. If no such target exists, you become the target. Each dart hits automatically and deals 3 (1d4 + 1) force damage to the target.\"+\r\n\t\"\\n  5\\tUntil the next dawn, Beasts with an Intelligence score of 3 or lower are hostile to you.\"+\r\n\t\"\\n  6\\tNothing seems to go your way. Until the next dawn, you have disadvantage on ability checks.\",\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t]\r\n\t},\r\n\tscores : [4, 0, 0, 0, 0, 0],\r\n\tscoresMaximum : [22, 0, 0, 0, 0, 0],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Shard Misfortunes Table\",\r\n\t\tnote : [\r\n\t\t\t\"Attuning to this item extends its curse to me. I remain cursed until I'm targeted by a remove curse spell or similar magic, or until the shard is reattached to Xeluan's petrified heart.\",\r\n\t\t\t\"The shard's curse causes misfortune to befall me. When I roll a 1 on an attack roll, an ability check, or a saving throw, roll on the Shard Misfortunes table to determine the misfortune. For as long as this misfortune lasts, no other shard misfortunes befall me.\",\r\n\t\t\t\"\\n  d6\\tMisfortune\",\r\n\t\t\t\"1\\tI accidentally cut myself with the shard and are poisoned until the next dawn.\"+\r\n\t\t\t\"2\\tI experience a vision of an ancient calamity: a beautiful city threatened by crumbling mountains and erupting volcanoes. I am stunned until the end of my next turn.\"+\r\n\t\t\t\"3\\tFor a few seconds, the ground shakes under me. Each creature within 10 ft of me, myself included, must succeed on a DC 16 Dexterity saving throw or be knocked prone.\"+\r\n\t\t\t\"4\\tThe shard releases three glowing darts of magical force that target one random creature within 30 ft of me. If no such target exists, I become the target. Each dart hits automatically and deals 1d4+1 force damage to the target.\"+\r\n\t\t\t\"5\\tUntil the next dawn, Beasts with an Intelligence score of 3 or lower are hostile to me.\"+\r\n\t\t\t\"6\\tNothing seems to go my way. Until the next dawn, I have disadvantage on ability checks.\"\r\n\t\t]\r\n\t}]\r\n};\r\n\r\nvar KftGV_ShardSolitaire = {\r\n\tdescriptionFull : \"This gemstone contains an unstable extradimensional rift. Its facets are ribboned with iridescent veins that seem to move of their own accord. Five types of shard solitaire are known to exist, each one a different type of gemstone: black sapphire, diamond, jacinth, rainbow pearl, and ruby.\"+\r\n\t\"\\n   \" + toUni(\"Rift Step\") + \". As a bonus action, while wearing or holding the shard solitaire, you can teleport yourself, along with anything you're wearing or carrying, to an unoccupied space you can see within 30 feet of yourself.\"+\r\n\t\"\\n   When you use this property, you can tap into the unstable power of the stone's extradimensional rift to increase the teleport distance by up to 30 feet, but if you teleport more than 30 feet using Rift Step, you must succeed on a DC 16 Constitution saving throw or take 3d10 force damage immediately after you teleport.\"+\r\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". The stone has 6 charges and regains 1d6 expended charges daily at dawn. \",\r\n\tdescriptionTable : \"The Shard Solitaire Types table lists the spells common to all shard solitaires, as well as the spells specific to each kind of stone. As an action, you can cast one of the stone's spells by expending the requisite number of charges, requiring no material components (save DC 16).\"+\r\n\t\"\\n\\n \" + toUni(\"Shard Solitaire\\tSpells\")+\r\n\t\"\\n  All\\t\\tBanishment (3 charges; the target is banished to the stone's extradimensional space\"+\r\n\t\"\\n\\t\\tfor the spell's duration), Mirror Image (1 charge)\"+\r\n\t\"\\n  Black sapphire\\tBlight (3 charges), Finger of Death (6 charges)\"+\r\n\t\"\\n  Diamond\\tIce Storm (3 charges), Simulacrum (6 charges; the duplicate created by the spell\"+\r\n\t\"\\n\\t\\thas the same number of hit points as the creature it imitates)\"+\r\n\t\"\\n  Jacinth\\t\\tFireball (2 charges), Fire Storm (6 charges)\"+\r\n\t\"\\n  Rainbow pearl\\tPrismatic Spray (6 charges), Water Breathing (2 charges)\"+\r\n\t\"\\n  Ruby\\t\\tFly (2 charges), Teleport (6 charges)\",\r\n\tspellcastingBonus : [{\r\n\t\tfixedDC : 16,\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"mirror image\"],\r\n\t\tselection : [\"mirror image\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"banishment\"],\r\n\t\tselection : [\"banishment\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tspellChanges_banishment : {\r\n\t\tdescription : \"1 crea save or banished to the stone's extradimensional space for the spell's duration\",\r\n\t\tchanges : \"The target is instead banished to the stone's extradimensional space for the spell's duration.\"\r\n\t}\r\n};\r\nMagicItemsList[\"shard solitaire\"] = {\r\n\tname : \"Shard Solitaire\",\r\n\tsource : [[\"KftGV\", 193]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action while wearing or holding this gemstone, I can teleport up to 60 ft to an empty space I can see. If I teleport over 30 ft, I need to make a DC 16 Con save or take 3d10 force damage. It has 6 charges, regaining 1d6 at dawn. I can use these charges to cast several spells as an action, see the spell sheet.\",\r\n\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull.replace(\": black sapphire, diamond, jacinth, rainbow pearl, and ruby.\", \", as shown in the Shard Solitaire Types table.\") + KftGV_ShardSolitaire.descriptionTable,\r\n\tallowDuplicates : true,\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\tchoices : [\"Black Sapphire\", \"Diamond\", \"Jacinth\", \"Rainbow Pearl\", \"Ruby\"],\r\n\t\"black sapphire\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The black sapphire shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Blight (3 charges), Finger of Death (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Black Sapphire (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"3 charges\",\r\n\t\t\tspells : [\"blight\"],\r\n\t\t\tselection : [\"blight\"],\r\n\t\t\tfirstCol : 3\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"finger of death\"],\r\n\t\t\tselection : [\"finger of death\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"diamond\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The diamond shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Ice Storm (3 charges), Simulacrum (6 charges; the duplicate created by the spell has the same number of hit points as the creature it imitates).\",\r\n\t\taction : [[\"bonus action\", \"Diamond (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"3 charges\",\r\n\t\t\tspells : [\"ice storm\"],\r\n\t\t\tselection : [\"ice storm\"],\r\n\t\t\tfirstCol : 3\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"simulacrum\"],\r\n\t\t\tselection : [\"simulacrum\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment,\r\n\t\t\t\"simulacrum\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tdescription : \"Create illusory duplicate of humanoid/beast; follows my verbal commands; has full HP, not half; See B\",\r\n\t\t\t\tchanges : \"Cast as 1 action and the duplicate created by the spell has the same number of hit points as the creature it imitates.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"jacinth\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The jacinth shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Fireball (2 charges), Fire Storm (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Jacinth (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"fireball\"],\r\n\t\t\tselection : [\"fireball\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"fire storm\"],\r\n\t\t\tselection : [\"fire storm\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"rainbow pearl\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The rainbow pearl shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Prismatic Spray (6 charges), Water Breathing (2 charges).\",\r\n\t\taction : [[\"bonus action\", \"Rainbow Pearl (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"prismatic spray\"],\r\n\t\t\tselection : [\"prismatic spray\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}, {\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"water breathing\"],\r\n\t\t\tselection : [\"water breathing\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"ruby\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The ruby shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Fly (2 charges), Teleport (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Ruby (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"fly\"],\r\n\t\t\tselection : [\"fly\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"teleport\"],\r\n\t\t\tselection : [\"teleport\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t}\r\n};\r\n\n// pub_20230815_GotG.js\n// This file adds the player-material from Bigby Presents: Glory of the Giants to MPMB's Character Record Sheet\n\nSourceList[\"GotG\"] = {\n\tname : \"Bigby Presents: Glory of the Giants\",\n\tabbreviation : \"GotG\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://www.dndbeyond.com/marketplace/sourcebooks/bigby-presents-glory-of-the-giants\",\n\tdate : \"2023/08/15\"\n};\n\nAddSubClass(\"barbarian\", \"giant\", {\n\tregExpSearch : /^((?=.*(marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n))|((?=.*(warrior|fighter))(?=.*(feral|tribal))))(?=.*giant).*$/i,\n\tsubname : \"Path of the Giant\",\n\tsubnameShort: \"Giant\",\n\tsource : [[\"GotG\", 11]],\n\tabilitySave : 1,\n\tspellcastingAbility : 5,\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Giant Power\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc(\"I learn Giant, and the Druidcraft or Thaumaturgy cantrip with Wis as spellcasting ability\"),\n\t\t\tlanguageProfs : [\"Giant\"],\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Giant Power\",\n\t\t\t\tspells : [\"druidcraft\", \"thaumaturgy\"],\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Giant's Havoc\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn desc([\n\t\t\t\t\t\"While raging, I add the bonus damage to ranged thrown weapon attacks that use Str,\",\n\t\t\t\t\t\"I gain +\" + (n < 14 ? 5 : 10) + \" ft reach, and I can become \" + (n < 14 ? 'Large' : 'Huge') + \" along with what I'm wearing, if there is room\"\n\t\t\t\t]);\n\t\t\t})\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Elemental Cleaver\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn desc([\n\t\t\t\t\t\"When I rage, I can infuse a weapon I'm holding with acid, cold, fire, thunder, or lightning\",\n\t\t\t\t\t\"While raging, its damage type changes to the chosen type and it deals +\" + (n < 14 ? 1 : 2) + \"d6 damage,\",\n\t\t\t\t\t\"it gains the thrown (20/60 ft) property, and reappears instantly after a thrown attack\",\n\t\t\t\t\t\"As a bonus action, I can change the chosen type; The bonuses only function for me\"\n\t\t\t\t]);\n\t\t\t}),\n\t\t\taction : [[\"bonus action\", \" (change type)\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif ((v.isMeleeWeapon || v.isRangedWeapon) && classes.known.barbarian && classes.known.barbarian.level && /^(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Damage_Type = \"Varies\";\n\t\t\t\t\t\t\tvar isThrownWeapon = /\\bthrown\\b/i.test(v.WeaponText);\n\t\t\t\t\t\t\tvar extraDmg = classes.known.barbarian.level < 14 ? '+1d6 damage' : '+2d6 damage';\n\t\t\t\t\t\t\tvar extraProp = v.isRangedWeapon && !isThrownWeapon ? 'Thrown (20/60 ft), returning; ' : isThrownWeapon ? 'Returning; ' : 'Thrown, returning; ';\n\t\t\t\t\t\t\tvar hasRange = /\\d+ ?(f.{0,2}t|m)/i.test(fields.Range);\n\t\t\t\t\t\t\tif (!hasRange) {\n\t\t\t\t\t\t\t\tfields.Range += ', 20/60 ft';\n\t\t\t\t\t\t\t} else if ((!v.isRangedWeapon || isThrownWeapon) && hasRange) {\n\t\t\t\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\n\t\t\t\t\t\t\t\tif (rangeNmbr.length === 1) {\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[0].replace(',', '.'));\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = fields.Range.replace(longRange,\"long_range\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvar shortRange = Number(rangeNmbr[0].replace(',', '.'));\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[1].replace(',', '.'));\n\t\t\t\t\t\t\t\t\ttempRange = fields.Range;\n\t\t\t\t\t\t\t\t\tif (shortRange < 20) tempRange = tempRange.replace(shortRange,\"short_range\");\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = tempRange.replace(longRange,\"long_range\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfields.Range = tempRange.replace(\"short_range\", 20).replace(\"long_range\", 60);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + extraProp + extraDmg;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the words 'Elemental Cleaver' in a weapon's name, the Elemental Cleaver infused weapon properties will be added to it and its damage type will be set to 'Varies'. Also, my Rage's bonus damage will be added to it if it is a melee weapon that uses Strength.\"\n\t\t\t\t],\n\t\t\t\tatkCalc : [\n\t\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && fields.Mod === 1 && classes.known.barbarian && classes.known.barbarian.level && /^(?!.*\\brage\\b)(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.barbarian.level < 9 ? 2 : classes.known.barbarian.level < 16 ? 3 : 4;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Mighty Impel\",\n\t\t\tsource : [[\"GotG\", 12]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn \" [DC 8 + Prof Bonus + Str mod]\" + desc([\n\t\t\t\t\t\"As a bonus action while raging, I can hurl a \" + (n < 14 ? 'Medium' : 'Large') + \" or smaller creature within my reach\",\n\t\t\t\t\t\"I move it to an empty space I can see within 30 ft; Unwilling can save to avoid this\",\n\t\t\t\t\t\"If it doesn't end this movement on a surface that can support it, it falls and lands prone\"\n\t\t\t\t]);\n\t\t\t}),\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Demiurgic Colossus\",\n\t\t\tsource : [[\"GotG\", 12]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"While raging, my reach increases by 10 ft, and my size can increase to Huge\",\n\t\t\t\t\"Mighty Impel works on Large creatures; Elemental Cleaver increases to +2d6 damage\",\n\t\t\t])\n\t\t}\n\t}\n});\n\nBackgroundList[\"giant foundling\"] = {\n\tregExpSearch : /^(?=.*giant)(?=.*foundling).*$/i,\n\tname : \"Giant Foundling\",\n\tsource : [[\"GotG\", 12]],\n\tskills : [\"Intimidation\", \"Survival\"],\n\tgold : 10,\n\tlanguageProfs : [\"Giant\", 1],\n\tequipleft : [\n\t\t[\"Backpack\", \"\", 5],\n\t\t[\"Small stone/sprig from home\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Strike of the Giants\",\n\ttrait : [\n\t\t\"What I lack in stature compared to giants, I make up for with sheer spite.\",\n\t\t\"I insist on being taken seriously as a full-grown adult. Nobody talks down to me!\",\n\t\t\"Crowded spaces make me uncomfortable. I'd much rather be in an open field than a bustling tavern.\",\n\t\t\"I embrace my shorter stature. It helps me stay unnoticed\\u2014and underestimated.\",\n\t\t\"Every avalanche begins as a single pebble.\",\n\t\t\"The world always feels too big, and I'm afraid I'll never find my place in it.\"\n\t],\n\textra : [\n\t\t\"Choose an Origin Story\",\n\t\t\"Found as a baby\",\n\t\t\"Rescued by stone giants\",\n\t\t\"Lost in the jungle with frost giant\",\n\t\t\"Family killed in war of giants\",\n\t\t\"Studied with storm giant oracle\",\n\t\t\"Adopted by cloud giant\"\n\t]\n};\nBackgroundFeatureList[\"strike of the giants\"] = {\n\tdescription : \"I grew up among giants or where they lived. Something about this environment\\u2014the food, water, elemental magic, or some blessing\\u2014caused me to grow to a remarkable size for my kind. I'm used to moving through a world much bigger than I, and that is reflected in my skills, attitude, and perspective on life. I gain the Strike of the Giants feat.\",\n\tsource : [[\"GotG\", 13], [\"UA:WotM\", 4]],\n\tfeatsAdd: [\"Strike of the Giants\"],\n};\n\nBackgroundList[\"rune carver\"] = {\n\tregExpSearch : /^(?=.*rune)(?=.*carver).*$/i,\n\tname : \"Rune Carver\",\n\tsource : [[\"GotG\", 14]],\n\tskills : [\"History\", \"Perception\"],\n\tgold : 10,\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tlanguageProfs : [\"Giant\"],\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Small knife\", \"\", 0.5],\n\t\t[\"Whetstone\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Rune Shaper\",\n\ttrait : [\n\t\t\"Is it practical to learn an ancient language that is rarely spoken? No. But is it fun? Very.\",\n\t\t\"I learned one of my ancestors was a lauded rune carver whose story was lost to time. I seek to rekindle that legacy.\",\n\t\t\"The old, traditional markings of runecraft look so boring. Why not give my runes some flair?\",\n\t\t\"In my studies of runes, I strive to understand how great civilizations of the past fell, so I can prevent it from happening to societies of the present.\",\n\t\t\"Life may be a whirlwind of chaos, but whenever I create my runes, I feel at peace.\",\n\t\t\"My brain struggles to process words written in ink, but the feeling of carved runes makes my mind sing.\"\n\t],\n\textra : [\n\t\t\"Choose a Rune Style\",\n\t\t\"Needle in wax/clay\",\n\t\t\"Whittle wooden figurines\",\n\t\t\"Engraved glass beads\",\n\t\t\"Stitched into hems of clothing\",\n\t\t\"Carved animal bones\",\n\t\t\"Drawn into candles\"\n\t]\n};\nBackgroundFeatureList[\"rune shaper\"] = {\n\tdescription : \"I've dedicated my life to studying runecraft, taught by a master rune carver or learned by poring over ancient engravings. I can tap into the supernatural power held within runes. The art of runecraft has been adopted by many outside of giant society and those often incorporate their native language among the Giant runes. I gain the Rune Shaper feat.\",\n\tsource : [[\"GotG\", 14]],\n\tfeatsAdd: [\"Rune Shaper\"],\n};\n\n// Feats - first the Strike of the Giants tree\nFeatsList[\"strike of the giants\"] = {\n\tname : \"Strike of the Giants\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"Martial weapon proficiency or Giant Foundling background\",\n\tprereqeval : function (v) {\n\t\treturn v.martialWeaponsProf || CurrentBackground.known.indexOf('giant foundling') !== -1 || /strike of the giants/i.test(What(\"Background Feature\"));\n\t},\n\tdescriptionFull : \"You have absorbed primeval magic that gives you an echo of the might of giants. When you take this feat, choose one of the benefits listed below. Once per turn, when you hit a target with a melee weapon attack or a ranged weapon attack using a thrown weapon, you can imbue the attack with an additional effect depending on the benefit you chose:\"+\n\t\"\\n   \" + toUni(\"Cloud Strike\") + \". The target takes an extra 1d4 thunder damage. If the target is a creature, it must succeed on a Wisdom saving throw, or you become invisible to it until the start of your next turn or until immediately after you make an attack roll or cast a spell.\"+\n\t\"\\n   \" + toUni(\"Fire Strike\") + \". The target takes an extra 1d10 fire damage.\"+\n\t\"\\n   \" + toUni(\"Frost Strike\") + \". The target takes an extra 1d6 cold damage. If the target is a creature, it must succeed on a Constitution saving throw, or its speed is reduced to 0 until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Hill Strike\") + \". The target takes an extra 1d6 damage of the weapon's type. If the target is a creature, it must succeed on a Strength saving throw or have the prone condition.\"+\n\t\"\\n   \" + toUni(\"Stone Strike\") + \". The target takes an extra 1d6 force damage. If the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet from you in a straight line.\"+\n\t\"\\n   \" + toUni(\"Storm Strike\") + \". The target takes an extra 1d6 lightning damage. If the target is a creature, it must succeed on a Constitution saving throw, or it has disadvantage on attack rolls until the start of your next turn.\"+\n\t\"\\n   The saving throw DC for these effects equals 8 + your proficiency bonus + your Strength or Constitution modifier.\"+\n\t\"\\n   You can use this feat a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\tchoices : [\"Cloud Strike\", \"Fire Strike\", \"Frost Strike\", \"Hill Strike\", \"Stone Strike\", \"Storm Strike\"],\n\t\"cloud strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d4 thunder damage. It must then make a Wis save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or I become invisible to it until my next turn starts, I make an attack, or I cast a spell. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"fire strike\" : {\n\t\tdescription : \"I have absorbed primeval magic that gives me an echo of the might of giants. Once per turn when I hit with a melee weapon attack or thrown weapon, the target takes +1d10 fire damage. I can do this a number of times per long rest equal to my proficiency bonus.\"\n\t},\n\t\"frost strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 cold damage. It must then make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or its speed is reduced to 0 until my next turn starts. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"hill strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 damage. It must then make a Str save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or be knocked prone. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"stone strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 force damage. It must then make a Wis save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or be pushed 10 ft away from me in a straight line. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"storm strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 lightning damage. It must then make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or it gets disadvantage on attack rolls until my next turn starts. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t}\n}\nFeatsList[\"ember of the fire giant\"] = {\n\tname : \"Ember of the Fire Giant\",\n\tsource : [[\"GotG\", 17]],\n\tprerequisite : \"4th level, Strike of the Giants (Fire Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'fire strike';\n\t},\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\n\t\"\\n\" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace a single attack with a magical burst of flame. Each creature of your choice in a 15-foot-radius sphere centered on you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, a creature takes fire damage equal to 1d8 + your proficiency bonus, and it has the blinded condition until the start of your next turn. On a successful save, the creature takes half as much damage only. You can use your Searing Ignition a number of times equal to your proficiency bonus (but no more than once per turn), and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I get fire resistance. Prof B. per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8 + Prof B. fire damage, blind until my next turn starts. Dex save DC 8 + Prof B. + Str/Con/Wis mod half damage, not blind. [+1 Str/Con/Wis]\",\n\textraLimitedFeatures : [{\n\t\tname : \"Searing Ignition\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Fire\"],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Str mod) halves damage, not blinded. [+1 Str]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 1,\n\t\t\ttype : 'AlwaysProf',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Con mod) halves damage, not blinded. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 3,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Wis mod) halves damage, not blinded. [+1 Wis]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 5,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"fury of the frost giant\"] = {\n\tname : \"Fury of the Frost Giant\",\n\tsource : [[\"GotG\", 17]],\n\tprerequisite : \"4th level, Strike of the Giants (Frost Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'frost strike';\n\t},\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\n\t\"\\n\" + toUni(\"Frigid Retaliation\") + \". Immediately after a creature you can see within 30 feet of you hits you with an attack roll and deals damage, you can use your reaction to retaliate with a conjured blast of ice. The creature must make a Constitution saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, the creature takes cold damage equal to 1d8 + your proficiency bonus, and its speed is reduced to 0 until the end of its next turn. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I gain cold resistance. As a reaction when a creature I see within 30 ft damages me with an attack, I can, Prof B. times per long rest, use Frigid Retaliation: it must make a Con save DC 8 + Prof B. + Str/Con/Wis mod or take 1d8 + Prof B. cold damage and have speed 0 until its next turn ends. [+1 Str/Con/Wis]\",\n\taction : [[\"reaction\", \"Frigid Retaliation\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Frigid Retaliation\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Cold\"],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Str mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Str]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 1,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Con mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 3,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Wis mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Wis]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 5,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"guile of the cloud giant\"] = {\n\tname : \"Guile of the Cloud Giant\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"4th level, Strike of the Giants (Cloud Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'cloud strike';\n\t},\n\tdescriptionFull : \"You've manifested the confounding magic emblematic of cloud giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Charisma by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Cloudy Escape\") + \". When a creature you can see hits you with an attack roll, you can use your reaction to give yourself resistance to that attack's damage. You then teleport to an unoccupied space that you can see within 30 feet of yourself. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can give myself resistance to that attack's damage. I then teleport to an unoccupied space that I can see within 30 ft. I can do this reaction my proficiency bonus times per long rest.\",\n\taction : [[\"reaction\", \"Cloudy Escape\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Cloudy Escape\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Charisma\"],\n\t\"strength\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Strength]\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Constitution]\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Charisma]\",\n\t\tscores : [0,0,0,0,0,1]\n\t}\n};\nFeatsList[\"keenness of the stone giant\"] = {\n\tname : \"Keenness of the Stone Giant\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"4th level, Strike of the Giants (Stone Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'stone strike';\n\t},\n\tdescriptionFull : \"You've manifested the physical talents emblematic of stone giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Cavernous Sight\") + \". You gain darkvision with a range of 60 feet. If you already have darkvision from another source, its range increases by 60 feet.\"+\n\t\"\\n\" + toUni(\"Stone Throw\") + \". As a bonus action, you can take a rock and make a magical attack with it. The attack is a ranged spell attack with a range of 60 feet that uses the ability score you increased with this feat as the spellcasting ability. On a hit, the rock deals 1d10 force damage, and the target must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + the spellcasting ability modifier) or have the prone condition. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I gain +60 ft Darkvision. As a bonus action, Prof Bonus times per long rest, I can make a magical Stone Throw attack. It is a spell attack with 60 ft range that deals 1d10 force damage and the target hit must make a Str save or be knocked prone. This uses the ability increased as spellcasting ability. [+1 Str/Con/Wis]\",\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\taction : [[\"bonus action\", \"Stone Throw\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Stone Throw\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Strength as spellcasting ability. [+1 Strength]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 1,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Constitution as spellcasting ability. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 3,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Wisdom as spellcasting ability. [+1 Wisdom]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 5,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"soul of the storm giant\"] = {\n\tname : \"Soul of the Storm Giant\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"4th level, Strike of the Giants (Storm Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'storm strike';\n\t},\n\tdescriptionFull : \"You've manifested the tempest magic emblematic of storm giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Charisma by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself with an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts until the start of your next turn or until you are incapacitated. While the aura is active, you have resistance to lightning and thunder damage. In addition, attack rolls against you have disadvantage, and whenever another creature starts its turn within the aura, you can force the creature to make a Strength saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, the creature's speed is halved until the start of its next turn. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"As a bonus action, Prof B. per long rest, I can make a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning/thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to a Str save DC 8 + Prof + Str/Con/Cha mod or halve their speed until their next turn starts. [+1 Str/Con/Cha]\",\n\taction : [[\"bonus action\", \"Maelstrom Aura\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Maelstrom Aura\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Charisma\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Str mod) or halve their speed until their next turn starts. [+1 Str]';\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Con mod) or halve their speed until their next turn starts. [+1 Con]';\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Cha Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Cha mod) or halve their speed until their next turn starts. [+1 Cha]';\",\n\t\tscores : [0,0,0,0,0,1]\n\t}\n};\nFeatsList[\"vigor of the hill giant\"] = {\n\tname : \"Vigor of the Hill Giant\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"4th level, Strike of the Giants (Hill Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'hill strike';\n\t},\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or give you the prone condition, you can use your reaction to steady yourself. You aren't moved and don't have the prone condition.\"+\n\t\"\\n\" + toUni(\"Iron Stomach\") + \". Whenever you eat food as part of a short rest and spend one or more Hit Dice to regain hit points, you regain additional hit points equal to your Constitution modifier + your proficiency bonus.\",\n\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Constitution modifier + my proficiency bonus. [+1 Strength/Constitution/Wisdom]\",\n\taction : [[\"reaction\", \"Bulwark\"]],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 St\" + (typePF ? \"rength\" : \"\") + \"]\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 Con\" + (typePF ? \"stitution\" : \"\") + \"]\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 Wis\" + (typePF ? \"dom\" : \"\") + \"]\",\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\n// Feats - Rune Shaper\nvar GotG_RuneShaper = [\n\t\"You've studied the magic of Giant runes, granting you the following benefits:\",\n\t\">>Comprehend Languages<<. You learn the comprehend languages spell. You can cast this spell without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using any spell slots you have.\",\n\t\">>Rune Magic<<. You know a number of runes equal to half your proficiency bonus (rounded down), chosen from the Rune Spells table. Whenever you finish a long rest, you can inscribe each rune you know onto one nonmagical weapon, armor, piece of clothing, or other object you touch. You temporarily learn the 1st-level spells that correspond to the runes you inscribed, as specified on the Rune Spells table, and you know those spells until you finish a long rest, when the runes fade. While you are wearing or carrying any rune-marked object, you can cast the spells associated with those runes using any spell slots you have.\",\n\t\"You can also invoke a rune inscribed on an object you are wearing or carrying and cast its associated spell without expending a spell slot or using material components. Once you cast the spell in this way, you can't do so again until you finish a long rest. Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\n\t\"Each time you gain a level, you can replace one of the runes you know with another one from the Rune Spells table below.\\n\",\n\t\">>Rune\\tSpell<<\",\n\t\"Cloud\\tFog Cloud\",\n\t\"Death\\tInflict Wounds\",\n\t\"Dragon\\tChromatic Orb\",\n\t\"Enemy\\tDisguise Self\",\n\t\"Fire\\tBurning Hands\",\n\t\"Friend\\tSpeak with Animals\",\n\t\"Frost\\tArmor of Agathys\",\n\t\"Hill\\tGoodberry\",\n\t\"Journey\\tLongstrider\",\n\t\"King\\tCommand\",\n\t\"Mountain\\tEntangle\",\n\t\"Stone\\tSanctuary\",\n\t\"Storm\\tThunderwave\"\n];\nFeatsList[\"rune shaper\"] = {\n\tname : \"Rune Shaper\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"Spellcasting feature or Rune Carver background\",\n\tprereqeval : function(v) { return v.isSpellcastingClass || CurrentBackground.known.indexOf('rune carver') !== -1 || /rune shaper/i.test(What(\"Background Feature\")); },\n\tdescriptionFull : GotG_RuneShaper.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\tdescription : \"I know half my Prof Bonus, rounded down, in runes. After a long rest, I can inscribe each rune on a nonmagical objects I touch. It lasts until my next long rest. I can cast Comprehend Languages and each inscribed rune's spell once per long rest without a spell slot or material components, or by using spell slots. See Notes.\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellFirstColTitle : \"PR\",\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Comprehend languages\",\n\t\tspells : [\"comprehend languages\"],\n\t\tselection : [\"comprehend languages\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}, {\n\t\tname : \"Runes\",\n\t\tspells : [\"fog cloud\", \"inflict wounds\", \"chromatic orb\", \"disguise self\", \"burning hands\", \"speak with animals\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"entangle\", \"sanctuary\", \"thunderwave\"],\n\t\tfirstCol : \"oncelr+markedbox\",\n\t\tlinkTimesToHalfProf : true, // custom attribute, for use in calcChanges.spellList\n\t\ttimes : 1 // half proficiency bonus, so always minimum of 1\n\t}],\n\tchangeeval : function() {\n\t\tif (!CurrentSpells['rune shaper']) return;\n\t\t// See if the proficiency bonus changed to trigger the changes dialog\n\t\t// Don't set the times attribute here, but instead on every call to the spell dialog\n\t\tvar halfProf = Math.floor( Number(How('Proficiency Bonus')) / 2 );\n\t\tif (CurrentSpells['rune shaper'].halfProf != halfProf) {\n\t\t\tCurrentSpells['rune shaper'].halfProf = halfProf;\n\t\t\tCurrentUpdates.types.push(\"spells\");\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// Change the times attribute to be half proficiency, rounded down\n\t\t\t\t// Do it this way, so it is updated even if a bonus to proficiency was manually applied\n\t\t\t\tif (spName === 'rune shaper' && spType === 'feat-bonus' && spList.name === \"Comprehend languages\") {\n\t\t\t\t\tvar oCast = CurrentSpells['rune shaper'];\n\t\t\t\t\tvar halfProf = Math.floor( Number(How('Proficiency Bonus')) / 2 );\n\t\t\t\t\toCast.halfProf = halfProf;\n\t\t\t\t\tfor (var key in oCast.bonus) {\n\t\t\t\t\t\tvar aBonus = oCast.bonus[key];\n\t\t\t\t\t\tif (!isArray(aBonus)) aBonus = [aBonus];\n\t\t\t\t\t\tfor (var i = 0; i < aBonus.length; i++) {\n\t\t\t\t\t\t\tif (aBonus[i].linkTimesToHalfProf) {\n\t\t\t\t\t\t\t\taBonus[i].times = halfProf;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"\"\n\t\t]\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(GotG_RuneShaper).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/Your/g, \"My\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(contact|granting) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}]\n};\n\nCreatureList[\"spotted lion\"] = {\n\tname : \"Spotted Lion\",\n\tnameAlt : [\"Lion, Spotted\"],\n\tsource : [[\"GotG\", 177]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 15,\n\thp : 66,\n\thd : [7, 12],\n\tspeed : \"60 ft\",\n\tscores : [23, 14, 17, 5, 13, 10],\n\tskills : {\n\t\t\"perception\" : 5,\n\t\t\"stealth\" : 6\n\t},\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 15,\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Rend\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"Bonus action on prone target; If used after 20 ft straight move, see Pounce trait\",\n\t\ttooltip : \"If the lion moved at least 20 ft straight toward the target immediately before hitting it, the target must succeed on a DC 16 Strength saving throw or have the prone condition. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Pack Tactics\",\n\t\tdescription : \"The lion has advantage on an attack roll against a creature if at least one of the lion's allies is within 5 feet of the target and the ally doesn't have the incapacitated condition.\"\n\t}, {\n\t\tname : \"Pounce\",\n\t\tdescription : \"If the lion moved at least 20 ft straight toward the target immediately before hitting it, the target must succeed on a DC 16 Strength saving throw or have the prone condition. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Senses##. Darkvision 60 ft.\",\n\t\t\"##Pack Tactics##. Advantage on attack rolls if at least one capable ally is within 5 ft of the target.\",\n\t\t\"##Pounce##. If moved 20 ft straight to the target before hitting it, the target must succeed on a DC 16 Strength saving throw or be knocked prone. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t].join(\"\\n\")\n};\nCreatureList[\"titanothere\"] = {\n\tname : \"Titanothere\",\n\tsource : [[\"GotG\", 185]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 16,\n\thp : 136,\n\thd : [13, 12],\n\tspeed : \"50 ft\",\n\tscores : [25, 10, 19, 2, 12, 6],\n\tpassivePerception : 11,\n\tchallengeRating : \"5\",\n\tproficiencyBonus : 3,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Stomp\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\",\n\t\ttooltip : \"If the titanothere moved at least 20 feet straight toward the target immediately before hitting it, the target takes an extra 13 (3d8) bludgeoning damage, and if the target is a creature, it must succeed on a DC 18 Strength saving throw or be knocked prone.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Beast of Burden\",\n\t\tdescription : \"The titanothere is considered to be one size larger for the purpose of determining its carrying capacity.\"\n\t}, {\n\t\tname : \"Charge\",\n\t\tdescription : \"If the titanothere moved at least 20 feet straight toward the target immediately before hitting it, the target takes an extra 13 (3d8) bludgeoning damage, and if the target is a creature, it must succeed on a DC 18 Strength saving throw or be knocked prone.\"\n\t}]\n};\n\n// Magic Items (excluding Horizon Puzzle Cube, because that's really just a storytelling device)\nMagicItemsList[\"elven thrower\"] = { // spear, but otherwise identical to Dwarven Thrower\n\tname : \"Elven Thrower\",\n\tsource : [[\"GotG\", 64]],\n\ttype : \"weapon (spear)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by an Elf\",\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this magic weapon. When you hit with a ranged attack using this weapon, it deals an extra 1d8 damage or, if the target is a Giant, 2d8 damage. Immediately after the attack, the weapon flies back to your hand.\",\n\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magic spear. When I hit with a ranged attack using this weapon, it deals an extra 1d8 damage or, if the target is a Giant, 2d8 damage. Immediately after the attack, the weapon flies back to my hand.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"spear\",\n\t\tregExpSearch : /^(?=.*elven)(?=.*thrower).*$/i,\n\t\tname : \"Elven Thrower\",\n\t\tsource : [[\"SRD\", 220], [\"D\", 167]],\n\t\trange : \"Melee, 20/60 ft\",\n\t\tdescription : \"Thrown, versatile (1d8); +1d8 damage when thrown (2d8 vs. giants) and returns immediately\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}]\n};\n\nMagicItemsList[\"armor of safeguarding\"] = {\n\tname : \"Armor of Safeguarding\",\n\tnameTest : \"of Safeguarding\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"armor (heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"Set in the center of this armor's chest is a citrine engraved with the shield rune.\"+\n\t\"\\n   While wearing this armor, your hit point maximum increases by an amount equal to 10 + your level.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the armor's rune to cast the beacon of hope spell with it; the spell has a duration of 1 minute and doesn't require concentration. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"Set in the center of this armor's chest is a citrine engraved with the shield rune. While wearing this armor, my max hp increases by my level + 10. As an action once per dawn, I can invoke its shield rune to cast Beacon of Hope with a duration of 1 minute without requiring concentration.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Beacon of Hope\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy/i.test(inObj.type);\n\t\t}\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"Beacon of Hope\",\n\t\tspells : [\"beacon of hope\"],\n\t\tselection : [\"beacon of hope\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tspellChanges : {\n\t\t\"beacon of hope\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"I can cast Beacon of Hope once per dawn without it requiring concentration.\"\n\t\t}\n\t},\n\tcalcChanges : {\n\t\thp : function (totalHD, HDobj, prefix) {\n\t\t\treturn [10 + (classes.totallevel ? classes.totallevel : 0)];\n\t\t}\n\t}\n};\nMagicItemsList[\"bloodshed blade\"] = {\n\tname : \"Bloodshed Blade\",\n\tnameTest : \"Bloodshed\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"weapon (any sword)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"The hilt of this sword bears a carnelian engraved with the blood rune.\"+\n\t\"\\n   You can add your Constitution modifier (minimum of +1) to the damage rolls of attacks made with this weapon.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you target a creature with an attack using this weapon, you can invoke the sword's rune, causing it to flare with crimson light and infusing your attack with bloodthirsty precision. You then spend and roll one of your unspent Hit Dice and add the number rolled to the attack roll. You can choose to invoke the rune after rolling the d20.\"+\n\t\"\\n   If this attack hits, you can also spend and roll any number of your unspent Hit Dice and add the total rolled to the weapon's damage.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This sword with a carnelian engraved hilt adds my Con mod to damage rolls (min +1). Once per dawn after I roll to hit against a creature with it, I can invoke its blood rune and expend one HD to add to the to hit total. If this attack hits, I can expend any HD I have left and add them to the damage roll.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /\\bbloodshed\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\toutput.extraDmg += Math.max(1, Number(What(\"Con Mod\")));\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Bloodshed\" in a the name of a sword, it will be treated as the magic weapon Bloodshed Blade, which adds my Constitution modifier (minimum of +1) to its damage rolls.'\n\t\t]\n\t}\n};\nMagicItemsList[\"crown of the wrath bringer\"] = {\n\tname : \"Crown of the Wrath Bringer\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This jagged iron circlet bears ornaments in the shape of the enemy rune. When worn, the crown glows with pale light as it draws upon the wearer's fury to strike opponents with vicious terror.\"+\n\t\"\\n   When you make an attack roll against a creature and hit it while wearing this crown, you can spend and roll one of your unspent Hit Dice. The creature takes extra psychic damage equal to the number rolled.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the crown's rune to cast the fear spell (save DC 15) with it; the spell has a duration of 1 minute and doesn't require concentration. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"When I hit a creature with an attack roll while wearing this jagged icon circlet, I can spend one HD to have the attack deal that much extra psychic damage. As an action once per dawn, I can invoke its enemy rune to cast Fear (DC 15) with a duration of 1 minute without requiring concentration.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Fear\",\n\tfixedDC : 15,\n\tspellcastingBonus : [{\n\t\tname : \"Fear\",\n\t\tspells : [\"fear\"],\n\t\tselection : [\"fear\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tspellChanges : {\n\t\t\"fear\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"I can cast Fear once per dawn without it requiring concentration.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"delver's claws\"] = {\n\tname : \"Delver's Claws\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"The back of this weatherworn leather glove is adorned with three large metal hooks shaped like a mole's claws. Stitched into the glove's palm is the mountain rune.\"+\n\t\"\\n   The glove is considered a simple melee weapon with the finesse and light properties, and it deals 1d4 slashing damage on a hit. While attuned to the glove, you gain a burrowing speed equal to your walking speed and blindsight to 15 feet.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \"As an action, you can invoke the glove's rune to bolster yourself with the sturdiness of the earth. Spend and roll a number of your unspent Hit Dice up to a maximum equal to your proficiency bonus. You then regain a number of hit points equal to the total roll plus your Constitution modifier.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This weatherworn leather glove is a simple, finesse, light melee weapon, dealing 1d4 slashing damage. While attuned, I gain 15 ft blindsight and a burrow speed equal to my walking speed. As an action once per dawn, I can invoke its mountain rune to spend up to Prof Bonus HD to regain hp (total roll + Con mod).\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*delver)(?=.*claw).*$/i,\n\t\tname : \"Delver's Claws\",\n\t\tsource : [[\"GotG\", 112]],\n\t\tability : 1,\n\t\ttype : \"Simple\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Finesse, light\",\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\tspeed : { burrow : { spd : \"walk\", enc : \"walk\" } },\n\tvision : [[\"Blindsight\", 15]],\n\taction : [[\"action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"glowrune pigment\"] = {\n\tname : \"Glowrune Pigment\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescriptionFull : \"This set of 1d4 + 2 small paint pots contains pigments mixed from crushed luminescent gemstones. This magical paint bestows temporary magical gifts on creatures with runes drawn on their skin with this paint.\"+\n\t\"\\n   One paint pot contains enough pigment to paint one rune. A creature can spend 10 minutes to paint one of the following runes onto itself or another creature:\"+\n\t\"\\n   \" + toUni(\"Journey Rune\") + \". Difficult terrain doesn't cost the painted creature extra movement.\"+\n\t\"\\n   \" + toUni(\"Life Rune\") + \". The painted creature gains 10 temporary hit points and has advantage on death saving throws.\"+\n\t\"\\n   \" + toUni(\"Light Rune\") + \". The painted creature gains darkvision to a range of 30 feet. If the painted creature already has darkvision from another source, the range of its darkvision increases by 30 feet.\"+\n\t\"\\n   \" + toUni(\"Mountain Rune\") + \". The painted creature is immune to being knocked prone and has advantage on Strength and Constitution saving throws.\"+\n\t\"\\n   \" + toUni(\"Shield Rune\") + \". The painted creature has advantage on Dexterity saving throws against effects that deal damage.\"+\n\t\"\\n   A creature can benefit from only one painted rune at a time, so a new rune painted on a creature has no effect unless the old one is removed first. The rune's benefits last for 8 hours or until the painted creature uses its action to wipe away the rune.\",\n\tdescription : \"This set of 1d4+2 paint pots can each be used to draw one rune on a creature in 10 min, which lasts for 8 hours: \\u2022 No penalty from difficult terrain. \\u2022 10 temp hp and adv. on death saves. \\u2022 +30 ft darkvision. \\u2022 Can't be knocked prone and adv. on Str saves and Con saves. \\u2022 Adv. on Dex save vs. damaging effects.\"\n};\nvar GotG_HarpOfGildedPlenty = [\n\t\"This golden harp is sculpted in the image of the god Iallanis, depicted as a young cloud giant woman. When a creature comes within 5 feet of the harp, the instrument animates and is capable of speaking, singing, and playing by itself.\",\n\t\"Whenever you attempt to attune to the harp, you must first make either a DC 15 Charisma (Performance) check or a DC 20 Charisma (Persuasion) check to convince the harp that you are worthy, attuning to the harp on a success. If you fail, you can't attempt to attune to the harp again until the next dawn. Once you have successfully attuned to the harp, the harp resizes to suit you.\",\n\t\">>Stalwart Song<<. Whenever you make a Charisma check while attuned to the harp, you can treat a roll of 9 or lower on the die as a 10.\",\n\t\">>Feast of Plenty<<. If you spend 10 minutes playing the harp, you can cast the heroes' feast spell from it. Once this property is used, it can't be used again until 1d10 + 10 days have passed.\",\n\t\">>Soothing Melody<<. As an action, you can use the harp to cast the calm emotions spell (save DC 19). When the spell is cast using the harp, its duration increases to 1 hour, provided you maintain concentration on the spell. This property can be used five times, and it regains all uses at dawn.\",\n\t\">>Sentience<<. The harp is a sentient, chaotic good object with an Intelligence of 13, a Wisdom of 15, and a Charisma of 20. It has hearing and darkvision to a range of 120 feet.\",\n\t\"The harp can speak, read, and understand Common and Giant. It can also communicate telepathically with the creature attuned to it.\",\n\t\"The harp has a dramatic and pompous personality, taking extreme pride in the quality of music produced from its strings. If the harp is shorter than 6 feet tall, it bemoans its height.\"\n];\nMagicItemsList[\"harp of gilded plenty\"] = {\n\tname : \"Harp of Gilded Plenty\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : GotG_HarpOfGildedPlenty.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(GotG_HarpOfGildedPlenty).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(suit) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tprerequisite : \"To attune to the harp, you must first make either a DC 15 Charisma (Performance) check or a DC 20 Charisma (Persuasion) check to convince the harp that you are worthy. You can retry after the next dawn.\",\n\tprereqeval : function() { return false; }, // so that everyone reads the prerequisite before adding the item\n\tdescription : \"This sentient harp is dramatic and pompous, see notes. I can treat a roll of 9 or lower as a 10 for Charisma checks. I can cast Heroes' Feast by playing it for 10 min, but can't do so again until 1d10+10 days have passed. Five times per dawn, I can use it to cast Calm Emotions (DC 19) with a 1 hour duration.\",\n\textraLimitedFeatures : [{\n\t\tname : \"Harp of Gilded Plenty: Calm Emotions\",\n\t\tusages : 5,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Harp: Heroes' Feast\",\n\t\tusages : 1,\n\t\trecovery : \"Special\",\n\t\tadditional : \"1d10+10 days\"\n\t}],\n\tspellFirstColTitle : \"Ch\",\n\tfixedDC : 19,\n\tspellcastingBonus : [{\n\t\tname : \"5\\xD7 per dawn\",\n\t\tspells : [\"calm emotions\"],\n\t\tselection : [\"calm emotions\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"1\\xD7 per 1d10+10 days\",\n\t\tspells : [\"heroes' feast\"],\n\t\tselection : [\"heroes' feast\"],\n\t\tfirstCol : \"Sp\"\n\t}]\n};\nMagicItemsList[\"lash of immolation\"] = {\n\tname : \"Lash of Immolation\",\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (whip)\",\n\trarity : \"rare\",\n\tdescriptionFull : \"The handle of this dark leather whip bears the fire rune, and embers dance around the whip's tail.\"+\n\t\"\\n   You gain a +1 bonus to attack and damage rolls made with this weapon, and on a hit, the whip deals an extra 1d6 fire damage. When you score a critical hit with an attack using this whip, the target also has the restrained condition until the start of your next turn, as fiery bands lash around the target.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you make an attack with the whip and hit, you can use your reaction to invoke the whip's rune. Doing so increases the extra fire damage dealt by the whip to 2d6.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This +1 dark leather whip ha embers dancing around its tail. It deals +1d6 fire damage. When I score a critical hit with it, the target is restrained until my next turn starts, as fiery bands lash around it. As a reaction once per dawn when I hit with it, I can invoke its fire rune to increase the fire damage to 2d6.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"whip\",\n\t\tregExpSearch : /^(?=.*lash)(?=.*immolation).*$/i,\n\t\tname : \"Lash of Immolation\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdescription : \"Finesse, reach; +1d6 fire damage (1/dawn +2d6); Critical hit: restrained until my next turn starts\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"longbow of the healing hearth\"] = {\n\tname : \"Longbow of the Healing Hearth\",\n\tnameAlt : typePF ? \"\" : \"Healing Hearth\", // shorter for the colourful spell sheet\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (longbow)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"This ivory longbow is inscribed with a prayer to the god Hiatea, the runes of which are entwined with gilded engravings of wheat stalks and deer antlers.\"+\n\t\"\\n   You gain a +3 bonus to attack and damage rolls made with this weapon. If you load no ammunition in the weapon, it produces its own, automatically creating one magic arrow when you pull back the string. The arrow created by the bow vanishes the instant after it hits or misses a target.\"+\n\t\"\\n   The bow has 8 charges for the following properties, which you can use while wielding the bow. The bow regains 1d4 + 1 charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Curative Arrow\") + \". When you take the Attack action using the bow, you can expend 1 charge to replace one of your attacks with a blazing arrow of curative magic, which automatically hits one creature you can see within 150 feet of you. The target can then immediately spend and roll one of its unspent Hit Dice and regain a number of hit points equal to the roll plus your Wisdom modifier (minimum of +1).\"+\n\t\"\\n   If the target has no unspent Hit Dice remaining, nothing happens. You can use a curative arrow only once per turn.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". While holding the bow, you can use an action to expend 1 or more of its charges to cast one of the following spells from it (save DC 18): create food and water (1 charge), warding bond (2 charges), guardian of faith (3 charges).\",\n\tdescription : \"This +3 ivory longbow creates its own ammo if needed and has 8 charges, regaining 1d4+1 at dawn. Instead of one attack in my Attack action, I can use 1 charge to have a target I see in 150 ft use 1 HD to regain hp + my Wis mod. I can use charges to cast (DC 18): Create Food \" + (typePF ? \"\\u0026\" : \"and\") + \" Water, Warding Bond, Guardian of Faith.\",\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longbow\",\n\t\tregExpSearch : /^(?=.*longbow)(?=.*healing)(?=.*hearth).*$/i,\n\t\tname : \"Longbow of the Healing Hearth\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdescription : \"Ammunition, heavy, two-handed; Creates own ammo\",\n\t\tmodifiers : [3, 3],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 8,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tfixedDC : 18,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"create food and water\"],\n\t\tselection : [\"create food and water\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"warding bond\"],\n\t\tselection : [\"warding bond\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"guardian of faith\"],\n\t\tselection : [\"guardian of faith\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"lucent destroyer\"] = {\n\tname : \"Lucent Destroyer\",\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (musket)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This magic weapon is a triple-barreled bronze musket. You gain a +1 bonus to attack and damage rolls made with it. It requires no ammunition, its damage is radiant instead of piercing, and it doesn't have the loading property. The base of the weapon is emblazoned with the light rune.\"+\n\t\"\\n   Additionally, while attuned to the weapon, you can cast dancing lights from the musket at will.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the weapon's rune to cast the sunbeam spell (save DC 17) with it. Once the rune has been invoked, it can't be invoked again until the next dawn.\"+\n\t\"\\n\\nIt's up to the DM to decide whether a character has proficiency with a firearm. Characters in most D\\u0026D worlds wouldn't have such proficiency. During their downtime, characters can use the training rules in the Player's Handbook to acquire proficiency, assuming that they have enough ammunition to keep the weapons working while mastering their use.\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magical musket emblazoned with the light rune. It deals radiant damage and doesn't need to be loaded with ammunition. It allows me to cast Dancing Lights at will and Sunbeam (DC 17) once per dawn by invoking the rune.\",\n\tweight : 10,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"musket\",\n\t\tregExpSearch : /^(?=.*lucent)(?=.*destroyer).*$/i,\n\t\tname : \"Lucent Destroyer\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdamage : [1, 12, \"radiant\"],\n\t\tdescription : \"Two-handed\",\n\t\tmodifiers : [1, 1],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune: Sunbeam\",\n\tfixedDC : 17,\n\tspellcastingBonus : [{\n\t\tname : \"At will\",\n\t\tspells : [\"dancing lights\"],\n\t\tselection : [\"dancing lights\"],\n\t\tfirstCol : \"atwill\"\n\t}, {\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"sunbeam\"],\n\t\tselection : [\"sunbeam\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"mistral mantle\"] = {\n\tname : \"Mistral Mantle\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This thick, fur-lined cloak has the frost rune stitched on the hem in silvery blue thread. Frigid wind swirls around the cloak, regardless of the weather.\"+\n\t\"\\n   While wearing this cloak, you have resistance to cold damage. Additionally, when you move within 5 feet of a creature, you can cause the cloak's cold wind to buffet the creature. The creature must succeed on a DC 14 Dexterity saving throw or take 1d6 cold damage and have the prone condition. A creature can be affected by the mantle only once during a turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the mantle's rune to cast the sleet storm spell (save DC 14) with it. When you use the mantle to cast the spell, the area of the spell isn't difficult terrain for you, and you can see through the storm, ignoring the normal penalties of a heavily obscured area.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This thick, fur-lined cloak gives me cold resistance. When I move within 5 ft of a creature, I can have it make a DC 14 Dex save once per turn or take 1d6 cold damage and become prone. As an action once per dawn, I can invoke its frost rune to cast Sleet Storm (DC 14), which I can move and see through normally.\",\n\tdmgres : [\"Cold\"],\n\tfixedDC : 14,\n\tspellcastingBonus : [{\n\t\tname : \"Sleet Storm\",\n\t\tspells : [\"sleet storm\"],\n\t\tselection : [\"sleet storm\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Sleet Storm\"\n};\nMagicItemsList[\"nimbus coronet\"] = {\n\tname : \"Nimbus Coronet\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"The design of this bronze circlet resembles swirling clouds. At its center is set a deep-blue stone, upon which is inscribed the cloud rune.\"+\n\t\"\\n   While wearing this circlet, you take no damage from falling. Additionally, as a bonus action, you and everything you are wearing or carrying can teleport to an unoccupied space you can see within 15 feet of yourself, reappearing in a puff of shimmering clouds.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the circlet's rune to assume a cloudlike form. The form lasts for 1 minute, until you are incapacitated, or until you dismiss it (no action required).\"+\n\t\"\\n   While in cloud form, you have a flying speed of 60 feet and resistance to bludgeoning, piercing, and slashing damage.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"I take no damage from falling while wearing this bronze circlet. As a bonus action, I can use it to teleport to an empty space I see within 15 ft. As an action once per dawn, I can invoke its cloud rune to become cloudlike for up to 1 minute. I then gain 60 ft fly speed, bludgeoning, slashing and piercing resistance.\",\n\taction : [[\"bonus action\", \" (teleport 15 ft)\"], [\"action\", \" (invoke rune)\"]],\n\tsavetxt : { immune : [\"falling damage\"] },\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"orb of skoraeus\"] = {\n\tname : \"Orb of Skoraeus\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescriptionFull : \"Said to be infused with the wisdom and power of the god Skoraeus, this polished stone orb is veined with iridescent crystal that seems to glow from within. The orb is 8 inches in diameter and weighs 8 pounds, making it a palm-sized trinket for a stone giant but a more unwieldy item for a Medium creature to use.\"+\n\t\"\\n   While holding this orb, you can use it as a spellcasting focus for your spells. You also gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Abundant Components\") + \". The orb has 3 charges and regains all expended charges at dawn. When you cast a spell while holding this orb, you can expend up to 3 charges to ignore the spell's material components with a gold piece cost, up to 300 gp per charge expended.\"+\n\t\"\\n   \" + toUni(\"Astute Mind\") + \". You gain a +2 bonus to any Constitution saving throw you make to maintain your concentration on a spell.\"+\n\t\"\\n   \" + toUni(\"Divine Sight\") + \". You can see normally in darkness, both magical and nonmagical, to a distance of 120 feet.\",\n\tdescription : 'I can use this polished stone orb as a spellcasting focus that grants me +2 to concentration saves and \"Divine Sight\", the ability to see in normal and magical darkness out to 120 ft. It has 3 charges per dawn. When I cast a spell, I can expend charges to ignore 300 gp worth of material components per charge used.',\n\tweight : 8,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tvision : [[\"Divine Sight\", 120]],\n\tsavetxt : {\n\t\ttext : [\"+2 on concentration saves\"]\n\t}\n};\nMagicItemsList[\"prehistoric figurine of wondrous power\"] = {\n\tname : \"Prehistoric Figurine of Wondrous Power\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, these statuettes depict dinosaurs and related creatures from the earliest days of the world.\"+\n\t\"\\n   As an action, you can throw a prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living creature. If the space where the creature would appear is occupied by other creatures or objects, or if there isn't enough space for the creature, the figurine doesn't become a creature.\"+\n\t\"\\n   The creature is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the creature defends itself but takes no other actions. See the Monster Manual for the creature's statistics.\"+\n\t\"\\n   The creature exists for a duration specific to each figurine. At the end of the duration, the creature reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature becomes a figurine again, its property can't be used again until a certain amount of time has passed, as specified in the figurine's description.\",\n\tdescription : \"As an action, I can speak the command word and throw one or more statuettes to an unoccupied space within 60 ft where it becomes a specific creature for a certain amount of time. It is friendly, understands my languages, and obeys my commands.\",\n\taction : [[\"action\", \"\"]],\n\tchoices : [\"Carnelian Triceratops\", \"Jasper Tyrannosaurus Rex\", \"Kyanite Pteranodon\", \"Pyrite Plesiosaurus\"],\n\t\"carnelian triceratops\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak the command word and throw this carnelian statuette to an unoccupied space within 60 ft, where it becomes a triceratops for 6 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this carnelian statuette of a triceratops to an unoccupied space within 60 ft, where it becomes a triceratops for up to 6 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the triceratops defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 10 days have passed.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this carnelian statuette depicts a triceratops.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living triceratops. If the space where the triceratops would appear is occupied by other creatures or objects, or if there isn't enough space for the triceratops, the figurine doesn't become a triceratops.\"+\n\t\t\"\\n   The triceratops is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the triceratops defends itself but takes no other actions. It can be ridden as a mount. See the Monster Manual for the triceratops's statistics.\"+\n\t\t\"\\n   The triceratops exists for up to 6 hours. At the end of the duration, the triceratops reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the triceratops becomes a figurine again, its property can't be used again until 10 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"10 days\"\n\t},\n\t\"jasper tyrannosaurus rex\" : {\n\t\trarity : \"legendary\",\n\t\tdescription : \"As an action, I can speak the command word and throw this jasper statuette to an unoccupied space within 60 ft, where it becomes a T-rex for up to 1 hour, until I use the command word again, or it reaches 0 HP. It is friendly, obeys my commands, and understands my languages. I can lose control of it, see notes.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this jasper statuette of a T-rex to an unoccupied space within 60 ft, where it becomes a T-rex for up to 1 hour, until I use an action to repeat the command word, or it reaches 0 HP. It is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 14 days have passed. Whenever I command it (even if reverting back), roll a d20. On a 1, I lose control and it becomes hostile until it drops to 0 hp.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this jasper statuette depicts a tyrannosaurus rex.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living tyrannosaurus rex. If the space where the tyrannosaurus rex would appear is occupied by other creatures or objects, or if there isn't enough space for the tyrannosaurus rex, the figurine doesn't become a tyrannosaurus rex.\"+\n\t\t\"\\n   The tyrannosaurus rex is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the tyrannosaurus rex defends itself but takes no other actions. See the Monster Manual for the tyrannosaurus rex's statistics.\"+\n\t\t\"\\n   The tyrannosaurus rex exists for up to 1 hour. At the end of the duration, the tyrannosaurus rex reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the tyrannosaurus rex becomes a figurine again, its property can't be used again until 14 days have passed.\"+\n\t\t\"\\n   Whenever you command the figurine while it's in tyrannosaurus rex form (including commanding it to revert to figurine form), you must roll a d20. On a 1, you lose control of the figurine, and it becomes hostile to you and your companions until it is reduced to 0 hit points, at which point it reverts to figurine form.\",\n\t\tusages : 1,\n\t\trecovery : \"14 days\",\n\t\ttoNotesPage : [{\n\t\t\tname : \"Lose Control\",\n\t\t\tnote : desc(\"Whenever I command the figurine while it's in tyrannosaurus rex form (including commanding it to revert to figurine form), I must roll a d20. On a 1, I lose control of the figurine, and it becomes hostile to me and my companions until it is reduced to 0 hit points, at which point it reverts to figurine form.\")\n\t\t}]\n\t},\n\t\"kyanite pteranodon\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak the command word and throw this kyanite statuette to an unoccupied space within 60 ft, where it becomes a pteranodon for 8 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this kyanite statuette of a pteranodon to an unoccupied space within 60 ft, where it becomes a pteranodon for up to 8 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount if I'm Medium or smaller, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 7 days have passed.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this kyanite statuette depicts a pteranodon.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living pteranodon. If the space where the pteranodon would appear is occupied by other creatures or objects, or if there isn't enough space for the pteranodon, the figurine doesn't become a pteranodon.\"+\n\t\t\"\\n   The pteranodon is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the pteranodon defends itself but takes no other actions. If your size is Medium or smaller, you can ride the pteranodon as a mount. See the Monster Manual for the pteranodon's statistics.\"+\n\t\t\"\\n   The pteranodon exists for up to 8 hours. At the end of the duration, the pteranodon reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the pteranodon becomes a figurine again, its property can't be used again until 7 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"7 days\"\n\t},\n\t\"pyrite plesiosaurus\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak the command word and throw this pyrite statuette to an unoccupied space within 60 ft, where it becomes a plesiosaurus for 12 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this pyrite statuette of a plesiosaurus to an unoccupied space within 60 ft, where it becomes a plesiosaurus for up to 12 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 4 days have passed. While I'm riding it, I can use it to cast Water Breathing at will.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this pyrite statuette depicts a plesiosaurus.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living plesiosaurus. If the space where the plesiosaurus would appear is occupied by other creatures or objects, or if there isn't enough space for the plesiosaurus, the figurine doesn't become a plesiosaurus.\"+\n\t\t\"\\n   The plesiosaurus is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the plesiosaurus defends itself but takes no other actions. It can be ridden as a mount. While you are riding the plesiosaurus, you can use it to cast water breathing at will. See the Monster Manual for the plesiosaurus's statistics.\"+\n\t\t\"\\n   The plesiosaurus exists for up to 12 hours. At the end of the duration, the plesiosaurus reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the plesiosaurus becomes a figurine again, its property can't be used again until 4 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"4 days\",\n\t\tspellcastingBonus : [{\n\t\t\tname : \"At will while riding it\",\n\t\t\tspells : [\"water breathing\"],\n\t\t\tselection : [\"water breathing\"],\n\t\t\tfirstCol : \"atwill\"\n\t\t}]\n\t}\n};\nMagicItemsList[\"reaper's scream\"] = {\n\tname : \"Reaper's Scream\",\n\tsource : [[\"GotG\", 115]],\n\ttype : \"weapon (morningstar)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"The spikes of this iron morningstar glow with sickly, pale light. The death rune is inscribed on its shaft and inlaid with pearl.\"+\n\t\"\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, and attacks with this weapon deal necrotic damage instead of piercing damage.\"+\n\t\"\\n   When you attack a creature with this weapon and roll a 20 on the attack roll, you gain 10 temporary hit points. Any creature that hits you with a melee attack while you have 1 or more of these temporary hit points takes 10 necrotic damage.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As a bonus action, you can invoke the weapon's rune, unleashing the screams of every creature slain by the weapon in one cacophonous burst. Each creature of your choice within 60 feet of you must succeed on a DC 15 Wisdom saving throw or have the stunned condition until the start of your next turn.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This +2 morningstar deals necrotic damage. When I roll a 20 to hit vs. a creature, I gain 10 \" + (typePF ? \"temp\" : \"temporary\") + \" hp. Melee attackers that hit me take 10 necrotic \" + (typePF ? \"dmg\" : \"damage\") + \" while these last. As a bonus action once per dawn, I can invoke its death rune to have chosen \" + (typePF ? \"\" : \"creatures \") + \"within 60 ft make a Wis save DC 15 or be stunned until my next turn starts.\",\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"morningstar\",\n\t\tregExpSearch : /^(?=.*reaper)(?=.*scream).*$/i,\n\t\tname : \"Reaper's Scream\",\n\t\tsource : [[\"GotG\", 115]],\n\t\tdescription : \"On 20 to hit: 10 temp hp (see magic item)\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\taction : [[\"bonus action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"ring of amity\"] = {\n\tname : \"Ring of Amity\",\n\tsource : [[\"GotG\", 115]],\n\ttype : \"ring\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This ring is carved from hematite and bears an engraving of the friend rune.\"+\n\t\"\\n   When you first attune to this ring, you can touch one willing creature and form a magical bond between the two of you. While this bond lasts, whenever you are subjected to a spell or magical effect that restores hit points, the bonded creature also receives the benefits of the spell or effect.\"+\n\t\"\\n   You can bond with a different creature whenever you finish a long rest, provided that you can touch the creature and the creature is willing.\"+\n\t\"\\n   A creature can benefit from only one ring of amity's bond at a time. The bond ends if either you or the creature travels to a different plane of existence, if you bond with a different creature at the end of a long rest, or if you sever the bond as a bonus action.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When the bonded creature hits a target with an attack roll, you can use your reaction to invoke the ring's rune if you are within 60 feet of the bonded creature. The bonded creature's attack is then turned into a critical hit.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This hematite ring allows me to bond to one willing creature I touch, which I can change every long rest. When a magical effect restores my hp, my bond also benefits from this effect. As a reaction once per dawn when my bond is within 60 ft and hits an attack, I can invoke the ring's friend rune to make it a critical hit.\",\n\tdescriptionLong : \"This hematite ring allows me to bond to one willing creature I touch, which I can change every long rest. A creature can only benefit from one such bond at the same time. The bond ends if we are no longer on the same plane, if I bond with another, or if I sever it as a bonus action. While this bond lasts, whenever I'm subjected to a spell or magical effect that restores hp, the bonded creature also receives the benefits of the spell or effect. As a reaction once per dawn when my bond is within 60 ft and hits with an attack roll, I can invoke the ring's friend rune to turn the hit into a critical hit.\",\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"sanctum amulet\"] = {\n\tname : \"Sanctum Amulet\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"A black opal pendant hangs at the base of this pearlescent chain. The sacred rune is inscribed on the back of the pendant.\"+\n\t\"\\n   While wearing this item, you have resistance to necrotic damage. Additionally, you can cast the spare the dying cantrip using either an action or a bonus action.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When a creature you can see within 60 feet of you is reduced to 0 hit points as a result of taking damage, you can use your reaction to invoke the item's rune, causing the pendant to flash with pale light. The creature then instead drops to 1 hit point.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this black opal pendant on a pearlescent chain, I have resistance to necrotic damage and can cast Spare the Dying as an action or bonus action. As a reaction once per dawn when I see a creature within 60 ft drop to 0 hp by damage, I can invoke the pendant's sacred rune to restore it to 1 hp.\",\n\tdmgres : [\"Necrotic\"],\n\tspellcastingBonus : [{\n\t\tname : \"Spare the Dying\",\n\t\tspells : [\"spare the dying\"],\n\t\tselection : [\"spare the dying\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"spare the dying\" : {\n\t\t\ttime : \"1 a/bns\",\n\t\t\tchanges : \"I can cast Spare the Dying either as an action or as a bonus action.\"\n\t\t}\n\t},\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"shield of the blazing dreadnought\"] = {\n\tname : \"Shield of the Blazing Dreadnought\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"Modeled after the formidable spiked tower shields wielded by some fire giants, this iron shield emanates a constant warmth.\"+\n\t\"\\n   You can use a bonus action to activate the shield, causing glowing lava to flow through the shield's grooves for 1 minute. While the shield is active, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Blazing Soul\") + \". You have immunity to fire damage.\"+\n\t\"\\n   \" + toUni(\"Cleansing Fire\") + \". As an action, you can cause the shield to flare with the cleansing fire of the god Surtur. Choose one creature you can see within 30 feet of yourself (you can choose yourself). One disease or condition of your choice affecting this creature ends immediately; the condition can be blinded, charmed, deafened, or poisoned.\"+\n\t\"\\n   \" + toUni(\"Shield Bash\") + \". When you take the Attack action on your turn, you can replace one of your attacks with a shield bash, targeting one creature you can see within 5 feet of yourself. The target must make a Strength saving throw (DC equals 8 + your proficiency bonus + your Strength modifier). On a failed save, the target takes 3d6 bludgeoning damage plus 3d6 fire damage and is knocked prone. On a successful save, the target takes half as much damage only. You can use Shield Bash only once per turn.\"+\n\t\"\\n   Once the shield has been activated, it can't be activated again until the next dawn.\",\n\tdescription : \"As a bonus action once per dawn, I can activate this iron shield to grant me the following for 1 minute: \\u2022 Immune to fire. \\u2022 As an action, I can remove disease, blinded, charmed, deafened, or poisoned from myself a creature I can see within 30 ft (Cleansing Fire). \\u2022 I can make a shield bash attack once per turn (see attack).\",\n\tdescriptionLong : \"As a bonus action once per dawn, I can activate this iron shield to grant me the following benefits for 1 minute: \\u2022 Blazing Soul: Immunity to fire damage.\"+\n\t\"\\n\\u2022 Cleansing Fire: As an action, I can remove a disease from myself or a creature I can see within 30 ft or the blinded, charmed, deafened, or poisoned condition.\"+\n\t\"\\n\\u2022 Shield Bash: When I take the Attack action on my turn, I can replace one attack with a shield bash to deal 3d6 bludgeoning and 3d6 fire damage and knock prone one creature within 5 ft. It can make a Str save (DC 8 + Prof B. + Str mod) to take half the damage only.\",\n\tweight : 6,\n\tshieldAdd : \"Shield of the Blazing Dreadnought\",\n\tsavetxt : { immune : [\"fire (while Blazing Dreadnought active)\"] },\n\taction : [\n\t\t[\"bonus action\", \" (activate)\"],\n\t\t[\"action\", \"Cleansing Fire (while Blazing Dreadnought active)\"],\n\t],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"activate\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*blazing)(?=.*dreadnought)(?=.*shield).*$/i,\n\t\tname : \"Blazing Dreadnought Shield Bash\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tability : 1,\n\t\ttype : 'AlwaysProf',\n\t\tdamage : ['3d8 Fire + 3d8', '', 'bludgeoning'],\n\t\trange : \"Melee\",\n\t\tdescription : \"Str save for half damage; If failed, also knocked prone; Once per Attack action while shield is active\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\tisNotWeapon : true,\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"staff of the rooted hills\"] = {\n\tname : \"Staff of the Rooted Hills\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"The hill rune is carved into this gnarled wooden staff. The staff magically resizes to match the height of any creature that attunes to it.\"+\n\t\"\\n   The staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it. The first time you hit any creature with the staff on your turn, the creature must succeed on a DC 12 Strength saving throw or be restrained by spectral vines until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the staff's rune to cast either hold person (save DC 12) or speak with plants with the staff. When you cast hold person using the staff, the target is wreathed in spectral vines.\"+\n\t\"\\n   Once the rune has been invoked to cast either spell, it can't be invoked again until the next dawn.\",\n\tdescription : \"A creature hit with this +1 quarterstaff must make a DC 12 Str save or be restrained by spectral vines until my next turn starts. As an action once per dawn, I can invoke its hill rune to cast either Hold Person (DC 12) or Speak with Plants with it. The target of this Hold Person is wreathed in spectral vines.\",\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*staff)(?=.*rooted)(?=.*hills).*$/i,\n\t\tname : \"Staff of the Rooted Hills\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tdescription : \"Versatile (1d8); On hit, DC 12 Str save or restrained until my next turn starts\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Hold Person or Speak with Plants\",\n\tfixedDC : 12,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"Hold Person\",\n\t\tspells : [\"hold person\"],\n\t\tselection : [\"hold person\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"Speak with Plants\",\n\t\tspells : [\"speak with plants\"],\n\t\tselection : [\"speak with plants\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"stonebreaker's breastplate\"] = {\n\tname : \"Stonebreaker's Breastplate\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"armor (breastplate)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"This breastplate is made from marbled granite, though it feels no heavier than a typical metal breastplate. Its chest is emblazoned with the stone rune.\"+\n\t\"\\n   While wearing this breastplate, you have resistance to bludgeoning, piercing, and slashing damage and are immune to being knocked prone.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the breastplate's rune to cast the wall of stone spell (save DC 14) with it. When you cast the spell in this way, you have advantage on saving throws made to maintain concentration on the spell.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this marbled granite breastplate, I have resistance to bludgeoning, piercing, and slashing damage and can't be knocked prone. As an action once per dawn, I can invoke its stone rune to cast Wall of Stone (DC 14) with it. It also grants me advantage on concentration saves for the spell cast in this way.\",\n\tarmorAdd : { select : \"Stonebreaker's Breastplate\", options : [\"Stonebreaker's Breastplate\"] },\n\tweight : 20,\n\tdmgres : [\"Bludgeoning\", \"Slashing\", \"Piercing\"],\n\tsavetxt : { immune : [\"knocked prone\"] },\n\taction : [[\"action\", \"\"]],\n\tfixedDC : 14,\n\tspellcastingBonus : [{\n\t\tname : \"Wall of Stone\",\n\t\tspells : [\"wall of stone\"],\n\t\tselection : [\"wall of stone\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Wall of Stone\"\n};\nMagicItemsList[\"thunderbuss\"] = {\n\tname : \"Thunderbuss\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"weapon (pistol)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This magic ranged weapon is a flared pistol with the storm rune engraved along the barrel. You gain a +1 bonus to attack and damage rolls made with it. It requires no ammunition, its damage is thunder instead of piercing, and it doesn't have the loading property.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As a bonus action, you can invoke the weapon's rune to launch a ball of energy to a point you can see within 30 feet of yourself. The energy then detonates into a 10-foot-radius sphere of turbulent wind and thunder centered on that point, and each creature in that sphere must make a DC 14 Constitution saving throw. On a failed save, a creature takes 3d6 thunder damage, and it can't take reactions until the end of your next turn. On a successful save, a creature takes half as much damage only.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\"+\n\t\"\\n\\nIt's up to the DM to decide whether a character has proficiency with a firearm. Characters in most D\\u0026D worlds wouldn't have such proficiency. During their downtime, characters can use the training rules in the Player's Handbook to acquire proficiency, assuming that they have enough ammunition to keep the weapons working while mastering their use.\",\n\tdescription : \"This +1 pistol deals thunder damage and requires loading nor ammunition. As a bonus action once per dawn, I can invoke its storm rune on a point within 30 ft. All creatures in a 10-ft radius must make a DC 14 Con save or take 3d6 thunder damage and no reactions until my next turn ends. Only half damage if saved.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"pistol\",\n\t\tregExpSearch : /thunderbuss/i,\n\t\tname : \"Thunderbuss\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tdamage : [1, 10, \"thunder\"],\n\t\tdescription : \"\",\n\t\tmodifiers : [1, 1],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\",\n\taction : [[\"bonus action\", \" (invoke rune)\"]]\n};\nMagicItemsList[\"war horn of valor\"] = {\n\tname : \"War Horn of Valor\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescriptionFull : \"This brass war horn is engraved with the war rune, which glows purple when the horn is blown.\"+\n\t\"\\n   You can blow the horn as a bonus action. When you do, if you have the frightened condition, you immediately end that condition on yourself. You also have advantage on saving throws against being frightened until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you blow the horn, you can also invoke the rune, imbuing the horn's deep call with protective magic that affects creatures of your choice within 30 feet of yourself. You and all affected creatures gain a +1 bonus to AC until the start of your next turn.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"As a bonus action, I can blow this brass war horn with the war rune to stop being frightened and gain adv. on saves against being frightened until my next turn starts. Once per dawn when I blow it, I can also invoke its rune, imbuing all chosen creatures within 30 ft with a +1 bonus to AC until my next turn starts.\",\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"wayfarer's boots\"] = {\n\tname : \"Wayfarer's Boots\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This pair of boots is made of durable cloth, with the journey rune stitched in golden thread above each heel. While you are wearing this item, your walking speed increases by 10 feet, and you have advantage on Wisdom (Survival) checks.\"+\n\t\"\\n   \" + toUni(\"Invoking the Runes\") + \". As a bonus action, you can invoke the boots' runes to cast the expeditious retreat spell with them. Once the runes have been invoked, they can't be invoked again until the next dawn.\",\n\tdescription : \"While I'm wearing this pair of durable cloth boots with the journey rune stitched in golden thread above each heel, I have +10 ft walking speed and advantage on Wisdom (Survival) checks. As a bonus action once per dawn, I can invoke the boots' runes to cast Expeditious Retreat with them.\",\n\tspeed : { walk : { spd : \"+10\", enc : \"+10\" } },\n\tadvantages : [[\"Survival\", true]],\n\tspellcastingBonus : [{\n\t\tname : \"Expeditious Retreat\",\n\t\tspells : [\"expeditious retreat\"],\n\t\tselection : [\"expeditious retreat\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Expeditious Retreat\"\n};\nMagicItemsList[\"wyrmreaver gauntlets\"] = {\n\tname : \"Wyrmreaver Gauntlets\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"Originally crafted for ground-bound giant brawlers to fight against dragons and other enormous predators of the sky, these studded gauntlets are engraved with the dragon rune.\"+\n\t\"\\n   While you are wearing these gauntlets, your unarmed strike deals an additional 1d6 force damage on a hit. Additionally, whenever you finish a long rest, choose one of the following damage types: acid, cold, fire, lightning, or poison. You have resistance to the chosen damage type until you finish another long rest.\"+\n\t\"\\n   \" + toUni(\"Invoking the Runes\") + \". As a bonus action, you can invoke the gauntlets' runes and summon two enormous spectral fists that envelop the gauntlets and mimic your hand motions. The fists can also launch themselves to strike distant opponents, returning immediately to your space after they hit or miss.\"+\n\t\"\\n   The fists last for 1 minute or until you are incapacitated. While the spectral fists are active, unarmed strikes you make on your turn have a reach of 30 feet, and when you hit a creature with an opportunity attack made with your unarmed strike, the creature must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + your Strength modifier) or have the prone condition.\"+\n\t\"\\n   Once the runes have been invoked, they can't be invoked again until the next dawn.\",\n\tdescription : \"+1d6 force damage to unarmed strikes. Each long rest, choose a resistance it grants me: acid, cold, fire, lightning, or poison. As a bonus action once per dawn, invoke the rune for 1 min: 30 ft range unarmed strikes, target hit with opportunity attacks with it must make Str save DC 8+Prof B.+Str mod or be knocked prone.\",\n\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = (typePF ? '' : 'These gauntlets add ') + '+1d6 force damage to unarmed strikes. Each long rest, I pick a resistance it grants me: acid, cold, fire, lightning, or poison. As a bonus action once per dawn, invoke the rune for 1 min: 30 ft range unarmed strikes, target hit with opportunity attacks with it must make Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Str) or be knocked prone.';\",\n\tdmgres : [\"acid,cold,fire,lightn.,or poison\"],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 force damage; Opportunity attack: Str save or prone';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My unarmed strike deals an additional 1d6 force damage on a hit.\"\n\t\t]\n\t},\n\taction : [[\"bonus action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"zephyr armor\"] = {\n\tname : \"Zephyr Armor\",\n\tnameTest : /zephyr.*armou?r/i,\n\tsource : [[\"GotG\", 117]],\n\ttype : \"armor (light)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This fine set of white-and-silver armor bears the wind rune upon its chest.\"+\n\t\"\\n   While wearing this armor, you have advantage on Dexterity (Acrobatics) checks and Dexterity saving throws as your movements are bolstered by gentle currents of wind.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the armor's rune to cast the wind wall spell (save DC 15) with it. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this white-and-silver armor with the wind rune on its chest, I have advantage on Dex (Acrobatics) checks and Dexterity saves as my movements are bolstered by gentle currents of wind. As an action once per dawn, I can invoke the armor's rune to cast Wind Wall (DC 15) with it.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Zephyr\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Zephyr\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/light/i.test(inObj.type);\n\t\t}\n\t},\n\tadvantages : [[\"Acrobatics\", true], [\"Dexterity\", true]],\n\tsavetxt : { text : [\"Adv. on Dex saves\"] },\n\tfixedDC : 13,\n\tspellcastingBonus : [{\n\t\tname : \"Wind Wall\",\n\t\tspells : [\"wind wall\"],\n\t\tselection : [\"wind wall\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Wind Wall\"\n};\n\n// pub_20230919_PaBTSO.js\n// This file adds the magic items from the Phandelver and Below: The Shattered Obelisk adventure from the D&D 5e starter set to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"PaBTSO\"] = {\n\tname : \"Phandelver and Below: The Shattered Obelisk [items]\",\n\tabbreviation : \"PaBTSO\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dndstore.wizards.com/us/product/820931/phandelver-and-below-the-shattered-obelisk-digital-plus-physical-bundle\",\n\tdate : \"2023/09/19\"\n};\n\n// Magic Items\nMagicItemsList[\"netherese ring of protection\"] = {\n\tname : \"Netherese Ring of Protection\",\n\tsource : [[\"PaBTSO\", 50]],\n\ttype : \"ring\",\n\trarity : \"rare\",\n\tdescription : \"This ring is made from a single piece of mystical green glass that's stronger than steel. It grants me a +1 bonus to AC and saving throws. It also gives me a +4 bonus to saves and checks made to avoid dropping or being disarmed of any item held in the hand this ring is on.\",\n\tdescriptionFull : \"You gain a +1 bonus to AC and saving throws while wearing this ring.\"+\n\t\"\\n   The ring is made from a single piece of mystical green glass that's stronger than steel. It has the added property of making the wearer less likely to drop or lose anything held in the hand the ring is on. The wearer receives a +4 bonus to saving throws or checks made to avoid dropping or being disarmed of any item held in that hand.\",\n\tattunement : true,\n\textraAC : [{name : \"Netherese Ring of Protection\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\n\taddMod : [{ type : \"save\", field : \"all\", mod : 1, text : \"While I wear the Netherese Ring of Protection, I gain a +1 bonus to all my saving throws.\" }],\n\tsavetxt : { text : [\"+4 to avoid disarm/drop held\"] }\n}\nMagicItemsList[\"statuette of augury\"] = {\n\tname : \"Statuette of Augury\",\n\tsource : [[\"PaBTSO\", 62]],\n\ttype : \"wondrous item\",\n\trarity : \"unknown\",\n\tdescription : \"This gold statuette of an elf is imbued with divination magic. A non-evil creature grasping the statue can ask it a question and receive a telepathic response, as though the creature had cast Augury. Once a creature has asked its question and received a response, it can never activate the statuette again.\",\n\tdescriptionFull : \"This gold statuette of an elf is worth 100 gp, and is imbued with divination magic. A non-evil creature grasping the statue can ask it a question and receive a telepathic response, as though the creature had cast augury. Once a creature has asked its question and received a response, it can never activate the statuette again.\",\n\tspellcastingBonus : [{\n\t\tname : \"Statuette of Augury\",\n\t\tspells : [\"augury\"],\n\t\tselection : [\"augury\"],\n\t\tfirstCol : \"1\\xD7\"\n\t}]\n}\nMagicItemsList[\"bracers of celerity\"] = {\n\tname : \"Bracers of Celerity\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This pair of lightweight bronze bracers is lined with soft, purple velvet and engraved with swirling designs. While I'm wearing these bracers, all my speeds increase by 10 ft, and I have advantage on saving throws I make to avoid or end the paralyzed or restrained condition on myself.\",\n\tdescriptionFull : \"This pair of lightweight bronze bracers is lined with soft, purple velvet and engraved with swirling designs.\"+\n\t\"\\n   While you're wearing these bracers, all your speeds increase by 10 feet, and you have advantage on saving throws you make to avoid or end the paralyzed or restrained condition on yourself.\",\n\tattunement : true,\n\tspeed : { allModes : { bonus : \"+10\" } },\n\tsavetxt : { adv_vs : [\"paralyzed\", \"restrained\"] }\n}\nMagicItemsList[\"cape of enlargement\"] = {\n\tname : \"Cape of Enlargement\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This cape has 3 charges, regaining 1d3 daily at dawn. As a bonus action, I can use 1 charge to enlarge myself for 10 min or end this effect. While enlarged, my size increases by one category as space allows, I have adv. on Strength checks and saves, and I add my Prof Bonus to my weapon and unarmed strike damage.\",\n\tdescriptionFull : \"Ancient runes are stitched in silver thread along the hem of this grayish-purple cape.\"+\n\t\"\\n   The cape has 3 charges. As a bonus action while wearing the cape, you can expend 1 of its charges to enlarge yourself, granting yourself the following benefits:\"+\n\t\"\\n   \\u2022 Your size increases by one category\\u2014from Medium to Large, for example. If there isn't enough room for your size to increase by one category, you instead become the maximum possible size in the space available.\"+\n\t\"\\n   \\u2022 You have advantage on Strength checks and Strength saving throws.\"+\n\t\"\\n   \\u2022 When you hit with an attack roll using a weapon or an unarmed strike, you can add your proficiency bonus to the attack's damage.\"+\n\t\"\\n   These benefits last for 10 minutes or until you use another bonus action to dismiss them. The cape regains 1d3 expended charges daily at dawn.\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\taction : [[\"bonus action\", \" (enlarge/stop)\"]],\n}\nMagicItemsList[\"flayer slayer\"] = {\n\tname : \"Flayer Slayer\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"weapon (greataxe)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this greataxe adorned with carvings of decapitated mind flayers. An aberration hit with this greataxe takes +1d12 slashing damage and if it is currently grappling a creature, it must succeed on a DC 15 Strength save or release each creature it is grappling.\",\n\tdescriptionFull : \"Carvings of decapitated mind flayers adorn this greataxe's metal blade. You gain a +1 bonus to attack and damage rolls made with this greataxe.\"+\n\t\"\\n   An Aberration hit with this greataxe takes an extra 1d12 slashing damage. If the Aberration is currently grappling a creature, the Aberration must succeed on a DC 15 Strength saving throw or release each creature it is grappling.\",\n\tattunement : true,\n\tweight : 7,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greataxe\",\n\t\tregExpSearch : /flayer slayer/i,\n\t\tname : \"Flayer Slayer\",\n\t\tsource : [[\"PaBTSO\", 217]],\n\t\tdescription : \"Heavy, two-handed; Aberrations: +1d12 damage \\u0026 DC 15 Str save or release all grappled\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"luminous war pick\"] = {\n\tname : \"Luminous War Pick\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"weapon (war pick)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this war pick inlaid with crushed pearlescent stones that imbue it with a faint luminescence. As a bonus action once per dawn, I can use it to cast the daylight spell, choosing a point on the war pick as a target for the spell.\",\n\tdescriptionFull : \"The haft of this war pick is inlaid with crushed pearlescent stones that imbue the weapon with a faint luminescence. You gain a +1 bonus to attack and damage rolls made with this war pick.\"+\n\t\"\\n   While wielding the war pick, you can use a bonus action to cast the daylight spell, choosing a point on the war pick. Once you use this bonus action, it can't be used again until the next dawn.\",\n\tattunement : true,\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"war pick\",\n\t\tregExpSearch : /^(?=.*\\bluminous\\b)((?=.*\\bkuwas?\\b)|((?=.*pick)(?=.*war))|((?!.*(heavy|great|light))(?=.*\\bpicks?\\b))).*$/i,\n\t\tname : \"Luminous War Pick\",\n\t\tsource : [[\"PaBTSO\", 217]],\n\t\tdescription : \"\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"daylight\"],\n\t\tselection : [\"daylight\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Daylight\",\n\taction : [[\"bonus action\", \" (Daylight)\"]],\n\tspellChanges : {\n\t\t\"daylight\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tdescription : \"60-ft rad bright light + 60-ft dim light from point on pick; only magical darkness of SL 4+ works in it\",\n\t\t\tchanges : \"While wielding the Luminous War Pick, I can use a bonus action to cast the daylight spell, choosing a point on the war pick.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"mind crystal\"] = {\n\tname : \"Mind Crystal\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"When you cast a spell that has a casting time of 1 action while holding a mind crystal, I can modify it in a specific way determined by the type of mind crystal. I can't use a mind crystal and a Metamagic option on the same spell. Once a mind crystal is used, it becomes a nonmagical gem worth 50 gp.\",\n\tdescriptionFull : \"These gemstones contain a crystallized bit of spellcasting magic. Different types of mind crystals exist, each with a different single-use effect.\"+\n\t\"\\n   When you cast a spell that has a casting time of 1 action while holding a mind crystal, you can modify the spell in a specific way. You can use only a single mind crystal to modify the spell, and you can't use a mind crystal and a Metamagic option on the same spell. Once you use a mind crystal, it becomes a nonmagical gem worth 50 gp.\"+\n\ttoUni(\"\\n   Careful\") + \". (Uncommon) Choose up to three creatures affected by the spell. The chosen creatures automatically succeed on their saving throws against the spell.\"+\n\ttoUni(\"\\n   Distant\") + \". (Uncommon) If the spell has a range of 5 feet or more and doesn't have a range of self, the spell's range increases by 100 feet. If the spell has a range of touch, its range becomes 30 feet.\"+\n\ttoUni(\"\\n   Empowered\") + \". (Uncommon) When you roll damage for the spell, you can reroll up to three damage dice. You must use the new rolls.\"+\n\ttoUni(\"\\n   Extended\") + \". (Uncommon) If the spell has a duration of 1 minute or longer, double the spell's duration, to a maximum duration of 24 hours.\"+\n\ttoUni(\"\\n   Heightened\") + \". (Rare) Choose one creature affected by the spell. That creature has disadvantage on the first saving throw it makes against the spell.\"+\n\ttoUni(\"\\n   Quickened\") + \". (Rare) You change the spell's casting time to 1 bonus action for this casting.\"+\n\ttoUni(\"\\n   Subtle\") + \". (Common) You cast the spell without any somatic or verbal components for this casting.\",\n\tallowDuplicates : true,\n\tchoices : ['Careful', 'Distant', 'Empowered', 'Extended', 'Heightened', 'Quickened', 'Subtle'],\n\t\"careful\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. Choose up to three creatures affected by the spell. The chosen creatures automatically succeed on their saving throws against the spell. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"distant\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action and a range other then self. If the spell has a range of touch, its range becomes 30 ft. If the spell has a range of 5 ft or more, it increases by 100 ft. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"empowered\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. When you roll damage for the spell, you can reroll up to three damage dice. You must use the new rolls. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"extended\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. If the spell has a duration of 1 minute or longer, double the spell's duration, to a maximum duration of 24 hours. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"heightened\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. Choose one creature affected by the spell. That creature has disadvantage on the first saving throw it makes against the spell. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"quickened\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. The spell's casting time is changed to 1 bonus action for this casting. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"subtle\" : {\n\t\trarity : \"common\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. The spell doesn't require any somatic or verbal components for this casting. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t}\n}\nMagicItemsList[\"mindblasting cap\"] = {\n\tname : \"Mindblasting Cap\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As a bonus action once per dawn, I can use this cap to project psychic energy in a 60-ft cone. All in the area must make a DC 15 Int save or take 5d8 psychic damage and be stunned for 1 min. If saved, deals half damage and not stunned. Stunned creatures can repeat the save at the end of each of their turns.\",\n\tdescriptionFull : \"This soft, violet cap bears stitching in the pattern of folds on a brain.\"+\n\t\"\\n   As a bonus action while wearing the cap, you can project psychic energy in a 60-foot cone. Each creature in that area must make a DC 15 Intelligence saving throw. On a failed save, a creature takes 5d8 psychic damage and has the stunned condition for 1 minute. On a successful save, the creature takes half as much damage only. At the end of each of its turns, a stunned creature can repeat the saving throw, ending the stunned condition on itself on a success.\"+\n\t\"\\n   Once this bonus action is used, it can't be used again until the next dawn.\",\n\tattunement : true,\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*mindblasting)(?=.*cap).*$/i,\n\t\tname : \"Mindblasting Cap\",\n\t\tsource : [[\"PaBTSO\", 218]],\n\t\tability : 0,\n\t\ttype : \"Magic Item\",\n\t\tdamage : [5, 8, \"psychic\"],\n\t\trange : \"60-ft cone\",\n\t\tdescription : \"Int save or stunned for 1 min, re-save end of turn; Success - half damage, not stunned\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, 0],\n\t\tdc : true,\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"mindguard crown\"] = {\n\tname : \"Mindguard Crown\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While I wear this adamantine crown, I have advantage on Intelligence, Wisdom, and Charisma saving throws, and I have resistance to psychic damage.\",\n\tdescriptionFull : \"While you wear this adamantine crown, you have advantage on Intelligence, Wisdom, and Charisma saving throws, and you have resistance to psychic damage.\",\n\tattunement : true,\n\tdmgres : [\"Psychic\"],\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]]\n}\nvar PaBTSO_mudslickTowerFullDescription = [\n\t'You can use an action to place this 1-inch-diameter granite sphere on the ground and speak its command word, which is \"petrification\" in Terran. The sphere rapidly grows into a stout tower that remains until you use an action to touch the tower and speak the command word again, whereupon the tower shrinks back to a 1-inch-diameter granite sphere. The tower must be empty to shrink in this way. The tower bristles with muddy knobs that constantly extrude and retract across its surface, as though the tower were breathing through a coating of thick mud.',\n\t\"Each creature in the area where the tower appears must make a DC 15 Dexterity saving throw, taking 10d10 bludgeoning damage on a failed save, or half as much damage on a successful one. In either case, the creature is pushed to an unoccupied space outside but next to the tower. Objects in the area that aren't being worn or carried take this damage and are pushed automatically.\"+\n\t\"Whenever it expands, the mudslick tower merges with any natural stone it touches, awkwardly tipping and wedging itself to touch as much natural stone as it can.\",\n\t\"The tower is 20 feet on a side and 30 feet high, with arrow slits on all sides and a battlement atop it. Its interior is divided into two floors, with a ladder running along one wall to connect them. The ladder ends at a trapdoor leading to the roof. When activated, the tower has a small door on the side facing you. The door opens only at your command, which you can speak as a bonus action. It is immune to the knock spell and similar magic, such as that of a chime of opening.\",\n\t\"Although it looks like stone, the tower is made of adamantine, and its magic prevents creatures from tipping it over. The roof, the door, and the walls each have 100 hit points, immunity to damage from nonmagical weapons excluding siege weapons, and resistance to all other damage. While merged with natural stone, the mudslick tower has immunity to all damage. Only a wish spell can repair the tower (this use of the spell counts as replicating a spell of 8th level or lower). Each casting of wish causes the roof, the door, or one wall to regain 50 hit points.\"\n];\nMagicItemsList[\"mudslick tower\"] = {\n\tname : \"Mudslick Tower\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As an action, I can command this granite sphere to expand to a 20-ft square, 30-ft high tower of adamantine. If it is empty, I can command it to shrink back down as an action. It has two floors  and a roof with battlements, connected by ladders. The front door only opens on my command, as a bonus action.\",\n\tdescriptionFull : PaBTSO_mudslickTowerFullDescription.join(\"\\n   \"),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(PaBTSO_mudslickTowerFullDescription).replace(/feet/ig, \"ft\").replace(/your/g, \"my\").replace(/(facing) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}],\n\taction : [[\"action\", \" (expand/shrink)\"]]\n}\nMagicItemsList[\"potion of psionic fortitude\"] = {\n\tname : \"Potion of Psionic Fortitude\",\n\tsource : [[\"PaBTSO\", 219]],\n\ttype : \"potion\",\n\trarity : \"uncommon\",\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to grant, for 1 hour, advantage on saving throws to avoid or end the charmed or stunned condition. This black potion swirls with shimmering flecks of pink and purple.\",\n\tdescriptionFull : \"When you drink this potion, you have advantage for 1 hour on saving throws you make to avoid or end the charmed or stunned condition on yourself.\"+\n\t\"\\n   This black potion swirls with shimmering flecks of pink and purple.\",\n\tweight : 0.5\n}\nMagicItemsList[\"ring of the orator\"] = {\n\tname : \"Ring of the Orator\",\n\tsource : [[\"PaBTSO\", 219]],\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This ring has 6 charges, regaining 1d6 daily at dawn. I can use 1 charge to project my voice to be heard clearly by all within 1 mile, for 1 min. Magical silence, 1 ft stone, 1 inch metal, lead, or 3 ft wood blocks this. During this, I can have creatures I can see understand me even if they don't know the language I speak.\",\n\tdescriptionFull : \"This ring has 6 charges. While you wear it, you can expend 1 of its charges to project your voice to be heard clearly by all creatures within 1 mile of yourself, regardless of intervening noise, for 1 minute. Magical silence, 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood blocks this projection. If you project your voice while speaking a language the listening creatures don't understand, you can make the creatures understand what you're saying. You must be able to see the creatures to make them understand. The ring regains 1d6 expended charges daily at dawn.\",\n\tattunement : true,\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\"\n}\n\n// pub_20231017_Planescape.js\n// This file adds the Character Options content from the \"Planescape: Adventures in the Multiverse\" set (the \"Sigil and the Outlands\" book) to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"P:AitM\"] = {\n\tname : \"Planescape: Adventures in the Multiverse\",\n\tabbreviation : \"P:AitM\",\n\tabbreviationSpellsheet : \"PS\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Planescape\",\n\turl : \"https://dndstore.wizards.com/us/product/820944/planescape-adventures-in-the-multiverse-digital-plus-physical-bundle\",\n\tdate : \"2023/10/17\"\n};\n\n// Backgrounds from Sigil and the Outlands\nBackgroundList[\"gate warden\"] = {\n\tregExpSearch : /^(?=.*gate)(?=.*warden).*$/i,\n\tname : \"Gate Warden\",\n\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\n\tskills : [\"Persuasion\", \"Survival\"],\n\tgold : 10,\n\tlanguageProfs : [[\"Any (Abyssal, Celestial, or Infernal recommended)\", 2]],\n\tequipleft : [\n\t\t[\"Blank book\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen or quill\", \"\", \"\"],\n\t\t[\"Ring of keys to unknown locks\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Planar Infusion\",\n\ttrait : [\n\t\t\"Strange events and otherworldly creatures don't phase me.\",\n\t\t\"I think in terms of exchange; something for something, nothing for nothing.\",\n\t\t\"I speak with an unusual cadence.\",\n\t\t\"I pepper my speech with borrowed words or curses from planar languages.\",\n\t\t\"I've seen enough to know that you can't take anyone at face value, so I scrutinize everyone.\",\n\t\t\"I have a superstitious habit I picked up from my gate-town, such as touching iron when I'm nervous or arranging objects in a specific order.\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Vial pendant with glowing honey\",\n\t\t\"Whispering lead ingot thumbprint\",\n\t\t\"Two chiming lodestone spheres\",\n\t\t\"Skin-safe smoldering pebble of coal\",\n\t\t\"Light up white feather\",\n\t\t\"Hard to remove chain-link ring\"\n\t]\n};\nBackgroundFeatureList[\"planar infusion\"] = {\n\tdescription : \"I spent a good amount of time somewhere influenced by planar forces. I'm accustomed to experiences that would leave others reeling in terror or captivated by beauty, and I'm comfortable dealing with fiends and celestials. I know where to find free, modest lodging and food in the community I grew up in. Also, I gain the Scion of the Outer Planes feat.\",\n\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\n\tfeatsAdd: [\"Scion of the Outer Planes\"],\n};\n\nBackgroundList[\"planar philosopher\"] = {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher).*$/i,\n\tname : \"Planar Philosopher\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\"],\n\tskillstxt : \"Arcana, and one skill determined by your faction or one skill of your choice.\",\n\tgold : 10,\n\tlanguageProfs : [2],\n\tequipleft : [\n\t\t[\"Portal key (e.g. bag of golden tea leaves)\", \"\", 3],\n\t\t[\"Manifesto of my guiding philosophy\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Common clothes in faction's style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t],\n\tfeature : \"Conviction\",\n\ttrait : [\n\t\t\"I don't venerate any gods. With time, we can be as powerful as them or greater.\",\n\t\t\"Experience is everything, I live in the moment.\",\n\t\t\"When things crumble, I find meaning in the dust.\",\n\t\t\"Life thrives through order, and I seek to maintain that order.\",\n\t\t\"When others make plans, the multiverse laughs and so do I.\",\n\t\t\"I know what's right, and none will stand in my way.\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Inscribed locket with image of mentor\",\n\t\t\"Cranium rat skull with glass eyes\",\n\t\t\"Torn parchment with half a puzzle\",\n\t\t\"Bracelet of twisted razorvine stems\",\n\t\t\"Fragment of verdigris bronze blade\",\n\t\t\"Broken symbol of forgotten god\"\n\t]\n};\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of athar\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*athar).*$/i,\n\tname : \"Planar Philosopher of Athar\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Religion\"],\n\tequipright : [\n\t\t[\"Common clothes in Athar style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of bleak cabal\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*bleak cabal).*$/i,\n\tname : \"Planar Philosopher of Bleak Cabal\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Insight\"],\n\tequipright : [\n\t\t[\"Common clothes in Bleak Cabal style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of doomguard\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*doomguard).*$/i,\n\tname : \"Planar Philosopher of Doomguard\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Nature\"],\n\tequipright : [\n\t\t[\"Common clothes in Doomguard style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of fated\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*fated).*$/i,\n\tname : \"Planar Philosopher of Fated\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Intimidation\"],\n\tequipright : [\n\t\t[\"Common clothes in Fated style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of fraternity of order\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*fraternity of order).*$/i,\n\tname : \"Planar Philosopher of Fraternity of Order\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"History\"],\n\tequipright : [\n\t\t[\"Common clothes in Fraternity of Order style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of hands of havoc\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*hands of havoc).*$/i,\n\tname : \"Planar Philosopher of Hands of Havoc\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Stealth\"],\n\tequipright : [\n\t\t[\"Common clothes in Hands of Havoc style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of harmonium\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*harmonium).*$/i,\n\tname : \"Planar Philosopher of Harmonium\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Perception\"],\n\tequipright : [\n\t\t[\"Common clothes in Harmonium style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of heralds of dust\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*heralds of dust).*$/i,\n\tname : \"Planar Philosopher of Heralds of Dust\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Medicine\"],\n\tequipright : [\n\t\t[\"Common clothes in Heralds of Dust style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of mercykillers\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*mercykillers).*$/i,\n\tname : \"Planar Philosopher of Mercykillers\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Survival\"],\n\tequipright : [\n\t\t[\"Common clothes in Mercykillers style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of mind's eye\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*mind's eye).*$/i,\n\tname : \"Planar Philosopher of Mind's Eye\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Persuasion\"],\n\tequipright : [\n\t\t[\"Common clothes in Mind's Eye style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of society of sensation\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*society of sensation).*$/i,\n\tname : \"Planar Philosopher of Society of Sensation\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Performance\"],\n\tequipright : [\n\t\t[\"Common clothes in Society of Sensation style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of transcendent order\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*transcendent order).*$/i,\n\tname : \"Planar Philosopher of Transcendent Order\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Athletics\"],\n\tequipright : [\n\t\t[\"Common clothes in Transcendent Order style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nBackgroundFeatureList[\"conviction\"] = {\n\tdescription : \"I subscribe to a distinct philosophy that seeks to understand the nature of the planes or a hidden truth of the multiverse and spread my philosophy. I am part of a network of like-minded believers who provide me free, modest lodging and food at any of their holding or the homes of other faction members. Also, I gain the Scion of the Outer Planes feat.\",\n\tsource : [[\"P:AitM\", 8], [\"UA:WotM\", 4]],\n\tfeatsAdd: [\"Scion of the Outer Planes\"],\n};\n\n// Feats from Sigil and the Outlands\nFeatsList[\"scion of the outer planes\"] = {\n\tname : \"Scion of the Outer Planes\",\n\tsource : [[\"P:AitM\", 12]],\n\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I can select a plane and gain resistance to a damage type and learn a cantrip associated with that plane. I can cast the cantrip without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\tdescriptionFull : \"Your connection to an Outer Plane infuses you with the energy there. Choose a type of plane listed in the Planar Infusion table. Your choice gives you resistance to a damage type and the ability to cast a cantrip, as specified in the table. You can cast this cantrip without material components, and your spellcasting ability for it is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\n\ttoUni(\"\\n\\nPlane\\t\\tResistance\\tCantrip\")+\n\t\"\\nChaotic Outer\\tPoison\\t\\tMinor Illusion\"+\n\t\"\\nEvil Outer  \\tNecrotic\\t\\tChill Touch\"+\n\t\"\\nGood Outer  \\tRadiant\\t\\tSacred Flame\"+\n\t\"\\nLawful Outer\\tForce\\t\\tGuidance\"+\n\t\"\\nThe Outlands\\tPsychic\\t\\tMage Hand\",\n\tprerequisite : \"Planescape Campaign\",\n\tspellcastingAbility : [4,5,6],\n\tchoices : ['Chaotic Outer Plane (Poison, Minor Illusion)', 'Evil Outer Plane (Necrotic, Chill Touch)', 'Good Outer Plane (Radiant, Sacred Flame)', 'Lawful Outer Plane (Force, Guidance)', 'The Outlands (Psychic, Mage Hand)'],\n\t'chaotic outer plane (poison, minor illusion)' : {\n\t\tname : \"Scion of the Outer Planes (Chaotic Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to a chaotic outer plane gives me resistance to poison damage and I know the Minor Illusion cantrip, which requires no material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Chaotic Outer Plane\",\n\t\t\tspells : [\"minor illusion\"],\n\t\t\tselection : [\"minor illusion\"],\n\t\t}],\n\t\tdmgres : [\"Poison\"],\n\t\tspellChanges : {\n\t\t\t\"minor illusion\" : {\n\t\t\t\tcomponents : \"S\",\n\t\t\t\tcompMaterial : \"\",\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Minor Illusion without material components.\"\n\t\t\t}\n\t\t}\n\t},\n\t'evil outer plane (necrotic, chill touch)' : {\n\t\tname : \"Scion of the Outer Planes (Evil Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an evil outer plane. This connection gives me resistance to necrotic damage and I know the Chill Touch cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Evil Outer Plane\",\n\t\t\tspells : [\"chill touch\"],\n\t\t\tselection : [\"chill touch\"],\n\t\t}],\n\t\tdmgres : [\"Necrotic\"]\n\t},\n\t'good outer plane (radiant, sacred flame)' : {\n\t\tname : \"Scion of the Outer Planes (Good Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an good outer plane. This connection gives me resistance to radiant damage and I know the Sacred Flame cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Good Outer Plane\",\n\t\t\tspells : [\"sacred flame\"],\n\t\t\tselection : [\"sacred flame\"],\n\t\t}],\n\t\tdmgres : [\"Radiant\"]\n\t},\n\t'lawful outer plane (force, guidance)' : {\n\t\tname : \"Scion of the Outer Planes (Lawful Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an lawful outer plane. This connection gives me resistance to force damage and I know the Guidance cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Lawful Outer Plane\",\n\t\t\tspells : [\"guidance\"],\n\t\t\tselection : [\"guidance\"],\n\t\t}],\n\t\tdmgres : [\"Force\"]\n\t},\n\t'the outlands (psychic, mage hand)' : {\n\t\tname : \"Scion of the Outer Planes (the Outlands)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from a plane of the outlands. This gives me resistance to psychic damage and I know the Mage Hand cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"The Outlands\",\n\t\t\tspells : [\"mage hand\"],\n\t\t\tselection : [\"mage hand\"],\n\t\t}],\n\t\tdmgres : [\"Psychic\"]\n\t}\n};\nFeatsList[\"agent of order\"] = {\n\tname : \"Agent of Order\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save (DC 8 + Prof Bonus + spellcasting ability mod of Scion of the Outer Planes) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest.\",\n\tcalculate : \"try { var a = Object.keys(CurrentSpells); var b = a.find(/scion of the outer planes/i); var c = CurrentSpells[a[b]]; var dc = c && c.calcSpellScores ? c.calcSpellScores.dc : '[Error: generate spell sheet first]'; } catch(e) { var dc = '[Error: select Scion of the Outer Planes feat]'; }; event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + dc + ' (= Scion of the Outer Planes spell DC) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 to any one ability score].';\",\n\tdescriptionFull : \"You can channel cosmic forces of order to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Stasis Strike\") + \". Once per turn, when you damage a creature you can see within 60 feet of yourself, you can deal an extra 1d8 force damage to the target, and it must make a Wisdom saving throw (DC equal to 8 + your proficiency bonus + the modifier of the spellcasting ability you chose for the Scion of the Outer Planes feat) as spectral bindings try to ensnare it. On a successful save, the target escapes. On a failed save, the target has the restrained condition until the start of your next turn. These bindings manifest as chains or some other symbol of stasis. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Lawful Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'lawful outer plane (force, guidance)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\"\n};\nFeatsList[\"baleful scion\"] = {\n\tname : \"Baleful Scion\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"Once per turn, when I damage a creature I can see within 60 ft, I can also deal 1d6 + my Proficiency Bonus necrotic damage to it. I then regain a number of hit points equal to this necrotic damage dealt. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of evil to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Life-Draining Grasp\") + \". Once per turn, when you damage a creature you can see within 60 feet of yourself, you can also deal necrotic damage to it. The necrotic damage equals 1d6 + your proficiency bonus, and you regain a number of hit points equal to this necrotic damage dealt. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Evil Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'evil outer plane (necrotic, chill touch)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\"\n};\nFeatsList[\"cohort of chaos\"] = {\n\tname : \"Cohort of Chaos\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"When I roll a 1 or a 20 on an attack roll or save, a the magic of chaos flares up and I roll on the Chaotic Flare table to determine what happens (see notes for table). As a bonus action, my Proficiency Bonus per long rest, I can force a flare to happen. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of chaos to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Chaotic Flare\") + \". When you roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through you. Roll a d4 and consult the table below to determine what happens. A flare lasts until the end of your next turn, and a new flare can't occur until after the first flare ends.\"+\n\ttoUni(\"\\n\\nd4\\tFlare\")+\n\t\"\\n  1\\tBattle Fury: A creature of your choice that you can see is filled with reckless fury. It has advantage on attack rolls and disadvantage on ability checks.\"+\n\t\"\\n  2\\tDisruption Field: Waves of energy ripple around you. Every creature that starts its turn within 5 feet of you, or that moves into that area for the first time on a turn, takes 1d8 force damage.\"+\n\t\"\\n  3\\tUnbound: When you move, you can use some or all of your walking speed to teleport yourself once, along with any equipment you're wearing or carrying, up to the distance used to an unoccupied space that you can see.\"+\n\t\"\\n  4\\tWailing Winds: Winds swirl in a 15-foot-radius sphere centered on you. You and any other creatures in that area have disadvantage on Wisdom saving throws.\"+\n\t\"\\n\\n   You can also forcibly release a chaotic flare as a bonus action, rolling on the table as normal to determine the effects. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Chaotic Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'chaotic outer plane (poison, minor illusion)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\tadditional : \"force flare\",\n\taction : [[\"bonus action\", \" (force flare)\"]],\n\ttoNotesPage : [{\n\t\tname : \"Chaotic Flare Table\",\n\t\tnote : [\n\t\t\t\"When I roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through Me. I roll a d4 on the table below to determine what happens. A flare lasts until the end of my next turn, and a new flare can't occur until after the first flare ends.\",\n\t\t\t\"As a bonus action, I can forcibly release a chaotic flare, rolling on the table as normal to determine the effects. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when you finish a long rest.\",\n\t\t\t\"\\n d4  Flare\",\n\t\t\t\"1  Battle Fury: A creature of my choice that I can see is filled with reckless fury. It has advantage on attack rolls and disadvantage on ability checks.\",\n\t\t\t\"2  Disruption Field: Waves of energy ripple around me. Every creature that starts its turn within 5 ft of me, or that moves into that area for the first time on a turn, takes 1d8 force damage.\",\n\t\t\t\"3  Unbound: When I move, I can use some or all of my walking speed to teleport once, along with any equipment I'm wearing or carrying, up to the distance used to an unoccupied space that I can see.\",\n\t\t\t\"4  Wailing Winds: Winds swirl in a 15-ft radius sphere centered on me. Creatures in that area, myself included, have disadvantage on Wisdom saving throws.\"\n\t\t]\n\t}]\n};\nFeatsList[\"outlands envoy\"] = {\n\tname : \"Outlands Envoy\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"I can cast Misty Step and Tongues each once per long rest without requiring a spell slot or material components. I can also cast them using a spell slot as normal. My spellcasting ability for these spells is the same as the one for the Scion of the Outer Planes feat. [+1 to any one ability score]\",\n\tdescriptionFull : \"You have spent significant time in Sigil or the Outlands, the crossroads of the multiverse. Being steeped in converging planar energies grants you these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Crossroads Emissary\") + \". You learn the misty step and tongues spells. You can cast each spell once using this feat without a spell slot, and you must finish a long rest before you can cast that spell in this way again. When you cast tongues using this feat, you require no material components. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the one chosen when you gained the Scion of the Outer Planes feat.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (the Outlands) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'the outlands (psychic, mage hand)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tspellcastingAbility : \"scion of the outer planes\",\n\tspellcastingBonus : [{\n\t\tname : \"Crossroads Emissary\",\n\t\tspells : [\"misty step\", \"tongues\"],\n\t\tselection : [\"misty step\", \"tongues\"],\n\t\tfirstCol : \"oncelr+markedbox\",\n\t\ttimes : 2\n\t}],\n\tspellChanges : {\n\t\t\"tongues\" : {\n\t\t\tcomponents : SpellsList.tongues.components.replace(\"M\", \"M*\"),\n\t\t\tcompMaterial : \"When using a spell slot: \"+SpellsList.tongues.compMaterial,\n\t\t\tchanges : \"Using Outlands Envoy, I can cast Tongues once per long rest without expending a spell slot or requiring material components.\"\n\t\t}\n\t}\n};\nFeatsList[\"planar wanderer\"] = {\n\tname : \"Planar Wanderer\",\n\tsource : [[\"P:AitM\", 11]],\n\tdescription : \"After each long rest, I can gain acid, cold, or fire resistance, that lasts until my next long rest ends. I know the direction to the last portal I used while on the same plane as it. As an action, I can try to open or close a portal (portal cracker). As an action once per long rest, I can detect portals (portal sense). See notes.\",\n\tdescriptionFull : \"You can draw on the forces of the multiverse to survive cosmic extremes and to traverse its infinite realms, granting you these benefits:\"+\n\t\"\\n   \" + toUni(\"Planar Adaptation\") + \". When you finish a long rest, you gain resistance to either acid, cold, or fire damage (your choice) until you finish your next long rest.\"+\n\t\"\\n   \" + toUni(\"Portal Cracker\") + \". Your experience with portals allows you to open them without a portal key. As an action, you can concentrate on a portal you're aware of that is within 5 feet of yourself and make a DC 20 Intelligence (Arcana) check. On a failed check, you take 3d8 psychic damage and can't use this benefit on that portal again until you finish a long rest. On a successful check, you can force the portal open or closed for 1 hour. For that duration, the portal doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"+\n\t\"\\n   \" + toUni(\"Portal Sense\") + \". You know the direction to the last planar portal you used while you and the portal are on the same plane of existence. Moreover, as an action, you can detect the location of any portals within 30 feet of you that aren't behind total cover. Once you detect a portal with this action, you can't use the action again until you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\n\tprereqeval : function(v) {\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes\") !== -1;\n\t},\n\tdmgres : [\"Acid/Cold/Fire\"],\n\taction : [[\"action\", \" (Portal Cracker)\"], [\"action\", \" (Portal Sense)\"]],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"Portal Sense\",\n\ttoNotesPage : [{\n\t\tname : \"Portal Cracker\",\n\t\tnote : [\n\t\t\t\"My experience with portals allows me to open them without a portal key.\",\n\t\t\t\"As an action, I can concentrate on a portal I'm aware of that is within 5 ft of me and make a DC 20 Intelligence (Arcana) check.\",\n\t\t\t\"On a failed check, I take 3d8 psychic damage and can't do this on that portal again until I finish a long rest.\",\n\t\t\t\"On a successful check, I can force the portal open or closed for 1 hour. For that duration, the portal doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"\n\t\t]\n\t}, {\n\t\tname : \"Portal Sense\",\n\t\tadditional : \"1\\xD7 per long rest\",\n\t\tnote : [\n\t\t\t\"I know the direction to the last planar portal I used while I and the portal are on the same plane of existence.\",\n\t\t\t\"As an action, I can detect the location of any portals within 30 ft of me that aren't behind total cover.\",\n\t\t\t\"Once I detect a portal with this action, I can't use the action again until I finish a long rest.\"\n\t\t],\n\t\tamendTo : \"Portal Cracker\"\n\t}]\n};\nFeatsList[\"righteous heritor\"] = {\n\tname : \"Righteous Heritor\",\n\tsource : [[\"P:AitM\", 11]],\n\tdescription : \"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce the damage taken by 1d10 + my Proficiency Bonus. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of good to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Soothe Pain\") + \". When you or a creature within 30 feet of you takes damage, you can use your reaction to reduce that damage by 1d10 + your proficiency bonus. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Good Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'good outer plane (radiant, sacred flame)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\taction : [[\"reaction\", \"\"]]\n};\n\n\n// Magic Items from Sigil and the Outlands\nMagicItemsList[\"mimir\"] = {\n\tname : \"Mimir\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can stow or toss this skull-shaped device in the air to activate it, making it float 1d3 ft near me. Once per dawn as an action while active, I can use it to cast Legend Lore. It speaks the revieled lore aloud. While active, it answers questions about the planes of existence I or someone I designate ask it.\",\n\tdescriptionLong : \"As a bonus action, I can toss this skull-shaped device covered with planar sigils into the air to activate it, causing it to float 1d3 ft near me but considered worn by me. I can use another bonus action to seize and stow it. It has AC 22, 25 HP, immunity to poison and psychic damage, and resistance to all other damage. Another can use an action to grab it with a successful unarmed strike or DC 22 Acrobatics check. Once per dawn as an action while active, I can use it to cast Legend Lore. It speaks the revealed lore aloud. While active, it answers questions about the planes of existence I or someone I designate ask it.\",\n\tdescriptionFull : \"This skull-shaped device is filled with knowledge. The device weighs 5 pounds and is covered with subtle etchings of planar sigils.\"+\n\t\"As a bonus action, you can toss the device into the air, whereupon it floats at a distance of 1d3 feet from you and you can access its properties. While the mimir is floating, a creature other than you can use an action to grasp or net the device, either by making a successful unarmed strike against AC 22 or a successful DC 22 Dexterity (Acrobatics) check. You can use a bonus action to seize and stow the device.\"+\n\t\"The device has AC 22, 25 hit points, immunity to poison and psychic damage, and resistance to all other damage. It is considered to be an object that is being worn while it is floating near you.\"+\n\ttoUni(\"\\n   Esoteric Knowledge\") + \". While the device is floating, you can use an action to cast legend lore from the device. The device speaks the revealed lore aloud. Once this property has been used, it can't be used again until the next dawn.\"+\n\ttoUni(\"\\n   Planar Knowledge\") + \". The device knows basic, useful information about the planes of existence. While the device is floating, it verbally answers questions you or anyone you designate poses to it about that topic. It knows the information about the planes in the Dungeon Master's Guide, as well as basic information about the gate-towns of the Outlands (presented in chapter 3 of Sigil and the Outlands).\",\n\taction : [[\"bonus action\", \" (activate/stow)\"]],\n\tweight : 5,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Legend Lore\",\n\tspellcastingBonus : [{\n\t\tname : \"once per dawn\",\n\t\tspells : [\"legend lore\"],\n\t\tselection : [\"legend lore\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"portal compass\"] = {\n\tname : \"Portal Compass\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This portable arcane instrument points in the direction of the last portal it passed through while it and the portal are on the same plane of existence. If that portal no longer exists, the needle becomes static until the compass passes through a new portal.\",\n\tdescriptionFull : \"This portable arcane instrument points in the direction of the last portal it passed through while it and the portal are on the same plane of existence. If that portal no longer exists, the needle becomes static until the compass passes through a new portal.\"\n};\nMagicItemsList[\"sensory stone\"] = {\n\tname : \"Sensory Stone\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This stone stores a single experience. As an action, one touching the stone can experience it harmlessly. As a reaction, I can replace the experience within with a new, six-second sensation experienced by a creature within 30 ft. As a bonus action, I can destroy it to end the charmed or frightened effect on myself.\",\n\tdescriptionFull : \"This small, smooth stone contains the essence of a single experience.\"+\n\t\"As an action, you or a willing creature you designate can touch the stone and experience the sensation as if it happened to the designated creature. The illusory experience is fleeting and harmless, however real it might feel in the moment.\"+\n\ttoUni(\"\\n   Record Sensation\") + \". You can use your reaction to record a short sensation lasting no longer than 6 seconds experienced by a creature of your choice within 30 feet of yourself, infusing the essence of that experience into the stone. This replaces any sensation already stored within the stone.\"+\n\ttoUni(\"\\n   Siphon Sensation\") + \". As a bonus action, you can draw on the stone's magic to end the charmed or frightened condition on yourself, destroying the stone in the process.\",\n\taction : [\n\t\t[\"action\", \" (experience)\"],\n\t\t[\"reaction\", \" (record)\"],\n\t\t[\"bonus action\", \" (destroy to end charmed/frightened)\"]\n\t]\n};\n\n\n// Spells from Sigil and the Outlands\nSpellsList[\"gate seal\"] = {\n\tname : \"Gate Seal\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"P:AitM\", 12]],\n\tlevel : 4,\n\tschool : \"Abjur\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u2020\",\n\tcompMaterial : \"A broken portal key, which the spell consumes\",\n\tduration : \"24 h\",\n\tdescription : \"30-ft cube wherein all portals close and can't be opened, and no planar travel; SL6: until dispelled\",\n\tdescriptionFull : \"You fortify the fabric of the planes in a 30-foot cube you can see within range. Within that area, portals close and can't be opened for the duration. Spells and other effects that allow planar travel or open portals, such as gate or plane shift, fail if used to enter or leave the area. The cube is stationary.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the spell lasts until dispelled.\"\n};\nSpellsList[\"warp sense\"] = {\n\tname : \"Warp Sense\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"P:AitM\", 12]],\n\tlevel : 2,\n\tschool : \"Div\",\n\ttime : \"1 a\",\n\trange : \"Self\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A razorvine leaf\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"Know presence of portals in 30 ft; 1 a DC 15 spell ability chk to see destination \\u0026 portal key, ends spell\",\n\tdescriptionFull : \"For the duration, you sense the presence of portals, even inactive ones, within 30 feet of yourself.\"+\n\t\"\\n   If you detect a portal in this way, you can use your action to study it. Make a DC 15 ability check using your spellcasting ability. On a successful check, you learn the destination plane of the portal and what portal key it requires, then the spell ends. On a failed check, you learn nothing and can't study that portal again using this spell until you cast it again.\"+\n\t\"\\n   The spell can penetrate most barriers but is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt.\"\n};\n\n// Beast from Turn of Fortune's Wheel\n// Whirlwyrm is just a giant crocodile under a different name, it has been added to the SRD code as a `nameAlt`\n\n// pub_20231030_CoA.js\r\n// This file adds the magic items from the Chains of Asmodeus adventure from Extra Life to MPMB's Character Record Sheet\r\n\r\nSourceList[\"CoA\"] = {\r\n\tname : \"Chains of Asmodeus\",\r\n\tabbreviation : \"CoA\",\r\n\tgroup : \"Extra Life\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dmsguild.com/product/457996/Chains-of-Asmodeus\",\r\n\tdate : \"2023/10/30\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nCoA_Corruption = {\r\n\tprocess : function(bAddRemove, sItem) {\r\n\t\t// Make a variable to remember the settings for this\r\n\t\tif (!CurrentVars.CoA_Corruption) {\r\n\t\t\tCurrentVars.CoA_Corruption = {\r\n\t\t\t\titems : [],\r\n\t\t\t\tpresent : false,\r\n\t\t\t\tsavedAlert : false\r\n\t\t\t};\r\n\t\t}\r\n\t\tvar bProcessIt = false;\r\n\t\tvar bItemPresent = CurrentVars.CoA_Corruption.items.indexOf(sItem) !== -1;\r\n\t\t// If removing, test if present and the triggering item is in the list\r\n\t\tif (!bAddRemove && bItemPresent) {\r\n\t\t\tCurrentVars.CoA_Corruption.items.eject(sItem);\r\n\t\t\tif (CurrentVars.CoA_Corruption.items.length !== 0) {\r\n\t\t\t\t// Still items present, so don't change anything\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\t// Removing note in final step if present \r\n\t\t\t\tbProcessIt = CurrentVars.CoA_Corruption.present ? true : false;\r\n\t\t\t\t// Make pop-up appear at next corrupting item addition\r\n\t\t\t\tCurrentVars.CoA_Corruption.savedAlert = false;\r\n\t\t\t}\r\n\t\t} else if (bAddRemove) { // Adding\r\n\t\t\t// Add the item to the list of items processed\r\n\t\t\tif (!bItemPresent) CurrentVars.CoA_Corruption.items.push(sItem);\r\n\t\t\tif (CurrentVars.CoA_Corruption.savedAlert) {\r\n\t\t\t\t// The state of the alert was saved, so don't prompt and do nothing\r\n\t\t\t\treturn;\r\n\t\t\t} else if (!CurrentVars.CoA_Corruption.present) {\r\n\t\t\t\t// If not present and dialog state was not saved, ask the user if the rules should be added to a notes page\r\n\t\t\t\tvar oMsg = {\r\n\t\t\t\t\tcTitle : \"Show Infernal Item Corruption (DM-only) Rules?\",\r\n\t\t\t\t\tcMsg : 'The cursed infernal item \"' + MagicItemsList[sItem].name + '\" can cause corruption.\\nDo you want to add the Infernal Item Corruption rules intended for the DM to a Notes page on your character sheet for reference?\\n\\nIMPORTANT: these rules are not intended to be read by players, only by the DM.\\n\\nThese notes will be automatically removed when you remove all corrupting items.',\r\n\t\t\t\t\tnIcon : 2, // Question\r\n\t\t\t\t\tnType : 2, // Yes,No\r\n\t\t\t\t\toCheckbox : {\r\n\t\t\t\t\t\tcMsg : \"Don't ask me again next time I add a corrupting item (unless I have removed all corrupting items)\",\r\n\t\t\t\t\t\tbInitialValue : true,\r\n\t\t\t\t\t\tbAfterValue : false\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t// Add the note if \"Yes\" was clicked\r\n\t\t\t\tbProcessIt = app.alert(oMsg) === 4;\r\n\t\t\t\t// Save the checkbox state\r\n\t\t\t\tCurrentVars.CoA_Corruption.savedAlert = oMsg.oCheckbox.bAfterValue;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (bProcessIt) {\r\n\t\t\tCurrentVars.CoA_Corruption.present = bAddRemove;\r\n\t\t\tprocessToNotesPage(bAddRemove, CoA_Corruption.toNotesPage, \"items\", {}, false, [\"Chains of Asmodeus, page 271\"]);\r\n\t\t}\r\n\t\tSetStringifieds(\"vars\"); // Save the global variable to a field\r\n\t},\r\n\ttoNotesPage : [{ // intentionally doesn't include a source\r\n\t\tname : \"INFERNAL ITEM CORRUPTION\",\r\n\t\tpopupName : 'The \"Infernal Item Corruption\" rules from Chains of Asmodeus (page 271)',\r\n\t\tnote : [\r\n\t\t\t\"\",\r\n\t\t\t\"Cursed infernal items can be used by mortals, but they always require attunement. Once attuned, the mortal risks an increasing chance of being corrupted by the item., eventually transforming into a devil.\",\r\n\t\t\t\"   Mortals that receive express permission from Asmodeus, or that make an infernal contract to acquire a magic item, don't suffer these corrupting effects.\",\r\n\t\t\t\"\",\r\n\t\t\t\"1. STAGE ONE CORRUPTION: BEGINNINGS\",\r\n\t\t\t\"Once a character has attuned to a cursed infernal magic item or artifact, it begins the infernal corruption process. Each time that character finishes a long rest, they must make a DC 10 Wisdom save (tieflings have advantage on this save). On a success, the character suffers no effects, but the DC increases by 1 the next time they must make this save. On a failure, the character progresses to Stage Two unless Dispel Evil and Good is cast on them before their next long rest.\",\r\n\t\t\t\"   While in Stage One, the infernal corruption can be prevented by breaking attunement to the corrupting item. This prevents further Wisdom saves and resets the DC of the save, if the character were to attune to the item again.\",\r\n\t\t\t\"\",\r\n\t\t\t\"2. STAGE TWO CORRUPTION: SUFFERINGS\",\r\n\t\t\t\"While in Stage Two, the character becomes delusional, seeing plots against them where there are none. Additionally, each time they rest, they experience terrifying visions and infernal whispers. Whenever they finish a long rest, they take 1d12 necrotic damage, which ignores resistances and immunities and can't be healed until a Dispel Evil and Good or Remove Curse spell is cast on them. Once the character has taken this damage six times, they progress to Stage Three.\",\r\n\t\t\t\"   While in Stage Two, the infernal corruption can be removed with one of the following spells: Divine Word, Heal, Mass Heal, True Polymorph, True Resurrection, or Wish.\",\r\n\t\t\t\"\\n3. STAGE THREE CORRUPTION: DEPARTINGS\",\r\n\t\t\t\"While in Stage Three, the character begins to suffer physical transformation, and slowly embraces evil. After they finish their first long rest upon entering Stage Three they must roll on the table below to determine how the infernal curse starts shaping them into a devil. In addition, a part-devil character is rendered infertile and detects as a Fiend to Detect Evil and Good spells and similar magic.\",\r\n\t\t\t\"\",\r\n\t\t\t\"   d10\\tTransformation\",\r\n\t\t\t\"     1\\tTheir fingertips elongate into claws\",\r\n\t\t\t\"     2\\tNon-functional leathery wings sprout from their back\",\r\n\t\t\t\"     3\\tDevilish horns grow upon their head\",\r\n\t\t\t\"     4\\tEach night more and more of their skin burns, leaving charred patches\",\r\n\t\t\t\"     5\\tOne eye turns milky white, the other turns yellow\",\r\n\t\t\t\"     6\\tTheir spine painfully elongates into a skeletal tail\",\r\n\t\t\t\"     7\\tTheir skin starts to calcify, turning portions into bone\",\r\n\t\t\t\"     8\\tTheir feet painfully twist to resemble cloven hooves\",\r\n\t\t\t\"     9\\tAll their hair falls out, replaced by tiny spikes\",\r\n\t\t\t\"   10\\tAll their teeth fall out, with new jagged teeth tearing through the gums each morning\",\r\n\t\t\t\"\",\r\n\t\t\t\"The character begins to experience waking whispers pushing them towards evil and they suffer terrifying visions whenever they rest, breaking their spirit and pushing them further to evil. Each time they finish a short or long rest, they must make a DC 10 Wisdom save. If they performed at least one evil act, such as making a decision that increased the suffering of others, they make the save with disadvantage. When they fail the save, they progress to Stage Four.\",\r\n\t\t\t\"   While in Stage Three, the infernal corruption can be ended with one of the following spells: True Polymorph, True Resurrection or Wish.\",\r\n\t\t\t\"\",\r\n\t\t\t\"4. STAGE FOUR CORRUPTION: FINALITIES\",\r\n\t\t\t\"When the character finishes their first long rest after reaching Stage Four, the character's alignment shifts to lawful evil. They're now bound by the devil's code, requiring them to honor any pact made and acquire souls in service of Asmodeus. Lastly, their physical form changes, morphing to resemble a devil (DM's choice).\",\r\n\t\t\t\"   Once the character reaches Stage Four, the only two cures are the Wish spell, which counts as beyond the scope of the spell, or by signing an infernal contract with Asmodeus to reclaim their soul.\"\r\n\t\t].join(\"\\n\")\r\n\t}],\r\n\tdescription : \"\\n   \" + toUni(\"Corrupting\") + '. This item corrupts. See the \"Infernal Item Corruption\" rules (CoA 271).'\r\n}\r\n\r\nMagicItemsList[\"amulet of appearance\"] = {\r\n\tname : \"Amulet of Appearance\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"My equipment always shines as if just polished and my wounds do not appear to others. I'm immune to being frightened and poisoned. However, whenever I would otherwise be affected by these conditions, a random non-evil humanoid on the material plane whom I have met is affected instead. I know this.\",\r\n\tdescriptionFull : \"Your armor, weapons, and other equipment always shine as if just polished. Even if you're wounded, your wounds do not appear to others. You're immune to the frightened and poisoned conditions, as these would otherwise ruin your elegant appearance. However, whenever you would otherwise have been affected by one of these conditions, a random non-evil Humanoid on the Material Plane whom you have previously met gets the condition instead. You know this.\",\r\n\tsavetxt : { immune : [\"frightened\", \"poisoned\"] }\r\n}\r\nMagicItemsList[\"amulet of betrayal\"] = {\r\n\tname : \"Amulet of Betrayal\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action, I can move one of the following conditions from myself to an ally within 60 ft: blinded, deafened, frightened, poisoned, stunned, exhaustion. When transferring exhaustion, all my exhaustion levels are moved. If the chosen ally is immune to a transferred condition, the transfer fails.\",\r\n\tdescriptionFull : \"You can use a bonus action to move one of the following conditions from yourself to an ally within 60 feet of you: blinded, deafened, frightened, poisoned, stunned, exhaustion. When transferring exhaustion, move all your exhaustion levels. If the chosen ally is immune to a transferred condition, the transfer fails.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"amulet of duplicity\"] = {\r\n\tname : \"Amulet of Duplicity\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"When I die, a copy of my naked corpse is left in my place while I'm brought to an extradimensional space. After 24 hours, I heal 1 hp and am brought back to the place I left, but with a different face. I have disadv. on Persuasion checks to reveal who I am. I can't relay this information and forget it when unattuning.\",\r\n\tdescriptionLong : \"When I die, the amulet leaves a copy of my naked corpse in my place while I'm transported to an extradimensional space, stable at 0 hp. After 24 hours, I regain 1 hp and am returned to the place I left with different facial features. Only a Wish spell can restore my true identity. I have disadvantage on Charisma (Persuasion) checks to reveal myself. The amulet is cursed. Identifying it only shows it prevents death and one can't explain its power once attuned. When unattuned, one immediately forgets what the amulet does. A Remove Curse spell reveals the details of the curse but doesn't lift it from the amulet.\",\r\n\tdescriptionFull : \"When you die, you're transported to an extradimensional space where you're stabilized at 0 hit points and kept in that state. The amulet creates a perfect copy of your corpse and places it where you were just before you died, but without any of your worn or carried items. After 24 hours, you regain 1 hit point and are returned to the location of your near-death. Everything about you is the same, except that your facial features are entirely different from before. Only a Wish spell can restore your true identity.\"+\r\n\t\"\\n   Until then, you have disadvantage on any Charisma (Persuasion) checks to attempt to reveal who you really are.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". An Identify spell or similar reveals only that the amulet can prevent death. Once you attune to the amulet, you can't describe its ability to any other creature, and if unattuned, you immediately forget what the amulet does. A Remove Curse spell reveals the details of the curse but does not remove it from the amulet.\"\r\n}\r\nMagicItemsList[\"bracers of asmodeus\"] = {\r\n\tname : \"Bracers of Asmodeus\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"These are cursed, corrupting, and give +2 AC while not wearing armor or using a shield. I can't unattune to them. They make me obsessed with scheming, manipulation, and always bartering for better deals, often using blackmail. If I decline an opportunity to make money at another's expense, I take 3d10 necrotic damage.\",\r\n\tdescriptionFull : \"You have a +2 bonus to AC while wearing these bracers, if you do not wear armor or use a shield at the same time.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". While attuned to the bracers, you become obsessed with plotting, scheming, and manipulation. You always barter for better deals, often using secrets or leveraging other offers in the process. If you ever decline an opportunity to better yourself financially at another's expense, you immediately take 3d10 necrotic damage. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"bracers of asmodeus\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"bracers of asmodeus\") },\r\n\textraAC : [{\r\n\t\tmod : 2,\r\n\t\tmagic : true,\r\n\t\ttext : \"I gain a +2 bonus to AC while I'm not wearing armor or using a shield.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor || v.usingShield; }\r\n\t}]\r\n}\r\nMagicItemsList[\"canian fork\"] = {\r\n\tname : \"Canian Fork\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"weapon (trident)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"This magic, cursed, corrupting trident gives me +3 bonus to attack and damage rolls made with. I can't willing to part with it and can't unattune to it without Remove Curse. I'm vulnerable to radiant damage. When I receive magical healing I have to succeed on a DC 15 Con save or the healing has no effect.\",\r\n\tdescriptionFull : \"You have a +3 bonus to attack and damage rolls made with this magic weapon. In addition, you can make one additional attack with it as a bonus action on each of your turns.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. You're also vulnerable to radiant damage and each time you receive magical healing, you must make a DC 15 Constitution saving throw.\"+\r\n\t\"\\n   On a failed save, the healing has no effect. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"canian fork\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"canian fork\") },\r\n\tweight : 4,\r\n\tsavetxt : { text : [\"Vulnerable to radiant damage\"] },\r\n\taction : [[\"bonus action\", \" attack\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"trident\",\r\n\t\tregExpSearch : /^(?=.*canian)(?=.*fork).*$/i,\r\n\t\tname : \"Canian Fork\",\r\n\t\tsource : [[\"CoA\", 267]],\r\n\t\tdescription : \"Thrown, versatile (1d8); Bonus action: 1 attack\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"condensed order\"] = {\r\n\tname : \"Condensed Order\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can snuff this silvery powder extracted from those of a lawful persuasion, or administer it to another. The consumer is immune to the flesh warping feature of demonic ichor and gains advantage on saves against effects from a demonic source. These benefits last for 8 hours.\",\r\n\tdescriptionFull : \"Condensed Order is a silvery powder that can be extracted from those of a lawful persuasion. Devils bound for the warfronts of Avernus take flasks and snuff boxes of the stuff to fortify themselves against exposure to the raw chaos of demons. Taking the substance requires an action and makes you immune to the flesh warping feature of demonic ichor. It also gives you advantage on saving throws against any effect from a demonic source. These benefits last for 8 hours.\"\r\n}\r\nMagicItemsList[\"demonbone polearm\"] = {\r\n\tname : \"Demonbone Polearm\",\r\n\tnameTest : \"Demonbone\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"weapon (polearm)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"As a reaction when damaged by a creature in reach, I can attack it once with this +2 polearm. It is cursed, I can't unattune to it and have disadv. with other weapons. If I take damage, I must make a DC 15 Wis save or go berserk: I attack those near to me until none remain in 60 ft or I'm calmed with a DC 15 Persuasion\" + (typePF ? \".\" : \"check.\"),\r\n\tdescriptionLong : \"I have a +2 bonus on attack and damage rolls made with this magic quarterstaff. As a reaction when I'm damaged by a creature in this weapon's reach, I can make one melee attack against it. This weapon is cursed, I'm unwilling to part with it, can't unattune to it without Remove Curse, and have disadvantage with other weapons. When I take damage, I must make a DC 15 Wisdom save or go berserk: I attack the nearest creature using this weapon with all my attacks, moving to the next nearest until none remain that I can sea or hear within 60 ft of me. I can also be calmed with a DC 15 Charisma (Persuasion) check.\",\r\n\tdescriptionFull : \"You have a +2 bonus to attack and damage rolls made with this magic weapon. In addition, when you're damaged by a creature in reach, you may use your reaction to make one melee attack against it with this weapon.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. While attuned, you have disadvantage on attack rolls with weapons other than this one.\"+\r\n\t\"\\n   Whenever a hostile creature damages you, you must succeed on a DC 15 Wisdom saving throw or go berserk. While berserk, you must use your action on each of your turns to attack the creature nearest to you with the weapon. If you can make extra attacks as part of the Attack action, you use those extra attacks, moving to attack the next nearest creature after you fell your current target. If you have multiple possible targets, you attack one at random.\"+\r\n\t\"\\n   You're berserk until you start your turn with no creatures within 60 feet of you that you can see or hear. Alternatively, an ally can use an action to make a DC 15 Charisma (Persuasion) check and if successful, you're no longer berserk. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"demonbone polearm\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"demonbone polearm\") },\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"polearm\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /\\b(polearm|glaive|halberd|lance|pike|quarterstaff|spear)\\b/i;\r\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tvar testRegex = /\\b(polearm|glaive|halberd|lance|pike|quarterstaff|spear)\\b/i;\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/demonbone/i).test(v.WeaponTextName) && (testRegex.test(v.thisWeapon[0]) || ( v.theWea.baseWeapon && testRegex.test(v.theWea.baseWeapon) ))) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Demonbone\" in a the name of a polearm, it will be treated as the magic weapon Demonbone Polearm. It adds +2 to hit and damage, can be used as a reaction when I\\'m damaged by a creature within reach to attack them, an is cursed causing me to go beserk when I\\'m damaged.'\r\n\t\t]\r\n\t},\r\n\taction : [[\"reaction\", \" (when damaged)\"]]\r\n}\r\nMagicItemsList[\"gauntlets of rage\"] = {\r\n\tname : \"Gauntlets of Rage\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tdescription : \"The first melee weapon attack I make after a short rest sends me into a fury for 1 minute. I can't cast spells or speak, am immune to charmed and frightened, and when I deal damage, I heal 2d8 hp and end this fury or one condition. Also, I can use a spell slot before a melee attack for +1d6 necrotic damage per spell level.\",\r\n\tdescriptionLong : \"I gain the power of never-ending fury. The first melee weapon attack I make after I finish a short or long rest automatically send me into a special fury for 1 minute. While furious, I can't cast spells, can't verbally communicate, and am immune to the charmed and frightened conditions. Each time I deal damage, I regain 2d8 hit points and may immediately remove a condition I currently suffer from or end this fury. Also, while in this fury, I may spend a spell slot before I make a melee attack. Doing so causes the attack to deal an extra 1d6 necrotic damage per level of spell slot expended, if it hits.\",\r\n\tdescriptionFull : \"You gain the power of never-ending fury. After you make a melee weapon attack, you automatically enter a special fury for 1 minute. While furious, you can't cast spells, can't verbally communicate, and are immune to the charmed and frightened conditions. Each time you deal damage, you regain 2d8 hit points and may immediately remove a condition you currently suffer from or end this fury. Additionally, while in this fury, you may spend a spell slot before you make a melee attack. Doing so causes the attack to deal an extra 3 (1d6) necrotic damage per level of spell slot expended, if the attack hits. Once used you may not use this fury again until you finish a short or long rest.\",\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tsavetxt : { text : [\"Immune to charmed and frightened in fury\"] }\r\n}\r\nMagicItemsList[\"infernal amulet\"] = {\r\n\tname : \"Infernal Amulet\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"While wearing this amulet, I can use it as a spellcasting focus for my spells, and it grants a +2 bonus to my spell save DC and spell attack bonus. It is cursed and corrupting. I'm unwilling to part with it and require Remove Curse to unattune to it. It gives me disadvantage on Strength saving throws and Strenght checks.\",\r\n\tdescriptionFull : \"While wearing this amulet, you can use it as a spellcasting focus for your spells, and it grants a +2 bonus to your spell save DC and spell attack bonus.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this amulet while attuned to it and you wear it always. While wearing the amulet you have disadvantage on Strength saving throws and Strength checks. Only the Remove Curse spell allows you to remove the item and end attunement.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"infernal amulet\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"infernal amulet\") },\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type != \"prepare\") return 2;\r\n\t\t\t},\r\n\t\t\t\"While wearing the Infernal Amulet my spell save DC and spell attack bonus each increase by 2.\"\r\n\t\t]\r\n\t},\r\n\tadvantages : [[\"Athletics\", false], [\"Strength\", false]]\r\n}\r\nif (typePF) MagicItemsList[\"infernal amulet\"].savetxt = { text : [\"Disadv. on Str saves/checks\"] }\r\nMagicItemsList[\"infernal plate armor\"] = {\r\n\tname : \"Infernal Plate Armor\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"While wearing this armor, I gain a +2 bonus to AC. This armor is cursed and corrupting. I can't take it off or unattune to it without Remove Curse. It makes me vulnerable to the following damage types: force, lightning, psychic, radiant, and thunder.\",\r\n\tdescriptionFull : \"While wearing this armor, you gain a +2 bonus to AC.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Once you wear this armor, and are attuned to it, you can't remove it. Only the Remove Curse spell allows you to end the attunement and finally doff it. While wearing the armor, you're vulnerable to the following damage types: force, lightning, psychic, radiant, and thunder.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"infernal plate armor\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"infernal plate armor\") },\r\n\tweight : 65,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*infernal)(?=.*plate).*$/i,\r\n\t\tname : \"Infernal Plate Armor\",\r\n\t\tsource : [[\"CoA\", 268]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"18+2\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { text : [\"Vulnerable to force, lightning, psychic, radiant, and thunder damage\"] },\r\n}\r\nMagicItemsList[\"knife of stolen resistance\"] = {\r\n\tname : \"Knife of Stolen Resistance\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"As an action once per long rest, I can use this knife to carve a single infernal rune into the flesh of an unconscious Beast, Celestial, Dragon, Fey, or Giant. Over the next 10 minutes the creature dies in agony, only Wish can stop this. If the creature has any resistances or immunities, I gain those while its dying.\",\r\n\tdescriptionFull : \"Using an action, you carve a single infernal rune into the flesh of an unconscious Beast, Celestial, Dragon, Fey, or Giant with this knife. Over the next 10 minutes the creature dies an agonizing death that can't be prevented short of the Wish spell. If the creature has any resistances or immunities, you gain those resistances and immunities until the creature dies or a Wish spell is used to save the creature. The knife's power can't be used again until you finish a long rest.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*knife)(?=.*stolen)(?=.*resistance).*$/i,\r\n\t\tname : \"Knife of Stolen Resistance\",\r\n\t\tsource : [[\"CoA\", 268]],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ring of collecting\"] = {\r\n\tname : \"Ring of Collecting\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"ring\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action once per dawn, I can use this ring to cast Tiny Hut. As a bonus action, I can disintegrate an up to Medium sized, nonmagical piece of art within 60 ft. That art now appears inside the tiny hut, vanishing forever if removed from it. For every 1000 gp of art added, the tiny hut get +1 ft radius and lasts +1 hour.\",\r\n\tdescriptionLong : \"As an action once per dawn, I can use this ring to cast Leomund's Tiny Hut. As a bonus action, I can use this ring to disintegrate an up to Medium sized, nonmagical piece of art (drawing, painting, or sculpture) within 60 ft. That art now appears inside the tiny hut, for me to appreciate whenever I desire. If I try to remove this art from the tiny hut, it vanishes forever. I can steadily improve this space, but only by denying such beauty from the rest of the world. For every 1000 gp of art acquired, the tiny hut increases in size by adding +1 ft to its radius and lasts +1 hour.\",\r\n\tdescriptionFull : \"While wearing this ring you can use it to cast the Leomund's Tiny Hut spell as an action. Once this property is used, it can't be used again until the next dawn. Additionally, as a bonus action, you can use the ring to disintegrate any nonmagical piece of art (drawing, painting, or sculpture) within 60 feet that is no larger than Medium-sized. That art now appears inside the tiny hut, for you to appreciate whenever you desire. If you try to remove this art from the tiny hut, it vanishes forever. You can steadily improve this space, but only by denying such beauty to the rest of the world. For every 1,000 gp of art acquired, the tiny hut increases in size by adding another foot to its radius and lasts one additional hour.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"leomund's tiny hut\"],\r\n\t\tselection : [\"leomund's tiny hut\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"leomund's tiny hut\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tduration : \"8h+1h/1k gp\",\r\n\t\t\tdescription : \"10ft+1ft/1000 gp rad immobile dome of force; 9 Medium crea; blocks magic; ends if I leave; see book\",\r\n\t\t\tchanges : \"Using the Ring of Collecting, I can cast Leomund's Tiny Hut as an action instead of taking 1 minute. Once this property is used, it can't be used again until the next dawn. For every 1000 gp of art acquired, the tiny hut increases in size by adding +1 ft to its radius and lasts +1 hour.\"\r\n\t\t}\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Leomund's Tiny Hut\",\r\n\taction : [[\"bonus action\", \" (steal art)\"]]\r\n}\r\nMagicItemsList[\"ring of the copycat\"] = {\r\n\tname : \"Ring of the Copycat\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"ring\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"As a reaction when an ally within 60 ft casts a spell, I can cast it as well as long as I can't normally cast it and it requires 10 gp or less material components. The cloned spell uses the original caster's abilities, originates from me and I choose its targets, but my ally can't cast this spell again until they finish a long rest.\",\r\n\tdescriptionFull : \"You gain the ability to channel energy from allies to cast spells, even if you normally can't. When an ally within 60 feet of you casts a spell that you normally can't cast and that requires 10 gp or fewer in material components, you may use a reaction to cast that spell. When cast in this way, the spell is cast using your ally's spellcasting ability, spell save DC, and spell attack bonus, as needed. You decide this cloned spell's target, as specified in the spell's description, and the spell originates from you. After you use this ability, your ally can't cast this spell again until they finish a long rest.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n}\r\nMagicItemsList[\"ring of treachery\"] = {\r\n\tname : \"Ring of Treachery\",\r\n\tsource : [[\"CoA\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This ring has 3 charges, which are restored whenever I finish a long rest. As a reaction when I am damaged, I can expend one charge to transfer that damage to a random creature (allies included) within 60 ft of me.\",\r\n\tdescriptionFull : \"This ring has 3 charges. While wearing this ring, when you're damaged, you may use a reaction to expend a charge and transfer that damage to a random creature (which could include an ally) within 60 feet. All charges are restored when you finish a long rest.\",\r\n\taction : [[\"reaction\", \" (when damaged)\"]],\r\n\tusages : 3\r\n}\r\nMagicItemsList[\"sage's mirror\"] = {\r\n\tname : \"Sage's Mirror\",\r\n\tsource : [[\"CoA\", 269]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This mirror has 3 charges, regaining all at dusk. As an action, I can expend 1 charge to cast either Find the Path or Legend Lore. With each use, it is apparent that the information gleaned from the mirror comes from a chamber in the Nine Hells where sages and scholars are tortured for the answers to each question.\",\r\n\tdescriptionFull : \"This item has 3 charges and regains all charges at dusk. You can use an action and expend 1 of the mirror's charges to cast one of the following spells:\"+\r\n\t\"\\n \\u2022 Find the Path\"+\r\n\t\"\\n \\u2022 Legend Lore\"+\r\n\t\"\\n   With each use, it is apparent that the information gleaned from the mirror comes from a chamber in the Nine Hells where sages and scholars are tortured for the answers to each question.\",\r\n\tusages : 3,\r\n\trecovery : \"Dusk\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"find the path\", \"legend lore\"],\r\n\t\tselection : [\"find the path\", \"legend lore\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"find the path\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Sage's Mirror, I can cast Find the Path as an action when I expend one of its charges.\"\r\n\t\t},\r\n\t\t\"legend lore\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Sage's Mirror, I can cast Legend Lore as an action when I expend one of its charges.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"skull of selfish knowledge\"] = {\r\n\tname : \"Skull of Selfish Knowledge\",\r\n\tsource : [[\"CoA\", 269]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can make this magical skull devour a nonmagical book, map, or scroll. Once devoured, the learning is forever available to me, but I can never write the information down or communicate it to others. It is for me alone.\",\r\n\tdescriptionFull : \"You may use an action to make the magical skull devour a nonmagical book, map, or scroll. Once devoured the learning is forever available to you, but you can never write the information down or communicate it to others. It is for you alone.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"stygian spear\"] = {\r\n\tname : \"Stygian Spear\",\r\n\tsource : [[\"CoA\", 270]],\r\n\ttype : \"weapon (spear or javelin)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"This +2 weapon deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\r\n\tdescriptionFull : \"You have a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. In addition, you have disadvantage on attack rolls made with weapons other than this one.\"+\r\n\t\"\\n   Whenever you roll a 1 on an attack roll using this weapon, your target changes to your closest ally.\"+\r\n\t\"\\n   If there are multiple allies, randomly determine which is the target. Make a new attack roll with advantage against your ally. If the attack hits, in addition to the standard damage you deal an extra 2d6 poison damage. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"stygian spear\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"stygian spear\") },\r\n\tchoices : [\"Javelin\", \"Spear\"],\r\n\t\"javelin\" : {\r\n\t\tname : \"Stygian Javelin\",\r\n\t\tdescription : \"This +2 javelin deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\r\n\t\tdescriptionLong : \"I have a +2 bonus to attack and damage rolls made with this magic javelin. When I throw it, it deals one extra die of damage on a hit and it flies back to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. Whenever I roll a 1 on an attack roll using this weapon, I instead attack my closest ally. I make a new attack roll with advantage against my ally and if it hits, this weapon deals an extra +2d6 poison damage. If there are multiple allies, randomly determine the target.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"javelin\",\r\n\t\t\tregExpSearch : /^(?=.*stygian)(?=.*javelin).*$/i,\r\n\t\t\tname : \"Stygian Javelin\",\r\n\t\t\tsource : [[\"CoA\", 270]],\r\n\t\t\tdescription : \"Returning, thrown; Thrown: +1d6 damage; On 1: adv. attack ally \\u0026 +2d6 poison damage\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tweight : 2\r\n\t},\r\n\t\"spear\" : {\r\n\t\tname : \"Stygian\\u200A Spear\",\r\n\t\tdescription : \"This +2 spear deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\r\n\t\tdescriptionLong : \"I have a +2 bonus to attack and damage rolls made with this magic spear. When I throw it, it deals one extra die of damage on a hit and it flies back to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. Whenever I roll a 1 on an attack roll using this weapon, I instead attack my closest ally. I make a new attack roll with advantage against my ally and if it hits, this weapon deals an extra +2d6 poison damage. If there are multiple allies, randomly determine the target.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*stygian)(?=.*spear).*$/i,\r\n\t\t\tname : \"Stygian Spear\",\r\n\t\t\tsource : [[\"CoA\", 270]],\r\n\t\t\tdescription : \"Returning, thrown, versatile (1d8); Thrown: +1d6 damage; On 1: adv. attack ally \\u0026 +2d6 poison damage\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tweight : 3\r\n\t}\r\n}\r\nMagicItemsList[\"sword of retribution\"] = {\r\n\tname : \"Sword of Retribution\",\r\n\tnameTest : \"of Retribution\",\r\n\tsource : [[\"CoA\", 270]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"Damage from this +3 sword can be regained only through resting. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. After a long rest, I must make a DC 11 Con save or only get the benefits of a short rest due to nightmares.\",\r\n\tdescriptionLong : \"I gain a +3 bonus to attack and damage rolls made with this sword. Hit points lost to this weapon's damage can be regained only through a short or long rest, rather than by regeneration, magic, or any other means. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. When I sleep, I experience nightmares of the past of the vengeful spirit possessing the sword, culminating in its death. After a long rest, I must make a DC 11 Constitution saving throw or only gain the benefits of a short rest.\",\r\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this sword. Hit points lost to this weapon's damage can be regained only through a short or long rest, rather than by regeneration, magic, or any other means.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. While attuned to this weapon, you also have disadvantage on attack rolls made with weapons other than this one.\"+\r\n\t\"\\n   The vengeful spirit possessing the sword shares its history and lust for vengeance with the wielder. After each successful long rest, you experience nightmares of the spirit's past, culminating in its death. When you wake, you must make a DC 11 Constitution saving throw. On a failed save, you only gain the benefits of a short rest. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"sword of retribution\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"sword of retribution\") },\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of retribution/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Only rest heals this damage; Cursed';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Retribution\" in the name of a sword, it will be treated as the magic weapon Sword of Retribution. It gives a +3 bonus to attack and damage. Damage it deals can\\'t be healed except by resting, and it also bears a curse.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of retribution/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nvar CoA_VialOfGreed = [\r\n\t\"This small glass vial can stockpile resources for use in the future. Once stored, resources last for 1 century before vanishing. As an action you make the vial store any number of the following resources, which are magically consumed and converted into a violet-colored liquid:\",\r\n\t\"\\u2022 Up to 31 days of food and/or drink. The flavors are lost, instead becoming tasteless.\",\r\n\t\"\\u2022 Up to 7 days of alcohol. The flavors are lost, instead becoming tasteless.\",\r\n\t\"\\u2022 Up to 5 magic scrolls that affect a single creature. The target of the spell is you, and if the spell requires concentration, you can concentrate.\",\r\n\t\"\\u2022 Up to 5 magic potions. No more than 2 duplicate potions can be stored at a time.\",\r\n\t\"You may have more than one kind of resource in the vial, up to the limits expressed above. You can use a bonus action to consume one day of food (or alcohol) or activate one scroll or magic potion. If activating a magic scroll, the effects of that scroll must end before you can activate another scroll from the Vial of Greed.\"\r\n];\r\nMagicItemsList[\"vial of greed\"] = {\r\n\tname : \"Vial of Greed\",\r\n\tsource : [[\"CoA\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can have this small glass vial magically store: food and drink (up to 31 days), alcohol (up to 7 days), magic scrolls that affect 1 creature (up to 5), and magic potions (up to 5, no 3 can be the same). As a bonus action, I can use or consume one of those stored, but the food, drink and alcohol is tasteless.\",\r\n\tdescriptionFull : CoA_VialOfGreed.join(\"\\n   \"),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Vial of Greed Features\",\r\n\t\tnote : desc(CoA_VialOfGreed).replace(/is you/ig, \"is me\").replace(/you /ig, \"I \")\r\n\t}],\r\n\taction : [\r\n\t\t[\"action\", \"Store in Vial of Greed\"],\r\n\t\t[\"bonus action\", \"Use from Vial of Greed\"]\r\n\t]\r\n}\r\nMagicItemsList[\"weapon of agonizing paralysis\"] = {\r\n\tname : \"Weapon of Agonizing Paralysis\",\r\n\tnameTest : \"of Agonizing Paralysis\",\r\n\tsource : [[\"CoA\", 271]],\r\n\ttype : \"weapon (any melee)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon has a +3 bonus to hit and damage. When it reduces a creature to 0 hp, they don't die but are instead healed to 1 hp and paralyzed. While paralyzed, infernal runes appear as if carved into their flesh and at the start of each of their turns they suffer immense pain and gain a level of exhaustion.\",\r\n\tdescriptionFull : \"You have a +3 bonus to attack and damage rolls made with this magic weapon. When this weapon reduces a creature to 0 hit points, the creature doesn't die. Instead, infernal runes appear as if carved into their flesh and they're healed to 1 hit point. They now have the paralyzed condition until the condition is removed by a Lesser Restoration spell or similar magic. When the condition is removed, the runes disappear. At the start of each of their turns while they're paralyzed, the creature suffers immense pain and gains a level of exhaustion.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /melee/i.test(inObj.range);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /^(?=.*agonizing)(?=.*paralysis).*$/i.test(v.baseWeaponName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'At 0 hp: paralyzed not dead';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Agonizing Paralysis\" in a the name of a melee weapon, it will be treated as the magic weapon Weapon of Agonizing Paralysis. It has +3 to hit and damage and when it brings a target to 0 hp, they are healed to 1 hp and paralyzed.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /^(?=.*agonizing)(?=.*paralysis).*$/i.test(v.baseWeaponName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\n\n// pub_20231114_BoMT.js\n// This file adds the Character Options content from the \"The Book of Many Things\" book (from the \"The Deck of Many Things\" set) to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"BoMT\"] = {\n\tname : \"The Book of Many Things\",\n\tabbreviation : \"BoMT\",\n\tabbreviationSpellsheet : \"MT\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://dndstore.wizards.com/us/en/product/865604/the-deck-of-many-things-digital-plus-physical-bundle\",\n\tdate : \"2023/11/14\"\n};\n\nBackgroundList[\"rewarded\"] = {\n\tregExpSearch : /rewarded/i,\n\tname : \"Rewarded\",\n\tsource : [[\"BoMT\", 57]],\n\tskills : [\"Insight\", \"Persuasion\"],\n\tgold : 18,\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tequipleft : [\n\t\t[\"Paper, sheets of\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen\", \"\", \"\"],\n\t\t[\"Gaming set matching my proficiency\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Signet ring\", \"\", \"\"],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Fortune's Favor\",\n\ttrait : [\n\t\t\"A safe home is a foundation on which anything else can be built. (Key, Throne)\",\n\t\t\"I was elevated to heights I could never otherwise attain, and I won't waste my fortune. (Star, Sun)\",\n\t\t\"I try to be a source of inspiration and joy to others. Life is never as bad as you think! (Euryale, Jester)\",\n\t\t\"Courage and boldness can carry the day when all else fails. (Comet, Knight)\",\n\t\t\"My good fortune means I can lift others up as well. (Gem, Moon)\",\n\t\t\"Having the right answers is the first step to solving any problem, no matter how dire. (Fates, Sage)\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Perfumed scarf from admirer\",\n\t\t\"Crystal glows as candle\",\n\t\t\"Letter from far-off influential\",\n\t\t\"Symbol with unknown meaning\",\n\t\t\"Ever-crisp playing card\",\n\t\t\"Half a medallion\"\n\t]\n};\nBackgroundFeatureList[\"fortune's favor\"] = {\n\tdescription : \"I have unexpected good fortune in life, caused by something like a genie who granted me wishes, extraordinary luck during a game, me honing my skills to endure a supernatural trial, or some other force that transformed my life. This boon is reflected in my choice of one free feat: Lucky, Magic Initiate, or Skilled.\",\n\tsource : [[\"BoMT\", 57]],\n\tfeatsAdd: [{\n\t\toptions: [\n\t\t\t{ key: 'lucky' },\n\t\t\t{ key: 'magic initiate' },\n\t\t\t{ key: 'skilled' },\n\t\t],\n\t}],\n};\n\nBackgroundList[\"ruined\"] = {\n\tregExpSearch : /ruined/i,\n\tname : \"Ruined\",\n\tsource : [[\"BoMT\", 58]],\n\tskills : [\"Stealth\", \"Survival\"],\n\tgold : 13,\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tequipleft : [\n\t\t[\"Cracked hourglass\", \"\", 1],\n\t\t[\"Rusty manacles\", \"\", 6],\n\t\t[\"Bottle, glass (half-empty)\", \"\", 2],\n\t\t[\"Hunting trap\", \"\", 25],\n\t\t[\"Gaming set matching my proficiency\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Still Standing\",\n\ttrait : [\n\t\t\"I've changed from my past, and I work to live up to my new path. (Balance, Throne)\",\n\t\t\"Every moment is a gift I refuse to squander. (Euryale, Skull)\",\n\t\t\"Now that I've overcome having nothing, I can survive anything. (Fool, Ruin, Talons)\",\n\t\t\"I know enemies are set against me, and I always prepare for the worst. (Flames, Rogue)\",\n\t\t\"I interpret every event as part of a larger pattern I just haven't worked out yet. (Puzzle, Star)\",\n\t\t\"I must make up for so much time I've already lost. (Donjon, Void)\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Rusted scrap of family heirloom\",\n\t\t\"Ancient land deed, lost in obscurity\",\n\t\t\"Bauble once imbued with powerful magic\",\n\t\t\"Battered, pierced playing card\",\n\t\t\"Yellowed whispering humanoid tooth\",\n\t\t\"Keepsake from friend turned enemy\"\n\t]\n};\nBackgroundFeatureList[\"still standing\"] = {\n\tdescription : \"I have weathered ruinous misfortune in my life and I possess hidden reserves because of this. Possibly I've had to keep my senses sharp, had to redouble my efforts to reclaim what is mine, had to stoically persevered through it, or experienced something else transformative. How I've dealt with this is reflected in my choice of one free feat: Alert, Skilled, or Tough.\",\n\tsource : [[\"BoMT\", 58]],\n\tfeatsAdd: [{\n\t\toptions: [\n\t\t\t{ key: 'alert' },\n\t\t\t{ key: 'skilled' },\n\t\t\t{ key: 'tough' },\n\t\t],\n\t}],\n};\n\n\nFeatsList[\"cartomancer\"] = {\n\tname : \"Cartomancer\",\n\tsource : [[\"BoMT\", 49]],\n\tdescription : 'I can use a card deck as a spellcasting focus. I learn and can do stage magic with Prestidigitation. I conceal its components as card tricks when doing so. When I finish a long rest, I can store a spell from my class\\' spell list into a card, see \"Hidden Ace\" notes.',\n\tdescriptionFull : \"You have learned to channel your magic through a deck of cards. You can use a card deck as your spellcasting focus, and you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Card Tricks\") + \". You learn the Prestidigitation cantrip and can use it to create illusions that duplicate the effects of stage magic. When you use Prestidigitation in this way, you can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\"+\n\t\"\\n   \" + toUni(\"Hidden Ace\") + \". When you finish a long rest, you can choose one spell from your class's spell list and imbue that spell into a card. The chosen spell must have a casting time of 1 action, and it must be a level for which you have spell slots. The card remains imbued with this spell for 8 hours. While the card is imbued with the spell, you can use a bonus action to flourish the card and cast the spell within. The card then immediately loses its magic.\",\n\tprerequisite : \"4th-level, Spellcasting feature\",\n\tprereqeval : function(v) { return v.characterLevel >= 4 && v.isSpellcastingClass; },\n\tspellcastingBonus : [{\n\t\tname : \"Cartomancer\",\n\t\tspells : [\"prestidigitation\"],\n\t\tselection : [\"prestidigitation\"],\n\t}],\n\tspellChanges : {\n\t\t\"prestidigitation\" : {\n\t\t\tcomponents : \"V,S*\",\n\t\t\tcompMaterial : \"When I duplicate the effects of stage magic, I can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\",\n\t\t\tdescription : \"Harmless sensation, illusory image, snuff light, clean/soil/chill/warm/flavor, stage magic (hide comp)\",\n\t\t\tchanges : \"When I duplicate the effects of stage magic, I can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\"\n\t\t}\n\t},\n\taction : [[\"bonus action\", \"Hidden Ace (use imbued card)\"]],\n\ttoNotesPage : [{\n\t\tname : \"Hidden Ace\",\n\t\tpage3notes : true,\n\t\tnote : [\n\t\t\t\"When I finish a long rest, I can imbue a spell from my class' spell list into a card for 8 hours\",\n\t\t\t\"The spell must have a casting time of 1 action and be a level for which I have spell slots\",\n\t\t\t\"As a bonus action, I can flourish the card and cast the spell within; It then loses its magic\"\n\t\t]\n\t}]\n};\n\n\nvar BoMT = {\n\ttoDescrFull : function (sDescr) {\n\t\tif (typeof sDescr !== \"string\") sDescr = sDescr.join(\"\\n   \");\n\t\treturn sDescr.replace(/\\[\\[.*?\\]\\]/g, \"$1\")\n\t\t\t.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); });\n\t},\n\tto1stPerson : function (sDescr, joinStr) {\n\t\tif (typeof sDescr === \"string\") sDescr = [sDescr];\n\t\treturn desc(sDescr, joinStr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\n\t\t\t.replace(/you aren't/ig, \"I'm not\").replace(/you were/ig, \"I was\")\n\t\t\t.replace(/you are|you're/ig, \"I am\").replace(/yours\\b/ig, \"mine\")\n\t\t\t.replace(/\\byou\\b/ig, \"I\")\n\t\t\t.replace(/(aid|freeing|around|resurrected|beneath|between|\\w\\ws|by|of|to|for|on) I\\b/ig, \"$1 me\")\n\t\t\t.replace(/(toward) I\\b/ig, \"$1s me\")\n\t\t\t.replace(/(cards|items) me\\b/ig, \"$1 I\")\n\t\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\n\t\t\t.replace(/yours\\b/g, \"mine\").replace(/Yours/g, \"Mine\")\n\t\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\n\t\t\t.replace(/\\[\\[.*?\\]\\]/g, \"\")\n\t\t\t.replace(/(\\n *|\\u2022 |\\u25C6 )>>(.*?)( \\(.*?\\))?<<\\. /g, function(a, p1, p2, p3, p4) {\n\t\t\t\tif (/\\n   /.test(p1)) {\n\t\t\t\t\treturn \"\\n\\n   \" + p2.toUpperCase() + p3.toLowerCase() + \"\\n   \";\n\t\t\t\t} else {\n\t\t\t\t\treturn p1 + p2 + p3 + \": \";\n\t\t\t\t}\n\t\t\t});\n\t},\n\t\"voidwalker armor\" : \"This armor is cursed, and attuning to it extends the curse to you. As long as you remain cursed, you're unwilling to part with the armor. Taking it off fails to end the curse. While cursed in this way, you feel disconnected from your body, continuously hearing whispers that call for you to join them. Whenever you finish a long rest while cursed, you must make a DC 11 Charisma saving throw. On a failed save, your soul is drawn from your body and trapped in an object on a different plane of existence. The object and location of this object are chosen by the DM[[ (but might be the House of Cards; see chapter 18)]]. While your soul is trapped in this way, your body is inert and doesn't age or require sustenance. Destroying the object frees your soul; otherwise, only a Wish spell can restore your soul to your body.\",\n\t\"telescopic transporter\" : \"This enormous telescope allows you to view distant celestial objects, including stars, Wildspace systems, and Astral Sea phenomena like the cities of deities or the petrified husks of dead gods.\"+\n\t\t\"\\n   After spending 1 hour calibrating the telescope, you can attempt to travel to the planet or celestial body at which the telescope is currently pointed. At the end of the hour, you make a DC 17 Intelligence (Arcana) check. On a successful check, you and eight other willing creatures touching the telescope, along with everything all travelers are wearing and carrying, safely teleport to unoccupied spaces at the intended destination. On a failed check, a mishap occurs instead. The DM rolls on the table below to determine the mishap or chooses a mishap that's good for the campaign.\"+\n\t\t\"\\n\\nd6\\tMishap\"+\n\t\t\"\\n 1\\tThe travelers appear adrift in the Astral Sea.\"+\n\t\t\"\\n 2\\tThe travelers appear on a different plane of existence, determined randomly or chosen by the DM.\"+\n\t\t\"\\n 3\\tExcess cosmic energy overloads the telescope, causing it to explode. Each creature within 60 feet of the telescope takes 8d6 necrotic damage. Any Humanoid who survives this damage is transformed into a different kind of creature, as if it had been subject to the Reincarnate spell.\"+\n\t\t\"\\n 4\\tA creature from the Astral Sea (such as a githyanki knight) appears within 60 feet of the telescope. The DM decides its attitude.\"+\n\t\t\"\\n 5\\tThe travelers appear on a different planet or celestial body in the Wildspace system nearest to their target destination.\"+\n\t\t\"\\n 6\\tThe travelers arrive at their intended destination, but they each appear coated in harmless slime.\",\n\t\"sage's signet\" : {\n\t\t\"augury\" : {\n\t\t\ttime : \"1 a\",\n\t\t\tchanges : \"Using the Sage's Signet I can cast Augury once per dawn as an action.\"\n\t\t}\n\t},\n\t\"shrieking greaves\" : \"The greaves are cursed, and becoming attuned to them extends the curse to you. You can't remove the greaves or end your attunement to them until you are targeted by a Remove Curse spell or similar magic.\"+\n\t\"\\n   You have disadvantage on saving throws against the frightened condition. Whenever you start your turn frightened, the greaves release an ear-piercing scream. You and each creature within 10 feet of you must make a DC 15 Constitution saving throw, taking 2d8 thunder damage on a failed save, or half as much damage on a successful one.\",\n\t\"spindle of fate\" : [\n\t\t\">>Battle Foreknowledge<<. When you roll initiative, you can expend 1 charge to add or subtract your proficiency bonus from the total roll.\",\n\t\t\">>Doom Foretold<<. As an action, you can expend 2 charges to target a creature within 30 feet of yourself and invoke that creature's doom. While the target is on the same plane of existence as you are, you can sense the direction to its location, and you know the direction of its movement if it's in motion. Additionally, once per turn when you deal damage to the doomed creature, you can roll 1d6 and add the number rolled to the damage roll. These benefits persist for 1 hour or until you target another creature with this effect.\",\n\t\t\">>Twist of Fate<<. When a creature within 60 feet of you makes a saving throw or an attack roll, you can use your reaction to expend 3 charges and alter the outcome, turning a failed saving throw into a successful one, a missed attack roll into a hit, or vice versa.\"\n\t],\n\t\"starshot crossbow\" : [\n\t\t\"This crossbow is crafted from blackened wood, and its limbs bear pearl inlays depicting constellations. You ignore the loading property with this crossbow. If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the weapon vanishes the instant after it hits or misses a target. The crossbow has 3 charges and regains 1d3 expended charges daily at dawn.\",\n\t\t\">>Constellations<<. The crossbow is decorated with three constellations. As a bonus action, you can tap one of the constellations to invoke it, expending 1 charge and producing one of the following effects:\",\n\t\t\" \\u2022 >>Balance<<. The next time you hit a creature with a ranged attack roll using this crossbow before the end of your next turn, you or another creature of your choice within 30 feet of you can regain hit points equal to 1d8 plus your proficiency bonus.\",\n\t\t\" \\u2022 >>Flames<<. Until the end of your next turn, when you hit a creature with a ranged attack roll using this crossbow, the attack deals an additional 2d8 fire damage.\",\n\t\t\" \\u2022 >>Rogue<<. Until the end of your next turn, you have the invisible condition, and anything you are wearing or carrying is also invisible.\"\n\t],\n\t\"deck of miscellany\" : [\n\t\t\"Playing Card\\t\\tItem(s)\",\n\t\t\"  [3\\u2666] Three of diamonds  \\tWooden abacus\",\n\t\t\"  [4\\u2666] Four of diamonds  \\tFour vials of perfume\",\n\t\t\"  [5\\u2666] Five of diamonds  \\t5 days' worth of rations\",\n\t\t\"  [6\\u2666] Six of diamonds\\t\\tIron pot\",\n\t\t\"  [7\\u2666] Seven of diamonds  \\tDisguise kit\",\n\t\t\"  [8\\u2666] Eight of diamonds  \\tWindow (up to 5 feet wide and 5 feet high), which you can place on a vertical surface up to 5 feet thick and which allows you to look through the surface\",\n\t\t\"  [9\\u2666] Nine of diamonds  \\tManacles\",\n\t\t\"[10\\u2666] Ten of diamonds  \\tTen sheets of parchment\",\n\t\t\"  [3\\u2665] Three of hearts\\t\\tThree daggers\",\n\t\t\"  [4\\u2665] Four of hearts\\t\\tFour flasks of oil\",\n\t\t\"  [5\\u2665] Five of hearts\\t\\tFive silk robes\",\n\t\t\"  [6\\u2665] Six of hearts\\t\\tForgery kit\",\n\t\t\"  [7\\u2665] Seven of hearts\\t\\tQuarterstaff\",\n\t\t\"  [8\\u2665] Eight of hearts\\t\\tFishing tackle\",\n\t\t\"  [9\\u2665] Nine of hearts\\t\\tLeather pouch containing 18 gp\",\n\t\t\"[10\\u2665] Ten of hearts\\t\\t10 crossbow bolt\",\n\t\t\"  [3\\u2663] Three of clubs\\t\\tThree books, written in Common, about random historical events\",\n\t\t\"  [4\\u2663] Four of clubs\\t\\tCanvas tent\",\n\t\t\"  [5\\u2663] Five of clubs\\t\\t50 feet of coiled silk rope\",\n\t\t\"  [6\\u2663] Six of clubs\\t\\tTwo crowbars\",\n\t\t\"  [7\\u2663] Seven of clubs\\t\\tHealer's kit\",\n\t\t\"  [8\\u2663] Eight of clubs\\t\\tEight gems worth 5 gp each\",\n\t\t\"  [9\\u2663] Nine of clubs\\t\\tLamp\",\n\t\t\"[10\\u2663] Ten of clubs\\t\\t10 feet of iron chain\",\n\t\t\"  [3\\u2660] Three of spades\\t\\tThree spears\",\n\t\t\"  [4\\u2660] Four of spades\\t\\tSteel mirror\",\n\t\t\"  [5\\u2660] Five of spades\\t\\t15-foot wooden pole\",\n\t\t\"  [6\\u2660] Six of spades\\t\\tBurlap sack\",\n\t\t\"  [7\\u2660] Seven of spades\\t\\tTwo sets of fine clothes\",\n\t\t\"  [8\\u2660] Eight of spades\\t\\tShovel\",\n\t\t\"  [9\\u2660] Nine of spades\\t\\tLight hammer\",\n\t\t\"[10\\u2660] Ten of spades\\t\\tTen arrows\"\n\t],\n\t\"deck of many more things\" : {\n\t\tfeatures : [\n\t\t\t\"Like the Deck of Many Things, the Deck of Many More Things manifests differently on various worlds. While it can include fewer or different cards, it frequently appears with a Deck of Many Things as part of a combined deck of sixty-six illuminated cards. The combined deck is usually protected by a box or pouch. The forty-four cards of the Deck of Many More Things bear similar imagery to those in the Deck of Many Things and have potent magical effects, which are detailed later in this description. Notably, cards from the Deck of Many More Things are more likely to be beneficial, though about a third of them are still dangerous.\",\n\t\t\t\"Before you draw a card, you must declare how many cards you intend to draw and then draw them randomly. Unless a card allows you to draw additional cards, any cards drawn exceeding this number have no effect.\",\n\t\t\t\"As soon as you draw a card, its magic takes effect. You must draw each card you declared no more than 1 hour after the previous draw. Unless a card states otherwise, if you fail to draw the chosen number, the remaining number of cards fly from the deck and take effect simultaneously.\",\n\t\t\t\"Unless it is the Fool or the Jester card, a drawn card immediately takes effect, fades from existence, and reappears in the deck, making it possible to draw the same card multiple times.\",\n\t\t\t\"The DM can use the physical cards provided in The Deck of Many Things card set to build a combined Deck of Many Things and Deck of Many More Things, including whichever cards they desire. Alternatively, roll on the Deck of Many More Things table below to randomly determine what cards are drawn.\",\n\t\t\t\"\\n1d100\\tCard\"+\t\"\\t\\t1d100\\tCard\",\n\t\t\t\"01\\tAberration\"+\t\"\\t\\t   34\\tMine\",\n\t\t\t\"02\\tBalance*\"+\t\t\"\\t\\t   35\\tMonstrosity\",\n\t\t\t\"03\\tBeast\"+\t\t\"\\t\\t   36\\tMoon*\",\n\t\t\t\"04\\tBook\"+\t\t\t\"\\t\\t   37\\tOoze\",\n\t\t\t\"05\\tBridge\"+\t\t\"\\t\\t   38\\tPath\",\n\t\t\t\"06\\tCampfire\"+\t\t\"\\t\\t   39\\tPit\",\n\t\t\t\"07\\tCavern\"+\t\t\"\\t\\t   40\\tPlant\",\n\t\t\t\"08\\tCelestial\"+\t\"\\t\\t   41\\tPriest\",\n\t\t\t\"09\\tComet*\"+\t\t\"\\t\\t   42\\tPrisoner\",\n\t\t\t\"10\\tConstruct\"+\t\"\\t\\t   43\\tPuzzle*\",\n\t\t\t\"11\\tCorpse\"+\t\t\"\\t\\t   44\\tRing\",\n\t\t\t\"12\\tCrossroads\"+\t\"\\t\\t   45\\tRogue*\",\n\t\t\t\"13\\tDonjon*\"+\t\t\"\\t\\t   46\\tRuin*\",\n\t\t\t\"14\\tDoor\"+\t\t\t\"\\t\\t   47\\tSage*\",\n\t\t\t\"15\\tDragon\"+\t\t\"\\t\\t   48\\tShield\",\n\t\t\t\"16\\tElemental\"+\t\"\\t\\t   49\\tShip\",\n\t\t\t\"17\\tEuryale*\"+\t\t\"\\t\\t   50\\tSkull*\",\n\t\t\t\"18\\tExpert\"+\t\t\"\\t\\t   51\\tStaff\",\n\t\t\t\"19\\tFates*\"+\t\t\"\\t\\t   52\\tStairway\",\n\t\t\t\"20\\tFey\"+\t\t\t\"\\t\\t   53\\tStar*\",\n\t\t\t\"21\\tFiend\"+\t\t\"\\t\\t   54\\tStatue\",\n\t\t\t\"22\\tFlames*\"+\t\t\"\\t\\t   55\\tSun*\",\n\t\t\t\"23\\tFool*\"+\t\t\"\\t\\t   56\\tTalons*\",\n\t\t\t\"24\\tGem*\"+\t\t\t\"\\t\\t   57\\tTavern\",\n\t\t\t\"25\\tGiant\"+\t\t\"\\t\\t   58\\tTemple\",\n\t\t\t\"26\\tHumanoid\"+\t\t\"\\t\\t   59\\tThrone*\",\n\t\t\t\"27\\tJester*\"+\t\t\"\\t\\t   60\\tTomb\",\n\t\t\t\"28\\tKey*\"+\t\t\t\"\\t\\t   61\\tTower\",\n\t\t\t\"29\\tKnight*\"+\t\t\"\\t\\t   62\\tTree\",\n\t\t\t\"30\\tLance\"+\t\t\"\\t\\t   63\\tUndead\",\n\t\t\t\"31\\tMage\"+\t\t\t\"\\t\\t   64\\tVoid*\",\n\t\t\t\"32\\tMap\"+\t\t\t\"\\t\\t   65\\tWarrior\",\n\t\t\t\"33\\tMaze\"+\t\t\t\"\\t\\t   66\\tWell\",\n\t\t\t\"67-00\\tRoll again\\n\",\n\t\t\t\"* Found in the Deck of Many Things as depicted in the Dungeon Master's Guide\"\n\t\t],\n\t\tcards : [\n\t\t\t\">>Aberration<<. You gain telepathy within a range of 90 feet.\",\n\t\t\t\">>Beast<<. You immediately transform into a random Beast with a CR of 5 or lower. Your game statistics—including your ability scores, hit points, and possible actions—are replaced by the Beast's game statistics, and any nonmagical equipment you're wearing or carrying melds into your new form and can't be used. Any magic items you're carrying drop in an unoccupied space within 5 feet of your new form.\"+\n\t\t\t\"\\n   You remain transformed in this way for 2d12 days; nothing can alter your form while you're under the effects of this card, but the Wish spell can end the transformation early. When you revert to your normal form, you return to the same state you were in when you initially transformed.\",\n\t\t\t\">>Book<<. You gain the ability to speak, read, and write 1d6 + 2 languages of your choice.\",\n\t\t\t\">>Bridge<<. You gain the ability to cast the Time Stop spell 1d3 times. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Campfire<<. You immediately gain the benefits of finishing a long rest.\",\n\t\t\t\">>Cavern<<. You gain a climbing speed equal to your walking speed. You also gain the ability to move up, down, across vertical surfaces, and along ceilings, while leaving your hands free.\",\n\t\t\t\">>Celestial<<. You sprout a pair of softly luminescent, feathered wings from your back and gain a flying speed of 30 feet.\",\n\t\t\t\">>Construct<<. A homunculus appears in an unoccupied space within 5 feet of you. The appearance of the homunculus is determined by the DM, and the homunculus treats you as its creator.\",\n\t\t\t\">>Corpse<<. You immediately drop to 0 hit points, have the unconscious condition, and must begin making death saving throws. Spells and other magical effects that restore hit points have no effect on you until you are stabilized. If you fail three death saving throws, you die and can be resurrected only by the Wish spell.\",\n\t\t\t\">>Crossroads<<. Roll a d20. If the roll is even, you age 1d10 years. If the roll is odd, you become younger by 1d10 years, to a minimum of 1 year. This effect can be undone only by the Wish spell, divine intervention, or similar magic.\",\n\t\t\t\">>Door<<. You gain the ability to cast the Gate spell 1d4 times, requiring no material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Dragon<<. A dragon egg appears at your feet and immediately hatches into a dragon wyrmling. The type of dragon is chosen by the DM. The wyrmling views you as its parent and is staunchly loyal to you and your allies.\",\n\t\t\t\">>Elemental<<. You become immune to one of the following damage types (choose immediately upon drawing this card): acid, cold, fire, lightning, or thunder.\",\n\t\t\t\">>Expert<<. Your Dexterity score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Fey<<. A fey crossing opens into the Feywild, and you're immediately pulled through it, disappearing in a flash of rainbow-colored light. You draw no more cards.\"+\n\t\t\t\"\\n   The fey crossing appears as a shimmering fractal of light above the deck, and it remains open for 1 minute after the card is drawn. The precise location in the Feywild to which the fey crossing leads is determined by the DM.\",\n\t\t\t\">>Fiend<<. A powerful Fiend appears in a nearby unoccupied space and offers you a deal.[[ The precise nature of this deal is up to the DM, but usually the Fiend offers some material reward in exchange for you and your allies completing a task for the Fiend.]] The Fiend is indifferent to you and can be bargained with; it keeps its side of any bargain it makes, though it might twist the wording of any agreement to suit its purposes. If attacked, or if negotiations fail and you refuse the Fiend's offer, it returns to its home plane.\",\n\t\t\t\">>Giant<<. You immediately grow 2d10 inches in height, and your hit point maximum and current hit points both increase by 20.\",\n\t\t\t\">>Humanoid<<. You can immediately choose to stop drawing from the deck, regardless of how many cards you initially declared.\",\n\t\t\t\">>Lance<<. All your ability scores increase by 1, to a maximum of 20.\",\n\t\t\t\">>Mage<<. Your Intelligence score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Map<<. At any time you choose within 1 year of drawing this card, you can mentally name or describe an object or individual that is familiar to you. You immediately know the location of the object or individual, as well as the distance between you and the object or individual, even if the object or individual is on a different plane of existence. If you named an individual, you know if they are alive and any conditions they have. If you named an object, you know if it is broken or not. If you named a magic item that has charges, you know how many charges it has remaining.\",\n\t\t\t\">>Maze<<. You gain 1d3 levels of exhaustion.\",\n\t\t\t\">>Mine<<. A pile of 2d6 gems (each worth 5,000 gp) and 1d10 chunks of precious ore (each worth 2,500 gp) appears at your feet.\"\n\t\t],\n\t\tcards2 : [\n\t\t\t\">>Monstrosity<<. A Large or larger Monstrosity with a challenge rating of 10 or less (chosen by the DM) appears in an unoccupied space within 15 feet of you. The creature is hostile toward you and attacks immediately. The creature disappears when it is killed or when you are reduced to 0 hit points. If there isn't enough space for a Large or larger creature to appear, this card has no effect.\",\n\t\t\t\">>Ooze<<. A gelatinous cube immediately appears in your space and engulfs you. The gelatinous cube is hostile and remains until it is destroyed. If there isn't enough space for the gelatinous cube to appear, this card has no effect.\",\n\t\t\t\">>Path<<. Your walking speed increases by 10 feet.\",\n\t\t\t\">>Pit<<. A pit opens beneath you. You plummet 3d6 \\xD7 10 feet, take damage from the fall, and have the prone condition.\",\n\t\t\t\">>Plant<<. You gain the ability to cast Speak with Plants without using a spell slot; you must finish a long rest before you can cast it this way again. If you have spell slots of 3rd level or higher, you can cast this spell using them. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Priest<<. Your Wisdom score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Prisoner<<. Glowing chains made of magical force appear and wrap around you. You have the restrained condition until the chains are destroyed or you are freed. While you have this condition, you can't cast spells, and any magic items you're wearing or carrying have their properties suppressed. You draw no more cards. The chains are immune to damage and can't be dispelled using the Dispel Magic spell or similar magic. However, a Disintegrate spell destroys the chains instantly, freeing you. Another creature can also free you by succeeding on a DC 30 Dexterity check using thieves' tools.\",\n\t\t\t\">>Ring<<. A rare or rarer magic ring appears on your finger. If you have the attunement slots available, you're automatically attuned to the ring when it appears. The DM chooses the ring.\",\n\t\t\t\">>Shield<<. A rare or rarer suit of magic armor that you are proficient with appears in your hands. The DM chooses the armor. If you lack proficiency with any armor, your base AC instead now equals 12 + your Dexterity modifier while you aren't wearing armor.\",\n\t\t\t\">>Ship<<. You gain proficiency in three skills chosen by the DM.\",\n\t\t\t\">>Staff<<. A rare or rarer magic rod, staff, or wand appears in your hands. The DM chooses the item.\",\n\t\t\t\">>Stairway<<. You can choose to either decrease your number of declared draws by two or receive a rare or rarer wondrous item, which appears in your hands. The DM chooses the item.\",\n\t\t\t\">>Statue<<. You immediately have the petrified condition as your body is transformed into marble. The petrification lasts until you are freed with the Greater Restoration spell or similar magic.\",\n\t\t\t\">>Tavern<<. Your Charisma score increases by 2 to a maximum of 22.\",\n\t\t\t\">>Temple<<. A deity or entity of similar power becomes bound to aid you. At any point in time between drawing the card and when you die, you can use your action to call on this entity for divine intervention, and the entity is bound to answer. The parameters and nature of this intervention are chosen by the DM. If you die without having used this intervention, the deity fulfills its obligation by casting the Resurrection spell on you. Once the entity has answered your call for divine intervention or resurrected you, the entity is no longer bound to aid you.\",\n\t\t\t\">>Tomb<<. At any time you choose within 1 year of drawing this card, you can cast the True Resurrection spell once without expending a spell slot or requiring material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Tower<<. Draw two additional cards beyond your declared number of draws. The magic of these cards doesn't immediately take effect; instead, choose one of the two additional cards to keep, returning the other to the deck. The magic of the card you keep takes effect immediately thereafter.\",\n\t\t\t\">>Tree<<. Your skin immediately becomes rough, like tree bark. Your base AC now equals 15 + your Dexterity modifier while you aren't wearing armor, but you have vulnerability to fire damage. This transformation can be undone only by the Wish spell, divine intervention, or similar magic.\",\n\t\t\t\">>Undead<<. Somewhere on the Material Plane, a revenant rises. This revenant blames you for its existence and relentlessly hunts you to exact its revenge. The revenant exists until either 1 year passes, the revenant kills you, or you use a Wish spell to banish it permanently to the afterlife.\",\n\t\t\t\">>Warrior<<. Your Strength score increases by 2 to a maximum of 22.\",\n\t\t\t\">>Well<<. You learn three cantrips of your choice from any spell list.\"\n\t\t]\n\t},\n\t\"deck of wild cards\" : [\n\t\t\"This deck of heavy vellum cards hums with the magic of the Elemental Chaos.\",\n\t\t\"The magic of the deck functions only if cards are drawn at random (a deck of real-world playing cards can simulate the deck). As an action, you can draw a random card from this deck and throw it to make a ranged spell attack, using Dexterity for the attack roll. The card has a range of 30 feet. On a hit, it deals 1d4 slashing damage and imposes a magical effect determined by its suit, as detailed in the table below. The card immediately returns to the deck after it hits or misses a target.\\n\",\n\t\t\"d4\\tSuit\\tEffect\",\n\t\t\" 1\\t\\u2663 (Rods)\\tThe card explodes in a burst of fire. The target and each creature within 5 feet of it must succeed on a DC 15 Dexterity saving throw or take 2d8 fire damage.\",\n\t\t\" 2\\t\\u2666 (Coins)\\tThe card shoots streaks of lightning. The target must make a DC 15 Dexterity saving throw. On a failed save, the target has the blinded condition until the end of your next turn, and each creature within 10 feet of the target takes 1d6 lightning damage.\",\n\t\t\" 3\\t\\u2665 (Cups)\\tThe card covers the target in a thick layer of ice. The target takes 1d10 cold damage and must succeed on a DC 15 Constitution saving throw or have the restrained condition until the end of your next turn.\",\n\t\t\" 4\\t\\u2660 (Swords)\\tThe card unleashes a sharp, concussive blast. The target and each creature within 5 feet of it take 1d6 force damage and must succeed on a DC 15 Strength saving throw or have the prone condition.\"\n\t],\n\t\"deck of wonder\" : {\n\t\tfeatures : [\n\t\t\t\"Created in the image of the Deck of Many Things, this deck of ivory or vellum cards bestows an assortment of minor benefits and penalties on those who draw from it. Most (75 percent) of these decks have only thirteen cards, but the rest have twenty-two.\",\n\t\t\t\"Before you draw a card, you must declare how many cards you intend to draw, then draw them randomly. Any additional cards drawn have no effect. Unless a card states otherwise, as soon as you draw a card from the deck, its magic takes effect. You must draw each card you declared no more than 1 hour after the previous draw. If you fail to draw the chosen number, the remaining number of cards fly from the deck and take effect simultaneously.\",\n\t\t\t\"Unless it is the Mystery card, a drawn card immediately takes effect, fades from existence, and reappears in the deck, making it possible to draw the same card multiple times.\",\n\t\t\t\"You can use an altered deck of playing cards to simulate the deck, as shown in the table below.\",\n\t\t\t\"\\n1d13\\t1d22\\tPlaying Card\\t\\tCard\",\n\t\t\t\"\\t   1\\t[A\\u2666] Ace of diamonds\\t\\tChancellor*\",\n\t\t\t\"1\\t   2\\t[K\\u2666] King of diamonds\\t\\tDay\",\n\t\t\t\"2\\t   3\\t[Q\\u2666] Queen of diamonds \\tNight\",\n\t\t\t\"3\\t   4\\t[J\\u2666] Jack of diamonds\\t\\tDawn\",\n\t\t\t\"\\t   5\\t[2\\u2666] Two of diamonds\\t\\tDusk*\",\n\t\t\t\"\\t   6\\t[A\\u2665] Ace of hearts\\t\\tDestiny*\",\n\t\t\t\"4\\t   7\\t[K\\u2665] King of hearts\\t\\tCrown\",\n\t\t\t\"5\\t   8\\t[Q\\u2665] Queen of hearts\\t\\tLock\",\n\t\t\t\"6\\t   9\\t[J\\u2665] Jack of hearts\\t\\tChampion\",\n\t\t\t\"\\t   10\\t[2\\u2665] Two of hearts\\t\\tCoin*\",\n\t\t\t\"\\t   11\\t[A\\u2663] Ace of clubs\\t\\tVulture*\",\n\t\t\t\"7\\t   12\\t[K\\u2663] King of clubs\\t\\tChaos\",\n\t\t\t\"8\\t   13\\t[Q\\u2663] Queen of clubs\\t\\tOrder\",\n\t\t\t\"9\\t   14\\t[J\\u2663] Jack of clubs\\t\\tBeginning\",\n\t\t\t\"\\t   15\\t[2\\u2663] Two of clubs\\t\\tMystery*\",\n\t\t\t\"\\t   16\\t[A\\u2660] Ace of spades\\t\\tIsolation*\",\n\t\t\t\"10\\t   17\\t[K\\u2660] King of spades\\t\\tEnd\",\n\t\t\t\"11\\t   18\\t[Q\\u2660] Queen of spades\\t\\tMonster\",\n\t\t\t\"12\\t   19\\t[J\\u2660] Jack of spades\\t\\tKnife\",\n\t\t\t\"\\t   20\\t[2\\u2660] Two of spades\\t\\tJustice*\",\n\t\t\t\"\\t   21\\tJoker (with TM)\\t\\tStudent*\",\n\t\t\t\"13\\t   22\\tJoker (no TM)\\t\\tMischief\\n\",\n\t\t\t\"* Found only in a deck with twenty-two cards\"\n\t\t],\n\t\tcards : [\n\t\t\t\">>Beginning<<. Your hit point maximum and current hit points increase by 2d10. Your hit point maximum remains increased in this way for the next 8 hours.\",\n\t\t\t\">>Champion<<. You gain a +1 bonus to weapon attack and damage rolls. This bonus lasts for 8 hours.\",\n\t\t\t\">>Chancellor<<. Within 8 hours of drawing this card, you can cast Augury once as an action, requiring no material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Chaos<<. You gain resistance to one of the following damage types (chosen by the DM): acid, cold, fire, lightning, or thunder. This resistance lasts for 1d12 days.\",\n\t\t\t\">>Coin<<. Five pieces of jewelry, each worth 100 gp, or ten gemstones, each worth 50 gp, appear at your feet.\",\n\t\t\t\">>Crown<<. You learn the Friends cantrip. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice). If you already know this cantrip, the card has no effect.\",\n\t\t\t\">>Dawn<<. This card invigorates you. For the next 8 hours, you can add your proficiency bonus to your initiative rolls.\",\n\t\t\t\">>Day<<. You gain a +1 bonus to saving throws. This benefit lasts until you finish a long rest.\",\n\t\t\t\">>Destiny<<. This card protects you against an untimely demise. The first time after drawing this card that you would drop to 0 hit points from taking damage, you instead drop to 1 hit point.\",\n\t\t\t\">>Dusk<<. This card supernaturally saps your energy. You have disadvantage on initiative rolls. This effect lasts until you finish a long rest, but it can be ended early by a Remove Curse spell or similar magic.\",\n\t\t\t\">>End<<. This card is an omen of death. You take 2d10 necrotic damage, and your hit point maximum is reduced by an amount equal to the damage taken. This effect can't reduce your hit point maximum below 10 hit points. This reduction lasts until you finish a long rest, but it can be ended early by a Remove Curse spell or similar magic.\",\n\t\t\t\">>Isolation<<. You disappear, along with anything you are wearing or carrying, and become trapped in a harmless extradimensional space for 1d4 minutes. You draw no more cards. You then reappear in the space you left or the nearest unoccupied space. When you reappear, you must succeed on a DC 11 Constitution saving throw or have the poisoned condition for 1 hour as your body reels from the extradimensional travel.\",\n\t\t\t\">>Justice<<. You momentarily gain the ability to balance the scales of fate. For the next 8 hours, whenever you or a creature within 60 feet of you is about to roll a d20 with advantage or disadvantage, you can use your reaction to prevent the roll from being affected by advantage or disadvantage.\",\n\t\t\t\">>Knife<<. An uncommon magic weapon you're proficient with appears in your hands. The DM chooses the weapon.\",\n\t\t\t\">>Lock<<. You gain the ability to cast Knock 1d3 times. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Mischief<<. You receive an uncommon wondrous item (chosen by the DM), or you can draw two additional cards beyond your declared draws.\",\n\t\t\t\">>Monster<<. This card's monstrous visage curses you. While cursed in this way, whenever you make a saving throw, you must roll 1d4 and subtract the number rolled from the total. The curse lasts until you finish a long rest, but it can be ended early with a Remove Curse spell or similar magic.\",\n\t\t\t\">>Mystery<<. You have disadvantage on Intelligence saving throws for 1 hour. Discard this card and draw from the deck again; together, the two draws count as one of your declared draws.\",\n\t\t\t\">>Night<<. You gain darkvision within a range of 300 feet. This darkvision lasts for 8 hours.\",\n\t\t\t\">>Order<<. You gain resistance to one of the following damage types (chosen by the DM): force, necrotic, poison, psychic, or radiant. This resistance lasts for 1d12 days.\",\n\t\t\t\">>Student<<. You gain proficiency in Wisdom saving throws. If you already have this proficiency, you instead gain proficiency in Intelligence or Charisma saving throws (your choice).\",\n\t\t\t\">>Vulture<<. One nonmagical item or piece of equipment in your possession (chosen by the DM) disappears. The item remains nearby but concealed for a short time, so it can be found with a successful DC 15 Wisdom (Perception) check. If the item isn't recovered within 1 hour, it disappears forever.\"\n\t\t]\n\t}\n}\n\nMagicItemsList[\"antimagic armor\"] = {\n\tname : \"Antimagic Armor\",\n\tnameTest : /antimagic.*armou?r/i,\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"While wearing this armor, once per dawn I can cast Antimagic Field, requiring no spell components. In addition, as a reaction once per dawn, I can give myself advantage on a saving throw I make against a spell.\",\n\tdescriptionFull : \"While wearing this armor, you can use your reaction to give yourself advantage on a saving throw you make against a spell. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   In addition, while you wear this armor, you can use it to cast Antimagic Field, requiring no spell components. Once this property is used, it can't be used again until the next dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Antimagic\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Antimagic\"]\n\t},\n\taction : [[\"reaction\", \"Adv. save vs. spell (1\\xD7 per dawn)\"]],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"antimagic field\"],\n\t\tselection : [\"antimagic field\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Adv. save vs. spell (Antimagic Armor)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Antimagic Field (Antimagic Armor)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tspellChanges : {\n\t\t\"antimagic field\" : {\n\t\t\tcomponents : \"\",\n\t\t\tcompMaterial : \"\",\n\t\t\tchanges : \"While wearing the armor, it requires no components to cast Antimagic Field.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"armor of fungal spores\"] = {\n\tname : \"Armor of Fungal Spores\",\n\tnameTest : \"of Fungal Spores\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (medium)\",\n\trarity : \"uncommon\",\n\tdescription : \"As a bonus action once per dawn while wearing this armor, I can make it emit poisonous spores. These spores fill a 10-ft radius sphere centered on myself. Each creature in that area must make a DC 15 Constitution save or be poisoned until the end of my next turn.\",\n\tdescriptionFull : \"While wearing this armor, you can take a bonus action to make the armor emit poisonous spores, which fill a 10-foot-radius sphere centered on yourself. Each creature in that area must succeed on a DC 15 Constitution saving throw or have the poisoned condition until the end of your next turn. Once this property is used, it can't be used again until the next dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/medium/i.test(inObj.type);\n\t\t}\n\t},\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"armor of the fallen\"] = {\n\tname : \"Armor of the Fallen\",\n\tnameTest : \"of the Fallen\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (medium or heavy)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"While wearing this armor, I can use it to cast either Animate Dead or Speak with Dead. Once the armor has cast a spell in this way, it can't cast either spell until the next dawn. My soul keeps this armor together. If I die while attuned to the armor, the armor is destroyed.\",\n\tdescriptionFull : \"While wearing this armor, you can use it to cast either Speak with Dead or Animate Dead. Once the armor has cast a spell in this way, it can't cast either spell until the next dawn.\"+\n\t\"\\n   Your soul keeps this armor together. If you die while you are attuned to the armor, the armor is destroyed.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy|medium/i.test(inObj.type);\n\t\t}\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"either or\",\n\t\tspells : [\"animate dead\", \"speak with dead\"],\n\t\tselection : [\"animate dead\", \"speak with dead\"],\n\t\tfirstCol : \"SP\",\n\t\ttimes : 2\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"armor of weightlessness\"] = {\n\tname : \"Armor of Weightlessness\",\n\tnameTest : \"of Weightlessness\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This armor has 5 charges, regaining 1d4+1 expended charges daily at dawn. As a bonus action while wearing it, I can expend 1 or more charges to cast Jump (1 charge) or Levitate (2 charges) on myself.\",\n\tdescriptionFull : \"This armor has 5 charges. While you wear it, you can use a bonus action to expend 1 or more charges to cast one of the following spells from the armor, targeting yourself: Jump (1 charge) or Levitate (2 charges).\"+\n\t\"\\n   This armor regains 1d4 + 1 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\n\t},\n\tusages : 5,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge (self only)\",\n\t\tspells : [\"jump\"],\n\t\tselection : [\"jump\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges (self only)\",\n\t\tspells : [\"levitate\"],\n\t\tselection : [\"levitate\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"jump\" : {\n\t\t\tname : \"Jump (self only)\",\n\t\t\ttime : \"1 bns\",\n\t\t\trange : \"Self\",\n\t\t\tdescription : \"My jump distance is tripled for the duration\",\n\t\t\tchanges : \"Using the Armor of Weightlessness, I can cast Jump as a bonus action, but only on myself.\"\n\t\t},\n\t\t\"levitate\" : {\n\t\t\tname : \"Levitate (self only)\",\n\t\t\ttime : \"1 bns\",\n\t\t\trange : \"Self\",\n\t\t\tsave : \"\",\n\t\t\tdescription : \"I float and move up vertically up to 20 ft; As part of my move each round, I can move up/down 20 ft\",\n\t\t\tchanges : \"Using the Armor of Weightlessness, I can cast Levitate as a bonus action, but only on myself.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"baleful talon\"] = {\n\tname : \"Baleful Talon\",\n\tsource : [[\"BoMT\", 34]], // Chapter 5: Gem\n\ttype : \"weapon (dagger)\",\n\trarity : \"very rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this hooked, obsidian dagger. When I hit a creature with it and roll a 19 or 20 to hit, the dagger flares with sickly light and deals +6d6 necrotic damage. The creature can make a DC 15 Con save to halve the damage. It turns to dust if this reduces its HP to 0.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this hooked, obsidian dagger.\"+\n\t\"\\n   When you hit a creature with this magic weapon and roll a 19 or 20 on the attack roll, the creature must make a DC 15 Constitution saving throw as the dagger flares with sickly light. The creature takes 6d6 necrotic damage on a failed save, or half as much on a successful one. If this damage reduces the creature to 0 hit points, the creature disintegrates into dust.\",\n\tweight : 1,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*baleful)(?=.*talon).*$/i,\n\t\tname : \"Baleful Talon\",\n\t\tsource : [[\"BoMT\", 34]],\n\t\tdescription : \"Finesse, light, thrown; Roll of 19-20: +6d6 necrotic damage, DC 15 Con save halves\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"blasted goggles\"] = {\n\tname : \"Blasted Goggles\",\n\tsource : [[\"BoMT\", 174]], // Chapter 20: Flames\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"These tinker's goggles have 3 charges, regaining 1d3 daily at dawn. As an action, I can use 1 charge to shoot a beam of light: a creature I can see within 120 ft must make a DC 15 Dexterity save or take 3d6 fire damage. If this is a natural 20, I'm blinded for 24 hours. Cursed: I can't remove these or end attunement.\",\n\tdescriptionFull : \"These tinker's goggles have 3 charges. As an action, you can expend 1 charge to shoot a beam of fiery light from the goggles at a creature you can see within 120 feet of yourself. The target must succeed on a DC 15 Dexterity saving throw or take 3d6 fire damage. The goggles regain 1d3 expended charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Cursed\") + \". The goggles are cursed, and becoming attuned to them extends the curse to you. You can't remove the goggles or end your attunement to them until you are targeted by a Remove Curse spell or similar magic.\"+\n\t\"\\n   Whenever you use the goggles' fiery beam and the target rolls a 20 on the d20 for the saving throw, the goggles expose you to a flash of violent bright light. As a result, you have the blinded condition for 24 hours.\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\"\n};\nMagicItemsList[\"bloodrage greataxe\"] = {\n\tname : \"Bloodrage Greataxe\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (greataxe)\",\n\trarity : \"uncommon\",\n\tdescription : \"I gain a +2 bonus to attack and damage rolls made with this magic greataxe while I have half my hit points or fewer.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic greataxe while you have half your hit points or fewer.\",\n\tweight : 7,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greataxe\",\n\t\tregExpSearch : /^(?=.*bloodrage)(?=.*(great|heavy|weida))(?=.*(axe|\\bono|\\bfu|masakari)s?\\b).*$/i,\n\t\tname : \"Bloodrage Greataxe\",\n\t\tsource : [[\"BoMT\", 66]],\n\t\tdescription : \"Heavy, two-handed; If I'm \\u2264 \\u00BD HP: +2 to hit \\u0026 damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"bloodseeker ammunition\"] = {\n\tname : \"Bloodseeker Ammunition\",\n\tnameTest : \"Bloodseeker\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"very rare\",\n\tdescription : \"Ranged attack rolls made with this magic ammunition have advantage against any creature doesn't have all its hit points.\",\n\tdescriptionFull : \"Ranged attack rolls made with this ammunition have advantage against any creature doesn't have all its hit points.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"boomerang shield\"] = {\n\tname : \"Boomerang Shield\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"shield\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"I can make a ranged weapon attack with this magic shield. It reappears in my hand the instant after it hits or misses a target. It has a range of 20 ft and a long range of 60 ft, uses Strength or Dexterity (my choice), I add my proficiency bonus if I'm proficient with shields, and it deals 1d6 slashing damage.\",\n\tdescriptionFull : \"You can make a ranged weapon attack with this magic shield. It has a normal range of 20 feet and a long range of 60 feet, and it uses your Strength or Dexterity for the attack roll (your choice). If you're proficient with shields, you are proficient with attacks made using this shield. On a hit, it deals 1d6 slashing damage. If you throw the shield, it reappears in your hand the instant after it hits or misses a target.\",\n\tweight : 6,\n\tshieldAdd : \"Boomerang Shield\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*boomerang)(?=.*shield).*$/i,\n\t\tname : \"Boomerang Shield\",\n\t\tsource : [[\"BoMT\", 66]],\n\t\tability : 1,\n\t\ttype : \"Shield\",\n\t\tdamage : [1, 6, \"slashing\"],\n\t\trange : \"20/60 ft\",\n\t\tweight : 6,\n\t\tdescription : \"Finesse, thrown; Reappears instantly\", // Not actually finesse, but easier to code this way and shouldn't cause any issues\n\t\tabilitytodamage : true,\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.theWea.name === \"Boomerang Shield\" && tDoc.getField(\"Proficiency Shields\").isBoxChecked(0)) {\n\t\t\t\t\tfields.Proficiency = true;\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n};\nMagicItemsList[\"bow of conflagration\"] = {\n\tname : \"Bow of Conflagration\",\n\tnameTest : \"of Conflagration\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any bow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"Ammunition fired from this bow blazes brightly. When I hit with an attack roll using this bow, the target takes an extra 1d6 fire damage. If the target is a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of my turns until a creature uses an action to extinguish the flames.\",\n\tdescriptionFull : \"Ammunition fired from this bow blazes brightly. When you hit with an attack roll using this bow, the target takes an extra 1d6 fire damage. If the target is a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of your turns until a creature uses an action to extinguish the flames.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /conflagration/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 fire damage; ignites target object';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Conflagration\" in the name of a bow, it will be treated as the magic weapon Bow of Conflagration. The bow deals an extra 1d6 fire damage. If I target and hit a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of my turns until a creature uses an action to extinguish the flames.'\n\t\t]\n\t}\n};\nMagicItemsList[\"bow of melodies\"] = {\n\tname : \"Bow of Melodies\",\n\tnameTest : \"of Melodies\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any bow)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This bow has multiple strings. I can use these to play one of two melodies on each attack, imbuing it with magic. Melody of Precision: If I'm proficient with Performance, I add +1 (+2 if expertise) to the attack roll. Melody of Reverberation: the attack deals my Charisma modifier in extra thunder damage.\",\n\tdescriptionFull : \"This bow has multiple strings and resembles a lyre or small harp. By strumming the strings while setting an arrow to the bow, you imbue the arrow with magic.\"+\n\t\"\\n   You can play one of the following melodies when you use the bow to make a ranged weapon attack. You must choose to do so before you make the attack roll, and you can play only one melody per attack.\"+\n\t\"\\n   \" + toUni(\"Melody of Precision\") + \". If you're proficient in Performance, you gain a +1 bonus to the attack roll. If you have expertise in Performance, you gain a +2 bonus instead.\"+\n\t\"\\n   \" + toUni(\"Melody of Reverberation\") + \". The melody you strum echoes loudly. On a hit, the target takes extra thunder damage equal to your Charisma modifier.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tvar chaMod = Number(What('Cha Mod'));\n\t\t\t\t// Only add a description if positive Cha Mod and Melody of Precision is not an option or Reverberation is part of the name\n\t\t\t\tif (!v.theWea.isMagicWeapon && chaMod > 0 && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*melod(ies|y))(?!.*precision).*$/i.test(v.WeaponTextName) && (/reverberation/i.test(v.WeaponTextName) || !hasSkillProf(\"Performance\")[0])) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+' + chaMod + ' (Cha mod) thunder damage';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Melody\" or \"Melodies\" in the name of a bow, it will be treated as the magic weapon Bow of Melodies. If I also include either \"Precision\" or \"Reverberation\" in the name, the respective bonus will be added. if I include neither of those in the name, the bonus will be determined automatically, the Melody of Precision if proficient with Performance (+1 or +2 bonus to hit) or Melody of Reverberation otherwise (+Cha mod thunder damage).'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\t// Add to hit bonus if name doesn't include Reverberation. Will be zero if not proficient in Performance\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*melod(ies|y))(?!.*reverberation).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tvar perfProf = hasSkillProf(\"Performance\");\n\t\t\t\t\toutput.extraHit += perfProf[1] ? 2 : perfProf[0] ? 1 : 0;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"breastplate of balance\"] = {\n\tname : \"Breastplate of Balance\",\n\tsource : [[\"BoMT\", 34]], // Chapter 5: Gem\n\ttype : \"armor (breastplate)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This burnished copper breastplate with merchant's scales on the chest has 4 charges, regaining 1d4 at dawn. As a reaction when I or another I can see within 60 ft is about to roll a d20 with (dis)advantage, I can use 1 charge to prevent this (dis)advantage. As a bonus action, I can use 2 charges to cast Lesser Restoration.\",\n\tdescriptionFull : \"This burnished copper breastplate looks as if it were made of interlocking gears. Merchant's scales are emblazoned across the chest.\"+\n\t\"\\n   The armor has 4 charges. You can use the charges in the following ways while wearing the armor:\"+\n\t\"\\n   \" + toUni(\"Equalize\") + \". When you or a creature you can see within 60 feet of yourself is about to roll a d20 with advantage or disadvantage, you can expend 1 charge and take a reaction to prevent the roll from being affected by advantage or disadvantage.\"+\n\t\"\\n   \" + toUni(\"Expunge Imbalance\") + \". As a bonus action, you can expend 2 charges to cast the Lesser Restoration spell from the armor.\"+\n\t\"\\n   The armor regains 1d4 expended charges daily at dawn.\",\n\tweight : 20,\n\taction : [[\"reaction\", \" (if dis./adv.)\"]],\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\",\n\tarmorAdd : {\n\t\tselect : \"Breastplate of Balance\",\n\t\toptions : [\"Breastplate of Balance\"]\n\t},\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"2 charges\",\n\t\tspells : [\"lesser restoration\"],\n\t\tselection : [\"lesser restoration\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"lesser restoration\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"While wearing the armor, I can use 2 of its charges to cast Lesser Restoration as a bonus action.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"card sharp's deck\"] = {\n\tname : \"Card Sharp's Deck\",\n\tsource : [[\"BoMT\", 40]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : 'The cards of this deck shimmer around the edges. As an action, I can throw a card as ranged spell attack using Dexterity. This \"Deadly Deal\" attack has 120 ft range and deals 1d8 force damage. As an action once per dawn, I can shuffle the deck to cast Spray of Cards at 3rd level with it (save DC 15).',\n\tdescriptionFull : \"The cards of this deck shimmer around the edges. While holding this deck, you can use the following properties:\"+\n\t\"\\n   \" + toUni(\"Deadly Deal\") + \". As an action, you can use this deck to make a ranged spell attack by throwing a spectral card and using Dexterity for the attack roll. The card has a range of 120 feet and deals 1d8 force damage on a hit.\"+\n\t\"\\n   \" + toUni(\"Spray of Cards\") + \". As an action, you can shuffle the deck and cast the Spray of Cards spell at 3rd level from the deck (spell save DC 15). Once the deck has cast the spell, it can't cast the spell again until the next dawn.\",\n\taction : [[\"action\", \"\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*deadly)(?=.*deal).*$/i,\n\t\tname : \"Deadly Deal\",\n\t\tsource : [[\"BoMT\", 40]],\n\t\tability : 2,\n\t\ttype : \"Spell\",\n\t\tdamage : [1, 8, \"force\"],\n\t\trange : \"120 ft\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false,\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Spray of Cards\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"spray of cards\"],\n\t\tselection : [\"spray of cards\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"spray of cards\" : {\n\t\t\tdescription : \"All in area 3d10 Force dmg and blinded until their next turn ends; save halves \\u0026 not blinded\",\n\t\t\tdescriptionShorter : false,\n\t\t\tchanges : \"Using Card Sharp's Deck I can cast Spray of Cards at 3rd level once per dawn.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"clockwork armor\"] = {\n\tname : \"Clockwork Armor\",\n\tnameTest : /clockwork.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"The outside surface and internal joints of this armor whir with interlocking gears, drawing on the magic of the plane of Mechanus. The armor has 4 charges and regains 1d4 used charges daily at dawn. If I make a d20 roll while wearing it, I can expend 1 charge to change the number rolled to a 10.\",\n\tdescriptionFull : \"The outside surface and internal joints of this armor whir with interlocking gears, drawing on the orderly magic of the plane of Mechanus.\"+\n\t\"\\n   The armor has 4 charges. If you make a d20 roll while wearing this armor, you can expend 1 charge to change the number rolled to a 10. The armor regains 1d4 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Clockwork\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Clockwork\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy/i.test(inObj.type);\n\t\t}\n\t},\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\"\n};\nMagicItemsList[\"crown of whirling comets\"] = {\n\tname : \"Crown of Whirling Comets\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This crown has 6 charges, regaining 1d6 at dawn. As a bonus action, I can use 1 charge to fly my walking speed and hover, for 10 min. I can use 3 charges to cast Ice Storm (DC 16). As an action, I can launch one frigid starlight bolt per charge used, that each deal 2d4 cold damage to a creature I can see within 120 ft.\",\n\tdescriptionLong : \"This delicate silver tiara decorated with stellar iconography has gems on the tiara's points that detach and closely orbit my head. It has 6 charges, regaining 1d6 used charges daily at dawn. As a bonus action, I can use 1 charge to gain a flying speed equal to my walking speed and I can hover, for 10 minutes. As an action, I can expend any number of charges to launch one frigid starlight bolt per charge used to a creature I can see within 120 ft. Each bolt automatically hits and deals 2d4 cold damage. Bolts can be used to hit the same or different targets. As an action, I can use 3 charges to cast Ice Storm (save DC 16).\",\n\tdescriptionFull : \"This delicate silver tiara is decorated with stellar iconography. While you wear the crown, the gems on the tiara's points detach and closely orbit your head.\"+\n\t\"\\n   The crown has 6 charges for the following properties, which you can use while wearing the crown:\"+\n\t\"\\n   \" + toUni(\"Star Flight\") + \". As a bonus action, you can spend 1 charge to gain the power of flight for 10 minutes. For the duration, you gain a flying speed equal to your walking speed, and you can hover. While flying, you glow faintly with starlight.\"+\n\t\"\\n   \" + toUni(\"Starlight Strike\") + \". As an action, you can spend any number of charges to launch bolts of frigid starlight. You launch a number of bolts equal to the number of charges spent, and you can direct the bolts to target one creature or several, so long as all creatures are within 120 feet of you and you can see them. The bolts automatically strike their targets, and each bolt deals 2d4 cold damage.\"+\n\t\"\\n   \" + toUni(\"Whirling Hail\") + \". As an action, you can spend 3 charges and cast the Ice Storm spell (save DC 16).\"+\n\t\"\\n   The crown regains 1d6 expended charges daily at dawn.\",\n\taction : [[\"bonus action\", \" (fly)\"], [\"action\", \" (bolts)\"]],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\tfixedDC : 16,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"3 charges\",\n\t\tspells : [\"ice storm\"],\n\t\tselection : [\"ice storm\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"deck of dimensions\"] = {\n\tname : \"Deck of Dimensions\",\n\tsource : [[\"BoMT\", 40]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This deck has 6 charges, regaining 1d6 used at dawn. As a bonus action, I can use 1 charge to throw a card to an empty spot either within 60 ft and teleport to it, or within 5 ft and teleport to it once in the next 8 hours as an action. I can use 3 charges to cast Arcane Gate, but can't use the deck while the gate is active.\",\n\tdescriptionLong : \"These cards are decorated with intricate designs of different planes of existence. The deck has 6 charges, regaining 1d6 used charges daily at dawn. As a bonus action, I can use 1 charge to throw a card to an empty space either within 60 ft and teleport to it now, or within 5 ft and leave it there to use an action within the next 24 hours to speak the card's name and teleport to it. Once I teleport to a card, or 8 hours passed, the card vanishes and returns to the deck. As an action, I can use 3 charges to cast Arcane Gate, but the fluttering cards of the deck make up the gate, rendering the deck useless while it's active.\",\n\tdescriptionFull : \"The backs of the cards in this deck are decorated with intricate designs representing different planes of existence. The deck has 6 charges. While holding it, you can expend 1 or more of its charges to use the following properties:\"+\n\t\"\\n   \" + toUni(\"Marked Card\") + \". As a bonus action, you can expend 1 charge to draw a card from the deck and place it in an unoccupied space within 5 feet of you. The card then becomes marked with an invisible sigil. Once within the next 24 hours, as an action, you can speak the marked card's name and teleport to the card's location, along with any equipment you are wearing or carrying, appearing in the closest unoccupied space to the card. After you teleport in this way, or after 8 hours, the card returns to the deck, and the mark on it fades.\"+\n\t\"\\n   \" + toUni(\"Riffling Portal\") + \". As an action, you can expend 3 charges to cast the Arcane Gate spell from the deck. The deck vanishes, and fluttering cards create the spell's portal rings. When the spell ends, the deck reappears in your possession.\"+\n\t\"\\n   \" + toUni(\"Shuffling Stride\") + \". As a bonus action, you can expend 1 charge to throw a card from the deck to an unoccupied space within 60 feet of yourself and teleport, along with any equipment you're wearing or carrying, to that space. The card then vanishes and returns to the deck.\"+\n\t\"\\n   The deck regains 1d6 expended charges daily at dawn.\",\n\taction : [[\"bonus action\", \" (throw card)\"], [\"action\", \" (teleport back)\"]],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"3 charges\",\n\t\tspells : [\"arcane gate\"],\n\t\tselection : [\"arcane gate\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"deck of many more things\"] = {\n\tname : \"Deck of Many More Things\",\n\tsource : [[\"BoMT\", 51]], // Chapter 7: Sage\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tdescription : \"Before drawing cards from this deck, I must declare how many I wish to draw and then draw that number randomly. Any cards drawn in excess have no effect. When a card is drawn, its magic takes effect, it fades from existence, and, unless the card is the Fool or the Jester, reappears in the deck. See Notes page.\",\n\tdescriptionFull : \"Over the centuries since the first Deck of Many Things was created, many have sought and failed to replicate it. But some have created new cards. These forty-four additional cards are known collectively as the Deck of Many More Things. (More information on creating new cards for this deck appears in chapter 2.)\"+\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].features) +\n\t\"\\n\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].cards) +\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].cards2),\n\ttoNotesPage : [{\n\t\tname : \"Features and Table\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].features)\n\t}, {\n\t\tname : \"Cards and Their Effects, part 1\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].cards, \"\\n\\u2022 \").replace(/Use my Int/g, \"I use my Int\").replace(/at my ft/ig, \"my feet\")\n\t}, {\n\t\tname : \"Cards and Their Effects, part 2\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].cards2, \"\\n\\u2022 \").replace(/Use my Int/g, \"I use my Int\").replace(/I'm not/g, \"not\")\n\t}, {\n\t\tname : \"Deck of Many Things' Cards and Effects\",\n\t\tsource : MagicItemsList[\"deck of many things\"].source,\n\t\tnote : MagicItemsList[\"deck of many things\"].toNotesPage[1].note\n\t}]\n};\nMagicItemsList[\"deck of miscellany\"] = {\n\tname : \"Deck of Miscellany\",\n\tsource : [[\"BoMT\", 41]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Each card of the 32 cards in this wooden box has an illustration of a different item or set of items. As an action, I can pick a card and throw it in an empty space within 5 ft. There it transforms into the item(s) depicted. See the table on the Notes page for the items and the associated real-world playing cards.\",\n\tdescriptionFull : \"This wooden box contains a set of thirty-two parchment cards.\"+\n\t\"\\n   The face of each card bears an illustration of a different item or set of items. As an action, you can draw a card of your choice from the deck and throw it to the ground in an unoccupied space within 5 feet of yourself. When the card hits the ground, the card permanently transforms into the item or set of items depicted on its face. An altered deck of real-world playing cards can simulate the deck, as shown in the table below.\\n\\n\" + BoMT[\"deck of miscellany\"].join(\"\\n\"),\n\taction : [[\"action\", \"\"]],\n\ttoNotesPage : [{\n\t\tname : \"Cards and Their Items\",\n\t\tnote : \"\\n   This wooden box contains a set of thirty-two parchment cards. The face of each card bears an illustration of a different item or set of items. As an action, I can pick a remaining card and throw it to the ground in an unoccupied space within 5 ft. When the card hits the ground, the card permanently transforms into the item or set of items depicted on its face.\"+\n\t\tBoMT.to1stPerson(\"\\nUsed\\t\" + BoMT[\"deck of miscellany\"].join(\"\\n  \\u2610\\t\")) // empty ballet box\n\t}]\n};\nMagicItemsList[\"deck of oracles\"] = {\n\tname : \"Deck of Oracles\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"If I spend 10 minutes consulting this deck of oracle cards when I finish a long rest, I can roll a d20 and record result. Once in the next 8 hours after a creature within 60 ft makes a check, attack roll, or save, I can use my reaction to have it use the number I rolled instead. Once per dawn, I can use these to cast Divination.\",\n\tdescriptionFull : \"The illustrations on this deck of oracle cards move or change subtly when viewed indirectly. When you finish a long rest, you can spend 10 minutes consulting the cards for an omen of the coming day. Roll a d20 and record the number rolled. Once in the next 8 hours, immediately after a creature within 60 feet of you makes an ability check, an attack roll, or a saving throw, you can use your reaction to discard the d20 roll; the creature must use the number you rolled in place of its roll.\"+\n\t\"\\n   Additionally, while holding the cards, you can cast Divination from them. Once this property is used, it can't be used again until the next dawn.\",\n\taction : [[\"reaction\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Divination\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"divination\"],\n\t\tselection : [\"divination\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"deck of wild cards\"] = {\n\tname : \"Deck of Wild Cards\",\n\tsource : [[\"BoMT\", 41]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As an action, I can draw a random card from this deck of heavy vellum cards and throw it. I make a ranged spell attack using Dex with a range of 30 ft, dealing 1d4 slashing damage on a hit and one of four magical effects depending on the card drawn, see Notes page. The thrown card returns to the deck after the attack.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"deck of wild cards\"]),\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*deck)(?=.*wild)(?=.*cards?).*$/i,\n\t\tname : \"Deck of Wild Cards\",\n\t\tsource : [[\"BoMT\", 41]],\n\t\tability : 2,\n\t\ttype : \"Spell\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Also random effect on hit, see Notes page\",\n\t\tabilitytodamage : false,\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Random Card Effects\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wild cards\"])\n\t}]\n};\nMagicItemsList[\"deck of wonder\"] = {\n\tname : \"Deck of Wonder\",\n\tsource : [[\"BoMT\", 55]], // Chapter 7: Sage\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Before drawing cards from this deck, I must declare how many I wish to draw and then draw that number randomly. Any cards drawn in excess have no effect. When a card is drawn, its magic takes effect and then it fades from existence and reappears in the deck. See Notes page.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"deck of wonder\"].features) + \"\\n\\n   \" + BoMT.toDescrFull(BoMT[\"deck of wonder\"].cards),\n\ttoNotesPage : [{\n\t\tname : \"Features and Table\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wonder\"].features)\n\t}, {\n\t\tname : \"Cards and Their Effects\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wonder\"].cards, \"\\n\\u2022 \")\n\t}]\n};\nMagicItemsList[\"donjon's sundering sphere\"] = {\n\tname : \"Donjon's Sundering Sphere\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"Attuning to this marble-size crystal sphere includes attaching it to a nonmagical melee weapon, that then becomes magical +1. It grants me adv. on saves vs. being send to another dimension. Once per dawn when I hit a creature, I can have it make a DC 16 Cha save or be stuck in a demiplane until its next turn ends.\",\n\tdescriptionLong : \"Attuning to this marble-size crystal sphere includes attaching it to the hilt of a nonmagical melee weapon weapon, that then becomes a magic weapon with a +1 bonus to attack and damage rolls. While wielding it, I have advantage on save against being send to an extradimensional space or another plane of existence. Once per dawn when I hit a creature with this weapon, I can have it make a DC 16 Charisma save or be banished to a harmless demiplane until its next turn ends. It returns to the space it left, or the nearest empty space. When I end my attunement to the sphere, it detaches from the weapon.\",\n\tdescriptionFull : \"This marble-size crystal sphere glows with extraplanar energy.\"+\n\t\"\\n   As part of attuning to this item, you press the crystal sphere to the hilt of a nonmagical melee weapon of your choice, magically attaching the sphere to the weapon. The weapon becomes a magic weapon with a +1 bonus to attack and damage rolls. While wielding this weapon, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Dimensional Anchor\") + \". You have advantage on saving throws against spells or effects that would send you to an extradimensional space, a demiplane, or another plane of existence against your will.\"+\n\t\"\\n   \" + toUni(\"Isolating Smite\") + \". When you hit a creature with this weapon, you can force the creature to make a DC 16 Charisma saving throw. On a failed save, the creature is banished to a harmless demiplane until the end of its next turn. When the banished creature returns, it reappears in the space it left or the nearest unoccupied space if that space is occupied. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   When you end your attunement to the sphere, the sphere harmlessly detaches from the weapon, and the weapon reverts to a nonmagical piece of equipment.\",\n\tsavetxt : {\n\t\tadv_vs : [\"being send to other plane/dimension\"]\n\t},\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Banish\",\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /\\bdonjon'?s\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Donjon\\'s\" in the name of a melee weapon, it will be treated as a melee weapon with the Donjon\\'s Sundering Sphere attached. It adds a +1 bonus to attack and damage rolls made with it.'\n\t\t]\n\t}\n};\nMagicItemsList[\"dried leech\"] = {\n\tname : \"Dried Leech\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"uncommon\",\n\tdescription : \"If a creature is hit by this magic ammunition, the leech animates and attaches to the target, dealing 1d4 piercing damage at the start of each of their turns. The leech detaches if it deals at least 10 damage or the target dies. Anyone can use their action to detach a leech. A detached leech dies and turns nonmagical.\",\n\tdescriptionFull : \"This leech has been dried and imbued with a mote of animating magic. If you hit a creature with a ranged attack roll using this ammunition, the leech springs to life and sinks its teeth into the target, dealing 1d4 piercing damage at the start of each of the target's turns. If the leech deals at least 10 damage or the target dies, the leech falls off. A creature, including the target, can use its action to detach the leech. Once a leech is no longer attached to its target, the leech dies and is no longer magical.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"euryale's aegis\"] = {\n\tname : \"Euryale's Aegis\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This brass shield grants me poison resistance and petrification immunity. I can use it to cast 3 spells, each once per dawn. As a bonus action once per dawn, a target I can see within 30 ft must make a DC 20 Con save or be restrained until its next turn starts, at which point it must save again or be petrified for 24 hours.\",\n\tdescriptionLong : \"This gleaming brass shield bears a relief of the legendary medusa druid Euryale. It grants me poison resistance and immunity to being petrified. I can use it to cast 3 spells, each once per dawn: Lesser Restoration, Locate Creature, and Transport via Plants.\\nAs a bonus action once per dawn, I can try to petrify a creature I can see within 30 ft. It must make a DC 20 Constitution save or be restrained while its body turns to stone. When its next turn starts, it must then make a DC 20 Constitution save again or be petrified for 24 hours. On a successful save, the restrained condition ends.\",\n\tdescriptionFull : \"This gleaming brass shield bears a relief of the legendary medusa druid Euryale.\"+\n\t\"\\n   While wielding this shield, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Blessing of Euryale\") + \". You have resistance to poison damage and are immune to the petrified condition.\"+\n\t\"\\n   \" + toUni(\"Petrifying Heraldry\") + \". As a bonus action, you can make the front of the shield flare with a medusa's petrifying magic, causing the relief's eyes to glow brightly. Choose one creature you can see within 30 feet of you. The creature must succeed on a DC 20 Constitution saving throw, or it has the restrained condition as its body turns to stone. The restrained creature must make another DC 20 Constitution saving throw at the start of its next turn. On a failed save, the creature has the petrified condition for 24 hours. On a successful save, the restrained condition ends. Once this bonus action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". While wielding the shield, you can use an action to cast one of the following spells from it: Lesser Restoration, Locate Creature, Transport via Plants. Once you use the shield to cast a spell, the shield can't cast that spell again until the next dawn.\",\n\tweight : 6,\n\taction : [[\"bonus action\", \" - Petrify\"]],\n\tshieldAdd : \"Euryale's Aegis\",\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\timmune : [\"petrified\"]\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"lesser restoration\", \"locate creature\", \"transport via plants\"],\n\t\tselection : [\"lesser restoration\", \"locate creature\", \"transport via plants\"],\n\t\tfirstCol : \"oncelr\",\n\t\ttimes : 3\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Euryale's Aegis - Petrify\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Euryale's Aegis (each spell once)\",\n\t\tusages : 3,\n\t\trecovery : \"dawn\"\n\t}]\n};\nMagicItemsList[\"fabulist gem\"] = {\n\tname : \"Fabulist Gem\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can use this glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\",\n\tdescriptionFull : \"This glittering red gem is commonly found embedded in a ring or brooch.\"+\n\t\"\\n   While wearing the gem, you gain the following benefits.\"+\n\t\"\\n   \" + toUni(\"Counterfeit Coins\") + \". You can use your action to magically create a pile of coins, worth no more than 100 gp total, in an unoccupied space within 10 feet of yourself. The pile must appear on a surface that can support it. After 1 hour, the coins vanish, regardless of where they are. Once this action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Illusory Fashion\") + \". As a bonus action, you can magically change the appearance of your clothing and armor. You can change the style, color, and apparent quality of what you're wearing, or you can make it appear as if you were wearing different garments entirely. In either case, the changes wrought by this magic fail to pass physical inspection.\",\n\taction : [[\"action\", \" - Counterfeit Coins\"], [\"bonus action\", \" - Illusory Fashion\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Fabulist Gem - Counterfeit Coins\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tchoices : [\"Brooch\", \"Ring\"],\n\t\"brooch\" : {\n\t\tname : \"Fabulist Gem Brooch\",\n\t\tdescription : \"As a bonus action, I can use this brooch's glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\"\n\t},\n\t\"ring\" : {\n\t\tname : \"Fabulist Gem Ring\",\n\t\ttype : \"ring\",\n\t\tdescription : \"As a bonus action, I can use this ring's glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\"\n\t}\n};\nMagicItemsList[\"fate cutter shears\"] = {\n\tname : \"Fate Cutter Shears\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"weapon (dagger)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"The blades of these pruning shears bear many nicks and dents but still cut cleanly. They function as a magic dagger that deal +1d6 force damage. Once per dawn when I hit a creature with them, I can cut their fate. Until that target finishes a long rest, attack rolls against them score a critical hit on a roll of 19 or 20.\",\n\tdescriptionFull : \"The blades of these pruning shears bear many nicks and dents but still cut cleanly. The shears function as a magic dagger. The weapon has the following properties:\"+\n\t\"\\n   \" + toUni(\"Ever Sharp\") + \". When you hit with an attack using the shears, the target takes an extra 1d6 force damage.\"+\n\t\"\\n   \" + toUni(\"Sever Threads\") + \". When you hit a creature with the shears, you can cut that creature's fate. Until the target finishes a long rest, attack rolls against it score a critical hit on a roll of 19 or 20 on the d20. Once this property is used, it can't be used again until the next dawn.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Sever Threads\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*fate)(?=.*cutt(er|ing))(?=.*(shears?|dagger)).*$/i,\n\t\tname : \"Fate Cutter Shears\",\n\t\tsource : [[\"BoMT\", 61]],\n\t\tdescription : \"Finesse, light, thrown; +1d6 force damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"fate dealer's deck\"] = {\n\tname : \"Fate Dealer's Deck\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\n\tprereqeval : function (v) { return classes.known.paladin || classes.known.cleric ? true : false; },\n\tdescription : \"While holding this deck, I can use it as a spellcasting focus and I gain a bonus to my spell attack rolls and spell save DC determined by its rarity: rare (+1), very rare (+2), or legendary (+3). As an action, I can draw a card and expend and roll one HD to heal or deal radiant damage to a creature within 30 ft I can see, equal to the roll and the deck's bonus.\",\n\tdescriptionFull : \"The backs of these cards are inscribed with glyphs representing the Inner Planes, the Outer Planes, or the holy symbols of various deities. While holding this deck, you can use it as a spellcasting focus, and you gain a bonus to spell attack rolls and to your spell save DC. The bonus is determined by the deck's rarity: rare (+1), very rare (+2), or legendary (+3).\"+\n\t\"\\n   In addition, while you're holding the deck, you can draw a card as an action to expend and roll one of your Hit Dice and add the deck's bonus to the number rolled. One creature you can see within 30 feet of you either takes radiant damage or regains hit points (your choice) equal to the total.\",\n\tchoices : [\"+1 Fate Dealer's Deck (rare)\", \"+2 Fate Dealer's Deck (very rare)\", \"+3 Fate Dealer's Deck (legendary)\"],\n\t\"+1 fate dealer's deck (rare)\" : {\n\t\tname : \"Fate Dealer's Deck +1\",\n\t\tnameTest : \"+1 Fate Dealer's Deck\",\n\t\trarity : \"rare\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +1 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +1.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 1;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t},\n\t\"+2 fate dealer's deck (very rare)\" : {\n\t\tname : \"Fate Dealer's Deck +2\",\n\t\tnameTest : \"+2 Fate Dealer's Deck\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +2 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +2.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 2;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t},\n\t\"+3 fate dealer's deck (legendary)\" : {\n\t\tname : \"Fate Dealer's Deck +3\",\n\t\tnameTest : \"+3 Fate Dealer's Deck\",\n\t\trarity : \"legendary\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +3 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +3.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 3;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t}\n};\nMagicItemsList[\"feywrought armor\"] = {\n\tname : \"Feywrought Armor\",\n\tnameTest : /feywrought.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"While wearing this colorful, flowery armor that was forged in the Feywild, I have advantage on saves to avoid or end the charmed condition on myself. The armor has 3 charges and regains 1d3 used charges daily at dawn. As an action, I can use 1 charge to cast Compulsion (save DC 15) from it.\",\n\tdescriptionFull : \"This colorful, flowery armor was forged in the Feywild and is infused with that plane's captivating magic.\"+\n\t\"\\n   While wearing this armor, you have advantage on saving throws you make to avoid or end the charmed condition on yourself.\"+\n\t\"\\n   This armor has 3 charges. You can use an action to expend a charge to cast the Compulsion spell (save DC 15) from this armor. The armor regains 1d3 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Feywrought\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Feywrought\"]\n\t},\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tsavetxt : { adv_vs : [\"charmed\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"compulsion\"],\n\t\tselection : [\"compulsion\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"fool's blade\"] = {\n\tname : \"Fool's Blade\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"weapon (any sword)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action once per dawn, I can use this weapon +2 to feint a target within 5 ft, giving me adv. on attacks vs. it until my next turn starts. As a reaction once per dawn when a creature within 60 ft attacks me, I can have it make a DC 15 Int save or have it target another of my choice within its reach.\",\n\tdescriptionLong : \"This magic weapon appears ordinary, but bears strong illusion magic that allows me to deceive opponents. I have a +2 bonus to attack and damage rolls with it.\\nFool's Feint: As a bonus action once per dawn, I can feint a creature within 5 ft, giving me advantage on attack rolls against it until the start of my next turn.\\nMisdirect: As a reaction once per dawn when a creature within 60 ft targets me with an attack roll, I can have it make a DC 15 Intelligence save. On a failed save, the attack instead targets another creature of my choice that is within the attacker's reach.\",\n\tdescriptionFull : \"This weapon appears ordinary, but it bears strong illusion magic that allows its wielder to skillfully deceive opponents.\"+\n\t\"\\n   You have a +2 bonus to attack and damage rolls made with this magic weapon. While wielding it, you also gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Fool's Feint\") + \". As a bonus action, you can feint, choosing a creature within 5 feet of you as your target. Until the start of your next turn, you have advantage on attack rolls against the target. Once this bonus action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Misdirect\") + \". When a creature within 60 feet of you targets you with an attack roll, you can use your reaction to require that creature to make a DC 15 Intelligence saving throw. On a failed save, the attack instead targets another creature of your choice that is within the attacker's reach. Once this reaction has been used, it can't be used again until the next dawn.\",\n\taction : [[\"bonus action\", \" - Feint\"], [\"reaction\", \" - Misdirect\"]],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"brackets\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\titemName1stPage : [\"suffix\", \"Fool's\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /\\bfool'?s\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Fool\\'s\" in the name of a sword, it will be treated as the magic weapon Fool\\'s Blade. It adds a +2 bonus to attack and damage rolls made with it.'\n\t\t]\n\t}\n};\nMagicItemsList[\"forcebreaker weapon\"] = {\n\tname : \"Forcebreaker Weapon\",\n\tnameTest : \"Forcebreaker\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (any that deals bludgeoning damage)\",\n\trarity : \"very rare\",\n\tdescription : \"This magic weapon gives +2 to hit and damage. It was crafted to destroy structures made of magical force, such as a Wall of Force. With one strike with this weapon, I can shatter a Large or smaller structure of magical force, or shatter a 20-ft cube portion of a Huge or larger structure.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon.\"+\n\t\"\\n   This weapon was crafted to destroy structures made of force, such as those created by Forcecage or Wall of Force. Striking a Large or smaller structure of magical force with this weapon automatically shatters that structure. If the target is a Huge or larger structure of force, this weapon shatters a 20-foot-cube portion of it.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar damageArr = inObj.baseWeapon && !inObj.damage ? WeaponsList[inObj.baseWeapon].damage : inObj.damage;\n\t\t\treturn !/bludg(\\.|eoning)/i.test(damageArr.toString());\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && /forcebreaker/i.test(v.WeaponTextName) && /bludg(\\.|eoning)/i.test(fields.Damage_Type)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Shatters magical force';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Forcebreaker\" in the name of a bludgeoning weapon, it will be treated as the magic weapon Forcebreaker Weapon. It adds a +2 bonus to attack and damage rolls made with it.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && /forcebreaker/i.test(v.WeaponTextName) && /bludg(\\.|eoning)/i.test(fields.Damage_Type)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"glimmering moonbow\"] = {\n\tname : \"Glimmering Moonbow\",\n\tnameTest : \"Glimmering Moon\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"weapon (any bow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This silver-and-black bow adds +1 to its to hit and damage rolls, creates its own ammo that lasts until it hits or misses a target, and deals +1d6 radiant damage. As a bonus action once per dawn, I can use it to gain resistance to piercing, bludgeoning, and slashing damage until my next turn starts, \",\n\tdescriptionFull : \"This silver-and-black bow is engraved with the phases of the moon. You gain a +1 bonus to attack and damage rolls made with this magic weapon.\"+\n\t\"\\n   When you hit with a ranged attack roll using this magic bow, the target takes an extra 1d6 radiant damage. If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the bow vanishes the instant after it hits or misses a target.\"+\n\t\"\\n   While wielding this magic bow, you can use a bonus action to enter a semi-incorporeal state until the start of your next turn. While semi-incorporeal, you have resistance to bludgeoning, piercing, and slashing damage. Once this bonus action is used, it can't be used again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"resistances\",\n\taction : [[\"bonus action\", \" (resistances)\"]],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*glimmering)(?=.*moon).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(;|,)? ?(loading|Counts as magical)/ig, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 radiant damage';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"Glimmering\" and \"Moon\" in the name of a bow, it will be treated as the magic weapon Glimmering Moonbow. It has +1 to hit and damage, deals +1d6 radiant damage, and produces its own ammunition, thus its loading property is removed if it has it.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*glimmering)(?=.*moon).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"gloomwrought armor\"] = {\n\tname : \"Gloomwrought Armor\",\n\tnameTest : /gloomwrought.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"While wearing this intricate grayscale armor forged in the Shadowfell, I have advantage on saves to avoid or end the frightened condition on myself. The armor has 3 charges and regains 1d3 used charges daily at dawn. As an action, I can use 1 charge to cast Calm Emotions (save DC 15) from it.\",\n\tdescriptionFull : \"This intricate grayscale armor was forged in the Shadowfell and is infused with that plane's gloom.\"+\n\t\"\\n   While you're wearing this armor, you have advantage on saving throws you make to avoid or end the frightened condition on yourself.\"+\n\t\"\\n   This armor has 3 charges. You can expend a charge to cast the Calm Emotions spell (save DC 15) from the armor. This armor regains 1d3 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Gloomwrought\", \"Armor\"], \n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Gloomwrought\"]\n\t},\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"calm emotions\"],\n\t\tselection : [\"calm emotions\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"grasping whip\"] = {\n\tname : \"Grasping Whip\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (whip)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magic whip. When I hit a creature or object that is Large or smaller with this whip, I can pull that creature or object 5 ft toward me instead of dealing damage.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic whip. When you hit a creature or object that is Large or smaller with this whip, you can pull that creature or object 5 feet toward you instead of dealing damage.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"whip\",\n\t\tregExpSearch : /^(?=.*grasping)(?=.*whip).*$/i,\n\t\tname : \"Grasping Whip\",\n\t\tsource : [[\"BoMT\", 67]],\n\t\tdescription : \"Finesse, reach; Forgo damage to pull \\u2264 Large 5 ft to me\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"hammer of runic focus\"] = {\n\tname : \"Hammer of Runic Focus\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (warhammer)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action three times per dawn, I can slam this hammer on the ground, creating a 15-ft radius glowing circle of runes wherein it's a +3 warhammer glowing with matching runes. The rune circle disappears after 1 minute, when I create another, or when I dismiss it as a bonus action.\",\n\tdescriptionFull : \"This magic hammer has 3 charges. As a bonus action, you can expend 1 charge and slam this hammer on the ground, creating a 15-foot-radius circle of glowing runes centered on the point of impact. While you're inside that area, your hammer glows with matching runes, and you gain a +3 bonus to attack and damage rolls made with this hammer. The rune circle disappears after 1 minute, when you create another rune circle, or when you dismiss the rune circle as a bonus action. This hammer regains 1d3 expended charges daily at dawn.\",\n\tweight : 2,\n\taction : [[\"bonus action\", \" (start/end)\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /^(?=.*hammer)(?=.*runic)(?=.*focus).*$/i,\n\t\tname : \"Hammer of Runic Focus\",\n\t\tsource : [[\"BoMT\", 67]],\n\t\tdescription : \"Versatile (1d10); +2 to hit/damage while inside its circle\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"house of cards\"] = {\n\tname : \"House of Cards\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"As an action once per dawn, I can have this deck of cards deal themselves into a shelter centered on a point within 30 ft. It can be any shape that fits in a 40-ft cube, with 1 door and up to 4 windows, that only I can open or close. It has 15 AC, 50 HP, and lasts for 24 hours, I dismiss it as an action, or it reaches 0 HP.\",\n\tdescriptionLong : \"This deck of cards is decorated with geometric shapes that have a protective motif. As an action once per dawn, I can cause the cards to transform into a shelter made of cards centered on a point within 30 ft. It can be any shaped I want that fits in a 40-ft cube. It has a floor, a roof, one door and up to four windows, and only I can open or close them. It has a comfortable temperature inside, AC 15, 50 HP, and immunity to poison and psychic damage. It lasts for 24 hours, until I dismiss it as an action, or until it is reduced to 0 HP. When the shelter's duration ends, it transforms back into a deck of cards in my hand.\",\n\tdescriptionFull : \"This deck of cards is decorated with geometric shapes that have a protective motif. While you're holding the deck, you can use an action to shuffle it and cause the cards to deal themselves out and transform into a shelter made of cards. The shelter can be shaped however you desire, but it must fit in a 40-foot cube centered on a point within 30 feet of you. The shelter has one door and up to four windows, and only you can open or close them. It has a floor and a roof, and it maintains a comfortable temperature inside.\"+\n\t\"\\n   The shelter has AC 15, 50 hit points, and immunity to poison and psychic damage. The shelter lasts for 24 hours, until you dismiss it as an action, or until it is reduced to 0 hit points. When the shelter's duration ends, it transforms back into a deck of cards and appears in your hand. Once the deck has transformed into a shelter, it can't be used again until the next dawn.\",\n\taction : [[\"action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"jester's mask\"] = {\n\tname : \"Jester's Mask\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a bard, sorcerer, or warlock\",\n\tprereqeval : function (v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock ? true : false; },\n\tdescription : \"I can use this harlequin mask as a spellcasting focus. It adds a +3 bonus to my spell attacks and spell save DCs that use Charisma. Once per dawn when I roll a 1 on a d20, I can change it to a 20. As a reaction once per dawn when I'm hit by an attack roll, I can teleport 30 ft to an empty space I can see, taking no damage.\",\n\tdescriptionLong : \"While I'm wearing this colorful, harlequin domino mask edged with pearls, it grants me:\"+\n\t\"\\u2022 Charismatic Focus: I can use it as a spellcasting focus and it grants me a +3 bonus to spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"+\n\t\"\\u2022 Marvelous Escape: As a reaction once per dawn when a creature hits me with an attack roll, I can teleport in a puff of smoke and sparkles instead of taking damage. I teleport to an empty space I can see within 30 ft, along with anything I'm wearing or carrying.\"+\n\t\"\\u2022 Topsy-Turvy: Once per dawn when I roll a 1 on a d20, I can treat it as a 20 instead.\",\n\tdescriptionFull : \"This colorful, harlequin domino mask is edged with pearls. While wearing this mask, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Charismatic Focus\") + \". You can use the mask as a spellcasting focus. You gain a +3 bonus to any spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"+\n\t\"\\n   \" + toUni(\"Marvelous Escape\") + \". When a creature hits you with an attack roll, you can use your reaction to disappear in a puff of smoke and colorful sparkles. You take no damage and instead teleport, along with anything you are wearing or carrying, to an unoccupied space you can see within 30 feet of yourself. Once this reaction is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Topsy-Turvy\") + \". When you roll a 1 on a d20, you can treat the roll as if you rolled a 20 instead. Once this property is used, it can't be used again until the next dawn.\",\n\taction : [[\"reaction\", \" (escape)\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Jester's Mask - Marvelous Escape\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Jester's Mask - Topsy-Turvy\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type !== \"prepare\" && ability === 6) return 3;\n\t\t\t},\n\t\t\t\"While wearing the Jester's Mask, I gain a +3 bonus to any spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"\n\t\t]\n\t}\n};\nMagicItemsList[\"plate of knight's fellowship\"] = {\n\tname : \"Plate of Knight's Fellowship\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"armor (plate)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This gleaming set of silver-and-gold plate armor never tarnishes. As a bonus action once per dawn, I can use it to summon a warrior spirit (knight) to an empty spot within 30 ft. It lasts for 1 minute or until reduced to 0 HP. It is an ally to me, shares my initiative and obeys my commands. See the Companion page.\",\n\tdescriptionFull : \"This gleaming set of silver-and-gold plate armor never tarnishes.\"+\n\t\"\\n   While wearing this armor, you can use a bonus action to summon the spirit of a warrior to your aid. The spirit's corporeal form manifests in an unoccupied space of your choice within 30 feet of you, and it uses the knight stat block. The spirit disappears when it drops to 0 hit points or after 1 minute, whichever comes first.\"+\n\t\"\\n   The spirit is an ally to you and your companions. In combat, the spirit shares your initiative count but takes its turn immediately after yours. The spirit obeys your commands (no action required by you); if you don't issue any commands, the spirit takes the Dodge action and uses its movement to avoid danger.\"+\n\t\"\\n   Once this bonus action is used, it can't be used again until the next dawn.\",\n\tweight : 65,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"bonus action\", \"\"]],\n\tarmorAdd : {\n\t\tselect : \"Plate of Knight's Fellowship\",\n\t\toptions : [\"Plate of Knight's Fellowship\"]\n\t},\n\tcreaturesAdd : [[\"Knight\"]],\n\tcreatureOptions : [{\n\t\tname : \"Knight\",\n\t\tsource : [[\"SRD\", 400], [\"M\", 347]],\n\t\teval : function(prefix) {\n\t\t\tValue(prefix + \"Comp.Desc.Name\", \"Warrior Spirit\");\n\t\t},\n\t\tsize : 3,\n\t\ttype : \"Humanoid\",\n\t\talignment : \"any alignment\",\n\t\tac : 18,\n\t\thp : 52,\n\t\thd : [8, 8],\n\t\tspeed : \"30 ft\",\n\t\tscores : [16, 11, 14, 11, 11, 15],\n\t\tsaves : [\"\", \"\", 4, \"\", 2, \"\"],\n\t\tpassivePerception : 10,\n\t\tlanguages : \"any one language (usually Common)\",\n\t\tchallengeRating : \"3\",\n\t\tproficiencyBonus : 2,\n\t\tattacksAction : 2,\n\t\tattacks : [{\n\t\t\tname : \"Greatsword\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"slashing\"],\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Heavy, two-handed; Two greatsword attacks as an Attack action\"\n\t\t}, {\n\t\t\tname : \"Heavy Crossbow\",\n\t\t\tability : 2,\n\t\t\tdamage : [1, 10, \"piercing\"],\n\t\t\trange : \"100/400 ft\",\n\t\t\tdescription : \"Ammunition, heavy, loading, two-handed\"\n\t\t}],\n\t\tactions : [{\n\t\t\tname : \"Multiattack\",\n\t\t\tdescription : \"As an action on its turn, the knight can make two melee attacks.\"\n\t\t} ,{\n\t\t\tname : \"Leadership (Recharges after a Short or Long Rest)\",\n\t\t\tdescription : \"As an action, the knight can activate this ability. Then, for 1 minute, the knight can utter a special command or warning whenever a nonhostile creature that it can see within 30 ft of it makes an attack roll or save. The creature can add +1d4 to its roll provided it can hear and understand the knight. A creature can benefit from only one Leadership die at a time. This effect ends if the knight is incapacitated.\"\n\t\t}, {\n\t\t\tname : \"Parry\",\n\t\t\tdescription : \"As a reaction, the knight can add +2 AC against one melee attack that would hit it. To do so, the knight must see the attacker and be wielding a melee weapon.\"\n\t\t}],\n\t\tfeatures : [{\n\t\t\tname : \"Brave\",\n\t\t\tdescription : \"The knight has advantage on saving throws against being frightened.\"\n\t\t}, {\n\t\t\tname : \"Summoned\",\n\t\t\tdescription : \"The warrior spirit is an ally to you and your companions. It shares your initiative count but takes its turn immediately after yours. The spirit obeys your commands (no action), or takes the Dodge action and uses its movement to avoid danger if issued no commands. The spirit disappears when it drops to 0 hit points or after 1 minute, whichever comes first.\"\n\t\t}]\n\t}]\n};\nMagicItemsList[\"ring of puzzler's wit\"] = {\n\tname : \"Ring of Puzzler's Wit\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This gold ring bears a fluorite stone and is enchanted to sharpen the wearer's mind. The ring has 3 charges and regains 1d4-1 expended charges daily at dawn. When I make an Intelligence check, I can expend 1 charge to grant myself advantage on the check.\",\n\tdescriptionFull : \"This gold ring bears a fluorite stone and is enchanted to sharpen the wearer's mind.\"+\n\t\"\\n   The ring has 3 charges and regains 1d4 - 1 expended charges daily at dawn. When you make an Intelligence check, you can expend 1 charge to grant yourself advantage on the check.\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4-1\"\n};\nMagicItemsList[\"rod of hellish flames\"] = {\n\tname : \"Rod of Hellish Flames\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"rod\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"I can use this black iron rod as an arcane focus and it grants me resistance to fire and necrotic damage. Once per dawn I can use it to cast Hellish Rebuke as a 4th-level spell (save DC 16). When I cast a spell that deals fire or necrotic damage, I can once per dawn use it to maximize the damage instead of rolling.\",\n\tdescriptionFull : \"Glowing cinders orbit the flanged head of this black iron rod.\"+\n\t\"\\n   This rod can be used as an arcane focus. While holding this rod, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Hellish Resistance\") + \". You have resistance to fire and necrotic damage.\"+\n\t\"\\n   \" + toUni(\"Searing Rebuke\") + \". You can cast the Hellish Rebuke spell as a 4th-level spell (save DC 16) from the rod. Once you use the rod to cast the spell, the rod can't cast the spell again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Surge of Brimstone\") + \". Whenever you cast a spell that deals fire or necrotic damage, you can use the rod to deal the maximum damage instead of rolling. Once this property is used, it can't be used again until the next dawn.\",\n\tweight : 2,\n\textraLimitedFeatures : [{\n\t\tname : \"Rod of Hellish Flames (Hellish Rebuke)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Rod of Hellish Flames (maximize)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tdmgres : [\"Fire\", \"Necrotic\"],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"hellish rebuke\"],\n\t\tselection : [\"hellish rebuke\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"hellish rebuke\" : {\n\t\t\tdescription : \"Cast when taking damage, creature that dealt damage takes 5d10 Fire damage; save halves\",\n\t\t\tchanges : \"Using the Rod of Hellish Flames, I cast Hellish Rebuke as if I'm using a 4th-level spell slot, doing 5d10 damage, once per dawn.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"rogue's mantle\"] = {\n\tname : \"Rogue's Mantle\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This dark, hooded mantle of thick cloth gives me +60 ft darkvision. As a bonus action, I can use it to teleport 30 ft from and into dim light or darkness, to an empty space I can see. I then have advantage on my first attack before my turn ends. Also, I can use it to cast Antagonize once per dawn (save DC 15).\",\n\tdescriptionFull : \"This dark, hooded mantle of thick cloth is infused with secretive and deceptive magic. While wearing it, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Darkvision\") + \". You gain darkvision within a range of 60 feet. If you already have darkvision, the mantle increases your darkvision's range by 60 feet instead.\"+\n\t\"\\n   \" + toUni(\"Move in Shadows\") + \". While you are in dim light or darkness, you can use a bonus action to teleport, along with anything you are wearing or carrying, up to 30 feet to an unoccupied space you can see that is also in dim light or darkness. You then have advantage on the first melee attack you make before the end of the turn.\"+\n\t\"\\n   \" + toUni(\"Willful Enmity\") + \". You can cast the Antagonize spell (save DC 15) from the mantle. Once the mantle has cast the spell, it can't cast the spell again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Antagonize\",\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\taction : [[\"bonus action\", \" (teleport)\"]],\n\tfixedDC : 15,\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"antagonize\"],\n\t\tselection : [\"antagonize\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"ruinous flail\"] = {\n\tname : \"Ruinous Flail\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"weapon (flail)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This ash-gray, cold to the touch flail +1 deals double damage to objects and structures. Once per dawn, I can have a creature hit by it make a DC 15 Con save or be poisoned for 1 minute and take 2d4 necrotic damage at the start of each of its turns. It can repeat the save at the end of each of its turns to end the effects.\",\n\tdescriptionFull : \"This ash-gray flail is cold to the touch. You gain a +1 bonus to attack and damage rolls made with this magic weapon, and it deals double damage to objects and structures.\"+\n\t\"\\n   Additionally, when you hit a creature with this weapon, you can force the creature to make a DC 15 Constitution saving throw. On a failed save, the creature has the poisoned condition for 1 minute. The poisoned creature takes 2d4 necrotic damage at the start of each of its turns. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Once this property is used in this way, it can't be used again until the next dawn.\",\n\tweight : 2,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"flail\",\n\t\tregExpSearch : /^(?=.*ruinous)(?=.*flail).*$/i,\n\t\tname : \"Ruinous Flail\",\n\t\tsource : [[\"BoMT\", 37]],\n\t\tdescription : \"Double damage to objects; Once per dawn: target DC 15 Con save or poisoned, see item\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sage's signet\"] = {\n\tname : \"Sage's Signet\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"ring\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"This gilded ring with a beautiful engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury and two more spells depending on the signet each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\tdescriptionFull : \"This gilded ring bears a beautiful engraving and is imbued with powers of keen wisdom and foresight. While wearing this ring, you can use an action to cast the Augury spell from the ring. Once you use the ring to cast the spell, the ring can't cast the spell again until the next dawn.\"+\n\t\"\\n   Six varieties of Sage's Signet rings exist, each with a different signet (see the table below). A ring's signet determines its rarity as well as the additional spells it can cast. While wearing a Sage's Signet, you can cast each of its additional spells once from the ring using your Intelligence as the spellcasting ability. Once you cast each of the additional spells from the ring, it can't cast the spell again until the next dawn.\"+\n\t\"\\n\\nSignet\\tRarity\\tSpells\"+\n\t\"\\nBear\\tVery rare\\tEnlarge/Reduce, Polymorph\"+\n\t\"\\nHart\\tVery rare\\tAura of Vitality, Mass Cure Wounds\"+\n\t\"\\nLion\\tVery rare\\tDestructive Wave, Fireball\"+\n\t\"\\nSerpent\\tRare\\tFear, Hex\"+\n\t\"\\nSongbird\\tRare\\tCharm Person, Hypnotic Pattern\"+\n\t\"\\nWolf\\tVery rare\\tFreedom of Movement, Pass without Trace\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"each spell once\",\n\tchoices : [\"Bear (very rare)\", \"Hart (very rare)\", \"Lion (very rare)\", \"Serpent (rare)\", \"Songbird (rare)\", \"Wolf (very rare)\"],\n\t\"bear (very rare)\" :  {\n\t\tname : \"Sage's Signet (Bear)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful bear engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Enlarge/Reduce, and Polymorph each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"enlarge/reduce\", \"polymorph\"],\n\t\t\tselection : [\"augury\", \"enlarge/reduce\", \"polymorph\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"hart (very rare)\" :  {\n\t\tname : \"Sage's Signet (Hart)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful hart engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Aura of Vitality, and Mass Cure Wounds each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"aura of vitality\", \"mass cure wounds\"],\n\t\t\tselection : [\"augury\", \"aura of vitality\", \"mass cure wounds\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"lion (very rare)\" :  {\n\t\tname : \"Sage's Signet (Lion)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful lion engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Destructive Wave, and Fireball each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"destructive wave\", \"fireball\"],\n\t\t\tselection : [\"augury\", \"destructive wave\", \"fireball\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"serpent (rare)\" :  {\n\t\tname : \"Sage's Signet (Serpent)\",\n\t\trarity : \"rare\",\n\t\tdescription : \"This gilded ring with a beautiful serpent engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Fear, and Hex each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"fear\", \"hex\"],\n\t\t\tselection : [\"augury\", \"fear\", \"hex\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"songbird (rare)\" :  {\n\t\tname : \"Sage's Signet (Songbird)\",\n\t\trarity : \"rare\",\n\t\tdescription : \"This gilded ring with a beautiful songbird engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Charm Person, and Hypnotic Pattern each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"charm person\", \"hypnotic pattern\"],\n\t\t\tselection : [\"augury\", \"charm person\", \"hypnotic pattern\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"wolf (very rare)\" :  {\n\t\tname : \"Sage's Signet (Wolf)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful wolf engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Freedom of Movement, and Pass without Trace each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"freedom of movement\", \"pass without trace\"],\n\t\t\tselection : [\"augury\", \"freedom of movement\", \"pass without trace\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t}\n};\nMagicItemsList[\"shield of the tortoise\"] = {\n\tname : \"Shield of the Tortoise\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"shield\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This +1 shield curses me as soon as I attune to it. While I'm cursed by it, I can't discard it, I can't break my attunement to it, and I am sluggish. Sluggish means that my speed is halved and when I roll initiative, I always treat the roll on the d20 as a 1. I can't change my initiative by any means.\",\n\tdescriptionFull : \"While you are wielding this shield, you gain a +1 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". This item is cursed. Attuning to it extends the curse to you until you are targeted by a Remove Curse spell or similar magic. You cannot discard the shield, and remain attuned to it, as long as you are cursed. As long as you are cursed, you are sluggish. Your speed is halved. When you roll initiative, treat the roll on your d20 as a 1. You can't change your initiative by any means.\",\n\tweight : 6,\n\tshieldAdd : [\"Shield of the Tortoise\", 3, 6],\n\tspeed : { allModes : { bonus : \"/2\" } }\n};\nMagicItemsList[\"shrieking greaves\"] = {\n\tname : \"Shrieking Greaves\",\n\tsource : [[\"BoMT\", 174]], // Chapter 20: Flames\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"These black leg guards have 3 charges, regaining 1d3 used charges daily at dawn. As a bonus action, I can use 1 charge to gain +30 ft walking speed and adv. on Dex saves for 1 minute. They are cursed, see Notes page. I have disadv. on saves vs. being frightened and they scream if I start my turn frightened.\",\n\tdescriptionLong : \"These black leg guards are decorated with monstrous skulls screaming in terror. They have 3 charges, regaining 1d3 used charges daily at dawn. As a bonus action, I can use 1 charge to increase my walking speed by 30 ft, and gain advantage on Dexterity saves. These effects last for 1 minute. The greaves are cursed, and I can't remove or end my attunement to them. They give me disadvantage on saves against being frightened. When I start my turn frightened, they release an ear-piercing scream. I and all within 10 ft of me take 2d8 thunder damage and can make a DC 15 Constitution save to halve this damage.\",\n\tdescriptionFull : \"Each of these black leg guards is decorated with a motif of monstrous skulls screaming in terror.\"+\n\t\"\\n   The greaves have 3 charges. While wearing these greaves, you can use a bonus action to expend 1 charge to increase your walking speed by 30 feet, and you have advantage on Dexterity saving throws. These effects last for 1 minute. The greaves regain 1d3 expended charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". \" + BoMT.toDescrFull(BoMT[\"shrieking greaves\"]),\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\ttoNotesPage : [{\n\t\tname : \"Shrieking Greaves Curse\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"shrieking greaves\"]])\n\t}]\n};\nMagicItemsList[\"skull helm\"] = {\n\tname : \"Skull Helm\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"While wearing this skull-shaped helm, I have resistance to cold, poison, and necrotic damage. Additionally, I can cast Spirit of Death from it without requiring material components. Once I use the helm to cast the spell, it can't cast this spell again until the next dawn.\",\n\tdescriptionFull : \"While wearing this skull-shaped helm, you have resistance to cold, poison, and necrotic damage.\"+\n\t\"\\n   Additionally, while wearing the helm, you can cast Spirit of Death from it without requiring material components. Once you use the helm to cast the spell, the helm can't cast this spell again until the next dawn.\",\n\tdmgres : [\"Cold\", \"Poison\", \"Necrotic\"],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Spirit of Death\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"spirit of death\"],\n\t\tselection : [\"spirit of death\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"spirit of death\" : {\n\t\t\tcomponents : \"\",\n\t\t\tcompMaterial : \"\",\n\t\t\tdescription : \"Summon a Reaper Spirit; obeys commands; takes turn after mine; disappears at 0 hp\",\n\t\t\tchanges : \"While wearing the helmet, it requires no material components to cast Spirit of Death.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"sling of giant felling\"] = {\n\tname : \"Sling of Giant Felling\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (sling)\",\n\trarity : \"uncommon\",\n\tdescription : \"When I hit a creature with the Giant type with a ranged attack roll using this magic sling, the creature must succeed on a DC 18 Constitution saving throw or be knocked prone.\",\n\tdescriptionFull : \"When you hit a Giant creature with a ranged attack roll using this magic sling, the creature must succeed on a DC 18 Constitution saving throw or have the prone condition.\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"sling\",\n\t\tregExpSearch : /^(?=.*sling)(?=.*giant)(?=.*felling).*$/i,\n\t\tname : \"Sling of Giant Felling\",\n\t\tsource : [[\"BoMT\", 68]],\n\t\tdescription : \"Ammunition; Giants: DC 18 Con save or prone\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"spindle of fate\"] = {\n\tname : \"Spindle of Fate\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"wand\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This wand has 6 charges, regains 1d6 at dawn. I can use 1 charge to add my Prof Bonus to my initiative after the roll. As an action, I can use 2 charges to invoke a creature's doom. As a reaction when a creature within 60 ft makes an attack or save, I can use 3 charges to change the outcome. See Notes page.\",\n\tdescriptionFull : \"This wand is shaped like a drop spindle wrapped in red thread. The wand has 6 charges that can be used for the following properties:\"+\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"spindle of fate\"])+\n\t\"\\n   The wand regains 1d6 expended charges daily at dawn.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"spindle of fate\"]),\n\taction : [[\"action\", \" - Doom Foretold\"], [\"reaction\", \" - Twist of Fate\"]],\n\tweight : 1,\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : [\n\t\t\t\"This wand is shaped like a drop spindle wrapped in red thread. The wand has 6 charges, regaining 1d6 expended charges daily at dawn. The charges can be used for the following properties:\"+\n\t\t\tBoMT.to1stPerson(BoMT[\"spindle of fate\"])\n\t\t]\n\t}]\n};\nMagicItemsList[\"starshot crossbow\"] = {\n\tname : \"Starshot Crossbow\",\n\tnameTest : \"Starshot\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"weapon (any crossbow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This black wooden crossbow has pearl inlays depicting three constellations. It has 3 charges, regaining 1d3 at dawn. It produces its own ammo that lasts until it hits or misses a target. As a bonus action, I can use 1 charge to tap and invoke one of its constellations, see Notes page for the options.\",\n\tdescriptionLong : \"This crossbow of blackened wood has pearl inlays depicting three different constellations. It has 3 charges and regains 1d3 used charged daily at dawn. It produces its own ammo that lasts until it hits or misses a target. As a bonus action, I can use 1 charge to tap and invoke one of its constellations, see Notes for full text. Balance: next hit with the crossbow before my next turn ends heals me or another within 30 ft of me for 1d8+my Prof Bonus. Flames: until my next turn ends, the crossbow deals +2d8 fire damage. Rogue: until my next turn ends, I become invisible as well as anything I'm wearing or carrying.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"starshot crossbow\"]),\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /crossbow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /crossbow/i.test(v.baseWeaponName) && /Starshot/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(;|,)? ?(loading|Counts as magical)/ig, '');\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Starshot\" in the name of a crossbow, it will be treated as the magic weapon Starshot Crossbow. It produces its own ammunition, thus its loading property is removed.'\n\t\t]\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Features and Constellations\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"starshot crossbow\"])\n\t}]\n};\nMagicItemsList[\"stonemaker war pick\"] = {\n\tname : \"Stonemaker War Pick\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (war pick)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This war pick adds +1 to attack and damage rolls. I can use it to cast Meld into Stone once per dawn. If I score a critical hit with it against a creature that has 100 HP or fewer, I can use 1 charge to have the target make a DC 15 Con save or be petrified for 8 hours. It has 1d6+1 charges that can't be replenished.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic war pick. It has the following special properties:\"+\n\t\"\\n   \" + toUni(\"Meld into Stone\") + \". You can cast the Meld into Stone spell from this war pick. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Petrification\") + \". The war pick has 1d6 + 1 charges. If you score a critical hit against a creature that has fewer than 100 hit points, you can expend 1 charge from the war pick to have that creature make a DC 15 Constitution saving throw. On a failed save, the creature has the petrified condition for 8 hours. When the war pick has no charges remaining, it loses this property.\",\n\tweight : 2,\n\textraLimitedFeatures : [{\n\t\tname : \"Stonemaker War Pick - Meld into Stone\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Stonemaker War Pick - Petrification\",\n\t\tusages : \"1d6+1\",\n\t\trecovery : \"Never\"\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"meld into stone\"],\n\t\tselection : [\"meld into stone\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"war pick\",\n\t\tregExpSearch : /^(?=.*stonemaker)(((?=.*pick)(?=.*war))|((?!.*(heavy|great|light))(?=.*\\bpicks?\\b))).*$|\\bkuwas?\\b/i,\n\t\tname : \"Stonemaker War Pick\",\n\t\tsource : [[\"BoMT\", 68]],\n\t\tdescription : \"Can petrify on critical hit, see item\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sun staff\"] = {\n\tname : \"Sun Staff\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a cleric, druid, or wizard\",\n\tprereqeval : function (v) { return classes.known.cleric || classes.known.druid || classes.known.wizard ? true : false; },\n\tdescription : \"This +1 quarterstaff deals +1d8 fire damage on an attack. I can use it as a spellcasting focus. Once per dawn when I cast a spell using a spell slot, I can reroll my Prof Bonus of fire or radiant damage dice. As a bonus action, I can toggle it glowing with sunlight: 15-ft radius bright light and dim light for another 15 ft.\",\n\tdescriptionFull : \"Veins of sunstone run through this wooden staff. This staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it. When you hit with an attack roll using this staff, the target takes an extra 1d8 fire damage.\"+\n\t\"\\n   \" + toUni(\"Solar Focus\") + \". You can use the staff as a spellcasting focus. While holding the staff, you can reroll a number of damage dice up to your proficiency bonus when you use a spell slot to cast a spell that deals fire or radiant damage. You must use the new rolls. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Sunny Glow\") + \". As a bonus action, you can cause the staff to glow with sunlight. While glowing, the staff sheds bright light in a 15-foot radius and dim light for an additional 15 feet. The light lasts until you use another bonus action to extinguish it.\",\n\tweight : 4,\n\taction : [[\"bonus action\", \" (glow on/off)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"reroll damage\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*sun)(?=.*staff).*$/i,\n\t\tname : \"Sun Staff\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\tdescription : \"Versatile (1d8); +1d8 fire damage\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sword of the planes\"] = {\n\tname : \"Sword of the Planes\",\n\tnameTest : \"of the Planes\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (any sword)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This +3 weapon can tear the fabric of reality. As an action once per dawn, I can slice a rift to a location on another plane in an empty space within 5 ft of me. The rift can be up to 10 ft high and wide. Anything entering the rift is instantly transported. The DM determines where it goes exactly.\",\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this magic sword.\"+\n\t\"\\n   This sword can tear the fabric of reality, creating a temporary rift between planes. You can use your action to choose a different plane of existence from the one you're on and slice through an unoccupied space within 5 feet of yourself, creating a rift to that other plane. The rift can be up to 10 feet high and 10 feet wide, and it lasts for 1 minute. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   You can specify a target destination, such as the City of Brass on the Elemental Plane of Fire or the palace of Dispater on the second layer of the Nine Hells, and the rift opens in or near that destination (DM's discretion). If you are trying to reach the City of Brass, for example, the rift might appear on the Street of Steel, before the Gate of Ashes, or facing the city from across the Sea of Fire, at the DM's discretion.\"+\n\t\"\\n   Anything that enters the rift is instantly transported to the other plane, appearing in the unoccupied space nearest to the rift.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /of the Planes/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of the Planes\" in a the name of a sword, it will be treated as the magic weapon Sword of the Planes. It has +3 to hit and damage.'\n\t\t]\n\t}\n};\nMagicItemsList[\"telescopic transporter\"] = {\n\tname : \"Telescopic Transporter\",\n\tsource : [[\"BoMT\", 105]], // Chapter 13: Star\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tdescription : \"This enormous telescope allows me to view distant celestial objects, including stars, Wildspace systems, and Astral Sea phenomena. With 1 hour of calibrating, I can use it to attempt to travel to whatever it is pointed at. With a DC 17 Arcana check me and 8 others teleport, otherwise a mishap, see Notes.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"telescopic transporter\"]),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"telescopic transporter\"]])\n\t}]\n};\nMagicItemsList[\"tidecaller trident\"] = {\n\tname : \"Tidecaller Trident\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"weapon (trident)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This magic trident gives a +2 bonus to attack and damage made with it and advantage on attack rolls when used underwater. The trident has 3 charges, regaining 1d3 expended charges daily at dawn. I can expend these charges to cast spells (save DC 15): Control Water (1 charge) or Tsunami (3 charges).\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic trident. You also have advantage on attack rolls made with this weapon while underwater.\"+\n\t\"\\n   This trident has 3 charges. You can expend 1 charge to cast Control Water (save DC 15) from the trident or 3 charges to cast Tsunami (save DC 15) from it instead. The trident regains 1d3 expended charges daily at dawn.\",\n\tweight : 4,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"trident\",\n\t\tregExpSearch : /^(?=.*tidecaller)(?=.*trident).*$/i,\n\t\tname : \"Tidecaller Trident\",\n\t\tsource : [[\"BoMT\", 69]],\n\t\tdescription : \"Thrown, versatile (1d8); Adv. when underwater\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"control water\"],\n\t\tselection : [\"control water\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"tsunami\"],\n\t\tselection : [\"tsunami\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"voidwalker armor\"] = {\n\tname : \"Voidwalker Armor\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"armor (studded leather)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This black studded leather armor bears a red sheen. As a bonus action once per dawn, I can summon a projection of myself in an empty space within 30 ft. It's a translucent copy of me, immune to all damage and conditions, that I can make attacks and cast spells from. The projection disappears at the end of my turn.\",\n\tdescriptionFull : \"This black studded leather armor bears a red sheen. While wearing this armor, you can use a bonus action to summon a projection of yourself in an unoccupied space within 30 feet of yourself. The projection is a translucent copy of you that has immunity to all damage and conditions, and you can make attacks and cast spells with a range other than self as if standing in the projection's space. The projection disappears at the end of your turn. Once you use this bonus action, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". \" + BoMT.toDescrFull(BoMT[\"voidwalker armor\"]),\n\tweight : 13,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"bonus action\", \"\"]],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*voidwalker)(?=.*armou?r).*$/i,\n\t\tname : \"Voidwalker Armor\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\ttype : \"light\",\n\t\tac : 12,\n\t\tweight : 13,\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Voidwalker Curse\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"voidwalker armor\"]])\n\t}]\n};\nMagicItemsList[\"warrior's passkey\"] = {\n\tname : \"Warrior's Passkey\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This silver skeleton key is warm to the touch. I can use it to cast Knock while in its key form. As a bonus action, I can transform it into a magic +1 longsword that deals 1d10 force damage and I'm proficient with. The sword reverts back to a key if it leaves my grasp, I use a bonus action to do so, or my attunement ends.\",\n\tdescriptionFull : \"This silver skeleton key is warm to the touch. While holding the key in its key form, you can use an action to cast the Knock spell from the key.\"+\n\t\"\\n   \" + toUni(\"Transforming the Key\") + \". While holding the key, you can use a bonus action to transform it into a magic longsword. You are considered proficient with the sword, and you have a +1 bonus to attack and damage rolls made with it. On a hit, the sword deals 1d10 force damage. The item remains in its sword form until it leaves your grasp or you use another bonus action to revert it to its key form.\"+\n\t\"\\n   If you end your attunement to the item while it's in its sword form, it automatically reverts to its key form.\",\n\taction : [[\"bonus action\", \" (transform)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*warrior)(?=.*passkey).*$/i,\n\t\tname : \"Warrior's Passkey\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\tdamage : [1, 10, \"force\"],\n\t\tmodifiers : [1, 1],\n\t\tisAlwaysProf : true,\n\t\tdescription : \"\",\n\t\tweight : 0,\n\t\tselectNow : true\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"At will\",\n\t\tspells : [\"knock\"],\n\t\tselection : [\"knock\"],\n\t\tfirstCol : \"atwill\"\n\t}]\n};\nMagicItemsList[\"weapon of throne's command\"] = {\n\tname : \"Weapon of Throne's Command\",\n\tnameTest : \"of Throne's Command\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"weapon (any)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This +1 weapon grants me proficiency with Intimidation and Persuasion. It has 5 charges, regaining 1d4 at dawn. As a bonus action, I can expend charges to cast a spell from it with save DC 16: Command (1 charge), Zone of Truth (2), Compulsion (4), Banishment (4), or Dominate Person (5).\",\n\tdescriptionLong : \"This weapon is bedecked in ornate gold filigree and deep-blue and maroon jewels. I gain a +1 bonus to attack and damage rolls made with this weapon. Additionally, I gain proficiency in the Intimidation and Persuasion skills if I don't already have it. The weapon has 5 charges, regaining 1d4 expended charges daily at dawn. As a bonus action, I can expend 1 or more of its charges to cast one of the following spells (save DC 16): Command (1 charge), Zone of Truth (2 charges), Compulsion (4 charges), Banishment (4 charges), or Dominate Person (5 charges).\",\n\tdescriptionFull : \"This weapon is bedecked in ornate gold filigree and deep-blue and maroon jewels. You gain a +1 bonus to attack and damage rolls made with this weapon. Additionally, you gain proficiency in the Intimidation and Persuasion skills if you don't already have it.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". The weapon has 5 charges. You can use a bonus action and expend 1 or more of its charges to cast one of the following spells (save DC 16): Command (1 charge), Zone of Truth (2 charges), Compulsion (4 charges), Banishment (4 charges), or Dominate Person (5 charges).\"+\n\t\"\\n   The weapon regains 1d4 expended charges daily at dawn.\",\n\tskills : [\"Intimidation\", \"Persuasion\"],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\n\t},\n\tusages : 5,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\",\n\tfixedDC : 16,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"command\"],\n\t\tselection : [\"command\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"zone of truth\"],\n\t\tselection : [\"zone of truth\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"4 charges\",\n\t\tspells : [\"banishment\", \"compulsion\"],\n\t\tselection : [\"banishment\", \"compulsion\"],\n\t\tfirstCol : 4,\n\t\ttimes : 2\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"dominate person\"],\n\t\tselection : [\"dominate person\"],\n\t\tfirstCol : 5\n\t}],\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (/of throne'?s? command/.test(v.WeaponTextName)) {\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of Throne\\'s Command\" in a the name of a weapon, it will be treated as the magic weapon Weapon of Throne\\'s Command. It adds a +1 bonus to attack and damage rolls.'\n\t\t]\n\t},\n\tspellChanges : {\n\t\t\"command\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Command as a bonus action.\"\n\t\t},\n\t\t\"zone of truth\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Zone of Truth as a bonus action.\"\n\t\t},\n\t\t\"banishment\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Banishment as a bonus action.\"\n\t\t},\n\t\t\"compulsion\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Compulsion as a bonus action.\"\n\t\t},\n\t\t\"dominate person\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Dominate Person as a bonus action.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"winged ammunition\"] = {\n\tname : \"Winged Ammunition\",\n\tnameTest : \"Winged\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"uncommon\",\n\tdescription : \"Ranged weapon attack rolls made with this magic ammunition ignore half and three-quarters cover. In addition, attacking at long range doesn't impose disadvantage on ranged weapon attack rolls made with this ammunition.\",\n\tdescriptionFull : \"Ranged weapon attack rolls made with this ammunition ignore half and three-quarters cover. In addition, attacking at long range doesn't impose disadvantage on ranged weapon attack rolls made with this ammunition.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"wraps of unarmed prowess\"] = {\n\tname : \"Wraps of Unarmed Prowess, +1, +2, or +3\",\n\tnameTest : \"Wraps of Unarmed Prowess\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"wondrous item\",\n\tdescription : \"While wearing these cloth wraps, my unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks, and I gain a bonus to their attack and damage rolls. The bonus is determined by rarity: uncommon (+1), rare (+2), or very rare (+3).\",\n\tdescriptionFull : \"While you're wearing these cloth wraps, your unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage, and you gain a bonus to the attack and damage rolls of your unarmed strikes. The bonus is determined by the wraps' rarity: uncommon (+1), rare (+2), or very rare (+3).\",\n\tchoices : [\"+1 Wraps of Unarmed Prowess (uncommon)\", \"+2 Wraps of Unarmed Prowess (rare)\", \"+3 Wraps of Unarmed Prowess (very rare)\"],\n\t\"+1 wraps of unarmed prowess (uncommon)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +1\",\n\t\tnameTest : \"+1 Wraps of Unarmed Prowess\",\n\t\trarity : \"uncommon\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +1 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +1 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 1;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t},\n\t\"+2 wraps of unarmed prowess (rare)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +2\",\n\t\tnameTest : \"+2 Wraps of Unarmed Prowess\",\n\t\trarity : \"rare\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +2 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +2 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 2;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t},\n\t\"+3 wraps of unarmed prowess (very rare)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +3\",\n\t\tnameTest : \"+3 Wraps of Unarmed Prowess\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +3 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +3 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 3;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t}\n};\n\n\nSpellsList[\"antagonize\"] = {\n\tname : \"Antagonize\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A playing card depicting a rogue\",\n\tduration : \"Instantaneous\",\n\tsave : \"Wis\",\n\tdescription : \"1 crea 4d4+1d4/SL Psychic dmg, use rea to melee atk vs. crea I see (or dis. atk 1 rnd); save half, no rea\",\n\tdescriptionShorter : \"1 crea 4d4+1d4/SL Psychic dmg, rea melee atk vs. crea I see (or dis. atk 1 rnd); save half, no rea\",\n\tdescriptionFull : \"You whisper magical words that antagonize one creature of your choice within range. The target must make a Wisdom saving throw. On a failed save, the target takes 4d4 psychic damage and must immediately use its reaction to make a melee attack against another creature of your choice that you can see. If the target can't make this attack (for example, because there is no one within its reach or because its reaction is unavailable), the target instead has disadvantage on the next attack roll it makes before the start of your next turn. On a successful save, the target takes half as much damage only.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d4 for each slot level above 3rd.\"\n};\nSpellsList[\"spirit of death\"] = {\n\tname : \"Spirit of Death\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 4,\n\tschool : \"Necro\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A gilded playing card worth at least 400 gp and depicting an avatar of death\",\n\tduration : \"Conc, 1 h\",\n\tdescription : \"Summon a Reaper Spirit; obeys commands; takes turn after mine; disappears at 0 hp (400gp)\",\n\tdescriptionFull : \"You call forth a spirit that embodies death. The spirit manifests in an unoccupied space you can see within range and uses the reaper spirit stat block. The spirit disappears when it is reduced to 0 hit points or when the spell ends.\"+\n\t\"\\n   The spirit is an ally to you and your companions. In combat, the spirit shares your initiative count and takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue the spirit any commands, it takes the Dodge action and uses its movement to avoid danger.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the reaper spirit stat block.\"\n};\nSpellsList[\"spray of cards\"] = {\n\tname : \"Spray of Cards\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 2,\n\tschool : \"Conj\",\n\ttime : \"1 a\",\n\trange : \"S:15\" + (typePF ? \"-\" : \"\") + \"ft cone\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A deck of cards\",\n\tduration : \"Instantaneous\",\n\tsave : \"Dex\",\n\tdescription : \"All in area 2d10+1d10/SL Force dmg and blinded until their next turn ends; save halves \\u0026 not blinded\",\n\tdescriptionShorter : \"All in area 2d10+1d10/SL Force dmg, blinded till their next turn ends; save half \\u0026 not blinded\",\n\tdescriptionFull : \"You spray a 15-foot cone of spectral cards. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 2d10 force damage and has the blinded condition until the end of its next turn. On a successful save, a creature takes half as much damage only.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d10 for each slot level above 2nd.\"\n};\n\n// pub_20240521_VEoR.js\n// This file adds the magic item from the Vecna: Eve of Ruin adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"VEoR\"] = {\n\tname : \"Vecna: Eve of Ruin\",\n\tabbreviation : \"VEoR\",\n\tgroup : \"Adventure Books\",\n\turl : \"https://dndstore.wizards.com/us/en/product/924703/vecna-eve-of-ruin-digital-plus-physical-bundle\",\n\tdate : \"2024/05/21\"\n};\n\nMagicItemsList[\"chime of exile\"] = {\n\tname : \"Chime of Exile\",\n\tsource : [[\"VEoR\", 46]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This silver chime is engraved with delicate magic sigils. As an action once per dawn, I can hold the chime and cast the Banishment spell (save DC 20). If the target of the spell has 50 hit points or fewer, it automatically fails its saving throw.\",\n\tdescriptionFull : \"This silver chime is engraved with delicate magic sigils. While holding the chime, you can use an action to cast the Banishment spell (spell save DC 20). If the target of the spell has 50 hit points or fewer, it automatically fails its saving throw. Once the chime has been used to cast the spell, it can't be used this way again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Banishment\",\n\tfixedDC : 20,\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"banishment\"],\n\t\tselection : [\"banishment\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\n\n// pub_20240716_QftIS.js\n// This file adds the futuristic and magic item from the Quests from the Infinite Staircase adventure anthology to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"QftIS\"] = {\n\tname : \"Quests from the Infinite Staircase\",\n\tabbreviation : \"QftIS\",\n\tgroup : \"Adventure Books\",\n\turl : \"https://dndstore.wizards.com/us/en/product/928653/quests-from-the-infinite-staircase-digital-plus-physical-bundle\",\n\tdate : \"2024/07/16\"\n};\n\ntry {\n\tvar QftIS = { toDescrFull : BoMT.toDescrFull, to1stPerson : BoMT.to1stPerson };\n} catch (err) {\n}\nQftIS.replaceEnergyCellPlain = \">>Replacing the Energy Cell<<. While the >>THING<< has charges remaining, its energy cell can't be removed. Once the >>THING<< has 0 charges, you can replace the energy cell with a new cell by using an action or a bonus action.\"\nQftIS.replaceEnergyCell = \"\\n   \" + QftIS.replaceEnergyCellPlain.replace(\">>Replacing the Energy Cell<<\", toUni(\"Replacing the Energy Cell\"));\n\n// Futuristic items added as magic items, but set to be excluded by default\nMagicItemsList[\"antigravity belt\"] = {\n\tname : \"Antigravity Belt\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\", // not really magic items, so these use their own category \n\trarity : \"priceless\", // as per QftIS page 192\n\tdefaultExcluded : true,\n\tdescription : \"This belt has 10 charges per energy cell, which can be replaced as a (bonus) action if empty. As a bonus action, I can use charges to activate it for 1 min per charge, causing me to float in place. As a bonus action and when activating it, I can move 20 ft vertically. I can push off to move horizontally at half my speed.\",\n\tdescriptionLong : \"Metal tubes ring the lower edge of this wide belt powered by an energy cell stored in a metal case near the buckle. It has 10 charges per energy cell, which can be replaced as a (bonus) action when empty. As a bonus action, I can expend charges to activate the belt for 1 min per charge. While active, I float in place. As a bonus action and as part of activating it, I can ascend or descend up to 20 ft vertically. I can move myself horizontally by being pushed or towed or by scooting myself along a surface at half my walking speed. I can deactivate it as a bonus action; If I'm still levitating when it deactivates, I fall.\",\n\tdescriptionFull : \"Metal tubes ring the lower edge of this wide belt. It is powered by an energy cell stored in a metal case near the buckle. Placing a full energy cell in the belt gives the belt 10 charges.\"+\n\t\"\\n   \" + toUni(\"Activating the Belt\") + \". As a bonus action, you can expend any number of the belt's charges to activate it; the belt remains active for 1 minute per charge expended. You can use a bonus action to deactivate the belt early, but doing so doesn't recover any expended charges.\"+\n\t\"\\n   When you activate the belt, and as a bonus action while it remains active, you can rise or descend vertically up to 20 feet. You remain floating in place while the property is active, and you can move yourself horizontally by being pushed or towed or by scooting yourself along a surface, such as a wall or ceiling, at half your walking speed. If you are still levitating when the belt deactivates, you fall.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"belt\"),\n\tusages : 10,\n\trecovery : \"E-Cell\",\n\taction : [\n\t\t[\"bonus action\", \" (activate/stop)\"],\n\t\t[\"bonus action\", \"Replace Energy Cell\"]\n\t]\n};\nMagicItemsList[\"robot controller\"] = {\n\tname : \"Robot Controller\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This handheld device has 3 charges per energy cell, which can be replaced as a (bonus) action if empty. As an action, I can use 1 charge to Control one construct within 60 ft or Disrupt all within 30 ft to become incapacitated. They can make a DC 15 Wisdom save to resist and repeat the save. See Notes page.\",\n\tdescriptionFull : \"This small handheld device features a glass pane with a glowing display that responds to your touch.\"+\n\t\"\\n   The controller is powered by an energy cell stored in the device. Placing a full energy cell in the device gives the device 3 charges.\"+\n\t\"\\n   As an action while holding this device, you can expend 1 of its charges to cause one of the following effects:\"+\n\t\"\\n \\u2022 \" + toUni(\"Control\") + \". One Construct of your choice within 60 feet of you must succeed on a DC 15 Wisdom saving throw or have the charmed condition for 1 minute. While charmed in this way, the Construct obeys your verbal commands, and you and the Construct can communicate remotely with each other through the device. Whenever the charmed Construct takes damage, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\t\"\\n \\u2022 \" + toUni(\"Disrupt\") + \". Constructs of your choice within 30 feet of you must succeed on a DC 15 Wisdom saving throw or have the incapacitated condition for 1 minute. An incapacitated Construct can repeat the saving throw at the end of its turns, ending the effect on itself on a success.\",\n\tusages : 3,\n\trecovery : \"E-Cell\",\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : [\n\t\t\t\"This small handheld device features a glass pane with a glowing display that responds to my touch. It is powered by an energy cell, which gives it 3 charges. As an action or a bonus action, I can replace this energy cell with a new one, but only once it is empty.\",\n\t\t\t\"As an action, I can expend 1 charge to cause one of the following effects:\"+\n\t\t\t\" \\n \\u2022 Control: One construct of my choice within 60 ft of me must succeed on a DC 15 Wisdom saving throw or have the charmed condition for 1 minute. While charmed in this way, the Construct obeys my verbal commands, and we can communicate remotely with each other through the device. Whenever the charmed construct takes damage, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\t\t\t\" \\n \\u2022 Disrupt: All constructs of my choice within 30 ft of me must succeed on a DC 15 Wisdom saving throw or have the incapacitated condition for 1 minute. An incapacitated construct can repeat the saving throw at the end of its turns, ending the effect on itself on a success.\"\n\t\t]\n\t}]\n};\n// Futuristic Grenades\nWeaponsList[\"grenade, concussion\"] = {\n\tregExpSearch : /^(?=.*grenade)(?=.*concussion).*$/i,\n\tname : \"Concussion Grenade\",\n\tnameAlt : [\"Grenade, Concussion\"],\n\tsource : [[\"D\", 268]],\n\tlist : \"explosive\",\n\tability : 0,\n\ttype : \"Explosive\",\n\tdamage : [6, 6, \"force\"],\n\trange : \"60 ft\",\n\tweight : 1,\n\tdescription : \"All within 20-ft radius, Dex save halves\",\n\tabilitytodamage : false,\n\tmodifiers : [7, \"\"],\n\tdc : true,\n\tammo : \"grenade\",\n\tisNotWeapon : true,\n\tisAlwaysProf : false,\n\ttooltip : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\"\\n   A concussion grenade explodes in a concussive blast that fills a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d6 force damage on a failed save or half as much damage on a successful one.\",\n\tdefaultExcluded : true\n};\nif (MagicItemsList[\"grenade\"]) {\n\tAddFeatureChoice(MagicItemsList[\"grenade\"], false, \"Concussion Grenade\", {\n\t\tname : \"Concussion Grenade\",\n\t\tsortname : \"Grenade, Concussion\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"explosive, futuristic\",\n\t\trarity : \"priceless\",\n\t\tdefaultExcluded : true,\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. All creatures within 20 ft of an exploding concussion grenade take 6d6 force damage, but can make a DC 15 Dexterity save to halve that damage.\",\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\t\"\\n   A concussion grenade explodes in a concussive blast that fills a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d6 force damage on a failed save or half as much damage on a successful one.\",\n\t\tweaponsAdd : { select : [\"Concussion Grenade\"] },\n\t\teval : function() { // make sure the weapon and ammo are not excluded\n\t\t\tif (CurrentSources.weapExcl.eject(\"grenade, concussion\") !== -1) SetWeaponsdropdown();\n\t\t\tif (CurrentSources.ammoExcl.eject(\"grenade\") !== -1) SetAmmosdropdown();\n\t\t}\n\t}, false, true);\n\tAddFeatureChoice(MagicItemsList[\"grenade\"], false, \"Sleep Grenade\", {\n\t\tname : \"Sleep Grenade\",\n\t\tsortname : \"Grenade, Sleep\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"explosive, futuristic\",\n\t\trarity : \"priceless\",\n\t\tdefaultExcluded : true,\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. A soporific mist releases from a sleep grenade, then dissipates. All within 20 ft of it must make a DC 15 Con save or fall unconscious for 1 hour, until taking damage, or until another using an action to shake awake.\",\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\t\"\\n   A sleep grenade releases a cloud of soporific mist that fills a 20-foot-radius sphere, then dissipates. Each creature in that area must succeed on a DC 15 Constitution saving throw or have the unconscious condition for 1 hour. The condition ends on a creature early if the creature takes damage or if another creature uses an action to shake it awake.\"\n\t}, false, true);\n}\n// Futuristic Weapons\nMagicItemsList[\"needler pistol\"] = {\n\tname : \"Needler pistol\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This pistol has 10 charges per energy cell, which can be replaced as a (bonus) action once empty. As an action, I can use 1 charge to fire a burst needlelike darts from it in a 15-ft cone, dealing 8d4 piercing damage to all creatures in the area. Creatures can make a DC 15 Dexterity saving throw to half the damage.\",\n\tdescriptionFull : \"This strange pistol resembles a flask with a honeycomb of tubes sticking out its front. The weapon is powered by an energy cell stored at the base of the flask. Placing a full energy cell in the pistol gives the pistol 10 charges.\"+\n\t\"\\n   As an action while holding this pistol, you can expend 1 of its charges to fire a burst of glowing, needlelike darts from the pistol in a 15-foot cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 8d4 piercing damage on a failed save or half as much damage on a successful one.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\tusages : 10,\n\trecovery : \"E-Cell\",\n\tweight : 2, // Guess by MPMB\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*needler)(?=.*pistol).*$/i,\n\t\tname : \"Needler Pistol\",\n\t\tnameAlt : [\"Pistol, Needler\"],\n\t\tsource : [[\"QftIS\", 192]],\n\t\tability : 0,\n\t\ttype : \"Firearm\",\n\t\tdamage : [8, 4, \"piercing\"],\n\t\trange : \"15-ft Cone\",\n\t\tweight : 2, // Guess by MPMB\n\t\tdescription : \"Dex save for half damage; Ammunition, reload (10 shots)\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, \"\"],\n\t\tdc : true,\n\t\tammo : \"energy cell\",\n\t\tisAlwaysProf : false,\n\t\ttooltip : \"As an action while holding this pistol, you can expend 1 of its charges to fire a burst of glowing, needlelike darts from the pistol in a 15-ft cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 8d4 piercing damage on a failed save or half as much damage on a successful one.\" + QftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"paralysis pistol\"] = {\n\tname : \"Paralysis Pistol\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"technological device\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This pistol has 6 charges per energy cell, which can be replaced as a (bonus) action once empty. As an action, I can use 1 charge to fire the pistol at a creature I can see within 60 ft, which must then make a DC 15 Constitution save or be paralyzed for 1 min. The target can repeat the save at the end of each of its turns.\",\n\tdescriptionFull : \"This curious-looking pistol is shaped like a large, glass bulb with a handle on the bottom and brass prongs protruding from its front. The weapon is powered by an energy cell stored in its grip. Placing a full energy cell in the pistol gives the pistol 6 charges.\"+\n\t\"\\n   As an action while holding this pistol, you can expend 1 of its charges to fire a ray of crackling energy at a creature you can see within 60 feet of yourself. The target must succeed on a DC 15 Constitution saving throw or have the paralyzed condition for 1 minute. At the end of each of the target's turns, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\tusages : 6,\n\trecovery : \"E-Cell\",\n\tweight : 2, // Guess by MPMB\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*paralysis)(?=.*pistol).*$/i,\n\t\tname : \"Paralysis pistol\",\n\t\tnameAlt : [\"Pistol, Paralysis\"],\n\t\tsource : [[\"QftIS\", 192]],\n\t\tability : 0,\n\t\ttype : \"Firearm\",\n\t\tdamage : [\"Con save\", \"\", \"Paralyzed\"],\n\t\trange : \"60 ft\",\n\t\tweight : 2, // Guess by MPMB\n\t\tdescription : \"Paralyzed for 1 min; Repeat save at end of turn; Ammunition, reload (6 shots)\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, \"\"],\n\t\tdc : true,\n\t\tammo : \"energy cell\",\n\t\tisAlwaysProf : false,\n\t\ttooltip : \"As an action while holding this pistol, you can expend 1 of its charges to fire a ray of crackling energy at a creature you can see within 60 ft of yourself. The target must succeed on a DC 15 Constitution saving throw or have the paralyzed condition for 1 minute. At the end of each of the target's turns, it can repeat the saving throw, ending the effect on itself on a success.\" + QftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\t\tselectNow : true\n\t}]\n};\n// Futuristic Armour\nQftIS.poweredArmor = [\n\t\"This suit of technologically advanced plate armor includes an under-suit that can fully seal, a helmet with a full face mask and crystal lenses in the eyeholes, and a set of gauntlets. The armor is powered by an energy cell stored in a compartment on the thigh plate.\",\n\t\"Placing a full energy cell in the armor gives the armor 24 charges. A suit of powered armor functions as a suit of normal plate armor, even when it has 0 charges remaining.\",\n\t\">>Activating the Armor<<. As an action, you can expend any number of the armor's charges to activate it; the armor remains active for 1 hour per charge expended. You can use a bonus action to deactivate the armor early, but doing so doesn't recover any expended charges.\",\n\t\"While the armor is active, you gain the following benefits:\"+\n\t\"\\n \\u2022 >>Augmented Physicality<<. You have advantage on Strength checks, and your carrying capacity is doubled.\"+\n\t\"\\n \\u2022 >>Environmental Adaptation<<. The armor seals airtight and provides its own atmosphere. You can breathe normally in any environment and withstand extreme temperatures, and you're unaffected by harmful gases, as well as contact and inhaled poisons.\"+\n\t\"\\n \\u2022 >>Force Field<<. When you would take damage, you can use your reaction to expend 1 of the armor's charges to deploy a defensive force field. Roll 3d10 and reduce the damage taken by the total rolled.\"+\n\t\"\\n \\u2022 >>Propulsion<<. As a bonus action, you can expend 1 of the armor's charges to gain a flying speed equal to your walking speed for 1 minute. If you're airborne when this duration ends, you fall.\",\n\tQftIS.replaceEnergyCellPlain.replace(/>>THING<</g, \"armor\")\n]\nMagicItemsList[\"powered armor\"] = {\n\tname : \"Powered Armor\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"technological device\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This plate armor has 24 charges per energy cell, which can be replaced as a (bonus) action if empty. As an action, I can expend charges to active it for 1 hour per charge. While active, I gain adv. on Str, double carrying capacity, have my own atmosphere to breath in, and can use Force Field and Propulsion, see Notes.\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.poweredArmor),\n\tusages : 24,\n\trecovery : \"E-Cell\",\n\tweight : 65,\n\taction : [\n\t\t[\"action\", \"Activate Powered Armor (1 h/charge)\"],\n\t\t[\"reaction\", \"Powered Armor: Force Field (1 charge)\"],\n\t\t[\"bonus action\", \"Powered Armor: Propulsion (1 charge)\"],\n\t\t[\"bonus action\", \"Replace Energy Cell\"]\n\t],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*powered)(?=.*armou?r).*$/i,\n\t\tname : \"Powered Armor\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"heavy\",\n\t\tac : 18,\n\t\tstealthdis : true,\n\t\tweight : 65,\n\t\tstrReq : 15\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.poweredArmor)\n\t}]\n};\n\n// Magic Items\nQftIS.heretic = [\n\t\"The blasphemous weapon Heretic was created by a cult to steal power from good-aligned gods. The blade hungers to strike down servants of the Upper Planes and weaken the forces of good.\",\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. Heretic has 6 charges for the following properties; the sword regains 1d4 + 1 charges daily at dawn:\"+\n\t\"\\n \\u2022 >>Destroy Devotion<<. Once per turn when you hit a creature with this weapon, you can expend 1 of its charges to attempt to render the target powerless. The target must succeed on a DC 17 Constitution saving throw or have the paralyzed condition until the start of your next turn. Celestials have disadvantage on the save.\"+\n\t\"\\n \\u2022 >>Faith Hunter<<. While holding the sword, you can use an action to expend 1 or more of its charges to cast one of the following spells from it: Detect Evil and Good (1 charge), Fly (2 charges), or True Seeing (3 charges).\",\n\t\">>Sentience<<. Heretic is a sentient, chaotic evil weapon with an Intelligence of 17, a Wisdom of 17, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\n\t\"The weapon can speak, read, and understand Common and Giant, and it can communicate with its wielder telepathically. Its voice is soft and deep but rises in a wild furor when it's aware Celestials or worshipers of good-aligned deities are present. While you are attuned to it, Heretic also understands every language you know.\",\n\t\">>Personality<<. Heretic craves the destruction of good-aligned gods and their supporters. The blade is condescending and snobby, especially in the company of priests and other pious folk, at whom it often directs sneering comments. When Heretic identifies its quarry, it erupts in a frenzied need for violence.\"\n];\nMagicItemsList[\"heretic\"] = {\n\tname : \"Heretic\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"legendary\",\n\tdescription : \"This sentient longsword adds +3 to hit and damage and has 6 charges, regaining 1d4+1 at dawn. Once per turn on a hit with it, I can use 1 charge to force a DC 17 Con save or paralyze until my next turn. As an action, I can cast spells from it: Detect Evil and Good (1 charge), Fly (2 charges), or True Seeing (3 charges).\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.heretic),\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a non-good creature\",\n\tprereqeval : function(v) { return !/good/i.test(What(\"Alignment\")); },\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /heretic/i,\n\t\tname : \"Heretic\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\tdescription : \"Versatile (1d10); On hit, 1 charge to paralyze (DC 17 Con save)\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.heretic) + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"detect evil and good\"],\n\t\tselection : [\"detect evil and good\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"fly\"],\n\t\tselection : [\"fly\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"true seeing\"],\n\t\tselection : [\"true seeing\"],\n\t\tfirstCol : 2\n\t}]\n}\nQftIS.staffOfRuling = [\n\t\"An ornate carving of a serpent adorned with a coursing river spirals down the length of this redand-gold staff. While you're holding it, you can use an action to produce one of the following effects. Once the staff has produced an effect, it can't produce that effect again until the next dawn.\",\n\t\">>Orb of Lightning<<. You create a Small orb of lightning in an unoccupied space you can see within 60 feet of yourself. You concentrate on this orb as if concentrating on a spell. As a bonus action, you can move the orb up to 20 feet in any direction.\",\n\t\"When your concentration ends, or when a creature enters the orb's space or starts its turn there, the orb detonates in a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking lightning damage equal to the total accumulated damage on a failed save, or half as much damage on a successful one; the orb's base damage is 6d6, and if at the end of your turn the orb hasn't detonated, its damage increases by 2d6, to a maximum of 10d6.\",\n\t\">>Staff to Snake<<. You throw the staff to an unoccupied space within 10 feet of you, and the staff becomes a giant poisonous snake. The snake is under your control and shares your initiative count, but it takes its turn immediately after yours.\",\n\t\"On your turn, you can mentally command the snake if it is within 60 feet of you and you don't have the incapacitated condition. You decide what action the snake takes and where it moves during its turn, or you can issue it a general command, such as to attack your enemies or guard a location.\",\n\t\"If you use a bonus action to speak the command word again, or if the snake is reduced to 0 hit points, the snake reverts to staff form in its current space.\",\n\t\">>Thunderclap<<. You point the staff skyward, producing a fearsome thunderclap. Each creature of your choice in a 30-foot-radius sphere centered on you must succeed on a DC 15 Constitution saving throw or have the deafened and frightened conditions until the end of your next turn.\"\n];\nMagicItemsList[\"staff of ruling\"] = {\n\tname : \"Staff of Ruling\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tdescription : \"As an action, I can use this redand-gold staff with an ornate serpent carving to produce one of several effects: Orb of Lightning, Staff to Snake, or Thunderclap. Once the staff has produced an effect, it can't produce that effect again until the next dawn. See Notes page for the effect descriptions.\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.staffOfRuling),\n\tattunement : true,\n\tweight : 4,\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.staffOfRuling)\n\t}],\n\taction : [[\"action\", \"\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Staff of Ruling: Orb of Lightning\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Staff of Ruling: Staff to Snake\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Staff of Ruling: Thunderclap\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}]\n}\n// pub_al_20190917_ALPG-v9.1.js\n// This file adds the winged aasimar/tiefling from the Adventurers League Player's Guide v9.1: Inglorious Redemption to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"ALPGs9\"] = {\n\tname : \"AL Player's Guide v9.1: Inglorious Redemption\",\n\tabbreviation : \"ALPGs9\",\n\tgroup : \"Adventurers League\",\n\turl : \"https://www.dropbox.com/s/8r1cwjrk6n2rzyo/AL-Players-Guide-v9.1-Forgotten-Realms.pdf?dl=1\", // used to be https://www.dmsguild.com/product/208178\n\tdate : \"2019/09/17\",\n\tdefaultExcluded : true\n};\n\n/*\n\tAdd this source to the Aasimar from VGtM and the Winged Tiefling variant from SCAG\n\tAlso, add a winged variant to the three Aasimar subraces from VGtM\n*/\n[\n\t[\"fallen aasimar\", false],\n\t[\"protector aasimar\", false],\n\t[\"scourge aasimar\", false],\n\t[\"tiefling-winged\", true],\n\t[\"feral tiefling-winged\", true]\n].forEach(function (rac) {\n\tvar rObj = rac[1] ? RaceSubList[rac[0]] : RaceList[rac[0]];\n\tif (!rObj) return;\n\trObj.source = (isArray(rObj.source[0]) ? rObj.source : [rObj.source]).concat([[\"ALPGs9\", 6]]);\n\tif (rac[0].indexOf(\"aasimar\") !== -1) {\n\t\tAddRacialVariant(rac[0], \"winged\", {\n\t\t\tregExpSearch : /wing/i,\n\t\t\tname : \"Winged \" + rObj.name,\n\t\t\tsource : [[\"ALPGs9\", 6]],\n\t\t\tplural : \"Winged \" + rObj.plural,\n\t\t\tspeed : {\n\t\t\t\twalk : { spd : 30, enc : 20 },\n\t\t\t\tfly : { spd : 30, enc : 0 }\n\t\t\t},\n\t\t\ttrait : \"Winged \" + rObj.trait.replace(/\\)(\\r|\\n|.)+/, \")\\n\\nHealing Hands:\\n   As an action, once per long rest, I can touch to heal for my level in HP.\\nWings:\\n   Once I'm 5th level, I sprout feathered wings from my shoulder blades that give me a flying speed of 30 feet when I'm not wearing heavy armor.\"),\n\t\t\tfeatures : {\n\t\t\t\t\"healing hands\" : {\n\t\t\t\t\tname : \"Healing Hands\",\n\t\t\t\t\tusages : 1,\n\t\t\t\t\tminlevel : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\n\t\t\t\t\taction : [[\"action\", \"\"]]\n\t\t\t\t}\n\t\t\t},\n\t\t\tabilitySave : \"\",\n\t\t\tspellcastingAbility : \"\",\n\t\t\tspellcastingBonus : \"\"\n\t\t});\n\t}\n});\n\n// ua_20150202_Eberron.js\r\n// This file adds the content from the Unearthed Arcana: Eberron article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:E\"] = {\r\n\tname : \"Unearthed Arcana: Eberron\",\r\n\tabbreviation : \"UA:E\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Eberron_v1.1.pdf\",\r\n\tdate : \"2015/02/02\"\r\n};\r\n\r\n// Adds three races:\r\n// Changeling\r\nRaceList[\"changeling-ua\"] = {\r\n\tregExpSearch : /changeling/i,\r\n\tname : \"Changeling\",\r\n\tsource : [[\"UA:E\", 1]],\r\n\tplural : \"Changelings\",\r\n\tsize : 3,\r\n\tskills : [\"Deception\"],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 2],\r\n\tage : \" reach adulthood in their early teens and live around 80 years\",\r\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 1],\r\n\ttrait : \"Changeling (+1 Dexterity, +1 Charisma)\\nShapechanger:\\n   As an action, I can polymorph into any humanoid of my size that I have seen, or back into my true form.\\n   However, my equipment does not change with me.\\n   If I die, I revert to my natural appearance.\",\r\n\taction : ['action', 'Polymorph']\r\n};\r\n// Warforged\r\nRaceList[\"warforged-ua\"] = {\r\n\tregExpSearch : /warforged/i,\r\n\tname : \"Warforged\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tplural : \"Warforged\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\r\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 0],\r\n\ttrait : \"Warforged (+1 Strength, +1 Constitution)\\nLiving Construct:\\n   Even though I was constructed, I am a living creature. I am immune to disease. I do not need to eat or breathe, but I can ingest food and drink if I wish.\\n   Instead of sleeping, I enter an inactive state for 4 hours each day. I do not dream in this state; I am fully aware of my surroundings and notice approaching enemies and other events as normal. I still need 8 hours for a long rest.\",\r\n\textraAC : {\r\n\t\tname : \"Composite Plating\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC.\"\r\n\t}\r\n};\r\n// Shifter and its 6 subraces\r\nRaceList[\"shifter-ua\"] = {\r\n\tregExpSearch : /shifter/i,\r\n\tname : \"Shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at the end of their teens and live around 100 years\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity and +1 to other ability score depending on type of shifter\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\ttrait : \"Shifter (+1 Dexterity and +1 to other ability score depending on type of shifter)\\n   Use the \\\"Racial Options\\\" button to select type of shifter.\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and another bonus depending on the type of shifter.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"shifter-ua\", \"beasthide\", {\r\n\tregExpSearch : /beasthide/i,\r\n\tname : \"Beasthide shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Beasthide shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 1, 1, 0, 0, 0],\r\n\ttrait : \"Beasthide Shifter (+1 Dexterity, +1 Constitution)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain a +1 bonus to my AC.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"cliffwalk\", {\r\n\tregExpSearch : /cliffwalk/i,\r\n\tname : \"Cliffwalk shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Cliffwalk shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Cliffwalk Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain a climb speed of 30 feet.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"longstride\", {\r\n\tregExpSearch : /longstride/i,\r\n\tname : \"Longstride shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Longstride shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Longstride Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I can use the Dash action as a bonus action.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"longtooth\", {\r\n\tregExpSearch : /(longtooth|longteeth)/i,\r\n\tname : \"Longtooth shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Longtooth shifters\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\blongtooth\\b/i,\r\n\t\tname : \"Longtooth\",\r\n\t\tsource : [[\"UA:E\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Only while shifted; Target up to my size is grappled\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 1, 0, 0, 0, 0],\r\n\ttrait : \"Longtooth Shifter (+1 Strength, +1 Dexterity)\\nShifting: On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again. While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and, as an action, I can make can make a bite attack. This is a melee weapon attack that uses Strength and deals 1d6 piercing damage. If this attack hits a target that is my size or smaller, the target is also grappled.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"razorclaw\", {\r\n\tregExpSearch : /razorclaw/i,\r\n\tname : \"Razorclaw shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Razorclaw shifters\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\brazorclaw\\b/i,\r\n\t\tname : \"Razorclaw\",\r\n\t\tsource : [[\"UA:E\", 2]],\r\n\t\tdamage : [1, \"\", \"slashing\"],\r\n\t\tdescription : \"Only while shifted, use instead of unarmed strike: Can use as bonus action; Finesse\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Razorclaw Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and, as a bonus action, I can make an unarmed strike that can use my Dexterity for the attack roll and damage, dealing slashing damage.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"wildhunt\", {\r\n\tregExpSearch : /wildhunt/i,\r\n\tname : \"Wildhunt shifter\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tplural : \"Wildhunt shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 1, 0, 0, 1, 0],\r\n\ttrait : \"Wildhunt Shifter (+1 Dexterity, +1 Wisdom)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain advantage on all Wisdom-based checks and saving throws.\"\r\n});\r\n\r\n// 12 variants of the Dragonmark feat\r\nFeatsList[\"dragonmark-ua\"] = {\r\n\tname : \"Dragonmark\",\r\n\tsource : [[\"UA:E\", 6]],\r\n\tdescription : \"Select the type of dragonmark using the little square button in this feat line.\",\r\n\tchoices : [\"Detection\", \"Finding\", \"Handling\", \"Healing\", \"Hospitality\", \"Making\", \"Passage\", \"Scribing\", \"Sentinel\", \"Shadow\", \"Storm\", \"Warding\"],\r\n\t\"detection\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Detection, the dragonmark of House Medani, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Detect Magic, Mage Hand\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Detect Thoughts\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Clairvoyance\",\r\n\t\tdescription : \"I learn the Mage Hand cantrip. I can also cast Detect Magic, Detect Thoughts (from 5th level onwards), and Clairvoyance (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"mage hand\", \"detect magic\", \"detect thoughts\", \"clairvoyance\"],\r\n\t\t\tselection : [\"mage hand\", \"detect magic\", \"detect thoughts\", \"clairvoyance\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"finding\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Finding, the dragonmark of House Tharashk, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Identify, Mage Hand\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Locate Object\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Clairvoyance\",\r\n\t\tdescription : \"I learn the Mage Hand cantrip. I can also cast Identify, Locate Object (from 5th level onwards), and Clairvoyance (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"mage hand\", \"identify\", \"locate object\", \"clairvoyance\"],\r\n\t\t\tselection : [\"mage hand\", \"identify\", \"locate object\", \"clairvoyance\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"handling\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Handling, the dragonmark of House Vadalis, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Druidcraft, Speak with Animals\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Beast Sense\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Conjure Animals\",\r\n\t\tdescription : \"I learn the Druidcraft cantrip. I can also cast Speak with Animals, Beast Sense (from 5th level onwards), and Conjure Animals (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"druidcraft\", \"speak with animals\", \"beast sense\", \"conjure animals\"],\r\n\t\t\tselection : [\"druidcraft\", \"speak with animals\", \"beast sense\", \"conjure animals\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"healing\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Healing, the dragonmark of House Jorasco, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Cure Wounds, Spare the Dying\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Lesser Restoration\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Revivify\",\r\n\t\tdescription : \"I learn the Spare the Dying cantrip. I can also cast Cure Wounds, Lesser Restoration (from 5th level onwards), and Revivify (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"spare the dying\", \"cure wounds\", \"lesser restoration\", \"revivify\"],\r\n\t\t\tselection : [\"spare the dying\", \"cure wounds\", \"lesser restoration\", \"revivify\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"hospitality\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Hospitality, the dragonmark of House Ghallanda, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Charisma as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Friends, Unseen Servant\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Rope Trick\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Leomund's Tiny Hut\",\r\n\t\tdescription : \"I learn the Friends cantrip. I can also cast Unseen Servant, Rope Trick (from 5th level onwards), and Leomund's Tiny Hut (from 9th level onwards), each once per long rest. Charisma is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tspells : [\"friends\", \"unseen servant\", \"rope trick\", \"leomund's tiny hut\"],\r\n\t\t\tselection : [\"friends\", \"unseen servant\", \"rope trick\", \"leomund's tiny hut\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"making\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Making, the dragonmark of House Cannith, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Identify, Mending\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Magic Weapon\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Fabricate\",\r\n\t\tdescription : \"I learn the Mending cantrip. I can also cast Identify, Magic Weapon (from 5th level onwards), and Fabricate (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"mending\", \"identify\", \"magic weapon\", \"fabricate\"],\r\n\t\t\tselection : [\"mending\", \"identify\", \"magic weapon\", \"fabricate\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"passage\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Passage, the dragonmark of House Orien, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Expeditious Retreat, Light\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Misty Step\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Teleportation Circle\",\r\n\t\tdescription : \"I learn the Light cantrip. I can also cast Expeditious Retreat, Misty Step (from 5th level onwards), and Teleportation Circle (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"light\", \"expeditious retreat\", \"misty step\", \"teleportation circle\"],\r\n\t\t\tselection : [\"light\", \"expeditious retreat\", \"misty step\", \"teleportation Circle\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"scribing\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Scribing, the dragonmark of House Sivis, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Comprehend Languages, Message\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Sending\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Tongues\",\r\n\t\tdescription : \"I learn the Message cantrip. I can also cast Comprehend Languages, Sending (from 5th level onwards), and Tongues (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"message\", \"comprehend languages\", \"sending\", \"tongues\"],\r\n\t\t\tselection : [\"message\", \"comprehend languages\", \"sending\", \"tongues\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"sentinel\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Sentinel, the dragonmark of House Deneith, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Blade Ward, Compelled Duel\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Blur\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Protection from Energy\",\r\n\t\tdescription : \"I learn the Blade Ward cantrip. I can also cast Compelled Duel, Blur (from 5th level onwards), and Protection from Energy (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"blade ward\", \"compelled duel\", \"blur\", \"protection from energy\"],\r\n\t\t\tselection : [\"blade ward\", \"compelled duel\", \"blur\", \"protection from energy\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"shadow\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Shadow, the dragonmark of House Phiarlan and House Thuranni, and are a member of one of those houses.\\n   You gain the ability to innately cast spells and cantrips, using Charisma as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Dancing Lights, Disguise Self\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Darkness\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Nondetection\",\r\n\t\tdescription : \"I learn the Dancing Lights cantrip. I can also cast Disguise Self, Darkness (from 5th level onwards), and Nondetection (from 9th level onwards), each once per long rest. Charisma is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tspells : [\"dancing lights\", \"disguise self\", \"darkness\", \"nondetection\"],\r\n\t\t\tselection : [\"dancing lights\", \"disguise self\", \"darkness\", \"nondetection\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"storm\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Storm, the dragonmark of House Lyrander, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Fog Cloud, Shocking Grasp\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Gust of Wind\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Sleet Storm\",\r\n\t\tdescription : \"I learn the Shocking Grasp cantrip. I can also cast Fog Cloud, Gust of Wind (from 5th level onwards), and Sleet Storm (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"shocking grasp\", \"fog cloud\", \"gust of wind\", \"sleet storm\"],\r\n\t\t\tselection : [\"shocking grasp\", \"fog cloud\", \"gust of wind\", \"sleet storm\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"warding\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Warding, the dragonmark of House Kundarak, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Alarm, Resistance\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Arcane Lock\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Magic Circle\",\r\n\t\tdescription : \"I learn the Resistance cantrip. I can also cast Alarm, Arcane Lock (from 5th level onwards), and Magic Circle (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"resistance\", \"alarm\", \"arcane lock\", \"magic circle\"],\r\n\t\t\tselection : [\"resistance\", \"alarm\", \"arcane lock\", \"magic circle\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t}\r\n}\r\n\r\n// Adds a subclass for the Wizard, called \"Tradition of the Artificer\"\r\nAddSubClass(\"wizard\", \"artificer-ua\", {\r\n\tregExpSearch : /^((?=.*(wizard|mage|magus))(?=.*artificer))|(?=.*infuser).*$/i,\r\n\tsubname : \"Tradition of the Artificer\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tfullname : \"Wizard (Artificer)\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Infuse Potions\",\r\n\t\t\tsource : [[\"UA:E\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce magic potions if I spend 10 minutes and expend a spell slot\",\r\n\t\t\t\t\"I can not regain the spell slot until the potion is consumed or a week has passed\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Infuse Scrolls\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce a scroll after a short rest if I spend 10 minutes and my Arcane Recovery\",\r\n\t\t\t\t\"I subtract the spell's level from the levels worth of slots I regain using Arcane Recovery\",\r\n\t\t\t\t\"This reduction applies till the scroll is used and I finish a long rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Infuse Weapons and Armor\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can spend 10 minutes to produce a magic weapon, armor, a shield, or ammunition\",\r\n\t\t\t\t\"The item retains its magic for 8 hours and the spell slot I expend is:\",\r\n\t\t\t\t\"2nd: +1 ammunition (20 pieces), 3rd: +1 weapon or +1 shield, 4th: +1 armor,\",\r\n\t\t\t\t\"5th: +2 weapon or +2 ammunition (20 pieces), 6th: +3 armor.\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"1 weapon or armor\", \"1 weapon or armor\", \"1 weapon or armor\", \"1 weapon or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\"]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Superior Artificer\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can create one additional scroll, potion, weapon, or armor when I use Infuse\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Artificer\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce a variety of magic items from Tables A and B from the DMG\",\r\n\t\t\t\t\"It takes 1 week for such an item and I cannot do it again for a month\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"Month\"\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20150406_Modifying-Classes.js\r\n// This file adds the content from the Unearthed Arcana: Modifying Classes article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MC\"] = {\r\n\tname : \"Unearthed Arcana: Modifying Classes\",\r\n\tabbreviation : \"UA:MC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA3_ClassDesignVariants.pdf\",\r\n\tdate : \"2015/04/06\"\r\n};\r\n// Also needs the PHB source, as the spell-less ranger uses stuff from there\r\nif (!SourceList.P) {\r\n\tSourceList.P = {\r\n\t\tname : \"Player's Handbook\",\r\n\t\tabbreviation : \"PHB\",\r\n\t\tgroup : \"Primary Sources\",\r\n\t\turl : \"https://dnd.wizards.com/products/rpg_playershandbook\",\r\n\t\tdate : \"2014/08/19\"\r\n\t};\r\n};\r\n\r\n// Adds a subclass for the Sorcerer, called \"Favored Soul\", but only have it added at the very end, after all cleric subclasses have been defined\r\nRunFunctionAtEnd(function() {\r\n\tvar SorcererSubclassFavoredSoul = AddSubClass(\"sorcerer\", \"favored soul-ua\", {\r\n\t\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\t\tsubname : \"Favored Soul\",\r\n\t\tsource : [[\"UA:MC\", 8]],\r\n\t\tfullname : \"Favored Soul\",\r\n\t\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature1\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tsource : [[\"UA:MC\", 9]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription: desc(\"I gain proficiency with light armor, medium armor, shields, and simple weapons\"),\r\n\t\t\t\tarmorProfs : [true, true, false, true],\r\n\t\t\t\tweaponProfs : [true, false]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature1.1\" : {\r\n\t\t\t\tname : \"Chosen of the Gods\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t'Choose a Cleric Domain using the \"Choose Feature\" button above',\r\n\t\t\t\t\t\"I add the chosen domain's spells to my known spells, when they are of a level I can cast\",\r\n\t\t\t\t\t\"These count as sorcerer spells, but do not count against the number of spells I can know\",\r\n\t\t\t\t]),\r\n\t\t\t\tchoices : []\r\n\t\t\t},\r\n\t\t\t\"subclassfeature14\" : {\r\n\t\t\t\tname : \"Divine Wings\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I sprout feathered or bat wings from my back unless blocked by armor\",\r\n\t\t\t\t\t\"I gain a fly speed equal to my current speed until I dismiss the wings as a bonus action\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/stop)\"]],\r\n\t\t\t\tspeed : { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t\t},\r\n\t\t\t\"subclassfeature18\" : {\r\n\t\t\t\tname : \"Power of the Chosen\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 18,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When I cast a spell I gained from the Chosen of the Gods class feature, I heal myself\",\r\n\t\t\t\t\t\"I regain a number of HP equal to my Charisma modifier (minimum 1) + the spell's level\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\t// Adding all cleric domain spells to the options of the first level ability \"Chosen of the Gods\"\r\n\tvar FSfeat = ClassSubList[SorcererSubclassFavoredSoul].features[\"subclassfeature1.1\"];\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar cDomain = ClassSubList[ClassList.cleric.subclasses[1][i]];\r\n\t\tif (cDomain && cDomain.spellcastingExtra) {\r\n\t\t\tvar eSpells = newObj(cDomain.spellcastingExtra);\r\n\t\t\teSpells[100] = \"AddToKnown\";\r\n\t\t\tvar dSource = cDomain.source ? cDomain.source : cDomain.features[\"subclassfeature1\"] && cDomain.features[\"subclassfeature1\"].source ? cDomain.features[\"subclassfeature1\"].source :[[\"UA:MC\", 8]];\r\n\t\t\t\r\n\t\t\tvar suffix = 1;\r\n\t\t\tvar entryDoNm = cDomain.subname;\r\n\t\t\twhile (FSfeat.choices.indexOf(entryDoNm) !== -1) {\r\n\t\t\t\tsuffix += 1;\r\n\t\t\t\tentryDoNm = cDomain.subname + \" (\" + suffix + \")\";\r\n\t\t\t};\r\n\t\t\tFSfeat.choices.push(entryDoNm);\r\n\t\t\tFSfeat[entryDoNm.toLowerCase()] = {\r\n\t\t\t\tname : \"Chosen of the Gods: \" + cDomain.subname,\r\n\t\t\t\tsource : dSource,\r\n\t\t\t\tspellcastingExtra : eSpells,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I add the \" + cDomain.subname.toLowerCase() + \" spells to my known spells, if they are of a level I can cast\",\r\n\t\t\t\t\t\"These count as sorcerer spells, but do not count against the number of spells I can know\",\r\n\t\t\t\t]),\r\n\t\t\t};\r\n\t\t};\r\n\t};\r\n});\r\n\r\n// A version of the ranger, the spell-less ranger\r\nClassList[\"spell-less ranger\"] = {\r\n\tregExpSearch : /^(?=.*spell.?less)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Spell-less Ranger\",\r\n\tsource : [[\"UA:MC\", 6]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tabilitySave : 1,\r\n\tabilitySaveAlt : 2,\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 10,\r\n\tsaves : [\"Str\", \"Dex\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Spell-less Ranger starting equipment:\\n \\u2022 Scale mail -or- leather armor;\\n \\u2022 Two shortswords -or- two simple melee weapons;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Ranger Archetype\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"favored enemy\" : ClassList.ranger.features[\"favored enemy\"],\r\n\t\t\"natural explorer\" : ClassList.ranger.features[\"natural explorer\"],\r\n\t\t\"combat superiority\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special Maneuvers\",\r\n\t\t\t\t\"I regain all superiority dice after a short rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"d8\",\r\n\t\t\tusages : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : n < 9 ? 4 : n < 17 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"combat maneuvers\" : {\r\n\t\t\tname : \"Combat Maneuvers\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page',\r\n\t\t\t\t\"I can use a Maneuver by expending a superiority die (only one Maneuver per attack)\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\treturn (n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6) + \" maneuvers known\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Maneuver\",\r\n\t\t\textrachoices : [\"Commander's Strike\", \"Disarming Attack\", \"Distracting Strike\", \"Evasive Footwork\", \"Feinting Attack\", \"Goading Attack\", \"Lunging Attack\", \"Maneuvering Attack\", \"Menacing Attack\", \"Parry\", \"Precision Attack\", \"Pushing Attack\", \"Rally\", \"Riposte\", \"Sweeping Attack\", \"Trip Attack\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"commander's strike\" : {\r\n\t\t\t\tname : \"Commander's Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I forgo one attack of my Attack action to use a bonus action to direct an ally I see/hear\",\r\n\t\t\t\t\t\"The ally can use a reaction to make an attack, adding the superiority die to damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t\t},\r\n\t\t\t\"disarming attack\" : {\r\n\t\t\t\tname : \"Disarming Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Strength save or drops a held object of my choice to its feet\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"distracting strike\" : {\r\n\t\t\t\tname : \"Distracting Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"The next attack of an ally before my next turn has adv. against the creature\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"evasive footwork\" : {\r\n\t\t\t\tname : \"Evasive Footwork\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Use when moving; I add the superiority die to my AC until I stop moving\")\r\n\t\t\t},\r\n\t\t\t\"feinting attack\" : {\r\n\t\t\t\tname : \"Feinting Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can feint to gain adv. on my next attack against a target within 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"goading attack\" : {\r\n\t\t\t\tname : \"Goading Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wis save or has disadv. vs. other targets until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"lunging attack\" : {\r\n\t\t\t\tname : \"Lunging Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can spend a superiority die to increase the reach of a melee weapon attack by 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"maneuvering attack\" : {\r\n\t\t\t\tname : \"Maneuvering Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Ally can use reaction to move half speed without opportunity attack from the target\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"menacing attack\" : {\r\n\t\t\t\tname : \"Menacing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wisdom save or is frightened of me until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"parry\" : {\r\n\t\t\t\tname : \"Parry\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"When damaged in melee, I can use a reaction to reduce it by superiority die + Dex mod\"),\r\n\t\t\t\taction : [[\"reaction\", \" (when damaged in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"precision attack\" : {\r\n\t\t\t\tname : \"Precision Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"I add the superiority die to my attack roll, either before or after rolling\")\r\n\t\t\t},\r\n\t\t\t\"pushing attack\" : {\r\n\t\t\t\tname : \"Pushing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be pushed up to 15 ft away\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"rally\" : {\r\n\t\t\t\tname : \"Rally\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Ally that can see/hear me gets temporary HP equal to superiority die + Charisma mod\"),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"riposte\" : {\r\n\t\t\t\tname : \"Riposte\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When missed in melee, I can use my reaction to make one melee attack vs. the attacker\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (after missed in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping attack\" : {\r\n\t\t\t\tname : \"Sweeping Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature and a second creature is within 5 ft of the first\",\r\n\t\t\t\t\t\"If the original attack roll hits this second creature, it takes the superiority die in damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"trip attack\" : {\r\n\t\t\t\tname : \"Trip Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"fighting style\" : ClassList.ranger.features[\"fighting style\"],\r\n\t\t\"poultices\" : {\r\n\t\t\tname : \"Poultices\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In 1 hour, I can create a number of poultices equal to my Wisdom modifier (min 1)\",\r\n\t\t\t\t\"The number of poultices I can have with me can't exceed my Wisdom modifier (min 1)\",\r\n\t\t\t\t\"I can applying a poultice in 1 minute, healing a creature; Poultices last for 24 hours\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\treturn \"heals \" + Math.ceil(n/2) + \"d6\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"primeval awareness\" : {\r\n\t\t\tname : \"Primeval Awareness\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can focus my awareness for 1 min, once per short rest\",\r\n\t\t\t\t\"Out to 1 mile (6 in favored terrain), I sense if certain types of creatures are present\",\r\n\t\t\t\t\"These types are: aberration, celestial, dragon, elemental, fey, fiend, and undead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Archetype\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose a Ranger Archetype you strive to emulate and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose either Spell-less Beast Master or Spell-less Hunter\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"land's stride\" : ClassList.ranger.features[\"land's stride\"],\r\n\t\t\"natural antivenom\" : {\r\n\t\t\tname : \"Natural Antivenom\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves vs. poison and resistance to poison damage\",\r\n\t\t\t\t\"When I use a poultice, in addition to healing, I cure one poison effect on the creature\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"poison\"] },\r\n\t\t\tdmgres : [\"Poison\"]\r\n\t\t},\r\n\t\t\"hide in plain sight\" : ClassList.ranger.features[\"land's stride\"],\r\n\t\t\"call natural allies\" : {\r\n\t\t\tname : \"Call Natural Allies\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in an area that is my Favored Terrain, I can call on beasts within 1 mile to help\",\r\n\t\t\t\t\"The DM determines the beasts: 1\\xD7CR 2, 2\\xD7CR 1, 4\\xD7CR 1/2, or 8\\xD7CR 1/4\",\r\n\t\t\t\t\"They will fight alongside me, are friendly to me and my allies, and help up to 1 hour\",\r\n\t\t\t\t\"After I use these feature, I can't use it in the same general area again for 24 hours\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"vanish\" : ClassList.ranger.features[\"vanish\"],\r\n\t\t\"relentless\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t},\r\n\t\t\"feral senses\" : ClassList.ranger.features[\"feral senses\"],\r\n\t\t\"foe slayer\" : ClassList.ranger.features[\"foe slayer\"]\r\n\t}\r\n};\r\n// Create the Hunter subclass for the spell-less ranger\r\nvar UAMC_SLR_Hunter = newObj(ClassSubList[\"ranger-hunter\"]);\r\nUAMC_SLR_Hunter.source = [\"UA:MC\", 6];\r\ndelete UAMC_SLR_Hunter.fullname;\r\nUAMC_SLR_Hunter.regExpSearch = /^(?=.*spell.?less)(?!.*(monster|barbarian|bard|cleric|druid|fighter|monk|paladin|rogue|sorcerer|warlock|wizard))(?=.*(hunter|huntress|hunts(wo)?m(e|a)n)).*$/i;\r\nAddSubClass(\"spell-less ranger\", \"hunter-ua\", UAMC_SLR_Hunter);\r\n// Create the Beast Master subclass for the spell-less ranger\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tvar UAMC_SLR_Beast_Master = newObj(ClassSubList[\"ranger-beast master\"]);\r\n\tUAMC_SLR_Beast_Master.source = [\"UA:MC\", 6];\r\n\tdelete UAMC_SLR_Beast_Master.fullname;\r\n\tUAMC_SLR_Beast_Master.regExpSearch = /^(?=.*spell.?less)(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural|green))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i;\r\n\tUAMC_SLR_Beast_Master.features[\"subclassfeature15\"] = {\r\n\t\tname : \"Beastly Coordination\",\r\n\t\tsource : [[\"UA:MC\", 7]],\r\n\t\tminlevel : 15,\r\n\t\tdescription: desc(\"My companion can, as a reaction, halve an attack's damage from an attacker that I see\")\r\n\t};\r\n\tAddSubClass(\"spell-less ranger\", \"beast master-ua\", UAMC_SLR_Beast_Master);\r\n};\r\n\n// ua_20150504_Waterborne-Adventures.js\r\n// This file adds the content from the Unearthed Arcana: Waterborne Adventures article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:WA\"] = {\r\n\tname : \"Unearthed Arcana: Waterborne Adventures\",\r\n\tabbreviation : \"UA:WA\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Waterborne_v3.pdf\",\r\n\tdate : \"2015/05/04\"\r\n};\r\n\r\n// New Fighting Style\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Mariner\", { // Still valid 2021-09-21\r\n\tname : \"Mariner Fighting Style\",\r\n\tsource : [[\"UA:WA\", 3]],\r\n\tdescription: desc([\r\n\t\t\"While not wearing heavy armor or using a shield, I gain +1 AC and swim/climb speed\",\r\n\t\t\"The swimming and climbing speeds are equal to my current walking speed\",\r\n\t]),\r\n\tspeed : {\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor and not using a shield.\",\r\n\t\tstopeval : function (v) { return v.heavyArmor || v.usingShield; }\r\n\t}\r\n});\r\n\r\n// Add the Minotaur (Krynn) race and its three variants\r\nRaceList[\"minotaur-ua\"] = {\r\n\tregExpSearch : /minotaur/i,\r\n\tname : \"Minotaur\",\r\n\tsource : [[\"UA:WA\", 1]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (water)\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"UA:WA\", 1]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 10, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Advantage on all checks made to shove a creature, but not to avoid being shoved myself\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\r\n\theight : \" are well over 6 feet tall\",\r\n\tweight : \" weigh around 300 lb\",\r\n\theightMetric : \" are well over 1,8 metres tall\",\r\n\tweightMetric : \" weigh around 135 kg\",\r\n\tscorestxt : \"+1 Strength, and either +1 Intelligence, +1 Wisdom, or another +1 Strength\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\ttrait : \"Minotaur (+1 Strength, and either +1 Int, Wis, or Str) use \\\"Racial Options\\\" button\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\",\r\n\tfeatures : {\r\n\t\t\"goring rush\" : {\r\n\t\t\tname : \"Goring Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\r\n\t\t},\r\n\t\t\"hammering horns\" : {\r\n\t\t\tname : \"Hammering Horns\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"minotaur-ua\", \"cunning\", {\r\n\tregExpSearch : /(cunning|wisdom)/i,\r\n\tname : \"Minotaur [Cunning]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Minotaur [cunning] (+1 Strength, +1 Wisdom)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\nAddRacialVariant(\"minotaur-ua\", \"intellect\", {\r\n\tregExpSearch : /(intellect|intelligence)/i,\r\n\tname : \"Minotaur [Intellect]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 1, 0, 0],\r\n\ttrait : \"Minotaur [intellect] (+1 Strength, +1 Intelligence)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\nAddRacialVariant(\"minotaur-ua\", \"strength\", {\r\n\tregExpSearch : /(strength|strong|\\bmight\\b)/i,\r\n\tname : \"Minotaur [Strength]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\ttrait : \"Minotaur [strength] (+2 Strength)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\n\n// ua_20150803_Modern-Magic.js\r\n// This file adds the content from the Unearthed Arcana: Modern Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MM\"] = {\r\n\tname : \"Unearthed Arcana: Modern Magic\",\r\n\tabbreviation : \"UA:MM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Modern\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_ModernMagic.pdf\",\r\n\tdate : \"2015/08/03\"\r\n};\r\n\r\n// A subclass for the Cleric, called \"City Domain\"\r\nAddSubClass(\"cleric\", \"city domain-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(urban|city)).*$/i,\r\n\tsubname : \"City Domain\",\r\n\tsource : [[\"UA:MM\", 1]],\r\n\tspellcastingExtra : [\"comprehend languages\", \"remote access-ua\", \"find vehicle-ua\", \"heat metal\", \"lightning bolt\", \"protection from ballistics-ua\", \"locate creature\", \"synchronicity-ua\", \"commune with city-ua\", \"shutdown-ua\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrip\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn the On/Off cantrip if I didn't already know it\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (On/Off)\",\r\n\t\t\t\tspells : [\"on/off-ua\"],\r\n\t\t\t\tselection : [\"on/off-ua\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with sidearms and land vehicles\"),\r\n\t\t\tweaponProfs : [false, false, [\"Sidearms\"]],\r\n\t\t\ttoolProfs : [\"Vehicles (land)\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Heart of the City\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While I'm in a city, I can gain adv. on a Cha (Deception, Intimidation, Persuasion) check\",\r\n\t\t\t\t\"I'm considered proficient with the appropriate skill for that one check\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Spirits of the City\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I make all city utilities in 30 ft either stop or work perfectly for 1 min\",\r\n\t\t\t\t\"Additionally, all hostiles within 30 ft must make a Cha save at the time of use\",\r\n\t\t\t\t\"If failed, it is either knocked prone or restrained (my choice) by city hazards\",\r\n\t\t\t\t\"A restrained target can escape with an Athletics or Acrobatics check vs. my spell DC\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Block Watch\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"While in an urban environment, I'm proficient and expertise in Insight and Perception\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Express Transit\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport from one mass transit site to another in the same city\",\r\n\t\t\t\t\"This works just like a Teleport spell; Mass transits sites include bus/train/subway stops\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Warlock, called \"Ghost in the Machine\"\r\nAddSubClass(\"warlock\", \"ghost in the machine-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*warlock)(?=.*ghost)(?=.*(machine|computer)).*$/i,\r\n\tsubname : \"the Ghost in the Machine\",\r\n\tsource : [[\"UA:MM\", 2]],\r\n\tspellcastingExtra : [\"infallible relay-ua\", \"remote access-ua\", \"arcane hacking-ua\", \"digital phantom-ua\", \"haywire-ua\", \"invisibility to cameras-ua\", \"conjure knowbot-ua\", \"system backdoor-ua\", \"shutdown-ua\", \"synchronicity-ua\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I am proficient with hacking tools and know the On/Off cantrip\"),\r\n\t\t\ttoolProfs : [\"Hacking tools\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (On/Off)\",\r\n\t\t\t\tspells : [\"on/off-ua\"],\r\n\t\t\t\tselection : [\"on/off-ua\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Information Surge\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause a computerized device within 30 ft to make an Int save\",\r\n\t\t\t\t\"If the device is held/used by a creature, that creature makes the saving throw\",\r\n\t\t\t\t\"If the device is not held/used, it makes a save with a +0 modifier and disadvantage\",\r\n\t\t\t\t\"On a failed save, the device stops functioning until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wire Walk\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can teleport through a hardwired network to a point I can see\",\r\n\t\t\t\t\"Both where I start and end must be a device, cable, or socket connected to the network\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Personal Encryption\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on saves vs. scrying, thought detection, and magics for learning my location\",\r\n\t\t\t\t\"If the effect doesn't let me a save, the user has disadv. on checks to use it on me, if any\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Technovirus\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I make a melee spell attack to infect someone with a techno-organic virus\",\r\n\t\t\t\t\"The target takes 8d10 psychic damage, or half that with a successful Con save\",\r\n\t\t\t\t\"If it failed its save, I can use an action to cast Command on it while it remains infected\",\r\n\t\t\t\t\"It makes its save vs. this Command with disadvantage and I can cast it at any range\",\r\n\t\t\t\t\"It is infected until my next long rest; The virus can be removed with Lesser Restoration\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Wizard, called \"Technomancy\" (contributed by AKA_Sketch)\r\nAddSubClass(\"wizard\", \"technomancy-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /technomancy|technomancer/i,\r\n\tsubname : \"Technomancy\",\r\n\tsource : [[\"UA:MM\", 3]],\r\n\tfullname : \"Technomancer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\": {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I gain proficiency with sidearms and hacking tools\"),\r\n\t\t\tweaponProfs : [false, false, [\"Sidearms\"]],\r\n\t\t\ttoolProfs : [\"Hacking tools\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\": {\r\n\t\t\tname : \"Technological Savant\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use a single tablet computer (or similar) instead of a spellbook\",\r\n\t\t\t\t\"Spells copied into this device cost half the normal amount of gp\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\": {\r\n\t\t\tname : \"Program Spell\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast a spell into a device of at least smartphone-level of computing power\",\r\n\t\t\t\t\"Variables of the spell are chosen at time of casting; I can have only one active at a time\",\r\n\t\t\t\t\"As an action within the next 48 hours, the spell can be cast from the device\",\r\n\t\t\t\t\"I can't activate a concentration spell in this way if I am concentrating on another spell\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\": {\r\n\t\t\tname : \"Online Casting\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast a spell, that is not area-of-effect, through networked electronic devices\",\r\n\t\t\t\t\"If the spell requires sight/hearing, the audio/visual must be transmitted electronically\",\r\n\t\t\t\t\"The spell's range is determined from me to my device plus from the target to its device\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\": {\r\n\t\t\tname : \"Chained Device\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use a held/worn tablet computer to concentrate on a spell I cast instead of me\",\r\n\t\t\t\t\"If the device is separated from me, turned off, or broken, the effect is lost\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a new Warlock invocation\r\nAddWarlockInvocation(\"Arcane Gunslinger (prereq: Pact of the Blade)\", { // Still valid 2021-09-21\r\n\tname : \"Arcane Gunslinger\",\r\n\tdescription : desc([\r\n\t\t\"My pact weapon can take firearm forms, and I can transform magical firearms into one\"\r\n\t]),\r\n\tsource : [[\"UA:MM\", 3]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isRangedWeapon && /firearm/i.test(v.theWea.type + \" \" + v.theWea.list) && /\\bpact\\b/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If I include the word 'Pact' in a firearm weapon's name, it gets treated as my Pact Weapon.\",\r\n\t\t\t90\r\n\t\t]\r\n\t}\r\n});\r\n\r\n/*\tAdds 14 spells that are, according to the article, 'suitable' for the Sorcerer, Warlock, or Wizard spell list. 1 of those is also considered suitable for the Paladin spell list.\r\n\t\r\n\tStrangely enough, adding all these spells to the Warlock spell list makes the Ghost in the Machine's Expanded Spell List class feature completely useless\r\n*/\r\nSpellsList[\"arcane hacking-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Arcane Hacking\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Hacking tools\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Adv on Int (hacking tools) vs. encryption; Use Int (hacking tools) to remove protective spells; See book\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You gain advantage on all Intelligence checks using hacking tools to break software encryption or online security when using a foreign system. This spell also allows you to break 2nd-level and lower protective spells such as arcane lock or glyph of warding by making an Intelligence check using hacking tools against the spell save DC of the spell's caster.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can attempt to counteract a spell set to secure the foreign system if the spell's level is equal to or less than the level of the spell slot you used.\"\r\n};\r\nSpellsList[\"commune with city-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Commune with City\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tritual : true,\r\n\tlevel : 5,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn up to three facts about surrounding city, out to 1 mile above- or 600 ft underground; see B\",\r\n\tdescriptionFull : \"You briefly become one with the city and gain knowledge of the surrounding area. Aboveground, this spell gives you knowledge of the area within 1 mile of you. In sewers and other underground settings, you gain knowledge of the area within 600 feet of you.\" + \"\\n   \" + \"You instantly gain knowledge of up to three facts of your choice about any of the following subjects as they relate to the area:\" + \"\\n  \\u2022 \" + \"Terrain and bodies of water\" + \"\\n  \\u2022 \" + \"Prevalent buildings, plants, animals, or intelligent creatures\" + \"\\n  \\u2022 \" + \"Powerful (CR 1 or higher) celestials, fey, fiends, elementals, or undead\" + \"\\n  \\u2022 \" + \"Influences from other planes of existence\" + \"\\n  \\u2022 \" + \"Electrical currents, wireless signals, and active transit lines and tracks\" + \"\\n\\n   \" + \"For example, you could determine the location of powerful undead in the area, the location of major sources of electrical power or interference, and the location of any nearby parks.\"\r\n};\r\nSpellsList[\"conjure knowbot-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Knowbot\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"500 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Create bot in touched device; computer checks 1 bns instead of 1 a for me; SL5: 1 h, 1000 ft, see book\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You touch a single computerized device or computer system to conjure a knowbot\\u2014a partially sentient piece of software imprinted with vestiges of your own skills and computer abilities. For the duration of the spell, you can use a bonus action to have the knowbot execute a computer-related task that would normally require an action. The knowbot makes Intelligence ability checks using your ability score and proficiency bonuses (including your proficiency with hacking tools, if applicable).\" + \"\\n   \" + \"You have a limited telepathic bond with the knowbot, out to a range of 500 feet from the device or system where the knowbot was conjured. If you move beyond this range, the knowbot disappears in 2d4 rounds, as if the duration of the spell had expired. Moving within range again immediately reestablishes the bond. The knowbot is bound to the system in which it was created, and it stays there until it is dismissed or the spell's duration expires.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the spell's duration increases to 1 hour. Additionally, your telepathic bond with the knowbot is effective out to a range of 1,000 feet, and if you leave the range of the bond, the knowbot continues performing its last directed task until the spell expires.\"\r\n};\r\nSpellsList[\"digital phantom-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Digital Phantom\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A small piece of copper wire\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Me and any others in same computer system +10 on Int to avoid detection; leave no trace on exit\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell works to actively hide your presence within a computer system. For the spell's duration, you and any other users you choose on your local network gain a +10 bonus to Intelligence checks to avoid detection by administrators, knowbots, tracking software, and the like. Whenever you and your chosen users leave any computer system you are working in while this spell is in effect, all trace of your previous presence in that system is erased.\"\r\n};\r\nSpellsList[\"find vehicle-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Find Vehicle\",\r\n\tclasses : [\"paladin\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Gain services of land spirit-vehicle; expertise, share spells with it; SL3: water, SL5: air, SL7: any; see B\",\r\n\tdescriptionFull : \"You summon a spirit that assumes the form of a nonmilitary land vehicle of your choice, appearing in an unoccupied space within range. The vehicle has the statistics of a normal vehicle of its sort, though it is celestial, fey, or fiendish (your choice) in origin. The physical characteristics of the vehicle reflect its origin to some degree. For example, a fiendish SUV might be jet black in color, with tinted windows and a sinister-looking front grille.\" + \"\\n   \" + \"You have a supernatural bond with the conjured vehicle that allows you to drive beyond your normal ability. While driving the conjured vehicle, you are considered proficient with vehicles of its type, and you add double your proficiency bonus to ability checks related to driving the vehicle. While driving the vehicle, you can make any spell you cast that targets only you also target the vehicle.\" + \"\\n   \" + \"If the vehicle drops to 0 hit points, it disappears, leaving behind no physical form. You can also dismiss the vehicle at any time as an action, causing it to disappear.\" + \"\\n   \" + \"You can't have more than one vehicle bonded by this spell at a time. As an action, you can release the vehicle from its bond at any time, causing it to disappear.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can conjure a nonmilitary water vehicle large enough to carry six Medium creatures. When you cast this spell using a spell slot of 5th level or higher, you can conjure a nonmilitary air vehicle large enough to carry ten Medium creatures. When you cast this spell using a spell slot of 7th level or higher, you can conjure any type of vehicle, subject to the DM's approval.\"\r\n};\r\nSpellsList[\"haywire-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Haywire\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"10 ft(+5 ft/SL) rad all electronic devices go haywire, see B; for hold devices, crea gets to save\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell plays havoc with electronic devices, making the use of such devices all but impossible. Each electronic device in a 10-foot-radius sphere centered on a point you choose within range is subject to random behavior while it remains within the area. A device not held by a creature is automatically affected. If an electronic device is held by a creature, that creature must succeed on a Wisdom saving throw or have the device affected by the spell.\" + \"\\n   \" + \"At the start of each of your turns, roll a d6 for each affected device to determine its behavior. Except where otherwise indicated, that behavior lasts until the start of your next turn while this spell is in effect.\" + \"\\n\\n\" + toUni(\"d10\") + \"\\t\" + toUni(\"Behavior\") + \"\\n  \" + \"1\\tThe device shuts down and must be restarted. Do not roll again for this device until it is restarted.\\n2–4\\tThe device does not function.\" + \"\\n  \" + \"5\\tThe device experiences a power surge, causing an electric shock to the wielder (if any) and one random creature within 5 feet of the device. Each affected creature must make a Dexterity saving throw against your spell save DC, taking 6d6 lightning damage on a failed save, or half as much damage on a successful one.\" + \"\\n  \" + \"6\\tThe device is usable as normal.\\n\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the radius of the sphere affected by the spell increases by 5 feet for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"infallible relay-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Infallible Relay\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A mobile phone\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 known crea save or has to answer my call from phone within 100 ft of it; it has to save to end call\",\r\n\tdescriptionFull : \"[Technomagic]\\n   With this spell, you can target any creature with whom you have spoken previously, as long as the two of you are on the same plane of existence. When you cast the spell, the nearest functioning telephone or similar communications device within 100 feet of the target begins to ring. If there is no suitable device close enough to the target, the spell fails.\" + \"\\n   \" + \"The target must make a successful Charisma saving throw or be compelled to answer your call. Once the connection is established, the call is crystal clear and cannot be dropped until the conversation has ended or the spell's duration ends. You can end the conversation at any time, but a target must succeed on a Charisma saving throw to end the conversation.\"\r\n};\r\nSpellsList[\"invisibility to cameras-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Invisibility to Cameras\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 3,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A scrap of black paper\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Up to 4 crea and anything they are wearing or carrying become undetectable for electornic sensors\",\r\n\tdescriptionFull : \"[Technomagic]\\n   Four creatures of your choice within range become undetectable to electronic sensors and cameras for the duration of the spell. Anything a target is wearing or carrying is likewise undetectable as long as it is on the target's person. The targets remain visible to vision.\"\r\n};\r\nSpellsList[\"on/off-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"On/Off\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Activate or deactivate 1 electornic device that has a way of doing so accessible from the outside of it\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This cantrip allows you to activate or deactivate any electronic device within range, as long as the device has a clearly defined on or off function that can be easily accessed from the outside of the device. Any device that requires a software- based shutdown sequence to activate or deactivate cannot be affected by on/off.\"\r\n};\r\nSpellsList[\"protection from ballistics-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Protection from Ballistics\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 3,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A shell casing\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"1 crea gains resistance to nonmagical ballistic damage\",\r\n\tdescriptionFull : \"This spell enchants the flesh of the target against the impact of bullets. Until the spell ends, the target has resistance to nonmagical ballistic damage.\"\r\n};\r\nSpellsList[\"remote access-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Remote Access\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"I can use any electronic device within range as if it were in my hands\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You can use any electronic device within range as if it were in your hands. This is not a telekinesis effect. Rather, this spell allows you to simulate a device's mechanical functions electronically. You are able to access only functions that a person using the device manually would be able to access. You can use remote access with only one device at a time.\"\r\n};\r\nSpellsList[\"shutdown-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Shutdown\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Shut down all electronic devices within range; if controlled/held by crea, it can save to keep active\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell shuts down all electronic devices within range that are not wielded by or under the direct control of a creature. If an electronic device within range is used by a creature, that creature must succeed on a Constitution saving throw to prevent the device from being shut down. While the spell remains active, no electronic device within range can be started or restarted.\"\r\n};\r\nSpellsList[\"synchronicity-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Synchronicity\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 crea not slowed by mundane delays, disadv on opportunity attacks to it, adv to Stealth and driving\",\r\n\tdescriptionFull : \"The creature you touch feels reality subtly shifted to its favor while this spell is in effect.\" + \"\\n   \" + \"The target isn't inconvenienced by mundane delays of any sort. Traffic lights are always green, there's always a waiting elevator, and a taxi is always around the corner. The target can run at full speed through dense crowds, and attacks of opportunity provoked by the target's movement are made with disadvantage.\" + \"\\n   \" + \"Synchronicity grants advantage to Dexterity (Stealth) checks, since the target always finds a handy piece of cover available. Additionally, the target has advantage on all ability checks made to drive a vehicle.\" + \"\\n   \" + \"In the event that two or more creatures under the effect of synchronicity are attempting to avoid being inconvenienced by each other, the creatures engage in a contest of Charisma each time the effects of the spells would oppose each other.\"\r\n};\r\nSpellsList[\"system backdoor-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"System Backdoor\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Hacking tools\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Gain admin access to 1 system; defeats 3rd or lower technomancy spells; SL5+: defeats same or lower\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell allows you to bypass system security in order to create a secure login on a foreign system. The login you create allows you administrator-level privileges in any computer system not enhanced through technomagic. The login defeats any technomagic spells of 3rd level or lower.\" + \"\\n   \" + \"Once the duration of the spell expires, the login and all privileges are wiped from the system.\" + \"\\n   \" + \"System logs still show the activity of the user, but the user identification cannot be found or traced.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you are able to bypass technomagic spells if the spell's level is equal to or less than the level of the spell slot you used.\"\r\n};\r\n\n// This code was contributed by Lewis Henderson\r\n//\r\n// Please note that the original .pdf has the hit dice as 2d6 per level.\r\n// There isn't any way to implement this, so the hit dice is recorded as a d12.\r\n// Also note that there is no automation for the companion page included in this.\r\n//\r\n// You will have to choose the ranger's animal spirit from the companion race drop-down list and add the Wisdom modifier bonus to attacks and saves manually.\r\n// ua_20150909_Ranger.js\r\n// This file adds the content from the Unearthed Arcana: Ranger article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:R\"] = {\r\n\tname : \"Unearthed Arcana: Ranger\",\r\n\tabbreviation : \"UA:R\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/DX_0907_UA_RangerOptions.pdf\",\r\n\tdate : \"2015/09/09\"\r\n};\r\n\r\n// Define a new class, called \"Playtest Ranger\" and its 3 subclasses\r\nClassList[\"ua-playtest-ranger\"] = {\r\n\tregExpSearch : /^(?=.*playtest)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Playtest Ranger\",\r\n\tsource : [[\"UA:R\", 0]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\tdie : 12,\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tsaves : [\"Dex\", \"Wis\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [\"Herbalism kit\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, true],\r\n\t\tsecondary : [true, false, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Playtest Ranger starting equipment:\\n \\u2022 leather armor;\\n \\u2022 Two shortswords -or- two martial melee weapons -or- a martial weapon and a shield;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows -or- a martial weapon.\",\r\n\tsubclasses : [\"Ranger Path\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"ambuscade\" : {\r\n\t\t\tname : \"Ambuscade\",\r\n\t\t\tsource : [[\"UA:R\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I roll initiative, I gain a special turn before others can act\",\r\n\t\t\t\t\"During this bonus turn, I can only use the Attack or Hide action\",\r\n\t\t\t\t\"I can't be surprised, but if I would be surprised I don't get the bonus turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"natural explorer\" : ClassList.ranger.features[\"natural explorer\"],\r\n\t\t\"fighting style\" : ClassList.ranger.features[\"fighting style\"],\r\n\t\t\"skirmisher's stealth\" : {\r\n\t\t\tname : \"Skirmisher's Stealth\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn, I can choose a creature I'm hidden from\",\r\n\t\t\t\t\"During that turn, I remain hidden from it, regardless of my actions\",\r\n\t\t\t\t\"As a bonus action at the end of my turn, I can use the Hide action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Path\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a Ranger Path you wish to follow and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose Guardian, Seeker, or Stalker\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"primeval awareness\" : ClassList.ranger.features[\"primeval awareness\"]\r\n\t}\r\n};\r\nAddSubClass(\"ua-playtest-ranger\", \"guardian-ua\", {\r\n\tregExpSearch : /^(?=.*guardian)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Guardian\",\r\n\tsource : [[\"UA:R\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Brown Bear Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my brown bear spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a brown bear and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Guardian's Shroud\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription :\"\\n   \" + \"When I call my spirit animal, I grant me or an ally I can see 2d6 + Wis mod temp HP\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ua-playtest-ranger\", \"seeker-ua\", {\r\n\tregExpSearch : /^(?=.*seeker)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Seeker\",\r\n\tsource : [[\"UA:R\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Giant Eagle Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my giant eagle spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a giant eagle and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Seeker's Eye\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I call my spirit animal, I can choose a creature that I can see\",\r\n\t\t\t\t\"Until the end of my next turn, all attacks against the target have advantage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ua-playtest-ranger\", \"stalker-ua\", {\r\n\tregExpSearch : /^(?=.*stalker)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Stalker\",\r\n\tsource : [[\"UA:R\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dire Wolf Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my dire wolf spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a dire wolf and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Stalker's Fangs\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I call my spirit animal, I can choose a creature that I can see\",\r\n\t\t\t\t\"The target's next weapon attack hit deals 2d6 + Wis mod extra slashing damage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20151005_Prestige Classes and Rune Magic.js\r\n// This file adds the content from the Unearthed Arcana: Prestige Classes and Rune Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:PCRM\"] = {\r\n\tname : \"Unearthed Arcana: Prestige Classes and Rune Magic\",\r\n\tabbreviation : \"UA:PCRM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Rune_Magic_Prestige_Class.pdf\",\r\n\tdate : \"2015/10/05\"\r\n};\r\n\r\n// Adds a prestige class, called \"Rune Scribe\" (includes contributions by K.12)\r\nClassList[\"rune scribe\"] = { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*rune)(?=.*scribe).*$/i,\r\n\tname : \"Rune Scribe\",\r\n\tsource : [[\"UA:PCRM\", 2]],\r\n\tprimaryAbility : \"Dexterity and Intelligence\",\r\n\tprereqs : \"\\n   - Dexterity 13 and Intelligence 13;\\n   - Proficiency in the Arcana skill\\n   - Complete a special task: You must find a rune and present it to an NPC rune scribe who accepts it in return for tutoring you in the ways of rune magic\",\r\n\tdie : 8,\r\n\timprovements : levels.map(function (n) {return 0}),\r\n\ttoolProfs : {\r\n\t\tsecondary : [\"Calligrapher's Supplies\", \"Mason's Tools\", \"Woodcarver's Tools\"]\r\n\t},\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tprestigeClassPrereq : 5,\r\n\tattacks : levels.map(function (n) {return 1}),\r\n\tspellcastingFactor : 1,\r\n\tfeatures : {\r\n\t\t\"rune lore\" : {\r\n\t\t\tname : \"Rune Lore\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the basics of scribing runes, and can activate all properties of a master rune\",\r\n\t\t\t\t\"The first rune I master is the one I found to qualify to become a rune scribe\",\r\n\t\t\t\t\"To use any features of a master rune, I need to first attune to it just like a magic item\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add master runes to the third page'\r\n\t\t\t]),\r\n\t\t\textraname : \"Master Rune\",\r\n\t\t\textrachoices : [\"Opal of the Ild Rune\", \"Orb of the Stein Rune\", \"Pennant of the Vind Rune\", \"Shard of the Kalt Rune\"],\t\r\n\t\t\t\"opal of the ild rune\" : {\r\n\t\t\t\tname : \"Opal of the Ild Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 4]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Ignite (simple): As an action, ignite touched flammable object; Fire extends 1 ft from it\",\r\n\t\t\t\t\t\"- Fire Tamer (simple): As an action, extinguish touched open flame up to 10-ft radius\",\r\n\t\t\t\t\t\"   I can expend a spell slot to extend that radius by 20 ft/SL\",\r\n\t\t\t\t\t\"- Fire's Friend (simple): While attuned, I have resistance to cold damage\",\r\n\t\t\t\t\t\"- Combustion (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   The target automatically takes 1d10 + 1d10/SL fire damage\",\r\n\t\t\t\t\t\"- Flame Brand (complex): During a short rest, I can augment a weapon, or 20 ammo\",\r\n\t\t\t\t\t\"   The weapon or ammo deals fire damage; It lasts for 24 hours or until I use this again\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"- Flame Stoker (complex): While attuned, I roll any fire damage twice and use the higher\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\taction : ['action', 'Ild Rune (Ignite, Fire Tamer, Combusion)']\r\n\t\t\t},\r\n\t\t\t\"orb of the stein rune\" : {\r\n\t\t\t\tname : \"Orb of the Stein Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 5]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Indomitable Stand (simple): As an action, I gain abilities until I move\",\r\n\t\t\t\t\t\"   I have advantage on all ability checks and saving throws to resist being moved\",\r\n\t\t\t\t\t\"   Anyone moving within 10 ft makes a DC 12 Str save or has speed 0 until its next turn\",\r\n\t\t\t\t\t\"- Stone Soul (simple): While attuned, I cannot be petrified\",\r\n\t\t\t\t\t\"- Stone's Secrets (simple): As an action, I learn everybody's current location within 30 ft\",\r\n\t\t\t\t\t\"   They have to touch the same surface as I'm touching with my hand\",\r\n\t\t\t\t\t\"- Crushing Brand (complex): During a short rest, I can augment a bludgeoning weapon\",\r\n\t\t\t\t\t\"   The weapon's bludgeoning damage ignores resistances and immunities\",\r\n\t\t\t\t\t\"   If the weapon deals its maximum damage, the target is also knocked prone\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"   These effects last for 24 hours or until I use Crushing Brand again\",\r\n\t\t\t\t\t\"- Earthen Step (complex): I can cast Meld Into Stone as a bonus action once per short rest\",\r\n\t\t\t\t\t\"- Overwhelming Bolt (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   It takes 2d8+1d8/SL bludg. dmg and is prone; DC 12+SL Str save for half \\u0026 not prone\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [['action', 'Stein Rune (Indomitable Stand, Secrets, Bolt)']],\r\n\t\t\t\tsavetxt : { immune : [\"petrified\"] },\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Orb of the Stein Rune\",\r\n\t\t\t\t\tspells : [\"meld into stone\"],\r\n\t\t\t\t\tselection : [\"meld into stone\"], \r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tchanges : \"Using my Orb of the Stein Rune, I can cast Meld Into Stone as a bonus action once per short rest.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Earthen Step (Orb of the Stein Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"pennant of the vind rune\" : {\r\n\t\t\t\tname : \"Pennant of the Vind Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 5]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Comforting Wind (simple): While attuned, I can't suffocate or drown\",\r\n\t\t\t\t\t\"   Also, I gain advantage on saves against inhaled poisons, toxins, and similar effects\",\r\n\t\t\t\t\t\"- Wind Step (simple): As an action, I fly 20 ft, after which I fall if I'm still airborne\",\r\n\t\t\t\t\t\"- Wind's Grasp (simple): As a reaction when falling, I can take no damage from the fall\",\r\n\t\t\t\t\t\"- Howling Brand (complex): During a short rest, I can augment a ranged weapon\",\r\n\t\t\t\t\t\"   Its range is doubled and attacks with it do not suffer disadvantage due to range\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"   These effects last for 24 hours or until I use Howling Brand again\",\r\n\t\t\t\t\t\"- Shrieking Bolt (complex): As an action, I expend spell slot to target a creature I can see\",\r\n\t\t\t\t\t\"   It 2d8+1d8/SL bludg. dmg \\u0026 pushed 10 ft; DC 12+SL Str save for half \\u0026 not pushed\",\r\n\t\t\t\t\t\"- Wind Walker (complex): I can cast Levitate as a bonus action once per short rest\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [['action', 'Vind Rune (Wind Step, Shrieking Bolt)'], ['reaction', \"Vind Rune (Wind's Grasp)\"]],\r\n\t\t\t\tsavetxt : { adv_vs : [\"inhaled poison\"] },\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Pennant of the Vind Rune\",\r\n\t\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\t\tselection : [\"levitate\"], \r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tchanges : \"Using my Pennant of the Vind Rune, I can cast Levitate as a bonus action once per short rest.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Wind Walker (Pennant of the Vind Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"shard of the kalt rune\" : {\r\n\t\t\t\tname : \"Shard of the Kalt Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 6]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Frigid Touch (simple): As an action, I freeze water that I touch a 10-ft radius\",\r\n\t\t\t\t\t\"- Frost Friend (simple): While attuned, I have resistance to fire damage\",\r\n\t\t\t\t\t\"- Icy Mantle (simple): As an action, me or a creature I touch gains a protective mantle\",\r\n\t\t\t\t\t\"   The next time taking bludg., slash., pierc. damage, it absorbs the damage and falls apart\",\r\n\t\t\t\t\t\"- Freezing Bolt (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   It takes 2d8+1d8/SL cold damage and its speed is 0 until the end of my next turn\",\r\n\t\t\t\t\t\"   If it succeeds on a DC 12+SL Con save, it takes only half damage and has normal speed\",\r\n\t\t\t\t\t\"- Ice Brand (complex): During a short rest, I can augment a weapon, or 20 ammo pieces\",\r\n\t\t\t\t\t\"   The weapon or ammo deals cold damage; It lasts for 24 hours or until I use this again\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"- Winter's Howl (complex): I can cast Sleet Storm as an action once per short rest\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\taction : ['action', 'Kalt Rune (Touch, Mantle, Bolt, Howl)'],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Shard of the Kalt Rune\",\r\n\t\t\t\t\tspells : [\"sleet storm\"],\r\n\t\t\t\t\tselection : [\"sleet storm\"],\r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Winter's Howl (Shard of the Kalt Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"runic magic\" : {\r\n\t\t\tname : \"Runic Magic\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I obtain spell slots as if gaining a level in a full spellcasting class, but don't learn spells\")\r\n\t\t},\r\n\t\t\"runic discovery\" : {\r\n\t\t\tname : \"Runic Discovery\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I know a number of master runes which I can attune to, even if not in my possession\",\r\n\t\t\t\t\"Attuning or de-attuning in this manner can be done over the course of a short rest\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\treturn (n < 3 ? 1 : n < 5 ? 2 : 3) + \" known master runes\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"living rune\" : {\r\n\t\t\tname : \"Living Rune\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I get 2 points that I can add to one or two of my ability scores as I see fit\",\r\n\t\t\t\t\"When I finish a long rest, I can re-allocate these point(s) from a single score to another\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"rune mastery\" : {\r\n\t\t\tname : \"Rune Mastery\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription: desc(\"One rune I'm attuned to doesn't count toward the limit of magic items I can attune to\")\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20151102_Light,-Dark,-Underdark!.js\r\n// This file adds the content from the Unearthed Arcana: Light, Dark, Underdark! article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:LDU\"] = {\r\n\tname : \"Unearthed Arcana: Light, Dark, Underdark!\",\r\n\tabbreviation : \"UA:LDU\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/02_UA_Underdark_Characters.pdf\",\r\n\tdate : \"2015/11/02\"\r\n};\r\n\r\n// New Fighting Styles\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Close Quarters Shooter\", { // Still valid 2021-09-21\r\n\tname : \"Close Quarters Shooting Fighting Style\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tdescription: desc([\r\n\t\t\"+1 bonus to attack rolls I make with ranged attacks\",\r\n\t\t\"I don't have disadvantage when making a ranged attack while within 5 ft of a hostile\",\r\n\t\t\"My ranged attacks ignore half and three-quarters cover against targets within 30 ft\",\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isRangedWeapon) output.extraHit += 1;\r\n\t\t\t},\r\n\t\t\t\"My ranged weapons get a +1 bonus on the To Hit.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Tunnel Fighter\", { // Still valid 2021-09-21\r\n\tname : \"Tunnel Fighting Style\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tdescription: desc([\r\n\t\t\"As a bonus action, I enter a defensive stance that lasts until the start of my next turn\",\r\n\t\t\"While I'm in this defensive stance I gain the following two benefits:\",\r\n\t\t\"\\u2022 I can make opportunity attacks without using my reaction\",\r\n\t\t\"\\u2022 I can make a melee attack as a reaction if a hostile moves >5 ft while in my reach\",\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\n\r\n// A subclass for the Ranger, called \"Deep Stalker\"\r\nAddSubClass(\"ranger\", \"deep stalker-ua\", {\r\n\tregExpSearch : /^(?=.*deep)(?=.*stalker).*$/i,\r\n\tsubname : \"Deep Stalker\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tfullname : \"Deep Stalker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Underdark Scout\",\r\n\t\t\tsource : [[\"UA:LDU\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"In the first turn of combat I have +10 ft speed and +1 attack with the Attack action\",\r\n\t\t\t\t\"All turns after that, I can take the Hide action as a bonus action at the end of my turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (Hide at end of turn)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Deep Stalker Magic\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 90 ft darkvision and add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"glyph of warding\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tvision : [[\"Darkvision\", 90]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I am proficient with Wisdom saving throws\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Once during my turn when I miss an attack, I can immediately make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Stalker's Dodge\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Sorcerer, called \"Shadow\"\r\nAddSubClass(\"sorcerer\", \"shadow sorcerer-ua\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*shadow).*$/i,\r\n\tsubname : \"Shadow\",\r\n\tsource : [[\"UA:LDU\", 2]],\r\n\tfullname : \"Shadow Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 60 ft darkvision and can cast Darkness by spending 1 sorcery point\",\r\n\t\t\t\t\"I can see through any darkness spell I cast using this ability\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 sorcery point\",\r\n\t\t\tvision : [[\"Darkvision\", 60]],\r\n\t\t\taction : [[\"action\", \" (1 sorcery point)\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 1\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"darkness\" : {\r\n\t\t\t\t\tdescription : \"15-ft rad darkness on point/obj; I see normally; darkvision doesn't work; only magical light of SL 3+\",\r\n\t\t\t\t\tchanges : \"Using my Eyes of the Dark class feature I can cast Darkness by spending 1 sorcery point and I can see through that Darkness without issue.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Strength of the Grave\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When damage reduces me to 0 HP, that isn't radiant damage or a critical hit,\",\r\n\t\t\t\t\"I can make a Constitution save (DC 5 + damage taken) to drop to 1 HP instead\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional : \"3 sorcery points\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I target a creature I can see and summon a hound within 30 ft of it\",\r\n\t\t\t\t\"The hound has all the stats of a medium sized dire wolf with the following exceptions:\",\r\n\t\t\t\t\"\\u2022 At the start of its turn, it automatically knows where the target is\",\r\n\t\t\t\t\"\\u2022 It can only move towards and make (opportunity) attack against the target\",\r\n\t\t\t\t\"\\u2022 It can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"\\u2022 It takes 5 force damage if it ends its turn inside an object\",\r\n\t\t\t\t\"The target has disadvantage on saves vs. my spells while the hound is within 5 ft of it\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Walk\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can teleport up to 120 ft\",\r\n\t\t\t\t\"The destination has to be unoccupied, within line of sight, and in dim light or darkness\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Shadow Form\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional : \"3 sorcery points\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I transform into a shadow form for 1 minute\",\r\n\t\t\t\t\"While transformed, I have resistance to all damage types except force damage\",\r\n\t\t\t\t\"Also, I can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 5 force damage if I end my turn inside an object\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Warlock, called \"The Undying Light\"\r\nAddSubClass(\"warlock\", \"the undying light-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*light)(?=.*(immortal|undying|neverending|unending)).*$/i,\r\n\tsubname : \"the Undying Light\",\r\n\tsource : [[\"UA:LDU\", 3]],\r\n\tspellcastingExtra : [\"burning hands\", \"flaming sphere\", \"daylight\", \"fire shield\", \"flame strike\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add my Cha modifier to cantrips/spells I cast that deal fire or radiant damage\",\r\n\t\t\t\t\"I have resistance to radiant damage and know the Light and Sacred Flame cantrips\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Radiant Soul\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Radiant Soul\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) output.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I would make a death saving throw, I can instead spring back to my feet\",\r\n\t\t\t\t\"I immediately stand up and recover HP equal to half my current HP maximum\",\r\n\t\t\t\t\"Also, all hostiles within 30 ft of me take 10 + Charisma modifier in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Radiant Resilience\",\r\n\t\t\tsource : [[\"UA:LDU\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"UA:LDU\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I touch a creature and heal it by expending dice from my pool\",\r\n\t\t\t\t\"I subtract the number of d6's used from my pool; I can expend up to 5d6 at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain expended uses with a long rest\",\r\n\t\t\t]),\r\n\t\t\tusages : \"15d6 per \",\r\n\t\t\tusagescalc : \"event.value = '15d6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20151217_That-Old-Black-Magic.js\r\n// This file adds the content from the Unearthed Arcana: That Old Black Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:TOBM\"] = {\r\n\tname : \"Unearthed Arcana: That Old Black Magic\",\r\n\tabbreviation : \"UA:TOBM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/07_UA_That_Old_Black_Magic.pdf\",\r\n\tdate : \"2015/12/17\"\r\n};\r\n\r\n// Adds the Abyssal Tiefling\r\nRaceList[\"abyssal tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*abyssal)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\tname : \"Abyssal tiefling\",\r\n\tsortname : \"Tiefling, Abyssal\",\r\n\tsource : [[\"UA:TOBM\", 1]],\r\n\tplural : \"Abyssal tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Abyssal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Abyssal Tiefling (+1 Constitution, +2 Charisma)\\nAbyssal Fortitude: My HP maximum increases with half the levels I have (min 1). Abyssal Arcana: After each long rest I gain randomly determined spellcasting ability (d6). This is a cantrip, and on both 3rd and 5th level a spell that I can cast once, at 2nd-level.\\n1: (Dancing Lights, Burning Hands, Alter Self); 2: (True Strike, Charm Person, Darkness)\" + (!typePF ? \";\" : \" \") + \" 3: (Light, Magic Missile, Invisibility); 4: (Spare the Dying, Hideous Laughter, Mirror Image)\" + (!typePF ? \";\" : \" \") + \" 5: (Message, Cure Wounds, Levitate); 6: (Prestidigitation, Thunderwave, Spider Climb)\",\r\n\tabilitySave : 6,\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Abyssal Arcana (level 1)\",\r\n\t\tspells : [\"dancing lights\", \"true strike\", \"light\", \"message\", \"spare the dying\", \"prestidigitation\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) { return [Math.max(1, Math.floor(totalHD / 2)), \"Abyssal Fortitude\"]; }\r\n\t},\r\n\tfeatures : {\r\n\t\t\"abyssal arcana (level 3)\" : {\r\n\t\t\tname : \"Abyssal Arcana (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Abyssal Arcana (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\", \"charm person\", \"magic missile\", \"cure wounds\", \"tasha's hideous laughter\", \"thunderwave\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"abyssal arcana (level 5)\" : {\r\n\t\t\tname : \"Abyssal Arcana (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Abyssal Arcana (level 5)\",\r\n\t\t\t\tspells : [\"alter self\", \"darkness\", \"invisibility\", \"levitate\", \"mirror image\", \"spider climb\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tvariants : RaceList.tiefling && RaceList.tiefling.variants ? RaceList.tiefling.variants : []\r\n};\r\n//now do the variants\r\nvar UATOBM_addAbyssalTiefling = function(){\r\n\tvar replaceTraitTxt = [\"+1 Intelligence, +2 Charisma\", \"+1 Constitution, +2 Charisma\"];\r\n\tvar replaceNameTxt = [\"tiefling\", \"abyssal tiefling\"];\r\n\tRaceList[\"abyssal tiefling-ua\"].variants.forEach( function(nVar) {\r\n\t\tif (!RaceSubList[\"tiefling-\" + nVar]) return;\r\n\t\tRaceSubList[\"abyssal tiefling-ua-\" + nVar] = newObj(RaceSubList[\"tiefling-\" + nVar]);\r\n\t\tvar thisVar = RaceSubList[\"abyssal tiefling-ua-\" + nVar];\r\n\t\tthisVar.trait = thisVar.trait.replace(replaceTraitTxt[0], replaceTraitTxt[1]);\r\n\t\tthisVar.trait = thisVar.trait.replace(replaceNameTxt[0].capitalize(), replaceNameTxt[1].capitalize());\r\n\t\tthisVar.name = thisVar.name.replace(replaceNameTxt[0], replaceNameTxt[1]);\r\n\t\tthisVar.plural = thisVar.plural.replace(replaceNameTxt[0], replaceNameTxt[1]);\r\n\t});\r\n}();\r\n\r\n/*\tAdds 5 spells for summoning fiends to the Sorcerer and the Wizard spell lists\r\n\t\r\n\tThis code was contributed by David\r\n*/\r\nSpellsList[\"conjure lesser demon-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Lesser Demon\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from an intelligent humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 8 (16 at SL6, 32 at SL8) manes/dretches that are hostile to all non-demons, attacking nearest\",\r\n\tdescriptionFull : \"You summon up to a total of eight manes or dretches that appear in unoccupied spaces you can see within range. A manes or dretch disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The demons are hostile to all creatures. Roll initiative for the summoned demons as a group, which has its own turns. The demons attack the nearest non-demons to the best of their ability.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. The summoned demons cannot cross the circle or target anyone in it while the spell lasts. Using the material component in this manner consumes it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th or 7th level, you summon sixteen demons. If you cast it using a spell slot of 8th or 9th level, you summon thirty-two demons.\"\r\n};\r\nSpellsList[\"conjure barlgura-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Barlgura\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Summon a barlgura that is hostile to all non-demons, attacking the nearest\",\r\n\tdescriptionFull : \"You summon a barlgura that appears in an unoccupied space you can see within range. The barlgura disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The barlgura is hostile to all non-demons. Roll initiative for the barlgura, which has its own turns. At the start of its turn, it moves toward and attacks the nearest non-demon it can perceive. If two or more creatures are equally near, it picks one at random. If it cannot see any potential enemies, the barlgura moves in a random direction in search of foes.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned barlgura cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure hezrou-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Hezrou\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Food worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a hezrou that I might control as long as there is food; At half HP it leaves, see B (100gp cons.)\",\r\n\tdescriptionFull : \"You summon a hezrou that appears in an unoccupied space you can see within range. The hezrou disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The hezrou's attitude depends on the value of the food used as a material component for this spell. Roll initiative for the hezrou, which has its own turns. At the start of the hezrou's turn, the DM makes a secret Charisma check on your behalf, with a bonus equal to the food's value divided by 20. The check DC starts at 10 and increases by 2 each round. You can issue orders to the hezrou and have it obey you as long as you succeed on the Charisma check.\" + \"\\n   \" + \"If the check fails, the spell no longer requires concentration and the demon is no longer under your control. The hezrou then focuses on devouring any corpses it can see. If there are no such meals at hand, it attacks the nearest creatures and eats anything it kills. If its hit points are reduced to below half its hit point maximum, it returns to the Abyss.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned hezrou cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure shadow demon-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Shadow Demon\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 3]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from an intelligent humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a shadow demon that I control while not in bright light, can attack, and within 100 ft, see B\",\r\n\tdescriptionFull : \"You summon a shadow demon that appears in an unoccupied space you can see within range. The shadow demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"Roll initiative for the shadow demon, which has its own turns. You can issue orders to the shadow demon, and it obeys you as long as it can attack a creature on each of its turns and does not start its turn in an area of bright light. If either of these conditions is not met, the shadow demon immediately makes a Charisma check contested by your Charisma check. If you fail the check, the spell no longer requires concentration and the demon is no longer under your control. The demon automatically succeeds on the check if it is more than 100 feet away from you.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned shadow demon cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure vrock-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Vrock\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 3]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A gem worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a vrock that I might control for some rounds, depending on gem value, see B (100gp cons.)\",\r\n\tdescriptionFull : \"You summon a vrock that appears in an unoccupied space you can see within range. The vrock disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The vrock's attitude depends on the value of the gem used as a material component for this spell. Roll initiative for the vrock, which has its own turns. At the start of the vrock's turn, the DM makes a secret Charisma check on your behalf, with a bonus equal to the gem's value divided by 20. The check DC starts at 10 and increases by 2 each round. You can issue orders to the vrock and have it obey you as long as you succeed on the Charisma check.\" + \"\\n   \" + \"If the check fails, the spell no longer requires concentration and the vrock is no longer under your control. The vrock takes no actions on its next turn and uses its telepathy to tell any creature it can see that it will fight in exchange for treasure. The creature that gives the vrock the most expensive gem can command it for the next 1d6 rounds. At the end of that time, it offers the bargain again. If no one offers the vrock treasure before its next turn begins, it attacks the nearest creatures for 1d6 rounds before returning to the Abyss.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned vrock cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\n\n// ua_20160104_Kits-of-Old.js\r\n// This file adds the content from the Unearthed Arcana: Kits of Old article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:KoO\"] = {\r\n\tname : \"Unearthed Arcana: Kits of Old\",\r\n\tabbreviation : \"UA:KoO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/04_UA_Classics_Revisited.pdf\",\r\n\tdate : \"2016/01/04\"\r\n};\r\n\r\n// Adds four subclasses, 2 for the bard, 2 for the fighter\r\nAddSubClass(\"bard\", \"college of swords-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"UA:KoO\", 1]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and scimitars\"),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : function () {\r\n\t\t\tvar FSfea = newObj(FightingStyles.two_weapon);\r\n\t\t\tFSfea.source = [\"UA:KoO\", 1];\r\n\t\t\tFSfea.minlevel = 3;\r\n\t\t\treturn FSfea;\r\n\t\t}(),\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"UA:KoO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action on my turn, I can do one of the following flourishes:\",\r\n\t\t\t\t\"I have to use a dagger, longsword, rapier, scimitar, or shortsword while doing this\",\r\n\t\t\t\t\"\\u2022 Defensive Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action, I add the die to my AC until the start of my next turn\",\r\n\t\t\t\t\"\\u2022 Trick Shooter's Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action with a dagger ranged attack, I add the die to the attack roll\",\r\n\t\t\t\t\"   If the target is an unattended, inanimate object, the result of the die is doubled\",\r\n\t\t\t\t\"\\u2022 Unnerving Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action when reducing a foe to 0 HP with a melee attack, I leave it alive\",\r\n\t\t\t\t\"   The target stays at 1 HP and is frightened of me for my Cha modifier in minutes\",\r\n\t\t\t\t\"   It must also make a Cha save at a DC of my spell save + the bardic inspiration die\",\r\n\t\t\t\t\"   If failed, it answers truthfully any questions I ask and obeys me while frightened\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (one inspiration die)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Battle Magic\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"When I use my action to cast a Bard spell, I can make one bonus action weapon attack\"),\r\n\t\t\taction : [[\"bonus action\", \" (with Bard spell)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of satire-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*satire).*$/i,\r\n\tsubname : \"College of Satire\",\r\n\tsubnameShort: \"Satire\",\r\n\tsource : [[\"UA:KoO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with thieves' tools, sleight of hand, and one other skill of my choice\"),\r\n\t\t\tskills : [\"Sleight of Hand\"],\r\n\t\t\tskillstxt : \"Thieves' Tools, Sleight of Hand, and any one other skill\",\r\n\t\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Tumbling Fool\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I tumble which gives the benefits of the Dash and Disengage actions\",\r\n\t\t\t\t\"I also gain a climbing speed at my current speed and half damage from falling\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fool's Insight\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can cast Detect Thoughts, but on a save the target suffers an embarrassing social gaffe\"),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fool's Insight\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : \"(S)\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect thoughts\" : {\r\n\t\t\t\t\tdescription : \"1 a read thoughts of visible Int>3 crea or detect invisible in 30 ft; save for probing, social gaffe on save\",\r\n\t\t\t\t\tchanges : \"I can cast this spell a number of times equal to my Charisma modifier per long rest and when I do so and the target makes its save, it suffers an embarrassing social gaffe.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fool's Luck\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tadditional: \"one bardic inspiration die\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I fail an ability check, saving throw, or attack roll, I can add one inspiration die\",\r\n\t\t\t\t\"If this turns the roll into a success, I have to note down the number rolled\",\r\n\t\t\t\t\"I can't use this ability again until the DM subtracts the amount from a check or attack\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"reset\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier-ua\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"UA:KoO\", 3]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one skill and any one tool\",\r\n\t\t\t\t\"For skills I can choose from Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"1 Skill and 1 Tool proficiencies\", \"2 Skill proficiencies\"],\r\n\t\t\t\"1 skill and 1 tool proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I gain proficiency with one skill and any one tool of my choice\",\r\n\t\t\t\t\t\"For the skill, I can choose Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t\ttoolProfs : [[\"Any tool\", 1]]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc(\"I gain two skill proficiencies: Animal Handling, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Animal Handling, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling to influence/control an animal; I add the superiority die to the roll\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 Use on a mount, before rolling to hit with a lance; I add the die to the damage roll\",\r\n\t\t\t\t\"   Also, the target must make a Str save (DC 8 + Prof + Str mod) or be knocked prone\",\r\n\t\t\t\t\"\\u2022 As a reaction when I'm hit or my mount is hit, I add the superiority die to AC\",\r\n\t\t\t\t\"   If the attack still hits, I or my mount only take half damage from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (if hit/mount hit)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use two superiority dice, instead of just one, to increase the damage of my lance\",\r\n\t\t\t\t\"If doing so, the target has disadvantage on its Str save to avoid being knocked prone\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"scout-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"UA:KoO\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with three skills or two skills and Thieves' Tools; For skills choose from:\",\r\n\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"2 Skill proficiencies and Thieves' Tools proficiency\", \"3 Skill proficiencies\"],\r\n\t\t\t\"2 skill proficiencies and thieves' tools proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with two skills and Thieves' Tools; For skills choose from:\",\r\n\t\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose two from: Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, or Survival\",\r\n\t\t\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]]\r\n\t\t\t},\r\n\t\t\t\"3 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with three skills, chosen from:\",\r\n\t\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose three from: Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling an Athletics, Nature, Perception, Stealth, or Survival check\",\r\n\t\t\t\t\"   I add half the superiority die to the roll (rounding up)\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 As a reaction when I'm hit while wearing light/medium armor, I add the die to AC\",\r\n\t\t\t\t\"   If the attack still hits, I only take half damage from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (if hit)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : function () {\r\n\t\t\tvar NEfea = newObj(ClassList.ranger.features[\"natural explorer\"]);\r\n\t\t\tNEfea.source = [\"UA:KoO\", 4];\r\n\t\t\tNEfea.minlevel = 3;\r\n\t\t\tNEfea.additional = [\"\", \"\", \"1 favored terrain\", \"1 favored terrain\", \"1 favored terrain\", \"1 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\"];\r\n\t\t\treturn NEfea;\r\n\t\t}(),\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20160404_Gothic-Heroes.js\r\n// This file adds the content from the Unearthed Arcana: Gothic Heroes article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:GH\"] = {\r\n\tname : \"Unearthed Arcana: Gothic Heroes\",\r\n\tabbreviation : \"UA:GH\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.dnd.wizards.com/upload/articles/UA%20Gothic%20Characters.pdf\",\r\n\tdate : \"2016/04/04\"\r\n};\r\n\r\n// Adds 8 new races, the Revenant versions of the Aasimar, Dragonborn, Dwarf, Elf, Gnome, Halfling, Human, and Tiefling\r\n// All revenants are still valid 2021-09-21\r\nRaceList[\"aasimar revenant-ua\"] = { // Based on the VGtM Aasimar, made with /u/RebelMage's help\r\n\tregExpSearch : /^(?=.*revenant)((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel)))).*$/i,\r\n\tname : \"Aasimar Revenant\",\r\n\tsortname : \"Revenant, Aasimar\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Aasimar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Aasimar Revenant (+1 Constitution, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip. Healing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : [\"1 HP\", \"2 HP\", \"3 HP\", \"4 HP\", \"5 HP\", \"6 HP\", \"7 HP\", \"8 HP\", \"9 HP\", \"10 HP\", \"11 HP\", \"12 HP\", \"13 HP\", \"14 HP\", \"15 HP\", \"16 HP\", \"17 HP\", \"18 HP\", \"19 HP\", \"20 HP\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dwarf revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b).*$/i,\r\n\tname : \"Dwarf Revenant\",\r\n\tsortname : \"Revenant, Dwarf\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Dwarves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 3, 0, 0, 0],\r\n\ttrait : \"Dwarf Revenant (+3 Constitution)\\nStonecunning: I have expertise on Int (History) checks related to the origin of stonework.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"elf revenant-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*revenant)(?=.*\\b(elfs?|elves|elvish|elven)\\b).*$/i,\r\n\tname : \"Elf Revenant\",\r\n\tsortname : \"Revenant, Elf\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Elf Revenant (+2 Dexterity, +1 Constitution)\\nTrance: I don't sleep, but meditate for 4 hours a day, needing only 4 hours for a long rest.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"halfling revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\b(halflings?|hobbits?)\\b).*$/i,\r\n\tname : \"Halfling Revenant\",\r\n\tsortname : \"Revenant, Halfling\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Halfling Revenant (+2 Dexterity, +1 Constitution)\" + (typePF ? \"\\n\" : \" \") + \"Lucky: I reroll 1's on attack/check/save. Halfling Nimbleness: I can move through the space of anybody of a size larger than me.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"gnome revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\bgnomes?\\b).*$/i,\r\n\tname : \"Gnome Revenant\",\r\n\tsortname : \"Revenant, Gnome\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Gnomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 2, 0, 0],\r\n\ttrait : \"Gnome Revenant (+1 Constitution, +2 Intelligence)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\nRaceList[\"dragonborn revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*dragonborn)(?=.*revenant).*$/i,\r\n\tname : \"Dragonborn Revenant\",\r\n\tsortname : \"Revenant, Dragonborn\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Dragonborn\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\tname : \"Breath weapon\",\r\n\t\tsource : [[\"UA:GH\", 1]],\r\n\t\tability : 3,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [2, 6, \"necrotic\"],\r\n\t\trange : '5-ft \\xD7 30-ft line',\r\n\t\tdescription : \"Hits all in area; Con save, success - half damage; Usable only once per short rest\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tdbBreathWeapon : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 1],\r\n\ttrait : \"Dragonborn Revenant (+1 Strength, +1 Constitution, +1 Charisma)\\nBreath Weapon: As an action, 5 ft by 30 ft line, Dex save halves, necrotic damage.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\",\r\n\tdmgres : [\"Necrotic\"],\r\n\tfeatures : {\r\n\t\t\"draconic ancestry\" : {\r\n\t\t\tname : \"Draconic Ancestry\",\r\n\t\t\tlimfeaname : \"Breath Weapon\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + 'd6';\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && CurrentRace.known === 'dragonborn revenant' && CurrentRace.level > 5) {\r\n\t\t\t\t\t\t\toutput.die = output.die.replace('2d6', (CurrentRace.level < 11 ? 3 : CurrentRace.level < 16 ? 4 : 5) + 'd6');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"human revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*human)(?=.*revenant).*$/i,\r\n\tname : \"Human Revenant\",\r\n\tsortname : \"Revenant, Human\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Humans\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Constitution and +1 to two different ability scores of my choice\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\ttrait : \"Human Revenant (+1 Constitution and +1 to two different ability scores of my choice)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\nRaceList[\"tiefling revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\tname : \"Tiefling Revenant\",\r\n\tsortname : \"Revenant, Tiefling\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Tiefling Revenant (+1 Constitution, +2 Charisma)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\n\r\n// Adds 2 subclasses, 1 for the Fighter and 1 for the rogue\r\nAddSubClass(\"fighter\", \"monster hunter-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*monster)(?=.*hunter).*$/i,\r\n\tsubname : \"Monster Hunter\",\r\n\tsource : [[\"UA:GH\", 2]],\r\n\tfullname : \"Monster Hunter\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one skill and any one tool\",\r\n\t\t\t\t\"For skills I can choose Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"1 Skill and 1 Tool proficiencies\", \"2 Skill proficiencies\"],\r\n\t\t\t\"1 skill and 1 tool proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I gain proficiency with one skill and any one tool of my choice\",\r\n\t\t\t\t\t\"For the skill, I can choose Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t\ttoolProfs : [[\"Any tool\", 1]]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc(\"I gain 2 skill proficiencies: Arcana, History, Insight, Investigation, Nature, or Perception\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Arcana, History, Insight, Investigation, Nature, and Perception\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 Use after damaging a creature; I add the superiority die to the damage roll\",\r\n\t\t\t\t\"   Also, the attack imposes disadvantage on any concentration save resulting from it\",\r\n\t\t\t\t\"\\u2022 Use after Int/Wis/Cha save, before knowing success/fail; add the die to the save total\",\r\n\t\t\t\t\"\\u2022 Use with Wis (Perception) to detect hidden or Wis (Insight) to see if lying to me\",\r\n\t\t\t\t\"   After rolling but before knowing if success/fail; I add the superiority die to the check\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Hunter's Mysticism\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\t\t\t\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can cast Detect Magic as a ritual and Protection from Evil & Good once per long rest\",\r\n\t\t\t\t\"I gain the ability to speak one of the following languages: Abyssal, Celestial, or Infernal\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (Prot vs. Evil/Good)\"]],\r\n\t\t\tlanguageProfs : [[\"Abyssal, Celestial, or Infernal\", 1]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t\tspellcastingAbility : 5\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"protection from evil and good\"],\r\n\t\t\t\tselection : [\"protection from evil and good\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect magic\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Monster Slayer\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Whenever I use a superiority die, I can choose to expend two, adding both to the roll\",\r\n\t\t\t\t\"If the target is an aberration, fey, fiend, or undead, both dice deal maximum damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"inquisitive-ua\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*inquisitive).*$/i,\r\n\tsubname : \"Inquisitive\",\r\n\tsource : [[\"UA:GH\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ear for Deceit\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When using Wis (Insight) to sense if someone is lying, I can choose to use a fixed total\",\r\n\t\t\t\t\"This total is 8 + Wis modifier + proficiency bonus (if proficient, or twice if expertise)\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eye for Detail\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use the bonus action granted by Cunning Action for the following as well:\",\r\n\t\t\t\t\"\\u2022 To make a Wisdom (Perception) check to spot a hidden creature or object\",\r\n\t\t\t\t\"\\u2022 To make an Intelligence (Investigation) check to uncover and decipher clues\",\r\n\t\t\t\t\"\\u2022 To use Insightful Fighting (see below)\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Insightful Fighting\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action or bonus action, I can decipher the tactics of an active opponent I can see\",\r\n\t\t\t\t\"I have to make a Wisdom (Insight) check vs. the target's Charisma (Deception) check\",\r\n\t\t\t\t\"If I succeed, I can use sneak attack on the target regardless of advantage/disadvantage\",\r\n\t\t\t\t\"This benefit lasts for 1 minute or until I successfully use Insightful Fighting again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Steady Eye\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc(\"If not moving during my turn, I gain adv. on Wis (Perception) to find hidden things\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Unerring Eye\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can sense magical deceptions within 30 feet of me, but not what it does\",\r\n\t\t\t\t\"I learn the presence of illusions, shapechanged creatures, or magic designed to deceive\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Eye for Weakness\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"While my Insightful Fighting is active, I add 2d6 to sneak attacks against that target\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20160606_Feats.js\n// This file adds the content from the Unearthed Arcana: Feats article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:F\"] = {\n\tname : \"Unearthed Arcana: Feats\",\n\tabbreviation : \"UA:F\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2016/downloads/DND/UA-Feats-V1.pdf\",\n\tdate : \"2016/06/06\"\n};\n\n// Add 8 feats: 4 'weapon mastery' feats and 4 'tool' feats\n// This doesn't add the \"Warhammer Master\" feat, as that is only in the article to illustrate how not to design a feat\nFeatsList[\"fell handed-ua\"] = {\n\tname : \"Fell Handed\",\n\tsource : [[\"UA:F\", 2], [\"UA\", 0]],\n\tdescriptionFull : \"You master the handaxe, battleaxe, greataxe, warhammer, and maul. You gain the following benefits when using any of them:\\n \\u2022 You gain a +1 bonus to attack rolls you make with the weapon.\\n \\u2022 Whenever you have advantage on a melee attack roll you make with the weapon and hit, you can knock the target prone if the lower of the two d20 rolls would also hit the target.\\n \\u2022 Whenever you have disadvantage on a melee attack roll you make with the weapon, the target takes bludgeoning damage equal to your Strength modifier (minimum of 0) if the attack misses but the higher of the two d20 rolls would have hit.\\n \\u2022 If you use the Help action to aid an ally's melee attack while you're wielding the weapon, you knock the target's shield aside momentarily. In addition to the ally gaining advantage on the attack roll, the ally gains a +2 bonus to the roll if the target is using a shield.\",\n\tdescription : \"With a handaxe, battleaxe, greataxe, warhammer, or maul, I get +1 to hit, knock prone if I have adv. and hit with both rolls, with disadv. still do Str mod in bludg. damage if I miss but the other die would've hit, can use Help to give ally +2 to hit vs. enemy with a shield.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif ((/handaxe|battleaxe|greataxe|warhammer|maul/).test(v.baseWeaponName)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Adv: knock prone if both dice hit; Disadv: Str Mod bludg. damage on miss but 2nd die would hit';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a handaxe, battleaxe, greataxe, warhammer, or maul, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 When attacking with advantage, the target is knocked prone if both die would hit;\\n \\u2022 When attacking with disadvantage and missing, still do my Strength modifier in bludgeoning damage.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif ((/handaxe|battleaxe|greataxe|warhammer|maul/).test(v.baseWeaponName)) output.extraHit += 1;\n\t\t\t}, \"\"]\n\t}\n};\nFeatsList[\"blade mastery-ua\"] = {\n\tname : \"Blade Mastery\",\n\tsource : [[\"UA:F\", 2], [\"UA\", 0]],\n\tdescriptionFull : \"You master the shortsword, longsword, scimitar, rapier, and greatsword. You gain the following benefits when using any of them:\\n \\u2022 You gain a +1 bonus to attack rolls you make with the weapon.\\n \\u2022 On your turn, you can use your reaction to assume a parrying stance, provided you have the weapon in hand. Doing so grants you a +1 bonus to your AC until the start of your next turn or until you're not holding the weapon.\\n \\u2022 When you make an opportunity attack with the weapon, you have advantage on the attack roll.\",\n\tdescription : \"With a shortsword, longsword, greatsword, scimitar, or rapier, I get +1 to hit, advantage on opportunity attacks, and with the weapon in hand I can use my reaction to assume a parrying stance that gives me +1 AC until the start of my next turn.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif ((/shortsword|longsword|greatsword|scimitar|rapier/).test(v.baseWeaponName)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Advantage on opportunity attacks';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a shortsword, longsword, greatsword, scimitar, or rapier, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 Advantage on opportunity attacks.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif ((/shortsword|longsword|greatsword|scimitar|rapier/).test(v.baseWeaponName)) output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"reaction\", \" Parrying Stance\"]]\n};\nFeatsList[\"flail mastery-ua\"] = {\n\tname : \"Flail Mastery\",\n\tsource : [[\"UA:F\", 3], [\"UA\", 0]],\n\tdescriptionFull : \"The flail is a tricky weapon to use, but you have spent countless hours mastering it. You gain the following benefits:\\n \\u2022 You gain a +1 bonus to attack rolls you make with a flail.\\n \\u2022 As a bonus action on your turn, you can prepare yourself to extend your flail to sweep over targets' shields. Until the end of this turn, your attack rolls with a flail gain a +2 bonus against any target using a shield.\\n \\u2022 When you hit with an opportunity attack using a flail, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + your Strength modifier) or be knocked prone.\",\n\tcalculate : \"event.value = 'With a flail, I get +1 to hit, and enemies hit by an opportunity attack with it have to make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + What('Str Mod')) + ' (8 + Prof Bonus + Str mod) or be knocked prone. As a bonus action, I can get +2 to hit with my flail vs. targets with shields until the end of my turn.';\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == 'flail') {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On opportunity attack hit, Strength save (DC 8 + Prof Bonus + Str mod) or knocked prone';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a flail, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 Targets hit with it must make a Strength saving throw (DC 8 + proficiency bonus + Strength modifier) or be knocked prone.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.baseWeaponName == 'flail') output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"bonus action\", \"\"]]\n};\nFeatsList[\"spear mastery-ua\"] = {\n\tname : \"Spear Mastery\",\n\tsource : [[\"UA:F\", 3], [\"UA\", 0]],\n\tdescriptionFull : \"Though the spear is a simple weapon to learn, it rewards you for the time you have taken to master it. You gain the following benefits:\\n \\u2022 You gain a +1 bonus to attack rolls you make with a spear.\\n \\u2022 When you use a spear, its damage die changes from a d6 to a d8, and from a d8 to a d10 when wielded with two hands. (This benefit has no effect if another feature has already improved the weapon's die.)\\n \\u2022 You can set your spear to receive a charge. As a bonus action, choose a creature you can see that is at least 20 feet away from you. If that creature moves within your spear's reach on its next turn, you can make a melee attack against it with your spear as a reaction. If the attack hits, the target takes an extra 1d8 piercing damage, or an extra 1d10 piercing damage if you wield the spear with two hands. You can't use this ability if the creature used the Disengage action before moving.\\n \\u2022 As a bonus action on your turn, you can increase your reach with a spear by 5 feet for the rest of your turn.\",\n\tdescription : \"With a spear, I get +1 to hit and it does d8 damage (versatile d10). As a bonus action, I select a target at least 20 ft away. If it moves in reach on its next turn, I can attack it as a reaction, extra damage die. As a bonus action, I can increase the spear's reach by 5 ft.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == 'spear') {\n\t\t\t\t\tfields.Damage_Die = fields.Damage_Die === '1d6' ? '1d8' : fields.Damage_Die;\n\t\t\t\t\tfields.Description = fields.Description.replace('versatile (1d8)', 'versatile (1d10)');\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a spear, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 The spear damage die increases to d8 (versatile d10).\",\n\t\t\t1\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.baseWeaponName == 'spear') output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"bonus action\", \" (set vs. charge)\"], ['bonus action', ' (increase reach)']]\n};\nFeatsList[\"alchemist-ua\"] = {\n\tname : \"Alchemist\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You have studied the secrets of alchemy and are an expert in its practice, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with alchemist's supplies. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\\n \\u2022 As an action, you can identify one potion within 5 feet of you, as if you had tasted it. You must see the liquid for this benefit to work.\\n \\u2022 Over the course of any short rest, you can temporarily improve the potency of one potion of healing of any rarity. To use this benefit, you must have alchemist's supplies with you, and the potion must be within reach. If the potion is drunk no more than 1 hour after the short rest ends, the creature drinking the potion can forgo the potion's die roll and regains the maximum number of hit points that the potion can restore.\",\n\tdescription : \"I gain proficiency with alchemist's supplies, or expertise if already proficient. As an action, I can identify a potion within 5 ft. During a rest with alchemist's supplies, I can enhance a potion of healing, to heal its max. Consuming it within 1 hour maximizes its effects [+1 Int]\",\n\tscores : [0, 0, 0, 1, 0, 0],\n\taction : [[\"action\", \" (identify potion)\"]],\n\ttoolProfs : [[\"Alchemist's supplies\", \"Int\"]],\n\teval : function () {\n\t\tif ((/(alchemist|alchemy).*(supplies|kit)/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/(alchemist|alchemy).*(supplies|kit)/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"burglar-ua\"] = {\n\tname : \"Burglar\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You pride yourself on your quickness and your close study of certain clandestine activities. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with thieves' tools. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\",\n\tdescription : \"I gain proficiency with thieves' tools, or expertise with them if I'm already proficient. [+1 Dexterity]\",\n\tscores : [0, 1, 0, 0, 0, 0],\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\n\teval : function () {\n\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"gourmand-ua\"] = {\n\tname : \"Gourmand\",\n\tsource : [[\"UA:F\", 4]],\n\tdescriptionFull : \"You have mastered a variety of special recipes, allowing you to prepare exotic dishes with useful effects. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with cook's utensils. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\\n \\u2022 As an action, you can inspect a drink or plate of food within 5 feet of you and determine whether it is poisoned, provided that you can see and smell it.\\n \\u2022 During a long rest, you can prepare and serve a meal that helps you and your allies recover from the rigors of adventuring, provided you have suitable food, cook's utensils, and other supplies on hand. The meal serves up to six people, and each person who eats it regains two additional Hit Dice at the end of the long rest. In addition, those who partake of the meal have advantage on Constitution saving throws against disease for the next 24 hours.\",\n\tdescription : \"I gain proficiency with cook's utensils, or expertise if already proficient. As an action, I can detect poison in food within 5 ft. In a long rest with food/supplies, I can have 6 creatures regain 2 extra HD and give them adv. on Con saves vs. disease for 24 hours. [+1 Con]\",\n\tscores : [0, 0, 1, 0, 0, 0],\n\taction : [[\"action\", \" (inspect food)\"]],\n\ttoolProfs : [[\"Cook's utensils\", \"Int\"]],\n\teval : function () {\n\t\tif ((/cook.*utensils/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/cook.*utensils/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"master of disguise-ua\"] = {\n\tname : \"Master of Disguise\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You have honed your ability to shape your personality and to read the personalities of others. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with the disguise kit. If you are already proficient with it, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you spend 1 hour observing a creature, you can then spend 8 hours crafting a disguise you can quickly don to mimic that creature. Making the disguise requires a disguise kit. You must make checks as normal to disguise yourself, but you can assume the disguise as an action.\",\n\tdescription : \"I gain proficiency with the disguise kit, or expertise with it if I'm already proficient. After observing a creature for 1 hour, I can craft a disguise to mimic it in 8 hours with a disguise kit. Once finished, I can don this disguise as an action. [+1 Charisma]\",\n\tscores : [0, 0, 0, 0, 0, 1],\n\taction : [[\"action\", \" (don disguise)\"]],\n\ttoolProfs : [[\"Disguise kit\", \"Cha\"]],\n\teval : function () {\n\t\tif ((/disguise.*kit/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/disguise.*kit/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\n\n// ua_20160801_The-Faithful.js\n// This file adds the content from the Unearthed Arcana: The Faithful article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TF\"] = {\n\tname : \"Unearthed Arcana: The Faithful\",\n\tabbreviation : \"UA:TF\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA%20Non-Divine%20Faithful%20SFG.pdf\",\n\tdate : \"2016/08/01\"\n};\n\n// Adds 2 subclasses, 1 for the Warlock and 1 for the Wizard\nAddSubClass(\"warlock\", \"the seeker-ua\", { // Still valid 2021-09-21\n\tregExpSearch : /^(?=.*warlock)(?=.*seeker).*$/i,\n\tsubname : \"the Seeker\",\n\tsource : [[\"UA:TF\", 1]],\n\tspellcastingExtra : [\"feather fall\", \"jump\", \"levitate\", \"locate object\", \"clairvoyance\", \"sending\", \"arcane eye\", \"locate creature\", \"legend lore\", \"passwall\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Shielding Aurora\",\n\t\t\tsource : [[\"UA:TF\", 1]],\n\t\t\tminlevel : 1,\n\t\t\tdescription: desc([\n\t\t\t\t\"As a bonus action, I create a whirling aurora of brilliant energy around me\",\n\t\t\t\t\"It lasts until the end of my next turn and grants me resistance to all damage\",\n\t\t\t\t\"Any hostile ending its turn in 10 ft of me get Warlock level + Cha mod radiant damage\",\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Astral Refuge\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription: desc([\n\t\t\t\t\"As an action, I can step into an astral refuge, coming back at the end of the turn\",\n\t\t\t\t\"While in the astral refuge, I can take two actions to cast spells targeting just me\",\n\t\t\t]),\n\t\t\taction : [[\"action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Far Wanderer\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription: desc(\"I no longer need to breathe, and I gain resistance to fire damage and cold damage\"),\n\t\t\tdmgres : [\"Cold\", \"Fire\"]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Astral Sequestration\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription: desc([\n\t\t\t\t\"With a 5 minutes ritual, I can shift myself and ten willing creatures to the Astral Plane\",\n\t\t\t\t\"While sequestered an Astral Plane, we gain the full benefits of a short rest\",\n\t\t\t\t\"After this rest, we return to the same space as before, without any time having passed\",\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t}\n});\n\n// Add a Pact Boon option that is only available for \"the Seeker\" subclass\nAddFeatureChoice(ClassList.warlock.features[\"pact boon\"], false, \"Pact of the Star Chain\", {\n\tname : \"Pact of the Star Chain\",\n\tsource : [[\"UA:TF\", 1]],\n\tdescription : desc([\n\t\t\"My patron grants me an item of power which disappears when I die\",\n\t\t\"While it is on my person, I can cast Augury as a ritual\",\n\t\t\"Additionally, once per short rest, I can get advantage on an Intelligence check\",\n\t\t\"If I lose this item I can perform a 1-hour ceremony to get a replacement\"\n\t]),\n\tusages : 1,\n\trecovery : \"short rest\",\n\tspellcastingBonus : [{\n\t\tname : \"Pact of the Star Chain\",\n\t\tspells : [\"augury\"],\n\t\tselection : [\"augury\"],\n\t\tfirstCol : SpellRitualTag,\n\t}],\n\tspellChanges : {\n\t\t\"augury\" : {\n\t\t\ttime : \"11 min\",\n\t\t\tchanges : \"With my Pact of the Star Chain boon I can cast Augury only as a ritual, thus requiring 10 extra minutes to cast it.\"\n\t\t}\n\t},\n\tprereqeval : function(v) {\n\t\treturn classes.known.warlock && classes.known.warlock.subclass.indexOf(\"the seeker\") !== -1 ? true : \"skip\";\n\t}\n});\nRunFunctionAtEnd(function() {\n\tvar theTheurgySubclass = AddSubClass(\"wizard\", \"theurgy-ua\", { // Still valid 2021-09-21\n\t\tregExpSearch : /^((?=.*mystic)(?=.*theurge))|(?=.*(theurgy|theurgist)).*$/i,\n\t\tsubname : \"Theurgy\",\n\t\tsource : [[\"UA:TF\", 1], [\"UA:WR\", 1]],\n\t\tfullname : \"Theurgist\",\n\t\tfeatures : {\n\t\t\t\"subclassfeature2\" : {\n\t\t\t\tname : \"Arcane Initiate\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t'Choose a Cleric Domain using the \"Choose Feature\" button above',\n\t\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\t\"I can replace it with one of the chosen domain spells, if it is of a level I can cast\",\n\t\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t\t]),\n\t\t\t\tcalcChanges : {\n\t\t\t\t\tspellList : [\n\t\t\t\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1 || !CurrentSpells.wizard.extra || !CurrentSpells.wizard.selectSp || !spList.level || !spList.level[1]) return;\n\t\t\t\t\t\t\tvar domainSpells = CurrentSpells.wizard.extra;\n\t\t\t\t\t\t\t// now stop this function if even one of the domain spells is not already in the spellbook\n\t\t\t\t\t\t\tvar knownSpells = [].concat(CurrentSpells.wizard.selectSp ? CurrentSpells.wizard.selectSp : []).concat(CurrentSpells.wizard.selectSpSB ? CurrentSpells.wizard.selectSpSB : []);\n\t\t\t\t\t\t\tfor (var i = 0; i < domainSpells.length; i++) {\n\t\t\t\t\t\t\t\tif (knownSpells.indexOf(domainSpells[i]) == -1) return;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// get all the cleric spells, level 1-9\n\t\t\t\t\t\t\tvar clericSpells = CreateSpellList({\"class\" : \"cleric\", level : [1,9]});\n\t\t\t\t\t\t\tspList.extraspells = spList.extraspells.concat(clericSpells);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"When I gain a wizard level after my spellbook already has all the spells of my chosen domain, I can instead select any cleric spell of a level I can cast as one of the spells I gain from levelling up.\"\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\tchoices : [],\n\t\t\t\tchoiceDependencies : [{\n\t\t\t\t\tfeature : \"subclassfeature2.3\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature6\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature10\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature14\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"subclassfeature2.1\" : {\n\t\t\t\tname : \"Channel Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc(\"I can channel arcane energy from my deity; the save for this is my wizard spell DC\"),\n\t\t\t\tusages : [0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3],\n\t\t\t\trecovery : \"short rest\"\n\t\t\t},\n\t\t\t\"subclassfeature2.2\" : {\n\t\t\t\tname : \"Channel Arcana: Divine Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"As a bonus action, I speak a prayer to control the flow of magic around me\",\n\t\t\t\t\t\"The next spell I cast gains a +2 bonus to its attack roll or saving throw DC\",\n\t\t\t\t]),\n\t\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t\t},\n\t\t\t\"subclassfeature2.3\" : {\n\t\t\t\tname : \"Channel Arcana: Domain\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature6\" : {\n\t\t\t\tname : \"Arcane Acolyte\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 6,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature10\" : {\n\t\t\t\tname : \"Arcane Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 10,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature14\" : {\n\t\t\t\tname : \"Arcane High Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 14,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t}\n\t\t}\n\t});\n\tvar MTfeat = ClassSubList[theTheurgySubclass].features;\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\n\t\tvar aDomain = ClassSubList[ClassList.cleric.subclasses[1][i]];\n\t\tif (!aDomain) continue;\n\t\tvar dSource = aDomain.source ? aDomain.source : aDomain.features[\"subclassfeature1\"] && aDomain.features[\"subclassfeature1\"].source ? aDomain.features[\"subclassfeature1\"].source : [[\"UA:TF\", 0], [\"UA:WR\", 0]];\n\t\t\n\t\tvar suffix = 1;\n\t\tvar entryDoNm = aDomain.subname;\n\t\twhile (MTfeat[\"subclassfeature2\"].choices.indexOf(entryDoNm) !== -1) {\n\t\t\tsuffix += 1;\n\t\t\tentryDoNm = aDomain.subname + \" (\" + suffix + \")\";\n\t\t};\n\t\tMTfeat[\"subclassfeature2\"].choices.push(entryDoNm);\n\t\tMTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()] = {\n\t\t\tname : \"Arcane Initiate: \" + aDomain.subname,\n\t\t\tsource : dSource,\n\t\t\tspellcastingExtra : aDomain.spellcastingExtra,\n\t\t\tdescription: desc([\n\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\"I can replace it with one of the \" + aDomain.subname.toLowerCase() + \" spells, if it is of a level I can cast\",\n\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t]),\n\t\t};\n\t\tvar AIdomain = MTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()];\n\t\tfor (var aFea in aDomain.features) {\n\t\t\tvar dFea = aDomain.features[aFea];\n\t\t\tif (dFea.minlevel === 2 && (/channel divinity/i).test(dFea.name)) {\n\t\t\t\tMTfeat[\"subclassfeature2.3\"].choices.push(entryDoNm);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name = MTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name.replace(/channel divinity/i, \"Channel Arcana\");\n\t\t\t};\n\t\t\tif (dFea.minlevel === 1 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature6\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature6\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 6 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature10\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature10\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 17 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature14\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature14\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t};\n\t};\n});\n\n// ua_20160912_The-Ranger,-Revised.js\r\n// This file adds the content from the Unearthed Arcana: The Ranger, Revised article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RR\"] = {\r\n\tname : \"Unearthed Arcana: The Ranger, Revised\",\r\n\tabbreviation : \"UA:RR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_RevisedRanger.pdf\",\r\n\tdate : \"2016/09/12\"\r\n};\r\n\r\n//adds an alternative ranger class, including three subclasses\r\nClassList.rangerua = {\r\n\tregExpSearch : /^((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Ranger\",\r\n\tsource : [[\"UA:RR\", 2]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tabilitySave : 5,\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 10,\r\n\tsaves : [\"Str\", \"Dex\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, or Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Ranger starting equipment:\\n \\u2022 Scale mail -or- leather armor;\\n \\u2022 Two shortswords -or- two simple melee weapons;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Ranger Conclaves\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"ranger\"\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tspells : [0, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"favored enemy\" : {\r\n\t\t\tname : \"Favored Enemy\",\r\n\t\t\tsource : [[\"UA:RR\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a favored enemy',\r\n\t\t\t\t\"Choose from beasts, fey, humanoids, monstrosities, or undead\",\r\n\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against the chosen favored enemy\",\r\n\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about them\",\r\n\t\t\t\t\"I also learn one language of my choice, typically one associated with the favored enemy\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 6 ? \"+2\" : \"+4\") + \" weapon attack damage\";\r\n\t\t\t}),\r\n\t\t\tchoices : [\"Beasts\", \"Fey\", \"Humanoids\", \"Monstrosities\", \"Undead\"],\r\n\t\t\t\"beasts\" : {\r\n\t\t\t\tname : \"Favored Enemy: Beasts\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against beasts\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about beasts\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with beasts\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"fey\" : {\r\n\t\t\t\tname : \"Favored Enemy: Fey\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against fey\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about fey\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with fey\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"humanoids\" : {\r\n\t\t\t\tname : \"Favored Enemy: Humanoids\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against humanoids\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about humanoids\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with humanoids\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"monstrosities\" : {\r\n\t\t\t\tname : \"Favored Enemy: Monstrosities\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against monstrosities\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about monstrosities\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with monstrosities\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"undead\" : {\r\n\t\t\t\tname : \"Favored Enemy: Undead\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against undead\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about undead\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with undead\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [1],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.isSpell && classes.known.rangerua && classes.known.rangerua.level && (/favou?red.{1,2}enemy/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.rangerua.level < 6 ? 2 : 4;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Favored Enemy' in the name or description of a weapon, it gets bonus damage, depending on my Ranger level.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"natural explorer\" : {\r\n\t\t\tname : \"Natural Explorer\",\r\n\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"On my first turn in combat, I have adv. on attacks against those that did not yet act\",\r\n\t\t\t\t\"I ignore difficult terrain; I have adv. on Initiative; I have benefits in travel, see page 3\",\r\n\t\t\t]),\r\n\t\t\t\"travel benefits\" : {\r\n\t\t\t\tname : \"Travel Benefits\",\r\n\t\t\t\textraname : \"Natural Explorer\",\r\n\t\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"After one hour of traveling in the wilderness I gain the following benefits:\",\r\n\t\t\t\t\t\" \\u2022 My allies and I are not slowed by difficult terrain and can't get lost except by magic\",\r\n\t\t\t\t\t\" \\u2022 I am alert to danger even when doing something else; I forage twice as much food\",\r\n\t\t\t\t\t\" \\u2022 If alone (or alone with animal companion), I can move stealthily at my normal pace\",\r\n\t\t\t\t\t\" \\u2022 When tracking others, I also learn their exact number, size, and time since passing\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"travel benefits\" }],\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"fighting style\" : function () {\r\n\t\t\tvar FSfea = newObj(ClassList.ranger.features[\"fighting style\"]);\r\n\t\t\tFSfea.source = [\"UA:RR\", 3];\r\n\t\t\treturn FSfea;\r\n\t\t}(),\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can cast ranger spells that I know, using Wisdom as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"2 spells known\", \"3 spells known\", \"3 spells known\", \"4 spells known\", \"4 spells known\", \"5 spells known\", \"5 spells known\", \"6 spells known\", \"6 spells known\", \"7 spells known\", \"7 spells known\", \"8 spells known\", \"8 spells known\", \"9 spells known\", \"9 spells known\", \"10 spells known\", \"10 spells known\", \"11 spells known\", \"11 spells known\"]\r\n\t\t},\r\n\t\t\"primeval awareness\" : {\r\n\t\t\tname : \"Primeval Awareness\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I haven't attacked a beast within the last 10 min, I can communicate with it\",\r\n\t\t\t\t\"As an action, I convey simple ideas, and read mood, intent, emotions, needs, etc.\",\r\n\t\t\t\t\"By concentrating for 1 min, I know if any of my favored enemies are within 5 miles\",\r\n\t\t\t\t\"Per group, I sense the number, general direction, distance, and type of favored enemy\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (communicate)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Conclave\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose a Ranger Conclave you strive to emulate and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose either Beast Conclave, Deep Stalker Conclave or Hunter Conclave\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"greater favored enemy\" : {\r\n\t\t\tname : \"Greater Favored Enemy\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a greater favored enemy',\r\n\t\t\t\t\"Choose from aberrations, celestials, constructs, dragons, elementals, fiends, or giants\",\r\n\t\t\t\t\"I get all the bonuses from Favored Enemy for this creature type as well\",\r\n\t\t\t\t\"Additionally, I have adv. on saves vs. spells and abilities of this greater favored enemy\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"+4 weapon attack damage\",\r\n\t\t\tchoices : [\"Aberrations\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fiends\", \"Giants\"],\r\n\t\t\t\"aberrations\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Aberrations\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against aberrations\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by aberrations\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of aberrations\"] }\r\n\t\t\t},\r\n\t\t\t\"celestials\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Celestials\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against celestials\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by celestials\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of celestials\"] }\r\n\t\t\t},\r\n\t\t\t\"constructs\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Constructs\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against constructs\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by constructs\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of constructs\"] }\r\n\t\t\t},\r\n\t\t\t\"dragons\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Dragons\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against dragons\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by dragons\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of dragons\"] }\r\n\t\t\t},\r\n\t\t\t\"elementals\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Elementals\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against elementals\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by elementals\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of elementals\"] }\r\n\t\t\t},\r\n\t\t\t\"fiends\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Fiends\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against fiends\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by fiends\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of fiends\"] }\r\n\t\t\t},\r\n\t\t\t\"giants\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Giants\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against giants\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by giants\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of giants\"] }\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [1]\r\n\t\t},\r\n\t\t\"fleet of foot\" : {\r\n\t\t\tname : \"Fleet of Foot\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"I can take the Dash action as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"hide in plain sight\" : {\r\n\t\t\tname : \"Hide in Plain Sight\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I hide on my turn without moving, others take -10 Wis (Perception) to find me\",\r\n\t\t\t\t\"This lasts until something reveals my presence, or until I (voluntarily) move/fall prone\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"vanish\" : {\r\n\t\t\tname : \"Vanish\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can't be nonmagically tracked if I don't want to be and can Hide as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"feral senses\" : {\r\n\t\t\tname : \"Feral Senses\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When not blinded or deafened, I'm aware of invisible, non-hidden creatures in 30 ft\",\r\n\t\t\t\t\"I don't have disadvantage when attacking creatures I am aware of but can't see\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"foe slayer\" : {\r\n\t\t\tname : \"Foe Slayer\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc(\"Once per turn, I can add Wis mod to the attack or damage roll after I see the die roll\")\r\n\t\t}\r\n\t}\r\n};\r\n\r\nAddSubClass(\"rangerua\", \"beast master-ua\", {\r\n\tregExpSearch : /^(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Beast Conclave\",\r\n\tsource : [[\"UA:RR\", 5]],\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Animal Companion\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I call an animal by spending 8 hours and 50 gp; I can revive it with 8 hours and 25 gp\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"+1 HD for companion\", \"+2 HD for companion\", \"+3 HD for companion\", \"+4 HD for companion\", \"+5 HD for companion\", \"+6 HD for companion\", \"+7 HD for companion\", \"+8 HD for companion\", \"+9 HD for companion\", \"+10 HD for companion\", \"+11 HD for companion\", \"+12 HD for companion\", \"+13 HD for companion\", \"+14 HD for companion\", \"+15 HD for companion\", \"+16 HD for companion\", \"+17 HD for companion\"],\r\n\t\t\tcreaturesAdd : [[\"Animal Companion\", false, function(AddRemove, prefix) {\r\n\t\t\t\tif (!AddRemove) return;\r\n\t\t\t\tvar compOptions = [\"Ape\", \"Black Bear\", \"Boar\", \"Giant Badger\", \"Giant Weasel\", \"Mule\", \"Panther\", \"Wolf\"];\r\n\t\t\t\tvar selectedRace = AskUserOptions(\"Select Animal Companion\", \"Select which beast you would like to have as your animal companion.\\nYou can change the beast at any time using the \\\"Companion Options\\\" button at the top of the Companion page.\", compOptions, \"radio\", true);\r\n\t\t\t\tApplyCompRace(selectedRace, prefix, \"companionrr\");\r\n\t\t\t}]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Companion's Bond\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"My companion gains several benefits, see the Companion's sheet\")\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Coordinated Attack\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription: desc(\"If I take the Attack action, my companion can use its reaction to make a melee attack\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Beast's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"While my companion can see me, it has advantage on all saving throws\")\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Storm of Claws and Fangs\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"My companion can, as an action, make melee attacks vs. all creatures within 5 ft of it\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Superior Beast's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"My companion can, as a reaction, halve an attack's damage from attacker that it sees\")\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Beast Conclave's Animal Companion as a companion option\r\nCompanionList.companionrr = {\r\n\tname : \"Animal Companion\",\r\n\tnameTooltip : \"Beast Conclave: Animal Companion\",\r\n\tnameOrigin : \"Beast Conclave 3\",\r\n\tnameMenu : \"Animal Companion (Beast Conclave feature)\",\r\n\tsource : [[\"UA:RR\", 5]],\r\n\tincludeCheck : function(sCrea, objCrea, iCreaCR) {\r\n\t\t// Only specific animals\r\n\t\treturn /^(ape|black bear|boar|giant badger|giant weasel|mule|panther|wolf)$/i.test(sCrea);\r\n\t},\r\n\tattributesAdd : {\r\n\t\theader : \"Companion\",\r\n\t\tminlevelLinked : [\"rangerua\", \"ranger\", \"spell-less ranger\"],\r\n\t\tattacksAction : 1,\r\n\t\tproficiencyBonusLinked : true,\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Coordinated Attack\",\r\n\t\t\tdescription : \"As a reaction when the ranger owner takes the Attack action, the companion can make one melee attack.\",\r\n\t\t\tminlevel : 5\r\n\t\t}, {\r\n\t\t\tname : \"Storm of Claws and Fangs\",\r\n\t\t\tdescription : \"As an action, the companion can make a melee attack against each creature that is within 5 ft.\",\r\n\t\t\tminlevel : 11\r\n\t\t}, {\r\n\t\t\tname : \"Superior Beast's Defense\",\r\n\t\t\tdescription : \"As a reaction, the companion can halve the damage of an attack from an attacker that it can see.\",\r\n\t\t\tminlevel : 15\r\n\t\t}],\r\n\t\thdLinked : function(prefix) {\r\n\t\t\tvar iTotalHD = CurrentCompRace[prefix] && CurrentCompRace[prefix].hd ? CurrentCompRace[prefix].hd[0] : 0;\r\n\t\t\tvar bRngLvls = false;\r\n\t\t\t[\"rangerua\", \"ranger\", \"spell-less ranger\"].forEach(function (n) {\r\n\t\t\t\tif (classes.known[n]) {\r\n\t\t\t\t\tbRngLvls = true;\r\n\t\t\t\t\tiTotalHD += classes.known[n].level > 3 ? classes.known[n].level - 3 : 0;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tif (!bRngLvls && classes.totallevel > 3) iTotalHD += classes.totallevel - 3;\r\n\t\t\treturn iTotalHD;\r\n\t\t}\r\n\t},\r\n\tnotes : [{\r\n\t\tname : \"Call forth and bond with an animal\",\r\n\t\tdescription : \"from the wilderness by spending 8 hours and 50 gp\",\r\n\t\tjoinString : \" \"\r\n\t}, {\r\n\t\tname : \"I can have one companion at a time\",\r\n\t\tdescription : \"If it dies, I can spend 8 hours and 25 gp to bring it back\",\r\n\t\tjoinString : \"; \"\r\n\t}, {\r\n\t\tname : \"Companion's Bond\",\r\n\t\tdescription : [\r\n\t\t\t\"It obeys my commands as best it can, or acts on its own if I can't command it\",\r\n\t\t\t\"When moving stealthily together with only my companion, we can move at a normal pace\",\r\n\t\t\t\"It uses my Proficiency Bonus instead of its own and adds this to its AC and damage rolls\",\r\n\t\t\t\"My companion gains proficiency with 2 skills of my choice (not automated), as well as all saves\",\r\n\t\t\t\"It gains a HD (and thus HP) for every ranger level I gain after 3rd, and an ASI whenever I do\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : typePF ? \": \" : \"\\n   \"\r\n\t}, {\r\n\t\tname : \"In Combat\",\r\n\t\tdescription : [\r\n\t\t\t\"My companion rolls for initiative and takes actions as normal, but can't use Multiattack\",\r\n\t\t\t\"My companion gains a bonus on damage rolls against my favored enemies just like me\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : typePF ? \": \" : \":\\n   \"\r\n\t}, {\r\n\t\tname : \"Coordinated Attack (Beast Conclave 5, UA:RR 6)\",\r\n\t\tdescription : \"When I take the Attack action, my companion can use its reaction to make one melee attack\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 5\r\n\t}, {\r\n\t\tname : \"Beast's Defense (Beast Conclave 7, UA:RR 6)\",\r\n\t\tdescription : \"While my companion can see me, it has advantage on all saving throws\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 7\r\n\t}, {\r\n\t\tname : \"Storm of Claws and Fangs (Beast Conclave 11, UA:RR 6)\",\r\n\t\tdescription : \"My companion can, as an action, make a melee attack vs. all creatures within 5 ft of it\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 11\r\n\t}, {\r\n\t\tname : \"Superior Beast's Defense (Beast Conclave 15, UA:RR 6)\",\r\n\t\tdescription : \"My companion can, as a reaction, halve the damage of an attack from an attacker that it sees\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 15\r\n\t}],\r\n\tattributesChange : function(sCrea, objCrea) {\r\n\t\t// Add Prof to attack damage\r\n\t\tfor (var i = 0; i < objCrea.attacks.length; i++) {\r\n\t\t\tvar oAtk = objCrea.attacks[i];\r\n\t\t\tif (!oAtk.modifiers) {\r\n\t\t\t\toAtk.modifiers = [\"\", \"Prof\"];\r\n\t\t\t} else {\r\n\t\t\t\toAtk.modifiers[1] += \"+Prof\";\r\n\t\t\t}\r\n\t\t\tif (oAtk.description) { // Remove multiattack\r\n\t\t\t\toAtk.description = oAtk.description.replace(/(((One|Two|2).+as an Attack action)|(2 per Attack));? ?/i, '');\r\n\t\t\t}\r\n\t\t};\r\n\t\t// Remove multiattack trait/feature/action\r\n\t\t[\"traits\", \"features\", \"actions\"].forEach(function (n) {\r\n\t\t\tif (!objCrea[n]) return;\r\n\t\t\tfor (var i = objCrea[n].length - 1; i > -1; i--) {\r\n\t\t\t\tvar oN = objCrea[n][i];\r\n\t\t\t\tif (oN.name && /multiattack/i.test(oN.name)) {\r\n\t\t\t\t\tobjCrea[n].splice(i, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t\t// Proficient with all saving throws\r\n\t\tvar aSaves = objCrea.saves ? objCrea.saves : [\"\", \"\", \"\", \"\", \"\", \"\"];\r\n\t\tfor (var i = 0; i < aSaves.length; i++) {\r\n\t\t\tvar iProfSave = Math.round((objCrea.scores[i] - 10.5) * 0.5) + objCrea.proficiencyBonus;\r\n\t\t\tif (aSaves[i] === \"\" || aSaves[i] < iProfSave) {\r\n\t\t\t\taSaves[i] = iProfSave;\r\n\t\t\t}\r\n\t\t}\r\n\t\tobjCrea.saves = aSaves;\r\n\t},\r\n\teval : function(prefix, lvl) {\r\n\t\t// Set the alignment to be the same as the main character\r\n\t\tvar iAlignInx = tDoc.getField(\"Alignment\").currentValueIndices;\r\n\t\tif (iAlignInx !== -1) {\r\n\t\t\tPickDropdown(prefix + \"Comp.Desc.Alignment\", iAlignInx);\r\n\t\t} else {\r\n\t\t\tValue(prefix + \"Comp.Desc.Alignment\", What(\"Alignment\"));\r\n\t\t}\r\n\t\t// Set HP to use fixed values\r\n\t\tvar sHPfld = prefix + \"Comp.Use.HP.Max\";\r\n\t\tvar aHPsets = How(sHPfld).split(\",\");\r\n\t\taHPsets[3] = \"fixed\";\r\n\t\tAddTooltip(sHPfld, undefined, aHPsets.toString());\r\n\t\t// Add Prof to the AC, if not already present\r\n\t\tAddToModFld(prefix + \"Comp.Use.AC\", \"Prof\", false, \"Animal Companion\", \"An beast conclave's animal companion adds its proficiency bonus (Prof) to its AC.\");\r\n\t\t// Alert player of things that have to be done manually\r\n\t\tapp.alert({\r\n\t\t\tcMsg : toUni(\"Pick Two Skills\") + \"\\nThe Ranger's Animal Companion that you have just added, gains proficiency with two additional skills to those already selected. Because there is no automation for selecting these proficiencies, please do so manually.\\n\\n\" + toUni(\"Ability Score Improvements\") + \"\\nThe Ranger's Animal Companion gains Ability Score Improvements (ASI) whenever your character gains them. An animal companion can't use these to take feats. There is no automation for adding these ASIs either, so please don't forget to increase the ability scores for the animal companion when you get the reminder pop-up for ASI changes.\\nAlso, remember that any DCs for abilities that the beast possesses are based on ability scores modifier and that they might need to be manually changed when increasing ability scores modifiers.\\nThe 'Notes' section on the companion page automatically keeps track of how many points you can increase the ability scores with and what the base value of those scores are according to the Monster Manual.\",\r\n\t\t\tnIcon : 3,\r\n\t\t\tcTitle : \"Don't forget the Skills and Ability Score Improvements!\"\r\n\t\t});\r\n\t},\r\n\tchangeeval : function (prefix, lvl) {\r\n\t\t// Update the string with the number of Ability Score Improvements (ASI)\r\n\t\tvar objCreaFnd = CurrentCompRace[prefix];\r\n\t\tif (objCreaFnd.typeFound !== \"creature\" || !CreatureList[objCreaFnd.known]) return;\r\n\t\tvar objCrea = CreatureList[objCreaFnd.known];\r\n\t\tvar iASIs = 0;\r\n\t\tfor (var aClass in classes.known) {\r\n\t\t\tif (!CurrentClasses[aClass].improvements) continue;\r\n\t\t\tvar classLvL = Math.min(CurrentClasses[aClass].improvements.length, classes.known[aClass].level);\r\n\t\t\tiASIs += 2 * CurrentClasses[aClass].improvements[classLvL - 1];\r\n\t\t}\r\n\t\tvar sNote = What(prefix + \"Cnote.Left\");\r\n\t\tvar sNoteNew = sNote;\r\n\t\tif (!iASIs) {\r\n\t\t\tsNoteNew = sNote.replace(/[\\r\\n]? *Currently, \\d+ points.*/, \"\");\r\n\t\t} else {\r\n\t\t\tvar sIncreases = \"Currently, \" + iASIs + \" points to divide \" + (objCrea && objCrea.scores ? \"(default: \" + objCrea.scores[0] + \" Str, \" + objCrea.scores[1] + \" Dex, \" + objCrea.scores[2] + \" Con, \" + objCrea.scores[3] + \" Int, \" + objCrea.scores[4] + \" Wis, \" + objCrea.scores[5] + \" Cha)\" : \"among the ability scores\");\r\n\t\t\tsNoteNew = sNote.replace(/(ASI.*)([\\r\\n]? *Currently, \\d+ points.*)?/, \"$1\\r   \" + sIncreases);\r\n\t\t}\r\n\t\tif (sNote !== sNoteNew) Value(prefix + \"Cnote.Left\", sNoteNew);\r\n\t}\r\n}\r\n\r\nAddSubClass(\"rangerua\", \"hunter-ua\", {\r\n\tregExpSearch : /^(?!.*(monster|barbarian|bard|cleric|druid|fighter|monk|paladin|rogue|sorcerer|warlock|wizard))(?=.*(hunter|huntress|hunts(wo)?m(e|a)n)).*$/i,\r\n\tsubname : \"Hunter Conclave\",\r\n\tsource : [[\"UA:RR\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hunter's Prey\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Choose Colossus Slayer, Giant Killer, or Horde Breaker with the \"Choose Feature\" button'),\r\n\t\t\tchoices : [\"Colossus Slayer\", \"Giant killer\", \"Horde Breaker\"],\r\n\t\t\t\"colossus slayer\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Colossus Slayer\",\r\n\t\t\t\tdescription: desc(\"Once per turn, when hitting someone that is below max HP, I do an extra 1d8 damage\")\r\n\t\t\t},\r\n\t\t\t\"giant killer\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Giant Killer\",\r\n\t\t\t\tdescription: desc(\"As a reaction, when a Large or larger enemy in 5 ft attacks me, I can attack it once\"),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"horde breaker\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Horde Breaker\",\r\n\t\t\t\tdescription: desc(\"Once per turn, when I hit a creature, I can make an attack vs. another within 5 ft of it\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Defensive Tactics\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc('\"Choose Feature\" button to choose Escape the Horde, Multiattack Defense, or Steel Will'),\r\n\t\t\tchoices : [\"Escape the Horde\", \"Multiattack Defense\", \"Steel Will\"],\r\n\t\t\t\"escape the horde\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Escape the Horde\",\r\n\t\t\t\tdescription: desc(\"Creatures attacking me with opportunity attacks have disadvantage on the attack rolls\")\r\n\t\t\t},\r\n\t\t\t\"multiattack defense\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Multiattack Defense\",\r\n\t\t\t\tdescription: desc(\"When a creature hits me, I gain +4 AC against that creature for the rest of the turn\")\r\n\t\t\t},\r\n\t\t\t\"steel will\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Steel Will\",\r\n\t\t\t\tdescription: desc(\"I have advantage on saves against being frightened\"),\r\n\t\t\t\tsavetxt : { adv_vs : [\"frightened\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Multiattack\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc('Choose Volley or Whirlwind Attack using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Volley\", \"Whirlwind Attack\"],\r\n\t\t\t\"volley\" : {\r\n\t\t\t\tname : \"Multiattack: Volley\",\r\n\t\t\t\tdescription: desc(\"As an action, I can make ranged attacks vs. all within a 10-ft radius of a point in range\"),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"whirlwind attack\" : {\r\n\t\t\t\tname : \"Multiattack: Whirlwind Attack\",\r\n\t\t\t\tdescription: desc(\"As an action, I can make melee attacks vs. all creatures within 5 ft of me\"),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Superior Hunter's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc('\"Choose Feature\" button to choose Evasion, Stand Against the Tide, or Uncanny Dodge'),\r\n\t\t\tchoices : [\"Evasion\", \"Stand Against the Tide\", \"Uncanny Dodge\"],\r\n\t\t\t\"evasion\" : {\r\n\t\t\t\tname : \"Evasion\",\r\n\t\t\t\tdescription: desc(\"My Dexterity saves vs. areas of effect negate damage on success and halve it on failure\"),\r\n\t\t\t\tsavetxt : { text : [\"Dex save vs. area effects: fail \\u2015 half dmg, success \\u2015 no dmg\"] }\r\n\t\t\t},\r\n\t\t\t\"stand against the tide\" : {\r\n\t\t\t\tname : \"Stand Against the Tide\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When a creature misses me with a melee attack, I can use my reaction on the attack\",\r\n\t\t\t\t\t\"I force the attacker to repeat it vs. another (not attacker) of my choice within range\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"uncanny dodge\" : {\r\n\t\t\t\tname : \"Uncanny Dodge\",\r\n\t\t\t\tdescription: desc(\"As a reaction, I halve the damage of an attack from an attacker that I can see\"),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"rangerua\", \"deep stalker-ua\", {\r\n\tregExpSearch : /^(?=.*deep)(?=.*stalker).*$/i,\r\n\tsubname : \"Deep Stalker Conclave\",\r\n\tsource : [[\"UA:RR\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Underdark Scout\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"In the first turn of combat I have +10 ft speed and +1 attack with the Attack action\",\r\n\t\t\t\t\"When I'm hiding or trying to hide, others gain no benefit from darkvision to detect me\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Deep Stalker Magic\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 90 ft darkvision (or +30 ft) and gain extra known spells at level 3, 5, 9, 13, 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"glyph of warding\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tvision : [[\"Darkvision\", \"fixed 90\"], [\"Darkvision\", \"+30\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I am proficient with Wisdom saving throws\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Once during my turn when I miss an attack, I can immediately make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Stalker's Dodge\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// By popular demand, the XGtE, TCoE, FToD ranger subclasses, if they exist, are added as an option to the Revised Ranger\r\n// Note that there are no rules by WotC that support doing this!\r\nvar UARR_AddRangerSubclassesToRevisedRanger = function() {\r\n\tvar aSources = [\"X\", \"T\", \"FToD\"];\r\n\tvar aRngrSubs = ClassList.ranger.subclasses[1];\r\n\tfor (var i = 0; i < aRngrSubs.length; i++) {\r\n\t\tvar sSub = aRngrSubs[i];\r\n\t\tvar oSub = ClassSubList[sSub];\r\n\t\tif (!oSub || !oSub.source || ClassList.rangerua.subclasses[1].indexOf(sSub) !== -1) continue;\r\n\t\tvar sSubSrc = isArray(oSub.source[0]) ? oSub.source[0][0] : oSub.source[0];\r\n\t\tif (aSources.indexOf(sSubSrc) === -1) continue;\r\n\t\tClassList.rangerua.subclasses[1].push(sSub);\r\n\t}\r\n}();\r\n\n// ua_20161107_Barbarian-Primal-Paths.js\r\n// This file adds the content from the Unearthed Arcana: Barbarian Primal Paths article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BPP\"] = {\r\n\tname : \"Unearthed Arcana: Barbarian Primal Paths\",\r\n\tabbreviation : \"UA:BPP\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Barbarian.pdf\",\r\n\tdate : \"2016/11/07\"\r\n};\r\n\r\n// A three subclasses for the Barbarian\r\nAddSubClass(\"barbarian\", \"ancestral guardian-ua\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"UA:BPP\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action while raging, I can choose a creature within 5 ft of me that I can see\",\r\n\t\t\t\t\"The creature has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"If it takes the Disengage action within 5 feet of me, its speed is halved for its turn\",\r\n\t\t\t\t\"This lasts until the start of my next turn or my rage ends, whichever comes \",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Ancestral Shield\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm raging, I can transfer my resistance to an ally I can see within 30 ft of me\",\r\n\t\t\t\t\"As a reaction when an ally takes bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\"My ally keeps the resistance, and I lose it, until the start of my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can consult my ancestral spirits to give myself advantage on a Int or Wis check\"),\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm raging, I can have my vengeful ancestors attack for 2d8 force damage\",\r\n\t\t\t\t\"As a reaction when I or an ally I can see within 30 feet of me is damaged in melee\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"storm herald-ua\", {\r\n\tregExpSearch : /^(?=.*storm)(?=.*herald).*$/i,\r\n\tsubname : \"Path of the Storm Herald\",\r\n\tsubnameShort: \"Storm Herald\",\r\n\tfullname : \"Storm Herald\",\r\n\tsource : [[\"UA:BPP\", 2]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Storm Aura\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the aura',\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Desert\", \"Sea\", \"Tundra\"],\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm of Fury: Desert\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"Any enemy that ends its turn in my aura takes fire damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2 fire damage\", \"3 fire damage\", \"3 fire damage\", \"3 fire damage\", \"3 fire damage\", \"4 fire damage\", \"4 fire damage\", \"4 fire damage\", \"4 fire damage\", \"5 fire damage\", \"5 fire damage\", \"5 fire damage\", \"5 fire damage\", \"6 fire damage\", \"6 fire damage\", \"6 fire damage\", \"6 fire damage\", \"7 fire damage\"]\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm of Fury: Sea\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"At the end of each of my turns, I can choose a creature in my aura, other than myself\",\r\n\t\t\t\t\t\"It must make a Dex save or take lightning damage, or half damage on a successful save\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Constitution modifier\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"3d6\", \"3d6\", \"3d6\", \"3d6\", \"3d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\"],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"turn\"\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm of Fury: Tundra\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"Any enemy that ends its turn in my aura takes cold damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2 cold damage\", \"3 cold damage\", \"3 cold damage\", \"3 cold damage\", \"3 cold damage\", \"4 cold damage\", \"4 cold damage\", \"4 cold damage\", \"4 cold damage\", \"5 cold damage\", \"5 cold damage\", \"5 cold damage\", \"5 cold damage\", \"6 cold damage\", \"6 cold damage\", \"6 cold damage\", \"6 cold damage\", \"7 cold damage\"]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature14\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Storm Soul\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Soul: Desert\",\r\n\t\t\t\tdescription: desc(\"I have resistance to fire damage and don't suffer the effects of extreme heat\"),\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme heat\"] }\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Soul: Sea\",\r\n\t\t\t\tdescription: desc(\"I have resistance to lightning damage and can breathe underwater\"),\r\n\t\t\t\tdmgres : [\"Lightning\"]\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Soul: Tundra\",\r\n\t\t\t\tdescription: desc(\"I have resistance to cold damage and don't suffer the effects of extreme cold\"),\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme cold\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shield of the Storm\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While I'm raging, allies within my aura gain the benefits of my Storm Soul feature\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Raging Storm\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Raging Storm: Desert\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Enemy in my aura move more than 5 ft on the ground must make a Strength save\",\r\n\t\t\t\t\t\"On a fail, it moves only 5 ft and its speed drops to 0 until the start of its next turn\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Constitution modifier\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Raging Storm: Sea\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Creatures in my aura hit by my attack must make a Str save or be knocked prone\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Strength modifier\",\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.barbarian && classes.known.barbarian.level > 13 && (/\\brage\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Str save or knocked prone';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the word 'Rage' in a melee weapon's name, it will show in its description that it forces targets that are hit to make a Strength saving throw or be knocked prone.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Raging Storm: Tundra\",\r\n\t\t\t\tdescription: desc(\"The area within my aura is difficult terrain for my enemies\")\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"zealot-ua\", {\r\n\tregExpSearch : /zealot/i,\r\n\tsubname : \"Path of the Zealot\",\r\n\tsubnameShort: \"Zealot\",\r\n\tfullname : \"Zealot\",\r\n\tsource : [[\"UA:BPP\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Divine Fury\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, I can become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t'Choose a damage type using the \"Choose Feature\" button above',\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"1d6+1\", \"1d6+2\", \"1d6+2\", \"1d6+3\", \"1d6+3\", \"1d6+4\", \"1d6+4\", \"1d6+5\", \"1d6+5\", \"1d6+6\", \"1d6+6\", \"1d6+7\", \"1d6+7\", \"1d6+8\", \"1d6+8\", \"1d6+9\", \"1d6+9\", \"1d6+10\"],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"turn\",\r\n\t\t\tchoices : [\"Necrotic Damage\", \"Radiant Damage\"],\r\n\t\t\t\"necrotic damage\" : {\r\n\t\t\t\tname : \"Divine Fury: Necrotic\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t\t\"At the end of my turn, each creature within 5 feet of me takes necrotic damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"radiant damage\" : {\r\n\t\t\t\tname : \"Divine Fury: Radiant\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t\t\"At the end of my turn, each creature within 5 feet of me takes radiant damage\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Warrior of the Gods\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Spells restoring me to life (not undeath or anything else) don't need material comp.\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Zealous Focus\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when I fail a saving throw while raging, I can instead succeed on it\",\r\n\t\t\t\t\"Doing so immediately ends my rage and I can't rage again until I finish a short rest\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Zealous Presence\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I howl in fury and unleash a battle cry infused with divine energy\",\r\n\t\t\t\t\"Allies within 60 ft of me gain adv. on attacks and saves until the start of my next turn\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \" (allies within 60 feet)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage Beyond Death\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, having 0 hit points doesn't knock me unconscious\",\r\n\t\t\t\t\"I still must make death saves, and I suffer the normal effects of taking damage\",\r\n\t\t\t\t\"However, if I would die due to failing death saves, I don't die until my rage ends\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161114_Bard-Colleges.js\r\n// This file adds the content from the Unearthed Arcana: Bard Colleges article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BC\"] = {\r\n\tname : \"Unearthed Arcana: Bard Colleges\",\r\n\tabbreviation : \"UA:BC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Bard.pdf\",\r\n\tdate : \"2016/11/14\"\r\n};\r\n\r\n// Adds 2 subclasses for the Bard\r\nAddSubClass(\"bard\", \"college of glamour-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*glamour).*$/i,\r\n\tsubname : \"College of Glamour\",\r\n\tsubnameShort: \"Glamour\",\r\n\tsource : [[\"UA:BC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mantle of Inspiration\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I expend one bardic inspiration die to aid those within 60 ft of me\",\r\n\t\t\t\t\"A number of allies equal to my Cha mod gain twice the die roll in temporary HP\",\r\n\t\t\t\t\"They can use a reaction to move their speed toward me, without opportunity attacks\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Enthralling Performance\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By performing for at least 10 minutes, I can charm humanoids within 60 ft of me\",\r\n\t\t\t\t\"At the end of the performance, my Cha mod number of targets must make a Wis save\",\r\n\t\t\t\t\"On a fail, a target is charmed for 1 hour; If success, it doesn't knows I tried to charm it\",\r\n\t\t\t\t\"While charmed, the target idolizes me, hinders those opposing me, and avoids violence\",\r\n\t\t\t\t\"This lasts until a target takes damage, I attack it, or if it sees me attacking its allies\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I take on an appearance of unearthly beauty for 1 minute\",\r\n\t\t\t\t\"As a bonus action during this time, I can cast Command without using a spell slot\",\r\n\t\t\t\t\"Creatures charmed by me automatically fail their saves against these Command spells\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\t\tspells : [\"command\"],\r\n\t\t\t\tselection : [\"command\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"command\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tdescription : \"1 crea save (fails save if charmed) or follow one word command, e.g. approach, drop, flee, halt\",\r\n\t\t\t\t\tchanges : \"Using my Mantle of Majesty class feature, I can cast Command as a bonus action once per long rest without using a spell slot, thus only affect a single target.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can cast Sanctuary on myself without using a spell slot\",\r\n\t\t\t\t\"If a creature fails its save to this, I gain adv. on all Cha checks against it for 1 min\",\r\n\t\t\t\t\"In addition, the target has disadv. on saves it makes against my spells on my next turn\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\t\tspells : [\"sanctuary\"],\r\n\t\t\t\tselection : [\"sanctuary\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sanctuary\" : {\r\n\t\t\t\t\ttime : \"Self\",\r\n\t\t\t\t\tdescription : \"Any trying to atk/target me must save or fail, dis. on save vs. spell I cast next turn, I adv. on Cha vs. it\",\r\n\t\t\t\t\tchanges : \"Using my Unbreakable Majesty class feature, I can cast Sanctuary once per short rest without using a spell slot, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of whispers-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*whispers).*$/i,\r\n\tsubname : \"College of Whispers\",\r\n\tsubnameShort: \"Whispers\",\r\n\tsource : [[\"UA:BC\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Venomous Blades\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I hit with a weapon attack, I can expend a bardic inspiration die to add damage\",\r\n\t\t\t\t\"I roll the inspiration die twice, dealing the total in Poison damage to the target\",\r\n\t\t\t\t\"I can do this no more than once per round on my turn\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Venomous Words\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By speaking in private with a humanoid for at least 10 minutes, I can try to frighten it\",\r\n\t\t\t\t\"After the conversation, the target must make a Wisdom save or be frightened of me\",\r\n\t\t\t\t\"If the save is successful, the target doesn't know I try to frighten it\",\r\n\t\t\t\t\"While frightened, the target avoids the company of others, including its allies\",\r\n\t\t\t\t\"The target also tries to hide in the most secret, safest place available to it\",\r\n\t\t\t\t\"This lasts for 1 hour or until it is attacked/damaged, or if it sees me attacking its allies\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Whispers\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature dies within 5 ft or by my hand, I can capture its shadow\",\r\n\t\t\t\t\"I can use shadows of those with the same type and size as me (or Medium if I'm Small)\",\r\n\t\t\t\t\"I can have only one captured shadow at a time and I can don it as a shadow disguise\",\r\n\t\t\t]),\r\n\t\t\t\"shadow disguise\" : {\r\n\t\t\t\tname : \"Shadow Disguise\",\r\n\t\t\t\textraname : \"Mantle of Whispers\",\r\n\t\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can don a shadow that I captured as a disguise for 1 hour or until I stop it\",\r\n\t\t\t\t\t\"I take on the creature's appearance and I can access its surface memories, but not secrets\",\r\n\t\t\t\t\t\"I have access to information that it would would freely share with a casual acquaintance\",\r\n\t\t\t\t\t\"This is enough that I can pass myself off as the creature by drawing on its memories\",\r\n\t\t\t\t\t\"Anybody can see through the disguise with a Wis (Insight) check vs. my Cha (Deception) +5\",\r\n\t\t\t\t\t\"The knowledge disappears when the disguise ends\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"shadow disguise\" }]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Lore\",\r\n\t\t\tsource : [[\"UA:BC\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I whisper to a creature within 30 ft that can hear and understand me\",\r\n\t\t\t\t\"Only the target can hear me; It must make a Wisdom save or be charmed by me\",\r\n\t\t\t\t\"If failed, it thinks I know its most mortifying secret, otherwise it only hears mumbling\",\r\n\t\t\t\t\"While charmed, the target obeys my commands, but won't risk its life or fight for me\",\r\n\t\t\t\t\"This lasts for 8 hours or until I or my allies attack or damage it\",\r\n\t\t\t\t\"When the effect ends, the target has no idea why it was so afraid of me\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161121_Cleric-Divine-Domains.js\r\n// This file adds the content from the Unearthed Arcana: Cleric Divine Domains article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CDD\"] = {\r\n\tname : \"Unearthed Arcana: Cleric Divine Domains\",\r\n\tabbreviation : \"UA:CDD\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Cleric.pdf\",\r\n\tdate : \"2016/11/21\"\r\n};\r\n\r\n// Adds 3 subclasses for the Cleric\r\nAddSubClass(\"cleric\", \"forge domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(forge|forgery|blacksmith)).*$/i,\r\n\tsubname : \"Forge Domain\",\r\n\tsource : [[\"UA:CDD\", 1]],\r\n\tspellcastingExtra : [\"searing smite\", \"shield\", \"heat metal\", \"magic weapon\", \"elemental weapon\", \"protection from energy\", \"fabricate\", \"wall of fire\", \"animate objects\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Blessing of the Forge\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"At the end of a long rest, I can imbue magic into a nonmagical weapon or armor\",\r\n\t\t\t\t\"It becomes magical: +1 AC if armor, or +1 to attack and damage rolls if a weapon\",\r\n\t\t\t\t\"This lasts until the end of my next long rest\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Artisan's Blessing\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"During a short rest, I can conduct a ritual to craft an item that is at least part metal\",\r\n\t\t\t\t\"The object can be worth up to 100 gp, and I must expend metals of equal value to it\",\r\n\t\t\t\t\"The item can be an exact duplicate of a nonmagical item if I possess the original\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Forge\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"+6 force damage\", \"+7 force damage\", \"+8 force damage\", \"+9 force damage\", \"+10 force damage\", \"+11 force damage\", \"+12 force damage\", \"+13 force damage\", \"+14 force damage\", \"+15 force damage\", \"+16 force damage\", \"+17 force damage\", \"+18 force damage\", \"+19 force damage\", \"+20 force damage\"],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a +1 AC while wearing medium or heavy armor, and resistance to fire damage\",\r\n\t\t\t\t\"When I hit a construct with an attack, I deal my cleric level in additional force damage\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Fire\"],\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm wearing medium or heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.heavyArmor && !v.mediumArmor; }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 fire damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 fire damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra fire damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Saint of Forge and Fire\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain immunity to fire damage\",\r\n\t\t\t\t\"If wearing heavy armor, I'm resistant to nonmagical bludg./piercing/slashing damage\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"fire\"] },\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"grave domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(grave)).*$/i,\r\n\tsubname : \"Grave Domain\",\r\n\tsource : [[\"UA:CDD\", 2]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"gentle repose\", \"ray of enfeeblement\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"raise dead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Circle of Mortality\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Spells I cast to heal a living creature at 0 HP have their dice count as their max result\",\r\n\t\t\t\t\"As a bonus action, I can cast the Spare the Dying cantrip, if I know it\",\r\n\t\t\t]),\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spare the dying\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\trange : \"Touch\",\r\n\t\t\t\t\tchanges : \"I can cast spare the dying as a bonus action instead of an action.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Eyes of the Grave\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By spending 1 min in uninterrupted contemplation, I sense undead within 1 mile\",\r\n\t\t\t\t\"I learn their number, distance, and direction from me\",\r\n\t\t\t\t\"In addition, I know the creature type of the one with the highest CR\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Path to the Grave\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can touch a creature to make it take extra damage from one attack\",\r\n\t\t\t\t\"It is vulnerable to all the damage from the next spell or attack from me or an ally\",\r\n\t\t\t\t\"This only applies to the first time that source inflicts damage, and then ends\",\r\n\t\t\t\t\"If the creature has resistance or is immune to the damage, it instead loses it\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sentinel at Death's Door\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc(\"As a reaction, I turn a critical hit to me or an ally I see within 30 ft to a normal hit\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 necrotic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 necrotic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra necrotic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Keeper of Souls\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per round, if I'm not incapacitated, I can manipulate the energy of the dying\",\r\n\t\t\t\t\"When an enemy I can see dies within 30 ft of me, I or an ally within 30 ft regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the enemy's number of Hit Dice\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"protection domain-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(protection|protect|defend|defense)).*$/i,\r\n\tsubname : \"Protection Domain\",\r\n\tsource : [[\"UA:CDD\", 3]],\r\n\tspellcastingExtra : [\"compelled duel\", \"protection from evil and good\", \"aid\", \"protection from poison\", \"protection from energy\", \"slow\", \"guardian of faith\", \"otiluke's resilient sphere\", \"antilife shell\", \"wall of force\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Shield of the Faithful\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when someone within 5 ft of me is attacked, I impose disadv. on the roll\",\r\n\t\t\t\t\"To do this, I must be able to see both the attacker and the target\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Radiant Defense\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I channel blessed energy into an ally that I can see within 30 ft of me\",\r\n\t\t\t\t\"The first time the ally is hit within the next minute, the attacker takes radiant damage\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"2d10+2\", \"2d10+3\", \"2d10+4\", \"2d10+5\", \"2d10+6\", \"2d10+7\", \"2d10+8\", \"2d10+9\", \"2d10+10\", \"2d10+11\", \"2d10+12\", \"2d10+13\", \"2d10+14\", \"2d10+15\", \"2d10+16\", \"2d10+17\", \"2d10+18\", \"2d10+19\", \"2d10+20\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Blessed Healer\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I restore HP to another with a spell, I regain 2 + the spell (slot) level in HP\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\t// note that several healing spells are not present here because they don't restore hp at casting (only later)\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Necrotic\", \"Necro\").replace(\", and\", \",\") + \"; I then regain 2+SL HP\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"mass heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = \"Heal 700 HP, split over crea in range, each then +11 HP; also cures blind, deaf, diseases; I heal +11 HP\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"power word heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/heals all.*/i, \"full HP; not charmed, frightened, paralyzed, stunned; can stand up as rea; if other, I heal 2+SL\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"regenerate\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\" for rest of duration\", \"\");\r\n\t\t\t\t\t\t\tcase \"heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"all diseases\", \"diseases\");\r\n\t\t\t\t\t\t\tcase \"cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"healing word\" :\r\n\t\t\t\t\t\t\tcase \"mass cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"mass healing word\" :\r\n\t\t\t\t\t\t\tcase \"prayer of healing\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/creatures?/i, \"crea\").replace(\"within\", \"in\").replace(\"spellcasting ability modifier\", \"spellcasting ability mod\") + \"; if other, I heal 2+SL\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast a spell that restores hit points to another creature than myself at the moment of casting, I also heal 2 + the level of the spell slot (or spell slot equivalent) hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 radiant damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra radiant damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Indomitable Defense\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \" (transfer)\"], ['bonus action', ' (return)']],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain resistance to two of: bludgeoning, necrotic, piercing, radiant, or slashing damage\",\r\n\t\t\t\t\"Whenever I finish a short or long rest, I can change the damage types chosen\",\r\n\t\t\t\t\"As an action, I can transfer both resistances to one creature I touch\",\r\n\t\t\t\t\"As a bonus action, I can transfer the resistances back to myself\",\r\n\t\t\t\t\"Otherwise, the creature keeps this resistance until the end of my next short or long rest\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161128_Druid-Circles.js\r\n// This file adds the content from the Unearthed Arcana: Druid Circles article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:DC\"] = {\r\n\tname : \"Unearthed Arcana: Druid Circles\",\r\n\tabbreviation : \"UA:DC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Druid11272016_CAWS.pdf\",\r\n\tdate : \"2016/11/28\"\r\n};\r\n\r\n// Adds 3 subclasses for the Druid\r\nAddSubClass(\"druid\", \"circle of dreams-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*\\bdreams\\b).*$/i,\r\n\tsubname : \"Circle of Dreams\",\r\n\tsubnameShort: \"Dreams\",\r\n\tsource : [[\"UA:DC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Balm of the Summer Court\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of fey energy represented by a number of d6s equal to my druid level\",\r\n\t\t\t\t\"As a bonus action, I can spend dice to heal an ally within 120 ft of me that I can see\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"The ally heals an amount equal to the total rolled and gains 1 temp HP per die spent\",\r\n\t\t\t\t\"In addition, the ally gains +5 ft speed per die spent, which lasts for 1 minute\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n + \"d6 per \"; }),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hearth of Moonlight and Shadow\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of a short or long rest, I can create a warded area of 30-ft radius\",\r\n\t\t\t\t\"Within this area, my allies and I gain +5 on Wis (Perception) checks to detect creatures\",\r\n\t\t\t\t\"Also, any light from open flames is not visible from outside the area\",\r\n\t\t\t\t\"This effect lasts until the end of the rest or when I leave the area\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hidden Paths\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"On my turn, I can teleport up to 30 ft to where I can see; Moved distance costs speed\",\r\n\t\t\t\t\"As an action, I can teleport a willing ally I touch up to 30 ft to a spot I can see\",\r\n\t\t\t\t\"Once I used either option, I can't use this feature again until 1d4 rounds have passed\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"1d4 rounds\",\r\n\t\t\taction : [[\"action\", \" (on ally)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Purifying Light\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot with a spell to restores HP, I can use Dispel Magic on the target\",\r\n\t\t\t\t\"The Dispel Magic counts as if being cast with the same spell slot as the healing spell\",\r\n\t\t\t\t\"Each creature effected by the Dispel Magic costs as one use of this feature\"\r\n\t\t\t]),\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the shepherd-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"UA:DC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Beast Speech\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Bond\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can summon a spirit to an empty space within 60 ft that I can see\",\r\n\t\t\t\t\"The Bear, Hawk, or Wolf spirit, creates a 30-ft radius aura and persist for 1 minute\",\r\n\t\t\t\t\"It doesn't occupy space, is immobile, and counts as neither a creature nor an object\",\r\n\t\t\t\t\"\\u2022 Bear: my allies in the area and I instantly gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"   While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: my allies and I gain advantage on attacks against targets in the aura\",\r\n\t\t\t\t\"\\u2022 Wolf: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"   If I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"Beast I summon with my spells have +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that restores hit points, it restores an additional 2 + the level of the spell slot (or spell slot equivalent) used to cast the spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Whenever I finish a long rest, I gain the benefits of a Death Ward spell for 24 hours\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guardian Spirit\",\r\n\t\t\t\tspells : [\"death ward\"],\r\n\t\t\t\tselection : [\"death ward\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"death ward\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Once, when I drops to 0 HP I drops to 1 HP instead; or negates first instantaneous kill effect\",\r\n\t\t\t\t\tduration : \"24 h\",\r\n\t\t\t\t\tchanges : \"Whenever I finish a long rest, I gain the benefits of a Death Ward spell for 24 hours.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can summon protectors\",\r\n\t\t\t\t\"I gain the benefits of a Conjure Animals spell as if cast with a 9th-level spell slot\",\r\n\t\t\t\t\"It summons 4 beast of my choice with CR 2 or lower within 20 ft of me for 1 hour\",\r\n\t\t\t\t\"If they receive no commands from me, they protect me from harm and attack foes\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of twilight-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*twilight).*$/i,\r\n\tsubname : \"Circle of Twilight\",\r\n\tsubnameShort: \"Twilight\",\r\n\tsource : [[\"UA:DC\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Harvest's Scythe\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have a pool of energy represented by a number of d10s equal to my druid level\",\r\n\t\t\t\t\"When I roll damage for a spell, I can do extra necrotic damage with dice from the pool\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"If I any hostiles die from an augmented spell, I can heal one ally I can see within 30 ft\",\r\n\t\t\t\t\"The ally regains 2 HP per die spent; or 5 HP per die if one of the slain was undead\",\r\n\t\t\t]),\r\n\t\t\tusages : [\"\", \"2d10 per \", \"3d10 per \", \"4d10 per \", \"5d10 per \", \"6d10 per \", \"7d10 per \", \"8d10 per \", \"9d10 per \", \"10d10 per \", \"11d10 per \", \"12d10 per \", \"13d10 per \", \"14d10 per \", \"15d10 per \", \"16d10 per \", \"17d10 per \", \"18d10 per \", \"19d10 per \", \"20d10 per \"],\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Speech Beyond the Grave\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per short rest, I can cast Speak with Dead without spell slots or material comp.\",\r\n\t\t\t\t\"The target and I can understand each other, regardless of language or intelligence\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Speech Beyond the Grave\",\r\n\t\t\t\tspells : [\"speak with dead\"],\r\n\t\t\t\tselection : [\"speak with dead\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"speak with dead\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per short rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Watcher at the Threshold\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain resistance to necrotic and radiant damage\",\r\n\t\t\t\t\"While I'm not incapacitated, allies within 30 ft of me gain adv. on their death saves\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Necrotic\", \"Radiant\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Paths of the Dead\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Once per short rest, I can cast Etherealness without needing a spell slot\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Paths of the Dead\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Paths of the Dead class feature I can cast Etherealness once per short rest without needing a spell slot, thus can only target 1 creature.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161205_Fighter-Martial-Archetypes.js\r\n// This file adds the content from the Unearthed Arcana: Eberron article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FMA\"] = {\r\n\tname : \"Unearthed Arcana: Fighter Martial Archetypes\",\r\n\tabbreviation : \"UA:FMA\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/2016_Fighter_UA_1205_1.pdf\",\r\n\tdate : \"2016/12/05\"\r\n};\r\n\r\n// Adds 4 subclasses for the Fighter\r\nAddSubClass(\"fighter\", \"arcane archer-ua\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"UA:FMA\", 1]],\r\n\tfullname : \"Arcane Archer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arcane Arrow\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can create one magical arrow that I can fire with a bow\",\r\n\t\t\t\t\"A shot with the arrow counts as magical and does additional force damage on a hit\",\r\n\t\t\t\t\"When I create the arrow, I can apply one of my known Arcane Shots on it\",\r\n\t\t\t\t\"This arrow lasts until the end of my turn or until I hit or miss a target with it\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 18 ? \"+2\" : \"+4\") + \"d6 force damage\";\r\n\t\t\t}),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : ['bonus action', 'Create Magical Arrow'],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((/longbow|shortbow/i).test(v.baseWeaponName) && (/^(?=.*arcane)(?=.*arrow).*$/i).test(v.WeaponTextName) && classes.known.fighter && classes.known.fighter.level) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; +' : '+') + (classes.known.fighter.level < 18 ? 2 : 4) + 'd6 force damage';\r\n\t\t\t\t\t\t\tif (!v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as magical/i).test(fields.Description)) fields.Description += '; Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Arcane Arrow' in a longbow or shortbow's name, it gets an added description of the damage this Arcane Arrow adds.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to add Arcane Shots to the third page'),\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" known\"; }),\r\n\t\t\textraname : \"Arcane Shot\",\r\n\t\t\textrachoices : [\"Beguiling Arrow\", \"Brute Bane Arrow\", \"Bursting Arrow\", \"Defending Arrow\", \"Grasping Arrow\", \"Piercing Arrow\", \"Seeking Arrow\", \"Shadow Arrow\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"beguiling arrow\" : {\r\n\t\t\t\tname : \"Beguiling Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\t\tadditional: \"Enchantment\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, I choose an ally withing 30 feet of the target\",\r\n\t\t\t\t\t\"The target can't attack the chosen ally or include the ally in any harmful area of effects\",\r\n\t\t\t\t\t\"This effect stops if the target is immune to charm effects or the ally damages the target\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"brute bane arrow\" : {\r\n\t\t\t\tname : \"Brute Bane Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\t\tadditional: \"Necromancy\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, the target's attacks deal half damage until the end of my next turn\",\r\n\t\t\t\t\t\"Only attacks that deal bludgeoning, piercing or slashing damage are halved\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"bursting arrow\" : {\r\n\t\t\t\tname : \"Bursting Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Evocation\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, all creatures within 10 ft of the target creature take 2d6 force damage\")\r\n\t\t\t},\r\n\t\t\t\"defending arrow\" : {\r\n\t\t\t\tname : \"Defending Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Abjuration\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, the target has disadv. on its next attack before the end of my next turn\")\r\n\t\t\t},\r\n\t\t\t\"grasping arrow\" : {\r\n\t\t\t\tname : \"Grasping Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Conjuration\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, the target is wrapped with grasping, thorny brambles for 1 minute\",\r\n\t\t\t\t\t\"The target has -10 ft speed; It takes 2d6 slashing damage when moving more than 1 ft\",\r\n\t\t\t\t\t\"As an action, the target or a creature can remove the brambles with a DC 10 Str check\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"piercing arrow\" : {\r\n\t\t\t\tname : \"Piercing Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Transmutation\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The arrow transform into an ethereal dart that creates a line of 1 ft wide and 30 ft long\",\r\n\t\t\t\t\t\"I then make a separate attack using my Arcane Arrow against each creature in that line\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"seeking arrow\" : {\r\n\t\t\t\tname : \"Seeking Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Divination\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can make a ranged attack against a creature I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners and obstacles to hit the target\",\r\n\t\t\t\t\t\"The attack ignores 1/2 and 3/4 cover and disadvantage from range or being out of sight\",\r\n\t\t\t\t\t\"The attack misses if the target is too far away or there is no path for the arrow to travel\",\r\n\t\t\t\t\t\"I know if the arrow hits the target, but don't learn the location unless it's in line of sight\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"shadow arrow\" : {\r\n\t\t\t\tname : \"Shadow Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Illusion\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, the target can't see beyond 30 ft until the end of my next turn\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Archer's Lore\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills\",\r\n\t\t\t\t\"I can choose from: Arcana, Athletics, Nature, Perception, Stealth, or Survival\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from Arcana, Athletics, Nature, Perception, Stealth, and Survival\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Conjure Arrows\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can create up to 20 nonmagical arrows that remain for 10 minutes\",\r\n\t\t\t\t\"The arrows vanish if I use this feature again with 10 minutes\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Arrow\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one use of Arcane Arrow one minute after I expend my last remaining use of it\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"knight-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green|fey|horned))(?=.*knight).*$/i,\r\n\tsubname : \"Knight\",\r\n\tsource : [[\"UA:FMA\", 2]],\r\n\tfullname : \"Knight\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement\",\r\n\t\t\t\t\"I have advantage on saving throws made to avoid falling off my mount\",\r\n\t\t\t\t\"If I fall off my mount for less than 10 ft while not incapacitated, I land on my feet\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Implacable Mark\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I hit a creature with a melee weapon attack, I mark it until the end of my next turn\",\r\n\t\t\t\t\"A marked target has disadv. on any attacks vs. those that didn't mark it\",\r\n\t\t\t\t\"I can attack the target I marked if it is within 5 ft of me and does one of the following:\",\r\n\t\t\t\t\"\\u2022 It moves at least 1 foot on its turn\",\r\n\t\t\t\t\"\\u2022 It makes an attack that it suffers disadv. on from being marked\",\r\n\t\t\t\t\"This attack uses my reaction, has adv., and adds my fighter level as extra damage\",\r\n\t\t\t\t\"I can still do this if I already used my reaction this round, but not this turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/\\b(implacable.?mark|marked)\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.fighter.level;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Implacable Mark' or 'Marked' in the name of a melee weapon, it gets my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Noble Cavalry\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one language\",\r\n\t\t\t\t\"I can choose the skills from: Animal Handling, History, Insight, Persuasion, and Religion\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"2 Skill proficiencies: Animal Handling, History, Insight, Persuasion, or Religion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Noble Cavalry\",\r\n\t\t\t\tdescription: desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies: animal handling, history, insight, persuasion, or religion\" : {\r\n\t\t\t\tname : \"Noble Cavalry\",\r\n\t\t\t\tdescription: desc(\"I gain 2 skill proficiencies: Animal Handling, History, Insight, Persuasion, or Religion\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Animal Handling, History, Insight, Persuasion, or Religion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hold the Line\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature within 5 ft of me moves at least 1 ft, I can attack it\",\r\n\t\t\t\t\"This attack is made with a melee weapon attack and deals extra damage on a hit\",\r\n\t\t\t\t\"If this hits, the attack reduces the target's speed to 0 until the end of this turn\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"+\" + Math.floor(n / 2) + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 9 && (/holds?.the.line/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.floor(classes.known.fighter.level / 2);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Hold the Line' in the name of a melee weapon, it gets half my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Defender's Blade\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can do opportunity attacks if I already used my reaction this round, but not this turn\",\r\n\t\t\t\t\"I gain a +1 bonus to AC when I'm wearing heavy armor\",\r\n\t\t\t]),\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm wearing heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.heavyArmor; }\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"samurai-ua\", {\r\n\tregExpSearch : /samurai/i,\r\n\tsubname : \"Samurai\",\r\n\tsource : [[\"UA:FMA\", 3]],\r\n\tfullname : \"Samurai\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fighting Spirit\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can give myself benefits that last until the end of my next turn\",\r\n\t\t\t\t\"I then gain adv. on my attacks and resistance to bludgeoning/piercing/slashing damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Elegant Courtier\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\"I gain proficiency with either one language or the History, Insight, or Persuasion skill\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: History, Insight, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Elegant Courtier\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\t\"I gain proficiency with one language of my choice\",\r\n\t\t\t\t]),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: history, insight, or persuasion\" : {\r\n\t\t\t\tname : \"Elegant Courtier\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\t\"I gain proficiency with one skill: History, Insight, or Persuasion\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: History, Insight, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Unbreakable Will\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Strength Before Death\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I take damage that would reduce me to 0 HP, I can delay that damage\",\r\n\t\t\t\t\"I then immediately take a bonus turn, interrupting the current turn\",\r\n\t\t\t\t\"I don't take the delayed damage until the bonus turn ends and can affect that damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"sharpshooter-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /sharpshooter/i,\r\n\tsubname : \"Sharpshooter\",\r\n\tsource : [[\"UA:FMA\", 3]],\r\n\tfullname : \"Sharpshooter\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Steady Aim\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can carefully aim my ranged weapon on a target I can see in range\",\r\n\t\t\t\t\"Until the end of my turn, my attacks with this weapon on that target get to:\",\r\n\t\t\t\t\"Ignore half and three-quarter cover; Add 2 + half fighter level damage per hit\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + (2 + Math.floor(n / 2)) + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isRangedWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/steady.{0,3}aim/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Ignores 1/2 and 3/4 cover';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Steady Aim' in the name of a ranged weapon, it gets 2 + half my fighter level added to its Damage, and the fact that it ignores half and three-quarter cover added to its description.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isRangedWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/steady.{0,3}aim/i).test(v.WeaponTextName)) { output.extraDmg += 2 + Math.floor(classes.known.fighter.level / 2); };\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Careful Eyes\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can take the Search action\",\r\n\t\t\t\t\"I gain proficiency with one skill, Perception, Investigation, or Survival\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose one from: Perception, Investigation, or Survival\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Close-Quarters Shooting\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I don't have disadvantage when making a ranged attack while within 5 ft of a hostile\",\r\n\t\t\t\t\"A hostile within 5 ft that I hit with a ranged attack on my turn, can't take reactions\",\r\n\t\t\t\t\"This lasts until the end of my turn\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Snap Shot\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"I can make one more ranged attack with my Attack action on my first turn of combat\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161212_Monk-Monastic-Traditions.js\r\n// This file adds the content from the Unearthed Arcana: Monk Monastic Traditions article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MMT\"] = {\r\n\tname : \"Unearthed Arcana: Monk Monastic Traditions\",\r\n\tabbreviation : \"UA:MMT\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/M_2016_UAMonk1_12_12WKWT.pdf\",\r\n\tdate : \"2016/12/12\"\r\n};\r\n\r\n// Adds 2 subclasses for the Monk\r\nAddSubClass(\"monk\", \"way of the kensei-ua\", {\r\n\tregExpSearch : /kensei/i,\r\n\tsubname : \"Way of the Kensei\",\r\n\tsubnameShort: \"Kensei\",\r\n\tsource : [[\"UA:MMT\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of the Kensei\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"3 martial weapons proficiencies\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Martial weapons I am proficient with count as kensei weapons for me\",\r\n\t\t\t\t\"With these, I can use Dex instead of Str and use the Martial Arts damage die\",\r\n\t\t\t\t\"As a bonus action, my kensei weapon deal +1d4 bludg. damage for an Attack action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level > 2 && fields.Proficiency && !v.isSpell && v.baseWeaponName !== 'shortsword' && (/martial/i).test(v.theWea.type)) {\r\n\t\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tvar curDie = eval_ish(fields.Damage_Die.replace('d', '*'));\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tvar curDie = 'x';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif (isNaN(curDie) || curDie < aMonkDie) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = '1d' + aMonkDie;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 bludg. damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I can use either Strength or Dexterity and my Martial Arts damage die in place of the normal damage die for any martial weapons I am proficient with (Kensei Weapons).\\n \\u2022 If I score a hit with one of these kensei weapons as part of an Attack action, I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 bludgeoning damage.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"kensei defense\" : {\r\n\t\t\t\tname : \"Kensei Defense\",\r\n\t\t\t\textraname : \"Way of the Kensei 3\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If I make an unarmed strike with an Attack action, I can use my kensei weapon to defend\",\r\n\t\t\t\t\t\"Until the start of my next turn, if I'm not incapacitated, I gain +2 AC while holding it\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"kensei defense\" }]\r\n\t\t},\r\n\t\t\"ki-empowered strikes\" : {\r\n\t\t\tname : \"One with the Blade\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((v.baseWeaponName == \"unarmed strike\" || (!v.isSpell && (/martial/i).test(v.theWea.type) && fields.Proficiency)) && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My unarmed strikes and Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Precise Strike\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \"As a bonus action, I can focus my attention on one creature I can see within 30 ft\" + \"\\n   \" + \"This turn, I double my proficiency bonus on my next weapon attack against that mark\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.isSpell && !v.isDC && (/precise.{0,3}strike/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.prof *= 2;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Precise Strike' in a weapon's name, or description it gets twice my proficiency bonus added to its To Hit instead of only once.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tadditional: \"1 to 3 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can grant my weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\"This bonus is equal to the number of ki points I spend; It lasts for 1 minute\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"On each of my turns, I can reroll one weapon attack roll I make that misses\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of tranquility-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*tranquility|tranquil|calm|diplomatic|diplomat)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Tranquility\",\r\n\tsubnameShort: \"Tranquility\",\r\n\tsource : [[\"UA:MMT\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of Tranquility\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I cast Sanctuary on me, no material comp., lasts 8 hours, hostiles must save every hour\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"1 min\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Way of Tranquility\",\r\n\t\t\t\tspells : [\"sanctuary\"],\r\n\t\t\t\tselection : [\"sanctuary\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sanctuary\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\ttime : \"8 h\",\r\n\t\t\t\t\tdescription : \"I'm warded; any who want to attack/target must first make save; doesn't protect vs. area spells\",\r\n\t\t\t\t\tchanges : \"Using my Path of Tranquility class feature I can cast Sanctuary without requiring material components and lasting for 8 hours, but it only affects myself and hostiles can attempt a new save every hour.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I use points to heal living creature; or 5 points to cure one poison/disease\",\r\n\t\t\t\t\"With Flurry of Blows, I can replace one unarmed strike with a use of this feature\",\r\n\t\t\t]),\r\n\t\t\tusages : [0, 0, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Emissary of Peace\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [Performance or Persuasion prof]\" + \"\\n   \" + \"I get adv. on Cha checks to calm or counsel peace; not with Deception or Intimidation\",\r\n\t\t\tskillstxt : \"Choose one from: Performance or Persuasion\",\r\n\t\t\t\"douse the flames of war\" : {\r\n\t\t\t\tname : \"Douse the Flames of War\",\r\n\t\t\t\textraname : \"Way of Tranquility 11\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a creature I touch must make a Wisdom save or have no violent impulses\",\r\n\t\t\t\t\t\"If the target is missing any HP it succeeds on the save; The effect lasts for 1 minute\",\r\n\t\t\t\t\t\"During this time, it can't attack or cast spells that deal damage or force a saving throw\",\r\n\t\t\t\t\t\"This effect ends if the target is attacked, takes damage, or is forced to make a saving throw\",\r\n\t\t\t\t\t\"It also ends if the target witnesses any of those things happening to its allies\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"douse the flames of war\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Anger of a Gentle Soul\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a reaction if another I see goes to 0 HP, I get bonus damage until my next turn ends\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"+17\", \"+18\", \"+19\", \"+20\"],\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161219_Paladin-Sacred-Oaths.js\r\n// This file adds the content from the Unearthed Arcana: Paladin Sacred Oaths article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:PSO\"] = {\r\n\tname : \"Unearthed Arcana: Paladin Sacred Oaths\",\r\n\tabbreviation : \"UA:PSO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UAPaladin_SO_20161219_1.pdf\",\r\n\tdate : \"2016/12/19\"\r\n};\r\n\r\n// Adds 2 subclasses for the Paladin\r\nAddSubClass(\"paladin\", \"oath of conquest-ua\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"UA:PSO\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use my channel divinity to break a foe's will that I hit with my melee weapon\",\r\n\t\t\t\t\"The target must make a Wisdom saving throw or become frightened for 1 minute\",\r\n\t\t\t\t\"The target can repeat this save at the end of each or its turn to end the effect\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"blight\", \"dominate beast\", \"dominate person\", \"insect plague\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"While I'm not incapacitated, enemies in range have disadv. on saves vs. being frightened\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Implacable Spirit\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I can't be charmed\"),\r\n\t\t\tsavetxt : { immune : [\"charmed\"] }\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\"\\u2022 I have resistance all damage\",\r\n\t\t\t\t\"\\u2022 I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\"\\u2022 My melee weapons score critical hits on a roll of 19 or 20\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of treachery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^((?=.*blackguard)|(((?=.*(treachery|tyranny|tyrant))(?=.*paladin))|((?=.*(profane|unholy))(?=.*(knight|fighter|warrior|warlord|trooper))))).*$/i,\r\n\tsubname : \"Oath of Treachery\",\r\n\tsubnameShort: \"Treachery\",\r\n\tsource : [[\"UA:PSO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conjure Duplicate\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I create 1 illusory duplicate of myself within 30 ft of me for 1 min (conc)\",\r\n\t\t\t\t\"As a bonus action, I can move it up to 30 ft to a space I can see within 120 ft of me\",\r\n\t\t\t\t\"I can cast spells as though I was in its space, but still have to use my own senses\",\r\n\t\t\t\t\"I have advantage on attacks if the target is within 5 ft of the duplicate and me\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], ['bonus action', 'Move Duplicate']],\r\n\t\t\tspellcastingExtra : [\"charm person\", \"expeditious retreat\", \"invisibility\", \"mirror image\", \"gaseous form\", \"haste\", \"confusion\", \"greater invisibility\", \"dominate person\", \"passwall\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Poison Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I imbue one weapon or piece of ammunition with poison upon touch\",\r\n\t\t\t\t\"This poison lasts for 1 minute and will affect the next time I hit a target with it\",\r\n\t\t\t\t\"The target takes 2d10 + my paladin level poison damage immediately after the hit\",\r\n\t\t\t\t\"I automatically roll 20 on the 2d10 if I have advantage on the attack roll\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"2d10+\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && (/^(?=.*poison)(?=.*strike).*$/i).test(v.WeaponTextName) && classes.known.paladin && classes.known.paladin.level) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d10+' + classes.known.paladin.level + ' poison damage (or ' + (classes.known.paladin.level + 20) + ' if adv.)';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Poison Strike' in a weapon's name, it gets an added description of the extra 2d10 + paladin level of poison damage it would do. If I have advantage on the attack, I can treat the 2d10 as rolling 20 in total.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Cull the Herd\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I have adv. on melee attacks against creatures that have an ally of it within 5 ft of it\")\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Treacherous Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature within 5 ft misses me, I can redirect the attack\",\r\n\t\t\t\t\"If it can be charmed, it rerolls the attack on a target of my choice within 5 ft of it\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Blackguard's Escape\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction after I am hit by an attack, I can teleport up to 60 ft to a spot I can see\",\r\n\t\t\t\t\"In doing this, I also become invisible (as the spell) until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\"icon of deceit\" : {\r\n\t\t\t\tname : \"Icon of Deceit\",\r\n\t\t\t\textraname : \"Oath of Treachery 20\",\r\n\t\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\t\"\\u2022 I become invisible\",\r\n\t\t\t\t\t\"\\u2022 If I have adv. on an attack, I do 20 extra damage with it if it hits\",\r\n\t\t\t\t\t\"\\u2022 If a creature hits me on its turn, it must make a Wis save or I control its next action\",\r\n\t\t\t\t\t\"   Provided it can be charmed and I am not incapacitated when it takes the action\",\r\n\t\t\t\t]),\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"icon of deceit\",\r\n\t\t\t\tminlevel : 20\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170116_Ranger-and-Rogue.js\r\n// This file adds the content from the Unearthed Arcana: Ranger and Rogue article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RnR\"] = {\r\n\tname : \"Unearthed Arcana: Ranger and Rogue\",\r\n\tabbreviation : \"UA:RnR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/2017_01_UA_RangerRogue_0117JCMM.pdf\",\r\n\tdate : \"2017/01/16\"\r\n};\r\n\r\n// Adds 3 subclasses: 2 for the Ranger (and the Revised Ranger), and 1 for the Rogue\r\nvar UARnR_theHorizonWalkerSubclass = {\r\n\tregExpSearch : /^(?=.*horizon)(?=.*walker).*$/i,\r\n\tsubname : \"Horizon Walker\",\r\n\tsource : [[\"UA:RnR\", 1]],\r\n\tfullname : \"Horizon Walker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Planar magic\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"alter self\", \"protection from energy\", \"banishment\", \"teleportation circle\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Planar Walker\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose an enemy within 30 ft of me that I can see\",\r\n\t\t\t\t\"Until the end of this turn, my attack against that enemy ignore damage resistances\",\r\n\t\t\t\t\"In addition, the first time I hit it this turn, it takes an extra 1d6 force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Portal Lore\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I sense the distance and direction to any planar portals within 1000 ft\",\r\n\t\t\t\t\"I also sense to which plane the portal leads to; I can't sense details if obscured by magic\",\r\n\t\t\t\t\"I can use this feature additional times by expending spell slots of 2nd level or higher\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ethereal Step\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"As a bonus action, I can cast the Etherealness spell, which lasts until the end of the turn\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Ethereal Step\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tduration : \"1 rnd\",\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Ethereal Step class feature I can cast Etherealness as a bonus action once per short rest, but it only affects myself and lasts until the end of my turn.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Distant Strike\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can teleport 10 ft before each attack, to a place I can see\",\r\n\t\t\t\t\"If I attack two different creatures with this action, I get an extra attack against a third\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Spectral Defense\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I take damage, I can halve that damage against me\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddSubClass(\"ranger\", \"horizon walker-ua\", UARnR_theHorizonWalkerSubclass);\r\nvar UARnR_thePrimevalGuardianSubclass = { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*primeval)(?=.*guardian).*$/i,\r\n\tsubname : \"Primeval Guardian\",\r\n\tsource : [[\"UA:RnR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Guardian magic\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"entangle\", \"enhance ability\", \"conjure animals\", \"giant insect\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Guardian Soul\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I transform to or from a guardian form, changing me as follows:\",\r\n\t\t\t\t\"\\u2022 I grow to Large size, all my movement is reduced to 5 ft, and I get +5 ft reach\",\r\n\t\t\t\t\"\\u2022 I gain half my ranger level in temporary HP at the start of each of my turns\",\r\n\t\t\t\t\"This ends when I'm incapacitated; When it ends, I lose all temporary HP I got from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"1 temp HP per round\", \"2 temp HP per round\", \"2 temp HP per round\", \"3 temp HP per round\", \"3 temp HP per round\", \"4 temp HP per round\", \"4 temp HP per round\", \"5 temp HP per round\", \"5 temp HP per round\", \"6 temp HP per round\", \"6 temp HP per round\", \"7 temp HP per round\", \"7 temp HP per round\", \"8 temp HP per round\", \"8 temp HP per round\", \"9 temp HP per round\", \"9 temp HP per round\", \"10 temp HP per round\"],\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Piercing Thorns\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Once each turn, a hit from my weapon attack can deal 1d6 extra piercing damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell) fields.Description += (fields.Description ? '; ' : '') + 'Once per turn, +1d6 piercing damage';\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My weapon attacks can deal 1d6 extra piercing damage once per turn.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ancient Fortitude\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I assume my guardian form, my HP \\u0026 max HP increase by twice my ranger level\",\r\n\t\t\t\t\"When I leave the form, my max HP reverts back, and any excess HP I have is lost\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"+16 max HP\", \"+18 max HP\", \"+20 max HP\", \"+22 max HP\", \"+24 max HP\", \"+26 max HP\", \"+28 max HP\", \"+30 max HP\", \"+32 max HP\", \"+34 max HP\", \"+36 max HP\", \"+38 max HP\", \"+40 max HP\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Rooted Defense\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"While in guardian form, the ground within 30 ft of me is difficult terrain for hostiles\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Guardian Aura\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm in my guardian form, I heal allies that start their turn within 30 ft of me\",\r\n\t\t\t\t\"They heal half my ranger level if they are below half HP and not undead or constructs\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"Heals 7 HP\", \"Heals 8 HP\", \"Heals 8 HP\", \"Heals 9 HP\", \"Heals 9 HP\", \"Heals 10 HP\"]\r\n\t\t}\r\n\t}\r\n};\r\nAddSubClass(\"ranger\", \"primeval guardian-ua\", UARnR_thePrimevalGuardianSubclass);\r\nif (ClassList[\"rangerua\"]) { // add them to the Revised Ranger as well, if it is defined\r\n\tvar UARnR_theHorizonConclaveSubclass = newObj(UARnR_theHorizonWalkerSubclass);\r\n\tUARnR_theHorizonConclaveSubclass.subname = \"Horizon Conclave\";\r\n\tUARnR_theHorizonConclaveSubclass.regExpSearch = /^(?=.*horizon)(?=.*conclave).*$/i\r\n\tdelete UARnR_theHorizonConclaveSubclass.fullname;\r\n\tAddSubClass(\"rangerua\", \"horizon conclave-ua\", UARnR_theHorizonConclaveSubclass);\r\n\tvar UARnR_thePrimevalGuardianConclaveSubclass = newObj(UARnR_thePrimevalGuardianSubclass);\r\n\tUARnR_thePrimevalGuardianConclaveSubclass.subname = \"Primeval Guardian Conclave\";\r\n\tdelete UARnR_thePrimevalGuardianConclaveSubclass.fullname;\r\n\tAddSubClass(\"rangerua\", \"primeval guardian conclave-ua\", UARnR_thePrimevalGuardianConclaveSubclass);\r\n};\r\nAddSubClass(\"rogue\", \"scout-ua\", {\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"UA:RnR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Skirmisher\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile ends its turn within 5 ft of me, I can move half my speed\",\r\n\t\t\t\t\"This movement does not provoke attacks of opportunity\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Survivalist\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency and expertise with the Nature and Survival skills\"),\r\n\t\t\tskills : [['Nature', 'full'], ['Survival', 'full']]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Superior Mobility\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"I gain +10 ft to my walking speed (and swimming/climbing speed, if applicable)\"),\r\n\t\t\tspeed : { \r\n\t\t\t\tallModes : { bonus : \"+10\", exclude : [\"fly\", \"burrow\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ambush Master\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action in the first combat round with a surprised foe, I can lead the ambush\",\r\n\t\t\t\t\"If I do so, allies who can see me gets +5 to their initiative roll, up to my initiative value\",\r\n\t\t\t\t\"Also, each ally gains +10 ft to its speed that lasts until the end their next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (first round)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sudden Strike\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"With the Attack action, I can make one additional attack as a bonus action\",\r\n\t\t\t\t\"This attack can benefit from my Sneak Attack even if I already used it this turn\",\r\n\t\t\t\t\"However, I still can't use Sneak Attack on a single target more than once per turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170206_Sorcerous-Origins.js\r\n// This file adds the content from the Unearthed Arcana: Sorcerous Origins article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SO\"] = {\r\n\tname : \"Unearthed Arcana: Sorcerous Origins\",\r\n\tabbreviation : \"UA:SO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/26_UASorcererUA020617s.pdf\",\r\n\tdate : \"2017/02/06\"\r\n};\r\n\r\n// Adds 4 subclasses for the Sorcerer\r\n//this code includes contributions by /u/SoilentBrad, as well as LamentingDemon on GitHub\r\nAddSubClass(\"sorcerer\", \"favored soul-ua2\", {\r\n\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\tsubname : \"Favored Soul\",\r\n\tsource : [[\"UA:SO\", 1]],\r\n\tfullname : \"Favored Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I select my 1st level or higher spells, I can also pick spells from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Supernatural Resilience\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My hit point maximum increases by an amount equal to my sorcerer level\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Supernatural Resilience (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Blessed Countenance\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose an otherworldly quality using the \"Choose Feature\" button above',\r\n\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Beautiful\", \"Youthful\", \"Kind\", \"Imposing\"],\r\n\t\t\t\"beautiful\" : {\r\n\t\t\t\tname : \"Beautiful\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of beauty\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"youthful\" : {\r\n\t\t\t\tname : \"Youthful\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of youthfulness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"kind\" : {\r\n\t\t\t\tname : \"Kind\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of kindness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"imposing\" : {\r\n\t\t\t\tname : \"Imposing\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of imposingness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tskillstxt : \"I gain expertise in any Charisma-based skill I'm proficient with\",\r\n\t\t\tskills : [[\"Deception\", \"only\"], [\"Intimidation\", \"only\"], [\"Performance\", \"only\"], [\"Persuasion\", \"only\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Divine Purity\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I become immune to disease and poison\"),\r\n\t\t\tsavetxt : { immune : [\"poison\", \"disease\"] }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my maximum hit points\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad, as well as Toby L.\r\nAddSubClass(\"sorcerer\", \"phoenix sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*phoenix)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Phoenix Sorcery\",\r\n\tsource : [[\"UA:SO\", 1]],\r\n\tfullname : \"Phoenix Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Ignite\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"As an action, I can magically ignite a flammable object by touching it with my hand\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Mantle of Flame\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can wreathe myself in fire for 1 minute, gaining these benefits:\",\r\n\t\t\t\t\" - I shed bright light in a 30-ft radius and dim light for an additional 30 ft\",\r\n\t\t\t\t\" - I deal my Charisma modifier in fire damage to all that touch me\",\r\n\t\t\t\t\" - I also deal this damage to all that hit me with a melee attack from within 5 ft\",\r\n\t\t\t\t\" - When I roll for fire damage on my turn, I add my Charisma damage to the result\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Phoenix Spark\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I am reduced to 0 HP, I can draw on the phoenix to stay at 1 HP\",\r\n\t\t\t\t\"All creatures within 10 ft of me take half my sorcerer level + my Cha mod fire damage\",\r\n\t\t\t\t\"If I have Mantle of Flame active, this damage is my sorcerer level + twice my Cha mod\",\r\n\t\t\t\t\"If I use this feature, my Mantle of Flame immediately ends\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn Math.floor(n / 2) + \"+Cha \\u007Cor\\u007C \" + n + \"+2\\xD7Cha\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Nourishing Fire\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell using a spell slot that includes a fire damage roll, I regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the spell slot level + my Charisma modifier\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Form of the Phoenix\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my Mantle of Flame is active, I gain the following additional benefits:\",\r\n\t\t\t\t\"- I have a flying speed of 40 ft and can hover\",\r\n\t\t\t\t\"- I have resistance to all damage\",\r\n\t\t\t\t\"- If I use my Phoenix Spark, it deals an extra 20 fire damage to each creature\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [[\"All\", \"All (Mantle of Flame)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad\r\nAddSubClass(\"sorcerer\", \"sea sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*sea)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Sea Sorcery\",\r\n\tsource : [[\"UA:SO\", 2]],\r\n\tfullname : \"Sea Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Soul of the Sea\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can breathe underwater and I have a swim speed equal to my walking speed\"),\r\n\t\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Curse of the Sea\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can curse a target that I hit with a cantrip or that fails its save against my cantrip\",\r\n\t\t\t\t\"This lasts until the end of my next turn or until I curse another target like this\",\r\n\t\t\t\t\"Once per turn when I cast a spell, I can trigger an active curse, if a condition is met\",\r\n\t\t\t\t\" - If spell dealt cold damage to it, its has -15 ft speed until the end of my next turn\",\r\n\t\t\t\t\" - If the spell dealt lightning damage to it, that damage is increased with my Cha mod\",\r\n\t\t\t\t\" - If the spell moved the target, it is moved an additional 15 ft\",\r\n\t\t\t\t\"Only one of these effects can be applied, even if the spell meets multiple conditions\",\r\n\t\t\t\t\"If the spell triggering the curse is a cantrip, the target stays cursed for another round\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Watery Defense\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to fire damage\",\r\n\t\t\t\t\"I can protect myself when an attack deals bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\"As a reaction when that happens, I reduce the damage by my sorcerer level + Charisma\",\r\n\t\t\t\t\"I can then also move up to 30 ft without provoking opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn n + \" + Charisma score\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdmgres : [\"Fire\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shifting Form\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain the ability to enter a liquid state while moving, squeezing through small spaces\",\r\n\t\t\t\t\"When I move on my turn, I take half damage from opportunity attacks\",\r\n\t\t\t\t\"I can move through any enemy's space, but can't willingly end my move in that space\",\r\n\t\t\t\t\"On my turn, I can move through any opening of at least 3 inches in diameter\",\r\n\t\t\t\t\"I can't end my move in a space smaller than one size category smaller than I am\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Water Soul\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to eat, drink, or sleep; Critical hits against me become normal hits\",\r\n\t\t\t\t\"I gain resistance to bludgeoning, piercing, and slashing damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Bludgeoning\", \"Piercing\", \"Slashing\"]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad\r\nAddSubClass(\"sorcerer\", \"stone sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*stone)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Stone Sorcery\",\r\n\tsource : [[\"UA:SO\", 3]],\r\n\tfullname : \"Stone Sorcerer\",\r\n\tspellcastingExtra : [\"compelled duel\", \"searing smite\", \"thunderous smite\", \"wrathful smite\", \"branding smite\", \"magic weapon\", \"blinding smite\", \"elemental weapon\", \"staggering smite\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with shields, simple weapons and martial weapons\"),\r\n\t\t\tarmorProfs : [false, false, false, true],\r\n\t\t\tweaponProfs : [true, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Metal Magic\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My affinity for metal allows me to select from a broader range of spells\")\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Stone's Durability\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My hit point maximum increases by an amount equal to my sorcerer level\",\r\n\t\t\t\t\"As an action, I can gain an AC of 13 + Constitution modifier + shield\",\r\n\t\t\t\t\"This AC lasts until I don armor, I'm incapacitated, or use a bonus action to end it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', \" (end)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Stone's Durability (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*stone)(?=.*durability).*$/i,\r\n\t\t\t\tname : \"Stone's Durability\",\r\n\t\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\t\tac : \"13+Con\",\r\n\t\t\t\tdex : -10,\r\n\t\t\t\taffectsWildShape : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Stone Aegis\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can grant an aegis to an ally I can see within 60 ft of me\",\r\n\t\t\t\t\"The aegis reduces any bludgeoning, piercing, or slashing damage taken by the target\",\r\n\t\t\t\t\"This aegis lasts for 1 minute, until I use it again, or until I'm incapacitated\",\r\n\t\t\t\t\"As a reaction when the protected ally is attacked with a melee attack, I can teleport\",\r\n\t\t\t\t\"I can do this only if the attacker is within 60 ft of me and I can see it\",\r\n\t\t\t\t\"I teleport to an empty space next to it and make one melee weapon attack against it\",\r\n\t\t\t\t\"If this attack hits, the attack deals extra force damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn (Math.floor(n / 4) + 2) + \" damage reduction; +\" + (n < 11 ? 1 : n < 17 ? 2 : 3) + \"d10 force damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"], ['reaction', 'Aegis Teleport']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Stone's Edge\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per casting of a spell that deals damage, I can choose one creature damaged by it\",\r\n\t\t\t\t\"That creature takes extra force damage equal to half my sorcerer level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : Math.floor(n / 2) + \" force damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Earth Master's Aegis\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"My Stone's Aegis can now affect up to three creatures\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170213_Warlock-and-Wizard.js\r\n// This file adds the content from the Unearthed Arcana: Warlock and Wizard article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:WnW\"] = {\r\n\tname : \"Unearthed Arcana: Warlock and Wizard\",\r\n\tabbreviation : \"UA:WnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/20170213_Wizrd_Wrlck_UAv2_i48nf.pdf\",\r\n\tdate : \"2017/02/13\"\r\n};\r\n\r\n// Adds 3 subclasses, 2 for the Warlock, and 1 for the Wizard\r\n//this code includes contributions by Greg N.\r\nAddSubClass(\"warlock\", \"the hexblade-ua\", {\r\n\tregExpSearch : /^(?=.*hexblade)(?=.*warlock).*$/i,\r\n\tsubname : \"the Hexblade\",\r\n\tsource : [[\"UA:WnW\", 1]],\r\n\tspellcastingExtra : [\"shield\", \"wrathful smite\", \"branding smite\", \"magic weapon\", \"blink\", \"elemental weapon\", \"phantasmal killer\", \"staggering smite\", \"cone of cold\", \"destructive wave\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Hex Warrior\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor, shields, and martial weapons\",\r\n\t\t\t\t\"With one-handed melee weapons I can use Charisma instead of Strength or Dexterity\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && !(/((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b/i).test(v.WeaponText) && What('Cha Mod') > What(AbilityScores.abbreviations[fields.Mod - 1] + ' Mod')) {\r\n\t\t\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"For melee weapons that lack the two-handed property, I can use my Charisma instead of Strength or Dexterity.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hexblade's Curse\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can curse a creature I can see within 30 ft of me for 1 minute\",\r\n\t\t\t\t\" - I add my proficiency bonus to damage rolls against the cursed target\",\r\n\t\t\t\t\" - My attack rolls against the curse target score a critical hit on a roll of 19 and 20\",\r\n\t\t\t\t\" - If the target dies while cursed, I regain HP equal to my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : levels.map( function(n) { return n < 14 ? 1 : \"\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && /hexblade/i.test(v.WeaponTextName) && !v.CritChance) {\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Hexblade' in the name of a weapon, the automation will treat the attack as being against a target of the Hexblade's Curse: adding my proficiency bonus to the damage and adding the increased chance of a critical hit to the description.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/hexblade/i).test(v.WeaponTextName)) output.extraDmg += output.prof;\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Shadow Hound\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My shadow becomes a hound of pure darkness; Truesight reveals its nature\",\r\n\t\t\t\t\"As a bonus action, I can have it slip into the shadow of another I can see within 60 ft\",\r\n\t\t\t\t\"I know the distance/direction to the target; I ignore 1/2, 3/4 cover of the target\",\r\n\t\t\t\t\"My shadow returns to me if I use a bonus action to do so, I become incapacitated, \",\r\n\t\t\t\t\"a spell is used to stop it, or if one of us moves to another plane of existence\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Armor of Hexes\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Targets affected by my hexblade's curse have a 50% of missing me with any attack roll\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Hexes\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to rest to be able to use my Hexblade's Curse again\",\r\n\t\t\t\t\"However, when I curse a new target, the curse immediately ends on the previous target\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by Ben Y. and Wizzard\r\nAddSubClass(\"warlock\", \"the raven queen-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*\\braven)(?=.*queen\\b).*$/i,\r\n\tsubname : \"the Raven Queen\",\r\n\tsource : [[\"UA:WnW\", 2]],\r\n\tspellcastingExtra : [\"false life\", \"sanctuary\", \"silence\", \"spiritual weapon\", \"feign death\", \"speak with dead\", \"ice storm\", \"locate creature\", \"commune\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Sentinel Raven\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain the services of a spirit in the form of a raven (using the stats of a raven)\",\r\n\t\t\t\t\"It always obeys my commands, rolls its own initiative, and can be slain\",\r\n\t\t\t\t\"While it's within 100 ft, I can telepathically speak with it and see/hear what it does\",\r\n\t\t\t\t\"While it's on my shoulder, I gain Darkvision 30 ft and add my Cha mod to Perception\",\r\n\t\t\t\t\"While it's on my shoulder, it can't be targeted, take damage, or take actions\",\r\n\t\t\t\t\"It vanishes if it is more than 5 miles away from me, it dies, or if I die\",\r\n\t\t\t\t\"If it dies, I gain advantage on all attack rolls against its killer for 24 hours\",\r\n\t\t\t\t\"After a short rest, I can recall it to me regardless of its location or if it died\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", 30]],\r\n\t\t\taddMod : { type : \"skill\", field : \"Perc\", mod : \"max(Cha|0)\", text : \"While my sentinel raven is perched on my shoulder, I can add my Charisma modifier to Perception.\" },\r\n\t\t\tcreaturesAdd : [[\"Sentinel Raven\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Sentinel Raven\",\r\n\t\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\t\tsize : 5,\r\n\t\t\t\ttype : \"Beast\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : 12,\r\n\t\t\t\thp : 1,\r\n\t\t\t\thd : [1, 4],\r\n\t\t\t\tspeed : \"10 ft, fly 50 ft\",\r\n\t\t\t\tscores : [2, 14, 8, 2, 12, 6],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"perception\" : 3\r\n\t\t\t\t},\r\n\t\t\t\tpassivePerception : 13,\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Beak\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [1, \"\", \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Mimicry\",\r\n\t\t\t\t\tdescription : \"The raven can mimic simple sounds it has heard, such as a person whispering, a baby crying, or an animal chittering. A creature that hears the sounds can tell they are imitations with a successful DC 10 Wisdom (Insight) check.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sentinel\",\r\n\t\t\t\t\tdescription : \"The raven doesn't require sleep. While it is within 100 feet of me, it can awaken me from sleep as a bonus action.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shoulder Perch\",\r\n\t\t\t\t\tdescription : \"While perched on my shoulder, the raven can't be targeted by any attack or other harmful effect; only I can cast spells on it; it can't take damage; and it is incapacitated. It then also grants me darkvision 30 ft and a bonus to my Wisdom (Perception) equal to my Charisma modifier.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Sent by the Raven Queen\",\r\n\t\t\t\t\tdescription : \"The raven acts independently of me, but it always obeys my commands. In combat, it rolls its own initiative and acts on its own turn, but I control how it acts. If it is slain by a creature, I gain advantage on all attack rolls against the killer for the next 24 hours. While the raven is within 100 ft of me, I can telepathically command it and see through its eyes and hear what it hears.\\n   The raven vanishes when it dies, if I die, or if we are separated by more than 5 miles. At the end of a short or long rest, I can call the raven back to reappear within 5 ft of me, regardless where it is or if it died.\"\r\n\t\t\t\t}]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Raven\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, when my raven is perched on my shoulder, I can merge our bodies\",\r\n\t\t\t\t\"I become tiny and replace my speed with the raven's (10 ft, fly 50 ft)\",\r\n\t\t\t\t\"I can then use my action only to Dash, Disengage, Dodge, Help, Hide, or Search\",\r\n\t\t\t\t\"While merged, I still get all the benefits of my raven being perched on my shoulder\",\r\n\t\t\t\t\"I can end this as an action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start)\"], ['action', ' (end)']]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Raven's Shield\",\r\n\t\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can't be frightened, have advantage on death saves, and resistance to necrotic damage\"),\r\n\t\t\tsavetxt : { immune : [\"frightened\"], adv_vs : [\"death\"] },\r\n\t\t\tdmgres : [\"Necrotic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Queen's Right Hand\",\r\n\t\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can cast Finger of Death once per long rest\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Queen's Right Hand\",\r\n\t\t\t\tspells : [\"finger of death\"],\r\n\t\t\t\tselection : [\"finger of death\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/magicmanfk\r\nAddSubClass(\"wizard\", \"lore mastery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*\\blore)(?=.*mastery?\\b).*$/i,\r\n\tsubname : \"Lore Mastery\",\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tfullname : \"Lore Master\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Lore Master\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use my Intelligence modifier for initiative instead of my Dexterity modifier\",\r\n\t\t\t\t\"I get expertise with each Arcana, History, Nature, and Religion, if I'm proficient with it\"\r\n\t\t\t]),\r\n\t\t\tskills : [[\"Arcana\", \"only\"], [\"History\", \"only\"], [\"Nature\", \"only\"], [\"Religion\", \"only\"]],\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int-Dex|0)\", text : \"I use my Intelligence modifier for initiative rolls instead of Dexterity.\" }\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spell Secrets: Elements\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can change the damage type of spells I cast using spell slots (so not cantrips)\",\r\n\t\t\t\t\"I can swap out acid, cold, fire, force, lightning, necrotic, radiant, or thunder damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2.2\" : {\r\n\t\t\tname : \"Spell Secrets: Saves\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can change the saving throw ability score to another for a spell I cast using a spell slot\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Alchemical Casting\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell with a spell slot, I can expend one additional spell slot to augment it\",\r\n\t\t\t\t\" - 1st-level slot: one damage roll of the spell adds +2d10 force damage\",\r\n\t\t\t\t\" - 2nd-level slot: if the range of the spell is at least 30 ft, it becomes 1 mile\",\r\n\t\t\t\t\" - 3rd-level slot: the spell's save DC increases by 2\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Prodigious Memory\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"As a bonus action, I can replace one of my prepared spells with another from my book\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Magic\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can call to mind one spell of my choice from any class' spell list\",\r\n\t\t\t\t\"This spell must be of a level I have spell slots for and that I don't already have prepared\",\r\n\t\t\t\t\"I can then cast it using the normal spellcasting rules, including expending a spell slot\",\r\n\t\t\t\t\"It counts a wizard spell; I can only cast the spell during the same turn I call it to mind\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add many new Warlock invocations\r\n// Most probably still valid 2021-09-21, have to check\r\nAddWarlockInvocation(\"Aspect of the Moon (prereq: the Archfey patron)\", {\r\n\tname : \"Aspect of the Moon\",\r\n\tdescription: desc(\"I don't need to sleep nor can be magically forced to; I can rest while doing light activity\"),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tsavetxt : { text : [\"Nothing can force me to sleep\"] }\r\n});\r\nAddWarlockInvocation(\"Burning Hex (prereq: the Hexblade patron)\", {\r\n\tname : \"Burning Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can cause a target affected by my hexblade's curse to take damage\",\r\n\t\t\"It immediately takes fire damage equal to my Charisma modifier (min 1)\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Caiphon's Beacon (prereq: the Great Old One patron)\", {\r\n\tname : \"Caiphon's Beacon\",\r\n\tdescription : desc([\r\n\t\t\"I gain proficiencies with the Deception and Stealth skills\",\r\n\t\t\"I have advantage on attack rolls against charmed creatures\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass); },\r\n\tskills : [\"Deception\", \"Stealth\"]\r\n});\r\nAddWarlockInvocation(\"Chilling Hex (prereq: the Hexblade patron)\", {\r\n\tname : \"Chilling Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can swirl frost around a target affected by my hexblade's curse\",\r\n\t\t\"All creatures within 5 ft of the target take cold damage equal to my Cha modifier (min 1)\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Chronicle of the Raven Queen (prereq: the Raven Queen patron, Pact of the Tome)\", {\r\n\tname : \"Chronicle of the Raven Queen\",\r\n\tdescription : desc([\r\n\t\t\"Within 1 minute of a creature's death, I can use my book of shadows to ask it 1 question\",\r\n\t\t\"To do this, I need to put the corpse's hand on the book and speak the question aloud\",\r\n\t\t\"Its spirit writes the answer, to the best of its knowledge, in blood in a language I choose\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tprereqeval : function(v) { return (/raven queen/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome'; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Claw of Acamar (prereq: the Great Old One patron, Pact of the Blade)\", {\r\n\tname : \"Claw of Acamar\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a black, lead flail with grasping tentacles for a head\",\r\n\t\t\"It has reach and can reduce a creature's speed to 0 on a hit until the end of my next turn\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 necrotic damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*\\bclaw\\b)(?=.*\\bacamar\\b).*$/i,\r\n\t\tname : \"Claw of Acamar\",\r\n\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, reach; On hit: Reduces speed to 0, Expend spell slot for +2d8 necrotic damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Cloak of Baalzebul (prereq: the Fiend patron)\", {\r\n\tname : \"Cloak of Baalzebul\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can conjure or dismiss a swarm of buzzing flies around me\",\r\n\t\t\"This gives me adv. on Cha (Intimidation) checks, but disadv. on all other Charisma checks\",\r\n\t\t\"Creatures starting their turn within 5 ft of me take poison damage equal to my Cha mod\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \" (start/end)\"]]\r\n});\r\nAddWarlockInvocation(\"Curse Bringer (prereq: the Hexblade patron, Pact of the Blade)\", {\r\n\tname : \"Curse Bringer\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a silver greatsword with black runes etched in the blade\",\r\n\t\t\"If I bring a target of my hexblade's curse to 0 HP with it, I can move the curse to another\",\r\n\t\t\"It can reduce a creature's speed to 0 on a hit until the end of my next turn\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 slashing damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /^(?=.*\\bcurse)(?=.*bringer\\b).*$/i,\r\n\t\tname : \"Curse Bringer\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, heavy, two-handed; On hit: Reduces speed to 0, Expend spell slot for +2d8 slashing damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Kiss of Mephistopheles (prereq: level 5 warlock, the Fiend patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Kiss of Mephistopheles\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action when my Eldritch Blast hits, I can cast Fireball using a warlock spell slot\",\r\n\t\t\"The origin of the Fireball is the creature that was hit with my Eldritch Blast attack\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && classes.known.warlock.level >= 5 && (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Frost Lance (prereq: the Archfey patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Frost Lance\",\r\n\tdescription : desc([\r\n\t\t\"When my Eldritch Blast hits a creature once or more, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gaze of Khirad (prereq: level 7 warlock, the Great Old One patron)\", {\r\n\tname : \"Gaze of Khirad\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can see through solid object out to 30 ft until the end of my current turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 7; },\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Grasp of Hadar (prereq: the Great Old One patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Grasp of Hadar\",\r\n\tdescription : desc(\"Once per turn when my Eldritch Blast hits a creature, I can move it 10 ft closer to me\"),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/great old one/).test(classes.known.warlock.subclass); },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target moved 10 ft to me';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can move it in a straight line 10 ft closer to me.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Green Lord's Gift (prereq: the Archfey patron)\", {\r\n\tname : \"Green Lord's Gift\",\r\n\tdescription : desc([\r\n\t\t\"When I regain HP, all dice for determining the HP I heal are treated as rolling maximum\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and isn't a magic weapon\r\n\t\t\t\tif (v.pactWeapon && !output.magic && !v.theWea.isMagicWeapon) {\r\n\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +1 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Mace of Dispater (prereq: the Fiend patron, Pact of the Blade)\", {\r\n\tname : \"Mace of Dispater\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create an iron mace forged in Dis, the 2nd layer of the Nine Hells\",\r\n\t\t\"I can knock a target prone with it on a hit, if the target's size is Huge or smaller\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 force damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*\\bmace\\b)(?=.*\\bdispater\\b).*$/i,\r\n\t\tname : \"Mace of Dispater\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon; On hit: knock Huge or smaller prone, Expend spell slot for +2d8 force damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Moon Bow (prereq: the Archfey patron, Pact of the Blade)\", {\r\n\tname : \"Moon Bow\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a longbow that creates arrows of white wood when drawn\",\r\n\t\t\"Its arrows last for 1 minute; I have advantage on attack rolls against lycanthropes with it\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 radiant damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longbow\",\r\n\t\tregExpSearch : /^(?=.*\\bmoon)(?=.*bow\\b).*$/i,\r\n\t\tname : \"Moon Bow\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, heavy, two-handed; Adv. vs. lycanthropes; On hit, expend spell slot for +2d8 radiant damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Path of the Seeker (prereq: the Seeker patron)\", {\r\n\tname : \"Path of the Seeker\",\r\n\tdescription : desc([\r\n\t\t\"I ignore difficult terrain; I have advantage on saving throws against being paralyzed\",\r\n\t\t\"I also have advantage on checks to escape a grapple, manacles, or rope bindings\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tprereqeval : function(v) { return (/\\bseeker\\b/).test(classes.known.warlock.subclass); },\r\n\tsavetxt : { adv_vs : [\"paralyzed\"] }\r\n});\r\nAddWarlockInvocation(\"Raven Queen's Blessing (prereq: the Raven Queen patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Raven Queen's Blessing\",\r\n\tdescription : desc([\r\n\t\t\"When I score a critical hit with Eldritch Blast, I can choose an ally I can see within 30 ft\",\r\n\t\t\"That ally can immediately expend one HD to regain HP, just like after a short rest\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/raven queen/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 5 warlock, the Hexblade patron)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport next to a target affected by my hexblade's curse\",\r\n\t\t\"To do so, I must see the target and the space I'm teleporting to, and be within 30 ft of it\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Sea Twins' Gift (prereq: the Archfey patron)\", {\r\n\tname : \"Sea Twins' Gift\",\r\n\tdescription : desc([\r\n\t\t\"I can breathe underwater and I have a swim speed equal to my walking speed\",\r\n\t\t\"Once per long rest, I can cast Water Breathing using a warlock spell slot (PHB 287)\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sea Twins' Gift\",\r\n\t\tspells : [\"water breathing\"],\r\n\t\tselection : [\"water breathing\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n});\r\nAddWarlockInvocation(\"Seeker's Speech (prereq: the Seeker patron)\", {\r\n\tname : \"Seeker's Speech\",\r\n\tdescription : desc([\r\n\t\t\"When I finish a long rest, I pick two languages that I know until I finish my next long rest\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\bseeker\\b/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Shroud of Ulban (prereq: level 18 warlock, the Great Old One patron)\", {\r\n\tname : \"Shroud of Ulban\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can turn myself invisible for 1 minute\",\r\n\t\t\"If I attack, deal damage, or force a creature to make a save, I become visible again\",\r\n\t\t\"However, I only become visible at the end of the current turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[warlock level 18+]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 18; },\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Superior Pact Weapon (prereq: level 9 warlock, Pact of the Blade)\", {\r\n\tname : \"Superior Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +2 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus in its name, is not a magic weapon, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tvar iPactWeaBonus = 2;\r\n\t\t\t\tif (v.pactWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && ((!v.pactMag && !output.magic) || (v.pactMag && v.pactMag < iPactWeaBonus))) {\r\n\t\t\t\t\tif (v.pactMag) output.magic -= v.pactMag;\r\n\t\t\t\t\tv.pactMag = iPactWeaBonus;\r\n\t\t\t\t\toutput.magic += v.pactMag;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +2 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Tomb of Levistus (prereq: the Fiend patron)\", {\r\n\tname : \"Tomb of Levistus\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when I take damage, I can entomb myself in ice until the end of my turn\",\r\n\t\t\"I get 10 temp. HP per warlock level, which can be used to absorb the triggering damage\",\r\n\t\t\"Until the ice is gone, I have vulnerability to fire damage, 0 speed, and am incapacitated\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Ultimate Pact Weapon (prereq: level 15 warlock, Pact of the Blade)\", {\r\n\tname : \"Ultimate Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +3 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 15 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus in its name, is not a magic weapon, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tvar iPactWeaBonus = 3;\r\n\t\t\t\tif (v.pactWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && ((!v.pactMag && !output.magic) || (v.pactMag && v.pactMag < iPactWeaBonus))) {\r\n\t\t\t\t\tif (v.pactMag) output.magic -= v.pactMag;\r\n\t\t\t\t\tv.pactMag = iPactWeaBonus;\r\n\t\t\t\t\toutput.magic += v.pactMag;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +3 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\n\n// ua_20170313_The-Mystic-Class.js\r\n// This file adds the content from the Unearthed Arcana: The Mystic Class article to MPMB's Character Record Sheet\r\n// WARNING: there are no published multiclassing rules for Mystic; the ones provided here are extrapolated from other classes\r\n\r\n// Define the source\r\nSourceList[\"UA:TMC\"] = {\r\n\tname : \"Unearthed Arcana: The Mystic Class\",\r\n\tabbreviation : \"UA:TMC\",\t\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UAMystic3.pdf\",\r\n\tdate : \"2017/03/13\"\r\n};\r\n\r\n// Add spell schools\r\nspellSchoolList[\"Avatar\"] = \"avatar\";\r\nspellSchoolList[\"Awake\"]  = \"awakened\";\r\nspellSchoolList[\"Immor\"]  = \"immortal\";\r\nspellSchoolList[\"Nomad\"]  = \"nomad\";\r\nspellSchoolList[\"Wu Jen\"] = \"wu jen\";\r\n\r\n// Adds a new class, the Mystic, with 6 subclasses\r\nClassList.mystic = {\r\n\tregExpSearch : /psion\\b|mystic/i,\r\n\tname : \"Mystic\",\r\n\tsource : [[\"UA:TMC\", 1]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Wis\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Insight, Medicine, Nature, Perception, and Religion\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false]\r\n\t},\r\n\tequipment : \"Mystic starting equipment:\\n \\u2022 A spear -or- a mace;\\n \\u2022 Leather mail -or- studded leather armor;\\n \\u2022 A light crossbow and 20 bolts -or- any simple weapon;\\n \\u2022 A scholar's pack -or- an explorer's pack.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Mystic Order\", []],\r\n\tsubclassGainedLevel : 1,\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tspellcastingFactor : \"psionic0\",\r\n\tspellcastingKnown : {\r\n\t\tcantrips : levels.map(function (n) { return n < 3 ? 1 : n < 10 ? 2 : n < 17 ? 3 : 4; }),\r\n\t\tspells : levels.map(function (n) { return n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : n < 12 ? 5 : n < 15 ? 6 : n < 18 ? 7 : 8; })\r\n\t},\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"mystic\",\r\n\t\tpsionic : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"psi points\" : {\r\n\t\t\tname : \"Psi Points\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I use psi points to fuel my psionic disciplines, up to my psi limit per instance\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 4 : n < 3 ? 6 : n < 4 ? 14 : n < 5 ? 17 :\r\n\t\t\t\tn < 6 ? 27 : n < 7 ? 32 : n < 8 ? 38 : n < 9 ? 44 : n < 10 ? 57 :\r\n\t\t\t\tn < 18 ? 64 : 71;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 3 ? 2 : n < 5 ? 3 : n < 7 ? 5 : n < 9 ? 6 : 7) + \" psi limit\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"psionics\" : {\r\n\t\t\tname : \"Psionics\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use psionic talents/disciplines that I know, using Intelligence as my psionic ability\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tvar talent = n < 3 ? \"1 talent\" : (n < 10 ? 2 : n < 17 ? 3 : 4) + \" talents\";\r\n\t\t\t\tvar discpl = n < 3 ? \"1 discipline\" : (n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : n < 12 ? 5 : n < 15 ? 6 : n < 18 ? 7 : 8) + \" disciplines\";\r\n\t\t\t\treturn talent + \" \\u0026 \" + discpl + \" known\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"psychic focus\" : {\r\n\t\t\tname : \"Psychic Focus\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can choose one of my psionic disciplines and gain its focus benefit\",\r\n\t\t\t\t\"I can only focus on one at a time; It stays until I focus on another, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Mystic Order\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose a Mystic Order that shapes the nature of your rage and put it in the \"Class\" field')\r\n\t\t},\r\n\t\t\"mystical recovery\" : {\r\n\t\t\tname : \"Mystical Recovery\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action after using psi points on a discipline, I can regain HP per point spent\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"telepathy\" : {\r\n\t\t\tname : \"Telepathy\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can telepathically speak to creatures I can see within 120 ft, if they know a language\" // 'to' not 'with', so one-way\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"strength of mind\" : {\r\n\t\t\tname : \"Strength of Mind\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After a short rest, I can change my Wisdom save proficiency to another ability score\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"potent psionics\" : {\r\n\t\t\tname : \"Potent Psionics\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\",\r\n\t\t\t\t\"In addition, I add my Intelligence modifier to my psionic talent damage rolls\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.mystic && classes.known.mystic.level > 7 && !v.isSpell) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.mystic.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\\n \\u2022 My psionic talents get my Intelligence modifier added to their damage roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (classes.known.mystic && classes.known.mystic.level > 7 && v.thisWeapon[3] && v.thisWeapon[4].indexOf('mystic') !== -1 && SpellsList[v.thisWeapon[3]].level === 0) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Int Mod');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic && spellObj.level == 0) {\r\n\t\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+|Acid, Cold, Fire, Lightning, or Thunder\", \"Int\", true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My psionic talents get my Intelligence modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"consumptive power\" : {\r\n\t\t\tname : \"Consumptive Power\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per long rest, I can use my HP to fuel a psionic discipline instead of psi points\",\r\n\t\t\t\t\"I lose the HP; My HP max is reduced with the same until I finish my next long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"psionic mastery\" : {\r\n\t\t\tname : \"Psionic Mastery\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain a pool of special psi points that last until I finish a long rest\",\r\n\t\t\t\t\"I can use these, without psi limit, for disciplines that require an action or bonus action\",\r\n\t\t\t\t\"I can use either these or psi points from my normal pool for a discipline, but not both\",\r\n\t\t\t\t\"I can concentrate on all disciplines that use these special points at the same time\",\r\n\t\t\t\t\"I lose concentration if I cast a discipline requiring concentration from my normal pool\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\tif (n < 11) return \"\";\r\n\t\t\t\treturn n < 13 ? 1 : n < 15 ? 2 : n < 17 ? 3 : 4;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 11) return \"\";\r\n\t\t\t\treturn \"pool of \" + (n < 15 ? 9 : 11) + \" psi points\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"psionic body\" : {\r\n\t\t\tname : \"Psionic Body\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer age and I have resistance to bludgeoning, piercing, and slashing damage\",\r\n\t\t\t\t\"I'm immune to disease, poison damage, and the poisoned condition\",\r\n\t\t\t\t\"If I die, I have a 55% chance of discorporating instead and returning 1d3 days later\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"poison\", \"disease\"] },\r\n\t\t\tdmgres : [\"Bludgeoning\", \"Piercing\", \"Slashing\"]\r\n\t\t}\r\n\t}\r\n};\r\n// Order of the Avatar subclass for the Mystic\r\nAddSubClass(\"mystic\", \"avatar-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*avatar).*$/i,\r\n\tsubname : \"Order of the Avatar\",\r\n\tsource : [[\"UA:TMC\", 5]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, chosen from the avatar disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Avatar\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Armor Training\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and shields.\"),\r\n\t\t\tarmorProfs : [false, true, false, true]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Avatar of Battle\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Allies within 30 ft of me gain +2 on initiative rolls while I'm not incapacitated\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Avatar of Healing\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Allies within 30 ft of me that get healed through a psionic discipline, get extra healing\",\r\n\t\t\t\t\"They add my Intelligence modifier to the HP regained, as long as I'm not incapacitated\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!What(\"Int Mod\") || What(\"Int Mod\") <= 0) return;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"pr1-mend wounds\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"healed for \", \"healed for \" + What(\"Int Mod\") + \"+\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"pr2-restore health\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 HP\", (1 + What(\"Int Mod\")) + \" HP\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my Intelligence modifier to the hit points I restore using my psionic disciplines.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Avatar of Speed\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Allies within 30 ft of me can use Dash as a bonus action while I'm not incapacitated\")\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Awakened subclass for the Mystic\r\nAddSubClass(\"mystic\", \"awakened-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*awakened).*$/i,\r\n\tsubname : \"Order of the Awakened\",\r\n\tsource : [[\"UA:TMC\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : \" [+2 awakened disciplines]\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Awake\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Awakened Talent\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with two skills of my choice, taken from the following list:\",\r\n\t\t\t\t\"Animal Handling, Deception, Insight, Intimidation, Investigation, Perception, Persuasion\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from: Animal Handling, Deception, Insight, Intimidation, Investigation, Perception, and Persuasion\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Investigation\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By concentrating on an object I'm holding for 10 minutes, I learn the object's history\",\r\n\t\t\t\t\"I see/hear its surroundings the previous hour and know who hold it in the last 24 hours\",\r\n\t\t\t\t\"Also, for the next 24 hours, I can use an action to locate it and see its surroundings\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Surge\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can end my psychic focus to impose disadv. on a save vs. a discipline or talent I use\",\r\n\t\t\t\t\"Once I do this, I can't regain psychic focus in any discipline until I can use this again\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spectral Form\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become ghostly and move through objects and creatures for 10 min\",\r\n\t\t\t\t\"I also have resistance to all damage and move at half speed; I can end it as an action\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Immortal subclass for the Mystic\r\nAddSubClass(\"mystic\", \"immortal-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*immortal).*$/i,\r\n\tsubname : \"Order of the Immortal\",\r\n\tsource : [[\"UA:TMC\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, taken from the immortal disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Immor\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Immortal Durability\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My hit point maximum increases by an amount equal to my mystic level\",\r\n\t\t\t\t\"If not wearing armor or wielding a shield, my AC is 10 + my Dex mod + my Con mod\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.mystic) {\r\n\t\t\t\t\t\treturn [classes.known.mystic.level, \"Immortal Durability (mystic level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*immortal)(?=.*durability).*$/i,\r\n\t\t\t\tname : \"Immortal Durability\",\r\n\t\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\t\tac : \"10+Con\",\r\n\t\t\t\taffectsWildShape : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Resilience\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of each turn, I gain my Intelligence modifier in temporary HP (min 0)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Surge of Health\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can halve that damage, but end my psychic focus\",\r\n\t\t\t\t\"Once I do this, I can't regain psychic focus in any discipline until I can use this again\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Immortal Will\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I end my turn at 0 HP, I can use 5 psi points to regain mystic level + Con mod in HP\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 14) return \"\";\r\n\t\t\t\treturn \"HP: \" + n + \" + Constitution modifier\";\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Nomad subclass for the Mystic\r\nAddSubClass(\"mystic\", \"nomad-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*nomad).*$/i,\r\n\tsubname : \"Order of the Nomad\",\r\n\tsource : [[\"UA:TMC\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, taken from the nomad disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Nomad\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Breadth of Knowledge\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After I finish a long rest, I gain two proficiencies in chosen language, tool, or skill\",\r\n\t\t\t\t\"These proficiencies last until I finish my next long rest\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Memory of One Thousand Steps\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when hit by an attack, I can teleport away, causing the attack to miss\",\r\n\t\t\t\t\"I can teleport to any empty space that I had occupied since the start of my last turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Superior Teleportation\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a psionic discipline to teleport, I can increase its distance by up to 10 ft\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"ns1-step of a dozen paces\" :\r\n\t\t\t\t\t\t\t\tvar addDist = What(\"Unit System\") === \"metric\" ? 3 : 10;\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+ (ft|m))/i, addDist + \"+$1\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"ns3-defensive step\" :\r\n\t\t\t\t\t\t\tcase \"ns4-there and back again\" :\r\n\t\t\t\t\t\t\t\tvar addDist = What(\"Unit System\") === \"metric\" ? 3 : 10;\r\n\t\t\t\t\t\t\t\tvar theDist = Number(spellObj.description.replace(/.*(\\d+) (ft|m).*/i, \"$1\"));\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+) (ft|m)/i, (theDist + addDist) + \" $2\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My psionic disciplines that teleport have 10 ft added to the distance of their teleportation.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Effortless Journey\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once during my turn, I can teleport instead of moving, up to my movement speed \",\r\n\t\t\t\t\"I subtracting the distance teleported from my remaining speed\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Soul Knife subclass for the Mystic\r\nAddSubClass(\"mystic\", \"soul knife-ua\", {\r\n\tregExpSearch : /^(?=.*soul\\b)(?=.*\\bknife).*$/i,\r\n\tsubname : \"Order of the Soul Knife\",\r\n\tsource : [[\"UA:TMC\", 7]],\r\n\tfullname : \"Soul Knife\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Martial Training\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and martial weapons\"),\r\n\t\t\tarmor : [false, true, false, false],\r\n\t\t\tweapons : [false, true]\t\t\t\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Soul Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can create or dismiss my soul knives on both my fists\",\r\n\t\t\t\t\"As a bonus action, I can parry with these to get +2 AC until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create/dismiss)\"], ['bonus action', ' Parry']],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bsoul)(?=.*(knives|knife|weapon)\\b).*$/i,\r\n\t\t\t\tname : \"Soul Knife\",\r\n\t\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Martial\",\r\n\t\t\t\tdamage : [1, 8, \"psychic\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Finesse, light\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hone the Blade\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can spend psi points to give my soul knives a bonus to attack and damage for 10 min\",\r\n\t\t\t\t\"2 psi points: +1; 5 psi points: +2; 7 psi points: +4\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Consumptive Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I slay an enemy with a soul knife attack, I immediately regain 2 psi points\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Phantom Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make one attack with my soul knife, treating the target's AC as 10\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Wu Jen subclass for the Mystic\r\nAddSubClass(\"mystic\", \"wu jen-ua\", {\r\n\tregExpSearch : /^(?=.*\\bwu\\b)(?=.*\\bjen\\b).*$/i,\r\n\tsubname : \"Order of the Wu Jen\",\r\n\tsource : [[\"UA:TMC\", 8]],\r\n\tfullname : \"Wu Jen\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : \" [+2 wu jen disciplines]\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Wu Jen\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hermit's Study\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with two skills of my choice, taken from the following list:\",\r\n\t\t\t\t\"Animal Handling|Arcana|History|Insight|Medicine|Nature|Perception|Religion|Survival\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from: Animal Handling, Arcana, History, Insight, Medicine, Nature, Perception, Religion, and Survival\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Elemental Attunement\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If a target's resistance reduces damage of one of my psionic disciplines, I can bypass it\",\r\n\t\t\t\t\"With 1 extra psi point for the discipline (psi limit permitting), the resistance is ignored\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Arcane Dabbler\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I know 3 wizard spells (1-3 level); When I gain a mystic level, I can swap one of these\",\r\n\t\t\t\t\"As a bonus action, I can use psi points to make spell slots; Last until my next long rest\",\r\n\t\t\t\t\"2 PP: 1st-level; 3 PP: 2nd-level; 5 PP: 3rd-level; 6 PP: 4th-level; 7 PP: 5th-level\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Dabbler\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [1, 3],\r\n\t\t\t\ttimes : 3\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Elemental Mastery\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage to which I have resistance, I can ignore that damage\",\r\n\t\t\t\t\"I gain immunity to that damage type until the start of my next turn\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// The Psionic Talents for the Mystic (with contributions by rabidknave)\r\nPsionicsList[\"beacon-ua-psy\"] = {\r\n\tname : \"Beacon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h (D)\",\r\n\tdescription : \"My body sheds bright light 20-ft rad and dim light 20-ft, in chosen color; dismiss as a bonus action\",\r\n\tdescriptionFull : \"As a bonus action, you cause bright light to radiate from your body in a 20-foot radius and dim light for an additional 20 feet. The light can be colored as you like. The light lasts for 1 hour, and you can extinguish it earlier as a bonus action.\"\r\n};\r\nPsionicsList[\"blade meld-ua-psy\"] = {\r\n\tname : \"Blade Meld\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"One-handed melee weapon I'm holding merges with hand; it can't be removed for the duration\",\r\n\tdescriptionFull : \"As a bonus action, a one-handed melee weapon you hold becomes one with your hand. For the next minute, you can't let go of the weapon nor can it be forced from your grasp.\"\r\n};\r\nPsionicsList[\"blind spot-ua-psy\"] = {\r\n\tname : \"Blind Spot\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 creature save or treats me as invisible until the end of my next turn\",\r\n\tdescriptionFull : \"As an action, you erase your image from the mind of one creature you can see within 120 feet of you; the target must succeed on a Wisdom saving throw, or you are invisible to it until the end of your next turn.\"\r\n};\r\nPsionicsList[\"delusion-ua-psy\"] = {\r\n\tname : \"Delusion\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"1 crea either hears a sound (whisper-scream), or sees up to 5-ft cube object that disappears on touch\",\r\n\tdescriptionFull : \"As an action, you plant a false belief in the mind of one creature that you can see within 60 feet of you. You can create a sound or an image. Only the target of this talent perceives the sound or image you create.\" + \"\\n   \" + \"If you create a sound, its volume can range from a whisper to a scream. It can be your voice, someone else's voice, a creature's roar, a musical instrument, or any other sound you pick. It lasts for 1 minute.\" + \"\\n   \" + \"If you create an object, it must fit within a 5-foot cube and can't move or be reflective. The image can't create any effect that influences a sense other than sight. The image lasts for 1 minute, and it disappears if the creature touches it.\"\r\n};\r\nPsionicsList[\"energy beam-ua-psy\"] = {\r\n\tname : \"Energy Beam\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or 1d8 Acid, Cold, Fire, Lightning, or Thunder dmg; +1d8 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d8 Acid, Cold, Fire, Lightning, or Thunder dmg\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 90 feet of you. The target must succeed on a Dexterity saving throw or take 1d8 acid, cold, fire, lightning, or thunder damage (your choice).\" + \"\\n   \" + \"The talent's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8)\"\r\n};\r\nPsionicsList[\"light step-ua-psy\"] = {\r\n\tname : \"Light Step\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My walking speed increases by 10 ft; standing up costs 0 movement, once\",\r\n\tdescriptionFull : \"As a bonus action, you alter your density and weight to improve your mobility. For the rest of your turn, your walking speed increases by 10 feet, and the first time you stand up this turn, you do so without expending any of your movement if your speed is greater than 0.\"\r\n};\r\nPsionicsList[\"mind meld-ua-psy\"] = {\r\n\tname : \"Mind Meld\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"120 ft\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I communicate telepathically with 1 willing crea (int > 1) and gain access to 1 memory of theirs\",\r\n\tdescriptionFull : \"As a bonus action, you can communicate telepathically with one willing creature you can see within 120 feet of you. The target must have an Intelligence of at least 2, otherwise this talent fails and the action is wasted.\" + \"\\n   \" + \"This communication can occur until the end of the current turn. You don't need to share a language with the target for it to understand your telepathic utterances, and it understands you even if it lacks a language. You also gain access to one memory of the target's choice, gaining perfect recall of one thing it saw or did.\"\r\n};\r\nPsionicsList[\"mind slam-ua-psy\"] = {\r\n\tname : \"Mind Slam\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Force dmg, and knocked prone if Large or smaller; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Force dmg, and knocked prone if Large or smaller\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on a Constitution saving throw or take 1d6 force damage. If it takes any of this damage and is Large or smaller, it is knocked prone.\" + \"\\n   \" + \"The talent's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6)\"\r\n};\r\nPsionicsList[\"mind thrust-ua-psy\"] = {\r\n\tname : \"Mind Thrust\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10 Psychic dmg; +1d10 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d10 Psychic dmg\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 120 feet of you. The target must succeed on an Intelligence saving throw or take 1d10 psychic damage.\" + \"\\n   \" + \"The talent's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nPsionicsList[\"mystic charm-ua-psy\"] = {\r\n\tname : \"Mystic Charm\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 humanoid save or charmed until end of my next turn\",\r\n\tdescriptionFull : \"As an action, you beguile one humanoid you can see within 120 feet of you. The target must succeed on a Charisma saving throw or be charmed by you until the end of your next turn.\"\r\n};\r\nPsionicsList[\"mystic hand-ua-psy\"] = {\r\n\tname : \"Mystic Hand\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"Move 1 unattended object (up to 10 lbs) up to 30 ft, or manipulate an object\",\r\n\tdescriptionFull : \"You can use your action to manipulate or move one object within 30 feet of you. The object can't weigh more than 10 pounds, and you can't affect an object being worn or carried by another creature. If the object is loose, you can move it up to 30 feet in any direction.\" + \"\\n   \" + \"This talent allows you to open an unlocked door, pour out a beer stein, and so on.\" + \"\\n   \" + \"The object falls to the ground at the end of your turn if you leave it suspended in midair.\"\r\n};\r\nPsionicsList[\"psychic hammer-ua-psy\"] = {\r\n\tname : \"Psychic Hammer\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1d6 Force dmg and moved up to 10 ft in chosen direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Force dmg and moved up to 10 ft in chosen direction\",\r\n\tdescriptionFull : \"As an action, you try to grasp one creature you can see within 120 feet of you, with a hand crafted from telekinetic energy. The target must succeed on a Strength saving throw or take 1d6 force damage. If it takes any of this damage and is Large or smaller, you can move it up to 10 feet in a straight line in a direction of your choice. You can't lift the target off the ground unless it is already airborne or underwater.\" + \"\\n   \" + \"The talent's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\n\r\n// Psionic Disciplines for the Mystic\r\n//the adaptive body discipline\r\nPsionicsList[\"adaptive body-ua-psy\"] = {\r\n\tname : \"Adaptive Body\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I don't need to eat, breathe, or sleep; I can long rest with 8 hours of light activity, without sleep\",\r\n\tdescriptionFull : \"You can alter your body to match your surroundings, allowing you to withstand punishing environments. With greater psi energy, you can extend this protection to others.\" + PsychicFocus + \"While focused on this discipline, you don't need to eat, breathe, or sleep. To gain the benefits of a long rest, you can spend 8 hours engaged in light activity, rather than sleeping during any of it.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ab1-environmental adaptation\", \"ab2-adaptive shield\", \"ab3-energy adaptation\", \"ab4-energy immunity\"]\r\n};\r\nPsionicsList[\"ab1-environmental adaptation\"] = {\r\n\tname : \"Environmental Adaptation\",\r\n\tnameShort : \"Environmental Adapt.\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1 creature ignores the effects of extreme heat or cold (but not Fire or Cold damage)\",\r\n\tdescriptionFull : \"As an action, you or a creature you touch ignores the effects of extreme heat or cold (but not cold or fire damage) for the next hour.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ab2-adaptive shield\"] = {\r\n\tname : \"Adaptive Shield\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take acid, cold, fire, lightning, or thunder damage\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"If taking Acid, Cold, Fire, Lightning, or Thunder damage, gain resistance to it until end of next turn\",\r\n\tdescriptionFull : \"When you take acid, cold, fire, lightning, or thunder damage, you can use your reaction to gain resistance to damage of that type -including the triggering damage- until the end of your next turn.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ab3-energy adaptation\"] = {\r\n\tname : \"Energy Adaptation\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 creature gains resistance to either Acid, Cold, Fire, Lightning, or Thunder damage\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and give it resistance to acid, cold, fire, lightning, or thunder damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ab4-energy immunity\"] = {\r\n\tname : \"Energy Immunity\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 creature gains immunity to either Acid, Cold, Fire, Lightning, or Thunder damage\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and give it immunity to acid, cold, fire, lightning, or thunder damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the aura sight discipline (contributed by Justin W.)\r\nPsionicsList[\"aura sight-ua-psy\"] = {\r\n\tname : \"Aura Sight\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Wisdom (Insight) checks\",\r\n\tdescriptionFull : \"You refocus your sight to see the energy that surrounds all creatures. You perceive auras, energy signatures that can reveal key elements of a creature's nature.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Wisdom (Insight) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"as1-asses foe\", \"as2-read moods\", \"as3-view aura\", \"as4-perceive the unseen\"]\r\n};\r\nPsionicsList[\"as1-asses foe\"] = {\r\n\tname : \"Asses Foe\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn one creature's current HP total and all its immunities, resistances, and vulnerabilities\",\r\n\tdescriptionFull : \"As a bonus action, you analyze the aura of one creature you see. You learn its current hit point total and all its immunities, resistances, and vulnerabilities.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"as2-read moods\"] = {\r\n\tname : \"Read Moods\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn an one-word summary of the emotional state of up to 6 crea\",\r\n\tdescriptionFull : \"As a bonus action, you learn a one-word summary of the emotional state of up to six creatures you can see, such as happy, confused, afraid, or violent.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"as3-view aura\"] = {\r\n\tname : \"View Aura\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Monitor 1 crea: current HP, if magic effects it, basic emotional state; adv. on Insight/Cha checks vs. it\",\r\n\tdescriptionFull : \"As an action, you study one creature's aura. Until your concentration ends, while you can see the target, you learn if it's under the effect of any magical or psionic effects, its current hit point total, and its basic emotional state. While this effect lasts, you have advantage on Wisdom (Insight) and Charisma checks you make against it.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"as4-perceive the unseen\"] = {\r\n\tname : \"Perceive the Unseen\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"See all creatures, including hidden and invisible ones, regardless of lighting conditions\",\r\n\tdescriptionFull : \"As a bonus action, you gain the ability to see auras even of invisible or hidden creatures. Until your concentration ends, you can see all creatures, including hidden and invisible ones, regardless of lighting conditions.\",\r\n\tfirstCol : 5\r\n};\r\n//the bestial form discipline (contributed by rabidknave)\r\nPsionicsList[\"bestial form-ua-psy\"] = {\r\n\tname : \"Bestial Form\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Wisdom (Animal Handling) checks\",\r\n\tdescriptionFull : \"You transform your body, gaining traits of different beasts.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Wisdom (Animal Handling) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"bf1-bestial claws\", \"bf2-bestial transformation\", \"bf3-bt - amphibious\", \"bf4-bt - climbing\", \"bf5-bt - flight\", \"bf6-bt - keen senses\", \"bf7-bt - perfect senses\", \"bf8-bt - swimming\", \"bf9-bt - tough hide\"]\r\n};\r\nPsionicsList[\"bf1-bestial claws\"] = {\r\n\tname : \"Bestial Claws\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee weapon attack with manifested claw, dealing 1d10/PP Slashing dmg\",\r\n\tdescriptionFull : \"You manifest long claws for an instant and make a melee weapon attack against one creature within 5 feet of you. On a hit, this attack deals 1d10 slashing damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf2-bestial transformation\"] = {\r\n\tname : \"Bestial Transformation\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"Alter physique to gain one or more of following effects; sum PP cost for a single use; end with bns a\",\r\n\tdescriptionFull : \"As a bonus action, you alter your physical form to gain different characteristics. When you use this ability, you can choose one or more of the following effects. Each effect has its own psi point cost. Add them together to determine the total cost. This transformation lasts for 1 hour, until you die, or until you end it as a bonus action.\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"bf3-bt - amphibious\"] = {\r\n\tname : \" - Amphibious\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I'm able to breathe air and water by gaining gills\",\r\n\tdescriptionFull : \"You gain gills; you can breathe air and water\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf4-bt - climbing\"] = {\r\n\tname : \" - Climbing\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain climbing speed equal to my walking speed by growing tiny hooked claws\",\r\n\tdescriptionFull : \"You grow tiny hooked claws that give you gain a climbing speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf5-bt - flight\"] = {\r\n\tname : \" - Flight\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain flying speed equal to my walking speed by sprouting wings\",\r\n\tdescriptionFull : \"Wings sprout from your back. You gain a flying speed equal to your walking speed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"bf6-bt - keen senses\"] = {\r\n\tname : \" - Keen Senses\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain advantage on Wisdom (Perception) checks through more sensitive eyes and ears\",\r\n\tdescriptionFull : \"Your eyes and ears become more sensitive. You gain advantage on Wisdom (Perception) checks.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf7-bt - perfect senses\"] = {\r\n\tname : \" - Perfect Senses\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I see invisible creatures/objects within 10 ft, even when blinded, through smell\",\r\n\tdescriptionFull : \"You gain a keen sense of smell and an instinct to detect prey. You can see invisible creatures and objects within 10 feet of you, even if you are blinded.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"bf8-bt - swimming\"] = {\r\n\tname : \" - Swimming\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain swimming speed equal to my walking speed by growing fins and webbed feet/hands\",\r\n\tdescriptionFull : \"You gain fins and webbing between your fingers and toes; you gain a swimming speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf9-bt - tough hide\"] = {\r\n\tname : \" - Tough Hide\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain +2 bonus to AC through thicker skin\",\r\n\tdescriptionFull : \"Your skin becomes as tough as leather; you gain a +2 bonus to AC.\",\r\n\tfirstCol : 2\r\n};\r\n//the brute force discipline (contributed by rabidknave)\r\nPsionicsList[\"brute force-ua-psy\"] = {\r\n\tname : \"Brute Force\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Strength (Athletics) checks\",\r\n\tdescriptionFull : \"You augment your natural strength with psionic energy, granting you the ability to achieve incredible feats of might.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Strength (Athletics) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"bf1-brute strike\", \"bf2-knock back\", \"bf3-mighty leap\", \"bf4-feat of strength\"]\r\n};\r\nPsionicsList[\"bf1-brute strike\"] = {\r\n\tname : \"Brute Strike\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My next melee attack during this turn deals +1d6/PP damage, of the same type as the melee attack\",\r\n\tdescriptionFull : \"As a bonus action, you gain a bonus to your next damage roll against a target you hit with a melee attack during the current turn. The bonus equals +1d6 per psi point spent, and the bonus damage is the same type as the attack. If the attack has more than one damage type, you choose which one to use for the bonus damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf2-knock back\"] = {\r\n\tname : \"Knock Back\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you hit a target with a melee attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Use after melee atk hit; crea hit save or move 10 ft/PP away; if it then hits obj, 1d6/PP Bludg. dmg\", //added the damage\r\n\tdescriptionFull : \"When you hit a target with a melee attack, you can activate this ability as a reaction. The target must succeed on a Strength saving throw or be knocked 10 feet away from you per psi point spent. The target moves in a straight line. If it hits an object, this movement immediately ends and the target takes 1d6 bludgeoning damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf3-mighty leap\"] = {\r\n\tname : \"Mighty Leap\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"Move\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"As part of my movement, jump 20 ft/PP in any direction\",\r\n\tdescriptionFull : \"As part of your movement, you jump in any direction up to 20 feet per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf4-feat of strength\"] = {\r\n\tname : \"Feat of Strength\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain +5 bonus to Strength checks until the end of next turn\",\r\n\tdescriptionFull : \"As a bonus action, you gain a +5 bonus to Strength checks until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\n//the celerity discipline (contributed by rabidknave)\r\nPsionicsList[\"celerity-ua-psy\"] = {\r\n\tname : \"Celerity\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My walking speed increases by 10 ft\",\r\n\tdescriptionFull : \"You channel psionic power into your body, honing your reflexes and agility to an incredible degree. The world seems to slow down while you continue to move as normal.\" + PsychicFocus + \"While focused on this discipline, your walking speed increases by 10 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"c1-rapid step\", \"c2-agile defense\", \"c3-blur of motion\", \"c4-surge of speed\", \"c5-surge of action\"]\r\n};\r\nPsionicsList[\"c1-rapid step\"] = {\r\n\tname : \"Rapid Step\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My walking, swim, and climb speeds increases by 10 ft/PP; doesn't grant new movement modes\",\r\n\tdescriptionFull : \"As a bonus action, you increase your walking speed by 10 feet per psi point spent until the end of the current turn. If you have a climbing or swimming speed, this increase applies to that speed as well.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"c2-agile defense\"] = {\r\n\tname : \"Agile Defense\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I can take the Dodge action now, as part of using this power\",\r\n\tdescriptionFull : \"As a bonus action, you take the Dodge action.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c3-blur of motion\"] = {\r\n\tname : \"Blur of Motion\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I'm invisible while moving during the current turn\",\r\n\tdescriptionFull : \"As an action, you cause yourself to be invisible during any of your movement during the current turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c4-surge of speed\"] = {\r\n\tname : \"Surge of Speed\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I don't provoke opportunity attacks and gain a climbing speed equal to my walking speed\",\r\n\tdescriptionFull : \"As a bonus action, you gain two benefits until the end of the current turn: you don't provoke opportunity attacks, and you have a climbing speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c5-surge of action\"] = {\r\n\tname : \"Surge of Action\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I can take either the Dash action or make one weapon attack now, as part of using this power\",\r\n\tdescriptionFull : \"As a bonus action, you can Dash or make one weapon attack.\",\r\n\tfirstCol : 5\r\n};\r\n//the corrosive metabolism discipline (contributed by rabidknave)\r\nPsionicsList[\"corrosive metabolism-ua-psy\"] = {\r\n\tname : \"Corrosive Metabolism\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Acid and Poison damage\",\r\n\tdescriptionFull : \"Your control over your body allows you to deliver acid or poison attacks.\" + PsychicFocus + \"While focused on this discipline, you have resistance to acid and poison damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cm1-corrosive touch\", \"cm2-venom strike\", \"cm3-acid spray\", \"cm4-breath of the black dragon\", \"cm5-breath of the green dragon\"]\r\n};\r\nPsionicsList[\"cm1-corrosive touch\"] = {\r\n\tname : \"Corrosive Touch\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\", //use \"Touch\" instead of \"5 ft\" when its about reach\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 1d10/PP Acid damage; save halves\", // use \"; save halves\" for this kind of situations\r\n\tdescriptionFull : \"As an action, you deliver a touch of acid to one creature within your reach. The target must make a Dexterity saving throw, taking 1d10 acid damage per psi point spent on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cm2-venom strike\"] = {\r\n\tname : \"Venom Strike\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea 1d6/PP Poison damage; save halves; if save failed, poisoned until end of my next turn\",\r\n\tdescriptionFull : \"As an action, you create a poison spray that targets one creature you can see within 30 feet of you. The target must make a Constitution saving throw. On a failed save, it takes 1d6 poison damage per psi point spent and is poisoned until the end of your next turn. On a successful save, the target takes half as much damage and isn't poisoned.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cm3-acid spray\"] = {\r\n\tname : \"Acid Spray\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take piercing or slashing damage\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use after I take Piercing or Slashing damage; all creatures in range take 2d6 Acid damage\",\r\n\tdescriptionFull : \"As a reaction when you take piercing or slashing damage, you cause acid to spray from your wound; each creature within 5 feet of you takes 2d6 acid damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cm4-breath of the black dragon\"] = {\r\n\tname : \"Breath of the Black Dragon\",\r\n\tnameShort : \"Breath o/t Black Dragon\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"60-ft long 5-ft wide line all creatures 6d6(+1d6/extra PP) Acid dmg; save halves\",\r\n\tdescriptionFull : \"You exhale a wave of acid in a 60-foot line that is 5 feet wide. Each creature in the line must make a Constitution saving throw, taking 6d6 acid damage on a failed save, or half as much on a successful one. You can increase the damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"cm5-breath of the green dragon\"] = {\r\n\tname : \"Breath of the Green Dragon\",\r\n\tnameShort : \"Breath o/t Green Dragon\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"90-ft cone\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"All creatures 10d6 poison damage; save halves\",\r\n\tdescriptionFull : \"You exhale a cloud of poison in a 90-foot cone. Each creature in the line must make a Constitution saving throw, taking 10d6 poison damage on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : 7\r\n};\r\n//the crown of despair discipline (contributed by rabidknave)\r\nPsionicsList[\"crown of despair-ua-psy\"] = {\r\n\tname : \"Crown of Despair\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Intimidation) checks\",\r\n\tdescriptionFull : \"You have learned to harvest seeds of despair in a creature's psyche, wracking it with self-doubt and inaction.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Intimidation) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cd1-crowned in sorrow\", \"cd2-call to inaction\", \"cd3-visions of despair\", \"cd4-dolorous mind\"]\r\n};\r\nPsionicsList[\"cd1-crowned in sorrow\"] = {\r\n\tname : \"Crowned in Sorrow\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn start\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea 1d8/PP Psychic dmg and can't take reactions; save halves damage and normal reactions\",\r\n\tdescriptionFull : \"As an action, one creature you can see within 60 feet of you must make a Charisma saving throw. On a failed save, it takes 1d8 psychic damage per psi point spent, and it can't take reactions until the start of its next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cd2-call to inaction\"] = {\r\n\tname : \"Call to Inaction\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"After 1 min conversation, 1 crea save or incapacitated; ends if it or its ally is attacked (charm effect)\",\r\n\tdescriptionFull : \"If you spend 1 minute conversing with a creature, you can attempt to seed it with overwhelming ennui. At the end of the minute, you can use an action to force the creature to make a Wisdom saving throw. The save automatically succeeds if the target is immune to being charmed. On a failed save, it sits and is incapacitated until your concentration ends. This effect immediately ends if the target or any ally it can see is attacked or takes damage. On a successful save, the creature is unaffected and has no inkling of your attempt to bend its will.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cd3-visions of despair\"] = {\r\n\tname : \"Visions of Despair\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea 3d6(+1d6/extra PP) Psychic dmg and speed reduced to 0; save halves and no speed reduction\",\r\n\tdescriptionFull : \"As an action, you force one creature you can see within 60 feet of you to make a Charisma saving throw. On a failed save, it takes 3d6 psychic damage, and its speed is reduced to 0 until the end of its next turn. On a successful save, it takes half as much damage. You can increase the damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"cd4-dolorous mind\"] = {\r\n\tname : \"Dolorous Mind\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or incapacitated and speed 0; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you choose one creature you can see within 60 feet of you. It must succeed on a Charisma saving throw, or it is incapacitated and has a speed of 0 until your concentration ends. It can repeat this saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 5\r\n};\r\n//the crown of disgust discipline\r\nPsionicsList[\"crown of disgust-ua-psy\"] = {\r\n\tname : \"Crown of Disgust\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"5-ft rad around me is difficult terrain for creatures that aren't immune to being frightened\",\r\n\tdescriptionFull : \"You cause a creature to be flooded with emotions of disgust.\" + PsychicFocus + \"While you are focused on this discipline, the area in a 5-foot radius around you is difficult terrain for any enemy that isn't immune to being frightened.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cd1-eye of horror\", \"cd2-wall of repulsion\", \"cd3-visions of disgust\", \"cd4-world of horror\"]\r\n};\r\nPsionicsList[\"cd1-eye of horror\"] = {\r\n\tname : \"Eye of Horror\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or 1d6/PP Psychic damage and can't move closer; save halves and no movement restriction\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Charisma saving throw. On a failed save, it takes 1d6 psychic damage per psi point spent and can't move closer to you until the end of its next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cd2-wall of repulsion\"] = {\r\n\tname : \"Wall of Repulsion\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Up to 30\\xD71\\xD710 ft (l\\xD7w\\xD7h) invisible wall of energy; save to move through it, even for unwilling move\",\r\n\tdescription : \"Up to 9\\xD70,3\\xD73 m (l\\xD7w\\xD7h) invisible wall of energy; save to move through it, even for unwilling move\",\r\n\tdescriptionFull : \"As an action, you create an invisible, insubstantial wall of energy within 60 feet of you that is up to 30 feet long, 10 feet high, and 1 foot thick. The wall lasts until your concentration ends. Any creature attempting to move through it must make a Wisdom saving throw. On a failed save, a creature can't move through the wall until the start of its next turn. On a successful save, the creature can pass through it. A creature must make this save whenever it attempts to pass through the wall, whether willingly or unwillingly.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"cd3-visions of disgust\"] = {\r\n\tname : \"Visions of Disgust\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 5d6 Psychic dmg (half on save) & 1d6 Psychic dmg per crea within 5 ft at its turn end\",\r\n\tdescriptionFull : \"You cause a creature to regard all other beings as horrid, alien entities. As an action, choose one creature you can see within 60 feet of you. The target must make a Wisdom saving throw. On a failed save, it takes 5d6 psychic damage, and until your concentration ends, it takes 1d6 psychic damage per creature within 5 feet of it at the end of each of its turns. On a successful save, the target takes only half the initial damage and suffers none of the other effects.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"cd4-world of horror\"] = {\r\n\tname : \"World of Horror\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"6 crea 8d6 Psychic dmg, frightened, \\u0026 do only melee atks; save halves, no other effects; save each rnd\",\r\n\tdescriptionFull : \"As an action, choose up to six creatures within 60 feet of you. Each target must make a Charisma saving throw. On a failed save, a target takes 8d6 psychic damage, and it is frightened until your concentration ends. On a successful save, a target takes half as much damage.\" + \"\\n   \" + \"While frightened by this effect, a target's speed is reduced to 0, and the target can use its action, and any bonus action it might have, only to make melee attacks. The frightened target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the crown of rage discipline\r\nPsionicsList[\"crown of rage-ua-psy\"] = {\r\n\tname : \"Crown of Rage\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Any crea within range has disadvantage on melee attack rolls against targets other than me\",\r\n\tdescriptionFull : \"You place a mote of pure fury within a creature's mind, causing its bloodlust to overcome its senses and for it to act as you wish it to.\" + PsychicFocus + \"While you are focused on this discipline, any enemy within 5 feet of you that makes a melee attack roll against creatures other than you does so with disadvantage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cr1-primal fury\", \"cr2-fighting words\", \"cr3-mindless courage\", \"cr4-punishing fury\"]\r\n};\r\nPsionicsList[\"cr1-primal fury\"] = {\r\n\tname : \"Primal Fury\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or 1d6/PP Psychic dmg, use rea to move its speed toward nearest enemy (charm effect)\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Charisma saving throw or take 1d6 psychic damage per psi point spent on this ability and immediately use its reaction to move its speed in a straight line toward its nearest enemy. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cr2-fighting words\"] = {\r\n\tname : \"Fighting Words\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"After 1 min conversation, 1 crea save or attack one other, chosen crea for 5 rnds (charm effect)\",\r\n\tdescriptionFull : \"If you spend 1 minute conversing with a creature, you can attempt to leave a simmering violence in its mind. At the end of the minute, you can use an action to force the creature to make a Wisdom saving throw to resist feeling violent urges against one creature you describe to it or name. The save automatically succeeds if the target is immune to being charmed. On a failed save, the target attacks the chosen creature if it sees that creature before your concentration ends, using weapons or spells against a creature it was already hostile toward or unarmed strikes against an ally or a creature it was neutral toward. Once the fight starts, it continues to attack for 5 rounds before this effect ends. This effect immediately ends if the target or any ally it can see is attacked or takes damage from any creature other than the one it has been incited against. On a successful save, the creature is unaffected and has no inkling of your attempt to bend its will.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cr3-mindless courage\"] = {\r\n\tname : \"Mindless Courage\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or it can only move towards the nearest enemy it can see, or not move at all (charm effect)\",\r\n\tdescriptionFull : \"You cause a creature's bloodlust to overcome its sense of preservation. As a bonus action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or, until the end of your next turn, it can't willingly move unless its movement brings it closer to its nearest enemy that it can see. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cr4-punishing fury\"] = {\r\n\tname : \"Punishing Fury\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or when it makes melee atk, all in 5 ft of it can make melee atk vs. it as rea (charm effect)\",\r\n\tdescriptionFull : \"You cause a creature's rage to grow so hot that it attacks without heeding its own safety. As a bonus action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or, until your concentration ends, any creature within 5 feet of it can use a reaction to make a melee attack against it whenever the target makes a melee attack. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\n//the diminution discipline (contributed by mattohara & TheBob427)\r\nPsionicsList[\"diminution-ua-psy\"] = {\r\n\tname : \"Diminution\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I have advantage on Dexterity (Stealth) checks\",\r\n\tdescriptionFull : \"You manipulate the matter that composes your body, drastically reducing your size without surrendering any of your might.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Dexterity (Stealth) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"d1-miniature form\", \"d2-toppling shift\", \"d3-sudden shift\", \"d4-microscopic form\"]\r\n};\r\nPsionicsList[\"d1-miniature form\"] = {\r\n\tname : \"Miniature Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : 'Become Tiny, gain +5 to Dex (Stealth) and can fit through gaps of up to 6\" without squeezing',\r\n\tdescriptionMetric : \"Become Tiny, gain +5 to Dex (Stealth) and can fit through gaps of up to 15 cm without squeezing\",\r\n\tdescriptionFull : \"As a bonus action, you become Tiny until your concentration ends. While this size, you gain a +5 bonus to Dexterity (Stealth) checks and can move through gaps up to 6 inches across without squeezing.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"d2-toppling shift\"] = {\r\n\tname : \"Toppling Shift\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 creature save or be knocked prone\",\r\n\tdescriptionFull : \"As a bonus action, you shift to an incredibly small size and then suddenly return to normal, sending an opponent flying backward. Choose one creature you can see within 5 feet of you. It must succeed on a Strength saving throw or be knocked prone.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"d3-sudden shift\"] = {\r\n\tname : \"Sudden Shift\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use when hit by an attack; it misses, and I move up to 5 ft without provoking opportunity attacks\",\r\n\tdescriptionFull : \"As a reaction when you are hit by an attack, you shift down to minute size to avoid the attack. The attack misses, and you move up to 5 feet without provoking opportunity attacks before returning to normal size.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"d4-microscopic form\"] = {\r\n\tname : \"Microscopic Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Become diminutive, gain +5 AC, +10 to Dex (Stealth), can fit through 1\\\" gaps, but can't use wea atks\",\r\n\tdescriptionMetric : \"Become diminutive, gain +5 AC, +10 to Dex (Stealth), can fit through 2,5 cm gaps, can't use wea atks\",\r\n\tdescriptionFull : \"As a bonus action, you become smaller than Tiny until your concentration ends. While this size, you gain a +10 bonus to Dexterity (Stealth) checks and a +5 bonus to AC, you can move through gaps up to 1 inch across without squeezing, and you can't make weapon attacks.\",\r\n\tfirstCol : 7\r\n};\r\n//the giant growth discipline (contributed by mattohara & TheBob427)\r\nPsionicsList[\"giant growth-ua-psy\"] = {\r\n\tname : \"Giant Growth\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My reach increases by 5 ft\",\r\n\tdescriptionFull : \"You infuse yourself with psionic energy to grow to tremendous size, bolstering your strength and durability.\" + PsychicFocus + \"While focused on this discipline, your reach increases by 5 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"gg1-ogre form\", \"gg2-giant form\"]\r\n};\r\nPsionicsList[\"gg1-ogre form\"] = {\r\n\tname : \"Ogre Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"10 temp. HP; for duration: become Large, +5 ft reach, melee attacks deal +1d4 Bludgeoning dmg\",\r\n\tdescriptionFull : \"As a bonus action, you gain 10 temporary hit points. In addition, until your concentration ends, your melee weapon attacks deal an extra 1d4 bludgeoning damage on a hit, and your reach increases by 5 feet. If you're smaller than Large, you also become Large for the duration.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"gg2-giant form\"] = {\r\n\tname : \"Giant Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"30 temp. HP; for duration: become Huge, +10 ft reach, melee attacks deal +2d6 Bludgeoning dmg\",\r\n\tdescriptionFull : \"As a bonus action, you gain 30 temporary hit points. In addition, until your concentration ends, your melee weapon attacks deal an extra 2d6 bludgeoning damage on a hit, and your reach increases by 10 feet. If you're smaller than Huge, you also become Huge for the duration.\",\r\n\tfirstCol : 7\r\n};\r\n//the intellect fortress discipline (contributed by TheBob427)\r\nPsionicsList[\"intellect fortress-ua-psy\"] = {\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Psychic damage\",\r\n\tdescriptionFull : \"You forge an indomitable wall of psionic energy around your mind-one that allows you to launch counterattacks against your opponents.\" + PsychicFocus + \"While focused on this discipline, you have resistance to psychic damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"if1-psychic backlash\", \"if2-psychic parry\", \"if3-psychic redoubt\"]\r\n};\r\nPsionicsList[\"if1-psychic backlash\"] = {\r\n\tname : \"Psychic Backlash\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I impose dis. on an attack roll vs. me; if I'm hit anyway, the attacker takes 2d10 Psychic damage\",\r\n\tdescriptionFull : \"As a reaction, you can impose disadvantage on an attack roll against you if you can see the attacker. If the attack still hits you, the attacker takes 2d10 psychic damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"if2-psychic parry\"] = {\r\n\tname : \"Psychic Parry\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you make an Intelligence, a Wisdom, or a Charisma saving throw\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Add +1/PP to the result of an Int, Wis, or Cha save; use after rolling, but before knowing if successful\",\r\n\tdescriptionFull : \"As a reaction when you make an Intelligence, a Wisdom, or a Charisma saving throw, you gain a +1 bonus to that saving throw for each psi point you spend on this ability. You can use this ability after rolling the die but before suffering the results.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"if3-psychic redoubt\"] = {\r\n\tname : \"Psychic Redoubt\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Any creatures in range gain resistance to Psychic damage and advantage on Int, Wis, and Cha saves\",\r\n\tdescriptionFull : \"As an action, you create a field of protective psychic energy. Choose any number of creatures within 30 feet of you. Until your concentration ends, each target has resistance to psychic damage and advantage on Intelligence, Wisdom, and Charisma saving throws.\",\r\n\tfirstCol : 5\r\n};\r\n//the iron durability discipline (contributed by mattohara)\r\nPsionicsList[\"iron durability-ua-psy\"] = {\r\n\tname : \"Iron Durability\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +1 bonus to AC\",\r\n\tdescriptionFull : \"You transform your body to become a living metal, allowing you to shrug off attacks that would cripple weaker creatures.\" + PsychicFocus + \"While focused on this discipline, you gain a +1 bonus to AC.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"id1-iron hide\", \"id2-steel hide\", \"id3-iron resistance\"]\r\n};\r\nPsionicsList[\"id1-iron hide\"] = {\r\n\tname : \"Iron Hide\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain +1/PP AC; use when hit by attack; bonus works against triggering attack\",\r\n\tdescriptionFull : \"As a reaction when you are hit by an attack, you gain a +1 bonus to AC for each psi point you spend on this ability. The bonus lasts until the end of your next turn. This bonus applies against the triggering attack.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"id2-steel hide\"] = {\r\n\tname : \"Steel Hide\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain resistance to Bludgeoning, Piercing, and Slashing damage\",\r\n\tdescriptionFull : \"As a bonus action, you gain resistance to bludgeoning, piercing, and slashing damage until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"id3-iron resistance\"] = {\r\n\tname : \"Iron Resistance\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"I gain resistance to bludgeoning, piercing, or slashing (my choice)\",\r\n\tdescriptionFull : \"As an action, you gain resistance to bludgeoning, piercing, or slashing damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of awe discipline (contributed by mattohara)\r\nPsionicsList[\"mantle of awe-ua-psy\"] = {\r\n\tname : \"Mantle of Awe\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a bonus to Charisma checks, bonus equals half my Intelligence modifier (min 1)\",\r\n\tdescriptionFull : \"You learn to use psionic energy to manipulate others with a subtle combination of psi and your own, natural charm.\" + PsychicFocus + \"While focused on this discipline, you gain a bonus to Charisma checks. The bonus equals half your Intelligence modifier (minimum of +1).\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"moa1-charming presence\", \"moa2-center of attention\", \"moa3-invoke awe\"]\r\n};\r\nPsionicsList[\"moa1-charming presence\"] = {\r\n\tname : \"Charming Presence\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"2d8/PP HP of conscious, not in combat, not immune to charm crea charmed; use HP max, not current\",\r\n\tdescriptionFull : \"As an action, you exert an aura of sympathetic power. Roll 2d8 per psi point spent on this ability; the total is how many hit points worth of creatures this option can affect. Creatures within 30 feet of you are affected in ascending order of their hit point maximums, ignoring incapacitated creatures, creatures immune to being charmed, and creatures engaged in combat.\" + \"\\n   \" + \"Starting with the creature that has the lowest hit point maximum, each creature affected by this option is charmed by you for 10 minutes, regarding you as a friendly acquaintance. Subtract each creature's hit point maximum from the total before moving on to the next creature. A creature's hit point maximum must be equal to or less than the remaining total for that creature to be affected.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"moa2-center of attention\"] = {\r\n\tname : \"Center of Attention\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or all other creatures are invisible to it; ends if it leaves my sight/earshot or takes dmg\",\r\n\tdescriptionFull : \"As an action, you exert an aura of power that grabs a creature's attention. Choose one creature you can see within 60 feet of you. It must make a Charisma saving throw. On a failed save, the creature is so thoroughly distracted by you that all other creatures are invisible to it until your concentration ends. This effect ends if the creature can no longer see or hear you or if it takes damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"moa3-invoke awe\"] = {\r\n\tname : \"Invoke Awe\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"5 crea save or charmed, obey verbal commands; no self harm; will atk crea that atk me; save each rnd\",\r\n\tdescriptionFull : \"As an action, you exert an aura that inspires awe in others. Choose up to 5 creatures you can see within 60 feet of you. Each target must succeed on an Intelligence saving throw or be charmed by you until your concentration ends. While charmed, the target obeys all your verbal commands to the best of its ability and without doing anything obviously self-destructive. The charmed target will attack only creatures that it has seen attack you since it was charmed or that it was already hostile toward. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of command discipline\r\nPsionicsList[\"mantle of command-ua-psy\"] = {\r\n\tname : \"Mantle of Command\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"When ending a turn I didn't move in, use my rea to have 1 ally within 30 ft move half its speed\",\r\n\tdescriptionFull : \"You exert an aura of trust and authority, enhancing the coordination among your allies.\" + PsychicFocus + \"While focused on this discipline, when you end your turn and didn't move during it, you can use your reaction to allow one ally you can see within 30 feet of you to move up to half their speed, following a path of your choice. To move in this way, the ally mustn't be incapacitated.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mc1-coordinated movement\", \"mc2-commander's sight\", \"mc3-command to strike\", \"mc4-strategic mind\", \"mc5-overwhelming attack\"]\r\n};\r\nPsionicsList[\"mc1-coordinated movement\"] = {\r\n\tname : \"Coordinated Movement\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 5 allies I can see can use their reaction to move half their speed, following a path I choose\",\r\n\tdescriptionFull : \"As a bonus action, choose up to five allies you can see within 60 feet of you. Each of those allies can use their reaction to move up to half their speed, following a path of your choice.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc2-commander's sight\"] = {\r\n\tname : \"Commander's Sight\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 rnd\",\r\n\tdescription : \"I mark 1 crea; until the start of my next turn, my allies have adv. on attacks vs. it\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. Until the start of your next turn, your allies have advantage on attack rolls against that target.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc3-command to strike\"] = {\r\n\tname : \"Command to Strike\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 ally I can see can use their reaction to take the Attack action, with me choosing the targets\",\r\n\tdescriptionFull : \"As an action, choose one ally you can see within 60 feet of you. That ally can use their reaction to immediately take the Attack action. You choose the targets.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mc4-strategic mind\"] = {\r\n\tname : \"Strategic Mind\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 ally can, on its turn, either add 1d4 to its attack rolls or take Dash or Disengage as a bonus action\",\r\n\tdescriptionFull : \"As an action, you exert an aura of trust and command that unites your allies into a cohesive unit. Until your concentration ends, any ally within 60 feet of you on their turn can, as a bonus action, take the Dash or Disengage action or roll a d4 and add the number rolled to each attack roll they make that turn.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mc5-overwhelming attack\"] = {\r\n\tname : \"Overwhelming Attack\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 5 allies I see can use their reactions to take the Attack action, with me choosing the targets\",\r\n\tdescriptionFull : \"As an action, choose up to five allies you can see within 60 feet of you. Each of those allies can use their reaction to take the Attack action. You choose the targets of the attacks.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of courage discipline\r\nPsionicsList[\"mantle of courage-ua-psy\"] = {\r\n\tname : \"Mantle of Courage\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My and allies within 10 ft that can see me have advantage on saves vs. being frightened\",\r\n\tdescriptionFull : \"You focus your mind on courage, radiating confidence and bravado to your allies.\" + PsychicFocus + \"While focused on this discipline, you and allies within 10 feet of you who can see you have advantage on saving throws against being frightened.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mc1-incite courage\", \"mc2-aura of victory\", \"mc3-pillar of confidence\"]\r\n};\r\nPsionicsList[\"mc1-incite courage\"] = {\r\n\tname : \"Incite Courage\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 6 creatures are no longer frightened\",\r\n\tdescriptionFull : \"As a bonus action, choose up to six creatures you can see within 60 feet of you. If any of those creatures is frightened, that condition ends on that creature.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc2-aura of victory\"] = {\r\n\tname : \"Aura of Victory\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"When an enemy I can see is reduced to 0 HP, me and allies within range gain 2/PP temporary HP\",\r\n\tdescriptionFull : \"As a bonus action, you project psionic energy until your concentration ends. The energy fortifies you and your allies when your enemies are felled; whenever an enemy you can see is reduced to 0 hit points, you and each of your allies within 30 feet of you gain temporary hit points equal to double the psi points spent to activate this effect.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mc3-pillar of confidence\"] = {\r\n\tname : \"Pillar of Confidence\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"Me \\u0026 up to 5 crea gain, on their turn, a special action to either make 1 wea atk, Dash, or Disengage\",\r\n\tdescriptionFull : \"As an action, you and up to five creatures you can see within 60 feet of you each gain one extra action to use on their individual turns. The action goes away if not used before the end of your next turn. the action can be used only to make one weapon attack or to take the Dash or Disengage action.\",\r\n\tfirstCol : 6\r\n};\r\n//the mantle of fear discipline\r\nPsionicsList[\"mantle of fear-ua-psy\"] = {\r\n\tname : \"Mantle of Fear\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Intimidation) checks\",\r\n\tdescriptionFull : \"You tap into a well of primal fear and turn yourself into a beacon of terror to your enemies.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Intimidation) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-incite fear\", \"mf2-unsettling aura\", \"mf3-incite panic\"]\r\n};\r\nPsionicsList[\"mf1-incite fear\"] = {\r\n\tname : \"Incite Fear\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or be frightened of me; repeat save each turn when out of line of sight\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or become frightened of you until your concentration ends. Whenever the frightened target ends its turn in a location where it can't see you, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf2-unsettling aura\"] = {\r\n\tname : \"Unsettling Aura\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"All crea in range that can see me move only half speed when moving towards me (frightening effect)\",\r\n\tdescriptionFull : \"As a bonus action, you cloak yourself in unsettling psychic energy. Until your concentration ends, any enemy within 60 feet of you that can see you must spend 1 extra foot of movement for every foot it moves toward you. A creature ignores this effect if immune to being frightened.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf3-incite panic\"] = {\r\n\tname : \"Incite Panic\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"8 crea save each rnd or frightened and spend turn on random move or melee atk; 3 saves ends; see B\",\r\n\tdescriptionFull : \"As an action, choose up to eight creatures you can see within 90 feet of you that can see you. At the start of each of a target's turns before your concentration ends, the target must make a Wisdom saving throw. On a failed save, the target is frightened until the start of its next turn, and you roll a die. If you roll an odd number, the frightened target moves half its speed in a random direction and takes no action on that turn, other than to scream in terror. If you roll an even number, the frightened target makes one melee attack against a random target within its reach. If there is no such target, it moves half its speed in a random direction and takes no action on that turn. This effect ends on a target if it succeeds on three saving throws against it.\",\r\n\tfirstCol : 5\r\n};\r\n//the mantle of fury discipline\r\nPsionicsList[\"mantle of fury-ua-psy\"] = {\r\n\tname : \"Mantle of Fury\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Me and allies within 10 ft at start of my turn gain +5 ft walking speed for that turn\",\r\n\tdescriptionFull : \"You allow the primal fury lurking deep within your mind to burst forth, catching you and your allies in an implacable bloodthirst.\" + PsychicFocus + \"While focused on this discipline in combat, you and any ally who starts their turn within 10 feet of you gains a 5-foot increase to their walking speed during that turn.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-incite fury\", \"mf2-mindless charge\", \"mf3-aura of bloodletting\", \"mf4-overwhelming fury\"]\r\n};\r\nPsionicsList[\"mf1-incite fury\"] = {\r\n\tname : \"Incite Fury\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"3 creatures can add 1d4 to the damage of melee weapon attacks during the duration\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three allies you can see within 60 feet of you (you can choose yourself in place of one of the allies). Until your concentration ends, each target can roll a d4 when rolling damage for a melee weapon attack and add the number rolled to the damage roll.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf2-mindless charge\"] = {\r\n\tname : \"Mindless Charge\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"3 creatures can use their reactions to move their speed straight towards the nearest enemy\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three creatures you can see within 60 feet of you. Each target can immediately use its reaction to move up to its speed in a straight line toward its nearest enemy.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf3-aura of bloodletting\"] = {\r\n\tname : \"Aura of Bloodletting\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me and all creatures within range during the duration have advantage on melee attack rolls\",\r\n\tdescriptionFull : \"As a bonus action, you unleash an aura of rage. Until your concentration ends, you and any creature within 60 feet of you has advantage on melee attack rolls.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf4-overwhelming fury\"] = {\r\n\tname : \"Overwhelming Fury\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 creature save or it can use its actions only to make melee attacks; save at the end of each of its turns\",\r\n\tdescriptionFull : \"As an action, you flood rage into one creature you can see within 60 feet of you. The target must succeed on a Charisma saving throw, or it can use its actions only to make melee attacks until your concentration ends. It can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 5\r\n};\r\n//the mantle of joy discipline\r\nPsionicsList[\"mantle of joy-ua-psy\"] = {\r\n\tname : \"Mantle of Joy\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Persuasion) checks\",\r\n\tdescriptionFull : \"You tap into the joy within you, radiating it outward in soothing, psychic energy that brings hope and comfort to creatures around you.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Persuasion) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mj1-soothing presence\", \"mj2-comforting aura\", \"mj3-aura of jubilation\", \"mj4-beacon of recovery\"]\r\n};\r\nPsionicsList[\"mj1-soothing presence\"] = {\r\n\tname : \"Soothing Presence\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"3 creatures gain 3/PP temporary hit points\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three creatures you can see within 60 feet of you. Each target gains 3 temporary hit points per psi point spent on this effect.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mj2-comforting aura\"] = {\r\n\tname : \"Comforting Aura\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"3 creatures can add 1d4 on every saving throw during the duration\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three allies you can see (you can choose yourself in place of one of the allies). Until your concentration ends, each target can roll a d4 when making a saving throw and add the number rolled to the total.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mj3-aura of jubilation\"] = {\r\n\tname : \"Aura of Jubilation\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"All creatures within range that can see me have disadvantage on Perception and Investigation checks\",\r\n\tdescriptionFull : \"As a bonus action, you radiate a distracting mirth until your concentration ends. Each creature within 60 feet of you that can see you suffers disadvantage on any checks using the Perception and Investigation skills.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mj4-beacon of recovery\"] = {\r\n\tname : \"Beacon of Recovery\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Me + 5 allies can make an extra save against every effect that allows a save at the start/end of a turn\",\r\n\tdescriptionFull : \"As a bonus action, you and up to five allies you can see within 60 feet of you can immediately make saving throws against every effect they're suffering that allows a save at the start or end of their turns.\",\r\n\tfirstCol : 5\r\n};\r\n//the mastery of air discipline (contributed by mattohara)\r\nPsionicsList[\"mastery of air-ua-psy\"] = {\r\n\tname : \"Mastery of Air\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I take no falling damage and ignore difficult terrain when walking\",\r\n\tdescriptionFull : \"You become one with the power of elemental air.\" + PsychicFocus + \"While focused on this discipline, you take no falling damage, and you ignore difficult terrain when walking.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ma1-wind step\", \"ma2-wind stream\", \"ma3-cloak of air\", \"ma4-wind form\", \"ma5-misty form\", \"ma6-animate air\"]\r\n};\r\nPsionicsList[\"ma1-wind step\"] = {\r\n\tname : \"Wind Step\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"Move\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"Fly 20 ft/PP as part of my move this turn; if I end my turn in the air, my fall\",\r\n\tdescriptionFull : \"As part of your move on your turn, you can fly up to 20 feet for each psi point spent. If you end this flight in the air, you fall unless something else holds you aloft.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ma2-wind stream\"] = {\r\n\tname : \"Wind Stream\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"30-ft long 5-ft wide all crea 1d8/PP Bludgeoning dmg and knocked prone; save halves and not prone\",\r\n\tdescriptionFull : \"As an action, you create a line of focused air that is 30 feet long and 5 feet wide. Each creature in that area must make a Strength saving throw, taking 1d8 bludgeoning damage per psi point spent and being knocked prone on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ma3-cloak of air\"] = {\r\n\tname : \"Cloak of Air\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Atks vs. me have dis.; when missed by melee atk, use rea to have attacker repeat the attack on itself\",\r\n\tdescriptionFull : \"As a bonus action, you seize control of the air around you to create a protective veil. Until your concentration ends, attack rolls against you have disadvantage, and when a creature you can see misses you with a melee attack, you can use your reaction to force the creature to repeat the attack roll against itself.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ma4-wind form\"] = {\r\n\tname : \"Wind Form\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I gain a flying speed of 60 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain a flying speed of 60 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ma5-misty form\"] = {\r\n\tname : \"Misty Form\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : 'Gain resistance to Bludgeoning/Piercing/Slashing, can only take Dash actions, fit through 1\" opening',\r\n\tdescriptionMetric : \"Gain resistance to Bludgeoning/Piercing/Slashing, only take Dash actions, fit through 2,5 cm opening\",\r\n\tdescriptionFull : \"As an action, your body becomes like a misty cloud until your concentration ends. In this form, you gain resistance to bludgeoning, piercing, and slashing damage, and you can't take actions other than the Dash action. You can pass through openings that are no more than 1 inch wide without squeezing.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"ma6-animate air\"] = {\r\n\tname : \"Animate Air\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon an air elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause an air elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of fire discipline\r\nPsionicsList[\"mastery of fire-ua-psy\"] = {\r\n\tname : \"Mastery of Fire\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Fire damage and gain a +2 bonus on rolls for Fire damage\",\r\n\tdescriptionFull : \"You align your mind with the energy of elemental fire.\" + PsychicFocus + \"While focused on this discipline, you gain resistance to fire damage, and you gain a +2 bonus to rolls for fire damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-combustion\", \"mf2-rolling flame\", \"mf3-detonation\", \"mf4-fire storm\", \"mf5-animate fire\"]\r\n};\r\nPsionicsList[\"mf1-combustion\"] = {\r\n\tname : \"Combustion\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d10/PP Fire dmg, on fire: 1d6 Fire dmg/rnd, it can 1 a to end; save half \\u0026 not on fire\",\r\n\tdescriptionFull : \"As an action, choose one creature or object you can see within 120 feet of you. The target must make a Constitution save. On a failed save, the target takes 1d10 fire damage per psi point spent, and it catches on fire, taking 1d6 fire damage at the end of each of its turns until your concentration ends or until it or a creature adjacent to it extinguishes the flames with an action. On a successful save, the target takes half as much damage and doesn't catch on fire.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf2-rolling flame\"] = {\r\n\tname : \"Rolling Flame\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"20-ft cube all 5 Fire damage and any that end their turn in it also 5 Fire damage\",\r\n\tdescriptionFull : \"As an action, you create fire in a 20-foot-by-20-foot cube within 5 feet of you. The fire lasts until your concentration ends. Any creature in that area when you use this ability and any creature that ends its turn there takes 5 fire damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf3-detonation\"] = {\r\n\tname : \"Detonation\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"20-ft rad all creatures save or 7d6 Fire damage and knocked prone; save halves and not prone\",\r\n\tsave : \"Con\",\r\n\tdescriptionFull : \"As an action, you create a fiery explosion at a point you can see within 120 feet of you. Each creature in a 20-foot-radius sphere centered on that point must make a Constitution saving throw, taking 7d6 fire damage and being knocked prone on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mf4-fire storm\"] = {\r\n\tname : \"Fire Storm\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"All creatures that end their turn within 5 ft of me take 3d6 Fire damage\",\r\n\tdescriptionFull : \"As a bonus action, you become wreathed in flames until your concentration ends. Any creature that end its turn within 5 feet of you takes 3d6 fire damage.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mf5-animate fire\"] = {\r\n\tname : \"Animate Fire\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a fire elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause a fire elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of force discipline\r\nPsionicsList[\"mastery of force-ua-psy\"] = {\r\n\tname : \"Mastery of Force\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Strength checks\",\r\n\tdescriptionFull : \"As a student of psionic power, you perceive the potential energy that flows through all things. You reach out with your mind, transforming the potential into the actual. Objects and creatures move at your command.\" + PsychicFocus + \". While focused on this discipline, you have advantage on Strength checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-push\", \"mf2-move\", \"mf3-inertial armor\", \"mf4-telekinetic barrier\", \"mf5-grasp\", \"mf6-crush (with grasp)\" , \"mf7-move (with grasp)\"]\r\n};\r\nPsionicsList[\"mf1-push\"] = {\r\n\tname : \"Push\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1d8/PP Force dmg and pushed 5 ft/PP straight away; save halves and not pushed\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Strength saving throw. On a failed save, it takes 1d8 force damage per psi point spent and is pushed up to 5 feet per point spent in a straight line away from you. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf2-move\"] = {\r\n\tname : \"Move\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Move obj 60 ft, after which it falls; crea under obj DC 10 save or 1d6+1d6/PP Bludg. dmg; see book\",\r\n\tdescriptionFull : \"Choose one object you can see within 60 feet of you that isn't being worn or carried by another creature and that isn't secured in place. It can't be larger than 20 feet on a side, and its maximum weight depends on the psi points spent on this ability, as shown below.\" + \"\\n   \" + \"As an action, you move the object up to 60 feet, and you must keep the object within sight during this movement. If the object ends this movement in the air, it falls. If the object would fall on a creature, the creature must succeed on a DC 10 Dexterity saving throw or take damage as listed on the table below.\\n\\n  \" + toUni(\"Psi\") + \"\\t\" + toUni(\"Maximum\") + \"    \" + toUni(\"Bludgeoning\") + \"\\n\" + toUni(\"Points\") + \"\\t \" + toUni(\"Weight\") + \"\\t        \" + toUni(\"Damage\") + \"\\n    2\\t     25 lbs.  \\t             2d6\" + \"\\n    3\\t     50 lbs.  \\t             4d6\" + \"\\n    5\\t   250 lbs.  \\t             6d6\" + \"\\n    6\\t   500 lbs.  \\t             7d6\" + \"\\n    7\\t 1000 lbs.  \\t             8d6\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"mf3-inertial armor\"] = {\r\n\tname : \"Inertial Armor\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"I gain AC 14 + Dex modifier and resistance to Force dmg if not wearing armor; ends if don armor\",\r\n\tdescriptionFull : \"As an action, you sheathe yourself in an intangible field of magical force. For 8 hours, your base AC is 14 + your Dexterity modifier, and you gain resistance to force damage. This effect ends if you are wearing or don armor.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf4-telekinetic barrier\"] = {\r\n\tname : \"Telekinetic Barrier\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"40-ft long, 10-ft high, 1-inch thick transparent wall of energy; each 10-ft section has AC 10 \\u0026 10 HP\",\r\n\tdescriptionFull : \"As an action, you create a transparent wall of telekinetic energy, at least one portion of which must be within 60 feet of you. The wall is 40 feet long, 10 feet high, and 1 inch thick. The wall lasts until your concentration ends. Each 10-foot section of the wall has an AC of 10 and 10 hit points.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf5-grasp\"] = {\r\n\tname : \"Grasp\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 crea save or grappled; escape Athl./Acro. vs. my spell atk +1/PP; if grappled I can Crush/Move\",\r\n\tsave : \"Str\",\r\n\tdescriptionFull : \"You attempt to grasp a creature in telekinetic energy and hold it captive. As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Strength saving throw or be grappled by you until your concentration ends or until the target leaves your reach, which is 60 feet for this grapple.\" + \"\\n   \" + \"The grappled target can escape by succeeding on a Strength (Athletics) or Dexterity (Acrobatics) check contested by your psionic ability plus your proficiency bonus. When a target attempts to escape in this way, you can spend psi points to boost your check, abiding by your psi limit. You gain a +1 bonus per psi point spent.\" + \"\\n   \" + \"While a target is grappled in this manner, you create one of the following effects as an action: \" + toUni(\"Crush\") + \" (1–7 psi) The target takes 1d6 bludgeoning damage per psi point spent.\" + toUni(\"Move\") + \" (1–7 psi) You move the target up to 5 feet per psi point spent. You can move it in the air and hold it there. It falls if the grapple ends.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf6-crush (with grasp)\"] = {\r\n\tname : \" - Crush (with Grasp)\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature grappled by Grasp takes 1d6/PP Bludgeoning damage\",\r\n\tdescriptionFull : \"While the target is grappled by Grasp from the Mastery of Force discipline, you can use Crush on it as an action:\" + \"\\n  \" + \"The target takes 1d6 bludgeoning damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf7-move (with grasp)\"] = {\r\n\tname : \" - Move (with Grasp)\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature grappled by Grasp moved up to 5 ft/PP; can hold it aloft, but it falls when grapple ends\",\r\n\tdescriptionFull : \"While the target is grappled by Grasp from the Mastery of Force discipline, you can use Move on it as an action:\" + \"\\n  \" + \"You move the target up to 5 feet per psi point spent. You can move it in the air and hold it there. It falls if the grapple ends.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\n//the mastery of ice discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of ice-ua-psy\"] = {\r\n\tname : \"Mastery of Ice\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Cold damage\",\r\n\tdescriptionFull : \"You master the power of ice, shaping it to meet you demands.\" + PsychicFocus + \"While focused on this discipline, you have resistance to cold damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mi1-ice spike\", \"mi2-ice sheet\", \"mi3-frozen sanctuary\", \"mi4-frozen rain\", \"mi5-ice barrier\"]\r\n};\r\nPsionicsList[\"mi1-ice spike\"] = {\r\n\tname : \"Ice Spike\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 creature save or 1d8/PP Cold damage and speed halved; save halves and normal speed\",\r\n\tdescriptionFull : \"As an action, you hurl a mote of ice at one creature you can see within 120 feet of you. The target must make a Dexterity saving throw. On a failed save, the target takes 1d8 cold damage per psi point spent and has its speed halved until the start of your next turn. On a successful save, the target takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mi2-ice sheet\"] = {\r\n\tname : \"Ice Sheet\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Create 20-ft rad of difficult terrain; crea move more than 10 ft save or prone; on slope slide to bottom\",\r\n\tdescriptionFull : \"As an action, choose a point on the ground you can see within 60 feet of you. The ground in a 20-foot radius centered on that point becomes covered in ice for 10 minutes. It is difficult terrain, and any creature that moves more than 10 feet on it must succeed on a Dexterity saving throw or fall prone. If the surface is sloped, a creature that falls prone in the area immediately slides to the bottom of the slope.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mi3-frozen sanctuary\"] = {\r\n\tname : \"Frozen Sanctuary\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I gain 20 temporary hit points\",\r\n\tdescriptionFull : \"As a bonus action, you sheathe yourself with icy resilience. You gain 20 temporary hit points.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mi4-frozen rain\"] = {\r\n\tname : \"Frozen Rain\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all 6d6(+1d6/extra PP) Cold dmg \\u0026 spd 0; save half \\u0026 no spd 0; 1 a Athl. vs DC for no spd 0\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 120 feet of you. The air in a 20-foot-radius sphere centered on that point becomes deathly cold and saturated with moisture. Each creature in that area must make a Constitution saving throw. On a failed save, a target takes 6d6 cold damage, and its speed is reduced to 0 until your concentration ends. On a successful save, a target takes half as much damage.\" + \"\\n   \" + \"As an action, a target that has its speed reduced can end the effect early if it succeeds on a Strength (Athletics) check with a DC equal to this effect's save DC.\" + \"\\n   \" + \"You can increase this effect's damage by 1d6 per each additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"mi5-ice barrier\"] = {\r\n\tname : \"Ice Barrier\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"60\\xD71\\xD715ft (l\\xD7w\\xD7h) wall; a 10-ft section has AC 12 & 30 HP; melee atks do same as Cold dmg back\",\r\n\tdescriptionMetric : \"20\\xD70,3\\xD75m (l\\xD7w\\xD7h) wall; a 3-m section has AC 12 & 30 hp; melee atks do same as Cold dmg back\",\r\n\tdescriptionFull : \"As an action, you create a wall of ice, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Each 10-foot section of the wall has AC 12 and 30 hit points. A creature that damages the wall with a melee attack takes cold damage equal to the damage the creature dealt to the wall.\",\r\n\tfirstCol : 6\r\n};\r\n//the mastery of light and darkness discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of light and darkness-ua-psy\"] = {\r\n\tname : \"Mastery of Light and Darkness\",\r\n\tnameShort : \"Mastery of Light \\u0026 Dark\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I can see through natural and magical darkness out to 30 ft\",\r\n\tdescriptionFull : \"You claim dominion over light and darkness with your mind.\" + PsychicFocus + \"While focused on this discipline, natural and magical darkness within 30 feet of you has no effect on your vision.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mld1-darkness\", \"mld2-light\", \"mld3-shadow beasts\", \"mld4-radiant beam\"]\r\n};\r\nPsionicsList[\"mld1-darkness\"] = {\r\n\tname : \"Darkness\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"10 ft/PP rad darkness from point; darkvision doesn't work; only magical light of SL 3 or higher works\",\r\n\tdescriptionFull : \"As an action, you create an area of magical darkness, which foils darkvision. Choose a spot you can see within 60 feet of you. Magical darkness radiates from that point in a sphere with a 10-foot radius per psi point spent on this ability. The light produced by spells of 2nd level or less is suppressed in this area.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mld2-light\"] = {\r\n\tname : \"Light\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea/obj save or sheds bright light 20-ft rad and dim light 20-ft, and can't hide, atks vs. it have adv.\",\r\n\tdescriptionFull : \"As an action, an object you touch radiates light in a 20-foot radius and dim light for an additional 20 feet. The light lasts until your concentration ends. Alternatively, a creature you touch radiates light in the same manner if it fails a Dexterity saving throw. While lit in this manner, it can't hide, and attack rolls against it gain advantage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mld3-shadow beasts\"] = {\r\n\tname : \"Shadow Beasts\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Summon 2 shadows that obeys my verbal commands; See Monster Manual, page 269\",\r\n\tdescriptionFull : \"As an action, you cause two shadows to appear in unoccupied spaces you can see within 60 feet of you. The shadows last until your concentration ends, and they obey your verbal commands. In combat, roll for their initiative, and choose their behavior during their turns. When this effect ends, the shadows disappear. See the Monster Manual for their stat block.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mld4-radiant beam\"] = {\r\n\tname : \"Radiant Beam\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 6d6(+1d6/extra PP) Radiant dmg, blinded, save each turn to end blind; save halves \\u0026 not blind\",\r\n\tdescriptionFull : \"As an action, you project a beam of light at one creature you can see within 60 feet of you. The target must make a Dexterity saving throw. On a failed save, it takes 6d6 radiant damage and is blinded until your concentration ends. On a successful save, it takes half as much damage. A blinded target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\" + \"\\n   \" + \"You can increase this effect's damage by 1d6 per each additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\n//the mastery of water discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of water-ua-psy\"] = {\r\n\tname : \"Mastery of Water\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a swimming speed equal to my walking speed and I can breathe underwater\",\r\n\tdescriptionFull : \"Your mind becomes one with elemental water, attuning your thoughts to its ebb and flow.\" + PsychicFocus + \"While focused on this discipline, you have a swimming speed equal to your walking speed, and you can breathe underwater.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mwa1-dessicate\", \"mwa2-watery grasp\", \"mwa3-water whip\", \"mwa4-water breathing\",\"mwa5-water sphere\",\"mwa6-animate water\"]\r\n};\r\nPsionicsList[\"mwa1-dessicate\"] = {\r\n\tname : \"Dessicate\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 creature 1d10/PP Necrotic damage; save halves\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Constitution saving throw, taking 1d10 necrotic damage per psi point spent on this ability, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mwa2-watery grasp\"] = {\r\n\tname : \"Watery Grasp\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft sq all save or 2d6(+1d6/extra PP) Bludg. dmg, prone, pulled 10 ft to me; save half \\u0026 not prone\",\r\n\tdescriptionFull : \"As an action, you unleash a wave that surges forth and then retreats to you like the rising tide. You create a wave in a 20-foot-by-20-foot square. At least some portion of the square's border must be within 5 feet of you. Any creature in that square must make a Strength saving throw. On a failed save, a target takes 2d6 bludgeoning damage, is knocked prone, and is pulled up to 10 feet closer to you. On a successful save, a target takes half as much damage. You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"mwa3-water whip\"] = {\r\n\tname : \"Water Whip\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"60\\xD75-ft (l\\xD7w) all 3d6(+1d6/extra PP) Bludg. dmg \\u0026 move to empty spot on line; save half \\u0026 no move\",\r\n\tdescriptionMetric : \"20\\xD71,5m (l\\xD7w) all 3d6(+1d6/extra PP) Bludg. dmg, move to empty spot on line; save half \\u0026 no move\",\r\n\tdescriptionFull : \"As an action, you unleash a jet of water in a line that is 60 feet long and 5 feet wide. Each creature in the line must make a Strength saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one. In addition, you can move each target that fails its saving throw to any unoccupied space touching the line. You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"mwa4-water breathing\"] = {\r\n\tname : \"Water Breathing\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Me and up to 10 willing creatures can breathe underwater for the duration\",\r\n\tdescriptionFull : \"As an action, you grant yourself and up to ten willing creatures you can see within 60 feet of you the ability to breathe underwater for the next 24 hours.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mwa5-water sphere\"] = {\r\n\tname : \"Water Sphere\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or half speed, dis. on atks, can see only 10 ft, atks vs. it also dis.; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you cause a sphere of water to form around a creature. Choose one creature you can see within 60 feet of you. The target must make a Dexterity saving throw. On a failed save, it becomes trapped in the sphere of water until your concentration ends. While the target is trapped, its speed is halved, it suffers disadvantage on attack rolls, and it can't see anything more than 10 feet away from it. However, attack rolls against it also suffer disadvantage. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a successful one.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mwa6-animate water\"] = {\r\n\tname : \"Animate Water\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a water elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause a water elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of weather discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of weather-ua-psy\"] = {\r\n\tname : \"Mastery of Weather\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Lightning and Thunder damage\",\r\n\tdescriptionFull : \"Your mind reaches into the sky, reshaping the stuff of storms to serve your needs.\" + PsychicFocus + \"While focused on this discipline, you have resistance to lightning and thunder damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mw1-cloud steps\", \"mw2-hungry lightning\", \"mw3-wall of clouds\", \"mw4-whirlwind\", \"mw5-lightning leap\", \"mw6-wall of thunder\", \"mw7-thunder clap\"]\r\n};\r\nPsionicsList[\"mw1-cloud steps\"] = {\r\n\tname : \"Cloud Steps\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"U summon a 10 ft by 10 ft spiral staircase, that reaches 20 ft/PP upward\",\r\n\tdescriptionFull : \"As an action, you conjure forth clouds to create a solid, translucent staircase that lasts until your concentration ends. The stairs form a spiral that fills a 10-foot-by-10-foot area and reaches upward 20 feet per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mw2-hungry lightning\"] = {\r\n\tname : \"Hungry Lightning\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 creature 1d8/PP Lightning damage; save halves; disadvantage on save if wearing heavy armor\",\r\n\tdescriptionFull : \"As an action, you lash out at one creature you can see within 60 feet of you with tendrils of lightning. The target must make a Dexterity saving throw, with disadvantage if it's wearing heavy armor. The target takes 1d8 lightning damage per psi point spent on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mw3-wall of clouds\"] = {\r\n\tname : \"Wall of Clouds\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I create a 60-ft long, 15-ft high, 1-ft thick wall of clouds that blocks vision; it must start in range\",\r\n\tdescriptionFull : \"As an action, you create a wall of clouds, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Creatures can pass through it without hindrance, but the wall blocks vision.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mw4-whirlwind\"] = {\r\n\tname : \"Whirlwind\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad all crea save or 1d6 Bludg. dmg & moved to chosen empty space in rad; obj moved as well\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Winds howl in a 20-foot-radius sphere centered on that point. Each creature in the sphere must succeed on a Strength saving throw or take 1d6 bludgeoning damage and be moved to an unoccupied space of your choice in the sphere. Any loose object in the sphere is moved to an unoccupied space of your choice within it if the object weighs no more than 100 pounds.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mw5-lightning leap\"] = {\r\n\tname : \"Lightning Leap\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"60-ft long 5-ft wide all 6d6(+1d6/extra PP) Lightning dmg; save halves; I teleport to spot on line\",\r\n\tdescriptionFull : \"As an action, you let loose a line of lightning that is 60 feet long and 5 feet wide. Each creature in the line must make a Dexterity saving throw, taking 6d6 lightning damage on a failed save, or half as much damage on a successful one. You can then teleport to an unoccupied space touched by the line.\" + \"\\n   \" + \"You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"mw6-wall of thunder\"] = {\r\n\tname : \"Wall of Thunder\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"60\\xD71\\xD715 ft (l\\xD7w\\xD7h) wall; diff. terr.; crea start/move in save or 6d6 Thunder dmg, push 30 ft, prone\",\r\n\tdescriptionMetric : \"20\\xD70,3\\xD75 m (l\\xD7w\\xD7h) wall; diff. terr.; crea start/move in save or 6d6 Thunder dmg, push 10m, prone\",\r\n\tdescriptionFull : \"As an action, you create a wall of thunder, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Every foot moved through the wall costs 1 extra foot of movement. When a creature moves into the wall's space for the first time on a turn or starts its turn there, that creature must succeed on a Strength saving throw, or it takes 6d6 thunder damage, is pushed in a straight line up to 30 feet away from the wall, and is knocked prone.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mw7-thunder clap\"] = {\r\n\tname : \"Thunder Clap\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all save or 8d6 Thunder dmg and stunned until my next turn ends; save halves \\u0026 no stun\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Thunder energy erupts in a 20-foot-radius sphere centered on that point. Each creature in that area must make Constitution saving throw. On a failed save, a target takes 8d6 thunder damage, and it is stunned until the end of your next turn. On a successful save, a target takes half as much damage.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of wood and earth discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of wood and earth-ua-psy\"] = {\r\n\tname : \"Mastery of Wood and Earth\",\r\n\tnameShort : \"Mastery of Wood \\u0026 Earth\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +1 bonus to AC\",\r\n\tdescriptionFull : \"You attune your mind to seize control of wood and earth.\" + PsychicFocus + \"While focused on this discipline, you have a +1 bonus to AC.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mwe1-animate weapon\", \"mwe2-warp weapon\", \"mwe3-warp armor\", \"mwe4-wall of wood\", \"mwe5-armored form\", \"mwe6-animate earth\"]\r\n};\r\nPsionicsList[\"mwe1-animate weapon\"] = {\r\n\tname : \"Animate Weapon\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea attacked by my 1-handed melee wea; use discipline score for atk/dmg; +1d10/PP Force dmg\",\r\n\tdescriptionFull : \"As an action, your mind seizes control of a one-handed melee weapon you're holding. The weapon flies toward one creature you can see within 30 feet of you and makes a one-handed melee weapon attack against it, using your discipline attack modifier for the attack and damage rolls. On a hit, the weapon deals its normal damage, plus an extra 1d10 force damage per psi point spent on this ability. The weapon returns to your grasp after it attacks.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mwe2-warp weapon\"] = {\r\n\tname : \"Warp Weapon\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1 chosen nonmagical wea it is holding can't be used to attack until my next turn ends\",\r\n\tdescriptionFull : \"As an action, choose one nonmagical weapon held by one creature you can see within 60 feet of you. That creature must succeed on a Strength saving throw, or the chosen weapon can't be used to attack until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mwe3-warp armor\"] = {\r\n\tname : \"Warp Armor\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea wearing a nonmagical armor save or have AC 10 + its Dex modifier until my next turn ends\",\r\n\tdescriptionFull : \"As an action, choose a nonmagical suit of armor worn by one creature you can see within 60 feet of you. That creature must succeed on a Constitution saving throw, or the creature's AC becomes 10 + its Dexterity modifier until the end of your next turn.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mwe4-wall of wood\"] = {\r\n\tname : \"Wall of Wood\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Create 60-ft long, 15-ft high, 1-ft thick wall of solid wood; each 5-ft section has AC 12 and 100 HP\",\r\n\tdescriptionFull : \"As an action, you create a wall of wood at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Each 5-foot wide section of the wall has AC 12 and 100 hit points. Breaking one section creates a 5-foot by 5-foot hole in it, but the wall otherwise remains intact.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mwe5-armored form\"] = {\r\n\tname : \"Armored Form\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain resistance to Bludgeoning, Piercing, and Slashing damage\",\r\n\tdescriptionFull : \"As a bonus action, you gain resistance to bludgeoning, piercing, and slashing damage, which lasts until your concentration ends.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mwe6-animate earth\"] = {\r\n\tname : \"Animate Earth\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon an earth elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause an earth elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic arrow discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic arrow-ua-psy\"] = {\r\n\tname : \"Nomadic Arrow\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My ranged weapon attacks ignore disadvantage, but can't get adv. if it was subject to dis.\",\r\n\tdescriptionFull : \"You imbue a ranged weapon with a strange semblance of sentience, allowing it to unerringly find its mark.\" + PsychicFocus + \"While you are focused on this discipline, any attack roll you make for a ranged weapon attack ignores disadvantage. If disadvantage would normally apply to the roll, that roll also can't benefit from advantage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"na1-speed dart\", \"na2-seeking missile\", \"na3-faithful archer\"]\r\n};\r\nPsionicsList[\"na1-speed dart\"] = {\r\n\tname : \"Speed Dart\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"1 ranged weapon gains psionic power; next hit with it deals +1d10/PP Psychic damage\",\r\n\tdescriptionFull : \"As a bonus action, you imbue one ranged weapon you hold with psionic power. The next attack you make with it that hits before the end of the current turn deals an extra 1d10 psychic damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"na2-seeking missile\"] = {\r\n\tname : \"Seeking Missile\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you miss with a ranged weapon attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"When I miss with a ranged attack, I can reroll the attack roll against the same target\",\r\n\tdescriptionFull : \"As a reaction when you miss with a ranged weapon attack, you can repeat the attack roll against the same target.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"na3-faithful archer\"] = {\r\n\tname : \"Faithful Archer\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 ranged weapon gains sentience; free attack with it at the start of each turn; thrown weapons return\",\r\n\tdescriptionFull : \"As a bonus action, you imbue a ranged weapon with a limited sentience. Until your concentration ends, you can make an extra attack with the weapon at the start of each of your turns (no action required). If it is a thrown weapon, it returns to your grasp each time you make any attack with it.\",\r\n\tfirstCol : 5\r\n};\r\n//the nomadic chameleon discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic chameleon-ua-psy\"] = {\r\n\tname : \"Nomadic Chameleon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Dexterity (Stealth) checks\",\r\n\tdescriptionFull : \"You create a screen of psychic power that distorts your appearance, allowing you to blend into the background or even turn invisible.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Dexterity (Stealth) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"nc1-chameleon\", \"nc2-step from sight\", \"nc3-enduring invisibility\"]\r\n};\r\nPsionicsList[\"nc1-chameleon\"] = {\r\n\tname : \"Chameleon\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I can hide, regardless of requirements; at end of turn, remain hidden only if requirements are met\",\r\n\tdescriptionFull : \"As an action, you can attempt to hide even if you fail to meet the requirements needed to do so. At the end of the current turn, you remain hidden only if you then meet the normal requirements for hiding.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"nc2-step from sight\"] = {\r\n\tname : \"Step from Sight\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I (+1 crea/extra PP) become invisible; attacking/targeting/affecting other crea makes a crea visible\",\r\n\tdescriptionFull : \"As a bonus action, cloak yourself from sight. You can target one additional creature for every additional psi point you spend on this ability. The added targets must be visible to you and within 60 feet of you.\" + \"\\n   \" + \"Each target turns invisible and remains so until your concentration ends or until immediately after it targets, damages, or otherwise affects any creature with an attack, a spell, or another ability.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"nc3-enduring invisibility\"] = {\r\n\tname : \"Enduring Invisibility\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I turn invisible for the duration\",\r\n\tdescriptionFull : \"As a bonus action, you turn invisible and remain so until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic mind discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic mind-ua-psy\"] = {\r\n\tname : \"Nomadic Mind\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain proficiency with one skill, tool, or language\",\r\n\tdescriptionFull : \"You dispatch part of your psyche into the noosphere, the collective vista of minds and knowledge possessed by living things.\" + PsychicFocus + \"Whenever you focus on this discipline, you choose one skill or tool and have proficiency with it until your focus ends. Alternatively, you gain the ability to read and write one language of your choice until your focus ends.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"nm1-wandering mind\", \"nm2-find creature\", \"nm3-item lore\", \"nm4-psychic speech\", \"nm5-wandering eye\", \"nm6-phasing eye\"]\r\n};\r\nPsionicsList[\"nm1-wandering mind\"] = {\r\n\tname : \"Wandering Mind\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"10 min\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"Gain prof. with 1 skill/2PP: Animal Hand., History, Medicine, Nature, Performance, Religion, Survival\",\r\n\tdescriptionFull : \"You enter a deep contemplation. If you concentrate for this option's full duration, you then gain proficiency with up to three of the following skills (one skill for every 2 psi points spent): Animal Handling, Arcana, History, Medicine, Nature, Performance, Religion, and Survival. The benefit lasts for 1 hour, no concentration required.\",\r\n\tfirstCol : \"2-6\"\r\n};\r\nPsionicsList[\"nm2-find creature\"] = {\r\n\tname : \"Find Creature\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 h\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn general location of a creature, within 1-3 miles; if it's on other plane, learn which plane instead\",\r\n\tdescriptionFull : \"You cast your mind about for information about a specific creature. If you concentrate for this option's full duration, you then gain a general understanding of the creature's current location. You learn the region, city, town, village, or district where it is, pinpointing an area between 1 and 3 miles on a side (DM's choice). If the creature is on another plane of existence, you instead learn which plane.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"nm3-item lore\"] = {\r\n\tname : \"Item Lore\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 h\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 magical item or magic-imbued crea/obj; learn properties, how to use, and spells affecting it\",\r\n\tdescriptionFull : \"You carefully study an item. If you concentrate for this option's full duration while remaining within 5 feet of the item, you then gain the benefits of an identify spell cast on that item.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"nm4-psychic speech\"] = {\r\n\tname : \"Psychic Speech\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"I understand all spoken/written languages and all with a language can understand what I say\",\r\n\tdescriptionFull : \"As an action, you attune your mind to the psychic imprint of all language. For 1 hour, you gain the ability to understand any language you hear or attempt to read. In addition, when you speak, all creatures that can understand a language understand what you say, regardless of what language you use.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"nm5-wandering eye\"] = {\r\n\tname : \"Wandering Eye\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : 'Create invisible, moving (unlimited range, 30ft/rnd) 1\" magic eye with darkvision I see through',\r\n\tdescription : \"Create invisible, moving (unlimited range, 10m/rnd) 2,5cm magic eye /w darkvision I see through\",\r\n\tdescriptionFull : \"As an action, you create a psychic sensor within 60 feet of you. The sensor lasts until your concentration ends. The sensor is invisible and hovers in the air. You mentally receive visual information from it, which has normal vision and darkvision with a range of 60 feet. The sensor can look in all directions. As an action, you can move the sensor up to 30 feet in any direction. There is no limit to how far away from you the eye can move, but it can't enter another plane of existence. A solid barrier blocks the eye's movement, but the eye can pass through an opening as small as 1 inch in diameter.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"nm6-phasing eye\"] = {\r\n\tname : \"Phasing Eye\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"As Wandering Eye above, except the eye can move through objects but can't end its movement in one\",\r\n\tdescriptionFull : \"As Wandering Eye above, except the eye can move through solid objects but can't end its movement in one. If it does so, the effect immediately ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic step discipline (contributed by Justin W.)\r\nPsionicsList[\"nomadic step-ua-psy\"] = {\r\n\tname : \"Nomadic Step\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"1/turn; after I teleport, increase speed by 10 ft until end of my turn\",\r\n\tdescriptionFull : \"You exert your mind on the area around you, twisting the intraplanar pathways you perceive to allow instantaneous travel.\" + PsychicFocus + \"After you teleport on your turn while focused on this discipline, your walking speed increases by 10 feet until the end of the turn, as you are propelled by the magic of your teleportation. You can receive this increase only once per turn.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ns1-step of a dozen paces\", \"ns2-nomadic anchor\", \"ns3-defensive step\", \"ns4-there and back again\", \"ns5-transposition\", \"ns6-baleful transposition\", \"ns7-phantom caravan\", \"ns8-nomad's gate\"]\r\n};\r\nPsionicsList[\"ns1-step of a dozen paces\"] = {\r\n\tname : \"Step of a Dozen Paces\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I teleport up to 20 ft/PP to where I can see, instead of moving this turn; only if not moved yet\",\r\n\tdescriptionFull : \"If you haven't moved yet on your turn, you take a bonus action to teleport up to 20 feet per psi point spent to an unoccupied space you can see, and your speed is reduced to 0 until the end of the turn.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ns2-nomadic anchor\"] = {\r\n\tname : \"Nomadic Anchor\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"Create 5-ft cu teleport anchor; any teleport from this discipline can go to it if within range\",\r\n\tdescriptionFull : \"As an action, you create an invisible, intangible teleportation anchor in a 5-foot cube you can see within 120 feet of you. For the next 8 hours, whenever you use this psionic discipline to teleport, you can instead teleport to the anchor, even if you can't see it, but it must be within range of the teleportation ability.\",\r\n\tfirstCol : 1\r\n};\r\nPsionicsList[\"ns3-defensive step\"] = {\r\n\tname : \"Defensive Step\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"When hit by an attack, I gain +4 AC, and then teleport 10 ft to a space I can see\",\r\n\tdescriptionFull : \"When you are hit by an attack, you can use your reaction to gain a +4 bonus to AC against that attack, possibly turning it into a miss. You then teleport up to 10 feet to an unoccupied space you can see.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ns4-there and back again\"] = {\r\n\tname : \"There and Back Again\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"End of Turn\",\r\n\tdescription : \"I teleport 20 ft and move half my speed; I may teleport back to starting spot at end of my turn\",\r\n\tdescriptionFull : \"As a bonus action, you teleport up to 20 feet to an unoccupied space you can see and then move up to half your speed. At the end of your turn, you can teleport back to the spot you occupied before teleporting, unless it is now occupied or on a different plane of existence.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ns5-transposition\"] = {\r\n\tname : \"Transposition\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Willing creature and I teleport, swapping places, instead of moving this turn; only if not moved yet\",\r\n\tdescriptionFull : \"If you haven't moved yet on your turn, choose an ally you can see within 60 feet of you. As a bonus action, you and that creature teleport, swapping places, and your speed is reduced to 0 until the end of the turn. This ability fails and is wasted if either of you can't fit in the destination space.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ns6-baleful transposition\"] = {\r\n\tname : \"Baleful Transposition\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 creature save or it and I teleport, swapping places\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 120 feet of you. That creature must make a Wisdom saving throw. On a failed save, you and that creature teleport, swapping places. This ability fails and is wasted if either of you can't fit in the destination space.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ns7-phantom caravan\"] = {\r\n\tname : \"Phantom Caravan\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Me and up to 6 willing creatures teleport up to 1 mile to a spot I can see\",\r\n\tdescriptionFull : \"As an action, you and up to six willing creatures of your choice that you can see within 60 feet of you teleport up to 1 mile to a spot you can see. If there isn't an open space for all the targets to occupy at the arrival point, this ability fails and is wasted.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"ns8-nomad's gate\"] = {\r\n\tname : \"Nomad's Gate\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Create a 5-ft cu in range, and another up to 1 mile away; anyone entering one, teleports to the other\",\r\n\tdescriptionFull : \"As an action, you create a 5-foot cube of dim, gray light within 5 feet of you. You create an identical cube at any point of your choice within 1 mile that you have viewed within the past 24 hours. Until your concentration ends, anyone entering one of the cubes immediately teleports to the other one, appearing in an unoccupied space next to it. The teleportation fails if there is no space for the creature to appear in.\",\r\n\tfirstCol : 7\r\n};\r\n//the precognition discipline (contributed by Justin W.)\r\nPsionicsList[\"precognition-ua-psy\"] = {\r\n\tname : \"Precognition\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advangage on initiative rolls\",\r\n\tdescriptionFull : \"By analyzing information around you, from subtle hints to seemingly disconnected facts, you learn to weave a string of probabilities in an instant that gives you extraordinary insights.\" + PsychicFocus + \"While focused on this discipline, you have advantage on initiative rolls.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"p1-precognitive hunch\", \"p2-all-around sight\", \"p3-danger sense\", \"p4-victory before battle\"]\r\n};\r\nPsionicsList[\"p1-precognitive hunch\"] = {\r\n\tname : \"Precognitive Hunch\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I add 1d4 to attack rolls, saving throws, and ability checks\",\r\n\tdescriptionFull : \"As a bonus action, you open yourself to receive momentary insights that improve your odds of success; until your concentration ends, whenever you make an attack roll, a saving throw, or an ability check, you roll a d4 and add it to the total.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"p2-all-around sight\"] = {\r\n\tname : \"All-Around Sight\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"After an attack hits me, impose disadvantage on that attack roll\",\r\n\tdescriptionFull : \"In response to an attack hitting you, you use your reaction to impose disadvantage on that attack roll, possibly causing it to miss.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"p3-danger sense\"] = {\r\n\tname : \"Danger Sense\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 8 h\",\r\n\tdescription : \"I gain +10 on the initiative roll, can't be surprised, and attacks against me can't gain advantage\",\r\n\tdescriptionFull : \"As an action, you create a psychic model of reality in your mind and set it to show you a few seconds into the future. Until your concentration ends, you can't be surprised, attack rolls against you can't gain advantage, and you gain a +10 bonus to initiative.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"p4-victory before battle\"] = {\r\n\tname : \"Victory Before Battle\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"\",\r\n\trange : \"60-ft rad\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use when rolling initiative; grant myself and up to 5 creatures +10 on the initiative roll\",\r\n\tdescriptionFull : \"When you roll initiative, you can use this ability to grant yourself and up to five creatures of your choice within 60 feet of you a +10 bonus to initiative.\",\r\n\tfirstCol : 7\r\n};\r\n//the psionic restoration discipline (contributed by Justin W.)\r\nPsionicsList[\"psionic restoration-ua-psy\"] = {\r\n\tname : \"Psionic Restoration\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"While focused, I can touch a creature with 0 HP as a bonus action and stabilize it\",\r\n\tdescriptionFull : \"You wield psionic energy to cure wounds and restore health to yourself and others.\" + PsychicFocus + \"While focused on this discipline, you can use a bonus action to touch a creature that has 0 hit points and stabilize it.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pr1-mend wounds\", \"pr2-restore health\", \"pr3-restore life\", \"pr4-restore vigor\"]\r\n};\r\nPsionicsList[\"pr1-mend wounds\"] = {\r\n\tname : \"Mend Wounds\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature is healed for 1d8/PP HP\",\r\n\tdescriptionFull : \"As an action, you can spend psi points to restore hit points to one creature you touch. The creature regains 1d8 hit points per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pr2-restore health\"] = {\r\n\tname : \"Restore Health\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature is cured of either blindness, deafness, paralysis, poison, or 1 disease\",\r\n\tdescriptionFull : \"As an action, you touch one creature and remove one of the following conditions from it: blinded, deafened, paralyzed, or poisoned. Alternatively, you remove one disease from the creature.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pr3-restore life\"] = {\r\n\tname : \"Restore Life\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Resurrects 1 crea that has died in last minute to 1 HP, if not missing vital body parts or died of old age\",\r\n\tdescriptionFull : \"As an action, you touch one creature that has died within the last minute. The creature returns to life with 1 hit point. This ability can't return to life a creature that has died of old age, nor can it restore a creature missing any vital body parts.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pr4-restore vigor\"] = {\r\n\tname : \"Restore Vigor\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea removes either 1 ability score reduction, 1 HP max reduction effect, or 1 level of exhaustion\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and choose one of the following: remove any reductions to one of its ability scores, remove one effect that reduces its hit point maximum, or reduce its exhaustion level by one.\",\r\n\tfirstCol : 7\r\n};\r\n//the psionic weapon discipline (contributed by Justin W.)\r\nPsionicsList[\"psionic weapon-ua-psy\"] = {\r\n\tname : \"Psionic Weapon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"1 weapon or unarmed strike does Psychic dmg and counts as magical; no Str or Dex to dmg until CL6\",\r\n\tdescriptionFull : \"You have learned how to channel psionic energy into your attacks, lending them devastating power.\" + PsychicFocus + \"Whenever you focus on this discipline, choose one weapon you're holding or your unarmed strike. When you attack with it while focused on this discipline, its damage is psychic and magical, rather than its normal damage type. Until you reach 6th level as a mystic, you don't add your Strength or Dexterity modifier to the psychic attack's damage rolls.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pw1-ethereal weapon\", \"pw2-lethal strike\", \"pw3-augmented weapon\"]\r\n};\r\nPsionicsList[\"pw1-ethereal weapon\"] = {\r\n\tname : \"Ethereal Weapon\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"1 crea save or auto hit by my next wea/unarmed atk; save halves atk dmg \\u0026 negates any side-effects\",\r\n\tdescriptionFull : \"As a bonus action, you temporarily transform one weapon you're holding or your unarmed strike into pure psionic energy. The next attack you make with it before the end of your turn ignores the target's armor, requiring no attack roll. Instead, the target makes a Dexterity saving throw against this discipline. On a failed save, the target takes the attack's normal damage and suffers its additional effects. On a successful save, the target takes half damage from the attack but suffers no additional effects that would normally be imposed on a hit.\",\r\n\tfirstCol : 1\r\n};\r\nPsionicsList[\"pw2-lethal strike\"] = {\r\n\tname : \"Lethal Strike\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"My next weapon or unarmed attack that hits does +1d10/PP Psychic damage\",\r\n\tdescriptionFull : \"As a bonus action, you imbue a weapon you're holding or your unarmed strike with psychic energy. The next time you hit with it before the end of your turn, it deals an extra 1d10 psychic damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pw3-augmented weapon\"] = {\r\n\tname : \"Augmented Weapon\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"1 weapon becomes a magic weapon with a +3 bonus to its attack and damage rolls\",\r\n\tdescriptionFull : \"As a bonus action, touch one simple or martial weapon. Until your concentration ends, that weapon becomes a magic weapon with a +3 bonus to its attack and damage rolls.\",\r\n\tfirstCol : 5\r\n};\r\n//the psychic assault discipline\r\nPsionicsList[\"psychic assault-ua-psy\"] = {\r\n\tname : \"Psychic Assault\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +2 bonus to damage rolls with psionic talents that deal Psychic damage\",\r\n\tdescriptionFull : \"You wield your mind like a weapon, unleashing salvos of psionic energy.\" + PsychicFocus + \"While focused on this discipline, you gain a +2 bonus to damage rolls with psionic talents that deal psychic damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pa1-psionic blast\", \"pa2-ego whip\", \"pa3-id insinuation\", \"pa4-psychic blast\", \"pa5-psychic crush\"]\r\n};\r\nPsionicsList[\"pa1-psionic blast\"] = {\r\n\tname : \"Psionic Blast\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature takes 1d8/PP Psychic damage\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target takes 1d8 psychic damage per psi point spent on this ability.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pa2-ego whip\"] = {\r\n\tname : \"Ego Whip\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 3d8 Psychic dmg, next turn just Dodge/Disengage/Hide action; save half \\u0026 act normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, the creature takes 3d8 psychic damage, and it is filled with self-doubt, leaving it able to use its action on its next turn only to take the Dodge, Disengage, or Hide action. On a successful saving throw, it takes half as much damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pa3-id insinuation\"] = {\r\n\tname : \"Id Insinuation\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 5d8 Psychic dmg, next turn only Dodge/Attack action; save halves \\u0026 act normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, the creature takes 5d8 psychic damage, and it goes into a fury, as its id runs rampant. On its next turn, it can use its action only to take the Dodge or Attack action. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pa4-psychic blast\"] = {\r\n\tname : \"Psychic Blast\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft cone\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"All creatures 8d8(+2d8/extra PP) Psychic dmg; save halves\",\r\n\tdescriptionFull : \"As an action, you unleash devastating psychic energy in a 60-foot cone. Each creature in that area must make an Intelligence saving throw, taking 8d8 psychic damage on a failed save, or half as much damage on a successful one. You can increase the damage by 2d8 if you spend 1 more psi point on this ability.\",\r\n\tfirstCol : \"6-7\"\r\n};\r\nPsionicsList[\"pa5-psychic crush\"] = {\r\n\tname : \"Psychic Crush\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"20-ft cu all crea save or 8d8 Psychic dmg \\u0026 stunned until my next turn ends; save halves \\u0026 no stun\",\r\n\tdescriptionFull : \"As an action, you create a 20-foot cube of psychic energy within 120 feet of you. Each creature in that area must make an Intelligence saving throw. On a failed save, a target takes 8d8 psychic damage and is stunned until the end of your next turn. On a successful save, a target takes half as much damage.\",\r\n\tfirstCol : 7\r\n};\r\n//the psychic disruption discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic disruption-ua-psy\"] = {\r\n\tname : \"Psychic Disruption\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I have advantage on Charisma (Deception) checks\",\r\n\tdescriptionFull : \"You create psychic static that disrupts other creatures' ability to think clearly.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Deception) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pd1-distracting haze\", \"pd2-daze\", \"pd3-mind storm\"]\r\n};\r\nPsionicsList[\"pd1-distracting haze\"] = {\r\n\tname : \"Distracting Haze\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, can't see more than 10 ft; save halves and see normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. That creature must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and can't see anything more than 10 feet from it until your concentration ends. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pd2-daze\"] = {\r\n\tname : \"Daze\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or incapacitated until end of my next turn or it takes any damage\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. That creature must make an Intelligence saving throw. On a failed save, the target is incapacitated until the end of your next turn or until it takes any damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pd3-mind storm\"] = {\r\n\tname : \"Mind Storm\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"20-ft rad all crea 6d8(+1d6/extra PP) Psychic dmg and dis. on saves; save halves and no dis. on saves\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Each creature in a 20-foot-radius sphere centered on that point must make a Wisdom saving throw. On a failed save, a target takes 6d8 psychic damage and suffers disadvantage on all saving throws until the end of your next turn. On a successful save, a creature takes half as much damage. You can increase the damage by 1d6 per additional psi point spent on this ability.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\n//the psychic inquisition discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic inquisition-ua-psy\"] = {\r\n\tname : \"Psychic Inquisition\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I know when a creature telepathically communicating with me is lying\",\r\n\tdescriptionFull : \"You reach into a creature's mind to uncover information or plant ideas within it.\" + PsychicFocus + \"While focused on this discipline, you know when a creature communicating with you via telepathy is lying.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pi1-hammer of inquisition\", \"pi2-forceful query\", \"pi3-ransack mind\", \"pi4-phantom idea\"]\r\n};\r\nPsionicsList[\"pi1-hammer of inquisition\"] = {\r\n\tname : \"Hammer of Inquisition\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, dis. next Wis save before my next turn; save halves \\u0026 no effects\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and suffers disadvantage on its next Wisdom saving throw before the end of your next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pi2-forceful query\"] = {\r\n\tname : \"Forceful Query\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or they must truthfully answer a yes or no question (charm effect)\",\r\n\tdescriptionFull : \"As an action, you ask a question of one creature that can see and hear you within 30 feet of you. The question must be phrased so that it can be answered with a yes or no, otherwise this ability fails. The target must succeed on a Wisdom saving throw, or it replies with a truthful answer. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"pi3-ransack mind\"] = {\r\n\tname : \"Ransack Mind\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 h\",\r\n\trange : \"30 ft\",\r\n\tduration : \"12/24/48 h\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 3 saves if in range for full duration; learn key memories from 12/24/48 h (1/2/3 failed saves)\",\r\n\tdescriptionFull : \"While you concentrate on this ability, you probe one creature's mind. The creature must remain within 30 feet of you, and you must be able to see it. If you reach the ability's full duration, the target must make three Intelligence saving throws, and you learn information from it based on the number of saving throws it fails.\" + \"\\n   \" + \"With one failed saving throw, you learn its key memories from the past 12 hours.\" + \"\\n   \" + \"With two failed saving throws, you learn its key memories from the past 24 hours.\" + \"\\n   \" + \"With three failed saving throws, you learn its key memories from the past 48 hours.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pi4-phantom idea\"] = {\r\n\tname : \"Phantom Idea\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 h\",\r\n\trange : \"30 ft\",\r\n\tduration : \"4/24/48 h\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 3 saves if in range for full duration; implant memory lasting 4/24/48 h (1/2/3 failed saves)\",\r\n\tdescriptionFull : \"While you concentrate on this ability, you probe one creature's mind. The creature must remain within 30 feet of you, and you must be able to see it. If you reach the ability's full duration, the target must make three Intelligence saving throws, and you plant a memory or an idea in it, which lasts for a number of hours based on the number of saving throws it fails. You choose whether the idea or memory is trivial (such as “I had porridge for breakfast” or “Ale is the worst”) or personality-defining (“I failed to save my village from orc marauders and am therefore a coward” or “Magic is a scourge, so I renounce it”).\" + \"\\n   \" + \"With one failed saving throw, the idea or memory lasts for the next 4 hours. With two failed saving throws, it lasts for 24 hours. With three failed saving throws, it lasts for 48 hours.\",\r\n\tfirstCol : 6\r\n};\r\n//the psychic phantoms discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic phantoms-ua-psy\"] = {\r\n\tname : \"Psychic Phantoms\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Deception) checks\",\r\n\tdescriptionFull : \"Your power reaches into a creature's mind and causes it false perceptions.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Deception) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pp1-distracting figment\", \"pp2-phantom foe\", \"pp3-phantom betrayal\", \"pp4-phantom riches\"]\r\n};\r\nPsionicsList[\"pp1-distracting figment\"] = {\r\n\tname : \"Distracting Figment\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, can't use rea, melee atks vs. it have adv.; save halves \\u0026 no effects\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and thinks it perceives a threatening creature just out of its sight; until the end of your next turn, it can't use reactions, and melee attack rolls against it have advantage. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pp2-phantom foe\"] = {\r\n\tname : \"Phantom Foe\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or no rea and 1d8(+1d8/extra PP) Psychic dmg at start its turn; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it perceives a horrid creature adjacent to it until your concentration ends. During this time, the target can't take reactions, and it takes 1d8 psychic damage at the start of each of its turns. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. You can increase the damage by 1d8 for each additional psi point spent on the ability.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"pp3-phantom betrayal\"] = {\r\n\tname : \"Phantom Betrayal\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or targets its allies with attacks/damaging effects; save at end of each turn (charm effect)\",\r\n\tdescriptionFull : \"As an action, you plant delusional paranoia in a creature's mind. Choose one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or until your concentration ends, it must target its allies with attacks and other damaging effects. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pp4-phantom riches\"] = {\r\n\tname : \"Phantom Riches\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I move it and it can't act if not taking dmg since last turn; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you plant the phantom of a greatly desired object in a creature's mind. Choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, you gain partial control over the target's behavior until your concentration ends; the target moves as you wish on each of its turns, as it thinks it pursues the phantom object it desires. If it hasn't taken damage since its last turn, it can use its action only to admire the object you created in its perception. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the telepathic contact discipline (contributed by Justin W.)\r\nPsionicsList[\"telepathic contact-ua-psy\"] = {\r\n\tname : \"Telepathic Contact\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Use telepathy class feature with up to 6 crea; If no telepathy feature, gain telepathy 120 ft instead\",\r\n\tdescriptionFull : \"By channeling psionic power, you gain the ability to control other creatures by substituting your will for their own.\" + PsychicFocus + \"While focused on this discipline, you gain the ability to use your Telepathy class feature with up to six creatures at once. If you don't have that feature from the mystic class, you instead gain it while focused on this discipline.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"tc1-exacting query\", \"tc2-occluded mind\", \"tc3-broken will\", \"tc4-psychic grip\", \"tc5-psychic domination\"]\r\n};\r\nPsionicsList[\"tc1-exacting query\"] = {\r\n\tname : \"Exacting Query\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or answer 1 telepathically asked question; on save, target is immune until my long rest\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, the target truthfully answers one question you ask it via telepathy. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"tc2-occluded mind\"] = {\r\n\tname : \"Occluded Mind\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"5 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or believes telepathic statement; on save, target immune until my long rest (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, the target believes one statement of your choice for the next 5 minutes that you communicate to it via telepathy. The statement can be up to ten words long, and it must describe you or a creature or an object the target can see. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"tc3-broken will\"] = {\r\n\tname : \"Broken Will\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I control it on its next turn; on save, target immune until my long rest (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, you choose the target's movement and action on its next turn. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"tc4-psychic grip\"] = {\r\n\tname : \"Psychic Grip\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or paralyzed; save at end of each turn, on failure I use rea to have it move half its speed\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or it is paralyzed until your concentration ends. At the end of each of its turns, it can repeat the saving throw. On a success, this effect ends. On a failure, you can use your reaction to force the target to move up to half its speed, even though it's paralyzed.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"tc5-psychic domination\"] = {\r\n\tname : \"Psychic Domination\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I direct its actions and move on its turns; save at end of each turn (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or you choose the creature's actions and movement on its turns until your concentration ends. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 7\r\n};\r\n//the third eye discipline (contributed by Justin W.)\r\nPsionicsList[\"third eye-ua-psy\"] = {\r\n\tname : \"Third Eye\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain darkvision 60 ft; if already darkvision of 60 ft or more, increase range by 10 ft instead\",\r\n\tdescriptionFull : \"You create a third, psychic eye in your mind which you cast out into the world. It channels thoughts and knowledge back to you, greatly enhancing your senses.\" + PsychicFocus + \"While focused on this discipline, you have darkvision with a range of 60 feet. If you already have darkvision with that range or greater, increase its range by 10 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"te1-tremorsense\", \"te2-unwavering eye\", \"te3-piercing sight\", \"te4-truesight\"]\r\n};\r\nPsionicsList[\"te1-tremorsense\"] = {\r\n\tname : \"Tremorsense\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain tremorsense with a radius of 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain tremorsense with a radius of 30 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"te2-unwavering eye\"] = {\r\n\tname : \"Unwavering Eye\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"I gain advantage on Wisdom checks\",\r\n\tdescriptionFull : \"As a bonus action, you gain advantage on Wisdom checks for 1 minute\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"te3-piercing sight\"] = {\r\n\tname : \"Piercing Sight\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I see through objects that are up to 1 ft thick within 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain the ability to see through objects that are up to 1 foot thick within 30 feet of you. This sight lasts until your concentration ends.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"te4-truesight\"] = {\r\n\tname : \"Truesight\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain truesight with a radius of 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain truesight with a radius of 30 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\n\r\n// Psionic Discipline 'Mastery of Force' power 'Inertial Armour'\r\nArmourList[\"inertial armor-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*(inertial|psychic|psionic))(?=.*armou?r).*$/i,\r\n\tname : \"Inertial armor\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tac : 14,\r\n\tlist : \"magic\"\r\n};\r\n\r\n// Psionic Talents that work like damage cantrips\r\nWeaponsList[\"energy beam-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\benergy\\b)(?=.*\\bbeam\\b).*$/i,\r\n\tname : \"Energy Beam\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"My choice\"],\r\n\trange : \"90 ft\",\r\n\tdescription : \"Dex save, success - no damage; Acid, cold, fire, lightning, or thunder damage [my choice]\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"mind slam-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bmind\\b)(?=.*\\bslam\\b).*$/i,\r\n\tname : \"Mind Slam\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - Large or smaller target also knocked prone\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"mind thrust-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bmind\\b)(?=.*\\bthrust\\b).*$/i,\r\n\tname : \"Mind Thrust\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"psychic\"],\r\n\trange : \"120 ft\",\r\n\tdescription : \"Int save, success - no damage\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"psychic hammer-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bpsychic\\b)(?=.*\\bhammer\\b).*$/i,\r\n\tname : \"Psychic Hammer\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"120 ft\",\r\n\tdescription : \"Str save, success - no damage, fail - also move 10 ft in chosen direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\n// ua_20170320_Wizard-Revisited.js\n// This file adds the content from the Unearthed Arcana: Wizard Revisited article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:WR\"] = {\n\tname : \"Unearthed Arcana: Wizard Revisited\",\n\tabbreviation : \"UA:WR\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2017/dnd/downloads/MJ320UAWizardVF2017.pdf\",\n\tdate : \"2017/03/20\"\n};\n\n// Adds 1 new subclass for the Wizard (with contributions by erickrause)\nAddSubClass(\"wizard\", \"war magic-ua\", {\n\tregExpSearch : /^(?=.*war)(?=.*(magic|mage)).*$/i,\n\tsubname : \"War Magic\",\n\tsource : [[\"UA:WR\", 2]],\n\tfullname : \"War Mage\",\n\tfeatures : {\n\t\t\"subclassfeature2\" : { //has to be identical to a feature named in the ClassList\n\t\t\tname : \"Arcane Deflection\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when I'm hit by an attack, I can gain +2 to my AC against that attack\",\n\t\t\t\t\"As a reaction when I fail a Con save, I can gain +4 bonus to that saving throw\",\n\t\t\t\t\"After I do either, I can't cast spells other than cantrips until the end of my next turn\"\n\t\t\t]),\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Tactical Wit\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"\n\t\t\t]),\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Power Surge\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When multiple targets have to save vs. one of my spells, I can have it do more damage\",\n\t\t\t\t\"On the turn I cast the spell, I can roll 2 additional damage dice for it\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\"\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Durable Magic\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"While I'm maintaining concentration on a spell, I gain +2 to AC and all saving throws\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Deflecting Shroud\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I use my Arcane Deflection feature, magical energy arcs from me\",\n\t\t\t\t\"Any creatures of my choice within 10 ft of me take half my level in force damage\"\n\t\t\t]),\n\t\t\tadditional : levels.map( function(n) { return n < 14 ? \"\" : Math.floor(n/2) + \" force damage\"; })\n\t\t}\n\t}\n});\n\n// ua_20170327_A Trio-of-Subclasses.js\r\n// This file adds the content from the Unearthed Arcana: A Trio of Subclasses article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:AToS\"] = {\r\n\tname : \"Unearthed Arcana: A Trio of Subclasses\",\r\n\tabbreviation : \"UA:AToS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UAThreeSubclasses.pdf\",\r\n\tdate : \"2017/03/27\"\r\n};\r\n\r\n// Adds three subclass: 1 for the Monk, 1 for the Paladin, and 1 for the Ranger\r\nAddSubClass(\"monk\", \"way of the drunken master-ua\", {\r\n\tregExpSearch : /^((?=.*drunken)(?=.*master))|((?=.*drunk)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Drunken Master\",\r\n\tsubnameShort: \"Drunken Master\",\r\n\tfullname : \"Drunken Master\",\r\n\tsource : [[\"UA:AToS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Drunken Technique\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the Performance skill\",\r\n\t\t\t\t\"When using Flurry of Blows, I gain the benefits of a Disengage and +10 ft speed this turn\"\r\n\t\t\t]),\r\n\t\t\tskills : [\"Performance\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Tipsy Sway\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction when missed in melee, attacker instead hits another I can see within 5 ft\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drunkard's Luck\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Before I roll for a save, I can spend 1 ki to give myself advantage on it\"),\r\n\t\t\tadditional : \"1 ki point\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Intoxicated Frenzy\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I can make 3 extra attacks with Flurry of Blows if each is used on a different target\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of redemption-ua\", {\r\n\tregExpSearch : /^((?=.*redeemer)|((?=.*redemption)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Redemption\",\r\n\tsubnameShort: \"Redemption\",\r\n\tsource : [[\"UA:AToS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Armor of Peace\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When not wearing armor or wielding a shield, my AC is 16 + my Dexterity modifier\"),\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*armou?r)(?=.*peace).*$/i,\r\n\t\t\t\tname : \"Armor of Peace\",\r\n\t\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\t\tac : 16,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"shield\", \"sleep\", \"hold person\", \"ray of enfeeblement\", \"counterspell\", \"hypnotic pattern\", \"otiluke's resilient sphere\", \"stoneskin\", \"hold monster\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Emissary of Peace\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, I gain +5 to my next Charisma (Persuasion) check in the next min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Channel Divinity: Rebuke the Violent\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile within 10 ft damages another in melee, I can rebuke it\",\r\n\t\t\t\t\"It takes the same damage as it dealt but as radiant damage, with a Wis save to halve it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.3\" : {\r\n\t\t\tname : \"Warrior of Reconciliation\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can charm a creature when I reduce it to 0 HP with a simple, bludgeoning weapon\",\r\n\t\t\t\t\"It is peaceful, docile and only does what I command it to, but it can't cause harm\",\r\n\t\t\t\t\"For 1 min, until I'm incap., or I or allies attack it or have it save; after it is unconscious\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Guardian\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when an ally within 10 ft takes damage, I instead take the damage\",\r\n\t\t\t\t\"This damage can't be reduced in any way; Other effects might still apply to my ally\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Protective Spirit\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"At the end of my turn when I'm below half HP and not incapacitated, I regain HP\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"1d6+\" + Math.floor(n/2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Emissary of Redemption\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When taking damage from a creature, I take only half and it takes the other half\",\r\n\t\t\t\t\"This stops working on any that I attack or force to make a save, until I have a long rest\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"All from creatures\"]\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Monster Slayer subclass to both the normal and Revised Ranger (if it is defined)\r\nvar UAAToS_rangerSubclassMonsterSlayerUA = AddSubClass(\"ranger\", \"monster slayer-ua\", {\r\n\tregExpSearch : /^(?=.*monster)(?=.*slayer).*$/i,\r\n\tsubname : \"Monster Slayer\",\r\n\tsource : [[\"UA:AToS\", 3]],\r\n\tfullname : \"Monster Slayer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Slayer's Mysticism\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"zone of truth\", \"magic circle\", \"banishment\", \"planar binding\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Slayer's Eye\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can study a creature within 120 ft that I can see\",\r\n\t\t\t\t\"I learn its vulnerabilities, immunities, resistances, and the effects damaging it can have\",\r\n\t\t\t\t\"My first weapon hit on it each turn does +1d6 damage, until I study another or rest\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Supernatural Defense\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add 1d6 to saves I make against abilities of the current target of my Slayer's Eye\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Relentless Slayer\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, I can stop the target of my Slayer's Eye from escaping, if within 30 ft\",\r\n\t\t\t\t\"If I win a contested Wis check, it wastes it action to teleport/transform/plane shift\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Slayer's Counter\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when the target of my Slayer's Eye has me make a save, I can attack it\",\r\n\t\t\t\t\"I can make one weapon attack; If this hits, I automatically succeed on the saving throw\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UAAToS_rangerSubclassMonsterSlayerUA); };\r\n\n// ua_20170403_Starter-Spells.js\r\n// This file adds the content from the Unearthed Arcana: Starter Spells article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SS\"] = {\r\n\tname : \"Unearthed Arcana: Starter Spells\",\r\n\tabbreviation : \"UA:SS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-Starter-Spells.pdf\",\r\n\tdate : \"2017/04/03\"\r\n};\r\n\r\n/*\tAdds 17 spells of lower levels to all class' spell lists\r\n\t\r\n\tThis code was contributed by SoilentBrad\r\n*/\r\nSpellsList[\"cause fear-uass\"] = {\r\n\tname : \"Cause Fear\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or frightened; crea disadvantage on save if 25 HP or less; no effect on undead/constructs\",\r\n\tdescriptionFull : \"You awaken the sense of mortality in one creature you can see within range. The target must succeed on a Wisdom saving throw or become frightened for the duration. A target with 25 hit points or fewer makes the saving throw with disadvantage. The spell has no effect on constructs or undead.\"\r\n};\r\nSpellsList[\"ceremony-uass\"] = {\r\n\tname : \"Ceremony\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"25 gp worth of powdered silver\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Perform religious ceremony on target(s) that are within 10 ft throughout the casting; see book (25gp)\",\r\n\tdescriptionFull : \"You perform one of several religious ceremonies. When you cast the spell, choose one of the following ceremonies, the target of which must be within 10 feet of you throughout the casting.\" + \"\\n   \" + toUni(\"Atonement\") + \": You touch one willing creature whose alignment has changed, and you make a DC 20 Wisdom (Insight) check. On a success, you restore the target to its original alignment.\" + \"\\n   \" + toUni(\"Bless Water\") + \": You touch one vial of water and cause it to become holy water.\" + \"\\n   \" + toUni(\"Coming of Age\") + \": You touch one humanoid old enough to be a young adult. For the next 24 hours, whenever the target makes an ability check, it can roll a d4 and add the number rolled to the ability check. A creature can benefit from this ceremony just once.\" + \"\\n   \" + toUni(\"Dedication\") + \": You touch one humanoid who would willingly convert to your religion or who wishes to be dedicated to your god's service. For the next 24 hours, whenever the target makes a saving throw, it can roll a d4 and add the number rolled to the save. A creature can benefit from this ceremony just once.\" + \"\\n   \" + toUni(\"Funeral Rite\") + \": You bless one corpse within 5 feet of you. For the next 24 hours, the target can't become undead by any means short of a wish spell.\" + \"\\n   \" + toUni(\"Investiture\") + \": You touch one willing humanoid. Choose one 1st-level spell you have prepared and expend a spell slot and any material components as if you were casting that spell. The spell has no effect. Instead, the target can cast this spell once without having to expend a spell slot or use material components. If the target doesn't cast the spell within 1 hour, the invested spell is lost.\" + \"\\n   \" + toUni(\"Marriage\") + \": You touch adult humanoids willing to be bonded together in marriage. For the next 24 hours, each target gains a +2 bonus to AC and saving throws while they are within 30 feet of each other. A creature can benefit from this ceremony just once.\"\r\n};\r\nSpellsList[\"chaos bolt-uass\"] = {\r\n\tname : \"Chaos Bolt\",\r\n\tclasses : [\"sorcerer\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell atk 2d8+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft of target\",\r\n\tdescriptionFull : \"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 damage. Choose one of the d8s. The number it rolled determines the type of damage, as shown below.\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Damage Type\") + \"\\n  1\\tAcid\" + \"\\n  2\\tCold\" + \"\\n  3\\tFire\" + \"\\n  4\\tForce\" + \"\\n  5\\tLightning\" + \"\\n  6\\tPoison\" + \"\\n  7\\tPsychic\" + \"\\n  8\\tThunder\" + \"\\n\\n   \" + \"If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\" + \"\\n   \" + \"A creature can be targeted only once by this mass of chaotic energy.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, each target takes extra damage of the type rolled. The extra damage equals 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"guiding hand-uass\"] = {\r\n\tname : \"Guiding Hand\",\r\n\tclasses : [\"bard\", \"cleric\", \"druid\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 8 h\",\r\n\tdescription : \"Tiny incorporeal hand directs me to one major landmark I name that is on the same plane\",\r\n\tdescriptionFull : \"You create a Tiny incorporeal hand of shimmering light in an unoccupied space you can see within range. The hand exists for the duration, but it disappears if you teleport or you travel to a different plane of existence.\" + \"\\n   \" + \"When the hand appears, you name one major landmark, such as a city, mountain, castle, or battlefield on the same plane of existence as you. Someone in history must have visited the site and mapped it. If the landmark appears on no map in existence, the spell fails. Otherwise, whenever you move toward the hand, it moves away from you at the same speed you moved, and it moves in the direction of the landmark, always remaining 5 feet away from you.\" + \"\\n   \" + \"If you don't move toward the hand, it remains in place until you do and beckons for you to follow once every 1d4 minutes.\"\r\n};\r\nSpellsList[\"hand of radiance-uass\"] = {\r\n\tname : \"Hand of Radiance\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any creatures I can see in 5-ft radius save or 1d6 Radiant damage; +1d6 damage at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Any creatures I can see in 5-ft radius save or `CD`d6 Radiant damage\",\r\n\tdescriptionFull : \"You raise your hand, and burning radiance erupts from it. Each creature of your choice that you can see within 5 feet of you must succeed on a Constitution saving throw or take 1d6 radiant damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"healing elixir-uass\"] = {\r\n\tname : \"Healing Elixir\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Alchemist's supplies\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Make vial with alchemist's supplies; heals 2d4+2 HP as an action; if not used, disappears after 24 h\",\r\n\tdescriptionShorter : \"Make vial with alchemist's supplies; 1 a to heal 2d4+2 HP; if not used, disappears after 24 h\",\r\n\tdescriptionFull : \"You create a healing elixir in a simple vial that appears in your hand. The elixir retains its potency for the duration or until it's consumed, at which point the vial vanishes.\" + \"\\n   \" + \"As an action, a creature can drink the elixir or administer it to another creature. The drinker regains 2d4 + 2 hit points.\"\r\n};\r\nSpellsList[\"infestation-uass\"] = {\r\n\tname : \"Infestation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A living flea\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Piercing damage and moved 5 ft in random direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Piercing damage and moved 5 ft in random direction\",\r\n\tdescriptionFull : \"You cause mites, fleas, and other parasites to appear momentarily on one creature you can see within range. The target must succeed on a Constitution saving throw or take 1d6 piercing damage. If the target takes any of that damage, the target moves 5 feet in a random direction. Roll a d8 for the direction:\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Direction\") + \"\\n  1\\tNorth\" + \"\\n  2\\tNortheast\" + \"\\n  3\\tEast\" + \"\\n  4\\tSoutheast\" + \"\\n  5\\tSouth\" + \"\\n  6\\tSouthwest\" + \"\\n  7\\tWest\" + \"\\n  8\\tNorthwest\" + \"\\n\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"primal savagery-uass\"] = {\r\n\tname : \"Primal Savagery\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack deals 1d10 Piercing or Slashing dmg (my choice); +1d10 at CL 5, 11, and 17\",\r\n\tdescription : \"Melee spell attack deals `CD`d10 Piercing or Slashing dmg (my choice)\",\r\n\tdescriptionFull : \"Your teeth or fingernails lengthen and sharpen. You choose which. Make a melee spell attack against one creature within 5 feet of you. On a hit, the target takes 1d10 piercing or slashing damage (your choice). After you make the attack, your teeth or fingernails return to normal.\" + \"\\n   \" + \"The spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nSpellsList[\"puppet-uass\"] = {\r\n\tname : \"Puppet\",\r\n\tclasses : [\"bard\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 humanoid save or move its speed to where I choose and drop held items, if chosen (charm effect)\",\r\n\tdescriptionFull : \"Your gesture forces one humanoid you can see within range to make a Constitution saving throw. On a failed save, the target must move up to its speed in a direction you choose. In addition, you can cause the target to drop whatever it is holding. This spell has no effect on a humanoid that is immune to being charmed.\"\r\n};\r\nSpellsList[\"sense emotion-uass\"] = {\r\n\tname : \"Sense Emotion\",\r\n\tclasses : [\"bard\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Now and as 1 a for duration, sense emotion of humanoid in range; sense calm if not humanoid/charm\",\r\n\tdescriptionFull : \"You attune your senses to pick up the emotions of others for the duration. When you cast the spell, and as your action on each turn until the spell ends, you can focus your senses on one humanoid you can see within 30 feet of you. You instantly learn the target's prevailing emotion, whether it's love, anger, pain, fear, calm, or something else. If the target isn't actually humanoid or it is immune to being charmed, you sense that it is calm.\"\r\n};\r\nSpellsList[\"snare-uass\"] = {\r\n\tname : \"Snare\",\r\n\tclasses : [\"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"30 feet of cord or rope, which is consumed by the spell\",\r\n\tduration : \"Dispel/trigger\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft rad magical trap; Int (Inv) to see; save or restrained upside down 3 ft in the air; save/rnd at dis\",\r\n\tdescriptionFull : \"While you cast this spell, you use the cord or rope to create a circle with a 5-foot radius on a flat surface within your reach. When you finish casting, the cord or rope disappears to become a magical trap.\" + \"\\n   \" + \"The trap is nearly invisible and requires a successful Intelligence (Investigation) check against your spell save DC to be found.\" + \"\\n   \" + \"The trap triggers when a Small creature or larger moves into the area protected by the spell. The triggering creature must succeed on a Dexterity saving throw or fall prone and be hoisted into the air until it hangs upside down 3 feet above the protected surface, where it is restrained.\" + \"\\n   \" + \"The restrained creature can make a Dexterity saving throw with disadvantage at the end of each of its turns and ends the restrained effect on a success. Alternatively, another creature that can reach the restrained creature can use an action to make an Intelligence (Arcana) check against your spell save DC. On a success, the restrained effect also ends.\"\r\n};\r\nSpellsList[\"sudden awakening-uass\"] = {\r\n\tname : \"Sudden Awakening\",\r\n\tclasses : [\"bard\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Any creatures within range awaken and can then stand up from prone without expending movement\",\r\n\tdescriptionFull : \"Each sleeping creature you choose within range awakens, and then each prone creature within range can stand up without expending any movement.\"\r\n};\r\nSpellsList[\"unearthly chorus-uass\"] = {\r\n\tname : \"Unearthly Chorus\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"Use bns a to make 1 crea in range save or be friendly for 1 h; I adv on Cha (Performance) checks\",\r\n\tdescriptionFull : \"Music of a style you choose fills the air around you in a 30-foot radius. The music spreads around corners and can be heard from up to 100 feet away. The music moves with you, centered on you for the duration.\" + \"\\n   \" + \"Until the spell ends, you make Charisma (Performance) checks with advantage. In addition, you can use a bonus action on each of your turns to beguile one creature you choose within 30 feet of you that can see you and hear the music. The creature must make a Charisma saving throw. If you or your companions are attacking it, the creature automatically succeeds on the saving throw. On a failure, the creature becomes friendly to you for as long as it can hear the music and for 1 hour thereafter. You make Charisma (Deception) checks and Charisma (Persuasion) checks against creatures made friendly by this spell with advantage.\"\r\n};\r\nSpellsList[\"virtue-uass\"] = {\r\n\tname : \"Virtue\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tlevel : 0,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"1 creature that has at least 1 HP gets 1d4 + spellcasting ability modifier in temporary hit points\",\r\n\tdescriptionFull : \"You touch one creature, imbuing it with vitality. If the target has at least 1 hit point, it gains a number of temporary hit points equal to 1d4 + your spellcasting ability modifier. The temporary hit points are lost when the spell ends.\"\r\n};\r\nSpellsList[\"wild cunning-uass\"] = {\r\n\tname : \"Wild Cunning\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Call spirits of nature to aid me with finding food, drink, tracks, shelter, or camping; see book\",\r\n\tdescriptionFull : \"You call out to the spirits of nature to aid you. When you cast this spell, choose one of the following effects:\" + \"\\n  \\u2022 \" + \"If there are any tracks on the ground within range, you know where they are, and you make Wisdom (Survival) checks to follow these tracks with advantage for 1 hour or until you cast this spell again.\" + \"\\n  \\u2022 \" + \"If there is edible forage within range, you know it and where to find it.\" + \"\\n  \\u2022 \" + \"If there is clean drinking water within range, you know it and where to find it.\" + \"\\n  \\u2022 \" + \"If there is suitable shelter for you and your companions with range, you know it and where to find.\" + \"\\n  \\u2022 \" + \"Send the spirits to bring back wood for a fire and to set up a campsite in the area using your supplies. The spirits build the fire in a circle of stones, put up tents, unroll bedrolls, and put out any rations and water for consumption.\" + \"\\n  \\u2022 \" + \"Have the spirits instantly break down a campsite, which includes putting out a fire, taking down tents, packing up bags, and burying any rubbish.\"\r\n};\r\nSpellsList[\"zephyr strike-uass\"] = { // clarification: https://twitter.com/JeremyECrawford/status/849302527069884416\r\n\tname : \"Zephyr Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Moving doesn't provoke opportunity atks; next wea atk has adv and gives +30 ft speed for that turn\",\r\n\tdescriptionFull : \"You move like the wind. For the duration, your movement doesn't provoke opportunity attacks.\" + \"\\n   \" + \"In addition, the first time you make a weapon attack on your turn before the spell ends, you make the attack roll with advantage, and your speed increases by 30 feet until the end of that turn.\"\r\n};\r\n\r\n// Weapons (attack cantrips)\r\nWeaponsList[\"hand of radiance-uass\"] = {\r\n\tregExpSearch : /^(?=.*hand)(?=.*radiance).*$/i,\r\n\tname : \"Hand of Radiance\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"radiant\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; Only chosen creatures I can see are affected\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"infestation-uass\"] = {\r\n\tregExpSearch : /infestation/i,\r\n\tname : \"Infestation\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"piercing\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - target also moved 5 ft in random direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"primal savagery-uass\"] = {\r\n\tregExpSearch : /^(?=.*primal)(?=.*savagery).*$/i,\r\n\tname : \"Primal Savagery\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"piercing\"],\r\n\trange : \"Melee (5 ft)\",\r\n\tdescription : \"Does either Piercing or Slashing damage (my choice)\",\r\n\tabilitytodamage : false\r\n};\r\n\n// ua_20170417_Feats-for-Skills.js\r\n// This file adds the content from the Unearthed Arcana: Feats for Skills article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FS\"] = {\r\n\tname : \"Unearthed Arcana: Feats for Skills\",\r\n\tabbreviation : \"UA:FS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-SkillFeats.pdf\",\r\n\tdate : \"2017/04/17\"\r\n};\r\n\r\n// Add 18 feats, corresponding with the 18 skills\r\nFeatsList[\"acrobat-ua\"] = {\r\n\tname : \"Acrobat\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You become more nimble, gaining the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Acrobatics skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 As a bonus action, you can make a DC 15 Dexterity (Acrobatics) check. If you succeed, difficult terrain doesn't cost you extra movement until the end of the current turn.\",\r\n\tdescription : \"I gain expertise with Acrobatics, or proficiency if not so already. As a bonus action, I can make a DC 15 Dexterity (Acrobatics) check to have difficult terrain not cost me extra movement for this turn. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Acrobatics\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"animal handler-ua\"] = {\r\n\tname : \"Animal Handler\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You master the techniques needed to train and handle animals. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Animal Handling skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can use a bonus action on your turn to command one friendly beast within 60 feet of you that can hear you and that isn't currently following the command of someone else. You decide now what action the beast will take and where it will move during its next turn, or you issue a general command that lasts for 1 minute, such as to guard a particular area.\",\r\n\tdescription : \"I gain expertise with Animal Handling, or proficiency if not so already. As a bonus action, I can command a friendly beast not under another's command within 60 ft. If it hears me, I decide its next turn or give a general command lasting for 1 minute. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Animal Handling\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"arcanist-ua\"] = {\r\n\tname : \"Arcanist\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You study the arcane arts, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Arcana skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Prestidigitation and Detect Magic spells. You can cast detect magic once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Arcana, or proficiency if not so already. I learn the Prestidigitation cantrip. I can cast Detect Magic without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Arcana\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Arcanist\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"prestidigitation\"],\r\n\t\tselection : [\"prestidigitation\"],\r\n\t}, {\r\n\t\tname : \"Arcanist (1x long rest)\",\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"brawny-ua\"] = {\r\n\tname : \"Brawny\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You become stronger, gaining the following benefits:\\n \\u2022 Increase your Strength score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Athletics skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You count as if you were one size larger for the purpose of determining your carrying capacity.\",\r\n\tdescription : \"I gain expertise with Athletics, or proficiency if not so already. I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift. [+1 Strength]\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\tskills : [[\"Athletics\", \"increment\"]],\r\n\tcarryingCapacity : 2\r\n};\r\nFeatsList[\"diplomat-ua\"] = {\r\n\tname : \"Diplomat\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You master the arts of diplomacy, gaining the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Persuasion skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you spend 1 minute talking to someone who can understand what you say, you can make a Charisma (Persuasion) check contested by the creature's Wisdom (Insight) check. If you or your companions are fighting the creature, your check automatically fails. If your check succeeds, the target is charmed by you as long as it remains within 60 feet of you and for 1 minute thereafter.\",\r\n\tdescription : \"I gain expertise with Persuasion, or proficiency if not so already. With a one minute long conversation outside of combat, I can make a Persuasion vs. its Insight. If successful, it is charmed by me as long as it remains within 60 ft and 1 minute after that [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Persuasion\", \"increment\"]]\r\n};\r\nFeatsList[\"empathic-ua\"] = {\r\n\tname : \"Empathic\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You possess keen insight into how other people think and feel. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Insight skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can use your action to try to get uncanny insight about one humanoid you can see within 30 feet of you. Make a Wisdom (Insight) check contested by the target's Charisma (Deception) check. If your check succeeds, you have advantage on attack rolls and ability checks against the target until the end of your next turn.\",\r\n\tdescription : \"I gain expertise with Insight, or proficiency if not so already. As an action, a humanoid within 30 ft I can see must make its Deception vs. my Insight or I gain advantage on attacks and ability checks against it until the end of my next turn. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Insight\", \"increment\"]]\r\n};\r\nFeatsList[\"historian-ua\"] = {\r\n\tname : \"Historian\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"Your study of history rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the History skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Help action to aid another creature's ability check, you can make a DC 15 Intelligence (History) check. On a success, that creature's check gains a bonus equal to your proficiency bonus, as you share pertinent advice and historical examples. To receive this bonus, the creature must be able to understand what you're saying.\",\r\n\tdescription : \"I gain expertise with History, or proficiency if not so already. When I use the Help action to help a creature that can understand me with an ability check, I can make a DC 15 Int (History) check to give a bonus equal to my proficiency bonus. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"History\", \"increment\"]],\r\n\taction : [[\"action\", \"\"]]\r\n};\r\nFeatsList[\"investigator-ua\"] = {\r\n\tname : \"Investigator\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You have an eye for detail and can pick out the smallest clues. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Investigation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can take the Search action as a bonus action.\",\r\n\tdescription : \"I gain expertise with Investigation, or proficiency if not so already. As a bonus action, I can take the Search action. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Investigation\", \"increment\"]],\r\n\taction : [[\"bonus action\", \" (Search)\"]]\r\n};\r\nFeatsList[\"medic-ua\"] = {\r\n\tname : \"Medic\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You master the physician's arts, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Medicine skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 During a short rest, you can clean and bind the wounds of up to six willing beasts and humanoids. Make a DC 15 Wisdom (Medicine) check for each creature. On a success, if a creature spends a Hit Die during this rest, that creature can forgo the roll and instead regain the maximum number of hit points the die can restore. A creature can do so only once per rest, regardless of how many Hit Dice it spends.\",\r\n\tdescription : \"I gain expertise with Medicine, or proficiency if not so already. During a short rest, I can attend to the wounds of up to 6 creatures. With a DC 15 Wis (Medicine) check for each creature, that target gets the maximum result on one of its HD that it uses. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Medicine\", \"increment\"]]\r\n};\r\nFeatsList[\"menacing-ua\"] = {\r\n\tname : \"Menacing\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You become fearsome to others, gaining the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Intimidation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Attack action on your turn, you can replace one attack with an attempt to demoralize one humanoid you can see within 30 feet of you that can see and hear you. Make a Charisma (Intimidation) check contested by the target's Wisdom (Insight) check. If your check succeeds, the target is frightened until the end of your next turn. If your check fails, the target can't be frightened by you in this way for 1 hour.\",\r\n\tdescription : \"I gain expertise with Intimidation, or proficiency if not so already. Instead of 1 attack in my Attack action, a humanoid within 30 ft I can see and that can see and hear me must make its Insight vs. my Intimidation or be frightened until end of my next turn. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Intimidation\", \"increment\"]]\r\n};\r\nFeatsList[\"naturalist-ua\"] = {\r\n\tname : \"Naturalist\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"Your extensive study of nature rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Nature skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Druidcraft and Detect Poison and Disease spells. You can cast Detect Poison and Disease once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Nature, or proficiency if not so already. I learn the Druidcraft cantrip. I can cast Detect Poison and Disease without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Nature\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Naturalist\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t}, {\r\n\t\tname : \"Naturalist (1x long rest)\",\r\n\t\tspells : [\"detect poison and disease\"],\r\n\t\tselection : [\"detect poison and disease\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"perceptive-ua\"] = {\r\n\tname : \"Perceptive\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You hone your senses until they become razor sharp. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Perception skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 Being in a lightly obscured area doesn't impose disadvantage on your Wisdom (Perception) checks if you can both see and hear.\",\r\n\tdescription : \"I gain expertise with Perception, or proficiency if not so already. I don't have disadvantage on my Perception checks from being in a lightly obscured area (dim light), provided that I can still both see and hear. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Perception\", \"increment\"]],\r\n\tvision : [[\"No disadv. on Perception in lightly obscured or dim light\", 0]]\r\n};\r\nFeatsList[\"performer-ua\"] = {\r\n\tname : \"Performer\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You master performance so that you can command any stage. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Performance skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 While performing, you can try to distract one humanoid you can see who can see and hear you. Make a Charisma (Performance) check contested by the humanoid's Wisdom (Insight) check. If your check succeeds, you grab the humanoid's attention enough that it makes Wisdom (Perception) and Intelligence (Investigation) checks with disadvantage until you stop performing.\",\r\n\tdescription : \"I gain expertise with Performance, or proficiency if not so already. While performing, I can distract one humanoid. It must make its Insight vs. my Performance or have disadv. on its Perception and Investigation checks until I stop performing. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Performance\", \"increment\"]]\r\n};\r\nFeatsList[\"quick-fingered-ua\"] = {\r\n\tname : \"Quick-Fingered\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"Your nimble fingers and agility let you perform sleight of hand. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Sleight of Hand skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 As a bonus action, you can make a Dexterity (Sleight of Hand) check to plant something on someone else, conceal an object on a creature, lift a purse, or take something from a pocket.\",\r\n\tdescription : \"I gain expertise with Sleight of Hand, or proficiency if not so already. As a bonus action, I can make a Dexterity (Sleight of Hand) check to plant something on someone else, conceal an object on a creature, lift a purse, or take something from a pocket. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Sleight of Hand\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"silver-tongued-ua\"] = {\r\n\tname : \"Silver-Tongued\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You develop your conversational skill to better deceive others. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Deception skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Attack action on your turn, you can replace one attack with an attempt to deceive one humanoid you can see within 30 feet of you that can see and hear you. Make a Charisma (Deception) check contested by the target's Wisdom (Insight) check. If your check succeeds, your movement doesn't provoke opportunity attacks from the target and your attack rolls against it have advantage; both benefits last until the end of your next turn or until you use this ability on a different target. If your check fails, the target can't be deceived by you in this way for 1 hour.\",\r\n\tdescription : \"I gain expertise with Deception, or proficiency if not so already. Instead of 1 attack in my Attack action, a humanoid within 30 ft makes its Insight vs. my Deception or until end of my next turn, I gain adv. on attacks and don't provoke its opportunity attacks. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Deception\", \"increment\"]]\r\n};\r\nFeatsList[\"stealthy-ua\"] = {\r\n\tname : \"Stealthy\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"You know how best to hide. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Stealth skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you are hidden, you can move up to 10 feet in the open without revealing yourself if you end the move in a position where you're not clearly visible.\",\r\n\tdescription : \"I gain expertise with Stealth, or proficiency if not so already. When I'm hidden, I can move 10 ft to another position without revealing myself, provided that I won't be clearly visible in this new position either. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Stealth\", \"increment\"]]\r\n};\r\nFeatsList[\"survivalist-ua\"] = {\r\n\tname : \"Survivalist\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"You master wilderness lore, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Survival skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Alarm spell. You can cast it once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Survival, or proficiency if not so already. I can cast Alarm without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Survival\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1x long rest\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tspells : [\"alarm\"],\r\n\t\tselection : [\"alarm\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"theologian-ua\"] = {\r\n\tname : \"Theologian\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"Your extensive study of religion rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Religion skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Thaumaturgy and Detect Evil and Good spells. You can cast Detect Evil and Good once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Religion, or proficiency if not so already. I learn the Thaumaturgy cantrip. I can cast Detect Evil and Good without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Religion\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Theologian\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t}, {\r\n\t\tname : \"Theologian (1x long rest)\",\r\n\t\tspells : [\"detect evil and good\"],\r\n\t\tselection : [\"detect evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\n\n// ua_20170424_Feats-for-Races.js\r\n// This file adds the content from the Unearthed Arcana: Feats for Races article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FR\"] = {\r\n\tname : \"Unearthed Arcana: Feats for Races\",\r\n\tabbreviation : \"UA:FR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/RJSJC2017_04UASkillFeats_24v10.pdf\",\r\n\tdate : \"2017/04/24\"\r\n};\r\n\r\n// Adds 46 feats (23 + 13 variants of Grudge-Bearer), all of which have a racial prerequisite\r\nFeatsList[\"barbed hide-ua\"] = {\r\n\tname : \"Barbed Hide\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"One of your ancestors was a barbed devil or other spiky fiend. Barbs protrude from your head. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 As a bonus action, you can cause small barbs to protrude all over your body or cause them to retract. At the start of each of your turns while the barbs are out, you deal 1d6 piercing damage to any creature grappling you or any creature grappled by you.\\n \\u2022 You gain proficiency in the Intimidation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\",\r\n\tdescription : \"I gain expertise with Intimidation, or proficiency if not so already. As a bonus action, I can protrude/retract small barbs from my skin. With them out, at the start of each of my turns I deal 1d6 piercing damage to any I'm grappling or are grappling me. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Intimidation\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"bountiful luck-ua\"] = {\r\n\tname : \"Bountiful Luck\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Whenever an ally you can see within 30 feet of you rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, you can use your reaction to let the ally reroll the die. The ally must use the new roll.\",\r\n\tdescription : \"Whenever an ally I can see within 30 feet of me rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, I can use my reaction to let the ally reroll the die. The ally must use the new roll.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"critter friend-ua\"] = {\r\n\tname : \"Critter Friend\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Forest Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('forest gnome') !== -1; },\r\n\tdescriptionFull : \"Your friendship with animals mystically deepens. You gain the following benefits:\\n \\u2022 You gain proficiency in the Animal Handling skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Speak with Animals spell and can cast it at will, without expending a spell slot. You also learn the Animal Friendship spell, and you can cast it once with this feat, without expending a spell slot. You regain the ability to cast it in this way when you finish a long rest. Intelligence is your spellcasting ability for these spells.\",\r\n\tdescription : \"I gain expertise with Animal Handling, or proficiency if I didn't have that already. I can cast Speak With Animals and Animal Friendship without using a spell slot. I can cast each of these spells like this once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\tskills : [[\"Animal Handling\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per long rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"speak with animals\"],\r\n\t\tselection : [\"speak with animals\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"animal friendship\"],\r\n\t\tselection : [\"animal friendship\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dragon fear-ua\"] = {\r\n\tname : \"Dragon Fear\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"When angered, you radiate menace. You gain the following benefits:\\n \\u2022 Increase your Strength or Charisma score by 1, to a maximum of 20.\\n \\u2022 Instead of exhaling destructive energy, you can roar and expend a use of your breath weapon to force each creature of your choice within 30 feet of you to make a Wisdom saving throw (DC 8 + your proficiency bonus + your Charisma modifier). A target automatically succeeds if it can't hear or see you. On a failed save, a target becomes frightened for 1 minute. If the frightened target takes any damage, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tcalculate : \"event.value = 'I can expend a Breath Weapon use to roar instead. Each creature of my choice within 30 ft that can see and hear me must make a DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' Wis save (8 + Prof Bonus + Cha mod) or be frightened for 1 min. It can repeat the save whenever it takes damage. [+1 Str or Cha]';\",\r\n\tscorestxt : \"+1 Strength or Charisma\",\r\n\taction : [['action', 'Breath Weapon or Dragon Fear', 'Breath Weapon']]\r\n};\r\nFeatsList[\"dragon hide-ua\"] = {\r\n\tname : \"Dragon Hide\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You inherited the might and majesty of your dragon ancestors. You gain the following benefits:\\n \\u2022 Increase your Strength or Charisma score by 1, to a maximum of 20.\\n \\u2022 You grow retractable claws from the tips of your fingers. Extending or retracting the claws requires no action. The claws are natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal slashing damage equal to 1d4 + your Strength modifier, instead of the bludgeoning damage normal for an unarmed strike.\\n \\u2022 Your scales harden; you gain a +1 bonus to AC while you aren't wearing armor.\",\r\n\tdescription : \"I gain retractable claws that I can retract or extend, requiring no action. While extended, my unarmed strikes deal 1d4 slashing damage. My scales harden, giving me a +1 bonus to AC when I'm not wearing armor. [+1 Strength or Charisma]\",\r\n\tscorestxt : \"+1 Strength or Charisma\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(retractable|dragon))(?=.*claw).*$/i,\r\n\t\tname : \"Retractable Claws\",\r\n\t\tsource : [[\"UA:FR\", 2]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing armor.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor; }\r\n\t}\r\n};\r\nFeatsList[\"dragon wings-ua\"] = {\r\n\tname : \"Dragon Wings\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You sprout draconic wings. With your wings, you have a flying speed of 20 feet if you aren't wearing heavy armor and aren't exceeding your carrying capacity.\",\r\n\tdescription : \"I sprout draconic wings. With my wings, I have a flying speed of 20 feet if I am not wearing heavy armor and I am not exceeding my carrying capacity or encumbered.\",\r\n\tspeed : { fly : { spd : 20, enc : 0 } }\r\n};\r\nFeatsList[\"drow high magic-ua\"] = {\r\n\tname : \"Drow High Magic\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Drow (Dark Elf)\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dark elf') !== -1; },\r\n\tdescriptionFull : \"You learn more of the spells typical for your people. You learn Detect Magic and can cast it at will, without expending a spell slot. You also learn Levitate and Dispel Magic, each of which you can cast once without expending a spell slot. You regain the ability to cast the spell in this way when you finish a long rest. Charisma is your spellcasting ability for these spells.\",\r\n\tdescription : \"I can cast Detect Magic at will, without expending a spell slot. I can also cast Levitate and Dispel Magic without expending a spell slot, but each only once per long rest. Charisma is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"dispel magic\"],\r\n\t\tselection : [\"dispel magic\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dwarf resilience-ua\"] = {\r\n\tname : \"Dwarf Resilience\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have the blood of dwarf heroes flowing through your veins. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 Whenever you take the Dodge action in combat, you can spend one Hit Die to heal yourself. Roll the die, add your Constitution modifier, and regain a number of hit points equal to the total (minimum of 1).\",\r\n\tdescription : \"Whenever I take the Dodge action in combat, I can spend one Hit Die to heal myself. I roll the die, add my Constitution modifier, and regain a number of hit points equal to the total (minimum of 1). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elven accuracy-ua\"] = {\r\n\tname : \"Elven Accuracy\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being an Elf or a Half-Elf\",\r\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have uncanny aim. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 Whenever you have advantage on an attack roll, you can reroll one of the dice once.\",\r\n\tdescription : \"Whenever I have advantage on an attack roll, I can reroll one of the dice once. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0]\r\n};\r\nFeatsList[\"everybody-ua's friend\"] = {\r\n\tname : \"Everybody's Friend\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Half-Elf\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*elf).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You develop your magnetic personality to ease your way through the world. You gain the following benefits:\\n \\u2022 You gain proficiency in the Deception and Persuasion skills. If you're already proficient in either skill, your proficiency bonus is doubled for any check you make with that skill.\",\r\n\tdescription : \"I gain expertise with Deception and Persuasion, or proficiency with them if I didn't have that already. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Deception\", \"increment\"], [\"Persuasion\", \"increment\"]]\r\n};\r\nFeatsList[\"fade away-ua\"] = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('gnome') !== -1; },\r\n\tdescriptionFull : \"You can draw on your magical heritage to escape danger. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 When you take damage, you can use a reaction to magically become invisible until the end of your next turn or until you attack, deal damage, or force someone to make a saving throw. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"As a reaction when I take damage, I can magically become invisible until the end of my next turn or until I attack, deal damage, or force someone to make a saving throw. Once I do this, I can't do so again until I finish a short rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"fey teleportation-ua\"] = {\r\n\tname : \"Fey Teleportation\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a High Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('high elf') !== -1; },\r\n\tdescriptionFull : \"Drawing on your fey ancestry, you have learned how to teleport. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn the Misty Step spell and can cast it once without expending a spell slot. You regain the ability to cast it in this way when you finish a short or long rest. Intelligence is your spellcasting ability for this spell.\",\r\n\tdescription : \"I can cast Misty Step without using a spell slot. I can do so once per short rest. Intelligence is my spellcasting ability for this spell. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per short rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 'oncesr'\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"flames of phlegethos-ua\"] = {\r\n\tname : \"Flames of Phlegethos\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"You learn to call on hellfire to serve your commands. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 When you roll fire damage for a spell you cast, you can reroll any roll of 1 on the fire damage dice, but you must use the new roll, even if it is another 1.\\n \\u2022 Whenever you cast a spell that deals fire damage, you can cause flames to wreathe you until the end of your next turn. The flames don't harm you or your possessions, and they shed bright light out to 30 feet and dim light for an additional 30 feet. While the flames are present, any creature within 5 feet of you that hits you with a melee attack takes 1d4 fire damage.\",\r\n\tdescription : \"When I cast a fire damage spell, I can reroll any 1 on fire damage dice. I can then sheathe myself in flame until my next turn ends. These shed bright light in 30 ft, dim light in 30 ft and cause any within 5 ft that hit me in melee take 1d4 fire damage. [+1 Int or Cha]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\"\t\r\n};\r\nFeatsList[\"grudge-bearer-ua\"] = {\r\n\tname : \"Grudge-Bearer\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have a deep hatred for a particular kind of creature. Choose your foes, a type of creature to bear the burden of your wrath: aberrations, beasts, celestials, constructs, dragons, elementals, fey, fiends, giants, monstrosities, oozes, plants, or undead. Alternatively, you can choose two races of humanoid (such as gnolls and orcs). You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\\n \\u2022 During the first round of any combat against your chosen foes, your attack rolls against any of them have advantage.\\n \\u2022 When any of your chosen foes makes an opportunity attack against you, it makes the attack roll with disadvantage.\\n \\u2022 Whenever you make an Intelligence (Arcana, History, Nature, or Religion) check to recall information about your chosen foes, you add double your proficiency bonus to the check, even if you're not normally proficient.\",\r\n\tdescription : \"My hatred for a creature type gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Wisdom\",\r\n\tchoices : [\"2 Humanoids\", \"Aberrations\", \"Beasts\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fey\", \"Fiends\", \"Giants\", \"Monstrosities\", \"Oozes\", \"Plants\", \"Undead\"],\r\n\t\"2 humanoids\" : {\r\n\t\tdescription : \"My hatred for 2 humanoid races gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana/History/Nature/Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\taberrations : {\r\n\t\tdescription : \"My hatred for aberrations gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tbeasts : {\r\n\t\tdescription : \"My hatred for beasts gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tcelestials : {\r\n\t\tdescription : \"My hatred for celestials gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tconstructs : {\r\n\t\tdescription : \"My hatred for constructs gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tdragons : {\r\n\t\tdescription : \"My hatred for dragons gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\telementals : {\r\n\t\tdescription : \"My hatred for elementals gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tfey : {\r\n\t\tdescription : \"My hatred for fey gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tfiends : {\r\n\t\tdescription : \"My hatred for fiends gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tgiants : {\r\n\t\tdescription : \"My hatred for giants gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tmonstrosities : {\r\n\t\tdescription : \"My hatred for monstrosities gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\toozes : {\r\n\t\tdescription : \"My hatred for oozes gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tplants : {\r\n\t\tdescription : \"My hatred for plants gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tundead : {\r\n\t\tdescription : \"My hatred for undead gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t}\r\n};\r\nFeatsList[\"human determination-ua\"] = {\r\n\tname : \"Human Determination\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Human\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('human') !== -1; },\r\n\tdescriptionFull : \"You are filled with a determination that can draw the unreachable within your reach. You gain the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 When you make an attack roll, an ability check, or a saving throw, you can do so with advantage. Once you use this ability, you can't use it again until you finish a short or long rest.\",\r\n\tdescription : \"When I make an attack roll, an ability check, or a saving throw, I can do so with advantage. Once I use this ability, I can't do so again until I finish a short rest.\\n[+1 to one ability score]\",\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"attack/check/save\"\r\n};\r\nFeatsList[\"infernal constitution-ua\"] = {\r\n\tname : \"Infernal Constitution\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"Fiendish blood runs strong in you. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You have resistance to cold and poison damage.\\n \\u2022 You have advantage on saving throws against being poisoned.\",\r\n\tdescription : \"I have resistance to cold and poison damage and I have advantage on saving throws against being poisoned.\\n[+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tdmgres : [\"Cold\", \"Poison\"],\r\n\tsavetxt : { adv_vs : [\"poison\"] }\r\n};\r\nFeatsList[\"orcish aggression-ua\"] = {\r\n\tname : \"Orcish Aggression\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"As a bonus action, you can move up to your speed toward an enemy of your choice that you can see or hear. You must end this move closer to the enemy than you started.\",\r\n\tdescription : \"As a bonus action, I can move up to my speed toward an enemy of my choice that I can see or hear. I must end this move closer to the enemy than I started.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"orcish fury-ua\"] = {\r\n\tname : \"Orcish Fury\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"Your fury burns tirelessly. You gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 When you hit with an attack made with a simple or martial weapon, you can roll one of the weapon's damage dice an additional time and add it as extra damage of the weapon's damage type. Once you use this ability, you can't use it again until you finish a short or long rest.\\n \\u2022 Immediately after you use your Relentless Endurance trait, you can use your reaction to make one weapon attack.\",\r\n\tdescription : \"Once per short rest, I can roll an extra damage die for an attack with a simple or martial weapon. In addition, Immediately after I use my Relentless Endurance trait, I can use my reaction to make one weapon attack. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : [[\"reaction\", \" (after Relentless Endurance)\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"extra damage\"\r\n};\r\nFeatsList[\"prodigy-ua\"] = {\r\n\tname : \"Prodigy\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Half-Elf or a Human\",\r\n\tprereqeval : function(v) { return (/human|^(?=.*half)(?=.*elf).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain one skill proficiency of your choice, one tool proficiency of your choice, and fluency in one language of your choice.\",\r\n\tdescription : \"I gain one skill proficiency of my choice, one tool proficiency of my choice, fluency in one language of my choice, and +1 to one ability score of my choice. [+1 to one ability score]\",\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tskillstxt : \"Choose any one skill\",\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n};\r\nFeatsList[\"second chance-ua\"] = {\r\n\tname : \"Second Chance\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 When a creature you can see hits you with an attack roll, you can use your reaction to force that creature to reroll. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"When a creature I can see hits me with an attack roll, I can use my reaction to force that creature to reroll. Once I use this ability, I can't do so again until I finish a short rest.\\n[+1 Dexterity, Constitution, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"squat nimbleness-ua\"] = {\r\n\tname : \"Squat Nimbleness\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Dwarf, Gnome, or Halfling\",\r\n\tprereqeval : function(v) { return (/dwarf|gnome|halfling/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You are uncommonly nimble for your race. You gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 Increase your walking speed by 5 feet.\\n \\u2022 You gain proficiency in the Acrobatics or Athletics skill. If you're already proficient in the skill, your proficiency bonus is doubled for any check you make with it.\",\r\n\tdescription : \"My walking speed increases by 5 ft. I gain proficiency in the Acrobatics or Athletics skill. If I'm already proficient in the chosen skill, I gain expertise with it instead.\\n[+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tskillstxt : \"Proficiency with Acrobatics or Athletics; or gain Expertise if already proficient\",\r\n\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } }\r\n};\r\nFeatsList[\"wonder maker-ua\"] = {\r\n\tname : \"Wonder Maker\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Rock Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('rock gnome') !== -1; },\r\n\tdescriptionFull : \"You master the tinker techniques of your people. You gain the following benefits:\\n \\u2022 When you make a check using your proficiency with tinker's tools, you add double your proficiency bonus to the check.\\n \\u2022 When you make a device with your Tinker trait, you have the following additional options for what you make:\\n \\u2022 \" + toUni(\"Alarm\") + \". This device senses when a creature moves to within 15 feet of it without speaking aloud a password chosen when you create it. One round after a creature moves into range, the alarm makes a shrill ringing that lasts for 1 minute and can be heard from up to 300 feet away.\\n \\u2022 \" + toUni(\"Calculator\") + \". This device makes doing sums easy.\\n \\u2022 \" + toUni(\"Lifter\") + \". This device can be used as a block and tackle, allowing its user to hoist five times the weight the user can normally lift.\\n \\u2022 \" + toUni(\"Timekeeper\") + \". This pocket watch keeps accurate time.\\n \\u2022 \" + toUni(\"Weather Sensor\") + \". When used as an action, this device predicts weather conditions in a 1-mile radius over the next 4 hours, showing one symbol (clouds, sun/moon, rain, or snow) for each hour.\",\r\n\tdescription : \"I gain expertise with Tinker's Tools. I get additional Tinker options: Alarm (audible to 300 ft for 1 min), Calculator, Lifter (as block and tackle that multiplies max lift weight by 5), Timekeeper (pocket watch), Weather Sensor (predict for 1-mile, 4 hours) [+1 Dex or Int]\",\r\n\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\teval : function () {\r\n\t\tif ((/tinker.*tool/i).test(What('Too Text'))) {\r\n\t\t\tCheckbox('Too Exp', true);\r\n\t\t};\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif ((/tinker.*tool/i).test(What('Too Text'))) {\r\n\t\t\tCheckbox('Too Exp', false);\r\n\t\t};\r\n\t}\r\n};\r\nFeatsList[\"wood elf magic-ua\"] = {\r\n\tname : \"Wood Elf Magic\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Wood Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('wood elf') !== -1; },\r\n\tdescriptionFull : \"You learn the magic of the primeval woods. You learn one druid cantrip of your choice. You also learn Longstrider and Pass Without Trace, each of which you can cast once without expending a spell slot. You regain the ability to cast the spell in this way when you finish a long rest. Wisdom is your spellcasting ability for these spells.\",\r\n\tdescription : \"I learn a druid cantrip. In addition, I can cast Longstrider and Pass Without Trace, without expending a spell slot, but each only once per long rest. Wisdom is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druid Cantrip\",\r\n\t\tspellcastingAbility : 5,\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"longstrider\"],\r\n\t\tselection : [\"longstrider\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"pass without trace\"],\r\n\t\tselection : [\"pass without trace\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\n// ua_20170501_Revised-Subclasses.js\r\n// This file adds the content from the Unearthed Arcana: Revised Subclasses article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RS\"] = {\r\n\tname : \"Unearthed Arcana: Revised Subclasses\",\r\n\tabbreviation : \"UA:RS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-RevisedSubclasses.pdf\",\r\n\tdate : \"2017/05/01\"\r\n};\r\n\r\n// Add 5 subclasses from previous Unearthed Arcana articles: 1 for the Barbarian, 1 for the Bard, 1 for the Fighter, 1 for the Monk, and 1 for the Sorcerer\r\nAddSubClass(\"barbarian\", \"ancestral guardian2-ua\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"UA:RS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with an attack on my turn becomes distracted\",\r\n\t\t\t\t\"While distracted, it has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"In addition, everybody but me counts as having resistance to all of the target's attacks\",\r\n\t\t\t\t\"This lasts until the start of my next turn, or until my rage ends\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spirit Shield\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while raging when an ally I see within 30 ft is damaged, I can reduce it\",\r\n\t\t\t\t\"My guardian spirits reduce the damage by an amount equal to the roll of the dice\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d8 damage reduced\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Through consulting my ancestral spirits, I can cast Clairvoyance without a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"clairvoyance\"],\r\n\t\t\t\tselection : [\"clairvoyance\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Whenever I use Spirit Shield to reduce damage, the attacker takes the reduced damage\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of swords2-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"UA:RS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor and scimitars\",\r\n\t\t\t\t\"I can use a simple or martial melee weapon that I'm proficient with as spellcasting focus\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Style\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Select a Fighting Style for the college of swords using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dueling\", \"Two-Weapon Fighting\"],\r\n\t\t\t\"dueling\" : FightingStyles.dueling,\r\n\t\t\t\"two-weapon fighting\" : FightingStyles.two_weapon\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make one melee weapon attack and use one flourish option below\",\r\n\t\t\t\t\"In addition, I gain +10 ft to my walking speed until the end of the current turn\",\r\n\t\t\t\t\" - Defensive Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    I add the result of the die to my AC until the start of my next turn\",\r\n\t\t\t\t\" - Slashing Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    If the attack hits, I can use a die to deal damage to creatures next to the target\",\r\n\t\t\t\t\"    All creatures within 5 ft of the target take the result of the die in damage\",\r\n\t\t\t\t\" - Mobile Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    If the attack hits, I can use a die to push the target back 5 + the die result in feet\",\r\n\t\t\t\t\"    After this, I can use my reaction to move my speed to a space next to the target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cunning Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I take the Blade Flourish action, I can attack twice, but still only use one flourish\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"When I do a Blade Flourish, I can use a d6 instead of expending a Bardic Inspiration die\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"arcane archer2-ua\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"UA:RS\", 2]],\r\n\tfullname : \"Arcane Archer\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Magic Arrow\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I fire a nonmagical arrow from a short- or longbow I can make it magical\",\r\n\t\t\t\t\"This magical arrow gives a +1 bonus to the attack and damage rolls for the one attack\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/longbow|shortbow/i).test(v.baseWeaponName) && !v.theWea.isMagicWeapon) output.magic += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Any longbow or shortbow that doesn't include a magic bonus in its name gets a +1 magical bonus to damage and to hit as any arrows fired with it are automatically made magical.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can unleash magical effects when I fire a magic arrow from a short- or longbow\",\r\n\t\t\t\t\"I can use this once per turn as part of the Attack action, after an attack hits\",\r\n\t\t\t\t\"I know a number of Arcane Shot Options and learn additional at certain levels\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Arcane Shots Options to the third page'\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" options known\"; }),\r\n\t\t\textraname : \"Arcane Shot Option\",\r\n\t\t\textrachoices : [\"Banishing Arrow [Abjuration]\", \"Brute Bane Arrow [Necromancy]\", \"Bursting Arrow [Evocation]\", \"Grasping Arrow [Conjuration]\", \"Mind-Scrambling Arrow [Enchantment]\", \"Piercing Arrow [Transmutation]\", \"Seeking Arrow [Divination]\", \"Shadow Arrow [Illusion]\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"banishing arrow [abjuration]\" : {\r\n\t\t\t\tname : \"Banishing Arrow [Abjuration]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target makes a Cha save or is banished to the Feywild until the end of its next turn\",\r\n\t\t\t\t\t\"While banished, its speed is 0 and is incapacitated; It re-appearing in the same spot\",\r\n\t\t\t\t\t\"When I reach 18th level, this Arcane Shot Option also does an extra 2d6 force damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 18 ? \"\" : \"+2d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"brute bane arrow [necromancy]\" : {\r\n\t\t\t\tname : \"Brute Bane Arrow [Necromancy]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra necrotic damage and must make a Constitution save\",\r\n\t\t\t\t\t\"If failed, the damage of the target's attacks is halved until the start of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"bursting arrow [evocation]\" : {\r\n\t\t\t\tname : \"Bursting Arrow [Evocation]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription: desc(\"The target, in addition to the shot, and all creatures within 10 ft of it take damage\"),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"grasping arrow [conjuration]\" : {\r\n\t\t\t\tname : \"Grasping Arrow [Conjuration]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra poison damage as brambles wrap around it for 1 minute\",\r\n\t\t\t\t\t\"The brambles give it -10 ft speed and do it slashing damage every round it moves\",\r\n\t\t\t\t\t\"These can be removed by it or another as an action with Strength (Athletics) vs. my DC\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 18 ? 2 : 4) + \"d6 poison/slash. damage\"; })\r\n\t\t\t},\r\n\t\t\t\"mind-scrambling arrow [enchantment]\" : {\r\n\t\t\t\tname : \"Mind-Scrambling Arrow [Enchantment]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, it can't attack or harm one of my allies within 30 ft of it that I choose\",\r\n\t\t\t\t\t\"This lasts until the start of my next turn or until the chosen ally harms the target\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 damage\"; })\r\n\t\t\t},\r\n\t\t\t\"piercing arrow [transmutation]\" : {\r\n\t\t\t\tname : \"Piercing Arrow [Transmutation]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but shoot the arrow in a 30-ft long, 1-ft wide line\",\r\n\t\t\t\t\t\"It passes through objects, ignoring cover, but all creatures in the area take damage\",\r\n\t\t\t\t\t\"The damage is the same as a normal hit from my attack, plus extra piercing damage\",\r\n\t\t\t\t\t\"A creature can make a Dexterity save to reduce the damage by half\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 piercing damage\"; })\r\n\t\t\t},\r\n\t\t\t\"seeking arrow [divination]\" : {\r\n\t\t\t\tname : \"Seeking Arrow [Divination]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but I choose a target I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners, obstacles, and ignores cover to hit the target\",\r\n\t\t\t\t\t\"It is hit if it is within the weapon's range and there is a path for the arrow to get to it\",\r\n\t\t\t\t\t\"The target takes the full damage of the attack plus extra force damage\",\r\n\t\t\t\t\t\"It can make a Dexterity save to reduce the damage by half; If failed, I know its location\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"shadow arrow [illusion]\" : {\r\n\t\t\t\tname : \"Shadow Arrow [Illusion]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, the target can't see anything beyond 5 ft until the end of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 psychic damage\"; })\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with either the Arcana or Nature skill\"),\r\n\t\t\tskillstxt : \"Choose one from: Arcana or Nature\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Curving Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I miss with a magic arrow, I can use a bonus action to redirect the attack\",\r\n\t\t\t\t\"I reroll the attack against a different target within 60 ft of the original target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one use of Arcane Shot if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the kensei2-ua\", {\r\n\tregExpSearch : /kensei/i,\r\n\tsubname : \"Way of the Kensei\",\r\n\tsubnameShort: \"Kensei\",\r\n\tsource : [[\"UA:RS\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of the Kensei\",\r\n\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Some weapons, that don't have the heavy or special property, are kensei weapons for me\",\r\n\t\t\t\t\"At least one ranged and one melee weapon, more at higher levels (longbow does qualify)\",\r\n\t\t\t\t\"With these: proficient, count as a monk weapons, special bonuses while holding them:\",\r\n\t\t\t\t\" - If I do an unarmed strike during an Attack action, +2 AC until my next turn starts\",\r\n\t\t\t\t\" - As a bonus action, ranged kensei weapon attacks deal +1d4 damage in current turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with ranged)\"]],\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" kensei weapons\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level > 2 && !v.isSpell && !v.theWea.monkweapon && (/kensei/i).test(v.WeaponTextName) && !v.theWea.special && (!(/heavy|special/i).test(fields.Description) || v.baseWeaponName === 'longbow')) {\r\n\t\t\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t\t\t\tv.theWea.kenseiweapon = true;\r\n\t\t\t\t\t\t\tif (v.isRangedWeapon) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 damage';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Kensei' in the name of a weapon that doesn't have the Heavy or Special attribute, or that is a longbow, that weapon gains the same benefits as any other 'Monk Weapon'.\\nIn addition, with ranged 'Kensei Weapons', I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"ki-empowered strikes\" : {\r\n\t\t\tname : \"One with the Blade\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description) && (v.baseWeaponName === \"unarmed strike\" || v.theWea.kenseiweapon)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My unarmed strikes and any Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"precise strike\" : {\r\n\t\t\t\tname : \"Precise Strike\",\r\n\t\t\t\textraname : \"Way of the Kensei 6\",\r\n\t\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\t\tdescription: desc(\"Once per turn when I hit with a kensei weapon, I can do a martial arts die extra damage\"),\r\n\t\t\t\tadditional : \"1 ki point\"\r\n\t\t\t},\r\n\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can grant my kensei weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\"This bonus is equal to the number of ki points I spend; It lasts for 1 minute\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"1 to 3 ki points\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"precise strike\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"Once per turn, if I miss a monk weapon attack on my turn, I can reroll the attack roll\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"favoured soul-uars\", {\r\n\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\tsubname : \"Favored Soul\",\r\n\tsource : [[\"UA:RS\", 5]],\r\n\tfullname : \"Favored Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I select my 1st level or higher spells, I can also pick spells from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t\t\"I also learn Cure Wounds, which doesn't count against my number of spells known\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Divine Magic\",\r\n\t\t\t\tspells : [\"cure wounds\"],\r\n\t\t\t\tselection : [\"cure wounds\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Empowered Healing\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 sorcery point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I roll dice for healing with one of my sorcerer spells, I can reroll them once\",\r\n\t\t\t\t\"By spending 1 sorcery point, I can reroll any number of those dice for that spell\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Angelic Form\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose an otherworldly quality using the \"Choose Feature\" button above',\r\n\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Beautiful\", \"Youthful\", \"Kind\", \"Imposing\"],\r\n\t\t\t\"beautiful\" : {\r\n\t\t\t\tname : \"Angelic Form: Beautiful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of beauty\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"youthful\" : {\r\n\t\t\t\tname : \"Angelic Form: Youthful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of youthfulness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"kind\" : {\r\n\t\t\t\tname : \"Angelic Form: Kind\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of kindness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"imposing\" : {\r\n\t\t\t\tname : \"Angelic Form: Imposing\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of imposingness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \" Wings\"]],\r\n\t\t\tspeed : { fly : { spd : 30, enc : 20 } }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"UA:RS\", 6]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP remaining, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my hit point maximum\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170605_Revised-Class-Options.js\r\n// This file adds the content from the Unearthed Arcana: Revised Class Options article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RCO\"] = {\r\n\tname : \"Unearthed Arcana: Revised Class Options\",\r\n\tabbreviation : \"UA:RCO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/June5UA_RevisedClassOptv1.pdf\",\r\n\tdate : \"2017/06/05\"\r\n};\r\n\r\n// Adds 4 revised subclasses from previous Unearthed Arcana articles: 1 for the Druid, 1 for the Fighter, 1 for the Paladin, and 1 for the Warlock\r\nAddSubClass(\"druid\", \"circle of the shepherd2-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"UA:RCO\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Speech of the Woods\",\r\n\t\t\tsource : [[\"UA:RCO\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts; Additionally, I learn Sylvan\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Sylvan\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Totem\",\r\n\t\t\tsource : [[\"UA:RCO\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon, or move, a spirit to a point I can see within 60 ft\",\r\n\t\t\t\t\"The spirit is a Bear, Hawk, or Unicorn (see below), which has a 30-ft radius aura\",\r\n\t\t\t\t\"It is incorporeal, immobile, doesn't counts as a creature or object, and persists for 1 min\",\r\n\t\t\t\t\"\\u2022 Bear: my allies in the area and I instantly gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"   While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: As a reaction, I can grant advantage on an attack vs. a target in the aura\",\r\n\t\t\t\t\"\\u2022 Unicorn: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"   If I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"Beasts or Fey I summon with spells get +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that restores hit points, it restores an additional 2 + the level of the spell slot (or spell slot equivalent) used to cast the spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"When a Beast or Fey that I summoned ends its turn in my Spirit Totem aura, it heals\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 10) return \"\";\r\n\t\t\t\treturn \"heals \" + Math.floor(n / 2) + \" HP\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can cast Conjure Animals\",\r\n\t\t\t\t\"This is done as if using a 9th-level spell slot to summon 4 beast of my choice up to CR 2\",\r\n\t\t\t\t\"They appear within 20 ft of me, last 1 hour, and protect me from harm and attack foes\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Faithful Summons\",\r\n\t\t\t\tspells : [\"conjure animals\"],\r\n\t\t\t\tselection : [\"conjure animals\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"conjure animals\" : {\r\n\t\t\t\t\tnameShort : \"Conjure Animals (level 9)\",\r\n\t\t\t\t\trange : \"20 ft\",\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"Summon 4 CR 2 beasts; protect me from harm and attack foes\",\r\n\t\t\t\t\tchanges : \"Using my Faithful Summons class feature when I'm reduced to 0 HP, I can cast Conjure Animals as if using a 9th-level spell slot. This then summons 4 beast of my choice up to CR 2 within 20 ft of me without needing concentration.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier2-ua\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"UA:RCO\", 2]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t\"Alternatively, I learn one language of my choice\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: Animal Handling, History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription: desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: animal handling, history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription: desc(\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\" \\u2022 Control Mount (Maneuver, UA:RCO 3)\",\r\n\t\t\t\t\"   Use after rolling Wis (Animal Handling) to influence an animal I or an ally is riding\",\r\n\t\t\t\t\"   I add the superiority die to the result\",\r\n\t\t\t\t\" \\u2022 Precision Attack (Maneuver, UA:RCO 3)\",\r\n\t\t\t\t\"   Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\" \\u2022 Trip Attack (Maneuver, UA:RCO 3) [DC 8 + Prof Bonus + Str mod]\",\r\n\t\t\t\t\"   Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\"   If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t\" \\u2022 Warding Maneuver (Maneuver, UA:RCO 3) [only while wielding weapon or shield]\",\r\n\t\t\t\t\"   As a reaction when I or a creature within 5 ft is hit, I add the superiority die to AC\",\r\n\t\t\t\t\"   If the attack still hits, the target counts as having resistance against the attack\"\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : ['reaction', 'Warding Maneuver']\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use two superiority dice, instead of just one, when using the Trip Attack Maneuver\",\r\n\t\t\t\t\"If doing so, both dice are added to the damage and the target has disadv. on its Str save\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of conquest2-ua\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"UA:RCO\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Presence\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures of my choice within 30-ft radius must make a Wisdom save\",\r\n\t\t\t\t\"If failed, a target is frightened for 1 minute; It can save again at the end of each turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"dominate beast\", \"stoneskin\", \"cloudkill\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Enemies that are frightened of me have their speed reduced to 0 while in my aura\",\r\n\t\t\t\t\"They also take psychic damage whenever they start theirs turn within my aura\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 7) return \"\";\r\n\t\t\t\treturn (n < 18 ? 10 : 30) + \"-foot aura; \" + Math.floor(n / 2) + \" psychic damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Scornful Rebuke\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I'm hit with an attack while I'm not incapacitated, the attacker takes damage\",\r\n\t\t\t\t\"This is psychic damage equal to my Charisma modifier (minimum of 0)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" - I have resistance to all damage\",\r\n\t\t\t\t\" - I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\" - My melee weapons score critical hits on a roll of 19 or 20\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the celestial-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*celestial).*$/i,\r\n\tsubname : \"the Celestial\",\r\n\tsource : [[\"UA:RCO\", 4]],\r\n\tspellcastingExtra : [\"burning hands\", \"cure wounds\", \"flaming sphere\", \"lesser restoration\", \"daylight\", \"revivify\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"greater restoration\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know the Light and Sacred Flame cantrips\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can heal a creature on touch by expending dice from my pool\",\r\n\t\t\t\t\"I can expend up to my Charisma modifier (min 1) of dice at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain all expended dice on a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\treturn (n + 1) + \"d6 per \";\r\n\t\t\t}),\r\n\t\t\tusagescalc : \"event.value = !classes.known.warlock ? '' : (1 + classes.known.warlock.level) + 'd6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add my Cha modifier to cantrips/spells I cast that deal fire or radiant damage\",\r\n\t\t\t\t\"Additionally, I have resistance to radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Radiant Resilience\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 10) return \"\";\r\n\t\t\t\treturn \"Me: \" + n + \"+Cha mod; Allies: \" + Math.floor(n / 2) + \"+Cha mod\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn when I would make a death save, I can instead spring back up\",\r\n\t\t\t\t\"I can stand up and recover HP equal to half my current HP maximum\",\r\n\t\t\t\t\"Also, creatures of my choice within 30 ft of me take 2d8 + Cha mod in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add Warlock invocations, revised versions from previous Unearthed Arcana articles, and new ones\r\n// Most probably still valid 2021-09-21, have to check\r\nAddWarlockInvocation(\"Eldritch Smite (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Eldritch Smite\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when I hit a creature with my pact weapon, I can do extra damage\",\r\n\t\t\"By expending a warlock spell slot, the creature takes extra damage and is knocked prone\",\r\n\t\t\"It takes 1d8 force damage and another 1d8 force damage per level of the spell slot\",\r\n\t\t\"If the target takes any of this bonus damage, it is knocked prone if it is Huge or smaller\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; }\r\n});\r\nAddWarlockInvocation(\"Frost Lance (prereq: Eldritch Blast cantrip)\", { // Still valid 2021-09-21\r\n\tname : \"Frost Lance\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when my Eldritch Blast hits a creature, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; 1 target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Ghostly Gaze (prereq: level 7 warlock)\", {\r\n\tname : \"Ghostly Gaze\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can see through solid objects out to 30 ft, until the end of my current turn\",\r\n\t\t\"Objects appear ghostly to me; I also gain 30 ft darkvision for the duration\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"I can use any pact weapon I create as my spellcasting focus for warlock spells\",\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a +1 magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tif (v.pactWeapon && !output.magic) {\r\n\t\t\t\t\tvar bContinue = true;\r\n\t\t\t\t\t// Now test if this isn't a weaponOptions addition with a static + bonus set to the modifier fields\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon && v.theWea.modifiers) {\r\n\t\t\t\t\t\t// Test the first two modifiers to see if both offer a +1 or more. Returns `true` if one contains no numbers or is less than the improved pact weapon bonus\r\n\t\t\t\t\t\tvar bContinue = v.theWea.modifiers.slice(0, 2).some(function (n) {\r\n\t\t\t\t\t\t\tif (!n || !/\\d/.test(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = 0;\r\n\t\t\t\t\t\t\t} else if (isNaN(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = n.match(/(^|\\+|-)\\d+\\b/g);\r\n\t\t\t\t\t\t\t\tnmbr = !nmbr ? 0 : nmbr.reduce(function(a, b) {return Number(a) + Number(b)});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar nmbr = Number(n);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn nmbr < 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if the continue boolean wasn't set to false, we can proceed\r\n\t\t\t\t\tif (bContinue) {\r\n\t\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name and is not a magic weapon with at least a +1 bonus, the calculation will add +1 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Kiss of Mephistopheles (prereq: level 5 warlock, Eldritch Blast cantrip)\", {\r\n\tname : \"Kiss of Mephistopheles\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action when my Eldritch Blast hits, I can cast Fireball using a warlock spell slot\",\r\n\t\t\"The origin of the Fireball is the creature that was hit with my Eldritch Blast attack\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Maddening Hex (prereq: level 5 warlock)\", {\r\n\tname : \"Maddening Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I cause pain around a target affected by a hex of mine (spell/feature)\",\r\n\t\t\"It and any of my choice within 5 ft of it take my Cha mod (min 0) in psychic damage\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 7 warlock)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport next to a target affected by a hex of mine (spell/feature)\",\r\n\t\t\"To do so, I must see the target and the space I'm teleporting to, and be within 30 ft of it\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\n\n// ua_20170911_Eladrin-and-Gith.js\r\n// This file adds the content from the Unearthed Arcana: Eladrin and Gith article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:EnG\"] = {\r\n\tname : \"Unearthed Arcana: Eladrin and Gith\",\r\n\tabbreviation : \"UA:EnG\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-Eladrin-Gith.pdf\",\r\n\tdate : \"2017/09/11\"\r\n};\r\n\r\n// Adds three races:\r\n// Alternative version of the Eladrin\r\nRaceList[\"eladrin-uaeng\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin)\",\r\n\tsource : [[\"UA:EnG\", 1]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity, +1 Intelligence or Charisma\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Eladrin (+2 Dexterity, +1 Intelligence or Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nFey Step: Once per short rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\" + (typePF ? \"\\n\" : \" \") + \"Shifting Seasons: After a short or long rest, I can align myself with a season, granting me access to a cantrip until my next rest: Friends, Chill Touch, Minor Illusion, or Fire Bolt. My spellcasting ability for this is Int or Cha, whichever is higher.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shifting Seasons\",\r\n\t\tspells : [\"friends\", \"chill touch\", \"minor illusion\", \"fire bolt\"],\r\n\t\tselection : [\"friends\", \"chill touch\", \"minor illusion\", \"fire bolt\"],\r\n\t\tfirstCol : \"checkbox\",\r\n\t\ttimes : 4\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n// Githyanki and its two variants\r\nRaceList[\"githyanki-ua\"] = {\r\n\tregExpSearch : /githyanki/i,\r\n\tname : \"Githyanki\",\r\n\tsource : [[\"UA:EnG\", 2]],\r\n\tplural : \"Githyanki\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gith\", 1],\r\n\tarmorProfs : [true, true, false, false],\r\n\tskillstxt : \"Choose any one skill or tool\",\r\n\tage : \" reach adulthood in their late teens and live for about a century\",\r\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (5'0\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 135 lb (100 + 2d12 \\xD7 2d4 lb)\",\r\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 61 kg (45 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 0, 0, 1, 0, 0],\r\n\ttrait : \"Githyanki (+2 Strength, +1 Intelligence)\\nGithyanki Psionics:\" + desc([\r\n\t\t\"I know the Mage Hand cantrip.\",\r\n\t\t\"At 3rd level, I can cast the Jump spell once per long rest.\",\r\n\t\t\"At 5th level, I can also cast the Misty Step spell once per long rest.\",\r\n\t\t\"Intelligence is my spellcasting ability for these spells.\",\r\n\t\t\"I don't require components to cast these spells.\"\r\n\t]),\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githyanki Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"jump\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 3)\",\r\n\t\t\tlimfeaname : \"Jump\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (3)\",\r\n\t\t\t\tspells : [\"jump\"],\r\n\t\t\t\tselection : [\"jump\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"misty step\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 5)\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (5)\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"githyanki-ua\", \"tool proficiency\", {\r\n\tregExpSearch : /tool proficiency/i,\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n});\r\nAddRacialVariant(\"githyanki-ua\", \"skill proficiency\", {\r\n\tregExpSearch : /skill proficiency/i,\r\n\tskillstxt : \"Choose any one skill\"\r\n});\r\n// Githzerai\r\nRaceList[\"githzerai-ua\"] = {\r\n\tregExpSearch : /githzerai/i,\r\n\tname : \"Githzerai\",\r\n\tsource : [[\"UA:EnG\", 3]],\r\n\tplural : \"Githzerai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gith\"],\r\n\tage : \" reach adulthood in their late teens and live for about a century\",\r\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (4'11\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 2, 0],\r\n\ttrait : \"Githzerai (+1 Intelligence, +2 Wisdom)\\n\" + (typePF ? \"\\n\" : \"\") + \"Monastic Training: I gain a +1 bonus to AC while I'm not wearing medium or heavy armor and not using a shield.\\n\\nGithzerai Psionics: I know the Mage Hand cantrip. At 3rd level, I can cast the Shield spell once per long rest. At 5th level, I can also cast the Detect Thoughts spell once per long rest. Wisdom is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githzerai Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"shield\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 3)\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (3)\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"detect thoughts\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 5)\",\r\n\t\t\tlimfeaname : \"Detect Thoughts\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (5)\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\textraAC : {\r\n\t\tname : \"Monastic Training\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing medium or heavy armor and not using a shield.\",\r\n\t\tstopeval : function (v) { return v.mediumArmor || v.heavyArmor || v.usingShield; }\r\n\t}\r\n};\r\n\n// ua_20171009_Fiendish-Options.js\r\n// This file adds the content from the Unearthed Arcana: Fiendish Options article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FO\"] = {\r\n\tname : \"Unearthed Arcana: Fiendish Options\",\r\n\tabbreviation : \"UA:FO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA_FiendishOptions.pdf\",\r\n\tdate : \"2017/10/09\"\r\n};\r\n\r\n// Adds 8 subraces for the Tiefling, even though it doesn't have any in the PHB/SRD\r\n// Much of this code was contributed by Friedrich\r\nRaceList[\"dispater tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*dispater)(?=.*tiefling|planetouched).*$/i,\r\n\tname : \"Dispater tiefling\",\r\n\tsortname : \"Tiefling, Dispater\",\r\n\tsource : [[\"UA:FO\", 1]],\r\n\tplural : \"Dispater tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\ttrait : \"Dispater Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Dis:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Disguise Self spell once per long rest.\\n   At 5th level, I can also cast the Invisibility spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Legacy of Dis (level 1)\",\r\n\t\tspells : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"disguise self\" : {\r\n\t\t\tname : \"Legacy of Dis (level 3)\",\r\n\t\t\tlimfeaname : \"Disguise Self\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Dis (level 3)\",\r\n\t\t\t\tspells : [\"disguise self\"],\r\n\t\t\t\tselection : [\"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Legacy of Dis (level 5)\",\r\n\t\t\tlimfeaname : \"Invisibility\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Dis (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"mephistopheles tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*mephistopheles)(?=.*tiefling|planetouched).*$/i,\r\n\tname : \"Mephistopheles tiefling\",\r\n\tsortname : \"Tiefling, Mephistopheles\",\r\n\tsource : [[\"UA:FO\", 2]],\r\n\tplural : \"Mephistopheles tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Mephistopheles Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Cania:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast the Magic Missile spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Web spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Legacy of Cania (level 1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"magic missile\" : {\r\n\t\t\tname : \"Legacy of Cania (level 3)\",\r\n\t\t\tlimfeaname : \"Magic Missile (2 darts)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Cania (level 3)\",\r\n\t\t\t\tspells : [\"magic missile\"],\r\n\t\t\t\tselection : [\"magic missile\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"magic missile\" : {\r\n\t\t\t\t\tdescription : \"4 darts hit creature(s) I can see for 1d4+1 Force dmg per dart\",\r\n\t\t\t\t\tchanges : \"Using Legacy of Cania, I cast Magic Missile as if I'm using a 2nd-level spell slot.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"web\" : {\r\n\t\t\tname : \"Legacy of Cania (level 5)\",\r\n\t\t\tlimfeaname : \"Web\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Cania (level 5)\",\r\n\t\t\t\tspells : [\"web\"],\r\n\t\t\t\tselection : [\"web\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20171113_Elf-Subraces.js\r\n// This file adds the content from the Unearthed Arcana: Elf Subraces article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:ES\"] = {\r\n\tname : \"Unearthed Arcana: Elf Subraces\",\r\n\tabbreviation : \"UA:ES\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-ElfSubraces.pdf\",\r\n\tdate : \"2017/11/13\"\r\n};\r\n\r\n// Adds 4 new subraces for the elf\r\nRaceList[\"avariel-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*avariel)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(winged?|wings?|flying|air)\\b))).*$/i,\r\n\tname : \"Avariel\",\r\n\tsortname : \"Elf, Winged (Avariel)\",\r\n\tsource : [[\"UA:ES\", 1]],\r\n\tplural : \"Avariel\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Auran\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from 5 to over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Avariel (+2 Dexterity)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nFlight: I have a flying speed of 30 feet. To use this speed, I can't be wearing medium or heavy armor.\"\r\n};\r\nRaceList[\"grugach elf-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*grugach)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(wilds?|wilderness)\\b))).*$/i,\r\n\tname : \"Grugach\",\r\n\tsortname : \"Elf, Wild (Grugach)\",\r\n\tsource : [[\"UA:ES\", 1]],\r\n\tplural : \"Grugach\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Elvish\", \"Sylvan\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"spear\", \"longbow\", \"shortbow\", \"net\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" stand around 5 feet tall (4'5\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 100 lb (75 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from well under to well over 1,5 metres tall (135 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 45 kg (35 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [1, 2, 0, 0, 0, 0],\r\n\ttrait : \"Grugach (+1 Strength, +2 Dexterity)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nCantrip: I know one cantrip of my choice from the druid spell list. Wisdom is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Grugach Cantrip\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\teval : function () {\r\n\t\tRemoveLangTool('language', 'Common');\r\n\t}\r\n};\r\n// Edit the Wood Elf PHB entry, if available, to not match on Grugach\r\nif (RaceList[\"wood elf\"]) {\r\n\tRaceList[\"wood elf\"].regExpSearch = RaceList[\"wood elf\"].regExpSearch.replace(/grugach\\|?|wilds\\?\\|?/g, \"\");\r\n}\r\nRaceList[\"shadar-kai elf-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\r\n\tname : \"Shadar-kai\",\r\n\tsortname : \"Elf, Shadow (Shadar-kai)\",\r\n\tsource : [[\"UA:ES\", 2]],\r\n\tplural : \"Shadar-kai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'8\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Shadar-kai (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nBlessing of the Raven Queen: Once per short rest, as a bonus action, I can magically teleport up to 15 ft to an unoccupied space I can see, and, until the start of my next turn, I have resistance to all damage and appear translucent.\" + (typePF ? \"\\n\" : \" \") + \"Cantrip: I know one cantrip: Chill Touch, Spare the Dying, or Thaumaturgy. Charisma is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shadar-kai Cantrip\",\r\n\t\tspells : [\"chill touch\", \"spare the dying\", \"thaumaturgy\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"blessing of the raven queen\" : {\r\n\t\t\tname : \"Blessing of the Raven Queen\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20180108_Three-Subclasses.js\n// This file adds the content from the Unearthed Arcana: Three Subclasses article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TS\"] = {\n\tname : \"Unearthed Arcana: Three Subclasses\",\n\tabbreviation : \"UA:TS\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA-3Subclasses0108.pdf\",\n\tdate : \"2018/01/08\"\n};\n\n// Adds 3 subclasses: 1 for the Druid, 1 for the Fighter, and 1 for the Wizard\nAddSubClass(\"druid\", \"circle of spores-ua\", {\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*spores).*$/i,\n\tsubname : \"Circle of Spores\",\n\tsubnameShort: \"Spores\",\n\tsource : [[\"UA:TS\", 1]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Circle Spells\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"My link to the cycle of life and death gives me with the ability to cast certain spells\",\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\n\t\t\t\t\"In addition, I learn the Chill Touch cantrip\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Circle Spells\",\n\t\t\t\tspells : [\"chill touch\"],\n\t\t\t\tselection : [\"chill touch\"],\n\t\t\t\tfirstCol : 'atwill'\n\t\t\t}],\n\t\t\tspellcastingExtra : [\"gentle repose\", \"ray of enfeeblement\", \"animate dead\", \"gaseous form\", \"blight\", \"confusion\", \"cloudkill\", \"contagion\"]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Halo of Spores\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription: desc(\"As a reaction on my turn, I can do poison damage to one creature I can see within 10 ft\"),\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : (n < 6 ? 3 : n < 10 ? 6 : n < 14 ? 9 : 12) + \" poison damage\"; }),\n\t\t\taction : [[\"reaction\", \" (on my turn)\"]]\n\t\t},\n\t\t\"subclassfeature2.2\" : {\n\t\t\tname : \"Symbiotic Entity\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I expend a Wild Shape use to boost my spores instead of transforming\",\n\t\t\t\t\"I then gain 3 temporary HP per druid level and my Halo of Spores does double damage\",\n\t\t\t\t\"Also, my melee weapon attacks do +1d6 poison damage with every hit\",\n\t\t\t\t\"This lasts for 10 minutes or until I use Wild Shape again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 2 ? \"\" : Math.floor(n*3) + \" temp HP; Halo of Spores: \" + (n < 6 ? 6 : n < 10 ? 12 : n < 14 ? 18 : 24) + \" damage\";\n\t\t\t}),\n\t\t\taction : [[\"action\", \"\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/\\b(spore|symbiotic)\\b/i).test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 poison damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the word 'Spore' or 'Symbiotic' in a melee weapon's name or description, it gets treated as a weapon that is infused by my Symbiotic Entity feature, adding +1d6 poison damage in the description.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Fungal Infestation\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I kill a humanoid with my Halo of Spores, it rises as a zombie at the end of my turn\",\n\t\t\t\t\"This zombie has 1 HP, only takes the Attack action, and can only make 1 attack with it\",\n\t\t\t\t\"It follows my mental commands and takes it turn after mine; It lasts for 1 hour\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Spreading Spores\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I create a 10-ft cube of fungal spores within 30 ft, lasting for 1 min\",\n\t\t\t\t\"Any creature starting its turn in the cube takes the damage of my Halo of Spores\",\n\t\t\t\t\"The cube ends if I use this again; While the cube persists, I can't use my Halo of Spores\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Fungal Body\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription: desc(\"I'm immune to critical hits and to being blinded, deafened, frightened, and poisoned\"),\n\t\t\tsavetxt : { immune : [\"blinded\", \"deafened\", \"frightened\", \"poisoned\", \"critical hits\"] }\n\t\t}\n\t}\n});\nvar UATS_fighterBruteSubclassUA = AddSubClass(\"fighter\", \"brute-ua\", {\n\tregExpSearch : /brute/i,\n\tsubname : \"Brute\",\n\tsource : [[\"UA:TS\", 2]],\n\tfullname : \"Brute\",\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Brute Force\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 3,\n\t\t\tdescription: desc(\"I do additional damage with weapons that I'm proficient with\"),\n\t\t\tadditional : levels.map(function (n) { \n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 10 ? 4 : n < 16 ? 6 : n < 20 ? 8 : 10) + \" weapon damage\";\n\t\t\t}),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (classes.known.fighter && classes.known.fighter.level > 2 && !v.isSpell && !v.isNaturalWeapon && fields.Proficiency) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d' + (classes.known.fighter.level < 10 ? 4 : classes.known.fighter.level < 16 ? 6 : classes.known.fighter.level < 20 ? 8 : 10) + ' damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"I do +1d4 damage with weapons that I'm proficient with. This increases to 1d6 at 10th level, 1d8 at 16th level, and 1d10 at 20th level.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature7\" : {\n\t\t\tname : \"Brutish Durability\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 7,\n\t\t\tdescription : desc([\n\t\t\t\t\"I add +1d6 to all my saving throws, including death saves\",\n\t\t\t\t\"If the total of a death save is 20 or more, it counts as rolling a 20\"\n\t\t\t]),\n\t\t\tsavetxt : { text : [\"Add 1d6 to all saves\"] }\n\t\t},\n\t\t\"subclassfeature15\" : {\n\t\t\tname : \"Devastating Critical\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 15,\n\t\t\tdescription: desc(\"Whenever I score a critical hit with a weapon, I add my fighter level to the damage\"),\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"+\" + n + \" damage on crit\"; })\n\t\t},\n\t\t\"subclassfeature18\" : {\n\t\t\tname : \"Survivor\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 18,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I have less than half my max HP at the start of my turn, I heal myself\",\n\t\t\t\t\"I regain HP equal to 5 + Constitution modifier (min 1); This doesn't work if I'm at 0 HP\"\n\t\t\t])\n\t\t}\n\t}\n});\nRunFunctionAtEnd(function () {\n\tvar FSfea = newObj(ClassList.fighter.features[\"fighting style\"]);\n\tFSfea.name = \"Additional Fighting Style\";\n\tFSfea.source = [\"UA:TS\", 2];\n\tFSfea.minlevel = 10;\n\tFSfea.extrachoices = \"\";\n\tFSfea.description = desc('Choose an Additional Fighting Style using the \"Choose Feature\" button above');\n\tClassSubList[UATS_fighterBruteSubclassUA].features.subclassfeature10 = FSfea;\n});\nAddSubClass(\"wizard\", \"school of invention-ua\", {\n\tregExpSearch : /^(?=.*wizard)(?=.*invent(ion|or)).*$/i,\n\tsubname : \"School of Invention\",\n\tsubnameShort: \"Invention\",\n\tfullname : \"Wizard (Inventor)\",\n\tsource : [[\"UA:TS\", 2]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Tools of the Inventor\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription: desc(\"I gain proficiency with light armor and two tools of my choice\"),\n\t\t\ttoolProfs : [[\"Any one tool\", 2]],\n\t\t\tarmorProfs : [true, false, false, false]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Arcanomechanical Armor\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"After a long rest, I can transform a studded leather armor into arcanomechanical armor\",\n\t\t\t\t\"This is a magic light armor that gives AC 12 + Dex mod and force resistance, if attuned\",\n\t\t\t\t\"Only I can attune to it; Creating a new one removes the magic from the previous\"\n\t\t\t]),\n\t\t\tdmgres : [\"Force\"],\n\t\t\tarmorOptions : [{\n\t\t\t\tregExpSearch : /arcanomechanical/i,\n\t\t\t\tname : \"Arcanomechanical\",\n\t\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\t\ttype : \"light\",\n\t\t\t\tac : 12,\n\t\t\t\tweight : 8,\n\t\t\t\tinvName : \"Arcanomechanical armor\",\n\t\t\t\tselectNow : true\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature2.2\" : {\n\t\t\tname : \"Reckless Casting\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can attempt to cast a random spell or cantrip by rolling a d10 on a table\",\n\t\t\t\t\"On a roll of 10, I roll again twice on that table and cast both results\",\n\t\t\t\t\"However, if I then roll 10 on either dice, the whole casting fails and the action is wasted\",\n\t\t\t\t\"If I choose cantrip, I roll on the table once and cast the result\",\n\t\t\t\t\"If I choose a spell, I expend a spell slot and roll twice on the table for the slot's level\",\n\t\t\t\t\"I can then choose which of the results I use; Use 5th-level table for spell slots over level 5\"\n\t\t\t]),\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Reckless Casting Tables\",\n\t\t\t\tnote : \"\\nd10\\tCantrip\\t\\td10\\tCantrip\" + desc([\n\t\t\t\t\t\" 1\\tAcid Splash\\t\\t    6\\tRay of Frost\",\n\t\t\t\t\t\" 2\\tChill Touch\\t\\t    7\\tShocking Grasp\",\n\t\t\t\t\t\" 3\\tFire Bolt\\t\\t    8\\tSacred Flame\",\n\t\t\t\t\t\" 4\\tLight\\t\\t    9\\tThorn Whip\",\n\t\t\t\t\t\" 5\\tPoison Spray\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t1st-Level Spell\\td10\\t1st-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBurning Hands\\t    6\\tFog Cloud\",\n\t\t\t\t\t\" 2\\tChromatic Orb\\t    7\\tJump\",\n\t\t\t\t\t\" 3\\tColor Spray\\t\\t    8\\tMagic Missile\",\n\t\t\t\t\t\" 4\\tFaerie Fire\\t\\t    9\\tThunderwave\",\n\t\t\t\t\t\" 5\\tFalse Life\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t2nd-Level Spell\\td10\\t2nd-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlur\\t\\t    6\\tLevitate\",\n\t\t\t\t\t\" 2\\tDarkness\\t\\t    7\\tMelf's Acid Arrow\",\n\t\t\t\t\t\" 3\\tEnlarge/Reduce\\t    8\\tScorching Ray\",\n\t\t\t\t\t\" 4\\tGust of Wind\\t    9\\tShatter\",\n\t\t\t\t\t\" 5\\tInvisibility\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t3rd-Level Spell\\td10\\t3rd-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlink\\t\\t    6\\tGaseous Form\",\n\t\t\t\t\t\" 2\\tFear\\t\\t    7\\tLightning Bolt\",\n\t\t\t\t\t\" 3\\tFeign Death \\t    8\\tSleet Storm\",\n\t\t\t\t\t\" 4\\tFireball\\t\\t    9\\tStinking Cloud\",\n\t\t\t\t\t\" 5\\tFly\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t4th-Level Spell\\td10\\t4th-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlight\\t\\t    6\\tIce Storm\",\n\t\t\t\t\t\" 2\\tConfusion\\t\\t    7\\tPhantasmal Killer\",\n\t\t\t\t\t\" 3\\tEvard's Black Tentacles\\t    8\\tStoneskin\",\n\t\t\t\t\t\" 4\\tFire Shield\\t\\t    9\\tWall of Fire\",\n\t\t\t\t\t\" 5\\tGreater Invisibility\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t5th-Level Spell\\td10\\t5th-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tCloudkill\\t\\t    6\\tInsect Plague\",\n\t\t\t\t\t\" 2\\tCone of Cold\\t    7\\tMass Cure Wounds\",\n\t\t\t\t\t\" 3\\tDestructive Wave\\t    8\\tWall of Force\",\n\t\t\t\t\t\" 4\\tFlame Strike\\t    9\\tWall of Stone\",\n\t\t\t\t\t\" 5\\tHold Monster\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t])\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Alchemical Casting\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"I can manipulate spells cast while wearing and attuned to my Arcanomechanical Armor\",\n\t\t\t\t\"By expending an additional 1st or 2nd-level spell slot, I do the following:\",\n\t\t\t\t\"\\u2022 1st: I can substitute acid, cold, fire, lightning, or thunder damage for another type\",\n\t\t\t\t\"\\u2022 2nd: I increase the spells damage, if any, by 2d10 force damage against one target\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Prodigious Inspiration\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 10,\n\t\t\tdescription: desc(\"As a bonus action, I can replace a prepared spell with another from my spellbook\"),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Controlled Chaos\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I expend a spell slot to cast a spell using Reckless Casting, it is more powerful\",\n\t\t\t\t\"I can roll on the table that is one level higher than the spell slot expended\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n// ua_20180409_Order-Domain.js\r\n// This file adds the content from the Unearthed Arcana: Order Domain article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:OD\"] = {\r\n\tname : \"Unearthed Arcana: Order Domain\",\r\n\tabbreviation : \"UA:OD\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_OrderDomain.pdf\",\r\n\tdate : \"2018/04/09\"\r\n};\r\n\r\n// New Subclass for Cleric: Order Domain\r\nAddSubClass(\"cleric\", \"order domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*order).*$/i,\r\n\tsubname : \"Order Domain\",\r\n\tsource : [[\"UA:OD\", 1]],\r\n\tspellcastingExtra : [\"command\", \"heroism\", \"enhance ability\", \"hold person\", \"mass healing word\", \"slow\", \"compulsion\", \"locate creature\", \"commune\", \"dominate person\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Voice of Authority\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I use a spell slot to cast a spell on an ally, it can use its reaction to attack\",\r\n\t\t\t\t\"The ally makes one weapon attack against a target of my choice that I can see\",\r\n\t\t\t\t\"If the spell targets multiple allies, I can choose which one can make the attack\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Order's Demand\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all chosen targets in 30 ft that can see or hear me must make a Wis save\",\r\n\t\t\t\t\"If failed, it is charmed by me until the end of my next turn or it takes any damage\",\r\n\t\t\t\t\"Also, I can choose to have any of the charmed targets to fall prone on a failed save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Order's Dominion\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast an enchantment spell using a spell slot, I regain one expended spell slot\",\r\n\t\t\t\t\"The regained slot must be lower level than the one used, and no higher than 5th-level\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 force damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 force damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra force damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Order's Wrath\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I deal my Divine Strike damage to a creature, it takes extra damage from my allies\",\r\n\t\t\t\t\"The first time each turn that it is hit with a weapon attack, it takes 2d8 force damage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20180514_Centaur-and-Minotaur.js\r\n// This file adds the content from the Unearthed Arcana: Centaur and Minotaur article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CnM\"] = {\r\n\tname : \"Unearthed Arcana: Centaur and Minotaur\",\r\n\tabbreviation : \"UA:CnM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA-Centaur.pdf\",\r\n\tdate : \"2018/05/14\"\r\n};\r\n\r\n// Add the Centaur race\r\nRaceList[\"centaur-ua\"] = {\r\n\tregExpSearch : /centaur/i,\r\n\tname : \"Centaur\",\r\n\tsortname : \"Centaur\",\r\n\tsource : [[\"UA:CnM\", 1]],\r\n\tplural : \"Centaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\r\n\t\tname : \"Hooves\",\r\n\t\tsource : [[\"UA:CnM\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tskills : [\"Survival\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" stand between 7 and 8 feet tall (front hooves to their crowns) and 6 to 8 feet long (from their chest to the back of their rumps)\", // from 3.5e Races of Faerun\r\n\tweight : \" weigh anywhere from 950 to 1200 lb\", // from 3.5e Races of Faerun\r\n\theightMetric : \" stand between 2,1 and 2,4 metres tall (front hooves to their crowns) and 1,8 to 2,4 metres long (from their chests to the back of their rumps)\",\r\n\tweightMetric : \" weigh anywhere from 430 to 550 kg\",\r\n\tscores : [2, 0, 0, 0, 1, 0],\r\n\ttrait : \"Centaur (+2 Strength +1 Wisdom)\" + desc([\r\n\t\t\"Hooves: I can use my hooves in melee (1d6 bludgeoning damage).\",\r\n\t\t\"Charge: Once per short rest, if I move 20 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can roll the weapon's damage dice twice.\",\r\n\t\t\"Equine Build: I count as one size larger for my carrying capacity. While climbing, 1 ft of movement costs me 5 ft. A medium or smaller creature can ride me as a mount.\",\r\n\t\t\"Hybrid Nature: I am affected by effects that work on either humanoids or monstrosities.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"charge\" : {\r\n\t\t\tname : \"Charge\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\n\r\n// Add the Minotaur race\r\nRaceList[\"minotaur-uacnm\"] = {\r\n\tregExpSearch : /minotaur/i,\r\n\tname : \"Minotaur\",\r\n\tsortname : \"Minotaur\",\r\n\tsource : [[\"UA:CnM\", 2]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Minotaur\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"UA:CnM\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"One horns attack as a bonus action if taking the Dash action\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\r\n\theight : \" are well over 6 feet tall\",\r\n\tweight : \" weigh around 300 lb\",\r\n\theightMetric : \" are well over 1,8 metres tall\",\r\n\tweightMetric : \" weigh around 135 kg\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tabilitySave : 1,\r\n\ttrait : \"Minotaur (+2 Strength +1 Constitution)\" + desc([\r\n\t\t\"Horns: I have horns that I can use in melee (1d6 piercing damage).\",\r\n\t\t\"Goring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\",\r\n\t\t\"Hammering Horns: As a reaction after I hit a melee attack during my Attack action, I can shove that target with my horns, if it is no more than one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 5 ft away from me.\",\r\n\t\t\"Hybrid Nature: I am affected by effects that work on either humanoids or monstrosities.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"goring rush\" : {\r\n\t\t\tname : \"Goring Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\r\n\t\t},\r\n\t\t\"hammering horns\" : {\r\n\t\t\tname : \"Hammering Horns\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"reaction\", \" (after hit)\"]]\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20180611_Giant-Soul-Sorcerer.js\r\n// This file adds the content from the Unearthed Arcana: Giant Soul Sorcerer article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:GSS\"] = {\r\n\tname : \"Unearthed Arcana: Giant Soul Sorcerer\",\r\n\tabbreviation : \"UA:GSS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_GiantSoul.pdf\",\r\n\tdate : \"2018/06/11\"\r\n};\r\n\r\nAddSubClass(\"sorcerer\", \"giant soul-ua\", {\r\n\tregExpSearch : /^(?=.*giant)(?=.*soul)(?=.*sorcerer).*$/i,\r\n\tsubname : \"Giant Soul\",\r\n\tsource : [[\"UA:GSS\", 1]],\r\n\tfullname : \"Giant Soul Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Jotun Resilience\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My hit point maximum increases by an amount equal to my sorcerer level\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Jotun Resilience (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Mark of Ordning\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a giant heritage using the \"Choose Feature\" button above',\r\n\t\t\t\t\"I learn spells based on my giant heritage, which I add to my known spells\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Cloud Giant\", \"Fire Giant\", \"Frost Giant\", \"Hill Giant\", \"Stone Giant\", \"Storm Giant\"],\r\n\t\t\t\"cloud giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Cloud Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Minor Illusion, Fog Cloud and Invisibility to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"minor illusion\", \"fog cloud\", \"invisibility\"],\r\n\t\t\t\t\tselection : [\"minor illusion\", \"fog cloud\", \"invisibility\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"fire giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Fire Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Fire Bolt, Burning Hands, and Flaming Sphere to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"fire bolt\", \"burning hands\", \"flaming sphere\"],\r\n\t\t\t\t\tselection : [\"fire bolt\", \"burning hands\", \"flaming sphere\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"frost giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Frost Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Ray of Frost, Armor of Agathys, and Hold Person to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"ray of frost\", \"armor of agathys\", \"hold person\"],\r\n\t\t\t\t\tselection : [\"ray of frost\", \"armor of agathys\", \"hold person\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"hill giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Hill Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Shillelagh, Heroism, and Enlarge/Reduce to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"shillelagh\", \"heroism\", \"enlarge/reduce\"],\r\n\t\t\t\t\tselection : [\"shillelagh\", \"heroism\", \"enlarge/reduce\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"stone giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Stone Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Resistance, Entangle, and Spike Growth to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"resistance\", \"entangle\", \"spike growth\"],\r\n\t\t\t\t\tselection : [\"resistance\", \"entangle\", \"spike growth\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"storm giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Storm Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Thunderwave, Shocking Grasp, and Gust of Wind to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"thunderwave\", \"shocking grasp\", \"gust of wind\"],\r\n\t\t\t\t\tselection : [\"thunderwave\", \"shocking grasp\", \"gust of wind\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{ feature : \"subclassfeature6\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of Lost Ostoria\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the giant heritage'),\r\n\t\t\tchoices : [\"Cloud Giant\", \"Fire Giant\", \"Frost Giant\", \"Hill Giant\", \"Stone Giant\", \"Storm Giant\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"cloud giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Cloud Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action after casting any of my Mark of Ordning spells, I can teleport\",\r\n\t\t\t\t\t\"I teleport to an unoccupied space that I can see up to my Con mod + 10 ft away\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"fire giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Fire Giant\",\r\n\t\t\t\tdescription: desc(\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.baseWeaponName == 'fire bolt') output.extraDmg += Math.max(What('Con Mod'), 1);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells: Fire Bolt, Burning Hands, and Flaming Sphere\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (spName == \"sorcerer\" && (/^(fire bolt|burning hands|flaming sphere)$/i).test(spellKey)) {\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/d(6|10)/, \"d$1+\" + Math.max(1, What(\"Con Mod\")));\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells: Fire Bolt, Burning Hands, and Flaming Sphere\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"frost giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Frost Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I gain temporary HP\",\r\n\t\t\t\t\t\"I gain my Con mod in temporary HP (min 1) and its added to that of the spell (if any)\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"hill giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Hill Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I can magically push others\",\r\n\t\t\t\t\t\"I can select up to two creatures within 5 ft of me that each have to make a Str save\",\r\n\t\t\t\t\t\"If failed, it is pushed my Con mod (min 1) + 5 ft away from me; It can choose to fail\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"stone giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Stone Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I gain a bonus to AC\",\r\n\t\t\t\t\t\"My AC increases with my Constitution modifier (min +1) until the end of my next turn\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"storm giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Storm Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I shoot lightning\",\r\n\t\t\t\t\t\"Up to 3 targets in 30 ft that I can see take my Con mod (min 1) in lightning damage\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage of Fallen Ostoria\",\r\n\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I start casting a sorcerer spell using a spell slot on my turn, I can grow in size\",\r\n\t\t\t\t\"It lasts for 1 min or until I die or am incapacitated; I can activate it only once per turn\",\r\n\t\t\t\t\"While it lasts, I enjoy the following benefits (which are cumulative, except the damage):\",\r\n\t\t\t\t\"\\u2022 I increase size by one category (from Medium to Large, for example)\",\r\n\t\t\t\t\"\\u2022 My current HP and maximum HP increase by a number equal to my sorcerer level\",\r\n\t\t\t\t\"\\u2022 My reach and walking speed both increase by 5 ft\",\r\n\t\t\t\t\"\\u2022 I gain advantage on Strength checks and Strength saving throws\",\r\n\t\t\t\t\"\\u2022 I add my Constitution modifier to the damage of my melee weapon attacks (min +1)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : \"+\" + n + \" HP\";\r\n\t\t\t}),\r\n\t\t\tusages : levels.map(function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : n < 18 ? 1 : 2;\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Blessing of the All Father\",\r\n\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"I add +2 to my Constitution and its maximums increases to 22\"),\r\n\t\t\tscores : [0, 0, 2, 0, 0, 0],\r\n\t\t\tscoresMaximum : [0, 0, 22, 0, 0, 0]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20180723_Races-of-Eberron.js\n// This file adds the content from the Unearthed Arcana: Races of Eberron article to MPMB's Character Record Sheet\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\n\n// Define the sources\nSourceList[\"UA:RoE\"] = {\n\tname : \"Unearthed Arcana: Races of Eberron\",\n\tabbreviation : \"UA:RoE\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Eberron\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/723UA_EberronRaces7232018.pdf\",\n\tdate : \"2018/07/23\"\n};\n\n// The changeling\nRaceList[\"changeling-ua2\"] = {\n\tregExpSearch : /changeling/i,\n\tname : \"Changeling\",\n\tsource : [[\"WGtE\", 61], [\"UA:RoE\", 2]],\n\tplural : \"Changelings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Choose two from Deception, Intimidation, Insight, and Persuasion\",\n\tlanguageProfs : [\"Common\", 2],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" reach adulthood in their early teens and live around 80 years\",\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\n\tscorestxt : \"+2 Charisma, and +1 Dexterity or +1 Intelligence\",\n\tscores : [0, 0, 0, 0, 0, 2],\n\ttrait : \"Changeling (+2 Charisma, and +1 Dexterity or +1 Intelligence)\\nChange Appearance: As an action, I can polymorph to or from a humanoid form of my size I have seen, not changing my equipment. I revert back if I die and have adv. on Deception.\\nUnsettling Visage: As a reaction once per short rest when I'm attacked by a seen attacker, I can impose disadv. Doing this reveals my shapeshifting nature to all within 30 ft.\\nDivergent Persona: I have proficiency with one tool, and an alternate persona. While in the alternate form, my proficiency bonus with that tool is doubled.\",\n\taction : [[\"action\", \"Change Appearance\"]],\n\tfeatures : {\n\t\t\"unsettling visage\" : {\n\t\t\tname : \"Unsettling Visage\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t}\n\t}\n};\n\n// The kalashtar\nRaceList[\"kalashtar-ua\"] = { //this code includes contributions by /u/SoilentBrad\n\tregExpSearch : /kalashtar/i,\n\tname : \"Kalashtar\",\n\tsource : [[\"WGtE\", 63], [\"UA:RoE\", 4]],\n\tplural : \"Kalashtar\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Advantage with either Insight, Intimidation, Performance, or Persuasion\",\n\tlanguageProfs : [\"Common\", \"Quori\", 1],\n\tsavetxt : { immune : [\"effects that require me to dream\"] },\n\tdmgres : [\"Psychic\"],\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\n\theight : \" range from 5 and a half to well over 6 feet tall (5'4\\\" + 2d6\\\")\",\n\tweight : \" weigh around 145 lb (110 + 2d6 \\xD7 1d6 lb)\",\n\theightMetric : \" range from 1,7 to 1,9 metres tall (160 + 5d6 cm)\",\n\tweightMetric : \" weigh around 65 kg (50 + 5d6 \\xD7 2d6 / 10 kg)\",\n\tscorestxt : \"+1 Wisdom, +1 Charisma, and +1 to one other ability score of my choice\",\n\tscores : [0, 0, 0, 0, 1, 1],\n\ttrait : \"Kalashtar (+1 Wisdom, +1 Charisma, and +1 to one other\" + (typePF ? \"\" : \" ability score of my choice\") + \")\\nDual Mind: As a reaction after I roll a Wis\" + (typePF ? \" save, I can gain adv.\" : \"dom saving throw, I can gain advantage\") + \" on it.\\nMind Link: I can speak telepathically to any creature I can see within 60 ft, as long as it can speak at least one language. As a bonus action, I can give that creature the ability to speak telepathically back to me until the start of my next turn.\\nPsychic Glamour: I have adv. on Insight, Intimidation, Performance, or Persuasion checks.\\nSevered from Dreams: I don't dream and thus immune to spells that affect dreams.\",\n\taction : [['bonus action', 'Mind Link'], ['reaction', 'Dual Mind']]\n};\n\n// The four subraces of the shifter\nRaceList[\"beasthide shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*beast)(?=.*hide).*$/i,\n\tname : \"Beasthide shifter\",\n\tsortname : \"Shifter, Beasthide\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Beasthide shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Athletics\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 2, 0, 0, 0],\n\ttrait : \"Beasthide Shifter: (+1 Dexterity, +2 Constitution)\\n\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to 1d6 + my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have a +1 bonus to AC\",\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"longtooth shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*long)(?=.*(tooth|teeth)).*$/i,\n\tname : \"Longtooth shifter\",\n\tsortname : \"Shifter, Longtooth\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Longtooth shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\n\t\tname : \"Longtooth Fangs\",\n\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\t\tdamage : [1, 6, \"piercing\"],\n\t\tdescription : \"Only while shifted; One attack as bonus action\",\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Intimidation\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [2, 1, 0, 0, 0, 0],\n\ttrait : \"Longtooth Shifter: (+2 Strength, +1 Dexterity)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I use my elongated fangs to make unarmed strikes, dealing 1d6 piercing damage. As a bonus action, I can maken one attack with my fangs.\",\n\taction : ['bonus action', 'Attack with Longtooth Fangs'],\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"swiftstride shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*swift)(?=.*stride).*$/i,\n\tname : \"Swiftstride shifter\",\n\tsortname : \"Shifter, Swiftstride\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Swiftstride shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Acrobatics\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 2, 0, 0, 0, 1],\n\ttrait : \"Swiftstride Shifter: (+2 Dexterity, +1 Charisma)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nWhile transformed like this, my walking speed increases with 5 ft.\\nAs a reaction when an enemy ends its turn within 5 ft of me while I'm shifted, I can move 10 ft without provoking opportunity attacks.\",\n\taction : ['reaction', 'Stride (while shifted)'],\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"wildhunt shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*wild)(?=.*hunt).*$/i,\n\tname : \"Wildhunt shifter\",\n\tsortname : \"Shifter, Wildhunt\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Wildhunt shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Perception\", \"Survival\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 2, 0],\n\ttrait : \"Wildhunt Shifter: (+1 Dexterity, +2 Wisdom)\\nShifting: As a bonus action once per short rest, I can transform and get adv. on Wis checks.\" + (typePF ? \" \" : \"\\n\") + \"This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nMark the Scent: As a bonus action once per short rest, I can mark a creature that I can see within 10 ft. Until the end of my next long rest, my proficiency bonus is doubled for checks to find this target, and I always know its location if it is within 60 ft of me.\",\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t},\n\t\t\"mark the scent\" : {\n\t\t\tname : \"Mark the Scent\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t}\n};\n\n// The three subraces of the warforged\nRaceList[\"envoy warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*envoy).*$/i,\n\tname : \"Envoy warforged\",\n\tsortname : \"Warforged, Envoy\",\n\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\tplural : \"Envoy warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tskillstxt : \"Choose any one skill, any one tool, and expertise with any one tool I'm proficient with\",\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscorestxt : \"+1 Constitution and +1 to two other ability scores of my choice\",\n\tscores : [0, 0, 1, 0, 0, 0],\n\ttrait : \"Envoy Warforged (+1 Constitution and +1 to two other abilit\" + (typePF ? \"ies\" : \"y scores of my choice\") + \")\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nIntegrated Tool: I have expertise with one tool and it is integrated into my body.\",\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\nRaceList[\"juggernaut warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*juggernaut).*$/i,\n\tname : \"Juggernaut warforged\",\n\tsortname : \"Warforged, Juggernaut\",\n\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\tplural : \"Juggernaut warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*warforged)(?=.*iron)(?=.*fists?).*$/i,\n\t\tname : \"Warforged Iron Fists\",\n\t\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\tselectNow : true\n\t}],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscores : [2, 0, 1, 0, 0, 0],\n\ttrait : \"Juggernaut Warforged (+2 Strength, +1 Constitution)\" + (typePF ? \"\" : \" Iron Fists: unarmed strikes do 1d4.\") + \"\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nPowerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\" + (typePF ? \" Iron Fists: My unarmed strikes do 1d4 damage.\" : \"\"),\n\tcarryingCapacity : 2,\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\nRaceList[\"skirmisher warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*skirmisher).*$/i,\n\tname : \"Skirmisher warforged\",\n\tsortname : \"Warforged, Skirmisher\",\n\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\tplural : \"Skirmisher warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Skirmisher Warforged (+2 Dexterity, +1 Constitution)\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nLight Step: If I travel alone for an hour or more, I can move stealthily at a normal pace.\",\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\n\n// ua_20180810_Magic-Items-of-Eberron.js\r\n// This file adds the content from the Unearthed Arcana: Magic Items of Eberron to MPMB's Character Record Sheet\r\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\r\n\r\n// Define the sources\r\nSourceList[\"UA:MIoE\"] = {\r\n\tname : \"Unearthed Arcana: Magic Items of Eberron\",\r\n\tabbreviation : \"UA:MIoE\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_Magic_Items_of_Eberron.pdf\",\r\n\tdate : \"2018/08/10\"\r\n};\r\n\r\n// Different or not available in Eberron: Rising from the Last War\r\nMagicItemsList[\"band of loyalty-ua\"] = {\r\n\tname : \"Band of Loyalty\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"ring\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I'm reduced to zero hit points while attuned to this ring, I instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\tdescriptionFull : \"If you are reduced to zero hit points while attuned to a band of loyalty, you instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\tattunement : true\r\n}\r\nvar UAMIoE_docentFullDescription = [\r\n\t\"A docent is a small metal sphere, approximately 2 inches across, studded with dragonshards. Despite a strong magical aura, it has no obvious abilities. When you attune to a docent, the sphere becomes embedded in your chest and comes to life\\u2014literally.\",\r\n\t\">>Sentience<<. A docent is a sentient neutral item with an Intelligence of 16, a Wisdom of 14, and a Charisma of 14. It can perceive the world through your senses.\",\r\n\t\"A docent communicates telepathically with its wielder and can speak, read, and understand Common and Giant.\",\r\n\t\">>Personality<<. A docent is designed to advise and assist the warforged it's attached to. One of the simple functions of a docent is to serve as a translator. The docent's properties are under its control, and if you have a bad relationship with your docent it may refuse to assist you… or simply lie about information that it obtains. However, if you treat your docent well it could serve as a useful ally.\",\r\n\t\"The origin of docents is a great mystery. House Cannith created the first warforged thirty years ago. But the docents come from the distant land of Xen'drik and appear to be thousands of years old. Were they created to interface with some other form of construct? Or are the modern warforged a new interpretation of an ancient design? The docents claim to have forgotten their creators… but this is a mystery waiting to be unraveled. While all docents come from Xen'drik, some have been brought to Khorvaire by explorers and it's possible to encounter them in the Five Nations.\",\r\n\t\">>Languages<<. All docents understand Common and Giant, but a docent knows up to four additional languages. Elvish and Draconic are common options. If a docent knows less than six languages in total, it can add new languages to its repertoire after encountering them. So a docent found in Xen'drik may have never encountered a dwarf before… but after spending some time in Khorvaire studying dwarves, it could pick up the Dwarvish language.\",\r\n\t\">>Properties<<. A docent possesses up to three of the following properties:\",\r\n\t\"\\u2022 The docent can cast the detect magic spell at will.\",\r\n\t\"\\u2022 The docent can cast the detect evil and good spell at will.\",\r\n\t\"\\u2022 The docent can detect any form of divination or scrying targeting it and its warforged host.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Arcana) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (History) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Investigation) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Nature) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Insight) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Perception) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Medicine) checks targeting its warforged host. If the host is rendered unconscious, the docent will automatically attempt to stabilize them once each turn.\",\r\n\t\"You can use a bonus action on your turn to request that the docent use one of its properties on your behalf.\"\r\n];\r\nMagicItemsList[\"docent-ua\"] = {\r\n\tname : \"Docent\",\r\n\tsource : [[\"WGtE\", 121], [\"UA:MIoE\", 3]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I can embed this sentient small metal sphere studded with dragonshards into my chest. I can communicate telepathically with it. It can serve me as an advisor and a translator, as it knowns 6 languages. It also knows spells and/or skills that I can have it use as a bonus action. See Notes page.\",\r\n\tdescriptionFull : UAMIoE_docentFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(UAMIoE_docentFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|assist) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"feather token-ua\"] = {\r\n\tname : \"Feather Token\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as a bonus action while the token is in my possession, I can use it to cast Feather Fall. This small metal disk is inscribed with the image of a feather and only holds sufficient charge for a single use, after which it loses its power.\",\r\n\tdescriptionFull : \"This small metal disk is inscribed with the image of a feather. While the token is in your possession, you can cast feather fall as a bonus action. A feather token only holds sufficient charge for a single use, after which it loses its power. While it's an expensive form of insurance, frequent airship travelers and citizens of Sharn often appreciate the security it provides.\"\r\n}\r\nMagicItemsList[\"glamerweave-ua\"] = {\r\n\tname : \"Glamerweave\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Glamerweave clothing is imbued with cosmetic illusions that have no impact on combat. Most of the time, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. A gown could appear to be wreathed in flames, or a hat orbited by illusory butterflies.\",\r\n\tdescriptionFull : \"Glamerweave clothing is imbued with cosmetic illusions. Traditionally, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. You could have a gown that appears to be wreathed in flames, or a hat that's orbited by illusory butterflies. Regardless of the design, these are cosmetic effects and have no impact on combat.\\n\\n\" + [\r\n\t\ttoUni(\"1d8\\tDescription\"),\r\n\t\t\"  1\\tA hat orbited by the twelve moons\",\r\n\t\t\"  2\\tLong gloves wreathed in cold flames\",\r\n\t\t\"  3\\tA traveler's cloak lined with glittering stars\",\r\n\t\t\"  4\\tA scarlet gown that glows with inner radiance\",\r\n\t\t\"  5\\tA cloth shirt that appears to be a chain shirt\",\r\n\t\t\"  6\\tA silver gown surrounded by drifting snowflakes\",\r\n\t\t\"  7\\tA robe with two dragons wrestling across the back\",\r\n\t\t\"  8\\tA cloak that slowly and subtly shifts colors\"\r\n\t].join(\"\\n\")\r\n}\r\nMagicItemsList[\"shiftweave-ua\"] = {\r\n\tname : \"Shiftweave\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Up to five different outfits are embedded into these clothes that have transmutation magic woven into their fabric. As an action, I can speak a command word to transform the outfit into one of the other designs contained within.\",\r\n\tdescriptionFull : \"Transmutation magic is woven into the fabric of shiftweave clothing. When a suit of shiftweave is created, up to five different outfits can be embedded into the cloth. By taking an action and uttering a command word, you can transform your shiftweave outfit into one of the other designs contained within it. To determine the price of a suit of shiftweave, combine the value of all of the outfits it contains and add 25 gp to that amount.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"armblade-ua\"] = {\r\n\tname : \"Armblade\",\r\n\tsource : [[\"WGtE\", 120], [\"UA:MIoE\", 3]],\r\n\ttype : \"weapon (any one-handed melee weapon)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a warforged, I can integrate this weapon in my forearm by attuning to it. While attached, it can't be disarmed or removed against my will, but I can't use that hand for other actions. I can spend one minute to end the attunement and remove the armblade. The weapon isn't inherently magical.\",\r\n\tdescriptionFull : \"An armblade is a weapon designed to integrate with the forearm of a warforged. If you're a warforged, you can attach an armblade by attuning to it. An attached armblade cannot be disarmed or removed from you against your will, but while the weapon is attached you cannot use that hand for other actions. You can spend one minute to end the attunement and remove the armblade.\\n   An armblade isn't inherently considered to be a magic weapon for purposes of overcoming damage resistance. However, any sort of magical melee weapon could be created as an armblade, so you could acquire a vicious armblade or a vorpal armblade.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t},\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn (!inObj.description || (/two.{0,3}handed/i).test(inObj.description)) || (!inObj.range || !(/melee/i).test(inObj.range));\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"wand sheath-ua\"] = {\r\n\tname : \"Wand Sheath\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 4]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. The wand doesn't count to the number of items I can attune to. As a bonus action, I can then retract/extend it while keeping my hand free.\",\r\n\tdescriptionLong : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. I still need to attune to this wand if it requires me to do so, but the wand wand then doesn't count towards the number of items I can attune to. When I take the wand out of the sheath, I lose attunement with it. As a bonus action, I can retract or extend a wand in the sheath. While retracted, the wand can't be damaged. While extended, I can use the wand as if holding it, but my hand remains free for other actions.\",\r\n\tdescriptionFull : \"A wand sheath is designed to integrate with the forearm of a warforged. If you're a warforged, you can attach a wand sheath by attuning to it. While the wand sheath is attached, it cannot be removed from you against your will. You can spend one minute to end the attunement and remove the wand sheath.\\n   You can insert a wand into the sheath as an action. While the wand is sheathed, you gain the following benefits:\\n \\u2022 You can retract the wand into your forearm or extend it from your forearm as a bonus action. While it is retracted, it cannot be damaged or removed.\\n \\u2022 While the wand is extended, you can use it as if you were holding it, but your hand remains free for other actions.\\n \\u2022 If the sheathed wand requires attunement, you must attune to the wand before you can use it. However, the wand sheath and the attached wand only count as a single item for purposes of the maximum number of items you can be attuned to. If you remove the wand from the sheath, you immediately lose your attunement to the wand.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t},\r\n\taction : [[\"action\", \" (insert)\"], [\"bonus action\", \" (extend/retract)\"]]\r\n}\r\n\n// ua_20180813_Races-of-Ravnica.js\n// This file adds the content from the Unearthed Arcana: Races of Ravnica article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:RoR\"] = {\n\tname : \"Unearthed Arcana: Races of Ravnica\",\n\tabbreviation : \"UA:RoR\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Magic: The Gathering\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_RavnicaRaces.pdf\",\n\tdate : \"2018/08/13\"\n};\n\n// Add Loxodon\nRaceList[\"loxodon-ua\"] = {\n\tregExpSearch : /loxodon/i,\n\tname : \"Loxodon\",\n\tsource : [[\"UA:RoR\", 1]],\n\tplural : \"Loxodons\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\ttoolProfs : [\"Mason's tools\"],\n\tarmorOptions : [{\n\t\tregExpSearch : /^((?=.*natural)(?=.*armou?r)|(?=.*loxodon)(?=.*(hide|skin))).*$/i,\n\t\tname : \"Natural Armor\",\n\t\tsource : [[\"UA:RoR\", 1]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Keen Smell\", 0]],\n\tage : \" physically mature at the same rate as humans, but are considered young until they reach the age of 60 and live about 450 years\",\n\theight : \" stand between 7 and 8 feet tall\",\n\tweight : \" weigh between 300 and 400 pounds\",\n\theightMetric : \" stand between 2 and 2,5 metres tall\",\n\tweightMetric : \" weigh between 150 to 200 kg\",\n\tscores : [0, 0, 2, 0, 1, 0],\n\ttrait : \"Loxodon (+2 Constitution, +1 Wisdom)\" + desc([\n\t\t\"Powerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\",\n\t\t\"Stonecunning: I can add double my proficiency bonus to Intelligence (History) checks related to the origin of stonework, instead of my normal proficiency bonus.\",\n\t\t\"Keen Smell: I have advantage on Wisdom (Perception) and Intelligence (Investigation) checks that rely on smell.\",\n\t\t\"Natural Armor: \" + (typePF ? \"I have an AC of\" : \"My thick, leathery skin gives me AC\") + \" 13 + Dexterity modifier + shield.\"\n\t]),\n\tcarryingCapacity : 2\n};\n\n// Add Simic Hybrid\nRaceList[\"simic hybrid-ua\"] = {\n\tregExpSearch : /^(?=.*(simic|elf|dwarf|human|orc))(?=.*hybrid).*$/i,\n\tname : \"Simic hybrid\",\n\tsource : [[\"UA:RoR\", 3]],\n\tplural : \"Simic hybrids\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptionsSp : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*grappling)(?=.*(appendage|tentacle|claw)).*$/i,\n\t\tname : \"Grappling Appendages\",\n\t\tsource : [[\"UA:RoR\", 3]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tdescription : \"After hitting, start grapple on target as a bonus action\"\n\t}, {\n\t\tregExpSearch : /^(?=.*acid)(?=.*spit).*$/i,\n\t\tname : \"Acid Spit\",\n\t\tsource : [[\"UA:RoR\", 3]],\n\t\tability : 3,\n\t\ttype : \"Natural\",\n\t\tdamage : [\"C\", 10, \"acid\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Dex save, success - no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\textraACSp : {\n\t\tname : \"Carapace\",\n\t\tmod : 1,\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor.\",\n\t\tstopeval : function (v) { return v.heavyArmor; }\n\t},\n\tage : \" age the same as the base humanoid race, although the maximum lifespan is somewhat reduced\",\n\theight : \" are of the same height as another of its humanoid race\",\n\tweight : \" are of the same weight as another of its humanoid race\",\n\tscorestxt : \"+2 Constitution and +1 to one other ability score of my choice\",\n\tscores : [0, 0, 2, 0, 0, 0],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (1st level): Choose one to three types of enhancement using the \\\"Racial Options\\\" button: Manta Glide, Nimble Climber, or Underwater Adaptation.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can either choose one I didn't take at 1st level or choose Grappling Appendages, Carapace, or Acid Spit.\",\n\tfeatures : {\n\t\t\"animal enhancement\" : {\n\t\t\tname : \"Animal Enhancement\",\n\t\t\tminlevel : 5,\n\t\t\teval : function() {\n\t\t\t\tvar curChoice = ParseRace(What('Race Remember'))[1].capitalize();\n\t\t\t\tvar AEoptions = [\"Manta Glide\", \"Nimble Climber\", \"Underwater Adaptation\", \"Grappling Appendages\", \"Carapace\", \"Acid Spit\"];\n\t\t\t\tif (curChoice && AEoptions.indexOf(curChoice) !== -1) AEoptions.splice(AEoptions.indexOf(curChoice), 1);\n\t\t\t\tvar theChoice = AskUserOptions('Simic Hybrid 5th-level Animal Enhancement', 'The Simic Hybrid race offers a choice of animal enhancement at 5th-level. Make a selection to update the sheet accordingly. You can only change this selection by removing the Simic Hybrid race or changing its variant.', AEoptions, 'radio', true);\n\t\t\t\tvar feaTxt = '';\n\t\t\t\tvar rObjNm = \"simic hybrid-ua\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Manta Glide\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { climb : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { swim : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Grappling Appendages): I have two extra appendages which I can use to make unarmed strikes for 1d6 bludgeoning damage. As a bonus action after hitting with them, I can try to grapple the target. I can't use these appendages to wield anything.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tAddWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tAddAction(\"bonus action\", \"Grappling Appendages (after hit)\", \"being a \" + rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Carapace): My skin is covered by a thick shell, giving my a +1 to AC whenever I'm not wearing heavy armor.\";\n\t\t\t\t\t\tprocessExtraAC(true, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Acid Spit): As an action, I can spit acid at a single creature within 30 ft that I can see. It must make a Dexterity saving throw with DC 8 + Con modifier + Prof Bonus or take 2d10 acid damage. This increases with 1d10 at 11th and 17th level.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tAddWeapon(\"Acid Spit\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tif (What(\"Unit System\") !== \"imperial\") feaTxt = ConvertToMetric(feaTxt, 0.5);\n\t\t\t\tValue(\"Racial Traits\", What(\"Racial Traits\").replace(/Animal Enhancement \\(5th level\\):.*/, '') + feaTxt);\n\t\t\t\tValue(\"Race Remember\", What(\"Race Remember\") + \"-*\" + theChoice.replace(' ', '_') + \"*\");\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar theRegex = /\\*(Manta_Glide|Nimble_Climber|Underwater_Adaptation|Grappling_Appendages|Carapace|Acid_Spit)\\*/i;\n\t\t\t\tvar raceRem = What(\"Race Remember\");\n\t\t\t\tif (!theRegex.test(raceRem)) return;\n\t\t\t\tvar theChoice = raceRem.match(theRegex)[1].replace('_', ' ').capitalize();\n\t\t\t\tvar rObjNm = \"simic hybrid-ua\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { climb : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { swim : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tRemoveWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tRemoveAction(\"bonus action\", \"Grappling Appendages (after hit)\", \"being a \" + rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tprocessExtraAC(false, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tRemoveWeapon(\"Acid Spit\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tValue(\"Racial Traits\", What(\"Unit System\") === \"imperial\" ? CurrentRace.trait : ConvertToMetric(CurrentRace.trait, 0.5));\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"simic hybrid-ua\", \"manta glide\", {\n\tregExpSearch : /manta glide/i,\n\tsource : [[\"UA:RoR\", 3]],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Nimble Climber, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid-ua\", \"nimble climber\", {\n\tregExpSearch : /nimble climber/i,\n\tsource : [[\"UA:RoR\", 3]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid-ua\", \"underwater adaptation\", {\n\tregExpSearch : /underwater adaptation/i,\n\tsource : [[\"UA:RoR\", 3]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Nimble Climber, Grappling Appendages, Carapace, or Acid Split.\"\n});\n\n// Add Vedalken\nRaceList[\"vedalken-ua\"] = {\n\tregExpSearch : /vedalken/i,\n\tname : \"Vedalken\",\n\tsource : [[\"UA:RoR\", 4]],\n\tplural : \"Vedalken\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tskillstxt : \"Choose one from Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. I add 1d4 to a check with the chosen skill\",\n\tlanguageProfs : [\"Common\"],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" age at the same rate as humans and typically live 350 to 500 years\",\n\theight : \" stand between 6 and 6 and a half feet tall\",\n\tweight : \" weigh around 200 pounds\",\n\theightMetric : \" stand between 1,8 and 2 metres tall\",\n\tweightMetric : \" weigh around 100 kg\",\n\tscores : [0, 0, 0, 2, 1, 0],\n\ttrait : \"Vedalken (+2 Intelligence, +1 Wisdom)\\n   Vedalken Dispassion: I have advantage on all Intelligence, Wisdom, and Charisma saving throws.\\n   Tireless Precision: I am proficient with any one tool and one skill of my choice: Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. Whenever I make an ability check with the chosen tool or skill, I can add 1d4 to the check's total.\",\n\tadvantages : [[\"Int\", true], [\"Wis\", true], [\"Cha\", true]]\n};\n\n// Add Viashino\nRaceList[\"viashino-ua\"] = {\n\tregExpSearch : /viashino/i,\n\tname : \"Viashino\",\n\tsource : [[\"UA:RoR\", 5]],\n\tplural : \"Viashino\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Choose one from Acrobatics or Stealth\",\n\tlanguageProfs : [\"Common\", \"Draconic\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*viashino)(?=.*bite).*$/i,\n\t\tname : \"Viashino bite\",\n\t\tsource : [[\"UA:RoR\", 5]],\n\t\tdamage : [1, 4, \"piercing\"],\n\t\tselectNow : true\n\t}, {\n\t\tregExpSearch : /^(?=.*lashing)(?=.*tail).*$/i,\n\t\tname : \"Lashing tail\",\n\t\tsource : [[\"UA:RoR\", 5]],\n\t\tability : 1,\n\t\ttype : \"Natural\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Only as reaction\",\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\tage : \" reach adulthood in their early teens and rarely live past 60 due to their violent lives\",\n\theight : \" stand about as tall as humans\",\n\tweight : \" have lithe, wiry frames and are thus lighter than a human of the same height\",\n\tscores : [1, 2, 0, 0, 0, 0],\n\taction : [[\"reaction\", \"Lashing Tail (after being hit)\"]],\n\ttrait : \"Viashino (+1 Strength, +2 Dexterity)\\n\\nBite: I can use my fanged maw to make unarmed strikes dealing 1d4 piercing damage.\\n\\nLashing Tail: I have semi-prehensile tail that is tipped with a bony blade. As a reaction when a creature I can see within 5 ft damages me with a melee attack, I can use my tail to make an unarmed strike against it dealing 1d4 slashing damage.\"\n};\n\n// ua_20180910_Dragonmarks.js\r\n// This file adds the content from the Unearthed Arcana: Dragonmarks article to MPMB's Character Record Sheet\r\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\r\n\r\n// Define the sources\r\nSourceList[\"UA:D\"] = {\r\n\tname : \"Unearthed Arcana: Dragonmarks\",\r\n\tabbreviation : \"UA:D\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_Dragonmarks.pdf\",\r\n\tdate : \"2018/09/10\"\r\n};\r\n\r\n// Dragonmarks subraces\r\nRaceList[\"dragonmark detection half-elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*detection)|(?=.*house)(?=.*medani)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Detection (Half-Elf)\",\r\n\tsource : [[\"WGtE\", 96], [\"UA:D\", 2]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 0, 0, 1, 0, 1],\r\n\ttrait : \"Half-Elf, Dragonmark of Detection (+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Deductive Intuition: I can add my Intuition Die (1d4) to my Intelligence (Investigation) and Wisdom (Insight) checks.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Sense Threats: I can cast Detect Magic and Detect Poison and Disease as rituals using Intelligence as my spellcasting ability.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sense Threats\",\r\n\t\tspells : [\"detect magic\", \"detect poison and disease\"],\r\n\t\tselection : [\"detect magic\", \"detect poison and disease\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"detect magic\" : {\r\n\t\t\ttime : \"10 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t},\r\n\t\t\"detect poison and disease\" : {\r\n\t\t\ttime : \"10 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding half-orc-ua\"] = {\r\n\tregExpSearch : /^(?=.*half)(?=.*\\bor(c|k))((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk)).*$/i,\r\n\tname : \"Half-orc (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Half-Orc)\",\r\n\tsource : [[\"WGtE\", 97], [\"UA:D\", 2]],\r\n\tplural : \"Half-orcs (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood around age 14 and rarely live longer than 75 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Half-Orc, Dragonmark of Finding (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Hunter's Intuition: I add my Intuition Die (1d4) to my Perception and Survival checks.\\n   Imprint Prey: As a bonus action once per short rest, I imprint a target I can see in 30 ft or with a Survival check when tracking it, lasting until it dies or I use this again. I double my Intuition Die for tracking it, sense its general location in 60 ft, my attacks vs. it ignore half cover and don't have disadv. if I can't see it, and it has no adv. vs. me if I can't see it.\\n\" + (typePF ? \"Nature's Voice: cast Locate Animals/Plants as a ritual from 3rd level.\" : \"   Nature's Voice: Once I reach 3rd level, I can cast Locate Animals or Plants as a ritual.\"),\r\n\tfeatures : {\r\n\t\t\"imprint prey\" : {\r\n\t\t\tname : \"Imprint Prey\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"locate animals or plants\" : {\r\n\t\t\tname : \"Locate Animals or Plants\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Nature's Voice\",\r\n\t\t\t\tspells : [\"locate animals or plants\"],\r\n\t\t\t\tselection : [\"locate animals or plants\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"locate animals or plants\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark handling human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*handling)|(?=.*house)(?=.*vadalis)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Handling (Human)\",\r\n\tsource : [[\"WGtE\", 98], [\"UA:D\", 3]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Handling (+1 Dex\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"terity, +1 Wisdom, +1 to any one ability score\") + \")\\n   Wild Intuition: I can add my Intuition Die (1d4) to my Wisdom (Animal Handling) and Intelligence (Nature) checks.\\n   Expert Handling: I can use the Help action to aid an ally animal companion or mount even when they are within 30 ft of me, rather than just within 5 ft.\\n   Primal Connection: Once per short rest, I can cast Animal Friendship using Wisdom \" + (typePF ? \"as my spellcasting ability\" : \"\") + \".\\n   \" + (typePF ? \"The Bigger They Are: My spells that normally affect only beasts now also affect monstrosities with an Intelligence of 3 or lower.\" : \"Bigger They Are: My spells that affect only beasts, also affect monstrosities with Int < 4.\"),\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tname : \"Primal Connection\",\r\n\t\t\tlimfeaname : \"Animal Friendship\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\tspells : [\"animal friendship\"],\r\n\t\t\t\tselection : [\"animal friendship\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"animal friendship\" :\r\n\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"beasts\", \"beasts/monstrosities\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"beast bond\" :\r\n\t\t\t\t\t\tspellObj.description = \"Telepathic link with 1 beast/monstrosity Int<4 while in sight; it has adv. on atks vs. crea I can see\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"beast sense\" :\r\n\t\t\t\t\t\tspellObj.description = \"Use senses of 1 willing monstrosity Int<4 or beast; I'm blinded and deafened while doing so\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"dominate beast\" :\r\n\t\t\t\t\t\tspellObj.description = \"1 monstrosity Int<4 or beast save or charmed, follows telepathic commands, 1 a for complete control\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"speak with animals\" :\r\n\t\t\t\t\t\tspellObj.description = \"Communicate verbally with monstrosities Int<4 or beasts for duration; interactions limited by their Int\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Spells I cast that only affect beasts can also affect monstrosities with an Intelligence score of 3 or lower.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark healing halfling-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*healing)|(?=.*house)(?=.*jorasco)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Healing (Halfling)\",\r\n\tsource : [[\"WGtE\", 99], [\"UA:D\", 3]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Halfling, Dragonmark of Healing (+2 Dexterity, +1 Wisdom)\" + (typePF ? \"\\n  \" : \"\") + \r\n\t\t\" Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\" + desc([\r\n\t\t\"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\",\r\n\t\t\"Medical Intuition: I \" + (typePF ? \"\" : \"can\") + \" add my Intuition Die (1d4) to \" + (typePF ? \"Medicine\" : \"my Wisdom (Medicine)\") + \" checks.\",\r\n\t\t\"Healing Touch: As an action once per short rest, I can spend one of my Hit Dice to heal myself or a creature I touch. I heal the roll of the die plus my Wisdom modifier.\",\r\n\t\t\"Jorasco's Blessing: I know the Spare the Dying cantrip.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"healing touch\" : {\r\n\t\t\tname : \"Healing Touch\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Jorasco's Blessing\",\r\n\t\tspells : [\"spare the dying\"],\r\n\t\tselection : [\"spare the dying\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\nRaceList[\"dragonmark hospitality halfling-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*hospitality)|(?=.*house)(?=.*ghallanda)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Hospitality (Halfling)\",\r\n\tsource : [[\"WGtE\", 100], [\"UA:D\", 4]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Halfling, Dragonmark of Hospitality (+2 Dexterity, +1 Charisma)\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\nHalfling Nimbleness: I can move through the space of Medium and larger creatures.\\nEver Hospitable: I can add my Intuition Die (1d4) to my Charisma (Persuasion) checks and ability checks involving brewer's supplies or cook's utensils.\\nInnkeeper's Charms: I know Friends and Prestidigitation with Cha as my spellcasting ability.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innkeeper's Charms\",\r\n\t\tspells : [\"friends\", \"prestidigitation\"],\r\n\t\tselection : [\"friends\", \"prestidigitation\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}]\r\n};\r\nRaceList[\"dragonmark making human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*making)|(?=.*house)(?=.*cannith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Making (Human)\",\r\n\tsource : [[\"WGtE\", 101], [\"UA:D\", 4]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Intelligence, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 1, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Making (+1 Dex\" + (typePF ? \", +2 Int or +2 Dex, +1 Int\" : \"terity, +1 Intelligence, +1 to Dex or Int, my choice\") + \")\\nArtisan's Intuition: I can add my Intuition Die (1d4) to ability checks with artisan's tools.\\nMagecraft: I can create a magic item that gives me the ability to cast one wizard cantrip of my choice, using Intelligence as my spellcasting ability. This works while the item is in my possession. At the end of a long rest, I can replace it with a new item and cantrip.\\nSpellsmith: Once per long rest, I can spend 1 minute to make a nonmagical armor or weapon gain a +1 bonus for the next hour. Maker's Gift: I know the mending cantrip.\",\r\n\tfeatures : {\r\n\t\t\"spellsmith\" : {\r\n\t\t\tname : \"Spellsmith\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\teval : function () {\r\n\t\tCurrentSpells['dragonmark making human'] = {\r\n\t\t\tname : 'Human (dragonmark)',\r\n\t\t\tability : 4,\r\n\t\t\tlist : { 'class' : 'wizard', level : [0, 0], notspells : ['mending'] },\r\n\t\t\tknown : { cantrips : 1, spells : 'list' },\r\n\t\t\tbonus : {\r\n\t\t\t\tbonus1 : {\r\n\t\t\t\t\tname : \"Maker's Gift\",\r\n\t\t\t\t\tspells : ['mending'],\r\n\t\t\t\t\tselection : ['mending'],\r\n\t\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttypeList : 2,\r\n\t\t\trefType : \"race\"\r\n\t\t};\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tdelete CurrentSpells['dragonmark making human'];\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t}\r\n};\r\nRaceList[\"dragonmark passage human-ua\"] = { // different in Unearthed Arcana\r\n\tregExpSearch : /^((?=.*mark)(?=.*passage)|(?=.*house)(?=.*orien)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Passage (Human)\",\r\n\tsource : [[\"UA:D\", 4]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity and +1 to another ability score of my choice\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Passage (+2 Dexterity and +1 to another ability score)\\n   Intuitive Motion: I can add my Intuition Die (1d4) to my Strength (Athletics) checks and any ability checks involving operating or maintaining a land vehicle.\\n   Orien's Grace: I can forgo half my movement speed for my turn to no longer provoke opportunity attacks for the rest of that turn.\\n   Shared Passage: As a bonus action once per long rest, I can teleport myself and a willing ally within 5 ft a distance up to my walking speed to an unoccupied space I can see.\",\r\n\tfeatures : {\r\n\t\t\"shared passage\" : {\r\n\t\t\tname : \"Shared Passage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark scribing gnome-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*scribing)|(?=.*house)(?=.*sivis)).*$/i,\r\n\tname : \"Gnome (dragonmark)\",\r\n\tsortname : \"Dragonmark, Scribing (Gnome)\",\r\n\tsource : [[\"WGtE\", 103], [\"UA:D\", 5]],\r\n\tplural : \"Gnomes (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\", 1],\r\n\ttoolProfs : [\"Calligrapher's supplies\", \"Forgery kits\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Gnome, Dragonmark of Scribing (+2 Intelligence, +1 Charisma)\\n   Gifted Scribe: I can add my Intuition Die (1d4) to ability checks involving calligrapher's supplies or forgery kits. I am proficient with both of these tools.\\n   Whispering Wind: I know the Message cantrip.\\n   Scribe's Insight: I can cast Comprehend Languages once per long rest.\\nIntelligence is my spellcasting ability for the spells gained from being a gnome, dragonmark of scribing.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Whispering Wind\",\r\n\t\tspells : [\"message\"],\r\n\t\tselection : [\"message\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"comprehend languages\" : {\r\n\t\t\tname : \"Scribe's Insight\",\r\n\t\t\tlimfeaname : \"Comprehend Languages\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark sentinel human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*sentinel)|(?=.*house)(?=.*deneith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Sentinel (Human)\",\r\n\tsource : [[\"WGtE\", 104], [\"UA:D\", 5]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Sentinel (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Sentinel's Intuition: I can add my Intuition Die (1d4) to Initiative rolls and my Wisdom (Perception) checks.\\n   Sentinel's Shield: I know the Blade Ward cantrip. I can cast Shield once per short rest.\\n   Vigilant Guardian: As an action, I can designate an ally as my ward, gaining adv. on Insight and Perception checks to spot threats to it. As a reaction when I see my ward being attacked while within 5 ft, I can swap places with it, becoming the target of the attack.\",\r\n\taction : [['action', 'Vigilant Guardian (designate ward)'], ['reaction', 'Vigilant Guardian (swap with ward)']],\r\n\tfeatures : {\r\n\t\t\"shield\" : {\r\n\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\tspells : [\"blade ward\"],\r\n\t\t\t\tselection : [\"blade ward\"],\r\n\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark shadow elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*shadow)|(?=.*house)(?=.*(phiarlan|thuranni))).*$/i,\r\n\tname : \"Elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Shadow (Elf)\",\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tplural : \"Elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tskillstxt : \"Perception and proficiency with either Performance or one musical instrument\",\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Elf, Dragonmark of Shadow (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nGift of the Shadows: I can add my Intuition Die (1d4) to Performance and Stealth checks.\\nShape Shadows: I know the Minor Illusion cantrip using Charisma as my spellcasting ability.\\nSlip Into Shadow: As a bonus action once per short rest, I can use the Hide action even while I have no cover or if I'm being observed.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shape Shadows\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"slip into shadow\" : {\r\n\t\t\tname : \"Slip Into Shadow\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"dragonmark shadow elf-ua\", \"performance, \", {\r\n\tregExpSearch : /performance/i,\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tskills : [\"Perception\", \"Performance\"],\r\n\tskillstxt : \"\"\r\n});\r\nAddRacialVariant(\"dragonmark shadow elf-ua\", \"musical instrument, \", {\r\n\tregExpSearch : /musical instrument/i,\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tskillstxt : \"\",\r\n\ttoolProfs : [[\"Musical instrument\", 1]]\r\n});\r\nRaceList[\"dragonmark storm half-elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*storm)|(?=.*house)(?=.*lyrandar)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Storm (Half-Elf)\",\r\n\tsource : [[\"WGtE\", 106], [\"UA:D\", 6]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 0, 0, 1],\r\n\ttrait : \"Half-Elf, Dragonmark of Storm (+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Windwright's Intuition: I can add my Intuition Die (1d4) to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a water or air vehicle.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Headwinds: I know the Gust cantrip. Once I reach 3rd level, I can cast Gust of Wind once per long rest. Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6, // Not mentioned in WGtE, but essential!\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Headwinds (level 1)\",\r\n\t\tspells : [\"gust\"],\r\n\t\tselection : [\"gust\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\tlimfeaname : \"Gust of Wind\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark warding dwarf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*warding)|(?=.*house)(?=.*kundarak)).*$/i,\r\n\tname : \"Dwarf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Warding (Dwarf)\",\r\n\tsource : [[\"WGtE\", 108], [\"UA:D\", 7]],\r\n\tplural : \"Dwarves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 1, 2, 1, 0, 0],\r\n\ttrait : \"Dwarf, Dragonmark of Warding (+1 Dex\" + (typePF ? \", +2 Con, +1 Int\" : \"terity, +2 Constitution, +1 Intelligence\") + \")\\n   Stonecunning: When I make an Intelligence (History) check related to the origin of stonework, I am considered having expertise in the History skill.\\n   Master of Locks: I can add my Intuition Die (1d4) to Intelligence (History), Intelligence (Investigation), and ability checks with thieves' tools, if it involves lock or trap mechanisms.\\n   Wards and Seals: I can cast Alarm as a ritual. Once I reach 3rd level, I can cast Arcane Lock once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Wards and Seals (level 1)\",\r\n\t\tspells : [\"alarm\"],\r\n\t\tselection : [\"alarm\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"alarm\" : {\r\n\t\t\ttime : \"11 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"arcane lock\" : {\r\n\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Greater Dragonmark feats\r\nFeatsList[\"greater dragonmark-ua\"] = {\r\n\tname : \"Greater Dragonmark\",\r\n\tsource : [[\"WGtE\", 110], [\"UA:D\", 7]],\r\n\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase one ability score by 1, to a maximum of 20. The abilities available to you are based on your mark, as shown on the Greater Dragonmark Benefits table.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn a set of spells, each of which you can cast once without expending a spell slot or using a material component. The list of spells, the spellcasting ability for them, and the type of rest you must complete to regain the use of these spells are shown on the Greater Dragonmark Benefits table.\",\r\n\tdescription : \"Select the type of greater dragonmark using the square button on this feat line.\\nMy Intuition Die increases with one step (for example d4 to d6), I gain spellcating abilities, and an increase to one ability score.\",\r\n\teval : function () {\r\n\t\tvar raceTrait = What('Racial Traits');\r\n\t\tif ((/my Intuition Die \\(1d4\\)/i).test(raceTrait)) {\r\n\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d4\\)/i, 'my Intuition Die (1d6)'));\r\n\t\t};\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tvar raceTrait = What('Racial Traits');\r\n\t\tif ((/my Intuition Die \\(1d6\\)/i).test(raceTrait)) {\r\n\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d6\\)/i, 'my Intuition Die (1d4)'));\r\n\t\t};\r\n\t},\r\n\tchoices : [\"Detection\", \"Finding\", \"Handling\", \"Healing\", \"Hospitality\", \"Making\", \"Passage\", \"Scribing\", \"Sentinel\", \"Shadow\", \"Storm\", \"Warding\"],\r\n\t\"detection\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Detection\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*detection).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Charisma or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells See Invisibility and True Seeing, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast See Invisibility and True Seeing each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Charisma or Intelligence]\",\r\n\t\tscorestxt : \"+1 Charisma or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"see invisibility\", \"true seeing\"],\r\n\t\t\tselection : [\"see invisibility\", \"true seeing\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"see invisibility\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"true seeing\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 willing crea gains truesight 120 ft; see through illusions, hidden doors, ethereal plane\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"finding\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Finding\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity, Strength, or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Locate Creature and Find the Path, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Locate Creature and Find the Path each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 \" + (typePF ? \"Strength, Dexterity, or Wisdom]\" : \"Str, Dex, or Wis]\"),\r\n\t\tscorestxt : \"+1 Strength, Dexterity, or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"locate creature\", \"find the path\"],\r\n\t\t\tselection : [\"locate creature\", \"find the path\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"locate creature\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"find the path\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Know the shortest route to a location I am familiar with and are on the same plane with\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"handling\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Handling\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*handling).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Beast Sense and Dominate Beast, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Beast Sense and Dominate Beast each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"beast sense\", \"dominate beast\"],\r\n\t\t\tselection : [\"beast sense\", \"dominate beast\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"healing\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Healing\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*healing).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Mass Healing Word and Greater Restoration, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Mass Healing Word and Greater Restoration each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\tselection : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"greater restoration\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Reduce exhaustion or end charm, petrify, curse, stat or max HP reduction\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"hospitality\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Hospitality\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*hospitality).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sanctuary and Mordenkainen's Magnificent Mansion, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sanctuary and \" + (typePF ? \"Mordenkainen's \" : \"\") + \"Magnificent Mansion each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\tselection : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"sanctuary\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"mordenkainen's magnificent mansion\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create extradimensional mansion with rooms, food and servants to serve 100 people; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"making\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Making\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*making).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Fabricate and Creation, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Fabricate and Creation each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Dexterity or Intelligence]\",\r\n\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"fabricate\", \"creation\"],\r\n\t\t\tselection : [\"fabricate\", \"creation\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"creation\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"passage\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Passage\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*passage).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Constitution score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Blink and Teleportation Circle, each of which you can cast once without expending a spell slot or using a material component. Constitution is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Blink and Teleportation Circle each once per long rest without using spell slots or requiring material components. Constitution is my spellcasting ability for these. [+1 Dexterity or Constitution]\",\r\n\t\tscorestxt : \"+1 Dexterity or Constitution\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"blink\", \"teleportation circle\"],\r\n\t\t\tselection : [\"blink\", \"teleportation circle\"],\r\n\t\t\tspellcastingAbility : 3,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"teleportation circle\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create a circle to teleport to another teleportation circle on same plane; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"scribing\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Scribing\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sending and Tongues, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sending and Tongues each once per short rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Intelligence or Charisma]\",\r\n\t\tscorestxt : \"+1 Intelligence or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\tspells : [\"sending\", \"tongues\"],\r\n\t\t\tselection : [\"sending\", \"tongues\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncesr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"sending\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"tongues\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"sentinel\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Sentinel\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*sentinel).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Strength or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Compelled Duel, Warding Bond, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Compelled Duel and Warding Bond each once per short rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Strength or Wisdom]\",\r\n\t\tscorestxt : \"+1 Strength or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\tspells : [\"compelled duel\", \"warding bond\"],\r\n\t\t\tselection : [\"compelled duel\", \"warding bond\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncesr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"warding bond\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 crea +1 AC, +1 saves, resistance all dmg; if it takes dmg I take same dmg; ends if >60 ft away\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"shadow\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Shadow\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*shadow).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Nondetection and Mislead, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Nondetection and Mislead each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"nondetection\", \"mislead\"],\r\n\t\t\tselection : [\"nondetection\", \"mislead\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"nondetection\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 crea or object up to 10 cu ft hidden from all divination magic\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"storm\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Storm\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Control Water and Control Winds, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Control Water and Control Winds each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"control water\", \"control winds\"],\r\n\t\t\tselection : [\"control water\", \"control winds\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"control water\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"warding\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Warding\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Knock, Glyph of Warding and Leomund's Secret Chest*, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\\n\\n* To cast Leomund's Secret Chest using this feat, you must have a Siberys dragonshard with a value of at least 100 gp. While you have this dragonshard in hand, it serves as the spell's focus, and you can use it to summon and dismiss the chest.\",\r\n\t\tdescription : \"My Intuition Die increases one step. I can cast Knock, Secret Chest, and Glyph of Warding each once per long rest without spell slot or material component. Secret Chest requires a 100 gp Siberys dragonshard as a focus. These use Int as spellcasting ability. [+1 Dex or Int]\",\r\n\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"knock\", \"glyph of warding\"],\r\n\t\t\tselection : [\"knock\", \"glyph of warding\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}, {\r\n\t\t\tname : \"with Siberys dragonshard\",\r\n\t\t\tspells : [\"leomund's secret chest\"],\r\n\t\t\tselection : [\"leomund's secret chest\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"glyph of warding\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create a glyph that triggers on set condition; Int(Investigation) vs. Spell DC; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"leomund's secret chest\" : {\r\n\t\t\t\tcompMaterial : \"A Siberys dragonshard with a value of at least 100 gp\",\r\n\t\t\t\tdescription : \"Hide chest with content in Ethereal Plane for 60 days, after that chance of loss; 1 a reappear (100gp)\",\r\n\t\t\t\tchanges : \"Leomund's Secret Chest cast through my Greater Dragonmark of Warding requires a Siberys dragonshard as a focus instead of an exquisite chest and its tiny replica.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Aberrant Dragonmark feat\r\nFeatsList[\"aberrant dragonmark-ua\"] = {\r\n\tname : \"Aberrant Dragonmark\",\r\n\tsource : [[\"WGtE\", 112], [\"UA:D\", 9]],\r\n\tprerequisite : \"Not having a dragonmark\",\r\n\tprereqeval : function(v) { return !(/dragonmark/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have manifested an aberrant dragonmark. Determine its appearance and the flaw associated with it (see the table below for examples). You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You learn a cantrip from the sorcerer spell list. In addition, choose a 1st-level spell from the sorcerer spell list. You learn that spell and can cast it at its lowest level. Once you cast it, you must finish a long rest before you can cast it again. Constitution is your spellcasting ability for these spells.\\n \\u2022 You can increase the power of your aberrant spells at the risk of your own vitality. When you cast a spell with your aberrant mark, you can use one of your Hit Dice to increase the spell's level by 1. Immediately after you cast the spell, roll the Hit Die. You take damage equal to the number rolled.\\n\\n\" + toUni(\"1d8\") + \"\\t\" + toUni(\"Aberrant Mark Flaw\") + \"\\n1\\tYour mark is a source of constant physical pain.\\n2\\tYour mark whispers to you, though you may not understand what it says.\\n3\\tIn times of stress, your mark may trigger a cantrip effect involuntarily.\\n4\\tThe skin around your mark has an unusual appearance: burned, scaly, withered, etc.\\n5\\tMundane animals become uneasy around you.\\n6\\tYou have dramatic mood swings any time you use your mark.\\n7\\tYour appearance changes in a minor way every time you use your mark.\\n8\\tYou have horrific nightmares after you use your mark.\",\r\n\tdescription : \"I learn a sorcerer cantrip and a 1st-level sorcerer spell, using Con as my spellcasting ability. I can cast the spell once per long rest without a spell slot. I can use a Hit Die when casting the spell, casting it as if with a level 2 spell slot and taking the HD as damage. [+1 Con]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sorcerer cantrip\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\r\n\n// ua_20190815_Barbarian-and-Monk.js\r\n// This file adds the content from the Unearthed Arcana: Barbarian and Monk article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BnM\"] = {\r\n\tname : \"Unearthed Arcana: Barbarian and Monk\",\r\n\tabbreviation : \"UA:BnM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-WildAstral.pdf\",\r\n\tdate : \"2019/08/15\"\r\n};\r\n\r\n// Add a subclasses for the Barbarian and one for the Monk\r\nAddSubClass(\"barbarian\", \"path of the wild soul-ua\", {\r\n\tregExpSearch : /^(?=.*\\bwild\\b)(?=.*\\bsoul\\b).*$/i,\r\n\tsubname : \"Path of the Wild Soul\",\r\n\tsubnameShort: \"Wild Soul\",\r\n\tfullname : \"Wild Soul\",\r\n\tsource : [[\"UA:BnM\", 1]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Lingering Magic\",\r\n\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Detect Magic without spell slots or components, using Con for spellcasting\",\r\n\t\t\t\t\"When I do so, I faintly glow a color corresponding to the school of magic I detect\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Con mod (min 1) per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Lingering Magic\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect magic\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tritual : false,\r\n\t\t\t\t\tchanges : \"Using my Path of the Wild Soul class feature I can cast Detect Magic without requiring components or spell slots.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wild Surge\",\r\n\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Whenever I enter my rage, I have to roll on the Wild Surge table (see Notes page)\"),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Surge Table\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Magic erupts from me while I rage. Whenever I enter my rage, I have to roll on the table below to see what happens.\",\r\n\t\t\t\t\t\"If the effect calls for a saving throw, the DC is equal to 8 + my proficiency bonus + my Constitution modifier.\\n\",\r\n\t\t\t\t\t\"d8\\tEFFECT\",\r\n\t\t\t\t\t\" 1\\tNecrotic energy bursts from me. Each creature within 30 ft of me takes 1d10 necrotic damage, and I gain temporary HP equal to the sum of the necrotic damage dealt to the creatures.\",\r\n\t\t\t\t\t\" 2\\tI teleport up to 20 ft to an unoccupied space I can see. Until my rage ends, I can activate this effect again on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 3\\tI conjure 1d4 intangible spirits that look like flumphs in unoccupied spaces within 30 ft of me. Each spirit immediately flies 30 ft in a random direction. At the end of my turn, all spirits explode and each creature within 5 ft of one or more of them must succeed on a Dexterity saving throw or take 2d8 force damage.\",\r\n\t\t\t\t\t\" 4\\tArcane energy enshrouds me. Until my rage ends, I gain a +2 bonus to AC, and whenever a creature within 10 ft of me hits me with an attack, that creature takes force damage equal to my Constitution modifier.\",\r\n\t\t\t\t\t\" 5\\tPlant life temporarily grows around me: until my rage ends, the ground within 10 ft of me is difficult terrain.\",\r\n\t\t\t\t\t\" 6\\tArcane energy taps into the minds of those around me. Each creature within 30 ft of me must succeed on a Wisdom saving throw or I see a glimpse of the creature's thoughts, learning how it plans to attack me. As a result, the creature has disadvantage on attack rolls against me until the start of my next turn.\",\r\n\t\t\t\t\t\" 7\\tShadows weave around a weapon of my choice I am holding. Until my rage ends, my weapon deals psychic damage instead of its bludgeoning, slashing, or piercing damage, and it gains the light and thrown properties with a normal range of 20 ft and a long range of 60 ft. If I drop the weapon or throw it, the weapon dissipates and reappears in my hand at the end of my turn.\",\r\n\t\t\t\t\t\" 8\\tA beam of brilliant light lances from my chest in a 5-ft-wide, 60-ft-long line. Each creature in the line must succeed on a Constitution saving throw or take 2d8 radiant damage and be blinded until the start of my next turn.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Magic Reserves\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can touch a creature and roll a die to channel magic into it\",\r\n\t\t\t\t\"The target regains an expended spell slot of a level equal to or less then the die roll\",\r\n\t\t\t\t\"If it has no expended spell slots of that level, it gains 5\\xD7 the die roll in temp HP instead\",\r\n\t\t\t\t\"Regardless of what happens, I take force damage equal to five times the die roll\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : n < 14 ? \"1d4\" : \"1d6\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Arcane Rebuke\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I have to make a save while raging, the magic in my soul lashes out\",\r\n\t\t\t\t\"This causes the creature forcing me to make the save, if any, to take 3d6 force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in Rage after save)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Chaotic Fury\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can reroll the effect on the Wild Surge table\",\r\n\t\t\t\t\"This replaces the current wild surge effect with a new one\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in Rage)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the astral self-ua\", {\r\n\tregExpSearch : /^(?=.*astral)(?=.*(self|projection|travel))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Astral Self\",\r\n\tsubnameShort: \"Astral Self\",\r\n\tsource : [[\"UA:BnM\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arms of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"My ki mastery allows me to summon portions of my astral self; See 3rd page notes\"),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms\"], [\"bonus action\", \"Astral Arm Attacks (after Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bastral\\b)(?=.*\\barms?\\b).*$/i,\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, \"\", typePF ? \"Necrotic/Radiant\" : \"necrotic|radiant\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"10 ft reach; Uses Str, Dex, or Wis; Deals necrotic or radiant damage\",\r\n\t\t\t\tmonkweapon : true,\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"astral arms\" : {\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\textraname : \"Way of the Astral Self 3\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms for 10 minutes; I choose their appearance\",\r\n\t\t\t\t\t\"While they are summoned, I can use Wisdom instead of Strength for Strength checks/saves\",\r\n\t\t\t\t\t\"The arms are melee monk weapons with 10 ft reach that can use Wis instead of Str/Dex\",\r\n\t\t\t\t\t\"I can choose to have them deal either radiant or necrotic damage\",\r\n\t\t\t\t\t\"After I use them in my Attack action, I can use them for more attacks as a bonus action\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"2 ki points; \" + (n < 11 ? 1 : n < 17 ? 2 : 3) + \" bonus action attack\" + (n < 11 ? \"\" : \"s\");\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral arms\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Visage of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can now also summon the visage of my astral self; See third page notes section\"),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage\", \"Summon Astral Arms\"]],\r\n\t\t\t\"astral visage\" : {\r\n\t\t\t\tname : \"Astral Visage\",\r\n\t\t\t\textraname : \"Way of the Astral Self 6\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action (or when summoning my astral arms), I can summon my astral visage\",\r\n\t\t\t\t\t\"It covers my face like a helmet or mask and I choose its appearance; It lasts for 10 minutes\",\r\n\t\t\t\t\t\"It grants adv. on Insight \\u0026 Intimidation, and the ability to see 120 ft in (magical) darkness\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral visage\" }]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Awakening of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"While having both astral arms and visage summoned, I gain extra benefits, see 3rd page\"),\r\n\t\t\t\"deflect energy\" : {\r\n\t\t\t\tname : \"Deflect Energy\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"As a reaction when I take acid, cold, fire, force, or lightning damage, I can deflect it\",\r\n\t\t\t\t\t\"By doing so, the damage is reduced by 1d10 + my Wisdom modifier + my Monk level\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"empowered arms\" : {\r\n\t\t\t\tname : \"Empowered Arms\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"Once per turn when I hit an astral arms attack, I can add a martial arts die to its damage\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"word of the spirit\" : {\r\n\t\t\t\tname : \"Word of the Spirit\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"I can direct my words to a creature I can see within 30 ft so that only it can hear me\",\r\n\t\t\t\t\t\"Alternatively, I can amplify my voice so that it is heard by all within 600 ft of me\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [\r\n\t\t\t\t{ extrachoice : \"deflect energy\" },\r\n\t\t\t\t{ extrachoice : \"empowered arms\" },\r\n\t\t\t\t{ extrachoice : \"word of the spirit\" }\r\n\t\t\t]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Complete Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can now also summon the body of my astral self; See third page notes section\",\r\n\t\t\t\t\"This spectral body covers my physique like armor, connecting with the arms and visage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage, or Complete\", \"Summon Astral Arms and/or Visage\"], [\"reaction\", \"Ki Consumption (Complete Astral Self)\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Astral Body\",\r\n\t\t\t\textraname : \"Way of the Astral Self 17\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tadditional: \"10 ki points\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon the arms, visage, and body of my astral self for 10 min\",\r\n\t\t\t\t\t\"This gives me the arms, visage, +2 bonus to AC while not incapacitated, and as follows:\",\r\n\t\t\t\t\t\"When I take the Attack action I can choose to make 3 attacks with my astral arms instead\",\r\n\t\t\t\t\t\"As a reaction when a creature in 10 ft is reduced to 0 HP, I can regain my Wis mod in ki\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20190905_Sorcerer-and-Warlock.js\r\n// This file adds the content from the Unearthed Arcana: Sorcerer and Warlock article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SnW\"] = {\r\n\tname : \"Unearthed Arcana: Sorcerer and Warlock\",\r\n\tabbreviation : \"UA:SnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-AberrantLurk.pdf\",\r\n\tdate : \"2019/09/05\"\r\n};\r\n\r\n// Add a subclasses for the Sorcerer and one for the Warlock\r\n// Both contain work by /u/KaydeArcane\r\nvar UASnW_abberantMindExtraSpell = [\"arms of hadar\", \"dissonant whispers\", \"calm emotions\", \"detect thoughts\", \"hunger of hadar\", \"sending\", \"compulsion\", \"evard's black tentacles\", \"modify memory\", \"rary's telepathic bond\"];\r\nAddSubClass(\"sorcerer\", \"aberrant mind-ua\", {\r\n\tregExpSearch : /^(?=.*aberrant)(?=.*mind).*$/i,\r\n\tsubname : \"Aberrant Mind\",\r\n\tsource : [[\"UA:SnW\", 1]],\r\n\tspellcastingExtra : UASnW_abberantMindExtraSpell,\r\n\tspellcastingExtraApplyNonconform : true,\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Invasive Thoughts\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can telepathic link myself with a creature within 30 ft that I can see\",\r\n\t\t\t\t\"This lasts for 10 minutes, until I'm incapacitated or die, or I use this ability again\",\r\n\t\t\t\t\"I can telepathically talk with the target; It can speak back if it understands a language\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Psionic Spells\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn additional spells, which do not count towards the number of spell I can know\")\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Warped Being\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My aberrant origin gives me an AC of 13 + my Dex mod when I am not wearing armor\"),\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*warped)(?=.*being).*$/i,\r\n\t\t\t\tname : \"Warped Being\",\r\n\t\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\t\tac : 13,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Sorcery\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend sorcery points instead of a spell slot to cast a spell from my Psionic Spells\",\r\n\t\t\t\t\"This costs the spell's level in sorcery points, but the spell requires no other components\"\r\n\t\t\t]),\r\n\t\t\tspellFirstColTitle : \"SP\",\r\n\t\t\tspellChanges : function () {\r\n\t\t\t\tvar fullReObj = {};\r\n\t\t\t\tUASnW_abberantMindExtraSpell.map(function (s) {\r\n\t\t\t\t\tvar spObj = SpellsList[s] ? SpellsList[s] : { level : 1 };\r\n\t\t\t\t\tfullReObj[s] = {\r\n\t\t\t\t\t\tfirstCol : spObj.level,\r\n\t\t\t\t\t\tcompMaterial : (spObj.compMaterial ? spObj.compMaterial + \"\\n\" : \"\") + \"If I cast this spell by expending Sorcery Points, it doesn't require any components\",\r\n\t\t\t\t\t\tchanges : \"I can cast this spell by expending a number of Sorcery Points equal to its level instead of expending a spell slot. When I do so, the spell doesn't require any components.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\treturn fullReObj;\r\n\t\t\t}()\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Psychic Defenses\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I gain resistance to psychic damage and adv. on saves vs. being charmed or frightened\"),\r\n\t\t\tdmgres : [\"Psychic\"],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Revelation in Flesh\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend 1 or more sorcery points to transform for 1 minute\",\r\n\t\t\t\t\"For each sorcery point used, I gain one of the following benefits of my choice:\",\r\n\t\t\t\t\"\\u2022 I gain a swimming speed equal to my walking speed and the ability to breathe water\",\r\n\t\t\t\t\"\\u2022 I gain a flying speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\"\\u2022 I can move, with equipment, through any space as narrow as 1 inch without squeezing\",\r\n\t\t\t\t\"  I can spend 5 ft of movement to escape form a grapple or from nonmagical restraints\",\r\n\t\t\t\t\"\\u2022 I am aware of the location of any hidden/invisible creatures within 60 ft of me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : \"1+ sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Warp Reality\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can radiate a 20-ft radius aura of difficult terrain for 1 minute\",\r\n\t\t\t\t\"Creatures that start their turn within the aura take 2d10 psychic damage\",\r\n\t\t\t\t\"When creating it, I can choose any creatures I can see to be unaffected by this aura\",\r\n\t\t\t\t\"As a bonus action, I can end this aura to teleport myself and others away\",\r\n\t\t\t\t\"I teleport myself and any creature in the aura to a location I can see within 1 mile\",\r\n\t\t\t\t\"An unwilling creature can succeed on a Charisma saving throw to avoid being teleported\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (create)\"], [\"bonus action\", \" (end)\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the lurker in the deep-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*lurker)(?=.*(deep|depth)).*$/i,\r\n\tsubname : \"the Lurker in the Deep\",\r\n\tsource : [[\"UA:SnW\", 2]],\r\n\tspellcastingExtra : [\"create or destroy water\", \"thunderwave\", \"gust of wind\", \"shatter\", \"lightning bolt\", \"sleet storm\", \"control water\", \"evard's black tentacles\", \"commune with nature\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Grasp of the Deep\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon or move a spectral tentacle and make an attack with it\",\r\n\t\t\t\t\"I can summon it to a space within 60 ft that I can see or move an existing one 30 ft\",\r\n\t\t\t\t\"I make melee spell attacks with 10 ft reach with it that deal cold or lightning damage\",\r\n\t\t\t\t\"Creatures hit by the tentacle suffer 10 ft speed reduction until the start of my next turn\",\r\n\t\t\t\t\"The 10-ft long tentacle lasts for 1 minute or until I summon another\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/move)\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Cha mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^((?=.*grasp)(?=.*deep)|(?=.*spectral)(?=.*tentacle)).*$/i,\r\n\t\t\t\tname : \"Grasp of the Deep\",\r\n\t\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\t\tability : 6,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"Cold/Lightning\"],\r\n\t\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\t\tdescription : \"My choice of cold or lightning damage; Target -10 ft speed until my next turn starts\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tlitdGraspOfTheDeep : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.litdGraspOfTheDeep && classes.known.warlock.level >= 10) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '2d8';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Scion of the Deep\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can communicate telepathically with any aberration, beast, elemental, or monstrosity\",\r\n\t\t\t\t\"The creature must be within 120 ft of me and have an innate swimming speed\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fathomless Soul\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [cold resistance]\\n   I have a swimming speed equal to my walking speed; I can breathe both air and water\",\r\n\t\t\tdmgres : [\"Cold\"],\r\n\t\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Guardian Grasp\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature in 10 ft of my tentacle takes damage, I can have it help\",\r\n\t\t\t\t\"One creature takes only half damage and my spectral tentacle vanishes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Devouring Maw\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon a 10-ft radius translucent maw within 60 ft for 1 minute\",\r\n\t\t\t\t\"Creatures in the maw as it appear must Str save or be restrained, can repeat as action\",\r\n\t\t\t\t\"Creatures starting their turn in the maw take 3d6 cold or lightning damage (my choice)\",\r\n\t\t\t\t\"If a creature is in the maw at the start of my turn, I gain my warlock level in temp HP\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unleash the Depths\",\r\n\t\t\tsource : [[\"UA:SnW\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can choose one of the following effects to occur within 30 ft of me:\",\r\n\t\t\t\t\"\\u2022 Teleport myself and up to 5 willing creatures I can see within 30 ft of the chosen point\",\r\n\t\t\t\t\"  The destination must be within 100 miles and visited by me within the last 24 hours\",\r\n\t\t\t\t\"\\u2022 5 creatures within 30 ft of the chosen point that I can see are attacked by tentacles\",\r\n\t\t\t\t\"  The targets take 6d10 cold or lightning damage (my choice) and are knocked prone\",\r\n\t\t\t\t\"  Each can make a Dexterity save to halve the damage and avoid being knocked prone\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\n// ua_20190918_Bard-and-Paladin.js\r\n// This file adds the content from the Unearthed Arcana: Bard and Paladin article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BnP\"] = {\r\n\tname : \"Unearthed Arcana: Bard and Paladin\",\r\n\tabbreviation : \"UA:BnP\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-EloquentHeroics.pdf\",\r\n\tdate : \"2019/09/18\"\r\n};\r\n\r\n// Add a subclasses for the bard and one for the paladin\r\nAddSubClass(\"bard\", \"college of eloquence-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\r\n\tsubname : \"College of Eloquence\",\r\n\tsubnameShort: \"Eloquence\",\r\n\tsource : [[\"UA:BnP\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Universal Speech\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend one bardic inspiration die to make me understood by all\",\r\n\t\t\t\t\"I roll the die, that many creatures I can see within 60 ft of me are affected for 10 min\",\r\n\t\t\t\t\"Those affected magically understand me and I gain adv. on Cha checks to influence them\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Soothing Words\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast Calm Emotions without expending a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Soothing Words\",\r\n\t\t\t\tspells : [\"calm emotions\"],\r\n\t\t\t\tselection : [\"calm emotions\"],\r\n\t\t\t\tfirstCol : 'Sp'\r\n\t\t\t}],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Undeniable Logic\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend one bardic inspiration die to encourage or befuddle\",\r\n\t\t\t\t\"One creature I can see within 60 ft that can hear me gets one of the following effects:\",\r\n\t\t\t\t\" \\u2022 It heals HP equal to the die roll and has adv. on its next save before my next turn ends\",\r\n\t\t\t\t\" \\u2022 It suffers psychic damage equal to the die roll and must make an Intelligence save\",\r\n\t\t\t\t\"   On a failed save, it also suffers disadv. on its next save before the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Infectious Inspiration\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My bardic inspiration dice are not lost if the check, attack, or save it was added to fails\",\r\n\t\t\t\t\"As a reaction when the same thing happens but the roll succeeds, I can inspire another\",\r\n\t\t\t\t\"I give a creature within 60 ft that can hear me an inspiration die without expending any\",\r\n\t\t\t\t\"I can use this reaction a number of times per long rest equal to my Cha mod (min 1)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Cha mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of heroism-ua\", {\r\n\tregExpSearch : /^(?=.*\\bhero)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of Heroism\",\r\n\tsubnameShort: \"Heroism\",\r\n\tsource : [[\"UA:BnP\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Peerless Athlete\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, I gain adv. on Str (Athletics) and Dex (Acrobatics) checks for 10 min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"expeditious retreat\", \"guiding bolt\", \"enhance ability\", \"enthrall\", \"haste\", \"protection from energy\", \"compulsion\", \"freedom of movement\", \"commune\", \"conjure volley\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Legendary Strike\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, my weapon attacks score a critical hit on a roll of 19 or 20 for 1 min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Mighty Deed\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I score a critical hit or reduce a target to 0 HP, I can bolster morale or demoralize\",\r\n\t\t\t\t\"Up to my Cha mod (min 1) of creatures I can see in 30 ft suffer the same chosen effect:\",\r\n\t\t\t\t\" \\u2022 All creatures gain temp HP equal to 1d6 + my Charisma modifier (min 1 temp HP)\",\r\n\t\t\t\t\" \\u2022 All creatures must make a Wis save or be frightened of me until my next turn starts\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"Round\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Glorious Defense\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see hits me with an attack roll, I can gain bonus AC\",\r\n\t\t\t\t\"I add my Cha mod (min 1) to my AC for that attack, potentially causing it to miss me\",\r\n\t\t\t\t\"If it misses, I can make one weapon attack against the attacker as part of this reaction\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Living Myth\",\r\n\t\t\tsource : [[\"UA:BnP\", 3]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 I have advantage on all Charisma checks\",\r\n\t\t\t\t\" \\u2022 Once on each of my turns when I miss with a weapon attack, I can cause it to hit\",\r\n\t\t\t\t\" \\u2022 As a reaction when I fail a saving throw, I can choose to succeed instead\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20191003_Cleric-Druid-and-Wizard.js\r\n// This file adds the content from the Unearthed Arcana: Cleric, Druid, and Wizard article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CDnW\"] = {\r\n\tname : \"Unearthed Arcana: Cleric, Druid, and Wizard\",\r\n\tabbreviation : \"UA:CDnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-TwilightFireNames.pdf\",\r\n\tdate : \"2019/10/03\"\r\n};\r\n\r\n// Add a subclass for the Cleric\r\nAddSubClass(\"cleric\", \"twilight domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(twilight|transition)).*$/i,\r\n\tsubname : \"Twilight Domain\",\r\n\tsource : [[\"UA:CDnW\", 1]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"darkness\", \"invisibility\", \"aura of vitality\", \"leomund's tiny hut\", \"aura of life\", \"greater invisibility\", \"circle of power\", \"dream\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of Night\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain Darkvision with unlimited range and can give this benefit to allies\",\r\n\t\t\t\t\"As an action, I can grant this to chosen creatures I can see within 10 ft for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", \"unlimited\"]],\r\n\t\t\tadditional : \"extend to others\",\r\n\t\t\tusages : \"Wis mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Vigilant Blessing\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can grant myself or a creature I touch adv. on the next initiative roll\",\r\n\t\t\t\t\"This benefit ends immediately after the roll or when I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Twilight Sanctuary\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use my holy symbol to create a 30-ft radius sphere around myself\",\r\n\t\t\t\t\"It moves with me, is filled with dim light, and lasts for 1 min or until I'm incapacitated\",\r\n\t\t\t\t\"When a creature, including me, ends its turn inside the sphere, I can grant it a benefit\",\r\n\t\t\t\t\"It either gains 1d8 temp HP or one effect causing it to be charmed or frightened ends\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Steps of the Brave\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on saves against being frightened\",\r\n\t\t\t\t\"As a bonus action while I'm in dim light or darkness, I can give myself a fly speed\",\r\n\t\t\t\t\"This fly speed is equal to my walking speed and lasts until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Midnight Shroud\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast Darkness, I can choose my Wis mod of creatures I can see\",\r\n\t\t\t\t\"The chosen creatures can see through the Darkness; I can be one of the chosen creatures\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\t// note that several healing spells are not present here because they don't restore hp at casting (only later)\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey == \"darkness\" && (!spellObj.fistCol || spellObj.fistCol == \"markedbox\")) {\r\n\t\t\t\t\t\t\tspellObj.description = \"15-ft rad darkness on point/obj; no darkvision; only magic light SL 3+ works; Wis mod of crea can see\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Darkness using a spell slot, I can choose a number of creatures that I can see (myself included) equal to my Wisdom modifier (minimum 1).The chosen creatures can see through the Darkness.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Druid\r\nAddSubClass(\"druid\", \"circle of wildfire-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*wild.{0,1}fire).*$/i,\r\n\tsubname : \"Circle of Wildfire\",\r\n\tsubnameShort: \"Wildfire\",\r\n\tsource : [[\"UA:CDnW\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Spells\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My mystical bond with a wildfire spirit gives me the ability to cast certain spells\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\r\n\t\t\t\t\"In addition, I learn the Fire Bolt cantrip\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Circle Spells\",\r\n\t\t\t\tspells : [\"fire bolt\"],\r\n\t\t\t\tselection : [\"fire bolt\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"locate animals or plants\", \"scorching ray\", \"fireball\", \"plant growth\", \"aura of life\", \"fire shield\", \"flame strike\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Summon Wildfire\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a wildfire spirit within 30 ft\",\r\n\t\t\t\t\"All within 10 ft of where it manifests must make a Dex save or take 2d10 fire damage\",\r\n\t\t\t\t\"It disappears after 1 hour, when it is reduced to 0 HP, or I summon another\",\r\n\t\t\t\t\"It obeys my commands, is friendly to my allies and I, and acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"Its HP maximum is equal to its Con mod + my Wis mod + five times my druid level\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Wildfire\"]],\r\n\t\t\tcreaturesAdd : [[\"Wildfire Spirit\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Wildfire Spirit\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Elemental\",\r\n\t\t\t\talignment : \"Chaotic\",\r\n\t\t\t\tac : 13,\r\n\t\t\t\thp : 12,\r\n\t\t\t\thd : [2, 6],\r\n\t\t\t\tspeed : \"20 ft, fly 30 ft (hover)\",\r\n\t\t\t\tscores : [10, 14, 14, 13, 15, 11],\r\n\t\t\t\tsaves : [\"\", 4, 4, \"\", 4, \"\"],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"nature\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tdamage_immunities : \"fire\",\r\n\t\t\t\tcondition_immunities : \"charmed, frightened, grappled, prone, restrained\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"understands the languages of its creator\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flame Seed\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\tdescription : \"Ranged weapon attack\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"10 ft\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft of teleportation origin, success - no damage; See traits\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [2, 10, \"fire\"],\r\n\t\t\t\t\trange : \"10 ft\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft where spirit is summoned, success - no damage\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The spirit obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It only takes the Dodge action, unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Flame Seed, Fiery Teleportation, Dash, Disengage, Help, or Hide action.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Fiery Teleportation (1\\xD7 per short rest)\",\r\n\t\t\t\t\tdescription : \"The spirit and each willing creature of its creator's choice within 5 ft of it teleport up to 30 ft to unoccupied spaces its creator can see. Each creature within 10 ft of the space that the spirit left must succeed on a Dexterity saving throw against its creator's spell save DC or take fire damage equal to 1d6 + its proficiency bonus.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Wildfire\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvl5 = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + drdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its creator's Intelligence modifier\\n + 5 \\xD7 \" + drdLvl + \" from five times its creator's druid level (\" + drdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Enhanced Bond\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my wildfire spirit is present, I can have my spells originate from it (no range 'self')\",\r\n\t\t\t\t\"Also, I can then add 1d8 to a single roll of my spells that restore HP or deal fire damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Flames of Life\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature dies in 30 ft of me/wildfire spirit, I can have flames erupt\",\r\n\t\t\t\t\"The creature has to be Small or larger; The flames last for 1 minute or until touched\",\r\n\t\t\t\t\"When I see someone touch the flames, it heals or takes fire damage for 2d10 + Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Blazing Endurance\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I drop to 0 HP and don't die, I can stay at 1 HP instead with 5\\xD7 druid level temp HP\",\r\n\t\t\t\t\"Also, all chosen creatures that I can see within 30 ft take 2d10 + druid level fire damage\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Wizard\r\nAddSubClass(\"wizard\", \"onomancy-ua\", {\r\n\tregExpSearch : /onomancy|onomancer/i,\r\n\tsubname : \"Onomancy\",\r\n\tsource : [[\"UA:CDnW\", 4]],\r\n\tfullname : \"Onomancer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I learn a language of my choice and gain proficiency with calligrapher's tools\"),\r\n\t\t\ttoolProfs : [\"Calligrapher's tools\"],\r\n\t\t\tlanguageProfs : [1]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Extract Name\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 60 ft make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is charmed by me until my next turn ends and I mentally learn its true name\",\r\n\t\t\t\t\"If successful, I know that my magic failed and can't use this feature again on it\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.2\" : {\r\n\t\t\tname : \"Fateful Naming\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add Bane and Bless to my spellbook and they count as wizard spells for me\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\r\n\t\t\t\t\"I can cast either spell without using a spell slot by speaking the true name of a target\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fateful Naming\",\r\n\t\t\t\tspells : [\"bane\", \"bless\"],\r\n\t\t\t\tselection : [\"bane\", \"bless\"],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tfirstCol : \"markedbox\"\r\n\t\t\t}],\r\n\t\t\tadditional : \"with true name\",\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Resonants\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Resonants to the third page',\r\n\t\t\t\t\"Whenever I gain a wizard level, I can replace a Resonant I know with another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : (n < 10 ? 2 : 4) + \" resonants known\";\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? 0 : n < 10 ? 2 : 4;\r\n\t\t\t}),\r\n\t\t\textraname : \"Resonant\",\r\n\t\t\textrachoices : [\"Absorption\", \"Devastation\", \"Dissolution\", \"Nullification\", \"Puppetry\", \"Sympathy\"],\r\n\t\t\t\"absorption\" : {\r\n\t\t\t\tname : \"Absorption\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"When the spell deals damage to the named target, I gain a number of temporary hit points\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn (n < 10 ? 3 : n < 14 ? 4 : 5) + \"d6 temporary hit points\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"devastation\" : {\r\n\t\t\t\tname : \"Devastation\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"The named creature has disadvantage on its first saving throw against the spell\")\r\n\t\t\t},\r\n\t\t\t\"dissolution\" : {\r\n\t\t\t\tname : \"Dissolution\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"The first time the named creature takes damage from the spell, it takes extra damage\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"+\" + (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d8 force damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"nullification\" : {\r\n\t\t\t\tname : \"Nullification\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If the named creature is affected by any other spells, I know what those spells are\",\r\n\t\t\t\t\t\"In addition, I can try to end one of my choice with an Int check (DC 10 + spell level)\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"puppetry\" : {\r\n\t\t\t\tname : \"Puppetry\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The first time the named creature takes damage from the spell, it is moved as well\",\r\n\t\t\t\t\t\"I choose to knock it prone or move it up to 10 ft directly towards me or away from me\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"sympathy\" : {\r\n\t\t\t\tname : \"Sympathy\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"I can target the named creature with the spell even if I can't see it or it is has total cover\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Resonant Utterance\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast a wizard spell, I can use one resonant that I know\",\r\n\t\t\t\t\"The resonant will only work if I speak the true name of a creature targeted by the spell\"\r\n\t\t\t]),\r\n\t\t\tusages : \"half wizard level per \",\r\n\t\t\tusagescalc : \"event.value = classes.known.wizard ? Math.floor(classes.known.wizard.level / 2) : 0;\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Relentless Naming\",\r\n\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I speak the true name of a creature when I cast a damage dealing spell at it,\",\r\n\t\t\t\t\"I can have that spell deal force or psychic damage instead of its normal damage type\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20191017_Fighter-Ranger-and-Rogue.js\r\n// This file adds the content from the Unearthed Arcana: Fighter, Ranger, and Rogue article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FRnR\"] = {\r\n\tname : \"Unearthed Arcana: Fighter, Ranger, and Rogue\",\r\n\tabbreviation : \"UA:FRnR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-RuneSwarmRevived.pdf\",\r\n\tdate : \"2019/10/17\"\r\n};\r\n\r\n// Add a subclass for the Fighter\r\nAddSubClass(\"fighter\", \"rune knight-ua\", {\r\n\tregExpSearch : /^(?=.*rune)(?=.*knight).*$/i,\r\n\tsubname : \"Rune Knight\",\r\n\tsource : [[\"UA:FRnR\", 1]],\r\n\tfullname : \"Rune Knight\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with smith's tools and I learn to speak, read, and write Giant\"),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tlanguageProfs : [\"Giant\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rune Magic\",\r\n\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn how to use runes to enhance my weapons, armor, and shields\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a rune and add it to the third page',\r\n\t\t\t\t\"When I finish a long rest, I can inscribe each rune I know upon a different item I touch\",\r\n\t\t\t\t\"Each item can hold only one rune and remains there until I finish a long rest\",\r\n\t\t\t\t\"Runes inscribed on a carried object grant both a passive and a limited-use active effect\",\r\n\t\t\t\t\"Whenever I gain a fighter level, I can swap a rune I know for another\",\r\n\t\t\t\t\"The DC for a rune's abilities is 8 + my Proficiency bonus + my Intelligence modifier\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5) + \" runes known\"\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\textraname : \"Rune\",\r\n\t\t\textrachoices : [\"Haug (Hill Rune)\", \"Ild (Fire Rune)\", \"Ise (Frost Rune)\", \"Skye (Cloud Rune)\", \"Stein (Stone Rune)\", \"Uvar (Storm Rune)\"],\r\n\t\t\t\"haug (hill rune)\" : {\r\n\t\t\t\tname : \"Haug\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I gain a resilience reminiscent of hill giants\",\r\n\t\t\t\t\t\"I always gain advantage on saves against being poisoned and resistance to poison damage\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to gain resistance to bludg/slash/pierc damage for 1 min\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Haug Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tdmgres : [\"Poison\"],\r\n\t\t\t\tsavetxt : { adv_vs : [\"poison\"] }\r\n\t\t\t},\r\n\t\t\t\"ild (fire rune)\" : {\r\n\t\t\t\tname : \"Ild\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain craftsmanship reminiscent of fire giants\",\r\n\t\t\t\t\t\"I always double my proficiency bonus when making an ability check with a tool\",\r\n\t\t\t\t\t\"When I hit a creature with a weapon attack, I can invoke it to summon fiery shackles\",\r\n\t\t\t\t\t\"It must make a Str save or be restrained for 1 min; Repeat save at end of each of its turns\",\r\n\t\t\t\t\t\"While restrained, the creature takes 2d6 fire damage at the start of each of its turns\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Ild Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t\t},\r\n\t\t\t\"ise (frost rune)\" : {\r\n\t\t\t\tname : \"Ise\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a stoic calm reminiscent of frost giants\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Animal Handling) and Charisma (Intimidation) checks\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke this rune to gain +2 Strength (max 30) for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Ise Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Animal Handling\", true], [\"Intimidation\", true] ]\r\n\t\t\t},\r\n\t\t\t\"skye (cloud rune)\" : {\r\n\t\t\t\tname : \"Skye\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a deceptiveness reminiscent of cloud giants\",\r\n\t\t\t\t\t\"I always gain advantage on Dexterity (Sleight of Hand) and Charisma (Deception) checks\",\r\n\t\t\t\t\t\"As a reaction when I or a target I see get hit by an attack within 30 ft, I can invoke this\",\r\n\t\t\t\t\t\"This causes the attack to target another within 30 ft with the same roll (ignore range)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Skye Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Sleight of Hand\", true], [\"Deception\", true] ]\r\n\t\t\t},\r\n\t\t\t\"stein (stone rune)\" : {\r\n\t\t\t\tname : \"Stein\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain insightfulness reminiscent of stone giants\",\r\n\t\t\t\t\t\"I always gain adv. on Wisdom (Insight) checks and I gain darkvision 60 ft (or +30 ft)\",\r\n\t\t\t\t\t\"As a reaction when a creature I can see ends it turn within 30 ft, I can invoke this rune\",\r\n\t\t\t\t\t\"This causes the creature to make a Wisdom save or be charmed by me for 1 minute\",\r\n\t\t\t\t\t\"While charmed, it descends into a dreamy stupor, becoming incapacitated and has speed 0\",\r\n\t\t\t\t\t\"This ends early if it takes damage or someone uses an action to shake it out of this state\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Stein Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]],\r\n\t\t\t\tadvantages : [ [\"Insight\", true] ]\r\n\t\t\t},\r\n\t\t\t\"uvar (storm rune)\" : {\r\n\t\t\t\tname : \"Uvar\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I can glimpse the future like storm giants\",\r\n\t\t\t\t\t\"I always gain adv. on Int (Arcana) checks and I can't be surprised while not incapacitated\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to enter a prophetic state for 1 min or till incapacitated\",\r\n\t\t\t\t\t\"While in this state, I can use a reaction to cause a roll to gain advantage or disadvantage\",\r\n\t\t\t\t\t\"I can do this for attacks, saves, and checks of myself or others I can see within 60 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Uvar Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Arcana\", true] ],\r\n\t\t\t\tsavetxt : { immune : [\"surprised\"] },\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Giant Might\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue myself with giant magic for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 Space permitted, I grow to Large size along with everything I'm wearing\",\r\n\t\t\t\t\" \\u2022 Advantage on Strength check and saves; My weapon attacks deal extra damage\"\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 10 ? 6 : 8) + \" weapon damage\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { text : [\"Adv. on Str saves in giant might\"] }\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Defensive Runes\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see a creature get hit by an attack within 60 ft, I can grant it AC\",\r\n\t\t\t\t\"The creature adds 1 + my Int mod (min 2) to its AC for the attack; I learn another rune\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Great Stature\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My runes permanently make me grow; I add 3d4 inches to my length\",\r\n\t\t\t\t\"In addition, my Giant Might adds more weapon damage and I learn another rune\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rune Magic Mastery\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : \" \\n  I can use each of my runes twice instead of once per short rest and I learn another rune\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Blessing of the All Father\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"When I use Giant Might, I can have it also affect a willing ally that I can see within 60 ft\")\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Ranger (and also to the Revised Ranger)\r\nvar UAFRnR_rangerSubclassSwarmkeeperUA = AddSubClass(\"ranger\", \"swarmkeeper-ua\", {\r\n\tregExpSearch : /swarmkeeper/i,\r\n\tsubname : \"Swarmkeeper\",\r\n\tsource : [[\"UA:FRnR\", 3]],\r\n\tfullname : \"Swarmkeeper\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Mage Hand; When I cast it, the hand takes the form of swarming nature spirits\",\r\n\t\t\t\t\"I get bonus spells known, which do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"web\", \"gaseous form\", \"giant insect\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Gathered Swarm\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I constantly have a swarm of fey spirits crawling in my space, they look like Tiny beasts\",\r\n\t\t\t\t\"As a bonus action, I can agitate that swarm for 1 minute, empowering my attacks\",\r\n\t\t\t\t\"Once per turn when I hit with a weapon attack, I can have it deal extra force damage\",\r\n\t\t\t\t\"In addition, the creature hit is moved 5 ft towards or away from me (my choice)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + (n < 11 ? 1 : 2) + \"d6 force dmg\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Wis mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Writhing Tide\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I activate Gathered Swarm, I gain one additional benefit of my choice:\",\r\n\t\t\t\t\" \\u2022 I gain +10 ft walking speed and I can take the Disengage action as a bonus action\",\r\n\t\t\t\t\" \\u2022 I gain climb speed equal to walk speed & need no check for difficult surfaces or ceilings\",\r\n\t\t\t\t\" \\u2022 I gain a 10 ft fly speed and I can hover\"\r\n\t\t\t]),\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"scuttling eyes\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"storm of minions\",\r\n\t\t\t\tminlevel : 15\r\n\t\t\t}],\r\n\t\t\t\"scuttling eyes\" : {\r\n\t\t\t\tname : \"Scuttling Eyes\",\r\n\t\t\t\textraname : \"Swarmkeeper 11\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can from a spirit of my swarm into a Tiny beast of my choice for 1 hour\",\r\n\t\t\t\t\t\"It has AC 18, my senses, and 40 ft speed it can use to walk, climb, fly, or swim\",\r\n\t\t\t\t\t\"It telepathically relays what it sees and hears to me and I can speak through it\",\r\n\t\t\t\t\t\"During my turn, I can telepathically command it and it can hide using my Stealth\",\r\n\t\t\t\t\t\"If it is damaged, I must make a Wis save (DC 10 or half damage if higher) or it vanishes\",\r\n\t\t\t\t\t\"As an action, I can dismiss it early and I can teleport to an empty space within 5 ft of it\",\r\n\t\t\t\t\t\"I can also invoke this ability by spending a spell slot of 3rd level or higher\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (summon/dismiss)\"]],\r\n\t\t\t\tadditional : \"or level 3 spell slot\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t},\r\n\t\t\t\"storm of minions\" : {\r\n\t\t\t\tname : \"Storm of Minions\",\r\n\t\t\t\textraname : \"Swarmkeeper 15\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can create a 10-ft radius swarm-filled sphere on a point within 120 ft\",\r\n\t\t\t\t\t\"I can choose any number of creatures that I can see to be unaffected by it\",\r\n\t\t\t\t\t\"It lasts minute, is difficult terrain for others, and I can move it 30 ft as a bonus action\",\r\n\t\t\t\t\t\"Others that start their turn in it take 2d8 necrotic damage and must make a Con save\",\r\n\t\t\t\t\t\"On a success, they take half damage, but if failed, are blinded until their next turn starts\",\r\n\t\t\t\t\t\"At the start of my turn, if a Small or larger creature was damaged by it, I heal 1d8 HP\",\r\n\t\t\t\t\t\"I can also invoke this ability by spending a spell slot of 4th level or higher\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : \"or level 4 spell slot\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UAFRnR_rangerSubclassSwarmkeeperUA); };\r\n\r\n// Add a subclass for the Rogue\r\nAddSubClass(\"rogue\", \"the revived-ua\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*revived).*$/i,\r\n\tsubname : \"the Revived\",\r\n\tsource : [[\"UA:FRnR\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tokens of Past Lives\",\r\n\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain a chosen skill or tool proficiency and can change it whenever I finish a long rest\"),\r\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Revived Nature\",\r\n\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to poison damage and adv. on saves against disease and being poisoned\",\r\n\t\t\t\t\"I don't need to eat, drink, breathe, or sleep; I must spend 4 hours inactive for a long rest\",\r\n\t\t\t\t\"I'm motionless during this inactive state, remain semiconscious, and can hear as normal\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Poison\"],\r\n\t\t\tsavetxt : { adv_vs : [\"disease\", \"poison\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Bolts from the Grave\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Immediately after I use my cunning action, I can unleash bolts of necrotic energy\",\r\n\t\t\t\t\"This is a ranged spell attack with 30 ft range, which I'm proficient with, using Dexterity\",\r\n\t\t\t\t\"If it hits, it deals my sneak attack damage, provided I didn't use sneak attack this turn\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*bolts?)(?=.*grave).*$/i,\r\n\t\t\t\tname : \"Bolts from the Grave\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 6, \"necrotic\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"Immediately after using cunning action; Only if I not yet used sneak attack this turn\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisBoltsFromTheGrave : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.rogue && classes.known.rogue.level && v.theWea.isBoltsFromTheGrave) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = Math.ceil(classes.known.rogue.level / 2) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Connect with the Dead\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Speak with Dead without a spell slot or material components using Intelligence\",\r\n\t\t\t\t\"Doing this gives me a random proficiency (roll 1d3) that lasts until I finish my next rest:\",\r\n\t\t\t\t\"[1] language of my choice; [2] skill or tool of my choice; [3] saving throw of my choice\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Connect with the Dead\",\r\n\t\t\t\tspells : [\"speak with dead\"],\r\n\t\t\t\tselection : [\"speak with dead\"],\r\n\t\t\t\tfirstCol : \"oncesr\",\r\n\t\t\t\tspellcastingAbility : 4\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"speak with dead\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Connect with the Dead, I can cast Speak with Dead once per short rest without using a spell slot or material component.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Audience with Death\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on death saves; Whenever I make one, I can ask a question to a death entity\",\r\n\t\t\t\t'It answers truthfully with \"yes\", \"no\", or \"unknown\", using the knowledge of all that died',\r\n\t\t\t\t\"When at 0 HP and healed or stabilized, I can change any of my traits/ideals/bonds/flaws\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { text : [\"Adv. on death saves\"] },\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"ethereal jaunt\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}],\r\n\t\t\t\"ethereal jaunt\" : {\r\n\t\t\t\tname : \"Ethereal Jaunt\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\t\textraname : \"the Revived 17\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can now use my cunning action to teleport to an unoccupied space within 30 ft\",\r\n\t\t\t\t\t\"I don't need to see where I'm going, but it fails if I'd go through a magical force effect\",\r\n\t\t\t\t\t\"I'm shunted if I appear in an occupied space and take force damage of 2\\xD7 the ft moved\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20191104_Class-Feature-Variants.js\r\n// This file adds the content from the Unearthed Arcana: Class Feature Variants article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CFV\"] = {\r\n\tname : \"Unearthed Arcana: Class Feature Variants\",\r\n\tabbreviation : \"UA:CFV\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA_ClassFeatures.pdf\",\r\n\tdate : \"2019/11/04\"\r\n};\r\n\r\n// Proficiency Versatility is not something governed by import automation, thus skipped\r\n\r\n// Barbarian alternative class features\r\nCreateClassFeatureVariant(\"barbarian\", \"danger sense\", \"Survival Instincts (ua)\", {\r\n\tname : \"Survival Instincts\",\r\n\tsource : [[\"UA:CFV\", 1]],\r\n\tdescription : desc([\r\n\t\t\"I gain proficiency and expertise with two skills of my choice\",\r\n\t\t\"I can choose from Animal Handling, Medicine, Nature, Perception, and Survival\"\r\n\t]),\r\n\tskillstxt : \"Proficiency and expertise with two from Animal Handling, Medicine, Nature, Perception, and Survival\"\r\n});\r\nCreateClassFeatureVariant(\"barbarian\", \"fast movement\", \"Instinctive Pounce (ua)\", {\r\n\tname : \"Instinctive Pounce\",\r\n\tsource : [[\"UA:CFV\", 1]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature ends it move within 15 ft of me, I can move towards it\",\r\n\t\t\"I move up to half my speed closer to it; This move doesn't provoke opportunity attacks\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\n\r\n// Bard alternative class features enhancements\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Bard Spell List\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cause fear\", \"color spray\", \"command\", \"aid\", \"enlarge/reduce\", \"mind spike\", \"mirror image\", \"phantasmal force\", \"mass healing word\", \"slow\", \"tiny servant\", \"phantasmal killer\", \"contact other plane\", \"rary's telepathic bond\", \"heroes' feast\", \"mental prison\", \"scatter\", \"tenser's transformation\", \"power word pain\", \"prismatic spray\", \"antipathy/sympathy\", \"maze\", \"prismatic wall\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the bard class with the following spells (spell level in brackets): Cause Fear (1), Color Spray (1), Command (1), Aid (2), Enlarge/Reduce (2), Mind Spike (2), Mirror Image (2), Phantasmal Force (2), Mass Healing Word (3), Slow (3), Tiny Servant (3), Phantasmal Killer (4), Contact Other Plane (5), Rary's Telepathic Bond (5), Heroes' Feast (6), Mental Prison (6), Scatter (6), Tenser's Transformation (6), Power Word Pain (7), Prismatic Spray (7), Antipathy/Sympathy (8), Maze (8), and Prismatic Wall (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Magical Inspiration (ua)\", {\r\n\tname : \"Magical Inspiration\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : desc([\r\n\t\t\"A bardic inspiration die recipient can also use it when casting a damaging or healing spell\",\r\n\t\t\"They can expend the die and add its result to one damage or healing roll of the spell\"\r\n\t])\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription: desc(\"After a long rest, I can swap a bard cantrip or spell I know for another of the same level\")\r\n}, \"Optional 1st-level bard features\");\r\n\r\n// Cleric alternative class features and enhancements\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription: desc(\"Whenever I gain a cleric level, I can replace a cleric cantrip I know with another\")\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Cleric Spell List\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cause fear\", \"wrathful smite\", \"branding smite\", \"aura of vitality\", \"aura of life\", \"aura of purity\", \"skill empowerment\", \"wall of light\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the cleric class with the following spells (spell level in brackets): Cause Fear (1), Wrathful Smite (1), Branding Smite (2), Aura of Vitality (3), Aura of Life (4), Aura of Purity (4), Skill Empowerment (5), Wall of Light (5), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"channel divinity\"], true, \"Harness Divine Power (ua)\", {\r\n\tname : \"Channel Divinity:\\xA0Harness Divine Power\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription: desc(\"As a bonus action, I can use my holy symbol and a prayer to regain 1 used level 1 spell slot\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 2nd-level cleric features\");\r\n// Cleric subclass alternative feature, so only run this after we are sure all subclasses have been added\r\nRunFunctionAtEnd(function() {\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar domain = ClassList.cleric.subclasses[1][i];\r\n\t\tvar objDomain = ClassSubList[domain];\r\n\t\tif (!objDomain || !objDomain.features.subclassfeature8 || !(/divine strike|potent spellcasting/i).test(objDomain.features.subclassfeature8.name)) continue;\r\n\t\tCreateClassFeatureVariant(domain, \"subclassfeature8\", \"Blessed Strikes (ua)\", {\r\n\t\t\tname : \"Blessed Strikes\",\r\n\t\t\tsource : [[\"UA:CFV\", 4]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature is damaged by my weapon attack/spell, I can do +1d8 radiant damage\",\r\n\t\t\t\t\"Once I deal this extra damage, I can't do so again until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && (v.isWeapon || (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0)) && /\\d/.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per round +1d8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn when a creature takes damage from one of my spell or weapon attacks, I can also deal 1d8 radiant damage to the target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// Druid alternative class features and enhancements\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription: desc(\"Whenever I gain a druid level, I can replace a druid cantrip I know with another\")\r\n}, \"Optional 1st-level druid features\");\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Druid Spell List\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"ceremony\", \"protection from evil and good\", \"augury\", \"continual flame\", \"enlarge/reduce\", \"aura of vitality\", \"elemental weapon\", \"revivify\", \"thunder step\", \"wall of sand\", \"divination\", \"fire shield\", \"cone of cold\", \"dawn\", \"immolation\", \"flesh to stone\", \"symbol\", \"incendiary cloud\", \"mass polymorph\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the druid class with the following spells (spell level in brackets): Ceremony (1), Protection from Evil and Good (1), Augury (2), Continual Flame (2), Enlarge/Reduce (2), Aura of Vitality (3), Elemental Weapon (3), Revivify (3), Thunder Step (3), Wall of Sand (3), Divination (4), Fire Shield (4), Cone of Cold (5), Dawn (5), Immolation (5), Flesh to Stone (6), Symbol (7), Incendiary Cloud (8), Mass Polymorph (9), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nAddFeatureChoice(ClassList.fighter.features[\"fighting style\"], true, \"Martial Versatility (ua)\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Fighter 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a fighter level, I can swap a fighting style I know for another I'm allowed\")\r\n}, \"Optional 1st-level fighter features\");\r\n// All the other fighting styles are available for all three classes, fighter, paladin, and ranger, so add them to all three here\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Blind Fighting (ua)\", {\r\n\tname : \"Blind Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"Being unable to see a creature doesn't impose disadvantage on my attack rolls against it\",\r\n\t\t\"However, this doesn't help me if the creature is hidden from me\"\r\n\t])\r\n});\r\nAddFightingStyle([\"ranger\"], \"Interception\", { // different for the Ranger, doesn't get this in TCoE\r\n\tname : \"Interception Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature I can see hits a target within 5 ft of me, I can intercept\",\r\n\t\t\"I reduce the damage the target takes by 1d10 + my Proficiency Bonus (min 0 damage)\",\r\n\t\t\"I can only do this while wielding a shield or a simple or martial weapon\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Thrown Weapon Fighting (ua)\", {\r\n\tname : \"Thrown Weapon Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 13]],\r\n\tdescription : desc([\r\n\t\t\"I can draw a weapon with the thrown property as part of the attack I make with it\",\r\n\t\t\"In addition, my ranged attacks made with thrown weapons deal +1 damage\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isThrownWeapon && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1 damage when thrown';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I deal +1 damage when I hit a ranged attack made with a thrown weapon.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && !v.isMeleeWeapon) {\r\n\t\t\t\t\toutput.extraDmg += 1;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Unarmed Fighting (ua)\", {\r\n\tname : \"Unarmed Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 13]],\r\n\tdescription : desc([\r\n\t\t\"My unarmed strikes deal 1d6 damage, or 1d8 damage when I have both hands free\",\r\n\t\t\"When I successfully start a grapple, I can deal 1d4 bludgeoning damage to the target\",\r\n\t\t\"Until the grapple ends, I can also deal this damage whenever I hit it with a melee attack\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\tif (fields.Damage_Die == 1 || fields.Damage_Die == \"1d4\") fields.Damage_Die = '1d6';\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Versatile (d8)';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d6 damage instead of 1, which increases to 1d8 if I have both hands free to make an unarmed strike with.\",\r\n\t\t\t2\r\n\t\t]\r\n\t}\r\n});\r\nif (ClassSubList[\"fighter-battle master\"]) {\r\n\t// Fighter alternative class features and enhancements (only if Battle Master subclass exists)\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Maneuver Versatility (ua)\", {\r\n\t\tname : \"Maneuver Versatility\",\r\n\t\textraname : \"Optional Battle Master 3\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"Whenever I finish a long rest, I can replace a Maneuver I know with another\")\r\n\t}, \"Optional 3rd-level battle master features\");\r\n\t\t// New Maneuver options\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Bait and Switch (ua)\", {\r\n\t\tname : \"Bait and Switch\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"On my turn, I can expend a superiority die to swap places with an ally within 5 ft\",\r\n\t\t\t\"Doing this costs me 5 ft of movement, but this doesn't provoke opportunity attacks\",\r\n\t\t\t\"The ally then adds the superiority die to its AC until the start of my next turn\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Brace (ua)\", {\r\n\t\tname : \"Brace\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when a creature I can see moves within 5 of me, I can attack it\",\r\n\t\t\t\"I expend a superiority die and make one weapon attack, adding the die to the damage\"\r\n\t\t]),\r\n\t\tlimfeaname : \"Brace\\xA0\",\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Restraining Strike\", {\r\n\t\tname : \"Restraining Strike\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Immediately after hitting with a melee weapon attack, I can use a bonus action to grapple\",\r\n\t\t\t\"I add the superiority die to the Str (Athletics) check; I can only do this on my own turn\",\r\n\t\t\t\"The target is also restrained while grappled in this way\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \" (after melee weapon hit)\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Silver Tongue\", {\r\n\t\tname : \"Silver Tongue\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"When I make a Cha (Deception) or Cha (Persuasion) check, I can add a superiority die to it\")\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Snipe\", {\r\n\t\tname : \"Snipe\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a bonus action, I can expend a superiority die and make a ranged weapon attack\",\r\n\t\t\t\"I can draw a thrown weapon as part of making this attack; I add the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Studious Eye\", {\r\n\t\tname : \"Studious Eye\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"When I make a Wis (Insight) or Int (Investigation) check, I can add a superiority die to it\")\r\n\t});\r\n}\r\n\r\n// Monk class features enhancements\r\n// Add the monk weapon options as extrachoices\r\nRunFunctionAtEnd(function () {\r\n\tvar UACFV_Monk_Weapon = {\r\n\t\tname : \"Martial Arts Weapons\",\r\n\t\textraname : \"Monk Weapon\",\r\n\t\textrachoices : [],\r\n\t\tsource : [[\"UA:CFV\", 6]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Unarmed strike \\u0026 5 + Wis mod simple/martial weapons (not two-handed/heavy/special)\",\r\n\t\t\t\"With these monk weapons, I can use Dex instead of Str and the Martial Arts damage die\",\r\n\t\t\t\"When taking an Attack action with these, I get one unarmed strike as a bonus action\"\r\n\t\t]),\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tvar monkWeapons = [\"unarmed strike\"].concat(GetFeatureChoice(\"classes\", \"monk\", \"martial arts\", true));\r\n\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && (monkWeapons.indexOf(v.baseWeaponName) != -1 || (/monk weapon/i).test(v.WeaponTextName))) {\r\n\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tvar curDie = eval_ish(fields.Damage_Die.replace('d', '*'));\r\n\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\tvar curDie = 'x';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tif (isNaN(curDie) || curDie < aMonkDie) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '1d' + aMonkDie;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tif (fields.Mod === 1 || fields.Mod === 2 || What(AbilityScores.abbreviations[fields.Mod - 1] + \" Mod\") < What(AbilityScores.abbreviations[v.StrDex - 1] + \" Mod\")) {\r\n\t\t\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"I can use either Strength or Dexterity and my Martial Arts damage die in place of the normal damage die for any 'Monk Weapons', which include unarmed strike and 5 + my Wisdom modifier of simple or martial weapons of my choice that I'm proficient with and that don't have the two-handed, heavy, or special property.\\n   I can select these weapon using the \\\"Choose Feature\\\" button on the 2nd page, or have them count as such by including the words \\\"Monk Weapon\\\" in the name of the weapon.\",\r\n\t\t\t\t1\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\tfor (var weapon in WeaponsList) {\r\n\t\tvar aWea = WeaponsList[weapon];\r\n\t\t// skip attacks that are not simple or martial weapons, that have the heavy, two-handed, or special property, are magic weapons, or those that are spells or cantrips\r\n\t\tif (aWea.isMagicWeapon || !(/simple|martial/i).test(aWea.type) || (/heavy|special|((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?/i).test(aWea.description) || aWea.special || (/spell|cantrip/i).test(aWea.list)) continue;\r\n\t\tUACFV_Monk_Weapon.extrachoices.push(aWea.name);\r\n\t\tUACFV_Monk_Weapon[aWea.name.toLowerCase()] = {\r\n\t\t\tname : aWea.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : aWea.source,\r\n\t\t\tweaponsAdd : { select : [aWea.name] },\r\n\t\t\tsubmenu : ((/simple/i).test(aWea.type) ? \"\\x1BSimple weapon, \" : \"Martial weapon, \") + ((/^(?!.*melee).*\\d+.*$/i).test(aWea.range) ? \"ranged\" : \"melee\"),\r\n\t\t\tprereqeval : 'testSource(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"], \"weapExcl\") ? \"skip\" : isProficientWithWeapon(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"]);'\r\n\t\t}\r\n\t}\r\n\tCreateClassFeatureVariant(\"monk\", \"martial arts\", \"Choose Monk Weapons\", UACFV_Monk_Weapon);\r\n\t// Move some stuff around, because the original Martial Arts feature was moved into a choice, but we want to keep its original \"additional\", \"action\", \"eval\", \"removeeval\" attributes\r\n\tvar UACFV_Martial_Arts = ClassList.monk.features[\"martial arts\"];\r\n\tvar UACFV_Martial_Arts_Original = UACFV_Martial_Arts[\"\\x1B[original] martial arts\"];\r\n\tif (UACFV_Martial_Arts_Original) {\r\n\t\t[\"additional\", \"action\", \"eval\", \"removeeval\"].forEach(function (n) {\r\n\t\t\tif (!UACFV_Martial_Arts_Original[n]) return;\r\n\t\t\tUACFV_Martial_Arts[n] = UACFV_Martial_Arts_Original[n];\r\n\t\t\tdelete UACFV_Martial_Arts_Original[n];\r\n\t\t});\r\n\t}\r\n});\r\n// Ki enhancements\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Ki-Fueled Strike (ua)\", {\r\n\tname : \"Ki-Fueled Strike\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription: desc(\"If I spend any ki points during my action, I can make an unarmed strike as a bonus action\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Distant Eye (1 ki point) (ua)\", {\r\n\tname : \"Distant Eye\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \" [1 ki point]\\n   My ranged weapon attacks during this turn ignore the disadvantage from long range\"\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Quickened Healing (2 ki points) (ua)\", {\r\n\tname : \"Quickened Healing\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \" [2 ki points]\\n   As an action, I can regain a number of hit points equal to the roll of my martial arts die\",\r\n\taction : [[\"action\", \"\"]]\r\n}, \"Optional 2nd-level monk features\");\r\n\r\n// Paladin alternative class features and enhancements\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Martial Versatility (ua)\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a paladin level, I can swap a fighting style I know for another I'm allowed\")\r\n}, \"Optional 2nd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Paladin Spell List\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gentle repose\", \"prayer of healing\", \"warding bond\", \"life transference\", \"spirit guardians\", \"dawn\", \"flame strike\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the paladin class with the following spells (spell level in brackets): Gentle Repose (2), Prayer of Healing (2), Warding Bond (2), Life Transference (3), Spirit Guardians (3), Dawn (5), and Flame Strike (5).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features[\"subclassfeature3.0-channel divinity\"], true, \"Harness Divine Power (ua)\", {\r\n\tname : \"Channel Divinity:\\xA0Harness Divine Power\",\r\n\textraname : \"Optional Paladin 3\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription: desc(\"As a bonus action, I can use my holy symbol and a prayer to regain 1 used level 1 spell slot\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 3rd-level paladin features\");\r\n\r\n// Ranger alternative class features and enhancements\r\nvar UACFV_Deft_Explorer = {\r\n\tname : \"Deft Explorer\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : desc('Use the \"Choose Feature\" button above to add a deft explorer benefit to the third page'),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn n < 6 ? \"1 benefit\" : (n < 10 ? 2 : 3) + \" benefits\";\r\n\t}),\r\n\textraTimes : levels.map(function (n) {\r\n\t\treturn n < 6 ? 1 : n < 10 ? 2 : 3;\r\n\t}),\r\n\textraname : \"Deft Explorer Benefit\",\r\n\textrachoices : [\"Canny\", \"Roving\", \"Tireless\"],\r\n\t\"canny\" : {\r\n\t\tname : \"Canny\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription : desc([\r\n\t\t\t\"I learn two language of my choice, and proficiency and expertise with one skill of my choice\",\r\n\t\t\t\"The skill I have to choose from: Animal Handling, Athletics, History, Insight, Investigation,\",\r\n\t\t\t\"Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t\t]),\r\n\t\tlanguageProfs : [2],\r\n\t\tskillstxt : \"Proficiency and expertise with one from Animal Handling, Athletics, History, Insight, Investigation, Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t},\r\n\t\"roving\" : {\r\n\t\tname : \"Roving\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription: desc(\"I gain +5 ft walking speed and climbing and swimming speed equal to my walking speed\"),\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : \"+5\", enc : \"+5\" },\r\n\t\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t\t}\r\n\t},\r\n\t\"tireless\" : {\r\n\t\tname : \"Tireless\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Whenever I finish a short or long rest, I reduce my exhaustion level, if any, by 1\",\r\n\t\t\t\"As an action a number of times per day, I can give myself temp HP of 1d10 + Wis mod\"\r\n\t\t]),\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : \"Wisdom modifier per \",\r\n\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\trecovery : \"long rest\"\r\n\t},\r\n\tautoSelectExtrachoices : []\r\n}\r\nCreateClassFeatureVariant(\"ranger\", \"natural explorer\", \"Deft Explorer (ua)\", UACFV_Deft_Explorer);\r\nvar UACFV_Favored_Foe = {\r\n\tname : \"Favored Foe\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : desc([\r\n\t\t\"I know Hunter's Mark and it doesn't count against the number of spells I can know\",\r\n\t\t\"I can cast it a number of times without using a spell slot or requiring concentration\",\r\n\t\t\"I can also use a spell slot to cast it as normal, but then it does require concentration\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Favored Foe\",\r\n\t\tspells : [\"hunter's mark\"],\r\n\t\tselection : [\"hunter's mark\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}],\r\n\tusages : \"Wisdom modifier per \",\r\n\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\trecovery : \"long rest\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"hunter's mark\"]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"favored enemy\", \"Favored Foe (ua)\", UACFV_Favored_Foe);\r\n// Now some easier alternatives/enhancements\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nvar UACFV_Ranger_Martial_Versatility = {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a ranger level, I can swap a fighting style I know for another I'm allowed\")\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Martial Versatility (ua)\", UACFV_Ranger_Martial_Versatility, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Ranger_Expanded_Spell_List = {\r\n\tname : \"Expanded Ranger Spell List\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"searing smite\", \"aid\", \"enhance ability\", \"gust of wind\", \"magic weapon\", \"warding bond\", \"blinding smite\", \"meld into stone\", \"revivify\", \"tongues\", \"death ward\", \"dominate beast\", \"awaken\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the ranger class with the following spells (spell level in brackets): Entangle (1), Searing Smite (1), Aid (2), Enhance Ability (2), Gust of Wind (2), Magic Weapon (2), Warding Bond (2), Blinding Smite (3), Meld into Stone (3), Revivify (3), Tongues (3), Death Ward (4), Dominate Beast (4), Awaken (5), and Greater Restoration (5).\"\r\n\t\t]\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Expanded Spell List (ua)\", UACFV_Ranger_Expanded_Spell_List, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Ranger_Spell_Versatility = {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription: desc(\"When I finish a long rest, I can replace a ranger spell I know with another of the same level\")\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Spell Versatility (ua)\", UACFV_Ranger_Spell_Versatility, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Primal_Awareness = {\r\n\tname : \"Primal Awareness\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription : desc([\r\n\t\t\"I get bonus spells known, which do not count against the number of spells I can know\",\r\n\t\t\"In addition, I can cast each once per long rest without expending a spell slot\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the bonus spells from the normally selectable list\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I know the following spells, without them counting towards the maximum number of spells I can know: Detect Magic, Speak with Animals, Beast Sense, Locate Animals or Plants, Speak with Plants, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Primal Awareness\",\r\n\t\tspells : [\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tselection : [\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : levels.map(function (n) {\r\n\t\t\treturn n < 5 ? 2 : n < 9 ? 4 : n < 13 ? 5 : n < 17 ? 6 : 7;\r\n\t\t})\r\n\t}]\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"primeval awareness\", \"Primal Awareness (ua)\", UACFV_Primal_Awareness);\r\nvar UACFV_Fade_Away = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can become invisible along with any equipment I'm wearing/carrying\",\r\n\t\t\"This invisibility lasts until the start of my next turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"hide in plain sight\", \"Fade Away (ua)\", UACFV_Fade_Away);\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tAddFeatureChoice(ClassSubList[\"ranger-beast master\"].features[\"subclassfeature3\"], true, \"Beast of the Air/Earth (ua)\", {\r\n\t\tname : \"Beast of the Air/Earth\",\r\n\t\textraname : \"Optional Beast Master 3\",\r\n\t\tsource : [[\"UA:CFV\", 8]],\r\n\t\tdescription : desc([\r\n\t\t\t\"My ranger's companion can be a primal beast whose lineage stretches back to the beginning\",\r\n\t\t\t\"This beast of the air or earth takes the form of a regular animal, but has different abilities\",\r\n\t\t\t\"Its hit points total is equal to its Con mod + my Wis mod + 5 times my ranger level\",\r\n\t\t\t\"As a bonus action, I can command it to make one attack or take the Hide action\",\r\n\t\t\t\"If it dies, I can revive it within 1 hour as an action where I expend a spell slot and touch it\",\r\n\t\t\t\"It then returns to life with all its hit points after 1 minute\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"Command Beast of the Air/Earth\"], [\"action\", \"Revive Beast of the Air/Earth\"]],\r\n\t\tcreaturesAdd : [[\"Beast of the Air\", true], [\"Beast of the Earth\", true]],\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Beast of the Air\",\r\n\t\t\tsource : [[\"UA:CFV\", 8]],\r\n\t\t\tsize : 4,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Neutral\",\r\n\t\t\tac : 13,\r\n\t\t\thp : 6,\r\n\t\t\thd : [1, 6],\r\n\t\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\t\tspeed : \"10 ft, fly 60 ft\",\r\n\t\t\tscores : [6, 16, 13, 8, 14, 11],\r\n\t\t\tsaves : [\"\", 5, 3, \"\", 4, \"\"],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\"stealth\" : 5\r\n\t\t\t},\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 14,\r\n\t\t\tlanguages : \"understands the languages of its master (me)\",\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Shred\",\r\n\t\t\t\tability : 2,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\"\r\n\t\t\t}],\r\n\t\t\tfeatures : [{\r\n\t\t\t\tname : \"Ready Companion\",\r\n\t\t\t\tdescription : \"As a bonus action, I can command the beast to make its shred attack or to Hide.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Primal Rebirth\",\r\n\t\t\t\tdescription : \"If the beast has died within the last hour, I can use my action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Flyby\",\r\n\t\t\t\tdescription : \"The beast doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\t\tvar rngrLvl5 = 5 * rngrLvl;\r\n\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + rngrLvl5);\r\n\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its master's Wisdom modifier\\n + 5 \\xD7 \" + rngrLvl + \" from five times its master's ranger level (\" + rngrLvl5 + \")\");\r\n\t\t\t\t},\r\n\t\t\t\tsetAltHp : true,\r\n\t\t\t\thpForceRecalc : true\r\n\t\t\t},\r\n\t\t\tcompanionApply : \"companion\"\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Earth\",\r\n\t\t\tsource : [[\"UA:CFV\", 9]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Neutral\",\r\n\t\t\tac : 12,\r\n\t\t\thp : 7,\r\n\t\t\thd : [1, 8],\r\n\t\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\t\tspeed : \"40 ft, climb or swim 40 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsaves : [\"\", 4, 4, \"\", 4, \"\"],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\"stealth\" : 4\r\n\t\t\t},\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 14,\r\n\t\t\tlanguages : \"understands the languages of its master (me)\",\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Maul\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t\t\t}],\r\n\t\t\tfeatures : [{\r\n\t\t\t\tname : \"Movement Mode\",\r\n\t\t\t\tdescription : \"When I bond with the beast, I choose wether it has a climb speed or a swim speed.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Ready Companion\",\r\n\t\t\t\tdescription : \"As a bonus action, I can command the beast to make its shred attack or to Hide.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Primal Rebirth\",\r\n\t\t\t\tdescription : \"If the beast has died within the last hour, I can use my action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tdescription : \"If the beast moves at least 20 ft straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against my spell save DC or be knocked prone.\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\t\tvar rngrLvl5 = 5 * rngrLvl;\r\n\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + rngrLvl5);\r\n\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its master's Wisdom modifier\\n + 5 \\xD7 \" + rngrLvl + \" from five times its master's ranger level (\" + rngrLvl5 + \")\");\r\n\t\t\t\t},\r\n\t\t\t\tsetAltHp : true,\r\n\t\t\t\thpForceRecalc : true\r\n\t\t\t},\r\n\t\t\tcompanionApply : \"companion\"\r\n\t\t}]\r\n\t}, \"Optional 3rd-level beast master features\");\r\n}\r\n\r\n// Add the Ranger alternative class features also to the Revised Ranger, if it exists\r\nif (ClassList[\"rangerua\"]) {\r\n\tCreateClassFeatureVariant(\"rangerua\", \"natural explorer\", \"Deft Explorer (ua)\", UACFV_Deft_Explorer);\r\n\r\n\t// Add Favored Foe as an alternative choice (can't be done by automation because of choices) and add \"Favored Foe\" variant option\r\n\t// Move some attributes from the main object to the favored enemy choice objects\r\n\t['additional', 'languageProfs', 'calcChanges'].forEach( function(attr) {\r\n\t\tvar fea = ClassList.rangerua.features[\"favored enemy\"];\r\n\t\tif (!fea[attr]) return;\r\n\t\t// Move the attribute to each of the choices\r\n\t\tfor (var i = 0; i < fea.choices.length; i++) {\r\n\t\t\tvar aCh = fea[fea.choices[i].toLowerCase()];\r\n\t\t\tif (aCh.source) continue; // don't do options that are not part of the original entry (which don't have a source)\r\n\t\t\taCh[attr] = fea[attr];\r\n\t\t}\r\n\t\t// Now delete the attributes from the parent object\r\n\t\tdelete fea[attr];\r\n\t});\r\n\t// Now add the alternative class feature as another choice\r\n\tAddFeatureChoice(ClassList.rangerua.features[\"favored enemy\"], false, \"[alternative feature] Favored Foe (ua)\", UACFV_Favored_Foe);\r\n\r\n\t// The enhancement option for fighting styles has to be added to each class separately\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Martial Versatility (ua)\", UACFV_Ranger_Martial_Versatility, \"Optional 2nd-level ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Expanded Spell List (ua)\", UACFV_Ranger_Expanded_Spell_List, \"Optional 2nd-level ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Spell Versatility (ua)\", UACFV_Ranger_Spell_Versatility, \"Optional 2nd-level ranger features\");\r\n\t\tCreateClassFeatureVariant(\"rangerua\", \"primeval awareness\", \"Primal Awareness (ua)\", UACFV_Primal_Awareness);\r\n\tCreateClassFeatureVariant(\"rangerua\", \"hide in plain sight\", \"Fade Away (ua)\", UACFV_Fade_Away);\r\n}\r\n\r\n// Rogue alternative class feature enhancement\r\nAddFeatureChoice(ClassList.rogue.features[\"cunning action\"], true, \"Cunning Action: Aim (ua)\", {\r\n\tname : \"Cunning Action: Aim\",\r\n\textraname : \"Optional Rogue 2\",\r\n\tsource : [[\"UA:CFV\", 9]],\r\n\tdescription : desc([\r\n\t\t\"I can also use my cunning action bonus action to carefully aim my next attack\",\r\n\t\t\"If I don't move in my turn, I give myself adv. on my next attack in the current turn\",\r\n\t\t\"After I use cunning action to aim, my speed is 0 until the end of the current turn\"\r\n\t])\r\n}, \"Optional 2nd-level rogue features\");\r\n\r\n// Sorcerer alternative class features and enhancements\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Sorcerer Spell List\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"UA:CFV\", 9]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"primal savagery\", \"grease\", \"protection from evil and good\", \"flame blade\", \"flaming sphere\", \"vampiric touch\", \"fire shield\", \"flesh to stone\", \"demiplane\", \"foresight\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the sorcerer class with the following spells (spell level in brackets): Primal Savagery (cantrip), Grease (1), Protection from Evil and Good (1), Flame Blade (2), Flaming Sphere (2), Vampiric Touch (3), Fire Shield (4), Flesh to Stone (6), Demiplane (8), and Foresight (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription: desc(\"After a long rest, I can swap a sorcerer cantrip/spell I know for another of the same level\")\r\n}, \"Optional sorcerer features\");\r\n// Font of Magic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Empowering Reserves\", {\r\n\tname : \"Empowering Reserves\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [2 sorcery points]\\n   When I make an ability check on my turn, I can gain advantage on the check\"\r\n}, \"Optional 2nd-level sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Imbuing Touch\", {\r\n\tname : \"Imbuing Touch\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [2 sorcery points]\\n   As an action, I can touch a nonmagical weapon and make it count as magical for 1 minute\",\r\n\taction : [[\"action\", \" (2 sorcery points)\"]]\r\n}, \"Optional 2nd-level sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Sorcerous Fortitude (ua)\", {\r\n\tname : \"Sorcerous Fortitude\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [1+ sorcery points]\\n   As an action, I can gain 1d4 temporary hit points per sorcery point I spend\",\r\n\taction : [[\"action\", \" (1+ sorcery points)\"]]\r\n}, \"Optional 2nd-level sorcerer features\");\r\n// Metamagic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Elemental Spell (ua)\", {\r\n\tname : \"Elemental Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"If the spell deals one of the below damage types, I can change it to another on the list\",\r\n\t\t\"These damage types are: acid, cold, fire, lightning, or thunder\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Seeking Spell (ua)\", {\r\n\tname : \"Seeking\\xA0Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"I can ignore half- and three-quarters cover for the one spell I'm casting\",\r\n\t\t\"This applies both to my spell attack rolls as to the Dexterity saving throws of the targets\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Unerring Spell (ua)\", {\r\n\tname : \"Unerring Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"2 sorcery points\",\r\n\tdescription : desc([\r\n\t\t\"If I make an attack roll for a spell and miss, I can use this to reroll the attack once\",\r\n\t\t\"I can use unerring spell even if I already used another metamagic option for the spell\"\r\n\t])\r\n});\r\n\r\n// Warlock alternative class features and enhancements\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription: desc(\"After a long rest, I can swap a warlock cantrip or spell I know for another of the same level\")\r\n}, \"Optional 1st-level warlock features\");\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Warlock Spell List\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"thunderwave\", \"knock\", \"animate dead\", \"life transference\", \"greater invisibility\", \"phantasmal killer\", \"mislead\", \"modify memory\", \"planar binding\", \"teleportation circle\", \"create homunculus\", \"magic jar\", \"project image\", \"abi-dalzim's horrid wilting\", \"gate\", \"shapechange\", \"weird\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the warlock class with the following spells (spell level in brackets): Thunderwave (1), Knock (2), Animate Dead (3), Life Transference (3), Greater Invisibility (4), Phantasmal Killer (4), Mislead (5), Modify Memory (5), Planar Binding (5), Teleportation Circle (5), Create Homunculus (6), Magic Jar (6), Project Image (7), Abi-Dalzim's Horrid Wilting (8), Gate (9), Shapechange (9), and Weird (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\n// New Eldritch Invocations\r\nAddWarlockInvocation(\"Bond of the Talisman (prereq: level 12 warlock, Pact of the Talisman) (ua)\", {\r\n\tname : \"Bond of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can teleport to the unoccupied space closest to the wearer of my talisman\",\r\n\t\t\"The talisman's wearer can do the same to teleport to me; Only works if both on same plane\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 12 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Chain Master's Fury (prereq: level 9 warlock, Pact of the Chain)\", {\r\n\tname : \"Chain Master's Fury\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription: desc(\"As a bonus action, I can command my familiar to make one attack\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Armor (prereq: Pact of the Blade)\", {\r\n\tname : \"Eldritch Armor\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can touch an unattended suit of armor and instantly don it\",\r\n\t\t\"I am proficient with this suit of armor until it is removed\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade';\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Mind (prereq: Pact of the Tome)\", {\r\n\tname : \"Eldritch Mind\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription: desc(\"I have advantage on my Constitution saving throws to maintain concentration on a spell\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves\" }\r\n});\r\nAddWarlockInvocation(\"Far Scribe (prereq: level 5 warlock, Pact of the Tome) (ua)\", {\r\n\tname : \"Far\\xA0Scribe\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Cha mod (min 1) in creature names; I can remove one as an action\",\r\n\t\t\"I can cast Sending without a spell slot or material components, targeting one on the page\",\r\n\t\t\"Instead of saying the message, I write it on the page and any reply appears there as well\",\r\n\t\t\"This writing disappears after 1 minute; The target still hears the message in their mind\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Far Scribe\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Send 25 word message to crea named in book of shadows; it recognizes me and can respond 25 words\",\r\n\t\t\tchanges : \"By using Far Scribe, I can cast Sending without using a spell slot or material components, but only to target one of the creatures that wrote their name in my book of shadows. Instead of speaking the message, I write it in my book and any response appears there as well, lasting for 1 minute. The target still hears the message in their mind.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gift of the Protectors (prereq: level 9 warlock, Pact of the Tome) (ua)\", {\r\n\tname : \"Gift of the\\xA0Protectors\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Cha mod (min 1) in creature names; I can remove one as an action\",\r\n\t\t\"If a creature whose name is on the page drops to 0 HP, it magically drops to 1 HP instead\",\r\n\t\t\"This doesn't work if the creature would be killed outright\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Investment of the Chain Master (prereq: Pact of the Chain) (ua)\", {\r\n\tname : \"Investment of the Chain\\xA0Master\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription : desc([\r\n\t\t\"When I cast Find Familiar, the summoned create has additional benefits:\",\r\n\t\t\"\\u2022 It gains a flying or swimming speed of 40 ft (my choice at casting)\",\r\n\t\t\"\\u2022 It no longer needs to breathe\",\r\n\t\t\"\\u2022 Its weapon attacks are considered magical for overcoming immunities and resistances\",\r\n\t\t\"\\u2022 If it forces a creature to make a saving throw, it uses my spell save DC\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\tcalcChanges : {\r\n\t\tcompanionCallback : [function(prefix, oCrea, bAdd, sCompType) {\r\n\t\t\tif (sCompType !== \"pact_of_the_chain\") return;\r\n\t\t\tvar strFea = \"##\\u25C6 Investment of the Chain Master (UA:CFV 11)##.: The familiar gains 40 ft fly or swim speed (my choice), doesn't need to breathe, its attacks are considered magical, and it can use my spell save DC instead of its own DC's (if any).\";\r\n\t\t\tvar strSpd = \"fly or swim 40 ft\";\r\n\t\t\tif (What(\"Unit System\") === \"metric\") {\r\n\t\t\t\tstrFea = ConvertToMetric(strFea, 0.5);\r\n\t\t\t\tstrSpd = ConvertToMetric(strSpd, 0.5);\r\n\t\t\t}\r\n\t\t\tvar aFnc = bAdd ? AddString : RemoveString;\r\n\t\t\taFnc(prefix + \"Comp.Use.Features\", strFea, true);\r\n\t\t\taFnc(prefix + \"Comp.Use.Speed\", strSpd, typePF ? \",\\n\" : \", \");\r\n\t\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\t\tvar baseFld = prefix + \"Comp.Use.Attack.\" + i;\r\n\t\t\t\tvar weaDescrFld = baseFld + \".Description\";\r\n\t\t\t\tvar strWeaDescr = What(weaDescrFld);\r\n\t\t\t\tif (bAdd && What(baseFld + \".Weapon Selection\") && !(/(,|;)? ?counts as magical/i).test(strWeaDescr)) {\r\n\t\t\t\t\tAddString(weaDescrFld, \"Counts as magical\", \"; \");\r\n\t\t\t\t} else if (!bAdd) {\r\n\t\t\t\t\tValue(weaDescrFld, strWeaDescr.replace(/(,|;)? ?counts as magical/i, ''));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"My pact of the chain familiars gain an extra feature listing the extra bonuses they gain.\"]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Protection of the Talisman (prereq: level 9 warlock, Pact of the Talisman) (ua)\", {\r\n\tname : \"Protection of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription: desc(\"The wearer of my talisman adds 1d4 to saving throw rolls in which they lack proficiency\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\tsavetxt : { text : [\"+1d4 to nonproficient saves\"] }\r\n});\r\nAddWarlockInvocation(\"Rebuke of the Talisman (prereq: Pact of the Talisman) (ua)\", {\r\n\tname : \"Rebuke of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when the wearer of my talisman is hit, I deal damage and push the attacker\",\r\n\t\t\"To be able to do this, I have to see the attacker and it has to be within 30 ft of me\",\r\n\t\t\"I deal it my Cha mod in psychic damage (min 1) and push it 10 ft away from the talisman\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\n// Pact Boon option\r\nAddWarlockPactBoon(\"Pact of the Talisman (ua)\", {\r\n\tname : \"Pact of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"The wearer of this amulet adds 1d4 to checks with skills in which they lack proficiency\",\r\n\t\t\"I can give the talisman to others to use; The talisman turns to ash when I die\",\r\n\t\t\"If I lose my talisman, I can perform a 1-hour ceremony to gain a replacement\",\r\n\t\t\"This ceremony destroys the previous amulet and can be done during a short or long rest\"\r\n\t])\r\n});\r\n\r\n// Wizard alternative class features and enhancements\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a wizard level, I can replace a wizard cantrip I know with another\")\r\n}, \"Optional 1st-level wizard features\");\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Wizard Spell List\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"augury\", \"enhance ability\", \"speak with dead\", \"divination\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the wizard class with the following spells (spell level in brackets): Augury (2), Enhance Ability (2), Speak with Dead (3), and Divination (4).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\n\n// ua_20191125_Fighter-Rogue-and-Wizard.js\r\n// This file adds the content from the Unearthed Arcana: Fighter, Rogue, and Wizard (psionics) article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FRnW\"] = {\r\n\tname : \"Unearthed Arcana: Fighter, Rogue, and Wizard\",\r\n\tabbreviation : \"UA:FRnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-PsychicSoulPsionics.pdf\",\r\n\tdate : \"2019/11/25\"\r\n};\r\n\r\n// Add a subclass for the Fighter\r\nAddSubClass(\"fighter\", \"psychic warrior-ua\", {\r\n\tregExpSearch : /^(?=.*psychic)(?=.*warrior).*$/i,\r\n\tsubname : \"Psychic Warrior\",\r\n\tsource : [[\"UA:FRnW\", 1]],\r\n\tfullname : \"Psychic Warrior\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Armament\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar a = desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can choose to augment my defenses or strikes until the next\",\r\n\t\t\t\t\t\" \\u2022 As a reaction, augmented defenses allow me to reduce the damage taken by 1d10\",\r\n\t\t\t\t\t\"   I can reduce the damage taken by myself or by a creature that I can see within 30 ft\",\r\n\t\t\t\t\t\" \\u2022 Once per turn, augmented strikes adds +1d4 psychic damage to my weapon attack\"\r\n\t\t\t\t]);\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 10 ? a : a.replace('1d10', '1d12').replace('1d4', '1d6');\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 10 ? \"1d10 defense; 1d4 offense\" : \"1d12 defense; 1d6 offense\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"Augmented Defenses\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Telekinetic Hand\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I learn the Mage Hand cantrip, can cast it without components, and can make it invisible\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Telekinetic Hand\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiples\",\r\n\t\t\t\t\tchanges : \"My Telekinetic Hand class feature allows me to cast Mage Hand without components and I can make the spectral hand invisible.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Strength of Mind\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 20 ft make a Strength save\",\r\n\t\t\t\t\"It takes 2d6 + Int mod psychic damage \\u0026 moves 15 ft away or towards me (my choice)\",\r\n\t\t\t\t\"If its save succeeds, it takes half damage and isn't moved; DC 8 + Prof Bonus + Int mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Telekinetic Bulwark\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action, I can forgo one of the attacks to project psionic power\",\r\n\t\t\t\t\"Myself and my allies within 10 ft of me gain half cover and adv. on Strength saves\",\r\n\t\t\t\t\"This 10-ft radius bastion around me lasts for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"I regain the usage of this feature after I use my second wind feature\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tlimfeaname : \"Telekinetic Bulwark [Second Wind regains]\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Agonizing Strikes\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I hit a creature with a weapon attack, I can deal an extra +2d10 psychic damage\",\r\n\t\t\t\t\"The target also has to make a Constitution save (DC 8 + my Prof Bonus + my Int mod)\",\r\n\t\t\t\t\"If it fails, it falls prone and has disadv. on its next ability check until my next turn starts\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Psychic Dreadnaught\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can give myself the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 At the start of each of my turns, I regain 10 hit points\",\r\n\t\t\t\t\" \\u2022 My walking speed increases by +10 ft\",\r\n\t\t\t\t\" \\u2022 If I'm prone, I can stand up by spending 5 ft of movement\",\r\n\t\t\t\t\"These benefits also end when I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Rogue\r\nAddSubClass(\"rogue\", \"soulknife-ua\", {\r\n\tregExpSearch : /soulknife/i,\r\n\tsubname : \"Soulknife\",\r\n\tsource : [[\"UA:FRnW\", 2]],\r\n\tfullname : \"Soulknife\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psychic Blade\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can create a magical blade from one or both of my hands\",\r\n\t\t\t\t\"Disappear if I'm incapacitated, leave my hand (not thrown), or I dismiss it (no action)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*soulknife)(?=.*psychic)(?=.*blade).*$/i,\r\n\t\t\t\tname : \"Soulknife's Psychic Blade\",\r\n\t\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Simple\",\r\n\t\t\t\tdamage : [1, 6, \"psychic\"],\r\n\t\t\t\trange : \"Melee, 30/60 ft\",\r\n\t\t\t\tdescription : \"Finesse, light, thrown\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisSoulknifePsychicBlade : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psionic Enhancement\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can choose one of these benefits until my next long rest:\",\r\n\t\t\t\t\" \\u2022 Talk telepathically with those I can see in 30 ft; Can respond if they know a language\",\r\n\t\t\t\t\" \\u2022 Increase my walking speed by 5 ft\",\r\n\t\t\t\t\" \\u2022 Increase my maximum and current HP with my Intelligence modifier plus rogue level\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Terrifying Blade\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I damage a creature with my psychic blade, it must make a Wisdom saving throw\",\r\n\t\t\t\t\"If it fails, it is frightened of me until my the start of my next turn\",\r\n\t\t\t\t\"If it succeeds, it is immune to this for 24 hours; DC 8 + my Prof Bonus + my Int mod\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isSoulknifePsychicBlade) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Wis save or frightened for 1 round';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Psychic Veil\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become invisible along with everything I'm wearing or carrying\",\r\n\t\t\t\t\"This ends after 10 minutes, if I make an attack, or if I force a creature to make a save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Rend Mind\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can deal 12d6 psychic damage to a creature I can see within 30 ft\",\r\n\t\t\t\t\"It also makes an Int save or is stunned until my next turn starts; Half damage on success\",\r\n\t\t\t\t\"It has disadv. on the save if I'm hidden from it; DC 10 + my Prof Bonus + my Int mod\",\r\n\t\t\t\t\"I must have a psychic blade manifested to do so and one vanishes when I use this feature\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Wizard\r\nAddSubClass(\"wizard\", \"psionics-ua\", {\r\n\tregExpSearch : /^((?=.*(wizard|mage|magus))(?=.*psionics)|(?=.*(psionicist|mentalist)))(?!.*(wild mage|\\bpsion\\b|mystic)).*$/i,\r\n\tsubname : \"Psionics\",\r\n\tsource : [[\"UA:FRnW\", 3]],\r\n\tfullname : \"Psionicist\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Psionic Focus\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn to channel psionic energy through an object special to me, my psionic focus\",\r\n\t\t\t\t\"It allows me to reroll a roll of 1 on any psychic or force damage die for my wizard spells\",\r\n\t\t\t\t\"I can use this as my spellcasting focus; If lost, I can recreate it by meditating for 1 hour\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Psionic Devotion\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'I learn one cantrip: Friends, Mage Hand, or Message; Use \"Choose Feature\" button above',\r\n\t\t\t\t\"While my psionic focus is on me, I can cast it as a bonus action without components\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Friends\", \"Mage Hand\", \"Message\"],\r\n\t\t\t\"friends\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Friends\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn the Friends cantrip and while my psionic focus in on me, I am better at casting it\",\r\n\t\t\t\t\t\"I can cast it as a bonus action without components and the target doesn't become hostile\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"friends\"],\r\n\t\t\t\t\tselection : [\"friends\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"friends\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"Adv. on Cha checks vs. 1 crea currently not hostile; when spell ends, crea realizes I used magic\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Friends as a bonus action without requiring any components and when the spell ends, the target doesn't become hostile to me.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"mage hand\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Mage Hand\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn Mage Hand and while my psionic focus in on me, I am better at casting it\",\r\n\t\t\t\t\t\"I can then cast it as a bonus action without components and can make the hand invisible\",\r\n\t\t\t\t\t\"Also, I can control the hand as a bonus action instead of an action\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tdescription : \"Create invisible hand for simple tasks or carry up to 10 lb; 1 bns action to control; can't have multiples\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Mage Hand as a bonus action without requiring any components, can make the hand invisible, and controlling the hand is a bonus action for me.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"message\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Message\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn the Message cantrip and while my psionic focus in on me, I'm better at casting it\",\r\n\t\t\t\t\t\"I can then cast it as a bonus action without components\",\r\n\t\t\t\t\t\"Also, I don't need to point at the target or whisper the message out loud\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"message\"],\r\n\t\t\t\t\tselection : [\"message\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"message\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"1 crea hears message I think; can reply with a whisper; nobody can overhear; needs no straight line\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Message as a bonus action without requiring any components, don't need to point toward the target, and I don't need to whisper my message out loud.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Thought Form\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can use my psionic focus to transform my body into luminous energy\",\r\n\t\t\t\t\"I chose the shape (my size); It sheds 5-ft radius dim light; My equipment melds into it\",\r\n\t\t\t\t\"My psionic focus hovers within the energy; In this form, I have the following benefits:\",\r\n\t\t\t\t\" \\u2022 Spells I cast require no verbal, somatic, or material components without a gold cost\",\r\n\t\t\t\t\" \\u2022 I have resistance to psychic and nonmagical bludgeoning/piercing/slashing damage\",\r\n\t\t\t\t\"This lasts for 10 minutes or until I'm incapacitated, die, or use a bonus action to end it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Mental Discipline\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'I learn one spell: Dominate Person, Scrying, or Telekinesis; Use \"Choose Feature\" button',\r\n\t\t\t\t\"I can cast the spell without a spell slot once per long rest (and normally with a spell slot)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tchoices : [\"Dominate Person\", \"Scrying\", \"Telekinesis\"],\r\n\t\t\t\"dominate person\" : {\r\n\t\t\t\tname : \"Mental Discipline: Dominate Person\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Dominate Person to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Dominate Person (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"dominate person\"],\r\n\t\t\t\t\tselection : [\"dominate person\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"dominate person\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Dominate Person without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"scrying\" : {\r\n\t\t\t\tname : \"Mental Discipline: Scrying\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Scrying to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Scrying (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"scrying\"],\r\n\t\t\t\t\tselection : [\"scrying\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"scrying\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Scrying without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"telekinesis\" : {\r\n\t\t\t\tname : \"Mental Discipline: Telekinesis\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Telekinesis to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Telekinesis (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"telekinesis\"],\r\n\t\t\t\t\tselection : [\"telekinesis\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"telekinesis\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Telekinesis without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10.1\" : {\r\n\t\t\tname : \"Empowered Psionics\",\r\n\t\t\tsource : [[\"UA:FRnW\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I add my Int modifier to one target of my wizard spells that do psychic or force damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spName.indexOf(\"wizard\") != -1) {\r\n\t\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"force|psychic\", \"Int\", true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I deal psychic or force damage with a wizard spell, I can add my Intelligence modifier to the damage against one of the spell's targets.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Thought Travel\",\r\n\t\t\tsource : [[\"UA:FRnW\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in my thought form, I gain a fly speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\"I can then also move through creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 1d10 force damage if I end my turn inside an object\",\r\n\t\t\t\t\"If I end my thought form while inside an object, I'm shunted to the nearest empty space\",\r\n\t\t\t\t\"I then take 1d10 force damage for every 5 ft traveled\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// The new spells\r\nSpellsList[\"ego whip-ua\"] = {\r\n\tname : \"Ego Whip\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or can't cast spells and disadv. on atks, checks, and saves; save end of each turn to end\",\r\n\tdescriptionFull : \"You lash the mind of one creature you can see within range, filling it with despair. The target must succeed on an Intelligence saving throw or suffer disadvantage on attack rolls, ability checks, and saving throws, and it can't cast spells. At the end of each of its turns, the target can make another Intelligence saving throw. On a success, the spell ends on the target.\"\r\n};\r\nSpellsList[\"id insinuation-ua\"] = {\r\n\tname : \"Id Insinuation\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or incapacitated and end of each turn 1d12 Psychic damage, after which it can save to end\",\r\n\tdescriptionShorter : \"1 crea save or incapacitated \\u0026 end of each turn 1d12 Psychic damage, can save to end after\",\r\n\tdescriptionFull : \"You unleash a torrent of conflicting desires in the mind of one creature you can see within range, impairing its ability to make decisions. The target must succeed on a Wisdom saving throw or be incapacitated. At the end of each of its turns, it takes 1d12 psychic damage, and it can then make another Wisdom saving throw. On a success, the spell ends on the target.\"\r\n};\r\nSpellsList[\"intellect fortress-ua_frnw\"] = { // completely different than later iterations in UA:POR and TCoE\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I have advantage on all saves and I can use my reaction to have a creature in 30 ft reroll a failed save\",\r\n\tdescriptionFull : \"You create a faintly shimmering barrier of protective psychic power around you. For the duration, you have advantage on all saving throws.\\n   When another creature that you can see within 30 feet of you fails a saving throw, you can use your reaction to allow them to reroll the save. They must use the new roll.\"\r\n};\r\nSpellsList[\"mental barrier-ua\"] = {\r\n\tname : \"Mental Barrier\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are forced to make an Intelligence, a Wisdom, or a Charisma saving throw\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"I have Psychic damage resistance and adv. on Int, Wis, and Cha saves until the start of my next turn\",\r\n\tdescriptionFull : \"You protect your mind with a wall of looping, repetitive thought. Until the start of your next turn, you have advantage on Intelligence, Wisdom, and Charisma saving throws, and you have resistance to psychic damage.\"\r\n};\r\nSpellsList[\"mind thrust-ua\"] = { // rather different than later iterations in UA:POR and TCoE\r\n\tname : \"Mind Thrust\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1+1/SL crea, all max 30 ft apart, 3d6 Psychic dmg, only Dash/Diseng. next turn; save half, any action\",\r\n\tdescriptionFull : \"You propel a lance of psionic disruption into the mind of one creature you can see within range. The target must make an Intelligence saving throw. On a failed save, the target takes 3d6 psychic damage, and it can use its action only to Dash or Disengage on its next turn. On a successful save, the target takes half as much damage, and this spell doesn't limit its action options.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"psionic blast-ua\"] = {\r\n\tname : \"Psionic Blast\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft cone\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea 5d8+1d8/SL Force dmg, 20 ft pushed away, knocked prone; save half, not pushed or prone\",\r\n\tdescriptionShorter : \"All 5d8+1d8/SL Force dmg, 20 ft pushed away, knocked prone; save half, not pushed or prone\",\r\n\tdescriptionFull : \"You unleash a destructive wave of mental power in a 30-foot cone. Each creature in the area must make a Dexterity saving throw. On a failed save, a target takes 5d8 force damage, is pushed 20 feet directly away from you, and is knocked prone. On a successful save, a target takes half as much damage and isn't pushed or knocked prone.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"psychic crush-ua\"] = {\r\n\tname : \"Psychic Crush\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 6,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 12d6 Psychic damage and stunned for 1 min; save half, not stunned; save at turn end to stop\",\r\n\tdescriptionFull : \"You overload the mind of one creature you can see within range, filling its psyche with discordant emotions. The target must make an Intelligence saving throw. On a failed save, the target takes 12d6 psychic damage and is stunned for 1 minute. On a successful save, the target takes half as much damage and isn't stunned.\\n   The stunned target can make an Intelligence saving throw at the end of each of its turns. On a successful save, the spell ends on the target.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"thought shield-ua\"] = {\r\n\tname : \"Thought Shield\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"1 crea's mind can't be read/detected, telepathy only if wanted, adv. on saves vs. lie detecting effects\",\r\n\tdescriptionFull : \"You weave a clouding veil over the mind of one creature you touch. For the duration, the target's mind can't be read or detected, creatures can't telepathically communicate with the target unless the target allows it, and the target has advantage on saving throws against any effect that would determine whether it is telling the truth.\"\r\n};\r\n\r\n// Add the two psionic-themed feats\r\nFeatsList[\"telekinetic-ua\"] = {\r\n\tname : \"Telekinetic\",\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tdescriptionFull : \"You learn to move things with your mind. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn the mage hand cantrip. You can cast it without verbal or somatic components, and you can make the spectral hand invisible.\\n \\u2022 As a bonus action, you can try to shove one creature you can see within 5 feet of the spectral hand created by your mage hand spell. When you do so, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + your Intelligence modifier) or be pushed 5 feet away from you.\",\r\n\tdescription : \"I learn the Mage Hand cantrip, can cast it without components, and can make it invisible. As a bonus action, I can use it to try and shove a creature I can see within 5 ft of it. The target must make a Str save (Int based) or be shoved 5 ft away from me. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Telekinetic\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tsave : \"Str\",\r\n\t\t\tdescription : \"Invisible hand, simple tasks, carries 10 lb; 1 a to control; not multiple; 1 bns 1 crea save or shove 5 ft\",\r\n\t\t\tchanges : \"My Telekinetic feat allows me to cast Mage Hand without verbal or somatic components and I can make the spectral hand invisible.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"telepathic-ua\"] = {\r\n\tname : \"Telepathic\",\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tdescriptionFull : \"You awaken the ability to mentally connect with others. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in one skill of your choice from the following list: Deception, Insight, Intimidation, or Persuasion.\\n \\u2022 You can communicate telepathically with any creature you can see within 30 feet of you. If it understands at least one language, it can respond to you telepathically.\",\r\n\tdescription : \"I gain proficiency with one skill chosen from Deception, Insight, Intimidation, or Persuasion. I can communicate telepathically with any creature I can see within 30 feet of me. If it understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tchoices : [\"Deception\", \"Insight\", \"Intimidation\", \"Persuasion\"],\r\n\t\"deception\" : {\r\n\t\tdescription : \"I gain proficiency with Deception. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Deception\"]\r\n\t},\r\n\t\"insight\" : {\r\n\t\tdescription : \"I gain proficiency with Insight. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Insight\"]\r\n\t},\r\n\t\"intimidation\" : {\r\n\t\tdescription : \"I gain proficiency with Intimidation. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Intimidation\"]\r\n\t},\r\n\t\"persuasion\" : {\r\n\t\tdescription : \"I gain proficiency with Persuasion. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Persuasion\"]\r\n\t}\r\n};\r\n\n// ua_20200114_Subclasses-Part-1.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 1 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP1\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 1\",\r\n\tabbreviation : \"UA:SP1\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020-Subclasses01.pdf\",\r\n\tdate : \"2020/01/14\"\r\n};\r\n\r\n// Add a subclasses for the Barbarian, Monk, Paladin, and Warlock\r\nAddSubClass(\"barbarian\", \"path of the beast-ua\", {\r\n\tregExpSearch : /^(?=.*\\bbeast\\b)(?=.*(warrior|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Beast\",\r\n\tsubnameShort: \"Beast\",\r\n\tsource : [[\"UA:SP1\", 1]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Form of the Beast\",\r\n\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my rage, I can transform to gain a bite, tail, or claws attack for that rage\",\r\n\t\t\t\t\"The bite attack allows me to regain my Con mod in HP on a hit once on my turn\",\r\n\t\t\t\t\"The claws attack allows me to make one extra attack when I use it in my Attack action\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*bite).*$/i,\r\n\t\t\t\tname : \"Bestial Bite\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; On a hit once on my turn, regain Con mod in HP\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*claws?).*$/i,\r\n\t\t\t\tname : \"Bestial Claws\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; Extra attack if used as part of Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*tail).*$/i,\r\n\t\t\t\tname : \"Bestial Tail\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 12, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Reach; Only in rage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"chosen weapon counts as magical\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bestial Soul\",\r\n\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can choose one of the following benefits until my next rest:\",\r\n\t\t\t\t\" \\u2022 Swimming speed equal to my walking speed and I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 Climb speed (same as walking) and no check to climb difficult surfaces or upside down\",\r\n\t\t\t\t\" \\u2022 Once per turn when I jump, I can extend it by the result of an Athletics check in feet\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.bestialNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The natural melee weapon that I gain from Form of the Beast count as magical for the purpose of overcoming resistance and immunity to nonmagical attacks and damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Infectious Fury\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In rage, when I hit a creature with my natural weapon, I can have it make a Wis save\",\r\n\t\t\t\t\"If it fails (DC 8 + my Prof Bonus + my Con mod) it suffers one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 It uses its reaction to make a melee attack against one creature I can see of my choice\",\r\n\t\t\t\t\" \\u2022 It takes 2d12 psychic damage\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Call the Hunt\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter rage, I can choose my Con mod of willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"The targets gain the Reckless Attack feature and I have adv. on saves vs. being frightened\",\r\n\t\t\t\t\"I also gain 5 temporary hit points per creature that accepts this benefit\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of mercy-ua\", {\r\n\tregExpSearch : /^(?=.*mercy)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Mercy\",\r\n\tsubnameShort: \"Mercy\",\r\n\tsource : [[\"UA:SP1\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Implements of Mercy\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the herbalism and poisoner's kit, and either Insight or Medicine\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the skill proficiency, Insight or Medicine'\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Herbalism kit\", \"Poisoner's kit\"],\r\n\t\t\tchoices : [\"proficiency with Insight\", \"proficiency with Medicine\"],\r\n\t\t\t\"proficiency with insight\" : {\r\n\t\t\t\tname : \"Implements of Mercy - Insight\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription: desc(\"I gain proficiency in the Insight skill and with the herbalism kit and the poisoner's kit\"),\r\n\t\t\t\tskills : [\"Insight\"]\r\n\t\t\t},\r\n\t\t\t\"proficiency with medicine\" : {\r\n\t\t\t\tname : \"Implements of Mercy - Medicine\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription: desc(\"I gain proficiency in the Medicine skill and with the herbalism kit and the poisoner's kit\"),\r\n\t\t\t\tskills : [\"Medicine\"]\r\n\t\t\t},\r\n\t\t\t\"hands of healing\" : {\r\n\t\t\t\tname : \"Hands of Healing\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"As an action, I can spend 1 ki point to touch a creature and restore a number of its HP\";\r\n\t\t\t\t\tvar b6 = \"It also recovers from one disease or the blinded, deafened, paralyzed, or poisoned condition\";\r\n\t\t\t\t\tvar c = \"When I use Flurry of Blows, I can do this instead of one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, c] :\r\n\t\t\t\t\t\t[a, b6, n < 11 ? c : c.replace(\"one\", \"each\")]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; heal 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wisdom modifier\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"hands of harm\" : {\r\n\t\t\t\tname : \"Hands of Harm\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I hit a creature with an unarmed strike, I can spend 1 ki point to deal extra damage\",\r\n\t\t\t\t\t\"Only once per turn; If the target is incapacitated or poisoned, I roll the damage die 3 times\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" necrotic damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hands of healing\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"hands of harm\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Noxious Aura\",\r\n\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 ki point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 ki point to gain a 5-ft radius toxic aura for 1 minute\",\r\n\t\t\t\t\"While active, ranged attacks have disadv. vs. me; It ends if I'm incapacitated or dismiss it\",\r\n\t\t\t\t\"Others who start their turn in it must make a Con save or be poisoned and take damage\",\r\n\t\t\t\t\"They take my Wis mod in poison damage (min 0); Poisoned lasts until my next turn ends\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Healing Technique\",\r\n\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"With hands of healing I can also end: 1 disease, blinded, deafened, paralyzed, or poisoned\"),\r\n\t\t\t\"hand of mercy\" : {\r\n\t\t\t\tname : \"Hand of Mercy\",\r\n\t\t\t\textraname : \"Way of Mercy 17\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can use 4 ki to have a touched creature make a Con save (can fail willingly)\",\r\n\t\t\t\t\t\"If failed, it becomes paralyzed in a state of suspended animation for my monk level in days\",\r\n\t\t\t\t\t\"It also has immunity to all damage, and curses, diseases, poisons affecting it are suspended\",\r\n\t\t\t\t\t\"The creature appears dead to all inspection and to spells used to determine its status\",\r\n\t\t\t\t\t\"I can end the effect at will (no action required); I can have only one affected at a time\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 17 ? \"\" : \"4 ki points; \" + n + \" days\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hand of mercy\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the watchers-ua\", {\r\n\tregExpSearch : /^(?=.*watchers)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Watchers\",\r\n\tsubnameShort: \"Watchers\",\r\n\tsource : [[\"UA:SP1\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Watcher's Will\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As an action, Cha mod of creatures I see in 30 ft adv. on Int/Wis/Cha saves for 1 min\"),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"alarm\", \"chromatic orb\", \"augury\", \"moonbeam\", \"counterspell\", \"nondetection\", \"aura of purity\", \"banishment\", \"hold monster\", \"hallow\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure the Extraplanar\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, elementals, fey, fiends, and aberrations within 30 ft must make a Wis save\",\r\n\t\t\t\t\"Succeeds if it can't hear me; On fail, turned for 1 minute or until it takes any damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Sentinel\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, chosen creatures in range and I add my Cha mod to Initiative\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"max(Cha|1)\", text : \"I can add my Charisma modifier (min +1) to initiative rolls.\" }]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Vigilant Rebuke\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another I can see saves against a spell, I can damage the caster\",\r\n\t\t\t\t\"Has to succeed save within 30 ft of me vs. unwanted spell; 2d8 + Cha mod force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Mortal Bulwark\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 Truesight out to 120 ft and adv. on attacks vs. elementals, fey, fiends, and aberrations\",\r\n\t\t\t\t\" \\u2022 I can force creatures I hit and damage with an attack to make a Charisma save\",\r\n\t\t\t\t\"   If failed, the target is banished to its native plane of existence if it's not currently there\",\r\n\t\t\t\t\"   If successful, the creature can't be banished by this feature for 24 hours\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the noble genie-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*noble)(?=.*\\b(genie|djinni|dao|efreeti)\\b).*$/i,\r\n\tsubname : \"the Noble Genie\",\r\n\tsource : [[\"UA:SP1\", 4]],\r\n\tspellcastingExtra : [\"fog cloud\", \"sleep\", \"enlarge/reduce\", \"phantasmal force\", \"create food and water\", \"protection from energy\", \"polymorph\", \"phantasmal killer\", \"bigby's hand\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Collector's Vessel\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My patron gives me a magical vessel, a Tiny object which I can use as a spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to receive a replacement\",\r\n\t\t\t\t\"As an action while holding it, I can create a tether to a willing target I can see in 100 ft\",\r\n\t\t\t\t\"This lasts for 1 hour, until I do this again, or the tethered target is reduced to 0 HP\",\r\n\t\t\t\t\"It also ends when the tethered target ends its turn further than 100 ft from me\",\r\n\t\t\t\t\"While the tether lasts, I add my Cha mod (min +1) to my Wis (Perception) checks\",\r\n\t\t\t\t\"Also, I can have spells I cast originate from the tethered creature's space\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Resistance\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can gain acid, cold, fire, or lightning resistance (my choice)\",\r\n\t\t\t\t\"This lasts until I finish my next long rest; A creature tethered to my vessel also gains this\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Protective Wish\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or my tethered creature is hit by an attack, we can swap places\",\r\n\t\t\t\t\"As we both teleport to each others location, the one hit by the attack switches as well\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10.1\" : {\r\n\t\t\tname : \"Genie's Entertainment\",\r\n\t\t\tsource : [[\"UA:SP1\", 6]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can have a creature I can see within 90 ft make a Charisma save\",\r\n\t\t\t\t\"If failed, it is drawn into my vessel and teleported to my patron's court for 1 minute\",\r\n\t\t\t\t\"In there it is stunned but unharmed; At the end of each of its turns it can save to return\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Collector's Call\",\r\n\t\t\tsource : [[\"UA:SP1\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can implore my patron if I make a Persuasion check vs. my spell save DC\",\r\n\t\t\t\t\"If I fail, the use is wasted; If I succeed, I can choose one of the following effects:\",\r\n\t\t\t\t\" \\u2022 A creature I can see in 60 ft heals 8d6 HP and 1 disease or condition affecting it ends\",\r\n\t\t\t\t\"   This condition can be blinded, charmed, deafened, frightened, paralyzed, or poisoned\",\r\n\t\t\t\t\" \\u2022 A creature I can see in 60 ft has disadv. on attacks \\u0026 saves until my next turn starts\",\r\n\t\t\t\t\" \\u2022 I can cast Legend Lore without using material components\",\r\n\t\t\t\t\"I can regain a use of this by sacrificing 500 gp of nonmagical treasure to my patron\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Collector's Call\",\r\n\t\t\t\tspells : [\"legend lore\"],\r\n\t\t\t\tselection : [\"legend lore\"],\r\n\t\t\t\tfirstCol : 'Sp'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"legend lore\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Learn summary of lore of named or described person, place, or object\",\r\n\t\t\t\t\tchanges : \"When I use my Collector's Call feature to cast Legend Lore, it doesn't require any material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20200206_Subclasses-Part-2.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 2 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP2\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 2\",\r\n\tabbreviation : \"UA:SP2\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_02_06_Subclasses2.pdf\",\r\n\tdate : \"2020/02/06\"\r\n};\r\n\r\n// Add a subclass for the Bard and the functionality for its Dancing Item\r\nAddSubClass(\"bard\", \"college of creation-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*creation).*$/i,\r\n\tsubname : \"College of Creation\",\r\n\tsubnameShort: \"Creation\",\r\n\tsource : [[\"UA:SP2\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Note of Potential\",\r\n\t\t\tsource : [[\"UA:SP2\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can also grant a note of potential to whomever I give a bardic inspiration die\",\r\n\t\t\t\t\"This tiny, invulnerable object orbits in 5 ft; It enhances the use of the inspiration die:\",\r\n\t\t\t\t\"\\u2022 Note of Destruction (used for attack roll): others within 5 ft must make a Con save\",\r\n\t\t\t\t\"  If failed, they take the die roll in thunder damage; This uses my spell save DC\",\r\n\t\t\t\t\"\\u2022 Note of Protection (used for save): Grants temp HP equal to the roll + my Cha mod\",\r\n\t\t\t\t\"\\u2022 Note of Ingenuity (used for check): Roll the die twice and choose which result to use\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Animating Performance\",\r\n\t\t\tsource : [[\"UA:SP2\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can animate a Large or smaller nonmagical item I can see within 30 ft\",\r\n\t\t\t\t\"It lasts for 1 hour or until it has 0 HP; I control it and it acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"When I use bardic inspiration, I can command the item as part of the same bonus action\",\r\n\t\t\t\t\"I can't have multiple at once; Select \\\"Dancing Item\\\" on a companion page for its stats\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Dancing Item\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tcreaturesAdd : [[\"Dancing Item\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Dancing Item\",\r\n\t\t\t\tsource : [[\"UA:SP2\", 2]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : 16,\r\n\t\t\t\thp : 33,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [18, 12, 16, 4, 10, 6],\r\n\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned, frightened\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Slam\",\r\n\t\t\t\t\tability : 6,\r\n\t\t\t\t\tdamage : [1, 10, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tmodifiers : [\"\", \"oCha\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"bard\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The item obeys the commands of its creator and uses its creator's spell attack modifier for its attack rolls. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Dash, Force-Empowered Slam (and possibly Endless Waltz), Disengage, Help, Hide, or Search action.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Immutable Form\",\r\n\t\t\t\t\tdescription : \"The item is immune to any spell or effect that would alter its form.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Endless Waltz\",\r\n\t\t\t\t\tdescription : \"Immediately after the item makes a slam attack, it can take the Dodge action as a bonus action.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : 'Animated',\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.bard) return;\r\n\t\t\t\t\t\tvar chaMod = Number(What('Cha Mod'));\r\n\t\t\t\t\t\tvar brdLvl = classes.known.bard.level;\r\n\t\t\t\t\t\tvar brdLvl5 = 5 * brdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(HDobj.conMod + chaMod + brdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + chaMod + \" from its creator's Charisma modifier\\n + 5 \\xD7 \" + brdLvl + \" from five times its creator's bard level (\" + brdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Performance of Creation\",\r\n\t\t\tsource : [[\"UA:SP2\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"As an action, I create a Large or smaller nonmagical item in an empty space in 10 ft\",\r\n\t\t\t\t\t\"Max \" + (20 * n) + \" gp value; I can't have multiple, creating more makes the first one vanish\",\r\n\t\t\t\t\t\"It vanishes when my next turn ends, unless I use my action to extend its life 1 extra turn\",\r\n\t\t\t\t\t\"If I sustain it for 1 minute this way, it continues to exists for my bard level in hours\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 5+\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Cleric\r\nAddSubClass(\"cleric\", \"unity domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*unity).*$/i,\r\n\tsubname : \"Unity Domain\",\r\n\tsource : [[\"UA:SP2\", 2]],\r\n\tspellcastingExtra : [\"heroism\", \"shield of faith\", \"aid\", \"warding bond\", \"beacon of hope\", \"sending\", \"aura of purity\", \"guardian of faith\", \"greater restoration\", \"rary's telepathic bond\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Emboldening Bond\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar descr = desc([\r\n\t\t\t\t\t\"As an action, I can magically bond two willing targets I can see in 30 ft (can be me)\",\r\n\t\t\t\t\t\"While within 30 ft of the other, a bonded target can add +d4 to a save, attack, or check\",\r\n\t\t\t\t\t\"This can only be added once per turn; The bond lasts for 1 hour or until I use this again\",\r\n\t\t\t\t\t\"I can do this once per long rest, after which I can do so by expending a spell slot (SS 1+)\"\r\n\t\t\t\t]);\r\n\t\t\t\tvar descr17 = descr.replace('While within 30 ft of the other', 'While on the same plane');\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 17 ? descr : descr17;\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Shared Burden\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft takes damage, I can divide that damage\",\r\n\t\t\t\t\"I then choose a number of willing creatures that I can see equal to my Wis mod (min 1)\",\r\n\t\t\t\t\"I distribute the damage over these and the original target, each taking at least 1 damage\",\r\n\t\t\t\t\"Damage resistances and vulnerabilities are only applied after the damage is distributed\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Protective Bond\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My emboldening bond now also allows the two bonded to shield each other of damage\",\r\n\t\t\t\t\"When the other takes damage, one can use its reaction to give it resistance to all damage\",\r\n\t\t\t\t\"This resistance lasts until the end of the current turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : n < 17 ? \"the bonded must be within 30 ft\" : \"the bonded must be on the same plane\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Enduring Unity\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"The 30 ft restriction no longer applies to my emboldening and protective bond features\",\r\n\t\t\t\t\"My emboldening bond now also empowers a bonded if the other is reduced to 0 HP\",\r\n\t\t\t\t\"If that happens, the bonded creature above 0 HP gains the following benefits:\",\r\n\t\t\t\t\" \\u2022 Advantage on attack rolls, ability checks, and saving throws; Resistance to all damage\",\r\n\t\t\t\t\" \\u2022 As an action, it can touch its bonded partner to expend and roll HD to heal\",\r\n\t\t\t\t\"These benefits lasts for 1 minute or until the downed creature regains at least 1 HP\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Sorcerer\r\nAddSubClass(\"sorcerer\", \"clockwork soul-ua\", {\r\n\tregExpSearch : /^((?=.*(sorcerer|witch))(?=.*mechanus)|(?=.*clockwork)(?=.*soul)).*$/i,\r\n\tsubname : \"Clockwork Soul\",\r\n\tsource : [[\"UA:SP2\", 4]],\r\n\tfullname : \"Clockwork Soul\",\r\n\tspellcastingExtra : [\"alarm\", \"protection from evil and good\", \"find traps\", \"heat metal\", \"counterspell\", \"glyph of warding\", \"arcane eye\", \"otiluke's resilient sphere\", \"animate objects\", \"wall of force\"],\r\n\tspellcastingExtraApplyNonconform : true,\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Clockwork Magic\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn additional spells, which do not count towards the number of spell I can know\")\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Restore Balance\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 60 ft is about to roll a d20 with adv./disadv.,\",\r\n\t\t\t\t\"I can prevent that roll from being affected by advantage and disadvantage.\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bulwark of Law\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can imbue a creature I can see within 30 ft with a magical ward\",\r\n\t\t\t\t\"I grant it a number of d8s equal to the number of sorcery points I expend when I do this\",\r\n\t\t\t\t\"When it takes damage, it can use its reaction to spend and roll any number of those dice\",\r\n\t\t\t\t\"The dice roll reduces the damage; The ward lasts until I finish a long rest or do this again\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1-5 sorcery points; 1d8 per point\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Trance of Order\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can enter a state of clockwork consciousness for 1 minute\",\r\n\t\t\t\t\"While in this state, attack rolls against me can't benefit from advantage\",\r\n\t\t\t\t\"Also, I can then treat a d20 roll below 9 as a 10 for my attack rolls, checks, and saves\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Clockwork Cavalcade\",\r\n\t\t\tsource : [[\"UA:SP2\", 5]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can call spirits to bring balance in a 30-ft cube originating from me\",\r\n\t\t\t\t\"Inside the cube, the intangible spirits do all the following before vanishing:\",\r\n\t\t\t\t\" \\u2022 Restore up to 100 HP, divided among the creatures in the cube as I see fit\",\r\n\t\t\t\t\" \\u2022 Repair all damaged objects in the cube\",\r\n\t\t\t\t\" \\u2022 End spells of my choice of 6th-level or lower on objects or creatures in the cube\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 7 sorcery points (7 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"7 SP\"\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20200206_Subclasses-Part-3.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 3 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP3\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 3\",\r\n\tabbreviation : \"UA:SP3\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020-Subclasses03_0224.pdf\",\r\n\tdate : \"2020/02/24\"\r\n};\r\n\r\n// Add a subclass for the Artificer (but after all other scripts, so that all armour options are present)\r\nRunFunctionAtEnd(function () {\r\n\tif (!ClassList.artificer) { return; };\r\n\tvar UASP3_artificerSubclassArmorerUA = AddSubClass(\"artificer\", \"armorer-ua\", {\r\n\t\tregExpSearch : /^(?=.*armou?rer)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Armorer\",\r\n\t\tfullname : \"Armorer\",\r\n\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools of the Trade\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with heavy armor \\u0026 smith's tools]\",\r\n\t\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\t\tspellcastingExtra : [\"magic missile\", \"shield\", \"mirror image\", \"shatter\", \"hypnotic pattern\", \"lightning bolt\", \"fire shield\", \"greater invisibility\", \"passwall\", \"wall of force\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Power Armor\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can use smith's tool to turn a suit of heavy armor into power armor\",\r\n\t\t\t\t\t\"It continues to be power armor until I doff it, don another armor, or I die\",\r\n\t\t\t\t\t\"It can't be removed against my will, covers all my limbs, and even replaces missing limbs\",\r\n\t\t\t\t\t\"I ignore the Strength requirement of power armor and can use it as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.2\" : {\r\n\t\t\t\tname : \"Armor Model\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a rest, I can use smith's tools to change the model of my arcane armor\",\r\n\t\t\t\t\t'Select a model using the \"Choose Feature\" button; See \"Notes\" page for features of each'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"also see notes page\",\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Power Armor Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"I can customize my power armor to the guardian or infiltrator model whenever I finish a short or long rest, provided I have smith's tools in hand.\",\r\n\t\t\t\t\t\t\"Each model includes a special weapon. When I attack with that weapon, I can use my Intelligence modifier, instead of Strength or Dexterity, for the attack and damage rolls.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Guardian Power Armor (Armorer 3, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"\\u2022 Thunder Gauntlets: The armored fists of the guardian power armor each count as a simple melee weapon, and each deals 1d8 thunder damage on a hit. A creature hit by the gauntlet has disadvantage on attack rolls against targets other than me until the start of me next turn, as the armor magically emits a distracting pulse when the creature attacks someone else.\",\r\n\t\t\t\t\t\t\"\\u2022 Defensive Field: As a bonus action, I can gain temporary hit points equal to my artificer level, replacing any temporary hit points I already have. I lose these temporary hit points if I doff the armor.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Infiltrator Power Armor (Armorer 3, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"\\u2022 Lightning Launcher: A gemlike node on one of the armored fists or on the chest (my choice) counts as a simple ranged weapon, with a normal range of 90 ft and a long range of 300 ft. It deals 1d6 lightning damage on a hit. Once on each of my turns when I hit a creature with it, I can deal an extra 1d6 lightning damage to that target.\",\r\n\t\t\t\t\t\t\"\\u2022 Powered Steps: My walking speed increases by 5 feet.\",\r\n\t\t\t\t\t\t\"\\u2022 Second Skin: The armor's weight is negligible, and it becomes formfitting and wearable under clothing. If the armor normally imposes disadvantage on Dexterity (Stealth) checks, the power armor doesn't.\"\r\n\t\t\t\t\t])\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [],\r\n\t\t\t\tchoiceDependencies : [{\r\n\t\t\t\t\tfeature : \"subclassfeature15\",\r\n\t\t\t\t\tchoiceAttribute : true\r\n\t\t\t\t}],\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*thunder)(?=.*gauntlet).*$/i,\r\n\t\t\t\t\tname : \"Thunder Gauntlets\",\r\n\t\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 8, \"thunder\"],\r\n\t\t\t\t\trange : \"Melee\",\r\n\t\t\t\t\tdescription : \"Target hit disadv. on attacks vs. others than me until my next turn starts\",\r\n\t\t\t\t\tabilitytodamage : true,\r\n\t\t\t\t\tmonkweapon : true\r\n\t\t\t\t}, {\r\n\t\t\t\t\tregExpSearch : /^(?=.*lightning)(?=.*launcher).*$/i,\r\n\t\t\t\t\tname : \"Lightning Launcher\",\r\n\t\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 6, \"lightning\"],\r\n\t\t\t\t\trange : \"90/300 ft\",\r\n\t\t\t\t\tdescription : \"Once per turn on hit, +1d6 lightning damage\",\r\n\t\t\t\t\tabilitytodamage : true\r\n\t\t\t\t}],\r\n\t\t\t\t// Do this in the parent object, so that it is always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\taction : [[\"bonus action\", \"Defensive Field (Guardian Model)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Armor Modifications\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Power armor now counts as armor, boots, bracers, and a weapon for holding infusions\",\r\n\t\t\t\t\t\"I can infuse two of those after a rest without counting towards the number of items\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"+2 infused items, if used on power armor\"\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Perfected Armor\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t'My armor gets additional features, based on the model; Use \"Choose Feature\" to select it',\r\n\t\t\t\t\t\"The guardian gets the ability to pull a creature closer as a reaction and make an attack\",\r\n\t\t\t\t\t\"The infiltrator gets an upgrade to its lightning launcher weapon attack\"\r\n\t\t\t\t]),\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Guardian Perfected Armor Features\",\r\n\t\t\t\t\tpopupName : \"Perfected Armor: Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Tinkering with my armor's energy system leads me to discover a powerful pulling force.\",\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn within 30 ft of me, I can force the creature to succeed on a Strength saving throw against my spell save DC or be pulled up to 30 ft toward me to an unoccupied space. If I pull the target to space within 5 ft of me, I can make a melee weapon attack against it as part of this reaction.\",\r\n\t\t\t\t\t\t\"I can use this reaction a number of times equal to my Intelligence modifier (min 1). I regain all expended uses of it when I finish a long rest.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Infiltrator Perfected Armor Features (Armorer 15, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"Any creature that takes lightning damage from my Lightning Launcher glimmers with light until the start of my next turn.\",\r\n\t\t\t\t\t\t\"The glimmering creature sheds dim light in a 5-ft radius, and the next attack roll against it by a creature other than me has advantage. If that attack hits, it deals an extra 1d6 lightning damage.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Power Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [\"guardian\", \"infiltrator\"],\r\n\t\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\t\"guardian\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tadditional: \"Intelligence modifier per long rest\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn in 30 ft, I have it make a Str save\",\r\n\t\t\t\t\t\t\"If it fails, I pull it up to 30 ft towards me to an empty space\",\r\n\t\t\t\t\t\t\"If I pull it within 5 ft, I can make a melee weapon attack vs. it as part of this reaction\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t\"infiltrator\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Infiltrator\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"Those hit by my lightning launcher shed 5-ft radius dim light until my next turn starts\",\r\n\t\t\t\t\t\t\"Also, the next attack roll made by another than me vs. the target has advantage\",\r\n\t\t\t\t\t\t\"If that attack hits, it deals an extra 1d6 lightning damage\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t// Do these in the parent object, so that they are always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"reaction\", \"Perfected Armor: Guardian\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tif (!UASP3_artificerSubclassArmorerUA || !ClassSubList[UASP3_artificerSubclassArmorerUA]) return;\r\n\tvar itsFea = ClassSubList[UASP3_artificerSubclassArmorerUA].features[\"subclassfeature3.2\"];\r\n\tvar guardianTxt = desc([\r\n\t\t\"Both fists are Thunder Gauntlets, simple melee weapons that distract those hit by it\",\r\n\t\t\"As a bonus action, I can activate a defensive shield to gain my artificer level in temp HP\"\r\n\t])\r\n\tvar guardianAdditional = levels.map(function (n) {\r\n\t\treturn n + \" temp HP; see notes page\";\r\n\t})\r\n\tvar infiltratorTxt = desc([\r\n\t\t\"+5 ft walking speed; Gemlike node in fist/chest is a ranged weapon, Lightning Launcher\",\r\n\t\t\"The power armor is formfitting, has negligible weight, and doesn't give disadv. on Stealth\"\r\n\t])\r\n\tvar prereqFunc = function(v) {\r\n\t\tvar sParsed = ParseArmor(v.choice.replace(/(Guardian|Infiltrator) arcane /i, ''));\r\n\t\treturn sParsed && testSource(sParsed, ArmourList[sParsed], \"armorExcl\") ? \"skip\" : true;\r\n\t};\r\n\tfor (var armor in ArmourList) {\r\n\t\tvar anArm = ArmourList[armor];\r\n\t\tif (anArm.type != \"heavy\" || anArm.isMagicArmor || !anArm.weight || (CurrentVars.extraArmour && CurrentVars.extraArmour[armor])) continue;\r\n\t\t// Add the Guardian variant of the armor\r\n\t\tvar gArmName = \"Guardian Power \" + anArm.name;\r\n\t\titsFea[gArmName.toLowerCase()] = {\r\n\t\t\tname : (typePF || anArm.name.length < 16 ? \"Armor \" : \"\") + \"Model: Guardian \" + anArm.name,\r\n\t\t\tsubmenu : \"Guardian Power Armor\",\r\n\t\t\tdescription : guardianTxt,\r\n\t\t\tadditional : guardianAdditional,\r\n\t\t\tarmorAdd : { select : gArmName, options : [gArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Thunder Gauntlets\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tdependentChoices : \"guardian\"\r\n\t\t}\r\n\t\t// And now add the Infiltrator variant of the armor\r\n\t\tvar iArm = newObj(anArm);\r\n\t\tiArm.name = \"Infiltrator Power \" + anArm.name;\r\n\t\tiArm.weight = 0;\r\n\t\tiArm.stealthdis = false;\r\n\t\tiArm.strReq = 0;\r\n\t\tiArm.selectNow = true;\r\n\t\tif (iArm.regExpSearch.indexOf(\".*$/\") == -1) {\r\n\t\t\tiArm.regExpSearch = iArm.regExpSearch.replace(/^/, \"infiltrator.*\");\r\n\t\t} else {\r\n\t\t\tiArm.regExpSearch = iArm.regExpSearch.replace(/\\.\\*\\$$/, \"(?=.infiltrator).*$\");\r\n\t\t};\r\n\t\titsFea[iArm.name.toLowerCase()] = {\r\n\t\t\tname : \"Armor Model: Infiltrator \" + anArm.name,\r\n\t\t\tsubmenu : \"Infiltrator Power Armor\",\r\n\t\t\tdescription : infiltratorTxt,\r\n\t\t\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } },\r\n\t\t\tweaponsAdd : { select : [\"Lightning Launcher\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tarmorOptions : [iArm],\r\n\t\t\tdependentChoices : \"infiltrator\"\r\n\t\t}\r\n\t\t// Lastly push both choices to the array\r\n\t\titsFea.choices.push(gArmName, iArm.name);\r\n\t}\r\n});\r\n\r\n// Add the new Artificer infusions\r\nif (ClassList.artificer && ClassList.artificer.features[\"infuse item\"]) {\r\n\t\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Magical Strength (ua) (prereq: level 10 artificer)\", {\r\n\t\tname : \"Armor of Magical Strength\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"The wearer of the armor can use its Int mod instead of its Str mod for Str checks/saves\",\r\n\t\t\t\"The armor has 4 charges, regaining 1d4 expended charges daily at dawn\",\r\n\t\t\t\"As a reaction when being knocked prone, the wearer can use 1 charge to not be prone\"\r\n\t\t]),\r\n\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\tprereqeval : function(v) { return classes.known.artificer.level >= 10; },\r\n\t\tmagicitemsAdd : [\"Armor of Magical Strength (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"armor of magical strength-ua\"] = {\r\n\t\tname : \"Armor of Magical Strength (UA)\",\r\n\t\tnameTest : \"of Magical Strength (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"This armor has 4 charges and regains 1d4 charges daily at dawn. As a reaction when I would be knocked prone, I can expend 1 charge to not be knocked prone. It allows me to use my Intelligence modifier instead of my Strength modifier when making Strength checks or Strength saves.\",\r\n\t\tdescriptionFull : \"While wearing this armor, a creature can use its Intelligence modifier in place of its Strength modifier when making Strength checks and Strength saving throws.\\n   The armor has 4 charges. As a reaction when it would be knocked prone, the wearer can expend 1 charge to not be knocked prone. The armor regains 1d4 expended charges daily at dawn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"prefix\"\r\n\t\t},\r\n\t\tusages : 4,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"regains 1d4\",\r\n\t\taddMod : [{\r\n\t\t\ttype : \"save\", field : \"Str\", mod : \"max(Int-Str|0)\",\r\n\t\t\ttext : \"While attuned to the Armor of Magical Strength (UA), I can use my Intelligence modifier instead of my Strength modifier for Strength saving throws.\"\r\n\t\t}, {\r\n\t\t\ttype : \"skill\", field : \"Athletics\", mod : \"max(Int-Str|0)\",\r\n\t\t\ttext : \"While attuned to the Armor of Magical Strength (UA), I can use my Intelligence modifier instead of my Strength modifier for Strength checks.\"\r\n\t\t}]\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Tools\", {\r\n\t\tname : \"Armor of Tools\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"The armor can have a set of artisan's or thieves' tools integrated into it as an action\",\r\n\t\t\t\"The tools remain integrated for 8 hours, or until removed as an action\",\r\n\t\t\t\"The wearer can add its Intelligence modifier to checks made with the integrated tools\"\r\n\t\t]),\r\n\t\tadditional : \"suit of armor\",\r\n\t\tmagicitemsAdd : [\"Armor of Tools\"]\r\n\t});\r\n\tMagicItemsList[\"armor of tools-ua\"] = {\r\n\t\tname : \"Armor of Tools\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"As an action, I can integrate a set of artisan's or thieves' tools into this magic studded leather armor, which can hold only one set at a time. The tools remain integrated for 8 hours or until I remove them as an action. I can add my Intelligence modifier as a bonus to any ability checks I make with the integrated tools.\",\r\n\t\tdescriptionFull : \"As an action, a creature wearing this infused armor can integrate into it artisan's tools or thieves' tools. The tools remain integrated in the armor for 8 hours or until the wearer removes the tools as an action. The armor can have only one tool integrated at a time.\\n   The wearer can add its Intelligence modifier to any ability checks it makes with the integrated tool. The wearer must have a hand free to use the tool.\",\r\n\t\taction : [[\"action\", \"\"]]\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Mind Sharpener (ua)\", {\r\n\t\tname : \"Mind Sharpener\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription: desc(\"The wearer can use its reaction to ignore a failed Con save to maintain concentration\"),\r\n\t\tadditional : \"suit of armor or robes\",\r\n\t\tmagicitemsAdd : [\"Mind Sharpener (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"mind sharpener-ua\"] = {\r\n\t\tname : \"Mind Sharpener (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : \"This magic armor or robes can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\",\r\n\t\tdescriptionFull : \"The infused item can send a jolt to the wearer to refocus their mind. While wearing this infused item, whenever the creature fails a Constitution saving throw to maintain concentration on a spell, it can use its reaction to succeed instead.\",\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tchoices : [\"Mind Sharpener Armor\", \"Mind Sharpener Robes\"],\r\n\t\t\"mind sharpener armor\" : {\r\n\t\t\tname : \"Mind\\u200A Sharpener (UA)\",\r\n\t\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\t\tdescription : \"This magic armor can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\",\r\n\t\t\tchooseGear : {\r\n\t\t\t\ttype : \"armor\",\r\n\t\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\t\titemName1stPage : [\"suffix\", \"Mind Sharpener\"],\r\n\t\t\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"mind sharpener robes\" : {\r\n\t\t\tname : \"Mind Sharpener (UA) (Robes)\",\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\tdescription : \"These magic robes can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\"\r\n\t\t}\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Spell-Refueling Ring (ua) (prereq: level 6 artificer)\", {\r\n\t\tname : \"Spell-Refueling Ring\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As an action once per dawn, the wearer of this ring can recover one expended spell slot\",\r\n\t\t\t\"The maximum level of the spell slot is equal to the number of magic items it is attuned to\"\r\n\t\t]),\r\n\t\tadditional : \"ring; requires attunement\",\r\n\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\tmagicitemsAdd : [\"Spell-Refueling Ring (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"spell-refueling ring-ua\"] = {\r\n\t\tname : \"Spell-Refueling Ring (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"ring\",\r\n\t\tdescription : \"As an action, I can activate this magic ring to recover one expended spell slot. The maximum level of the recovered slot is equal to the number of magic items I am attuned to when I activate this ring. Once used, the ring can't be used again until the next dawn.\",\r\n\t\tdescriptionFull : \"While wearing this ring, the creature can recover one expended spell slot as an action. The maximum level of the recovered slot is equal to the number of magic items the wearer is currently attuned to. Once used, the ring can't be used again until the next dawn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t};\r\n}\r\n\r\nAddSubClass(\"druid\", \"circle of the stars-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*circle)(?=.*stars).*$/i,\r\n\tsubname : \"Circle of the Stars\",\r\n\tsubnameShort: \"Stars\",\r\n\tsource : [[\"UA:SP3\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Star Map\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I've created a star map, a Tiny object which I can use as my spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to create a replacement\",\r\n\t\t\t\t\"I can use it to cast Augury or Guiding Bolt, even unprepared, without using a spell slot\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guiding bolt\", \"augury\"],\r\n\t\t\t\tselection : [\"guiding bolt\", \"augury\"],\r\n\t\t\t\tfirstCol : \"Sp\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Starry Form\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to take on a starry form for 10 minutes\",\r\n\t\t\t\t\"In that form I shed bright light in a 10-ft radius and dim light for an extra 10-ft radius\",\r\n\t\t\t\t\"When I do so, I choose one constellation below to grant me benefits in my starry form:\",\r\n\t\t\t\t\"\\u2022 Chalice: When I use a spell slot to cast a healing spell, I also heal a creature in 30 ft\",\r\n\t\t\t\t\"  This can be myself or the original target; I restore 1d8 + half my druid level in HP\",\r\n\t\t\t\t\"\\u2022 Archer: As a bonus action, I can make a ranged spell attack to hurl a luminous arrow\",\r\n\t\t\t\t\"  This has a range of 60 ft and deals radiant damage equal to 1d8 + my Wisdom mod\",\r\n\t\t\t\t\"\\u2022 Dragon: I can treat a roll below 10 as a 10 for Int/Wis checks and concentration saves\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (Archer Constellation)\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"Chalice: heals 1d8+\" + Math.floor(n/2) + \" HP\";\r\n\t\t\t}),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*luminous)(?=.*arrow).*$/i,\r\n\t\t\t\tname : \"Luminous Arrow\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"radiant\"],\r\n\t\t\t\trange : \"60 ft\",\r\n\t\t\t\tdescription : \"Use as bonus action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cosmic Omen\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can roll a die to gain an omen based on the result (odd/even)\",\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft makes an attack, check, or save, I can:\",\r\n\t\t\t\t\"\\u2022 Weal (even): add 1d6 to the number rolled for the attack, check, or save\",\r\n\t\t\t\t\"\\u2022 Woe (odd): subtract 1d6 from the number rolled for the attack, check, or save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Full of Stars\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While in my starry form, I have resistance to bludgeoning, piercing, and slashing damage\"),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Bludgeoning\", \"Bludgeon. (in form)\"],\r\n\t\t\t\t[\"Piercing\", \"Piercing (in form)\"],\r\n\t\t\t\t[\"Slashing\", \"Slashing (in form)\"]\r\n\t\t\t],\r\n\t\t\t\"star flare\" : {\r\n\t\t\t\tname : \"Star Flare\",\r\n\t\t\t\textraname : \"Circle of the Stars 14\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I conjure a 30-ft radius sphere of light on a point within 120 ft I can see\",\r\n\t\t\t\t\t\"I then teleport each willing creature in that sphere to an empty space within 30 ft of it\",\r\n\t\t\t\t\t\"Creatures left within the sphere must make a Con save or take 4d10 radiant damage\",\r\n\t\t\t\t\t\"Those that failed the save are also blinded until the end of my next turn\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 5+\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"star flare\",\r\n\t\t\t\tminlevel : 14\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar UASP3_rangerSubclassFeyWandererUA = AddSubClass(\"ranger\", \"fey wanderer-ua\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*wanderer).*$/i,\r\n\tsubname : \"Fey Wanderer\",\r\n\tsource : [[\"UA:SP3\", 5]],\r\n\tfullname : \"Fey Wanderer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fey Wanderer Magic\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"charm person\", \"misty step\", \"dispel magic\", \"banishment\", \"mislead\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Cunning Will\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Adv. on saves vs. charm/frightened; Proficiency in Deception, Performance, or Persuasion\"),\r\n\t\t\tskillstxt : \"Choose one from: Deception, Performance, or Persuasion\",\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Dreadful Strikes\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue the weapons I'm holding with magic until my turn ends\",\r\n\t\t\t\t\"They count as magical and deal +1d6 psychic damage, but only once to a single creature\",\r\n\t\t\t\t\"I can also do this as part of the same bonus action as making an off-hand attack\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Blessings of the Courts\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn when I hit a weapon attack, I can expend a spell slot for extra damage\",\r\n\t\t\t\t\"The target takes +3d6 psychic damage and must make a Wis save or be frightened of me\",\r\n\t\t\t\t\"This lasts until the end of my next turn; In addition, I add my Wis mod to Cha checks\"\r\n\t\t\t]),\r\n\t\t\taddMod : [\"Deception\", \"Intimidation\", \"Performance\", \"Persuasion\"].map(function(skill){return {type : \"skill\", field : skill, mod : \"Wis\", text : \"I add my Wisdom modifier to my Charisma checks\"};})\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Beguiling Twist\",\r\n\t\t\tsource : [[\"UA:SP3\", 6]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 120 ft succeeds a save vs. charmed/frightened\",\r\n\t\t\t\t\"I can have another I can see in 120 ft make a Wis save or suffer one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 For 1 min, it's frightened of me or charmed; It can save again at the end of its turns\",\r\n\t\t\t\t\" \\u2022 It takes 3d10 psychic damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\"misty presence\" : {\r\n\t\t\t\tname : \"Misty Presence\",\r\n\t\t\t\textraname : \"Fey Wanderer 15\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 6]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can have a creature I can see within 30 ft make a Wisdom save\",\r\n\t\t\t\t\t\"On a failed save, it cannot see or hear me for 24 hours or until I use this feature again\",\r\n\t\t\t\t\t\"The target can repeat its save if I hit it with an attack, force it to save, or deal it damage\",\r\n\t\t\t\t\t\"On a successful save, the creature is immune to my use of this feature for 7 days\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 4th-level or higher spell slot (SS 4+)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 4+\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"misty presence\",\r\n\t\t\t\tminlevel : 15\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UASP3_rangerSubclassFeyWandererUA); };\r\n\n// ua_20200512_Subclasses-Revisited.js\n// This file adds the content from the Unearthed Arcana: Fighter, Ranger, and Rogue article to MPMB's Character Record Sheet\n// This file contains contributions by Undrhil and Metacomet10\n\nSourceList[\"UA:SR\"] = {\n\tname : \"Unearthed Arcana: Subclasses Revisited\",\n\tabbreviation : \"UA:SR\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_SubclassesRevisited_0512.pdf\",\n\tdate : \"2020/05/12\"\n};\n\nAddSubClass(\"rogue\", \"phantom-ua\", {\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*phantom).*$/i,\n\tsubname : \"Phantom\",\n\tsource : [[\"UA:SR\", 1]],\n\tfullname : \"Phantom\",\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Whispers of the Dead\",\n\t\t\tsource : [[\"UA:SR\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"Whenever I finish a short or long rest, I can gain one skill or tool proficiency of my choice\",\n\t\t\t\t\"This proficiency lasts until I use this feature again to gain a different proficiency\"\n\t\t\t]),\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a short or long rest\"\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Wails from the Grave\",\n\t\t\tsource : [[\"UA:SR\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\tvar a = [\n\t\t\t\t\t\"Directly after I deal sneak attack damage to a creature on my turn, I \" + (n < 17 ? \"can\" : \"also\") + \" harm another\",\n\t\t\t\t\tn < 17 ? \"I then deal half my sneak attack in psychic damage to a creature I can see within 30 ft\" : \"I deal half my sneak attack in psychic damage to both it and another I can see in 30 ft\"\n\t\t\t\t];\n\t\t\t\treturn desc(a);\n\t\t\t}),\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\",\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn Math.ceil(n / 4) + \"d6\";\n\t\t\t}),\n\t\t},\n\t\t\"subclassfeature9\" : {\n\t\t\tname : \"Tokens of the Departed\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 9,\n\t\t\tdescription : \" [max Proficiency Bonus of soul trinkets]\" + desc([\n\t\t\t\t\"As a reaction when I see a creature within 30 ft die, I can create a Tiny soul trinket\",\n\t\t\t\t\"The token of its life essence appears in my free hand; The DM determines its appearance\",\n\t\t\t\t\"While a soul trinket is on my person, I have advantage on death and Constitution saves\",\n\t\t\t\t\"As an action, I can destroy one of my soul trinkets and ask its associated spirit a question\",\n\t\t\t\t\"Its spirit appears and answers concisely in a language it knew; Trinket can be anywhere\"\n\t\t\t]),\n\t\t\taction : [\n\t\t\t\t[\"reaction\", \"Create Soul Trinket\"],\n\t\t\t\t[\"action\", \"Destroy Soul Trinket\"]\n\t\t\t],\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Soul Trinkets (max Prof Bonus)\",\n\t\t\t\tusages : \"\",\n\t\t\t\trecovery : \"Special\"\n\t\t\t}],\n\t\t\tsavetxt : { text : [\"While soul trinket is on me, Adv. on Con and death saves\"] }\n\t\t},\n\t\t\"subclassfeature13\" : {\n\t\t\tname : \"Ghost Walk\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 13,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can assume a spectral form with 10 ft flying speed and can hover\",\n\t\t\t\t\"Attacks vs. me have disadv.; I can move through creatures and objects as difficult terrain\",\n\t\t\t\t\"This lasts 10 min; I take 1d10 force damage if I end my turn inside a creature or object\",\n\t\t\t\t\"I can assume this form once per long rest, or by destroying one of my soul trinkets (ST)\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taltResource : \"ST\"\n\t\t},\n\t\t\"subclassfeature17\" : {\n\t\t\tname : \"Death Knoll\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 17,\n\t\t\tdescription : desc([\n\t\t\t\t\"Wails from the Grave now also deals damage to the target of the original sneak attack\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n/* This UA version of Order of Scribes is not done yet\nAddSubClass(\"wizard\",\"order of scribes-ua\", {\n\tregExpSearch : /^(?=.*wizard)(?=.*order)(?=.*scribes?).*$|scrivener/i,\n\tsubname : \"Order of Scribes\",\n\tsource : [[\"UA:SR\", 4]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Wizardly Quill\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can magically create a Tiny quill with the following properties:\",\n\t\t\t\t\" \\u2022 It doesn't require ink and produces ink in the color of my choice when writing with it\",\n\t\t\t\t\" \\u2022 The gold and time required to transcribe spells into my spellbook with it are halved\",\n\t\t\t\t\" \\u2022 As a bonus action, I can use it to erase a text written with it if within 5 ft of the text\",\n\t\t\t\t\"The quill disappear if I create another or if I die\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (create/erase)\"]]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Awakened Spellbook\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc ([\n\t\t\t\t\"My spellbook gains sentience and grants me the following benefits while I am holding it:\",\n\t\t\t\t\" \\u2022 I can use the book as a spellcasting focus for my wizard spells\",\n\t\t\t\t\" \\u2022 When I cast a wizard spell using a spell slot, I can temporarily replace its damage type\",\n\t\t\t\t\"   The new damage type must appear in another spell in my awakened spellbook\",\n\t\t\t\t\" \\u2022 Once per long rest, I can ritual cast a wizard spell without 10 min extra casting time\",\n\t\t\t\t\"I can replace it over a short rest, transferring its spells and sentience to a blank book\"\n\t\t\t]),\n\t\t\tadditional : \"fast ritual cast\",\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Master Scrivener\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I finish a long rest, I can write a spell in my awakened spellbook on a blank paper\",\n\t\t\t\t\"It must be a level 1 or 2 spell with 1 action casting time; My spellbook must be in 5 ft\",\n\t\t\t\t\"As an action, I can use this scroll to cast the spell on it at one higher level than normal\",\n\t\t\t\t\"Only I can use the scroll; The scroll turns blank again when I use it or finish a long rest\",\n\t\t\t\t\"Also, using my Wizardly Quill, the gold and time I need to craft spell scrolls is halved\"\n\t\t\t]),\n\t\t\taction : [[\"action\", \" (cast scroll)\"]],\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t// Finished until here\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Manifest Mind\",\n\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc('As a bonus action, I can cause my Awakened Spellbook to manifest. See \"Note\" page'),\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Manifest Mind\",\n\t\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\t\tpage3notes : false,\n\t\t\t\tnote : desc ([\"As a bonus action with my Awakened Spellbook on my person, I can cause the mind to\",\n\t\t\t\t\"manifest as a Tiny spectral construct, hovering in an unoccupied space of my choice within\",\n\t\t\t\t\"60 ft. It is intangible and doesn't occupy its space, and it sheds dim light in a 10 ft radius.\",\n\t\t\t\t\"It looks like a ghostly tome, a cascade of text, or a scholar from the past \\(my choice.\\).\",\n\t\t\t\t\"\\(See Companion Page for statistics for this construct.\\)\",\n\t\t\t\t\"While manifested, it can hear and see and has darkvision with a range of 60 ft. As an\",\n\t\t\t\t\"action, I can hear and see using its senses instead of my own, until my concentration\",\n\t\t\t\t\"ends \\(as if concentrating on a spell\\).\",\n\t\t\t\t\"Whenever I cast a wizard spell on my turn, I can cast it as if I were in the spectral mind's\",\n\t\t\t\t\"space, using its senses. I can do this a number of times per day equal to my proficiency\",\n\t\t\t\t\"bonus, and I regain all uses when I finish a long rest.\",\n\t\t\t\t\"As a bonus action, I can cause it to hover up to 30 ft to an unoccupied space that I or it\",\n\t\t\t\t\"can see. It can pass through creatures but not objects. It stops manifesting if it is ever\",\n\t\t\t\t\"more than 300 ft away from me, if it drops to 0 hit points, if I die, or if I dismiss it as\",\n\t\t\t\t\"a bonus action.\"\n\t\t\t\t])\n\t\t\t}],\n\t\t\teval : function() {\n\t\t\t\tvar companionFunctions = ClassList.artificer ? ClassList.artificer.artificerCompFunc : ClassList.wizard.artificer.CompFunc;\n\t\t\t\tcompanionFunctions.add(\"Manifest Mind\");\n\t\t\t\tClassList.wizard.wizardCompFunc.update(10, What('Int mod'),What('AC'),What('Str mod'),What('Dex mod'),What('Con mod'),What('Wis mod'),What('Cha mod'));\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar companionFunctions = ClassList.artificer ? ClassList.artificer.artificerCompFunc : ClassList.wizard.artificerCompFunc;\n\t\t\t\tcompanionFunctions.remove(\"Manifest Mind\");\n\t\t\t},\n\t\t\taction : [[\"bonus action\",\"\"],[\"bonus action\",\"Hover spellbook 30ft\"],[\"bonus action\",\"dismiss Manifestation\"]],\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"One with the Word\",\n\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"While I am holding my Awakened Spellbook and it is manifest, I can take an action to\",\n\t\t\t\t\"swap places with the manifestation. I can do this a number of times equal to my\",\n\t\t\t\t\"proficiency bonus and I regain all expended uses when I finish a long rest.\",\n\t\t\t\t\"If I die but at least one spell remains in my Awakened Spellbook, I can return to\",\n\t\t\t\t\"life after 1 minute within 5 ft of the book. I revive with 1 hit point. I then roll\",\n\t\t\t\t\"3d6 and the spellbook loses spells of my choice that have a combined spell level\",\n\t\t\t\t\"equal to that roll or higher. I am incapable of casting the lost spells, even if I\",\n\t\t\t\t\"find them on a scroll or in another spellbook. I can only restore my ability to cast\",\n\t\t\t\t\"one of these spells with the wish spell, which will restore one spell per casting.\"\n\t\t\t]),\n\t\t\taction : [[\"action\",\"Swap places with spellbook\"]],\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t}\n});\n*/\n\n// ua_20200713_Feats-2020.js\n// This file adds the content from the Unearthed Arcana 2020: Feats article to MPMB's Character Record Sheet\n// All content in this file contains contributions by AelarTheElfRogue\n\n// Define the source\nSourceList[\"UA:F2\"] = {\n\tname : \"Unearthed Arcana: Feats 2020\",\n\tabbreviation : \"UA:F2\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_Feats.pdf\",\n\tdate : \"2020/07/13\"\n};\n\nFeatsList[\"crusher-ua\"] = {\n\tname : \"Crusher\",\n\tsource : [[\"UA:F2\", 1]],\n\tdescriptionFull : \"You are practiced in the art of crushing your enemies, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals bludgeoning damage, you can move it 5 feet to an unoccupied space, provided the target is no more than one size larger than you.\\n \\u2022 When you score a critical hit that deals bludgeoning damage to a creature, attack rolls against that creature are made with advantage until the end of your next turn.\",\n\tdescription : \"Once per turn, when I hit a creature no more than one size larger than me with an attack that deals bludgeoning damage, I can move it 5 ft to an unoccupied space. If I score a critical hit that deals bludgeoning damage, attacks against the creature hit gain advantage until the start of my next turn. [+1 \" + (typePF ? \"Str or Dex\" : \"Strength or Dexterity\") + \"]\",\n\tscorestxt : \"+1 Strength or Dexterity\"\n};\nFeatsList[\"practiced expert-ua\"] = {\n\tname : \"Practiced Expert\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You have honed your proficiency with particular skills or tools, gaining the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with one skill or tool of your choice.\\n \\u2022 Choose one of your skill or tool proficiencies. Your proficiency bonus is doubled for any ability check you make that uses the chosen proficiency.\",\n\tdescription : \"I gain proficiency in one skill or tool, and expertise in that same skill or tool, or another skill or tool I'm proficient with. [+1 to one ability score of my choice]\",\n\tskillstxt : \"Proficiency with one skill or tool, and\\n   Expertise with one skill or tool I'm proficient with\",\n\tscorestxt : \"+1 to one ability score of my choice\"\n};\nFeatsList[\"shadow touched-ua\"] = {\n\tname : \"Shadow Touched\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You learn how to bend shadows from your experience with the Shadowfell. You gain the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn the darkness spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\n\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\n\tspellcastingBonus : [{\n\t\tname : \"Darkness\",\n\t\tspells : [\"darkness\"],\n\t\tselection : [\"darkness\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}, {\n\t\tname : \"1st-level Illus/Necro spell\",\n\t\t'class' : \"any\",\n\t\tschool : [\"Illus\", \"Necro\"],\n\t\tlevel : [1, 1],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}],\n\tspellcastingAbility : 4,\n\tallowUpCasting : true,\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\t\"intelligence\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\n\t\tspellcastingAbility : 4,\n\t\tscores : [0, 0, 0, 1, 0, 0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\n\t\tspellcastingAbility : 5,\n\t\tscores : [0, 0, 0, 0, 1, 0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\n\t\tspellcastingAbility : 6,\n\t\tscores : [0, 0, 0, 0, 0, 1]\n\t}\n};\nFeatsList[\"shield training-ua\"] = {\n\tname : \"Shield Training\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You've trained in the effective use of shields. You gain the following benefits:\\n \\u2022 Increase your Strength, Dexterity, or Constitution score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with shields.\\n \\u2022 In combat, you can don or doff a shield as the free object interaction on your turn.\\n \\u2022 If you have the Spellcasting or Pact Magic feature, you can use a shield as a spellcasting focus.\",\n\tdescription : \"I gain proficiency with shields. I can don or doff a shield as the free object interaction on my turn. If I have the Spellcasting or Pact Magic feature, I can use my shield as a spellcasting focus. [+1 Strength, Dexterity, or Constitution]\",\n\tscorestxt : \"+1 Strength, Dexterity, or Constitution\",\n\tarmorProfs : [false, false, false, true]\n};\nFeatsList[\"tandem tactician-ua\"] = {\n\tname : \"Tandem Tactician\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"Your presence in a scrap tends to elevate your comrades. You gain the following benefits:\\n \\u2022 You can use the Help action as a bonus action.\\n \\u2022 When you use the Help action to aid an ally in attacking a creature, increase the range of the Help action by 10 feet. Additionally, you can help two allies targeting the same creature within range when you use the Help action this way.\",\n\tdescription : \"I can use the Help action as a bonus action. When I use the Help action to aid an ally in attacking a creature, the range of the Help action increases with 10 ft. I can help two allies targeting the same creature within range when I use the Help action this way.\",\n\taction : [[\"bonus action\", \"\"]]\n};\nFeatsList[\"tracker-ua\"] = {\n\tname : \"Tracker\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You have spent time hunting creatures and honed your skills, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You learn the hunter's mark spell. You can cast it once without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have. Wisdom is your spellcasting ability for this spell.\\n \\u2022 You have advantage on Wisdom (Survival) checks to track creatures.\",\n\tdescription : \"I can cast Hunter's Mark once per long rest at its lowest level without expending a spell slot, and can cast it by expending a spell slot as normal. Wisdom is my spellcasting ability for this. I have advantage on Wisdom (Survival) checks to track creatures. [+1 Wisdom]\",\n\tscores : [0, 0, 0, 0, 1, 0],\n\tspellcastingBonus : [{\n\t\tname : \"1\\xD7/LR \\u0026 spell slot\",\n\t\tspellcastingAbility : 5,\n\t\tallowUpCasting : true,\n\t\tspells : [\"hunter's mark\"],\n\t\tselection : [\"hunter's mark\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}]\n};\n// ua_20200805_Subclasses-Part-4.js\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 4 article to MPMB's Character Record Sheet\n// This file contains contributions by AelarTheElfRogue\n\n// Define the source\nSourceList[\"UA:SP4\"] = {\n\tname : \"Unearthed Arcana: Subclasses, Part 4\",\n\tabbreviation : \"UA:SP4\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_Subclasses04.pdf\",\n\tdate : \"2020/08/05\"\n};\n\nAddSubClass(\"bard\", \"college of spirits-ua\",{\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*spirits?).*$/i,\n\tsubname : \"College of Spirits\",\n\tsubnameShort: \"Spirits\",\n\tsource : [[\"UA:SP4\", 1]],\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Guiding Whispers\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"I learn the Guidance cantrip and can cast it with a range of 60 ft\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Guiding Whispers\",\n\t\t\t\tspells : [\"guidance\"],\n\t\t\t\tselection : [\"guidance\"],\n\t\t\t\tfirstCol : \"atwill\"\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"guidance\" : {\n\t\t\t\t\trange : \"60 ft\",\n\t\t\t\t\tchanges : \"I can cast Guidance with a range of 60 ft.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Spiritual Focus\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : \" [only for bard spells]\" + desc([\n\t\t\t\t\"I can use a candle, crystal ball, skull, spirit board, or tarokka deck as a spellcasting focus\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature3.2\" : {\n\t\t\tname : \"Tales from Beyond\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can expend a bardic inspiration die to roll on the Spirits' Tales table\",\n\t\t\t\t\"I retain the rolled tale in my mind until I bestow its effects or finish a short or long rest\",\n\t\t\t\t\"I can only retain one tale at a time; I need to hold a spiritual focus to roll on the table\",\n\t\t\t\t\"As an action, I can choose a creature I see in 30 ft or myself to bestow the tale's effect\",\n\t\t\t\t\"The tales use my spell save DC; See the Notes page for the Spirits' Tales table\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (roll on table)\"], [\"action\", \" (use effect)\"]],\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Spirits' Tales Table\",\n\t\t\t\tnote : desc([\n\t\t\t\t\t\"As a bonus action while I'm holding my spiritual focus, I can reach out to spirits who tell their tales through me. I expend one use of my Bardic Inspiration and roll on the table below using my Bardic Inspiration die to determine the tale. I retain the tale in mind until I bestow the tale's effect or finish a short or long rest.\",\n\t\t\t\t\t\"I can retain only one of these tales in mind at a time, and rolling on the table immediately ends the effect of the previous tale.\",\n\t\t\t\t\t\"As an action, I can choose myself or one creature I can see within 30 ft to be the target of the tale's effect. If the tale requires a saving throw, the DC equals my spell save DC.\",\n\t\t\t\t\t\"\\nRoll \" + (typePF ? \"\" : \" \") + \"Tale\"\n\t\t\t\t])+\n\t\t\t\tdesc([\n\t\t\t\t\t\"  1    Beast: I recite the tale of a clever animal. For 1 minute, the target has advantage on Wisdom (Perception) checks and advantage on attack rolls against a creature if another enemy is within 5 ft of it, and that enemy isn't incapacitated.\",\n\t\t\t\t\t\"  2    Warrior: I recount the story of a renowned duelist. Make a melee spell attack against the target as an attacking spectral warrior briefly appears in a unoccupied space within 5 ft of the target before vanishing. On a hit, the target takes force damage equal to two rolls of my Bardic Inspiration die + my Charisma modifier.\",\n\t\t\t\t\t\"  3    Friends: I recite the tale of friends who found each other in the afterlife. The target and another creature of its choice it can see within 5 ft of it regains hit points equal to a roll of my Bardic Inspiration die + my Charisma modifier.\",\n\t\t\t\t\t\"  4    Runaway: I tell the tale of an adventurer that could escape any confinement. The target can immediately use its reaction to teleport up to 30 ft to an unoccupied space it can see. When the target teleports, it can choose a number of creatures it can see within 30 ft of it up to my Charisma modifier (minimum of 1) to immediately use the same reaction.\",\n\t\t\t\t\t\"  5    Avenger: I recount the tale of an avenging knight. For 1 minute, whenever a creature the target can see within 30 ft of it is damaged by a creature, the target can use its reaction to deal force damage equal to a roll of my Bardic Inspiration die to the attacker.\",\n\t\t\t\t\t\"  6    Hero: I speak the tale of an epic hero. The target gains temporary hit points equal to a roll of my Bardic Inspiration die + my bard level. While it has these temporary hit points, the target's walking speed increases by 10 ft.\",\n\t\t\t\t\t\"  7    Fey: I recount the tale of a mischievous fey. The target must succeed on a Wisdom saving throw or become charmed by me until the end of its next turn. The charmed target must use its action to make a melee attack against a creature other than itself that I mentally choose. The target can act normally on its turn if I choose no other creature.\",\n\t\t\t\t\t\"  8    Dark Spirit: I speak a dreadful tale of a slayer in the dark. The target becomes invisible until the end of its next turn or until it hits a creature with an attack. If it hits a creature with an attack during this invisibility, that creature takes necrotic damage equal to a roll of my Bardic Inspiration die and is frightened of the target until the end of its next turn.\",\n\t\t\t\t\t\"  9    Giant: I speak of the deeds of a mighty giant. Each creature of the target's choice it can see within 30 ft of it must make a Strength saving throw, taking force damage equal to two rolls of my Bardic Inspiration die on a failed save and is knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\n\t\t\t\t\t\" 10    Dragon: I breathe a poem of a wrathful dragon. The target magically spews fire from their mouth in a 30-ft cone. Each creature in that area must make a Dexterity saving throw, taking fire damage equal to three rolls of my Bardic Inspiration die on a failed save, or half as much damage on a successful one.\",\n\t\t\t\t\t\" 11    Celestial: I speak of the exalted deeds of a celestial. The target regains hit points equal to two rolls of my Bardic Inspiration die + my bard level, and I end one disease or a condition from the following list affecting the target: blinded, deafened, paralyzed, petrified, or poisoned.\",\n\t\t\t\t\t\" 12    Unknown: I utter an incomprehensible fable from a being beyond the stars. The target must succeed on an Intelligence saving throw or take psychic damage equal to three rolls of my Bardic Inspiration die, and the target is unable to speak any language for 1 minute.\"\n\t\t\t\t], \"\\n\")\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\tsource : [[\"UA:SP4\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\n\t\t\t]),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\t\tif (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]] && v.thisWeapon[4].indexOf(\"bard\") !== -1) {\n\t\t\t\t\t\t\t// If RAW is selected, first test if this spell is eligible to use with a spellcasting focus\n\t\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\n\t\t\t\t\t\t\tvar spellObj = SpellsList[v.thisWeapon[3]];\n\t\t\t\t\t\t\tif (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components))) return;\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\n\t\t\t\t\t\t\tvar d6Regex = /(\\d+)d6/;\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd6') != -1) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd6', 'Cd6');\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd6') != -1) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd6', 'Qd6');\n\t\t\t\t\t\t\t} else if (d6Regex.test(fields.Damage_Die)) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d6Regex, Number(fields.Damage_Die.replace(d6Regex, '$1')) + 1 + 'd6');\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d6 dmg\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d6';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\n\t\t\t\t],\n\t\t\t\tspellAdd : [\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\t\t\t// Do not process if a psionic, not a bard spell, or, if RAW is selected, not eligible to use with a spellcasting focus\n\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"bard\" || (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components)))) return;\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d6\", true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d6\", true, true)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\n\t\t\t\t]\n\t\t\t},\n\t\t\tchoices : [\"RAW: only +1d6 for spells with non-costly material components\", \"Allow +1d6 for any bard spell\"],\n\t\t\t\"raw: only +1d6 for spells with non-costly material components\" : {\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"If I use a spiritual focus to cast a bard spell, I can add 1d6 to one damage or healing roll\"\n\t\t\t\t])\n\t\t\t},\n\t\t\t\"allow +1d6 for any bard spell\" : {\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\n\t\t\t\t])\n\t\t\t},\n\t\t\tdefaultChoice : \"allow +1d6 for any bard spell\"\n\t\t},\n\t\t\"subclassfeature6.1\" : {\n\t\t\tname : \"Spirit Session\",\n\t\t\tsource : [[\"UA:SP4\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"Using my spiritual focus, I can conduct a hour-long ritual to channel spirit during a rest\",\n\t\t\t\t\"The number of willing participants, me included, can be up to my Proficiency Bonus\",\n\t\t\t\t\"At the end, I learn a divination or necromancy spell of my choice until I start a long rest\",\n\t\t\t\t\"The spell can't be higher level than the number of participants and of a level I can cast\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Spirit Session\",\n\t\t\t\tschool : [\"Div\", \"Necro\"],\n\t\t\t\tfirstCol : \"SS\"\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Mystical Connection\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"I can roll a d6 instead of expending a bardic inspiration die when I do Tales from Beyond\",\n\t\t\t\t\"Even if I roll a d6, I still roll my bardic inspiration die for the effect, but not expend it\"\n\t\t\t])\n\t\t}\n\t}\n});\nAddSubClass(\"warlock\", \"the undead-ua\",{\n\tregExpSearch : /^(?=.*undead)(?=.*warlock).*$/i,\n\tsubname : \"the Undead\",\n\tsource : [[\"UA:SP4\", 1]],\n\tspellcastingExtra : [\"bane\", \"false life\", \"blindness/deafness\", \"phantasmal force\", \"phantom steed\", \"speak with dead\", \"death ward\", \"greater invisibility\", \"antilife shell\", \"cloudkill\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Form of Dread\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 1,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can transform for 1 minute and gain the following benefits:\",\n\t\t\t\t\" \\u2022 I gain temporary hit points equal to 1d10 + my warlock level\",\n\t\t\t\t\" \\u2022 I am immune to the frightened condition\",\n\t\t\t\t\" \\u2022 Once per turns when I hit an attack, I can force the target to make a Wis save\",\n\t\t\t\t\"   If the target fails this save, it is frightened of me until the end of my next turn\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn \"1d10+\" + n + \" temp HP\";\n\t\t\t}),\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"bonus action\", \"\"]],\n\t\t\tsavetxt : { immune : [\"frightened (Form of Dread)\"] }\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Grave Touched\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"I no longer need to eat, drink, or breathe\",\n\t\t\t\t\"When I damage a creature with an attack, I can change the damage type to necrotic\",\n\t\t\t\t\"While I'm in my Form of Dread, I can roll one extra damage die for this necrotic damage\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Mortal Husk\",\n\t\t\tsource : [[\"UA:SP4\", 4]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"I have resistance to necrotic damage, or immunity while I'm in my Form of Dread\",\n\t\t\t\t\"When I'm reduced to 0 HP, I can cause my body to explode and I revive with 1 HP after\",\n\t\t\t\t\"Each creature of my choice within 30 ft takes 2d10 + my warlock level necrotic damage\",\n\t\t\t\t\"After this, I gain 1 level of exhaustion and must complete 1d4 long rests to do so again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 10 ? \"\" : \"2d10+\" + n + \" damage, 1\\xD7 per 1d4 long rests\"\n\t\t\t}),\n\t\t\tdmgres : [[\"Necrotic\"]],\n\t\t\tsavetxt : { immune : [\"necrotic (Form of Dread)\"] },\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Mortal Husk (revive)\",\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"1d4 LR\"\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Spirit Projection\",\n\t\t\tsource : [[\"UA:SP4\", 4]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can project my spirit from my body, leaving it suspended and unconscious\",\n\t\t\t\t\"This lasts 1 hour or until my concentration is broken; Damage and effects affect both\",\n\t\t\t\t\"When it ends, I can have my spirit return to my body or my body teleport to my spirit\",\n\t\t\t\t\"My spirit has my abilities, but no gear; While projecting I gain the following benefits:\",\n\t\t\t\t\" \\u2022 My spirit and body gain resistance to bludgeoning, piercing, and slashing damage\",\n\t\t\t\t\" \\u2022 My conjuration/necromancy spells need no verbal, somatic, non-costly material comp.\",\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and can hover\",\n\t\t\t\t\" \\u2022 Move through creatures/objects as difficult terrain; 1d10 force damage if end turn in\",\n\t\t\t\t\" \\u2022 While in my Form of Dread, once per turns when I deal necrotic damage, I can heal\",\n\t\t\t\t\"   I regain hit points equal to half the amount of necrotic damage dealt\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"action\", \"\"]]\n\t\t}\n\t}\n});\n\n// ua_20201026_Subclasses-Part-5.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 5 article to MPMB's Character Record Sheet\r\n// This file contains contributions by WondrousLittleWizard\r\n\r\n// Define the source\r\nSourceList[\"UA:SP5\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 5\",\r\n\tabbreviation : \"UA:SP5\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_102620_Subclasses05.pdf\",\r\n\tdate : \"2020/10/26\"\r\n};\r\n\r\nAddSubClass(\"monk\", \"ascendant dragon-ua\", {\r\n\tregExpSearch : /^(?=.*ascendant)(?=.*(dragon|draconic))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Ascendant Dragon\",\r\n\tsubnameShort: \"Ascendant Dragon\",\r\n\tsource : [[\"UA:SP5\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Disciple\",\r\n\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can change the damage type of my unarmed strikes to acid, cold, fire, lightning, poison\",\r\n\t\t\t\t\"As a reaction when I fail an Intimidation or Persuasion check, I can reroll the check\",\r\n\t\t\t\t\"If this turns it into a success, I can't do so again until I finish a long rest; I learn Draconic\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\taction : [[\"reaction\", \" (reroll check)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reroll\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"Change type to acid/cold/fire/lightning/poison\";\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I damage a target with an unarmed strike, I can change the damage type to acid, cold, fire, lightning or poison.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"breath of the dragon\" : {\r\n\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\textraname : \"Ascendant Dragon 3\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar iMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"When I take the Attack action on my turn, I can replace one attack with a breath weapon\",\r\n\t\t\t\t\t\t\"This deals \" + (n < 11 ? 2 : 3) + \"d\" + iMonkDie + \" acid, cold, fire, lightning, or poison (my choice) damage to all in the area\",\r\n\t\t\t\t\t\t\"The area can be a 20-ft cone or a 5-ft wide, 30-ft line; Dex save to halve the damage\",\r\n\t\t\t\t\t\t\"I can do this my Proficiency Bonus times per long rest, or by expending 1 ki point\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, the energy clings to those damaged by this, hurting them every turn\",\r\n\t\t\t\t\t\t\"At the start of each of their turns, they take 1d\" + iMonkDie + \" damage of the chosen type\",\r\n\t\t\t\t\t\t\"At the end of each of their turns, they can repeat the save to end this effect on themselves\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : \"Prof B. per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"1 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 11 ? 2 : 3) + \"d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon).*$/i,\r\n\t\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\ttype : \"Natural\",\r\n\t\t\t\t\tdamage : [2, 4, \"My choice\"],\r\n\t\t\t\t\trange : \"5-ft \\xD7 30-ft line\",\r\n\t\t\t\t\tdescription : \"All in area; Dex save for half damage; Alt: 20-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmonkweapon : false,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tUA_WotAD_BreathWeapon : true,\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && v.theWea.UA_WotAD_BreathWeapon) {\r\n\t\t\t\t\t\t\t\tvar n = classes.known.monk.level;\r\n\t\t\t\t\t\t\t\tvar aMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = (n < 11 ? 2 : 3) + \"d\" + aMonkDie;\r\n\t\t\t\t\t\t\t\tif (n >= 17) fields.Description += (fields.Description ? '; ' : '') + 'Clings to targets';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My Breath of the Dragon deals damage equal to two rolls of my Martials Arts die. At 11th level, this increases to three rolls of my Martial Arts die. At 17th level, the energy clings to the target. At the start of each of a target's turns, it takes damage of the type the breath dealt equal to one roll of my Martial Arts die. At the end of its turn, the creature can repeat the save, ending the effect on itself on a success.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"breath of the dragon\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wings Unfurled\",\r\n\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"Prof B. / long rest or 1 ki\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Step of the Wind, I can gain a flying speed equal to my walking speed\",\r\n\t\t\t\t\"I can do this Prof Bonus per long rest, or by using 2 ki points to use Step of the Wind\"\r\n\t\t\t]),\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Wings Unfurled\",\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\taltResource : \"1 ki\"\r\n\t\t\t}],\r\n\t\t\t\"aspect of the wyrm\" : {\r\n\t\t\t\tname : \"Aspect of the Wyrm\",\r\n\t\t\t\textraname : \"Ascendant Dragon 11\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"As a bonus action, I can activate a 30 ft aura of draconic power that lasts for 1 minute\",\r\n\t\t\t\t\t\t\"I choose acid, cold, fire, lightning, or poison damage when I activate this aura\",\r\n\t\t\t\t\t\t\"From 17th-level, all creatures of my choosing in the aura take 4d10 damage of this type\",\r\n\t\t\t\t\t\t\"My allies in the aura and myself gain resistance to the chosen damage type\",\r\n\t\t\t\t\t\t\"When an attack hits one of us, the one hit can use their reaction to damage the attacker\",\r\n\t\t\t\t\t\t\"This damage is of the chosen damage type, equal to one roll of my martial arts\",\r\n\t\t\t\t\t\t\"I can activate this aura once per long rest, or by expending 4 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) aDesc.splice(2,1);\r\n\t\t\t\t\treturn desc(aDesc);\r\n\t\t\t\t}),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"4 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 11 ? \"\" : \"1d\" + (n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (activate)\"], [\"reaction\", \" (if active)\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"aspect of the wyrm\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Ascendant Aspect\",\r\n\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I gain 30 ft blindsight and both Breath of the Dragon and Aspect of the Wyrm improve\"),\r\n\t\t\tvision : [[\"blindsight\", 30]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar UASP5_Ranger_Subclass_Drakewarden = AddSubClass(\"ranger\", \"drakewarden-ua\", {\r\n\tregExpSearch : /^(?=.*(drake|dragon|draconic))(?=.*(warden|ranger|trainer)).*$/i,\r\n\tsubname : \"Drakewarden\",\r\n\tsource : [[\"UA:SP5\", 2]],\r\n\tfullname : \"Drakewarden\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Gift\",\r\n\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Draconic language and the Thaumaturgy cantrip\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Draconic Gift\",\r\n\t\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drake Companion\",\r\n\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon my drake to an empty space within 30 ft that I can see\",\r\n\t\t\t\t'Select a \"Drake Companion\" on the companion page for its stats and rules',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \" (summon)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\tcreaturesAdd : [[\"Drake Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Drake Companion\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Dragon\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : \"14+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [3, 10],\r\n\t\t\t\thdLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tminlevelLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [16, 12, 15, 8, 14, 8],\r\n\t\t\t\tsaves : [\"\", 3, \"\", \"\", 4, \"\"],\r\n\t\t\t\tdamage_immunities : \"the chosen Draconic Essence damage type\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"Draconic\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"Only 1d6 is piercing damage, the rest is of the chosen Draconic Essence damage type\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Warden\",\r\n\t\t\t\t\tdescription : \"The drake obeys the commands of its warden and shares its proficiency bonus. It takes its turn immediately after that of its warden, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its warden takes a bonus action to command it to take another action. If its warden is incapacitated, the drake can take any action, not just Dodge. The drake vanishes after a number of hours equal to its proficiency bonus, when it is reduced to 0 hit points, when its warden summons another drake, or when its warden dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Draconic Essence\",\r\n\t\t\t\t\tdescription : \"When the drake is summoned, choose a damage type: acid, cold, fire, lightning, or poison.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infused Strikes\",\r\n\t\t\t\t\tdescription : \"As a reaction when another creature within 30 ft of the drake that it can see hits with a weapon attack, the drake can infuse the strike with its essence, causing the attack to deal an extra 1d6 damage of its chosen Draconic Essence damage type\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Bond of Fang and Scale (Drakewarden 7)\",\r\n\t\t\t\t\tminlevel : 7,\r\n\t\t\t\t\tdescription : \"When the drake is summoned, it gains either a 40 ft swimming speed and can breathe underwater, or a 40 ft flying speed and has wings. The drake's bite deals an extra 1d6 damage of its chosen Draconic Essence type.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"BlueText.Comp.Use.Attack.1.Damage Die\", mod : \"1d6\", text : \"The drake's bite attack deals an extra 1d6 damage of the type chosen for its Draconic Essence.\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly/swim 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly/swim 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Perfected Bond (Drakewarden 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The drake's size is now Large and its bite attack deals an extra 1d6 damage (for a total of +2d6) of its chosen Draconic Essence type.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"BlueText.Comp.Use.Attack.1.Damage Die\", mod : \"1d6\", text : \"The drake's bite attack deals another extra 1d6 damage (for a total of +2d6) of the type chosen for its Draconic Essence.\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 4); // Small\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.ranger && !classes.known.rangerua) return;\r\n\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\tvar rngrLvlM = 5 * rngrLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + rngrLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 as a base\\n + 5 \\xD7 \" + rngrLvl + \" from five times its warden's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Bond of Fang and Scale\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I summon my drake I can choose for it to have 40 ft flying or swimming speed\",\r\n\t\t\t\t\"If I choose swimming, it also gains the ability to breathe underwater\",\r\n\t\t\t\t\"The drake's bite attack deals an extra 1d6 damage chosen by its Draconic Essense\",\r\n\t\t\t\t\"While it is summoned, I gain resistance to the damage type of its Draconic Essense\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"(See Drake)\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drake's Breath\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause my drake or myself to exhale a 30-ft cone breath weapon\",\r\n\t\t\t\t\"Its damage type is acid, cold, fire, lightning, or poison; Dex save to halve the damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : (n < 15 ? 6 : 8) + \"d6 damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*drake)(?=.*breath).*$/i,\r\n\t\t\t\tname : \"Drake's Breath\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [6, 6, \"My choice\"],\r\n\t\t\t\trange : \"30-ft cone\",\r\n\t\t\t\tdescription : \"Hits all in area; Dex save for half damage; Damage type: acid, cold, fire, lightning, or poison\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tDrakewardenDrakeBreath : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.DrakewardenDrakeBreath && (classes.known.rangerua || classes.known.ranger)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Damage_Die = (rngrLvl < 15 ? 6 : 8) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\",\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Perfected Bond\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Large and its bite deals +1d6 damage chosen by its Draconic Essence\",\r\n\t\t\t\t\"As a reaction when the drake or I take damage while within 30 ft of each other,\",\r\n\t\t\t\t\"I can give myself or the drake resistance to that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(UASP5_Ranger_Subclass_Drakewarden);\r\n};\r\n\n// ua_20210126_Gothic-Lineages.js\n// This file adds the content from the Unearthed Arcana 2021: Gothic Lineages article to MPMB's Character Record Sheet\n// This file contains contributions by Metacomet10, MarvinTheParanoidAndroid, and CountVladmir\n\nSourceList[\"UA:GL\"] = {\n\tname : \"Unearthed Arcana: Gothic Lineages\",\n\tabbreviation : \"UA:GL\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Ravenloft\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_GothicLineages.pdf\",\n\tdate : \"2021/01/26\"\n};\n\nRaceList[\"dhampir-ua\"] = {\n\tregExpSearch : /dhampir/i,\n\tname : \"Dhampir\",\n\tsource : [[\"UA:GL\", 2]],\n\tplural : \"Dhampirs\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 },\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*vampiric)(?=.*bite).*$/i,\n\t\tname : \"Vampiric Bite\",\n\t\tsource : [[\"VRGtR\", 17]],\n\t\tability : 3,\n\t\ttype : \"Simple\",\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Adv. while at or below half HP; Can empower myself on hit\",\n\t\tisAlwaysProf : true,\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Vampiric Bite\",\n\t\tadditional : \"empower myself\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\n\t\trecovery : \"long rest\"\n\t}],\n\tscorestxt : \"+2 to one ability score, and +1 to a different score of my choice\",\n\ttrait : \"Dhampir\" + (typePF ? \"\\n \" : \"\\t\") +\n\t\"\\u2022 Type: My creature type is both Humanoid and Undead.\" +\n\t\"\\n \\u2022 Spider Climb: Climbing speed equal to walking speed. At 3rd level, I can move up, down, and across vertical surfaces and upside down along ceilings, while leaving my hands free.\" +\n\t\"\\n \\u2022 Vampiric Bite: Uses Constitution and has adv. on the attack roll if I'm at or below half HP. My Proficiency Bonus per long rest, when I hit a creature other than a construct or undead, I can empower myself. I either regain HP or gain a bonus on my next ability check or attack roll. The bonus is equal to the piercing damage dealt.\"\n};\nRaceList[\"hexblood-ua\"] = {\n\tregExpSearch : /hexblood/i,\n\tname : \"Hexblood\",\n\tsource : [[\"UA:GL\", 4]],\n\tplural : \"Hexbloods\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscorestxt : \"+2 to one ability score, and +1 to a different score of my choice\",\n\ttrait : \"Hexblood\" + (typePF ? \"\\n \" : \"\\t\") +\n\t\"\\u2022 Fey Resilience: I'm both Humanoid and Fey. I have adv. on saves vs. charms.\" +\n\t\"\\n \\u2022 Magic Token: As an action once per long rest, I can harmlessly remove a lock of my hair, one of my nails or teeth and imbue this token with magic until I finish a long rest. While the token is imbued in this way, I can telepathically speak to a creature holding it or see and hear around it. See the Notes page for more information.\" +\n\t\"\\n \\u2022 Hex Magic: I known Disguise Self and Hex. I can cast each spell once per long rest without using a spell slot, or by using a spell slot.\",\n\ttoNotesPage : [{\n\t\tname : \"Hexblood's Magic Token\",\n\t\tnote : [\"As an action, I can harmlessly pull out one of my nails, a tooth, or a lock of hair. This token is imbued with magic until I finish a long rest.\",\n\t\t\"While the token is imbued in this way, I can use an action to send a telepathic message to the creature holding or carrying the token, as long as I'm on the same plane of existence and are within 10 miles of it. The message can contain up to twenty-five words.\",\n\t\t\"In addition, while I'm within 10 miles of the token, I can use an action to enter a trance for 1 minute, during which I can see and hear from the token as if I was located where it is. While I'm using my senses at the token's location, I'm blinded and deafened in regard to my own surroundings. Afterward, the token is harmlessly destroyed.\",\n\t\t\"Once I create a token using this feature, I can't do so again until I finish a long rest, at which point my missing part regrows.\"]\n\t}],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\taction : [[\"action\", \"Magic Token\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Magic Token\",\n\t\tusages : 1,\n\t\trecovery : \"long rest\"\n\t}],\n\tspellcastingAbility : [4, 5, 6],\n\tfeatures : {\n\t\t\"hex magic\" : {\n\t\t\tname : \"Hex Magic\",\n\t\t\tminlevel : 1,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Hex Magic\",\n\t\t\t\tspells : [\"disguise self\", \"hex\"],\n\t\t\t\tselection : [\"disguise self\", \"hex\"],\n\t\t\t\tfirstCol : 'oncelr+markedbox',\n\t\t\t\ttimes : 2,\n\t\t\t\tallowUpCasting : true\n\t\t\t}],\n\t\t}\n\t}\n};\nRaceList[\"reborn-ua\"] = {\n\tregExpSearch : /reborn/i,\n\tname : \"Reborn\",\n\tsource : [[\"UA:GL\", 5]],\n\tplural : \"Reborns\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\ttrait : \"Reborn\" + (typePF ? \"\\n \" : \"  \") +\n\t\"\\u2022 Type: My creature type is Humanoid, as well as Construct or Undead (my choice).\" +\n\t\"\\n \\u2022 Deathless Nature: I don't need to sleep, eat, drink, or breathe. I have adv. on saves vs. disease, poison, and death saves. I have resistance to poison damage. Magic can't put me to sleep and I can finish a long rest in 4 hours if I spend it inactive and motionless.\" +\n\t\"\\n \\u2022 Knowledge from a Past Life: When I make an ability check that uses a skill, I can add +1d6 to the roll after seeing the d20 result. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"disease\", \"poison\", \"death saves\"],\n\t},\n\textraLimitedFeatures : [{\n\t\tname : \"Knowledge from a Past Life\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\n\t\trecovery : \"long rest\"\n\t}],\n\tuseFromPreviousRace : {\n\t\tmessage : \"If you replace a race with the Reborn lineage, you can keep the following elements of that race:\"+\n\t\tdesc([\"its size,\",\n\t\t\"any skill proficiencies you gained from it,\",\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\n\t\t\"any languages it knows and gain no new languages.\"], \"\\n   \\u2022 \")+\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\n\t\tdesc([\"are size Medium or Small (your choice),\",\n\t\t\"gain proficiency in two skills of your choice, and\",\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\n\t\tdefaultTraits : {\n\t\t\tsize : [3, 4],\n\t\t\tskillstxt : \"Choose any two skills\"\n\t\t},\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\n\t\tupdateName : \"suffix\"\n\t}\n};\nAddRacialVariant(\"reborn-ua\", \"undead\", {\n\tregExpSearch : /undead/i,\n\tsource : [[\"UA:GL\", 5]],\n\ttrait : RaceList[\"reborn-ua\"].trait.replace(\"Humanoid, as well as Construct or Undead (my choice)\", \"both Humanoid and Undead\").replace(\"  \", \"\\t\")\n});\nAddRacialVariant(\"reborn-ua\", \"construct\", {\n\tregExpSearch : /construct/i,\n\tsource : [[\"UA:GL\", 5]],\n\ttrait : RaceList[\"reborn-ua\"].trait.replace(\"Humanoid, as well as Construct or Undead (my choice)\", \"both Humanoid and Construct\").replace(\"  \", \"\\t\")\n});\n\n// ua_20210311_Folk-of-the-Feywild.js\n// This file adds the content from the Unearthed Arcana 2021: Folk of the Feywild article to MPMB's Character Record Sheet\n// This file contains contributions by CountVladmir and othercrow\n\nSourceList[\"UA:FotF\"] = {\n\tname : \"Unearthed Arcana: Folk of the Feywild\",\n\tabbreviation : \"UA:FotF\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_FeyFolk.pdf\",\n\tdate : \"2021/03/11\"\n};\n\nRaceList[\"fairy-ua\"] = {\n\tregExpSearch : /fairy/i,\n\tname : \"Fairy\",\n\tsource : [[\"UA:FotF\", 2]],\n\tplural : \"Fairies\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tfly : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Fairy Magic\",\n\t\tspells : [\"druidcraft\"],\n\t\tselection : [\"druidcraft\"],\n\t\tfirstCol : \"atwill\"\n\t}],\n\tfeatures : {\n\t\t\"fairy magic\" : {\n\t\t\tname : \"Fairy Magic\",\n\t\t\tminlevel : 1,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Fairy Magic\",\n\t\t\t\tspells : [\"faerie fire\"],\n\t\t\t\tselection : [\"faerie fire\"],\n\t\t\t\tfirstCol : 'oncelr',\n\t\t\t\tallowUpCasting : true\n\t\t\t}],\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Faerie Fire\",\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"long rest\",\n\t\t\t\taltResource : \"SS 1+\"\n\t\t\t}]\n\t\t}\n\t},\n\ttrait : \"Fairy\"+\n\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\n\t\"\\n \\u2022 Fairy Flight: I have a magical flying speed equal to my walking speed and can hover.\"+\n\t\"\\n \\u2022 Fairy Magic: I know the Druidcraft and Faerie Fire spells, and can cast the latter without using a spell slot once per long rest, as well as using slots as normal.\"+\n\t\"\\n \\u2022 Fey Passage: I can squeeze through a space as narrow as 1 inch wide.\"\n};\n\nRaceList[\"feywild hobgoblin-ua\"] = {\n\tregExpSearch : /^(?=.*feywild)(?=.*hobgoblin).*$/i,\n\tname : \"Feywild hobgoblin\",\n\tsortname : \"Hobgoblin, Feywild\",\n\tsource : [[\"UA:FotF\", 2]],\n\tplural : \"Feywild hobgoblins\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tfeatures : {\n\t\t\"fey gift\" : {\n\t\t\tname : \"Fey Gift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\taction : [[\"bonus action\", \" (Help action)\"]],\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"fortune from the many\" : {\n\t\t\tname : \"Fortune from the Many\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"fey gift - additional effect\" : {\n\t\t\tname : \"Fey Gifts - Additional Effects\",\n\t\t\tminlevel : 3,\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Fey Gifts - Additional Effects\",\n\t\t\t\tpage3notes : true,\n\t\t\t\tnote : [\n\t\t\t\t\t\"Whenever I take the Help action, I can choose one of the following effects:\",\n\t\t\t\t\t\" \\u2022 Hospitality: The target and I each gain 1d6 + my Proficiency Bonus in temporary HP\",\n\t\t\t\t\t\" \\u2022 Passage: The target and I gain +10 ft walking speed until my next turn starts\",\n\t\t\t\t\t\" \\u2022 Spite: Enhances the first attack by the target or me that hits before my next turn starts\",\n\t\t\t\t\t\"   The creature hit has disadvantage on its next attack roll it makes within the next minute\"\n\t\t\t\t]\n\t\t\t}]\n\t\t}\n\t},\n\ttrait : \"Feywild hobgoblin\"+\n\t\"\\n \\u2022 Fey Gift: I can take the Help action as a bonus action my Proficiency Bonus per long rest.\"+\n\t\"\\n \\u2022 Fortune from the Many: When I miss an attack or fail an ability check or a save, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5). I can do this a number of times per long rest equal to my Proficiency Bonus.\"+\n\t'\\n \\u2022 From 3rd-level onwards, whenever I take the Help action, I can choose to produce an additional effect: Hospitality, Passage, or Spite. See the 3rd page \"Notes\" section.'\n};\n\nRaceList[\"owlfolk-ua\"] = {\n\tregExpSearch : /owlfolk/i,\n\tname : \"Owlfolk\",\n\tsource : [[\"UA:FotF\", 3]],\n\tplural : \"Owlfolk\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tfly : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tskills : [\"Stealth\"],\n\tvision : [[\"Darkvision\", 90]],\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Magic Sight\",\n\t\tspells : [\"detect magic\"],\n\t\tselection : [\"detect magic\"]\n\t}],\n\taction : [[\"reaction\", \"Nimble Flight\"]],\n\ttrait : \"Owlfolk\"+\n\t\"\\n \\u2022 Magic Sight: I know the spell Detect Magic and can cast as a ritual or by using spell slots as normal.\"+\n\t\"\\n \\u2022 Nimble Flight: My wings give me a flying speed equal to my walking speed. As a reaction when I fall, I can make a Dexterity saving throw (DC 10) to stop falling and fly in place until the start of my next turn.\"+\n\t\"\\n \\u2022 Silent Feathers: I have proficiency in the Stealth skill.\"\n};\n\nRaceList[\"rabbitfolk-ua\"] = {\n\tregExpSearch : /rabbitfolk/i,\n\tname : \"Rabbitfolk\",\n\tsource : [[\"UA:FotF\", 3]],\n\tplural : \"Rabbitfolk\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t},\n\tskills : [\"Perception\"],\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"I can add my proficiency bonus to initiative rolls.\" }],\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\taction : [[\"reaction\", \"Lucky Footwork\"]],\n\ttrait : \"Rabbitfolk\"+\n\t\"\\n \\u2022 Hare-Trigger: I add my proficiency bonus to initiative rolls.\"+\n\t\"\\n \\u2022 Leporine Senses: I have proficiency in the Perception skill.\"+\n\t\"\\n \\u2022 Lucky Footwork: As a reaction when I fail a Dexterity saving throw, I can add +1d4 to the result, potentially making it a success.\"+\n\t\"\\n \\u2022 Rabbit Hop: Once during each of my turns when I walk at least 5 ft, I can hop an extra 1d12 ft without it costing any extra movement. I can only do this if my speed isn't 0.\"\n};\n\n// ua_20210414_Draconic-Options.js\n// This file adds the content from the Unearthed Arcana 2021: Draconic Options article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:DO\"] = {\n\tname : \"Unearthed Arcana: Draconic Options\",\n\tabbreviation : \"UA:DO\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2021/downloads/Unearthed-Arcana-2021-Draconic-Options.pdf\",\n\tdate : \"2021/04/14\"\n};\n\n// Draconic Races\nvar UADO_dragonborns_add = function () { // New dragonborn variants\n\tvar objDragonborns = {\n\t\tChromatic : {\n\t\t\tregExpSearch : /^(?=.*chromatic)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\tvariants : [[\"Black\", \"Acid\"], [\"Blue\", \"Lightning\"], [\"Green\", \"Poison\"], [\"Red\", \"Fire\"], [\"White\", \"Cold\"]],\n\t\t\tbreathWeaponShape : \"5-ft by 30-ft line\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 5-ft by 30-ft line, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest. The damage increases to 3d8 at 5th level, 4d8 at 11th level, and 5d8 at 17th level.\",\n\t\t\t\t\"Chromatic Warding: From 3rd level, I can protect myself using my draconic energies. As an action once per long rest, I can become immune to >>type<< damage for 10 minutes.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"chromatic warding\" : {\n\t\t\t\t\tname : \"Chromatic Warding\",\n\t\t\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\taction : [[\"action\", \"\"]]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tMetallic : {\n\t\t\tregExpSearch : /^(?=.*metallic)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\tvariants : [[\"Brass\", \"Fire\"], [\"Bronze\", \"Lightning\"], [\"Copper\", \"Acid\"], [\"Gold\", \"Fire\"], [\"Silver\", \"Cold\"]],\n\t\t\tbreathWeaponShape : \"15-ft cone\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest.\",\n\t\t\t\t\"Metallic Breath Weapon: At 3rd level I gain a second breath weapon once per long rest, that works just like the first. It doesn't deal damage, but I can choose one effect: Str save or pushed 20 ft and prone, or Con save or incapacitated until my next turn starts.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"metallic breath weapon\" : {\n\t\t\t\t\tname : \"Metallic Breath Weapon\",\n\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tweaponOptions : [{\n\t\t\t\t\t\tregExpSearch : /^(?=.*metallic)(?=.*breath)(?=.*weapon).*$/i,\n\t\t\t\t\t\tname : \"Metallic breath weapon\",\n\t\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\t\tability : 3,\n\t\t\t\t\t\ttype : 'Natural',\n\t\t\t\t\t\tdamage : ['Str save or', '', 'Con save'],\n\t\t\t\t\t\trange : \"15-ft cone\",\n\t\t\t\t\t\tdescription : \"Str save or pushed 20 ft and knocked prone -or- Con save or incapacitated until my next turn starts\",\n\t\t\t\t\t\tabilitytodamage : false,\n\t\t\t\t\t\tdc : true,\n\t\t\t\t\t\tselectNow : true\n\t\t\t\t\t}]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tGem : {\n\t\t\tregExpSearch : /^(?=.*gem)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\tvariants : [[\"Amethyst\", \"Force\"], [\"Crystal\", \"Radiant\"], [\"Emerald\", \"Psychic\"], [\"Sapphire\", \"Thunder\"], [\"Topaz\", \"Necrotic\"]],\n\t\t\tbreathWeaponShape : \"15-ft cone\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest.\",\n\t\t\t\t\"Psionic Mind: I can speak telepathically to \" + (typePF ? \"any creature I can see within 30 ft that understands a language but it can't respond.\" : \"a creature with a language I can see in 30 ft.\"),\n\t\t\t\t\"Gem Flight: From 3rd level, I can temporarily fly. As a bonus action once per long rest, I can gain a flying speed equal to my walking speed and can hover. This lasts for 1 minute.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"gem flight\" : {\n\t\t\t\t\tname : \"Gem Flight\",\n\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor (var sDrBrn in objDragonborns) {\n\t\tvar sDrBrnLC = sDrBrn.toLowerCase();\n\t\tvar oDrBrn = objDragonborns[sDrBrn];\n\t\tRaceList[sDrBrnLC + \" dragonborn-ua\"] = {\n\t\t\tregExpSearch : oDrBrn.regExpSearch,\n\t\t\tname : sDrBrn + \" Dragonborn\",\n\t\t\tsortname : \"Dragonborn, \" + sDrBrn,\n\t\t\tsource : oDrBrn.source,\n\t\t\tplural : sDrBrn + \" Dragonborn\",\n\t\t\tsize : 3,\n\t\t\tspeed : {\n\t\t\t\twalk : { spd : 30, enc : 20 }\n\t\t\t},\n\t\t\tlanguageProfs : [\"Common\", 1],\n\t\t\tweaponOptions : [{\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\n\t\t\t\tname : \"Breath weapon\",\n\t\t\t\tsource : oDrBrn.source,\n\t\t\t\tability : 3,\n\t\t\t\ttype : 'Natural',\n\t\t\t\tdamage : ['Q', 8, 'fire'],\n\t\t\t\trange : oDrBrn.breathWeaponShape.replace('by', '\\xD7'),\n\t\t\t\tdescription : \"Hits all in area; Dex save, success - half damage\",\n\t\t\t\tabilitytodamage : false,\n\t\t\t\tdc : true,\n\t\t\t\tdbBreathWeapon : true,\n\t\t\t\tselectNow : true\n\t\t\t}],\n\t\t\tage : \" reach adulthood by 15 and live around 80 years\",\n\t\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\n\t\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\n\t\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\n\t\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\n\t\t\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\t\t\ttrait : sDrBrn + \" Dragonborn\"+\n\t\t\t\t\"\\n \\u2022 \" + sDrBrn + ' Ancestry: Choose a type of dragon using the \"Racial Options\" button. The damage type of my resistance and my breath weapon are determined by the dragon type chosen.'+\n\t\t\t\t+ oDrBrn.trait.replace(/>>type<< /ig, \"\"),\n\t\t\tfeatures : {\n\t\t\t\t\"breath weapon\" : {\n\t\t\t\t\tname : \"Breath Weapon\",\n\t\t\t\t\tminlevel : 1,\n\t\t\t\t\tusages : \"Proficiency bonus per \",\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tadditional : levels.map(function (n) {\n\t\t\t\t\t\treturn (n < 5 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + 'd8';\n\t\t\t\t\t}),\n\t\t\t\t\tcalcChanges : {\n\t\t\t\t\t\tatkAdd : [\n\t\t\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && (/dragonborn/i).test(CurrentRace.known) && CurrentRace.variant) {\n\t\t\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.dmgres[0];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tvariants : []\n\t\t};\n\t\tif (oDrBrn.features) {\n\t\t\tfor (var sFea in oDrBrn.features) {\n\t\t\t\tRaceList[sDrBrnLC + \" dragonborn-ua\"].features[sFea] = oDrBrn.features[sFea];\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0; i < oDrBrn.variants.length; i++) {\n\t\t\tvar sDrBrnVar = oDrBrn.variants[i][0];\n\t\t\tvar sDrBrnDmg = oDrBrn.variants[i][1];\n\t\t\tAddRacialVariant(sDrBrnLC + \" dragonborn-ua\", sDrBrnVar.toLowerCase(), {\n\t\t\t\tregExpSearch : RegExp(sDrBrnVar, \"i\"),\n\t\t\t\tname : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\",\n\t\t\t\ttrait : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\"+\n\t\t\t\t\toDrBrn.trait.replace(/>>TYPE<</g, sDrBrnDmg).replace(/>>type<</g, sDrBrnDmg.toLowerCase()),\n\t\t\t\tdmgres : [sDrBrnDmg]\n\t\t\t});\n\t\t}\n\t}\n}();\nRaceList[\"draconic kobold-ua\"] = {\n\tregExpSearch : /^(?=.*draconic)(?=.*kobold).*$/i,\n\tname : \"Draconic kobold\",\n\tsortname : \"Kobold, Draconic\",\n\tsource : [[\"UA:DO\", 4]],\n\tplural : \"Draconic kobolds\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tage : \" reach adulthood at age 6 and can live up to 120 years, but rarely do so\",\n\theight : \" are between 2 and 3 feet tall (2'1\\\" + 2d4\\\")\",\n\tweight : \" weigh between 25 and 35 lb (25 + 2d4 \\xD7 1 lb)\",\n\theightMetric : \" are between 65 and 90 cm tall (63 + 5d4 cm)\",\n\tweightMetric : \" weigh between 10 and 15 kg (11 + 5d4 \\xD7 2 / 10 kg)\",\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tfeatures : {\n\t\t\"draconic roar\" : {\n\t\t\tname : \"Draconic Roar\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\taction : [[\"bonus action\", \"\"]],\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t},\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy: Choose one of the following with the \"Racial Options\" button: (1) Brave: advantage on saves vs. being frightened, (2) Cantrip: I know one sorcerer cantrip of my choice, or (3) Tail: I can use my tail that deals 1d6 damage to make unarmed strikes.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n};\nAddRacialVariant(\"draconic kobold-ua\", \"brave\", {\n\tregExpSearch : /brave/i,\n\tname : \"Draconic Kobold-Brave\",\n\tsource : [[\"UA:DO\", 4]],\n\tplural : \"Draconic Kobolds\",\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Brave): I have advantage on saving throws to avoid or end the frightened condition on myself.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\nAddRacialVariant(\"draconic kobold-ua\", \"cantrip\", {\n\tregExpSearch : /cantrip/i,\n\tsource : [[\"UA:DO\", 4]],\n\tspellcastingAbility : [4, 5, 6],\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Draconic Legacy\",\n\t\t\"class\" : \"sorcerer\",\n\t\tlevel : [0, 0],\n\t\tfirstCol : 'atwill'\n\t}],\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Cantrip). I know one cantrip from the sorcerer spell list. Intelligence, Wisdom, or Charisma is my spellcasting ability for it (chosen when I select this race).'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\nAddRacialVariant(\"draconic kobold-ua\", \"tail\", {\n\tregExpSearch : /tail/i,\n\tsource : [[\"UA:DO\", 4]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*draconic)(?=.*tail).*$/i,\n\t\tname : \"Draconic Tail\",\n\t\tsource : [[\"UA:DO\", 4]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tselectNow : true\n\t}],\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Tail): I can make unarmed strikes with my tail. The tail deals 1d6 + my Strength modifier bludgeoning damage.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\n\n// Draconic Feats\nFeatsList[\"gift of the metallic dragon-ua\"] = {\n\tname : \"Gift of the Metallic Dragon\",\n\tsource : [[\"UA:DO\", 4]],\n\tdescriptionFull : \"You've manifested some of the power of metallic dragons, granting you the following benefits:\"+\n\t\"\\n \\u2022 You learn the cure wounds spell. You can cast this spell without expending a spell slot. Once you cast this spell in this way, you can't do so again until you finish a long rest. You can also cast this spell using spell slots you have. The spell's spellcasting ability is Intelligence, Wisdom, or Charisma when you cast it with this feat (choose when you gain the feat).\"+\n\t\"\\n \\u2022 You can manifest protective wings that can shield you or others from attacks. When you or another creature you can see within 5 feet of you is hit by an attack roll, you can use your reaction to manifest spectral wings from your back for a moment. Roll a d4 and grant a bonus to the target's AC equal to the number rolled against that attack roll, potentially causing it to miss. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I know Cure Wounds. I can cast it using spell slots and once per long rest without a spell slot. As a reaction when I or another I can see within 5 ft is hit by an attack, I can add a d4 to AC, potentially causing the attack to miss. I can do this my Prof Bonus per long rest.\",\n\tspellcastingAbility : [4, 5, 6],\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Cure Wounds\",\n\t\tspells : [\"cure wounds\"],\n\t\tselection : [\"cure wounds\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}],\n\taction : [[\"reaction\", \"Metallic Gift (Spectral Wings)\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Metallic Gift (Spectral Wings)\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}]\n};\n\n// Draconic Spells\nSpellsList[\"draconic transformation-ua\"] = {\n\tname : \"Draconic Transformation\",\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\n\tsource : [[\"UA:DO\", 5]],\n\tlevel : 7,\n\tschool : \"Trans\",\n\ttime : \"1 bns\",\n\trange : \"Self\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A statuette of a dragon, worth at least 500 gp\",\n\tduration : \"Conc, 1 min\",\n\tsave : \"Dex\",\n\tdescription : \"Blindsight 30 ft; 40 ft fly speed; at cast and 1 bns: 30-ft cone all 3d8 Force damage, save half (500gp)\",\n\tdescriptionShorter : \"Blindsight 30 ft; 40 ft fly; at cast and 1 bns: 30-ft cone all 3d8 Force dmg, save half (500gp)\",\n\tdescriptionFull : \"With a roar, you draw on the magic of dragons to transform yourself, taking on various draconic features. You gain the following benefits until the spell ends:\"+\n\t\"\\n \\u2022 You have blindsight with a range of 30 feet. Within that range, you can effectively see anything that isn't behind total cover, even if you're blinded or in darkness. Moreover, you can see an invisible creature, unless the creature successfully hides from you.\"+\n\t\"\\n \\u2022 Incorporeal wings sprout from your back, giving you a flying speed of 40 feet.\"+\n\t\"\\n \\u2022 When you cast this spell, and as a bonus action on subsequent turns for the duration, you can exhale a breath of shimmering energy in a 30-foot cone. Each creature in the area must make a Dexterity saving throw, taking 3d8 force damage on a failed save or half as much damage on a successful one.\"\n};\nSpellsList[\"fizban's platinum shield-ua\"] = {\n\tname : \"Fizban's Platinum Shield\",\n\tnameAlt : \"Platinum Shield\",\n\tclasses : [\"sorcerer\", \"wizard\"],\n\tsource : [[\"UA:DO\", 5]],\n\tlevel : 6,\n\tschool : \"Abjur\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A platinum-plated dragon scale, worth at least 500 gp\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"1 crea Acid, Cold, Fire, Lightn. \\u0026 Poison resist., half cover, better Dex saves; 1 bns change crea (500gp)\",\n\tdescriptionFull : \"You create a field of silvery light that surrounds a creature of your choice within range (you can choose yourself). The field sheds dim light out to 5 feet.\"+\n\t\"\\n   As a bonus action on subsequent turns, you can move the field to another creature within 60 feet of the field.\"+\n\t\"\\n   The creature protected by the field gains the following benefits:\"+\n\t\"\\n \\u2022 The creature has half cover.\"+\n\t\"\\n \\u2022 The creature has resistance to acid, cold, fire, lightning, and poison damage.\"+\n\t\"\\n \\u2022 If the creature is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, the creature instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\"\n};\nSpellsList[\"raulothim's psychic lance-ua\"] = {\n\tname : \"Raulothim's Psychic Lance\",\n\tnameAlt : \"Psychic Lance\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"UA:DO\", 6]],\n\tlevel : 4,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"120 ft\",\n\tcomponents : \"V\",\n\tduration : \"Instantaneous\",\n\tsave : \"Int\",\n\tdescription : \"1 crea I see or name I know save or 10d6+1d6/SL Psychic dmg \\u0026 incapacitated till my next turn starts\",\n\tdescriptionShorter : \"1 crea I see or name I know save or 10d6+1d6/SL Psychic dmg \\u0026 incapacitated for 1 rnd\",\n\tdescriptionFull : \"You unleash a shimmering lance of psychic power from your forehead at a creature that you can see within range. Alternatively, you can utter the creature's name. If the named target is within range, it gains no benefit from cover or invisibility as the lance homes in on it. If the named target isn't within range, the lance dissipates, and the spell slot is not expended.\"+\n\t\"\\n   The target must succeed on an Intelligence saving throw or take 10d6 psychic damage and be incapacitated until the start of your next turn.\"+\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d6 for each slot level above 4th.\"\n};\n\n// ua_20211008_Travelers-of-the-Multiverse.js\n// This file adds the content from the Unearthed Arcana 2021: Travelers of the Multiverse article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TotM\"] = {\n\tname : \"Unearthed Arcana: Travelers of the Multiverse\",\n\tabbreviation : \"UA:TotM\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Spelljammer\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_TravelersoftheMultiverse.pdf\",\n\tdate : \"2021/10/08\"\n};\n\n// New races\nRaceList[\"astral elf-ua\"] = {\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(astral|silver void)\\b).*$/i,\n\tname : \"Astral elf\",\n\tsortname : \"Elf, Astral\",\n\tsource : [[\"UA:TotM\", 2]],\n\tplural : \"Astral elves\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Elvish or other\", 1]],\n\tscoresGeneric : true,\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old. Because nothing ages in the Astral Plane, astral elves from that plane can be thousands of years old.\",\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Astral Fire\",\n\t\tspells : [\"dancing lights\", \"light\", \"sacred flame\"],\n\t\tfirstCol : \"atwill\"\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Radiant Soul\",\n\t\tusages : 1,\n\t\trecovery : \"short rest\"\n\t}],\n\ttrait : \"Astral Elf\"+\n\t\"\\n \\u2022 Radiant Soul: Once per short rest when I succeed on a death save, I can regain HP equal to my proficiency bonus + my Int, Wis, or Cha mod (choose when selecting this race).\"+\n\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours if I spend those hours in a trancelike meditation, during which I remain conscious.\"+\n\t\"\\n \\u2022 Trance Proficiencies. Whenever I finish a long rest using Trance, I gain two proficiencies, each one with a weapon or a tool of my choice. They last until I finish my next long rest.\"\n};\nRaceList[\"autognome-ua\"] = {\n\tregExpSearch : /autognome/i,\n\tname : \"Autognome\",\n\tsource : [[\"UA:TotM\", 2]],\n\tplural : \"Autognomes\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Gnomish or other\", 1]],\n\tscoresGeneric : true,\n\tage : \" can live for centuries, up to 500 years\",\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*casing).*$/i,\n\t\tname : \"Armored Casing\",\n\t\tsource : [[\"UA:TotM\", 2]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Built for Success\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\tadv_vs : [\"paralyzed\", \"poison\"],\n\t\timmune : [\"disease\"]\n\t},\n\ttoolProfs : [[\"Tool of my choice\", 2]],\n\ttrait : typePF ?\n\t\t\"Autognome (my type is Construct)\"+\n\t\t\"\\n \\u2022 Cure Wounds, Healing Word, and Spare the Dying work on me.\"+\n\t\t\"\\n \\u2022 Armored Casing: My base AC is 13 + my Dexterity modifier.\"+\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save, after I see the roll, but before the effect.\"+\n\t\t\"\\n \\u2022 Mechanical Nature: I don't need to eat, drink or breathe.\"+\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay in an inactive and motionless state during which I'm conscious.\"+\n\t\t\"\\n \\u2022 True Life: If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\n\t\t:\n\t\t\"Autognome (type is Construct; Cure Wounds, Healing Word, Spare the Dying work on me)\"+\n\t\t\"\\n \\u2022 Armored Casing: While I'm not wearing armor, my AC is 13 + my Dexterity modifier.\"+\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save. I can do this after seeing the d20 roll, but before knowing the roll's effects.\"+\n\t\t\"\\n \\u2022 Mechanical Nature: I have immunities/resistances and don't need to eat, drink or breathe\"+\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay inactive and motionless.\"+\n\t\t\"\\n \\u2022 True Life: If Mending is cast on me, I can expend one HD like during a short rest.\"\n};\nRaceList[\"giff-ua\"] = {\n\tregExpSearch : /giff|hippofolk/i,\n\tname : \"Giff\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Giff\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\tcarryingCapacity : 2,\n\tsavetxt : { text : [\"Adv. on Str saves and checks\"] },\n\tadvantages : [[\"Strength\", true]],\n\ttrait : \"Giff\"+\n\t\"\\n \\u2022 Damage Dealer: Like a hippopotamus in a crystalware shop, I am naturally adept at damaging things. When I roll a 1 on a damage die for a melee attack, I can reroll the die and use the new roll. I can do so no more than once per turn.\"+\n\t\"\\n \\u2022 Hippo Build: I have advantage on Strength-based ability checks and Strength saving throws. In addition, I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"\n};\nRaceList[\"hadozee-ua\"] = {\n\tregExpSearch : /hadozee/i,\n\tname : \"Hadozee\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Hadozees\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tscoresGeneric : true,\n\taction : [\n\t\t[\"bonus action\", \"Dexterous Feet (Use an Object)\"],\n\t\t[\"reaction\", \"Glide (negate falling damage)\"]\n\t],\n\ttrait : \"Hadozee\"+\n\t\"\\n \\u2022 Dexterous Feet: As a bonus action, I can do the Use an Object action.\"+\n\t\"\\n \\u2022 Glide: If I'm not incapacitated or wearing heavy armor, I can extend my skin membranes and glide. When I do so, I can perform the following aerial maneuvers:\"+\n\t\"   - When I fall, I can move up to 5 ft horizontally for every 1 ft I descend.\"+\n\t\"   - As a reaction when I would take damage from a fall, I can reduce this damage to 0.\"\n};\nRaceList[\"plasmoid-ua\"] = {\n\tregExpSearch : /plasmoid/i,\n\tname : \"Plasmoid\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Plasmoids\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Acid\", \"Poison\"],\n\tsavetxt : {\n\t\tadv_vs : [\"poison\"],\n\t\ttext : [\"Adv. on grapple checks\"]\n\t},\n\taction : [[\"bonus action\", \"Extrude/Reabsorb Pseudopod\"]],\n\ttrait : \"Plasmoid (my type is Ooze)\"+\n\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Hold Breath: I can hold my breath for 1 hour.\"+\n\t\"\\n \\u2022 Amorphous: I can squeeze through a 1-inch wide space without my equipment or clothes. \" + (typePF ? \"I have advantage on grapple checks.\" : \"I also have advantage on ability checks I make to initiate or escape a grapple.\")+\n\t\"\\n \\u2022 Shape Self: While not incapacitated, I can reshape my body to have a head and limbs, or back to a limbless blob (no action). As a bonus action, I can extrude/reabsorb a pseudopod up to 6 inch wide and 10 ft long. It can carry up to 10 lb. I can use it to manipulate objects, open unlocked doors, stow/retrieve objects, or pour out contents of a container.\" + (typePF ? \" It can't attack or use magic items.\" : \"\")\n};\nRaceList[\"thri-kreen-ua\"] = {\n\tregExpSearch : /thri.?kreen/i,\n\tname : \"Thri-kreen\",\n\tsource : [[\"UA:TotM\", 4]],\n\tplural : \"Thri-kreen\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\t// age, height and weight taken from Shining South (2004) p17 (using the male option)\n\tage : \" reach maturity around 7 years old and typically live around 30 years\",\n\theight : \" stand between 5 and 7 feet tall (5'2\\\" + 2d10\\\")\",\n\tweight : \" weigh between 140 and 375 pounds (135 + 2d10 \\xD7 2d6 lb)\",\n\theightMetric : \" stand from 1,6 to over 2 metres tall (160 + 5d10 cm)\",\n\tweightMetric : \" weigh between 60 and 180 kg (60 + 5d10 \\xD7 4d6 / 10 kg)\",\n\tlanguageProfs : [\"Common\", \"Thri-kreen Telepathy\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*carapace)(?=.*chameleon).*$/i,\n\t\tname : \"Chameleon Carapace\",\n\t\tsource : [[\"UA:TotM\", 4]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\taction : [[\"action\", \"Chameleon Carapace\"]],\n\ttrait : \"Thri-kreen (my type is Monstrosity)\"+\n\t\"\\n \\u2022 Chameleon Carapace: \" + (typePF ? \"AC 13 + Dex,\" : \"My base AC is 13 + Dex mod. I have\") + \" adv. on Stealth checks to hide.\"+\n\t\"\\n \\u2022 Secondary Arms: I have two slightly smaller arms below my primary pair of arms.\" + (typePF ? \" \" : \"\\n   \") + \"I can't use these secondary arms to wield a shield or weapons other than light weapons.\"+\n\t\"\\n \\u2022 Sleepless: I don't \" + (typePF ? \"\" : \"require \") + \"sleep. I rest by refraining from strenuous activity.\"+\n\t\"\\n \\u2022 \" + (typePF ? \"Thri-kreen \" : \"\") + \"Telepathy: I can communicate telepathically to any number of willing creatures I can see that understand at least one language, while within 120 ft. Any can break this (no action).\"\n};\n\n// This file adds the content from the Unearthed Arcana 2022: Heroes of Krynn article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n\r\n// ua_20220308_Heroes-of-Krynn.js\r\nSourceList[\"UA:HoK\"] = {\r\n\tname : \"Unearthed Arcana: Heroes of Krynn\",\r\n\tabbreviation : \"UA:HoK\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022HeroesofKrynn.pdf\",\r\n\tdate : \"2022/03/08\"\r\n};\r\n\r\n// Race\r\nRaceList[\"kender-ua\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"UA:HoK\", 1]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"frightened\"]},\r\n\tabilitySave : 6,\r\n\tfeatures : {\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"kender ace\" : {\r\n\t\t\tname : \"Kender Ace\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Kender Ace Table\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I possess a magical ability to pull an item out of a bag or another container.\",\r\n\t\t\t\t\t\"As a bonus action, I can reach into a container I'm carrying and roll a d6 to determine the item I pull out.\",\r\n\t\t\t\t\t\"The object glimmers softly and disappears after 1 hour.\",\r\n\t\t\t\t\t\"I can use this bonus action a number of times equal to my proficiency bonus, and you regain all expended uses when I finish a long rest.\\n\",\r\n\t\t\t\t\t\"  d6\\tItem\",\r\n\t\t\t\t\t\"   1\\t5d6 gold pieces\",\r\n\t\t\t\t\t\"   2\\t1 simple weapon of my choice that has the light property\",\r\n\t\t\t\t\t\"   3\\t1 item of my choice from the Adventuring Gear table (PHB 148), no more than 1 gp and 1 lb\",\r\n\t\t\t\t\t\"   4\\t1 random item from the Trinkets table (PHB 159)\",\r\n\t\t\t\t\t\"   5\\tMy choice of a crowbar or a grappling hook\",\r\n\t\t\t\t\t\"   6\\t1 item of my choice from the Tools table (PHB 154), no more than 10 gp\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t(typePF ? \"\\n \" : \"\\t\")+\"\\u2022 Brave: I have adv. on saves to avoid or end being frightened.\"+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can have a creature that can hear and understand me within 60 ft make a Wisdom save (DC 8 + Prof B. + Cha mod) or gain disadv. on attacks until my next turn starts. I can do this a number of times per long rest equal to my Prof Bonus.\"+\r\n\t'\\n \\u2022 Kender Ace: Starting at 3rd-level, as a bonus action, I can reach into a container and roll on the Kender Aces table to determine the item I pull out, see the \"Notes\" section. I can do this a number of times per long rest equal to my proficiency bonus.'\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"sorcerer\", \"lunar magic-ua\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*(lunar|moon)).*$/i,\r\n\tsubname : \"Lunar Magic\",\r\n\tsource : [[\"UA:HoK\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Moon Fire\",\r\n\t\t\tsource : [[\"UA:HoK\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I know the Sacred Flame cantrip and can use it on 2 creatures within 5 ft of each other\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Moon Fire\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tweaponsAdd : { select : [\"Sacred Flame\"] },\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sacred flame\" : {\r\n\t\t\t\t\tdescription : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 at CL 5, 11, and 17\",\r\n\t\t\t\t\tdescriptionShorter : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 CL 5/11/17\",\r\n\t\t\t\t\tdescriptionCantripDie : \"Up to 2 creas I see, max 5 ft apart, save or `CD`d8 Radiant dmg; no bonus for cover on save\",\r\n\t\t\t\t\tchanges : \"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName == 'sacred flame') {\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(\"1 creature\", \"up to 2 creatures within 5 ft\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Lunar Embodiment\",\r\n\t\t\tsource : [[\"UA:HoK\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tadditional : levels.map(function (n) { return (n < 3 ? 3 : n < 5 ? 6 : n < 7 ? 9 : n < 9 ? 12 : 15) + \" additional spells known\"}),\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"dissonant whispers\", \"sanctuary\", \"moonbeam\", \"darkness\", \"blindness/deafness\", \"death ward\", \"bestow curse\", \"phantom steed\", \"freedom of movement\", \"evard's black tentacles\", \"hallucinatory terrain\", \"mass cure wounds\", \"mislead\", \"dream\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tdescription : levels.map(function(n) {\r\n\t\t\t\tvar phases = {\r\n\t\t\t\t\t\"\\u25CB Full: \" : [\"Faerie Fire\", \"Moonbeam\", \"Death Ward\", \"Freedom of Movement\", \"Mass Cure Wounds\"],\r\n\t\t\t\t\t\"\\u25CF New: \" : [\"Dissonant Whispers\", \"Darkness\", \"Bestow Curse\", \"Evard's Black Tentacles\", \"Mislead\"],\r\n\t\t\t\t\t\"\\u25D6 Crescent: \" : [\"Sanctuary\", \"Blindness/deafness\", \"Phantom Steed\", \"Hallucinatory Terrain\", \"Dream\"]\r\n\t\t\t\t};\r\n\t\t\t\tvar aReturn = [\r\n\t\t\t\t\t\"When I finish a long rest, I can choose a lunar phase: Full, New, or Crescent Moon\",\r\n\t\t\t\t\t\"I can cast the spells of the chosen lunar phase each once per long rest without a spell slot\"\r\n\t\t\t\t];\r\n\t\t\t\tvar iSpellsAdd = n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : 5;\r\n\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\taReturn.push(phase + phases[phase].slice(0,iSpellsAdd).join(\", \"));\r\n\t\t\t\t}\r\n\t\t\t\t//aReturn.push(\"I know all \" + (iSpellsAdd * 3) + \" spells above; They don't count towards the number of spells I can know\");\r\n\t\t\t\treturn desc(aReturn);\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName === \"sorcerer\" && !isDuplicate && CurrentSpells.sorcerer.extra.indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\tvar phases = {\r\n\t\t\t\t\t\t\t\t\"F\" : [\"faerie fire\", \"moonbeam\", \"death ward\", \"freedom of movement\", \"mass cure wounds\"],\r\n\t\t\t\t\t\t\t\t\"N\" : [\"dissonant whispers\", \"darkness\", \"bestow curse\", \"evard's black tentacles\", \"mislead\"],\r\n\t\t\t\t\t\t\t\t\"C\" : [\"sanctuary\", \"blindness/deafness\", \"phantom steed\", \"hallucinatory terrain\", \"dream\"]\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\t\t\t\tif (phases[phase].indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\t\t\tspellObj.firstCol = phase;\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'The letters \"F\", \"N\", or \"C\" in the first column are used to indicate that a spell belongs to either the Full Moon, New Moon, or Crescent Moon lunar phase.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tspellFirstColTitle : \"Ph\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\t// Because Death Ward is a 4th-level spell, but gained at 5th level, we need to manually add it at sorcerer level 5 and 6\r\n\t\t\t\tname : \"Death Ward\",\r\n\t\t\t\tspells : [\"death ward\"],\r\n\t\t\t\tselection : [\"death ward\"],\r\n\t\t\t\tfirstCol : \"F\",\r\n\t\t\t\ttimes : levels.map(function(n){ return n === 5 || n === 6 ? 1 : 0; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Lunar Boons\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Each lunar phase is additionally associated with spells of the following schools of magic:\",\r\n\t\t\t\t\"\\u25CB Full: Abjur \\u0026 Conj\\t\\t\\u25CF New: Evoc \\u0026 Necro\\t\" + (typePF ? \"\\t\" : Array(8).join(\" \")) + \"\\u25D6 Crescent: Div \\u0026 Trans\",\r\n\t\t\t\t\"I can reduce the sorcery point needed for Metamagic of spells of my current phase by 1\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Waxing and Waning\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 sorcery point to change my lunar phase\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Lunar Empowerment\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [passive benefits for current phase]\" + desc([\r\n\t\t\t\t\"\\u25CB Full: I shed bright light in a 10-ft radius and dim light for an additional 10 ft\",\r\n\t\t\t\t\"        Myself and creatures I choose inside this bright light have advantage on saves\",\r\n\t\t\t\t\"\\u25CF New: Adv. on Stealth checks; If I'm in dim light or darkness, attacks have disadv. vs me\",\r\n\t\t\t\t\"\\u25D6 Crescent: I have resistance to Necrotic and Radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [[\"Necrotic\", \"Necro. (in crescent)\"], [\"Radiant\", \"Rad. (in crescent)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Lunar Phenomenon\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional: \"per phase: 1\\xD7 per long rest or 5 SP\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, or as part of changing phase, I can use a power of the (new) phase:\",\r\n\t\t\t\t\"\\u25CB Full: Chosen creatures within 30 ft of me must make a Constitution save or be blinded\",\r\n\t\t\t\t\"   This lasts until their next turn ends; I also heal one creature within 30 ft for 3d8 HP\",\r\n\t\t\t\t\"\\u25CF New: Chosen creatures within 30 ft of me must make a Dexterity save\",\r\n\t\t\t\t\"   If failed, they take 3d10 Necrotic damage and have 0 speed until their next turn ends\",\r\n\t\t\t\t\"   Also, I become invisible until the end of my next turn, or until I attack or cast a spell\",\r\n\t\t\t\t\"\\u25D6 Crescent: I can magically teleport to an unoccupied space I can see within 60 ft\",\r\n\t\t\t\t\"   I gain resistance to all damage until the start of my next turn\",\r\n\t\t\t\t\"I can use each phase's bonus action 1/LR, or by spending 5 sorcery points to use it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Lunar Phenomenon (Full)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (New)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (Crescent)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds\r\nBackgroundList[\"knight of solamnia-ua\"] = {\r\n\tregExpSearch : /^(?=.*(knight|champion|warrior))(?=.*solamnia).*$/i,\r\n\tname : \"Knight of Solamnia\",\r\n\tsource : [[\"UA:HoK\", 3]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tequipleft : [\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Squire of Solamnia\",\r\n\ttrait : [\r\n\t\t\"I pledge my sword to the greater good. If I must perish in pursuit of that good, so be it.\",\r\n\t\t\"My comrades-in-arms are my family. I'll do whatever it takes to keep them safe.\",\r\n\t\t\"The protection of innocent people comes first. All other concerns come second.\",\r\n\t\t\"I joined the knights for the free meals, but their lessons grew on me over time.\",\r\n\t\t\"I wish my deeds to become the stuff of legends\\xD7just like those of the knighthood's heroic founders.\",\r\n\t\t\"A dishonorable act drove me to become a knight. I have acted with honor ever since.\"\r\n\t]\r\n};\r\n/*\tFeats\r\n\tAll the below feats are the work of PoetOfGod and have not been double-checked\r\n\tby Safety-Orange, because the \"Revised\" article has already been published\r\n\tand that superseeds all these feats with newer versions.\r\n*/\r\n\r\n// Feats tree for Initiate of High Sorcery\r\nFeatsList[\"initiate of high sorcery-ua\"] = {\r\n\tname : \"Initiate of High Sorcery\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"I learn a cantrip and a first level spell from a list depending on my chosen moon. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You've received training from magic-users affiliated with the Mages of High Sorcery.\\n   Choose one of three moons of Krynn, each of which is associated with a distinct type of magic: the black moon, Nuitari; the red moon, Lunitari; or the white moon, Solinari. You learn one cantrip and one 1st-level spell based on the moon you choose, as specified in the Lunar Spells table.\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\\n\\n\" + toUni(\"Lunar Spells\") + \"\\n\" + toUni(\"Moon\") + \"\\t\" + toUni(\"Cantrips\") + \"\\t\\t\" + toUni(\"1st-level Spell\") + \"\\nNuitari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tchill touch, mage\\tspell from the evocation or\\n\\thand, and vicious\\tnecromany school of magic.\\n\\tmockery\\nLunitari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tguidance,\\t\\tspell from the school of\\n\\tmessage, and\\tdivination or transmutation.\\n\\tprestidigitation\\nSolinari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tproduce flame,\\tspell from the abjuration or\\n\\tresistance, and\\tconjuration school of magic.\\n\\tspare the dying\",\r\n\tprerequisite : \"Apprentice of High Sorcery\",\r\n\tchoices : [\"Intelligence - Nuitari\", \"Intelligence - Lunitari\", \"Intelligence - Solinari\", \"Wisdom - Nuitari\", \"Wisdom - Lunitari\", \"Wisdom - Solinari\", \"Charisma - Nuitari\", \"Charisma - Lunitari\", \"Charisma - Solinari\"],\r\n\t// nine choices, one for each ability and moon\r\n\t\"intelligence - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n};\r\nFeatsList[\"adept of the black robes-ua\"] = {\r\n\tname : \"Adept of the Black Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Choose an ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\tdescriptionFull : \"Your ambition and loyalty to the Order of the Black Robes has been recognized, granting you these benefits:\\n\" + toUni(\"Ambitious Magic.\") + \" You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the evocation or necromancy school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Life Channel.\") + \" You can channel your lifeforce into the power of your magic. When a creature you can see within 60 feet fails on a saving throw against a spell you cast, you can expend a number of Hit Dice equal to the level of the spell. Roll a number of Hit Die equal to half the number of Hit Dice expended (rounded up) and the damage the triggering creature takes increases by an amount equal to the total rolled of those dice.\",\r\n\tprerequisite : \"4th-level, Initiate of High Sorcery feat, Any Non-Good Alignment\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1 && !(/good/i).test(What(\"Alignment\")); },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Evoc/Necro spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\nFeatsList[\"adept of the red robes-ua\"] = {\r\n\tname : \"Adept of the Red Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\tdescriptionFull : \"Your pursuit of truth and dedication to maintaining the balance between all things has been recognized by the Order of the Red Robes, granting you these benefits:\\n\" + toUni(\"Insightful Magic.\") + \" You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the divination or transmutation school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Magical Balance.\") + \" When you make an attack roll, an ability check, or a saving throw, and roll a 9 or lower on the d20, you can use your reaction to balance fate and treat the roll as a 10. you can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1; },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Div/Trans spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Div\", \"Trans\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\taction : [[\"reaction\", \"Magical Balance\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\nFeatsList[\"adept of the white robes-ua\"] = {\r\n\tname : \"Adept of the White Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Choose an ability for this spell. When a creature w/in 30 ft takes damage I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the damage by that much + my SC ability mod.\",\r\n\tdescriptionFull : \"Your oath to use magic to make the world a better place has been recognized by the Order of the White Robes, granting you these benefits:\\n\" + toUni(\"Protective Magic.\") + \" You learn one 2nd-level spell of you choice. The 2nd-level spell must be from the abjuration or conjuration school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Protective Ward.\") + \" When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to expend a spell slot and weave protective magic around the target. Roll a number of d4s equal to the level of the spell slot expended and reduce the damage the target takes by the total rolled on those dice + your spellcasting ability modifier.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery feat, Any Non-Evil Alignment\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1 && !(/evil/i).test(What(\"Alignment\")); },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Abjur/Conj spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. When a creature w/in 30 ft takes damage I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the damage by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. When a crea w/in 30 ft takes dmg I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the dmg by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. When a crea w/in 30 ft takes dmg I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the dmg by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\n\r\n// Feat tree for Divinely Favored\r\nFeatsList[\"divinely favored-ua\"] = {\r\n\tname : \"Divinely Favored\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn Thaumaturgy and one 1st-level spell based on my alignment. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spells that use the chosen ability.\",\r\n\tdescriptionFull : \"A god has chosen you to carry a spark of their divine power.\\n   You learn the thaumaturgy cantrip and one 1st-level spell based on the alignment of your character, as specified in the Alignment Spells table.\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\\n\\n\" + toUni(\"Alignment Spells\") + \"\\n\" + toUni(\"Alignment\") + \"   \" + toUni(\"1st-level Spell\") + \"\\nEvil\\t\t Choose one 1st level warlock or wizard spell.\\nGood\\t\t Choose one 1st-level cleric or wizard spell.\\nNeutral\\t\t Choose one 1st-level druid or wizard spell.\\n\\n   In addition, you can use a holy symbol as a spellcasting focus for any spell you cast that uses the spellcasting ability you choose when you select this feat.\",\r\n\tchoices : [\"Intelligence - Good\", \"Intelligence - Neutral\", \"Intelligence - Evil\", \"Wisdom - Good\", \"Wisdom - Neutral\", \"Wisdom - Evil\", \"Charisma - Good\", \"Charisma - Neutral\", \"Charisma - Evil\"],\r\n\t// nine choices, one for each alignment and ability pair\r\n\t\"intelligence - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"divine communications-ua\"] = {\r\n\tname : \"Divine Communications\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. My chosen ability from Divinely Favored is my spellcasting ability for these spells\",\r\n\tdescriptionFull : \"Your connection to your god deepens, granting you these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase the ability score of the spellcasting ability chosen when you gained the Divinely Favored feat by 1, to a maximum of 20.\\n\" + toUni(\"Celestial Tongues.\") + \" You learn to speak, read, and write Celestial, and two other languages of your choice.\\n\" + toUni(\"Divine Omens.\") + \" You can cast the augury and commune spell without a spell slot, and you must finish 1d4 long rests before you can cast it in this way again. You can also cast the spell using the spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gained the Divinely Favored feat.\",\r\n\tprerequisite : \"4th level, Divinely Favored feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"divinely favored-ua\") !== -1; },\r\n\tlanguageProfs : [\"Celestial\", 2],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Augury and Commune\",\r\n\t\tspells : [\"augury\", \"commune\"],\r\n\t\tselection : [\"augury\", \"commune\"],\r\n\t\ttimes : 2\r\n\t}],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\t// extract just the ability from the divinely favored choices\r\n\t\tvar iDvnFav = CurrentFeats.known.indexOf(\"divinely favored-ua\");\r\n\t\tif (iDvnFav !== -1 && CurrentFeats.choices[iDvnFav]) {\r\n\t\t\treturn CurrentFeats.choices[iDvnFav].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iDvnFav].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Intelligence is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Wisdom is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Charisma is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nFeatsList[\"squire of solamnia-ua\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"As a reaction once per long rest when I see another creature 30 ft make a save, I can give them advantage if they can hear and understand me. I gain proficiency with with medium armor and martial weapons. I have advantage on saves to avoid falling off a mount.\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\\n\" + toUni(\"Martial Training.\") + \" You gain proficiency with medium armor and martial weapons.\\n\" + toUni(\"Defensive Rider.\") + \" You have advantage on saving throws made to avoid falling off a mount.\\n\" + toUni(\"Encouraging Rally.\") + \" When another creature you can see within 30 feet of you makes a saving throw, you can use your reaction to inspire them. If the target can hear you and understands you, it gains advantage on the saving throw. Once you use this reaction, you can't do so again until you finish a long rest.\",\r\n\tprerequisite : \"Squireship in the Knights of Solamnia\",\r\n\tarmorProfs : [false, true, false, false],\r\n\tweaponProfs : [false, true],\r\n\tsavetxt : { adv_vs : [\"falling off a mount\"]},\r\n\taction : [[\"reaction\", \"Encouraging Rally (Squire of Solamnia)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Encouraging Rally (Squire of Solamnia)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"knight of the crown-ua\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"When a creature within 30 ft makes an attack roll against another creature within 5 ft, I can use my reaction to grant advantage on the attack roll. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n\" + toUni(\"Tactical Teamwork.\") + \" When a creature you can see within 30 feet of you makes an attack roll against another creature that is within 5 feet of you, you can use your reaction to grant advantage on the attack roll. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\taction : [[\"reaction\", \"Tactical Teamwork (Knight of the Crown)\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the sword-ua\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"I gain proficiency in the chosen ability saving throw. After I or a creature I can see within 30 feet fails an Int, Wis, or Cha save, I can expend a HD. I roll that die and increase the save by that much. Once I change a fail into a success, I can't do so again until a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\\n\" + toUni(\"Disciplined Spirit.\") + \" You gain proficiency in Intelligence, Wisdom, or Charisma saving throws (your choice when you take this feat).\\n\" + toUni(\"Willpower.\") + \" Immediately after you or a creature you can see within 30 feet of you fail an Intelligence, Wisdom, or Charisma saving throw, you can expend a Hit Die. The saving throw increases by an amount equal to a roll of that Hit Die, potentially turning a failure into a success. Once you turn a failed saving throw into a successful one using this feat, you can't do so again until you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tsaves : [\"Int\"]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tsaves : [\"Wis\"]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tsaves : [\"Cha\"]\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the rose-ua\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + the modifier of the score increased by this feat. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase your Constitution or Charisma score by 1, to a maximum of 20.\\n\" + toUni(\"Bolstering Rally.\") + \" When you roll initiative, you can choose up to three other creatures you can see within 30 feet of you. Each creature can gain temporary hit points equal to a roll of your Hit Die + your proficiency bonus + the ability modifier of the ability score increased by this feat. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tscorestxt : \"+1 Constitution or Charisma\",\r\n\tchoices : [\"Constitution\", \"Charisma\"],\r\n\t\"constitution\" : {\r\n\t\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + my Constitution modifier. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + my Charisma modifier. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\n\n// This file adds the content from the Unearthed Arcana 2022: Heroes of Krynn Revisited article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n\r\n// ua_20220425_Heroes-of-Krynn-Revisited.js\r\nSourceList[\"UA:HoKR\"] = {\r\n\tname : \"Unearthed Arcana: Heroes of Krynn Revisited\",\r\n\tabbreviation : \"UA:HoKR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-HeroesofKrynnRevisited.pdf\",\r\n\tdate : \"2022/04/25\"\r\n};\r\n\r\nRaceList[\"kender-ua2\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"UA:HoKR\", 1]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { immune : [\"frightened\"]},\r\n\tskillstxt : \"Choose one from Insight, Investigation, Sleight of Hand, Stealth, or Survival\",\r\n\tabilitySave : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t\"\\n \\u2022 Fearless: I am immune to the frightened condition.\"+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can taunt a creature within 60 ft of me that can hear and understand me. They must make a Wisdom saving throw or have disadvantage on attack rolls not made against me until the start of my next turn. I can do this a number of times per long rest equal to my proficiency bonus. The DC equals 8 + proficiency bonus + Intelligence, Wisdom, or Charisma modifier (one-time choice).\"\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nvar UA_HoKR_KnightlyManeuvers_Notes = function (n) {\r\n\t// Get the name, source, and description from the maneuver of the Battle Master subclass, if that subclass is present\r\n\tif (ClassSubList[\"fighter-battle master\"] && ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"] && ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"][n]) {\r\n\t\tvar sourceObj = ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"][n];\r\n\t} else {\r\n\t\t// Subclass or maneuver not found, thus only add the name\r\n\t\tvar sourceObj = {\r\n\t\t\tname : n.capitalize(),\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tdescription : \"\"\r\n\t\t};\r\n\t}\r\n\treturn {\r\n\t\tname : sourceObj.name,\r\n\t\tsource : sourceObj.source,\r\n\t\tnote : sourceObj.description,\r\n\t\tpage3notes : true,\r\n\t\tadditional : \"Knightly Maneuver\"\r\n\t};\r\n};\r\nFeatsList[\"squire of solamnia-ua2\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"Mounting/dismounting costs a 5-ft move. I learn one Knightly Maneuver: Lunging Attack, Precision Attack, or Pushing Attack. I can change which I know after each long rest. The DC is 8 + Prof B + Str or Dex mod (my choice). I gain Prof Bonus of Superiority Dice (d6) to use with these, regaining them after a long rest.\",\r\n\tcalculate : \"event.value = 'Mounting/dismounting costs a 5-ft move. I learn one Knightly Maneuver: Lunging Attack, Precision Attack, or Pushing Attack. DC is ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Dex Mod')))) + ' (8 + Prof Bonus + Str/Dex mod). I can change which I know after each long rest. I gain Prof Bonus of Superiority Dice (d6) to use with these, regaining them after a long rest.';\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Mount Up\") + \". Mounting or dismounting costs you only 5 feet of movement.\"+\r\n\t\"\\n   \" + toUni(\"Squire Maneuvers\") + \". You learn the Lunging Attack, Precision Attack, or Pushing Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with another one from the list above.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain a number of superiority dice equal to your proficiency bonus. These dice are d6s, and you can use them only with the maneuver you gain from this feat and with any maneuvers you gain from feats that have this feat as a prerequisite. A superiority die is expended when you use it, and you regain all expended superiority dice when you finish a long rest.\",\r\n\tprerequisite : \"Fighter or Paladin Class or Knight of Solamnia Background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.fighter || classes.known.paladin || CurrentBackground.known.indexOf('knight of solamnia') !== -1;\r\n\t},\r\n\tlimfeaname : \"Knightly Superiority Dice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"var total = CurrentFeats.known.indexOf('squire of solamnia-ua2') === -1 ? 0 : Number(How('Proficiency Bonus')); for (var i = 0; i < CurrentFeats.known.length; i++) { var oFeat = FeatsList[CurrentFeats.known[i]]; if (oFeat && oFeat.knightlySuperiority && oFeat.knightlySuperiority.use) { total += oFeat.knightlySuperiority.use; }; }; event.value = total;\", // complex because it works for all feats\r\n\trecovery : \"long rest\",\r\n\tadditional : 'd6',\r\n\tknightlySuperiority : {\r\n\t\tdie : 6,\r\n\t\tprereq : true\r\n\t},\r\n\ttoNotesPage : [\"lunging attack\", \"precision attack\", \"pushing attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the crown-ua2\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Distracting Strike or Goading Attack. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Strength or Dexterity]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength or Dexterity score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Crown Maneuvers\") + \". You learn the Distracting Strike or the Goading Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\ttoNotesPage : [\"distracting strike\", \"goading attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the sword-ua2\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Maneuvering Attack or Menacing Attack. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Sword Maneuvers\") + \". You learn the Maneuvering Attack or the Menacing Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Intelligence, Wisdom, or Charisma\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\ttoNotesPage : [\"maneuvering attack\", \"menacing attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the rose-ua2\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Commander's Strike or Rally. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Constitution or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Rose Maneuvers\") + \". You learn the Commander's Strike or Rally maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Constitution or Charisma\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\taction : [\r\n\t\t[\"bonus action\", \"Commander's Strike (with Attack action)\"],\r\n\t\t[\"bonus action\", \"Rally\"]\r\n\t],\r\n\ttoNotesPage : [\"commander's strike\", \"rally\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\n\n// This file adds the content from the Unearthed Arcana 2022: Giant Options article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n// ua_20220523_Giant-Options.js\r\nSourceList[\"UA:GO\"] = {\r\n\tname : \"Unearthed Arcana: Giant Options\",\r\n\tabbreviation : \"UA:GO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-drjwf73f8n.pdf\",\r\n\tdate : \"2022/05/23\"\r\n};\r\n\r\nAddSubClass(\"barbarian\", \"giant-ua\", {\r\n\tregExpSearch : /^((?=.*(marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n))|((?=.*(warrior|fighter))(?=.*(feral|tribal))))(?=.*giant).*$/i,\r\n\tsubname : \"Path of the Giant\",\r\n\tsubnameShort: \"Giant\",\r\n\tsource : [[\"UA:GO\", 1]],\r\n\tabilitySave : 1,\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Giant Power\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I learn Giant, and the Druidcraft or Thaumaturgy cantrip with Wis as spellcasting ability\"),\r\n\t\t\tlanguageProfs : [\"Giant\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Giant Power\",\r\n\t\t\t\tspells : [\"druidcraft\", \"thaumaturgy\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Giant's Havoc\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"While raging, I add the bonus damage to ranged thrown weapon attacks that use Str,\",\r\n\t\t\t\t\t\"I gain +\" + (n < 14 ? 5 : 10) + \" ft reach, and I become \" + (n < 14 ? 'Large' : 'Huge') + \" along with what I'm wearing, if there is room\"\r\n\t\t\t\t]);\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Cleaver\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"When I rage, I can infuse a weapon I'm holding with acid, cold, fire, thunder, or lightning\",\r\n\t\t\t\t\t\"While raging, its damage type changes to the chosen type and it deals +\" + (n < 14 ? 1 : 2) + \"d6 damage,\",\r\n\t\t\t\t\t\"it gains the thrown (20/60 ft) property, and reappears instantly after a thrown attack\",\r\n\t\t\t\t\t\"As a bonus action, I can change the chosen type; The bonuses only function for me\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \" (change type)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((v.isMeleeWeapon || v.isRangedWeapon) && classes.known.barbarian && classes.known.barbarian.level && /^(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tfields.Damage_Type = \"Varies\";\r\n\t\t\t\t\t\t\tvar isThrownWeapon = /\\bthrown\\b/i.test(v.WeaponText);\r\n\t\t\t\t\t\t\tvar extraDmg = classes.known.barbarian.level < 14 ? '+1d6 damage' : '+2d6 damage';\r\n\t\t\t\t\t\t\tvar extraProp = v.isRangedWeapon && !isThrownWeapon ? 'Thrown (20/60 ft), returning; ' : isThrownWeapon ? 'Returning; ' : 'Thrown, returning; ';\r\n\t\t\t\t\t\t\tvar hasRange = /\\d+ ?(f.{0,2}t|m)/i.test(fields.Range);\r\n\t\t\t\t\t\t\tif (!hasRange) {\r\n\t\t\t\t\t\t\t\tfields.Range += ', 20/60 ft';\r\n\t\t\t\t\t\t\t} else if ((!v.isRangedWeapon || isThrownWeapon) && hasRange) {\r\n\t\t\t\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\t\t\t\tif (rangeNmbr.length === 1) {\r\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[0].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = fields.Range.replace(longRange,\"long_range\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tvar shortRange = Number(rangeNmbr[0].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[1].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\ttempRange = fields.Range;\r\n\t\t\t\t\t\t\t\t\tif (shortRange < 20) tempRange = tempRange.replace(shortRange,\"short_range\");\r\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = tempRange.replace(longRange,\"long_range\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfields.Range = tempRange.replace(\"short_range\", 20).replace(\"long_range\", 60);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + extraProp + extraDmg;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Elemental Cleaver' in a weapon's name, the Elemental Cleaver infused weapon properties will be added to it and its damage type will be set to 'Acid'. Also, my Rage's bonus damage will be added to it if it is a melee weapon that uses Strength.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && fields.Mod === 1 && classes.known.barbarian && classes.known.barbarian.level && /^(?!.*\\brage\\b)(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.barbarian.level < 9 ? 2 : classes.known.barbarian.level < 16 ? 3 : 4;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Mighty Impel\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn \" [DC 8 + Prof Bonus + Str mod]\" + desc([\r\n\t\t\t\t\t\"As a bonus action while raging, I can hurl a \" + (n < 14 ? 'Medium' : 'Large') + \" or smaller creature within my reach\",\r\n\t\t\t\t\t\"I move it to an empty space I can see within 30 ft; Unwilling can save to avoid this\",\r\n\t\t\t\t\t\"If it doesn't end this movement on a surface that can support it, it falls and lands prone\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Demiurgic Colossus\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, my reach increases by 10 ft, and my size can increase to Huge\",\r\n\t\t\t\t\"Mighty Impel works on Large creatures; Elemental Cleaver increases to +2d6 damage\",\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"druid\", \"circle of the primeval-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*(primeval|behemoth)).*$/i,\r\n\tsubname : \"Circle of the Primeval\",\r\n\tsubnameShort: \"Primeval\",\r\n\tsource : [[\"UA:GO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Keeper of Old\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain proficiency in History; I can add d4 to my Intelligence (History) checks\"),\r\n\t\t\tskills : [\"History\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Primeval Companion\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a primeval companion\",\r\n\t\t\t\t\"The companion appears in an empty spot within 30 ft with the appearance of my choice\",\r\n\t\t\t\t\"It vanishes when reduced to 0 hit points, when I die, and when I summon another one\"\r\n\t\t\t]),\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Summon Primeval Companion\"],\r\n\t\t\t\t[\"bonus action\", \"Command Primeval Companion\"]\r\n\t\t\t],\r\n\t\t\tcreaturesAdd : [[\"Primeval Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Primeval Companion\",\r\n\t\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Beast\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [2, 10],\r\n\t\t\t\thdLinked : [\"druid\"],\r\n\t\t\t\tminlevelLinked : [\"druid\"],\r\n\t\t\t\tspeed : \"30 ft\",\r\n\t\t\t\tscores : [15, 15, 17, 6, 12, 8],\r\n\t\t\t\tsaves : [\"\", 4, 5, \"\", \"\", \"\"],\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 11,\r\n\t\t\t\tlanguages : \"Understands the languages of its summoner\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Strike\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 8, \"bludgeoning\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"My choice of bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Primeval Companion\",\r\n\t\t\t\t\tdescription : \"The primeval companion obeys the commands of its summoner and shares its proficiency bonus. It takes its turn immediately after that of its summoner, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its summoner takes a bonus action to command it to take another action. If its summoner is incapacitated, the companion can take any action, not just Dodge. The companion vanishes when it is reduced to 0 hit points, when its summoner summons another companion, or when its summoner dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Intercept attack\",\r\n\t\t\t\t\tdescription : \"As a reaction when a creature the companion can see hits a target within 5 ft of the companion with an attack, the target instead takes half the damage. The companion takes the remainder of the damage\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Prehistoric Conduit (Circle of the Primeval 6)\",\r\n\t\t\t\t\tminlevel : 6,\r\n\t\t\t\t\tdescription : \"Spells cast by the companion's summoner with a range other than self can originate from the companion instead. Also, the companion has advantage on saving throws against spells cast by its summoner. If the companion would normally take half damage on a successful save against these spells, instead, it takes no damage on a success and half and no other effects on a fail.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Titanic Bond (Circle of the Primeval 10)\",\r\n\t\t\t\t\tminlevel : 10,\r\n\t\t\t\t\tdescription : \"The companion's size is now Large and it gains either a swimming or climbing speed equal to its walking speed.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"swim/climb 30 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"swim or climb 30 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvlM = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(10 + drdLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + drdLvl + \" from five times its summoner's druid level (\" + drdLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Prehistoric Conduit\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Spells I cast with the range of touch can originate from my primeval companion\",\r\n\t\t\t\t\"The primeval companion has advantage on saving throws against my spells\",\r\n\t\t\t\t\"If the companion would take half damage on a successful save against a spell I cast,\",\r\n\t\t\t\t\"it instead takes no damage on a success and half damage and no other effects on a fail\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Titanic Bond\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My companion grows to Large; it gains a climb or swim speed equal to its walking speed\",\r\n\t\t\t\t\"When I hit an attack or spell damage a creature I can see, I can have it make a Wis save\",\r\n\t\t\t\t\"If failed, the target is frightened of me until the end of my next turn\",\r\n\t\t\t\t\"I can do this only while my primeval companion is summoned, and only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Scourge of the Ancients\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a bonus action to command my companion, I can expend a spell slot so that:\",\r\n\t\t\t\t\" \\u2022 It becomes Huge if there is room, and gains 10 times the spell slot level in temp HP\",\r\n\t\t\t\t\" \\u2022 On a hit, the companion's Strike deals an extra 1d8 + the spell slot level damage\",\r\n\t\t\t\t\" \\u2022 Its walking (and climbing or swimming) speed increases with 5 ft per spell slot level\",\r\n\t\t\t\t\"These benefits last for 1 hour, until the companion vanishes, or until I use this again\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"wizard\", \"runecrafter-ua\", {\r\n\tregExpSearch : /runecrafting|runecrafter/i,\r\n\tsubname : \"Tradition of Runecrafting\",\r\n\tsubnameShort: \"Runecrafting\",\r\n\tfullname : \"Runecrafter\",\r\n\tsource : [[\"UA:GO\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Runes of Understanding\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I always have Comprehend Languages prepared and can cast it without using a spell slot\",\r\n\t\t\t\t\"It doesn't count against the number of spells I can prepare\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Runes of Understanding\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Runic Empowerment\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell using a spell slot, I can invoke one of the following runes:\",\r\n\t\t\t\t\" \\u2022 Life Rune: Me or a creature I can see within 30 ft gains 5 temp HP per spell slot level\",\r\n\t\t\t\t\" \\u2022 War Rune: A creature I can see within 30 ft is marked until the end of my next turn\",\r\n\t\t\t\t\"   Attack rolls against it gain a bonus equal to half the spell slot level, rounded up\",\r\n\t\t\t\t\" \\u2022 Wind Rune: Until my next turn starts, my speed increases by 5 ft per spell slot level\",\r\n\t\t\t\t\"   Additionally, my movement doesn't provoke opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sigils of Warding\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I fail a Strength, Dexterity, or Constitution save, I can call on a rune\",\r\n\t\t\t\t\"I expend a use of my Runic Empowerment feature and succeed on the save instead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Rune Maven\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I use Arcane Recovery, I also regain uses of Runic Empowerment\",\r\n\t\t\t\t\"I regain a number of uses equal to half my Intelligence modifier, rounded up (min 1)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Engraved Enmity\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 60 ft make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is marked by an enmity rune for 1 min, or until I lose my concentration\",\r\n\t\t\t\t\"A glowing energy mote hovers over the marked and it suffers the following effects:\",\r\n\t\t\t\t\" \\u2022 The marked has disadvantage on saving throws against spells I cast\",\r\n\t\t\t\t\" \\u2022 The glow makes the marked visible even if invisible, and they can't become invisible\",\r\n\t\t\t\t\" \\u2022 When marking and as a bonus action on subsequent turns, I can curse the creature\",\r\n\t\t\t\t\"   The next time an ally hits the cursed with an attack, it also takes 1d8 force damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n/*\tFeats\r\n\tAll the below feats are the work of PoetOfGod and have not been double-checked\r\n\tby Safety-Orange, because the \"Revised\" article \"Wonders of the Multiverse\"\r\n\thas already been published, superseding all these feats with newer versions.\r\n*/\r\nFeatsList[\"elemental touched-ua\"] = {\r\n\tname : \"Elemental Touched\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Planes, granting you a measure of control over the natural world around you. You learn either the druidcraft or thaumaturgy cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you gain this feat).\\n   Whenever you finish a long rest, you can choose which element you are attuned to: Air, Earth, Fire, or Water. Depending on your choice, you can use a bonus action to cause one of the following effects:\"+\r\n\t\"\\n\\n\" + toUni(\"Air\") + \". You gain a fly speed equal to your walking speed until the end of your turn. If you are airborne at the end of your turn after using this movement and aren't held aloft by other means, you fall.\"+\r\n\t\"\\n\" + toUni(\"Earth\") + \". You cause the ground within 30 feet of you to become difficult terrain for 1 minute or until you create this effect again. During that time, you can move across ground that is difficult terrain without spending extra movement.\"+\r\n\t\"\\n\" + toUni(\"Fire\") + \". You surround yourself in a cloud of ash and smoke. Until the end of your turn, your movement doesn't provoke opportunity attacks.\"+\r\n\t\"\\n\" + toUni(\"Water\") + \". You can create a forceful surge of water directed at a creature within 15 feet of you that you can see. The creature must succeed on a Strength saving throw (which it can choose to fail) against a DC equal to 8 + your spellcasting ability modifier + your proficiency bonus or be pushed up to 10 feet away from you. The water vanishes immediately after the creature succeeds or fails.\"+\r\n\t\"\\n\\nYou can create this effect a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I learn druidcraft or thaumaturgy. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Druidcraft\", \"Thaumaturgy\"],\r\n\t\"druidcraft\" : {\r\n\t\tdescription : \"I learn druidcraft. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Touched\",\r\n\t\t\tspells : [\"druidcraft\"],\r\n\t\t\tselection : [\"druidcraft\"]\r\n\t\t}]\r\n\t},\r\n\t\"thaumaturgy\" : {\r\n\t\tdescription : \"I learn thaumaturgy. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Touched\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"]\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"outsized might-ua\"] = {\r\n\tname : \"Outsized Might\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tdescriptionFull : \"You have absorbed primeval magic that allows you, despite your relatively small stature, to embody the might of titanic creatures. This grants you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Little but Mighty\") + \". You gain proficiency in either the Athletics or Acrobatics skill.\"+\r\n\t\"\\n\" + toUni(\"Powerful Build\") + \". You count as one size larger when determining your carrying capacity and the amount you can push, drag, or lift.\"+\r\n\t\"\\n\" + toUni(\"Stalwart\") + \". You have advantage on saving throws against being moved or knocked prone.\",\r\n\tdescription : \"I gain proficiency in Athletics or Acrobatics. I count as one size larger when determining my carrying capacity and the amount I can push, drag, or lift. I have advantage on saving throws against being moved or knocked prone.\",\r\n\tskillstxt : \"Choose Athletics or Acrobatics\",\r\n\tcarryingCapacity : 2,\r\n\tsavetxt : { adv_vs : [\"moved\", \"prone\"]}\r\n};\r\n\r\n// X of the X Giant feats\r\nFeatsList[\"ember of the fire giant-ua\"] = {\r\n\tname : \"Ember of the Fire Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\r\n\t\"\\n\" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace one of your attacks with a magical burst of flame. Each creature of your choice within 15 feet of you that can see you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + your Constitution modifier). On a failed save, a creature takes fire damage equal to 2d6 + your proficiency bonus and is blinded until the start of your next turn; on a successful save, the creature takes half as much damage with no additional effects. You can use your Searing Ignition a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I gain resistance to fire damage. When I take the Attack action on my turn I can use an attack to instead make each creature I choose within 15 ft roll a Dex save DC 8 + Prof + Con mod. On a fail they take 2d6 + Prof Fire dmg, blinded until the start of my next turn. Success halves and no other effect. Prof Uses / LR.\",\r\n\taction : [[\"action\", \"Searing Ignition (as Attack action)\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Fire\"]\r\n};\r\nFeatsList[\"fury of the frost giant-ua\"] = {\r\n\tname : \"Fury of the Frost Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\r\n\t\"\\n\" + toUni(\"Frigid Vengeance\") + \". When a creature hits you with an attack roll, you can use your reaction to retaliate with a burst of magical ire. The creature must succeed on a Wisdom saving throw (DC equals 8 + your proficiency bonus + your Consitution modifier) or be frightened of you until the start of its next turn. You can use your reaction in this way a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I gain resistance to cold damage. When I am hit with an attack roll I can use my reaction to make them roll a Wis save DC 8 + Prof + Con mod. On a failure they are frightened until the start of their next turn. Prof Uses / LR.\",\r\n\taction : [[\"reaction\", \"Frigid Vengeance\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Cold\"]\r\n};\r\nFeatsList[\"guile of the cloud giant-ua\"] = {\r\n\tname : \"Guile of the Cloud Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested the airy speech and magic emblematic of cloud giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Misty Form\") + \". You can cast the blur spell without using a spell slot or material components. When you cast the spell in this way, the spell doesn't require you to maintain concentration on it. Once you cast the spell in this way, you can't do so again until you finish a long rest. You can also cast this spell in the normal way using spell slots you have of appropriate level.\"+\r\n\t\"\\nIntelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat).\"+\r\n\t\"\\n\" + toUni(\"Silver Tongue\") + \". You gain proficiency in either the Deception or Persuasion skill. Your proficiency bonus is doubled for any ability check you make using this skill.\",\r\n\tdescription : \"I gain proficiency and expertise in Deception or Persuasion. Once per long rest I can cast Blur without using a spell slot, material components, or concentration. I can also cast it normally with spell slots.\",\r\n\tskillstxt : \"Choose Deception or Persuasion. You also gain expertise with that skill\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Guile of the Cloud Giant\",\r\n\t\tspells : [\"blur\"],\r\n\t\tselection : [\"blur\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}]\r\n};\r\nFeatsList[\"keenness of the stone giant-ua\"] = {\r\n\tname : \"Keenness of the Stone Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the protection and spellcasting emblematic of stone giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Dreamer's Magic\") + \" You learn the detect thoughts spell and one 1st-level spell of your choice. The 1st-level spell must be from the abjuration or the divination school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level.\"+\r\n\t\"\\nIntelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat).\"+\r\n\t\"\\n\" + toUni(\"Mountain Sight\") + \". You gain darkvision out to a range of 60 feet. If you already have darkvision from another source, its range increases by 30 feet\",\r\n\tdescription : \"I learn detect thoughts and a 1st level Abjur or Div spell. I can cast these without a spell slot once per long rest, or as normal. I gain 60 ft of Darkvision or if I already have darkvision I get an extra 30 feet of Darkvision.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Keenness of the Stone Giant\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}, {\r\n\t\tname : \"1st-level Abjur/Div spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Div\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]]\r\n};\r\nFeatsList[\"soul of the storm giant-ua\"] = {\r\n\tname : \"Soul of the Storm Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested divination abilities and tempest magic emblematic of storm giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself in an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts for 1 minute or until you are incapacitated. While the aura is active, attack rolls against you have disadvantage, and whenever a creature starts its turn within the sphere, you can force the creature's speed to be halved until the start of its next turn. Once you use this bonus action, you can't do so again until you finish a long rest.\"+\r\n\t\"\\n\" + toUni(\"Storm's Oracle\") + \". You can cast the divination spell as a ritual, without needing amterial components.\\n Intelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat). Once you cast the spell in this way, you can't do so again until you finish a long rest.\",\r\n\tdescription : \"I learn Divination and can cast it once per long rest as a ritual without using a spell slot or materials. Once per long rest as a bonus action I create a 10 ft rad that lasts for 1 min or until I am incapacitated. Atks against me have disadv, when creas start their turn in the area I can halve their spd until their next turn.\",\r\n\taction : [[\"bonus action\", \"Maelstrom Aura\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Storm's Oracle\",\r\n\t\tspells : [\"divination\"],\r\n\t\tselection : [\"divination\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"divination\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"vigor of the hill giant-ua\"] = {\r\n\tname : \"Vigor of the Hill Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or knock you prone, you can use your reaction to steady yourself. You are then neither moved nor knocked prone.\"+\r\n\t\"\\n\" + toUni(\"Hearty Health\") + \". When you are subjected to a spell that restores your hit points, you can regain additional hit points equal to your Constitution modifier. You can regain these additional hit points a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"When I would be moved or knocked prone I can use my reaction to not. When I would restore hit points from a spell I can regain an additional Con mod hit points, I can regain hit points this way Prof Uses / LR.\",\r\n\taction : [[\"reaction\", \"Bulwark\"]]\r\n};\r\n\r\n// Rune Carver Apprentice feat tree\r\nFeatsList[\"rune carver apprentice-ua\"] = {\r\n\tname : \"Rune Carver Apprentice\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tdescriptionFull : \"You've begun studying the art of runecraft, which allows you to temporarily mark your items and imbue them with magic.\"+\r\n\t\"\\n   Whenever you finish a long rest, you can mark one nonmagical weapon, armor, piece of clothing, or other object you can touch with a rune of your choice. You temporarily learn one 1st-level spell based on the rune you choose, as specified in the table below, and you know the spell until you finish a long rest, when the rune fades.\"+\r\n\t\"\\n\\n\" + toUni(\"Rune\\tSpell\")+\r\n\t\"\\nBlood\\tFalse life\"+\r\n\t\"\\nCloud\\tFog cloud\"+\r\n\t\"\\nDeath\\tRay of sickness\"+\r\n\t\"\\nDragon\\tChromatic orb\"+\r\n\t\"\\nEnemy\\tBane\"+\r\n\t\"\\nFire\\tBurning hands\"+\r\n\t\"\\nFriend\\tBless\"+\r\n\t\"\\nFrost\\tArmor of Agathys\"+\r\n\t\"\\nHill\\tGoodberry\"+\r\n\t\"\\nJourney\\tLongstrider\"+\r\n\t\"\\nKing\\tCommand\"+\r\n\t\"\\nLight\\tGuiding bolt\"+\r\n\t\"\\nLife\\tCure wounds\"+\r\n\t\"\\nMountain\\tJump\"+\r\n\t\"\\nShield\\tShield\"+\r\n\t\"\\nStone\\tSanctuary\"+\r\n\t\"\\nStorm\\tThunderwave\"+\r\n\t\"\\nWar\\tHeroism\"+\r\n\t\"\\nWind\\tFeather fall\"+\r\n\t\"\\n\\nWhile you are wearing or carrying the rune-marked object, you can cast the chosen spell associated with the rune once without using a spell slot or material components, and you can also cast the spell using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you gain this feat).\",\r\n\tdescription : \"At the end of a long rest, I can mark a nonmagical object I can touch with a rune. I learn a 1st-level spell until I finish a long rest when the rune fades. While wearing or carrying the object I can cast the spell once without using a spell slot or material components, or as normal.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Rune Carver\",\r\n\t\tspells : [\"false life\", \"fog cloud\", \"ray of sickness\", \"chromatic orb\", \"bane\", \"burning hands\", \"bless\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"guiding bolt\", \"cure wounds\", \"jump\", \"shield\", \"sanctuary\", \"thunderwave\", \"heroism\", \"feather fall\"],\r\n\t\tselection : [\"false life\", \"fog cloud\", \"ray of sickness\", \"chromatic orb\", \"bane\", \"burning hands\", \"bless\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"guiding bolt\", \"cure wounds\", \"jump\", \"shield\", \"sanctuary\", \"thunderwave\", \"heroism\", \"feather fall\"],\r\n\t\ttimes : 19,\r\n\t\tfirstCol : \"R\",\r\n\t\tallowUpCasting : true\r\n\t}]\r\n};\r\nFeatsList[\"rune carver adept-ua\"] = {\r\n\tname : \"Rune Carver Adept\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level, Rune Carver Apprentice feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"rune carver apprentice\") !== -1; },\r\n\tdescriptionFull : \"Your skill with the art of runecraft has increased.\\n   Whenever you finish a long rest, you can now mark a number of objects equal to your proficiency bonus with a rune from the Rune Carver Apprentice feat. An object can have only one rune at a time, and you must inscribe a different rune on each object.\",\r\n\tdescription : \"At the end of a long rest, when using the Rune Carver apprentice feat, I can now inscribe a number of objects up to my Proficiency Bonus. Each object can only have one rune, and each rune must be different.\"\r\n};\r\n\n// This file adds the content from the Unearthed Arcana 2022: Wonders of the Multiverse article to MPMB's Character Record Sheet\r\n// ua_20220718_Wonders-of-the-Multiverse.js\r\nSourceList[\"UA:WotM\"] = {\r\n\tname : \"Unearthed Arcana: Wonders of the Multiverse\",\r\n\tabbreviation : \"UA:WotM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-WondersoftheMultiverse.pdf\",\r\n\tdate : \"2022/07/18\"\r\n};\r\n\r\n// Race\r\nRaceList[\"glitchling-ua\"] = {\r\n\tregExpSearch : /glitchling/i,\r\n\tname : \"Glitchling\",\r\n\tsource : [[\"UA:WotM\", 2]],\r\n\tplural : \"Glitchlings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*plating).*$/i,\r\n\t\tname : \"Armored Plating\",\r\n\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\tac : 14,\r\n\t\tselectNow : true\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"balance chaos\" : {\r\n\t\t\tname : \"Balance Chaos\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"vestigial wings\" : {\r\n\t\t\tname : \"Vestigial Wings\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Glitchling (my type is Construct)\"+\r\n\t\"\\n \\u2022 Armored Plating: My base AC is 14 + my Dexterity modifier.\"+\r\n\t\"\\n \\u2022 Living Construct: Life preserving spells that normally don't affect constructs work on me.\" + (typePF ? \" (e.g. Cure Wounds, Spare the Dying).\" : \"\")+\r\n\t\"\\n \\u2022 Ordered Mind: I have adv. on Wis (Insight) checks and on saves against being charmed.\"+\r\n\t\"\\n \\u2022 Balance Chaos: \" + (typePF ? \"My proficiency bonus per long rest, I can treat an attack roll or save roll of 9 or lower as a 10 instead.\" : \"Prof Bonus per long rest, I can treat a save/attack roll below 10 as a 10.\")+\r\n\t\"\\n \\u2022 Vestigial Wings: Prof Bonus per long rest, I can gain a flying speed equal to my walking speed for 1 turn, but fall if I end my turn aloft.\"\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"cleric\", \"fate-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(fate|destiny)).*$/i,\r\n\tsubname : \"Fate Domain\",\r\n\tsource : [[\"UA:WotM\", 2]],\r\n\tspellcastingExtra : [\"dissonant whispers\", \"heroism\", \"see invisibility\", \"warding bond\", \"beacon of hope\", \"clairvoyance\", \"death ward\", \"divination\", \"commune\", \"geas\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Omens and Portents\",\r\n\t\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Augury once per long rest without using a spell slot or requiring components\",\r\n\t\t\t\t\"Once I do, my divination spells have -25% of no/random answer until I finish a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"Augury\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Omens and Portents\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"augury\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Omens and Portents, I can cast Augury once per long rest without expending a spell slot or requiring components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Thies That Bind\",\r\n\t\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically tie my fate to a creature or object I touch for 1 hour\",\r\n\t\t\t\t\"Unwilling creatures can make a Wisdom save to resist; It ends early if I do this again\",\r\n\t\t\t\t\"I know the direction to a bound target's location and the direction of its movement\",\r\n\t\t\t\t\"Once per turn, a spell I cast on the target using a spell slot gets +1d6 damage or healing\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Strands of Fate\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can manipulate the strands of fate for 1 minute while concentrating\",\r\n\t\t\t\t\"As a reaction when a creature I see makes a check or attack, I can impose adv. or disadv.\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (activate)\"], [\"reaction\", \" (if active)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Insightful Striking\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain a brief vision of the defenses of a creature I see within 30 ft\",\r\n\t\t\t\t\"Until the end of my next turn, I gain one of the following effects:\",\r\n\t\t\t\t\" \\u2022 I add 1d6 to my next attack roll against the target \",\r\n\t\t\t\t\" \\u2022 The target subtracts 1d6 from the next saving throw it makes against a spell I cast\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Visions of the Future\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\"Once per long rest, I can cast Foresight without a spell slot with a duration of 1 minute\"]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tlimfeaname : \"Visions of the Future (Foresight)\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Visions of the Future\",\r\n\t\t\t\tspells : [\"foresight\"],\r\n\t\t\t\tselection : [\"foresight\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"foresight\" : {\r\n\t\t\t\t\tduration : \"1 min\",\r\n\t\t\t\t\tchanges : \"Using Visions of the Future, I can cast Foresight once per long rest without expending a spell slot; when I cast the spell in this way, the spell's duration is 1 minute for that casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds, first those not reprinted exactly as in this UA\r\nBackgroundList[\"giant foundling-ua\"] = {\r\n\tregExpSearch : /^(?=.*giant)(?=.*foundling).*$/i,\r\n\tname : \"Giant Foundling\",\r\n\tsource : [[\"UA:WotM\", 4]],\r\n\tskills : [\"Intimidation\", \"Survival\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Backpack\", \"\", 5],\r\n\t\t[\"Small stone/sprig reminding of home\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Strike of the Giants\",\r\n\ttrait : [\r\n\t\t\"What I lack in stature, I make up for with sheer spite.\",\r\n\t\t\"Sometimes size does matter, okay? If I see a beast bigger than me, I'm immediately running away.\",\r\n\t\t\"Crowded spaces make me uncomfortable. I'd much rather be in a wide-open field than a bustling tavern.\",\r\n\t\t\"I like being small. It helps me stay unnoticed\\u2014and underestimated.\",\r\n\t\t\"Size is just half the story. Every avalanche begins as a single pebble.\",\r\n\t\t\"The world always feels too big, and I'm afraid I'll never find my place in it.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Origin Story\",\r\n\t\t\"Found as a baby\" + (typePF ? \"\": \" by nomadic giants\"),\r\n\t\t\"Rescued from mountain crag\" + (typePF ? \"\": \" by stone giants\"),\r\n\t\t\"Found as a child lost in a jungle\" + (typePF ? \"\": \" by a frost giant\"),\r\n\t\t\"Home/family killed by warring giants\"\r\n\t]\r\n};\r\nBackgroundList[\"planar philosopher-ua\"] = {\r\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher).*$/i,\r\n\tname : \"Planar Philosopher\",\r\n\tsource : [[\"UA:WotM\", 4]],\r\n\tskills : [\"Arcana\", \"Persuasion\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Conviction\",\r\n\ttrait : [\r\n\t\t\"I don't venerate any gods; we can be as powerful or greater than them.\",\r\n\t\t\"Experience is everything, live in the moment.\",\r\n\t\t\"When things crumble, I find meaning in the ashes.\",\r\n\t\t\"Life thrives through order; I won't tolerate disruptions.\",\r\n\t\t\"When others make plans, the multiverse laughs and so do I.\",\r\n\t\t\"I know what's right, and no one will stand in my way.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Trinket\",\r\n\t\t\"Inscribed locket with image of mentor\",\r\n\t\t\"Bleached rat skull with glass eyes\",\r\n\t\t\"Torn parchment with half a puzzle\",\r\n\t\t\"Bracelet of twisted razorvine stems\",\r\n\t\t\"Fragment of verdigris bronze blade\",\r\n\t\t\"Smooth stone with holy symbols\"\r\n\t]\r\n};\r\nBackgroundList[\"rune carver-ua\"] = {\r\n\tregExpSearch : /^(?=.*rune)(?=.*carver).*$/i,\r\n\tname : \"Rune Carver\",\r\n\tsource : [[\"UA:WotM\", 5]],\r\n\tskills : [\"History\", \"Perception\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [\"Giant\", 1],\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5],\r\n\t\t[\"Whetstone\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Rune Carver Apprentice\",\r\n\ttrait : [\r\n\t\t\"Is it practical to learn an ancient language that is rarely used in everyday speech? No. But is it fun? Very.\",\r\n\t\t\"I learned one of my ancestors was a lauded rune carver whose story was lost to time. I seek to rekindle that legacy.\",\r\n\t\t\"The old, traditional markings of runecraft look so boring. Why not give your runes some flair?\",\r\n\t\t\"In my studies of runes, I strive to understand how great civilizations of the past fell, so that I may prevent it from happening to societies of the present.\",\r\n\t\t\"Life may be a whirlwind of chaos around me, but whenever I create my runes, I feel at peace.\",\r\n\t\t\"My brain struggles to process ink words written on paper, but the tactile feeling of carved runes makes my mind sing.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Rune Style\",\r\n\t\t\"Use fine metal needle to inscribe\",\r\n\t\t\"On small wooden figurines\",\r\n\t\t\"On glass beads in necklace/bracelet\",\r\n\t\t\"Stitched into the hems of clothing\",\r\n\t\t\"Carved on set of animal bones\",\r\n\t\t\"Drawn into candles\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"rune carver apprentice\"] = {\r\n\tdescription : \"I've dedicated my life to studying the practice of runecraft. Whether I was personally taught by a master rune carver or learned by poring over engravings in ancient ruins, I understand how to tap into the supernatural power held within runes. Also, I gain the Rune Carver Apprentice feat.\",\r\n\tsource : [[\"UA:WotM\", 5]],\r\n\tfeatsAdd: [\"Rune Carver Apprentice\"],\r\n};\r\n\r\n// Then the backgrounds that haven't been altered in the book\r\n// Feats\r\nFeatsList[\"cartomancer-ua\"] = {\r\n\tname : \"Cartomancer\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : 'I can use a deck of cards as a spellcasting focus. When doing so, Prof Bonus per long rest I can add +1d4 to the damage of one target of a spell I cast. I know Prestidigitation and can also cast it to do stage magic, concealing its components. When I finish a long rest, I can store a spell into a card, see \"Hidden Ace\" notes.',\r\n\tdescriptionFull : \"You have learned to channel your magic through a deck of playing cards, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Card Focus\") + \". You can use a deck of cards as your spellcasting focus. When you use the deck as a focus to cast a spell that deals damage, roll a d4. You gain a bonus to one damage roll of the spell equal to the number rolled. This bonus applies to one creature of your choice that you can see damaged by the spell; you can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses of it when you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Card Tricks\") + \". You learn the prestidigitation cantrip and can use it to create illusions that duplicate the effects of stage magic. When you use prestidigitation in this way, you can conceal the verbal and somatic components of the spell as mundane conversation and card-handling.\"+\r\n\t\"\\n   \" + toUni(\"Hidden Ace\") + \". When you finish a long rest, you can choose one spell you know and imbue it into a card; the chosen spell must have a casting time of 1 action, and its level must be less than or equal to your proficiency bonus. While the card is imbued with the spell, you can use your bonus action to flourish the card and cast the spell within. The card then immediately loses its magic.\",\r\n\tprerequisite : \"4th-level; Sorcerer, Warlock, or Wizard Class\",\r\n\tprereqeval : function (v) {\r\n\t\treturn v.characterLevel >= 4 && (classes.known.wizard || classes.known.warlock || classes.known.sorcerer);\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Cartomancer (+1d4 spell damage)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"Hidden Ace (use imbued card)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hidden Ace\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"Whenever I finish a long rest, I can imbue a spell I know into a card until I flourish the card\",\r\n\t\t\t\"The spell must have a casting time of 1 action and a level no more than my Prof Bonus\",\r\n\t\t\t\"As a bonus action, I can flourish the card to cast the stored spell, ousting it from the card\"\r\n\t\t]\r\n\t}]\r\n};\r\n\r\n// Scion of the Outer Planes feat tree\r\nFeatsList[\"scion of the outer planes-ua\"] = {\r\n\tname : \"Scion of the Outer Planes\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I can select a plane and gain resistance to a damage type and learn a cantrip associated with that plane. I can cast the cantrip without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You are influenced by and adept at navigating planar pathways and the strange realities of the Outer Planes.\"+\r\n\t\"\\n   Whether planar essence infuses you or you have extraplanar ancestry, your connection to a plane infuses you with the energies found there. Choose a type of plane listed in the table below. Your choice gives you resistance to a damage type and the ability to cast a cantrip, as specified in the table. You can cast this cantrip without material components, and your spellcasting ability for it is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\ttoUni(\"\\n\\nPlane\\t\\tResistance\\tCantrip\")+\r\n\t\"\\nAstral\\t\\tPsychic\\t\\tMessage\"+\r\n\t\"\\nChaotic Outer\\tNecrotic\\t\\tMinor Illusion\"+\r\n\t\"\\nEvil Outer  \\tNecrotic\\t\\tChill Touch\"+\r\n\t\"\\nGood Outer  \\tRadiant\\t\\tSacred Flame\"+\r\n\t\"\\nLawful Outer\\tRadiant\\t\\tGuidance\"+\r\n\t\"\\nThe Outlands\\tPsychic\\t\\tMage Hand\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tchoices : ['Astral Plane (Psychic, Message)', 'Chaotic Outer Plane (Necrotic, Minor Illusion)', 'Evil Outer Plane (Necrotic, Chill Touch)', 'Good Outer Plane (Radiant, Sacred Flame)', 'Lawful Outer Plane (Radiant, Guidance)', 'The Outlands (Psychic, Mage Hand)'],\r\n\t'astral plane (psychic, message)' : {\r\n\t\tname : \"Scion of the Outer Planes (Astral Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to the astral plane gives me resistance to psychic damage and I know the Message cantrip, which I can cast without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Astral Plane\",\r\n\t\t\tspell : [\"message\"],\r\n\t\t\tselection : [\"message\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Psychic\"],\r\n\t\tspellChanges : {\r\n\t\t\t\"message\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Message without material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t'chaotic outer plane (necrotic, minor illusion)' : {\r\n\t\tname : \"Scion of the Outer Planes (Chaotic Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to a chaotic outer plane gives me resistance to necrotic damage and I know the Minor Illusion cantrip, which requires no material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Chaotic Outer Plane\",\r\n\t\t\tspells : [\"minor illusion\"],\r\n\t\t\tselection : [\"minor illusion\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Necrotic\"],\r\n\t\tspellChanges : {\r\n\t\t\t\"minor illusion\" : {\r\n\t\t\t\tcomponents : \"S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Minor Illusion without material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t'evil outer plane (necrotic, chill touch)' : {\r\n\t\tname : \"Scion of the Outer Planes (Evil Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an evil outer plane. This connection gives me resistance to necrotic damage and I know the Chill Touch cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Evil Outer Plane\",\r\n\t\t\tspells : [\"chill touch\"],\r\n\t\t\tselection : [\"chill touch\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Necrotic\"]\r\n\t},\r\n\t'good outer plane (radiant, sacred flame)' : {\r\n\t\tname : \"Scion of the Outer Planes (Good Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an good outer plane. This connection gives me resistance to radiant damage and I know the Sacred Flame cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Good Outer Plane\",\r\n\t\t\tspells : [\"sacred flame\"],\r\n\t\t\tselection : [\"sacred flame\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Radiant\"]\r\n\t},\r\n\t'lawful outer plane (radiant, guidance)' : {\r\n\t\tname : \"Scion of the Outer Planes (Lawful Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an lawful outer plane. This connection gives me resistance to radiant damage and I know the Guidance cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lawful Outer Plane\",\r\n\t\t\tspells : [\"guidance\"],\r\n\t\t\tselection : [\"guidance\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Radiant\"]\r\n\t},\r\n\t'the outlands (psychic, mage hand)' : {\r\n\t\tname : \"Scion of the Outer Planes (The Outlands)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from a plane of the outlands. This gives me resistance to psychic damage and I know the Mage Hand cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"The Outlands\",\r\n\t\t\tspells : [\"mage hand\"],\r\n\t\t\tselection : [\"mage hand\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Psychic\"]\r\n\t}\r\n};\r\nFeatsList[\"agent of order-ua\"] = {\r\n\tname : \"Agent of Order\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save (DC 8 + Prof Bonus + the modifier of the ability score increased by this feat) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest.\",\r\n\tdescriptionFull : \"You can channel cosmic forces of order that lock the multiverse into patterns. Your actions are your own to choose, but these forces grant you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Stasis Strike\") + \". Once per turn when you damage a creature you can see within 60 feet of yourself, you can deal an extra 1d8 force damage to the target, and it must succeed on a Wisdom saving throw (DC equal to 8 + your proficiency bonus + the modifier of the ability score increased by this feat) or be restrained by spectral bindings until the start of your next turn. These bindings manifest as chains, gears, encasing stone, or some other symbol of stasis. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Lawful Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'lawful outer plane (radiant, guidance)';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof Bonus + Str mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Strength]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Dex Mod'))) + ' (8 + Prof Bonus + Dex mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Dexterity]';\",\r\n\t\tscores : [0, 1, 0, 0, 0, 0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof Bonus + Con mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Constitution]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Intelligence]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Wisdom]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Charisma]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"baleful scion-ua\"] = {\r\n\tname : \"Baleful Scion\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"Once per turn, when I hit a creature with a melee weapon attack, I can also deal 1d6 + my Proficiency Bonus necrotic damage to it. I then regain a number of hit points equal to this necrotic damage dealt. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel cosmic forces of evil that cause pain but invigorate your being. You can choose your own actions despite this malign connection. You gain the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Life-Draining Grasp\") + \". Once per turn, when you hit a creature with a melee weapon attack, you can also deal necrotic damage to it. The damage equals 1d6 + your proficiency bonus, and you regain a number of hit points equal to this necrotic damage dealt. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Evil Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'evil outer plane (necrotic, chill touch)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"cohort of chaos-ua\"] = {\r\n\tname : \"Cohort of Chaos\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"When I roll a 1 or a 20 on an attack roll or save, a the magic of chaos flares up and I roll on the Chaotic Flare table to determine what happens (see notes for table). As a bonus action, my Proficiency Bonus per long rest, I can force a flare to happen. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel the cosmic forces of chaos that drive the multiverse toward both freedom and disarray. Your actions are still yours to choose, but you gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Chaotic Flare\") + \". When you roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through you. Roll on the table below to determine what happens. A flare lasts until the end of your next turn, and a new flare can't occur until after the first flare ends.\"+\r\n\ttoUni(\"\\n\\nd4\\tFlare\")+\r\n\t\"\\n  1\\tDisruption Field: Waves of energy ripple in a 10-foot sphere centered on you. Every creature other than you that starts its turn in that area, or that moves into that area for the first time on a turn, takes 1d8 force damage.\"+\r\n\t\"\\n  2\\tBattle Fury: A creature of your choice that you can see is filled with reckless fury. The creature has advantage on attack rolls and disadvantage on ability checks.\"+\r\n\t\"\\n  3\\tUnbound: When you move, you can use some or all of your walking speed to teleport once, along with any equipment you're wearing or carrying, up to the distance used to an unoccupied space that you can see.\"+\r\n\t\"\\n  4\\tWailing Winds: Howling winds swirl around you in a 60-foot radius. You and any creature in that radius has disadvantage on Wisdom saving throws.\"+\r\n\t\"\\n\\n   You can also forcibly release a chaotic flare as a bonus action, rolling on the table as normal to determine the effects. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Chaotic Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'chaotic outer plane (necrotic, minor illusion)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tadditional : \"force flare\",\r\n\taction : [[\"bonus action\", \" (force flare)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Chaotic Flare Table\",\r\n\t\tnote : [\r\n\t\t\t\"When I roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through me. I roll on the table below to determine what happens. A flare lasts until the end of my next turn, and a new flare can't occur until after the first flare ends.\",\r\n\t\t\t\"As a bonus action, I can forcibly release a chaotic flare, rolling on the table as normal to determine the effects. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when you finish a long rest.\",\r\n\t\t\t\"\\n d4  Flare\",\r\n\t\t\t\"1  Disruption Field: Waves of energy ripple in a 10-ft sphere centered on me. Every creature other than me that starts its turn in that area, or that moves into that area for the first time on a turn, takes 1d8 force damage.\",\r\n\t\t\t\"2  Battle Fury: A creature of my choice that I can see is filled with reckless fury. The creature has advantage on attack rolls and disadvantage on ability checks.\",\r\n\t\t\t\"3  Unbound: When I move, I can use some or all of my walking speed to teleport once, along with any equipment I'm wearing or carrying, up to the distance used to an unoccupied space that I can see.\",\r\n\t\t\t\"4  Wailing Winds: Howling winds swirl around me in a 60-ft radius. I and any creature in that radius have disadvantage on Wisdom saving throws.\"\r\n\t\t]\r\n\t}]\r\n};\r\nFeatsList[\"outlands envoy-ua\"] = {\r\n\tname : \"Outlands Envoy\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I can cast Misty Step and Tongues each once per long rest without requiring a spell slot or material components. I can also cast them using a spell slot as normal. My spellcasting ability for these spells is the same as the one for the Scion of the Outer Planes feat. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You have spent significant time in Sigil or elsewhere in the Outlands, the crossroads of the multiverse. Being steeped in converging planar energies grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Crossroads Emissary\") + \". You learn the misty step and tongues spells. You can cast each spell once using this feat without a spell slot, and you must finish a long rest before you can cast that spell in this way again. When you cast tongues using this feat, you require no material components. You can also cast these spells using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gained the Scion of the Outer Planes feat.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes-ua\") !== -1;\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tspellcastingAbility : \"scion of the outer planes-ua\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Crossroads Emissary\",\r\n\t\tspells : [\"misty step\", \"tongues\"],\r\n\t\tselection : [\"misty step\", \"tongues\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"tongues\" : {\r\n\t\t\tcomponents : SpellsList.tongues.components.replace(\"M\", \"M*\"),\r\n\t\t\tcompMaterial : \"When using a spell slot: \"+SpellsList.tongues.compMaterial,\r\n\t\t\tchanges : \"Using Outlands Envoy, I can cast Tongues once per long rest without expending a spell slot or requiring material components.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"planar wanderer-ua\"] = {\r\n\tname : \"Planar Wanderer\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"After each long rest, I can gain acid, cold, or fire resistance, that lasts until my next long rest ends. I know the direction to the last portal I used while on the same plane as it. As an action, I can try to open or close a portal (portal cracker). As an action once per long rest, I can detect portals (portal sense). See notes.\",\r\n\tdescriptionFull : \"You can draw on the forces of the multiverse to survive cosmic extremes and to traverse its infinite realms. You gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Planar Adaptation\") + \". When you finish a long rest, you gain resistance to either acid, cold, or fire damage (your choice) until you finish your next long rest.\"+\r\n\t\"\\n   \" + toUni(\"Portal Cracker\") + \". Your experience with portals allows you to operate them without the proper portal key. As an action, you can concentrate on a portal you're aware of that is within 5 feet of you and make a DC 20 Wisdom (Survival) check. On a failure, you take 3d8 force damage and you can't use this feature on that portal again until you finish a long rest. On a success, you can force the portal open or closed for 1 hour. For that duration, a portal closed in this way doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"+\r\n\t\"\\n   \" + toUni(\"Portal Sense\") + \". You know the direction to the last planar portal you used while you and the portal are on the same plane. Moreover, as an action, you can detect the location of any portals within 30 feet of you that aren't behind total cover. Once you detect a portal with this action, you can't use the action again until you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes-ua\") !== -1;\r\n\t},\r\n\tdmgres : [\"Acid/Cold/Fire\"],\r\n\taction : [[\"action\", \" (Portal Cracker)\"], [\"action\", \" (Portal Sense)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tadditional : \"Portal Sense\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Portal Cracker\",\r\n\t\tnote : [\r\n\t\t\t\"My experience with portals allows me to operate them without the proper portal key.\",\r\n\t\t\t\"As an action, I can concentrate on a portal I'm aware of that is within 5 ft of me and make a DC 20 Wisdom (Survival) check.\",\r\n\t\t\t\"On a failure, I take 3d8 force damage and I can't use this feature on that portal again until I finish a long rest.\",\r\n\t\t\t\"On a success, I can force the portal open or closed for 1 hour. For that duration, a portal closed in this way doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"\r\n\t\t]\r\n\t}, {\r\n\t\tname : \"Portal Sense\",\r\n\t\tadditional : \"1\\xD7 per long rest\",\r\n\t\tnote : [\r\n\t\t\t\"I know the direction to the last planar portal I used while I and the portal are on the same plane.\",\r\n\t\t\t\"As an action, I can detect the location of any portals within 30 ft of me that aren't behind total cover.\",\r\n\t\t\t\"Once I detect a portal with this action, I can't use the action again until I finish a long rest.\"\r\n\t\t],\r\n\t\tamendTo : \"Portal Cracker\"\r\n\t}]\r\n};\r\nFeatsList[\"righteous heritor-ua\"] = {\r\n\tname : \"Righteous Heritor\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce the damage taken by 1d10 + my Proficiency Bonus. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel the cosmic forces of good that foster serenity and fellowship. You are still free to choose your own actions, but gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Soothe Pain\") + \". When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to dull its suffering and reduce the damage it takes by 1d10 + your proficiency bonus. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Good Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'good outer plane (radiant, sacred flame)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\n\r\n// Strike of the Giants feat tree\r\nFeatsList[\"strike of the giants-ua\"] = {\r\n\tname : \"Strike of the Giants\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"As a bonus action, I can call on the power of my giant magic to imbue my attacks with additional power. The next time I hit a target with a melee or thrown weapon attack within the next minute, the attack has an additional effect depending on the origin of my giant magic (hill, stone, frost, fire, cloud or storm).\",\r\n\tdescriptionFull : \"You have absorbed primeval magic that gives you an echo of the might of giants. Choose one of the kinds of giants listed below. As a bonus action, you can call on the power of your giant magic to imbue your attacks with additional power. The next time you hit a target with a melee or thrown weapon attack within the next minute, the attack has an additional effect depending on the origin of your giant magic:\"+\r\n\tdesc([\r\n\t\ttoUni(\"Hill Giant\") + \". The target takes an extra 1d6 damage of the weapon's type. If the target is a creature, it must succeed on a Strength saving throw or be knocked prone.\",\r\n\t\ttoUni(\"Stone Giant\") + \". The target takes an extra 1d6 force damage. If the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet away from you in a straight line.\",\r\n\t\ttoUni(\"Frost Giant\") + \". The target takes an extra 1d6 cold damage. If the target is a creature, it must succeed on a Constitution saving throw, or its speed is reduced to 0 until the start of your next turn.\",\r\n\t\ttoUni(\"Fire Giant\") + \". The target takes an extra 1d8 fire damage.\",\r\n\t\ttoUni(\"Cloud Giant\") + \". The target takes an extra 1d4 thunder damage. If the target is a creature, it must succeed on a Wisdom saving throw, or you become invisible to it until the start of your next turn.\",\r\n\t\ttoUni(\"Storm Giant\") + \". The target takes an extra 1d6 lightning damage. If the target is a creature, it must succeed on a Constitution saving throw, or it has disadvantage on attack rolls until the start of your next turn.\\n\",\r\n\t\t\"The saving throw DC for these effects equals 8 + your proficiency bonus + your Strength or Constitution modifier.\",\r\n\t\t\"You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\"\r\n\t]),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Hill Giant\", \"Stone Giant\", \"Frost Giant\", \"Fire Giant\", \"Cloud Giant\", \"Storm Giant\"],\r\n\t\"hill giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of hill giants. The next time I hit with a melee or thrown weapon attack within the next minute, it deals +1d6 damage and if the target is a creature, it must make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or be knocked prone.';\"\r\n\t},\r\n\t\"stone giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of stone giants. My next hit in the next minute with a melee or thrown weapon attack deals +1d6 force damage and the target must make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or be pushed 10 ft away from me in a straight line.';\"\r\n\t},\r\n\t\"frost giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of frost giants. The next hit with my melee or thrown weapon attack within 1 minute deals +1d6 cold damage, and if the target is a creature, it must make a Con save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or its speed is 0 until my next turn starts.';\"\r\n\t},\r\n\t\"fire giant\" : {\r\n\t\tdescription : \"I have absorbed primeval magic that gives me an echo of the might of fire giants. As a bonus action, I can call on this power and the next time I hit a target with a melee or thrown weapon attack within the next minute, that attack deals +1d8 fire damage. I can do this my Proficiency Bonus per long rest.\"\r\n\t},\r\n\t\"cloud giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of cloud giants. My next hit within 1 minute with a melee or thrown weapon attack deals +1d4 thunder damage, and the target must make a Wisdom save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or I become invisible to it until my next turn starts.';\"\r\n\t},\r\n\t\"storm giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of storm giants. My next hit within 1 minute with a melee or thrown weapon attack deals +1d6 lightning damage, and the target must make a Con save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or it has disadv. on attack rolls until my next turn starts.';\"\r\n\t}\r\n};\r\nFeatsList[\"ember of the fire giant-ua2\"] = {\r\n\tname : \"Fury of the Fire Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+Prof Bonus fire damage & are blinded until my next turn starts. Dex save (8 + Prof B. + Str/Con/Wis mod) for half damage & not blinded.\",\r\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\r\n\t\"\\n   \" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace a single attack with a magical burst of flame. Each creature of your choice within 15 feet of you that can see you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, a creature takes fire damage equal to 1d8 + your proficiency bonus, and it is blinded until the start of your next turn. On a successful save, the creature takes half as much damage and isn't blinded. You can use your Searing Ignition a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Fire Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'fire giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Fire\"],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) for half damage \\u0026 not blinded. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 1,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B.+ Con mod) for half damage \\u0026 not blinded. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 3,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) for half damage \\u0026 not blinded. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 5,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"fury of the frost giant-ua2\"] = {\r\n\tname : \"Fury of the Frost Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Con save (DC 8 + Prof B. + Str/Con/Wis mod) or take 1d8 + Prof Bonus  cold damage and have its speed reduced by half until my next turn ends.\",\r\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\r\n\t\"\\n   \" + toUni(\"Frigid Retaliation\") + \". Immediately after a creature you can see within 30 feet of you hits you with an attack roll and deals damage, you can use your reaction to retaliate with a conjured blast of ice. The creature must make a Constitution saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, it takes 1d8 + your proficiency bonus cold damage, and its speed is halved until the end of its next turn. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Frost Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'frost giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Cold\"],\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof Bonus) cold damage and have its speed reduced by half until my next turn ends. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B. + Con mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) cold damage and have its speed reduced by half until my next turn ends. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof Bonus) cold damage and have its speed reduced by half until my next turn ends. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t}\r\n};\r\nFeatsList[\"guile of the cloud giant-ua2\"] = {\r\n\tname : \"Guile of the Cloud Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"As a reaction when a creature I can see hits me with an attack roll, I can give myself resistance to that attack's damage. I then teleport to an unoccupied space that I can see within 30 ft. I can do this a number of times equal to half my Proficiency Bonus (rounded up) per long rest. [+1 Dex, Con, or Cha]\",\r\n\tdescriptionFull : \"You've manifested the airy speech and magic emblematic of cloud giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Cloudy Escape\") + \". When a creature you can see hits you with an attack roll, you can use your reaction to give yourself resistance to that attack's damage. You then teleport to an unoccupied space that you can see within 30 feet of yourself. You can use this reaction a number of times equal to half your proficiency bonus (rounded up), and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Cloud Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'cloud giant';\r\n\t},\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\tusages : \"Half proficiency bonus (rounded up) per \",\r\n\tusagescalc : \"event.value = Math.ceil(Number(How('Proficiency Bonus'))/2);\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"keenness of the stone giant-ua2\"] = {\r\n\tname : \"Keenness of the Stone Giant\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, 60/180 ft, 1d10 bludgeoning damage. Target hit must make a Str save DC 10 (8 + Prof B. + Str/Con/Wis mod) or be knocked prone.\",\r\n\tdescriptionFull : \"You've manifested the physical talents emblematic of stone giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Stone Throw\") + \". As a bonus action, you can touch a rock that can fit in the palm of your hand and imbue it with magic. While the rock is imbued with magic and you are wielding it, the rock is a magic ranged weapon with which you're proficient, and it has the thrown property with a normal range of 60 feet and a long range of 180 feet. On a hit, the rock deals 1d10 bludgeoning damage, and if the target is a creature, it must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat) or be knocked prone. The magic remains in the rock until you hit with it or finish a long rest. You can imbue a number of rocks equal to your proficiency bonus with this bonus action, and you regain all expended uses when you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Cavernous Sight\") + \". You gain darkvision out to a range of 60 feet. If you already have darkvision from another source, its range increases by 60 feet.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Stone Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'stone giant';\r\n\t},\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tadditional : \"Imbue Stone\",\r\n\taction : [[\"bonus action\", \" (Imbue Stone)\"]],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) or be knocked prone. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 1,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tisMagicWeapon : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B. + Con mod) or be knocked prone. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 3,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) or be knocked prone. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 5,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"soul of the storm giant-ua2\"] = {\r\n\tname : \"Soul of the Storm Giant\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save (DC 8 + Prof Bonus + Int/Wis/Cha mod) or halve its speed until my next turn starts.\",\r\n\tdescriptionFull : \"You've manifested divination abilities and tempest magic emblematic of storm giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself in an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts until the start of your next turn or until you are incapacitated. While the aura is active, attack rolls against you have disadvantage, and whenever a creature starts its turn within the aura, you can force the creature to make a Strength saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the creature's speed is halved until the start of its next turn. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Storm Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'storm giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"action\", \"\"]],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or halve its speed until my next turn starts. [+1 Int]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or halve its speed until my next turn starts. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or halve its speed until my next turn starts. [+1 Cha]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"vigor of the hill giant-ua2\"] = {\r\n\tname : \"Vigor of the Hill Giant\",\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tdescription : \"When I'm subjected to an effect that would move me at least 5 ft or knock me prone, I can use my reaction to steady myself and stop this from happening. Whenever I eat food as part of a short rest and spend one or more HD to regain HP, I regain additional HP equal to my Con mod + my Proficiency Bonus. [+1 Con]\",\r\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or knock you prone, you can use your reaction to steady yourself. You are then neither moved nor knocked prone.\"+\r\n\t\"\\n   \" + toUni(\"Iron Stomach\") + \". Whenever you eat food as part of a short rest and spend one or more Hit Dice to regain hit points, you regain additional hit points equal to your Constitution modifier + your proficiency bonus.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Hill Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'hill giant';\r\n\t},\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\n\r\n// Rune Carver Apprentice feat tree\r\nFeatsList[\"rune carver apprentice-ua2\"] = {\r\n\tname : \"Rune Carver Apprentice\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know Comprehend Languages and cast it once per long rest without a spell slot. I know two runes, which I can inscribe and use to cast their associated spell once per long rest without a spell slot or material components. I can also cast all three spells with spell slots as normal. See notes page.\",\r\n\tdescriptionFull : \"You've begun studying the art of runecraft.\" + desc([\r\n\t\t\"You learn the comprehend languages spell. You can cast this spell without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using any spell slots you have.\",\r\n\t\t\"You know two runes of your choice from the Rune Spells table. Whenever you finish a long rest, you can mark one nonmagical weapon, armor, piece of clothing, or other object you touch with a rune you know. You temporarily learn one 1st-level spell based on the rune you inscribed, as specified in the Rune Spells table, and you know the spell until you finish a long rest, when the rune fades.\\n\",\r\n\t\ttoUni(\"Rune\\t\\tSpell\"),\r\n\t\t\"Death\\t\\tRay of sickness\",\r\n\t\t\"Dragon\\t\\tChromatic orb\",\r\n\t\t\"Enemy\\t\\tDisguise self\",\r\n\t\t\"Friend\\t\\tSpeak with animals\",\r\n\t\t\"Journey   \\tLongstrider\",\r\n\t\t\"King\\t\\tCommand\",\r\n\t\t\"Mountain\\tEntangle\",\r\n\t\t\"Sacred\\t\\tSanctuary\\n\",\r\n\t\t\"While you are wearing or carrying the rune-marked object, you can cast the spell associated with the chosen rune once without using a spell slot or material components, and you can also cast the spell using any spell slots you have.\",\r\n\t\t\"Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\t\t\"Each time you gain a level, you can replace one of the runes you know with a different one from the Rune Spells table.\"\r\n\t]),\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"comprehend languages\"],\r\n\t\tselection : [\"comprehend languages\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"Select Rune Spell\",\r\n\t\tspells : [\"ray of sickness\", \"chromatic orb\", \"disguise self\", \"speak with animals\", \"longstrider\", \"command\", \"entangle\", \"sanctuary\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : 2,\r\n\t\tallowUpCasting : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName === \"rune carver apprentice-ua2\" && spellKey !== \"comprehend languages\") {\r\n\t\t\t\t\tspellObj.components = spellObj.components.replace(/M(\\u0192)?/, \"M*\");\r\n\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+) ?gp/, \"$1*gp\");\r\n\t\t\t\t\tspellObj.ritual = false;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If the rune spells that I know are inscribed on something in my possession, I can cast each once per long rest without without using a spell slot or material components, or I can cast them using spell slots as normal.\"\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"I know Comprehend Languages and can cast it without expending a spell slot once per long rest. I can also cast this spell using any spell slots I have.\",\r\n\t\t\t\"I know two runes of my choice from the list below. Whenever I finish a long rest, I can mark one nonmagical weapon, armor, piece of clothing, or other object I touch with a rune I know. I temporarily learn one 1st-level spell based on the rune I inscribed and I know the spell until I finish a long rest, when the rune fades.\",\r\n\t\t\t\"While I'm wearing or carrying the rune-marked object, I can cast its associated spell once per long rest without using a spell slot or material components. I can also cast the spell using any spell slots I have.\",\r\n\t\t\t\"My spellcasting ability for this is Intelligence, Wisdom, or Charisma (choose when selecting this feat).\",\r\n\t\t\t\"Each time I gain a level, I can replace one of the runes I know with a different one from the list.\\n\",\r\n\t\t\t\"RUNE\\t\\tSPELL\\t\\tSCHOOL\",\r\n\t\t\t\"Death\\t\\tRay of Sickness\\tNecromancy\",\r\n\t\t\t\"Dragon\\t\\tChromatic Orb\\tEvocation\",\r\n\t\t\t\"Enemy\\t\\tDisguise Self   \\tIllusion\",\r\n\t\t\t\"Friend\\t\\tSpeak With Animals\\tDivination\",\r\n\t\t\t\"Journey\\t\\tLongstrider\\t\\tTransmutation\",\r\n\t\t\t\"King\\t\\tCommand\\t\\tEnchantment\",\r\n\t\t\t\"Mountain\\t\\tEntangle\\t\\tConjuration\",\r\n\t\t\t\"Sacred\\t\\tSanctuary\\t\\tAbjuration\"\r\n\t\t]\r\n\t}]\r\n};\r\nFeatsList[\"rune carver adept-ua2\"] = {\r\n\tname : \"Rune Carver Adept\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends.\",\r\n\tdescriptionFull : \"Your ability to draw out power from runes has grown.\" + desc([\r\n\t\t\"Increase the ability score of the spellcasting ability chosen when you gained the Rune Carver Apprentice feat by 1, to a maximum of 20.\",\r\n\t\t\"Whenever you cast a spell from the Rune Spells table, or a spell of a school of magic associated with the spell you marked on an object from your Rune Carver Apprentice feat, you can invoke runic power, granting you one of these benefits of your choice:\",\r\n\t\ttoUni(\"Battle Runes\") + \". Choose one creature you can see within 30 feet of yourself. Until the end of that creature's next turn, it has advantage on the next attack roll it makes.\",\r\n\t\ttoUni(\"Healing Runes\") + \". Choose one creature you can see within 30 feet of yourself. That creature gains temporary hit points equal to your level.\",\r\n\t\ttoUni(\"Runic Winds\") + \". Choose one creature you can see within 30 feet of yourself. Until the end of that creature's turn, its movement doesn't provoke opportunity attacks, and its walking speed increases by 10 feet.\",\r\n\t\t\"You can invoke runic power a number of times equal to your proficiency bonus, but no more than once per spell you cast. You regain all expended uses when you finish a long rest.\"\r\n\t]),\r\n\tprerequisite : \"4th-level, Rune Carver Apprentice feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"rune carver apprentice-ua2\") !== -1;\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tselfChoosing : function() {\r\n\t\tif (CurrentSpells[\"rune carver apprentice-ua2\"] && !isNaN(CurrentSpells[\"rune carver apprentice-ua2\"].ability)) {\r\n\t\t\treturn AbilityScores.names[CurrentSpells[\"rune carver apprentice-ua2\"].ability - 1].toLowerCase();\r\n\t\t}\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Int]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Intelligence)\"\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Wisdom)\"\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Cha]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Charisma)\"\r\n\t}\r\n};\r\n\r\n// Scion of Elemental X\r\nFeatsList[\"scion of elemental air-ua\"] = {\r\n\tname : \"Scion of Elemental Air\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know the Minor Illusion cantrip (choice of Int, Wis, or Cha spellcasting ability). As a bonus action, I can gain a flying speed equal to my walking speed until my turn ends, but fall after this movement if I'm airborne and not held aloft by other means. I can do this bonus action my Proficiency Bonus per long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Air, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the minor illusion cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Wind's Glide\") + \". You can use a bonus action to gain a flying speed equal to your walking speed until the end of your turn. If you are airborne at the end of your turn after using this movement and aren't held aloft by other means, you fall. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"scion of elemental earth-ua\"] = {\r\n\tname : \"Scion of Elemental Earth\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know the Druidcraft cantrip (choice of Int, Wis, or Cha spellcasting ability). As a bonus action, I can conjure a bulwark of earth that provides half cover to me or a creature of my choice within 30 ft of myself, until the start of my next turn. I can create this bulwark my Proficiency Bonus per long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Earth, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the druidcraft cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Earthen Shield\") + \". You can use a bonus action to conjure a bulwark of earth that provides half cover to you or a creature of your choice within 30 feet of yourself. The bulwark remains until the start of your next turn. You can create this bulwark a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"scion of elemental fire-ua\"] = {\r\n\tname : \"Scion of Elemental Fire\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"I know the Dancing Lights and Produce Flame cantrips. I can choose Int, Wis, or Cha as my spellcasting ability for this.. I can cast Produce Flame as normal, and I can also cast it as a bonus action a number of times equal to my Proficiency Bonus, regaining all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Fire, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the dancing lights cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Fervent Blaze\") + \". You learn the produce flame cantrip, using the same spellcasting ability chosen for this feat's Elemental Magic benefit. You can cast produce flame as normal, and you can also cast it as a bonus action a number of times equal to your proficiency bonus, regaining all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"Fervent Blaze\",\r\n\t\tspell : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"]\r\n\t}, {\r\n\t\tname : \"Fervent Blaze (bonus action)\",\r\n\t\tspell : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"]\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName === \"scion of elemental fire-ua\" && spellKey === \"produce flame\") {\r\n\t\t\t\t\tif (isDuplicate) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"SP\";\r\n\t\t\t\t\t\tspellObj.time = \"1 bns\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.firstCol = \"atwill\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I can cast Produce Flame as a bonus action a number of times equal to my proficiency bonus, regaining all expended uses when I finish a long rest.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"scion of elemental water-ua\"] = {\r\n\tname : \"Scion of Elemental Water\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Water, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the thaumaturgy cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Wave Surge\") + \". You can use a bonus action to create a forceful surge of water directed at a creature within 15 feet of you that you can see. The target must make a Strength saving throw; the DC for this save is equal to 8 + your proficiency bonus + the spellcasting ability modifier chosen for this feat, and a creature can choose to fail this saving throw. On a failure, the target is pushed up to 10 feet away from you or pulled up to 10 feet toward you (your choice). The water vanishes immediately after the creature succeeds or fails. You can create this effect a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Int as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Wis as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Cha as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\n\r\n// Spells\r\nSpellsList[\"antagonize-ua\"] = {\r\n\tname : \"Antagonize\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A playing card depicting a rogue\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 4d4+1d4/SL Psychic dmg & melee atk vs. chosen crea; if none in range, dis. on next atk\",\r\n\tdescriptionShorter : \"1 crea save or 4d4+1d4/SL Psychic dmg & melee atk vs. chosen crea; if no in range, dis. next atk\",\r\n\tdescriptionFull : \"You whisper magical words that antagonize one creature of your choice within range. The target must make a Wisdom saving throw. On a failed save, it takes 4d4 psychic damage and must immediately use its reaction, if available, to make a melee attack against another creature of your choice that you can see. If no other creature is within range, the target has disadvantage on the next attack roll it makes before the start of your next turn.\"+\r\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d4 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"house of cards-ua\"] = {\r\n\tname : \"House of Cards\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A deck of cards\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"30-ft high tower, lifts up; 3 floors, 10-ft sq top floor; 5\\xD710 ft card: AC 10, 1 HP; all in half cover (5 sp)\",\r\n\tdescriptionMetric : \"10-m high tower, lifts up; 3 floors, 3-m sq top floor; 1,5\\xD73m card: AC 10, 1 HP; all in half cover (5 sp)\",\r\n\tdescriptionFull : \"You touch the ground and conjure forth a defensive structure made of enormous playing cards. The structure rises with you at its center, harmlessly lifting you and any creatures in the area. The house of cards has a square base that is 30 feet on each side, and it has three floors with 10-foot-high ceilings. The second floor is 20 feet on each side, and the top floor is 10 feet on each side\\u2014both centered above the bottom floor. Ramps connect the interior of each floor, and empty doorframes connect the interior and exterior of each level. Creatures inside or on top of the structure have half cover.\"+\r\n\t\"\\n   Each card that comprises the house is 5 feet wide and 10 feet tall and is very fragile. A card has AC 10 and 1 hit point. The cards are immune to poison and psychic damage. Reducing a card to 0 hit points destroys it. Every time a card is destroyed, roll 1d6. If you roll a 5 or a 6, the house collapses, ending the spell.\"+\r\n\t\"\\n   The house and all its cards vanish when the spell ends.\"\r\n};\r\nSpellsList[\"spirit of death-ua\"] = {\r\n\tname : \"Spirit of Death\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 4,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded playing card depicting an avatar of death worth at least 400 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Summon spirit to atk 1 crea; obeys commands; takes turn after me; ends if it or target at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth a spirit that embodies death itself. Choose a creature you can see within range. The spirit manifests in an unoccupied space that you can see within 10 feet of the target, and the target becomes haunted by the spirit. The spirit uses the Reaper Spirit stat block. The spirit disappears when it or the haunted creature is reduced to 0 hit points, or when the spell ends.\"+\r\n\t\"\\n   The reaper spirit is an ally to you and your companions. In combat, the spirit shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you), but it will only attack the haunted creature. If you don't issue the spirit any commands, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"spray of cards-ua\"] = {\r\n\tname : \"Spray of Cards\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 11]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"15-ft cone\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A deck of cards\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : typePF ? \"W/D\" : \"W/d\",\r\n\tdescription : \"All in area either: Wis save or blinded 1 rnd; or 2d10+1d10/2SL Force dmg, Dex save halves (5sp)\",\r\n\tdescriptionFull : \"You spray spectral cards from your hands or sleeve; the cards blind or slash at your enemies, and then vanish. Choose one of the following effects for the cards.\"+\r\n\t\"\\n   \" + toUni(\"Blinding Cards\") + \". Each creature in a 15-foot cone must succeed on a Wisdom saving throw or be blinded until the end of their next turn.\"+\r\n\t\"\\n   \" + toUni(\"Cutting Cards\") + \". Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes 2d10 force damage on a failed save or half as much damage on a successful one.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage of cutting cards increases by 1d10 for every two slot levels above 2nd.\"\r\n};\r\nSpellsList[\"summon warrior spirit-ua\"] = {\r\n\tname : \"Summon Warrior Spirit\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 11]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded playing card depicting a knight worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Warrior Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a warrior spirit from the legendary Deck of Many Things. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Warrior Spirit stat block. When you cast the spell, choose a type of warrior: barbarian, fighter, or monk. The warrior resembles a humanoid armed appropriately to the chosen class, which determines certain traits in its stat block. The warrior disappears when it drops to 0 hit points or when the spell ends.\"+\r\n\t\"\\n   The warrior is an ally to you and your companions. In combat, the warrior shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the creature assumes the higher level for that casting wherever it uses the spell's level in its stat block.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/all_WotC_published.js",
    "content": "if (sheetVersion < 14000006) { throw \"This add-on script was made for a newer version of the sheet (v14.0.6-beta). Please use this required version or a later version (but lower than v15.0.0) and try again.\\n\\nYou can get the different versions at www.flapkan.com.\\n\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };\nif (sheetVersion >= 15000000) { throw \"This add-on script was made for a lower version of the sheet (one before v15.0.0). Please use the required version (v14.0.6-beta) or a later version and try again.\\n\\nYou can get the different versions at www.flapkan.com.\\n\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };\nvar iFileName = \"all_WotC_published.js\";\nRequiredSheetVersion(\"14.0.6-beta\", \"15.0.0\");\n\n// pub_20140715_LMoP.js\r\n// This file adds the magic items from the Lost Mines of Phandelver adventure from the D&D 5e starter set to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"LMoP\"] = {\r\n\tname : \"Lost Mines of Phandelver [items]\",\r\n\tabbreviation : \"LMoP\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dndbeyond.com/sources/lmop\",\r\n\tdate : \"2014/07/15\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"dragonguard\"] = {\r\n\tname : \"Dragonguard\",\r\n\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 72]],\r\n\ttype : \"armor (breastplate)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This +1 breastplate has a gold dragon motif worked into its design. It grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\r\n\tdescriptionFull : \"This +1 breastplate has a gold dragon motif worked into its design. Created for a human hero of Neverwinter named Tergon, it grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\r\n\tweight : 20,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /dragonguard/i,\r\n\t\tname : \"Dragonguard\",\r\n\t\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 72]],\r\n\t\ttype : \"medium\",\r\n\t\tac : \"14+1\",\r\n\t\tweight : 20,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"breath weapons of dragons\"] }\r\n}\r\nMagicItemsList[\"hew\"] = {\r\n\tname : \"Hew\",\r\n\tsource : [[\"LMoP\", 33], [\"PaBTSO\", 54]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : 'Dwarvish runes on the head of this rusty battleaxe read \"Hew\". It adds a +1 bonus to attack and damage rolls made with it and deals maximum damage against plant creatures or objects made of wood. While carrying it, I feel uneasy when I travel through a forest, as its creator was a dwarf smith who feuded with dryads.',\r\n\tdescriptionFull : 'This rusty old battleaxe of dwarven manufacture has runes in Dwarvish on the axe head which read \"Hew\". Hew is a +1 battleaxe that deals maximum damage when the wielder hits a plant creature or an object made of wood. The axe\\'s creator was a dwarf smith who feuded with the dryads of a forest where he used it for protection while he cut firewood. Whoever carries the axe feels uneasy whenever he or she travels through a forest.',\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /\\bhew\\b/i,\r\n\t\tname : '\"Hew\"',\r\n\t\tsource : [[\"LMoP\", 33], [\"PaBTSO\", 54]],\r\n\t\tdescription : \"Versatile (1d10); Max damage against plant creatures and wooden objects\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"lightbringer\"] = {\r\n\tname : \"Lightbringer\",\r\n\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 54]],\r\n\ttype : \"weapon (mace)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This mace adds a +1 bonus to attack and damage rolls made with it. It is made for a cleric of the god of dawn, with its head shaped like a sunburst and made of solid brass. I can command it to glow as bright as a torch. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\r\n\tdescriptionFull : \"This +1 mace was made for a cleric of Lathander, the god of dawn. The head of the mace is shaped like a sunburst and is made of solid brass. Named Lightbringer, this weapon glows as bright as a torch when its wielder commands. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /lightbringer/i,\r\n\t\tname : \"Lightbringer\",\r\n\t\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 54]],\r\n\t\tdescription : \"Command to glow as torch and deal +1d6 radiant damage to undead\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"spider staff\"] = { // changed to the new version introduced in Phandelver and Below: The Shattered Obelisk with the prerequisite\r\n\tname : \"Spider Staff\",\r\n\tsource : [[\"LMoP\", 53], [\"PaBTSO\", 220]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"Attacks with this black adamantine quarterstaff topped with a spider deal +1d6 poison damage on a hit. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Spider Climb (1 charge) or Web (2 charges, spell save DC 15).\",\r\n\tdescriptionFull : \"The top of this black, adamantine staff is shaped like a spider. The staff weighs 6 pounds. You must be attuned to the staff to gain its benefits and cast its spells. The staff can be wielded as a quarterstaff. It deals 1d6 extra poison damage on a hit when used to make a weapon attack.\\n   The staff has 10 charges, which are used to fuel the spells within it. With the staff in hand, you can use your action to cast one of the following spells from the staff if the spell is on your class's spell list: Spider Climb (1 charge) or Web (2 charges, spell save DC 15). No components are required.\\n   The staff regains 1d6+4 expended charges each day at dusk. If you expend the staff's last charge, roll a d20. On a 1, the staff crumbles to dust and is destroyed.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tweight : 6, // kept to the original weight\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /^(?=.*spider)(?=.*staff).*$/i,\r\n\t\tname : \"Spider Staff\",\r\n\t\tsource : [[\"LMoP\", 53], [\"PaBTSO\", 220]],\r\n\t\tdescription : \"Versatile (1d8); +1d6 poison damage\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tfixedDC : 15,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"spider climb\"],\r\n\t\tselection : [\"spider climb\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"web\"],\r\n\t\tselection : [\"web\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"staff of defense\"] = { // changed to the new version introduced in Phandelver and Below: The Shattered Obelisk with the prerequisite\r\n\tname : \"Staff of Defense\",\r\n\tsource : [[\"LMoP\", 53]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This slender, hollow staff is made of glass yet is as strong as oak. While holding it, I gain a +1 bonus to AC. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Mage Armor (1 charge) or Shield (2 charges) as an action.\",\r\n\tdescriptionFull : \"This slender, hollow staff is made of glass yet is as strong as oak. It weighs 3 pounds. You must be attuned to the staff to gain its benefits and cast its spells.\\n   While holding the staff, you have a +1 bonus to your Armor Class.\\n   The staff has 10 charges, which are used to fuel the spells within it. With the staff in hand, you can use your action to cast one of the following spells from the staff if the spell is on your class's spell list: Mage Armor (1 charge) or Shield (2 charges). No components are required.\\n   The staff regains 1d6+4 expended charges each day at dawn. If you expend the staff's last charge, roll a d20. On a 1, the staff shatters and is destroyed.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tweight : 3,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tweaponsAdd : { options : [\"Staff of Defense\"] },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"mage armor\"],\r\n\t\tselection : [\"mage armor\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"shield\"],\r\n\t\tselection : [\"shield\"],\r\n\t\tfirstCol : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"shield\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Cast as an action.\"\r\n\t\t}\r\n\t},\r\n\textraAC : [{name : \"Staff of Defense\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while holding the Staff of Defense.\"}],\r\n}\r\n\n// pub_20140818_PHB.js\r\n// This file adds all material from the Player's Handbook to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.P={\r\n\tname : \"Player's Handbook\",\r\n\tabbreviation : \"PHB\",\r\n\tabbreviationSpellsheet : \"P\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/rpg_playershandbook\",\r\n\tdate : \"2014/08/19\"\r\n};\r\n\r\n// (sub)Races that are not in the SRD\r\nRaceList[\"mountain dwarf\"] = {\r\n\tregExpSearch : /^((?=.*(hylar|daewar))|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(mountain|shield)\\b))).*$/i,\r\n\tname : \"Mountain dwarf\",\r\n\tsortname : \"Dwarf, Mountain\",\r\n\tsource : [[\"P\", 20]],\r\n\tplural : \"Mountain dwarves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\tarmorProfs : [true, true, false, false],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 2, 0, 0, 0],\r\n\ttrait : \"Mountain Dwarf (+2 Strength, +2 Constitution)\\n\\nStonecunning:\\n   Whenever I make an Intelligence (History) check related to the origin of stonework, I am considered proficient in the History skill and add double my proficiency bonus to the check, instead of my normal proficiency bonus.\"\r\n};\r\nRaceList[\"dark elf\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*drow)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(dark|underdarks?|deep|depths?)\\b))).*$/i,\r\n\tname : \"Drow\",\r\n\tsortname : \"Elf, Dark (Drow)\",\r\n\tsource : [[\"P\", 24]],\r\n\tplural : \"Drow\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"rapier\", \"shortsword\", \"hand crossbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to 5 1/2 feet tall (4'5\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 100 lb (75 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,7 metres tall (135 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 45 kg (35 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Drow (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nDrow Magic: 1st level: Dancing Lights cantrip; 3rd level: Faerie Fire; 5th level: Darkness. Both spells can be used once per long rest. Charisma is my spellcasting ability for these.\", // errata to specify once per day is long rest\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Drow Magic (level 1)\",\r\n\t\tspells : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"faerie fire\" : {\r\n\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Faerie Fire\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\tlimfeaname : \"Darkness\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"wood elf\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*(grugach|kagonesti|silhana))|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(woodlands?|woods?|forests?|wilds?|green)\\b))).*$/i,\r\n\tname : \"Wood elf\",\r\n\tsortname : \"Elf, Wood\",\r\n\tsource : [[\"P\", 24]],\r\n\tplural : \"Wood elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 125 lb (100 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 60 kg (45 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Wood Elf (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nMask of the Wild: I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n};\r\nRaceList[\"forest gnome\"] = {\r\n\tregExpSearch : /^((?=.*\\bgnomes?\\b)(?=.*\\b(woods?|forests?|wilds?|green)\\b)).*$/i,\r\n\tname : \"Forest gnome\",\r\n\tsortname : \"Gnome, Forest\",\r\n\tsource : [[\"P\", 37]],\r\n\tplural : \"Forest gnomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 2, 0, 0],\r\n\ttrait : \"Forest Gnome (+1 Dexterity, +2 Intelligence)\" + (typePF ? \"\\n\" : \" \") + \"\\nNatural Illusionist:\\n   I know the Minor Illusion cantrip. Intelligence is my spellcasting ability for it.\\n\\nSpeak with Small Beasts:\\n   Through sounds and gestures, I can communicate simple ideas with Small or smaller beasts.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Natural Illusionist\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t}]\r\n};\r\nRaceList[\"stout halfling\"] = {\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*stout).*$/i,\r\n\tname : \"Stout halfling\",\r\n\tsortname : \"Halfling, Stout\",\r\n\tsource : [[\"P\", 28]],\r\n\tplural : \"Stout halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\", \"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Stout Halfling (+2 Dexterity, +1 Constitution)\\n\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\n\\nHalfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\"\r\n};\r\n\r\n// Add racial variants that are not part of the SRD\r\nAddRacialVariant(\"human\", \"variant\", {\r\n\tregExpSearch : /variant/i,\r\n\tsource : [[\"P\", 31]],\r\n\tskillstxt : \"Choose any one skill\",\r\n\tscorestxt : \"+1 to two different ability scores of my choice\",\r\n\tscores : [0, 0, 0, 0, 0, 0],\r\n\ttrait : \"Human (+1 to two different ability scores of my choice)\\n\\nSkills: I gain proficiency in one skill of my choice.\\n\\nFeat: I gain one feat of my choice.\",\r\n\tfeatsAdd: [{ type: /^(?!.*(blessing|boon|gift|fighting style)).*$/i }],\r\n});\r\n\r\n// Add the subclasses that are not in the SRD\r\nAddSubClass(\"barbarian\", \"totem warrior\", {\r\n\tregExpSearch : /^(?=.*totem)(?=.*(warrior|fighter|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Totem Warrior\",\r\n\tfullname : \"Totem Warrior\",\r\n\tsource : [[\"P\", 50]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spirit Seeker\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast Beast Sense and Speak with Animals as rituals (PHB 217 \\u0026 277)\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"beast sense\", \"speak with animals\"],\r\n\t\t\t\tselection : [\"beast sense\", \"speak with animals\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"beast sense\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"speak with animals\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Totem Spirit\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Spirit using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Bear Spirit\",\r\n\t\t\t\tdescription: desc(\"While raging, I have resistance to all damage types except psychic\"),\r\n\t\t\t\tdmgres : [[\"All -Psychic\", \"All -Psychic (rage)\"]],\r\n\t\t\t\teval : function() {\r\n\t\t\t\t\tprocessResistance(false, 'Barbarian: Rage', ClassList.barbarian.features.rage.dmgres);\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function() {\r\n\t\t\t\t\tprocessResistance(true, 'Barbarian: Rage', ClassList.barbarian.features.rage.dmgres);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Eagle Spirit\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging without heavy armor, others have disadv. on opportunity attacks vs. me\",\r\n\t\t\t\t\t\"I can use the Dash action as a bonus action\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (Dash)\"]]\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Wolf Spirit\",\r\n\t\t\t\tdescription: desc(\"While raging, friends have advantage on melee attacks vs. hostiles within 5 ft of me\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Aspect of the Beast\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Aspect using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Aspect of the Bear\",\r\n\t\t\t\tdescription: desc(\"Advantage on Strength checks to push/pull/lift/break; Carrying capacity is doubled\"),\r\n\t\t\t\tcarryingCapacity : 2\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Aspect of the Eagle\",\r\n\t\t\t\tdescription: desc(\"I can see up to 1 mile away perfectly; No disadvantage on Perception from dim light\")\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Aspect of the Wolf\",\r\n\t\t\t\tdescription: desc(\"I can track while traveling at a fast pace; I can move stealthily at a normal pace\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Spirit Walker\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can cast Commune with Nature as a ritual\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Walker\",\r\n\t\t\t\tspells : [\"commune with nature\"],\r\n\t\t\t\tselection : [\"commune with nature\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"commune with nature\" : {\r\n\t\t\t\t\ttime : \"11 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Totemic Attunement\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Attunement using the \"Choose Feature\" button'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Bear Attunement\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, any creature that sees me within 5 ft has disadv. on attacks vs. others\",\r\n\t\t\t\t\t\"Enemies that can't perceive me or be frightened are immune\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Eagle Attunement\",\r\n\t\t\t\tdescription: desc(\"While raging, I can fly at my current speed, but I can only stay aloft during my turn\")\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Wolf Attunement\",\r\n\t\t\t\tdescription: desc(\"If my melee attack hits while raging, I can knock prone as a bonus action (up to Large)\"),\r\n\t\t\t\taction : [[\"bonus action\", \" (raging: knock prone)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of valor\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*valor).*$/i,\r\n\tsubname : \"College of Valor\",\r\n\tsubnameshort: \"Valor\",\r\n\tsource : [[\"P\", 55]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor, shields, and martial weapons\"),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Inspiration\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"My Bardic Inspiration can also be used to add the die to a weapon damage roll\",\r\n\t\t\t\t\"Alternatively, it can be used as a reaction to add the die to AC against one attack\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Battle Magic\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"As a bonus action when I use my action to cast a bard spell, I can make a weapon attack\"),\r\n\t\t\taction : [[\"bonus action\", \" (with Bard spell)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"knowledge domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(knowledge|wisdom|learning)).*$/i,\r\n\tsubname : \"Knowledge Domain\",\r\n\tsubnameshort: \"Knowledge\",\r\n\tsource : [[\"P\", 59]],\r\n\tspellcastingExtra : [\"command\", \"identify\", \"augury\", \"suggestion\", \"nondetection\", \"speak with dead\", \"arcane eye\", \"confusion\", \"legend lore\", \"scrying\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Blessings of Knowledge\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I learn two languages and gain proficiency and expertise with two skills\",\r\n\t\t\t\t\"I can choose from the following: Arcana, History, Nature, or Religion\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from Arcana, History, Nature, and Religion. You also gain expertise with these skills\",\r\n\t\t\tlanguageProfs : [2]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Knowledge of Ages\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"As an action, I gain proficiency with a chosen skill or tool for 10 minutes\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Read Thoughts\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one creature within 60 ft I can see must make a Wisdom save\",\r\n\t\t\t\t\"If it fails, I can read its surface thoughts for 1 min, as long as it's within 60 ft of me\",\r\n\t\t\t\t\"As an action, I can end this and cast Suggestion on it (it fails its save automatically)\",\r\n\t\t\t\t\"If it succeeded on its save, I can't use this feature again on it until I finish a long rest\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"P\", 60]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Visions of the Past\",\r\n\t\t\tsource : [[\"P\", 60]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can see recent events of an object or area by concentrating and praying for 1 min\",\r\n\t\t\t\t\"I can meditate this way for up to a number of minutes equal to my Wisdom score\",\r\n\t\t\t\t\"\\u2022 Object Reading (after meditating for 1 minute per owner):\",\r\n\t\t\t\t\"   If an owner owned it in the last Wis score in days, I learn how that owner got/lost it\",\r\n\t\t\t\t\"   I also learn the most recent significant event involving the object and the owner\",\r\n\t\t\t\t\"\\u2022 Area Reading (my immediate surroundings, up to a 50-foot cube):\",\r\n\t\t\t\t\"   Going back my Wisdom score in days, per minute I meditate, I learn about one event\",\r\n\t\t\t\t\"   This starts with the most recent event; It can be significant or just important to me\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"light domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(light|sun|shining)\\b).*$/i,\r\n\tsubname : \"Light Domain\",\r\n\tsource : [[\"P\", 61]],\r\n\tspellcastingExtra : [\"burning hands\", \"faerie fire\", \"flaming sphere\", \"scorching ray\", \"daylight\", \"fireball\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"scrying\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrip\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn the Light cantrip if I didn't already know it\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (Light)\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Warding Flare\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature within 30 ft attacks me and I can see it, I can interpose divine light\",\r\n\t\t\t\t\"As a reaction, I impose disadv. on the attacker's attack roll (unless it can't be blinded)\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Radiance of the Dawn\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, in 30 ft, magical darkness is dispelled and hostiles must make a Con save\",\r\n\t\t\t\t\"Each takes radiant damage, saves for half, and negates with total cover\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"2d10 + 2 damage\", \"2d10 + 3 damage\", \"2d10 + 4 damage\", \"2d10 + 5 damage\", \"2d10 + 6 damage\", \"2d10 + 7 damage\", \"2d10 + 8 damage\", \"2d10 + 9 damage\", \"2d10 + 10 dmg\", \"2d10 + 11 dmg\", \"2d10 + 12 dmg\", \"2d10 + 13 dmg\", \"2d10 + 14 dmg\", \"2d10 + 15 dmg\", \"2d10 + 16 dmg\", \"2d10 + 17 dmg\", \"2d10 + 18 dmg\", \"2d10 + 19 dmg\", \"2d10 + 20 dmg\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Improved Flare\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can also use my Warding Flare if another is attacked by a creature within 30 ft of me\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Corona of Light\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I have an aura of 60 ft sunlight and 30 ft dim light for 1 min\",\r\n\t\t\t\t\"Enemies in the sunlight have disadv. on saves vs. spells that deal fire or radiant damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (start/stop)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"nature domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(nature|natural|animal|element(s|al)?)\\b).*$/i,\r\n\tsubname : \"Nature Domain\",\r\n\tsource : [[\"P\", 62]],\r\n\tspellcastingExtra : [\"animal friendship\", \"speak with animals\", \"barkskin\", \"spike growth\", \"plant growth\", \"wind wall\", \"dominate beast\", \"grasping vine\", \"insect plague\", \"tree stride\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Acolyte of Nature\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn a druid cantrip and proficiency with a skill: Animal Handling, Nature, Survival\"),\r\n\t\t\tskillstxt : \"Choose one from Animal Handling, Nature, or Survival\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Acolyte of Nature\",\r\n\t\t\t\t\"class\" : \"druid\",\r\n\t\t\t\tlevel : [0, 0]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Charm Animals and Plants\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all beasts and plants within 30 ft that I can see must make a Wis save\",\r\n\t\t\t\t\"If failed, each is charmed and friendly to allies and me for 1 min or until damaged\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Dampen Elements\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, if an ally in 30 ft or I takes acid/cold/fire/lightning/thunder damage,\",\r\n\t\t\t\t\"I can grant resistance against that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 cold/fire/lightning damage (choice)\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 cold/fire/lightning damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra cold, fire, or lightning damage (my choice).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Master of Nature\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a bonus action, I can command creatures that are charmed by my Channel Divinity\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"tempest domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(tempest|destruction|storm)\\b).*$/i,\r\n\tsubname : \"Tempest Domain\",\r\n\tsource : [[\"P\", 62]],\r\n\tspellcastingExtra : [\"fog cloud\", \"thunderwave\", \"gust of wind\", \"shatter\", \"call lightning\", \"sleet storm\", \"control water\", \"ice storm\", \"destructive wave\", \"insect plague\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Wrath of the Storm\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when a creature I can see within 5 ft hits me, I can thunderously rebuke\",\r\n\t\t\t\t\"It takes 2d8 lightning or thunder damage (my choice) that a Dex save can halve\",\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Destructive Wrath\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"Instead of rolling, I can do maximum damage when I do lightning or thunder damage\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Thunderbolt Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I deal lightning damage to a Large or smaller foe, I can push it up to 10 ft away\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 thunder damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 thunder damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra thunder damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Stormborn\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"Whenever I'm not underground or indoors, I have a fly speed equal to my current speed\"),\r\n\t\t\tspeed : { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"trickery domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(trickery|trickster|illusion)).*$/i,\r\n\tsubname : \"Trickery Domain\",\r\n\tsubnameshort: \"Trickery\",\r\n\tsource : [[\"P\", 63]],\r\n\tspellcastingExtra : [\"charm person\", \"disguise self\", \"mirror image\", \"pass without trace\", \"blink\", \"dispel magic\", \"dimension door\", \"polymorph\", \"dominate person\", \"modify memory\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Blessing of the Trickster\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a willing creature I touch (not me) has adv. on Dex (Stealth) checks\",\r\n\t\t\t\t\"This lasts for 1 hour or until I use it again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Invoke Duplicity\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I create illusory duplicates of myself within 30 ft of me for 1 min (conc)\",\r\n\t\t\t\t\"As a bonus action, I can move them 30 ft to space(s) I can see within 120 ft of me\",\r\n\t\t\t\t\"I can cast spells as though I were in a duplicate's space, using my own senses\",\r\n\t\t\t\t\"I have advantage on attacks if the target is within 5 ft of a duplicate and me\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : (n < 17 ? 1 : 2) + \" illusory duplicate\" + (n < 17 ? \"\" : \"s\"); }),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Move Duplicate(s)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Cloak of Shadows\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As an action, I become invisible until the end of my next turn or I attack/cast a spell\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 poison damage\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 poison damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra poison damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Improved Duplicity\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Invoke Duplicity, I make four illusory duplicates instead of one\",\r\n\t\t\t\t\"I can move any number of the illusory duplicates as part of the same bonus action\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"war domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(war|fighting|conflict)\\b).*$/i,\r\n\tsubname : \"War Domain\",\r\n\tsource : [[\"P\", 63]],\r\n\tspellcastingExtra : [\"divine favor\", \"shield of faith\", \"magic weapon\", \"spiritual weapon\", \"crusader's mantle\", \"spirit guardians\", \"freedom of movement\", \"stoneskin\", \"flame strike\", \"hold monster\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"War Priest\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"When I use the Attack action, I can make a weapon attack as a bonus action\"),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: War God's Blessing\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, when a creature within 30 ft makes an attack roll, I can bless its attack\",\r\n\t\t\t\t\"The creature then adds a +10 bonus to the roll; I can do this after seeing the d20 roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 damage of the weapon's type\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Avatar of Battle\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I have resistance to bludgeoning/piercing/slashing damage from nonmagical weapons\"),\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the moon\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))((?=.*\\bmoon\\b)|((?=.*\\bmany\\b)(?=.*\\bforms?\\b))).*$/i,\r\n\tsubname : \"Circle of the Moon\",\r\n\tsubnameshort: \"Moon\",\r\n\tsource : [[\"P\", 69]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Forms\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I am able to transform into more dangerous animal forms when using Wild Shape\")\r\n\t\t},\r\n\t\t\"subclassfeature2.wild shape\" : {\r\n\t\t\tname : \"Wild Shape\",\r\n\t\t\tsource : [[\"P\", 66]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I assume the shape of a beast I have seen before with these rules:\",\r\n\t\t\t\t\" \\u2022 I gain all its game statistics except Intelligence, Wisdom, or Charisma\",\r\n\t\t\t\t\" \\u2022 I get its skill/saving throw prof. while keeping my own, using whichever is higher\",\r\n\t\t\t\t\" \\u2022 I assume the beast's HP and HD; I get mine back when I revert back\",\r\n\t\t\t\t\" \\u2022 I can't cast spells in beast form, but transforming doesn't break concentration\",\r\n\t\t\t\t\" \\u2022 I retain features from class, race, etc., but I don't retain special senses\",\r\n\t\t\t\t\" \\u2022 I can choose whether equipment falls to the ground, merges, or stays worn\",\r\n\t\t\t\t\" \\u2022 I revert if out of time or unconscious; if KOd by damage, excess damage carries over\"\r\n\t\t\t]),\r\n\t\t\tusages : ClassList.druid.features[\"subclassfeature2.wild shape\"].usages,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\tvar cr = Math.max(1, Math.floor(n/3));\r\n\t\t\t\tvar hr = Math.floor(n/2);\r\n\t\t\t\tvar limits = n < 4 ? \", no fly/swim\" : n < 8 ? \", no fly\" : \"\";\r\n\t\t\t\treturn \"CR \" + cr + limits + \"; \" + hr + (limits.length ? \" h\" : \" hours\");\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \" (start/stop)\"]],\r\n\t\t\teval : function() {\r\n\t\t\t\tprocessActions(false, \"Druid: Wild Shape\", ClassList.druid.features[\"subclassfeature2.wild shape\"].action, \"Wild Shape\");\r\n\t\t\t},\r\n\t\t\twildshapePageInfo: {\r\n\t\t\t\tuses: ClassList.druid.features[\"subclassfeature2.wild shape\"].wildshapePageInfo.uses,\r\n\t\t\t\tduration: ClassList.druid.features[\"subclassfeature2.wild shape\"].wildshapePageInfo.duration,\r\n\t\t\t\tlimitations: levels.map(function (n) {\r\n\t\t\t\t\tvar CR = Math.max(1, Math.floor(n/3));\r\n\t\t\t\t\tvar limits = n < 4 ? \", no fly/swim\" : \", no fly speed\";\r\n\t\t\t\t\treturn n < 8 ? \"max CR \" + CR + limits : \"CR \" + CR + \"or lower\";\r\n\t\t\t\t}),\r\n\t\t\t},\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Combat Wild Shape\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action while in Wild Shape, I can expend spell slots to heal myself\",\r\n\t\t\t\t\"I regain 1d8 HP per expended spell slot level; I can use Wild Shape as a bonus action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (heal)\"]],\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\tprocessActions(true, \"Druid: Wild Shape\", ClassList.druid.features[\"subclassfeature2.wild shape\"].action, \"Wild Shape\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Primal Strike\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My attacks count as magical while in Wild Shape\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Elemental Wild Shape\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can transform into an air/earth/fire/water elemental by expending 2 Wild Shape uses\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Thousand Forms\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can cast Alter Self at will without using a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Thousand Forms\",\r\n\t\t\t\tspells : [\"alter self\"],\r\n\t\t\t\tselection : [\"alter self\"],\r\n\t\t\t\tfirstCol : \"atwill\",\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"battle master\", {\r\n\tregExpSearch : /^(?=.*(war|fighter|battle|martial))(?=.*master).*$/i,\r\n\tsubname : \"Battle Master\",\r\n\tfullname : \"Battle Master\",\r\n\tsource : [[\"P\", 73]],\r\n\tabilitySave : 1,\r\n\tabilitySaveAlt : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special Maneuvers\",\r\n\t\t\t\t\"I regain all superiority dice after a short rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Maneuvers\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page',\r\n\t\t\t\t\"I can use a Maneuver by expending a superiority die (only one Maneuver per attack)\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9) + \" known\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Maneuver\",\r\n\t\t\textrachoices : [\"Commander's Strike\", \"Disarming Attack\", \"Distracting Strike\", \"Evasive Footwork\", \"Feinting Attack\", \"Goading Attack\", \"Lunging Attack\", \"Maneuvering Attack\", \"Menacing Attack\", \"Parry\", \"Precision Attack\", \"Pushing Attack\", \"Rally\", \"Riposte\", \"Sweeping Attack\", \"Trip Attack\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9;\r\n\t\t\t}),\r\n\t\t\t\"commander's strike\" : {\r\n\t\t\t\tname : \"Commander's Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I forgo one attack of my Attack action to use a bonus action to direct an ally I see/hear\",\r\n\t\t\t\t\t\"The ally can use a reaction to make an attack, adding the superiority die to damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t\t},\r\n\t\t\t\"disarming attack\" : {\r\n\t\t\t\tname : \"Disarming Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Strength save or drops a held object of my choice to its feet\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"distracting strike\" : {\r\n\t\t\t\tname : \"Distracting Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"The next attack of an ally before my next turn has adv. against the creature\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"evasive footwork\" : {\r\n\t\t\t\tname : \"Evasive Footwork\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Use when moving; I add the superiority die to my AC until I stop moving\")\r\n\t\t\t},\r\n\t\t\t\"feinting attack\" : {\r\n\t\t\t\tname : \"Feinting Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can feint to gain adv. on my next attack this turn vs. a target in 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"goading attack\" : {\r\n\t\t\t\tname : \"Goading Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wis save or has disadv. vs. other targets until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"lunging attack\" : {\r\n\t\t\t\tname : \"Lunging Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can spend a superiority die to increase the reach of a melee weapon attack by 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"maneuvering attack\" : {\r\n\t\t\t\tname : \"Maneuvering Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Ally can use reaction to move half speed without opportunity attack from the target\",\r\n\t\t\t\t]),\r\n\r\n\t\t\t},\r\n\t\t\t\"menacing attack\" : {\r\n\t\t\t\tname : \"Menacing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wisdom save or is frightened of me until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"parry\" : {\r\n\t\t\t\tname : \"Parry\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"When damaged in melee, I can use a reaction to reduce it by superiority die + Dex mod\"),\r\n\t\t\t\taction : [[\"reaction\", \" (when damaged in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"precision attack\" : {\r\n\t\t\t\tname : \"Precision Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"I add the superiority die to my attack roll, either before or after rolling\")\r\n\t\t\t},\r\n\t\t\t\"pushing attack\" : {\r\n\t\t\t\tname : \"Pushing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be pushed up to 15 ft away\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"rally\" : {\r\n\t\t\t\tname : \"Rally\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Ally that can see/hear me gets temporary HP equal to superiority die + Charisma mod\"),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"riposte\" : {\r\n\t\t\t\tname : \"Riposte\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When missed in melee, I can use my reaction to make one melee attack vs. the attacker\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (after missed in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping attack\" : {\r\n\t\t\t\tname : \"Sweeping Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature and a second creature is within 5 ft of the first\",\r\n\t\t\t\t\t\"If the original attack roll hits this second creature, it takes the superiority die in damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"trip attack\" : {\r\n\t\t\t\tname : \"Trip Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Student of War\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I have proficiency with one artisan's tool set of my choice\"),\r\n\t\t\ttoolProfs : [[\"Artisan's tools\", 1]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Know Your Enemy\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I spend 1 min studying someone, the DM will tell me info about him/her\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"eldritch knight\", {\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green|arcane archer))(?=.*(knight|fighter|warrior|militant|warlord|phalanx|gladiator|trooper))(?=.*\\b(eldritch|arcane|magic|mage|witch)\\b).*$/i,\r\n\tsubname : \"Eldritch Knight\",\r\n\tfullname : \"Eldritch Knight\",\r\n\tsource : [[\"P\", 75]],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 3,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tschool : [\"Evoc\", \"Abjur\"],\r\n\t\tlevel : [0, 4]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [0, 0, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\r\n\t\tspells : [0, 0, 2, 3, 3, 3, 4, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"action surge\" : {\r\n\t\t\tname : \"Action Surge\",\r\n\t\t\tsource : [[\"P\", 72]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can take one additional action on my turn on top of my normally allowed actions\"),\r\n\t\t\tusages : [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\"]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast known wizard cantrips/spells, using Intelligence as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"\", \"2 cantrips \\u0026 3 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 5 spells known\", \"2 cantrips \\u0026 6 spells known\", \"2 cantrips \\u0026 6 spells known\", \"3 cantrips \\u0026 7 spells known\", \"3 cantrips \\u0026 8 spells known\", \"3 cantrips \\u0026 8 spells known\", \"3 cantrips \\u0026 9 spells known\", \"3 cantrips \\u0026 10 spells known\", \"3 cantrips \\u0026 10 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 12 spells known\", \"3 cantrips \\u0026 13 spells known\"],\r\n\t\t\tspellcastingBonus : [{ // the spells gained at level 3, 8, 14, 20\r\n\t\t\t\tname : \"From any school\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\ttimes : [0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4],\r\n\t\t\t\tlevel : [1, 4]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Weapon Bond\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can bond with up to two weapons by spending a short rest with each\",\r\n\t\t\t\t\"I can't be disarmed of a bonded weapon and I can summon one as a bonus action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"War Magic\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"When I use my action to cast a cantrip, I can make a weapon attack as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Eldritch Strike\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"A creature hit by my weapon attack has disadv. on the save vs. the next spell I cast\",\r\n\t\t\t\t\"This lasts until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Arcane Charge\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I use Action Surge, I can also teleport up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"I can do so before or after the extra action\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Improved War Magic\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"When I use my action to cast a spell, I can make a weapon attack as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the four elements\", {\r\n\tregExpSearch : /^(?=.*\\b(four|4)\\b)((?=.*elements?)|((?=.*earth)|(?=.*(wind|air))|(?=.*fire)|(?=.*water)))((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Four Elements\",\r\n\tsubnameshort: \"Four Elements\",\r\n\tsource : [[\"P\", 80]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Disciple of the Elements\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I know Elemental Attunement and additional Elemental Disciplines, depending on level\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Elemental Disciplines to the third page',\r\n\t\t\t\t\"From 5th level onward, I can use additional ki points to increase their spell slot level\",\r\n\t\t\t\t\"I can trade known Elemental Disciplines for others when I gain new ones\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : ((n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" known; \") + (n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6) + \" max ki\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Elemental Discipline\",\r\n\t\t\textrachoices : [\"Breath of Winter (prereq: level 17 monk)\", \"Clench of the North Wind (prereq: level 6 monk)\", \"Elemental Attunement\", \"Eternal Mountain Defense (prereq: level 17 monk)\", \"Fangs of the Fire Snake\", \"Fist of Four Thunders\", \"Fist of Unbroken Air\", \"Flames of the Phoenix (prereq: level 11 monk)\", \"Gong of the Summit (prereq: level 6 monk)\", \"Mist Stance (prereq: level 11 monk)\", \"Ride the Wind (prereq: level 11 monk)\", \"River of Hungry Flame (prereq: level 17 monk)\", \"Rush of the Gale Spirits\", \"Shape the Flowing River\", \"Sweeping Cinder Strike\", \"Water Whip\", \"Wave of Rolling Earth (prereq: level 17 monk)\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"elemental attunement\" }],\r\n\t\t\t\"elemental attunement\" : {\r\n\t\t\t\tname : \"Elemental Attunement\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can briefly control elemental forces within 30 ft of me\",\r\n\t\t\t\t\t\"I can make a harmless sensory effect, light/snuff light, chill/warm 1 lb for 1 hour,\",\r\n\t\t\t\t\t\"or I cause earth/fire/water/mist in a 1 ft cube to shape itself into a form for 1 minute\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"breath of winter (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"Breath of Winter\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"6 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Cone of Cold without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Breath of Winter\",\r\n\t\t\t\t\tspells : [\"cone of cold\"],\r\n\t\t\t\t\tselection : [\"cone of cold\"],\r\n\t\t\t\t\tfirstCol : 6\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"cone of cold\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Breath of Winter discipline, I can cast Cone of Cold without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"clench of the north wind (prereq: level 6 monk)\" : {\r\n\t\t\t\tname : \"Clench of the North Wind\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"3 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Hold Person without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Clench of the North Wind\",\r\n\t\t\t\t\tspells : [\"hold person\"],\r\n\t\t\t\t\tselection : [\"hold person\"],\r\n\t\t\t\t\tfirstCol : 3\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 6; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"hold person\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Clench of the North Wind discipline, I can cast Hold Person without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"eternal mountain defense (prereq: level 17 monk)\" : { // errata from level 11 to level 17\r\n\t\t\t\tname : \"Eternal Mountain Defense\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Stoneskin on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Eternal Mountain Defense\",\r\n\t\t\t\t\tspells : [\"stoneskin\"],\r\n\t\t\t\t\tselection : [\"stoneskin\"],\r\n\t\t\t\t\tfirstCol : 5\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"stoneskin\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I gain resistance to nonmagical Bludgeoning, Piercing, and Slashing damage\",\r\n\t\t\t\t\t\tchanges : \"With the Eternal Mountain Defense discipline, I can cast Stoneskin without a material component but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fangs of the fire snake\" : {\r\n\t\t\t\tname : \"Fangs of the Fire Snake\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"With Attack action, my unarmed strikes +10 ft reach and deal fire damage this turn\",\r\n\t\t\t\t\t\"Also, I can spent an additional 1 ki point to cause an attack to deal +1d10 fire damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && (/^(?=.*fire)(?=.*snake).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'After hit, spend 1 ki point for +1d10 fire damage';\r\n\t\t\t\t\t\t\t\tfields.Range = 'Melee (15 ft reach)';\r\n\t\t\t\t\t\t\t\tfields.Damage_Type = 'fire';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the words 'Fire Snake' in the name of an unarmed strike, it gets +10 ft reach, does fire damage, and gains the option to deal +1d10 fire damage by spending 1 additional ki point.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fist of four thunders\" : {\r\n\t\t\t\tname : \"Fist of Four Thunders\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Thunderwave\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Fist of Four Thunders\",\r\n\t\t\t\t\tspells : [\"thunderwave\"],\r\n\t\t\t\t\tselection : [\"thunderwave\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"thunderwave\" : {\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Fist of Four Thunders discipline, I can cast Thunderwave.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fist of unbroken air\" : {\r\n\t\t\t\tname : \"Fist of Unbroken Air\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points; +1d10/extra ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, target within 30 ft takes 3d10 bludgeoning damage (spend ki for more)\",\r\n\t\t\t\t\t\"It is also pushed up to 20 ft away from me and knocked prone\",\r\n\t\t\t\t\t\"It can make a Strength save to halve damage and avoid being pushed and knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"flames of the phoenix (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Flames of the Phoenix\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Fireball without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Flames of the Phoenix\",\r\n\t\t\t\t\tspells : [\"fireball\"],\r\n\t\t\t\t\tselection : [\"fireball\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"fireball\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Flames of the Phoenix discipline, I can cast Fireball without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"gong of the summit (prereq: level 6 monk)\" : {\r\n\t\t\t\tname : \"Gong of the Summit\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"3 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Shatter without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Gong of the Summit\",\r\n\t\t\t\t\tspells : [\"shatter\"],\r\n\t\t\t\t\tselection : [\"shatter\"],\r\n\t\t\t\t\tfirstCol : 3\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 6; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"shatter\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Gong of the Summit discipline, I can cast Shatter without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"mist stance (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Mist Stance\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Gaseous Form on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mist Stance\",\r\n\t\t\t\t\tspells : [\"gaseous form\"],\r\n\t\t\t\t\tselection : [\"gaseous form\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"gaseous form\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I turn into a misty cloud with fly 10 ft, resist. to nonmagical dmg, adv. on Str/Dex/saves\",\r\n\t\t\t\t\t\tchanges : \"With the Mist Stance discipline, I can cast Gaseous Form without a material component, but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"ride the wind (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Ride the Wind\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Fly on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Ride the Wind\",\r\n\t\t\t\t\tspells : [\"fly\"],\r\n\t\t\t\t\tselection : [\"fly\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"fly\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I gain 60 ft flying speed\",\r\n\t\t\t\t\t\tchanges : \"With the Ride the Wind discipline, I can cast Fly without a material component but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"river of hungry flame (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"River of Hungry Flame\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Wall of Fire without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"River of Hungry Flame\",\r\n\t\t\t\t\tspells : [\"wall of fire\"],\r\n\t\t\t\t\tselection : [\"wall of fire\"],\r\n\t\t\t\t\tfirstCol : 5\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"wall of fire\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the River of Hungry Flame discipline, I can cast Wall of Fire without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"rush of the gale spirits\" : {\r\n\t\t\t\tname : \"Rush of the Gale Spirits\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Gust of Wind without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Rush of the Gale Spirits\",\r\n\t\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"gust of wind\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"With the Rush of the Gale Spirits discipline, I can cast Gust of Wind without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"shape the flowing river\" : {\r\n\t\t\t\tname : \"Shape the Flowing River\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can affect ice/water up to a 30-foot cube within 120 ft\",\r\n\t\t\t\t\t\"I can switch it between water/ice states and reshape ice up to half its largest dimension\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping cinder strike\" : {\r\n\t\t\t\tname : \"Sweeping Cinder Strike\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Burning Hands\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Sweeping Cinder Strike\",\r\n\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Sweeping Cinder Strike discipline, I can cast Burning Hands.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"water whip\" : {\r\n\t\t\t\tname : \"Water Whip\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points; +1d10/extra ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a creature within 30 ft takes 3d10 bludgeoning damage (spend ki for more)\",\r\n\t\t\t\t\t\"It is also knocked prone or pulled up to 25 ft closer to me (my choice)\",\r\n\t\t\t\t\t\"It can make a Dexterity save to halve damage and avoid being pulled or knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"wave of rolling earth (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"Wave of Rolling Earth\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"6 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Wall of Stone without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Wave of Rolling Earth\",\r\n\t\t\t\t\tspells : [\"wall of stone\"],\r\n\t\t\t\t\tselection : [\"wall of stone\"],\r\n\t\t\t\t\tfirstCol : 6\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"wall of stone\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"With the Wave of Rolling Earth discipline, I can cast Wall of Stone without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of shadow\", {\r\n\tregExpSearch : /^(?=.*shadow)((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of Shadow\",\r\n\tsubnameshort: \"Shadow\",\r\n\tsource : [[\"P\", 80]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Shadow Arts\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I know the Minor Illusion cantrip and can cast certain spells by using ki (see page 3)\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Shadow Arts\",\r\n\t\t\t\tspells : [\"minor illusion\"],\r\n\t\t\t\tselection : [\"minor illusion\"],\r\n\t\t\t}],\r\n\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\"shadow spells\" : {\r\n\t\t\t\tname : \"Shadow Spells\",\r\n\t\t\t\textraname : \"Shadow Arts\",\r\n\t\t\t\tsource : [[\"P\", 80]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can cast Darkness, Darkvision, Pass Without Trace, or Silence\",\r\n\t\t\t\t\t\"I don't require spell slots or material components to cast these spells like this, just ki points\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Shadow Arts\",\r\n\t\t\t\t\tspells : [\"darkness\", \"darkvision\", \"pass without trace\", \"silence\"],\r\n\t\t\t\t\tselection : [\"darkness\", \"darkvision\", \"pass without trace\", \"silence\"],\r\n\t\t\t\t\tfirstCol : 2,\r\n\t\t\t\t\ttimes : 4\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"shadow spells\" }],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"darkness\" : {\r\n\t\t\t\t\tcomponents : \"V\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"darkvision\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Shadow Step\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can teleport from and into dim light or darkness within 60 ft\",\r\n\t\t\t\t\"After I do this, I have adv. on the next melee attack I make before the end of my turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Cloak of Shadows\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"As an action, I can become invisible in dim light or darkness until I attack/cast\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Opportunist\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a reaction, if a creature in 5 ft is hit by another, I can make a melee attack vs. it\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the ancients\", {\r\n\tregExpSearch : /^(((?=.*(ancient|nature|natural|green|fey|horned))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))|((?=.*(green|fey|horned))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Ancients\",\r\n\tsubnameshort: \"Ancients\",\r\n\tsource : [[\"P\", 87]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Nature's Wrath\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a creature I can see within 10 ft must make a Str/Dex save (its choice)\",\r\n\t\t\t\t\"If it fails this save, it is restrained until it succeeds on a save at the end of its turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"ensnaring strike\", \"speak with animals\", \"moonbeam\", \"misty step\", \"plant growth\", \"protection from energy\", \"ice storm\", \"stoneskin\", \"commune with nature\", \"tree stride\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Turn the Faithless\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all fey/fiends within 30 ft that can hear me must make a Wisdom save\",\r\n\t\t\t\t\"If one fails, it is turned for 1 minute or until it takes damage and must show true form\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Warding\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"Allies within range and I have resistance to damage from spells\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"],\r\n\t\t\tdmgres : [\"Spells\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Undying Sentinel\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If dropped to 0 hit points and not killed outright, I can choose to stay at 1 hit point\",\r\n\t\t\t\t\"Additionally, I suffer no drawbacks of old age and can't be aged magically\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Elder Champion\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I assume the form of a force of nature for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 At the start of each of my turns, I regain 10 hit points\",\r\n\t\t\t\t\" \\u2022 I can cast paladin spells with a casting time of 1 action as a bonus action instead\",\r\n\t\t\t\t\" \\u2022 Enemies within 10 ft have disadv. on saves vs. my paladin spells and channel divinity\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of vengeance\", {\r\n\tregExpSearch : /^(((?=.*(vengeance|wrath|justice))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))|((?=.*dark)(?=.*knight))|(?=.*avenger)).*$/i,\r\n\tsubname : \"Oath of Vengeance\",\r\n\tsubnameshort: \"Vengeance\",\r\n\tsource : [[\"P\", 88]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure Enemy\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one creature within 60 ft that I can see me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is frightened and its speed is 0 despite bonuses; if success, its speed is halved\",\r\n\t\t\t\t\"This lasts for 1 minute or until it takes damage; Undead/fiends have disadv. on save\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"bane\", \"hunter's mark\", \"hold person\", \"misty step\", \"haste\", \"protection from energy\", \"banishment\", \"dimension door\", \"hold monster\", \"scrying\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Vow of Enmity\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I utter a vow against a creature I can see within 10 ft\",\r\n\t\t\t\t\"I get adv. on attacks against it for 1 minute or until it drops to 0 HP or falls unconscious\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Relentless Avenger\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"After I hit with an opportunity attack, I can move 1/2 my speed in the same reaction\",\r\n\t\t\t\t\"This movement doesn't provoke opportunity attacks\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Soul of Vengeance\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When an enemy I have an active Vow of Enmity against makes an attack, I can react\",\r\n\t\t\t\t\"As a reaction, I can make a melee weapon attack against it if it is within range\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (with Vow of Enmity)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Avenging Angel\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I gain a flying speed of 60 ft and a 30 ft aura of menace for 1 hour\",\r\n\t\t\t\t\"When a creature first enters or starts its turn in the aura, it must make a Wis save\",\r\n\t\t\t\t\"If failed, for 1 min or until it takes damage, it is frightened and attacks vs. it have adv.\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ranger\", \"beast master\", {\r\n\tregExpSearch : /^(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural|green))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Beast Master\",\r\n\tfullname : \"Beast Master\",\r\n\tsource : [[\"P\", 93]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger's Companion\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"It adds my proficiency bonus to AC, attacks, damage, and save/skill proficiencies\",\r\n\t\t\t\t\"Its hit point maximum equals four times my ranger level if higher than its normal HP\",\r\n\t\t\t\t\"It takes a turn on my initiative; It takes the Dodge action unless I command it otherwise\",\r\n\t\t\t\t\"As an action, I can have it take the Attack, Dash, Disengage, or Help action on its turn\",\r\n\t\t\t\t\"I can still use Extra Attack while commanding it to Attack; No action to order to move\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Beast \\u2264Medium and CR \\u22641/4\",\r\n\t\t\tcreaturesAdd : [[\"Ranger's Companion\", false, function(AddRemove, prefix) {\r\n\t\t\t\tif (!AddRemove) return;\r\n\t\t\t\tvar cObj = MakeCompMenu_CompOptions(prefix, \"justCompanions\");\r\n\t\t\t\tif (!cObj.companion || !cObj.companion.length) {\r\n\t\t\t\t\tvar selectedRace = \"Wolf\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar compOptions = cObj.companion.map(function(n) { return n[0] });\r\n\t\t\t\t\tvar selectedRace = AskUserOptions(\"Select Ranger's Companion\", \"Select which beast you would like to have as your ranger's companion.\\nThis can be any beast that is no larger than Medium and that has a challenge rating of 1/4 or lower.\\nYou can change the beast at any time using the \\\"Companion Options\\\" button at the top of the Companion page.\", compOptions, \"radio\", true);\r\n\t\t\t\t}\r\n\t\t\t\tApplyCompRace(selectedRace, prefix, \"companion\");\r\n\t\t\t}]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Exceptional Training\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My beast's attacks count as magical for overcoming resistances and immunities\",\r\n\t\t\t\t\"As a bonus action, I can command it to take the Dash/Disengage/Help action on its turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Bestial Fury\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"When I command my beast to use the Attack action, it can attack twice on its turn\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Share Spells\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"When I cast a spell on myself, I can have it also affect my beast if it is within 30 ft\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"arcane trickster\", {\r\n\tregExpSearch : /^(?=.*(trickster|rogue|miscreant))(?=.*\\b(eldritch|arcane|magic|mage|witch)\\b).*$/i,\r\n\tsubname : \"Arcane Trickster\",\r\n\tfullname : \"Arcane Trickster\",\r\n\tsource : [[\"P\", 98]],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 3,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tschool : [\"Ench\", \"Illus\"],\r\n\t\tlevel : [0, 4]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [0, 0, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\r\n\t\tspells : [0, 0, 2, 3, 3, 3, 4, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast known wizard cantrips/spells, using Intelligence as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"\", \"3 cantrips \\u0026 3 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 5 spells known\", \"3 cantrips \\u0026 6 spells known\", \"3 cantrips \\u0026 6 spells known\", \"4 cantrips \\u0026 7 spells known\", \"4 cantrips \\u0026 8 spells known\", \"4 cantrips \\u0026 8 spells known\", \"4 cantrips \\u0026 9 spells known\", \"4 cantrips \\u0026 10 spells known\", \"4 cantrips \\u0026 10 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 12 spells known\", \"4 cantrips \\u0026 13 spells known\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mage Hand cantrip\", // the Mage Hand cantrip gained at level 1\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"From any school\", // the spells gained at level 3, 8, 14, 20\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\ttimes : [0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4],\r\n\t\t\t\tlevel : [1, 4]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Mage Hand Legerdemain\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can direct my Mage Hand\",\r\n\t\t\t\t\"With a Dex (Sleight of Hand) vs. Wis (Perception) checks, I can do so discreetly\",\r\n\t\t\t\t\"I can make it invisible and perform the following tasks:\",\r\n\t\t\t\t\" \\u2022 Stow/retrieve an object the hand is holding in a container worn/carried by another\",\r\n\t\t\t\t\" \\u2022 Use thieves' tools to pick locks and disarm traps at range\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\tdescription : \"Invisible hand, carries 10 lb; 1 bns to control, use thieves' tools, or stow/retrieve obj; only 1 instance\",\r\n\t\t\t\t\tchanges : \"My Mage Hand Legerdemain class feature expands my use of the Mage Hand cantrip and makes the spectral hand invisible.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Magical Ambush\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"When I cast a spell while hidden, the target(s) have disadvantage against that spell\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Versatile Trickster\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc(\"As a bonus action, gain adv. on attacks this turn on creature within 5 ft of Mage Hand\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Spell Thief\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, after a spell is cast at me, I can try to negate and steal it\",\r\n\t\t\t\t\"The caster makes a save against my spell DC with his/her spellcasting ability\",\r\n\t\t\t\t\"On failure, the caster forgets how to cast that spell for eight hours\",\r\n\t\t\t\t\"If I have a spell slot of a high enough level for it, I learn how to cast it during this time\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"assassin\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*assassin).*$/i,\r\n\tsubname : \"Assassin\",\r\n\tfullname : \"Assassin\",\r\n\tsource : [[\"P\", 97]],\r\n\tabilitySave : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I am proficient with disguise kits and poisoner's kits\"),\r\n\t\t\ttoolProfs : [\"Disguise kit\", \"Poisoner's kit\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Assassinate\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have adv. on attack rolls against creatures that have not taken a turn in combat yet\",\r\n\t\t\t\t\"Any hit I score against a creature that is surprised is a critical hit\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Infiltration Expertise\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"I can create false identities in 7 days for 25 gp\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Imposter\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"After 3 hours of studying a person, I can mimic speech, writing, and behavior\",\r\n\t\t\t\t\"I have advantage on Charisma (Deception) checks to maintain this ruse\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Death Strike\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"When I hit a surprised creature, it must make a Con save or take double damage\"),\r\n\t\t\tadditional : \"Save DC: 8 + Dex mod + Proficiency bonus\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"wild magic\", {\r\n\tregExpSearch : /^(?=.*(mage|magus|sorcerer|witch))(?=.*(wild|chaos|chaotic|limbo)).*$/i,\r\n\tsubname : \"Wild Magic\",\r\n\tfullname : \"Wild Mage\",\r\n\tsource : [[\"P\", 103]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Wild Magic Surge\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Wild Magic Surges can happen 5% of the time that I cast a sorcerer spell\",\r\n\t\t\t\t\"This doesn't happen with cantrips and I only take this chance if the DM tells me to\",\r\n\t\t\t\t\"Metamagic can't affect spells cast because of the surge, but they require no concentration\",\r\n\t\t\t\t'\"See the \"Notes\" page for the table\"',\r\n\t\t\t]),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Magic Surge Table\",\r\n\t\t\t\tsource : [[\"P\", 104]],\r\n\t\t\t\tpopupName : \"Wild Mage's Wild Magic Surge Table, part 1\",\r\n\t\t\t\tadditional : \"results 01-50\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My spellcasting can unleash surges of untamed magic. Immediately after I cast a sorcerer spell of 1st level or higher, the DM can have me roll a d20. If I roll a 1, a Wild Magic Surge happens. Roll on the table below to create a random magical effect. A surge can happen only once per turn.\",\r\n\t\t\t\t\t\"If a Wild Magic effect is a spell, it's too wild to be affected by Metamagic. If it normally requires concentration, it doesn't require concentration in this case; the spell lasts for its full duration.\",\r\n\t\t\t\t\t\"d100  Effect\",\r\n\t\t\t\t\t\"01-02 Roll on this table at the start of each of your turns for the next minute, ignoring this result on subsequent rolls.\",\r\n\t\t\t\t\t\"03-04 For the next minute, you can see any invisible creature if you have line of sight to it.\",\r\n\t\t\t\t\t\"05-06 A modron chosen and controlled by the DM appears in an unoccupied space within 5 ft of you, then disappears 1 minute later.\",\r\n\t\t\t\t\t\"07-08 You cast fireball as a 3rd-level spell centered on yourself.\",\r\n\t\t\t\t\t\"09-10 You cast magic missile as a 5th-level spell.\",\r\n\t\t\t\t\t\"11-12 Roll a d10. Your height changes by a number of inches equal to the roll. If the roll is odd, you shrink. If the roll is even, you grow.\",\r\n\t\t\t\t\t\"13-14 You cast confusion centered on yourself.\",\r\n\t\t\t\t\t\"15-16 For the next minute, you regain 5 hit points at the start of each of your turns.\",\r\n\t\t\t\t\t\"17-18 You grow a long beard made of feathers that remains until you sneeze, at which point the feathers explode out from your face.\",\r\n\t\t\t\t\t\"19-20 You cast grease centered on yourself.\",\r\n\t\t\t\t\t\"21-22 Creatures have disadvantage on saving throws against the next spell you cast in the next minute that involves a saving throw.\",\r\n\t\t\t\t\t\"23-24 Your skin turns a vibrant shade of blue. A remove curse spell can end this effect.\",\r\n\t\t\t\t\t\"25-26 An eye appears on your forehead for the next minute.\",\r\n\t\t\t\t\t\"27-28 For the next minute, all your spells with a casting time feet of 1 action have a casting time of 1 bonus action.\",\r\n\t\t\t\t\t\"29-30 You teleport up to 60 ft to an unoccupied space of your choice that you can see.\",\r\n\t\t\t\t\t\"31-32 You are transported to the Astral Plane until the end of your next turn, after which time you return to the space you previously occupied or the nearest unoccupied space if that space is occupied.\",\r\n\t\t\t\t\t\"33-34 Maximize the damage of the next damaging spell you cast within the next minute.\",\r\n\t\t\t\t\t\"35-36 Roll a d10. Your age changes by a number of years equal to the roll. If the roll is odd, you get younger (minimum 1 year old). If the roll is even, you get older.\",\r\n\t\t\t\t\t\"37-38 1d6 flumphs controlled by the DM appear in unoccupied spaces within 60 ft of you and are frightened of you. They vanish after 1 minute.\",\r\n\t\t\t\t\t\"39-40 You regain 2d10 hit points.\",\r\n\t\t\t\t\t\"41-42 You turn into a potted plant until the start of your next turn. While a plant, you are incapacitated and have vulnerability to all damage. If you drop to 0 hit points, your pot breaks, and your form reverts.\",\r\n\t\t\t\t\t\"43-44 For the next minute, you can teleport up to 20 ft as a bonus action on each of your turns.\",\r\n\t\t\t\t\t\"45-46 You cast levitate on yourself.\",\r\n\t\t\t\t\t\"47-48 A unicorn controlled by the DM appears in a space within 5 ft of you, then disappears 1 minute later.\",\r\n\t\t\t\t\t\"49-50 You can't speak for the next minute. Whenever you try, pink bubbles float out of your mouth.\"\r\n\t\t\t\t]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Wild Magic Surge Table\",\r\n\t\t\t\tsource : [[\"P\", 104]],\r\n\t\t\t\tpopupName : \"Wild Mage's Wild Magic Surge Table, part 2\",\r\n\t\t\t\tadditional : \"results 51-100\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"d100  Effect\",\r\n\t\t\t\t\t\"51-52 A spectral shield hovers near you for the next minute, granting you a +2 bonus to AC and immunity to magic missile.\",\r\n\t\t\t\t\t\"53-54 You are immune to being intoxicated by alcohol for the next 5d6 days.\",\r\n\t\t\t\t\t\"55-56 Your hair falls out but grows back within 24 hours.\",\r\n\t\t\t\t\t\"57-58 For the next minute, any flammable object you touch that isn't being worn or carried by another creature bursts into flame.\",\r\n\t\t\t\t\t\"59-60 You regain your lowest-level expended spell slot.\",\r\n\t\t\t\t\t\"61-62 For the next minute, you must shout when you speak.\",\r\n\t\t\t\t\t\"63-64 You cast fog cloud centered on yourself.\",\r\n\t\t\t\t\t\"65-66 Up to three creatures you choose within 30 ft of you take 4d10 lightning damage.\",\r\n\t\t\t\t\t\"67-68 You are frightened by the nearest creature until the end of your next turn.\",\r\n\t\t\t\t\t\"69-70 Each creature within 30 ft of you becomes invisible for the next minute. The invisibility ends on a creature when it attacks or casts a spell.\",\r\n\t\t\t\t\t\"71-72 You gain resistance to all damage for the next minute.\",\r\n\t\t\t\t\t\"73-74 A random creature within 60 ft of you becomes poisoned for 1d4 hours.\",\r\n\t\t\t\t\t\"75-76 You glow with bright light in a 30-ft radius for the next minute. Any creature that ends its turn within 5 ft of you is blinded until the end of its next turn.\",\r\n\t\t\t\t\t\"79-80 Illusory butterflies and flower petals flutter in the air within 10 ft of you for the next minute.\",\r\n\t\t\t\t\t\"77-78 You cast polymorph on yourself. If you fail the saving throw, you turn into a sheep for the spell's duration.\",\r\n\t\t\t\t\t\"81-82 You can take one additional action immediately.\",\r\n\t\t\t\t\t\"83-84 Each creature within 30 ft of you takes 1d10 necrotic damage. You regain hit points equal to the sum of the necrotic damage dealt.\",\r\n\t\t\t\t\t\"85-86 You cast mirror image.\",\r\n\t\t\t\t\t\"87-88 You cast fly on a random creature within 60 ft of you.\",\r\n\t\t\t\t\t\"89-90 You become invisible for the next minute. During that time, other creatures can't hear you. The invisibility ends if you attack or cast a spell.\",\r\n\t\t\t\t\t\"91-92 If you die within the next minute, you immediately come back to life as if by the reincarnate spell.\",\r\n\t\t\t\t\t\"93-94 Your size increases by one size category for the next minute.\",\r\n\t\t\t\t\t\"95-96 You and all creatures within 30 ft of you gain vulnerability to piercing damage for the next minute.\",\r\n\t\t\t\t\t\"97-98 You are surrounded by faint, ethereal music for the next minute.\",\r\n\t\t\t\t\t\"99-100 You regain all expended sorcery points.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Tides of Chaos\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can gain advantage on either one attack roll, ability check, or saving throw\",\r\n\t\t\t\t\"After I cast a 1st-level or higher sorcerer spell, the DM can impose a Wild Magic Surge\",\r\n\t\t\t\t\"After I roll on the Wild Magic Surge table, I regain my use of Tides of Chaos\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bend Luck\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction, I can add/subtract 1d4 from another's attack roll, ability check, or save\"),\r\n\t\t\taction : [[\"reaction\", \" (2 sorcery points)\"]],\r\n\t\t\tadditional : \"2 sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Controlled Chaos\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Whenever I roll on the Wild Magic Surge table, I can roll twice and use either result\")\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Spell Bombardment\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per turn, when I roll spell damage, I can take one damage die that rolled max\",\r\n\t\t\t\t\"I can then roll this die again and add it to the spell's damage\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the archfey\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*warlock).*$/i,\r\n\tsubname : \"the Archfey\",\r\n\tsource : [[\"P\", 109]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"calm emotions\", \"phantasmal force\", \"blink\", \"plant growth\", \"dominate beast\", \"greater invisibility\", \"dominate person\", \"seeming\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Fey Presence\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all creatures in a 10-ft cube around me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, they're all charmed or frightened (my choice) until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Misty Escape\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when I take damage, I can turn invisible and teleport up to 60 ft\",\r\n\t\t\t\t\"I stay invisible until the start of my next turn or until I attack or cast a spell\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (taking damage)\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Beguiling Defenses\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when a creature tries to charm me, I can turn the charm back on it\",\r\n\t\t\t\t\"It must make a Wis save or be charmed by me for 1 minute or until taking damage\",\r\n\t\t\t\t\"I am immune to being charmed\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when charmed)\"]],\r\n\t\t\tsavetxt : { immune : [\"charmed\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Dark Delirium\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a creature within 60 ft must make a Wis save or be charmed/frightened\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration is broken or it takes damage\",\r\n\t\t\t\t\"During this time, it can't see or hear anything but the illusion, me, and itself\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the great old one\", {\r\n\tregExpSearch : /^(((?=.*(tharizdun|cthulhu))(?=.*warlock))|((?=.*(great|dread))(?=.*(ancient|old))(?=.*\\b(one|entity)\\b))).*$/i,\r\n\tsubname : \"the Great Old One\",\r\n\tsource : [[\"P\", 110]],\r\n\tspellcastingExtra : [\"dissonant whispers\", \"tasha's hideous laughter\", \"detect thoughts\", \"phantasmal force\", \"clairvoyance\", \"sending\", \"dominate beast\", \"evard's black tentacles\", \"dominate person\", \"telekinesis\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Awakened Mind\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can telepathically speak to creatures I can see within 30 ft if they know a language\"), // 'to' not 'with', so one-way\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Entropic Ward\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when I'm attacked, I can impose disadvantage to that attack roll\",\r\n\t\t\t\t\"If it misses me, I have adv. on my next attack vs. the attacker during my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Thought Shield\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"No one can read my mind unless I allow it; I have resistance to psychic damage\",\r\n\t\t\t\t\"When I take psychic damage, the dealer of the psychic damage takes the same amount\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Psychic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Create Thrall\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can charm an incapacitated humanoid by touch\",\r\n\t\t\t\t\"While it is charmed, I can communicate with it telepathically if it is on the same plane\",\r\n\t\t\t\t\"This lasts until the charm is removed (can be by Remove Curse) or I use this again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"abjuration\", {\r\n\tregExpSearch : /abjuration|abjurer/i,\r\n\tsubname : \"School of Abjuration\",\r\n\tsubnameshort: \"Abjuration\",\r\n\tfullname : \"Abjurer\",\r\n\tsource : [[\"P\", 115]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Abjuration Savant\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy abjuration spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Arcane Ward\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Whenever I cast an 1st-level or higher abjuration spell, I make/heal a ward\",\r\n\t\t\t\t\"I make it at max HP; When I cast again, it heals two HP per spell level\",\r\n\t\t\t\t\"It stays active at 0 HP and doesn't go away until my next long rest\",\r\n\t\t\t\t\"If I take damage, the ward takes the damage instead, but excess damage carries over\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"Ward max HP: \" + (n * 2) + \"+Int mod\";\r\n\t\t\t}),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Projected Ward\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction, my Arcane Ward can absorb damage done to a creature within 30 ft\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Abjuration\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"When I cast an abjuration spell requiring an ability check, I add my proficiency bonus\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"dispel magic\" || spellKey === \"counterspell\") {\r\n\t\t\t\t\t\t\tvar profB = Number(How(\"Proficiency Bonus\"));\r\n\t\t\t\t\t\t\tvar checkStr = \"(\" + AbilityScores.names.join(\"|\") + \"|spell(casting)?( ability )?) check\";\r\n\t\t\t\t\t\t\tvar checkRx = RegExp(checkStr + \" \\\\(([+-]?\\\\d+)\\\\)\", \"i\");\r\n\t\t\t\t\t\t\tvar theBonus = profB;\r\n\t\t\t\t\t\t\tif (checkRx.test(spellObj.description)) {\r\n\t\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(checkRx);\r\n\t\t\t\t\t\t\t\ttheBonus += Number(theMatch[2]);\r\n\t\t\t\t\t\t\t\tif (tDoc.getField(\"Remarkable Athlete\").isBoxChecked(0) === 1 && theMatch[1].test(/Str|Dex|Con/i)) {\r\n\t\t\t\t\t\t\t\t\ttheBonus -= Math.ceil(profB/2);\r\n\t\t\t\t\t\t\t\t} else if (tDoc.getField(\"Jack of All Trades\").isBoxChecked(0) === 1) {\r\n\t\t\t\t\t\t\t\t\ttheBonus -= Math.floor(profB/2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(RegExp(checkStr, \"i\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(theMatch[0], theMatch[1] + \" check (\" + (theBonus >= 0 ? \"+\" : \"\") + theBonus + \")\");\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my proficiency bonus to ability checks required by abjuration spells. This is shown on the spell sheet by a lowered DC or higher bonus on the check.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spell Resistance\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I have adv. on spell saves and resistance to damaging spells\"),\r\n\t\t\tdmgres : [\"Spells\"],\r\n\t\t\tsavetxt : { adv_vs : [\"spells\"] }\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"conjuration\", {\r\n\tregExpSearch : /conjuration|conjurer/i,\r\n\tsubname : \"School of Conjuration\",\r\n\tsubnameshort: \"Conjuration\",\r\n\tfullname : \"Conjurer\",\r\n\tsource : [[\"P\", 116]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Conjuration Savant\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy conjuration spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Minor Conjuration\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can conjure an object up to 3 ft on each side and no more than 10 lbs\",\r\n\t\t\t\t\"It must be of a form of a nonmagical object I have seen and is created within 10 ft\",\r\n\t\t\t\t\"The object disappears after 1 hour, if it takes or deals damage, or when I use this again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Benign Transposition\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can teleport to a place within 30 ft that I can see\",\r\n\t\t\t\t\"Instead, I can swap places with a willing Small/Medium creature in 30 ft that I can see\",\r\n\t\t\t\t\"I can do this again after a long rest or casting a 1st-level or higher conjuration spell\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Focused Conjuration\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While I am concentrating on a conjuration spell, it can't be broken by taking damage\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Durable Summons\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Any creature I summon or create with a conjuration spell has 30 temporary hit points\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey.indexOf(\"conjure\") !== -1 && !(/barrage|volley|knowbot/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/verbal commands/i, \"command\").replace(/^summon /i, '') + \"; +30 temp hp\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t} else if ((/find (greater )?(steed|familiar)/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/Gain the services of a ([^;]+)/i, \"A $1 (+30 temp hp)\");\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Any creature I summon or create with a conjuration spell gains 30 temporary hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"divination\", {\r\n\tregExpSearch : /divination|diviner|divinator/i,\r\n\tsubname : \"School of Divination\",\r\n\tsubnameshort: \"Divination\",\r\n\tfullname : \"Diviner\",\r\n\tsource : [[\"P\", 116]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Divination Savant\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy divination spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Portent\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After a long rest, I roll dice and keep the results to be used before my next long rest\",\r\n\t\t\t\t\"A result can replace an attack/save/ability check made by me or a creature I can see\",\r\n\t\t\t\t\"I choose to switch them before the dice to be replaced are rolled; Max once per turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 14 ? 2 : 3) + \"d20 after a long rest\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Expert Divination\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I cast a divination spell, I recover a spell slot of a lower level than the one I cast\"),\r\n\t\t\tadditional : \"Spell slot < 6th-level\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"The Third Eye\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I gain one of the following until my next short or long rest:\",\r\n\t\t\t\t\"Darkvision 60ft, see the Ethereal Plane 60ft, read any language, or see invisibility 10ft\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Greater Portent\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can roll 3d20 instead of 2d20 when using my Portent feature\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"enchantment\", {\r\n\tregExpSearch : /enchantment|enchanter/i,\r\n\tsubname : \"School of Enchantment\",\r\n\tsubnameshort: \"Enchantment\",\r\n\tfullname : \"Enchanter\",\r\n\tsource : [[\"P\", 117]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Enchantment Savant\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy enchantment spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Hypnotic Gaze\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a seen enemy within 5 ft must make a Wis save or be charmed\",\r\n\t\t\t\t\"This doesn't work if it can't see/hear me; It's also incapacitated and reduced to 0 speed\",\r\n\t\t\t\t\"This lasts until the end of my next turn, but I can use an action to extend the duration\",\r\n\t\t\t\t\"It also ends if it takes damage, can't see or hear me, or is more than 5 ft from me\",\r\n\t\t\t\t\"On success or once it ends, I can't use this on it again until after a long rest\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Instinctive Charm\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when someone I can see in 30 ft attacks me, it must make a Wis save\",\r\n\t\t\t\t\"If failed, it must instead attack the closest creature within range (not me or self)\",\r\n\t\t\t\t\"On a success, the target is immune to this until after my long rest; This is a charm effect\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Split Enchantment\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I cast an enchantment spell with only one target, I can target a second in range\",\r\n\t\t\t\t\"This does not apply to cantrips\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || !spellObj.level || spellObj.school !== \"Ench\") return;\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch(spellKey) {\r\n\t\t\t\t\t\t\tcase \"animal messenger\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Tiny beast delivers\", \"2 tiny beasts deliver single\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"antipathy/sympathy\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Creature,\", \"2 crea, 1\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"heroism\" :\r\n\t\t\t\t\t\t\tcase \"command\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/, halt| as spell lasts/i, \"\");\r\n\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1+1/SL\", \"2 or 1+1/SL\").replace(/1 (crea(ture)?|beast|humanoid)/i, \"2 $1s\").replace(/creas\\b/gi, \"crea\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My enchantment, single-target 1st-level or higher spells can affect two targets instead of only one.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Alter Memories\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I cast an enchantment spell that charms, I can have one target be unaware of it\",\r\n\t\t\t\t\"Also, once before that spell ends, I can have that target forget time while affected\",\r\n\t\t\t\t\"It must make an Intelligence save or lose up to 1 + Charisma modifier hours of memory\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"illusion\", {\r\n\tregExpSearch : /illusion|illusionist|illusionary/i,\r\n\tsubname : \"School of Illusion\",\r\n\tsubnameshort: \"Illusion\",\r\n\tfullname : \"Illusionist\",\r\n\tsource : [[\"P\", 118]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Illusion Savant\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy illusion spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Improved Minor Illusion\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain the knowledge of the Minor Illusion cantrip (or another if I already knew it)\",\r\n\t\t\t\t\"When I cast it, I can create both a sound and an image with a single casting\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Minor Illusion cantrip\",\r\n\t\t\t\tspells : [\"minor illusion\"],\r\n\t\t\t\tselection : [\"minor illusion\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"minor illusion\" : {\r\n\t\t\t\t\tdescription : \"5-ft cube illusion includes visible and audible; Int(Investigation) check vs. Spell DC; see book\",\r\n\t\t\t\t\tchanges : \"My Improved Minor Illusion class feature allows me to make both a sound and an image with a single casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Malleable Illusion\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"After I cast an illusion spell that lasts 1 min or longer, I can use an action to change it\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Illusory Self\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"As a reaction, when I'm attacked, I can impose an illusion that makes the attack miss\"),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Illusory Reality\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, after I cast a 1st-level or higher illusion spell, I can make it real\",\r\n\t\t\t\t\"One inanimate, nonmagical object that is part of the illusion becomes real for 1 minute\",\r\n\t\t\t\t\"The object can't be something that directly harms someone\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"necromancy\", {\r\n\tregExpSearch : /necromancy|necromancer|necromantic/i,\r\n\tsubname : \"School of Necromancy\",\r\n\tsubnameshort: \"Necromancy\",\r\n\tfullname : \"Necromancer\",\r\n\tsource : [[\"P\", 118]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Necromancy Savant\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy necromancy spells into my spellbook\"),\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Grim Harvest\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per turn, when I kill something with a 1st-level or higher spell, I regain hit points\",\r\n\t\t\t\t\"The number of hit points regained is 2\\xD7 the spell's level (or 3\\xD7 with necromancy spells)\",\r\n\t\t\t\t\"This doesn't occur for constructs/undead\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Undead Thralls\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add Animate Dead to my spellbook and can have an additional target when casting it\",\r\n\t\t\t\t\"Undead created by my necromancy spells have the following benefits:\",\r\n\t\t\t\t\"They add my proficiency bonus to damage and my wizard level to their HP maximums\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Undead Thralls\",\r\n\t\t\t\tspells : [\"animate dead\"],\r\n\t\t\t\tselection : [\"animate dead\"],\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"animate dead\" : {\r\n\t\t\t\t\tdescription : \"Turn corpses into 2+2/SL Skeletons or Zombies; control for 24h; bns a command within 60 ft\",\r\n\t\t\t\t\tchanges : \"My Undead Thralls class feature allows me to animate one more corpse than normal with Animate Dead.\",\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Inured to Undead\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I have resistance to necrotic damage and my hit point maximum can't be reduced\"),\r\n\t\t\tdmgres : [\"Necrotic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Command Undead\",\r\n\t\t\tsource : [[\"P\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, an undead within 60 ft that I can see must make a Charisma save\",\r\n\t\t\t\t\"If its Int is > 7, it has adv. on the save; If its Int is > 11, it repeats the save every hour\",\r\n\t\t\t\t\"If failed, it becomes friendly to me and obeys my commands until I use this on another\",\r\n\t\t\t\t\"On success, it becomes permanently immune to my further attempts\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"transmutation\", {\r\n\tregExpSearch : /transmutation|transmuter/i,\r\n\tsubname : \"School of Transmutation\",\r\n\tsubnameshort: \"Transmutation\",\r\n\tfullname : \"Transmuter\",\r\n\tsource : [[\"P\", 119]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Transmutation Savant\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy transmutation spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Minor Alchemy\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can transform an object of wood/stone/iron/copper/silver into another of those\",\r\n\t\t\t\t\"For each 10 min I spend, I can transform up to 1 cubic foot of the material\",\r\n\t\t\t\t\"It reverts back when I lose concentration or after 1 hour\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Transmuter's Stone\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In 8 hours, I can create a transmuter's stone that gives its wielder one of the following:\",\r\n\t\t\t\t\" \\u2022 Darkvision 60 ft\",\r\n\t\t\t\t\" \\u2022 10 ft increase to speed while unencumbered\",\r\n\t\t\t\t\" \\u2022 Proficiency in Constitution saving throws\",\r\n\t\t\t\t\" \\u2022 Resistance to either acid, cold, fire, lightning, or thunder damage\",\r\n\t\t\t\t\"The benefit is chosen at creation; I can have only one active stone at a time\",\r\n\t\t\t\t\"I can change the benefit when I cast a 1st-level or higher transmutation spell with it\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shapechanger\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add Polymorph to my spellbook; I can cast it on myself without using a spell slot\",\r\n\t\t\t\t\"When I do that, I can only transform into a beast with a challenge rating of 1 or lower\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Add to spellbook\",\r\n\t\t\t\tspells : [\"polymorph\"],\r\n\t\t\t\tselection : [\"polymorph\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"1/SR no spell slot\",\r\n\t\t\t\tspells : [\"polymorph\"],\r\n\t\t\t\tselection : [\"polymorph\"],\r\n\t\t\t\tfirstCol : \"oncesr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"polymorph\" : {\r\n\t\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tdescription : \"I transformed into a beast of my choice with a CR 1 or lower; see book\",\r\n\t\t\t\t\tchanges : \"Using my Shapechanger class feature, I can cast Polymorph once per short rest without using a spell slot, but when I do so I can only cast it on myself and transform into a beast.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Transmuter\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can destroy my transmuter's stone and do one of the four following:\",\r\n\t\t\t\t\"##\\u2022 Major Transformation##.\",\r\n\t\t\t\t\"  In 10 minutes, I transmute one nonmagical object up to 5 cubic foot into another\",\r\n\t\t\t\t\"  This new, nonmagical object must be of similar size and mass and equal or less value\",\r\n\t\t\t\t\"##\\u2022 Panacea##.\",\r\n\t\t\t\t\"  One touched has all curses, diseases, and poisons removed and is healed to max HP\",\r\n\t\t\t\t\"##\\u2022 Restore Life##.\",\r\n\t\t\t\t\"  I cast Raise Dead without using spell slots or needing to have it in my spellbook\",\r\n\t\t\t\t\"##\\u2022 Restore Youth##.\",\r\n\t\t\t\t\"  A touched creature's apparent age is reduced by 3d10 years (to a minimum of 13)\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Companions\r\nCompanionList[\"undead_thrall\"] = {\r\n\tname: \"Undead Thralls\",\r\n\tnameOrigin: \"School of Necromancy 6\",\r\n\tnameMenu : \"Undead Thrall (School of Necromancy feature)\",\r\n\tsource: [[\"P\", 119]],\r\n\tincludeCheck: function(sCrea, objCrea, iCreaCR, bIsAL) {\r\n\t\treturn /undead/i.test(objCrea.type);\r\n\t},\r\n\tattributesChange: function(sCrea, objCrea) {\r\n\t\tobjCrea.hp += classes.known.wizard ? classes.known.wizard.level : classes.totallevel;\r\n\t\tif (!objCrea.attacks) return;\r\n\t\tobjCrea.attacks = objCrea.attacks.map(function(oAtk) {\r\n\t\t\tif (oAtk.abilitytodamage !== false && !oAtk.dc) {\r\n\t\t\t\tif (!oAtk.modifiers) {\r\n\t\t\t\t\toAtk.modifiers = [\"\", \"oProf\"];\r\n\t\t\t\t} else {\r\n\t\t\t\t\toAtk.modifiers[1] += \"+oProf\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn oAtk;\r\n\t\t});\r\n\t},\r\n\tcalcChanges: {\r\n\t\thp: function (totalHD, HDobj, prefix) {\r\n\t\t\tif (classes.known.wizard) {\r\n\t\t\t\treturn [classes.known.wizard.level, \"Undead Thralls (wizard level)\"];\r\n\t\t\t} else {\r\n\t\t\t\treturn [classes.totallevel, \"Undead Thralls (character level)\"];\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tnotes: [{\r\n\t\tname: \"Undead I create with a necromancy spell\",\r\n\t\tdescription: \"add my wizard level to their hit point maximum and add my proficiency bonus to their weapon damage rolls.\",\r\n\t\tjoinString: \" \",\r\n\t}],\r\n\teval: function(prefix, lvl) {\r\n\t\t// Set HP to use average value, so that the level bonus is automatically included\r\n\t\tvar sHPfld = prefix + \"Comp.Use.HP.Max\";\r\n\t\tvar aHPsets = How(sHPfld).split(\",\");\r\n\t\taHPsets[3] = \"average\";\r\n\t\tAddTooltip(sHPfld, undefined, aHPsets.toString());\r\n\t},\r\n};\r\n\r\n// Add the backgrounds that are not in the SRD\r\nBackgroundList[\"charlatan\"] = {\r\n\tregExpSearch : /charlatan/i,\r\n\tname : \"Charlatan\",\r\n\tsource : [[\"P\", 128], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Sleight of Hand\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Tools for chosen con\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"False Identity\",\r\n\ttrait : [\r\n\t\t\"I fall in and out of love easily, and am always pursuing someone.\",\r\n\t\t\"I have a joke for every occasion, especially occasions where humor is inappropriate.\",\r\n\t\t\"Flattery is my preferred trick for getting what I want.\",\r\n\t\t\"I'm a born gambler who can't resist taking a risk for a potential payoff.\",\r\n\t\t\"I lie about almost everything, even when there's no good reason to.\",\r\n\t\t\"Sarcasm and insults are my weapons of choice.\",\r\n\t\t\"I keep multiple holy symbols on me and invoke whatever deity might come in useful at any given moment.\",\r\n\t\t\"I pocket anything I see that might have some value.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: I am a free spirit \\u2015 no one tells me what to do. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: I never target people who can't afford to lose a few coins. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Charity\",\r\n\t\t\t\"Charity: I distribute the money I acquire to the people who really need it. (Good)\"\r\n\t\t],\r\n\t\t[\"Creativity\",\r\n\t\t\t\"Creativity: I never run the same con twice. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Friendship\",\r\n\t\t\t\"Friendship: Material goods come and go. Bonds of friendship last forever. (Good)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I'm determined to make something of myself. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I fleeced the wrong person and must work to ensure that this individual never crosses paths with me or those I care about.\",\r\n\t\t\"I owe everything to my mentor \\u2015 a horrible person who's probably rotting in jail somewhere.\",\r\n\t\t\"Somewhere out there, I have a child who doesn't know me. I'm making the world better for him or her.\",\r\n\t\t\"I come from a noble family, and one day I'll reclaim my lands and title from those who stole them from me.\",\r\n\t\t\"A powerful person killed someone I love. Someday soon, I'll have my revenge.\",\r\n\t\t\"I swindled and ruined a person who didn't deserve it. I seek to atone for my misdeeds but might never be able to forgive myself.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I can't resist a pretty face.\",\r\n\t\t\"I'm always in debt. I spend my ill-gotten gains on decadent luxuries faster than I bring them in.\",\r\n\t\t\"I'm convinced that no one could ever fool me the way I fool others.\",\r\n\t\t\"I'm too greedy for my own good. I can't resist taking a risk if there's money involved.\",\r\n\t\t\"I can't resist swindling people who are more powerful than me.\",\r\n\t\t\"I hate to admit it and will hate myself for it, but I'll run and preserve my own hide if the going gets tough.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Favorite Scheme\",\r\n\t\t\"Cheat at games of chance\",\r\n\t\t\"Shave coins, forge documents\",\r\n\t\t\"User/manipulator\",\r\n\t\t\"Change identity\",\r\n\t\t\"Sleight-of-hand cons\",\r\n\t\t\"Sell junk as expensive necessities\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", \"Forgery kit\"],\r\n\tlifestyle : \"comfortable\"\r\n};\r\nBackgroundList[\"criminal\"] = {\r\n\tregExpSearch : /criminal/i,\r\n\tname : \"Criminal\",\r\n\tsource : [[\"P\", 129], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Dark, common clothes with hood\", \"\", 3],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Criminal Contact\",\r\n\ttrait : [\r\n\t\t\"I always have a plan for what to do when things go wrong.\",\r\n\t\t\"I am always calm, no matter the situation. I never raise my voice or let my emotions control me.\",\r\n\t\t\"The first thing I do in a new place is note the locations of everything valuable \\u2015 or where such things could be hidden.\",\r\n\t\t\"I would rather make a new friend than a new enemy.\",\r\n\t\t\"I am incredibly slow to trust. Those who seem the fairest often have the most to hide.\",\r\n\t\t\"I don't pay attention to the risks in a situation. Never tell me the odds.\",\r\n\t\t\"The best way to get me to do something is to tell me I can't do it.\",\r\n\t\t\"I blow up at the slightest insult.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Honor\",\r\n\t\t\t\"Honor: I don't steal from others in the trade. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Chains are meant to be broken, as are those who would forge them. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Charity\",\r\n\t\t\t\"Charity: I steal from the wealthy so that I can help people in need. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I will do whatever it takes to become wealthy. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm loyal to my friends, not to any ideals, and everyone else can take a trip down the Styx for all I care. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Redemption\",\r\n\t\t\t\"Redemption: There's a spark of good in everyone. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'm trying to pay off an old debt I owe to a generous benefactor.\",\r\n\t\t\"My ill-gotten gains go to support my family.\",\r\n\t\t\"Something important was taken from me, and I aim to steal it back.\",\r\n\t\t\"I will become the greatest thief that ever lived.\",\r\n\t\t\"I'm guilty of a terrible crime. I hope I can redeem myself for it.\",\r\n\t\t\"Someone I loved died because of a mistake I made. That will never happen again.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"When I see something valuable, I can't think about anything but how to steal it.\",\r\n\t\t\"When faced with a choice between money and my friends, I usually choose the money.\",\r\n\t\t\"If there's a plan, I'll forget it. If I don't forget it, I'll ignore it.\",\r\n\t\t\"I have a \\\"tell\\\" that reveals when I'm lying.\",\r\n\t\t\"I turn tail and run when things look bad.\",\r\n\t\t\"An innocent person is in prison for a crime that I committed. I'm okay with that.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Criminal Specialty\",\r\n\t\t\"Blackmailer\",\r\n\t\t\"Burglar\",\r\n\t\t\"Enforcer\",\r\n\t\t\"Fence\",\r\n\t\t\"Highway robber\",\r\n\t\t\"Hired killer\",\r\n\t\t\"Pickpocket\",\r\n\t\t\"Smuggler\",\r\n\t\t\"Spy\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"entertainer\"] = {\r\n\tregExpSearch : /(entertainer|actor|dancer|fire.?eater|jester|juggler|instrumentalist|poet|singer|storyteller|tumbler)/i,\r\n\tname : \"Entertainer\",\r\n\tsource : [[\"P\", 130], [\"ALbackground\", 0]],\r\n\tskills : [\"Acrobatics\", \"Performance\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Costume\", \"\", 4],\r\n\t\t[\"Favor of an admirer\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"By Popular Demand\",\r\n\ttrait : [\r\n\t\t\"I know a story relevant to almost every situation.\",\r\n\t\t\"Whenever I come to a new place, I collect local rumors and spread gossip.\",\r\n\t\t\"I'm a hopeless romantic, always searching for that 'special someone'.\",\r\n\t\t\"Nobody stays angry at me or around me for long, since I can defuse any amount of tension.\",\r\n\t\t\"I love a good insult, even one directed at me.\",\r\n\t\t\"I get bitter if I'm not the center of attention.\",\r\n\t\t\"I'll settle for nothing less than perfection.\",\r\n\t\t\"I change my mood or my mind as quickly as I change key in a song.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Beauty\",\r\n\t\t\t\"Beauty: When I perform, I make the world better than it was. (Good)\"\r\n\t\t],\r\n\t\t[\"Tradition\",\r\n\t\t\t\"Tradition: The stories, legends, and songs of the past must never be forgotten, for they teach us who we are. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Creativity\",\r\n\t\t\t\"Creativity: The world is in need of new ideas and bold action. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I'm only in it for the money and fame. [Evil]\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I like seeing the smiles on people's faces when I perform. That's all that matters. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Honesty\",\r\n\t\t\t\"Honesty: Art should reflect the soul; it should come from within and reveal who we really are. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My instrument is my most treasured possession, and it reminds me of someone I love.\",\r\n\t\t\"Someone stole my precious instrument, and someday I'll get it back.\",\r\n\t\t\"I want to be famous, whatever it takes.\",\r\n\t\t\"I idolize a hero of the old tales and measure my deeds against that person's.\",\r\n\t\t\"I will do anything to prove myself superior to my hated rival.\",\r\n\t\t\"I would do anything for the other members of my old troupe.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'll do anything to win fame and renown.\",\r\n\t\t\"I'm a sucker for a pretty face.\",\r\n\t\t\"A scandal prevents me from ever going home again. That kind of trouble seems to follow me around.\",\r\n\t\t\"I once satirized a noble who still wants my head. It was a mistake that I will likely repeat.\",\r\n\t\t\"I have trouble keeping my true feelings hidden. My sharp tongue lands me in trouble.\",\r\n\t\t\"Despite my best efforts, I am unreliable to my friends.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Entertainer Routine\",\r\n\t\t\"Actor\",\r\n\t\t\"Dancer\",\r\n\t\t\"Fire-eater\",\r\n\t\t\"Jester\",\r\n\t\t\"Juggler\",\r\n\t\t\"Instrumentalist\",\r\n\t\t\"Poet\",\r\n\t\t\"Singer\",\r\n\t\t\"Storyteller\",\r\n\t\t\"Tumbler\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", [\"Musical instrument\", 1]],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"folk hero\"] = {\r\n\tregExpSearch : /^(?=.*folk)(?=.*hero).*$/i,\r\n\tname : \"Folk Hero\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Shovel\", \"\", 5],\r\n\t\t[\"Iron pot\", \"\", 10]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Rustic Hospitality\",\r\n\ttrait : [\r\n\t\t\"I judge people by their actions, not their words.\",\r\n\t\t\"If someone is in trouble, I'm always ready to lend help.\",\r\n\t\t\"When I set my mind to something, I follow through no matter what gets in my way.\",\r\n\t\t\"I have a strong sense of fair play and always try to find the most equitable solution to arguments.\",\r\n\t\t\"I'm confident in my own abilities and do what I can to instill confidence in others.\",\r\n\t\t\"Thinking is for other people. I prefer action.\",\r\n\t\t\"I misuse long words in an attempt to sound smarter.\",\r\n\t\t\"I get bored easily. When am I going to get on with my destiny?\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: People deserve to be treated with dignity and respect. (Good)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: No one should get preferential treatment before the law, and no one is above the law. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Tyrants must not be allowed to oppress the people. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: If I become strong, I can take what I want\\u2015 what I deserve. (Evil)\"\r\n\t\t],\r\n\t\t[\"Sincerity\",\r\n\t\t\t\"Sincerity: There's no good in pretending to be something I'm not. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Destiny\",\r\n\t\t\t\"Destiny: Nothing and no one can steer me away from my higher calling. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have a family, but I have no idea where they are. One day, I hope to see them again.\",\r\n\t\t\"I worked the land, I love the land, and I will protect the land.\",\r\n\t\t\"A proud noble once gave me a horrible beating, and I will take my revenge on any bully I encounter.\",\r\n\t\t\"My tools are symbols of my past life, and I carry them so that I will never forget my roots.\",\r\n\t\t\"I protect those who cannot protect themselves.\",\r\n\t\t\"I wish my childhood sweetheart had come with me to pursue my destiny.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"The tyrant who rules my land will stop at nothing to see me killed.\",\r\n\t\t\"I'm convinced of the significance of my destiny, and blind to my shortcomings and the risk of failure.\",\r\n\t\t\"The people who knew me when I was young know my shameful secret, so I can never go home again.\",\r\n\t\t\"I have a weakness for the vices of the city, especially hard drink.\",\r\n\t\t\"Secretly, I believe that things would be better if I were a tyrant lording over the land.\",\r\n\t\t\"I have trouble trusting in my allies.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Defining Event\",\r\n\t\t\"I stood up to a tyrant's agents\",\r\n\t\t\"I saved people during a natural disaster\",\r\n\t\t\"I stood alone against a terrible monster\",\r\n\t\t\"I stole from a corrupt merchant for the poor\",\r\n\t\t\"I led a militia to fight off an invading army\",\r\n\t\t\"I stole weapons from a tyrant to arm the people\",\r\n\t\t\"I trained peasantry to fight a tyrant with farm tools\",\r\n\t\t\"A decree was rescinded after I led a protest against it\",\r\n\t\t\"A magical creature gave me a blessing or insight\",\r\n\t\t\"I rose to leadership in a lord's army\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], \"Vehicles (land)\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"guild artisan\"] = {\r\n\tregExpSearch : /^(?=.*guild)(?=.*artisan).*$/i,\r\n\tname : \"Guild Artisan\",\r\n\tsource : [[\"P\", 132], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Letter of introduction from guild\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Guild Membership\",\r\n\ttrait : [\r\n\t\t\"I believe that anything worth doing is worth doing right. I can't help it\\u2015 I'm a perfectionist.\",\r\n\t\t\"I'm a snob who looks down on those who can't appreciate fine art.\",\r\n\t\t\"I always want to know how things work and what makes people tick.\",\r\n\t\t\"I'm full of witty aphorisms and have a proverb for every occasion.\",\r\n\t\t\"I'm rude to people who lack my commitment to hard work and fair play.\",\r\n\t\t\"I like to talk at length about my profession.\",\r\n\t\t\"I don't part with my money easily and will haggle tirelessly to get the best deal possible.\",\r\n\t\t\"I'm well known for my work, and I want to make sure everyone appreciates it. I'm always taken aback when people haven't heard of me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Community\",\r\n\t\t\t\"Community: It is the duty of all civilized people to strengthen the bonds of community and the security of civilization. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Generosity\",\r\n\t\t\t\"Generosity: My talents were given to me so that I could use them to benefit the world. (Good)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Everyone should be free to pursue his or her own livelihood. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I'm only in it for the money. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm committed to the people I care about, not to ideals. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I work hard to be the best there is at my craft. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The workshop where I learned my trade is the most important place in the world to me.\",\r\n\t\t\"I created a great work for someone, and then found them unworthy to receive it. I'm still looking for someone worthy.\",\r\n\t\t\"I owe my guild a great debt for forging me into the person I am today.\",\r\n\t\t\"I pursue wealth to secure someone's love.\",\r\n\t\t\"One day I will return to my guild and prove that I am the greatest artisan of them all.\",\r\n\t\t\"I will get revenge on the evil forces that destroyed my place of business and ruined my livelihood.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'll do anything to get my hands on something rare or priceless.\",\r\n\t\t\"I'm quick to assume that someone is trying to cheat me.\",\r\n\t\t\"No one must ever learn that I once stole money from guild coffers.\",\r\n\t\t\"I'm never satisfied with what I have\\u2015 I always want more.\",\r\n\t\t\"I would kill to acquire a noble title.\",\r\n\t\t\"I'm horribly jealous of anyone who can outshine my handiwork. Everywhere I go, I'm surrounded by rivals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Guild Business\",\r\n\t\t\"Alchemists and apothecaries\",\r\n\t\t\"Armorers, locksmiths, and finesmiths\",\r\n\t\t\"Brewers, distillers, and vintners\",\r\n\t\t\"Calligraphers, scribes, and scriveners\",\r\n\t\t\"Carpenters, roofers, and plasterers\",\r\n\t\t\"Cartographers, surveyors, and chart-makers\",\r\n\t\t\"Cobblers and shoemakers\",\r\n\t\t\"Cooks and bakers\",\r\n\t\t\"Glassblowers and glaziers\",\r\n\t\t\"Jewelers and gemcutters\",\r\n\t\t\"Leatherworkers, skinners, and tanners\",\r\n\t\t\"Masons and stonecutters\",\r\n\t\t\"Painters, limners, and sign-makers\",\r\n\t\t\"Potters and tile-makers\",\r\n\t\t\"Shipwrights and sailmakers\",\r\n\t\t\"Smiths and metal-forgers\",\r\n\t\t\"Tinkers, pewterers, and casters\",\r\n\t\t\"Wagon-makers and wheelwrights\",\r\n\t\t\"Weavers and dyers\",\r\n\t\t\"Woodcarvers, coopers, and bowyers\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"comfortable\"\r\n};\r\nBackgroundList[\"hermit\"] = {\r\n\tregExpSearch : /hermit/i,\r\n\tname : \"Hermit\",\r\n\tsource : [[\"P\", 134], [\"ALbackground\", 0]],\r\n\tskills : [\"Medicine\", \"Religion\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Winter blanket\", \"\", 3],\r\n\t\t[\"Herbalism kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Scroll case with notes\", \"\", 1]\r\n\t],\r\n\tfeature : \"Discovery\",\r\n\ttrait : [\r\n\t\t\"I've been isolated for so long that I rarely speak, preferring gestures and the occasional grunt.\",\r\n\t\t\"I am utterly serene, even in the face of disaster.\",\r\n\t\t\"The leader of my community had something wise to say on every topic, and I am eager to share that wisdom.\",\r\n\t\t\"I feel tremendous empathy for all who suffer.\",\r\n\t\t\"I'm oblivious to etiquette and social expectations.\",\r\n\t\t\"I connect everything that happens to me to a grand, cosmic plan.\",\r\n\t\t\"I often get lost in my own thoughts and contemplation, becoming oblivious to my surroundings.\",\r\n\t\t\"I am working on a grand philosophical theory and love sharing my ideas.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: My gifts are meant to be shared with all, not used for my own benefit. (Good)\"\r\n\t\t],\r\n\t\t[\"Logic\",\r\n\t\t\t\"Logic: Emotions must not cloud our sense of what is right and true, or our logical thinking. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Free Thinking\",\r\n\t\t\t\"Free Thinking: Inquiry and curiosity are the pillars of progress. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Solitude and contemplation are paths toward mystical or magical power. (Evil)\"\r\n\t\t],\r\n\t\t[\"Live and Let Live\",\r\n\t\t\t\"Live and Let Live: Meddling in the affairs of others only causes trouble. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Self-Knowledge\",\r\n\t\t\t\"Self-Knowledge: If you know yourself, there's nothing left to know. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"Nothing is more important than the other members of my hermitage, order, or association.\",\r\n\t\t\"I entered seclusion to hide from the ones who might still be hunting me. I must someday confront them.\",\r\n\t\t\"I'm still seeking the enlightenment I pursued in my seclusion, and it still eludes me.\",\r\n\t\t\"I entered seclusion because I loved someone I could not have.\",\r\n\t\t\"Should my discovery come to light, it could bring ruin to the world.\",\r\n\t\t\"My isolation gave me great insight into a great evil that only I can destroy.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Now that I've returned to the world, I enjoy its delights a little too much.\",\r\n\t\t\"I harbor dark, bloodthirsty thoughts that my isolation and meditation failed to quell.\",\r\n\t\t\"I am dogmatic in my thoughts and philosophy.\",\r\n\t\t\"I let my need to win arguments overshadow friendships and harmony.\",\r\n\t\t\"I'd risk too much to uncover a lost bit of knowledge.\",\r\n\t\t\"I like keeping secrets and won't share them with anyone.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Life of Seclusion\",\r\n\t\t\"Searching for spiritual enlightenment\",\r\n\t\t\"Living in accordance with a religious order\",\r\n\t\t\"Exiled for a crime I didn't commit\",\r\n\t\t\"Retreated from society after a life-altering event\",\r\n\t\t\"Worked on my art, literature, music, or manifesto\",\r\n\t\t\"Commune with nature, far from civilization\",\r\n\t\t\"Caretaker of an ancient ruin or relic\",\r\n\t\t\"Pilgrim in search of a thing of spiritual significance\"\r\n\t],\r\n\ttoolProfs : [\"Herbalism kit\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"noble\"] = {\r\n\tregExpSearch : /^(?!.*(waterdhavian|waterdeep|knight))(?=.*noble).*$/i,\r\n\tname : \"Noble\",\r\n\tsource : [[\"P\", 135], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Persuasion\"],\r\n\tgold : 25,\r\n\tequipleft : [\r\n\t\t[\"Scroll of pedigree\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Position of Privilege\",\r\n\ttrait : [\r\n\t\t\"My eloquent flattery makes everyone I talk to feel like the most wonderful and important person in the world.\",\r\n\t\t\"The common folk love me for my kindness and generosity.\",\r\n\t\t\"No one could doubt by looking at my regal bearing that I am a cut above the unwashed masses.\",\r\n\t\t\"I take great pains to always look my best and follow the latest fashions.\",\r\n\t\t\"I don't like to get my hands dirty, and I won't be caught dead in unsuitable accommodations.\",\r\n\t\t\"Despite my noble birth, I do not place myself above other folk. We all have the same blood.\",\r\n\t\t\"My favor, once lost, is lost forever.\",\r\n\t\t\"If you do me an injury, I will crush you, ruin your name, and salt your fields.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: Respect is due to me because of my position, but all people regardless of station deserve to be treated with dignity. (Good)\"\r\n\t\t],\r\n\t\t[\"Responsibility\",\r\n\t\t\t\"Responsibility: It is my duty to respect the authority of those above me, just as those below me must respect mine. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: I must prove that I can handle myself without the coddling of my family. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: If I can attain more power, no one will tell me what to do. (Evil)\"\r\n\t\t],\r\n\t\t[\"Family\",\r\n\t\t\t\"Family: Blood runs thicker than water. (Any)\"\r\n\t\t],\r\n\t\t[\"Noble Obligation\",\r\n\t\t\t\"Noble Obligation: It is my duty to protect and care for the people beneath me. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I will face any challenge to win the approval of my family.\",\r\n\t\t\"My house's alliance with another noble family must be sustained at all costs.\",\r\n\t\t\"Nothing is more important than the other members of my family.\",\r\n\t\t\"I am in love with the heir of a family that my family despises.\",\r\n\t\t\"My loyalty to my sovereign is unwavering.\",\r\n\t\t\"The common folk must see me as a hero of the people.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I secretly believe that everyone is beneath me.\",\r\n\t\t\"I hide a truly scandalous secret that could ruin my family forever.\",\r\n\t\t\"I too often hear veiled insults and threats in every word addressed to me, and I'm quick to anger.\",\r\n\t\t\"I have an insatiable desire for carnal pleasures.\",\r\n\t\t\"In fact, the world does revolve around me.\",\r\n\t\t\"By my words and actions, I often bring shame to my family.\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"outlander\"] = {\r\n\tregExpSearch : /^(?!.*urban)(?=.*(outlander|forester|trapper|homesteader|guide|exile|outcast|bounty.?hunter|tribal nomad|hunter-gatherer|tribal.?marauder)).*$/i,\r\n\tname : \"Outlander\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Staff\", \"\", 4],\r\n\t\t[\"Hunting trap\", \"\", 25],\r\n\t\t[\"Trophy from animal\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Wanderer\",\r\n\ttrait : [\r\n\t\t\"I'm driven by a wanderlust that led me away from home.\",\r\n\t\t\"I watch over my friends as if they were a litter of newborn pups.\",\r\n\t\t\"I once ran twenty-five miles without stopping to warn to my clan of an approaching orc horde. I'd do it again if I had to.\",\r\n\t\t\"I have a lesson for every situation, drawn from observing nature.\",\r\n\t\t\"I place no stock in wealthy or well-mannered folk. Money and manners won't save you from a hungry owlbear.\",\r\n\t\t\"I'm always picking things up, absently fiddling with them, and sometimes accidentally breaking them.\",\r\n\t\t\"I feel far more comfortable around animals than people.\",\r\n\t\t\"I was, in fact, raised by wolves.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Change\",\r\n\t\t\t\"Change: Life is like the seasons, in constant change, and we must change with it. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: It is each person's responsibility to make the most happiness for the whole tribe. (Good)\"\r\n\t\t],\r\n\t\t[\"Honor\",\r\n\t\t\t\"Honor: If I dishonor myself, I dishonor my whole clan. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: The strongest are meant to rule. (Evil)\"\r\n\t\t],\r\n\t\t[\"Nature\",\r\n\t\t\t\"Nature: The natural world is more important than all the constructs of civilization. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Glory\",\r\n\t\t\t\"Glory: I must earn glory in battle, for myself and my clan. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My family, clan, or tribe is the most important thing in my life, even when they are far from me.\",\r\n\t\t\"An injury to the unspoiled wilderness of my home is an injury to me.\",\r\n\t\t\"I will bring terrible wrath down on the evildoers who destroyed my homeland.\",\r\n\t\t\"I am the last of my tribe, and it is up to me to ensure their names enter legend.\",\r\n\t\t\"I suffer awful visions of a coming disaster and will do anything to prevent it.\",\r\n\t\t\"It is my duty to provide children to sustain my tribe.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am too enamored of ale, wine, and other intoxicants.\",\r\n\t\t\"There's no room for caution in a life lived to the fullest.\",\r\n\t\t\"I remember every insult I've received and nurse a silent resentment toward anyone who's ever wronged me.\",\r\n\t\t\"I am slow to trust members of other races, tribes, and societies.\",\r\n\t\t\"Violence is my answer to almost any challenge.\",\r\n\t\t\"Don't expect me to save those who can't save themselves. It is nature's way that the strong thrive and the weak perish.\"\r\n\t],\r\n\textra : [\"Select an Origin\",\r\n\t\t\"Forester\",\r\n\t\t\"Trapper\",\r\n\t\t\"Homesteader\",\r\n\t\t\"Guide\",\r\n\t\t\"Exile or outcast\",\r\n\t\t\"Bounty hunter\",\r\n\t\t\"Pilgrim\",\r\n\t\t\"Tribal nomad\",\r\n\t\t\"Hunter-gatherer\",\r\n\t\t\"Tribal marauder\"\r\n\t],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"sage\"] = {\r\n\tregExpSearch : /(sage|alchemist|astronomer|academic|librarian|professor|researcher|apprentice|scribe)/i,\r\n\tname : \"Sage\",\r\n\tsource : [[\"P\", 137], [\"ALbackground\", 0]],\r\n\tskills : [\"Arcana\", \"History\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5],\r\n\t\t[\"Letter from dead colleague\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Researcher\",\r\n\ttrait : [\r\n\t\t\"I use polysyllabic words that convey the impression of great erudition.\",\r\n\t\t\"I've read every book in the world's greatest libraries\\u2015 or I like to boast that I have.\",\r\n\t\t\"I'm used to helping out those who aren't as smart as I am, and I patiently explain anything and everything to others.\",\r\n\t\t\"There's nothing I like more than a good mystery.\",\r\n\t\t\"I'm willing to listen to every side of an argument before I make my own judgment.\",\r\n\t\t\"I . . . speak . . . slowly . . . when talking . . . to idiots, . . . which . . . almost. . . everyone . . . is . . . compared . . . to me.\",\r\n\t\t\"I am horribly, horribly awkward in social situations.\",\r\n\t\t\"I'm convinced that people are always trying to steal my secrets.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: The path to power and self-improvement is through knowledge. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Beauty\",\r\n\t\t\t\"Beauty: What is beautiful points us beyond itself toward what is true. (Good)\"\r\n\t\t],\r\n\t\t[\"Logic\",\r\n\t\t\t\"Logic: Emotions must not cloud our logical thinking. (Lawful)\"\r\n\t\t],\r\n\t\t[\"No Limits\",\r\n\t\t\t\"No Limits: Nothing should fetter the infinite possibility inherent in all existence. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Knowledge is the path to power and domination. (Evil)\"\r\n\t\t],\r\n\t\t[\"Self-Improvement\",\r\n\t\t\t\"Self-Improvement: The goal of a life of study is the betterment of oneself. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"It is my duty to protect my students.\",\r\n\t\t\"I have an ancient text that holds terrible secrets that must not fall into the wrong hands.\",\r\n\t\t\"I work to preserve a library, university, scriptorium, or monastery.\",\r\n\t\t\"My life's work is a series of tomes related to a specific field of lore.\",\r\n\t\t\"I've been searching my whole life for the answer to a certain question.\",\r\n\t\t\"I sold my soul for knowledge. I hope to do great deeds and win it back.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am easily distracted by the promise of information.\",\r\n\t\t\"Most people scream and run when they see a demon. I stop and take notes on its anatomy.\",\r\n\t\t\"Unlocking an ancient mystery is worth the price of a civilization.\",\r\n\t\t\"I overlook obvious solutions in favor of complicated ones.\",\r\n\t\t\"I speak without really thinking through my words, invariably insulting others.\",\r\n\t\t\"I can't keep a secret to save my life, or anyone else's.\"\r\n\t],\r\n\textra : [\"Select a Specialty\",\r\n\t\t\"Alchemist\",\r\n\t\t\"Astronomer\",\r\n\t\t\"Discredited academic\",\r\n\t\t\"Librarian\",\r\n\t\t\"Professor\",\r\n\t\t\"Researcher\",\r\n\t\t\"Wizard's apprentice\",\r\n\t\t\"Scribe\"\r\n\t],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"sailor\"] = {\r\n\tregExpSearch : /sailor/i,\r\n\tname : \"Sailor\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Perception\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Silk rope, feet of\", 50, 0.1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belaying pin (club)\", \"\", 2],\r\n\t\t[\"Lucky charm\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Ship's Passage\",\r\n\ttrait : [\r\n\t\t\"My friends know they can rely on me, no matter what.\",\r\n\t\t\"I work hard so that I can play hard when the work is done.\",\r\n\t\t\"I enjoy sailing into new ports and making new friends over a flagon of ale.\",\r\n\t\t\"I stretch the truth for the sake of a good story.\",\r\n\t\t\"To me, a tavern brawl is a nice way to get to know a new city.\",\r\n\t\t\"I never pass up a friendly wager.\",\r\n\t\t\"My language is as foul as an otyugh nest.\",\r\n\t\t\"I like a job well done, especially if I can convince someone else to do it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: The thing that keeps a ship together is mutual respect between captain and crew. (Good)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: We all do the work, so we all share in the rewards. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: The sea is freedom\\u2015 the freedom to go anywhere and do anything. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Mastery\",\r\n\t\t\t\"Mastery: I'm a predator, and the other ships on the sea are my prey. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm committed to my crewmates, not to ideals. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: Someday I'll own my own ship and chart my own destiny. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'm loyal to my captain first, everything else second.\",\r\n\t\t\"The ship is most important\\u2015 crewmates and captains come and go.\",\r\n\t\t\"I'll always remember my first ship.\",\r\n\t\t\"In a harbor town, I have a paramour whose eyes nearly stole me from the sea.\",\r\n\t\t\"I was cheated out of my fair share of the profits, and I want to get my due.\",\r\n\t\t\"Ruthless pirates murdered my captain and crewmates, plundered our ship, and left me to die. Vengeance will be mine.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I follow orders, even if I think they're wrong.\",\r\n\t\t\"I'll say anything to avoid having to do extra work.\",\r\n\t\t\"Once someone questions my courage, I never back down no matter how dangerous the situation.\",\r\n\t\t\"Once I start drinking, it's hard for me to stop.\",\r\n\t\t\"I can't help but pocket loose coins and other trinkets I come across.\",\r\n\t\t\"My pride will probably lead to my destruction.\"\r\n\t],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (water)\"],\r\n\tlifestyle : \"modest\",\r\n};\r\nBackgroundList[\"soldier\"] = {\r\n\tregExpSearch : /^(?!.*mercenary)(?=.*soldier).*$/i,\r\n\tname : \"Soldier\",\r\n\tsource : [[\"P\", 140], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Intimidation\"],\r\n\tgold : 10,\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Trophy from fallen enemy\", \"\", \"\"],\r\n\t\t[\"Bone dice or playing cards\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Military Rank\",\r\n\ttrait : [\r\n\t\t\"I'm always respectful and polite.\",\r\n\t\t\"I'm haunted by memories of war. I can't get the violent images out of my mind.\",\r\n\t\t\"I'm slow to make new friends, because I've lost too many old ones.\",\r\n\t\t\"I'm full of inspiring and cautionary tales from my military experience with some relevance to almost every type of combat situation.\",\r\n\t\t\"I can stare down an owlbear without flinching.\",\r\n\t\t\"I enjoy my strength and like to break things.\",\r\n\t\t\"I have a rough sense of humor.\",\r\n\t\t\"I approach problems head-on. A simple, direct course is the best path to a solution.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: Our fate is to give our lives in the defense of others. (Good)\"\r\n\t\t],\r\n\t\t[\"Responsibility\",\r\n\t\t\t\"Responsibility: I do what I have to and follow just authority. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: When people obey orders blindly, they affirm a kind of tyranny. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: In life as in war, the mightier force prevails. (Evil)\"\r\n\t\t],\r\n\t\t[\"Live and Let Live\",\r\n\t\t\t\"Live and Let Live: Ideals aren't worth killing over or going to war for. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Nation\",\r\n\t\t\t\"Nation: My city, state, or people are the only things that matter. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I would still give my life for the people I have served with.\",\r\n\t\t\"Someone saved my life on the battlefield. Even now, I would never leave a friend behind.\",\r\n\t\t\"My honor is my life.\",\r\n\t\t\"I'll never forget the crushing defeat my company endured or the foes who inflicted it.\",\r\n\t\t\"Those who fight with me are those worth laying down my life for.\",\r\n\t\t\"I fight for those who cannot fight for themselves.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"The atrocious enemy we faced in battle still leaves me trembling with fear.\",\r\n\t\t\"I have little respect for those who are not a tested warrior.\",\r\n\t\t\"A disastrous mistake I made in battle cost many lives\\u2015 I will do anything to keep that mistake a secret.\",\r\n\t\t\"My hatred of my foes is blind and unreasoning. \",\r\n\t\t\"I uphold the law, even if the law causes suffering.\",\r\n\t\t\"I'd rather eat my weapon than admit when I'm wrong.\"\r\n\t],\r\n\textra : [\"Select a Specialty\",\r\n\t\t\"Officer\",\r\n\t\t\"Scout\",\r\n\t\t\"Infantry\",\r\n\t\t\"Cavalry\",\r\n\t\t\"Healer\",\r\n\t\t\"Quartermaster\",\r\n\t\t\"Standard-bearer\",\r\n\t\t\"Support staff\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"urchin\"] = {\r\n\tregExpSearch : /urchin/i,\r\n\tname : \"Urchin\",\r\n\tsource : [[\"P\", 141], [\"ALbackground\", 0]],\r\n\tskills : [\"Sleight of Hand\", \"Stealth\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Map of the city\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Token from my parents\", \"\", \"\"],\r\n\t\t[\"Pet mouse\", \"\", 0.1],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"City Secrets\",\r\n\ttrait : [\r\n\t\t\"I keep scraps of food and trinkets hidden away in my pockets.\",\r\n\t\t\"I ask questions all the time.\",\r\n\t\t\"I like to squeeze into compact places where nobody can harm me.\",\r\n\t\t\"I sleep with my back to solid surface, with all that I own embraced tightly in my arms.\",\r\n\t\t\"I have bad manners and eat like a pig.\",\r\n\t\t\"I expect that anybody who's nice to me is hiding malicious intent.\",\r\n\t\t\"I eschew bathing.\",\r\n\t\t\"I say, without reserve, what other people are implying or masking.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: Everybody, no matter their riches, deserves respect. (Good)\"\r\n\t\t],\r\n\t\t[\"Community\",\r\n\t\t\t\"Community: We have to take look out for each other, because nobody else will do it for us. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Change\",\r\n\t\t\t\"Change: The low rise up, and the high and mighty come down. Change is natural. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Retribution\",\r\n\t\t\t\"Retribution: The rich need to be shown how it is to live and die in the poor quarters. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I help those who help me\\u2015 that is what lets us stay alive. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I'm going to prove that I'm worthy of a better life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My town or city is my home, and I'll battle those that threaten it.\",\r\n\t\t\"I'm the benefactor of an orphanage so others may be kept from enduring what I was forced to endure.\",\r\n\t\t\"I owe my life to another urchin who taught me the ways of living in the gutters.\",\r\n\t\t\"I owe a debt I can never repay to the person who showed me sympathy.\",\r\n\t\t\"I got away from my life of poverty by robbing an influential person, and I'm wanted for it.\",\r\n\t\t\"No one else should have to suffer the difficulties I've been through.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I will run away from a fight if I'm outnumbered.\",\r\n\t\t\"A gold piece already has a lot of value to me, and I'll do just about anything for more of it.\",\r\n\t\t\"I will never completely trust another. I only trust myself.\",\r\n\t\t\"I would rather use an unfair advantage than fight honorably.\",\r\n\t\t\"It's not theft if I have more use for it than someone else.\",\r\n\t\t\"People who are incapable of taking care of themselves get what they deserve.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", [\"Thieves' tools\", \"Dex\"]],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Add the background variants\r\nAddBackgroundVariant(\"entertainer\", \"gladiator\", {\r\n\tregExpSearch : /gladiator/i,\r\n\tname : \"Gladiator\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Costume\", \"\", 4],\r\n\t\t[\"Favor of an admirer\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Inexpensive, unusual weapon\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Are You Entertained?\",\r\n\textra : \"\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"guild merchant\", {\r\n\tregExpSearch : /^(?=.*guild)(?=.*merchant).*$/i,\r\n\tname : \"Guild Merchant\",\r\n\tsource : [[\"P\", 133], [\"ALbackground\", 0]],\r\n\tequipleft : [\r\n\t\t[\"Letter of introduction from guild\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Cart\", \"\", \"\"],\r\n\t\t[\"Mule\", \"\", \"\"]\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Guild Business\",\r\n\t\t\"Traders\",\r\n\t\t\"Caravan masters\",\r\n\t\t\"Shopkeepers\"\r\n\t],\r\n\ttoolProfs : [\"Navigator's tools (or language)\"]\r\n});\r\nAddBackgroundVariant(\"noble\", \"knight\", {\r\n\tregExpSearch : /^(?!.*order)(?=.*knight).*$/i,\r\n\tname : \"Knight\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t\t[\"Banner or token from devoted love\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Retainers\"\r\n});\r\nAddBackgroundVariant(\"sailor\", \"pirate\", {\r\n\tregExpSearch : /pirate/i,\r\n\tname : \"Pirate\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]],\r\n\tfeature : \"Bad Reputation\"\r\n});\r\n\r\n// Add the backgrounds features that are not in the SRD\r\nBackgroundFeatureList[\"are you entertained?\"] = {\r\n\tdescription : \"I can always find a place to perform (arena/pit fight), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"bad reputation\"] = {\r\n\tdescription : \"No matter where I go, people are afraid of me due to my reputation. When I am in a civilized settlement, I can get away with minor criminal offenses, such as refusing to pay for food at a tavern or breaking down doors at a local shop, since most people will not report my activity to the authorities.\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"by popular demand\"] = {\r\n\tdescription : \"I can always find a place to perform (inn/tavern/circus/etc.), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\r\n\tsource : [[\"P\", 130], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"city secrets\"] = {\r\n\tdescription : \"I know the secret patterns and flow to cities and can find passages through the urban sprawl that others would miss. When I am not in combat, I (and companions I lead) can travel between any two locations in the city twice as fast as my speed would normally allow.\",\r\n\tsource : [[\"P\", 141], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"criminal contact\"] = {\r\n\tdescription : \"I have a reliable and trustworthy contact who acts as my liaison to a network of other criminals. I know how to get messages to and from my contact, even over great distances; specifically, I know the local messengers, corrupt caravan masters, and seedy sailors who can deliver my messages.\",\r\n\tsource : [[\"P\", 129], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"discovery\"] = {\r\n\tdescription : \"The quiet seclusion of my extended hermitage gave me access to a unique and powerful discovery. The exact nature of this revelation depends on the nature of my seclusion. It might be a great truth, a hidden site, a long forgotten fact, or unearthed some relic of the past that could rewrite history.\",\r\n\tsource : [[\"P\", 134], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"false identity\"] = {\r\n\tdescription : \"I have created a second identity that includes documentation, established acquaintances, and disguises that allow me to assume that persona. Additionally, I can forge documents, including official papers and personal letters, as long as I have seen an example of the kind of document or the handwriting I am trying to copy.\",\r\n\tsource : [[\"P\", 128], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"guild membership\"] = {\r\n\tdescription : \"5 gp membership fees per month: The guild offers lodging if possible. In case of being accused of a crime, the guild will support me if a good case can be made for my innocence or the crime is justifiable. I can also gain access to powerful political figures through the guild, as long as I'm in good standing and the guild is paid enough.\",\r\n\tsource : [[\"P\", 133], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"military rank\"] = {\r\n\tdescription : \"I have a military rank from my career as a soldier. Soldiers loyal to my former military organization still recognize my authority and influence. I can invoke my rank to influence soldiers and temporarily requisition simple equipment or horses. I can usually gain access to friendly military encampments and fortresses where my rank is recognized.\",\r\n\tsource : [[\"P\", 140], [\"ALbackground\", 0]],\r\n};\r\nBackgroundFeatureList[\"position of privilege\"] = {\r\n\tdescription : \"I am welcome in high society, and people assume I have the right to be wherever I am. The common folk make every effort to accommodate me and avoid my displeasure, and other people of high birth treat me as a member of the same social sphere. I can secure an audience with a local noble if I need to.\",\r\n\tsource : [[\"P\", 135], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"researcher\"] = {\r\n\tdescription : \"When I attempt to learn or recall a piece of lore, if I do not know that information, I often know where and from whom I can obtain it. Usually, this information comes from a library, scriptorium, university, or a sage or other learned person or creature. Unearthing the deepest secrets of the multiverse can require an adventure or even a whole campaign.\",\r\n\tsource : [[\"P\", 138], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"retainers\"] = {\r\n\tdescription : \"I have the service of three retainers loyal to my family, one of whom is another noble and my squire. My other retainers are commoners who can perform mundane tasks for me, but they do not fight for me, will not follow me into obviously dangerous areas (such as dungeons), and will leave if they are frequently endangered or abused.\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"rustic hospitality\"] = {\r\n\tdescription : \"Since I come from the ranks of the common folk, I fit in among them with ease. I can find a place to hide, rest, or recuperate among other commoners, unless I have shown myself to be a danger to them. They will shield me from the law or anyone else searching for me, though they will not risk their lives for me.\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ship's passage\"] = {\r\n\tdescription : \"When I need to, I can secure free passage on a sailing ship for myself and my companions. I might sail on the ship I served on, or another ship I have good relations with. Because I'm calling in a favor, I can't be certain of a schedule or route that will meet my every need. My companions and I are expected to assist the crew during the voyage.\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"wanderer\"] = {\r\n\tdescription : \"I have an excellent memory for maps and geography, and I can always recall the general layout of terrain, settlements, and other features around me. In addition, I can find food and fresh water for myself and up to five other people each day, provided that the land offers berries, small game, water, and so forth.\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Add the feats that are not in the SRD\r\nFeatsList[\"actor\"] = {\r\n\tname : \"Actor\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Skilled at mimicry and dramatics, you gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You have advantage on Charisma (Deception) and Charisma (Performance) checks when trying to pass yourself off as a different person.\\n \\u2022 You can mimic the speech of another person or the sounds made by other creatures. You must have heard the person speaking, or heard the creature make the sound, for at least 1 minute. A successful Wisdom (Insight) check contested by your Charisma (Deception) check allows a listener to determine that the effect is faked.\",\r\n\tdescription : \"Advantage on Charisma (Deception) and (Performance) if trying to pass as another. I can mimic a person's speech or other creature's sounds if I've heard it for at least 1 minute. Wisdom (Insight) vs. Charisma (Deception) to determine the sound is faked. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1]\r\n};\r\nFeatsList[\"alert\"] = {\r\n\tname : \"Alert\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Always on the lookout for danger, you gain the following benefits:\\n \\u2022 You gain a +5 bonus to initiative.\\n \\u2022 You can't be surprised while you are conscious.\\n \\u2022 Other creatures don't gain advantage on attack rolls against you as a result of being unseen by you.\",\r\n\tdescription : \"I can't be surprised while I'm conscious. I have a +5 bonus on initiative rolls. Other creatures don't gain advantage on attack rolls against me as a result of being hidden from me.\",\r\n\taddMod : { type : \"skill\", field : \"Init\", mod : 5, text : \"I have a +5 bonus on initiative rolls.\" }\r\n};\r\nFeatsList[\"athlete\"] = {\r\n\tname : \"Athlete\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"You have undergone extensive physical training to gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 When you are prone, standing up uses only 5 feet of your movement.\\n \\u2022 Climbing doesn't cost you extra movement.\\n \\u2022 You can make a running long jump or a running high jump after moving only 5 feet on foot, rather than 10 feet.\",\r\n\tdescription : \"Standing up from prone uses only 5 ft of movement. Climbing doesn't cost me extra movement. I can make a running long jump or a running high jump after moving only 5 feet on foot, rather than 10 feet. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\nFeatsList[\"charger\"] = {\r\n\tname : \"Charger\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"When you use your action to Dash, you can use a bonus action to make one melee weapon attack or to shove a creature.\\n   If you move at least 10 feet in a straight line immediately before taking this bonus action, you either gain a +5 bonus to the attack's damage roll (if you chose to make a melee attack and hit) or push the target up to 10 feet away from you (if you chose to shove and you succeed).\",\r\n\tdescription : \"As a bonus action after taking the Dash action, I can make one melee weapon attack or shove a creature. If I move at least 10 ft in a straight line before this bonus action, I add +5 damage to the attack or increase the distance up to 10 ft for the shove.\",\r\n\taction : [[\"bonus action\", \" (after Dash action)\"]]\r\n};\r\nFeatsList[\"crossbow expert\"] = {\r\n\tname : \"Crossbow Expert\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Thanks to extensive practice with the crossbow, you gain the following benefits:\\n \\u2022 You ignore the loading quality of crossbows with which you are proficient.\\n \\u2022 Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls.\\n \\u2022 When you use the Attack action and attack with a one-handed weapon, you can use a bonus action to attack with a hand crossbow you are holding.\",\r\n\tdescription : \"I ignore the loading quality of crossbows I'm proficient with. I don't suffer disadv. on ranged attack rolls for being within 5 ft of a hostile. When I attack with a one-handed weapon in my Attack action, I can use a bonus action to attack with a hand crossbow I'm holding.\",\r\n\taction : [[\"bonus action\", \" (with Attack action)\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (/crossbow/i.test(v.baseWeaponName) && fields.Proficiency) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(,? ?loading|loading,? ?)/i, '');\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of crossbows I'm proficient with.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"defensive duelist\"] = {\r\n\tname : \"Defensive Duelist\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"When you are wielding a finesse weapon with which you are proficient and another creature hits you with a melee attack, you can use your reaction to add your proficiency bonus to your AC for that attack, potentially causing the attack to miss you.\",\r\n\tdescription : \"When wielding a finesse weapon with which I am proficient and another creature hits me with a melee attack, I can use my reaction to add my proficiency bonus to my AC for that attack, potentially causing the attack to miss me.\",\r\n\tprerequisite : \"Dexterity 13 or higher\",\r\n\tprereqeval : function(v) { return What('Dex') >= 13; },\r\n\taction : [[\"reaction\", \" (when hit in melee)\"]]\r\n};\r\nFeatsList[\"dual wielder\"] = {\r\n\tname : \"Dual Wielder\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"You master fighting with two weapons, gaining the following benefits:\\n \\u2022 You gain a +1 bonus to AC while you are wielding a separate melee weapon in each hand.\\n \\u2022 You can use two-weapon fighting even when the one-handed melee weapons you are wielding aren't light.\\n \\u2022 You can draw or stow two one-handed weapons when you would normally be able to draw or stow only one.\",\r\n\tdescription : \"I can use two-weapon fighting even when the one-handed melee weapons I'm wielding aren't light. I can draw or stow two one-handed weapons when I would normally be able to draw or stow only one. +1 AC while wielding separate melee weapons in each hand.\",\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC when holding a melee weapon in each hand.\",\r\n\t\tstopeval : function (v) { return v.usingShield && !(/animated/i).test(What(\"AC Shield Bonus Description\")); }\r\n\t}\r\n};\r\nFeatsList[\"dungeon delver\"] = {\r\n\tname : \"Dungeon Delver\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"Alert to the hidden traps and secret doors found in many dungeons, you gain the following benefits:\\n \\u2022 You have advantage on Wisdom (Perception) and Intelligence (Investigation) checks made to detect the presence of secret doors.\\n \\u2022 You have advantage on saving throws made to avoid or resist traps.\\n \\u2022 You have resistance to the damage dealt by traps.\\n \\u2022 Traveling at a fast pace doesn't impose the normal -5 penalty on your passive Wisdom (Perception) score.\",\r\n\tdescription : \"I have adv. on Wis (Perception) and Int (Investigation) checks made to detect the presence of secret doors. I have resistance to damage dealt by traps and advantage on saves to avoid or resist traps. Travelling at a fast pace doesn't impose -5 on my passive Perception.\",\r\n\tdmgres : [\"Traps\"],\r\n\tsavetxt : { adv_vs : [\"traps\"] },\r\n\tvision : [[\"Adv. on Perception and Investigation for secret doors\", 0], [\"No -5 for travelling at fast pace\", 0]]\r\n};\r\nFeatsList[\"durable\"] = {\r\n\tname : \"Durable\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"Hardy and resilient, you gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 When you roll a Hit Die to regain hit points, the minimum number of hit points you regain from the roll equals twice your Constitution modifier (minimum of 2).\",\r\n\tdescription : \"When I roll a hit die to regain hit points, the minimum number of hit points I regain from the roll equals twice my Constitution modifier (minimum of 2). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elemental adept\"] = {\r\n\tname : \"Elemental Adept\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"When you gain this feat, choose one of the following damage types: acid, cold, fire, lightning, or thunder.\\n   Spells you cast ignore resistance to damage of the chosen type. In addition, when you roll damage for a spell you cast that deals damage of that type, you can treat any 1 on a damage die as a 2.\\n\\nYou can select this feat multiple times. Each time you do so, you must choose a different damage type.\",\r\n\tdescription : \"Choose one of the damage types: acid, cold, fire, lightning, or thunder. Spells I cast ignore resistance to damage from this damage type. For any spell I cast that deals this damage type, I can treat any 1 on a damage die as a 2.\",\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tallowDuplicates : true,\r\n\tchoices : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\"acid\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to acid damage. For any spell I cast that deals acid damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"cold\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to cold damage. For any spell I cast that deals cold damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"fire\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to fire damage. For any spell I cast that deals fire damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"lightning\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to lightning damage. For any spell I cast that deals lightning damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"thunder\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to thunder damage. For any spell I cast that deals thunder damage, I can treat any 1 on a damage die as a 2.\"\r\n\t}\r\n};\r\nFeatsList[\"great weapon master\"] = {\r\n\tname : \"Great Weapon Master\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You've learned to put the weight of a weapon to your advantage, letting its momentum empower your strikes. You gain the following benefits:\\n \\u2022 On your turn, when you score a critical hit with a melee weapon or reduce a creature to 0 hit points with one, you can make one melee weapon attack as a bonus action.\\n \\u2022 Before you make a melee attack with a heavy weapon that you are proficient with, you can choose to take a -5 penalty to the attack roll. If the attack hits, you add +10 to the attack's damage.\",\r\n\tdescription : \"If I score a critical hit or reduce a creature to 0 hit points with a melee weapon in my turn, I can make one melee weapon attack as a bonus action. With a heavy melee weapon, I can choose to take a -5 penalty on the attack roll for +10 on the attack's damage.\",\r\n\taction : [[\"bonus action\", \" (after crit or take-down)\"]],\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/heavy/i).test(fields.Description) && (/\\bgwm\\b|power.{0,3}attack|great.{0,3}weapon.{0,3}master/i).test(v.WeaponText)) {\r\n\t\t\t\t\toutput.extraDmg += 10;\r\n\t\t\t\t\toutput.extraHit -= 5;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the words 'Power Attack', 'Great Weapon Master', or just 'GWM' in a heavy melee weapon's name or description, the calculation will put a -5 penalty on the attack's To Hit and +10 on its Damage.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"healer\"] = {\r\n\tname : \"Healer\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You are an able physician, allowing you to mend wounds quickly and get your allies back in the fight. You gain the following benefits:\\n \\u2022 When you use a healer's kit to stabilize a dying creature, that creature also regains 1 hit point.\\n \\u2022 As an action, you can spend one use of a healer's kit to tend to a creature and restore 1d6+4 hit points to it, plus additional hit points equal to the creature's maximum number of Hit Dice. The creature can't regain hit points from this feat again until it finishes a short or long rest.\",\r\n\tdescription : \"Using a healer's kit to stabilize someone gives them 1 hit point as well. As an action, I can spend one use of a healer's kit to restore 1d6 + 4 + (creature's HD) hit points. After that, the creature can't gain hit points from this feat again until it finishes a short rest.\",\r\n\taction : [[\"action\", \" (1d6+4+HD with healing kit)\"]]\r\n};\r\nFeatsList[\"heavily armored\"] = {\r\n\tname : \"Heavily Armored\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have trained to master the use of heavy armor, gaining the following benefits:\\n \\u2022 Increase your Strength score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with heavy armor.\",\r\n\tdescription : \"I gain proficiency with heavy armor. [+1 Strength]\",\r\n\tprerequisite : \"Proficiency with medium armor\",\r\n\tprereqeval : function(v) { return v.mediumArmorProf; },\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\tarmorProfs : [false, false, true, false]\r\n};\r\nFeatsList[\"heavy armor master\"] = {\r\n\tname : \"Heavy Armor Master\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You can use your armor to deflect strikes that would kill others. You gain the following benefits:\\n \\u2022 While you are wearing heavy armor, bludgeoning, piercing, and slashing damage that you take from nonmagical weapons is reduced by 3.\",\r\n\tdescription : \"While wearing heavy armor, bludgeoning, piercing, and slashing damage taken from nonmagical weapons is reduced by 3. [+1 Strength]\",\r\n\tprerequisite : \"Proficiency with heavy armor\",\r\n\tprereqeval : function(v) { return v.heavyArmorProf; },\r\n\tscores : [1, 0, 0, 0, 0, 0]\r\n};\r\nFeatsList[\"inspiring leader\"] = {\r\n\tname : \"Inspiring Leader\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You can spend 10 minutes inspiring your companions, shoring up their resolve to fight. When you do so, choose up to six friendly creatures (which can include yourself) within 30 feet of you who can see or hear you and who can understand you. Each creature can gain temporary hit points equal to your level + your Charisma modifier. A creature can't gain temporary hit points from this feat again until it has finished a short or long rest.\",\r\n\tcalculate : \"event.value = 'I can spend 10 minutes inspiring up to 6 friendly creatures within 30 feet who can see or hear and can understand me. Each gains lvl (' + What('Character Level') + ') + Cha mod (' + What('Cha Mod') + \\\") temporary hit points. One can't gain temporary hit points from this feat again until after a short rest.\\\";\",\r\n\tprerequisite : \"Charisma 13 or higher\",\r\n\tprereqeval : function(v) { return What('Cha') >= 13; }\r\n};\r\nFeatsList[\"keen mind\"] = {\r\n\tname : \"Keen Mind\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have a mind that can track time, direction, and detail with uncanny precision. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You always know which way is north.\\n \\u2022 You always know the number of hours left before the next sunrise or sunset.\\n \\u2022 You can accurately recall anything you have seen or heard within the past month.\",\r\n\tdescription : \"I always know which way is north and the number of hours left before the next sunrise or sunset. I can accurately recall anything I have seen or heard within the past month. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0]\r\n};\r\nFeatsList[\"lightly armored\"] = {\r\n\tname : \"Lightly Armored\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have trained to master the use of light armor, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with light armor.\",\r\n\tdescription : \"I gain proficiency with light armor. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tarmorProfs : [true, false, false, false]\r\n};\r\nFeatsList[\"linguist\"] = {\r\n\tname : \"Linguist\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have studied languages and codes, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn three languages of your choice.\\n \\u2022 You can ably create written ciphers. Others can't decipher a code you create unless you teach them, they succeed on an Intelligence check (DC equal to your Intelligence score + your proficiency bonus), or they use magic to decipher it.\",\r\n\tcalculate : \"event.value = \\\"I can ably create written ciphers that others can't decipher unless I teach them, they succeed on an Intelligence check DC \\\" + (Number(What('Int')) + Number(How('Proficiency Bonus'))) + ' (Intelligence score + proficiency bonus), or they use magic to decipher it. I learn three languages of my choice. [+1 Intelligence]';\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tlanguageProfs : [3]\r\n};\r\nFeatsList[\"lucky\"] = {\r\n\tname : \"Lucky\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have inexplicable luck that seems to kick in at just the right moment.\\n   You have 3 luck points. Whenever you make an attack roll, an ability check, or a saving throw, you can spend one luck point to roll an additional d20. You can choose to spend one of your luck points after you roll the die, but before the outcome is determined. You choose which of the d20s is used for the attack roll, ability check, or saving throw.\\n   You can also spend one luck point when an attack roll is made against you. Roll a d20, and then choose whether the attack uses the attacker's roll or yours. If more than one creature spends a luck point to influence the outcome of a roll, the points cancel each other out; no additional dice are rolled.\\n   You regain your expended luck points when you finish a long rest.\",\r\n\tdescription : \"Use one of three luck points to roll an extra d20 for attacking, being attacked, an ability check, or a saving throw before the outcome is determined. If more than one creature uses luck, no extra dice are rolled. I regain expended luck points when I finish a long rest.\",\r\n\tusages : 3,\r\n\trecovery : \"long rest\",\r\n\tadditional : \"attack/check/save\"\r\n};\r\nFeatsList[\"mage slayer\"] = {\r\n\tname : \"Mage Slayer\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have practiced techniques useful in melee combat against spellcasters, gaining the following benefits:\\n \\u2022 When a creature within 5 feet of you casts a spell, you can use your reaction to make a melee weapon attack against that creature.\\n \\u2022 When you damage a creature that is concentrating on a spell, that creature has disadvantage on the saving throw it makes to maintain its concentration.\\n \\u2022 You have advantage on saving throws against spells cast by creatures within 5 feet of you.\",\r\n\tdescription : \"As a reaction, I can make a melee weapon attack on a creature within 5 ft of me that casts a spell. Concentration checks from damage from me are made with disadvantage. I have advantage on saving throws against spells cast by creatures within 5 feet of me.\",\r\n\tsavetxt : { adv_vs : [\"spells cast within 5 ft\"] },\r\n\taction : [[\"reaction\", \"Melee weapon attack (if spell cast in 5 ft)\"]]\r\n};\r\nFeatsList[\"magic initiate\"] = {\r\n\tname : \"Magic Initiate\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Choose a class: bard, cleric, druid, sorcerer, warlock, or wizard. You learn two cantrips of your choice from that class's spell list.\\n   In addition, choose one 1st-level spell to learn from that same list. Using this feat, you can cast the spell once at its lowest level, and you must finish a long rest before you can cast it in this way again.\\n   Your spellcasting ability for these spells depends on the class you chose: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid: or Intelligence for wizard.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I learn two cantrips and one 1st-level spell of my choice from that class' spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot.\",\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spName.indexOf(\"magic initiate\") === 0 && spellObj.level > 0) {\r\n\t\t\t\t\t// test if levels in same class\r\n\t\t\t\t\tvar casterClass = spName.replace(/magic initiate[_-]*/i, '');\r\n\t\t\t\t\tif (classes.known[casterClass]) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"oncelr+markedbox\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the bard's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a bard, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Bard cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Bard 1st-level spell\",\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the cleric's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a cleric, I can also cast the 1st-level spell by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Cleric 1st-level spell\",\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the druid's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a druid, I can also cast the 1st-level spell by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Druid cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Druid 1st-level spell\",\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the sorcerer's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a sorcerer, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Sorcerer cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the warlock's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a warlock, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Warlock cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Warlock 1st-level spell\",\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the wizard's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a wizard, I can also cast the 1st-level spell by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard cantrip\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Wizard 1st-level spell\",\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"martial adept\"] = {\r\n\tname : \"Martial Adept\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have martial training that allows you to perform special combat maneuvers. You gain the following benefits:\\n \\u2022 You learn two maneuvers of your choice from among those available to the Battle Master archetype in the fighter class. If a maneuver you use requires your target to make a saving throw to resist the maneuver's effects, the saving throw DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice).\\n \\u2022 You gain one superiority die, which is a d6 (this die is added to any superiority dice you have from another source). This die is used to fuel your maneuvers. A superiority die is expended when you use it. You regain your expended superiority dice when you finish a short or long rest.\",\r\n\tdescription : \"\",\r\n\tcalculate : \"event.value = 'I learn two maneuvers of my choice from those available to the Battle Master (2nd page \\\"Choose Feature\\\" button). The saving throw DC for this is ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Dex Mod')))) + ' (8 + proficiency bonus + Str/Dex mod). I gain one superiority die (d6), which I regain when I finish a short rest.';\",\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"fighter\",\r\n\t\t\"subclass\" : \"fighter-battle master\",\r\n\t\t\"feature\" : \"subclassfeature3.1\",\r\n\t\t\"bonus\" : 2\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Combat Superiority\",\r\n\t\tusages : 1,\r\n\t\tadditional : 'd6',\r\n\t\trecovery : \"short rest\",\r\n\t\taddToExisting : true\r\n\t}]\r\n};\r\nFeatsList[\"medium armor master\"] = {\r\n\tname : \"Medium Armor Master\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have practiced moving in medium armor to gain the following benefits:\\n \\u2022 Wearing medium armor doesn't impose disadvantage on your Dexterity (Stealth) checks.\\n \\u2022 When you wear medium armor, you can add 3, rather than 2, to your AC if you have a Dexterity of 16 or higher.\",\r\n\tdescription : \"Wearing medium armor doesn't impose disadvantage on my Dexterity (Stealth) checks. When I wear medium armor, I can add up to 3, rather than 2, to my AC if my Dexterity is 16 or higher.\",\r\n\tprerequisite : \"Proficiency with medium armor\",\r\n\tprereqeval : function(v) { return v.mediumArmorProf; },\r\n\teval : function () {\r\n\t\tValue('Medium Armor Max Mod', 3);\r\n\t\tApplyArmor(What(\"AC Armor Description\"));\r\n\t},\r\n\tremoveeval : function () {\r\n\t\ttDoc.resetForm(['Medium Armor Max Mod']);\r\n\t\tApplyArmor(What(\"AC Armor Description\"));\r\n\t}\r\n};\r\nFeatsList[\"mobile\"] = {\r\n\tname : \"Mobile\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You are exceptionally speedy and agile. You gain the following benefits:\\n \\u2022 Your speed increases by 10 feet.\\n \\u2022 When you use the Dash action, difficult terrain doesn't cost you extra movement on that turn.\\n \\u2022 When you make a melee attack against a creature, you don't provoke opportunity attacks from that creature for the rest of the turn, whether you hit or not.\",\r\n\tdescription : \"When I use the Dash action, difficult terrain doesn't cost me extra movement that turn. When I make a melee attack against a creature, I don't provoke opportunity attacks from that creature for the rest of the turn, whether I hit or not. [+10 ft speed]\",\r\n\tspeed : { allModes : { bonus : \"+10\" } }\r\n};\r\nFeatsList[\"moderately armored\"] = {\r\n\tname : \"Moderately Armored\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have trained to master the use of medium armor and shields, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with medium armor and shields.\",\r\n\tdescription : \"I gain proficiency with medium armor and shields. [+1 Strength or Dexterity]\",\r\n\tprerequisite : \"Proficiency with light armor\",\r\n\tprereqeval : function(v) { return v.lightArmorProf; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tarmorProfs : [false, true, false, true]\r\n};\r\nFeatsList[\"mounted combatant\"] = {\r\n\tname : \"Mounted Combatant\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You are a dangerous foe to face while mounted. While you are mounted and aren't incapacitated, you gain the following benefits:\\n \\u2022 You have advantage on melee attack rolls against any unmounted creature that is smaller than your mount.\\n \\u2022 You can force an attack targeted at your mount to target you instead.\\n \\u2022 If your mount is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\",\r\n\tdescription : \"I have advantage on melee attack rolls against unmounted creatures smaller than my mount. I can force attacks targeting my mount to target me instead. When a Dex save would halve damage, my mount takes no damage on success and half damage on failure.\"\r\n};\r\nFeatsList[\"observant\"] = {\r\n\tname : \"Observant\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Quick to notice details of your environment, you gain the following benefits:\\n \\u2022 Increase your Intelligence or Wisdom score by 1, to a maximum of 20.\\n \\u2022 If you can see a creature's mouth while it is speaking a language you understand, you can interpret what it's saying by reading its lips.\\n \\u2022 You have a +5 bonus to your passive Wisdom (Perception) and passive Intelligence (Investigation) scores.\",\r\n\tdescription : \"If I can see a creature's mouth while it is speaking a language I understand, I can interpret what it's saying by reading its lips. I have a +5 bonus to passive Wisdom (Perception) and passive Intelligence (Investigation) scores. [+1 Intelligence or Wisdom]\",\r\n\tscorestxt : \"+1 Intelligence or Wisdom\",\r\n\taddMod : { type : \"skill\", field : \"passive perception\", mod : 5, text : \"I have a +5 bonus to passive Wisdom (Perception).\" }\r\n};\r\nFeatsList[\"polearm master\"] = {\r\n\tname : \"Polearm Master\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You can keep your enemies at bay with reach weapons. You gain the following benefits:\\n \\u2022 When you take the Attack action and attack with only a glaive, halberd, quarterstaff, or spear, you can use a bonus action to make a melee attack with the opposite end of the weapon; this attack uses the same ability modifier as the primary attack. The weapon's damage die for this attack is a d4, and the attack deals bludgeoning damage.\\n \\u2022 While you are wielding a glaive, halberd, pike, quarterstaff, or spear, other creatures provoke an opportunity attack from you when they enter your reach.\",\r\n\tdescription : \"As a bonus action when I do the Attack action with a glaive/\" + (typePF ? \" \" : \"\") + \"halberd/quarterstaff/spear, I can make a 1d4 bludgeoning attack with its butt end.\" + (typePF ? \"\\n\" : \" \") + \"While wielding a glaive/halberd/\" + (typePF ? \"\" : \" \") + \"pike/quarterstaff/spear, I get an opportunity attack when a creature enters my reach.\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*(polearm|(glaive|guandao|bisento|naginata)|(halberd|\\bji\\b|kamayari)|(quarterstaff|\\bstaff\\b|\\bbo\\b)|(spear|qiang|\\byaris?\\b)))(?=.*butt)(?=.*end).*$/i,\r\n\t\tname : \"Polearm Butt End\",\r\n\t\tsource : [[\"P\", 168]],\r\n\t\tability : 1,\r\n\t\ttype : \"polearm butt end\",\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"As bonus action after Attack action with only a glaive, halberd, spear, or quarterstaff\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : ['bonus action', 'Butt End Attack (after attack with polearm)'],\r\n\tweaponProfs : [false, false, [\"polearm butt end\"]]\r\n};\r\nFeatsList[\"resilient\"] = {\r\n\tname : \"Resilient\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Choose one ability score. You gain the following benefits:\\n \\u2022 Increase the chosen ability score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in saving throws using the chosen ability.\",\r\n\tdescription : \"Select an ability score using the square button on this feat line. I gain proficiency with the saving throw of that ability score and a +1 added to it.\",\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"strength\" : {\r\n\t\tdescription : \"I gain proficiency with Strength saving throws. [+1 Strength]\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tsaves : [\"Str\"]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tdescription : \"I gain proficiency with Dexterity saving throws. [+1 Dexterity]\",\r\n\t\tscores : [0, 1, 0, 0, 0, 0],\r\n\t\tsaves : [\"Dex\"]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tdescription : \"I gain proficiency with Constitution saving throws. [+1 Constitution]\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tsaves : [\"Con\"]\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I gain proficiency with Intelligence saving throws. [+1 Intelligence]\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0],\r\n\t\tsaves : [\"Int\"]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I gain proficiency with Wisdom saving throws. [+1 Wisdom]\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tsaves : [\"Wis\"]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I gain proficiency with Charisma saving throws. [+1 Charisma]\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1],\r\n\t\tsaves : [\"Cha\"]\r\n\t}\r\n};\r\nFeatsList[\"ritual caster\"] = {\r\n\tname : \"Ritual Caster\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"You have learned a number of spells that you can cast as rituals. These spells are written in a ritual book, which you must have in hand while casting one of them.\\n   When you choose this feat, you acquire a ritual book holding two 1st-level spells of your choice. Choose one of the following classes: bard, cleric, druid, sorcerer, warlock, or wizard. You must choose your spells from that class's spell list, and the spells you choose must have the ritual tag. The class you choose also determines your spellcasting ability for these spells: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid; or Intelligence for wizard.\\n   If you come across a spell in written form, such as a magical spell scroll or a wizard's spellbook, you might be able to add it to your ritual book. The spell must be on the spell list for the class you chose, the spell's level can be no higher than half your level (rounded up), and it must have the ritual tag. The process of copying the spell into your ritual book takes 2 hours per level of the spell, and costs 50 gp per level. The cost represents material components you expend as you experiment with the spell to master it, as well as the fine inks you need to record it.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I gain a book with two 1st-level ritual spells from that class' spell list. I can transcribe more ritual spells into this book and cast them as rituals only.\",\r\n\tprerequisite : \"Intelligence or Wisdom 13 or higher\",\r\n\tprereqeval : function(v) { return What('Int') >= 13 || What('Wis') >= 13; },\r\n\tcommoneval : function(chc, spellAbility) {\r\n\t\tif (!chc) return;\r\n\t\tCurrentSpells['ritual caster ' + chc] = {\r\n\t\t\tname : 'Ritual Book [' + chc.capitalize() + ']',\r\n\t\t\tability : spellAbility,\r\n\t\t\tlist : {\"class\" : chc, ritual : true},\r\n\t\t\tknown : {spells : 'book'},\r\n\t\t\trefType : \"feat\"\r\n\t\t};\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tcommonremoveeval : function(chc) {\r\n\t\tif (!chc) return;\r\n\t\tdelete CurrentSpells['ritual caster ' + chc];\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (!spellObj.ritualCasterFeatChange && spName.indexOf(\"ritual caster \") !== -1) {\r\n\t\t\t\t\tspellObj.ritualCasterFeatChange = true;\r\n\t\t\t\t\tspellObj.firstCol = SpellRitualTag;\r\n\t\t\t\t\tif (!(/.*(\\d+ ?h\\b|special|see b).*/i).test(spellObj.time)) {\r\n\t\t\t\t\t\tvar numMinutes = Number(spellObj.time.replace(/(\\d+) ?min.*/, \"$1\"));\r\n\t\t\t\t\t\tif (isNaN(numMinutes)) numMinutes = 0;\r\n\t\t\t\t\t\tspellObj.time = (numMinutes + 10) + \" min\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"By the Ritual Caster feat, I can cast ritual spells from my Ritual Book. Casting a spell as a ritual means adding 10 minutes to its casting time.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual bard spells.\\nI can copy ritual bard spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual cleric spells.\\nI can copy ritual cleric spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Wisdom is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 5); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual druid spells.\\nI can copy ritual druid spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Wisdom is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 5); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual sorcerer spells.\\nI can copy ritual sorcerer spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual warlock spells.\\nI can copy ritual warlock spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual wizard spells.\\nI can copy ritual wizard spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Intelligence is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 4); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t}\r\n};\r\nFeatsList[\"savage attacker\"] = {\r\n\tname : \"Savage Attacker\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"Once per turn when you roll damage for a melee weapon attack, you can reroll the weapon's damage dice and use either total.\",\r\n\tdescription : \"Once per turn, when I roll damage for a melee weapon attack, I can reroll the weapon's damage dice and use either total.\"\r\n};\r\nFeatsList[\"sentinel\"] = {\r\n\tname : \"Sentinel\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"You have mastered techniques to take advantage of every drop in any enemy's guard, gaining the following benefits:\\n \\u2022 When you hit a creature with an opportunity attack, the creature's speed becomes 0 for the rest of the turn.\\n \\u2022 Creatures provoke opportunity attacks from you even if they take the Disengage action before leaving your reach.\\n \\u2022 When a creature within 5 feet of you makes an attack against a target other than you (and that target doesn't have this feat), you can use your reaction to make a melee weapon attack against the attacking creature.\",\r\n\tdescription : \"Creatures I hit with opportunity attacks have 0 speed for this turn. The Disengage action doesn't work on me. When a creature within 5 ft makes an attack against a target other than me, I can use my reaction to make a melee weapon attack against the attacker.\",\r\n\taction : [[\"reaction\", \" (after attack on ally)\"]]\r\n};\r\nFeatsList[\"sharpshooter\"] = {\r\n\tname : \"Sharpshooter\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have mastered ranged weapons and can make shots that others find impossible. You gain the following benefits:\\n \\u2022 Attacking at long range doesn't impose disadvantage on your ranged weapon attack rolls.\\n \\u2022 Your ranged weapon attacks ignore half cover and three-quarters cover.\\n \\u2022 Before you make an attack with a ranged weapon that you are proficient with, you can choose to take a -5 penalty to the attack roll. If the attack hits, you add +10 to the attack's damage.\",\r\n\tdescription : \"My ranged weapon attacks don't have disadvantage on long range and ignore half cover and three-quarters cover. With a ranged weapon that I am proficient with, I can choose to take a -5 penalty on the attack roll for +10 on the attack's damage.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isRangedWeapon || v.isThrownWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"No disadv. at long range; Ignore \\u00BD and \\u00BE cover\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My ranged weapon attacks suffer no disadvantage for long range and ignore half cover and three-quarters cover. This includes thrown weapons.\\n \\u2022 If I include the words 'Power Attack', 'Sharpshooter', or 'Sharpshot' in the name or description of a ranged weapon that I'm proficient with, the calculation will put a -5 penalty on the attack's To Hit and a +10 bonus to its Damage. This does not work with thrown weapons.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isRangedWeapon && fields.Proficiency && /power.{0,3}attack|sharp.{0,3}shoo?t/i.test(v.WeaponText)) {\r\n\t\t\t\t\toutput.extraDmg += 10;\r\n\t\t\t\t\toutput.extraHit -= 5;\r\n\t\t\t\t};\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"shield master\"] = {\r\n\tname : \"Shield Master\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You use shields not just for protection but also for offense. You gain the following benefits while you are wielding a shield:\\n \\u2022 If you take the Attack action on your turn, you can use a bonus action to try to shove a creature within 5 feet of you with your shield.\\n \\u2022 If you aren't incapacitated, you can add your shield's AC bonus to any Dexterity saving throw you make against a spell or other harmful effect that targets only you.\\n \\u2022 If you are subjected to an effect that allows you to make a Dexterity saving throw to take only half damage, you can use your reaction to take no damage if you succeed on the saving throw, interposing your shield between yourself and the source of the effect.\",\r\n\tdescription : \"As a bonus action, when I use the Attack action, I can shove someone within 5 ft with my shield. I add my shield's AC bonus to Dex saves vs. effects targeting only me. As a reaction, if I succeed on a Dex save for half damage, I can interpose my shield to avoid the damage.\",\r\n\taction : [['bonus action', 'Shove with shield (with Attack action)'], ['reaction', 'Interpose shield (if Dex save half dmg)']]\r\n};\r\nFeatsList[\"skilled\"] = {\r\n\tname : \"Skilled\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You gain proficiency in any combination of three skills or tools of your choice.\",\r\n\tdescription : \"I gain proficiency with any combination of three skills or tools of my choice.\",\r\n\tskillstxt : \"Choose three skills or tools\"\r\n};\r\nFeatsList[\"skulker\"] = {\r\n\tname : \"Skulker\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You are expert at slinking through shadows. You gain the following benefits:\\n \\u2022 You can try to hide when you are lightly obscured from the creature from which you are hiding.\\n \\u2022 When you are hidden from a creature and miss it with a ranged weapon attack, making the attack doesn't reveal your position.\\n \\u2022 Dim light doesn't impose disadvantage on your Wisdom (Perception) checks relying on sight.\",\r\n\tdescription : \"I can try to hide when I am lightly obscured. My position is not revealed when I am hidden from a creature and miss it with a ranged weapon attack. Dim light doesn't impose disadvantage on my Wisdom (Perception) checks relying on sight.\",\r\n\tprerequisite : \"Dexterity 13 or higher\",\r\n\tprereqeval : function(v) { return What('Dex') >= 13; },\r\n\tvision : [[\"No disadv. on Perception in dim light\", 0]]\r\n};\r\nFeatsList[\"spell sniper\"] = {\r\n\tname : \"Spell Sniper\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have learned techniques to enhance your attacks with certain kinds of spells, gaining the following benefits:\\n \\u2022 When you cast a spell that requires you to make an attack roll, the spell's range is doubled.\\n \\u2022 Your ranged spell attacks ignore half cover and three-quarters cover.\\n \\u2022 You learn one cantrip that requires an attack roll. Choose the cantrip from the bard, cleric, druid, sorcerer, warlock, or wizard spell list. Your spellcasting ability for this cantrip depends on the spell list you chose from: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid; or Intelligence for wizard.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I learn one cantrip requiring an attack roll from the spell list of the chosen class. Any spell I cast requiring an attack roll has its range doubled and ignores half and 3/4 cover.\",\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.spellSniper && !v.isDC && v.isSpell && (/\\d+ ?(f.{0,2}t|m)/i).test(fields.Range)) {\r\n\t\t\t\t\tv.spellSniper = true;\r\n\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\tvar notNmbrs = fields.Range.split(RegExp(rangeNmbr.join('|')));\r\n\t\t\t\t\tfields.Range = '';\r\n\t\t\t\t\trangeNmbr.forEach(function (dR, idx) {\r\n\t\t\t\t\t\tfields.Range += (notNmbrs[idx] ? notNmbrs[idx] : '') + (parseFloat(dR.toString().replace(',', '.') * 2));\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (notNmbrs.length > rangeNmbr.length) {\r\n\t\t\t\t\t\tfields.Range += notNmbrs[notNmbrs.length - 1];\r\n\t\t\t\t\t};\r\n\t\t\t\t\tif (!v.rangeM) {\r\n\t\t\t\t\t\tv.rangeM = 2;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tv.rangeM *= 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My spells and cantrips that require an attack roll have their range doubled.\",\r\n\t\t\t700\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ( !spellObj.spellSniper && !spellObj.psionic && (/spell attack/i).test(spellObj.description + spellObj.descriptionFull) && (/^(?!.*(S:|rad|touch|self|cone|cube)).*\\d+([.,]\\d+)?[\\- ]?(f.{0,2}t|m).*$/i).test(spellObj.range) ) {\r\n\t\t\t\t\tspellObj.spellSniper = true;\r\n\t\t\t\t\tvar rangeNmbr = spellObj.range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\tvar notNmbrs = spellObj.range.split(RegExp(rangeNmbr.join('|')));\r\n\t\t\t\t\tspellObj.range = '';\r\n\t\t\t\t\trangeNmbr.forEach(function (dR, idx) {\r\n\t\t\t\t\t\tspellObj.range += (notNmbrs[idx] ? notNmbrs[idx] : '') + (parseFloat(dR.toString().replace(',', '.') * 2));\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (notNmbrs.length > rangeNmbr.length) {\r\n\t\t\t\t\t\tspellObj.range += notNmbrs[notNmbrs.length - 1];\r\n\t\t\t\t\t};\r\n\t\t\t\t\tif (!spellObj.rangeM) {\r\n\t\t\t\t\t\tspellObj.rangeM = 2;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.rangeM *= 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My spells and cantrips that require an attack roll have their range doubled.\",\r\n\t\t\t700\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one bard cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one cleric cantrip that requires an attack roll. Wisdom is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one druid cantrip that requires an attack roll. Wisdom is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one sorcerer cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one warlock cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one wizard cantrip that requires an attack roll. Intelligence is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"tavern brawler\"] = {\r\n\tname : \"Tavern Brawler\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"Accustomed to rough-and-tumble fighting using whatever weapons happen to be at hand, you gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 You are proficient with improvised weapons.\\n \\u2022 Your unarmed strike uses a d4 for damage.\\n \\u2022 When you hit a creature with an unarmed strike or an improvised weapon on your turn, you can use a bonus action to attempt to grapple the target.\",\r\n\tdescription : \"I am proficient with improvised weapons. My unarmed strike does 1d4 damage. When I hit a creature with an unarmed strike or improvised weapon on my turn, I can attempt to grapple the target as a bonus action. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : ['bonus action', 'Grapple (on hit with unarmed/improv.)'],\r\n\tweaponProfs : [false, false, [\"Improvised weapons\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" || v.baseWeaponName == \"improvised weapon\" || /improvised/i.test(v.WeaponName + v.baseWeaponName) || /improvised weapon/i.test(v.theWea.type)) {\r\n\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\tif (v.isMeleeWeapon) fields.Description += (fields.Description ? '; ' : '') + 'After hit, can attempt to grapple as a bonus action';\r\n\t\t\t\t};\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && fields.Damage_Die == 1) {\r\n\t\t\t\t\tfields.Damage_Die = '1d4';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d4 damage instead of 1.\\n \\u2022 After hitting a creature with an unarmed strike or improvised weapon in melee, I can attempt to start a grapple as a bonus action.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"tough\"] = {\r\n\tname : \"Tough\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"Your hit point maximum increases by an amount equal to twice your level when you gain this feat. Whenever you gain a level thereafter, your hit point maximum increases by an additional 2 hit points.\",\r\n\tdescription : \"My hit point maximum increases by an amount equal to twice my character level.\",\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) {\r\n\t\t\treturn [totalHD * 2, '\\n + ' + totalHD + ' \\xD7 2 from the Tough feat (' + (totalHD * 2) + ')', true];\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"war caster\"] = {\r\n\tname : \"War Caster\",\r\n\tsource : [[\"P\", 170]],\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescriptionFull : \"You have practiced casting spells in the midst of combat, learning techniques that grant you the following benefits:\\n \\u2022 You have advantage on Constitution saving throws that you make to maintain your concentration on a spell when you take damage.\\n \\u2022 You can perform the somatic components of spells even when you have weapons or a shield in one or both hands.\\n \\u2022 When a hostile creature's movement provokes an opportunity attack from you, you can use your reaction to cast a spell at the creature, rather than making an opportunity attack. The spell must have a casting time of 1 action and must target only that creature.\",\r\n\tdescription : \"Advantage on Con saves to maintain concentration on spells when damaged. Perform somatic components even when holding weapons or shield in one or both hands. Cast spell of 1 action casting time that targets only one creature instead of an opportunity attack.\",\r\n\taction : [[\"reaction\", \" - Opportunity Spell\"]],\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves when damaged\" }\r\n};\r\nFeatsList[\"weapon master\"] = {\r\n\tname : \"Weapon Master\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have practiced extensively with a variety of weapons, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with four simple or martial weapons of your choice.\",\r\n\tdescription : \"I gain proficiency with four simple or martial weapons of my choice.\\n[+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\n\r\n// Add attack entry that is not in the SRD\r\nWeaponsList[\"thorn whip\"] = {\r\n\tregExpSearch : /^(?=.*thorn)(?=.*whip).*$/i,\r\n\tname : \"Thorn Whip\",\r\n\tsource : [[\"P\", 282]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"piercing\"],\r\n\trange : \"Melee, 30 ft\",\r\n\tdescription : \"Melee spell attack, pull target up to 10 ft closer\",\r\n\tabilitytodamage : false\r\n};\r\n\r\n// Add spells that are not in the SRD\r\nSpellsList[\"arcane gate\"] = {\r\n\tname : \"Arcane Gate\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 214]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"500 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Two portals, up to 500 ft apart, teleport any to other side; portals are filled with opaque mist\",\r\n\tdescriptionFull : \"You create linked teleportation portals that remain open for the duration. Choose two points on the ground that you can see, one point within 10 feet of you and one point within 500 feet of you. A circular portal, 10 feet in diameter, opens over each point. If the portal would open in the space occupied by a creature, the spell fails, and the casting is lost.\" + \"\\n   \" + \"The portals are two-dimensional glowing rings filled with mist, hovering inches from the ground and perpendicular to it at the points you choose. A ring is visible only from one side (your choice), which is the side that functions as a portal.\" + \"\\n   \" + \"Any creature or object entering the portal exits from the other portal as if the two were adjacent to each other, passing through a portal from the non-portal side has no effect. The mist that fills each portal is opaque and blocks vision through it. On your turn, you can rotate the rings as a bonus action so that the active side faces in a different direction.\"\r\n};\r\nSpellsList[\"armor of agathys\"] = {\r\n\tname : \"Armor of Agathys\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 215]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A cup of water\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"5+5/SL temp HP; as long as temp HP last any crea that hits in melee takes 5+5/SL Cold dmg\",\r\n\tdescriptionFull : \"A protective magical force surrounds you, manifesting as a spectral frost that covers you and your gear. You gain 5 temporary hit points for the duration. If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, both the temporary hit points and the cold damage increase by 5 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"arms of hadar\"] = {\r\n\tname : \"Arms of Hadar\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 215]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"2d6+1d6/SL Necrotic dmg; save halves; on failed save no reactions until next turn\",\r\n\tdescriptionFull : \"You invoke the power of Hadar, the Dark Hunger. Tendrils of dark energy erupt from you and batter all creatures within 10 feet of you. Each creature in that area must make a Strength saving throw. On a failed save, a target takes 2d6 necrotic damage and can't take reactions until its next turn. On a successful save, the creature takes half damage, but suffers no other effect.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"aura of life\"] = {\r\n\tname : \"Aura of Life\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 4,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Me + any crea while in area Necrotic dmg resist.; at turn start, 0 HP living in area heal 1 HP\",\r\n\tdescriptionFull : \"Life-preserving energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. Each non-hostile creature in the aura (including you) has resistance to necrotic damage, and its hit point maximum can't be reduced. In addition, a non-hostile, living creature regains 1 hit point when it starts its turn in the aura with 0 hit points.\"\r\n};\r\nSpellsList[\"aura of purity\"] = {\r\n\tname : \"Aura of Purity\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 4,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Me + any crea while in area Poison dmg resist., immune to disease, adv. on saves vs. conditions\",\r\n\tdescriptionFull : \"Purifying energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. Each non-hostile creature in the aura (including you) can't become diseased, has resistance to poison damage, and has advantage on saving throws against effects that cause any of the following conditions - blinded, charmed, deafened, frightened, paralyzed, poisoned, and stunned.\"\r\n};\r\nSpellsList[\"aura of vitality\"] = {\r\n\tname : \"Aura of Vitality\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"As a bonus action for the duration, I can heal 2d6 HP to 1 creature in range (can be me)\",\r\n\tdescriptionFull : \"Healing energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. You can use a bonus action to cause one creature in the aura (including you) to regain 2d6 hit points.\"\r\n};\r\nSpellsList[\"banishing smite\"] = {\r\n\tname : \"Banishing Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Next weapon hit +5d10 Force dmg; if this brings target HP<50, I banish it until spell ends\",\r\n\tdescriptionFull : \"The next time you hit a creature with a weapon attack before this spell ends, your weapon crackles with force, and the attack deals an extra 5d10 force damage to the target. Additionally, if this attack reduces the target to 50 hit points of fewer, you banish it. If the target is native to a different plane of existence than the one you're on, the target disappears, returning to its home plane. If the target is native to the plane you're on, the creature vanishes into a harmless demiplane. While there, the target is incapacitated. It remains there until the spell ends, at which point the tart reappears in the space it left or in the nearest unoccupied space if that space is occupied.\"\r\n};\r\nSpellsList[\"beast sense\"] = {\r\n\tname : \"Beast Sense\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"P\", 217]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Use 1 willing beast's senses; I'm blinded and deafened while doing so\",\r\n\tdescriptionFull : \"You touch a willing beast. For the duration of the spell, you can use your action to see through the beast's eyes and hear what it hears, and continue to do so until you use your action to return to your normal senses. While perceiving through the beast's senses, you gain the benefits of any special senses possessed by that creature, though you are blinded and deafened to your own surroundings.\"\r\n};\r\nSpellsList[\"blade ward\"] = {\r\n\tname : \"Blade Ward\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 218]],\r\n\tlevel : 0,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"Until the end of my next turn, Bludgeoning, Piercing, and Slashing dmg resist. vs. weapons\",\r\n\tdescriptionFull : \"You extend your hand and trace a sigil of warding in the air. Until the end of your next turn, you have resistance against bludgeoning, piercing, and slashing damage dealt by weapon attacks.\"\r\n};\r\nSpellsList[\"blinding smite\"] = {\r\n\tname : \"Blinding Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 219]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Next melee weapon hit +3d8 Radiant dmg; save or blinded; extra save at end of every turn\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during this spell's duration, you weapon flares with a bright light, and the attack deals an extra 3d8 radiant damage to the target. Additionally, the target must succeed on a Constitution saving throw or be blinded until the spell ends.\" + \"\\n   \" + \"A creature blinded by this spell makes another Constitution saving throw at the end of each of its turns. On a successful save, it is no longer blinded.\"\r\n};\r\nSpellsList[\"chromatic orb\"] = {\r\n\tname : \"Chromatic Orb\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 221]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A diamond worth at least 50 gp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell attack for 3d8+1d8/SL Acid, Cold, Fire, Lightning, Poison or Thunder dmg (50gp)\",\r\n\tdescriptionFull : \"You hurl a 4-inch-diameter sphere of energy at a creature that you can see within range. You choose acid, cold, fire, lightning, poison, or thunder for the type of orb you create, and then make a ranged spell attack against the target. If the attack hits, the creature takes 3d8 damage of the type you chose.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"poison\", \"thunder\"],\r\n\t\t\tinDescriptionAs :\"Acid, Cold, Fire, Lightning, Poison or Thunder\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"circle of power\"] = {\r\n\tname : \"Circle of Power\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 221]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Any crea while in area adv. on saves vs. magical effects; if save would half dmg it takes no dmg\",\r\n\tdescriptionFull : \"Divine energy radiates from you, distorting and diffusing magical energy within 30 feet of you. Until the spell ends, the sphere moves with you, centered on you. For the duration, each friendly creature in the area (including you) has advantage on saving throws against spells and other magical effects. Additionally, when an affected creature succeeds on a saving throw made against a spell or magical effect that allows it to make a saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw.\"\r\n};\r\nSpellsList[\"cloud of daggers\"] = {\r\n\tname : \"Cloud of Daggers\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 222]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A sliver of glass\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"5-ft cube 4d4+2d4/SL Slashing dmg to all that enter or start turn in area\",\r\n\tdescriptionFull : \"You fill the air with spinning daggers in a cube 5 feet on each side, centered on a point you choose within range. A creature takes 4d4 slashing damage when it enters the spell's area for the first time on a turn or starts its turn there.\" + AtHigherLevels + \"when you cast this spell using a spell slot of 3rd level or higher, the damage increases by 2d4 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"compelled duel\"] = {\r\n\tname : \"Compelled Duel\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 224]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or dis. on attacks vs. not-me and save if moving more than 30 ft away\",\r\n\tdescriptionFull : \"You attempt to compel a creature into a duel. One creature that you can see within range must make a Wisdom saving throw. On a failed save, the creature is drawn to you, compelled by your divine demand. For the duration, it has disadvantage on attack rolls against creatures other than you, and must make a Wisdom saving throw each time it attempts to move to a space that is more than 30 feet away from you, if it succeeds on this saving throw, this spell doesn't restrict the target's movement for that turn.\" + \"\\n   \" + \"The spell ends if you attack any other creature, if you cast a spell that targets a hostile creature other than the target, if a creature friendly to you damages the target or casts a harmful spell on it, or if you end your turn more than 30 feet away from the target.\"\r\n};\r\nSpellsList[\"conjure barrage\"] = {\r\n\tname : \"Conjure Barrage\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 225]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:60\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"One piece of ammunition or a thrown weapon\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Throw weapon or ammo; copies rain down for 3d8 dmg; dmg type as weapon; save halves\",\r\n\tdescriptionFull : \"You throw a nonmagical weapon or fire a piece of nonmagical ammunition into the air to create a cone of identical weapons that shoot forward and then disappear. Each creature in a 60-foot cone must succeed on a Dexterity saving throw. A creature takes 3d8 damage on a failed save, or half as much damage on a successful one. The damage type is the same as that of the weapon or ammunition used as a component.\"\r\n};\r\nSpellsList[\"conjure volley\"] = {\r\n\tname : \"Conjure Volley\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 226]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"One piece of ammunition or one thrown weapon\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Turn ammo/thrown wea into volley; 40-ft rad 20-ft high 8d8 dmg; dmg type as weapon; save halves\",\r\n\tdescriptionFull : \"You fire a piece of nonmagical ammunition from a ranged weapon or throw a nonmagical weapon into the air and choose a point within range. Hundreds of duplicates of the ammunition or weapon fall in a volley from above and then disappear. Each creature in a 40-foot-radius. 20-foot-high cylinder centered on that point must make a Dexterity saving throw. A creature takes 8d8 damage on a failed save, or half as much damage on a successful one. The damage type is the same as that of the ammunition or weapon.\"\r\n};\r\nSpellsList[\"cordon of arrows\"] = {\r\n\tname : \"Cordon of Arrows\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 228]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Four or more arrows or bolts\",\r\n\tduration : \"8 h\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"4+2/SL arrows/bolts attack first crea in 30 ft one at a time for 1d6 Piercing dmg; save halves\",\r\n\tdescriptionFull : \"You plant four pieces of nonmagical ammunition - arrows or crossbow bolts - in the ground within range and lay magic upon them to protect an area. Until the spell ends, whenever a creature other than you comes within 30 feet of the ammunition for the first time on a turn or ends its turn there, one piece of ammunition flies up to strike it. The creature must succeed on a Dexterity saving throw or take 1d6 piercing damage. The piece of ammunition is then destroyed. The spell ends when no ammunition remains.\" + \"\\n   \" + \"When you cast this spell, you can designate any creatures you choose, and the spell ignores them.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the amount of ammunition that can be affected increases by two for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"crown of madness\"] = {\r\n\tname : \"Crown of Madness\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 229]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 humanoid save or charmed and must melee attack against crea chosen by me; extra save/rnd\",\r\n\tdescriptionFull : \"One humanoid of your choice that you can see within range must succeed on a Wisdom saving throw or become charmed by you for the duration. While the target is charmed in this way, a twisted crown of jagged iron appears on its head, and a madness glows in its eyes.\" + \"\\n   \" + \"The charmed target must use its action before moving on each of its turns to make a melee attack against a creature other than itself that you mentally choose. The target can act normally on its turn if you choose no creature or if none are within its reach.\" + \"\\n   \" + \"On your subsequent turns, you must use your action to maintain control over the target, or the spell ends. Also, the target can make a Wisdom saving throw at the end of each of its turns. On a success, the spell ends.\"\r\n};\r\nSpellsList[\"crusader's mantle\"] = {\r\n\tname : \"Crusader's Mantle\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 230]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me and allies in range deal extra 1d4 Radiant dmg with weapon attacks\",\r\n\tdescriptionFull : \"Holy power radiates from you in an aura with a 30-foot radius, awakening boldness in friendly creatures. Until the spell ends, the aura moves with you, centered on you. While in the aura, each non-hostile creature in the aura (including you) deals an extra 1d4 radiant damage when it hits with a weapon attack.\"\r\n};\r\nSpellsList[\"destructive wave\"] = {\r\n\tname : \"Destructive Wave\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 231]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any crea 5d6 Thunder dmg \\u0026 5d6 Radiant or Necrotic dmg \\u0026 knocked prone; save halves, not prone\",\r\n\tdescriptionShorter : \"Any crea 5d6 Thunder dmg \\u0026 5d6 Radiant or Necrotic dmg \\u0026 prone; save half, not prone\",\r\n\tdescriptionFull : \"You strike the ground, creating a burst of divine energy that ripples outward from you. Each creature you choose within 30 feet of you must succeed on a Constitution saving throw or take 5d6 thunder damage, as well as 5d6 radiant or necrotic damage (your choice), and be knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\r\n\tdynamicDamageBonus : {\r\n\t\tallDmgTypesSingleMoment : true,\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"radiant\", \"necrotic\"],\r\n\t\t\tinDescriptionAs : \"Radiant or Necrotic\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"dissonant whispers\"] = {\r\n\tname : \"Dissonant Whispers\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"P\", 234]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea 3d6+1d6/SL Psychic dmg and flee; save halves and no fleeing; deaf crea are immune\",\r\n\tdescriptionFull : \"You whisper a discordant melody that only one creature of your choice within range can hear, wracking it with terrible pain. The target must make a Wisdom saving throw. On a failed save, it takes 3d6 psychic damage and must immediately use its reaction, if available, to move as far as its speed allows away from you. The creature doesn't move into obviously dangerous ground, such as a fire or a pit. On a successful save, the target takes half as much damage and doesn't have to move away. A deafened creature automatically succeeds on the save.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"elemental weapon\"] = {\r\n\tname : \"Elemental Weapon\",\r\n\tclasses : [\"artificer\", \"paladin\"],\r\n\tsource : [[\"P\", 237]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"+1 magical weapon; +1d4 Acid, Cold, Fire, Lightning, or Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\r\n\tdescriptionShorter : \"+1 wea; +1d4 Acid/Cold/Fire/Lightning/Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\r\n\tdescriptionFull : \"A nonmagical weapon you touch becomes a magic weapon. Choose one of the following damage types - acid, cold, fire, lightning, or thunder. For the duration, the weapon has a +1 bonus to attack rolls and deals an extra 1d4 damage of the chosen type when it hits.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th or 6th level, the bonus to attack rolls increases to +2 and the extra damage increases to 2d4. When you use a spell slot of 7th level or higher, the bonus increases to +3 and the extra damage increases to 3d4.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\t\tinDescriptionAs : \"Acid, Cold, Fire, Lightning, or Thunder|Acid/Cold/Fire/Lightning/Thunder\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"ensnaring strike\"] = {\r\n\tname : \"Ensnaring Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 237]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Next crea hit save (Large adv.) or restrained, 1d6+1d6/SL Piercing dmg/rnd; Str check to escape\",\r\n\tdescriptionShorter : \"Next crea hit save (Large adv.) or restrained, 1d6+1d6/SL Piercing dmg/rnd; Str chk escape\",\r\n\tdescriptionFull : \"The next time you hit a creature with a weapon attack before this spell ends, a writhing mass of thorny vines appears at the point of impact, and the target must succeed on a Strength saving throw or be restrained by the magical vines until the spell ends. A Large or larger creature has advantage on this saving throw. If the target succeeds on the save, the vines shrivel away.\" + \"\\n   \" + \"While restrained by this spell, the target takes 1d6 piercing damage at the start of each of its turns. A creature restrained by the vines or one that can touch the creature can use its action to make a Strength check against your spell save DC. On a success, the target is freed.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"feign death\"] = {\r\n\tname : \"Feign Death\",\r\n\tclasses : [\"bard\", \"cleric\", \"druid\", \"wizard\"],\r\n\tsource : [[\"P\", 240]],\r\n\tritual : true,\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pinch of graveyard dirt\",\r\n\tduration : \"1 h (D)\",\r\n\tdescription : \"Willing creature appears dead; it is blinded, incapacitated, has dmg resist. all but Psychic, and speed 0\",\r\n\tdescriptionFull : \"You touch a willing creature and put it into a cataleptic state that is indistinguishable from death.\" + \"\\n   \" + \"For the spell's duration, or until you use an action to touch the target and dismiss the spell, the target appears dead to all outward inspection and to spells used to determine the target's status. The target is blinded and incapacitated, and its speed drops to 0. The target has resistance to all damage except psychic damage. If the target is diseased or poisoned when you cast the spell, or becomes diseased or poisoned while under the spell's effect, the disease and poison have no effect until the spell ends.\"\r\n};\r\nSpellsList[\"friends\"] = {\r\n\tname : \"Friends\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 244]],\r\n\tlevel : 0,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A small amount of makeup applied to the face as this spell is cast\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Adv. on Cha checks vs. 1 crea currently not hostile; when spell ends, crea knows and becomes hostile\",\r\n\tdescriptionFull : \"For the duration, you have advantage on all Charisma checks directed at one creature of your choice that isn't hostile toward you. When the spell ends, the creature realizes that you used magic to influence its mood and becomes hostile toward you. A creature prone to violence might attack you. Another creature might seek retribution in other ways (at the DM's discretion), depending on the nature of your interaction with it.\"\r\n};\r\nSpellsList[\"grasping vine\"] = {\r\n\tname : \"Grasping Vine\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"P\", 246]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Conjure vine with 30 ft reach; bns a to direct to 1 crea save or pulled 20 ft to vine\",\r\n\tdescriptionFull : \"You conjure a vine that sprouts from the ground in an unoccupied space of your choice that you can see within range. When you cast this spell, you can direct the vine to lash out at a creature within 30 feet of it that you can see. That creature must succeed on a Dexterity saving throw or be pulled 20 feet directly toward the vine.\" + \"\\n   \" + \"Until the spell ends, you can direct the vine to lash out at the same creature or another one as a bonus action on each of your turns.\"\r\n};\r\nSpellsList[\"hail of thorns\"] = {\r\n\tname : \"Hail of Thorns\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 249]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Next ranged weapon hit, all within 5 ft of target 1d10+1d10/SL Piercing dmg; save halves\",\r\n\tdescriptionFull : \"The next time you hit a creature with a ranged weapon attack before the spell ends, this spell creates a rain of thorns that sprouts from your ranged weapon or ammunition. In addition to the normal effect of the attack, the target of the attack and each creature within 5 feet of it must make a Dexterity saving throw. A creature takes 1d10 piercing damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d10 for each slot level above 1st (to a maximum of 6d10).\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"hex\"] = {\r\n\tname : \"Hex\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 251]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"The petrified eye of a newt\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 crea +1d6 Necrotic dmg from my atks; dis. on chosen ability checks; SL3: conc, 8h; SL5: conc, 24h\",\r\n\tdescriptionShorter : \"1 crea +1d6 Necrotic dmg from my atks; dis. chosen abi chks; SL3: conc, 8h; SL5: conc, 24h\",\r\n\tdescriptionFull : \"You place a curse on a creature that you can see within range. Until the spell ends, you deal an extra 1d6 necrotic damage to the target whenever you hit it with an attack. Also, choose one ability when you cast the spell. The target has disadvantage on ability checks made with the chosen ability.\" + \"\\n   \" + \"If the target drops to 0 hit points before this spell ends, you can use a bonus action on a subsequent turn of yours to curse a new creature.\" + \"\\n   \" + \"A remove curse cast on the target ends this spell early.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd or 4th level, you can maintain your concentration on the spell for up to 8 hours. When you use a spell slot of 5th level or higher, you can maintain your concentration on the spell for up to 24 hours.\"\r\n};\r\nSpellsList[\"hunger of hadar\"] = {\r\n\tname : \"Hunger of Hadar\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 251]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pickled octopus tentacle\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft rad all: blind while in, start turn in 2d6 Cold dmg, end turn in save or 2d6 Acid dmg\",\r\n\tdescriptionFull : \"You open a gateway to the dark between the stars, a region infested with unknown horrors. A 20-foot-radius sphere of blackness and bitter cold appears, centered on a point with range and lasting for the duration. This void is filled with a cacophony of soft whispers and slurping noises that can be heard up to 30 feet away. No light, magical or otherwise, can illuminate the area, and creatures fully within the area are blinded.\" + \"\\n   \" + \"The void creates a warp in the fabric of space, and the area is difficult terrain. Any creature that starts its turn in the area takes 2d6 cold damage. Any creature that ends its turn in the area must succeed on a Dexterity saving throw or take 2d6 acid damage as milky, otherworldly tentacles rub against it.\"\r\n};\r\nSpellsList[\"lightning arrow\"] = {\r\n\tname : \"Lightning Arrow\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 255]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Next rngd wea atk 4d8+1d8/SL Lightn. dmg, miss half; 10 ft all 2d8+1d8/SL Lightn. dmg, save half\",\r\n\tdescriptionShorter : \"Next atk 4d8+1d8/SL Lightn. dmg, miss h\" + (typePF ? \"a\" : \"\") + \"lf; 10 ft all 2d8+1d8/SL Lightn. dmg, save half\",\r\n\tdescriptionFull : \"The next time you make a ranged weapon attack during the spell's duration, the weapon's ammunition, or the weapon itself if it's a thrown weapon, transforms into a bolt of lightning. Make the attack roll as normal. The target takes 4d8 lightning damage on a hit, or half as much damage on a miss, instead of the weapon's normal damage.\" + \"\\n   \" + \"Whether you hit or miss, each creature within 10 feet of the target must make a Dexterity saving throw. Each of these creatures takes 2d8 lightning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"The piece of ammunition or weapon then returns to its normal form.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage for both effects of the spell increases by 1d8 for each slot level above 3rd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\tskipDmgGroupIfNotMultiple : /(atk .*?lightn\\. dmg.*?)/i\r\n\t}\r\n};\r\nSpellsList[\"phantasmal force\"] = {\r\n\tname : \"Phantasmal Force\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 264]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of fleece\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or sees 10 ft cube illusion that does 1d6 Psychic dmg/rnd; Int(Investigation) vs. spell DC\",\r\n\tdescriptionShorter : \"1 crea save or sees 10 ft cube illusion that does 1d6 Psychic dmg/rnd; Investigation vs. DC\",\r\n\tdescriptionFull : \"You craft an illusion that takes root in the mind of a creature that you can see within range. The target must make an Intelligence saving throw. On a failed save, you create a phantasmal object, creature, or other visible phenomenon of your choice that is no larger than a 10-foot cube and that is perceivable only to the target for the duration. This spell has no effect on undead or constructs.\" + \"\\n   \" + \"The phantasm includes sound, temperature, and other stimuli, also evident only to the creature.\" + \"\\n   \" + \"The target can use its action to examine the phantasm with an Intelligence (Investigation) check against your spell save DC. If the check succeeds, the target realizes that the phantasm is an illusion, and the spell ends.\" + \"\\n   \" + \"While a target is affected by the spell, the target treats the phantasm as if it were real. The target rationalizes any illogical outcomes from interacting with the phantasm. For example, a target attempting to walk across a phantasmal bridge that spans a chasm falls once it steps onto the bridge. If the target survives the fall, it still believes that the bridge exists and comes up with some other explanation for its fall - it was pushed, it slipped, or a strong wind might have knocked it off.\" + \"\\n   \" + \"An affected target is so convinced of the phantasm's reality that it can even take damage from the illusion. A phantasm created to appear as a creature can attack the target. Similarly, a phantasm created to appear as fire, a pool of acid, or lava can burn the target. Each round on your turn, the phantasm can deal 1d6 psychic damage to the target if it is in the phantasm's area or within 5 feet of the phantasm, provided that the illusion is of a creature or hazard that could logically deal damage, such as by attacking. The target perceives the damage as a type appropriate to the illusion.\"\r\n};\r\nSpellsList[\"power word heal\"] = {\r\n\tname : \"Power Word Heal\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"P\", 266]],\r\n\tlevel : 9,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea heals all HP and stops being charmed, frightened, paralyzed, stunned; it can use rea to stand up\",\r\n\tdescriptionShorter : \"1 crea heals all HP, not charmed, frightened, paralyzed, stunned; rea to stand up\",\r\n\tdescriptionFull : \"A wave of healing energy washes over the creature you touch. The target regains all its hit points. If the creature is charmed, frightened, paralyzed, or stunned, the condition ends. If the creature is prone, it can use its reaction to stand up. This spell has no effect on undead or constructs.\"\r\n};\r\nSpellsList[\"ray of sickness\"] = {\r\n\tname : \"Ray of Sickness\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 271]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Spell attack for 2d8+1d8/SL Poison dmg; save or also poisoned until end of my next turn\",\r\n\tdescriptionFull : \"A ray of sickening greenish energy lashes out toward a creature within range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 poison damage and must make a Constitution saving throw. On a failed save, it is also poisoned until the end of your next turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"searing smite\"] = {\r\n\tname : \"Searing Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 274]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Next melee weapon hit +1d6+1d6/SL Fire dmg and target ignites: start of turn save to end or 1d6 dmg\",\r\n\tdescriptionShorter : \"Next melee wea hit +1d6+1d6/SL Fire dmg \\u0026 ignites: start of turn save to end or 1d6 dmg\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during the spell's duration, your weapon flares with white-hot intensity, and the attack deals an extra 1d6 fire damage to the target and causes the target to ignite in flames. At the start of each of its turns until the spell ends, the target must make a Constitution saving throw. On a failed save, it takes 1d6 fire damage. On a successful save, the spell ends. If the target or a creature within 5 feet of it uses an action to put out the flames, or if some other effect douses the flames (such as the target being submerged in water), the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the initial extra damage dealt by the attack increases by 1d6 for each slot above the 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\textraDmgGroupsSameType : /(end or )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"staggering smite\"] = {\r\n\tname : \"Staggering Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 278]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Next melee weapon hit +4d6 Psychic dmg and save or dis. on atks/chks, no rea, until end next turn\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during this spell's duration, your weapon pierces both body and mind, and the attack deals an extra 4d6 psychic damage to the target. The target must make a Wisdom saving throw. On a failed save, it has disadvantage on attack rolls and ability checks, and can't take reactions, until the end of its next turn.\"\r\n};\r\nSpellsList[\"swift quiver\"] = {\r\n\tname : \"Swift Quiver\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 279]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A quiver containing at least one piece of ammunition\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Quiver gives nonmagical ammo; bns a to make 2 atks with weapon that uses ammo from that quiver\",\r\n\tdescriptionFull : \"You transmute your quiver so it produces an endless supply of nonmagical ammunition, which seems to leap into your hand when you reach for it.\" + \"\\n   \" + \"On each of your turns until the spell ends, you can use a bonus action to make two attacks with a weapon that uses ammunition from the quiver. Each time you make such a ranged attack, your quiver magically replaces the piece of ammunition you used with a similar piece of nonmagical ammunition. Any pieces of ammunition created by this spell disintegrate when the spell ends. If the quiver leaves your possession, the spell ends.\"\r\n};\r\nSpellsList[\"telepathy\"] = {\r\n\tname : \"Telepathy\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"P\", 281]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Unlimited\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pair of linked silver rings\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"1 willing crea Int>0 and I telepathic link; share words, sensory information if on same plane\",\r\n\tdescriptionFull : \"You create a telepathic link between yourself and a willing creature with which you are familiar. The creature can be anywhere on the same plane of existence as you. The spell ends if you or the target are no longer on the same plane.\" + \"\\n   \" + \"Until the spell ends, you and the target can instantaneously share words, images, sounds, and other sensory messages with one another through the link, and the target recognizes you as the creature it is communicating with. The spell enables a creature with an Intelligence score of at least 1 to understand the meaning of your words and take in the scope of any sensory messages you send to it.\"\r\n};\r\nSpellsList[\"thorn whip\"] = {\r\n\tname : \"Thorn Whip\",\r\n\tclasses : [\"artificer\", \"druid\"],\r\n\tsource : [[\"P\", 282]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"The stem of a plant with thorns\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell atk for 1d6 Piercing dmg and pull crea up to 10 ft towards me; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Melee spell attack for `CD`d6 Piercing dmg and pull crea up to 10 ft towards me\",\r\n\tdescriptionFull : \"You create a long, vine-like whip covered in thorns that lashes out at your command toward a creature in range. Make a melee spell attack against the target. If the attack hits, the creature takes 1d6 piercing damage, and if the creature is Large or smaller, you pull the creature up to 10 feet closer to you.\" + \"\\n   \" + \"This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"thunderous smite\"] = {\r\n\tname : \"Thunderous Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 282]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Next melee weapon hit +2d6 Thunder dmg and save or 10 ft push and prone; audible in 300 ft\",\r\n\tdescriptionFull : \"The first time you hit with a melee weapon attack during this spell's duration, your weapon rings with thunder that is audible within 300 feet of you, and the attack deals an extra 2d6 thunder damage to the target. Additionally, if the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet away from you and knocked prone.\"\r\n};\r\nSpellsList[\"tsunami\"] = {\r\n\tname : \"Tsunami\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"P\", 284]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Sight\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 6 rnds\",\r\n\tsave : \"Str\",\r\n\tdescription : \"300\\xD750\\xD7300ft (l\\xD7w\\xD7h) wall of water moves away at 50 ft/rnd; 6d10 Bludg. dmg; save halves; see B\",\r\n\tdescriptionShorter : \"300\\xD750\\xD7300ft (l\\xD7w\\xD7h) wave moves away at 50 ft/rnd; 6d10 Bludg. dmg; save half; see B\",\r\n\tdescriptionMetric : \"90\\xD715\\xD790m (l\\xD7w\\xD7h) wall of water moves away at 15 m/rnd; 6d10 Bludg. dmg; save halves; see B\",\r\n\tdescriptionShorterMetric : \"90\\xD715\\xD790m (l\\xD7w\\xD7h) wave moves away at 15 m/rnd; 6d10 Bludg. dmg; save half; see B\",\r\n\tdescriptionFull : \"A wall of water springs into existence at a point you choose within range. You can make the wall up to 300 feet long, 300 feet high, and 50 feet thick. The wall lasts for the duration.\" + \"\\n   \" + \"When the wall appears, each creature within its area must make a Strength saving throw. On a failed save, a creature takes 6d10 bludgeoning damage, or half as much damage on a successful save.\" + \"\\n   \" + \"At the start of each of your turns after the wall appears, the wall, along with any creatures in it, moves 50 feet away from you. Any Huge or smaller creature inside the wall or whose space the wall enters when it moves must succeed on a Strength saving throw or take 5d10 bludgeoning damage. A creature can take this damage only once per round. At the end of the turn, the wall's height is reduced by 50 feet, and the damage creatures take from the spell on subsequent rounds is reduced by 1d10. When the wall reaches 0 feet in height, the spell ends.\" + \"\\n   \" + \"A creature caught in the wall can move by swimming. Because of the force of the wave, though, the creature must make a successful Strength (Athletics) check against your spell save DC in order to move at all. If it fails the check, it can't move. A creature that moves out of the area falls to the ground.\"\r\n};\r\nSpellsList[\"witch bolt\"] = {\r\n\tname : \"Witch Bolt\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 289]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A twig from a tree that has been struck by lightning\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Rngd spell atk 1d12+1d12/SL Lightn. dmg; 1 a 1d12 Lightn. dmg; ends if out of range or I do other a\",\r\n\tdescriptionShorter : \"Rngd atk 1d12+1d12/SL Lightn. dmg; 1 a 1d12 Lightn. dmg; end: out of range/do other a\",\r\n\tdescriptionFull : \"A beam of crackling, blue energy lances out toward a creature within range, forming a sustained arc of lightning between you and the target. Make a ranged spell attack against that creature. On a hit, the target takes 1d12 lightning damage, and on each of your turns for the duration, you can use your action to deal 1d12 lightning damage to the target automatically. The spell ends if you use your action to do anything else. The spell also ends if the target is ever outside the spell's range or if it has total cover from you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the initial damage increases by 1d12 for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /(1 a )(.*?)( Lightn. dmg)/i\r\n\t}\r\n};\r\nSpellsList[\"wrathful smite\"] = {\r\n\tname : \"Wrathful Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 289]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Next melee weapon hit +1d6 Psychic dmg and save or frightened; it can take 1 a for extra save\",\r\n\tdescriptionFull : \"The next time you hit with a melee weapon attack during this spell's duration, your attack deals an extra 1d6 psychic damage. Additionally, if the target is a creature, it must make a Wisdom saving throw or be frightened of you until the spell ends. As an action, the creature can make a Wisdom check against your spell save DC to steel its resolve and end this spell.\"\r\n};\r\n\n// pub_20140819_HotDQ+20141104_RoT.js\r\n// This file adds the background features and magic items from the Hoard of the Dragon Queen and Rise of Tiamat adventure books to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.HotDQ={\r\n\tname : \"Hoard of the Dragon Queen [background features, items]\",\r\n\tabbreviation : \"HotDQ\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://wpn.wizards.com/en/products/tyranny-of-dragons\",\r\n\tdate : \"2014/08/19\"\r\n};\r\nSourceList.RoT = {\r\n\tname : \"Rise of Tiamat [items]\",\r\n\tabbreviation : \"RoT\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://wpn.wizards.com/en/products/tyranny-of-dragons\",\r\n\tdate : \"2014/11/04\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"cult of the dragon infiltrator\"] = {\r\n\tdescription : \"I have infiltrated the ranks of the Cult of the Dragon. Having spied on the organization for quite some time, I am familiar with its inner workings and customs. I have a second identity as an initiate of the cult, enough of a facade to blend in as a simple grunt or servant.\",\r\n\tsource : [[\"HotDQ\", 87], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"dragon scholar\"] = {\r\n\tdescription : \"I have studied dragons and their lore for many years. I can automatically identify locations built or used by dragons, and I can identify dragon eggs and scales by sight. If I fail an Intelligence check to recall lore relating to dragons, I know someone or some book that I can consult for the answer unless the DM rules that the lore is unknown.\",\r\n\tsource : [[\"HotDQ\", 87], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Magic Items\r\n// The magic cauldron on page 79 is omitted as its only magic is that it functions as the material component for the Augury spell. Not something an adventurer is likely to use, with it being 50 lb.\r\nMagicItemsList[\"dragongleam\"] = {\r\n\tname : \"Dragongleam\",\r\n\tsource : [[\"HotDQ\", 69]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This rusty spear is engraved with draconic runes on its crossguard which read \\\"Tiamat's Eyes Shine\\\". The spear has 10 charges. As an action while holding it, I can say this command and expend 1 charge to cast Daylight. The spear loses its magic once all charges are expended.\",\r\n\tdescriptionFull : \"This rusty spear is engraved with draconic runes on its crossguard which read \\\"Tiamat's Eyes Shine\\\". The spear has 10 charges. While holding it, you can say the command and expend 1 charge as an action to cast the Daylight spell. The spear loses this property if it has no charges left.\",\r\n\tweight : 3,\r\n\tusages : 10,\r\n\trecovery : \"Never\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"daylight\"],\r\n\t\tselection : [\"daylight\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"daylight\" : {\r\n\t\t\tcomponent : \"V,M\\u0192\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"spear\",\r\n\t\tregExpSearch : /dragongleam/i,\r\n\t\tname : \"Dragongleam\",\r\n\t\tsource : [[\"HotDQ\", 69]],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"tankard of plenty\"] = {\r\n\tname : \"Tankard of Plenty\",\r\n\tsource : [[\"HotDQ\", 74]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"A\",\r\n\tdescription : 'This golden stein is decorated with dancing dwarves and grain patterns. Speaking the command word \"Illefarn\" while grasping the handle fills the tankard with three pints of rich dwarven ale. This power can be used up to three times per day.',\r\n\tdescriptionFull : 'This golden stein is decorated with dancing dwarves and grain patterns. Speaking the command word (\"Illefarn\") while grasping the handle fills the tankard with three pints of rich dwarven ale. This power can be used up to three times per day.',\r\n\tusages : 3,\r\n\trecovery : \"Day\"\r\n}\r\nvar HotDQ_tempDragonMaskNoteTxt = [\r\n\tdesc([\r\n\t\ttoUni(\"Damage Absorption\") + \". You have resistance against DTYPE damage. If you already have resistance to DTYPE damage from another source, you instead have immunity to DTYPE damage. If you already have immunity to DTYPE damage from another source, whenever you are subjected to DTYPE damage, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\",\r\n\t\ttoUni(\"Draconic Majesty\") + \". While you are wearing no armor, you can add your Charisma bonus to your Armor Class.\",\r\n\t\ttoUni(\"Dragon Breath\") + \". If you have a breath weapon that requires rest to recharge, it gains a recharge of 6.\",\r\n\t\ttoUni(\"Dragon Sight\") + \". You gain darkvision out to 60 feet, or to an additional 60 feet if you already have that sense. Once per day, you can gain blindsight out to 30 feet for 5 minutes.\",\r\n\t\ttoUni(\"Dragon Tongue\") + \". You can speak and understand Draconic. You also have advantage on any Charisma check you make against DCOLOUR dragons.\",\r\n\t\ttoUni(\"Legendary Resistance (1/Day)\") + \". If you fail a saving throw, you can choose to succeed instead.\"\r\n\t]), [\r\n\t\t\" It reshapes to fit my face and head when I attuned to it. While I'm wearing a dragon mask and attuned to it, it grants me the following benefits.\",\r\n\t\t\"\\u2022 Damage Absorption. I have resistance against DTYPE damage. If I already have resistance to DTYPE damage from another source, I instead gain immunity to DTYPE damage. If I already have immunity to DTYPE damage from another source, whenever I am subjected to DTYPE damage, I take none of that damage and instead regain a number of hit points equal to half the DTYPE damage dealt.\",\r\n\t\t\"\\u2022 Draconic Majesty. While I am wearing no armor, I can add my Charisma bonus to my Armor Class.\",\r\n\t\t\"\\u2022 Dragon Breath. If I have a breath weapon that requires rest to recharge, it gains a recharge of 6.\",\r\n\t\t\"\\u2022 Dragon Sight. I gain darkvision out to 60 ft, or to an additional 60 ft if I already have that sense. Once per day, I can gain blindsight out to 30 ft for 5 minutes.\",\r\n\t\t\"\\u2022 Dragon Tongue. I can speak and understand Draconic. I also have advantage on any Charisma check I make against DCOLOUR dragons.\",\r\n\t\t\"\\u2022 Legendary Resistance. Once per day when I fail a saving throw, I can choose to succeed instead.\"\r\n\t].join(\"\\n   \")\r\n];\r\nMagicItemsList[\"dragon mask\"] = {\r\n\tname : \"Dragon Mask\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb associated damage type, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. a dragon type, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, see Notes page.\",\r\n\tdescriptionFull : \"Each dragon mask is a legendary wondrous item that reshapes to fit the face and head of a wearer attuned to it. While you are wearing any dragon mask and attuned to it, you gain the following benefits.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/You have resistance against DTYPE damage.*?\\n/, \"You have resistance against the mask's damage type. If you already have resistance to that damage type from another source, you instead have immunity to that damage type. If you already have immunity to that damage type from another source, whenever you are subjected to damage of that type, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR dragons\", \"dragons that share the mask's color\"),\r\n\tattunement : true,\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tusages : 1,\r\n\trecovery : \"Day\",\r\n\tadditional : \"Legendary Resistance\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Dragon Mask (Blindsight 30 ft, 5 min)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Day\"\r\n\t}],\r\n\textraAC : [{\r\n\t\tmod : \"Cha\",\r\n\t\tmagic : true,\r\n\t\ttext : \"I add my Charisma modifier to AC while I'm not wearing armor.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor; }\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.dbBreathWeapon || (/^(?=.*breath)(?=.*weapon).*$/i).test(v.theWea.name)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(Us(e|able)( only)? )?once per (short|long) rest/i, 'Recharge 6');\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tincrementDamageRes : function (dType, dRes) {\r\n\t\tSetProf(\r\n\t\t\t\"savetxt\",\r\n\t\t\tCurrentProfs.resistance[dRes] && CurrentProfs.resistance[dRes].src.length > 1,\r\n\t\t\t{ immune : [dRes] },\r\n\t\t\t!dType ? \"Mask of the Dragon Queen (magic item)\" : dType + \" Dragon Mask (magic item)\"\r\n\t\t);\r\n\t},\r\n\tchoices : [\"Black\", \"Blue\", \"Green\", \"Red\", \"White\", \"Mask of the Dragon Queen\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"black\" : {\r\n\t\tname : \"Black Dragon Mask\",\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb acid damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. black dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This horned mask of glossy ebony has horns and a skull-like mien. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb acid damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against black dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and water breathing. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This horned mask of glossy ebony has horns and a skull-like mien. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"acid\").replace(\"DCOLOUR\", \"black\") + \"\\n   \" + toUni(\"Water Breathing\") + \". You can breathe underwater.\",\r\n\t\tdmgres : [\"Acid\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Black\", \"acid\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This horned mask of glossy ebony has horns and a skull-like mien.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"acid\").replace(\"DCOLOUR\", \"black\") + \"\\n   Water Breathing. I can breathe underwater.\"\r\n\t\t}]\r\n\t},\r\n\t/*\r\n\t\tAlthough the adventure book only includes the Black Dragon Mask,\r\n\t\tthis code also includes the Blue, Green, Red, and White Dragon Masks.\r\n\t\tThe rules for these are found in the Rise of Tiamat Online Supplement,\r\n\t\there: https://media.wizards.com/2014/downloads/dnd/RiseTiamatSupplementv0.2_Printer.pdf\r\n\t*/\r\n\t\"blue\" : {\r\n\t\tname : \"Blue Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb lightning damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. Cha checks vs. blue dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask of glossy azure has spikes around its edges and a ridged horn in its center. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb lightning damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against blue dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Lingering Shock. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mask of glossy azure has spikes around its edges and a ridged horn in its center. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"lightning\").replace(\"DCOLOUR\", \"blue\") + \"\\n   \" + toUni(\"Lingering Shock\") + \". If you deal lightning damage to a creature, it can't take reactions until its next turn.\",\r\n\t\tdmgres : [\"Lightning\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Blue\", \"lightning\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mask of glossy azure has spikes around its edges and a ridged horn in its center.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"lightning\").replace(\"DCOLOUR\", \"blue\") + \"\\n   Lingering Shock. If I deal lightning damage to a creature, it can't take reactions until its next turn.\"\r\n\t\t}]\r\n\t},\r\n\t\"green\" : {\r\n\t\tname : \"Green Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb poison damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. green dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mottled green mask is surmounted by a frilled crest and has spikes along its jaw. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb poison damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against green dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and water breathing. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mottled green mask is surmounted by a frilled crest and has leathery spiked plates along its jaw. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"poison\").replace(\"DCOLOUR\", \"green\") + \"\\n   \" + toUni(\"Water Breathing\") + \". You can breathe underwater.\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Green\", \"poison\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mottled green mask is surmounted by a frilled crest and has leathery spiked plates along its jaw.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"poison\").replace(\"DCOLOUR\", \"green\") + \"\\n   Water Breathing. I can breathe underwater.\"\r\n\t\t}]\r\n\t},\r\n\t\"red\" : {\r\n\t\tname : \"Red Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb fire damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. red dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask of glossy crimson has swept-back horns and spiked cheek ridges. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb fire damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against red dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Dragon Fire. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mask of glossy crimson has swept-back horns and spiked cheek ridges. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"fire\").replace(\"DCOLOUR\", \"red\") + \"\\n   \" + toUni(\"Dragon Fire\") + \". If you deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\",\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"red\", \"fire\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mask of glossy crimson has swept-back horns and spiked cheek ridges.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"fire\").replace(\"DCOLOUR\", \"red\") + \"\\n   Dragon Fire. If I deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\"\r\n\t\t}]\r\n\t},\r\n\t\"white\" : {\r\n\t\tname : \"White Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb cold damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. white dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This gleaming mask is white with highlights of pale blue and is topped by a spined crest. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb cold damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against white dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Winter's Fury. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This gleaming mask is white with highlights of pale blue and is topped by a spined crest. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"cold\").replace(\"DCOLOUR\", \"white\") + \"\\n   \" + toUni(\"Winter's Fury\") + \". While your current hit points are equal to or less than half your hit point maximum, you deal an extra 1d8 cold damage with your melee attacks.\",\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"white\", \"cold\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This gleaming mask is white with highlights of pale blue and is topped by a spined crest.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"cold\").replace(\"DCOLOUR\", \"white\") + \"\\n   Winter's Fury. While my current hit points are equal to or less than half my hit point maximum, I deal an extra 1d8 cold damage with my melee attacks.\"\r\n\t\t}]\r\n\t},\r\n\t\"mask of the dragon queen\" : {\r\n\t\tname : \"Mask of the Dragon Queen\",\r\n\t\tsource : [[\"RoT\", 94]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It allows to absorb acid, cold, fire, lightning, and poison damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (5/day), adv. on Cha checks vs. dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask gives me a draconic visage and covers my face, neck, and shoulders. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb acid, cold, fire, lightning, and poison damage, depending on how resistant I'm already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against dragons, lets me add my Charisma modifier to AC while not wearing armor, and more. 5 times per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"When two or more of the dragon masks are assembled they magically transform into the Mask of the Dragon Queen. Each mask shrinks to become the modeled head of a chromatic dragon, appearing to roar its devotion to Tiamat where all the masks brought together are arranged crown-like on the wearer's head. Below the five masks, a new mask shapes itself, granting the wearer a draconic visage that covers the face, neck, and shoulders. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/You have resistance against DTYPE damage.*?\\n/, \"You have resistance against acid, cold, fire, lightning, and poison damage. If you already have resistance to a damage type from another source, you instead have immunity to that damage type. If you already have immunity to a damage type from another source, whenever you are subjected to that damage type, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR \", \"\").replace(toUni(\"(1/Day)\"), toUni(\"(5/Day)\")) + \"\\n\\n   It can have the properties of any one of the colored masks, but only can have one active at a time. These are the following:\\n   \" + toUni(\"Water Breathing (black and green)\") + \". You can breathe underwater.\\n   \" + toUni(\"Lingering Shock (blue)\") + \". If you deal lightning damage to a creature, it can't take reactions until its next turn.\\n   \" + toUni(\"Dragon Fire (red)\") + \". If you deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\\n   \" + toUni(\"Winter's Fury (white)\") + \". While your current hit points are equal to or less than half your hit point maximum, you deal an extra 1d8 cold damage with your melee attacks.\",\r\n\t\tdmgres : [\"Acid\", \"Cold\", \"Fire\", \"Lightning\", \"Poison\"],\r\n\t\tchangeeval : function () {\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"acid\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"cold\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"fire\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"lightning\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"poison\");\r\n\t\t},\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   When two or more of the dragon masks are assembled they magically transform into the Mask of the Dragon Queen. Each mask shrinks to become the modeled head of a chromatic dragon, appearing to roar its devotion to Tiamat where all the masks brought together are arranged crown-like on the wearer's head. Below the five masks, a new mask shapes itself, granting the wearer a draconic visage that covers the face, neck, and shoulders.\" +\r\n\t\t\tHotDQ_tempDragonMaskNoteTxt[1].replace(/Damage Absorption.*?\\n/, \"Damage Absorption. I have resistance to acid, cold, fire, lightning, and poison damage. If I already have resistance to a damage type from another source, I instead have immunity to that damage type. If I already have immunity to a damage type from another source, whenever I am subjected to that damage type, I take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR \", \"\").replace(\"Once per day when\", \"Five times per day when\") +\r\n\t\t\t\"\\n   \\u2022 Special Properties. I can access the properties of any one of the colored masks, but only can have one active at a time. These are the following:\"+\r\n\t\t\t\"\\n      \\u25E6 Water Breathing (black and green). I can breathe underwater.\"+\r\n\t\t\t\"\\n      \\u25E6 Lingering Shock (blue). If I deal lightning damage to a creature, it can't take reactions until its next turn.\"+\r\n\t\t\t\"\\n      \\u25E6 Dragon Fire (red). If I deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\"+\r\n\t\t\t\"\\n      \\u25E6 Winter's Fury (white). While my current hit points are equal to or less than half my hit point maximum, I deal an extra 1d8 cold damage with my melee attacks.\"\r\n\t\t}],\r\n\t\tusages : 5,\r\n\t\trecovery : \"Day\",\r\n\t\tadditional : \"Legendary Resistance\"\r\n\t}\r\n}\r\nMagicItemsList[\"hazirawn\"] = {\r\n\tname : \"Hazirawn\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This sentient, neutral evil, greatsword functions depend on whether you are attuned to it or not.\",\r\n\tdescriptionFull : \"A sentient (neutral evil) greatsword, Hazirawn is capable of speech in Common and Netherese. Even if you aren't attuned to the sword, you gain a +1 bonus on attack and damage rolls made with this weapon and you deal an extra 1d6 necrotic damage when you hit with the weapon.\\n   \" + toUni(\"Increased Potency\") + \". While you are attuned to this weapon, its bonus on attack and damage rolls increases to +2, and a hit deals an extra 2d6 necrotic damage (instead of 1d6).\\n   \" + toUni(\"Spells\") + \". Hazirawn has 4 charges to cast spells. As long as the sword is attuned to you and you are holding it in your hand, you can cast Detect Magic (1 charge), Detect Evil and Good (1 charge), or Detect Thoughts (2 charges). Each night at midnight, Hazirawn regains 1d4 expended charges.\\n   \" + toUni(\"Wounding\") + \". While you are attuned to the weapon, any creature that you hit with Hazirawn can't regain hit points for 1 minute. The target can make a DC 15 Constitution saving throw at the end of each of its turns, ending this effect early on a success.\",\r\n\tweight : 6,\r\n\tchoices : [\"not attuned\", \"attuned\"],\r\n\t\"not attuned\" : {\r\n\t\tname : \"Hazirawn\\u200A\",\r\n\t\tdescription : \"A sentient (neutral evil) greatsword, Hazirawn is capable of speech in Common and Netherese. While I'm not attuned to the sword, I gain a +1 bonus on attack and damage rolls made with it. It also deals an extra 1d6 necrotic damage on attacks made with the sword.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"greatsword\",\r\n\t\t\tregExpSearch : /hazirawn/i,\r\n\t\t\tname : \"Hazirawn\",\r\n\t\t\tsource : [[\"HotDQ\", 94]],\r\n\t\t\tdescription : \"Heavy, two-handed; +1d6 necrotic damage\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"attuned\" : {\r\n\t\tname : \"Hazirawn\\u200A\\u200A\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This sentient, neutral evil, greatsword adds +2 to damage and to hit rolls, deals +2d6 necrotic damage, and those hit with it can't regain HP for 1 min, but can make a DC 15 Con save at the end of each turn to stop this effect. It has 4 charges to cast spells, regaining 1d4 at midnight. It speaks Common and Netherese.\",\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Hazirawn (regains 1d4)\",\r\n\t\t\tusages : 4,\r\n\t\t\trecovery : \"Midnight\"\r\n\t\t}],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"greatsword\",\r\n\t\t\tregExpSearch : /hazirawn/i,\r\n\t\t\tname : \"Hazirawn\",\r\n\t\t\tsource : [[\"HotDQ\", 94]],\r\n\t\t\tdescription : \"Heavy, two-handed; +2d6 necrotic damage; Wounding (can't regain HP for 1 min, DC 15 Con save to stop)\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"detect evil and good\", \"detect magic\"],\r\n\t\t\tselection : [\"detect evil and good\", \"detect magic\"],\r\n\t\t\tfirstCol : 1,\r\n\t\t\ttimes : 2\r\n\t\t}, {\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}],\r\n\t\tfixedDC : 15, // assumed from the fact that its Wounding property has DC 15\r\n\t\tspellFirstColTitle : \"Ch\"\r\n\t}\r\n}\r\nMagicItemsList[\"insignia of claws\"] = {\r\n\tname : \"Insignia of Claws\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"The jewels in the insignia flare with purple light when I enter combat, empowering my fists. While wearing the insignia, I gain a +1 bonus to the attack rolls and the damage rolls of my unarmed strikes and natural weapons. Such attacks are considered to be magical.\",\r\n\tdescriptionFull : \"The jewels in the insignia of the Cult of the Dragon flare with purple light when you enter combat, empowering your natural fists or natural weapons.\\n   While wearing the insignia you gain a +1 bonus to the attack rolls and the damage rolls you make with unarmed strikes and natural weapons. Such attacks are considered to be magical.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes gain a +1 bonus to their attack and damage rolls, and count as magical.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\toutput.magic += 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"wand of winter\"] = {\r\n\tname : \"Wand of Winter\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This wand looks and feels like an icicle and has 7 charges, regaining 1d6+1 expended charges at dawn. If I use its last charge, roll a d20. On a 20, it melts away. I can use its charges to cast spells with DC 15/+5 to hit: Ray of Frost (0 charges: 1d8, 1 charge: 2d8), Sleet Storm (3 charges), or Ice Storm (4 charges).\",\r\n\tdescriptionFull : \"This wand looks and feels like an icicle. You must be attuned to the wand to use it.\\n   The wand has 7 charges, which are used to fuel the spells within it. With the wand in hand, you can use your action to cast one of the following spells from the wand, even if you are incapable of casting spells: Ray of Frost (no charges, or 1 charge to cast at 5th level; +5 to hit with ranged spell attack), Sleet Storm (3 charges; spell save DC 15), or Ice Storm (4 charges; spell save DC 15). No components are required. The wand regains 1d6+1 expended charges each day at dawn. If you expend the wand's last charge, roll a d20. On a 20, the wand melts away, forever destroyed.\",\r\n\tweight : 1,\r\n\tusages : 7,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+1\",\r\n\tfixedDC : 15,\r\n\tfixedSpAttack : 5,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"ray of frost\"],\r\n\t\tselection : [\"ray of frost\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"0 charges (at will)\",\r\n\t\tspells : [\"ray of frost\"],\r\n\t\tselection : [\"ray of frost\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"sleet storm\"],\r\n\t\tselection : [\"sleet storm\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"ice storm\"],\r\n\t\tselection : [\"ice storm\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spellKey == \"ray of frost\" && spName == \"wand of winter\") {\r\n\t\t\t\t\tif (isDuplicate) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"1\";\r\n\t\t\t\t\t\tspellObj.description = \"Spell attack for 2d8 Cold dmg and -10 ft speed until start of my next turn\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.description = \"Spell attack for 1d8 Cold dmg and -10 ft speed until start of my next turn\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"dragontooth dagger\"] = {\r\n\tname : \"Dragontooth Dagger\",\r\n\tsource : [[\"RoT\", 94]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"This dagger is fashioned from the tooth of a dragon. Its handle is its leather wrapped root and there is no crossguard. It adds a +1 bonus to attack and damage rolls made with it and deals +1d6 acid damage on a hit. Against the enemies of the Cult of the Dragon this increases to a +2 bonus and +2d6 acid damage.\",\r\n\tdescriptionFull : \"A dagger fashioned from the tooth of a dragon. While the blade is obviously a fang or predator's tooth, the handle is leather wrapped around the root of the tooth, and there is no crossguard.\\n   You gain a +1 bonus to attack and damage rolls made with this weapon. On a hit with this weapon, the target takes an extra 1d6 acid damage.\\n   \" + toUni(\"Draconic Potency\") + \". Against enemies of the Cult of the Dragon, the dagger's bonus to attack and damage rolls increases to 2, and the extra acid damage increases to 2d6.\",\r\n\tweight : 1,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*dragontooth)(?=.*dagger).*$/i,\r\n\t\tname : \"Dragontooth Dagger\",\r\n\t\tsource : [[\"RoT\", 94]],\r\n\t\tdescription : \"Finesse, light, thrown; +1d6 acid damage; Vs. Cult of the Dragon enemies: +2 magic \\u0026 +2d6 acid damage\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\r\n// Beast\r\n// Sled dog is just a wolf under a different name, it has been added to the SRD code as a `nameAlt`\r\n\n// pub_20140930_MM.js\r\n// This file adds all the player-material from the Monster Manual to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.M={\r\n\tname : \"Monster Manual\",\r\n\tabbreviation : \"MM\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/monster-manual\",\r\n\tdate : \"2014/09/30\"\r\n};\r\n\r\n// Dinosaurs not in the SRD\r\nCreatureList[\"allosaurus\"] = {\r\n\tname : \"Allosaurus\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 51,\r\n\thd : [6, 10], //[#, die]\r\n\tspeed : \"60 ft\",\r\n\tscores : [19, 13, 17, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tpassivePerception : 15,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 30 ft straight in the same round, see Pounce trait\"\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 10, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Can be used in combination with claw while pouncing (see Pounce trait)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the allosaurus moves at least 30 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the allosaurus can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"ankylosaurus\"] = {\r\n\tname : \"Ankylosaurus\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 68,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [19, 11, 15, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\",\r\n\t\tmodifiers : [1, \"\"]\r\n\t}]\r\n};\r\nCreatureList[\"pteranodon\"] = {\r\n\tname : \"Pteranodon\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 13,\r\n\thd : [3, 8], //[#, die]\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [12, 15, 10, 2, 9, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 1\r\n\t},\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The pteranodon doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\n\r\n// Special familiars not in the SRD\r\nCreatureList[\"faerie dragon\"] = { // With contributions by Patrick O.\r\n\tname : \"Faerie Dragon\",\r\n\tnameAlt : [\"Dragon, Faerie\"],\r\n\tsource : [[\"M\", 133]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Dragon\",\r\n\talignment : \"Chaotic Good\",\r\n\tac : 15,\r\n\thp : 14,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [3, 20, 13, 14, 12, 16], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"arcana\" : 4,\r\n\t\t\"perception\" : 3,\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 13,\r\n\tlanguages : \"Draconic, Sylvan\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : false\r\n\t}, {\r\n\t\tname : \"Euphoria Breath (Recharge 5-6)\",\r\n\t\tability : 3,\r\n\t\tdamage : [\"Wis save\", \"\", \"Euphoria\"],\r\n\t\trange : \"5 ft\",\r\n\t\tdescription : \"For 1 min, target rolls d6 at turn start: 1-4 move random (no actions), 5-6 save again (no actions/move)\",\r\n\t\tdc : true,\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"The dragon exhales a puff of euphoria gas at one creature within 5 feet of it. The target must succeed on a DC 11 Wisdom saving throw, or for 1 minute, the target can't take reactions and must roll a d6 at the start of each of its turns to determine its behavior during the turn: 1-4 - the target takes no action or bonus action and uses all its movement to move in a random direction. 5-6 - the target doesn't move, and the only thing it can do on its turn is make a DC 11 Wisdom saving throw, ending the effect on itself on a success.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Superior Invisibility\",\r\n\t\tdescription : \"As a bonus action, the dragon can magically turn invisible until its concentration ends (as with a spell). Anything it wears or carries is invisible with it.\"\r\n\t}, {\r\n\t\tname : \"Limited Telepathy\",\r\n\t\tdescription : \"Using telepathy, the dragon can magically communicate with any other faerie dragon within 60 feet of it.\"\r\n\t}, {\r\n\t\tname : \"Magic Resistance\",\r\n\t\tdescription : \"The dragon has advantage on saves against spells and magical effects.\"\r\n\t}, {\r\n\t\tname : \"Euphoria Breath (Recharge 5-6)\",\r\n\t\tdescription : \"Exhale a puff of euphoria gas at a creature within 5 ft. It must succeed on a DC 11 Wisdom save, or for 1 minute, it can't take reactions and must roll a d6 at the start of each of its turns:\\n 1-4 - No action or bonus action, using all movment to move in a random direction.\\n 5-6 - The target does nothing except attempt another save to try end the effect on itself.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Innate Spellcasting\",\r\n\t\tdescription : \"Cast spells using Charisma (save DC 13), requiring no material components. The spells it knows depends on its age (and stack):\\n Red: 1/day - Dancing Lights, Mage Hand, Minor Illusion\\n Orange (6-10 years): 1/day - Color Spray\\n Yellow (11-20 years): 1/day - Mirror Image\\n Green (21-30 years): 1/day - Suggestion\\n Blue (31-40 years): 1/day - Major Image\\n Indigo (41-50 years): 1/day - Hallucinatory Terrain\\n Violet (51+ years): 1/day - Polymorph\"\r\n\t}]\r\n};\r\nCreatureList[\"crawling claw\"] = {\r\n\tname : \"Crawling Claw\",\r\n\tsource : [[\"M\", 44]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Undead\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 2,\r\n\thd : [1, 4], //[#, die]\r\n\tspeed : \"20 ft, climb 20 ft\",\r\n\tscores : [13, 14, 11, 5, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Blindsight 30 ft (blind beyond this radius)\",\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Does bludgeoning or slashing damage (claw's choice)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Turn Immunity\",\r\n\t\tdescription : \"The claw is immune to effects that turn undead.\"\r\n\t}]\r\n};\r\nCreatureList[\"peryton\"] = {\r\n\tname : \"Peryton\",\r\n\tsource : [[\"M\", 251]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Monstrosity\",\r\n\tcompanion : \"steed\",\r\n\talignment : \"Chaotic Evil\",\r\n\tac : 13,\r\n\thp : 33,\r\n\thd : [6, 8], //[#, die]\r\n\tspeed : \"20 ft, fly 60 ft\",\r\n\tscores : [16, 12, 13, 9, 12, 10], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight/smell\",\r\n\tpassivePerception : 16,\r\n\tlanguages : \"understands Common and Elvish, but can't speak\",\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One gore and one talons attack as an Attack action; +2d8 after 30 ft dive straight down\"\r\n\t}, {\r\n\t\tname : \"Talons\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One talons and one gore attack as an Attack action; +2d8 after 30 ft dive straight down\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the peryton can make one Gore and one Talon attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Dive Attack\",\r\n\t\tdescription : \"If the peryton is flying and dives at least 30 ft. straight toward a target and then hits it with a melee weapon attack, the attack deals an extra 9 (2d8) damage to the target.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The peryton doesn't provoke an opportunity attack when it flies out of an enemy's reach.\"\r\n\t}, {\r\n\t\tname : \"Keen Sight and Smell\",\r\n\t\tdescription : \"The peryton has advantage on Wisdom (Perception) checks that rely on sight or smell.\"\r\n\t}]\r\n};\r\n\r\n// Blights and spores\r\nCreatureList[\"needle blight\"] = {\r\n\tname : \"Needle Blight\",\r\n\tnameAlt : [\"Blight, Needle\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 11,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 12, 13, 4, 8, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Needles\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"30/60 ft\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"twig blight\"] = {\r\n\tname : \"Twig Blight\",\r\n\tnameAlt : [\"Blight, Twig\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 4, //Small\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 13,\r\n\thp : 4,\r\n\thd : [1, 6], //[#, die]\r\n\tspeed : \"20 ft\",\r\n\tscores : [6, 13, 12, 4, 8, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tdamage_vulnerabilities : \"fire\",\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"False Appearance\",\r\n\t\tdescription : \"While the blight remains motionless, it is indistinguishable from a dead shrub.\"\r\n\t}]\r\n};\r\nCreatureList[\"vine blight\"] = {\r\n\tname : \"Vine Blight\",\r\n\tnameAlt : [\"Blight, Vine\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 26,\r\n\thd : [4, 8], //[#, die]\r\n\tspeed : \"10 ft\",\r\n\tscores : [15, 8, 14, 5, 10, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"stealth\" : 1\r\n\t},\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"Common\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Constrict\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Large or smaller target is grappled and restrained (escape DC 12); Can't use constrict again until grapple ends\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"False Appearance\",\r\n\t\tdescription : \"While the blight remains motionless, it is indistinguishable from a tangle of vines.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Entangling Plants (Recharge 5-6)\",\r\n\t\tdescription : \"As an action, grasping roots and vines sprout in a 15-ft radius centered on the blight, withering away after 1 minute. For the duration, that area is difficult terrain for nonplant creatures. In addition, each creature of the blight's choice in that area when the plants appear must succeed on a DC 12 Strength saving throw or become restrained. A creature can use its action to make a DC 12 Strength check, freeing it self or another entangled creature within reach on a success.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t(typePF ? \"##Senses##. \" : \"\") + \"Blindsight 60 ft (blind beyond).\",\r\n\t\t\"##Immunities##. Blinded, deafened.\",\r\n\t\t\"##Entangling Plants (Recharge 5-6)##. As an action, 15-ft radius is difficult terrain for nonplant creatures for 1 min. Chosen creatures in it must make a DC 12 Str save or become restrained. A creature can use its action to free itself or another within reach with a DC 12 Str check.\",\r\n\t\t\"##False Appearance##. While motionless, it's indistinguishable from a tangle of vines.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\nCreatureList[\"gas spore\"] = {\r\n\tname : \"Gas Spore\",\r\n\tsource : [[\"M\", 138]],\r\n\tsize : 2, //Large\r\n\ttype : \"Plant\",\r\n\talignment : \"Unaligned\",\r\n\tac : 5,\r\n\thp : 1,\r\n\thd : [1, 10], //[#, die]\r\n\tspeed : \"fly 10 ft (hover)\",\r\n\tscores : [5, 1, 3, 1, 1, 1], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tcondition_immunities : \"blinded, deafened, frightened\",\r\n\tsenses : \"Blindsight 30 ft (blind beyond this radius).\",\r\n\tpassivePerception : 5,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Touch\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, \"\", \"poison\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"DC 10 Con save or infected with Death Burst disease, see traits\",\r\n\t\tmodifiers : [1, \"\"],\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"The gas spore explodes when it drops to 0 hit points. Each creature within 20 feet of it must succeed on a DC 15 Constitution saving throw or take 10 (3d6) poison damage and become infected with a disease on a failed save. Creatures immune to the poisoned condition are immune to this disease.\\n   Spores invade an infected creature's system, killing the creature in a number of hours equal to 1d12+the creature's Constitution score, unless the disease is removed. In half that time, the creature becomes poisoned for the rest of the duration. After the creature dies, it sprouts 2d4 Tiny gas spores that grow to full size in 7 days.\"\r\n\t}, {\r\n\t\tname : \"Eerie Resemblance\",\r\n\t\tdescription : \"The gas spore resembles a beholder. A creature that can see the gas spore can discern its true nature with a successful DC 15 Intelligence (Nature) check.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t(typePF ? \"##Senses##. \" : \"\") + \"Blindsight 30 ft (blind beyond).\",\r\n\t\t\"##Immunities##. Blinded, deafened, frightened.\",\r\n\t\t\"##Eerie Resemblance##. Distinguishable form a beholder only with a DC 15 Nature check. ##Death Burst##. Explodes at 0 HP: all within 20 ft DC 15 Con save or 3d6 poison damage and infected with disease that kills a creature in 1d12+its Con score of hours. After half that, it's poisoned for the remainder. When dies, sprouts 2d4 Tiny gas spores that grow to full size in 7 days.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\n\r\n// Even though the shield guardian is in the SRD, the description for its control amulet is only found in the Monster Manual\r\nMagicItemsList[\"shield guardian amulet\"] = {\r\n\tname : \"Shield Guardian Amulet\",\r\n\tsource : [[\"M\", 271], [\"RotF\", 149]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tnotLegalAL : true,\r\n\tprerequisite : \"Requires attunement by a humanoid\",\r\n\tprereqeval : function(v) { return !CurrentRace.known || !RaceList[CurrentRace.known] || !/creature type/i.test(RaceList[CurrentRace.known].trait); },\r\n\tdescription : \"A shield guardian is magically linked to this amulet. It has AC 10, 10 HP, and immunity to poison and psychic damage. I know the distance and direction of the guardian while I'm wearing the amulet and I'm on the same plane as it. While within 10 ft of it, I can use the amulet to reactivate it with a DC 20 Arcana check.\",\r\n\tdescriptionFull : \"The amulet is a 4-inch-wide disk composed of silver-framed wood, with a rune carved into its face. A detect magic spell reveals a magical aura of enchantment around the amulet.\"+\r\n\t\"\\n   Every shield guardian has an amulet magically linked to it. A shield guardian can have only one corresponding amulet, and if that amulet is destroyed, the shield guardian is incapacitated until a replacement amulet is created.\"+\r\n\t\"\\n   A shield guardian's amulet is subject to direct attack if it isn't being worn or carried. It has AC 10, 10 hit points, and immunity to poison and psychic damage. Crafting an amulet requires 1 week and costs 1,000 gp in components.\"+\r\n\t\"\\n   A shield guardian's solitary focus is to protect the amulet's wearer. The amulet's wearer can command the guardian to attack its enemies or to guard the wielder against attack. If an attack threatens to injure the wearer, the construct can magically absorb the blow into its own body, even at a distance.\"+\r\n\t\"\\n   A humanoid that attunes to this amulet knows the distance and direction of the shield guardian, provided the amulet and the guardian are on the same plane of existence. As an action, the amulet's attuned wearer can try to reactivate the shield guardian, doing so with a successful DC 20 Intelligence (Arcana) check. Reactivation can only be attempted while the amulet and guardian are within 10 feet of each other.\",\r\n\tcreaturesAdd : [[\"Shield Guardian\"]]\r\n};\r\n\r\n\r\n// Player characters as Lycanthropes race - even though they are in the SRD, the rules for applying their abilities to player characters are not (added in v13.1.13)\r\n/*\r\nGains:\r\n - speed in non-humanoid form\r\n - damage immunities\r\n - traits\r\n - actions that don't involve equipment\r\n\r\n P.S. multiattack is a weird one, going with the interpretation here: https://rpg.stackexchange.com/questions/70694\r\n*/\r\nvar MM_lycanthrope = {\r\n\tcreateDefaultTraits : function(sLycanName, sLycanPlural) {\r\n\t\t// the traits of a human\r\n\t\tvar obj = {\r\n\t\t\tname : \"Human \" + sLycanName,\r\n\t\t\tplural : \"Human \" + sLycanPlural,\r\n\t\t\tlanguageProfs : [\"Common\", 1],\r\n\t\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\t\tscorestxt : \"+1 to all ability scores\",\r\n\t\t\tscores : [1, 1, 1, 1, 1, 1, 1]\r\n\t\t}\r\n\t\treturn obj;\r\n\t},\r\n\tcreateMessage : function(sLycanName, aOtherGains) {\r\n\t\tvar aGained = [\r\n\t\t\t\"Its speed in nonhumanoid form.\",\r\n\t\t\t\"Natural attacks in nonhumanoid form (e.g. bite/claw).\",\r\n\t\t\t\"Damage immunity to bludgeoning, piercing, and slashing from nonmagical attacks that aren't silvered.\",\r\n\t\t\t\"Shapechanger trait.\"\r\n\t\t].concat(aOtherGains);\r\n\t\treturn \"The lycanthrope races are template races. All features and traits of the base race are retained and all the \" + sLycanName + \"'s features are added to it.\"+\r\n\t\t\"\\nIf you choose not to use a previous race as the base race or you selected a \" + sLycanName + \" at character creation, a human (non-variant) will be used as the base race.\"+\r\n\t\t\"\\nThe \" + sLycanName + \"'s features added to the base race are:\"+\r\n\t\tdesc(aGained, \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nThe possible alignment change and moon-related limitations of lycanthrope are not mentioned in this race. Discuss with your DM how they want to handle lycanthrope.\"\r\n\t},\r\n};\r\nRaceList[\"lycanthrope-werebear\"] = {\r\n\tregExpSearch : /were.?bear|^(?=.*lycanthrope)(?=.*bear).*$/i,\r\n\tname : \"Werebear\",\r\n\tsource : [[\"M\", 208]],\r\n\tplural : \"Werebears\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Werebear (+1 to all ability scores; min 19 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a Large bear-hybrid, into a Large bear, or back. In those forms, I gain 40 ft walking speed, 30 ft climb speed, +1 AC, and a bite and claw attack. My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my bite must save or be cursed with werebear lycanthrope.\",\r\n\t\t\"Keen Smell: I have adv. on Wis (Perception) checks using smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 208]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 19 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a Large bear-hybrid, into a Large bear, or back\",\r\n\t\t\t\t\t\"In my bear and hybrid forms, I gain 40 ft walking speed, 30 ft climb speed, and +1 AC\",\r\n\t\t\t\t\t\"In these forms I also gain a bite and claw attack, but can't use bite as part of a multiattack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with werebear lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, none of which can be with my werebear bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (bear/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, no bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [19, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Werebear Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werebear|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 208]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Bear and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Werebear Claw\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werebear|lycanthrope))(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 208]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Bear and Hybrid form only\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in bear/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my bear or bear-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tsource : [[\"M\", 208]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Drow Werebear\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"werebear\", [\r\n\t\t\t\"Strength increase to 19 unless it was already higher.\",\r\n\t\t\t\"Keen Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Werebear\", \"Werebears\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\nRaceList[\"lycanthrope-wereboar\"] = {\r\n\tregExpSearch : /were.?boar|^(?=.*lycanthrope)(?=.*boar).*$/i,\r\n\tname : \"Wereboar\",\r\n\tsource : [[\"M\", 209]],\r\n\tplural : \"Wereboars\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Wereboar (+1 to all ability scores; min 17 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a boar-\" + (typePF ? \"\" : \"humanoid \") + \"hybrid, into a boar, or back. In those forms, I gain 40 ft walking speed, +1 AC, and a tusks attack. My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my tusks must save or be cursed\" + (typePF ? \".\" : \" with lycanthrope.\"),\r\n\t\t\"Relentless: If I'm reduced to 0 HP by 14 damage or less, I can instead drop to 1 HP.\",\r\n\t\t\"Charge: If I move 15 ft straight before a tusks hit, +2d6 damage and Str save or prone.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 17 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a boar-humanoid hybrid, into a boar, or back\",\r\n\t\t\t\t\t\"In my boar and hybrid forms, I gain 40 ft walking speed, a tusks attack, and +1 AC\",\r\n\t\t\t\t\t\"I also gain a bite and claw attack; As an action, I can make two claw attacks (multiattack)\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with wereboar lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my wereboar tusks\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (boar/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 tusks)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [17, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Wereboar Tusks\",\r\n\t\t\t\tregExpSearch : /^(?=.*(wereboar|lycanthrope))(?=.*tusks).*$/i,\r\n\t\t\t\tsource : [[\"M\", 209]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Boar/hybrid form only; Humanoids Con save or cursed; Charge for +2d6 damage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in boar/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my boar or boar-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\twereboar_relentless : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Relentless\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If I'm reduced to 0 HP by an affect dealing 14 damage or less, I can instead drop to 1 HP\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in boar or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\twereboar_charge : {\r\n\t\t\tname : \"Charge\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If, in one turn, I move straight for 15 ft and then hit with my tusks, I deal +2d6 damage\",\r\n\t\t\t\t\t\"Those hit like this must make a Str save or be knocked prone (DC 8 + Prof B. + Str mod)\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in boar or hybrid form only\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"High Elf Wereboar\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"wereboar\", [\r\n\t\t\t\"Strength increase to 17 unless it was already higher.\",\r\n\t\t\t\"Relentless and Charge traits.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Wereboar\", \"Wereboars\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t},\r\n\tabilitySave : 1 // for charge trait\r\n};\r\nRaceList[\"lycanthrope-wererat\"] = {\r\n\tregExpSearch : /were.?rat|^(?=.*lycanthrope)(?=.*rat).*$/i,\r\n\tname : \"Wererat\",\r\n\tsource : [[\"M\", 209]],\r\n\tplural : \"Wererats\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Wererat (+1 to all ability scores; min 15 Dex)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can transform into a rat-humanoid hybrid, into a giant rat, or back. In those forms, I gain a bite attack, which can use Strength or Dexterity. In my giant rat form, I also become small and gain Darkvision 60 ft My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my bite must save or be cursed with wererat lycanthrope.\",\r\n\t\t\"Keen Smell: I have adv. on Wis (Perception) checks using smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Dexterity score increases to 15 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can transform into a rat-humanoid hybrid, into a giant rat (Small), or back\",\r\n\t\t\t\t\t\"In my rat and hybrid forms, I gain a bite attack that can use either Strength or Dexterity\",\r\n\t\t\t\t\t\"In my giant rat form, I also become small and gain Darkvision 60 ft\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with wererat lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my wererat bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (giant rat/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [0, 15, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Wererat Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(wererat|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 209]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Rat and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisWereratBite : true, // for calcChanges.atkAdd\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isWereratBite) fields.Mod = v.StrDex;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'I can use Strength or Dexterity for my Wererat Bite, whichever is higher.'\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Lizardfolk Wererat\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"wererat\", [\r\n\t\t\t\"Dexterity increase to 15 unless it was already higher.\",\r\n\t\t\t\"Keen Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Wererat\", \"Wererats\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\nRaceList[\"lycanthrope-weretiger\"] = {\r\n\tregExpSearch : /were.?tiger|^(?=.*lycanthrope)(?=.*tiger).*$/i,\r\n\tname : \"Weretiger\",\r\n\tsource : [[\"M\", 210]],\r\n\tplural : \"Weretigers\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Weretiger (+1 to all ability scores; min 15 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a tiger-humanoid hybrid, into a Large tiger, or back. In those forms, I gain 40 ft walking speed, a bite attack, and a claw attack. My stats don't otherwise change when transformed, but my equipment doesn't transform and I revert back when I die. Humanoids hit by my bite must save or be cursed with weretiger lycanthrope.\"+\r\n\t\t(typePF ? \"\\n \\u2022 Pounce: \" : \" \") + \"I can pounce in my tiger and hybrid form, see notes.\",\r\n\t\t\"Keen Hearing and Smell: I have adv. on Wis (Perception) checks using hearing or smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 17 unless it was already higher; I gain 60 ft darkvision\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a tiger-humanoid hybrid, into a Large tiger, or back\",\r\n\t\t\t\t\t\"In my tiger and hybrid forms, I gain 40 ft walking speed, a bite attack, and a claw attack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with weretiger lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, none of which can be with my weretiger bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (tiger/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, no bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [17, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Weretiger Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(weretiger|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 210]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Tiger and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Weretiger Claw\",\r\n\t\t\t\tregExpSearch : /^(?=.*(weretiger|lycanthrope))(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 210]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Tiger and Hybrid form only; Can be use to pounce\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Darkvision\", 60]]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on hearing or smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Hearing and Smell\", 0]]\r\n\t\t},\r\n\t\tweretiger_pounce : {\r\n\t\t\tname : \"Pounce\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Pounce\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If, in one turn, I move straight for 15 ft and then hit with my claw, I can pounce a target\",\r\n\t\t\t\t\t\"The creature must make a Str save or be knocked prone (DC 8 + Prof Bonus + Str mod)\",\r\n\t\t\t\t\t\"If I knocked someone prone, I can then make a bite attack against them as a bonus action\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in tiger or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"bonus action\", \"Bite after successful Pounce\"]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Mountain Dwarf Weretiger\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"weretiger\", [\r\n\t\t\t\"Strength increase to 17 unless it was already higher.\",\r\n\t\t\t\"Keen Hearing and Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Weretiger\", \"Weretigers\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t},\r\n\tabilitySave : 1 // for pounce trait\r\n};\r\nRaceList[\"lycanthrope-werewolf\"] = {\r\n\tregExpSearch : /were.?wol(f|ve)|^(?=.*lycanthrope)(?=.*wol(f|ve)).*$/i,\r\n\tname : \"Werewolf\",\r\n\tsource : [[\"M\", 211]],\r\n\tplural : \"Werewolves\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Werewolf (+1 to all ability scores; min 15 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a wolf-humanoid hybrid, into a wolf, or back. In those forms, I gain 40 ft walking speed, a bite attack, and +1 AC. In my hybrid form, I also gain a claws attack. My stats don't otherwise change when transformed, but my equipment doesn't transform and I revert back when I die. Humanoids hit by my bite must save or be cursed with werewolf lycanthrope.\",\r\n\t\t\"Keen Hearing and Smell: I have adv. on Wis (Perception) checks using hearing or smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 211]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 15 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a wolf-humanoid hybrid, into a wolf, or back\",\r\n\t\t\t\t\t\"In my wolf and hybrid forms, I gain 40 ft walking speed, a bite attack, and +1 AC\",\r\n\t\t\t\t\t\"In my hybrid form, I also gain a claws attack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with werewolf lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my werewolf bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (wolf/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [15, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Werewolf Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werewolf|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 211]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Wolf and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Wolf-hybrid Claws\",\r\n\t\t\t\tregExpSearch : /^(?=.*wolf)(?=.*hybrid)(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 211]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 4, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Hybrid form only\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in wolf/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my wolf or wolf-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\tsource : [[\"M\", 211]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on hearing or smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Hearing and Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Rock Gnome Werewolf\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"werewolf\", [\r\n\t\t\t\"Strength increase to 15 unless it was already higher.\",\r\n\t\t\t\"Keen Hearing and Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Werewolf\", \"Werewolves\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\n\n// pub_20141209_DMG.js\r\n// This file adds all the player-material from the Dungeon Master's Guide to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.D={\r\n\tname : \"Dungeon Master's Guide\",\r\n\tabbreviation : \"DMG\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/dungeon-masters-guide\",\r\n\tdate : \"2014/12/09\"\r\n};\r\n\r\n// Races\r\nRaceList[\"aasimar\"] = {\r\n\tregExpSearch : /^(?!.*(fallen|protector|scourge))((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel)))).*$/i,\r\n\tname : \"Aasimar\",\r\n\tsource : [[\"D\", 286]],\r\n\tplural : \"Aasimar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 1, 2],\r\n\ttrait : \"Aasimar (+1 Wisdom, +2 Charisma)\\n\\nCelestial Legacy:\\n   I know the Light cantrip.\\n   Once I reach 3rd level, I can cast the Lesser Restoration spell once per long rest.\\n   Once I reach 5th level, I can cast the Daylight spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Celestial Legacy (level 1)\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tname : \"Celestial Legacy (level 3)\",\r\n\t\t\tlimfeaname : \"Lesser Restoration\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Celestial Legacy (level 3)\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"daylight\" : {\r\n\t\t\tname : \"Celestial Legacy (level 5)\",\r\n\t\t\tlimfeaname : \"Daylight\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 5,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Celestial Legacy (level 5)\",\r\n\t\t\t\tspells : [\"daylight\"],\r\n\t\t\t\tselection : [\"daylight\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"eladrin\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin)\",\r\n\tsource : [[\"D\", 286]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 1, 0, 0],\r\n\ttrait : \"Eladrin (+2 Dexterity, +1 Intelligence)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nFey Step: I can cast the Misty Step spell once using this trait. I regain the ability to do so when I finish a short rest.\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fey Step\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Subclasses\r\nAddSubClass(\"cleric\", \"death domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(death|dead|dying)).*$/i,\r\n\tsubname : \"Death Domain\",\r\n\tsource : [[\"D\", 96]],\r\n\tspellcastingExtra : [\"false life\", \"ray of sickness\", \"blindness/deafness\", \"ray of enfeeblement\", \"animate dead\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"cloudkill\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"D\", 96]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons\"),\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Reaper\",\r\n\t\t\tsource : [[\"D\", 96]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I learn one necromancy cantrip of my choice from any spell list\",\r\n\t\t\t\t\"My necromancy, single-target cantrips can affect two targets within 5 ft of each other\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reaper\",\r\n\t\t\t\t\"class\" : \"any\",\r\n\t\t\t\tschool : [\"Necro\"],\r\n\t\t\t\tlevel : [0, 0]\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.school == \"Necro\" && spellObj.level === 0) {\r\n\t\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\t\tcase \"chill touch\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Spell attack\", \"2 crea in 5 ft spell atk\").replace(\"Necrotic\", \"Necro.\").replace(\"at CL 5, 11, and 17\", \"CL 5/11/17\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"spare the dying\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 living creature\", \"1 living creature (or 2 within 5 ft of each other)\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"toll the dead\" :\r\n\t\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/1 crea(ture)?/i, \"2 crea in 5 ft\").replace(\"disadvantage\", \"disadv.\").replace(\"save halves\", \"save half\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My necromancy, single-target cantrips can affect two targets within 5 ft of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Touch of Death\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"When I hit a creature with a melee attack, I can deal extra necrotic damage\"),\r\n\t\t\tadditional : [\"\", \"+9 damage\", \"+11 damage\", \"+13 damage\", \"+15 damage\", \"+17 damage\", \"+19 damage\", \"+21 damage\", \"+23 damage\", \"+25 damage\", \"+27 damage\", \"+29 damage\", \"+31 damage\", \"+33 damage\", \"+35 damage\", \"+37 damage\", \"+39 damage\", \"+41 damage\", \"+43 damage\", \"+45 damage\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Inescapable Destruction\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I deal necrotic damage with spells or Channel Divinity, I ignore resistance to it\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 necrotic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 necrotic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra necrotic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Improved Reaper\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I cast a 5th-level or lower necromancy spell that has one target, I can target two\",\r\n\t\t\t\t\"They need to be within 5 ft of each other; I have to provide material comp. for both\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.school == \"Necro\" && spellObj.level && spellObj.level < 6) {\r\n\t\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\t\tcase \"blindness/deafness\" :\r\n\t\t\t\t\t\t\t\t\t// only 2 target if not cast at higher SL\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 crea in 5 ft or \" + spellObj.description;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"contagion\" :\r\n\t\t\t\t\t\t\t\tcase \"inflict wounds\" :\r\n\t\t\t\t\t\t\t\tcase \"ray of enfeeblement\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(Melee )?spell attack/i, \"2 \" + \"$1\".toLowerCase() + \"spell atk in 5 ft\").replace(\"spell ends\", \"ends\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"cause fear\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 crea in 5 ft or 1+1/SL crea max 30 ft apart (no constr/undead), save or frightened; save end of turn\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"feign death\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 willing crea in 5 ft appear dead; Are blinded, incapacitated, dmg resist. all but Psychic, speed 0\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"gentle repose\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 corpse protected from\", \"2 corpses in 5 ft suffer no\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"raise dead\" :\r\n\t\t\t\t\t\t\t\tcase \"revivify\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"a creature's body that has\", \"body of 2 crea in 5 ft that\").replace(\"cons.)\", \"cons. \\xD72)\");\r\n\t\t\t\t\t\t\t\t\tspellObj.compMaterial += \" (once for each target)\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"speak with dead\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 corpse with mouth answers 5 questions\", \"2 corpses in 5 ft answer 5 questions each\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"enervation\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"action\", \"1 a\").replace(\"see book\", \"see B\");\r\n\t\t\t\t\t\t\t\tcase \"bestow curse\" :\r\n\t\t\t\t\t\t\t\tcase \"blight\" :\r\n\t\t\t\t\t\t\t\tcase \"cause fear-uass\" :\r\n\t\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\t\tcase \"negative energy flood\" :\r\n\t\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/1 crea(ture)?/i, \"2 crea in 5 ft\").replace(\"disadvantage\", \"disadv.\").replace(\"save halves\", \"save half\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My necromancy, single-target 5th-level or lower spells can affect two targets within 5 ft of each other if both are within range of the spell. The spells still require material components for each target separately.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oathbreaker\", {\r\n\tregExpSearch : /^((?=.*blackguard)|((?=.*(oath.*breaker|breaker.*oath))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))).*$/i,\r\n\tsubname : \"Oathbreaker\",\r\n\tsource : [[\"D\", 97]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Control Undead\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one undead (CR < paladin level) I can see in 30 ft must make a Wis save\",\r\n\t\t\t\t\"If failed, it must obey my commands for 24 hours or until I use this on another\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"hellish rebuke\", \"inflict wounds\", \"crown of madness\", \"darkness\", \"animate dead\", \"bestow curse\", \"blight\", \"confusion\", \"contagion\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Dreadful Aspect\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, anyone I choose within 30 ft that can see me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is frightened for 1 min or until it succeeds a save at the end of its turns\",\r\n\t\t\t\t\"It can't save at the end of its turn if it's still within 30 ft of me\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Hate\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Fiends/undead within range and I add my Cha mod as bonus on melee weapon damage\",\r\n\t\t\t\t\"Multiple Auras of Hate don't stack; only the strongest applies\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Cha mod added to damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my Charisma modifier to my melee weapon damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Number(What(\"Cha Mod\"));\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Supernatural Resistance\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I have resistance to bludgeoning/piercing/slashing damage from nonmagical weapons\"),\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Dread Lord\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I gain a 30-ft aura of gloom that reduces bright light to dim for 1 min\",\r\n\t\t\t\t\"If frightened of me, foes starting their turn in the aura take 4d10 psychic damage\",\r\n\t\t\t\t\"Attacks vs. my allies and me inside the aura have disadvantage if attackers need sight\",\r\n\t\t\t\t\"As a bonus action, I can make a melee spell attack vs. a target inside the aura\",\r\n\t\t\t\t\"If this attack hits, it does 3d10 + Charisma modifier necrotic damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Magic Items not found in the SRD\r\nMagicItemsList[\"alchemy jug\"] = {\r\n\tname : \"Alchemy Jug\",\r\n\tsource : [[\"D\", 150]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"As an action, command the jug to produce liquid; or an action to uncorked it and pour 2 gal/min. After producing, it only makes the same up to its max, until next dawn. Oil (1 qt), acid (8 fl oz), basic poison (1/2 fl oz), beer (4 gal), honey/wine (1 gal), fresh water (8 gal), mayonnaise/vinegar (2 gal), salt water (12 gal).\",\r\n\tdescriptionLong : \"A heavy ceramic jug. As an action, the jug can be commanded to hold a chosen liquid. With another action, I can uncork the jug and pour the liquid out at 2 gallons per minute. Once commanded to produce a liquid, it can't produce a different one or more than the maximum of one, until the next dawn.\\rLiquids (with maximum): acid (8 fl. oz.), basic poison (1/2 fl. oz.), beer (4 gallons), honey (1 gallon), mayonnaise (2 gallons), oil (1 quart), vinegar (2 gallons), fresh water (8 gallons), salt water (12 gallons), wine (1 gallon).\",\r\n\tdescriptionFull : \"This ceramic jug appears to be able to hold a gallon of liquid and weighs 12 pounds whether full or empty. Sloshing sounds can be heard from within the jug when it is shaken, even if the jug is empty.\"+\r\n\t\"\\n   You can use an action and name one liquid from the table below to cause the jug to produce the chosen liquid. Afterward, you can uncork the jug as an action and pour that liquid out, up to 2 gallons per minute. The maximum amount of liquid the jug can produce depends on the liquid you named.\"+\r\n\t\"\\n   Once the jug starts producing a liquid, it can't produce a different one, or more of one that has reached its maximum, until the next dawn.\\n\\n\"+\r\n\ttoUni(\"Max        \\tLiquid\\t\\tMax        \\tLiquid\")+\r\n\t\"\\n8 ounces  \\tAcid\\t\\t1 quart   \\tOil\"+\r\n\t\"\\n1/2 ounce\\tBasic poison\\t2 gallons  \\tVinegar\"+\r\n\t\"\\n4 gallons  \\tBeer\\t\\t8 gallons  \\tWater, fresh\"+\r\n\t\"\\n1 gallon    \\tHoney\\t\\t12 gallons\\tWater, salt\"+\r\n\t\"\\n2 gallons \\tMayonnaise\\t1 gallon    \\tWine\",\r\n\tweight : 12\r\n}\r\nMagicItemsList[\"cap of water breathing\"] = {\r\n\tname : \"Cap of Water Breathing\",\r\n\tsource : [[\"D\", 157]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this cap underwater, I can speak its command word as an action to create a bubble of air around my head. It allows me to breathe normally underwater. This bubble stays with me until I speak the command word again, the cap is removed, or I am no longer underwater.\",\r\n\tdescriptionFull : \"While wearing this cap underwater, you can speak its command word as an action to create a bubble of air around your head. It allows you to breathe normally underwater. This bubble stays with you until you speak the command word again, the cap is removed, or you are no longer underwater.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"cloak of invisibility\"] = {\r\n\tname : \"Cloak of Invisibility\",\r\n\tsource : [[\"D\", 158]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"As an action, I can pull the hood of this cloak down or up over my head, making myself invisible (down) or visible again (up). While invisible, anything I carry or wear is invisible as well. It functions for 2 hours, usable in increments of 1 minute. It regains 1 hour of duration for every 12 hours not being used.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can pull its hood over your head to cause yourself to become invisible. While you are invisible, anything you are carrying or wearing is invisible with you. You become visible when you cease wearing the hood. Pulling the hood up or down requires an action.\\n   Deduct the time you are invisible, in increments of 1 minute, from the cloak's maximum duration of 2 hours. After 2 hours of use, the cloak ceases to function. For every uninterrupted period of 12 hours the cloak goes unused, it regains 1 hour of duration.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\tusages : \"120 min\",\r\n\trecovery : \"Special\",\r\n\tadditional : \"regain 1h/12h\"\r\n}\r\nMagicItemsList[\"driftglobe\"] = {\r\n\tname : \"Driftglobe\",\r\n\tsource : [[\"D\", 166]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : [\"A\", \"B\"],\r\n\tdescription : \"By speaking its command word while within 60 ft, this glass sphere casts Light or Daylight on itself. Daylight only works once per dawn. While lit up, I can use an action to speak another command word to make it hover 5 ft off the ground and follow me at a distance of 60 ft. It stops hovering when grasped.\",\r\n\tdescriptionFull : \"This small sphere of thick glass weighs 1 pound. If you are within 60 feet of it, you can speak its command word and cause it to emanate the Light or Daylight spell. Once used, the Daylight effect can't be used again until the next dawn.\\n   You can speak another command word as an action to make the illuminated globe rise into the air and float no more than 5 feet off the ground. The globe hovers in this way until you or another creature grasps it. If you move more than 60 feet from the hovering globe, it follows you until it is within 60 feet of you. It takes the shortest route to do so. If prevented from moving, the globe sinks gently to the ground and becomes inactive, and its light winks out.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \" (hover)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Daylight\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"On globe\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"On globe\",\r\n\t\tspells : [\"daylight\"],\r\n\t\tselection : [\"daylight\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"light\" : {\r\n\t\t\trange : \"Globe\",\r\n\t\t\tdescription : \"Driftglobe sheds bright light in a 20-ft radius and dim light in an additional 20-ft radius\",\r\n\t\t\tchanges : \"The spell can only affect the globe.\"\r\n\t\t},\r\n\t\t\"daylight\" : {\r\n\t\t\trange : \"Globe\",\r\n\t\t\tdescription : \"Driftglobe shed 60-ft rad bright light + 60-ft dim light; only magical darkness of SL 4+ works in it\",\r\n\t\t\tchanges : \"The spell can only affect the globe.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"efreeti chain\"] = {\r\n\tname : \"Efreeti Chain\",\r\n\tsource : [[\"D\", 167]],\r\n\ttype : \"armor (chain mail)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"While wearing this armor, I gain a +3 bonus to AC, I am immune to fire damage, and I can understand and speak Primordial. In addition, I can stand on and walk across molten rock as if it were solid ground.\",\r\n\tdescriptionFull : \"While wearing this armor, you gain a +3 bonus to AC, you are immune to fire damage, and you can understand and speak Primordial. In addition, you can stand on and walk across molten rock as if it were solid ground.\",\r\n\tattunement : true,\r\n\tweight : 55,\r\n\tlanguageProfs : [\"Primordial\"],\r\n\tsavetxt : { immune : [\"fire\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*efreeti)(?=.*chain).*$/i,\r\n\t\tname : \"Efreeti Chain\",\r\n\t\tsource : [[\"D\", 167]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"16+3\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 55,\r\n\t\tstrReq : 13,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"elixir of health\"] = {\r\n\tname : \"Elixir of Health\",\r\n\tsource : [[\"D\", 168]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to cure any disease, and removing the blinded, deafened, paralyzed, and poisoned conditions. The potion's clear red liquid has tiny bubbles of light in it.\",\r\n\tdescriptionFull : \"When you drink this potion, it cures any disease afflicting you, and it removes the blinded, deafened, paralyzed, and poisoned conditions. The clear red liquid has tiny bubbles of light in it.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"gloves of thievery\"] = {\r\n\tname : \"Gloves of Thievery\",\r\n\tsource : [[\"D\", 172]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"These gloves are invisible while worn. While wearing them, I gain a +5 bonus to Dexterity (Sleight of Hand) checks and Dexterity checks made to pick locks.\",\r\n\tdescriptionFull : \"These gloves are invisible while worn. While wearing them, you gain a +5 bonus to Dexterity (Sleight of Hand) checks and Dexterity checks made to pick locks.\",\r\n\taddMod : [{ type: \"skill\", field : \"Sleight of Hand\", mod : 5, text : \"I gain a +5 bonus to Dexterity (Sleight of Hand) checks while wearing Gloves of Thievery.\" }]\r\n}\r\nMagicItemsList[\"instrument of the bards\"] = {\r\n\tname : \"Instrument of the Bards\",\r\n\tsource : [[\"D\", 176]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\tdescription : \"If I play this exquisite, magical instruments while casting a spell that has a somatic or material component and charms on a failed save, it imposes disadvantage on that save. I can also use it to cast a set of spells, each once per dawn, using my spellcasting ability and spell save DC.\",\r\n\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\",\r\n\tattunement : true,\r\n\tweight : 3, // Magic of Faerûn (2001) page 161\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tchoices : [\"Anstruth Harp (very rare)\", \"Canaith Mandolin (rare)\", \"Cli Lyre (rare)\", \"Doss Lute (uncommon)\", \"Fochlucan Bandore (uncommon)\", \"Mac-Fuirmidh Cittern (uncommon)\", \"Ollamh Harp (legendary)\"],\r\n\t\"anstruth harp (very rare)\" : {\r\n\t\tname : \"Anstruth Harp [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Anstruth Harp\",\r\n\t\trarity : \"very rare\",\r\n\t\tmagicItemTable : \"H\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Anstruth harp can be used to cast Control Weather, Cure Wounds (5th level), and Wall of Thorns.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"control weather\", \"cure wounds\", \"wall of thorns\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"control weather\", \"cure wounds\", \"wall of thorns\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"cure wounds\" : {\r\n\t\t\t\tdescription : \"1 living creature heals 5d8+spellcasting ability modifier HP\",\r\n\t\t\t\tchanges : \"When using the Anstruth Harp to cast Cure Wounds, it is cast at 5th-level.\"\r\n\t\t\t},\r\n\t\t\t\"control weather\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tchanges : \"Casting time is only an action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"canaith mandolin (rare)\" : {\r\n\t\tname : \"Canaith Mandolin [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Canaith Mandolin\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Canaith mandolin can be used to cast Cure Wounds (3rd level), Dispel Magic, and Protection from Energy (lightning only).\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"cure wounds\", \"dispel magic\", \"protection from energy\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"cure wounds\", \"dispel magic\", \"protection from energy\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"cure wounds\" : {\r\n\t\t\t\tdescription : \"1 living creature heals 3d8+spellcasting ability modifier HP\",\r\n\t\t\t\tchanges : \"When using the Canaith Mandolin to cast Cure Wounds, it is cast at 3rd-level.\"\r\n\t\t\t},\r\n\t\t\t\"protection from energy\" : {\r\n\t\t\t\tdescription : \"1 creature gains resistance to Lightning damage for the duration\",\r\n\t\t\t\tchanges : \"When using the Canaith Mandolin to cast Protection from Energy, it can only grant resistance to lightning damage.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"cli lyre (rare)\" : {\r\n\t\tname : \"Cli Lyre [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Cli Lyre\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Cli lyre can be used to cast Stone Shape, Wall of Fire, and Wind Wall.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"stone shape\", \"wall of fire\", \"wind wall\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"stone shape\", \"wall of fire\", \"wind wall\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"doss lute (uncommon)\" : {\r\n\t\tname : \"Doss Lute [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Doss Lute\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Doss lute can be used to cast Animal Friendship, Protection from Energy (fire only), and Protection from Poison.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"animal friendship\", \"protection from energy\", \"protection from poison\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"animal friendship\", \"protection from energy\", \"protection from poison\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"protection from energy\" : {\r\n\t\t\t\tdescription : \"1 creature gains resistance to Fire damage for the duration\",\r\n\t\t\t\tchanges : \"When using the Doss Lute to cast Protection from Energy, it can only grant resistance to fire damage.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"fochlucan bandore (uncommon)\" : {\r\n\t\tname : \"Fochlucan Bandore [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Fochlucan Bandore\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Fochlucan bandore can be used to cast Entangle, Faerie Fire, Shillelagh, and Speak with Animals.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"entangle\", \"faerie fire\", \"shillelagh\", \"speak with animals\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"entangle\", \"faerie fire\", \"shillelagh\", \"speak with animals\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 8,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"mac-fuirmidh cittern (uncommon)\" : {\r\n\t\tname : \"Mac-Fuirmidh Cittern [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Mac-Fuirmidh Cittern\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Mac-Fuirmidh cittern can be used to cast Barkskin, Cure Wounds, and Fog Cloud.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"barkskin\", \"cure wounds\", \"fog cloud\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"barkskin\", \"cure wounds\", \"fog cloud\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"ollamh harp (legendary)\" : {\r\n\t\tname : \"Ollamh Harp [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Ollamh Harp\",\r\n\t\trarity : \"legendary\",\r\n\t\tmagicItemTable : \"I\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Ollamh harp can be used to cast Confusion, Control Weather, and Fire Storm.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"confusion\", \"control weather\", \"fire storm\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"confusion\", \"control weather\", \"fire storm\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"control weather\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tchanges : \"Casting time is only an action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"mariner's armor\"] = {\r\n\tname : \"Mariner's Armor\",\r\n\tnameTest : \"Mariner's\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this armor, I have a swimming speed equal to my walking speed. In addition, whenever I start my turn underwater with 0 hit points, the armor causes me to rise 60 ft toward the surface. The armor is decorated with fish and shell motifs.\",\r\n\tdescriptionFull : \"While wearing this armor, you have a swimming speed equal to your walking speed. In addition, whenever you start your turn underwater with 0 hit points, the armor causes you to rise 60 feet toward the surface. The armor is decorated with fish and shell motifs.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n}\r\nMagicItemsList[\"potion of fire breath\"] = {\r\n\tname : \"Potion of Fire Breath\",\r\n\tsource : [[\"D\", 187]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to, for 1 hour, use a bonus action to do 4d6 fire damage at a target within 30 ft, Dex save DC 13 halves. This can be done 3 times. This potion's orange liquid flickers, and smoke fills the top of the container and wafts out whenever it is opened.\",\r\n\tdescriptionFull : \"After drinking this potion, you can use a bonus action to exhale fire at a target within 30 feet of you. The target must make a DC 13 Dexterity saving throw, taking 4d6 fire damage on a failed save, or half as much damage on a successful one. The effect ends after you exhale the fire three times or when 1 hour has passed. This potion's orange liquid flickers, and smoke fills the top of the container and wafts out whenever it is opened.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of invulnerability\"] = {\r\n\tname : \"Potion of Invulnerability\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to have resistance to all damage for 1 minute. The potion's syrupy liquid looks like liquefied iron.\",\r\n\tdescriptionFull : \"For 1 minute after you drink this potion, you have resistance to all damage. The potion's syrupy liquid looks like liquefied iron.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of longevity\"] = {\r\n\tname : \"Potion of Longevity\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to reduce the consumer's physical age is by 1d6+6 years, to a minimum of 13 years. Subsequent consumptions of this type of potion have a 10% cumulative chance to instead age the consumer by 1d6+6 years.\",\r\n\tdescriptionLong : \"Once as an action, I can drink this potion or administer it to another to reduce the consumer's physical age is by 1d6+6 years, to a minimum of 13 years. Subsequent consumptions of this type of potion have a 10% cumulative chance to instead age the consumer by 1d6+6 years. Suspended in this amber liquid are a scorpion's tail, an adder's fang, a dead spider, and a tiny heart that, against all reason, is still beating. These ingredients vanish when the potion is opened.\",\r\n\tdescriptionFull : \"When you drink this potion, your physical age is reduced by 1d6+6 years, to a minimum of 13 years. Each time you subsequently drink a potion of longevity, there is 10 percent cumulative chance that you instead age by 1d6+6 years. Suspended in this amber liquid are a scorpion's tail, an adder's fang, a dead spider, and a tiny heart that, against all reason, is still beating. These ingredients vanish when the potion is opened.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of vitality\"] = {\r\n\tname : \"Potion of Vitality\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to remove any exhaustion, disease, and poison affecting the consumer. For the next 24 hours, the consumer regains the maximum number of HP for any HD used. The potion's crimson liquid regularly pulses with dull light, calling to mind a heartbeat.\",\r\n\tdescriptionFull : \"When you drink this potion, it removes any exhaustion you are suffering and cures any disease or poison affecting you. For the next 24 hours, you regain the maximum number of hit points for any Hit Die you spend. The potion's crimson liquid regularly pulses with dull light, calling to mind a heartbeat.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"rod of resurrection\"] = {\r\n\tname : \"Rod of Resurrection\",\r\n\tsource : [[\"D\", 197]],\r\n\ttype : \"rod\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"This rod has 5 charges and regains 1 expended charge daily at dawn. While I hold it, I can use an action to expend 1 charge and cast Heal from it, or expend 5 charges and cast Resurrection from it. If the rod is reduced to 0 charges, roll a d20. On a 1, the rod disappears in a burst of radiance.\",\r\n\tdescriptionFull : \"The rod has 5 charges. While you hold it, you can use an action to cast one of the following spells from it: Heal (expends 1 charge) or Resurrection (expends 5 charges).\\n   The rod regains 1 expended charge daily at dawn. If the rod is reduced to 0 charges, roll a d20. On a 1, the rod disappears in a burst of radiance.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tprerequisite : \"Requires attunement by a cleric, druid, or paladin\",\r\n\tprereqeval : function(v) { return classes.known.cleric || classes.known.druid || classes.known.paladin ? true : false; },\r\n\tusages : 5,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"heal\"],\r\n\t\tselection : [\"heal\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"5 charges\",\r\n\t\tspells : [\"resurrection\"],\r\n\t\tselection : [\"resurrection\"],\r\n\t\tfirstCol : 5\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"resurrection\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Casting time is only 1 action instead of 1 hour.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"rod of the pact keeper, +1, +2, or +3\"] = {\r\n\tname : \"Rod of the Pact Keeper, +1, +2, or +3\",\r\n\tsource : [[\"D\", 197]],\r\n\ttype : \"rod\",\r\n\tdescription : \"While holding this rod, I gain a bonus to spell attack rolls and to the saving throw DCs of my warlock spells, determined by the rod's rarity: uncommon (+1), rare (+2), or very rare (+3). As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\tdescriptionFull : \"While holding this rod, you gain a bonus to spell attack rolls and to the saving throw DCs of your warlock spells. The bonus is determined by the rod's rarity: uncommon (+1), rare (+2), or very rare (+3).\\n   In addition, you can regain one warlock spell slot as an action while holding the rod. You can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tprerequisite : \"Requires attunement by a warlock\",\r\n\tprereqeval : function(v) { return classes.known.warlock; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tlimfeaname : \"Rod of the Pact Keeper (warlock spell slot)\",\r\n\taction : [[\"action\", \"\"]],\r\n\tallowDuplicates : true,\r\n\tchoices : [\"+1 Rod (uncommon)\", \"+2 Rod (rare)\", \"+3 Rod (very rare)\"],\r\n\t\"+1 rod (uncommon)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescription : \"While holding this rod, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 rod (rare)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +2\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"While holding this rod, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 rod (very rare)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tmagicItemTable : \"H\",\r\n\t\tdescription : \"While holding this rod, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"saddle of the cavalier\"] = {\r\n\tname : \"Saddle of the Cavalier\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While in this saddle on a mount, I can't be dismounted against my will if I am conscious, and attack rolls against the mount have disadvantage.\",\r\n\tdescriptionFull : \"While in this saddle on a mount, you can't be dismounted against your will if you're conscious, and attack rolls against the mount have disadvantage.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"scroll of protection\"] = {\r\n\tname : \"Scroll of Protection\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"scroll\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops a creature type from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected.\",\r\n\tdescriptionFull : \"Each scroll of protection works against a specific type of creature chosen by the DM or determined randomly by rolling on the following table.\\n\\n\" + [\r\n\t\ttoUni(\"d100\\tCreature Type\\td100\\tCreature Type\"),\r\n\t\t\"01-10\\tAberrations\\t41-50\\tFey\",\r\n\t\t\"11-20\\tBeasts\\t\\t51-75\\tFiends\",\r\n\t\t\"21-30\\tCelestials   \\t76-80\\tPlants\",\r\n\t\t\"31-40\\tElementals\\t81-00\\tUndead\",\r\n\t].join(\"\\n\") + \"\\nUsing an action to read the scroll encloses you in an invisible barrier that extends from you to form a 5-foot-radius, 10-foot-high cylinder. For 5 minutes, this barrier prevents creatures of the specified type from entering or affecting anything within the cylinder.\\n   The cylinder moves with you and remains centered on you. However, if you move in such a way that an aberration would be inside the cylinder, the effect ends.\\n   A creature can attempt to overcome the barrier by using an action to make a DC 15 Charisma check. On a success, the creature ceases to be affected by the barrier.\",\r\n\tchoices : [\"Aberrations\", \"Beasts\", \"Celestials\", \"Elementals\", \"Fey\", \"Fiends\", \"Plants\", \"Undead\"],\r\n\t\"aberrations\" : {\r\n\t\tname : \"Scroll of Protection from Aberrations\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops aberrations from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes an aberration, it ends.\"\r\n\t},\r\n\t\"beasts\" : {\r\n\t\tname : \"Scroll of Protection from Beasts\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops beasts from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a beast, it ends.\"\r\n\t},\r\n\t\"celestials\" : {\r\n\t\tname : \"Scroll of Protection from Celestials\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops celestials from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes a celestial, it ends.\"\r\n\t},\r\n\t\"elementals\" : {\r\n\t\tname : \"Scroll of Protection from Elementals\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops elementals from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes an elemental, it ends.\"\r\n\t},\r\n\t\"fey\" : {\r\n\t\tname : \"Scroll of Protection from Fey\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops fey from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a fey, it ends.\"\r\n\t},\r\n\t\"fiends\" : {\r\n\t\tname : \"Scroll of Protection from Fiends\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops fiends from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a fiend, it ends.\"\r\n\t},\r\n\t\"plants\" : {\r\n\t\tname : \"Scroll of Protection from Plants\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops plants from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a plant, it ends.\"\r\n\t},\r\n\t\"undead\" : {\r\n\t\tname : \"Scroll of Protection from Undead\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops undead from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes a undead, it ends.\"\r\n\t}\r\n}\r\nMagicItemsList[\"sending stones\"] = {\r\n\tname : \"Sending Stones\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"While I touch one of this pair of stones, I can use an action to cast Sending, targeting the bearer of the other stone. If no creature has the other stone, the spell won't cast. Once it is cast, neither stone can be used again until the next dawn. Sending allows each bearer to communicate up to 25 words.\",\r\n\tdescriptionFull : \"Sending stones come in pairs, with each smooth stone carved to match the other so the pairing is easily recognized. While you touch one stone, you can use an action to cast the Sending spell from it. The target is the bearer of the other stone. If no creature bears the other stone, you know that fact as soon as you use the stone and don't cast the spell.\\n   Once Sending is cast through the stones, they can't be used again until the next dawn. If one of the stones in a pair is destroyed, the other one becomes nonmagical.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"To other stone bearer only\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tusages : 1, \r\n\trecovery : \"dawn\",\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tdescription : \"Send a 25 word message to the bearer of the other Sending Stone, who can respond with 25 words\",\r\n\t\t\tchanges : \"Using one stone of a pair of Sending Stones, the spell can only target the bearer of the other stone of the pair.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"sentinel shield\"] = {\r\n\tname : \"Sentinel Shield\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"shield\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While holding this shield, I have advantage on initiative rolls and Wisdom (Perception) checks. The shield is emblazoned with a symbol of an eye.\",\r\n\tdescriptionFull : \"While holding this shield, you have advantage on initiative rolls and Wisdom (Perception) checks. The shield is emblazoned with a symbol of an eye.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Sentinel Shield\",\r\n\tadvantages : [[\"Initiative\", true], [\"Perception\", true]],\r\n\tvision : [[\"Adv. on Perception checks\", 0]]\r\n}\r\nMagicItemsList[\"staff of the adder\"] = {\r\n\tname : \"Staff of the Adder\",\r\n\tsource : [[\"D\", 203]],\r\n\ttype : \"staff\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"As a bonus action, I can speak this staff's command word to animate its snake head for 1 minute or make it inanimate again. While animated, I can use it in melee (1d6 piercing + DC 15 Con save or 3d6 poison), but it can be attacked and has AC 15 and 20 HP (full every time). If it reaches 0 HP, the staff is destroyed.\",\r\n\tdescriptionFull : \"You can use a bonus action to speak this staff's command word and make the head of the staff become that of an animate poisonous snake for 1 minute. By using another bonus action to speak the command word again, you return the staff to its normal inanimate form.\\n   You can make a melee attack using the snake head, which has a reach of 5 feet. Your proficiency bonus applies to the attack roll. On a hit, the target takes 1d6 piercing damage and must succeed on a DC 15 Constitution saving throw or take 3d6 poison damage.\\n   The snake head can be attacked while it is animate. It has an Armor Class of 15 and 20 hit points. If the head drops to 0 hit points, the staff is destroyed. As long as it's not destroyed, the staff regains all lost hit points when it reverts to its inanimate form.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tprerequisite : \"Requires attunement by a cleric, druid, or warlock\",\r\n\tprereqeval : function(v) { return classes.known.cleric || classes.known.druid || classes.known.warlock ? true : false; },\r\n\taction : [[\"bonus action\", \" (animate/end)\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*snake)(?=.*head)(?=.*staff)(?=.*adder).*$/i,\r\n\t\tname : \"Animated Snake Head from Staff of the Adder\",\r\n\t\tsource : [[\"D\", 203]],\r\n\t\tlist : \"melee\",\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tweight : 4,\r\n\t\tdescription : \"DC 15 Constitution save or 3d6 poison damage\",\r\n\t\tabilitytodamage : false,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"sword of answering\"] = {\r\n\tname : \"Sword of Answering\",\r\n\tsource : [[\"D\", 206]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a gem set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\",\r\n\tdescriptionFull : 'In the world of Greyhawk, only nine of these blades are known to exist. Each is patterned after the legendary sword Fragarach, which is variously translated as \"Final Word.\" Each of the nine swords has its own name and alignment, and each bears a different gem in its pommel.\\n   You gain a +3 bonus to attack and damage rolls made with this sword. In addition, while you hold the sword, you can use your reaction to make one melee attack with it against any creature in your reach that deals damage to you. You have advantage on the attack roll, and any damage dealt with this special attack ignores any damage immunity or resistance the target has.\\n\\n' + [\r\n\t\ttoUni(\"Name\\t\\tAlignment\\tGem\"),\r\n\t\t\"Answerer    \\tChaotic good\\tEmerald\",\r\n\t\t\"Back Talker\\tChaotic evil\\tJet\",\r\n\t\t\"Concluder    \\tLawful neutral\\tAmethyst\",\r\n\t\t\"Last Quip    \\tChaotic neutral\\tTourmaline\",\r\n\t\t\"Rebutter\\t\\tNeutral good\\tTopaz\",\r\n\t\t\"Replier\\t\\tNeutral\\t\\tPeridot\",\r\n\t\t\"Retorter\\t\\tLawful good\\tAquamarine\",\r\n\t\t\"Scather\\t\\tLawful evil\\tGarnet\",\r\n\t\t\"Squelcher    \\tNeutral evil\\tSpinel\"\r\n\t].join(\"\\n\"),\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /^(?=.*sword)(?=.*answering).*$/i,\r\n\t\tname : \"Sword of Answering\",\r\n\t\tsource : [[\"D\", 206]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tchoices : [\"Answerer (chaotic good)\", \"Back Talker (chaotic evil)\", \"Concluder (lawful neutral)\", \"Last Quip (chaotic neutral)\", \"Rebutter (neutral good)\", \"Replier (neutral)\", \"Retorter (lawful good)\", \"Scather (lawful evil)\", \"Squelcher (neutral evil)\"],\r\n\t\"answerer (chaotic good)\" : {\r\n\t\tname : \"Sword of Answering [Answerer]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an emerald set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"back talker (chaotic evil)\" : {\r\n\t\tname : \"Sword of Answering [Back Talker]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has jet set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"concluder (lawful neutral)\" : {\r\n\t\tname : \"Sword of Answering [Concluder]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*neutral).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an amethyst set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"last quip (chaotic neutral)\" : {\r\n\t\tname : \"Sword of Answering [Last Quip]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*neutral).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a tourmaline set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"rebutter (neutral good)\" : {\r\n\t\tname : \"Sword of Answering [Rebutter]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a topaz set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"replier (neutral)\" : {\r\n\t\tname : \"Sword of Answering [Replier]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?!.*(chaotic|lawful|evil|good)).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a peridot set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"retorter (lawful good)\" : {\r\n\t\tname : \"Sword of Answering [Retorter]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an aquamarine set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"scather (lawful evil)\" : {\r\n\t\tname : \"Sword of Answering [Scather]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a garnet set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"squelcher (neutral evil)\" : {\r\n\t\tname : \"Sword of Answering [Squelcher]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a spinel set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t}\r\n}\r\nMagicItemsList[\"sword of vengeance\"] = {\r\n\tname : \"Sword of Vengeance\",\r\n\tnameTest : \"of Vengeance\",\r\n\tsource : [[\"D\", 206]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tattunement : true,\r\n\tdescription : \"This sword gives +1 to hit and damage and is cursed. I can't part with this sword and have disadv. on attacks with other weapons. If I take damage in combat, I must make a DC 15 Wis save or I will attack the attacker until it drops to 0 HP or I can't attack it in melee anymore.\",\r\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon.\\n   \" + toUni(\"Curse\") + \". This sword is cursed and possessed by a vengeful spirit. Becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the sword, keeping it on your person at all times. While attuned to this weapon, you have disadvantage on attack rolls made with weapons other than this one.\\n   In addition, while the sword is on your person, you must succeed on a DC 15 Wisdom saving throw whenever you take damage in combat. On a failed save you must attack the creature that damaged you until you drop to 0 hit points or it does, or until you can't reach the creature to make a melee attack against it.\\n   You can break the curse in the usual ways. Alternatively, casting banishment on the sword forces the vengeful spirit to leave it. The sword then becomes a +1 weapon with no other properties.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of vengeance/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Cursed';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Vengeance\" in the name of a sword, it will be treated as the magic weapon Sword of Vengeance. It has +1 to hit and damage, but also bears a curse.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of vengeance/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"tentacle rod\"] = {\r\n\tname : \"Tentacle Rod\",\r\n\tsource : [[\"D\", 208]],\r\n\ttype : \"rod\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, all 3 tentacles of this rod attack with 15 ft reach, +9 to hit, dealing 1d6 bludgeoning damage. If a target is hit by all 3 it must make a DC 15 Con save or have half speed, disadv. on Dex saves, no reactions, and do action or bonus action, not both, for 1 min. It can repeat the save at the end of each of its turns.\",\r\n\tdescriptionLong : \"As an action while holding the rod, I can direct each of its three tentacles to attack a creature I can see within 15 ft. Each tentacle makes a melee attack roll, +9 to hit, dealing 1d6 bludgeoning damage. If a target is hit by all three tentacles, it must make a DC 15 Constitution saving throw. On a failure, the creature's speed is halved, it has disadvantage on Dexterity saving throws, and it can't use reactions for 1 minute. Moreover, on each of its turns, it can take either an action or a bonus action, but not both. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tdescriptionFull : \"Made by the drow, this rod is a magic weapon that ends in three rubbery tentacles. While holding the rod, you can use an action to direct each tentacle to attack a creature you can see within 15 feet of you. Each tentacle makes a melee attack roll with a +9 bonus. On a hit, the tentacle deals 1d6 bludgeoning damage. If you hit a target with all three tentacles, it must make a DC 15 Constitution saving throw. On a failure, the creature's speed is halved, it has disadvantage on Dexterity saving throws, and it can't use reactions for 1 minute. Moreover, on each of its turns, it can take either an action or a bonus action, but not both. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*tentacle)(?=.*rod).*$/i,\r\n\t\tname : \"Tentacle Rod\",\r\n\t\tsource : [[\"D\", 208]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (15 ft)\",\r\n\t\tdescription : \"Action to use, 3 attacks; If all 3 hit same target, it DC 15 Con save, see magic item\",\r\n\t\tabilitytodamage : false,\r\n\t\tmodifiers : [9, \"\"],\r\n\t\tweight : 2,\r\n\t\tisAlwaysProf : false,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"tome of the stilled tongue\"] = {\r\n\tname : \"Tome of the Stilled Tongue\",\r\n\tsource : [[\"D\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"I can use this thick leather-bound tome as a spellbook and an arcane focus. Once per dawn while holding it, I can use a bonus action to cast a spell I have written in it, without expending a spell slot or using any verbal or somatic components. Removing the tongue on the cover erases all spells within.\",\r\n\tdescriptionLong : \"The first few pages of this thick leather-bound tome are filled with indecipherable scrawls. The remaining pages are blank and pristine. I can use it as a spellbook and an arcane focus. Once per dawn while holding it, I can use a bonus action to cast a spell I have written in the tome, without expending a spell slot or using any verbal or somatic components. While attuned to the book, I can remove the tongue from the book's cover, permanently erasing all spells within. Vecna watches the user or this tome and sometimes has cryptic messages appear in it at midnight and fade away after they are read.\",\r\n\tdescriptionFull : \"This thick leather-bound volume has a desiccated tongue pinned to the front cover. Five of these tomes exist, and it's unknown which one is the original. The grisly cover decoration on the first tome of the stilled tongue once belonged to a treacherous former servant of the lich-god Vecna, keeper of secrets. The tongues pinned to the covers of the four copies came from other spellcasters who crossed Vecna. The first few pages of each tome are filled with indecipherable scrawls. The remaining pages are blank and pristine.\\n   If you can attune to this item, you can use it as a spellbook and an arcane focus. In addition, while holding the tome, you can use a bonus action to cast a spell you have written in this tome, without expending a spell slot or using any verbal or somatic components. Once used, this property of the tome can't be used again until the next dawn.\\n   While attuned to the book, you can remove the tongue from the book's cover. If you do so, all spells written in the book are permanently erased.\\n   Vecna watches anyone using this tome. He can also write cryptic messages in the book. These messages appear at midnight and fade away after they are read.\",\r\n\tattunement : true,\r\n\tweight : 5,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"weapon of warning\"] = {\r\n\tname : \"Weapon of Warning\",\r\n\tnameTest : \"of Warning\",\r\n\tsource : [[\"D\", 213]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While this magic weapon is on my person, I have advantage on initiative rolls. In addition, both me and my allies within 30 ft of me can't be surprised and the weapon magically awakens us when combat starts, except those incapacitated by something other than nonmagical sleep.\",\r\n\tdescriptionFull : \"This magic weapon warns you of danger. While the weapon is on your person, you have advantage on initiative rolls. In addition, you and any of your companions within 30 feet of you can't be surprised, except when incapacitated by something other than nonmagical sleep. The weapon magically awakens you and your companions within range if any of you are sleeping naturally when combat begins.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/warning/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Warning\" in the name of a weapon, it will be treated as the magic weapon Weapon of Warning.'\r\n\t\t]\r\n\t},\r\n\tsavetxt : { immune : [\"surprised\"] }\r\n}\r\n\r\n// Sentient Items\r\nvar DMG_blackrazorFullDescription = [\r\n\t\"Hidden in the dungeon of White Plume Mountain, Blackrazor shines like a piece of night sky filled with stars. Its black scabbard is decorated with pieces of cut obsidian.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. It has the following additional properties.\",\r\n\t\">>Devour Soul<<. Whenever you use it to reduce a creature to 0 hit points, the sword slays the creature devours its soul, unless it is a construct or an undead. A creature whose soul has been devoured by Blackrazor can be restored to life only by a Wish spell.\",\r\n\t\"When it devours a soul, Blackrazor grants you temporary hit points equal to the slain creature's hit point maximum. These hit points fade after 24 hours. As long as these temporary hit points last and you keep Blackrazor in hand, you have advantage on attack rolls, saving throws, and ability checks.\",\r\n\t\"If you hit an undead with this weapon, you take 1d10 necrotic damage and the target regains 1d10 hit points. If this necrotic damage reduces you to 0 hit points, Blackrazor devours your soul.\",\r\n\t\">>Soul Hunter<<. While you hold the weapon, you are aware of the presence of Tiny or larger creatures within 60 feet of you that aren't constructs or undead. You also can't be charmed or frightened.\",\r\n\t\"Blackrazor can cast the Haste spell on you once per day. It decides when to cast the spell and maintains concentration on it so that you don't have to.\",\r\n\t\">>Sentience<<. Blackrazor is a sentient chaotic neutral weapon with an Intelligence of 17, a Wisdom of 10, and a Charisma of 19. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon can speak, read, and understand Common, and can communicate with its wielder telepathically. Its voice is deep and echoing. While you are attuned to it, Blackrazor also understands every language you know.\",\r\n\t\">>Personality<<. Blackrazor speaks with an imperious tone, as though accustomed to being obeyed.\",\r\n\t\"The sword's purpose is to consume souls. It doesn't care whose souls it eats, including the wielder's. The sword believes that all matter and energy sprang from a void of negative energy and will one day return to it. Blackrazor is meant to hurry that process along.\",\r\n\t\"Despite its nihilism, Blackrazor feels a strange kinship to Wave and Whelm, two other weapons locked away under White Plume Mountain. It wants the three weapons to be united again and wielded together in combat, even though it violently disagrees with Whelm and finds Wave tedious.\",\r\n\t\"Blackrazor's hunger for souls must be regularly fed. If the sword goes three days or more without consuming a soul, a conflict between it and its wielder occurs at the next sunset.\"\r\n];\r\nMagicItemsList[\"blackrazor\"] = {\r\n\tname : \"Blackrazor\",\r\n\tsource : [[\"D\", 216]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sentient greatsword adds +3 to hit and damage and makes me immune to being charmed or frightened. Once per day it can cast Haste on me as it sees fit. If I use it to bring a creature to 0 HP, it devours the creature's soul, granting me temporary HP equal to the creature's max HP for 24 hours. See Notes page.\",\r\n\tdescriptionFull : DMG_blackrazorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-lawful alignment\",\r\n\tprereqeval : function(v) { return !(/lawful/i).test(What(\"Alignment\")); },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweight : 6,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /blackrazor/i,\r\n\t\tname : \"Blackrazor\",\r\n\t\tsource : [[\"D\", 216]],\r\n\t\tdescription : \"Heavy, two-handed; Devours soul; Heals undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(DMG_blackrazorFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|reduces|grants) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\tsavetxt : { immune : [\"charmed\", \"frightened\"] },\r\n\tusages : 1,\r\n\trecovery : \"day\",\r\n\tadditional : \"Haste\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per day\",\r\n\t\tspells : [\"haste\"],\r\n\t\tselection : [\"haste\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"haste\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"1 min\",\r\n\t\t\tdescription : \"I get +2 AC, speed doubled, adv. on Dex saves, extra action (1 attack, dash, disengage, hide)\",\r\n\t\t\tchanges : \"Blackrazor casts the spell on me, so I don't need to concentrate on it.\"\r\n\t\t}\r\n\t}\r\n}\r\nvar DMG_waveFullDescription = [\r\n\t\"Held in the dungeon of White Plume Mountain, this trident is an exquisite weapon engraved with images of waves, shells, and sea creatures. Although you must worship a god of the sea to attune to this weapon, Wave happily accepts new converts.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. If you score a critical hit with it, the target takes extra necrotic damage equal to half its hit point maximum.\",\r\n\t\"The weapon also functions as a trident of fish command and a weapon of warning. It can confer the benefit of a cap of water breathing while you hold it, and you can use it as a cube of force by choosing the effect, instead of pressing cube sides to select it.\",\r\n\t\">>Sentience<<. Wave is a sentient weapon of neutral alignment, with an Intelligence of 14, a Wisdom of 10, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Aquan. It can also speak with aquatic animals as if using a Speak with Animals spell, using telepathy to involve its wielder in the conversation.\",\r\n\t\">>Personality<<. When it grows restless, Wave has a habit of humming tunes that vary from sea chanteys to sacred hymns of the sea gods.\",\r\n\t\"Wave zealously desires to convert mortals to the worship of one or more sea gods, or else to consign the faithless to death. Conflict arises if the wielder fails to further the weapon's objectives in the world. The trident has a nostalgic attachment to the place where it was forged, a desolate island called Thunderforge. A sea god imprisoned a family of storm giants there, and the giants forged Wave in an act of devotion to\\u2014or rebellion against\\u2014that god.\",\r\n\t\"Wave harbors a secret doubt about its own nature and purpose. For all its devotion to the sea gods, Wave fears that it was intended to bring about a particular sea god's demise. This destiny is something Wave might not be able to avert.\"\r\n];\r\nif (MagicItemsList[\"trident of fish command\"] && MagicItemsList[\"weapon of warning\"] && MagicItemsList[\"cap of water breathing\"] && MagicItemsList[\"cube of force\"]) {\r\n\tMagicItemsList[\"wave\"] = {\r\n\t\tname : \"Wave\",\r\n\t\tsource : [[\"D\", 218]],\r\n\t\ttype : \"weapon (trident)\",\r\n\t\trarity : \"legendary\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"This sentient trident adds +3 to hit and damage and if I score a critical hit with it, the target takes extra necrotic damage equal to half its max HP. It also functions as a trident of fish command, a weapon of warning, cap of water breathing while I hold it, and I can use it as a cube of force. See Notes page.\",\r\n\t\tdescriptionFull : DMG_waveFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a creature that worships a god of the sea\",\r\n\t\tprereqeval : function(v) { return (/deep sashelas|sekolah|ulutiu|umberlee|valkur|poseidon|neptune|aegir|nehalennia|njord/i).test(What(\"Faith/Deity\")); },\r\n\t\tweight : 4,\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"trident\",\r\n\t\t\tregExpSearch : /wave/i,\r\n\t\t\tname : \"Wave\",\r\n\t\t\tsource : [[\"D\", 218]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); On crit: necrotic damage equal to half target max HP\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : desc(DMG_waveFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/you/ig, \"I\") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t\t}, {\r\n\t\t\tname : \"Contained Items\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\n\\n\\u2022 Trident of Fish Command (SRD 247, DMG 209)\\n   \" + MagicItemsList[\"trident of fish command\"].description,\r\n\t\t\t\t\"\\u2022 Weapon of Warning (DMG 213)\\n   \" + MagicItemsList[\"weapon of warning\"].description,\r\n\t\t\t\t\"\\u2022 Cap of Water Breathing (DMG 157)\\n   \" + MagicItemsList[\"cap of water breathing\"].description,\r\n\t\t\t\t\"\\u2022 Cube of Force (SRD 215, DMG 159)\" + desc(MagicItemsList[\"cube of force\"].toNotesPage[0].note)\r\n\t\t\t].join(\"\\n\\n\")\r\n\t\t}],\r\n\t\t// cube of force & cap of water breathing\r\n\t\taction : [[\"action\", \" (Cap of Water Breathing)\"], [\"action\", \" (Cube of Force)\"]],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Wave [Cube of Force] (regains 1d20)\",\r\n\t\t\tusages : 36,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t// trident of fish command\r\n\t\t\tname : \"Wave [Fish Command] (regains 1d3)\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"dominate beast\"],\r\n\t\t\tselection : [\"dominate beast\"],\r\n\t\t\tfirstCol : 1\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate beast\" : {\r\n\t\t\t\tdescription : \"1 beast with swim speed save or charmed, follows telepathic commands, 1 a for complete control\",\r\n\t\t\t\tchanges : \"Can only affect beasts with innate swim speed.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t// weapon of warning\r\n\t\tadvantages : [[\"Initiative\", true]]\r\n\t}\r\n}\r\nvar DMG_whelmFullDescription = [\r\n\t\"Whelm is a powerful warhammer forged by dwarves and lost in the dungeon of White Plume Mountain.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. At dawn the day after you first make an attack roll with Whelm, you develop a fear of being outdoors that persists as long as you remain attuned to the weapon. This causes you to have disadvantage on attack rolls, saving throws, and ability checks while you can see the daytime sky.\",\r\n\t\">>Thrown Weapon<<. Whelm has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When you hit with a ranged weapon attack using it, the target takes an extra 1d8 bludgeoning damage, or an extra 2d8 bludgeoning damage if the target is a giant. Each time you throw the weapon, it flies back to your hand after the attack. If you don't have a hand free, the weapon lands at your feet.\",\r\n\t\">>Shock Wave<<. You can use an action to strike the ground with Whelm and send a shock wave out from the point of impact. Each creature of your choice on the ground within 60 feet of that point must succeed on a DC 15 Constitution saving throw or become stunned for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Once used, this property can't be used again until the next dawn.\",\r\n\t\">>Supernatural Awareness<<. While you are holding the weapon, it alerts you to the location of any secret or concealed doors within 30 feet of you. In addition, you can use an action to cast Detect Evil and Good or Locate Object from the weapon. Once you cast either spell, you can't cast it from the weapon again until the next dawn.\",\r\n\t\">>Sentience<<. Whelm is a sentient lawful neutral weapon with an Intelligence of 15, a Wisdom of 12, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Dwarvish. Giant, and Goblin. It shouts battle cries in Dwarvish when used in combat.\",\r\n\t\">>Personality<<. Whelm's purpose is to slaughter giants and goblinoids. It also seeks to protect dwarves against all enemies. Conflict arises if the wielder fails to destroy goblins and giants or to protect dwarves. Whelm has ties to the dwarf clan that created it, variously called the Dankil or the Mightyhammer clan. It longs to be returned to that clan. It would do anything to protect those dwarves from harm. The hammer also carries a secret shame. Centuries ago, a dwarf named Ctenmiir wielded it valiantly for a time. But Ctenmiir was turned into a vampire. His will was strong enough that he bent Whelm to his evil purposes, even killing members of his own clan.\"\r\n];\r\nMagicItemsList[\"whelm\"] = {\r\n\tname : \"Whelm\",\r\n\tsource : [[\"D\", 218]],\r\n\ttype : \"weapon (warhammer)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sentient warhammer adds +3 to hit and damage, has the thrown property, deals extra damage when thrown, and returns to my hand when thrown. I can use it to create a shock wave. It makes me afraid of the outdoors, so while I can see the daytime sky, I have disadv. on attacks, saves, and checks. See Notes page.\",\r\n\tdescriptionFull : DMG_whelmFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"warhammer\",\r\n\t\tregExpSearch : /whelm/i,\r\n\t\tname : \"Whelm\",\r\n\t\tsource : [[\"D\", 218]],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Versatile (1d10), thrown, returning; +1d8 damage when thrown (+2d8 vs. giants)\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(DMG_whelmFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|causes|alerts) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\taction : [[\"action\", \" (Shock Wave)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Whelm [Shock Wave]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Whelm [Detect Evil and Good]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Whelm [Locate Object]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tvision : [[\"Know location of secret doors\", 30]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"detect evil and good\", \"locate object\"],\r\n\t\tselection : [\"detect evil and good\", \"locate object\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\n\r\n// Firearms [weapons and ammunition] (includes contributions by grungydan)\r\nWeaponsList[\"pistol\"] = {\r\n\tregExpSearch : /^(?!.*(automatic|laser|antimatter|needler|paralysis))(?=.*\\bpistols?\\b).*$/i,\r\n\tname : \"Pistol\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 10, \"piercing\"],\r\n\trange : \"30/90 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, loading\",\r\n\tabilitytodamage : true,\r\n\tammo : \"renaissance bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"musket\"] = {\r\n\tregExpSearch : /musket/i,\r\n\tname : \"Musket\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 12, \"piercing\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 10,\r\n\tdescription : \"Ammunition, loading, two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"renaissance bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"renaissance bullet\"] = {\r\n\tname : \"Bullets, Renaissance\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 0.2,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Bullets, renaissance\",\r\n\talternatives : [/^(?=.*bullet)(?=.*renaissance).*$/i],\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"pistol automatic\"] = {\r\n\tregExpSearch : /^(?=.*pistol)(?=.*automatic).*$/i,\r\n\tname : \"Automatic pistol\",\r\n\tnameAlt : [\"Pistol, Automatic\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 6, \"piercing\"],\r\n\trange : \"50/150 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, reload (15 shots)\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"revolver\"] = {\r\n\tregExpSearch : /revolver/i,\r\n\tname : \"Revolver\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, reload (6 shots)\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"rifle hunting\"] = {\r\n\tregExpSearch : /^(((?=.*hunting)(?=.*rifle))|((?!.*(automatic|laser|antimatter))(?=.*\\brifles?\\b))).*$/i,\r\n\tname : \"Hunting rifle\",\r\n\tnameAlt : [\"Rifle, Hunting\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 10, \"piercing\"],\r\n\trange : \"80/240 ft\",\r\n\tweight : 8,\r\n\tdescription : \"Ammunition, reload (5 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"rifle automatic\"] = {\r\n\tregExpSearch : /^(?=.*automatic)(?=.*rifle).*$/i,\r\n\tname : \"Automatic rifle\",\r\n\tnameAlt : [\"Rifle, Automatic\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"80/240 ft\",\r\n\tweight : 8,\r\n\tdescription : \"Ammunition, burst fire, reload (30 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true,\r\n\ttooltip : \"A weapon that has the burst fire property can make a single-target attack, or it can spray a 10-foot-cube area within normal range with shots. Each creature in the area must succeed on a DC 15 Dexterity saving throw or take the weapon's normal damage. This action uses ten pieces of ammunition.\"\r\n};\r\nWeaponsList[\"shotgun\"] = {\r\n\tregExpSearch : /shotgun/i,\r\n\tname : \"Shotgun\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"30/90 ft\",\r\n\tweight : 7,\r\n\tdescription : \"Ammunition, reload (2 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"modern bullet\"] = {\r\n\tname : \"Bullets, Modern\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 0.1,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Bullets, modern\",\r\n\talternatives : [/^(?=.*bullet)(?=.*modern).*$/i],\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"laser pistol\"] = {\r\n\tregExpSearch : /^(?=.*laser)(?=.*pistol).*$/i,\r\n\tname : \"Laser pistol\",\r\n\tnameAlt : [\"Pistol, Laser\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [3, 6, \"radiant\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, reload (50 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"antimatter rifle\"] = {\r\n\tregExpSearch : /^(?=.*antimatter)(?=.*rifle).*$/i,\r\n\tname : \"Antimatter rifle\",\r\n\tnameAlt : [\"Rifle, Antimatter\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [6, 8, \"necrotic\"],\r\n\trange : \"120/360 ft\",\r\n\tweight : 10,\r\n\tdescription : \"Ammunition, reload (2 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"laser rifle\"] = {\r\n\tregExpSearch : /^(?=.*laser)(?=.*rifle).*$/i,\r\n\tname : \"Laser rifle\",\r\n\tnameAlt : [\"Rifle, Laser\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [3, 8, \"radiant\"],\r\n\trange : \"100/300 ft\",\r\n\tweight : 7,\r\n\tdescription : \"Ammunition, reload (30 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"energy cell\"] = {\r\n\tname : \"Energy Cell\",\r\n\tsource : [[\"D\", 268], [\"QftIS\", 192]],\r\n\tweight : 0,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Energy Cell\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Explosives as weapons and ammunition\r\nWeaponsList[\"bomb, renaissance\"] = {\r\n\tregExpSearch : /^(?=.*bomb)(?=.*renaissance).*$/i,\r\n\tname : \"Bomb, renaissance\",\r\n\tsource : [[\"D\", 267]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [3, 6, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"Dex save for all within 5-ft radius\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [4, \"\"],\r\n\tdc : true,\r\n\tammo : \"bomb\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a character can light this bomb and throw it at a point up to 60 ft away. Each creature within 5 ft of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\"+\r\n\t\"\\n   A bomb costs 150 gp and weights 1 lb.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"bomb\"] = {\r\n\tname : \"Bomb\",\r\n\tsource : [[\"D\", 267]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Bomb, renaissance\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"dynamite stick\"] = {\r\n\tregExpSearch : /^(?=.*dynamite)(?=.*stick).*$/i,\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [3, 6, \"bludgeoning\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"All within 5-ft radius, Dex save halves; +1d6 damage \\u0026 +5 ft radius per extra stick used (max 10d6/20 ft)\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [4, \"\"],\r\n\tdc : true,\r\n\tammo : \"dynamite stick\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a creature can light a stick of dynamite and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must make a DC 12 Dexterity saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   A character can bind sticks of dynamite together so they explode at the same time. Each additional stick increases the damage by 1d6 (to a maximum of 10d6) and the burst radius by 5 feet (to a maximum of 20 feet).\"+\r\n\t\"\\n   Dynamite can be rigged with a longer fuse to explode after a set amount of time, usually 1 to 6 rounds. Roll initiative for the dynamite. After the set number of rounds goes by, the dynamite explodes on that initiative.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"dynamite stick\"] = {\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Dynamite stick\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"grenade, fragmentation\"] = {\r\n\tregExpSearch : /^(?=.*grenade)(?=.*frag(\\b|mentation)).*$/i,\r\n\tname : \"Fragmentation Grenade\",\r\n\tnameAlt : [\"Grenade, Fragmentation\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [5, 6, \"piercing\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"All within 20-ft radius, Dex save halves\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [7, \"\"],\r\n\tdc : true,\r\n\tammo : \"grenade\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\"\\n   Each creature within 20 feet of an exploding fragmentation grenade must make a DC 15 Dexterity saving throw, taking 5d6 piercing damage on a failed save, or half as much damage on a successful one.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"grenade\"] = {\r\n\tname : \"Grenade\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Grenade\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Explosives as \"technological\" magic items\r\nMagicItemsList[\"bomb, renaissance\"] = {\r\n\tname : \"Bomb, renaissance\",\r\n\tsource : [[\"D\", 267]],\r\n\ttype : \"explosive, renaissance\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, I can light this bomb and throw it at a point up to 60 ft away. Each creature within 5 ft of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\",\r\n\tdescriptionFull : \"As an action, a character can light this bomb and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tweaponsAdd : { select : [\"Bomb, Renaissance\"] },\r\n\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\tif (CurrentSources.weapExcl.eject(\"bomb, renaissance\") !== -1) SetWeaponsdropdown();\r\n\t\tif (CurrentSources.ammoExcl.eject(\"bomb\") !== -1) SetAmmosdropdown();\r\n\t}\r\n};\r\nMagicItemsList[\"gunpowder\"] = {\r\n\tname : \"Gunpowder\",\r\n\tsource : [[\"D\", 267]],\r\n\ttype : \"explosive, renaissance\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"Gunpowder is chiefly used to propel a bullet out of the barrel of a pistol or rifle, or it is formed into a bomb. Gunpowder is sold in small wooden kegs or in water-resistant powder horns.\",\r\n\tdescriptionFull : \"Gunpowder is chiefly used to propel a bullet out of the barrel of a pistol or rifle, or it is formed into a bomb. Gunpowder is sold in small wooden kegs or in water-resistant powder horns.\"+\r\n\t\"\\n   Setting fire to a container full of gunpowder can cause it to explode, dealing fire damage to creatures within 10 feet of it (3d6 for a powder horn). A successful DC 12 Dexterity saving throw halves the damage. Setting fire to an ounce of gunpowder causes it to flare for 1 round, shedding bright light in a 30-foot radius and dim light for an additional 30 feet.\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Horn (35 gp)\", \"Keg (250 gp)\"],\r\n\t\"horn (35 gp)\" : {\r\n\t\tname : \"Gunpowder Horn\",\r\n\t\tdescription : \"This water-resistant horn contains explosive powder that is chiefly used to propel a bullet and can be formed into a bomb. The horn explodes if set on fire, dealing 3d6 fire damage to all within 10 ft, DC 12 Dex save halves. If 1 ounce is set on fire, it flares for 1 round with 20-ft radius bright and equal dim light.\",\r\n\t\tweight : 2\r\n\t},\r\n\t\"keg (250 gp)\" : {\r\n\t\tname : \"Gunpowder Keg\",\r\n\t\tdescription : \"This small wooden keg contains explosive powder that is chiefly used to propel a bullet and can be formed into a bomb. The horn explodes if set on fire, dealing 3d6 fire damage to all within 10 ft, DC 12 Dex save halves. If 1 ounce is set on fire, it flares for 1 round with 20-ft radius bright light and 20-ft radius dim light.\",\r\n\t\tweight : 20\r\n\t}\r\n}\r\nMagicItemsList[\"dynamite stick\"] = {\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\ttype : \"explosive, modern\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, I can light a (bundle of) stick(s) of dynamite and throw it at a point up to 60 ft away. All creatures within 5-ft/stick of that point take 2d6+1d6/stick fire damage, DC 12 Dex save for half. Maximum 10d6 damage and 20-ft radius. I can also explode it using a longer fuse (roll separate initiative for it).\",\r\n\tdescriptionFull : \"As an action, a creature can light a stick of dynamite and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must make a DC 12 Dexterity saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   A character can bind sticks of dynamite together so they explode at the same time. Each additional stick increases the damage by 1d6 (to a maximum of 10d6) and the burst radius by 5 feet (to a maximum of 20 feet).\"+\r\n\t\"\\n   Dynamite can be rigged with a longer fuse to explode after a set amount of time, usually 1 to 6 rounds. Roll initiative for the dynamite. After the set number of rounds goes by, the dynamite explodes on that initiative.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tweaponsAdd : { select : [\"Dynamite Stick\"] },\r\n\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\tif (CurrentSources.weapExcl.eject(\"dynamite stick\") !== -1) SetWeaponsdropdown();\r\n\t\tif (CurrentSources.ammoExcl.eject(\"dynamite stick\") !== -1) SetAmmosdropdown();\r\n\t}\r\n};\r\nMagicItemsList[\"grenade\"] = {\r\n\tname : \"Grenade\",\r\n\tsource : [[\"D\", 268], [\"QftIS\", 192]],\r\n\ttype : \"explosive, modern\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\",\r\n\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tchoices : [\"Fragmentation Grenade\", \"Smoke Grenade\"],\r\n\t\"fragmentation grenade\" : {\r\n\t\tname : \"Fragmentation Grenade\",\r\n\t\tsortname : \"Grenade, Fragmentation\",\r\n\t\tsource : [[\"D\", 268]],\r\n\t\tdefaultExcluded : true,\r\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. All creatures within 20 ft of an exploding fragmentation grenade take 6d6 piercing damage, but can make a DC 15 Dexterity save to halve that damage.\",\r\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\t\"\\n   Each creature within 20 feet of an exploding fragmentation grenade must make a DC 15 Dexterity saving throw, taking 5d6 piercing damage on a failed save, or half as much damage on a successful one.\",\r\n\t\tweight : 1,\r\n\t\tweaponsAdd : { select : [\"Fragmentation Grenade\"] },\r\n\t\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\t\tif (CurrentSources.weapExcl.eject(\"grenade, fragmentation\") !== -1) SetWeaponsdropdown();\r\n\t\t\tif (CurrentSources.ammoExcl.eject(\"grenade\") !== -1) SetAmmosdropdown();\r\n\t\t}\r\n\t},\r\n\t\"smoke grenade\" : {\r\n\t\tname : \"Smoke Grenade\",\r\n\t\tsortname : \"Grenade, Smoke\",\r\n\t\tsource : [[\"D\", 268]],\r\n\t\tdefaultExcluded : true,\r\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. 1 round after a smoke grenade lands, it emits a cloud of smoke that heavily obscures a 20-ft radius area. A moderate wind (10 mph) disperses this smoke in 4 rounds, a strong wind (20+ mph) in 1 round.\",\r\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\t\"\\n   One round after a smoke grenade lands, it emits a cloud of smoke that creates a heavily obscured area in a 20-foot radius. A moderate wind (at least 10 miles per hour) disperses the smoke in 4 rounds; a strong wind (20 or more miles per hour) disperses it in 1 round.\",\r\n\t\tweight : 2\r\n\t}\r\n};\r\n\n// pub_20150407_PotA.js\r\n// This file adds the magic items from the Princes of the Apocalypse adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"PotA\"] = {\r\n\tname : \"Princes of the Apocalypse [items]\",\r\n\tabbreviation : \"PotA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/princes-apocalypse\",\r\n\tdate : \"2015/04/07\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"balloon pack\"] = {\r\n\tname : \"Balloon Pack\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"As an action, I can deploy the balloon to gain the effects of Levitate for 10 minutes. As a reaction, I can deploy the balloon to gain the effects of Feather Fall. After either effect ends, I descend slowly for 60 ft as it deflates. Once used in either way, the backpack is useless until recharged in an air node for 1 hour.\",\r\n\tdescriptionFull : \"This backpack contains the spirit of an air elemental and a compact leather balloon. While you're wearing the backpack, you can deploy the balloon as an action and gain the effect of the Levitate spell for 10 minutes, targeting yourself and requiring no concentration. Alternatively, you can use a reaction to deploy the balloon when you're falling and gain the effect of the Feather Fall spell for yourself.\\n   When either spell ends, the balloon slowly deflates as the elemental spirit escapes and returns to the Elemental Plane of Air. As the balloon deflates, you descend gently toward the ground for up to 60 feet. If you are still in the air at the end of this distance, you fall if you have no other means of staying aloft.\\n   After the spirit departs, the backpack's property is unusable unless the backpack is recharged for 1 hour in an elemental air node, which binds another spirit to the backpack.\",\r\n\tweight : 5, // as backpack\r\n\tusages : 1,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\",\r\n\taction : [[\"action\", \" (Levitate)\"], [\"reaction\", \" (Feather Fall)\"]],\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"feather fall\", \"levitate\"],\r\n\t\tselection : [\"feather fall\", \"levitate\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"feather fall\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tdescription : \"I descent only 60 ft/rnd for duration or until landed, taking no falling damage\",\r\n\t\t\tchanges : \"Using the Balloon Pack, I can only target myself.\"\r\n\t\t},\r\n\t\t\"levitate\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"10 min\",\r\n\t\t\tsave : \"\",\r\n\t\t\tdescription : \"I rise vertically, up to 20 ft; move up/down 20 ft instead of normal move\",\r\n\t\t\tchanges : \"Using the Balloon Pack, I can only target myself, but the spell requires no concentration.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bottled breath\"] = {\r\n\tname : \"Bottled Breath\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can inhale this breath of elemental air or administer it to another. The target then either exhale it or hold it in. If exhaled immediately, it produces the effects of Gust of Wind. Holding it in removes the need to breathe for 1 hour, though this benefit can end early, by speaking for example.\",\r\n\tdescriptionFull : \"This bottle contains a breath of elemental air. When you inhale it, you either exhale it or hold it.\\n   If you exhale the breath, you gain the effect of the Gust of Wind spell. If you hold the breath, you don't need to breathe for 1 hour, though you can end this benefit early (for example, to speak). Ending it early doesn't give you the benefit of exhaling the breath.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"claws of the umber hulk\"] = {\r\n\tname : \"Claws of the Umber Hulk\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"These brown iron gauntlets, shaped like umber hulk claws, cover my hands up to my elbows. While wearing both, I can tunnel 1 ft per round through solid rock and have a burrowing speed of 20 ft, but can't manipulate items or use somatic spell components. I can use them as melee weapons, dealing 1d8 slashing damage.\",\r\n\tdescriptionFull : \"These heavy gauntlets of brown iron are forged in the shape of an umber hulk's claws, and they fit the wearer's hands and forearms all the way up to the elbow. While wearing both claws, you gain a burrowing speed of 20 feet, and you can tunnel through solid rock at a rate of 1 foot per round.\\n   You can use a claw as a melee weapon while wearing it. You have proficiency with it, and it deals 1d8 slashing damage on a hit (your Strength modifier applies to the attack and damage rolls, as normal).\\n   While wearing the claws, you can't manipulate objects or cast spells with somatic components.\",\r\n\tweight : 1,\r\n\tattunement : true,\r\n\tspeed : { burrow : { spd : \"fixed20\", enc : \"fixed10\" } },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*claws)(?=.*umber)(?=.*hulk).*$/i,\r\n\t\tname : \"Claws of the Umber Hulk\",\r\n\t\tsource : [[\"PotA\", 222]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 8, \"slashing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nvar PotA_tempDevastationOrbNoteTxt = [\r\n\t\"A devastation orb is an elemental bomb that can be created at the site of an elemental node by performing a ritual with an elemental weapon. The type of orb created depends on the node used. For example, an air node creates a devastation orb of air. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed.\\n   A devastation orb measures 12 inches in diameter, weighs 10 pounds, and has a solid outer shell. The orb detonates 1d100 hours after its creation, releasing the elemental energy it contains. The orb gives no outward sign of how much time remains before it will detonate. Spells such as Identify and Divination can be used to ascertain when the orb will explode. An orb has AC 10, 15 hit points, and immunity to poison and psychic damage. Reducing it to 0 hit points causes it to explode instantly.\\n   A special container can be crafted to contain a devastation orb and prevent it from detonating. The container must be inscribed with symbols of the orb's opposing element. For example, a case inscribed with earth symbols can be used to contain a devastation orb of air and keep it from detonating. While in the container, the orb thrums. If it is removed from the container after the time when it was supposed to detonate, it explodes 1d6 rounds later, unless it is returned to the container.\\n   Regardless of the type of orb, its effect is contained within a sphere with a 1 mile radius. The orb is the sphere's point of origin. The orb is destroyed after one use.\",\r\n\tdesc([\r\n\t\t\"This elemental bomb can be created at the site of an elemental node of tELEMENT by performing a ritual with an elemental weapon. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed.\",\r\n\t\t\"A devastation orb measures 12 inches in diameter, weighs 10 pounds, and has a solid outer shell. The orb detonates 1d100 hours after its creation, releasing the elemental energy it contains. The orb gives no outward sign of how much time remains before it will detonate. Spells such as Identify and Divination can be used to ascertain when the orb will explode. An orb has AC 10, 15 hit points, and immunity to poison and psychic damage. Reducing it to 0 hit points causes it to explode instantly.\",\r\n\t\t\"A special container inscribed with symbols of oELEMENT can be crafted to contain a devastation orb of tELEMENT and prevent it from detonating. While in the container, the orb thrums. If it is removed from the container after the time when it was supposed to detonate, it explodes 1d6 rounds later, unless it is returned to the container.\"\r\n\t])\r\n];\r\nMagicItemsList[\"devastation orb\"] = {\r\n\tname : \"Devastation Orb\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates an effect in a 1-mile radius around it.\",\r\n\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0],\r\n\tweight : 10,\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Air\", \"Earth\", \"Fire\", \"Water\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"air\" : {\r\n\t\tname : \"Devastation Orb of Air\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates a powerful windstorm in 1 mile around it for 1 hour. Everything exposed to the wind is damage by it. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Air Orb\") + \". When this orb detonates, it creates a powerful windstorm that lasts for 1 hour. Whenever a creature ends its turn exposed to the wind, the creature must succeed on a DC 18 Constitution saving throw or take 1d4 bludgeoning damage, as the wind and debris batter it. The wind is strong enough to uproot weak trees and destroy light structures after at least 10 minutes of exposure. Otherwise, the rules for strong wind apply, as detailed in chapter 5 of the Dungeon Master's Guide.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"air\").replace(/oElement/g, \"earth\") + \"\\n  When this orb detonates, it creates a powerful windstorm within a sphere with a 1 mile radius that lasts for 1 hour. Whenever a creature ends its turn exposed to the wind, the creature must succeed on a DC 18 Constitution saving throw or take 1d4 bludgeoning damage, as the wind and debris batter it. The wind is strong enough to uproot weak trees and destroy light structures after at least 10 minutes of exposure. Otherwise, the rules for strong wind apply. A strong wind imposes disadvantage on ranged weapon attack rolls and Wisdom (Perception) checks that rely on hearing. A strong wind also extinguishes open flames, disperses fog, and makes flying by nonmagical means nearly impossible. A flying creature in a strong wind must land at the end of its turn or fall. A strong wind in a desert can create a sandstorm that imposes disadvantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t\t}]\r\n\t},\r\n\t\"earth\" : {\r\n\t\tname : \"Devastation Orb of Earth\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates the effect of an Earthquake spell in 1 mile around it for 1 minute. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Earth Orb\") + \". When this orb detonates, it subjects the area to the effects of the Earthquake spell for 1 minute (spell save DC 18). For the purpose of the spell's effects, the spell is cast on the turn that the orb explodes.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"earth\").replace(/oElement/g, \"air\") + desc([\r\n\t\t\t\t\"When this orb detonates, it subjects the area to the effects of the Earthquake spell for 1 minute (spell save DC 18). For the purpose of the spell's effects, the spell is cast on the turn that the orb explodes.\",\r\n\t\t\t\t\"The Earthquake spell creates a seismic disturbance that shakes creatures and structures in contact with the ground in that area. The ground in the area becomes difficult terrain. Each creature on the ground that is concentrating must make a Constitution saving throw. On a failed save, the creature's concentration is broken.\",\r\n\t\t\t\t\"At the end of each turn this goes on, each creature on the ground in the area must make a Dexterity saving throw. On a failed save, the creature is knocked prone.\",\r\n\t\t\t\t\"This spell can have additional effects depending on the terrain in the area, as determined by the DM.\",\r\n\t\t\t\t\"\\u2022 Fissures. Fissures open throughout the spell's area at the start of the turn after the orb detonates. A total of 1d6 such fissures open in locations chosen by the DM. Each is 1d10 \\xD7 10 ft deep, 10 ft wide, and extends from one edge of the area to the opposite side. A creature standing on a spot where a fissure opens must succeed on a Dexterity saving throw or fall in. A creature that successfully saves moves with the fissure's edge as it opens. A fissure that opens beneath a structure causes it to automatically collapse (see below).\",\r\n\t\t\t\t\"\\u2022 Structures. The tremor deals 50 bludgeoning damage to any structure in contact with the ground in the area when the orb detonates and at the start of each of turns for the duration. If a structure drops to 0 hit points, it collapses and potentially damages nearby creatures. A creature within half the distance of a structure's height must make a Dexterity saving throw. On a failed save, the creature takes 5d6 bludgeoning damage, is knocked prone, and is buried in the rubble, requiring a DC 20 Strength (Athletics) check as an action to escape. The DM can adjust the DC higher or lower, depending on the nature of the rubble. On a successful save, the creature takes half as much damage and doesn't fall prone or become buried.\"\r\n\t\t\t])\r\n\t\t}]\r\n\t},\r\n\t\"fire\" : {\r\n\t\tname : \"Devastation Orb of Fire\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates a dry heat wave in 1 mile around it for 24 hours. There is extreme heat within the area and wildfires can appear within, see Notes.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Fire Orb\") + \". When this orb detonates, it creates a dry heat wave that lasts for 24 hours. Within the area of effect, the rules for extreme heat apply, as detailed in chapter 5 of the Dungeon Master's Guide. At the end of each hour, there is a ten percent chance that the heat wave starts a wildfire in a random location within the area of effect. The wildfire covers a 10-foot-square area initially but expands to fill another 10-foot square each round until the fire is extinguished or burns itself out. A creature that comes within 10 feet of a wildfire for the first time on a turn or starts its turn there takes 3d6 fire damage.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"fire\").replace(/oElement/g, \"water\") + \"\\n  When this orb detonates, it creates a dry heat wave within a 1-mile radius sphere that lasts for 24 hours. At the end of each hour, there is a ten percent chance that the heat wave starts a wildfire in a random location within the area of effect. The wildfire covers a 10-foot-square area initially but expands to fill another 10-foot square each round until the fire is extinguished or burns itself out. A creature that comes within 10 feet of a wildfire for the first time on a turn or starts its turn there takes 3d6 fire damage.\\n   Within the area of effect, the rules for extreme heat apply, as the temperature is above 100 \\u00B0F. Any creature exposed to the heat and without access to drinkable water must succeed on a Constitution saving throw at the end of each hour or gain one level of exhaustion. The DC is 5 for the first hour and increases by 1 for each additional hour. Creatures wearing medium or heavy armor, or who are clad in heavy clothing, have disadvantage on the saving throw. Creatures with resistance or immunity to fire damage automatically succeed on the saving throw, as do creatures naturally adapted to hot climates.\"\r\n\t\t}]\r\n\t},\r\n\t\"water\" : {\r\n\t\tname : \"Devastation Orb of Water\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates torrential rainstorm in 1 mile around it for 24 hours. If bodies of water exist in the area, they rise 10 ft and flood. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Water Orb\") + \". When this orb detonates, it creates a torrential rainstorm that lasts for 24 hours. Within the area of effect, the rules for heavy precipitation apply, as detailed in chapter 5 of the Dungeon Master's Guide. If there is a substantial body of water in the area, it floods after 2d10 hours of heavy rain, rising 10 feet above its banks and inundating the surrounding area. The flood advances at a rate of 100 feet per round, moving away from the body of water where it began until it reaches the edge of the area of effect: at that point, the water flows downhill (and possibly recedes back to its origin). Light structures collapse and wash away. Any Large or smaller creature caught in the flood's path is swept away. The flooding destroys crops and might trigger mudslides, depending on the terrain.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"water\").replace(/oElement/g, \"fire\") + \"\\n  When this orb detonates, it creates a torrential rainstorm in a 1-mile radius sphere that lasts for 24 hours. If there is a substantial body of water in the area, it floods after 2d10 hours of heavy rain, rising 10 feet above its banks and inundating the surrounding area. The flood advances at a rate of 100 feet per round, moving away from the body of water where it began until it reaches the edge of the area of effect: at that point, the water flows downhill (and possibly recedes back to its origin). Light structures collapse and wash away. Any Large or smaller creature caught in the flood's path is swept away. The flooding destroys crops and might trigger mudslides, depending on the terrain.\\n   Within the area of effect, the rules for heavy precipitation apply. Everything is lightly obscured, and creatures in the area have disadvantage on Wisdom (Perception) checks that rely on sight. Heavy rain also extinguishes open flames and imposes disadvantage on Wisdom (Perception) checks that rely on hearing.\"\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"drown\"] = {\r\n\tname : \"Drown\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (trident)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This trident has a +1 bonus on to hit and damage and deals +1d8 cold damage. It allows me to speak Aquan, grants me resistance to cold damage, and allows me to cast Dominate Monster on a water elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A steel trident decorated with bronze barnacles along the upper part of its haft, Drown has a sea-green jewel just below the tines and a silver shell at the end of its haft. It floats on the surface if dropped onto water, and it floats in place if it is released underwater. The trident is always cool to the touch, and it is immune to any damage due to exposure to water. Drown contains a spark of Olhydra, the Princess of Evil Water.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the targets take an extra 1d8 cold damage.\\n   \" + toUni(\"Water Mastery\") + \". You gain the following benefits while you hold Drown:\\n \\u2022 You can speak Aquan fluently.\\n \\u2022 You have resistance to cold damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on a water elemental. Once you have done so, Drown can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Tears of Endless Anguish\") + \". While inside a water node, you can perform a ritual called the Tears of Endless Anguish, using Drown to create a devastation orb of water. Once you perform the ritual, Drown can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + \". Drown makes its wielder covetous. While attuned to the weapon, you gain the following flaw: \\\"I demand and deserve the largest share of the spoils, and I refuse to part with anything that's mine.\\\" In addition, if you are attuned to Drown for 24 consecutive hours, barnacles form on your skin. The barnacles can be removed with a Greater Restoration spell or similar magic, but not while you are attuned to the weapon.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tlanguageProfs : [\"Aquan\"],\r\n\tdmgres : [\"Cold\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Water elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect a water elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"trident\",\r\n\t\tregExpSearch : /drown/i,\r\n\t\tname : \"Drown\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"Thrown, versatile (1d8); +1d8 cold damage\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A steel trident decorated with bronze barnacles along the upper part of its haft, Drown has a sea-green jewel just below the tines and a silver shell at the end of its haft. It floats on the surface if dropped onto water, and it floats in place if it is released underwater. The trident is always cool to the touch, and it is immune to any damage due to exposure to water. Drown contains a spark of Olhydra, the Princess of Evil Water.\",\r\n\t\t\t\"I gain a +1 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the targets take an extra 1d8 cold damage.\",\r\n\t\t\t\"While holding Drown, I can speak Aquan fluently, have resistance to cold damage, I can cast Dominate Monster (save DC 17) on a water elemental once per dawn.\",\r\n\t\t\t\"While inside a water node, I can perform a ritual called the Tears of Endless Anguish, using Drown to create a Devastation Orb of Water. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Drown can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t\"Drown makes me covetous. While attuned to the weapon, I gain the following flaw: \\\"I demand and deserve the largest share of the spoils, and I refuse to part with anything that's mine.\\\" In addition, if I am attuned to Drown for 24 consecutive hours, barnacles form on my skin. The barnacles can be removed with a Greater Restoration spell or similar magic, but not while I am attuned to the weapon.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"ironfang\"] = {\r\n\tname : \"Ironfang\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (war pick)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This war pick has a +2 bonus on to hit and damage and deals +1d8 thunder damage. It allows me to speak Terran, grants me resistance to cold damage, tremorsense 60 ft, allows me to cast Dominate Monster on an earth elemental once per dawn, and to cast Shatter using 1 of its 3 charges and more, see Notes page.\",\r\n\tdescriptionFull : \"A war pick forged from a single piece of iron, Ironfang has a fang-like head inscribed with ancient runes. The pick is heavy in the hand, but when the wielder swings the pick in anger, the weapon seems almost weightless. This weapon is immune to any form of rust, acid, or corrosion\\u2014nothing seems to mark it. Ironfang contains a spark of Ogr\\xE9moch, the Prince of Evil Earth.\\n   You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the target takes an extra 1d8 thunder damage.\\n   \" + toUni(\"Earth Mastery\") + \". You gain the following benefits while you hold Ironfang:\\n \\u2022 You can speak Terran fluently.\\n \\u2022 You have resistance to acid damage.\\n \\u2022 You have tremorsense out to a range of 60 feet.\\n \\u2022 You can sense the presence of precious metals and stones within 60 feet of you, but not their exact location.\\n \\u2022 You can cast Dominate Monster (save DC 17) on an earth elemental. Once you have done so, Ironfang can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Shatter\") + \". Ironfang has 3 charges. You can use your action to expend 1 charge and cast the 2nd-level version of Shatter (DC 17). Ironfang regains 1d3 expended charges daily at dawn.\\n   \" + toUni(\"The Rumbling\") + \". While inside an earth node, you can perform a ritual called the Rumbling, using Ironfang to create a devastation orb of earth. Once you perform the ritual, Ironfang can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + \". Ironfang heightens its wielder's destructive nature. While attuned to the weapon, you gain the following flaw: \\\"I like to break things and cause ruin.\\\"\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tlanguageProfs : [\"Terran\"],\r\n\tdmgres : [\"Acid\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tlimfeaname : \"Ironfang [Rumbling ritual]\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ironfang [Dominate Monster]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Ironfang [Shatter] (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\",\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}, {\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"shatter\"],\r\n\t\tselection : [\"shatter\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Earth elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect an earth elemental.\"\r\n\t\t},\r\n\t\t\"shatter\" : {\r\n\t\t\tdescription : \"10-ft rad all 4d8 Thunder dmg; save halves; nonmagical unattended objects also take dmg\",\r\n\t\t\tchanges : \"Cast as if using a 2nd-level spell slot.\"\r\n\t\t}\r\n\t},\r\n\tvision : [[\"Tremorsense\", \"fixed 60\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"war pick\",\r\n\t\tregExpSearch : /ironfang/i,\r\n\t\tname : \"Ironfang\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"+1d8 thunder damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A war pick forged from a single piece of iron, Ironfang has a fang-like head inscribed with ancient runes. The pick is heavy in the hand, but when the wielder swings the pick in anger, the weapon seems almost weightless. This weapon is immune to any form of rust, acid, or corrosion\\u2014nothing seems to mark it. Ironfang contains a spark of Ogr\\xE9moch, the Prince of Evil Earth.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the target takes an extra 1d8 thunder damage.\",\r\n\t\t\t\"While holding Ironfang, I can speak Terran fluently, have resistance to acid damage, have tremorsense out to a range of 60 ft, can sense the presence of precious metals and stones within 60 ft of me, but not their exact location, and can cast Dominate Monster (save DC 17) on an earth elemental once per dawn.\",\r\n\t\t\t\"Ironfang has 3 charges and regains 1d3 expended charges daily at dawn. I can use your action to expend 1 charge and cast the 2nd-level version of Shatter (DC 17).\",\r\n\t\t\t\"While inside an earth node, I can perform a ritual called the Rumbling, using Ironfang to create a Devastation Orb of Earth. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Ironfang can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Ironfang heightens my destructive nature. While attuned to the weapon, I gain the following flaw: \"I like to break things and cause ruin.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"lost crown of besilmer\"] = {\r\n\tname : \"Lost Crown of Besilmer\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This dwarven battle-helm gives me psychic resistance and adv. on saves against being charmed. It has 3 charges, regaining 1d3 at dawn. As a bonus action, I can use 1 charge to inspire an ally in 60 ft that I can see and that can see and hear me. Once before my next turn ends, it can add a d6 to one check, attack, or save.\",\r\n\tdescriptionFull : \"This dwarven battle-helm consists of a sturdy open-faced steel helmet, decorated with a golden circlet above the brow from which seven small gold spikes project upward. You gain the following benefits while wearing the crown:\\n \\u2022 You have resistance to psychic damage.\\n \\u2022 You have advantage on saving throws against effects that would charm you.\\n \\u2022 You can use a bonus action to inspire one creature you can see that is within 60 feet of you and that can see or hear you. Once before the end of your next turn, the inspired creature can roll a d6 and add the number rolled to one ability check, attack roll, or saving throw it makes. This uses 1 charge from the crown. It has 3 charges, and it regains 1d3 expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \" (inspire)\"]],\r\n\tdmgres : [\"Psychic\"],\r\n\tsavetxt : { adv_vs : [\"charmed\"] }\r\n}\r\nMagicItemsList[\"orcsplitter\"] = {\r\n\tname : \"Orcsplitter\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"G\",\r\n\tprerequisite : \"Requires attunement by a good-aligned dwarf, fighter, or paladin\",\r\n\tdescription : \"This sentient greataxe has a +2 bonus on to hit and damage. If I roll a 20 on an attack vs. an orc with it, the orc must make a DC 17 Con save or be reduced to 0 HP. While I'm not incapacitated, I can't be surprised by orcs, and me and my allies in 30 ft can't be frightened. I can sense orcs within 120 ft. See Notes page.\",\r\n\tdescriptionFull : \"A mighty axe wielded long ago by the dwarf king Torhild Flametongue, Orcsplitter is a battered weapon that appears unremarkable at first glance. Its head is graven with the Dwarvish runes for \\\"orc,\\\" but the runes are depicted with a gap or slash through the markings; the word \\\"orc\\\" is literally split in two.\\n   You gain the following benefits while holding this magic weapon:\\n \\u2022 You gain a +2 bonus to attack and damage rolls made with it.\\n \\u2022 When you roll a 20 on an attack roll with this weapon against an orc, that orc must succeed on a DC 17 Constitution saving throw or drop to 0 hit points.\\n \\u2022 You can't be surprised by orcs while you're not incapacitated. You are also aware when orcs are within 120 feet of you and aren't behind total cover, although you don't know their location.\\n \\u2022 You and any of your friends within 30 feet of you can't be frightened while you're not incapacitated.\\n\\n\" + toUni(\"Sentience\") + \". Orcsplitter is a sentient, lawful good weapon with an Intelligence of 6, a Wisdom of 15, and a Charisma of 10. It can see and hear out to 120 feet and has darkvision. It communicates by transmitting emotions to its wielder, although on rare occasions it uses a limited form of telepathy to bring to the wielder's mind a couplet or stanza of ancient Dwarvish verse.\\n   \" + toUni(\"Personality\") + \". Orcsplitter is grim, taciturn, and inflexible. It knows little more than the desire to face orcs in battle and serve a courageous, just wielder. It disdains cowards and any form of duplicity, deception, or disloyalty. The weapon's purpose is to defend dwarves and to serve as a symbol of dwarven resolve. It hates the traditional foes of dwarves\\u2014giants, goblins, and, most of all, orcs\\u2014and silently urges its possessor to meet such creatures in battle.\",\r\n\tattunement : true,\r\n\tweight : 7,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /orcsplitter/i,\r\n\t\tname : \"Orcsplitter\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"Heavy, two-handed; On 20 vs. Orc: it DC 17 Con save or 0 HP\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { immune : [\"frightened\"] },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t'A mighty axe wielded long ago by the dwarf king Torhild Flametongue, Orcsplitter is a battered weapon that appears unremarkable at first glance. Its head is graven with the Dwarvish runes for \"orc,\" but the runes are depicted with a gap or slash through the markings; the word \"orc\" is literally split in two.',\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with it. When I roll a 20 on an attack roll with this weapon against an orc, that orc must succeed on a DC 17 Constitution saving throw or drop to 0 hit points.\",\r\n\t\t\t\"While I am not incapacitated, I can't be surprised by orcs and I am aware when orcs are within 120 ft of meand aren't behind total cover, although I don't know their location. Also, me and any of my friends within 30 ft of can't be frightened while I am not incapacitated.\",\r\n\t\t\t\"Orcsplitter is a sentient, lawful good weapon with an Intelligence of 6, a Wisdom of 15, and a Charisma of 10. It can see and hear out to 120 feet and has darkvision. It communicates by transmitting emotions to its wielder, although on rare occasions it uses a limited form of telepathy to bring to the wielder's mind a couplet or stanza of ancient Dwarvish verse.\",\r\n\t\t\t\"Orcsplitter is grim, taciturn, and inflexible. It knows little more than the desire to face orcs in battle and serve a courageous, just wielder. It disdains cowards and any form of duplicity, deception, or disloyalty. The weapon's purpose is to defend dwarves and to serve as a symbol of dwarven resolve. It hates the traditional foes of dwarves\\u2014giants, goblins, and, most of all, orcs\\u2014and silently urges its possessor to meet such creatures in battle.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"reszur\"] = {\r\n\tname : \"Reszur\",\r\n\tsource : [[\"PotA\", 157]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this dagger. It doesn't make noise when it hits or cuts something. If I speaks the name \\\"Reszur\\\", which is engraved on its pommel, the blade gives off a faint, cold glow, shedding dim light in a 10-foot radius until I speak the name again.\",\r\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this weapon, which doesn't make noise when it hits or cuts something.\\n   The name \\\"Reszur\\\" is graven on the dagger's pommel. If the wielder speaks the name, the blade gives off a faint, cold glow, shedding dim light in a 10-foot radius until the wielder speaks the name again.\",\r\n\tweight : 1,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /reszur/i,\r\n\t\tname : \"Reszur\",\r\n\t\tsource : [[\"PotA\", 157]],\r\n\t\tdescription : \"Finesse, light, thrown; Doesn't make any noise\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"seeker dart\"] = {\r\n\tname : \"Seeker Dart\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"weapon (dart)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"Once as an action, when I whisper \\\"seek\\\" and hurl this dart, it seeks out a target of my choice within 120 ft that I have seen at least once. If the target isn't within range or there is no clear path to it, the dart's magic is spent. Else, the target must make a DC 16 Dex save or take 1d4 piercing and 3d4 lightning damage.\",\r\n\tdescriptionFull : \"This small dart is decorated with designs like windy spirals that span the length of its shaft.\\n   When you whisper the word \\\"seek\\\" and hurl this dart, it seeks out a target of your choice within 120 feet of you. You must have seen the target before, but you don't need to see it now. If the target isn't within range or if there is no clear path to it, the dart falls to the ground, its magic spent and wasted. Otherwise, elemental winds guide the dart instantly through the air to the target. The dart can pass though openings as narrow as 1 inch wide and can change direction to fly around corners.\\n   When the dart reaches its target, the target must succeed on a DC 16 Dexterity saving throw or take 1d4 piercing damage and 3d4 lightning damage. The dart's magic is then spent, and it becomes an ordinary dart.\",\r\n\tweight : 0.25\r\n}\r\nMagicItemsList[\"storm boomerang\"] = {\r\n\tname : \"Storm Boomerang\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"weapon (javelin)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This ranged weapon has 60/120 ft range, deals 1d4 bludgeoning and 3d4 thunder damage, and its target must make a DC 10 Con save or be stunned until its next turn ends. On a miss, it returns to the thrower's hand. Once it deals thunder damage, it can't do so or stun again until recharged in an air node for 1 hour.\",\r\n\tdescriptionFull : \"This boomerang is a ranged weapon carved from griffon bone and etched with the symbol of elemental air. When thrown, it has a range of 60/120 feet, and any creature that is proficient with the javelin is also proficient with this weapon. On a hit, the boomerang deals 1d4 bludgeoning damage and 3d4 thunder damage, and the target must succeed on a DC 10 Constitution saving throw or be stunned until the end of its next turn. On a miss, the boomerang returns to the thrower's hand.\\n   Once the boomerang deals thunder damage to a target, the weapon loses its ability to deal thunder damage and its ability to stun a target. These properties return after the boomerang spends at least 1 hour inside an elemental air node.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"javelin\",\r\n\t\tname : \"Storm Boomerang\",\r\n\t\tregExpSearch : /^(?=.*storm)(?=.*boomerang).*$/i,\r\n\t\tlist : \"melee\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"60/120 ft\",\r\n\t\tweight : 2,\r\n\t\tdescription : \"Returns on a miss; Once: +3d4 thunder damage, target DC 10 Con save or stunned 1 turn\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\"\r\n}\r\nMagicItemsList[\"tinderstrike\"] = {\r\n\tname : \"Tinderstrike\",\r\n\tsource : [[\"PotA\", 225]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This flint dagger has a +2 bonus on to hit and damage and deals +2d6 fire damage. It allows me to speak Ignan, grants me resistance to fire damage, and allows me to cast Dominate Monster on a fire elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A flint dagger, Tinderstrike is uncommonly sharp, and sparks cascade off its edge whenever it strikes something solid. Its handle is always warm to the touch, and the blade smolders for 1d4 minutes after it is used to deal damage. It contains a spark of Imix, Prince of Evil Fire.\\n   You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the target takes an extra 2d6 fire damage.\\n   \" + toUni(\"Fire Mastery\") + \". You gain the following benefits while you hold Tinderstrike:\\n \\u2022 You can speak Ignan fluently.\\n \\u2022 You have resistance to fire damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on a fire elemental. Once you have done so, Tinderstrike can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Dance of the All-Consuming Fire\") + \". While inside a fire node, you can perform a ritual called the Dance of the All-Consuming Fire, using Tinderstrike to create a devastation orb of fire. Once you perform the ritual, Tinderstrike can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + '. Tinderstrike makes its wielder impatient and rash. While attuned to the weapon, you gain the following flaw: \"I act without thinking and take risks without weighing the consequences.\"',\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tlanguageProfs : [\"Ignan\"],\r\n\tdmgres : [\"Fire\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Fire elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect a fire elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /tinderstrike/i,\r\n\t\tname : \"Tinderstrike\",\r\n\t\tsource : [[\"PotA\", 225]],\r\n\t\tdescription : \"Finesse, light, thrown; +2d6 fire damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A flint dagger, Tinderstrike is uncommonly sharp, and sparks cascade off its edge whenever it strikes something solid. Its handle is always warm to the touch, and the blade smolders for 1d4 minutes after it is used to deal damage. It contains a spark of Imix, Prince of Evil Fire.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the target takes an extra 2d6 fire damage.\",\r\n\t\t\t\"While holding Tinderstrike, I can speak Ignan fluently, have resistance to fire damage, and can cast Dominate Monster (save DC 17) on a fire elemental once per dawn.\",\r\n\t\t\t\"While inside a fire node, I can perform a ritual called the Dance of the All-Consuming Fire, using Tinderstrike to create a Devastation Orb of Fire. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Tinderstrike can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Tinderstrike makes me impatient and rash. While attuned to the weapon, I gain the following flaw: \"I act without thinking and take risks without weighing the consequences.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"weird tank\"] = {\r\n\tname : \"Weird Tank\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, I can open (or close) this tank of water, allowing the water weird within it to act or not. The weird is bound to the tank, follows my telepathic commands, and acts after me in combat. If the weird is killed, a new one can be formed by placing the tank in a water node for 24 hours.\",\r\n\tdescriptionLong : \"As an action, I can open (or close) this tank of water, allowing the water weird within it to act or not. The weird is bound to the tank, follows my telepathic commands, and acts after me in combat. If it is killed, a new one can be formed by placing the tank in a water node for 24 hours. I can close the tank as an action, but I can only close the tank after commanding the weird to retract into it or if it died. The tank has AC 15, 50 HP, vulnerability to bludgeoning damage, and immunity to poison and psychic damage. Reducing the tank to 0 hit points destroys it and the water weird contained within it.\",\r\n\tdescriptionFull : \"A weird tank is a ten-gallon tank of blown glass and sculpted bronze with a backpack-like carrying harness fashioned from tough leather. A water weird is contained within the tank. While wearing the tank, you can use an action to open it, allowing the water weird to emerge. The water weird acts immediately after you in the initiative order, and it is bound to the tank.\\n   You can command the water weird telepathically (no action required) while you wear the tank. You can close the tank as an action only if you have first commanded the water weird to retract into it or if the water weird is dead.\\n   If the water weird is killed, the tank loses its magical containment property until it spends at least 24 hours inside an elemental water node. When the tank is recharged, a new water weird forms inside it.\\n   The tank has AC 15, 50 hit points, vulnerability to bludgeoning damage, and immunity to poison and psychic damage. Reducing the tank to 0 hit points destroys it and the water weird contained within it.\",\r\n\tweight : 120,\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"windvane\"] = {\r\n\tname : \"Windvane\",\r\n\tsource : [[\"PotA\", 225]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This spear with the finesse property has a +2 bonus on to hit and damage and deals +1d6 lightning damage. It allows me to speak Auran, grants me resistance to lightning damage, and allows me to cast Dominate Monster on an air elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A silver spear, Windvane has dark sapphires on the filigreed surface of its polished head. Held by its shining haft, the weapon feels insubstantial, as if clutching a cool, gently flowing breeze. The spear contains a spark of Yan-C-Bin, the Prince of Evil Air.\\n   You have a +2 bonus to attack and damage rolls made with this magic weapon, which has the finesse weapon property. When you hit with it, the target takes an extra 1d6 lightning damage.\\n   \" + toUni(\"Air Mastery\") + \". You gain the following benefits while you hold Windvane:\\n \\u2022 You can speak Auran fluently.\\n \\u2022 You have resistance to lightning damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on an air elemental. Once you have done so, Windvane can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Song of the Four Winds\") + \". While inside an air node, you can perform a ritual called the Song of the Four Winds, using Windvane to create a devastation orb of air. Once you perform the ritual, Windvane can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + '. Windvane makes its wielder mercurial and unreliable. While attuned to the weapon, you gain the following flaw: \"I break my vows and plans. Duty and honor mean nothing to me.\"',\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tlanguageProfs : [\"Auran\"],\r\n\tdmgres : [\"Lightning\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Air elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect an air elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"spear\",\r\n\t\tregExpSearch : /windvane/i,\r\n\t\tname : \"Windvane\",\r\n\t\tsource : [[\"PotA\", 225]],\r\n\t\tdescription : \"Finesse, thrown, versatile (1d6); +1d6 lightning damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A silver spear, Windvane has dark sapphires on the filigreed surface of its polished head. Held by its shining haft, the weapon feels insubstantial, as if clutching a cool, gently flowing breeze. The spear contains a spark of Yan-C-Bin, the Prince of Evil Air.\",\r\n\t\t\t\"I have a +2 bonus to attack and damage rolls made with this magic weapon, which has the finesse weapon property. When I hit with it, the target takes an extra 1d6 lightning damage.\",\r\n\t\t\t\"While holding Windvane, I can speak Auran fluently, have resistance to lightning damage, and can cast Dominate Monster (save DC 17) on an air elemental once per dawn.\",\r\n\t\t\t\"While inside an air node, I can perform a ritual called the Song of the Four Winds, using Windvane to create a Devastation Orb of Air. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Windvane can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Windvane makes me mercurial and unreliable. While attuned to the weapon, I gain the following flaw: \"I break my vows and plans. Duty and honor mean nothing to me.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"wingwear\"] = {\r\n\tname : \"Wingwear\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"This snug uniform with leathery flaps has 3 charges, regaining all when placed in an air not for 1 hour. As a bonus action, I can expend 1 charge to gain a flying speed of 30 ft until I land or have 0 altitude. At the end of each of my turns, my altitude drops by 5 ft and I must move at least 30 ft horizontally or I fall.\",\r\n\tdescriptionFull : \"This snug uniform has symbols of air stitched into it and leathery flaps that stretch along the arms, waist, and legs to create wings for gliding. A suit of wingwear has 3 charges. While you wear the suit, you can use a bonus action and expend 1 charge to gain a flying speed of 30 feet until you land. At the end of each of your turns, your altitude drops by 5 feet. Your altitude drops instantly to 0 feet at the end of your turn if you didn't fly at least 30 feet horizontally on that turn. When your altitude drops to 0 feet, you land (or fall), and you must expend another charge to use the suit again.\\n   The suit regains all of its expended charges after spending at least 1 hour in an elemental air node.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\n// pub_20150415_AL-EE.js\r\n// This file adds the optional backgrounds from the Adventurers League season 2 (Elemental Evil) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"AL:EE\"]={\r\n\tname : \"Elemental Evil Backgrounds [Mulmaster]\",\r\n\tabbreviation : \"AL:EE\",\r\n\tgroup : \"Adventurers League\",\r\n\turl : \"https://www.dropbox.com/s/ljtrwzmkoijb02o/Mulmaster-Bonds-and-Backgrounds.pdf?dl=1\", // used to be https://dndadventurersleague.org/wp-content/uploads/2015/04/Mulmaster-Bonds-and-Backgrounds.pdf\r\n\tdate : \"2015/04/15\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"caravan specialist\"] = {\r\n\tregExpSearch : /^(?=.*caravan)(?=.*specialist).*$/i,\r\n\tname : \"Caravan Specialist\",\r\n\tsource : [[\"AL:EE\", 2], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Two-person tent\", \"\", 20],\r\n\t\t[\"Regional map\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Wagonmaster\",\r\n\ttrait : [\r\n\t\t\"Any group is only as strong as its weakest link. Everyone has to pull their own weight.\",\r\n\t\t\"There's always someone out there trying to take what I've got. Always be vigilant.\",\r\n\t\t\"Anything can be learned if you have the right teacher. Most folks just need a chance.\",\r\n\t\t\"Early to bed and early to rise; this much at least is under my control.\",\r\n\t\t\"You can listen to me or don't and wish you had. Everyone ends up on one side of that fence.\",\r\n\t\t\"Eventually my hard work will be rewarded. Maybe that time has finally come.\",\r\n\t\t\"A strong ox or horse is more reliable than most people I've met.\",\r\n\t\t\"I never had time for books, but wish I had. I admire folks who have taken the time to learn.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Service\",\r\n\t\t\t\"Service: Using my talents to help others is the best way of helping myself. (Good)\"\r\n\t\t],\r\n\t\t[\"Selfish\",\r\n\t\t\t\"Selfish: What people don't know WILL hurt them, but why is that my problem? (Evil)\"\r\n\t\t],\r\n\t\t[\"Wanderer\",\r\n\t\t\t\"Wanderer: I go where the road takes me. Sometimes that's a good thing… (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Fittest\",\r\n\t\t\t\"Fittest: On the open road, the law of nature wins. Victims are the unprepared. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Focused\",\r\n\t\t\t\"Focused: I simply have a job to do, and I'm going to do it. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Motivated\",\r\n\t\t\t\"Motivated: There's a reason I'm good at what I do, I pay attention to the details. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My brother has a farm In Elmwood and I've helped him and his neigbors move their goods to Mulmaster and other surrounding towns. Those are good people.\",\r\n\t\t\"A caravan I lead was attacked by bandits and many innocents died. I swear that I will avenge them by killing any bandits I encounter.\",\r\n\t\t\"The Soldiery are mostly good guys who understand the importance of protecting the roads. The City Watch is who you have to look out for. If they are inspecting your goods, get ready to pay a fine.\",\r\n\t\t\"The new commander of Southroad Tower, Capt. Holke, understands the importance of safe roads. He's hired me for several jobs and I'm grateful.\",\r\n\t\t\"There's always a road I haven't traveled before. I'm always looking for new places to explore.\",\r\n\t\t\"Wealth and power mean little without the freedom to go where and when you want.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have trouble trusting people I've just met.\",\r\n\t\t\"I enjoy the open road. Underground and tight spaces make me very nervous.\",\r\n\t\t\"I expect others to heed my orders and have little respect or sympathy if they don't.\",\r\n\t\t\"I am very prideful and have trouble admitting when I'm wrong.\",\r\n\t\t\"Once I decide on a course of action, I do not waver.\",\r\n\t\t\"I like to explore, and my curiosity will sometimes get me into trouble.\"\r\n\t],\r\n\ttoolProfs : [\"Vehicles (land)\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"earthspur miner\"] = {\r\n\tregExpSearch : /^(?=.*earthspur)(?=.*miner).*$/i,\r\n\tname : \"Earthspur Miner\",\r\n\tsource : [[\"AL:EE\", 3], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Shovel or miner's pick\", \"\", 5],\r\n\t\t[\"Block and tackle\", \"\", 5],\r\n\t\t[\"Climber's kit\", \"\", 12]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Deep Miner\",\r\n\ttrait : [\r\n\t\t\"Nothing bothers me for long.\",\r\n\t\t\"I hate the horrors of the Underdark with a passion. They took my friends and family and almost got me.\",\r\n\t\t\"Anything worth doing takes time and patience. I have learned to plan and wait for the things I want and to be patient to achieve my goals.\",\r\n\t\t\"I can party with everyone. Whether with dwarves, or goliaths, or deep gnomes, I can find a way to have a good time.\",\r\n\t\t\"I'd rather be mining. This is okay; mining is better.\",\r\n\t\t\"I think that I will stumble upon great riches if I just keep looking.\",\r\n\t\t\"People who don't work with their hands and who live in houses are soft and weak.\",\r\n\t\t\"I wish I were more educated. I look up to people who are.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Generosity\",\r\n\t\t\t\"Generosity: The riches of the earth are to be shared by all. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: Gems and precious metals, I want them all for myself. (Evil)\"\r\n\t\t],\r\n\t\t[\"Mooch\",\r\n\t\t\t\"Mooch: Property, schmoperty. If I need it, I take and use it. If I don't, I leave it for someone else. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Boundaries\",\r\n\t\t\t\"Boundaries: Everything and everyone has its prescribed place; I respect that and expect others to do the same. (Lawful) \"\r\n\t\t],\r\n\t\t[\"Let it Be\",\r\n\t\t\t\"Let it Be: I don't meddle in the affairs of others if I can avoid it. They're none of my business. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Materialist\",\r\n\t\t\t\"Materialist: I want riches to improve my life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The people of the Earthspur mines are my family. I will do anything to protect them.\",\r\n\t\t\"A deep gnome saved my life when I was injured and alone. I owe his people a great debt.\",\r\n\t\t\"I must behold and preserve the natural beauty of places below the earth.\",\r\n\t\t\"Gems hold a special fascination for me, more than gold, land, magic, or power.\",\r\n\t\t\"I want to explore new depths and scale new heights.\",\r\n\t\t\"Someday I'm going to find the mother lode, then I'll spend the rest of my life in luxury.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'm uncomfortable spending time under the open sky. I'd rather be indoors or underground.\",\r\n\t\t\"I'm not used to being around other people much and sometimes get grouchy about it.\",\r\n\t\t\"Good tools are more reliable than people. In a cave in, I would save a sturdy pick before a stranger.\",\r\n\t\t\"I jealously guard my secrets, because I think others will take advantage of me if they learn what I know.\",\r\n\t\t\"I am obsessed with getting rich. I always have a scheme brewing for making it big.\",\r\n\t\t\"I'm afraid of the dark.\"\r\n\t],\r\n\tlanguageProfs : [\"Dwarvish\", \"Undercommon\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"harborfolk\"] = {\r\n\tregExpSearch : /harborfolk/i,\r\n\tname : \"Harborfolk\",\r\n\tsource : [[\"AL:EE\", 4], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Sleight of Hand\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Fishing tackle\", \"\", 4],\r\n\t\t[\"Set of dice, playing cards, or three-dragon ante\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Rowboat\", \"\", 100]\r\n\t],\r\n\tfeature : \"Harborfolk\",\r\n\ttrait : [\r\n\t\t\"I am curious. I want to know why things are the way they are and why people do the things that they do.\",\r\n\t\t\"I can't sing, but that never stops me from doing it, loudly. Everyone loves a good sea chanty!\",\r\n\t\t\"I think the High Blade is doing a terrific job, don't you?\",\r\n\t\t\"I'm very excited that the House Built on Gold is being restored. I am a zealous worshipper of Waukeen.\",\r\n\t\t\"I am quite superstitious. I see portents in everyday occurances.\",\r\n\t\t\"I resent the rich and enjoy thwarting their plans and spoiling their fun in small ways.\",\r\n\t\t\"I have a sea story to fit every occasion.\",\r\n\t\t\"I'm a fisher, but I secretly detest eating fish. I will do anything to avoid it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Calm\",\r\n\t\t\t\"Calm: For all things, there is a tide. I set sail when it is right, and mend my nets when it is not. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Windblown\",\r\n\t\t\t\"Windblown: I go where the winds blow. No man or woman tells me where or when to sail. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Aspiring\",\r\n\t\t\t\"Aspiring: I will gain the favor of a Zor or Zora patron, maybe even one of the Blades! (Any)\"\r\n\t\t],\r\n\t\t[\"Salty\",\r\n\t\t\t\"Salty: I want people to look to me as an expert on plying Mulmaster Harbor. (Any)\"\r\n\t\t],\r\n\t\t[\"Selfless\",\r\n\t\t\t\"Selfless: We are all children of the sea. I help everyone in peril afloat and ashore. (Good)\"\r\n\t\t],\r\n\t\t[\"Let them Drown\",\r\n\t\t\t\"Let them Drown: I refuse to risk my hide to help others. They wouldn't help me if roles were reversed. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I once lost everything but my rowboat. I'll do anything to protect it.\",\r\n\t\t\"My brother was in the Soldiery, but he was killed. I really look up to the men and women who serve.\",\r\n\t\t\"The Cloaks killed my friend for spellcasting. I'll get them back somehow, someday.\",\r\n\t\t\"The High House of Hurting helped me when I was hurt and asked nothing in return. I owe them my life.\",\r\n\t\t\"I was robbed in the Zhent ghetto once. It will not happen again.\",\r\n\t\t\"I would do anything to protect the other harborfolk. They are my family.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I drink too much, which causes me to miss the tide.\",\r\n\t\t\"I killed a drunk member of the City Watch in a brawl. I am terrified that they might find out.\",\r\n\t\t\"I oversell myself and make promises I can't keep when I want to impress someone.\",\r\n\t\t\"Book learning is a waste of time. I have no patience for people who don't speak from experience.\",\r\n\t\t\"I almost always cheat. I can't help myself.\",\r\n\t\t\"I am a secret informant for the Hawks. I send them reports about everything I see and hear, even what my friends and allies are up to.\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (water)\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"mulmaster aristocrat\"] = {\r\n\tregExpSearch : /^(?=.*mulmaster)(?=.*aristocrat).*$/i,\r\n\tname : \"Mulmaster Aristocrat\",\r\n\tsource : [[\"AL:EE\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Performance\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Artisan's tools or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Highborn\",\r\n\ttrait : [\r\n\t\t\"My ambitions are boundless. I will be a Zor or Zora one day!\",\r\n\t\t\"I must alwayss look my best.\",\r\n\t\t\"Beauty is everywhere. I can find it in even the homliest person and the most horrible tragedy.\",\r\n\t\t\"Décorum must be preserved at all costs.\",\r\n\t\t\"I will not admit I am wrong if I can avoid it.\",\r\n\t\t\"I am extremely well-educated and frequently remind others of that fact.\",\r\n\t\t\"I take what I can today, because I do not know what tomorrow holds.\",\r\n\t\t\"My life is full of dance, song, drink, and love.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Generous\",\r\n\t\t\t\"Generous: I have a responsibility to help and protect the less fortunate. (Good)\"\r\n\t\t],\r\n\t\t[\"Loyal\",\r\n\t\t\t\"Loyal: My word, once given, is my bond. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Callous\",\r\n\t\t\t\"Callous: I am unconcerned with any negative effects my actions may have on the lives and fortunes of others. (Evil)\"\r\n\t\t],\r\n\t\t[\"Impulsive\",\r\n\t\t\t\"Impulsive: I follow my heart. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Ignorant\",\r\n\t\t\t\"Ignorant: Explanations bore me. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Isolationist\",\r\n\t\t\t\"Isolationist: I am concerned with the fortunes of my friends and family. Others must see to themselves. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have dedicated my wealth and my talents to the service of one of the city's many temples.\",\r\n\t\t\"My family and I are loyal supporters of High Blade Jaseen Drakehorn. Our fortunes are inexorably tied to hers. I would do anything to support her.\",\r\n\t\t\"Like many families who were close to High Blade Selfaril Uoumdolphin, mine has suffered greatly since his fall. We honor his memory in secret.\",\r\n\t\t\"My family plotted with Rassendyll Uoumdolphin brother usurped brother as High Blade. Betrayal is the quickest route to power.\",\r\n\t\t\"Wealth and power are nothing. Fulfillment can only be found in artistic expression.\",\r\n\t\t\"It's not how you feel, who you know, or what you can do - it's how you look, and I look fabulous.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have difficulty caring about anyone or anything other than myself.\",\r\n\t\t\"Having grown up with wealth, I am careless with my finances. I overspend and am overly generous.\",\r\n\t\t\"The ends (my advancement) justify any means.\",\r\n\t\t\"I must have what I want and will brook no delay.\",\r\n\t\t\"My family has lost everything. I must keep up appearances, lest we become a laughingstock.\",\r\n\t\t\"I have no artistic sense. I hide that fact behind extreme opinons and have become a trendsetter.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], [\"Musical instrument\", 1]],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"phlan refugee\"] = {\r\n\tregExpSearch : /^(?=.*phlan)(?=.*refugee).*$/i,\r\n\tname : \"Phlan Refugee\",\r\n\tsource : [[\"AL:EE\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Athletics\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Token of the life I once knew\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Phlan Survivor\",\r\n\ttrait : [\r\n\t\t\"I may have lost everything I worked for most of my life, but there's work to be done, no time to linger on the past.\",\r\n\t\t\"I worked hard to get where I am and I refuse to let a little hardship stop me from succeeding.\",\r\n\t\t\"I protect those around me, you never know when one of them will be useful.\",\r\n\t\t\"I have always gotten ahead by giving, why change now?\",\r\n\t\t\"I prepare for everything, it paid off in Phlan and it will pay off again.\",\r\n\t\t\"I will reclaim my home, though the path may be long, I will never give up hope.\",\r\n\t\t\"I never cared for personal hygiene, and am amazed that It bothers others.\",\r\n\t\t\"I am always willing to volunteer my services, just as long as don't have to do anything.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Justice\",\r\n\t\t\t\"Justice: Corruption brought Phlan down, I will not tolerate that any longer. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Acceptance\",\r\n\t\t\t\"Acceptance: Stability is a myth, to think you can control your future is futile. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: I am guided by a higher power and I trust that everything will be right in the end. (Good)\"\r\n\t\t],\r\n\t\t[\"Restraint\",\r\n\t\t\t\"Restraint: I hate those who caused my loss. It is all I can do not to lash out at them. (Any)\"\r\n\t\t],\r\n\t\t[\"Strength\",\r\n\t\t\t\"Strength: As shown in Phlan, the strong survive. If you are weak you deserve what you get (Evil)\"\r\n\t\t],\r\n\t\t[\"Openness\",\r\n\t\t\t\"Openness: I am always willing to share my life story with anyone who will listen. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have the chance at a new life and this time I am going to do things right.\",\r\n\t\t\"The Lord Regent brought this suffering upon his people. I will see him brought to justice.\",\r\n\t\t\"I await the day I will be able to return to my home in Phlan.\",\r\n\t\t\"I will never forget the debt owed to Glevith of the Welcomers. I will be ready to repay that debt when called upon.\",\r\n\t\t\"There was someone I cared about in Phlan, I will find out what happened to them.\",\r\n\t\t\"Some say my life wasn't worth saving, I will prove them wrong.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I used the lives of children to facilitate my escape from Phlan.\",\r\n\t\t\"I am a sucker for the underdog, and always bet on the loosing team.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"I will borrow money from friends with no intention to repay it.\",\r\n\t\t\"I am unable to keep secrets. A secret is just an untold story.\",\r\n\t\t\"When something goes wrong, it's never my fault.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"wagonmaster\"] = {\r\n\tdescription : \"I'm used to being in charge. My reputation has me on a short list for critical jobs, allows me to attract two more loyal workers for caravaning, and causes others to look to me for direction. I can identify the most defensible locations for camping. I have a great memory for maps and geography. While travelling, I can always find my cardinal directions.\",\r\n\tsource : [[\"AL:EE\", 2], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"deep miner\"] = {\r\n\tdescription : \"I am used to navigating the deep places of the earth. I never get lost in caves or mines if I have either seen an accurate map of them or have been through them before. Furthermore, I am able to scrounge fresh water and food for myself and as many as five other people each day if I am in a mine or natural caves.\",\r\n\tsource : [[\"AL:EE\", 3], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"harborfolk\"] = {\r\n\tdescription : \"I grew up on the docks and waters of Mulmaster Harbor. The harborfolk remember me and still treat me as one of them. They welcome me and my companions. While they might charge me for it, they'll always offer what food and shelter they have; they'll even hide me if the City Watch is after me (but not if the Hawks are).\",\r\n\tsource : [[\"AL:EE\", 4], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"highborn\"] = {\r\n\tdescription : \"Mulmaster is run by and for its aristoracy. Every other class of citizen in the city defers to me, and even the priesthood, Soldiery, Hawks, and Cloaks treat me with deference. Other aristocrats and nobles accept me in their circles and likely know me or of me. My connections can get me the ear of a Zor or Zora under the right circumstances.\",\r\n\tsource : [[\"AL:EE\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"phlan survivor\"] = {\r\n\tdescription : \"Whatever my prior standing I'm now one of the many refugees that came to Mulmaster. I'm able to find refuge with others from Phlan and those who sympathize with my plight. Within Mulmaster this means that I can find a place to sleep, recover, and hide from the watch with either other refugees from Phlan, or the Zhents within the ghettos.\",\r\n\tsource : [[\"AL:EE\", 6], [\"ALbackground\", 0]]\r\n};\r\n\n// pub_20150416_EE.js\r\n// This file adds all the player-material from the Elemental Evil Player's Companion (November 2017, after the XGtE update) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.E={\r\n\tname : \"Elemental Evil Player's Companion\", // November 2017 version\r\n\tabbreviation : \"EE\",\r\n\tabbreviationSpellsheet : \"EE\",\r\n\tgroup : \"Primary Sources\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dropbox.com/scl/fi/h3rt7296724s6p8xgr1w2/Elemental-Evil-Players-Companion-v2017.pdf?rlkey=99p2n6gpk0qcz9r3hdjka0b9y&dl=1\", // used to be https://media.dnd.wizards.com/EE-Players-Companion_0_0.pdf\r\n\tdate : \"2015/04/16\"\r\n};\r\n\r\n// Races\r\nRaceList[\"aarakocra\"] = {\r\n\tregExpSearch : /aarakocra/i,\r\n\tname : \"Aarakocra\",\r\n\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\tplural : \"Aarakocra\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 },\r\n\t\tfly : { spd : 50, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Aarakocra\", \"Auran\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /talon/i,\r\n\t\tname : \"Talons\",\r\n\t\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach maturity by age 3 and live about 30 years\",\r\n\theight : \" are about 5 feet tall\",\r\n\tweight : \" weigh between 80 and 100 lb\",\r\n\theightMetric : \" are about 1,5 metres tall\",\r\n\tweightMetric : \" weigh between 36 and 45 kg\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Aarakocra (+2 Dexterity, +1 Wisdom)\\n\\nFlight: I have a flying speed of 50 feet. To use this speed, I can't be wearing medium or heavy armor.\\n\\nTalons: My unarmed strikes deal 1d4 slashing damage on a hit.\"\r\n};\r\nRaceList[\"deep gnome\"] = {\r\n\tregExpSearch : /^((?=.*svirfneblin)|((?=.*\\bgnomes?\\b)(?=.*\\b(underdarks?|deep|depths?)\\b))).*$/i,\r\n\tname : \"Svirfneblin\",\r\n\tsortname : \"Gnome, Deep (Svirfneblin)\",\r\n\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 113]],\r\n\tplural : \"Svirfneblin\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\", \"Undercommon\"],\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" are considered full-grown adults when they reach 25 and live 200 to 250 years\",\r\n\theight : \" stand between 3 and 3 1/2 feet tall (2'9\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 90 lb (80 + 2d4 \\xD7 1d4 lb)\",\r\n\theightMetric : \" stand between 90 and 105 cm tall (85 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 50 kg (35 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 2, 0, 0],\r\n\ttrait : \"Svirfneblin (+1 Dexterity, +2 Intelligence)\\n\\nStone Camouflage:\\n   I have advantage on Dexterity (stealth) checks to hide in rocky terrain.\"\r\n};\r\nRaceList[\"air genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bairs?\\b).*$/i,\r\n\tname : \"Air genasi\",\r\n\tsortname : \"Genasi, Air\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Air genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 2, 0, 0, 0],\r\n\ttrait : \"Air Genasi (+1 Dexterity, +2 Constitution)\\n\\nUnending Breath: I can hold my breath indefinitely while I am not incapacitated.\\n\\nMingle with the Wind: I can cast the Levitate spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\tspellcastingAbility : 3,\r\n\tfeatures : {\r\n\t\t\"levitate\" : {\r\n\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\tselection : [\"levitate\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Levitate once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"earth genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bearths?\\b).*$/i,\r\n\tname : \"Earth genasi\",\r\n\tsortname : \"Genasi, Earth\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Earth genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Earth Genasi (+1 Strength, +2 Constitution)\" + (typePF ? \"\\n\" : \"\") + \"\\nEarth Walk: I can move across difficult terrain made of earth or stone without expending extra movement.\" + (typePF ? \"\\n\" : \"\") + \"\\nMerge with Stone: I can cast the Pass without Trace spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\tspellcastingAbility : 3,\r\n\tfeatures : {\r\n\t\t\"pass without trace\" : {\r\n\t\t\tname : \"Merge with Stone\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"pass without trace\"],\r\n\t\t\t\tselection : [\"pass without trace\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Pass without Trace once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"fire genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bfires?\\b).*$/i,\r\n\tname : \"Fire genasi\",\r\n\tsortname : \"Genasi, Fire\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Fire genasi\",\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\ttrait : \"Fire Genasi (+2 Constitution, +1 Intelligence)\\n\\nReach to the Blaze:\\n   I know the Produce Flame cantrip.\\n   Once I reach 3rd level, I can cast the Burning Hands spell once as a 1st-level spell.\\n   I regain the ability to cast it this way when I finish a long rest.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Reach to the Blaze (level 1)\",\r\n\t\tspells : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"burning hands\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"water genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bwaters?\\b).*$/i,\r\n\tname : \"Water genasi\",\r\n\tsortname : \"Genasi, Water\",\r\n\tsource : [[\"E\", 10], [\"W\", 172]],\r\n\tplural : \"Water genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tdmgres : [\"Acid\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\ttrait : \"Water Genasi (+2 Constitution, +1 Wisdom)\\nAmphibious: I can breathe air and water.\\nSwim: I have a swimming speed of 30 feet.\\nCall to the Wave: I know the Shape Water cantrip.\\n   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.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Call to the Wave (level 1)\",\r\n\t\tspells : [\"shape water\"],\r\n\t\tselection : [\"shape water\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"create or destroy water\" : {\r\n\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\t\tspells : [\"create or destroy water\"],\r\n\t\t\t\tselection : [\"create or destroy water\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"goliath\"] = { // Added cold resistance in accordance with the VGtM 2020 errata https://media.wizards.com/2020/dnd/downloads/VGtM-Errata.pdf\r\n\tregExpSearch : /goliath/i,\r\n\tname : \"Goliath\",\r\n\tsource : [[\"E\", 11], [\"V\", 108], [\"W\", 175]],\r\n\tplural : \"Goliaths\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Giant\"],\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Athletics\"],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" are between 6 and a half and 8 feet tall (6'2\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 280 and 340 lb (200 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 2 and 2,4 metres tall (190 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 100 and 155 kg (90 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"stone's endurance\" : {\r\n\t\t\tname : \"Stone's Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Goliath (+2 Strength, +1 Constitution)\"+\r\n\t\"\\n \\u2022 Stone's Endurance: Once per short rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\"+\r\n\t(typePF ? \"\\n \\u2022 Natural Athlete: I have proficiency in the Athletics skill.\" : \"\"),\r\n\tcarryingCapacity : 2\r\n};\r\n\r\n// Feat\r\nFeatsList[\"svirfneblin magic\"] = {\r\n\tname : \"Svirfneblin Magic\",\r\n\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 114]],\r\n\tprerequisite : \"Being a Svirfneblin (Deep Gnome)\",\r\n\tprereqeval : function(v) { return CurrentRace.known === 'deep gnome'; },\r\n\tdescriptionFull : \"You have inherited the innate spellcasting ability of your ancestors. This ability allows you to cast Nondetection on yourself at will, without needing a material component. You can also cast each of the following spells once with this ability: Blindness/Deafness, Blur, and Disguise Self. You regain the ability to cast these spells when you finish a long rest.\\n   Intelligence is your spellcasting ability for these spells, and you cast them at their lowest possible levels.\",\r\n\tdescription : \"I can cast Nondetection on myself at will, without a material component. I can also cast the spells Blindness/Deafness, Blur, and Disguise Self once each. I regain the ability to cast these spells when I finish a long rest. Intelligence is my spellcasting ability for these spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"at will (self only)\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"nondetection\"],\r\n\t\tselection : [\"nondetection\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"1\\xD7 long rest (self only)\",\r\n\t\tspells : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\tselection : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\tfirstCol : 'oncelr',\r\n\t\ttimes : 3\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"nondetection\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"I am hidden from all divination magic\",\r\n\t\t\tchanges : \"Using Svirfneblin Magic, I can cast Nondetection without a material component, but only on myself.\"\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Spells\r\nSpellsList[\"abi-dalzim's horrid wilting\"] = {\r\n\tname : \"Abi-Dalzim's Horrid Wilting\",\r\n\tnameShort : \"Abi-D's Horrid Wilting\",\r\n\tnameAlt : \"Horrid Wilting\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 8,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of sponge\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft cube all crea 12d8 Necrotic dmg; save halves; plants/water elem. dis. const/undead immune\",\r\n\tdescriptionFull : \"You draw the moisture from every creature in a 30-foot cube centered on a point you choose within range. Each creature in that area must make a Constitution saving throw. Constructs and undead aren't affected, and plants and water elementals make this saving throw with disadvantage. A creature takes 12d8 necrotic damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"Nonmagical plants in the area that aren't creatures, such as trees and shrubs, wither and die instantly.\"\r\n};\r\nSpellsList[\"absorb elements\"] = {\r\n\tname : \"Absorb Elements\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take acid, cold, fire, lightning, or thunder damage\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"Acid, Cold, Fire, Lightning, or Thunder resistance till next turn start; first melee hit +1d6+1d6/SL dmg\",\r\n\tdescriptionFull : \"The spell captures some of the incoming energy, lessening its effect on you and storing it for your next melee attack. You have resistance to the triggering damage type until the start of your next turn. Also, the first time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the extra damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"aganazzar's scorcher\"] = {\r\n\tname : \"Aganazzar's Scorcher\",\r\n\tnameAlt : \"Scorch\", //as per the Spell Compendium's (DnD 3.5e) alternative name\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A red dragon's scale\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft long 5-ft wide line all creatures 3d8+1d8/SL Fire dmg; save halves\",\r\n\tdescriptionFull : \"A line of roaring flame 30 feet long and 5 feet wide emanates from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 3d8 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"beast bond\"] = {\r\n\tname : \"Beast Bond\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of fur wrapped in a cloth\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Telepathic link with 1 beast Int<4 while in line of sight; beast has adv. on attacks vs. crea I can see\",\r\n\tdescriptionFull : \"You establish a telepathic link with one beast you touch that is friendly to you or charmed by you. The spell fails if the beast's Intelligence is 4 or higher. Until the spell ends, the link is active while you and the beast are within line of sight of each other. Through the link, the beast can understand your telepathic messages to it, and it can telepathically communicate simple emotions and concepts back to you. While the link is active, the beast gains advantage on attack rolls against any creature within 5 feet of you that you can see.\"\r\n};\r\nSpellsList[\"bones of the earth\"] = {\r\n\tname : \"Bones of the Earth\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lifted, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionShorter : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionShorterMetric : \"6+2/SL 1,5-m dia stone lift 9 m; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionFull : \"You cause up to six pillars of stone to burst from places on the ground that you can see within range. Each pillar is a cylinder that has a diameter of 5 feet and a height of up to 30 feet. The ground where a pillar appears must be wide enough for its diameter, and you can target the ground under a creature if that creature is Medium or smaller. Each pillar has AC 5 and 30 hit points. When reduced to 0 hit points, a pillar crumbles into rubble, which creates an area of difficult terrain with a 10-foot radius that lasts until the rubble is cleared. Each 5-foot-diameter portion of the area requires at least 1 minute to clear by hand.\\n   If a pillar is created under a creature, that creature must succeed on a Dexterity saving throw or be lifted by the pillar. A creature can choose to fail the save.\\n   If a pillar is prevented from reaching its full height because of a ceiling or other obstacle, a creature on the pillar takes 6d6 bludgeoning damage and is restrained, pinched between the pillar and the obstacle. The restrained creature can use an action to make a Strength or Dexterity check (the creature's choice) against the spell's save DC. On a success, the creature is no longer restrained and must either move off the pillar or fall off it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 7th level or higher, you can create two additional pillars for each slot level above 6th.\"\r\n};\r\nSpellsList[\"catapult\"] = {\r\n\tname : \"Catapult\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Send 5+5/SL lb unattended object in 90 ft straight line; if crea hit, save or 3d8+1d8/SL Bludg. dmg\",\r\n\tdescriptionFull : \"Choose one object weighing 1 to 5 pounds within range that isn't being worn or carried. The object flies in a straight line up to 90 feet in a direction you choose before falling to the ground, stopping early if it impacts against a solid surface. If the object would strike a creature, that creature must make a Dexterity saving throw. On a failed save, the object strikes the target and stops moving. When the object strikes something, the object and what it strikes each take 3d8 bludgeoning damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the maximum weight of objects that you can target with this spell increases by 5 pounds, and the damage increases by 1d8, for each slot level above 1st.\"\r\n};\r\nSpellsList[\"control flames\"] = {\r\n\tname : \"Control Flames\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"Nonmagical flame up to 5 cu ft; instant: expand/extinguish, 1h: brighten/dim/color/create shapes\",\r\n\tdescriptionFull : \"You choose nonmagical flame that you can see within range and that fits within a 5-foot cube. You affect it in one of the following ways.\" + \"\\n \\u2022 \" + \"You instantaneously expand the flame 5 feet in one direction, provided that wood or other fuel is present in the new location.\" + \"\\n \\u2022 \" + \"You instantaneously extinguish the flames within the cube.\" + \"\\n \\u2022 \" + \"You double or halve the area of bright light and dim light cast by the flame, change its color, or both. The change lasts for 1 hour.\" + \"\\n \\u2022 \" + \"You cause simple shapes-such as the vague form of a creature, an inanimate object, or a location-to appear within the flames and animate as you like. The shapes last for 1 hour.\" + \"\\n   \" + \"If you cast this spell multiple times, you can have up to three of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"control winds\"] = {\r\n\tname : \"Control Winds\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16], [\"UA:D\", 8]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"100-ft cube of air either gusts, downdraft, or updraft; affects flying/jump/ranged; 1 a change; see B\",\r\n\tdescriptionFull : \"You take control of the air in a 100-foot cube that you can see within range. Choose one of the following effects when you cast the spell. The effect lasts for the spell's duration, unless you use your action on a later turn to switch to a different effect. You can also use your action to temporarily halt the effect or to restart one you've halted.\" + \"\\n   \" + toUni(\"Gusts\") + \": A wind picks up within the cube, continually blowing in a horizontal direction you designate. You choose the intensity of the wind: calm, moderate, or strong. If the wind is moderate or strong, ranged weapon attacks that enter or leave the cube or pass through it have disadvantage on their attack rolls. If the wind is strong, any creature moving against the wind must spend 1 extra foot of movement for each foot moved.\" + \"\\n   \" + toUni(\"Downdraft\") + \": You cause a sustained blast of strong wind to blow downward from the top of the cube. Ranged weapon attacks that pass through the cube or that are made against targets within it have disadvantage on their attack rolls. A creature must make a Strength saving throw if it flies into the cube for the first time on a turn or starts its turn there flying. On a failed save, the creature is knocked prone.\" + \"\\n   \" + toUni(\"Updraft\") + \": You cause a sustained updraft within the cube, rising upward from the cube's bottom side. Creatures that end a fall within the cube take only half damage from the fall. When a creature in the cube makes a vertical jump, the creature can jump up to 10 feet higher than normal.\"\r\n};\r\nSpellsList[\"create bonfire\"] = {\r\n\tname : \"Create Bonfire\",\r\n\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft cube all crea now/enter/end turn save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\tdescriptionShorter : \"5-ft cube all now/enter/end save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"5-ft cube all crea at casting, entering, or end turn in save or `CD`d8 Fire dmg; ignites flammable\",\r\n\tdescriptionFull : \"You create a bonfire on ground that you can see within range. Until the spell ends, the magic bonfire fills a 5-foot cube. Any creature in the bonfire's space when you cast the spell must succeed on a Dexterity saving throw or take 1d8 fire damage. A creature must also make the saving throw when it moves into the bonfire's space for the first time on a turn or ends its turn there.\" + \"\\n   \" + \"The bonfire ignites flammable objects in its area that aren't being worn or carried.\" + \"\\n   \" + \"The spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\"\r\n};\r\nSpellsList[\"dust devil\"] = {\r\n\tname : \"Dust Devil\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pinch of dust\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft cube; all in 5-ft 1d8+1d8/SL Bludg. dmg and pushed 10 ft away; save halves, no push; see book\",\r\n\tdescriptionFull : \"Choose an unoccupied 5-foot cube of air that you can see within range. An elemental force that resembles a dust devil appears in the cube and lasts for the spell's duration.\" + \"\\n   \" + \"Any creature that ends its turn within 5 feet of the dust devil must make a Strength saving throw. On a failed save, the creature takes 1d8 bludgeoning damage and is pushed 10 feet away from the dust devil. On a successful save, the creature takes half as much damage and isn't pushed.\" + \"\\n   \" + \"As a bonus action, you can move the dust devil up to 30 feet in any direction. If the dust devil moves over sand, dust, loose dirt, or light gravel, it sucks up the material and forms a 10-foot-radius cloud of debris around itself that lasts until the start of your next turn. The cloud heavily obscures its area.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"earthbind\"] = {\r\n\tname : \"Earthbind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 creatures save or fly speed is reduced to 0; airborne creatures safely descend at 60 ft per round\",\r\n\tdescriptionFull : \"Choose one creature you can see within range. Yellow strips of magical energy loop around the creature. The target must succeed on a Strength saving throw, or its flying speed (if any) is reduced to 0 feet for the spell's duration. An airborne creature affected by this spell safely descends at 60 feet per round until it reaches the ground or the spell ends.\"\r\n};\r\nSpellsList[\"earth tremor\"] = {\r\n\tname : \"Earth Tremor\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea in range except me save or 1d6+1d6/SL Bludgeoning dmg and prone; loose ground is dif. ter.\",\r\n\tdescriptionFull : \"You cause a tremor in the ground within range. Each creature other than you in that area must make a Dexterity saving throw. On a failed save, a creature takes 1d6 bludgeoning damage and is knocked prone. If the ground in that area is loose earth or stone, it becomes difficult terrain until cleared, with each 5-foot-diameter portion requiring at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"elemental bane\"] = {\r\n\tname : \"Elemental Bane\",\r\n\tclasses : [\"artificer\", \"druid\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. to it \\u0026 +2d6 to first dmg with it/turn\",\r\n\tdescriptionShorter : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. \\u0026 +2d6 first dmg/turn\",\r\n\tdescriptionFull : \"Choose one creature you can see within range, and choose one of the following damage types - acid, cold, fire, lightning, or thunder. The target must succeed on a Constitution saving throw or be affected by the spell for its duration. The first time each turn the affected target takes damage of the chosen type, the target takes an extra 2d6 damage of that type. Moreover, the target loses any resistance to that damage type until the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\t\tinDescriptionAs : \"first\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"erupting earth\"] = {\r\n\tname : \"Erupting Earth\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A piece of obsidian\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft cube all crea 3d12+1d12/SL Bludgeoning dmg; save halves; area becomes difficult terrain\",\r\n\tdescriptionFull : \"Choose a point you can see on the ground within range. A fountain of churned earth and stone erupts in a 20-foot cube centered on that point. Each creature in that area must make a Dexterity saving throw. A creature takes 3d12 bludgeoning damage on a failed save, or half as much damage on a successful one. Additionally, the ground in that area becomes difficult terrain until cleared. Each 5-foot-square portion of the area requires at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d12 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"flame arrows\"] = {\r\n\tname : \"Flame Arrows\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"12+2/SL ammunition drawn from touched quiver do +1d6 Fire damage on a successful hit\",\r\n\tdescriptionFull : \"You touch a quiver containing arrows or bolts. When a target is hit by a ranged weapon attack using a piece of ammunition drawn from the quiver, the target takes an extra 1d6 fire damage. The spell's magic ends on the piece of ammunition when it hits or misses, and the spell ends when twelve pieces of ammunition have been drawn from the quiver.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of pieces of ammunition you can affect with this spell increases by two for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"frostbite\"] = {\r\n\tname : \"Frostbite\",\r\n\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Cold dmg and dis. on next weapon attack roll; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Cold dmg and dis. on next weapon attack roll\",\r\n\tdescriptionFull : \"You cause numbing frost to form on one creature that you can see within range. The target must make a Constitution saving throw. On a failed save, the target takes 1d6 cold damage, and it has disadvantage on the next weapon attack roll it makes before the end of its next turn.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"gust\"] = {\r\n\tname : \"Gust\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 157], [\"E\", 19], [\"E:RLW\", 50], [\"UA:D\", 6], [\"WGtE\", 107]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Med. or smaller crea save or push 5 ft; or push unattended 5 lb obj 10 ft; or harmless sensory effect\",\r\n\tdescriptionFull : \"You seize the air and compel it to create one of the following effects at a point you can see within range.\" + \"\\n \" + \"\\u2022 One Medium or smaller creature that you choose must succeed on a Strength saving throw or be pushed up to 5 feet away from you.\" + \"\\n \" + \"\\u2022 You create a small blast of air capable of moving one object that is neither held nor carried and that weighs no more than 5 pounds. The object is pushed up to 10 feet away from you. It isn't pushed with enough force to cause damage.\" + \"\\n \" + \"\\u2022 You create a harmless sensory affect using air, such as causing leaves to rustle, wind to slam shutters shut, or your clothing to ripple in a breeze.\"\r\n};\r\nSpellsList[\"ice knife\"] = {\r\n\tname : \"Ice Knife\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 157], [\"E\", 19]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A drop of water or piece of ice\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Ranged atk for 1d10 Piercing dmg; hit/miss 5-ft rad on target all crea save or 2d6+1d6/SL Cold dmg\",\r\n\tdescriptionShorter : \"Ranged atk 1d10 Piercing dmg; on target 5-ft rad all crea save or 2d6+1d6/SL Cold dmg\",\r\n\tdescriptionFull : \"You create a shard of ice and fling it at one creature within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 piercing damage. Hit or miss, the shard then explodes. The target and each creature within 5 feet of it must succeed on a Dexterity saving throw or take 2d6 cold damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the cold damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"immolation\"] = {\r\n\tname : \"Immolation\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 158], [\"E\", 19]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or 8d6 Fire dmg \\u0026 burns for 4d6 Fire dmg/rnd; save each rnd to end; save half, no burning\",\r\n\tdescriptionShorter : \"1 crea save or 8d6 Fire dmg \\u0026 4d6 Fire dmg/rnd; save each rnd to end; save half, no rnds\",\r\n\tdescriptionFull : \"Flames wreathe one creature you can see within range. The target must make a Dexterity saving throw. It takes 8d6 fire damage on a failed save, or half as much damage on a successful one. On a failed save, the target also burns for the spell's duration. The burning target sheds bright light in a 30-foot radius and dim light for an additional 30 feet. At the end of each of its turns, the target repeats the saving throw. It takes 4d6 fire damage on a failed save, and the spell ends on a successful one. These magical flames can't be extinguished by nonmagical means.\" + \"\\n   \" + \"If damage from this spell kills a target, the target is turned to ash.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"investiture of flame\"] = {\r\n\tname : \"Investiture of Flame\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Fire immune; Cold res.; 1d10 Fire dmg in 5 ft; 1 a 15-ft long 5-ft wide all crea 4d8 Fire dmg, save half\",\r\n\tdescriptionShorter : \"Fire im.; Cold res.; 1d10 Fire dmg in 5 ft; 1a 15-ft long 5-ft wide all 4d8 Fire dmg, save half\",\r\n\tdescriptionShorterMetric : \"Fire immune; Cold res.; 1d10 Fire dmg in 1,5 m; 1 a 4,5-m long all 4d8 Fire dmg, save half\",\r\n\tdescriptionFull : \"Flames race across your body, shedding bright light in a 30-foot radius and dim light for an additional 30 feet for the spell's duration. The flames don't harm you. Until the spell ends, you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to fire damage and have resistance to cold damage.\" + \"\\n \" + \"\\u2022 Any creature that moves within 5 feet of you for the first time on a turn or ends its turn there takes 1d10 fire damage.\" + \"\\n \" + \"\\u2022 You can use your action to create a line of fire 15 feet long and 5 feet wide extending from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 4d8 fire damage on a failed save, or half as much damage on a successful one.\"\r\n};\r\nSpellsList[\"investiture of ice\"] = {\r\n\tname : \"Investiture of Ice\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all crea 4d6 Cold dmg, half spd; save half, no spd\",\r\n\tdescriptionShorter : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all 4d6 Cold dmg, half speed; save half\",\r\n\tdescriptionFull : \"Until the spell ends, ice rimes your body, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to cold damage and have resistance to fire damage.\" + \"\\n \" + \"\\u2022 You can move across difficult terrain created by ice or snow without spending extra movement.\" + \"\\n \" + \"\\u2022 The ground in a 10-foot radius around you is icy and is difficult terrain for creatures other than you. The radius moves with you.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cone of freezing wind extending from your outstretched hand in a direction you choose. Each creature in the cone must make a Constitution saving throw. A creature takes 4d6 cold damage on a failed save, or half as much damage on a successful one. A creature that fails its save against this effect has its speed halved until the start of your next turn.\"\r\n};\r\nSpellsList[\"investiture of stone\"] = {\r\n\tname : \"Investiture of Stone\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Nonmagical Bludg/Pierc/Slash resist.; 1 a 15-ft rad all crea save or prone; move through earth/stone\",\r\n\tdescriptionFull : \"Until the spell ends, bits of rock spread across your body, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks.\" + \"\\n \\u2022 \" + \"You can use your action to create a small earthquake on the ground in a 15-foot radius centered on you. Other creatures on that ground must succeed on a Dexterity saving throw or be knocked prone.\" + \"\\n \\u2022 \" + \"You can move across difficult terrain made of earth or stone without spending extra movement. You can move through solid earth or stone as if it was air and without destabilizing it, but you can't end your movement there. If you do so, you are ejected to the nearest unoccupied space, this spell ends, and you are stunned until the end of your next turn.\"\r\n};\r\nSpellsList[\"investiture of wind\"] = {\r\n\tname : \"Investiture of Wind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Rngd wea atks dis. vs. me; fly 60 ft; 1 a 15-ft cube in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\tdescriptionShorter : \"Rngd wea atk dis; fly 60 ft; 1 a 15-ft cu in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\tdescriptionFull : \"Until the spell ends, wind whirls around you, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 Ranged weapon attacks made against you have disadvantage on the attack roll.\" + \"\\n \" + \"\\u2022 You gain a flying speed of 60 feet. If you are still flying when the spell ends, you fall, unless you can somehow prevent it.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cube of swirling wind centered on a point you can see within 60 feet of you. Each creature in that area must make a Constitution saving throw. A creature takes 2d10 bludgeoning damage on a failed save, or half as much damage on a successful one. If a Large or smaller creature fails the save, that creature is also pushed up to 10 feet away from the center of the cube.\"\r\n};\r\nSpellsList[\"maelstrom\"] = {\r\n\tname : \"Maelstrom\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Paper or leaf in the shape of a funnel\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft deep 30-ft rad dif. ter.; all crea starting turn in save or 6d6 Bludg. dmg and pulled 10 ft to center\",\r\n\tdescriptionShorter : \"5-ft deep 30-ft rad dif. ter.; all start turn in save or 6d6 Bludg. dmg \\u0026 pull 10 ft to center\",\r\n\tdescriptionFull : \"A mass of 5-foot-deep water appears and swirls in a 30-foot radius centered on a point you can see within range. The point must be on ground or in a body of water. Until the spell ends, that area is difficult terrain, and any creature that starts its turn there must succeed on a Strength saving throw or take 6d6 bludgeoning damage and be pulled 10 feet toward the center.\"\r\n};\r\nSpellsList[\"magic stone\"] = {\r\n\tname : \"Magic Stone\",\r\n\tclasses : [\"artificer\", \"druid\", \"warlock\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"Imbue 3 pebbles for spell attacks, thrown 60 ft or with sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\tdescriptionShorter : \"Imbue 3 pebbles for spell atk, thrown 60 ft or sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\tdescriptionFull : \"You touch one to three pebbles and imbue them with magic. You or someone else can make a ranged spell attack with one of the pebbles by throwing it or hurling it with a sling. If thrown, it has a range of 60 feet. If someone else attacks with the pebble, that attacker adds your spellcasting ability modifier, not the attacker's, to the attack roll. On a hit, the target takes bludgeoning damage equal to 1d6 + your spellcasting ability modifier. Hit or miss, the spell then ends on the stone.\" + \"\\n   \" + \"If you cast this spell again, the spell ends early on any pebbles still affected by it.\"\r\n};\r\nSpellsList[\"maximilian's earthen grasp\"] = {\r\n\tname : \"Maximilian's Earthen Grasp\",\r\n\tnameShort : \"Max's Earthen Grasp\",\r\n\tnameAlt : \"Earthen Grasp\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A miniature hand sculpted from clay\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Medium hand atks 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a hand moves/atks, releases; see B\",\r\n\tdescriptionShorter : \"Medium hand atk 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a move/atk, release; see B\",\r\n\tdescriptionFull : \"You choose a 5-foot-square unoccupied space on the ground that you can see within range. A Medium hand made from compacted soil rises there and reaches for one creature you can see within 5 feet of it. The target must make a Strength saving throw. On a failed save, the target takes 2d6 bludgeoning damage and is restrained for the spell's duration.\" + \"\\n   \" + \"As an action, you can cause the hand to crush the restrained target, which must make a Strength saving throw. The target takes 2d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"To break out, the restrained target can use its action to make a Strength check against your spell save DC. On a success, the target escapes and is no longer restrained by the hand.\" + \"\\n   \" + \"As an action, you can cause the hand to reach for a different creature or to move to a different unoccupied space within range. The hand releases a restrained target if you do either.\"\r\n};\r\nSpellsList[\"melf's minute meteors\"] = {\r\n\tname : \"Melf's Minute Meteors\",\r\n\tnameAlt : \"Minute Meteors\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Niter, sulfur, and pine tar formed into a bead\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"6+2/SL meteors; at casting/bns a send up to two 120 ft for 5-ft rad all crea 2d6 Fire dmg; save half\",\r\n\tdescriptionShorter : \"6+2/SL meteors; at cast/bns a send up to two 120 ft for 5-ft rad all 2d6 Fire dmg; save half\",\r\n\tdescriptionFull : \"You create six tiny meteors in your space. They float in the air and orbit you for the spell's duration. When you cast the spell-and as a bonus action on each of your turns thereafter-you can expend one or two of the meteors, sending them streaking toward a point or points you choose within 120 feet of you. Once a meteor reaches its destination or impacts against a solid surface, the meteor explodes. Each creature within 5 feet of the point where the meteor explodes must make a Dexterity saving throw. A creature takes 2d6 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of meteors created increases by two for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"mold earth\"] = {\r\n\tname : \"Mold Earth\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 162], [\"E\", 21]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"5 cu ft earth; instant.: excavate; 1h: change to difficult or normal terrain, or change shape and color\",\r\n\tdescriptionFull : \"You choose a portion of dirt or stone that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 If you target an area of loose earth, you can instantaneously excavate it, move it along the ground, and deposit it up to 5 feet away. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause shapes, colors, or both to appear on the dirt or stone, spelling out words, creating images, or shaping patterns. The changes last for 1 hour.\" + \"\\n \" + \"\\u2022 If the dirt or stone you target is on the ground, you cause it to become difficult terrain. Alternatively, you can cause the ground to become normal terrain if it is already difficult terrain. This change lasts for 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"primordial ward\"] = {\r\n\tname : \"Primordial Ward\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Acid, Cold, Fire, Lightning, and Thunder resistance; use rea to gain 1 immunity for 1 rnd, spell ends\",\r\n\tdescriptionFull : \"You have resistance to acid, cold, fire, lightning, and thunder damage for the spell's duration.\" + \"\\n   \" + \"When you take damage of one of those types, you can use your reaction to gain immunity to that type of damage, including against the triggering damage. If you do so, the resistances end, and you have the immunity until the end of your next turn, at which time the spell ends.\"\r\n};\r\nSpellsList[\"pyrotechnics\"] = {\r\n\tname : \"Pyrotechnics\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"5 cu ft nonma. flame extinguish, or 10-ft rad all crea save or blind 1 rnd, or 20-ft rad hvy obsc. 1 min\",\r\n\tdescriptionFull : \"Choose an area of nonmagical flame that you can see and that fits within a 5-foot cube within range. You can extinguish the fire in that area, and you create either fireworks or smoke when you do so.\" + \"\\n   \" + toUni(\"Fireworks\") + \": The target explodes with a dazzling display of colors. Each creature within 10 feet of the target must succeed on a Constitution saving throw or become blinded until the end of your next turn.\" + \"\\n   \" + toUni(\"Smoke\") + \": Thick black smoke spreads out from the target in a 20-foot radius, moving around corners. The area of the smoke is heavily obscured. The smoke persists for 1 minute or until a strong wind disperses it.\"\r\n};\r\nSpellsList[\"shape water\"] = {\r\n\tname : \"Shape Water\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 164], [\"E\", 21], [\"W\", 172]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"5 cu ft water; instant: move/change flow; 1h: simple shapes/change color or opacity/freeze\",\r\n\tdescriptionFull : \"You choose an area of water that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 You instantaneously move or otherwise change the flow of the water as you direct, up to 5 feet in any direction. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause the water to form into simple shapes and animate at your direction. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You change the water's color or opacity. The water must be changed in the same way throughout. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You freeze the water, provided that there are no creatures in it. The water unfreezes in 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"skywrite\"] = {\r\n\tname : \"Skywrite\",\r\n\tclasses : [\"artificer\", \"bard\", \"druid\", \"wizard\"],\r\n\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Sight\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Write up to 10 words with clouds in a part of the sky I can see; strong wind can diperse the clouds\",\r\n\tdescriptionFull : \"You cause up to ten words to form in a part of the sky you can see. The words appear to be made of cloud and remain in place for the spell's duration. The words dissipate when the spell ends. A strong wind can disperse the clouds and end the spell early.\"\r\n};\r\nSpellsList[\"snilloc's snowball swarm\"] = {\r\n\tname : \"Snilloc's Snowball Swarm\",\r\n\tnameAlt : \"Snowball Swarm\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A piece of ice or a small white rock chip\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft radius all creatures 3d6+1d6/SL Cold damage; save halves\",\r\n\tdescriptionFull : \"A flurry of magic snowballs erupts from a point you choose within range. Each creature in a 5-foot-radius sphere centered on that point must make a Dexterity saving throw. A creature takes 3d6 cold damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"storm sphere\"] = {\r\n\tname : \"Storm Sphere\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 166], [\"E\", 22]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad dif. ter., all now/end turn save or 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\tdescriptionShorter : \"20-ft rad dif. ter., all save/turn 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\tdescriptionFull : \"A 20-foot-radius sphere of whirling air springs into existence centered on a point you choose within range. The sphere remains for the spell's duration. Each creature in the sphere when it appears or that ends its turn there must succeed on a Strength saving throw or take 2d6 bludgeoning damage. The sphere's space is difficult terrain.\" + \"\\n   \" + \"Until the spell ends, you can use a bonus action on each of your turns to cause a bolt of lightning to leap from the center of the sphere toward one creature you choose within 60 feet of the center. Make a ranged spell attack. You have advantage on the attack roll if the target is in the sphere. On a hit, the target takes 4d6 lightning damage.\" + \"\\n   \" + \"Creatures within 30 feet of the sphere have disadvantage on Wisdom (Perception) checks made to listen.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases for each of its effects by 1d6 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"thunderclap\"] = {\r\n\tname : \"Thunderclap\",\r\n\tclasses : [\"artificer\", \"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"100-ft rad audible; all crea but me in area save or 1d6 Thunder dmg; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"100-ft rad audible; all crea but me in area save or `CD`d6 Thunder dmg\",\r\n\tdescriptionFull : \"You create a burst of thunderous sound that can be heard up to 100 feet away. Each creature within range, other than you, must succeed on a Constitution saving throw or take 1d6 thunder damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"tidal wave\"] = {\r\n\tname : \"Tidal Wave\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of water\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft x 10-ft, 10-ft high all crea 4d8 Bludg. dmg and prone; save halves not prone; extinguish flames\",\r\n\tdescriptionFull : \"You conjure up a wave of water that crashes down on an area within range. The area can be up to 30 feet long, up to 10 feet wide, and up to 10 feet tall. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 4d8 bludgeoning damage and is knocked prone. On a successful save, a creature takes half as much damage and isn't knocked prone. The water then spreads out across the ground in all directions, extinguishing unprotected flames in its area and within 30 feet of it, and then it vanishes.\"\r\n};\r\nSpellsList[\"transmute rock\"] = {\r\n\tname : \"Transmute Rock\",\r\n\tclasses : [\"artificer\", \"druid\", \"wizard\"],\r\n\tsource : [[\"X\", 169], [\"E\", 22]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Clay and water\",\r\n\tduration : \"Until dispelled\",\r\n\tdescription : \"40 cu ft stone to mud or mud to stone; mud and stone restrains; mud from ceiling falls; see book\",\r\n\tdescriptionFull : \"You choose an area of stone or mud that you can see that fits within a 40-foot cube and is within range, and choose one of the following effects.\" + \"\\n   \" + toUni(\"Transmute Rock to Mud\") + \": Nonmagical rock of any sort in the area becomes an equal volume of thick, flowing mud that remains for the spell's duration.\" + \"\\n   \" + \"The ground in the spell's area becomes muddy enough that creatures can sink into it. Each foot that a creature moves through the mud costs 4 feet of movement, and any creature on the ground when you cast the spell must make a Strength saving throw. A creature must also make the saving throw when it moves into the area for the first time on a turn or ends its turn there. On a failed save, a creature sinks into the mud and is restrained, though it can use an action to end the restrained condition on itself by pulling itself free of the mud.\" + \"\\n   \" + \"If you cast the spell on a ceiling, the mud falls. Any creature under the mud when it falls must make a Dexterity saving throw. A creature takes 4d8 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + toUni(\"Transmute Mud to Rock\") + \": Nonmagical mud or quicksand in the area no more than 10 feet deep transforms into soft stone for the spell's duration. Any creature in the mud when it transforms must make a Dexterity saving throw. On a successful save, a creature is shunted safely to the surface in an unoccupied space. On a failed save, a creature becomes restrained by the rock. A restrained creature, or another creature within reach, can use an action to try to break the rock by succeeding on a DC 20 Strength check or by dealing damage to it. The rock has AC 15 and 25 hit points, and it is immune to poison and psychic damage.\"\r\n};\r\nSpellsList[\"vitriolic sphere\"] = {\r\n\tname : \"Vitriolic Sphere\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of giant slug bile\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn end; save half \\u0026 no dmg next turn\",\r\n\tdescriptionShorter : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn; save half \\u0026 no next turn\",\r\n\tdescriptionFull : \"You point at a location within range, and a glowing, 1-foot-diameter ball of emerald acid streaks there and explodes in a 20-foot-radius sphere. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 10d4 acid damage and another 5d4 acid damage at the end of its next turn. On a successful save, a creature takes half the initial damage and no damage at the end of its next turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the initial damage increases by 2d4 for each slot level above 4th.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /((?:\\+?\\d+d?\\d*)+)( dmg next turn)/i\r\n\t}\r\n};\r\nSpellsList[\"wall of sand\"] = {\r\n\tname : \"Wall of Sand\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A handful of sand\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"30\\xD710\\xD710ft (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\tdescriptionMetric : \"9\\xD73\\xD73m (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\tdescriptionFull : \"You conjure up a wall of swirling sand on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 10 feet thick, and it vanishes when the spell ends. It blocks line of sight but not movement. A creature is blinded while in the wall's space and must spend 3 feet of movement for every 1 foot it moves there.\"\r\n};\r\nSpellsList[\"wall of water\"] = {\r\n\tname : \"Wall of Water\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23], [\"V\", 116], [\"MOT\", 27]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of water\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"30\\xD71\\xD710ft (l\\xD7w\\xD7h) or 20-ft rad 20-ft high; dif. ter.; range wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\tdescriptionMetric : \"9\\xD70,3\\xD73m (l\\xD7w\\xD7h) or 6-m rad 6-m high; dif. ter.; ranged wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\tdescriptionFull : \"You conjure up a wall of water on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 1 foot thick, or you can make a ringed wall up to 20 feet in diameter, 20 feet high, and 1 foot thick. The wall vanishes when the spell ends. The wall's space is difficult terrain.\" + \"\\n   \" + \"Any ranged weapon attack that enters the wall's space has disadvantage on the attack roll, and fire damage is halved if the fire effect passes through the wall to reach its target. Spells that deal cold damage that pass through the wall cause the area of the wall they pass through to freeze solid (at least a 5-foot square section is frozen). Each 5-foot-square frozen section has AC 5 and 15 hit points. Reducing a frozen section to 0 hit points destroys it. When a section is destroyed, the wall's water doesn't fill it.\"\r\n};\r\nSpellsList[\"warding wind\"] = {\r\n\tname : \"Warding Wind\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Strong (20 mph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\tdescriptionMetric : \"Strong (32 kph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\tdescriptionFull : \"A strong wind (20 miles per hour) blows around you in a 10-foot radius and moves with you, remaining centered on you. The wind lasts for the spell's duration.\\n   The wind has the following effects.\"+\r\n\t\"\\n \\u2022 It deafens you and other creatures in its area.\"+\r\n\t\"\\n \\u2022 It extinguishes unprotected flames in its area that are torch-sized or smaller.\"+\r\n\t\"\\n \\u2022 The area is difficult terrain for creatures other than you.\"+\r\n\t\"\\n \\u2022 The attack rolls of ranged weapon attacks have disadvantage if they pass in or out of the wind.\"+\r\n\t\"\\n \\u2022 It hedges out vapor, gas, and fog that can be dispersed by strong wind.\"\r\n};\r\nSpellsList[\"watery sphere\"] = {\r\n\tname : \"Watery Sphere\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A droplet of water\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft rad all crea < Huge save or restrained; on save ejected; save each rnd; 1 a move sphere 30 ft\",\r\n\tdescriptionFull : \"You conjure up a sphere of water with a 5-foot radius at a point you can see within range. The sphere can hover but no more than 10 feet off the ground. The sphere remains for the spell's duration.\" + \"\\n   \" + \"Any creature in the sphere's space must make a Strength saving throw. On a successful save, a creature is ejected from that space to the nearest unoccupied space of the creature's choice outside the sphere. A Huge or larger creature succeeds on the saving throw automatically, and a Large or smaller creature can choose to fail it. On a failed save, a creature is restrained by the sphere and is engulfed by the water. At the end of each of its turns, a restrained target can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"The sphere can restrain as many as four Medium or smaller creatures or one Large creature. If the sphere restrains a creature that causes it to exceed this capacity, a random creature that was already restrained by the sphere falls out of it and lands prone in a space within 5 feet of it.\" + \"\\n   \" + \"As an action, you can move the sphere up to 30 feet in a straight line. If it moves over a pit, a cliff, or other drop-off, it safely descends until it is hovering 10 feet above the ground. Any creature restrained by the sphere moves with it. You can ram the sphere into creatures, forcing them to make the saving throw.\" + \"\\n   \" + \"When the spell ends, the sphere falls to the ground and extinguishes all normal flames within 30 feet of it. Any creature restrained by the sphere is knocked prone in the space where it falls. The water then vanishes.\"\r\n};\r\nSpellsList[\"whirlwind\"] = {\r\n\tname : \"Whirlwind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 171], [\"E\", 24]],\r\n\tlevel : 7,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A piece of straw\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"10-ft rad 30-ft high all crea 10d6 Bludg. dmg; save halves; restrains; 1 a move 30 ft; see book\",\r\n\tdescriptionFull : \"A whirlwind howls down to a point that you can see on the ground within range. The whirlwind is a 10-foot-radius, 30-foot-high cylinder centered on that point. Until the spell ends, you can use your action to move the whirlwind up to 30 feet in any direction along the ground. The whirlwind sucks up any Medium or smaller objects that aren't secured to anything and that aren't worn or carried by anyone.\" + \"\\n   \" + \"A creature must make a Dexterity saving throw the first time on a turn that it enters the whirlwind or that the whirlwind enters its space, including when the whirlwind first appears. A creature takes 10d6 bludgeoning damage on a failed save, or half as much damage on a successful one. In addition, a Large or smaller creature that fails the save must succeed on a Strength saving throw or become restrained in the whirlwind until the spell ends. When a creature starts its turn restrained by the whirlwind, the creature is pulled 5 feet higher inside it, unless the creature is at the top. A restrained creature moves with the whirlwind and falls when the spell ends, unless the creature has some means to stay aloft.\" + \"\\n   \" + \"A restrained creature can use an action to make a Strength or Dexterity check against your spell save DC. If successful, the creature is no longer restrained by the whirlwind and is hurled 3d6 \\xD7 10 feet away from it in a random direction.\"\r\n};\r\n\r\n// Weapons (attack cantrips)\r\nWeaponsList[\"create bonfire\"] = {\r\n\tregExpSearch : /^(?=.*create)(?=.*bonfire).*$/i,\r\n\tname : \"Create Bonfire\",\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"5-ft cube; Dex save at casting or when moved into, success - no damage; Conc, 1 min\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"frostbite\"] = {\r\n\tregExpSearch : /frostbite/i,\r\n\tname : \"Frostbite\",\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"cold\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also disadv. on next weapon attack roll in next turn; 1 creature\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"magic stone\"] = {\r\n\tregExpSearch : /^(?=.*magic)(?=.*stone).*$/i,\r\n\tname : \"Magic Stone\",\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [1, 6, \"bludgeoning\"],\r\n\trange : \"60/120 ft\",\r\n\tdescription : \"Produces 3 stones that each can be thrown (60 ft) or hurled with a sling (120 ft) as a spell attack\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"thunderclap\"] = {\r\n\tregExpSearch : /thunderclap/i,\r\n\tname : \"Thunderclap\",\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"thunder\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; all creatures in area; audible in 100 ft\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\n// pub_20150714_AL-RoD.js\r\n// This file adds the optional backgrounds from the Adventurers League season 3 (Rage of Demons) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"AL:RoD\"]={\r\n\tname : \"Rage of Demons Backgrounds [Hillsfar]\",\r\n\tabbreviation : \"AL:RoD\",\r\n\tgroup : \"Adventurers League\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dropbox.com/s/h4ijcnfun1cn580/Hillsfar-Regional-Character-Options.pdf?dl=1\", // used to be https://dndadventurersleague.org/wp-content/uploads/2015/07/Hillsfar-Regional-Character-Options.pdf\r\n\tdate : \"2015/07/14\"\r\n};\r\n\r\n// Backgrounds (with contributions by AggieBear)\r\nBackgroundList[\"cormanthor refugee\"] = {\r\n\tregExpSearch : /^(?=.*cormanthor)(?=.*refugee).*$/i,\r\n\tname : \"Cormanthor Refugee\",\r\n\tsource : [[\"AL:RoD\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Nature\", \"Survival\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Two-person tent\", \"\", 20],\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Holy symbol (type)\", \"\", 1],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Shelter of the Elven Clergy\",\r\n\ttrait : [\r\n\t\t\"I long for a home that never really existed, whether in the camps, Hillsfar, or Myth Drannor.\",\r\n\t\t\"Though I am not an elf, I am a fervent, radical worshipper of the elven gods.\",\r\n\t\t\"I live in the moment, knowing my life could be turned upside down any day.\",\r\n\t\t\"I appreciate beauty in all of its forms.\",\r\n\t\t\"I hate the dark elves and the Netherese for each driving the elves out of Cormanthyr in the past.\",\r\n\t\t\"I am a forest bumpkin who grew up in a tent in the woods and is wholly ignorant of city life.\",\r\n\t\t\"I was raised alongside children of many other races. I harbor no racial prejudices at all.\",\r\n\t\t\"The elves have just the right word for so many things that cannot be expressed as well in other languages. I pepper my speech with elven words, phrases, and sayings.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Patient\",\r\n\t\t\t\"Patient: The elves have taught me to think and plan for the long-term. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Rebellious\",\r\n\t\t\t\"Rebellious: Governments and politicians drove my family to the camps. I subtly defy authority whenever I think I can get away with it. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Self-Absorbed\",\r\n\t\t\t\"Self-Absorbed: I've had to look out for number one so long that it has become second nature. (Any)\"\r\n\t\t],\r\n\t\t[\"Wanderlust\",\r\n\t\t\t\"Wanderlust: I want to see as much of the world beyond the camps as I can. (Any)\"\r\n\t\t],\r\n\t\t[\"Generous\",\r\n\t\t\t\"Generous: I give everything I can to help those in need, regardless of who they are. (Good)\"\r\n\t\t],\r\n\t\t[\"To the Abyss with Them\",\r\n\t\t\t\"To the Abyss with Them: The people of Hillsfar cast me out. I won't risk my hide to help them. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The elves took me in when I had nowhere else to go. In return, I do what I can to help elves in need.\",\r\n\t\t\"I seek revenge against the people of Hillsfar for driving my family into the forest.\",\r\n\t\t\"My family lost everything when they were driven from Hillsfar. I strive to rebuild that fortune.\",\r\n\t\t\"The forest has provided me with food and shelter. In return, I protect forests and those who dwell within.\",\r\n\t\t\"I am deeply, tragically in love with someone whose racial lifespan is far longer or shorter than mine.\",\r\n\t\t\"Members of my extended family did not make it to the camps or have been kidnapped to fight in the Arena. I search for them tirelessly.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am very uncomfortable indoors and underground\",\r\n\t\t\"I am haughty. I grew up among the elves and emulate them. Other races are crude in comparison.\",\r\n\t\t\"Elf this, elf that. I am sick and tired of the elves.\",\r\n\t\t\"I am a miser. Having lost everything once before, I clutch my possessions and wealth very tightly.\",\r\n\t\t\"I am a moocher. I am so used to others providing for me that I have come to expect everyone to do it.\",\r\n\t\t\"I believe the gods have cursed me, my family, and all of the Cormanthor refugees. We are all doomed, doomed I tell you!\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [\"Elvish\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"gate urchin\"] = {\r\n\tregExpSearch : /^(?=.*gate)(?=.*urchin).*$/i,\r\n\tname : \"Gate Urchin\",\r\n\tsource : [[\"AL:RoD\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Sleight of Hand\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Battered alms box\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Cast-off military jacket, cap, or scarf\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Red Plume and Mage Guild Contacts\",\r\n\ttrait : [\r\n\t\t\"I appreciate the simple things in life: a song, a warm meal, a sunny day. I don't need any more.\",\r\n\t\t\"My problems are always caused by others. I'm never to blame.\",\r\n\t\t\"I am afraid I could wind up back on the streets any day.\",\r\n\t\t\"I get along with everyone.\",\r\n\t\t\"I see people as marks for a con and have difficulty feeling true empathy for them.\",\r\n\t\t\"I have a real flair for matchmaking. I can find anyone a spouse!\",\r\n\t\t\"I think money is the true measure of appreciation and affection. Everything else is talk or an act.\",\r\n\t\t\"I don't like having a lot of stuff, just a few simple things I need. I don't like being tied down and tend to leave things behind when I don't need them anymore.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loyal\",\r\n\t\t\t\"Loyal: I never rat out any of my friends, even when the Red Plumes or the Rogues Guild ask. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Adventurous\",\r\n\t\t\t\"Adventurous: I don't like doing the same thing every day. I crave variety. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Strong\",\r\n\t\t\t\"Strong: Only the strong survive. I respect those who are strong and powerful. (Any)\"\r\n\t\t],\r\n\t\t[\"Witty\",\r\n\t\t\t\"Witty: Brains are better than brawn. I rely on my wits and respect others who do the same. (Any)\"\r\n\t\t],\r\n\t\t[\"Honest\",\r\n\t\t\t\"Honest: Others can do what they want, but I won't lie or steal, even to feed my family. (Good)\"\r\n\t\t],\r\n\t\t[\"Ungrateful\",\r\n\t\t\t\"Ungrateful: Those who give, only do it to make themselves feel better. I steal from them. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The Joydancers of Lliira gave me my instrument when I really needed food. I hate them for that.\",\r\n\t\t\"Busking has taught me to love music above all else.\",\r\n\t\t\"The Rogues Guild spared me when I did a job without cutting them in. I owe them a great debt.\",\r\n\t\t\"I know people hate the Red Plumes, but some of them were really good to me. I help Red Plumes whenever I can, and I respect them. They're just doing what they have to do to get by in this world.\",\r\n\t\t\"I will be wealthy some day. My descendants will live in comfort and style.\",\r\n\t\t\"I know how hard life on the streets is. I do everything I can for those who have less than me.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Though I no longer live at the Gate, I am still always concerned about where I will get my next meal.\",\r\n\t\t\"Years of thieving have become habit. I sometimes steal from strangers without thinking about it.\",\r\n\t\t\"I am ashamed of my origins. I pretend I am higher-born and fear others will find out the truth.\",\r\n\t\t\"I think people who grew up in houses are soft, spoiled, and ungrateful. I frequently tell them so.\",\r\n\t\t\"I am still very uncomfortable wearing nice clothes, sleeping in a warm bed, and eating fine food.\",\r\n\t\t\"I do not trust anyone who has not had a hard life.\"\r\n\t],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], [\"Musical instrument\", 1]],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"hillsfar merchant\"] = {\r\n\tregExpSearch : /^(?=.*hillsfar)(?=.*merchant).*$/i,\r\n\tname : \"Hillsfar Merchant\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 25,\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t\t[\"Letter of introduction from family's trading house\", \"\", 1]\r\n\t],\r\n\tfeature : \"Factor\",\r\n\tfeatureAlt : \"Trade Contact\",\r\n\ttrait : [\r\n\t\t\"I fill my evenings with wine or mead and song.\",\r\n\t\t\"I greatly admire gladiators and enjoy the Arena.\",\r\n\t\t\"I take my wealth for granted. It seldom occurs to me that others aren't rich themselves.\",\r\n\t\t\"I leave broken hearts all around the Moonsea and up and down the Sword Coast.\",\r\n\t\t\"I work hard and seldom make time for fun.\",\r\n\t\t\"I am a particularly devout and pray often.\",\r\n\t\t\"The Red Plumes caught me once. I hate them.\",\r\n\t\t\"I ask a lot of questions to get information about those with whom I am working and dealing.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Frugal\",\r\n\t\t\t\"Frugal: I spend my money very carefully. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Profligate\",\r\n\t\t\t\"Profligate: I tend to spend extravagantly. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Honest\",\r\n\t\t\t\"Honest: I deal with others above board. (Any)\"\r\n\t\t],\r\n\t\t[\"Sharp\",\r\n\t\t\t\"Sharp: I seek to make the best deal possible. (Any)\"\r\n\t\t],\r\n\t\t[\"Charitable\",\r\n\t\t\t\"Charitable: I give generously to others. (Good)\"\r\n\t\t],\r\n\t\t[\"Greedy\",\r\n\t\t\t\"Greedy: I do not share my wealth with others. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I am fiercely loyal to those with whom I work.\",\r\n\t\t\"I must uphold the good name of my family.\",\r\n\t\t\"I will prove myself to my family as an adventurer.\",\r\n\t\t\"Deals are sacrosanct. I never go back on my word.\",\r\n\t\t\"I love making deals and negotiating agreements.\",\r\n\t\t\"I guard my wealth jealously.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am a braggart. I promote myself shamelessly.\",\r\n\t\t\"I am vain. I always wear the latest fashions.\",\r\n\t\t\"I am a glutton. I eat and drink to excess.\",\r\n\t\t\"I am a snob. I want only the finest things in life.\",\r\n\t\t\"I am lazy. I want others to take care of everything.\",\r\n\t\t\"I am overconfident. I overestimate my abilities.\"\r\n\t],\r\n\ttoolProfs : [\"Vehicles (land)\", \"Vehicles (water)\"],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"hillsfar smuggler\"] = {\r\n\tregExpSearch : /^(?=.*hillsfar)(?=.*smuggler).*$/i,\r\n\tname : \"Hillsfar Smuggler\",\r\n\tsource : [[\"AL:RoD\", 8], [\"ALbackground\", 0]],\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Forgery kit\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Passage\",\r\n\ttrait : [\r\n\t\t\"When I'm not smuggling, I gamble.\",\r\n\t\t\"I just love Halfling cooking and baking!\",\r\n\t\t\"I party with dwarves whenever I can.\",\r\n\t\t\"I'm a terrible singer, but I love to do it.\",\r\n\t\t\"I was raised to honor Chauntea and still do.\",\r\n\t\t\"The blood sports of the Arena sicken me.\",\r\n\t\t\"I think non-humans are really interesting.\",\r\n\t\t\"I exaggerate the tales of my exploits.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Fair\",\r\n\t\t\t\"Fair: I think everyone deserves to be treated fairly. I don't play favorites. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Impulsive\",\r\n\t\t\t\"Impulsive: Planning is often a waste of time. No plan survives contact with reality. It's easier to dive in and deal with the consequences. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Curious\",\r\n\t\t\t\"Curious: I want to learn as much as I can about the people and places I encounter. (Any)\"\r\n\t\t],\r\n\t\t[\"Prepared\",\r\n\t\t\t\"Prepared: I think success depends on preparing as much as possible in advance. (Any)\"\r\n\t\t],\r\n\t\t[\"Respectful\",\r\n\t\t\t\"Respectful: I think everyone deserves to be treated with respect and dignity, regardless of their race, creed, color, or origin. (Good)\"\r\n\t\t],\r\n\t\t[\"Corrupt\",\r\n\t\t\t\"Corrupt: I will break the law or act dishonestly if the money is right. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I am loyal to the Rogues Guild and would do anything for them.\",\r\n\t\t\"I love the city of Hillsfar and my fellow Hillsfarians, despite the recent problems.\",\r\n\t\t\"I admire the elves. I help them whenever I can.\",\r\n\t\t\"A gnome helped me once. I pay the favor forward.\",\r\n\t\t\"I enjoy tricking the Red Plumes at every opportunity.\",\r\n\t\t\"I smuggled agricultural goods for non-human farmers. I try to help them when I can.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"My hatred for the Red Plumes burns so brightly that I have difficulty suppressing It around them.\",\r\n\t\t\"The Red Plumes caught me once before, and I was branded for my crime. If they catch me again, for any offense, the punishment will be dire.\",\r\n\t\t\"I treat all Hillsfarans poorly. I am disgusted with their failure to revolt against the Great Law of Humanity.\",\r\n\t\t\"I have difficulty trusting strangers. Anyone could be a spy for the authorities.\",\r\n\t\t\"I am greedy. There Isn't much I won't do for money.\",\r\n\t\t\"I'm an informant for the Red Plumes. They let me continue my activities, so long as I pass them information about illegal activity in Hillsfar.\"\r\n\t],\r\n\ttoolProfs : [\"Forgery kit\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"secret identity\"] = {\r\n\tregExpSearch : /^(?=.*secret)(?=.*identity).*$/i,\r\n\tname : \"Secret Identity\",\r\n\tsource : [[\"AL:RoD\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Forgery kit\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Identity\",\r\n\ttrait : [\r\n\t\t\"Despite its problems, I love Hillsfar, it's the greatest city in the world. The only one for me.\",\r\n\t\t\"I move from place to place, never staying anywhere long and leaving nothing behind.\",\r\n\t\t\"I think flattery is the best way to direct attention away from me.\",\r\n\t\t\"I don't make friends easily. They're a liability I cannot afford.\",\r\n\t\t\"Risk and danger are exhilarate me. Pulling off schemes and deceptions is a rush.\",\r\n\t\t\"The First Lord is right, humans are superior. I really admire them, despite the atrocities.\",\r\n\t\t\"I avoid people of my own race, as well as things associated with my race, lest they give me away.\",\r\n\t\t\"I live for the Arena. I admire gladiators and enjoy the thrill of blood on the sands!\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Quisling\",\r\n\t\t\t\"Quisling: Supporting the rulers of the land and following the laws is the road to salvation. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Scoflaw\",\r\n\t\t\t\"Scoflaw: The laws and lawmakers are corrupt. I follow laws only when it suits me. (Chaotic))\"\r\n\t\t],\r\n\t\t[\"Optimist\",\r\n\t\t\t\"Optimist: Everyone Is basically good. Though the government is misguided it will all be okay. (Any)\"\r\n\t\t],\r\n\t\t[\"Secretive\",\r\n\t\t\t\"Secretive: I am in the habit of not talking about myself. My business is none of yours. (Any)\"\r\n\t\t],\r\n\t\t[\"Heroic\",\r\n\t\t\t\"Heroic: I do everything I can to help non-humans, regardless of the personal cost to me. (Good)\"\r\n\t\t],\r\n\t\t[\"Depraved\",\r\n\t\t\t\"Depraved: I have lost my moral compass. The ends justify most any means. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The humans of Hillsfar have inflicted terrible harm on me, my family, and my race. I will have revenge.\",\r\n\t\t\"I am part of an underground network that smuggles non-humans into and out of the city.\",\r\n\t\t\"I am a partisan. I commit minor acts of defiance against the First Lord and Red Plumes when I can.\",\r\n\t\t\"I am a spy. I report on events in and around Hillfar.\",\r\n\t\t\"My secret identity is the only thing protecting me from the Arena. I will stop at nothing to maintain it.\",\r\n\t\t\"I am madly in love with a human who does not know my true identity, and I fear rejection if I reveal it.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"After years of denying who I am, I now despise myself and other members of my pathetic race.\",\r\n\t\t\"Years of hiding have made me somewhat paranoid. I trust no one.\",\r\n\t\t\"I've been lying so often and for so long that I can't help it anymore. I frequently lie for no reason at all.\",\r\n\t\t\"I am ashamed. I failed to protect a member of my family who was seized and thrown into the Area.\",\r\n\t\t\"I am struggling with maintaining my secret identity. I subconsciously want to get caught and therefore sometimes let my secret identity slip.\",\r\n\t\t\"Years of successfully deceiving others have made me cocky. I think no one can see through my lies.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", \"Forgery kit\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"shade fanatic\"] = {\r\n\tregExpSearch : /^(?=.*shade)(?=.*fanatic).*$/i,\r\n\tname : \"Shade Fanatic\",\r\n\tsource : [[\"AL:RoD\", 10], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Intimidation\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Forgery kit\", \"\", 5],\r\n\t\t[\"Transparent shadow cylinder\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Society\",\r\n\ttrait : [\r\n\t\t\"I am a bully; I try to hide it though.\",\r\n\t\t\"I let my actions speak for themselves\",\r\n\t\t\"I am important; I will not let anyone forget that.\",\r\n\t\t\"You are either with me or against me.\",\r\n\t\t\"I know it is only a time before I am betrayed by those I care for.\",\r\n\t\t\"I never understand why people get so emotional.\",\r\n\t\t\"They are out to get me. It is only my cunning that keeps me ahead of them\",\r\n\t\t\"Everyone has a choice, the one I make is always right though.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: I know even if I need do evil acts, history will be my redemption. (Chaos)\"\r\n\t\t],\r\n\t\t[\"Dedicated\",\r\n\t\t\t\"Dedicated: I can do anything I put my mind to (Lawful)\"\r\n\t\t],\r\n\t\t[\"Exciting\",\r\n\t\t\t\"Exciting: I have found the truth of the Shadovar and want to share it with everyone. (Any)\"\r\n\t\t],\r\n\t\t[\"Frugal\",\r\n\t\t\t\"Frugal: I horde my possessions knowing that someday I will be called upon to give everything I have to the cause (Any)\"\r\n\t\t],\r\n\t\t[\"Eloquent\",\r\n\t\t\t\"Eloquent: I use my words to sway others to my beliefs. (Any)\"\r\n\t\t],\r\n\t\t[\"Compassionate\",\r\n\t\t\t\"Compassionate: It is through love that others will join In our cause. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"They say the Shade broke the bonds of mortality; I want to find out how.\",\r\n\t\t\"The whispers in my head remind me that there is power to be found in the shadows.\",\r\n\t\t\"For the glory of Netheril, I will grow in power.\",\r\n\t\t\"I once lived in Hillsfar, I was chased out before I was able to say farewell.\",\r\n\t\t\"My true love was a killed by the Red Plumes; I plot to make them suffer.\",\r\n\t\t\"I had a loved one die in the arena at Hillsfar; I am out to prove I am stronger than them!\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I always over exaggerate my abilities.\",\r\n\t\t\"I cannot bear to let those I care for out of my sight.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"The group I am with has committed atrocities; I am always worried their actions will become public.\",\r\n\t\t\"I always enjoy a good mug of ale … or five.\",\r\n\t\t\"I know what I do is wrong, but am afraid to speak up about it.\"\r\n\t],\r\n\ttoolProfs : [\"Forgery kit\"],\r\n\tlanguageProfs : [\"Netherese\"],\r\n\tlifestyle : \"moderate\"\r\n};\r\nBackgroundList[\"trade sheriff\"] = {\r\n\tregExpSearch : /^(?=.*trade)(?=.*sheriff).*$/i,\r\n\tname : \"Trade Sheriff\",\r\n\tsource : [[\"AL:RoD\", 11], [\"ALbackground\", 0]],\r\n\tskills : [\"Investigation\", \"Persuasion\"],\r\n\tgold : 17,\r\n\tequipleft : [\r\n\t\t[\"Thieves' tools\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Gray cloak\", \"\", \"\"],\r\n\t\t[\"Sheriff's insignia\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Investigative Services\",\r\n\ttrait : [\r\n\t\t\"I am always polite and respectful\",\r\n\t\t\"I let my actions speak for themselves\",\r\n\t\t\"I am haunted by my past having seen the murder of a close friend or family member and it is the one case I always needed to solve but have not been able to.\",\r\n\t\t\"I am quick to judge and slow to vindicate\",\r\n\t\t\"I can be very persuasive and am able to ask questions where others might not be able to.\",\r\n\t\t\"I have a quirky personality that seems to take others off their guard.\",\r\n\t\t\"My sense of humor is considered by most to be awkward\",\r\n\t\t\"Everyone has a choice, and they can always make the right choice, mine!\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: my job is to speak for the victim (good)\"\r\n\t\t],\r\n\t\t[\"Dedicated\",\r\n\t\t\t\"Dedicated: Once I start an investigation, until told to do so, I do not quit, not matter where it leads. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Nation\",\r\n\t\t\t\"Nation: My city, nation, or people are all that matter (any)\"\r\n\t\t],\r\n\t\t[\"Mercenary\",\r\n\t\t\t\"Mercenary: When I do investigations, I expect answers immediately (Any)\"\r\n\t\t],\r\n\t\t[\"Eloquent\",\r\n\t\t\t\"Eloquent: I use my words to sway others to give me answers.(good)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: It is through threats and force that I get my answers (lawful)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"To this day an unsolved case will always leave me haunted and bother me.\",\r\n\t\t\"Through the might of my personality I will solve an investigation or puzzle.\",\r\n\t\t\"It is my right to believe what I will, just try and stop me.\",\r\n\t\t\"I need to prove my worth to my fellow Sheriffs.\",\r\n\t\t\"Someone I cared for died under suspicious circumstances. I will find out what happened to them and bring their killer to justice.\",\r\n\t\t\"I speak for those that cannot speak for themselves.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I always over exaggerate my abilities.\",\r\n\t\t\"I cannot bear to let those I care for out of my sight.\",\r\n\t\t\"I took a bribe to tank an investigation and I would do anything to keep it secret.\",\r\n\t\t\"I have little respect for those that are of \\\"low\\\" intelligence/race.\",\r\n\t\t\"I always enjoy a good mug of ale … or five to cover up my past.\",\r\n\t\t\"I speak for the First Lord of Hillsfar and make sure everyone knows it.\"\r\n\t],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\tlanguageProfs : [\"Elvish\"],\r\n\tlifestyle : \"moderate\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"factor\"] = {\r\n\tdescription : \"My family has assigned me the services of a loyal retainer from the business. This person can perform mundane tasks for me such as making purchases, delivering messages, and running errands. He or she will not fight for me or follow me into danger, and will leave if frequently endangered or abused. If killed, my family assigns me another within days.\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"investigative services\"] = {\r\n\tdescription : \"I have a way of communicating with others that puts them at ease. I can invoke my rank to allow me access to a crime scene or to requisition equipment or horses on a temporary basis. When entering a settlement around Hillsfar, I can identify a contact who will give me information and would help me because I want to stop anyone from disrupting trade.\",\r\n\tsource : [[\"AL:RoD\", 11], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"red plume and mage guild contacts\"] = {\r\n\tdescription : \"I made friends among the Red Plumes and Mage's Guild when I lived at the Hillsfar Gate. They remember me fondly and help me in little ways when they can. I can invoke their assistance in and around Hillsfar to obtain food, simple equipment for temporary use, and to gain access to the low-security areas of their garrisons, halls, and encampments.\",\r\n\tsource : [[\"AL:RoD\", 6], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret identity\"] = {\r\n\tdescription : \"I have created a secret identity that I use to conceal my true race and that offers a covering explanation for my presence in Hillsfar. In addition, I can forge documents, including official papers and personal letters, as long as I have seen an example of the kind of document or the handwriting I am trying to copy.\",\r\n\tsource : [[\"AL:RoD\", 9], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret passage\"] = {\r\n\tdescription : \"I can call on my smuggler contacts to secure secret passage into or out of Hillsfar for myself and my friends, no questions asked, and no Red Plume entanglements. Because I'm calling in a favor, I can't be certain when or if they can help. In return for passage, my companions and I may owe the Rogue's Guild a favor and/or may have to pay bribes.\",\r\n\tsource : [[\"AL:RoD\", 8], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret society\"] = {\r\n\tdescription : \"I have a special way of communicating with others who feel the same way I do about the Shade. When I enter a village or larger city, I can identify a contact who will give me information on those that would hinder my goals and those would help me simply because of my desire to see the Shade Enclave return in all its glory.\",\r\n\tsource : [[\"AL:RoD\", 10], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"shelter of the elven clergy\"] = {\r\n\tdescription : \"The clerics of Elventree have vowed to care for the Cormanthor refugees. They will help me when they can, including providing me and my companions with free healing and care at temples, shrines, and other established presences in Elventree. They will also provide me (but only me) with a poor lifestyle.\",\r\n\tsource : [[\"AL:RoD\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"trade contact\"] = {\r\n\tdescription : \"My family and I have trade contacts such as caravan masters, sailors, artisans, farmers, and shopkeepers throughout the Moonsea region and all along the Sword Coast. When adventuring in either of those areas, I can use those contacts to get information about the local area or to pass a message to someone in those areas, even across great distance.\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]]\r\n};\r\n\n// pub_20150915_OotA.js\r\n// This file adds all the beasts and background features from the Out of the Abyss adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.OotA={\r\n\tname : \"Out of the Abyss [beasts, background features, items]\",\r\n\tabbreviation : \"OotA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/outoftheabyss\",\r\n\tdate : \"2015/09/15\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"deep delver\"] = {\r\n\tdescription : \"I have a knack for finding my way in the Underdark, recalling all twists and turns with ease, such that I can always retrace my steps underground. I can determine which sources of food and water are safe to consume. I can always find sufficient food and water for myself and up to five other people in the Underdark, if sustenance is available in the area.\",\r\n\tsource : [[\"OotA\", 221], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"underdark experience\"] = {\r\n\tdescription : \"I'm no casual visitor to the Underdark, but have spent considerable time there learning its ways. I'm familiar with the various races, civilizations, settlements, and travel routes of the Underdark. If I fail an Intelligence check to recall some piece of Underdark lore, I know a source I can consult for the answer unless the DM rules that the lore is unknown.\",\r\n\tsource : [[\"OotA\", 221], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Creatures\r\nCreatureList[\"cave badger\"] = { // contributed by Nod_Hero\r\n\tname : \"Cave Badger\",\r\n\tnameAlt : [\"Badger, Cave\"],\r\n\tsource : [[\"OotA\", 96]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 13,\r\n\thd : [2, 8],\r\n\tspeed : \"30 ft, burrow 15 ft\",\r\n\tscores : [13, 10, 15, 2, 12, 5],\r\n\tsenses : \"Darkvision 30 ft, Tremorsense 60 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 11,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claws attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One claws and one bite attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the badger can make one Bite and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Smell\",\r\n\t\tdescription : \"The badger has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t}]\r\n};\r\nCreatureList[\"steeder, female\"] = {\r\n\tname : \"Female Steeder\",\r\n\tnameAlt : [\"Steeder, Female\", \"Steeder\"],\r\n\tsource : [[\"OotA\", 231]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 30,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [15, 16, 14, 2, 10, 3],\r\n\tskills : {\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Darkvision 120 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 2d8 acid damage, half on a DC 12 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Sticky Leg\",\r\n\t\tability : 2,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Grappled\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Medium or smaller is stuck to the steeder's leg and grappled (escape DC 12); Can't use again until grapple ends\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The steeder can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Leap\",\r\n\t\tdescription : \"The steeder can expend all its movement on its turn to jump up to 90 ft vertically or horizontally, provided that its speed is at least 30 feet.\"\r\n\t}]\r\n};\r\nCreatureList[\"steeder, male\"] = {\r\n\tname : \"Male Steeder\",\r\n\tnameAlt : [\"Steeder, Male\"],\r\n\tsource : [[\"OotA\", 231]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 13,\r\n\thd : [2, 8],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [15, 12, 14, 2, 10, 3],\r\n\tskills : {\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tsenses : \"Darkvision 120 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 1d8 acid damage, half on a DC 12 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Sticky Leg\",\r\n\t\tability : 1,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Grappled\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Small or smaller is stuck to the steeder's leg and grappled (escape DC 12); Can't use again until grapple ends\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The steeder can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Leap\",\r\n\t\tdescription : \"The steeder can expend all its movement on its turn to jump up to 60 ft vertically or horizontally, provided that its speed is at least 30 feet.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"dawnbringer\"] = {\r\n\tname : \"Dawnbringer\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-evil alignment\",\r\n\tprereqeval : function(v) { return !(/evil/i).test(What(\"Alignment\")); },\r\n\tdescription : \"As a bonus action, I can have this hilt create a blade of radiance. It acts like a longsword that does +2 to attack and damage rolls, radiant damage (+1d8 to undead), has finesse, emits bright sunlight in a 15-ft radius and dim light in another 15 ft. I can use it to cast Lesser Restoration and it is sentient, see Notes page.\",\r\n\tdescriptionLong : \"As a bonus action, I can have this longsword hilt create or dismiss a blade of pure radiance. It acts like a longsword that grants a +2 bonus to attack and damage rolls, does radiant damage and has the finesse property. It deals +1d8 radiant damage to undead and emits sunlight, bright light in a 15-ft radius and dim light in an additional 15ft. As an action, I can expand or reduce both the bright and dim light's radius by 5 ft each, to a maximum of 30 feet each or a minimum of 10 feet each. Once per dawn, I can use it to cast Lesser Restoration. Also, it is sentient, see Notes page.\",\r\n\tdescriptionFull : \"Lost for ages in the Underdark, Dawnbringer appears to be a gilded longsword hilt. While grasping the hilt, you can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, this magic longsword has the finesse property. If you are proficient with shortswords or longswords, you are proficient with Dawnbringer.\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When you hit an undead with it, that target takes an extra 1d8 radiant damage.\\n   The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the blade persists, you can use an action to expand or reduce its radius of bright and dim light by 5 feet each, to a maximum of 30 feet each or a minimum of 10 feet each.\\n   While holding the weapon, you can use an action to touch a creature with the blade and cast Lesser Restoration on that creature. Once used, this ability can't be used again until the next dawn.\\n   \" + toUni(\"Sentience\") + \". Dawnbringer is a sentient neutral good weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet.\\n   The sword can speak, read, and understand Common, and it can communicate with its wielder telepathically. Its voice is kind and feminine. It knows every language you know while attuned to it.\\n   \" + toUni(\"Personality\") + \". Forged by ancient sun worshippers, Dawnbringer is meant to bring light into darkness and to fight creatures of darkness. It is kind and compassionate to those in need, but fierce and destructive to its enemies.\\n   Long years lost in darkness have made Dawnbringer frightened of both the dark and abandonment. It prefers that its blade always be present and shedding light in areas of darkness, and it strongly resists being parted from its wielder for any length of time.\" +\r\n\t// Addition from Adventurers League Content Catalogue 8.07\r\n\t\"\\n   If an evil creature attempts to attune to the weapon, it not only finds it impossible, but Dawnbringer attempts to take control of its wielder (DC 14 Charisma saving throw). If the weapon is successful, it insists on being taken to the surface or willingly given to the first creature it comes across that is not a member of a race indigenous to the Underdark. Dawnbringer will not allow its relinquishment to a creature that it or its wielder knows is evil, and instead compels its wielder to find a new recipient.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \" (start/stop)\"], [\"action\", \" (change light)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /dawnbringer/i,\r\n\t\tname : \"Dawnbringer\",\r\n\t\tsource : [[\"OotA\", 222]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Finesse, versatile (1d10); +1d8 damage to undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.name == \"Dawnbringer\" && !fields.Proficiency) {\r\n\t\t\t\t\tfields.Proficiency = CurrentProfs.weapon.otherWea && CurrentProfs.weapon.otherWea.finalProfs.indexOf(\"shortsword\") !== -1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Lesser Restoration\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"lesser restoration\"],\r\n\t\tselection : [\"lesser restoration\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"Lost for ages in the Underdark, Dawnbringer appears to be a gilded longsword hilt. While grasping the hilt, I can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, it functions as a magic longsword that has the finesse property. I'm proficient with it if I'm proficient with either shortswords or longswords.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When I hit an undead with it, that target takes an extra 1d8 radiant damage.\",\r\n\t\t\t\"The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 ft. The light is sunlight. As an action while the blade persists, I can expand or reduce its radius of bright and dim light by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each.\",\r\n\t\t\t\"As an action while holding the weapon, I can touch a creature with the blade and cast Lesser Restoration on that creature. Once used, this ability can't be used again until the next dawn.\",\r\n\t\t\t\"Dawnbringer is a sentient neutral good weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet. The sword can speak, read, and understand Common, and it can communicate with its wielder telepathically. Its voice is kind and feminine. It knows every language you know while attuned to it.\",\r\n\t\t\t\"Forged by ancient sun worshippers, Dawnbringer is meant to bring light into darkness and to fight creatures of darkness. It is kind and compassionate to those in need, but fierce and destructive to its enemies. Long years lost in darkness have made Dawnbringer frightened of both the dark and abandonment. It prefers that its blade always be present and shedding light in areas of darkness, and it strongly resists being parted from its wielder for any length of time.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"piwafwi (cloak of elvenkind)\"] = {\r\n\tname : \"Piwafwi\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While I wear this dark spider-silk cloak with its hood up, Wisdom (Perception) checks made to see me have disadv., and I have adv. on Dex (Stealth) checks made to hide, as its color shifts to camouflage me. Pulling the hood up or down requires an action. It loses its magic if exposed to sunlight for 1 uninterrupted hour.\",\r\n\tdescriptionFull : \"This dark spider-silk cloak is made by drow. It is a cloak of elvenkind. It loses its magic if exposed to sunlight for 1 hour without interruption.\\n   While you wear this cloak with its hood up, Wisdom (Perception) checks made to see you have disadvantage. and you have advantage on Dexterity (Stealth) checks made to hide, as the cloak's color shifts to camouflage you. Pulling the hood up or down requires an action.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\teval : function () {\r\n\t\tif (CurrentMagicItems.known.indexOf(\"boots of elvenkind\") !== -1) {\r\n\t\t\tSetProf(\"advantage\", true, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t\t}\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tSetProf(\"advantage\", false, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t}\r\n}\r\nMagicItemsList[\"piwafwi of fire resistance (cloak of elvenkind)\"] = {\r\n\tname : \"Piwafwi of Fire Resistance\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"While I wear this dark spider-silk cloak with its hood up, Wisdom (Perception) checks made to see me have disadv., and I get adv. on Dex (Stealth) checks made to hide. Pulling the hood up or down requires an action. It also grants me fire resistance. It loses its magic if exposed to sunlight for 1 hour without interruption.\",\r\n\tdescriptionFull : \"This dark spider-silk cloak is made by drow. It is a cloak of elvenkind. It also grants resistance to fire damage while you wear it. It loses its magic if exposed to sunlight for 1 hour without interruption.\\n   While you wear this cloak with its hood up, Wisdom (Perception) checks made to see you have disadvantage. and you have advantage on Dexterity (Stealth) checks made to hide, as the cloak's color shifts to camouflage you. Pulling the hood up or down requires an action.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Fire\"],\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\teval : function () {\r\n\t\tif (CurrentMagicItems.known.indexOf(\"boots of elvenkind\") !== -1) {\r\n\t\t\tSetProf(\"advantage\", true, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t\t}\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tSetProf(\"advantage\", false, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t}\r\n}\r\nMagicItemsList[\"spell gem\"] = { // not legal in AL\r\n\tname : \"Spell Gem\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This gem can store 1 spell in it. If it is empty, I can cast a spell as normal, but have it stored in the gem. As an action, I can cast a stored spell from it, if that spell is on my class' spell list.\",\r\n\tdescriptionFull : \"A spell gem can contain one spell from any class's spell list. You become aware of the spell when you learn the gem's properties. While holding the gem, you can cast the spell from it as an action if you know the spell or if the spell is on your class's spell list. Doing so doesn't require any components, and doesn't require attunement. The spell then disappears from the gem.\\n   If the spell is of a higher level than you can normally cast, you must make an ability check using your spellcasting ability to determine whether you cast it successfully. The DC equals 10 + the spell's level. On a failed check, the spell disappears from the gem with no other effect\\n   Each spell gem has a maximum level for the spell it can store. The spell level determines the gem's rarity, the stored spell's saving throw DC, and attack bonus, as shown in the table below.\\n   You can imbue the gem with a spell if you're attuned to it and it's empty. To do so, you cast the spell while holding the gem. The spell is stored in the gem instead of having any effect. Casting the spell must require either 1 action or 1 minute or longer, and the spell's level must be no higher than the gem's maximum. If the spell belongs to the school of abjuration and requires material components that are consumed, you must provide them, but they can be worth half as much as normal.\\n   Once imbued with a spell, the gem can't be imbued again until the next dawn.\\n   Deep gnomes created these magic gemstones and keep the creation process a secret.\\n\\n\" + [\r\n\t\ttoUni(\"Level\\tStone\\t\\tRarity\\t\\tDC/Atk\"),\r\n\t\t\"Cantrip\\tObsidian\\t\\tUncommon\\t13/+5\",\r\n\t\t\"1st\\tLapis Lazuli\\tUncommon\\t13/+5\",\r\n\t\t\"2nd\\tQuartz\\t\\tRare\\t\\t13/+5\",\r\n\t\t\"3rd\\tBloodstone\\tRare\\t\\t15/+7\",\r\n\t\t\"4th\\tAmber\\t\\tVery Rare   \\t15/+9\",\r\n\t\t\"5th\\tJade\\t\\tVery Rare   \\t17/+9\",\r\n\t\t\"6th\\tTopaz\\t\\tVery Rare   \\t17/+10\",\r\n\t\t\"7th\\tStar Ruby  \\tLegendary \\t18/+10\",\r\n\t\t\"8th\\tRuby\\t\\tLegendary \\t18/+10\",\r\n\t\t\"9th\\tDiamond\\t\\tLegendary \\t19/+11\"\r\n\t].join(\"\\n\"),\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ((/spell gem/i).test(spName) && spellObj.time != \"1 a\") {\r\n\t\t\t\t\tspellObj.time = \"1 a\";\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Spells cast into a Spell Gem can only have a casting time of either 1 action or 1 minute or longer.\\n \\u2022 Spells cast from a Spell Gem always require 1 action to cast.\"\r\n\t\t],\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// only continue for spell gems\r\n\t\t\t\tif (!(/spell gem/i).test(CurrentSpells[spName].name)) return;\r\n\t\t\t\t// create the notspells array if it didn't already exist\r\n\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t// now add all the spells of this spell gem's level that have a casting time of 1 reaction or 1 bonus action\r\n\t\t\t\tfor (var spell in SpellsList) {\r\n\t\t\t\t\tvar aSp = SpellsList[spell];\r\n\t\t\t\t\tif (aSp.level <= spList.level[1] && aSp.time && (/1 (rea|bns)/i).test(aSp.time)) spList.notspells.push(spell);\r\n\t\t\t\t}\r\n\t\t\t}, \"\"\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Storing Spells\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"Casting a spell stored from a spell gem doesn't require attunement\",\r\n\t\t\t\"Only spells with a casting time of 1 action or 1 min or more can be stored in a spell gem\",\r\n\t\t\t\"Imbuing a spell gem requires casting a spell as normal, but the spell produces no effect\",\r\n\t\t\t\"I only need to provide half the costly material components for abjuration spells to imbue\"\r\n\t\t]\r\n\t}],\r\n\tchoices : [\"Obsidian (cantrip, uncommon)\", \"Lapis Lazuli (1st-level, uncommon)\", \"Quartz (2nd-level, rare)\", \"Bloodstone (3rd-level, rare)\", \"Amber (4th-level, very rare)\", \"Jade (5th-level, very rare)\", \"Topaz (6th-level, very rare)\", \"Star Ruby (7th-level, legendary)\", \"Ruby (8th-level, legendary)\", \"Diamond (9th-level, legendary)\"],\r\n\t\"obsidian (cantrip, uncommon)\" : {\r\n\t\tname : \"Spell Gem [Obsidian]\",\r\n\t\tsortname : \"Spell Gem  (cantrip) [Obsidian]\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This gem can store one cantrip. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,0],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"lapis lazuli (1st-level, uncommon)\" : {\r\n\t\tname : \"Spell Gem [Lapis Lazuli]\",\r\n\t\tsortname : \"Spell Gem (1st-level) [Lapis Lazuli]\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This gem can store one spell up to 1st-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack. If the spell's level is higher than I can cast, I need to make a DC 11 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,1],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"quartz (2nd-level, rare)\" : {\r\n\t\tname : \"Spell Gem [Quartz]\",\r\n\t\tsortname : \"Spell Gem (2nd-level) [Quartz]\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This gem can store one spell up to 2nd-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack. If the spell's level is higher than I can cast, I need to make a DC 12 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,2],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"bloodstone (3rd-level, rare)\" : {\r\n\t\tname : \"Spell Gem [Bloodstone]\",\r\n\t\tsortname : \"Spell Gem (3rd-level) [Bloodstone]\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This gem can store one spell up to 3rd-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 15 and +7 spell attack. If the spell's level is higher than I can cast, I need to make a DC 13 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,3],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"amber (4th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Amber]\",\r\n\t\tsortname : \"Spell Gem (4th-level) [Amber]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 4th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 15 and +9 spell attack. If the spell's level is higher than I can cast, I need to make a DC 14 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 15,\r\n\t\tfixedSpAttack : 9,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,4],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"jade (5th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Jade]\",\r\n\t\tsortname : \"Spell Gem (5th-level) [Jade]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 5th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 17 and +9 spell attack. If the spell's level is higher than I can cast, I need to make a DC 15 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,5],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"topaz (6th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Topaz]\",\r\n\t\tsortname : \"Spell Gem (6th-level) [Topaz]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 6th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 17, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 16 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 17,\r\n\t\tfixedSpAttack : 10,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,6],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"star ruby (7th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Star Ruby]\",\r\n\t\tsortname : \"Spell Gem (7th-level) [Star Ruby]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 7th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 18, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 17 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 18,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,7],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"ruby (8th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Ruby]\",\r\n\t\tsortname : \"Spell Gem (8th-level) [Ruby]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 8th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 18, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 18 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 18,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,8],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"diamond (9th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Diamond]\",\r\n\t\tsortname : \"Spell Gem (9th-level) [Diamond]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 9th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 19, +11 spell attack. If the spell's level is higher than I can cast, I need to make a DC 19 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 19,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,9],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"stonespeaker crystal\"] = {\r\n\tname : \"Stonespeaker Crystal\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This crystal has 10 charges, regaining 1d6+4 at dawn, which I can use to cast its spells. When I use its last charge, roll a d20. On a 1, it vanishes. It gives me adv. on Int (Investigation) checks. When I cast an abjuration spell, I can expend 1 charge per level of the spell to substitute one material component of the spell.\",\r\n\tdescriptionFull : \"Created by the stone giant librarians of Gravenhollow, this nineteen-inch-long shard of quartz grants you advantage on Intelligence (Investigation) checks while it is on your person.\\n   The crystal has 10 charges. While holding it, you can use an action to expend some of its charges to cast one of the following spells from it: Speak with Animals (2 charges), Speak with Dead (4 charges), or Speak with Plants (3 charges).\\n   When you cast a Divination spell, you can use the crystal in place of one material component that would normally be consumed by the spell, at a cost of 1 charge per level of the spell. The crystal is not consumed when used in this way.\\n   The crystal regains 1d6+4 expended charges daily at dawn. If you expend the crystal's last charge, roll a d20. On a 1, the crystal vanishes, lost forever.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"speak with animals\"],\r\n\t\tselection : [\"speak with animals\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"speak with plants\"],\r\n\t\tselection : [\"speak with plants\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"speak with dead\"],\r\n\t\tselection : [\"speak with dead\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tadvantages : [[\"Investigation\", true]]\r\n}\r\nMagicItemsList[\"wand of viscid globs\"] = {\r\n\tname : \"Wand of Viscid Globs\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This black wand has 7 charges, regaining 1d6+1 at midnight. If its last charge is used, roll a d20. On a 1, it melts. As an action, I can expend 1 charge to make a ranged attack roll on a target in 60 ft (with my spellcasting ability). On a hit, it is restrained for 1 hour. The wand is destroyed if exposed to sunlight for 1 hour.\",\r\n\tdescriptionFull : \"Crafted by the drow, this slim black wand has 7 charges. While holding it, you can use an action to expend 1 of its charges to cause a small glob of viscous material to launch from the tip at one creature within 60 feet of you. Make a ranged attack roll against the target, with a bonus equal to your spellcasting modifier (or your Intelligence modifier, if you don't have a spellcasting modifier) plus your proficiency bonus. On a hit, the glob expands and dries on the target, which is restrained for 1 hour. After that time, the viscous material cracks and falls away.\\n   Applying a pint or more of alcohol to the restrained creature dissolves the glob instantly, as does the application of oil of etherealness or universal solvent. The glob also dissolves instantly if exposed to sunlight. No other nonmagical process can remove the viscous material until it deteriorates on its own.\\n   The wand regains 1d6+1 expended charges daily at midnight. If you expend the wands last charge, roll a d20. On a 1, the wand melts into harmless slime and is destroyed.\\n   A wand of viscous globs is destroyed if exposed to sunlight for 1 hour without interruption.\",\r\n\tweight : 1,\r\n\tusages : 7,\r\n\trecovery : \"Midnight\",\r\n\tadditional : \"regains 1d6+1\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*wand)(?=.*viscid)(?=.*globs).*$/i,\r\n\t\tname : \"Wand of Viscid Globs\",\r\n\t\tsource : [[\"OotA\", 223]],\r\n\t\tability : 4,\r\n\t\ttype : \"Spell\",\r\n\t\tdamage : [\"\\u2015\", \"\", \"Restrained\"],\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"1 charge; Lasts 1 hour or until exposed to sunlight, a pint of alcohol, oil of etherealness, or universal solvent\",\r\n\t\tabilitytodamage : false,\r\n\t\tuseSpellcastingAbility : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\n// pub_20151103_SCAG.js\r\n// This file adds all the player-material from Sword Coast Adventure Guide to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.S={\r\n\tname : \"Sword Coast Adventure Guide\",\r\n\tabbreviation : \"SCAG\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/sword-coast-adventurers-guide\",\r\n\tdate : \"2015/11/03\"\r\n};\r\n\r\n// Races\r\nRaceList[\"ghostwise halfling\"] = {\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*ghostwise).*$/i,\r\n\tname : \"Ghostwise halfling\",\r\n\tsortname : \"Halfling, Ghostwise\",\r\n\tplural : \"Ghostwise halflings\",\r\n\tsource : [[\"S\", 110]],\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Ghostwise Halfling (+2 Dexterity, +1 Wisdom)\" + (typePF ? \"\\n\" : \" \") + \"\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\" + (typePF ? \"\\n\" : \" \") + \"\\nHalfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\" + (typePF ? \"\\n\" : \" \") + \"\\nSilent Speech: I can speak telepathically to any one creature within 30 feet of me. It only understands me if we share a language.\"\r\n};\r\nRaceList[\"gray dwarf\"] = {\r\n\tregExpSearch : /^((?=.*\\bduergars?\\b)|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(grey|gray|underdark)\\b))).*$/i,\r\n\tname : \"Duergar\",\r\n\tsortname : \"Dwarf, Gray (Duergar)\",\r\n\tsource : [[\"S\", 104], [\"MToF\", 81]],\r\n\tplural : \"Duergar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\", \"Undercommon\"],\r\n\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\r\n\tsavetxt : { adv_vs : [\"charmed\", \"illusions\", \"paralyzed\", \"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (3'8\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (115 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (110 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (55 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Duergar (+2 Constitution, +1 Strength)\\nStonecunning: Whenever I make an Int (History) check related to the origin of stonework, I am considered proficient in the skill and add double my proficiency bonus to the check.\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nDuergar Magic: 3rd: Enlarge/Reduce to enlarge; 5th: Invisibility. If not in direct sunlight,\" + (!typePF ? \"\\n\" : \" \") + \"I can cast both spells on myself once per long rest without material components, using Int.\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"enlarge\" : {\r\n\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"enlarge/reduce\" : {\r\n\t\t\t\t\tname : \"Enlarge\",\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"I'm enlarged, adv. on Str checks/aves and +1d4 on weapon dmg; Can't cast this in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I cast Enlarge/Reduce while I'm not in direct sunlight, but only to enlarge myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Me and my worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Invisibility while I'm not in direct sunlight, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n// Racial variants\r\nAddRacialVariant(\"half-elf\", \"aquatic\", {\r\n\tregExpSearch : /aquatic/i,\r\n\tname : \"Half-aquatic elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-aquatic elves\",\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Aquatic Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nSwimming Speed:\\n   My aquatic heritage gives me a swimming speed of 30 feet.\"\r\n});\r\nAddRacialVariant(\"half-elf\", \"cantrip\", {\r\n\tregExpSearch : /cantrip/i,\r\n\tname : \"Half-high elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-high elves\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-High Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nCantrip:\\n   I know one cantrip of my choice from the wizard spell list.\\n   Intelligence is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"High Elf Cantrip\",\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n});\r\nAddRacialVariant(\"half-elf\", \"drow magic\", {\r\n\tregExpSearch : /^(?=.*drow)(?=.*magic).*$/i,\r\n\tname : \"Half-drow\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-drow\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-drow (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nDrow Magic:\\n   I know the Dancing Lights cantrip.\\n   Once I reach 3rd level, I can cast the Faerie Fire spell once per long rest.\\n   Once I reach 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Drow Magic (level 1)\",\r\n\t\tspells : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"faerie fire\" : {\r\n\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"half-elf\", \"elf weapon training\", {\r\n\tregExpSearch : /^(?=.*\\b(elf|elven)\\b)(?=.*weapon)(?=.*training).*$/i,\r\n\tsource : [[\"S\", 116]],\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Elf (+2 Charisma and +1 to two other ability scores of my choice)\",\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]]\r\n});\r\nAddRacialVariant(\"half-elf\", \"fleet of foot\", {\r\n\tregExpSearch : /^(?=.*fleet)(?=.*\\b(foot|feet)\\b).*$/i,\r\n\tname : \"Half-wood elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-wood elves\",\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Wood Elf (+2 Charisma and +1 to two other ability scores of my choice)\"\r\n});\r\nAddRacialVariant(\"half-elf\", \"mask of the wild\", {\r\n\tregExpSearch : /^(?=.*\\bmasks?\\b)(?=.*\\bwilds?\\b).*$/i,\r\n\tname : \"Half-wood elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-wood elves\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Wood Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nMask of the Wild:\\n   I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n});\r\nAddRacialVariant(\"tiefling\", \"devil's tongue\", {\r\n\tregExpSearch : /^(?=.*devil)(?=.*tongue).*$/i,\r\n\tname : \"Devil's tongue tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Devil's tongue tieflings\",\r\n\ttrait : \"Devil's Tongue Tiefling (+1 Intelligence, +2 Charisma)\\n\\nDevil's Tongue:\\n   I know the Vicious Mockery cantrip.\\n   At 3rd level, I can cast the Charm Person spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Enthrall spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Devil's Tongue (level 1)\",\r\n\t\tspells : [\"vicious mockery\"],\r\n\t\tselection : [\"vicious mockery\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"charm person\" : {\r\n\t\t\tname : \"Devil's Tongue (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Devil's Tongue (level 3)\",\r\n\t\t\t\tspells : [\"charm person\"],\r\n\t\t\t\tselection : [\"charm person\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"charm person\" : {\r\n\t\t\t\t\tdescription : \"2 humanoids, max 30 ft apart, save or charmed; advantage on save if I or my allies are fighting it\",\r\n\t\t\t\t\tchanges : \"Using Devil's Tongue, I cast Charm Person as if I'm using a 2nd-level spell slot, affecting 2 humanoids.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"enthrall\" : {\r\n\t\t\tname : \"Devil's Tongue (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Devil's Tongue (level 5)\",\r\n\t\t\t\tspells : [\"enthrall\"],\r\n\t\t\t\tselection : [\"enthrall\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"tiefling\", \"hellfire\", {\r\n\tregExpSearch : /hellfire/i,\r\n\tname : \"Hellfire tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Hellfire tieflings\",\r\n\ttrait : \"Hellfire Tiefling (+1 Intelligence, +2 Charisma)\\n\\nInfernal Legacy (Hellfire):\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Burning Hands spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tfeatures : {\r\n\t\t\"burning hands\" : {\r\n\t\t\tname : \"Hellfire Legacy (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Hellfire Legacy (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\tdescription : \"4d6 Fire damage; save halves; unattended flammable objects ignite\",\r\n\t\t\t\t\tchanges : \"Using Hellfire Legacy, I cast Burning Hands as if I'm using a 2nd-level spell slot, doing 4d6 Fire damage.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Hellfire Legacy (level 5)\",\r\n\t\t\tlimfeaname : \"Darkness\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Infernal Legacy (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"tiefling\", \"winged\", {\r\n\tregExpSearch : /wing/i,\r\n\tname : \"Winged tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Winged tieflings\",\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\ttrait : \"Winged Tiefling (+1 Intelligence, +2 Charisma)\\n\\nWings:\\n   I have bat-like wings sprouting from my shoulder blades that give me flying speed of 30 ft when I'm not wearing heavy armor.\",\r\n\tfeatures : \"\",\r\n\tspellcastingAbility : \"\",\r\n\tspellcastingBonus : \"\"\r\n});\r\nRunFunctionAtEnd(function() {\r\n\tif (!RaceList.tiefling) return;\r\n\tvar tRace = {\r\n\t\tobjname : \"feral tiefling\",\r\n\t\treplaceTraitTxt : [\"+1 Intelligence, +2 Charisma\", \"+2 Dexterity, +1 Intelligence\"],\r\n\t\treplaceNameTxt : [\"tiefling\", \"feral tiefling\"],\r\n\t\tregExpSearch : /^(?=.*feral)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\t\tname : \"Feral tiefling\",\r\n\t\tsortname : \"Tiefling, Feral\",\r\n\t\tsource : [[\"S\", 118]],\r\n\t\tplural : \"Feral tieflings\",\r\n\t\tscores : [0, 2, 0, 1, 0, 0],\r\n\t\ttrait : \"Feral Tiefling (+2 Dexterity, +1 Intelligence)\\n\\nInfernal Legacy:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Hellish Rebuke spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\"\r\n\t};\r\n\t// Create the RaceList entry\r\n\tRaceList[tRace.objname] = newObj(RaceList.tiefling);\r\n\tfor (var rFea in tRace) {\r\n\t\tif ((/objname|replaceTraitTxt|replaceNameTxt/).test(rFea)) continue;\r\n\t\tRaceList[tRace.objname][rFea] = tRace[rFea];\r\n\t};\r\n\t// Create feral tiefling variants\r\n\tRaceList[tRace.objname].variants.forEach( function(nVar) {\r\n\t\tRaceSubList[tRace.objname + \"-\" + nVar] = newObj(RaceSubList[\"tiefling-\" + nVar]);\r\n\t\tvar thisVar = RaceSubList[tRace.objname + \"-\" + nVar];\r\n\t\tthisVar.trait = thisVar.trait.replace(tRace.replaceTraitTxt[0], tRace.replaceTraitTxt[1]);\r\n\t\tthisVar.trait = thisVar.trait.replace(tRace.replaceNameTxt[0].capitalize(), tRace.replaceNameTxt[1].capitalize());\r\n\t\tthisVar.name = thisVar.name.replace(tRace.replaceNameTxt[0], tRace.replaceNameTxt[1]);\r\n\t\tthisVar.plural = thisVar.plural.replace(tRace.replaceNameTxt[0], tRace.replaceNameTxt[1]);\r\n\t});\r\n});\r\n\r\n// Subclasses\r\nAddSubClass(\"barbarian\", \"battlerager\", {\r\n\tregExpSearch : /(battlerager|kuldjargh)/i,\r\n\tsubname : \"Path of the Battlerager\",\r\n\tsubnameShort: \"Battlerager\",\r\n\tfullname : \"Battlerager\",\r\n\tsource : [[\"S\", 121]],\r\n\tabilitySave : 6,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Battlerager Armor\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with spiked armor both as an armor and as a weapon\",\r\n\t\t\t\t\"As a bonus action while raging, I can attack once with my armor spikes\",\r\n\t\t\t\t\"With my spiked armor I do 3 piercing damage when I use my Attack action to grapple\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Armor Spikes attack (in rage)\"]],\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?!.*(dragon|draconic|beast))(?=.*spike(d|s))(?=.*armou?r).*$/i,\r\n\t\t\t\tname : \"Spiked armor\",\r\n\t\t\t\tsource : [[\"S\", 121]],\r\n\t\t\t\ttype : \"medium\",\r\n\t\t\t\tac : 14,\r\n\t\t\t\tstealthdis : true,\r\n\t\t\t\tweight : 45\r\n\t\t\t}],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*armou?r)(?=.*spike).*$/i,\r\n\t\t\t\tname : \"Armor spikes\",\r\n\t\t\t\tsource : [[\"S\", 121]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"armor spikes\",\r\n\t\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Does 3 piercing damage when grappling during my Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tweaponProfs : [false, false, [\"armor spikes\"]],\r\n\t\t\teval : function() {\r\n\t\t\t\tAddString('Proficiency Armor Other Description', 'Spiked Armor', ', ');\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tRemoveString('Proficiency Armor Other Description', 'Spiked Armor');\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Reckless Abandon\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"If I use Reckless Attack during rage, I also gain temporary HP equal to my Con mod\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Battlerager Charge\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"As a bonus action while raging, I can use the Dash action\"),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spiked Retribution\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I'm hit in melee by an attacker within 5 ft, it takes 3 piercing damage\",\r\n\t\t\t\t\"This only works while I'm wearing spiked armor, in rage, and I'm not incapacitated\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"arcana domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(arcana|magic|wizardry)).*$/i,\r\n\tsubname : \"Arcana Domain\",\r\n\tsource : [[\"S\", 125]],\r\n\tspellcastingExtra : [\"detect magic\", \"magic missile\", \"magic weapon\", \"nystul's magic aura\", \"dispel magic\", \"magic circle\", \"arcane eye\", \"leomund's secret chest\", \"planar binding\", \"teleportation circle\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Arcane Initiate\",\r\n\t\t\tsource : [[\"S\", 125]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with Arcana and two wizard cantrips that count as cleric cantrips\"),\r\n\t\t\tskills : [\"Arcana\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Initiate\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Arcane Abjuration\",\r\n\t\t\tsource : [[\"S\", 125]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, one celestial, elemental, fey, or fiend within 30 ft must make a Wis save\",\r\n\t\t\t\t\"If it fails and is able to see/hear me, it is turned for 1 min or until it takes damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\",\r\n\t\t\t\t\"If its CR is low enough and it is not on its home plane, it is banished for 1 min instead\",\r\n\t\t\t\t\"Banished: sent to home plane, reappearing where it was if the effect ends before 1 min\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"CR 1/2 or lower\", \"CR 1/2 or lower\", \"CR 1/2 or lower\", \"CR 1 or lower\", \"CR 1 or lower\", \"CR 1 or lower\", \"CR 2 or lower\", \"CR 2 or lower\", \"CR 2 or lower\", \"CR 3 or lower\", \"CR 3 or lower\", \"CR 3 or lower\", \"CR 4 or lower\", \"CR 4 or lower\", \"CR 4 or lower\", \"CR 4 or lower\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spell Breaker\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I restore HP to an ally with a 1st-level or higher spell, I can also end one spell\",\r\n\t\t\t\t\"The chosen spell on the ally ends if it is equal or lower level to the spell slot level used\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"mass heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = \"Heal 700 hp, split over crea in range; also cures blindness, deafness, and all diseases; spell breaker\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"power word heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/heals all.*/i, \"full hp; no longer charmed, frightened, paralyzed, stunned; can stand up as rea; spell breaker\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"goodberry\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Create \", \"\").replace(\"lose potency after \", \"remain\");\r\n\t\t\t\t\t\t\tcase \"regenerate\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\" for rest of duration\", \"\");\r\n\t\t\t\t\t\t\tcase \"heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"all diseases\", \"diseases\");\r\n\t\t\t\t\t\t\tcase \"cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"healing word\" :\r\n\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\tcase \"mass cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"mass healing word\" :\r\n\t\t\t\t\t\t\tcase \"prayer of healing\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/creatures?/i, \"crea\").replace(\"within\", \"in\").replace(\"spellcasting ability modifier\", \"spellcasting ability mod\") + \"; spell breaker\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast a spell that restores hit points to another creature than myself, I can also end a spell affecting the target. This spell can be of the same level of the spell slot used to cast the healing spell, or lower.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Arcane Mastery\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add four wizards spells, a 6th, 7th, 8th, and 9th-level spell, to my domain spells\",\r\n\t\t\t\t\"As any domain spell, these spells are automatically prepared and count as cleric spells\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Mastery (6)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [6, 6],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (7)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [7, 7],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (8)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [8, 8],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (9)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [9, 9],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"purple dragon knight\", {\r\n\tregExpSearch : /^(((?=.*purple)(?=.*dragon)(?=.*knight))|(?=.*banneret)).*$/i,\r\n\tsubname : \"Purple Dragon Knight\",\r\n\tsubnameShort : \"Purple Dragon\",\r\n\tfullname : \"Purple Dragon Knight\",\r\n\tsource : [[\"S\", 128]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Rallying Cry\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When I use Second Wind, I also heal three allies within 60 ft that can see or hear me\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n + \" HP\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Second Wind (+Rallying Cry)\", \"Second Wind\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Royal Envoy\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the Persuasion skill and I gain expertise with the Persuasion skill\",\r\n\t\t\t\t\"If already proficient, I can choose Animal Handling, Insight, Intimidation, or Performance\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Persuasion proficiency and expertise; If already proficient, choose one from Animal Handling, Insight, Intimidation, or Performance\",\r\n\t\t\tskills : [\"Persuasion\", \"full\"]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Inspiring Surge\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my Action Surge, I can inspire an ally within 60 ft that can see or hear me\",\r\n\t\t\t\t\"The ally can then use its reaction to make one melee or ranged weapon attack\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n < 18 ? \"1 ally\" : \"2 allies\"; // level 18 per errata\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Bulwark\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Indomitable to reroll a Int, Wis, or Cha save, I can extend it to an ally\",\r\n\t\t\t\t\"The ally can reroll its failed saving throw against the same effect and take the result\",\r\n\t\t\t\t\"It only works if not incapacitated and the ally is within 60 ft and can see or hear me\",\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the long death\", {\r\n\tregExpSearch : /^(?=.*\\blong)(?=.*\\b(death|dead))((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Long Death\",\r\n\tsubnameShort: \"Long Death\",\r\n\tsource : [[\"S\", 130]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Touch of Death\",\r\n\t\t\tsource : [[\"S\", 130]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"If I reduce someone within 5 ft to 0 HP, I gain Wis mod + monk level temporary HP\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hour of Reaping\",\r\n\t\t\tsource : [[\"S\", 130]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures within 30 feet of me must make a Wisdom saving throw\",\r\n\t\t\t\t\"On a failed save the creature is frightened until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Mastery of Death\",\r\n\t\t\tsource : [[\"S\", 131]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tadditional : \"1 ki point\",\r\n\t\t\tdescription : desc(\"When I'm reduced to 0 HP, I can expend 1 ki point to have 1 HP instead\"),\r\n\t\t\t\"touch of the long death\" : {\r\n\t\t\t\tname : \"Touch of the Long Death\",\r\n\t\t\t\textraname : \"Way of the Long Death 17\",\r\n\t\t\t\tsource : [[\"S\", 131]],\r\n\t\t\t\tadditional: \"1-10 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a target within 5 ft takes 2d10 necrotic damage per ki point I spent\",\r\n\t\t\t\t\t\"It can make a Constitution saving throw to half the damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"touch of the long death\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the sun soul\", {\r\n\tregExpSearch : /^(?=.*\\bsun)(?=.*\\b(soul|spirit))((?=.*(warrior|monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Sun Soul\",\r\n\tsubnameShort: \"Sun Soul\",\r\n\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional : \"1 ki point for 2 extra attacks\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a ranged spell attack that I can use as an attack in the Attack action\",\r\n\t\t\t\t\"If I do this and spend 1 ki point, I can make 2 of these attacks as a bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (2\\xD7 with Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*radiant)(?=.*(sun|light))(?=.*bolt).*$/i,\r\n\t\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 4, \"radiant\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"If used in an Attack action, spend 1 ki point to use it twice as a bonus action\",\r\n\t\t\t\tmonkweapon : true,\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"searing arc strike\" : {\r\n\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\textraname : \"Way of the Sun Soul 6\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"After taking the Attack action, I can cast Burning Hands as a bonus action [PHB 220]\",\r\n\t\t\t\t\t\"For every additional ki point I spend, Burning hands is cast at 1 higher spell level\",\r\n\t\t\t\t\t\"The maximum total ki points I can spend for this (including the 2) is half my Monk level\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\t\tvar xtrKi = Math.max(0,Math.floor(n/2) - 2);\r\n\t\t\t\t\treturn \"2 ki points + max \" + xtrKi + \" ki point\" + (xtrKi == 1 ? \"\" : \"s\");\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (after Attack action)\"]],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tdescription : \"3d6+1d6/extra Ki Fire dmg; save halves; unattended flammable objects ignite (ki max 1/2 monk lvl)\",\r\n\t\t\t\t\t\tchanges : \"After I use the Attack action, I can cast Burning Hands as a bonus action by spending 2 ki points. I can even spend additional ki points to increase its spell level. The total amount of ki points I can spend on it is half my monk level.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"searing arc strike\",\r\n\t\t\t\tminlevel : 6\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Searing Sunburst\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, anyone in a 20-ft radius light on a point within 150 ft makes a Con save\",\r\n\t\t\t\t\"If failed and not behind opaque total cover, take 2d6 (+ 2d6/ki point) radiant damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : \"0 ki points + max 3 ki points\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*searing)(?=.*sunburst).*$/i,\r\n\t\t\t\tname : \"Searing Sunburst\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [2, 6, \"radiant\"],\r\n\t\t\t\trange : \"150 ft\",\r\n\t\t\t\tdescription : \"All in 20-ft radius; Con save - success no damage; +2d6 damage per ki point (max 3 ki)\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : \"monk\",\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sun Shield\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, when I'm hit by a melee attack, I can deal 5 + Wis mod radiant damage\",\r\n\t\t\t\t\"I can only do this while my light aura is on; I can turn it on/off as a bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start/stop)\"], [\"reaction\", \" (hit in melee)\"]],\r\n\t\t\tadditional : \"30-ft rad bright + 30-ft dim light\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the crown\", {\r\n\tregExpSearch : /^(?=.*(crown|king|country))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))).*$/i,\r\n\tsubname : \"Oath of the Crown\",\r\n\tsubnameShort: \"Crown\",\r\n\tsource : [[\"S\", 133]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Champion Challenge\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have any chosen creatures within 30 ft of me make a Wis save\",\r\n\t\t\t\t\"If failed, a target is unable to willingly move more than 30 ft away from me\",\r\n\t\t\t\t\"The effect ends if I'm incapacitated, die, or it is moved more than 30 ft away from me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]], // changed to bonus action per errata (v1.0, 2017)\r\n\t\t\tspellcastingExtra : [\"command\", \"compelled duel\", \"warding bond\", \"zone of truth\", \"aura of vitality\", \"spirit guardians\", \"banishment\", \"guardian of faith\", \"circle of power\", \"geas\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Turn the Tide\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, any chosen creatures within 30 ft that can hear me regains HP\",\r\n\t\t\t\t\"Each regain 1d6 + my Charisma modifier HP, up to half of its total HP\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Divine Allegiance\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature within 5 feet of me takes damage, I can substitute my HP for it\",\r\n\t\t\t\t\"The creature takes no damage and I take all of it; this damage can't be prevented\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Unyielding Spirit\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"I have advantage on saving throws against effects that paralyze or stun\"),\r\n\t\t\tsavetxt : { adv_vs : [\"paralyzed\", \"stunned\"] }\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Exalted Champion\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I gain the following benefits for 1 hour or until I'm incapacitated:\",\r\n\t\t\t\t\" \\u2022 \" + \"Resistance to bludgeoning, piercing, and slashing damage from nonmagical weapons\",\r\n\t\t\t\t\" \\u2022 \" + \"My allies within 30 ft of me and I have advantage on Wisdom and Death saves\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"mastermind\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*(mastermind|strategist)).*$/i,\r\n\tsubname : \"Mastermind\",\r\n\tfullname : \"Mastermind\",\r\n\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Master of Intrigue\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with disguise kits, forgery kits, one gaming set, and two languages\",\r\n\t\t\t\t\"I can mimic speech patterns and accents if I've heard them for at least 1 minute\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [2],\r\n\t\t\ttoolProfs : [\"Disguise kit\", \"Forgery kit\", [\"Gaming set\", 1]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Master of Tactics\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use the Help action as a bonus action\",\r\n\t\t\t\t\"This even works if the ally attacks a target within 30 ft of me that can see or hear me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Insightful Manipulator\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By spending 1 minute observing/interacting outside of combat I can learn capabilities\",\r\n\t\t\t\t\"The DM tells me if the target is my equal, superior, or inferior in regard to two things:\",\r\n\t\t\t\t\" - Intelligence score    - Wisdom score    - Charisma score    - Class levels (if any)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Misdirection\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, I can redirect an attack meant for me to a creature within 5 ft of me\",\r\n\t\t\t\t\"This only works if the creature is providing me with cover against the attack\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Soul of Deceit\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My thoughts can't be read by telepathy or similar means; I can project false thoughts\",\r\n\t\t\t\t\"For that, I must pass a Cha (Deception) vs. Wis (Insight) check to fool the mind reader\",\r\n\t\t\t\t\"Magic always determines I'm truthful; I can't be magically compelled to tell the truth\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"swashbuckler\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*swashbuckl).*$/i,\r\n\tsubname : \"Swashbuckler\",\r\n\tfullname : \"Swashbuckler\",\r\n\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fancy Footwork\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Enemies I make a melee attack against in my turn can't use opportunity attacks on me\",\r\n\t\t\t\t\"This lasts until the end of my current turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rakish Audacity\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I don't need advantage to sneak attack if my target is the only one within 5 ft of me\",\r\n\t\t\t\t\"I still can't sneak attack if I have disadv.; I add my Charisma modifier to initiative rolls\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Cha|0)\", text : \"I can add my Charisma modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Panache\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can beguile a creature that hears and understands me, for 1 minute\",\r\n\t\t\t\t\"It must succeed a Wis (Insight) check opposed by my Cha (Persuasion) or be affected as:\",\r\n\t\t\t\t\"\\u2022 A hostile target gains disadv. on attacks and can't do opportunity attacks vs. not-me\",\r\n\t\t\t\t\"  This effect ends if an ally attacks or casts a spell vs. it, or if it and I are 60 ft apart\",\r\n\t\t\t\t\"\\u2022 Targets that are not hostile are charmed and regard me as a friendly acquaintance\",\r\n\t\t\t\t\"  This effect ends if me or an ally do anything harmful to it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Elegant Maneuver\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc(\"As a bonus action, I can gain adv. on my next Dex (Acrobatics) or Str (Athletics) check\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Master Duelist\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"Once per short rest, when I miss with an attack roll, I can roll again with advantage\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"storm sorcery\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))((?=.*(storm|tempest|hurricane))|((?=.*air)(?=.*element))).*$/i,\r\n\tsubname : \"Storm Sorcery\",\r\n\tfullname : \"Storm Sorcerer\",\r\n\tsource : [[\"S\", 137], [\"X\", 51]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Wind Speaker\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I can speak, read, and write Primordial (and its dialects Aquan, Auran, Ignan, Terran)\"),\r\n\t\t\tlanguageProfs : [\"Primordial\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Tempestuous Magic\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, before or after casting a 1st-level or higher spell, I can fly 10 ft\",\r\n\t\t\t\t\"This movement doesn't provoke opportunity attacks as whirling gust of air surround me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with casting)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Heart of the Storm\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to lightning and thunder damage\",\r\n\t\t\t\t\"When I start casting a 1st-level or higher spell that deals lightning or thunder damage,\",\r\n\t\t\t\t\"I deal lightning or thunder damage to creatures of my choice that I can see within 10 ft\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : Math.floor(n/2) + \" damage\"; }),\r\n\t\t\tdmgres : [\"Lightning\", \"Thunder\"]\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Storm Guide\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can stop rain around me in 20-ft radius; bonus action for it to resume\",\r\n\t\t\t\t\"As a bonus action, I can choose the direction of wind around me in a 100-ft radius\",\r\n\t\t\t\t\"This lasts until the end of my next turn and doesn't alter the wind's speed\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Storm's Fury\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when hit by a melee attack, I can deal lightning damage to the attacker\",\r\n\t\t\t\t\"The attacker must also make a Strength save or be pushed up to 20 ft away from me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : n + \" lightning damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Wind Soul\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have immunity to lightning and thunder damage and gain magical 60 ft fly speed\",\r\n\t\t\t\t\"As an action, I reduce my fly speed to 30 ft and give allies 30 ft fly speed for 1 hour\",\r\n\t\t\t\t\"I can do this once per short rest for up to 3 + my Charisma modifier allies within 30 ft\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tsavetxt : { immune : [\"lightning\", \"thunder\"] },\r\n\t\t\tspeed : { fly : { spd : \"fixed 60\", enc : \"fixed 60\" } },\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the undying\", {\r\n\tregExpSearch : /^(?!.*light)(?=.*warlock)(?=.*(immortal|undying|neverending|unending)).*$/i,\r\n\tsubname : \"the Undying\",\r\n\tsource : [[\"S\", 139]],\r\n\tspellcastingExtra : [\"false life\", \"ray of sickness\", \"blindness/deafness\", \"silence\", \"feign death\", \"speak with dead\", \"aura of life\", \"death ward\", \"contagion\", \"legend lore\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Among the Dead\",\r\n\t\t\tsource : [[\"S\", 139]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Spare the Dying cantrip and gain advantage on saving throws vs. diseases\",\r\n\t\t\t\t\"If an undead targets me directly with an attack or spell, it must make a Wisdom save\",\r\n\t\t\t\t\"On a fail, it must choose a new target or forfeit its attack or harmful spell\",\r\n\t\t\t\t\"On a success or if I attack or cast a harmful spell on it, it is immune for 24 hours\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"disease\"] },\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Among the Dead\",\r\n\t\t\t\tspells : [\"spare the dying\"],\r\n\t\t\t\tselection : [\"spare the dying\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Defy Death\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I regain 1d8 + my Constitution modifier in HP when I succeed on a Death saving throw\",\r\n\t\t\t\t\"I also regain this amount whenever I use Spare the Dying to stabilize a creature\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Undying Nature\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can hold my breath indefinitely; I don't require food, water, or sleep (I still need rest)\",\r\n\t\t\t\t\"I age more slowly, only 1 year for every 10 years that pass; I can't be magically aged\",\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Indestructible Life\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"As a bonus action, I can regain HP and reattach severed body parts\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : \"1d8 + \" + n + \" HP\"; })\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"bladesinging\", {\r\n\tregExpSearch : /(bladesinging|bladesinger)/i,\r\n\tsubname : \"Tradition of Bladesinging\",\r\n\tsubnameShort: \"Bladesinging\",\r\n\tfullname : \"Bladesinger\",\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Training in War and Song\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain proficiency with light armor, a one-handed melee weapon, and Performance\"),\r\n\t\t\tarmorProfs : [true, false, false, false],\r\n\t\t\tskills : [\"Performance\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Bladesong\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can start the bladesong for 1 minute; I can dismiss it at any time\",\r\n\t\t\t\t\"It stops when I wear a shield, medium or heavy armor, or attack with two hands\",\r\n\t\t\t\t\"While the bladesong is active I have the following benefits:\",\r\n\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to AC\",\r\n\t\t\t\t\" \\u2022 Base walking speed increases by 10 foot\",\r\n\t\t\t\t\" \\u2022 Advantage on Dexterity (Acrobatics) checks\",\r\n\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to concentration saves for maintaining conc. on a spell\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start)\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Extra Attack\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can attack twice instead of once when I take the Attack action on my turn\",\r\n\t\t\t\t\"Moreover, I can cast one of my cantrips in place of one of those attacks\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Song of Defense\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while my bladesong is active, I can expend a spell slot to reduce damage\",\r\n\t\t\t\t\"The damage I take is reduced by 5 for every level of the spell slot I expend\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in bladesong)\"]]\r\n\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Song of Victory\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"While my bladesong is active, I add my Int mod (min 1) to melee weapon attack damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/blade.?song/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(1, Number(What('Int Mod')));\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Bladesong' in the name or description of a melee weapon, it gets my Intelligence modifier added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// New Totem Warrior options\r\nif (ClassSubList[\"barbarian-totem warrior\"]) {\r\n\tvar SCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature3.1\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Elk Spirit\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"While raging without heavy armor, my base walking speed increases by 15 ft\")\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Tiger Spirit\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"While raging, I can add 10 ft to my long jump and 3 ft to my high jump distance\")\r\n\t\t});\r\n\t}\r\n\tSCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature6\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Aspect of the Elk\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While mounted or on foot and not incapacitated, my travel pace is doubled\",\r\n\t\t\t\t\"I can extend this benefit to up to ten companions, while they are within 60 ft of me\"\r\n\t\t\t])\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Aspect of the Tiger\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"I gain proficiency with two skills chosen from: Athletics, Acrobatics, Stealth, or Survival\"),\r\n\t\t\tskillstxt : \"Choose two from Athletics, Acrobatics, Stealth, and Survival\"\r\n\t\t});\r\n\t}\r\n\tSCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature14\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Elk Attunement\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can move through a Large or smaller creature's space\",\r\n\t\t\t\t\"It must make a Strength save of DC 8 + Strength modifier + Proficiency bonus\",\r\n\t\t\t\t\"If failed, it is knocked prone and takes 1d12 + Strength modifier bludgeoning damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Tiger Attunement\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can make a melee weapon attack on these conditions:\",\r\n\t\t\t\t\" \\u2022 I move at least 20 ft in a straight line towards the target that is Large or smaller\",\r\n\t\t\t\t\" \\u2022 I make a melee weapon attack against it after the bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t});\r\n\t}\r\n}\r\n\r\n// Backgrounds\r\nBackgroundList[\"far traveler\"] = {\r\n\tregExpSearch : /^(?=.*far)(?=.*traveler).*$/i,\r\n\tname : \"Far Traveler\",\r\n\tsource : [[\"S\", 148], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Perception\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Gaming set or musical instrument\", \"\", \"\"],\r\n\t\t[\"Poorly wrought maps\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Piece of jewelry worth 10 gp\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"All Eyes on You\",\r\n\ttrait : [\r\n\t\t\"I have different assumptions from those around me concerning personal space, blithely invading others' space in innocence, or reacting to ignorant invasion of my own.\",\r\n\t\t\"I have my own ideas about what is and is not food, and I find the eating habits of those around me fascinating, confusing, or revolting.\",\r\n\t\t\"I have a strong code of honor or sense of propriety that others don't comprehend.\",\r\n\t\t\"I express affection or contempt in ways that are unfamiliar to others.\",\r\n\t\t\"I honor my deities through practices that are foreign to this land.\",\r\n\t\t\"I begin or end my day with small traditional rituals that are unfamiliar to those around me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Open\",\r\n\t\t\t\"Open: I have much to learn from the kindly folk I meet along my way. (Good)\"\r\n\t\t],\r\n\t\t[\"Reserved\",\r\n\t\t\t\"Reserved: As someone new to these strange lands, I am cautious and respectful in my dealings. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Adventure\",\r\n\t\t\t\"Adventure: I'm far from home, and everything is strange and wonderful! (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Cunning\",\r\n\t\t\t\"Cunning: Though I may not know their ways, neither do they know mine, which can be to my advantage. (Evil)\"\r\n\t\t],\r\n\t\t[\"Inquisitive\",\r\n\t\t\t\"Inquisitive: Everything is new, but I have a thirst to learn. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Suspicious\",\r\n\t\t\t\"Suspicious: I must be careful, for I have no way of telling friend from foe here. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"So long as I have this token from my homeland, I can face any adversity in this strange land.\",\r\n\t\t\"The gods of my people are a comfort to me so far from home.\",\r\n\t\t\"I hold no greater cause than my service to my people.\",\r\n\t\t\"My freedom is my most precious possession. I'll never let anyone take it from me again.\",\r\n\t\t\"I'm fascinated by the beauty and wonder of this new land.\",\r\n\t\t\"Though I had no choice, I lament having to leave my loved one(s) behind. I hope to see them again one day.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am secretly (or not so secretly) convinced of the superiority of my own culture over that of this foreign land.\",\r\n\t\t\"I pretend not to understand the local language in order to avoid interactions I would rather not have.\",\r\n\t\t\"I have a weakness for the new intoxicants and other pleasures of this land.\",\r\n\t\t\"I don't take kindly to some of the actions and motivations of the people of this land, because these folk are different from me.\",\r\n\t\t\"I consider the adherents of other gods to be deluded innocents at best, or ignorant fools at worst.\",\r\n\t\t\"I have a weakness for the exotic beauty of the people of these lands.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Why You Are Here\",\r\n\t\t\"Emissary\",\r\n\t\t\"Exile\",\r\n\t\t\"Fugitive\",\r\n\t\t\"Pilgrim\",\r\n\t\t\"Sightseer\",\r\n\t\t\"Wanderer\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Background variants\r\nAddBackgroundVariant(\"soldier\", \"city watch\", {\r\n\tregExpSearch : /^(?=.*city)(?=.*(watch|guard)).*$/i,\r\n\tname : \"City Watch\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Insight\"],\r\n\tequipright : [\r\n\t\t[\"Uniform of my unit\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Horn\", \"\", 2],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Watcher's Eye\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"clan crafter\", {\r\n\tregExpSearch : /^(?=.*clan)(?=.*(crafter|smith|builder|miner)).*$/i,\r\n\tname : \"Clan Crafter\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Insight\"],\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Maker's mark chisel\", \"\", 0.5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins and 10 gp gem)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Respect of the Stout Folk\",\r\n\textra : \"\",\r\n\tlanguageProfs : [\"Dwarvish\"],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"sage\", \"cloistered scholar\", {\r\n\tregExpSearch : /^(?=.*cloistered)(?=.*scholar).*$/i,\r\n\tname : \"Cloistered Scholar\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]],\r\n\tskills : [\"History\"],\r\n\tskillstxt : \"History and choose one from Arcana, Nature, and Religion\",\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Quill\", \"\", \"\"],\r\n\t\t[\"Parchment, sheets of\", 1, \"\"],\r\n\t\t[\"Small penknife\", \"\", 0.5],\r\n\t\t[\"Borrowed book\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Scholar's robes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Library Access\",\r\n\textra : [\"Name your Library\"],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"courtier\", {\r\n\tregExpSearch : /courtier/i,\r\n\tname : \"Courtier\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 5,\r\n\tequipleft : \"\",\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Court Functionary\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"acolyte\", \"faction agent\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*(faction|harper|order of the gauntlet|emerald enclave|lord.?s alliance|zhentarim)).*$/i,\r\n\tname : \"Faction Agent\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\"],\r\n\tskillstxt : \"Insight and choose one Intelligence, Wisdom, or Charisma skill\",\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Copy of seminal faction's text\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Badge or emblem of faction\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Safe Haven\",\r\n\textra : [\r\n\t\t\"Select a Faction\",\r\n\t\t\"The Harpers\",\r\n\t\t\"The Order of the Gauntlet\",\r\n\t\t\"The Emerald Enclave\",\r\n\t\t\"The Lord's Alliance\",\r\n\t\t\"The Zhentarim\"\r\n\t],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"folk hero\", \"inheritor\", {\r\n\tregExpSearch : /inheritor/i,\r\n\tname : \"Inheritor\",\r\n\tsource : [[\"S\", 150], [\"ALbackground\", 0]],\r\n\tskills : [\"Survival\"],\r\n\tskillstxt : \"Survival and choose one from Arcana, History, and Religion\",\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Gaming set or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"The inheritance\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Inheritance\",\r\n\textra : [\r\n\t\t\"Select an Inheritance\",\r\n\t\t\"Document such as a map, letter, or journal\",\r\n\t\t\"A trinket\",\r\n\t\t\"Article of clothing\",\r\n\t\t\"Piece of jewelry\",\r\n\t\t\"Arcane book or formulary\",\r\n\t\t\"Written story, song, poem, or secret\",\r\n\t\t\"Tattoo or other body marking\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n});\r\nAddBackgroundVariant(\"soldier\", \"investigator\", {\r\n\tregExpSearch : /investigator/i,\r\n\tname : \"Investigator\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Investigation\"],\r\n\tequipright : [\r\n\t\t[\"Uniform\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Horn\", \"\", 2],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Watcher's Eye\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2]\r\n});\r\nAddBackgroundVariant(\"soldier\", \"knight of the order\", {\r\n\tregExpSearch : /^(?=.*knight)(?=.*order).*$/i,\r\n\tname : \"Knight of the Order\",\r\n\tsource : [[\"S\", 151], [\"ALbackground\", 0]],\r\n\tskills : [\"Persuasion\"],\r\n\tskillstxt : \"Persuasion and choose one from Arcana, History, Nature, and Religion\",\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Signet, banner, or seal of rank\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Knightly Regard\",\r\n\textra : [\"Name your Knightly Order\"],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"soldier\", \"mercenary veteran\", {\r\n\tregExpSearch : /^(?=.*mercenary)(?=.*(veteran|soldier)).*$/i,\r\n\tname : \"Mercenary Veteran\",\r\n\tsource : [[\"S\", 152], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Persuasion\"],\r\n\tequipright : [\r\n\t\t[\"Uniform of my company\", \"\", 4],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Gaming set\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Mercenary Life\",\r\n\textra : [\"Name your Mercenary Company\"],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"criminal\", \"urban bounty hunter\", {\r\n\tregExpSearch : /^(?=.*urban)(?=.*bounty)(?=.*hunter).*$/i,\r\n\tname : \"Urban Bounty Hunter\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]],\r\n\tskills : \"\",\r\n\tskillstxt : \"Choose two from Deception, Insight, Persuasion, and Stealth\",\r\n\tgold : 20,\r\n\tequipright : [\r\n\t\t[\"Appropriate Clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Ear to the Ground\",\r\n\textra : \"\",\r\n\ttoolProfs : [[\"Gaming set, instrument, or thieves' tools\", 2]],\r\n\tlifestyle : \"poor\"\r\n});\r\nAddBackgroundVariant(\"outlander\", \"uthgardt tribe member\", {\r\n\tregExpSearch : /^(?=.*(uthgardt|barbarian|nomad|clan))(?=.*tribe)(?=.*member).*$/i,\r\n\tname : \"Uthgardt Tribe Member\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Hunting trap\", \"\", 25],\r\n\t\t[\"Totemic token or tattoos of tribal totem\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Uthgardt Heritage\",\r\n\textra : \"\",\r\n\ttoolProfs : [[\"Artisan's tools or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n});\r\nAddBackgroundVariant(\"noble\", \"waterdhavian noble\", {\r\n\tregExpSearch : /^(?=.*(waterdhavian|waterdeep))(?=.*noble).*$/i,\r\n\tname : \"Waterdhavian Noble\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]],\r\n\tgold : 20,\r\n\tequipleft : [\r\n\t\t[\"Scroll of pedigree\", \"\", \"\"],\r\n\t\t[\"Skin of fine zzar or wine\", \"\", 5] // weight based on waterskin\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring or brooch\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Kept in Style\",\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n});\r\n\r\n// Background features\r\nBackgroundFeatureList[\"court functionary\"] = {\r\n\tdescription : \"My knowledge of how bureaucracies function lets me gain access to the records and inner workings of any noble court or government I encounter. I know or can easily acquire the knowledge who the movers and shakers are, whom to go to for the favors I seek, and what the current intrigues of interest in the group are.\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"all eyes on you\"] = {\r\n\tdescription : \"My accent, mannerisms, figures of speech all mark me as foreign. Curious glances are directed my way wherever I go. A nuisance, but I also gain the friendly interest of the curious. I can parley this attention into access I might not otherwise have, for me and my companions. Nobles, scholars, merchants, and guilds, might be among the interested.\",\r\n\tsource : [[\"S\", 149], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ear to the ground\"] = {\r\n\tdescription : \"I am in frequent contact with people in my chosen segment of society. These people might be associated with the criminal underworld, the rough-and-tumble folk of the streets, or members of high society. This connection comes in the form of a contact in any city I visit, a person who provides information about the people and places of the local area.\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"inheritance\"] = {\r\n\tdescription : \"The item I inherited has a special significance, history, power, and/or important value. When I begin my adventuring career, I can decide whether to tell my companions about it right away. Rather than attracting attention to myself, I could decide to keep it a secret until I learn more about what it means to me and what it can do for me.\",\r\n\tsource : [[\"S\", 150], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"kept in style\"] = {\r\n\tdescription : \"While I am in Waterdeep or elsewhere in the North my house sees to my everyday needs. My name and signet are sufficient to cover most of my expenses; the inns, taverns, and festhalls I frequent are glad to record my debt and send an accounting to my family's estate. This advantage enables me to take 2 gp of my daily lifestyle costs down to 0 gp.\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"knightly regard\"] = {\r\n\tdescription : \"I receive shelter and succor from members of my knightly order and its sympathizers. Religious knightly orders get aid from temples and communities of my deity. Civic order knights get help from the community they serve. Philosophical order knights can find help from those they have aided in pursuit of their ideals, and those who share those ideals.\",\r\n\tsource : [[\"S\", 151], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"library access\"] = {\r\n\tdescription : \"I have free access to most of the library I work at, though it might have repositories of lore that are too valuable, magical, or secret to permit anyone immediate access. I have a working knowledge of my cloister's personnel and bureaucracy, and I know how to navigate those connections. I am likely to gain preferential treatment at other libraries.\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"mercenary life\"] = {\r\n\tdescription : \"I know the mercenary life well. I am able to identify mercenary company emblems, and I know a little about any such company, including the leaders, reputation, and who hired them recently. I can find the locales where mercenaries abide anywhere, as long as I speak the language. My mercenary work between adventures affords me a comfortable lifestyle.\",\r\n\tsource : [[\"S\", 152], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"respect of the stout folk\"] = {\r\n\tdescription : \"No one esteems clan crafters quite so highly as dwarves do. I always have free room and board in any place where shield dwarves or gold dwarves dwell, and the individuals in such a settlement might vie among themselves to determine who can offer me (and possibly my compatriots) the finest accommodations and assistance.\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"safe haven\"] = {\r\n\tdescription : \"As a faction agent, I have access to a secret network of support and operatives who can provide assistance on my adventures. I know secret signs and passwords to identify such operatives, who can provide me with access to a hidden safe house, free room and board, or assistance in finding information. These agents never risk their lives or identity for me.\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"uthgardt heritage\"] = {\r\n\tdescription : \"I have an excellent knowledge of my tribe's territory, and surrounding terrain and natural resources. I am familiar enough with any wilderness area that I can find twice as much food and water as one normally would. I can call upon the hospitality of my people, and those allied, often including members of druid circles, nomadic elves, and priesthoods.\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"watcher's eye\"] = {\r\n\tdescription : \"My experience in enforcing the law, and dealing with lawbreakers, gives me a feel for local laws and criminals. I can easily find the local outpost of the watch, guards or a similar organization, and just as easily pick out the dens of criminal activity in a community. I am far more likely to be welcome in the former locations rather than the latter, however.\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Spells\r\nSpellsList[\"booming blade\"] = {\r\n\tname : \"Booming Blade\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"1 round\",\r\n\tdescription : \"Melee wea atk with cast; hit: 0d8 Thunder dmg, if it moves next round +1d8; +1d8 at CL5, 11, \\u0026 17\",\r\n\tdescriptionShorter : \"melee wea atk with cast; hit: 0d8 Thunder dmg, if move next rnd +1d8; +1d8 CL 5/11/17 \",\r\n\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Thunder dmg and if moves next round +`CD`d8 Thunder dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects and then becomes sheathed in booming energy until the start of your next turn. If the target willingly moves 5 feet or more before then, the target takes 1d8 thunder damage, and the spell ends.\",\r\n\t\t\"This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 thunder damage to the target on a hit, and the damage the target takes for moving increases to 2d8. Both damage rolls increase by 1d8 at 11th level (2d8 and 3d8) and again at 17th level (3d8 and 4d8).\",\r\n\t],\r\n\tdynamicDamageBonus : {\r\n\t\textraDmgGroupsSameType : /(next r(?:ou)?nd )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"green-flame blade\"] = {\r\n\tname : \"Green-Flame Blade\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee wea atk with cast; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\tdescriptionShorter : \"Melee wea atk; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Fire dmg, 1 crea in 5 ft `CD-1`d8+spellcasting ability modifier Fire dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects, and you can cause green fire to leap from the target to a different creature of your choice that you can see within 5 feet of it. The second creature takes fire damage equal to your spellcasting ability modifier.\",\r\n\t\t\"This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 fire damage to the target on a hit, and the fire damage to the second creature increases to 1d8 + your spellcasting ability modifier. Both damage rolls increase by 1d8 at 11th level (2d8 and 2d8) and 17th level (3d8 and 3d8).\"\r\n\t],\r\n};\r\nSpellsList[\"lightning lure\"] = {\r\n\tname : \"Lightning Lure\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:15-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea in 15 ft save or pulled 10 ft to me; if it ends in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5, 11, \\u0026 17\",\r\n\tdescriptionShorter : \"1 crea in 15 ft save or pulled 10 ft to me; if end in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"1 crea I see save or pulled 10 ft to me; if it ends in 5 ft, `CD`d8 Lightning dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You create a lash of lightning energy that strikes at one creature of your choice that you can see within 15 feet of you. The target must succeed on a Strength saving throw or be pulled up to 10 feet in a straight line toward you and then take 1d8 lightning damage if it is within 5 feet of you.\",\r\n\t\t\"This spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\",\r\n\t],\r\n};\r\nSpellsList[\"sword burst\"] = {\r\n\tname : \"Sword Burst\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea in range save or 1d6 Force damage; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"All crea in range save or `CD`d6 Force damage\",\r\n\tdescriptionFull: [\r\n\t\t\"You create a momentary circle of spectral blades that sweep around you. All other creatures within 5 feet of you must succeed on a Dexterity saving throw or take 1d6 force damage.\",\r\n\t\t\"This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\",\r\n\t],\r\n};\r\n\r\nWeaponsList[\"booming blade\"] = {\r\n\tregExpSearch : /^(?=.*booming)(?=.*blade).*$/i,\r\n\tname : \"Booming Blade\",\r\n\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"Bd8/Cd8\", \"\", \"thunder\"],\r\n\trange : \"With melee wea\",\r\n\tdescription : \"First damage added to the attack; second to the target if it moves next round\",\r\n\tabilitytodamage : false\r\n};\r\nWeaponsList[\"green-flame blade\"] = {\r\n\tregExpSearch : /^(?=.*green)(?=.*flame)(?=.*blade).*$/i,\r\n\tname : \"Green-Flame Blade\",\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"Bd8/Bd8\", \"\", \"fire\"],\r\n\trange : \"With melee wea\",\r\n\tdescription : \"First damage added to the attack; second to a target within 5 ft\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"lightning lure\"] = {\r\n\tregExpSearch : /^(?=.*lightning)(?=.*lure).*$/i,\r\n\tname : \"Lightning Lure\",\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"lightning\"],\r\n\trange : \"15 ft\",\r\n\tdescription : \"Str save; success - nothing; fail - pulled 10 ft closer to me, only take damage if end within 5 ft of me\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"sword burst\"] = {\r\n\tregExpSearch : /^(?=.*sword)(?=.*burst).*$/i,\r\n\tname : \"Sword Burst\",\r\n\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Dex save, success - no damage; all creatures in range\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\n// pub_20160315_CoS.js\r\n// This file adds the backgrounds from the Curse of Strahd adventure book and the optional backgrounds from the Adventurers League season 4 (Curse of Strahd) to MPMB's Character Record Sheet\r\n\r\n// Define the sources\r\nSourceList.CoS={\r\n\tname : \"Curse of Strahd [background, items, pack]\",\r\n\tabbreviation : \"CoS\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Ravenloft\",\r\n\turl : \"https://media.wizards.com/2016/downloads/DND/CoS_Character_Options.pdf?dl=1\",\r\n\tdate : \"2016/03/15\"\r\n};\r\nSourceList[\"AL:CoS\"]={\r\n\tname : \"Curse of Strahd Backgrounds\", // v1.1\r\n\tabbreviation : \"AL:CoS\",\r\n\tgroup : \"Adventurers League\",\r\n\turl : \"https://www.dropbox.com/s/f9ktz5u2gcu2509/Curse-of-Strahd-Backgrounds-v1.1.pdf\", // used to be https://dndadventurersleague.org/wp-content/uploads/2016/06/Curse-of-Strahd-Backgrounds-v1.1.pdf\r\n\tdate : \"2016/04/07\"\r\n};\r\n\r\n// Backgrounds (with contributions by RCanine)\r\nBackgroundList[\"haunted one\"] = {\r\n\tregExpSearch : /haunted.one/i,\r\n\tname : \"Haunted One\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Arcana, Investigation, Religion, and Survival\",\r\n\tlanguageProfs : [2], // was 1 in book, fixed in errata\r\n\tgold : 0.1, // added in VRGtR reprint\r\n\tequipleft : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden Stakes\", 3, 1],\r\n\t\t[\"Holy symbol\", \"\", 1],\r\n\t\t[\"Holy water, flasks of\", \"\", 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel Mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", \"\", 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torch\", 3, 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3], // added in VRGtR reprint\r\n\t\t[\"Trinket of special significance\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Heart of Darkness\",\r\n\ttrait : [\r\n\t\t\"I don't run from evil. Evil runs from me.\",\r\n\t\t\"I like to read and memorize poetry. It keeps me calm and brings me fleeting moments of happiness.\",\r\n\t\t\"I spend money freely and live life to the fullest, knowing that tomorrow I might die.\",\r\n\t\t\"I live for the thrill of the hunt.\",\r\n\t\t\"I don't talk about the thing that torments me. I'd rather not burden others with my curse.\",\r\n\t\t\"I expect danger around every corner.\",\r\n\t\t\"I refuse to become a victim, and I will not allow others to be victimized.\",\r\n\t\t\"I put no trust in divine beings.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Sacrifice\", \"Sacrifice: I try to help those in need, no matter what the personal cost. (Good)\"],\r\n\t\t[\"Desperation\", \"Desperation: I'll stop the spirits that haunt me or die trying. (Any)\"],\r\n\t\t[\"Cleansing\", \"Cleansing: I kill monsters to make the world a safer place, and to exorcise my own demons. (Good)\"],\r\n\t\t[\"Vigilante\", \"Vigilante: I have a dark calling that puts me above the law. (Chaotic)\"],\r\n\t\t[\"Preparation\", \"Preparation: I like to know my enemy's capabilities and weaknesses before rushing into battle. (Lawful)\"],\r\n\t\t[\"Destruction\", \"Destruction: I'm a monster that destroys other monsters, and anything else that gets in my way. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I keep my thoughts and discoveries in a journal. My journal is my legacy.\",\r\n\t\t\"I would sacrifice my life and my soul to protect the innocent.\",\r\n\t\t\"My torment drove away the person I love. I strive to win back the love I've lost.\",\r\n\t\t\"A terrible guilt consumes me. I hope that I can find redemption through my actions.\",\r\n\t\t\"There's evil in me, I can feel it. It must never be set free.\",\r\n\t\t\"I have a child to protect. I must make the world a safer place for him (or her).\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have certain rituals that I must follow every day. I can never break them.\",\r\n\t\t\"I assume the worst in people.\",\r\n\t\t\"I feel no compassion for the dead. They're the lucky ones.\",\r\n\t\t\"I have an addiction.\",\r\n\t\t\"I am a purveyor of doom and gloom who lives in a world without hope.\",\r\n\t\t\"I talk to spirits that no one else can see.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Harrowing Event\",\r\n\t\t\"Monster spared my life\",\r\n\t\t\"Born under a dark star\",\r\n\t\t\"Haunted by an apparition\",\r\n\t\t\"Dark arts in the family\",\r\n\t\t\"An oni took my sibling\",\r\n\t\t\"Memory of cured lycanthropy\",\r\n\t\t\"Raised by a hag\",\r\n\t\t\"Studied an eldritch tome\",\r\n\t\t\"Formerly possessed by a fiend\",\r\n\t\t\"Avenged a murder\"\r\n\t]\r\n};\r\nBackgroundList[\"black fist double agent\"] = {\r\n\tregExpSearch : /black\\W*fist/i,\r\n\tname : \"Black Fist Double Agent\",\r\n\tsource : [[\"AL:CoS\", 2], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Insight\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Tears of Virulence emblem\", \"\", \"\"],\r\n\t\t[\"Writ of free agency\", \"\", \"\"],\r\n\t\t[\"Set of artisan's tools or gaming set\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Double Agent\",\r\n\ttrait : [\r\n\t\t\"People are only as trustworthy as you are valuable to them. Always strive to be the most valuable person around.\",\r\n\t\t\"My eloquence and sophistication are tools I use to avoid arousing suspicion myself.\",\r\n\t\t\"I am a thrill-seeker, excited by covert and dangerous missions.\",\r\n\t\t\"I live by my wits and always check every lock twice, just to be certain.\",\r\n\t\t\"I never admit to my mistakes lest they be used against me.\",\r\n\t\t\"I take every effort to be unnoticeable and blend into the crowd. Passersby rarely give me a second look.\",\r\n\t\t\"I am prepared for any eventuality; including the day my usefulness as a spy comes to an end.\",\r\n\t\t\"I always make certain to know my enemy before acting, lest I bite off more than I can chew.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Suspicious\", \"Suspicious: In my experience, everybody has something to hide, and what they hide can usually hurt me. (Any)\"],\r\n\t\t[\"Secretive\", \"Secretive: I trade in secrets, and am not about to let any of mine slip. (Any)\"],\r\n\t\t[\"Hedonist\", \"Hedonist: Life is short. I live my life to the fullest, as I know any day could be my last. (Chaotic)\"],\r\n\t\t[\"Selfless\", \"Selfless: I use my position to help the downtrodden avoid persecution from the authorities. (Good)\"],\r\n\t\t[\"Patriotic\" , \"Patriotic: I am a loyal supporter of Phlan and its leaders, and see my role as a solemn duty and necessary evil to prevent anarchy. (Lawful)\"],\r\n\t\t[\"Manipulative\", \"Manipulative: I use my knowledge to blackmail and manipulate others to my own benefit. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I was framed for a crime I did not commit, and seek to bring the true culprit to justice.\",\r\n\t\t\"I am a part of an underground network that smuggles innocent civilians out of the city prior to being raided by the authorities.\",\r\n\t\t\"I miss the glory days of Phlan, before the coming of the dragon.\",\r\n\t\t\"I seek to prove myself worthy of joining the Black Fist as a member of their order.\",\r\n\t\t\"My sister was killed by a Tear of Virulence, and now I feed them false information whenever possible.\",\r\n\t\t\"My family was wrongly imprisoned, and I act as an informant in order to secure their release.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I think too highly of myself, and have an exaggerated sense of self-importance.\",\r\n\t\t\"I have difficulty trusting strangers. I see spies and informants everywhere.\",\r\n\t\t\"Years of getting away with minor crimes has left me believing that I am above the law, and have diplomatic immunity above my station.\",\r\n\t\t\"Years of seeing innocent people suffer have left me despondent and pessimistic for the future.\",\r\n\t\t\"My desire for vengeance often gets me into trouble\",\r\n\t\t\"I am spendthrift, and share my wealth with the patrons of my favorite tavern.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise Kit\", [\"Artisan's tools or gaming set\", 1]],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"dragon casualty\"] = {\r\n\tregExpSearch : /^(?=.*dragon)(?=.*casualty).*$/i,\r\n\tname : \"Dragon Casualty\",\r\n\tsource : [[\"AL:CoS\", 3], [\"ALbackground\", 0]],\r\n\tskills : [\"Intimidation\", \"Survival\"],\r\n\ttoolProfs : [\"Based on my origin\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Loaf of moldy bread\", \"\", 1],\r\n\t\t[\"Cast-off Vorgansharax scale\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Tattered Rags\", \"\", 3],\r\n\t\t[\"Dagger\", \"\", 1],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Dragonscarred\",\r\n\textra : [\r\n\t\t\"Select an Origin (or Disfigurement)\",\r\n\t\t\"Dockworker\",\r\n\t\t\"Fisherman\",\r\n\t\t\"Tradesperson\",\r\n\t\t\"Merchant\",\r\n\t\t\"Black Fist Soldier\",\r\n\t\t\"Adventurer\",\r\n\t\t\"Visitor\",\r\n\t\t\"Entertainer\",\r\n\t\t\"Scholar\",\r\n\t\t\"Healer\",\r\n\t\t\"Criminal\",\r\n\t\t\"Unskilled laborer\",\r\n\t\t\"\",\r\n\t\t\"- Disfigurements (optional):\",\r\n\t\t\"Extensive scarring\",\r\n\t\t\"Small non-functional wing(s)\",\r\n\t\t\"Misshapen, wing-like membrane(s)\",\r\n\t\t\"Elongated, claw-like hand(s) or feet\",\r\n\t\t\"Painful green scales embedded in skin\",\r\n\t\t\"Bulbous, reptilian eye(s)\",\r\n\t\t\"Enlarged dorsal spines\",\r\n\t\t\"Small irregular spines instead of hair\"\r\n\t],\r\n\ttrait : [\r\n\t\t\"I am driven to escape my past, and rarely stay in one place long.\",\r\n\t\t\"I know secrets of the Maimed Virulence, but fear the harm that may befall me should others learn them.\",\r\n\t\t\"Speaking of my ordeal helps sooth the still open wounds in my soul.\",\r\n\t\t\"My former life is meaningless, and was ripped to shreds by the claws of Vorgansharax. All that matters now is what I do with the future.\",\r\n\t\t\"I have faced the worst a dragon can deliver and survived. I am fearless, and my resolve unshakable.\",\r\n\t\t\"I am haunted my tortured past, and wake at night screaming at half-remembered horrors.\",\r\n\t\t\"I sleep with my back to a wall or tree, and a weapon within arm's reach.\",\r\n\t\t\"I am slow to trust, but incredibly loyal to those who have earned it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Survivor\", \"Survivor: No matter the cost, I will take any action necessary to survive (any)\"],\r\n\t\t[\"Independence\", \"Independence: When in trouble, the only person I can rely on is myself (Chaotic)\"],\r\n\t\t[\"Compassionate\", \"Compassionate: I have suffered long at the hands of a Dragon, and take pity and compassion on the suffering of others (Good)\"],\r\n\t\t[\"Secretive\", \"Secretive: I am withdrawn, and hide my monstrous appearance for fear of drawing unwanted attention. (Chaotic)\"],\r\n\t\t[\"Justice\", \"Justice: I have been wronged, and will not allow the same fate to befall others. (Lawful)\"],\r\n\t\t[\"Sycophant\", \"Sycophant: During my ordeal, I became a willing servant of the Maimed Virulence, and spy on his behalf. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have sworn vengeance on the Maimed Virulence and those that follow him.\",\r\n\t\t\"I long to reunite with friends and family who may dwell among the Phlan Refugees, and protect them.\",\r\n\t\t\"While a prisoner of the Maimed Virulence, I overheard rumors of an item or treasure the Dragon seeks. I will have that treasure for myself!\",\r\n\t\t\"I seek to reclaim and rebuild my former life to the best of my ability.\",\r\n\t\t\"I have been reborn as a child of Vorgansharax. I will claim my birthright as his chosen heir and successor.\",\r\n\t\t\"I attribute my survival to the work of the divine, and seek to prove myself worthy of the honor.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have been touched with dragon-greed, and have a lust for wealth which can never be satisfied.\",\r\n\t\t\"I secretly believe others are plotting to harm me.\",\r\n\t\t\"I no longer enjoy the simple pleasures in life. Food is but ashes and bile in my throat.\",\r\n\t\t\"Anyone who refuses to celebrate my celebrity does not deserve my company.\",\r\n\t\t\"I am paranoid and overly suspicious of others. Anyone may be an agent of the Maimed Virulence.\",\r\n\t\t\"Once I make up my mind, I follow my chosen course of action regardless of the consequences.\"\r\n\t],\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tlifestyle : \"wretched\"\r\n};\r\nBackgroundList[\"iron route bandit\"] = {\r\n\tregExpSearch : /^(?=.*iron)(?=.*route)(?=.*bandit).*$/i,\r\n\tname : \"Iron Route Bandit\",\r\n\tsource : [[\"AL:CoS\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Stealth\"],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Backpack, with:\", \"\", 5],\r\n\t\t[\"Bag of 1000 ball bearings\", 1, 2],\r\n\t\t[\"String, feet of\", 10, \"\"],\r\n\t\t[\"Bell\", \"\", \"\"],\r\n\t\t[\"Candles\", 5, \"\"],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Pitons\", 10, .25],\r\n\t\t[\"Hooded lantern\", \"\", 2],\r\n\t\t[\"Oil, flasks of\", 2, 1],\r\n\t\t[\"Rations, days of\", 5, 2],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Waterskin\", \"\", 5],\r\n\t\t[\"Hempen rope, feet of\", 50, 0.2]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Dark common clothes\", \"\", 3],\r\n\t\t[\"Pack Saddle\", \"\", \"\"],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Black-Market Breeder\",\r\n\ttrait : [\r\n\t\t\"If people leave their gear unsecured, they must not want it very much.\",\r\n\t\t\"I feel more comfortable sleeping under the open sky.\",\r\n\t\t\"I always pre-plan my escape should things go bad; I always like to have an exit strategy.\",\r\n\t\t\"I tend to give animal owners breeding and care advice whether or not they want it.\",\r\n\t\t\"I lost a pet as a child and sadly reflect on it to this day.\",\r\n\t\t\"I always form a powerful, emotional bond with my mount.\",\r\n\t\t\"I recoil at the thought of killing someone else's pet or mount.\",\r\n\t\t\"I prefer to hang to the back of a scuffle or discussion. Better to have my enemies in front of me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loyalty\", \"Loyalty: Never bite the hand that feeds. (Good)\"],\r\n\t\t[\"Unpredictability\", \"Unpredictability: Keep your enemy guessing and off-balance like a confused deer. (Chaotic)\"],\r\n\t\t[\"Power\", \"Power: I strive to become leader of the pack at all costs. (Lawful)\"],\r\n\t\t[\"Freedom\", \"Freedom: I bow to no one I don't respect. (Chaotic)\"],\r\n\t\t[\"Resourcefulness\", \"Resourcefulness: Our wits are our most valuable resource in troubled times. (Any)\"],\r\n\t\t[\"Unity\", \"Unity: Lone wolves fail where the pack succeeds. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I cannot leave a harmed animal behind; I must save it or put it out of its misery.\",\r\n\t\t\"I leave behind my own personal calling cards when I do a job.\",\r\n\t\t\"I do not trust people who do not have a pet, mount, or furry companion.\",\r\n\t\t\"The pelt I wear on my back was from an animal that died saving my life, I will always cherish it.\",\r\n\t\t\"If my pet does not like you, I do not like you!\",\r\n\t\t\"Once you've ridden with me and fought by my side, I'll be there for you odds be damned.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I talk to animals; I believe they understand me, even if they do not.\",\r\n\t\t\"I growl at and bite anyone who gets too close to my food while I am eating.\",\r\n\t\t\"I strongly dislike enclosed spaces and require intoxication or firm encouragement to enter them.\",\r\n\t\t\"I robbed the wrong caravan once. The owner is a powerful merchant who holds a grudge.\",\r\n\t\t\"I'm an inveterate gambler.\",\r\n\t\t\"I judge people based on how well they stand their ground in a fight. I got not time for cowards…\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"phlan insurgent\"] = {\r\n\tregExpSearch : /^(?=.*phlan)(?=.*insurgent).*$/i,\r\n\tname : \"Phlan Insurgent\",\r\n\tsource : [[\"AL:CoS\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Stealth\", \"Survival\"],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], \"Vehicles (land)\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Caltrops\", 20, 0.1],\r\n\t\t[\"Small trinket of my life before\", \"\", \"\"],\r\n\t\t[\"Healer's kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Dark common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Guerilla\",\r\n\textra : [\r\n\t\t\"Select an Origin\",\r\n\t\t\"Fisher\",\r\n\t\t\"Hunter\",\r\n\t\t\"Craftsperson\",\r\n\t\t\"Priest/Priestess\",\r\n\t\t\"Cook\",\r\n\t\t\"City Watch\",\r\n\t\t\"Servant\",\r\n\t\t\"Unskilled laborer\",\r\n\t\t\"Stojanow river worker\",\r\n\t\t\"Twilight Marsh worker\",\r\n\t\t\"Mantor's Library scribe\",\r\n\t\t\"Clergy of Ilmater\",\r\n\t\t\"Laughing Goblin server\",\r\n\t\t\"Black Fist guard\",\r\n\t\t\"House Sokol retainer\",\r\n\t\t\"Bay of Phlan dockworker\"\r\n\t],\r\n\ttrait : [\r\n\t\t\"My patience knows no bounds, so long as my goal is in sight.\",\r\n\t\t\"In life and in struggle, the ends justify my actions.\",\r\n\t\t\"If you aren't helping me, you'd best at least stay out of my way.\",\r\n\t\t\"I long for the life that was taken away from me.\",\r\n\t\t\"Friends and family perished, tragically, before my eyes. I hope never to undergo that again.\",\r\n\t\t\"Making the right choices in life are important to me. The choices I make might save not just my life, but the lives of others as well.\",\r\n\t\t\"I can never allow my foes to get the drop on me.\",\r\n\t\t\"Time is a precious resource that I must spend wisely.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Leadership\", \"Leadership: The oppressed need someone to inspire them to courageous acts. (Good)\"],\r\n\t\t[\"Unpredictability\", \"Unpredictability: Keeping the enemy guessing and off-balance is my tactical strength. (Chaos)\"],\r\n\t\t[\"Determination\", \"Determination: Threats to my home must be eliminated at all costs. (Any)\"],\r\n\t\t[\"Freedom\", \"Freedom: Those who are enslaved and unjustly imprisoned deserve my aid. (Good)\"],\r\n\t\t[\"Resourcefulness\", \"Resourcefulness: Our wits are our most valuable resource in troubled times. (Any)\"],\r\n\t\t[\"Unity\", \"Unity: Working together, we can overcome all obstacles, even the most seemingly insurmountable ones. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'll never let my fellow insurgents down. They are my only remaining friends.\",\r\n\t\t\"I was separated from a loved one during my escape from town. I will find them.\",\r\n\t\t\"One of the Tears of the Virulence was a trusted friend, until the day they betrayed the city. They will pay harshly for their transgressions.\",\r\n\t\t\"An item I hold close is my last remaining connection to the family I lost during the fall.\",\r\n\t\t\"The dragon who took my past life away from me will feel the full extent of my vengeance.\",\r\n\t\t\"The knowledge in Mantor's Library is an irreplaceable treasure that must be protected.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have no respect for those who flee. I harbor a deep grudge against the citizens who abandoned Phlan.\",\r\n\t\t\"Ale is the only way I can escape the desperation of my circumstances.\",\r\n\t\t\"It doesn't take much to get me into a fight.\",\r\n\t\t\"Being an insurgent means doing things that aren't always ethical. I'm still learning to live with that.\",\r\n\t\t\"My desire to liberate Phlan oftentimes clouds my judgement, despite my best efforts.\",\r\n\t\t\"I relentlessly despise the Maimed Virulence and his allies. I'd abandon other goals in order to strike out at them\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"stojanow prisoner\"] = {\r\n\tregExpSearch : /^(?=.*stojanow)(?=.*prisoner).*$/i,\r\n\tname : \"Stojanow Prisoner\",\r\n\tsource : [[\"AL:CoS\", 8], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Perception\"],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Small knife\", \"\", 0.25],\r\n\t\t[\"Small trinket from my life before\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Ex-Convict\",\r\n\ttrait : [\r\n\t\t\"I am a bully; others will suffer as I have.\",\r\n\t\t\"I always say yes even when I mean no; it's just easier.\",\r\n\t\t\"I aim to misbehave.\",\r\n\t\t\"I go out of my way to frustrate or anger those in power.\",\r\n\t\t\"I strive to obey the law. I will never again make the mistake of going against authority.\",\r\n\t\t\"I always plan everything out. The one time I let others plan things it did not end well for me.\",\r\n\t\t\"I take blame to protect others from pain.\",\r\n\t\t\"I horde information, you never know what may come in handy.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loss\", \"Loss: I freely give those who offend me what was so brutally denied me, death. (Chaos)\"],\r\n\t\t[\"Dedication\", \"Dedication: I never betray those who trust me. (Law)\"],\r\n\t\t[\"Vengeance\", \"Vengeance: I use any means to get information I need; I have been well taught. (Evil)\"],\r\n\t\t[\"Redemption\", \"Redemption: Everyone deserves a second chance. (Good)\"],\r\n\t\t[\"Resilience\", \"Resilience: I can survive any challenge. (Any)\"],\r\n\t\t[\"Leadership\", \"Leadership: The best teams are made up of those that society has discarded. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I take up arms to help establish a free Phlan.\",\r\n\t\t\"The horrors of my time in Stojanow haunt my dreams, only after a day of hard work can I find sleep.\",\r\n\t\t\"I am indebted to those who freed me from prison, I will repay this debt.\",\r\n\t\t\"My torturer survived the attack that set me free, I will find him/her.\",\r\n\t\t\"I will not rest while others suffer fates similar to mine.\",\r\n\t\t\"I am searching for a way to heal the scars of Stojanow, both physical and emotional.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"During stressful times, I find myself crying for no reason.\",\r\n\t\t\"My nerve endings are shot from the interrogations; I am numb to all but the harshest touch.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"I folded under the torture, and gave information that I promised would be kept secret. My life would be in jeopardy if others found out.\",\r\n\t\t\"Survival is worth more than friendship.\",\r\n\t\t\"The ghosts from my past hinder my actions.\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"ticklebelly nomad\"] = {\r\n\tregExpSearch : /^(?=.*ticklebelly)(?=.*nomad).*$/i,\r\n\tname : \"Ticklebelly Nomad\",\r\n\tsource : [[\"AL:CoS\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Nature\"],\r\n\ttoolProfs : [\"Herbalism Kit\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Herbalism kit\", \"\", 3],\r\n\t\t[\"Small tribal jewelry\", \"\", \"\"],\r\n\t\t[\"Hunting trap\", \"\", 25]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"At Home in the Wild\",\r\n\ttrait : [\r\n\t\t\"I eagerly inject myself into the unknown.\",\r\n\t\t\"Villages, towns, and cities do not suit me. I'd rather be out in the wilderness any day.\",\r\n\t\t\"I accomplish my tasks efficiently, using as few resources as possible.\",\r\n\t\t\"It's difficult for me to remain in one place for long.\",\r\n\t\t\"I loudly brag about my tribe every chance I get.\",\r\n\t\t\"Having walked among giants, I am fearless in the face of bigger creatures.\",\r\n\t\t\"I am quiet and reserved, but observant. Nothing escapes my attention.\",\r\n\t\t\"My word is my bond. I see a promise to completion, even if it conflicts with my beliefs.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Kinship\", \"Kinship: Family is most important in life. Though I may be far from my own, the bonds of family must be protected in others' lives as well. (Good)\"],\r\n\t\t[\"Preservation\", \"Preservation: Nature must not be despoiled by encroaching civilization. (Any)\"],\r\n\t\t[\"Wanderlust\", \"Wanderlust: One must expand their horizons by seeing the world and exploring. (Chaos)\"],\r\n\t\t[\"Isolation\", \"Isolation: My tribe and its ways must be protected and shielded from outside influence. (Neutral)\"],\r\n\t\t[\"Protection\", \"Protection: Threats to the land and to the people must be dealt with at any and all costs. (Law)\"],\r\n\t\t[\"Belonging\", \"Belonging: All creatures have a place in the world, so I strive to help others find theirs. (Good)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I ache to return to my tribe and the family I left, but cannot until my obligations are fulfilled.\",\r\n\t\t\"The dragon cultists that invaded my homeland stole away one of my tribe's people. I will not know rest until I've found them.\",\r\n\t\t\"The dragon's presence in the hills destroyed valuable territory and resulted in deaths within my tribe. The creature must pay for what it has done.\",\r\n\t\t\"I carry a trinket that spiritually and emotionally ties me to my people and my home.\",\r\n\t\t\"I discovered a strange relic in the hills during my tribe's wanderings. I must discover what it is.\",\r\n\t\t\"One of the stone giant clans from the Giant's Cairn has graced me with a mark of kinship.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I throw myself and my friends into situations rarely ever thinking about consequences.\",\r\n\t\t\"Unfamiliar people and surroundings put me on edge.\",\r\n\t\t\"I have absolutely no patience for slowpokes and those who prove indecisive.\",\r\n\t\t\"My desire to experience new things causes me to make unsafe choices.\",\r\n\t\t\"I am overly protective of nature, sometimes to the detriment of my companions and myself.\",\r\n\t\t\"My lack of worldliness often proves my undoing in social, commercial, and hostile situations.\"\r\n\t],\r\n\tlanguageProfs : [\"Giant\"],\r\n\tlifestyle : \"poor\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"at home in the wild\"] = {\r\n\tdescription : \"In the wilderness, my home, I can find a place to hide, rest, or recuperate that is secure enough to conceal me from most natural threats, but not all supernatural, magical, or threats that actively seek me out. However, this feature doesn't shield or conceal me from scrying, mental probing, nor from threats that don't need the five senses to find me.\",\r\n\tsource : [[\"AL:CoS\", 9], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"black-market breeder\"] = {\r\n\tdescription : \"I know how to find people who are always looking for stolen animals and vehicles, for pit fights or getaways during an illegal job. This provides me with information of what such animals & vehicles are in high demand in the area, but also offer to give me favors and information (DM choice) if I bring such animals and vehicles to them.\",\r\n\tsource : [[\"AL:CoS\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"double agent\"] = {\r\n\tdescription : \"I have a trusty contact in the Tears of Virulence garrison in Phlan to whom I pass information. In exchange, I get away with minor criminal offenses in Phlan. My Black Fists contacts can help me get an audience with the Lord Regent, the Lord Sage, Black Fists members, or deposed nobles who are sympathetic to the Phlan refugees and insurgents.\",\r\n\tsource : [[\"AL:CoS\", 2], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"dragonscarred\"] = {\r\n\tdescription : \"My extensive scars from being tortured by Vorgansharax give me fame and notoriety, but it is difficult to disguise my appearance and hide from prying eyes. I can use this to gain access to people and places I might not otherwise have, for me and my companions. However, I fear that my afflictions are not completely mundane, as they burn and writhe.\",\r\n\tsource : [[\"AL:CoS\", 3], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ex-convict\"] = {\r\n\tdescription : \"The knowledge gained during my incarceration lets me gain insight into local guards and jailors. I know which will accept bribes, or look the other way for me. I can also seek shelter for myself from authorities with other criminals in the area.\",\r\n\tsource : [[\"AL:CoS\", 8], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"guerilla\"] = {\r\n\tdescription : \"I've come to know the surrounding other natural features in which I can take refuge--or set up ambushes. I can quickly survey my environment for advantageous features. Additionally, I can scavenge around my natural surroundings to cobble together simple supplies (such as improvised torches, rope, patches of fabric, etc.) that are consumed after use.\",\r\n\tsource : [[\"AL:CoS\", 6], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"heart of darkness\"] = {\r\n\tdescription : \"Those who look into my eyes can see that I have faced unimaginable horror and that I am no stranger to darkness. Though they might fear me, commoners will extend me every courtesy and do their utmost to help. Unless I have shown myself to be a danger to them, they will even take up arms to fight with me, should I find myself facing an enemy alone.\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Equipment pack\r\nPacksList.monsterhunter = {\r\n\tname : \"Monster hunter's pack (33 gp)\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34]],\r\n\titems : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden stake\", 3, 1],\r\n\t\t[\"Amulet holy symbol\", \"\", \"\"],\r\n\t\t[\"Holy water, flasks of\", 1, 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", 1, 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torches\", 3, 1]\r\n\t]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"plantslayer battleaxe\"] = {\r\n\tname : \"Plantslayer Battleaxe\", // name taken from Adventurers League Content Catalogue v8.07, page 28\r\n\tnameAlt : \"Adventurer's Battleaxe\",\r\n\tsource : [[\"CoS\", 198]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This battleaxe's handle is carved with leaves and vines. It deals an extra 1d8 slashing damage against ordinary plants and plant creatures. When a creature of non-good alignment makes an attack with it, it sprouts thorns, dealing 1 magical piercing damage to the wielder after the attack is made.\",\r\n\tdescriptionFull : \"The axe's handle is carved with leaves and vines, and it weighs half as much as a normal battleaxe. When the axe hits a plant, whether an ordinary plant or a plant creature, the target takes an extra 1d8 slashing damage. When a creature of non-good alignment wields the axe, it sprouts thorns whenever its wielder makes an attack with it. These thorns prick the wielder for 1 piercing damage after the attack is made, and this damage is considered magical.\",\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /^(?=.*plantslayer)(?=.*battleaxe).*$/i,\r\n\t\tname : \"Plantslayer Battleaxe\",\r\n\t\tsource : [[\"CoS\", 198]],\r\n\t\tdescription : \"Versatile (1d10); +1d8 damage vs. plants\",\r\n\t\tweight : 2,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"blood spear\"] = {\r\n\tname : \"Blood Spear\",\r\n\tsource : [[\"CoS\", 221]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This spear drains the life from those it kills and transfers that life to its wielder, imbuing that individual with the stamina to keep fighting. When I use it to reduce the target to 0 HP, I gain 2d6 temporary HP. If I'm chosen by Kavan to wield this spear, I gain a +2 bonus to attack and damage rolls made with it.\",\r\n\tdescriptionFull : \"Kavan was a ruthless chieftain whose tribe lived in the Balinok Mountains centuries before the arrival of Strahd von Zarovich. Although he was very much alive, Kavan had some traits in common with vampires: he slept during the day and hunted at night, he drank the blood of his prey, and he lived underground. In battle, he wielded a spear stained with blood. His was the first blood spear, a weapon that drains life from those it kills and transfers that life to its wielder, imbuing that individual with the stamina to keep fighting.\\n   When you hit with a melee attack using this magic spear and reduce the target to 0 hit points, you gain 2d6 temporary hit points.\\n   Any creature can wield the spear, but only the character chosen by Kavan to wield it gains a +2 bonus to attack and damage rolls made with this magic weapon.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tchoices : [\"Chosen of Kavan\", \"Not a chosen of Kavan\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"chosen of kavan\" : {\r\n\t\tname : \"Blood\\u200A Spear\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*blood)(?=.*spear).*$/i,\r\n\t\t\tname : \"Blood Spear\",\r\n\t\t\tsource : [[\"CoS\", 221]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); If used to reduce target to 0 HP, I gain 2d6 temp HP\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"not a chosen of kavan\" : {\r\n\t\tname : \"Blood\\u200A\\u200A Spear\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*blood)(?=.*spear).*$/i,\r\n\t\t\tname : \"Blood Spear\",\r\n\t\t\tsource : [[\"CoS\", 221]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); If used to reduce target to 0 HP, I gain 2d6 temp HP\",\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"green copper ewer\"] = {\r\n\tname : \"Green Copper Ewer\",\r\n\tsource : [[\"CoS\", 188]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Any poisonous liquid poured into the ewer is instantly transformed into an equal amount of sweet wine. If I speak the ewer's command word while grasping its handle, the ewer fills with 1 gallon of wine. After doing so, it can't produce more wine until the next dawn.\",\r\n\tdescriptionFull : \"Any poisonous liquid poured into the ewer is instantly transformed into an equal amount of sweet wine. Furthermore, a creature that grasps the ewer's handle can command the ewer to fill with 1 gallon of wine, and it can't produce more wine until the next dawn.\"\r\n}\r\nMagicItemsList[\"gulthias staff\"] = {\r\n\tname : \"Gulthias Staff\",\r\n\tsource : [[\"CoS\", 221]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This black wooden quarterstaff has 10 charges, regaining 1d6+4 at dusk. When I hit with it in melee, I can use 1 charge to regain HP equal to the damage dealt, but I must make a DC 12 Wis save or be afflicted by short-term madness (DMG 259). While attuned to it, evil plant creatures are indifferent to me.\",\r\n\tdescriptionLong : \"This spongy, black wooden quarterstaff has 10 charges, regaining 1d6+4 at dusk. When I hit with it in melee, I can use 1 charge to regain HP equal to the damage dealt, but I must make a DC 12 Wis save or be afflicted by short-term madness (see table at SRD 201 or DMG 259). While I'm attuned to the staff, evil plant creatures don't regard me as hostile unless I harm them. If it is broken or burned to ashes, it releases an inhuman scream that can be heard out to 300 ft. All blights that can hear the scream immediately wither and die.\",\r\n\tdescriptionFull : \"Made from the branch of a Gulthias tree (see the blights entry of the Monster Manual), a Gulthias staff is a spongy, black length of wood. Its evil makes beasts visibly uncomfortable while within 30 feet of it. The staff has 10 charges and regains 1d6+4 of its expended charges daily at dusk.\\n   If the staff is broken or burned to ashes, its wood releases a terrible, inhuman scream that can be heard out to a range of 300 feet. All blights that can hear the scream immediately wither and die.\\n   \" + toUni(\"Vampiric Strike\") + \". The staff can be wielded as a magic quarterstaff. On a hit, it deals damage as a normal quarterstaff, and you can expend 1 charge to regain a number of hit points equal to the damage dealt by the weapon. Each time a charge is spent, red blood oozes from the staff's pores, and you must succeed on a DC 12 Wisdom saving throw or be afflicted with short term madness (see \\\"Madness\\\" in chapter 8 of the Dungeon Master's Guide).\\n   \" + toUni(\"Blight Bane\") + \". While you are attuned to the staff, blights and other evil plant creatures don't regard you as hostile unless you harm them.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"Dusk\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /^(?=.*gulthias)(?=.*staff).*$/i,\r\n\t\tname : \"Gulthias Staff\",\r\n\t\tsource : [[\"CoS\", 221]],\r\n\t\tdescription : \"Versatile (1d8); On hit, 1 charge to regain HP equal to damage dealt but DC 12 Wis save or madness\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"holy symbol of ravenkind\"] = {\r\n\tname : \"Holy Symbol of Ravenkind\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin of good alignment\",\r\n\tprereqeval : function(v) { return (/good/i).test(What(\"Alignment\")) && (classes.known.cleric || classes.known.paladin); },\r\n\tdescription : \"This platinum amulet has 10 charges, regaining 1d6+4 at dawn. As an action, I can use 1 charge to hold vampires (see 3rd page notes). I can use 3 charges with Turn Undead to give disadv. on its saves. As an action, ican use 5 charges to shed daylight, 30-ft radius bright light and dim light for another 30-ft for 10 minutes.\",\r\n\tdescriptionFull : \"The Holy Symbol of Ravenkind is a unique holy symbol sacred to the good-hearted faithful of Barovia. It predates the establishment of any church in Barovia. According to legend, it was delivered to a paladin named Lugdana by a giant raven - or an angel in the form of a giant raven. Lugdana used the holy symbol to root out and destroy nests of vampires until her death. The high priests of Ravenloft kept and wore the holy symbol after Lugdana's passing.\\n   The holy symbol is a platinum amulet shaped like the sun, with a large crystal embedded in its center.\\n   The holy symbol has 10 charges for the following properties. It regains 1d6+4 charges daily at dawn.\\n   \" + toUni(\"Hold Vampires\") + \". As an Action, you can expend 1 charge and present the holy symbol to make it flare with holy power. Vampires and vampire spawn within 30 feet of the holy symbol when it flares must make a DC 15 Wisdom saving throw. On a failed save, a target is paralyzed for 1 minute. It can repeat the saving throw at the end of its turns to end the effect on itself.\\n   \" + toUni(\"Turn Undead\") + \". If you have the Turn Undead or the Turn the Unholy feature, you can expend 3 charges when you present the holy symbol while using that feature. When you do so, undead have disadvantage on their saving throws against the effect.\\n   \" + toUni(\"Sunlight\") + \". As an action, you can expend 5 charges while presenting the holy symbol to make it shed bright light in a 30-foot radius and dim light for an additional 30 feet. The light is sunlight and lasts for 10 minutes or until you end the effect (no action required).\",\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hold Vampires\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"As an action, I can use 1 charge to have all vampires within 30 ft make a DC 15 Wis save\",\r\n\t\t\t\"If failed, a target is paralyzed for 1 minute but can repeat the save at the end of its turns\"\r\n\t\t],\r\n\t\tadditional : \"1 charge\"\r\n\t}]\r\n}\r\nMagicItemsList[\"icon of ravenloft\"] = {\r\n\tname : \"Icon of Ravenloft\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature of good alignment\",\r\n\tprereqeval : function(v) { return (/good/i).test(What(\"Alignment\")); },\r\n\tdescription : \"All within 30 ft of this silver statue are under the effect of Protection from Evil and Good that works against fiends and undead. As an action while attuned to it, I can cast Augury or Cure Wounds (3d8+3, 30 ft range) from it, each once per dawn and if I use it for my Turn Undead, the DC increases by 2.\",\r\n\tdescriptionFull : \"The Icon of Ravenloft is a 12-inch tall statuette made of the purest silver, weighing 10 pounds. It depicts a cleric kneeling in supplication.\\n   The icon was given to Strahd by the archpriest Ciril Romulich, an old family friend, to consecrate the castle and its chapel.\\n   While within 30 feet of the icon, a creature is under the effect of a Protection from Evil and Good spell against fiends and undead. Only a creature attuned to the icon can use its other properties.\\n   \" + toUni(\"Augury\") + \". You can use an action to cast an Augury spell from the icon, with no material components required. Once used, this property can't be used again until the next dawn.\\n   \" + toUni(\"Bane of the Undead\") + \". You can use the icon as a holy symbol while using the Turn Undead or Turn the Unholy feature. If you do so, increase the save DC by 2.\\n   \" + toUni(\"Cure Wounds\") + \". While holding the icon, you can take an action to heal one creature that you can see within 30 feet of you. The target regains 3d8+3 hit points, unless it is an undead, a construct, or a fiend. Once used, this property can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 10,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Icon of Ravenloft [Augury]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Icon of Ravenloft [Cure Wounds]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"All in 30 ft\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"markedbox\"\r\n\t}, {\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"augury\", \"cure wounds\"],\r\n\t\tselection : [\"augury\", \"cure wounds\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"protection from evil and good\" : {\r\n\t\t\trange : \"30-ft rad\",\r\n\t\t\ttime : \"Always\",\r\n\t\t\tdescription : \"All in range immune to fear, charm, and possession by fiends and undead, they also disadv. on attacks\",\r\n\t\t\tduration : \"Unlimited\",\r\n\t\t\tchanges : \"All within 30 ft of the Icon of Ravenloft have this spell protect them from undead and fiends.\"\r\n\t\t},\r\n\t\t\"augury\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Icon of Ravenloft, it only takes an action to cast.\"\r\n\t\t},\r\n\t\t\"cure wounds\" : {\r\n\t\t\trange : \"30 ft\",\r\n\t\t\tdescription : \"1 living creature heals 3d8+3 HP if it not an undead, construct, or fiend\",\r\n\t\t\tdynamicDamageBonus : { doNotProcess : true },\r\n\t\t\tchanges : \"Using the Icon of Ravenloft, it has a range of 30 ft and always heals 3d8+3 HP, but can't affect undead, a construct, or a fiend.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"lost sword\"] = {\r\n\tname : \"Lost Sword\",\r\n\tsource : [[\"CoS\", 81]],\r\n\ttype : \"weapon (shortsword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tprerequisite : \"Requires attunement by a creature of lawful good alignment\",\r\n\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\tdescription : \"This lawful good shortsword is sentient (Int 11, Wis 13, Cha 13). It adds +1 to hit and damage and shines bright light in a 15-ft radius and dim light for an additional 15 ft. Attuning to it takes only 1 minute. Once per dawn, I can use it to cast Crusader's Mantle. Its purpose is to fight evil. See Notes page.\",\r\n\tdescriptionFull : \"The Lost Sword is a sentient lawful good +1 shortsword (Intelligence 11, Wisdom 13, Charisma 13). It has hearing and normal vision out to a range of 120 feet. It communicates by transmitting emotion to the creature carrying or wielding it.\\n   The sword's purpose is to fight evil. The sword has the following additional properties:\\n \\u2022 The sword continually sheds bright light in a 15-foot radius and dim light for an additional 15 feet. Only by destroying the sword can this light be extinguished.\\n \\u2022 A lawful good creature can attune itself to the sword in 1 minute.\\n \\u2022 While attuned to the weapon, the sword's wielder can use the sword to cast the Crusader's Mantle spell. Once used, this property of the sword can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Crusader's Mantle\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"shortsword\",\r\n\t\tregExpSearch : /^(?=.*lost)(?=.*sword).*$/i,\r\n\t\tname : \"Lost Sword\",\r\n\t\tsource : [[\"CoS\", 81]],\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"crusader's mantle\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"The Lost Sword is a sentient lawful good +1 shortsword.\",\r\n\t\t\t\"A lawful good creature can attune itself to the sword in 1 minute.\",\r\n\t\t\t\"It continually sheds bright light in a 15-ft radius and dim light for an additional 15 ft. Only by destroying the sword can this light be extinguished.\",\r\n\t\t\t\"While attuned to the weapon, the sword's wielder can use the sword to cast the Crusader's Mantle spell. Once used, this property of the sword can't be used again until the next dawn.\",\r\n\t\t\t\"It has Intelligence 11, Wisdom 13, and Charisma 13 and can hear and see as a human out to a range of 120 ft. It communicates by transmitting emotion to the creature carrying or wielding it. The sword's purpose is to fight evil.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"saint markovia's thighbone\"] = {\r\n\tname : \"Saint Markovia's Thighbone\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"weapon (mace)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This mace sheds bright light in a 20-ft radius and dim light for another 20 ft while held. Fiends and undead hit with it take +2d6 radiant damage, become frightened of me until my next turn ends, and if below 26 HP after its damage, must make a DC 15 Wis save or die. If it hits an undead, it crumbles after the combat.\",\r\n\tdescriptionFull : \"Saint Markovia's thighbone has the properties of a mace of disruption. If it scores one or more hits against a vampire or a vampire spawn in the course of a single battle, the thighbone crumbles into dust once the battle concludes.\\n   As a youth, Markovia followed her heart and became a priest of the Morninglord soon after her eighteenth birthday. She proved to be a charismatic proselytizer and, before the age of thirty, had gained a reputation for allowing no evil to stand before her.\\n   Markovia had long considered Strahd a mad tyrant, but only after his transformation into a vampire did she dare to challenge him. As she rallied her followers and prepared to march on Castle Ravenloft, Strahd sent a group of vampire spawn to her abbey. They confronted Markovia and were destroyed to a one.\\n   Suffused with confidence born of a righteous victory, Markovia advanced on Castle Ravenloft. A great battle raged from the catacombs to the parapets. In the end, Markovia never returned to Barovia, and Strahd long afterward walked with a limp and a grimace of pain. It is said that he trapped Markovia in a crypt beneath his castle, and her remains linger there yet.\\n   The essence of Markovia's saintliness passed partly into her bones as the rest of her body decomposed. Her remaining thighbone is imbued with power that inflicts grievous injury on the undead.\\n   Mace of Disruption. When you hit a fiend or an undead with this magic weapon, that creature takes an extra 2d6 radiant damage. If the target has 25 hit points or fewer after taking this damage, it must succeed on a DC 15 Wisdom saving throw or be destroyed. On a successful save, the creature becomes frightened of you until the end of your next turn.\\n   While you hold this weapon, it sheds bright light in a 20-foot radius and dim light for an additional 20 feet.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*markovia)(?=.*thighbone).*$/i,\r\n\t\tname : \"Saint Markovia's Thighbone\",\r\n\t\tsource : [[\"CoS\", 222]],\r\n\t\tdescription : \"Fiend/undead +2d6 radiant damage, frightened until my next turn ends, and if HP<26, DC 15 Wis save or die\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"silver dragon shield +2\"] = {\r\n\tname : \"Silver Dragon Shield +2\",\r\n\tsource : [[\"CoS\", 68]],\r\n\ttype : \"shield\",\r\n\trarity : \"rare\",\r\n\tdescription : \"While holding this shield, I have a +2 bonus to AC. This bonus is in addition to the shield's normal bonus to AC. It is emblazoned with a stylized silver dragon that is the emblem of the Order of the Silver Dragon. The shield whispers warnings to me, granting me a +2 bonus to initiative while I am not incapacitated.\",\r\n\tdescriptionFull : \"While holding this shield, you have a +2 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\\n   The shield is emblazoned with a stylized silver dragon that is the emblem of the Order of the Silver Dragon (see Curse of Strahd, chapter 7). The shield whispers warnings to its bearer, granting a +2 bonus to initiative if the bearer isn't incapacitated.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Silver Dragon Shield +2\",\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : 2, text : \"While I carry the Silver Dragon Shield, it whispers warnings to me, granting me a +2 bonus to initiative rolls.\" }]\r\n}\r\nMagicItemsList[\"statuette of saint markovia\"] = {\r\n\tname : \"Statuette of Saint Markovia\",\r\n\tsource : [[\"CoS\", 152]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This golden statuette grants any good-aligned creature that carries it a +1 bonus to saving throws.\",\r\n\tdescriptionFull : \"This golden statuette grants any good-aligned creature that carries it a +1 bonus to saving throws.\",\r\n\taddMod : [{ type : \"save\", field : \"all\", mod : 1, text : \"While I carry the Statuette of Saint Markovia, I gain a +1 bonus to all my saving throws.\" }]\r\n}\r\nMagicItemsList[\"sunsword\"] = {\r\n\tname : \"Sunsword\",\r\n\tsource : [[\"CoS\", 223]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"As a bonus action, I can have this hilt create a blade of radiance. It acts like a longsword with +2 to hit and damage, does radiant damage (+1d8 to undead), has finesse, emits bright sunlight in a 15-ft radius and dim light in another 15 ft. As an action, I can change the light's radius by 5 ft. It is sentient, see Notes page.\",\r\n\tdescriptionLong : \"As a bonus action, I can have this longsword hilt create or dismiss a blade of pure radiance. While the blade exists, it acts like a longsword that has +2 to attack and damage rolls, does radiant damage, and has the finesse property. It deals +1d8 damage to undead and emits sunlight, bright light in a 15-ft radius and dim light in an additional 15-ft radius. As an action, I can expand or reduce both the bright and dim light's radius by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each. I'm proficient with it if I'm proficient with either longswords or shortswords. It is sentient, see Notes page.\",\r\n\tdescriptionFull : \"The Sunsword is a unique blade once possessed by Strahd's brother, Sergei von Zarovich. In its original form, it had a platinum hilt and guard, and a thin crystal blade as strong as steel.\\n   Strahd employed a powerful wizard named Khazan to destroy the weapon after Sergei's death. The first part of the process required the hilt and the blade to be separated, which Khazan accomplished. While Khazan was busying himself destroying the blade, his apprentice stole the hilt and fled. Khazan later located his apprentice's mutilated corpse in the Svalich Woods, but the hilt was nowhere to be found. To avoid the vampire's wrath, Khazan told Strahd that the entire weapon had been destroyed.\\n   The hilt, which is sentient, knows that it can never be reunited with its original crystal blade. It has, however, gained the properties of a sun blade.\\n   While grasping the hilt, you can use a bonus action to cause a blade of pure radiance to spring into existence, or make the blade disappear. While the blade exists, this magic longsword has the finesse property. If you are proficient with shortswords or longswords, you are proficient with the sun blade.\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When you hit an undead with it, that target takes an extra 1d8 radiant damage.\\n   The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the blade persists, you can use an action to expand or reduce its radius of bright and dim light by 5 feet each, to a maximum of 30 feet each or a minimum of 10 feet each.\\n   \" + toUni(\"Sentience\") + \". The Sunsword is a sentient chaotic good weapon with an Intelligence of 11, a Wisdom of 17, and a Charisma of 16. It has hearing and normal vision out to a range of 60 feet. The weapon communicates by transmitting emotions to the creature carrying it or wielding it.\\n   \" + toUni(\"Personality\") + \". The Sunsword's special purpose is to destroy Strahd, not so much because it wants to free the land of Barovia from evil but because it wants revenge for the loss of its crystal blade. The weapon secretly fears its own destruction.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \" (start/stop)\"], [\"action\", \" (change light)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /sunsword/i,\r\n\t\tname : \"Sunsword\",\r\n\t\tsource : [[\"CoS\", 223]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Finesse, versatile (1d10); +1d8 damage to undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.name == \"Sunsword\" && !fields.Proficiency) {\r\n\t\t\t\t\tfields.Proficiency = CurrentProfs.weapon.otherWea && CurrentProfs.weapon.otherWea.finalProfs.indexOf(\"shortsword\") !== -1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"The Sunsword is a unique blade once possessed by Strahd's brother, Sergei von Zarovich. In its original form, it had a platinum hilt and guard, and a thin crystal blade as strong as steel.\",\r\n\t\t\t\"Strahd employed a powerful wizard named Khazan to destroy the weapon after Sergei's death. The first part of the process required the hilt and the blade to be separated, which Khazan accomplished. While Khazan was busying himself destroying the blade, his apprentice stole the hilt and fled. Khazan later located his apprentice's mutilated corpse in the Svalich Woods, but the hilt was nowhere to be found. To avoid the vampire's wrath, Khazan told Strahd that the entire weapon had been destroyed.\",\r\n\t\t\t\"The hilt, which is sentient, knows that it can never be reunited with its original crystal blade. It has, however, gained the properties of a sun blade. While grasping the hilt, I can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, it functions as a magic longsword that has the finesse property. I'm proficient with it if I'm proficient with either shortswords or longswords.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When I hit an undead with it, that target takes an extra 1d8 radiant damage.\",\r\n\t\t\t\"The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 ft. The light is sunlight. As an action while the blade persists, I can expand or reduce its radius of bright and dim light by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each.\",\r\n\t\t\t\"The Sunsword is a sentient chaotic good weapon with an Intelligence of 11, a Wisdom of 17, and a Charisma of 16. It has hearing and normal vision out to a range of 60 feet. The weapon communicates by transmitting emotions to the creature carrying it or wielding it.\",\r\n\t\t\t\"The Sunsword's special purpose is to destroy Strahd, not so much because it wants to free the land of Barovia from evil but because it wants revenge for the loss of its crystal blade. The weapon secretly fears its own destruction\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\n\n// pub_20160906_SKT.js\r\n// This file adds the beasts from the Storm King's Thunder adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.SKT={\r\n\tname : \"Storm King's Thunder [beasts, items]\",\r\n\tabbreviation : \"SKT\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/storm-kings-thunder\",\r\n\tdate : \"2016/09/06\"\r\n};\r\n\r\n// Creatures [Crag Cat removed, because it is a monstrosity according to 2020 errata https://media.wizards.com/2020/dnd/downloads/SKT-Errata.pdf ]\r\nCreatureList[\"ice spider\"] = { // contributed by Nod_Hero\r\n\tname : \"Ice Spider\",\r\n\tnameAlt : [\"Spider, Ice\"],\r\n\tsource : [[\"SKT\", 127]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [14, 16, 12, 2, 11, 4],\r\n\tskills : {\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Blindsight 10 ft; Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 2d8 poison damage, half on a DC 11 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Icy Web (Recharge 5-6)\",\r\n\t\tability : 2,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Restrained\"],\r\n\t\trange : \"30/60 ft\",\r\n\t\tdescription : \"Target can escape as an action with a DC 12 Strength check, or by destroying the webbing (AC 10; 5 HP)\",\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"On a hit, the target is restrained by webbing and takes 1 cold damage at the start of each of its turns. As an action, the restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to poison and psychic damage).\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bite\",\r\n\t\tdescription : \"If the poison damage from the spider's bite attack reduces the target to 0 HP, the target is stable but poisoned for 1 hour, even after regaining HP, and is paralyzed while poisoned in this way.\"\r\n\t}, {\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Web Sense\",\r\n\t\tdescription : \"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.\"\r\n\t}, {\r\n\t\tname : \"Web Walker\",\r\n\t\tdescription : \"The spider ignores movement restrictions caused by webbing.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Icy Web (Recharge 5-6)\",\r\n\t\tdescription : \"See attack. On a hit, the target is restrained by webbing and takes 1 cold damage at the start of each of its turns. As an action, the restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to bludgeoning, poison, and psychic damage).\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Blindsight 10 ft, Darkvision 60 ft.\",\r\n\t\t\"##Bite##. If the poison damage reduces the target to 0 HP, the target is stable but poisoned and paralyzed for 1 hour, even after regaining HP.\",\r\n\t\t\"##Spider Climb##. Climb difficult surfaces, including upside down, without an ability check.\",\r\n\t\t\"##Web Sense##. Knows the exact location of any other creature in contact with the same web.\",\r\n\t\t\"##Web Walker##. No movement restrictions from webbing.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\nCreatureList[\"sheep\"] = {\r\n\tname : \"Sheep\",\r\n\tsource : [[\"SKT\", 142]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 10, 11, 2, 10, 5],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 0,\r\n\tattacks : [],\r\n\ttraits : [{\r\n\t\tname : \"Sure-Footed\",\r\n\t\tdescription : \"The sheep has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\r\n\t}]\r\n};\r\nCreatureList[\"pig\"] = {\r\n\tname : \"Pig\",\r\n\tsource : [[\"SKT\", 143]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 5,\r\n\thd : [1, 8],\r\n\tspeed : \"30 ft\",\r\n\tscores : [13, 11, 12, 2, 9, 5],\r\n\tpassivePerception : 9,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 0,\r\n\tattacks : []\r\n};\r\nCreatureList[\"hulking crab\"] = {\r\n\tname : \"Hulking Crab\",\r\n\tnameAlt : [\"Crab, Hulking\"],\r\n\tsource : [[\"SKT\", 240]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 17,\r\n\thp : 76,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"20 ft, swim 30 ft\",\r\n\tscores : [19, 8, 16, 3, 11, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"stealth\" : 2\r\n\t},\r\n\tsenses : \"Blindsight 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\t\tname : \"Claws\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tmodifiers : [-4, \"\"],\r\n\t\t\tabilitytodamage : false\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Amphibious\",\r\n\t\t\tdescription : \"The hulking crab can breate air and water.\"\r\n\t\t}, {\r\n\t\t\tname : \"Shell Camouflage\",\r\n\t\t\tdescription : \"While the hulking crab remains motionless with its eyestalks and pincers tucked close to its body, it resembles a natural formation or a pile of detritus. A creature within 30 feet of it can discern its true nature with a DC 15 Intelligence (Nature) check.\"\r\n\t\t}\r\n\t]\r\n};\r\nCreatureList[\"tressym\"] = {\r\n\tname : \"Tressym\",\r\n\tsource : [[\"SKT\", 242]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 5,\r\n\thd : [2, 4], //[#, die]\r\n\tspeed : \"40 ft, climb 30 ft, fly 40 ft\",\r\n\tscores : [3, 15, 10, 11, 12, 12], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 15,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Claws\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tmodifiers : [-4, \"\"],\r\n\t\t\tabilitytodamage : false\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Detect Invisibility\",\r\n\t\t\tdescription : \"Within 60 feet of the tressym, magical invisibility fails to conceal anything from the tressym's sight.\"\r\n\t\t}, {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tdescription : \"The tressym has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t\t}, {\r\n\t\t\tname : \"Poison Sense\",\r\n\t\t\tdescription : \"The tressym can detect whether a substance is poisonous by taste, touch, or smell.\"\r\n\t\t}\r\n\t],\r\n\twildshapeString : [\r\n\t\t\"##Languages##. Understands Common but can't speak.\",\r\n\t\t\"##Senses##. Darkvision 60 ft; Advantage on Wisdom (Perception) checks that rely on smell.\",\r\n\t\t\"##Immunities##. Poison damage, poisoned condition.\",\r\n\t\t\"##Detect Invisibility##. Magical invisibility fails to conceal anything from sight, out to 60 ft.\",\r\n\t\t\"##Poison Sense##. Detect whether a substance is poisonous by taste, touch, or smell.\",\r\n\t].join(\"\\n\"),\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"faerie dust\"] = { // contains contributions by Nod_Hero\r\n\tname : \"Faerie Dust\",\r\n\tsource : [[\"SKT\", 35]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"A pinch of this dust can substitute for the material components of any enchantment spell of 3rd level or lower. If a pinch of faerie dust is sprinkled on a creature, roll percentile dice and consult the Faerie Dust Table to determine the effect, see notes.\",\r\n\tdescriptionFull : \"This small pouch contains ten pinches of faerie dust. A pinch of this dust can substitute for the material components of any enchantment spell of 3rd level or lower. If a pinch of faerie dust is sprinkled on a creature, roll percentile dice and consult the Faerie Dust table to determine the effect.\"+\r\n\t\"\\n\\nFaerie Dust Table\"+\r\n\t\"\\n   d100\\tMagical Effect\"+\r\n\t\"\\n  01-70\\tThe creature sprinkled with dust gains a flying\"+\r\n\t\t\"\\n\\tspeed of 60 feet for 10 minutes.\"+\r\n\t\"\\n  71-80\\tThe creature sprinkled with dust must succeed\"+\r\n\t\t\"\\n\\ton a DC 11 Constitution saving throw or fall\"+\r\n\t\t\"\\n\\tunconscious for 1 minute. The creature awakens\"+\r\n\t\t\"\\n\\tif it takes damage or if it is shaken or slapped as\"+\r\n\t\t\"\\n\\tan action.\"+\r\n\t\"\\n  81-90\\tThe creature sprinkled with dust must succeed on\"+\r\n\t\t\"\\n\\ta DC 11 Wisdom saving throw or be affected by a\"+\r\n\t\t\"\\n\\tconfusion spell.\"+\r\n\t\"\\n  91-00\\tThe creature sprinkled with dust becomes\"+\r\n\t\t\"\\n\\tinvisible for 1 hour. Any equipment it is wearing\"+\r\n\t\t\"\\n\\tor carrying is invisible as long as it is on the\"+\r\n\t\t\"\\n\\tcreature's person. The effect on the creature ends\"+\r\n\t\t\"\\n\\tif it attacks, deals any damage, or casts a spell.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Faerie Dust Table\",\r\n\t\tnote : \"\\n   d100 \\tMagical Effect\"+\r\n\t\t\t\"\\n  01-70\\tThe creature sprinkled with dust gains a flying speed of 60 ft\"+\r\n\t\t\t\"\\n\\tfor 10 minutes.\"+\r\n\t\t\t\"\\n  71-80\\tThe creature sprinkled with dust must succeed on a DC 11\"+\r\n\t\t\t\t\"\\n\\tConstitution saving throw or fall unconscious for 1 minute.\"+\r\n\t\t\t\t\"\\n\\tThe creature awakens if it takes damage or if it is shaken or slapped\"+\r\n\t\t\t\t\"\\n\\tas an action.\"+\r\n\t\t\t\"\\n  81-90\\tThe creature sprinkled with dust must succeed on a DC 11 Wisdom\"+\r\n\t\t\t\t\"\\n\\tsaving throw or be affected by a confusion spell.\"+\r\n\t\t\t\"\\n  91-00\\tThe creature sprinkled with dust becomes invisible for 1 hour.\"+\r\n\t\t\t\t\"\\n\\tAny equipment it is wearing or carrying is invisible as long as it is on\"+\r\n\t\t\t\t\"\\n\\tthe creature's person. The effect on the creature ends if it attacks,\"+\r\n\t\t\t\t\"\\n\\tdeals any damage, or casts a spell.\"\r\n\t}],\r\n\tusages : 10,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"banner of the krig rune\"] = {\r\n\tname : \"Banner of the Krig Rune\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, I can furl or unfurl this 5 ft by 3 ft banner. While it is unfurled and I'm attuned to it, I can use its magical properties to see invisible creatures, and each once per short rest emanate courage or protect from ranged attacks. I can even transfer them over to a place, destroying the banner in the process. See Notes.\",\r\n\tdescriptionFull : \"Crafted from a thick, red fabric, this banner measures 5 feet high and 3 feet wide. The krig (war) rune is displayed on the fabric with round, metal plates sewn into it. It can be attached to a 10-foot pole to serve as a standard. Furling or unfurling the banner requires an action. The banner has the following properties.\\n   \" + toUni(\"Mark of Courage\") + \". As a bonus action, you can touch the unfurled banner and cause it to emanate courage. You and your allies are immune to the frightened condition while within 20 feet of it. This benefit lasts for 10 minutes or until the banner is furled. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Sentinel Standard\") + \". You can see invisible creatures while they are within 20 feet of the unfurled banner and within your line of sight.\\n   \" + toUni(\"Standard's Shield\") + \". As a bonus action, you can touch the unfurled banner and invoke this power. Any ranged attack roll that targets you or an ally of yours has disadvantage if the target is within 20 feet of the unfurled banner. This benefit lasts for 1 minute or until the banner is furled. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Battle\") + \". You can transfer the banner's magic to a place by tracing the krig rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 500-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the banner to be within 5 feet of you and during which you choose creatures, creature types, or both that will benefit from the magic. At the end, the banner is destroyed, and the area gains the following property:\\n   While in the 500-foot-radius sphere, the creatures you chose during the transfer process are immune to the frightened condition and gain a +1 bonus to attack rolls and AC.\",\r\n\tattunement : true,\r\n\taction : [\r\n\t\t[\"bonus action\", \"Mark of Courage (Krig Banner)\"],\r\n\t\t[\"bonus action\", \"Standard's Shield (Krig Banner)\"]\r\n\t],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Mark of Courage (Krig Banner)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}, {\r\n\t\tname : \"Standard's Shield (Krig Banner)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"Crafted from a thick, red fabric, this banner measures 5 ft high and 3 ft wide. The krig (war) rune is displayed on the fabric with round, metal plates sewn into it. It can be attached to a 10-ft pole to serve as a standard. Furling or unfurling the banner requires an action. The banner has the following properties.\",\r\n\t\t\t\"As a bonus action, I can touch the unfurled banner and use the Mark of Courage, have it emanate courage. Me and my allies are immune to the frightened condition while within 20 ft of it. This benefit lasts for 10 minutes or until the banner is furled. Once I use this property, I can't use it again until I finish a short or long rest.\",\r\n\t\t\t\"I can see invisible creatures while they are within 20 ft of the unfurled banner and within my line of sight.\",\r\n\t\t\t\"As a bonus action, I can touch the unfurled banner and invoke the Standard's Shield power. While within 20 ft of the unfurled banner, me an my allies are protected from ranged attacks. Any ranged attack roll targetting those protected has disadvantage. This benefit lasts for 1 minute or until the banner is furled. Once I use this property, I can't use it again until I finish a short or long rest.\\n\",\r\n\t\t\t\"I can transfer the banner's magic to a place by tracing the krig rune on the ground with my finger. The point where I trace it becomes the center of a spherical area of magic that has a 500-ft radius and that is fixed to the place. The transfer takes 8 hours of work that requires the banner to be within 5 ft of me and during which I choose creatures, creature types, or both that will benefit from the magic. At the end, the banner is destroyed, and the creatures I chose during the transfer process are immune to the frightened condition and gain a +1 bonus to attack rolls and AC while within the area.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"blod stone\"] = {\r\n\tname : \"Blod Stone\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"As an action while I carry this diamond with the blod rune, I can divine the location of the creature nearest to me that is related to the blood in the item and that isn't undead. I sense the distance and direction of the creature. The diamond is worth at least 5000 gp. If it is destroyed, the blood inside evaporates.\",\r\n\tdescriptionFull : \"This diamond contains the blood of a creature\\u2014blood that appears in the form of the blod (blood) rune. While the item is on your person, you can use your action to divine the location of the creature nearest to you that is related to the blood in the item and that isn't undead. You sense the distance and direction of the creature relative to your location. The creature is either the one whose blood is in the item or a blood relative.\\n   This item is made from a large diamond worth at least 5,000 gp. When the blood of a creature is poured onto it during the creation process, the blood seeps into the heart of the gem. If the gem is destroyed, the blood evaporates and is gone forever. A vengeful being might use a blod stone to hunt down an entire bloodline. Such stones are sometimes given as gifts to siblings or handed down from parent to child.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"claw of the wyrm rune\"] = {\r\n\tname : \"Claw of the Wyrm Rune\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This silvered dragon's claw gives me resistance to dragon breath weapons. As an action 3 times per dawn, I can have a dragon within 30 ft make a DC 15 Con save or gain vulnerability to all damage types until the end of my next turn. I can transfer its magic to a place, destroying the claw in the process. See book.\",\r\n\tdescriptionFull : \"This dragon's claw has been covered with a coat of molten silver, upon which has been inscribed the wyrm (dragon) rune. The claw has the following properties.\\n   \" + toUni(\"Wyrmslayer\") + \". As an action, you can point the claw at a dragon within 30 feet of you. The dragon must then succeed on a DC 15 Constitution saving throw or gain vulnerability to all damage types until the end of your next turn. This property can be used three times. The claw regains all expended uses at the next dawn.\\n   \" + toUni(\"Wyrm Shield\") + \". While the claw is displayed on your person, you have resistance to the damage caused by any dragon's breath weapon.\\n   \" + toUni(\"Wyrm Ward\") + \". You can transfer the c1aw's magic to a place by tracing the wyrm rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 100-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the claw to be within 5 feet of you. At the end, the claw is destroyed, and the area gains the following property:\\n   While in the 100-foot-radius sphere, any dragon has disadvantage on saving throws and can have a flying speed no higher than 10 feet.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Dragon Breath Weapons\"],\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"conch of teleportation\"] = {\r\n\tname : \"Conch of Teleportation\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This 2.5 ft conch shell is inscribed with the uvar rune. As an action once per dawn, I can blow into the shell, teleporting myself and up to 8 willing creatures to a predetermined location without any chance of mishap. The location is determined at creation of the item and can't be changed.\",\r\n\tdescriptionFull : \"This item is an ordinary, albeit rather large, conch shell that has been inscribed with the uvar rune. The conch measures 2\\xBD feet long and weighs 20 pounds.\\n   As an action, you can cast the Teleport spell by blowing into the shell. The destination is fixed, and there is no chance of either a mishap or the spell being off target. Anyone teleported by the conch appears in a specific location designated by the item's creator at the time the uvar rune is inscribed on the conch. It doesn't allow teleportation to any other destination. Once its spell is cast, the conch can't be used again until the next dawn.\",\r\n\tweight : 20,\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"gavel of the venn rune\"] = {\r\n\tname : \"Gavel of the Venn Rune\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This wooden gavel imposes disadv. on attacks against me before my first turn in a combat. As an action once per long rest, I can strike it on a hard surface and have the first creature that deals damage with an attack within 60 ft of the strike take half that damage itself as psychic damage. Can transfer rune, see book.\",\r\n\tdescriptionFull : \"This wooden gavel is small by giant reckoning but nearly the size of a warhammer in human hands. The venn (friend) rune is inscribed in mithral in the base of the haft. Among giants, this item is used as part of rituals to resolve disputes. The gavel has the following properties.\\n   \" + toUni(\"Arbiters Shield\") + \". At the start of every combat, attack rolls against you have disadvantage before the start of your first turn, provided that the gavel is on your person.\\n   \" + toUni(\"Bond of Amity\") + \". As an action, you can use the gavel to strike a point on a hard surface. The first time in the next minute that a creature within 60 feet of that point deals damage to another creature with an attack that hits, the attacker takes psychic damage equal to half the damage it dealt to the target. Once you use this property, you can't use it again until you finish a long rest.\\n   \" + toUni(\"Gift of Truth\") + \". You can transfer the gavel's magic to a place by tracing the venn rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 30-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the gavel to be within 5 feet of you. At the end, the gavel is destroyed, and the area gains the following property:\\n   Whenever a creature utters a lie while within the 30-foot-radius sphere, that creature takes 5 psychic damage and flinches visibly.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n}\r\nMagicItemsList[\"gurt's greataxe\"] = {\r\n\tname : \"Gurt's Greataxe\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This giant-sized greataxe adds +1 to hit and damage and deals 3d12 slashing damage (+2d12 vs. humans). When in an area that is below 0 \\u00B0F, it sheds bright light in a 20-ft radius and dim light for another 20 ft. As an action once per dawn, I can use it to cast Heat Metal (DC 13) that deals cold damage instead of fire.\",\r\n\tdescriptionFull : \"In the Year of the Icy Axe (123 DR), the frost giant Lord Gurt fell to Uthgar Gardolfsson\\u2014leader of the folk who would become the Uthgardt barbarians\\u2014in a battle that marked the ascendance of humankind over the giants in the Dessarin Valley. Gurt's greataxe was buried in Morgur's Mound until it was unearthed and brought back to Waterdeep. After laying in the city's vaults for decades, the axe was given to Harshnag, a frost giant adventurer, in recognition of his service to Waterdeep. Uthgardt barbarians recognize the weapon on sight and attack any giant that wields it.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. It is sized for a giant, weighs 325 pounds, and deals 3d12 slashing damage on a hit, plus an extra 2d12 slashing damage if the target is human.\\n   The axe sheds light as a torch when the temperature around it drops below 0 degrees Fahrenheit. The light can't be shut off in these conditions.\\n   As an action, you can cast a version of the Heat Metal spell (save DC 13) that deals cold damage instead of fire damage. Once this power is used, it can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 325,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /^(?=.*gurt)(?=.*greataxe).*$/i,\r\n\t\tname : \"Gurt's Greataxe\",\r\n\t\tsource : [[\"SKT\", 234]],\r\n\t\tdamage : [3, 12, \"slashing\"],\r\n\t\tweight : 325,\r\n\t\tdescription : \"Heavy, two-handed; +2d12 damage against humans\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tfixedDC : 13,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Deals cold damage\",\r\n\t\tspells : [\"heat metal\"],\r\n\t\tselection : [\"heat metal\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"heat metal\" : {\r\n\t\t\tdescription : \"1 metal obj on touch 2d8 Cold dmg; save or drop obj; if held: dis. atk/chk; bns a cool obj again\",\r\n\t\t\tdescriptionShorter : \"1 metal obj, touch it 2d8 Cold dmg; save or drop it; if held: dis. atk/chk; bns a redo\",\r\n\t\t\tchanges : \"Using Gurt's Greataxe, the spell deals cold damage instead of fire.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"ingot of the skold rune\"] = {\r\n\tname : \"Ingot of the Skold Rune\",\r\n\tsource : [[\"SKT\", 234]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the ingot as it is, or transfer its runic properties over to a shield or two-handed melee weapon.\",\r\n\tdescriptionFull : \"This appears to be a simple ingot of iron ore, about a foot long and a few inches across. Inspection of its surface reveals the faint, silvery outline of the skold (shield) rune. The ingot has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Runic Shield\") + \". You have a +1 bonus to AC.\\n   \" + toUni(\"Shield Bond\") + \". As a bonus action, choose a creature that you can see within 30 feet of you, other than yourself. Until the end of your next turn, any damage the target takes is reduced to 1, but you take half the damage prevented in this way. The damage you take can't be reduced in any way. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Shield Ward\") + \". You can transfer the ingot's magic to a nonmagical item\\u2014a shield or a two-handed melee weapon-by tracing the skold rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the ingot is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Shield\") + \". The shield is now a rare magic item that requires attunement. Its magic gives you a +1 bonus to AC, and the first time after each of your long rests that damage reduces you to 0 hit points, you are instead reduced to 1 hit point. You must be wielding the shield to gain these benefits.\\n \\u2022 \" + toUni(\"Weapon\") + \". The weapon is now an uncommon magic weapon. It grants you a +1 bonus to AC while you're holding it.\",\r\n\tchoices : [\"Ingot\", \"Transferred to a shield\", \"Transferred to a two-handed melee weapon\"],\r\n\t\"ingot\" : {\r\n\t\tname : \"Ingot of the Skold Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This iron ingot gives me +1 AC. As a bonus action, I can use it to choose a creature within 30 ft other than myself. Until the end of my next turn, any damage it takes is reduced to 1, but I take half the prevented damage and this damage can't be reduced in any way. I can transfer the rune to a shield or weapon, see book.\",\r\n\t\tattunement : true,\r\n\t\textraAC : [{name : \"Skold Rune\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t},\r\n\t\"transferred to a shield\" : {\r\n\t\tname : \"Skold Rune Shield\",\r\n\t\tsortname : \"Rune Shield, Skold\",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This shield gives my +1 AC on top of its normal bonus to AC. While carrying it, the first time after a long rest that damage reduces me to 0 HP, I drop to 1 HP instead.\",\r\n\t\tshieldAdd : [\"Skold Rune Shield\", 3, 6],\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t},\r\n\t\"transferred to a two-handed melee weapon\" : {\r\n\t\tname : \"Skold Rune Weapon\",\r\n\t\tsortname : \"Rune Weapon, Skold\",\r\n\t\ttype : \"weapon (any two-handed melee)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic weapon grants me a +1 bonus to AC.\",\r\n\t\textraAC : [{name : \"Skold Rune\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Skold Rune\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !(/melee/i).test(inObj.range) || !(/((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b/i).test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*\\bskold\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Skold Rune\" in the name of a weapon, it will be treated as the magic weapon Skold Rune Weapon.'\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"korolnor scepter\"] = {\r\n\tname : \"Korolnor Scepter\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"weapon (club)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This tapered mithral rod the size of a dwarf's forearm has 10 charges, regaining 1d6+4 at dawn. It can be wielded as a +3 club. As an action while below sea level, I can expend 1 charge to determine the distance to the surface. I can also use the charges to cast Sending (2 charges) and Teleport (3 charges).\",\r\n\tdescriptionFull : \"The Korolnor Scepter is one of ten Ruling Scepters of Shanatar, forged by the dwarven gods and given to the ruling houses of the ancient dwarven empire. The Korolnor Scepter's location was unknown for the longest time until a storm giant queen, Neri, found it in a barnacle-covered shipwreck at the bottom of the Trackless Sea. The Ruling Scepters are all roughly the same size and shape, but their materials and properties vary.\\n   The Korolnor Scepter is a tapered mithral rod as thick and long as a dwarf's forearm, with a small platinum knob at the bottom and a rounded disk adorned with a ring of seven tiny blue gems at the top.\\n   You gain a +3 bonus to attack and damage rolls made with this scepter, which can be wielded as a magic club.\\n   You can use the properties of the Wyrmskull Throne, as well as the properties of the scepter itself. The scepter has 10 charges, and it regains 1d6+4 expended charges at dawn. Its properties are as follows.\\n   If you are underground or underwater, you can use an action to expend 1 charge to determine the distance to the surface.\\n   As an action: you can expend 2 charges to cast the Sending spell from the scepter.\\n   As an action: you can expend 3 charges to cast the Teleport spell from the scepter. If the destination is within 60 feet of the Wyrmskull Throne, there is no chance of a teleport error or mishap occurring.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"teleport\"],\r\n\t\tselection : [\"teleport\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"club\",\r\n\t\tregExpSearch : /^(?=.*korolnor)(?=.*scepter).*$/i,\r\n\t\tname : \"Korolnor Scepter\",\r\n\t\tsource : [[\"SKT\", 234]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"navigation orb\"] = {\r\n\tname : \"Navigation Orb\",\r\n\tsource : [[\"SKT\", 235]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This hollow 7-ft diameter sphere of thin, polished mithral bears the skye rune and is keyed to a particular cloud castle. It only works while within that castle. As an action while touching it, I can use it to move the cloud castle 1 mph until commanded otherwise, have it stop, or turn 90 degrees.\",\r\n\tdescriptionFull : \"A navigation orb is a hollow, 7-foot-diameter sphere of thin, polished mithral with a large skye (cloud) rune embossed on its outer surface. The orb levitates 10 feet above the ground and is keyed to a particular cloud castle, allowing you to control that castle's altitude and movement while the orb is inside the castle. If the orb is destroyed or removed from its castle, the castle's altitude and location remain fixed until the orb is returned or replaced.\\n   As an action, you can cause one of the following effects to occur if you are touching the orb:\\n   The castle moves at a speed of 1 mph in a straight line, in a direction of your choice, until the castle stops or is made to stop, or until another action is used to change its direction. If this movement brings the castle into contact with the ground, the castle lands gently.\\n   The castle, if it is moving, comes to a gradual stop.\\n   The castle makes a slow, 90-degree turn clockwise or counterclockwise (turning a northerly view into a westerly view, for example). The castle can turn while it is moving in a straight line.\\n   Any creature touching the orb knows the altitude of the base of the castle above the ground or water below it.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"opal of the ild rune\"] = {\r\n\tname : \"Opal of the Ild Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I can use the opal as it is, or transfer its runic properties over to a suit of armor or weapon.\",\r\n\tdescriptionFull : \"This triangular fire opal measures about three inches on each side and is half an inch thick. The ild (fire) rune shimmers within its core, causing it to be slightly warm to the touch. The opal has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Ignite\") + \". As an action, you can ignite an object within 10 feet of you. The object must be flammable, and the fire starts in a circle no larger than 1 foot in diameter.\\n   \" + toUni(\"Fires Friend\") + \". You have resistance to cold damage.\\n   \" + toUni(\"Fire Tamer\") + \". As an action, you can extinguish any open flame within 10 feet of you. You choose how much fire to extinguish in that radius.\\n   \" + toUni(\"Gift of Flame\") + \". You can transfer the opal's magic to a nonmagical item\\u2014a weapon or a suit of armor\\u2014by tracing the ild rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the opal is destroyed, and the rune appears in red on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Weapon\") + \". The weapon is now an uncommon magic weapon. It deals an extra 1d6 fire damage to any target it hits.\\n \\u2022 \" + toUni(\"Armor\") + \". The armor is now a rare magic item that requires attunement. You have resistance to cold damage while wearing the armor.\",\r\n\tchoices : [\"Opal\", \"Transferred to a suit of armor\", \"Transferred to a weapon\"],\r\n\t\"opal\" : {\r\n\t\tname : \"Opal of the Ild Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This triangular fire opal gives me resistance to cold damage. As an action, I can use it to extinguish any open flames of my choice within 10 ft, or I can ignite a flammable object within 10 ft with a fire up to 1 ft in diameter. I can undertake an 8 hour ritual to transfer the rune to a suit of armor or weapon, see book.\",\r\n\t\tattunement : true,\r\n\t\tdmgres : [\"Cold\"],\r\n\t\taction : [[\"action\", \"\"]]\r\n\t},\r\n\t\"transferred to a suit of armor\" : {\r\n\t\tname : \"Ild Rune Armor\",\r\n\t\tsortname : \"Rune Armor, Ild\",\r\n\t\ttype : \"armor (any)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This magic armor gives me resistance to cold damage.\",\r\n\t\tattunement : true,\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Ild Rune\"]\r\n\t\t}\r\n\t},\r\n\t\"transferred to a weapon\" : {\r\n\t\tname : \"Ild Rune Weapon\",\r\n\t\tsortname : \"Rune Weapon, Ild\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic weapon deals +1d6 fire damage to any target it hits.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Ild Rune\"]\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*\\bild\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 fire damage';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Ild Rune\" in a the name of a weapon, it will be treated as the magic weapon Ild Rune Weapon, which deals +1d6 fire damage.'\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"orb of the stein rune\"] = {\r\n\tname : \"Orb of the Stein Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I can use the orb as it is, or transfer its runic properties over to a shield or pair of boots.\",\r\n\tdescriptionFull : \"This orb of granite is about the size of an adult human's fist. The stein (stone) rune appears on it in the form of crystalline veins that run across the surface. The orb has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Indomitable Stand\") + \". As an action, you can channel the orb's magic to hold your ground. For the next minute or until you move any distance, you have advantage on all checks and saving throws to resist effects that force you to move. In addition, any enemy that moves to a space within 10 feet of you must succeed on a DC 12 Strength saving throw or be unable to move any farther this turn.\\n   \" + toUni(\"Stone Soul\") + \". You can't be petrified.\\n   \" + toUni(\"Earthen Step\") + \". You can cast Meld into Stone as a bonus action. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Stone\") + \". You can transfer the orb's magic to a nonmagical item\\u2014a shield or a pair of boots\\u2014by tracing the stein rune there with your finger. The transfer takes8 hours of work that requires the two items to be within 5 feet of each other. At the end, the orb is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Shield\") + \". The shield is now a rare magic item that requires attunement. While you wield it, you have resistance to all damage dealt by ranged weapon attacks.\\n \\u2022 \" + toUni(\"Boots\") + \". The pair of boots is now an uncommon magic item that requires attunement. While you wear the boots, you have advantage on Strength saving throws, and you can use your reaction to avoid being knocked prone.\",\r\n\tchoices : [\"Orb\", \"Transferred to a shield\", \"Transferred to a pair of boots\"],\r\n\t\"orb\" : {\r\n\t\tname : \"Orb of the Stein Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This orb gives me petrification immunity. As a bonus action once per short rest, I can cast Meld Into Stone. As an action, I can hold my ground for 1 min or until I move any distance, giving me adv. on saves/checks vs. moving and enemies moving to a space in 10 ft must make a DC 12 Str save or have speed 0 for this turn.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { immune : [\"petrified\"] },\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"meld into stone\"],\r\n\t\t\tselection : [\"meld into stone\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"meld into stone\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\tchanges : \"Using the Orb of the Stein Rune, I can cast this as a bonus action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a shield\" : {\r\n\t\tname : \"Stein Rune Shield\",\r\n\t\tsortname : \"Rune Shield, Stein\",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This shield gives me resistance to all damage dealt by range weapon attack.\",\r\n\t\tattunement : true,\r\n\t\tshieldAdd : \"Stein Rune Shield\",\r\n\t\tdmgres : [\"Ranged Weapon Attacks\"]\r\n\t},\r\n\t\"transferred to a pair of boots\" : {\r\n\t\tname : \"Stein Rune Boots\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"These pair of boots give me advantage on Strength saving throws. As a reaction, I can avoid being knocked prone.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { text : [\"Adv. on Str saves\"] },\r\n\t\tadvantages : [\"Strength\", true],\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t}\r\n}\r\nMagicItemsList[\"pennant of the vind rune\"] = {\r\n\tname : \"Pennant of the Vind Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the pennant as it is, or transfer its runic properties over to a suit of armor, pair of boots, or cloak.\",\r\n\tdescriptionFull : \"This blue pennant is crafted from silk and is five feet long and whips about as if buffeted by a wind. The vind (wind) rune appears on its surface, looking almost like a cloud. The pennant has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Wind Step\") + \". As an action, you fly up to 20 feet. If you don't land at the end of this flight, you fall unless you have another means of staying aloft.\\n   \" + toUni(\"Comforting Wind\") + \". You can't suffocate.\\n   \" + toUni(\"Winds Grasp\") + \". As a reaction when you fall, you can cause yourself to take no damage from the fall. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Wind Walker\") + \". While you are attuned to this rune, you can cast Levitate as a bonus action. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Wind\") + \". You can transfer the pennant's magic to a nonmagical item\\u2014a suit of armor, a pair of boots, or a cloak\\u2014by tracing the vind rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the pennant is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Armor\") + \". The armor is now an uncommon magic item that requires attunement. You gain a bonus to speed of 5 feet while you wear the armor, and if it normally imposes disadvantage on Stealth checks, it no longer does so.\\n \\u2022 \" + toUni(\"Boots/Cloak\") + \". The pair of boots or cloak is now a rare magic item that requires attunement. While wearing the item, you can convert up to 20 feet of your movement on each of your turns into flight. If you don't land at the end of this flight, you fall unless you have another means of staying aloft. You can also cast Feather Fall once from the item, and you regain the ability to do so when you finish a short or long rest.\",\r\n\tchoices : [\"Pennant\", \"Transferred to a suit of armor\", \"Transferred to a pair of boots or cloak\"],\r\n\t\"pennant\" : {\r\n\t\tname : \"Pennant of the Vind Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This blue pennant stops me from suffocating. As an action, I can fly up to 20 ft, but won't stay aloft at the end of it. As a reaction once per short rest when I fall, I can use Wind Grasp to take no damage from the fall. As a bonus action once per short rest, I can cast Levitate. I can transfer this rune, see book.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { immune : [\"suffocation\"] },\r\n\t\taction : [\r\n\t\t\t[\"action\", \"Wind Step (Vind Rune)\"],\r\n\t\t\t[\"reaction\", \"Winds Grasp (Vind Rune)\"]\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Levitate (Vind Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Winds Grasp (Vind Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"levitate\"],\r\n\t\t\tselection : [\"levitate\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"levitate\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\tchanges : \"Using the Pennant of the Vind Rune, I can cast this as a bonus action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a suit of armor\" : {\r\n\t\tname : \"Vind Rune Armor\",\r\n\t\tsortname : \"Rune Armor, Vind\",\r\n\t\ttype : \"armor (any)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic armor doesn't impose disadvantage on stealth checks and gives me a 5 ft bonus to my speed.\",\r\n\t\tattunement : true,\r\n\t\tspeed : { allModes : { bonus : \"+5\" } },\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Vind Rune\"],\r\n\t\t\tnoStealthDis : /^(?=.*\\bvind)(?=.*rune\\b).*$/i\r\n\t\t}\r\n\t},\r\n\t\"transferred to a pair of boots or cloak\" : {\r\n\t\tname : \"Vind Rune Boots or Cloak\",\r\n\t\tnameAlt : \"Vind Rune Boots\",\r\n\t\tnameTest : \"Vind Rune Cloak\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing this item, I can convert up to 20 ft of my movement on each of my turns into flight. If I don't land at the end of this flight, I fall unless I have other means of staying aloft. Once per short rest, I can use this item to cast Feather Fall.\",\r\n\t\tattunement : true,\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"feather fall\"],\r\n\t\t\tselection : [\"feather fall\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"potion of giant size\"] = {\r\n\tname : \"Potion of Giant Size\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"potion\",\r\n\trarity : \"legendary\",\r\n\tdescription : \"Once as an action, I can drink this potion of pale white liquid or administer it to another to grow to Huge for 24 hours. This gives Str 25, +5 ft reach, double max HP (current HP also doubles), and roll three times damage die for weapons. When its effect ends, HP above the max HP becomes temporary HP.\",\r\n\tdescriptionFull : \"When you drink this potion, you become Huge for 24 hours if you are Medium or smaller, otherwise the potion does nothing. For that duration, your Strength becomes 25, if it isn't already higher, and your hit point maximum is doubled (your current hit points are doubled when you drink the potion). In addition, the reach of your melee attacks increases by 5 feet.\\n   Everything you are carrying and wearing also increases in size for the duration. When rolling damage for weapons enlarged in this manner, roll three times the normal number of dice; for example, an enlarged longsword would deal 3d8 slashing damage (instead of1d8), or 3d10 slashing damage (instead of 1d10) when used with two hands.\\n   When the effect ends, any hit points you have above your hit point maximum become temporary hit points. This potion is a pale white liquid made from the tongue of a giant clam, with a pungent aroma akin to that of rotting algae. It tastes sweet, however, when consumed.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"robe of serpents\"] = {\r\n\tname : \"Robe of Serpents\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"As a bonus action, I can remove one of the 1d4+3 emblazoned, brightly colored snakes from this robe and have it turn into a giant poisonous snake within 5 ft of me. It acts on my initiative and attacks those hostile to me. It disappears after 1 hour, when it drops to 0 HP, or when I dismiss it (no action).\",\r\n\tdescriptionFull : \"A robe of serpents is a stylish silk garment that is popular among wealthy nobles and retired assassins. The robe is emblazoned with 1d4+3 stylized serpents, all brightly colored.\\n   As a bonus action on your turn, you can transform one of the robe's serpents into a giant poisonous snake. The snake instantly falls from the robe, slithers into an unoccupied space next to you, and acts on your initiative count. The snake can tell friendly creatures from hostile ones and attacks the latter. The snake disappears in a harmless puff of smoke after 1 hour, when it drops to 0 hit points, or when you dismiss it (no action required). Once detached, a snake can't return to the robe. When all of the robe's snakes have detached, the robe becomes a nonmagical garment.\",\r\n\tattunement : true,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"1d4+3\",\r\n\trecovery : \"Never\"\r\n}\r\nMagicItemsList[\"rod of the vonindod\"] = {\r\n\tname : \"Rod of the Vonindod\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"rod\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This 4 ft adamantine rod sized for a giant has 10 charges and regains 1d6+4 expended charges daily at dawn. I can expend 1 charge to cast Locate Object from it which has a range of 10 miles when used to locate objects made of adamantine. It has two prongs at one end and a molded handle grip on the other.\",\r\n\tdescriptionFull : \"The fire giant Duke Zalto hired a wizard to craft several of these adamantine rods. Each measures 4 feet long, weighs 100 pounds, and is sized to fit comfortably in a fire giant's hand. The rod has two prongs at one end and a molded handle grip on the opposite end.\\n   The rod has 10 charges and regains 1d6+4 of its expended charges daily at dawn. As an action, you can grasp it by the handle and expend 1 charge to cast the Locate Object spell from it. When the rod is used to detect objects made of adamantine, such as fragments of the Vonindod construct, its range increases to 10 miles.\",\r\n\tweight : 100,\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"locate object\"],\r\n\t\tselection : [\"locate object\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"locate object\" : {\r\n\t\t\tdescription : \"Learn direction to closest described kind or specific obj in 1000 ft (10 miles if adamantine); see book\",\r\n\t\t\tchanges : \"Using the Rod of the Vonindod, the spell detection range increases to 10 miles when used to locate adamantine objects.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"shard of the ise rune\"] = {\r\n\tname : \"Shard of the Ise Rune\",\r\n\ttype : \"wondrous item\",\r\n\tsource : [[\"SKT\", 236]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the shard as it is, or transfer its runic properties over to a cloak or a pair of boots.\",\r\n\tdescriptionFull : \"This shard of ice is long and slender, roughly the size of a dagger. The ise (ice) rune glows within it. The shard has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Frigid Touch\") + \". As an action, you can touch a body of water and freeze the water in a 10-foot-radius sphere around the spot you touched. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Frost Friend\") + \". You have resistance to fire damage.\\n   \" + toUni(\"Icy Mantle\") + \". As an action, you can touch yourself or another creature with water on your finger. The water creates an icy mantle of protection. The next time within the next minute that the target takes bludgeoning, slashing, or piercing damage, that damage is reduced to 0, and the mantle is destroyed. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Winter's Howl\") + \". As an action, you can cast Sleet Storm (spell save DC 17). You regain this ability after you finish a short or long rest.\\n   \" + toUni(\"Gift of Frost\") + \". You can transfer the shard's magic to a nonmagical item\\u2014a cloak or a pair of boots-by tracing the ise rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the shard is destroyed, and the rune appears in blue on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Cloak\") + \". The cloak is now a rare magic item that requires attunement. While wearing it, you have resistance to fire damage, and you have advantage on Dexterity (Stealth) checks made while in snowy terrain.\\n \\u2022 \" + toUni(\"Boots\") + \". The pair of boots is now a rare magic item that requires attunement. While wearing it, you ignore difficult terrain while walking, and you can walk on water.\",\r\n\tattunement : true,\r\n\tchoices : [\"Shard\", \"Transferred to a cloak\", \"Transferred to a pair of boots\"],\r\n\t\"shard\" : {\r\n\t\tname : \"Shard of the Ise Rune \",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This shard of ice gives me fire resistance. As an action, I can use Frigid Touch, freezing water in a 10-ft radius where I touch it, or Icy Mantle, to prevent the first bludgeoning, slashing, or piercing damagein the next minute for a creature I touch. I can use it to cast Sleet Storm (DC 17). I can do all 3 each once per short rest.\",\r\n\t\tdmgres : [\"Fire\"],\r\n\t\taction : [\r\n\t\t\t[\"action\", \"Frigid Touch (Ise Rune)\"],\r\n\t\t\t[\"action\", \"Icy Mantle (Ise Rune)\"]\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Frigid Touch (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Icy Mantle (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Sleet Storm (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}],\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"sleet storm\"],\r\n\t\t\tselection : [\"sleet storm\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}]\r\n\t},\r\n\t\"transferred to a cloak\" : {\r\n\t\tname : \"Ise Rune Cloak\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing this cloak, I have resistance to fire damage, and I have advantage on Dexterity (Stealth) checks made while in snowy terrain.\",\r\n\t\tdmgres : [\"Fire\"]\r\n\t},\r\n\t\"transferred to a pair of boots\" : {\r\n\t\tname : \"Ise Rune Boots\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing these boots, I ignore difficult terrain while walking, and I can walk on water.\"\r\n\t}\r\n}\r\nMagicItemsList[\"ring of hardened magma\"] = {\r\n\tname : \"Ring of Hardened Magma\",\r\n\tsource : [[\"SKT\", 105]], // Raven Rock ancient relic\r\n\ttype : \"ring\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"Warm orange light spills from minuscule cracks that form on this rings outer surface. It automatically resizes to fit the creature attuned to it. It has 6 charges which can be used to cast Conjure Minor Elementals (summoning 4 magma mephits or 4 magmins) or Fire Shield (warm shield version only), costing 1 charge each.\",\r\n\tdescriptionFull : \"This ring is sized for a fire giant's finger. When a creature attunes to the ring, it magically shrinks to fit that creature's index finger, and warm orange light spills from minuscule cracks that form on its outer surface. The ring has 6 charges. While attuned to the ring, a creature can expend 1 charge to cast conjure minor elementals (summoning either four magma mephits or four magmins, as the wearer wishes) or fire shield (warm shield version only) from the ring. Once all of its charges are spent, the ring loses its spellcasting properties but retains its resizing property.\",\r\n\tattunement : true,\r\n\tusages : 6,\r\n\trecovery : \"Never\",\r\n\tspellcastingAbility : \"class\", // https://www.sageadvice.eu/2015/11/27/hat-of-disguise-dc/\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"conjure minor elementals\", \"fire shield\"],\r\n\t\tselection : [\"conjure minor elementals\", \"fire shield\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"conjure minor elementals\" : {\r\n\t\t\tdescription : \"Summon 4 magma mephits or 4 magmins that obey my verbal commands\",\r\n\t\t\tchanges : \"Using the Ring of Hardened Magma, the spell summons either four magma mephits or four magmins.\"\r\n\t\t},\r\n\t\t\"fire shield\" : {\r\n\t\t\tdescription : \"Fiery shield gives resistance to Cold damage and deals 2d8 Fire damage to melee attackers\",\r\n\t\t\tdynamicDamageBonus : false,\r\n\t\t\tchanges : \"Using the Ring of Hardened Magma, the spell can only produce the warm shield.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"red dragon's thighbone\"] = {\r\n\tname : \"Red Dragon's Thighbone\",\r\n\tsource : [[\"SKT\", 105]], // Raven Rock ancient relic\r\n\ttype : \"weapon (greatclub)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This 14-ft long, 250 lb red dragon's thighbone can be used as a greatclub by a giant. It magically shrinks to a size that a creature that attunes to it can wield it effectively as a greatclub. It deals an extra 2d8 bludgeoning damage whenever it hits a creature of the dragon type.\",\r\n\tdescriptionFull : \"This 14-ft long, 250 lb red dragon's thighbone can be used as a greatclub by a giant. If a creature attunes to the greatclub, it magically shrinks to a size that the creature can wield effectively. The greatclub is considered a magic weapon that deals an extra 2d8 bludgeoning damage whenever it hits a dragon (including any creature of the dragon type).\",\r\n\tattunement : true,\r\n\tweight : 10,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greabclub\",\r\n\t\tregExpSearch : /^(?=.*red)(?=.*dragon)(?=.*thighbone).*$/i,\r\n\t\tname : \"Red Dragon's Thighbone\",\r\n\t\tsource : [[\"SKT\", 105]],\r\n\t\tdescription : \"Two-handed; +2d6 damage vs. dragons\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ancient relic boulder\"] = {\r\n\tname : \"Ancient Relic Boulder\",\r\n\tsource : [[\"SKT\", 105]], // One Stone ancient relic\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"As an action once per 7 days, I can use this stone to cast either Control Weather or Divination. As an action once per 24 hours, I can have it shrink to 6-inch diameter, 25 lb, or enlarge to normal, 15-ft diameter, 24000 lb. Anything the enlarged boulder falls on takes 10d10 bludgeoning damage, DC 15 Dex save to avoid.\",\r\n\tdescriptionFull : \"This boulder is a relic of giantkind that was shaped, carved, and abandoned long ago by a stone giant earth shaman. Any character who succeeds on a DC 15 Intelligence (Arcana) check can tell that the engraved lines adorning its outer surface are carefully designed to channel magical energy. A detect magic spell reveals an aura of transmutation magic emanating from it and casting identify spell on the boulder allows one to learn its magical properties, each of which is activated by tracing specific lines on its surface:\\n \\u2022 A creature can use an action to cast the control weather spell or the divination spell from the stone. Once either spell is cast, this property can't be used again for 7 days.\\n \\u2022 A creature can use an action to shrink the stone to the size of a 6-inch-diameter orb weighing 25 pounds, or enlarge the boulder to its normal size (15-foot diameter) and weight (12 tons). Anything the enlarged boulder falls on takes 55 (10d10) bludgeoning damage. A creature can avoid taking this damage by tumbling out of the way with a successful DC 15 Dexterity saving throw. Once the reducing or enlarging effect is used, this property can't be used again for 24 hours.\",\r\n\tweight : 25,\r\n\taction : [[\"action\", \" (shrink/enlarge)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ancient Relic Boulder (spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"7 days\"\r\n\t}, {\r\n\t\tname : \"Ancient Relic Boulder (shrink/enlarge)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"24 h\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"\",\r\n\t\tspells : [\"control weather\", \"divination\"],\r\n\t\tselection : [\"control weather\", \"divination\"],\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"control weather\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Ancient Relic Boulder, the spell takes only 1 action to cast.\"\r\n\t\t}\r\n\t}\r\n}\r\n\n// pub_20161115_VGtM.js\r\n// This file adds all the player-material from Volo's Guide to Monsters to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.V = {\r\n\tname : \"Volo's Guide to Monsters\",\r\n\tabbreviation : \"VGtM\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/volos-guide-to-monsters\",\r\n\tdate : \"2016/11/15\"\r\n};\r\n\r\n// Races\r\nRaceList[\"fallen aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*fallen).*$/i,\r\n\tname : \"Fallen Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 168]],\r\n\tplural : \"Fallen Aasimar\",\r\n\tsortname : \"Aasimar, Fallen\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 0, 0, 0, 2],\r\n\ttrait : \"Fallen Aasimar (+1 Strength, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nNecrotic Shroud: Once per long rest when I'm 3rd level, I can use an action to transform, causing all within 10 ft of me to make a Cha\" + (typePF ? \"\" : \"risma\") + \" saving throw (DC 8 + Cha mod + Prof Bonus) or be frightened of me until the end of my next turn. This lasts for 1 minute or until I end it as a bonus action. Once on my turn I can have one of my attacks or spells deals my level in extra necrotic damage to one target.\",\r\n\tabilitySave : 6,\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"necrotic shroud\" : {\r\n\t\t\tname : \"Necrotic Shroud\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"protector aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*protector).*$/i,\r\n\tname : \"Protector Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\tplural : \"Protector Aasimar\",\r\n\tsortname : \"Aasimar, Protector\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 1, 2],\r\n\ttrait : \"Protector Aasimar (+1 Wisdom, +2 Charisma)\\nLight Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Soul: Once per long rest when I'm 3rd level, I can use an action to transform, gaining glimmer in my eyes and two incorporeal wings. For 1 minute or until I end it as a bonus action, I have 30 feet fly speed; once on my turn I can have one of my attacks or spells deal my level in extra radiant damage to one target.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"radiant soul\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"scourge aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*scourge).*$/i,\r\n\tname : \"Scourge Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\tplural : \"Scourge Aasimar\",\r\n\tsortname : \"Aasimar, Scourge\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Scourge Aasimar (+1 Constitution, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Consumption: Once per long rest when I'm 3rd level, I can use an action to radiate bright light in 10-ft radius and dim light for another 10-ft, for 1 minute or until I end it as a bonus action. Once on my turn my attack or spell deals my level in extra radiant damage to one target, and at the end of my turns all creatures within 10 ft of me, including myself, take half my level in radiant damage.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"radiant consumption\" : {\r\n\t\t\tname : \"Radiant Consumption\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 3) return \"\"\r\n\t\t\t\treturn Math.ceil(n/2) + \"/\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"bugbear\"] = {\r\n\tregExpSearch : /bugbear/i,\r\n\tname : \"Bugbear\",\r\n\tsource : [[\"V\", 119], [\"E:RLW\", 25], [\"W\", 174]],\r\n\tplural : \"Bugbears\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Stealth\"],\r\n\tage : \" reach adulthood at age 16 and live up to 80 years\",\r\n\theight : \" are between 6 and 8 feet tall (6'0\\\" + 2d12\\\")\",\r\n\tweight : \" weigh between 250 and 350 lb (200 + 2d12 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 1,9 and 2,4 metres tall (185 + 5d12 cm)\",\r\n\tweightMetric : \" weigh between 115 and 160 kg (90 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 1, 0, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"surprise attack\" : {\r\n\t\t\tname : \"Surprise Attack\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"Combat\",\r\n\t\t\tadditional : \"2d6\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Bugbear (+2 Strength, +1 Dexterity)\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\nLong-Limbed: I have an additional 5 feet reach with melee attacks that I make on my turn.\\nSurprise Attack: If I hit a surprised creature on my first turn in combat, that attack deals an extra 2d6 damage. I can do this only once per combat.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"firbolg\"] = {\r\n\tregExpSearch : /firbolg/i,\r\n\tname : \"Firbolg\",\r\n\tsource : [[\"V\", 106], [\"W\", 170]],\r\n\tplural : \"Firbolg\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Giant\", \"Speech of Beast and Leaf\"],\r\n\tage : \" reach adulthood around 30 and can live for 500 years\",\r\n\theight : \" are between 6 and half and 8 feet tall (6'2\\\" + 2d12\\\")\",\r\n\tweight : \" weigh between 240 and 300 lb (175 + 2d12 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 2 and 2,5 metres tall (190 + 5d12 cm)\",\r\n\tweightMetric : \" weigh between 110 and 135 kg (80 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 0, 0, 2, 0],\r\n\ttrait : \"Firbolg (+1 Strength, +2 Wisdom)\" + (typePF ? \"\\n\" : \" \") + \"Hidden Step: Once per short rest, as a bonus action, I turn invisible until the start of my next turn as per the invisibility spell.\\nPowerful Build: I count as one size larger for the weight I can carry.\\nFirbolg Magic: I can cast the Detect Magic and Disguise Self spells each once per short rest. With Disguise Self I can seem up to 3 feet shorter. Wisdom is my ability for these spells.\\nSpeech of Beast and Leaf: I can make my words understood, in a limited manner, by beasts and plants. I have advantage on Charisma checks to influence them.\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"firbolg magic (detect magic)\" : {\r\n\t\t\tname : \"Firbolg Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\tspells : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tselection : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"disguise self\" : {\r\n\t\t\t\t\tdescription : \"Alter appearance, up to 3ft shorter/taller; Int(Investigation) check vs. spell DC to determine disguise\",\r\n\t\t\t\t\tchanges : \"Using Firbolg Magic, I can cast Disguise Self once per short rest to also seem up to 3 feet shorter or taller.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"hidden step\" : {\r\n\t\t\tname : \"Hidden Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"goblin\"] = {\r\n\tregExpSearch : /^(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\tname : \"Goblin\",\r\n\tsource : [[\"V\", 119], [\"G\", 17], [\"E:RLW\", 26], [\"W\", 174]],\r\n\tplural : \"Goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"fury of the small\" : {\r\n\t\t\tname : \"Fury of the Small\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map(function (n) { return \"+\" + n + \" damage\"; })\r\n\t\t}\r\n\t},\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Goblin (+2 Dexterity, +1 Constitution)\"+\r\n\t\"\\n \\u2022 Fury of the Small: Once per short rest, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my level.\"+\r\n\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\nRaceList[\"hobgoblin\"] = {\r\n\tregExpSearch : /hobgoblin/i,\r\n\tname : \"Hobgoblin\",\r\n\tsource : [[\"V\", 119], [\"E:RLW\", 26], [\"W\", 175]],\r\n\tplural : \"Hobgoblins\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tarmorProfs : [true, false, false, false],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 150 and 200 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 70 and 90 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\tfeatures : {\r\n\t\t\"saving face\" : {\r\n\t\t\tname : \"Saving Face\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hobgoblin (+2 Constitution, +1 Intelligence)\\n\\nMartial Training: I am proficient with two martial weapons of my choice and light armor.\\n\\nSaving Face: Once per short rest, when I miss an attack roll or fail an ability check or a saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5).\"\r\n};\r\nRaceList[\"kenku\"] = {\r\n\tregExpSearch : /kenku/i,\r\n\tname : \"Kenku\",\r\n\tsource : [[\"V\", 109], [\"W\", 177]],\r\n\tplural : \"Kenku\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Acrobatics, Deception, Stealth, and Sleight of Hand\",\r\n\tlanguageProfs : [\"Common\", \"Auran\"],\r\n\tage : \" reach maturity at about 12 years old and can live to 60\",\r\n\theight : \" are around 5 feet tall (4'4\\\" + 2d8\\\")\",\r\n\tweight : \" weigh between 90 and 120 lb (70 + 2d8 \\xD7 1d4 lb)\",\r\n\theightMetric : \" are around 1,5 metres tall (135 + 5d8 cm)\",\r\n\tweightMetric : \" weigh between 40 and 55 kg (35 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Kenku (+2 Dexterity, +1 Wisdom)\"+\r\n\t\t\"\\n \\u2022 Expert Forgery: Kenku can duplicate other creatures' handwriting and craftwork. I have advantage on all checks made to produce forgeries or duplicates of existing objects.\"+\r\n\t\t\"\\n \\u2022 Mimicry: I can mimic any sounds I have heard, including voices, but can otherwise not speak. Creatures hearing these sounds can determine they are imitations with a successful Wisdom (Insight) check opposed by my Charisma (Deception).\"\r\n};\r\nRaceList[\"kobold\"] = {\r\n\tregExpSearch : /kobold/i,\r\n\tname : \"Kobold\",\r\n\tsource : [[\"V\", 119]],\r\n\tplural : \"Kobolds\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tvision : [[\"Darkvision\", 60], [\"Sunlight Sensitivity\", 0]],\r\n\tage : \" reach adulthood at age 6 and can live up to 120 years, but rarely do so\",\r\n\theight : \" are between 2 and 3 feet tall (2'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 25 and 35 lb (25 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 65 and 90 cm tall (63 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 10 and 15 kg (11 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"grovel, cower, and beg\" : {\r\n\t\t\tname : \"Grovel, Cower, and Beg\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kobold (+2 Dexterity)\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nGrovel, Cower, and Beg: As an action, I can distract all foes within 10 feet of me that can see me so that my allies gain advantage on attack rolls against them.\\nPack Tactics: I have advantage on attack rolls against creatures when at least one of my allies is within 5 feet of that creature and that ally is not incapacitated.\"\r\n};\r\nRaceList[\"lizardfolk\"] = {\r\n\tregExpSearch : /lizard(folk|man|men)/i,\r\n\tname : \"Lizardfolk\",\r\n\tsource : [[\"V\", 111]],\r\n\tplural : \"Lizardfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Animal Handling, Nature, Perception, Stealth, and Survival\",\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bbite\\b/i,\r\n\t\tname : \"Bite\",\r\n\t\tsource : [[\"V\", 113]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\r\n\t\tname : \"Natural Armor\",\r\n\t\tsource : [[\"V\", 113]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach maturity around age 14 and rarely live longer than 60 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'9\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 200 lb (120 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 95 kg (55 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\tfeatures : {\r\n\t\t\"cunning artisan\" : {\r\n\t\t\tname : \"Cunning Artisan\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"hungry jaws\" : {\r\n\t\t\tname : \"Hungry Jaws\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Lizardfolk (+2 Constitution, +1 Wisdom) Bite: I can use my fanged maw to make unarmed strikes dealing 1d6 piercing damage.\" + (typePF ? \"\\n\" : \" \") + \"Cunning Artisan: As part of a short rest I can harvest parts of a slain creature to make a shield, club, javelin, or 1d4 darts/blowgun needles. This requires a suitable corpse and appropriate tools.\" + (typePF ? \"\\n\" : \" \") + \"Hold Breath: I can hold my breath for up to 15 minutes at a time.\" + (typePF ? \"\\n\" : \" \") + \"Natural Armor: I have an AC of 13 + Dexterity modifier + shield.\" + (typePF ? \"\\n\" : \" \") + \"Hungry Jaws: As a bonus action, once per short rest, I can make a special bite attack and if it hits I gain temporary HP equal to my Con modifier (min 1).\"\r\n};\r\nRaceList[\"orc\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\bor(c|k)).*$/i,\r\n\tname : \"Orc\",\r\n\tsource : [[\"V\", 120], [\"E:RLW\", 32], [\"W\", 178]],\r\n\tplural : \"Orcs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskillstxt : \"Choose two from Animal Handling, Insight, Intimidation, Medicine, Nature, Perception, and Survival.\",\r\n\tage : \" reach adulthood at age 12 and live up to 50 years\",\r\n\theight : \" are usually over 6 feet tall (5'4\\\" + 2d8\\\")\",\r\n\tweight : \" weigh between 230 and 280 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are usually over 1,8 metres tall (160 + 5d8 cm)\",\r\n\tweightMetric : \" weigh between 100 and 125 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\ttrait : \"Orc (+2 Strength, +1 Constitution)\\n\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\n\\nAggressive: As a bonus action, I can move up to my speed toward an enemy that I can see or hear. I must end my move closer to this enemy than I started.\",\r\n\taction : [[\"bonus action\", \"Aggressive (dash to enemy)\"]],\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"tabaxi\"] = {\r\n\tregExpSearch : /tabaxi/i,\r\n\tname : \"Tabaxi\",\r\n\tsource : [[\"V\", 113], [\"W\", 179]],\r\n\tplural : \"Tabaxi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : 20, enc : 10 }\r\n\t},\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(tabaxi|\\bcat\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Tabaxi Claws\",\r\n\t\tsource : [[\"V\", 115]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\tfeatures : {\r\n\t\t\"feline agility\" : {\r\n\t\t\tname : \"Feline Agility\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \" Turn\",\r\n\t\t\tadditional : \"still for 1 turn to recover\",\r\n\t\t\ttooltip : \" (can be replenished by not moving for one whole turn)\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Tabaxi (+2 Dexterity, +1 Charisma)\"+\r\n\t\"\\n \\u2022 Cat's Talent: I have proficiency in Perception and Stealth.\"+\r\n\t\"\\n \\u2022 Cat's Claws: I can use my retractable claws to make unarmed strikes dealing 1d4 slashing damage. They also give me a climbing speed of 20 ft.\"+\r\n\t\"\\n \\u2022 Feline Agility: When moving on my turn in combat, I can move double my speed. Once I do this, I can't do it again until I don't move at all on one of my turns.\"\r\n};\r\nRaceList[\"triton\"] = {\r\n\tregExpSearch : /triton/i,\r\n\tname : \"Triton\",\r\n\tsource : [[\"V\", 115], [\"MOT\", 26]],\r\n\tplural : \"Triton\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\", \"Emissary of the Sea\"],\r\n\tdmgres : [\"Cold\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach maturity around age 15 and can live up to 200 years\",\r\n\theight : \" are around 5 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" are around 1,6 metres tall (135 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 1],\r\n\ttrait : \"Triton (+1 Strength, +1 Constitution, and +1 Charisma)\\nControl Air and Water: I can cast the Fog Cloud spell. Once I reach 3rd level, I can cast the Gust of Wind spell. Once I reach 5th level, I can cast the Wall of Water spell. All three spells can be used once per long rest. Charisma is my spellcasting ability for these spells.\\nEmissary of the Sea: I can communicate simple ideas to beasts that can breathe water.\\nGuardians of the Depths: Adapted to even the most extreme ocean depths, I have resistance to cold damage.\" + (typePF ? \"\\n\" : \" \") + \"Amphibious: I can breathe air and water.\",\r\n\tspellcastingAbility : 6,\r\n\tfeatures : {\r\n\t\t\"fog cloud\" : {\r\n\t\t\tname : \"Control Air and Water (level 1)\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (1)\",\r\n\t\t\t\tspells : [\"fog cloud\"],\r\n\t\t\t\tselection : [\"fog cloud\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Control Air and Water (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"wall of water\" : {\r\n\t\t\tname : \"Control Air and Water (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (5)\",\r\n\t\t\t\tspells : [\"wall of water\"],\r\n\t\t\t\tselection : [\"wall of water\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"yuan-ti pureblood\"] = {\r\n\tregExpSearch : /^(?!.*human)(?=.*yuan.ti)(?=.*pure.?blood).*$/i,\r\n\tname : \"Yuan-Ti Pureblood\",\r\n\tsource : [[\"V\", 120]],\r\n\tplural : \"Yuan-Ti Purebloods\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Abyssal\", \"Draconic\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\timmune : [\"poison\"],\r\n\t\tadv_vs : [\"magic\"]\r\n\t},\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Yuan-Ti Pureblood (+1 Intelligence, +2 Charisma)\"+\r\n\t\t\"\\n \\u2022 Innate Spellcasting: I know the Poison Spray cantrip and I can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\"+\r\n\t\t\"\\n \\u2022 Magic Resistance: I have advantage on saving throws against spells and other magical effects.\"+\r\n\t\t\"\\n \\u2022 Poison Immunity: I am immune to poison damage and the poisoned condition.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"One snake with Intelligence 3 or less save or charmed for the duration\",\r\n\t\t\tchanges : \"I can cast Animal Friendship at-will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"suggestion\" : {\r\n\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Creatures\r\nCreatureList[\"aurochs\"] = {\r\n\tname : \"Aurochs\",\r\n\tsource : [[\"V\", 207], [\"MotM\", 71]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 38,\r\n\thd : [4, 10], //[#, die]\r\n\tspeed : \"50 ft\",\r\n\tscores : [20, 10, 19, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the aurochs moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) piercing damage. A targeted creature must succeed on a DC 15 Strength saving throw or be knocked prone.\"\r\n\t}]\r\n};\r\nCreatureList[\"cow\"] = {\r\n\tname : \"Cow\",\r\n\tsource : [[\"V\", 207]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the cow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}]\r\n};\r\nCreatureList[\"ox\"] = {\r\n\tname : \"Ox\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the ox moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Beast of Burden\",\r\n\t\tdescription : \"The oxen is considered to be a Huge animal for the purpose of determining its carrying capacity.\"\r\n\t}]\r\n};\r\nCreatureList[\"deep rothe\"] = {\r\n\tname : \"Deep Roth\\xE9\",\r\n\tnameAlt : [\"Roth\\xE9, Deep\"],\r\n\tsource : [[\"V\", 208], [\"MotM\", 71]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 13,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the roth\\xE9 moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Dancing Lights\",\r\n\t\tdescription : \"The roth\\xE9 casts dancing lights, requiring no spell components and using Wisdom as the spellcasting ability.\"\r\n\t}]\r\n};\r\nCreatureList[\"rothe\"] = {\r\n\tname : \"Roth\\xE9\",\r\n\tsource : [[\"V\", 208]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the roth\\xE9 moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}]\r\n};\r\nCreatureList[\"stench kow\"] = {\r\n\tname : \"Stench Kow\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\tsize : 2, //Large\r\n\ttype : \"Fiend\", // Change in MotM from Beast\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tdamage_resistances : \"cold, fire, and poison damage\",\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Stench\",\r\n\t\tdescription : \"Any creature other than a stench kow starting its turn within 5 ft of a stench kow must make a DC 12 Constitution saving throw or be poisoned until the start of the creature's next turn. On a successful saving throw, the creature is immune to the stench of all stench kows for 1 hour.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Darkvision 60 ft.\" + (typePF ? \"\\n\" : \" \") + \"##Resistances##. Cold, fire, poison.\",\r\n\t\t\"##Charge##. If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, it deals extra 2d6 piercing damage.\",\r\n\t\t\"##Stench##. Any creature starting its turn within 5 ft of a stench kow must make a DC 12 Con save or be poisoned until the start of the its next turn. On a success, it is immune to the stench of all stench kows for 1 hour\",\r\n\t].join(\"\\n\")\r\n};\r\nCreatureList[\"dolphin\"] = {\r\n\tname : \"Dolphin\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 97]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 11,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"swim 60 ft\",\r\n\tscores : [14, 13, 13, 6, 12, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Blindsight 60 ft\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 30 ft straight in the same round, deals extra 1d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the dolphin moves at least 30 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 3 (1d6) bludgeoning damage.\"\r\n\t}, {\r\n\t\tname : \"Hold Breath\",\r\n\t\tdescription : \"The dolphin can hold its breath for 20 minutes.\"\r\n\t}]\r\n};\r\nCreatureList[\"cranium rat\"] = {\r\n\tname : \"Cranium Rat\",\r\n\tnameAlt : [\"Rat, Cranium\"],\r\n\tsource : [[\"V\", 133], [\"MotM\", 83]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Aberration\", // Change in MotM from Beast\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Lawful Evil\",\r\n\tac : 12,\r\n\thp : 2,\r\n\thd : [1, 4], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [2, 14, 10, 4, 11, 8], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Illumination\",\r\n\t\tdescription : \"As a bonus action, the cranium rat can shed dim light from its brain in a 5-foot radius or extinguish the light.\"\r\n\t}, {\r\n\t\tname : \"Telepathic Shroud\",\r\n\t\tdescription : \"The cranium rat is immune to any effect that would sense its emotions or read its thoughts, as well as to all divination spells.\"\r\n\t}]\r\n};\r\nCreatureList[\"brontosaurus\"] = {\r\n\tname : \"Brontosaurus\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 215], [\"MotM\", 95]],\r\n\tsize : 0, //Gargantuan\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 121,\r\n\thd : [9, 20], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsaves : [\"\", \"\", 6, \"\", \"\", \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Stomp\",\r\n\t\tability : 1,\r\n\t\tdamage : [5, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (20 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\"\r\n\t}, {\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [6, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (20 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"deinonychus\"] = {\r\n\tname : \"Deinonychus\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 26,\r\n\thd : [4, 8], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [15, 15, 14, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 3,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two claw and one bite as one Attack action; If used after moving 20 ft straight in the same round, see Pounce trait\"\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two claw and one bite as one Attack action (also, see Pounce trait)\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the deinonychus can make two Claw and one Bite attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the deinonychus moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the deinonychus can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"dimetrodon\"] = {\r\n\tname : \"Dimetrodon\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 19,\r\n\thd : [3, 8], //[#, die]\r\n\tspeed : \"30 ft, swim 20 ft\",\r\n\tscores : [14, 10, 15, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"hadrosaurus\"] = {\r\n\tname : \"Hadrosaurus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 224], [\"MotM\", 96]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 19,\r\n\thd : [3, 10], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [15, 10, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"quetzalcoatlus\"] = {\r\n\tname : \"Quetzalcoatlus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 230], [\"MotM\", 96]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 30,\r\n\thd : [4, 12], //[#, die]\r\n\tspeed : \"10 ft, fly 80 ft\",\r\n\tscores : [15, 13, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [3, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"If used after diving 30 ft towards a target, the attack deals 3d6 extra damage (Dive Attack)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Dive Attack\",\r\n\t\tdescription : \"If the quetzalcoatlus is flying and dives at least 30 ft toward a creature and then hits it with a bite attack, the attack deals an extra 10 (3d6) damage to the target.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The quetzalcoatlus doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\nCreatureList[\"stegosaurus\"] = {\r\n\tname : \"Stegosaurus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 231], [\"MotM\", 96]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 76,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [20, 9, 17, 2, 11, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [6, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"velociraptor\"] = {\r\n\tname : \"Velociraptor\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 235], [\"MotM\", 96]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 10,\r\n\thd : [3, 4], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [6, 14, 13, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claw\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the velociraptor can make one Bite and one Claw attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The velociraptor has advantage on an attack roll against a creature if at least one of the velociraptor's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}]\r\n};\r\nCreatureList[\"gazer\"] = {\r\n\tname : \"Gazer\",\r\n\tsource : [[\"V\", 126], [\"MotM\", 134]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Aberration\",\r\n\tsubtype : \"Beholder\", // MotM addition\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 13,\r\n\thp : 13,\r\n\thd : [3, 4], //[#, die]\r\n\tspeed : \"0 ft, fly 30 ft\",\r\n\tscores : [3, 17, 14, 3, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsaves : [\"\", \"\", \"\", \"\", 2, \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Eye Rays\",\r\n\t\tability : 3,\r\n\t\tdamage : [\"Special\", \"\", \"\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"Shoot two randomly determined different rays as one action; Each ray has its own target; See traits\",\r\n\t\tdc : true,\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Aggressive\",\r\n\t\tdescription : \"As a bonus action, the gazer moves its speed toward an enemy that it can see.\"\r\n\t}, {\r\n\t\tname : \"Mimicry\",\r\n\t\tdescription : \"The gazer can mimic simple speech it has heard, in any language. Any who hear this can tell it is an imitation with a successful DC 10 Wis (Insight) check.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Eye Rays\",\r\n\t\tdescription : \"1. Dazing Ray: Wisdom saving throw or charmed until the start of the gazer's next turn. While charmed, half speed and disadv. on attacks.\\n2. Fear Ray: Wisdom saving throw or frightened until the start of the gazer's next turn.\\n3. Frost Ray: Target must make a Dexterity saving throw or 10 (3d6) cold damage.\\n4. Telekinetic Ray: Medium or smaller creature, Strength saving throw or be moved up to 30 ft away from the gazer. If it is an unattended Tiny object, the gazer moves it up to 30 ft in any direction. It can exert fine control on objects this way.\" // MotM: no longer 10 lb limit, just Tiny object\r\n\t}],\r\n\tvariant : [{\r\n\t\tname : \"Variant: Familiar\",\r\n\t\tdescription : \"The gazer can serve another creature as a familiar, forming a telepathic bond with its willing master, provided that the master is at least a 3rd-level spellcaster. While the two are bonded, the master can sense what the gazer senses as long as they are within 1 mile of each other. If its master causes it physical harm, the gazer will end its service as a familiar, breaking the telepathic bond.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"mind blade\"] = {\r\n\tname : \"Mind Blade\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"Mind flayers can turn any nonmagical sword into a mind blade. Only one creature can attune to this sword: either a specific mind flayer or one of its thralls. In the hands of its intended wielder, the mind blade is a magic weapon that deals an extra 2d6 psychic damage to any target it hits.\",\r\n\tdescriptionFull : \"Mind flayers can turn any nonmagical sword into a mind blade. Only one creature can attune to it: either a specific mind flayer or one of its thralls. In the hands of any other creature, the mind blade functions as a normal sword of its kind. In the hands of its intended wielder, the mind blade is a magic weapon that deals an extra 2d6 psychic damage to any target it hits.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by the creature this armor was made for: either a specific mind flayer or one of its thralls\",\r\n\tprereqeval : function (v) { return false; },\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/^(?=.*mind)(?=.*blade).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 psychic damage';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Mind Blade\" in a the name of a sword, it will be treated as the magic weapon Mind Blade, which adds +2d6 psychic damage on any hit as long as attuned to its intended wielder.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"mind carapace armor\"] = {\r\n\tname : \"Mind Carapace Armor\",\r\n\tnameTest : /mind.carapace.*armou?r/i,\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"armor (heavy)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Only one creature can attune to this armor: either a specific mind flayer or one of its thralls. To its intended wearer, the armor grants advantage on Intelligence, Wisdom, and Charisma saving throws and makes its wearer immune to the frightened condition.\",\r\n\tdescriptionFull : \"Any nonmagical suit of heavy armor can be turned by mind flayers into mind carapace armor. Only one creature can attune to it: either a specific mind flayer or one of its thralls. While worn by any other creature, the mind carapace armor functions as normal armor of its kind. To its intended wearer, the armor grants advantage on Intelligence, Wisdom, and Charisma saving throws and makes its wearer immune to the frightened condition.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by the creature this armor was made for: either a specific mind flayer or one of its thralls\",\r\n\tprereqeval : function (v) { return false; },\r\n\tsavetxt : { text : [\"Adv. on Int, Wis, and Cha saves\"], immune : [\"frightened\"] },\r\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]],\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Mind Carapace\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Mind Carapace\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/heavy/i).test(inObj.type);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"mind lash\"] = {\r\n\tname : \"Mind Lash\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"weapon (whip)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This magic whip strips away a creature's will to survive as it also strips away flesh and deals +2d4 psychic damage on each hit. Any target taking psychic damage must succeed on a DC 15 Wisdom save or have disadv. on Int, Wis, and Cha saves for 1 minute. It can repeat the save at the end of each of its turns.\",\r\n\tdescriptionFull : \"In the hands of any creature other than a mind flayer, a mind lash functions as a normal whip. In the hands of an illithid, this magic weapon strips away a creature's will to survive as it also strips away flesh, dealing an extra 2d4 psychic damage to any target it hits. Any creature that takes psychic damage from the mind lash must also succeed on a DC 15 Wisdom saving throw or have disadvantage on Intelligence, Wisdom, and Charisma saving throws for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tprerequisite : \"Requires attunement by an illithid\",\r\n\tprereqeval : function (v) { return (/mind flayer|illithid/i).test(What(\"Race\")); },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"whip\",\r\n\t\tregExpSearch : /^(?=.*mind)(?=.*lash).*$/i,\r\n\t\tname : \"Mind Lash\",\r\n\t\tsource : [[\"V\", 81]],\r\n\t\tdescription : \"Finesse, reach; +2d4 psychic damage; DC 15 Wis save or disadv. on Int/Wis/Cha saves for 1 min\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"shield of far sight\"] = {\r\n\tname : \"Shield of Far Sight\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"shield\",\r\n\trarity : \"rare\",\r\n\tdescription : \"The mind flayer that created this shield can see through its eye with 60 ft darkvision while it is on the same plane. While peering through this magical eye, the mind flayer can use its Mind Blast action as though it were standing behind the shield. If a shield of far sight is destroyed, its creator is blinded for 2d12 hours.\",\r\n\tdescriptionFull : \"A mind flayer skilled at crafting magic items creates a shield of far sight by harvesting an eye from an intelligent humanoid and magically implanting it on the outer surface of a nonmagical shield. The shield becomes a magic item once the eyes is implanted, whereupon the mind flayer can give the shield to a thrall or hang it on a wall in its lair. As long as the shield is on the same plane of existence as its creator, the mind flayer can see through the shield's eye, which has darkvision out to a range of 60 feet. While peering through this magical eye, the mind flayer can use its Mind Blast action as though it were standing behind the shield.\\n   If a shield of far sight is destroyed, the mind flayer that created it is blinded for 2d12 hours.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Shield of Far Sight\"\r\n}\r\nMagicItemsList[\"survival mantle\"] = {\r\n\tname : \"Survival Mantle\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"armor (half plate)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"This mantle functions as a half plate and takes just as long to don or doff. It encases portions of my shoulders, neck, and chest so that I can breathe normally in any environment (including a vacuum) and gives me advantage on saving throws against gases (such as Cloudkill, Stinking Cloud, or inhaled poisons).\",\r\n\tdescriptionFull : \"This carapace-like augmentation encases portions of the wearer's shoulders, neck, and chest. A survival mantle is equivalent to a suit of nonmagical half plate armor and takes just as long to don or doff. It can't be worn with other kinds of armor.\\n   A creature wearing a survival mantle can breathe normally in any environment (including a vacuum) and has advantage on saving throws against harmful gases (such as those created by a Cloudkill spell, a Stinking Cloud spell, inhaled poisons, and the breath weapons of some dragons).\",\r\n\tweight : 40,\r\n\tsavetxt : { adv_vs : [\"gases\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*survival)(?=.*mantle).*$/i,\r\n\t\tname : \"Survival Mantle\",\r\n\t\tsource : [[\"V\", 81]],\r\n\t\ttype : \"medium\",\r\n\t\tac : 15,\r\n\t\tstealthdis : true,\r\n\t\tweight : 40,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\n// pub_20170404_TftYP.js\n// This file adds the beasts from the Tales from the Yawning Portal adventure book to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.TftYP={\n\tname : \"Tales from the Yawning Portal [beasts, items]\",\n\tabbreviation : \"TftYP\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Anthology\",\n\turl : \"https://dnd.wizards.com/products/tales-yawning-portal\",\n\tdate : \"2017/04/04\"\n};\n\n// Creatures\n// Snow leopard is just a tiger under a different name, it has been added to the SRD code as a `nameAlt`\nCreatureList[\"giant crayfish\"] = {\n\tname : \"Giant Crayfish\",\n\tnameAlt : [\"Crayfish, Giant\"],\n\tsource : [[\"TftYP\", 235]],\n\tsize : 2, //Large\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 15,\n\thp : 45,\n\thd : [7, 10], //[#, die]\n\tspeed : \"30 ft, swim 30 ft\",\n\tscores : [15, 13, 13, 1, 9, 3], //[Str, Dex, Con, Int, Wis, Cha]\n\tskills : {\n\t\t\"stealth\" : 3\n\t},\n\tsenses : \"Blindsight 30 ft\",\n\tpassivePerception : 9,\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\t\tname : \"Claw\",\n\t\t\tability : 1,\n\t\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Target grappled on hit (escape DC 12); 2 claw attacks as Attack action, if not grappling with claw\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Amphibious\",\n\t\t\tdescription : \"The giant crayfish can breathe air and water.\"\n\t\t}\n\t]\n};\nCreatureList[\"giant ice toad\"] = {\n\tname : \"Giant Ice Toad\",\n\tnameAlt : [\"Toad, Giant Ice\"],\n\tsource : [[\"TftYP\", 235]],\n\tsize : 2, //Large\n\ttype : \"Monstrosity\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 52,\n\thd : [7, 10], //[#, die]\n\tspeed : \"30 ft\",\n\tscores : [16, 13, 14, 8, 10, 6], //[Str, Dex, Con, Int, Wis, Cha]\n\tdamage_immunities : \"cold\",\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 10,\n\tlanguages : \"Ice Toad\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\t\tname : \"Bite\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Target is grappled and restrained (escape DC 13); Can't use bite again until grapple ends\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Amphibious\",\n\t\t\tdescription : \"The toad can breathe air and water\"\n\t\t}, {\n\t\t\tname : \"Cold Aura\",\n\t\t\tdescription : \"A creature that starts its turn within 10 feet of the toad takes 5 (1d10) cold damage.\"\n\t\t}, {\n\t\t\tname : \"Standing Leap\",\n\t\t\tdescription : \"The toad's long jump is up to 20 ft and its high jump is up to 10 ft, with or without a running start.\"\n\t\t}\n\t],\n\tfeatures : [{\n\t\t\tname : \"Swallow\",\n\t\t\tdescription : \"The toad can make a bite attack against a Medium or smaller target it is grappling. If it hits, the target takes bite damage, is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the toad, and it takes 10 (3d6) acid damage and 11 (2d6) cold damage at the start of each of the toad's turns. The toad can have only one target swallowed at a time.\\nIf the toad dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 5 feet of movement, exiting prone.\"\n\t\t}\n\t],\n\twildshapeString : (typePF ? \"##Senses##. \" : \"\") + \"Darkvision 60 ft. ##Cold Aura##. Any within 5 ft at start of their turn take 1d10 cold damage. ##Amphibious##. Breathes air and water. ##Standing Leap##. Long jump 20 ft and high jump 10 ft, regardless of start. ##Swallow##. If bite attack hits Medium or smaller being grappling, it takes bite damage and is swallowed: blinded, restrained, total cover, takes 3d6 acid and 2d6 cold damage at the start of each of the toad's turns; Only 1 swallowed at a time.\"\n};\nCreatureList[\"giant lightning eel\"] = {\n\tname : \"Giant Lightning Eel\",\n\tnameAlt : [\"Eel, Giant Lightning\"],\n\tsource : [[\"TftYP\", 236]],\n\tsize : 2, //Large\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 42,\n\thd : [5, 10], //[#, die]\n\tspeed : \"5 ft, swim 30 ft\",\n\tscores : [11, 17, 16, 2, 12, 3], //[Str, Dex, Con, Int, Wis, Cha]\n\tdamage_resistances : \"lightning\",\n\tsenses : \"Blindsight 60 ft\",\n\tpassivePerception : 11,\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"+1d8 lightning damage on a hit; Two bite attacks as an Attack action\"\n\t}, {\n\t\tname : \"Lightning Jolt (Recharge 5-6)\",\n\t\tability : 3,\n\t\tdamage : [3, 8, \"lightning\"], //[#, die, type] \"\" for die is allowed\n\t\trange : \"Out/in 5/15 ft\",\n\t\tdc : true,\n\t\tdescription : \"Out water: 5 ft, 1 crea; In water: all in 15 ft; Con save: fail― stunned until eel's next turn end, success― half damage\",\n\t\tmodifiers : [-1, \"\"],\n\t\tabilitytodamage : false,\n\t\ttooltip : \"One creature the eel touches within 5 feet of it outside water, or each creature within 15 feet of it in a body of water, must make a DC 12 Constitution saving throw. On failed save, a target takes 13 (3d8) lightning damage. If the target takes any of this damage, the target is stunned until the end of the eel's next turn. On a successful save, a target takes half as much damage and isn't stunned\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the eel can make two Bite attacks.\"\n\t}, {\n\t\tname : \"Lightning Jolt (Recharge 5-6)\",\n\t\tdescription : \"See Attack. One creature the eel touches within 5 feet of it outside water, or each creature within 15 feet of it in a body of water, must make a DC 12 Constitution saving throw. On failed save, a target takes 13 (3d8) lightning damage. If the target takes any of this damage, the target is stunned until the end of the eel's next turn. On a successful save, a target takes half as much damage and isn't stunned\"\n\t}]\n};\nCreatureList[\"giant subterranean lizard\"] = {\n\tname : \"Giant Subterranean Lizard\",\n\tnameAlt : [\"Lizard, Giant Subterranean\"],\n\tsource : [[\"TftYP\", 236]],\n\tsize : 1, //Huge\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 66,\n\thd : [7, 12], //[#, die]\n\tspeed : \"30 ft, swim 50 ft\",\n\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\n\tskills : {\n\t\t\"stealth\" : 3\n\t},\n\tpassivePerception : 10,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\t\tname : \"Bite\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 10, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Target grappled \\u0026 restrained (escape DC 15); Can't use bite until grapple ends\"\n\t\t}, {\n\t\t\tname : \"Tail\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (10 ft)\",\n\t\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Target DC 15 Str save or knocked prone\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Swallow\",\n\t\t\tdescription : \"The lizard can make one bite attack against a Medium or smaller target it is grappling. If the attack hits, the target takes bite damage, is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the lizard, and it takes 10 (3d6) acid damage at the start of each of the lizard's turns. The lizard can have only one target swallowed at a time.\\nIf the lizard dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 10 feet of movement, exiting prone.\"\n\t\t}\n\t],\n\twildshapeString : \"##Swallow##. If a bite attack hits a Small or smaller target that is currently being grappled by the lizard, the target is swallowed, ending the grapple. While swallowed, it is blinded, restrained, has total cover, and takes 3d4 acid damage at the start of each of the lizard's turns; The lizard can have only 1 swallowed at a time. If the lizard dies, the swallowed creature is no longer restrained and can escape using 10 ft movement.\"\n};\n\n// Magic Items\nMagicItemsList[\"flame tongue shortsword of gem detection\"] = {\t// contributed by Nod_Hero\n\tname : \"Flame Tongue Shortsword of Gem Detection\",\n\tsource : [[\"TftYP\", 178]],\n\ttype : \"weapon (shortsword)\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can speak the command word to cause flames that add +2d6 fire damage and shine bright light for 40 ft \\u0026 dim light for 40 ft. The flames last until I speak the word again or sheathe it. As an action, I can mentally command it to detect type and quantity of gems and jewels within 60 ft of the sword.\",\n\tdescriptionFull : \"You can use a bonus action to speak this magic sword's command word, causing flames to erupt from the blade. These flames shed bright light in a 40-foot radius and dim light for an additional 40 feet. While the sword is ablaze, it deals an extra 2d6 fire damage to any target it hits. The flames last until you use a bonus action to speak the command word again or until you drop or sheathe the sword.\"+\n\t\"\\n   While you are attuned to this sword you can use an action to mentally command it to detect gems and jewels. You learn the kind and number of such objects within 60 feet of the sword.\",\n\taction : [\n\t\t[\"bonus action\", \"Flame Tongue (activate/end)\"],\n\t\t[\"action\", \"Gem Detection (within 60 ft)\"]\n\t],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"shortsword\",\n\t\tregExpSearch : /^(?=.*flame tongue)(?=.*short)(?=.*sword).*$/i,\n\t\tname : \"Flame Tongue Shortsword\",\n\t\tsource : [[\"TftYP\", 179]],\n\t\tdescription : \"Finesse, light; While active, +2d6 fire damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"amulet of protection from turning\"] = {\n\tname : \"Amulet of Protection from Turning\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"This silver and turquoise amulet has 3 charges, regain all at dawn. It gives me adv. on saves against effects that turn undead. If I fail a save against such an effect, I can expend 1 charge to succeed instead. It glows with a silvery blue light for a few seconds each time an effect that turns undead is used on me.\",\n\tdescriptionFull : \"While you wear this amulet of silver and turquoise, you have advantage on saving throws against effects that turn undead.\\n   If you fail a saving throw against such an effect, you can choose to succeed instead. You can do so three times, and expended uses recharge daily at dawn. Each time an effect that turns undead is used against you, the amulet glows with silvery blue light for a few seconds.\",\n\tattunement : true,\n\tweight : 1,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tsavetxt : { adv_vs : [\"turn undead\"] }\n}\nMagicItemsList[\"balance of harmony\"] = {\n\tname : \"Balance of Harmony\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"D\",\n\tdescription : \"I can use the scale to cast Detect Evil and Good as a ritual by placing a gem of 100 gp or more or holy water on both pans. It then tips to the side it detected, good or evil, or fluctuates slightly if what it detected is neutral. After this, I can touch it to learn the rest of the information the spell normally conveys.\",\n\tdescriptionFull : \"This scale bears celestial symbols on one pan and fiendish symbols on the other. You can use the scale to cast Detect Evil and Good as a ritual. Doing so requires you to place the scale on a solid surface, then sprinkle the pans with holy water or place a transparent gem worth 100 gp in each pan. The scale remains motionless if it detects nothing, tips to one side or the other for good (consecrated) or evil (desecrated), and fluctuates slightly if it detects a creature appropriate to the spell but neither good nor evil. By touching the scales after casting the ritual, you instantly learn any information the spell can normally convey, and then the effect ends.\",\n\tweight : 1,\n\tspellcastingBonus : [{\n\t\tname : \"Only as ritual\",\n\t\tspells : [\"detect evil and good\"],\n\t\tselection : [\"detect evil and good\"],\n\t\tfirstCol : SpellRitualTag,\n\t}],\n\tspellChanges : {\n\t\t\"detect evil and good\" : {\n\t\t\ttime : \"10 min\",\n\t\t\tcompMaterial : \"The Balance of Harmony requires placing the scale on a solid surface and sprinkling the pans with holy water or placing a transparent gem worth 100 gp in each pan.\",\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"bracelet of rock magic\"] = {\n\tname : \"Bracelet of Rock Magic\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This gold bracelet grants me immunity to being petrified. It has 16 charges to cast Flesh to Stone (DC 15). Once all charges are used, it turns to lead and loses its magic. If I use it to target a creature strongly related to stone, the target has adv. on its save. If it saves, Flesh to Stone is cast on me with disadv. on the save.\",\n\tdescriptionFull : \"While you wear this gold bracelet, it grants you immunity to being petrified, and it allows you to cast Flesh to Stone (save DC 15) as an action. Once the spell has been cast three times, the bracelet can no longer cast it. Thereafter, you can cast Stone Shape as an action. After you have done this thirteen times, the bracelet loses its magic and turns from gold to lead.\\n   \" + toUni(\"Curse\") + \". The bracelet's affinity with earth manifests as an unusual curse. Creatures of flesh that are strongly related to earth and stone, such as stone giants and dwarves, have advantage on the saving throw against Flesh to Stone cast from the bracelet. If such a creature's save is successful, the bracelet breaks your attunement to it and casts the spell on you. You make your saving throw with disadvantage, and on a failed save you are petrified instantly.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true,\n\tusages : 16,\n\trecovery : \"Never\",\n\tsavetxt : { immune : [\"petrified\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"flesh to stone\"],\n\t\tselection : [\"flesh to stone\"],\n\t\tfirstCol : 1\n\t}]\n}\nMagicItemsList[\"eagle whistle\"] = {\n\tname : \"Eagle Whistle\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"Three times per dawn, I can blow this whistle, gaining a flying speed equal to twice my walking speed while I do so continuously. I can blow it for a number for rounds equal to 5 + five times my Constitution modifier (minimum of 1 round) or until I talk, hold my breath, start suffocating, or land.\",\n\tdescriptionFull : \"While you blow an eagle whistle continuously, you can fly twice as fast as your walking speed. You can blow the whistle continuously for a number of rounds equal to 5 + five times your Constitution modifier (minimum of 1 round) or until you talk, hold your breath, or start suffocating. A use of the whistle also ends if you land. If you are aloft when you stop blowing the whistle, you fall. The whistle has three uses. It regains expended uses daily at dawn.\",\n\tweight : 1,\n\tusages : 3,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"hell hound cloak\"] = {\n\tname : \"Hell Hound Cloak\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"H\",\n\tdescription : \"As an action, I can command this cloak to Polymorph me into a hell hound for 1 hour, or until I stop it as a bonus action. The 6th time I use it and every time after, I must make a DC 15 Cha save or be stuck in hell hound form until dispelled or I drop to 0 HP. If I remain in hell hound form for 6 hours, it becomes permanent.\",\n\tdescriptionFull : \"This dark cloak is made of cured hell hound hide. As an action, you can command the cloak to transform you into a hell hound for up to 1 hour. The transformation otherwise functions as the Polymorph spell, but you can use a bonus action to revert to your normal form.\\n   \" + toUni(\"Curse\") + \". This cloak is cursed with the essence of a hell hound, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the cloak, keeping it within reach at all times.\\n   The sixth time you use the cloak, and each time thereafter, you must make a DC 15 Charisma saving throw. On a failed save, the transformation lasts until dispelled or until you drop to 0 hit points, and you can't willingly return to normal form. If you ever remain in hell hound form for 6 hours, the transformation becomes permanent and you lose your sense of self. All your statistics are then replaced by those of a hell hound. Thereafter, only Remove Curse or similar magic allows you to regain your identity and return to normal. If you remain in this permanent form for 6 days, only a Wish spell can reverse the transformation.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true\n}\nMagicItemsList[\"javelin of backbiting\"] = {\n\tname : \"Javelin of Backbiting\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (javelin)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This javelin has +2 to hit and damage, +30 ft range, and deals +1d6 damage when thrown. After a throwing attack, it flies back to my hand immediately. While its curse lasts, I'm unwilling to part with it and have disadv. on attacks with other weapon. Also, on a roll of 1 to hit, I roll the attack again, but at myself with adv.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, its normal and long ranges both increase by 30 feet. and it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the weapon, keeping it within reach at all times. In addition, you have disadvantage on attack rolls made with weapons other than this one.\\n   Whenever you roll a 1 on an attack roll using this weapon, the weapon bends or flies to hit you in the back. Make a new attack roll with advantage against your own AC. If the result is a hit, you take damage as if you had attacked yourself with the spear.\",\n\tattunement : true,\n\tweight : 2,\n\tcursed : true,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"javelin\",\n\t\tregExpSearch : /^(?=.*javelin)(?=.*backbiting).*$/i,\n\t\tname : \"Javelin of Backbiting\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\trange : \"Melee, 60/150 ft\",\n\t\tdescription : \"Thrown; +1d6 damage if thrown; Returning; On 1 to hit: attack myself with adv.\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"loadstone\"] = {\n\tname : \"Loadstone\",\n\tnameAlt : \"Lodestone\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"The large gem worth 150 gp is cursed. Detect Magic doesn't detect it, but Identify does reveal its nature. If I take the Dash or Disengage action while it is on my person, its curse activates. While cursed, I am unwilling to part with it, my speed is reduced by 5 ft, and my maximum load and lift capacities are halved.\",\n\tdescriptionFull : \"This stone is a large gem worth 150 gp.\\n   \" + toUni(\"Curse\") + \". The stone is cursed, but its magical nature is hidden; Detect Magic doesn't detect it. An Identify spell reveals the stone's true nature. If you use the Dash or Disengage action while the stone is on your person, its curse activates. Until the curse is broken with Remove Curse or similar magic, your speed is reduced by 5 feet, and your maximum load and maximum lift capacities are halved. You also become unwilling to part with the stone.\",\n\tweight : 1,\n\tcursed : true\n}\nMagicItemsList[\"mirror of the past\"] = {\n\tname : \"Mirror of the Past\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"As an action once per dawn, I can gaze into this mirror while thinking of a specific object or creature. The mirror then shows me scenes from the target's past for 1 minute or less, instead of my reflection. Information conveyed is accurate, but it is random and cryptic, and presented in no particular order.\",\n\tdescriptionFull : \"The holder of this platinum hand mirror can learn something about the history of a specific object or creature by taking an action to gaze into the mirror and think of the target. Instead of the holder's reflection, the mirror presents scenes from the target's past. Information conveyed is accurate, but it is random and cryptic, and presented in no particular order. Once it is activated, the mirror gives its information for 1 minute or less, then returns to normal. It can't be used again until the next dawn.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"action\", \"\"]]\n}\nMagicItemsList[\"night caller\"] = {\n\tname : \"Night Caller\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"I can use this whistle to cast Animate Dead, if I blow it under the night sky or in darkness. Once used, it can't function for 7 days. It can affect targets through 10 ft of soft earth or similar, but they take 1 min to claw to the surface. Once per 24 hours, I can blow it to reassert control over 1 or 2 targ I animated with it.\",\n\tdescriptionFull : \"This whistle is carved from transparent crystal, and it resembles a tiny dragon curled up like a snail. The name Night Caller is etched on the whistle in Dwarvish runes. If a character succeeds on a DC 20 Intelligence (Arcana or History) check, the character recalls lore that says the duergar made several such whistles for various groups in an age past.\\n   If you blow the whistle in darkness or under the night sky, it allows you to cast the Animate Dead spell. The target can be affected through up to 10 feet of soft earth or similar material, and if it is, it takes 1 minute to claw its way to the surface to serve you. Once the whistle has animated an undead creature, it can't do so again until 7 days have passed.\\n   Once every 24 hours, you can blow the whistle to reassert control over one or two creatures you animated with it.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"7 days\",\n\tspellFirstColTitle : \"Us\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per 7 days\",\n\t\tspells : [\"animate dead\"],\n\t\tselection : [\"animate dead\"],\n\t\tfirstCol : \"checkbox\"\n\t}],\n\tspellChanges : {\n\t\t\"animate dead\" : {\n\t\t\tdescription : \"In darkness, turn (buried) corpse into Skeleton/Zombie; control for 24h; bns a command within 60 ft\",\n\t\t\tchanges : \"Night Caller can only be used in darkness or under the night sky. It can only create a single Skeleton or Zombie, but can animate a corpse buried below up to 10 feet of soft earth or similar material.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"potion of mind control\"] = {\n\tname : \"Potion of Mind Control\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"potion\",\n\tmagicItemTable : \"E\",\n\tdescription : \"\",\n\tdescriptionFull : \"When you drink a potion of mind control, you can cast a dominate spell (save DC 15) on a specific creature if you do so before the end of your next turn. If you don't, the potion is wasted.\\n   A potion of mind control produces the effect of a Dominate Beast (beast), Dominate Person (humanoid), or Dominate Monster (monster) spell depending on its type. If the target's initial saving throw fails, the effect lasts for 1 hour, with no concentration required on your part. The charmed creature has disadvantage on new saving throws to break the effect during this time.\",\n\tweight : 1,\n\tchoices : [\"Beast\", \"Humanoid\", \"Monster\"],\n\t\"beast\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Beast before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t},\n\t\"humanoid\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Person before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t},\n\t\"monster\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Monster before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t}\n}\nMagicItemsList[\"robe of summer\"] = {\n\tname : \"Robe of Summer\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This elegant garment is made from fine cloth in hues of red, orange, and gold. While I wear the robe, I have resistance to cold damage. In addition, I am comfortable as if the temperature were that of a balmy day, so I suffer no ill effects from the weather's temperature extremes.\",\n\tdescriptionFull : \"This elegant garment is made from fine cloth in hues of red, orange, and gold. While you wear the robe, you have resistance to cold damage. In addition, you are comfortable as if the temperature were that of a balmy day, so you suffer no ill effects from the weather's temperature extremes.\",\n\tattunement : true,\n\tweight : 1,\n\tdmgres : [\"Cold\"]\n}\nMagicItemsList[\"shatterspike\"] = {\n\tname : \"Shatterspike\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this magic longsword. If it hits an object, the hit is automatically a critical hit, and it can deal bludgeoning or slashing damage to the object (my choice). Further, damage from nonmagical sources can't harm the weapon.\",\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon. If it hits an object, the hit is automatically a critical hit, and it can deal bludgeoning or slashing damage to the object (your choice). Further, damage from nonmagical sources can't harm the weapon.\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /Shatterspike/i,\n\t\tname : \"Shatterspike\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\tdescription : \"Versatile (1d10); Against objects: always critical hit, can choose to deal bludgeoning damage\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"spear of backbiting\"] = {\n\tname : \"Spear of Backbiting\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (spear)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This spear has +2 to hit and damage, +30 ft range, and deals +1d6 damage when thrown. After a throwing attack, it flies back to my hand immediately. While its curse lasts, I'm unwilling to part with it and have disadv. on attacks with other weapon. Also, on a roll of 1 to hit, I roll the attack again, but at myself with adv.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, its normal and long ranges both increase by 30 feet. and it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the weapon, keeping it within reach at all times. In addition, you have disadvantage on attack rolls made with weapons other than this one.\\n   Whenever you roll a 1 on an attack roll using this weapon, the weapon bends or flies to hit you in the back. Make a new attack roll with advantage against your own AC. If the result is a hit, you take damage as if you had attacked yourself with the spear.\",\n\tattunement : true,\n\tweight : 3,\n\tcursed : true,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"spear\",\n\t\tregExpSearch : /^(?=.*spear)(?=.*backbiting).*$/i,\n\t\tname : \"Spear of Backbiting\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\trange : \"Melee, 50/90 ft\",\n\t\tdescription : \"Thrown, versatile (1d8); +1d6 damage if thrown; Returning; On 1 to hit: attack myself with adv.\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"stone of ill luck\"] = {\n\tname : \"Stone of Ill Luck\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"C\",\n\tdescription : \"Although this polished agate appears to be a stone of good luck to anyone who tries to identify it. While it is on my person, it gives me a +1 bonus and a -2 penalty (from the curse) to ability checks and saving throws (for a total of -1). Until the curse is broken, I am unwilling to part with the item.\",\n\tdescriptionFull : \"This polished agate appears to be a stone of good luck to anyone who tries to Identify it, and it confers that item's property while on your person.\\n   \" + toUni(\"Curse\") + \". This item is cursed. While it is on your person, you take a -2 penalty to ability checks and saving throws. Until the curse is discovered, the DM secretly applies this penalty, assuming you are adding the item's bonus. You are unwilling to part with the stone until the curse is broken with Remove Curse or similar magic.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true,\n\taddMod : [\n\t\t{ type : \"save\", field : \"all\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my saving throws.\" },\n\t\t{ type : \"skill\", field : \"all\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my ability checks.\" },\n\t\t{ type : \"skill\", field : \"Init\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my ability checks.\" }\n\t]\n}\nMagicItemsList[\"wand of entangle\"] = {\n\tname : \"Wand of Entangle\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wand\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"This wand has 7 charges, regaining 1d6+1 expended charges daily at dawn. If I use its last charge, I roll a d20. On a 1, it is destroyed. As an action, I can expend 1 charge to cast Entangle (save DC 13) from it.\",\n\tdescriptionFull : \"This wand has 7 charges. While holding it, you can use an action to expend 1 of its charges to cast the Entangle spell (save DC 13) from it.\\n   The wand regains 1d6+1 expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand crumbles into ashes and is destroyed.\",\n\tattunement : true,\n\tweight : 1,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tusages : 7,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+1\",\n\tfixedDC : 13,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"entangle\"],\n\t\tselection : [\"entangle\"],\n\t\tfirstCol : 1\n\t}]\n}\nMagicItemsList[\"waythe\"] = {\n\tname : \"Waythe\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (greatsword)\",\n\trarity : \"legendary\",\n\tstoryItemAL : true,\n\tdescription : \"This greatsword adds +1 to hit and damage. Against giants, it deal +2d6 damage and they must make a DC 15 Str save or be knocked prone. It has 7 charges, regaining 1d6+1 at dawn. As an action, I can expend 1 charge to speak its command word to detect enemies within 60 ft. Waythe is sentient, see Notes page.\",\n\tdescriptionLong : \"This greatsword adds a +1 bonus to attack and damage rolls made with it. Against giants, it deal 2d6 extra slashing damage and when a giant is hit with it, they must make a DC 15 Strength saving throw or be knocked prone. It has 7 charges, regaining 1d6+1 at dawn. As an action, I can expend 1 charge to speak its command, letting me know the direction of the nearest creature hostile to me within 60 ft, regardless of it being ethereal, invisible, disguised, or hidden. This lasts for 1 minute. Waythe is sentient and has a mind of its own, see Notes page.\",\n\tdescriptionFull : \"Waythe is a unique greatsword most recently in the possession of a high-ranking cloud giant ambassador.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. When you hit a creature of the giant type with it, the giant takes an extra 2d6 slashing damage, and it must succeed on a DC 15 Strength saving throw or fall prone.\\n   The sword also functions as a wand of enemy detection. It regains all of its expended charges at dawn and isn't at risk of crumbling if its last charge is used.\\n   \" + toUni(\"Sentience\") + \". Waythe is a sentient weapon of neutral good alignment, with an Intelligence of 12, a Wisdom of 2, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet.\\n   The weapon can speak and understand Giant and Common, and it can communicate telepathically with its wielder.\\n   \" + toUni(\"Personality\") + \". This sword believes in freedom and allowing others to live as they see fit. It is protective of its friends, and wants to be friends with a like-minded wielder. (It takes only 1 minute for a good-aligned character to gain attunement with the sword.) Waythe is courageous to the point of foolhardiness, however, and vocally urges bold action. It is likely to come into conflict with an evil or a timid wielder.\",\n\tattunement : true,\n\tweight : 6,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greatsword\",\n\t\tregExpSearch : /waythe/i,\n\t\tname : \"Waythe\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\tdescription : \"Heavy, two-handed; +2d6 damage vs. giants; Giants DC 15 Str save or fall prone\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 7,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+1\",\n\taction : [[\"action\", \"\"]],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc([\n\t\t\t\"It takes only 1 minute for a good-aligned character to gain attunement with this sword.\",\n\t\t\t\"I gain a +1 bonus to attack and damage rolls made with this magic greatsword. When I hit a creature of the giant type with it, it deals an extra 2d6 slashing damage, and the giant must succeed on a DC 15 Strength saving throw or fall prone.\",\n\t\t\t\"Waythe has 7 charges and regains 1d6+1 expended charges daily at dawn. As an action while holding it, I can expend 1 charge to speak its command word. For the next minute, I know the direction of the nearest creature hostile to me within 60 ft, but not its distance from me. Waythe can sense the presence of hostile creatures that are ethereal, invisible, disguised, or hidden, as well as those in plain sight. The effect ends if I stop holding Waythe.\",\n\t\t\t\"Waythe is a sentient weapon of neutral good alignment, with an Intelligence of 12, a Wisdom of 2, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet, can speak and understand Giant and Common, and can communicate telepathically with its wielder.\",\n\t\t\t\"Waythe believes in freedom and allowing others to live as they see fit. It is protective of its friends, and wants to be friends with a like-minded wielder. Waythe is courageous to the point of foolhardiness, however, and vocally urges bold action. It is likely to come into conflict with an evil or a timid wielder.\"\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\n\t}]\n}\nMagicItemsList[\"white dragonhide cape\"] = { // worn by king Snurre\n\tname : \"White Dragonhide Cape\",\n\tsource : [[\"TftYP\", 193]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"I have resistance to cold damage while wearing this cape\",\n\tdescriptionFull : \"This magic cape grants the wearer resistance to cold damage.\",\n\tdmgres : [\"Cold\"]\n}\nMagicItemsList[\"spellcasting bolts\"] = {\n\tname : \"Spellcasting Bolts\",\n\tsource : [[\"TftYP\", 209]],\n\ttype : \"weapon (crossbow bolts)\",\n\trarity : \"rare\",\n\tmagicItemTable : \"B\",\n\tdescription : \"These magical crossbow bolts cast a spell on the target they are used on.\",\n\tdescriptionFull : \"These magical crossbow bolts cast a spell on the target they are used on. The spell has a save DC of 15 and a duration of 1 minute.\",\n\tchoices : [\"Bolt of Holding\", \"Bolt of Blinding\", \"Bolt of Vapors\"],\n\t\"bolt of holding\" : {\n\t\tname : \"Bolt of Holding\",\n\t\tdescription : \"This magic crossbow bolt casts Hold Person on the target hit with it, as well as up to two others within 30 ft of that target. The targets must succeed on a DC 15 Wisdom save or be paralyzed for 1 minute. At the end of each of their turns, they can make another Wisdom save to end the effect on themselves.\",\n\t\tdescriptionFull : \"This magic bolt casts hold person on the target hit with it, as well as up to two other targets within 30 feet of that target. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t},\n\t\"bolt of blinding\" : {\n\t\tname : \"Bolt of Blinding\",\n\t\tdescription : \"This magic bolt casts Blindness/Deafness on the target hit with it, as well as up to two others within 30 ft of that target. The targets must make a DC 15 Con save or be blinded or deafened (my choice) for 1 minute. At the end of each of their turns, a target can make another Con save to end the effect on itself.\",\n\t\tdescriptionFull : \"This magic bolt casts blindness/deafness to blind on a target hit with the bolt, as well as up to two other targets within 30 feet of that target. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t},\n\t\"bolt of vapors\" : {\n\t\tname : \"Bolt of Vapors\",\n\t\tdescription : \"This magic crossbow bolt casts Stinking Cloud centered on the point it hits, creating a 20-ft radius sphere of yellow, nauseating gas there for 1 minute. It heavily obscures and creatures fully in the cloud or starting their turn in it must make a DC 15 Con save against poison or spend their action that turn retching.\",\n\t\tdescriptionFull : \"This magic bolt casts stinking cloud centered on the point it hits. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t}\n}\nMagicItemsList[\"berserker battleaxe (tamoachan)\"] = {\n\tname : \"Berserker Battleaxe (Tamoachan)\", // can't just be \"Berserker Battleaxe\" or the magic item \"Berserker Axe\" wouldn't work anymore\n\tsource : [[\"TftYP\", 68]], // Tloques' battleaxe\n\ttype : \"weapon (battleaxe)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"H\",\n\tdescription : \"This axe gives +2 to hit and damage, +1 HP per level, and has 12 charges to cast spells, regaining 1d6+4 at dawn. I can't part with it, have disadv. with other weapons, and if I'm damaged by a hostile, I must make a DC 15 Wis save or go berserk: attack the closest creature with the axe until none remain within 60 ft.\",\n\tdescriptionLong : \"This axe adds a +2 bonus to attack and damage rolls made with it. While attuned to it, my HP maximum increases by 1 for each level I have. It has scrolls of Passwall, Burning Hands, and Gust of Wind beneath the wrappings of its handle. As long as these remain there, it has 12 charges to cast these spells, regaining 1d6+4 at dawn. It is cursed, making it so that I can't part with it and have disadvantage on attack rolls made with other weapons. If I'm damaged by a hostile, I must make a DC 15 Wis save or go berserk, using my action each turn to attack the closest creature with the axe until none remain within 60 ft.\",\n\tdescriptionFull : \"This battleaxe has a blade of bronze, and the haft is wound with snakeskin wrappings. You gain a +2 bonus to attack and damage rolls made with this magic weapon. In addition, while you are attuned to this weapon, your hit point maximum increases by 1 for each level you have attained.\\n   Concealed beneath the wrappings around the handle is a parchment containing the spells passwall, burning hands, and gust of wind. When the attuned wielder uses an action to say the correct words of power, which are engraved in Olman on the axe blade, one of these spells can be cast.\\n   The axe has 12 charges and regains 1d6+4 expended charges daily at dawn. Casting a spell from it takes a number of charges equal to the level at which the spell is cast (5th for passwall, 2nd for gust of wind, and 1st or higher for burning hands; spell save DC 15). If the parchment is removed from the axe, the axe loses the capability of casting these spells forever.\\n   \" + toUni(\"Curse\") + \". This axe is cursed, and becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the axe, keeping it within reach at all times. You also have disadvantage on attack rolls with weapons other than this one, unless no foe is within 60 feet of you that you can see or hear.\\n   Whenever a hostile creature damages you while the axe is in your possession, you must succeed on a DC 15 Wisdom saving throw or go berserk. While berserk, you must use your action each round to attack the creature nearest to you with the axe. If you can make extra attacks as part of the Attack action, you use those extra attacks, moving to attack the next nearest creature after you fell your current target. If you have multiple possible targets, you attack one at random. You are berserk until you start your turn with no creatures within 60 feet of you that you can see or hear.\",\n\tattunement : true,\n\tweight : 4,\n\tusages : 12,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+4\",\n\tlimfeaname : \"Berserker Battleaxe\",\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1+ charges\",\n\t\tspells : [\"burning hands\"],\n\t\tselection : [\"burning hands\"],\n\t\tfirstCol : \"1+\"\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"gust of wind\"],\n\t\tselection : [\"gust of wind\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"passwall\"],\n\t\tselection : [\"passwall\"],\n\t\tfirstCol : 5\n\t}],\n\tspellChanges : {\n\t\t\"burning hands\" : {\n\t\t\tdescription : \"All in area 3d6+1d6/extra charge Fire dmg; save halves; unattended flammable objects ignite\",\n\t\t\tchanges : \"The spell level this is cast at depends on the amount of charges spend, 1 charge per spell slot level.\"\n\t\t}\n\t},\n\tcalcChanges : {\n\t\thp : function (totalHD) { return [totalHD]; }\n\t},\n\tweaponOptions : [{\n\t\tbaseWeapon : \"battleaxe\",\n\t\tregExpSearch : /^(?=.*berserker)(?=.*battleaxe).*$/i,\n\t\tname : \"Berserker Battleaxe\",\n\t\tsource : [[\"TftYP\", 68]],\n\t\tdescription : \"Versatile (1d10); Cursed\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"plantslayer longsword\"] = {\n\tname : \"Plantslayer Longsword\",\n\tsource : [[\"TftYP\", 70]], // from Stone Statue\n\ttype : \"weapon (longsword)\",\n\trarity : \"rare\",\n\tmagicItemTable : \"F\",\n\tdescription : \"This sword is made of laminated wood, inset with jagged teeth of obsidian. I gain a +1 bonus to attack and damage rolls made with this magic weapon. In addition, it deals an extra 2d6 damage to any creature of the plant type.\",\n\tdescriptionFull : \"This sword is made of laminated wood, inset with jagged teeth of obsidian. You gain a +1 bonus to attack and damage rolls made with this magic weapon. In addition, it deals an extra 2d6 damage to any creature of the plant type.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*plantslayer)(?=.*longsword).*$/i,\n\t\tname : \"Plantslayer Longsword\",\n\t\tsource : [[\"TftYP\", 70]],\n\t\tdescription : \"Versatile (1d10); +2d6 damage vs. plants\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\n\n// pub_20170915_Tortle.js\r\n// This file adds the Tortle Race from the Tortle Package from Extra Life to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.TP={\r\n\tname : \"Tortle Package\",\r\n\tabbreviation : \"TP\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/221716/Tortle-Package-5e\",\r\n\tdate : \"2017/09/15\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// The Tortle race\r\nRaceList.tortle = {\r\n\tregExpSearch : /tortle/i,\r\n\tname : \"Tortle\",\r\n\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\tplural : \"Tortles\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Aquan\"],\r\n\tskills : [\"Survival\"],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*shell).*$/i,\r\n\t\tname : \"Tortle's Shell\",\r\n\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\tac : 17,\r\n\t\tdex : -10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*\\bclaws?\\b).*$/i,\r\n\t\tname : \"Tortle's Claws\",\r\n\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood by the age of 15 and live an average of 50 years\",\r\n\theight : \" stand between 5 and 6 feet tall (4'10\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 450 lb (400 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 and 1,8 metres tall (150 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 190 kg (180 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 0, 0, 0, 1, 0],\r\n\taction : [[\"action\", \"Shell Defense (start)\"], [\"bonus action\", \"Shell Defense (end)\"]],\r\n\ttrait : \"Tortle (+2 Strength, +1 Wisdom)\"+\r\n\t\"\\n \\u2022 Claws: My unarmed strikes with my claws deal 1d4 slashing damage.\"+\r\n\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 1 hour at a time.\"+\r\n\t\"\\n \\u2022 Natural Armor: I have a base AC of 17, but I can't add my Dex to it or wear armor.\"+\r\n\t\"\\n \\u2022 Shell Defense: As an action, I can withdraw into my shell and gain +4 AC and adv. on Str and Con saves, but I count as prone, have speed 0, have disadv. on Dex saves, and can't take reactions. The only action I can take is a bonus action to emerge from the shell.\"\r\n};\r\n\n// pub_20170919_ToA.js\r\n// This file adds the backgrounds and beasts from the Tomb of Annihilation adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.ToA={\r\n\tname : \"Tomb of Annihilation [backgrounds, beasts, items]\",\r\n\tabbreviation : \"ToA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/tomb-annihilation\",\r\n\tdate : \"2017/09/19\"\r\n};\r\n\r\n// Add Human to Yuan-ti tranformation from the ritual (excluded by default)\r\nAddRacialVariant(\"human\", \"yuan-ti transformed\", {\r\n\tdefaultExcluded : true,\r\n\tregExpSearch : /^(?!.*variant)(?=.*yuan.ti)(?=.*transformed)?.*$/i,\r\n\tsource : [[\"ToA\", 119]],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\timmune : [\"poison\"],\r\n\t\tadv_vs : [\"magic\"]\r\n\t},\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"1 snake (beast) with less than 4 Int save or charmed for the duration\",\r\n\t\t\tchanges : \"Using Innate Spellcasting, I can cast Animal Friendship at will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"suggestion\" : {\r\n\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Yuan-ti Human (+1 to all ability scores)\\n   Madness: I suffer from an indefinite madness (DMG 258).\\n   Innate Spellcasting: I know the Poison Spray cantrip and can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\\n   Magic Resistance: I have advantage on saves against spells and other magical effects.\"\r\n});\r\nif (RaceSubList['human-variant']) {\r\n\tAddRacialVariant(\"human\", \"yuan-ti transformed variant\", {\r\n\t\tdefaultExcluded : true,\r\n\t\tregExpSearch : /^(?=.*variant)(?=.*yuan.ti)(?=.*transformed)?.*$/i,\r\n\t\tsource : [[\"ToA\", 119]],\r\n\t\tskillstxt : \"Choose any one skill\",\r\n\t\tscorestxt : \"+1 to two different ability scores of my choice\",\r\n\t\tscores : [0, 0, 0, 0, 0, 0],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : {\r\n\t\t\timmune : [\"poison\"],\r\n\t\t\tadv_vs : [\"magic\"]\r\n\t\t},\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\t\tfirstCol : 'atwill',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"animal friendship\" : {\r\n\t\t\t\tdescription : \"1 snake (beast) with less than 4 Int save or charmed for the duration\",\r\n\t\t\t\tchanges : \"Using Innate Spellcasting, I can cast Animal Friendship at will, but only to target snakes.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tfeatures : {\r\n\t\t\t\"suggestion\" : {\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Yuan-ti Human (+1 to two different ability scores of my choice)\\n   Skill & Feat: I gain proficiency in one skill of my choice and I gain one feat of my choice.\\n   Madness: I suffer from an indefinite madness (DMG 258).\\n   Innate Spellcasting: I know the Poison Spray cantrip and can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\\n   Magic Resistance: I have advantage on saves against spells and other magical effects.\",\r\n\t\teval : RaceSubList['human-variant'].eval,\r\n\t\tremoveeval : RaceSubList['human-variant'].removeeval\r\n\t});\r\n}\r\n\r\n// Backgrounds (with contributions by SoilentBrad and @lowbrr)\r\nBackgroundList[\"anthropologist\"] = {\r\n\tregExpSearch : /anthropologist/i,\r\n\tname : \"Anthropologist\",\r\n\tsource : [[\"ToA\", 191], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Religion\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Leather-bound diary\", \"\", 5],\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Trinket of special significance\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Adept Linguist\",\r\n\ttrait : [\r\n\t\t\"I prefer the company of those who aren't like me, including people of other races.\",\r\n\t\t\"I'm a stickler when it comes to observing proper etiquette and local customs.\",\r\n\t\t\"I would rather observe than meddle.\",\r\n\t\t\"By living among violent people, I have become desensitized to violence.\",\r\n\t\t\"I would risk life and limb to discover a new culture or unravel the secrets of a dead one.\",\r\n\t\t\"When I arrive at a new settlement for the first time, I must learn all its customs.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Discovery\",\r\n\t\t\t\"Discovery: I want to be the first person to discover a lost culture. (Any)\"\r\n\t\t],\r\n\t\t[\"Distance\",\r\n\t\t\t\"Distance: One must not interfere with the affairs of another culture \\u2015 even one in need of aid. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: By understanding other races and cultures, we learn to understand ourselves. (Any)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Common people crave strong leadership, and I do my utmost to provide it. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Protection\",\r\n\t\t\t\"Protection: I must do everything possible to save a society facing extinction. (Good)\"\r\n\t\t],\r\n\t\t[\"Indifferent\",\r\n\t\t\t\"Indifferent: Life is cruel. What's the point in saving people if they're going to die anyway? (Chaotic)\"\r\n\t\t],\r\n\t],\r\n\tbond : [\r\n\t\t\"My mentor gave me a journal filled with lore and wisdom. Losing it would devastate me.\",\r\n\t\t\"Having lived among the people of a primeval tribe or clan, I long to return and see how they are faring.\",\r\n\t\t\"Years ago, tragedy struck the members of an isolated society I befriended, and I will honor them.\",\r\n\t\t\"I want to learn more about a particular humanoid culture that fascinates me.\",\r\n\t\t\"I seek to avenge a clan, tribe, kingdom, or empire that was wiped out.\",\r\n\t\t\"I have a trinket that I believe is the key to finding a long-lost society.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Boats make me seasick.\",\r\n\t\t\"I talk to myself, and I don't make friends easily.\",\r\n\t\t\"I believe that I'm intellectually superior to people from other cultures and have much to teach them.\",\r\n\t\t\"I've picked up some unpleasant habits living among goblins, lizardfolk, or orcs.\",\r\n\t\t\"I complain about everything.\",\r\n\t\t\"I wear a tribal mask and never take it off.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Adopted Culture\",\r\n\t\t\"Aarakocra\",\r\n\t\t\"Dwarf\",\r\n\t\t\"Elf\",\r\n\t\t\"Goblin\",\r\n\t\t\"Halfling\",\r\n\t\t\"Human\",\r\n\t\t\"Lizardfolk\",\r\n\t\t\"Orc\",\r\n\t],\r\n\tlanguageProfs : [2]\r\n};\r\nBackgroundList[\"archaeologist\"] = {\r\n\tregExpSearch : /archa?eologist/i,\r\n\tname : \"Archaeologist\",\r\n\tsource : [[\"ToA\", 192], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Survival\"],\r\n\tgold : 25,\r\n\tequipleft : [\r\n\t\t[\"Map case with a map of a ruin/dungeon\", \"\", 1],\r\n\t\t[\"Bullseye lantern\", \"\", 2],\r\n\t\t[\"Miner's pick\", \"\", 10],\r\n\t\t[\"Shovel\", \"\", 5],\r\n\t\t[\"Two-person tent\", \"\", 20]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Trinket recovered from a dig site\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Historical Knowledge\",\r\n\ttrait : [\r\n\t\t\"I love a good puzzle or mystery.\",\r\n\t\t\"I'm a pack rat who never throws anything away.\",\r\n\t\t\"Fame is more important to me than money.\",\r\n\t\t\"I have no qualms about stealing from the dead.\",\r\n\t\t\"I'm happier in a dusty old tomb than I am in the centers of civilization.\",\r\n\t\t\"Traps don't make me nervous. Idiots who trigger traps make me nervous.\",\r\n\t\t\"I might fail, but I will never give up.\",\r\n\t\t\"You might think I'm a scholar, but I love a good brawl. These fists were made for punching.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Preservation\",\r\n\t\t\t\"Preservation: That artifact belongs in a museum. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I won't risk my life for nothing. I expect some kind of payment. (Any)\"\r\n\t\t],\r\n\t\t[\"Death Wish\",\r\n\t\t\t\"Death Wish: Nothing is more exhilarating than a narrow escape from the jaws of death. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Dignity\",\r\n\t\t\t\"Dignity: The dead and their belongings deserve to be treated with respect. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Immortality\",\r\n\t\t\t\"Immortality: All my exploring is part of a plan to find the secret of everlasting life. (Any)\"\r\n\t\t],\r\n\t\t[\"Danger\",\r\n\t\t\t\"Danger: With every great discovery comes grave danger. The two walk hand in hand. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"Ever since I was a child, I've heard stories about a lost city. I aim to find it, learn its secrets, and earn my place in the history books.\",\r\n\t\t\"I want to find my mentor, who disappeared on an expedition some time ago.\",\r\n\t\t\"I have a friendly rival. Only one of us can be the best, and I aim to prove it's me.\",\r\n\t\t\"I won't sell an art object or other treasure that has historical significance or is one of a kind.\",\r\n\t\t\"I'm secretly in love with the wealthy patron who sponsors my archaeological exploits.\",\r\n\t\t\"I hope to bring prestige to a library, a museum, or a university.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have a secret fear of some common wild animal \\u2015 and in my work, I see them everywhere.\",\r\n\t\t\"I can't leave a room without searching it for secret doors.\",\r\n\t\t\"When I'm not exploring dungeons or ruins, I get jittery and impatient.\",\r\n\t\t\"I have no time for friends or family. I spend every waking moment thinking about and preparing for my next expedition.\",\r\n\t\t\"When given the choice of going left or right, I always go left.\",\r\n\t\t\"I can't sleep except in total darkness.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Signature Item\",\r\n\t\t\"10-foot pole\",\r\n\t\t\"Crowbar\",\r\n\t\t\"Hat\",\r\n\t\t\"Hooded lantern\",\r\n\t\t\"Medallion\",\r\n\t\t\"Shovel\",\r\n\t\t\"Sledgehammer\",\r\n\t\t\"Whip\"\r\n\t],\r\n\ttoolProfs : [[\"Cartographer or navigator tools\", 1]],\r\n\tlanguageProfs : [1]\r\n};\r\n\r\n// Background features (with contributions by SoilentBrad and @lowbrr)\r\nBackgroundFeatureList[\"adept linguist\"] = {\r\n\tdescription : \"I can communicate with humanoids who don't speak any language I know. I must observe the humanoids interacting with one another for at least one day, after which I learn a handful of important words, expressions, and gestures \\u2015 enough to communicate on a rudimentary level.\",\r\n\tsource : [[\"ToA\", 191], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"historical knowledge\"] = {\r\n\tdescription : \"When I enter a ruin or dungeon, I can correctly ascertain its original purpose and determine its builders, whether those were dwarves, elves, humans, yuan-ti, or some other known race. In addition, I can determine the monetary value of art objects more than a century old.\",\r\n\tsource : [[\"ToA\", 192], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Weapon\r\nWeaponsList[\"yklwa\"] = {\r\n\tregExpSearch : /yklwa/i,\r\n\tname : \"Yklwa\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Simple\",\r\n\tdamage : [1, 8, \"piercing\"],\r\n\trange : \"Melee, 10/30 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Thrown\",\r\n\tmonkweapon : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Gear\r\nGearList[\"rain catcher\"] = {\r\n\tinfoname : \"Rain catcher [1 gp]\",\r\n\tname : \"Rain catcher\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 1,\r\n\tweight : 5\r\n};\r\nGearList[\"insect repellent salve\"] = {\r\n\tinfoname : \"Salve (vial) [5 sp]\",\r\n\tname : \"Insect Repellent Salve, applications of\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 20,\r\n\tweight : \"\",\r\n\ttype : \"insect repellent\"\r\n};\r\nGearList[\"insect repellent incense\"] = {\r\n\tinfoname : \"Incense (block) [1 gp]\",\r\n\tname : \"Insect Repellent Incense, blocks of\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 1,\r\n\tweight : \"\",\r\n\ttype : \"insect repellent\"\r\n};\r\n\r\n// Creatures\r\n// The following creatures were transcribed with the help of SoilentBrand and @lowbrr\r\nCreatureList[\"almiraj\"] = {\r\n\tname : \"Almiraj\",\r\n\tsource : [[\"ToA\", 211]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"50 ft\",\r\n\tscores : [2, 16, 10, 2, 14, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 5,\r\n\t},\r\n\tsenses : \"Darkvision 30 ft; Adv. on Wis (Perception) checks using hearing/sight\",\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Horn\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Senses\",\r\n\t\tdescription : \"The almiraj has advantage on Wisdom (Perception) checks that rely on hearing or sight.\"\r\n\t}]\r\n};\r\nCreatureList[\"flying monkey\"] = {\r\n\tname : \"Flying Monkey\",\r\n\tnameAlt : [\"Monkey, Flying\"],\r\n\tsource : [[\"ToA\", 220]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"30 ft, climb 20 ft, fly 30 ft\",\r\n\tscores : [8, 14, 11, 5, 12, 6],\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The flying monkey has advantage on an attack roll against a creature if at least one of the monkey's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}]\r\n};\r\nCreatureList[\"giant snapping turtle\"] = {\r\n\tname : \"Giant Snapping Turtle\",\r\n\tnameAlt : [\"Turtle, Giant Snapping\"],\r\n\tsource : [[\"ToA\", 222]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 17,\r\n\thp : 75,\r\n\thd : [10, 10],\r\n\tspeed : \"30 ft, swim 40 ft\",\r\n\tscores : [19, 10, 14, 2, 12, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amphibious\",\r\n\t\tdescription : \"The turtle can breathe air and water.\"\r\n\t}, {\r\n\t\tname : \"Stable\",\r\n\t\tdescription : \"Whenever an effect knocks the turtle prone, it can make a DC 10 Constitution saving throw to avoid being knocked prone. A prone turtle is upside down. To stand up, it must succeed on a DC 10 Dexterity check on its turn and then use all its movement for that turn. While prone, the turtle's AC becomes 12.\"\r\n\t}]\r\n};\r\nCreatureList[\"jaculi\"] = {\r\n\tname : \"Jaculi\",\r\n\tsource : [[\"ToA\", 225]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 16,\r\n\thd : [3, 10],\r\n\tspeed : \"30 ft, climb 20 ft\",\r\n\tscores : [15, 14, 11, 2, 8, 3],\r\n\tskills : {\r\n\t\t\"athletics\" : 4,\r\n\t\t\"perception\" : 1,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tsenses : \"Blindsight 30 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after at least 10 ft jump, adv. on to hit and extra 2d6 damage, see Spring trait\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Spring\",\r\n\t\tdescription : \"The jaculi springs up to 30 feet in a straight line and makes a bite attack against a target within its reach. This attack has advantage if the jaculi springs at least 10 feet. If the attack hits, the bite deals an extra 7 (2d6) piercing damage.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Camouflage\",\r\n\t\tdescription : \"The jaculi has advantage on Dexterity (Stealth) checks made to hide.\"\r\n\t}, {\r\n\t\tname : \"Keen Smell\",\r\n\t\tdescription : \"The jaculi has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Blindsight 30 ft.\",\r\n\t\t\"##Camouflage##. Advantage on Dexterity (Stealth) checks made to hide.\",\r\n\t\t\"##Keen Smell##. Advantage on Wisdom (Perception) checks that rely on smell.\",\r\n\t\t\"##Spring##. 30 ft in a straight line and make a bite attack. Advantage on the attack roll if springing at least 10 ft. It deals an extra 7 (2d6) piercing damage on a hit.\",\r\n\t].join(\"\\n\"),\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"bob\"] = { // contributed by Nod_Hero\r\n\tname : \"Bob\",\r\n\tsource : [[\"ToA\", 89]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Dwarvish runes on the head of this rusty battleaxe read 'Bob'. It adds a +1 bonus to attack and damage rolls made with it, floats on water and other liquids, and grants me advantage on Strength (Athletics) checks made to swim.\",\r\n\tdescriptionFull : \"Etched into the haft of the battleaxe are Dethek (Dwarvish) runes that spell the weapon's name: Bob. It floats on water and other liquids, adds a +1 bonus to attack and damage rolls made with it, and grants its bearer advantage on Strength (Athletics) checks made to swim.\",\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /\\bbob\\b/i,\r\n\t\tname : '\"Bob\"',\r\n\t\tsource : [[\"ToA\", 89]],\r\n\t\tdescription : \"Versatile (1d10); Floats\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"longsword of speaking draconic\"] = { // contributed by Nod_Hero\r\n\tname : \"Longsword of Speaking Draconic\",\r\n\tsource : [[\"ToA\", 173]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This longsword has a dragon-shaped hilt. While I carry it, I gain the ability to speak and understand the Draconic language.\",\r\n\tdescriptionFull : \"This longsword has a dragon-shaped hilt. While you carry it, you gain the ability to speak and understand the Draconic language.\",\r\n\tweight : 3,\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tweaponsAdd : {\r\n\t\tselect : [\"Longsword of Speaking Draconic\"],\r\n\t\toptions : [\"Longsword of Speaking Draconic\"]\r\n\t}\r\n};\r\nMagicItemsList[\"amulet of the black skull\"] = {\r\n\tname : \"Amulet of the Black Skull\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"The obsidian amulet has 6 charges, regaining 1d6 at dawn. As an action, I can expend a charge to teleport to a location within 100 ft that I'm familiar with. If I'm not undead, I must make a DC 16 Con save whenever I do so and if I fail, I'm transformed (see table on Notes page) as I arrive at the destination.\",\r\n\tdescriptionFull : \"This amulet is carved from obsidian and shaped like a screaming humanoid skull, with ruby eyes and emeralds for teeth. It hangs from an iron chain necklace.\\n   The amulet has 6 charges and regains 1d6 charges daily at dawn. While wearing the amulet, you can use an action to expend 1 of its charges to transport yourself and anything you are wearing or carrying to a location within 100 feet of you. The destination you choose doesn't need to be in your line of sight, but it must be familiar to you (in other words, a place you have seen or visited), and it must be on the same plane of existence as you. This effect isn't subject to the magic restrictions placed on the Tomb of the Nine Gods; thus, the amulet can be used to enter and exit the tomb.\\n   If you aren't undead, you must make a DC 16 Constitution saving throw each time you use the amulet to teleport. On a failed saving throw, the black skull cackles as you are transformed in transit. The transformation takes effect as soon as you arrive at the destination, and is determined randomly by rolling percentile dice and consulting the Black Skull Transformation table.\\n\\n\" + toUni(\"d100\\tTransformation\") + \"\\n01-20\\tThe symbol of Acererak is burned into your flesh, a curse that can only be removed with a Remove Curse spell or similar magic. Until the curse ends, your hit points can't be restored by magic.\\n21-35\\tYou grow larger as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\\n36-50\\tYou grow smaller as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\\n51-70\\tYou arrive at the destination wearing nothing but the amulet of the black skull. Everything else that you were wearing or carrying appears in a random unoccupied space within 100 feet of you.\\n71-95\\tYou are paralyzed for 1 minute or until this effect is ended with a Lesser Restoration spell or similar magic.\\n96-00\\tYou become petrified. This effect can be ended only with a Greater Restoration spell or similar magic.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Transformation Table\",\r\n\t\tnote : [\r\n\t\t\t\"This amulet is carved from obsidian and shaped like a screaming humanoid skull, with ruby eyes and emeralds for teeth. It hangs from an iron chain necklace.\",\r\n\t\t\t\"If I'm not undead, I must make a DC 16 Constitution save each time I use the amulet to teleport. On a failure, the black skull cackles as I'm transformed in transit. The transformation is random (see table below) and takes effect as soon as I arrive at the destination.\",\r\n\t\t\t\"d100\\tTRANSFORMATION\",\r\n\t\t\t\"01-20\\tThe symbol of Acererak is burned into my flesh, a curse that can only be removed with a Remove Curse spell or similar magic. Until the curse ends, my hit points can't be restored by magic.\",\r\n\t\t\t\"21-35\\tI grow larger as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\",\r\n\t\t\t\"36-50\\tI grow smaller as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\",\r\n\t\t\t\"51-70\\tI arrive at the destination wearing nothing but the amulet of the black skull. Everything else that I was wearing or carrying appears in a random unoccupied space within 100 ft.\",\r\n\t\t\t\"71-95\\tI am paralyzed for 1 minute or until this effect is ended with a Lesser Restoration spell or similar magic.\",\r\n\t\t\t\"96-00\\tI become petrified. This effect can be ended only with a Greater Restoration spell or similar magic.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"bookmark\"] = {\r\n\tname : \"Bookmark\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This dagger adds +3 to hit and damage. As a bonus action while holding it, I can have it shed bright light in a 20-ft radius and dim light for another 20 ft, go dark, act as a compass, cast Dimension Door once per dawn, or cast Compulsion once per dawn, which effects only spiders of the beast type within 90 ft.\",\r\n\tdescriptionFull : \"This +3 dagger belongs to Artus Cimber. While you have the dagger drawn, you can use a bonus action to activate one of the following properties:\\n \\u2022 Cause a blue gem set into the dagger's pommel to shed bright light in a 20-foot radius and dim light for an additional 20 feet, or make the gem go dark.\\n \\u2022 Turn the dagger into a compass that, while resting on your palm, points north.\\n \\u2022 Cast Dimension Door from the dagger. Once this property is used, it can't be used again until the next dawn.\\n \\u2022 Cast Compulsion (save DC 15) from the dagger. The range of the spell increases to 90 feet but it targets only spiders that are beasts. Once this property is used, it can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /bookmark/i,\r\n\t\tname : \"Bookmark\",\r\n\t\tsource : [[\"ToA\", 206]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Compulsion (Bookmark)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Dimension Door (Bookmark)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"compulsion\", \"dimension door\"],\r\n\t\tselection : [\"compulsion\", \"dimension door\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"compulsion\" : {\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\trange : \"90 ft\",\r\n\t\t\tdescription : \"Any spiders that hear me save or I can, as bns, have it move fully in a direction; save again after move\",\r\n\t\t\tchanges : \"Using Bookmark, I can cast this as a bonus action with a range of 90 ft, but it can only target spiders with the beast type.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"ghost lantern\"] = {\r\n\tname : \"Ghost Lantern\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"As a bonus action, I can command the spirit in the lantern to shed bright light in 30-ft radius and dim light for another 30 ft. I can order the spirit to act as my Mage Hand. If I fall unconscious within 10 ft of the lantern, the spirit stabilizes me. Casting Dispel Evil and Good on it releases the spirit and makes it nonmagical.\",\r\n\tdescriptionFull : \"A restless spirit is trapped inside this lantern. While holding the lantern, you can command the spirit as a bonus action to shed bright light in a 30-foot radius and dim light for an additional 30 feet.\\n   While holding the lantern, you can use an action to order the spirit to leave the lantern and duplicate the effect of the Mage Hand spell. The spirit returns to the lantern when the spell ends.\\n   If you fall unconscious within 10 feet of the lantern, the spirit emerges from it, magically stabilizes you with a touch, and then quickly returns to the lantern.\\n   The spirit is bound to the lantern and can't be harmed, turned, or raised from the dead.\\n   Casting a Dispel Evil and Good spell on the lantern releases the spirit to the afterlife and renders the lantern nonmagical.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"mask of the beast\"] = {\r\n\tname : \"Mask of the Beast\",\r\n\tsource : [[\"ToA\", 207]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"This wooden mask is shaped in the likeness of a beast's visage and has 3 charges. While wearing the mask I can expend 1 charge and use the mask to cast the Animal Friendship spell as an action. The mask regains all expended charges at dawn.\",\r\n\tdescriptionFull : \"This wooden mask is shaped in the likeness of a beast's visage and has 3 charges. While wearing the mask you can expend 1 charge and use the mask to cast the Animal Friendship spell as an action. The mask regains all expended charges at dawn.\",\r\n\tweight : 1,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"animal friendship\"],\r\n\t\tselection : [\"animal friendship\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n}\r\nMagicItemsList[\"scorpion armor\"] = {\r\n\tname : \"Scorpion Armor\",\r\n\tsource : [[\"ToA\", 208]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"This suit of plate armor fashioned from giant scorpion chitin doesn't impose disadv. on stealth or saves against extreme heat. It gives me +5 bonus on initiative while I'm not incapacitated. Whenever I don or doff it, I take 10d10+45 poison damage, DC 15 Con save halves. Only a Wish can remove this curse.\",\r\n\tdescriptionFull : \"This suit of plate armor is fashioned from giant scorpion chitin. While wearing this armor, you gain the following benefits:\\n \\u2022 The armor improves your combat readiness, granting you a +5 bonus to initiative as long as you aren't incapacitated.\\n \\u2022 The armor doesn't impose disadvantage on your Dexterity (Stealth) checks.\\n \\u2022 The armor doesn't impose disadvantage on saving throws made to resist the effects of extreme heat (see chapter 5 of the Dungeon Master's Guide).\\n\\n\" + toUni(\"Curse\") + \". This armor is cursed. Whenever you don or doff it, you must make a DC 15 Constitution saving throw, taking 100 (10d10+45) poison damage on a failed save, or half as much damage on a successful one. Only a Wish spell can remove the armor's curse.\",\r\n\tattunement : true,\r\n\tweight : 65,\r\n\tcursed : true,\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : 5, text : \"I gain a +5 bonus on my initiative rolls.\" }],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*scorpion)(?=.*armor).*$/i,\r\n\t\tname : \"Scorpion Armor\",\r\n\t\tsource : [[\"ToA\", 208]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : 18,\r\n\t\tstealthdis : false,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\n// pub_20171011_One-Grung-Above.js\r\n// This file adds the Grung Race from the One Grung Above from Extra Life to MPMB's Character Record Sheet\r\n// This file contains contributions by /u/GoldenSnurp\r\n// Be aware that this race is not legal in adventurers league!\r\n\r\nSourceList[\"OGA\"] = {\r\n\tname : \"One Grung Above\",\r\n\tabbreviation : \"OGA\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/223738/One-Grung-Above-5e\",\r\n\tdate : \"2017/10/11\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nRaceList[\"grung\"] = {\r\n\tregExpSearch : /grung/i,\r\n\tname : \"Grung\",\r\n\tsource : [[\"OGA\", 4]],\r\n\tplural : \"Grung\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd: 25, enc: 15 },\r\n\t\tclimb : { spd: 25, enc: 15 }\r\n\t},\r\n\tlanguageProfs : [\"Grung\"],\r\n\tsavetxt : { immune: [\"poison\"] },\r\n\tskills : [\"Perception\"],\r\n\tage : \" reach adulthood at the age of one and live around 50 years\",\r\n\theight : \" range from 2 1/2 to 3 1/2 feet tall\",\r\n\tweight : \" weigh around 30 lb\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Grung (+2 Dexterity, +1 Constitution)\\nPoisonous Skin: Creatures that touch me must make a DC 12 Con save or be poisoned for 1 min, repeating the save at the end of each of its turns. My piercing weapon attacks deal +2d4 poison damage if the target fails a DC 12 Con save.\\nStanding Leap: Without a running start, I can long jump to 25 ft and high jump to 15 ft.\\nWater Dependency: I can breathe air and water. I need to be immersed in water for 1 hour every day or suffer 1 level of exhaustion at the end of that day until I immerse for 1 hour.\"\r\n};\r\n\n// pub_20171121_XGtE.js\r\n// This file adds the backgrounds and beasts from Xanathar's Guide to Everything to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.X={\r\n\tname : \"Xanathar's Guide to Everything\",\r\n\tabbreviation : \"XGtE\",\r\n\tabbreviationSpellsheet : \"X\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/xanathars-guide-everything\",\r\n\tdate : \"2017/11/21\"\r\n};\r\n\r\n// Add 3 subclasses for the Barbarian\r\nAddSubClass(\"barbarian\", \"ancestral guardian\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"X\", 9]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with an attack on my turn becomes distracted\",\r\n\t\t\t\t\"While distracted, it has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"In addition, everybody but me counts as having resistance to all of the target's attacks\",\r\n\t\t\t\t\"This lasts until the start of my next turn, or until my rage ends\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spirit Shield\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while raging when an ally I see within 30 ft is damaged, I can reduce it\",\r\n\t\t\t\t\"My guardian spirits reduce the damage by an amount equal to the roll of the dice\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d6 damage reduced\"; }),\r\n\t\t\taction : [[\"reaction\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast either Clairvoyance or Augury, without a spell slot or material components\",\r\n\t\t\t\t\"Augury consults ancestral spirits; Clairvoyance summons an invisible ancestral spirit\",\r\n\t\t\t\t\"Wisdom is my spellcasting ability for these spells\"\r\n\t\t\t]),\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"clairvoyance\"],\r\n\t\t\t\tselection : [\"clairvoyance\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"augury\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Omen about specific course of action I plan to take in the next 30 min\",\r\n\t\t\t\t\tchanges : \"My casting of Augury is a practice of consulting my ancestral spirits, thus requiring no material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"clairvoyance\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"My casting of Clairvoyance is a practice of consulting my an ancestral spirit of mine, thus requiring no material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"When using Spirit Shield, the attacker takes the reduced amount as force damage\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"storm herald\", {\r\n\tregExpSearch : /^(?=.*storm)(?=.*herald).*$/i,\r\n\tsubname : \"Path of the Storm Herald\",\r\n\tsubnameShort: \"Storm Herald\",\r\n\tfullname : \"Storm Herald\",\r\n\tsource : [[\"X\", 10]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Storm Aura\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the type of aura'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Desert\", \"Sea\", \"Tundra\"],\r\n\t\t\taction : [[\"bonus action\", \" (reactivate)\"]],\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Aura: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, anybody in my aura other than me takes fire damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 20 ? 5 : 6) + \" fire damage\"; })\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Aura: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, I can choose one creature in my aura other than me\",\r\n\t\t\t\t\t\"It takes lightning damage, or half as much on a successful Dexterity saving throw\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 10 ? 1 : n < 15 ? 2 : n < 20 ? 3 : 4) + \"d6 lightning damage\"; })\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Aura: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, all creatures of my choice in my aura gain temporary HP\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 20 ? 5 : 6) + \" temporary hit points\"; })\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature10\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature14\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Storm Soul\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Soul: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to fire damage and don't suffer the effects of extreme heat\",\r\n\t\t\t\t\t\"As an action, I can set fire to an unattended flammable object I touch\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (ignite)\"]],\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme heat\"] }\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Soul: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can breathe underwater and I have 30 ft swim speed\",\r\n\t\t\t\t\t\"In addition, I have resistance to lightning damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Lightning\"],\r\n\t\t\t\tspeed : { swim : { spd : 30, enc : 20 } }\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Soul: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to cold damage and don't suffer the effects of extreme cold\",\r\n\t\t\t\t\t\"As an action, I can turn a 5-ft cube of water to ice, which melts after 1 minute\",\r\n\t\t\t\t\t\"This action fails if there are any creatures within the cube of water\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (freeze)\"]],\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme cold\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shielding Storm\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"In rage, creatures of my choice within my Storm Aura also gain Storm Soul resistance\"),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Shielding Storm: Desert\",\r\n\t\t\t\tdescription : desc(\"While raging, creatures of my choice within my Storm Aura also gain resistance to fire\")\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Shielding Storm: Sea\",\r\n\t\t\t\tdescription : desc(\"In rage, creatures of my choice within my Storm Aura also gain resistance to lightning\")\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Shielding Storm: Tundra\",\r\n\t\t\t\tdescription : desc(\"While raging, creatures of my choice within my Storm Aura also gain resistance to cold\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Raging Storm\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Raging Storm: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when hit by a creature in my Storm Aura, I can have it make a Dex save\",\r\n\t\t\t\t\t\"On a failed save, the attacker takes fire damage equal to half my barbarian level\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (if hit)\"]],\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : Math.floor(n/2) + \" fire damage\"; })\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Raging Storm: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when I hit a creature in my Storm Aura, I can have it make a Str save\",\r\n\t\t\t\t\t\"On a failed save, the creature is knocked prone, as if struck by a wave\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (with attack)\"]]\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Raging Storm: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I activate my Storm Aura, I can choose a creature in my aura that I can see\",\r\n\t\t\t\t\t\"It must make a Str save or have its speed reduced to 0 until the start of my next turn\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"zealot\", {\r\n\tregExpSearch : /zealot/i,\r\n\tsubname : \"Path of the Zealot\",\r\n\tsubnameShort: \"Zealot\",\r\n\tfullname : \"Zealot\",\r\n\tsource : [[\"X\", 11]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Divine Fury\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\"This is necrotic or radiant damage equal to 1d6 + half my barbarian level\",\r\n\t\t\t\t'Choose a damage type using the \"Choose Feature\" button above'\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" damage\"; }),\r\n\t\t\tchoices : [\"Necrotic Damage\", \"Radiant Damage\"],\r\n\t\t\t\"necrotic damage\" : {\r\n\t\t\t\tname : \"Divine Fury\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\t\"It takes an extra 1d6 + half my barbarian level worth of necrotic damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"radiant damage\" : {\r\n\t\t\t\tname : \"Divine Fury\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\t\"It takes an extra 1d6 + half my barbarian level worth of radiant damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" radiant damage\"; })\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && classes.known.barbarian && classes.known.barbarian.level > 2 && (/\\brage\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tvar theDMG = GetFeatureChoice('class', 'barbarian', 'subclassfeature3');\r\n\t\t\t\t\t\t\tif (!theDMG) return;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6+' + Math.floor(classes.known.barbarian.level / 2) + ' ' + GetFeatureChoice('class', 'barbarian', 'subclassfeature3') + ' on first hit each turn';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Rage' in a melee weapon's name, it will show in its description that its first hit does extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Warrior of the Gods\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"Spells restoring me to life (not undeath or anything else) don't require material comp.\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fanatical Focus\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I fail a saving throw while raging, I can reroll it and must use the new roll\",\r\n\t\t\t\t\"I can use this ability only once per rage\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"rage\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Zealous Presence\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose up to 10 creatures within 60 ft that can hear my battle cry\",\r\n\t\t\t\t\"These creatures gain adv. on attacks and saves until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage Beyond Death\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, having 0 hit points doesn't knock me unconscious\",\r\n\t\t\t\t\"I still must make death saves, and I suffer the normal effects of taking damage\",\r\n\t\t\t\t\"I only die due to failed death saves if my rage ends while I'm at 0 HP\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Bard\r\nAddSubClass(\"bard\", \"college of glamour\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*glamour).*$/i,\r\n\tsubname : \"College of Glamour\",\r\n\tsubnameShort: \"Glamour\",\r\n\tsource : [[\"X\", 14]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mantle of Inspiration\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I expend one Bardic Inspiration die to aid those within 60 ft of me\",\r\n\t\t\t\t\"My Cha mod (min 1) of creatures that I can see and can see me gain temporary HP\",\r\n\t\t\t\t\"They can immediately use a reaction to move their speed, without opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"1 inspiration die; \" + (n < 5 ? 5 : n < 10 ? 8 : n < 15 ? 11 : 14) + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Enthralling Performance\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By performing for at least 1 minute, I can charm humanoids within 60 ft of me\",\r\n\t\t\t\t\"After the performance, my Cha mod (min 1) number of targets must make a Wis save\",\r\n\t\t\t\t\"On a fail, a target is charmed for 1 hour; If success, it doesn't knows I tried to charm it\",\r\n\t\t\t\t\"While charmed, the target idolizes me, hinders those opposing me, and avoids violence\",\r\n\t\t\t\t\"This lasts until a target takes damage, I attack it, or if it sees me attacking its allies\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I appear unearthly beautiful while I concentrate, up to 1 minute\",\r\n\t\t\t\t\"At the same time, and as a bonus action during, I can cast Command without a spell slot\",\r\n\t\t\t\t\"Creatures charmed by me automatically fail their saves against these Command spells\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\t\tspells : [\"command\"],\r\n\t\t\t\tselection : [\"command\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"command\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tdescription : \"1 crea save or follow one word command, e.g. approach, drop, flee, halt\",\r\n\t\t\t\t\tchanges : \"Using my Mantle of Majesty class feature, I can cast Command as a bonus action once per long rest without using a spell slot, thus only affect a single target.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I gain a magically majestic presence for 1 min or until incapacitated\",\r\n\t\t\t\t\"During this, the first time a creature attacks me each turn they must make a Cha save\",\r\n\t\t\t\t\"If failed, it can't attack me this turn and must choose another target or lose its attack\",\r\n\t\t\t\t\"If successful, it can attack, but has disadv. on all saves against my spells on my next turn\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of swords\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"X\", 15]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor and scimitars\",\r\n\t\t\t\t\"My bardic spellcasting focus can be any simple or martial weapon I'm proficient with\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Style\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc('Select a Fighting Style for the college of swords using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dueling\", \"Two-Weapon Fighting\"],\r\n\t\t\t\"dueling\" : FightingStyles.dueling,\r\n\t\t\t\"two-weapon fighting\" : FightingStyles.two_weapon\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action on my turn, I gain bonus speed and special attack options\",\r\n\t\t\t\t\"I gain +10 ft to my walking speed until the end of the current turn\",\r\n\t\t\t\t\"Once per turn when I hit with a weapon attack, I can expend a Bardic Inspiration die\",\r\n\t\t\t\t\"The roll of that die is added to the weapon's damage, in addition to one of the following:\",\r\n\t\t\t\t\"\\u2022 Defensive Flourish: the result is also added to my AC until the start of my next turn\",\r\n\t\t\t\t\"\\u2022 Slashing Flourish: the extra damage is also dealt to any of my choosing in 5 ft of me\",\r\n\t\t\t\t\"\\u2022 Mobile Flourish: the target is also pushed 5 plus the die result in feet away from me\",\r\n\t\t\t\t\"  As a reaction after this push, I can move my speed to a space within 5 ft of the target\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Flourish\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"When I do a Blade Flourish, I can use a d6 instead of expending a Bardic Inspiration die\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of whispers\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*whispers).*$/i,\r\n\tsubname : \"College of Whispers\",\r\n\tsubnameShort: \"Whispers\",\r\n\tsource : [[\"X\", 16]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psychic Blades\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I hit a creature with a weapon attack, I can expend one use of Bardic Inspiration\",\r\n\t\t\t\t\"If so, the attack does extra psychic damage; I can do so only once per round, on my turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"1 Bardic Inspiration for +\" + (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 5 : 8) + \"d6 damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Words of Terror\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By speaking privately with a humanoid for at least 1 minute, I can try to inspire terror\",\r\n\t\t\t\t\"After the talk, it must make a Wis save or be frightened of me or someone of my choice\",\r\n\t\t\t\t\"If the save is successful, the target doesn't know I tried to frighten it\",\r\n\t\t\t\t\"This lasts for 1 hour, or until it sees its allies or itself being attacked or damaged\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Whispers\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a humanoid dies within 30 ft of me, I can capture its shadow\",\r\n\t\t\t\t\"As an action, I can use it to make me look just like the dead person did while it was alive\",\r\n\t\t\t\t\"While disguised, I know general information about it and its memories, but not its secrets\",\r\n\t\t\t\t\"Others can see through the disguise with a Wis (Insight) check vs. my Cha (Deception) +5\",\r\n\t\t\t\t\"A shadow lasts until used or next long rest; The disguise ends as a bonus action or 1 hour\"\r\n\t\t\t]),\r\n\t\t\taction : [['action', 'Shadow Disguise (start)'], ['bonus action', 'Shadow Disguise (end)']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Lore\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I whisper to a creature within 30 ft that can hear and understand me\",\r\n\t\t\t\t\"Only the target can hear me; It must make a Wis save or be charmed by me for 8 hours\",\r\n\t\t\t\t\"If failed, it thinks I know its most mortifying secret, otherwise it only hears mumbling\",\r\n\t\t\t\t\"While charmed, the target obeys my commands, but won't fight or risk its life for me\",\r\n\t\t\t\t\"This lasts for 8 hours, or until I or my allies attack it, damage it, or have it make a save\"\r\n\t\t\t\t//\"When the effect ends, the target has no idea why it was so afraid of me\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 2 subclasses for the Cleric\r\nAddSubClass(\"cleric\", \"forge domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(forge|forgery|blacksmith)).*$/i,\r\n\tsubname : \"Forge Domain\",\r\n\tsource : [[\"X\", 18]],\r\n\tspellcastingExtra : [\"identify\", \"searing smite\", \"heat metal\", \"magic weapon\", \"elemental weapon\", \"protection from energy\", \"fabricate\", \"wall of fire\", \"animate objects\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with heavy armor and smith's tools\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\ttoolProfs : [\"Smith's tools\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Blessing of the Forge\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the end of a long rest, I can imbue magic into a nonmagical weapon or armor\",\r\n\t\t\t\t\"It becomes magical: +1 AC if armor, or +1 to attack and damage rolls if a weapon\",\r\n\t\t\t\t\"This lasts until the end of my next long rest or until I die\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Artisan's Blessing\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With an hour-long ritual, I can craft a nonmagical item that is at least part metal\",\r\n\t\t\t\t\"Including: suit of armor, simple or martial weapon, set of tools, 10 pieces of ammunition\",\r\n\t\t\t\t\"The creation can be worth up to 100 gp, and I must expend metals of equal value to it\",\r\n\t\t\t\t\"The metals irretrievably coalesce into the new item, forming even nonmetal parts of it\",\r\n\t\t\t\t\"The item can be an exact duplicate of a nonmagical item if I possess the original\",\r\n\t\t\t\t\"The item comes into existence at the end of the hour in an unoccupied space within 5 ft\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Forge\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"I gain resistance to fire damage and +1 to AC while wearing medium or heavy armor\"),\r\n\t\t\tdmgres : [\"Fire\"],\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while wearing Medium or Heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.mediumArmor && !v.heavyArmor; }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 fire damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 fire damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra fire damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Saint of Forge and Fire\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain immunity to fire damage\",\r\n\t\t\t\t\"When wearing heavy armor, I'm resistant to nonmagical bludg./piercing/slashing damage\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"fire\"] },\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"grave domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*grave).*$/i,\r\n\tsubname : \"Grave Domain\",\r\n\tsource : [[\"X\", 19]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"gentle repose\", \"ray of enfeeblement\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"raise dead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Circle of Mortality\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Spells I cast to heal a living creature at 0 HP have their dice count as their max result\",\r\n\t\t\t\t\"I learn Spare the Dying, which I can cast as a bonus action with a range of 30 ft\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Circle of Mortality\",\r\n\t\t\t\tspells : [\"spare the dying\"],\r\n\t\t\t\tselection : [\"spare the dying\"],\r\n\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spare the dying\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\tchanges : \"I can cast Spare the Dying as a bonus action instead of an action, and it has a range of 30 ft instead of touch.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of the Grave\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : typePF ? \"Wisdom mod per \" : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I sense undead within 60 ft that aren't protected from divination magic\",\r\n\t\t\t\t\"Until the end of my next turn, I sense the location of any undead not behind total cover\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Path to the Grave\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can curse a creature within 30 ft until the end of my next turn\",\r\n\t\t\t\t\"It is vulnerable to all the damage from the next attack by me or my allies that hits it\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sentinel at Death's Door\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tusages : typePF ? \"Wisdom mod per \" : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription : desc(\"As a reaction, I turn a critical hit to me or an ally I see within 30 ft to a normal hit\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Keeper of Souls\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per round, if I'm not incapacitated, I can manipulate the energy of the dying\",\r\n\t\t\t\t\"When an enemy I can see dies within 60 ft of me, I or an ally within 60 ft regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the enemy's number of Hit Dice\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 2 subclasses for the Druid\r\nAddSubClass(\"druid\", \"circle of dreams\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*\\bdreams\\b).*$/i,\r\n\tsubname : \"Circle of Dreams\",\r\n\tsubnameShort: \"Dreams\",\r\n\tsource : [[\"X\", 22]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Balm of the Summer Court\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of fey energy represented by a number of d6s equal to my druid level\",\r\n\t\t\t\t\"As a bonus action, I can spend dice to heal an ally within 120 ft of me that I can see\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"The ally heals an amount equal to the total rolled and gains 1 temp HP per die spent\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n + \"d6 per \"; }),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hearth of Moonlight and Shadow\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of a rest, I can create a 30-ft radius invisible magical sphere\",\r\n\t\t\t\t\"The sphere extends from a point in space I touch, but doesn't extend through total cover\",\r\n\t\t\t\t\"Within this area, my allies and I gain +5 on Wis (Perception) and Dex (Stealth) checks\",\r\n\t\t\t\t\"Also, any light from open flames that are in the sphere is invisible from outside the area\",\r\n\t\t\t\t\"This effect lasts until the end of the rest or when I leave the sphere\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hidden Paths\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can teleport myself up to 60 ft to a spot I can see\",\r\n\t\t\t\t\"As an action, I can teleport a willing ally I touch up to 30 ft to a spot I can see\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"], ['action', ' (on ally)']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Walker in Dreams\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can cast either Dream, Scrying, or Teleportation Circle\",\r\n\t\t\t\t\"This doesn't require a spell slot or material components; Dream uses me as the messenger\",\r\n\t\t\t\t\"Teleportation Circle connects to the last place I finished a long rest, if on the same plane\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"dream\"],\r\n\t\t\t\tselection : [\"dream\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"scrying\"],\r\n\t\t\t\tselection : [\"scrying\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"teleportation circle\"],\r\n\t\t\t\tselection : [\"teleportation circle\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"dream\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"scrying\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"1 crea save or sensor follows it around; or create sensor in familiar location; see book\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"teleportation circle\" : {\r\n\t\t\t\t\tcomponents : \"V\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Create a circle to teleport to the place where I finished my last long rest, if on the same plane; see book\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\\n \\u2022 The teleportation circle brings me back to the place where I finished my last long rest.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the shepherd\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"X\", 23]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Speech of the Woods\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts; Additionally, I learn Sylvan\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Sylvan\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Totem\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon, or move, a spirit to a point I can see within 60 ft\",\r\n\t\t\t\t\"It is a spectral form of a Bear, Hawk, or Unicorn (my choice), with a 30-ft radius aura\",\r\n\t\t\t\t\"It is incorporeal, immobile, doesn't counts as a creature or object, and persists for 1 min\",\r\n\t\t\t\t\"The spirit persists for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"\\u2022 Bear: my allies and I, if in the aura, immediately gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"  While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: As a reaction, I can grant advantage on an attack vs. a target in the aura\",\r\n\t\t\t\t\"  While in the aura, my allies and I gain advantage on Wisdom (Perception) checks\",\r\n\t\t\t\t\"\\u2022 Unicorn: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"  When I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"Beasts or Fey I summon with spells get +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that summons beast or fey creatures, those summons have +2 HP per HD and their attacks count as magical.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"When a Beast or Fey that I summoned ends its turn in my Spirit Totem aura, it heals\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 10 ? \"\" : \"heals \" + Math.floor(n / 2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can cast Conjure Animals\",\r\n\t\t\t\t\"This is done as if using a 9th-level spell slot to summon 4 beast of my choice up to CR 2\",\r\n\t\t\t\t\"They appear within 20 ft of me, last 1 hour, and protect me from harm and attack foes\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Faithful Summons\",\r\n\t\t\t\tspells : [\"conjure animals\"],\r\n\t\t\t\tselection : [\"conjure animals\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"conjure animals\" : {\r\n\t\t\t\t\tnameShort : \"Conjure Animals (level 9)\",\r\n\t\t\t\t\trange : \"20 ft\",\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"Summon 4 CR 2 beasts; protect me from harm and attack foes\",\r\n\t\t\t\t\tchanges : \"Using my Faithful Summons class feature when I'm reduced to 0 HP, I can cast Conjure Animals as if using a 9th-level spell slot. This then summons 4 beast of my choice up to CR 2 within 20 ft of me without needing concentration.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Fighter\r\nAddSubClass(\"fighter\", \"arcane archer\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"X\", 28]],\r\n\tfullname : \"Arcane Archer\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with either the Arcana or Nature skill\",\r\n\t\t\t\t\"I also learn either the Prestidigitation or the Druidcraft cantrip\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Arcana or Nature\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\t\tspells : [\"druidcraft\", \"prestidigitation\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can unleash magical effects when I fire an arrow from a short- or longbow\",\r\n\t\t\t\t\"I can use this once per turn as part of the Attack action, after an attack hits\",\r\n\t\t\t\t\"I know a number of Arcane Shot Options and learn additional at certain levels\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Arcane Shots Options to the third page'\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" options known\"; }),\r\n\t\t\textraname : \"Arcane Shot Option\",\r\n\t\t\textrachoices : [\"Banishing Arrow [Abjuration]\", \"Beguiling Arrow [Enchantment]\", \"Bursting Arrow [Evocation]\", \"Enfeebling Arrow [Necromancy]\", \"Grasping Arrow [Conjuration]\", \"Piercing Arrow [Transmutation]\", \"Seeking Arrow [Divination]\", \"Shadow Arrow [Illusion]\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"banishing arrow [abjuration]\" : {\r\n\t\t\t\tname : \"Banishing Arrow [Abjuration]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target makes a Cha save or is banished to the Feywild until the end of its next turn\",\r\n\t\t\t\t\t\"While banished, its speed is 0 and is incapacitated; It re-appearing in the same spot\",\r\n\t\t\t\t\t\"When I reach 18th level, this Arcane Shot Option also does an extra 2d6 force damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 18 ? \"\" : \"+2d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"beguiling arrow [enchantment]\" : {\r\n\t\t\t\tname : \"Beguiling Arrow [Enchantment]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, it is charmed by one of my allies within 30 ft of it that I choose\",\r\n\t\t\t\t\t\"This lasts until my next turn starts or until the chosen ally attacks the target in any way\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 damage\"; })\r\n\t\t\t},\r\n\t\t\t\"bursting arrow [evocation]\" : {\r\n\t\t\t\tname : \"Bursting Arrow [Evocation]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc(\"The target, in addition to the shot, and all creatures within 10 ft of it take damage\"),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"enfeebling arrow [necromancy]\" : {\r\n\t\t\t\tname : \"Enfeebling Arrow [Necromancy]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra necrotic damage and must make a Constitution save\",\r\n\t\t\t\t\t\"If failed, the damage of the target's attacks are halved until the start of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"grasping arrow [conjuration]\" : {\r\n\t\t\t\tname : \"Grasping Arrow [Conjuration]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra poison damage as brambles wrap around it for 1 minute\",\r\n\t\t\t\t\t\"The brambles give it -10 ft speed and do it slashing damage every round it moves\",\r\n\t\t\t\t\t\"These can be removed by it or another as an action with Strength (Athletics) vs. my DC\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 18 ? 2 : 4) + \"d6 poison/slash. damage\"; })\r\n\t\t\t},\r\n\t\t\t\"piercing arrow [transmutation]\" : {\r\n\t\t\t\tname : \"Piercing Arrow [Transmutation]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but shoot the arrow in a 30-ft long, 1-ft wide line\",\r\n\t\t\t\t\t\"It passes through objects, ignoring cover, but all creatures in the area take damage\",\r\n\t\t\t\t\t\"The damage is the same as a normal hit from my attack, plus extra piercing damage\",\r\n\t\t\t\t\t\"A creature can make a Dexterity save to reduce the damage by half\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 piercing damage\"; })\r\n\t\t\t},\r\n\t\t\t\"seeking arrow [divination]\" : {\r\n\t\t\t\tname : \"Seeking Arrow [Divination]\",\r\n\t\t\t\tsource : [[\"X\", 30]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but I choose a target I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners, obstacles, and ignores cover to hit the target\",\r\n\t\t\t\t\t\"It is hit if it is within the weapon's range and there is a path for the arrow to get to it\",\r\n\t\t\t\t\t\"The target takes the full damage of the attack plus extra force damage\",\r\n\t\t\t\t\t\"It can make a Dexterity save to reduce the damage by half; If failed, I know its location\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"shadow arrow [illusion]\" : {\r\n\t\t\t\tname : \"Shadow Arrow [Illusion]\",\r\n\t\t\t\tsource : [[\"X\", 30]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, the target can't see anything beyond 5 ft until the end of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 psychic damage\"; })\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Magic Arrow\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"Whenever I fire a nonmagical arrow from a short- or longbow, I can make it magical\")\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Curving Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn when I miss with a magic arrow, I can use a bonus action to redirect it\",\r\n\t\t\t\t\"I reroll the attack against a different target within 60 ft of the original target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"I regain one use of Arcane Shot if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"X\", 30]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t'Alternatively, I learn one language; Use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: Animal Handling, History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: animal handling, history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Unwavering Mark\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I hit a creature with a melee weapon attack, I mark it until the end of my next turn\",\r\n\t\t\t\t\"While it is within 5 ft of me, a marked target has disadv. on attacks not directed at me\",\r\n\t\t\t\t\"If it damages anybody but me, I can make a special melee attack vs. it in my next turn\",\r\n\t\t\t\t\"This takes a bonus action, but has adv. and adds half my fighter level to the damage\",\r\n\t\t\t\t\"A mark ends early if I'm incapacitated, die, or somebody else marks the target\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Strength modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Str Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + Math.floor(n/2) + \" damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/\\b(unwavering.?mark|marked)\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.floor(classes.known.fighter.level / 2);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Unwavering Mark' or 'Marked' in the name of a melee weapon, it gets half my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Warding Maneuver\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature within 5 ft is hit, I can try to fend off the strike\",\r\n\t\t\t\t\"I add 1d8 to the target's AC; If the attack still hits, the target has resistance against it\",\r\n\t\t\t\t\"I can only do this while wielding a melee weapon or a shield\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hold the Line\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Creatures provoke opportunity attacks when moving 5 ft or more while within my reach\",\r\n\t\t\t\t\"If I hit an opportunity attack, the target's speed is reduced to 0 until the end of the turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I hit a creature after moving 10 ft in a straight line, it must make a Strength save\",\r\n\t\t\t\t\"If failed, the target is knocked prone; I can do this only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Vigilant Defender\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can make opportunity attacks without using my reaction\",\r\n\t\t\t\t\"I can do this only once on every creature's turn, except on my own turn\",\r\n\t\t\t\t\"I can't do this on the same turn that I use my normal reaction\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"samurai\", {\r\n\tregExpSearch : /samurai/i,\r\n\tsubname : \"Samurai\",\r\n\tsource : [[\"X\", 31]],\r\n\tfullname : \"Samurai\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t'Alternatively, I learn one language; Use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Spirit\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can give myself advantage on weapon attacks and temporary HP\",\r\n\t\t\t\t\"This advantage on weapon attack rolls lasts until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 10 ? 5 : n < 15 ? 10 : 15) + \" temporary HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Elegant Courtier\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to any Charisma (Persuasion) checks I make\",\r\n\t\t\t\t\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"\r\n\t\t\t]),\r\n\t\t\tsaves : [\"Wis\"],\r\n\t\t\taddMod : { type : \"skill\", field : \"Pers\", mod : \"max(Wis|0)\", text : \"I can add my Wisdom modifier to any Charisma (Persuasion) checks I make.\" }\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Tireless Spirit\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"I regain one use of Fighting Spirit if I have no more remaining when I roll initiative\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can forgo advantage on one attack to make one extra attack\",\r\n\t\t\t\t\"This extra attack is part of the same action; I can do this only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Strength Before Death\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I'm reduced to 0 HP but not killed outright, I can delay falling unconscious\",\r\n\t\t\t\t\"I then immediately take a bonus turn, interrupting the current turn\",\r\n\t\t\t\t\"While I'm at 0 HP, I suffer damage normally and die if I have 3 failed death saves\",\r\n\t\t\t\t\"If I'm still at 0 HP at the end of this bonus turn, I fall unconscious\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Monk\r\nAddSubClass(\"monk\", \"way of the drunken master\", {\r\n\tregExpSearch : /^((?=.*drunken)(?=.*master))|((?=.*drunk)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Drunken Master\",\r\n\tsubnameShort: \"Drunken Master\",\r\n\tfullname : \"Drunken Master\",\r\n\tsource : [[\"X\", 33]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I gain proficiency with the Performance skill and brewer's supplies\"),\r\n\t\t\tskills : [\"Performance\"],\r\n\t\t\ttoolProfs : [\"Brewer's supplies\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drunken Technique\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When using Flurry of Blows, I gain the benefits of a Disengage and +10 ft speed this turn\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Tipsy Sway\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"1 ki point: as a reaction if missed in melee, attacker instead hits other I see within 5 ft\"),\r\n\t\t\tadditional : \"Standing up from prone costs only 5 ft\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drunkard's Luck\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc(\"By spending 2 ki points, I can remove disadv. from an ability check, attack roll, or save\"),\r\n\t\t\tadditional : \"2 ki points\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Intoxicated Frenzy\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"I can make 3 extra attacks with Flurry of Blows if each is used on a different target\")\r\n\t\t}\r\n\t}\r\n});\r\n// Create the Kensei and its weapon options last, so we benefit of all possible weapons that were added\r\nRunFunctionAtEnd(function () {\r\n\tvar theKenseiSubclassName = AddSubClass(\"monk\", \"way of the kensei\", {\r\n\t\tregExpSearch : /kensei/i,\r\n\t\tsubname : \"Way of the Kensei\",\r\n\t\tsubnameShort: \"Kensei\",\r\n\t\tfullname : \"Kensei\",\r\n\t\tsource : [[\"X\", 34]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Path of the Kensei\",\r\n\t\t\t\tsource : [[\"X\", 34]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with either calligrapher's supplies or painter's supplies\",\r\n\t\t\t\t\t\"Some weapons, that don't have the heavy or special property, are kensei weapons for me\",\r\n\t\t\t\t\t\"At least one ranged and one melee weapon, more at higher levels (longbow does qualify)\",\r\n\t\t\t\t\t\"With these: proficient, count as a monk weapons, special bonuses depending on type held:\",\r\n\t\t\t\t\t\"\\u2022 Melee: if I do unarmed strike during an Attack action, +2 AC until my next turn starts\",\r\n\t\t\t\t\t\"\\u2022 Ranged: as a bonus action, ranged weapon attacks deal +1d4 damage in current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with ranged)\"]],\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" kensei weapons\"; }),\r\n\t\t\t\ttoolProfs : [\"calligrapher's or painter's supplies\"],\r\n\t\t\t\textraname : \"Kensei Weapon\",\r\n\t\t\t\textrachoices : [], // add these dynamically, see below\r\n\t\t\t\textraTimes : levels.map( function(n) { return n < 3 ? 0 : n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5; }),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tvar theKenseiWeapons = GetFeatureChoice(\"class\", \"monk\", \"subclassfeature3\", true);\r\n\t\t\t\t\t\t\tif (theKenseiWeapons.indexOf(v.baseWeaponName) != -1 || ((/kensei/i).test(v.WeaponTextName) && !v.theWea.special && (!(/heavy|special/i).test(fields.Description) || v.baseWeaponName === 'longbow'))) {\r\n\t\t\t\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t\t\t\t\tv.theWea.kenseiweapon = true;\r\n\t\t\t\t\t\t\t\tif (v.isRangedWeapon) {\r\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 damage';\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"For the weapons that I select using the \\\"Choose Feature\\\" button on the second page or when I include the word 'Kensei' in the name of a weapon that doesn't have the Heavy or Special attribute, or that is a longbow, that weapon gains the same benefits as any other 'Monk Weapon'.\\nIn addition, with ranged 'Kensei Weapons', I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 damage.\",\r\n\t\t\t\t\t\t1\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"ki-empowered strikes\" : {\r\n\t\t\t\tname : \"One with the Blade\",\r\n\t\t\t\tsource : [[\"X\", 34]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description) && (v.baseWeaponName === \"unarmed strike\" || v.theWea.kenseiweapon)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My unarmed strikes and any Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t},\r\n\t\t\t\t\"deft strike\" : {\r\n\t\t\t\t\tname : \"Deft Strike\",\r\n\t\t\t\t\textraname : \"Way of the Kensei 6\",\r\n\t\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\t\tdescription : desc(\"Once per turn when I hit with a kensei weapon, I can do a martial arts die extra damage\"),\r\n\t\t\t\t\tadditional : \"1 ki point\"\r\n\t\t\t\t},\r\n\t\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a bonus action, I can grant my kensei weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\t\"This bonus is equal to the number of ki points I spend and doesn't stack with magic\",\r\n\t\t\t\t\t\t\"This lasts for 1 minute or until I use this feature again\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"1 to 3 ki points\",\r\n\t\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t\t},\r\n\t\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\t\textrachoice : \"deft strike\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\t\tminlevel : 11\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature17\" : {\r\n\t\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\tminlevel : 17,\r\n\t\t\t\tdescription : desc(\"Once per turn, if I miss a monk weapon attack on my turn, I can reroll the attack roll\")\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tvar itsFea = ClassSubList[theKenseiSubclassName].features.subclassfeature3;\r\n\tfor (var weapon in WeaponsList) {\r\n\t\tvar aWea = WeaponsList[weapon];\r\n\t\t// skip attacks that are not simple or martial weapons, that have the heavy or special property, are magic weapons, or those that are spells or cantrips\r\n\t\tif (weapon !== \"longbow\" && (aWea.isMagicWeapon || !(/simple|martial/i).test(aWea.type) || (/heavy|special/i).test(aWea.description) || aWea.special || (/improvised|gear|spell|cantrip/i).test(aWea.list))) continue;\r\n\t\titsFea.extrachoices.push(aWea.name);\r\n\t\titsFea[aWea.name.toLowerCase()] = {\r\n\t\t\tname : aWea.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : aWea.source,\r\n\t\t\tweaponProfs : [false, false, [weapon]],\r\n\t\t\tweaponsAdd : { select : [aWea.name] },\r\n\t\t\tsubmenu : ((/simple/i).test(aWea.type) ? \"\\x1BSimple weapon, \" : \"Martial weapon, \") + ((/^(?!.*melee).*\\d+.*$/i).test(aWea.range) ? \"ranged\" : \"melee\"),\r\n\t\t\tprereqeval : 'testSource(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"], \"weapExcl\") ? \"skip\" : true;'\r\n\t\t}\r\n\t}\r\n});\r\n// Add 2 subclasses for the Paladin\r\nAddSubClass(\"paladin\", \"oath of conquest\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"X\", 37]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Presence\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures of my choice within a 30-ft radius must make a Wisdom save\",\r\n\t\t\t\t\"If failed, a target is frightened for 1 minute; It can save again at the end of each turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"dominate beast\", \"stoneskin\", \"cloudkill\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Creatures that are frightened of me have their speed reduced to 0 while in my aura\",\r\n\t\t\t\t\"They also take psychic damage whenever they start theirs turn within my aura\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 7) return \"\";\r\n\t\t\t\treturn (n < 18 ? 10 : 30) + \"-foot aura; \" + Math.floor(n / 2) + \" psychic damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Scornful Rebuke\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I'm hit with an attack while I'm not incapacitated, the attacker takes damage\",\r\n\t\t\t\t\"This is psychic damage equal to my Charisma modifier (minimum of 1)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" - I have resistance to all damage\",\r\n\t\t\t\t\" - I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\" - My melee weapons score critical hits on a roll of 19 or 20\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of redemption\", {\r\n\tregExpSearch : /^((?=.*redeemer)|((?=.*redemption)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Redemption\",\r\n\tsubnameShort: \"Redemption\",\r\n\tsource : [[\"X\", 38]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Emissary of Peace\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"As a bonus action, I grant myself +5 on Charisma (Persuasion) checks for 10 minutes\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"sanctuary\", \"sleep\", \"calm emotions\", \"hold person\", \"counterspell\", \"hypnotic pattern\", \"otiluke's resilient sphere\", \"stoneskin\", \"hold monster\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Rebuke the Violent\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after a creature within 30 ft attacks and damages another, I can rebuke it\",\r\n\t\t\t\t\"It takes the same damage as it dealt but as radiant damage, with a Wis save to halve it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Guardian\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when an ally within my aura takes damage, I instead take the damage\",\r\n\t\t\t\t\"This damage can't be reduced in any way; Other effects might still apply to my ally\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Protective Spirit\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"At the end of my turn when I'm below half HP and not incapacitated, I regain HP\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"1d6+\" + Math.floor(n/2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Emissary of Redemption\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When taking damage from a creature, I take only half and it takes the other half\",\r\n\t\t\t\t\"This stops working on any that I attack or force to make a save, until I have a long rest\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"All from creatures\"]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Ranger\r\nvar XGtE_Ranger_Subclass_Gloom_Stalker = AddSubClass(\"ranger\", \"gloom stalker\", {\r\n\tregExpSearch : /^(?=.*gloom)(?=.*stalker).*$/i,\r\n\tsubname : \"Gloom Stalker\",\r\n\tsource : [[\"X\", 41]],\r\n\tfullname : \"Gloom Stalker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dread Ambusher\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to my initiative rolls\",\r\n\t\t\t\t\"In the first turn of combat I get +10 ft speed and an extra attack with the Attack action\",\r\n\t\t\t\t\"If I take the Attack action and that extra attack hits, it does +1d8 damage\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Wis|0)\", text : \"I can add my Wisdom modifier to my initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Gloom Stalker Magic\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"fear\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Umbral Sight\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain 60 ft darkvision, or add 30 ft to darkvision if I already had it because of my race\",\r\n\t\t\t\t\"When I'm in darkness, others gain no benefit from darkvision to detect me\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc(\"Once on each of my turns when I miss a weapon attack, I can make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Shadowy Dodge\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nvar XGtE_Ranger_Subclass_Horizon_Walker = AddSubClass(\"ranger\", \"horizon walker\", {\r\n\tregExpSearch : /^(?=.*horizon)(?=.*walker).*$/i,\r\n\tsubname : \"Horizon Walker\",\r\n\tsource : [[\"X\", 42]],\r\n\tfullname : \"Horizon Walker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Detect Portal\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"As an action, I sense the distance and direction to the closest planar portal within 1 mile\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Horizon Walker Magic\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"misty step\", \"haste\", \"banishment\", \"teleportation circle\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Planar Warrior\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose one creature that I can see within 30 ft of me\",\r\n\t\t\t\t\"All damage from my first weapon attack that hits it on this turn becomes force damage\",\r\n\t\t\t\t\"In addition, that first hit does extra damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + (n < 11 ? 1 : 2) + \"d8 force damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ethereal Step\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"As a bonus action, I can cast the Etherealness spell, which lasts until the end of my turn\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Ethereal Step\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tduration : \"1 rnd\",\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Ethereal Step class feature I can cast Etherealness as a bonus action once per short rest, but it only affects myself and lasts until the end of my turn.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Distant Strike\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can teleport 10 ft before each attack, to a place I can see\",\r\n\t\t\t\t\"If I attack two different creatures with this action, I get an extra attack against a third\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Spectral Defense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"As a reaction when an attack damages me, I can give myself resistance vs. that attack\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nvar XGtE_Ranger_Subclass_Monster_Slayer = AddSubClass(\"ranger\", \"monster slayer\", {\r\n\tregExpSearch : /^(?=.*monster)(?=.*slayer).*$/i,\r\n\tsubname : \"Monster Slayer\",\r\n\tsource : [[\"X\", 43]],\r\n\tfullname : \"Monster Slayer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hunter's Sense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I learn vulnerabilities/immunities/resistances of a target I see within 60 ft\",\r\n\t\t\t\t\"If it is protected from divination magic, I sense it has none of these\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Monster Slayer Magic\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"zone of truth\", \"magic circle\", \"banishment\", \"hold monster\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Slayer's Prey\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I designate a creature I see within 60 ft; This lasts until I do this again\",\r\n\t\t\t\t\"My first hit to the target with a weapon attack on each of my turns does +1d6 damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Supernatural Defense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add 1d6 to saving throws the current target of my Slayer's Prey forces me to make\",\r\n\t\t\t\t\"In addition, I also add 1d6 to checks to escape that target's grapple\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Magic-User's Nemesis\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see someone within 60 ft casting a spell or teleporting, I can foil it\",\r\n\t\t\t\t\"The target must make a Wisdom save or have its spell or teleport fail and be wasted\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Slayer's Counter\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when the target of my Slayer's Prey has me make a save, I can attack it\",\r\n\t\t\t\t\"I can make one weapon attack; If this hits, I automatically succeed on the saving throw\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Add all three subclasses to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(XGtE_Ranger_Subclass_Gloom_Stalker, XGtE_Ranger_Subclass_Horizon_Walker, XGtE_Ranger_Subclass_Monster_Slayer);\r\n};\r\n\r\n// Add 4 subclasses for the Rogue\r\nAddSubClass(\"rogue\", \"inquisitive\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*inquisitive).*$/i,\r\n\tsubname : \"Inquisitive\",\r\n\tsource : [[\"X\", 45]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ear for Deceit\",\r\n\t\t\tsource : [[\"X\", 45]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"For Wis (Insight) to sense if another is lying, I can treat a die roll of 7 or lower as an 8\")\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eye for Detail\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can do either of the following:\",\r\n\t\t\t\t\"\\u2022 Make a Wisdom (Perception) check to spot a hidden creature or object\",\r\n\t\t\t\t\"\\u2022 Make an Intelligence (Investigation) check to uncover or decipher clues\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Insightful Fighting\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can decipher the tactics of another I can see that's not incapacitated\",\r\n\t\t\t\t\"I have to make a Wisdom (Insight) check vs. the target's Charisma (Deception) check\",\r\n\t\t\t\t\"If I succeed, I can use my sneak attack on it even if I don't have adv. (but not if disadv.)\",\r\n\t\t\t\t\"This benefit lasts for 1 minute or until I successfully use Insightful Fighting again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Steady Eye\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I'm more perceptive when I don't move more than half my speed in the same turn\",\r\n\t\t\t\t\"If so, I gain adv. on Wis (Perception) and Int (Investigation) checks during that turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Unerring Eye\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can sense magical deceptions within 30 feet of me, but not what it does\",\r\n\t\t\t\t\"I learn the presence of illusions, shapechanged creatures, or magic designed to deceive\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Eye for Weakness\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"While my Insightful Fighting is active, I add 3d6 to sneak attacks against that target\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"scout\", {\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"X\", 47]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Skirmisher\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile ends its turn within 5 ft of me, I can move half my speed\",\r\n\t\t\t\t\"This movement does not provoke attacks of opportunity\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Survivalist\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I gain proficiency and expertise with the Nature and Survival skills\"),\r\n\t\t\tskills : [['Nature', 'full'], ['Survival', 'full']]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Superior Mobility\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc(\"I gain +10 ft to my walking speed (and swimming/climbing speed, if applicable)\"),\r\n\t\t\tspeed : {\r\n\t\t\t\tallModes : { bonus : \"+10\", exclude : [\"fly\", \"burrow\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ambush Master\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain advantage on Initiative rolls\",\r\n\t\t\t\t\"The first creature I hit in the first round of combat becomes an easy target\",\r\n\t\t\t\t\"Until the start of my next turn, all attacks against the target have advantage\"\r\n\t\t\t]),\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sudden Strike\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can make one additional attack as a bonus action\",\r\n\t\t\t\t\"This attack can benefit from my Sneak Attack even if I already used it this turn\",\r\n\t\t\t\t\"However, I still can't use Sneak Attack on a single target more than once per turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Add 3 subclasses for the Sorcerer\r\nAddSubClass(\"sorcerer\", \"divine soul\", { // this code includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?=.*divine)(?=.*soul).*$/i,\r\n\tsubname : \"Divine Soul\",\r\n\tsource : [[\"X\", 50]],\r\n\tfullname : \"Divine Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t\t'I also learn a spell based on my affinity, use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Good\", \"Evil\", \"Law\", \"Chaos\", \"Neutrality\"],\r\n\t\t\t\"good\" : {\r\n\t\t\t\tname : \"Divine Magic: Good\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Cure Wounds, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Good)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"cure wounds\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"eagle\"\r\n\t\t\t},\r\n\t\t\t\"evil\" : {\r\n\t\t\t\tname : \"Divine Magic: Evil\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Inflict Wounds, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Evil)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"inflict wounds\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"bat\"\r\n\t\t\t},\r\n\t\t\t\"law\" : {\r\n\t\t\t\tname : \"Divine Magic: Law\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Bless, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Law)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"bless\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"eagle\"\r\n\t\t\t},\r\n\t\t\t\"chaos\" : {\r\n\t\t\t\tname : \"Divine Magic: Chaos\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Bane, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Chaos)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"bane\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"bat\"\r\n\t\t\t},\r\n\t\t\t\"neutrality\" : {\r\n\t\t\t\tname : \"Divine Magic: Neutrality\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I learn Protection from Evil \\xD7 Good; It doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Neutrality)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"protection from evil and good\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"dragonfly\"\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature14\",\r\n\t\t\t\tchoiceAttribute : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Empowered Healing\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn, when I or an ally in 5 ft roll dice to healing with a spell, I can reroll dice\",\r\n\t\t\t\t\"By spending 1 sorcery point; I can reroll any number of those dice for that spell once\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 sorcery point\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"eagle\", \"bat\", \"dragonfly\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I manifest a pair of spectral eagle wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"bat\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I manifest a pair of spectral bat wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"dragonfly\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I create a pair of spectral dragonfly wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspeed : { fly : { spd : 30, enc : 20 } }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP remaining, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my hit point maximum\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"shadow magic\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*shadow).*$/i,\r\n\tsubname : \"Shadow Magic\",\r\n\tsource : [[\"X\", 50]],\r\n\tfullname : \"Shadow Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain 120 ft darkvision\"),\r\n\t\t\tvision : [[\"Darkvision\", 120]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Strength of the Grave\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When damage reduces me to 0 HP, that isn't radiant damage or a critical hit,\",\r\n\t\t\t\t\"I can make a Charisma save (DC 5 + damage taken) to drop to 1 HP instead\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Darkness\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Darkness, which doesn't count against my number of spells known\",\r\n\t\t\t\t\"I can also cast it by spending 2 sorcery points and then I can see through it normally\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"2 sorcery points\",\r\n\t\t\taction : [[\"action\", \" (2 sorcery points)\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I summon a hound within 30 ft of a creature I see within 120 ft\",\r\n\t\t\t\t\"The hound has all the stats of a dire wolf with the following exceptions:\",\r\n\t\t\t\t\"\\u2022 It is medium size and counts as a monstrosity not a beast\",\r\n\t\t\t\t\"\\u2022 It starts with a number of temporary hit points equal to half my sorcerer level\",\r\n\t\t\t\t\"\\u2022 At the start of its turn, it automatically knows where the (hidden) target is\",\r\n\t\t\t\t\"\\u2022 It can only move towards and make (opportunity) attack against the target\",\r\n\t\t\t\t\"\\u2022 It can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"\\u2022 It takes 5 force damage if it ends its turn inside an object\",\r\n\t\t\t\t\"The target has disadvantage on saves vs. my spells while the hound is within 5 ft of it\",\r\n\t\t\t\t\"It disappears if reduced to 0 HP, if the target is reduced to 0 HP, or after 5 minutes\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : \"3 sorcery points; \" + Math.floor(n/2) + \" temporary HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]],\r\n\t\t\tcreaturesAdd : [[\"Hound of Ill Omen\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\t\tsource : [[\"X\", 51]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Monstrosity\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : 14,\r\n\t\t\t\thp : 37,\r\n\t\t\t\thd : [5, 10],\r\n\t\t\t\tspeed : \"50 ft\",\r\n\t\t\t\tscores : [17, 15, 15, 3, 12, 7],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"perception\" : 3,\r\n\t\t\t\t\t\"stealth\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell;\\nAt the start of each turn, knows where the target is\",\r\n\t\t\t\tpassivePerception : 13,\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [2, 6, \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"Target must succeed on a DC 13 Strength saving throw or be knocked prone\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\t\tdescription : \"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Pack Tactics\",\r\n\t\t\t\t\tdescription : \"The hound has advantage on an attack roll against a creature if at least one of the hound's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Actions\",\r\n\t\t\t\t\tdescription : \"The hound can only move towards its targets and make attacks or opportunity attacks against its target.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Temporary Hit Points\",\r\n\t\t\t\t\tdescription : \"When the hound is summoned, it gains temporary HP equal to half my sorcerer level.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shadowy Form\",\r\n\t\t\t\t\tdescription : \"The hound can move through other creatures and objects as if they were difficult terrain. It takes 5 force damage if it ends its turn inside an object.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sign of Ill Omen\",\r\n\t\t\t\t\tdescription : \"While the hound is within 5 ft of its target, that target has disadvantage on saving throws versus my spells.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Summoned\",\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"The hound of ill omen gains half my sorcerer level as temporary HP when created.\");\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"\");\r\n\t\t\t\t},\r\n\t\t\t\tchangeeval : function (prefix, lvl) {\r\n\t\t\t\t\tif (!classes.known.sorcerer) return;\r\n\t\t\t\t\tValue(prefix + 'Comp.Use.HP.Temp', Math.floor(classes.known.sorcerer.level / 2));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Walk\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can teleport up to 120 ft\",\r\n\t\t\t\t\"The destination has to be unoccupied, within line of sight, and in dim light or darkness\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Umbral Form\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional : \"6 sorcery points\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I transform into a shadow form for 1 minute\",\r\n\t\t\t\t\"While transformed, I have resistance to all damage except force and radiant damage\",\r\n\t\t\t\t\"Also, I can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 5 force damage if I end my turn inside an object\",\r\n\t\t\t\t\"This ends early if I end it as a bonus action, I die, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (6 sorcery points)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Add 2 subclasses for the Warlock\r\nAddSubClass(\"warlock\", \"the celestial\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*celestial).*$/i,\r\n\tsubname : \"the Celestial\",\r\n\tsource : [[\"X\", 54]],\r\n\tspellcastingExtra : [\"cure wounds\", \"guiding bolt\", \"flaming sphere\", \"lesser restoration\", \"daylight\", \"revivify\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"greater restoration\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\tsource : [[\"X\", 54]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I learn the Light and Sacred Flame cantrips, not counting for the number I can know\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"X\", 54]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can heal a creature I can see within 60 ft by expending dice\",\r\n\t\t\t\t\"I can expend up to my Charisma modifier (min 1) of dice from my pool at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain all expended dice on a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return (n + 1) + \"d6 per \"; }),\r\n\t\t\tusagescalc : \"event.value = !classes.known.warlock ? '' : (1 + classes.known.warlock.level) + 'd6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add my Cha modifier once to the fire or radiant damage of cantrips and spells I cast\",\r\n\t\t\t\t\"This bonus only applies to one target; Also, I have resistance to radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage to one target.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\", true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage to one target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Celestial Resilience\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 10 ? \"\" : \"Me: \" + n + \"+Cha mod; Allies: \" + Math.floor(n / 2) + \"+Cha mod\"; })\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn when I would make a death save, I can instead spring back up\",\r\n\t\t\t\t\"I recover HP equal to half my current HP maximum, and can then stand up if I choose\",\r\n\t\t\t\t\"When I do, creatures of my choice within 30 ft take 2d8 + Cha mod in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the hexblade\", { // this code includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?=.*hexblade)(?=.*warlock).*$/i,\r\n\tsubname : \"the Hexblade\",\r\n\tsource : [[\"X\", 55]],\r\n\tspellcastingExtra : [\"shield\", \"wrathful smite\", \"blur\", \"branding smite\", \"blink\", \"elemental weapon\", \"phantasmal killer\", \"staggering smite\", \"banishing smite\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Hexblade's Curse\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can curse a creature I can see within 30 ft of me for 1 minute\",\r\n\t\t\t\t\"\\u2022 I add my proficiency bonus to damage rolls against the cursed target\",\r\n\t\t\t\t\"\\u2022 My attack rolls against the curse target score a critical hit on a roll of 19 and 20\",\r\n\t\t\t\t\"\\u2022 If the target dies while cursed, I regain HP equal to my warlock level + Cha mod\",\r\n\t\t\t\t\"The curse ends after 1 minute, when the target dies, I die, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && /curse/i.test(v.WeaponTextName) && !v.CritChance) {\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Curse' in the name of a weapon, the automation will treat the attack as being against a target of the Hexblade's Curse: adding my proficiency bonus to the damage and adding the increased chance of a critical hit to the description.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/curse/i).test(v.WeaponTextName)) output.extraDmg += output.prof;\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hex Warrior\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor, shields, and martial weapons\",\r\n\t\t\t\t\"When I finish a long rest, I can imbue one weapon I touch with my will\",\r\n\t\t\t\t\"Until my next long rest, I can use it with Charisma instead of Strength or Dexterity\",\r\n\t\t\t\t\"I have to be proficient with the weapon and it can't have the two-handed property\",\r\n\t\t\t\t\"This benefit also works with every weapon from Pact of the Blade, with no restriction\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (What('Cha Mod') > What(AbilityScores.abbreviations[fields.Mod - 1] + ' Mod') && (v.pactWeapon || v.theWea.pactWeapon || /^(?=.*hexblade)(?!.*((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b).*$/i.test(v.WeaponText))) {\r\n\t\t\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Hexblade' in the name of a weapon that is not two-handed, it gets treated as the weapon I imbued to use Charisma instead of Strength or Dexterity, if my Charisma modifier is higher than the ability it would otherwise use. Alternatively, if I have the Pact of the Blade feature, this will also work for any weapons set to be my Pact Weapon.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Accursed Specter\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I slay a humanoid, I can curse its soul and have it rise as a specter from its corpse\",\r\n\t\t\t\t\"It has the stats of a specter with temporary hit points equal to half my warlock level\",\r\n\t\t\t\t\"It rolls initiative and has its own turns, obeying my verbal commands\",\r\n\t\t\t\t\"It gains a bonus to attack rolls equal to my Charisma modifier (min +0)\",\r\n\t\t\t\t\"The specter remains until the end of my next long rest, at which point it vanishes\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) { return n < 6 ? \"\" : Math.floor(n/2) + \" temp HP\"; }),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcreaturesAdd : [[\"Accursed Specter\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Accursed Specter\",\r\n\t\t\t\tnameAlt : [\"Accursed Spectre\"],\r\n\t\t\t\tsource : [[\"X\", 56]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Undead\",\r\n\t\t\t\talignment : \"Chaotic Evil\",\r\n\t\t\t\tac : 12,\r\n\t\t\t\thp : 22,\r\n\t\t\t\thd : [5, 8],\r\n\t\t\t\tspeed : \"fly 50 ft (hover)\",\r\n\t\t\t\tscores : [1, 14, 11, 10, 10, 12],\r\n\t\t\t\tdamage_resistances : \"acid; cold; fire; lightning; thunder; bludgeoning, piercing, and slashing from nonmagical weapons\",\r\n\t\t\t\tdamage_immunities : \"necrotic, poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft; While in sunlight, disadv. on Wis (Perception) checks using sight\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tlanguages : \"all languages it knew in life, but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Life Drain\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [3, 6, \"necrotic\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"DC 10 Con save or HP max reduced by same as damage taken until a long rest\",\r\n\t\t\t\t\tmodifiers : [\"max(oCha|0)\", \"\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"A target of the specter's life drain must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Incorporeal Movement\",\r\n\t\t\t\t\tdescription : \"The specter can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sunlight Sensitivity\",\r\n\t\t\t\t\tdescription : \"While in sunlight, the specter has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Life Drain\",\r\n\t\t\t\t\tdescription : \"A target of the specter's life drain must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Bound Spirit\",\r\n\t\t\t\t\tdescription : \"The specter obeys my verbal commands and remains in my service until the end of my next long rest, at which point it vanishes to the afterlife. It acts on its own turn with its own initiative.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Bound Spirit\",\r\n\t\t\t\teval : function(prefix) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"The accursed specter gains half my warlock level as temporary HP when created.\");\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function(prefix) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"\");\r\n\t\t\t\t},\r\n\t\t\t\tchangeeval : function (prefix, newLvl) {\r\n\t\t\t\t\tif (!classes.known.warlock) return;\r\n\t\t\t\t\tValue(prefix + 'Comp.Use.HP.Temp', Math.floor(classes.known.warlock.level / 2));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Armor of Hexes\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a Hexblade's Curse recipient hits me with an attack, I can roll a d6\",\r\n\t\t\t\t\"On a result of 4 or higher, the attacks misses me instead, regardless of its d20 roll\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Hexes\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When the target of my Hexblade's Curse dies, I can curse another I can see within 30 ft\",\r\n\t\t\t\t\"I can't do this while incapacitated and I don't regain HP from the death of the previous\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add Warlock Invocations\r\nAddWarlockInvocation(\"Aspect of the Moon (prereq: Pact of the Tome)\", {\r\n\tname : \"Aspect of the Moon\",\r\n\tdescription : desc(\"I don't need sleep nor can be forced to by any means; I can rest while doing light activity\"),\r\n\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome'; },\r\n\tsavetxt : { text : [\"Nothing can force me to sleep\"] }\r\n});\r\nAddWarlockInvocation(\"Cloak of Flies (prereq: level 5 warlock)\", {\r\n\tname : \"Cloak of Flies\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can surround myself with a 5-ft radius magical aura of buzzing flies\",\r\n\t\t\"It lasts until I'm incapacitated or dismiss it as a bonus action; Total cover block the aura\",\r\n\t\t\"The aura grants me adv. on Cha (Intimidation), but disadv. on all other Cha checks\",\r\n\t\t\"Creatures starting their turn in the aura take my Cha mod (min 0) in poison damage\"\r\n\t]),\r\n\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"bonus action\", \" (start/stop)\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Smite (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Eldritch Smite\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when I hit a creature with my pact weapon, I can empower the strike\",\r\n\t\t\"By expending a warlock spell slot, the creature takes extra damage and is knocked prone\",\r\n\t\t\"It takes 1d8 force damage and another 1d8 force damage per level of the spell slot\",\r\n\t\t\"The target is only knocked prone if it is Huge or smaller\"\r\n\t]),\r\n\tsource : [[\"X\", 56]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; }\r\n});\r\nAddWarlockInvocation(\"Ghostly Gaze (prereq: level 7 warlock)\", {\r\n\tname : \"Ghostly Gaze\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can gain darkvision, and the ability to see through solid objects, out to 30 ft\",\r\n\t\t\"Objects appear ghostly to me; This lasts up to 1 minute, while I'm concentrating on this\"\r\n\t]),\r\n\tsource : [[\"X\", 56]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Gift of the Depths (prereq: level 5 warlock)\", {\r\n\tname : \"Gift of the Depths\",\r\n\tdescription : desc([\r\n\t\t\"I can breathe underwater and I have a swim speed equal to my walking speed\",\r\n\t\t\"Once per long rest, I can cast Water Breathing without using a spell slot (PHB 287)\"\r\n\t]),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Gift of the Depths\",\r\n\t\tspells : [\"water breathing\"],\r\n\t\tselection : [\"water breathing\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n});\r\nAddWarlockInvocation(\"Gift of the Ever-Living Ones (prereq: Pact of the Chain)\", {\r\n\tname : \"Gift of the Ever-Living Ones\",\r\n\tdescription : desc(\"When I regain HP while my familiar is within 100 ft, I regain the max the dice can roll\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain'; }\r\n});\r\nAddWarlockInvocation(\"Grasp of Hadar (prereq: Eldritch Blast cantrip)\", {\r\n\tname : \"Grasp of Hadar\",\r\n\tdescription : desc(\"Once per turn when my Eldritch Blast hits a creature, I can move it 10 ft closer to me\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target moved 10 ft to me';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can move it in a straight line 10 ft closer to me.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"I can use any pact weapon I create as my spellcasting focus for warlock spells\",\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a +1 magic weapon\",\r\n\t\t\"I can now also conjure a shortbow, longbow, or light or heavy crossbow as my pact weapon\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif ((/^(shortbow|longbow|light crossbow|heavy crossbow)$/).test(v.baseWeaponName) && (/\\bpact\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t}\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tif (v.pactWeapon && !output.magic) {\r\n\t\t\t\t\tvar bContinue = true;\r\n\t\t\t\t\t// Now test if this isn't a weaponOptions addition with a static + bonus set to the modifier fields\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon && v.theWea.modifiers) {\r\n\t\t\t\t\t\t// Test the first two modifiers to see if both offer a +1 or more. Returns `true` if one contains no numbers or is less than the improved pact weapon bonus\r\n\t\t\t\t\t\tvar bContinue = v.theWea.modifiers.slice(0, 2).some(function (n) {\r\n\t\t\t\t\t\t\tif (!n || !/\\d/.test(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = 0;\r\n\t\t\t\t\t\t\t} else if (isNaN(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = n.match(/(^|\\+|-)\\d+\\b/g);\r\n\t\t\t\t\t\t\t\tnmbr = !nmbr ? 0 : nmbr.reduce(function(a, b) {return Number(a) + Number(b)});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar nmbr = Number(n);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn nmbr < 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if the continue boolean wasn't set to false, we can proceed\r\n\t\t\t\t\tif (bContinue) {\r\n\t\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the word 'Pact' in a the name of a melee weapon, shortbow, longbow, light crossbow, or heavy crossbow, it will be treated as my Pact Weapon.\\n \\u2022 If my Pact Weapon doesn't already include a magical bonus in its name and is not a magic weapon with at least a +1 bonus, the calculation will add +1 to its To Hit and Damage.\",\r\n\t\t\t290\r\n\t\t],\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/^(shortbow|longbow|light crossbow|heavy crossbow)$/).test(v.baseWeaponName) && (/\\bpact\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t};\r\n\t\t\t}, \"\", 90]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Lance of Lethargy (prereq: Eldritch Blast cantrip)\", {\r\n\tname : \"Lance of Lethargy\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when my Eldritch Blast hits a creature, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; 1 target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"Once on each of my turns when I hit a creature with my Eldritch Blast cantrip, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Maddening Hex (prereq: level 5 warlock, Hex spell or warlock feature that curses)\", {\r\n\tname : \"Maddening Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I cause pain around a target hexed by me that I can see within 30 ft\",\r\n\t\t\"It and any of my choice I can see in 5 ft of it take my Cha mod (min 1) in psychic damage\",\r\n\t\t\"The Hex spell and all of my warlock features that curse are considered a hex for this\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Hex spell or warlock feature that curses]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && (isSpellUsed('hex', true) || (/hexblade/).test(classes.known.warlock.subclass)); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 7 warlock, Hex spell or warlock feature that curses)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport to a target hexed by me that I can see within 30 ft\",\r\n\t\t\"I teleport up to 30 ft to an unoccupied space that I can see within 5 ft of the target\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Hex spell or warlock feature that curses]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7 && (isSpellUsed('hex', true) || (/hexblade/).test(classes.known.warlock.subclass)); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Shroud of Shadow (prereq: level 15 warlock)\", {\r\n\tname : \"Shroud of Shadow\",\r\n\tdescription : desc(\"I can cast Invisibility at will, without using spell slots (PHB 254)\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level 15+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shroud of Shadow\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 15; },\r\n\tspellChanges : {\r\n\t\t\"invisibility\" : {\r\n\t\t\tdescription : \"1 crea invisible; attacking/casting makes the crea visible; anything worn/carried also invisible\",\r\n\t\t\tchanges : \"With the Shroud of Shadow invocation I can cast Invisibility at will, but when I do so I am unable to cast it using a higher level spell slot.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Tomb of Levistus (prereq: level 5 warlock)\", {\r\n\tname : \"Tomb of Levistus\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when I take damage, I can entomb myself in ice until the end of my turn\",\r\n\t\t\"During, I get 10 temp. HP per warlock level, which I use to absorb the triggering damage\",\r\n\t\t\"After, till the ice is gone, I also get vulnerability to fire, 0 speed, and am incapacitated\"\r\n\t]),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tadditional : levels.map( function(n) { return (n * 10) + \" temp HP\"; })\r\n});\r\nAddWarlockInvocation(\"Trickster's Escape (prereq: level 7 warlock)\", {\r\n\tname : \"Trickster's Escape\",\r\n\tdescription : desc(\"Once per long rest, I can cast Freedom of Movement on myself without using a spell slot\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 7]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Trickster's Escape\",\r\n\t\tspells : [\"freedom of movement\"],\r\n\t\tselection : [\"freedom of movement\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\tspellChanges : {\r\n\t\t\"freedom of movement\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tdescription : \"Magic can't reduce my speed, paralyze or restrain me; I can use 5 ft to escape nonmagical restrains\",\r\n\t\t\tchanges : \"With the Trickster's Escape invocation I can cast Freedom of Movement, but only on myself.\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 1 subclass for the Wizard\r\nAddSubClass(\"wizard\", \"war magic\", {\r\n\tregExpSearch : /^(?=.*war)(?=.*(wizard|magic|mage)).*$/i,\r\n\tsubname : \"War Magic\",\r\n\tfullname : \"War Mage\",\r\n\tsource : [[\"X\", 59]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : { //has to be identical to a feature named in the ClassList\r\n\t\t\tname : \"Arcane Deflection\",\r\n\t\t\tsource : [[\"X\", 59]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I'm hit by an attack, I can gain +2 to my AC against that attack\",\r\n\t\t\t\t\"As a reaction when I fail a save, I can gain +4 bonus to that saving throw\",\r\n\t\t\t\t\"After I do either, I can't cast spells other than cantrips until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Tactical Wit\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Power Surge\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of stored power surges that I can use to empower my damaging spells\",\r\n\t\t\t\t\"I gain a power surge whenever I successfully end a spell with Dispel Magic or Counterspell\",\r\n\t\t\t\t\"This pool can store a number of power surges equal to my Intelligence modifier (min 1)\",\r\n\t\t\t\t\"It resets to 1 power surge after a long rest or when I have 0 surges left after a short rest\",\r\n\t\t\t\t\"When I deal damage with a wizard spell, I can spend a power surge to do extra damage\",\r\n\t\t\t\t\"One target takes half my wizard level in force damage; I can do this only once per turn\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Resets to 1 after \",\r\n\t\t\tusagescalc : \"event.value = !event.value || event.value == 'Resets to 1 after ' ? 1 : event.value;\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 6 ? \"\" : \"+\" + Math.floor(n/2) + \" force damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Durable Magic\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"While I'm maintaining concentration on a spell, I gain +2 to AC and all saving throws\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Deflecting Shroud\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my Arcane Deflection feature, magical energy arcs from me to creatures\",\r\n\t\t\t\t\"Up to 3 targets I can see within 60 ft of me take half my wizard level in force damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) { return n < 14 ? \"\" : Math.floor(n/2) + \" force damage\"; })\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add feats\r\nFeatsList[\"bountiful luck\"] = {\r\n\tname : \"Bountiful Luck\",\r\n\tsource : [[\"X\", 73]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Your people have extraordinary luck, which you have learned to mystically lend to your companions when you see them falter. You're not sure how you do it; you just wish it, and it happens. Surely a sign of fortune's favor!\\n   When an ally you can see within 30 feet of you rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, you can use your reaction to let the ally reroll the die. The ally must use the new roll\\n   When you use this ability, you can't use your Lucky racial trait before the end of your next turn.\",\r\n\tdescription : \"When an ally I can see within 30 ft of me rolls a 1 on an attack roll, an ability check, or a saving throw, I can use my reaction to let the ally reroll the die. The ally must use the new roll. When I use this, I can't use my racial Lucky trait until the end of my next turn.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"dragon fear\"] = {\r\n\tname : \"Dragon Fear\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"When angered, you radiate menace. You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Instead of exhaling destructive energy, you can expend a use of your Breath Weapon trait to roar, forcing each creature of your choice within 30 feet of you to make a Wisdom saving throw (DC 8 + your proficiency bonus + your Charisma modifier). A target automatically succeeds on the save if it can't hear or see you. On a failed save, a target becomes frightened of you for 1 minute. If the frightened target takes any damage, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tcalculate : \"event.value = 'I can use my Breath Weapon to roar instead. Chosen creatures within 30 ft that see and hear me must make a DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' Wis save (8 + Prof Bonus + Cha mod) or be frightened of me for 1 min. A target can repeat the save whenever it takes damage. [+1 Str, Con, or Cha]';\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Charisma\",\r\n\taction : [['action', 'Breath Weapon or Dragon Fear', 'Breath Weapon']]\r\n};\r\nFeatsList[\"dragon hide\"] = {\r\n\tname : \"Dragon Hide\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You manifest scales and claws reminiscent of your draconic ancestors. You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Your scales harden. While you aren't wearing armor, you can calculate your AC as 13 + your Dexterity modifier. You can use a shield and still gain this benefit.\\n \\u2022 You grow retractable claws from the tips of your fingers. Extending or retracting the claws requires no action. The claws are natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal slashing damage equal to 1d4 + your Strength modifier, instead of the normal bludgeoning damage for an unarmed strike.\",\r\n\tdescription : \"I gain retractable claws that I can retract or extend, requiring no action. While extended, my unarmed strikes deal 1d4 slashing damage. My scales harden, giving me an AC of 13 + Dexterity modifier + shield when I'm not wearing armor. [+1 Str, Con, or Cha]\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Charisma\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(retractable|dragon))(?=.*claw).*$/i,\r\n\t\tname : \"Retractable Claws\",\r\n\t\tsource : [[\"X\", 74]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*(dragon|draconic|scaly))(?=.*(hide|skin|scales|resilience)).*$/i,\r\n\t\tname : \"Dragon Hide\",\r\n\t\tsource : [[\"X\", 74]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nFeatsList[\"drow high magic\"] = {\r\n\tname : \"Drow High Magic\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Drow (Dark Elf)\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dark elf') !== -1; },\r\n\tdescriptionFull : \"You learn more of the magic typical of dark elves. You learn the Detect Magic spell and can cast it at will, without expending a spell slot. You also learn Levitate and Dispel Magic, each of which you can cast once without expending a spell slot. You regain the ability to cast those two spells in this way when you finish a long rest. Charisma is your spellcasting ability for all three spells.\",\r\n\tdescription : \"I can cast Detect Magic at will, without expending a spell slot. I can also cast Levitate and Dispel Magic without expending a spell slot, but each only once per long rest. Charisma is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"dispel magic\"],\r\n\t\tselection : [\"dispel magic\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dwarven fortitude\"] = {\r\n\tname : \"Dwarven Fortitude\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have the blood of dwarf heroes flowing through your veins. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 Whenever you take the Dodge action in combat, you can spend one Hit Die to heal yourself. Roll the die, add your Constitution modifier, and regain a number of hit points equal to the total (minimum of 1).\",\r\n\tdescription : \"Whenever I take the Dodge action in combat, I can spend one Hit Die to heal myself. I roll the die, add my Constitution modifier, and regain a number of hit points equal to the total (minimum of 1). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elven accuracy\"] = {\r\n\tname : \"Elven Accuracy\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being an Elf or a Half-Elf\",\r\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"The accuracy of elves is legendary, especially that of elf archers and spellcasters. You have uncanny aim with attacks that rely on precision rather than brute force. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Whenever you have advantage on an attack roll using Dexterity, Intelligence, Wisdom, or Charisma, you can reroll one of the dice once.\",\r\n\tdescription : \"Whenever I have advantage on an attack roll that uses Dexterity, Intelligence, Wisdom, or Charisma, I can reroll one of the dice once. [+1 Dexterity, Intelligence, Wisdom, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Intelligence, Wisdom, or Charisma\"\r\n};\r\nFeatsList[\"fade away\"] = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('gnome') !== -1; },\r\n\tdescriptionFull : \"Your people are clever, with a knack for illusion magic. You have learned a magical trick for fading away when you suffer harm. You gain the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 Immediately after you take damage, you can use a reaction to magically become invisible until the end of your next turn or until you attack, deal damage, or force someone to make a saving throw. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"As a reaction when I take damage, I can magically become invisible until the end of my next turn or until I attack, deal damage, or force someone to make a saving throw. Once I do this, I can't do so again until I finish a short rest. [+1 Dexterity or Intelligence]\",\r\n\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"fey teleportation\"] = { // this code includes contributions by SoilentBrad\r\n\tname : \"Fey Teleportation\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a High Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('high elf') !== -1; },\r\n\tdescriptionFull : \"Your study of high elven lore has unlocked fey power that few other elves possess, except your eladrin cousins. Drawing on your fey ancestry, you can momentarily stride through the Feywild to shorten your path from one place to another. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn to speak, read, and write Sylvan.\\n \\u2022 You learn the Misty Step spell and can cast it once without expending a spell slot. You regain the ability to cast it in this way when you finish a short or long rest. Intelligence is your spellcasting ability for this spell.\",\r\n\tdescription : \"I can cast Misty Step without using a spell slot. I can do so once per short rest. Intelligence is my spellcasting ability for this spell. I also learn to speak, read, and write Sylvan. [+1 Intelligence or Charisma]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per short rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 'oncesr'\r\n\t}],\r\n\tlanguageProfs : [\"Sylvan\"],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"flames of phlegethos\"] = {\r\n\tname : \"Flames of Phlegethos\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"You learn to call on hellfire to serve your commands. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 When you roll fire damage for a spell you cast, you can reroll any roll of 1 on the fire damage dice, but you must use the new roll, even if it is another 1.\\n \\u2022 Whenever you cast a spell that deals fire damage, you can cause flames to wreathe you until the end of your next turn. The flames don't harm you or your possessions, and they shed bright light out to 30 feet and dim light for an additional 30 feet. While the flames are present, any creature within 5 feet of you that hits you with a melee attack takes 1d4 fire damage.\",\r\n\tdescription : \"When I cast a fire damage spell, I can reroll any 1 on fire damage dice once. I then sheathe myself in flame until my next turn ends. These shed bright light in 30 ft, dim light in 30 ft and cause any within 5 ft that hit me in melee to take 1d4 fire damage. [+1 Int or Cha]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\"\t\r\n};\r\nFeatsList[\"infernal constitution\"] = {\r\n\tname : \"Infernal Constitution\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"Fiendish blood runs strong in you, unlocking a resilience akin to that possessed by some fiends. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You have resistance to cold and poison damage.\\n \\u2022 You have advantage on saving throws against being poisoned.\",\r\n\tdescription : \"I have resistance to cold and poison damage and I have advantage on saving throws against being poisoned.\\n[+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tdmgres : [\"Cold\", \"Poison\"],\r\n\tsavetxt : { adv_vs : [\"poison\"] }\r\n};\r\nFeatsList[\"orcish fury\"] = {\r\n\tname : \"Orcish Fury\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"Your fury burns tirelessly. You gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 When you hit with an attack using a simple or martial weapon, you can roll one of the weapon's damage dice an additional time and add it as extra damage of the weapon's damage type. Once you use this ability, you can't use it again until you finish a short or long rest.\\n \\u2022 Immediately after you use your Relentless Endurance trait, you can use your reaction to make one weapon attack.\",\r\n\tdescription : \"Once per short rest, I can roll an extra damage die for an attack with a simple or martial weapon. In addition, Immediately after I use my Relentless Endurance trait, I can use my reaction to make one weapon attack. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : [[\"reaction\", \" (after Relentless Endurance)\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"extra damage\"\r\n};\r\nFeatsList[\"prodigy\"] = {\r\n\tname : \"Prodigy\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Half-Elf, Half-Orc, or Human\",\r\n\tprereqeval : function(v) { return (/human|^(?=.*half)(?=.*(elf|orc)).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 You gain one skill proficiency of your choice, one tool proficiency of your choice, and fluency in one language of your choice.\\n \\u2022 Choose one skill in which you have proficiency. You gain expertise with that skill, which means your proficiency bonus is doubled for any ability check you make with it. The skill you choose must be one that isn't already benefiting from a feature, such as Expertise, that doubles your proficiency bonus.\",\r\n\tdescription : \"I gain proficiency with one skill of my choice and expertise with it, or expertise with another skill of my choice that I'm already proficient with. I also gain proficiency with one tool of my choice and fluency in one language of my choice.\",\r\n\tskillstxt : \"Proficiency with any one skill and Expertise with any one skill that you are already proficient with\",\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n};\r\nFeatsList[\"second chance\"] = {\r\n\tname : \"Second Chance\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Fortune favors you when someone tries to strike you. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 When a creature you can see hits you with an attack roll, you can use your reaction to force that creature to reroll. Once you use this ability, you can't use it again until you roll initiative at the start of combat or until you finish a short or long rest.\",\r\n\tdescription : \"When a creature I can see hits me with an attack roll, I can use my reaction to force that creature to reroll. Once I use this ability, I can't do so again until I roll initiative at the start of combat or I finish a short rest. [+1 Dexterity, Constitution, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"Combat\"\r\n};\r\nFeatsList[\"squat nimbleness\"] = {\r\n\tname : \"Squat Nimbleness\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Dwarf or a small race\",\r\n\tprereqeval : function(v) { return (/dwarf/i).test(CurrentRace.known) || tDoc.getField('Size Category').currentValueIndices === 4; },\r\n\tdescriptionFull : \"You are uncommonly nimble for your race. You gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 Increase your walking speed by 5 feet.\\n \\u2022 You gain proficiency in the Acrobatics or Athletics skill (your choice).\\n \\u2022 You have advantage on any Strength (Athletics) or Dexterity (Acrobatics) check you make to escape from being grappled.\",\r\n\tdescription : \"My walking speed increases by 5 ft. I gain proficiency in either the Acrobatics or the Athletics skill. I have advantage on Dexterity (Acrobatics) and Strength (Athletics) checks I make to escape from being grappled. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tskillstxt : \"Acrobatics or Athletics\",\r\n\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } }\r\n};\r\nFeatsList[\"wood elf magic\"] = {\r\n\tname : \"Wood Elf Magic\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Wood Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('wood elf') !== -1; },\r\n\tdescriptionFull : \"You learn the magic of the primeval woods, which are revered and protected by your people. You learn one druid cantrip of your choice. You also learn the Longstrider and Pass Without Trace spells, each of which you can cast once without expending a spell slot. You regain the ability to cast these two spells in this way when you finish a long rest. Wisdom is your spellcasting ability for all three spells.\",\r\n\tdescription : \"I learn a druid cantrip. In addition, I can cast Longstrider and Pass Without Trace, without expending a spell slot, but each only once per long rest. Wisdom is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druid Cantrip\",\r\n\t\tspellcastingAbility : 5,\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"longstrider\"],\r\n\t\tselection : [\"longstrider\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"pass without trace\"],\r\n\t\tselection : [\"pass without trace\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\r\n// Then add the new spells from XGtE (contains contributions by SoilentBrad)\r\nSpellsList[\"catnap\"] = {\r\n\tname : \"Catnap\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A pinch of sand\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"3+1/SL willing crea unconscious for 10 min to gain benefits of short rest; Ends if dmg or 1 a to wake\",\r\n\tdescriptionFull : \"You make a calming gesture, and up to three willing creatures of your choice that you can see within range fall unconscious for the spell's duration. The spell ends on a target early if it takes damage or someone uses an action to shake or slap it awake. If a target remains unconscious for the full duration, that target gains the benefit of a short rest, and it can't be affected by this spell again until it finishes a long rest.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional willing creature for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"cause fear\"] = {\r\n\tname : \"Cause Fear\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1+1/SL crea (not construct/undead), each max 30 ft apart, save or frightened; save end of each turn\",\r\n\tdescriptionFull : \"You awaken the sense of mortality in one creature you can see within range. A construct or an undead is immune to this effect. The target must succeed on a Wisdom saving throw or become frightened of you until the spell ends. The frightened target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, you can target one additional creature for each slot level above 1st. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"ceremony\"] = {\r\n\tname : \"Ceremony\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"X\", 151]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"25 gp worth of powdered silver, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Perform religious ceremony on target(s) within 10 ft throughout the casting; see book (25gp cons.)\",\r\n\tdescriptionFull : \"You perform a special religious ceremony that is infused with magic. When you cast the spell, choose one of the following rites, the target of which must be within 10 feet of you throughout the casting.\" + \"\\n   \" + toUni(\"Atonement\") + \": You touch one willing creature whose alignment has changed, and you make a DC 20 Wisdom (Insight) check. On a successful check, you restore the target to its original alignment.\" + \"\\n   \" + toUni(\"Bless Water\") + \": You touch one vial of water and cause it to become holy water.\" + \"\\n   \" + toUni(\"Coming of Age\") + \": You touch one humanoid who is a young adult. For the next 24 hours, whenever the target makes an ability check, it can roll a d4 and add the number rolled to the ability check. A creature can benefit from this rite only once.\" + \"\\n   \" + toUni(\"Dedication\") + \": You touch one humanoid who wishes to be dedicated to your god's service. For the next 24 hours, whenever the target makes a saving throw, it can roll a d4 and add the number rolled to the save. A creature can benefit from this rite only once.\" + \"\\n   \" + toUni(\"Funeral Rite\") + \": You touch one corpse, and for the next 7 days, the target can't become undead by any means short of a wish spell.\" + \"\\n   \" + toUni(\"Wedding\") + \": You touch adult humanoids willing to be bonded together in marriage. For the next 7 days, each target gains a +2 bonus to AC while they are within 30 feet of each other. A creature can benefit from this rite again only if widowed.\"\r\n};\r\nSpellsList[\"chaos bolt\"] = {\r\n\tname : \"Chaos Bolt\",\r\n\tclasses : [\"sorcerer\"],\r\n\tsource : [[\"X\", 151], [\"G\", 67]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft\",\r\n\tdescriptionShorter : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set type, see B; double on d8s: new atk vs. crea in 30 ft\",\r\n\tdescriptionFull : \"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 + 1d6 damage. Choose one of the d8s. The number rolled on that die determines the attack's damage type, as shown below.\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Damage Type\") + \"\\n  1\\tAcid\" + \"\\n  2\\tCold\" + \"\\n  3\\tFire\" + \"\\n  4\\tForce\" + \"\\n  5\\tLightning\" + \"\\n  6\\tPoison\" + \"\\n  7\\tPsychic\" + \"\\n  8\\tThunder\" + \"\\n\\n   \" + \"If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\" + \"\\n   \" + \"A creature can be targeted only once by each casting of this spell.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, each target takes 1d6 extra damage of the type rolled for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"force\", \"lightning\", \"poison\", \"psychic\", \"thunder\"],\r\n\t\t\tinDescriptionAs : ''\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"charm monster\"] = {\r\n\tname : \"Charm Monster\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1+1/SL creatures, each max 30 ft apart, save or charmed; adv. on save if me/ally is fighting it\",\r\n\tdescriptionFull : \"You attempt to charm a creature you can see within range. It must make a Wisdom saving throw, and it does so with advantage if you or your companions are fighting it. If it fails the saving throw, it is charmed by you until the spell ends or until you or your companions do anything harmful to it. The charmed creature is friendly to you. When the spell ends, the creature knows it was charmed by you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"create homunculus\"] = {\r\n\tname : \"Create Homunculus\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 152]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Clay, ash, and mandrake root, all of which the spell consumes, and a jewel-encrusted dagger worth at least 1,000 gp\", \r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I take 2d4 piercing dmg to create a homunculus as my faithful companion; see book (1000gp)\",\r\n\tdescriptionFull : \"While speaking an intricate incantation, you cut yourself with a jewel-encrusted dagger, taking 2d4 piercing damage that can't be reduced in any way. You then drip your blood on the spell's other components and touch them, transforming them into a special construct called a homunculus.\" + \"\\n   \" + \"The statistics of the homunculus are in the Monster Manual. It is your faithful companion, and it dies if you die. Whenever you finish a long rest, you can spend up to half your Hit Dice if the homunculus is on the same plane of existence as you. When you do so, roll each die and add your Constitution modifier to it. Your hit point maximum is reduced by the total, and the homunculus's hit point maximum and current hit points are both increased by it. This process can reduce you to no lower than 1 hit point, and the change to your and the homunculus's hit points ends when you finish your next long rest. The reduction to your hit point maximum can't be removed by any means before then, except by the homunculus's death.\" + \"\\n   \" + \"You can have only one homunculus at a time. If you cast this spell while your homunculus lives, the spell fails.\",\r\n\tdynamicDamageBonus : { doNotProcess : true } // You don't want to do yourself more damage do you?\r\n};\r\nSpellsList[\"crown of stars\"] = {\r\n\tname : \"Crown of Stars\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 152]],\r\n\tlevel : 7,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"7+2/SL motes shed 30-ft light; bonus action to fire one as 120 ft ranged atk for 4d12 Radiant dmg\",\r\n\tdescriptionShorter : \"7+2/SL motes shed 30-ft light; bns a to fire one as 120 ft ranged atk for 4d12 Radiant dmg\",\r\n\tdescriptionFull : \"Seven star-like motes of light appear and orbit your head until the spell ends. You can use a bonus action to send one of the motes streaking toward one creature or object within 120 feet of you. When you do so, make a ranged spell attack. On a hit, the target takes 4d12 radiant damage. Whether you hit or miss, the mote is expended. The spell ends early if you expend the last mote.\" + \"\\n   \" + \"If you have four or more motes remaining, they shed bright light in a 30-foot radius and dim light for an additional 30 feet. If you have one to three motes remaining, they shed dim light in a 30-foot radius.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 8th level or higher, the number of motes created increases by two for each slot level above 7th.\"\r\n};\r\nSpellsList[\"danse macabre\"] = {\r\n\tname : \"Danse Macabre\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 153]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"5+2/SL small/medium corpses as zombie/skeleton; spellc. mod to atk/dmg; bns a command in 60 ft\",\r\n\tdescriptionFull : \"Threads of dark power leap from your fingers to pierce up to five Small or Medium corpses you can see within range. Each corpse immediately stands up and becomes undead. You decide whether it is a zombie or a skeleton (the statistics for zombies and skeletons are in the Monster Manual), and it gains a bonus to its attack and damage rolls equal to your spellcasting ability modifier.\" + \"\\n   \" + \"You can use a bonus action to mentally command the creatures you make with this spell, issuing the same command to all of them. To receive the command, a creature must be within 60 feet of you. You decide what action the creatures will take and where they will move during their next turn, or you can issue a general command, such as to guard a chamber or passageway against your foes. If you issue no commands, the creatures do nothing except defend themselves against hostile creatures. Once given an order, the creatures continue to follow it until their task is complete.\" + \"\\n   \" + \"The creatures are under your control until the spell ends, after which they become inanimate once more\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, you animate up to two additional corpses for each slot level above 5th.\"\r\n};\r\nSpellsList[\"dawn\"] = {\r\n\tname : \"Dawn\",\r\n\tclasses : [\"cleric\", \"wizard\"],\r\n\tsource : [[\"X\", 153]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A sunburst pendant worth at least 100 gp\", \r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft rad 40-ft high all crea 4d10 Radiant dmg at cast/end turn; bns a move it 60 ft (100gp)\",\r\n\tdescriptionFull : \"The light of dawn shines down on a location you specify within range. Until the spell ends, a 30-foot-radius, 40-foot-high cylinder of bright light glimmers there. This light is sunlight.\" + \"\\n   \" + \"When the cylinder appears, each creature in it must make a Constitution saving throw, taking 4d10 radiant damage on a failed save, or half as much damage on a successful one. A creature must also make this saving throw whenever it ends its turn in the cylinder.\" + \"\\n   \" + \"If you're within 60 feet of the cylinder, you can move it up to 60 feet as a bonus action on your turn.\"\r\n};\r\nSpellsList[\"dragon's breath\"] = {\r\n\tname : \"Dragon's Breath\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 154]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A hot pepper\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 willing crea: 1 a breathe 15-ft cone all 3d6+1d6/SL Acid/Cold/Fire/Lightn./Poison dmg; save half\",\r\n\tdescriptionShorter : \"1 willing crea: 1 a 15-ft cone 3d6+1d6/SL Acid/Cold/Fire/Lightn/Poison dmg; save half\",\r\n\tdescriptionFull : \"You touch one willing creature and imbue it with the power to spew magical energy from its mouth, provided it has one. Choose acid, cold, fire, lightning, or poison. Until the spell ends, the creature can use an action to exhale energy of the chosen type in a 15-foot cone. Each creature in that area must make a Dexterity saving throw, taking 3d6 damage of the chosen type on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot level above 2nd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"poison\"],\r\n\t\t\tinDescriptionAs : \"Acid/Cold/Fire/Lightn.?/Poison\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"druid grove\"] = {\r\n\tname : \"Druid Grove\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 154]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"10 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Mistletoe, which the spell consumes, that was harvested with a golden sickle under the light of a full moon\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Protect 30-ft to 90-ft cube outdoors or underground; see book for effects\",\r\n\tdescriptionFull : \"You invoke the spirits of nature to protect an area outdoors or underground. The area can be as small as a 30-foot cube or as large as a 90-foot cube. Buildings and other structures are excluded from the affected area. If you cast this spell in the same area every day for a year, the spell lasts until dispelled.\" + \"\\n   \" + \"The spell creates the following effects within the area. When you cast this spell, you can specify creatures as friends who are immune to the effects. You can also specify a password that, when spoken aloud, makes the speaker immune to these effects.\" + \"\\n   \" + \"The entire warded area radiates magic. A dispel magic cast on the area, if successful, removes only one of the following effects, not the entire area. That spell's caster chooses which effect to end. Only when all its effects are gone is this spell dispelled.\" + \"\\n   \" + toUni(\"Solid Fog\") + \": You can fill any number of 5-foot squares on the ground with thick fog, making them heavily obscured. The fog reaches 10 feet high. In addition, every foot of movement through the fog costs 2 extra feet. To a creature immune to this effect, the fog obscures nothing and looks like soft mist, with motes of green light floating in the air.\" + \"\\n   \" + toUni(\"Grasping Undergrowth\") + \": You can fill any number of 5-foot squares on the ground that aren't filled with fog with grasping weeds and vines, as if they were affected by an entangle spell. To a creature immune to this effect, the weeds and vines feel soft and reshape themselves to serve as temporary seats or beds.\" + \"\\n   \" + toUni(\"Grove Guardians\") + \": You can animate up to four trees in the area, causing them to uproot themselves from the ground. These trees have the same statistics as an awakened tree, which appears in the Monster Manual, except they can't speak, and their bark is covered with druidic symbols. If any creature not immune to this effect enters the warded area, the grove guardians fight until they have driven off or slain the intruders. The grove guardians also obey your spoken commands (no action required by you) that you issue while in the area. If you don't give them commands and no intruders are present, the grove guardians do nothing. The grove guardians can't leave the warded area. When the spell ends, the magic animating them disappears, and the trees take root again if possible.\" + \"\\n   \" + toUni(\"Additional Spell Effects\") + \": You can place your choice of one of the following magical effects within the warded area:\" + \"\\n \\u2022 \" + \"A constant gust of wind in two locations of your choice\" + \"\\n \\u2022 \" + \"Spike growth in one location of your choice\" + \"\\n \\u2022 \" + \"Wind wall in two locations of your choice\" + \"\\n   \" + \"To a creature immune to this effect, the winds are a fragrant, gentle breeze, and the area of spike growth is harmless.\"\r\n};\r\nSpellsList[\"enemies abound\"] = {\r\n\tname : \"Enemies Abound\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or regard all creatures it can see as enemies, random targeting; save when damaged to end\",\r\n\tdescriptionFull : \"You reach into the mind of one creature you can see and force it to make an Intelligence saving throw. A creature automatically succeeds if it is immune to being frightened. On a failed save, the target loses the ability to distinguish friend from foe, regarding all creatures it can see as enemies until the spell ends. Each time the target takes damage, it can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"Whenever the affected creature chooses another creature as a target, it must choose the target at random from among the creatures it can see within range of the attack, spell, or other ability it's using. If an enemy provokes an opportunity attack from the affected creature, the creature must make that attack if it is able to.\"\r\n};\r\nSpellsList[\"enervation\"] = {\r\n\tname : \"Enervation\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 2d8+1d8/SL Necrotic dmg, saved: ends; fail: +2d8 dmg and Act to repeat; I heal half; see B\",\r\n\tdescriptionShorter : \"1 crea 2d8+1d8/SL Necro. dmg, save: ends; fail: +2d8 dmg & Act repeat; I heal half; see B\",\r\n\tdescriptionFull : \"A tendril of inky darkness reaches out from you, touching a creature you can see within range to drain life from it. The target must make a Dexterity saving throw. On a successful save, the target takes 2d8 necrotic damage, and the spell ends. On a failed save, the target takes 4d8 necrotic damage, and until the spell ends, you can use your action on each of your turns to automatically deal 4d8 necrotic damage to the target. The spell ends if you use your action to do anything else, if the target is ever outside the spell's range, or if the target has total cover from you.\" + \"\\n   \" + \"Whenever the spell deals damage to a target, you regain hit points equal to half the amount of necrotic damage the target takes.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the damage increases by 1d8 for each slot level above 5th.\",\r\n};\r\nSpellsList[\"far step\"] = {\r\n\tname : \"Far Step\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"At casting and as bonus action for duration, I can teleport 60 ft to a space I can see\",\r\n\tdescriptionFull : \"You teleport up to 60 feet to an unoccupied space you can see. On each of your turns before the spell ends, you can use a bonus action to teleport in this way again.\"\r\n};\r\nSpellsList[\"find greater steed\"] = {\r\n\tname : \"Find Greater Steed\",\r\n\t\tclasses : [\"paladin\"],\r\n\t\tsource : [[\"X\", 156]],\r\n\t\tlevel : 4,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"10 min\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tdescription : \"Gain the services of a steed; can communicate with it telepathically; can share spells with it; see book\",\r\n\t\tdescriptionFull : \"You summon a spirit that assumes the form of a loyal, majestic mount. Appearing in an unoccupied space within range, the spirit takes on a form you choose: a griffon, a pegasus, a peryton, a dire wolf, a rhinoceros, or a saber-toothed tiger. The creature has the statistics provided in the Monster Manual for the chosen form, though it is a celestial, a fey, or a fiend (your choice) instead of its normal creature type. Additionally, if it has an Intelligence score of 5 or lower, its Intelligence becomes 6, and it gains the ability to understand one language of your choice that you speak.\" + \"\\n   \" + \"You control the mount in combat. While the mount is within 1 mile of you, you can communicate with it telepathically. While mounted on it, you can make any spell you cast that targets only you also target the mount.\" + \"\\n   \" + \"The mount disappears temporarily when it drops to 0 hit points or when you dismiss it as an action. Casting this spell again re-summons the bonded mount, with all its hit points restored and any conditions removed.\" + \"\\n   \" + \"You can't have more than one mount bonded by this spell or find steed at the same time. As an action, you can release a mount from its bond, causing it to disappear permanently.\" + \"\\n   \" + \"Whenever the mount disappears, it leaves behind any objects it was wearing or carrying.\"\r\n};\r\nSpellsList[\"guardian of nature\"] = {\r\n\tname : \"Guardian of Nature\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I transform into a Primal Beast (offensive bonuses) or a Great Tree (defensive bonuses); see book\",\r\n\tdescriptionFull : \"A nature spirit answers your call and transforms you into a powerful guardian. The transformation lasts until the spell ends. You choose one of the following forms to assume: Primal Beast or Great Tree.\" + \"\\n\\n\" + toUni(\"Primal Beast\") + \": Bestial fur covers your body, your facial features become feral, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"Your walking speed increases by 10 feet.\" + \"\\n \\u2022 \" + \"You gain darkvision with a range of 120 feet.\" + \"\\n \\u2022 \" + \"You make Strength-based attack rolls with advantage.\" + \"\\n \\u2022 \" + \"Your melee weapon attacks deal an extra 1d6 force damage on a hit.\" + \"\\n\\n\" + toUni(\"Great Tree\") + \": Your skin appears barky, leaves sprout from your hair, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You gain 10 temporary hit points.\" + \"\\n \\u2022 \" + \"You make Constitution saving throws with advantage.\" + \"\\n \\u2022 \" + \"You make Dexterity- and Wisdom-based attack rolls with advantage.\" + \"\\n \\u2022 \" + \"While you are on the ground, the ground within 15 feet of you is difficult terrain for your enemies.\"\r\n};\r\nSpellsList[\"healing spirit\"] = { // limited usages (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Healing Spirit\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"5-ft cube; any living crea I see start/enter heals 1d6+1d6/SL HP; 1+spell mod uses; bns a move it 30 ft\",\r\n\tdescriptionShorter : \"5-ft cube; any living start/enter heals 1d6+1d6/SL HP; 1+spell mod uses; bns a move 30 ft\",\r\n\tdescriptionFull : \"You call forth a nature spirit to soothe the wounded. The intangible spirit appears in a space that is a 5-foot cube you can see within range. The spirit looks like a transparent beast or fey (your choice).\" + \"\\n   \" + \"Until the spell ends, whenever you or a creature you can see moves into the spirit's space for the first time on a turn or starts its turn there, you can cause the spirit to restore 1d6 hit points to that creature (no action required). The spirit can't heal constructs or undead. The spirit can heal a number of times equal to 1 + your spellcasting ability modifier (minimum of twice). After healing that number of times, the spirit disappears.\" + \"\\n   \" + \"As a bonus action on your turn, you can move the spirit up to 30 feet to a space you can see.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the healing increases by 1d6 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"holy weapon\"] = { \r\n\tname : \"Holy Weapon\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Wea +2d8 Radiant dmg; bns a end spell: 30-ft rad all crea 4d8 Radiant dmg, blind; save half, no blind\",\r\n\tdescriptionShorter : \"wea +2d8 Radiant dmg; bns a end: 30-ft rad all 4d8 Radiant dmg, blind; save half, no blind\",\r\n\tdescriptionFull : \"You imbue a weapon you touch with holy power. Until the spell ends, the weapon emits bright light in a 30-foot radius and dim light for an additional 30 feet. In addition, weapon attacks made with it deal an extra 2d8 radiant damage on a hit. If the weapon isn't already a magic weapon, it becomes one for the duration.\" + \"\\n   \" + \"As a bonus action on your turn, you can dismiss this spell and cause the weapon to emit a burst of radiance. Each creature of your choice that you can see within 30 feet of the weapon must make a Constitution saving throw. On a failed save, a creature takes 4d8 radiant damage, and it is blinded for 1 minute. On a successful save, a creature takes half as much damage and isn't blinded. At the end of each of its turns, a blinded creature can make a Constitution saving throw, ending the effect on itself on a success.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\tskipDmgGroupIfNotMultiple : /(wea .*?radiant dmg.*?)/i\r\n\t}\r\n};\r\nSpellsList[\"illusory dragon\"] = {\r\n\tname : \"Illusory Dragon\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 8,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"W/I\",\r\n\tdescription : \"Huge shadowy dragon; see: Wis save or fright.; bns a move 60 ft \\u0026 breath wea 7d6 dmg; Int save half\",\r\n\tdescriptionShorter : \"Huge illus.; see: Wis save or fright.; bns a move 60 ft \\u0026 breath wea 7d6 dmg; Int save half\",\r\n\tdescriptionFull : \"By gathering threads of shadow material from the Shadowfell, you create a Huge shadowy dragon in an unoccupied space that you can see within range. The illusion lasts for the spell's duration and occupies its space, as if it were a creature.\" + \"\\n   \" + \"When the illusion appears, any of your enemies that can see it must succeed on a Wisdom saving throw or become frightened of it for 1 minute. If a frightened creature ends its turn in a location where it doesn't have line of sight to the illusion, it can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"As a bonus action on your turn, you can move the illusion up to 60 feet. At any point during its movement, you can cause it to exhale a blast of energy in a 60-foot cone originating from its space. When you create the dragon, choose a damage type: acid, cold, fire, lightning, necrotic, or poison. Each creature in the cone must make an Intelligence saving throw, taking 7d6 damage of the chosen damage type on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"The illusion is tangible because of the shadow stuff used to create it, but attacks miss it automatically, it succeeds on all saving throws, and it is immune to all damage and conditions. A creature that uses an action to examine the dragon can determine that it is an illusion by succeeding on an Intelligence (Investigation) check against your spell save DC. If a creature discerns the illusion for what it is, the creature can see through it and has advantage on saving throws against its breath.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"radiant\", \"necrotic\"],\r\n\t\t\tinDescriptionAs : ''\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"infernal calling\"] = {\r\n\tname : \"Infernal Calling\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 158]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A ruby worth at least 999 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 1 devil of CR 6+1/SL; hostile to all, obeys my command if to its liking or Cha check; see B\",\r\n\tdescriptionFull : \"Uttering a dark incantation, you summon a devil from the Nine Hells. You choose the devil's type, which must be one of challenge rating 6 or lower, such as a barbed devil or a bearded devil. The devil appears in an unoccupied space that you can see within range. The devil disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The devil is unfriendly toward you and your companions. Roll initiative for the devil, which has its own turns. It is under the Dungeon Master's control and acts according to its nature on each of its turns, which might result in its attacking you if it thinks it can prevail, or trying to tempt you to undertake an evil act in exchange for limited service. The DM has the creature's statistics.\" + \"\\n   \" + \"On each of your turns, you can try to issue a verbal command to the devil (no action required by you). It obeys the command if the likely outcome is in accordance with its desires, especially if the result would draw you toward evil. Otherwise, you must make a Charisma (Deception, Intimidation, or Persuasion) check contested by its Wisdom (Insight) check. You make the check with advantage if you say the devil's true name. If your check fails, the devil becomes immune to your verbal commands for the duration of the spell, though it can still carry out your commands if it chooses. If your check succeeds, the devil carries out your command \\u2014 such as “attack my enemies,” “explore the room ahead,” or “bear this message to the queen” \\u2014 until it completes the activity, at which point it returns to you to report having done so.\" + \"\\n   \" + \"If your concentration ends before the spell reaches its full duration, the devil doesn't disappear if it has become immune to your verbal commands. Instead, it acts in whatever manner it chooses for 3d6 minutes, and then it disappears.\" + \"\\n   \" + \"If you possess an individual devil's talisman, you can summon that devil if it is of the appropriate challenge rating plus 1, and it obeys all your commands, with no Charisma checks required.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the challenge rating increases by 1 for each slot level above 5th.\"\r\n};\r\nSpellsList[\"infestation\"] = {\r\n\tname : \"Infestation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 158]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A living flea\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Poison dmg and moved 5 ft in random direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Poison dmg and moved 5 ft in random direction\",\r\n\tdescriptionFull : \"You cause a cloud of mites, fleas, and other parasites to appear momentarily on one creature you can see within range. The target must succeed on a Constitution saving throw, or it takes 1d6 poison damage and moves 5 feet in a random direction if it can move and its speed is at least 5 feet. Roll a d4 for the direction:\" + \"\\n\\n\" + toUni(\"d4\") + \"\\t\" + toUni(\"Direction\") + \"\\n  1\\tNorth\" + \"\\n  2\\tSouth\" + \"\\n  3\\tEast\" + \"\\n  4\\tWest\" + \"\\n\\n   \" + \"This movement doesn't provoke opportunity attacks, and if the direction rolled is blocked, the target doesn't move.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"invulnerability\"] = {\r\n\tname : \"Invulnerability\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 9,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A small piece of adamantine worth at least 500 gp, which the spell consumes\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Immune to all damage until the spell ends (500gp cons.)\",\r\n\tdescriptionFull : \"You are immune to all damage until the spell ends.\"\r\n};\r\nSpellsList[\"life transference\"] = { // can't reduce damage taken (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Life Transference\",\r\n\tclasses : [\"cleric\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I take 4d8+1d8/SL Necrotic dmg (in full) and 1 crea in range I can see heals twice that in HP\",\r\n\tdescriptionFull : \"You sacrifice some of your health to mend another creature's injuries. You take 4d8 necrotic damage, which can't be reduced in any way, and one creature of your choice that you can see within range regains a number of hit points equal to twice the necrotic damage you take.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"maddening darkness\"] = {\r\n\tname : \"Maddening Darkness\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A drop of pitch mixed with a drop of mercury\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"60-ft rad darkness; darkvision, no light works; all crea starting turn in 8d8 Psychic dmg, save halves\",\r\n\tdescriptionShorter : \"60-ft rad darkness; darkvision, no light works; all start turn in 8d8 Psychic dmg, save half\",\r\n\tdescriptionFull : \"Magical darkness spreads from a point you choose within range to fill a 60-foot-radius sphere until the spell ends. The darkness spreads around corners. A creature with darkvision can't see through this darkness. Nonmagical light, as well as light created by spells of 8th level or lower, can't illuminate the area.\" + \"\\n   \" + \"Shrieks, gibbering, and mad laughter can be heard within the sphere. Whenever a creature starts its turn in the sphere, it must make a Wisdom saving throw, taking 8d8 psychic damage on a failed save, or half as much damage on a successful one.\"\r\n};\r\nSpellsList[\"mass polymorph\"] = {\r\n\tname : \"Mass Polymorph\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 9,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A caterpillar cocoon\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"10 crea save or take chosen beast form of CR \\u2264 its CR or half its char. level; can only act as beast; see B\",\r\n\tdescriptionFull : \"You transform up to ten creatures of your choice that you can see within range. An unwilling target must succeed on a Wisdom saving throw to resist the transformation. An unwilling shapechanger automatically succeeds on the save.\" + \"\\n   \" + \"Each target assumes a beast form of your choice, and you can choose the same form or different ones for each target. The new form can be any beast you have seen whose challenge rating is equal to or less than the target's (or half the target's level, if the target doesn't have a challenge rating). The target's game statistics, including mental ability scores, are replaced by the statistics of the chosen beast, but the target retains its hit points, alignment, and personality.\" + \"\\n   \" + \"Each target gains a number of temporary hit points equal to the hit points of its new form. These temporary hit points can't be replaced by temporary hit points from another source. A target reverts to its normal form when it has no more temporary hit points or it dies. If the spell ends before then, the creature loses all its temporary hit points and reverts to its normal form.\" + \"\\n   \" + \"The creature is limited in the actions it can perform by the nature of its new form. It can't speak, cast spells, or do anything else that requires hands or speech.\" + \"\\n   \" + \"The target's gear melds into the new form. The target can't activate, use, wield, or otherwise benefit from any of its equipment.\"\r\n};\r\nSpellsList[\"mental prison\"] = {\r\n\tname : \"Mental Prison\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 161]],\r\n\tlevel : 6,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 5d10 Psychic dmg; save or restrained, blind, deaf, and if moved: 10d10 dmg, ends; charm effect\",\r\n\tdescriptionShorter : \"1 crea 5d10 Psychic dmg; save or restrained, blind, deaf, if move: 10d10 dmg, ends; charm\",\r\n\tdescriptionFull : \"You attempt to bind a creature within an illusory cell that only it perceives. One creature you can see within range must make an Intelligence saving throw. The target succeeds automatically if it is immune to being charmed. On a successful save, the target takes 5d10 psychic damage, and the spell ends. On a failed save, the target takes 5d10 psychic damage, and you make the area immediately around the target's space appear dangerous to it in some way. You might cause the target to perceive itself as being surrounded by fire, floating razors, or hideous maws filled with dripping teeth. Whatever form the illusion takes, the target can't see or hear anything beyond it and is restrained for the spell's duration. If the target is moved out of the illusion, makes a melee attack through it, or reaches any part of its body through it, the target takes 10d10 psychic damage, and the spell ends.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /(if moved?: )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"mighty fortress\"] = {\r\n\tname : \"Mighty Fortress\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 161]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"1 mile\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A diamond worth at least 500 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Create a stone fortress 120 ft on a side for 7 days; see book for effects (500gp cons.)\",\r\n\tdescriptionFull : \"A fortress of stone erupts from a square area of ground of your choice that you can see within range. The area is 120 feet on each side, and it must not have any buildings or other structures on it. Any creatures in the area are harmlessly lifted up as the fortress rises.\" + \"\\n   \" + \"The fortress has four turrets with square bases, each one 20 feet on a side and 30 feet tall, with one turret on each corner. The turrets are connected to each other by stone walls that are each 80 feet long, creating an enclosed area. Each wall is 1 foot thick and is composed of panels that are 10 feet wide and 20 feet tall. Each panel is contiguous with two other panels or one other panel and a turret. You can place up to four stone doors in the fortress's outer wall.\" + \"\\n   \" + \"A small keep stands inside the enclosed area. The keep has a square base that is 50 feet on each side, and it has three floors with 10-foot-high ceilings. Each of the floors can be divided into as many rooms as you like, provided each room is at least 5 feet on each side. The floors of the keep are connected by stone staircases, its walls are 6 inches thick, and interior rooms can have stone doors or open archways as you choose. The keep is furnished and decorated however you like, and it contains sufficient food to serve a nine-course banquet for up to 100 people each day. Furnishings, food, and other objects created by this spell crumble to dust if removed from the fortress.\" + \"\\n   \" + \"A staff of one hundred invisible servants obeys any command given to them by creatures you designate when you cast the spell. Each servant functions as if created by the unseen servant spell.\" + \"\\n   \" + \"The walls, turrets, and keep are all made of stone that can be damaged. Each 10-foot-by-10-foot section of stone has AC 15 and 30 hit points per inch of thickness. It is immune to poison and psychic damage. Reducing a section of stone to 0 hit points destroys it and might cause connected sections to buckle and collapse at the DM's discretion.\" + \"\\n   \" + \"After 7 days or when you cast this spell somewhere else, the fortress harmlessly crumbles and sinks back into the ground, leaving any creatures that were inside it safely on the ground.\" + \"\\n   \" + \"Casting this spell on the same spot once every 7 days for a year makes the fortress permanent.\"\r\n};\r\nSpellsList[\"mind spike\"] = { // +1d8 at higher levels errata (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Mind Spike\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 162]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea 3d8+1d8/SL Psychic dmg, know its location, can't be invis for me; save half, no other benefits\",\r\n\tdescriptionShorter : \"1 crea 3d8+1d8/SL Psychic dmg, know its location, can't be invis for me; save half, not rest\",\r\n\tdescriptionFull : \"You reach into the mind of one creature you can see within range. The target must make a Wisdom saving throw, taking 3d8 psychic damage on a failed save, or half as much damage on a successful one. On a failed save, you also always know the target's location until the spell ends, but only while the two of you are on the same plane of existence. While you have this knowledge, the target can't become hidden from you, and if it's invisible, it gains no benefit from that condition against you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"negative energy flood\"] = {\r\n\tname : \"Negative Energy Flood\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A broken bone and a square of black silk\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea: living 5d12 Necrotic dmg, save halves, rises as zombie if killed; undead 5d12/2 temp HP\",\r\n\tdescriptionFull : \"You send ribbons of negative energy at one creature you can see within range. Unless the target is undead, it must make a Constitution saving throw, taking 5d12 necrotic damage on a failed save, or half as much damage on a successful one. A target killed by this damage rises up as a zombie at the start of your next turn. The zombie pursues whatever creature it can see that is closest to it. Statistics for the zombie are in the Monster Manual.\" + \"\\n   \" + \"If you target an undead with this spell, the target doesn't make a saving throw. Instead, roll 5d12. The target gains half the total as temporary hit points.\"\r\n};\r\nSpellsList[\"power word pain\"] = {\r\n\tname : \"Power Word Pain\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 7,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea with 100 HP or less disadv. atk/check/save, conc. save to cast; save/rnd to end; charm effect\",\r\n\tdescriptionFull : \"You speak a word of power that causes waves of intense pain to assail one creature you can see within range. If the target has 100 hit points or fewer, it is subject to crippling pain. Otherwise, the spell has no effect on it. A target is also unaffected if it is immune to being charmed.\" + \"\\n   \" + \"While the target is affected by crippling pain, any speed it has can be no higher than 10 feet. The target also has disadvantage on attack rolls, ability checks, and saving throws, other than Constitution saving throws. Finally, if the target tries to cast a spell, it must first succeed on a Constitution saving throw, or the casting fails and the spell is wasted.\" + \"\\n   \" + \"A target suffering this pain can make a Constitution saving throw at the end of each of its turns. On a successful save, the pain ends.\"\r\n};\r\nSpellsList[\"primal savagery\"] = { \r\n\tname : \"Primal Savagery\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack, 5 ft range, for 1d10 Acid dmg; +1d10 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Melee spell attack, 5 ft range, for `CD`d10 Acid dmg\",\r\n\tdescriptionFull : \"You channel primal magic to cause your teeth or fingernails to sharpen, ready to deliver a corrosive attack. Make a melee spell attack against one creature within 5 feet of you. On a hit, the target takes 1d10 acid damage. After you make the attack, your teeth or fingernails return to normal.\" + \"\\n   \" + \"The spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nSpellsList[\"psychic scream\"] = {\r\n\tname : \"Psychic Scream\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 9,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"10 crea Int>2 save or 14d6 Psychic dmg and stunned; save halves, no stun; end of turn save to stop\",\r\n\tdescriptionFull : \"You unleash the power of your mind to blast the intellect of up to ten creatures of your choice that you can see within range. Creatures that have an Intelligence score of 2 or lower are unaffected.\" + \"\\n   \" + \"Each target must make an Intelligence saving throw. On a failed save, a target takes 14d6 psychic damage and is stunned. On a successful save, a target takes half as much damage and isn't stunned. If a target is killed by this damage, its head explodes, assuming it has one.\" + \"\\n   \" + \"A stunned target can make an Intelligence saving throw at the end of each of its turns. On a successful save, the stunning effect ends.\"\r\n};\r\nSpellsList[\"scatter\"] = {\r\n\tname : \"Scatter\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Up to 5 creatures in range, save or teleported 120 ft to a different space I can see on the ground\",\r\n\tdescriptionFull : \"The air quivers around up to five creatures of your choice that you can see within range. An unwilling creature must succeed on a Wisdom saving throw to resist this spell. You teleport each affected target to an unoccupied space that you can see within 120 feet of you. That space must be on the ground or on a floor.\"\r\n};\r\nSpellsList[\"shadow blade\"] = {\r\n\tname : \"Shadow Blade\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Sword 2d8 Psychic dmg, finesse, light, thrown (20/60 ft), adv. if target in dim/dark; +1d8 at SL3/5/7\",\r\n\tdescriptionMetric : \"Sword: 2d8 Psychic dmg, finesse, light, thrown (6/18 m), adv. if target in dim/dark; +1d8 at SL3/5/7\",\r\n\tdescriptionShorter : \"Sword 2d8 Psychic dmg, finesse, light, thrown (20/60ft), adv. in dim/dark; +1d8 SL3/5/7\",\r\n\tdescriptionShorterMetric : \"Sword 2d8 Psychic dmg, finesse, light, thrown (6/18 m), adv. in dim/dark; +1d8 SL3/5/7\",\r\n\tdescriptionFull : \"You weave together threads of shadow to create a sword of solidified gloom in your hand. This magic sword lasts until the spell ends. It counts as a simple melee weapon with which you are proficient. It deals 2d8 psychic damage on a hit and has the finesse, light, and thrown properties (range 20/60). In addition, when you use the sword to attack a target that is in dim light or darkness, you make the attack roll with advantage.\" + \"\\n   \" + \"If you drop the weapon or throw it, it dissipates at the end of the turn. Thereafter, while the spell persists, you can use a bonus action to cause the sword to reappear in your hand.\" + AtHigherLevels + \"When you cast this spell using a 3rd- or 4th-level spell slot, the damage increases to 3d8. When you cast it using a 5th- or 6th-level spell slot, the damage increases to 4d8. When you cast it using a spell slot of 7th level or higher, the damage increases to 5d8.\"\r\n};\r\nWeaponsList[\"shadow blade\"] = {\r\n\tregExpSearch : /(?=.*shadow)(?=.*blade).*$/i,\r\n\tname : \"Shadow Blade\",\r\n\tsource : [[\"X\", 164]],\r\n\tlist : \"spell\",\r\n\tability : 1,\r\n\ttype : \"Simple\",\r\n\tdamage : [2, 8, \"psychic\"],\r\n\trange : \"Melee, 20/60 ft\",\r\n\tdescription : \"Finesse, light, thrown; +1d8 at SL3/5/7; Adv. if target in dim light/darkness\",\r\n\tabilitytodamage : true,\r\n\tisAlwaysProf : true,\r\n\tuseSpellcastingAbility : false\r\n};\r\nSpellsList[\"shadow of moil\"] = {\r\n\tname : \"Shadow of Moil\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 4,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An undead eyeball encased in a gem worth at least 150 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me: heavy obsc., Radiant resistance; 10-ft rad: 1 step darker, hit vs. me get 2d8 Necrotic dmg (150gp)\",\r\n\tdescriptionShorter : \"Me: hvy obsc., Radiant resist; 10-ft rad: 1 step darker, hit vs. me 2d8 Necrotic dmg (150gp)\",\r\n\tdescriptionFull : \"Flame-like shadows wreathe your body until the spell ends, causing you to become heavily obscured to others. The shadows turn dim light within 10 feet of you into darkness, and bright light in the same area to dim light.\" + \"\\n   \" + \"Until the spell ends, you have resistance to radiant damage. In addition, whenever a creature within 10 feet of you hits you with an attack, the shadows lash out at that creature, dealing it 2d8 necrotic damage.\"\r\n};\r\nSpellsList[\"sickening radiance\"] = {\r\n\tname : \"Sickening Radiance\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft rad all enter/start turn save or 4d10 Radiant dmg, 1 level of exhaustion, and emit 5-ft rad light\",\r\n\tdescriptionShorter : \"30-ft rad all enter/start turn save or 4d10 Radiant dmg, 1 lvl exhaust., emit 5-ft rad light\",\r\n\tdescriptionFull : \"Dim, greenish light spreads within a 30-foot-radius sphere centered on a point you choose within range. The light spreads around corners, and it lasts until the spell ends.\" + \"\\n   \" + \"When a creature moves into the spell's area for the first time on a turn or starts its turn there, that creature must succeed on a Constitution saving throw or take 4d10 radiant damage, and it suffers one level of exhaustion and emits a dim, greenish light in a 5-foot radius. This light makes it impossible for the creature to benefit from being invisible. The light and any levels of exhaustion caused by this spell go away when the spell ends.\"\r\n};\r\nSpellsList[\"skill empowerment\"] = {\r\n\tname : \"Skill Empowerment\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 willing creature gains expertise in one skill of my choice that it is proficient with for the duration\",\r\n\tdescriptionFull : \"Your magic deepens a creature's understanding of its own talent. You touch one willing creature and give it expertise in one skill of your choice; until the spell ends, the creature doubles its proficiency bonus for ability checks it makes that use the chosen skill.\" + \"\\n   \" + \"You must choose a skill in which the target is proficient and that isn't already benefiting from an effect, such as Expertise, that doubles its proficiency bonus.\"\r\n};\r\nSpellsList[\"snare\"] = {\r\n\tname : \"Snare\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"S,M\\u2020\",\r\n\tcompMaterial : \"25 feet of rope, which the spell consumes\",\r\n\tduration : \"8 h, till trigger\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft rad trap; Investigation vs spell DC to see; save or restrained 3 ft in the air; save each rnd (5sp)\",\r\n\tdescriptionFull : \"As you cast this spell, you use the rope to create a circle with a 5-foot radius on the ground or the floor. When you finish casting, the rope disappears and the circle becomes a magic trap.\" + \"\\n   \" + \"This trap is nearly invisible, requiring a successful Intelligence (Investigation) check against your spell save DC to be discerned.\" + \"\\n   \" + \"The trap triggers when a Small, Medium, or Large creature moves onto the ground or the floor in the spell's radius. That creature must succeed on a Dexterity saving throw or be magically hoisted into the air, leaving it hanging upside down 3 feet above the ground or the floor. The creature is restrained there until the spell ends.\" + \"\\n   \" + \"A restrained creature can make a Dexterity saving throw at the end of each of its turns, ending the effect on itself on a success. Alternatively, the creature or someone else who can reach it can use an action to make an Intelligence (Arcana) check against your spell save DC. On a success, the restrained effect ends.\" + \"\\n   \" + \"After the trap is triggered, the spell ends when no creature is restrained by it.\"\r\n};\r\nSpellsList[\"soul cage\"] = {\r\n\tname : \"Soul Cage\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 6,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when a humanoid you can see within 60 feet of you dies\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A tiny silver cage worth 100 gp\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"As a reaction when humanoid in range dies, I capture their soul in a tiny cage; see book (100gp)\",\r\n\tdescriptionFull : \"This spell snatches the soul of a humanoid as it dies and traps it inside the tiny cage you use for the material component. A stolen soul remains inside the cage until the spell ends or until you destroy the cage, which ends the spell. While you have a soul inside the cage, you can exploit it in any of the ways described below. You can use a trapped soul up to six times. Once you exploit a soul for the sixth time, it is released, and the spell ends. While a soul is trapped, the dead humanoid it came from can't be revived.\" + \"\\n   \" + toUni(\"Steal Life\") + \": You can use a bonus action to drain vigor from the soul and regain 2d8 hit points.\" + \"\\n   \" + toUni(\"Query Soul\") + \": You ask the soul a question (no action required) and receive a brief telepathic answer, which you can understand regardless of the language used. The soul knows only what it knew in life, but it must answer you truthfully and to the best of its ability. The answer is no more than a sentence or two and might be cryptic.\" + \"\\n   \" + toUni(\"Borrow Experience\") + \": You can use a bonus action to bolster yourself with the soul's life experience, making your next attack roll, ability check, or saving throw with advantage. If you don't use this benefit before the start of your next turn, it is lost.\" + \"\\n   \" + toUni(\"Eyes of the Dead\") + \": You can use an action to name a place the humanoid saw in life, which creates an invisible sensor somewhere in that place if it is on the plane of existence you're currently on. The sensor remains for as long as you concentrate, up to 10 minutes (as if you were concentrating on a spell). You receive visual and auditory information from the sensor as if you were in its space using your senses\" + \"\\n   \" + \"A creature that can see the sensor (such as one using see invisibility or truesight) sees a translucent image of the tormented humanoid whose soul you caged.\"\r\n};\r\nSpellsList[\"steel wind strike\"] = {\r\n\tname : \"Steel Wind Strike\",\r\n\tclasses : [\"ranger\", \"wizard\"],\r\n\tsource : [[\"X\", 166]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack vs. 5 crea in range; 6d10 Force dmg on hit; after, I teleport next to one target\",\r\n\tdescriptionFull : \"You flourish the weapon used in the casting and then vanish to strike like the wind. Choose up to five creatures you can see within range. Make a melee spell attack against each target. On a hit, a target takes 6d10 force damage.\" + \"\\n   \" + \"You can then teleport to an unoccupied space you can see within 5 feet of one of the targets you hit or missed.\"\r\n};\r\nSpellsList[\"summon greater demon\"] = {\r\n\tname : \"Summon Greater Demon\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 166]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from a humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"Summon 1 demon of CR 5+1/SL that obeys me; end of each of its turn, save to break free; see book\",\r\n\tdescriptionFull : \"You utter foul words, summoning one demon from the chaos of the Abyss. You choose the demon's type, which must be one of challenge rating 5 or lower, such as a shadow demon or a barlgura. The demon appears in an unoccupied space you can see within range, and the demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"Roll initiative for the demon, which has its own turns. When you summon it and on each of your turns thereafter, you can issue a verbal command to it (requiring no action on your part), telling it what it must do on its next turn. If you issue no command, it spends its turn attacking any creature within reach that has attacked it.\" + \"\\n   \" + \"At the end of each of the demon's turns, it makes a Charisma saving throw. The demon has disadvantage on this saving throw if you say its true name. On a failed save, the demon continues to obey you. On a successful save, your control of the demon ends for the rest of the duration, and the demon spends its turns pursuing and attacking the nearest non-demons to the best of its ability. If you stop concentrating on the spell before it reaches its full duration, an uncontrolled demon doesn't disappear for 1d6 rounds if it still has hit points.\" + \"\\n   \" + \"As part of casting the spell, you can form a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. While the spell lasts, the summoned demon can't cross the circle or harm it, and it can't target anyone within it. Using the material component in this manner consumes it when the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the challenge rating increases by 1 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"summon lesser demons\"] = {\r\n\tname : \"Summon Lesser Demons\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from a humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon up to 8 (16 at SL6, 24 at SL8) CR \\u22641 1 demons, DM choice; attack nearest non-demons\",\r\n\tdescriptionFull : \"You utter foul words, summoning demons from the chaos of the Abyss. Roll on the following table to determine what appears.\" + \"\\n\\n \" + toUni(\"d6\") + \"\\t\" + toUni(\"Demons Summoned\") + \"\\n  1-2\\tTwo demons of challenge rating 1 or lower\" + \"\\n  3-4\\tFour demons of challenge rating 1/2 or lower\" + \"\\n  5-6\\tEight demons of challenge rating 1/4 or lower\" + \"\\n\\n   \" + \"The DM chooses the demons, such as manes or dretches, and you choose the unoccupied spaces you can see within range where they appear. A summoned demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The demons are hostile to all creatures, including you. Roll initiative for the summoned demons as a group, which has its own turns. The demons pursue and attack the nearest non-demons to the best of their ability.\" + \"\\n   \" + \"As part of casting the spell, you can form a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. While the spell lasts, the summoned demons can't cross the circle or harm it, and they can't target anyone within it. Using the material component in this manner consumes it when the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th or 7th level, you summon twice as many demons. If you cast it using a spell slot of 8th or 9th level, you summon three times as many demons.\"\r\n};\r\nSpellsList[\"synaptic static\"] = {\r\n\tname : \"Synaptic Static\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 5,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instant, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"20-ft rad all crea Int>2 save or 8d6 Psychic dmg, -1d6 on atks/check/conc. save; save half, no -1d6\",\r\n\tdescriptionShorter : \"20-ft rad all crea Int>2 save or 8d6 Psychic dmg, -1d6 on atk/chk/conc save; save half, no -1d6\",\r\n\tdescriptionFull : \"You choose a point within range and cause psychic energy to explode there. Each creature in a 20-foot-radius sphere centered on that point must make an Intelligence saving throw. A creature with an Intelligence score of 2 or lower can't be affected by this spell. A target takes 8d6 psychic damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"After a failed save, a target has muddled thoughts for 1 minute. During that time, it rolls a d6 and subtracts the number rolled from all its attack rolls and ability checks, as well as its Constitution saving throws to maintain concentration. The target can make an Intelligence saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n};\r\nSpellsList[\"temple of the gods\"] = {\r\n\tname : \"Temple of the Gods\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 h\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A holy symbol worth at least 5 gp\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Create a temple 120 ft on a side to the deity of a holy symbol used; see book for effects\",\r\n\tdescriptionFull : \"You cause a temple to shimmer into existence on ground you can see within range. The temple must fit within an unoccupied cube of space, up to 120 feet on each side. The temple remains until the spell ends. It is dedicated to whatever god, pantheon, or philosophy is represented by the holy symbol used in the casting.\" + \"\\n   \" + \"You make all decisions about the temple's appearance. The interior is enclosed by a floor, walls, and a roof, with one door granting access to the interior and as many windows as you wish. Only you and any creatures you designate when you cast the spell can open or close the door.\" + \"\\n   \" + \"The temple's interior is an open space with an idol or altar at one end. You decide whether the temple is illuminated and whether that illumination is bright light or dim light. The smell of burning incense fills the air within, and the temperature is mild.\" + \"\\n   \" + \"The temple opposes types of creatures you choose when you cast this spell. Choose one or more of the following: celestials, elementals, fey, fiends, or undead. If a creature of the chosen type attempts to enter the temple, that creature must make a Charisma saving throw. On a failed save, it can't enter the temple for 24 hours. Even if the creature can enter the temple, the magic there hinders it; whenever it makes an attack roll, an ability check, or a saving throw inside the temple, it must roll a d4 and subtract the number rolled from the d20 roll.\" + \"\\n   \" + \"In addition, the sensors created by divination spells can't appear inside the temple, and creatures within can't be targeted by divination spells.\" + \"\\n   \" + \"Finally, whenever any creature in the temple regains hit points from a spell of 1st level or higher, the creature regains additional hit points equal to your Wisdom modifier (minimum 1 hit point).\" + \"\\n   \" + \"The temple is made from opaque magical force that extends into the Ethereal Plane, thus blocking ethereal travel into the temple's interior. Nothing can physically pass through the temple's exterior. It can't be dispelled by dispel magic, and antimagic field has no effect on it. A disintegrate spell destroys the temple instantly.\" + \"\\n   \" + \"Casting this spell on the same spot once every 7 days for a year makes this effect permanent.\"\r\n};\r\nSpellsList[\"tenser's transformation\"] = {\r\n\tname : \"Tenser's Transformation\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A few hairs from a bull\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"50 temp HP; prof Str/Con save, all wea/arm; extra atk; adv., wea atks +2d12 Force dmg; no spellc.\",\r\n\tdescriptionShorter : \"50 temp HP; prof Str/Con save, wea/arm; +1 atk; adv, wea atks +2d12 Force dmg; no spellc\",\r\n\tdescriptionFull : \"You endow yourself with endurance and martial prowess fueled by magic. Until the spell ends, you can't cast spells, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You gain 50 temporary hit points. If any of these remain when the spell ends, they are lost.\" + \"\\n \\u2022 \" + \"You have advantage on attack rolls that you make with simple and martial weapons.\" + \"\\n \\u2022 \" + \"When you hit a target with a weapon attack, that target takes an extra 2d12 force damage.\" + \"\\n \\u2022 \" + \"You have proficiency with all armor, shields, simple weapons, and martial weapons.\" + \"\\n \\u2022 \" + \"You have proficiency in Strength and Constitution saving throws.\" + \"\\n \\u2022 \" + \"You can attack twice, instead of once, when you take the Attack action on your turn. You ignore this benefit if you already have a feature, like Extra Attack, that gives you extra attacks.\" + \"\\n   \" + \"Immediately after the spell ends, you must succeed on a DC 15 Constitution saving throw or suffer one level of exhaustion.\"\r\n};\r\nSpellsList[\"thunder step\"] = {\r\n\tname : \"Thunder Step\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Me + 1 willing crea teleport 90 ft; all crea in 10 ft of origin 3d10+1d10/SL Thunder dmg; save half\",\r\n\tdescriptionShorter : \"Me + 1 willing crea teleport 90 ft; all in 10 ft of origin 3d10+1d10/SL Thunder dmg; save half\",\r\n\tdescriptionFull : \"You teleport yourself to an unoccupied space you can see within range. Immediately after you disappear, a thunderous boom sounds, and each creature within 10 feet of the space you left must make a Constitution saving throw, taking 3d10 thunder damage on a failed save, or half as much damage on a successful one. The thunder can be heard from up to 300 feet away.\" + \"\\n   \" + \"You can bring along objects as long as their weight doesn't exceed what you can carry. You can also teleport one willing creature of your size or smaller who is carrying gear up to its carrying capacity. The creature must be within 5 feet of you when you cast this spell, and there must be an unoccupied space within 5 feet of your destination space for the creature to appear in; otherwise, the creature is left behind.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d10 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"tiny servant\"] = {\r\n\tname : \"Tiny Servant\",\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"Animate 1+2/SL Tiny, nonmagical, unattended obj as tiny servants; bns a to command telepathically\",\r\n\tdescriptionFull : \"You touch one Tiny, nonmagical object that isn't attached to another object or a surface and isn't being carried by another creature. The target animates and sprouts little arms and legs, becoming a creature under your control until the spell ends or the creature drops to 0 hit points. See the Tiny Servant stat block for its statistics.\" + \"\\n   \" + \"As a bonus action, you can mentally command the creature if it is within 120 feet of you. (If you control multiple creatures with this spell, you can command any or all of them at the same time, issuing the same command to each one.) You decide what action the creature will take and where it will move during its next turn, or you can issue a simple, general command, such as to fetch a key, stand watch, or stack some books. If you issue no commands, the servant does nothing other than defend itself against hostile creatures. Once given an order, the servant continues to follow that order until its task is complete.\" + \"\\n   \" + \"When the creature drops to 0 hit points, it reverts to its original form, and any remaining damage carries over to that form.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can animate two additional objects for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"toll the dead\"] = {\r\n\tname : \"Toll the Dead\",\r\n\tclasses : [\"cleric\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\tlevel : 0,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 1d12 Necrotic dmg (d8 instead of d12 if at full HP); +1d12/1d8 at CL 5, 11, \\u0026 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d12 Necrotic damage (d8 instead of d12 if at full HP)\",\r\n\tdescriptionFull : \"You point at one creature you can see within range, and the sound of a dolorous bell fills the air around it for a moment. The target must succeed on a Wisdom saving throw or take 1d8 necrotic damage. If the target is missing any of its hit points, it instead takes 1d12 necrotic damage.\" + \"\\n   \" + \"The spell's damage increases by one die when you reach 5th level (2d8 or 2d12), 11th level (3d8 or 3d12), and 17th level (4d8 or 4d12).\"\r\n};\r\nSpellsList[\"wall of light\"] = {\r\n\tname : \"Wall of Light\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 170]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A hand mirror\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"60\\xD75\\xD710ft (l\\xD7w\\xD7h) 4d8+1d8/SL Radiant dmg \\u0026 blind; save half, not blind; 1 a rngd spell atk; see B\",\r\n\tdescriptionShorter : \"60|5|10ft (l|w|h) 4d8+1d8/SL Radiant dmg, blind; save half, no blind; 1 a rngd atk; see B\",\r\n\tdescriptionMetric : \"18\\xD71,5\\xD73m (l\\xD7w\\xD7h) 4d8+1d8/SL Radiant dmg \\u0026 blind; save half, not blind; 1 a rngd spell atk; see B\",\r\n\tdescriptionShorterMetric : \"18|1,5|3m (l|w|h) 4d8+1d8/SL Radiant dmg, blind; save half, no blind; 1 a rngd atk; see B\",\r\n\tdescriptionFull : \"A shimmering wall of bright light appears at a point you choose within range. The wall appears in any orientation you choose: horizontally, vertically, or diagonally. It can be free floating, or it can rest on a solid surface. The wall can be up to 60 feet long, 10 feet high, and 5 feet thick. The wall blocks line of sight, but creatures and objects can pass through it. It emits bright light out to 120 feet and dim light for an additional 120 feet.\" + \"\\n   \" + \"When the wall appears, each creature in its area must make a Constitution saving throw. On a failed save, a creature takes 4d8 radiant damage, and it is blinded for 1 minute. On a successful save, it takes half as much damage and isn't blinded. A blinded creature can make a Constitution saving throw at the end of each of its turns, ending the effect on itself on a success.\" + \"\\n   \" + \"A creature that ends its turn in the wall's area takes 4d8 radiant damage.\" + \"\\n   \" + \"Until the spell ends, you can use an action to launch a beam of radiance from the wall at one creature you can see within 60 feet of it. Make a ranged spell attack. On a hit, the target takes 4d8 radiant damage. Whether you hit or miss, reduce the length of the wall by 10 feet. If the wall's length drops to 0 feet, the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the damage increases by 1d8 for each slot level above 5th.\"\r\n};\r\nSpellsList[\"word of radiance\"] = {\r\n\tname : \"Word of Radiance\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A holy symbol\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any crea within range save or 1d6 Radiant damage; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Any crea within range save or `CD`d6 Radiant damage\",\r\n\tdescriptionFull : \"You utter a divine word, and burning radiance erupts from you. Each creature of your choice that you can see within range must succeed on a Constitution saving throw or take 1d6 radiant damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"wrath of nature\"] = {\r\n\tname : \"Wrath of Nature\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"60-ft cu dif. ter.; rock: rngd atk 3d8 Bludg. dmg; tree: Dex or 4d6 Slash. dmg; root: Str or restr.; see B\",\r\n\tdescriptionShorter : \"60-ft cu dif. ter.; rock: atk 3d8 Bludg. dmg; tree: Dex or 4d6 Slash. dmg; root: Str or restrain\",\r\n\tdescriptionFull : \"You call out to the spirits of nature to rouse them against your enemies. Choose a point you can see within range. The spirits cause trees, rocks, and grasses in a 60-foot cube centered on that point to become animated until the spell ends.\" + \"\\n   \" + toUni(\"Grasses and Undergrowth\") + \": Any area of ground in the cube that is covered by grass or undergrowth is difficult terrain for your enemies.\" + \"\\n   \" + toUni(\"Trees\") + \": At the start of each of your turns, each of your enemies within 10 feet of any tree in the cube must succeed on a Dexterity saving throw or take 4d6 slashing damage from whipping branches.\" + \"\\n   \" + toUni(\"Roots and Vines\") + \": At the end of each of your turns, one creature of your choice that is on the ground in the cube must succeed on a Strength saving throw or become restrained until the spell ends. A restrained creature can use an action to make a Strength (Athletics) check against your spell save DC, ending the effect on itself on a success.\" + \"\\n   \" + toUni(\"Rocks\") + \": As a bonus action on your turn, you can cause a loose rock in the cube to launch at a creature you can see in the cube. Make a ranged spell attack against the target. On a hit, the target takes 3d8 nonmagical bludgeoning damage, and it must succeed on a Strength saving throw or fall prone.\"\r\n};\r\nSpellsList[\"zephyr strike\"] = { \r\n\tname : \"Zephyr Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Moving doesn't provoke opportunity atks; once: adv. on wea atk, +1d8 Force dmg, +30 ft spd for turn\",\r\n\tdescriptionShorter : \"Moving doesn't provoke opport. atks; once: adv. on wea atk, +1d8 Force dmg, +30 ft spd for turn\",\r\n\tdescriptionFull : \"You move like the wind. Until the spell ends, your movement doesn't provoke opportunity attacks.\" + \"\\n   \" + \"Once before the spell ends, you can give yourself advantage on one weapon attack roll on your turn. That attack deals an extra 1d8 force damage on a hit. Whether you hit or miss, your walking speed increases by 30 feet until the end of that turn.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\n\r\n// Add weapons (attack cantrips)\r\nWeaponsList[\"create bonfire\"] = {\r\n\tregExpSearch : /^(?=.*create)(?=.*bonfire).*$/i,\r\n\tname : \"Create Bonfire\",\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"5-ft cube; Dex save at casting or when moved into, success - no damage; Conc, 1 min\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"frostbite\"] = {\r\n\tregExpSearch : /frostbite/i,\r\n\tname : \"Frostbite\",\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"cold\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also disadv. on next weapon attack roll in next turn; 1 creature\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"infestation\"] = {\r\n\tregExpSearch : /infestation/i,\r\n\tname : \"Infestation\",\r\n\tsource : [[\"X\", 158]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"poison\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - target also moved 5 ft in random direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"magic stone\"] = {\r\n\tregExpSearch : /^(?=.*magic)(?=.*stone).*$/i,\r\n\tname : \"Magic Stone\",\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [1, 6, \"bludgeoning\"],\r\n\trange : \"60/120 ft\",\r\n\tdescription : \"Produces 3 stones that each can be thrown (60 ft) or hurled with a sling (120 ft) as a spell attack\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"primal savagery\"] = {\r\n\tregExpSearch : /^(?=.*primal)(?=.*savagery).*$/i,\r\n\tname : \"Primal Savagery\",\r\n\tsource : [[\"X\", 169]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"acid\"],\r\n\trange : \"Melee (5 ft)\",\r\n\tdescription : \"\",\r\n\tabilitytodamage : false\r\n};\r\nWeaponsList[\"thunderclap\"] = {\r\n\tregExpSearch : /thunderclap/i,\r\n\tname : \"Thunderclap\",\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"thunder\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; all creatures in area; audible in 100 ft\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"toll the dead\"] = {\r\n\tregExpSearch : /^(?=.*toll)(?=.*the)(?=.*dead).*$/i,\r\n\tname : \"Toll the Dead\",\r\n\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 12, \"necrotic\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Wis save, success - no damage; If target is at full HP, d8 instead of d12 damage\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"word of radiance\"] = {\r\n\tregExpSearch : /^(?=.*word)(?=.*radiance).*$/i,\r\n\tname : \"Word of Radiance\",\r\n\tsource : [[\"X\", 171]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"radiant\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; Only chosen creatures I can see are affected\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\r\n// Companion options (Find Greater Steed spell)\r\nCompanionList.steed = {\r\n\tname : \"Find Greater Steed\",\r\n\tnameTooltip : \"the Find Greater Steed spell\",\r\n\tnameOrigin : \"4th-level conjuration spell\",\r\n\tnameMenu : \"Greater steed (Find Greater Steed spell)\",\r\n\tsource : [[\"X\", 156]],\r\n\taction : [[\"action\", \"Find Greater Steed (dismiss)\"]],\r\n\tattributesAdd : {\r\n\t\theader : \"Mount\",\r\n\t\ttype : [\"Celestial\", \"Fey\", \"Fiend\"],\r\n\t\tsubtype : \"\",\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Find Greater Steed\",\r\n\t\t\tdescription : \"If dropped to 0 HP, the steed disappears, leaving behind no physical form.\"\r\n\t\t}],\r\n\t\tlanguages : \"understands one language its master speaks (master's choice)\"\r\n\t},\r\n\tattributesChange : function(sCrea, objCrea) {\r\n\t\tif (objCrea.scores[3] < 6) objCrea.scores[3] = 6;\r\n\t},\r\n\tnotes : function() {\r\n\t\tif (!CompanionList.mount) return;\r\n\t\tvar a = newObj(CompanionList.mount.notes);\r\n\t\ta[0].description = a[0].description.replace(/It assumes a chosen form.*/i, \"It has the chosen form: griffon, pegasus, peryton, dire wolf, rhinoceros, or saber-toothed tiger\");\r\n\t\treturn a;\r\n\t}()\r\n};\r\n\r\n// Add creatures\r\nCreatureList[\"tiny servant\"] = { // Stats for the Tiny Servant spell (contains contributions by SoilentBrad)\r\n\tname : \"Tiny Servant\",\r\n\tsource : [[\"X\", 169]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 10,\r\n\thd : [4, 4],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [4, 16, 10, 2, 10, 1],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius)\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"adamantine ammunition\"] = {\r\n\tname : \"Adamantine Ammunition\",\r\n\tsource : [[\"X\", 78]],\r\n\ttype : \"weapon (any ammunition)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Whenever a ammunition made or coated with adamantine hits an object, the hit is a critical hit. The adamantine version of ten pieces of ammunition costs 500 gp more than the normal version, whether the ammunition is made of the metal or coated with it.\",\r\n\tdescriptionFull : \"Ammunition made of or coated with adamantine is unusually effective when used to break objects. Whenever a piece of adamantine ammunition hits an object, the hit is a critical hit.\\n   The adamantine version of ten pieces of ammunition costs 500 gp more than the normal version, whether the ammunition is made of the metal or coated with it.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"ammo\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\titemName1stPage : [\"suffix\", \"Adamantine\"],\r\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"adamantine weapon\"] = {\r\n\tname : \"Adamantine Weapon\",\r\n\tsource : [[\"X\", 78]],\r\n\ttype : \"weapon (any melee)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Whenever a weapon made or coated with adamantine hits an object, the hit is a critical hit. The adamantine version of a melee weapon costs 500 gp more than the normal version, whether the weapon is made of the metal or coated with it.\",\r\n\tdescriptionFull : \"Melee weapons made of or coated with adamantine are unusually effective when used to break objects. Whenever an adamantine weapon hits an object, the hit is a critical hit.\\n   The adamantine version of a melee weapon costs 500 gp more than the normal version, whether the weapon is made of the metal or coated with it.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\titemName1stPage : [\"suffix\", \"Adamantine\"],\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn inObj.list != \"melee\";\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.list == \"melee\" && /adamantine/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Always critical hits on objects';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Adamantine\" in the name of a melee weapon, it will be treated as the magic item Adamantine Weapon. Whenever it hits an object, it automatically scores a critical hit.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"armor of gleaming\"] = {\r\n\tname : \"Armor of Gleaming\",\r\n\tnameTest : \"of Gleaming\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"armor (medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This armor never gets dirty.\",\r\n\tdescriptionFull : \"This armor never gets dirty.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/medium|heavy/i).test(inObj.type);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bead of nourishment\"] = {\r\n\tname : \"Bead of Nourishment\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once I can eat this spongy, flavorless, gelatinous bead. It dissolves on my tongue and provides as much nourishment as 1 day of rations.\",\r\n\tdescriptionFull : \"This spongy, flavorless, gelatinous bead dissolves on your tongue and provides as much nourishment as 1 day of rations.\"\r\n}\r\nMagicItemsList[\"bead of refreshment\"] = {\r\n\tname : \"Bead of Refreshment\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once I can drop this spongy, flavorless, gelatinous bead in liquid. It dissolves in the liquid and transforms up to a pint of it into fresh, cold drinking water. The bead has no effect on magical liquids or harmful substances such as poison.\",\r\n\tdescriptionFull : \"This spongy, flavorless, gelatinous bead dissolves in liquid, transforming up to a pint of the liquid into fresh, cold drinking water. The bead has no effect on magical liquids or harmful substances such as poison.\"\r\n}\r\nMagicItemsList[\"boots of false tracks\"] = {\r\n\tname : \"Boots of False Tracks\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Only humanoids can wear these boots. While wearing the boots, I can choose to have them leave tracks like those of another kind of humanoid of my size.\",\r\n\tdescriptionFull : \"Only humanoids can wear these boots. While wearing the boots, you can choose to have them leave tracks like those of another kind of humanoid of your size.\"\r\n}\r\nMagicItemsList[\"candle of the deep\"] = {\r\n\tname : \"Candle of the Deep\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"The flame of this candle is not extinguished when immersed in water. It gives off light and heat like a normal candle.\",\r\n\tdescriptionFull : \"The flame of this candle is not extinguished when immersed in water. It gives off light and heat like a normal candle.\"\r\n}\r\nMagicItemsList[\"cast-off armor\"] = {\r\n\tname : \"Cast-Off Armor\",\r\n\tnameTest : \"Cast-Off\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action, I can doff this armor.\",\r\n\tdescriptionFull : \"You can doff this armor as an action.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"charlatan's die\"] = {\r\n\tname : \"Charlatan's Die\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Whenever I roll this six-sided die, I can control which number it rolls.\",\r\n\tdescriptionFull : \"Whenever you roll this six-sided die, you can control which number it rolls.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"cloak of billowing\"] = {\r\n\tname : \"Cloak of Billowing\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a bonus action while wearing this cloak, I can make it billow dramatically.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can use a bonus action to make it billow dramatically.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"cloak of many fashions\"] = {\r\n\tname : \"Cloak of Many Fashions\",\r\n\tsource : [[\"X\", 136], [\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a bonus action while wearing this cloak, I can change its style, color, and apparent qualities. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can use a bonus action to change the style, color, and apparent quality of the garment. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"clockwork amulet\"] = {\r\n\tname : \"Clockwork Amulet\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once per dawn when I make an attack roll while wearing this copper amulet, I can forgo rolling the d20 to get a 10 on the die. The amulet contains tiny interlocking gears powered by magic from Mechanus, a plane of clockwork predictability. When I hold it up to my ear, I can hear faint ticking and whirring noises.\",\r\n\tdescriptionFull : \"This copper amulet contains tiny interlocking gears and is powered by magic from Mechanus, a plane of clockwork predictability. A creature that puts an ear to the amulet can hear faint ticking and whirring noises coming from within.\\n   When you make an attack roll while wearing the amulet, you can forgo rolling the d20 to get a 10 on the die. Once used, this property can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"clothes of mending\"] = {\r\n\tname : \"Clothes of Mending\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This elegant outfit of traveler's clothes magically mends itself to counteract daily wear and tear. Pieces of the outfit that are destroyed can't be repaired in this way.\",\r\n\tdescriptionFull : \"This elegant outfit of traveler's clothes magically mends itself to counteract daily wear and tear. Pieces of the outfit that are destroyed can't be repaired in this way.\",\r\n\tweight : 4\r\n}\r\nMagicItemsList[\"dark shard amulet\"] = {\r\n\tname : \"Dark Shard Amulet\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this amulet of extraplanar material from the realm of my warlock patron as a spellcasting focus for my warlock spells. Once per long rest, I can use it to cast a warlock cantrip that I don't know. To do so, I must make a DC 10 Intelligence (Arcana) check, wasting the attempt as well as my action if I fail.\",\r\n\tdescriptionFull : \"This amulet is fashioned from a single shard of resilient extraplanar material originating from the realm of your warlock patron. While you are wearing it, you gain the following benefits:\\n \\u2022 You can use the amulet as a spellcasting focus for your warlock spells.\\n \\u2022 You can try to cast a cantrip that you don't know. The cantrip must be on the warlock spell list, and you must make a DC 10 Intelligence (Arcana) check. If the check succeeds, you cast the spell. If the check fails, so does the spell, and the action used to cast the spell is wasted. In either case, you can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warlock\",\r\n\tprereqeval : function (v) { return classes.known.warlock ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility: \"warlock\",\r\n\tspellFirstColTitle: \"\",\r\n\tspellcastingPreparedCantrips: { 'class': 'warlock' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'warlock',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('dark shard amulet') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName.indexOf('dark shard amulet') !== -1) {\r\n\t\t\t\t\tspellObj.firstCol = \"\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n}\r\nMagicItemsList[\"dread helm\"] = {\r\n\tname : \"Dread Helm\",\r\n\tsource : [[\"X\", 137], [\"WBtW\", 209]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This fearsome steel helm makes my eyes glow red while I wear it.\",\r\n\tdescriptionFull : \"This fearsome steel helm makes your eyes glow red while you wear it.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"ear horn of hearing\"] = {\r\n\tname : \"Ear Horn of Hearing\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While held up to my ear, this horn suppresses the effects of the deafened condition on me, allowing me to hear normally.\",\r\n\tdescriptionFull : \"While held up to your ear, this horn suppresses the effects of the deafened condition on you, allowing you to hear normally.\",\r\n\tsavetxt : { immune : [\"deafened\"] },\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"enduring spellbook\"] = {\r\n\tname : \"Enduring Spellbook\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This spellbook, along with anything written on its pages, can't be damaged by fire or immersion in water. In addition, the spellbook doesn't deteriorate with age.\",\r\n\tdescriptionFull : \"This spellbook, along with anything written on its pages, can't be damaged by fire or immersion in water. In addition, the spellbook doesn't deteriorate with age.\",\r\n\tweight : 5\r\n}\r\nMagicItemsList[\"ersatz eye\"] = {\r\n\tname : \"Ersatz Eye\",\r\n\tsource : [[\"X\", 137], [\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in my eye socket, it can't be removed by anyone other than me, and I can see through the tiny orb as though it were a normal eye.\",\r\n\tdescriptionFull : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in your eye socket, it can't be removed by anyone other than you, and you can see through the tiny orb as though it were a normal eye.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"hat of vermin\"] = {\r\n\tname : \"Hat of Vermin\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This hat has 3 charges, regaining all at dawn. As an action while holding it, I can expend 1 charge and speak a command word to have one bat, frog, or rat appear in the hat. The creature acts as an ordinary member of its kind and disappears after 1 hour or when it has 0 HP. It is not under my control.\",\r\n\tdescriptionFull : \"This hat has 3 charges. While holding the hat, you can use an action to expend 1 of its charges and speak a command word that summons your choice of a bat, a frog, or a rat. The summoned creature magically appears in the hat and tries to get away from you as quickly as possible. The creature is neither friendly nor hostile, and it isn't under your control. It behaves as an ordinary creature of its kind and disappears after 1 hour or when it drops to 0 hit points. The hat regains all expended charges daily at dawn.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"hat of wizardry\"] = {\r\n\tname : \"Hat of Wizardry\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this antiquated, cone-shaped hat adorned with gold crescent moons and stars as a spellcasting focus for my wizard spells. Once per long rest, I can use it to cast a wizard cantrip that I don't know. To do so, I must make a DC 10 Intelligence (Arcana) check, wasting the attempt as well as my action if I fail.\",\r\n\tdescriptionFull : \"This antiquated, cone-shaped hat is adorned with gold crescent moons and stars. While you are wearing it, you gain the following benefits:\\n \\u2022 You can use the hat as a spellcasting focus for your wizard spells.\\n \\u2022 You can try to cast a cantrip that you don't know. The cantrip must be on the wizard spell list, and you must make a DC 10 Intelligence (Arcana) check. If the check succeeds, you cast the spell. If the check fails, so does the spell, and the action used to cast the spell is wasted. In either case, you can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility: \"wizard\",\r\n\tspellFirstColTitle: \"\",\r\n\tspellcastingPreparedCantrips: { 'class': 'wizard' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'wizard',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('hat of wizardry') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName.indexOf('hat of wizardry') !== -1) {\r\n\t\t\t\t\tspellObj.firstCol = \"\";\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n}\r\nMagicItemsList[\"heward's handy spice pouch\"] = {\r\n\tname : \"Heward's Handy Spice Pouch\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This belt pouch appears empty. It has 10 charges, regaining 1d6+4 expended charges at dawn. As an action while holding it, I can speak the name of any nonmagical food seasoning (e.g. salt, pepper, or saffron), and remove a pinch of the desired seasoning from the pouch. A pinch is enough to season a single meal.\",\r\n\tdescriptionFull : \"This belt pouch appears empty and has 10 charges. While holding the pouch, you can use an action to expend 1 of its charges, speak the name of any nonmagical food seasoning (such as salt, pepper, saffron, or cilantro), and remove a pinch of the desired seasoning from the pouch. A pinch is enough to season a single meal. The pouch regains 1d6+4 expended charges daily at dawn.\",\r\n\tweight : 1,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"horn of silent alarm\"] = {\r\n\tname : \"Horn of Silent Alarm\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This horn has 4 charges, regaining 1d4 expended charges daily at dawn. As an action, I can expend 1 charge and blow it, have only one creature within 600 ft of my choice hear the horn's blare, provided it isn't deafened. No other creature hears sound coming from the horn.\",\r\n\tdescriptionFull : \"This horn has 4 charges. When you use an action to blow it, one creature of your choice can hear the horn's blare, provided the creature is within 600 feet of the horn and not deafened. No other creature hears sound coming from the horn. The horn regains 1d4 expended charges daily at dawn.\",\r\n\tweight : 2,\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"instrument of illusions\"] = { // contains contributions by AelarTheElFRogue\r\n\tname : \"Instrument of Illusions\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"common\",\r\n\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 5-ft-radius (15-ft for bards) sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\",\r\n\tdescriptionFull : \"While you are playing this musical instrument, you can create harmless, illusory visual effects within a 5-foot-radius sphere centered on the instrument. If you are a bard, the radius increases to 15 feet. Sample visual effects include luminous musical notes, a spectral dancer, butterflies, and gently falling snow. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when you stop playing.\",\r\n\tattunement : true,\r\n\tweight : 3, // same as instrument of the bards\r\n\tchoices : [\"Bard (15-ft radius)\", \"Not a Bard (5-ft radius)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.bard ? \"bard (15-ft radius)\" : \"not a bard (5-ft radius)\";\r\n\t},\r\n\t\"bard (15-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A of Illusions\",\r\n\t\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 15-ft-radius sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\"\r\n\t},\r\n\t\"not a bard (5-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A\\u200A of Illusions\",\r\n\t\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 5-ft-radius sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\"\r\n\t}\r\n}\r\nMagicItemsList[\"instrument of scribing\"] = {\r\n\tname : \"Instrument of Scribing\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 (or 7) words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\",\r\n\tdescriptionFull : \"This musical instrument has 3 charges. While you are playing it, you can use an action to expend 1 charge from the instrument and write a magical message on a nonmagical object or surface that you can see within 30 feet of you. The message can be up to six words long and is written in a language you know. If you are a bard, you can scribe an additional seven words and choose to make the message glow faintly, allowing it to be seen in nonmagical darkness. Casting Dispel Magic on the message erases it. Otherwise, the message fades away after 24 hours.\\n   The instrument regains all expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tweight : 3, // same as instrument of the bards\r\n\tchoices : [\"Bard (15-ft radius)\", \"Not a Bard (5-ft radius)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.bard ? \"bard (15-ft radius)\" : \"not a bard (5-ft radius)\";\r\n\t},\r\n\t\"bard (15-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A of Scribing\",\r\n\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 7 words in a language I know and I can have it glow faintly. Dispel Magic erases it, otherwise it fades away after 24 hours. This can be used 3 times per dawn.\"\r\n\t},\r\n\t\"not a bard (5-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A\\u200A of Scribing\",\r\n\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\"\r\n\t}\r\n}\r\nMagicItemsList[\"lock of trickery\"] = {\r\n\tname : \"Lock of Trickery\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This lock appears to be an ordinary lock and comes with a single key. The tumblers in this lock magically adjust to thwart burglars. Without the key, a creature proficient with thieves' tools can pick this lock with a successful DC 15 Dexterity check, but has disadvantage on that check.\",\r\n\tdescriptionFull : \"This lock appears to be an ordinary lock and comes with a single key. The tumblers in this lock magically adjust to thwart burglars. Dexterity checks made to pick the lock have disadvantage. Thus, without the key, a creature proficient with thieves' tools can pick this lock with a successful DC 15 Dexterity check, but has disadvantage on that check.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"moon-touched sword\"] = {\r\n\tname : \"Moon-Touched Sword\",\r\n\tnameTest : \"Moon-Touched\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"common\",\r\n\tdescription : \"In darkness, the unsheathed blade of this sword sheds moonlight, creating bright light in a 15-ft radius and dim light for an additional 15 ft.\",\r\n\tdescriptionFull : \"In darkness, the unsheathed blade of this sword sheds moonlight, creating bright light in a 15-foot radius and dim light for an additional 15 feet.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /moon.touched/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Moon-Touched\" in the name of a sword, it will be treated as the magic weapon Moon-Touched Sword.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"mystery key\"] = {\r\n\tname : \"Mystery Key\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"A question mark is worked into the head of this key. The key has a 5% chance of unlocking any lock into which it's inserted. Once it unlocks something, the key disappears.\",\r\n\tdescriptionFull : \"A question mark is worked into the head of this key. The key has a 5% chance of unlocking any lock into which it's inserted. Once it unlocks something, the key disappears.\"\r\n}\r\nMagicItemsList[\"orb of direction\"] = {\r\n\tname : \"Orb of Direction\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this orb, I can determine which way is north. This property functions only on the Material Plane.\",\r\n\tdescriptionFull : \"While holding this orb, you can use an action to determine which way is north. This property functions only on the Material Plane.\",\r\n\tweight : 3,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"orb of time\"] = {\r\n\tname : \"Orb of Time\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this orb, I can determine whether it is morning, afternoon, evening, or nighttime outside. This property functions only on the Material Plane.\",\r\n\tdescriptionFull : \"While holding this orb, you can use an action to determine whether it is morning, afternoon, evening, or nighttime outside. This property functions only on the Material Plane.\",\r\n\tweight : 3,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"perfume of bewitching\"] = {\r\n\tname : \"Perfume of Bewitching\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can apply the perfume in this tiny vial to myself and its effect lasts 1 hour. For the duration, I have advantage on all Charisma checks directed at humanoids of challenge rating 1 or lower. Those subjected to the perfume's effect are not aware that they've been influenced by magic.\",\r\n\tdescriptionFull : \"This tiny vial contains magic perfume, enough for one use. You can use an action to apply the perfume to yourself, and its effect lasts 1 hour. For the duration, you have advantage on all Charisma checks directed at humanoids of challenge rating 1 or lower. Those subjected to the perfume's effect are not aware that they've been influenced by magic.\"\r\n}\r\nMagicItemsList[\"pipe of smoke monsters\"] = {\r\n\tname : \"Pipe of Smoke Monsters\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while smoking this pipe, I can exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-ft cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\",\r\n\tdescriptionFull : \"While smoking this pipe, you can use an action to exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-foot cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\"\r\n}\r\nMagicItemsList[\"pole of angling\"] = {\r\n\tname : \"Pole of Angling\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While holding this 10 ft pole, I can speak a command word and transform it into a fishing pole with a hook, a line, and a reel. Speaking the command word again changes the fishing pole back into a normal 10 ft pole.\",\r\n\tdescriptionFull : \"While holding this 10-foot pole, you can speak a command word and transform it into a fishing pole with a hook, a line, and a reel. Speaking the command word again changes the fishing pole back into a normal 10-foot pole.\",\r\n\tweight : 7\r\n}\r\nMagicItemsList[\"pole of collapsing\"] = {\r\n\tname : \"Pole of Collapsing\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this 10 ft pole, I can speak a command word to have it collapse into a 1-ft-long rod. The pole's weight doesn't change. As an action while holding the rod, I can speak a different command word to have it elongate back to a pole, but only as long as the surrounding space allows.\",\r\n\tdescriptionFull : \"While holding this 10-foot pole, you can use an action to speak a command word and cause it to collapse into a 1-foot-long rod, for ease of storage. The pole's weight doesn't change. You can use an action to speak a different command word and cause the rod to revert to a pole; however, the rod will elongate only as far as the surrounding space allows.\",\r\n\tweight : 7,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"pot of awakening\"] = {\r\n\tname : \"Pot of Awakening\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I plant an ordinary shrub in this 10 lb clay pot and let it grow for 30 days, the shrub magically transforms into an awakened shrub at the end of that time. When the shrub awakens, its roots break the pot, destroying it. The awakened shrub is friendly toward me. Absent commands from me, it does nothing.\",\r\n\tdescriptionFull : \"If you plant an ordinary shrub in this 10-pound clay pot and let it grow for 30 days, the shrub magically transforms into an awakened shrub at the end of that time. When the shrub awakens, its roots break the pot, destroying it.\\n   The awakened shrub is friendly toward you. Absent commands from you, it does nothing.\",\r\n\tweight : 10\r\n}\r\nMagicItemsList[\"rope of mending\"] = {\r\n\tname : \"Rope of Mending\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can cut this 50-foot coil of hempen rope into any number of smaller pieces, and then use an action to speak a command word and cause the pieces to knit back together. The pieces must be in contact with each other and not otherwise in use. A rope of mending is forever shortened if a section of it is lost.\",\r\n\tdescriptionFull : \"You can cut this 50-foot coil of hempen rope into any number of smaller pieces, and then use an action to speak a command word and cause the pieces to knit back together. The pieces must be in contact with each other and not otherwise in use. A rope of mending is forever shortened if a section of it is lost or destroyed.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweight : 10\r\n}\r\nMagicItemsList[\"ruby of the war mage\"] = {\r\n\tname : \"Ruby of the War Mage\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"By pressing this 1-inch-diameter ruby etched with eldritch runes to a simple or martial weapon for 10 minutes, it attaches itself to the weapon. I can then use that weapon as a spellcasting focus. Once attached, it can't be removed unless my attunement ends, I detach it as an action, or the weapon is destroyed.\",\r\n\tdescriptionFull : \"Etched with eldritch runes, this 1-inch-diameter ruby allows you to use a simple or martial weapon as a spellcasting focus for your spells. For this property to work, you must attach the ruby to the weapon by pressing the ruby against it for at least 10 minutes. Thereafter, the ruby can't be removed unless you detach it as an action or the weapon is destroyed. Not even an Antimagic Field causes it to fall off. The ruby does fall off the weapon if your attunement to the ruby ends.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; }\r\n}\r\nMagicItemsList[\"shield of expression\"] = {\r\n\tname : \"Shield of Expression\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"shield\",\r\n\trarity : \"common\",\r\n\tdescription : \"The front of this shield is shaped in the likeness of a face. As a bonus action while bearing the shield, I can have the shield alter the expression of the face.\",\r\n\tdescriptionFull : \"The front of this shield is shaped in the likeness of a face. While bearing the shield, you can use a bonus action to alter the face's expression.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Shield of Expression\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"smoldering armor\"] = {\r\n\tname : \"Smoldering Armor\",\r\n\tnameTest : \"Smoldering\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"Wisps of harmless, odorless smoke rise from this armor while it is worn.\",\r\n\tdescriptionFull : \"Wisps of harmless, odorless smoke rise from this armor while it is worn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t}\r\n}\r\nMagicItemsList[\"staff of adornment\"] = {\r\n\tname : \"Staff of Adornment\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I place an object up to 1 lb above the tip of the staff while holding it, the object floats 1 inch from its tip and remains there until it is removed or until I no longer possess the staff. It can have up to three objects floating over its tip at any given time and I can make one or more objects slowly spin or turn in place.\",\r\n\tdescriptionFull : \"If you place an object weighing no more than 1 pound (such as a shard of crystal, an egg, or a stone) above the tip of the staff while holding it, the object floats an inch from the staff's tip and remains there until it is removed or until the staff is no longer in your possession. The staff can have up to three such objects floating over its tip at any given time. While holding the staff, you can make one or more of the objects slowly spin or turn in place.\",\r\n\tweight : 4\r\n}\r\nMagicItemsList[\"staff of birdcalls\"] = {\r\n\tname : \"Staff of Birdcalls\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"This staff has 10 charges, regaining 1d6+4 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can use 1 charge to create a sound out to a range of 60 ft: a finch's chirp, raven's caw, duck's quack, chicken's cluck, goose's honk, loon's call, turkey's gobble, seagull's cry, owl's hoot, or eagle's shriek.\",\r\n\tdescriptionFull : \"This wooden staff is decorated with bird carvings. It has 10 charges. While holding it, you can use an action to expend 1 charge from the staff and cause it to create one of the following sounds out to a range of 60 feet: a finch's chirp, a raven's caw, a duck's quack, a chicken's cluck, a goose's honk, a loon's call, a turkey's gobble, a seagull's cry, an owl's hoot, or an eagle's shriek.\\n   The staff regains 1d6+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff explodes in a harmless cloud of bird feathers and is lost forever.\",\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"staff of flowers\"] = {\r\n\tname : \"Staff of Flowers\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"This staff has 10 charges, regaining 1d6+4 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can use 1 charge to cause a flower of my choice to sprout from a patch of earth or soil within 5 ft or from the staff itself. The flower is nonmagical and grows or withers as a normal flower would.\",\r\n\tdescriptionFull : \"This wooden staff has 10 charges. While holding it, you can use an action to expend 1 charge from the staff and cause a flower to sprout from a patch of earth or soil within 5 feet of you, or from the staff itself. Unless you choose a specific kind of flower, the staff creates a mildscented daisy. The flower is harmless and nonmagical, and it grows or withers as a normal flower would. The staff regains 1d6+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff turns into flower petals and is lost forever.\",\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"talking doll\"] = {\r\n\tname : \"Talking Doll\",\r\n\tsource : [[\"X\", 139], [\"WBtW\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"During a short rest with this doll within 5 ft of me, I can tell it to say up to 6 phrases of up to 6 words each, and set an observable condition under which the doll speaks each phrase. Conditions must happen within 5 ft of the doll. The doll can remember only 6 phrases that are lost when my attunement to it ends.\",\r\n\tdescriptionFull : \"While this stuffed doll is within 5 feet of you, you can spend a short rest telling it to say up to six phrases, none of which can be more than six words long, and set an observable condition under which the doll speaks each phrase. You can also replace old phrases with new ones. Whatever the condition, it must occur within 5 feet of the doll to make it speak. For example, whenever someone picks up the doll, it might say, \\\"I want a piece of candy.\\\" The doll's phrases are lost when your attunement to the doll ends.\"\r\n}\r\nMagicItemsList[\"tankard of sobriety\"] = {\r\n\tname : \"Tankard of Sobriety\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This tankard has a stern face sculpted into one side. I can drink ale, wine, or any other nonmagical alcoholic beverage poured into it without becoming inebriated. The tankard has no effect on magical liquids or harmful substances such as poison.\",\r\n\tdescriptionFull : \"This tankard has a stern face sculpted into one side. You can drink ale, wine, or any other nonmagical alcoholic beverage poured into it without becoming inebriated. The tankard has no effect on magical liquids or harmful substances such as poison.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"unbreakable arrow\"] = {\r\n\tname : \"Unbreakable Arrow\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"weapon (arrow)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This arrow can't be broken, except when it is within an Antimagic Field.\",\r\n\tdescriptionFull : \"This arrow can't be broken, except when it is within an Antimagic Field.\",\r\n\tweight : 0.05\r\n}\r\nMagicItemsList[\"veteran's cane\"] = {\r\n\tname : \"Veteran's Cane\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as a bonus action, I can grasp this walking cane and speak its command word to have it transform into an ordinary longsword. Once transformed, the longsword is nonmagical and can't revert back to a walking cane.\",\r\n\tdescriptionFull : \"When you grasp this walking cane and use a bonus action to speak the command word, it transforms into an ordinary longsword and ceases to be magical.\",\r\n\tweight : 4,\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"walloping ammunition\"] = {\r\n\tname : \"Walloping Ammunition\",\r\n\tnameTest : \"Walloping\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"weapon (any ammunition)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This magic ammunition packs a wallop. A creature hit by the ammunition must succeed on a DC 10 Strength saving throw or be knocked prone.\",\r\n\tdescriptionFull : \"This ammunition packs a wallop. A creature hit by the ammunition must succeed on a DC 10 Strength saving throw or be knocked prone.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"ammo\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"wand of conducting\"] = {\r\n\tname : \"Wand of Conducting\",\r\n\tsource : [[\"X\", 140]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regaining all at dawn. As an action, I can wave it around and expend 1 charge to create orchestral music that can be heard out to a range of 60 ft and ends when I stop waving the wand. If I use its last charge, roll a d20. On a 1, a sad tuba sound plays as the wand crumbles to dust.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and create orchestral music by waving it around. The music can be heard out to a range of 60 feet and ends when you stop waving the wand.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, a sad tuba sound plays as the wand crumbles to dust and is destroyed.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"wand of pyrotechnics\"] = {\r\n\tname : \"Wand of Pyrotechnics\",\r\n\tsource : [[\"X\", 140]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 7 charges, regaining 1d6+1 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can expend 1 charge to create a harmless burst of sound light at a point I can see up to 60 ft away, with the noise travelling 300 ft. The light is as bright as a torch flame but lasts only a second.\",\r\n\tdescriptionFull : \"This wand has 7 charges. While holding it, you can use an action to expend 1 of its charges and create a harmless burst of multicolored light at a point you can see up to 60 feet away. The burst of light is accompanied by a crackling noise that can be heard up to 300 feet away. The light is as bright as a torch flame but lasts only a second.\\n   The wand regains 1d6+1 expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand erupts in a harmless pyrotechnic display and is destroyed.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 7,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+1\"\r\n}\r\nMagicItemsList[\"wand of scowls\"] = {\r\n\tname : \"Wand of Scowls\",\r\n\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to scowl for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to scowl for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"wand of smiles\"] = {\r\n\tname : \"Wand of Smiles\",\r\n\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to smile for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to smile for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\n\n// pub_20180529_MToF.js\n// This file adds all the player-material from Mordenkainen's Tome of Foes to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.MToF={\n\tname : \"Mordenkainen's Tome of Foes\",\n\tabbreviation : \"MToF\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://dnd.wizards.com/products/mordenkainens-tome-foes\",\n\tdate : \"2018/05/29\"\n};\n\n// Tiefling subraces\nRaceList[\"baalzebul tiefling\"] = {\n\tregExpSearch : /^(?=.*baalzebul)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Baalzebul tiefling\",\n\tsortname : \"Tiefling, Baalzebul\",\n\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\n\tplural : \"Baalzebul tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Baalzebul Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Maladomini:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Ray of Sickness once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Crown of Madness once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Maladomini (1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"ray of sickness\" : {\n\t\t\tname : \"Legacy of Maladomini (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Maladomini (3)\",\n\t\t\t\tspells : [\"ray of sickness\"],\n\t\t\t\tselection : [\"ray of sickness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"ray of sickness\" : {\n\t\t\t\t\tdescription : \"Spell attack for 3d8 Poison dmg; save or also poisoned until end of my next turn\",\n\t\t\t\t\tchanges : \"Using Legacy of Maladomini, I cast Ray of Sickness as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"crown of madness\" : {\n\t\t\tname : \"Legacy of Maladomini (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Maladomini (5)\",\n\t\t\t\tspells : [\"crown of madness\"],\n\t\t\t\tselection : [\"crown of madness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"dispater tiefling\"] = {\n\tregExpSearch : /^(?=.*dispater)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Dispater tiefling\",\n\tsortname : \"Tiefling, Dispater\",\n\tsource : [[\"MToF\", 21]],\n\tplural : \"Dispater tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 0, 2],\n\ttrait : \"Dispater Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Dis:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Disguise Self once per long rest.\\n   At 5th level, I can also cast Detect Thoughts once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Dis (level 1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"disguise self\" : {\n\t\t\tname : \"Legacy of Dis (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Dis (level 3)\",\n\t\t\t\tspells : [\"disguise self\"],\n\t\t\t\tselection : [\"disguise self\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t},\n\t\t\"detect thoughts\" : {\n\t\t\tname : \"Legacy of Dis (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Dis (level 5)\",\n\t\t\t\tspells : [\"detect thoughts\"],\n\t\t\t\tselection : [\"detect thoughts\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"fierna tiefling\"] = {\n\tregExpSearch : /^(?=.*fierna)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Fierna tiefling\",\n\tsortname : \"Tiefling, Fierna\",\n\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\n\tplural : \"Fierna tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 0, 1, 2],\n\ttrait : \"Fierna Tiefling (+1 Wisdom, +2 Charisma)\\n\\nLegacy of Phlegethos:\\n   I know the Friends cantrip.\\n   At 3rd level, I can cast Charm Person once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Suggestion once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Phlegethos (1)\",\n\t\tspells : [\"friends\"],\n\t\tselection : [\"friends\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"charm person\" : {\n\t\t\tname : \"Legacy of Phlegethos (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Phlegethos (3)\",\n\t\t\t\tspells : [\"charm person\"],\n\t\t\t\tselection : [\"charm person\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"charm person\" : {\n\t\t\t\t\tdescription : \"2 humanoids, max 30 ft apart, save or charmed; adv. on save if me/ally is fighting it\",\n\t\t\t\t\tchanges : \"Using Legacy of Phlegethos, I cast Charm Person as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"suggestion\" : {\n\t\t\tname : \"Legacy of Phlegethos (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Phlegethos (5)\",\n\t\t\t\tspells : [\"suggestion\"],\n\t\t\t\tselection : [\"suggestion\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"glasya tiefling\"] = {\n\tregExpSearch : /^(?=.*glasya)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Glasya tiefling\",\n\tsortname : \"Tiefling, Glasya\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Glasya tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 0, 2],\n\ttrait : \"Glasya Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Malbolge:\\n   I know the Minor Illusion cantrip.\\n   At 3rd level, I can cast Disguise Self once per long rest.\\n   At 5th level, I can also cast Invisibility once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Malbolge (1)\",\n\t\tspells : [\"minor illusion\"],\n\t\tselection : [\"minor illusion\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"disguise self\" : {\n\t\t\tname : \"Legacy of Malbolge (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Malbolge (3)\",\n\t\t\t\tspells : [\"disguise self\"],\n\t\t\t\tselection : [\"disguise self\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t},\n\t\t\"invisibility\" : {\n\t\t\tname : \"Legacy of Malbolge (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Malbolge (5)\",\n\t\t\t\tspells : [\"invisibility\"],\n\t\t\t\tselection : [\"invisibility\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"levistus tiefling\"] = {\n\tregExpSearch : /^(?=.*levistus)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Levistus tiefling\",\n\tsortname : \"Tiefling, Levistus\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Levistus tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 1, 0, 0, 2],\n\ttrait : \"Levistus Tiefling (+1 Constitution, +2 Charisma)\\n\\nLegacy of Stygia:\\n   I know the Ray of Frost cantrip.\\n   At 3rd level, I can cast Armor of Agathys once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Darkness once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Stygia (1)\",\n\t\tspells : [\"ray of frost\"],\n\t\tselection : [\"ray of frost\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"armor of agathys\" : {\n\t\t\tname : \"Legacy of Stygia (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Stygia (3)\",\n\t\t\t\tspells : [\"armor of agathys\"],\n\t\t\t\tselection : [\"armor of agathys\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"armor of agathys\" : {\n\t\t\t\t\tdescription : \"10 temp HP; as long as temp HP last any crea that hits in melee takes 10 Cold dmg\",\n\t\t\t\t\tchanges : \"Using Legacy of Stygia, I cast Armor of Agathys as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"darkness\" : {\n\t\t\tname : \"Legacy of Stygia (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Stygia (5)\",\n\t\t\t\tspells : [\"darkness\"],\n\t\t\t\tselection : [\"darkness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"mammon tiefling\"] = {\n\tregExpSearch : /^(?=.*mammon)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Mammon tiefling\",\n\tsortname : \"Tiefling, Mammon\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Mammon tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Mammon Tiefling (+1 Intelligence, +2 Charisma)\\nLegacy of Minauros:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast Tenser's Floating Disk once per short rest.\\n   At 5th level, I can also cast Arcane Lock without a material component once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Minauros (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"tenser's floating disk\" : {\n\t\t\tname : \"Legacy of Minauros (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Minauros (3)\",\n\t\t\t\tspells : [\"tenser's floating disk\"],\n\t\t\t\tselection : [\"tenser's floating disk\"],\n\t\t\t\tfirstCol : 'oncesr'\n\t\t\t}]\n\t\t},\n\t\t\"arcane lock\" : {\n\t\t\tname : \"Legacy of Minauros (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Minauros (5)\",\n\t\t\t\tspells : [\"arcane lock\"],\n\t\t\t\tselection : [\"arcane lock\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"arcane lock\" : {\n\t\t\t\t\tcomponents : \"V,S\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nRaceList[\"mephistopheles tiefling\"] = {\n\tregExpSearch : /^(?=.*mephistopheles)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Mephistopheles tiefling\",\n\tsortname : \"Tiefling, Mephistopheles\",\n\tsource : [[\"MToF\", 23]],\n\tplural : \"Mephistopheles tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Mephistopheles Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Cania:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast Burning Hands once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Flame Blade once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Cania (level 1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"burning hands\" : {\n\t\t\tname : \"Legacy of Cania (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Cania (level 3)\",\n\t\t\t\tspells : [\"burning hands\"],\n\t\t\t\tselection : [\"burning hands\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"burning hands\" : {\n\t\t\t\t\tdescription : \"All in area 4d6 Fire dmg; save halves; unattended flammable objects ignite\",\n\t\t\t\t\tchanges : \"Using Legacy of Cania, I cast Burning Hands as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"flame blade\" : {\n\t\t\tname : \"Legacy of Cania (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Cania (level 5)\",\n\t\t\t\tspells : [\"flame blade\"],\n\t\t\t\tselection : [\"flame blade\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"zariel tiefling\"] = {\n\tregExpSearch : /^(?=.*zariel)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Zariel tiefling\",\n\tsortname : \"Tiefling, Zariel\",\n\tsource : [[\"MToF\", 23], [\"UA:FO\", 2]],\n\tplural : \"Zariel tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [1, 0, 0, 0, 0, 2],\n\ttrait : \"Zariel Tiefling (+1 Strength, +2 Charisma)\\n\\nLegacy of Avernus:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Searing Smite once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Branding Smite once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Avernus (1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"searing smite\" : {\n\t\t\tname : \"Legacy of Avernus (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Avernus (3)\",\n\t\t\t\tspells : [\"searing smite\"],\n\t\t\t\tselection : [\"searing smite\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"searing smite\" : {\n\t\t\t\t\tdescription : \"Next melee weapon hit +2d6 Fire dmg and target ignites; save to end spell or 1d6 Fire dmg\",\n\t\t\t\t\tchanges : \"Using Legacy of Avernus, I cast Searing Smite as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"branding smite\" : {\n\t\t\tname : \"Legacy of Avernus (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Avernus (5)\",\n\t\t\t\tspells : [\"branding smite\"],\n\t\t\t\tselection : [\"branding smite\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\n\n// Elf subraces\nRaceList[\"eladrin-mtof\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\n\tname : \"Eladrin\",\n\tsortname : \"Elf, Fey (Eladrin)\",\n\tsource : [[\"MToF\", 61]],\n\tplural : \"Eladrin\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 0, 0, 0, 1],\n\tabilitySave : 6,\n\ttrait : \"Eladrin (+2 Dexterity, +1 Charisma)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\",\n\t\t\"Fey Step: Once per short rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. Once I reach 3rd level, this gains an additional effect, based on the current season I'm aligned with. See the third page notes section for the effects.\",\n\t\t\"Shifting Seasons: After I finish a long rest, I can align myself with a season of my choice.\"\n\t]),\n\tfeatures : {\n\t\t\"fey step\" : {\n\t\t\tname : \"Fey Step\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Eladrin Season Features\",\n\t\tsource : [[\"MToF\", 62]],\n\t\tpopupName : \"Eladrin Shifting Season Features\",\n\t\tadditional : \"save DC 8 + Cha mod + Prof Bonus\",\n\t\tpage3notes : true,\n\t\tnote : \"\\n  \\u2022 Autumn (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" After using Fey Step, up to 2 creatures I can see within 10 ft of me must make a Wis save\",\n\t\t\t\" If failed, a target is charmed by me for 1 minute, or until I or my allies damage it\"\n\t\t]) + \"\\n  \\u2022 Winter (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" When I use Fey Step, one target in 5 ft of where I teleported from must make a Wis save\",\n\t\t\t\" If failed, it is frightened of me until the end of my next turn\"\n\t\t]) + \"\\n  \\u2022 Spring (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" When I use Fey Step, I can instead teleport one willing creature I touch within 5 ft of me\",\n\t\t\t\" It teleports to an unoccupied space of my choice that I can see within 30 ft of me\"\n\t\t]) + \"\\n  \\u2022 Summer (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" After using Fey Step, each creature of my choice within 5 ft of me takes fire damage\",\n\t\t\t\" This fire damage is equal to my Charisma modifier (minimum 1)\"\n\t\t])\n\t}]\n};\nRaceList[\"sea elf\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\n\tname : \"Sea elf\",\n\tsortname : \"Elf, Sea\",\n\tsource : [[\"MToF\", 62], [\"W\", 163], [\"UA:ES\", 1]],\n\tplural : \"Sea elves\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 30, enc : 20 }\n\t},\n\tweaponProfs : [false, false, [\"spear\", \"trident\", \"light crossbow\", \"net\"]],\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Aquan\", \"Friend of the Sea\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to almost 1,8 metres tall (140 + 5d8 cm)\",\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Sea Elf (+2 Dexterity, +1 Constitution)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\",\n\t\t\"Child of the Sea. I have 30 ft swimming speed and can breathe air and water.\",\n\t\t\"Friend of the Sea: Through sounds and gestures, I can communicate simple ideas with any beast that has an inborn swimming speed.\"\n\t])\n};\nRaceList[\"shadar-kai elf\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\n\tname : \"Shadar-kai\",\n\tsortname : \"Elf, Shadow (Shadar-kai)\",\n\tsource : [[\"MToF\", 62]],\n\tplural : \"Shadar-kai\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tdmgres : [\"Necrotic\"],\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to over 6 feet tall (4'8\\\" + 2d8\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Shadar-kai (+2 Dexterity, +1 Constitution)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\",\n\t\t\"Blessing of the Raven Queen: Once per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\",\n\t\t\"Once I reach 3rd level, after I use the Blessing of the Raven Queen, I appear translucent and have resistance to all damage until the start of my next turn.\"\n\t]),\n\tfeatures : {\n\t\t\"blessing of the raven queen\" : {\n\t\t\tname : \"Blessing of the Raven Queen\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t}\n};\n\n// Gith and its two subraces\nRaceList[\"githyanki-mtof\"] = {\n\tregExpSearch : /githyanki/i,\n\tname : \"Githyanki\",\n\tsource : [[\"MToF\", 96]],\n\tplural : \"Githyanki\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Gith\", 1],\n\tarmorProfs : [true, true, false, false],\n\tweaponProfs : [false, false, [\"shortsword\", \"longsword\", \"greatsword\"]],\n\tskillstxt : \"Choose any one skill or tool\",\n\tage : \" reach adulthood in their late teens and live for about a century\",\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (5'0\\\" + 2d12\\\")\",\n\tweight : \" weigh around 135 lb (100 + 2d12 \\xD7 2d4 lb)\",\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\n\tweightMetric : \" weigh around 61 kg (45 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [2, 0, 0, 1, 0, 0],\n\ttrait : \"Githyanki (+2 Strength, +1 Intelligence)\\n\" + (typePF ? \"\\n\" : \"\") + \"Githyanki Psionics:\" + desc([\n\t\t\"I know the Mage Hand cantrip, but the hand is invisible.\",\n\t\t\"At 3rd level, I can cast Jump once per long rest.\",\n\t\t\"At 5th level, I can also cast Misty Step once per long rest.\",\n\t\t\"Intelligence is my spellcasting ability for these spells.\",\n\t\t\"I don't require components to cast these spells.\"\n\t]),\n\tspellcastingAbility : 4,\n\tspellcastingBonus : [{\n\t\tname : \"Githyanki Psionics (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"mage hand\" : {\n\t\t\tcomponents : \"\",\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\n\t\t\tchanges : \"Using Githyanki Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\n\t\t}\n\t},\n\tfeatures : {\n\t\t\"jump\" : {\n\t\t\tname : \"Githyanki Psionics (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githyanki Psionics (3)\",\n\t\t\t\tspells : [\"jump\"],\n\t\t\t\tselection : [\"jump\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"jump\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Jump once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"misty step\" : {\n\t\t\tname : \"Githyanki Psionics (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githyanki Psionics (5)\",\n\t\t\t\tspells : [\"misty step\"],\n\t\t\t\tselection : [\"misty step\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"misty step\" : {\n\t\t\t\t\tcomponents : SpellsList[\"misty step\"].components + \"*\",\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Misty Step once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"githyanki-mtof\", \"tool proficiency\", {\n\tregExpSearch : /tool proficiency/i,\n\tskillstxt : \"\",\n\ttoolProfs : [[\"Any tool\", 1]]\n});\nAddRacialVariant(\"githyanki-mtof\", \"skill proficiency\", {\n\tregExpSearch : /skill proficiency/i,\n\tskillstxt : \"Choose any one skill\"\n});\nRaceList[\"githzerai-mtof\"] = {\n\tregExpSearch : /githzerai/i,\n\tname : \"Githzerai\",\n\tsource : [[\"MToF\", 96]],\n\tplural : \"Githzerai\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Gith\"],\n\tage : \" reach adulthood in their late teens and live for about a century\",\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (4'11\\\" + 2d12\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 2, 0],\n\ttrait : \"Githzerai (+1 Intelligence, +2 Wisdom)\\n\" + (typePF ? \"\\n\" : \"\") + \"Githzerai Psionics:\" + desc([\n\t\t\"I know the Mage Hand cantrip, but the hand is invisible.\",\n\t\t\"At 3rd level, I can cast Shield once per long rest.\",\n\t\t\"At 5th level, I can also cast Detect Thoughts once per long rest.\",\n\t\t\"Wisdom is my spellcasting ability for these spells.\",\n\t\t\"I don't require components to cast these spells.\"\n\t]),\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\n\tspellcastingAbility : 5,\n\tspellcastingBonus : [{\n\t\tname : \"Githzerai Psionics (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"mage hand\" : {\n\t\t\tcomponents : \"\",\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\n\t\t\tchanges : \"Using Githzerai Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\n\t\t}\n\t},\n\tfeatures : {\n\t\t\"shield\" : {\n\t\t\tname : \"Githzerai Psionics (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githzerai Psionics (3)\",\n\t\t\t\tspells : [\"shield\"],\n\t\t\t\tselection : [\"shield\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"shield\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Shield once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"detect thoughts\" : {\n\t\t\tname : \"Githzerai Psionics (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githzerai Psionics (5)\",\n\t\t\t\tspells : [\"detect thoughts\"],\n\t\t\t\tselection : [\"detect thoughts\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"detect thoughts\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Detect Thoughts once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Magic Items\nMagicItemsList[\"greater silver sword\"] = {\n\tname : \"Greater Silver Sword\",\n\tsource : [[\"MToF\", 89]],\n\ttype : \"weapon (greatsword)\",\n\trarity : \"legendary\",\n\tdescription : \"This magic greatsword gives +1 to hit and damage. While holding it, I have adv. on Int, Wis, and Cha saves, immunity to being charmed, and resistance to psychic damage. If I score a critical hit with it on a creature's astral body, I can cut the cord tethering it to its material body, instead of dealing damage.\",\n\tdescriptionFull : \"This magic weapon grants a +3 bonus to attack and damage rolls made with it. While you hold the sword, you have advantage on Intelligence, Wisdom, and Charisma saving throws, you are immune to being charmed, and you have resistance to psychic damage. In addition, if you score a critical hit with it against a creature's astral body, you can cut the silvery cord that tethers the target to its material body, instead of dealing damage.\",\n\tattunement : true,\n\tweight : 6,\n\tprerequisite : \"Requires attunement by a creature that has psionic ability\",\n\tprereqeval : function (v) {\n\t\tif (!v.isSpellcaster) return false;\n\t\tif ((/psion|mystic/i).test(What(\"Racial Traits\"))) return true;\n\t\tfor (var aCast in CurrentSpells) {\n\t\t\tvar spCast = CurrentSpells[aCast];\n\t\t\tif ((/psion|mystic/i).test(spCast.name) || (spCast.list && spCast.list.psionic)) return true;\n\t\t\tif (!spCast.bonus) continue;\n\t\t\tfor (var aBon in spCast.bonus) {\n\t\t\t\tif ((/psion|mystic/i).test(aBon) || (/psion|mystic/i).test(spCast.bonus[aBon].name)) return true;\n\t\t\t}\n\t\t}\n\t},\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greatsword\",\n\t\tregExpSearch : /^(?=.*greater)(?=.*silver)(?=.*sword).*$/i,\n\t\tname : \"Greater Silver Sword\",\n\t\tsource : [[\"MToF\", 89]],\n\t\tdescription : \"Heavy, two-handed; On crit vs. astral body, cut cord instead of damage\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}],\n\tsavetxt : { text : [\"Adv. on Int, Wis, and Cha saves\"], immune : [\"charmed\"] },\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]],\n\tdmgres : [\"Psychic\"]\n}\nMagicItemsList[\"infernal tack\"] = {\n\tname : \"Infernal Tack\",\n\tsource : [[\"MToF\", 167], [\"DiA\", 224]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tnotLegalAL : true,\n\tdescription : \"While wearing the spurs of this set, the nightmare equipped with the bridle, bit, reins, saddle, and stirrups is under my command. As an action, I can have it appear in 20 ft at the start of my next turn. It acts on as my ally on my initiative, remains for 1 day, until I or it dies, or I dismiss it as an action. If it dies, it reforms in 24 h.\",\n\tdescriptionLong : \"This tack consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with the tack serves whoever wears the spurs until the wearer dies or the tack is removed. As an action, I can clash the spurs together or scrape them through blood, causing the nightmare to appear within 20 ft at the start of my next turn. It acts as my ally on my initiative count, remains for 1 day, until I or it dies, or until I dismiss it as an action. If it dies, it reforms within 24 hours, after which I can summon it again. The tack doesn't create a nightmare from thin air; one must first be subdued so the tack can be placed on it.\",\n\tdescriptionFull : \"A narzugon binds a nightmare to its service with infernal tack, which consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with infernal tack must serve whoever wears the spurs until the wearer dies or the tack is removed.\\n   You can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of your next turn, within 20 feet of you. It acts as your ally and takes its turn on your initiative count. It remains for 1 day, until you or it dies, or until you dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which you can summon it again.\\n   The tack doesn't conjure a nightmare from thin air; one must first be subdued so the tack can be placed on it. No nightmare accepts this forced servitude willingly, but some eventually form strong loyalties to their masters and become true partners in evil.\",\n\tattunement : true,\n\tweight : 26, // riding saddle (25) + bit and bridle (1)\n\tprerequisite : \"Requires attunement by a creature of evil alignment\",\n\tprereqeval : function(v) { return (/evil/i).test(What(\"Alignment\")); },\n\taction : [[\"action\", \"\"]],\n\tcreaturesAdd : [[\"Nightmare\", true,\n\tfunction (AddRemove, prefix) {\n\t\tif (!AddRemove) return;\n\t\t// Show equipment section\n\t\tMakeCompMenu_CompOptions(prefix, [\"companion\", \"visible\", \"comp.eqp\"], true);\n\t\t// Add equipment when added\n\t\tvar equip = [\"bit and bridle\", \"riding\"];\n\t\tfor (var i = 0; i < equip.length; i++) {\n\t\t\tvar gear = GearList[equip[i]];\n\t\t\tif (!gear) continue;\n\t\t\tAddToInv(prefix + \"comp\", \"l\", gear.name, gear.amount, gear.weight, \"\", false, false, false, false);\n\t\t}\n\t\t// Add notes\n\t\tvar note = \"I can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of my next turn, within 20 ft of me.\\nThe nightmare acts as my ally and takes its turn on my initiative count. It remains for 1 day, until I or it dies, or until I dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which I can summon it again.\";\n\t\tValue(prefix + \"Comp.eqp.Notes\", What(\"Unit System\") === \"metric\" ? ConvertToMetric(note, 0.5) : note);\n\t}]]\n}\n\n// pub_20180918_WDH.js\r\n// This file adds the magic items from the Waterdeep: Dragon Heist adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"WDH\"] = {\r\n\tname : \"Waterdeep: Dragon Heist [items]\",\r\n\tabbreviation : \"WDH\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/waterdeep-dragon-heist\",\r\n\tdate : \"2018/09/18\"\r\n};\r\n\r\n// Mundane Items\r\nWeaponsList[\"oversized longbow\"] = {\r\n\tregExpSearch : /^(?=.*oversized?)(?=.*(\\bbows?\\b|longbow)).*$/i,\r\n\tname : \"Oversized Longbow\",\r\n\tnameAlt : [\"Bow, Oversized\"],\r\n\tsource : [[\"WDH\", 201]],\r\n\tlist : \"ranged\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 6, \"piercing\"],\r\n\trange : \"150/600 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, heavy, two-handed; Damage uses Str; Requires Medium size and Str 18\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [\"\", \"Str\"],\r\n\tammo : \"oversized arrow\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"oversized arrow\"] = {\r\n\tname : \"Oversized Arrows\",\r\n\tsource : [[\"WDH\", 201]],\r\n\ticon : \"Arrows\",\r\n\tweight : 0.10,\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Magic Items\r\nvar WDH_azuredgeFullDescription = [\r\n\t\"Forged by the archwizard Ahghairon, this intelligent battleaxe was crafted to defend Waterdeep. Its current wielder is a former member of Force Grey named Meloon Wardragon, but the weapon is searching for a new owner.\",\r\n\t\"Azuredge has a solid steel handle etched with tiny runes, wrapped in blue dragon hide with a star sapphire set into the pommel. The axe head is forged from silver, electrum, and steel alloys whose edges constantly shimmer with a deep blue luminescence.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. The Shield spell provides no defense against the axe, which passes through that spell's barrier of magical force.\",\r\n\t\"When you hit a fiend or an undead with the axe, cold blue flames erupt from its blade and deal an extra 2d6 radiant damage to the target.\",\r\n\t\">>Hurling<<. The battleaxe has 3 charges. You can expend 1 charge and make a ranged attack with the axe, hurling it as if it had the thrown property with a normal range of 60 feet and a long range of 180 feet. Whether it hits or misses, the axe flies back to you at the end of the current turn, landing in your open hand or at your feet in your space (as you choose). The axe regains all expended charges daily at dawn.\",\r\n\t\">>Illumination<<. While holding the axe, you can use an action to cause the axe to glow blue or to quench the glow. This glow sheds bright light in a 30-foot radius and dim light for an additional 30 feet.\",\r\n\t\">>Sentience<<. Azuredge is a sentient lawful neutral weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Common. It has a calm, delicate voice. The weapon can sense the presence of non-lawful creatures within 120 feet of it.\",\r\n\t\">>Personality<<. Azuredge is sworn to protect Waterdeep, and it desires to be wielded by a law-abiding person willing to dedicate everything to the city's defense. The weapon is patient and takes its time finding its ideal wielder.\",\r\n\t\"If someone tries to use Azuredge against its will, the axe can become ten times heavier than normal, and can magically adhere to any Medium or larger object or surface it comes into contact with. Once it does so, the axe can't be wielded. Nothing short of a Wish spell can separate the axe from the item or surface to which it is adhered without destroying one or the other, though the axe can choose to end the effect at any time.\"\r\n];\r\nMagicItemsList[\"azuredge\"] = {\r\n\tname : \"Azuredge\",\r\n\tsource : [[\"WDH\", 189]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This battleaxe is sentient, adds +3 to hit and damage, and deals +2d6 radiant damage vs. fiends/undead. As an action, I can stop or start its glow of bright light in a 30-ft radius and dim light for another 30 ft. It has 3 charges, regaining all at dawn, which can be used to throw it, after which it returns to my hand. See Notes.\",\r\n\tdescriptionFull : WDH_azuredgeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tweight : 4,\r\n\taction : [[\"action\", \" (glow/end)\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"throw\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /azuredge/i,\r\n\t\tname : \"Azuredge\",\r\n\t\tsource : [[\"WDH\", 189]],\r\n\t\trange : \"Melee, 60/180 ft\",\r\n\t\tdescription : \"Versatile (1d10), thrown (1 charge); Returning; Ignores Shield spell; +2d6 radiant damage vs. fiends/undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"crusader's mantle\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : \"\\n   \" + WDH_azuredgeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"badge of the watch\"] = { // contains contributions by Pengsloth\r\n\tname : \"Badge of the Watch\",\r\n\tsource : [[\"WDH\", 189]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While wearing this badge and not using a shield, I gain +2 AC. If it is more than 5 ft away from me for over 1 minute, it vanishes and reappears within 5 ft of the Open Lord. While holding the badge, the Open Lord knows my location if we are both on the same plane and can, as an action end my attunement to it.\",\r\n\tprerequisite : \"Requires attunement by someone designated by the Open Lord of Waterdeep\",\r\n\tprereqeval : function () { return false; },\r\n\tdescriptionFull : \"A badge of the Watch is given only to those who have earned the trust of the Open Lord of Waterdeep. The badge, signifying the rank of captain in Waterdeep's City Watch, bears the emblem of Waterdeep and is meant to be worn or carried.\\n   While wearing the badge, you gain a +2 bonus to AC if you aren't using a shield.\\n   If the badge is more than 5 feet away from you for more than 1 minute, it vanishes and harmlessly reappears on a surface within 5 feet of the Open Lord. While holding the badge, the Open Lord knows your location, provided the two of you are on the same plane of existence and your attunement to the badge hasn't ended.\\n   As an action, the Open Lord can touch the badge and end your attunement to it.\",\r\n\tattunement : true,\r\n\textraAC : [{\r\n\t\tmod : 2,\r\n\t\tname : \"Badge of the Watch\",\r\n\t\tmagic : true,\r\n\t\ttext : \"While wearing the badge, I gain a +2 bonus to AC if I'm not using a shield.\",\r\n\t\tstopeval : function (v) {\r\n\t\t\treturn v.usingShield;\r\n\t\t}\r\n\t}]\r\n}\r\nvar WDH_blackstaffFullDescription = \"The Blackstaff is a sentient, rune-carved staff set with thin silver veins. It is the symbol of office for the Blackstaff, the highest-ranking wizard in Waterdeep. As the rightful owner of the Blackstaff, Vajra Safahr is the only one who can become attuned to it. The staff can, however, choose a new owner (see \\\"Personality\\\" below).\\n   This staff can be wielded as a magic quarterstaff that grants a +2 bonus to attack and damage rolls made with it. While holding it, you gain a +2 bonus to Armor Class, saving throws, and spell attack rolls.\\n   The staff has 20 charges for the following properties. The staff regains 2d8+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff retains its +2 bonus to attack and damage roll but loses all other properties. On a 20, the staff regain 1d8+2 charges.\\n   >>Power Strike<<. When you hit with a melee attack using the staff, you can expend 1 charge to deal an extra 1d6 force damage to the target.\\n   >>Spells<<. While holding this staff, you can use an action to expend 1 or more of its charges to cast one of the following spells from it, using your spell save DC and spell attack bonus: Cone of Cold (5 charges), Fireball (5th-level version, 5 charges), Globe of Invulnerability (6 charges), Hold Monster (5 charges), Levitate (2 charges). Lightning Bolt (5th-level version, 5 charges), Magic Missile (1 charge), Ray of Enfeeblement (1 charge), or Wall of Force (5 charges).\\n   >>Retributive Strike<<. You can use an action to break the staff over your knee or against a solid surface, performing a retributive strike. The staff is destroyed and releases its remaining magic in an explosion that expands to fill a 30-foot-radius sphere centered on it.\\n   You have a 50% chance to instantly travel to a random plane of existence, avoiding the explosion. If you fail to avoid the effect, you take force damage equal to 16 \\xD7 the number of charges in the staff. Every other creature in the area must make a DC 17 Dexterity saving throw. On a failed save, a creature takes an amount of damage based on how far away it is from the point of origin, as shown in the following table. On a successful save, a creature takes half as much damage.\\n\\n>>Distance from Origin\\tEffect<<\\n10 ft. away or closer\\t8 \\xD7 the number of charges in the staff\\n11 to 20 ft. away\\t6 \\xD7 the number of charges in the staff\\n21 to 30 ft. away\\t4 \\xD7 the number of charges in the staff\\n\\n\\n   >>Animate Walking Statues<<. You can expend 1 or more of the staff's charges as an action to animate or deactivate one or more of the walking statues of Waterdeep. You must be in the city to use this property, and you can animate or deactivate one statue for each charge expended. An animated statue obeys the telepathic commands of Khelben Arunsun's spirit, which is trapped inside the staff (see \\\"Personality\\\" below). A walking statue becomes inanimate if deactivated or if the staff is broken.\\n   >>Dispel Magic<<. You can expend 1 of the staff's charges as a bonus action to cast Dispel Magic on a creature, an object, or a magical effect that you touch with the tip of the staff. If the target is an unwilling creature or an object in the possession of such a creature, you must hit the creature with a melee attack using the Blackstaff before you can expend the charge to cast the spell.\\n   >>Drain Magic<<. This property affects only creatures that use spell slots. When you hit such a creature with a melee attack using the Blackstaff, you can expend 1 of the staff's charges as a bonus action, causing the target to expend one spell slot of the highest spell level it can cast without casting a spell. If the target has already expended all its spell slots, nothing happens. Spell slots that are expended in this fashion are regained when the target finishes a long rest, as normal.\\n   >>Master of Enchantment<<. When you cast an enchantment spell of 1st level or higher while holding the staff, you can make an Intelligence (Arcana) check with a DC of 10 + the level of the spell. If the check succeeds, you cast the spell without expending a spell slot.\\n   >>Sentience<<. The Blackstaff is a sentient staff of neutral alignment, with an Intelligence of 22, a Wisdom of 15, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet, and it can communicate telepathically with any creature that is holding it.\\n   >>Personality<<. The staff has the spirits of all previous Blackstaffs trapped within it. Its creator, Khelben Arunsun, is the dominant personality among them. Like Khelben, the staff is extremely devious and manipulative. It prefers to counsel its owner without exerting outright control. The staff's primary goal is to protect Waterdeep and its Open Lord, currently Laeral Silverhand. Its secondary goal is to help its wielder become more powerful.\\n   In the event that the holder of the office of the Blackstaff no longer serves the staff's wishes, the staff ceases to function until it finds a worthy inheritor\\u2014someone whose loyalty to Waterdeep is beyond reproach.\\n   >>Spirit Trap<<. When the Blackstaff dies, the spirit of that individual becomes trapped in the staff along with the spirits of the previous Blackstaffs. (A Blackstaff whose spirit is trapped in the staff can't be raised from the dead.)\\n   Destroying the staff would release the spirits trapped inside it, but in that event, Khelben's spirit can lodge itself inside any one piece of the staff that remains. The piece containing Khelben's spirit has the staff's Sentience property but none of its other properties. As long as this piece of the staff exists, Khelben's spirit can make the staff whole again whenever he wishes. When the staff is remade, the spirits of the previous Blackstaffs become trapped inside it again.\";\r\nif (MagicItemsList[\"staff of power\"]) {\r\n\tMagicItemsList[\"blackstaff\"] = {\r\n\t\tname : \"Blackstaff\",\r\n\t\tsource : [[\"WDH\", 190]],\r\n\t\ttype : \"staff\",\r\n\t\trarity : \"legendary\",\r\n\t\tstoryItemAL : true,\r\n\t\tdescription : \"This +2 quarterstaff gives me a +2 bonus on saves, AC, and spell attacks. It has 20 charges, regaining 2d8+4 at dawn, which can be used to cast spells, deal +1d6 force damage in melee, drain magic from a target hit in melee, or animate walking statues. It is sentient and has more features, see Notes page.\",\r\n\t\tdescriptionFull : WDH_blackstaffFullDescription.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\tattunement : true,\r\n\t\tweight : 4,\r\n\t\tprerequisite : \"Requires attunement by the Blackstaff heir, who must be a wizard\",\r\n\t\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\t\tusages : 20,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"regains 2d8+4\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"quarterstaff\",\r\n\t\t\tregExpSearch : /blackstaff/i,\r\n\t\t\tname : \"Blackstaff\",\r\n\t\t\tsource : [[\"WDH\", 190]],\r\n\t\t\tdescription : \"Versatile (1d8); On hit, use 1 charge for: +1d6 force damage or, as a bonus action, Drain Magic or Dispel Magic\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Blackstaff, I have a +2 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\taddMod : [{ type : \"save\", field : \"all\", mod : 2, text : \"While holding the Blackstaff, I gain a +2 bonus to all my saving throws.\" }],\r\n\t\textraAC : [{name : \"Blackstaff\", mod : 2, magic : true, text : \"I gain a +2 bonus to AC while attuned.\"}],\r\n\t\taction : [\r\n\t\t\t[\"action\",\" (Animate Walking Statues)\"],\r\n\t\t\t[\"action\", \" (Retributive Strike)\"],\r\n\t\t\t[\"bonus action\", \" (Drain Magic)\"]\r\n\t\t],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : MagicItemsList[\"staff of power\"].spellcastingBonus.concat([{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"dispel magic\"],\r\n\t\t\tselection : [\"dispel magic\"],\r\n\t\t\tfirstCol : 1\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"fireball\" : MagicItemsList[\"staff of power\"].spellChanges.fireball,\r\n\t\t\t\"lightning bolt\" : MagicItemsList[\"staff of power\"].spellChanges[\"lightning bolt\"],\r\n\t\t\t\"dispel magic\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\trange : \"Melee atk\",\r\n\t\t\t\tdescription : \"Dispel all magic on crea or object hit with melee atk; DC 10+SL spellcasting ability check if level >3\",\r\n\t\t\t\tchanges : \"Can cast as a bonus action, but only on something touched by the staff. It might first require an attack by the staff to be able to cast it on\"\r\n\t\t\t}\r\n\t\t},\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   \" + WDH_blackstaffFullDescription.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you /ig, \"I \")\r\n\t\t}, {\r\n\t\t\tname : \"Sentient Item Features\",\r\n\t\t\tnote : sentientItemConflictTxt\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"bracer of flying daggers\"] = {\r\n\tname : \"Bracer of Flying Daggers\",\r\n\tsource : [[\"WDH\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This armband appears to have thin daggers strapped to it. As an action, I can pull up to two magic daggers from the bracer and immediately hurl them, making a ranged attack with each dagger. A dagger vanishes if I don't hurl it right away, and the daggers disappear right after they hit or miss.\",\r\n\tdescriptionFull : \"This armband appears to have thin daggers strapped to it. As an action, you can pull up to two magic daggers from the bracer and immediately hurl them, making a ranged attack with each dagger. A dagger vanishes if you don't hurl it right away, and the daggers disappear right after they hit or miss. The bracer never runs out of daggers.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*bracer)(?=.*flying)(?=.*dagger).*$/i,\r\n\t\tname : \"Bracer of Flying Daggers\",\r\n\t\tsource : [[\"WDH\", 190]],\r\n\t\trange : \"20/60 ft\",\r\n\t\tdescription : \"Finesse, light, thrown; As action, throw 2; Doesn't work with Attack action\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"dragonstaff of ahghairon\"] = { // contains contributions by Pengsloth\r\n\tname : \"Dragonstaff of Ahghairon\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"staff\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This staff has 10 charges, regaining 1d10 at dawn, which can be used to cast Command. Dragons have disadv. on their save against it. The staff gives me adv. on saves against the spells and breath weapons of dragons. I can touch a dragon with the staff, allowing it to ignore the effects of Ahghairon's Dragonward.\",\r\n\tdescriptionFull : \"While holding the dragonstaff of Ahghairon, you have advantage on saving throws against the spells and breath weapons of dragons, as well as the breath weapons of other creatures of the dragon type (such as dragon turtles).\\n   A creature of the dragon type that you touch with the staff can move through the city of Waterdeep, ignoring Ahghairon's dragonward (see \\\"Ahghairon's Dragonward,\\\" in the Introduction of Waterdeep: Dragon Heist). This effect lasts until the creature is touched again by the staff or until a time you proclaim when you confer the benefit.\\n   The staff has 10 charges. While holding it, you can expend 1 charge as an action to cast the Command spell. If you target a dragon with this casting, the dragon has disadvantage on its saving throw. The staff regains 1d10 charges daily at dawn.\",\r\n\tattunement : true,\r\n\tsavetxt : { adv_vs : [\"dragon breath weapons\", \"dragon spells\"] },\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d10\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"command\"],\r\n\t\tselection : [\"command\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"command\" : {\r\n\t\t\tdescription : \"1 crea, save or follow one word command, e.g. approach, drop, flee, halt; dragons disadv. on save\",\r\n\t\t\tchanges : \"When this spell is cast on a dragon they have disadvantage on the saving throw.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"feather of diatryma summoning\"] = {\r\n\tname : \"Feather of Diatryma Summoning\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"As an action once per 7 days, I can speak the command word and throw this feather to an empty large space in 5 ft, where it becomes a diatryma (axe beak stats) for 6 hours, until I speak the command again, or it reaches 0 HP. It is friendly, understands my languages, obeys my commands, and can be used as a mount.\",\r\n\tdescriptionFull : \"This bright plume is made from the feather of a diatryma (pronounced dee-ah-TRY-mah), a Large, colorful, flightless bird native to the Underdark. If you use an action to speak the command word and throw the feather into a Large unoccupied space on the ground within 5 feet of you, the feather becomes a living diatryma for up to 6 hours, after which it reverts to its feather form. It reverts to feather form early if it drops to 0 hit points or if you use an action to speak the command word again while touching the bird.\\n   When the diatryma reverts to feather form, the magic of the feather can't be used again until 7 days have passed.\\n   The diatryma uses the statistics of an axe beak, except that its beak deals piercing damage instead of slashing damage. The creature is friendly to you and your companions, and it can be used as a mount. It understands your languages and obeys your spoken commands. If you issue no commands, the diatryma defends itself but takes no other actions.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"7 days\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"knave's eye patch\"] = { // contains contributions by Pengsloth\r\n\tname : \"Knave's Eye Patch\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"While wearing this eye patch I have advantage on Perception checks that rely on sight, I am unaffected by Sunlight Sensitivity if I have it, and I am immune to magic that would read my thoughts or determine whether I'm lying. Creatures can communicate telepathically with me only if I allow it.\",\r\n\tdescriptionFull : \"While wearing this eye patch, you gain these benefits:\\n \\u2022 You have advantage on Wisdom (Perception) checks that rely on sight.\\n \\u2022 If you have the Sunlight Sensitivity trait, you are unaffected by the trait.\\n \\u2022 You are immune to magic that allows other creatures to read your thoughts or determine whether you are lying. Creatures can communicate telepathically with you only if you allow it.\",\r\n\tattunement : true,\r\n\tvision : [[\"Adv. on Perception checks relying on sight\", 0]]\r\n}\r\nMagicItemsList[\"lord's ensemble\"] = {\r\n\tname : \"Lord's Ensemble\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature with a humanoid build\",\r\n\tdescription : \"While wearing this helm, amulet, and ring, my identity can't be determined. I move through difficult terrain as normal terrain. Magic can't be used to reduce my speed, paralyze me, restrain me, read my thoughts, or learn my alignment, creature type, or if I'm lying. I'm hidden from scrying and Divination magic.\",\r\n\tdescriptionLong : \"This set of a helm, amulet, and ring can be worn and attuned to as a single magic item, but only while within Waterdeep. The helm magically alters my voice to sound genderless, and makes me immune to magic that reads my thoughts, determines if I'm lying, or reveals my alignment or creature type. Creatures can't speak telepathically with me unless I allow it. The amulet causes me to be hidden from Divination magic and magical scrying sensors. The robe makes me look nondescript, makes difficult terrain not cost me extra movement, and stops magic from reducing my speed or me to be paralyze or restrained.\",\r\n\tdescriptionFull : \"The Masked Lords of Waterdeep don this ensemble when meeting with one another. This raiment renders each lord indistinguishable from the others. The ensemble consists of three pieces\\u2014a helm, an amulet, and a robe\\u2014that function as a single magic item when worn together, but only within the city of Waterdeep and its sewers. You become attuned to the ensemble as a single item.\\n   \" + toUni(\"Lord's Helm\") + \". This bucket helm covers your head and conceals your face. Screens over the eyes help to shroud your identity without blinding you. While you wear the helm, your voice is magically altered to sound genderless, and you are immune to magic that allows other creatures to read your thoughts, to determine whether you are lying, to know your alignment, or to know your creature type. Creatures can communicate telepathically with you only if you allow it.\\n   \" + toUni(\"Lord's Amulet\") + \". This amulet bears the crest of Waterdeep. It functions as an amulet of proof against detection and location.\\n   \" + toUni(\"Lord's Robe\") + \". This elegant robe functions as a ring of free action, and it creates the illusion that you have a nondescript, androgynous humanoid build and stand 6 feet tall.\",\r\n\tattunement : true,\r\n\tsavetxt : { immune : [\"paralyzed\", \"restrained\"] }\r\n}\r\nMagicItemsList[\"paper bird\"] = {\r\n\tname : \"Paper Bird\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"I can write up to 50 words on a sheet of the 1d6+3 in this box and speak a creature's name, causing the parchment to fold into a Tiny bird and fly to that creature on the same plane if it isn't stopped. It has 60 ft fly speed, 1 HP, AC 13, Dex 16, 1 in all other ability scores, and immunity to poison and psychic damage.\",\r\n\tdescriptionFull : \"After you write a message of fifty words or fewer on this magic sheet of parchment and speak a creature's name, the parchment magically folds into a Tiny paper bird and flies to the recipient whose name you uttered. The recipient must be on the same plane of existence as you, otherwise the bird turns into ash as it takes flight.\\n   The bird is an object that has 1 hit point, an Armor Class of 13, a flying speed of 60 feet, a Dexterity of 16 (+3), and a score of 1 (\\u22125) in all other abilities, and it is immune to poison and psychic damage.\\n   It travels to within 5 feet of its intended recipient by the most direct route, whereupon it turns into a nonmagical and inanimate sheet of parchment that can be unfolded only by the intended recipient. If the bird's hit points or speed is reduced to 0 or if it is otherwise immobilized, it turns into ash.\\n   Paper birds usually come in small, flat boxes containing 1d6 + 3 sheets of the parchment.\",\r\n\tusages : \"1d6+3\",\r\n\trecovery : \"Never\"\r\n}\r\nMagicItemsList[\"ring of truth telling\"] = {\r\n\tname : \"Ring of Truth Telling\",\r\n\tsource : [[\"WDH\", 192]],\r\n\ttype : \"ring\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this ring, I have advantage on Wisdom (Insight) checks to determine whether someone is lying to me.\",\r\n\tdescriptionFull : \"While wearing this ring, you have advantage on Wisdom (Insight) checks to determine whether someone is lying to you.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"smokepowder\"] = {\r\n\tname : \"Smokepowder\",\r\n\tsource : [[\"WDH\", 192]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"The Forgotten Realms version of gunpowder.\",\r\n\tdescriptionFull : \"Smokepowder is a magical explosive chiefly used to propel a bullet out of the barrel of a firearm. It is stored in airtight wooden kegs or tiny, waterproof leather packets. A packet contains enough smokepowder for five shots, and a keg holds enough smokepowder for five hundred shots.\"+\r\n\t\t\"\\n   If smokepowder is set on fire, dropped, or otherwise handled roughly, it explodes and deals fire damage to each creature or object within 20 feet of it: 1d6 for a packet, 9d6 for a keg. A successful DC 12 Dexterity saving throw halves the damage.\"+\r\n\t\t\"\\n   Casting Dispel Magic on smokepowder renders it permanently inert.\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Keg (500 shots)\", \"Packet (5 shots)\"],\r\n\t\"packet (5 shots)\" : {\r\n\t\tname : \"Smokepowder Packet\",\r\n\t\tdescription : \"This magical explosive is used to propel a bullet out of a firearm. These tiny, waterproof leather packets contain enough for five shots. Casting dispel magic on it renders it permanently inert. If it is set on fire, dropped, or handled roughly, it explodes and deals 1d6 fire damage to all within 20 ft, DC 12 Dex save halves.\",\r\n\t\tusages : 5,\r\n\t\trecovery : \"Never\",\r\n\t\tadditional : \"shots\",\r\n\t\tweight : 0.1, // 7000 grains per lb, 100 grains per shot\r\n\t\textraTooltip : \"AL: can be purchased for 1 treasure checkpoint. Once found, this item goes on a character's evergreen list of available items.\"\r\n\t},\r\n\t\"keg (500 shots)\" : {\r\n\t\tname : \"Smokepowder Keg\",\r\n\t\tdescription : \"This magical explosive is used to propel a bullet out of a firearm. This airtight wooden kegs contain enough for five hundred shots. Casting dispel magic on it renders it permanently inert. If it is set on fire, dropped, or handled roughly, it explodes and deals 9d6 fire damage to all within 20 ft, DC 12 Dex save halves.\",\r\n\t\tusages : 500,\r\n\t\trecovery : \"Never\",\r\n\t\tadditional : \"shots\",\r\n\t\tweight : 12 // 7000 grains per lb, 100 grains per shot (+2 for the keg itself)\r\n\t}\r\n}\r\n\r\n// Beast\r\n// Falcon is just a hawk under a different name, it has been added to the SRD code as a `nameAlt`\r\n\n// pub_20181107_LLoK.js\r\n// This file adds the magic items from the Lost Laboratory of Kwalish adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"LLoK\"] = {\r\n\tname : \"Lost Laboratory of Kwalish [items, spells]\",\r\n\tabbreviation : \"LLoK\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/258047/Lost-Laboratory-of-Kwalish-5e\",\r\n\tdate : \"2018/11/07\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"blade of the medusa\"] = {\r\n\tname : \"Blade of the Medusa\",\r\n\tnameTest : \"of the Medusa\",\r\n\tsource : [[\"LLoK\", 53]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I'm unwilling to part with this magic blade. When I attack a creature with it and roll a 20 to hit, it must make a DC 15 Con save or be restrained, and on a roll of 1, I must make that save. At the end of each of the target's turns, it can save again, ending the effect with 3 successes, or petrified for 1 hour after 3 failures.\",\r\n\tdescriptionLong : \"I'm unwilling to part with this magic sword. When I attack a creature with it and roll a 20 to hit, it must make a DC 15 Constitution save or be restrained. However, if I roll of 1 on the attack roll, I must make that same save. At the end of each of the effected target's turns, it can make the save again. If it successfully saves against this effect three times, the effect ends. However, if it failed three times, it is turned to stone and petrified for 1 hour. A creature is immune to this effect if it is immune to damage of the weapon's type, does not have a body made of flesh, or has legendary actions.\",\r\n\tdescriptionFull : \"When you attack a creature with this magic weapon and roll a 20 on the attack roll, the creature must make a DC 15 Constitution saving throw in addition to suffering the attack's normal effects. On a failed save, the creature is restrained and must make another Constitution saving throw at the end of each of its turns. If it successfully saves against this effect three times, the effect ends. If it fails its saves three times, it is turned to stone and subjected to the petrified condition for 1 hour.\\n   A creature is immune to this effect if it is immune to damage of the weapon's type, does not have a body made of flesh, or has legendary actions.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the weapon. Whenever you attack a creature with this weapon and roll a 1 on the attack roll, you must succeed on a DC 15 Constitution saving throw or be restrained and forced to make additional saves against being petrified, as above.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of the medusa/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: DC 15 Con save or restrained, see item; On 1 to hit: I same save';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of the Medusa\" in a the name of a sword, it will be treated as the magic weapon Blade of the Medusa.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"galder's bubble pipe\"] = {\r\n\tname : \"Galder's Bubble Pipe\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This finely carved pipe has 3 charges, regaining all at dawn, which I can use to cast spells. As an action, I can expend all 3 charges to summon a steam mephit. It acts on its own initiative, is friendly to me, obeys my verbal commands, and disappears after 1 minute or if it ends its turn more than 60 ft from the pipe.\",\r\n\tdescriptionFull : \"This finely carved pipe blows odorless bubbles instead of smoke when used. The pipe has 3 charges, and it regains all spent charges daily at dawn. While you hold the pipe, you can expend charges to gain access to the following properties:\\n \\u2022 You can cast Fog Cloud as an action (1 charge).\\n \\u2022 You can cast Misty Step as a bonus action (2 charges).\\n \\u2022 You can summon a steam mephit as an action (3 charges). The mephit is friendly to you, obeys your verbal commands, and acts on its own turn in the initiative order. It disappears in a harmless puff of steam after 1 minute or if it ends its turn more than 60 feet from the pipe.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"fog cloud\"],\r\n\t\tselection : [\"fog cloud\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"gambler's blade\"] = {\r\n\tname : \"Gambler's Blade\",\r\n\tnameTest : \"Gambler's\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I am unwilling to part with this sword until I'm freed of its curse. Each day at dawn, I can choose its magical bonus to attack and damage rolls of +1, +2, or +3. However, I take a corresponding penalty (-1, -2, or -3) to my death saving throws.\",\r\n\tdescriptionFull : \"Choose a magical bonus of +1 to +3. This sword gains that bonus to its attack and damage rolls. For each point of bonus you choose for the sword, you take a corresponding penalty (-1 to -3) to your death saving throws. You can change this magical bonus each day at dawn.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the weapon.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/gambler's/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Choose its magic bonus (1-3), but equal penalty on death saves';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If I include the word \\\"Gambler's\\\" in a the name of a sword, it will be treated as the magic weapon Gambler's Blade.\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"heward's hireling armor\"] = {\r\n\tname : \"Heward's Hireling Armor\",\r\n\tnameAlt : \"Hireling Armor\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This leather armor gives me a +1 bonus to AC and allows me to draw or stow two one-handed weapons when I would normally be able to draw or stow only one. It has 6 pockets that hold 20 lb (2 cu ft) each as they are extradimensional spaces. Retrieving an item from a pocket requires an action.\",\r\n\tdescriptionFull : \"A number of Kwalish's experiments were attempts to research the works of the legendary mage Heward, who first crafted what he named hireling armor. While wearing this armor, you gain a +1 bonus to AC. In addition, the armor's animated straps can assist with the drawing and sheathing of weapons, such that you can draw or stow two one-handed weapons when you would normally be able to draw or stow only one.\\n   This armor also has six pockets, each of which is an extradimensional space. Each pocket can hold up to 20 pounds of material, not exceeding a volume of 2 cubic feet. The armor always weighs 10 pounds, regardless of its pockets' contents. Placing an object into one of the armor's pockets follows the normal rules for interacting with objects. Retrieving an item from a pocket of the armor requires you to use an action. When you reach into a pocket for a specific item, the item is always magically on top.\\n   Placing the armor inside an extradimensional space created by a bag of holding, a Heward's handy haversack, or a similar item instantly destroys both items and opens a gate to the Astral Plane. The gate originates where the one item was placed inside the other. Any creature within 10 feet of the gate is sucked through it and deposited in a random location on the Astral Plane. The gate then closes. The gate is one-way only and can't be reopened.\",\r\n\tweight : 10,\r\n\taction : [[\"action\", \" (retrieve item)\"]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*heward)(?=.*hireling)(?=.*armor).*$/i,\r\n\t\tname : \"Heward's Hireling Armor\",\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nif (MagicItemsList[\"ioun stone\"]) {\r\n\tMagicItemsList[\"ioun stone\"].incrementSkill = function (aSkill, iType, forceRemove) {\r\n\t\tif (SkillsList.abbreviations.indexOf(aSkill) == -1) return;\r\n\t\tvar aIndx = SkillsList.abbreviations.indexOf(aSkill);\r\n\t\tvar aFld = (Who(\"Text.SkillsNames\") === \"alphabeta\" ? aSkill : SkillsList.abbreviationsByAS[aIndx]) + \" Bonus\";\r\n\t\tvar iSkill = SkillsList.names[aIndx];\r\n\t\tvar iName = \"Ioun Stone of \" + iType;\r\n\t\tvar iTxt = \"While the \" + iName + \" orbits my head and I'm proficient with the \" + iSkill + \" skill, I gain a +1 bonus on checks with it.\";\r\n\t\tvar addIt = forceRemove ? false : CurrentProfs.skill[aSkill] && CurrentProfs.skill[aSkill].length > 1;\r\n\t\tvar hasBonus = How(aFld).indexOf(iTxt) !== -1;\r\n\t\tif (hasBonus !== addIt) {\r\n\t\t\tprocessMods( addIt, iName + \" (magic item)\", [{ type : \"skill\", field : aSkill, mod : 1, text : iTxt }] );\r\n\t\t}\r\n\t}\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Supreme Intellect\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this faceted sphere orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I gain a +1 bonus on Intelligence checks.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain a +1 bonus to Intelligence checks while this faceted sphere orbits your head.\",\r\n\t\taddMod : [\r\n\t\t\t{ type : \"skill\", field : \"Arcana\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"History\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Investigation\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Nature\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Religion\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" }\r\n\t\t]\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Historical Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this polished, steely sphere orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the History skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the History skill, or a +1 bonus to checks with that skill if already proficient, while this polished, steely sphere orbits your head.\",\r\n\t\tskills : [\"History\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"His\", \"Historical Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"His\", \"Historical Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Natural Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this burnished, brassy stone orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the Nature skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the Nature skill, or a +1 bonus to checks with that skill if already proficient, while this burnished, brassy stone orbits your head.\",\r\n\t\tskills : [\"Nature\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Nat\", \"Natural Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Nat\", \"Natural Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Religious Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this tiny golden gem orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the Religion skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the Religion skill, or a +1 bonus to checks with that skill if already proficient, while this tiny golden gem orbits your head.\",\r\n\t\tskills : [\"Religion\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Rel\", \"Religious Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Rel\", \"Religious Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Language Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this pulsating bit of red jeweled crystal orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I am fluent in one additional language chosen by the DM.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You are fluent in one additional language while this pulsating bit of red jeweled crystal orbits your head. The DM chooses the language bestowed by the stone.\",\r\n\t\tlanguageProfs : [1]\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Self-Preservation\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As an action, I can make this silvery gem orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I gain a +1 bonus to Intelligence saving throws.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain a +1 bonus to Intelligence saving throws while this silvery gem orbits your head.\",\r\n\t\taddMod : [{ type : \"save\", field : \"Int\", mod : 1, text : \"While the Ioun stone of Self-Preservation orbits my head, I gain a +1 bonus to Intelligence saving throws.\" }]\r\n\t}, false, true); // force sorting on the last one\r\n}\r\nvar LLoK_leatherGolemArmorFullDescription = [\r\n\t\"Strange rituals have repurposed the body of a flesh golem into this partially sentient suit of leather armor. While wearing this armor, you gain the following benefits:\",\r\n\t\"\\u2022 You gain a +1 bonus to AC and to saving throws against spells and other magical effects.\",\r\n\t\"\\u2022 >>Immutable Form<<. You are immune to any spell or effect that would alter your form.\",\r\n\t\"\\u2022 >>Lightning Absorption<<. You gain resistance to lightning damage. Whenever you take lightning damage, you gain 5 temporary hit points.\",\r\n\t\">>Curse<<. This armor is cursed, and it extends to whomever becomes attuned to it. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the armor. In addition, while you wear the cursed armor, you gain the following properties:\",\r\n\t\"\\u2022 >>Aversion of Fire<<. If you take fire damage, you have disadvantage on attack rolls and ability checks until the end of your next turn.\",\r\n\t\"\\u2022 >>Berserk<<. Whenever you suffer a critical hit, roll a d6. On a 6, you go beserk because of the armor. On each of your turns while berserk, you attack the nearest creature you can see. If no creature is near enough to move to and attack, you attack an object, with preference for an object smaller than yourself. Once you go beserk because of the armor, it cannot be removed. You continue to attack until you are incapacitated or until another creature is able to change your state of mind with appropriate magic (such as a calm emotions spell) or a successful DC 15 Charisma (Persuasion) check.\"\r\n];\r\nMagicItemsList[\"leather golem armor\"] = {\r\n\tname : \"Leather Golem Armor\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I am unwilling to part with this leather armor until its curse is lifted from me, see Notes page. The curse makes me go berserk and have an aversion to fire. It gives me a +1 bonus to AC and saves vs. spells and magical effects. I have resistance to lightning damage and when I suffer such damage, I gain 5 temporary HP.\",\r\n\tdescriptionFull : LLoK_leatherGolemArmorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tweight : 10,\r\n\tdmgres : [\"Lightning\"],\r\n\tcursed : true,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*leather)(?=.*golem)(?=.*armor).*$/i,\r\n\t\tname : \"Leather Golem Armor\",\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { text : [\"+1 vs. spells and magical effects\"] },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_leatherGolemArmorFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/you /ig, \"I \")\r\n\t}]\r\n}\r\nvar LLoK_polymorphBladeFullDescription = [\r\n\t\"When you attack a creature with this magic weapon and roll a 20 on the attack roll, the creature must make a DC 15 Wisdom saving throw in addition to suffering the attack's normal effects. On a failed save, the creature also suffers the effects of a polymorph spell. Roll a d20 and consult the following table to determine the form the target creature is transformed into.\",\r\n\t\">>d20\\tNew Form   \\td20\\tNew Form<<\",\r\n\t\"  1\\tTyrannosaurus\\t 11\\tWolf\",\r\n\t\"  2\\tGiant ape    \\t 12\\tHorse\",\r\n\t\"  3\\tElephant     \\t 13\\tOx\",\r\n\t\"  4\\tGiant scorpion\\t 14\\tGiant frog\",\r\n\t\"  5\\tRhinoceros   \\t 15\\tPoisonous snake\",\r\n\t\"  6\\tPolar bear   \\t 16\\tHawk\",\r\n\t\"  7\\tGiant toad   \\t 17\\tOctopus\",\r\n\t\"  8\\tGiant eagle  \\t 18\\tCat\",\r\n\t\"  9\\tBlack bear   \\t 19\\tRat\",\r\n\t\"10\\tCrocodile     \\t 20\\tRabbit\",\r\n\t\"A creature is immune to this effect if it is immune to damage of the weapon's type, is a shapechanger, or has legendary actions.\",\r\n\t\">>Curse<<. This weapon is cursed, and it extends to whomever becomes attuned to it. Until the curse is broken with a Remove Curse spell or similar magic, you are unwilling to part with the weapon. Whenever you attack a creature with this weapon and roll a 1 on the attack roll, you suffer the effect of a polymorph spell for 1 hour, rolling on the table to determine your new form.\"\r\n];\r\nMagicItemsList[\"polymorph blade\"] = {\r\n\tname : \"Polymorph Blade\",\r\n\tnameTest : \"Polymorph\",\r\n\tsource : [[\"LLoK\", 59]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I'm unwilling to part with this magic sword. When I attack a creature with it and roll a 20 to hit, the creature must make a DC 15 Wisdom save or be polymorphed for 1 hour into a random beast (see Notes page). However, on a roll of 1 to hit, I am the one being polymorphed for 1 hour without a save.\",\r\n\tdescriptionFull : LLoK_polymorphBladeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/polymorph/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: DC 15 Wis save or polymorphed, see item; On 1 to hit: I polymorph';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Polymorph\" in a the name of a sword, it will be treated as the magic weapon Polymorph Blade.'\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_polymorphBladeFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/you /ig, \"I \")\r\n\t}]\r\n}\r\nvar LLoK_poweredArmorFullDescription = [\r\n\t\"Powered armor resembles a suit of unusual plate armor, with finely articulated joints connected by an oily, black, leather-like material. The armor has been worked to create the appearance of a heavily muscled warrior, and its great helm is unusual in that it has no openings\\u2014only a broad glass plate in the front with a second piece of glass above it. Strange plates, tubing, and large metal bosses adorn the armor in seemingly random fashion. On the back of the armor's left gauntlet is a rectangular metal box, from which projects a short rod tipped with a cone-shaped red crystal.\",\r\n\t\"While wearing this armor, you gain the following benefits:\",\r\n\t\"\\u2022 You have a +1 bonus to AC.\",\r\n\t\"\\u2022 Your Strength score is 18 (this has no effect if your Strength is already 18 or higher).\",\r\n\t\"\\u2022 You have advantage on death saving throws.\",\r\n\t\"The armor has further capabilities that can be powered either by energy cells or by your own life energy. You can use a bonus action to draw power from an energy cell or sacrifice hit points to gain one of the following benefits:\",\r\n\t\"\\u2022 Emit a force field to gain 2d6 + 5 temporary hit points (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Activate boosters to gain a flying speed of 15 feet for 1 minute (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Fire arm-mounted laser: +8 to hit, range 120 feet, one target. 2d6 radiant damage (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Translate any writing you can see in any nonmagical language, to a total of one thousand words over 1 minute (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Fill the armor with air, so you can breathe normally in any environment for up to 1 hour (1 charge or 5 hit points).\",\r\n\t\"u2022 Gain darkvision to a range of 60 feet for up to 1 hour (1 charge or 5 hit points).\",\r\n\t\"The armor can accept only one energy cell at a time. It is found with one energy cell attached, containing 2d10 charges.\"\r\n];\r\nMagicItemsList[\"powered armor-llk\"] = {\r\n\tname : \"Powered Armor (LLK)\", // add source to name so it won't conflict with Powered Armor from QftIS\r\n\tsource : [[\"LLoK\", 56]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This unusual plate armor looks like a heavily muscled warrior with a helm without openings. It gives me a +1 bonus to AC, increases my Strength to 18, and adv. on death saves. As a bonus action, I can use charges from its energy cell or expend my own HP to have it do various things, see Notes page.\",\r\n\tdescriptionFull : LLoK_poweredArmorFullDescription.join(\"\\n   \"),\r\n\tattunement : true,\r\n\tweight : 65,\r\n\tscoresOverride : [18, 0, 0, 0, 0, 0],\r\n\tsavetxt : { text : [\"Adv. on death saves\"] },\r\n\taction : [[\"bonus action\", \" (use energy)\"]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*powered)(?=.*armor).*$/i,\r\n\t\tname : \"Powered Armor\",\r\n\t\tsource : [[\"LLoK\", 56]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"18+1\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : \"2d10\",\r\n\trecovery : \"Never\",\r\n\tadditional : \"energy cell\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_poweredArmorFullDescription).replace(/your/g, \"my\").replace(/you /ig, \"I \")\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arm)(?=.*mounted)(?=.*laser).*$/i,\r\n\t\tname : \"Arm-Mounted Laser\",\r\n\t\tsource : [[\"LLoK\", 56]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [2, 6, \"radiant\"],\r\n\t\trange : \"120 ft\",\r\n\t\tdescription : \"Bonus action; Uses 1 charge or 5 HP\",\r\n\t\tabilitytodamage : false,\r\n\t\tmodifiers : [8, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\r\n// Spells (contain contributions by /u/KittenWithMittens)\r\nSpellsList[\"flock of familiars\"] = {\r\n\tname : \"Flock of Familiars\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 3+1/SL familiars as Find Familiar; can see through their eyes and deliver touch spells; see B\",\r\n\tdescriptionFull : \"You temporarily summon three familiars\\u2014spirits that take animal forms of your choice. Each familiar uses the same rules and options for a familiar conjured by the find familiar spell. All the familiars conjured by this spell must be the same type of creature (celestials, fey, or fiends; your choice). If you already have a familiar conjured by the find familiar spell or similar means, then one fewer familiars are conjured by this spell.\\n   Familiars summoned by this spell can telepathically communicate with you and share their visual or auditory senses while they are within 1 mile of you.\\n   When you cast a spell with a range of touch, one of the familiars conjured by this spell can deliver the spell, as normal. However, you can cast a touch spell through only one familiar per turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you conjure an additional familiar for each slot level above 2nd.\"\r\n}\r\nSpellsList[\"galder's speedy courier\"] = {\r\n\tname : \"Galder's Speedy Courier\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"25 gp, or mineral goods of equivalent value, which the spell consumes\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Send 3\\xD73\\xD73 ft chest of items I put in it to named crea on same plane; SL8: other plane (25gp cons.)\",\r\n\tdescriptionMetric : \"Send 1\\xD71\\xD71 m chest of items I put in it to named crea on same plane; SL8: other plane (25gp cons.)\",\r\n\tdescriptionFull : \"You summon a Small air elemental to a spot within range. The air elemental is formless, nearly transparent, immune to all damage, and cannot interact with other creatures or objects. It carries an open, empty chest whose interior dimensions are 3 feet on each side. While the spell lasts, you can deposit as many items inside the chest as will fit. You can then name a living creature you have met and seen at least once before, or any creature for which you possess a body part, lock of hair, clipping from a nail, or similar portion of the creature's body.\\n   As soon as the lid of the chest is closed, the elemental and the chest disappear, then reappear adjacent to the target creature. If the target creature is on another plane, or if it is proofed against magical detection or location, the contents of the chest reappear on the ground at your feet.\\n   The target creature is made aware of the chest's contents before it chooses whether or not to open it, and knows how much of the spell's duration remains in which it can retrieve them. No other creature can open the chest and retrieve its contents. When the spell expires or when all the contents of the chest have been removed, the elemental and the chest disappear. The elemental also disappears if the target creature orders it to return the items to you. When the elemental disappears, any items not taken from the chest reappear on the ground at your feet.\" + AtHigherLevels + \"When you cast this spell using an 8th-level spell slot, you can send the chest to a creature on a different plane of existence from you.\"\r\n}\r\nSpellsList[\"galder's tower\"] = {\r\n\tname : \"Galder's Tower\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A fragment of stone, wood, or other building material\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Conjure round or square tower with 2+1/Sl stories, each 100 sq ft and 10 ft high; see book\",\r\n\tdescriptionFull : \"You conjure a two-story tower made of stone, wood, or similar suitably sturdy materials. The tower can be round or square in shape. Each level of the tower is 10 feet tall and has an area of up to 100 square feet. Access between levels consists of a simple ladder and hatch. Each level takes one of the following forms, chosen by you when you cast the spell:\" +\r\n\t\"\\n \\u2022 A bedroom with a bed, chairs, chest, and magical fireplace\" +\r\n\t\"\\n \\u2022 A study with desks, books, bookshelves, parchments, ink, and ink pens\" +\r\n\t\"\\n \\u2022 A dining space with a table, chairs, magical fireplace, containers, and cooking utensils\" +\r\n\t\"\\n \\u2022 A lounge with couches, armchairs, side tables and footstools\" +\r\n\t\"\\n \\u2022 A washroom with toilets, washtubs, a magical brazier, and sauna benches\" +\r\n\t\"\\n \\u2022 An observatory with a telescope and maps of the night sky\" +\r\n\t\"\\n \\u2022 An unfurnished, empty room\" +\r\n\t\"\\n\\nThe interior of the tower is warm and dry, regardless of conditions outside. Any equipment or furnishings conjured with the tower dissipate into smoke if removed from it. At the end of the spell's duration, all creatures and objects within the tower that were not created by the spell appear safely outside on the ground, and all traces of the tower and its furnishings disappear.\" +\r\n\t\"\\n   You can cast this spell again while it is active to maintain the tower's existence for another 24 hours. You can create a permanent tower by casting this spell in the same location and with the same configuration every day for one year.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the tower can have one additional story for each slot level beyond 3rd.\"\r\n}\r\n\n// pub_20181120_GGtR.js\n// This file adds all material from the Guildmasters' Guide to Ravnica to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.G = {\n\tname : \"Guildmasters' Guide to Ravnica\",\n\tabbreviation : \"GGtR\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Magic: The Gathering\",\n\turl : \"https://dnd.wizards.com/products/guildmasters-guide-ravnica\",\n\tdate : \"2018/11/20\"\n};\n\n// Add the Centaur race\nRaceList[\"centaur\"] = {\n\tregExpSearch : /centaur/i,\n\tname : \"Centaur\",\n\tsortname : \"Centaur\",\n\tsource : [[\"G\", 15], [\"MOT\", 19]],\n\tplural : \"Centaurs\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 40, enc : 30 }\n\t},\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\n\t\tname : \"Hooves\",\n\t\tsource : [[\"G\", 15], [\"MOT\", 19]],\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\tdescription : \"Use as bonus action after charge 30 ft\",\n\t\tselectNow : true\n\t}],\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, or Survival\",\n\tage : \" mature and age at about the same rate as humans\",\n\theight : \" stand between 6 and 7 feet tall, with their equine bodies reaching about 4 feet at the withers (6'0\\\" + 1d10\\\")\",\n\tweight : \" weigh around 670 lb (600 + 1d10 \\xD7 2d12 lb)\",\n\theightMetric : \" stand around 2 metres tall, with their equine bodies reaching about 1,5 metres at the withers (183 + 3d8 cm)\",\n\tweightMetric : \" weigh around 300 kg (270 + 3d8 \\xD7 4d12 / 10 kg)\",\n\tscores : [2, 0, 0, 0, 1, 0],\n\ttrait : \"Centaur (+2 Strength +1 Wisdom)\" + desc([\n\t\t\"Fey: My creature type is fey, rather than humanoid.\",\n\t\t\"Hooves: I can use my hooves for unarmed strikes that deal 1d4 bludgeoning damage.\",\n\t\t\"Charge: If I move 30 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can make a hooves attack against it as a bonus action.\",\n\t\t\"Equine Build: I count as one size larger for my carrying capacity and the weight I can push, drag, or lift. Because of my hooves, 1 ft of movement while climbing costs me 4 ft.\"\n\t]),\n\taction : [[\"bonus action\", \"Hooves (after charge)\"]],\n\tcarryingCapacity : 2\n};\n// Add Loxodon\nRaceList[\"loxodon\"] = {\n\tregExpSearch : /loxodon/i,\n\tname : \"Loxodon\",\n\tsource : [[\"G\", 18]],\n\tplural : \"Loxodons\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Loxodon\"],\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*loxodon)(?=.*(natural|hide|skin)).*$/i,\n\t\tname : \"Loxodon Natural Armor\",\n\t\tsource : [[\"G\", 18]],\n\t\tac : \"12+Con\",\n\t\tdex : -10,\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Keen Smell\", 0]],\n\tage : \" physically mature at the same rate as humans, but are considered young until they reach the age of 60 and live about 450 years\",\n\theight : \" stand between 7 and 8 feet tall (6'7\\\" + 2d10\\\")\",\n\tweight : \" weigh between 300 and 400 pounds (295 + 2d10 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 2 and 2,5 metres tall (200 + 5d10 cm)\",\n\tweightMetric : \" weigh between 135 and 200 kg (133 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 2, 0, 1, 0],\n\ttrait : \"Loxodon (+2 Constitution, +1 Wisdom)\" +\n\t\t\"\\n  Powerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\" +\n\t\t\"\\n  Natural Armor: \" + (typePF ? \"I have an AC of\" : \"My thick, leathery skin gives me AC\") + \" 12 + Constitution modifier + shield.\" +\n\t\t\"\\n  Trunk: I can grasp things with my trunk or use it as a snorkel. It has a reach of 5 ft and can lift things up to 5\\xD7 my Strength in pounds. I can also use it to make unarmed strikes, but I can't use it to wield weapons, shields, or anything that requires manual precision.\" +\n\t\t\"\\n  Keen Smell: I have \" + (typePF ? \"advantage on Wisdom (Perception), Wisdom (Survival), and Intelligence (Investigation) checks that involve smell.\" : \"adv. on Perception, Survival, and Investigation checks involving smell.\"),\n\tcarryingCapacity : 2\n};\n\n// Add the Minotaur race\nRaceList[\"minotaur\"] = {\n\tregExpSearch : /minotaur/i,\n\tname : \"Minotaur\",\n\tsortname : \"Minotaur\",\n\tsource : [[\"G\", 19], [\"MOT\", 22]],\n\tplural : \"Minotaurs\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Minotaur\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /\\bhorns?\\b/i,\n\t\tname : \"Horns\",\n\t\tsource : [[\"G\", 19], [\"MOT\", 23]],\n\t\tdamage : [1, 6, \"piercing\"],\n\t\tdescription : \"Attack as a bonus action after moving 20 ft with the Dash action\",\n\t\tselectNow : true\n\t}],\n\tskillstxt : \"Choose one from Intimidation or Persuasion\",\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\n\theight : \" stand around 6 feet tall (5'4\\\" + 2d8\\\")\",\n\tweight : \" weigh around 300 pounds (175 + 2d8 \\xD7 2d6 lb)\",\n\theightMetric : \" stand around 175 cm tall (163 + 5d8 cm)\",\n\tweightMetric : \" weigh around 135 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\n\tscores : [2, 0, 1, 0, 0, 0],\n\tabilitySave : 1,\n\ttrait : \"Minotaur (+2 Strength +1 Constitution)\" + desc([\n\t\t\"Horns: I can use my horns for unarmed strikes that deal 1d6 piercing damage.\",\n\t\t\"Goring Rush: When taking a Dash action and moving at least 20 ft, I can make a horns attack as a bonus action.\",\n\t\t\"Hammering Horns: As a bonus action after I hit a melee attack during my Attack action, I can shove that target with my horns, if it is up to than one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 10 ft away from me.\"\n\t]),\n\tfeatures : {\n\t\t\"goring rush\" : {\n\t\t\tname : \"Goring Rush\",\n\t\t\tminlevel : 1,\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\n\t\t},\n\t\t\"hammering horns\" : {\n\t\t\tname : \"Hammering Horns\",\n\t\t\tminlevel : 1,\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]]\n\t\t}\n\t}\n};\n\n// Add Simic Hybrid\nRaceList[\"simic hybrid\"] = {\n\tregExpSearch : /^(?=.*(simic|elf|dwarf|human|orc))(?=.*hybrid).*$/i,\n\tname : \"Simic hybrid\",\n\tsource : [[\"G\", 20]],\n\tplural : \"Simic hybrids\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Elvish or Vedalken\", 1]],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptionsSp : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*grappling)(?=.*(appendage|tentacle|claw)).*$/i,\n\t\tname : \"Grappling Appendages\",\n\t\tsource : [[\"G\", 20]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tdescription : \"After hitting, start grapple on target as a bonus action\"\n\t}, {\n\t\tregExpSearch : /^(?=.*acid)(?=.*spit).*$/i,\n\t\tname : \"Acid Spit\",\n\t\tsource : [[\"G\", 21]],\n\t\tability : 3,\n\t\ttype : \"Natural\",\n\t\tdamage : [\"C\", 10, \"acid\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Dex save, success - no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\textraACSp : {\n\t\tname : \"Carapace\",\n\t\tmod : 1,\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor.\",\n\t\tstopeval : function (v) { return v.heavyArmor; }\n\t},\n\tage : \" age slightly faster than their base humanoid race and their maximum lifespan is somewhat reduced\",\n\theight : \" are of the same height as typical for their humanoid race\",\n\tweight : \" are of the same weight as typical for their humanoid race\",\n\tscorestxt : \"Simic Hybrid: +2 Constitution and +1 to one other ability score of my choice;\",\n\tscores : [0, 0, 2, 0, 0, 0],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (1st level): Choose one to three types of enhancement using the \\\"Racial Options\\\" button: Manta Glide, Nimble Climber, or Underwater Adaptation.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can either choose one I didn't take at 1st level or choose Grappling Appendages, Carapace, or Acid Spit.\",\n\tfeatures : {\n\t\t\"animal enhancement\" : {\n\t\t\tname : \"Animal Enhancement\",\n\t\t\tminlevel : 5,\n\t\t\teval : function() {\n\t\t\t\tvar curChoice = ParseRace(What('Race Remember'))[1].capitalize();\n\t\t\t\tvar AEoptions = [\"Manta Glide\", \"Nimble Climber\", \"Underwater Adaptation\", \"Grappling Appendages\", \"Carapace\", \"Acid Spit\"];\n\t\t\t\tif (curChoice && AEoptions.indexOf(curChoice) !== -1) AEoptions.splice(AEoptions.indexOf(curChoice), 1);\n\t\t\t\tvar theChoice = AskUserOptions('Simic Hybrid 5th-level Animal Enhancement', 'The Simic Hybrid race offers a choice of animal enhancement at 5th-level. Make a selection to update the sheet accordingly. You can only change this selection by removing the Simic Hybrid race or changing its variant.', AEoptions, 'radio', true);\n\t\t\t\tvar feaTxt = '';\n\t\t\t\tvar rObjNm = \"simic hybrid\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Manta Glide\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { climb : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Nimble Climber)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { swim : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Underwater Adaptation)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Grappling Appendages): I have two extra appendages which I can use to make unarmed strikes for 1d6 bludgeoning damage. As a bonus action after hitting with them, I can try to grapple the target. I can't use these appendages to wield anything.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tAddWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tAddAction(\"bonus action\", \"Grappling Appendages (after hit)\", rNm + \": Animal Enhancement (Grappling Appendages)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Carapace): My skin is covered by a thick shell, giving my a +1 to AC whenever I'm not wearing heavy armor.\";\n\t\t\t\t\t\tprocessExtraAC(true, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Acid Spit): As an action, I can spit acid at a creature within 30 ft that I can see. It must make a Dex save (DC 8 + Con mod + Prof Bonus) or take 2d10 acid damage (+1d10 at 11th and 17th level). I can do this my Con mod times per long rest.\";\n\t\t\t\t\t\tAddFeature(\"Acid Spit\", \"Con Mod\", \"\", \"long rest\", rNm + \": Animal Enhancement (Acid Spit)\", 0, \"event.value = Math.max(1, What('Con Mod'));\");\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tAddWeapon(\"Acid Spit\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tif (What(\"Unit System\") !== \"imperial\") feaTxt = ConvertToMetric(feaTxt, 0.5);\n\t\t\t\tValue(\"Racial Traits\", What(\"Racial Traits\").replace(/Animal Enhancement \\(5th level\\):.*/, '') + feaTxt);\n\t\t\t\tValue(\"Race Remember\", What(\"Race Remember\") + \"-*\" + theChoice.replace(' ', '_') + \"*\");\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar theRegex = /\\*(Manta_Glide|Nimble_Climber|Underwater_Adaptation|Grappling_Appendages|Carapace|Acid_Spit)\\*/i;\n\t\t\t\tvar raceRem = What(\"Race Remember\");\n\t\t\t\tif (!theRegex.test(raceRem)) return;\n\t\t\t\tvar theChoice = raceRem.match(theRegex)[1].replace('_', ' ').capitalize();\n\t\t\t\tvar rObjNm = \"simic hybrid\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { climb : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Nimble Climber)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { swim : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Underwater Adaptation)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tRemoveWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tRemoveAction(\"bonus action\", \"Grappling Appendages (after hit)\", rNm + \": Animal Enhancement (Grappling Appendages)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tprocessExtraAC(false, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tRemoveFeature(\"Acid Spit\", \"\", \"\", \"\", \"\", \"\", \"event.value = Math.max(1, What('Con Mod'));\");\n\t\t\t\t\t\tRemoveWeapon(\"Acid Spit\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tValue(\"Racial Traits\", What(\"Unit System\") === \"imperial\" ? CurrentRace.trait : ConvertToMetric(CurrentRace.trait, 0.5));\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"simic hybrid\", \"manta glide\", {\n\tregExpSearch : /manta glide/i,\n\tsource : [[\"G\", 20]],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Nimble Climber, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid\", \"nimble climber\", {\n\tregExpSearch : /nimble climber/i,\n\tsource : [[\"G\", 20]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid\", \"underwater adaptation\", {\n\tregExpSearch : /underwater adaptation/i,\n\tsource : [[\"G\", 20]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Nimble Climber, Grappling Appendages, Carapace, or Acid Split.\"\n});\n\n// Add Vedalken\nRaceList[\"vedalken\"] = {\n\tregExpSearch : /vedalken/i,\n\tname : \"Vedalken\",\n\tsource : [[\"G\", 21]],\n\tplural : \"Vedalken\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tskillstxt : \"Choose one from Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. I add 1d4 to a check with the chosen skill\",\n\tlanguageProfs : [\"Common\", \"Vedalken\", 1],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" reach maturity around age 40 and typically live 350 years, with some living up to 500 years\",\n\theight : \" stand between 6 and 6 and a half feet tall (5'4\\\" + 2d10\\\")\",\n\tweight : \" are slender, weighing around 200 pounds (110 + 2d10 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 1,8 and 2 metres tall (163 + 5d10 cm)\",\n\tweightMetric : \" are slender, weighing around 100 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 2, 1, 0],\n\ttrait : \"Vedalken (+2 Intelligence, +1 Wisdom)\" + desc([\n\t\t\"Vedalken Dispassion: I have advantage on all Intelligence, Wisdom, and Charisma saves.\",\n\t\t\"Tireless Precision: I am proficient with any one tool and one skill of my choice: Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. Whenever I make an ability check with the chosen tool or skill, I can add 1d4 to the check's total.\",\n\t\t\"Partially Amphibious: Once per long rest, I can breathe underwater for 1 hour by absorbing oxygen through my skin.\"\n\t]),\n\tfeatures : {\n\t\t\"partially amphibious\" : {\n\t\t\tname : \"Partially Amphibious\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t},\n\tadvantages : [[\"Int\", true], [\"Wis\", true], [\"Cha\", true]]\n};\n\n// New Subclass for Cleric: Order Domain\nAddSubClass(\"cleric\", \"order domain\", {\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*order).*$/i,\n\tsubname : \"Order Domain\",\n\tsource : [[\"T\", 31], [\"G\", 25]],\n\tspellcastingExtra : [\"command\", \"heroism\", \"hold person\", \"zone of truth\", \"mass healing word\", \"slow\", \"compulsion\", \"locate creature\", \"commune\", \"dominate person\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Bonus Proficiency\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 1,\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor, and either the Intimidation or Persuasion skill\"),\n\t\t\tarmorProfs : [false, false, true, false],\n\t\t\tskillstxt : \"Choose one from Intimidation or Persuasion\"\n\t\t},\n\t\t\"subclassfeature1.1\" : {\n\t\t\tname : \"Voice of Authority\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 1,\n\t\t\tdescription : desc([\n\t\t\t\t\"Whenever I use a spell slot to cast a spell on an ally, it can use its reaction to attack\",\n\t\t\t\t\"The ally makes one weapon attack against a target of my choice that I can see\",\n\t\t\t\t\"If the spell targets multiple allies, I can choose which one can make the attack\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Channel Divinity: Order's Demand\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, all chosen targets in 30 ft that can see or hear me must make a Wis save\",\n\t\t\t\t\"If failed, it is charmed by me until the end of my next turn or it takes any damage\",\n\t\t\t\t\"Also, I can choose to have a charmed target drop what its holding when it fails its save\"\n\t\t\t]),\n\t\t\taction : [[\"action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Embodiment of the Law\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I cast an enchantment spell using a spell slot, I can reduce its casting time\",\n\t\t\t\t\"If the spell normally has a casting time of an action, I can now cast it as a bonus action\"\n\t\t\t]),\n\t\t\tusages : \"Wisdom modifier per \",\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery : \"long rest\",\n\t\t\tcalcChanges : {\n\t\t\t\tspellAdd : [\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\t\t\tif (CurrentSpells[spName].refType == \"class\" && spellObj.school == \"Ench\" && spellObj.time == \"1 a\") {\n\t\t\t\t\t\t\tspellObj.time = \"1a/bns\"\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"When I cast an enchantment spell using a spell slot that normally requires 1 action to cast, I can reduce its casting time to a bonus action.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature8\" : {\n\t\t\tname : \"Divine Strike\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 8,\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\tif (n < 8) return \"\";\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\n\t\t\t}),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage' + (classes.known.cleric.level < 17 ? '' : ' \\u0026 again if hit by ally before my next turn');\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature17\" : {\n\t\t\tname : \"Order's Wrath\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 17,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I deal my Divine Strike damage to a creature, it is cursed until my next turn starts\",\n\t\t\t\t\"The next time it is hit by a weapon attack from my allies, it takes +2d8 psychic damage\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n// New Subclass for Druid: Circle of Spores (but add TCoE as main source, because it is more likely to be available at a table)\nAddSubClass(\"druid\", \"circle of spores\", {\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*spores).*$/i,\n\tsubname : \"Circle of Spores\",\n\tsubnameShort: \"Spores\",\n\tsource : [[\"T\", 36], [\"G\", 26]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Circle Spells\",\n\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"I learn the Chill Touch cantrip and gain the ability to cast certain spells\",\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Circle Spells\",\n\t\t\t\tspells : [\"chill touch\"],\n\t\t\t\tselection : [\"chill touch\"]\n\t\t\t}],\n\t\t\tspellcastingExtra : [\"blindness/deafness\", \"gentle repose\", \"animate dead\", \"gaseous form\", \"blight\", \"confusion\", \"cloudkill\", \"contagion\"]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Halo of Spores\",\n\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\n\t\t\tminlevel : 2,\n \t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when someone I can see in 10 ft starts its turn or moves, I can have it save\",\n\t\t\t\t\"It must succeed on a Constitution save or take necrotic damage from my cloud of spores\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : 'Con save or 1d' + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10) + \" necrotic damage\"; }),\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature2.2\" : { // changed from poison to necrotic damage in TCoE\n\t\t\tname : \"Symbiotic Entity\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can expend a Wild Shape use to boost my spores instead of transforming\",\n\t\t\t\t\"I gain 4 temporary hit points per druid level and my Halo of Spores damage increases\",\n\t\t\t\t\"Also, my melee weapon attacks do +1d6 necrotic damage with every hit\",\n\t\t\t\t\"This lasts for 10 min, until these temporary HP run out, or until I use Wild Shape again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 2 ? \"\" : Math.floor(n*4) + \" temp HP; Halo of Spores: 2d\" + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10);\n\t\t\t}),\n\t\t\taction : [[\"action\", \"\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/\\b(spore|symbiotic)\\b/i).test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 necrotic damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the word 'Spore' or 'Symbiotic' in a melee weapon's name, it gets treated as a weapon that is infused by my Symbiotic Entity feature, adding +1d6 necrotic damage in the description.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Fungal Infestation\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when a Small/Medium beast/humanoid dies in 10 ft, I can animate it\",\n\t\t\t\t\"It rises as a zombie with 1 HP that follows my mental commands and dies after 1 hour\",\n\t\t\t\t\"It can only take the attack action for one melee attack; It takes its turns after mine\"\n\t\t\t]),\n\t\t\tusages : \"Wisdom modifier per \",\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Spreading Spores\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : \" [only while Symbiotic Entity is active]\" + desc([\n\t\t\t\t\"As a bonus action, I create a 10-ft cube of fungal spores within 30 ft, lasting for 1 min\",\n\t\t\t\t\"Any creature moving into or starting its turn in it must save against my Halo of Spores\",\n\t\t\t\t\"The cube ends if I use this feature again; While it persists, I can't use my Halo of Spores\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Fungal Body\",\n\t\t\tsource : [[\"T\", 38], [\"G\", 27]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"I'm immune to being blinded, deafened, frightened, poisoned, and critical hits\"\n\t\t\t]),\n\t\t\tsavetxt : { immune : [\"blinded\", \"deafened\", \"frightened\", \"poisoned\", \"critical hits (unless incapacitated)\"] }\n\t\t}\n\t}\n});\n\nBackgroundList[\"azorius functionary\"] = {\n\tregExpSearch : /^(?=.*azorius)(?=.*functionary).*$/i,\n\tname : \"Azorius Functionary\",\n\tsource : [[\"G\", 33]],\n\tskills : [\"Insight\", \"Intimidation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"friends\", \"message\", \"command\", \"ensnaring strike\", \"arcane lock\", \"calm emotions\", \"hold person\", \"clairvoyance\", \"counterspell\", \"compulsion\", \"divination\", \"dominate person\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Friends, Message, Command, Ensnaring Strike, Arcane Lock, Calm Emotions, Hold Person, Clairvoyance, Counterspell, Compulsion, Divination, and Dominate Person.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Scroll with law text\", \"\", \"\"],\n\t\t[\"Blue ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Azorius insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Legal Authority\",\n\ttrait : [\n\t\t\"I try never to let my judgment become clouded by emotion.\",\n\t\t\"I have infinite patience with the dolts and boors I'm forced to deal with every day.\",\n\t\t\"When I give an order, I expect it to be obeyed.\",\n\t\t\"I just want things the way I like them: neat, orderly, and clean.\",\n\t\t\"No wrongdoing can escape my watchful gaze.\",\n\t\t\"I always say exactly what I mean, no matter how many words it takes to communicate the particular nuance I am attempting to convey.\",\n\t\t\"I'm very literal and don't appreciate metaphor or sarcasm.\",\n\t\t\"I never change my mind once it's made up.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Order\", \"Order: The law is meant to ensure that the gears of society turn smoothly and quietly. (Lawful)\"],\n\t\t[\"Peace\", \"Peace: The ultimate object of the law is to remove violence from society. (Good)\"],\n\t\t[\"Compliance\", \"Compliance: Coercion is a fine way of ensuring that the laws are obeyed. (Lawful)\"],\n\t\t[\"Legislation\", \"Legislation: The law embodies excellence in its precision and detail. (Lawful)\"],\n\t\t[\"Punishment\", \"Punishment: A public display of consequences is an excellent deterrent for other criminals. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I am beholden to an Azorius arrester who captured the criminal who killed my parents, saving me from the same fate.\",\n\t\t\"I hope one day to write the laws, not just enforce them.\",\n\t\t\"I tried and failed to prevent a murder, and I have sworn to find and arrest the perpetrator.\",\n\t\t\"I successfully prevented a murder, and the would-be perpetrator wants me dead.\",\n\t\t\"One of my parents was prominent in the guild, and I resent constantly being compared to that standard.\",\n\t\t\"I've modeled my career after a highly respected lawmage or arrester, but I fear that my role model might be involved in something illegal.\"\n\t],\n\tflaw : [\n\t\t\"I'm unable to distinguish between the letter and the spirit of the law.\",\n\t\t\"I seem like a harsh judge to others, but I judge myself most harshly of all.\",\n\t\t\"I have a secret, illegal vice.\",\n\t\t\"I was traumatized by witnessing a crime as a child.\",\n\t\t\"I'm incapable of deception.\",\n\t\t\"I wish I had joined the Boros, but I fear they'd never accept me.\"\n\t]\n};\nBackgroundFeatureList[\"legal authority\"] = {\n\tdescription : \"I have the authority to enforce the laws of Ravnica, inspiring respect and fear as a result. People mind their manners, avoid my attention, and assume I have a right to be wherever I am. My Azorius insignia gets me an audience with anyone I want, though it might work adversely with incorrigible lawbreakers. Abusing this privilege can get me in serious trouble.\",\n\tsource : [[\"G\", 33]]\n};\n\nBackgroundList[\"boros legionnaire\"] = {\n\tregExpSearch : /^(?=.*boros)(?=.*legionnaire).*$/i,\n\tname : \"Boros Legionnaire\",\n\tsource : [[\"G\", 40]],\n\tskills : [\"Athletics\", \"Intimidation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"sacred flame\", \"guiding bolt\", \"heroism\", \"aid\", \"scorching ray\", \"beacon of hope\", \"blinding smite\", \"death ward\", \"wall of fire\", \"flame strike\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Sacred Flame, Guiding Bolt, Heroism, Aid, Scorching Ray, Beacon of Hope, Blinding Smite, Death Ward, Wall of Fire, and Flame Strike.\"\n\t\t]\n\t},\n\tgold : 2,\n\tequipleft : [\n\t\t[\"Feather from angel's wing\", \"\", \"\"],\n\t\t[\"Tattered piece of Boros banner\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Boros insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Celestial, Draconic, Goblin, or Minotaur\", 1]],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tfeature : \"Legion Station\",\n\ttrait : [\n\t\t\"I approach every task with the same high degree of military precision.\",\n\t\t\"I am always the first into the fray.\",\n\t\t\"I bear any injury or indignity with stoic discipline.\",\n\t\t\"My righteous wrath is easily inflamed by the slightest iniquity.\",\n\t\t\"My honor is more important to me than my life.\",\n\t\t\"Dangerous work is best accomplished by an orderly group working with common purpose.\",\n\t\t\"I treat my weapons, uniform, and insignia with reverence, for they are gifts of the angels.\",\n\t\t\"I pace when standing and fidget incessantly when forced to sit.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Justice\", \"Justice: Achieving justice requires establishing fair, equitable, and compassionate relationships within a community. (Good)\"],\n\t\t[\"Protection\", \"Protection: It isn't right for innocents to suffer because of the arrogance of the powerful. (Good)\"],\n\t\t[\"Solidarity\", \"Solidarity: It is most crucial to act with a single will, marching side by side in perfect accord. (Lawful)\"],\n\t\t[\"Order\", \"Order: Society functions only if people do their duty and respect the chain of command. (Lawful)\"],\n\t\t[\"Conviction\", \"Conviction: Anything worth doing is worth doing with your whole heart. (Lawful)\"]\n\t],\n\tbond : [\n\t\t\"I would lay down my life for Aurelia and the angels.\",\n\t\t\"I owe my life to the Boros captain who took me in when I was living on the streets.\",\n\t\t\"My fellow legionnaires are my family.\",\n\t\t\"I wield the same Boros weapon my grandparent did, for the honor of our family.\",\n\t\t\"I ran with the Rakdos in my youth, and I'm striving to atone for my past misdeeds.\",\n\t\t\"I do what I can to help out the spouse of a comrade who died in battle.\"\n\t],\n\tflaw : [\n\t\t\"I act bravely when I'm in a group, but I'm a coward when I'm alone.\",\n\t\t\"I see everything in clear-cut black and white.\",\n\t\t\"I'm just a little fascinated by the ways of the Gruul.\",\n\t\t\"I trust the chain of command more than anything\\u2014more even than my closest friends.\",\n\t\t\"I'm slow to trust members of other guilds.\",\n\t\t\"I've been known to turn a blind eye to injustice, with the help of a modest bribe.\"\n\t],\n\tlifestyle : \"poor\"\n};\nBackgroundFeatureList[\"legion station\"] = {\n\tdescription : \"I am established in the hierarchy of the Boros Legion. I can requisition simple equipment for temporary use. I have access to any Boros garrison in Ravnica where I can rest in safety and have access to medics. I'm paid 1 gp per week (a Boros-minted 1-zino coin), allowing me (together with the free garrison lodging) to have a poor lifestyle between adventures.\",\n\tsource : [[\"G\", 40]]\n};\n\nBackgroundList[\"dimir operative\"] = {\n\tregExpSearch : /^(?=.*dimir)(?=.*operative).*$/i,\n\tname : \"Dimir Operative\",\n\tsource : [[\"G\", 46]],\n\tskills : [\"Deception\", \"Stealth\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"encode thoughts\", \"mage hand\", \"disguise self\", \"sleep\", \"detect thoughts\", \"pass without trace\", \"gaseous form\", \"meld into stone\", \"nondetection\", \"arcane eye\", \"freedom of movement\", \"modify memory\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Encode Thoughts, Mage Hand, Disguise Self, Sleep, Detect Thoughts, Pass Without Trace, Gaseous Form, Meld into Stone, Nondetection, Arcane Eye, Freedom of Movement, and Modify Memory.\"\n\t\t]\n\t},\n\tgold : 0,\n\tequipleft : [\n\t\t[\"Small knife\", 3, 0.25],\n\t\t[\"Starting equipment of secondary guild\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Dark-colored common clothes\", \"\", 3],\n\t\t[\"Dimir insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [\"Disguise kit\"],\n\tfeature : \"False Guild Identity\",\n\ttrait : [\n\t\t\"I'm good at hiding my true thoughts and feelings.\",\n\t\t\"When I'm in doubt about revealing something, I assume it's a secret, and I don't share it.\",\n\t\t\"I like to sound mysterious, because wisdom hidden grows deeper with time.\",\n\t\t\"I have no patience with people who get in my way.\",\n\t\t\"I love hearing about other people's nightmares.\",\n\t\t\"Combat is meant to be quick, clean, and one-sided.\",\n\t\t\"I like to stick to the shadows.\",\n\t\t\"I never show my anger. I just plot my revenge.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My true guild is all that really matters. (Any)\"],\n\t\t[\"Control\", \"Control: I like pulling the strings. (Lawful)\"],\n\t\t[\"Secrets\", \"Secrets: I collect secrets and never reveal them. (Any)\"],\n\t\t[\"Knowledge\", \"Knowledge: I want to know as much as I can about this city and how it works. (Any)\"],\n\t\t[\"Independence\", \"Independence: I value the freedom to pursue my own goals without interference. (Chaotic)\"],\n\t\t[\"Nihilism\", \"Nihilism: I don't believe in anything, and anyone who does is a fool. (Neutral)\"]\n\t],\n\tbond : [\n\t\t\"I discovered a secret I can't let anyone else uncover\\u2014including my guild superiors.\",\n\t\t\"I formed a close friendship or romance with someone in the guild I'm infiltrating.\",\n\t\t\"The Dimir agent who recruited me was unmasked and killed. My revenge on the killers will be thorough and painful.\",\n\t\t\"I spend as much time as I can in the Ismeri Library because I'm certain an information hub operates behind its facade. I want its secrets!\",\n\t\t\"I'm utterly loyal to my superior in the guild, more than to the guild or its guildmaster.\",\n\t\t\"Someone has discovered my true identity.\"\n\t],\n\tflaw : [\n\t\t\"I like secrets so much that I'm reluctant to share details of a plan even with those who need to know.\",\n\t\t\"I would let my friends die rather than reveal my true identity.\",\n\t\t\"I have trouble trusting anyone but myself.\",\n\t\t\"I have a particular vice that puts all my secrets at risk if I'm not careful.\",\n\t\t\"I'm pretty sure I've done something horrible that I can't remember because of the guild's mind magic.\",\n\t\t\"I put too much trust in the people who give me orders.\"\n\t],\n\textra : [\n\t\t\"Select a Reason for Infiltration\",\n\t\t\"Parental link\",\n\t\t\"Track activities\",\n\t\t\"Spy on individual\",\n\t\t\"Recruit more spies\",\n\t\t\"Member before recruitment\",\n\t\t\"Destroy from within\",\n\t\t\"Secret wish to join\",\n\t\t\"Randomly chosen\"\n\t]\n};\nBackgroundFeatureList[\"false guild identity\"] = {\n\tdescription : \"I have more than one identity. The one I wear most of the time makes me appear to be a member of a guild other than my own. I have documentation, established acquaintances, and disguises that allow me to assume that persona and fit into the secondary guild. Whenever I choose, I can drop this identity and blend into the guildless masses of the city.\",\n\tsource : [[\"G\", 46]]\n};\n\nBackgroundList[\"golgari agent\"] = {\n\tregExpSearch : /^(?=.*golgari)(?=.*agent).*$/i,\n\tname : \"Golgari Agent\",\n\tsource : [[\"G\", 53]],\n\tskills : [\"Nature\", \"Survival\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"dancing lights\", \"spare the dying\", \"entangle\", \"ray of sickness\", \"protection from poison\", \"ray of enfeeblement\", \"spider climb\", \"animate dead\", \"plant growth\", \"giant insect\", \"grasping vine\", \"cloudkill\", \"insect plague\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Dancing Lights, Spare the Dying, Entangle, Ray of Sickness, Protection from Poison, Ray of Enfeeblement, Spider Climb, Animate Dead, Plant Growth, Giant Insect, Grasping Vine, Cloudkill, and Insect Plague.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Poisoner's kit\", \"\", 2]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Golgari insignia\", \"\", \"\"],\n\t\t[\"Pet beetle or spider\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Elvish, Giant, or Kraul\", 1]],\n\ttoolProfs : [\"Poisoner's kit\"],\n\tfeature : \"Undercity Paths\",\n\ttrait : [\n\t\t\"Remember, I could kill you in your sleep. Or put centipedes in your bedroll.\",\n\t\t\"I like to remind people of their inevitable demise.\",\n\t\t\"Sometimes I give voice to the whispers of the rot, which I hear but no one else does.\",\n\t\t\"I do my best to discourage anyone from approaching or talking to me.\",\n\t\t\"I have accepted my death. Hence, I don't fear it.\",\n\t\t\"Like roots growing through stone, I am relentless and determined in my action.\",\n\t\t\"I put my knowledge of anatomy to use by narrating the injuries my enemies suffer in grisly detail.\",\n\t\t\"Like a wild animal, I lash out viciously when I'm provoked\\u2014and I'm easily provoked.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Stoicism\", \"Stoicism: All of us are part of the cyclical march of nature, which will continue with or without us. (Neutral)\"],\n\t\t[\"Nature\", \"Nature: The natural world is more important than the edifices of the city and civilization. (Neutral)\"],\n\t\t[\"Interdependence\", \"Interdependence: We are all part of nature's web. (Lawful)\"],\n\t\t[\"Ambition\", \"Ambition: The time of Golgari ascendance is at hand, and I intend to have a prominent place in the new world order. (Evil)\"],\n\t\t[\"Live and Let Live\", \"Live and Let Live: Meddling in the affairs of other guilds is a great way to get squashed like a bug. (Neutral)\"]\n\t],\n\tbond : [\n\t\t\"I cherish the finger of a family member who was petrified by a medusa.\",\n\t\t\"I have an identical twin who is as different from me as any person could be.\",\n\t\t\"I want to lead one faction of the guild to a new position of dominance.\",\n\t\t\"I love spending time in the moss-covered building where I took part in my first reclamation mission.\",\n\t\t\"I found something in the sewer that must never come to light.\",\n\t\t\"I am forever grateful to the reclaimer who found me floating facedown in the sewer, moments from death.\"\n\t],\n\tflaw : [\n\t\t\"Death comes for us all, so you can't expect me to take care of someone who can't fight it off.\",\n\t\t\"I assume that anyone outside the Golgari looks down on me.\",\n\t\t\"I feel a need for revenge against those who enjoy the privilege of living above ground.\",\n\t\t\"I don't bother to couch my opinions in flattering words.\",\n\t\t\"I can't help but pocket any trinket or coin I come across, no matter how worthless.\",\n\t\t\"I'm convinced that I'm better and stronger than members of other guilds, isolated as they are from the realities of life and death.\"\n\t]\n};\nBackgroundFeatureList[\"undercity paths\"] = {\n\tdescription : \"I know hidden, underground pathways that I can use to bypass crowds, obstacles, and observation as I move through the city. I can lead a group to travel between two locations in the city twice as fast as normally. The paths of the undercity are haunted by dangers that rarely brave the light of the surface world, so my journey isn't guaranteed to be safe.\",\n\tsource : [[\"G\", 53]]\n};\n\nBackgroundList[\"gruul anarch\"] = {\n\tregExpSearch : /^(?=.*gruul)(?=.*anarch).*$/i,\n\tname : \"Gruul Anarch\",\n\tsource : [[\"G\", 60]],\n\tskills : [\"Animal Handling\", \"Athletics\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"produce flame\", \"compelled duel\", \"speak with animals\", \"thunderwave\", \"beast sense\", \"shatter\", \"conjure animals\", \"conjure barrage\", \"dominate beast\", \"stoneskin\", \"destructive wave\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Produce Flame, Compelled Duel, Speak with Animals, Thunderwave, Beast Sense, Shatter, Conjure Animals, Conjure Barrage, Dominate Beast, Stoneskin, and Destructive Wave.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Herbalism kit\", \"\", 3],\n\t\t[\"Skull of a boar\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Gruul insignia\", \"\", \"\"],\n\t\t[\"Hunting trap\", \"\", 25],\n\t\t[\"Beast-hide cloak\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Draconic, Giant, Goblin, or Sylvan\", 1]],\n\ttoolProfs : [\"Herbalism kit\"],\n\tfeature : \"Rubblebelt Refuge\",\n\ttrait : [\n\t\t\"Unlike people, the beasts of the wild are friends who won't stab me in the back.\",\n\t\t\"Go ahead and insult me\\u2014I dare you.\",\n\t\t\"I scorn those who can't survive away from the comforts of the city.\",\n\t\t\"Don't tell me I'm not allowed to do something.\",\n\t\t\"Laws are for people who are afraid to face their inner beasts.\",\n\t\t\"I smear the blood of my enemies over my skin.\",\n\t\t\"I was, in fact, raised by maaka.\",\n\t\t\"HarrRRAAGGHH! [I rarely form a coherent sentence and prefer to express myself by breaking things.]\"\n\t],\n\tideal : [\n\t\t[\"Clan\", \"Clan: My clan is all that really matters. (Any)\"],\n\t\t[\"Anarchy\", \"Anarchy: No person or law or custom can tell another what to do. (Chaotic)\"],\n\t\t[\"Nature\", \"Nature: We weren't born tame or domesticated, so we shouldn't have to live that way. (Neutral)\"],\n\t\t[\"Might\", \"Might: The strongest are meant to dominate the weak. (Evil)\"],\n\t\t[\"Rage\", \"Rage: AAAAAARRRRggggh! [To live is to feel and express the rage burning in your belly.] (Chaotic)\"],\n\t\t[\"Tradition\", \"Tradition: The Old Ways must be preserved and upheld. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I am determined that one day I will lead my clan\\u2014or a new one.\",\n\t\t\"I would give my life for my clan chieftain.\",\n\t\t\"The chieftain of another clan has a grudge against me.\",\n\t\t\"I am devoted to a sacred site in the midst of the rubblebelt.\",\n\t\t\"My weapon is made from the first raktusk I ever hunted.\",\n\t\t\"GrrrRRAAAAGGHH! [I will do anything to prove myself greater than my siblings or ancestors.]\"\n\t],\n\tflaw : [\n\t\t\"If you question my courage, I will never back down.\",\n\t\t\"HrrrGGGAAAARRuuuh! [My anger in battle led to the death of a loved one.]\",\n\t\t\"I'm as stubborn as a batterboar.\",\n\t\t\"I'm so convinced of my superiority over soft, civilized people that I'll take great risks to prove it.\",\n\t\t\"I'm easily manipulated by people I find attractive.\",\n\t\t\"I'm not actually all that angry.\"\n\t],\n\textra : [\n\t\t\"Select a Gruul Clan\",\n\t\t\"Burning Tree clan\",\n\t\t\"Ghor clan\",\n\t\t\"Scab clan\",\n\t\t\"Slitz clan\",\n\t\t\"Gravel Hide clan\",\n\t\t\"Zhur-Taa clan\",\n\t\t\"Minor or new clan\",\n\t\t\"Trog\"\n\t]\n};\nBackgroundFeatureList[\"rubblebelt refuge\"] = {\n\tdescription : \"I'm very familiar with areas of the city that most people shun: neighborhoods ruined by wurms, overgrown parks gone untended for decades, and the vast, long abandoned rubblebelts of broken terrain. There, I can find a suitable place for me and my allies to hide or rest, as well as food and fresh water for myself and up to five other people each day.\",\n\tsource : [[\"G\", 60]]\t\n};\n\nBackgroundList[\"izzet engineer\"] = {\n\tregExpSearch : /^(?=.*izzet)(?=.*engineer).*$/i,\n\tname : \"Izzet Engineer\",\n\tsource : [[\"G\", 66]],\n\tskills : [\"Arcana\", \"Investigation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"produce flame\", \"shocking grasp\", \"chaos bolt\", \"create or destroy water\", \"unseen servant\", \"heat metal\", \"rope trick\", \"call lightning\", \"elemental weapon\", \"glyph of warding\", \"conjure minor elementals\", \"divination\", \"otiluke's resilient sphere\", \"animate objects\", \"conjure elemental\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Produce Flame, Shocking Grasp, Chaos Bolt, Create or Destroy Water, Unseen Servant, Heat Metal, Rope Trick, Call Lightning, Elemental Weapon, Glyph of Warding, Conjure Minor Elementals, Divination, Otiluke's Resilient Sphere, Animate Objects, and Conjure Elemental.\"\n\t\t]\n\t},\n\tgold : 5,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Twisted remains of failed experiment\", \"\", \"\"],\n\t\t[\"Hammer\", \"\", 3],\n\t\t[\"Block and tackle\", \"\", 5]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Izzet insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Draconic, Goblin, or Vedalken\", 1]],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Urban Infrastructure\",\n\ttrait : [\n\t\t\"I have a hard time staying focused on ... oh, and my brain tends to jump from one ... did I mention focus?\",\n\t\t\"I get really excited about my ideas and I can't wait to talk about them and start putting them into practice and tinkering with them and I want to tell you about how exciting it all is!\",\n\t\t\"It's not magic\\u2014or anything, really\\u2014if you do it only halfway. Whatever I do, I give it all I've got.\",\n\t\t\"I do what my gut tells me.\",\n\t\t\"Life's an experiment, and I can't wait to see what happens.\",\n\t\t\"I pepper my speech with the incomprehensible jargon of my trade, like mizzium droplets inserted into a weird-field suspension.\",\n\t\t\"Great ideas are fine, but great results are what counts.\",\n\t\t\"If you can guess what I'm about to do, that means I've run out of imagination.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Creativity\", \"Creativity: Half the world's troubles come from stodgy thinking, stuck in the past. We need innovative solutions. (Chaotic)\"],\n\t\t[\"Discovery\", \"Discovery: Every experiment has the potential to reveal more secrets of the multiverse. (Any)\"],\n\t\t[\"Science\", \"Science: A rigorous application of logical principles and protocols will lead us toward progress more surely than any belief system. (Lawful)\"],\n\t\t[\"Fun\", \"Fun: I love my job! Despite the dangerous working conditions, there's nothing I'd rather do. (Chaotic)\"],\n\t\t[\"Power\", \"Power: Someday I'll find or create the magic that will make me the most powerful being in Ravnica. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I have dedicated my life to finding a solution to a scientific problem.\",\n\t\t\"I'll never forget the laboratory where I learned my skills, or the other attendants who learned alongside me.\",\n\t\t\"I'm convinced it was sabotage that destroyed my first laboratory and killed many of my friends, and I seek revenge against whoever did it.\",\n\t\t\"I have the schematics for an invention that I hope to build one day, once I have the necessary resources.\",\n\t\t\"A fellow student and I are racing to solve the same scientific puzzle.\",\n\t\t\"I would do anything the guildmaster told me to do.\"\n\t],\n\tflaw : [\n\t\t\"If there's a plan, I'll probably forget it. If I don't forget it, I'll probably ignore it.\",\n\t\t\"I get bored easily, and if nothing is happening I'll make something happen.\",\n\t\t\"Nothing is ever simple, and if it seems simple, I'll find a way to make it complicated.\",\n\t\t\"I tend to ignore sleep for days when I'm conducting research, often at the expense of my own health and safety.\",\n\t\t\"I'm convinced there's not a soul in Ravnica, except maybe the great Niv-Mizzet, who can match my boundless intellect.\",\n\t\t\"I'm incapable of admitting a flaw in my logic.\"\n\t]\n};\nBackgroundFeatureList[\"urban infrastructure\"] = {\n\tdescription : \"Although the Izzet League is infamous for mad inventions it is also involved in construction of the city's infrastructure. I have a basic knowledge of the structure of buildings and what is behind its walls. I can find their blueprints showing entry points, secret spaces, structural weaknesses, or secret spaces. My guild won't protect me if I use this knowledge unlawfully.\",\n\tsource : [[\"G\", 66]]\n};\n\nBackgroundList[\"orzhov representative\"] = {\n\tregExpSearch : /^(?=.*orzhov)(?=.*representative).*$/i,\n\tname : \"Orzhov Representative\",\n\tsource : [[\"G\", 72]],\n\tskills : [\"Intimidation\", \"Religion\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"friends\", \"guidance\", \"command\", \"illusory script\", \"enthrall\", \"ray of enfeeblement\", \"zone of truth\", \"bestow curse\", \"speak with dead\", \"spirit guardians\", \"blight\", \"death ward\", \"leomund's secret chest\", \"geas\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Friends, Guidance, Command, Illusory Script, Enthrall, Ray of Enfeeblement, Zone of Truth, Bestow Curse, Speak with Dead, Spirit Guardians, Blight, Death Ward, Leomund's Secret Chest, and Geas.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Orzhov insignia\", \"\", \"\"],\n\t\t[\"Vestments\", \"\", 4],\n\t\t[\"Chain of 10 golden coins\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Leverage\",\n\ttrait : [\n\t\t\"I am always willing to act in accordance with the financial incentive offered.\",\n\t\t\"Debts are never meant to be forgiven.\",\n\t\t\"I am accustomed to enjoying the finest pleasures money can buy.\",\n\t\t\"No one could doubt that I am a cut above the masses of pitiful peasants that infest the city.\",\n\t\t\"I can't stand to spend a zib more than necessary to purchase what I need.\",\n\t\t\"I hate it when people try to make light of a serious situation.\",\n\t\t\"I want to make sure everyone is aware of how wealthy, powerful, and important I am.\",\n\t\t\"I can't think of anything to look forward to.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Wealth\", \"Wealth: I will do whatever it takes to become as rich as the oligarchs. (Evil)\"],\n\t\t[\"Power\", \"Power: One day, I will be the one giving orders. (Evil)\"],\n\t\t[\"Prestige\", \"Prestige: I want to be admired, respected, feared, or even hated for my position and wealth. (Evil)\"],\n\t\t[\"Stability\", \"Stability: The economy functions best when chaos is kept under control and everyone knows their place. (Lawful)\"],\n\t\t[\"Eternity\", \"Eternity: I want to live forever\\u2014in the flesh as long as possible, and as a spirit afterward. (Any)\"]\n\t],\n\tbond : [\n\t\t\"The unbearable weight of my debt has driven me to desperation.\",\n\t\t\"I'm duty-bound to obey the dictates of an ancestor on the Ghost Council.\",\n\t\t\"I value my worldly goods more highly than my mortal life.\",\n\t\t\"An oligarch publicly humiliated me, and I will exact revenge on that whole family.\",\n\t\t\"My faith in the Obzedat never wavers.\",\n\t\t\"I want to prove myself more worthy than an older sibling and thereby ensure that I inherit a greater share of my parents' wealth.\"\n\t],\n\tflaw : [\n\t\t\"I hold a scandalous secret that could ruin my family forever\\u2014but could also earn me the favor of the Ghost Council.\",\n\t\t\"I'm convinced that everyone I know is plotting against me.\",\n\t\t\"I'll brave any risk if the monetary reward is great enough.\",\n\t\t\"I am convinced that I am far more important than anyone else is willing to acknowledge.\",\n\t\t\"I have little respect for anyone who isn't wealthy.\",\n\t\t\"I'll take any opportunity to steal from wealthier people, even for worthless trinkets.\"\n\t]\n};\nBackgroundFeatureList[\"leverage\"] = {\n\tdescription : \"I can exert leverage over one or more below me in the guild's hierarchy and demand their help as needs warrant. For example, deliver a message, arrange a ride, or clean up a bloody mess. As my status in the guild improves, I gain influence over more people of higher station. The DM decides if the demands are reasonable and if subordinates are available.\",\n\tsource : [[\"G\", 72]]\n};\n\nBackgroundList[\"rakdos cultist\"] = {\n\tregExpSearch : /^(?=.*rakdos)(?=.*cultist).*$/i,\n\tname : \"Rakdos Cultist\",\n\tsource : [[\"G\", 79]],\n\tskills : [\"Acrobatics\", \"Performance\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"vicious mockery\", \"burning hands\", \"dissonant whispers\", \"hellish rebuke\", \"crown of madness\", \"enthrall\", \"flaming sphere\", \"fear\", \"haste\", \"confusion\", \"wall of fire\", \"dominate person\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Vicious Mockery, Burning Hands, Dissonant Whispers, Hellish Rebuke, Crown of Madness, Enthrall, Flaming Sphere, Fear, Haste, Confusion, Wall of Fire, and Dominate Person.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Musical instrument\", \"\", \"\"],\n\t\t[\"Costume\", \"\", 4],\n\t\t[\"Hooded lantern of wrought iron\", \"\", 2],\n\t\t[\"Chain with spiked links, feet of\", 10, 1],\n\t\t[\"Tinderbox\", \"\", 1],\n\t\t[\"Torches\", 10, 1],\n\t\t[\"Sweet, red juice, bottle of\", \"\", 4]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Rakdos insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Abyssal or Giant\", 1]],\n\ttoolProfs : [[\"Musical instrument\", 1]],\n\tfeature : \"Fearsome Reputation\",\n\ttrait : [\n\t\t\"I revel in mayhem, the more destructive the better.\",\n\t\t\"When violence breaks out, I lose myself in rage, and it's sometimes hard to stop.\",\n\t\t\"Everything is funny to me, and the most hilarious and bloodiest things leave me cackling with sadistic glee.\",\n\t\t\"I derive genuine pleasure from the pain of others.\",\n\t\t\"I enjoy testing other people's patience.\",\n\t\t\"I can't stand it when things are predictable, so I like to add a little chaos to every situation.\",\n\t\t\"I throw my weight around to make sure I get my way.\",\n\t\t\"I enjoy breaking delicate works of art. And fingers, which are sort of the same.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Hedonism\", \"Hedonism: Death comes for everyone, so take as much pleasure as you can from every moment of life. (Neutral)\"],\n\t\t[\"Creativity\", \"Creativity: I strive to find more ways to express my art through pain\\u2014my own as well as others'. (Chaotic)\"],\n\t\t[\"Freedom\", \"Freedom: No one tells me what to do. (Chaotic)\"],\n\t\t[\"Equality\", \"Equality: I want to see Ravnica remade, with no guilds and no hierarchies. (Chaotic)\"],\n\t\t[\"Spectacle\", \"Spectacle: People are inspired by the greatness they see in art. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I have belonged to the same performance troupe for years, and these people mean everything to me.\",\n\t\t\"A blood witch told me I have a special destiny to fulfill, and I'm trying to figure out what it is.\",\n\t\t\"I'm secretly hoping that I can change the cult from the inside, using my influence to help rein in the wanton violence.\",\n\t\t\"I own something that Rakdos once touched (it's seared black at the spot), and I cherish it.\",\n\t\t\"I want to be better at my chosen form of performance than any other member of my troupe.\",\n\t\t\"I am devoted to Rakdos and live to impress him.\"\n\t],\n\tflaw : [\n\t\t\"My family is prominent in another guild. I enjoy my wild life, but I don't want to embarrass them.\",\n\t\t\"I couldn't hide my emotions and opinions even if I wanted to.\",\n\t\t\"I throw caution to the wind.\",\n\t\t\"I resent the rich and powerful.\",\n\t\t\"When I'm angry, I lash out in violence.\",\n\t\t\"There's no such thing as too much pleasure.\"\n\t],\n\textra : [\n\t\t\"Select a Performance Style\",\n\t\t\"Spikewheel acrobat\",\n\t\t\"Lampooning satirist\",\n\t\t\"Fire juggler\",\n\t\t\"Marionette puppeteer\",\n\t\t\"Pain artist\",\n\t\t\"Noise musician\",\n\t\t\"Nightmare clown\",\n\t\t\"Master of ceremonies\"\n\t]\n};\nBackgroundFeatureList[\"fearsome reputation\"] = {\n\tdescription : \"People recognize me as a member of the Cult of Rakdos, and they're careful not to draw my anger or ridicule. I can get away with minor criminal offenses, such as refusing to pay for food at a restaurant or breaking down a door at a local shop, if no legal authorities witness the crime. Most are too daunted by me to report my wrongdoing to the Azorius.\",\n\tsource : [[\"G\", 79]]\n};\n\nBackgroundList[\"selesnya initiate\"] = {\n\tregExpSearch : /^(?=.*selesnya)(?=.*initiate).*$/i,\n\tname : \"Selesnya Initiate\",\n\tsource : [[\"G\", 86]],\n\tskills : [\"Nature\", \"Persuasion\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"druidcraft\", \"friends\", \"aid\", \"animal friendship\", \"charm person\", \"animal messenger\", \"calm emotions\", \"warding bond\", \"plant growth\", \"speak with plants\", \"aura of life\", \"conjure minor elementals\", \"awaken\", \"commune with nature\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Druidcraft, Friends, Aid, Animal Friendship, Charm Person, Animal Messenger, Calm Emotions, Warding Bond, Plant Growth, Speak with Plants, Aura of Life, Conjure Minor Elementals, Awaken, and Commune with Nature.\"\n\t\t]\n\t},\n\tgold : 5,\n\tequipleft : [\n\t\t[\"Healer's kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Robes\", \"\", 4],\n\t\t[\"Selesnya insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Elvish, Loxodon, or Sylvan\", 1]],\n\ttoolProfs : [[\"Artisan's tools or musical instrument\", 1]],\n\tfeature : \"Conclave's Shelter\",\n\ttrait : [\n\t\t\"I never raise my voice or lose my temper.\",\n\t\t\"I feel the pains and joys of everyone around me, friend or foe.\",\n\t\t\"I would rather make a friend than thwart an enemy.\",\n\t\t\"I'm always straining to peer into another reality that seems to be just beyond my senses.\",\n\t\t\"I'm uneasy if I can't see plants growing or feel soil beneath my feet.\",\n\t\t\"Seeing illness or injury in any creature saddens me.\",\n\t\t\"I have much to be proud of, but I am still just one strand in the grand, interwoven tapestry of life.\",\n\t\t\"Nature offers rich and abundant metaphors for understanding the complexities of life.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Harmony\", \"Harmony: Nothing is more beautiful than voices and actions aligned in common purpose. (Good)\"],\n\t\t[\"Order\", \"Order: Like a well-pruned tree, society thrives when everything is kept in good order. (Lawful)\"],\n\t\t[\"Life\", \"Life: Preserving life and nature is always a worthwhile endeavor. (Good)\"],\n\t\t[\"Humility\", \"Humility: Ambition and pride are the roots of strife. (Good)\"],\n\t\t[\"Evangelism\", \"Evangelism: When all have joined the Selesnya Conclave, Ravnica will finally know peace. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I would give my life in the defense of the small enclave where I first encountered Mat'Selesnya.\",\n\t\t\"I love beasts and plants of all kinds, and am loath to harm them.\",\n\t\t\"A healer nursed me to recovery from a mortal illness.\",\n\t\t\"I'll sing the invitation of Mat'Selesnya with my dying breath.\",\n\t\t\"I cherish a leaf from Vitu-Ghazi that changes color with the seasons, even though it is no longer attached to the tree.\",\n\t\t\"Every member of the conclave is my kin, and I would fight for any one of them.\"\n\t],\n\tflaw : [\n\t\t\"I'm terrified of getting into a fight where my side is outnumbered.\",\n\t\t\"I assume that people mean well until they prove otherwise.\",\n\t\t\"I enjoy comfort and quiet, and prefer to avoid extra effort.\",\n\t\t\"I have a fierce temper that doesn't reflect the inner calm I seek.\",\n\t\t\"I'm convinced that everyone else in the conclave has a deeper connection to the Worldsoul than I do.\",\n\t\t\"I'm trying to atone for the life of crime I led before I joined the Selesnya, but I find it hard to give up my bad habits.\"\n\t]\n};\nBackgroundFeatureList[\"conclave's shelter\"] = {\n\tdescription : \"My companions and I can find a place to hide or rest in any Selesnya enclave in the city, unless I have proven to be a danger to them. The members of the enclave will shield me from anyone searching for me, but will not risk their lives. I can receive free healing and care at a Selesnya enclave, though I must provide material components needed for spells.\",\n\tsource : [[\"G\", 86]]\n};\n\nBackgroundList[\"simic scientist\"] = {\n\tregExpSearch : /^(?=.*simic)(?=.*scientist).*$/i,\n\tname : \"Simic Scientist\",\n\tsource : [[\"G\", 93]],\n\tskills : [\"Arcana\", \"Medicine\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"acid splash\", \"druidcraft\", \"detect poison and disease\", \"expeditious retreat\", \"jump\", \"alter self\", \"enhance ability\", \"enlarge/reduce\", \"gaseous form\", \"water breathing\", \"wind wall\", \"freedom of movement\", \"polymorph\", \"creation\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Acid Splash, Druidcraft, Detect Poison and Disease, Expeditious Retreat, Jump, Alter Self, Enhance Ability, Enlarge/reduce, Gaseous Form, Water Breathing, Wind Wall, Freedom of Movement, Polymorph, and Creation.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Book of research notes\", \"\", 5],\n\t\t[\"Squid ink, 1 ounce bottle of\", \"\", \"\"],\n\t\t[\"Ink pen\", \"\", \"\"],\n\t\t[\"Blubber oil, flasks of\", \"\", 1],\n\t\t[\"Acid, vials of\", \"\", 1],\n\t\t[\"Fish scales, vial of\", \"\", 1],\n\t\t[\"Seaweed, vial of\", \"\", 1],\n\t\t[\"Jellyfish stingers, vial of\", \"\", 1],\n\t\t[\"Unidentified slime, glass bottle of\", \"\", 4]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Simic Researcher\",\n\ttrait : [\n\t\t\"I can't wait to see what I become next!\",\n\t\t\"I am convinced that everything inclines toward constant improvement.\",\n\t\t\"I'm eager to explain every detail of my most intricate experiments and theories to anyone who shows the least bit of interest.\",\n\t\t\"I assume that everyone needs even the most basic concepts explained to them.\",\n\t\t\"I describe everything that happens as if it were going into my research notes (and it often is).\",\n\t\t\"I am insatiably curious about the seemingly infinite forms and adaptations of life.\",\n\t\t\"I can't resist prying into anything forbidden, since it must be terribly interesting.\",\n\t\t\"I employ a highly technical vocabulary to avoid imprecision and ambiguity in my communication.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Change\", \"Change: All life is meant to progress toward perfection, and our work is to hurry it along\\u2014no matter what must be upended along the way. (Chaotic)\"],\n\t\t[\"Knowledge\", \"Knowledge: Understanding the world is more important than what you do with your knowledge. (Neutral)\"],\n\t\t\"Greater Good. I want to reshape the world into higher forms of life so that all can enjoy evolution. (Good)\",\n\t\t[\"Logic\", \"Logic: It's foolish to let emotions and principles interfere with the conclusions of logic. (Lawful)\"],\n\t\t[\"Superiority\", \"Superiority: My vast intellect and strength are directed toward increasing my sway over others. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I helped create a krasis that I love like a pet and would carry with me everywhere ... except it's the size of a building, and it might eat me.\",\n\t\t\"In my laboratory, I discovered something that I think could eliminate half the life on Ravnica.\",\n\t\t\"The other researchers in my clade are my family\\u2014a big, eccentric family including members and parts of many species.\",\n\t\t\"The laboratory where I did my research contains everything that is precious to me.\",\n\t\t\"I will get revenge on the shortsighted fool who killed my precious krasis creation.\",\n\t\t\"Everything I do is an attempt to impress someone I love.\"\n\t],\n\tflaw : [\n\t\t\"I have a rather embarrassing mutation that I do everything I can to keep hidden.\",\n\t\t\"I'm more interested in taking notes on monstrous anatomy than in fighting monsters.\",\n\t\t\"Every social situation I'm in seems to lead to my asking rude personal questions.\",\n\t\t\"I'm supremely confident in my ability to adapt to any situation and handle any danger.\",\n\t\t\"I'll take any risk to earn recognition for my scientific brilliance.\",\n\t\t\"I have a tendency to take shortcuts in my research and any other tasks I have to complete.\"\n\t],\n\textra : [\n\t\t\"Select a Clade or Research\",\n\t\t\"Hull Clade: protection/durability\",\n\t\t\"Fin Clade: movement\",\n\t\t\"Gyre Clade: patterns/metamagic\",\n\t\t\"Guardian Project: guard monsters/super soldiers\",\n\t\t\"Crypsis Project: (counter)intelligence\",\n\t\t\"Independent research in a new area\"\n\t]\n};\nBackgroundFeatureList[\"simic researcher\"] = {\n\tdescription : \"I know where or from whom I can acquire scientific facts, usually from a Simic laboratory, or sometimes an Izzet facility, library, university, independent scholar, or creature. I might need to offer bribes, favors, or other incentives to induce people to reveal their secrets. The DM can rule that the knowledge is inaccessible place, can't be found, or requires a quest.\",\n\tsource : [[\"G\", 93]]\n};\n\n// Spells\nSpellsList[\"encode thoughts\"] = {\n\tname : \"Encode Thoughts\",\n\tclasses : [],\n\tsource : [[\"G\", 47]],\n\tlevel : 0,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"Self\",\n\tcomponents : \"S\",\n\tduration : \"Up to 8 h\",\n\tdescription : \"Make physical thought strand of memory or vice versa; works with detect thoughts \\u0026 modify memory\",\n\tdescriptionFull : \"Putting a finger to your head, you pull a memory, an idea, or a message from your mind and transform it into a tangible string of glowing energy called a thought strand, which persists for the duration or until you cast this spell again. The thought strand appears in an unoccupied space within 5 feet of you as a Tiny, weightless, semisolid object that can be held and carried like a ribbon. It is otherwise stationary.\" + \"\\n   \" + \"If you cast this spell while concentrating on a spell or an ability that allows you to read or manipulate the thoughts of others (such as detect thoughts or modify memory), you can transform the thoughts or memories you read, rather than your own, into a thought strand.\" + \"\\n   \" + \"Casting this spell while holding a thought strand allows you to instantly receive whatever memory, idea, or message the thought strand contains. (Casting detect thoughts on the strand has the same effect.)\"\n};\n// Magic Items\nvar GGtR_GuildKeyrune = {\n\tfeaturesArtificial: {\n\t\tname: \"Artificial\",\n\t\tdescription: \"The [THIS] is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the [THIS] takes the Dodge action and moves to avoid danger.\",\n\t},\n\tnotesSummon: {\n\t\tname: \"Summon\",\n\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a [TYPE]. It reverts back to a keyrune after [DURATION], if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t},\n\tcreateCreatureOptions: function(type, nameThis, duration, aTraits, aActions, aFeatures, aNotes, fCallback) {\n\t\tif (!CreatureList[type]) return false;\n\t\tvar obj = newObj(CreatureList[type]);\n\t\tobj.name = \"Keyrune \" + obj.name;\n\t\tif (nameThis) {\n\t\t\tif (isArray(nameThis)) {\n\t\t\t\tobj.nameThis = nameThis[0];\n\t\t\t\ttype = nameThis[0];\n\t\t\t\tobj.name = nameThis[1];\n\t\t\t} else {\n\t\t\t\tobj.nameThis = nameThis;\n\t\t\t}\n\t\t}\n\t\tdelete obj.nameAlt;\n\t\tobj.source.push([\"G\", 177]);\n\t\tobj.header = \"Keyrune\";\n\t\tobj.languages = \"Understands the keyrune owner's languages\";\n\t\t// traits\n\t\tif (aTraits) {\n\t\t\tif (!obj.traits) obj.traits = [];\n\t\t\tobj.traits = obj.traits.concat(aTraits);\n\t\t}\n\t\t// actions\n\t\tif (aActions) {\n\t\t\tif (!obj.actions) obj.actions = [];\n\t\t\tobj.actions = obj.actions.concat(aTraits);\n\t\t}\n\t\t// features\n\t\tif (!obj.features) obj.features = [];\n\t\tobj.features.push(GGtR_GuildKeyrune.featuresArtificial);\n\t\tif (aFeatures) obj.features = obj.features.concat(aFeatures);\n\t\t// notes\n\t\tif (!obj.notes) obj.notes = [];\n\t\tobj.notes.push({\n\t\t\tname: GGtR_GuildKeyrune.notesSummon.name,\n\t\t\tdescription: GGtR_GuildKeyrune.notesSummon.description.replace(\"[TYPE]\", type).replace(\"[DURATION]\", duration),\n\t\t});\n\t\tif (aNotes) obj.notes = obj.notes.concat(aNotes);\n\t\tif (fCallback) fCallback(obj);\n\t\treturn [obj];\n\t},\n}\nMagicItemsList[\"guild keyrune\"] = {\n\tname : \"Guild Keyrune\",\n\tsource : [[\"G\", 177]],\n\ttype : \"wondrous item\",\n\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a creature. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for some hours, until it has 0 HP, or I dismiss it as an action.\",\n\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a creature if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\tdescriptionFull : \"Associated with a particular guild, a guild keyrune is a ceremonial, stylized key, about 1 foot long, made from carved stone. Not a literal key, the item is a badge of authority that gives its bearer access to privileged places in its guild's headquarters and outposts. At the DM's discretion, a character might be given a keyrune upon attaining a renown score of 25 in their guild.\\n    When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the key rune transforms into a creature. If there isn't enough space for the creature, the keyrune doesn't transform. See the Monster Manual for the creature's stat block- the name of which is given in bold in the keyrune's description- unless you're directed to chapter 6 of this book instead.\\n    The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n    The creature exists for a duration specific to each keyrune. At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\tattunement : true,\n\taction : [[\"action\", \"\"]],\n\tchoices : [\"Azorius\", \"Boros\", \"Dimir\", \"Golgari\", \"Gruul\", \"Izzet\", \"Orzhov\", \"Rakdos\", \"Selesnya\", \"Simic\"],\n\t\"azorius\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word and have it transform into a giant eagle for 1 hour with which I can talk telepathically if within 1 mile. It is friendly to me and my allies and obeys my spoken commands. As an action, I can see and hear what it does. I can have it revert back as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a a giant eagle for 1 hour. While within 1 mile, I can communicate telepathically with it. It is friendly to me and my allies and obeys my spoken commands, otherwise using only the Dodge action. It reverts back to its keyrune form when it drops to 0 HP or if I touch it and speak the command word as an action. Once it does, it can't transform again for 36 hours. As an action, I can see/hear through its senses as if I had keen sight until the start of my next turn, but I can't use my own senses during that time.\",\n\t\tdescriptionFull : \"This keyrune is carved from white marble and lapis lazuli to resemble a noble bird of prey. It can become a giant eagle for up to 1 hour. While the transformed eagle is within 1 mile of you, you can communicate with it telepathically. As an action, you can see through the eagle's eyes and hear what it hears until the start of your next turn, and you gain the benefit of its keen sight. During this time, you are deaf and blind with regard to your own senses.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a giant eagle. If there isn't enough space for the eagle, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the eagle takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Azorius guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/azorius/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\taction: [[\"action\", \" (Shared Vision)\"]],\n\t\tcreaturesAdd: [[\"Keyrune Giant Eagle\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"giant eagle\", \"eagle\", \"1 hour\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the eagle is within 1 mile of its owner, they can communicate telepathically.\",\n\t\t}, {\n\t\t\tname: \"Shared Vision\",\n\t\t\tdescription: \"As an action, the owner can see through the eagle's eyes and hear what it hears until the start of their next turn, and gain the benefit of its keen sight. During this time, the owner is deaf and blind with regard to their own senses.\",\n\t\t}]),\n\t},\n\t\"boros\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word and place it on the ground to transforms into a human veteran. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 8 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a human veteran if there is enough space. The creature is friendly to me and my allies and gives tactical advice, but is easily revealed as an artificial human. It understands my languages and obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I dismiss it as an action by touching it and speaking the command word again. Once it does, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Carved from red sandstone with white granite elements to resemble a member of the Boros Legion, this keyrune can become a veteran (human) for up to 8 hours. In addition to fighting on your behalf, this veteran cheerfully offers tactical advice, which is usually sound. Anyone who talks with the transformed keyrune or examines it closely can easily recognize that it is an artificial human.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a veteran (human). If there isn't enough space for the veteran, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Boros guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/boros/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd : [[\"Keyrune Veteran\", true]],\n\t\tcreatureOptions : [{\n\t\t\tname : \"Keyrune Veteran\",\n\t\t\tsource : [[\"SRD\", 403], [\"MM\", 350], [\"G\", 177]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Humanoid\",\n\t\t\talignment : \"Any\",\n\t\t\tac : 17,\n\t\t\thp : 58,\n\t\t\thd : [9, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [16, 13, 14, 10, 11, 10],\n\t\t\tskills : {\n\t\t\t\t\"athletics\" : 5,\n\t\t\t\t\"perception\" : 2,\n\t\t\t},\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tpassivePerception : 12,\n\t\t\tchallengeRating : \"3\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Longsword\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 8, \"slashing\"],\n\t\t\t\trange : \"Melee\",\n\t\t\t\tdescription : \"Versatile (1d10); Two attacks as an action\",\n\t\t\t}, {\n\t\t\t\tname : \"Shortsword\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 6, \"piercing\"],\n\t\t\t\trange : \"Melee\",\n\t\t\t\tdescription : \"Finesse, light\",\n\t\t\t}, {\n\t\t\t\tname : \"Heavy Crossbow\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 12, \"piercing\"],\n\t\t\t\trange : \"100/400 ft\",\n\t\t\t\tdescription : \"Ammunition, heavy, loading, two-handed\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The veteran is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the veteran takes the Dodge action and moves to avoid danger. Anyone who talks with the transformed keyrune or examines it closely can easily recognize that it is an artificial human.\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the veteran can make two Longsword attacks and, if it has a shortsword drawn, one Shortsword attack.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Tactician\",\n\t\t\t\tdescription : \"In addition to fighting on its owner's behalf, the veteran cheerfully offers tactical advice, which is usually sound.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a veteran. It reverts back to a keyrune after 8 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"dimir\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transform into an intellect devourer. It is friendly to me and my allies. It lasts for 24 hours, until it has 0 HP, or I dismiss it as an action. I can command it to pursue only a single mission each times it transforms and it returns to me at the end of it.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into an intellect devourer if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It lasts for 24 hours, during which time it pursues a single mission set by me, like information gathering, returning to me afterwards to report and transform back to the keyrune. It also reverts back when it drops to 0 HP or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again for 36 hours.\",\n\t\tdescriptionFull : \"This keyrune, carved from black stone accented with steel, resembles a stylized horror. On command, it transforms into an intellect devourer that resembles the Dimir guild symbol, with six bladelike legs. The creature exists for up to 24 hours. During that time, it pursues only a single mission you give it\\u2014usually an assignment to take over someone's body, either to impersonate that person for a brief time or to extract secrets from their mind. When the mission is complete, the creature returns to you, reports its success, and reverts to its keyrune form.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a intellect devourer. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Dimir guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/dimir/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd : [[\"Keyrune Intellect Devourer\", true]],\n\t\tcreatureOptions : [{\n\t\t\tname : \"Keyrune Intellect Devourer\",\n\t\t\tsource : [[\"MM\", 191], [\"G\", 177]],\n\t\t\tsize : 5,\n\t\t\ttype : \"Aberration\",\n\t\t\talignment : \"Lawful Evil\",\n\t\t\tac : 12,\n\t\t\thp : 21,\n\t\t\thd : [6, 4],\n\t\t\tspeed : \"40 ft\",\n\t\t\tscores : [6, 14, 13, 12, 11, 10],\n\t\t\tskills : {\n\t\t\t\t\"perception\" : 2,\n\t\t\t\t\"stealth\" : 4,\n\t\t\t},\n\t\t\tdamage_resistances : \"bludgeoning, piercing, and slashing from nonmagical weapons\",\n\t\t\tcondition_immunities : \"blinded\",\n\t\t\tlanguages: \"Understands the keyrune owner's languages, Telepathy 60 ft\",\n\t\t\tsenses: \"Blindsight 60 ft (blind beyond this radius), Detect Intelligence\",\n\t\t\tpassivePerception : 12,\n\t\t\tchallengeRating : \"2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 4, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"Claws and Devour Intellect as an action\",\n\t\t\t}, {\n\t\t\t\tname : \"Devour Intellect\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 10, \"psychic\"],\n\t\t\t\trange : \"10 ft\",\n\t\t\t\tdescription : \"Int save to avoid; Failure: if target's Int score \\u2264 3d6, it gains Int 0 and is stunned while at Int 0\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Detect Intelligence\",\n\t\t\t\tdescription: \"The devourer magically senses the location of creatures within 300 ft that have an Int score of 3 or higher, regardless of barriers.\",\n\t\t\t}, {\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The devourer is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the devourer takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the devourer can make one claws attack and uses Devour Intellect.\",\n\t\t\t}, {\n\t\t\t\tname : \"Devour Intellect\",\n\t\t\t\tdescription : \"As an action, the devourer targets one creature with a brain that it can see within 10 ft. The target must make an Intelligence save against this magic or take 2d10 psychic damage and if its Intelligence score is lower or equal to a roll of 3d6, that score is reduced to 0 and the target is stunned while its Int is 0.\",\n\t\t\t}, {\n\t\t\t\tname : \"Body Thief\",\n\t\t\t\tdescription : \"As an action, the devourer can initiate an Int contest with an incapacitated humanoid within 5 ft. If it wins, the devourer magically consumes the target's brain, teleports into its skull, and takes control of its body. While inside, the intellect has total cover. The devourer retains its Int, Wis, and Cha, as well as its Telepathy and traits. It otherwise adopts the target's statistics and knows everything it knew, including spells and languages.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname : \"Body Thief (continued)\",\n\t\t\t\tdescription : \"If the host body dies, the intellect devourer must leave it. The intellect devourer is also forced out if the target regains its devoured brain by means of Wish. By spending 5 ft of its movement, the intellect devourer can voluntarily leave the body, teleporting to the nearest unoccupied space within 5 ft. The body then dies, unless its brain is restored within 1 round. Protection from Evil and Good prevents the intellect devourer from consuming a brain, and when cast on a controlled body, it drives the intellect devourer out.\",\n\t\t\t}, {\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a veteran. It reverts back to a keyrune after 24 hours, if it drops to 0 HP, if the keyrune's owner uses an action to touch it and speak the command word, or if it finishes it mission.\\n   It pursues only a single mission given by its owner. This is usually an assignment to take over someone's body, either to impersonate that person for a brief time or to extract secrets from their mind. When the mission is complete, the creature returns to its owner, reports its success, and reverts to its keyrune form.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"golgari\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a giant scorpion with which I can talk telepathically if in 60 ft. It is friendly to me and my allies and obeys my commands. It reverts back after 6 hours, if it drops to 0 HP, or I touch it and speak its command word as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a giant scorpion if there is enough space. While within 60 ft of it, I can communicate with it telepathically. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Made from deep green jade with black veins, this keyrune has an insectile shape. It can transform into a giant scorpion for up to 6 hours. The scorpion has an Intelligence of 4 and can communicate with you telepathically while it is within 60 feet of you, though its messages are largely limited to describing the passage of potential prey.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a giant scorpion. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Golgari guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/golgari/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Giant Scorpion\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"giant scorpion\", \"scorpion\", \"6 hours\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the scorpion is within 60 ft of its owner, they can communicate telepathically.\",\n\t\t}], function(obj) { obj.scores[3] = 4; }),\n\t},\n\t\"gruul\" : {\n\t\ttype : \"wondrous item\",\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a ceratok (rhinoceros stats). It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 1 hour, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a ceratok (rhinoceros stats) if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 1 hour, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This crude keyrune is cobbled together from bits of rubble, broken glass, bone, and animal hair. One end resembles a horned beast. On command, the keyrune transforms into a ceratok, a horned creature much like a rhinoceros (and with the same statistics). It remains in its ceratok form for 1 hour.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a ceratok. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Gruul guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/gruul/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Ceratok\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"rhinoceros\", [\"ceratok\", \"Keyrune Ceratok\"], \"1 hour\"),\n\t},\n\t\"izzet\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a galvanice weird. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 3 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a galvanice weird if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 3 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Formed of carved and polished red and blue stone, the keyrune includes bits of cable and wire. One end resembles a humanlike head, suggesting the jagged elemental form of the galvanice weird that it can become for a duration of 3 hours. In this form, it will serve you as a bodyguard, lift and carry things for you, act as a test subject for your experiments, or aid you in any other way that its capabilities allow.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a galvanice weird. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Izzet guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/izzet/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Galvanice Weird\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Galvanice Weird\",\n\t\t\tsource : [[\"G\", 209]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Elemental\",\n\t\t\talignment : \"Chaotic Neutral\",\n\t\t\tac : 12,\n\t\t\thp : 22,\n\t\t\thd : [3, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [14, 10, 17, 3, 10, 5],\n\t\t\tdamage_resistances : \"cold, lightning; bludgeoning, piercing, and slashing from nonmagical attacks\",\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious\",\n\t\t\tsenses : \"Darkvision 60 ft\",\n\t\t\tpassivePerception : 10,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Slam\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"+2d4 Lightning damage and target must make Con save, see below\",\n\t\t\t\ttooltip : \"If the target is a creature, it must succeed on a DC 13 Constitution saving throw or lose the ability to use reactions until the start of the weird's next turn.\",\n\t\t\t}, {\n\t\t\t\tname : \"With Slam Hit\",\n\t\t\t\tability : 3,\n\t\t\t\tdamage : [\"Con save\", \"\", \"No Reactions\"],\n\t\t\t\trange : \"Creature hit\",\n\t\t\t\tdescription : \"If failed, target can't use reactions until the start of the weird's next turn\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t}, {\n\t\t\t\tname : \"Death Burst\",\n\t\t\t\tability : 3,\n\t\t\t\tdamage : [2, 6, \"lightning\"],\n\t\t\t\trange : \"10-ft radius\",\n\t\t\t\tdescription : \"Only when the weird dies; Dex save to halve damage\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t\ttooltip : \"When the weird dies, it explodes in a burst of ice and lightning. Each creature within 10 ft of the exploding weird must make a DC 13 Dexterity saving throw, taking 2d6 lightning damage on a failed save, or half as much damage on a successful one.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Death Burst\",\n\t\t\t\tdescription : \"When the weird dies, it explodes in a burst of ice and lightning. Each creature within 10 ft of the exploding weird must make a Dexterity saving throw, taking 2d6 lightning damage on a failed save, or half as much damage on a successful one.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The weird is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the weird takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a galvanice weird. It reverts back to a keyrune after 3 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\\n   In this form, it will serve as a bodyguard, lift and carry things, act as a test subject for experiments, or aid its owner in any other way that its capabilities allow.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"orzhov\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a winged thrull. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 2 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a winged thrull if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 2 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This keyrune is carved from white marble with veins of black. The end is shaped like a thrull's head, with a gold faceplate affixed. On command, the keyrune transforms into a winged thrull for up to 2 hours. If you don't come from an Orzhov oligarch family, it serves you grudgingly, clownishly aping your movements and mannerisms while carrying out your orders.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a winged thrull. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Orzhov guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/orzhov/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Winged Thrull\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Winged Thrull\",\n\t\t\tsource : [[\"G\", 221]],\n\t\t\tsize : 4,\n\t\t\ttype : \"Construct\",\n\t\t\talignment : \"Unaligned\",\n\t\t\tac : 12,\n\t\t\thp : 31,\n\t\t\thd : [7, 6],\n\t\t\tspeed : \"30 ft, fly 30 ft\",\n\t\t\tscores : [9, 15, 12, 8, 9, 8],\n\t\t\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"exhaustion, poisoned\",\n\t\t\tsenses : \"Darkvision 60 ft\",\n\t\t\tpassivePerception : 9,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1/2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 4, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Rock\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\t\t\trange : \"20/60 ft\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Self-Sacrifice\",\n\t\t\t\tdescription : \"As a reaction when a creature within 5 ft of the thrull is hit by an attack, the thrull can swap places with that creature and be hit by the attack instead.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The thrull is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the thrull takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a winged thrull. It reverts back to a keyrune after 2 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\\n   If the onwer doesn't come from an Orzhov oligarch family, the thrull serves them grudgingly, clownishly aping their movements and mannerisms while carrying out their orders.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"rakdos\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a cackler. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 1 hour, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a cackler if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 1 hour, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This dark granite keyrune is marbled with scarlet veins and carved with the leering visage of a mischievous demon. When activated, it transforms into a cackler for up to 1 hour.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a cackler. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Rakdos guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/rakdos/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Cackler\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Cackler\",\n\t\t\tsource : [[\"G\", 195]],\n\t\t\tsize : 4,\n\t\t\ttype : \"Fiend\",\n\t\t\tsubtype : \"Demon\",\n\t\t\talignment : \"Chaotic Evil\",\n\t\t\tac : 15,\n\t\t\thp : 10,\n\t\t\thd : [3, 6],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [9, 16, 11, 11, 7, 12],\n\t\t\tskills : {\n\t\t\t\t\"perception\" : 2,\n\t\t\t\t\"stealth\" : 4,\n\t\t\t},\n\t\t\tdamage_resistances : \"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical attacks\",\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"poisoned\",\n\t\t\tsenses : \"Darkvision 120 ft\",\n\t\t\tpassivePerception : 9,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1/2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Bite\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 4, \"piercing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Spiked Chain\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 6, \"slashing\"],\n\t\t\t\trange : \"Melee (10 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Last Laugh\",\n\t\t\t\tability : 6,\n\t\t\t\tdamage : [1, 4, \"psychic\"],\n\t\t\t\trange : \"10-ft radius\",\n\t\t\t\tdescription : \"Only when the cackler dies; Wis save to avoid\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t\ttooltip : \"When the cackler dies, it releases a dying laugh that scars the minds of other nearby creatures. Each creature within 10 ft of the cackler must succeed on a DC 11 Wisdom saving throw or take 1d4 psychic damage.\",\n\t\t\t}, {\n\t\t\t\tname : \"Fire Bolt\",\n\t\t\t\tability : 6,\n\t\t\t\tdamage : [1, 10, \"fire\"],\n\t\t\t\trange : \"120 ft\",\n\t\t\t\tdescription : \"Unattended flammable objects ignite\",\n\t\t\t\tabilitytodamage : false,\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Innate Spellcasting\",\n\t\t\t\tdescription : \"The cackler's innate spellcasting ability is Charisma (spell save DC 11, +3 to hit with spell attacks). The cackler can innately cast, without requiring material components, Fire Bolt (at will) and Tasha's Hideous Laughter (1/day).\",\n\t\t\t}, {\n\t\t\t\tname : \"Last Laugh\",\n\t\t\t\tdescription : \"When the cackler dies, it releases a dying laugh that scars the minds of other nearby creatures. Each creature within 10 ft of the cackler must succeed on a Wisdom saving throw or take 1d4 psychic damage.\",\n\t\t\t}, {\n\t\t\t\tname : \"Mimicry\",\n\t\t\t\tdescription : \"The cackler can mimic any sounds it has heard, including voices. A creature that hears the sounds can tell they are imitations with a successful DC 11 Wisdom (Insight) check.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The cackler is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the cackler takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a cackler. It reverts back to a keyrune after 1 hour, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"selesnya\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a wolf with Int 6 with which I can talk telepathically if within 1 mile. It is friendly to me and my allies. It obeys my commands, but only uses the Dodge action otherwise. It lasts for 8 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a wolf with Intelligence 6 if there is enough space. The creature is friendly to me and my allies, understands Elvish and Sylvan (but can't speak them), and obeys my commands. While within 1 mile, we can communicate telepathically. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 8 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Carved from white and green marble in the shape of a wolf's head, this keyrune transforms into a dire wolf. The wolf persists for 8 hours. Its Intelligence is 6, and it understands Elvish and Sylvan but can't speak those languages. While it is within 1 mile of you, you can communicate with each other telepathically.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a dire wolf. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Selesnya guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/selesnya/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Dire Wolf\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"dire wolf\", \"wolf\", \"8 hours\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the wolf is within 1 mile of its owner, they can communicate telepathically.\",\n\t\t}], function(obj) {\n\t\t\tobj.scores[3] = 6;\n\t\t\tobj.languages = \"Understands the keyrune owner's languages, Elvish, and Sylvan, but can't speak\";\n\t\t}),\n\t},\n\t\"simic\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a krasis (cat. 2, Grabber and Stabilizing Legs). It is friendly to me and my allies. It obeys my commands, taking only the Dodge action if not commanded otherwise. It lasts for 5 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 5 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This keyrune is assembled from coral, mother-of-pearl, and chrome and adorned with the spirals and curves characteristic of Simic ornamentation. The head resembles the shell of a sea creature. On command, the keyrune turns into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations. The transformation lasts for up to 5 hours.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Simic guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/simic/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Krasis\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Krasis\",\n\t\t\tsource : [[\"G\", 210]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Monstrosity\",\n\t\t\talignment : \"Unaligned\",\n\t\t\tac : 15,\n\t\t\thp : 19,\n\t\t\thd : [3, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [16, 15, 14, 2, 13, 8],\n\t\t\tpassivePerception : 11,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Bite\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 10, \"piercing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"One bite and one claws attack as an Attack action\",\n\t\t\t}, {\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 8, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"One claws and one bite attack as an Attack action; Target is grappled (escape DC 13)\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the krasis can make one Bite and one Claws attack.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Amphibious\",\n\t\t\t\tdescription : \"The krasis can breathe air and water.\",\n\t\t\t}, {\n\t\t\t\tname : \"Grabber\",\n\t\t\t\tdescription : \"When the krasis hits a creature with its claws, the target is grappled (escape DC 13) by a specialized grasping appendage on the krasis. It can have only one creature grappled in this way at a time.\",\n\t\t\t}, {\n\t\t\t\tname : \"Stabilizing Legs\",\n\t\t\t\tdescription : \"The krasis has several crablike legs. As a result, it has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The krasis is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the krasis takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a category 1 krasis that has the Grabber and Stabilizing Legs adaptations. It reverts back to a keyrune after 5 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t}\n}\nMagicItemsList[\"guild signet\"] = {\n\tname : \"Guild Signet\",\n\tsource : [[\"G\", 178]],\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This signet ring bears a symbol of its associated guild. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast the spell within (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\tdescriptionFull : \"This ring, adorned with the symbol of a guild, allows you to cast one spell closely associated with that guild, as shown in the table below. A guild signet is sometimes awarded to a guild member whose renown score in that guild is 5 or higher, as a reward for performing special services for the guild. Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\\n   A signet has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, you can expend 1 charge to cast the associated spell (save DC 13).\\n\\n\" +\n\ttoUni(\"Guild \\tAssociated Spell\") +\n\t\"\\nAzorius\\tensnaring strike\" +\n\t\"\\nBoros\\theroism\" +\n\t\"\\nDimir\\tdisguise self\" +\n\t\"\\nGolgari\\tentangle\" +\n\t\"\\nGruul\\tcompelled duel\" +\n\t\"\\nlzzet\\tchaos bolt\" +\n\t\"\\nOrzhov\\tcommand\" +\n\t\"\\nRakdos\\thellish rebuke\" +\n\t\"\\nSelesnya\\tcharm person\" +\n\t\"\\nSimic\\texpeditious retreat\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tchoices : [\"Azorius\", \"Boros\", \"Dimir\", \"Golgari\", \"Gruul\", \"Izzet\", \"Orzhov\", \"Rakdos\", \"Selesnya\", \"Simic\"],\n\t\"azorius\" : {\n\t\tdescription : \"This signet ring bears a symbol of Azorius. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Ensnaring Strike (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"ensnaring strike\"],\n\t\t\tselection : [\"ensnaring strike\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"boros\" : {\n\t\tdescription : \"This signet ring bears a symbol of Boros. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Heroism (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"heroism\"],\n\t\t\tselection : [\"heroism\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"dimir\" : {\n\t\tdescription : \"This signet ring bears a symbol of Dimir. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Disguise Self (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"disguise self\"],\n\t\t\tselection : [\"disguise self\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"golgari\" : {\n\t\tdescription : \"This signet ring bears a symbol of Golgari. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Entangle (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"entangle\"],\n\t\t\tselection : [\"entangle\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"gruul\" : {\n\t\tdescription : \"This signet ring bears a symbol of Gruul. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Compelled Duel (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"compelled duel\"],\n\t\t\tselection : [\"compelled duel\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"izzet\" : {\n\t\tdescription : \"This signet ring bears a symbol of lzzet. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Chaos Bolt (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"chaos bolt\"],\n\t\t\tselection : [\"chaos bolt\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"orzhov\" : {\n\t\tdescription : \"This signet ring bears a symbol of Orzhov. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Command (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"command\"],\n\t\t\tselection : [\"command\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"rakdos\" : {\n\t\tdescription : \"This signet ring bears a symbol of Rakdos. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Hellish Rebuke (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"hellish rebuke\"],\n\t\t\tselection : [\"hellish rebuke\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"selesnya\" : {\n\t\tdescription : \"This signet ring bears a symbol of Selesnya. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Charm Person (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"charm person\"],\n\t\t\tselection : [\"charm person\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"simic\" : {\n\t\tdescription : \"This signet ring bears a symbol of Simic. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Expeditious Retreat (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"expeditious retreat\"],\n\t\t\tselection : [\"expeditious retreat\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t}\n}\nMagicItemsList[\"illusionist's bracers\"] = {\n\tname : \"Illusionist's Bracers\",\n\tsource : [[\"G\", 178]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While wearing the bracers, whenever I cast a cantrip, I can use a bonus action on the same turn to cast that cantrip a second time.\",\n\tdescriptionFull : \"A powerful illusionist of House Dimir originally developed these bracers, which enabled her to create multiple minor illusions at once. The bracers' power, though, extends far beyond illusions.\\n   While wearing the bracers, whenever you cast a cantrip, you can use a bonus action on the same turn to cast that cantrip a second time.\",\n\tweight : 1,\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\taction : [[\"bonus action\", \" (with cantrip)\"]]\n}\nMagicItemsList[\"mizzium apparatus\"] = {\n\tname : \"Mizzium Apparatus\",\n\tsource : [[\"G\", 179]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"I can use this harness as an arcane focus and to attempt to cast a spells that I do not know or have prepared but is on my class' spell list. This requires an Int (Arcana) check DC 10 + twice the spell slot level and components and a spell slot as appropriate for the spell. On a failure, I cast a random spell, see Notes page.\",\n\tdescriptionLong : \"This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness. I can use it as an arcane focus. In addition, I can use it to attempt to cast a spell that I do not know or have prepared but is on my class' spell list. I use components and a spell slot as appropriate for the spell as normal, but I must succeed on an Intelligence (Arcana) check DC 10 + twice the spell slot level. On a failure, I cast a random spell, see Notes page. The DC for cantrips is 10, and on a failure nothing happens.\",\n\tdescriptionFull : \"Innovation is a dangerous pursuit, at least the way the mages of the Izzet League engage in it. As protection against the risk of an experiment going awry, they have developed a device to help channel and control their magic. This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness. The item weighs 8 pounds.\\n   While you are wearing the mizzium apparatus, you can use it as an arcane focus. In addition, you can attempt to cast a spell that you do not know or have prepared. The spell you choose must be on your class's spell list and of a level for which you have a spell slot, and you must provide the spell's components.\\n   You expend a spell slot to cast the spell as normal, but before resolving it you must make an Intelligence (Arcana) check. The DC is 10 + twice the level of the spell slot you expend to cast the spell.\\n   On a successful check, you cast the spell as normal, using your spell save DC and spellcasting ability modifier. On a failed check, you cast a different spell from the one you intended. Randomly determine the spell you cast by rolling on the table for the level of the spell slot you expended. If the slot is 6th level or higher, roll on the table for 5th-level spells.\\n   If you try to cast a cantrip you don't know, the DC for the Intelligence (Arcana) check is 10, and on a failed check, there is no effect.\\n\\n\" + [\n\t\ttoUni(\"d6\\t1st-level spell\"),\n\t\t\" 1\\tBurning Hands\",\n\t\t\" 2\\tChaos Bolt\",\n\t\t\" 3\\tColor Spray\",\n\t\t\" 4\\tFaerie Fire\",\n\t\t\" 5\\tFog Cloud\",\n\t\t\" 6\\tThunderwave\\n\",\n\t\ttoUni(\"d6\\t2nd-level spell\"),\n\t\t\" 1\\tBlur\",\n\t\t\" 2\\tGust of Wind\",\n\t\t\" 3\\tHeat Metal\",\n\t\t\" 4\\tMelf's Acid Arrow\",\n\t\t\" 5\\tScorching Ray\",\n\t\t\" 6\\tShatter\\n\",\n\t\ttoUni(\"d6\\t3rd-level spell\"),\n\t\t\" 1\\tFear\",\n\t\t\" 2\\tFeign Death\",\n\t\t\" 3\\tFireball\",\n\t\t\" 4\\tGaseous Form\",\n\t\t\" 5\\tSleet Storm\",\n\t\t\" 6\\tStinking Cloud\\n\",\n\t\ttoUni(\"d4\\t4th-level spell\"),\n\t\t\" 1\\tConfusion\",\n\t\t\" 2\\tConjure Minor Elementals\",\n\t\t\" 3\\tEvard's Black Tentacles\",\n\t\t\" 4\\tIce Storm\\n\",\n\t\ttoUni(\"d4\\t5th-level spell\"),\n\t\t\" 1\\tAnimate Objects\",\n\t\t\" 2\\tCloudkill\",\n\t\t\" 3\\tCone of Cold\",\n\t\t\" 4\\tFlame Strike\"\n\t].join(\"\\n\"),\n\tweight : 8,\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a sorcerer, warlock, or wizard\",\n\tprereqeval : function(v) { return classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\n\ttoNotesPage : [{\n\t\tname : \"Random Spells\",\n\t\tnote : [\n\t\t\t\"This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness.\",\n\t\t\t\"While I am wearing the mizzium apparatus, I can use it as an arcane focus. In addition, I can attempt to cast a spell that I do not know or have prepared. The spell I choose must be on my class's spell list and of a level for which I have a spell slot, and I must provide the spell's components.\",\n\t\t\t\"I expend a spell slot to cast the spell as normal, but before resolving it I must make an Intelligence (Arcana) check. The DC is 10 + twice the level of the spell slot I expend to cast the spell. On a successful check, I cast the spell as normal, using my spell save DC and spellcasting ability modifier. On a failed check, I cast a different spell from the one I intended, randomly determining the spell I cast by rolling on the table for the level of the spell slot expended. If the slot is 6th level or higher, I roll on the table for 5th-level spells. If I try to cast a cantrip I don't know, the DC for the Intelligence (Arcana) check is 10, and on a failed check, there is no effect.\\n\",\n\t\t\t\"1D6\\t1ST-LEVEL SPELL\\t1D6\\t2ND-LEVEL SPELL\",\n\t\t\t\"  1\\tBurning Hands \\t  1\\tBlur\",\n\t\t\t\"  2\\tChaos Bolt    \\t  2\\tGust of Wind\",\n\t\t\t\"  3\\tColor Spray   \\t  3\\tHeat Metal\",\n\t\t\t\"  4\\tFaerie Fire   \\t  4\\tMelf's Acid Arrow\",\n\t\t\t\"  5\\tFog Cloud     \\t  5\\tScorching Ray\",\n\t\t\t\"  6\\tThunderwave   \\t  6\\tShatter\\n\",\n\t\t\t\"1D6\\t3RD-LEVEL SPELL\",\n\t\t\t\"  1\\tFear\",\n\t\t\t\"  2\\tFeign Death\",\n\t\t\t\"  3\\tFireball\",\n\t\t\t\"  4\\tGaseous Form\",\n\t\t\t\"  5\\tSleet Storm\",\n\t\t\t\"  6\\tStinking Cloud\\n\",\n\t\t\t\"1D4\\t4TH-LEVEL SPELL\\t1D4\\t5TH-LEVEL SPELL (AND HIGHER)\",\n\t\t\t\"  1\\tConfusion\\t\\t  1\\tAnimate Objects\",\n\t\t\t\"  2\\tConjure Minor Elem.\\t  2\\tCloudkill\",\n\t\t\t\"  3\\tEvard's Black Tentacles\\t  3\\tCone of Cold\",\n\t\t\t\"  4\\tIce Storm\\t\\t  4\\tFlame Strike\"\n\t\t]\n\t}]\n}\nMagicItemsList[\"mizzium armor\"] = {\n\tname : \"Mizzium Armor\",\n\tnameTest : \"Mizzium\",\n\tsource : [[\"G\", 179]],\n\ttype : \"armor (medium or heavy)\",\n\trarity : \"rare\",\n\tdescription : \"This armor is reinforced with a magically enhanced metal alloy called mizzium. While I'm wearing it, any critical hit against me becomes a normal hit. In addition, when I'm subjected to a magical effect that allows me to make a Str or Con save to take only half damage, I instead take no damage if I succeed on it.\",\n\tdescriptionFull : \"This suit of armor is reinforced with a magically enhanced metal alloy called mizzium, which is made in Izzet foundries. While you're wearing the armor, any critical hit against you becomes a normal hit. In addition, when you are subjected to a magical effect that allows you to make a Strength or Constitution saving throw to take only half damage, you instead take no damage if you succeed on the saving throw.\",\n\tsavetxt : { text : [\"No damage on success Str or Con save for half damage\"] },\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !(/medium|heavy/i).test(inObj.type) || (/hide/i).test(inObj.name);\n\t\t},\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\n\t}\n}\nMagicItemsList[\"mizzium mortar\"] = {\n\tname : \"Mizzium Mortar\",\n\tsource : [[\"G\", 179]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This 4-ft-long, 6-inch-diameter tube has 4 charges, regaining 1d4 at dawn. As an action, I can expend 1 charge to have all in a 30-ft cone take 5d4 fire damage. As an action, I can expend 3 charges to have all in a 20-ft radius, 40-ft high cylinder in 60 ft take 5d8 fire damage. For both effects DC 15 Dex save halves.\",\n\tdescriptionLong : \"This 4-ft-long, 6-inch-diameter mizzium tube has 4 charges, regaining 1d4 expended charges at dawn. The end that's pointed toward a target is open, and a glowing ball of molten metal can be seen at the other end as long as the mortar has at least 1 charge remaining. As an action, I can expend 1 charge to create a spray of molten mizzium in a 30-ft cone. All within the cone take 5d4 fire damage, DC 15 Dexterity saving throw halves. As an action, I can expend 3 charges to create a 20-ft radius, 40-ft high cylinder within 60 ft of me that deals 5d8 fire damage to all within, DC 15 Dexterity saving throw halves.\",\n\tdescriptionFull : \"This short tube, about 2 feet long and 6 inches in diameter, is made from mizzium, a magically enhanced metal alloy forged by the Izzet League. The end that's pointed toward a target is open, and a glowing ball of molten metal can be seen at the other end as long as the mortar has at least 1 charge remaining.\\n   The mortar has 4 charges for the following properties. It regains 1d4 expended charges daily at dawn.\\n   \" + toUni(\"Molten Spray\") + \". You can expend 1 charge as an action to loose a 30-foot cone of molten mizzium. Each creature in the area must make a DC 15 Dexterity saving throw, taking 5d4 fire damage on a failed save, or half as much damage on a successful one.\\n   \" + toUni(\"Mizzium Bombard\") + \". You can expend 3 charges as an action to launch a hail of molten projectiles in a 20-foot-radius, 40-foot-high cylinder centered on a point you can see within 60 feet of you. Each creature in the area must make a DC 15 Dexterity saving throw. A creature takes 5d8 fire damage on a failed save, or half as much damage on a successful one.\",\n\tweight : 1,\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\"\n}\nMagicItemsList[\"moodmark paint\"] = {\n\tname : \"Moodmark Paint\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Once, I can spend 1 minute to apply this thick black paint to a creature's face. For the next 8 hours, anyone seeing the target can make a DC 10 Wisdom (Insight) check to see if it is happy, sad, angry, disgusted, surprised, or afraid, as well as the main source of that emotion. Drows have advantage on this check.\",\n\tdescriptionFull : \"This thick, black paint is stored in a small jar, containing enough paint to apply moodmarks to one creature. The paint is dabbed on the face in spots or markings that often resemble the eyes of insects or spiders. Applying the paint in this way takes 1 minute.\\n   For the next 8 hours, the marks change to reflect your mental state. A creature that can see you and makes a successful DC 10 Wisdom (Insight) check can discern whether you are happy, sad, angry, disgusted, surprised, or afraid, as well as the main source of that emotion. For example, you might communicate fear caused by a monster you just saw around the corner, grief at the loss of a friend, or happiness derived from pride in your performance in combat. A dark elf has advantage on this check.\",\n\tweight : 1\n}\nMagicItemsList[\"pariah's shield\"] = {\n\tname : \"Pariah's Shield\",\n\tsource : [[\"G\", 180]],\n\ttype : \"shield\",\n\trarity : \"rare\",\n\tdescription : \"While I wield this shield. I gain a +1 bonus to AC for every two allies within 5 ft of me on top of the shield's AC bonus, up to a +3 bonus. As a reaction when a creature I can see within 5 ft of me takes damage, I can take that damage instead, but the damage type for it changes to force.\",\n\tdescriptionFull : \"Soldiers of the Boros Legion consider it an honor to bear this shield, even knowing that it might be the last honor they receive. The front of the shield is sculpted to depict a grieving human face.\\n   You gain a +1 bonus to AC for every two allies within 5 feet of you (up to a maximum of +3) while you wield this shield. This bonus is in addition to the shield's normal bonus to AC.\\n   When a creature you can see within 5 feet of you takes damage, you can use your reaction to take that damage, instead of the creature taking it. When you do so, the damage type changes to force.\",\n\tattunement : true,\n\tweight : 6,\n\tshieldAdd : \"Pariah's Shield\",\n\taction : [[\"reaction\", \"\"]]\n}\nMagicItemsList[\"peregrine mask\"] = {\n\tname : \"Peregrine Mask\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While wearing this winged helm, I have a flying speed of 60 ft and advantage on initiative rolls.\",\n\tdescriptionFull : \"While wearing this winged helm, you have a flying speed of 60 feet. In addition, you have advantage on initiative rolls.\",\n\tattunement : true,\n\tadvantages : [[\"Initiative\", true]],\n\tspeed : { fly : { spd : \"fixed60\", enc : \"fixed50\" } }\n}\nMagicItemsList[\"pyroconverger\"] = {\n\tname : \"Pyroconverger\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"As an action, I can use this flamethrower to deal 4d6 fire damage to all in a 10-ft cone, DC 13 Dex save halves. I must roll a d10 each time I use it and add the times it was used since my last long rest. If the total is 11 or higher, it malfunctions and I take 4d6 fire damage and I can't use it again until I finish a long rest.\",\n\tdescriptionFull : \"A Pyroconverger is an Izzet-made flamethrower. It carries a risk of malfunction each time you use it.\\n   As an action, you can cause the Pyroconverger to project fire in a 10-foot cone. Each creature in that area must make a DC 13 Dexterity saving throw, taking 4d6 fire damage on a failed save, or half as much damage on a successful one.\\n   Each time you use the Pyroconverger, roll a d10 and add the number of times you have used it since your last long rest. If the total is 11 or higher, the Pyroconverger malfunctions: you take 4d6 fire damage, and you can't use the Pyroconverger again until you finish a long rest.\",\n\tattunement : true,\n\tweight : 1,\n\tweaponOptions : [{\n\t\tregExpSearch : /pyroconverger/i,\n\t\tname : \"Pyroconverger\",\n\t\tsource : [[\"G\", 180]],\n\t\tability : 0,\n\t\ttype : \"Magic Item\",\n\t\tdamage : [4, 6, \"fire\"],\n\t\trange : \"10-ft cone\",\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Roll each time for malfunction, see item\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\tmodifiers : [5, \"\"],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"if malfunction\"\n}\nMagicItemsList[\"rakdos riteknife\"] = {\n\tname : \"Rakdos Riteknife\",\n\tsource : [[\"G\", 180]],\n\ttype : \"weapon (dagger)\",\n\trarity : \"legendary\",\n\tdescription : \"This has +1 to hit/damage and imprisons souls of any killed with it, up to 5. It deals +1d4 necr. per stored soul. As a bonus action, I can release souls to regain 1d10 HP per soul. Once per long rest as a reaction after I deal damage with it, I can release 5 souls to have the target make a DC 15 Con save or die if below 75 HP.\",\n\tdescriptionLong : \"This magical dagger has a +1 bonus on attack and damage rolls made with it. When used to slay a creature, it imprisons its soul. It can store up to five souls. While it holds souls, it deals +1d4 necrotic damage per stored soul. [Siphon Vitality] As a bonus action, I can release one or more soul to regain 1d10 HP per soul released. [Annihilation] As a reaction after I deal damage with it, I can release five souls to have the target of the attack make a DC 15 Constitution saving throw or die if below 75 HP. If the target dies, I can't use this property again until I finish a long rest.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon. Its blade is cruelly serrated, and its hilt resembles a demonic head and wings. Whenever you slay a creature with an attack using the dagger, the creature's soul is imprisoned inside the dagger, and that creature can be restored to life only by a Wish spell. The dagger can hold a maximum of five souls.\\n   For each soul imprisoned in the dagger, your attacks with it deal an extra 1d4 necrotic damage on a hit. While the dagger is within 5 feet of you, your dreams are haunted by whispers from the trapped souls.\\n   The dagger has the following additional properties.\\n   \" + toUni(\"Siphon Vitality\") + \". As a bonus action, you can release any number of stored souls from the dagger to regain 1d10 hit points per soul released.\\n   \" + toUni(\"Annihilation\") + \". If the dagger holds five souls, you can use this property: As a reaction immediately after you hit a creature with the dagger and deal damage to that target, you can release all five souls. If the target now has fewer than 75 hit points, it must succeed on a DC 15 Constitution saving throw or die. If the target dies, you can't use this property again until you finish a long rest.\",\n\tattunement : true,\n\tweight : 1,\n\taction : [[\"bonus action\", \" (Siphon Vitality)\"], [\"reaction\", \" (Annihilation)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*rakdos)(?=.*riteknife).*$/i,\n\t\tname : \"Rakdos Riteknife\",\n\t\tsource : [[\"G\", 180]],\n\t\tdescription : \"Finesse, light, thrown; Imprisons soul on kill (max 5); +1d4 necrotic damage per stored soul\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"Annihilation\"\n}\nMagicItemsList[\"skyblinder staff\"] = {\n\tname : \"Skyblinder Staff\",\n\tsource : [[\"G\", 181]],\n\ttype : \"staff\",\n\trarity : \"uncommon\",\n\tdescription : \"This +1 quarterstaff gives me a +1 bonus on spell attacks. As a reaction when a flying creature I can see within 30 ft makes an attack roll against me, I can cause the staff to flare with light. The attacker has disadvantage on the attack roll, and it must make a DC 15 Con save or be blinded until the start of its next turn.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic quarterstaff. While holding it, you gain a +1 bonus to spell attack rolls.\\n   If a flying creature you can see within 30 feet of you makes an attack roll against you, you can use your reaction to hold the staff aloft and cause it to flare with light. The attacker has disadvantage on the attack roll, and it must succeed on a DC 15 Constitution saving throw or be blinded until the start of its next turn.\",\n\tattunement : true,\n\tweight : 4,\n\taction : [[\"reaction\", \" (vs. flying)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*skyblinder)(?=.*staff).*$/i,\n\t\tname : \"Skyblinder Staff\",\n\t\tsource : [[\"G\", 181]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type == \"attack\") return 1;\n\t\t\t},\n\t\t\t\"While holding the Skyblinder Staff, I have a +1 bonus to spell attack rolls.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"spies' murmur\"] = {\n\tname : \"Spies' Murmur\",\n\tsource : [[\"G\", 181]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This dark metal headpiece is worn curved around the ear. I can communicate telepathically with others that I know within 1 mile who are also wearing a spies' murmur. As a bonus action, I can allow that creature to hear everything I hear for 1 hour. I can end this effect as a bonus action, and it ends if I am incapacitated.\",\n\tdescriptionFull : \"This headpiece, crafted from dark metal, is worn curved around the ear. If you know a creature wearing another Spies' Murmur and that creature is within 1 mile of you, you can communicate telepathically with each other. As a bonus action, you can allow that creature to hear everything you hear for 1 hour. You can end this effect as a bonus action, and it ends if you're incapacitated.\",\n\tattunement : true\n}\nMagicItemsList[\"sunforger\"] = {\n\tname : \"Sunforger\",\n\tsource : [[\"G\", 181]],\n\ttype : \"weapon (warhammer)\",\n\trarity : \"rare\",\n\tdescription : \"This warhammer adds +2 to attack and damage rolls made with it. As an action once per short rest, I can hurl it up to 120 ft to a point I can see where it explodes in a 20-ft radius, dealing 6d6 fire damage to all within, DC 15 Dex save halves. Within 24 hours afterward, I can have it reform in my hand as an action.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon.\\n   As an action, you can hurl the weapon up to 120 feet to a point you can see. When it reaches that point, the weapon vanishes in an explosion, and each creature in a 20-foot-radius sphere centered on that point must make a DC 15 Dexterity saving throw, taking 6d6 fire damage on a failed save, or half as much damage on a successful one. Afterward, you can use an action to cause the weapon to reappear in your empty hand. You can't cause it to explode again until you finish a short or long rest.\\n   If you don't call the weapon back to your hand, it reappears at the point where it exploded when you are no longer attuned to it or when 24 hours have passed.\",\n\tattunement : true,\n\tweight : 2,\n\taction : [[\"action\", \" (hurl/recall)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /sunforger/i,\n\t\tname : \"Sunforger\",\n\t\tsource : [[\"G\", 181]],\n\t\tdescription : \"Versatile (1d10); As action, hurl 120 ft for 20-ft rad 6d6 fire dmg, Dex DC 15 half\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"short rest\",\n\tadditional : \"Hurl\"\n}\nMagicItemsList[\"sword of the paruns\"] = {\n\tname : \"Sword of the Paruns\",\n\tsource : [[\"G\", 181]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"very rare\",\n\tdescription : \"This longsword has a +1 to hit and damage. Once per round after I take an action while holding it, I can use it to have a creature within 60 ft use its reaction to do something based on the action I was taking: [Attack] make one weapon attack, [Dash] move its speed, or [Dodge] gain the benefits of a Dodge action.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon. Additionally, once on each of your turns, you can use one of the following properties if you're holding the sword:\\n \\u2022 Immediately after you use the Attack action to attack with the sword, you can enable one creature within 60 feet of you to use its reaction to make one weapon attack.\\n \\u2022 Immediately after you take the Dash action, you can enable one creature within 60 feet of you to use its reaction to move up to its speed.\\n \\u2022 Immediately after you take the Dodge action, you can enable one creature within 60 feet of you to use its reaction to gain the benefits of the Dodge action.\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*sword)(?=.*paruns).*$/i,\n\t\tname : \"Sword of the Paruns\",\n\t\tsource : [[\"G\", 181]],\n\t\tdescription : \"Versatile (1d10); Have ally in 60 ft do something when I take the Attack, Dash, or Dodge action\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"voyager staff\"] = {\n\tname : \"Voyager Staff\",\n\tsource : [[\"G\", 181]],\n\ttype : \"staff\",\n\trarity : \"very rare\",\n\tdescription : \"This +1 quarterstaff gives me a +1 bonus on spell attacks. It has 10 charges, regaining 1d6+4 expended charges at dawn. If I expend its last charge, roll a d20. On a 1, it vanishes. I can use its charges to cast Banishment (4 ch), Blink (3 ch), Misty Step (2 ch), Passwall (5 ch), and Teleport (7 ch), using my spellcasting ability.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic quarterstaff. While you hold it, you gain a +1 bonus to spell attack rolls.\\n   This staff has 10 charges. While holding it, you can use an action to expend 1 or more of the staff's charges to cast one of the following spells from it, using your spell save DC: Banishment (4 charges), Blink (3 charges), Misty Step (2 charges), Passwall (5 charges), or Teleport (7 charges).\\n   The staff regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff vanishes forever.\",\n\tattunement : true,\n\tweight : 4,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*voyager)(?=.*staff).*$/i,\n\t\tname : \"Voyager Staff\",\n\t\tsource : [[\"G\", 181]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type == \"attack\") return 1;\n\t\t\t},\n\t\t\t\"While holding the Voyager Staff, I have a +1 bonus to spell attack rolls.\"\n\t\t]\n\t},\n\tusages : 10,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+4\",\n\tspellcastingAbility : \"class\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"2 charges\",\n\t\tspells : [\"misty step\"],\n\t\tselection : [\"misty step\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"blink\"],\n\t\tselection : [\"blink\"],\n\t\tfirstCol : 3\n\t}, {\n\t\tname : \"4 charges\",\n\t\tspells : [\"banishment\"],\n\t\tselection : [\"banishment\"],\n\t\tfirstCol : 4\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"passwall\"],\n\t\tselection : [\"passwall\"],\n\t\tfirstCol : 5\n\t}, {\n\t\tname : \"7 charges\",\n\t\tspells : [\"teleport\"],\n\t\tselection : [\"teleport\"],\n\t\tfirstCol : 7\n\t}]\n}\n\n// pub_20181120_WDotMM.js\r\n// This file adds the magic items from the Waterdeep: Dungeon of the Mad Mage adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"WDotMM\"] = {\r\n\tname : \"Waterdeep: Dungeon of the Mad Mage [items]\",\r\n\tabbreviation : \"WDotMM\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/waterdeep-dungeon-of-the-mad-mage\",\r\n\tdate : \"2018/11/20\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"potion of comprehension\"] = {\r\n\tname : \"Potion of Comprehension\",\r\n\tsource : [[\"WDotMM\", 62]],\r\n\ttype : \"potion\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to gain the effect of the Comprehend Languages spell. The consumer understands the literal meaning of any spoken language heard or written text touched and read. This liquid is a clear concoction with bits of salt and soot swirling in it.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain the effect of a comprehend languages spell for 1 hour. This liquid is a clear concoction with bits of salt and soot swirling in it.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"potion of watchful rest\"] = { // contains contributions by Nod_Hero\r\n\tname : \"Potion of Watchful Rest\",\r\n\tsource : [[\"WDotMM\", 62]],\r\n\ttype : \"potion\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can drink this weet, amber-colored potion or administer it to another to gain the following benefits for the next 8 hours: magic can't put the consumer to sleep, and they can remain awake during a long rest and still gain its benefits. This brew has no effect on creatures that don't require sleep.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain the following benefits for the next 8 hours: magic can't put you to sleep, and you can remain awake during a long rest and still gain its benefits. This sweet, amber-colored brew has no effect on creatures that don't require sleep, such as elves.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"dagger of blindsight\"] = {\r\n\tname : \"Dagger of Blindsight\",\r\n\tsource : [[\"WDotMM\", 86]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This magical dagger has a saw-toothed edge and a black pearl nested in its pommel. While I'm attuned to it, I have blindsight out to a range of 30 ft.\",\r\n\tdescriptionFull : \"This rare magic item requires attunement. A creature attuned to it gains blindsight out to a range of 30 feet. The dagger has a saw-toothed edge and a black pearl nested in its pommel.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tweaponsAdd : {\r\n\t\tselect : [\"Dagger of Blindsight\"],\r\n\t\toptions : [\"Dagger of Blindsight\"]\r\n\t},\r\n\tvision : [[\"Blindsight\", 30]]\r\n}\r\nMagicItemsList[\"professor orb\"] = { // contains contributions by Pengsloth\r\n\tname : \"Professor Orb\",\r\n\tsource : [[\"WDotMM\", 131], [\"RotF\", 315]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This orb is sentient with the personality of a scholar, but no will of its own. It has Int 18, Wis and Cha of 3d6 each. It knows and reads 4 languages, can see/hear as a human out to 60 ft, and has extensive knowledge of 4 narrow academic subjects (+9 on checks). It knows Mage Hand, which it uses to move around.\",\r\n\tdescriptionFull : \"Each professor orb takes the form of a smooth, solid, 5-pound sphere of smoky gray quartz about the size of a grapefruit. Close examination reveals two or more pinpricks of silver light deep inside the sphere.\\n   A Professor Orb is sentient and has the personality of a scholar. Its alignment is determined by rolling on the alignment table in the \\\"Sentient Magic Items\\\" section in chapter 7 of the Dungeon Master's Guide. Regardless of its disposition, the orb has an Intelligence of 18, and Wisdom and Charisma scores determined by rolling 3d6 for each ability. The orb speaks, reads, and understands four languages, and can see and hear normally out to a range of 60 feet. Unlike most sentient items, the orb has no will of its own and can't initiate a conflict with the creature in possession of it.\\n   A Professor Orb has extensive knowledge of four narrow academic subjects. When making an Intelligence check to recall lore from any of its areas of expertise, the orb has a +9 bonus to its roll (including its Intelligence modifier).\\n   In addition to the knowledge it possesses, a professor orb can cast the Mage Hand cantrip at will. It uses the spell only to transport itself. Its spellcasting ability is Intelligence.\"\r\n}\r\nAddFeatureChoice(MagicItemsList[\"horn of valhalla\"], false, \"Endless Maze (rare; 3d4+3 berserkers; prereq: simple weapons prof.)\", {\r\n\tname : \"Horn of the Endless Maze\",\r\n\tsortname : \"Horn of Valhalla, Endless Maze\",\r\n\tsource : [[\"WDotMM\", 163]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\", // interpretation, made it the same as Brass Horn of Valhalla,\r\n\tdescription : \"As an action once per 7 days, I can blow this horn to summon 3d4+3 minotaurs (use berserker stats) from the Abyss in 60 ft. They return after 1 hour or when they drop to 0 HP. They follow my commands and are friendly to me and my companions if I'm proficient with all simple weapons. Otherwise, they attack me.\",\r\n\tdescriptionFull : \"You can use an action to blow this horn. In response, 3d4+3 warrior spirits from the Abyss appear within 60 feet of you. They look like Minotaurs and use the statistics of a berserker. They return to the Abyss after 1 hour or when they drop to 0 hit points. Once you use the horn, it can't be used again until 7 days have passed.\\n   If you blow the horn without having proficiency with all simple weapons, the summoned berserkers attack you. If you meet the requirement, they are friendly to you and your companions and follow your commands.\"\r\n});\r\nMagicItemsList[\"dodecahedron of doom\"] = {\r\n\tname : \"Dodecahedron of Doom\",\r\n\tsource : [[\"WDotMM\", 174]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This twelve-sided metal die is 1 ft across and bears the numbers 1 through 12 engraved on its pentagonal sides. As an action, I can hurl it up to 60 ft. A random magical effect occurs when the die comes to rest after rolling across the ground for at least 10 ft. See the Notes page for the table of effects.\",\r\n\tdescriptionFull : \"This twelve-sided metal die is 12 inches across and bears the numbers 1 through 12 engraved on its pentagonal sides. The dodecahedron contains arcane clockwork mechanisms that whir and click whenever the die is cast.\\n   The dodecahedron can be hurled up to 60 feet as an action. A random magical effect occurs when the die comes to rest after rolling across the ground for at least 10 feet. If an effect requires a target and no eligible target is within range, nothing happens. Spells cast by the dodecahedron require no components. Roll a d12 and consult the following table to determine the effect:\\n\\n\" + toUni(\"d12\\teffect\") + \"\\n1-2\\tThe dodecahedron explodes and is destroyed. Each creature within 20 feet of the exploding die must make a DC 13 Dexterity saving throw, taking 40 (9d8) force damage on a failed save, or half as much damage on a successful one.\\n3-4\\tThe dodecahedron casts Light on itself. The effect lasts until a creature touches the die.\\n5-6\\tThe dodecahedron casts Ray of Frost (+5 to hit), targeting a random creature within 60 feet of it that doesn't have total cover against the attack.\\n7-8\\tThe dodecahedron casts Shocking Grasp (+5 to hit) on the next creature that touches it.\\n9-10\\tThe dodecahedron casts Darkness on itself. The effect has a duration of 10 minutes.\\n11-12\\tThe next creature to touch the dodecahedron gains 1d10 temporary hit points that last for 1 hour.\",\r\n\tweight : 2,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effect Table\",\r\n\t\tnote : [\r\n\t\t\t\"This twelve-sided metal die is 12 inches across and bears the numbers 1 through 12 engraved on its pentagonal sides. The dodecahedron contains arcane clockwork mechanisms that whir and click whenever the die is cast.\",\r\n\t\t\t\"If an effect requires a target and no eligible target is within range, nothing happens.\",\r\n\t\t\t\"d12\\tEFFECT\",\r\n\t\t\t\"1-2\\tThe dodecahedron explodes and is destroyed. Each creature within 20 feet of the exploding die must make a DC 13 Dexterity saving throw, taking 40 (9d8) force damage on a failed save, or half as much damage on a successful one.\",\r\n\t\t\t\"3-4\\tThe dodecahedron casts light on itself. The effect lasts until a creature touches the die.\",\r\n\t\t\t\"5-6\\tThe dodecahedron casts ray of frost (+5 to hit), targeting a random creature within 60 feet of it that doesn't have total cover against the attack.\",\r\n\t\t\t\"7-8\\tThe dodecahedron casts shocking grasp (+5 to hit) on the next creature that touches it.\",\r\n\t\t\t\"9-10\\tThe dodecahedron casts darkness on itself. The effect has a duration of 10 minutes.\",\r\n\t\t\t\"11-12\\tThe next creature to touch the dodecahedron gains 1d10 temporary hit points that last for 1 hour.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"orb of gonging\"] = { // contains contributions by Pengsloth\r\n\tname : \"Orb of Gonging\",\r\n\tsource : [[\"WDotMM\", 174]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This item is a hollow, 5-inch-diameter orb with notches along its outside bronze rings. As an action, I can align the notches, causing the orb to gong loudly until the notches are no longer aligned. The sounds are spaced 6 seconds apart and can be heard out to a range of 600 ft.\",\r\n\tdescriptionFull : \"This common wondrous item is a hollow, 5-inch-diameter orb that weighs 5 pounds. Its outer shell is composed of notched bronze rings, which can be turned so that the notches line up. Aligning the notches requires an action, and doing so causes the orb to gong loudly until the notches are no longer aligned. The sounds are spaced 6 seconds apart and can be heard out to a range of 600 feet.\"\r\n}\r\nMagicItemsList[\"black crystal tablet\"] = { // contains contributions by Pengsloth\r\n\tname : \"Black Crystal Tablet\",\r\n\tsource : [[\"WDotMM\", 284]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"As an action once per dawn, I can use the tablet to cast Eyebite or Gate, but the latter only links to the Far Realm. When attuning to it, I must make a DC 20 Wisdom saving throw or be afflicted by afflicted long-term madness (see table at SRD 201 or DMG 259).\",\r\n\tdescriptionFull : \"Any creature that attunes to the tablet must make a DC 20 Wisdom saving throw at the end of its next long rest. On a failed save, the creature becomes afflicted with a random form of long-term madness (see \\\"Madness\\\" in chapter 8 of the Dungeon Master's Guide).\\n   As an action, a creature attuned to the Black Crystal Tablet can use it to cast Eyebite or Gate (the portal created by this spell links to the Far Realm only). After the tablet is used to cast a spell, it cannot be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature that has proficiency in the arcana skill\",\r\n\tprereqeval : function(v) { return v.skillProfs.indexOf(\"Arcana\") !== -1; },\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"eyebite\", \"gate\"],\r\n\t\tselection : [\"eyebite\", \"gate\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"gate\" : {\r\n\t\t\tdescription : \"Create a portal to a precise location in the far realm; can transport named crea to me\",\r\n\t\t\tchanges : \"The spell can only connect to the Far Realm.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"helm of the scavenger\"] = {\r\n\tname : \"Helm of the Scavenger\",\r\n\tsource : [[\"WDotMM\", 297]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This ornate chair can be placed on a ship weighing up to 100 tons. It generates artificial gravity and an envelope of fresh air at 70 \\u00B0F around the ship when in the void of space. While attuned to it and sitting in the chair, I can propel the ship, steer it, and see what is happening anywhere on it, but I can't use spell slots.\",\r\n\tdescriptionFull : \"This ornate chair is designed to propel and maneuver a ship through space.\\n   \" + toUni(\"Passive Properties\") + \". The following properties of the helm come into play even when no creature is attuned to it:\\n \\u2022 When placed aboard a vessel weighing between 1 and 100 tons, the helm generates an envelope of fresh air around the ship while it is in the void of space (but not underwater). This envelope extends out from the edges of the hull in all directions for a distance equal in length to the vessel's beam, so that creatures aboard and near the ship can breathe normally in space. The temperature within the air envelope is 70 degrees Fahrenheit.\\n \\u2022 When placed aboard a vessel weighing between 1 and 100 tons, the helm generates an artificial gravity field while the ship is in the void of space, so that creatures can walk on the ship's decks as they normally would. Creatures and objects that fall overboard bob in a gravity plane that extends out from the main deck for a distance equal in length to the vessel's beam.\\n\\n\" + toUni(\"Active Properties\") + \". The sensation of being attuned to the helm is akin to being immersed in warm water. While attuned to the helm, you gain the following abilities while you sit in it:\\n \\u2022 You can use the helm to propel the vessel across or through water and other liquids at a maximum speed in miles per hour equal to your highest-level unexpended spell slot.\\n \\u2022 You can use the helm to propel the vessel through air or space at a maximum speed in miles per hour equal to your highest-level unexpended spell slot \\xD7 10.\\n \\u2022 Provided you have at least one unexpended spell slot, you can steer the vessel, albeit in a somewhat clumsy fashion, in much the same way that oars or a rudder can maneuver a seafaring ship.\\n \\u2022 Whenever you like, you can see what's happening on and around the vessel as though you were standing in a location of your choice aboard it.\\n\\n\" + toUni(\"Drawback\") + \". While attuned to the helm, you cannot expend your own spell slots.\",\r\n\tattunement : true,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"When placed aboard a vessel weighing between 1 and 100 tons, this ornate chair can propel and maneuver a ship through space.\",\r\n\t\t\t\"The following properties of the helm come into play even when no creature is attuned to it:\",\r\n\t\t\t\" \\u2022 The helm generates an envelope of fresh air around the ship while it is in the void of space (but not underwater). This envelope extends out from the edges of the hull in all directions for a distance equal in length to the vessel's beam, so that creatures aboard and near the ship can breathe normally in space. The temperature within the air envelope is 70 degrees Fahrenheit.\",\r\n\t\t\t\" \\u2022 The helm generates an artificial gravity field while the ship is in the void of space, so that creatures can walk on the ship's decks as they normally would. Creatures and objects that fall overboard bob in a gravity plane that extends out from the main deck for a distance equal in length to the vessel's beam.\",\r\n\t\t\t\"The sensation of being attuned to the helm is akin to being immersed in warm water. While attuned to the helm, I gain the following abilities while I sit in it:\",\r\n\t\t\t\" \\u2022 I can use the helm to propel the vessel across or through water and other liquids at a maximum speed in miles per hour equal to my highest-level unexpended spell slot.\",\r\n\t\t\t\" \\u2022 I can use the helm to propel the vessel through air or space at a maximum speed in miles per hour equal to my highest-level unexpended spell slot \\xD7 10.\",\r\n\t\t\t\" \\u2022 Provided I have at least one unexpended spell slot, I can steer the vessel, albeit in a somewhat clumsy fashion, in much the same way that oars or a rudder can maneuver a seafaring ship.\",\r\n\t\t\t\" \\u2022 Whenever I like, I can see what's happening on and around the vessel as though I were standing in a location of my choice aboard it.\",\r\n\t\t\t\" \\u2022 I cannot expend my own spell slots.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"shield of the uven rune\"] = { // contains contributions by Pengsloth\r\n\tname : \"Shield of the Uven Rune\",\r\n\tsource : [[\"WDotMM\", 299]],\r\n\tstoryItemAL : true,\r\n\tdescription : \"I can use the shield as it is, or transfer its runic properties over to a weapon.\",\r\n\tdescriptionFull : \"This shield is made from the scale of an ancient white dragon. It has a rune burned into its outward-facing side. A character who examines the rune and succeeds on a DC 20 Intelligence (History) check recognizes it as an uven (\\\"enemy\\\" in Giant) rune that confers great power.\\n   While holding the shield, you benefit from the following properties.\\n   \" + toUni(\"Winter's Friend\") + \". You are immune to cold damage.\\n   \" + toUni(\"Deadly Rebuke\") + \". Immediately after a creature hits you with a melee attack, you can use your reaction to deal 3d6 necrotic damage to that creature.\\n   \" + toUni(\"Bane\") + \". You can cast the Bane spell from the shield (save DC 17). The spell does not require concentration and lasts for 1 minute. Once you cast the spell from the shield, you can't do so again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Vengeance\") + \". You can transfer the shield's magic to a nonmagical weapon by tracing the uven rune on the weapon with one finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the shield is destroyed, and the rune is etched or burned into the chosen weapon. This weapon becomes a rare magic item that requires attunement. It has the properties of a +1 weapon. The bonus increases to +3 when the weapon is used against one of the following creature types, chosen by you at the time of the magic weapon's creation: aberrations, celestials, constructs, dragons, elementals, fey, fiends, giants, or undead.\",\r\n\tattunement : true,\r\n\tchoices : [\"Shield\", \"Transferred to a weapon\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"shield\" : {\r\n\t\tname : \"Shield of the Uven Rune \",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This shield made from the scale of a white dragon gives me cold damage immunity. As a reaction when I'm hit by a melee attack, I can deal 3d6 necrotic damage to the attacker. Once per short rest, I can cast Bane (DC 17) needing no concentration. I can do an 8 hour ritual to transfer the rune to a weapon, see book.\",\r\n\t\tweight : 6,\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\",\r\n\t\tadditional : \"Bane\",\r\n\t\tshieldAdd : \"Shield of the Uven Rune\",\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tsavetxt : {\timmune : [\"cold\"] },\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"bane\"],\r\n\t\t\tselection : [\"bane\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"bane\" : {\r\n\t\t\t\tduration : \"1 min\",\r\n\t\t\t\tchanges : \"The spell does not require concentration.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a weapon\" : {\r\n\t\tname : \"Uven Rune Weapon\",\r\n\t\ttype : \"weapon (any)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This magic weapon adds a +1 bonus to attack and damage rolls made with it. This bonus increases to +3 when it is used against the creature type, chosen at the time of the magic weapon's creation: aberrations, celestials, constructs, dragons, elementals, fey, fiends, giants, or undead.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Uven Rune\"]\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (/^(?=.*\\buven\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2 to hit/damage vs. chosen creature type';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Uven Rune\" in a the name of a weapon, it will be treated as the magic weapon Uven Rune Weapon, which has a +1 bonus, or a +3 bonus against its chosen creature type.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif ((/^(?=.*\\buven\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"blast scepter\"] = { // contains contributions by Pengsloth\r\n\tname : \"Blast Scepter\",\r\n\tsource : [[\"WDotMM\", 310]],\r\n\ttype : \"rod\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"While attuned to the Blast Scepter, I gain resistance to fire and lightning damage and can, as an action, use it to cast Thunderwave as a 4th-level spell (save DC 16) without expending a spell slot. It can be used as an arcane focus.\",\r\n\tdescriptionFull : \"The Blast Scepter can be used as an arcane focus.\\n   Whoever is attuned to the Blast Scepter gains resistance to fire and lightning damage and can, as an action, use it to cast Thunderwave as a 4th-level spell (save DC 16) without expending a spell slot.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Fire\", \"Lightning\"],\r\n\tfixedDC : 16,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will (4th level)\",\r\n\t\tspells : [\"thunderwave\"],\r\n\t\tselection : [\"thunderwave\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"thunderwave\" : {\r\n\t\t\tnameShort : \"Thunderwave (4th level)\",\r\n\t\t\tdescription : \"All crea/obj in area 5d8 Thunder dmg, pushed 10 ft away; save halves and not pushed\",\r\n\t\t\tchanges : \"Cast as if using a 4th-level spell slot\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"chest of preserving\"] = {\r\n\tname : \"Chest of Preserving\",\r\n\tsource : [[\"WDotMM\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Food and other perishable items do not age or decay while inside this chest. It is 2.5 ft long, 1.5 ft wide, and 1 ft tall with a half-barrel lid. The chest has a lock, which can be picked with thieves' tools and a successful DC 15 Dexterity check. Smashing the lock or any other part of the chest renders it nonmagical.\",\r\n\tdescriptionFull : \"Food and other perishable items do not age or decay while inside a Chest of Preserving. The chest is 2\\xBD feet long, 1\\xBD feet wide, and 1 foot tall with a half-barrel lid. The chest has a lock, which can be picked with thieves' tools and a successful DC 15 Dexterity check. Smashing the lock or any other part of the chest renders it nonmagical.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"circlet of human perfection\"] = { // contains contributions by Pengsloth\r\n\tname : \"Circlet of Human Perfection\",\r\n\tsource : [[\"WDotMM\", 30]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tprerequisite : \"Requires attunement by a humanoid\",\r\n\tdescription : \"Wearing this circlet transforms my appearance into an attractive human of average height and weight, but otherwise doesn't change anything. The circlet chooses the physical characteristics of the form, such as age, gender, skin color, hair color, and voice. Removing the circlet ends the effect.\",\r\n\tdescriptionFull : \"The Circlet of Human Perfection transforms its attuned wearer into an attractive human of average height and weight. The circlet chooses the physical characteristics of the form, such as age, gender, skin color, hair color, and voice. Except for size, the wearer's statistics and racial traits don't change, nor do items worn or carried by the wearer. Removing the circlet ends the effect.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"propeller helm\"] = { // contains contributions by Pengsloth\r\n\tname : \"Propeller Helm\",\r\n\tsource : [[\"WDotMM\", 251]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tprerequisite : \"Requires attunement by a Small humanoid\",\r\n\tprereqeval : function () { return tDoc.getField(\"Size Category\").currentValueIndices == 4; },\r\n\tdescription : \"While worn, the helm allows me to use an action to cast Levitate, requiring no components. Each time the spell ends, there is a 50 percent chance that the helm loses its magic and becomes nonmagical.\",\r\n\tdescriptionFull : \"While worn, the helm allows its wearer to use an action to cast the Levitate spell, requiring no components. The helm's propeller spins and whirs loudly until the spell ends. Each time the spell ends, there is a 50 percent chance that the helm loses its magic and becomes nonmagical.\",\r\n\tattunement : true,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"tearulai\"] = { // contains contributions by Pengsloth\r\n\tname : \"Tearulai\",\r\n\tsource : [[\"WDotMM\", 76]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"If I roll a 20 on an attack with this sword, it deals +14 slashing damage and there is a 5% chance its lobs off a limb. It deals max damage to objects and has 6 charges, regaining 1d4+2 at dawn, which it can use to cast spells. It can shed light on command and is a sentient weapon with a will of its own, see Notes page.\",\r\n\tdescriptionFull : [\r\n\t\t\"The longsword, Tearulai, is a sentient, neutral good sword of sharpness with an emerald-colored blade and precious gemstones embedded in its hilt and pommel. The sword's magical properties are suppressed until it is removed from Valdemar's skull.\",\r\n\t\t\"Evil creatures can't attune to Tearulai; any evil creature that tries to do so takes 20 psychic damage. The weapon's emerald blade can't be damaged or dulled, and the sword can't be teleported anywhere without its wielder while the two are attuned to one another.\",\r\n\t\ttoUni(\"Sword of Sharpness\") + \". When you attack an object with this magic sword and hit, maximize your weapon damage dice against the target.\",\r\n\t\t\"When you attack a creature with this weapon and roll a 20 on the attack roll, that target takes an extra 14 slashing damage. Then roll another d20. If you roll a 20, you lop off one of the target's limbs, with the effect of such loss determined by the DM. If the creature has no limb to sever, you lop off a portion of its body instead.\",\r\n\t\t\"In addition, you can speak the sword's command to cause the blade to shed bright light in a 10-foot radius and dim light for an additional 10 feet. Speaking the command word again or sheathing the sword puts out the light.\\n\\nNote: According to the SRD, it is an extra 4d6 slashing damage, although this is incorrect.\",\r\n\t\ttoUni(\"Spells\") + \". The sword has 6 charges and regains 1d4 + 2 expended charges daily at dawn. A creature attuned to the sword can use an action and expend 1 or more charges to cast one of the following spells from it without material components: Fly (2 charges), Polymorph (3 charges), or Transport Via Plants (4 charges).\",\r\n\t\ttoUni(\"Sentience\") + \". The sword has an Intelligence of 17, a Wisdom of 12, and a Charisma of 20. It has hearing and truesight out to a range of 120 feet. It communicates telepathically with its attuned wielder and can speak, read, and understand Common, Draconic, Elvish, and Sylvan. In addition, the sword can ascertain the true value of any gemstone brought within 5 feet of it.\",\r\n\t\ttoUni(\"Personality\") + \". Tearulai admires great beauty, music, fine art, and poetry. Vain, the weapon strives to improve its appearance. It craves gemstones and seeks out better ones with which to adorn itself. Most of all, it longs to return to the forests around Myth Drannor, where it was created. If its wielder's goals run counter to its own, Tearulai attempts to take control of its wielder and escape Undermountain, whereupon it can use its Transport Via Plants spell to return whence it came.\"\r\n\t].join(\"\\n   \"),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-evil alignment\",\r\n\tprereqeval : function(v) { return !(/evil/i).test(What(\"Alignment\")); },\r\n\tweight : 3,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /tearulai/i,\r\n\t\tname : \"Tearulai\",\r\n\t\tsource : [[\"WDotMM\", 76]],\r\n\t\tdescription : \"Versatile (1d10); On 20 to hit: +14 damage \\u0026 5% chance to sever limb; Max damage vs. objects\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regain 1d4+2\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"fly\"],\r\n\t\tselection : [\"fly\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"transport via plants\"],\r\n\t\tselection : [\"transport via plants\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Traits and Personality\",\r\n\t\tnote : desc([\r\n\t\t\t\"Tearulai has an emerald-colored blade and precious gemstones embedded in its hilt and pommel. Evil creatures can't attune to it and take 20 psychic damage if they try to do so. Its emerald blade can't be damaged or dulled, and the sword can't be teleported anywhere without its wielder while the two are attuned to one another.\",\r\n\t\t\t\"Objects hit by the sword take maximum damage from it. When I roll a 20 on the attack roll against a creature, that target takes an extra 14 slashing damage. Then roll another d20. If you roll a 20, you lop off one of the target's limbs, with the effect of such loss determined by the DM. If the creature has no limb to sever, you lop off a portion of its body instead.\",\r\n\t\t\t\"I can speak the sword's command to cause the blade to shed bright light in a 10-ft radius and dim light for another 10 ft. The light stops when I sheath the sword or speaking the command word again.\",\r\n\t\t\t\"The sword has 6 charges and regains 1d4 + 2 expended charges daily at dawn. I can use the charges to cast Fly (2 charges), Polymorph (3 charges), or Transport Via Plants (4 charges).\",\r\n\t\t\t\"Tearulai is sentient and has an Intelligence of 17, a Wisdom of 12, and a Charisma of 20. It has hearing and truesight out to a range of 120 ft. It communicates telepathically with its attuned wielder and can speak, read, and understand Common, Draconic, Elvish, and Sylvan. In addition, the sword can ascertain the true value of any gemstone brought within 5 ft of it.\",\r\n\t\t\t\"Tearulai admires great beauty, music, fine art, and poetry. Vain, the weapon strives to improve its appearance. It craves gemstones and seeks out better ones with which to adorn itself. Most of all, it longs to return to the forests around Myth Drannor, where it was created. If its wielder's goals run counter to its own, Tearulai attempts to take control of its wielder and uses Transport Via Plants to return whence it came.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"vial of stardust\"] = {\r\n\tname : \"Vial of Stardust\",\r\n\tsource : [[\"WDotMM\", 251]],\r\n\ttype : \"potion\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Once as an action, I can sprinkles the stardust contained in this vial over myself. After I do so, I gain the ability to cast Dream once as an action (spell save DC 15), requiring no components.\",\r\n\tdescriptionFull : \"Any creature that sprinkles the contents of a Vial of Stardust over itself gains the ability to cast the Dream spell once as an action (spell save DC 15), requiring no components.\"\r\n}\r\n\r\n// Beast\r\n// Crow is just a raven under a different name, it has been added to the SRD code as a `nameAlt`\r\n\n// pub_20190521_GoS.js\n// This file adds all material from the Ghosts of Saltmarsh adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"GoS\"] = {\n\tname : \"Ghosts of Saltmarsh [backgrounds, beasts, items]\",\n\tabbreviation : \"GoS\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Anthology\",\n\turl : \"https://dnd.wizards.com/products/ghosts-saltmarsh\",\n\tdate : \"2019/05/21\"\n};\n\nBackgroundList[\"fisher\"] = {\n\tregExpSearch : /fisher/i,\n\tname : \"Fisher\",\n\tsource : [[\"GoS\", 29], [\"ALbackground\", 0]],\n\tskills : [\"History\", \"Survival\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Fishing tackle\", \"\", 4],\n\t\t[\"Net\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Fishing lure or oiled leather boots\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\tfeature : \"Harvest the Water\",\n\ttrait : [\n\t\t\"I am unmoved by the wrath of nature.\",\n\t\t\"My friends are my crew; we sink or float together.\",\n\t\t\"I need long stretches of quiet to clear my head.\",\n\t\t\"Rich folk don't know the satisfaction of hard work.\",\n\t\t\"I laugh heartily, feel deeply, and fear nothing.\",\n\t\t\"I work hard; nature offers no handouts.\",\n\t\t\"I dislike bargaining; state your price and mean it.\",\n\t\t\"Luck favors me, and I take risks others might not.\"\n\t],\n\tideal : [\n\t\t[\"Camaraderie\", \"Camaraderie. Good people make even the longest voyage bearable. (Good)\"],\n\t\t[\"Luck\", \"Luck. Our luck depends on respecting its rules\\u2014now throw this salt over your shoulder. (Lawful)\"],\n\t\t[\"Daring\", \"Daring. The richest bounty goes to those who risk everything. (Chaotic)\"],\n\t\t[\"Plunder\", \"Plunder. Take all that you can and leave nothing for the scavengers. (Evil)\"],\n\t\t[\"Balance\", \"Balance. Do not fish the same spot twice in a row; suppress your greed, and nature will reward you. (Neutral)\"],\n\t\t[\"Hard Work\", \"Hard Work. No wave can move a soul hard at work. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I lost something important in the deep sea, and I intend to find it.\",\n\t\t\"Someone else's greed destroyed my livelihood, and I will be compensated.\",\n\t\t\"I will fish the many famous waters of this land.\",\n\t\t\"The gods saved me during a terrible storm, and I will honor their gift.\",\n\t\t\"My destiny awaits me at the bottom of a particular pond in the Feywild.\",\n\t\t\"I must repay my village's debt.\"\n\t],\n\tflaw : [\n\t\t\"I am judgmental, especially of those I deem homebodies or otherwise lazy.\",\n\t\t\"I become depressed and anxious if I'm away from the sea too long.\",\n\t\t\"I have lived a hard life and find it difficult to empathize with others.\",\n\t\t\"I am inclined to tell long-winded stories at inopportune times.\",\n\t\t\"I work hard, but I play harder.\",\n\t\t\"I am obsessed with catching an elusive aquatic beast, often to the detriment of other pursuits.\"\n\t],\n\textra : [\n\t\t\"Select a Fishing Tale\",\n\t\t\"Lobster wrestling\",\n\t\t\"It dragged the boat\",\n\t\t\"Fins of pure gold\",\n\t\t\"Ghost fish\",\n\t\t\"Nemesis clam\",\n\t\t\"It swallowed the sun\",\n\t\t\"Dive into the abyss\",\n\t\t\"Love story\"\n\t]\n};\nBackgroundFeatureList[\"harvest the water\"] = {\n\tdescription : \"I gain advantage on ability checks made using fishing tackle. If I have access to a body of water that sustains marine life, I can maintain a moderate lifestyle while working as a fisher, and I can catch enough food to feed myself and up to ten other people each day.\",\n\tsource : [[\"GoS\", 29], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"marine\"] = {\n\tregExpSearch : /marine/i,\n\tname : \"Marine\",\n\tsource : [[\"GoS\", 31], [\"ALbackground\", 0]],\n\tskills : [\"Athletics\", \"Survival\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Folded flag with company symbol\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Dagger\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Vehicles (water)\", \"Vehicles (land)\"],\n\tfeature : \"Steady\",\n\ttrait : [\n\t\t\"I speak rarely but mean every word I say.\",\n\t\t\"I laugh loudly and see the humor in stressful situations.\",\n\t\t\"I prefer to solve problems without violence, but I finish fights decisively.\",\n\t\t\"I enjoy being out in nature; poor weather never sours my mood.\",\n\t\t\"I am dependable.\",\n\t\t\"I am always working on some project or other.\",\n\t\t\"I become cantankerous and quiet in the rain.\",\n\t\t\"When the sea is within my sight, my mood is jovial and optimistic.\"\n\t],\n\tideal : [\n\t\t[\"Teamwork\", \"Teamwork. Success depends on cooperation and communication. (Good)\"],\n\t\t[\"Code\", \"Code. The marines' code provides a solution for every problem, and following it is imperative. (Lawful)\"],\n\t\t[\"Embracing\", \"Embracing. Life is messy. Throwing yourself into the worst of it is necessary to get the job done. (Chaotic)\"],\n\t\t[\"Might\", \"Might. The strong train so that they might rule those who are weak. (Evil)\"],\n\t\t[\"Bravery\", \"Bravery. To act when others quake in fear\\u2014this is the essence of the warrior. (Any)\"],\n\t\t[\"Perseverance\", \"Perseverance. No injury or obstacle can turn me from my goal. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I face danger and evil to offset an unredeemable act in my past.\",\n\t\t\"I. Will. Finish. The. Job.\",\n\t\t\"I must set an example of hope for those who have given up.\",\n\t\t\"I'm searching for a fellow marine captured by an elusive enemy.\",\n\t\t\"Fear leads to tyranny, and both must be eradicated.\",\n\t\t\"My commander betrayed my unit, and I will have revenge.\"\n\t],\n\tflaw : [\n\t\t\"I grow combative and unpredictable when I drink.\",\n\t\t\"I find civilian life difficult and struggle to say the right thing in social situations.\",\n\t\t\"My intensity can drive others away.\",\n\t\t\"I hold grudges and have difficulty forgiving others.\",\n\t\t\"I become irrational when innocent people are hurt.\",\n\t\t\"I sometimes stay up all night listening to the ghosts of my fallen enemies.\"\n\t],\n\textra : [\n\t\t\"Select a Hardship Endured\",\n\t\t\"Nearly drowned\",\n\t\t\"Captured\",\n\t\t\"Sacrifice\",\n\t\t\"Juggernaut\",\n\t\t\"Stowaway\",\n\t\t\"Leave none behind\"\n\t]\n};\nBackgroundFeatureList[\"steady\"] = {\n\tdescription : \"I can move twice the normal amount of time (up to 16 hours) each day before being subject to the effect of a forced march and need to make Constitution saves at the end of each extra hour to avoid gaining a level of exhaustion. Additionally, I can automatically find a safe route to land a boat on shore, provided such a route exists.\",\n\tsource : [[\"GoS\", 31], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"shipwright\"] = {\n\tregExpSearch : /shipwright/i,\n\tname : \"Shipwright\",\n\tsource : [[\"GoS\", 33], [\"ALbackground\", 0]],\n\tskills : [\"History\", \"Perception\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Blank book\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"],\n\t\t[\"Carpenter's tools\", \"\", 8]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Carpenter's tools\", \"Vehicles (water)\"],\n\tfeature : \"I'll Patch It!\",\n\ttrait : [\n\t\t\"I love talking and being heard more than I like to listen.\",\n\t\t\"I'm extremely fond of puzzles.\",\n\t\t\"I thrive under pressure.\",\n\t\t\"I love sketching and designing objects, especially boats.\",\n\t\t\"I'm not afraid of hard work\\u2014in fact, I prefer it.\",\n\t\t\"A pipe, an ale, and the smell of the sea: paradise.\",\n\t\t\"I have an endless supply of cautionary tales related to the sea.\",\n\t\t\"I don't mind getting my hands dirty.\"\n\t],\n\tideal : [\n\t\t[\"Crew\", \"Crew. If everyone on deck pitches in, we'll never sink. (Good)\"],\n\t\t[\"Careful Lines\", \"Careful Lines. A ship must be balanced according to the laws of the universe. (Lawful)\"],\n\t\t[\"Invention\", \"Invention. Make what you need out of whatever is at hand. (Chaotic)\"],\n\t\t[\"Perfection\", \"Perfection. To measure a being and find it lacking is the greatest disappointment. (Evil)\"],\n\t\t[\"Reflection\", \"Reflection. Muddied water always clears in time. (Any)\"],\n\t\t[\"Hope\", \"Hope. The horizon at sea holds the greatest promise. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I must visit all the oceans of the world and behold the ships that sail there.\",\n\t\t\"Much of the treasure I claim will be used to enrich my community.\",\n\t\t\"I must find a kind of wood rumored to possess magical qualities.\",\n\t\t\"I repair broken things to redeem what's broken in myself.\",\n\t\t\"I will craft a boat capable of sailing through the most dangerous of storms.\",\n\t\t\"A kraken destroyed my masterpiece; its teeth shall adorn my hearth.\"\n\t],\n\tflaw : [\n\t\t\"I don't know when to throw something away. You never know when it might be useful again.\",\n\t\t\"I get frustrated to the point of distraction by shoddy craftsmanship.\",\n\t\t\"Though I am an excellent crafter, my work tends to look as though it belongs on a ship.\",\n\t\t\"I am so obsessed with sketching my ideas for elaborate inventions that I sometimes forget little thing like eating and sleeping.\",\n\t\t\"I'm judgmental of those who are not skilled with tools of some kind.\",\n\t\t\"I sometimes take things that don't belong to me, especially if they are very well made.\"\n\t],\n\textra : [\n\t\t\"Select a Sea's Influence\",\n\t\t\"Grand designs\",\n\t\t\"Solid and sound\",\n\t\t\"Favored\",\n\t\t\"Master of armaments\",\n\t\t\"Low places\",\n\t\t\"Mysteries of the deep\"\n\t]\n};\nBackgroundFeatureList[\"i'll patch it!\"] = {\n\tdescription : \"Provided I have carpenter's tools and wood, I can perform repairs on a water vehicle. When I use this ability, I restore a number of hit points to the hull of a water vehicle equal to 5\\xD7 my proficiency modifier. A vehicle cannot be patched by me in this way again until after it has been pulled ashore and fully repaired.\",\n\tsource : [[\"GoS\", 33], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"smuggler\"] = {\n\tregExpSearch : /smuggler/i,\n\tname : \"Smuggler\",\n\tsource : [[\"GoS\", 34], [\"ALbackground\", 0]],\n\tskills : [\"Athletics\", \"Deception\"],\n\tgold : 15,\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Leather boots or vest\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Vehicles (water)\"],\n\tfeature : \"Down Low\",\n\ttrait : [\n\t\t\"I love being on the water but hate fishing.\",\n\t\t\"I think of everything in terms of monetary value.\",\n\t\t\"I never stop smiling.\",\n\t\t\"Nothing rattles me; I have a lie for every occasion.\",\n\t\t\"I love gold but won't cheat a friend.\",\n\t\t\"I enjoy doing things others believe to be impossible.\",\n\t\t\"I become wistful when I see the sun rise over the ocean.\",\n\t\t\"I am no common criminal; I am a mastermind.\"\n\t],\n\tideal : [\n\t\t[\"Wealth\", \"Wealth. Heaps of coins in a secure vault is all I dream of. (Any)\"],\n\t\t[\"Smuggler's Code\", \"Smuggler's Code. I uphold the unwritten rules of the smugglers, who do not cheat one another or directly harm innocents. (Lawful)\"],\n\t\t[\"All for a Coin\", \"All for a Coin. I'll do nearly anything if it means I turn a profit. (Evil)\"],\n\t\t[\"Peace and Prosperity\", \"Peace and Prosperity. I smuggle only to achieve a greater goal that benefits my community. (Good)\"],\n\t\t[\"People\", \"People. For all my many lies, I place a high value on friendship. (Any)\"],\n\t\t[\"Daring\", \"Daring. I am most happy when risking everything. (Any)\"]\n\t],\n\tbond : [\n\t\t\"My vessel was stolen from me, and I burn with the desire to recover it.\",\n\t\t\"I intend to become the leader of the network of smugglers that I belong to.\",\n\t\t\"I owe a debt that cannot be repaid in gold.\",\n\t\t\"After one last job, I will retire from the business.\",\n\t\t\"I was tricked by a fellow smuggler who stole something precious from me. I will find that thief.\",\n\t\t\"I give most of my profits to a charitable cause, and I don't like to brag about it.\"\n\t],\n\tflaw : [\n\t\t\"Lying is reflexive, and I sometimes engage in it without realizing.\",\n\t\t\"I tend to assess my relationships in terms of profit and loss.\",\n\t\t\"I believe everyone has a price and am cynical toward those who present themselves as virtuous.\",\n\t\t\"I struggle to trust the words of others.\",\n\t\t\"Few people know the real me.\",\n\t\t\"Though I act charming, I feel nothing for others and don't know what friendship is.\"\n\t],\n\textra : [\n\t\t\"Select a Claim to Fame\",\n\t\t\"Spirit of the whale\",\n\t\t\"Cart and sword\",\n\t\t\"The recruit\",\n\t\t\"River of shadows\",\n\t\t\"Gold-hearted\",\n\t\t\"Playing both sides\"\n\t]\n};\nBackgroundFeatureList[\"down low\"] = {\n\tdescription : \"I am acquainted with a network of smugglers who are willing to help me out of tight spots. While in a particular town, city, or other similarly sized community, my companions and I can stay for free in safe houses. Safe houses provide a poor lifestyle. While staying at a safe house, I can choose to keep my presence (and that of my companions) a secret.\",\n\tsource : [[\"GoS\", 34], [\"ALbackground\", 0]]\n};\n\nMagicItemsList[\"charm of plant command\"] = {\n\tname : \"Charm of Plant Command\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"C\",\n\tdescription : \"This fist-sized charm is made from a bundle of dried plant stems wrapped in silver thread. It has 3 charges, regain all at dawn. As an action, I can expend 1 charge to cast Speak With Plants. While that spell lasts, I also have adv. on Charisma checks made to influence the behavior, demeanor, and attitude of plants.\",\n\tdescriptionFull : \"This fist-sized charm is made from a bundle of dried plant stems wrapped in silver thread. Hung on a leather thong, it is typically worn around the neck or attached to a belt.\\n   This charm has 3 charges. While you bear the charm, you can expend 1 charge as an action to cast the Speak With Plants spell. For the duration of the spell, you also have advantage on Charisma checks made to influence the behavior, demeanor, and attitude of plants. The charm regains all expended charges at dawn each day.\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"speak with plants\"],\n\t\tselection : [\"speak with plants\"],\n\t\tfirstCol : 1\n\t}],\n\tspellChanges : {\n\t\t\"speak with plants\" : {\n\t\t\tdescription : \"Talk with plants about previous 24h; plants to difficult terrain or vice versa; adv. Cha checks vs. plants\",\n\t\t\tchanges : \"For the duration of the spell, I also have advantage on Charisma checks made to influence the behavior, demeanor, and attitude of plants.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"cursed luckstone\"] = {\n\tname : \"Cursed Luckstone\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"C\",\n\tdescription : \"This flat, gray-and-black river stone is inscribed with an arcane symbol. It is cursed and attuning to it curses me. Once per dawn while it is on my person, I can gain adv. on one ability check of my choice, but disadv. on my next two ability checks. Discarding the stone will cause it to teleport back into my pocket.\",\n\tdescriptionFull : \"This flat, gray-and-black river stone is inscribed with an unknown arcane symbol and feels cool to the touch. While carrying the stone, you can gain advantage on one ability check of your choice. The stone can't be used this way again until the next dawn.\\n   \" + toUni(\"Curse\") + \"This item is cursed. Attuning to it curses you until you are targeted by a remove curse spell or similar magic. As long as you remain cursed, you cannot discard the stone, which immediately teleports back into your pocket or pack. After you use the stone's magic, your next two ability checks are made with disadvantage.\",\n\tattunement : true,\n\tusages : 1,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"helm of underwater action\"] = {\n\tname : \"Helm of Underwater Action\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"While wearing this brass helmet, I can breathe underwater, I gain darkvision with a range of 60 ft, and I gain a swimming speed of 30 ft.\",\n\tdescriptionFull : \"While wearing this brass helmet, you can breathe underwater, you gain darkvision with a range of 60 feet, and you gain a swimming speed of 30 feet.\",\n\tattunement : true,\n\tweight : 1,\n\tvision : [[\"Darkvision\", \"fixed 60\"]],\n\tspeed : { swim : { spd : 30, enc : 20 } }\n}\nMagicItemsList[\"pipe of remembrance\"] = {\n\tname : \"Pipe of Remembrance\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Smoke exhaled from this delicate wooden pipe with a river stone bowl does not dissipate, but lingers around. Once per dawn, I can have that smoke form moving shapes after 10 minutes. The shapes reenact my most impressive and heroic achievements realistically for 5 minutes, after which the smoke dissipates.\",\n\tdescriptionFull : \"This long, delicate wooden pipe features a bowl made from smooth river stone. When the pipe is lit, smoke exhaled from it does not dissipate, instead lingering around the bearer. After 10 minutes, the smoke forms moving shapes that reenact the bearer's most impressive and heroic achievements for 5 minutes. When this realistic performance is complete, the smoke dissipates. The pipe can't be used this way again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"pressure capsule\"] = {\n\tname : \"Pressure Capsule\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Consuming this capsule of beeswax, sand, and enchanted water plants will prevent the effects of swimming at depths greater than 100 ft for 1 hour. Thus, a creature without a swimming speed does not multiply the time spend swimming at depth for the purpose of determining exhaustion.\",\n\tdescriptionFull : \"This small capsule is made of beeswax blended with sand and a variety of enchanted water plants. A creature who consumes a pressure capsule ignores the effects of swimming at depths greater than 100 feet for 1 hour (see \\\"Unusual Environments\\\" in chapter 5 of the Dungeon Master's Guide).\" // addition of 1 hour duration from AL content catalogue v8.08\n}\nMagicItemsList[\"sekolahian worshiping statuette\"] = {\n\tname : \"Sekolahian Worshiping Statuette\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Skillfully carved from sandstone, this 1-ft-tall statuette depicts a shark twisting through the water with its mouth open. Once per hour when a Tiny sea-dwelling animal is within 1 inch of the statuette's mouth, the shark flashes to life and deals 1 piercing damage to it.\",\n\tdescriptionFull : \"Skillfully carved from sandstone, this 1-foot-tall statuette depicts a shark twisting through the water with its mouth open. If any Tiny sea-dwelling animal is within 1 inch of the statuette's mouth, the shark flashes to life and deals 1 piercing damage to it. The shark can deal damage in this way no more than once per hour.\"\n}\n\n// Creatures [Sea Lion removed, because it was completely rewritten as a monstrosity according to 2020 errata https://media.wizards.com/2020/dnd/downloads/GoS-Errata.pdf ]\nCreatureList[\"fish\"] = {\n\tname : \"Fish\",\n\tsource : [[\"GoS\", 215]],\n\tsize : 5,\n\ttype : \"Beast\",\n\tcompanion : \"familiar\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 1,\n\thd : [1, 4],\n\tspeed : \"swim 40 ft\",\n\tscores : [2, 16, 9, 1, 7, 2],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 8,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The fish can breathe only underwater.\"\n\t}]\n}\nCreatureList[\"giant white moray eel\"] = {\n\tname : \"Giant White Moray Eel\",\n\tnameAlt : [\"Eel, Giant White Moray\"],\n\tsource : [[\"GoS\", 216]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 60,\n\thd : [8, 12],\n\tspeed : \"swim 40 ft\",\n\tscores : [19, 14, 12, 1, 10, 3],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 4\n\t},\n\tsenses : \"Blindsight 10 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}]\n}\nCreatureList[\"giant coral snake\"] = {\n\tname : \"Giant Coral Snake\",\n\tnameAlt : [\"Snake, Giant Coral\"],\n\tsource : [[\"GoS\", 236]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 90,\n\thd : [12, 10],\n\tspeed : \"30 ft, swim 30 ft\",\n\tscores : [12, 16, 14, 2, 10, 3],\n\tskills : {\n\t\t\"perception\" : 2\n\t},\n\tsenses : \"Blindsight 10 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [2, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Target DC 12 Con save or stunned until end of its next turn and short-term madness for 10 min\"\n\t}]\n}\nCreatureList[\"giant sea eel\"] = {\n\tname : \"Giant Sea Eel\",\n\tnameAlt : [\"Eel, Giant Sea\"],\n\tsource : [[\"GoS\", 237]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 19,\n\thd : [3, 10],\n\tspeed : \"swim 40 ft\",\n\tscores : [11, 14, 12, 2, 10, 7],\n\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 4\n\t},\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"1/2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [2, 10, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}]\n}\n\n// pub_20190618_AcqInc.js\n// This file adds all material from the Acquisitions Incorporated book to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"AcqInc\"] = {\n\tname : \"Acquisitions Incorporated\",\n\tabbreviation : \"AcqInc\",\n\tabbreviationSpellsheet : \"AI\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Penny Arcade\",\n\turl : \"https://dnd.wizards.com/products/acquisitions-incorporated\",\n\tdate : \"2019/06/18\"\n};\n\nBackgroundList[\"celebrity adventurer's scion\"] = {\n\tregExpSearch : /^(?=.*celebrity)(?=.*adventurer)(?=.*scion).*$/i,\n\tname : \"Celebrity Adventurer's Scion\",\n\tsource : [[\"AcqInc\", 48]],\n\tskills : [\"Perception\", \"Performance\"],\n\tgold : 30,\n\tequipleft : [\n\t\t[\"Disguise kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\ttoolProfs : [\"Disguise kit\"],\n\tfeature : \"Name Dropping\",\n\ttrait : [\n\t\t\"I will never get out of my famous parent's shadow, and no one else will ever understand this burden.\",\n\t\t\"I've seen enough of the adventuring life to have realistic expectations and empathy for my peers.\",\n\t\t\"Living up to my legacy will be difficult, but I'm going to do it.\",\n\t\t\"I'm used to the very best in life, and that's a hard habit to break.\",\n\t\t\"My parent taught me a sense of duty. I strive to uphold it, even when the odds are against me.\",\n\t\t\"No one can fake a smile, a handshake, or an interested nod like I can.\",\n\t\t\"I've been part of the adventuring life since I was old enough to walk. Let me explain a few things to you.\",\n\t\t\"No risk is too great for the rewards of defeating my enemies... and taking their stuff.\"\n\t],\n\tideal : [\n\t\t[\"Power\", \"Power. The only way to get ahead in this world is to attain power and hold onto it with all your might. (Evil)\"],\n\t\t[\"Peace\", \"Peace. Those who can find or make peace in the chaotic world around them have everything. (Lawful)\"],\n\t\t[\"Fame\", \"Fame. I've seen what fame can bring. And I'll do anything to get all that for myself. (Neutral)\"],\n\t\t[\"Training\", \"Training. Hard work, sacrifice, and training lead to success\\u2014and eventually to perfection. (Any)\"],\n\t\t[\"Anonymity\", \"Anonymity. I want to be successful. And alone. With lots of guards and wards between me and everyone else in the world. (Any)\"],\n\t\t[\"Wisdom\", \"Wisdom. Material wealth is an illusion. Wisdom is the real treasure. (Good)\"]\n\t],\n\tbond : [\n\t\t\"While my parent was out adventuring, a servant raised me, and I care about that person more than anyone.\",\n\t\t\"I consider every member of my parent's former adventuring party to be family.\",\n\t\t\"Despite their absences, my famous parent was kind and generous. I love them and want to make them proud.\",\n\t\t\"My parent once brought a cursed magic item home. It is my obsession.\",\n\t\t\"My childhood home holds all my best memories, and its upkeep is my primary concern.\",\n\t\t\"Growing up, I had an imaginary friend I could always count on. That friend is still with me.\"\n\t],\n\tflaw : [\n\t\t\"You don't know what I'm going through. You never can.\",\n\t\t\"You. Fetch my cloak. And maybe rub my feet for a while.\",\n\t\t\"My comrades are brave, but I must defeat this threat alone to prove my worth.\",\n\t\t\"Oh, yeah, that spell? Named after my parent's best friend. Let me tell you about them.\",\n\t\t\"My best days are behind me. Ahead lies only toil, pain, and death.\",\n\t\t\"You have to look out for yourself. No one else will.\"\n\t]\n};\nBackgroundFeatureList[\"name dropping\"] = {\n\tdescription : \"I know and have met any number of powerful people across the land, and some might even remember me. I might be able to wrangle minor assistance from a major figure in the campaign, at the DM's discretion. Additionally, the common folk treat me with deference, and my heritage and the stories I tell might be good for a free meal or a place to sleep.\",\n\tsource : [[\"AcqInc\", 48]]\n};\n\nBackgroundList[\"failed merchant\"] = {\n\tregExpSearch : /^(?=.*failed)(?=.*merchant).*$/i,\n\tname : \"Failed Merchant\",\n\tsource : [[\"AcqInc\", 49]],\n\tskills : [\"Investigation\", \"Persuasion\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Merchant's scale\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Supply Chain\",\n\ttrait : [\n\t\t\"I didn't have the cutthroat attitude necessary to succeed. I won't make that mistake again.\",\n\t\t\"Even my competitors said I was affable and talented. Those traits should serve me well.\",\n\t\t\"To prosper, you have to be in control.\",\n\t\t\"The customer is always right.\",\n\t\t\"I was cutting corners and breaking deals to maximize profit. That's why I failed.\",\n\t\t\"When I get an idea, I am single-minded in its execution\\u2014even if it's a terrible idea.\",\n\t\t\"If I can be everyone's friend, I'll always have support.\",\n\t\t\"My heart wasn't in being a merchant, so I failed. I'm not all that keen on adventuring either, but I need the money.\"\n\t],\n\tideal : [\n\t\t[\"Survival\", \"Survival. Where there's life, there's hope. If I remain alive and flexible, I can succeed. (Any)\"],\n\t\t[\"Generosity\", \"Generosity. People helped me when I was down. Now that I'm back on my feet, I'll pay it forward. (Good)\"],\n\t\t[\"Excitement\", \"Excitement. Caution got me nowhere in my previous business. I'm not going to let it hold me back now. (Chaotic)\"],\n\t\t[\"Wealth\", \"Wealth. With enough coin, I can buy comfort, power, knowledge, and even eternal life. Nothing will stand between me and money. (Evil)\"],\n\t\t[\"Stability\", \"Stability. The mercantile trade was too chaotic for me. I need a nice stable profession, like adventuring. (Lawful)\"],\n\t\t[\"Redemption\", \"Redemption. Too many people consider me a failure. So I need to prove them wrong. (Any)\"]\n\t],\n\tbond : [\n\t\t\"My family means everything to me. I failed them before, and I must not do so again.\",\n\t\t\"My church provides a connection to my god, so I must ensure that it is protected and funded.\",\n\t\t\"My former business partner fell ill, and then our business failed. Part of my new venture involves earning enough to take care of their family.\",\n\t\t\"If I take care of my possessions, they'll take care of me. People come and go, but a weapon or a wand is something you can always rely on.\",\n\t\t\"Although my business failed, the people of my community were kind to me. I'll do everything in my power to protect them.\",\n\t\t\"I owe a dangerous person a lot of money. As long as they're happy, they let my debt rest unpaid.\"\n\t],\n\tflaw : [\n\t\t\"Why spend gold here when you can buy the same thing for copper in the next town?\",\n\t\t\"I must have the best of everything. Like, right now.\",\n\t\t\"You haven't heard of me? I'm sure that's because of your ignorance and low breeding.\",\n\t\t\"I failed, but I'm awesome. So when anyone else is successful, it must be because of nepotism, dishonesty, or dumb luck.\",\n\t\t\"I find that most people are trustworthy. Hey, where's my belt pouch?\",\n\t\t\"Nothing gets between me and danger except my fellow adventurers. So I'll be sure to put them there.\"\n\t]\n};\nBackgroundFeatureList[\"supply chain\"] = {\n\tdescription : \"From my time as a merchant, I retain connections with wholesalers, suppliers, and other merchants and entrepreneurs. I can call upon these connections when looking for items or information.\",\n\tsource : [[\"AcqInc\", 49]]\n};\n\nBackgroundList[\"gambler\"] = {\n\tregExpSearch : /gambler/i,\n\tname : \"Gambler\",\n\tsource : [[\"AcqInc\", 49]],\n\tskills : [\"Deception\", \"Insight\"],\n\tgold : 15,\n\tequipleft : [\n\t\t[\"Type of gaming set\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Lucky charm\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tfeature : \"Never Tell Me the Odds\",\n\ttrait : [\n\t\t\"I plan for every contingency. Leave nothing to chance!\",\n\t\t\"Every copper wants to be a silver. Each bet is an opportunity.\",\n\t\t\"I'm one of Lady Luck's favored. Anything I try is destined to succeed.\",\n\t\t\"I've lost so much to gambling that I refuse to spend money on anything anymore.\",\n\t\t\"Nothing is certain. Planning is a coward's act.\",\n\t\t\"I can't be sure who I've swindled, cheated, or defeated, so I keep a low profile in public.\",\n\t\t\"The perfect bet is out there somewhere. I just have to keep my eyes open.\",\n\t\t\"I have beaten my addiction, but all it takes is one weak moment and I'll be back at the card table.\"\n\t],\n\tideal : [\n\t\t[\"Knowledge\", \"Knowledge. Knowledge is power, and knowing which horse to back is the key to success. (Any)\"],\n\t\t[\"Fate\", \"Fate. Whatever happens is fated, regardless of any planning or striving. (Lawful)\"],\n\t\t[\"Bravery\", \"Bravery. If you want to succeed, you have to take risks. (Chaotic)\"],\n\t\t[\"Survival\", \"Survival. You can't win if you're dead. Live to fight another day\\u2014when the odds might be more in your favor. (Any)\"],\n\t\t[\"Reliability\", \"Reliability. When I was in need, I was able to rely on others. Now I want to be the one others rely on. (Good)\"],\n\t\t[\"Victory\", \"Victory. Winning is the real measure of a person. In the end, the only thing that matters is the scoreboard. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"One person in particular owes me a lot of money, and I need to keep them alive if I want to be repaid.\",\n\t\t\"I'm loyal to the friend or family member who taught me how to gamble.\",\n\t\t\"The person who saved me from my gambling addiction is the only reason I'm alive today.\",\n\t\t\"A patron once fronted me money in exchange for a percentage of my winnings. I owe them a debt of gratitude. And a lot of cash.\",\n\t\t\"A criminal syndicate I once played for isn't happy I left the game, and its enforcers are looking for me.\",\n\t\t\"Urchins once helped me find marks for my games. Now I'm driven to help them escape the streets.\"\n\t],\n\tflaw : [\n\t\t\"I don't know when to quit. Especially when everyone else is telling me to.\",\n\t\t\"I save my sympathy for my friends, and I have no friends.\",\n\t\t\"You think we're in trouble now? Let me tell you how bad things are likely to get!\",\n\t\t\"You can loan me a little, right? I've got a sure thing. I'll double your money, guaranteed.\",\n\t\t\"I was once a terribly flawed person, like you. Let me tell you how you can save yourself.\",\n\t\t\"I'm a great gambler. I'm just bad at math and logic.\"\n\t]\n};\nBackgroundFeatureList[\"never tell me the odds\"] = {\n\tdescription : \"Odds and probability are my bread and butter. During downtime activities that involve games of chance or figuring odds on the best plan, I can get a solid sense of which choice is likely the best one and which opportunities seem too good to be true, at the DM's determination.\",\n\tsource : [[\"AcqInc\", 50]]\n};\n\nBackgroundList[\"plaintiff\"] = {\n\tregExpSearch : /plaintiff/i,\n\tname : \"Plaintiff\",\n\tsource : [[\"AcqInc\", 50]],\n\tskills : [\"Medicine\", \"Persuasion\"],\n\tgold : 20,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Legalese\",\n\ttrait : [\n\t\t\"I can't believe I have a chance to join Acquisitions Incorporated! The fun I'm going to have!\",\n\t\t\"I've been wronged my entire life, and the world owes me.\",\n\t\t\"I have always tried to make the best of a bad situation.\",\n\t\t\"The law doesn't protect the honest and the hard working. I'm going to do whatever needs to be done to make things right.\",\n\t\t\"I'm always in the wrong place at the wrong time.\",\n\t\t\"My superiors are smarter and wiser than I am. I do what I'm told.\",\n\t\t\"Never pass up the opportunity to make an easy bit of coin. That's my motto.\",\n\t\t\"I'm beginning to feel like the gods are not on my side.\"\n\t],\n\tideal : [\n\t\t[\"Justice\", \"Justice. Those who break the law need to answer for their crimes. (Lawful)\"],\n\t\t[\"Freedom\", \"Freedom. People must have the freedom to do what they want and pursue their dreams. (Chaotic)\"],\n\t\t[\"Greed\", \"Greed. Everyone I see is getting theirs, so I'm surely going to get mine. (Evil)\"],\n\t\t[\"Chaos\", \"Chaos. You're out of order! And you're out of order! This whole realm is out of order! (Chaotic)\"],\n\t\t[\"Humility\", \"Humility. I'm just a small part of a larger whole. So is everyone else. (Neutral)\"],\n\t\t[\"Responsibility\", \"Responsibility. We all have our roles to play. I'll hold up my end of the bargain. (Any)\"]\n\t],\n\tbond : [\n\t\t\"Others hurt in the same accident that hurt me are my new family. I'll make sure they're taken care of.\",\n\t\t\"The rulers of this place were kind to me, and they have my lifelong devotion.\",\n\t\t\"My parents worry about me, but I'll make them proud.\",\n\t\t\"The only bond that matters is the one holding my money pouch to my belt.\",\n\t\t\"The other new hires at Acquisitions Incorporated are my allies. We have each other's backs.\",\n\t\t\"My legal counsel is my best friend. I owe all my forthcoming opportunities to their hard work.\"\n\t],\n\tflaw : [\n\t\t\"The person who gains the most reward for the least effort wins.\",\n\t\t\"Three magic beans for just one cow? What a deal!\",\n\t\t\"I have only one vice, but it controls my life.\",\n\t\t\"Sleep is for the weak. We need to keep training more if we're going to be ready for the challenges ahead.\",\n\t\t\"Until my songs are sung in every tavern in this realm, I won't be satisfied.\",\n\t\t\"If people find me unpleasant, that's their problem.\"\n\t]\n};\nBackgroundFeatureList[\"legalese\"] = {\n\tdescription : \"My experience with the local legal system has given me a firm knowledge of its ins and outs. Even when the law is not on my side, I can use complex terms like \\\"ex injuria jus non oritur\\\" to frighten people into thinking I know what I'm talking about. I might be able to intimidate or deceive folks who don't know any better to get favors or special treatment.\",\n\tsource : [[\"AcqInc\", 50]]\n};\n\nBackgroundList[\"rival intern\"] = {\n\tregExpSearch : /^(?=.*rival)(?=.*intern).*$/i,\n\tname : \"Rival Intern\",\n\tsource : [[\"AcqInc\", 51]],\n\tskills : [\"History\", \"Investigation\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Ledger from prev. employer\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Inside Informant\",\n\ttrait : [\n\t\t\"My previous employer didn't respect me, and now I'll do whatever I can to gain respect.\",\n\t\t\"The job is important, but the relationships I forge with my coworkers are even more so.\",\n\t\t\"The job is everything to me. Who needs relaxation, hobbies, and a social life?\",\n\t\t\"I know I'm not the best and brightest, but if I put my best self forward, I can overcome anything.\",\n\t\t\"My former boss was an idiot. So was my boss before that. And before that. I'm sure those were all coincidences.\",\n\t\t\"This company is so much better than my previous one. It will always be the best until they stop paying me.\",\n\t\t\"I know this dagger belongs to the company, but I'm sure they won't miss it. Or this flask. Or this armor.\",\n\t\t\"It's only a matter of time before I'll be upper management. I just have to kiss up to my superiors and kick down those beneath me.\"\n\t],\n\tideal : [\n\t\t[\"Advancement\", \"Advancement. Money and power can be gained more easily within an organization. I plan to gain as much as possible. (Evil)\"],\n\t\t[\"Structure\", \"Structure. Life goes much more smoothly when you follow the rules and work within a system. (Lawful)\"],\n\t\t[\"Uncertainty\", \"Uncertainty. The more chaos that swirls around me, the more opportunities I can find to profit. (Chaotic)\"],\n\t\t[\"Justice\", \"Justice. I can't stand people being treated unjustly. I do whatever it takes to stop injustice and those who flout the law. (Lawful)\"],\n\t\t[\"Pleasure\", \"Pleasure. What's the use of working hard and making money if you can't enjoy the finer things in life? (Any)\"],\n\t\t[\"Power\", \"Power. Money is fine, but real power means never having to say you're sorry. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I have a family member in need. I consider them in everything I do.\",\n\t\t\"My peers keep me grounded.\",\n\t\t\"My past mistakes cost someone else dearly. I have to rectify that.\",\n\t\t\"A childhood mentor put me on my current path. If I succeed, I want to repay that mentor in some way.\",\n\t\t\"I value an oath of loyalty I took to a group of friends over everything else in my life.\",\n\t\t\"Although I don't get along well with people, my pet means the world to me.\"\n\t],\n\tflaw : [\n\t\t\"I know what's best. Trust me.\",\n\t\t\"Flaw? I have no flaws. I'm perfect.\",\n\t\t\"My loyalties are... fluid.\",\n\t\t\"If anything goes wrong, it must be someone else's fault. Let me explain that in detail.\",\n\t\t\"There's right and there's wrong, and there's no gray area in between.\",\n\t\t\"Our superiors might not like what you're doing. I'm going to have to put that in my report.\"\n\t]\n};\nBackgroundFeatureList[\"inside informant\"] = {\n\tdescription : \"I have connections to my previous employer or other groups I dealt with during my previous employment. I can communicate with my contacts, gaining information at the DM's discretion.\",\n\tsource : [[\"AcqInc\", 51]]\n};\n\nRaceList[\"verdan\"] = {\n\tregExpSearch : /verdan/i,\n\tname : \"Verdan\",\n\tsource : [[\"AcqInc\", 74]],\n\tplural : \"Verdan\",\n\tsize : 4, // small at 1st level, but medium from level 5+\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Goblin\", 1],\n\tskills : [\"Persuasion\"],\n\tsavetxt : { text : [\"Adv. on Wis/Cha saves\"] },\n\tage : \" reach adulthood at around the age of 24, and it is thought that they might live to nearly 200 years old. However, because no verdan has died of old age since the race's initial creation, their upper age limits remain subject to speculation.\",\n\theight : \" are between 3 and a half and 4 feet tall, plus 2 feet from 5th level onwards\",\n\theightMetric : \" are between 100 and 120 cm tall, plus 60 cm from 5th level onwards\",\n\tscores : [0, 0, 1, 0, 0, 2],\n\ttrait : \"Verdan (+1 Constitution, +2 Charisma)\\nSudden Growth Spurt: At 5th level, I grow 2 ft, increasing my size from Small to Medium.\\nBlack Blood Healing: When I roll a 1 or 2 on any HD I spend at the end of short rest, I can reroll the die and must use the new roll.\\nLimited Telepathy: I can telepathically communicate simple ideas and straightforward concepts to a creature I can see within 30 ft, if it can understand at least one language.\\nTelepathic Insight: I have advantage on Wisdom and Charisma saving throws.\",\n\tfeatures : {\n\t\t\"sudden growth spurt\" : {\n\t\t\tname : \"Sudden Growth Spurt\",\n\t\t\tminlevel : 5,\n\t\t\teval : function () { PickDropdown(\"Size Category\", 3); },\n\t\t\tremoveeval : function () { PickDropdown(\"Size Category\", 4); }\n\t\t}\n\t},\n\tadvantages : [\n\t\t[\"Wisdom\", true],\n\t\t[\"Charisma\", true]\n\t]\n}\n\nSpellsList[\"distort value\"] = {\n\tname : \"Distort Value\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"AcqInc\", 75]],\n\tlevel : 1,\n\tschool : \"Illus\",\n\ttime : \"1 min\",\n\trange : \"Touch\",\n\tcomponents : \"V\",\n\tduration : \"8 hours\",\n\tdescription : \"1 obj up to 1+1/SL cu ft doubles/halves in perceived value; Investigation vs. spell DC to see true value\",\n\tdescriptionFull : \"Do you need to squeeze a few more gold pieces out of a merchant as you try to sell that weird octopus statue you liberated from the chaos temple? Do you need to downplay the worth of some magical assets when the tax collector stops by? Distort value has you covered.\\n   You cast this spell on an object no more than 1 foot on a side, doubling the object's perceived value by adding illusory flourishes or polish to it, or reducing its perceived value by half with the help of illusory scratches, dents, and other unsightly features. Anyone examining the object can ascertain its true value with a successful Intelligence (Investigation) check against your spell save DC.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the maximum size of the object increases by 1 foot for each slot level above 1st.\"\n};\nSpellsList[\"fast friends\"] = {\n\tname : \"Fast Friends\",\n\tclasses : [\"bard\", \"cleric\", \"wizard\"],\n\tsource : [[\"AcqInc\", 75]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V\",\n\tduration : \"Conc, 1 h\",\n\tsave : \"Wis\",\n\tdescription : \"1+1/SL humanoid save or charmed and perform tasks I ask it to do; adv. save if me/ally is fighting it\",\n\tdescriptionFull : \"When you need to make sure something gets done, you can't rely on vague promises, sworn oaths, or binding contracts of employment. When you cast this spell, choose one humanoid within range that can see and hear you, and that can understand you. The creature must succeed on a Wisdom saving throw or become charmed by you for the duration. While the creature is charmed in this way, it undertakes to perform any services or activities you ask of it in a friendly manner, to the best of its ability.\\n   You can set the creature new tasks when a previous task is completed, or if you decide to end its current task. If the service or activity might cause harm to the creature, or if it conflicts with the creature's normal activities and desires, the creature can make another Wisdom saving throw to try to end the effect. This save is made with advantage if you or your companions are fighting the creature. If the activity would result in certain death for the creature, the spell ends.\\n   When the spell ends, the creature knows it was charmed by you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional creature for each slot level above 3rd.\"\n};\nSpellsList[\"gift of gab\"] = {\n\tname : \"Gift of Gab\",\n\tclasses : [\"bard\", \"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 2,\n\tschool : \"Ench\",\n\ttime : \"1 rea\",\n\ttimeFull : \"1 reaction, which you take when you speak to another creature\",\n\trange : \"Self\",\n\tcomponents : \"V,S,R\\u2020\",\n\tcompMaterial : \"2 gp royalty component\",\n\tduration : \"Instantaneous\",\n\tdescription : \"Cast when talking, any crea within 5 ft think what I said in the last 6 seconds was only to cast a spell\",\n\tdescriptionFull : \"Jim Darkmagic is said to have invented this spell, originally calling it 'I said what?!'. Have you ever been talking to the local monarch and accidentally mentioned how their son looks like your favorite hog from when you were growing up on the family farm? We've all been there! But rather than being beheaded for an honest slip of the tongue, you can pretend it never happened\\u2014by ensuring that no one knows it happened.\\n   When you cast this spell, you skillfully reshape the memories of listeners in your immediate area, so that each creature of your choice within 5 feet of you forgets everything you said within the last 6 seconds. Those creatures then remember that you actually said the words you speak as the verbal component of the spell.\"\n};\nSpellsList[\"incite greed\"] = {\n\tname : \"Incite Greed\",\n\tclasses : [\"cleric\", \"warlock\", \"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A gem worth at least 50 gp\",\n\tduration : \"Conc, 1 min\",\n\tsave : \"Wis\",\n\tdescription : \"Any crea that see me save or charmed, only move to me, if in 5 ft do nothing; save end of each turn\",\n\tdescriptionFull : \"When you cast this spell, you present the gem used as the material component and choose any number of creatures within range that can see you. Each target must succeed on a Wisdom saving throw or be charmed by you until the spell ends, or until you or your companions do anything harmful to it. While charmed in this way, a creature can do nothing but use its movement to approach you in a safe manner. While an affected creature is within 5 feet of you, it cannot move, but simply stares greedily at the gem you present.\\n   At the end of each of its turns, an affected target can make a Wisdom saving throw. If it succeeds, this effect ends for that target.\"\n};\nSpellsList[\"jim's glowing coin\"] = {\n\tname : \"Jim's Glowing Coin\",\n\tclasses : [\"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 2,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,M,R\\u2020\",\n\tcompMaterial : \"A coin, and 2 gp royalty component\",\n\tduration : \"1 min\",\n\tsave : \"Wis\",\n\tdescription : \"30-ft radius any creature I can see save or disadvantage on Perception and Initiative for duration\",\n\tdescriptionFull : \"Of the many tactics employed by master magician and renowned adventurer Jim Darkmagic, the old glowing coin trick is a time-honored classic. When you cast the spell, you hurl the coin that is the spell's material component to any spot within range. The coin lights up as if under the effect of a light spell. Each creature of your choice that you can see within 30 feet of the coin must succeed on a Wisdom saving throw or be distracted for the duration. While distracted, a creature has disadvantage on Wisdom (Perception) checks and initiative rolls.\"\n};\nSpellsList[\"jim's magic missile\"] = {\n\tname : \"Jim's Magic Missile\",\n\tclasses : [\"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 1,\n\tschool : \"Evoc\",\n\ttime : \"1 a\",\n\trange : \"120 ft\",\n\tcomponents : \"V,S,R\\u2020\",\n\tcompMaterial : \"1 gp royalty component per spell slot level used\",\n\tduration : \"Instantaneous\",\n\tdescription : \"3+1/SL darts, each spell atk for 2d4 Force dmg, 5d4 crit; any 1 to hit, all dmg me 1 (1+1/SL gp cons.)\",\n\tdescriptionShorter : \"3+1/SL darts, atk 2d4 Force dmg, 5d4 crit; any 1 to hit, all dmg me 1 (1+1/SL gp cons.)\",\n\tdescriptionFull : \"Any apprentice wizard can cast a boring old magic missile. Sure, it always strikes its target. Yawn. Do away with the drudgery of your grandfather's magic with this improved version of the spell, as used by Jim Darkmagic!\\n   You create three twisting, whistling, hypoallergenic, gluten-free darts of magical force. Each dart targets a creature of your choice that you can see within range. Make a ranged spell attack for each missile. On a hit, a missile deals 2d4 force damage to its target.\\n   If the attack roll scores a critical hit, the target of that missile takes 5d4 force damage instead of you rolling damage twice for a critical hit. If the attack roll for any missile is a 1, all missiles miss their targets and blow up in your face, dealing 1 force damage per missile to you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the spell creates one more dart, and the royalty component increases by 1 gp, for each slot level above 1st.\",\n\tdynamicDamageBonus : {\n\t\tmultipleDmgMoments : true,\n\t\textraDmgGroupsSameType : /((?:\\+?\\d+d?\\d*)+)( crit)/i\n\t}\n};\nSpellsList[\"motivational speech\"] = {\n\tname : \"Motivational Speech\",\n\tclasses : [\"bard\", \"cleric\"],\n\tsource : [[\"AcqInc\", 77]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 min\",\n\trange : \"60 ft\",\n\tcomponents : \"V\",\n\tduration : \"1 h\",\n\tdescription : \"5 crea that hear me 5+5/SL temp HP, adv. Wis saves, if hit adv. on next atk; stops when temp HP gone\",\n\tdescriptionFull : \"You address allies, staff, or innocent bystanders to exhort and inspire them to greatness, whether they have anything to get excited about or not. Choose up to five creatures within range that can hear you. For the duration, each affected creature gains 5 temporary hit points and has advantage on Wisdom saving throws. If an affected creature is hit by an attack, it has advantage on the next attack roll it makes. Once an affected creature loses the temporary hit points granted by this spell, the spell ends for that creature.\" + AtHigherLevels + \"At Higher Levels. When you cast this spell using a spell slot of 4th level or higher, the temporary hit points increase by 5 for each slot level above 3rd.\"\n};\n\n// Magic Item from the adventure\nMagicItemsList[\"piercer\"] = {\n\tname : \"Piercer\",\n\tsource : [[\"AcqInc\", 121]],\n\ttype : \"weapon (shortsword)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magical shortsword. I regain the maximum possible number of hit points from expended Hit Dice. However, I must eat twice as much food each day to avoid exhaustion, a minimum of 2 lb.\",\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon.\\n   A character attuned to the sword regains the maximum possible number of hit points from expended Hit Dice. However, the attuned character must eat twice as much food each day (a minimum of 2 pounds) to avoid exhaustion (see \\\"The Environment\\\" in chapter 8 of the Player's Handbook.)\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"shortsword\",\n\t\tregExpSearch : /piercer/i,\n\t\tname : \"Piercer\",\n\t\tsource : [[\"AcqInc\", 121]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\n\n// pub_20190917_DiA.js\n// This file adds all material from the Baldur's Gate: Descent into Avernus adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"DiA\"] = {\n\tname : \"Baldur's Gate: Descent into Avernus [background, items]\",\n\tabbreviation : \"DiA\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dnd.wizards.com/products/baldurs-gate-descent-into-avernus\",\n\tdate : \"2019/09/17\"\n};\n\nBackgroundList[\"faceless\"] = {\n\tregExpSearch : /faceless/i,\n\tname : \"Faceless\",\n\tsource : [[\"DiA\", 203]],\n\tskills : [\"Deception\", \"Intimidation\"],\n\tgold : 10,\n\tlanguageProfs : [1],\n\ttoolProfs : [\"Disguise kit\"],\n\tequipleft : [\n\t\t[\"Disguise kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Costume\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Dual Personalities\",\n\ttrait : [\n\t\t\"I'm earnest and uncommonly direct.\",\n\t\t\"I strive to have no personality\\u2014it's easier to forget what's hardly there.\",\n\t\t\"I treasure a memento of the person or instance that set me upon my path.\",\n\t\t\"I sleep just as much as I need to and on an unusual schedule.\",\n\t\t\"I think far ahead, a detachedness often mistaken for daydreaming.\",\n\t\t\"I cultivate a single obscure hobby or study and eagerly discuss it at length.\",\n\t\t\"I am ever learning how to be among others\\u2014when to stay quiet, when to laugh.\",\n\t\t\"I behave like an extreme opposite of my persona.\"\n\t],\n\tideal : [\n\t\t[\"Justice\",\n\t\t\t\"Justice. Place in society shouldn't determine one's access to what is right. (Good)\"\n\t\t],\n\t\t[\"Security\",\n\t\t\t\"Security. Doing what must be done can't bring the innocent to harm. (Lawful)\"\n\t\t],\n\t\t[\"Confusion\",\n\t\t\t\"Confusion. Deception is a weapon. Strike from where your foes won't expect. (Chaotic)\"\n\t\t],\n\t\t[\"Infamy\",\n\t\t\t\"Infamy. My name will be a malediction, a curse that fulfills my will. (Evil)\"\n\t\t],\n\t\t[\"Incorruptibility\",\n\t\t\t\"Incorruptibility. Be a symbol, and leave your flawed being behind. (Any)\"\n\t\t],\n\t\t[\"Anonymity\",\n\t\t\t\"Anonymity. It's my deeds that should be remembered, not their instrument. (Any)\"\n\t\t]\n\t],\n\tbond : [\n\t\t\"I do everything for my family. My first thought is keeping them safe.\",\n\t\t\"What I do, I do for the world. The people don't realize how much they need me.\",\n\t\t\"I've seen too many in need. I must not fail them as everyone else has.\",\n\t\t\"I stand in opposition, lest the wicked go unopposed.\",\n\t\t\"I am exceptional. I do this because no one else can, and no one can stop me.\",\n\t\t\"I do everything for those who were taken from me.\"\n\t],\n\tflaw : [\n\t\t\"I am callous about death. It comes to us all eventually.\",\n\t\t\"I never make eye contact or hold it unflinchingly.\",\n\t\t\"I have no sense of humor. Laughing is uncomfortable and embarrassing.\",\n\t\t\"I overexert myself, sometimes needing to recuperate for a day or more.\",\n\t\t\"I think far ahead, a detachedness often mistaken for daydreaming.\",\n\t\t\"I see morality entirely in black and white.\"\n\t],\n\textra : [\n\t\t\"Select a Faceless Persona\",\n\t\t\"Flamboyant spy or brigand\",\n\t\t\"Incarnation of nation or people\",\n\t\t\"Scoundrel with masked guise\",\n\t\t\"Vengeful spirit\",\n\t\t\"Manifestation of deity or faith\",\n\t\t\"Beauty accented with makeup\",\n\t\t\"Impersonation of another hero\",\n\t\t\"Embodiment of a school of magic\",\n\t\t\"Warrior with distinctive armor\",\n\t\t\"Fear-inspiring monstrous disguise\"\n\t]\n};\nBackgroundFeatureList[\"religious community\"] = {\n\tdescription : \"I'm tightly connected with the religious community of the city. I know if a deity has a following in the city, any places that faith openly congregates, and the neighborhoods those faithful typically inhabit. While this isn't remarkable for most of the city's larger faiths, keeping track of the hundreds of religions newcomers bring with them is no mean feat.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"long-lost heir\"] = {\n\tdescription : \"I can pose as the long-lost heir to some imaginary or dead lineage. I'm well-versed in the mannerisms and idiosyncrasies of nobility, imitating them smoothly enough to convince anybody of my authenticity. However, any true test is likely to reveal my deception. I can enter places that only nobility can and might be able to bluff other through with me.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"criminal connections\"] = {\n\tdescription : \"In a big city, crime is just another business. As a result, I can arrange a meeting with a low-ranking operative of nearly any business, noble family, crew, government institution, or guild. This operative will hear me out and, at their discretion, take my information or request up their chain of command. These meetings almost always occur in shady venues.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"backstage pass\"] = {\n\tdescription : \"I know that most of the real business, in entertainment or otherwise, happens behind the scenes. It's easy for me to case what sorts of audiences attend a venue. After a successful performance, I may meet an enthusiastic member of the crowd\\u2014someone of an occupation or social class that frequents the venue, who is delighted to talk with me, and to listen.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"dual personalities\"] = {\n\tdescription : \"The world knows me as my persona and those who seek to learn more about me find themselves stymied by my disguise. I'm unidentifiable as my true self while disguised and behaving as my persona, allowing me to change appearances between my two personalities as I wish. My deception might lose its effectiveness if someone realize the connection.\",\n\tsource : [[\"DiA\", 204], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"social vengeance\"] = {\n\tdescription : \"I've lived my whole life amongst the lower class of the city, seeing the upper class flaunt their wealth while my hardworking neighbors struggled. I know their eagerness to give the wealthy their comeuppance. I can convince 1d6 commoners in a busy area in 2d10 min\" + (typePF ? \"utes\" : \"\") + \" to perform a non-illegal act that inconveniences a guard, noble, or wealthy looking individual.\",\n\tsource : [[\"DiA\", 204], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"professional courtesy\"] = {\n\tdescription : \"I conduct my business in one of the city's districts and I'm familiar with its local crews, their territories, and inter-crew politics. When I need information about something in my district, I can learn the local gossip from crew members. Within my district, I can gain entry to nearly any bank, guild hall, place of business, workhouse, or crew meeting place.\",\n\tsource : [[\"DiA\", 205], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"the real city\"] = {\n\tdescription : \"I know the city that most of its inhabitants ignore, the dog-eat-dog world of the homeless and unfortunate. I know where to go for anonymity. In these slums and alley camps, I can get a damp bed and a bad meal, but also a degree of privacy and no questions asked. Living here isn't comfortable, but it's unlikely any will find me\\u2014and I can stay as long as I want.\",\n\tsource : [[\"DiA\", 205], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"patriar\"] = {\n\tdescription : \"As a member of an elite family of the city, I may pass through without paying tolls, enter the better part of town and stay there after dark, mingle among the nobility unquestioned, and impress those looking for wealthy patrons. My word is accepted over others' without question, and any corruption among guards or officials tends to work in my favor.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"immigrant experience\"] = {\n\tdescription : \"Even after my short time in the city, I've learned it holds more walls and gates than those the guards patrol. I'm known within the city's immigrant communities. Should I ever need to learn about a foreign land, people, tradition, or history, I know where to find someone with firsthand experience\\u2014likely somewhere in the poorer part of town.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"rumor monger\"] = {\n\tdescription : \"Via my personal rumor mill and published articles, I can surmise a great deal about the secrets of the city's inhabitants\\u2014necromancy, spying, smuggling, dealing in magical wares. Whenever a noteworthy crime or happening occurs in the city, I immediately have a list of 1d4 suspects who, if they aren't involved, have a strong chance of knowing who is.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"smuggler's sense\"] = {\n\tdescription : \"I'm familiar with the docks of the city, the movement of inspectors and tax collectors, the way cargo and coin flows, the movements of the harbor guards, and how to operate the port's machinery for moving wares. As a result, it's easy for me to hustle a load of cargo ashore or see such a cargo onto a cooperative ship without attracting suspicion or taxation.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"city guard: lower city (the flaming fists)\"] = {\n\tdescription : \"I'm required to take a regular shift patrolling the lower or outer city and I must report for training once every ten days. In return, I have access to the guard's fortresses and a direct line of communication with officers and other soldiers. I can also pass through the city's gates and go to the upper city without question, but can't bring guests to the upper city.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"city guard: upper city (the watch)\"] = {\n\tdescription : \"I'm required to take a regular shift patrolling the upper city or its gates and I must report for training once every ten days. In return, I have access to the citadel and a direct line of communication with officers and officials. My word carries considerable weight. I can escort people into the upper city unimpeded, but I'm regarded with suspicion in the lower city.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"loyalty test\"] = {\n\tdescription : \"I can spot the behaviors common to corrupt guards and military officers a mile away. While this doesn't equate to evidence, and my sense isn't foolproof, my instinct proves a starting point to determine who might take a bribe, who might turn a blind eye to a crime, who might have criminal connections, or who might fulfill their duties strictly by the book.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"gateguide connection\"] = {\n\tdescription : \"I've associated with enough of the Gateguides crew that I know their torch-based code. From the lighting, placement, and type of torch arranged on or near a structure, I can gather information about those who live or do business there\\u2014if they deal fairly with strangers, have guild or government connections, or their standing with the Gateguides.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\n\n// Creatures\n// Peacock is just a vulture under a different name, it has been added to the SRD code as a `nameAlt`\nCreatureList[\"abyssal chicken\"] = {\n\tname : \"Abyssal Chicken\",\n\tnameAlt : [\"Chicken, Abyssal\"],\n\tsource : [[\"DiA\", 97]],\n\tsize : 5,\n\ttype : \"Fiend\",\n\tsubtype : \"demon\",\n\tcompanion : \"familiar_not_al\",\n\talignment : \"Chaotic Evil\",\n\tac : 13,\n\thp : 10,\n\thd : [3, 4],\n\tspeed : \"30 ft, fly 30 ft\",\n\tscores : [6, 14, 13, 4, 9, 5],\n\tdamage_resistances : \"cold, fire, lightning\",\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"blinded, poisoned\",\n\tsenses : \"Blindsight 30 ft (blind beyond this radius)\",\n\tpassivePerception : 9,\n\tlanguages : \"understands Abyssal but can't speak\",\n\tchallengeRating : \"1/4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One bite and one claws attack as an Attack action\"\n\t}, {\n\t\tname : \"Claws\",\n\t\tability : 2,\n\t\tdamage : [1, 6, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One claws and one bite attack as an Attack action\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the chicken can make one Bite and one Claws attack.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Bad Flier\",\n\t\tdescription : \"The chicken falls at the end of a turn if it's airborne and the only thing holding it aloft is its flying speed.\"\n\t}]\n}\n\nMagicItemsList[\"candle mace\"] = { // contributed by Nod_Hero\n\tname : \"Candle Mace\",\n\tsource : [[\"DiA\", 39]],\n\ttype : \"weapon (mace)\",\n\trarity : \"uncommon\",\n\tdescription : \"This mace adds a +1 bonus to attack and damage rolls made with it. The head of this mace sheds bright light in a 5-ft radius and dim light for an additional 5 ft. As an action when I wield this mace, I can extinguish or ignite its light.\",\n\tdescriptionFull : \"This +1 mace was made for a cleric of Lathander, the god of dawn. The head of this mace sheds bright light in a 5-foot-radius and dim light for an additional 5 feet. When you wield this mace, you can extinguish or ignite its light as an action.\",\n\tweight : 4,\n\taction : [[\"action\", \" (on/off)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"mace\",\n\t\tregExpSearch : /^(?=.*candle)(?=.*mace).*$/i,\n\t\tname : \"Candle Mace\",\n\t\tsource : [[\"DiA\", 39]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"battle standard of infernal power\"] = {\n\tname : \"Battle Standard of Infernal Power\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While holding the banner, my weapon attacks and those of my allies within 300 ft of me count as magical for the purposes of overcoming damage immunities and resistances. The standard has a small unopenable cage with an incapacitated quasit within. It turns to smoke if killed or released and a new one appears.\",\n\tdescriptionLong : \"While holding the banner, my weapon attacks and those of my allies within 300 ft of me count as magical for the purposes of overcoming damage immunities and resistances.\\nThis hell-forged battle standard is made of infernal iron and fitted with a small, unopenable cage containing a quasit. The trapped quasit is incapacitated, and its cage has AC 19, 10 hit points, and immunity to all types of damage except force damage. If killed or somehow released, the quasit disappears in a cloud of smoke, and a new one appears in the cage, provided the cage is intact.\",\n\tdescriptionFull : \"This hell-forged battle standard is made of infernal iron and fitted with a small, unopenable cage containing a quasit. The trapped quasit is incapacitated, and its cage has AC 19, 10 hit points, and immunity to all types of damage except force damage. If killed or somehow released, the quasit disappears in a cloud of smoke, and a new one appears in the cage, provided the cage is intact.\\n   While you hold the banner, your weapon attacks and those of all allied creatures within 300 feet of you count as magical for the purposes of overcoming damage immunities and resistances.\",\n\tattunement : true,\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My weapon attacks count as magical for overcoming resistances and immunities.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"gauntlets of flaming fury\"] = {\n\tname : \"Gauntlets of Flaming Fury\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"While wearing both these steel gauntlets, any weapons I grasp with them count as magical. As a bonus action once per dawn, I can use them to envelop one or two melee weapons in my grasp with magical flames, causing them to deal an extra 1d6 fire damage on a hit. This lasts until I sheathe or let go of a weapon.\",\n\tdescriptionFull : \"While you wear both of these steel gauntlets, any non- magical weapon you grasp with either gauntlet is treated as a magic weapon. As a bonus action, you can use the gauntlets to cause magical flames to envelop one or two melee weapons in your grasp. Each flaming weapon deals an extra 1d6 fire damage on a hit. The flames last until you sheathe or let go of either weapon. Once used, this property can't be used again until the next dawn.\",\n\tattunement : true,\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.isSpell && !v.isNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/dancing|counts as( a)? magical/i).test(fields.Description)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"Any nonmagical weapons that I grasp with my Gauntlets of Flaming Fury count as magical for overcoming resistances and immunities.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"fane-eater\"] = {\n\tname : \"Fane-Eater\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"weapon (battleaxe)\",\n\trarity : \"legendary\",\n\tdescription : \"This battleaxe adds a +3 bonus to attack and damage rolls made with it. When I use it to attack a creature and roll a 20 on the attack roll, the creature takes an extra 2d8 necrotic damage, and I regain a number of hit points equal to the necrotic damage taken.\",\n\tdescriptionFull : \"Fane-Eater is a battleaxe belonging to Arkhan the Cruel.\\n   You gain a +3 bonus to attack and damage rolls with Fane-Eater. If you attack a creature with this weapon and roll a 20 on the attack roll, the creature takes an extra 2d8 necrotic damage, and you regain a number of hit points equal to the necrotic damage taken.\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by an evil cleric or paladin\",\n\tprereqeval : function(v) { return (classes.known.paladin || classes.known.cleric) && (/evil/i).test(What(\"Alignment\")); },\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"battleaxe\",\n\t\tregExpSearch : /fane-eater/i,\n\t\tname : \"Fane-Eater\",\n\t\tsource : [[\"DiA\", 223]],\n\t\tdescription : \"Versatile (1d10); On 20 to hit: +2d8 necrotic damage and I heal same amount\",\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"hellfire weapon\"] = {\n\tname : \"Hellfire Weapon\",\n\tnameTest : \"Hellfire\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"weapon (any)\",\n\trarity : \"uncommon\",\n\tdescription : \"This weapon is fashioned from infernal iron and traced with veins of hellfire that shed dim light in a 5-ft radius. Any humanoid killed by an attack made with this weapon has its soul funneled into the River Styx, where it's reborn instantly as a lemure devil.\",\n\tdescriptionFull : \"This weapon is fashioned from infernal iron and traced with veins of hellfire that shed dim light in a 5-foot-radius.\\n   Any humanoid killed by an attack made with this weapon has its soul funneled into the River Styx, where it's reborn instantly as a lemure devil.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && (/hellfire/i).test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Humanoids killed lose their soul';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Hellfire\" in a the name of a weapon, it will be treated as the magic weapon Hellfire Weapon. Any humanoid killed by the weapon has its soul funneled into the River Styx, and are instantly reborn as a lemure devil.'\n\t\t]\n\t}\n}\nMagicItemsList[\"helm of devil command\"] = {\n\tname : \"Helm of Devil Command\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This helm has 3 charges, regaining all 24 h after using the last. I can use 1 charge to cast Dominate Monster on a devil, but it knows I tried to charm it. It allows me to know the exact location of all devils within 1000 ft and I can telepathically communicate with one of them at a time, or broadcast my thoughts to all.\",\n\tdescriptionLong : \"This bulky, eyeless helmet resizes to fit my head and allows me to see out of it as if I was not wearing it. It has 3 charges, regaining all 24 hours after using the last charge. I can use 1 charge to cast Dominate Monster on a devil, but if it can see me do so, the devil knows I tried to charm it. The helm also allows me to know the exact location of all devils within 1000 ft and I can telepathically communicate with one of them at a time, or broadcast my thoughts to all within range, but they have no special means of replying. If I use its dominating power while I'm on the Nine Hells, there is a chance it attracts a narzugon.\",\n\tdescriptionFull : \"This bulky, eyeless helmet is made for a pit fiend but magically resizes to fit the heads of other wearers.\\n   While wearing the helm, you can see out of it as though you weren't wearing it. In addition, you know the exact location and type of all devils within 1,000 feet of you. You can telepathically communicate with a devil within range, or you can broadcast your thoughts to all devils within range. The devils receiving your broadcasted thoughts have no special means of replying to them.\\n   The helm has 3 charges. As an action, you can expend 1 charge to cast dominate monster (save DC 21), which affects devils only. (The spell fails and the charge is wasted if you target any creature that's not a devil.) If a devil can see you when you cast this spell on it, the devil knows you tried to charm it. The helm regains all its charges 24 hours after its last charge is expended.\\n   If you are not a devil, using the helm's dominate monster property in the Nine Hells has a 20 percent chance of attracting a narzugon, which arrives on the back of a nightmare mount in 1d4 hours. The narzugon tries to recover the helm, killing you if necessary to obtain it. If it gets the helm, the narzugon tries to deliver it to its infernal master.\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a creature that can speak infernal\",\n\tprereqeval : function(v) { return (/infernal/i).test(v.languageProfs); },\n\tusages : 3,\n\trecovery : \"Special\",\n\tfixedDC : 21,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"dominate monster\"],\n\t\tselection : [\"dominate monster\"],\n\t\tfirstCol : 1\n\t}],\n\tspellChanges : {\n\t\t\"dominate monster\" : {\n\t\t\tdescription : \"Devil save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\n\t\t\tchanges : \"Can only affect a devil.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"infernal puzzle box\"] = {\n\tname : \"Infernal Puzzle Box\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This cube-shaped container is around 15 cm on a side and is composed of airtight, interlocking parts. It can't be magically opened and is immune to all damage. I can figure out how to open it in 1 hour with a DC 30 Investigation check. If failed by 5 or more, I take 12d6 psychic damage, Wis DC 18 halves.\",\n\tdescriptionLong : \"This cube-shaped container is around 15 cm on a side and is composed of airtight, interlocking parts made from materials found in the Nine Hells. It can't be magically opened and is immune to all damage while shut. Every infernal puzzle box has an unique mundane way of opening it. I can figure out how to open this box in 1 hour with a DC 30 Investigation check, but if I fail this check by 5 or more, I take 12d6 psychic damage, Wisdom save DC 18 halves. Once I figure out the trick or sequence of steps needed to open this box, I can open it as an action, allowing access to the box's contents.\",\n\tdescriptionFull : \"An infernal puzzle box is a cube-shaped container 5 to 6 inches on a side, composed of airtight, interlocking parts made from materials found in the Nine Hells. Most of these boxes are made of infernal iron, though some are carved from bone or horn. Infernal puzzle boxes are used to safeguard diabolical contracts signed between devils and mortals, even after the terms of these contracts are fulfilled. An empty infernal puzzle box weighs 3 pounds regardless of the materials used to fashion it.\\n   When an object small enough to fit inside an infernal puzzle box is placed in it, the container magically seals shut around the object, and no magic can force the box open. The sealed box becomes immune to all damage as well. Every infernal puzzle box is constructed with a unique means of opening it. The trick to solving the puzzle is always mundane, never magical. Once a creature figures out the trick or sequence of steps needed to open a particular infernal puzzle box, that creature can open the box as an action, allowing access to the box's contents.\\n   A creature that spends 1 hour holding an infernal puzzle box while trying to open it can make a DC 30 Intelligence (Investigation) check. If the check succeeds, the creature figures out the trick or sequence of steps needed to open the box. If the check fails by 5 or more, the creature must make a DC 18 Wisdom saving throw, taking 42 (12d6) psychic damage on a failed save, or half as much damage on a successful one.\",\n\tweight : 3\n}\nMagicItemsList[\"matalotok\"] = {\n\tname : \"Matalotok\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"weapon (warhammer)\",\n\trarity : \"legendary\",\n\tdescription : \"This ancient warhammer, the Frost Father, was fashioned by Thrym. It is frigid to the touch and wreathed in mist. I'm immune to cold damage while holding it. Whenever I deal damage to a creature with it, it radiates a burst of intense cold in a 30-ft radius sphere, dealing 3d6 cold damage to all creatures within.\",\n\tdescriptionFull : \"Matalotok, the Frost Father, is an ancient hammer fashioned by Thrym, the god of frost giants. The favored weapon of the demon lord Kostchtchie, Matalotok is frigid to the touch and wreathed in mist.\\n   You are immune to cold damage while holding Matalotok. Whenever it deals damage to a creature, the hammer radiates a burst of intense cold in a 30-foot-radius sphere. Each creature in that area takes 10 (3d6) cold damage.\",\n\tattunement : true,\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /matalotok/i,\n\t\tname : \"Matalotok\",\n\t\tsource : [[\"DiA\", 224]],\n\t\tdescription : \"Versatile (1d10); On hit: all in 30-ft radius take 3d6 cold damage\",\n\t\tselectNow : true\n\t}],\n\tsavetxt : { immune : [\"cold\"] }\n}\nMagicItemsList[\"obsidian flint dragon plate\"] = {\n\tname : \"Obsidian Flint Dragon Plate\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"armor (plate)\",\n\trarity : \"legendary\",\n\tdescription : \"I gain a +2 bonus to AC and resistance to poison damage while I wear this plate armor. In addition, I gain advantage on ability checks and saving throws made to avoid or end the grappled condition on myself.\",\n\tdescriptionFull : \"You gain a +2 bonus to AC and resistance to poison damage while you wear this armor. In addition, you gain advantage on ability checks and saving throws made to avoid or end the grappled condition on yourself.\",\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*obsidian)(?=.*flint)(?=.*dragon)(?=.*plate).*$/i,\n\t\tname : \"Obsidian Flint Dragon Plate\",\n\t\tsource : [[\"DiA\", 224]],\n\t\ttype : \"heavy\",\n\t\tac : \"18+2\",\n\t\tstealthdis : true,\n\t\tweight : 65,\n\t\tstrReq : 15,\n\t\tselectNow : true\n\t}],\n\tdmgres : [\"Poison\"],\n\tsavetxt : { adv_vs : [\"grappled\"] },\n\tweight : 65\n}\nvar DiA_shieldOfTheHiddenLordFullDescription = [\n\t\"The Shield of the Hidden Lord is of celestial origin and serves as a prison for the pit fiend Gargauth, whose mortal followers revere it as a god. Over time, Gargauth's evil has warped the shield's appearance, so that its celestial motif and designs have become twisted into a fiendish face that subtly moves in disturbing ways.\",\n\t\"While holding this shield, you gain a +2 bonus to AC and resistance to fire damage.\",\n\t\">>Sentience<<. The Shield of the Hidden Lord is sentient as long as it imprisons Gargauth. While sentient, the shield has the following properties:\",\n\t\"\\u2022 The shield has an Intelligence of 22, a Wisdom of 18, and a Charisma of 24, as well as hearing and truesight out to a range of 120 feet.\",\n\t\"\\u2022 The shield can speak, read, and understand Common and Infernal, and it can communicate telepathically with any creature it can sense within 120 feet of it. Its voice is a deep, hollow whisper.\",\n\t\"\\u2022 The shield has 3 charges. You can use an action to expend 1 charge to cast Fireball or 2 charges to cast Wall of Fire from the shield (save DC 21 for each). The Wall of Fire spell lasts for 1 minute (no concentration required). The shield regains all expended charges daily at dawn.\",\n\t\"\\u2022 Anytime during your turn, the shield can choose to radiate an aura of dread for 1 minute. (This is not a power of the shield that you control.) Any creature hostile to you that starts its turn within 20 feet of the shield must make a DC 18 Wisdom saving throw. On a failed save, the creature is frightened until the start of its next turn. On a successful save, the creature is immune to this power of the shield for the next 24 hours. Once the shield uses this power, it can't use it again until the next dawn.\\n\",\n\t\">>Gargauth's Personality<<. Gargauth desperately seeks freedom but can't escape on its own. The pit fiend won't reveal its true nature, referring to itself only as the Hidden Lord. It drops hints and subtle suggestions that it is an angel trapped in an unholy prison. If released from the shield, the pit fiend honors the terms of whatever bargain it struck to facilitate its escape.\",\n\t\"While trapped in the shield, Gargauth carefully steers the shield's current owner toward committing acts of cruelty and domination, hoping to condemn the individual's soul to the Nine Hells. Conflict occurs if the shield's owner does anything that would make it more difficult for Gargauth to escape its prison, such as leaving the shield in a place where others are unlikely to find it.\",\n\t\"Gargauth doesn't know how to escape from the shield. The pit fiend believes (incorrectly) that it can break free of the shield if it's brought to the Nine Hells, for it's convinced that the shield's powers are weaker there.\",\n\t\">>Freeing Gargauth<<. Casting dispel evil and good on the shield has a 1 percent chance of freeing the pit fiend, or automatically succeeds if the spell is cast by a solar, a planetar, or an archdevil. A god can release the pit fiend by touching the shield and speaking Gargauth's name. When released, Gargauth appears in a random, unoccupied space as close to the shield as possible.\"\n];\nMagicItemsList[\"shield of the hidden lord\"] = {\n\tname : \"Shield of the Hidden Lord\",\n\tsource : [[\"DiA\", 225]],\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tstoryItemAL : true,\n\tdescription : 'This shield grants me +2 bonus to AC and resistance to fire damage. It has 3 charges, regaining all at dawn. I can expend 1 charge to cast Fireball or 2 charges to cast Wall of Fire from it at DC 21. The shield is sentient and can communicate telepathically with any creature within 120 ft of it. See \"Notes\" page for more.',\n\tdescriptionFull : DiA_shieldOfTheHiddenLordFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\tattunement : true,\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(DiA_shieldOfTheHiddenLordFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(to) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tweight : 6,\n\tshieldAdd : [\"Shield of the Hidden Lord\", 4, 6],\n\tusages : 3,\n\trecovery : \"Dawn\",\n\tfixedDC : 21,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"fireball\"],\n\t\tselection : [\"fireball\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"wall of fire\"],\n\t\tselection : [\"wall of fire\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"wall of fire\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"The Wall of Fire lasts for 1 minute and does not require concentration.\"\n\t\t}\n\t}\n}\nvar DiA_soulCoinFullDescription = [\n\t\"Soul coins are about 5 inches across and about 1 inch thick, minted from infernal iron. Each coin weighs one-third of a pound, and is inscribed with Infernal writing and a spell that magically binds a single soul to the coin. Because each soul coin has a unique soul trapped within it, each has a story. A creature might have been imprisoned as a result of defaulting on a deal, while another might be the victim of a night hag's curse.\",\n\t\">>Carrying Soul Coins<<. To hold a soul coin is to feel the soul bound within it\\u2014overcome with rage or fraught with despair.\",\n\t\"An evil creature can carry as many soul coins as it wishes (up to its maximum weight allowance). A non-evil creature can carry a number of soul coins equal to or less than its Constitution modifier without penalty. A non-evil creature carrying a number of soul coins greater than its Constitution modifier has disadvantage on its attack rolls, ability checks, and saving throws.\",\n\t\">>Using a Soul Coin<<. A soul coin has 3 charges. A creature carrying the coin can use its action to expend 1 charge from a soul coin and use it to do one of the following:\",\n\t\"\\u2022 >>Drain Life<<. You siphon away some of the soul's essence and gain 1d10 temporary hit points.\",\n\t\"\\u2022 >>Query<<. You telepathically ask the soul a question and receive a brief telepathic response, which you can understand. The soul knows only what it knew in life, but it must answer you truthfully and to the best of its ability. The answer is no more than a sentence or two and might be cryptic.\\n\",\n\t\">>Freeing a Soul<<. Casting a spell that removes a curse on a soul coin frees the soul trapped within it, as does expending all of the coin's charges. The coin itself rusts from within and is destroyed once the soul is released. A freed soul travels to the realm of the god it served or the outer plane most closely tied to its alignment (DM's choice). The souls of lawful evil creatures released from soul coins typically emerge from the River Styx as lemure devils.\",\n\t\"A soul can also be freed by destroying the coin that contains it. A soul coin has AC 19, 1 hit point for each charge it has remaining, and immunity to all damage except that which is dealt by a hellfire weapon or an infernal war machine's furnace.\",\n\t\"Freeing a soul from a soul coin is considered a good act, even if the soul belongs to an evil creature.\",\n\t\">>Hellish Currency<<. Soul coins are a currency of the Nine Hells and are highly valued by devils. The coins are used among the infernal hierarchy to barter for favors, bribe the unwilling, and reward the faithful for services rendered.\",\n\t\"Soul coins are created by Mammon and his greater devils on Minauros, the third layer of the Nine Hells, in a vast chamber where the captured souls of evil mortals are bound into the coins. These coins are then distributed throughout the Nine Hells to be used for goods and services, infernal deals, dark bargains, and bribes.\"\n];\nMagicItemsList[\"soul coin\"] = {\n\tname : \"Soul Coin\",\n\tsource : [[\"DiA\", 225], [\"CoA\", 269]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Each coin traps a unique soul, whose rage or despair is felt by me while I hold it. A coin has 3 charges. As an action, I can expend 1 charge to either siphon the soul's essence to grant me 1d10 temporary HP or telepathically ask the soul a question which it must answer truthfully. See \\\"Notes\\\" page for more.\",\n\tdescriptionFull : DiA_soulCoinFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(DiA_soulCoinFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(answer) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}],\n\tweight : 0.3,\n\tusages : 3,\n\trecovery : \"Never\",\n\taction : [[\"action\", \"\"]]\n}\n\n// pub_20190919_LR.js\n// This file adds the Locathah from the Locathah Rising adventure from Extra Life to MPMB's Character Record Sheet\n\nSourceList.LR = {\n\tname : \"Locathah Rising\",\n\tabbreviation : \"LR\",\n\tgroup : \"Extra Life\",\n\turl : \"https://www.dmsguild.com/product/289261/Locathah-Rising-5e\",\n\tdate : \"2019/09/19\",\n\tdefaultExcluded : true\n};\n\nRaceList.locathah = {\n\tsource : [[\"LR\", 24]],\n\tregExpSearch : /locathah/i,\n\tname : \"Locathah\",\n\tplural : \"Locathah\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 30, enc : 20 },\n\t},\n\tlanguageProfs : [\"Common\", \"Aquan\"],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\", \"frightened\", \"paralyzed\", \"poisoned\", \"stunned\", \"sleep\"],\n\t},\n\tskills : [\"athletics\", \"perception\"],\n\tscores : [2, 1, 0, 0, 0, 0],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\n\t\tname : \"Natural Armor\",\n\t\tsource : [[\"LR\", 24]],\n\t\tac : 12,\n\t\tselectNow : true\n\t}],\n\tage : \" mature to adulthood by the age of 10 but have been known to live up to 80 years\",\n\theight : \" stand between 5 and 6 feet tall\",\n\tweight : \" average about 150 pounds\",\n\theightMetric : \" stand between 1,5 and 1,8 metres tall\",\n\tweightMetric : \" weigh around 70 kg\",\n\ttrait : \"Locathah (+2 Strength, +1 Dexterity)\\n   Limited Amphibiousness: I can breathe air and water, but need to be submerged at least once every 4 hours to avoid suffocating.\\n   Leviathan Will: I have advantage on saving throws against being charmed, frightened, paralyzed, poisoned, stunned, or put to sleep.\\n   Natural Armor: I have an AC of 12 + Dexterity modifier + shield.\\n   Observant & Athletic: I have proficiency in the Athletics and Perception skills.\"\n};\n\n// pub_20191112_Adventure-with-Muk.js\r\n// This file adds the Dankwood Goblin race from the Adventure with Muk from Extra Life to MPMB's Character Record Sheet\r\n// Be aware that this race is not legal in adventurers league!\r\n\r\nSourceList[\"AwM\"] = {\r\n\tname : \"Adventure with Muk\",\r\n\tabbreviation : \"AwM\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/294712/Adventure-with-Muk-5e\",\r\n\tdate : \"2019/11/12\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nRaceList[\"dankwood goblin\"] = {\r\n\tregExpSearch : /^(?=.*dankwood)(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\tname : \"Dankwood goblin\",\r\n\tsortname : \"Goblin, Dankwood\",\r\n\tsource : [[\"AwM\", 35]],\r\n\tplural : \"Dankwood goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Dankwood Goblin (+2 Dexterity, +1 Wisdom)\"+\r\n\t\"\\n   Speak with Small Beasts: Through sounds and gestures, I can communicate simple ideas with Small or smaller beasts. Dankwood goblins love animals and often keep squirrels, badgers, rabbits, moles, woodpeckers, and other creatures as beloved pets.\"+\r\n\t\"\\n   Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\n\n// pub_20191119_ERftLW.js\r\n// This file adds the content from Eberron: Rising from the Last War to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"E:RLW\"] = {\r\n\tname : \"Eberron: Rising from the Last War\",\r\n\tabbreviation : \"E:RLW\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://dnd.wizards.com/products/eberron\",\r\n\tdate : \"2019/11/19\"\r\n};\r\n\r\n// The changeling\r\nRaceList[\"changeling\"] = {\r\n\tregExpSearch : /changeling/i,\r\n\tname : \"Changeling\",\r\n\tsource : [[\"E:RLW\", 18]],\r\n\tplural : \"Changelings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Deception, Intimidation, Insight, and Persuasion\",\r\n\tlanguageProfs : [\"Common\", 2],\r\n\tage : \" mature slightly faster than humans but share a similar lifespan, typically a century or less. While a changeling can transform to conceal their age, the effects of aging affect them similarly to humans\",\r\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Charisma and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 0, 2],\r\n\ttrait : \"Changeling (+2 Charisma and +1 to one other ability score of my choice)\\nShapechanger: As an action, I can change my appearance and voice to or from a humanoid-shaped form I have seen, not changing my equipment. I determine the specifics of the form like hair length, eye color, and sex. I can adjust my height and weight, but not so much that my size changes. I revert back when I die. I can make myself appear as a member of another race, though none of my game statistics change.\",\r\n\taction : [[\"action\", \"Shapechanger\"]]\r\n};\r\n\r\n// Double bladed scimitar\r\nWeaponsList[\"double-bladed scimitar\"] = {\r\n\tregExpSearch : /^(?=.*double)(?=.*scimitar).*$/i,\r\n\tname : \"Double-bladed scimitar\",\r\n\tnameAlt : [\"Scimitar, Double-bladed\"],\r\n\tsource : [[\"E:RLW\", 22], [\"WGtE\", 74]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 4, \"slashing\"],\r\n\trange : \"Melee\",\r\n\tweight : 6,\r\n\tdescription : \"Two-handed; With Attack action, one attack as bonus action for 1d4\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Revenant blade feat\r\nFeatsList[\"revenant blade\"] = {\r\n\tname : \"Revenant Blade\",\r\n\tsource : [[\"E:RLW\", 22]],\r\n\tprerequisite : \"Being an Elf\",\r\n\tprereqeval : function(v) { return (/^(?!.*half)(?=.*(elf|eladrin|avariel|grugach|shadar-kai)).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You are descended from a master of the double blade and their skills have passed on to you. You gain the following benefits:\\n \\u2022 Increase your Dexterity or Strength score by 1, to a maximum of 20.\\n \\u2022 While you are holding a double-bladed scimitar with two hands, you gain a + 1 bonus to Armor Class.\\n \\u2022 A double-bladed scimitar has the finesse property when you wield it.\",\r\n\tdescription : \"My mastery with the double bladed scimitar allows me to treat it as having the finesse trait. In addition, I gain +1 AC while wielding it with two hands. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'double-bladed scimitar' && fields.Proficiency) {\r\n\t\t\t\t\tif (!/finesse/i.test(fields.Description)) fields.Description = 'Finesse, ' + fields.Description.substr(0,1).toLowerCase() + fields.Description.substr(1);\r\n\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"Double-bladed scimitars count as having finesse for me.\",\r\n\t\t\t1\r\n\t\t]\r\n\t},\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm wielding a double-bladed weapon in two hands.\",\r\n\t\tstopeval : function (v) { return v.usingShield && !(/animated/i).test(What(\"AC Shield Bonus Description\")) || !CurrentWeapons.known.some(function (n) { return n[0] == \"double-bladed scimitar\" || (WeaponsList[n[0]] && WeaponsList[n[0]].baseWeapon == \"double-bladed scimitar\"); }); }\r\n\t}\r\n};\r\n// The kalashtar\r\nRaceList[\"kalashtar\"] = {\r\n\tregExpSearch : /kalashtar/i,\r\n\tname : \"Kalashtar\",\r\n\tsource : [[\"E:RLW\", 30]],\r\n\tplural : \"Kalashtar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Quori\", 1],\r\n\tsavetxt : { immune : [\"effects that require me to dream\"], text : [\"Adv. on all Wis saves\"] },\r\n\tadvantages : [ [\"Wisdom\", true] ],\r\n\tdmgres : [\"Psychic\"],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from 5 and a half to well over 6 feet tall (5'4\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 145 lb (110 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from 1,7 to 1,9 metres tall (160 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (50 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 2, 1],\r\n\ttrait : \"Kalashtar (+2 Wisdom, +1 Charisma)\\n   Dual Mind: I have advantage on Wisdom saving throws.\\n   Mind Link: I can speak telepathically to any creature I can see within 10 ft \\xD7 my level, as long as it can speak at least one language. As an action, I can give that creature the ability to speak telepathically back to me while it can see me and is within range. This lasts for 1 hour, until I use this ability on another creature, or until I end it as an action.\\n   Severed from Dreams: I don't dream and thus immune to spells that affect dreams.\",\r\n\taction : [['action', 'Mind Link (start/stop)']]\r\n};\r\n\r\n// The four subraces of the shifter\r\nRaceList[\"beasthide shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*beast)(?=.*hide).*$/i,\r\n\tname : \"Beasthide shifter\",\r\n\tsortname : \"Shifter, Beasthide\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Beasthide shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Athletics\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Beasthide Shifter (+1 Strength, +2 Constitution)\\n\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to 1d6 + my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have a +1 bonus to AC.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return \"1d6 + \" + n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"longtooth shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\tname : \"Longtooth shifter\",\r\n\tsortname : \"Shifter, Longtooth\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Longtooth shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\tname : \"Longtooth Fangs\",\r\n\t\tsource : [[\"E:RLW\", 34]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tdescription : \"Only while shifted; One attack as bonus action\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 1, 0, 0, 0, 0],\r\n\ttrait : \"Longtooth Shifter (+2 Strength, +1 Dexterity)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I use my elongated fangs to make unarmed strikes, dealing 1d6 piercing damage. As a bonus action, I can maken one attack with my fangs.\",\r\n\taction : [['bonus action', 'Longtooth Fangs attack (while shifted)']],\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"swiftstride shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*swift)(?=.*stride).*$/i,\r\n\tname : \"Swiftstride shifter\",\r\n\tsortname : \"Shifter, Swiftstride\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Swiftstride shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Acrobatics\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Swiftstride Shifter (+2 Dexterity, +1 Charisma)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nWhile transformed like this, my walking speed increases with 10 ft.\\nAs a reaction when an enemy ends its turn within 5 ft of me while I'm shifted, I can move 10 ft without provoking opportunity attacks.\",\r\n\taction : [['reaction', 'Stride (while shifted)']],\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"wildhunt shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*wild)(?=.*hunt).*$/i,\r\n\tname : \"Wildhunt shifter\",\r\n\tsortname : \"Shifter, Wildhunt\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Wildhunt shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Survival\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 2, 0],\r\n\ttrait : \"Wildhunt Shifter (+1 Dexterity, +2 Wisdom)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have advantage on Wisdom checks and no creature within 30 ft can make an attack roll with advantage against me, unless I'm incapacitated.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// The warforged\r\nRaceList[\"warforged\"] = {\r\n\tregExpSearch : /warforged/i,\r\n\tname : \"Warforged\",\r\n\tsource : [[\"E:RLW\", 36]],\r\n\tplural : \"Warforged\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Any tool\", 1]],\r\n\tskillstxt : \"Choose any one skill and any one tool\",\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\timmune : [\"disease\", \"magical aging effects\"],\r\n\t\tadv_vs : [\"poison\"]\r\n\t},\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" typical are between two and thirty years old. The maximum warforged lifespan remains a mystery; so far, warforged have shown no signs of deterioration due to age. Warforged are immune to magical aging effects.\",\r\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\tscorestxt : \"+2 Constitution and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 2, 0, 0, 0],\r\n\ttrait : \"Warforged (+2 Constitution and +1 to one other ability score\" + (typePF ? \"\" : \" of my choice\") + \")\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: I gain +1 AC and I can don only armor with which I'm proficient. To don or doff armor, I must (un)incorporate it into my body over the course of 1 hour, which can be done during resting. Donned armor can't be removed against my will while I'm alive.\",\r\n\textraAC : {\r\n\t\tname : \"Integrated Protection\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC.\"\r\n\t}\r\n};\r\n\r\n// Dragonmarks subraces\r\nRaceList[\"dragonmark detection half-elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*detection)|(?=.*house)(?=.*medani)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Detection (Half-Elf)\",\r\n\tsource : [[\"E:RLW\", 40]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Wisdom and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\ttrait : \"Half-Elf, Dragonmark of Detection (+2 Wisdom \\u0026 +1 to one other ability of my choice)\\n   Deductive Intuition: I can add +1d4 to my Intelligence (Investigation) and Wisdom (Insight) checks.\\n   Magical Detection: I can cast Detect Magic and Detect Poison and Disease each once per long rest. At 3rd level, I can also cast See Invisibility once per long rest. Wisdom is my spellcasting ability for these and none of them require material components.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5, // changed from Int to Wis by errata\r\n\tfeatures : {\r\n\t\t\"magical detection\" : {\r\n\t\t\tname : \"Magical Detection (level 1)\",\r\n\t\t\tlimfeaname : \"Detect Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Detection (level 1)\",\r\n\t\t\t\tspells : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\t\tselection : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Poison and Disease\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect poison and disease\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"see invisibility\" : {\r\n\t\t\tname : \"Magical Detection (level 3)\",\r\n\t\t\tlimfeaname : \"See Invisibility\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Detection (level 3)\",\r\n\t\t\t\tspells : [\"see invisibility\"],\r\n\t\t\t\tselection : [\"see invisibility\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"see invisibility\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"detect evil and good\", \"detect poison and disease\", \"detect thoughts\", \"find traps\", \"clairvoyance\", \"nondetection\", \"arcane eye\", \"divination\", \"legend lore\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Detect Evil and Good, Detect Poison and Disease, Detect Thoughts, Find Traps, Clairvoyance, Nondetection, Arcane Eye, Divination, and Legend Lore.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding half-orc\"] = {\r\n\tregExpSearch : /^((?=.*half)(?=.*\\bor(c|k))((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk))).*$/i,\r\n\tname : \"Half-orc (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Half-Orc)\",\r\n\tsource : [[\"E:RLW\", 41]],\r\n\tplural : \"Half-orcs (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood around age 14 and rarely live longer than 75 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 2, 0],\r\n\ttrait : \"Half-Orc, Dragonmark of Finding (+1 Constitution, +2 Wisdom)\\n   Hunter's Intuition: I can add +1d4 to my Wisdom (Perception) and Wisdom (Survival) checks.\\n   Finder's Magic: I can cast Hunter's Mark once per long rest. At 3rd level, I can also cast Locate Object once per long rest. Wisdom is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"finder's magic\" : {\r\n\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\tlimfeaname : \"Hunter's Mark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\t\tspells : [\"hunter's mark\"],\r\n\t\t\t\tselection : [\"hunter's mark\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"locate object\" : {\r\n\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Locate Object\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\t\tspells : [\"locate object\"],\r\n\t\t\t\tselection : [\"locate object\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"faerie fire\", \"longstrider\", \"locate animals or plants\", \"locate object\", \"clairvoyance\", \"speak with plants\", \"divination\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Faerie Fire, Longstrider, Locate Animals or Plants, Locate Object, Clairvoyance, Speak with Plants, Divination, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding human\"] = {\r\n\tregExpSearch : /^((?=.*human)((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk))).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Human)\",\r\n\tsource : [[\"E:RLW\", 41]],\r\n\tplural : \"Human (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 2, 0],\r\n\ttrait : \"Human, Dragonmark of Finding (+1 Constitution, +2 Wisdom)\\n   Hunter's Intuition: I can add +1d4 to my Wisdom (Perception) and Wisdom (Survival) checks.\\n   Finder's Magic: I can cast Hunter's Mark once per long rest. At 3rd level, I can also cast Locate Object once per long rest. Wisdom is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"finder's magic\" : {\r\n\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\tlimfeaname : \"Hunter's Mark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\t\tspells : [\"hunter's mark\"],\r\n\t\t\t\tselection : [\"hunter's mark\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"locate object\" : {\r\n\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Locate Object\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\t\tspells : [\"locate object\"],\r\n\t\t\t\tselection : [\"locate object\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"faerie fire\", \"longstrider\", \"locate animals or plants\", \"locate object\", \"clairvoyance\", \"speak with plants\", \"divination\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Faerie Fire, Longstrider, Locate Animals or Plants, Locate Object, Clairvoyance, Speak with Plants, Divination, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark handling human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*handling)|(?=.*house)(?=.*vadalis)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Handling (Human)\",\r\n\tsource : [[\"E:RLW\", 42]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Wisdom and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\ttrait : \"Human, Dragonmark of Handling (+2 Wisdom, +1 to one other ability score of my choice)\\n   Wild Intuition: I can add +1d4 to my Wisdom (Animal Handling) and Intelligence (Nature) checks.\\n   Primal Connection: I can cast Animal Friendship and Speak with Animals each once per short rest. Wisdom is my spellcasting ability for these.\\n   The Bigger They Are: When I cast Animal Friendship or Speak with Animals, I can target a monstrosity with an Intelligence of 3 or lower instead of a beast.\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"primal connection\" : {\r\n\t\t\tname : \"Primal Connection\",\r\n\t\t\tlimfeaname : \"Animal Friendship\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Speak with Animals\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\tspells : [\"animal friendship\", \"speak with animals\"],\r\n\t\t\t\tselection : [\"animal friendship\", \"speak with animals\"],\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"animal friendship\" :\r\n\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"beasts\", \"beasts/monstrosities\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"speak with animals\" :\r\n\t\t\t\t\t\tspellObj.description = \"Communicate verbally with monstrosities Int<4 or beasts for duration; interactions limited by their Int\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"When I cast Animal Friendship or Speak with Animals, I can target a monstrosity with an Intelligence of 3 or lower instead of a beast.\"\r\n\t\t],\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"animal friendship\", \"speak with animals\", \"beast sense\", \"calm emotions\", \"beacon of hope\", \"conjure animals\", \"aura of life\", \"dominate beast\", \"awaken\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Animal Friendship, Speak with Animals, Beast Sense, Calm Emotions, Beacon of Hope, Conjure Animals, Aura of Life, Dominate Beast, and Awaken.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark healing halfling\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*healing)|(?=.*house)(?=.*jorasco)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Healing (Halfling)\",\r\n\tsource : [[\"E:RLW\", 43]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Halfling, Dragonmark of Healing (+2 Dexterity, +1 Wisdom)\\nLucky: When I roll a 1 on an attack, check, or save, I can reroll it but must use the result.\" + (typePF ? \" \" : \"\\n\") + \"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\\nMedical Intuition: I can add +1d4 to my Wisdom (Medicine) and herbalism kit checks.\\nHealing Touch: I can cast Cure Wounds each once per long rest. At 3rd level, I can also cast Lesser Restoration once per long rest. Wisdom is my spellcasting ability for these.\\nSpells of the Mark: I add several spells to \" + (typePF ? \"my class' spell list.\" : \"the spell list of my spellcasting class(es).\"),\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"healing touch\" : {\r\n\t\t\tname : \"Healing Touch (level 1)\",\r\n\t\t\tlimfeaname : \"Cure Wounds\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Healing Touch (level 1)\",\r\n\t\t\t\tspells : [\"cure wounds\"],\r\n\t\t\t\tselection : [\"cure wounds\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tname : \"Healing Touch (level 3)\",\r\n\t\t\tlimfeaname : \"Lesser Restoration\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Healing Touch (level 3)\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cure wounds\", \"healing word\", \"lesser restoration\", \"prayer of healing\", \"aura of vitality\", \"mass healing word\", \"aura of purity\", \"aura of life\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Cure Wounds, Healing Word, Lesser Restoration, Prayer of Healing, Aura of Vitality, Mass Healing Word, Aura of Purity, Aura of Life, and Greater Restoration.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark hospitality halfling\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*hospitality)|(?=.*house)(?=.*ghallanda)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Hospitality (Halfling)\",\r\n\tsource : [[\"E:RLW\", 44]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Halfling, Dragonmark of Hospitality (+2 Dexterity, +1 Charisma)\\nLucky: When I roll a 1 on an attack, check, or save, I can reroll it but must use the result.\" + (typePF ? \" \" : \"\\n\") + \"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\\nEver Hospitable: I can add +1d4 to my Charisma (Persuasion), brewer's supplies, and cook's utensils checks.\" + (typePF ? \"\\n\" : \" \") + \"Innkeeper's Magic: I know the Prestidigitation cantrip and I can cast Purify Food and Drink and Unseen Servant each once per long rest. Charisma as my spellcasting ability for these. Spells of the Mark: I add several spells to my class' spell list.\",\r\n\tspellcastingAbility : 6,\r\n\tfeatures : {\r\n\t\t\"innkeeper's magic\" : {\r\n\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\tlimfeaname : \"Purify Food and Drink\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\t\tspells : [\"prestidigitation\"],\r\n\t\t\t\tselection : [\"prestidigitation\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\t\tspells : [\"purify food and drink\", \"unseen servant\"],\r\n\t\t\t\tselection : [\"purify food and drink\", \"unseen servant\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Unseen Servant\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"goodberry\", \"sleep\", \"aid\", \"calm emotions\", \"create food and water\", \"leomund's tiny hut\", \"aura of purity\", \"mordenkainen's private sanctum\", \"hallow\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Goodberry, Sleep, Aid, Calm Emotions, Create Food and Water, Leomund's Tiny Hut, Aura of Purity, Mordenkainen's Private Sanctum, and Hallow.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark making human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*making)|(?=.*house)(?=.*cannith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Making (Human)\",\r\n\tsource : [[\"E:RLW\", 45]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Intelligence and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 2, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Making (+2 Intelligence, +1 to one other ability score of my choice)\\n   Artisan's Intuition: I can add +1d4 to Arcana checks and checks with artisan's tools.\\n   Spellsmith: I know the Mending cantrip. I can cast Magic Weapon once per long rest and when I do so, it doesn't require concentration and lasts for 1 hour. Intelligence is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\" + (typePF ? \"\" : \"\\n   Maker's Gift: I gain proficiency with one type of artisan's tools of my choice.\"),\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"spellsmith\" : {\r\n\t\t\tname : \"Spellsmith\",\r\n\t\t\tlimfeaname : \"Magic Weapon\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spellsmith\",\r\n\t\t\t\tspells : [\"mending\"],\r\n\t\t\t\tselection : [\"mending\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Spellsmith\",\r\n\t\t\t\tspells : [\"magic weapon\"],\r\n\t\t\t\tselection : [\"magic weapon\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"magic weapon\" : {\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"1 nonmagical weapon becomes magical with an +1 bonus to attack and damage\",\r\n\t\t\t\t\tchanges : \"When using my Spellsmith racial trait, this spell doesn't require concentration and lasts for 1 hour.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"identify\", \"tenser's floating disk\", \"continual flame\", \"magic weapon\", \"conjure barrage\", \"elemental weapon\", \"fabricate\", \"stone shape\", \"creation\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Identify, Tenser's Floating Disk, Continual Flame, Magic Weapon, Conjure Barrage, Elemental Weapon, Fabricate, Stone Shape, and Creation.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark passage human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*passage)|(?=.*house)(?=.*orien)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Passage (Human)\",\r\n\tsource : [[\"E:RLW\", 46]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity and +1 to one other ability score of my choice\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Passage (+2 Dexterity, +1 to one other ability score of my choice)\\n   Intuitive Motion: I can add +1d4 to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a land vehicle.\\n   Magical Passage: I can cast Misty Step once per long rest, using Dexterity as my spellcasting ability.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\\n   Courier's Speed: My base walking speed is 35 ft.\",\r\n\tspellcastingAbility : 2,\r\n\tfeatures : {\r\n\t\t\"magical passage\" : {\r\n\t\t\tname : \"Magical Passage\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Passage\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"expeditious retreat\", \"jump\", \"misty step\", \"pass without trace\", \"blink\", \"phantom steed\", \"dimension door\", \"freedom of movement\", \"teleportation circle\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Expeditious Retreat, Jump, Misty Step, Pass Without Trace, Blink, Phantom Steed, Dimension Door, Freedom of Movement, and Teleportation Circle.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark scribing gnome\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*scribing)|(?=.*house)(?=.*sivis)).*$/i,\r\n\tname : \"Gnome (dragonmark)\",\r\n\tsortname : \"Dragonmark, Scribing (Gnome)\",\r\n\tsource : [[\"E:RLW\", 47]],\r\n\tplural : \"Gnomes (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Gnome, Dragonmark of Scribing (+2 Intelligence, +1 Charisma)\\n   Gifted Scribe: I can add +1d4 to my Intelligence (History) checks and ability checks with calligrapher's supplies.\\n   Scribe's Insight: I know the Message cantrip. I can cast Comprehend Languages once per long rest. At 3rd level, I can also cast Magic Mouth once per long rest. Intelligence is my spellcasting ability for these spells.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"scribe's insight\" : {\r\n\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\tlimfeaname : \"Comprehend Languages\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\t\tspells : [\"message\"],\r\n\t\t\t\tselection : [\"message\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"magic mouth\" : {\r\n\t\t\tname : \"Scribe's Insight (level 3)\",\r\n\t\t\tlimfeaname : \"Magic Mouth\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight (level 3)\",\r\n\t\t\t\tspells : [\"magic mouth\"],\r\n\t\t\t\tselection : [\"magic mouth\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"comprehend languages\", \"illusory script\", \"animal messenger\", \"silence\", \"sending\", \"tongues\", \"arcane eye\", \"confusion\", \"dream\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Comprehend Languages, Illusory Script, Animal Messenger, Silence, Sending, Tongues, Arcane Eye, Confusion, and Dream.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark sentinel human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*sentinel)|(?=.*house)(?=.*deneith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Sentinel (Human)\",\r\n\tsource : [[\"E:RLW\", 48]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Sentinel (+2 Constitution, +1 Wisdom)\\n  Sentinel's Intuition: I can add +1d4 my Wisdom (Insight) and Wisdom (Perception) checks.\\n  Guardian's Shield: I can cast Shield once per long rest, using Wisdom as my spellcasting ability.\\n  Vigilant Guardian: Once per long rest as a reaction when a creature I can see within 5 ft is hit by an attack roll, I can swap places with it and I'm hit by the attack instead.\\n  Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"vigilant guardian\" : {\r\n\t\t\tname : \"Vigilant Guardian\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [['reaction', '']]\r\n\t\t},\r\n\t\t\"guardian's shield\" : {\r\n\t\t\tname : \"Guardian's Shield\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guardian's Shield\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"compelled duel\", \"shield of faith\", \"warding bond\", \"zone of truth\", \"counterspell\", \"protection from energy\", \"death ward\", \"guardian of faith\", \"bigby's hand\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Compelled Duel, Shield of Faith, Warding Bond, Zone of Truth, Counterspell, Protection from Energy, Death Ward, Guardian of Faith, and Bigby's Hand.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark shadow elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*shadow)|(?=.*house)(?=.*(phiarlan|thuranni))).*$/i,\r\n\tname : \"Elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Shadow (Elf)\",\r\n\tsource : [[\"E:RLW\", 49]],\r\n\tplural : \"Elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Elf, Dragonmark of Shadow (+2 Dexterity, +1 Charisma)\\n   Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\n   Cunning Intuition: I can add +1d4 to my Cha\" + (typePF ? \"risma\" : \"\") + \" (Performance) and Dex\" + (typePF ? \"terity\" : \"\") + \" (Stealth) checks.\\n   Shape Shadows: I know the Minor Illusion cantrip. At 3rd level, I can cast Invisibility once per long rest. Charisma is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to \" + (typePF ? \"my class' spell list.\" : \"the spell list of my spellcasting class(es).\"),\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shape Shadows (level 1)\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"shape shadows\" : {\r\n\t\t\tname : \"Shape Shadows (level 3)\",\r\n\t\t\tlimfeaname : \"Invisibility\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Shape Shadows (level 3)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"disguise self\", \"silent image\", \"darkness\", \"pass without trace\", \"clairvoyance\", \"major image\", \"greater invisibility\", \"hallucinatory terrain\", \"mislead\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Disguise Self, Silent Image, Darkness, Pass Without Trace, Clairvoyance, Major Image, Greater Invisibility, Hallucinatory Terrain, and Mislead.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark storm half-elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*storm)|(?=.*house)(?=.*lyrandar)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Storm (Half-Elf)\",\r\n\tsource : [[\"E:RLW\", 50]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\ttrait : \"Half-Elf, Dragonmark of Storm (+1 Dexterity, +2 Charisma)\\n   Windwright's Intuition: I can add +1d4 to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a water or air vehicle.\\n   Headwinds: I know the Gust cantrip. Once I reach 3rd level, I can cast Gust of Wind once per long rest. Charisma is my spellcasting ability for these spells.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Headwinds (level 1)\",\r\n\t\tspells : [\"gust\"],\r\n\t\tselection : [\"gust\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\tlimfeaname : \"Gust of Wind\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"feather fall\", \"fog cloud\", \"gust of wind\", \"levitate\", \"sleet storm\", \"wind wall\", \"conjure minor elementals\", \"control water\", \"conjure elemental\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Feather Fall, Fog Cloud, Gust of Wind, Levitate, Sleet Storm, Wind Wall, Conjure Minor Elementals, Control Water, and Conjure Elemental.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark warding dwarf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*warding)|(?=.*house)(?=.*kundarak)).*$/i,\r\n\tname : \"Dwarf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Warding (Dwarf)\",\r\n\tsource : [[\"E:RLW\", 51]],\r\n\tplural : \"Dwarves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\ttrait : \"Dwarf, Dragonmark of Warding (+2 Constitution, +1 Intelligence)\\n\" + (typePF ? \"   \" : \"- \") + \"Warder's Intuition: I can add +1d4 to my Intelligence (Investigation) checks and ability checks with thieves' tools.\" + (typePF ? \"\\n   Stonecunning: When I make an Int (History) check related to origin of stonework, I am considered having expertise in the History skill.\\n   \" : \" - Stonecunning: Expertise in History when concerning stonework.\\n- \") + \"Wards and Seals: I can cast Alarm and Mage Armor each once per long rest. At 3rd level, I can also cast Arcane Lock once per long rest. Intelligence is my spellcasting ability for these and none of them require material components.\\n\" + (typePF ? \"   \" : \"- \") + \"Spells of the Mark: I add several spells to my class' spell list(s).\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"wards and seals\" : {\r\n\t\t\tname : \"Wards and Seals (level 1)\",\r\n\t\t\tlimfeaname : \"Alarm\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 1)\",\r\n\t\t\t\tspells : [\"alarm\", \"mage armor\"],\r\n\t\t\t\tselection : [\"alarm\", \"mage armor\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Mage Armor\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"alarm\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mage armor\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"arcane lock\" : {\r\n\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"alarm\", \"armor of agathys\", \"arcane lock\", \"knock\", \"glyph of warding\", \"magic circle\", \"leomund's secret chest\", \"mordenkainen's faithful hound\", \"antilife shell\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Alarm, Armor of Agathys, Arcane Lock, Knock, Glyph of Warding, Magic Circle, Leomund's Secret Chest, Mordenkainen's Faithful Hound, and Antilife Shell.\"\r\n\t\t]\r\n\t}\r\n};\r\n\r\n// Aberrant Dragonmark feat\r\nFeatsList[\"aberrant dragonmark\"] = {\r\n\tname : \"Aberrant Dragonmark\",\r\n\tsource : [[\"E:RLW\", 52]],\r\n\tprerequisite : \"No other dragonmark\",\r\n\tprereqeval : function(v) { return !(/dragonmark/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have manifested an aberrant dragonmark. Determine its appearance and the flaw associated with it. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You learn a cantrip of your choice from the sorcerer spell list. In addition, choose a 1st-level spell from the sorcerer spell list. You learn that spell and can cast it through your mark. Once you cast it, you must finish a short or long rest before you can cast it again through the mark. Constitution is your spellcasting ability for these spells.\\n \\u2022 When you cast the 1st-level spell through your mark, you can expend one of your Hit Dice and roll it. If you roll an even number, you gain a number of temporary hit points equal to the number rolled. If you roll an odd number, one random creature within 30 feet of you (not including you) takes force damage equal to the number rolled. If no other creatures are in range, you take the damage.\\n\\nYou also develop a random flaw from the Aberrant Dragonmark Flaws table.\\n\\n\" + toUni(\"d8\\tFlaw\") + \"\\n  1\\tYour mark is a source of constant physical pain.\\n  2\\tYour mark whispers to you. Its meaning can be unclear.\\n  3\\tWhen you're stressed, the mark hisses audibly.\\n  4\\tThe skin around the mark is burned, scaly, or withered.\\n  5\\tAnimals are uneasy around you.\\n  6\\tYou have a mood swing any time you use your mark.\\n  7\\tYour looks change slightly whenever you use the mark.\\n  8\\tYou have horrific nightmares after you use your mark.\",\r\n\tdescription : \"I learn a sorcerer cantrip, and a 1st-level spell that I can cast once per short rest. They use Con as spellcasting ability. I can expend and roll an HD when I cast the level 1 spell. If even, I gain it in temp HP. If odd, a random target in 30 ft takes it in force damage. [+1 Con]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sorcerer cantrip\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [0, 0],\r\n\t}, {\r\n\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : 'oncesr'\r\n\t}]\r\n};\r\n\r\n// House Agent backgrounds\r\nBackgroundList[\"house agent\"] = { // the default is House Cannith\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*(noble|cannith)).*$/i,\r\n\tname : \"Agent of House Cannith\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tskills : [\"Investigation\", \"Persuasion\"],\r\n\tgold : 20,\r\n\tequipleft : [[\"Signet ring of house Cannith\", \"\", \"\"]],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"ID papers\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"House Connections\",\r\n\ttrait : [\r\n\t\t\"I never let emotion complicate work.\",\r\n\t\t\"I'm always looking to improve efficiency.\",\r\n\t\t\"I share trivia about my house's business (medicine, ships, warforged).\",\r\n\t\t\"I hold myself and anyone I work with to extremely high standards.\",\r\n\t\t\"I never forget an insult made against myself or my house.\",\r\n\t\t\"I'm very excited and enthusiastic about everything my house does.\",\r\n\t\t\"I'm representing my house and take great pride in my personal appearance.\",\r\n\t\t\"I'm critical of monarchies and opposed to any restrictions on the houses.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Common Good\",\r\n\t\t\t\"Common Good: My house serves a vital function, and its prosperity will help everyone. (Good)\"\r\n\t\t],\r\n\t\t[\"Tradition\",\r\n\t\t\t\"Tradition: I uphold traditions of my house and bring honor to my family. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Innovation\",\r\n\t\t\t\"Innovation: Abandon old traditions and find better ways to do things. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: I want to ensure the prosperity of my house and wield its power myself. (Evil)\"\r\n\t\t],\r\n\t\t[\"Discovery\",\r\n\t\t\t\"Discovery: I want to learn all I can, both for my house and for my own curiosity. (Any)\"\r\n\t\t],\r\n\t\t[\"Comfort\",\r\n\t\t\t\"Comfort: I want to ensure that me and friends of mine enjoy the best things in life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My house is my family, and I would do anything for my family.\",\r\n\t\t\"I love someone from another house, but the relationship is forbidden.\",\r\n\t\t\"Someone I love was killed by a rival faction within my house, and I will have revenge.\",\r\n\t\t\"I don't care about the house as a whole, but I would do anything for my old mentor.\",\r\n\t\t\"I believe my house needs to evolve to survive, and I need to lead that change.\",\r\n\t\t\"I'm determined to impress the leaders of my house, and to become a leader myself.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'm overly concerned with following established procedures and protocols.\",\r\n\t\t\"I'm obsessed with conspiracy theories and worried about secret societies and hidden demons.\",\r\n\t\t\"I believe that my house and bloodline makes me better than everyone else.\",\r\n\t\t\"I'm concealing a secret that could get me driven from my house.\",\r\n\t\t\"I have strong religious beliefs that aren't widespread in my house.\",\r\n\t\t\"I'm working for a hidden faction in my house that gives me secret assignments.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an House Agent Role\",\r\n\t\t\"Acquisition\",\r\n\t\t\"Investigation\",\r\n\t\t\"Research \\u0026 Development\",\r\n\t\t\"Security\",\r\n\t\t\"Intimidation\",\r\n\t\t\"Exploration\",\r\n\t\t\"Negotiation\",\r\n\t\t\"Covert Operations\"\r\n\t],\r\n\ttoolProfs : [\"Alchemist's supplies\", \"Tinker's tools\"]\r\n};\r\nAddBackgroundVariant(\"house agent\", \"deneith\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*deneith).*$/i,\r\n\tname : \"Agent of House Deneith\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Deneith\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"ghallanda\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*ghallanda).*$/i,\r\n\tname : \"Agent of House Ghallanda\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Ghallanda\", \"\", \"\"]],\r\n\ttoolProfs : [\"Brewer's supplies\", \"Cook's utensils\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"jorasco\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*jorasco).*$/i,\r\n\tname : \"Agent of House Jorasco\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Jorasco\", \"\", \"\"]],\r\n\ttoolProfs : [\"Alchemist's supplies\", \"Herbalism kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"kundarak\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*kundarak).*$/i,\r\n\tname : \"Agent of House Kundarak\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Kundarak\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"lyrandar\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*lyrandar).*$/i,\r\n\tname : \"Agent of House Lyrandar\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Lyrandar\", \"\", \"\"]],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (sea/air)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"medani\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*medani).*$/i,\r\n\tname : \"Agent of House Medani\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Medani\", \"\", \"\"]],\r\n\ttoolProfs : [\"Disguise kit\", [\"Thieves' tools\", \"Dex\"]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"orien\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*orien).*$/i,\r\n\tname : \"Agent of House Orien\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Orien\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"phiarlan\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*phiarlan).*$/i,\r\n\tname : \"Agent of House Phiarlan\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Phiarlan\", \"\", \"\"]],\r\n\ttoolProfs : [\"Disguise kit\", [\"Musical instrument\", 1]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"sivis\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*sivis).*$/i,\r\n\tname : \"Agent of House Sivis\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Sivis\", \"\", \"\"]],\r\n\ttoolProfs : [\"Calligrapher's tools\", \"Forgery kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"tharashk\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*tharashk).*$/i,\r\n\tname : \"Agent of House Tharashk\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Tharashk\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"thuranni\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*thuranni).*$/i,\r\n\tname : \"Agent of House Thuranni\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Thuranni\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Musical instrument\", 1], \"Poisoner's kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"vadalis\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*vadalis).*$/i,\r\n\tname : \"Agent of House Vadalis\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Vadalis\", \"\", \"\"]],\r\n\ttoolProfs : [\"Herbalism kit\", \"Vehicles (land)\"]\r\n});\r\nBackgroundFeatureList[\"house connections\"] = {\r\n\tdescription : \"As an agent of my house, I can always get food and lodging for my friends at a house enclave. My house usually provides me with necessary supplies and transportation if it assigns me a mission. I have many old friends, mentors, and rivals in my house that I might run into and be willing to help me depending on my current standing in the house.\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 95]]\r\n};\r\n\r\n// Artificer class\r\nClassList.artificer = {\r\n\tregExpSearch : /^(?=.*artificer)(?!.*wizard).*$/i,\r\n\tname : \"Artificer\",\r\n\tsource : [[\"E:RLW\", 54], [\"T\", 9]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Con\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Investigation, Medicine, Nature, Perception, and Sleight of Hand\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\", [\"Artisan's tools\", 1]],\r\n\t\tsecondary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false, [\"Firearms\"]]\r\n\t},\r\n\tequipment : \"Artificer starting equipment:\" +\r\n\t\t\"\\n \\u2022 Any two simple weapons;\" +\r\n\t\t\"\\n \\u2022 A light crossbow and 20 bolts;\" +\r\n\t\t\"\\n \\u2022 Studded leather armor -or- scale mail;\" +\r\n\t\t\"\\n \\u2022 Thieves' tools and a dungeoneer's pack;\" +\r\n\t\t\"\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Artificer Specialist\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingFactorRoundupMulti : true,\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells : \"list\",\r\n\t\tprepared : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"magical tinkering\" : {\r\n\t\t\tname : \"Magical Tinkering\",\r\n\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I use thieves/artisan's tools to give 1 property to a nonmagical tiny object:\",\r\n\t\t\t\t\" \\u2022 Emit light (5-ft radius bright light, equal dim), an odor, or a nonverbal sound\",\r\n\t\t\t\t\" \\u2022 Static visual effect on one surface, or emit a 6-second recorded message when tapped\",\r\n\t\t\t\t\"If I instill a property in more objects than I can have active, the oldest loses its property\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Intelligence modifier of active objects\",\r\n\t\t\taction : [[\"action\", \" (add/remove)\"]],\r\n\t\t\t\"infuse item\" : {\r\n\t\t\t\tname : \"Infuse Item\",\r\n\t\t\t\textraname : \"Artificer 2\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can turn nonmagical objects into magic items using my infusions\",\r\n\t\t\t\t\t\"I can attune to it immediately; If I infuse too many items, the oldest loses its magic\",\r\n\t\t\t\t\t\"The infusion lasts until my death + my Int mod in days, but ends if I unlearn the infusion\",\r\n\t\t\t\t\t\"Each infusion can only be used in one item at a time and only in appropriate items\",\r\n\t\t\t\t\t\"Whenever I gain an artificer level, I can replace an infusion I know with another\",\r\n\t\t\t\t\t\"I can use an infused item as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"infuse item\",\r\n\t\t\t\tminlevel : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast prepared artificer cantrips/spells, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"To cast, I must use thieves' or artisan's tools I'm proficient with as a spellcasting focus\",\r\n\t\t\t\t\"I can cast my prepared artificer spells as rituals if they have the ritual tag\",\r\n\t\t\t\t\"Whenever I gain an artificer level, I can swap one artificer cantrip I know for another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\treturn [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4][idx] + \" cantrips known\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic && spName == \"artificer\" && spellObj.compMaterial === SpellsList[spellKey].compMaterial) {\r\n\t\t\t\t\t\t\tvar extraFocus = classes.known.artificer.subclass.indexOf(\"artillerist\") !== -1 && classes.known.artificer.level > 4 ? \"my arcane firearm, \" : classes.known.artificer.subclass.indexOf(\"armorer\") !== -1 && classes.known.artificer.level > 2 ? \"my arcane armor, \" : \"\";\r\n\t\t\t\t\t\t\tspellObj.compMaterial = (spellObj.compMaterial ? spellObj.compMaterial + \".\\n\\nAlso a\" : \"A\") + \"lways requires my artificer spellcasting focus: thieves' tools, any set of artisan's tools I'm proficient with, \" + extraFocus + \"or an item infused by me.\";\r\n\t\t\t\t\t\t\tif (GetFeatureChoice(\"classes\", \"artificer\", \"spellcasting\", true).indexOf(\"don't change component column on spell sheet\") != -1) {\r\n\t\t\t\t\t\t\t\t// do nothing if set to do so\r\n\t\t\t\t\t\t\t} else if (!spellObj.components) {\r\n\t\t\t\t\t\t\t\tspellObj.components = \"M\\u0192\";\r\n\t\t\t\t\t\t\t} else if (spellObj.components.indexOf(\"M\") == -1) {\r\n\t\t\t\t\t\t\t\tspellObj.components += \",M\\u0192\";\r\n\t\t\t\t\t\t\t} else if ((/M([^\\u0192\\u2020]|$)/).test(spellObj.components)) {\r\n\t\t\t\t\t\t\t\tspellObj.components = spellObj.components.replace(\"M\", \"M\\u0192\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My artificer spells always require me to use a spellcasting focus: thieves' tools, artisan's tools I'm proficient with, or an item infused by me.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\textrachoices : [\"Don't change component column on spell sheet\"],\r\n\t\t\textraname : \"Artificer Spellcasting\",\r\n\t\t\t\"don't change component column on spell sheet\" : {\r\n\t\t\t\tname : \"[Meta] Don't alter spell sheets\",\r\n\t\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\t\tdescription: desc(\"The automation will not add M\\u0192 to each artificer spell on the generated spell sheets\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"infuse item\" : {\r\n\t\t\tname : \"Infuse Item\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 12]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to add Artificer Infusions to the third page'),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Artificer Infusion\",\r\n\t\t\textrachoices : [\"Boots of the Winding Path (prereq: level 6 artificer)\", \"Enhanced Arcane Focus\", \"Enhanced Defense (armor)\", \"Enhanced Defense (shield)\", \"Enhanced Weapon\", \"Homunculus Servant\", \"Radiant Weapon (prereq: level 6 artificer)\", \"Repeating Shot\", \"Repulsion Shield (prereq: level 6 artificer)\", \"Resistant Armor (prereq: level 6 artificer)\", \"Returning Weapon\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12;\r\n\t\t\t}),\r\n\t\t\t\"boots of the winding path (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Boots of the Winding Path\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The wearer can use a bonus action to teleport up to 15 ft to an unoccupied space it can see\",\r\n\t\t\t\t\t\"It must be a space that the wearer had occupied some time during the current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"pair of boots; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Boots of the Winding Path\"]\r\n\t\t\t},\r\n\t\t\t\"enhanced arcane focus\" : {\r\n\t\t\t\tname : \"Enhanced Arcane Focus\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription: desc(\"The holder has a bonus to spell attack rolls and ignores half cover with spell attacks\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"rod/staff/wand; attunement; +\" + (n < 10 ? 1 : 2);\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Enhanced Arcane Focus +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"enhanced arcane focus, +1 or +2\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense (armor)\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (shield)\") == -1;\r\n\t\t\t\t},\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Armor +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"armor, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense (shield)\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (armor)\") == -1;\r\n\t\t\t\t},\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Shield +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"shield, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced weapon\" : {\r\n\t\t\t\tname : \"Enhanced Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"simple/martial weapon; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Weapon +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"weapon, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"homunculus servant\" : {\r\n\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The item I infuse becomes the heart of a homunculus that immediately forms around it\",\r\n\t\t\t\t\t\"I determine its appearance; It is friendly to me and my allies and obeys my commands\",\r\n\t\t\t\t\t'See \"Homunculus Servant\" on a companion page to see its game statistics'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"gem or crystal of 100+ gp\",\r\n\t\t\t\taction : [[\"bonus action\", \" (command)\"]],\r\n\t\t\t\tcreaturesAdd : [[\"Homunculus Servant\"]],\r\n\t\t\t\tcreatureOptions : [{\r\n\t\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\t\tsize : 5,\r\n\t\t\t\t\ttype : \"Construct\",\r\n\t\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\t\tac : 13,\r\n\t\t\t\t\thp : 3,\r\n\t\t\t\t\thd : [2, 4],\r\n\t\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\t\tspeed : \"20 ft, fly 30 ft\",\r\n\t\t\t\t\tscores : [4, 15, 12, 10, 10, 7],\r\n\t\t\t\t\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\r\n\t\t\t\t\tskills : {\r\n\t\t\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\t\t\"stealth\" : 4\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\t\tcondition_immunities : \"exhaustion, poisoned\",\r\n\t\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\t\tpassivePerception : 14,\r\n\t\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\t\tattacksAction : 1,\r\n\t\t\t\t\tattacks : [{\r\n\t\t\t\t\t\tname : \"Force Strike\",\r\n\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tfeatures : [{\r\n\t\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\ttraits : [{\r\n\t\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\t\tdescription : \"The homunculus regains 2d6 hit points whenever the Mending spell is cast on it. Its HP total is equal to 1 + its creator's artificer level + its creator's Intelligence modifier. If it or its creator dies, the homunculus vanishes, leaving its heart in its space.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Evasion\",\r\n\t\t\t\t\t\tdescription : \"If the homunculus is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw, and only half damage if it fails. It can't use this trait if it's incapacitated.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tactions : [{\r\n\t\t\t\t\t\tname : \"Channel Magic\",\r\n\t\t\t\t\t\tdescription : \"As a reaction, the homunculus delivers a spell cast by its creator that has a range of touch. The homunculus must be within 120 ft of its creator to do so.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\theader : \"Construct\",\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\t\tHDobj.alt.push(1 + intMod + artLvl);\r\n\t\t\t\t\t\t\tHDobj.altStr.push(\" = 1 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + \" + artLvl + \" from its creator's artificer level\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t\t}\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"radiant weapon (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Radiant Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon has a +1 bonus to attack and damage rolls made with it and it sheds light\",\r\n\t\t\t\t\t\"As a bonus action, its wielder can start/stop the light, 30-ft radius bright + 30 ft dim light\",\r\n\t\t\t\t\t\"The weapon has 4 charges, regaining 1d4 expended charges daily at dawn\",\r\n\t\t\t\t\t\"As a reaction when hit by an attack, the wielder can expend 1 charge to blind its attacker\",\r\n\t\t\t\t\t\"The attacker makes a Con save (my spell save DC) or is blinded until its next turn ends\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"simple/martial weapon; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Radiant Weapon\"]\r\n\t\t\t},\r\n\t\t\t\"repeating shot\" : {\r\n\t\t\t\tname : \"Repeating Shot\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon requiring ammunition has a +1 bonus to attack and damage rolls made with it\",\r\n\t\t\t\t\t\"It magically produces one piece of ammunition whenever it is used to make a ranged attack\",\r\n\t\t\t\t\t\"Thus, it doesn't require ammunition and ignores the loading property if it has it\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"weapon with ammo; requires attunement\",\r\n\t\t\t\tmagicitemsAdd : [\"Repeating Shot\"]\r\n\t\t\t},\r\n\t\t\t\"repulsion shield (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Repulsion Shield\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The shield gives its wearer an extra +1 bonus to AC; It has 4 charges, regaining 1d4 daily\",\r\n\t\t\t\t\t\"As a reaction when hit in melee, the wearer can use 1 charge to push the attacker 15 ft\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"shield; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Repulsion Shield\"]\r\n\t\t\t},\r\n\t\t\t\"resistant armor (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Resistant Armor\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The armor gives its wearer resistance to one type of damage, chosen at the time of infusion\",\r\n\t\t\t\t\t\"Choose from: acid,\tcold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Armor of Resistance\"]\r\n\t\t\t},\r\n\t\t\t\"returning weapon\" : {\r\n\t\t\t\tname : \"Returning Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : \"After being used for a ranged attack, the weapon returns immediately; +1 magical bonus\",\r\n\t\t\t\tadditional : \"weapon with the thrown property\",\r\n\t\t\t\tmagicitemsAdd : [\"Returning Weapon\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"the right tool for the job\" : {\r\n\t\t\tname : \"The Right Tool for the Job\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: \" [using thieves' or artisan's tools]\" + desc(\"In 1 hour (during a rest) I can create a set of artisan's tools that last until I do so again\"),\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Artificer Specialist\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a specialism and put it in the \"Class\" field on the first page',\r\n\t\t\t\t\"Choose either alchemist, artillerist, or battle smith\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"tool expertise\" : {\r\n\t\t\tname : \"Tool Expertise\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [expertise with all tools I'm proficient with]\",\r\n\t\t\tskillstxt : \"Expertise with all tools I'm proficient with\",\r\n\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t},\r\n\t\t\"flash of genius\" : {\r\n\t\t\tname : \"Flash of Genius\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"As a reaction when I or another in 30 ft make a check/save, I can add my Int mod to it\"),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"magic item adept\" : {\r\n\t\t\tname : \"Magic Item Adept\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"It takes me half the normal time and gold to craft common and uncommon magic items\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"attune to \" + (n < 14 ? 4 : n < 18 ? 5 : 6) + \" magic items\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"spell-storing item\" : {\r\n\t\t\tname : \"Spell-Storing Item\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 13]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can infuse a 1st-/2nd-level artificer spell into an item I touch\",\r\n\t\t\t\t\"It has to be a weapon or spellcasting focus for me; Stored spells are lost if I do this again\",\r\n\t\t\t\t\"The spell must have a casting time of 1 action, but I need not have it prepared\",\r\n\t\t\t\t\"A creature holding an infused item can use an action to cast the spell, using my abilities\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"cast stored spell\",\r\n\t\t\tusages : \"2\\xD7 Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(2, Number(What('Int Mod')) * 2);\",\r\n\t\t\trecovery : typePF ? \"LR\" : \"long rest\"\r\n\t\t},\r\n\t\t\"magic item savant\" : {\r\n\t\t\tname : \"Magic Item Savant\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [ignore class/race/spell/level attune require.]\"\r\n\t\t},\r\n\t\t\"soul of artifice\" : {\r\n\t\t\tname : \"Soul of Artifice\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : \" [+1 on all saves per attuned magic item]\\n   As a reaction when I'm reduced to 0 HP, I can end one infusion to drop to 1 HP instead\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tsavetxt : {\r\n\t\t\t\ttext : [\"+1 to all saves per attuned magic item\"]\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tprereqLvl6 : function(v) { return classes.known.artificer.level >= 6; },\r\n\tprereqLvl10 : function(v) { return classes.known.artificer.level >= 10; },\r\n\tprereqLvl14 : function(v) { return classes.known.artificer.level >= 14; },\r\n};\r\n\r\n// Set the Artificer infusion list for Replicate Magic Item\r\nRunFunctionAtEnd(function() {\r\n\tvar artMi = [\r\n\t\t// 2nd-level artificer\r\n\t\t[\"alchemy jug\", 2],\r\n\t\t[\"bag of holding\", 2],\r\n\t\t[\"cap of water breathing\", 2],\r\n\t\t[\"goggles of night\", 2],\r\n\t\t[\"rope of climbing\", 2],\r\n\t\t[\"sending stones\", 2],\r\n\t\t[\"wand of magic detection\", 2],\r\n\t\t[\"wand of secrets\", 2],\r\n\t\t// 6th-level artificer\r\n\t\t[\"boots of elvenkind\", 6],\r\n\t\t[\"cloak of elvenkind\", 6],\r\n\t\t[\"cloak of the manta ray\", 6],\r\n\t\t[\"eyes of charming\", 6],\r\n\t\t[\"gloves of thievery\", 6],\r\n\t\t[\"lantern of revealing\", 6],\r\n\t\t[\"pipes of haunting\", 6],\r\n\t\t[\"ring of water walking\", 6],\r\n\t\t// 10th-level artificer\r\n\t\t[\"boots of striding and springing\", 10],\r\n\t\t[\"boots of the winterlands\", 10],\r\n\t\t[\"bracers of archery\", 10],\r\n\t\t[\"brooch of shielding\", 10],\r\n\t\t[\"cloak of protection\", 10],\r\n\t\t[\"eyes of the eagle\", 10],\r\n\t\t[\"gauntlets of ogre power\", 10],\r\n\t\t[\"gloves of missile snaring\", 10],\r\n\t\t[\"gloves of swimming and climbing\", 10],\r\n\t\t[\"hat of disguise\", 10],\r\n\t\t[\"headband of intellect\", 10],\r\n\t\t[\"helm of telepathy\", 10],\r\n\t\t[\"medallion of thoughts\", 10],\r\n\t\t[\"necklace of adaptation\", 10], // TCoE addition\r\n\t\t[\"periapt of wound closure\", 10],\r\n\t\t[\"pipes of the sewers\", 10],\r\n\t\t[\"quiver of ehlonna\", 10],\r\n\t\t[\"ring of jumping\", 10],\r\n\t\t[\"ring of mind shielding\", 10],\r\n\t\t[\"slippers of spider climbing\", 10],\r\n\t\t[\"ventilating lung\", 10],\r\n\t\t[\"winged boots\", 10],\r\n\t\t// 14th-level artificer\r\n\t\t[\"amulet of health\", 14],\r\n\t\t[\"arcane propulsion arm\", 14],\r\n\t\t[\"belt of giant strength\", 14, \"hill (str 21, rare)\"],\r\n\t\t[\"boots of levitation\", 14],\r\n\t\t[\"boots of speed\", 14],\r\n\t\t[\"bracers of defense\", 14],\r\n\t\t[\"cloak of the bat\", 14],\r\n\t\t[\"dimensional shackles\", 14],\r\n\t\t[\"gem of seeing\", 14],\r\n\t\t[\"horn of blasting\", 14],\r\n\t\t[\"ring of free action\", 14],\r\n\t\t[\"ring of protection\", 14],\r\n\t\t[\"ring of the ram\", 14]\r\n\t];\r\n\t// add all common items (except potions and scrolls)\r\n\tfor (var mi in MagicItemsList) {\r\n\t\tvar aMI = MagicItemsList[mi];\r\n\t\tif (aMI.type && !(/potion|scroll/i).test(aMI.type) &&\r\n\t\t\t( (!aMI.rarity && aMI.choices) || (aMI.rarity && aMI.rarity.toLowerCase() === \"common\") )\r\n\t\t) {\r\n\t\t\t// only look at choices if the main object has no rarity (i.e. the choices have different rarities)\r\n\t\t\tif (!aMI.rarity && aMI.choices) {\r\n\t\t\t\tfor (var c = 0; c < aMI.choices.length; c++) {\r\n\t\t\t\t\tvar choiceNmLC = aMI.choices[c].toLowerCase();\r\n\t\t\t\t\tvar aMIchoice = aMI[choiceNmLC];\r\n\t\t\t\t\t// skip if not common rarity or a potion or a scroll\r\n\t\t\t\t\tif (!aMIchoice || !aMIchoice.rarity || aMIchoice.rarity.toLowerCase() !== \"common\" || (/potion|scroll/i).test(aMIchoice.type)) continue;\r\n\t\t\t\t\tartMi.push([mi, 0, choiceNmLC]);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// the main object has rarity \"common\", so add it as a whole\r\n\t\t\t\tartMi.push([mi]);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tvar theObj = ClassList.artificer.features[\"infuse item\"];\r\n\tfor (var a = 0; a < artMi.length; a++) {\r\n\t\tvar MI0 = artMi[a][0];\r\n\t\tvar MI1 = artMi[a][1];\r\n\t\tvar MI2 = artMi[a][2];\r\n\t\tvar anArtMi = MagicItemsList[MI0];\r\n\t\tif (!anArtMi) continue;\r\n\t\tif (MI2 && anArtMi[MI2]) {\r\n\t\t\tanArtMi = {\r\n\t\t\t\tname : anArtMi[MI2].name ? anArtMi[MI2].name : anArtMi.name + \" [\" + MI2.capitalize() + \"]\",\r\n\t\t\t\trarity : anArtMi[MI2].rarity ? anArtMi[MI2].rarity : anArtMi.rarity,\r\n\t\t\t\tsource : anArtMi[MI2].source ? anArtMi[MI2].source : anArtMi.source,\r\n\t\t\t\tattunement : anArtMi[MI2].attunement !== undefined ? anArtMi[MI2].attunement : anArtMi.attunement\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar theI = anArtMi.name + (MI1 ? \" (prereq: level \" + MI1 + \" artificer)\" : \"\");\r\n\t\tvar theILC = theI.toLowerCase();\r\n\t\tif (theObj[theILC]) continue;\r\n\t\ttheObj[theILC] = {\r\n\t\t\tname : anArtMi.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : anArtMi.source,\r\n\t\t\tmagicitemsAdd : [anArtMi.name],\r\n\t\t\tadditional : anArtMi.attunement ? \"requires attunement\" : undefined,\r\n\t\t\tprereqeval : MI1 && MI1 > 2 ? ClassList.artificer[\"prereqLvl\" + MI1] : undefined,\r\n\t\t\tsubmenu : \"Replicate Magic Item\" + (MI1 ? \" (prereq: level \" + (\" \"+MI1).slice(-2) + \" artificer)\" : \" (common magic items) [\" + getLetterRange(anArtMi.name, [\"A-F\", \"G-Q\", \"R-Z\"]) + \"]\")\r\n\t\t};\r\n\t\ttheObj.extrachoices.push(theI);\r\n\t};\r\n});\r\n\r\n// Add the Alchemist specialism\r\nAddSubClass(\"artificer\", \"alchemist\", {\r\n\tregExpSearch : /^(?=.*alchemist)(?!.*wizard).*$/i,\r\n\tsubname : \"Alchemist\",\r\n\tfullname : \"Alchemist\",\r\n\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [proficient with alchemist's supplies]\",\r\n\t\t\ttoolProfs : [\"Alchemist's supplies\"],\r\n\t\t\tspellcastingExtra : [\"healing word\", \"ray of sickness\", \"flaming sphere\", \"melf's acid arrow\", \"gaseous form\", \"mass healing word\", \"blight\", \"death ward\", \"cloudkill\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Experimental Elixir\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest I can produce a number of elixirs in empty flasks I touch\",\r\n\t\t\t\t\"Also, as an action, I can expend a spell slot to create one elixir in a touched empty flask\",\r\n\t\t\t\t\"I need alchemist supplies on my person to do this; An elixir lasts until my next long rest\",\r\n\t\t\t\t\"For their effects, see the experimental elixir table on a Notes page; They work like potions\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 6 ? 1 : n < 15 ? 2 : 3) + \" elixir\" + (n < 6 ? \"\" : \"s\");\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Experimental Elixir Table\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Whenever I finish a long rest, I can magically produce a number of experimental elixir in empty flasks I touch. I can create one at 3rd level, two at 6th level, and three at 15th level.\",\r\n\t\t\t\t\t\"Creating an experimental elixir requires me to have alchemist's supplies on my person, and any elixir created like this lasts until it is drunk or until the end of my next long rest.\",\r\n\t\t\t\t\t\"I can create additional experimental elixirs by expending a spell slot of 1st level or higher for each one. When I do so, I use my action to create the elixir in an empty flask I touch.\",\r\n\t\t\t\t\t\"As an action, a creature can drink the elixir or administer it to an incapacitated creature.\",\r\n\t\t\t\t\t\"The effect of an elixir when someone drinks it is found on the table below. Roll to determine the effect for each elixir I create when finishing a long rest. I can choose the effect from the table for those created by expending a spell slot.\",\r\n\t\t\t\t\t\"\\n  D6\\tEFFECT\",\r\n\t\t\t\t\t\"1\\tHealing: The drinker regains a number of hit points equal to 2d4 + my Intelligence modifier.\",\r\n\t\t\t\t\t\"2\\tSwiftness: The drinker's walking speed increases by 10 ft for 1 hour.\",\r\n\t\t\t\t\t\"3\\tResilience: The drinker gains a +1 bonus to AC for 10 minutes.\",\r\n\t\t\t\t\t\"4\\tBoldness: The drinker can roll a d4 and add the number rolled to every attack roll and saving throw they make for the next minute.\",\r\n\t\t\t\t\t\"5\\tFlight: The drinker gains a flying speed of 10 ft for 10 minutes.\",\r\n\t\t\t\t\t\"6\\tTransformation: The drinker's body is transformed as if by the alter self spell. The drinker determines the transformation caused by the spell, the effects of which last for 10 minutes.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Alchemical Savant\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 15]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast spells using alchemist's supplies as my spellcasting focus, I can enhance them\",\r\n\t\t\t\t\"I add my Int mod to one roll of acid, fire, necrotic, or poison damage, or restoring HP\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1 && (/acid|fire|necrotic|poison/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells that deal acid, fire, necrotic, or poison damage which I cast while using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one damage die roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\tvar toAdd = Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"acid|fire|necro\\\\.?|necrotic|poison\", toAdd, true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", toAdd, true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells I cast using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one die rolled for dealing acid, fire, necrotic, or poison damage, or when restoring hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Restorative Reagents\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Drinking my experimental elixirs now also grants 2d6 + my Int mod in temp HP (min 1)\",\r\n\t\t\t\t\"I can cast Lesser Restoration with alchemist's supplies without a spell slot (Int mod times)\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tlimfeaname : \"Restorative Reagents: Lesser Restoration\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Restorative Reagents\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"Sp\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"lesser restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tchanges : \"When using my Restorative Reagents class feature, I can cast Lesser Restoration a number of times per long rest equal to my Intelligence modifier. To do so, I have to use alchemist's supplies as my spellcasting focus.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Chemical Mastery\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tadditional: \"each spell 1\\xD7 per long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to acid and poison damage and immunity to being poisoned\",\r\n\t\t\t\t\"I can cast Greater Restoration and Heal each once per long rest without a spell slot\",\r\n\t\t\t\t\"I need alchemist's supplies as a focus for it, but the spells require no material components\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Acid\", \"Poison\"],\r\n\t\t\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Chemical Mastery\",\r\n\t\t\t\tspells : [\"greater restoration\", \"heal\"],\r\n\t\t\t\tselection : [\"greater restoration\", \"heal\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"greater restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tdescription : \"Reduce exhaustion 1 lvl or end charm, petrify, curse, one ability score reduction, or max HP reduction\",\r\n\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Greater Restoration once per long rest without using a spell slot or requiring other material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"heal\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Heal once per long rest without using a spell slot.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the Artillerist specialism\r\nAddSubClass(\"artificer\", \"artillerist\", {\r\n\tregExpSearch : /^(?=.*artillerist)(?!.*wizard).*$/i,\r\n\tsubname : \"Artillerist\",\r\n\tfullname : \"Artillerist\",\r\n\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [proficient with woodcarver's tools]\",\r\n\t\t\ttoolProfs : [\"Woodcarver's tools\"],\r\n\t\t\tspellcastingExtra : [\"shield\", \"thunderwave\", \"scorching ray\", \"shatter\", \"fireball\", \"wind wall\", \"ice storm\", \"wall of fire\", \"cone of cold\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use woodcarver's or smith's tools to create an eldritch cannon in 5 ft\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+) to create one cannon\",\r\n\t\t\t\t\"I decide its size (Small/Tiny), appearance, type: flamethrower, force ballista, or protector\",\r\n\t\t\t\t\"It disappears after 1 hour, when reduced to 0 HP, or if I dismiss it as an action\",\r\n\t\t\t\t\"As a bonus action when within 60 ft of it, I can activate it to move and do its action\",\r\n\t\t\t\t\"I can't have multiple cannons; Select \\\"Eldritch Cannon\\\" on a companion page for its stats\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 15 ? \"1 cannon\" : \"2 cannons\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (create/dismiss)\"], [\"bonus action\", \" (activate)\"]],\r\n\t\t\tcreaturesAdd : [[\"Eldritch Cannon\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\t\tsize : [4, 5],\r\n\t\t\t\ttype : \"Object\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 18,\r\n\t\t\t\thp : 5,\r\n\t\t\t\thd : [\"\", \"\"],\r\n\t\t\t\tspeed : \"15 ft, climb 15 ft\",\r\n\t\t\t\tscores : [10, 10, 10, 10, 10, 10],\r\n\t\t\t\tdamage_immunities : \"poison, psychic\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 0,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flamethrower\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [2, 8, \"fire\"],\r\n\t\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\t\tdescription : \"Dex save, success - half damage; Unattended flammable objects ignite\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"The cannon exhales fire in an adjacent 15-ft cone that its creator designates. Each creature in that area must make a Dexterity saving throw against its creator's artificer spell save DC, taking 2d8 fire damage on a failed save or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Force Ballista\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [2, 8, \"force\"],\r\n\t\t\t\t\trange : \"120 ft\",\r\n\t\t\t\t\tdescription : \"Creature hit is pushed 5 ft away\",\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"The cannon's creator makes a ranged spell attack, originating from the cannon, at one creature or object within 120 ft of it. On a hit, the target takes 2d8 force damage, and if the target is a creature, it is pushed up to 5 ft away from the cannon.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Detonate\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [3, 8, \"force\"],\r\n\t\t\t\t\trange : \"20-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save, success - half damage; Destroys cannon\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"As an action, its creator can command the cannon to detonate if its creator is within 60 ft of it. Doing so destroys the cannon and forces each creature within 20 ft of it to make a Dexterity saving throw against its creator's artificer spell save DC, taking 3d8 force damage on a failed save or half as much damage on a successful one.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\tdescription : \"The cannon regains 2d6 HP whenever Mending is cast on it.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Cannon Type\",\r\n\t\t\t\t\tdescription : \"Upon creation, the creator decides what type of cannon it is: Flamethrower, Force Ballista, or Protector. What feature/attack it can use depends on its type.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Protector\",\r\n\t\t\t\t\tdescription : \"The cannon emits a burst of positive energy that grants itself and each creature of its creator's choice within 10 ft of it a number of temporary hit points equal to 1d8 + its creator's Intelligence modifier (minimum of +1).\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"As an object, the cannon only acts when activated by its creator, uses its creator's artificer spell attack and save DC, and has five times the artificer level in HP. It disappears after 1 hour, when reduced to 0 HP, or when its creator dismisses it as an action.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Activation\",\r\n\t\t\t\t\tdescription : \"The creator of the cannon can activate it as a bonus action while within 60 ft of it. Once activated, the cannon does as instructed, moves and uses the action associated with its type: flamethrower attack, force ballista attack, or protector feature.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Detonate (Artillerist 9)\",\r\n\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\tdescription : \"The creator of the cannon, can use an action to detonate the cannon when within 60 ft of it, see the attack section. The cannon's attacks now deal 3d8 damage.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// add the Detonate attack entry\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"Detonate\");\r\n\t\t\t\t\t\t// Upgrade the damage for the attacks\r\n\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"3d8\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// remove the Detonate attack entry\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t\t\t// Reset the damage for the attacks\r\n\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"2d8\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shimmering Field (Artillerist 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The creator of the cannon and their allies have half cover while within 10 ft of the cannon.\"\r\n\t\t\t\t}],\r\n\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\theader : \"Object\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\tHDobj.alt.push(5 * artLvl);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t},\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// remove the Detonate attack if adding this creature before artificer level 9\r\n\t\t\t\t\tif (lvl[0] < 9) Value(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Arcane Firearm\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 18]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : \" [lasts until I use this feature again]\" + desc([\r\n\t\t\t\t\"After a long rest, I can use woodcarver's tools to enhance a wand, staff, or rod\",\r\n\t\t\t\t\"If I use this as my spellcasting focus for an artificer spell, I add +1d8 to one damage\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\r\n\t\t\t\t\t\t\tvar d8Regex = /(\\d+)d8/;\r\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd8') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd8', 'Cd8');\r\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd8') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd8', 'Qd8');\r\n\t\t\t\t\t\t\t} else if (d8Regex.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d8Regex, Number(fields.Damage_Die.replace(d8Regex, '$1')) + 1 + 'd8');\r\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d8 dmg\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d8';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\",\r\n\t\t\t\t\t10\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d8\", true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Explosive Cannon\",\r\n\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"My eldritch cannons deal +1d8 damage; As an action, I can detonate a cannon in 60 ft\"),\r\n\t\t\taction : [[\"action\", \"Eldritch Cannon (detonate)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Fortified Position\",\r\n\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : \" [cannons grant half cover in 10 ft to allies]\" + desc([\r\n\t\t\t\t\"I can now have two cannons at the same time and activate both with one bonus action\",\r\n\t\t\t\t\"I can create 2 eldritch cannons with the same action (still only one with a spell slot)\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the Battle Smith specialism\r\nAddSubClass(\"artificer\", \"battle smith\", {\r\n\tregExpSearch : /^(?=.*battle)(?=.*smith)(?!.*wizard).*$/i,\r\n\tsubname : \"Battle Smith\",\r\n\tfullname : \"Battle Smith\",\r\n\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Battle Ready \\u0026 Tool Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with martial weapons and smith's tools\",\r\n\t\t\t\t\"I can use my Intelligence modifier instead of Strength or Dexterity for magic weapons\"\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tspellcastingExtra : [\"heroism\", \"shield\", \"branding smite\", \"warding bond\", \"aura of vitality\", \"conjure barrage\", \"aura of purity\", \"fire shield\", \"banishing smite\", \"mass cure wounds\"],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && (v.theWea.isMagicWeapon || v.thisWeapon[1]) && (fields.Mod === 1 || fields.Mod === 2) && Number(What(\"Int\")) > Number(What(fields.Mod === 1 ? \"Str\" : \"Dex\"))) {\r\n\t\t\t\t\t\t\tfields.Mod = 4;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'I can use my Intelligence modifier instead of Strength or Dexterity for the attack and damage rolls of magic weapons.'\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Steel Defender\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I end a long rest, I can use smith's tools to create a steel defender\",\r\n\t\t\t\t\"I determine its appearance; It obeys my commands and it acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can take reactions and move on its turn even if I don't command it\",\r\n\t\t\t\t\"I can't have multiple at once; Select \\\"Steel Defender\\\" on a companion page for its stats\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (command)\"], [\"action\", \" (restore)\"]],\r\n\t\t\tcreaturesAdd : [[\"Steel Defender\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Steel Defender\",\r\n\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : 15,\r\n\t\t\t\thp : 12,\r\n\t\t\t\thd : [2, 8],\r\n\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [14, 12, 14, 4, 10, 6],\r\n\t\t\t\tsaves : [\"\", 3, 4, \"\", \"\", \"\"],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"athletics\" : 4,\r\n\t\t\t\t\t\"perception\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\t\t\t\tpassivePerception : 14,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Rend\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\tability : 0,\r\n\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"After using the reaction, the attacker takes this damage, no attack roll required\",\r\n\t\t\t\t\tmodifiers : [\"-Prof\", \"oInt\"],\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The steel defender obeys the commands of its creator and shares its proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Vigilant\",\r\n\t\t\t\t\tdescription : \"The \" + (typePF ? \"\" : \"steel \") + \"defender can't be surprised.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\tdescription : \"The steel defender regains 2d6 HP whenever the Mending spell is cast on it. Its HP total is equal to 2 + its creator's artificer level times five + its creator's Int mod. Within an hour of its death, while within 5 ft, its creator can take an action to use smith's tools and expend a spell slot to have it return to full HP after 1 minute. If its creator dies, \" + (typePF ? \"the steel defender also perishes\" : \"so does it\") + \".\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Repair (3/Day)\",\r\n\t\t\t\t\tdescription : \"As an action, the \" + (typePF ? \"\" : \"magical mechanisms inside the \") + \"steel defender restore\" + (typePF ? \"s\" : \"\") + \" 2d8 + its proficiency bonus in HP to itself or to one construct or object within 5 ft of it.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\tdescription : typePF ? \"As a reaction, the steel defender imposes disadvantage on the attack roll of one creature it can see that is within 5 ft of it, provided the attack roll is against a creature other than the defender.\" : \"As a reaction, the defender imposes disadv. on the attack roll of one creature it can see within 5 ft, provided the creature attacks another than the defender.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Arcane Jolt (Battle Smith 9)\",\r\n\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"Arcane Jolt (1d6): On hit, deal force damage or heal target in 30 ft\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Improved Defender (Battle Smith 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The steel defender's Deflect Attack now deals 1d4 + its creator's Intelligence modifier in force damage to the attacker.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"Comp.Use.AC\", mod : 2, text : \"The steel defender gains a +2 bonus to its AC (base AC of 15).\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (1d6)\", \"Arcane Jolt (2d6)\"));\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"Deflect Attack (reaction)\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (2d6)\", \"Arcane Jolt (1d6)\"));\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\theader : \"Construct\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\tvar artLvl5 = 5 * artLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(2 + intMod + artLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 2 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level (\" + artLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t},\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// remove the Deflect Attack (reaction) attack if adding this creature before artificer level 15\r\n\t\t\t\t\tif (lvl[0] < 15) Value(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Arcane Jolt\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar descr9 = desc([\r\n\t\t\t\t\t\"Once per turn when my steel defender or magic weapon hits a target, I can have it:\",\r\n\t\t\t\t\t\" \\u2022 Deal an extra +2d6 force damage to the target\",\r\n\t\t\t\t\t\" \\u2022 Restore 2d6 HP to another target within 30 ft of the one that was hit\"\r\n\t\t\t\t]);\r\n\t\t\t\tvar descr15 = descr9.replace(/2d6/g, '4d6');\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 9 ? \"\" : n < 15 ? descr9 : descr15;\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 9 ? \"\" : (n < 15 ? 2 : 4) + \"d6\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isMagicWeapon || v.thisWeapon[1]) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Arcane Jolt (' + (classes.known.artificer && classes.known.artificer.level >= 15 ? 4 : 2) + 'd6)';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn when I hit with a magic weapon or my steel defender hits with its attack, I can use my Arcane Jolt class feature to have the hit either deal extra force damage or heal somebody within 30 ft of the target hit.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Improved Defender\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My defender's Deflect Attack now deals its attacker 1d4 + my Int mod force damage\",\r\n\t\t\t\t\"My arcane jolt damage/healing increases to 4d6; My steel defender gains +2 AC\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the new special magic items for the artificer class (infusions)\r\nMagicItemsList[\"boots of the winding path\"] = {\r\n\tname : \"Boots of the Winding Path\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 21], [\"UA:A2\", 9], [\"UA:A3\", 12]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While wearing these boots, I can teleport up to 15 ft as a bonus action to an unoccupied space I can see, as long as I occupied that space at some point during the current turn.\",\r\n\tdescriptionFull : \"While wearing these boots, a creature can teleport up to 15 feet as a bonus action to an unoccupied space the creature can see. The creature must have occupied that space at some point during the current turn.\",\r\n\tattunement : true,\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"enhanced arcane focus, +1 or +2\"] = {\r\n\tname : \"Enhanced Arcane Focus, +1 or +2\",\r\n\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff)).*$/i,\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls (or +2 if the artificer that created it is level 10 or higher). In addition, I ignore half cover when making a spell attack.\",\r\n\tdescriptionFull : \"While holding this rod, staff, or wand, a creature gains a +1 bonus to spell attack rolls. In addition, the creature ignores half cover when making a spell attack.\\n   The bonus increases to +2 when it is created by someone with 10 levels or more in the artificer class.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tchoices : [\"+1 to spell attacks\", \"+2 to spell attacks (artificer level 10+)\"],\r\n\t\"+1 to spell attacks\" : {\r\n\t\tname : \"Enhanced Arcane Focus +1\",\r\n\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?=.*\\+1)(?!.*\\+2).*$/i,\r\n\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks (artificer level 10+)\" : {\r\n\t\tname : \"Enhanced Arcane Focus +2\",\r\n\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?!.*\\+1)(?=.*\\+2).*$/i,\r\n\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +2 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +2 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"radiant weapon\"] = {\r\n\tname : \"Radiant Weapon\",\r\n\tnameTest : \"Radiant\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\ttype : \"weapon (any)\",\r\n\tdescription : \"This item adds a +1 on its to hit and damage, has 4 charges, and regains 1d4 at dawn. As a bonus action, I can have it start/stop shedding light, bright in 30 ft, dim in another 30 ft. As a reaction if hit by an attack, I can use 1 charge to blind the attacker until the end of its next turn unless it makes a Con save (my spell DC).\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it. While holding it, the wielder can take a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet. The wielder can extinguish the light as a bonus action.\\n   The weapon has 4 charges. As a reaction immediately after being hit by an attack, the wielder can expend 1 charge and cause the attacker to be blinded until the end of the attacker's next turn, unless the attacker succeeds on a Constitution saving throw against your spell save DC. The weapon regains 1d4 expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"blind attacker; regains 1d4\",\r\n\taction : [[\"bonus action\", \" (start/stop light)\"], [\"reaction\", \" (1 charge; after hit)\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reaction to blind attacker';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Radiant\" in the name of a weapon, it will be treated as the magic weapon Radiant Weapon. It has +1 to hit and damage and can be used to shed light and to blind an attacker.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"repeating shot\"] = {\r\n\tname : \"Repeating Shot\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 22], [\"UA:A3\", 13]],\r\n\ttype : \"weapon (any with ammunition)\",\r\n\tdescription : \"When I use this magic weapon to make a ranged attack, it magically produces one piece of ammunition and grants a +1 bonus to its attack and damage rolls. Thus, it doesn't require ammunition and ignores the loading property if it has it. The produced ammunition vanishes once it hits or misses a target.\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it when it's used to make a ranged attack, and it ignores the loading property if it has it.\\n   If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the weapon vanishes the instant after it hits or misses a target.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/ammunition/i).test(inObj.description);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '').replace(/(;|,)? ?loading/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Repeating Shot\" in the name of a weapon with the ammunition property, it will be treated as the magic weapon Repeating Shot. It has +1 to hit and damage and produces its own ammunition, thus its loading property is removed if it has it.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif ((/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText) && !v.isSpell) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"repulsion shield\"] = {\r\n\tname : \"Repulsion Shield\",\r\n\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\ttype : \"shield\",\r\n\tdescription : \"I gain an additional +1 bonus to Armor Class while wielding this shield. The shield has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction immediately after being hit by a melee attack, I can expend 1 charge to push the attacker up to 15 ft away.\",\r\n\tdescriptionFull : \"A creature gains a +1 bonus to Armor Class while wielding this shield.\\n   The shield has 4 charges. While holding it, the wielder can use a reaction immediately after being hit by a melee attack to expend 1 of the shield's charges and push the attacker up to 15 feet away. The shield regains 1d4 expended charges daily at dawn.\",\r\n\tweight : 6,\r\n\tattunement : true,\r\n\tusages : 4,\r\n\tadditional : \"regains 1d4\",\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (1 charge)\"]],\r\n\tshieldAdd : [\"Repulsion Shield\", 3, 6]\r\n}\r\nMagicItemsList[\"returning weapon\"] = {\r\n\tname : \"Returning Weapon\",\r\n\tnameTest : \"Returning\",\r\n\tsource : [[\"E:RLW\", 63], [\"T\", 23], [\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\ttype : \"weapon (any thrown)\",\r\n\tdescription : \"This magic weapon grants a +1 bonus to attack and damage rolls I make with it. It returns to my hand immediately after I use it to make a ranged attack.\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it, and it returns to the wielder's hand immediately after it is used to make a ranged attack.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !/\\bthrown\\b/i.test(inObj.description);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Returns immediately after ranged attack';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Returning\" in the name of a thrown weapon, it will be treated as the magic weapon Returning Weapon. It has +1 to hit and damage and returns to my hand immediately after I use it to make a ranged attack.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\n\r\n// Magic Items\r\nMagicItemsList[\"arcane propulsion arm\"] = {\r\n\tname : \"Arcane Propulsion Arm\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"Once attached to my wrist, elbow, or shoulder, this prosthetic magically forms a copy of the appendage it's replacing. It can't be removed against my will, but I can as an action. I can use it as a proficient melee weapon with the thrown property. After a throwing attack with it, it returns and reattaches immediately.\",\r\n\tdescriptionFull : \"This prosthetic appendage was developed by artificers of House Cannith. To attune to this item, you must attach it to your arm at the wrist, elbow, or shoulder, at which point the prosthetic magically forms a copy of the appendage it's replacing.\\n\\nWhile attached, the prosthetic provides these benefits:\\n \\u2022 The prosthetic is a fully capable part of your body.\\n \\u2022 You can take an action to remove the prosthetic, and it removes itself if your attunement to it ends. It can't be removed against your will.\\n \\u2022 The prosthetic is a magic melee weapon with which you're proficient. It deals 1d8 force damage on a hit and has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When thrown, the prosthetic detaches and flies at the target of the attack, then immediately returns to you and reattaches.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature missing a hand or an arm\",\r\n\tprereqeval : function (v) { return false; },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arcane)(?=.*propulsion)(?=.*arm).*$/i,\r\n\t\tname : \"Arcane Propulsion Arm\",\r\n\t\tsource : [[\"E:RLW\", 276]],\r\n\t\tability : 1,\r\n\t\ttype : \"AlwaysProf\",\r\n\t\tdamage : [1, 8, \"force\"],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Thrown; Returns immediately after thrown\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"armblade\"] = {\r\n\tname : \"Armblade\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"weapon (any one-handed melee weapon)\",\r\n\trarity : \"common\",\r\n\tdescription : \"While attuned to it, this magic weapon is attached to my arm and inseparable from me. As a bonus action, I can retract it into my forearm or extend it from there. While it is extended, I can use the weapon as if I was holding it, and I can't use that hand for other purposes.\",\r\n\tdescriptionFull : \"An armblade is a magic weapon that attaches to your arm, becoming inseparable from you as long as you're attuned to it. To attune to this item, you must hold it against your forearm for the entire attunement period.\\n   As a bonus action, you can retract the armblade into your forearm or extend it from there. While it is extended, you can use the weapon as if you were holding it, and you can't use that hand for other purposes.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn (!inObj.description || (/two.{0,3}handed/i).test(inObj.description)) || (!inObj.range || !(/melee/i).test(inObj.range));\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"belashyrra's beholder crown\"] = {\r\n\tname : \"Belashyrra's Beholder Crown\",\r\n\tnameAlt : \"Beholder Crown\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tdescription : \"This symbiotic crown of dark purple and mauve stone attaches to my skull and removing it requires ending a curse. It allows me to see normally in magical and normal darkness (devil's sight) out to 120 ft. It has 10 charges, regaining 1d6+3 at dawn, which I can use to cast several spells with spell save DC 16.\",\r\n\tdescriptionLong : \"This symbiotic crown of dark purple and mauve stone attaches to my skull once I attune to it and removing it requires ending a curse. It allows me to see normally in magical and normal darkness (devil's sight) out to 120 ft. It has 10 charges, regaining 1d6+3 at dawn, which I can use to cast several spells with spell save DC 16. These are: Charm Person (1 charge), Disintegrate (6 charges), Fear (3 charges), Finger of Death (7 charges), Flesh to Stone (6 charges), Hold Person (2 charges), Ray of Enfeeblement (2 charges), Sleep (1 charge), Slow (3 charges), and Telekinesis (5 charges).\",\r\n\tdescriptionFull : \"This symbiotic crown is carved from dark purple and mauve stone, with ten points like stalks set with gemstones resembling the eyestalks of a beholder. To attune to this item, you must wear it on your head for the entire attunement period, during which the crown's hidden tendrils burrow into your scalp to bond with your skull.\\n   While wearing the crown, you can see normally in darkness, both magical and nonmagical, to a distance of 120 feet.\\n   \" + toUni(\"Spells\") + \". The crown has 10 charges. While wearing it, you can use an action to expend some of its charges to cast one of the following spells from it (spell save DC 16): charm person (1 charge), disintegrate (6 charges), fear (3 charges), finger of death (7 charges), flesh to stone (6 charges), hold person (2 charges), ray of enfeeblement (2 charges), sleep (1 charge), slow (3 charges), telekinesis (5 charges).\\n   The crown regains 1d6 + 3 expended charges daily at dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The crown can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the crown ends, and it detaches from you.\\n   The daelkyr Belashyrra made these crowns. While on the same plane of existence as the crown, Belashyrra can see through its eyestalks.\",\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+3\",\r\n\tfixedDC : 16,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"charm person\", \"sleep\"],\r\n\t\tselection : [\"charm person\", \"sleep\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"hold person\", \"ray of enfeeblement\"],\r\n\t\tselection : [\"hold person\", \"ray of enfeeblement\"],\r\n\t\tfirstCol : 2,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"fear\", \"slow\"],\r\n\t\tselection : [\"fear\", \"slow\"],\r\n\t\tfirstCol : 3,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"5 charges\",\r\n\t\tspells : [\"telekinesis\"],\r\n\t\tselection : [\"telekinesis\"],\r\n\t\tfirstCol : 5\r\n\t}, {\r\n\t\tname : \"6 charges\",\r\n\t\tspells : [\"disintegrate\", \"flesh to stone\"],\r\n\t\tselection : [\"disintegrate\", \"flesh to stone\"],\r\n\t\tfirstCol : 6,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"7 charges\",\r\n\t\tspells : [\"finger of death\"],\r\n\t\tselection : [\"finger of death\"],\r\n\t\tfirstCol : 7\r\n\t}]\r\n}\r\nMagicItemsList[\"cleansing stone\"] = {\r\n\tname : \"Cleansing Stone\",\r\n\tsource : [[\"E:RLW\", 276], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This stone sphere is 1 ft in diameter and engraved with mystic sigils. As an action while touching it, I can activate it to remove dirt and grime from my garments and my person.\",\r\n\tdescriptionFull : \"A cleansing stone is a sphere 1 foot in diameter, engraved with mystic sigils. When touching the stone, you can use an action to activate it and remove dirt and grime from your garments and your person.\\n   Such stones are often embedded in pedestals in public squares in Aundair or in high-end Ghallanda inns.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweight : 88 // using average marble/limestone density of 2.711 g/cm3\r\n}\r\nvar ERftLW_docentFullDescription = [\r\n\t\"A docent is a small metal sphere, about 2 inches across, studded with dragonshards. To attune to a docent, you must embed the item somewhere on your body, such as your chest or your eye socket.\",\r\n\t'>>Sentience<<. A docent is a sentient item of any alignment with an Intelligence of 16, a Wisdom of 14, and a Charisma of 14. It perceives the world through your senses. It communicates telepathically with you and can speak, read, and understand any language it knows (see \"Random Properties\" below).',\r\n\t\">>Life Support<<. Whenever you end your turn with 0 hit points, the docent can make a Wisdom (Medicine) check with a +6 bonus. If this check succeeds, the docent stabilizes you.\",\r\n\t\">>Random Properties<<. A docent has the following properties:\",\r\n\t\" \\u2022 >>Languages<<. The docent knows Common, Giant, and 1d4 additional languages chosen by the DM. If a docent knows fewer than six languages, it can learn a new language after it hears or reads the language through your senses.\",\r\n\t\" \\u2022 >>Skills<<. The docent has a +7 bonus to one of the following skills (roll a d4): (1) Arcana, (2) History, (3) Investigation, or (4) Nature.\",\r\n\t\" \\u2022 >>Spells<<. The docent knows one of the following spells and can cast it at will, requiring no components (roll a d6): (1–2) detect evil and good or (3–6) detect magic. The docent decides when to cast the spell.\",\r\n\t\">>Personality<<. A docent is designed to advise and assist the warforged it's attached to. One of the simple functions of a docent is to serve as a translator. The docent's properties are under its control, and if you have a bad relationship with your docent, it might refuse to assist you.\"\r\n];\r\nMagicItemsList[\"docent\"] = {\r\n\tname : \"Docent\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I can embed this sentient small metal sphere studded with dragonshards into my chest or eye socket. I can communicate telepathically with it and it uses my senses. It can serve me as an advisor and a translator. It knowns 6 languages, a spells, an Intelligence skill, and can stabilize me. See Notes page.\",\r\n\tdescriptionFull : ERftLW_docentFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(ERftLW_docentFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/(with|stabilizes|assist) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"dyrrn's tentacle whip\"] = {\r\n\tname : \"Dyrrn's Tentacle Whip\",\r\n\tnameAlt : \"Tentacle Whip\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"weapon (whip)\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This magic whip embeds itself in my arm once I attune to it and removing it requires ending a curse. It has a +2 bonus to attack and damage rolls, deals +1d6 psychic damage, but has disadv. vs. aberrations. On a roll of 20 to hit, the target is stunned until it next turn ends. As a bonus action, I can draw/sheath it in my arm\",\r\n\tdescriptionFull : \"This long, whip-like strand of tough muscle bears a sharp stinger at one end. To attune to this symbiotic weapon, you wrap the whip around your wrist for the entire attunement period, during which time the whip painfully embeds its tendrils into your arm.\\n   You gain a +2 bonus to attack and damage rolls made with this magic whip, but attack rolls made against aberrations with this weapon have disadvantage. A creature hit by this weapon takes an extra 1d6 psychic damage. When you roll a 20 on the d20 for an attack roll with this weapon, the target is stunned until the end of its next turn.\\n   As a bonus action, you can sheathe the whip by causing it to retract into your arm, or draw the whip out of your arm again.\\n   \" + toUni(\"Symbiotic Nature\") + \". The whip can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the whip ends, and it detaches from you.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \"Tentacle Whip (draw/sheath)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"whip\",\r\n\t\tregExpSearch : /^(?=.*tentacle)(?=.*whip).*$/i,\r\n\t\tname : \"Dyrrn's Tentacle Whip\",\r\n\t\tsource : [[\"E:RLW\", 276]],\r\n\t\tdescription : \"Finesse, reach; +1d6 psychic dmg; On 20 to hit: stun until its next turn ends; Disadv. vs. aberrations\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"earworm\"] = {\r\n\tname : \"Earworm\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"This symbiont bonds to my skull once I attune to it and removing it to end the attunement requires ending a curse. It has 4 charges, regaining 1d4 at dawn, which I can use to cast Detect Thoughts (2 charges) or Dissonant Whispers (1 charge) with DC 15. It allows me to speak, read, and write deep speech.\",\r\n\tdescriptionFull : \"To attune to this symbiont, you must hold it against the skin behind your ear for the entire attunement period, whereupon it burrows into your head and bonds to your skull. While the earworm is inside you, you can speak, read, and write Deep Speech.\\n   \" + toUni(\"Spells\") + \". The earworm has 4 charges. You can cast the following spells from it, expending the necessary number of charges (spell save DC 15): detect thoughts (2 charges) or dissonant whispers (1 charge). Each time you use the earworm to cast the detect thoughts spell, it sends the information gleaned to the nearest daelkyr, or to the next nearest earworm until it reaches a daelkyr.\\n   The earworm regains 1d4 expended charges daily at dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The earworm can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the earworm ends, and it exits your body.\",\r\n\tattunement : true,\r\n\tlanguageProfs : [\"Deep Speech\"],\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\tfixedDC : 15,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"dissonant whispers\"],\r\n\t\tselection : [\"dissonant whispers\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"everbright lantern\"] = {\r\n\tname : \"Everbright Lantern\",\r\n\tsource : [[\"E:RLW\", 277], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This bullseye lantern is powered by a dragonshard that sheds light comparable to that produced by a Continual Flame spell. The light never goes out, but it can be shuttered off. It sheds light in a 120-ft cone; the closest 60 ft is bright light, and the farthest 60 ft is dim light.\",\r\n\tdescriptionFull : \"This bullseye lantern contains an Eberron dragonshard that sheds light comparable to that produced by a continual flame spell. An everbright lantern sheds light in a 120-foot cone; the closest 60 feet is bright light, and the farthest 60 feet is dim light.\",\r\n\tweight : 2\r\n}\r\nMagicItemsList[\"feather token\"] = {\r\n\tname : \"Feather Token\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This small metal disk is inscribed with the image of a feather. When I fall at least 20 ft while the token is on my person, I descend 60 ft per round and take no damage from falling. The token's magic is expended after landing, whereupon the disk becomes nonmagical.\",\r\n\tdescriptionFull : \"This small metal disk is inscribed with the image of a feather. When you fall at least 20 feet while the token is on your person, you descend 60 feet per round and take no damage from falling. The token's magic is expended after you land, whereupon the disk becomes nonmagical.\"\r\n}\r\nMagicItemsList[\"finder's goggles\"] = {\r\n\tname : \"Finder's Goggles\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"These goggles with dragonshard lenses grant me +1d4 on Wis (Insight) checks. As an action once per dawn, I can use them to find the last creature to touch an object with a Wis (Insight) check DC 13 + days since last contact. I learn the creature's type and can immediately cast Locate Creature to find the creature.\",\r\n\tdescriptionFull : \"The lenses of these garish goggles are carved from Siberys dragonshards. While wearing these lenses, you gain the following benefits:\\n \\u2022 When you make a Wisdom (Insight) check, you can roll a d4 and add the number rolled to the check.\\n \\u2022 As an action, you can use the goggles to examine an object to identify the aura of the last creature that touched it. Make a Wisdom (Insight) check against a DC of 13 + the number of days since the last contact occurred. On a success, you learn the creature's type and can immediately use the goggles to cast locate creature to find that creature. This property can't be used again until the next dawn.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Finding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known);\r\n\t},\r\n\taction : [[\"action\", \" (examine object)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"examine object\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"After examining object\",\r\n\t\tspells : [\"locate creature\"],\r\n\t\tselection : [\"locate creature\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}]\r\n}\r\nMagicItemsList[\"glamerweave\"] = {\r\n\tname : \"Glamerweave\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can turn the pattern within the cloth into a moving illusory pattern. For the uncommon version, this pattern extends beyond the cloth and gives me +1d4 on a Performance or Persuasion check.\",\r\n\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing the common version of these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\\n   Uncommon glamerweave can have the pattern rise from the cloth. For example, a glamerweave gown might be wreathed in harmless, illusory flames, while a glam­erweave hat might have illusory butterflies fluttering around it.\\n   When you make a Charisma (Performance) or Cha­risma (Persuasion) check while wearing the uncommon version of glamerweave, you can roll a d4 and add the number rolled to the check. Once you use this property, it can't be used again until the next dawn. \",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Common (moving illusory pattern)\", \"Uncommon (pattern rises from the cloth)\"],\r\n\t\"common (moving illusory pattern)\" : {\r\n\t\tname : \"Glamerweave \",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can create a moving illusory pattern within the cloth.\",\r\n\t\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing the common version of these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\"\r\n\t},\r\n\t\"uncommon (pattern rises from the cloth)\" : {\r\n\t\tname : \"Uncommon Glamerweave\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can have the pattern within them rise as an illusory visage (e.g. wreathed in flames). Once per dawn, I can use this to gives me +1d4 on a Charisma (Performance) or Charisma (Persuasion) check.\",\r\n\t\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\\n   You can have the pattern rise from the cloth. For example, a glamerweave gown might be wreathed in harmless, illusory flames, while a glamerweave hat might have illusory butterflies fluttering around it.\\n   When you make a Charisma (Performance) or Charisma (Persuasion) check while wearing the glamerweave, you can roll a d4 and add the number rolled to the check. Once you use this property, it can't be used again until the next dawn.\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}\r\n}\r\nMagicItemsList[\"imbued wood focus\"] = {\r\n\t// Note that this item is implemented here against RAW,\r\n\t// because according to PHB page 203 a spellcasting focus can only be used for\r\n\t// spells with a material component that is neither costly nor consumed.\r\n\t// See also https://dnd.wizards.com/articles/sage-advice/rules-spellcasting\r\n\t// This would mean that the Imbued Wood Focus in only useful for a limited number of spells.\r\n\t// Instead, this code just applies the damage bonus to all damage spells that roll for their damage.\r\n\tname : \"Imbued Wood Focus\",\r\n\tsource : [[\"E:RLW\", 277], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This rod, wand, or staff is cut from a tree infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal the associated damage type add a +1 bonus to one of their damage rolls.\",\r\n\tdescriptionFull : \"An imbued wood focus is a rod, staff, or wand cut from a tree infused with extraplanar energy. If you're a spell­caster, you can use this orb as a spellcasting focus.\\n   When you cast a damage-dealing spell using this item as your spellcasting focus, you gain a +1 bonus to one damage roll of the spell, provided the damage is of the type associated with the item's wood. The types of wood and their associated damage types are listed in the table below.\\n\\n\" + toUni(\"Wood\\t\\t\\tDamage Type\") + \"\\nFernian Ash\\t\\tFire\\nIrian Rosewood\\t\\tRadiant\\nKythrian Manchineel  \\tAcid or Poison\\nLamannian Oak\\t\\tLightning or Thunder\\nMabaran Ebony\\t\\tNecrotic\\nRisian Pine\\t\\tCold\\nShavarran Birch\\t\\tForce\\nXorian Wenge\\t\\tPsychic\",\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tweight : 2,\r\n\tchoices : [\"Fernian Ash (fire)\", \"Irian Rosewood (radiant)\", \"Kythrian Manchineel (acid and poison)\", \"Lamannian Oak (lightning and thunder)\", \"Mabaran Ebony (necrotic)\", \"Risian Pine (cold)\", \"Shavarran Birch (force)\", \"Xorian Wenge (psychic)\"],\r\n\t\"fernian ash (fire)\" : {\r\n\t\tname : \"Fernian Ash Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Fernian Ash (fire)\",\r\n\t\tnameTest : /^(?=.*fernian)(?=.*ash)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Fernian ash, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal fire damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/fire/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"irian rosewood (radiant)\" : {\r\n\t\tname : \"Irian Rosewood Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Irian Rosewood (radiant)\",\r\n\t\tnameTest : /^(?=.*irian)(?=.*rosewood)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Irian rosewood, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal radiant damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/radiant/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"radiant\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"kythrian manchineel (acid and poison)\" : {\r\n\t\tname : \"Kythrian Manchineel Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Kythrian Manchineel (acid and poison)\",\r\n\t\tnameTest : /^(?=.*kythrian)(?=.*manchineel)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Kythrian manchineel, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal acid or poison damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/acid|poison/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"acid|poison\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"lamannian oak (lightning and thunder)\" : {\r\n\t\tname : \"Lamannian Oak Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Lamannian Oak (lightning and thunder)\",\r\n\t\tnameTest : /^(?=.*lamannian)(?=.*oak)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Lamannian oak, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal lightning or thunder damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/lightning|thunder/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"lightning|thunder\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"mabaran ebony (necrotic)\" : {\r\n\t\tname : \"Mabaran Ebony Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Mabaran Ebony (necrotic)\",\r\n\t\tnameTest : /^(?=.*mabaran)(?=.*ebony)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Mabaran ebony, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal necrotic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/necrotic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"necro\\\\.?|necrotic\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"risian pine (cold)\" : {\r\n\t\tname : \"Risian Pine Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Risian Pine (cold)\",\r\n\t\tnameTest : /^(?=.*risian)(?=.*pine)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Risian pine, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal cold damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/cold/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"cold\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"shavarran birch (force)\" : {\r\n\t\tname : \"Shavarran Birch Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Shavarran Birch (force)\",\r\n\t\tnameTest : /^(?=.*shavarran)(?=.*birch)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Shavarran birch, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal force damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1 dmg\";\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] != \"eldritch blast\" && (/force/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"force\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"xorian wenge (psychic)\" : {\r\n\t\tname : \"Xorian Wenge Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Xorian Wenge (psychic)\",\r\n\t\tnameTest : /^(?=.*xorian)(?=.*wenge)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Xorian wenge, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal psychic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/psychic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"psychic\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"keycharm\"] = {\r\n\tname : \"Keycharm\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"When I cast Alarm, Arcane Lock, or Glyph of Warding, I can tie the effect to the keycharm. Its holder receives the notification from Alarm, bypasses the Arcane Lock, or avoids triggering the Glyph of Warding. It can have up to 3 tied spells at one time. As an action, the holder can speak the command to end a tied spell.\",\r\n\tdescriptionFull : \"This small stylized key plays a vital role in the work of House Kundarak. If you cast the alarm, arcane lock, or glyph of warding spell, you can tie the effect to the keycharm so that whoever holds it receives the notification from the alarm spell, bypasses the lock of the arcane lock spell, or avoids triggering the glyph placed by the glyph of warding spell. In addition, the holder (who needn't be attuned to the item) can take an action to end any one spell tied to it, provided the holder knows the command word you set for ending the tied spells. The keycharm can have up to three tied spells at one time.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Warding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"kyrzin's ooze\"] = {\r\n\tname : \"Kyrzin's Ooze\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"Once I attune to this opalescent goo by drinking it, it can only be removed by ending a curse. It gives me resistance to acid and poison damage and immunity to the poisoned condition. Each as an action once per short rest, I can exhale acid breath or become amorphous for 1 minute along with my equipment.\",\r\n\tdescriptionLong : \"I can only attune to this opalescent, symbiotic goo by drinking it. I can't remove it or end the attunement voluntarily, but it seeps out of me if the curse is removed. It gives me resistance to acid and poison damage and immunity to the poisoned condition. As an action once per dawn, I can become amorphous for 1 minute along with my equipment and can move through a space as narrow as 1 inch wide. As an action once per dawn, I can exhale a 30-ft line, 5-ft wide acid breath that deals 8d8 acid damage (Dexterity save DC 15 halves). If I die while it is inside me, it turns my corpse into a black pudding.\",\r\n\tdescriptionFull : \"This opalescent, symbiotic goo comes sealed in a jar and slowly shifts and moves, as if endlessly exploring the jar's interior. To attune to this item, you must first drink the contents of the jar, unlocking the following properties.\\n   \" + toUni(\"Resistant\") + \". While attuned to Kyrzin's ooze, you have resistance to poison and acid damage, and you're immune to the poisoned condition.\\n   \" + toUni(\"Amorphous\") + \". As an action, you can speak a command word and cause your body to assume the amorphous qualities of an ooze. For the next minute, you (along with any equipment you're wearing or carrying) can move through a space as narrow as 1 inch wide without squeezing. Once you use this property, it can't be used again until the next dawn.\\n   \" + toUni(\"Acid Breath\") + \". As an action, you can exhale acid in a 30-foot line that is 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 36 (8d8) acid damage on a failed save, or half as much damage on a successful one. Once you use this property, it can't be used again until the next dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The ooze can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the ooze ends, as it seeps out of you.\\n   If you die while the ooze is inside you, it bursts out and engulfs you, turning your corpse into a black pudding allied with the daelkyr.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Acid\", \"Poison\"],\r\n\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\taction : [[\"action\", \" (amorphous/acid breath)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Kyrzin's Ooze [Amorphous]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Kyrzin's Ooze [Acid Breath]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*ooze)(?=.*acid)(?=.*breath).*$/i,\r\n\t\tname : \"Kyrzin's Ooze Acid Breath\",\r\n\t\tsource : [[\"E:RLW\", 278]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [8, 8, \"acid\"],\r\n\t\trange : '5-ft \\xD7 30-ft line',\r\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tmodifiers : [7, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"living armor\"] = {\r\n\tname : \"Living Armor\",\r\n\tnameTest : /living.*armou?r/i,\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"armor (any)\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This armor of black chitin attaches itself to me once I attune to it and removing it requires ending a curse. It gives me +1 AC and resistance to necrotic, poison, and psychic damage. Whenever I finish a long rest, I must either feed it half my remaining HD (rounding up) or take 1 level of exhaustion.\",\r\n\tdescriptionFull : \"This hideous armor is formed from black chitin, beneath which veins pulse and red sinews glisten. To attune to this item, you must wear it for the entire attunement period, during which tendrils on the inside burrow into you.\\n   While wearing this armor, you have a +1 bonus to Armor Class, and you have resistance to the following damage types: necrotic, poison, and psychic.\\n   \" + toUni(\"Symbiotic Nature\") + \". The armor can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the armor ends, and it detaches from you.\\n   The armor requires fresh blood be fed to it. Immediately after you finish any long rest, you must either feed half of your remaining Hit Dice to the armor (round up) or take 1 level of exhaustion.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Necrotic\", \"Poison\", \"Psychic\"],\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Living\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"+1 Living\"]\r\n\t}\r\n}\r\nMagicItemsList[\"living gloves\"] = {\r\n\tname : \"Living Gloves\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"These gloves made of thin chitin and sinew bond with my skin once I attune to them and removing them requires ending a curse. Once I attune to them, I can choose to become proficient and gain expertise with either sleight of hand, thieves' tools, or an artisan's tools or musical instrument of my choice.\",\r\n\tdescriptionFull : \"These symbiotic gloves\\u2014made of thin chitin and sinew\\u2014pulse with a life of their own. To attune to them, you must wear them for the entire attunement period, during which the gloves bond with your skin.\\n   While attuned to these gloves, you gain one of the following proficiencies (your choice when you attune to the gloves):\\n \\u2022 Sleight of Hand\\n \\u2022 Thieves' tools\\n \\u2022 One kind of artisan's tools of your choice\\n \\u2022 One kind of musical instrument of your choice\\n\\nWhen you make an ability check using the chosen proficiency, you add double your proficiency bonus to the check, instead of your normal proficiency bonus.\\n   \" + toUni(\"Symbiotic Nature\") + \". The gloves can't be removed from you while you're attuned to them, and you can't voluntarily end your attunement to them. If you're targeted by a spell that ends a curse, your attunement to the gloves ends, and they can be removed.\",\r\n\tattunement : true,\r\n\tchoices : [\"Proficiency and expertise with Sleight of Hand\", \"Proficiency and expertise with Thieves' Tools\", \"Proficiency and expertise with chosen artisan's tools\", \"Proficiency and expertise with chosen musical instrument\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"proficiency and expertise with sleight of hand\" : {\r\n\t\tname : \"Living Gloves [Sleight of Hand]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with sleight of hand.\",\r\n\t\tskills : [[\"Sleight of Hand\", \"full\"]]\r\n\t},\r\n\t\"proficiency and expertise with thieves' tools\" : {\r\n\t\tname : \"Living Gloves [Thieves' Tools]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with thieves' tools.\",\r\n\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\t\teval : function () {\r\n\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\tCheckbox('Too Exp', true);\r\n\t\t\t};\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\tCheckbox('Too Exp', false);\r\n\t\t\t};\r\n\t\t}\r\n\t},\r\n\t\"proficiency and expertise with chosen artisan's tools\" : {\r\n\t\tname : \"Living Gloves [Artisan's Tools]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with a set of artisan's tools of my choice (chosen when I attune to them).\",\r\n\t\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\t},\r\n\t\"proficiency and expertise with chosen musical instrument\" : {\r\n\t\tname : \"Living Gloves [Musical Instrument]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with a musical instrument of my choice (chosen when I attune to them).\",\r\n\t\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\t}\r\n}\r\nMagicItemsList[\"orb of shielding\"] = {\r\n\tname : \"Orb of Shielding\",\r\n\tsource : [[\"E:RLW\", 278], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"An orb of shielding is made from crystal or stone aligned to one of the planes. I can use it as my spellcasting focus. While I am holding the orb and take damage of the type associated with the material the orb is made from, I can use my reaction to reduce the damage by 1d4 (to a minimum of 0).\",\r\n\tdescriptionFull : \"An orb of shielding is a polished, spherical chunk of crystal or stone aligned to one of the planes of existence. If you're a spellcaster, you can use this orb as a spellcasting focus.\\n   If you're holding the orb when you take damage of the type associated with the orb's material, you can use your reaction to reduce the damage by 1d4 (to a minimum of 0). The materials and their associated damage types are listed in the Orb of Shielding table.\\n\\n\" + toUni(\"Planar Material\\t\\tDamage Type\") + \"\\nFernian Basalt\\t\\tFire\\nIrian Quartz\\t\\tRadiant\\nKythrian Skarn\\t\\tAcid or Poison\\nLamannian Flint\\t\\tLightning or Thunder\\nMabaran Obsidian      \\tNecrotic\\nRisian Shale\\t\\tCold\\nShavarran Chert\\t\\tForce\\nXorian Marble\\t\\tPsychic\",\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tweight : 3,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchoices : [\"Fernian Basalt (fire)\", \"Irian Quartz (radiant)\", \"Kythrian Skarn (acid or poison)\", \"Lamannian Flint (lightning or thunder)\", \"Mabaran Obsidian (necrotic)\", \"Risian Shale (cold)\", \"Shavaran Chert (force)\", \"Xorian Marble (psychic)\"],\r\n\t\"fernian basalt (fire)\" : {\r\n\t\tname : \"Orb of Shielding [Fernian Basalt]\",\r\n\t\tdescription : \"This stone orb is made from fernian basalt. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take fire damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"irian quartz (radiant)\" : {\r\n\t\tname : \"Orb of Shielding [Irian Quartz]\",\r\n\t\tdescription : \"This crystal orb is made from irian quartz. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take radiant damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"kythrian skarn (acid or poison)\" : {\r\n\t\tname : \"Orb of Shielding [Kythrian Skarn]\",\r\n\t\tdescription : \"This stone orb is made from kythrian skarn. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take acid or poison damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"lamannian flint (lightning or thunder)\" : {\r\n\t\tname : \"Orb of Shielding [Lamannian Flint]\",\r\n\t\tdescription : \"This stone orb is made from lamannian flint. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take lightning or thunder damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"mabaran obsidian (necrotic)\" : {\r\n\t\tname : \"Orb of Shielding [Mabaran Obsidian]\",\r\n\t\tdescription : \"This crystal orb is made from mabaran obsidian. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take necrotic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"risian shale (cold)\" : {\r\n\t\tname : \"Orb of Shielding [Risian Shale]\",\r\n\t\tdescription : \"This stone orb is made from risian shale. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take cold damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"shavaran chert (force)\" : {\r\n\t\tname : \"Orb of Shielding [Shavaran Chert]\",\r\n\t\tdescription : \"This stone orb is made from shavaran chert. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take force damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"xorian marble (psychic)\" : {\r\n\t\tname : \"Orb of Shielding [Xorian Marble]\",\r\n\t\tdescription : \"This stone orb is made from xorian marble. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take psychic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t}\r\n}\r\nMagicItemsList[\"prosthetic limb\"] = { // no attument as per errata\r\n\tname : \"Prosthetic Limb\",\r\n\tsource : [[\"E:RLW\", 278], [\"W\", 268], [\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This artificial limb replaces a lost limb, like a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. As an action, I can detach or reattach it. It can't be removed against my will. It detaches if I die.\",\r\n\tdescriptionFull : \"This item replaces a lost limb\\u2014a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. You can detach or reattach it as an action, and it can't be removed against your will. It detaches if you die.\",\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"scribe's pen\"] = {\r\n\tname : \"Scribe's Pen\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this pen to write on any surface. I decide whether the writing is visible or invisible, but it is always visible to creatures with the Mark of Scribing. As an action, I or others with the Mark of Scribing can touch the writing and make it visible to all. Writing on creatures other than constructs fades after 7 days.\",\r\n\tdescriptionFull : \"You can use this pen to write on any surface. You decide whether the writing is visible or invisible, but the writing is always visible to a person with the Mark of Scribing.\\n   Any creature with the Mark of Scribing can use an action to touch the invisible writing, making it visible to all.\\n   If you use the pen to write on a creature that isn't a construct, the writing fades after 7 days.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Scribing\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"shiftweave\"] = {\r\n\tname : \"Shiftweave\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Up to five different outfits are embedded into these clothes. As a bonus action, I can speak its command word to transform the outfit into one of the other designs contained within. Regardless of its appearance, the outfit can't be anything but clothing or gain properties of other magical clothing.\",\r\n\tdescriptionFull : \"When a suit of shiftweave is created, up to five different outfits can be embedded into the cloth. While wearing the clothing, you can speak its command word as a bonus action to transform your outfit into your choice of one of the other designs contained within it. Regardless of its appearance, the outfit can't be anything but clothing. Although it can duplicate the look of other magical clothing, it doesn't gain their magical properties.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"speaking stone\"] = {\r\n\tname : \"Speaking Stone\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This dragonshard is inscribed with arcane symbols that uniquely identify it. By touching it, I can cast Sending to any other speaking stone whose location or unique sequence of symbols I know. A creature within 5 ft of the receiving speaking stone hears the message as if they were the target of the Sending.\",\r\n\tdescriptionFull : \"The key to long-distance, virtually instantaneous communication across Khorvaire is House Sivis's network of message stations. Each station contains at least one speaking stone, which is carved from a Siberys dragonshard and inscribed with arcane symbols that uniquely identify it. If you're a gnome with the Mark of Scribing, you can touch the stone and use an action to cast the sending spell from it. The target is any other speaking stone whose location or unique sequence of symbols you know. A creature within 5 feet of the stone hears the message as if they were the target.\\n   In a Sivis message station, a gnome is always on duty by the speaking stone, listening for messages that might come in and transcribing them for delivery to their intended recipients.\",\r\n\tprerequisite : \"Can only be used by a gnome with the Dragonmark of Scribing\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known);\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"spellshard\"] = {\r\n\tname : \"Spellshard\",\r\n\tsource : [[\"E:RLW\", 279], [\"WGtE\", 115], [\"UA:MIoE\", 3]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This dragonshard can store up to 320 pages of text or spells. As an action while holding it (and speaking its passphrase if it has one), I can open my mind to its content and concentrate on it to subsequently read from and write to it in the same amount of time as a normal book (same cost as a normal spellbook).\",\r\n\tdescriptionFull : 'This polished Eberron dragonshard fits in the hand and stores information similar to a book. The shard can hold the equivalent of one book that\\'s no more than 320 pages long. A shard can be created blank or already filled with information. When the shard is created, the creator can set a passphrase that must be spoken to access the information stored within.\\n   While holding the shard, you can use an action to open your mind to the shard, seeing its content in your mind. On subsequent rounds, reading the text or scribing new text on blank \"pages\" in the shard requires concentration (as if concentrating on a spell) and takes the same amount of time it takes you to read and write normally. Thinking of a particular phrase or topic draws you to the first section in the shard that addresses it.\\n   A wizard can use a spellshard as a spellbook, with the usual cost in gold and time to \"scribe\" a spell into the shard.',\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"ventilating lungs\"] = {\r\n\tname : \"Ventilating Lungs\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"These lungs replace those in my chest while I'm attuned to them. Their function can't be suppressed by (anti)magic. They allow me to breath normally in any environment and give me advantage on saves against harmful gases and vapors. Once per dawn, I can use them to cast Gust of Wind (save DC 15) by exhaling.\",\r\n\tdescriptionFull : \"These metallic nodules were created in response to the poisonous gases used on the battlefields of the Last War. When you attune to these lungs, they replace the lungs in your chest, which disappear. The lungs allow you to breathe normally, even in an antimagic field, and their breathing function can't be suppressed by magic.\\n   Outside an antimagic field or any other effect that suppresses magic, these lungs allow you to breathe normally in any environment (including a vacuum), and you have advantage on saving throws against harmful gases such as those created by a cloudkill spell, a stinking cloud spell, inhaled poisons, and gaseous breath weapons.\\n   As an action, you can use these lungs to exhale a gust of wind, as if you had cast the gust of wind spell (spell save DC 15) with no components. This property of the lungs can't be used again until the next dawn.\\n   If your attunement to the lungs ends, your original lungs reappear.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Gust of Wind\",\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"gust of wind\"],\r\n\t\tselection : [\"gust of wind\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"gases\", \"vapors\"] }\r\n}\r\nMagicItemsList[\"wand sheath\"] = {\r\n\tname : \"Wand Sheath\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This sheath clamps unto my arm and can't be removed while I'm attuned to it. As an action, I can insert a wand in it, which then doesn't count to the number of items I can attune to. As a bonus action, I can then retract the wand or extend the wand and use it as if holding it, while keeping my hand free.\",\r\n\tdescriptionFull : \"A wand sheath clamps onto your arm and imparts the following benefits:\\n \\u2022 The wand sheath can't be removed from you while you're attuned to it.\\n \\u2022 You can insert a wand into the sheath as an action. The sheath can hold only one wand at a time.\\n \\u2022 You can retract or extend a wand from the sheath as a bonus action. While the wand is extended, you can use it as if you were holding it, but your hand remains free.\\n\\nIf a sheathed wand requires attunement, you must attune to the wand before you can use it. However, the wand sheath and the attached wand count as a single magic item with regard to the number of magic items you can attune to. If you remove the wand from the sheath, your attunement to the wand ends.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\taction : [[\"action\", \" (insert)\"], [\"bonus action\", \" (extend/retract)\"]]\r\n}\r\nMagicItemsList[\"wheel of wind and water\"] = {\r\n\tname : \"Wheel of Wind and Water\",\r\n\tsource : [[\"E:RLW\", 280], [\"WGtE\", 115]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I can telepathically control the elemental bound into the elemental galleon or airship that has this wheel mounted at its helm. If I use a wheel of wind and water that is mounted on a mundane sailing ship, I can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\tdescriptionFull : \"When mounted at the helm of an elemental galleon or airship, this wheel allows a creature that possesses the Mark of Storm to telepathically control the elemental bound inside the vessel.\\n   If a wheel of wind and water is mounted on a mundane sailing ship, a creature with the Mark of Storm who is using the wheel can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\tprerequisite : \"Can only be used by a creature with the Dragonmark of Storm\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\n\r\n// Beasts\r\nCreatureList[\"clawfoot\"] = {\r\n\tname : \"Clawfoot\",\r\n\tsource : [[\"E:RLW\", 289]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 19,\r\n\thd : [3, 8],\r\n\tspeed : \"40 ft\",\r\n\tscores : [12, 16, 14, 4, 12, 6],\r\n\tskills : {\r\n\t\t\"perception\" : 3,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"1 bite \\u0026 1 claws attack as Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Pounce trait; 1 bite \\u0026 1 claws attack as Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the clawfoot can make one Bite and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The clawfoot has advantage on an attack roll against a creature if at least one of the clawfoot's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}, {\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the clawfoot moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 11 Strength saving throw or be knocked prone. If the target is prone, the clawfoot can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"fastieth\"] = {\r\n\tname : \"Fastieth\",\r\n\tsource : [[\"E:RLW\", 289]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 9,\r\n\thd : [2, 8],\r\n\tspeed : \"50 ft\",\r\n\tscores : [12, 18, 10, 4, 11, 4],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Quickness (Recharge 5-6)\",\r\n\t\tdescription : \"The fastieth can take the Dodge action as a bonus action.\"\r\n\t}]\r\n};\r\nERftLW_Valenar_Ancestral_Traits = [\r\n\t\"\\u25C6 [Variant] Ancestral Traits: Each Valenar animal can be customized with an ancestral gift, a supernatural trait granted by its ancestral spirit. Choose a trait or roll on the table below for each Valenar animal.\",\r\n\t\" d8\\tTrait\",\r\n\t\"  1\\tBestow Luck (1/day): As a bonus action, the animal chooses one creature it can see\",\r\n\t\t\"\\twithin 30 ft of it. The next ability check, attack roll, or saving throw the target\",\r\n\t\t\"\\tmakes in the next hour has advantage.\",\r\n\t\"  2\\tBurst of Speed (recharge 6): The animal can take the Dash action as a bonus action.\",\r\n\t\"  3\\tCamouflage: The animal has advantage on Dexterity (Stealth) checks it makes while\",\r\n\t\t\"\\toutdoors.\",\r\n\t\"  4\\tLie Detector: The animal knows when a creature within 15 ft of it tells a lie.\",\r\n\t\"  5\\tFey Ancestry: The animal has advantage on saving throws against being charmed or\",\r\n\t\t\"\\tfrightened, and magic can't put it to sleep.\",\r\n\t\"  6\\tFey Step (1/day): The animal, along with anything it is wearing or carrying,\",\r\n\t\t\"\\tteleports up to 30 ft to an unoccupied space it can see.\",\r\n\t\"  7\\tQuickness (recharge 6): The animal can take the Dodge action as a bonus action.\",\r\n\t\"  8\\tShrouded Step. The animal can't be tracked except by magical means, and it leaves\",\r\n\t\t\"\\tbehind no tracks or other traces of its passage.\"\r\n].join(\"\\n\");\r\nCreatureList[\"valenar hawk\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Hawk\",\r\n\tsource : [[\"E:RLW\", 312]],\r\n\tsize : 5,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 14,\r\n\thp : 10,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [8, 18, 10, 9, 16, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 15,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Talons\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The hawk has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}, {\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The hawk can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the hawk bonds with a different creature or until the bonded creature dies. While bonded, the hawk and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\nCreatureList[\"valenar hound\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Hound\",\r\n\tsource : [[\"E:RLW\", 312]],\r\n\tsize : 3,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 14,\r\n\thp : 19,\r\n\thd : [3, 8],\r\n\tspeed : \"40 ft\",\r\n\tscores : [17, 15, 14, 10, 15, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 13 Strength saving throw or be knocked prone\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Hearing and Smell\",\r\n\t\tdescription : \"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t}, {\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The hound can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the hound bonds with a different creature or until the bonded creature dies. While bonded, the hound and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\nCreatureList[\"valenar steed\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Steed\",\r\n\tsource : [[\"E:RLW\", 313]],\r\n\tsize : 2,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 22,\r\n\thd : [3, 10],\r\n\tspeed : \"60 ft\",\r\n\tscores : [14, 16, 14, 10, 15, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Hooves\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The steed can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the steed bonds with a different creature or until the bonded creature dies. While bonded, the steed and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\n\n// pub_20200317_EGtW.js\r\n// This file adds the content from Explorer's Guide to Wildemount to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.W = {\r\n\tname : \"Explorer's Guide to Wildemount\",\r\n\tabbreviation : \"EGtW\",\r\n\tabbreviationSpellsheet : \"W\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Critical Role\",\r\n\turl : \"https://dnd.wizards.com/products/wildemount\",\r\n\tdate : \"2020/03/17\"\r\n};\r\n\r\n// Races\r\nRaceList[\"pallid elf\"] = { // contains contributions by Smashman\r\n\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(pallid|pale)\\b)).*$/i,\r\n\tname : \"Pallid Elf\",\r\n\tsortname : \"Elf, Pallid\",\r\n\tsource : [[\"W\", 163]],\r\n\tplural : \"Pallid Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [\r\n\t\t[\"Darkvision\", 60],\r\n\t\t[\"Adv. on Int (Investigation) and Wis (Insight) checks\", \"\"]\r\n\t],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tadvantages : [ [\"Insight\", true], [\"Investigation\", true] ],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 110 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,7 metres tall (137 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 50 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Pallid Elf (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nIncisive Sense: I have advantage on Intelligence (Investigation) and Wisdom (Insight) checks.\\nBlessing of the Moonweaver: I know the Light cantrip. At 3rd level, I can cast Sleep once per long rest. At 5th level, I can also cast Invisibility on myself once per long rest. Spells cast using this trait require no material components and use Wisdom as spellcasting ability.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Blessing of the Moonweaver (level 1)\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"light\" : {\r\n\t\t\tcomponents : \"V\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Light without requiring a material component.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"sleep\" : {\r\n\t\t\tname : \"Blessing of the Moonweaver (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Blessing of the Moonweaver (level 3)\",\r\n\t\t\t\tspells : [\"sleep\"],\r\n\t\t\t\tselection : [\"sleep\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sleep\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Sleep once per long rest without requiring a material component.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Blessing of the Moonweaver (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Blessing of the Moonweaver (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Me and my worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Invisibility once per long rest without requiring a material component, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"lotusden halfling\"] = { // contains contributions by Metacomet10\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*lotusden).*$/i,\r\n\tname : \"Lotusden Halfling\",\r\n\tsortname : \"Halfling, Lotusden\",\r\n\tsource : [[\"W\", 164]],\r\n\tplural : \"Lotusden Halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Lotusden Halfling (+2 Dexterity, +1 Wisdom)\" + (typePF ?\r\n\t\t\"\\n- Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\"+\r\n\t\t\"\\n- Child of the Wood: I know the Druidcraft cantrip. At 3rd level, I can cast Entangle once per long rest. At 5th level, I can cast Spike Growth once per long rest without a material component. Wisdom is my spellcasting ability for these.\"+\r\n\t\t\" - Halfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\"+\r\n\t\t\"\\n- Timberwalk: Checks to track me have disadv. I need not expend extra movement to move over difficult terrain of nonmagical plants.\" :\r\n\t\t\"\\nChild of the Wood: I know the Druidcraft cantrip, at 3rd level: Entangle, at 5th level: Spike Growth. I can use both spells once per long rest and without material components. Wisdom is my spellcasting ability. \"+\r\n\t\t\"|Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll. \"+\r\n\t\t\"|Halfling Nimbleness: I can move through the space of any creature that is of a size larger than me. \"+\r\n\t\t\"|Timberwalk: Disadv. on checks to track me. I require no extra movement for difficult terrain of nonmagical plants.\"),\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Child of the Wood (level 1)\",\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"entangle\" : {\r\n\t\t\tname : \"Child of the Wood (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Child of the Wood (level 3)\",\r\n\t\t\t\tspells : [\"entangle\"],\r\n\t\t\t\tselection : [\"entangle\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"spike growth\" : {\r\n\t\t\tname : \"Child of the Wood (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Child of the Wood (level 5)\",\r\n\t\t\t\tspells : [\"spike growth\"],\r\n\t\t\t\tselection : [\"spike growth\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spike growth\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Child of the Wood, I can cast Spike Growth once per long rest without requiring a material component.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n{ // Dragonborn variants (almost completely made by Smashman)\r\n\tvar EGtW_breathWeaponDesc = function (dmgType, shape) {\r\n\t\tvar shapeStr = shape === \"line\" ? \"5-ft by 30-ft line\" : \"15-ft cone\";\r\n\t\tvar capitailzedDmgType = dmgType.charAt(0).toUpperCase() + dmgType.slice(1);\r\n\t\tvar saveStat = [\"cold\", \"poison\"].indexOf(dmgType) >= 0 ? \"Con\" : \"Dex\";\r\n\t\treturn capitailzedDmgType + \" Breath Weapon: As an action once per short rest, I can deal 2d6 \" + dmgType + \" damage to all in a \" + shapeStr + \", \" + saveStat + \" save halves (DC 8 + Con mod + Prof Bonus).\\nThis damage increases to 3d6 at level 6, 4d6 at level 11, and 5d6 at level 16.\";\r\n\t};\r\n\tvar EGtW_draconicAncestryFeature = {\r\n\t\tname : \"Draconic Ancestry\",\r\n\t\tlimfeaname : \"Breath Weapon\",\r\n\t\tminlevel : 1,\r\n\t\tusages : 1,\r\n\t\tadditional : levels.map(function (n) {\r\n\t\t\treturn (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + 'd6';\r\n\t\t}),\r\n\t\trecovery : \"short rest\",\r\n\t\taction : [['action', \"\"]],\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.theWea.dbBreathWeapon && (/dragonborn/i).test(CurrentRace.known)) {\r\n\t\t\t\t\t\tfields.Damage_Die = (CurrentRace.level < 6 ? 2 : CurrentRace.level < 11 ? 3 : CurrentRace.level < 16 ? 4 : 5) + 'd6';\r\n\t\t\t\t\t\tif (CurrentRace.variant) {\r\n\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.breathDmgType;\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(/(dex|con) save/i, ((/cold|poison/i).test(CurrentRace.breathDmgType) ? 'Con' : 'Dex') + ' save');\r\n\t\t\t\t\t\t\tfields.Range = (/black|blue|brass|bronze|copper/i).test(CurrentRace.variant) ? '5-ft \\xD7 30-ft line' : '15-ft cone';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'',\r\n\t\t\t\t1\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\tvar EGtW_breathWeaponObj = {\r\n\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\tname : \"Breath weapon\",\r\n\t\tsource : [[\"W\", 168]],\r\n\t\tability : 3,\r\n\t\ttype : 'Natural',\r\n\t\tdamage : [2, 6, 'fire'],\r\n\t\trange : \"15-ft cone\",\r\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per short rest\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tdbBreathWeapon : true,\r\n\t\tselectNow : true\r\n\t};\r\n\tvar EGtW_acidBreath = EGtW_breathWeaponDesc(\"acid\", \"line\");\r\n\tvar EGtW_fireBreathCone = EGtW_breathWeaponDesc(\"fire\", \"cone\");\r\n\tvar EGtW_fireBreathLine = EGtW_breathWeaponDesc(\"fire\", \"cone\");\r\n\tvar EGtW_coldBreath = EGtW_breathWeaponDesc(\"cold\", \"cone\");\r\n\tvar EGtW_lightningBreath = EGtW_breathWeaponDesc(\"lightning\", \"line\");\r\n\tvar EGtW_poisonBreath = EGtW_breathWeaponDesc(\"poison\", \"cone\");\r\n\tvar EGtW_forcefulPresenceStr = \"Forceful Presence: Once per short rest, I can give myself adv. on an Intimidation or Persuasion check.\";\r\n\tvar EGtW_vengefulAssaultStr = \"Vengeful Assault: As a reaction when I take damage from a creature in range of a weapon that I'm holding, I can use the weapon to make an attack against the creature. I can do this once per short rest.\";\r\n\r\n\t// Draconblood\r\n\tRaceList[\"draconblood dragonborn\"] = {\r\n\t\tregExpSearch : /draconblood/i,\r\n\t\tname : \"Draconblood Dragonborn\",\r\n\t\tsortname : \"Dragonborn, Draconblood\",\r\n\t\tsource : [[\"W\", 168]],\r\n\t\tplural : \"Draconblood Dragonborn\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tweaponOptions : [EGtW_breathWeaponObj],\r\n\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 2, 0, 1],\r\n\t\ttrait : \"Draconblood Dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\t\"Draconic Ancestry: Choose one type of dragon using the \\\"Racial Options\\\" button. I gain a breath weapon as determined by the dragon type chosen.\",\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"draconic ancestry\" : EGtW_draconicAncestryFeature,\r\n\t\t\t\"forceful presence\" : {\r\n\t\t\t\tname : \"Forceful Presence\",\r\n\t\t\t\tsource : [[\"W\", 168]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tvariants : []\r\n\t};\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"black\", {\r\n\t\tregExpSearch : /black/i,\r\n\t\tname : \"Black draconblood dragonborn\",\r\n\t\ttrait : \"Black draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"blue\", {\r\n\t\tregExpSearch : /blue/i,\r\n\t\tname : \"Blue draconblood dragonborn\",\r\n\t\ttrait : \"Blue draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"brass\", {\r\n\t\tregExpSearch : /brass/i,\r\n\t\tname : \"Brass draconblood dragonborn\",\r\n\t\ttrait : \"Brass draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathLine,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"bronze\", {\r\n\t\tregExpSearch : /bronze/i,\r\n\t\tname : \"Bronze draconblood dragonborn\",\r\n\t\ttrait : \"Bronze draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"copper\", {\r\n\t\tregExpSearch : /copper/i,\r\n\t\tname : \"Copper draconblood dragonborn\",\r\n\t\ttrait : \"Copper draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"gold\", {\r\n\t\tregExpSearch : /gold/i,\r\n\t\tname : \"Gold draconblood dragonborn\",\r\n\t\ttrait : \"Gold draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"green\", {\r\n\t\tregExpSearch : /green/i,\r\n\t\tname : \"Green draconblood dragonborn\",\r\n\t\ttrait : \"Green draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_poisonBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"poison\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"red\", {\r\n\t\tregExpSearch : /red/i,\r\n\t\tname : \"Red draconblood dragonborn\",\r\n\t\ttrait : \"Red draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"silver\", {\r\n\t\tregExpSearch : /silver/i,\r\n\t\tname : \"Silver draconblood dragonborn\",\r\n\t\ttrait : \"Silver draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"white\", {\r\n\t\tregExpSearch : /white/i,\r\n\t\tname : \"White draconblood dragonborn\",\r\n\t\ttrait : \"White draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\r\n\t// Ravenite\r\n\tRaceList[\"ravenite dragonborn\"] = {\r\n\t\tregExpSearch : /ravenite/i,\r\n\t\tname : \"Ravenite Dragonborn\",\r\n\t\tsortname : \"Dragonborn, Ravenite\",\r\n\t\tsource : [[\"W\", 169]],\r\n\t\tplural : \"Ravenite Dragonborn\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tweaponOptions : [EGtW_breathWeaponObj],\r\n\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [2, 1, 0, 0, 0, 0],\r\n\t\ttrait : \"Ravenite Dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\t\"Draconic Ancestry: Choose one type of dragon using the \\\"Racial Options\\\" button. I gain a breath weapon as determined by the dragon type chosen.\",\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"draconic ancestry\" : EGtW_draconicAncestryFeature,\r\n\t\t\t\"vengeful assault\" : {\r\n\t\t\t\tname : \"Vengeful Assault\",\r\n\t\t\t\tsource : [[\"W\", 168]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taction : [['reaction', \"\"]],\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tvariants : []\r\n\t};\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"black\", {\r\n\t\tregExpSearch : /black/i,\r\n\t\tname : \"Black ravenite dragonborn\",\r\n\t\ttrait : \"Black ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"blue\", {\r\n\t\tregExpSearch : /blue/i,\r\n\t\tname : \"Blue ravenite dragonborn\",\r\n\t\ttrait : \"Blue ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"brass\", {\r\n\t\tregExpSearch : /brass/i,\r\n\t\tname : \"Brass ravenite dragonborn\",\r\n\t\ttrait : \"Brass ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathLine,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"bronze\", {\r\n\t\tregExpSearch : /bronze/i,\r\n\t\tname : \"Bronze ravenite dragonborn\",\r\n\t\ttrait : \"Bronze ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"copper\", {\r\n\t\tregExpSearch : /copper/i,\r\n\t\tname : \"Copper ravenite dragonborn\",\r\n\t\ttrait : \"Copper ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"gold\", {\r\n\t\tregExpSearch : /gold/i,\r\n\t\tname : \"Gold ravenite dragonborn\",\r\n\t\ttrait : \"Gold ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"green\", {\r\n\t\tregExpSearch : /green/i,\r\n\t\tname : \"Green ravenite dragonborn\",\r\n\t\ttrait : \"Green ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_poisonBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"poison\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"red\", {\r\n\t\tregExpSearch : /red/i,\r\n\t\tname : \"Red ravenite dragonborn\",\r\n\t\ttrait : \"Red ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"silver\", {\r\n\t\tregExpSearch : /silver/i,\r\n\t\tname : \"Silver ravenite dragonborn\",\r\n\t\ttrait : \"Silver ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"white\", {\r\n\t\tregExpSearch : /white/i,\r\n\t\tname : \"White ravenite dragonborn\",\r\n\t\ttrait : \"White ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n}\r\n\r\n// Subclasses\r\nAddSubClass(\"fighter\", \"echo knight\", { // contains contributions by Smashman, @Nod_Hero#2046 (Discord), BraabHimself, and TysonJouglet\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green))(?=.*(knight|fighter|warrior|militant|warlord|phalanx|gladiator|trooper))(?=.*(echo|mirror|mirage|reflection)).*$/i,\r\n\tsubname : \"Echo Knight\",\r\n\tsource : [[\"W\", 183]],\r\n\tfullname : \"Echo Knight\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Manifest Echo\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can magically manifest a translucent image of myself within 15 ft\",\r\n\t\t\t\t\"My echo lasts until I dismiss it as a bonus action, I manifest another, or I'm incapacitated\",\r\n\t\t\t\t\"It is also destroyed if it is more than 30 ft away from me at the end of my turn\",\r\n\t\t\t\t\"It has 1 HP, immunity to all conditions, uses my save bonuses, and AC 14 + Prof Bonus\",\r\n\t\t\t\t\"On my turn as a free action, I can command it to move up to 30 ft in any direction\",\r\n\t\t\t\t\"As a bonus action, I can teleport to swap places with it, at a cost of 15 ft movement\",\r\n\t\t\t\t\"When I use the Attack action on my turn, I can have any attack originate from my echo\",\r\n\t\t\t\t\"I can also make opportunity attacks from the echo's location as if I were in its space\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/dismiss)\"], [\"bonus action\", \"Swap Location with Echo\"]],\r\n\t\t\tcreaturesAdd : [[\"Echo\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Echo\",\r\n\t\t\t\tsource : [[\"W\", 183]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Echo\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : \"14+oProf\",\r\n\t\t\t\thp : 1,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"fly 30 ft (hover)\",\r\n\t\t\t\tscores : [\"\", \"\", \"\", \"\", \"\", \"\"],\r\n\t\t\t\tsavesLinked : true,\r\n\t\t\t\tcondition_immunities : \"all conditions\",\r\n\t\t\t\tpassivePerception : 0,\r\n\t\t\t\tlanguages : \"\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 0,\r\n\t\t\t\tattacksAction : 0,\r\n\t\t\t\tattacks : [],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Echo\",\r\n\t\t\t\t\tdescription : \"The echo is a magical, translucent, gray image of its creator that doesn't act and has no turn in combat. It lasts until it is destroyed, dismissed, another is manifested, or its creator is incapacitated. The echo is also destroyed if it is ever more than 30 ft away from its creator at the end of its creator's turn.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Swap Place\",\r\n\t\t\t\t\tdescription : \"The echo's creator can, as a bonus action, teleport, magically swapping places with the echo at a cost of 15 feet of the creator's movement, regardless of the distance between the two.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Attack Origin\",\r\n\t\t\t\t\tdescription : \"When the echo's creator takes the Attack action on their turn, any attack they make with that action can originate from the echo's space. This choice is made for each attack separately.\\n   In addition, when a creature that the echo's creator can see within 5 ft of the echo moves at least 5 ft away from it, its creator can use their reaction to make an opportunity attack against that creature as if its creator was in the echo's space.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Echo\",\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// Same size as character\r\n\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", tDoc.getField(\"Size Category\").currentValueIndices);\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Age\", What(\"Age\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Sex\", What(\"Sex\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Height\", What(\"Height\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Alignment\", What(\"Alignment\"));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Unleash Incarnation\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use the Attack action, I can make one extra melee attack from my echo's position\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Echo Avatar\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can temporarily transfer my consciousness to my echo for up to 10 min\",\r\n\t\t\t\t\"During this time, I see and hear through its eyes and ears, but not my own eyes and ears\",\r\n\t\t\t\t\"While I use my echo this way, it can be up to 1000 ft away from me without issue\",\r\n\t\t\t\t\"I can end this at any time, requiring no action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shadow Martyr\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see is attacked, I can make my echo the target\",\r\n\t\t\t\t\"Before the attack roll, the echo teleports to an empty space within 5 ft of the creature\",\r\n\t\t\t\t\"The attack roll of the triggering attack is then made against the echo instead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Reclaim Potential\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When my echo is destroyed by taking damage, I gain 2d6 + my Con mod in temp HP\",\r\n\t\t\t\t\"I can only gain these temporary hit points if I don't already have temporary hit points\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Legion of One\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can now manifest two echoes instead of one with the same bonus action\",\r\n\t\t\t\t\"These two can coexist, but if I manifest a third, the previous two are destroyed\",\r\n\t\t\t\t\"Anything I can do from one echo's position can be done from the other's instead\",\r\n\t\t\t\t\"I regain one use of Unleash Incarnation if I have no more remaining when I roll initiative\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"chronurgy magic\", { // contains contributions by bassbogan on GitHub and @Nod_Hero#2046 on Discord\r\n\tregExpSearch : /chronurgy|chronomancer|chronurgist/i,\r\n\tsubname : \"Chronurgy Magic\",\r\n\tsubnameShort: \"Chronurgy\",\r\n\tfullname : \"Chronurgist\",\r\n\tsource : [[\"W\", 184]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Chronal Shift\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after I or a creature I see rolls a check, save, or attack, I can force a reroll\",\r\n\t\t\t\t\"I can do this after I see if the roll fails or succeeds; The target must use the second roll.\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\teval : function() {\r\n\t\t\t\t// Always have access to dunamancy spells enabled\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") === -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\t// Remove access to dunamancy spells when removing subclass\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") !== -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true], \"remove\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Temporal Awareness\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Momentary Stasis\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can have a Large or smaller creature I can see in 60 ft make a Con save\",\r\n\t\t\t\t\"If failed, it is encased in a field of magical energy, incapacitated and has a speed of 0\",\r\n\t\t\t\t\"This lasts until the end of my next turn or until the creature takes any damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Arcane Abeyance\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast a 4th-level or lower spell, I can condense it into a mote\",\r\n\t\t\t\t\"The spell is frozen in time at the moment of casting and held within a grey bead\",\r\n\t\t\t\t\"The bead is a Tiny object with 1 HP, AC 15, and immune to poison and psychic damage\",\r\n\t\t\t\t\"After 1 hour or if it is destroyed, it vanishes with a flash of light and the spell is lost\",\r\n\t\t\t\t\"As an action, a creature holding the bead can release the spell within as if they cast it\",\r\n\t\t\t\t\"The spell still uses my spell attack bonus and save DC; The bead vanishes once used\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Convergent Future\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after I or a creature I see rolls a check, save, or attack, I can choose the roll\",\r\n\t\t\t\t\"I decide the number rolled, if it is the minimum needed to succeed or 1 less than that\",\r\n\t\t\t\t\"When I use this feature, I gain a level of exhaustion which only a long rest can remove\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"graviturgy magic\", { // contains contributions by bassbogan on GitHub and @Nod_Hero#2046 on Discord\r\n\tregExpSearch : /^((?=.*graviturgy)(?=.*(wizard|magic|mage))|gravimancer|graviturgist).*$/i,\r\n\tsubname : \"Graviturgy Magic\",\r\n\tsubnameShort: \"Graviturgy\",\r\n\tfullname : \"Graviturgist\",\r\n\tsource : [[\"W\", 185]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Adjust Density\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically double or halve the weight of a creature I can see in 30 ft\",\r\n\t\t\t\t\"If doubled, it has -10 ft speed and advantage on Strength checks and Strength saves\",\r\n\t\t\t\t\"If halved, it has +10 ft speed, can jump twice as far, and disadv. on Str checks and saves\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration ends (like concentrating on a spell)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? \"Large\" : \"Huge\") + \" or smaller creatures\";\r\n\t\t\t}),\r\n\t\t\teval : function() {\r\n\t\t\t\t// Always have access to dunamancy spells enabled\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") === -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\t// Remove access to dunamancy spells when removing subclass\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") !== -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true], \"remove\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Gravity Well\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I cast a spell on a creature, I can move it 5 ft to an empty space of my choice\",\r\n\t\t\t\t\"This only works if the target is willing, fails its save vs. the spell, or the spell attack hits it\"\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Violent Attraction\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I see in 60 ft hits a weapon attack, I can improve it\",\r\n\t\t\t\t\"I increase the weapon's velocity, causing it to deal an extra 1d10 damage\",\r\n\t\t\t\t\"As a reaction if a creature within 60 ft is damaged by a fall, I can increase it by 2d10\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Event Horizon\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically emit powerful gravitational magic that pulls on hostiles\",\r\n\t\t\t\t\"Whenever a creature hostile to me starts it turn within 30 ft, it must make Str save\",\r\n\t\t\t\t\"If failed, it takes 2d10 force damage and its speed is 0 until the start of its next turn\",\r\n\t\t\t\t\"If successful, it takes half the damage and every foot it moves this turn costs 2 extra feet\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration ends (like concentrating on a spell)\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add option to allow Dunamancy spells for the other spellcastingclasses\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the bard spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the bard class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the cleric spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the cleric class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the druid spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the druid class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the paladin spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the paladin class with all dunamancy spells (spell level in brackets): Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), and Temporal Shunt (5).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\nvar EGtW_Ranger_Dunamancy_Spells = {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the ranger spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the ranger class with all dunamancy spells (spell level in brackets): Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), and Temporal Shunt (5).\"\r\n\t\t]\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Access to Dunamancy Spells\", EGtW_Ranger_Dunamancy_Spells, \"Optional 2nd-level ranger features\");\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList[\"rangerua\"]) return;\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Access to Dunamancy Spells\", EGtW_Ranger_Dunamancy_Spells, \"Optional 2nd-level ranger features\");\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the sorcerer spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the sorcerer class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the warlock spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the warlock class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the wizard spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the wizard class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList.artificer) return;\r\n\tAddFeatureChoice(ClassList.artificer.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\t\tname : \"Dunamancy Spells\",\r\n\t\textraname : \"Optional Artificer 1\",\r\n\t\tsource : [[\"W\", 186]],\r\n\t\tdescription : desc([\r\n\t\t\t\"All dunamancy spells are added to the artificer spell list, each still pending DM's approval\"\r\n\t\t]),\r\n\t\tcalcChanges : {\r\n\t\t\tspellList : [\r\n\t\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t\tif (spName !== \"artificer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t\t},\r\n\t\t\t\t\"This optional class feature expands the spell list of the artificer class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5).\"\r\n\t\t\t]\r\n\t\t}\r\n\t}, \"Optional 1st-level artificer features\");\r\n});\r\n\r\n// Backgrounds (includes contributions by remcovandalen)\r\nBackgroundList[\"grinner\"] = {\r\n\tregExpSearch : /grinner/i,\r\n\tname : \"Grinner\",\r\n\tsource : [[\"W\", 200]],\r\n\tskills : [\"Deception\", \"Performance\"],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], [\"Musical instrument\", 1]],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Gold-plated ring with smiling face\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Ballad of the Grinning Fool\",\r\n\ttrait : [\r\n\t\t\"I love the spotlight. Everyone, look at me!\",\r\n\t\t\"Give me a drink and I'm your friend.\",\r\n\t\t\"Talk to me about yourself. I'm a hell of a listener.\",\r\n\t\t\"I hate to start fights, but I love to finish them.\",\r\n\t\t\"I can't sit still.\",\r\n\t\t\"I'm always humming an old tune from my past.\",\r\n\t\t\"When I don't have a reason to smile, I'm miserable.\",\r\n\t\t\"I'm lucky like you wouldn't believe.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Revolution\",\r\n\t\t\t\"Revolution: Tyrants must fall, no matter the cost. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Compassion\",\r\n\t\t\t\"Compassion: The only way to make a better world is to perform small kindnesses. (Good)\"\r\n\t\t],\r\n\t\t[\"Justice\",\r\n\t\t\t\"Justice: A nation built upon just foundations will uphold freedom for all. (Law)\"\r\n\t\t],\r\n\t\t[\"Expression\",\r\n\t\t\t\"Expression: Music, joy, and laughter are the keys to freedom. (Good)\"\r\n\t\t],\r\n\t\t[\"Self-Determination\",\r\n\t\t\t\"Self-Determination: People should be free to do as they please. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Vigilance\",\r\n\t\t\t\"Vigilance: A free people must be carefully taught, lest they be misled. (Neutral)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I lost someone important to an agent of the empire. That regime will fall.\",\r\n\t\t\"The first people to be hurt by this war will be the common folk. I need to protect them.\",\r\n\t\t\"Music helped me through a dark time in my life. Now, I'll use music to change the world.\",\r\n\t\t\"I will be known as the greatest spy who ever lived.\",\r\n\t\t\"All life is precious to me. I know I can change the world without taking a humanoid life.\",\r\n\t\t\"The elite in their ivory towers don't understand how we suffer. I intend to show them.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I've never lied once in my life. What? No, I'm not crossing my fingers!\",\r\n\t\t\"I do everything big! Subtlety? I don't know the meaning of subtlety! Oh, that's a problem?\",\r\n\t\t\"Being a spy in wartime is painful. I've seen so much suffering, I think I'm losing my mind.\",\r\n\t\t\"I can't focus on my mission. I just want to carouse and sing and play!\",\r\n\t\t\"Yeah, that's my name. Yeah, I'm a Grinner spy. Who cares about staying undercover?\",\r\n\t\t\"I can't afford to trust anyone. Not. Anyone.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Your Favorite Code-Song\",\r\n\t\t\"Zan's Coming Back\",\r\n\t\t\"Blow Fire Down the Coast\",\r\n\t\t\"Hush! Onward Come the Dragons\",\r\n\t\t\"Let the Sword Grow Rust\",\r\n\t\t\"Drink Deep, Li'l Hummingbird\",\r\n\t\t\"Dirge for the Emerald Fire\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"ballad of the grinning fool\"] = {\r\n\tdescription : \"A member of the Golden Grin will find me and give shelter to me and my companions if I play the Ballad of the Grinning Fool in a major tavern or inn in a large city. This shelter might be discontinued if it becomes too dangerous to hide me. I must use the ballad with caution, for those who know the ballad can be traitors, counterspies, or agents of tyranny.\",\r\n\tsource : [[\"W\", 200]]\r\n};\r\nBackgroundList[\"volstrucker agent\"] = {\r\n\tregExpSearch : /^(?=.*volstrucker)(?=.*agent).*$/i,\r\n\tname : \"Volstrucker Agent\",\r\n\tsource : [[\"W\", 202]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\ttoolProfs : [\"Poisoner's kit\"],\r\n\tlanguageProfs : [1],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Poisoner's kit\", \"\", 2]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Black cloak with a hood\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Shadow Network\",\r\n\ttrait : [\r\n\t\t\"I prefer to keep my thoughts to myself.\",\r\n\t\t\"I indulge vice in excess to quiet my conscience.\",\r\n\t\t\"I've left emotion behind me. I'm now perfectly placid.\",\r\n\t\t\"Some event from the past keeps worming its way into my mind, making me restless.\",\r\n\t\t\"I always keep my word\\u2014except when I'm commanded to break it.\",\r\n\t\t\"I laugh off insults and never take them personally.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Order\",\r\n\t\t\t\"Order: The will of the crown is absolute. (Law)\"\r\n\t\t],\r\n\t\t[\"True Loyalty\",\r\n\t\t\t\"True Loyalty: The Cerberus Assembly is greater than any power, even the crown. (Any)\"\r\n\t\t],\r\n\t\t[\"Death\",\r\n\t\t\t\"Death: The penalty for disloyalty is death. (Evil)\"\r\n\t\t],\r\n\t\t[\"Determination\",\r\n\t\t\t\"Determination: I cannot fail. Not ever. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Fear\",\r\n\t\t\t\"Fear: People should not respect power. They should fear it. (Evil)\"\r\n\t\t],\r\n\t\t[\"Escape\",\r\n\t\t\t\"Escape: The Volstrucker are pure evil! I can't atone for what I've done for them, but I can escape with my life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The job is all that matters. I will see it through.\",\r\n\t\t\"My orders are important, but my comrades are worth more than anything. I would die for them.\",\r\n\t\t\"Everything I've done, I've done to protect someone close to me.\",\r\n\t\t\"If the empire falls, all of civilization falls with it. I will hold back chaos and barbarism at any cost.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I drink to dull the pain in the back of my head.\",\r\n\t\t\"I go a bit mad when I see blood.\",\r\n\t\t\"I can hear the voices of everyone I've killed. I see their faces. I can't be free of these ghosts.\",\r\n\t\t\"Fear is a powerful motivator. I will do whatever it takes to prevent those who know what I am from seeing me fail, and from those I care about from knowing what I am.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Your Tragedy\",\r\n\t\t\"Familicide\",\r\n\t\t\"Amnesia\",\r\n\t\t\"Capture\",\r\n\t\t\"Starvation\",\r\n\t\t\"Disfigurement\",\r\n\t\t\"Vicissitude\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"shadow network\"] = {\r\n\tdescription : \"I can use the Volstrucker shadow network to communicate with other members over long distances. I can write a letter in special arcane ink (10 gp per page), address it to another member of the Volstrucker, and cast it into a fire. It will burn and materialize whole again on the person of the addressee. This special ink is the same as used for a wizard's spellbook.\",\r\n\tsource : [[\"W\", 202]]\r\n};\r\nAddBackgroundVariant(\"acolyte\", \"luxonborn\", {\r\n\tregExpSearch : /luxonborn/i,\r\n\tname : \"Luxonborn\",\r\n\tsource : [[\"W\", 203]]\r\n});\r\nAddBackgroundVariant(\"criminal\", \"myriad operative\", {\r\n\tregExpSearch : /^(?=.*myriad)(?=.*operative).*$/i,\r\n\tname : \"Myriad Operative\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : \"\"\r\n});\r\nAddBackgroundVariant(\"sailor\", \"revelry pirate\", {\r\n\tregExpSearch : /^(?=.*revelry)(?=.*pirate).*$/i,\r\n\tname : \"Revelry Pirate\",\r\n\tsource : [[\"W\", 203]]\r\n});\r\nAddBackgroundVariant(\"sage\", \"cobalt scholar\", {\r\n\tregExpSearch : /^(?=.*cobalt)(?=.*scholar).*$/i,\r\n\tname : \"Cobalt Scholar\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : [\r\n\t\t\"Select Specific Role\",\r\n\t\t\"Rank-and-file\",\r\n\t\t\"Expositors\",\r\n\t\t\"Archivists\"\r\n\t]\r\n});\r\nAddBackgroundVariant(\"criminal\", \"augen trust\", {\r\n\tregExpSearch : /^(?=.*augen)(?=.*trust).*$/i,\r\n\tname : \"Augen Trust\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : \"\"\r\n});\r\n\r\n// Spells (contains contributions by Biggoron144)\r\nSpellsList[\"sapping sting\"] = {\r\n\tname : \"Sapping Sting\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 0,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 creature that I can see save or 1d4 Necrotic dmg and fall prone; +1d4 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 creature that I can see save or `CD`d4 Necrotic dmg and fall prone\",\r\n\tdescriptionFull : \"You sap the vitality of one creature you can see in range. The target must succeed on a Constitution saving throw or take 1d4 necrotic damage and fall prone.\\n   This spell's damage increases by 1d4 when you reach 5th level (2d4), 11th level (3d4), and 17th level (4d4).\"\r\n};\r\nWeaponsList[\"sapping sting\"] = {\r\n\tregExpSearch : /^(?=.*sapping)(?=.*sting).*$/i,\r\n\tname : \"Sapping Sting\",\r\n\tsource : [[\"W\", 189]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 4, \"necrotic\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also fall prone\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nSpellsList[\"gift of alacrity\"] = {\r\n\tname : \"Gift of Alacrity\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"1 willing creature can add 1d8 to its initiative rolls for the duration\",\r\n\tdescriptionFull : \"You touch a willing creature. For the duration, the target can add 1d8 to its initiative rolls.\"\r\n};\r\nSpellsList[\"magnify gravity\"] = {\r\n\tname : \"Magnify Gravity\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Con\",\r\n\tdescription : \"10-ft rad all crea 2d8+1d8/SL Force dmg, half spd; Save halves \\u0026 no spd reduce; Str check to move obj\",\r\n\tdescriptionShorter : \"10-ft rad all 2d8+1d8/SL Force dmg, half spd; Save half, no spd reduce; Str check to move obj\",\r\n\tdescriptionFull : \"The gravity in a 10-foot-radius sphere centered on a point you can see within range increases for a moment. Each creature in the sphere on the turn when you cast the spell must make a Constitution saving throw. On a failed save, a creature takes 2d8 force damage, and its speed is halved until the end of its next turn. On a successful save, a creature takes half as much damage and suffers no reduction to its speed.\\n   Until the start of your next turn, any object that isn't being worn or carried in the sphere requires a successful Strength check against your spell save DC to pick up or move.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"fortune's favor\"] = {\r\n\tname : \"Fortune's Favor\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A white pearl worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1+1/SL crea once roll extra d20 and select which to use for atk, check, save, or atk vs. it (100gp cons.)\",\r\n\tdescriptionFull : \"You impart latent luck to yourself or one willing creature you can see within range. When the chosen creature makes an attack roll, an ability check, or a saving throw before the spell ends, it can dismiss this spell on itself to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against the chosen creature, it can dismiss this spell on itself to roll a d20 and choose which of the d20s to use, the one it rolled or the one the attacker rolled.\\n   If the original d20 roll has advantage or disadvantage, the creature rolls the additional d20 after advantage or disadvantage has been applied to the original roll.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"immovable object\"] = {\r\n\tname : \"Immovable Object\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Gold dust worth at least 25 gp, which the spell consumes\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1 obj <10 lb fixed in place; holds 4k lb; Str check move, except chosen/password; See B (25gp cons.)\",\r\n\tdescriptionMetric : \"1 obj <5 kg fixed in place; holds 2k kg; Str check move, except chosen/password; See B (25gp cons.)\",\r\n\tdescriptionFull : \"You touch an object that weighs no more than 10 pounds and cause it to become magically fixed in place. You and the creatures you designate when you cast this spell can move the object normally. You can also set a password that, when spoken within 5 feet of the object, suppresses this spell for 1 minute.\\n   If the object is fixed in the air, it can hold up to 4,000 pounds of weight. More weight causes the object to fall. Otherwise, a creature can use an action to make a Strength check against your spell save DC. On a success, the creature can move the object up to 10 feet.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 4th or 5th level, the DC to move the object increases by 5, it can carry up to 8,000 pounds of weight, and the duration increases to 24 hours. If you cast this spell using a spell slot of 6th level or higher, the DC to move the object increases by 10, it can carry up to 20,000 pounds of weight, and the effect is permanent until dispelled.\"\r\n};\r\nSpellsList[\"wristpocket\"] = {\r\n\tname : \"Wristpocket\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 190]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Store 1 held obj <5 lb in extradim. space; 1 a to summon obj in free hand or return; reappears at end\",\r\n\tdescriptionMetric : \"Store 1 held obj <2,5 kg in extradim. space; 1 a summon obj in free hand or return; reappears at end\",\r\n\tdescriptionFull : \"You flick your wrist, causing one object in your hand to vanish. The object, which only you can be holding and can weigh no more than 5 pounds, is transported to an extradimensional space, where it remains for the duration.\\n   Until the spell ends, you can use your action to summon the object to your free hand, and you can use your action to return the object to the extradimensional space. An object still in the pocket plane when the spell ends appears in your space, at your feet.\"\r\n};\r\nSpellsList[\"pulse wave\"] = {\r\n\tname : \"Pulse Wave\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"6d6+1d6/SL Force dmg, pulled/pushed 15+5/SL ft from me (also free obj); save halves, no move\",\r\n\tdescriptionMetric : \"6d6+1d6/SL Force dmg, pull/push 4,5+1,5/SL m from me (also free obj); save halves, no move\",\r\n\tdescriptionShorter : \"6d6+1d6/SL Force dmg, pull/push 15+5/SL ft from me (also free obj); save half, no move\",\r\n\tdescriptionFull : \"You create intense pressure, unleash it in a 30-foot cone, and decide whether the pressure pulls or pushes creatures and objects. Each creature in that cone must make a Constitution saving throw. A creature takes 6d6 force damage on a failed save, or half as much damage on a successful one. And every creature that fails the save is either pulled 15 feet toward you or pushed 15 feet away from you, depending on the choice you made for the spell.\\n   In addition, unsecured objects that are completely within the cone are likewise pulled or pushed 15 feet.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d6 and the distance pulled or pushed increases by 5 feet for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"gravity sinkhole\"] = {\r\n\tname : \"Gravity Sinkhole\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A black marble\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all crea 5d10+1d10/SL Force dmg, pulled to center of radius; save halves and not pulled\",\r\n\tdescriptionFull : \"A 20-foot-radius sphere of crushing force forms at a point you can see within range and tugs at the creatures there. Each creature in the sphere must make a Constitution saving throw. On a failed save, the creature takes 5d10 force damage and is pulled in a straight line toward the center of the sphere, ending in an unoccupied space as close to the center as possible (even if that space is in the air). On a successful save, the creature takes half as much damage and isn't pulled.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d10 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"temporal shunt\"] = {\r\n\tname : \"Temporal Shunt\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, taken when a creature you can see makes an attack roll or starts to cast a spell\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Cast if see atk/cast, 1+1/SL crea, each max 30 ft apart, save or vanish until next turn, atk/cast wasted\",\r\n\tdescriptionFull : \"You target the triggering creature, which must succeed on a Wisdom saving throw or vanish, being thrown to another point in time and causing the attack to miss or the spell to be wasted. At the start of its next turn, the target reappears where it was or in the closest unoccupied space. The target doesn't remember you casting the spell or being affected by it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, you can target one additional creature for each slot level above 5th. All targets must be within 30 feet of each other.\"\r\n};\r\nSpellsList[\"gravity fissure\"] = {\r\n\tname : \"Gravity Fissure\",\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 6,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:100\" + (typePF ? \"-\" : \"\") + \"ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A fistful of iron filings\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"100-ft long 5-ft wide all 8d8+1d8/SL Force dmg, save half; all in 10 ft of line save or dmg \\u0026 pull to it\",\r\n\tdescriptionShorter : \"100-ft long 5-ft wide all 8d8+1d8/SL Force dmg, save half; all in 10 ft of it save or dmg \\u0026 pulled\",\r\n\tdescriptionFull : \"You manifest a ravine of gravitational energy in a line originating from you that is 100 feet long and 5 feet wide. Each creature in that line must make a Constitution saving throw, taking 8d8 force damage on a failed save, or half as much damage on a successful one.\\n   Each creature within 10 feet of the line but not in it must succeed on a Constitution saving throw or take 8d8 force damage and be pulled toward the line until the creature is in its area.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 7th level or higher, the damage increases by 1d8 for each slot level above 6th.\"\r\n};\r\nSpellsList[\"tether essence\"] = {\r\n\tname : \"Tether Essence\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 7,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A spool of platinum cord worth at least 250 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Con\",\r\n\tdescription : \"2 crea save (dis. if in 30 ft) or if both fail take same dmg and same healing; ends if 0 hp (250gp cons.)\",\r\n\tdescriptionFull : \"Two creatures you can see within range must make a Constitution saving throw, with disadvantage if they are within 30 feet of each other. Either creature can willingly fail the save. If either save succeeds, the spell has no effect. If both saves fail, the creatures are magically linked for the duration, regardless of the distance between them. When damage is dealt to one of them, the same damage is dealt to the other one. If hit points are restored to one of them, the same number of hit points are restored to the other one. If either of the tethered creatures is reduced to 0 hit points, the spell ends on both. If the spell ends on one creature, it ends on both.\"\r\n};\r\nSpellsList[\"dark star\"] = {\r\n\tname : \"Dark Star\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A shard of onyx and a drop of the caster's blood, both of which the spell consumes\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Up to 40-ft rad as Darkness spell, as Silence spell, dif. ter.; enter/start turn 8d10 Force dmg, save half\",\r\n\tdescriptionShorter : \"Up to 40-ft rad as Darkness \\u0026 Silence, dif. ter.; enter/start turn 8d10 Force dmg, save half\",\r\n\tdescriptionFull : \"This spell creates a sphere centered on a point you choose within range. The sphere can have a radius of up to 40 feet. The area within this sphere is filled with magical darkness and crushing gravitational force.\\n   For the duration, the spell's area is difficult terrain. A creature with darkvision can't see through the magical darkness, and nonmagical light can't illuminate it. No sound can be created within or pass through the area. Any creature or object entirely inside the sphere is immune to thunder damage, and creatures are deafened while entirely inside it. Casting a spell that includes a verbal component is impossible there.\\n   Any creature that enters the spell's area for the first time on a turn or starts its turn there must make a Constitution saving throw. The creature takes 8d10 force damage on a failed save, or half as much damage on a successful one. A creature reduced to 0 hit points by this damage is disintegrated. A disintegrated creature and everything it is wearing and carrying, except magic items, are reduced to a pile of fine gray dust.\"\r\n};\r\nSpellsList[\"reality break\"] = {\r\n\tname : \"Reality Break\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A crystal prism\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or can't take reactions, random effect each turn, see book; extra save at end of every turn\",\r\n\tdescriptionFull : \"You shatter the barriers between realities and timelines, thrusting a creature into turmoil and madness. The target must succeed on a Wisdom saving throw, or it can't take reactions until the spell ends. The affected target must also roll a d10 at the start of each of its turns; the number rolled determines what happens to the target, as shown on the Reality Break Effects table.\"+\r\n\t\"\\n   At the end of each of its turns, the affected target can repeat the Wisdom saving throw, ending the spell on itself on a success.\"+\r\n\t\"\\n\\n d10 \\tEffect\"+\r\n\t\"\\n 1-2 \\tVision of the Far Realm: The target takes 6d12 psychic damage, and it is stunned until the end of the turn.\"+\r\n\t\"\\n 3-5 \\tRending Rift: The target must make a Dexterity saving throw, taking 8d12 force damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n 6-8 \\tWormhole: The target is teleported, along with everything it is wearing and carrying, up to 30 feet to an unoccupied space of your choice that you can see. The target also takes 10d12 force damage and is knocked prone.\"+\r\n\t\"\\n 9-10\\tChill of the Dark Void: The target takes 10d12 cold damage, and it is blinded until the end of the turn.\"\r\n};\r\nSpellsList[\"ravenous void\"] = {\r\n\tname : \"Ravenous Void\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 9,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"1000 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A small, nine-pointed star made of iron\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad all enter/start 5d10 Force dmg, restrained; all enter/start in 100 ft save or pulled in; see B\",\r\n\tdescriptionShorter : \"20-ft rad all enter/start 5d10 Force dmg, restrained; all start in 100 ft save or pull in; see B\",\r\n\tdescriptionFull : \"You create a 20-foot-radius sphere of destructive gravitational force centered on a point you can see within range. For the spell's duration, the sphere and any space within 100 feet of it are difficult terrain, and nonmagical objects fully inside the sphere are destroyed if they aren't being worn or carried.\\n   When the sphere appears and at the start of each of your turns until the spell ends, unsecured objects within 100 feet of the sphere are pulled toward the sphere's center, ending in an unoccupied space as close to the center as possible.\\n   A creature that starts its turn within 100 feet of the sphere must succeed on a Strength saving throw or be pulled straight toward the sphere's center, ending in an unoccupied space as close to the center as possible. A creature that enters the sphere for the first time on a turn or starts its turn there takes 5d10 force damage and is restrained until it is no longer in the sphere. If the sphere is in the air, the restrained creature hovers inside the sphere. A creature can use its action to make a Strength check against your spell save DC, ending this restrained condition on itself or another creature in the sphere that it can reach. A creature reduced to 0 hit points by this spell is annihilated, along with any nonmagical items it is wearing or carrying.\"\r\n};\r\nSpellsList[\"time ravage\"] = {\r\n\tname : \"Time Ravage\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 9,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"An hourglass filled with diamond dust worth at least 5,000 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea 10d12 Necrotic dmg \\u0026 aged: dis. atk/chk/save, die in 30 days; save half, not aged (5k gp cons.)\",\r\n\tdescriptionShorter : \"1 crea 10d12 Necro. dmg, aged: dis. atk/chk/save, die in 30 days; save hlf, no aged (5k gp cons)\",\r\n\tdescriptionFull : \"You target a creature you can see within range, putting its physical form through the devastation of rapid aging. The target must make a Constitution saving throw, taking 10d12 necrotic damage on a failed save, or half as much damage on a successful one. If the save fails, the target also ages to the point where it has only 30 days left before it dies of old age. In this aged state, the target has disadvantage on attack rolls, ability checks, and saving throws, and its walking speed is halved. Only the wish spell or the greater restoration cast with a 9th-level spell slot can end these effects and restore the target to its previous age.\"\r\n};\r\n\r\n// Creatures - new beasts\r\nCreatureList[\"moorbounder\"] = {\r\n\tname : \"Moorbounder\",\r\n\tsource : [[\"W\", 295]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 30,\r\n\thd : [4, 10],\r\n\tspeed : \"70 ft\",\r\n\tscores : [18, 14, 14, 2, 13, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Standing Leap\",\r\n\t\tdescription : \"The moorbounder's long jump is up to 40 ft and its high jump is up to 20 ft, with or without a running start.\"\r\n\t}]\r\n};\r\nCreatureList[\"bristled moorbounder\"] = {\r\n\tname : \"Bristled Moorbounder\",\r\n\tsource : [[\"W\", 295]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 52,\r\n\thd : [7, 10],\r\n\tspeed : \"70 ft\",\r\n\tscores : [18, 14, 14, 2, 13, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Blades\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One blades and one claws attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One blades and one claws attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the moorbounder can makeone Blades and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bladed Hide\",\r\n\t\tdescription : \"At the start of each of its turns, the moorbounder deals 2d4 piercing damage to any creature grappling it.\"\r\n\t}, {\r\n\t\tname : \"Standing Leap\",\r\n\t\tdescription : \"The moorbounder's long jump is up to 40 ft and its high jump is up to 20 ft, with or without a running start.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items (each contain contributions by kat9137 [Discord] aka sophiechiabatta [GitHub])\r\nMagicItemsList[\"acheron blade\"] = {\r\n\tname : \"Acheron Blade\",\r\n\tnameTest : \"Acheron\",\r\n\tsource : [[\"W\", 265]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This sword gives a +1 to hit and damage rolls. While I'm holding it, I'm immune to effects that turn undead. As an action, once per dusk, I can use it to gain 1d4+4 temporary HP. Once per dusk, I can give a creature hit with it disadvantage on their next save until the end of my next turn (frighten effect).\",\r\n\tdescriptionFull : \"The black blade of this sword is crafted from a mysterious arcane alloy. You gain a +1 bonus to attack and damage rolls made with this magic weapon. While the sword is on your person, you are immune to effects that turn undead.\"+\r\n\t\"\\n   \" + toUni(\"Dark Blessing\") + \". While holding the sword, you can use an action to give yourself 1d4 + 4 temporary hit points. This property can't be used again until the next dusk.\"+\r\n\t\"\\n   \" + toUni(\"Disheartening Strike\") + \". When you hit a creature with an attack using this weapon, you can fill the target with unsettling dread: the target has disadvantage on the next saving throw it makes before the end of your next turn. The creature ignores this effect if it's immune to the frightened condition. Once you use this property, you can't do so again until the next dusk\",\r\n\taction : [[\"action\", \" (Dark Blessing)\"]],\r\n\tsavetxt : { immune : [\"Effects that turn undead\"] },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Acheron Blade (Dark Blessing)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Dusk\"\r\n\t}, {\r\n\t\tname : \"Acheron Blade (Disheartening Strike)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Dusk\"\r\n\t}],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/acheron/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per dusk, target disadv. on next save until my next turn ends';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Acheron\" in a the name of a sword, it will be treated as the magic weapon Acheron Blade.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/acheron/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t''\r\n\t\t]\r\n\t}\r\n};\r\n\r\nMagicItemsList[\"amulet of the drunkard\"] = {\r\n\tname : \"Amulet of the Drunkard\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This amulet smells of old, ale-stained wood. While wearing it, I can regain 4d4 + 4 hit points when I drink a pint of beer, ale, mead, or wine. Once the amulet has restored hit points, it can't do so again until the next dawn.\",\r\n\tdescriptionFull : \"This amulet smells of old, ale-stained wood. While wearing it, you can regain 4d4 + 4 hit points when you drink a pint of beer, ale, mead, or wine. Once the amulet has restored hit points, it can't do so again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nvar EGtW_ArcaneCannonFullDescription = [\r\n\t\"This Large cannon is imbued with magic. It requires no ammunition and doesn't need to be loaded. It takes one action to aim the cannon and one action to fire it. After the cannon has fired, it must recharge for 5 minutes before it can be fired again. The creature firing the cannon chooses the effect from the following options:\",\r\n\t\">>Acid Jet<<. The cannon discharges acid in a line 300 feet long and 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 4d10 acid damage on a failed save, or half as much damage on a successful one. In addition, a creature that fails its saving throw takes 2d10 acid damage at the start of each of its turns; a creature can end this damage by using its action to wash off the acid with a pint or more of water.\",\r\n\t\">>Fire Jet<<. The cannon discharges fire in a line 300 feet long and 5 feet wide. Each creature in the area must make a DC 15 Dexterity saving throw, taking 6d10 fire damage on a failed save, or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\",\r\n\t\">>Frost Shot<<. The cannon shoots a ball of frost to a point you can see within 1200 feet of the cannon. The ball then expands to form a 30-foot-radius sphere centered on that point. Each creature in that area must make a DC 15 Constitution saving throw. On a failed save, a creature takes 4d10 cold damage, and its speed is reduced by 10 feet for 1 minute. On a successful save, the creature takes half as much damage, and its speed isn't reduced. A creature whose speed is reduced by this effect can repeat the save at the end of each of its turns, ending the effect on itself on a success.\",\r\n\t\">>Lightning Shot<<. The cannon shoots a ball of lightning to a point you can see within 1200 feet of the cannon. The lightning then expands to form a 20-foot-radius sphere centered on that point. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d10 lightning damage on a failed save, or half as much damage on a successful one. Creatures wearing metal armor have disadvantage on the save.\",\r\n\t\">>Poison Spray<<. The cannon expels poison gas in a 60-foot cone. Each creature in that area must make a DC 15 Constitution saving throw. On a failed save, the creature takes 4d10 poison damage and is poisoned for 1 minute. On a successful save, the creature takes half as much damage and isn't poisoned. A creature poisoned in this way can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n];\r\nMagicItemsList[\"arcane cannon\"] = {\r\n\tname : \"Arcane Cannon\",\r\n\tsource : [[\"W\", 265]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This Large magical cannon requires no ammunition and doesn't need to be loaded, but takes 5 minutes to recharge once fired. It takes one action to aim it and another action to fire it. When I fire it, I can choose the effect, an acid jet, fire jet, frost shot, lightning shot, or poison spray. See Notes page.\",\r\n\tdescriptionFull : EGtW_ArcaneCannonFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\taction : [[\"action\", \" (Aim or Fire)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tnote : \"\\n\" + EGtW_ArcaneCannonFullDescription.join(\"\\n \\u2022 \").replace(/>>(.*?)<<\\./g, function(a, match) { return match.toUpperCase() + \":\"; }).replace(/\\byou\\b/ig, \"I\").replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t}]\r\n};\r\nMagicItemsList[\"battering shield\"] = {\r\n\tname : \"Battering Shield\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"shield\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This iron tower shield gives me a +1 bonus to AC, in addition to the shield's normal bonus to AC. It has 3 charges, regaining 1d3 expended charges daily at dawn. When I am holding the shield and push a creature 5 ft away, I can expend 1 charge to push that creature an additional 10 ft, knock it prone, or both.\",\r\n\tdescriptionFull : \"While holding this iron tower shield, you gain a +1 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\\n   Additionally, the shield has 3 charges, and it regains 1d3 expended charges daily at dawn. If you are holding the shield and push a creature within your reach at least 5 feet away, you can expend 1 charge to push that creature an additional 10 feet, knock it prone, or both.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tshieldAdd : [\"Battering Shield\", 3],\r\n\tweight : 6\r\n};\r\nMagicItemsList[\"bloodaxe\"] = {\r\n\tname : \"Bloodaxe\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This rust-colored magical greataxe grants a +2 bonus to attack and damage rolls made with it. The axe deals an additional 1d6 necrotic damage to creature's that aren't constructs or undead. If I reduce a creature to 0 hit points with this axe, I gain 10 temporary hit points.\",\r\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic axe. The axe deals an extra 1d6 necrotic damage to creatures that aren't constructs or undead. If you reduce such a creature to 0 hit points with an attack using this axe, you gain 10 temporary hit points.\\n   This axe is forged from a dark, rust-colored metal and once belonged to the goliath barbarian Grog Strongjaw of Vox Machina.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /bloodaxe/i,\r\n\t\tname : \"Bloodaxe\",\r\n\t\tsource : [[\"W\", 266]],\r\n\t\tdescription : \"Heavy, two-handed; +1d6 necrotic damage to living targets\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 7\r\n};\r\nMagicItemsList[\"breathing bubble\"] = {\r\n\tname : \"Breathing Bubble\",\r\n\tsource : [[\"W\", 266], [\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This translucent, bubble-like sphere has a slightly tacky outer surface. I gain its benefits only while wearing it over my head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tdescriptionFull : \"This translucent, bubble-like sphere has a slightly tacky outer surface, and you gain the item's benefits only while wearing it over your head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nMagicItemsList[\"brooch of living essence\"] = {\r\n\tname : \"Brooch of Living Essence\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing this nondescript brooch, spells and anything else that would detect or reveal my creature type treat me as humanoid, and those that would reveal my alignment treat it as neutral.\",\r\n\tdescriptionFull : \"While wearing this nondescript brooch, spells and anything else that would detect or reveal your creature type treat you as humanoid, and those that would reveal your alignment treat it as neutral.\"\r\n};\r\nMagicItemsList[\"butcher's bib\"] = {\r\n\tname : \"Butcher's Bib\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This black leather apron is perpetually covered by blood. Once per turn when I roll damage for a melee attack with a weapon, I can use it to reroll the weapon's damage dice, but must use the new roll. While wearing the bib, my weapon attacks that deal slashing damage score a critical hit on a roll of 19 or 20.\",\r\n\tdescriptionFull : \"This black leather apron is perpetually covered by blood, even after being washed off. You gain the following benefits while wearing the apron:\"+\r\n\t\"\\n \\u2022 Once per turn when you roll damage for a melee attack with a weapon, you can reroll the weapon's damage dice. If you do so, you must use the second total.\"+\r\n\t\"\\n \\u2022 Your weapon attacks that deal slashing damage score a critical hit on a roll of 19 or 20 on the d20.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isDC && !v.isSpell && !v.CritChance && /slash/i.test(v.theWea.damage[2])) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t}\r\n\t\t\t\tif (!v.isDC && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reroll damage once per turn';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"My weapon attacks that deal slashing damage score a critical on a to hit roll of both 19 and 20. Once per turn, I can reroll the damage of a melee weapon attack and must use the second result.\",\r\n\t\t\t19\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"coin of delving\"] = {\r\n\tname : \"Coin of Delving\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This scintillating copper coin sheds dim light in a 5-ft radius. If dropped a distance greater than 5 ft, the coin issues a melodious ringing sound when it hits a surface. Any creature that can hear the chime can determine the distance the coin dropped based on the tone.\",\r\n\tdescriptionFull : \"This scintillating copper coin sheds dim light in a 5-foot radius. If dropped a distance greater than 5 feet, the coin issues a melodious ringing sound when it hits a surface. Any creature that can hear the chime can determine the distance the coin dropped based on the tone.\"\r\n};\r\nMagicItemsList[\"corpse slayer\"] = {\r\n\tname : \"Corpse Slayer\",\r\n\tnameTest : \"Corpse Slaying\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magic weapon. Undead hit by it take an additional 1d8 damage and gain disadvantage on saving throws against effects that turn undead until the start of my next turn.\",\r\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon.\\n   When you hit an undead creature with an attack using this weapon, the attack deals an extra 1d8 damage of the weapon's type, and the creature has disadvantage on saving throws against effects that turn undead until the start of your next turn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : [\"between\", \"Corpse Slaying\", \"\"],\r\n\t\titemName1stPage : [\"suffix\", \"Corpse Slaying\"],\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isSpell && !v.theWea.isMagicWeapon && (/corpse slay(er|ing)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d8 damage vs. undead; Target disadv. vs. turn undead';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Corpse Slayer\" or \"Corpse Slaying\" in a the name of a weapon, it will be treated as the magic weapon Corpse Slayer, which has a +1 to hit and damage and deals +1d8 damage vs. undead.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (!v.isSpell && (/corpse slay(er|ing)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"dispelling stone\"] = {\r\n\tname : \"Dispelling Stone\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This smooth, rainbow-colored, egg-shaped stone can be thrown up to 30 ft and explodes in a 10-ft-radius sphere of magical energy on impact, destroying the stone. Any active spell of 5th level or lower in the sphere ends.\",\r\n\tdescriptionFull : \"This smooth, rainbow-colored, egg-shaped stone can be thrown up to 30 feet and explodes in a 10-foot-radius sphere of magical energy on impact, destroying the stone. Any active spell of 5th level or lower in the sphere ends.\",\r\n\tusages : 1,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"duskcrusher\"] = {\r\n\tname : \"Duskcrusher\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (warhammer)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This rod caries the symbol of Pelor. As a bonus action, I can activate its crackling head of sunlight, that shines bright light in 15 ft and dim for another 15 ft. While active, I can use it as a +2 warhammer that deals radiant damage and +1d8 damage to undead. Once per dawn, I can cast Sunbeam with it (DC 15).\",\r\n\tdescriptionLong : \"This leather-wrapped metal rod caries the symbol of Pelor on top. As a bonus action, I can cause a warhammer head of crackling radiance to spring into existence. It emits emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the radiant head is active, the rod functions as a +2 warhammer that deals radiant damage and +1d8 damage to undead. Once per dawn while its radiant head is active, I can use it to cast Sunbeam (DC 15). I can deactivate the head as an action.\",\r\n\tdescriptionFull : \"This item takes the form of a leather-wrapped metal rod emblazoned with the symbol of Pelor, the Dawn Father. While grasping the rod, you can use a bonus action to cause a warhammer head of crackling radiance to spring into existence. The warhammer's radiant head emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. You can use an action to make the radiant head disappear.\"+\r\n\t\"\\n   While the radiant head is active, you gain a +2 bonus to attack and damage rolls made with this magic weapon, and attacks with the weapon deal radiant damage instead of bludgeoning damage. An undead creature hit by the weapon takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   While you are holding Duskcrusher and its radiant head is active, you can use an action to cast the sunbeam spell (save DC 15) from the weapon, and this action can't be used again until the next dawn.\",\r\n\taction : [ [\"bonus action\", \" (activate)\"], [\"action\", \" (deactivate)\"] ],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Duskcrusher (Sunbeam)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"warhammer\",\r\n\t\tregExpSearch : /duskcrusher/i,\r\n\t\tname : \"Duskcrusher\",\r\n\t\tsource : [[\"W\", 266]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Versatile (1d10); +1d8 damage vs. undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 2,\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"sunbeam\"],\r\n\t\tselection : [\"sunbeam\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nMagicItemsList[\"dust of deliciousness\"] = {\r\n\tname : \"Dust of Deliciousness\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This reddish brown dust can be sprinkled over any edible substance to greatly improve the flavor. The dust also dulls the eater's senses: anyone eating food treated with this dust has disadvantage on Wisdom ability checks and Wisdom saving throws for 1 hour. There is enough dust to flavor six servings.\",\r\n\tdescriptionFull : \"This reddish brown dust can be sprinkled over any edible substance to greatly improve the flavor. The dust also dulls the eater's senses: anyone eating food treated with this dust has disadvantage on Wisdom ability checks and Wisdom saving throws for 1 hour. There is enough dust to flavor six servings.\",\r\n\tusages : 6,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"goggles of object reading\"] = {\r\n\tname : \"Goggles of Object Reading\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing these leather-framed goggles feature purple crystal lenses, I have advantage on Intelligence (Arcana) checks made to reveal information about a creature or object I can see. Once per dawn, I can cast Identify using the goggles.\",\r\n\tdescriptionFull : \"These leather-framed goggles feature purple crystal lenses. While wearing the goggles, you have advantage on Intelligence (Arcana) checks made to reveal information about a creature or object you can see. In addition, you can cast the identify spell using the goggles. Once you do so, you can't do so again until the next dawn.\", // Changed googles to goggles, as this is clearly a typo in the book\r\n\tadditional : \"Identify\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"identify\"],\r\n\t\tselection : [\"identify\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nMagicItemsList[\"hunter's coat\"] = {\r\n\tname : \"Hunter's Coat\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I have a +1 bonus to AC while wearing this leather armor. The coat has 3 charges. When I hit a creature with an attack and that creature doesn't have all its hit points, I can expend 1 charge to deal an extra 1d10 necrotic damage to the target. The coat regains 1d3 expended charges at dawn.\",\r\n\tdescriptionFull : \"You have a +1 bonus to AC while wearing this armor. The coat has 3 charges. When you hit a creature with an attack and that creature doesn't have all its hit points, you can expend 1 charge to deal an extra 1d10 necrotic damage to the target. The coat regains 1d3 expended charges daily at dawn.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*hunter)(?=.*coat).*$/i,\r\n\t\tname : \"Hunter's Coat\",\r\n\t\tsource : [[\"W\", 267]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 10\r\n};\r\nMagicItemsList[\"last stand armor\"] = {\r\n\tname : \"Last Stand Armor\",\r\n\tnameTest : /last.stand.*armou?r/i,\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"armor (any)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I have a +1 bonus to AC while wearing this magic armor. If I die while wearing this armor, it is destroyed, and each celestial, fey, and fiend with 30 ft of me must succeed on a DC 15 Charisma saving throw or be banished to their home plane of existence, unless they are already there.\",\r\n\tdescriptionFull : \"You have a +1 bonus to AC while wearing this armor, which shimmers softly. If you die while wearing the armor, it is destroyed, and each celestial, fey, and fiend with 30 feet of you must succeed on a DC 15 Charisma saving throw or be banished to its home plane of existence, unless it is already there.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Last Stand\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"between\", \"Last Stand\", \"(+1)\"]\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Last Stand Armor\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Never\"\r\n\t}]\r\n};\r\n\r\nvar EGtW_LuxonBeaconFullDescription = [\r\n\t\"This dodecahedron of faintly glowing crystal is heavier than it appears. A set of handles are affixed to its sides, and it pulsates and thrums when touched.\",\r\n\t\">>Fragment of Possibility<<. A creature that touches the beacon and concentrates for 1 minute receives a Fragment of Possibility, which looks like a Tiny, grayish bead of energy that follows the creature around, staying within 1 foot of it at all times. The fragment lasts for 8 hours or until used. Once the beacon grants a Fragment of Possibility, it can't grant another until the next dawn. A creature with a Fragment of Possibility from a Luxon Beacon can't gain another Fragment of Possibility from any source.\",\r\n\t\"When a creature with a Fragment of Possibility makes an attack roll, an ability check, or a saving throw, it can expend its fragment to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against the creature, it can expend its fragment to roll a d20 and choose which of the d20s to use, the one it rolled or the one the attacker rolled.\",\r\n\t\"If the original d20 roll has advantage or disadvantage, the creature rolls its d20 after advantage or disadvantage has been applied to the original roll.\",\r\n\t\">>Soul Snare<<. If a follower of the Luxon who has undergone a ritual of consecution dies within 100 miles of a Luxon Beacon, their soul is ensnared by it. This soul will be reincarnated within the body of a random humanoid baby developing within 100 miles of the beacon.\"\r\n];\r\nMagicItemsList[\"luxon beacon\"] = {\r\n\tname : \"Luxon Beacon\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once per dawn, a creature can touch this crystal for 1 minute to gain a Fragment of Possibility. Once for the next 8 hours, it can roll an extra d20 for an attack, check, save, or being attacked, before the outcome is determined. Creatures consecuted to the Luxon that die within 100 miles of it are reincarnated. See notes.\",\r\n\tdescriptionFull : EGtW_LuxonBeaconFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Luxon Beacon (Fragment of Possibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(EGtW_LuxonBeaconFullDescription).replace(/   >>(.*?)<<\\. /g, function(a, match) { return match.toUpperCase() + \"\\n   \"; })\r\n\t}]\r\n};\r\nMagicItemsList[\"needle of mending\"] = {\r\n\tname : \"Needle of Mending\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This weapon is a magic dagger disguised as a sewing needle. As a bonus action, I can speak its command word to transform it into a dagger or back into a needle. I gain a +1 bonus to attack and damage rolls made with the dagger. As an action while holding it, I can cast the mending cantrip from it.\",\r\n\tdescriptionFull : \"This weapon is a magic dagger disguised as a sewing needle. When you hold it and use a bonus action to speak its command word, it transforms into a dagger or back into a needle.\\n   You gain a +1 bonus to attack and damage rolls made with the dagger. While holding it, you can use an action to cast the mending cantrip from it.\",\r\n\taction : [[\"bonus action\", \" (transform)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*needle)(?=.*mending).*$/i,\r\n\t\tname : \"Needle of Mending\",\r\n\t\tsource : [[\"W\", 268]],\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mending\"],\r\n\t\tselection : [\"mending\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mending\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Needle of Mending, I can cast Mending as an action.\"\r\n\t\t}\r\n\t},\r\n\tweight : 1\r\n};\r\nMagicItemsList[\"nightfall pearl\"] = {\r\n\tname : \"Nightfall Pearl\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I can spend 10 minutes to activate this his 6-inch-diameter, jet-black orb, causing the area within 10 miles of it to become night even if it is daytime. This night lasts for 24 hours, until I cancel it as an action, or until my attunement to the pearl ends. Once used, the pearl can't be used again for 24 hours.\",\r\n\tdescriptionFull : \"Used to summon night, this 6-inch-diameter, jet-black orb is cold to the touch. You can spend 10 minutes to activate it, causing the area within 10 miles of it at the moment of activation to become night even if it is daytime. This night lasts for 24 hours, until you cancel it as an action, or until your attunement to the pearl ends. Once used, the pearl can't be used again for 24 hours.\",\r\n\taction : [[\"action\", \" (end)\"]],\r\n\tusages : 1,\r\n\trecovery : \"24 hrs\"\r\n};\r\nMagicItemsList[\"orb of the veil\"] = { // no automation for halving the fire damage, because it is very complex, error prone, and the curse could (and will) be removed\r\n\tname : \"Orb of the Veil\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This orb increases my Wisdom and maximum by 2, grants me +60 ft darkvision, and adv. on Wisdom checks to find hidden doors and paths. It is cursed and once attuned to it, I become unwilling to part with it, nonmagical flames within 30 ft of me extinguish, and fire damage I deal is halved (not automated).\",\r\n\tdescriptionFull : \"This onyx sphere bears deep, spiraling grooves and dangles from an iron chain. While the orb is on your person, you gain the following benefits:\\n Your Wisdom score increases by 2, as does your maximum for that score.\\n You gain darkvision out to a range of 60 feet. If you already have darkvision, the orb increases its range by 60 feet.\\n You have advantage on Wisdom checks to find hidden doors and paths.\\n   \" + toUni(\"Curse\") + \". The orb is cursed, and becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the orb, keeping it on your person at all times. All nonmagical flames within 30 feet of you automatically extinguish, and fire damage dealt by you is halved.\",\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\tscoresMaximum : [0, 0, 0, 0, \"+2\", 0],\r\n\tweight : 3\r\n};\r\nMagicItemsList[\"potion of maximum power\"] = {\r\n\tname : \"Potion of Maximum Power\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion of glowing purple liquid that smells of sugar and plum or administer it to another. The next time the recipient casts a damage-dealing spell of 4th-level or lower within 1 minute, instead of rolling the damage die, the highest number possible for each die is used.\",\r\n\tdescriptionFull : \"The first time you cast a damage-dealing spell of 4th level or lower within 1 minute after drinking the potion, instead of rolling dice to determine the damage dealt, you can instead use the highest number possible for each die.\\n This glowing purple liquid smells of sugar and plum, but it has a muddy taste.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"potion of possibility\"] = {\r\n\tname : \"Potion of Possibility\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion of glowing purple liquid that smells of sugar and plum or administer it to another. Twice for the next 8 hours, the consumer can roll an extra d20 for an attack, check, save, or being attacked, before the outcome is determined.\",\r\n\tdescriptionFull : \"When you drink this clear potion, you gain two Fragments of Possibility, each of which looks like a Tiny, grayish bead of energy that follows you around, staying within 1 foot of you at all times. Each fragment lasts for 8 hours or until used.\"+\r\n\t\"\\n   When you make an attack roll, an ability check, or a saving throw, you can expend your fragment to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against you, you can expend your fragment to roll a d20 and choose which of the d20s to use, the one you rolled or the one the attacker rolled.\"+\r\n\t\"\\n   If the original d20 roll has advantage or disadvantage, you roll your d20 after advantage or disadvantage has been applied to the original roll.\"+\r\n\t\"\\n   While you have one or more Fragments of Possibility from this potion, you can't gain another Fragment of Possibility from any source.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"reincarnation dust\"] = {\r\n\tname : \"Reincarnation Dust\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tusages : 1,\r\n\trecovery : \"Never\",\r\n\tdescription : \"Once I can sprinkle the purple dust in this small pouch on a dead humanoid or a piece of a dead humanoid. The dust is absorbed by the remains. If willing, the dead creature returns to life with a new body as if the reincarnate spell had been cast on the remains.\",\r\n\tdescriptionFull : \"When this small pouch of purple dust is sprinkled on a dead humanoid or a piece of a dead humanoid, the dust is absorbed by the remains. If willing, the dead creature returns to life with a new body as if the reincarnate spell had been cast on the remains.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Use once\",\r\n\t\tspells : [\"reincarnate\"],\r\n\t\tselection : [\"reincarnate\"]\r\n\t}]\r\n};\r\nMagicItemsList[\"ring of obscuring\"] = {\r\n\tname : \"Ring of Obscuring\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This band of iron resembling a skull has 3 charges, regaining 1d3 expended charges at dawn. As an action, I can expend 1 charge to cast Fog Cloud from it, with the following changes: the cloud is centered on me when it first appears, the spell lasts for 1 minute, and the spell requires no concentration.\",\r\n\tdescriptionFull : \"This band of iron resembles a skull and is cold to the touch. It has 3 charges and regains 1d3 expended charges daily at dawn. As an action while wearing the ring, you can expend 1 of its charges to cast the fog cloud spell from it, with the following changes: the cloud is centered on you when it first appears, and the spell lasts for 1 minute (no concentration required).\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ring of Obscuring\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"Dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"fog cloud\"],\r\n\t\tselection : [\"fog cloud\"],\r\n\t\tfirstCol : '1'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fog cloud\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"1 min\",\r\n\t\t\tchanges : \"When I cast fog cloud with the Ring of Obscuring, the spell is centered on me, lasts for 1 minute, and the requires no concentration.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"ring of temporal salvation\"] = {\r\n\tname : \"Ring of Temporal Salvation\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"If I die while wearing this gray crystal ring, I vanish and reappear in an empty space within 5 ft, with 3d6 + my Con mod in HP, and 1 less level of exhaustion (if any). If my maximum HP is less than the amount rolled, my max rises to a similar amount. Once this ring is used, it turns to dust and is destroyed.\",\r\n\tdescriptionFull : \"If you die while wearing this gray crystal ring, you vanish and reappear in an unoccupied space within 5 feet of the space you left (or the nearest unoccupied space). You have a number of hit points equal to 3d6 + your Constitution modifier. If your hit point maximum is lower than the number of hit points you regain, your hit point maximum rises to a similar amount. If you have any levels of exhaustion, reduce your level of exhaustion by 1. Once the ring is used, it turns to dust and is destroyed.\"\r\n};\r\nMagicItemsList[\"rod of retribution\"] = {\r\n\tname : \"Rod of Retribution\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"rod\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This adamantine rod with a glowing crystalline tip has 3 charges, regaining all daily at dawn. As a reaction when a creature I can see within 60 ft damages me, I can expend a charge to force it to make a DC 13 Dexterity save. It takes a 2d10 lightning damage on a failed save, or half as much on a successful one.\",\r\n\tdescriptionFull : \"This adamantine rod is tipped with a glowing crystalline eye. The rod has 3 charges and regains all its expended charges daily at dawn.\\n   When a creature you can see within 60 feet of you damages you while you are holding this rod, you can use your reaction to expend 1 of the rod's charges to force the creature to make a DC 13 Dexterity saving throw. The creature takes 2d10 lightning damage on a failed save, or half as much damage on a successful one.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (if damaged)\"]],\r\n\tweight : 2\r\n};\r\nMagicItemsList[\"spell bottle\"] = {\r\n\tname : \"Spell Bottle\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While holding this bottle, I can cast a 5th-level or lower spell into it if empty, or cast the stored spell from it (slot level, DC, and spell attack as original casting). As a reaction when I see a spell being cast in 60 ft, I can try to store it in the empty bottle. Works if 3rd-level or lower, otherwise Int check DC 10 + spell level.\",\r\n\tdescriptionFull : \"This glass bottle can store one spell of up to 5th level at a time. When found, roll a d6 and subtract 1; the total determines the level of spell in the bottle (the DM chooses the spell, and 0 means the bottle is empty). A swirling blue vapor fills the bottle while it contains a spell.\"+\r\n\t\"\\n   When the bottle is empty, any creature can cast a spell of 1st through 5th level into it by touching it while casting. The spell has no effect other than to be stored in the bottle.\"+\r\n\t\"\\n   While holding the bottle, you can cast the spell stored in it. The spell uses the slot level, spell save DC, spell attack bonus, and spellcasting ability of the original caster, but is otherwise treated as if you cast the spell. The bottle becomes empty once the spell is cast.\"+\r\n\t\"\\n   If you're holding the empty bottle when you see a creature casting a spell within 60 feet of you, you can open the bottle as a reaction in an attempt to interrupt the spell. If the creature is casting a spell of 3rd level or lower, the spell has no effect, and it is stored in the bottle. If it is casting a spell of 4th level or higher, make an Intelligence check. The DC equals 10 + the spell's level. On a success, the spell has no effect, and it is stored in the bottle.\"\r\n};\r\nMagicItemsList[\"staff of dunamancy\"] = {\r\n\tname : \"Staff of Dunamancy\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This staff has 10 charges, regains 1d6+4 at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. As an action, I can use its charges to cast Fortune's Favor (2), Pulse Wave (3), or Gravity Sinkhole (4), using my spellcasting ability. Once per dawn, I can turn a failed save vs. a spell that targets only me into a success.\",\r\n\tdescriptionFull : \"This staff of polished gray wood bears numerous runes carved along its length. The staff has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff turns into dust and is destroyed.\"+\r\n\t\"\\n   While holding the staff, you can use an action to expend 2 or more of its charges to cast one of the following spells from it, using your spell save DC and spell attack bonus: fortune's favor (2 charges), pulse wave (3 charges), or gravity sinkhole (4 charges).\"+\r\n\t\"\\n   \" + toUni(\"New Possibility\") + \". If you are holding the staff and fail a saving throw against a spell that targets only you, you can turn your failed save into a successful one. This property can't be used again until the next dawn.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Staff of Dunamancy (regains 1d6+4)\",\r\n\t\tusages : 10,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Staff of Dunamancy (New Possibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"fortune's favor\"],\r\n\t\tselection : [\"fortune's favor\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"pulse wave\"],\r\n\t\tselection : [\"pulse wave\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"gravity sinkhole\"],\r\n\t\tselection : [\"gravity sinkhole\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fortune's favor\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Staff of Dunamancy, I can cast Fortune's Favor as an action.\"\r\n\t\t}\r\n\t},\r\n\tweight : 4\r\n};\r\nMagicItemsList[\"staff of the ivory claw\"] = {\r\n\tname : \"Staff of the Ivory Claw\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This gray-and-cerulean staff is topped with a small dragon claw carved from ivory. While holding the staff, I gain a +1 bonus to spell attack rolls. Whenever you score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\",\r\n\tdescriptionFull : \"This gray-and-cerulean staff is topped with a small dragon claw carved from ivory. While holding the staff, you gain a +1 bonus to spell attack rolls. Whenever you score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\",\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"While holding the Staff of the Ivory Claw, I have a +1 bonus to spell attack rolls.\"\r\n\t\t],\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isSpell && !v.theWea.dc) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On crit, +3d6 radiant damage';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"While holding the Staff of the Ivory Claw whenever I score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\"\r\n\t\t]\r\n\t},\r\n\tweight : 4\r\n};\r\nMagicItemsList[\"vox seeker\"] = {\r\n\tname : \"Vox Seeker\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This clockwork device resembles a metal crab the size of a dinner plate. Every action used to wind up this clockwork device allows it to operate for 1 minute, to a maximum of 10 minutes. See the vox seeker on a companion page. This creature is under the DM's control. If reduced to 0 HP, it is destroyed.\",\r\n\tdescriptionFull : \"This clockwork device resembles a metal crab the size of a dinner plate. Every action used to wind up the device allows it to operate for 1 minute, to a maximum of 10 minutes. While operational, the item uses the accompanying Vox Seeker stat block. This automaton is under the DM's control. A vox seeker reduced to 0 hit points is destroyed.\",\r\n\taction : [[\"action\", \" (wind up)\"]],\r\n\tcreaturesAdd : [[\"Vox Seeker\"]],\r\n\tcreatureOptions : [{\r\n\t\tname : \"Vox Seeker\",\r\n\t\tsource : [[\"W\", 270]],\r\n\t\tsize : 5,\r\n\t\ttype : \"Construct\",\r\n\t\talignment : \"\",\r\n\t\tac : 14,\r\n\t\thp : 7,\r\n\t\thd : [2, 4],\r\n\t\tspeed : \"20 ft, climb 20 ft\",\r\n\t\tscores : [2, 10, 12, 1, 10, 1],\r\n\t\tdamage_immunities : \"poison, psychic\",\r\n\t\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\t\tsenses : \"Blindsight 60 ft (blind beyond this radius\",\r\n\t\tpassivePerception : 10,\r\n\t\tlanguages : \"\",\r\n\t\tchallengeRating : \"0\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Pincer\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"+3 lightning damage\",\r\n\t\t\tabilitytodamage : false\r\n\t\t}],\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Creator\",\r\n\t\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Spider Climb\",\r\n\t\t\tdescription : \"The vox seeker can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t\t}, {\r\n\t\t\tname : \"Voice Lock\",\r\n\t\t\tdescription : \"The vox seeker must move toward and attack the source of the nearest voice within 60 ft of it, to the exclusion of all other targets, for as long as it remains operational.\"\r\n\t\t}]\r\n\t}]\r\n};\r\nMagicItemsList[\"weapon of certain death\"] = {\r\n\tname : \"Weapon of Certain Death\",\r\n\tnameTest : \"of Certain Death\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"When I damage a creature with an attack using this magic weapon, the target can't regain hit points until the start of my next turn.\",\r\n\tdescriptionFull : \"When you damage a creature with an attack using this magic weapon, the target can't regain hit points until the start of your next turn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && (/of certain death/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"On hit, target can't heal until my next turn starts\";\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Certain Death\" in a the name of a weapon, it will be treated as the magic weapon \"Weapon of Certain Death\". On a hit, the target can\\'t regain hit points until the start of my next turn.'\r\n\t\t]\r\n\t}\r\n};\r\n\r\n// Vestiges of Divergence (contains contributions by kat9137 [Discord] aka sophiechiabatta [GitHub])\r\nvar EGtW_Vestiges_Replace = function (sDescr) {\r\n\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|giving|grants|of|to|for) I\\b/ig, \"$1 me\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; });\r\n}\r\nvar EGtW_DanothsVisorFullDescription = [\r\n\t\"These mithral-frame goggles with clear diamond lenses were used by the evoker Danoth Oro to spot invisible enemies and scout areas from afar.\",\r\n\t\">>Dormant<<. While wearing the goggles in their dormant state, you can see normally in darkness, both magical and nonmagical, to a distance of 60 feet. Additionally, you have advantage on Intelligence (Investigation) and Wisdom (Perception) checks that rely on sight.\",\r\n\t\">>Awakened<<. When Danoth's Visor reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 You see invisible creatures and objects within 60 feet of you as if they were visible, and you can see into the Ethereal Plane. Ethereal creatures and objects appear ghostly and translucent.\",\r\n\t\"\\u2022 As a bonus action, you can speak a command word and use the goggles to see into and through solid matter. This vision has a radius of 60 feet and lasts for 1 minute. To you, solid objects within that radius appear transparent. The vision can penetrate 1 foot of stone, 1 inch of common metal, or up to 3 feet of wood or dirt. Thicker substances block the vision, as does a thin sheet of lead. This property can't be used again until the next dawn.\",\r\n\t\"\\u2022 As a bonus action, you can speak a command word to switch the goggles into spyglass mode. While in this mode, creatures and objects viewed through the goggles are magnified to twice their size. Speaking the command word again reverts the goggles to their normal operation.\",\r\n\t\">>Exalted<<.\",\r\n\t\"When Danoth's Visor reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 You automatically detect illusions you can see and automatically succeed on saving throws against them. In addition, you see a bright aura around any creature that isn't in its true form.\",\r\n\t\"\\u2022 As an action, you can cast the antimagic field spell from the visor. This property can't be used again until the next dawn.\"\r\n];\r\nMagicItemsList[\"danoth's visor\"] = {\r\n\tname : \"Danoth's Visor\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"These mithral-frame goggles with clear diamond lenses were used by the evoker Danoth Oro to spot invisible enemies and scout areas from afar. See notes page for more information.\",\r\n\tdescriptionFull : EGtW_DanothsVisorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_DanothsVisorFullDescription)\r\n\t}],\r\n\tvision : [[\"Devil's Sight\", \"fixed 60\"], [\"Adv. on Investigation and Perception check that rely on sight\", 0]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Danoth's Visor [dormant]\",\r\n\t\tdescription : \"These mithral-frame goggles with clear diamond lenses grant me the ability to see in normally in nonmagical and magical darkness out to 60 ft. Also, they grant me advantage on Intelligence (Investigation) and Wisdom (Perception) checks that rely on sight.\"\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Danoth's Visor [awakened]\",\r\n\t\tdescription : \"These mithral-frame goggles with clear diamond lenses grant me the ability to see, out to 60 ft, in nonmagical and magical darkness, invisible creatures and objects, and into the Ethereal plane. They give me adv. on Investigation and Perception checks that rely on sight. I can active them to see more, see Notes page.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (see through matter)\"]\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (spyglass mode)\"],\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Danoth's Visor (see through matter)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Danoth's Visor [exalted]\",\r\n\t\tdescription : \"These goggles grant me the ability to see, out to 60 ft, in normal and magical darkness, invisible creatures and objects, and into the Ethereal plane. They allow me to automatically detect illusions for what they are, succeed on saves against them, and see if creatures aren't in their true form. See Notes for more.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (see through matter)\"]\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (spyglass mode)\"],\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Danoth's Visor (see through matter)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Danoth's Visor (Antimagic Field)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"antimagic field\"],\r\n\t\t\tselection : [\"antimagic field\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tsavetxt : { immune : [\"illusions\"] },\r\n\t}\r\n};\r\nvar EGtW_GrimoireInfinitusFullDescription = [\r\n\t\"Several of these spellbooks with gilded pages and silver-plated covers were created during the Age of Arcanum, but only one has been found since the Calamity ended. The book has an infinite number of pages, is three inches thick, eight inches wide, twelve inches long, and weighs three pounds.\",\r\n\t\">>Dormant<<. Most of the book is blank, but the following spells are recorded in the first pages of the tome: alarm, antimagic field, Bigby's hand, blight, charm person, confusion, control weather, create undead, detect thoughts, enlarge/reduce, fear, foresight, gaseous form, glyph of warding, legend lore, Leomund's tiny hut, mass suggestion, mislead, misty step, Mordenkainen's faithful hound, prismatic spray, ray of enfeeblement, silent image, teleport, and thunderwave.\",\r\n\t\"You can use the grimoire as your spellbook, and you can scribe new spells into it as normal. When you prepare wizard spells using the grimoire, the number of wizard spells you can prepare increases by 1.\",\r\n\t\">>Awakened<<. When the Grimoire Infinitus reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 While you carry the spellbook, you have advantage on saving throws against spells and magical effects.\",\r\n\t\"\\u2022 When you prepare wizard spells using the grimoire as your spellbook, the number of spells you can prepare increases by 1 again.\",\r\n\t\">>Exalted<<. When the Grimoire Infinitus reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 You can now use your Arcane Recovery feature twice between long rests, rather than once.\",\r\n\t\"\\u2022 When you prepare wizard spells using the grimoire as your spellbook, the number of spells you can prepare increases by 1 again.\"\r\n];\r\nMagicItemsList[\"grimoire infinitus\"] = {\r\n\tname : \"Grimoire Infinitus\",\r\n\tsource : [[\"W\", 271]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use to prepare wizards spells, I can prepare 1 additional spell.\",\r\n\tdescriptionFull : EGtW_GrimoireInfinitusFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_GrimoireInfinitusFullDescription)\r\n\t}],\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"alarm\", \"antimagic field\", \"bigby's hand\", \"blight\", \"charm person\", \"confusion\", \"control weather\", \"create undead\", \"detect thoughts\", \"enlarge/reduce\", \"fear\", \"foresight\", \"gaseous form\", \"glyph of warding\", \"legend lore\", \"leomund's tiny hut\", \"mass suggestion\", \"mislead\", \"misty step\", \"mordenkainen's faithful hound\", \"prismatic spray\", \"ray of enfeeblement\", \"silent image\", \"teleport\", \"thunderwave\"]\r\n\t},\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Grimoire Infinitus [dormant]\",\r\n\t\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use to prepare wizard spells, I can prepare 1 additional spell. See Notes page for more information.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 1.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Grimoire Infinitus [awakened]\",\r\n\t\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use it to prepare wizard spells, I can prepare 2 extra spells. It also grants me advantage on saves against spells and magical effects. See Notes page.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 2.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tsavetxt : { adv_vs : [\"magic\"] }\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Grimoire Infinitus [exalted]\",\r\n\t\tdescription : \"This spellbook with unlimited pages can be used by a wizard to prepare and store spells. When I use it to prepare wizard spells, I can prepare 3 more. It also grants me adv. on saves vs. spells and magical effects and allows me to use Arcane Recovery an extra time per long rest. See Notes page for more information.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 3.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tsavetxt : { adv_vs : [\"magic\"] },\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Arcane Recovery\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taddToExisting : true\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_HideFeralGuardianFullDescription = [\r\n\t\"It is believed that this polished and beautifully detailed leather armor was a gift from Melora, bestowed on a long-forgotten archdruid and champion of the natural world before the terrors of the Calamity.\",\r\n\t\">>Dormant<<. While wearing the armor in its dormant state, you gain the following benefits:\",\r\n\t\"\\u2022 The armor grants you a +1 bonus to AC.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, you have a +1 bonus to melee attack and damage rolls, and you retain the benefits of this armor.\",\r\n\t\"\\u2022 As an action, you can use the armor to cast polymorph on yourself, transforming into a giant owl while retaining your Intelligence, Wisdom, and Charisma scores. This property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. When the armor reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 The AC bonus of the armor increases to +2.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, your bonus to melee attack and damage rolls increases by 1 (to +2).\",\r\n\t\"\\u2022 When you cast the polymorph spell using this armor, you can transform into a cave bear.\",\r\n\t\">>Exalted<<. When the armor reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 The AC bonus of the armor increases to +3.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, your bonus to melee attack and damage rolls increases by 1 (to +3).\",\r\n\t\"\\u2022 When you cast the polymorph spell using this armor, you can transform into a guardian wolf.\"\r\n];\r\nMagicItemsList[\"hide of the feral guardian\"] = {\r\n\tname : \"Hide of the Feral Guardian\",\r\n\tsource : [[\"W\", 271]],\r\n\ttype : \"armor (studded leather)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a bonus to melee attack and damage rolls. Once per dawn, I can use it to cast Polymorph on myself.\",\r\n\tdescriptionFull : EGtW_HideFeralGuardianFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 13,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_HideFeralGuardianFullDescription) + \"\\n\\nNOTE\\n   Be aware that the bonus to melee attacks and damage in wild shape are not automated.\"\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Hide of the Feral Guardian (Polymorph)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Hide of the Feral Guardian [dormant]\",\r\n\t\tdescription : \"This +1 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a +1 bonus to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to transform into a giant owl.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+1\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Hide of the Feral Guardian [awakened]\",\r\n\t\tdescription : \"This +2 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a +2 bonus to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to become a giant owl or cave bear.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+2\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl or cave bear; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl or a cave bear, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Hide of the Feral Guardian [exalted]\",\r\n\t\tdescription : \"This +3 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then grants a +2 to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to become a giant owl, cave bear or guardian wolf.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+3\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl, cave bear, or guardian wolf; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl, cave bear, or guardian wolf, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Guardian Wolf\",\r\n\t\t\tsource : [[\"W\", 272]],\r\n\t\t\tsize : 1,\r\n\t\t\ttype : \"Monstrosity\",\r\n\t\t\talignment : \"\",\r\n\t\t\tac : 14,\r\n\t\t\thp : 66,\r\n\t\t\thd : [7, 12],\r\n\t\t\tspeed : \"60 ft\",\r\n\t\t\tscores : [22, 14, 16, 5, 12, 8],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 3\r\n\t\t\t},\r\n\t\t\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell\",\r\n\t\t\tpassivePerception : 15,\r\n\t\t\tlanguages : \"Common, Elvish\",\r\n\t\t\tchallengeRating : \"4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 2,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Bite\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"Target DC 16 Str save or knocked prone; One bite and one claw attack as an Attack action\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Claws\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [2, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tdescription : \"As an action on its turn, the wolf can make one Bite and one Claws attack.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tdescription : \"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Pack Tactics\",\r\n\t\t\t\tdescription : \"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t\t}]\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_InfiltratorsKeyFullDescription = [\r\n\t\"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items during the Age of Arcanum.\",\r\n\t\">>Dormant<<. The Infiltrator's Key grants the following benefits in its dormant state:\",\r\n\t\"\\u2022 The key can be used as thieves' tools for the purpose of opening locks. When using the key, you are considered proficient in thieves' tools and you have advantage on ability checks made to open locks.\",\r\n\t\"\\u2022 While holding the key, your steps are muffled, giving you advantage on Dexterity (Stealth) checks made to move silently.\",\r\n\t\">>Awakened<<. When the Infiltrator's Key reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 While holding the key, you can use a bonus action to transform the key into a magic dagger or back into a key. While the key is in the form of a dagger, you gain a +1 bonus to attack and damage rolls made with it, and it returns to your hand immediately after it is used to make a ranged attack.\",\r\n\t\"\\u2022 While holding the key, you can use an action to cast one of the following spells from it: alter self, invisibility, knock, or pass without trace. Once a spell has been cast using the key, it can't be used to cast that spell again until the next dawn.\",\r\n\t\">>Exalted<<. When the Infiltrator's Key reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 As a bonus action, you can touch the key to a floor, wall, or ceiling that is no more than 5 feet thick and cause a magical opening to appear in the surface. When you create the opening, you choose its length and width, up to 10 feet for each dimension. The opening lasts until the key passes through it to the other side, at which point it disappears (if a creature is in the opening when the doorway closes, the creature is safely shunted to the nearest unoccupied space). The key can't be used to create another opening until the next dawn.\",\r\n\t\"\\u2022 While holding the key, you can use an action to cast one of the following spells from it: dimension door, gaseous form, or mislead. Once a spell has been cast using the key, it can't be used to cast that spell again until the next dawn.\"\r\n];\r\nMagicItemsList[\"infiltrator's key\"] = {\r\n\tname : \"Infiltrator's Key\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items during the Age of Arcanum. See notes page for more information.\",\r\n\tdescriptionFull : EGtW_InfiltratorsKeyFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_InfiltratorsKeyFullDescription)\r\n\t}],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Infiltrator's Key [dormant]\",\r\n\t\tdescription : \"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items. It can be used as thieves' tools for the purpose of opening locks. I'm considered proficient when I do so with this key and gain adv. While holding it, I have adv. on Stealth checks to move silently.\"\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Infiltrator's Key [awakened]\",\r\n\t\tdescription : \"I can use this mithral skeleton key as thieves' tools to open locks. I'm proficient with it and gain adv. on the roll. While holding it, I have adv. on Stealth checks to move silently. As a bonus action, I can transform it into a +1 dagger that returns immediately when thrown. I can use it to cast several spells, each once per dawn.\",\r\n\t\taction : [[\"bonus action\", \"Infiltrator's Key (transform dagger)\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"dagger\",\r\n\t\t\tregExpSearch : /infiltrator's key|key of the infiltrator/i,\r\n\t\t\tname : \"Infiltrator's Key\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdescription : \"Finesse, light, thrown; Returns when thrown\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\"],\r\n\t\t\tselection : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\"],\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 4\r\n\t\t}]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Infiltrator's Key [exalted]\",\r\n\t\tdescription : \"I can use this mithral skeleton key as thieves' tools to open locks. I'm proficient with it and gain adv. on the roll. While holding it, I have adv. on Stealth checks to move silently. As a bonus action, I can transform it into a +1 dagger that returns when thrown. I can use it to cast several spells, each once per dawn. See Notes.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Infiltrator's Key (transform dagger)\"],\r\n\t\t\t[\"bonus action\", \"Infiltrator's Key (create opening)\"]\r\n\t\t],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"dagger\",\r\n\t\t\tregExpSearch : /infiltrator's key|key of the infiltrator/i,\r\n\t\t\tname : \"Infiltrator's Key\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdescription : \"Finesse, light, thrown; Returns when thrown\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\", \"dimension door\", \"gaseous form\", \"mislead\"],\r\n\t\t\tselection : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\", \"dimension door\", \"gaseous form\", \"mislead\"],\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 7\r\n\t\t}],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Infiltrator's Key (create opening)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_StormgirdleFullDescription = [\r\n\t\"A Stormgirdle is a wide belt made of thick leather branded with the symbol of Kord. The girdle's clasps are made from dragon ivory.\",\r\n\t\">>Dormant<<. While wearing the Stormgirdle in its dormant state, you have resistance to lightning damage and thunder damage, and your Strength score becomes 21 if it isn't already 21 or higher. In addition, you can use an action to become a Storm Avatar for 1 minute, gaining the following benefits for the duration:\",\r\n\t\"\\u2022 You have immunity to lightning damage and thunder damage.\",\r\n\t\"\\u2022 When you hit with a weapon attack that normally deals bludgeoning damage, it deals thunder damage instead. When you hit with a weapon attack that normally deals piercing or slashing damage, it deals lightning damage instead.\",\r\n\t\"\\u2022 As a bonus action, you can choose one creature you can see within 30 feet of you to be struck by lightning. The target must make a DC 15 Dexterity saving throw, taking 3d6 lightning damage on a failed save, or half as much damage on a successful one.\",\r\n\t\"Once you use the girdle's Storm Avatar property, that property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. While wearing the Stormgirdle in its awakened state, you gain the following benefits:\",\r\n\t\"\\u2022 Your Strength score becomes 23 if it isn't already 23 or higher.\",\r\n\t\"\\u2022 Your Storm Avatar's lightning strike deals 4d6 lightning damage (instead of 3d6).\",\r\n\t\"\\u2022 While transformed into a Storm Avatar, you gain a flying speed of 30 feet and can hover.\",\r\n\t\">>Exalted<<. While wearing the Stormgirdle in its exalted state, you gain the following benefits:\",\r\n\t\"\\u2022 Your Strength score becomes 25 if it isn't already 25 or higher.\",\r\n\t\"\\u2022 Your Storm Avatar's lightning strike deals 5d6 lightning damage (instead of 3d6).\",\r\n\t\"\\u2022 You can cast the control weather spell from the girdle. This property can't be used again until the next dawn.\"\r\n];\r\nMagicItemsList[\"stormgirdle\"] = {\r\n\tname : \"Stormgirdle\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"A wide belt of leather branded with the symbol of Kord. While attuned to and wearing this belt, I am resistant to lightning and thunder damage. My Strength score becomes 21, provided my Strength is not already 21 or higher. As an action, I can become a Storm Avatar for 1 minute. See notes page for more info.\",\r\n\tdescriptionFull : EGtW_StormgirdleFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_StormgirdleFullDescription)\r\n\t}],\r\n\tdmgres : [\"Lightning\", \"Thunder\"],\r\n\taction : [[\"action\", \" (Storm Avatar)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Storm Girdle (Storm Avatar)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*storm avatar)(?=.*lightning strike).*$/i,\r\n\t\tname : \"Storm Avatar's Lightning Strike\",\r\n\t\tsource : [[\"W\", 273]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [3, 6, \"lightning\"],\r\n\t\trange : '30 ft',\r\n\t\tdescription : \"Bonus action; Dex save, success - half damage\",\r\n\t\tmodifiers : [7, \"\"],\r\n\t\tdc : true,\r\n\t\tstormAvatarLightningStrike : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.stormAvatarLightningStrike && CurrentMagicItems.known.indexOf('stormgirdle') !== -1) {\r\n\t\t\t\t\tvar stormgirdleType = CurrentMagicItems.choices[CurrentMagicItems.known.indexOf('stormgirdle')];\r\n\t\t\t\t\tfields.Damage_Die = (stormgirdleType === \"exalted\" ? 5 : stormgirdleType === \"awakened\" ? 4 : 3) + 'd6';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\",\r\n\t\t\t1\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Stormgirdle [dormant]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 21. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. See Notes page for more information.\",\r\n\t\tscoresOverride : [21, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Stormgirdle [awakened]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 23. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. See Notes page for more information.\",\r\n\t\tscoresOverride : [23, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Stormgirdle [exalted]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 25. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. Once per dawn, I can cast Control Weather. See Notes page for more information.\",\r\n\t\tscoresOverride : [25, 0, 0, 0, 0, 0],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"control weather\"],\r\n\t\t\tselection : [\"control weather\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_VerminshroudFullDescription = [\r\n\t\"This patchy cloak was pieced together from the pelts of rats found feasting on the dead in Blightshore and is dotted with the bloated corpses of magically preserved insects along its seams.\",\r\n\t\">>Dormant<<. While wearing the Verminshroud in its dormant state, you gain the following benefits:\",\r\n\t\"\\u2022 You have advantage on Wisdom (Perception) checks that rely on smell, you are immune to disease, and you have darkvision out to a range of 60 feet. If you already have darkvision, wearing the cloak increases the range of your darkvision by 60 feet.\",\r\n\t\"\\u2022 As an action, you can use the Verminshroud to cast polymorph on yourself, transforming into a giant rat or rat while retaining your Intelligence, Wisdom, and Charisma scores, as well as the properties of the cloak. This property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. While wearing the Verminshroud in its awakened state, you gain the following benefits:\",\r\n\t\"\\u2022 You have resistance to poison damage.\",\r\n\t\"\\u2022 You can use an action to cast the insect plague spell (save DC 15) from the Verminshroud, requiring no material components. This property can't be used again until the next dawn.\",\r\n\t\"\\u2022 When you cast the polymorph spell using the Verminshroud, you can transform into a giant wasp.\",\r\n\t\">>Exalted<<. While wearing the Verminshroud in its exalted state, you gain the following benefits:\",\r\n\t\"\\u2022 You gain a climbing speed equal to your walking speed.\",\r\n\t\"\\u2022 Your teeth become razor-sharp natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal piercing damage equal to 1d6 + your Strength modifier, instead of the bludgeoning damage normal for an unarmed strike. You can make this attack as a bonus action. When you bite a creature and deal damage to it, the creature must succeed on a DC 17 Constitution saving throw or be poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the condition on itself on a success.\",\r\n\t\"\\u2022 When you cast the polymorph spell using the Verminshroud, you can transform into a giant scorpion.\"\r\n];\r\nMagicItemsList[\"verminshroud\"] = {\r\n\tname : \"Verminshroud\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This patchy cloak was pieced together from the pelts of rats found feasting on the dead in Blightshore and is dotted with the bloated corpses of magically preserved insects along its seams. See notes page for more info.\",\r\n\tdescriptionFull : EGtW_VerminshroudFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_VerminshroudFullDescription)\r\n\t}],\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"], [\"Adv. on Perception check that rely on smell\", 0]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Verminshroud (Polymorph)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Verminshroud [dormant]\",\r\n\t\tdescription : \"This patchy cloak of rat pelts grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, and advantage on Perception checks that rely on smell. Once per dawn, I can use it to cast Polymorph on myself to become a rat or a giant rat, but I retain my Int, Wis, and Cha, as well as the benefits of this cloak.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\"],\r\n\t\t\tselection : [\"polymorph\"],\r\n\t\t\tfirstCol : \"oncelr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat or giant rat; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat or giant rat, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Verminshroud [awakened]\",\r\n\t\tdescription : \"This patchy cloak of rat pelts grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, adv. on Perception checks that rely on smell, and resistance to poison. Once per dawn, I can use it to cast Polymorph on myself to become a rat, giant rat, or giant wasp. I can cast Insect Plague. See Notes page\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Verminshroud (Insect Plague)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus :[{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\", \"insect plague\"],\r\n\t\t\tselection : [\"polymorph\", \"insect plague\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat, giant rat, or giant wasp; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat, giant rat, or giant wasp, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Verminshroud [exalted]\",\r\n\t\tdescription : \"This patchy cloak grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, adv. on Perception checks that rely on smell, resistance to poison, and a climbing speed. Once per dawn, I can use it to cast Polymorph on myself to become a rat, giant rat, giant wasp, or giant scorpion. See Notes page.\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Verminshroud (Insect Plague)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\", \"insect plague\"],\r\n\t\t\tselection : [\"polymorph\", \"insect plague\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat, giant rat, giant wasp, or giant scorpion; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat, giant rat, giant wasp, or giant scorpion, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } },\r\n\t\taction : [[\"bonus action\", \"Verminshroud: Bite\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*verminshroud)(?=.*bite).*$/i,\r\n\t\t\tname : \"Verminshroud: Bite\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Bonus action; DC17 Con save or poisoned 1 min, repeat save end of their turns\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_WreathPrismFullDescription = [\r\n\t\"This loop of golden thorns is inset with dozens of gems representing the five colors of Tiamat.\",\r\n\t\">>Dormant<<. While wearing the wreath in its dormant state, you have darkvision out to a range of 60 feet. If you already have darkvision, wearing the wreath increases the range of your darkvision by 60 feet.\",\r\n\t\"When you hit a beast, dragon, or monstrosity of challenge rating 5 or lower with an attack, or when you grapple it, you can use the wreath to cast dominate monster on the creature (save DC 13). On a successful save, the target is immune to the power of the wreath for 24 hours. On a failure, a shimmering, golden image of the wreath appears as a collar around the target's neck or as a crown on its head (your choice) until it is no longer charmed by the spell. If you use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by you.\",\r\n\t\">>Awakened<<. Once the Wreath of the Prism reaches an awakened state, it gains the following benefits:\",\r\n\t\"\\u2022 You can affect creatures of challenge rating 10 or lower with the wreath.\",\r\n\t\"\\u2022 The save DC of the wreath's spell increases to 15.\",\r\n\t\">>Exalted<<. Once the Wreath of the Prism reaches an exalted state, it gains the following benefits:\",\r\n\t\"\\u2022 You can affect creatures of challenge rating 15 or lower with the wreath.\",\r\n\t\"\\u2022 The save DC of the wreath's spell increases to 17.\"\r\n];\r\nMagicItemsList[\"wreath of the prism\"] = {\r\n\tname : \"Wreath of the Prism\",\r\n\tsource : [[\"W\", 274]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision to 60 ft, or extend my darkvision by 60 ft. When I hit a beast, dragon, or monstrosity with an attack, I can cast dominate monster on that creature, depending on its CR. See notes page for info.\",\r\n\tdescriptionFull : EGtW_WreathPrismFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_WreathPrismFullDescription)\r\n\t}],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Wreath of the Prism [dormant]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 5 or lower with an attack, I can cast dominate monster on that creature (save DC 13). See notes page for more information.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 5 or lower, DC 13\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 5 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 5 when I hit it with an attack (save DC 13). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Wreath of the Prism [awakened]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 10 or lower with an attack, I can cast dominate monster on that creature (save DC 15). See notes page for more information.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 10 or lower, DC 15\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 10 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 10 when I hit it with an attack (save DC 15). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Wreath of the Prism [exalted]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 15 or lower with an attack, I can cast dominate monster on that creature (save DC 17). See notes page for more information.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 15 or lower, DC 17\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 15 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 15 when I hit it with an attack (save DC 17). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n/* Supernatural gift\r\n\r\nMagicItemsList[\"hollow one\"] = {\r\n\tname : \"Hollow One\",\r\n\tsource : [[\"W\", 182]],\r\n\ttype : \"supernatural gift\",\r\n\trarity : \"\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I don't age and aging effects don't work on me. When I roll a 16 or higher on a death save, I regain 1 HP. I register as undead for spells and other effects. As an action once per long rest, I can unsettle a creature I can see within 15 ft, giving it disadv. on the next save it makes in the next minute (frightening effect).\",\r\n\tdescriptionLong : \"The void left behind by my departed soul is filled with the strange magic of Blightshore.\\nI don't age and aging effects don't work on me. When I roll a 16 or higher on a death save, I regain 1 HP. Although my creature type is unchanged, I register as undead for spells and other effects. As an action once per long rest, I can unsettle a creature I can see within 15 ft, giving it disadvantage on the next save it makes in the next minute. Constructs, undead, and creatures that can't be frightened are immune to this feature.\",\r\n\tdescriptionFull : \"As a Hollow One, the void left behind by your departed soul is filled with the strange magic of Blightshore. Becoming a Hollow One is a supernatural gift that bestows upon you the following traits.\\n\"+\r\n\ttoUni(\"Ageless\") + \". You don't age, and effects that would cause you to age don't work on you.\\n\"+\r\n\ttoUni(\"Cling to Life\") + \". When you make a death saving throw and roll 16 or higher, you regain 1 hit point.\\n\"+\r\n\ttoUni(\"Revenance\") + \". You retain your creature type, yet you register as undead to spells and other effects that detect the presence of the undead creature type.\\n\"+\r\n\ttoUni(\"Unsettling Presence\") + \". As an action, you can unsettle a creature you can see within 15 feet of you. The target has disadvantage on the next saving throw it makes within the next minute. Constructs, undead, and creatures that can't be frightened are immune to this feature. Once you use this feature, you can't use it again until you finish a long rest.\",\r\n\tsavetxt : { text : [\"Can't be aged\", \"Regain 1 HP on 16+ death save\"] },\r\n\taction : [[\"action\", \"Unsettling Presence\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Unsettling Presence\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"hollow one\"] = MagicItemsList[\"hollow one\"];\r\n\r\n*/\n// pub_20200721_MOT.js\r\n// This file adds the content from Mythic Odysseys of Theros to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.MOT = {\r\n\tname : \"Mythic Odysseys of Theros\",\r\n\tabbreviation : \"MOT\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://dnd.wizards.com/products/mythic-odysseys-theros\",\r\n\tdate : \"2020/07/21\"\r\n};\r\n\r\nRaceList[\"leonin\"] = { // includes contributions by BraabHimself\r\n\tregExpSearch : /leonin/i,\r\n\tname : \"Leonin\",\r\n\tsource : [[\"MOT\", 20]],\r\n\tplural : \"Leonin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tskillstxt : \"Choose one from Athletics, Intimidation, Perception, or Survival\",\r\n\tlanguageProfs : [\"Common\", \"Leonin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(leonin|\\bcats?\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Leonin Claws\",\r\n\t\tsource : [[\"MoT\", 21]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tabilitySave : 3,\r\n\tage : \" mature and age at about the same rate as humans\",\r\n\theight : \" are typically over 6 feet tall, with some standing over 7 feet (5'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 250 lb (180 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are typically over 1,8 metres tall, with some standing over 2,1 metres (167 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 120 kg (80 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"daunting roar\" : {\r\n\t\t\tname : \"Daunting Roar\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Leonin (+2 Constitution +1 Strength)\" + desc([\r\n\t\t\"Claws: I can use my claws to make unarmed strikes that deal 1d4 slashing damage.\",\r\n\t\t\"Daunting Roar: As a bonus action once per short rest, I can let out a menacing roar. Creatures of my choice within 10 ft of me that can hear me must make a Wisdom saving throw (DC 8 + Constitution modifier + Proficiency Bonus) or become frightened of me until the end of my next turn.\",\r\n\t\t\"Hunter's Instincts: I'm proficient in either Athletics, Intimidation, Perception, or Survival.\"\r\n\t])\r\n};\r\nRaceList[\"satyr\"] = { // includes contributions by BraabHimself\r\n\tregExpSearch : /satyr|goat\\s*(wo)?man/i,\r\n\tname : \"Satyr\",\r\n\tsource : [[\"MOT\", 24]],\r\n\tplural : \"Satyr\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"magic\"] },\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(satyr|\\bram\\b))(?=.*headbutt).*$/i,\r\n\t\tname : \"Satyr Headbutt\",\r\n\t\tsource : [[\"MOT\", 25]],\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tage : \" mature and age at about the same rate as humans\",\r\n\theight : \" range from just under 5 feet to about 6 feet in height, with generally slender builds (4'8\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 145 lbs (100 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from just under 1,5 metres to about 1,8 metres in height, with generally slender builds (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 66 kg (45 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\tskills : [\"Performance\", \"Persuasion\"],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\ttrait : \"Satyr (+1 Dexterity, +2 Charisma)\" + desc([\r\n\t\t\"Fey: My creature type is fey, rather than humanoid.\",\r\n\t\t\"Ram: I can use my head for unarmed strikes that deal 1d4 bludgeoning damage.\",\r\n\t\t\"Magic Resistance: I have advantage on saves against spells and other magical effects.\",\r\n\t\t\"Mirthful Leaps: Whenever I make a long or high jump, I can roll a d8 and add the number rolled to the number of feet I cover, even when making a standing jump. This extra distance costs movement as normal.\"\r\n\t])\r\n};\r\n// Subclasses (but add TCoE as main source, because it is more likely to be available at a table)\r\nAddSubClass(\"bard\", \"college of eloquence\", { // includes contributions by /u/Holynight6\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\r\n\tsubname : \"College of Eloquence\",\r\n\tsubnameShort: \"Eloquence\",\r\n\tsource : [[\"T\", 29], [\"MOT\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Silver Tongue\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make a Persuasion or Deception check, I can treat a roll of 9 or lower as a 10\")\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Unsettling Words\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I expend a Bardic Inspiration use & choose a target I can see in 60 ft\",\r\n\t\t\t\t\"It subtracts my inspiration die from the next save it makes before my next turn starts\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Unfailing Inspiration\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When a creature adds my Bardic Inspiration die to a roll but fails, they can keep the die\")\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Universal Speech\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can choose up to my Charisma modifier (min 1) creatures within 60 ft\",\r\n\t\t\t\t\"Those creatures magically understand any language I speak for an hour\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Infectious Inspiration\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature uses my inspiration die and succeeds, I can inspire another\",\r\n\t\t\t\t\"I give a creature within 60 ft that can hear me an inspiration die without expending any\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of glory\", { // includes contributions by BraabHimself\r\n\tregExpSearch : /^(((?=.*glory)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Glory\",\r\n\tsubnameShort: \"Glory\",\r\n\tsource : [[\"T\", 53], [\"MOT\", 29]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Peerless Athlete\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can get adv. on Str (Athletics) \\u0026 Dex (Acrobatics) checks for 10 min\",\r\n\t\t\t\t\"In that time, I also add +10 ft to jumps, and double what I can carry, push, drag, \\u0026 lift\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"guiding bolt\", \"heroism\", \"enhance ability\", \"magic weapon\", \"haste\", \"protection from energy\", \"compulsion\", \"freedom of movement\", \"commune\", \"flame strike\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Inspiring Smite\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action after dealing damage with Divine Smite, I can grant temporary HP\",\r\n\t\t\t\t\"I distribute the temporary HP how I choose across creatures within 30 ft, including me\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"2d8 + \" + n + \" temporary HP\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Alacrity\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, allies starting their turn in range gain bonus speed for that turn\"),\r\n\t\t\tspeed : { walk : { spd : \"+10\", enc : \"+10\" } },\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 7 ? \"\" : (n < 18 ? 5 : 10) + \"-foot aura; +10 ft walking speed\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Glorious Defense\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another in 10 ft is hit with an attack roll, I can grant bonus AC\",\r\n\t\t\t\t\"I must be able to see the attacker; I add my Cha mod (min 1) to the AC for that attack\",\r\n\t\t\t\t\"If it misses, I can do a weapon attack vs. the attacker, if in reach, as part of this reaction\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Living Legend\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can empower myself with legends, gaining the following for 1 min:\",\r\n\t\t\t\t\" \\u2022 My otherworldly presence grants me advantage on Charisma checks\",\r\n\t\t\t\t\" \\u2022 Once on each of my turns when I miss with a weapon attack, I can have it hit instead\",\r\n\t\t\t\t\" \\u2022 As a reaction when I fail a saving throw, I can reroll it, but must use the new roll\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 5+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Background\r\nBackgroundList[\"athlete\"] = { // includes contributions by Smashman\r\n\tregExpSearch : /athlete/i,\r\n\tname : \"Athlete\",\r\n\tsource : [[\"MOT\", 31]],\r\n\tskills : [\"Acrobatics\", \"Athletics\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [\"Vehicles (land)\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"A bronze discus or leather ball\", \"\", \"\"],\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"A lucky charm or past trophy\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Echoes of Victory\",\r\n\ttrait : [\r\n\t\t\"I feel most at peace during physical exertion, be it exercise or battle.\",\r\n\t\t\"I don't like to sit idle.\",\r\n\t\t\"I have a daily exercise routine that I refuse to break.\",\r\n\t\t\"Obstacles exist to be overcome.\",\r\n\t\t\"When I see others struggling, I offer to help.\",\r\n\t\t\"I love to trade banter and gibes.\",\r\n\t\t\"Anything worth doing is worth doing best.\",\r\n\t\t\"I get irritated if people praise someone else and not me.\",\r\n\t],\r\n\tideal : [\r\n\t\t[\"Competition\", \"Competition: I strive to test myself in all things. (Chaotic)\"],\r\n\t\t[\"Triumph\", \"Triumph: The best part of winning is seeing my rivals brought low. (Evil)\"],\r\n\t\t[\"Camaraderie\", \"Camaraderie: The strongest bonds are forged through struggle. (Good)\"],\r\n\t\t[\"People\", \"People: I strive to inspire my spectators. (Neutral)\"],\r\n\t\t[\"Tradition\", \"Tradition: Every game has rules, and the playing field must be level. (Lawful)\"],\r\n\t\t[\"Growth\", \"Growth: Lessons hide in victory and defeat. (Any)\"],\r\n\t],\r\n\tbond : [\r\n\t\t\"My teammates are my family.\",\r\n\t\t\"I will overcome a rival and prove myself their better.\",\r\n\t\t\"My mistake got someone hurt. I'll never make that mistake again.\",\r\n\t\t\"I will be the best for the honor and glory of my home.\",\r\n\t\t\"The person who trained me is the most important person in my world.\",\r\n\t\t\"I strive to live up to a specific hero's example.\",\r\n\t],\r\n\tflaw : [\r\n\t\t\"I indulge in a habit that threatens my reputation or my health.\",\r\n\t\t\"I'll do absolutely anything to win.\",\r\n\t\t\"I ignore anyone who doesn't compete and anyone who loses to me.\",\r\n\t\t\"I have lingering pain from old injuries.\",\r\n\t\t\"Any defeat or failure on my part is because my opponent cheated.\",\r\n\t\t\"I must be the captain of any group I join.\",\r\n\t]\r\n};\r\nBackgroundFeatureList[\"echoes of victory\"] = { // includes contributions by Smashman\r\n\tdescription : \"I have attracted admiration among spectators, fellow athletes, and trainers in the region that hosted my past athletic victories. When visiting any settlement within 100 miles of where I grew up, there is a 50 percent change that I can find someone there who admires me and is willing to provide information or temporary shelter.\",\r\n\tsource : [[\"MOT\", 31]]\r\n};\r\n\r\n// Creature: possible familiar\r\nCreatureList[\"anvilwrought raptor\"] = {\r\n\tname : \"Anvilwrought Raptor\",\r\n\tsource : [[\"MOT\", 209]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 18,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [12, 16, 14, 3, 14, 1],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tdamage_immunities : \"fire, poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Darkvision 120 ft; Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands one language of its creator but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Beak\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two beak attacks as an Attack action\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The raptor has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}, {\r\n\t\tname : \"Recorded Mimicry\",\r\n\t\tdescription : \"The raptor can mimic any sound, including voices, it has heard in the last 24 hours. A creature that hears the sounds can tell they are imitations with a successful DC 12 Wisdom (Insight) check.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the raptor can make two Beak attacks.\"\r\n\t}],\r\n\tvariant : [{\r\n\t\tname : \"Variant: Familiar\",\r\n\t\tdescription : \"The anvilwrought can serve another creature as a familiar, forming a magical, telepathic bond with its willing master. While the two are bonded, the master can sense what the anvilwrought senses, as long as they are within 1 mile of each other.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items (each contain contributions by BraabHimself)\r\nMagicItemsList[\"flying chariot\"] = {\r\n\tname : \"Flying Chariot\",\r\n\tsource : [[\"MOT\", 196]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I gain +1 AC while riding this chariot, as do any passengers and the creatures pulling it. If this chariot is pulled by one or more flying creatures, they too can fly.\\n(The AC bonus is not added to the automation, as it is too situational.)\",\r\n\tdescriptionFull : \"The chariot's riders and creatures pulling the chariot gain a + 1 bonus to their AC.\"+\r\n\t\"\\n   If this magic chariot is pulled by one or more flying creatures, it too can fly.\",\r\n\tweight : 100\r\n};\r\nMagicItemsList[\"helm of the gods\"] = {\r\n\tname : \"Helm of the Gods\",\r\n\tsource : [[\"MOT\", 196]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing this helm, I know the location of all celestials and fiends within 30 ft, provided they aren't behind total cover. The helm has 3 charges, regaining 1d3 charges at dawn. I can use 1 charge to cast the spell stored in the helm (DC 13). After I finish a long rest, I can pray to a god to change the stored spell.\",\r\n\tdescriptionLong : \"While wearing this helm, I know the location of all celestials/fiends within 30 ft not behind total cover. The helm has 3 charges, regaining 1d3 at dawn. I can use 1 charge to cast the spell stored in it (DC 13). After a long rest, I can pray to a god to change the stored spell: Athreos: Protection from Evil/Good, Ephara: Sanctuary, Erebos: Inflict Wounds, Heliod: Guiding Bolt, Iroas: Heroism, Karametra: Goodberry, Keranos: Thunderous Smite, Klothys: Entangle, Kruphix: Dissonant Whispers, Mogis: Hellish Rebuke, Nylea: Faerie Fire, Pharika: Lesser Restoration, Phenax: Charm Person, Purphoros: Searing Smite, Thassa: Identify\",\r\n\tdescriptionFull : \"While wearing this helm, you know whether there is a celestial or fiend within 30 feet of you, as well as where the creature is located, provided the creature isn't behind total cover.\"+\r\n\t\"\\n   Whenever you finish a long rest while wearing the helm, you can pray to one of the gods listed on the Helm of the Gods table and store the listed spell in the helm, replacing any spell that is already stored there. The save DC for the spell is 13.\"+\r\n\t\"\\n   The helm has 3 charges. To cast a spell from the helm, you must expend 1 charge, and the helm regains 1d3 charges daily at dawn.\"+\r\n\ttoUni(\"\\n God\\t\\tSpell\")+\r\n\t\"\\n Athreos\\t\\tprotection from evil and good\"+\r\n\t\"\\n Ephara\\t\\tsanctuary\"+\r\n\t\"\\n Erebos\\t\\tinflict wounds\"+\r\n\t\"\\n Heliod\\t\\tguiding bolt\"+\r\n\t\"\\n Iroas\\t\\theroism\"+\r\n\t\"\\n Karametra\\tgoodberry\"+\r\n\t\"\\n Keranos\\t\\tthunderous smite\"+\r\n\t\"\\n Klothys\\t\\tentagle\"+\r\n\t\"\\n Kruphix\\t\\tdissonant whispers\"+\r\n\t\"\\n Mogis\\t\\thellish rebuke\"+\r\n\t\"\\n Nylea\\t\\tfaerie fire\"+\r\n\t\"\\n Pharika\\t\\tlesser restoration\"+\r\n\t\"\\n Phenax\\t\\tcharm person\"+\r\n\t\"\\n Purphoros\\tsearing smite\"+\r\n\t\"\\n Thassa\\t\\tidentify\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tfixedDC : 13,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Athreos\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Ephara\",\r\n\t\tspells : [\"sanctuary\"],\r\n\t\tselection : [\"sanctuary\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Erebos\",\r\n\t\tspells : [\"inflict wounds\"],\r\n\t\tselection : [\"inflict wounds\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Heliod\",\r\n\t\tspells : [\"guiding bolt\"],\r\n\t\tselection : [\"guiding bolt\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Iroas\",\r\n\t\tspells : [\"heroism\"],\r\n\t\tselection : [\"heroism\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Karametra\",\r\n\t\tspells : [\"goodberry\"],\r\n\t\tselection : [\"goodberry\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Keranos\",\r\n\t\tspells : [\"thunderous smite\"],\r\n\t\tselection : [\"thunderous smite\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Klothys\",\r\n\t\tspells : [\"entangle\"],\r\n\t\tselection : [\"entangle\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Kruphix\",\r\n\t\tspells : [\"dissonant whispers\"],\r\n\t\tselection : [\"dissonant whispers\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Mogis\",\r\n\t\tspells : [\"hellish rebuke\"],\r\n\t\tselection : [\"hellish rebuke\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Nylea\",\r\n\t\tspells : [\"faerie fire\"],\r\n\t\tselection : [\"faerie fire\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Pharika\",\r\n\t\tspells : [\"lesser restoration\"],\r\n\t\tselection : [\"lesser restoration\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Phenax\",\r\n\t\tspells : [\"charm person\"],\r\n\t\tselection : [\"charm person\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Purphoros\",\r\n\t\tspells : [\"searing smite\"],\r\n\t\tselection : [\"searing smite\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Thassa\",\r\n\t\tspells : [\"identify\"],\r\n\t\tselection : [\"identify\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"protection from evil and good\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Athreos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"sanctuary\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Ephara after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"inflict wounds\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Erebos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"guiding bolt\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Heliod after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"heroism\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Iroas after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"goodberry\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Karametra after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"thunderous smite\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Keranos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"entangle\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Klothys after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"dissonant whispers\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Kruphix after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"hellish rebuke\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Mogis after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"faerie fire\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Nylea after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Pharika after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"charm person\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Phenax after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"searing smite\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Purphoros after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"identify\" : {\r\n\t\t\tritual : false,\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Thassa after a long rest and expend 1 charge.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"molten bronze skin\"] = {\r\n\tname : \"Molten Bronze Skin\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"armor (breastplate, half plate, or plate)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. This armor can't be removed unless I choose to do so. It grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\tdescriptionFull : \"This magical armor appears as a jug of molten bronze. When you attune to it, the bronze adheres and contours to your skin. The armor can be worn under normal clothes, but it doesn't impede bodily functions. Once you put it on, it can't be removed unless you choose to do so.\"+\r\n\t\"\\n   While wearing the armor, you have resistance to fire damage. The armor also doesn't impose disadvantage on Dexterity (Stealth) checks.\",\r\n\tdmgres : [\"Fire\"],\r\n\tchoices : [\"Breastplate\", \"Half Plate\", \"Plate\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"breastplate\" : {\r\n\t\tdescription : \"This breastplate appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : 14,\r\n\t\t\tweight : 20,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"half plate\" : {\r\n\t\tdescription : \"This half plate armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : 15,\r\n\t\t\tweight : 40,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"plate\" : {\r\n\t\tdescription : \"This plate armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"heavy\",\r\n\t\t\tac : 18,\r\n\t\t\tweight : 65,\r\n\t\t\tstrReq : 15,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nMagicItemsList[\"potion of aqueous form\"] = {\r\n\tname : \"Potion of Aqueous Form\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion turns into a pool of water and gains several benefits and limitations while in this form. They revert back to their true form after 10 minutes, if they become incapacitated, or if they die. See Notes page.\",\r\n\tdescriptionFull : \"When you drink this potion, you transform into a pool of water. You return to your true form after 10 minutes or if you are incapacitated or die.\"+\r\n\t\"\\n   You're under the following effects while in this form:\"+\r\n\t\"\\n\\n\" + toUni(\"Liquid Movement\") + \". You have a swimming speed of 30 feet. You can move over or through other liquids. You can enter and occupy the space of another creature. You can rise up to your normal height, and you can pass through even Tiny openings. You extinguish nonmagical flames in any space you enter.\"+\r\n\t\"\\n\\n\" + toUni(\"Watery Resilience\") + \". You have resistance to nonmagical damage. You also have advantage on Strength, Dexterity, and Constitution saving throws.\"+\r\n\t\"\\n\\n\" + toUni(\"Limitations\") + \". You can't talk, attack, cast spells, or activate magic items. Any objects you were carrying or wearing meld into your new form and are inaccessible, though you continue to be affected by anything you're wearing, such as armor.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tpopupName : \"Potion of Aqueous Form Effects\",\r\n\t\tnote : [\r\n\t\t\t\"The consumer of the potion is under the following effects:\",\r\n\t\t\t\"\\u2022 They have a swimming speed of 30 ft\",\r\n\t\t\t\"\\u2022 They can move over or through other liquids\",\r\n\t\t\t\"\\u2022 They can enter and occupy the space of another creature\",\r\n\t\t\t\"\\u2022 They can rise up to their normal height and pass through tiny openings\",\r\n\t\t\t\"\\u2022 They extinguish nonmagical flames in any space they enter\",\r\n\t\t\t\"\\u2022 They have resistance to nonmagical damage\",\r\n\t\t\t\"\\u2022 They have advantage on Strength, Dexterity, and Constitution saving throws\",\r\n\t\t\t\"\\u2022 They can't talk, attack, cast spells, or activate magic items\",\r\n\t\t\t\"\\u2022 Their equipment merges into their new form, but still gain their benefits\"\r\n\t\t]\r\n\t}],\r\n\tweight : 0.5\r\n};\r\nvar MOT_PyxisOfPandemoniumFullDescription = [\r\n\t\"A creature that touches this ornate wooden vessel for 1 minute gains the benefits of a short rest. That creature also gains the effects of the bless spell until the creature finishes a short or long rest. The creature can't gain these benefits again until it finishes a long rest.\",\r\n\t\"If the vessel is opened, roll on the Pyxis of Pandemonium table to determine what happens. Any spells cast by the vessel have a spell save DC of 17. One minute after the vessel is opened, it disappears. It reappears, sealed, in a random location on the same plane of existence 24 hours later.\",\r\n\t\">>Curse<<. Any creature that gains the benefit of a short rest from the vessel hears cloying telepathic whispers emanating it. That creature must make a DC 17 Wisdom saving throw. On a failed save, the creature is charmed by the vessel for 1 hour. The charmed creature does everything it can to open the vessel as soon as possible. On a successful save, the creature is immune to the vessel's whispers for 24 hours.\\n\",\r\n\ttoUni(\"d8\\tCalamity\"),\r\n\t\" 1\\t>>Androphagia<<. Each creature within 60 feet of the vessel must succeed on a DC 17 Wisdom saving throw or go berserk for l minute. The berserk creature must begin its turn using the Attack action to make one melee or ranged attack (its choice) against the creature nearest to it. The berserk creature can repeat the save at the end of its turn, ending the effect on itself on a success.\",\r\n\t\" 2\\t>>Bile Blight<<. The vessel casts the harm spell on each creature within 30 feet of it.\",\r\n\t\" 3\\t>>Flood<<. The vessel casts the tsunami spell at a point of the DM's choice within 120 feet of it.\",\r\n\t\" 4\\t>>Medusa's Gaze<<. The vessel casts the flesh to stone spell on each creature within 30 feet of it.\",\r\n\t\" 5\\t>>Labyrinth<<. The vessel casts the maze spell on each creature within 30 feet of it.\",\r\n\t\" 6\\t>>Nightmare<<. Tendrils of shadow seep from the vessel and form into 1d4 shadow demons (see the Monster Manual for their stat block), which appear in unoccupied spaces within 30 feet of it and are hostile.\",\r\n\t\" 7\\t>>Swarming Insects<<. The vessel casts the insect plague spell, centered on itself and with a radius of 30 feet.\",\r\n\t\" 8\\t>>Unbridled Revel<<. The vessel casts the Otto's irresistible dance spell on each creature within 30 feet of it.\"\r\n];\r\nMagicItemsList[\"pyxis of pandemonium\"] = {\r\n\tname : \"Pyxis of Pandemonium\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once per long rest, I gain the benefits of a short rest by touching this ornate vessel for 1 minute. I also gain the benefit of Bless until I finish my next rest. After benefiting from this vessel, I have to make a DC 17 Wis save or become charmed by the vessel for 1 hour. If charmed, I must do everything to open it. See Notes.\",\r\n\tdescriptionLong : \"Once per long rest, I can touch this ornate wooden vessel for 1 minute to gain the benefits of a short rest. I then also gain the benefit of the Bless spell until I finish my next rest. After I gain the benefits of a short rest from this vessel, I must make a DC 17 Wisdom save or become charmed by it for 1 hour. On a success, I am immune to its charm for 24 hours. If charmed, I will do everything I can to open the vessel as soon as possible. Once opened, the vessel causes a random effect to occur, then it disappears after 1 minute and reappears, sealed, in random location on the same plane. See Notes.\",\r\n\tdescriptionFull : MOT_PyxisOfPandemoniumFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tsource : [[\"MOT\", 197]],\r\n\t\tnote : desc(MOT_PyxisOfPandemoniumFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n};\r\nMagicItemsList[\"siren song lyre\"] = {\r\n\tname : \"Siren Song Lyre\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can play this lyre and cast one of the following spells from it: Animal Friendship, Charm Person, Enthrall, or Suggestion. The DC for these spells is 13. Once I cast a spell, I can't use the lyre to cast that spell again until the next dawn.\",\r\n\tdescriptionFull : \"You can use an action to play this lyre and cast one of the following spells from it: animal friendship, charm person, enthrall, suggestion. If the spell requires a saving throw, the spell save DC is 13.\\n   Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn.\",\r\n\tweight : 2,\r\n\tfixedDC : 13,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Siren's Song Lyre [Animal Friendship]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Charm Person]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Enthrall]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Suggestion]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"animal friendship\", \"charm person\", \"enthrall\", \"suggestion\"],\r\n\t\tselection : [\"animal friendship\", \"charm person\", \"enthrall\", \"suggestion\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 4\r\n\t}]\r\n};\r\nvar MOT_SlingBulletsOfAlthemoneFullDescription = [\r\n\t\"The sling bullets come in a pouch, which contains 1d4 + 4 bullets. Roll on the Magic Sling Bullets table for each bullet to determine its magical property.\",\r\n\t\"You have a +2 bonus to attack and damage rolls made with each of these bullets. If a bullet misses its target, the bullet teleports back into the pouch. Once a bullet hits a target, the bullet loses its magic.\\n\",\r\n\t\">>d4  Bullet<<\",\r\n\t\"1   >>Banishment<<. A creature that takes damage from this bullet must succeed on a DC 15 Charisma saving throw or be banished as though affected by the banishment spell.\",\r\n\t\"2   >>Fulguration<<. On a hit, this bullet deals an extra 2d8 lightning damage to its target. All other creatures within 10 feet of the target must each succeed on a DC 15 Constitution saving throw or take 1d8 thunder damage.\",\r\n\t\"3   >>Stunning<<. On a hit, this bullet deals an extra ldlO force damage, and the target is stunned until the end of your next turn.\",\r\n\t\"4   >>Tracking<<. A creature that takes damage from this bullet is marked with a glowing rune where the bullet hit. The mark lasts 24 hours. While the creature is marked, you always know the direction to it.\",\r\n];\r\nMagicItemsList[\"sling bullets of althemone\"] = {\r\n\tname : \"Sling Bullets of Althemone\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"weapon (sling bullet)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"These bullets come in a pouch containing 1d4 + 4 bullets. Attacks made with these sling bullets add +2 to hit and damage. If a bullet misses, it teleports back to its pouch. On a hit, the bullet's effect happens and the bullet loses its magic. I roll on the table to determine each bullet's magical effect, see Notes.\",\r\n\tdescriptionFull : MOT_SlingBulletsOfAlthemoneFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"sling\" && (/althemone/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Bullets return on a miss, special effect on hit';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Althemone\" in the name of a sling, it will be treated as using the Sling Bullets of Althemone. It has +2 to hit and damage, bullets return on a miss, and cause a magical effect on a hit.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName == \"sling\" && (/althemone/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Magic Sling Bullets Table\",\r\n\t\tsource : [[\"MOT\", 198]],\r\n\t\tnote : desc(MOT_SlingBulletsOfAlthemoneFullDescription.slice(2)).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/\\byou\\b/ig, \"I\").replace(/your/g, \"my\")\r\n\t}],\r\n\tweight : 1.5 // assuming an averyage of 6,5 bullets (0.4875) and a pouch (1)\r\n};\r\nMagicItemsList[\"two-birds sling\"] = {\r\n\tname : \"Two-Birds Sling\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"weapon (sling)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sling adds +1 to hit and damage rolls made with it. On a hit, I can cause the ammunition to ricochet towards a second target within 10 ft of the first, rolling a ranged attack against the second target as well.\",\r\n\tdescriptionFull : \"You have a +l bonus to attack and damage rolls made with this weapon.\"+\r\n\t\"\\n   When you make a ranged attack with this sling and hit a target, you can cause the ammunition to ricochet toward a second target within 10 feet of the first, and then make a ranged attack against the second target.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"sling\",\r\n\t\tregExpSearch : /^(?=.*two-birds)(?=.*sling).*$/i,\r\n\t\tname : \"Two-Birds Sling\",\r\n\t\tsource : [[\"MOT\", 198]],\r\n\t\tdescription : \"Ammunition; On hit ricochet to another in 10 ft\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\n\n// pub_20200915_RotF.js\n// This file adds the content from the Icewind Dale: Rime of the Frostmaiden adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"RotF\"] = {\n\tname : \"Icewind Dale: Rime of the Frostmaiden [creatures, items, spells]\",\n\tabbreviation : \"RotF\",\n\tabbreviationSpellsheet : \"RF\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dnd.wizards.com/products/icewind-dale-rime-frostmaiden\",\n\tdate : \"2020/09/15\"\n};\n\n// Winter Survival Gear (contains contributions by Nod_Hero on Discord)\nGearList[\"cold weather\"] = {\n\tinfoname : \"Cold Weather [10 gp]\",\n\tname : \"Cold weather clothes\",\n\tsource : [[\"RotF\", 20]],\n\tamount : \"\",\n\tweight : 5,\n\ttype : \"clothes\"\n};\nGearList[\"crampons (2)\"] = {\n\tinfoname : \"Crampons (2) [2 gp]\",\n\tname : \"Crampons\",\n\tsource : [[\"RotF\", 20]],\n\tamount : 2,\n\tweight : 0.125\n};    \nGearList[\"snowshoes\"] = {\n\tinfoname : \"Snowshoes [2 gp]\",\n\tname : \"Snowshoes\",\n\tsource : [[\"RotF\", 20]],\n\tamount : \"\",\n\tweight : 4\n};\n\n// Creatures - new beasts (each contain contributions by BraabHimself)\n// Reindeer is just an elk under a different name and a moose uses the giant goat stat block. They have been added to the SRD code as a `nameAlt`\nCreatureList[\"awakened white moose\"] = {\n\tname : \"Awakened White Moose\",\n\tnameAlt : [\"Moose, Awakened White\"],\n\tsource : [[\"RotF\", 82]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Neutral Evil\",\n\tac : 11,\n\thp : 68,\n\thd : [8, 10],\n\tspeed : \"40 ft\",\n\tscores : [19, 11, 16, 10, 12, 6],\n\tpassivePerception : 11,\n\tlanguages : \"Druidic\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Antlers\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\n\t}, {\n\t\tname : \"Hooves\",\n\t\tability : 1,\n\t\tdamage : [2, 4, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One antlers and one hooves attack as an Attack action\"\n\t}],\n\ttraits : [{\n\t\tname : \"Charge\",\n\t\tdescription : \"If the moose moves at least 20 ft straight toward a target and then hits it with an antlers attack on the same turn, the target takes an extra 9 (2d8) bludgeoning damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be knocked prone.\"\n\t}, {\n\t\tname : \"Sure-Footed\",\n\t\tdescription : \"The moose has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the moose can make one Antlers and one Hooves attack.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Multiattack##. 1 Antlers and 1 Hooves attack.\",\n\t\t\"##Charge##. After moving 20 ft straight toward a target and then hitting it with an antlers attack on the same turn, the target takes an extra 2d8 bludgeoning damage and must make a DC 14 Str save or be knocked prone.\",\n\t\t\"##Sure-Footed##. Advantage on Str and Dex saves against effects that would knock it prone.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"fox\"] = {\n\tname : \"Fox\",\n\tcompanion : \"familiar_not_al\",\n\tsource : [[\"RotF\", 288]],\n\tsize : 5,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 2,\n\thd : [1, 4],\n\tspeed : \"30 ft, burrow 5 ft\",\n\tscores : [2, 16, 11, 3, 12, 6],\n\tskills : {\n\t\t\"perception\" : 3,\n\t\t\"stealth\" : 5\n\t},\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using hearing\",\n\tpassivePerception : 13,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [1, \"\", \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false\n\t}],\n\ttraits : [{\n\t\tname : \"Keen Hearing\",\n\t\tdescription : \"The fox has advantage on Wisdom (Perception) checks that rely on hearing.\"\n\t}]\n};\nCreatureList[\"hare\"] = {\n\tname : \"Hare\",\n\tsource : [[\"RotF\", 294]],\n\tcompanion : \"familiar_not_al\",\n\tsize : 5,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 1,\n\thd : [1, 4],\n\tspeed : \"20 ft, burrow 5 ft\",\n\tscores : [1, 17, 9, 2, 11, 4],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 5\n\t},\n\tpassivePerception : 12,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 0,\n\tattacks : [],\n\ttraits : [{\n\t\tname : \"Escape\",\n\t\tdescription : \"The hare can take the Dash, Disengage, or Hide action as a bonus action on each of its turns.\"\n\t}]\n};\nCreatureList[\"knucklehead trout\"] = {\n\tname : \"Knucklehead Trout\",\n\tsource : [[\"RotF\", 295]],\n\tsize : 4,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 7,\n\thd : [2, 6],\n\tspeed : \"0 ft, swim 30 ft\",\n\tscores : [14, 14, 11, 1, 6, 1],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 8,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}, {\n\t\tname : \"Tail\",\n\t\tability : 1,\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The trout can breathe only underwater.\"\n\t}]\n};\nCreatureList[\"mountain goat\"] = {\n\tname : \"Mountain Goat\",\n\tnameAlt : [\"Goat, Mountain\"],\n\tsource : [[\"RotF\", 304]],\n\tsize : 3,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 11,\n\thp : 13,\n\thd : [2, 8],\n\tspeed : \"40 ft, climb 30 ft\",\n\tscores : [14, 12, 14, 2, 10, 5],\n\tpassivePerception : 10,\n\tchallengeRating : \"1/8\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Ram\",\n\t\tability : 1,\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\n\t}],\n\ttraits : [{\n\t\tname : \"Charge\",\n\t\tdescription : \"If the goat moves at least 20 ft straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 3 (1d6) bludgeoning damage. If the target is a creature, it must succeed on a DC 12 Strength saving throw or be knocked prone.\"\n\t}, {\n\t\tname : \"Sure-Footed\",\n\t\tdescription : \"The goat has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Charge##. After moving 20 ft straight toward a target and then hitting it with a ram attack on the same turn, the target takes an extra 1d6 bludgeoning damage and must make a DC 12 Strength save or be knocked prone.\",\n\t\t\"##Sure-Footed##. Advantage on Strength and Dexterity saves against effects that would knock it prone.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"seal\"] = {\n\tname : \"Seal\",\n\tsource : [[\"RotF\", 308]],\n\tsize : 3,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 11,\n\thp : 9,\n\thd : [2, 8],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [10, 12, 11, 3, 12, 5],\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using smell\",\n\tpassivePerception : 11,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [1, \"\", \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The seal can hold its breath for 15 minutes.\"\n\t}, {\n\t\tname : \"Keen Smell\",\n\t\tdescription : \"The seal has advantage on Wisdom (Perception) checks that rely on smell.\"\n\t}]\n};\nCreatureList[\"sperm whale\"] = {\n\tname : \"Sperm Whale\",\n\tnameAlt : [\"Whale, Sperm\"],\n\tsource : [[\"RotF\", 309]],\n\tsize : 0,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 189,\n\thd : [14, 20],\n\tspeed : \"0 ft, swim 60 ft\",\n\tscores : [26, 8, 17, 3, 12, 5],\n\tsenses : \"Blindsight 120 ft; Adv. on Wis (Perception) checks using hearing\",\n\tpassivePerception : 11,\n\tchallengeRating : \"8\",\n\tproficiencyBonus : 3,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [3, 8, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; See Swallow feature\",\n\t\ttooltip : \"If the target is a Large or smaller creature, it must succeed on a DC 14 Dexterity saving throw or be swallowed by the whale. A swallowed creature has total cover against attacks and other effects outside the whale, and it takes 3 (1d6) acid damage at the start of each of the whale's turns. If the whale takes 30 damage or more on a single turn from a creature inside it, the whale must succeed on a DC 16 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the whale. If the whale dies, a swallowed creature can escape from the corpse by using 20 feet of movement, exiting prone.\"\n\t}, {\n\t\tname : \"Tail\",\n\t\tability : 1,\n\t\tdamage : [3, 6, \"bludgeoning\"],\n\t\trange : \"Melee (15 ft)\",\n\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Double damage vs. objects\",\n\t\ttooltip : \"If the target is an object, the tail attack deal 6d6 + twice the Strength modifier bludgeoning damage.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Swallow\",\n\t\tdescription : \"A Large or smaller creature hit by the whale's bite attack must make a DC 14 Dexterity saving throw or be swallowed whole. A swallowed creature has total cover against attacks and other effects outside the whale, and it takes 3 (1d6) acid damage at the start of each of the whale's turns. If the whale takes 30 damage or more on a single turn from a creature inside it, the whale must succeed on a DC 16 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 ft of the whale. If the whale dies, a swallowed creature can escape from the corpse by using 20 ft of movement, exiting prone.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Echolocation\",\n\t\tdescription : \"The whale can't use its blindsight while deafened.\"\n\t}, {\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The whale can hold its breath for 90 minutes.\"\n\t}, {\n\t\tname : \"Keen Hearing\",\n\t\tdescription : \"The whale has advantage on Wisdom (Perception) checks that rely on hearing.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the whale can make one Bite and one Tail attack.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Senses##. Blindsight 120 ft (unless deafened); Adv. on Wis (Perception) checks using hearing.\",\n\t\t\"##Hold Breath##. Can hold its breath for 90 minutes.\",\n\t\t\"##Swallow##. Large or smaller hit with bite DC 14 Dex save or swallowed. Swallowed: total cover from outside whale, 1d6 acid damage at start of each turn. If whale takes 30 or more damage in a turn from inside, it DC 16 Con save or spit out creature prone in 10 ft at end of turn.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"walrus\"] = {\n\tname : \"Walrus\",\n\tsource : [[\"RotF\", 312]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 9,\n\thp : 22,\n\thd : [3, 10],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [15, 9, 14, 3, 11, 4],\n\tpassivePerception : 10,\n\tchallengeRating : \"1/4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Tusks\",\n\t\tability : 1,\n\t\tdamage : [2, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The walrus can hold its breath for 10 minutes.\"\n\t}]\n};\nCreatureList[\"giant walrus\"] = {\n\tname : \"Giant Walrus\",\n\tnameAlt : [\"Walrus, Giant\"],\n\tsource : [[\"RotF\", 312]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 9,\n\thp : 85,\n\thd : [9, 12],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [22, 9, 16, 3, 11, 4],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 10,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Body Flop\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One body flop and one tusks attack as an Attack action\"\n\t}, {\n\t\tname : \"Tusks\",\n\t\tability : 1,\n\t\tdamage : [3, 6, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One body flop and one tusks attack as an Attack action\"\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The walrus can hold its breath for 30 minutes.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the walrus can make one Body Flop and one Tusks attack.\"\n\t}]\n};\n\n// Creatures - for the Create Magos spell (each contain contributions by BraabHimself)\nCreatureList[\"demos magen\"] = {\n\tname : \"Demos Magen\",\n\tnameAlt : [\"Magen, Demos\"],\n\tsource : [[\"RotF\", 300]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 16,\n\thp : 51,\n\thd : [6, 8],\n\tspeed : \"30 ft\",\n\tscores : [14, 14, 18, 10, 10, 7],\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"understands the languages of its creator but can't speak\",\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Greatsword\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"slashing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Two greatsword attacks as an Attack action\"\n\t}, {\n\t\tname : \"Light Crossbow\",\n\t\tability : 2,\n\t\tdamage : [1, 8, \"piercing\"],\n\t\trange : \"80/320 ft\",\n\t\tdescription : \"\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the magen can make two melee attacks.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}]\n};\nCreatureList[\"galvan magen\"] = {\n\tname : \"Galvan Magen\",\n\tnameAlt : [\"Magen, Galvan\"],\n\tsource : [[\"RotF\", 301]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 68,\n\thd : [8, 8],\n\tspeed : \"30 ft, fly 30 ft (hover)\",\n\tscores : [10, 18, 18, 12, 10, 7],\n\tdamage_immunities : \"lightning, poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"understands the languages of its creator but can't speak\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Shocking Touch\",\n\t\tability : 2,\n\t\tdamage : [1, 6, \"lightning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Two shocking touch attacks as an Attack action; Adv. if target wears metal armor\"\n\t}, {\n\t\tname : \"Static Discharge (Recharge 5-6)\",\n\t\tability : 3,\n\t\tdamage : [4, 10, \"lightning\"],\n\t\trange : \"5-ft \\xD7 30-ft line\",\n\t\tdescription : \"Hits all in area; Dex save, success\\u2015 half damage; Disadv. if wearing metal armor\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\ttooltip : \"The magen discharges a lightning bolt in a 60-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw (with disadvantage if the creature is wearing armor made of metal), taking 22 (4d10) lightning damage on a failed save, or half as much damage on a successful one.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the magen can make two Shocking Touch attacks.\"\n\t}, {\n\t\tname : \"Static Discharge (Recharge 5-6)\",\n\t\tdescription : \"See Attack. The magen discharges a lightning bolt in a 60-ft line that is 5 ft wide. Each creature in that line must make a DC 14 Dexterity saving throw (with disadvantage if the creature is wearing armor made of metal), taking 4d12 lightning damage on a failed save, or half as much damage on a successful one.\"\n\t}]\n};\nCreatureList[\"hypnos magen\"] = {\n\tname : \"Hypnos Magen\",\n\tnameAlt : [\"Magen, Hypnos\"],\n\tsource : [[\"RotF\", 301]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 34,\n\thd : [4, 8],\n\tspeed : \"30 ft\",\n\tscores : [10, 14, 18, 14, 10, 7],\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"telepathy 30 ft, understands the languages of its creator but can't speak\",\n\tchallengeRating : \"1\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Psychic Lash\",\n\t\tability : 4,\n\t\tdamage : [2, 10, \"psychic\"],\n\t\trange : \"60 ft\",\n\t\tdescription : \"One creature in sight; Wis save: success\\u2015 no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}],\n\tactions : [{\n\t\tname : \"Suggestion\",\n\t\tdescription : \"The magen casts the Suggestion spell (save DC 12), requiring no material components. The target must be a creature that the magen can communicate with telepathically. If it succeeds on its saving throw, the target is immune to this magen's suggestion spell for the next 24 hours. The magen's spellcasting ability is Intelligence.\"\n\t}]\n};\n\n// Magic Items\nMagicItemsList[\"orc stone\"] = { // from Appendix B: Character Secrets\n\tname : \"Orc Stone\",\n\tsource : [[\"RotF\", 264]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by its recipient\",\n\tdescription : \"This stone was given to me by an orc whose life I saved. As an action, I can use it to summon an orc warrior spirit within 30 ft. The spirit disappears after 10 minutes or when reduced to 0 HP, understands any language I speak, and obeys my commands. After the stone is used three times, it turns to dust.\",\n\tdescriptionFull : \"I saved the life of an orc, who gave me a stone with the symbol of the Many-Arrows tribe (a humanoid skull pierced by three arrows) carved into it. The stone is an uncommon magic item that requires attunement, and only I can attune to it.\"+\n\t\"\\n   As an action, I can use the stone to summon the spirit of an orc warrior, which appears within 30 feet of me. The spirit uses the orc war chief stat block in the Monster Manual and disappears after 10 minutes or when reduced to 0 hit points. The spirit understands any language I speak and obeys my commands.\"+\n\t\"\\n   After the stone is used three times, it turns to dust.\",\n\tusages : 3,\n\trecovery : \"Never\",\n\tcreaturesAdd : [[\"Orc Stone Spirit\", true]],\n\tcreatureOptions : [{\n\t\tname : \"Orc Stone Spirit\",\n\t\tsource : [[\"MM\", 246], [\"RotF\", 264]],\n\t\tsize : 3,\n\t\ttype : \"Humanoid\",\n\t\talignment : \"Chaotic Evil\",\n\t\tac : 16,\n\t\thp : 93,\n\t\thd : [11, 8],\n\t\tspeed : \"30 ft\",\n\t\tscores : [18, 12, 18, 11, 11, 16],\n\t\tskills : {\n\t\t\t\"intimidation\" : 5,\n\t\t},\n\t\tlanguages: \"Understands any language its summoner speaks\",\n\t\tsenses : \"Darkvision 60 ft\",\n\t\tpassivePerception : 10,\n\t\tchallengeRating : \"4\",\n\t\tproficiencyBonus : 2,\n\t\tattacksAction : 2,\n\t\tattacks : [{\n\t\t\tname : \"Greataxe\",\n\t\t\tability : 1,\n\t\t\tdamage : ['1d12+1', 8, \"slashing\"],\n\t\t\trange : \"Melee\",\n\t\t\tdescription : \"Heavy, two-handed; Two attacks as an action\",\n\t\t}, {\n\t\t\tname : \"Spear\",\n\t\t\tability : 1,\n\t\t\tdamage : ['1d6+1', 8, \"piercing\"],\n\t\t\trange : \"Melee, 20/60 ft\",\n\t\t\tdescription : \"Thrown, versatile (1d8); Two attacks as an action\",\n\t\t}],\n\t\tfeatures : [{\n\t\t\tname : \"Gruumsh's Fury\",\n\t\t\tdescription : \"The orc deals an extra 1d8 damage when it hits with a weapon attack (included in the attacks).\"\n\t\t}, {\n\t\t\tname : \"Orc Stone\",\n\t\t\tdescription : \"Summoned by an Orc Stone, the orc spirit appears within 30 ft and disappears after 10 minutes or when reduced to 0 hit points. It obeys the command of its summoner.\"\n\t\t}],\n\t\tactions : [{\n\t\t\tname : \"Multiattack\",\n\t\t\tdescription : \"As an action on its turn, the orc can make two attacks.\"\n\t\t}, {\n\t\t\tname : \"Aggressive\",\n\t\t\tdescription : \"As a bonus action, the orc can move up to its speed toward a hostile creature that it can see.\"\n\t\t}, {\n\t\t\tname : \"Battle Cry (1/Day)\",\n\t\t\tdescription : \"As an action, the orc can utter a Battle Cry. Each creature of the orc's choice that is within 30 ft of it, can hear it, and not already affected by Battle Cry gain advantage on attack rolls until the start of the orc's next turn. The orc can then make one attack as a bonus action.\"\n\t\t}],\n\t\theader : \"Summoned\",\n\t}],\n};\nMagicItemsList[\"abracadabrus\"] = { // contains contributions by BraabHimself\n\tname : \"Abracadabrus\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This gemstone-studded wooden chest with a volume of 1.5 cu ft has 20 charges, regaining 1d20 charges at dawn. I roll a d20 if I use its last charge. On a 1, it loses its magic and gems. As an action, I can touch it and expend 1 charge to have up to 1 gp of nonmagical objects form inside, provided they fit and it's empty.\",\n\tdescriptionLong : \"This ornate, gemstone-studded wooden chest has a volume of 1.5 cu ft and weighs 25 lb. It has 20 charges and regains 1d20 expended charges daily at dawn. I roll a d20 if I use its last charge. On a 1, it loses its magic and gems. As an action, I can touch it and expend 1 charge to have up to 1 gp of nonmagical objects form inside (including raw materials, foodstuffs, and liquids), provided they fit inside and the chest is empty. Food and drink produced by the chest is delicious and spoils if not consumed after 24 hours. Gems and precious metals produced by the chest disappear after 1 minute.\",\n\tdescriptionFull : \"An abracadabrus is an ornate, gemstone-studded wooden chest that weighs 25 pounds while empty. Its interior compartment is a cube measuring 1\\u00BD feet on a side.\"+\n\t\"\\n   The chest has 20 charges. A creature can use an action to touch the closed lid of the chest and expend 1 of the chest's charges while naming one or more nonmagical objects (including raw materials, foodstuffs, and liquids) worth a total of 1 gp or less. The named objects magically appear in the chest, provided they can all fit inside it and the chest doesn't contain anything else. For example, the chest can conjure a plate of strawberries, a bowl of hot soup, a flagon of water, a stuffed animal, or a bag of twenty caltrops. Food and drink conjured by the chest are delicious, and they spoil if not consumed after 24 hours. Gems and precious metals created by the chest disappear after 1 minute.\"+\n\t\"\\n   The chest regains 1d20 expended charges daily at dawn. If the item's last charge is expended, roll a d20. On a 1, the chest loses its magic (becoming an ordinary chest), and its gemstones turn to dust.\",\n\tweight : 25,\n\tusages : 20,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d20\",\n\taction : [[\"action\", \"\"]]\n};\nMagicItemsList[\"cauldron of plenty\"] = { // contains contributions by BraabHimself\n\tname : \"Cauldron of Plenty\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This copper cauldron is 4 ft wide, 3.5 ft in diameter, and holds 30 gal. It has a lid, handles, and 5 clawed feet. Water stirred in it for 1 min becomes hot stew for 4 people per 1 gal. Stew stays hot in the cauldron, cools if removed, but cauldron's surface remains cool. Can be used 3 times per day, regaining all uses at dawn.\",\n\tdescriptionLong : \"This thick copper cauldron has turned green with age. It is 4ft wide, has a 3.5 ft diameter mouth, and holds 30 gallons. It has a lid, handles, and 5 clawed feet. If water is poured into the cauldron and stirred for 1 minute, it transforms into a hearty, hot stew, which can provide one nourishing meal for up to four people per 1 gallon. The stew remains hot while in the cauldron, then cools naturally after it is removed. The outside of the cauldron remains safe to touch despite the heat of the stew. The cauldron can create stew three times. It then ceases to function until the next dawn, when it regains all its uses.\",\n\tdescriptionFull : \"This cauldron is made of thick copper that has turned green with age. It is 4 feet wide, has a mouth 3\\u00BD feet in diameter, weighs 50 pounds, and can hold up to 30 gallons of liquid. Embossed on its bulging sides are images of satyrs and nymphs in repose, holding ladles. The cauldron comes with a lid and has side handles. It sits on five little clawed feet that keep it from tipping.\"+\n\t\"\\n   If water is poured into the cauldron and stirred for 1 minute, it transforms into a hearty, hot stew, which can provide one nourishing meal for up to four people per gallon. The stew remains hot while in the cauldron, then cools naturally after it is removed. The outside of the cauldron remains safe to touch despite the heat of the stew.\"+\n\t\"\\n   The cauldron can create stew three times. It then ceases to function until the next dawn, when it regains all its uses.\",\n\tweight : 50,\n\tusages : 3,\n\trecovery : \"dawn\"\n};\nvar IDRotF_HookOfFishersDelightFullDescription = [\n\t\"This tiny silver fishhook has a little gold feather attached to it. For it to function, the feathered hook must be tied to the end of a fishing line and immersed in enough water to fill at least a 10-foot cube. At the end of each uninterrupted hour of immersion, roll a d6. On a 6, a floppy, 6-inch-long magical fish appears on the end of the hook. The color and properties of the conjured fish are determined by rolling on the table below. Once the hook conjures a fish, it can't do so again until the next dawn.\\n\",\n\t\">>d20\\tFish color and result<<\",\n\t\"1-10\\t>>Green with copper bands<<. This tasty fish provides a day's worth of nourishment to one creature that eats it. The fish loses this property and rots if it's not eaten within 24 hours of being caught.\",\n\t\"11-14\\t>>Yellow with black stripes<<. Once removed from the hook, this awful-tasting fish can be thrown up to 120 feet, targeting a creature the thrower can see. The target must succeed on a DC 15 Strength saving throw or be knocked prone. The fish then disappears.\",\n\t\"15-18\\t>>Blue with white bands<<. When released from the hook, this fish squirms free, sprouts wings, follows you around, and sings a beautiful tune in Aquan. It disappears after 2d4 hours or when reduced to 0 hit points. The fish uses the quipper stat block, except that it can breathe air and has a flying speed of 30 feet.\",\n\t\"19-20\\t>>Gold with silver stripes<<. This tasty fish provides a day's worth of nourishment to one creature that eats it and grants 2d10 temporary hit points to that creature. The fish loses these properties and rots if it's not eaten within 24 hours of being caught.\"\n];\nMagicItemsList[\"hook of fisher's delight\"] = { // contains contributions by BraabHimself\n\tname : \"Hook of Fisher's Delight\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"For this tiny silver fishhook to work, I must attach it to the end of a fishing line and immerse it in at least 10 cu ft of water. Then, at the end of each uninterrupted hour of immersion, I roll a d6. On a 6, a magical fish appears on the hook; roll a d20 to determine the fish's properties on the table on the Notes page.\",\n\tdescriptionFull : IDRotF_HookOfFishersDelightFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Fish Properties Table\",\n\t\tnote : desc(IDRotF_HookOfFishersDelightFullDescription).replace(/>>|<</g, \"\").replace(/\\byou\\b/ig, \"I\").replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"lantern of tracking\"] = function () { // contains contributions by BraabHimself\n\tvar oObj = {\n\t\tname : \"Lantern of Tracking\",\n\t\tsource : [[\"RotF\", 314]],\n\t\ttype : \"wondrous item\",\n\t\trarity : \"common\",\n\t\tdescriptionFull : [\n\t\t\t\"This hooded lantern burns for 6 hours on 1 pint of oil, shedding bright light in a 30-foot radius and dim light for an additional 30 feet.\"+\n\t\t\t\"\\n   Each lantern of tracking is designed to track down a certain type of creature, which is determined by rolling on the Lantern of Tracking table. Once determined, this creature type can't be changed. While the lantern is within 300 feet of any creature of that type, its flame turns bright green. The lantern doesn't pinpoint the creature's exact location, however.\\n\",\n\t\t\ttoUni(\"d10\\tCreature Type\"),\n\t\t\t\"  1\\tAberrations\",\n\t\t\t\"  2\\tCelestials\",\n\t\t\t\"  3\\tConstructs\",\n\t\t\t\"  4\\tDragons\",\n\t\t\t\"  5\\tElementals\",\n\t\t\t\"  6\\tFey\",\n\t\t\t\"  7\\tFiends\",\n\t\t\t\"  8\\tGiants\",\n\t\t\t\"  9\\tMonstrosities\",\n\t\t\t\"10\\tUndead\"\n\t\t].join(\"\\n   \"),\n\t\tallowDuplicates : true,\n\t\tweight : 2,\n\t\tchoices : [\"Aberrations\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fey\", \"Fiends\", \"Giants\", \"Monstrosities\", \"Undead\"],\n\t\tchoicesNotInMenu : true\n\t};\n\tvar sDescr = \"This hooded lantern burns for 6 hours on 1 pint of oil, shedding bright light in a 30-ft radius and dim light for an additional 30 ft. While this lantern is within 300 ft of any CREATURE TYPE, its flame turns bright green. The lantern doesn't pinpoint the creature's exact location, however.\";\n\toObj.description = sDescr.replace(\"any CREATURE TYPE\", \"a specified creature type\");\n\tfor (var i = 0; i < oObj.choices.length; i++) {\n\t\tvar sChoice = oObj.choices[i].toLowerCase();\n\t\toObj[sChoice] = {\n\t\t\tname : \"Lantern of \" + oObj.choices[i] + \" Tracking\",\n\t\t\tsortname : \"Lantern of Tracking, \" + oObj.choices[i],\n\t\t\tdescription : sDescr.replace(\"CREATURE TYPE\", sChoice)\n\t\t}\n\t}\n\treturn oObj;\n}();\nMagicItemsList[\"professor skant\"] = { // contains contributions by Pengsloth\n\tname : \"Professor Skant\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This sentient orb with the personality of a scholar has Int 18, Wis 11, Cha 9, and no will of its own. It can hear and see out to 60 ft. It knows and reads Common, Draconic, Elvish, and Loross. It has+9 on checks regarding history of Netheril, vampirism, tarrasque, and Elverquisst. It moves itself around using Mage Hand.\",\n\tdescriptionLong : \"This sentient orb, which calls itself Professor Skant, has the personality of a scholar, but no will of its own to cause conflicts. It's a smooth, solid, 5 lb sphere of smoky gray quartz about the size of a grapefruit with two or more pinpricks of silver light deep inside. It's alignment is lawful good and it has Intelligence 18, Wisdom 11, and Charisma 9. It knows and reads Common, Draconic, Elvish, and Loross. It has expertise in the following academic topics (+9 on checks): history of Netheril, vampirism and the traits of vampires, rituals surrounding the making, bottling, and drinking of Elverquisst, and the tarrasque.\",\n\tdescriptionFull : \"The professor orb owned by Vellynne Harpell and stolen by Nass Lantomir calls itself Professor Skant. It is lawful good, and it has a Wisdom of 11 and a Charisma of 9 (as a professor orb, it has an Intelligence of 18). It speaks and reads Common, Draconic, Elvish, and Loross (the dead language of the Empire of Netheril). Professor Skant is a chatterbox and assumes all humanoids are dunderheads. When elaborating on its areas of expertise, it adopts an unintentionally patronizing tone. It has the following four areas of expertise:\"+\n\t\"\\n \\u2022 The history of Netheril (see the \\\"Fate of Netheril\\\" sidebar)\"+\n\t\"\\n \\u2022 Vampirism and the traits of vampires\"+\n\t\"\\n \\u2022 Rituals surrounding the making, bottling, and drinking of Elverquisst (a rare, ruby-colored elven liquor distilled from sunshine and rare summer fruits)\"+\n\t\"\\n \\u2022 The tarrasque (see the Monster Manual)\"+\n\t\"When making an Intelligence check to recall lore from any of its areas of expertise, the orb has a +9 bonus to its roll (including its Intelligence modifier).\"+\n\t\"\\n   Professor Skant takes the form of a smooth, solid, 5-pound sphere of smoky gray quartz about the size of a grapefruit. Close examination reveals two or more pinpricks of silver light deep inside the sphere.\"+\n\t\"\\n   Professor Skant can see and hear normally out to a range of 60 feet. Unlike most sentient items, the orb has no will of its own and can't initiate a conflict with the creature in possession of it.\"+\n\t\"\\n   In addition to the knowledge it possesses, Professor Skant can cast the mage hand cantrip at will. It uses the spell only to transport itself. Its spellcasting ability is Intelligence.\"\n};\nMagicItemsList[\"psi crystal\"] = { // contains contributions by BraabHimself\n\tname : \"Psi Crystal\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a creature with an intelligence score of 3 or higher\",\n\tprereqeval : function(v) { return Number(What(\"Int\")) >= 3; },\n\tdescription : \"While attuned to this orb, it glows with an inner purplish light and gives me telepathy. The range of telepathy and intensity of light are determined by my Intelligence score.\",\n\tdescriptionFull : \"This crystal grants you telepathy for as long as you remain attuned to it. See the introduction of the Monster Manual for rules on how this telepathy works.\"+\n\t\"\\n   The crystal also glows with a purplish inner light while you are attuned to it.\"+\n\t\"\\n   The higher your intelligence, the greater the light's intensity and the greater the range of the telepathy (see the table below).\"+\n\ttoUni(\"\\n\\nIntelligence\\tRange of   \\tLight\"+\n\t\"\\n    Score\\t\\tTelepathy  \\tIntensity\")+\n\t\"\\n      3-7\\t\\t  15 feet\\t\\tDim light out to a range of 5 ft\"+\n\t\"\\n      8-11\\t\\t  30 feet\\t\\tBright light in a 5-ft radius and dim light for an additional 5 ft\"+\n\t\"\\n    12-15\\t\\t  60 feet\\t\\tBright light in a 10-ft radius and dim light for an additional 10 ft\"+\n\t\"\\n    16 or higher\\t 120 feet\\t\\tBright light in a 15-ft radius and dim light for an additional 15 ft\",\n\tweight : 3,\n\tchoices : [\"Intelligence   3-7\", \"Intelligence   8-11\", \"Intelligence 12-15\", \"Intelligence 16 or higher\"],\n\tselfChoosing : function () {\n\t\tvar iInt = Number(What(\"Int\"));\n\t\treturn iInt >= 16 ? \"intelligence 16 or higher\" : iInt >= 12 ? \"intelligence 12-15\" : iInt >= 8 ? \"intelligence   8-11\" : \"intelligence   3-7\";\n\t},\n\t\"intelligence   3-7\" : {\n\t\tname : \"Psi Crystal (Int 3-7)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, dim light out to a range of 5 ft. It also grants me telepathy out to a range of 15 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence   8-11\" : {\n\t\tname : \"Psi Crystal (Int 8-11)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 5-ft radius and dim light for an additional 5 ft. It also grants me telepathy out to a range of 30 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence 12-15\" : {\n\t\tname : \"Psi Crystal (Int 12-15)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 10-ft radius and dim light for an additional 10 ft. It also grants me telepathy out to a range of 60 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence 16 or higher\" : {\n\t\tname : \"Psi Crystal (Int 16+)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 15-ft radius and dim light for an additional 15 ft. It also grants me telepathy out to a range of 120 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t}\n};\nMagicItemsList[\"scroll of tarrasque summoning\"] = { // contains contributions by BraabHimself\n\tname : \"Scroll of Tarrasque Summoning\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"scroll\",\n\trarity : \"legendary\",\n\tdescription : \"Once as an action, I can use this to cause the tarrasque to appear in an unoccupied space I can see within 1 mile. The tarrasque disappears when it drops to 0 hit points and is hostile toward all creatures other than itself.\",\n\tdescriptionFull : \"Using an action to read the scroll causes the tarrasque (see the creature's entry in the Monster Manual) to appear in an unoccupied space you can see within 1 mile of you. The tarrasque disappears when it drops to 0 hit points and is hostile toward all creatures other than itself.\"\n};\nMagicItemsList[\"scroll of the comet\"] = { // contains contributions by BraabHimself\n\tname : \"Scroll of the Comet\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"scroll\",\n\trarity : \"legendary\",\n\tdescription : \"Once as an action outdoors, I can use this to cause a comet to fall on a point I can see within 1 mile, creating a 50-ft deep, 500-ft radius crater. All creatures in the radius take 30d10 force damage and can make a DC 20 Dex save to halve this damage. It destroys all nonmagical objects and structures within the area.\",\n\tdescriptionFull : \"By using an action to read the scroll, you cause a comet to fall from the sky and crash to the ground at a point you can see up to 1 mile away from you. You must be outdoors when you use the scroll, or nothing happens and the scroll is wasted.\"+\n\t\"\\n   The comet creates a 50-foot-deep, 500-foot-radius crater on impact. Any creature in that radius must make a DC 20 Dexterity saving throw, taking 30d10 force damage on a failed saving throw, or half as much damage on a successful one. All structures in the crater are destroyed, as are all nonmagical objects that aren't being worn or held.\"\n};\nMagicItemsList[\"thermal cube\"] = { // contains contributions by BraabHimself\n\tname : \"Thermal Cube\",\n\tsource : [[\"RotF\", 316]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"This 3-inch cube of solid brimstone generates enough dry heat to keep the temperature within 15 ft of it at 95 degrees Fahrenheit.\",\n\tdescriptionFull : \"This 3-inch cube of solid brimstone generates enough dry heat to keep the temperature within 15 feet of it at 95 degrees Fahrenheit (35 degrees Celsius).\"\n};\nMagicItemsList[\"ythryn mythallar\"] = { // contains contributions by BraabHimself\n\tname : \"Ythryn Mythallar\",\n\tsource : [[\"RotF\", 316]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"This 50 ft diameter crystal ball sheds light in a 300 ft radius and dim light for an additional 300 ft. Up to 8 creatures can attune to it at one time, a 9th creature's attunement fails. All those attuned to it can sense when it is used and they all must agree to any properties being used. See Notes page.\",\n\tdescriptionFull : \"A mythallar looks like an enormous crystal ball held in an ornate cradle. The globe sheds bright light in a 300-foot radius and dim light for an additional 300 feet. The globe draws magic from the Weave that can be harnessed for various purposes. For example, Netherese mages used mythallars to keep their cities aloft and empower their magic items. The bigger the mythallar, the more magic it can hold. The largest mythallars are 150 feet in diameter.\"+\n\t\"\\n   The Ythryn mythallar is a relatively small device\\u2014a mere 50 feet in diameter. To attune to this mythallar, a creature must finish a short rest within 30 feet of it, meditating on the mythallar. Up to eight creatures can be attuned to it at one time; otherwise, the Ythryn mythallar follows the attunement rules in the Dungeon Master's Guide. If a ninth creature tries to attune to the mythallar, nothing happens.\"+\n\t\"\\n   All creatures attuned to the Ythryn mythallar can sense when the device is being used. A creature attuned to the device can use any of its properties, but only if all other creatures attuned to the device agree to allow it. The Ythryn mythallar's properties are as follows:\"+\n\t\"\\n    \\u2022 While you're on the same plane of existence as the Ythryn mythallar, you can use an action to cause it to fly in any direction you choose at a speed of 30 feet. All matter within 500 feet of the device moves with it. The Ythryn mythallar and all structures held aloft by it hover in place when not in motion.\"+\n\t\"\\n   \\u2022 As an action, you can cause one magic item you are holding within 30 feet of the Ythryn mythallar to immediately regain all its expended charges or uses. A magic item recharged in this manner can't be recharged by the Ythryn mythallar again until after the item regains expended charges or uses on its own.\"+\n\t\"\\n   \\u2022 You can use the Ythryn mythallar to cast the control weather spell without requiring any components and without the need for you to be outdoors. This casting of the spell has a 50-mile radius. For the duration of the spell's casting time, you must be within 30 feet of the Ythryn mythallar or the spell fails.\"+\n\t\"\\n\" + toUni(\"Touching the Mythallar\") + \". Any creature that touches the globe of the mythallar must make a DC 22 Constitution saving throw, taking 180 (20d10 + 70) radiant damage on a failed save, or half as much damage on a successful one. Undead have disadvantage on this saving throw. Any object that touches the globe, other than an artifact or the mythallar's cradle, is disintegrated instantly (no save).\",\n\ttoNotesPage : [{\n\t\tname : \"Properties\",\n\t\tnote : [\n\t\t\t\"The Ythryn Mythallar is a 50 ft diameter crystal ball that sits on a cradle\",\n\t\t\t\"It has the following properties:\",\n\t\t\t\"\\u2022 Sheds light in a 300 ft radius and dim light for an additional 300 ft\",\n\t\t\t\"\\u2022 Up to 8 creatures can attune to it, a 9th attunement fails\",\n\t\t\t\"\\u2022 To attune, a creature must short rest within 30 ft of it\",\n\t\t\t\"\\u2022 All those attuned to it can sense when sense when it is being used\",\n\t\t\t\"\\u2022 All those attuned must agree to allow any properties to be used\",\n\t\t\t\"\\u2022 You can use an action to use the Ythryn Mythallar in the following ways:\",\n\t\t\t\"  \\u25E6 While on the same plane, give it a flying speed of 30 ft\",\n\t\t\t\"    All matter within 500 ft of it moves with it\",\n\t\t\t\"    The ball and all structures held aloft by it hover in place when not in motion\",\n\t\t\t\"  \\u25E6 Cause one magic item to regain all charges/uses\",\n\t\t\t\"    I must be within 30 ft of the ball and holding the item\",\n\t\t\t\"    It cannot be recharged again until all charges/uses are expended\",\n\t\t\t\"  \\u25E6 Cast the control weather spell without components or spell slots\",\n\t\t\t\"    It has a radius of 50 miles and can be cast inside\",\n\t\t\t\"    I must be within 30 ft of the ball for the casting time, or it will fail\",\n\t\t\t\"\\nTOUCHING THE MYTHALLAR\",\n\t\t\t\"Any creature that touches the ball must make a DC 22 Constitution save\",\n\t\t\t\"On a failure, they take 20d10 + 70 radiant damage, or half that on a success\",\n\t\t\t\"Undead have disadvantage on this saving throw\",\n\t\t\t\"Objects touching the ball, except artifacts or the cradle, disintegrate instantly\"\n\t\t]\n\t}]\n};\nMagicItemsList[\"the codicil of white\"] = {\n\tname : \"The Codicil of White\",\n\tsource : [[\"RotF\", 317]],\n\ttype : \"wondrous item\",\n\trarity : \"\",\n\tnotLegalAL : true,\n\tdescription : 'This volume bound in white fur, sealed with a silver lock, containing velum pages with silver edges is cold to the touch. While I have this tome in my possession, I gain resistance to cold damage. It contains the Frost Fingers spell which a wizard can learn and a poem incantation \"Rime of the Frostmaiden\".',\n\tdescriptionFull : \"The Codicil of White is a tall, thin volume bound in white ermine fur over seasoned boards of white pine and sealed with a clasp and lock of tarnished silver. The book is cold to the touch, and the fur is worn about the edges from use. The twenty-seven pages within are of vellum painted with silver gilt on the outer edges. The whole is sewn to a leather binding with strips of sinews, making it quite durable.\"+\n\t\"\\n   A creature with the codicil in its possession has resistance to cold damage.\"+\n\t\"\\n   The codicil was written by followers of Auril as a primer on her worship. The first page is a title page with the snowflake symbol of Auril on it. The remaining pages describe various priestly rituals and ceremonies in chilling detail. Nestled among these descriptions is a spell that wizards can learn (frost fingers, and a poem called \\\"Rime of the Frostmaiden\\\", see appendix E of Icewind Dale: Rime of the Frostmaiden). The poem is an incantation, the power of which can be used to split a glacier (see chapter 6 of Icewind Dale: Rime of the Frostmaiden). The poem might have other capabilities, at the DM's discretion\",\n\tdmgres : [\"Cold\"],\n\tweight : 3\n};\n// Spells\nSpellsList[\"blade of disaster\"] = {\n\tname : \"Blade of Disaster\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"T\", 106], [\"RotF\", 318]],\n\tlevel : 9,\n\tschool : \"Conj\",\n\ttime : \"1 bns\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"Create weapon; 2 spell atks 4d12 Force dmg; crit on 18+, triple dmg; bns a to move 30 ft \\u0026 do 2 atks\",\n\tdescriptionShorter : \"Create wea; 2 spell atks 4d12 Force dmg; crit 18+, triple dmg; bns a to move 30 ft \\u0026 2 atks\",\n\tdescriptionFull : \"You create a blade-shaped planar rift about 3 feet long in an unoccupied space you can see within range. The blade lasts for the duration. When you cast this spell, you can make up to two melee spell attacks with the blade, each one against a creature, loose object, or structure within 5 feet of the blade. On a hit, the target takes 4d12 force damage. This attack scores a critical hit if the number on the d20 is 18 or higher. On a critical hit, the blade deals an extra 8d12 force damage (for a total of 12d12 force damage).\"+\n\t\"\\n   As a bonus action on your turn, you can move the blade up to 30 feet to an unoccupied space you can see and then make up to two melee spell attacks with it again.\"+\n\t\"\\n   The blade can harmlessly pass through any barrier, including a wall of force.\"\n};\nSpellsList[\"create magen\"] = { // contains contributions by BraabHimself\n\tname : \"Create Magen\",\n\tsource : [[\"RotF\", 318]],\n\tclasses : [\"wizard\"],\n\tlevel : 7,\n\tschool : \"Trans\",\n\ttime : \"1 h\",\n\trange : \"Touch\",\n\tcomponents : \"V,S,M\\u2020\",\n\tcompMaterial : \"A vial of quicksilver worth 500 gp and a life-sized human doll, both of which the spell consumes, and an intricate crystal rod worth at least 1,500 gp that is not consumed\",\n\tduration : \"Instantaneous\",\n\tdescription : \"Transform doll into magen (500gp cons.); obeys me; my HP max reduced by its CR; see book (1.5k gp)\",\n\tdescriptionFull : \"While casting the spell, you place a vial of quicksilver in the chest of a life-sized human doll stuffed with ash or dust. You then stitch up the doll and drip your blood on it. At the end of the casting, you tap the doll with a crystal rod, transforming it into a magen clothed in whatever the doll was wearing. The type of magen is chosen by you during the casting of the spell. See appendix C for different kinds of magen and their statistics.\"+\n\t\"\\n   When the magen appears, your hit point maximum decreases by an amount equal to the magen's challenge rating (minimum reduction of 1). Only a wish spell can undo this reduction to your hit point maximum.\"+\n\t\"\\n   Any magen you create with this spell obeys your commands without question.\"\n};\nSpellsList[\"frost fingers\"] = { // contains contributions by BraabHimself\n\tname : \"Frost Fingers\",\n\tsource : [[\"RotF\", 318]],\n\tclasses : [\"wizard\"],\n\tlevel : 1,\n\tschool : \"Evoc\",\n\ttime : \"1 a\",\n\trange : \"S:15\" + (typePF ? \"-\" : \"\") + \"ft cone\",\n\tcomponents : \"V,S\",\n\tduration : \"Instantaneous\",\n\tsave : \"Con\",\n\tdescription : \"All in area 2d8+1d8/SL Cold dmg; save halves; unattended nonmagical liquids freeze\",\n\tdescriptionFull : \"Freezing cold blasts from your fingertips in a 15-foot cone. Each creature in that area must make a Constitution saving throw, taking 2d8 cold damage on a failed save, or half as much damage on a successful one.\"+\n\t\"\\n   The cold freezes nonmagical liquids in the area that aren't being worn or carried.\"+\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\n};\n\n// pub_20201117-2_TCoE-sidekicks.js\r\n// This file adds the sidekick classes from Tasha's Cauldron of Everything (p142-147) to MPMB's Character Record Sheet\r\n\r\n/* - NOTICE -\r\n\tThese sidekick classes are available as normal classes because the sheet doesn't support classes for the companion page\r\n\r\n\tThese classes are excluded by default so that they aren't confused with normal classes\r\n\r\n\tThe base 1/2 CR creature will have to be added manually\r\n\tIt would be too complex and messy to add them all as racial options\r\n*/\r\n\r\n// Define the source, if it doesn't yet exist\r\nif (!SourceList.T) {\r\n\tSourceList.T = {\r\n\t\tname : \"Tasha's Cauldron of Everything\",\r\n\t\tabbreviation : \"TCoE\",\r\n\t\tabbreviationSpellsheet : \"T\",\r\n\t\tgroup : \"Primary Sources\",\r\n\t\turl : \"https://dnd.wizards.com/products/tashas-cauldron-everything\",\r\n\t\tdate : \"2020/11/17\"\r\n\t};\r\n}\r\n\r\n// Define some functions here, so we an use them for all sidekick classes without duplication\r\nglobal_TCoE_Sidekick_fn = {\r\n\t// prereqeval runs before any of the other class stuff is added, so we can even modify the ClassList object with it to set the HD\r\n\tprereqeval : function(v) {\r\n\t\tvar sClass = v['class'];\r\n\t\tvar sSubclass = v.subclass;\r\n\t\tvar sClassOld = CurrentVars.sidekickDialogShown === undefined ? false : CurrentVars.sidekickDialogShown[0];\r\n\t\t// If we already did this function for this (sub)class, stop now\r\n\t\tif (CurrentVars.sidekickDialogShown && CurrentVars.sidekickDialogShown[0] === sClass && (!CurrentVars.sidekickDialogShown[1] || CurrentVars.sidekickDialogShown[1] === sSubclass)) {\r\n\t\t\t// if no subclass was defined when previously calling this, but now there is one selected, add that to the CurrentVars\r\n\t\t\tif (!CurrentVars.sidekickDialogShown[1] && sSubclass) {\r\n\t\t\t\tCurrentVars.sidekickDialogShown[1] = sSubclass;\r\n\t\t\t\tSetStringifieds(\"vars\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// Tell the player what is about to happen and give an option to opt-out\r\n\t\tvar sClassName = ClassList[sClass].name.replace(/\\(?sidekick\\)?/i, '').trim();\r\n\t\tvar warningMsg = {\r\n\t\t\tnIcon : 3, // Status\r\n\t\t\tnType : 2, // Yes,No\r\n\t\t\tcTitle : \"Creating a Sidekick Works Differently\",\r\n\t\t\tcMsg : \"You are about to create a character with a \" + sClassName + \" sidekick class. Sidekick classes use the rules as described in Tasha's Cauldron of Everything, page 142. As this character sheet is intended for regular, non-sidekick classes, some changes will be made that you need to be aware off:\"\r\n\t\t};\r\n\t\tvar lineNo = 1;\r\n\t\t[\r\n\t\t\t\"A sidekick class is added to a creature of CR 1/2 or lower. Before continuing, lookup the stat block of the base creature you would like to use. You will have to manually enter its:\"+\r\n\t\t\t\t\"\\n   \\u2022 Ability scores\"+\r\n\t\t\t\t\"\\n   \\u2022 Proficiencies for: skills, saving throws, weapons, armor, languages, and tools\"+\r\n\t\t\t\t\"\\n   \\u2022 Attacks (tip: use Modifier fields for attacks that aren't weapons/cantrips)\"+\r\n\t\t\t\t\"\\n   \\u2022 Hit dice (you will be prompted to enter)\",\r\n\t\t\t\tsClass.indexOf('warrior') !== -1 ? false : 'To gain either the Expert of Spellcaster sidekick class, a creature must have at least one language in its stat block that it can speak.',\r\n\t\t\t'If you continue, the race and background automation will be turned off and the respective fields emptied. You can use these fields to enter the name and type of the base creature.'+\r\n\t\t\t\t'\\nFor example. when using the bandit stat block, you could enter:'+\r\n\t\t\t\t'\\n   \\u2022 Race: Elf'+\r\n\t\t\t\t'\\n   \\u2022 Background: Bandit'+\r\n\t\t\t\t'\\nYou can turn the automation back on with the \"Auto/Manual\" bookmark.',\r\n\t\t\t\"Sidekicks don't use experience points, but gain levels as the average level of the group goes up. Thus, simply ignore the experience points box and change the level when needed.\",\r\n\t\t\t\"Sidekick classes can't multiclass and haven't been tested to work that way.\"\r\n\t\t].forEach(function (line) {\r\n\t\t\tif (!line) return;\r\n\t\t\twarningMsg.cMsg += \"\\n\\n\" + lineNo + \". \" + line;\r\n\t\t\tlineNo++;\r\n\t\t});\r\n\t\twarningMsg.cMsg += \"\\n\\n\\n>>> Do you want to continue making a sidekick? <<<\";\r\n\t\twarningMsg.cMsg += \"\\n\\nIf you select 'No', the \" + v.classlevel + \" level(s) of this class will be counted towards the total character level, but none of its features will be added.\";\r\n\t\tif (app.alert(warningMsg) !== 4) return 'skip';\r\n\t\t// Save that this dialog has been shown\r\n\t\tCurrentVars.sidekickDialogShown = [sClass, sSubclass];\r\n\t\t// Remove race and background, and set them to manual\r\n\t\tglobal_TCoE_Sidekick_fn.manualRaceBackground();\r\n\t\t// if the sidekick HD is already defined, delete those HD first before applying the new one\r\n\t\tif (CurrentVars.sidekickHD && sClassOld && classes.old[sClassOld]) {\r\n\t\t\tglobal_TCoE_Sidekick_fn.eval([classes.old[sClassOld].classlevel, 0], false, false, true);\r\n\t\t};\r\n\t\t// Ask the player to enter the number and type of HD the creature has in its stat block\r\n\t\tCurrentVars.sidekickHD = AskUserOptions(\r\n\t\t\t\"Set Base Creature Hit Dice\", // title\r\n\t\t\t\"Enter the number and type of hit dice that the chosen base creature has in its stat block (i.e. without bonuses from sidekick levels).\\nThe sidekick will gain 1 extra HD for each level it gains after the first.\", // top explanation\r\n\t\t\t['Number of hit dice, for example \"2\"', 'Size of the hit dice, for example \"d8\"'],\r\n\t\t\tfalse, true,\r\n\t\t\t\"Be aware that you *can't* change the *size* of the hit die (e.g. d8) at a later time. To do that, you will have to first remove the sidekick class completely.\\n\\nHowever, you *can* change the *number* of hit dice manually by editing the appropriate field.\" // bottom explanation\r\n\t\t).map(function (n, idx) {\r\n\t\t\tvar a = n.replace(/.*?(\\d+).*/, \"$1\");\r\n\t\t\treturn !isNaN(a) ? Number(a) : idx === 0 ? 2 : 8;\r\n\t\t});\r\n\t\tClassList[sClass].die = CurrentVars.sidekickHD[1];\r\n\t\tCurrentClasses[sClass].die = CurrentVars.sidekickHD[1];\r\n\t\tSetStringifieds(\"vars\");\r\n\t},\r\n\t// Change the race and background to manual or auto\r\n\tmanualRaceBackground : function(bAuto) {\r\n\t\tif (bAuto && (CurrentVars.manual.background || CurrentVars.manual.race)) {\r\n\t\t\t// set to automatic\r\n\t\t\tif (CurrentVars.manual.background) {\r\n\t\t\t\tValue(\"Background\", \"\");\r\n\t\t\t\tSetToManual_Dialog.mBac = false;\r\n\t\t\t}\r\n\t\t\tif (CurrentVars.manual.race) {\r\n\t\t\t\tValue(\"Race\", \"\");\r\n\t\t\t\tSetToManual_Dialog.mRac = false;\r\n\t\t\t}\r\n\t\t\tSetToManual_Button(true);\r\n\t\t} else if (!bAuto) {\r\n\t\t\t// set to manual\r\n\t\t\tif (CurrentVars.manual.race || CurrentVars.manual.background || CurrentVars.manual.backgroundFeature) {\r\n\t\t\t\t// if currently already set to manual, set to auto before emptying the fields\r\n\t\t\t\tIsNotImport = false;\r\n\t\t\t\tignorePrereqs = true;\r\n\t\t\t\tSetToManual_Dialog.mBac = false;\r\n\t\t\t\tSetToManual_Dialog.mBFe = false;\r\n\t\t\t\tSetToManual_Dialog.mRac = false;\r\n\t\t\t\tSetToManual_Button(true);\r\n\t\t\t\tIsNotImport = true;\r\n\t\t\t\tignorePrereqs = false;\r\n\t\t\t};\r\n\t\t\t// Remove the race and background\r\n\t\t\tif (CurrentRace.known) Value(\"Race\", \"\");\r\n\t\t\tif (CurrentBackground.known) Value(\"Background\", \"\");\r\n\t\t\t// Set race and background to manual\r\n\t\t\tSetToManual_Dialog.mRac = true;\r\n\t\t\tSetToManual_Dialog.mBac = true;\r\n\t\t\tSetToManual_Button(true);\r\n\t\t}\r\n\t},\r\n\t// When removing a sidekick class, return some stuff to normal\r\n\tremoveeval : function(lvl) {\r\n\t\t// This could be called after the dialog was shown for another sidekick, so check if there is actually something to do\r\n\t\tvar sClass = CurrentVars.sidekickDialogShown ? CurrentVars.sidekickDialogShown[0] : false;\r\n\t\tvar sSubclass = CurrentVars.sidekickDialogShown ? CurrentVars.sidekickDialogShown[1] : false;\r\n\t\tif (!sClass || !classes.known[sClass] || classes.known[sClass].level ||\r\n\t\t\t(classes.old[sClass] && classes.old[sClass].subclass && classes.old[sClass].subclass !== sSubclass)\r\n\t\t\t) return;\r\n\t\t// Remove the extra sidekickHD and delete it from the CurrentVars\r\n\t\tglobal_TCoE_Sidekick_fn.eval(lvl, false, false, true);\r\n\t\tdelete CurrentVars.sidekickHD;\r\n\t\tdelete CurrentVars.sidekickDialogShown;\r\n\t\tSetStringifieds(\"vars\");\r\n\t\t// Reset race and background to auto (if not already)\r\n\t\tglobal_TCoE_Sidekick_fn.manualRaceBackground(true);\r\n\t},\r\n\t// After the HD has been set, we still need to enter the bonus HD, if any (this can't be done with the prereqeval)\r\n\teval : function(lvl, chc, undef, bRemove) {\r\n\t\tvar hd = CurrentVars.sidekickHD;\r\n\t\tvar extraHD = hd[0] - 1;\r\n\t\tif (isNaN(extraHD) || extraHD < 1) return;\r\n\t\tvar totalHD = bRemove ? lvl[0] : lvl[1] + extraHD;\r\n\t\tvar expectedHD = bRemove ? lvl[0] + extraHD : lvl[1];\r\n\t\t// Add the extra HD to the field\r\n\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\tvar dieFld = \"HD\" + i + \" Die\";\r\n\t\t\tvar lvlFld = \"HD\" + i + \" Level\";\r\n\t\t\tif (What(dieFld) == hd[1] && What(lvlFld) == expectedHD) {\r\n\t\t\t\tValue(lvlFld, totalHD);\r\n\t\t\t\tCurrentUpdates.types.push(\"hp\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges_hp : function (totalHD, HDobj) {\r\n\t\t// remove 1st level max (and change its average and fixed value to reflect this change)\r\n\t\tvar hd = CurrentVars.sidekickHD[1];\r\n\t\tvar matchRegex = RegExp('(\\\\d+)(d' + hd + ' \\\\()(\\\\d+\\\\.?\\\\d+?)\\\\)');\r\n\t\tvar match = HDobj.dieStr[1] ? HDobj.dieStr[1].match(matchRegex) : false;\r\n\t\tif (!match) return;\r\n\t\tvar hdAverage = hd / 2 + 0.5;\r\n\t\tvar hdFixed = Math.ceil(hdAverage);\r\n\t\tHDobj.dieStr.shift();\r\n\t\tHDobj.average += hdAverage - hd;\r\n\t\tHDobj.fixed += hdFixed - hd;\r\n\t\tHDobj.dieStr[0] = HDobj.dieStr[0].replace(matchRegex, (Number(match[1]) + 1) + match[2] + (Number(match[3]) + hdAverage) + \") [sidekicks don't get max for 1st level]\");\r\n\t},\r\n\tspellcasting_additional : levels.map(function (n, idx) {\r\n\t\tvar cantr = [2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4][idx];\r\n\t\tvar splls = [1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11][idx];\r\n\t\treturn cantr + \" cantrips \\u0026 \" + splls + \" spells known\";\r\n\t})\r\n}\r\n\r\n// Add the three classes\r\nClassList[\"sidekick-expert-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*expert)(?=.*sidekick).*$/i,\r\n\tname : \"Expert (sidekick)\",\r\n\tsource : [[\"T\", 143]],\r\n\tprimaryAbility : \"Dexterity, Intelligence, or Charisma\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 10 ? 2 : n < 12 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose any five skills\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1],\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"The Spellcaster and Expert classes can only apply to creatures that can speak a language\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Dex, Int, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dexterity\", \"Intelligence\", \"Charisma\"],\r\n\t\t\t\"dexterity\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Dexterity Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Dexterity saving throws\"),\r\n\t\t\t\tsaves : [\"Dex\"]\r\n\t\t\t},\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Intelligence Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"]\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Charisma Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with light armor and in five skills of my choice\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and in five skills of my choice\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with two tools of my choice and with all simple weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tweaponProfs : [true, false],\r\n\t\t\t\ttoolProfs : [[\"Tool of my choice\", 2]]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with light armor and in five skills of my choice\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"helpful\" : {\r\n\t\t\tname : \"Helpful\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I can use a bonus action to take the Help action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"cunning action\" : {\r\n\t\t\tname : \"Cunning Action\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I can use a bonus action to take the Dash, Disengage, or Hide action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"expertise\" : function() {\r\n\t\t\tvar a = {\r\n\t\t\t\tname : \"Expertise\",\r\n\t\t\t\tsource : [[\"T\", 143]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain expertise with two skills I am proficient with\",\r\n\t\t\t\t\t\"At level 15th, I gain expertise with two more skills I am proficient with\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Expertise with any two skill proficiencies, two more at level 15th\",\r\n\t\t\t\textraname : \"Expertise\",\r\n\t\t\t\textrachoices : [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\r\n\t\t\t\textraTimes : levels.map(function (n) { return n < 3 ? 0 : n < 15 ? 2 : 4; })\r\n\t\t\t}\r\n\t\t\tfor (var i = 0; i < a.extrachoices.length; i++) {\r\n\t\t\t\tvar attr = a.extrachoices[i].toLowerCase();\r\n\t\t\t\ta[attr] = {\r\n\t\t\t\t\tname : a.extrachoices[i] + \" Expertise\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tsource : a.source,\r\n\t\t\t\t\tskills : [[a.extrachoices[i], \"only\"]],\r\n\t\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? false : v.skillExpertiseLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn a;\r\n\t\t}(),\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 10th, 12th, 16th, and 19th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 10 ? 2 : n < 12 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"coordinated strike\" : {\r\n\t\t\tname : \"Coordinated Strike\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use Helpful to aid an ally to attack a creature up to 30 ft away from me\",\r\n\t\t\t\t\"If I do so, I add +2d6 damage on my next attack to that creature in the current turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"evasion\" : {\r\n\t\t\tname : \"Evasion\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If an effect allows me to make a Dex save for half damage, I take no damage on a success\",\r\n\t\t\t\t\"Also, I only take half damage on a failed save; I can't do this while incapacitated\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { text : [\"Dex save vs. area effects: fail \\u2015 half dmg, success \\u2015 no dmg\"] }\r\n\t\t},\r\n\t\t\"inspiring help\" : {\r\n\t\t\tname : \"Inspiring Help\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use the Help action, the creature that receives the help adds +1d6 to its d20 roll\",\r\n\t\t\t\t\"If it was an attack roll that hits without the +1d6, it can add it to the damage instead\",\r\n\t\t\t\t\"At 20th level, this bonus increases to 2d6\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : \"+\" + (n < 20 ? 1 : 2) + \"d6 bonus\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"reliable talent\" : {\r\n\t\t\tname : \"Reliable Talent\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"If I make an ability check where I add my proficiency bonus, rolls of 9 or lower are 10\")\r\n\t\t},\r\n\t\t\"sharp mind\" : {\r\n\t\t\tname : \"Sharp Mind\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc('Choose Int, Wis, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Sharp Mind: Intelligence\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Int ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t},\r\n\t\t\t\"wisdom\" : {\r\n\t\t\t\tname : \"Sharp Mind: Wisdom\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Wisdom saving throws\"),\r\n\t\t\t\tsaves : [\"Wis\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Wis ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Sharp Mind: Charisma\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Cha ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nClassList[\"sidekick-spellcaster-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*(spellcaster|mage|healer|prodigy))(?=.*sidekick).*$/i,\r\n\tname : \"Spellcaster (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tprimaryAbility : \"Intelligence, Wisdom, or Charisma\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 12 ? 2 : n < 16 ? 3 : n < 18 ? 4 : 5;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"Spellcaster's Role\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 2,\r\n\tspellcastingTable : ClassList.artificer && ClassList.artificer.spellcastingTable ? ClassList.artificer.spellcastingTable : [[0, 0, 0, 0, 0, 0, 0, 0, 0]].concat(levels.map(function (n) {\r\n\t\treturn defaultSpellTable[Math.ceil(n / 2)];\r\n\t})),\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells :   [1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"The Spellcaster and Expert classes can only apply to creatures that can speak a language\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Int, Wis, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Intelligence Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"]\r\n\t\t\t},\r\n\t\t\t\"wisdom\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Wisdom Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Wisdom saving throws\"),\r\n\t\t\t\tsaves : [\"Wis\"]\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Charisma Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with all simple weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tweaponProfs : [true, false]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcaster's Role\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose the role of the sidekick, mage, healer, or prodigy, and put it in the \"Class\" field')\r\n\t\t},\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 12th, 16th, and 18th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 12 ? 2 : n < 16 ? 3 : n < 18 ? 4 : 5) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"potent cantrips\" : {\r\n\t\t\tname : \"Potent Cantrips\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"I add my spellcasting ability modifier to the damage I deal with any cantrip\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave) return;\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1] + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod > 0 && v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0) {\r\n\t\t\t\t\t\t\toutput.extraDmg += spAbiMod;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave || spellObj.psionic || spellObj.level !== 0) return;\r\n\t\t\t\t\t\tvar spAbi = AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1];\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(spAbi + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod < 1) return;\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", spAbi);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"empowered spells\" : {\r\n\t\t\tname : \"Empowered Spells\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Select one of the eight schools of magic using the \"Choose Feature\" button above',\r\n\t\t\t\t\"Whenever I cast a spell from the selected school by expending a spell slot, I empower it\",\r\n\t\t\t\t\"I add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tvar spSchool = GetFeatureChoice(\"classes\", \"sidekick-spellcaster-tcoe\", \"empowered spells\");\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave || !spSchool || spellObj.psionic || !spellObj.level) return;\r\n\t\t\t\t\t\tfor (var aSchl in spellSchoolList) {\r\n\t\t\t\t\t\t\tif (spellSchoolList[aSchl] == spSchool) {\r\n\t\t\t\t\t\t\t\tspSchool = aSchl;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (spellObj.school !== spSchool) return;\r\n\t\t\t\t\t\tvar spAbi = AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1];\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(spAbi + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod < 1) return;\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", spAbiMod, true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", spAbiMod, true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Spells from my selected school cast by expending a spell slot get my spellcasting ability modifier added to their damage or healing rolls.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"Abjuration\", \"Conjuration\", \"Divination\", \"Enchantment\", \"Evocation\", \"Illusion\", \"Necromancy\", \"Transmutation\"],\r\n\t\t\t\"abjuration\" : {\r\n\t\t\t\tname : \"Empowered Abjurations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast an abjuration spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"conjuration\" : {\r\n\t\t\t\tname : \"Empowered Conjurations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a conjuration spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"divination\" : {\r\n\t\t\t\tname : \"Empowered Divinations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a divination spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"enchantment\" : {\r\n\t\t\t\tname : \"Empowered Enchantments\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a enchantment spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"evocation\" : {\r\n\t\t\t\tname : \"Empowered Evocations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a evocation spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"illusion\" : {\r\n\t\t\t\tname : \"Empowered Illusions\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast an illusion spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"necromancy\" : {\r\n\t\t\t\tname : \"Empowered Necromancy\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a necromancy spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"transmutation\" : {\r\n\t\t\t\tname : \"Empowered Transmutations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a transmutation spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"focused casting\" : {\r\n\t\t\tname : \"Focused Casting\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc(\"Taking damage can't break my concentration on a spell\")\r\n\t\t}\r\n\t}\r\n}\r\nClassList[\"sidekick-warrior-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*warrior)(?=.*sidekick).*$/i,\r\n\tname : \"Warrior (sidekick)\",\r\n\tsource : [[\"T\", 146]],\r\n\tprimaryAbility : \"Strength, Dexterity, or Constitution\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 12 ? 2 : n < 14 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, true, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3],\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Str, Dex, or Con save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\"],\r\n\t\t\t\"strength\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Strength Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Strength saving throws\"),\r\n\t\t\t\tsaves : [\"Str\"]\r\n\t\t\t},\r\n\t\t\t\"dexterity\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Dexterity Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Dexterity saving throws\"),\r\n\t\t\t\tsaves : [\"Dex\"]\r\n\t\t\t},\r\n\t\t\t\"constitution\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Constitution Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Constitution saving throws\"),\r\n\t\t\t\tsaves : [\"Con\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with shields and all simple and martial weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tarmorProfs : [false, false, false, true],\r\n\t\t\t\tweaponProfs : [true, true]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"martial role\" : {\r\n\t\t\tname : \"Martial Role\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose a Martial Role for the warrior using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Attacker\", \"Defender\"],\r\n\t\t\t\"attacker\" : {\r\n\t\t\t\tname : \"Martial Role: Attacker\",\r\n\t\t\t\tdescription : desc(\"I gain a +2 bonus to all my attack rolls\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (!v.isDC) output.extraHit += 2;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add a +2 bonus on the To Hit of all my attack rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"defender\" : {\r\n\t\t\t\tname : \"Martial Role: Defender\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction, I can give disadv. on an attack made vs. someone within 5 ft of me\",\r\n\t\t\t\t\t\"I need to be able to see the attacker to do this\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"second wind\" : {\r\n\t\t\tname : \"Second Wind\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can regain hit points equal to 1d10 + warrior level\",\r\n\t\t\t\t\"I can use this once per short rest (twice at 20th-level)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn \"1d10+\" + n;\r\n\t\t\t}),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n < 20 ? 1 : 2 }),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"improved critical\" : {\r\n\t\t\tname : \"Improved Critical\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I score a critical hit with my weapon attacks on a roll of 19 and 20\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && !v.isSpell && !v.CritChance && classes.known[\"sidekick-warrior\"]) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My weapon attacks score a critical on a to hit roll of both 19 and 20.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 12th, 14th, 16th, and 19th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 12 ? 2 : n < 14 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"extra attack\" : {\r\n\t\t\tname : \"Extra Attack\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can attack twice, instead of once, whenever I take the Attack action on my turn\",\r\n\t\t\t\t\"This increases to three at 15th level\",\r\n\t\t\t\t\"If I have the Multiattack action, I can use either that or extra attack on a turn, not both\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : (n < 15 ? 1 : 3) + \" attacks as an action on my turn\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"battle readiness\" : {\r\n\t\t\tname : \"Battle Readiness\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"I have advantage on my Initiative rolls\"),\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"improved defense\" : {\r\n\t\t\tname : \"Improved Defense\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"I gain a +1 bonus to AC\"),\r\n\t\t\textraAC : { mod : 1 }\r\n\t\t},\r\n\t\t\"indomitable\" : {\r\n\t\t\tname : \"Indomitable\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can reroll a failed saving throw, but must keep the new result\",\r\n\t\t\t\t\"I can use this once per long rest (twice at 20th-level)\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 11 ? \"\" : n < 20 ? 1 : 2 }),\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// Add three subclasses to the spellcaster sidekick\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"mage\", {\r\n\tregExpSearch : /^(?=.*mage)(?=.*sidekick).*$/i,\r\n\tsubname : \"Mage\",\r\n\tfullname : \"Spellcaster: Mage (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 4,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast wizard cantrips/spells I know, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"I can use an arcane focus as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"healer\", {\r\n\tregExpSearch : /^(?=.*healer)(?=.*sidekick).*$/i,\r\n\tsubname : \"Healer\",\r\n\tfullname : \"Spellcaster: Healer (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 5,\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"druid\"],\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast cleric and druid cantrips/spells I know, using Wisdom as my spellcasting ability\",\r\n\t\t\t\t\"I can use a holy symbol or druidic focus as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"prodigy\", {\r\n\tregExpSearch : /^(?=.*prodigy)(?=.*sidekick).*$/i,\r\n\tsubname : \"Prodigy\",\r\n\tfullname : \"Spellcaster: Prodigy (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 6,\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"bard\", \"warlock\"],\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast bard and warlock cantrips/spells I know, using Cha as my spellcasting ability\",\r\n\t\t\t\t\"I can use an arcane focus or musical instrument as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\n\n// pub_20201117_TCoE.js\r\n// This file adds the content from Tasha's Cauldron of Everything to MPMB's Character Record Sheet\r\n\r\n/*\tACKNOWLEDGEMENTS\r\n\tThis file contains contributions from many different people over on the /r/mpmb subreddit and\r\n\tthe MPMB Discord server.\r\n\r\n\tMany contributions have been reworked by Safety-Orange to fix bugs, make texts more uniform,\r\n\tadhere to MPMB's standards, and/or adhere to the latest syntax version.\r\n\tCombined with the fact that many contributions haven't been individually tracked (on GitHub),\r\n\tit is no longer possible to assign specific additions to a single person.\r\n\r\n\tInstead, here is a list of people (account names on GitHub) who made contributions,\r\n\thelped collect materials, or were otherwise essential to this script coming to fruition,\r\n\tin no particular order:\r\n\t\t- Nod_Hero#2046 (Discord)\r\n\t\t- Smashman\r\n\t\t- Metacomet10\r\n\t\t- BraabHimself\r\n\t\t- AelarTheElfRogue\r\n\t\t- uhohspaghetti0\r\n\t\t- Undrhil\r\n\t\t- easyboy\r\n\t\t- SoggieWafflz\r\n\t\t- phelot\r\n\t\t- Cosaur\r\n\t\t- remcovandalen\r\n\t\t- Seneschal55\r\n\t\t- Gam90\r\n\t\t- CountVladmir\r\n\t\t- alastairmarchant\r\n\t\t- edimshuffling\r\n\t\t- githubtkompare\r\n\t\t- Holynight6\r\n\t\t- lizrdgizrd\r\n\r\n\tThink you're missing from this list? Please let me know!\r\n*/\r\n\r\n// Define the source\r\nSourceList.T = {\r\n\tname : \"Tasha's Cauldron of Everything\",\r\n\tabbreviation : \"TCoE\",\r\n\tabbreviationSpellsheet : \"T\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/tashas-cauldron-everything\",\r\n\tdate : \"2020/11/17\"\r\n};\r\n\r\n// Add Custom Lineage\r\nRaceList[\"custom lineage\"] = {\r\n\tregExpSearch : /^(?=.*custom)(?=.*lineage).*$/i,\r\n\tname : \"Custom lineage\",\r\n\tsource : [[\"T\", 8]],\r\n\tplural : \"Custom lineages\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscorestxt : \"+2 to one ability score of my choice\",\r\n\teval : function() { AddString('Feat Note 1', 'Custom lineage bonus feat', '; '); },\r\n\tremoveeval : function() { RemoveString('Feat Note 1', 'Custom lineage bonus feat'); },\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I gain either darkvision with a range of 60 ft or proficiency with a skill of my choice. Use the Racial Options button to select either one.\"\r\n\t])\r\n};\r\nAddRacialVariant(\"custom lineage\", \"darkvision\", {\r\n\tregExpSearch : /darkvision/i,\r\n\tsource : [[\"T\", 8]],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I have darkvision with a range of 60 ft.\"\r\n\t])\r\n});\r\nAddRacialVariant(\"custom lineage\", \"skill proficiency\", {\r\n\tregExpSearch : /skill proficiency/i,\r\n\tsource : [[\"T\", 8]],\r\n\tskillstxt : \"Choose any one skill\",\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I have proficiency with a skill of my choice.\"\r\n\t])\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Artificer Class >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// New Artificer Infusions\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Arcane Propulsion Armor (prereq: level 14 artificer)\", {\r\n\tname : \"Arcane Propulsion Armor\",\r\n\tsource : [[\"T\", 20]],\r\n\tdescription : desc([\r\n\t\t\"The armor replaces any missing limbs of the wearer and can't be removed against its will\",\r\n\t\t\"It increases the wearer's walking speed by 5 ft; Its gauntlet can be used as melee weapons\"\r\n\t]),\r\n\tadditional : \"suit of armor; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 14; },\r\n\tmagicitemsAdd : [\"Arcane Propulsion Armor\"]\r\n});\r\nMagicItemsList[\"arcane propulsion armor\"] = {\r\n\tname : \"Arcane Propulsion Armor\",\r\n\tnameTest : /arcane.propulsion.*armou?r/i,\r\n\tsource : [[\"T\", 20]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\tdescriptionFull : \"The wearer of this armor gains these benefits:\\n \\u2022 The wearer's walking speed increases by 5 feet.\\n \\u2022 The armor includes gauntlets, each of which is a magic melee weapon that can be wielded only when the hand is holding nothing. The wearer is proficient with the gauntlets, and each one deals 1d8 force damage on a hit and has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When thrown, the gauntlet detaches and flies at the attack's target, then immediately returns to the wearer and reattaches.\\n \\u2022 The armor can't be removed against the wearer's will.\\n \\u2022 If the wearer is missing any limbs, the armor replaces those limbs\\u2014hands, arms, feet, legs, or similar appendages. The replacements function identically to the body parts they replace.\",\r\n\tdescription : \"This armor replaces any missing limbs, increases my walking speed by 5 ft, and can't be removed against my will. I can use either empty-handed gauntlet as a proficient melee weapon with the thrown property. After a throwing attack with a gauntlet, it returns and reattaches immediately.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Arcane Propulsion\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Arcane Propulsion\"]\r\n\t},\r\n\tspeed : { walk : { spd : \"+5\", enc : \"+5\" } },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arcane)(?=.*propulsion)(?=.*gauntlet).*$/i,\r\n\t\tname : \"Arcane Propulsion Gauntlets\",\r\n\t\tsource : [[\"T\", 20]],\r\n\t\tability : 1,\r\n\t\ttype : \"AlwaysProf\",\r\n\t\tdamage : [1, 8, \"force\"],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Thrown; Returns immediately after thrown\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Magical Strength\", {\r\n\tname : \"Armor of Magical Strength\",\r\n\tsource : [[\"T\", 20]],\r\n\tdescription : desc([\r\n\t\t\"The armor has 6 charges, regaining 1d6 expended charges daily at dawn\",\r\n\t\t\"As a reaction when being knocked prone, the wearer can use 1 charge to not be prone\",\r\n\t\t\"When making a Str check/save, the wearer can use 1 charge to add its Int mod to the roll\"\r\n\t]),\r\n\tadditional : \"suit of armor; requires attunement\",\r\n\tmagicitemsAdd : [\"Armor of Magical Strength\"]\r\n});\r\nMagicItemsList[\"armor of magical strength\"] = {\r\n\tname : \"Armor of Magical Strength\",\r\n\tnameTest : \"of Magical Strength\",\r\n\tsource : [[\"T\", 20]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\tdescriptionFull : \"This armor has 6 charges. The wearer can expend the armor's charges in the following ways:\\n \\u2022 When the wearer makes a Strength check or a Strength saving throw, it can expend 1 charge to add a bonus to the roll equal to its Intelligence modifier.\\n \\u2022 If the creature would be knocked prone, it can use its reaction to expend 1 charge to avoid being knocked prone.\\nThe armor regains 1d6 expended charges daily at dawn.\",\r\n\tdescription : \"This armor has 6 charges and regains 1d6 expended charges daily at dawn. As a reaction when I would be knocked prone, I can expend 1 charge to avoid being knocked prone. When I make a Strength check or Strength saving throw, I can expend 1 charge to add my Intelligence modifier to the roll.\",\r\n\tattunement : true,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"prefix\"\r\n\t},\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\"\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Helm of Awareness (prereq: level 10 artificer)\", {\r\n\tname : \"Helm of Awareness\",\r\n\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\tdescription: desc(\"The wearer has advantage on Initiative rolls and can't be surprised while not incapacitated\"),\r\n\tadditional : \"helmet; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 10; },\r\n\tmagicitemsAdd : [\"Helm of Awareness\"]\r\n});\r\nMagicItemsList[\"helm of awareness\"] = {\r\n\tname : \"Helm of Awareness\",\r\n\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While wearing this helmet, I have advantage on initiative rolls. In addition, I can't be surprised, provided I'm not incapacitated.\",\r\n\tdescriptionFull : \"While wearing this helmet, a creature has advantage on initiative rolls. In addition, the wearer can't be surprised, provided it isn't incapacitated.\",\r\n\tattunement : true,\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tsavetxt : { immune : [\"surprised\"] }\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Mind Sharpener\", {\r\n\tname : \"Mind Sharpener\",\r\n\tsource : [[\"T\", 22]],\r\n\tdescription: desc(\"The wearer can use its reaction to ignore a failed Con save to maintain concentration\"),\r\n\tadditional : \"suit of armor or robes\",\r\n\tmagicitemsAdd : [\"Mind Sharpener\"]\r\n});\r\nMagicItemsList[\"mind sharpener\"] = {\r\n\tname : \"Mind Sharpener\",\r\n\tsource : [[\"T\", 22]],\r\n\tdescriptionFull : \"The infused item can send a jolt to the wearer to refocus their mind. The item has 4 charges. When the wearer fails a Constitution saving throw to maintain concentration on a spell, the wearer can use its reaction to expend 1 of the item's charges to succeed instead. The item regains 1d4 expended charges daily at dawn.\",\r\n\tdescription : \"This magic armor or robes can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\tchoices : [\"Mind Sharpener Armor\", \"Mind Sharpener Robes\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"mind sharpener armor\" : {\r\n\t\tname : \"Mind\\u200A Sharpener\",\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"This magic armor can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\titemName1stPage : [\"suffix\", \"Mind Sharpener\"],\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t\t}\r\n\t},\r\n\t\"mind sharpener robes\" : {\r\n\t\tname : \"Mind Sharpener (Robes)\",\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"These magic robes can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\"\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Spell-Refueling Ring (prereq: level 6 artificer)\", {\r\n\tname : \"Spell-Refueling Ring\",\r\n\tsource : [[\"T\", 23]],\r\n\tdescription: desc(\"As an action once per dawn, this ring's wearer can recover one 3rd-level or lower spell slot\"),\r\n\tadditional : \"ring; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\tmagicitemsAdd : [\"Spell-Refueling Ring\"]\r\n});\r\nMagicItemsList[\"spell-refueling ring\"] = {\r\n\tname : \"Spell-Refueling Ring\",\r\n\tsource : [[\"T\", 23]],\r\n\ttype : \"ring\",\r\n\tdescriptionFull : \"While wearing this ring, the creature can recover one expended spell slot as an action. The recovered slot can be of 3rd level or lower. Once used, the ring can't be used again until the next dawn.\",\r\n\tdescription : \"As an action, I can activate this magic ring to recover one expended spell slot. The recovered slot can be of 3rd level or lower. Once used, the ring can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\n\r\n// Add the Armorer specialism (but after all other scripts, so that all armour options are present)\r\nRunFunctionAtEnd(function () {\r\n\tvar TCoE_Artificer_Subclass_Armorer = AddSubClass(\"artificer\", \"armorer\", {\r\n\t\tregExpSearch : /^(?=.*armou?rer)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Armorer\",\r\n\t\tfullname : \"Armorer\",\r\n\t\tsource : [[\"T\", 15]],\r\n\t\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools of the Trade\",\r\n\t\t\t\tsource : [[\"T\", 15]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with heavy armor \\u0026 smith's tools]\",\r\n\t\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\t\tspellcastingExtra : [\"magic missile\", \"thunderwave\", \"mirror image\", \"shatter\", \"hypnotic pattern\", \"lightning bolt\", \"fire shield\", \"greater invisibility\", \"passwall\", \"wall of force\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Arcane Armor\",\r\n\t\t\t\tsource : [[\"T\", 15]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [reverts back if I die or don another armor]\" + desc([\r\n\t\t\t\t\t\"As an action, I can use smith's tool to turn an armor I'm wearing into arcane armor\",\r\n\t\t\t\t\t\"As an action, I can don or doff it; As a bonus action, I can deploy or retract its helmet\",\r\n\t\t\t\t\t\"It can't be removed against my will, covers all my limbs, and even replaces missing limbs\",\r\n\t\t\t\t\t\"I ignore the Strength requirement of arcane armor and can use it as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (create/don/doff)\"], [\"bonus action\", \" (retract/deploy helmet)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.2\" : {\r\n\t\t\t\tname : \"Armor Model\",\r\n\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a rest, I can use smith's tools to change the model of my arcane armor\",\r\n\t\t\t\t\t'Select a model using the \"Choose Feature\" button; See \"Notes\" page for features of each'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"also see notes page\",\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Arcane Armor Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"I can customize my arcane armor to the guardian or infiltrator model whenever I finish a short or long rest, provided I have smith's tools in hand.\",\r\n\t\t\t\t\t\t\"Each model includes a special weapon. When I attack with that weapon, I can use my Intelligence modifier, instead of Strength or Dexterity, for the attack and damage rolls.\"\r\n\t\t\t\t\t])\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Guardian Arcane Armor\",\r\n\t\t\t\t\tpopupName : \"Guardian Arcane Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"\\u2022 Thunder Gauntlets: Each of the armor's gauntlets counts as a simple melee weapon while I'm not holding anything in it, and it deals 1d8 thunder damage on a hit. A creature hit by the gauntlet has disadvantage on attack rolls against targets other than me until the start of me next turn, as the armor magically emits a distracting pulse when the creature attacks someone else.\",\r\n\t\t\t\t\t\t\"\\u2022 Defensive Field: As a bonus action, I can gain temporary hit points equal to my artificer level, replacing any temporary hit points I already have. I lose these temporary hit points if I doff the armor. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when I finish a long rest.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infiltrator Arcane Armor\",\r\n\t\t\t\t\tpopupName : \"Infiltrator Arcane Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"\\u2022 Lightning Launcher: A gemlike node on one of the armored fists or on the chest (my choice) counts as a simple ranged weapon, with a normal range of 90 ft and a long range of 300 ft. It deals 1d6 lightning damage on a hit. Once on each of my turns when I hit a creature with it, I can deal an extra 1d6 lightning damage to that target.\",\r\n\t\t\t\t\t\t\"\\u2022 Powered Steps: My walking speed increases by 5 feet.\",\r\n\t\t\t\t\t\t\"\\u2022 Dampening Field: I have advantage on Dexterity (Stealth) checks. If the armor normally imposes disadvantage on such checks, the advantage and disadvantage cancel each other, as normal.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [],\r\n\t\t\t\tchoiceDependencies : [{\r\n\t\t\t\t\tfeature : \"subclassfeature15\",\r\n\t\t\t\t\tchoiceAttribute : true\r\n\t\t\t\t}],\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*thunder)(?=.*gauntlet).*$/i,\r\n\t\t\t\t\tname : \"Thunder Gauntlets\",\r\n\t\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 8, \"thunder\"],\r\n\t\t\t\t\trange : \"Melee\",\r\n\t\t\t\t\tdescription : \"Target hit disadv. on attacks vs. others than me until my next turn starts\",\r\n\t\t\t\t\tabilitytodamage : true,\r\n\t\t\t\t\tmonkweapon : true\r\n\t\t\t\t}, {\r\n\t\t\t\t\tregExpSearch : /^(?=.*lightning)(?=.*launcher).*$/i,\r\n\t\t\t\t\tname : \"Lightning Launcher\",\r\n\t\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 6, \"lightning\"],\r\n\t\t\t\t\trange : \"90/300 ft\",\r\n\t\t\t\t\tdescription : \"Once per turn on hit, +1d6 lightning damage\",\r\n\t\t\t\t\tabilitytodamage : true\r\n\t\t\t\t}],\r\n\t\t\t\t// Do this in the parent object, so that it is always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"bonus action\", \"Defensive Field (Guardian Model)\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Defensive Field (Guardian Model)\",\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Armor Modifications\",\r\n\t\t\t\tsource : [[\"T\", 17]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Arcane armor now counts as armor, boots, helmet, and a weapon for holding infusions\",\r\n\t\t\t\t\t\"Each can hold one infusion; The infusions remain when I change the armor's model\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"+2 infused items if\" + (typePF ? \"\" : \" used\") + \" on arcane armor\",\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Perfected Armor\",\r\n\t\t\t\tsource : [[\"T\", 17]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t'My armor gets additional features, based on the model; Use \"Choose Feature\" to select it',\r\n\t\t\t\t\t\"The guardian gets the ability to pull a creature closer as a reaction and make an attack\",\r\n\t\t\t\t\t\"The infiltrator gets an upgrade to its lightning launcher weapon attack\"\r\n\t\t\t\t]),\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Guardian Perfected Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Tinkering with my armor's energy system leads me to discover a powerful pulling force.\",\r\n\t\t\t\t\t\t\"As a reaction when a Huge or smaller creature I can see ends its turn within 30 ft of me, I can magically force the creature to make a Strength saving throw against my spell save DC, pulling the creature up to 30 ft toward me to an unoccupied space. If I pull the target to a space within 5 ft of me, I can make a melee weapon attack against it as part of this reaction.\",\r\n\t\t\t\t\t\t\"I can use this reaction a number of times equal to my proficiency bonus. I regain all expended uses of it when I finish a long rest.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infiltrator Perfected Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Any creature that takes lightning damage from my Lightning Launcher glimmers with magical light until the start of my next turn.\",\r\n\t\t\t\t\t\t\"The glimmering creature sheds dim light in a 5-ft radius, and it has disadvantage on attack rolls against me, as the light jolts it if it attacks me. In addition, the next attack roll against it has advantage, and if that attack hits, the target takes an extra 1d6 lightning damage.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"guardian\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tadditional: \"Proficiency Bonus per long rest\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn in 30 ft, I have it make a Str save\",\r\n\t\t\t\t\t\t\"If it is Huge or smaller and fails, I pull it up to 30 ft towards me to an unoccupied space\",\r\n\t\t\t\t\t\t\"If I pull it within 5 ft, I can make a melee weapon attack vs. it as part of this reaction\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t\"infiltrator\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Infiltrator\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"Those hit by my lightning launcher shed 5-ft radius dim light until my next turn starts\",\r\n\t\t\t\t\t\t\"The light gives the target disadvantage on attacks rolls made against me\",\r\n\t\t\t\t\t\t\"Also, the next attack against it has advantage and deals an extra 1d6 lightning damage\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t// Do these in the parent object, so that they are always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"reaction\", \"Perfected Armor: Guardian\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tvar itsFea = ClassSubList[TCoE_Artificer_Subclass_Armorer].features[\"subclassfeature3.2\"];\r\n\tvar guardianTxt = desc([\r\n\t\t\"Both fists are Thunder Gauntlets, simple melee weapons that distract those hit by it\",\r\n\t\t\"As a bonus action, I can activate a defensive shield to gain my artificer level in temp HP\"\r\n\t])\r\n\tvar guardianAdditional = levels.map(function (n) {\r\n\t\treturn n + \" temp HP, Prof B. per long rest\";\r\n\t})\r\n\tvar infiltratorTxt = desc([\r\n\t\t\"+5 ft walking speed; Gemlike node in fist/chest is a ranged weapon, Lightning Launcher\",\r\n\t\t\"It gives me advantage on Dexterity (Stealth) checks\"\r\n\t])\r\n\tvar prereqFunc = function(v) {\r\n\t\tvar sParsed = ParseArmor(v.choice.replace(/(Guardian|Infiltrator) arcane /i, ''));\r\n\t\treturn sParsed && testSource(sParsed, ArmourList[sParsed], \"armorExcl\") ? \"skip\" : true;\r\n\t};\r\n\tfor (var armor in ArmourList) {\r\n\t\tvar anArm = ArmourList[armor];\r\n\t\tif (anArm.isMagicArmor || !anArm.weight || (CurrentVars.extraArmour && CurrentVars.extraArmour[armor])) continue;\r\n\t\t// Add the Guardian variant of the armor\r\n\t\tvar gArmName = \"Guardian Arcane \" + anArm.name;\r\n\t\titsFea[gArmName.toLowerCase()] = {\r\n\t\t\tname : (typePF ? \"Armor \" : \"\") + \"Model: Guardian \" + anArm.name,\r\n\t\t\tsubmenu : \"Guardian Arcane Armor\",\r\n\t\t\tdescription : guardianTxt,\r\n\t\t\tadditional : guardianAdditional,\r\n\t\t\tarmorAdd : { select : gArmName, options : [gArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Thunder Gauntlets\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tdependentChoices : \"guardian\"\r\n\t\t}\r\n\t\t// And now add the Infiltrator variant of the armor\r\n\t\tvar iArmName = \"Infiltrator Arcane \" + anArm.name;\r\n\t\titsFea[iArmName.toLowerCase()] = {\r\n\t\t\tname : \"Armor Model: Infiltrator \" + anArm.name,\r\n\t\t\tsubmenu : \"Infiltrator Arcane Armor\",\r\n\t\t\tdescription : infiltratorTxt + (anArm.stealthdis ? \", cancelling out the disadv. it imposes\" : \"\"),\r\n\t\t\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } },\r\n\t\t\tarmorAdd : { select : iArmName, options : [iArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Lightning Launcher\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tadvantages : [[\"Stealth\", true]],\r\n\t\t\tdependentChoices : \"infiltrator\"\r\n\t\t}\r\n\t\t// Lastly push both choices to the array\r\n\t\titsFea.choices.push(gArmName, iArmName);\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Barbarian Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Barbarian Optional Class Features\r\nAddFeatureChoice(ClassList.barbarian.features[\"danger sense\"], true, \"Primal Knowledge\", {\r\n\tname : \"Primal Knowledge\",\r\n\textraname : \"Optional Barbarian 3\",\r\n\tsource : [[\"T\", 24]],\r\n\tdescription : desc([\r\n\t\t\"At 3rd level and again at 10th level I gain proficiency with one skill of my choice\",\r\n\t\t\"I can choose from Animal Handling, Athletics, Intimidation, Nature, Perception, Survival\"\r\n\t]),\r\n\tskillstxt : \"Choose one from Animal Handling, Athletics, Intimidation, Nature, Perception and Survival.\\nChoose another from this list at 10th level\",\r\n\tprereqeval : function (v) { return classes.known.barbarian.level >= 3 ? true : \"skip\"; }\r\n}, \"Optional 3rd-level barbarian features\");\r\nAddFeatureChoice(ClassList.barbarian.features[\"feral instinct\"], true, \"Instinctive Pounce\", {\r\n\tname : \"Instinctive Pounce\",\r\n\textraname : \"Optional Barbarian 7\",\r\n\tsource : [[\"T\", 24]],\r\n\tdescription : desc([\r\n\t\t\"As part of the bonus action I use to enter rage, I can move up to half my speed\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"Rage (start & half move / end)\", \"Rage (start/end)\"]]\r\n}, \"Optional 7th-level barbarian features\");\r\n\r\n// Barbarian Subclasses\r\nAddSubClass(\"barbarian\", \"path of the beast\", {\r\n\tregExpSearch : /^(?=.*\\bbeast\\b)(?=.*(warrior|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Beast\",\r\n\tsubnameShort: \"Beast\",\r\n\tsource : [[\"T\", 24]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Form of the Beast\",\r\n\t\t\tsource : [[\"T\", 24]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my rage, I can transform to gain a bite, tail, or claws attack for that rage\",\r\n\t\t\t\t\"On a hit with the bite attack once on each of my turns, I can heal my Prof Bonus in HP\",\r\n\t\t\t\t\"This only works if I have less than half my hit points when I hit with this bite attack\",\r\n\t\t\t\t\"With the claws I can make one extra attack when I attack with it in my Attack action\",\r\n\t\t\t\t\"As a reaction with the tail when I'm hit, I can add 1d8 to my AC for that attack\",\r\n\t\t\t\t\"This only works if the hit is from an attack roll made a creature I can see within 30 ft\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*bite).*$/i,\r\n\t\t\t\tname : \"Bestial Bite\",\r\n\t\t\t\tsource : [[\"T\", 24]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; On a hit once on my turn, regain Prof Bonus in HP (if below 1/2 HP)\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*claws?).*$/i,\r\n\t\t\t\tname : \"Bestial Claws\",\r\n\t\t\t\tsource : [[\"T\", 24]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; Extra attack if used as part of Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*tail).*$/i,\r\n\t\t\t\tname : \"Bestial Tail\",\r\n\t\t\t\tsource : [[\"T\", 25]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Reach; Only in rage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"chosen weapon counts as magical\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"Bestial Tail\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bestial Soul\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can choose one of the following benefits until my next rest:\",\r\n\t\t\t\t\" \\u2022 Swimming speed equal to my walking speed and I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 Climb speed (same as walking) and no check to climb difficult surfaces or upside down\",\r\n\t\t\t\t\" \\u2022 Once per turn when I jump, I can extend it by the result of an Athletics check in feet\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.bestialNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The natural melee weapon that I gain from Form of the Beast count as magical for the purpose of overcoming resistance and immunity to nonmagical attacks and damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Infectious Fury\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In rage, when I hit a creature with my natural weapon, I can have it make a Wis save\",\r\n\t\t\t\t\"If it fails (DC 8 + my Prof Bonus + my Con mod) it suffers one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 It uses its reaction to make a melee attack against one creature I can see of my choice\",\r\n\t\t\t\t\" \\u2022 It takes 2d12 psychic damage\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Call the Hunt\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter rage, I can choose my Con mod of willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"Once on each of their turns, if they hit an attack, they can have it deal +1d6 damage\",\r\n\t\t\t\t\"This lasts as long as I rage; I gain 5 temporary HP per creature that accepts this benefit\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"path of wild magic\", {\r\n\tregExpSearch : /^(?=.*\\bwild\\b)(?=.*\\bmagic\\b).*$/i,\r\n\tsubname : \"Path of Wild Magic\",\r\n\tsubnameShort: \"Wild Magic\",\r\n\tsource : [[\"T\", 25]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Magic Awareness\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can open my awareness to the presence of concentrated magic\",\r\n\t\t\t\t\"Until my next turn ends, I know the location of any spell or magic item within 60 ft\",\r\n\t\t\t\t\"I also learn the school of magic of a spell; This doesn't reveal anything behind total cover\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wild Surge\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Whenever I enter my rage, I roll on the Wild Magic table (see Notes page)\"),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Magic Table\",\r\n\t\t\t\tsource : [[\"T\", 26]],\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"The magical energy roiling inside me sometimes erupts from me. Whenever I enter my rage, I have to roll on the table below to see what happens.\",\r\n\t\t\t\t\t\"If the effect calls for a saving throw, the DC is equal to 8 + my proficiency bonus + my Constitution modifier.\\n\",\r\n\t\t\t\t\t\"d8\\tEFFECT\",\r\n\t\t\t\t\t\" 1\\tShadowy tendrils lash around me. Each creature of my choice that I can see within 30 ft of me must succeed on a Constitution saving throw or take 1d12 necrotic damage. I also gain 1d12 temporary hit points.\",\r\n\t\t\t\t\t\" 2\\tI teleport up to 30 ft to an unoccupied space I can see. Until my rage ends, I can use this effect again on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 3\\tAn intangible spirit, which looks like a flumph or a pixie (my choice), appears within 5 ft of one creature of my choice that I can see within 30 ft of me. At the end of the current turn, the spirit explodes, and each creature within 5 ft of it must succeed on a Dexterity saving throw or take 1d6 force damage. Until my rage ends, I can use this effect again, summoning another spirit, on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 4\\tMagic infuses one weapon of my choice that I am holding. Until my rage ends, the weapon's damage type changes to force, and it gains the light and thrown properties, with a normal range of 20 ft and a long range of 60 ft. If the weapon leaves my hand, the weapon reappears in my hand at the end of the current turn.\",\r\n\t\t\t\t\t\" 5\\tWhenever a creature hits me with an attack roll before my rage ends, that creature takes 1d6 force damage, as magic lashes out in retribution.\",\r\n\t\t\t\t\t\" 6\\tUntil my rage ends, I am surrounded by multicolored, protective lights; I gain a +1 bonus to AC, and while within 10 ft of me, my allies gain the same bonus.\",\r\n\t\t\t\t\t\" 7\\tFlowers and vines temporarily grow around me; until my rage ends, the ground within 15 ft of me is difficult terrain for my enemies.\",\r\n\t\t\t\t\t\" 8\\tA bolt of light shoots from my chest. Another creature of my choice that I can see within 30 ft of me must succeed on a Constitution saving throw or take 1d6 radiant damage and be blinded until the start of my next turn. Until my rage ends, I can use this effect again on each of my turns as a bonus action.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bolstering Magic\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can touch a creature or myself and confer one of the following benefits:\",\r\n\t\t\t\t\" \\u2022 For 10 minutes, they can add 1d3 to any attack roll and ability check\",\r\n\t\t\t\t\" \\u2022 Roll 1d3. They regain an expended spell slot of a level equal to or lower than the roll\",\r\n\t\t\t\t\"A creature that receives the second benefit can't receive it again until after a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Unstable Backlash\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction in rage when taking damage or failing a save, I can lash out with magic\",\r\n\t\t\t\t\"I roll on the Wild Magic table and immediately apply the roll, replacing my current effect\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in rage on damage/save fail)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Controlled Surge\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I roll on the Wild Magic table, I can roll two dice and choose which to use\",\r\n\t\t\t\t\"If I roll the same on both dice, I can instead choose any effect on the Wild Magic table\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n// >>> Bard Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Bard Optional Class Features\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Additional Bard Spells\", {\r\n\tname : \"Additional Bard Spells\",\r\n\tsource : [[\"T\", 27]],\r\n\textraname : \"Optional Bard 1\",\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"color spray\", \"command\", \"aid\", \"enlarge/reduce\", \"mirror image\", \"mass healing word\", \"slow\", \"phantasmal killer\", \"rary's telepathic bond\", \"heroes' feast\", \"prismatic spray\", \"antipathy/sympathy\", \"prismatic wall\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the bard class with the following spells (spell level in brackets): Color Spray (1), Command (1), Aid (2), Enlarge/Reduce (2), Mirror Image (2), Mass Healing Word (3), Slow (3), Phantasmal Killer (4), Rary's Telepathic Bond (5), Heroes' Feast (6), Prismatic Spray (7), Antipathy/Sympathy (8), and Prismatic Wall (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features[\"jack of all trades\"], true, \"Magical Inspiration\", {\r\n\tname : \"Magical Inspiration\",\r\n\textraname : \"Optional Bard 2\",\r\n\tsource : [[\"T\", 27]],\r\n\tdescription : desc([\r\n\t\t\"A bardic inspiration die recipient can also use it when casting a damaging or healing spell\",\r\n\t\t\"They can expend the die and add it to healing or damage dealt to one target of the spell\"\r\n\t])\r\n}, \"Optional 2nd-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features[\"song of rest\"], true, \"Bardic Versatility\", {\r\n\tname : \"Bardic Versatility\",\r\n\textraname : \"Optional Bard 4\",\r\n\tsource : [[\"T\", 28]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the bard class, I can change one cantrip or expertise choice\",\r\n\t\t\"I can select another cantrip from the bard spell list or another skill I'm proficient with\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.bard.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level bard features\");\r\n\r\n// Bard Subclasses\r\nAddSubClass(\"bard\", \"college of creation\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*creation).*$/i,\r\n\tsubname : \"College of Creation\",\r\n\tsubnameShort: \"Creation\",\r\n\tsource : [[\"T\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mote of Potential\",\r\n\t\t\tsource : [[\"T\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Those who use my Bardic Inspiration die gain an extra bonus depending how they use it:\",\r\n\t\t\t\t\"\\u2022 Ability check: Roll the die twice and choose which result to use\",\r\n\t\t\t\t\"\\u2022 Attack roll: the target and others of my choice I can see in 5 ft must make a Con save\",\r\n\t\t\t\t\"  If failed, they take the die roll in thunder damage; This uses my spell save DC\",\r\n\t\t\t\t\"\\u2022 Saving throw: Grants temporary HP equal to the roll + my Cha mod (min 1 temp HP)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Performance of Creation\",\r\n\t\t\tsource : [[\"T\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tif (n < 14) {\r\n\t\t\t\t\tvar descr = [\r\n\t\t\t\t\t\t\"As an action, I create \" + (n < 6 ? \"a Medium\" : \"one Large\") + \" or smaller nonmagical item in an empty space in 10 ft\",\r\n\t\t\t\t\t\t\"It can't be worth more than \" + (20 * n) + \" gp; It lasts for my Proficiency Bonus in hours\",\r\n\t\t\t\t\t\t\"I can't have multiple, creating more makes the first one vanish\",\r\n\t\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t\t];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar descr = [\r\n\t\t\t\t\t\t\"As an action, I create my Charisma mod of nonmagical items in an empty space in 10 ft\",\r\n\t\t\t\t\t\t\"One can be Huge, the rest Small or smaller; They last for my Proficiency Bonus in hours\",\r\n\t\t\t\t\t\t\"I can't have more than my Cha mod; If I create more, I get to choose which vanish\",\r\n\t\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t\t];\r\n\t\t\t\t}\r\n\t\t\t\treturn desc(descr);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 2+\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Animating Performance\",\r\n\t\t\tsource : [[\"T\", 29]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can animate a Large or smaller nonmagical item I can see within 30 ft\",\r\n\t\t\t\t\"It is friendly and obeys my commands; It lasts for 1 hour, until it has 0 HP, or I die\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can take reactions and move on its turn without commands; I can't have multiple\",\r\n\t\t\t\t\"When I use bardic inspiration, I can command the item as part of the same bonus action\",\r\n\t\t\t\t'It acts on my initiative, after me; See \"Dancing Item\" on a companion page for its stats',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Dancing Item\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tcreaturesAdd : [[\"Dancing Item\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Dancing Item\",\r\n\t\t\t\tsource : [[\"T\", 29]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 16,\r\n\t\t\t\thp : 25,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"fly 30 ft (hover)\",\r\n\t\t\t\tscores : [18, 14, 16, 4, 10, 6],\r\n\t\t\t\tdamage_immunities : \"poison, psychic\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned, frightened\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1/2\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Slam\",\r\n\t\t\t\t\tability : 6,\r\n\t\t\t\t\tdamage : [1, 10, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"bard\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Variable Size\",\r\n\t\t\t\t\tdescription : \"The item animated can be Large or smaller.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The item obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Immutable Form\",\r\n\t\t\t\t\tdescription : \"The item is immune to any spell or effect that would alter its form.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Irrepressible Dance\",\r\n\t\t\t\t\tdescription : \"When any creature starts its turn within 10 ft of the item, the item can increase or decrease (its creator's choice) the walking speed of that creature by 10 ft until the end of the turn, provided the item isn't incapacitated.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : 'Animated',\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.bard) return;\r\n\t\t\t\t\t\tvar brdLvl = classes.known.bard.level;\r\n\t\t\t\t\t\tvar brdLvl5 = 5 * brdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(10 + brdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + brdLvl + \" from five times its creator's bard level (\" + brdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Creative Crescendo\",\r\n\t\t\tsource : [[\"T\", 29]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [enhances Performance of Creation]\"\r\n\t\t}\r\n\t}\r\n});\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Cleric Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Cleric Optional Class Features\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Additional Cleric Spells\", {\r\n\tname : \"Additional Cleric Spells\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"T\", 30]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"aura of vitality\", \"aura of life\", \"aura of purity\", \"sunbeam\", \"sunburst\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the cleric class with the following spells (spell level in brackets): Aura of Vitality (3), Aura of Life (4), Aura of Purity (4), Sunbeam (6), Sunburst (8), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"channel divinity\"], true, \"Harness Divine Power\", {\r\n\tname : \"Channel Divinity: Harness Divine Power\",\r\n\textraname : \"Optional Cleric 2\",\r\n\tsource : [[\"T\", 30]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can expend a use of my channel divinity to regain one used spell slot\",\r\n\t\t\"The level of this spell slot can be no more than half my Proficiency Bonus (rounded up)\",\r\n\t\t\"I can only do this so many times per long rest, even if I have uses of channel divinity left\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : levels.map(function(n) {\r\n\t\treturn n < 3 ? \"\" : n < 6 ? 1 : n < 18 ? 2 : 3;\r\n\t}),\r\n\trecovery : \"long rest\"\r\n}, \"Optional 2nd-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"turn undead\"], true, \"Cantrip Versatility\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Cleric 4\",\r\n\tsource : [[\"T\", 31]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the cleric class, I can change one cleric cantrip for another\",\r\n\tprereqeval : function (v) { return classes.known.cleric.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level cleric features\");\r\n// Cleric subclass alternative feature, so only run this after we are sure all subclasses have been added\r\nRunFunctionAtEnd(function() {\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar domain = ClassList.cleric.subclasses[1][i];\r\n\t\tvar objDomain = ClassSubList[domain];\r\n\t\tif (!objDomain || !objDomain.features.subclassfeature8 || !(/divine strike|potent spellcasting/i).test(objDomain.features.subclassfeature8.name)) continue;\r\n\t\tCreateClassFeatureVariant(domain, \"subclassfeature8\", \"Blessed Strikes\", {\r\n\t\t\tname : \"Blessed Strikes\",\r\n\t\t\tsource : [[\"T\", 31]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When my weapon attack or cantrip damages a creature, I can do +1d8 radiant damage\",\r\n\t\t\t\t\"Once I deal this extra damage, I can't do so again until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && (v.isWeapon || (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0)) && /\\d/.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per round +1d8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per round, when a creature takes damage from one of my spell or weapon attacks, I can also deal 1d8 radiant damage to the target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// Cleric Subclasses\r\nAddSubClass(\"cleric\", \"peace domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*peace).*$/i,\r\n\tsubname : \"Peace Domain\",\r\n\tsource : [[\"T\", 32]],\r\n\tspellcastingExtra : [\"heroism\", \"sanctuary\", \"aid\", \"warding bond\", \"beacon of hope\", \"sending\", \"aura of purity\", \"otiluke's resilient sphere\", \"greater restoration\", \"rary's telepathic bond\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Emboldening Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"As an action, I can magically bond my Prof Bonus of willing creatures I can see in 30 ft\",\r\n\t\t\t\t\t\"I can be one of the bonded creatures; The bond lasts for 10 min or until I use this again\",\r\n\t\t\t\t\t\"While within \" + (n < 17 ? 30 : 60) + \" ft of another, a bonded target can add +1d4 to a save, attack, or check\",\r\n\t\t\t\t\t\"Each creature can add the +1d4 only once per turn\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Implement of Peace\",\r\n\t\t\tdescription : desc(\"I gain proficiency in the Insight, Performance, or Persuasion skill (my choice)\"),\r\n\t\t\tskillstxt : \"Choose one from: Insight, Performance, or Persuasion\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Balm of Peace\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can move up to my speed without provoking opportunity attacks\",\r\n\t\t\t\t\"During this move, I can heal each creature that I come within 5 ft of once\",\r\n\t\t\t\t\"I restore a number of hit points equal to 2d6 + my Wisdom modifier (minimum 1 HP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Protective Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My Emboldening Bond now also helps those bonded to protect each other if within range\",\r\n\t\t\t\t\"When one is about to take damage, another bonded can use its reaction to teleport closer\",\r\n\t\t\t\t\"They teleport to an empty space within 5 ft of the first and take all the damage instead\",\r\n\t\t\t\t\"From 17th-level, they count as having resistance for this damage, thus take only half\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"the bonded must be within \" + (n < 17 ? 30 : 60) + \" ft\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Expansive Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Emboldening and Protective Bond work when the bonded are within 60 ft of each other\",\r\n\t\t\t\t\"Protective Bond now also grants resistance when used to take damage for another\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"twilight domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(twilight|transition)).*$/i,\r\n\tsubname : \"Twilight Domain\",\r\n\tsubnameShort: \"Twilight\",\r\n\tsource : [[\"T\", 34]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"moonbeam\", \"see invisibility\", \"aura of vitality\", \"leomund's tiny hut\", \"aura of life\", \"greater invisibility\", \"circle of power\", \"mislead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"T\", 34]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of Night\",\r\n\t\t\tsource : [[\"T\", 34]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain darkvision out to a range of 300 ft; As an action, I can grant others this as well\",\r\n\t\t\t\t\"I can grant it for 1 hour to my Wis mod (min 1) of willing targets I can see within 10 ft\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (grant others)\"]],\r\n\t\t\tvision : [[\"Darkvision\", 300]],\r\n\t\t\tadditional : \"grant others\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Vigilant Blessing\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can grant myself or a creature I touch adv. on the next initiative roll\",\r\n\t\t\t\t\"This benefit ends immediately after the roll or when I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Twilight Sanctuary\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use my holy symbol to create a 30-ft radius sphere around myself\",\r\n\t\t\t\t\"It moves with me, is filled with dim light, and lasts for 1 min or until I'm incapacitated\",\r\n\t\t\t\t\"When a creature, including me, ends its turn inside the sphere, I can grant it a benefit:\",\r\n\t\t\t\t\" \\u2022 I grant it temporary hit points equal to 1d6 + my cleric level\",\r\n\t\t\t\t\" \\u2022 I end one effect on it causing it to be charmed or frightened\",\r\n\t\t\t\t\"From 17th-level onwards, me and my allies have half cover while inside the sphere\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"1d6 + \" + n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Steps of Night\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can magically grant myself flight\",\r\n\t\t\t\t\"I gain a flying speed equal to my walking speed for 1 minute\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 radiant damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra radiant damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Twilight Shroud\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Me and my allies have half cover while in the sphere created by my Twilight Sanctuary\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Druid Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Druid Optional Class Features\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Additional Druid Spells\", {\r\n\tname : \"Additional Druid Spells\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"T\", 35]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"protection from evil and good\", \"augury\", \"continual flame\", \"enlarge/reduce\", \"aura of vitality\", \"elemental weapon\", \"revivify\", \"divination\", \"fire shield\", \"cone of cold\", \"flesh to stone\", \"symbol\", \"incendiary cloud\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the druid class with the following spells (spell level in brackets): Protection from Evil and Good (1), Augury (2), Continual Flame (2), Enlarge/Reduce (2), Aura of Vitality (3), Elemental Weapon (3), Revivify (3), Divination (4), Fire Shield (4), Cone of Cold (5), Flesh to Stone (6), Symbol (7), and Incendiary Cloud (8).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\nvar TCoE_Wild_Companion = {\r\n\tname : \"Wild Companion\",\r\n\textraname : \"Optional Druid 2\",\r\n\tsource : [[\"T\", 35], [\"UA:CFV\", 4]],\r\n\tdescription : desc([\r\n\t\t\"I can expend a use of wild shape to cast Find Familiar without material components\",\r\n\t\t\"The familiar always has the Fey type and disappears after half my druid level in hours\"\r\n\t]),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn n < 2 ? \"\" : Math.floor(n/2) + \" hours\";\r\n\t}),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Wild Companion\",\r\n\t\tspells : [\"find familiar\"],\r\n\t\tselection : [\"find familiar\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"find familiar\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Gain the services of a fey familiar; can see through its eyes; it can deliver touch spells; see B\",\r\n\t\t\tduration : \"\\u00BD druid lvl h\",\r\n\t\t\tchanges : \"By using my Wild Companion class feature, I can expend a use of wild shape to cast Find Familiar without material components. The familiar created this way always has the Fey type and disappears after a number of hours equal to half my druid level.\"\r\n\t\t}\r\n\t}\r\n}\r\nAddFeatureChoice(ClassList.druid.features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", TCoE_Wild_Companion, \"Optional 2nd-level druid features\");\r\nif (ClassSubList[\"druid-circle of the moon\"]) {\r\n\tAddFeatureChoice(ClassSubList[\"druid-circle of the moon\"].features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", TCoE_Wild_Companion, \"Optional 2nd-level druid features\");\r\n}\r\nAddFeatureChoice(ClassList.druid.features.druidic, true, \"Cantrip Versatility\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Druid 4\",\r\n\tsource : [[\"T\", 35]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the druid class, I can change one druid cantrip for another\",\r\n\tprereqeval : function (v) { return classes.known.druid.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level druid features\");\r\n\r\n// Druid Subclasses\r\nAddSubClass(\"druid\", \"circle of the stars\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*circle)(?=.*stars).*$/i,\r\n\tsubname : \"Circle of the Stars\",\r\n\tsubnameShort: \"Stars\",\r\n\tsource : [[\"T\", 38]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Star Map\",\r\n\t\t\tsource : [[\"T\", 38]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I've created a star map, a Tiny object which I can use as my spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to create a replacement\",\r\n\t\t\t\t\"While holding it, I know the Guidance cantrip and always have Guiding Bolt prepared\",\r\n\t\t\t\t\"These count as druid spells, but do not count against the number of spells I can prepare\",\r\n\t\t\t\t\"I can cast Guiding Bolt without expending a spell slot my Proficiency Bonus per long rest\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guidance\"],\r\n\t\t\t\tselection : [\"guidance\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guiding bolt\"],\r\n\t\t\t\tselection : [\"guiding bolt\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tadditional : \"Guiding Bolt\",\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Starry Form\",\r\n\t\t\tsource : [[\"T\", 38]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend a use of wild shape to take on a starry form for 10 min\",\r\n\t\t\t\t\"In that form I shed bright light in a 10-ft radius and dim light for an extra 10-ft radius\",\r\n\t\t\t\t\"When I do so, I choose one constellation that glimmers on my body, granting me benefits\",\r\n\t\t\t\t'See the 3rd page \"Notes\" section for the benefits of the possible constellations',\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*luminous)(?=.*arrow).*$/i,\r\n\t\t\t\tname : \"Luminous Arrow\",\r\n\t\t\t\tsource : [[\"T\", 38]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"radiant\"],\r\n\t\t\t\trange : \"60 ft\",\r\n\t\t\t\tdescription : \"Use as bonus action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tuseSpellMod : \"druid\",\r\n\t\t\t\tluminousarrow : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraname : \"Starry Form\",\r\n\t\t\t\"archer constellation\" : {\r\n\t\t\t\tname : \"Archer Constellation\",\r\n\t\t\t\tsource : [[\"T\", 38]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can make a ranged spell attack to hurl a luminous arrow 60 ft\",\r\n\t\t\t\t\t\"I can also do this as part of the bonus action I use to assume the starry form\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier radiant damage\";\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (Luminous Arrow)\"]]\r\n\t\t\t},\r\n\t\t\t\"chalice constellation\" : {\r\n\t\t\t\tname : \"Chalice Constellation\",\r\n\t\t\t\tsource : [[\"T\", 39]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I cast a healing spell with a spell slot, I can heal myself or another within 30 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier hit points restored\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"dragon constellation\" : {\r\n\t\t\t\tname : \"Dragon Constellation\",\r\n\t\t\t\tsource : [[\"T\", 39]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can treat a roll below 10 as a 10 for Int/Wis checks and saves to maintain concentration\",\r\n\t\t\t\t\t\"From 10th-level onwards, I also gain a flying speed of 20 ft and can hover\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"archer constellation\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"chalice constellation\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"dragon constellation\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cosmic Omen\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I roll a die to gain an omen based on the result (odd/even)\",\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft makes an attack, check, or save, I can:\",\r\n\t\t\t\t\" \\u2022 Weal (even): add 1d6 to the number rolled for the attack, check, or save\",\r\n\t\t\t\t\" \\u2022 Woe (odd): subtract 1d6 from the number rolled for the attack, check, or save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Twinkling Constellations\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in my starry form, I can change the constellation at the start of each of my turns\",\r\n\t\t\t\t'The benefit of my constellations improve, see the 3rd page \"Notes\" section',\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.luminousarrow && fields.Damage_Die.indexOf('1d8') !== -1) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('1d8', '2d8');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'',\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Full of Stars\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"While in my starry form, I have resistance to bludgeoning, piercing, and slashing damage\"),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Bludgeoning\", \"Bludgeon. (in form)\"],\r\n\t\t\t\t[\"Piercing\", \"Piercing (in form)\"],\r\n\t\t\t\t[\"Slashing\", \"Slashing (in form)\"]\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of wildfire\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*wild.{0,1}fire).*$/i,\r\n\tsubname : \"Circle of Wildfire\",\r\n\tsubnameShort: \"Wildfire\",\r\n\tsource : [[\"T\", 39]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Spells\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My link to a wildfire spirit grants me access to spells, which count as druid spells to me\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"burning hands\", \"cure wounds\", \"flaming sphere\", \"scorching ray\", \"plant growth\",\"revivify\", \"aura of life\", \"fire shield\", \"flame strike\", \"mass cure wounds\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Summon Wildfire Spirit\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a wildfire spirit within 30 ft\",\r\n\t\t\t\t\"All within 10 ft of where it manifests must make a Dex save or take 2d10 fire damage\",\r\n\t\t\t\t\"It is friendly and obeys my commands; It lasts for 1 hour, until it has 0 HP, or I die\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can always take reactions and move on its turn; It acts on my initiative, after me\",\r\n\t\t\t\t'It disappears if I summon another; See \"Wildfire Spirit\" on a companion page for its stats',\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Wildfire Spirit\"]],\r\n\t\t\tcreaturesAdd : [[\"Wildfire Spirit\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Wildfire Spirit\",\r\n\t\t\t\tsource : [[\"T\", 40]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Elemental\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 13,\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"30 ft, fly 30 ft (hover)\",\r\n\t\t\t\tscores : [10, 14, 14, 13, 15, 11],\r\n\t\t\t\tdamage_immunities : \"fire\",\r\n\t\t\t\tcondition_immunities : \"charmed, frightened, grappled, prone, restrained\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"understands the languages of its creator\",\r\n\t\t\t\tchallengeRating : \"1/2\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flame Seed\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"60 ft\",\r\n\t\t\t\t\tdescription : \"Ranged weapon attack\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"5-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 5 ft of teleportation origin, success - no damage; See traits\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [2, 6, \"fire\"],\r\n\t\t\t\t\trange : \"10-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft where spirit is summoned, success - no damage\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The spirit obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tdescription : \"The spirit and each willing creature of its creator's choice within 5 ft of it teleport up to 15 ft to unoccupied spaces its creator can see. Then each creature within 5 ft of the space that the spirit left must succeed on a Dexterity saving throw against its creator's spell save DC or take fire damage equal to 1d6 + its proficiency bonus.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tdescription : \"The spirit appears in an unoccupied space of its creator's choice that its creator can see within 30 ft. Each creature within 10 ft of the spirit (other than its creator) when it appears must succeed on a Dexterity saving throw against its creator's spell save DC or take 2d6 fire damage.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Wildfire\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvl5 = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + drdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + drdLvl + \" from five times its creator's druid level (\" + drdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Enhanced Bond\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my wildfire spirit is present, I can have my spells originate from it (no range 'self')\",\r\n\t\t\t\t\"Also, I can then add 1d8 to a single roll of my spells that restore HP or deal fire damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Cauterizing Flames\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a Small or larger creature dies within 30 ft of me or wildfire spirit,\",\r\n\t\t\t\t\"I can have a spectral flame erupt in its space that lasts for 1 minute\",\r\n\t\t\t\t\"As a reaction when I see a creature enter the flame's space, I can extinguish the flame\",\r\n\t\t\t\t\"This heals or deals fire damage to the creature (my choice) equal to 2d10 + my Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Blazing Revival\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I drop to 0 HP and don't die, and my wildfire spirit is within 120 ft, it can save me\",\r\n\t\t\t\t\"I can have it drop to 0 HP; I then regain half my HP and immediately rise to my feet\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Fighter Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Fighter Optional Class Features\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Blind Fighting\", {\r\n\tname : \"Blind Fighting Style\",\r\n\tsource : [[\"T\", 41]],\r\n\tdescription : desc([\r\n\t\t\"I have blindsight with 10 ft range, allowing me to see anything not behind total cover\",\r\n\t\t\"In range, I can see invisible, but not hidden, things, even when blinded or in darkness\"\r\n\t]),\r\n\tvision : [[\"Blindsight\", 10]]\r\n});\r\nAddFightingStyle([\"fighter\", \"paladin\"], \"Interception\", {\r\n\tname : \"Interception Fighting Style\",\r\n\tsource : [[\"T\", 41], [\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature I can see hits another within 5 ft of me, I can intercept\",\r\n\t\t\"I reduce the damage the target takes by 1d10 + my Proficiency Bonus (min 0 damage)\",\r\n\t\t\"I can't be the target and it requires me wielding a shield or a simple or martial weapon\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\"], \"Thrown Weapon Fighting\", {\r\n\tname : \"Thrown Weapon Fighting Style\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : desc([\r\n\t\t\"I can draw a weapon with the thrown property as part of the attack I make with it\",\r\n\t\t\"In addition, my ranged attacks made with thrown weapons deal +2 damage\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isThrownWeapon && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2 damage when thrown';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I deal +2 damage when I hit a ranged attack made with a thrown weapon.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && !v.isMeleeWeapon) {\r\n\t\t\t\t\toutput.extraDmg += 2;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\"], \"Unarmed Fighting\", {\r\n\tname : \"Unarmed Fighting Style\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : desc([\r\n\t\t\"My unarmed strikes deal 1d6 damage, or 1d8 damage when I have both hands free\",\r\n\t\t\"At the start of my turn, I can deal 1d4 bludgeoning damage to one target I'm grappling\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\tif (fields.Damage_Die == 1 || fields.Damage_Die == \"1d4\") fields.Damage_Die = '1d6';\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Versatile (d8)';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d6 damage instead of 1, which increases to 1d8 if I have both hands free to make an unarmed strike with.\",\r\n\t\t\t1\r\n\t\t]\r\n\t}\r\n});\r\nAddFeatureChoice(ClassList.fighter.features['action surge'], true, \"Martial Versatility\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Fighter 4\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the fighter class, I can change a fighting style or a maneuver\",\r\n\tprereqeval : function (v) { return classes.known.fighter.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level fighter features\");\r\n// Fighter alternative class features and enhancements (only if Battle Master subclass exists)\r\nif (ClassSubList[\"fighter-battle master\"]) {\r\n\tAddFightingStyle([\"fighter\"], \"Superior Technique\", {\r\n\t\tname : \"Superior Technique\",\r\n\t\tsource : [[\"T\", 41], [\"UA:CFV\", 5]],\r\n\t\tadditional: \"1 maneuver; d6, 1\\xD7 per short rest\",\r\n\t\tdescription : desc([\r\n\t\t\t\"I gain one superiority die (d6) that I can expend to fuel a special Maneuver\",\r\n\t\t\t\"I can only use one Maneuver per attack; DCs are 8 + Prof B. + Str/Dex mod, my choice\",\r\n\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page'\r\n\t\t]),\r\n\t\tbonusClassExtrachoices : [{\r\n\t\t\t\"class\" : \"fighter\",\r\n\t\t\t\"subclass\" : \"fighter-battle master\",\r\n\t\t\t\"feature\" : \"subclassfeature3.1\",\r\n\t\t\t\"bonus\" : 1\r\n\t\t}],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : 'd6',\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taddToExisting : true\r\n\t\t}]\r\n\t});\r\n\t// New Maneuver options\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Ambush\", {\r\n\t\tname : \"Ambush\",\r\n\t\tsource : [[\"T\", 42], [\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"When I make an initiative roll or a Dex (Stealth) check, I can add a superiority die to it\",\r\n\t\t\t\"I can't do this if I'm incapacitated\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Bait and Switch\", {\r\n\t\tname : \"Bait and Switch\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"On my turn, I can expend a superiority die to swap places with an ally within 5 ft\",\r\n\t\t\t\"I can't do this if the ally is incapacitated or unwilling to swap\",\r\n\t\t\t\"Doing this costs me 5 ft of movement, but this doesn't provoke opportunity attacks\",\r\n\t\t\t\"Me or my ally (my choice) can then add the superiority die to AC until my next turn starts\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Brace\", {\r\n\t\tname : \"Brace\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when a creature I can see moves within my melee reach, I can attack it\",\r\n\t\t\t\"I expend a superiority die and make one weapon attack, adding the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Commanding Presence\", {\r\n\t\tname : \"Commanding Presence\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription: desc(\"When I make a Performance, Intimidation, or Persuasion check, I can add a superiority die\")\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Grappling Strike\", {\r\n\t\tname : \"Grappling Strike\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Immediately after hitting with a melee attack, I can use a bonus action to try to grapple\",\r\n\t\t\t\"I add the superiority die to the Str (Athletics) check; I can only do this on my own turn\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \" (after melee hit)\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Quick Toss\", {\r\n\t\tname : \"Quick Toss\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a bonus action, I can use a superiority die to do a ranged attack with a thrown weapon\",\r\n\t\t\t\"I can draw a thrown weapon as part of making this attack; I add the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Tactical Assessment\", {\r\n\t\tname : \"Tactical Assessment\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription: desc(\"When I make an Investigation, History, or Insight check, I can add a superiority die to it\")\r\n\t});\r\n}\r\n\r\n// Fighter Subclasses\r\nAddSubClass(\"fighter\", \"psi warrior\", {\r\n\tregExpSearch : /^(?=.*\\bpsi(onic)?s?\\b)(?=.*warrior).*$/i,\r\n\tsubname : \"Psi Warrior\",\r\n\tsource : [[\"T\", 42]],\r\n\tfullname : \"Psi Warrior\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Energy Dice\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain twice my proficiency bonus of psionic energy dice (PsiD) that fuel my psionics\",\r\n\t\t\t\t\"I regain all expended psionic energy dice after a long rest\",\r\n\t\t\t\t\"As a bonus action once per short rest, I can regain one expended psionic energy die\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 5 ? \"d6\" : n < 11 ? \"d8\" : n < 17 ? \"d10\" : \"d12\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Regain 1 Psionic Energy Die\"]],\r\n\t\t\tusages : \"Proficiency Bonus \\xD7 2 per \",\r\n\t\t\tusagescalc : \"event.value = Number(How('Proficiency Bonus'))*2\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Regain 1 Psionic Energy die\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psionic Power: Protective Field\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"1 psionic energy die\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce it\",\r\n\t\t\t\t\"I reduce the damage by the roll of the one psionic energy die I expend + my Int mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"Protective Field\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Psionic Power: Psionic Strike\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"1 psionic energy die\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once on each of my turns after I hit a target in 30 ft and damage it with a weapon,\",\r\n\t\t\t\t\"I can expend a psionic energy die to deal it the die roll + my Int mod in force damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.3\" : {\r\n\t\t\tname : \"Psionic Power: Telekinetic Movement\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can move a Large or smaller loose object or one willing creature in 30 ft\",\r\n\t\t\t\t\"I must be able to see the target and can move it up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"If it is a Tiny object, I can also move it to or from my hand; I can't move myself this way\",\r\n\t\t\t\t\"I can do this once per short rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Telekinetic Movement\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Telekinetic Adept: Psi-Powered Leap\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I gain a flying speed of twice my walking speed until the turn ends\",\r\n\t\t\t\t\"I can do this once per short rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Psi-Powered Leap\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature7.2\" : {\r\n\t\t\tname : \"Telekinetic Adept: Telekinetic Thrust\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tadditional: \"DC 8 + Prof B. + Int mod\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I deal damage with my Psionic Strike, I can have the target make a Strength save\",\r\n\t\t\t\t\"If failed, I knock the target prone or move it up to 10 ft in any direction horizontally\"\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guarded Mind\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend a psionic energy die to end all effects on me causing charmed or frightened\",\r\n\t\t\t\t\"I can do this if at the start of my turn; I also gain resistance to psychic damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Psychic\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Bulwark of Force\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can choose up to my Int mod of creatures (min 1) I can see in 30 ft\",\r\n\t\t\t\t\"This can include me; Each chosen gains half cover for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Telekinetic Master\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Telekinesis, requiring no spell slot or components, with Int spellcasting ability\",\r\n\t\t\t\t\"As a bonus action while concentrating on this spell, I can make one weapon attack\",\r\n\t\t\t\t\"I can cast Telekinesis once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Telekinetic Master\",\r\n\t\t\t\tspells : [\"telekinesis\"],\r\n\t\t\t\tselection : [\"telekinesis\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"telekinesis\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tchanges : \"Using Telekinetic Master, I can cast Telekinesis without requiring components or spell slots.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"Weapon Attack while Telekinesis conc.\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"rune knight\", {\r\n\tregExpSearch : /^(?=.*rune)(?=.*knight).*$/i,\r\n\tsubname : \"Rune Knight\",\r\n\tsource : [[\"T\", 44]],\r\n\tfullname : \"Rune Knight\",\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with smith's tools and I learn to speak, read, and write Giant\"),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tlanguageProfs : [\"Giant\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rune Carver\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn how to use magic runes to enhance my gear that I can wear or hold in my hand\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a rune and add it to the third page',\r\n\t\t\t\t\"When I finish a long rest, I can inscribe each rune I know upon a different item I touch\",\r\n\t\t\t\t\"Each item can hold only one rune and remains there until I finish a long rest\",\r\n\t\t\t\t\"Runes inscribed on a carried object grant both a passive and a limited-use active effect\",\r\n\t\t\t\t\"Whenever I gain a fighter level, I can swap a rune I know for another\",\r\n\t\t\t\t\"The DC for a rune's abilities is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5) + \" runes known\"\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\textraname : \"Rune Knight 3\",\r\n\t\t\textrachoices : [\"Cloud Rune\", \"Fire Rune\", \"Frost Rune\", \"Stone Rune\", \"Hill Rune (prereq: level 7 fighter)\", \"Storm Rune (prereq: level 7 fighter)\"],\r\n\t\t\t\"cloud rune\" : {\r\n\t\t\t\tname : \"Cloud Rune\",\r\n\t\t\t\tsource : [[\"T\", 44]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a deceptiveness reminiscent of cloud giants\",\r\n\t\t\t\t\t\"I always gain advantage on Dexterity (Sleight of Hand) and Charisma (Deception) checks\",\r\n\t\t\t\t\t\"As a reaction when I or another I can see within 30 ft is hit by an attack, I can invoke this\",\r\n\t\t\t\t\t\"I select another target for the attack within 30 ft of me, using the same roll (ignore range)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Sleight of Hand\", true], [\"Deception\", true] ]\r\n\t\t\t},\r\n\t\t\t\"fire rune\" : {\r\n\t\t\t\tname : \"Fire Rune\",\r\n\t\t\t\tsource : [[\"T\", 44]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain craftsmanship reminiscent of great smiths\",\r\n\t\t\t\t\t\"I always double my proficiency bonus when making an ability check with a tool\",\r\n\t\t\t\t\t\"When I hit a creature with a weapon attack, I can invoke it to summon fiery shackles\",\r\n\t\t\t\t\t\"It takes an extra 2d6 fire damage and must make a Str save or be restrained for 1 min\",\r\n\t\t\t\t\t\"While restrained, the creature takes 2d6 fire damage at the start of each of its turns\",\r\n\t\t\t\t\t\"It can repeat the save at the end of each of its turns, banishing the shackles on a success\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t\t},\r\n\t\t\t\"frost rune\" : {\r\n\t\t\t\tname : \"Frost Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain might of those surviving wintry wilderness\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Animal Handling) and Charisma (Intimidation) checks\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke this to gain +2 on Str and Con checks and saves for 10 min\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Animal Handling\", true], [\"Intimidation\", true] ]\r\n\t\t\t},\r\n\t\t\t\"stone rune\" : {\r\n\t\t\t\tname : \"Stone Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain judiciousness reminiscent of stone giants\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Insight) checks and I gain darkvision out to 120 ft\",\r\n\t\t\t\t\t\"As a reaction when a creature I can see ends it turn within 30 ft, I can invoke this rune\",\r\n\t\t\t\t\t\"This causes the creature to make a Wisdom save or be charmed by me for 1 minute\",\r\n\t\t\t\t\t\"While charmed, it descends into a dreamy stupor, becoming incapacitated and has speed 0\",\r\n\t\t\t\t\t\"It can repeat the save at the end of each of its turns, ending the effect on a success\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tvision : [[\"Darkvision\", 120]],\r\n\t\t\t\tadvantages : [ [\"Insight\", true] ]\r\n\t\t\t},\r\n\t\t\t\"hill rune (prereq: level 7 fighter)\" : {\r\n\t\t\t\tname : \"Hill Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I gain a resilience reminiscent of hill giants\",\r\n\t\t\t\t\t\"I always gain advantage on saves against being poisoned and resistance to poison damage\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to gain resistance to bludg/slash/pierc damage for 1 min\"\r\n\t\t\t\t]),\r\n\t\t\t\tprereqeval : function(v) { return classes.known.fighter.level >= 7; },\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tdmgres : [\"Poison\"],\r\n\t\t\t\tsavetxt : { adv_vs : [\"poison\"] }\r\n\t\t\t},\r\n\t\t\t\"storm rune (prereq: level 7 fighter)\" : {\r\n\t\t\t\tname : \"Storm Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I can glimpse the future like storm giants\",\r\n\t\t\t\t\t\"I always gain adv. on Int (Arcana) checks and I can't be surprised while not incapacitated\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to enter a prophetic state for 1 min or till incapacitated\",\r\n\t\t\t\t\t\"While in this state, I can use a reaction to cause a roll to gain advantage or disadvantage\",\r\n\t\t\t\t\t\"I can do this for attacks, saves, and checks of myself or others I can see within 60 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\tprereqeval : function(v) { return classes.known.fighter.level >= 7; },\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Arcana\", true] ],\r\n\t\t\t\tsavetxt : { immune : [\"surprised\"] },\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Giant's Might\",\r\n\t\t\tsource : [[\"T\", 45]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue myself with giant magic for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 Space permitted, I grow to a larger size category along with everything I'm wearing\",\r\n\t\t\t\t\" \\u2022 I have advantage on my Strength check and saves\",\r\n\t\t\t\t\" \\u2022 My weapon and unarmed strike attacks deal extra damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 18 ? \"Large\" : \"Huge\") + \", +1d\" + (n < 10 ? 6 : n < 18 ? 8 : 10) + \" damage\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { text : [\"Adv. on Str saves in Giant's Might\"] },\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.fighter && classes.known.fighter.level >= 3 && v.isWeapon && (/giant('s)? might/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tvar GMdmgDie = classes.known.fighter.level < 10 ? 'd6' : classes.known.fighter.level < 18 ? 'd8' : 'd10';\r\n\t\t\t\t\t\t\tvar dmgDieRx = RegExp('(\\\\d+)' + GMdmgDie, 'i');\r\n\t\t\t\t\t\t\tif (dmgDieRx.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tvar dmgDieMatch = fields.Damage_Die.match(dmgDieRx);\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(dmgDieRx, Number(dmgDieMatch[1]) + 1 + GMdmgDie);\r\n\t\t\t\t\t\t\t\tfields.Description = fields.Description.replace(/Versatile \\((\\d+d\\d+)\\)/i, 'Versatile ($1+1' + GMdmgDie + ')');\r\n\t\t\t\t\t\t\t} else if (!isNaN(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = 1 + GMdmgDie + \"+\" + fields.Damage_Die;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1' + GMdmgDie + ' damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (classes.known.fighter.level >= 18 && v.isMeleeWeapon) fields.Description += (fields.Description ? '; ' : '') + '+5 ft reach';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words \\\"Giant Might\\\" in the name of a weapon or unarmed strike, it gets treated as a weapon that I use while imbued by my Giant's Might feature. It adds +1d6 weapon damage. From 10th-level onwards, this increases to +1d8 damage. From 18th-level onwards, this increases to +1d10 damage and my reach increases by 5 ft (for melee weapons).\",\r\n\t\t\t\t\t8\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Runic Shield\",\r\n\t\t\tsource : [[\"T\", 45]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see a creature within 60 ft get hit by an attack, I can protect it\",\r\n\t\t\t\t\"The attacker must reroll its attack roll and use the new roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Great Stature\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My runes permanently make me grow; I add 3d4 inches to my length\",\r\n\t\t\t\t\"In addition, the extra weapon damage I deal with Giant Might increases to 1d8\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Master of Runes\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I can now invoke each of my runes twice per short rest instead of once\")\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Runic Juggernaut\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Giant's Might now adds +1d10 weapon damage, and can make me grow up to Huge\",\r\n\t\t\t\t\"While I'm Huge, my reach increases by 5 ft\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n// >>> Monk Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Monk Optional Class Features\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Dedicated Weapon\", {\r\n\tname : \"Dedicated Weapon\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"T\", 48]],\r\n\tdescription : desc([\r\n\t\t\"When I finish a short or long rest, I can focus ki and touch one simple or martial weapon\",\r\n\t\t\"From then on, until I use this feature again, this weapon counts as a monk weapon for me\",\r\n\t\t\"I have to be proficient with the weapon and it can't have the heavy or special property\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.monkweapon && !v.theWea.special && classes.known.monk && classes.known.monk.level && (/dedicated/i).test(v.WeaponTextName) && fields.Proficiency && (/simple|martial/i).test(v.theWea.type) && !(/\\b(heavy|special)\\b/i).test(fields.Description)) {\r\n\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Dedicated\" in the name of a simple or martial weapon that I\\'m proficient with and that doesn\\'t have the heavy or special property, it will be treated as a monk weapon.',\r\n\t\t\t1\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"unarmored movement\"], true, \"Ki-Fueled Attack\", {\r\n\tname : \"Ki-Fueled Attack\",\r\n\textraname : \"Optional Monk 3\",\r\n\tsource : [[\"T\", 48]],\r\n\tdescription : desc([\r\n\t\t\"If I use any ki points during my action on my turn, I can make an attack as a bonus action\",\r\n\t\t\"This attack has to be in the same turn and with an unarmed strike or a monk weapon\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 3rd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"deflect missiles\"], true, \"Quickened Healing (2 ki points)\", {\r\n\tname : \"Quickened Healing\",\r\n\textraname : \"Optional Monk 4\",\r\n\tsource : [[\"T\", 49]],\r\n\tdescription : \" [2 ki points]\\n   As an action, I can regain HP equal to the roll of my martial arts die + Proficiency Bonus\",\r\n\taction : [[\"action\", \"\"]]\r\n}, \"Optional 4th-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"slow fall\"], true, \"Focused Aim (1-3 ki points)\", {\r\n\tname : \"Focused Aim\",\r\n\textraname : \"Optional Monk 5\",\r\n\tsource : [[\"T\", 49]],\r\n\tdescription : \" [1-3 ki points]\\n   When I miss an attack roll, I can spend ki to increase the roll by +2 per ki point (max +6)\",\r\n\tprereqeval : function (v) { return classes.known.monk.level >= 5 ? true : \"skip\"; }\r\n}, \"Optional 5th-level monk features\");\r\n\r\n// Monk Subclasses\r\nAddSubClass(\"monk\", \"way of mercy\", {\r\n\tregExpSearch : /^(?=.*mercy)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Mercy\",\r\n\tsubnameShort: \"Mercy\",\r\n\tsource : [[\"T\", 49]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Implements of Mercy\",\r\n\t\t\tsource : [[\"T\", 49]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Insight, Medicine, and herbalism kit; I have a special Merciful Mask\"\r\n\t\t\t]),\r\n\t\t\tskills : [\"Insight\", \"Medicine\"],\r\n\t\t\ttoolProfs : [\"Herbalism kit\"],\r\n\t\t\t\"hands of healing\" : {\r\n\t\t\t\tname : \"Hands of Healing\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"T\", 49]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"As an action, I can spend 1 ki point to touch a creature and restore a number of its HP\";\r\n\t\t\t\t\tvar b6 = \"It also recovers from one disease or being blinded, deafened, paralyzed, poisoned or stunned\";\r\n\t\t\t\t\tvar c = \"When I use Flurry of Blows, I can do this instead of one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, c] :\r\n\t\t\t\t\t\t[a, b6, n < 11 ? c : c.replace(\"one\", \"each\")]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; heal 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wisdom modifier\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"hands of harm\" : {\r\n\t\t\t\tname : \"Hands of Harm\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"When I hit a creature with an unarmed strike, I can spend 1 ki point to deal extra damage\";\r\n\t\t\t\t\tvar b6 = \"I can also subject the target to the poisoned condition until the end of my next turn\";\r\n\t\t\t\t\tvar c11 = \"When I use Flurry of Blows, I can do this with one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\tvar d = \"I can use this feature only once per turn\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, d] :\r\n\t\t\t\t\t\tn < 11 ? [a, b6, d] :\r\n\t\t\t\t\t\t[a, b6, c11, d]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wis mod necrotic damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hands of healing\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"hands of harm\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Physician's touch\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Hand of Healing also ends 1 disease, blinded, deafened, paralyzed, poisoned or stunned\",\r\n\t\t\t\t\"Hand of Harm also causes target to be poisoned until the end of my next turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Flurry of Healing and Harm\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use Hand of Healing instead of each Flurry of Blows unarmed strike without ki cost\",\r\n\t\t\t\t\"I can use Hand of Harm on one Flurry of Blows unarmed strike without ki cost\"\r\n\t\t\t]),\r\n\t\t\t\"hand of ultimate mercy\" : {\r\n\t\t\t\tname : \"Hand of Ultimate Mercy\",\r\n\t\t\t\textraname : \"Way of Mercy 17\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can spend 5 ki points and touch a creature that died in the last 24 hours\",\r\n\t\t\t\t\t\"The creature returns to life and regains 4d10 + my Wisdom modifier in hit points\",\r\n\t\t\t\t\t\"It is also cured of all these conditions: blinded, deafened, paralyzed, poisoned, and stunned\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : \"5 ki points\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hand of ultimate mercy\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the astral self\", {\r\n\tregExpSearch : /^(?=.*astral)(?=.*(self|projection|travel))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Astral Self\",\r\n\tsubnameShort: \"Astral Self\",\r\n\tsource : [[\"T\", 50]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arms of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : ' [1 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use my ki to summon the arms of my astral self for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\t\tregExpSearch : /^(?=.*\\bastral\\b)(?=.*\\barms?\\b).*$/i,\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\trange : \"Melee (+5 ft)\",\r\n\t\t\t\tdamage : [1, \"\", \"Force\"],\r\n\t\t\t\tdescription : \"+5 ft reach; Uses Str, Dex, or Wis\",\r\n\t\t\t\tisAstralArms : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"astral arms\" : {\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\textraname : \"Way of the Astral Self 3\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms to hover next to or over my own arms\",\r\n\t\t\t\t\t\"When I summon them, all creatures of my choice I can see in 10 ft must make a Dex save\",\r\n\t\t\t\t\t\"If failed, they take twice my martial arts die in force damage\",\r\n\t\t\t\t\t\"I can use the arms to make unarmed strikes, using Wisdom instead of Strength/Dexterity\",\r\n\t\t\t\t\t\"I have +5 ft reach on attacks made with my astral arms and they deal force damage\",\r\n\t\t\t\t\t\"They last for 10 minutes or until I'm incapacitated or die; I choose their appearance\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 2d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" force damage on summon\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral arms\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Visage of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : ' [1 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use my ki to summon the visage of my astral self for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage\", \"Summon Astral Arms\"]],\r\n\t\t\t\"astral visage\" : {\r\n\t\t\t\tname : \"Astral Visage\",\r\n\t\t\t\textraname : \"Way of the Astral Self 6\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action (or when summoning my astral arms), I can summon my astral visage\",\r\n\t\t\t\t\t\"It lasts for 10 minutes or until I'm incapacitated or die; I choose its appearance\",\r\n\t\t\t\t\t\"My astral visage covers my face like a helmet or mask and grants me the following benefits:\",\r\n\t\t\t\t\t\" \\u2022 Astral Sight: I can see normally in normal and magical darkness to a distance of 120 ft\",\r\n\t\t\t\t\t\" \\u2022 Wisdom of the Spirit: I have advantage on Wisdom (Insight) and Charisma (Intimidation)\",\r\n\t\t\t\t\t\" \\u2022 Word of the Spirit: I can have only one target I can see in 60 ft hear me, or all in 300 ft\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral visage\" }]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Body of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 51]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : ' [see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"When I have both my astral arms and visage summoned, my astral body appears as well\",\r\n\t\t\t\t\"This spectral body covers me like an armor, connecting my astral arms and astral visage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"Deflect Energy\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Astral Body\",\r\n\t\t\t\textraname : \"Way of the Astral Self 11\",\r\n\t\t\t\tsource : [[\"T\", 51]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage are present]\" + desc([\r\n\t\t\t\t\t\" \\u2022 Deflect Energy: As a reaction when I take damage, I can reduce it by 1d10 + Wis mod\",\r\n\t\t\t\t\t\"   I can only do this if the damage I take is acid, cold, fire, force, lightning, or thunder\",\r\n\t\t\t\t\t\" \\u2022 Empowered Arms: Once per my turn, I can add martial art die to astral arms damage\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isAstralArms && classes.known.monk && classes.known.monk.level) {\r\n\t\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once on each of my turns +1d' + aMonkDie + ' damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once on each of my turns when I hit a target with my astral arms, I can add my martial arts die to the damage dealt.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Awakened Astral Self\",\r\n\t\t\tsource : [[\"T\", 51]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : ' [5 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use 5 ki points to summon astral arms and visage with benefits\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Awakened Astral Self\",\r\n\t\t\t\textraname : \"Way of the Astral Self 17\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms and astral visage, with extra benefits:\",\r\n\t\t\t\t\t\" \\u2022 Armor of the Spirit: I gain a +2 bonus to my armor class\",\r\n\t\t\t\t\t\" \\u2022 Astral Barrage: I can do three attacks with the Attack action, if all are with astral arms\",\r\n\t\t\t\t\t\"This lasts for 10 minutes or until I'm incapacitated or die\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Paladin Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Paladin Optional Class Features\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Additional Paladin Spells\", {\r\n\tname : \"Additional Paladin Spells\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"T\", 52]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gentle repose\", \"prayer of healing\", \"warding bond\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the paladin class with the following spells (spell level in brackets): Gentle Repose (2), Prayer of Healing (2), and Warding Bond (2).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\n// Blind Fighting & Interception already added in the Fighter Options section\r\nAddFightingStyle([\"paladin\"], \"Blessed Warrior\", {\r\n\tname : \"Blessed Warrior Fighting Style\",\r\n\tsource : [[\"T\", 52], [\"UA:CFV\", 6]],\r\n\tdescription : desc([\r\n\t\t\"I learn two cleric cantrips that count as paladin spells for me and use Cha for spellcasting\",\r\n\t\t\"Whenever I gain a paladin level, I can swap one of these for another cleric cantrip\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Blessed Warrior\",\r\n\t\t\"class\" : \"cleric\",\r\n\t\tlevel : [0, 0],\r\n\t\ttimes : 2\r\n\t}]\r\n});\r\nAddFeatureChoice(ClassList.paladin.features[\"subclassfeature3.0-channel divinity\"], true, \"Harness Divine Power\", {\r\n\tname : \"Channel Divinity: Harness Divine Power\",\r\n\textraname : \"Optional Paladin 3\",\r\n\tsource : [[\"T\", 52]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can expend a use of my channel divinity to regain one used spell slot\",\r\n\t\t\"The level of this spell slot can be no more than half my Proficiency Bonus (rounded up)\",\r\n\t\t\"I can only do this so many times per long rest, even if I have uses of channel divinity left\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : levels.map(function(n) {\r\n\t\treturn n < 3 ? \"\" : n < 7 ? 1 : n < 15 ? 2 : 3;\r\n\t}),\r\n\trecovery : \"long rest\"\r\n}, \"Optional 3rd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features['divine health'], true, \"Martial Versatility\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Paladin 4\",\r\n\tsource : [[\"T\", 53]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the paladin class, I can change my paladin fighting style\",\r\n\tprereqeval : function (v) { return classes.known.paladin.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level paladin features\");\r\n\r\n// Paladin Subclasses\r\nAddSubClass(\"paladin\", \"oath of the watchers\", {\r\n\tregExpSearch : /^(?=.*watchers)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Watchers\",\r\n\tsubnameShort: \"Watchers\",\r\n\tsource : [[\"T\", 54]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Watcher's Will\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As an action, Cha mod of creatures I see in 30 ft adv. on Int/Wis/Cha saves for 1 min\"),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"alarm\", \"detect magic\", \"moonbeam\", \"see invisibility\", \"counterspell\", \"nondetection\", \"aura of purity\", \"banishment\", \"hold monster\", \"scrying\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure the Extraplanar\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all aberration, celestial, elemental, fey, fiend in 30 ft must make Wis save\",\r\n\t\t\t\t\"Succeeds if it can't hear me; On fail, turned for 1 minute or until it takes any damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Sentinel\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, chosen creatures in range and I add my Prof Bonus to Initiative\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"prof\", text : \"I can add my Proficiency Bonus to initiative rolls.\" }]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Vigilant Rebuke\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another I can see succeeds a Int, Wis, or Cha save, I can rebuke\",\r\n\t\t\t\t\"The creature that forced the saving throw takes 2d8 + my Charisma mod force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Mortal Bulwark\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 Truesight 120 ft; Adv. on attacks vs. aberrations, celestials, elementals, fey, and fiends\",\r\n\t\t\t\t\" \\u2022 When I hit and damage a creature with an attack, I can banish it if it fails a Cha save\",\r\n\t\t\t\t\"   It's banished to its native plane if not there now; It's immune for 24 hours on a success\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 5+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Ranger Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Ranger Optional Class Features\r\nvar TCoE_Deft_Explorer = function () {\r\n\tvar a = {\r\n\t\tname : \"Deft Explorer: Canny\",\r\n\t\tsource : [[\"T\", 56]],\r\n\t\tdescription: desc(\"I learn two languages and gain expertise with one skill I'm proficient with\"),\r\n\t\tlanguageProfs : [2],\r\n\t\tskillstxt : \"Expertise with one skill I'm proficient with\",\r\n\t\tadditional : \"extra benefits at 6th and 10th level\",\r\n\t\textraTimes : [1],\r\n\t\textraname : \"Canny (select skill for expertise)\",\r\n\t\textrachoices : [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\r\n\t\t\"roving benefit\" : {\r\n\t\t\tname : \"Roving\",\r\n\t\t\textraname : \"Deft Explorer Benefit 6\",\r\n\t\t\tsource : [[\"T\", 56]],\r\n\t\t\tdescription: desc(\"I gain +5 ft walking speed and climbing and swimming speed equal to my walking speed\"),\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : \"+5\", enc : \"+5\" },\r\n\t\t\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\t\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"tireless benefit\" : {\r\n\t\t\tname : \"Tireless\",\r\n\t\t\textraname : \"Deft Explorer Benefit 10\",\r\n\t\t\tsource : [[\"T\", 56]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I finish a short rest, I reduce my exhaustion level, if any, by 1\",\r\n\t\t\t\t\"As an action a number of times per long rest, I can give myself temp HP of 1d8 + Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : \"1d8 + Wis Mod\",\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\tautoSelectExtrachoices : [{\r\n\t\t\textrachoice : \"roving benefit\",\r\n\t\t\tminlevel : 6\r\n\t\t}, {\r\n\t\t\textrachoice : \"tireless benefit\",\r\n\t\t\tminlevel : 10\r\n\t\t}]\r\n\t}\r\n\tfor (var i = 0; i < a.extrachoices.length; i++) {\r\n\t\tvar attr = a.extrachoices[i].toLowerCase();\r\n\t\ta[attr] = {\r\n\t\t\tname : a.extrachoices[i] + \" Expertise\",\r\n\t\t\textraname : \"Deft Explorer Benefit 1\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : a.source,\r\n\t\t\tskills : [[a.extrachoices[i], \"only\"]],\r\n\t\t\tprereqeval : function(v) {\r\n\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? false : v.skillExpertiseLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn a;\r\n}();\r\nCreateClassFeatureVariant(\"ranger\", \"natural explorer\", \"Deft Explorer\", TCoE_Deft_Explorer);\r\nvar TCoE_Favored_Foe = {\r\n\tname : \"Favored Foe\",\r\n\tsource : [[\"T\", 56]],\r\n\tdescription : desc([\r\n\t\t\"When I hit a creature with an attack roll, I can mark it as my favored enemy for 1 min\",\r\n\t\t\"I deal extra damage to it when I mark it and the first time I hit a marked on my turn\",\r\n\t\t\"Keeping a creature marked as favored enemy requires me to concentrate, like on a spell\"\r\n\t]),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn \"+1d\" + (n < 6 ? 4 : n < 14 ? 6 : 8) + \" damage\";\r\n\t}),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isSpell && (classes.known.rangerua || classes.known.ranger) && /favou?red.{1,2}(foe|enemy)/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +1d' + (rngrLvl < 6 ? 4 : rngrLvl < 14 ? 6 : 8) + ' damage';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Favored Foe\" or \"Favored Enemy\" in the name of a weapon, it gets the bonus damage I do against marked favored enemies added to its description.'\r\n\t\t]\r\n\t}\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"favored enemy\", \"Favored Foe\", TCoE_Favored_Foe);\r\nvar TCoE_Additional_Ranger_Spells = {\r\n\tname : \"Additional Ranger Spells\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"searing smite\", \"aid\", \"enhance ability\", \"gust of wind\", \"magic weapon\", \"elemental weapon\", \"meld into stone\", \"revivify\", \"dominate beast\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the ranger class with the following spells (spell level in brackets): Entangle (1), Searing Smite (1), Aid (2), Enhance Ability (2), Gust of Wind (2), Magic Weapon (2), Elemental Weapon (3), Meld into Stone (3), Revivify (3), Dominate Beast (4), and Greater Restoration (5).\"\r\n\t\t]\r\n\t},\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 2) || (classes.known.rangerau && classes.known.rangerau.level >= 2) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Additional Ranger Spells (prereq: level 2 ranger)\", TCoE_Additional_Ranger_Spells, \"Optional ranger features\");\r\n// Blind Fighting & Thrown Weapon Fighting already added in the Fighter Options section\r\nAddFightingStyle([\"ranger\"], \"Druidic Warrior\", {\r\n\tname : \"Druidic Warrior Fighting Style\",\r\n\tsource : [[\"T\", 57], [\"UA:CFV\", 7]],\r\n\tdescription : desc([\r\n\t\t\"I learn two druid cantrips that count as ranger spells for me and use Wis for spellcasting\",\r\n\t\t\"Whenever I gain a ranger level, I can swap one of these for another druid cantrip\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druidic Warrior\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\ttimes : 2\r\n\t}]\r\n});\r\nvar TCoE_Ranger_Spellcasting_Focus = {\r\n\tname : \"Spellcasting Focus\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"T\", 57], [\"UA:CFV\", 8]],\r\n\tdescription: desc(\"I can use a druidic focus as a spellcasting focus for my ranger spells\"),\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 2) || (classes.known.rangerau && classes.known.rangerau.level >= 2) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Spellcasting Focus (prereq: level 2 ranger)\", TCoE_Ranger_Spellcasting_Focus, \"Optional ranger features\");\r\nvar TCoE_Primal_Awareness = {\r\n\tname : \"Primal Awareness\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : desc([\r\n\t\t\"I get bonus spells known, which do not count against the number of spells I can know\",\r\n\t\t\"In addition, I can cast each once per long rest without expending a spell slot\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the bonus spells from the normally selectable list\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I know the following spells, without them counting towards the maximum number of spells I can know: Speak with Animals, Beast Sense, Speak with Plants, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Primal Awareness\",\r\n\t\tspells : [\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tselection : [\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : levels.map(function (n) {\r\n\t\t\treturn n < 5 ? 1 : n < 9 ? 2 : n < 13 ? 3 : n < 17 ? 4 : 5;\r\n\t\t})\r\n\t}]\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"primeval awareness\", \"Primal Awareness\", TCoE_Primal_Awareness);\r\nvar TCoE_Ranger_Martial_Versatility = {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Ranger 4\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the ranger class, I can change my ranger fighting style\",\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 4) || (classes.known.rangerau && classes.known.rangerau.level >= 4) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Martial Versatility (prereq: level 4 ranger)\", TCoE_Ranger_Martial_Versatility, \"Optional ranger features\");\r\nvar TCoE_Natures_Veil = {\r\n\tname : \"Nature's Veil\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can become invisible along with any equipment I'm wearing/carrying\",\r\n\t\t\"This invisibility lasts until the start of my next turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"hide in plain sight\", \"Nature's Veil\", TCoE_Natures_Veil);\r\n\r\n// Add the Ranger alternative class features also to the Revised Ranger, if it exists after all scripts have ran\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList[\"rangerua\"]) return;\r\n\tCreateClassFeatureVariant(\"rangerua\", \"natural explorer\", \"Deft Explorer\", TCoE_Deft_Explorer);\r\n\r\n\t// Add Favored Foe as an alternative choice (can't be done by automation because of choices) and add \"Favored Foe\" variant option\r\n\t// Move some attributes from the main object to the favored enemy choice objects\r\n\t['additional', 'languageProfs', 'calcChanges'].forEach( function(attr) {\r\n\t\tvar fea = ClassList.rangerua.features[\"favored enemy\"];\r\n\t\tif (!fea[attr]) return;\r\n\t\t// Move the attribute to each of the choices\r\n\t\tfor (var i = 0; i < fea.choices.length; i++) {\r\n\t\t\tvar aCh = fea[fea.choices[i].toLowerCase()];\r\n\t\t\tif (aCh.source) continue; // don't do options that are not part of the original entry (which don't have a source)\r\n\t\t\taCh[attr] = fea[attr];\r\n\t\t}\r\n\t\t// Now delete the attributes from the parent object\r\n\t\tdelete fea[attr];\r\n\t});\r\n\t// Now add the alternative class feature as another choice\r\n\tAddFeatureChoice(ClassList.rangerua.features[\"favored enemy\"], false, \"[alternative feature] Favored Foe\", TCoE_Favored_Foe);\r\n\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Additional Ranger Spells (prereq: level 2 ranger)\", TCoE_Additional_Ranger_Spells, \"Optional ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Spellcasting Focus (prereq: level 2 ranger)\", TCoE_Ranger_Spellcasting_Focus, \"Optional ranger features\");\r\n\tCreateClassFeatureVariant(\"rangerua\", \"primeval awareness\", \"Primal Awareness\", TCoE_Primal_Awareness);\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Martial Versatility (prereq: level 4 ranger)\", TCoE_Ranger_Martial_Versatility, \"Optional ranger features\");\r\n\tCreateClassFeatureVariant(\"rangerua\", \"hide in plain sight\", \"Nature's Veil\", TCoE_Natures_Veil);\r\n});\r\n\r\n// Ranger (Beast Master) alternative class feature\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tvar TCoE_Primal_Companion_Attributes = {\r\n\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\tlanguages : \"understands the languages of its master but can't speak\",\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Master\",\r\n\t\t\tdescription : \"The beast obeys the commands of its master and shares its proficiency bonus. It takes its turn during that of its master, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its master takes a bonus action to command it to take another action. Its master can also forgo one attack during their Attack action to command the beast to take the Attack action. If its master is incapacitated, the beast can take any action, not just Dodge. The beast vanishes if its master dies.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Primal Rebirth\",\r\n\t\t\tdescription : \"Within an hour of the beast's death, its master can take an action to touch it and expend a spell slot to have it return to full HP after 1 minute.\"\r\n\t\t}, {\r\n\t\t\tname : \"Primal Bond\",\r\n\t\t\tdescription : \"The beast adds it proficiency bonus to all its ability check and saving throws.\"\r\n\t\t}, {\r\n\t\t\tname : \"Exceptional Training (Beast Master 7)\",\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : \"The beast's attacks count as magical for overcoming resistances and immunities.\",\r\n\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\tAddString(prefix + \"Comp.Use.Attack.1.Description\", \"Counts as magical\", \"; \");\r\n\t\t\t},\r\n\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\tRemoveString(prefix + \"Comp.Use.Attack.1.Description\", \"Counts as magical\");\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\tname : \"Bestial Fury (Beast Master 11)\",\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : \"When commanded to take the Attack action, the beast can make 2 attacks as part of its Attack action.\",\r\n\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\tValue(prefix + \"Comp.Use.Attack.perAction\", 2);\r\n\t\t\t},\r\n\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\tValue(prefix + \"Comp.Use.Attack.perAction\", 1);\r\n\t\t\t}\r\n\t\t}],\r\n\t\taddMod : [\r\n\t\t\t{ type : \"skill\", field : \"all\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" },\r\n\t\t\t{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" },\r\n\t\t\t{ type : \"save\", field : \"all\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" }\r\n\t\t],\r\n\t\tcalcChanges : {\r\n\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\tvar multiplier = What(prefix + \"Comp.Use.HD.Die\") == 6 ? [4, \"four\"] : [5, \"five\"];\r\n\t\t\t\tvar rngrLvlM = multiplier[0] * rngrLvl;\r\n\t\t\t\tHDobj.alt.push(multiplier[0] + rngrLvlM);\r\n\t\t\t\tHDobj.altStr.push(\" = \" + multiplier[0] + \" as a base\\n + \" + multiplier[0] + \" \\xD7 \" + rngrLvl + \" from \" + multiplier[1] + \" times its master's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t},\r\n\t\t\tsetAltHp : true\r\n\t\t}\r\n\t};\r\n\tCreateClassFeatureVariant(\"ranger-beast master\", \"subclassfeature3\", \"Primal Companion\", {\r\n\t\tname : \"Primal Companion\",\r\n\t\tsource : [[\"T\", 61]],\r\n\t\tdescription : desc([\r\n\t\t\t\"When I finish a long rest, I can summon a primal beast of the land, sea, or sky in 5 ft\",\r\n\t\t\t\"I determine what animal it looks like, but it always has primal markings\",\r\n\t\t\t\"It is friendly to me and my allies, obeys my commands, and acts during my turn\",\r\n\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\"I can also forgo one attack of my Attack action to command it to take the Attack action\",\r\n\t\t\t\"It can take reactions and move on its turn even if I don't command it\",\r\n\t\t\t\"As an action within 1 hour of it dying, I can touch it and expend a spell slot to revive it\",\r\n\t\t\t\"It then returns to full HP in 1 minute; It vanishes if I summon another one or if I die\"\r\n\t\t]),\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \" (command)\"],\r\n\t\t\t[\"action\", \" (revive)\"]\r\n\t\t],\r\n\t\tcreaturesAdd : [\r\n\t\t\t[\"Beast of the Land\", true],\r\n\t\t\t[\"Beast of the Sea\", true],\r\n\t\t\t[\"Beast of the Sky\", true]\r\n\t\t],\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Beast of the Land\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\thp : 20,\r\n\t\t\thd : [3, 8],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"40 ft, climb 40 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Maul\",\r\n\t\t\t\tability : 5,\r\n\t\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"+1d6 damage if hits after moving 20 ft straight in same round, see Charge\",\r\n\t\t\t\ttooltip : \"If the beast moves at least 20 feet straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against your spell save DC or be knocked prone.\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tability : 5,\r\n\t\t\t\tdamage : [\"Str save\", \"\", \"Knocked prone\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"Str save or knocked prone; Only if maul hits after moving 20 ft straight in same round\",\r\n\t\t\t\ttooltip : \"If the beast moves at least 20 feet straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against your spell save DC or be knocked prone.\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tdescription : \"If the beast moves at least 20 ft straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against my spell save DC or be knocked prone.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits.map( function(n) {\r\n\t\t\t\tif (!typePF && /Exceptional Training/i.test(n.name)) {\r\n\t\t\t\t\tvar a = newObj(n);\r\n\t\t\t\t\ta.description = \"The beast's attacks count as magical.\";\r\n\t\t\t\t\treturn a;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn n;\r\n\t\t\t\t}\r\n\t\t\t}),\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Sea\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\thp : 20,\r\n\t\t\thd : [3, 8],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"5 ft, swim 60 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Binding Strike\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 6, \"Pierc./Bludg.\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"On hit, target is grappled (escape DC is spell DC) and beast can't use attack on others\",\r\n\t\t\t\ttooltip : \"If the beast hits a target with its blinding strike, the target is grappled (escape DC equal to your spellcasting save DC). Until this grapple ends, the beast can't use this attack on another target.\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Amphibious\",\r\n\t\t\t\tdescription : \"The beast can breathe both air and water.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits,\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Sky\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 4,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"10+Dex+Prof\",\r\n\t\t\thp : 16,\r\n\t\t\thd : [3, 6],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"10 ft, fly 60 ft\",\r\n\t\t\tscores : [6, 16, 13, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Shred\",\r\n\t\t\t\tability : 2,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Flyby\",\r\n\t\t\t\tdescription : \"The beast doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits,\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}],\r\n\t\teval : function() {\r\n\t\t\t// Remove any ranger companion pages\r\n\t\t\tWhat(\"Template.extras.AScomp\").split(\",\").forEach(function (prefix) {\r\n\t\t\t\tif (What(prefix + \"Companion.Remember\") === \"companion\") {\r\n\t\t\t\t\tDoTemplate(\"AScomp\", \"Remove\", prefix, true)\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n}\r\n\r\n// Ranger Subclasses\r\nvar TCoE_Ranger_Subclass_Fey_Wanderer = AddSubClass(\"ranger\", \"fey wanderer\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*wanderer).*$/i,\r\n\tsubname : \"Fey Wanderer\",\r\n\tsource : [[\"T\", 58]],\r\n\tfullname : \"Fey Wanderer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dreadful Strikes\",\r\n\t\t\tsource : [[\"T\", 58]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My weapons deal extra psychic damage, but only once per turn per creature\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 11 ? 4 : 6) + \" psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isWeapon && (classes.known.ranger || classes.known.rangerua)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn per target +1d' + (rngrLvl < 11 ? 4 : 6) + ' psychic damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I hit a creature with a weapon, I can deal an extra 1d4 psychic damage to the target, which can take this extra damage only once per turn. From 11th-level, this damage increases to 1d6.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fey Wanderer Magic\",\r\n\t\t\tsource : [[\"T\", 58]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"charm person\", \"misty step\", \"dispel magic\", \"dimension door\", \"mislead\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\t'I gain proficiency in Deception, Performance, or Persuasion; Use \"Choose Feature\" button'\r\n\t\t\t]),\r\n\t\t\taddMod : [\"Deception\", \"Intimidation\", \"Performance\", \"Persuasion\"].map(function(skill){return { type : \"skill\", field : skill, mod : \"max(Wis|1)\", text : \"I can add my Wisdom modifier to any Charisma check I make (minimum of +1).\" };}),\r\n\t\t\tchoices : [\"Deception proficiency\", \"Performance proficiency\", \"Persuasion proficiency\"],\r\n\t\t\t\"deception proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Deception proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Deception\"]\r\n\t\t\t},\r\n\t\t\t\"performance proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Performance proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Performance\"]\r\n\t\t\t},\r\n\t\t\t\"persuasion proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Persuasion proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Persuasion\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Beguiling Twist\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves against being charmed or frightened; Below uses my save DC\",\r\n\t\t\t\t\"As a reaction when a creature I see in 120 ft succeeds its save vs. charmed or frightened,\",\r\n\t\t\t\t\"I can have another I see in 120 ft make a Wis save or be charmed/frightened (I choose)\",\r\n\t\t\t\t\"This lasts for 1 minute and the target can repeat the save at the end of each of its turns\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Fey Reinforcements\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Summon Fey; It needs no material component, nor counts against spells known\",\r\n\t\t\t\t\"Once per long rest, I can cast it without expending a spell slot\",\r\n\t\t\t\t\"When I cast it, I can have it not require concentration, but than its duration is 1 minute\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fey Reinforcements\",\r\n\t\t\t\tspells : [\"summon fey\"],\r\n\t\t\t\tselection : [\"summon fey\"],\r\n\t\t\t\tfirstCol : 'oncelr+markedbox'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"summon fey\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tduration : \"Conc,1h/1min\",\r\n\t\t\t\t\tchanges : \"Using my Fey Reinforcements class feature, I can cast Summon Fey without requiring material components and I can cast it once per long rest without requiring a spell slot. Whenever I start casting the spell, I can modify it so that it doesn't require concentration. If I do so, the spell's duration becomes 1 minute for that casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Misty Wanderer\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Misty Step without a spell slot and can bring a willing creature in 5 ft along\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"misty step\") {\r\n\t\t\t\t\t\t\tspellObj.firstCol = \"oncelr+markedbox\";\r\n\t\t\t\t\t\t\tspellObj.description = \"I and one willing creature I can see within 5 ft of me teleport 30 ft to a unoccupied space I can see\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Whenever I cast misty step, I can bring along one willing creature I can see within 5 ft of me. That creature teleports to an unoccupied space of my choice within 5 ft of my destination space.\\nI can cast Misty Step without expending a spell slot a number of times per long rest equal to my Wisdom modifier (minimum of once).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nvar TCoE_Ranger_Subclass_Swarmkeeper = AddSubClass(\"ranger\", \"swarmkeeper\", {\r\n\tregExpSearch : /swarmkeeper/i,\r\n\tsubname : \"Swarmkeeper\",\r\n\tsource : [[\"T\", 59]],\r\n\tfullname : \"Swarmkeeper\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Gathered Swarm\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tvar a = [\r\n\t\t\t\t\t\"I'm bonded to a swarm of nature spirits crawling in my space; I choose their appearance\",\r\n\t\t\t\t\t\"Once on each of my turns, I can have it assist me after I hit a creature with an attack:\",\r\n\t\t\t\t\t\" \\u2022 The target takes an extra 1d\" + (n < 11 ? 6 : 8) + \" piercing damage from the swarm\",\r\n\t\t\t\t\t\" \\u2022 The target must make a Strength save or be moved 15 ft horizontally by the swarm\",\r\n\t\t\t\t\t\" \\u2022 The swarm moves me 5 ft horizontally\" + (n < 11 ? \"\" : \" and I have half cover until my next turn starts\"),\r\n\t\t\t\t\t\"I get to choose the direction whenever the target or I'm moved by the swarm\"\r\n\t\t\t\t];\r\n\t\t\t\tif (n >= 11) a.splice(4, 0, \"   Additionally, on a failed save, I can also have the target be knocked prone\");\r\n\t\t\t\tif (n >= 20) a.pop();\r\n\t\t\t\treturn desc(a);\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Mage Hand; When cast, its hand takes the form of my swarming nature spirits\",\r\n\t\t\t\t\"I get bonus spells known, which do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"web\", \"gaseous form\", \"arcane eye\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Writhing Tide\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can fly on my swarm for 1 minute: 10 ft flying speed and can hover\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Mighty Swarm\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : \" [improves Gathered Swarm, see above]\\n   Now 1d8 damage, knocks prone on failed save, or grants me half cover until next turn\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Swarming Dispersal\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can gain resistance to that damage and teleport\",\r\n\t\t\t\t\"I vanish into my swarm and teleport to an unoccupied space within 30 ft that I can see\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n// Add both subclasses to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(TCoE_Ranger_Subclass_Fey_Wanderer, TCoE_Ranger_Subclass_Swarmkeeper);\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Rogue Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Rogue Optional Class Features\r\nAddFeatureChoice(ClassList.rogue.features[\"thieves cant\"], true, \"Steady Aim\", {\r\n\tname : \"Steady Aim\",\r\n\textraname : \"Optional Rogue 3\",\r\n\tsource : [[\"T\", 62]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action if I don't move during my turn, I can give myself adv. on my next attack\",\r\n\t\t\"This attack roll has to be in the same turn and my speed is 0 until the end of the turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tprereqeval : function (v) { return classes.known.rogue.level >= 3 ? true : \"skip\"; }\r\n}, \"Optional 3rd-level rogue features\");\r\n\r\n// Rogue Subclasses\r\nAddSubClass(\"rogue\", \"phantom\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*phantom).*$/i,\r\n\tsubname : \"Phantom\",\r\n\tsource : [[\"T\", 62]],\r\n\tfullname : \"Phantom\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Whispers of the Dead\",\r\n\t\t\tsource : [[\"UA:SR\", 1]],\r\n\t\t\tsource : [[\"T\", 62]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a rest, I gain a skill or tool proficiency of my choice until I change it again\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a short or long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wails from the Grave\",\r\n\t\t\tsource : [[\"T\", 62]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tvar a = [\r\n\t\t\t\t\t\"Directly after I deal sneak attack damage to a creature on my turn, I \" + (n < 17 ? \"can\" : \"also\") + \" harm another\",\r\n\t\t\t\t\tn < 17 ? \"I then deal half my sneak attack in necrotic damage to a creature I can see within 30 ft\" : \"I deal half my sneak attack in necrotic damage to both it and another I can see in 30 ft\"\r\n\t\t\t\t];\r\n\t\t\t\tif (n >= 9) a.push(\"I can do this my Proficiency Bonus per long rest, or by destroying a soul trinket (ST)\");\r\n\t\t\t\treturn desc(a);\r\n\t\t\t}),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn Math.ceil(n / 4) + \"d6\";\r\n\t\t\t}),\r\n\t\t\taltResource : levels.map(function (n) {\r\n\t\t\t\treturn n < 9 ? \"\" : \"ST\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Tokens of the Departed\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : \" [max Proficiency Bonus of soul trinkets]\" + desc([\r\n\t\t\t\t\"As a reaction when I see a creature within 30 ft die, I can create a Tiny soul trinket\",\r\n\t\t\t\t\"The token of its life essence appears in my free hand; The DM determines its appearance\",\r\n\t\t\t\t\"While a soul trinket is on my person, I have advantage on death and Constitution saves\",\r\n\t\t\t\t\"As an action, I can destroy one of my soul trinkets and ask its associated spirit a question\",\r\n\t\t\t\t\"Its spirit appears and answers concisely in a language it knew; Trinket can be anywhere\"\r\n\t\t\t]),\r\n\t\t\taction : [\r\n\t\t\t\t[\"reaction\", \"Create Soul Trinket\"],\r\n\t\t\t\t[\"action\", \"Destroy Soul Trinket\"]\r\n\t\t\t],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Soul Trinkets (max Prof Bonus)\",\r\n\t\t\t\tusages : \"\",\r\n\t\t\t\trecovery : \"Special\"\r\n\t\t\t}],\r\n\t\t\tsavetxt : { text : [\"While soul trinket is on me, Adv. on Con and death saves\"] }\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ghost Walk\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can assume a spectral form with 10 ft flying speed and can hover\",\r\n\t\t\t\t\"Attacks vs. me have disadv.; I can move through creatures and objects as difficult terrain\",\r\n\t\t\t\t\"This lasts 10 min; I take 1d10 force damage if I end my turn inside a creature or object\",\r\n\t\t\t\t\"I can assume this form once per long rest, or by destroying one of my soul trinkets (ST)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"ST\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Death's Friend\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Wails from the Grave now also deals damage to the target of the original sneak attack\",\r\n\t\t\t\t\"If I don't have any soul trinkets at the end of a long rest, one appears in my hand\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"soulknife\", {\r\n\tregExpSearch : /soulknife/i,\r\n\tsubname : \"Soulknife\",\r\n\tsource : [[\"T\", 63]],\r\n\tfullname : \"Soulknife\",\r\n\tabilitySave : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Energy Dice\",\r\n\t\t\tsource : [[\"T\", 64]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain twice my proficiency bonus of psionic energy dice (PsiD) that fuel my psionics\",\r\n\t\t\t\t\"I regain all expended psionic energy dice after a long rest; See psionic powers on page 3\",\r\n\t\t\t\t\"As a bonus action once per short rest, I can regain one expended psionic energy die\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 5 ? \"d6\" : n < 11 ? \"d8\" : n < 17 ? \"d10\" : \"d12\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Regain 1 Psionic Energy Die\"]],\r\n\t\t\tusages : \"Proficiency Bonus \\xD7 2 per \",\r\n\t\t\tusagescalc : \"event.value = Number(How('Proficiency Bonus'))*2\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Regain 1 Psionic Energy die\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}],\r\n\t\t\textraname : \"Soulknife 3\",\r\n\t\t\t\"psi-bolstered knack\" : {\r\n\t\t\t\tname : \"Psionic Power: Psi-Bolstered Knack\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tadditional: \"1 PsiD if successful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I fail an check using a skill or tool I'm proficient with, I can add a psionic energy die to it\",\r\n\t\t\t\t\t\"The psionic energy die is only expended if this addition turns the failure into a success\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"psychic whispers\" : {\r\n\t\t\t\tname : \"Psionic Power: Psychic Whispers\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can select my Prof Bonus of creatures I can see and roll a psionic energy die\",\r\n\t\t\t\t\t\"For the roll of hours, I can telepathically communicate with each and they with me\",\r\n\t\t\t\t\t\"To send or receive messages (no action), we must be within 1 mile of each other\",\r\n\t\t\t\t\t\"A creature must be able to speak a language to do this; It can end the link at any time\",\r\n\t\t\t\t\t\"The first time I do this after a long rest, I don't expend the psionic energy die (PsiD)\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Psychic Whispers\",\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"PsiD\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"psi-bolstered knack\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"psychic whispers\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psychic Blades\",\r\n\t\t\tsource : [[\"T\", 64]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As part of an Attack action, I can manifest a psychic blade from a free hand to attack\",\r\n\t\t\t\t\"It vanishes immediately after making the attack and leaves no mark on its target\",\r\n\t\t\t\t\"As a bonus action after this attack, I can manifest and attack with another psychic blade\",\r\n\t\t\t\t\"To do this, my other hand needs to be free as well and this blade does only 1d4 damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Psychic Blade (after Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*psychic)(?=.*blade).*$/i,\r\n\t\t\t\tname : \"Psychic Blade\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Simple\",\r\n\t\t\t\tdamage : [1, 6, \"psychic\"],\r\n\t\t\t\trange : \"Melee, 60 ft\",\r\n\t\t\t\tdescription : \"Finesse, thrown; Bonus action: 1d4 instead of 1d6\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Soul Blades\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'My psi-suffused soul grants me more psionic powers, see the 3rd page \"Notes\" section',\r\n\t\t\t]),\r\n\t\t\textraname : \"Soulknife 9\",\r\n\t\t\t\"homing strikes\" : {\r\n\t\t\t\tname : \"Homing Strikes\",\r\n\t\t\t\tsource : [[\"T\", 65]],\r\n\t\t\t\tadditional: \"1 PsiD if successful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I miss an attack with my psychic blades, I can add a psionic energy die to the attack roll\",\r\n\t\t\t\t\t\"The psionic energy die is only expended if this addition turns the miss into a hit\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"psychic teleportation\" : {\r\n\t\t\t\tname : \"Psychic Teleportation\",\r\n\t\t\t\tsource : [[\"T\", 65]],\r\n\t\t\t\tadditional: \"1 PsiD\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can teleport up to 10 ft away times the roll of my psionic energy die\",\r\n\t\t\t\t\t\"I manifest a psychic blade and throw it to an empty space I can see before teleporting to it\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"homing strikes\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"psychic teleportation\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Psychic Veil\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become invisible along with what I'm wearing or carrying for 1 hour\",\r\n\t\t\t\t\"I can end it (no action); It also ends if I damage a creature or force one to make a save\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Rend Mind\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my psychic blade to deal sneak attack damage to a target, I can have it save\",\r\n\t\t\t\t\"It must make a Wisdom save (DC 8 + Prof Bonus + Dex mod) or be stunned for 1 min\",\r\n\t\t\t\t\"It can repeat the save at the end of each of its turns to end being stunned\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending three psionic energy dice (3 PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"3 PsiD\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Sorcerer Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Sorcerer Optional Class Features\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Additional Sorcerer Spells\", {\r\n\tname : \"Additional Sorcerer Spells\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"T\", 65]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"grease\", \"flame blade\", \"flaming sphere\", \"magic weapon\", \"vampiric touch\", \"fire shield\", \"bigby's hand\", \"flesh to stone\", \"otiluke's freezing sphere\", \"demiplane\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the sorcerer class with the following spells (spell level in brackets): Grease (1), Flame Blade (2), Flaming Sphere (2), Magic Weapon (2), Vampiric Touch (3), Fire Shield (4), Bigby's Hand (5), Flesh to Stone (6), Otiluke's Freezing Sphere (6), and Demiplane (8).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\n// Metamagic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Seeking Spell\", {\r\n\tname : \"Seeking Spell\",\r\n\tsource : [[\"T\", 66]],\r\n\tadditional: \"2 sorcery points\",\r\n\tdescription : desc([\r\n\t\t\"If I miss an attack roll for a spell, I can reroll the d20 and must use the new roll\",\r\n\t\t\"I can do this even if I already used another Metamagic option during the casting of the spell\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Transmuted Spell\", {\r\n\tname : \"Transmuted Spell\",\r\n\tsource : [[\"T\", 66]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"If the spell deals one of the below damage types, I can change it to another on the list\",\r\n\t\t\"These damage types are: acid, cold, fire, lightning, poison, or thunder\"\r\n\t])\r\n});\r\n// Other optional features\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Sorcerous Versatility (prereq: level 4 sorcerer)\", {\r\n\tname : \"Sorcerous Versatility\",\r\n\textraname : \"Optional Sorcerer 4\",\r\n\tsource : [[\"T\", 66]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the sorcerer class, I can change a cantrip or Metamagic choice\",\r\n\t\t\"I can select either another cantrip from the sorcerer spell list or another Metamagic option\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.sorcerer.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Magical Guidance (prereq: level 5 sorcerer)\", {\r\n\tname : \"Magical Guidance\",\r\n\textraname : \"Optional Sorcerer 5\",\r\n\tsource : [[\"T\", 66]],\r\n\tdescription : \" [1 sorcery point]\\n   When I make an ability check that fails, I can reroll the d20 and must use the new roll\",\r\n\tprereqeval : function (v) { return classes.known.sorcerer.level >= 5 ? true : \"skip\"; }\r\n}, \"Optional sorcerer features\");\r\n\r\n// Sorcerer Subclasses\r\nAddSubClass(\"sorcerer\", \"aberrant mind\", {\r\n\tregExpSearch : /^(?=.*aberrant)(?=.*mind).*$/i,\r\n\tsubname : \"Aberrant Mind\",\r\n\tsource : [[\"T\", 67]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Psionic Spells\",\r\n\t\t\tsource : [[\"T\", 67]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn additional spells, which do not count towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I gain a sorcerer level, I can replace one of these with another of the same level\",\r\n\t\t\t\t\"It must be a divination or enchantment spell on the sorcerer, wizard, or warlock spell list\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Psionic Spells (cantrip)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\textraspells : [\"mind sliver\"],\r\n\t\t\t\tselection : [\"mind sliver\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (1st-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"arms of hadar\", \"dissonant whispers\"],\r\n\t\t\t\tselection : [\"arms of hadar\", \"dissonant whispers\"],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (2nd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [2, 2],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"calm emotions\", \"detect thoughts\"],\r\n\t\t\t\tselection : [\"calm emotions\", \"detect thoughts\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 3 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (3rd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [3, 3],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"hunger of hadar\", \"sending\"],\r\n\t\t\t\tselection : [\"hunger of hadar\", \"sending\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 5 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (4th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [4, 4],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"evard's black tentacles\", \"summon aberration\"],\r\n\t\t\t\tselection : [\"evard's black tentacles\", \"summon aberration\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 7 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (5th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [5, 5],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"rary's telepathic bond\", \"telekinesis\"],\r\n\t\t\t\tselection : [\"rary's telepathic bond\", \"telekinesis\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 9 ? 0 : 2; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Telepathic Speech\",\r\n\t\t\tsource : [[\"T\", 67]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can telepathic link myself with a creature within 30 ft that I can see\",\r\n\t\t\t\t\"If we share a language, we can talk telepathically while in my Cha mod of miles (min 1)\",\r\n\t\t\t\t\"This last for my level in minutes, until I'm incapacitated, I die, or I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n + \" minute\" + (n > 1 ? \"s\" : \"\");\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Sorcery\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend sorcery points instead of a spell slot to cast a spell from my Psionic Spells\",\r\n\t\t\t\t\"This costs the spell's level in sorcery points, but in doing so requires no other components\",\r\n\t\t\t\t\"However, I do need to provide a material components if it is consumed by the spell\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Psychic Defenses\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I gain resistance to psychic damage and adv. on saves vs. being charmed or frightened\"),\r\n\t\t\tdmgres : [\"Psychic\"],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Revelation in Flesh\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend 1 or more sorcery points to transform for 10 minutes\",\r\n\t\t\t\t\"For each sorcery point used, I gain one of the following benefits of my choice:\",\r\n\t\t\t\t\" \\u2022 I can see any invisible creatures within 60 ft of me not behind total cover\",\r\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\" \\u2022 I gain a swimming speed equal to twice my walking speed \\u0026 I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 I can move, with equipment, through any space as narrow as 1 inch without squeezing\",\r\n\t\t\t\t\"   Also, I can spend 5 ft of movement to escape form a grapple or nonmagical restraints\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : \"1+ sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Warping Implosion\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport to an unoccupied space I can see within 120 ft\",\r\n\t\t\t\t\"All within 30 ft of where I left take 3d10 force damage and must make a Strength save\",\r\n\t\t\t\t\"If failed, each is pulled towards the space I left, ending up in the nearest empty space\",\r\n\t\t\t\t\"If successful, a creature takes only half damage and isn't pulled\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"clockwork soul\", {\r\n\tregExpSearch : /^((?=.*(sorcerer|witch))(?=.*mechanus)|(?=.*clockwork)(?=.*soul)).*$/i,\r\n\tsubname : \"Clockwork Soul\",\r\n\tsource : [[\"T\", 68]],\r\n\tfullname : \"Clockwork Soul\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Clockwork Magic\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn additional spells, which do not count towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I gain a sorcerer level, I can replace one of these with another of the same level\",\r\n\t\t\t\t\"It must be an abjuration or transmutation spell on the sorcerer, wizard, or warlock list\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Clockwork Magic (1st-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\textraspells : [\"alarm\", \"protection from evil and good\"],\r\n\t\t\t\tselection : [\"alarm\", \"protection from evil and good\"],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (2nd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [2, 2],\r\n\t\t\t\textraspells : [\"aid\", \"lesser restoration\"],\r\n\t\t\t\tselection : [\"aid\", \"lesser restoration\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 3 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (3rd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [3, 3],\r\n\t\t\t\textraspells : [\"dispel magic\", \"protection from energy\"],\r\n\t\t\t\tselection : [\"dispel magic\", \"protection from energy\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 5 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (4th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [4, 4],\r\n\t\t\t\textraspells : [\"freedom of movement\", \"summon construct\"],\r\n\t\t\t\tselection : [\"freedom of movement\", \"summon construct\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 7 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (5th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [5, 5],\r\n\t\t\t\textraspells : [\"greater restoration\", \"wall of force\"],\r\n\t\t\t\tselection : [\"greater restoration\", \"wall of force\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 9 ? 0 : 2; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Restore Balance\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 60 ft is about to roll a d20 with adv./disadv.,\",\r\n\t\t\t\t\"I can prevent that roll from being affected by advantage and disadvantage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bulwark of Law\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can imbue a creature I can see within 30 ft with a magical ward\",\r\n\t\t\t\t\"The ward has a number of d8s equal to the number of sorcery points I expend to do this\",\r\n\t\t\t\t\"As a reaction when the creature takes damage, it can expend any number of those dice\",\r\n\t\t\t\t\"The dice roll reduces the damage; The ward lasts until I finish a long rest or do this again\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1-5 sorcery points; 1d8 per point\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Trance of Order\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can enter a state of clockwork consciousness for 1 minute\",\r\n\t\t\t\t\"While in this state, attack rolls against me can't benefit from advantage\",\r\n\t\t\t\t\"Also, I can then treat a d20 roll below 9 as a 10 for my attack rolls, checks, and saves\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Clockwork Cavalcade\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can call spirits to bring balance in a 30-ft cube originating from me\",\r\n\t\t\t\t\"Inside the cube, the intangible spirits do all the following before vanishing:\",\r\n\t\t\t\t\" \\u2022 Restore up to 100 HP, divided among the creatures in the cube as I choose\",\r\n\t\t\t\t\" \\u2022 Repair all damaged objects entirely in the cube instantly\",\r\n\t\t\t\t\" \\u2022 End every spell of 6th-level or lower on objects or creatures of my choice in the cube\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 7 sorcery points (7 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"7 SP\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Warlock Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Warlock Optional Class Features\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Additional Warlock Spells\", {\r\n\tname : \"Additional Warlock Spells\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"mislead\", \"planar binding\", \"teleportation circle\", \"gate\", \"weird\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the warlock class with the following spells (spell level in brackets): Mislead (5), Planar Binding (5), Teleportation Circle (5), Gate (9), and Weird (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\nAddWarlockPactBoon(\"Pact of the Talisman\", {\r\n\tname : \"Pact of the Talisman\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : desc([\r\n\t\t\"When the wearer of this amulet fails an ability check, they can add +1d4 to the roll\",\r\n\t\t\"I can give the talisman to others to use; The talisman turns to ash when I die\",\r\n\t\t\"If I lose my talisman, I can perform a 1-hour ceremony to gain a replacement\",\r\n\t\t\"This ceremony destroys the previous amulet and can be done during a short or long rest\"\r\n\t]),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddFeatureChoice(ClassList.warlock.features[\"pact boon\"], true, \"Eldritch Versatility\", {\r\n\tname : \"Eldritch Versatility\",\r\n\textraname : \"Optional Warlock 4\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the warlock class, I can change one of the following things:\",\r\n\t\t\" \\u2022 I can replace one warlock cantrip with another cantrip from the warlock spell list\",\r\n\t\t\" \\u2022 I can replace my pact boon for another\",\r\n\t\t\" \\u2022 If I have Mystic Arcanum, I can replace one spell from it with another of the same level\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.warlock.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level warlock features\");\r\n// Eldritch Invocation options\r\nAddWarlockInvocation(\"Bond of the Talisman (prereq: level 12 warlock, Pact of the Talisman)\", {\r\n\tname : \"Bond of the Talisman\",\r\n\tsource : [[\"T\", 70]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can teleport to the unoccupied space closest to the wearer of my talisman\",\r\n\t\t\"The talisman's wearer can do the same to teleport to me; Only works if both on same plane\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 12 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Eldritch Mind\", {\r\n\tname : \"Eldritch Mind\",\r\n\tsource : [[\"T\", 71]],\r\n\tdescription: desc(\"I have advantage on my Constitution saving throws to maintain concentration on a spell\"),\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves\" }\r\n});\r\nAddWarlockInvocation(\"Far Scribe (prereq: level 5 warlock, Pact of the Tome)\", {\r\n\tname : \"Far Scribe\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Proficiency Bonus in creature names; I can remove one as an action\",\r\n\t\t\"I can cast Sending without a spell slot or material components, targeting one on the page\",\r\n\t\t\"Instead of saying the message, I write it on the page and any reply appears there as well\",\r\n\t\t\"This writing disappears after 1 minute; The target still hears the message in their mind\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Far Scribe\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Send 25 word message to crea named in book of shadows; it recognizes me and can respond 25 words\",\r\n\t\t\tchanges : \"By using Far Scribe, I can cast Sending without using a spell slot or material components, but only to target one of the creatures that wrote their name in my book of shadows. Instead of speaking the message, I write it in my book and any response appears there as well, lasting for 1 minute. The target still hears the message in their mind.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gift of the Protectors (prereq: level 9 warlock, Pact of the Tome)\", {\r\n\tname : \"Gift of the Protectors\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Proficiency Bonus in creature names; I can remove one as an action\",\r\n\t\t\"If a creature whose name is on the page drops to 0 HP, it magically drops to 1 HP instead\",\r\n\t\t\"This doesn't work if the creature would be killed outright\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Investment of the Chain Master (prereq: Pact of the Chain)\", {\r\n\tname : \"Investment of the Chain Master\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription : desc([\r\n\t\t\"When I cast Find Familiar, the summoned create has additional benefits:\",\r\n\t\t\"\\u2022 It gains a flying or swimming speed of 40 ft (my choice at casting)\",\r\n\t\t\"\\u2022 As a bonus action, I can command it to take the Attack action\",\r\n\t\t\"\\u2022 Its weapon attacks are considered magical for overcoming immunities and resistances\",\r\n\t\t\"\\u2022 If it forces a creature to make a saving throw, it uses my spell save DC\",\r\n\t\t\"\\u2022 As a reaction when it takes damage, I can grant it resistance against that damage\"\r\n\t]),\r\n\taction : [[\"bonus action\", \" (command to attack)\"], [\"reaction\", \" (give resistance)\"]],\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\tcalcChanges : {\r\n\t\tcompanionCallback : [function(prefix, oCrea, bAdd, sCompType) {\r\n\t\t\tif (sCompType !== \"pact_of_the_chain\") return;\r\n\t\t\tvar strFea = \"##\\u25C6 Investment of the Chain Master (TCoE 71)##. The familiar gains 40 ft fly or swim speed (my choice), its attacks are considered magical, and it can use my spell save DC instead of its own DC's (if any).\";\r\n\t\t\tvar strSpd = \"fly or swim 40 ft\";\r\n\t\t\tif (What(\"Unit System\") === \"metric\") {\r\n\t\t\t\tstrFea = ConvertToMetric(strFea, 0.5);\r\n\t\t\t\tstrSpd = ConvertToMetric(strSpd, 0.5);\r\n\t\t\t}\r\n\t\t\tvar aFnc = bAdd ? AddString : RemoveString;\r\n\t\t\taFnc(prefix + \"Comp.Use.Features\", strFea, true);\r\n\t\t\taFnc(prefix + \"Comp.Use.Speed\", strSpd, typePF ? \",\\n\" : \", \");\r\n\t\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\t\tvar baseFld = prefix + \"Comp.Use.Attack.\" + i;\r\n\t\t\t\tvar weaDescrFld = baseFld + \".Description\";\r\n\t\t\t\tvar strWeaDescr = What(weaDescrFld);\r\n\t\t\t\tif (bAdd && What(baseFld + \".Weapon Selection\") && !(/(,|;)? ?counts as magical/i).test(strWeaDescr)) {\r\n\t\t\t\t\tAddString(weaDescrFld, \"Counts as magical\", \"; \");\r\n\t\t\t\t} else if (!bAdd) {\r\n\t\t\t\t\tValue(weaDescrFld, strWeaDescr.replace(/(,|;)? ?counts as magical/i, ''));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"My pact of the chain familiars gain an extra feature listing the extra bonuses they gain.\"]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Protection of the Talisman (prereq: level 7 warlock, Pact of the Talisman)\", {\r\n\tname : \"Protection of the Talisman\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription: desc(\"When the wearer of my talisman fails a saving throw, they can add +1d4 to the roll\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 7 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Rebuke of the Talisman (prereq: Pact of the Talisman)\", {\r\n\tname : \"Rebuke of the Talisman\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when the wearer of my talisman is hit, I deal damage and push the attacker\",\r\n\t\t\"To be able to do this, I have to see the attacker and it has to be within 30 ft of me\",\r\n\t\t\"I deal it my Proficiency Bonus in psychic damage and push it 10 ft away from the talisman\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Undying Servitude (prereq: level 5 warlock)\", {\r\n\tname : \"Undying Servitude\",\r\n\tdescription: desc(\"Once per long rest, I can cast Animate Dead without using a spell slot\"),\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tusages : 1,\r\n\tadditional : \"no spell slot\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Undying Servitude\",\r\n\t\tspells : [\"animate dead\"],\r\n\t\tselection : [\"animate dead\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; }\r\n});\r\n\r\n// Warlock Subclasses\r\nAddSubClass(\"warlock\", \"the fathomless\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*fathomless).*$/i,\r\n\tsubname : \"the Fathomless\",\r\n\tsource : [[\"T\", 72]],\r\n\tspellcastingExtra : [\"create or destroy water\", \"thunderwave\", \"gust of wind\", \"silence\", \"lightning bolt\", \"sleet storm\", \"control water\", \"summon elemental\", \"bigby's hand\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Tentacle of the Deeps\",\r\n\t\t\tsource : [[\"T\", 72]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon or move a spectral tentacle and make an attack with it\",\r\n\t\t\t\t\"I can summon it to a space within 60 ft that I can see or move an existing one 30 ft\",\r\n\t\t\t\t\"I make melee spell attacks with 10 ft reach with it that deal cold damage\",\r\n\t\t\t\t\"Creatures hit by the tentacle suffer 10 ft speed reduction until the start of my next turn\",\r\n\t\t\t\t\"The 10-ft long tentacle lasts for 1 minute or until I summon another\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/move)\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8\";\r\n\t\t\t}),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*tentacle)(?=.*\\b(deeps?|spectral)\\b).*$/i,\r\n\t\t\t\tname : \"Tentacle of the Deeps\",\r\n\t\t\t\tsource : [[\"T\", 72]],\r\n\t\t\t\tability : 6,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"Cold\"],\r\n\t\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\t\tdescription : \"On hit, -10 ft speed until my next turn starts\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\ttentacleOfTheDeeps : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.tentacleOfTheDeeps && classes.known.warlock.level >= 10) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '2d8';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'',\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Gift of the Sea\",\r\n\t\t\tsource : [[\"T\", 72]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I have a swimming speed of 40 ft and I can breathe underwater\"),\r\n\t\t\tspeed : { swim : { spd : 40, enc : 30 } }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Oceanic Soul\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to cold damage now that I'm even more at home in the depths\",\r\n\t\t\t\t\"While I'm fully submerged, others who are as well can understand my speech and I theirs\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Cold\"],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"summon elemental\" : {\r\n\t\t\t\t\tdescription : \"Summon Water Elemental Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\t\t\t\t\tchanges : \"My warlock spell Summon Elemental can only call forth an elemental spirit of water.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Guardian Coil\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I see in 10 ft of my tentacle is damaged, it can help\",\r\n\t\t\t\t\"The tentacle interposes itself, reducing the damage of the attack for that creature\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8 damage reduced\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Grasping Tentacles\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Evard's Black Tentacles; Once per long rest, I can cast it without using a spell slot\",\r\n\t\t\t\t\"It counts as a warlock spell for me, but not towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I cast it, I gain temporary hit points equal to my warlock level\",\r\n\t\t\t\t\"Moreover, damage can't break my concentration on this spell\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n + \" temp HP; 1\\xD7 per long rest no SS\";\r\n\t\t\t}),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Grasping Tentacles\",\r\n\t\t\t\tspells : [\"evard's black tentacles\"],\r\n\t\t\t\tselection : [\"evard's black tentacles\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Evard's Black Tentacles (no spell slot)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"evard's black tentacles\") {\r\n\t\t\t\t\t\t\tspellObj.description = \"I temp hp; All enter/start in 20-ft rad save or restrained \\u0026 3d6 Bludg. dmg/rnd; Str/Dex check escape\";\r\n\t\t\t\t\t\t\tspellObj.duration = \"Conc*, 1 min\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Whenever I cast Evard's Black Tentacles, I gain temporary hit points equal to my warlock level.\\n \\u2022 Damage can't break my concentration on this spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fathomless Plunge\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport myself and up to 5 willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"We reappear up to 1 mile away, inside or within 30 ft of a body of water I've seen\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the genie\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*(genie|dao|djinni|efreeti|marid)).*$/i,\r\n\tsubname : \"the Genie\",\r\n\tsource : [[\"T\", 73], [\"UA:SR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Choose Genie Kind\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to choose the kind of genie your patron is'),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellList : [\r\n\t\t\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && spList.name && /mystic arcanum/i.test(spList.name) && spList.level[0] === 9) {\r\n\t\t\t\t\t\t\tspList.extraspells.push(\"wish\");\r\n\t\t\t\t\t\t} else if (spType.indexOf(\"bonus\") === -1 && spName === \"warlock\") {\r\n\t\t\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\t\t\tspList.notspells.push(\"wish\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The Genie patron adds Wish as a spell available for my 9th-level Mystic Arcanum selection.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"Dao (earth)\", \"Djinni (air)\", \"Efreeti (fire)\", \"Marid (water)\"],\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Dao, associated with earth\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"sanctuary\", \"phantasmal force\", \"spike growth\", \"create food and water\", \"meld into stone\", \"phantasmal killer\", \"stone shape\", \"creation\", \"wall of stone\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Djinni, associated with air\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"thunderwave\", \"gust of wind\", \"phantasmal force\", \"create food and water\", \"wind wall\", \"greater invisibility\", \"phantasmal killer\", \"creation\", \"seeming\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is an Efreeti, associated with fire\"),\r\n\t\t\t\tspellcastingExtra : [\"burning hands\", \"detect evil and good\", \"phantasmal force\", \"scorching ray\", \"create food and water\", \"fireball\", \"fire shield\", \"phantasmal killer\", \"creation\", \"flame strike\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Marid, associated with water\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"fog cloud\", \"blur\", \"phantasmal force\", \"create food and water\", \"sleet storm\", \"control water\", \"phantasmal killer\", \"cone of cold\", \"creation\", \"wish\"]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature1.3\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Genie's Vessel\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My patron gifts me a magical vessel, a Tiny object, granting me a measure of its power\",\r\n\t\t\t\t\"I choose the vessel's appearance; I can use it as my spellcasting focus for warlock spells\",\r\n\t\t\t\t\"The vessel's AC is my spell save DC and it has my warlock level + Proficiency Bonus in HP\",\r\n\t\t\t\t\"If it is destroyed or lost, I can get a replacement with a 1-hour ceremony during a rest\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Genie's Vessel: Bottled Respite\",\r\n\t\t\tsource : [[\"T\", 74], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can vanish and enter the extradimensional space inside my genie's vessel\",\r\n\t\t\t\t\"The vessel stays in its location; The space inside is a 20-ft high, 20-ft radius cylinder\",\r\n\t\t\t\t\"As a bonus action, I can exit my vessel; I exit it early if I die or the vessel is destroyed\",\r\n\t\t\t\t\"I can remain inside for twice my Proficiency Bonus in hours; Objects can be left inside\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Bottled Respite\",\r\n\t\t\taction : [[\"action\", \" (enter)\"], [\"bonus action\", \" (eject)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature1.3\" : {\r\n\t\t\tname : \"Genie's Wrath\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can deal bonus damage on my attacks, its type depending on my patron's genie kind\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Prof Bonus in extra bludgeoning damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' bludgeoning damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra bludgeoning damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra thunder damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' thunder damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra thunder damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra fire damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' fire damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra fire damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra cold damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' cold damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra cold damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Gift\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to a damage type depending on my patron's genie kind\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is',\r\n\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to bludgeoning damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Bludgeoning\"]\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to thunder damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Thunder\"]\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to fire damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Fire\"]\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to cold damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Cold\"]\r\n\t\t\t},\r\n\t\t\tadditional : \"Fly 10 min\",\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Sanctuary Vessel\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my vessel I can have up to 5 willing creatures I can see in 30 ft join me\",\r\n\t\t\t\t\"As a bonus action, I can eject any number of creatures from my genie's vessel\",\r\n\t\t\t\t\"Everyone is ejected when I leave it, I die, or if the vessel is destroyed\",\r\n\t\t\t\t\"Anyone who remains in the vessel for at least 10 min gains the benefits of a short rest\",\r\n\t\t\t\t\"Also, HD spend as part of this short rest has my Proficiency Bonus added to the roll\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Limited Wish\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tadditional: \"1\\xD7 per 1d4 long rests\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cast a 6th-level or lower spell with a casting time time of one action\",\r\n\t\t\t\t\"This can be any spell; It doesn't require any costly components, it simply takes effect\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Limited Wish\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"1d4 LR\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Wizard Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Wizard Optional Class Features\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Additional Wizard Spells\", {\r\n\tname : \"Additional Wizard Spells\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"T\", 75]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"augury\", \"enhance ability\", \"speak with dead\", \"divination\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the wizard class with the following spells (spell level in brackets): Augury (2), Enhance Ability (2), Speak with Dead (3), and Divination (4).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\nAddFeatureChoice(ClassList.wizard.features[\"arcane recovery\"], true, \"Cantrip Formulas\", {\r\n\tname : \"Cantrip Formulas\",\r\n\textraname : \"Optional Wizard 3\",\r\n\tsource : [[\"T\", 76]],\r\n\tdescription : desc([\r\n\t\t\"I have scribed arcane formulas in my spellbook with which I formulate cantrips in my mind\",\r\n\t\t\"Whenever I finish a long rest, I can use this to change a wizard cantrip I know for another\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.wizard.level >= 3 ? true : \"skip\"; },\r\n\tspellcastingPreparedCantrips: { \"class\": [\"wizard\"] },\r\n}, \"Optional 3rd-level wizard features\");\r\n\r\n// Wizard Subclasses\r\nAddSubClass(\"wizard\",\"order of scribes\", {\r\n\tregExpSearch : /^(?=.*wizard)(?=.*order)(?=.*scribes?).*$|scrivener/i,\r\n\tsubname : \"Order of Scribes\",\r\n\tsubnameShort: \"Scribes\",\r\n\tsource : [[\"T\", 77]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Wizardly Quill\",\r\n\t\t\tsource : [[\"T\", 77]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can magically create a Tiny quill with the following properties:\",\r\n\t\t\t\t\" \\u2022 It doesn't require ink and produces ink in the color of my choice when writing with it\",\r\n\t\t\t\t\" \\u2022 I require only 2 minutes per spell level to transcribe spells into my spellbook with it\",\r\n\t\t\t\t\" \\u2022 As a bonus action, I can use it to erase a text written with it if within 5 ft of the text\",\r\n\t\t\t\t\"The quill disappear if I create another or if I die\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create/erase)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Awakened Spellbook\",\r\n\t\t\tsource : [[\"T\", 77]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My spellbook gains sentience and grants me the following benefits while I am holding it:\",\r\n\t\t\t\t\" \\u2022 I can use the book as a spellcasting focus for my wizard spells\",\r\n\t\t\t\t\" \\u2022 When I cast a wizard spell using a spell slot, I can temporarily replace its damage type\",\r\n\t\t\t\t\"   The new type must appear in my spellbook in a spell of the same level as the spell slot\",\r\n\t\t\t\t\" \\u2022 Once per long rest, I can ritual cast a wizard spell without 10 min extra casting time\",\r\n\t\t\t\t\"I can replace it over a short rest, transferring its spells and sentience to a blank book\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"fast ritual cast\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Manifest Mind\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have the mind of my awakened spellbook manifest within 60 ft\",\r\n\t\t\t\t\"The spellbook needs to be on my person to do this; The mind is a Tiny spectral object\",\r\n\t\t\t\t\"The mind is intangible, doesn't occupy a space, hovers, and sheds dim light in 10 ft\",\r\n\t\t\t\t\"It can hear, see, has 60 ft darkvision, and telepathically shares with me what it perceives\",\r\n\t\t\t\t\"As a bonus action, I can dismiss it or move it up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"It can pass through creatures; It stops manifesting if it's over 300 ft from me or I die\",\r\n\t\t\t\t\"It also stop manifesting if Dispel Magic is cast on it or the awakened spellbook is no more\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+) to manifest it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (conjure/move/dismiss)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Manifest Mind: Cast Spell\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can have wizard spells I cast on my turn originate from the mind while its manifested\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Master Scrivener\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can write a spell in my awakened spellbook on a blank paper\",\r\n\t\t\t\t\"It must be a level 1 or 2 spell with 1 action casting time; My spellbook must be in 5 ft\",\r\n\t\t\t\t\"As an action, I can use this scroll to cast the spell on it at one higher level than normal\",\r\n\t\t\t\t\"Only I can use the scroll; The scroll turns blank again when I use it or finish a long rest\",\r\n\t\t\t\t\"Also, using my Wizardly Quill, the gold and time I need to craft spell scrolls is halved\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (cast scroll)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Master Scrivener scoll\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [1, 2],\r\n\t\t\t\tfirstCol : \"MS\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (!isDuplicate && spName === \"wizard\" && spellObj.firstCol === \"MS\" && (spellObj.level === 1 || spellObj.level === 2)) {\r\n\t\t\t\t\t\t\t// Calculate upcasting to be exactly 1 level higher\r\n\t\t\t\t\t\t\tvar rxMatch = /(\\d*d?\\d+)\\+(\\d*d?\\d+)\\/(\\d*SL)\\b/i;\r\n\t\t\t\t\t\t\twhile (rxMatch.test(spellObj.description)) {\r\n\t\t\t\t\t\t\t\tvar aMatch = spellObj.description.match(rxMatch);\r\n\t\t\t\t\t\t\t\tvar strDie1 = !isNaN(aMatch[1]) ? true : /\\d+d\\d+/i.test(aMatch[1]) ? aMatch[1].replace(/\\d+(d\\d+)/i, \"$1\") : false;\r\n\t\t\t\t\t\t\t\tvar strDie2 = !isNaN(aMatch[2]) ? true : /\\d+d\\d+/i.test(aMatch[2]) ? aMatch[2].replace(/\\d+(d\\d+)/i, \"$1\") : undefined;\r\n\t\t\t\t\t\t\t\tif (!/^SL$/i.test(aMatch[3])) {\r\n\t\t\t\t\t\t\t\t\t// only increases if more than 1 level higher spell slot, so nothing we can do with it, just remove all upcasting\r\n\t\t\t\t\t\t\t\t\tremoveSpellUpcasting(spellObj);\r\n\t\t\t\t\t\t\t\t} else if (/^\\d/.test(aMatch[1]) && strDie1 === strDie2) {\r\n\t\t\t\t\t\t\t\t\t// identical type steps (e.g. 1d6+1d6/SL or 3+1/SL), so add the second to the first\r\n\t\t\t\t\t\t\t\t\tvar strNew = (Number(aMatch[1].replace(/^(\\d+).*/, \"$1\")) + Number(aMatch[2].replace(/^(\\d+).*/, \"$1\"))) + aMatch[1].replace(/^\\d+(.*)/, \"$1\");\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(rxMatch, strNew);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// non-identical steps, so leave the first and second along, but remove the /SL\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(rxMatch, \"$1+$2\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// Remove costly material components\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/ \\(\\d+ ?gp( cons\\.?)?\\)/i, '');\r\n\t\t\t\t\t\t\t// List only the scroll as a component from the spell\r\n\t\t\t\t\t\t\tspellObj.components = \"M\\u2020\";\r\n\t\t\t\t\t\t\tspellObj.compMaterial = \"Spells cast from spell scrolls don't require any components other than the spell scroll itself.\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I finish a long rest, I can create a scroll of a spell in my spellbook using my Master Scrivener class feature. I can then cast this spell from the scroll and the spell is cast as if using a spell slot one level higher than its spell level.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"One with the Word\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : ' [see 3rd page \"Notes\" section]',\r\n\t\t\taction : [[\"reaction\", \" (when damaged)\"]],\r\n\t\t\tadvantages : [[\"Arcana\", true]],\r\n\t\t\t\"one with the word\" : {\r\n\t\t\t\tname : \"One with the Word\",\r\n\t\t\t\textraname : \"Order of Scribes 14\",\r\n\t\t\t\tsource : [[\"T\", 78]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While my awakened spellbook is on my person, I have advantage on Int (Arcana) checks\",\r\n\t\t\t\t\t\"As a reaction when I take damage while my spellbook's mind is manifested, I can dismiss it\",\r\n\t\t\t\t\t\"In dismissing the manifested mind like this, I prevent all of the damage taken by me\",\r\n\t\t\t\t\t\"After doing so, I lose spells with a combined level of 3d6 from my awakened spellbook\",\r\n\t\t\t\t\t\"If I do not have enough spells left to cover the number rolled, I drop to 0 HP instead\",\r\n\t\t\t\t\t\"The spells vanish from my spellbook, reappearing only after I finish 1d6 long rests\",\r\n\t\t\t\t\t\"I can't cast spells that I lost this way, even if found on a scroll or in another spellbook\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"one with the word\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>> //\r\n// >>> New Feats >>> //\r\n// >>>>>>>>>>>>>>>>> //\r\nFeatsList[\"artificer initiate\"] = {\r\n\tname : \"Artificer Initiate\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"You've learned some of an artificer's inventiveness:\\n \\u2022 You learn one cantrip of your choice from the artificer spell list, and you learn one 1st-level spell of your choice from that list. Intelligence is your spellcasting ability for these spells.\\n \\u2022 You can cast this feat's 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n \\u2022 You gain proficiency with one type of artisan's tools of your choice, and you can use that type of tool as a spellcasting focus for any spell you cast that uses Intelligence as its spellcasting ability.\",\r\n\tdescription : typePF ? \"I learn a cantrip and a 1st-level spell from the artificer's spell list. Int is my spellcasting ability for these. Once per long rest, I can cast the 1st-level spell at its lowest level without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for spells I cast with Int as spellcasting ability.\" : \"I learn one cantrip and one 1st-level spell from the artificer's spell list. Intelligence is my spellcasting ability for these. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for any spell I cast that uses Intelligence as its spellcasting ability.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Artificer cantrip\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tallowUpCasting : true,\r\n\t\t\"class\" : 'artificer',\r\n\t\tlevel : [0, 0],\r\n\t}, {\r\n\t\tname : \"1st-level artificer spell\",\r\n\t\t\"class\" : 'artificer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr\",\r\n\t}],\r\n\ttoolProfs : [ [\"Artisan's tools\", 1] ]\r\n};\r\nFeatsList[\"chef\"] = {\r\n\tname : \"Chef\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"Time spent mastering the culinary arts has paid off, granting you the following benefits:\\n \\u2022 Increase your Constitution or Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with cook's utensils if you don't already have it.\\n \\u2022 As part of a short rest, you can cook special food, provided you have ingredients and cook's utensils on hand. You can prepare enough of this food for a number of creatures equal to 4 + your proficiency bonus. At the end of the short rest, any creature who eats the food and spends one or more Hit Dice to regain hit points regains an extra 1d8 hit points.\\n \\u2022 With one hour of work or when you finish a long rest, you can cook a number of treats equal to your proficiency bonus. These special treats last 8 hours after being made. A creature can use a bonus action to eat one of those treats to gain temporary hit points equal to your proficiency bonus.\",\r\n\tdescription : \"During a short rest, I can make food for 4 + my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus creatures; if they eat it and spend 1\" + (typePF ? \"+ HD\" : \" or more Hit Die\") + \", they regain 1d8 HP. In one hour or during a long rest, I can make treats equal to my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus that last for 8 hours; As a bonus action, one can eat a treat, gaining my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus in temporary HP. [+1 \" + (typePF ? \"Con or Wis\" : \"Constitution or Wisdom\") + \"]\",\r\n\taction : [[\"bonus action\", \"Consume Chef's Treat\"]],\r\n\ttoolProfs : [\"Cook's utensils\"],\r\n\tscorestxt : \"+1 Constitution or Wisdom\"\r\n};\r\nFeatsList[\"crusher\"] = {\r\n\tname : \"Crusher\",\r\n\tsource : [[\"T\", 79]],\r\n\tdescriptionFull : \"You are practiced in the art of crushing your enemies, granting you the following benefits:\\n \\u2022 Increase your Strength or Constitution by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals bludgeoning damage, you can move it 5 feet to an unoccupied space, provided the target is no more than one size larger than you.\\n \\u2022 When you score a critical hit that deals bludgeoning damage to a creature, attack rolls against that creature are made with advantage until the start of your next turn.\",\r\n\tdescription : \"Once per turn, when I hit a creature no more than one size larger than me with an attack that deals bludgeoning damage, I can move it 5 ft to an unoccupied space. If I score a critical hit that deals bludgeoning damage, attacks against the creature hit gain advantage until the start of my next turn. [+1 \" + (typePF ? \"Str or Con\" : \"Strength or Constitution\") + \"]\",\r\n\tscorestxt : \"+1 Strength or Constitution\"\r\n};\r\nFeatsList[\"eldritch adept\"] = {\r\n\tname : \"Eldritch Adept\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"Studying occult lore, you have unlocked eldritch power within yourself: you learn one Eldritch Invocation option of your choice from the warlock class. If the invocation has a prerequisite of any kind, you can choose that invocation only if you're a warlock who meets the prerequisite.\\n   Whenever you gain a level, you can replace the invocation with another one from the warlock class.\",\r\n\tdescription : 'I learn one Eldritch Invocation from the warlock class for which I meet the prerequisites (2nd page \"Choose Feature\" button). I can replace this invocation for another whenever I gain a level.',\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"warlock\",\r\n\t\tfeature : \"eldritch invocations\",\r\n\t\tbonus : 1\r\n\t}],\r\n\tprerequisite : \"Spellcasting or Pact Magic feature\",\r\n\tprereqeval : function (v) { return v.isSpellcastingClass; }\r\n};\r\nFeatsList[\"fey touched\"] = {\r\n\tname : \"Fey Touched\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"Your exposure to the Feywild's magic has changed you, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn the misty step spell and one 1st-level spell of your choice. The 1st-level spell must be from the divination or enchantment school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\r\n\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Misty Step\",\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"1st-level Ench/Div spell\",\r\n\t\t'class': \"any\",\r\n\t\tschool : [\"Ench\", \"Div\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them \" + (typePF ? \"by expending\" : \"with\") + \" a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n// Add the fighting initiate only when all other code has run, so that we get fighting styles added by the code\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList.fighter || !ClassList.fighter.features[\"fighting style\"]) return;\r\n\tvar FtngStyles = ClassList.fighter.features[\"fighting style\"];\r\n\tFeatsList[\"fighting initiate\"] = {\r\n\t\tname : \"Fighting Initiate\",\r\n\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\t\tdescriptionFull : \"Your martial training has helped you develop a particular style of fighting. As a result, you learn one Fighting Style option of your choice from the fighter class. If you already have a style, the one you choose must be different.\\n   Whenever you reach a level that grants the Ability Score Improvement feature, you can replace this feat's fighting style with another one from the fighter class that you don't have.\",\r\n\t\tdescription : \"I learn one Fighting Style from the fighter class, which must be one that I don't yet know. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\tprerequisite : \"Proficiency with a martial weapon\",\r\n\t\tprereqeval : function(v) {\r\n\t\t\treturn v.martialWeaponsProf || v.otherWeaponsProf.some(function (n) {\r\n\t\t\t\treturn WeaponsList[n] && (/Martial/i).test(WeaponsList[n].type);\r\n\t\t\t});\r\n\t\t},\r\n\t\tchoices : [],\r\n\t\t\"archery\" : {\r\n\t\t\tdescription : \"I gain a +2 bonus to attack rolls I make with ranged weapons. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"defense\" : {\r\n\t\t\tdescription : \"I gain a +1 bonus to my AC while I'm wearing armor. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"dueling\" : {\r\n\t\t\tdescription : \"When I wield a melee weapon in one hand and no other weapons, I gain a +2 bonus to damage rolls with that weapon. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"great weapon fighting\" : {\r\n\t\t\tdescription : \"When I roll a 1 or 2 on a damage die for an attack I make with a two-handed or versatile melee weapon that I'm wielding with two hands, I can reroll the die and must use the new roll, even if the new roll is a 1 or a 2. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"protection\" : {\r\n\t\t\tdescription : \"When a creature I can see attacks a target other than me that is within 5 ft of me, I can use my reaction to impose disadvantage on the attack roll. I must be wielding a shield to do this. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"two-weapon fighting\" : {\r\n\t\t\tdescription : \"When I engage in two-weapon fighting, I can add my ability modifier to the damage of the second (off-hand) attack. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"blind fighting\" : {\r\n\t\t\tdescription : \"I have blindsight with a range of 10 ft, wherein I can effectively see anything that isn't behind total cover, including invisible things, even if I'm blinded or in darkness. This doesn't allow me to see things hidden from me. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 41]]\r\n\t\t},\r\n\t\t\"interception\" : {\r\n\t\t\tdescription : \"As a reaction when a creature I can see hits a target, other than me, within 5 ft of me with an attack, I can reduce the damage the target takes by 1d10 + my proficiency bonus (min 0 damage). I must be wielding a shield or a simple or martial weapon to do this. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 41], [\"UA:CFV\", 12]]\r\n\t\t},\r\n\t\t\"thrown weapon fighting\" : {\r\n\t\t\tdescription : \"I can draw a weapon that has the thrown property as part of the attack I make with the weapon. In addition, when I hit with a ranged attack using a thrown weapon, I gain a +2 bonus to the damage roll. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 42]]\r\n\t\t},\r\n\t\t\"unarmed fighting\" : {\r\n\t\t\tdescription : \"My unarmed strikes deal 1d6 damage, or 1d8 if I'm not wielding any weapons or a shield. At the start of each of my turns, I can deal 1d4 bludgeoning damage to one creature grappled by me. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 42]]\r\n\t\t}\r\n\t};\r\n\tFtngStyles.choices.forEach(function (sName) {\r\n\t\tvar sNameLC = sName.toLowerCase();\r\n\t\tif (!FtngStyles[sNameLC]) return;\r\n\t\tFeatsList[\"fighting initiate\"].choices.push(sName);\r\n\t\tif (!FeatsList[\"fighting initiate\"][sNameLC]) {\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC] = {\r\n\t\t\t\tdescription : FtngStyles[sNameLC].description.replace(/^\\n   /i, '').replace(/\\n   /g, '. ') + \". I can replace this fighting style whenever I gain an ASI.\",\r\n\t\t\t\tsource : FtngStyles[sNameLC].source ? FtngStyles[sNameLC].source : FtngStyles.source\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Copy all attributes except name, source and description\r\n\t\tfor (var attr in FtngStyles[sNameLC]) {\r\n\t\t\tif ((/\\b(name|description|source)\\b/i).test(attr)) continue;\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC][attr] = FtngStyles[sNameLC][attr];\r\n\t\t}\r\n\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prereqeval) {\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC].prereqeval = function(v) {\r\n\t\t\t\tvar knownStyles = GetFightingStyleSelection();\r\n\t\t\t\treturn knownStyles[v.choice] ? false : true;\r\n\t\t\t};\r\n\t\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prerequisite) FeatsList[\"fighting initiate\"][sNameLC].prerequisite = sName + \" Fighting Style is not selected anywhere else.\"\r\n\t\t};\r\n\t});\r\n});\r\nFeatsList[\"gunner\"] = {\r\n\tname : \"Gunner\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You have a quick hand and keen eye when employing firearms, granting you the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with firearms (see \\\"Firearms\\\" in the Dungeon Master's Guide).\\n \\u2022 You ignore the loading property of firearms.\\n \\u2022 Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls.\",\r\n\tdescription : \"I gain proficiency with firearms. I ignore the loading property of firearms. I don't suffer disadvantage on ranged attack rolls for being within 5 ft of a hostile creature. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tweaponProfs : [false, false, [\"Firearms\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/firearm/i).test(v.theWea.type) || (/firearm/i).test(v.theWea.list)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/([;,]? ?loading|loading[;,]? ?)/i, '');\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of firearms.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"metamagic adept\"] = {\r\n\tname : \"Metamagic Adept\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You've learned how to exert your will on your spells to alter how they function:\\n \\u2022 You learn two Metamagic options of your choice from the sorcerer class. You can use only one Metamagic option on a spell when you cast it, unless the option says otherwise. Whenever you reach a level that grants the Ability Score Improvement feature, you can replace one of these Metamagic options with another one from the sorcerer class.\\n \\u2022 You gain 2 sorcery points to spend on Metamagic (these points are added to any sorcery points you have from another source but can be used only on Metamagic). You regain all spent sorcery points when you finish a long rest.\",\r\n\tdescription : 'I learn two Metamagic options from the sorcerer class (2nd page \"Choose Feature\" button). I can use only one option on a spell unless it says otherwise. I gain 2 sorcery points, which I can only use for Metamagic. I regain all expended sorcery points when I finish a long rest. I can change one ' + (typePF ? '' : 'Metamagic option ') + 'whenever I gain an ' + (typePF ? 'ASI' : 'Ability Score Improvement') + '.',\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"sorcerer\",\r\n\t\tfeature : \"metamagic\",\r\n\t\tbonus : 2\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Sorcery Points\",\r\n\t\tusages : 2,\r\n\t\trecovery : \"long rest\",\r\n\t\taddToExisting : true\r\n\t}],\r\n\tprerequisite : \"Spellcasting or Pact Magic feature\",\r\n\tprereqeval : function (v) { return v.isSpellcastingClass; }\r\n};\r\nFeatsList[\"piercer\"] = {\r\n\tname : \"Piercer\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You have achieved a penetrating precision in combat, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals piercing damage, you can reroll one of the attack's damage dice, and you must use the new roll.\\n \\u2022 When you score a critical hit that deals piercing damage to a creature, you can roll one additional damage die when determining the extra piercing damage the target takes.\",\r\n\tdescription : \"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target, I can roll one additional damage die. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/pierc(\\.|ing)/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\tvar extraCritRegex = /\\d+(d\\d+ extra on a crit(ical)?( hit)?( in melee)?)/i;\r\n\t\t\t\t\tv.extraCritM = (v.extraCritM ? v.extraCritM : 0) + 1;\r\n\t\t\t\t\tif (extraCritRegex.test(fields.Description)) {\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');\r\n\t\t\t\t\t} else if ((/d\\d/).test(fields.Damage_Die)) {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\\d+).*/, '$1') + ' extra on a crit';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!(/re-?roll (one|1)? ?damage/i).test(fields.Description)) {\r\n\t\t\t\t\t\tfields.Description += '; Once per turn, re-roll one damage die';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target, I can roll one additional damage die.\",\r\n\t\t\t900\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"poisoner\"] = {\r\n\tname : \"Poisoner\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You can prepare and deliver deadly poisons, granting you the following benefits:\\n \\u2022 When you make a damage roll that deals poison damage, it ignores resistance to poison damage.\\n \\u2022 You can apply poison to a weapon or piece of ammunition as a bonus action, instead of an action.\\n \\u2022 You gain proficiency with the poisoner's kit if you don't already have it. With one hour of work using a poisoner's kit and expending 50 gp worth of materials, you can create a number of doses of potent poison equal to your proficiency bonus. Once applied to a weapon or piece of ammunition, the poison retains its potency for 1 minute or until you hit with the weapon or ammunition. When a creature takes damage from the coated weapon or ammunition, that creature must succeed on a DC 14 Constitution saving throw or take 2d8 poison damage and become poisoned until the end of your next turn.\",\r\n\tdescription : \"My poison damage rolls ignore poison resistance. As a bonus action, I can apply poison to a weapon or piece of ammo. I can use a poisoner's kit and 50 gp to create my Prof Bonus doses of poison in 1 hour. Potent 1 min after applying. DC 14 Con save or 2d8 poison damage and poisoned until the end of my next turn.\",\r\n\ttoolProfs : [\"Poisoner's kit\"],\r\n\taction : [[\"bonus action\", \"Apply poison to weapon/ammo\"]]\r\n};\r\nFeatsList[\"shadow touched\"] = {\r\n\tname : \"Shadow Touched\",\r\n\tsource : [[\"T\", 80]],\r\n\tdescriptionFull : \"Your exposure to the Shadowfell's magic has changed you, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You learn the invisibility spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You learn the invisibility spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\r\n\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Invisibility\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"1st-level Illus/Necro spell\",\r\n\t\t'class' : \"any\",\r\n\t\tschool : [\"Illus\", \"Necro\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"skill expert\"] = {\r\n\tname : \"Skill Expert\",\r\n\tsource : [[\"T\", 80]],\r\n\tdescriptionFull : \"You have honed your proficiency with particular skills, granting you the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in one skill of your choice.\\n \\u2022 Choose one skill in which you have proficiency. You gain expertise with that skill, which means your proficiency bonus is doubled for any ability check you make with it. The skill you choose must be one that isn't already benefiting from a feature, such as Expertise, that doubles your proficiency bonus.\",\r\n\tdescription : \"I gain proficiency in one skill and expertise in that same skill or another skill I'm proficient with. [+1 to one ability score of my choice]\",\r\n\tskillstxt : \"Proficiency with one skill, and\\n   Expertise with one skill I'm proficient with\",\r\n\tscorestxt : \"+1 to one ability score of my choice\"\r\n};\r\nFeatsList[\"slasher\"] = {\r\n\tname : \"Slasher\",\r\n\tsource : [[\"T\", 81], [\"UA:F2\", 3]],\r\n\tdescriptionFull : \"You've learned where to cut to have the greatest results, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn when you hit a creature with an attack that deals slashing damage, you can reduce the speed of the target by 10 feet until the start of your next turn.\\n \\u2022 When you score a critical hit that deals slashing damage to a creature, you grievously wound it. Until the start of your next turn, the target has disadvantage on all attack rolls.\",\r\n\tdescription : \"Once per turn when I deal slashing damage to a target, I can reduce its speed by 10 ft until the start of my next turn. When I score a critical hit that deals slashing damage to a creature, the grievous wound causes it to have disadvantage on all attack rolls until the start of my next turn. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\nFeatsList[\"telekinetic\"] = {\r\n\tname : \"Telekinetic\",\r\n\tsource : [[\"T\", 81]],\r\n\tdescriptionFull : \"You learn to move things with your mind, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You learn the mage hand cantrip. You can cast it without verbal or somatic components, and you can make the spectral hand invisible. If you already know this spell, its range increases by 30 feet when you cast it. Its spellcasting ability is the ability increased by this feat.\\n \\u2022 As a bonus action, you can try to telekinetically shove one creature you can see within 30 feet of you. When you do so, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + the ability modifier of the score increased by this feat) or be moved 5 feet toward you or away from you. A creature can willingly fail this save.\",\r\n\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str save vs. this feat's spell save DC or be moved 5 ft from or towards me. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Int, Wis, or Cha]\",\r\n\taction : [[\"bonus action\", \" Shove\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Mage Hand\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spellKey !== \"mage hand\") return;\r\n\t\t\t\tspellObj.components = \"\";\r\n\t\t\t\tif (spellObj.description === SpellsList[\"mage hand\"].description) spellObj.description = \"Create (in)visible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\";\r\n\t\t\t\tvar rangeRx = /(\\d+)( ?ft| ?m)/i;\r\n\t\t\t\tif (!/^(?=.*telekinetic)(?=.*feat).*$/i.test(CurrentSpells[spName].name) && rangeRx.test(spellObj.range)) {\r\n\t\t\t\t\t// add the +30 ft range only if not the entry for the feat itself\r\n\t\t\t\t\tvar spRangeM = spellObj.range.match(rangeRx);\r\n\t\t\t\t\tspellObj.range = spellObj.range.replace(rangeRx, Number(spRangeM[1]) + (What(\"Unit System\") === \"metric\" ? 9 : 30) + spRangeM[2]);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t},\r\n\t\t\t\"My Telekinetic feat allows me to cast the Mage Hand cantrip without verbal or somatic components and I can make the spectral hand invisible. If I already know the cantrip from another source, its range is also increased with 30 ft.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Intelligence is my spellcasting ability for these. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Wisdom is my spellcasting ability for these. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Charisma is my spellcasting ability for these. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"telepathic\"] = {\r\n\tname : \"Telepathic\",\r\n\tsource : [[\"T\", 81]],\r\n\tdescriptionFull : \"You awaken the ability to mentally connect with others, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You can speak telepathically to any creature you can see within 60 feet of you. Your telepathic utterances are in a language you know, and the creature understands you only if it knows that language. Your communication doesn't give the creature the ability to respond to you telepathically.\\n \\u2022 You can cast the detect thoughts spell, requiring no spell slot or components, and you must finish a long rest before you can cast it this way again. Your spellcasting ability for the spell is the ability increased by this feat. If you have spell slots of 2nd level or higher, you can cast this spell with them.\",\r\n\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. My spellcasting ability is the ability I increase with this feat. [+1 Int, Wis, or Cha]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Detect Thoughts\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tspellChanges : {\r\n\t\t\"detect thoughts\" : {\r\n\t\t\tcomponents : \"(V,S,M)\",\r\n\t\t\tchanges : \"My Telepathic feat allows me to cast Detect Thoughts once per long rest without requiring a spell slot or spell components, or by using a spell slot and cast it with components as normal.\"\r\n\t\t}\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Intelligence is my spellcasting ability for this. [+1 Int\" + (typePF ? \"\" : \"elligence\") + \"]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Wisdom is my spellcasting ability for this. [+1 Wis\" + (typePF ? \"\" : \"dom\") + \"]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Charisma is my spellcasting ability for this. [+1 Cha\" + (typePF ? \"\" : \"risma\") + \"]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>> //\r\n// >>> New Spells >>> //\r\n// >>>>>>>>>>>>>>>>>> //\r\nSpellsList[\"dream of the blue veil\"] = {\r\n\tname : \"Dream of the Blue Veil\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 106]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"20 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A magic item or a willing creature from the destination world\",\r\n\tduration : \"6 hours\",\r\n\tdescription : \"9 willing crea unconscious for duration, after that travel to origin material plane of magic item or crea\",\r\n\tdescriptionFull : \"You and up to eight willing creatures within range fall unconscious for the spell's duration and experience visions of another world on the Material Plane, such as Oerth, Toril, Krynn, or Eberron. If the spell reaches its full duration, the visions conclude with each of you encountering and pulling back a mysterious blue curtain. The spell then ends with you mentally and physically transported to the world that was in the visions.\" +\r\n\t\"\\n   To cast this spell, you must have a magic item that originated on the world you wish to reach, and you must be aware of the world's existence, even if you don't know the world's name. Your destination in the other world is a safe location within 1 mile of where the magic item was created. Alternatively, you can cast the spell if one of the affected creatures was born on the other world, which causes your destination to be a safe location within 1 mile of where that creature was born.\" +\r\n\t\"\\n   The spell ends early on a creature if that creature takes any damage, and the creature isn't transported. If you take any damage, the spell ends for you and all the other creatures, with none of you being transported.\"\r\n};\r\nSpellsList[\"intellect fortress\"] = {\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107]],\r\n\tlevel : 3,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1+1/SL crea, each max 30 ft apart, has Psychic damage resistance and adv. on Int, Wis, and Cha saves\",\r\n\tdescriptionFull : \"For the duration, you or one willing creature you can see within range has resistance to psychic damage, as well as advantage on Intelligence, Wisdom, and Charisma saving throws.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional creature for each slot level above 3rd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"mind sliver\"] = {\r\n\tname : \"Mind Sliver\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\tlevel : 0,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d6 Psychic dmg, -1d4 on first save before my next turn ends; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionShorter : \"1 crea save or 1d6 Psychic dmg, -1d4 on 1st save before my next turn end; +1d6 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Psychic dmg and subtract 1d4 from first saving throw before my next turn ends\",\r\n\tdescriptionFull : \"You drive a disorienting spike of psychic energy into the mind of one creature you can see within range. The target must succeed on an Intelligence saving throw or take 1d6 psychic damage and subtract 1d4 from the next saving throw it makes before the end of your next turn.\" +\r\n\t\"\\n   This spell's damage increases by 1d6 when you reach certain levels: 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nWeaponsList[\"mind sliver\"] = {\r\n\tregExpSearch : /^(?=.*mind)(?=.*sliver).*$/i,\r\n\tname : \"Mind Sliver\",\r\n\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"psychic\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"1 creature Int save, success - no damage, fail - also -1d4 on first save before my next turn ends\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nSpellsList[\"spirit shroud\"] = {\r\n\tname : \"Spirit Shroud\",\r\n\tclasses : [\"cleric\", \"paladin\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 108]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 bns\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"My atks +1d8+1d8/2SL Cold/Necro/Radiant dmg, no heal until next turn; any crea I see -10 ft spd\",\r\n\tdescriptionShorter : \"My atks +1d8+1d8/2SL Cold/Necro/Radiant dmg, no heal 1 rnd; any crea -10 ft spd\",\r\n\tdescriptionFull : \"You call forth spirits of the dead, which flit around you for the spell's duration. The spirits are intangible and invulnerable.\"+\r\n\t\"\\n   Until the spell ends, any attack you make deals 1d8 extra damage when you hit a creature within 10 feet of you. This damage is radiant, necrotic, or cold (your choice when you cast the spell). Any creature that takes this damage can't regain hit points until the start of your next turn.\"+\r\n\t\"\\n   In addition, any creature of your choice that you can see that starts its turn within 10 feet of you has its speed reduced by 10 feet until the start of your next turn.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for every two slot levels above 3rd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"cold\", \"necrotic\", \"radiant\"],\r\n\t\t\tinDescriptionAs : \"Cold/Necro/Radiant\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"summon aberration\"] = {\r\n\tname : \"Summon Aberration\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 109]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A pickled tentacle and an eyeball in a platinum-inlaid vial worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Abberant Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth an aberrant spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Aberrant Spirit stat block. When you cast the spell, choose Beholderkin, Slaad, or Star Spawn. The creature resembles an aberration of that kind, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon beast\"] = {\r\n\tname : \"Summon Beast\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"T\", 109]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A feather, tuft of fur, and fish tail inside a gilded acorn worth at least 200 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Bestial Spirit; obeys commands; takes turn after mine; disappears at 0 hp (200gp)\",\r\n\tdescriptionFull : \"You call forth a bestial spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Bestial Spirit stat block. When you cast the spell, choose an environment: Air, Land, or Water. The creature resembles an animal of your choice that is native to the chosen environment, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon celestial\"] = {\r\n\tname : \"Summon Celestial\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"T\", 110]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A golden reliquary worth at least 500 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Celestial Spirit; obeys commands; takes turn after mine; disappears at 0 hp (500gp)\",\r\n\tdescriptionFull : \"You call forth a celestial spirit. It manifests in an angelic form in an unoccupied space that you can see within range. This corporeal form uses the Celestial Spirit stat block. When you cast the spell, choose Avenger or Defender. Your choice determines the creature's attack in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon construct\"] = {\r\n\tname : \"Summon Construct\",\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"T\", 111]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An ornate stone and metal lockbox worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Construct Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth the spirit of a construct. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Construct Spirit stat block. When you cast the spell, choose a material: Clay, Metal, or Stone. The creature resembles a golem or a modron (your choice) made of the chosen material, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon elemental\"] = {\r\n\tname : \"Summon Elemental\",\r\n\tclasses : [\"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"T\", 111]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Air, a pebble, ash, and water inside a gold-inlaid vial worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Elemental Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth an elemental spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Elemental Spirit stat block. When you cast the spell, choose an element: Air, Earth, Fire, or Water. The creature resembles a bipedal form wreathed in the chosen element, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon fey\"] = {\r\n\tname : \"Summon Fey\",\r\n\tclasses : [\"druid\", \"ranger\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 112]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded flower worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Fey Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a fey spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Fey Spirit stat block. When you cast the spell, choose a mood: Fuming, Mirthful, or Tricksy. The creature resembles a fey creature of your choice marked by the chosen mood, which determines one of the traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon fiend\"] = {\r\n\tname : \"Summon Fiend\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 112]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Humanoid blood inside a ruby vial worth at least 600 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Fiendish Spirit; obeys commands; takes turn after mine; disappears at 0 hp (600gp)\",\r\n\tdescriptionFull : \"You call forth a fiendish spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Fiendish Spirit stat block. When you cast the spell, choose Demon, Devil, or Yugoloth. The creature resembles a fiend of the chosen type, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon shadowspawn\"] = {\r\n\tname : \"Summon Shadowspawn\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 113]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Tears inside a gem worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Shadow Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a shadowy spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Shadow Spirit stat block. When you cast the spell, choose an emotion: Fury, Despair, or Fear. The creature resembles a misshapen biped marked by the chosen emotion, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon undead\"] = {\r\n\tname : \"Summon Undead\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 114]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded skull worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Undead Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth an undead spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Undead Spirit stat block. When you cast the spell, choose the creature's form: Ghostly, Putrid, or Skeletal. The spirit resembles an undead creature with the chosen form, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"tasha's caustic brew\"] = {\r\n\tname : \"Tasha's Caustic Brew\",\r\n\tnameAlt : \"Caustic Brew\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"T\", 115]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of rotten food\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft long 5-ft wide all save or 2d4+2d4/SL Acid dmg at start of turn; action to clean self or adjacent\",\r\n\tdescriptionShorter : \"30-ft long 5-ft wide all save or 2d4+2d4/SL Acid dmg at turn start; 1 a clean self/adjacent\",\r\n\tdescriptionFull : \"A stream of acid emanates from you in a line 30 feet long and 5 feet wide in a direction you choose. Each creature in the line must succeed on a Dexterity saving throw or be covered in acid for the spell's duration or until a creature uses its action to scrape or wash the acid off itself or another creature. A creature covered in the acid takes 2d4 acid damage at start of each of its turns.\" +\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 2d4 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"tasha's mind whip\"] = {\r\n\tname : \"Tasha's Mind Whip\",\r\n\tnameAlt : \"Mind Whip\",\r\n\tregExpSearch : /^(?=.*mind)(?=.*(whip|thrust)).*$/i, // \"Mind Thrust\" in UA:POR\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"T\", 115], [\"UA:POR\", 8]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1+1/SL crea, max 30 ft apart; 3d6 Psychic dmg; no rea; only move, act, or bns; save half, no act limit\",\r\n\tdescriptionShorter : \"1+1/SL crea, max 30 ft apart; 3d6 Psychic dmg; no rea; move, act, or bns; save half, no act limit\",\r\n\tdescriptionFull : \"You psychically lash out at one creature you can see within range. The target must make an Intelligence saving throw. On a failed save, the target takes 3d6 psychic damage, and it can't take a reaction until the end of its next turn. Moreover, on its next turn, it must choose whether it gets a move, an action, or a bonus action; it gets only one of the three. On a successful save, the target takes half as much damage and suffers none of the spell's other effects.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"tasha's otherworldly guise\"] = {\r\n\tname : \"Tasha's Otherworldly Guise\",\r\n\tnameShort : \"T's Otherworldly Guise\",\r\n\tnameAlt : \"Otherworldly Guise\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 116]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An object engraved with a symbol of the Outer Planes, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Fire/Poison or Radiant/Necrotic/Charm immune; 40 ft fly; +2 AC; 2 atks; spellcast. abi atks (500gp)\",\r\n\tdescriptionFull : \"Uttering an incantation, you draw on the magic of the Lower Planes or Upper Planes (your choice) to transform yourself. You gain the following benefits until the spell ends:\" +\r\n\t\"\\n \\u2022 You are immune to fire and poison damage (Lower Planes) or radiant and necrotic damage (Upper Planes).\" +\r\n\t\"\\n \\u2022 You are immune to the poisoned condition (Lower Planes) or the charmed condition (Upper Planes).\" +\r\n\t\"\\n \\u2022 Spectral wings appear on your back, giving you a flying speed of 40 feet.\" +\r\n\t\"\\n \\u2022 You have a +2 bonus to AC.\" +\r\n\t\"\\n \\u2022 All your weapon attacks are magical, and when you make a weapon attack, you can use your spellcasting ability modifier, instead of Strength or Dexterity, for the attack and damage rolls.\" +\r\n\t\"\\n \\u2022 You can attack twice, instead of once, when you take the Attack action on your turn. You ignore this benefit if you already have a feature, like Extra Attack, that lets you attack more than once when you take the Attack action on your turn.\"\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>> //\r\n// >>> Magic Items >>> //\r\n// >>>>>>>>>>>>>>>>>>> //\r\n// Tattoos\r\nvar TCoE_magicTattoosDescription = desc([\r\n\t\" >>Tattoo Attunement<<. To attune to this item, you hold the needle to your skin where you want the tattoo to appear, pressing the needle there throughout the attunement process. When the attunement is complete, the needle turns into the ink that becomes the tattoo, which appears on the skin.\",\r\n\t\" If your attunement to the tattoo ends, the tattoo vanishes, and the needle reappears in your space.\",\r\n\t\"\\n>>Magic Tattoos<< (TCoE 118)\",\r\n\t\" Blending magic and artistry with ink and needles, magic tattoos imbue their bearers with wondrous abilities. Magic tattoos are initially bound to magic needles, which transfer their magic to a creature.\",\r\n\t\" Once inscribed on a creature's body, damage or injury doesn't impair the tattoo's function, even if the tattoo is defaced. When applying a magic tattoo, a creature can customize the tattoo's appearance. A magic tattoo can look like a brand, scarification, a birthmark, patterns of scale, or any other cosmetic alteration.\",\r\n\t\" The rarer a magic tattoo is, the more space it typically occupies on a creature's skin. The table below offers guidelines for how large a given tattoo is.\",\r\n\t\"\\n>>Tattoo Rarity\\tArea Covered<<\",\r\n\t\"Common     \\tOne hand or foot or a quarter of a limb\",\r\n\t\"Uncommon   \\tHalf a limb or the scalp\",\r\n\t\"Rare\\t\\tOne limb\",\r\n\t\"Very Rare  \\tTwo limbs or the chest or upper back\",\r\n\t\"Legendary  \\tTwo limbs and the torso\"\r\n], \"\\n  \");\r\nmagicTattoosTxt = { // a public variable to be used for any magical tattoo that uses these rules\r\n\tbase : TCoE_magicTattoosDescription,\r\n\tunicode : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tuppercase : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/\\byou\\b/ig, \"I\"),\r\n\tplain : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, \"$1\").replace(/your/g, \"my\").replace(/\\byou\\b/ig, \"I\")\r\n};\r\nMagicItemsList[\"absorbing tattoo\"] = function() {\r\n\tvar oObj = {\r\n\t\tname : \"Absorbing Tattoo\",\r\n\t\tsource : [[\"T\", 119]],\r\n\t\ttype : \"wondrous item (tattoo)\",\r\n\t\trarity : \"very rare\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing. It grants me resistance to a damage type. As a reaction once per dawn when I take that type of damage, I can gain immunity against that instance of damage and recover half the damage as HP.\",\r\n\t\tdescriptionFull : \"Produced by a special needle, this magic tattoo features designs that emphasize one color.\"+\r\n\t\t\"\\n   \" + toUni(\"Damage Resistance\") + \". While the tattoo is on your skin, you have resistance to a type of damage associated with that color, as shown on the table below. The DM chooses the color or determines it randomly.\"+\r\n\t\ttoUni(\"\\nd10\\tDamage Type\\tColor\")+\r\n\t\t\"\\n   1\\tAcid\\t\\tGreen\"+\r\n\t\t\"\\n   2\\tCold\\t\\tBlue\"+\r\n\t\t\"\\n   3\\tFire\\t\\tRed\"+\r\n\t\t\"\\n   4\\tForce\\t\\tWhite\"+\r\n\t\t\"\\n   5\\tLightning  \\tYellow\"+\r\n\t\t\"\\n   6\\tNecrotic\\t\\tBlack\"+\r\n\t\t\"\\n   7\\tPoison\\t\\tViolet\"+\r\n\t\t\"\\n   8\\tPsychic\\t\\tSilver\"+\r\n\t\t\"\\n   9\\tRadiant\\t\\tGold\"+\r\n\t\t\"\\n 10\\tThunder\\t\\tOrange\"+\r\n\t\t\"\\n\\n   \" + toUni(\"Damage Absorption\") + \". When you take damage of the chosen type, you can use your reaction to gain immunity against that instance of the damage, and you regain a number of hit points equal to half the damage you would have taken. Once this reaction is used, it can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"Immunity\",\r\n\t\tchoices : [\"Acid (green)\", \"Cold (blue)\", \"Fire (red)\", \"Force (white)\", \"Lightning (yellow)\", \"Necrotic (black)\", \"Poison (violet)\", \"Psychic (silver)\", \"Radiant (gold)\", \"Thunder (orange)\"]\r\n\t};\r\n\tvar sDescr = \"When I attune to this magic needle, it disappears and I gain a COLOR magical tattoo of a design of my choosing. It grants me resistance to TYPE damage. As a reaction once per dawn when I take TYPE damage, I can gain immunity against that instance of damage and recover half the damage as HP.\";\r\n\tfor (var i = 0; i < oObj.choices.length; i++) {\r\n\t\tvar aType = oObj.choices[i].split(/ \\(|\\)/g);\r\n\t\toObj[oObj.choices[i].toLowerCase()] = {\r\n\t\t\tname : aType[0] + \" Absorbing Tattoo\",\r\n\t\t\tsortname : \"Absorbing Tattoo, \" + aType[0],\r\n\t\t\tdescription : sDescr.replace(/TYPE/g, aType[0].toLowerCase()).replace(/COLOR/g, aType[1]),\r\n\t\t\tdmgres : [aType[0]],\r\n\t\t\taction : [[\"reaction\", \" (Immunity)\"]]\r\n\t\t}\r\n\t}\r\n\treturn oObj;\r\n}();\r\nMagicItemsList[\"barrier tattoo\"] = {\r\n\tname : \"Barrier Tattoo\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\tdescription : \"This magic tattoo depicts protective imagery and uses ink that resembles liquid metal. While not wearing armor, this tattoo grants me an Armor Class related to the rarity of the tattoo.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo depicts protective imagery and uses ink that resembles liquid metal.\"+\r\n\t\"\\n   \" + toUni(\"Protection\") + \". While you aren't wearing armor, the tattoo grants you an Armor Class depending on the tattoo's rarity, as shown below. You can use a shield and still gain this benefit.\"+\r\n\ttoUni(\"\\nTattoo Rarity\\tAC\")+\r\n\t\"\\n  Uncommon\\t12 + your Dexterity modifier\"+\r\n\t\"\\n  Rare\\t\\t15 + your Dexterity modifier (maximum of +2)\"+\r\n\t\"\\n  Very Rare\\t18\\n\"+\r\n\tmagicTattoosTxt.unicode,\r\n\tattunement : true,\r\n\tchoices : [\"AC 12+Dex (uncommon)\", \"AC 15+Dex (rare)\", \"AC 18 (very rare)\"],\r\n\t\"ac 12+dex (uncommon)\" : {\r\n\t\tname : \"Barrier Tattoo (uncommon)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 12 + my Dexterity modifier. I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 12,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"ac 15+dex (rare)\" : {\r\n\t\tname : \"Barrier Tattoo (rare)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 15 + my Dexterity modifier (maximum of +2). I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 15,\r\n\t\t\tdex : 2,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"ac 18 (very rare)\" : {\r\n\t\tname : \"Barrier Tattoo (very rare)\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 18. I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 18,\r\n\t\t\tdex : -10,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"blood fury tattoo\"] = {\r\n\tname : \"Blood Fury Tattoo\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo has 10 charges, regaining all at dawn. As a reaction when a creature I can see damages me, I can use 1 charge to make a melee attack with advantage against it. When I hit a creature with a melee attack, I can use 1 charge to deal it 4d6 necrotic damage and regain the same amount in hit points.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo evokes fury in its form and colors.\"+\r\n\t\"\\n   \" + toUni(\"Bloodthirsty Strikes\") + \". The tattoo has 10 charges, and it regains all expended charges daily at dawn. While this tattoo is on your skin, you gain the following benefits:\"+\r\n\t\"\\n \\u2022 When you hit a creature with a weapon attack, you can expend a charge to deal an extra 4d6 necrotic damage to the target, and you regain a number of hit points equal to the necrotic damage dealt.\"+\r\n\t\"\\n \\u2022 When a creature you can see damages you, you can expend a charge and use your reaction to make a melee attack against that creature, with advantage on your attack roll.\" + magicTattoosTxt.unicode,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (after taking damage)\"]]\r\n}\r\nMagicItemsList[\"coiling grasp tattoo\"] = {\r\n\tname : \"Coiling Grasp Tattoo\",\r\n\tsource : [[\"T\", 123]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo features intertwining designs. As an action, I can have a creature I can see within 15 ft make a DC 14 Str save or take 3d6 force damage and be grappled. It can use its action to try and escape (DC 14 Athletics/Acrobatics). Grapple ends if I halt it, use it again, or if the target is more than 15 ft away.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo has long intertwining designs.\"+\r\n\t\"\\n   \" + toUni(\"Grasping Tendrils\") + \". While the tattoo is on your skin, you can, as an action, cause the tattoo to extrude into inky tendrils, which reach for a creature you can see within 15 feet of you. The creature must succeed on a DC 14 Strength saving throw or take 3d6 force damage and be grappled by you. As an action, the creature can escape the grapple by succeeding on a DC 14 Strength (Athletics) or Dexterity (Acrobatics) check. The grapple also ends if you halt it (no action required), if the creature is ever more than 15 feet away from you, or if you use this tattoo on a different creature.\" + magicTattoosTxt.unicode,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*coiling grasp)(?=.*tattoo).*$/i,\r\n\t\tname : \"Coiling Grasp Tattoo\",\r\n\t\tsource : [[\"T\", 123]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [3, 6, \"force\"],\r\n\t\trange : \"15 ft\",\r\n\t\tdescription : \"Str save, success - no damage, fail - grappled; Escape DC 14 Athletics/Acrobatics\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tmodifiers : [6, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"eldritch claw tattoo\"] = {\r\n\tname : \"Eldritch Claw Tattoo\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo featuring clawlike forms makes my unarmed strikes magical with a +1 bonus to attack and damage. As a bonus action once per dawn, I can have it empower me for 1 minute so that all my melee attacks with weapons and unarmed strikes have 15 ft reach and deal an extra 1d6 force damage.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo depicts clawlike forms and other jagged shapes.\"+\r\n\t\"\\n   \" + toUni(\"Magical Strikes\") + \". While the tattoo is on your skin, your unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks, and you gain a +1 bonus to attack and damage rolls with unarmed strikes.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Maul\") + \". As a bonus action, you can empower the tattoo for 1 minute. For the duration, each of your melee attacks with a weapon or an unarmed strike can reach a target up to 15 feet away from you, as inky tendrils launch toward the target. In addition, your melee attacks deal an extra 1d6 force damage on a hit. Once used, this bonus action can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Eldritch Maul\",\r\n\taction : [[\"bonus action\", \" (Eldritch Maul)\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((v.baseWeaponName === \"unarmed strike\" || v.isMeleeWeapon) && (/eldritch (claw|maul)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tif (fields.Range.toLowerCase() === 'melee') {\r\n\t\t\t\t\t\tfields.Range = 'Melee (15 ft reach)';\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 force damage';\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '15 ft reach; +1d6 force damage';\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the words 'Eldritch Maul' or 'Eldritch Claw' in the name of a melee weapon or an unarmed strike, it gets +10 ft reach and +1d6 force damage.\",\r\n\t\t\t700\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\toutput.magic += 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"ghost step tattoo\"] = {\r\n\tname : \"Ghost Step Tattoo\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action 3 times per day, I can become incorporeal until my next turn ends. While incorporeal, I can't be grappled or restrained, gain nonmagical bludgeoning, piercing, and slashing damage resistance, and can move through creatures or objects as difficult terrain (1d10 force damage if I end my turn in one).\",\r\n\tdescriptionFull : \"Produced by a special needle, this tattoo shifts and wavers on the skin, parts of it appearing blurred.\"+\r\n\t\"\\n   \" + toUni(\"Ghostly Form\") + \". The tattoo has 3 charges, and it regains all expended charges daily at dawn. As a bonus action while the tattoo is on your skin, you can expend 1 of the tattoo's charges to become incorporeal until the end of your next turn. For the duration, you gain the following benefits:\"+\r\n\t\"\\n \\u2022 You have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks.\"+\r\n\t\"\\n \\u2022 You can't be grappled or restrained.\"+\r\n\t\"\\n \\u2022 You can move through creatures and solid objects as if they were difficult terrain. If you end your turn in a solid object, you take 1d10 force damage. If the effect ends while you are inside a solid object, you instead are shunted to the nearest unoccupied space, and you take 1d10 force damage for every 5 feet traveled.\" + magicTattoosTxt.unicode,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"illuminator's tattoo\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Illuminator's Tattoo\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"While this beautiful calligraphy tattoo is on my skin, I can write with my fingertip as if it is an ink pen that never runs out of ink. As an action, I can touch writing up to one page and speak a creature's name, making it invisible to everyone else but me and the creature for up to 24 hours or until I or the creature touch it.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo features beautiful calligraphy, images of writing implements, and the like.\"+\r\n\t\"\\n   \" + toUni(\"Magical Scribing\") + \". While this tattoo is on your skin, you can write with your fingertip as if it were an ink pen that never runs out of ink.\"+\r\n\t\"\\n   As an action, you can touch a piece of writing up to one page in length and speak a creature's name. The writing becomes invisible to everyone other than you and the named creature for the next 24 hours. Either of you can dismiss the invisibility by touching the script (no action required). Once used, this action can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"lifewell tattoo\"] = {\r\n\tname : \"Lifewell Tattoo\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring symbols of life and rebirth. It grants me resistance to necrotic damage. The first time per dawn when I would be reduced to 0 hit points, I drop to 1 hit point instead.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo features symbols of life and rebirth.\"+\r\n\t\"\\n   \" + toUni(\"Necrotic Resistance\") + \". You have resistance to necrotic damage.\"+\r\n\t\"\\n   \" + toUni(\"Life Ward\") + \". When you would be reduced to 0 hit points, you drop to 1 hit point instead. Once used, this property can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tdmgres : [\"Necrotic\"]\r\n}\r\nMagicItemsList[\"masquerade tattoo\"] = {\r\n\tname : \"Masquerade Tattoo\",\r\n\tsource : [[\"T\", 131]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo. As a bonus action, I can change its size, color, pattern, and location on my skin to whatever I want, but it's always obviously a tattoo. As an action once per dawn, I can use the tattoo to cast Disguise Self (DC 13 to discern the disguise).\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo appears on your body as whatever you desire.\"+\r\n\t\"\\n   \" + toUni(\"Fluid Ink\") + \". As a bonus action, you can shape the tattoo into any color or pattern and move it to any area of your skin. Whatever form it takes, it is always obviously a tattoo. It can range in size from no smaller than a copper piece to an intricate work of art that covers all your skin.\"+\r\n\t\"\\n   \" + toUni(\"Disguise Self\") + \". As an action, you can use the tattoo to cast the disguise self spell (DC 13 to discern the disguise). Once the spell is cast from the tattoo, it can't be cast from the tattoo again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Disguise Self\",\r\n\taction : [[\"bonus action\", \" (change)\"]],\r\n\tfixedDC : 13,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Disguise Self\",\r\n\t\tspells : [\"disguise self\"],\r\n\t\tselection : [\"disguise self\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\nMagicItemsList[\"shadowfell brand tattoo\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Shadowfell Brand Tattoo\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a dark, abstract magical tattoo. It gives me darkvision with a range of 60 ft and advantage on Dexterity (Stealth) checks. As a reaction once per sunset when I take damage, I can become insubstantial for a moment, halving the damage I take.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo is dark in color and abstract.\"+\r\n\t\"\\n   \" + toUni(\"Shadow Essence\") + \". You gain darkvision with a range of 60 feet, and you have advantage on Dexterity (Stealth) checks.\"+\r\n\t\"\\n   \" + toUni(\"Shadowy Defense\") + \". When you take damage, you can use your reaction to become insubstantial for a moment, halving the damage you take. Then the reaction can't be used again until the next sunset.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"sunset\",\r\n\taction : [[\"reaction\", \" (halve damage)\"]],\r\n\tadvantages : [\"Stealth\", true],\r\n\tvision : [[\"Darkvision\", 60]]\r\n}\r\nMagicItemsList[\"spellwrought tattoo\"] = {\r\n\tname : \"Spellwrought Tattoo\",\r\n\tsource : [[\"T\", 135]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\tdescription : \"When I hold this magic needle against my skin and speak the command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its spell, requiring no material components. The tattoo glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo contains a single spell of up to 5th level, wrought on your skin by a magic needle. To use the tattoo, you must hold the needle against your skin and speak the command word. The needle turns into ink that becomes the tattoo, which appears on the skin in whatever design you like. Once the tattoo is there, you can cast its spell, requiring no material components. The tattoo glows faintly while you cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes from your skin.\"+\r\n\t\"\\n   The level of the spell in the tattoo determines the spell's saving throw DC, attack bonus, spellcasting ability modifier, and the tattoo's rarity, as shown in the table below.\\n\"+\r\n\ttoUni(\"\\n Spell\\t\\t     Spellcasting\\tSave\\tAttack\"+\r\n\t\"\\n Level\\tRarity\\t     Ability Mod.\\t DC\\tBonus\")+\r\n\t\"\\nCantrip\\tCommon\\t\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  1st\\tCommon\\t\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  2nd\\tUncommon\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  3rd\\tUncommon\\t+4\\t 15\\t  +7\"+\r\n\t\"\\n  4th\\tRare\\t\\t+4\\t 15\\t  +7\"+\r\n\t\"\\n  5th\\tRare\\t\\t+5\\t 17\\t  +9\" + magicTattoosTxt.unicode.replace(/[\\s\\S]*in your space\\.\\n */, \"\\n\"),\r\n\tallowDuplicates : true,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ((/^spellwrought tattoo/i).test(spName)) {\r\n\t\t\t\t\tif (spellObj.components) spellObj.components = spellObj.components.replace(/,?[RM][\\u0192\\u2020]?/ig, '');\r\n\t\t\t\t\tif (spellObj.compMaterial) spellObj.compMaterial = \"Spell cast using a Spellwrought Tattoo, require no material components\";\r\n\t\t\t\t\tspellObj.ritual = false;\r\n\t\t\t\t\t[\"description\", \"descriptionMetric\", \"descriptionShorter\", \"descriptionShorterMetric\"].forEach (function (attr) {\r\n\t\t\t\t\t\tif (!spellObj[attr]) return;\r\n\t\t\t\t\t\tspellObj[attr] = spellObj[attr].replace(/ \\(\\d+k? ?gp( cons\\.?)?\\)/i, '');\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"When casting a spell using a Spellwrought Tattoo, no material components are needed, and can't be cast as a ritual.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Cantrip (common)\", \"1st-level (common)\", \"2nd-level (uncommon)\", \"3rd-level (uncommon)\", \"4th-level (rare)\", \"5th-level (rare)\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"cantrip (common)\" : {\r\n\t\tname : \"Spellwrought Tattoo (cantrip)\",\r\n\t\tsortname : \"Spellwrought Tattoo  (cantrip)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its cantrip, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,0],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"1st-level (common)\" : {\r\n\t\tname : \"Spellwrought Tattoo (1st-level)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 1st-level spell, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [1,1],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"2nd-level (uncommon)\" : {\r\n\t\tname : \"Spellwrought Tattoo (2nd-level)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 2nd-level spell, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [2,2],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"3rd-level (uncommon)\" : {\r\n\t\tname : \"Spellwrought Tattoo (3rd-level)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 3rd-level spell, requiring no material components, with DC 15, +7 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [3,3],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"4th-level (rare)\" : {\r\n\t\tname : \"Spellwrought Tattoo (4th-level)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 4th-level spell, requiring no material components, with DC 15, +7 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [4,4],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"5th-level (rare)\" : {\r\n\t\tname : \"Spellwrought Tattoo (5th-level)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 5th-level spell, requiring no material components, with DC 17, +9 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [5,5],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t}\r\n}\r\n// Bonus to spell attack rolls and saving throw DCs\r\nMagicItemsList[\"all-purpose tool\"] = {\r\n\tname : \"All-Purpose Tool\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by an artificer\",\r\n\tprereqeval : function(v) { return classes.known.artificer ? true : false; },\r\n\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\tdescriptionFull : \"This simple screwdriver can transform into a variety of tools; as an action, you can touch the item and transform it into any type of artisan's tool of your choice (see the \\\"Equipment\\\" chapter in the Player's Handbook for a list of artisan's tools). Whatever form the tool takes, you are proficient with it.\"+\r\n\t\"\\n   While holding this tool, you gain a bonus to the spell attack rolls and the saving throw DCs of your artificer spells. The bonus is determined by the tool's rarity.\"+\r\n\t\"\\n   As an action, you can focus on the tool to channel your creative forces. Choose a cantrip that you don't know from any class list. For 8 hours, you can cast that cantrip, and it counts as an artificer cantrip for you. Once this property is used, it can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"choose cantrip\",\r\n\tspellcastingAbility: \"artificer\",\r\n\tspellFirstColTitle: \"8h\",\r\n\tspellcastingPreparedCantrips: { 'class': 'any' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'any',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('all-purpose tool') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n\taction : [[\"action\", \" (transform tool)\"], [\"action\", \" (choose cantrip)\"]],\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"All-Purpose Tool +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +1 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"All-Purpose Tool +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +2 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"All-Purpose Tool +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +3 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"amulet of the devout\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Amulet of the Devout\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\tdescriptionFull : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While you wear the holy symbol you gain a bonus to spell attack rolls and the saving throw DCs of your spells. The bonus is determined by the amulet's rarity.\"+\r\n\t\"\\n   While you wear this amulet, you can use your Channel Divinity feature without expending one of the feature's uses. Once this property is used, it can't be used again until the next dawn.\",\r\n\tweight : 1, // as amulet holy symbol\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Channel Divinity\",\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Amulet of the Devout +1\",\r\n\t\tnameTest : \"+1 Amulet of the Devout\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +1 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Amulet of the Devout +2\",\r\n\t\tnameTest : \"+2 Amulet of the Devout\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +2 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Amulet of the Devout +3\",\r\n\t\tnameTest : \"+3 Amulet of the Devout\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +3 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"arcane grimoire\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Arcane Grimoire\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a bonus to spell attack rolls and the saving throw DCs of my wizard spells.\",\r\n\tdescriptionFull : \"While you are holding this leather-bound book, you can use it as a spellcasting focus for your wizard spells, and you gain a bonus to spell attack rolls and the saving throw DCs of your wizard spells. The bonus is determined by the book's rarity.\"+\r\n\t\"\\n   You can use this book as a spellbook. In addition, when you use your Arcane Recovery feature, you can increase the number of spell slot levels you regain by 1.\",\r\n\tweight : 3, // as spellbook\r\n\tchangeeval : function() {\r\n\t\t// Update the limited feature \"Arcane Recovery\" to display 1 more spell level than for the wizard level (unless there is no wizard level)\r\n\t\tif (!classes.known.wizard) return;\r\n\t\t// This changeeval is called before the class feature updates the limited feature, so we need to use setTimeOut to do the change after\r\n\t\tvar arcaneGrimoireArcaneRecoveryFix = function() {\r\n\t\t\tvar lvls = Math.ceil(classes.known.wizard.level / 2) + 1;\r\n\t\t\tvar additional = \" (\" + lvls + \" levels of spell slots)\";\r\n\t\t\tvar tooltip = \"Arcane Grimoire (recover +1 level)\";\r\n\t\t\tAddFeature(\"Arcane Recovery\", 1, additional, \"long rest\", tooltip, \"replace\");\r\n\t\t}\r\n\t\tvar timeout = app.setTimeOut(\"arcaneGrimoireArcaneRecoveryFix();\", 300);\r\n\t},\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Arcane Grimoire +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +1 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Arcane Grimoire +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +2 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Arcane Grimoire +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +3 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bloodwell vial\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Bloodwell Vial\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\tdescriptionFull : \"To attune to this vial, you must place a few drops of your blood into it. The vial can't be opened while your attunement to it lasts. If your attunement to the vial ends, the contained blood turns to ash. You can use the vial as a spellcasting focus for your spells while wearing or holding it, and you gain a bonus to spell attack rolls and to the saving throw DCs of your sorcerer spells. The bonus is determined by the vial's rarity.\"+\r\n\t\"\\n   In addition, when you roll any Hit Dice to recover hit points while you are carrying the vial, you can regain 5 sorcery points. This property of the vial can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"recover 5 Sorcery Points\",\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Bloodwell Vial +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +1 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Bloodwell Vial +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +1 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Bloodwell Vial +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +3 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"moon sickle\"] = {\r\n\tname : \"Moon Sickle\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"weapon (sickle)\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or ranger\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.ranger || classes.known.rangerua ? true : false;\r\n\t},\r\n\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a bonus to attack and damage rolls made with it. While I'm holding it, I gain a bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\tdescriptionFull : \"This silver-bladed sickle glimmers softly with moonlight. While holding this magic weapon, you gain a bonus to attack and damage rolls made with it, and you gain a bonus to spell attack rolls and the saving throw DCs of your druid and ranger spells. The bonus is determined by the weapon's rarity. In addition, you can use the sickle as a spellcasting focus for your druid and ranger spells.\"+\r\n\t\"\\n   When you cast a spell that restores hit points, you can roll a d4 and add the number rolled to the amount of hit points restored, provided you are holding the sickle.\",\r\n\tweight : 2,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spellObj.psionic || !spellObj.level) return;\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"enervation\" :\r\n\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\tcase \"vampiric touch\" :\r\n\t\t\t\t\t\tvar useSpellDescr = getSpellShortDescription(spellKey, spellObj);\r\n\t\t\t\t\t\tvar strAdd = \" +1d4\";\r\n\t\t\t\t\t\tspellObj.description = useSpellDescr.replace(/(heals? (half|twice)( the damage dealt| that)?)( in HP)?/, \"$1\" + strAdd);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tdefault :\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d4\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"While holding the Moon Sickle when I cast a spell that restores hit points, I can roll a d4 and add the number rolled to the amount of hit points restored.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"+1 weapon, +1 to spell attacks and DCs (uncommon)\", \"+2 weapon, +2 to spell attacks and DCs (rare)\", \"+3 weapon, +3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 weapon, +1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Moon Sickle +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +1 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +1 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +1\"], options : [\"Moon Sickle +1\"] }\r\n\t},\r\n\t\"+2 weapon, +2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Moon Sickle +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +2 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +2 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +2\"], options : [\"Moon Sickle +2\"] }\r\n\t},\r\n\t\"+3 weapon, +3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Moon Sickle +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +3 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +3 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +3\"], options : [\"Moon Sickle +3\"] }\r\n\t}\r\n}\r\nMagicItemsList[\"rhythm maker's drum\"] = {\r\n\tname : \"Rhythm Maker's Drum\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this drum, I gain a bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\tdescriptionFull : \"While holding this drum, you gain a bonus to spell attack rolls and to the spell saving throw DCs or your bard spells. The bonus is determined by the drum's rarity.\"+\r\n\t\"\\n   As an action, you can play the drum to regain one use of your Bardic Inspiration feature. This property of the drum can't be used again until the next dawn.\",\r\n\tweight : 3,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \" (bardic inspiration)\"]],\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"While holding this drum, I gain a +1 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While holding this drum, I gain a +2 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this drum, I gain a +3 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\n// Spellbook alternatives\r\nMagicItemsList[\"alchemical compendium\"] = {\r\n\tname : \"Alchemical Compendium\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this tome with spells as my spellbook and spellcasting focus. It has 3 charges, regaining 1d3 at dawn. With 1 charge \\u0026 1 min of study, I can change a prepared spell to a transmutation spell within. As an action, I can touch an unattended, nonmagical object and use charges to transform it into another. See tooltip.\",\r\n\tdescriptionLong : \"I can use this acrid smelling, stained, heavy book with metal fittings as my spellbook and, while held, as my spellcasting focus. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a transmutation spell within. As an action, I can touch an unattended, nonmagical object and use charges to transform it into another. For 1 charge, the object can be up to 1 ft on a side. I can spend additional charges to increase these dimensions by 2 ft per charge. The new object must have no higher gp value than the original.\",\r\n\tdescriptionFull : \"Acrid odors cling to this stained, heavy volume. The book's metal fittings are copper, iron, lead, silver, and gold, some frozen mid-transition from one metal to another. When found, the book contains the following spells: enlarge/reduce, feather fall, flesh to stone, gaseous form, magic weapon, and polymorph. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the transmutation school.\"+\r\n\t\"\\n \\u2022 As an action, you can touch a nonmagical object that isn't being worn or carried and spend a number of charges to transform the target into another object. For 1 charge, the object can be no larger than 1 foot on a side. You can spend additional charges to increase the maximum dimensions by 2 feet per charge. The new object must have a gold value equal to or less than the original.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"enlarge/reduce\", \"feather fall\", \"flesh to stone\", \"gaseous form\", \"magic weapon\", \"polymorph\"]\r\n\t},\r\n\taction : [[\"action\", \" (transform object)\"]]\r\n}\r\nMagicItemsList[\"astromancy archive\"] = {\r\n\tname : \"Astromancy Archive\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"As bonus action, I can (un)fold this disc into an armillary sphere. I can use it as a spellcasting focus and spellbook with 3 charges, regains 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can swap a prepared spell for a divination spell within. As a reaction, I can use 1 charge to add/subtract d4 from attack/check/save in 30 ft.\",\r\n\tdescriptionLong : \"As a bonus action, I can unfold this brass disc of articulated, concentric rings into an armillary sphere or back into a disc. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a divination spell within. As a reaction when I see a creature within 30 ft roll for an attack, check, or save, I can expend 1 change to add or subtract 1d4 from the roll. This happens after I see the roll but before the roll's effects are applied.\",\r\n\tdescriptionFull : \"This brass disc of articulated, concentric rings unfolds into an armillary sphere. As a bonus action, you can unfold it into the sphere or back into a disc. When found, it contains the following spells, which are wizard spells for you while you are attuned to it: augury, divination, find the path, foresight, locate creature, and locate object. It functions as a spellbook for you, with spells encoded on the rings.\"+\r\n\t\"\\n   While you are holding the archive, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The archive has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the archive, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the archive. The new spell must be of the divination school.\"+\r\n\t\"\\n \\u2022 When a creature you can see within 30 feet of you makes an attack roll, an ability check, or a saving throw, you can use your reaction to expend 1 charge and force the creature to roll a d4 and apply the number rolled as a bonus or penalty (your choice) to the original roll. You can do this after you see the roll but before its effects are applied.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Astromancy Archive\",\r\n\t\t\tspells : [\"augury\", \"divination\", \"find the path\"], // not wizard spells!\r\n\t\t\tselection : [\"augury\", \"divination\", \"find the path\"],\r\n\t\t\ttimes : 3\r\n\t\t}],\r\n\t\taddToKnown : [\"foresight\", \"locate creature\", \"locate object\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"bonus action\", \" (fold/unfold)\"],\r\n\t\t[\"reaction\", \" (add/subtract d4)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"atlas of endless horizons\"] = {\r\n\tname : \"Atlas of Endless Horizons\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a conjuration spell within. As a reaction when hit by an attack, I can use 1 charge to teleport up to 10 ft, making it miss if I'm out of range.\",\r\n\tdescriptionLong : \"This thick book is bound in dark leather, crisscrossed with inlaid silver lines suggesting a map or chart. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to replace one of my prepared wizard spells with a conjuration spell in this book. As a reaction when I am hit by an attack, I can expend 1 charge to teleport up to 10 ft to an unoccupied space I can see. If my new position is out of range of the attack, it misses me.\",\r\n\tdescriptionFull : \"This thick book is bound in dark leather, crisscrossed with inlaid silver lines suggesting a map or chart. When found, the book contains the following spells, which are wizard spells for you while you are attuned to the book: arcane gate, dimension door, gate, misty step, plane shift, teleportation circle, and word of recall. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the conjuration school.\"+\r\n\t\"\\n \\u2022 When you are hit by an attack, you can use your reaction to expend 1 charge to teleport up to 10 feet to an unoccupied space you can see. If your new position is out of range of the attack, it misses you.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Atlas of Endless Horizons\",\r\n\t\t\tspells : [\"word of recall\"], // not a wizard spell!\r\n\t\t\tselection : [\"word of recall\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"arcane gate\", \"dimension door\", \"gate\", \"misty step\", \"plane shift\", \"teleportation circle\"]\r\n\t},\r\n\taction : [[\"reaction\", \"Teleport 10ft (1 charge)\"]]\r\n}\r\nMagicItemsList[\"crystalline chronicle\"] = {\r\n\tname : \"Crystalline Chronicle\",\r\n\tsource : [[\"T\", 124]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this orb with spells as a wizard spellcasting focus and spellbook. It lets me use Mage Hand, Mind Sliver, and Message. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to another within. I can use 1 charge to ignore components of a wizard spell (max 100 gp).\",\r\n\tdescriptionLong : \"This grapefruit sized, etched crystal sphere hums pulses with irregular flares of inner light. I can retrieve and store information within the crystal as a spellbook by touching it. It contains several spells and has 3 charges, regaining 1d3 at dawn. While holding it, I can use it as a spellcasting focus for my wizard spells, I know the Mage Hand, Mind Sliver, and Message cantrips, I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to another within, and when I cast a wizard spell, I can expend 1 charge to cast it without verbal, somatic, or material components of up to 100 gp value.\",\r\n\tdescriptionFull : \"An etched crystal sphere the size of a grapefruit hums faintly and pulses with irregular flares of inner light. While you are touching the crystal, you can retrieve and store information and spells within the crystal at the same rate as reading and writing. When found, the crystal contains the following spells: detect thoughts, intellect fortress, Rary's telepathic bond, sending, telekinesis, Tasha's mind whip, and Tenser's floating disk. It functions as a spellbook for you, with its spells and other writing psychically encoded within it.\"+\r\n\t\"\\n   While you are holding the crystal, you can use it as a spellcasting focus for your wizard spells, and you know the mage hand, mind sliver, and message cantrips if you don't already know them.\"+\r\n\t\"\\n   The crystal has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the information within the crystal, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book.\"+\r\n\t\"\\n \\u2022 When you cast a wizard spell, you can expend 1 charge to cast the spell without verbal, somatic, or material components of up to 100 gp value.\",\r\n\tweight : 3, // As orb arcane focus\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"mage hand\", \"mind sliver\", \"message\", \"detect thoughts\", \"intellect fortress\", \"rary's telepathic bond\", \"sending\", \"telekinesis\", \"tasha's mind whip\", \"tenser's floating disk\"]\r\n\t}\r\n}\r\nMagicItemsList[\"duplicitous manuscript\"] = {\r\n\tname : \"Duplicitous Manuscript\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to an illusion spell within. As a reaction when a save or Investigation check is made vs. my illusion spells, I can use 1 charge to impose disadv.\",\r\n\tdescriptionLong : \"This book appears to be a volume of romance fiction to anyone but me. As an action, I can change its appearance and plot. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an illusion spell within. As a reaction while holding it when a creature I can see makes a save or an Intelligence (Investigation) check against an illusion spell I cast, I can expend 1 charge to impose disadvantage on the roll.\",\r\n\tdescriptionFull : \"To you, this book is a magical spellbook. To anyone else, the book appears to be a volume of verbose romance fiction. As an action, you can change the book's appearance and alter the plot of the romance.\"+\r\n\t\"\\n   When found, the book contains the following spells: hallucinatory terrain, major image, mirror image, mislead, Nystul's magic aura, phantasmal force, and silent image. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the illusion school.\"+\r\n\t\"\\n \\u2022 When a creature you can see makes an Intelligence (Investigation) check to discern the true nature of an illusion spell you cast, or makes a saving throw against an illusion spell you cast, you can use your reaction and expend 1 charge to impose disadvantage on the roll.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"hallucinatory terrain\", \"major image\", \"mirror image\", \"mislead\", \"nystul's magic aura\", \"phantasmal force\", \"silent image\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"reaction\", \" (impose disadv.)\"],\r\n\t\t[\"action\", \" (change book)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"fulminating treatise\"] = {\r\n\tname : \"Fulminating Treatise\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this tome as a wizard spellcasting focus and spellbook. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min study, I can change a prepared spell to an evocation spell within. As a reaction when my evocation spell damages a creature, I can use 1 charge to deal it 2d6 force damage and knock it prone.\",\r\n\tdescriptionLong : \"This thick, scorched book reeks of smoke and ozone, and sparks of energy crackles along the edges of its pages. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an evocation spell within. As a reaction while holding it when a creature I can see takes damage from an evocation spell I cast, I can expend 1 charge to deal the creature an extra 2d6 force damage and knock it prone if it's Large or smaller.\",\r\n\tdescriptionFull : \"This thick, scorched spellbook reeks of smoke and ozone, and sparks of energy crackles along the edges of its pages. When found, the book contains the following spells: contingency, fireball, gust of wind, Leomund's tiny hut, magic missile, thunderwave, and wall of force. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the evocation school.\"+\r\n\t\"\\n \\u2022 When one creature you can see takes damage from an evocation spell you cast, you can use your reaction and expend 1 charge to deal an extra 2d6 force damage to the creature and knock the creature prone if it is Large or smaller.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"contingency\", \"fireball\", \"gust of wind\", \"leomund's tiny hut\", \"magic missile\", \"thunderwave\", \"wall of force\"]\r\n\t},\r\n\taction : [[\"reaction\", \"Add 2d6 Force Dmg (1 chg)\"]]\r\n}\r\nMagicItemsList[\"heart weaver's primer\"] = {\r\n\tname : \"Heart Weaver's Primer\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this book as a wizard spellcasting focus and spellbook. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to an enchantment spell in it. When I cast an enchantment spell, I can use 1 charge to grant disadv. on the first save one target makes against the spell.\",\r\n\tdescriptionLong : \"This pristine book smells faintly of a random scent I find pleasing. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells that I can prepare as wizards spells. It has 3 charges and it regains 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an enchantment spell within the book. When I cast an enchantment spell while holding the book, I can expend 1 charge to impose disadvantage on the first saving throw one target makes against the spell.\",\r\n\tdescriptionFull : \"This pristine book smells faintly of a random scent you find pleasing. When found, the book contains the following spells: antipathy/sympathy, charm person, dominate person, enthrall, hypnotic pattern, modify memory, and suggestion. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the enchantment school.\"+\r\n\t\"\\n \\u2022 When you cast an enchantment spell, you can expend 1 charge to impose disadvantage on the first saving throw one target makes against the spell.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Heart Weaver's Primer\",\r\n\t\t\tspells : [\"enthrall\"], // not a wizard spell!\r\n\t\t\tselection : [\"enthrall\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"antipathy/sympathy\", \"charm person\", \"dominate person\", \"hypnotic pattern\", \"modify memory\", \"suggestion\"]\r\n\t}\r\n}\r\nMagicItemsList[\"libram of souls and flesh\"] = {\r\n\tname : \"Libram of Souls and Flesh\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a necromancy spell within. As an action, I can use 1 charge to appear undead for 10 min, causing undead I haven't damage to be indifferent.\",\r\n\tdescriptionLong : \"With covers made of skin and fittings of bone, this tome is cold to the touch, and fainlty whispers. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a necromancy spell within. As an action, I can expend 1 charge to appear undead for 10 minutes, fooling even spells. For the duration, undead are indifferent to me, unless I have damaged them. The effect ends early if I deal damage or force a creature to make a save.\",\r\n\tdescriptionFull : \"With covers made of skin and fittings of bone, this tome is cold to the touch, and it whispers faintly. When found, the book contains the following spells, which are wizard spells for you while you are attuned to the book: animate dead, circle of death, false life, finger of death, speak with dead, summon undead, and vampiric touch. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the necromancy school.\"+\r\n\t\"\\n \\u2022 As an action, you can expend 1 charge to take on a semblance of undeath for 10 minutes. For the duration, you take on a deathly appearance, and undead creatures are indifferent to you, unless you have damaged them. You also appear undead to all outward inspection and to spells used to determine the target's status. The effect ends if you deal damage or force a creature to make a saving throw.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Libram of Souls and Flesh\",\r\n\t\t\tspells : [\"speak with dead\"], // not a wizard spell!\r\n\t\t\tselection : [\"speak with dead\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"animate dead\", \"circle of death\", \"false life\", \"finger of death\", \"summon undead\", \"vampiric touch\"]\r\n\t},\r\n\taction : [[\"action\", \"Semblance of Undeath\"]]\r\n}\r\nMagicItemsList[\"planecaller's codex\"] = {\r\n\tname : \"Planecaller's Codex\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 6 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a conjuration spell within. When I cast a conjuration spell to summon or create one creature, I can give it adv. on attacks for 1 min for 1 charge.\",\r\n\tdescriptionLong : \"The pages of this book are bound in fiend hide, and its cover is embossed with a diagram of the multiverse. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a conjuration spell within the book. When I hold the book and cast a conjuration spell that summons or creates one creature, I can expend 1 charge to grant that creature advantage on attack rolls for 1 minute.\",\r\n\tdescriptionFull : \"The pages of this book are bound in fiend hide, and its cover is embossed with a diagram of the Great Wheel of the multiverse. When found, the book contains the following spells: banishment, find familiar, gate, magic circle, planar binding, and summon elemental. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the conjuration school.\"+\r\n\t\"\\n \\u2022 When you cast a conjuration spell that summons or creates one creature, you can expend 1 charge to grant that creature advantage on attack rolls for 1 minute.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"banishment\", \"find familiar\", \"gate\", \"magic circle\", \"planar binding\", \"summon elemental\"]\r\n\t}\r\n}\r\nMagicItemsList[\"protective verses\"] = {\r\n\tname : \"Protective Verses\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this book with an iron lock as a spellcasting focus and spellbook. As an action, I can use Arcane Lock it. It has 3 charges, regains 1d3 at dawn. For 1 charge \\u0026 1 min study, I can change a prepared spell to an abjuration within. I can use 1 charge when I cast an abjuration spell to give a creature in 30 ft 2d10 temp HP.\",\r\n\tdescriptionLong : \"This leather-bound spellbook is reinforced with iron and silver fittings and an iron lock (DC 20 to open). As an action, I can touch the book's cover and cause it to lock as if I cast arcane lock on it. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an abjuration spell within. When I hold the book and cast an abjuration, I can expend 1 charge to grant a creature I can see within 30 ft 2d10 temporary hit points.\",\r\n\tdescriptionFull : \"This leather-bound spellbook is reinforced with iron and silver fittings and an iron lock (DC 20 to open). As an action, you can touch the book's cover and cause it to lock as if you cast arcane lock on it. When found, the book contains the following spells: arcane lock, dispel magic, globe of invulnerability, glyph of warding, Mordenkainen's private sanctum, protection from evil, and symbol. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the abjuration school.\"+\r\n\t\"\\n \\u2022 When you cast an abjuration spell, you can expend 1 charge to grant a creature you can see within 30 feet of you 2d10 temporary hit points.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"arcane lock\", \"dispel magic\", \"globe of invulnerability\", \"glyph of warding\", \"mordenkainen's private sanctum\", \"protection from evil and good\", \"symbol\"]\r\n\t},\r\n\taction : [[\"action\", \" (Arcane Lock itself)\"]]\r\n}\r\n// Sorcerer stones\r\nMagicItemsList[\"astral shard\"] = {\r\n\tname : \"Astral Shard\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this crystal swirling with silver mist as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. Immediately after I cast a spell with a metamagic option while I hold or wear this shard, I can teleport to an unoccupied space I can see within 30 ft.\",\r\n\tdescriptionFull : \"This crystal is a solidified shard of the Astral Plane, swirling with silver mist. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus for your sorcerer spells while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, immediately after casting the spell you can teleport to an unoccupied space you can see within 30 feet of you.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"elemental essence shard\"] = {\r\n\tname : \"Elemental Essence Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this flickering crystal as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. It holds the essence of an Elemental Plane, which grants me additional benefits when I use a Metamagic option on a spell.\",\r\n\tdescriptionFull : \"This crackling crystal contains the essence of an elemental plane. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   Roll a d4 and consult the Elemental Essence Shards table to determine the shard's essence and property. When you use a Metamagic option on a spell while you are holding or wearing the shard, you can use that property.\"+\r\n\ttoUni(\"\\n d4\\tEssence\")+\r\n\t\"\\n  1\\tAir\"+\r\n\t\"\\n  2\\tEarth\"+\r\n\t\"\\n  3\\tFire\"+\r\n\t\"\\n  4\\tWater\\n\"+\r\n\t\"\\n   \" + toUni(\"Air\") + \". You can immediately fly up to 60 feet without provoking opportunity attacks.\"+\r\n\t\"\\n   \" + toUni(\"Earth\") + \". You gain resistance to a damage type of your choice until the start of your next turn.\"+\r\n\t\"\\n   \" + toUni(\"Fire\") + \". One target of the spell that you can see catches fire. The burning target takes 2d10 fire damage at the start of its next turn, and then the flames go out.\"+\r\n\t\"\\n   \" + toUni(\"Water\") + \". You create a wave of water that bursts out from you in a 10-foot radius. Each creature of your choice that you can see in that area takes 2d6 cold damage and must succeed on a Strength saving throw against your spell save DC or be pushed 10 feet away from you and fall prone.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"Air Essence\", \"Earth Essence\", \"Fire Essence\", \"Water Essence\"],\r\n\t\"air essence\" : {\r\n\t\tname : \"Air Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Air\",\r\n\t\tdescription : \"As an action, I can attach or detach this crackling crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can immediately fly up to 60 ft without provoking opportunity attacks.\"\r\n\t},\r\n\t\"earth essence\" : {\r\n\t\tname : \"Earth Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Earth\",\r\n\t\tdescription : \"As an action, I can attach or detach this crackling crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I gain resistance to a damage type of my choice until the start of my next turn.\"\r\n\t},\r\n\t\"fire essence\" : {\r\n\t\tname : \"Fire Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Fire\",\r\n\t\tdescription : \"As an action, I can attach/detach this crackling crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, one target of that spell that I can see catches fire for a round, taking 2d10 fire damage at the start of its next turn.\"\r\n\t},\r\n\t\"water essence\" : {\r\n\t\tname : \"Water Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Water\",\r\n\t\tdescription : \"As an action, I can attach/detach this crackling crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, all chosen creatures in 10 ft of me take 2d6 cold damage and must make a Str save or fall prone \\u0026 be pushed back 10 ft\"\r\n\t}\r\n}\r\nMagicItemsList[\"far realm shard\"] = {\r\n\tname : \"Far Realm Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this crystal to an object. While I hold or wear it, it works as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option, I can have a creature I can see in 30 ft make a Cha save (my spell save DC) or take 3d6 psychic damage \\u0026 be frightened of me until my next turn starts.\",\r\n\tdescriptionFull : \"This writhing crystal is steeped in the warped essence of the Far Realm. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can cause a slimy tentacle to rip through the fabric of reality and strike one creature you can see within 30 feet of you. The creature must succeed on a Charisma saving throw against your spell save DC or take 3d6 psychic damage and become frightened of you until the start of your next turn.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"outer essence shard\"] = {\r\n\tname : \"Outer Essence Shard\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this flickering crystal as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. It holds the essence of an Outer Plane, which grants me additional benefits when I use a Metamagic option on a spell.\",\r\n\tdescriptionFull : \"This flickering crystal holds the essence of an Outer Plane. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   Roll a d4 and consult the Outer Essence Shards table to determine the shard's essence and property. When you use a Metamagic option on a spell while you are holding or wearing the shard, you can use that property.\"+\r\n\ttoUni(\"\\n d4\\tEssence\")+\r\n\t\"\\n  1\\tLawful\"+\r\n\t\"\\n  2\\tChaotic\"+\r\n\t\"\\n  3\\tGood\"+\r\n\t\"\\n  4\\tEvil\\n\"+\r\n\t\"\\n   \" + toUni(\"Lawful\") + \". You can end one of the following conditions affecting yourself or one creature you can see within 30 feet of you: charmed, blinded, deafened, frightened, poisoned, or stunned.\"+\r\n\t\"\\n   \" + toUni(\"Chaotic\") + \". Choose one creature who takes damage from the spell. That target has disadvantage on attack rolls and ability checks made before the start of your next turn.\"+\r\n\t\"\\n   \" + toUni(\"Good\") + \". You or one creature of your choice that you can see within 30 feet of you gains 3d6 temporary hit points.\"+\r\n\t\"\\n   \" + toUni(\"Evil\") + \". Choose one creature who takes damage from the spell. That target takes an extra 3d6 necrotic damage.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"Lawful Essence\", \"Chaotic Essence\", \"Good Essence\", \"Evil Essence\"],\r\n\t\"lawful essence\" : {\r\n\t\tname : \"Lawful Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Lawful\",\r\n\t\tdescription : \"As an action, I can attach/detach this flickering crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have myself or another I can see in 30 ft no longer be charmed, blinded, deafened, frightened, poisoned, or stunned.\"\r\n\t},\r\n\t\"chaotic essence\" : {\r\n\t\tname : \"Chaotic Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Chaotic\",\r\n\t\tdescription : \"As an action, I can attach/detach this flickering crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that was damaged by that spell have disadv. on its attacks and checks until my next turn starts.\"\r\n\t},\r\n\t\"good essence\" : {\r\n\t\tname : \"Good Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Good\",\r\n\t\tdescription : \"As an action, I can attach or detach this flickering crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that I can see within 30 ft or myself gain 3d6 temporary hit points.\"\r\n\t},\r\n\t\"evil essence\" : {\r\n\t\tname : \"Evil Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Evil\",\r\n\t\tdescription : \"As an action, I can attach or detach this flickering crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that took damage from that spell take an extra 3d6 necrotic damage.\"\r\n\t}\r\n}\r\nMagicItemsList[\"shadowfell shard\"] = {\r\n\tname : \"Shadowfell Shard\",\r\n\tsource : [[\"T\", 135]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this dull crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can curse a target of that spell to have disadv. on checks and saves with an ability score of my choice until my next turn ends.\",\r\n\tdescriptionFull : \"This dull, cold crystal sits heavy and leaden, saturated by the Shadowfell's despair. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can momentarily curse one creature targeted by the spell; choose one ability score, and until the end of your next turn, the creature has disadvantage on ability checks and saving throws that use that ability.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"feywild shard\"] = {\r\n\tname : \"Feywild Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and once per dawn when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table (see Notes for the table).\",\r\n\tdescriptionFull : \"This warm crystal glints with the sunset colors of the Feywild sky and evokes whispers of emotional memory. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can roll on the Wild Magic Surge table in the Player's Handbook. If the result is a spell, it is too wild to be affected by your Metamagic, and if it normally requires concentration, it doesn't require concentration in this case; the spell lasts for its full duration.\"+\r\n\t\"\\n   If you don't have the Wild Magic Sorcerous Origin, once this property is used to roll on the Wild Magic Surge table, it can't be used again until the next dawn.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"As a wild magic sorcerer (Wild Mage)\", \"As any other sorcerer\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.sorcerer && /wild mag(ic|e)/i.test(classes.known.sorcerer.subclass) ? \"as a wild magic sorcerer (wild mage)\" : \"as any other sorcerer\";\r\n\t},\r\n\t\"as a wild magic sorcerer (wild mage)\" : {\r\n\t\tname : \"Feywild Shard (Wild Mage)\",\r\n\t\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. It falls off if my attunement ends. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table.\"\r\n\t},\r\n\t\"as any other sorcerer\" : {\r\n\t\tname : \"Feywild Shard  \", // spaces are intentional\r\n\t\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and once per dawn when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table (see Notes for the table).\",\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Feywild Shard (wild magic surge)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t}\r\n}\r\nif (ClassSubList['sorcerer-wild magic'] && ClassSubList['sorcerer-wild magic'].features.subclassfeature1.toNotesPage) { // Add the wild magic surge tables to this item\r\n\tMagicItemsList[\"feywild shard\"].toNotesPage = ClassSubList['sorcerer-wild magic'].features.subclassfeature1.toNotesPage;\r\n}\r\n// Bard instruments\r\nMagicItemsList[\"reveler's concertina\"] = {\r\n\tname : \"Reveler's Concertina\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this concertina, I gain a +2 bonus to the saving throw DC of my bard spells.\\nOnce per dawn, I can use the concertina to cast Otto's Irresistible Dance.\",\r\n\tdescriptionFull : \"While holding this concertina, you gain a +2 bonus to the saving throw DC of your bard spells.\"+\r\n\t\"\\n   As an action, you can use the concertina to cast Otto's irresistible dance from the item. This property of the concertina can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Irresistible Dance\",\r\n\tspellcastingAbility : \"class\", // https://www.sageadvice.eu/2015/11/27/hat-of-disguise-dc/\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Otto's Irresistible Dance\",\r\n\t\tspells : [\"otto's irresistible dance\"],\r\n\t\tselection : [\"otto's irresistible dance\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('bard') !== -1) return 2;\r\n\t\t\t},\r\n\t\t\t\"While holding the Reveler's Concertina, I gain a +2 bonus to the saving throw DCs of my bard spells.\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"lyre of building\"] = {\r\n\tname : \"Lyre of Building\",\r\n\tsource : [[\"T\", 131]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this lyre, I can cast mending as an action. As a reaction, I can protect a structure or object that takes damage from that damage type until the my next turn starts. As an action, I can play the lyre to cast Fabricate, Move Earth, Passwall, or Summon Construct from it, each spell once per dawn.\",\r\n\tdescriptionFull : \"While holding this lyre, you can cast mending as an action. You can also play the lyre as a reaction when an object or a structure you can see within 300 feet of you takes damage, causing it to be immune to that damage and any further damage of the same type until the start of your next turn.\"+\r\n\t\"\\n   In addition, you can play the lyre as an action to cast fabricate, move earth, passwall, or summon construct, and that spell can't be cast from it again until the next dawn.\",\r\n\tweight : 2,\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mending\"],\r\n\t\tselection : [\"mending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"fabricate\", \"move earth\", \"passwall\", \"summon construct\"],\r\n\t\tselection : [\"fabricate\", \"move earth\", \"passwall\", \"summon construct\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 4\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fabricate\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Lyre of Building, I can cast Fabricate as an action.\"\r\n\t\t},\r\n\t\t\"mending\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Lyre of Building, I can cast Mending as an action.\"\r\n\t\t}\r\n\t},\r\n\taction : [[\"reaction\", \" (protect object)\"]]\r\n}\r\n// Other magic items\r\nMagicItemsList[\"bell branch\"] = {\r\n\tname : \"Bell Branch\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or warlock\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.warlock ? true : false;\r\n\t},\r\n\tdescription : \"This silver branch with bells has 3 charges, regains 1d3 at dawn. I can use it as my spellcasting focus. As a bonus action, I can use 1 charge to detect the presence of aberrations, celestials, fiends, constructs, elementals, fey, or undead in 60 ft not behind total cover. I can use 1 charge to cast Protection from Evil and Good.\",\r\n\tdescriptionFull : \"This silver implement is shaped like a tree branch and is strung with small golden bells. The branch is a spellcasting focus for your spells while you hold it.\"+\r\n\t\"\\n   The branch has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it.\"+\r\n\t\"\\n \\u2022 As a bonus action, you can expend 1 charge to detect the presence of aberrations, celestials, constructs, elementals, fey, fiends, or undead within 60 feet of you. If such creatures are present and don't have total cover from you, the bells ring softly, their tone indicating the creature types present.\"+\r\n\t\"\\n \\u2022 As an action, you can expend 1 charge to cast protection from evil and good.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \" (detect)\"]],\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Protection from Evil/Good\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n}\r\nMagicItemsList[\"cauldron of rebirth\"] = {\r\n\tname : \"Cauldron of Rebirth\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or warlock\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.warlock ? true : false;\r\n\t},\r\n\tdescription : \"After a long rest, I can use this Tiny pot to create a potion of greater healing that lasts up to 24 hours. As an action, I can have it grow to fit a Medium creature, or shrink it back down. I can place a dead creature inside with 200 lb salt (10 gp) for 8 hours to Raise Dead. Once used, it can't do this again for 7 days.\",\r\n\tdescriptionFull : \"This Tiny pot bears relief scenes of heroes on its cast iron sides. You can use the cauldron as a spellcasting focus for your druid spells, and it functions as a suitable component for the scrying spell. When you finish a long rest, you can use the cauldron to create a potion of greater healing. The potion lasts for 24 hours, then loses its magic if not consumed.\"+\r\n\t\"\\n   As an action, you can cause the cauldron to grow large enough for a Medium creature to crouch within. You can revert the cauldron to its normal size as an action, harmlessly shunting anything that can't fit inside to the nearest unoccupied space.\"+\r\n\t\"\\n   If you place the corpse of a humanoid into the cauldron and cover the corpse with 200 pounds of salt (which costs 10 gp) for at least 8 hours, the salt is consumed and the creature returns to life as if by raise dead at the next dawn. Once used, this property can't be used again for 7 days.\",\r\n\taction : [[\"action\", \" (grow/shrink)\"]],\r\n\tusages : 1,\r\n\trecovery : \"7 days\",\r\n\tadditional : \"Raise Dead\"\r\n}\r\nMagicItemsList[\"devotee's censer\"] = {\r\n\tname : \"Devotee's Censer\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"weapon\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"I can use this magic flail, perforated with tiny holes, as a holy symbol. Attacks with it deal +1d8 radiant damage. As a bonus action once per dawn, I can speak the command word to cause it to emanate incense out to 10 ft for 1 minute. At the start of each of my turns, all creatures in the incense heal 1d4 hit points.\",\r\n\tdescriptionFull : \"The rounded head of this flail is perforated with tiny holes, arranged in symbols and patterns. The flail counts as a holy symbol for you. When you hit with an attack using this magic flail, the target takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   As a bonus action, you can speak the command word to cause the flail to emanate a thin cloud of incense out to 10 feet for 1 minute. At the start of each of your turns, you and any other creatures in the incense each regain 1d4 hit points. This property can't be used again until the next dawn.\",\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"bonus action\", \" (incense cloud)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*devotee)(?=.*censer).*$/i,\r\n\t\tname : \"Devotee's Censer\",\r\n\t\tsource : [[\"T\", 126]],\r\n\t\tdescription : \"+1d8 radiant damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"guardian emblem\"] = {\r\n\tname : \"Guardian Emblem\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"As an action, I can attach or detach this symbol of a deity to a shield or a suit of armor. It has 3 charges, regaining all at dawn. As a reaction when I or a creature I can see within 30 ft suffers a critical hit while I wear the armor or wield the shield that bears the emblem, I can expend 1 charge to turn it into a normal hit.\",\r\n\tdescriptionFull : \"This emblem is the symbol of a deity or a spiritual tradition. As an action, you can attach the emblem to a suit of armor or a shield or remove it.\"+\r\n\t\"\\n   The emblem has 3 charges. When you or a creature you can see within 30 feet of you suffers a critical hit while you're wearing the armor or wielding the shield that bears the emblem, you can use your reaction to expend 1 charge to turn the critical hit into a normal hit instead.\"+\r\n\t\"\\n   The emblem regains all expended charges daily at dawn.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"stop critical\",\r\n\taction : [\r\n\t\t[\"action\", \" (attach/detach)\"],\r\n\t\t[\"reaction\", \" (stop critical)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"nature's mantle\"] = {\r\n\tname : \"Nature's Mantle\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"wonderous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or ranger.\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.ranger || classes.known.rangerua ? true : false;\r\n\t},\r\n\tdescription : \"This cloak shifts color and texture to blend with the terrain surrounding me. While wearing the cloak, I can use it as a spellcasting focus for my druid and ranger spells. While I am in an area that is lightly obscured, I can Hide as a bonus action even if I am being directly observed.\",\r\n\tdescriptionFull : \"This cloak shifts color and texture to blend with the terrain surrounding you. While wearing the cloak, you can use it as a spellcasting focus for your druid and ranger spells.\"+\r\n\t\"\\n   While you are in an area that is lightly obscured, you can Hide as a bonus action even if you are being directly observed.\",\r\n\taction : [[\"bonus action\", \" (Hide)\"]]\r\n}\r\n\n// pub_20210316_CM.js\r\n// This file adds the content from the Candlekeep Mysteries adventure to MPMB's Character Record Sheet\r\n// All content in this file contains contributions by Ratatoskr589\r\n\r\nSourceList.CM = {\r\n\tname : \"Candlekeep Mysteries\",\r\n\tabbreviation : \"CM\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/candlekeep-mysteries\",\r\n\tdate : \"2021/03/16\"\r\n};\r\n\r\nMagicItemsList[\"orcus figurine\"] = {\r\n\tname : \"Orcus Figurine\",\r\n\tsource : [[\"CM\", 44]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"\",\r\n\tstoryItemAL : true,\r\n\tattunement : false,\r\n\tdescription : \"This Tiny figurine smells of decaying flesh, detectable out to 5 ft. Within 30 ft of it, dead can't be brought back to life and undead can't be turned. If I hold it and pray for 1 hour, I have a 10% chance of calling a wraith for 1 hour that attacks all non-undead. Once summoned, the figurine can't do so again for 30 days.\",\r\n\tdescriptionFull : \"Carved from an ogre's petrified heart, the gray figurine depicts the Demon Prince of Undeath in ghastly detail, clutching his skull-topped wand in one hand and three severed heads by the hair in the other. The figurine smells like decaying flesh, and this scent is detectable out to a range of 5 feet.\"+\r\n\t\"\\n   The figurine is a Tiny object with AC 17, 3 hit points, and immunity to all types of damage except radiant damage. A detect evil and good spell or similar magic reveals that the figurine has been desecrated. As long as it has at least 1 hit point, the figurine has the following magical properties:\"+\r\n\t\"\\n   \\u2022 Undead within 30 feet of the figurine can't be turned.\"+\r\n\t\"\\n   \\u2022 Dead creatures within 30 feet of the figurine can't be brought back to life.\"+\r\n\t\"\\n   \\u2022 A creature that holds the figurine while praying to Orcus for at least 1 hour has a 10 percent chance of summoning a smoky avatar of the demon lord. Once this avatar is summoned, it can't be summoned again for 30 days. Orcus's avatar has the statistics of a wraith except that it's chaotic evil. It attacks all non-undead creatures it encounters, and it disappears after 1 hour or when reduced to 0 hit points.\"\r\n};\r\nMagicItemsList[\"radiance (wand)\"] = {\r\n\tname : \"Radiance (wand)\",\r\n\tsource : [[\"CM\", 87]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\", // inferred, as it is a wand of the war mage +1 (uncommon) with extra's\r\n\tattunement : true,\r\n\tdescription : \"While I am holding this exquisite golden hand mirror, I gain a +1 bonus to spell attack rolls and I ignore half cover when making a spell attack. This arcane focus sheds dim light in a 5-ft radius while in darkness. As a bonus action once per dawn, I can use Radiance to cast Enhance Ability on myself.\",\r\n\tdescriptionFull : \"While holding this wand, you gain a +1 bonus to spell attack rolls. In addition, you ignore half cover when making a spell attack. Radiance is in the form of an exquisite golden hand mirror.\"+\r\n\t\"\\n   While surrounded by darkness, it sheds dim light in a 5-foot radius. A creature that is attuned to Radiance can use a bonus action while holding the mirror to cast the enhance ability spell, choosing itself and no other creature as the spell's target. Once this property of the wand is used, it can't be used again until the next dawn.\",\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Radiance (Enhance Ability)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn, self only\",\r\n\t\tspells : [\"enhance ability\"],\r\n\t\tselection : [\"enhance ability\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"enhance ability\" : {\r\n\t\t\tdescription : \"I gain adv. on checks with 1 ability score; choosing Str, Dex, or Con gives secondary benefits\",\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\trange : \"Self\",\r\n\t\t\tchanges : \"Using Radiance, I can cast Enhance Ability once per dawn as a bonus action instead of an action, but only on myself.\"\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"serpent scale armor\"] = {\r\n\tname : \"Serpent Scale Armor\",\r\n\tsource : [[\"CM\", 98]],\r\n\ttype : \"armor (scale mail)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : false,\r\n\tdescription : \"This suit of magical scale mail is made from shimmering scales. Unlike normal scale mail, it does not impose disadvantage on my Dexterity (Stealth) checks and allows me to apply my full Dexterity modifier instead of the normal maximum of +2 for Medium armor.\",\r\n\tdescriptionFull : \"This suit of magic armor is made from shimmering scales. While wearing it, you can apply your full Dexterity modifier (instead of a maximum of +2) when determining your Armor Class. In addition, this armor does not impose disadvantage on your Dexterity (Stealth) checks.\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /serpent scale/i,\r\n\t\tname : \"Serpent Scale Armor\",\r\n\t\tsource : [[\"CM\", 98]],\r\n\t\ttype : \"medium\",\r\n\t\tac : 14,\r\n\t\tweight : 45,\r\n\t\tdex : 100,\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"serpent's fang\"] = {\r\n\tname : \"Serpent's Fang\",\r\n\tsource : [[\"CM\", 98]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"rare\",\r\n\tattunement : false,\r\n\tdescription : \"This single-edged magic sword is made from the scrimshawed fang of a giant serpent. Its hilt changes shape to adjust to the grasp of any creature that picks it up. The weapon deals an extra 1d10 poison damage to any target it hits.\",\r\n\tdescriptionFull : \"This single-edged magic sword is made from the scrimshawed fang of a giant serpent. Its hilt changes shape to adjust to the grasp of any creature that picks it up. The weapon deals an extra 1d10 poison damage to any target it hits.\",\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /^(?=.*serpent)(?=.*fang).*$/i,\r\n\t\tname : \"Serpent's Fang\",\r\n\t\tsource : [[\"CM\", 98]],\r\n\t\tdescription : \"Versatile (d10); +1d10 poison damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nif (MagicItemsList[\"alchemy jug\"]) {\r\n\t// Make the default into a choice (if not done so already)\r\n\tif (!MagicItemsList[\"alchemy jug\"].choices) {\r\n\t\tMagicItemsList[\"alchemy jug\"].source = [[\"D\", 150], [\"CM\", 144]];\r\n\t\tMagicItemsList[\"alchemy jug\"].allowDuplicates = true;\r\n\t\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Regular (acid and poison)\", {\r\n\t\t\tname : \"Alchemy Jug (regular)\",\r\n\t\t\tsource : [[\"D\", 150]],\r\n\t\t\tdescription : MagicItemsList[\"alchemy jug\"].description,\r\n\t\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong,\r\n\t\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull\r\n\t\t}, true);\r\n\t};\r\n\t// Add the blue and orange jugs as choices\r\n\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Blue (hot tea)\", {\r\n\t\tname : \"Alchemy Jug (Blue)\",\r\n\t\tsource : [[\"CM\", 144]],\r\n\t\tdescription : MagicItemsList[\"alchemy jug\"].description.replace(\"acid (8 fl oz), basic poison (1/2 fl oz)\", \"boiling hot tea (1 qt)\"),\r\n\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong.replace(\"acid (8 fl. oz.), basic poison (1/2 fl. oz.)\", \"boiling hot tea (1 quart)\"),\r\n\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull.replace(/\\n8 ounces[\\s\\S]+/, \r\n\t\t\t\"\\n4 gallons  \\tBeer\\t\\t2 gallons  \\tVinegar\"+\r\n\t\t\t\"\\n1 quart   \\tBoiling hot tea\\t8 gallons  \\tWater, fresh\"+\r\n\t\t\t\"\\n1 gallon    \\tHoney\\t\\t12 gallons\\tWater, salt\"+\r\n\t\t\t\"\\n2 gallons \\tMayonnaise\\t1 gallon    \\tWine\"+\r\n\t\t\t\"\\n1 quart   \\tOil\"\r\n\t\t)\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Orange (soy sauce)\", {\r\n\t\tname : \"Alchemy Jug (Orange)\",\r\n\t\tsource : [[\"CM\", 144]],\r\n\t\tdescription : MagicItemsList[\"alchemy jug\"].description.replace(\"acid (8 fl oz), basic poison (1/2 fl oz)\", \"soy sauce (1 gal)\"),\r\n\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong.replace(\"acid (8 fl. oz.), basic poison (1/2 fl. oz.)\", \"soy sauce (1 gallon)\"),\r\n\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull.replace(/\\n8 ounces[\\s\\S]+/, \r\n\t\t\t\"\\n4 gallons  \\tBeer\\t\\t2 gallons  \\tVinegar\"+\r\n\t\t\t\"\\n1 gallon    \\tHoney\\t\\t8 gallons  \\tWater, fresh\"+\r\n\t\t\t\"\\n2 gallons \\tMayonnaise\\t12 gallons\\tWater, salt\"+\r\n\t\t\t\"\\n1 quart   \\tOil\\t\\t1 gallon    \\tWine\"+\r\n\t\t\t\"\\n1 gallon    \\tSoy sauce\"\r\n\t\t)\r\n\t});\r\n};\r\nMagicItemsList[\"gloves of soul catching\"] = {\r\n\tname : \"Gloves of Soul Catching\",\r\n\tsource : [[\"CM\", 169]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\t\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"My Constitution increases to 20 while wearing these gloves. After hitting with an unarmed strike while wearing these gloves, I can deal an extra 2d10 force damage to target and regain an equal amount of HP. Alternatively, instead of regaining hit points in this way, you can choose to gain advantage on one attack roll, ability check, or saving throw you make before the end of your next turn.\",\r\n\tdescriptionFull : \"Your Constitution score is 20 while you wear these gloves. This property of the gloves has no effect on you if your Constitution is already 20 or higher.\"+\r\n\t\"\\n   After making a successful unarmed strike while wearing these gloves, you can use the gloves to deal an extra 2d10 force damage to the target, and you regain a number of hit points equal to the force damage dealt. Alternatively, instead of regaining hit points in this way, you can choose to gain advantage on one attack roll, ability check, or saving throw you make before the end of your next turn.\",\r\n\tscoresOverride : [0, 0, 20, 0, 0, 0],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*gloves)(?=.*soul)(?=.*catching).*$/i,\r\n\t\tname : \"Gloves of Soul Catching\",\r\n\t\tsource : [[\"CM\", 169]],\r\n\t\tdescription : \"+2d10 force damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"watchful helm\"] = {\r\n\tname : \"Watchful Helm\",\r\n\tsource : [[\"CM\", 183]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\t\r\n\tattunement : true,\r\n\tdescription : \"While I wear this helm, I gain a +1 bonus to AC, remain aware of my surroundings even while asleep, and have advantage on Wisdom (Perception) checks that rely on sight. As a bonus action once per dawn, I can use it to cast See Invisibility.\",\r\n\tdescriptionFull : \"While you wear this helm, you gain a +1 bonus to AC and remain aware of your surroundings even while you're asleep, and you have advantage on Wisdom (Perception) checks that rely on sight.\"+\r\n\t\"\\n   As a bonus action, you can cast the see invisibility spell from the helm. Once this property of the helm is used, it can't be used again until the next dawn.\",\r\n\tweight : 1,\r\n\textraAC : [{name : \"Watchful Helm\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Watchful Helm (See Invisibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tvision : [[\"Adv. on Perception checks that rely on sight\", 0]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"see invisibility\"],\r\n\t\tselection : [\"see invisibility\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"see invisibility\" : {\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\tchanges : \"Using the Watchful Helm, I can cast See Invisibility once per dawn as a bonus action instead of an action.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"staff of fate\"] = {\r\n\tname : \"Staff of Fate\",\r\n\tsource : [[\"CM\", 183]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This +3 crystal quarterstaff has 6 charges. If I use its last charge, I roll a d20. On a 10+ it regains 1d6 charges, but on a 9 or less it becomes nonmagical. As a bonus action, I can expend 1 charge to give myself or a creature I can see a d4 that can be added to a check, save, attack, or damage roll before my next turn starts.\",\r\n\tdescriptionFull : \"This transparent crystal staff can be wielded as a magic quarterstaff that grants a +3 bonus to attack and damage rolls made with it.\"+\r\n\t\"\\n   \" + toUni(\"Altered Outcome\") + \". The staff has 6 charges. As a bonus action, you can expend 1 of the staff's charges to give yourself or one other creature that you can see a d4. The recipient can roll this d4 and add the number rolled to one ability check, attack roll, damage roll, or saving throw it makes before the start of your next turn. If this extra die is not used before then, it is lost.\"+\r\n\t\"\\n   If you expend the staff's last charge, roll a d20. On a roll of 9 or lower, the staff becomes a nonmagical quarterstaff that breaks the first time it scores a hit and deals damage. On a roll of 10 or higher, the staff regains 1d6 of its expended charges.\",\r\n\tweight : 4,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Staff of Fate (Alter Outcome)\",\r\n\t\tusages : 6,\r\n\t\trecovery : \"Special\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /\\bstaff of fate\\b/i,\r\n\t\tname : \"Staff of Fate\",\r\n\t\tsource : [[\"CM\", 183]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nvar CM_NetherScrollOfAzumar = \"After 30 days of studying 8 h/day, I make a DC 25 Int (Arcana) check. If failed, I take 16d10 psychic damage and start anew. On a success, I gain +2 Int to a max of 22, I gain advantage on saves against spells and magical effects, and a stone golem appears within 60 ft that acts as ally. If I die, the golem turns to dust.\";\r\nMagicItemsList[\"nether scroll of azumar\"] = {\r\n\tname : \"Nether Scroll of Azumar\",\r\n\tsource : [[\"CM\", 210]],\r\n\ttype : \"scroll\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tchoicesNotInMenu : true,\r\n\tdescription : CM_NetherScrollOfAzumar,\r\n\tdescriptionFull : \"Unlike most scrolls, a Nether Scroll of Azumar is not a consumable magic item. It takes 30 days of concentrated study\\u2014at least 8 hours per day\\u2014to attempt to understand this scroll. After completing this study, you must make a DC 25 Intelligence (Arcana) check. If this check fails, you take 16d10 psychic damage, and you can attempt the check again after another 30 days of concentrated study.\"+\r\n\t\"\\n   When you succeed on the check, you gain the following benefits:\"+\r\n\t\"\\n   \\u2022 Your Intelligence score increases by 2, to a maximum of 22. Once you gain this benefit, you can't use this scroll to increase your Intelligence again.\"+\r\n\t\"\\n   \\u2022 You gain advantage on saving throws against spells and other magical effects.\"+\r\n\t\"\\n\\n   When you gain the scroll's benefits, a stone golem magically appears in an unoccupied space within 60 feet of you and acts as your ally. If you die, the golem turns to dust.\",\r\n\tchoices : [\"Not Read\", \"Read\"],\r\n\t\"not read\" : {\r\n\t\tdescription : CM_NetherScrollOfAzumar\r\n\t},\r\n\t\"read\" : { // contains contributions by Nod_Hero\r\n\t\tdescription : CM_NetherScrollOfAzumar,\r\n\t\teval : function() {\r\n\t\t\tvar src = \"Nether Scroll of Azumar\";\r\n\t\t\tMagicItemsList[\"manual of bodily health\"].applyStatBonus(src, \"Intelligence\", 2);\r\n\t\t\tSetProf(\"savetxt\", true, { adv_vs : [\"magic\"] }, src);\r\n\t\t},\r\n\t\tcreaturesAdd : [[\"Stone Golem\", \"stop\"]]\r\n\t}\r\n};\r\n\n// pub_20210518_VRGtR.js\r\n// This file adds all the player-material from Van Richten's Guide to Ravenloft to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.VRGtR = {\r\n\tname : \"Van Richten's Guide to Ravenloft\",\r\n\tabbreviation : \"VRGtR\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Ravenloft\",\r\n\turl : \"https://dnd.wizards.com/products/van-richtens-guide-ravenloft\",\r\n\tdate : \"2021/05/18\"\r\n};\r\n\r\n// Races\r\nRaceList[\"dhampir\"] = {\r\n\tregExpSearch : /dhampir/i,\r\n\tname : \"Dhampir\",\r\n\tsource : [[\"VRGtR\", 17]],\r\n\tplural : \"Dhampirs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Dhampir\" + (typePF ? \"\\n \" : \"\\t\") +\r\n\t\"\\u2022 Deathless Nature: I don't need to breathe.\" +\r\n\t\"\\n \\u2022 Spider Climb: Climbing speed equal to walking speed. At 3rd level, I can move up, down, and across vertical surfaces and upside down along ceilings, while leaving my hands free.\" +\r\n\t\"\\n \\u2022 Vampiric Bite: Uses Constitution and has adv. on the attack roll if I'm at or below half HP. My Proficiency Bonus per long rest, when I hit a creature other than a construct or undead, I can empower myself. I either regain HP or gain a bonus on my next ability check or attack roll. The bonus is equal to the piercing damage dealt.\",\r\n\tfeatures : {\r\n\t\t\"spider climb\" : { // So it doesn't interfere with inherited speeds by useFromPreviousRace\r\n\t\t\tname : \"Spider Climb\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t}\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*vampiric)(?=.*bite).*$/i,\r\n\t\tname : \"Vampiric Bite\",\r\n\t\tsource : [[\"VRGtR\", 17]],\r\n\t\tability : 3,\r\n\t\ttype : \"Simple\",\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Adv. while at or below half HP; Can empower myself on hit\",\r\n\t\tisAlwaysProf : true,\r\n\t\tabilitytodamage : true,\r\n\t\tmonkweapon : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Vampiric Bite\",\r\n\t\tadditional : \"empower myself\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Dhampir lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"prefix\" // e.g. \"Hill Dwarf Dhampir\"\r\n\t}\r\n};\r\nRaceList[\"hexblood\"] = {\r\n\tregExpSearch : /hexblood/i,\r\n\tname : \"Hexblood\",\r\n\tsource : [[\"VRGtR\", 18]],\r\n\tplural : \"Hexbloods\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Hexblood\" + (typePF ? \"\\n \" : \"\\t\") +\r\n\t\"\\u2022 Fey: My creature type is fey, rather than humanoid.\" +\r\n\t\"\\n \\u2022 Eerie Token: As a bonus action once per long rest, I can harmlessly remove a lock of my hair, one of my nails or teeth and imbue this token with magic until I finish a long rest. While the token is imbued in this way, I can telepathically speak to a creature holding it or see and hear around it. See the Notes page for more information.\" +\r\n\t\"\\n \\u2022 Hex Magic: I known Disguise Self and Hex. I can cast each spell once per long rest without using a spell slot, or by using a spell slot as normal.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hexblood's Eerie Token\",\r\n\t\tnote : [\"As a bonus action, I can harmlessly remove a lock of my hair, one of my nails, or one of my teeth. This token is imbued with magic until I finish a long rest. While the token is imbued in this way, I can take these actions:\"+\r\n\t\t\"\\n\\u2022 Telepathic Message\",\r\n\t\t\"As an action, I can send a telepathic message to the creature holding or carrying the token, as long as I'm within 10 miles of it. The message can contain up to twenty-five words.\"+\r\n\t\t\"\\n\\u2022 Remote Viewing\",\r\n\t\t\"If I'm within 10 miles of the token, I can enter a trance as an action. The trance lasts for 1 minute, but it ends early if I dismiss it (no action required) or I'm incapacitated. During this trance, I can see and hear from the token as if I were located where it is. While I'm using my senses at the token's location, I'm blinded and deafened in regard to my own surroundings. When the trance ends, the token is harmlessly destroyed.\",\r\n\t\t\"\\nOnce I create a token using this feature, I can't do so again until I finish a long rest, at which point my missing part regrows.\"]\r\n\t}],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\taction : [[\"bonus action\", \"Eerie Token (create)\"], [\"action\", \"Eerie Token (use)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Eerie Token\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"hex magic\" : {\r\n\t\t\tname : \"Hex Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Hex Magic\",\r\n\t\t\t\tspells : [\"disguise self\", \"hex\"],\r\n\t\t\t\tselection : [\"disguise self\", \"hex\"],\r\n\t\t\t\tfirstCol : 'oncelr+markedbox',\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tallowUpCasting : true,\r\n\t\t\t}],\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Hexblood lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"prefix\" // e.g. \"Tiefling Hexblood\"\r\n\t}\r\n};\r\nRaceList[\"reborn\"] = {\r\n\tregExpSearch : /reborn/i,\r\n\tname : \"Reborn\",\r\n\tsource : [[\"VRGtR\", 21]],\r\n\tplural : \"Reborns\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Reborn\" +\r\n\t\"\\n \\u2022 Deathless Nature: I don't need to sleep, eat, drink, or breathe. I have adv. on saves vs. disease, poison, and death saves. I have resistance to poison damage. Magic can't put me to sleep and I can finish a long rest in 4 hours if I spend it in an inactive, motionless state.\" +\r\n\t\"\\n \\u2022 Knowledge from a Past Life: When I make an ability check that uses a skill, I can add +1d6 to the roll after seeing the d20 result. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"disease\", \"poison\", \"death saves\"],\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Knowledge from a Past Life\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Reborn lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"suffix\" // e.g. \"Reborn Human\"\r\n\t}\r\n};\r\n\r\n// Subclasses\r\nAddSubClass(\"bard\", \"college of spirits\",{\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*spirits?).*$/i,\r\n\tsubname : \"College of Spirits\",\r\n\tsubnameShort: \"Spirits\",\r\n\tsource : [[\"VRGtR\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Guiding Whispers\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Guidance cantrip and can cast it with a range of 60 ft\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guiding Whispers\",\r\n\t\t\t\tspells : [\"guidance\"],\r\n\t\t\t\tselection : [\"guidance\"],\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"guidance\" : {\r\n\t\t\t\t\trange : \"60 ft\",\r\n\t\t\t\t\tchanges : \"I can cast Guidance with a range of 60 ft.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Spiritual Focus\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [only for bard spells]\" + desc([\r\n\t\t\t\t\"I can use a candle, crystal ball, skull, spirit board, or tarokka deck as a spellcasting focus\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Tales from Beyond\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend a bardic inspiration die to roll on the Spirit Tales table\",\r\n\t\t\t\t\"I retain the rolled tale in my mind until I bestow its effects or finish a short or long rest\",\r\n\t\t\t\t\"I can only retain one tale at a time; I need to hold a spiritual focus to roll on the table\",\r\n\t\t\t\t\"As an action, I can choose a creature I see in 30 ft or myself to bestow the tale's effect\",\r\n\t\t\t\t\"The tales use my spell save DC; See the Notes page for the Spirit Tales table\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (roll on table)\"], [\"action\", \" (use effect)\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Spirit Tales Table\",\r\n\t\t\t\tnote : desc([\r\n\t\t\t\t\t\"As a bonus action while I'm holding my spiritual focus, I can reach out to spirits who tell their tales through me. I expend one use of my Bardic Inspiration and roll on the table below using my Bardic Inspiration die to determine the tale. I retain the tale in mind until I bestow the tale's effect or finish a short or long rest.\",\r\n\t\t\t\t\t\"I can retain only one of these tales in mind at a time, and rolling on the table immediately ends the effect of the previous tale.\",\r\n\t\t\t\t\t\"As an action, I can choose myself or one creature I can see within 30 ft to be the target of the tale's effect. If the tale requires a saving throw, the DC equals my spell save DC.\",\r\n\t\t\t\t\t\"\\nRoll \" + (typePF ? \"\" : \" \") + \"Tale\"\r\n\t\t\t\t])+\r\n\t\t\t\t desc([\r\n\t\t\t\t\t\"  1    Tale of the Clever Animal: For the next 10 minutes, whenever the target makes an Intelligence, a Wisdom, or a Charisma check, the target can roll my Bardic Inspiration die immediately after rolling the d20 and add it to the check.\",\r\n\t\t\t\t\t\"  2    Tale of the Renowned Duelist: I make a melee spell attack against the target. On a hit, the target takes force damage equal to two rolls of my Bardic Inspiration die + my Charisma modifier.\",\r\n\t\t\t\t\t\"  3    Tale of the Beloved Friends: The target and another creature of its choice it can see within 5 ft of it gains temporary hit points equal to a roll of my Bardic Inspiration die + my Charisma modifier.\",\r\n\t\t\t\t\t\"  4    Tale of the Runaway: The target can immediately use its reaction to teleport up to 30 ft to an unoccupied space it can see. When the target teleports, it can choose a number of creatures it can see within 30 ft of it up to my Charisma modifier (minimum of 0) to immediately use the same reaction.\",\r\n\t\t\t\t\t\"  5    Tale of the Avenger: For 1 minute, any creature that hits the target with a melee attack takes force damage equal to a roll of my Bardic Inspiration die.\",\r\n\t\t\t\t\t\"  6    Tale of the Traveler: The target gains temporary hit points equal to a roll of my Bardic Inspiration die + my bard level. While it has these temporary hit points, the target's walking speed increases by 10 ft and it gains a +1 bonus to its AC.\",\r\n\t\t\t\t\t\"  7    Tale of the Beguiler: The target must succeed on a Wisdom saving throw or take psychic damage equal to two rolls of my Bardic Inspiration die, and the target is incapacitated until the end of its next turn.\",\r\n\t\t\t\t\t\"  8    Tale of the Phantom: The target becomes invisible until the end of its next turn or until it hits a creature with an attack. If the target hits a creature with an attack during this invisibility, the creature it hits takes necrotic damage equal to a roll of my Bardic Inspiration die and is frightened of the target until the end of the frightened creature's next turn.\",\r\n\t\t\t\t\t\"  9    Tale of the Brute: Each creature of the target's choice it can see within 30 ft of it must make a Strength saving throw. On a failed save, a creature takes thunder damage equal to three rolls of my Bardic Inspiration die and is knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\r\n\t\t\t\t\t\" 10    Tale of the Dragon: The target spews fire from the mouth in a 30-ft cone. Each creature in that area must make a Dexterity saving throw, taking fire damage equal to four rolls of my Bardic Inspiration die on a failed save, or half as much damage on a successful one.\",\r\n\t\t\t\t\t\" 11    Tale of the Angel: The target regains hit points equal to two rolls of my Bardic Inspiration die + my Charisma modifier, and I end one condition from the following list affecting the target: blinded, deafened, paralyzed, petrified, or poisoned.\",\r\n\t\t\t\t\t\" 12    Tale of the Mind-Bender: I evoke an incomprehensible fable from an otherworldly being. The target must succeed on an Intelligence saving throw or take psychic damage equal to three rolls of my Bardic Inspiration die and be stunned until the end of its next turn.\"\r\n\t\t\t\t], \"\\n\")\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]] && v.thisWeapon[4].indexOf(\"bard\") !== -1) {\r\n\t\t\t\t\t\t\t// If RAW is selected, first test if this spell is eligible to use with a spellcasting focus\r\n\t\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\r\n\t\t\t\t\t\t\tvar spellObj = SpellsList[v.thisWeapon[3]];\r\n\t\t\t\t\t\t\tif (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components))) return;\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\r\n\t\t\t\t\t\t\tvar d6Regex = /(\\d+)d6/;\r\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd6') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd6', 'Cd6');\r\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd6') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd6', 'Qd6');\r\n\t\t\t\t\t\t\t} else if (d6Regex.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d6Regex, Number(fields.Damage_Die.replace(d6Regex, '$1')) + 1 + 'd6');\r\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d6 dmg\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d6';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.',\r\n\t\t\t\t\t1\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t// Do not process if a psionic, not a bard spell, or, if RAW is selected, not eligible to use with a spellcasting focus\r\n\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"bard\" || (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components)))) return;\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d6\", true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d6\", true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"RAW: only +1d6 for spells with non-costly material components\", \"Allow +1d6 for any bard spell\"],\r\n\t\t\t\"raw: only +1d6 for spells with non-costly material components\" : {\r\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I use a spiritual focus to cast a bard spell, I can add 1d6 to one damage or healing roll\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"allow +1d6 for any bard spell\" : {\r\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tdefaultChoice : \"allow +1d6 for any bard spell\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Spirit Session\",\r\n\t\t\tsource : [[\"VRGtR\", 29]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Using my spiritual focus, I can conduct a hour-long ritual to channel spirit during a rest\",\r\n\t\t\t\t\"The number of willing participants, me included, can be up to my Proficiency Bonus\",\r\n\t\t\t\t\"At the end, I learn a divination or necromancy spell of my choice until I start a long rest\",\r\n\t\t\t\t\"The spell can't be higher level than the number of participants and of a level I can cast\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Session\",\r\n\t\t\t\tschool : [\"Div\", \"Necro\"],\r\n\t\t\t\tfirstCol : \"SS\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Mystical Connection\",\r\n\t\t\tsource : [[\"VRGtR\", 29]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"For Tales from Beyond, I now roll my bardic inspiration die twice and \" + (typePF ? \"choose\" : \"select\") + \" which to use\",\r\n\t\t\t\t\"If I roll the same number on both dice, I can instead choose any effect on the table\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the undead\",{\r\n\tregExpSearch : /^(?=.*undead)(?=.*warlock).*$/i,\r\n\tsubname : \"the Undead\",\r\n\tsource : [[\"VRGtR\", 30]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"blindness/deafness\", \"phantasmal force\", \"phantom steed\", \"speak with dead\", \"death ward\", \"greater invisibility\", \"antilife shell\", \"cloudkill\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Form of Dread\",\r\n\t\t\tsource : [[\"VRGtR\", 30]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can transform for 1 minute and gain the following benefits:\",\r\n\t\t\t\t\" \\u2022 I gain temporary hit points equal to 1d10 + my warlock level\",\r\n\t\t\t\t\" \\u2022 I am immune to the frightened condition\",\r\n\t\t\t\t\" \\u2022 Once per turns when I hit an attack, I can force the target to make a Wis save\",\r\n\t\t\t\t\"   If the target fails this save, it is frightened of me until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn \"1d10+\" + n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { immune : [\"frightened (Form of Dread)\"] }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Grave Touched\",\r\n\t\t\tsource : [[\"VRGtR\", 30]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to eat, drink, or breathe\",\r\n\t\t\t\t\"Once per turn if I damage a creature with an attack, I can change its type to necrotic\",\r\n\t\t\t\t\"While I'm in my Form of Dread, I can roll one extra damage die for this necrotic damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Necrotic Husk\",\r\n\t\t\tsource : [[\"VRGtR\", 31]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to necrotic damage, or immunity while I'm in my Form of Dread\",\r\n\t\t\t\t\"As a reaction when reduced to 0 HP, I can drop to 1 HP instead and erupt with energy\",\r\n\t\t\t\t\"Each creature of my choice within 30 ft takes 2d10 + my warlock level necrotic damage\",\r\n\t\t\t\t\"After this, I gain 1 level of exhaustion and must complete 1d4 long rests to do so again\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"2d10+\" + n + \" damage, 1\\xD7 per 1d4 long rests\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdmgres : [[\"Necrotic\"]],\r\n\t\t\tsavetxt : { immune : [\"necrotic (Form of Dread)\"] },\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Necrotic Husk (revive)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"1d4 LR\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spirit Projection\",\r\n\t\t\tsource : [[\"VRGtR\", 31]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can project my spirit from my body, leaving it suspended and unconscious\",\r\n\t\t\t\t\"This lasts 1 hour or until my concentration is broken; Damage and effects affect both\",\r\n\t\t\t\t\"When it ends, I can have my spirit return to my body or my body teleport to my spirit\",\r\n\t\t\t\t\"My spirit has my abilities, but no gear; While projecting I gain the following benefits:\",\r\n\t\t\t\t\" \\u2022 My spirit and body gain resistance to bludgeoning, piercing, and slashing damage\",\r\n\t\t\t\t\" \\u2022 My conjuration/necromancy spells need no verbal, somatic, non-costly material comp.\",\r\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and can hover\",\r\n\t\t\t\t\" \\u2022 Move through creatures/objects as difficult terrain; 1d10 force damage if end turn in\",\r\n\t\t\t\t\" \\u2022 While in my Form of Dread, once per turns when I deal necrotic damage, I can heal\",\r\n\t\t\t\t\"   I regain hit points equal to half the amount of necrotic damage dealt\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds and Background Features\r\nBackgroundFeatureList[\"inheritor\"] = {\r\n\tdescription : \"I'm the clear inheritor of a famed legacy, my ancestor or mentor. I've inherited a token that marks me as their inheritor. Revealing my legacy lets me swiftly learn the local opinion of my predecessor, if they heard of it. As rumors spread swiftly, locals will consider me either a hero or a threat. Heroes are welcomed, while threats are encouraged to leave.\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"mist wanderer\"] = {\r\n\tdescription : \"The Mists whisper to me and guide me through. I immediately know if an object I'm touching is a Mist talisman, a nonmagical object that resonates with the domain where it originated, allowing the creature holding it to find a path to that domain. I recognize where the talisman originates from if I have been to its domain of origin.\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"spirit medium\"] = {\r\n\tdescription : \"A fateful experience made me believe I'm aligned with spirits and can serve as a conduit for their insights and goals. I have advantage on Arcana and Religion check to remember or research information about spirits and the afterlife. I have and am proficient with a device I made for communing with otherworldly forces (e.g. a spirit-board or tarokka deck).\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"trauma survivor\"] = {\r\n\tdescription : \"I faced something specifically traumatic and survived. Now people view me as an expert on it and can help others make it through. I'm aware of nonmagical recovery techniques, common resources, and misinformation. I know how to speak to sympathetic doctors, clergy, and leaders to can convince them to shelter one other than myself up to one month.\",\r\n\tsource : [[\"VRGtR\", 32], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"traveler\"] = {\r\n\tdescription : \"I come from another place that others couldn't begin to understand. I can find a spot to hide, rest, or recuperate among sympathetic trading caravans, itinerant families, or displaced groups, so long as I present no visible danger. Such groups will hide me, but won't risk their lives for me. I can tell if an object I can see and touch is from my homeland.\",\r\n\tsource : [[\"VRGtR\", 32], [\"ALbackground\", 0]]\r\n};\r\nBackgroundList[\"haunted one\"] = { // Reprint from Curse of Strahd, but re-define because of new \"horror\" background traits options\r\n\tregExpSearch : /haunted.one/i,\r\n\tname : \"Haunted One\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Arcana, Investigation, Religion, and Survival\",\r\n\tlanguageProfs : [2],\r\n\tgold : 0.1,\r\n\tequipleft : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden Stakes\", 3, 1],\r\n\t\t[\"Holy symbol\", \"\", 1],\r\n\t\t[\"Holy water, flasks of\", \"\", 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel Mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", \"\", 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torch\", 3, 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Trinket of special significance\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Heart of Darkness\",\r\n\ttrait : [\r\n\t\t\"I don't run from evil. Evil runs from me.\",\r\n\t\t\"I like to read and memorize poetry. It keeps me calm and brings me fleeting moments of happiness.\",\r\n\t\t\"I spend money freely and live life to the fullest, knowing that tomorrow I might die.\",\r\n\t\t\"I live for the thrill of the hunt.\",\r\n\t\t\"I don't talk about the thing that torments me. I'd rather not burden others with my curse.\",\r\n\t\t\"I expect danger around every corner.\",\r\n\t\t\"I refuse to become a victim, and I will not allow others to be victimized.\",\r\n\t\t\"I put no trust in divine beings.\",\r\n\t\t\"I had an encounter that I believe gives me a special affinity with a supernatural creature or event.\",\r\n\t\t\"A signature piece of clothing or distinct weapon serves as an emblem of who I am.\",\r\n\t\t\"I never accept that I'm out of my depth.\",\r\n\t\t\"I must know the answer to every secret. No door remains unopened in my presence.\",\r\n\t\t\"I let people underestimate me, revealing my full competency only to those close to me.\",\r\n\t\t\"I compulsively seek to collect trophies of my travels and victories.\",\r\n\t\t\"It doesn't matter if the whole world's against me. I'll always do what I think is right.\",\r\n\t\t\"I have morbid interests and a macabre aesthetic.\",\r\n\t\t\"I have a personal ritual, mantra, or relaxation method I use to deal with stress.\",\r\n\t\t\"Nothing is more important than life, and I never leave anyone in danger.\",\r\n\t\t\"I'm quick to jump to extreme solutions. Why risk a lesser option not working?\",\r\n\t\t\"I'm easily startled, but I'm not a coward.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Sacrifice\", \"Sacrifice: I try to help those in need, no matter what the personal cost. (Good)\"],\r\n\t\t[\"Desperation\", \"Desperation: I'll stop the spirits that haunt me or die trying. (Any)\"],\r\n\t\t[\"Cleansing\", \"Cleansing: I kill monsters to make the world a safer place, and to exorcise my own demons. (Good)\"],\r\n\t\t[\"Vigilante\", \"Vigilante: I have a dark calling that puts me above the law. (Chaotic)\"],\r\n\t\t[\"Preparation\", \"Preparation: I like to know my enemy's capabilities and weaknesses before rushing into battle. (Lawful)\"],\r\n\t\t[\"Destruction\", \"Destruction: I'm a monster that destroys other monsters, and anything else that gets in my way. (Evil)\"],\r\n\t\t[\"Adrenaline\", \"Adrenaline: I've experienced such strangeness that now I feel alive only in extreme situations.\"],\r\n\t\t[\"Balance\", \"Balance: I strive to counter the deeds of someone for whom I feel responsible.\"],\r\n\t\t[\"Bound\", \"Bound: I've wronged someone and must work their will to avoid their curse.\"],\r\n\t\t[\"Escape\", \"Escape: I believe there is something beyond the world I know, and I need to find it.\"],\r\n\t\t[\"Legacy\", \"Legacy: I must do something great so that I'm remembered, and my time is running out.\"],\r\n\t\t[\"Misdirection\", \"Misdirection: I work vigorously to keep others from realizing my flaws or misdeeds.\"],\r\n\t\t[\"Obsession\", \"Obsession: I've lived this way for so long that I can't imagine another way.\"],\r\n\t\t[\"Obligation\", \"Obligation: I owe it to my people, faith, family, or teacher to continue a vaunted legacy.\"],\r\n\t\t[\"Promise\", \"Promise: My life is no longer my own. I must fulfill the dream of someone who's gone.\"],\r\n\t\t[\"Revelation\", \"Revelation: I need to know what lies beyond the mysteries of death, the world, or the Mists.\"],\r\n\t\t[\"Sanctuary\", \"Sanctuary: I know the forces at work in the world and strive to create islands apart from them.\"],\r\n\t\t[\"Truth\", \"Truth: I care about the truth above all else, even if it doesn't benefit anyone.\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I keep my thoughts and discoveries in a journal. My journal is my legacy.\",\r\n\t\t\"I would sacrifice my life and my soul to protect the innocent.\",\r\n\t\t\"My torment drove away the person I love. I strive to win back the love I've lost.\",\r\n\t\t\"A terrible guilt consumes me. I hope that I can find redemption through my actions.\",\r\n\t\t\"There's evil in me, I can feel it. It must never be set free.\",\r\n\t\t\"I have a child to protect. I must make the world a safer place for him (or her).\",\r\n\t\t\"I desperately need to get back to someone or someplace, but I lost them in the Mists.\",\r\n\t\t\"Everything I do is in the service of a powerful master, one I must keep a secret from everyone.\",\r\n\t\t\"I owe much to my vanished mentor. I seek to continue their work even as I search to find them.\",\r\n\t\t\"I've seen great darkness, and I'm committed to being a light against it\\u2014the light of all lights.\",\r\n\t\t\"Someone I love has become a monster, murderer, or other threat. It's up to me to redeem them.\",\r\n\t\t\"The world has been convinced of a terrible lie. It's up to me to reveal the truth.\",\r\n\t\t\"I deeply miss someone and am quick to adopt people who remind me of them.\",\r\n\t\t\"A great evil dwells within me. I will fight against it and the world's other evils for as long as I can.\",\r\n\t\t\"I'm desperately seeking a cure to an affliction or a curse, either for someone close to me for myself.\",\r\n\t\t\"Spirits are drawn to me. I do all I can to help them find peace.\",\r\n\t\t\"I use my cunning mind to solve mysteries and find justice for those who've been wronged.\",\r\n\t\t\"I lost someone I care about, but I still see them in guilty visions, recurring dreams, or as a spirit.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have certain rituals that I must follow every day. I can never break them.\",\r\n\t\t\"I assume the worst in people.\",\r\n\t\t\"I feel no compassion for the dead. They're the lucky ones.\",\r\n\t\t\"I have an addiction.\",\r\n\t\t\"I am a purveyor of doom and gloom who lives in a world without hope.\",\r\n\t\t\"I talk to spirits that no one else can see.\",\r\n\t\t\"I believe doom follows me and that anyone who gets close to me will face a tragic end.\",\r\n\t\t\"I'm convinced something is after me, appearing in mirrors, dreams, and places where no one could.\",\r\n\t\t\"I'm especially superstitious and live life seeking to avoid bad luck, wicked spirits, or the Mists.\",\r\n\t\t\"I've done unspeakable evil and will do anything to prevent others from finding out.\",\r\n\t\t\"I am exceptionally credulous and believe any story or legend immediately.\",\r\n\t\t\"I'm a skeptic and don't believe in the power of rituals, religion, superstition, or spirits.\",\r\n\t\t\"I know my future is written and that anything I do will lead to a prophesied end.\",\r\n\t\t\"I need to find the best in everyone and everything, even when that means denying obvious malice.\",\r\n\t\t\"I've seen the evil of a type of place\\u2014like forests, cities, or graveyards\\u2014and resist going there.\",\r\n\t\t\"I'm exceptionally cautious, planning laboriously and devising countless contingencies.\",\r\n\t\t\"I have a reputation for defeating a great evil, but that's a lie and the wicked force knows.\",\r\n\t\t\"I know the ends always justify the means and am quick to make sacrifices to attain my goals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Harrowing Event\",\r\n\t\t\"Monster spared my life\",\r\n\t\t\"Born under a dark star\",\r\n\t\t\"Haunted by an apparition\",\r\n\t\t\"Dark arts in the family\",\r\n\t\t\"An oni took my sibling\",\r\n\t\t\"Memory of cured lycanthropy\",\r\n\t\t\"Raised by a hag\",\r\n\t\t\"Studied an eldritch tome\",\r\n\t\t\"Formerly possessed by a fiend\",\r\n\t\t\"Avenged a murder\"\r\n\t]\r\n};\r\nBackgroundList[\"investigator-vrgtr\"] = {\r\n\tregExpSearch : /^((?=.*investigator)(?=.*(VRGtR|Richten|Ravenloft))|private eye).*$/i,\r\n\tname : \"Investigator (VRGtR)\",\r\n\tsource : [[\"VRGtR\", 35], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Insight, Investigation, and Perception\",\r\n\ttoolProfs : [[\"Disguise kit\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Magnifying glass\", \"\", \"\"],\r\n\t\t[\"Evidence from a past case (horror trinket)\", \"\", \"\"],\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Official Inquiry\",\r\n\ttrait : [\r\n\t\t\"I had an encounter that I believe gives me a special affinity with a supernatural creature or event.\",\r\n\t\t\"A signature piece of clothing or distinct weapon serves as an emblem of who I am.\",\r\n\t\t\"I never accept that I'm out of my depth.\",\r\n\t\t\"I must know the answer to every secret. No door remains unopened in my presence.\",\r\n\t\t\"I let people underestimate me, revealing my full competency only to those close to me.\",\r\n\t\t\"I compulsively seek to collect trophies of my travels and victories.\",\r\n\t\t\"It doesn't matter if the whole world's against me. I'll always do what I think is right.\",\r\n\t\t\"I have morbid interests and a macabre aesthetic.\",\r\n\t\t\"I have a personal ritual, mantra, or relaxation method I use to deal with stress.\",\r\n\t\t\"Nothing is more important than life, and I never leave anyone in danger.\",\r\n\t\t\"I'm quick to jump to extreme solutions. Why risk a lesser option not working?\",\r\n\t\t\"I'm easily startled, but I'm not a coward.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Adrenaline\", \"Adrenaline: I've experienced such strangeness that now I feel alive only in extreme situations.\"],\r\n\t\t[\"Balance\", \"Balance: I strive to counter the deeds of someone for whom I feel responsible.\"],\r\n\t\t[\"Bound\", \"Bound: I've wronged someone and must work their will to avoid their curse.\"],\r\n\t\t[\"Escape\", \"Escape: I believe there is something beyond the world I know, and I need to find it.\"],\r\n\t\t[\"Legacy\", \"Legacy: I must do something great so that I'm remembered, and my time is running out.\"],\r\n\t\t[\"Misdirection\", \"Misdirection: I work vigorously to keep others from realizing my flaws or misdeeds.\"],\r\n\t\t[\"Obsession\", \"Obsession: I've lived this way for so long that I can't imagine another way.\"],\r\n\t\t[\"Obligation\", \"Obligation: I owe it to my people, faith, family, or teacher to continue a vaunted legacy.\"],\r\n\t\t[\"Promise\", \"Promise: My life is no longer my own. I must fulfill the dream of someone who's gone.\"],\r\n\t\t[\"Revelation\", \"Revelation: I need to know what lies beyond the mysteries of death, the world, or the Mists.\"],\r\n\t\t[\"Sanctuary\", \"Sanctuary: I know the forces at work in the world and strive to create islands apart from them.\"],\r\n\t\t[\"Truth\", \"Truth: I care about the truth above all else, even if it doesn't benefit anyone.\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I desperately need to get back to someone or someplace, but I lost them in the Mists.\",\r\n\t\t\"Everything I do is in the service of a powerful master, one I must keep a secret from everyone.\",\r\n\t\t\"I owe much to my vanished mentor. I seek to continue their work even as I search to find them.\",\r\n\t\t\"I've seen great darkness, and I'm committed to being a light against it\\u2014the light of all lights.\",\r\n\t\t\"Someone I love has become a monster, murderer, or other threat. It's up to me to redeem them.\",\r\n\t\t\"The world has been convinced of a terrible lie. It's up to me to reveal the truth.\",\r\n\t\t\"I deeply miss someone and am quick to adopt people who remind me of them.\",\r\n\t\t\"A great evil dwells within me. I will fight against it and the world's other evils for as long as I can.\",\r\n\t\t\"I'm desperately seeking a cure to an affliction or a curse, either for someone close to me for myself.\",\r\n\t\t\"Spirits are drawn to me. I do all I can to help them find peace.\",\r\n\t\t\"I use my cunning mind to solve mysteries and find justice for those who've been wronged.\",\r\n\t\t\"I lost someone I care about, but I still see them in guilty visions, recurring dreams, or as a spirit.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I believe doom follows me and that anyone who gets close to me will face a tragic end.\",\r\n\t\t\"I'm convinced something is after me, appearing in mirrors, dreams, and places where no one could.\",\r\n\t\t\"I'm especially superstitious and live life seeking to avoid bad luck, wicked spirits, or the Mists.\",\r\n\t\t\"I've done unspeakable evil and will do anything to prevent others from finding out.\",\r\n\t\t\"I am exceptionally credulous and believe any story or legend immediately.\",\r\n\t\t\"I'm a skeptic and don't believe in the power of rituals, religion, superstition, or spirits.\",\r\n\t\t\"I know my future is written and that anything I do will lead to a prophesied end.\",\r\n\t\t\"I need to find the best in everyone and everything, even when that means denying obvious malice.\",\r\n\t\t\"I've seen the evil of a type of place\\u2014like forests, cities, or graveyards\\u2014and resist going there.\",\r\n\t\t\"I'm exceptionally cautious, planning laboriously and devising countless contingencies.\",\r\n\t\t\"I have a reputation for defeating a great evil, but that's a lie and the wicked force knows.\",\r\n\t\t\"I know the ends always justify the means and am quick to make sacrifices to attain my goals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Path to Mystery\",\r\n\t\t\"Proved friend's innocence\",\r\n\t\t\"My memory loss\",\r\n\t\t\"Helped spirit find peace\",\r\n\t\t\"Uncovered magical hoax\",\r\n\t\t\"Fugitive after wrongful convicion\",\r\n\t\t\"Tracking supernatural phenomena\",\r\n\t\t\"Tried to expose mysterious cabal\",\r\n\t\t\"Investigate unsolved crimes\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"official inquiry\"] = {\r\n\tdescription : \"Through a combination of fast-talking, determination, and official-looking documentation, I can gain access to a place or an individual related to a crime I'm investigating. Those who aren't involved in my investigation avoid impeding me or pass along my requests. Local law enforcement has firm opinions, viewing me as either a nuisance or one of their own.\",\r\n\tsource : [[\"VRGtR\", 35], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"harkon's bite\"] = {\r\n\tname : \"Harkon's Bite\",\r\n\tsource : [[\"VRGtR\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This necklace with a dire wolf tooth gives me a +1 on checks and saves. Curse: I can't remove it once I'm attuned to it. If I don or remove the necklace, even if I'm not attuned, I'm afflicted with werewolf lycanthropy (MM 211). This lasts until the dawn after the next full moon, unless I'm still wearing the necklace at dawn.\",\r\n\tdescriptionFull : \"A dire wolf tooth dangles from this simple cord necklace. While you wear it, the necklace grants you a +1 bonus to ability checks and saving throws.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Attuning to Harkon's Bite curses you until either Harkon Lukas removes the necklace from you or you are targeted by a remove curse spell or similar magic. As long as you remain cursed, you cannot remove the necklace.\"+\r\n\t\"\\n   Upon donning or removing the necklace, whether you are attuned to it or not, you are afflicted with werewolf lycanthropy as detailed in the Monster Manual. The curse lasts until the dawn after the next full moon. If you are still wearing the necklace at this time, you are afflicted with the lycanthropy again.\",\r\n\taddMod : [\r\n\t\t{ type : \"save\", field : \"all\", mod : 1, text : \"I gain a +1 bonus on all my saving throws.\" },\r\n\t\t{ type : \"skill\", field : \"all\", mod : 1, text : \"I gain a +1 bonus on all my ability checks.\" },\r\n\t\t{ type : \"skill\", field : \"Init\", mod : 1, text : \"I gain a +1 bonus on all my ability checks.\" }\r\n\t]\r\n}\r\nvar VRGtR_nepentheFullDescription = [\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. When you hit a fiend or an undead with it, that creature takes an extra 2d10 radiant damage.\",\r\n\t\"While you hold the drawn sword, it creates an aura in a 10-foot radius around you. You and all creatures friendly to you in the aura have advantage on saving throws against spells and other magical effects. If you have 17 or more levels in the paladin class, the radius of the aura increases to 30 feet.\",\r\n\t\">>Sentience<<. Nepenthe is a sentient, neutral evil weapon with an Intelligence of 10, a Wisdom of 8, and a Charisma of 18. It has hearing and darkvision out to a range of 60 feet. It can read and understand Elvish. It can also speak Elvish, but only through the voice of its wielder, with whom the sword can communicate telepathically.\",\r\n\t\">>Personality<<. In its lifetime, the sword has beheaded thousands of criminals, not all of whom were guilty of the crimes for which they were convicted. The sword cannot distinguish the guilty from the innocent. With each beheading, it hungers for more justice and blood. The sword is corrupt and irredeemable.\"\r\n]\r\nMagicItemsList[\"nepenthe\"] = {\r\n\tname : \"Nepenthe\",\r\n\tsource : [[\"VRGtR\", 137]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a paladin\",\r\n\tprereqeval : function (v) { return classes.known.paladin ? true : false; },\r\n\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 10-ft radius aura (30-ft if level 17 paladin) that grants me and my allies adv. on saves against spells and magical effects.\",\r\n\tdescriptionFull : VRGtR_nepentheFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(VRGtR_nepentheFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/(to|around) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /nepenthe/i,\r\n\t\tname : \"Nepenthe\",\r\n\t\tsource : [[\"VRGtR\", 137]],\r\n\t\tdescription : \"Versatile (1d10); +2d10 radiant damage vs. fiends and undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"spells\", \"magical effects\"] },\r\n\tchoices : [\"Paladin level 1-16 (10-ft aura)\", \"Paladin level 17+ (30-ft aura)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn !classes.known.paladin ? \"\" : classes.known.paladin.level < 17 ? \"paladin level 1-16 (10-ft aura)\" : \"paladin level 17+ (30-ft aura)\";\r\n\t},\r\n\t\"paladin level 1-16 (10-ft aura)\" : {\r\n\t\tname : \"Nepenthe\\u200A\",\r\n\t\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls made with it. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 10-ft radius aura that grants me and my allies advantage on saving throws against spells and magical effects.\"\r\n\t},\r\n\t\"paladin level 17+ (30-ft aura)\" : {\r\n\t\tname : \"Nepenthe\\u200A\\u200A\",\r\n\t\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls made with it. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 30-ft radius aura that grants me and my allies advantage on saving throws against spells and magical effects.\"\r\n\t}\r\n}\r\n\r\n/* Dark gift\r\n\r\nMagicItemsList[\"living shadow\"] = {\r\n\tname : \"Living Shadow\",\r\n\tsource : [[\"VRGtR\", 24]],\r\n\ttype : \"dark gift\",\r\n\trarity : \"\",\r\n\tdescription : \"I learn the Mage Hand cantrip and require no components to cast it. My Prof Bonus per long rest, I can gain +10 ft reach for one melee attack. The first time I roll a 1 on a d20 after a short rest, my shadow will act up. The next time I or another I can see in 30 ft rolls a d20, I roll a d4. If even: add to roll, odd: subtract.\",\r\n\tdescriptionLong : \"I learn the Mage Hand cantrip and require no components to cast it. The hand created by the spell is shadowy but is not bound to your actual shadow. My proficiency bonus per long rest, when I make a melee attack, I can gain +10 ft reach for that attack as my shadow stretches and delivers the attack. The first time after a short rest when I roll a 1 on an attack, check, or save, my shadow will act up. The next time I or a creature I can see within 30 ft rolls for an attack, check, or save, roll a d4. If the number is odd, reduce the total by that number. If it is even, increase the total by that number instead.\",\r\n\tdescriptionFull : \"The shadow you cast is animate and ever-present, even when lighting conditions would otherwise prevent it. Your shadow occasionally moves out of sync with you. Sometimes it appears to be undertaking random but mundane tasks, while at other times it acts out your darker impulses, threatening or even attacking other shadows. With effort, you can bend this shadow puppetry to your will.\\n\"+\r\n\ttoUni(\"Grasping Shadow\") + \". You learn the mage hand cantrip if you don't already know it, and require no components to cast it. The hand created by the spell is shadowy but is not bound to your actual shadow. Your spellcasting ability for this spell is Intelligence, Wisdom, or Charisma (your choice when you gain this Dark Gift).\\n\"+\r\n\ttoUni(\"Shadow Strike\") + \". When you make a melee attack roll, you can increase your reach for that attack by 10 feet. Your shadow stretches and delivers the attack as if it were you. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\\n\"+\r\n\ttoUni(\"Ominous Will\") + \". Immediately after you make an attack roll, an ability check, or a saving throw and roll a 1 on the d20, your shadow exerts a will of its own and might assist or hinder you or those around you. The next time you or a creature within 30 feet of you that you can see makes an attack roll, an ability check, or a saving throw, roll a d4. If the number is odd, reduce the total by the number rolled. If the number is even, increase the total by the number rolled. Once this effect occurs, it can't happen again until you finish a short or long rest.\",\r\n\taction : [[\"action\", \"Unsettling Presence\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Shadow Strike\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}, {\r\n\t\tname : \"Ominous Will\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Grasping Shadow\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tchanges : \"Using Grasping Shadow from my Living Shadow dark gift, I can cast Mage Hand without any components. The hand created by the spell is shadowy but is not bound to my actual shadow.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"living shadow\"] = MagicItemsList[\"living shadow\"];\r\n\r\n*/\n// pub_20210921_WBtW.js\r\n// This file adds the content from The Wild Beyond the Witchlight adventure to MPMB's Character Record Sheet\r\n\r\nSourceList.WBtW = {\r\n\tname : \"The Wild Beyond the Witchlight\",\r\n\tabbreviation : \"WBtW\",\r\n\tgroup : \"Adventure Books\",\r\n\turl : \"https://dnd.wizards.com/products/wild-beyond-witchlight\",\r\n\tdate : \"2021/09/21\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"feylost\"] = {\r\n\tregExpSearch : /feylost/i,\r\n\tname : \"Feylost\",\r\n\tsource : [[\"WBtW\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Survival\"],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [[\"Elvish, Gnomish, Goblin, or Sylvan\", 1]],\r\n\tgold : 8,\r\n\tequipleft : [\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"],\r\n\t\t[\"Three Feywild trinkets\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Feywild Connection\",\r\n\ttrait : [\r\n\t\t\"I'm haunted by fey laughter that only I can hear, though I know it's just my mind playing tricks on me.\",\r\n\t\t\"Like a nomad, I can't settle down in one place for very long.\",\r\n\t\t\"Good music makes me weep like a baby.\",\r\n\t\t\"Wherever I go, I try to bring a little of the warmth and tranquility of home with me.\",\r\n\t\t\"I have never lost my childlike sense of wonder.\",\r\n\t\t\"When I have a new idea, I get wildly excited about it until I come up with another, better idea.\",\r\n\t\t\"I live by my own set of weird and wonderful rules.\",\r\n\t\t\"I can't bring myself to trust most adults.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Friendship\", \"Friendship: I never leave a friend behind. (Good)\"],\r\n\t\t[\"Empathy\", \"Empathy: No creature should be made to suffer. (Good)\"],\r\n\t\t[\"Wanderlust\", \"Wanderlust: I prefer to take the less traveled path. (Chaotic)\"],\r\n\t\t[\"Changeability\", \"Changeability: Change is good, which is why I live by an ever-changing set of rules. (Chaotic)\"],\r\n\t\t[\"Honor\", \"Honor: A deal is a deal, and I would never break one. (Lawful)\"],\r\n\t\t[\"Rule of Three\", 'Rule of Three: Everything in the multiverse happens in threes. I see the \"rule of three\" everywhere. (Lawful)'],\r\n\t\t[\"Obsession\", \"Obsession: I won't let go of a grudge. (Evil)\"],\r\n\t\t[\"Greed\", \"Greed: I will do whatever it takes to get what I want, regardless of the harm it might cause. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I would never break my word.\",\r\n\t\t\"I find magic in all its forms to be compelling. The more magical a place, the more I am drawn to it.\",\r\n\t\t\"I do what I can to protect the natural world.\",\r\n\t\t\"A trusted friend is the most important thing in the multiverse to me.\",\r\n\t\t\"I can't bring myself to harm a Fey creature, either because I consider myself one or because I fear the repercussions.\",\r\n\t\t\"The Witchlight Carnival feels like home to me.\",\r\n\t\t\"I'm drawn to the Feywild and long to return there, if only for a short while.\",\r\n\t\t\"I feel indebted to Mister Witch and Mister Light for giving me a home and a purpose.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I easily lose track of time. My poor sense of time means I'm always late.\",\r\n\t\t\"I think the whole multiverse is out to get me.\",\r\n\t\t\"I'm always operating under a tight timeline, and I'm obsessed with keeping everything on schedule.\",\r\n\t\t\"I'm a kleptomaniac who covets shiny, sparkling treasure.\",\r\n\t\t\"I'm forgetful. Sometimes I can't remember even the simplest things.\",\r\n\t\t\"I never give away anything for free and always expect something in return.\",\r\n\t\t\"I have many vices and tend to indulge them.\",\r\n\t\t\"I'm always changing my mind\\u2014well, almost always.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Fey Mark\",\r\n\t\t\"Iridescent color eyes\",\r\n\t\t\"Sweet scent\",\r\n\t\t\"Long whiskers\",\r\n\t\t\"Furry ears\",\r\n\t\t\"Skin sparkles in moonlight\",\r\n\t\t\"Flowers bloom in my presence\",\r\n\t\t\"Flowers wilt in my presence\",\r\n\t\t\"Vines for hair\",\r\n\t\t\"Brambles for hair\",\r\n\t\t\"Tail\"\r\n\t],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Feywild Visitor\",\r\n\t\tnote : [\r\n\t\t\t\"Whenever I'm sound asleep or in a deep trance during a long rest, a spirit of the Feywild might pay me a visit, if the DM wishes it. Determine the spirit's form by rolling on the table below. No harm ever comes to me as a result of such visits, which can last for minutes or hours, and I remember each visit when I wake up. Conversations that occur with a visitor can contain any number of things, from messages and insights to nonsense and red herrings, at the DM's discretion. Such conversations are always conducted in a language I can understand, even if the Feywild visitor can't speak that language normally.\\n\",\r\n\t\t\t\"d8\\tVisitor\",\r\n\t\t\t\" 1\\tAwakened creature (beast or plant that had the Awaken spell cast on it)\",\r\n\t\t\t\" 2\\tCentaur\",\r\n\t\t\t\" 3\\tDryad\",\r\n\t\t\t\" 4\\tFaerie dragon\",\r\n\t\t\t\" 5\\tPixie\",\r\n\t\t\t\" 6\\tSatyr\",\r\n\t\t\t\" 7\\tSprite\",\r\n\t\t\t\" 8\\tUnicorn\"\r\n\t\t]\r\n\t}]\r\n};\r\nBackgroundFeatureList[\"feywild connection\"] = {\r\n\tdescription : \"My mannerisms and knowledge of fey customs are recognized by natives of the Feywild, who see me as one of their own. Because of this, friendly Fey creatures are inclined to come to my aid if I am lost or need help in the Feywild.\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]]\r\n};\r\nBackgroundList[\"witchlight hand\"] = {\r\n\tregExpSearch : /^(?=.*(witchlight|carnival))(?=.*hand).*$/i,\r\n\tname : \"Witchlight Hand\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]],\r\n\tskills : [\"Performance\", \"Sleight of Hand\"],\r\n\ttoolProfs : [[\"Disguise kit or Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tgold : 8,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit or Musical instrument\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"],\r\n\t\t[\"Feywild trinket\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Carnival uniform or Costume\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Carnival Fixture\",\r\n\ttrait : BackgroundList[\"feylost\"].trait,\r\n\tideal : BackgroundList[\"feylost\"].ideal,\r\n\tbond : BackgroundList[\"feylost\"].bond,\r\n\tflaw : BackgroundList[\"feylost\"].flaw,\r\n\textra : [\r\n\t\t\"Select Carnival Companion\",\r\n\t\t\"Old, cantankerous Witchlight hand\",\r\n\t\t\"Young, impressionable Witchlight hand\",\r\n\t\t\"Performer\",\r\n\t\t\"Retired performer\",\r\n\t\t\"Seasoned animal trainer\",\r\n\t\t\"Old blink dog\",\r\n\t\t\"Your hair is made of vines or brambles and grows back to normal length within 1 hour of being cut.\",\r\n\t\t\"You have a tail like that of a dog or another animal.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"carnival fixture\"] = {\r\n\tdescription : \"The Witchlight Carnival provides me with free, modest lodging and food. In addition, I may wander about the carnival and partake of its many wonders at no cost to me, provided I don't disrupt its shows or cause any other trouble.\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Races\r\nRaceList[\"fairy\"] = {\r\n\tregExpSearch : /fairy/i,\r\n\tname : \"Fairy\",\r\n\tsource : [[\"WBtW\", 12], [\"MotM\", 14]],\r\n\tplural : \"Fairies\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Fairy Magic\",\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"fairy magic (level 3)\" : {\r\n\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Faerie Fire\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"fairy magic (level 5)\" : {\r\n\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Enlarge/Reduce\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Fairy\"+\r\n\t\t(typePF ? \"\\n \\u2022 Fey: My \" : \" (\") + \"creature type is fey, rather than humanoid\" + (typePF ? \".\" : \")\") +\r\n\t\t\"\\n \\u2022 Flight: I have a flying speed equal to my walking speed. To use this speed, I can't be wearing medium or heavy armor.\"+\r\n\t\t\"\\n \\u2022 Fairy Magic: I know the Druidcraft cantrip. At 3rd level, I can cast Faerie Fire. At 5th level, I can cast Enlarge/Reduce. I can cast each spell without using a spell slot once per long rest, as well as by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\"\r\n};\r\nRaceList[\"harengon\"] = {\r\n\tregExpSearch : /harengon/i,\r\n\tname : \"Harengon\",\r\n\tsource : [[\"WBtW\", 13], [\"MotM\", 22]],\r\n\tplural : \"Harengons\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"I can add my proficiency bonus to my initiative rolls.\" }],\r\n\tscoresGeneric : true,\r\n\taction : [[\"reaction\", \"Lucky Footwork\"], [\"bonus action\", \"Rabbit Hop\"]],\r\n\tfeatures : {\r\n\t\t\"rabbit hop\" : {\r\n\t\t\tname : \"Rabbit Hop\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) {\r\n\t\t\t\tvar hopDistance = n * 5 + ' ft';\r\n\t\t\t\treturn What(\"Unit System\") === \"metric\" ? ConvertToMetric(hopDistance) : hopDistance;\r\n\t\t\t})\r\n\t\t}\r\n\t},\r\n\ttrait : \"Harengon\"+\r\n\t\t\"\\n \\u2022 Hare-Trigger: I can add my proficiency bonus to my initiative rolls.\"+\r\n\t\t\"\\n \\u2022 Leporine Senses: I have proficiency in the Perception skill.\"+\r\n\t\t\"\\n \\u2022 Lucky Footwork: As a reaction when I fail a Dexterity saving throw, I can add +1d4 to the result, potentially making it a success. I can't do this if I'm prone or my speed is 0.\"+\r\n\t\t\"\\n \\u2022 Rabbit Hop: As a bonus action if my speed isn't 0, I can jump 5 ft times my Prof Bonus without provoking opportunity attacks. I can do this my Prof Bonus times per long rest.\"\r\n};\r\n\r\n// Magic Items\r\nvar WBtW_Sentient_Item_toNotes = function (sDescr, skipConflict) {\r\n\tvar theR = desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|of|to|for) I\\b|\\bI to|\\bI an?\\b/ig, \"$1 me\")\r\n\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); });\r\n\treturn skipConflict ? theR : theR + \"\\n\\n\" + sentientItemConflictTxt\r\n}\r\nMagicItemsList[\"bobbing lily pad\"] = {\r\n\tname : \"Bobbing Lily Pad\",\r\n\tsource : [[\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This 10-ft diameter vehicle float on water and has a walking, flying, and swimming speed of 20 ft, and it can hover. While I ride it, it moves according to my spoken directions. The lily pad can transport up to 600 lb, but moves at only half speed when carrying more than 300 lb.\",\r\n\tdescriptionFull : \"This magic vehicle is a 10-foot-diameter leaf that floats on water. It has tendrils that propel it across land and across the water's surface (but not underwater), as well as through the air. It has a walking, flying, and swimming speed of 20 feet, and it can hover. It moves according to your spoken directions while you are riding it.\"+\r\n\t\"\\n   The lily pad can transport up to 300 pounds without hindrance. It can carry up to twice this weight, but it moves at half speed if it carries more than its normal capacity.\",\r\n}\r\nMagicItemsList[\"chromatic rose\"] = {\r\n\tname : \"Chromatic Rose\",\r\n\tsource : [[\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"While I hold this magic rose, it grants me resistance to a damage type determined by its color. If I would take 10+ damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 damage.\",\r\n\tdescriptionFull : \"This magic rose comes in one of five colors, as noted in the table below. While a rose is held, it gains a harmless visual effect as indicated on the table.\"+\r\n\t\"\\n   While holding the rose by its stem, you gain resistance to damage of the type associated with the rose's color. If you would take more than 10 damage of this type from a single source (after applying the resistance), the rose disintegrates, and you take no damage instead.\"+\r\n\t\"\\n   As an action, you can blow the petals from the rose to produce a 20-foot cone of acid, lightning, poisonous gas, fire, or cold, as dictated by the rose's damage type. Each creature in the cone must make a DC 15 Constitution saving throw, taking 3d10 damage of the appropriate type on a failed save, or half as much damage on a successful one. Using this property destroys the rose.\"+\r\n\ttoUni(\"\\n Color\\tVisual Effect\\tDamage Type\")+\r\n\t\"\\n Black\\tDrips acid\\tAcid\"+\r\n\t\"\\n Blue\\tCrackles with lightning\\tLightning\"+\r\n\t\"\\n Green\\tIssues green gas\\tPoison\"+\r\n\t\"\\n Red\\tWreathed in fire\\tFire\"+\r\n\t\"\\n White\\tCovered in frost\\tCold\",\r\n\tallowDuplicates : true,\r\n\taction : [[\"action\", \"Destroy Chromatic Rose for Cone\"]],\r\n\tchoices : [\"Black (acid)\", \"Blue (lightning)\", \"Green (poison)\", \"Red (fire)\", \"White (cold)\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"black (acid)\" : {\r\n\t\tname : \"Black Chromatic Rose\",\r\n\t\tdescription : \"While I hold this acid dripping rose, it grants me acid resistance. If I would take more than 10 acid damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 acid damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Acid\"]\r\n\t},\r\n\t\"blue (lightning)\" : {\r\n\t\tname : \"Blue Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me lightning resistance. If I would take more than 10 lightning damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 lightning damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Lightning\"]\r\n\t},\r\n\t\"green (poison)\" : {\r\n\t\tname : \"Green Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me poison resistance. If I would take more than 10 poison damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 poison damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Poison\"]\r\n\t},\r\n\t\"red (fire)\" : {\r\n\t\tname : \"Red Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me fire resistance. If I would take more than 10 fire damage from a single source (after resistance), the rose disintegrates and I take no damage instead. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 fire damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Fire\"]\r\n\t},\r\n\t\"white (cold)\" : {\r\n\t\tname : \"White Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me cold resistance. If I would take more than 10 cold damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 cold damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Cold\"]\r\n\t}\r\n}\r\nMagicItemsList[\"dust of corrosion\"] = {\r\n\tname : \"Dust of Corrosion\",\r\n\tsource : [[\"WBtW\", 209]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can throw this dust in the air, affecting a 10-ft cube that extends from me. Objects made of nonmagical ferrous metal in the area corrode and turn to dust. Creatures in the area (partly) made out of ferrous metal take 4d8 necrotic damage and can make a DC 13 Con save to halve this damage.\",\r\n\tdescriptionFull : \"As an action, you can throw this dust into the air, filling a 10-foot cube that extends out from you. Surfaces and objects made of nonmagical ferrous metal in the area instantly corrode and turn to dust, becoming useless and unsalvageable. Any creature in the area that is made wholly or partly out of ferrous metal must make a DC 13 Constitution saving throw, taking 4d8 necrotic damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   Found in a small packet, this dust is made from finely ground rust monster antennae. There is enough dust in each packet for one use.\",\r\n}\r\nMagicItemsList[\"eldritch staff\"] = {\r\n\tname : \"Eldritch Staff\",\r\n\tsource : [[\"WBtW\", 209]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This +1 quarterstaff has 10 charges, regaining 1d6+4 charges at dawn. 5% chance it's destroyed If I use its last charge. When I hit with it, I can deal +1d8 lightning damage per charge (max 3). As a reaction when I'm damaged, I can use 3 charges to teleport 60 ft and become invisible until my next turn starts, or I attack/cast.\",\r\n\tdescriptionLong : \"This magic quarterstaff grants a +1 bonus to attack and damage rolls made with it. It has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff is destroyed in an otherwise harmless burst of eldritch energy. When I hit with it in melee, I can expend up to 3 charges, dealing +1d8 lightning damage per charge. As a reaction when I'm damaged while holding the staff, I can use 3 charges to become invisible and teleport 60 ft to an empty space I can see. I then remain invisible until the start of my next turn or until I attack, cast a spell, or deal damage.\",\r\n\tdescriptionFull : \"This staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it.\"+\r\n\t\"\\n   The staff has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff is destroyed in an otherwise harmless burst of eldritch energy.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Attack\") + \". When you hit with a melee attack using the staff, you can expend up to 3 of its charges. For each charge you expend, the target takes an extra 1d8 lightning damage.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Escape\") + \". If you take damage while holding the staff, you can use your reaction to expend 3 of the staff's charges, whereupon you turn invisible and teleport yourself, along with any equipment you are wearing or carrying, up to 60 feet to an unoccupied space that you can see. You remain invisible until the start of your next turn or until you attack, cast a spell, or deal damage.\",\r\n\tweight : 4,\r\n\taction : [[\"reaction\", \" (if damaged)\"]],\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /eldritch staff/i,\r\n\t\tname : \"Eldritch Staff\",\r\n\t\tsource : [[\"WBtW\", 209]],\r\n\t\tdescription : \"Versatile (1d8); On hit, +1d8 lightning damage per charge (max 3)\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ornithopter of flying\"] = {\r\n\tname : \"Ornithopter of Flying\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This contraption can lift up to 300 lb in the air. It has a flying speed of 30 ft and moves according to my spoken directions while I am riding it. It can't hover. If the ornithopter loses its rider while airborne, it falls and can't fly again for 1d6 + 4 days. It is 8 ft long, has a 14-ft wingspan, and weighs 25 lb.\",\r\n\tdescriptionFull : \"You can use this contraption to fly, provided your weight (including whatever you are wearing or carrying) doesn't exceed 300 pounds. The ornithopter has a flying speed of 30 feet, and it moves according to your spoken directions while you are riding it. It can't hover. If the ornithopter loses its rider while airborne, it falls and can't fly again for 1d6 + 4 days.\"+\r\n\t\"\\n   The ornithopter is 8 feet long, has a 14-foot wingspan, and weighs 25 pounds.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"pixie dust\"] = {\r\n\tname : \"Pixie Dust\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can sprinkle this dust on myself or another creature I can see within 5 ft. The recipient gains a flying speed of 30 ft and the ability to hover for 1 minute. If the creature is airborne when this effect ends, it falls safely to the ground, taking no damage and landing on its feet.\",\r\n\tdescriptionFull : \"As an action, you can sprinkle this dust on yourself or another creature you can see within 5 feet of you. The recipient gains a flying speed of 30 feet and the ability to hover for 1 minute. If the creature is airborne when this effect ends, it falls safely to the ground, taking no damage and landing on its feet.\"+\r\n\t\"\\n   A small packet holds enough pixie dust for one use.\",\r\n}\r\nMagicItemsList[\"potion of advantage\"] = {\r\n\tname : \"Potion of Advantage\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can drink this potion of a sparkling, golden mist that moves and pours like water or administer it to another. The consumer of the potion gains advantage on one ability check, attack roll, or saving throw of its choice that it makes within the next hour.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain advantage on one ability check, attack roll, or saving throw of your choice that you make within the next hour.\"+\r\n\t\"\\n   This potion takes the form of a sparkling, golden mist that moves and pours like water.\",\r\n}\r\n\r\nvar WBtW_Scissors_of_Shadow_Snipping_Full_Description = [\r\n\t\"As an action, you make a few snips with these iron shears and cause the shadow of a Humanoid creature you can see within 5 feet of you to detach from its source. If the creature is unwilling to give up its shadow, it can make a DC 15 Charisma saving throw, retaining its shadow on a success. Whether or not the shadow is snipped, this property of the scissors can't be used again until the next dawn.\",\r\n\t\"The detached shadow is rooted to the spot where it was snipped until you use a bonus action to cause it to behave in one of the following ways, either of which is possible only if you can see the shadow:\",\r\n\t\"\\u2022 You control the shadow's movements and can make the shadow move up to 30 feet across a solid or liquid surface, in any direction you choose (including along vertical surfaces), provided it remains within your sight at all times. The shadow is harmless and unable to be harmed, and it is invisible in darkness. It can't speak, and it doesn't require air, sleep, or nourishment.\",\r\n\t\"\\u2022 You can relinquish control of the shadow, at which point it becomes autonomous and behaves as the DM wishes. It uses the shadow stat block in the Monster Manual, but its creature type is Fey instead of Undead. A creature whose Strength is reduced to 0 by this shadow's Strength Drain attack does not die but falls unconscious instead. The creature regains consciousness and all its Strength after finishing a short or long rest.\",\r\n\t\"A creature whose shadow has detached from it is cursed. If a shadowless creature is subjected to any spell that ends a curse, or if its detached shadow is reduced to 0 hit points, the detached shadow disappears, and the creature regains its normal shadow instantly.\"\r\n];\r\nMagicItemsList[\"scissors of shadow snipping\"] = {\r\n\tname : \"Scissors of Shadow Snipping\",\r\n\tsource : [[\"WBtW\", 213]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a fey or a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; }, // no fey player races exist that don't have racial spellcasting\r\n\tdescription : \"As an action once per dawn, I can use these iron shears to detach the shadow of a Humanoid I can see within 5 ft. An involuntary target can make a DC 15 Cha save to resist. The detached shadow stays where it was snipped until I use a bonus action to control it or set it free. See Notes page.\",\r\n\tdescriptionFull : WBtW_Scissors_of_Shadow_Snipping_Full_Description.join(\"\\n   \"),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Scissors_of_Shadow_Snipping_Full_Description, true)\r\n\t}],\r\n\taction : [[\"action\", \" (snip)\"], [\"bonus action\", \" (control)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nvar WBtW_Snicker_Snack_Full_Description = [\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic vorpal sword. In addition, the weapon ignores resistance to slashing damage. When you use this weapon to attack a creature that has at least one head and roll a 20 on the attack roll, you cut off one of the creature's heads. The creature dies if it can't survive without the lost head. A creature is immune to this effect if it is immune to slashing damage, it doesn't have or need a head, it has legendary actions, or the DM decides that the creature is too big for its head to be cut off with this weapon. Such a creature instead takes an extra 6d8 slashing damage from the hit.\",\r\n\t\"While attuned to Snicker-Snack, you have proficiency with greatswords, and you can use your Charisma modifier instead of your Strength modifier for attack and damage rolls made with the weapon.\",\r\n\t\">>Sentience<<. Snicker-Snack is a sentient, chaotic good greatsword with an Intelligence of 9, a Wisdom of 14, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet. It can speak, read, and understand Common, and its voice sounds silvery and melodic. Snicker-Snack craves the destruction of evil Dragons and urges you to seek out these creatures and slay them.\",\r\n\t\">>Personality<<. Snicker-Snack has a fickle personality. It ends its attunement to you if you miss on attack rolls with the weapon three times in a row. Each time you finish a long rest after that happens, you can attempt to regain the sword's trust by making a contested Charisma check against Snicker-Snack. If you win the contest, your attunement to the weapon is instantly restored. Your attunement to the weapon can't be restored in any other way.\"\r\n];\r\nMagicItemsList[\"snicker-snack\"] = {\r\n\tname : \"Snicker-Snack\",\r\n\tsource : [[\"WBtW\", 213]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a non-evil creature\",\r\n\tprereqeval : function(v) { return !/evil/i.test(What(\"Alignment\")); },\r\n\tdescription : \"I have a +3 bonus on attack and damage rolls with this sentient magic greatsword and can use Cha instead of Str. It ignores slashing resistance. On a 20 to hit, it cuts off \" + (typePF ? \"a head\" : \"one head, possibly killing it instantly\") + \". If the target has legendary actions, no head, too wide neck, or is immune to slashing damage, it takes +6d8 damage instead. See Notes.\",\r\n\tdescriptionFull : WBtW_Snicker_Snack_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 6,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Snicker_Snack_Full_Description)\r\n\t}],\r\n\tweaponProfs : [false, false [\"greatsword\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /snicker.snack/i,\r\n\t\tname : \"Snicker-Snack\",\r\n\t\tsource : [[\"WBtW\", 213]],\r\n\t\tdescription : \"Heavy, two-handed; Ignores slashing resistance; On 20 to hit: cut off head\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tisSnickerSnack : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.isSnickerSnack && fields.Mod === 1 && What('Cha') > What('Str')) {\r\n\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I can use my Charisma modifier instead of my Strength modifier for attack and damage rolls made with Snicker-Snack.\"\r\n\t\t]\r\n\t}\r\n}\r\nvar WBtW_Steel_Full_Description = [\r\n\t\"You have a +2 bonus to attack and damage rolls made with this magic weapon.\",\r\n\t\">>Revivify<<. You can use an action to cast the revivify spell from the sword. You must touch the target with the sword to cast the spell. Once this property of the weapon is used, it can't be used again until the next dawn.\",\r\n\t\">>Sentience<<. Steel is a sentient, lawful good longsword with an Intelligence of 8, a Wisdom of 11, and a Charisma of 15. It can see and hear out to a range of 60 feet. The sword can speak, read, and understand Common and Draconic. It frets over your well-being while you are attuned to it, and it doesn't like to back down from a fight.\"\r\n];\r\nMagicItemsList[\"steel\"] = {\r\n\tname : \"Steel\",\r\n\tsource : [[\"WBtW\", 214]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a good-aligned creature\",\r\n\tprereqeval : function(v) { return /good/i.test(What(\"Alignment\")); },\r\n\tdescription : \"This sentient longsword adds +2 to attack and damage rolls made with it. As an action once per dawn, I can use it to cast Revivify on a target I touch with the sword. Steel is lawful good and frets over my well-being and doesn't like to back down from a fight. It has Int 8, Wis 11, and Cha 15. See Notes page.\",\r\n\tdescriptionFull : WBtW_Steel_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Steel_Full_Description)\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /['\"]steel['\"]/i,\r\n\t\tname : '\"Steel\"',\r\n\t\tsource : [[\"WBtW\", 214]],\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"revivify\"],\r\n\t\tselection : [\"revivify\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\nMagicItemsList[\"woodcutter's axe\"] = {\r\n\tname : \"Woodcutter's Axe\",\r\n\tsource : [[\"WBtW\", 214]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this magic greataxe. When I use this axe to make an attack against a plant (an ordinary plant or a creature with the Plant type) or a wooden object that isn't being worn or carried, the attack deals an extra 2d6 slashing damage on a hit.\",\r\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon.\"+\r\n\t\"\\n   When you use this axe to make an attack against a plant (an ordinary plant or a creature with the Plant type) or a wooden object that isn't being worn or carried, the attack deals an extra 2d6 slashing damage on a hit.\",\r\n\tweight : 7,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /^(?=.*woodcutter)(?=.*axe).*$/i,\r\n\t\tname : \"Woodcutter's Axe\",\r\n\t\tsource : [[\"WBtW\", 214]],\r\n\t\tdescription : \"Heavy, two-handed; +2d6 damage vs. plants/wood\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nvar WBtW_Witchlight_Vane_Full_Description = [\r\n\t\"This ornate rod is topped by a pair of butterfly wings and incorporates bits of red glass into its length. It weighs 3 pounds.\",\r\n\t\">>Magic Weapon<<. In the hands of one who is attuned to it, the vane can be wielded as a magic mace that grants a +3 bonus to attack and damage rolls made with it. In addition, the vane deals an extra 1d8 radiant damage on a hit.\",\r\n\t\">>Sense Mood<<. While the vane is inside the perimeter of the Witchlight Carnival, it can sense the mood of every creature in the carnival that has an Intelligence of 4 or higher. As an action, a creature attuned to the vane can use it to pinpoint the location of the happiest creature in the carnival.\",\r\n\t\"The butterfly shape at the top of the vane spins slowly clockwise when spirits in the carnival are generally high; if the general mood in the carnival is dour, the top of the vane spins slowly counterclockwise.\",\r\n\t\">>Sentience<<. The vane is a sentient, chaotic good wondrous item with an Intelligence of 11, a Wisdom of 14, and a Charisma of 14. It has hearing and normal vision out to a range of 30 feet, and it communicates by transmitting emotion to the creature attuned to it. Its purpose is to make sure everyone in the Witchlight Carnival is having a good time.\",\r\n\t\">>Additional Properties<<. The vane has the following additional properties:\",\r\n\t\"\\u2022 The creature holding the vane has vulnerability to lightning damage.\",\r\n\t\"\\u2022 The creature attuned to the vane can't be blinded, deafened, petrified, or stunned.\",\r\n\t\"\\u2022 While carrying the vane, the creature attuned to it can cast the dancing lights, polymorph, or ray of frost spell as an action, requiring no spell components and using Charisma as the spellcasting ability. After the vane's polymorph spell is cast, roll a d8; on a roll of 3 or 8, the vane can't be used to cast this spell again until the next dawn.\"\r\n];\r\nMagicItemsList[\"witchlight vane\"] = {\r\n\tname : \"Witchlight Vane\",\r\n\tsource : [[\"WBtW\", 27]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a mister light or his handpicked successor\",\r\n\tdescription : \"I can use this sentient ornate rod as a +3 mace that deals an extra 1d8 radiant damage on a hit. It can sense the mood of every creature in the carnival. As an action, I can pinpoint the happiest in the carnival. I can use it to cast spells. I can't be blinded, deafened, petrified, or stunned. See Notes page.\",\r\n\tdescriptionLong : \"This sentient ornate rod is topped by a pair of butterfly wings and incorporates bits of red glass into its length. I can use it as a +3 mace that deals an extra 1d8 radiant damage on a hit. It can sense the mood of every creature in the carnival. As an action, I can use it to pinpoint the happiest in the carnival. I can use it to cast Dancing Light, Ray of Frost, and Polymorph. After I use it to cast Polymorph, roll a d8. On a roll of 3 or 8, the vane can't be used to cast Polymorph again until the next dawn. It makes me vulnerable to lightning damage, but I can't be blinded, deafened, petrified, or stunned. See Notes page.\",\r\n\tdescriptionFull : WBtW_Witchlight_Vane_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Witchlight_Vane_Full_Description)\r\n\t}],\r\n\taction : [[\"action\", \" (find happiest)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*witchlight)(?=.*vane).*$/i,\r\n\t\tname : \"Witchlight Vane\",\r\n\t\tsource : [[\"WBtW\", 27]],\r\n\t\tdescription : \"+1d8 radiant damage\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witchlight Vane [Polymorph] (25% chance use)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"dancing lights\", \"ray of frost\"],\r\n\t\tselection : [\"dancing lights\", \"ray of frost\"],\r\n\t}, {\r\n\t\tname : \"See Notes\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : \"SP\"\r\n\t}],\r\n\tsavetxt : {\r\n\t\ttext : [\"Vulnerable to lightning\"],\r\n\t\timmune : [\"blinded\", \"deafened\", \"petrified\", \"stunned\"]\r\n\t}\r\n}\r\nvar WBtW_Witchlight_Watch_Full_Description = [\r\n\t\"This ornate pocket watch is fastened to the end of a gold chain. It glows with a faint golden light when opened, and it makes a soft ticking noise that can be heard only by the creature holding it. The face of the watch shows a miniature painting of the Witchlight Carnival ringed by a tiny henge, orbited at night by a mote of light small enough to slip through the eye of a needle. This light causes the henge to cast shadows, and these shadows allow the watch's owner to track the passage of time.\",\r\n\t\">>Carnival Setup and Takedown<<. The creature attuned to the watch can use an action to initiate the packing up or the unpacking of the Witchlight Carnival, provided the creature and the carnival are on the same plane of existence. In the span of 1 hour, all objects that are elements of the carnival are magically whisked about until everything is packed up and ready for travel, or unpacked and assembled. The watch has no effect on creatures, which can move about freely and safely while the carnival is being set up or taken down. Once the process of packing up or unpacking the carnival begins, it can't be stopped until the task is complete. When the watch is used to pack up or unpack the carnival, this property cannot be used again until 8 hours have elapsed.\",\r\n\t\">>Additional Properties<<. The pocket watch has the following additional properties:\",\r\n\t\"\\u2022 While carrying the watch, the creature attuned to it can cast the fire bolt, invisibility, or message spell as an action, requiring no spell components and using Intelligence as the spellcasting ability. After the watch's invisibility spell is cast, roll a d8; on a roll of 3 or 8, the watch can't be used to cast this spell again until the next dawn.\",\r\n\t\"\\u2022 The creature attuned to the watch gains 30 pounds. This extra weight vanishes when the attunement ends.\",\r\n\t\"\\u2022 The creature attuned to the watch must eat and drink eight times the normal amount each day.\"\r\n];\r\nMagicItemsList[\"witchlight watch\"] = {\r\n\tname : \"Witchlight Watch\",\r\n\tsource : [[\"WBtW\", 25]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a mister witch or his handpicked successor\",\r\n\tdescription : \"As an action once per 8 hours, I can use this ornate pocket watch to initiate the (un)packing of the carnival over the next hour. I can use it to cast Fire Bolt, Message, and Invisibility. After it casts Invisibility, I roll a d8. On a roll of 3 or 8, I can't cast this again until the next dawn. See Notes page.\",\r\n\tdescriptionLong : \"This ornate pocket watch is fastened to the end of a gold chain and glows with a faint golden light when opened. As an action once per 8 hours, I can use this ornate pocket watch to initiate the (un)packing of the carnival over the next hour, provided the carnival and I are on the same plane of existence. I can use it to cast Fire Bolt, Message, and Invisibility. After I use it to cast Invisibility, roll a d8. On a roll of 3 or 8, it can't be used to cast Invisibility again until the next dawn. As long as I'm attuned to it, I'm 30 lb heavier and must eat and drink eight times the normal amount each day. See Notes page.\",\r\n\tdescriptionFull : WBtW_Witchlight_Watch_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Witchlight_Watch_Full_Description, true)\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witchlight Watch [initiate (un)packing]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"8 hrs\"\r\n\t}, {\r\n\t\tname : \"Witchlight Watch [Invisibility] (25% chance use)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\taction : [[\"action\", \" [initiate (un)packing]\"]],\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"fire bolt\", \"message\"],\r\n\t\tselection : [\"fire bolt\", \"message\"],\r\n\t}, {\r\n\t\tname : \"See Notes\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"SP\"\r\n\t}],\r\n}\r\n// Beasts\r\nCreatureList[\"giant swan\"] = { // a giant eagle except that it has no talons, can attack twice with its beak as an action, and speaks Common and Auran\r\n\tname : \"Giant Swan\",\r\n\tnameAlt : [\"Swan, Giant\"],\r\n\tsource : [[\"WBtW\", 38]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Neutral Good\",\r\n\tac : 13,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, fly 80 ft\",\r\n\tscores : [16, 17, 13, 8, 14, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"Common and Auran\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Beak\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two beak attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the swan can make two Beak attacks.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The swan has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}]\r\n}\r\nCreatureList[\"giant dragonfly\"] = {\r\n\tname : \"Giant Dragonfly\",\r\n\tnameAlt : [\"Dragonfly, Giant\"],\r\n\tsource : [[\"WBtW\", 234]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 16,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [15, 18, 11, 3, 10, 3],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Drone\",\r\n\t\tdescription : \"When it beats its wings, the dragonfly emits a loud droning sound that can be heard out to a range of 120 ft.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Uncanny Dodge\",\r\n\t\tdescription : \"As a reaction, the dragonfly can halve the damage it takes from an attack made against it, provided it can see the attacker.\"\r\n\t}]\r\n}\r\nCreatureList[\"giant snail\"] = {\r\n\tname : \"Giant Snail\",\r\n\tnameAlt : [\"Snail, Giant\"],\r\n\tsource : [[\"WBtW\", 234]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, climb 10 ft\",\r\n\tscores : [15, 3, 11, 3, 10, 3],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Salt Osmosis\",\r\n\t\tdescription : \"Whenever the snail starts its turn in contact with a pound or more of salt, it takes 1d4 necrotic damage. Using an action to sprinkle a pound of salt on the snail deals 1d4 necrotic damage to it immediately and another 1d4 necrotic damage to it at the start of its next turn (after which the salt rubs off), provided the snail has not withdrawn into its shell.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Shell Defense\",\r\n\t\tdescription : \"As an action, the snail withdraws into its shell, gaining a +4 bonus to its AC until it emerges. It can emerge from its shell as a bonus action on its turn.\"\r\n\t}]\r\n}\r\n\n// pub_20211019_FToD.js\r\n// This file adds all the player-material from Fizban's Treasury of Dragons to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.FToD = {\r\n\tname : \"Fizban's Treasury of Dragons\",\r\n\tabbreviation : \"FToD\",\r\n\tabbreviationSpellsheet : \"FD\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/treasury-dragons\",\r\n\tdate : \"2021/10/19\"\r\n};\r\n\r\n// Races\r\nvar FToD_dragonborns_add = function () { // New dragonborn variants\r\n\tvar objDragonborns = {\r\n\t\tChromatic : {\r\n\t\t\tregExpSearch : /^(?=.*chromatic)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 10]],\r\n\t\t\tvariants : [[\"Black\", \"Acid\"], [\"Blue\", \"Lightning\"], [\"Green\", \"Poison\"], [\"Red\", \"Fire\"], [\"White\", \"Cold\"]],\r\n\t\t\tbreathWeaponShape : \"5-ft by 30-ft line\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 5-ft by 30-ft line, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest. The damage increases with +1d10 at 5th, 11th, and 17th level.\",\r\n\t\t\t\t\"Chromatic Warding: From 5th level, I can protect myself using my draconic energies. As an action once per long rest, I can become immune to >>type<< damage for 1 minute.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"chromatic warding\" : {\r\n\t\t\t\t\tname : \"Chromatic Warding\",\r\n\t\t\t\t\tsource : [[\"FToD\", 10]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tGem : {\r\n\t\t\tregExpSearch : /^(?=.*gem)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 11]],\r\n\t\t\tvariants : [[\"Amethyst\", \"Force\"], [\"Crystal\", \"Radiant\"], [\"Emerald\", \"Psychic\"], [\"Sapphire\", \"Thunder\"], [\"Topaz\", \"Necrotic\"]],\r\n\t\t\tbreathWeaponShape : \"15-ft cone\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Prof Bonus). I can do this my Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus per long rest.\",\r\n\t\t\t\t\"Psionic Mind: \" + (typePF ? \"I can send telepathic messages to any creature I can see within 30 ft that understands at least one language.\" : \"I can telepathically message a creature with a language I can see in 30 ft.\"),\r\n\t\t\t\t\"Gem Flight: From 5th level, I can manifest spectral wings. As a bonus action once per long rest, I can gain, for 1 minute, a flying speed equal to my walking speed and can hover.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"gem flight\" : {\r\n\t\t\t\t\tname : \"Gem Flight\",\r\n\t\t\t\t\tsource : [[\"FToD\", 11]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tMetallic : {\r\n\t\t\tregExpSearch : /^(?=.*metallic)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\tvariants : [[\"Brass\", \"Fire\"], [\"Bronze\", \"Lightning\"], [\"Copper\", \"Acid\"], [\"Gold\", \"Fire\"], [\"Silver\", \"Cold\"]],\r\n\t\t\tbreathWeaponShape : \"15-ft cone\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus). I can do this my Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus per long rest.\",\r\n\t\t\t\t\"Metallic Breath Weapon: At 5th level I gain a second breath weapon once per long rest, that works just like the first, but I choose the effect when I use it: Enervating: Con save or incapacitated until my next turn starts. Repulsion: Str save or pushed 20 ft and prone.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"metallic breath weapon\" : {\r\n\t\t\t\t\tname : \"Metallic Breath Weapon\",\r\n\t\t\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\t\tregExpSearch : /^(?=.*metallic)(?=.*breath)(?=.*weapon).*$/i,\r\n\t\t\t\t\t\tname : \"Metallic breath weapon\",\r\n\t\t\t\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\t\t\t\tability : 3,\r\n\t\t\t\t\t\ttype : 'Natural',\r\n\t\t\t\t\t\tdamage : ['Enervating', '', 'or Repulsion'],\r\n\t\t\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\t\t\tdescription : \"Repulsion: Str save or pushed 20 ft \\u0026 prone; Enervating: Con save or incapacitated till my next turn starts\",\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\tdc : true,\r\n\t\t\t\t\t\tselectNow : true\r\n\t\t\t\t\t}]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tfor (var sDrBrn in objDragonborns) {\r\n\t\tvar sDrBrnLC = sDrBrn.toLowerCase();\r\n\t\tvar oDrBrn = objDragonborns[sDrBrn];\r\n\t\tRaceList[sDrBrnLC + \" dragonborn\"] = {\r\n\t\t\tregExpSearch : oDrBrn.regExpSearch,\r\n\t\t\tname : sDrBrn + \" Dragonborn\",\r\n\t\t\tsortname : \"Dragonborn, \" + sDrBrn,\r\n\t\t\tsource : oDrBrn.source,\r\n\t\t\tplural : sDrBrn + \" Dragonborn\",\r\n\t\t\tsize : 3,\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t\t},\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\t\t\tname : \"Breath weapon\",\r\n\t\t\t\tsource : oDrBrn.source,\r\n\t\t\t\tability : 3,\r\n\t\t\t\ttype : 'Natural',\r\n\t\t\t\tdamage : ['C', 10, 'fire'],\r\n\t\t\t\trange : oDrBrn.breathWeaponShape.replace('by', '\\xD7'),\r\n\t\t\t\tdescription : \"Hits all in area; Dex save, success - half damage\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tdbBreathWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\t\tscoresGeneric : true,\r\n\t\t\ttrait : sDrBrn + \" Dragonborn\"+\r\n\t\t\t\t\"\\n \\u2022 \" + sDrBrn + ' Ancestry: Choose a type of dragon using the \"Racial Options\" button. The damage type of my resistance and my breath weapon are determined by the dragon type chosen.'+\r\n\t\t\t\t+ oDrBrn.trait.replace(/>>type<< /ig, \"\"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"breath weapon\" : {\r\n\t\t\t\t\tname : \"Breath Weapon\",\r\n\t\t\t\t\tminlevel : 1,\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tadditional : cantripDie.map(function (n) {\r\n\t\t\t\t\t\treturn n + 'd10';\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && /dragonborn/i.test(CurrentRace.known) && CurrentRace.dmgres) {\r\n\t\t\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.dmgres[0];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t'',\r\n\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tvariants : []\r\n\t\t};\r\n\t\tif (oDrBrn.features) {\r\n\t\t\tfor (var sFea in oDrBrn.features) {\r\n\t\t\t\tRaceList[sDrBrnLC + \" dragonborn\"].features[sFea] = oDrBrn.features[sFea];\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (var i = 0; i < oDrBrn.variants.length; i++) {\r\n\t\t\tvar sDrBrnVar = oDrBrn.variants[i][0];\r\n\t\t\tvar sDrBrnDmg = oDrBrn.variants[i][1];\r\n\t\t\tAddRacialVariant(sDrBrnLC + \" dragonborn\", sDrBrnVar.toLowerCase(), {\r\n\t\t\t\tregExpSearch : RegExp(sDrBrnVar, \"i\"),\r\n\t\t\t\tname : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\",\r\n\t\t\t\ttrait : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\"+\r\n\t\t\t\t\toDrBrn.trait.replace(/>>TYPE<</g, sDrBrnDmg).replace(/>>type<</g, sDrBrnDmg.toLowerCase()),\r\n\t\t\t\tdmgres : [sDrBrnDmg]\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}();\r\n\r\n// Subclasses\r\nAddSubClass(\"monk\", \"ascendant dragon\", {\r\n\tregExpSearch : /^(?=.*ascendant)(?=.*(dragon|draconic))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Ascendant Dragon\",\r\n\tsubnameShort: \"Ascendant Dragon\",\r\n\tsource : [[\"FToD\", 13]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Disciple\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn to speak, read, and write Draconic or one other language of my choice\",\r\n\t\t\t\t\"I can change the damage type of my unarmed strikes to acid, cold, fire, lightning, poison\",\r\n\t\t\t\t\"As a reaction when I fail an Intimidation or Persuasion check, I can reroll the check\",\r\n\t\t\t\t\"If this reroll turns the check into a success, I can't do so again until I finish a long rest\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [[\"Draconic or other\", 1]],\r\n\t\t\taction : [[\"reaction\", \" (reroll check)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reroll\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"Change type to acid/cold/fire/lightning/poison\";\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I damage a target with an unarmed strike, I can change the damage type to acid, cold, fire, lightning or poison.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"breath of the dragon\" : {\r\n\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\textraname : \"Ascendant Dragon 3\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar iMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"When I take the Attack action on my turn, I can replace one attack with a breath weapon\",\r\n\t\t\t\t\t\t\"This deals \" + (n < 11 ? 2 : 3) + \"d\" + iMonkDie + \" acid, cold, fire, lightning, or poison (my choice) damage to all in the area\",\r\n\t\t\t\t\t\t\"The area can be a 20-ft cone or a 5-ft wide, 30-ft line; Dex save to halve the damage\",\r\n\t\t\t\t\t\t\"I can do this my Proficiency Bonus times per long rest, or by expending 2 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, I can expend 1 (extra) ki point when I use this feature to augment it\",\r\n\t\t\t\t\t\t\"The damage increases to 4d\" + iMonkDie + \" and the area to a 60-ft cone or a 5-ft wide, 90-ft line\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : \"Prof B. per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"2 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 11 ? 2 : 3) + \"d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon).*$/i,\r\n\t\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\ttype : \"Natural\",\r\n\t\t\t\t\tdamage : [2, 4, \"My choice\"],\r\n\t\t\t\t\trange : \"5-ft \\xD7 30-ft line\",\r\n\t\t\t\t\tdescription : \"All in area; Dex save for half damage; Alt: 20-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmonkweapon : false,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tWotAD_BreathWeapon : true,\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && v.theWea.WotAD_BreathWeapon) {\r\n\t\t\t\t\t\t\t\tvar n = classes.known.monk.level;\r\n\t\t\t\t\t\t\t\tvar aMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = (v.theWea.WotAD_BreathWeaponAugmented ? 4 : n < 11 ? 2 : 3) + \"d\" + aMonkDie;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My Breath of the Dragon deals damage equal to two rolls of my Martials Arts die. At 11th level, this increases to three rolls of my Martial Arts die. At 17th level, I can expend 1 ki point to augment the breath to increase the damage to four rolls of my Martial Arts die.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"breath of the dragon\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wings Unfurled\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Step of the Wind, I can gain a flying speed equal to my walking speed\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\"aspect of the wyrm\" : {\r\n\t\t\t\tname : \"Aspect of the Wyrm\",\r\n\t\t\t\textraname : \"Ascendant Dragon 11\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"As a bonus action, I can activate a 10 ft aura for 1 minute that grants me one benefit:\",\r\n\t\t\t\t\t\t\" \\u2022 My allies in the aura and I gain resistance to acid, cold, fire, lightning, or poison damage\",\r\n\t\t\t\t\t\t\" \\u2022 When I create this aura and as a bonus action while it is active, I can frighten a creature\",\r\n\t\t\t\t\t\t\"      One creature must make a Wisdom save or become frightened of me for 1 minute\",\r\n\t\t\t\t\t\t\"      It can repeat the save at the end of each of its turns, ending the effect on a success\",\r\n\t\t\t\t\t\t\"I can activate this aura once per long rest, or by expending 3 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, when I active this, I can choose any creatures I can see in the aura\",\r\n\t\t\t\t\t\t\"Each must then make a Dex save or take 3d10 acid, cold, fire, lightning, or poison damage\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"3 ki\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"aspect of the wyrm\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Ascendant Aspect\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I gain 10 ft blindsight and both Breath of the Dragon and Aspect of the Wyrm improve\"),\r\n\t\t\tvision : [[\"blindsight\", 10]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon)(?=.*augment).*$/i,\r\n\t\t\t\tname : \"Breath of the Dragon (Augmented)\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [4, 10, \"My choice\"],\r\n\t\t\t\trange : \"5-ft \\xD7 90-ft line\",\r\n\t\t\t\tdescription : \"[1 ki] All in area; Dex save for half damage; Alt: 60-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tmonkweapon : false,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tWotAD_BreathWeapon : true,\r\n\t\t\t\tWotAD_BreathWeaponAugmented : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nvar FToD_Ranger_Subclass_Drakewarden = AddSubClass(\"ranger\", \"drakewarden\", {\r\n\tregExpSearch : /^(?=.*(drake|dragon|draconic))(?=.*(warden|ranger|trainer)).*$/i,\r\n\tsubname : \"Drakewarden\",\r\n\tsource : [[\"FToD\", 15]],\r\n\tfullname : \"Drakewarden\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Gift\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Draconic language and the Thaumaturgy cantrip\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Draconic Gift\",\r\n\t\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drake Companion\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon my drake to appear in an empty space within 30 ft\",\r\n\t\t\t\t'Select a \"Drake Companion\" on the companion page for its stats and rules',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \" (summon)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\tcreaturesAdd : [[\"Drake Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Drake Companion\",\r\n\t\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Dragon\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : \"14+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [3, 10],\r\n\t\t\t\thdLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tminlevelLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [16, 12, 15, 8, 14, 8],\r\n\t\t\t\tsaves : [\"\", 3, \"\", \"\", 4, \"\"],\r\n\t\t\t\tdamage_immunities : \"the chosen Draconic Essence damage type\",\r\n\t\t\t\tsenses : \"Darkvision 40 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"Draconic\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\", //+1d6 damage of the chosen Draconic Essense type\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Warden\",\r\n\t\t\t\t\tdescription : \"The drake obeys the commands of its warden and shares its proficiency bonus. It takes its turn immediately after that of its warden, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its warden takes a bonus action to command it to take another action. If its warden is incapacitated, the drake can take any action, not just Dodge. The drake vanishes when it is reduced to 0 hit points, when its warden summons another drake, or when its warden dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Draconic Essence\",\r\n\t\t\t\t\tdescription : \"Chosen when summoned: acid, cold, fire, lightning, or poison damage.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infused Strikes\",\r\n\t\t\t\t\tdescription : \"As a reaction when another creature within 30 ft of the drake that it can see hits with a weapon attack, the drake can infuse the strike with its essence, causing the attack to deal an extra 1d6 damage of its chosen Draconic Essence damage type\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Bond of Fang and Scale (Drakewarden 7)\",\r\n\t\t\t\t\tminlevel : 7,\r\n\t\t\t\t\tdescription : \"The drake is now Medium and can be ridden as a mount. It has a flying speed equal to its walking speed, but can't fly with a rider on its back. The drake's bite deals an extra 1d6 damage of its chosen Draconic Essence type.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t\tAddString(prefix + \"Comp.Use.Attack.1.Description\", \"+1d6 damage of the chosen Draconic Essense type\");\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, ''));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 4); // Small\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Perfected Bond (Drakewarden 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The drake is now Large and can fly while its being ridden. Its bite attack deals an extra 1d6 damage (for a total of +2d6) of its chosen Draconic Essence type.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, '+2d6 damage of the chosen Draconic Essense type'));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, '+1d6 damage of the chosen Draconic Essense type'));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.ranger && !classes.known.rangerua) return;\r\n\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\tvar rngrLvlM = 5 * rngrLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + rngrLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 as a base\\n + 5 \\xD7 \" + rngrLvl + \" from five times its warden's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Bond of Fang and Scale\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Medium, has a 40 ft fly speed, and can be ridden, but not while flying\",\r\n\t\t\t\t\"The drake's bite attack deals an extra 1d6 damage chosen by its Draconic Essense\",\r\n\t\t\t\t\"While it is summoned, I gain resistance to the damage type of its Draconic Essense\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"(See Drake)\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drake's Breath\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause my drake or myself to exhale a 30-ft cone breath weapon\",\r\n\t\t\t\t\"Its damage type is acid, cold, fire, lightning, or poison; Dex save to halve the damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : (n < 15 ? 8 : 10) + \"d6 damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*drake)(?=.*breath).*$/i,\r\n\t\t\t\tname : \"Drake's Breath\",\r\n\t\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [8, 6, \"My choice\"],\r\n\t\t\t\trange : \"30-ft cone\",\r\n\t\t\t\tdescription : \"Hits all in area; Dex save for half damage; Damage type: acid, cold, fire, lightning, or poison\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tDrakewardenDrakeBreath : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.DrakewardenDrakeBreath && (classes.known.rangerua || classes.known.ranger)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Damage_Die = (rngrLvl < 15 ? 8 : 10) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\",\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Perfected Bond\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Large, can serve as a mount, and adds another +1d6 damage to its bite\",\r\n\t\t\t\t\"As a reaction when the drake or I take damage while within 30 ft of each other,\",\r\n\t\t\t\t\"I can give myself or the drake resistance to that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reaction\"\r\n\t\t}\r\n\t}\r\n});\r\n// Add the subclass to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(FToD_Ranger_Subclass_Drakewarden);\r\n};\r\n\r\n// Feats\r\nFeatsList[\"gift of the chromatic dragon\"] = {\r\n\tname : \"Gift of the Chromatic Dragon\",\r\n\tsource : [[\"FToD\", 17], [\"UA:DO\", 4]],\r\n\tdescriptionFull : \"You've manifested some of the power of chromatic dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Chromatic Infusion\") + \". As a bonus action, you can touch a simple or martial weapon and infuse it with one of the following damage types: acid, cold, fire, lightning, or poison. For the next minute, the weapon deals an extra 1d4 damage of the chosen type when it hits. After you use this bonus action, you can't do so again until you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Reactive Resistance\") + \". When you take acid, cold, fire, lightning, or poison damage, you can use your reaction to give yourself resistance to that instance of damage. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"As a bonus action once per long rest, I can touch a simple or martial weapon and infuse it to deal +1d4 acid, cold, fire, poison, or lightning damage for 1 minute. As a reaction when I take acid, cold, fire, lightning, or poison damage, I can gain resistance to that damage instance. I can do this my Prof Bonus per long rest.\",\r\n\taction : [\r\n\t\t[\"bonus action\", \"Chromatic Gift (Chromatic Infusion)\"],\r\n\t\t[\"reaction\", \"Chromatic Gift (Reactive Resistance)\"]\r\n\t],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Chromatic Gift (Chromatic Infusion)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}, {\r\n\t\tname : \"Chromatic Gift (Reactive Resistance)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"gift of the gem dragon\"] = {\r\n\tname : \"Gift of the Gem Dragon\",\r\n\tsource : [[\"FToD\", 17], [\"UA:DO\", 5]],\r\n\tdescriptionFull : \"You've manifested some of the power of gem dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Telekinetic Reprisal\") + \". When you take damage from a creature that is within 10 feet of you, you can use your reaction to emanate telekinetic energy. The creature that dealt damage to you must make a Strength saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the creature takes 2d8 force damage and is pushed up to 10 feet away from you. On a successful save, the creature takes half as much damage and isn't pushed. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"As a reaction when I take damage from a creature that is within 10 ft, I can have it take 2d8 force damage and push it up to 10 ft away. If it succeeds on a Str save (DC 8 + Prof Bonus + chosen ability score modifier), it halves the damage and isn't pushed. I can do this my Prof Bonus per long rest. [+1 Int, Wis or Cha]\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + ( 8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod')) ) + ' (8 + Prof Bonus + Int mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Intelligence]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Wisdom]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Charisma]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"gift of the metallic dragon\"] = {\r\n\tname : \"Gift of the Metallic Dragon\",\r\n\tsource : [[\"FToD\", 17]],\r\n\tdescriptionFull : \"You've manifested some of the power of metallic dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Draconic Healing\") + \". You learn the cure wounds spell. You can cast this spell without expending a spell slot. Once you cast this spell in this way, you can't do so again until you finish a long rest. You can also cast this spell using spell slots you have. The spell's spellcasting ability is Intelligence, Wisdom, or Charisma when you cast it with this feat (choose when you gain the feat).\"+\r\n\t\"\\n   \" + toUni(\"Protective Wings\") + \". You can manifest protective wings that can shield you or others. When you or another creature you can see within 5 feet of you is hit by an attack roll, you can use your reaction to manifest spectral wings from your back for a moment. You grant a bonus to the target's AC equal to your proficiency bonus against that attack roll, potentially causing it to miss. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I know Cure Wounds. I can cast it using spell slots and once per long rest without a spell slot. As a reaction when I or another I can see within 5 ft is hit by an attack, I can add my Proficiency Bonus to AC, potentially causing the attack to miss. I can do this my Proficiency Bonus per long rest.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tallowUpCasting : true,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Cure Wounds\",\r\n\t\tspells : [\"cure wounds\"],\r\n\t\tselection : [\"cure wounds\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\taction : [[\"reaction\", \"Metallic Gift (Protective Wings)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Metallic Gift (Protective Wings)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\n\r\n// Spells\r\nSpellsList[\"ashardalon's stride\"] = { // contains contributions by Nod_Hero (Flame Stride in UA:DO)\r\n\tname : \"Ashardalon's Stride\",\r\n\tnameAlt : \"Flame Stride\",\r\n\tclasses : [\"artificer\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 19], [\"UA:DO\", 6]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"+20+5/SL ft speed; provoke no opp atks for moving; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionShorter : \"+20+5/SL ft spd; no opp atks with move; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionMetric : \"+6+1,5/SL m spd; provoke no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionShorterMetric : \"+6+1,5/SL m spd; no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionFull : \"The billowing flames of a dragon blast from your feet, granting you explosive speed. For the duration, your speed increases by 20 feet and moving doesn't provoke opportunity attacks.\"+\r\n\t\"\\n   When you move within 5 feet of a creature or an object that isn't being worn or carried, it takes 1d6 fire damage from your trail of heat. A creature or object can take this damage only once during a turn.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, increase your speed by 5 feet for each spell slot level above 3rd. The spell deals an additional 1d6 fire damage for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"draconic transformation\"] = {\r\n\tname : \"Draconic Transformation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 19]],\r\n\tlevel : 7,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"S:60\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A statuette of a dragon, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Blindsight 30 ft; 60 ft fly speed; at cast and 1 bns: 60-ft cone all 6d8 Force damage, save half (500gp)\",\r\n\tdescriptionShorter : \"Blindsight 30 ft; 60 ft fly; at cast and 1 bns: 60-ft cone all 6d8 Force dmg, save half (500gp)\",\r\n\tdescriptionFull : \"With a roar, you draw on the magic of dragons to transform yourself, taking on various draconic features. You gain the following benefits until the spell ends:\"+\r\n\t\"\\n   \" + toUni(\"Blindsight\") + \". You have blindsight with a range of 30 feet. Within that range, you can effectively see anything that isn't behind total cover, even if you're blinded or in darkness. Moreover, you can see an invisible creature, unless the creature successfully hides from you.\"+\r\n\t\"\\n   \" + toUni(\"Breath Weapon\") + \". When you cast this spell, and as a bonus action on subsequent turns for the duration, you can exhale shimmering energy in a 60-foot cone. Each creature in that area must make a Dexterity saving throw, taking 6d8 force damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   \" + toUni(\"Wings\") + \". Incorporeal wings sprout from your back, giving you a flying speed of 60 feet.\"\r\n};\r\nSpellsList[\"fizban's platinum shield\"] = {\r\n\tname : \"Fizban's Platinum Shield\",\r\n\tnameAlt : \"Platinum Shield\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 20]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A platinum-plated dragon scale, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 crea Acid, Cold, Fire, Lightn. \\u0026 Poison resist., half cover, better Dex saves; 1 bns change crea (500gp)\",\r\n\tdescriptionFull : \"You create a field of silvery light that surrounds a creature of your choice within range (you can choose yourself). The field sheds dim light out to 5 feet. While surrounded by the field, a creature gains the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Cover\") + \". The creature has half cover.\"+\r\n\t\"\\n   \" + toUni(\"Damage Resistance\") + \". The creature has resistance to acid, cold, fire, lightning, and poison damage.\"+\r\n\t\"\\n   \" + toUni(\"Evasion\") + \". If the creature is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, the creature instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\"+\r\n\t\"\\n   As a bonus action on subsequent turns, you can move the field to another creature within 60 feet of the field.\"\r\n};\r\nSpellsList[\"nathair's mischief\"] = {\r\n\tname : \"Nathair's Mischief\",\r\n\tnameAlt : \"Mischief\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 20], [\"UA:DO\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A piece of crust from an apple pie\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Var\",\r\n\tdescription : \"20-ft cube of magic, roll d4 for effect; At start of my turn, move cube 10 ft and reroll effect; see book\",\r\n\tdescriptionFull : \"You fill a 20-foot cube you can see within range with fey and draconic magic. Roll on the Mischievous Surge table to determine the magical effect produced, and roll again at the start of each of your turns until the spell ends. You can move the cube up to 10 feet before you roll.\"+\r\n\t\"\\n\\nMischievous Surge\"+\r\n\ttoUni(\"\\nd4\\tEffect\")+\r\n\t\"\\n  1\\tThe smell of apple pie fills the air, and each creature in the cube must succeed on a Wisdom saving throw or become charmed by you until the start of your next turn.\"+\r\n\t\"\\n  2\\tBouquets of flowers appear all around, and each creature in the cube must succeed on a Dexterity saving throw or be blinded until the start of your next turn as the flowers spray water in their faces.\"+\r\n\t\"\\n  3\\tEach creature in the cube must succeed on a Wisdom saving throw or begin giggling until the start of your next turn. A giggling creature is incapacitated and uses all its movement to move in a random direction.\"+\r\n\t\"\\n  4\\tDrops of molasses hover in the cube, making it difficult terrain until the start of your next turn.\"\r\n};\r\nSpellsList[\"raulothim's psychic lance\"] = {\r\n\tname : \"Raulothim's Psychic Lance\",\r\n\tnameAlt : \"Psychic Lance\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea I see or can name 7d6+1d6/SL Psychic dmg \\u0026 incap. till start of my turn; save half, not incap.\",\r\n\tdescriptionShorter : \"1 crea I see or can name 7d6+1d6/SL Psychic dmg \\u0026 incap. for 1 rnd; save half, not incap.\",\r\n\tdescriptionFull : \"You unleash a shimmering lance of psychic power from your forehead at a creature that you can see within range. Alternatively, you can utter a creature's name. If the named target is within range, it becomes the spell's target even if you can't see it. If the named target isn't within range, the lance dissipates without effect.\"+\r\n\t\"\\n   The target must make an Intelligence saving throw. On a failed save, the target takes 7d6 psychic damage and is incapacitated until the start of your next turn. On a successful save, the creature takes half as much damage and isn't incapacitated.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d6 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"rime's binding ice\"] = { // Icingdeath's Frost in UA:DO\r\n\tname : \"Rime's Binding Ice\",\r\n\tnameAlt : \"Binding Ice\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21], [\"UA:DO\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A vial of meltwater\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"All in area 3d8+1d8/SL Cold dmg and speed 0 for 1 min until 1 a to undo; save halves, normal speed\",\r\n\tdescriptionShorter : \"All in area 3d8+1d8/SL Cold dmg \\u0026 spd 0 for 1 min until 1 a to undo; save halves, normal spd\",\r\n\tdescriptionFull : \"A burst of cold energy emanates from you in a 30-foot cone. Each creature in that area must make a Constitution saving throw. On a failed save, a creature takes 3d8 cold damage and is hindered by ice formations for 1 minute, or until it or another creature within reach of it uses an action to break away the ice. A creature hindered by ice has its speed reduced to 0. On a successful save, a creature takes half as much damage and isn't hindered by ice.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, increase the cold damage by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"summon draconic spirit\"] = {\r\n\tname : \"Summon Draconic Spirit\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21], [\"UA:DO\", 7]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"an object with the image of a dragon engraved on it, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Draconic Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (500gp)\",\r\n\tdescriptionFull : \"You call forth a draconic spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Draconic Spirit stat block. When you cast this spell, choose a family of dragon: chromatic, gem, or metallic. The creature resembles a dragon of the chosen family, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\"+\r\n\t\"\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"amethyst lodestone\"] = {\r\n\tname : \"Amethyst Lodestone\",\r\n\tsource : [[\"FToD\", 22]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This \" + (typePF ? \"\" : \"mineral \") + \"grants me adv. on Str saves. It has 6 charges, regain\" + (typePF ? \"s\" : \"ing\") + \" 1d6 at dawn.\"+\r\n\t\t(typePF ? \" \" : \"\\n\") + \"\\u2022 1 charge, bonus action: I gain a fly speed equal to walk speed for 10 min and I can hover.\"+\r\n\t\t(typePF ? \" \\u2022 1 charge, action: a creature I can see in 60 ft makes DC 18 Str save or pushed 20 ft in chosen direction.\" : \"\\n\\u2022 1 charge, action: a creature I can see in 60 ft must make a DC 18 Str save or be pushed up to 20 ft in a direction of my choice.\")+\r\n\t\t\" \\u2022 3 charges, action: I cast Reverse Gravity (DC 18).\",\r\n\tdescriptionFull : \"This fist-sized chunk of amethyst is infused with an amethyst dragon's ability to bend gravitational forces. While you are carrying the lodestone, you have advantage on Strength saving throws.\"+\r\n\t\"\\n   The lodestone has 6 charges for the following properties, which you can use while you are holding the stone. The stone regains 1d6 expended charges daily at dawn.\"+\r\n\t\"\\n   \" + toUni(\"Flight\") + \". As a bonus action, you can expend 1 charge to gain the power of flight for 10 minutes. For the duration, you gain a flying speed equal to your walking speed, and you can hover.\"+\r\n\t\"\\n   \" + toUni(\"Gravitational Thrust\") + \". As an action, you can expend 1 charge to focus gravity around a creature you can see within 60 feet of you. The target must succeed on a DC 18 Strength saving throw or be pushed up to 20 feet in a direction of your choice.\"+\r\n\t\"\\n   \" + toUni(\"Reverse Gravity\") + \". As an action, you can expend 3 charges to cast reverse gravity from the stone (save DC 18).\",\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tfixedDC : 18,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"reverse gravity\"],\r\n\t\tselection : [\"reverse gravity\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tadvantages : [[\"Strength\", true]],\r\n\tsavetxt : { text : [\"Adv. on Str saves\"] },\r\n\taction : [[\"bonus action\", \" (Flight)\"], [\"action\", \" (Grav. Thrust)\"]]\r\n}\r\nMagicItemsList[\"crystal blade\"] = {\r\n\tname : \"Crystal Blade\",\r\n\tsource : [[\"FToD\", 22]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"This magic sword has 3 charges, regaining 1d3 at dawn. It deals an extra 1d8 radiant damage. When it does so to a creature, I can expend 1 charge to heal myself for the same amount. As a bonus action, I can have it start or stop shedding light: either 30 ft bright light and 30 ft dim, or only 10 ft dim.\",\r\n\tdescriptionFull : \"This magic sword's blade is fashioned from a horn or spine from a crystal dragon. When you hit with an attack roll using this sword, the target takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   The sword has 3 charges and regains 1d3 expended charges daily at dawn. When you hit a creature with an attack roll using the sword, you can expend 1 charge to regain a number of hit points equal to the extra radiant damage the sword dealt.\"+\r\n\t\"\\n   While you're holding the sword, you can use a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet, to cause it to shed dim light in a 10-foot radius, or to douse the light.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\titemName1stPage : [\"suffix\", \"Crystal Bladed\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/\\bcrystal bladed?\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d8 radiant damage; 1 charge to heal';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Crystal Blade\" or \"Crystal Bladed\" in a the name of a sword, it will be treated as the magic weapon Crystal Blade. The sword deals an extra 1d8 radiant damage and when it does so, I can expend 1 of its charges to heal me for the same amount.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"dragonhide belt, +1, +2, or +3\"] = {\r\n\tname : \"Dragonhide Belt, +1, +2, or +3\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a bonus to the save DCs of my ki features determined by its rarity: uncommon (+1), rare (+2), or very rare (+3). As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. I can't use this action again until the next dawn.\",\r\n\tdescriptionFull : \"This finely detailed belt is made of dragonhide. While wearing it, you gain a bonus to the saving throw DCs of your ki features. The bonus is determined by the belt's rarity: uncommon (+1), rare (+2), or very rare (+3). In addition, you can use an action to regain ki points equal to a roll of your Martial Arts die. You can't use this action again until the next dawn.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a monk\",\r\n\tprereqeval : function(v) { return classes.known.monk ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regain ki points\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"+1 to ki save DCs (uncommon)\", \"+2 to ki save DCs (rare)\", \"+3 to ki save DCs (very rare)\"],\r\n\t\"+1 to ki save dcs (uncommon)\" : {\r\n\t\tname : \"Dragonhide Belt +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +1 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 1, text : \"I gain a +1 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +1 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to ki save dcs (rare)\" : {\r\n\t\tname : \"Dragonhide Belt +2\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +2 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 2, text : \"I gain a +2 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +2 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to ki save dcs (very rare)\" : {\r\n\t\tname : \"Dragonhide Belt +3\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +3 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 3, text : \"I gain a +3 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +3 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"dragonlance\"] = {\r\n\tname : \"Dragonlance\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"weapon (lance or pike)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\tdescriptionFull : \"A dragonlance is a renowned weapon forged from rare metal with the aid of powerful artifacts associated with Bahamut. Different lances are forged for use by foot soldiers (as pikes) and by riders (as lances), but the magical properties of the weapons are the same.\"+\r\n\t\"\\n   You gain a +3 bonus to attack and damage rolls made with this magic weapon.\"+\r\n\t\"\\n   When you hit a Dragon with this weapon, the Dragon takes an extra 3d6 force damage, and any Dragon of your choice that you can see within 30 feet of you can immediately use its reaction to make a melee attack.\",\r\n\tchoices : [\"A lance for riders\", \"A pike for foot soldiers\"],\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\t\"a lance for riders\" : {\r\n\t\tname : \"Dragonlance (for riders)\",\r\n\t\tdescription : \"This magic lance forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"lance\",\r\n\t\t\tregExpSearch : /dragonlance/i,\r\n\t\t\tname : \"Dragonlance\",\r\n\t\t\tsource : [[\"FToD\", 23]],\r\n\t\t\tdescription : \"Reach, disadv. within 5 ft, two-handed if not mounted; +3d6 force damage vs. dragons\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"a pike for foot soldiers\" : {\r\n\t\tname : \"Dragonlance (for foot soldiers)\",\r\n\t\tdescription : \"This magic pike forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"pike\",\r\n\t\t\tregExpSearch : /^(?=.*dragonlance)(?=.*pike).*$/i,\r\n\t\t\tname : \"Dragonlance (pike)\",\r\n\t\t\tsource : [[\"FToD\", 23]],\r\n\t\t\tdescription : \"Heavy, reach, two-handed; +3d6 force damage vs. dragons\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"dragon wing bow\"] = function () {\r\n\tvar obj = {\r\n\t\tname : \"Dragon Wing Bow\",\r\n\t\tsource : [[\"FToD\", 23]],\r\n\t\ttype : \"weapon (any bow)\",\r\n\t\trarity : \"rare\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This magic bow has limb tips shaped like dragon wings and is infused with the essence of a dragon's breath. Attacks made with it deal an extra 1d6 damage of the dragon's type. When I pull back the string without ammo loaded in it, the weapon creates its own that lasts until it hits or misses a target.\",\r\n\t\tdescriptionFull : \"The limb tips of this magic bow are shaped like a dragon's wings, and the weapon is infused with the essence of a chromatic, gem, or metallic dragon's breath. When you hit with an attack roll using this magic bow, the target takes an extra 1d6 damage of the same type as the breath infused in the bow\\u2014acid, cold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder.\"+\r\n\t\t\"\\n   If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you pull back the string. The ammunition created by the bow vanishes the instant after it hits or misses a target.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"bow\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\tvar testRegex = /bow/i;\r\n\t\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon || !v.isRangedWeapon || !/bow/i.test(v.baseWeaponName) || !/\\bdragon wing\\b/i.test(v.WeaponTextName)) return;\r\n\t\t\t\t\tvar oBowUse = false;\r\n\t\t\t\t\tfor (var i = 0; i < CurrentMagicItems.known.length; i++) {\r\n\t\t\t\t\t\tif (CurrentMagicItems.known[i] !== \"dragon wing bow\") continue;\r\n\t\t\t\t\t\tvar oBow = MagicItemsList[\"dragon wing bow\"][CurrentMagicItems.choices[i]];\r\n\t\t\t\t\t\t// see if this one matches\r\n\t\t\t\t\t\tif (oBow && oBow.dragonWingBowDragonType && v.WeaponTextName.toLowerCase().indexOf(oBow.dragonWingBowDragonType) !== -1) oBowUse = oBow;\r\n\t\t\t\t\t\t// save the first one found in case none match(ed)\r\n\t\t\t\t\t\tif (oBowUse === false) oBowUse = oBow;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (oBowUse) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 ' + oBowUse.dragonWingBowDmgType + ' damage; Creates own ammo';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Dragon Wing\" and a dragon type in the name of a bow, it will be treated as the magic weapon Dragon Wing Bow. The bow deals an extra 1d6 damage of the type of its associated dragon. It also requires no ammunition, creating its own if fired without loading ammunition.'\r\n\t\t\t]\r\n\t\t},\r\n\t\tchoices : [],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true\r\n\t};\r\n\tvar aDragons = [[\"Black\", \"acid\"], [\"Blue\", \"lightning\"], [\"Green\", \"poison\"], [\"Red\", \"fire\"], [\"White\", \"cold\"], [\"Amethyst\", \"force\"], [\"Crystal\", \"radiant\"], [\"Emerald\", \"psychic\"], [\"Sapphire\", \"thunder\"], [\"Topaz\", \"necrotic\"], [\"Brass\", \"fire\"], [\"Bronze\", \"lightning\"], [\"Copper\", \"acid\"], [\"Gold\", \"fire\"], [\"Silver\", \"cold\"]];\r\n\tvar aVowels = [\"a\", \"e\"];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i][0];\r\n\t\tvar sDragonLC = sDragon.toLowerCase();\r\n\t\tvar sDmg = aDragons[i][1];\r\n\t\tvar sNameTest = sDragon + \" Dragon Wing\";\r\n\t\tvar sNameFull = sNameTest + \" Bow\";\r\n\t\tvar sNameChoice = sDragon + \" dragon (\" + sDmg + \")\";\r\n\t\tvar sAorAn = aVowels.indexOf(sDragon[0].toLowerCase()) === -1 ? \"a \" : \"an \";\r\n\t\tobj.choices.push(sNameChoice);\r\n\t\tobj[sNameChoice.toLowerCase()] = {\r\n\t\t\tname : sNameFull,\r\n\t\t\tnameTest : sNameTest,\r\n\t\t\tdescription : \"This magic bow has limb tips shaped like dragon wings and is infused with the essence of \" + sAorAn + sDragonLC + \" dragon's breath. Attacks made with it deal an extra 1d6 \" + sDmg + \" damage. When I pull back the string without ammunition loaded in it, the weapon creates its own that lasts until it hits or misses a target.\",\r\n\t\t\tdragonWingBowDmgType : sDmg,\r\n\t\t\tdragonWingBowDragonType : sDragonLC\r\n\t\t}\r\n\t}\r\n\treturn obj;\r\n}();\r\nMagicItemsList[\"emerald pen\"] = {\r\n\tname : \"Emerald Pen\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"This pen is tipped with an emerald nib and requires no ink to write. While holding this pen, I can cast Illusory Script at will, requiring no material components.\",\r\n\tdescriptionFull : \"This pen is tipped with an emerald nib and requires no ink to write. While holding this pen, you can cast illusory script at will, requiring no material components.\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"illusory script\"],\r\n\t\tselection : [\"illusory script\"],\r\n\t\tfirstCol : \"atwill\",\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"illusory script\" : {\r\n\t\t\tritual : false,\r\n\t\t\tchanges : \"Using the Emerald Pen, I can cast Illusory Script at will without requiring material components. Thus, the Ritual tag is removed.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"flail of tiamat\"] = {\r\n\tname : \"Flail of Tiamat\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"weapon (flail)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical flail adds a +3 bonus to its attack and damage rolls and deals +5d4 damage. As an action once per dawn, I can have it breathe flames in a 90-ft cone that deals 14d6 damage, Dex save DC 18 to halve. Damage type is acid, cold, fire, lightning, or poison, which I can choose when I deal the damage (cone or hit).\",\r\n\tdescriptionFull : \"This magic flail is made in the image of Tiamat, with five jagged heads shaped like the heads of five different chromatic dragons. You gain a +3 bonus to attack and damage rolls made with this flail. When you hit with an attack roll using it, the target takes an extra 5d4 damage of your choice of one of the following damage types: acid, cold, fire, lightning, or poison.\"+\r\n\t\"\\n   While holding the flail, you can use an action and speak a command word to cause the heads to breathe multicolored flames in a 90-foot cone. Each creature in that area must make a DC 18 Dexterity saving throw. On a failed save, it takes 14d6 damage of one of the following damage types (your choice): acid, cold, fire, lightning, or poison. On a successful save, it takes half as much damage. Once this action is used, it can't be used again until the next dawn.\",\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Breathe Flames\",\r\n\taction : [[\"action\", \" (Breathe Flames)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*flail)(?=.*tiamat).*$/i,\r\n\t\tname : \"Flail of Tiamat\",\r\n\t\tsource : [[\"FToD\", 23]],\r\n\t\tdescription : \"+5d4 acid, cold, fire, lightning, or poison damage\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nAddFeatureChoice(MagicItemsList[\"figurine of wondrous power\"], false, \"Gold Canary\", {\r\n\tsource : [[\"FToD\", 23]],\r\n\trarity : \"legendary\",\r\n\tdescription : \"As an action, I can speak the command word and throw this statuette to an empty space within 60 ft, where it becomes a giant canary for 8 hours (or once a year an adult gold dragon for 1 hour), until I use the command again, or it drops to 0 hp. It is friendly, understands my languages, and obeys my commands.\",\r\n\tdescriptionLong : \"As an action, I can speak the command word and throw this gold statuette of a canary to an unoccupied space within 60 ft, where it becomes a giant canary for up to 8 hours, until I use an action to repeat the command word, or it reaches 0 HP. It is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. Once per year, I can have it become an adult gold dragon for up to 1 hour. When it reverts back to a figurine, it can't be used again until the next dawn (canary) or 1 year has passed (dragon).\",\r\n\tdescriptionFull : \"This gold statuette is carved in the likeness of a canary and is small enough to fit in a pocket. If you use an action to speak the command word and throw the figurine to a point on the ground within 60 feet of you, the figurine becomes a living creature in one of two forms (you choose). If there isn't enough space for the creature where it would appear, the figurine doesn't become a creature. The two forms are as follows:\"+\r\n\t\"\\n   \" + toUni(\"Giant Canary Form\") + \". The figurine becomes a giant canary for up to 8 hours and can be ridden as a mount. Once the figurine has become a giant canary, it can't be used this way again until the next dawn.\"+\r\n\t\"\\n   \" + toUni(\"Gold Dragon Form\") + \". While you are missing half or more of your hit points, you can speak a different command word and the figurine becomes an adult gold dragon (see its stat block in the Monster Manual) for up to 1 hour. The dragon can't use any legendary actions or lair actions. Once the figurine has become an adult gold dragon, it can't be used this way again until 1 year has passed.\"+\r\n\t\"\\n   In either form, the creature is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the creature defends itself but takes no other actions.\"+\r\n\t\"\\n   The creature exists for a duration specific to each form. At the end of the duration, the creature reverts to its figurine form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature becomes a figurine again, its property can't be used again until a certain amount of time has passed, as specified in the description.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Gold Canary Figurine [canary form]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Gold Canary Figurine [dragon form]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"1 year\"\r\n\t}]\r\n}, false, true);\r\nMagicItemsList[\"platinum scarf\"] = {\r\n\tname : \"Platinum Scarf\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can pull a scale from this scarf, of which it has 3 per dawn. When I do so, I can choose the effect: heal 10d4 HP to a creature I touch, or for 1 hour it becomes a shield (+1 shield that grants radiant damage immunity) or a light hammer (deals 2d4 radiant damage and +2d4 to chromatic dragons).\",\r\n\tdescriptionFull : \"This scarf is made of sturdy cloth and covered in platinum-colored scales.\"+\r\n\t\"\\n   As an action, you can pull a scale from the scarf and speak a command word. When you do so, choose one of the following effects:\"+\r\n\t\"\\n   \" + toUni(\"Breath of Life\") + \". The scale disappears, and you or a creature you touch regains 10d4 hit points.\"+\r\n\t\"\\n   \" + toUni(\"Platinum Shield\") + \". For 1 hour or until you dismiss it (no action required), the scale becomes a +1 shield, which you or another creature can use. A creature wielding the shield has immunity to radiant damage.\"+\r\n\t\"\\n   \" + toUni(\"Radiant Hammer\") + \". For 1 hour or until you dismiss it (no action required), the scale becomes a magic light hammer, which you or another creature can use. The weapon deals 2d4 radiant damage, instead of the bludgeoning damage normal for a light hammer. It deals an extra 2d4 radiant damage to chromatic dragons.\"+\r\n\t\"\\n   Once three scales have been pulled from the scarf, no more scales can be removed until the next dawn, when all the missing scales grow back. If you pull off a scale but don't speak a command word, it disappears after 1 minute.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"light hammer\",\r\n\t\tregExpSearch : /^(?=.*platinum scarf)(?=.*radiant hammer).*$/i,\r\n\t\tname : \"Platinum Scarf's Radiant Hammer\",\r\n\t\tdamage : [2, 4, \"radiant\"],\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\tdescription : \"Light, thrown; +2d4 damage vs. chromatic dragons\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"potion of dragon's majesty\"] = function () { // NOG AFMAKEN!!!!\r\n\tvar obj = {\r\n\t\tname : \"Potion of Dragon's Majesty\",\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\ttype : \"potion\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to transform into an adult dragon for 1 hour. They can't use Change Shape, legendary actions, or lair actions. They retain languages, personality, and memories, but their equipment melds into the form or falls to the ground (their choice).\",\r\n\t\tdescriptionFull : \"This potion looks like liquid gold, with a single scale from a chromatic, gem, or metallic dragon suspended in it. When you drink this potion, you transform into an adult dragon of the same kind as the dragon the scale came from. The transformation lasts for 1 hour. Any equipment you are wearing or carrying melds into your new form or falls to the ground (your choice). For the duration, you use the game statistics of the adult dragon instead of your own, but you retain your languages, personality, and memories. You can't use a dragon's Change Shape or its legendary or lair actions.\",\r\n\t\tweight : 0.5,\r\n\t\tchoices : [],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true\r\n\t}\r\n\tvar aDragons = [\"Black\", \"Blue\", \"Green\", \"Red\", \"White\", \"Amethyst\", \"Crystal\", \"Emerald\", \"Sapphire\", \"Topaz\", \"Brass\", \"Bronze\", \"Copper\", \"Gold\", \"Silver\"];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i];\r\n\t\tvar sNameChoice = sDragon + \" Dragon\";\r\n\t\tobj.choices.push(sNameChoice);\r\n\t\tobj[sNameChoice.toLowerCase()] = {\r\n\t\t\tname : \"Potion of \" + sDragon + \" Dragon's Majesty\",\r\n\t\t\tdescription : \"Once as an action, I can drink this potion or administer it to transform into an adult \" + sDragon.toLowerCase() + \" dragon for 1 hour. They can't use Change Shape, legendary actions, or lair actions. They retain languages, personality, and memories, but their equipment melds into the form or falls to the ground (their choice).\"\r\n\t\t}\r\n\t}\r\n\treturn obj;\r\n}();\r\nMagicItemsList[\"ruby weave gem\"] = {\r\n\tname : \"Ruby Weave Gem\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"While I hold this gem, I can use it as my spellcasting focus. It has 3 charges per dawn. When I cast a spell while holding it, I can use charges to ignore 500 gp per charge of components with a gp cost. When I finish a long rest, I learn any one spell of a level I can cast until my next long rest. I can cast it using spell slots.\",\r\n\tdescriptionFull : \"While you are holding this gem, you can use it as a spellcasting focus for your spells.\"+\r\n\t\"\\n   The gem has 3 charges and regains all expended charges daily at dawn. When you cast a spell while holding this gem, you can expend up to 3 charges to ignore the spell's material components with a gold piece cost, up to 500 gp per charge expended.\"+\r\n\t\"\\n   When you finish a long rest, choose a spell from any class list. The spell you choose must be of a level you can cast. You know the chosen spell and can cast it with your spell slots of the appropriate level until the end of your next long rest.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Any one spell per LR, so\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}, {\r\n\t\tname : \"add as many as needed\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}, {\r\n\t\tname : \"to have some choices.\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}]\r\n}\r\nMagicItemsList[\"sapphire buckler\"] = {\r\n\tname : \"Sapphire Buckler\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"shield\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"While I wield this crystalline blue shield, I have resistance to psychic and thunder damage. As a reaction when I take damage from a creature within 5 ft, I can deal it 2d6 thunder damage. As an action once per dawn, I can use it to know the direction of all aberrations within 1 mile until the end of my next turn.\",\r\n\tdescriptionFull : \"This crystalline blue shield is fashioned from a sapphire dragon's scale and is created to aid in rooting out the influence of Aberrations. While wielding the shield, you have resistance to psychic and thunder damage. Also, when you take damage from a creature that is within 5 feet of you, you can use your reaction to deal 2d6 thunder damage to that creature.\"+\r\n\t\"\\n   As an action, you can use the shield to help you locate Aberrations until the end of your next turn. If any Aberrations are within 1 mile of you, the shield emits a low humming tone for a moment, and you know the direction of all Aberrations within that range. Once this property is used, it can't be used again until the next dawn.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Sapphire Buckler\",\r\n\tdmgres : [\"Psychic\", \"Thunder\"],\r\n\taction : [[\"reaction\", \" (damaged in melee)\"], [\"action\", \" (locate aberrations)\"]]\r\n}\r\nMagicItemsList[\"topaz annihilator\"] = {\r\n\tname : \"Topaz Annihilator\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"weapon (firearm)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical firearm deals 2d6 necrotic damage on a hit. It has the two-handed property, requires no ammunition, 100 ft short range, and 300 ft long range. Targets reduced to 0 HP by it turn to dust and only True Resurrection or Wish can restore them to life. Once per dawn, I can use it to cast Disintegrate (DC 18).\",\r\n\tdescriptionFull : \"This magic ranged weapon resembles a musket, but in lieu of any ammunition, it holds a glowing yellow scale from a topaz dragon in its heart.\"+\r\n\t\"\\n   The weapon has a normal range of 100 feet and a long range of 300 feet, and it has the two-handed property. It deals 2d6 necrotic damage on a hit. If this damage reduces a creature or object to 0 hit points, the target is reduced to dust. A creature reduced to dust can be restored to life only by a true resurrection or wish spell.\"+\r\n\t\"\\n   While the weapon is on your person, you can use an action to cast the disintegrate spell (save DC 18). Once this property is used, it can't be used again until the next dawn.\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*Topaz)(?=.*tiamat).*$/i,\r\n\t\tname : \"Topaz Annihilator\",\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\tability : 2,\r\n\t\ttype : \"firearm\",\r\n\t\tdamage : [2, 6, \"necrotic\"],\r\n\t\trange : \"100/300 ft\",\r\n\t\tweight : 10,\r\n\t\tdescription : \"Two-handed; Targets reduced to 0 HP turn to dust\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Disintegrate\",\r\n\tfixedDC : 18,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"disintegrate\"],\r\n\t\tselection : [\"disintegrate\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n}\r\nvar FToD_HoardItems = {\r\n\t\"dragon's wrath weapon\" : [\r\n\t\t\"This weapon is decorated with dragon heads, claws, wings, scales, or Draconic letters. When it steeps in a dragon's hoard, it absorbs the energy of the dragon's breath weapon and deals damage of that type with its special properties.\",\r\n\t\t\">>Slumbering (Uncommon)<<. Whenever you roll a 20 on your attack roll with this weapon, each creature of your choice within 5 feet of the target takes 5 damage of the type dealt by the dragon's breath weapon.\",\r\n\t\t\">>Stirring (Rare)<<. The Stirring weapon has the Slumbering property. In addition, you gain a +1 bonus to attack and damage rolls made using the weapon. On a hit, the weapon deals an extra 1d6 damage of the type dealt by the dragon's breath weapon.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened weapon has the Slumbering property, and it improves on the Stirring property. The bonus to attack and damage rolls increases to +2, and the extra damage dealt by the weapon increases to 2d6.\",\r\n\t\t\"As an action, you can unleash a 30-foot cone of destructive energy from the weapon. Each creature in that area must make a DC 16 Dexterity saving throw, taking 8d6 damage of the type dealt by the dragon's breath weapon on a failed save, or half as much damage on a successful one. Once this action is used, it can't be used again until the next dawn.\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant weapon has the Slumbering property, and it improves on the Stirring and Wakened properties. The bonus to attack and damage rolls increases to +3, and the extra damage dealt by the weapon increases to 3d6.\",\r\n\t\t\"The cone of destructive energy the weapon creates increases to a 60-foot cone, the save DC increases to 18, and the damage increases to 12d6.\"\r\n\t],\r\n\t\"dww-slumbering\" : {\r\n\t\tdescription : \"This magic weapon decorated with draconic ornaments has absorbed the energy of >>a dragon<< dragon's breath weapon. Whenever I roll a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 >>dmg type<< damage.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*slumbering)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Slumbering\\\" in the name of a weapon, it will be treated as the magic item Slumbering Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (slumbering)\\\"). Whenever I roll a 20 on an attack roll with a slumbering dragon's wrath weapon, each creature of my choice within 5 ft of the target takes 5 damage of the associated dragon's type. \"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"dww-stirring\" : {\r\n\t\tdescription : \"This dragon decorated weapon has absorbed the energy of >>a dragon<< dragon's breath weapon. I add +1 on attack and damage rolls made with it and it deals +1d6 >>dmg type<< damage. When I roll a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 >>dmg type<< damage.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*stirring)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Stirring\\\" in the name of a weapon, it will be treated as the magic item Stirring Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (stirring)\\\"). A stirring dragon's wrath weapon adds +1 to attack and damage rolls made with it. On a hit, the weapon deals an extra +1d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*stirring)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"dww-wakened\" : {\r\n\t\tdescription : \"This weapon uses >>dmg type<< of >>a dragon<< dragon. It adds +2 to its attack and damage rolls and deals +2d6 >>dmg type<< damage. On a 20 to hit, any creature of my choice in 5 ft of the target take 5 damage. As an action once per dawn, it can do a 30-ft cone, Dex DC 16 half, 8d6 damage dragon breath.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*wakened)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Wakened\\\" in the name of a weapon, it will be treated as the magic item Wakened Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (wakened)\\\"). A wakened dragon wrath weapon adds +2 to attack and damage rolls made with it. On a hit, the weapon deals an extra +2d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*wakened)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t},\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tlimfeaname : \">>dragon<< Dragon's Wrath Breath (wakened)\",\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : \"^(?=.*wakened)(?=.*>>dragon<< (dragon'?s? wrath|DW))(?=.*breath).*$\",\r\n\t\t\tname : \">>dragon<< Dragon's Wrath Breath (wakened)\",\r\n\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\tability : 0,\r\n\t\t\ttype : \"Magic Item\",\r\n\t\t\tdamage : [8, 6, \">>type<<\"],\r\n\t\t\trange : \"30-ft cone\",\r\n\t\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tdc : true,\r\n\t\t\tmodifiers : [8, \"\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"dww-ascendant\" : {\r\n\t\tdescription : \"This weapon uses >>dmg type<< of >>a dragon<< dragon. It adds +3 to its attack and damage rolls and deals +3d6 >>dmg type<< damage. On a 20 to hit, any creature of my choice in 5 ft of the target take 5 damage. As an action once per dawn, it can do a 60-ft cone, Dex DC 18 half, 12d6 damage dragon breath.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*ascendant)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+3d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Ascendant\\\" in the name of a weapon, it will be treated as the magic item Ascendant Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (ascendant)\\\"). An ascendant dragon wrath weapon adds +3 to attack and damage rolls made with it. On a hit, the weapon deals an extra +3d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*ascendant)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t},\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tlimfeaname : \">>dragon<< Dragon's Wrath Breath (ascendant)\",\r\n\t\taction : [[\"action\", \"Dragon's Wrath Breath Weapon\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : \"^(?=.*ascendant)(?=.*>>dragon<< (dragon'?s? wrath|DW))(?=.*breath).*$\",\r\n\t\t\tname : \">>dragon<< Dragon's Wrath Breath (ascendant)\",\r\n\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\tability : 0,\r\n\t\t\ttype : \"Magic Item\",\r\n\t\t\tdamage : [12, 6, \">>type<<\"],\r\n\t\t\trange : \"60-ft cone\",\r\n\t\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tdc : true,\r\n\t\t\tmodifiers : [10, \"\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\tdragonsWrathWeaponCreate : function() {\r\n\t\tvar aTypes = [[\"Slumbering\", \"uncommon\"], [\"Stirring\", \"rare\"], [\"Wakened\", \"very rare\"], [\"Ascendant\", \"legendary\"]];\r\n\t\tvar aDragons = [[\"Black\", \"acid\"], [\"Blue\", \"lightning\"], [\"Green\", \"poison\"], [\"Red\", \"fire\"], [\"White\", \"cold\"], [\"Amethyst\", \"force\"], [\"Crystal\", \"radiant\"], [\"Emerald\", \"psychic\"], [\"Sapphire\", \"thunder\"], [\"Topaz\", \"necrotic\"], [\"Brass\", \"fire\"], [\"Bronze\", \"lightning\"], [\"Copper\", \"acid\"], [\"Gold\", \"fire\"], [\"Silver\", \"cold\"]];\r\n\t\tvar aVowels = [\"a\", \"e\"];\r\n\t\tvar sDescriptionFull = FToD_HoardItems[\"dragon's wrath weapon\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); });\r\n\t\tvar sNotesDescription = FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon's wrath weapon\"]);\r\n\t\tfor (var t = 0; t < aTypes.length; t++) {\r\n\t\t\tvar sItemType = aTypes[t][0];\r\n\t\t\tvar sItemTypeLC = sItemType.toLowerCase();\r\n\t\t\tvar sItemName = \"Dragon's Wrath Weapon (\" + sItemTypeLC + \")\";\r\n\t\t\tvar sItemNameLC = sItemName.toLowerCase();\r\n\t\t\tvar oDwwObj = FToD_HoardItems[\"dww-\"+sItemTypeLC];\r\n\t\t\tMagicItemsList[sItemNameLC] = {\r\n\t\t\t\tname : sItemName,\r\n\t\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\t\ttype : \"weapon (any)\",\r\n\t\t\t\trarity : aTypes[t][1],\r\n\t\t\t\tattunement : true,\r\n\t\t\t\tdescription : oDwwObj.description.replace(/>>a dragon<</ig, \"a\").replace(/>>dmg type<< /ig, \"\"),\r\n\t\t\t\tdescriptionFull : sDescriptionFull,\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Full Text\",\r\n\t\t\t\t\tnote : sNotesDescription\r\n\t\t\t\t}],\r\n\t\t\t\tallowDuplicates : true,\r\n\t\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\tchoices : []\r\n\t\t\t}\r\n\t\t\tfor (var sAttr in oDwwObj) {\r\n\t\t\t\tif (/^(description|weaponOptions|limfeaname)$/.test(sAttr)) continue;\r\n\t\t\t\tMagicItemsList[sItemNameLC][sAttr] = oDwwObj[sAttr];\r\n\t\t\t}\r\n\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\tvar sDragon = aDragons[i][0];\r\n\t\t\t\tvar sDragonLC = sDragon.toLowerCase();\r\n\t\t\t\tvar sDmg = aDragons[i][1];\r\n\t\t\t\tvar sNameChoice = sDragon + \" dragon (\" + sDmg + \")\";\r\n\t\t\t\tvar sNameChoiceLC = sNameChoice.toLowerCase();\r\n\t\t\t\tvar sNameTest = sItemType + \" \" + sDragon + \" Dragon's Wrath\";\r\n\t\t\t\tvar sAorAnDragon = (aVowels.indexOf(sDragonLC[0]) === -1 ? \"a \" : \"an \") + sDragonLC;\r\n\t\t\t\tMagicItemsList[sItemNameLC].choices.push(sNameChoice);\r\n\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC] = {\r\n\t\t\t\t\tname : sNameTest + \" Weapon\",\r\n\t\t\t\t\tnameTest : sNameTest,\r\n\t\t\t\t\tdescription : oDwwObj.description.replace(/>>a dragon<</ig, sAorAnDragon).replace(/>>dmg type<</ig, sDmg),\r\n\t\t\t\t\tchooseGear : {\r\n\t\t\t\t\t\ttype : \"weapon\",\r\n\t\t\t\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\t\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\t\t\t\titemName1stPage : [\"between\", sDragon + \" Dragon's Wrath\", \"(\" + sItemTypeLC + \")\"]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (oDwwObj.limfeaname) {\r\n\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].limfeaname = [oDwwObj.limfeaname.replace(/>>dragon<</ig, sDragon)]\r\n\t\t\t\t}\r\n\t\t\t\tif (oDwwObj.weaponOptions) {\r\n\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].weaponOptions = [{}];\r\n\t\t\t\t\tfor (var sAttr in oDwwObj.weaponOptions[0]) {\r\n\t\t\t\t\t\tvar toSet = oDwwObj.weaponOptions[0][sAttr];\r\n\t\t\t\t\t\tswitch (sAttr) {\r\n\t\t\t\t\t\t\tcase \"regExpSearch\":\r\n\t\t\t\t\t\t\t\ttoSet = RegExp(toSet.replace(/>>dragon<</ig, sDragonLC), \"i\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\ttoSet = toSet.replace(/>>dragon<</ig, sDragon);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"damage\":\r\n\t\t\t\t\t\t\t\ttoSet = [toSet[0], toSet[1], sDmg];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].weaponOptions[0][sAttr] = toSet;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"dragon-touched focus\" : [\r\n\t\t\"This wondrous item can be a scepter, an orb, an amulet, a crystal, or another finely crafted object. It typically incorporates imagery of dragons' wings, claws, teeth, or scales.\",\r\n\t\t\">>Slumbering (Uncommon)<<. You have advantage on initiative rolls. While you are holding the focus, it can function as a spellcasting focus for all your spells.\",\r\n\t\t\">>Stirring (Rare)<<. The Stirring focus has the Slumbering property, and it gains an additional property determined by the family of the dragon in whose hoard it became Stirring:\",\r\n\t\t\"\\u2022 Chromatic. Whenever you use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, roll a d6, and you gain a bonus equal to the number rolled to one of the spell's damage rolls.\",\r\n\t\t\"\\u2022 Gem. Whenever you use a spell slot to cast a spell, you can immediately teleport to an unoccupied space you can see within 15 feet of you.\",\r\n\t\t\"\\u2022 Metallic. When a creature you can see within 30 feet of you makes a saving throw, you can use your reaction to give that creature advantage on the saving throw.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened focus has the Slumbering and Stirring properties, and while you are holding a Wakened focus, you can use it to cast certain spells. Once the item is used to cast a given spell, it can't be used to cast that spell again until the next dawn. The spells are determined by the family of the dragon in whose hoard it became Wakened. An asterisk indicates a new spell that appears earlier in this chapter.\",\r\n\t\t\"\\u2022 Chromatic. Hold monster, Rime's binding ice\",\r\n\t\t\"\\u2022 Gem. Rary's telepathic bond, Raulothim's psychic lance\",\r\n\t\t\"\\u2022 Metallic. Fizban's platinum shield, legend lore\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant focus has the Slumbering, Stirring, and Wakened properties. In addition, when you cast a spell of 1st level or higher while holding this focus, you can treat the spell as if it were cast using a 9th-level spell slot. Once this property is used, it can't be used again until the next dawn.\"\r\n\t],\r\n\tdtf_chromatic : {\r\n\t\tcalcChanges : {\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (CurrentSpells[spName].refType == \"class\" && !spellObj.psionic && spellObj.level !== 0 && (/(check|checked|marked)box/i.test(spellObj.firstCol) || (spName === \"warlock\" && !/atwill|sp/i.test(spellObj.firstCol)))) return genericSpellDmgEdit(spellKey, spellObj, \"acid|cold|fire|lightning|lightn\\\\.?|poison\", \"1d6\", true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"Whenever I use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, roll a d6, and I gain a bonus equal to the number rolled to one of the spell's damage rolls.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (Hold Monster)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (Rime's Binding Ice)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"hold monster\", \"rime's binding ice\"],\r\n\t\t\tselection : [\"hold monster\", \"rime's binding ice\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_gem : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (Rary's Telepathic Bond)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (R's Psychic Lance)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"rary's telepathic bond\", \"raulothim's psychic lance\"],\r\n\t\t\tselection : [\"rary's telepathic bond\", \"raulothim's psychic lance\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_metallic : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (F's Platinum Shield)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (Legend Lore)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"fizban's platinum shield\", \"legend lore\"],\r\n\t\t\tselection : [\"fizban's platinum shield\", \"legend lore\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_ascendant : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (upcast to 9th-level)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t},\r\n\t\"dragon vessel\" : [\r\n\t\t\"This vessel can be a potion bottle, drinking horn, or other container meant to hold a liquid.\",\r\n\t\t\">>Slumbering (Uncommon)<<. As a bonus action, if the vessel is empty, you can speak the command word to fill the vessel with one of the following (your choice): ale, olive oil, a potion of healing, or a potion of climbing. Once this property is used, it can't be used until the next dawn. A potion you create in this way loses its magical properties if it isn't imbibed within 24 hours.\",\r\n\t\t\">>Stirring (Rare)<<. In addition to the options for a Slumbering vessel, you can fill a Stirring vessel with mead, a potion of fire breath, or a potion of healing (greater).\",\r\n\t\t\">>Wakened (Very Rare)<<. In addition to the options for a Slumbering or Stirring vessel, you can fill a Wakened vessel with wine, a potion of flying, or a potion of healing (superior).\",\r\n\t\t\">>Ascendant (Legendary)<<. In addition to the options for other states, you can fill an Ascendant vessel with whiskey, a potion of healing (supreme), or a potion of dragon's majesty (described earlier in this chapter).\"\r\n\t],\r\n\t\"scaled ornament\" : [\r\n\t\t\"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes.\",\r\n\t\t\">>Slumbering (Uncommon)<<. You have advantage on saving throws you make to avoid being charmed or frightened or to end those conditions on you.\",\r\n\t\t\">>Stirring (Rare)<<. You gain a +1 bonus to AC, and you can't be charmed or frightened. Moreover, each creature of your choice within 30 feet of you has advantage on saving throws it makes to avoid being charmed or frightened or to end those conditions on itself.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened ornament has the Stirring property. In addition, when you would take damage of the type dealt by the breath of the dragon in whose hoard the ornament became Wakened, you can use your reaction to take no damage instead, and you regain hit points equal to the damage you would have taken. Once this property is used, it can't be used again until the next dawn.\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant ornament has the Stirring and Wakened properties. In addition, while you are wearing the ornament, you gain a flying speed equal to your walking speed and can hover. While you are flying using this speed, spectral dragon wings appear on your back.\"\r\n\t],\r\n\thoardMagicItems : [\r\n\t\t\"\\n\\n\\u25C6 Hoard Magic Items (FToD 25)\",\r\n\t\t\"Certain magic items can absorb the ambient magic of a dragon's hoard. The mightier the dragon, the more powerful the item becomes when it is steeped in the dragon's hoard. These items, called hoard items, have four states. A hoard item in its Slumbering state has certain base properties, and it gains additional properties when it enters the Stirring (young dragon), Wakened (adult dragon), or Ascendant (ancient dragon) state.\",\r\n\t\t\"Ordinarily, a hoard item must steep in a dragon's hoard for 1 year to reach the maximum possible state allowed by the age of the hoard's dragon. For example, a hoard item that steeps in an adult dragon's hoard for 1 year enters its Wakened state.\",\r\n\t\t\"When a dragon is slain, the magic surrounding its hoard becomes volatile. This allows a hoard item to steep more quickly in the hoard. A hoard item steeped in a dragon's hoard for 8 hours rises one state, as long as the steeping begins within 1 hour of the dragon's death and occurs within the dragon's lair. Steeping in this way can't raise the state of the item beyond the state associated with the dragon's age.\",\r\n\t\t\"Just as hoard items can grow in power by absorbing the ambient magic of a dragon's hoard, so too can these treasures fall back into slumber. If no creature is attuned to a hoard item and that item isn't in a dragon's hoard, the item decreases in power by one state every 30 days until it is Slumbering.\"\r\n\t].join(\"\\n   \"),\r\n\tto1stPerson : function (sDescr) {\r\n\t\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t\t.replace(/(by|of|to|for|on) I\\b|\\bI to|\\bI an?\\b/ig, \"$1 me\")\r\n\t\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\r\n\t\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t\t.replace(/   >>(.*?)( \\(.*?\\))?<<. /g, function(a, p1, p2) { return \"\\n   \" + p1.toUpperCase() + p2.toLowerCase() + \"\\n   \"; })+\r\n\t\t\tFToD_HoardItems.hoardMagicItems;\r\n\t}\r\n}\r\nFToD_HoardItems.dragonsWrathWeaponCreate();\r\nMagicItemsList[\"dragon-touched focus\"] = {\r\n\tname : \"Dragon-Touched Focus\",\r\n\tnameTest : /^(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\tsource : [[\"FToD\", 26]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"\",\r\n\tdescriptionFull : FToD_HoardItems[\"dragon-touched focus\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Full Text\",\r\n\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon-touched focus\"])\r\n\t}],\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tchoices : [\"Slumbering (uncommon)\", \"Stirring - Chromatic (rare)\", \"Stirring - Gem (rare)\", \"Stirring - Metallic (rare)\", \"Wakened - Chromatic (very rare)\",  \"Wakened - Gem (very rare)\",  \"Wakened - Metallic (very rare)\", \"Ascendant - Chromatic (legendary)\", \"Ascendant - Gem (legendary)\", \"Ascendant - Metallic (legendary)\"],\r\n\t\"slumbering (uncommon)\" : {\r\n\t\tname : \"Dragon-Touched Focus (slumbering)\",\r\n\t\tnameTest : /^(?=.*slumbering)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This wondrous item can be a scepter, an orb, an amulet, a crystal, or another finely crafted object. It typically incorporates imagery of dragons' wings, claws, teeth, or scales. It grants me advantage on initiative rolls. While I am holding the focus, it can function as a spellcasting focus for all my spells.\"\r\n\t},\r\n\t\"stirring - chromatic (rare)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of chromatic dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus and when I use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, I can add +1d6 to one of the spell's damage rolls.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges\r\n\t},\r\n\t\"stirring - gem (rare)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of gem dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus and when I use a spell slot to cast a spell I can immediately teleport to an unoccupied space I can see within 15 ft.\"\r\n\t},\r\n\t\"stirring - metallic (rare)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of metallic dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus. As a reaction when a creature I can see within 30 ft makes a saving throw, I can grant it advantage on that save.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]]\r\n\t},\r\n\t\"wakened - chromatic (very rare)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus and I can add +1d6 to one damage roll of spells I cast with a spell slot that deal acid, cold, fire, lightning, or poison damage. It also grants me advantage on initiative and allows me to cast Hold Monster and Rime's Binding Ice each once per dawn.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges,\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_chromatic.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_chromatic.extraLimitedFeatures\r\n\t},\r\n\t\"wakened - gem (very rare)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus and I can immediately teleport to an unoccupied space I can see within 15 ft when I cast a spell with a spell slot. It also grants me advantage on initiative and allows me to cast Rary's Telepathic Bond and Raulothim's Psychic Lance each once per dawn.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_gem.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_gem.extraLimitedFeatures\r\n\t},\r\n\t\"wakened - metallic (very rare)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus. As a reaction when a creature I can see within 30 ft makes a saving throw, I can grant it advantage on that save. It also grants me advantage on initiative and allows me to cast Fizban's Platinum Shield and Legend Lore each once per dawn.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_metallic.extraLimitedFeatures,\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_metallic.spellcastingBonus\r\n\t},\r\n\t\"ascendant - chromatic (legendary)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus and I can add 1d6 to a roll of acid, cold, fire, lightning, or poison damage for spells I cast with a spell slot. It grants me adv. on initiative and allows me to cast 2 spells once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges,\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_chromatic.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_chromatic.extraLimitedFeatures)\r\n\t},\r\n\t\"ascendant - gem (legendary)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus and I can teleport to an empty space I can see in 15 ft when I cast a spell with a spell slot. It also grants me adv. on initiative and allows me to cast 2 spells each once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_gem.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_gem.extraLimitedFeatures)\r\n\t},\r\n\t\"ascendant - metallic (legendary)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus. As a reaction when a creature I can see in 30 ft makes a save, I can grant it adv. on that save. It also grants me adv. on initiative and allows me to cast 2 spells each once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_metallic.extraLimitedFeatures,\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_metallic.spellcastingBonus)\r\n\t}\r\n}\r\nMagicItemsList[\"dragon vessel\"] = {\r\n\tname : \"Dragon Vessel\",\r\n\tsource : [[\"FToD\", 27]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one liquid of my choice. The list of options depends on the level and rarity of the item.\",\r\n\tdescriptionFull : FToD_HoardItems[\"dragon vessel\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Full Text\",\r\n\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon vessel\"])\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\tchoices : [\"Slumbering (uncommon)\", \"Stirring (rare)\", \"Wakened (very rare)\", \"Ascendant (legendary)\"],\r\n\t\"slumbering (uncommon)\" : {\r\n\t\tname : \"Dragon Vessel (slumbering)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one of the following of my choice:  ale, olive oil, a potion of healing, or a potion of climbing. A potion loses its magic if it is not consumed within 24 hours.\"\r\n\t},\r\n\t\"stirring (rare)\" : {\r\n\t\tname : \"Dragon Vessel (stirring)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one of the following of my choice:  ale, mead, olive oil, a potion of healing (normal or greater), or a potion of climbing. A potion loses its magic if it is not consumed within 24 hours.\"\r\n\t},\r\n\t\"wakened (very rare)\" : {\r\n\t\tname : \"Dragon Vessel (wakened)\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill it with one of the following of my choice:  ale, mead, wine, olive oil, a potion of healing (normal, greater, or superior), a potion of climbing, or a potion of flying. Unused potions lose their magic after 24 hours.\"\r\n\t},\r\n\t\"ascendant (legendary)\" : {\r\n\t\tname : \"Dragon Vessel (ascendant)\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"As a bonus action once per dawn, I can speak the command word to fill this empty vessel with one of my choice:  ale, mead, wine, whiskey, olive oil, a potion of healing (normal, greater, superior, or supreme), a potion of climbing, a potion of flying, or a potion of dragon's majesty. Potions lose magic after 24 hours.\"\r\n\t}\r\n}\r\nMagicItemsList[\"scaled ornament\"] = function (n) {\r\n\tvar obj = {\r\n\t\tname : \"Scaled Ornament\",\r\n\t\tsource : [[\"FToD\", 27]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes.\",\r\n\t\tdescriptionFull : FToD_HoardItems[\"scaled ornament\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Full Text\",\r\n\t\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"scaled ornament\"])\r\n\t\t}],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true,\r\n\t\tchoices : [\"Slumbering (uncommon)\", \"Stirring (rare)\"],\r\n\t\t\"slumbering (uncommon)\" : {\r\n\t\t\tname : \"Scaled Ornament (slumbering)\",\r\n\t\t\trarity : \"uncommon\",\r\n\t\t\tdescription : \"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes. It grants me advantage on saving throws to avoid being charmed or frightened and to end those conditions on myself.\",\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"stirring (rare)\" : {\r\n\t\t\tname : \"Scaled Ornament (stirring)\",\r\n\t\t\trarity : \"rare\",\r\n\t\t\tdescription : \"This ornament is fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes. It makes me immune to being charmed or frightened and grants my allies within 30 ft advantage on saves to avoid or end those conditions on themselves. It also gives me a +1 bonus to my AC.\",\r\n\t\t\tsavetxt : { immune : [\"charmed\", \"frightened\"] },\r\n\t\t\textraAC : [{\r\n\t\t\t\tmod : 1,\r\n\t\t\t\tname : \"Scaled Ornament\",\r\n\t\t\t\tmagic : true,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm attuned to the scaled ornament.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"wakened (very rare)\" : {\r\n\t\t\tname : \"Scaled Ornament (wakened)\",\r\n\t\t\trarity : \"very rare\",\r\n\t\t\tdescription : \"\"\r\n\t\t},\r\n\t\t\"ascendant (legendary)\" : {\r\n\t\t\tname : \"Scaled Ornament (ascendant)\",\r\n\t\t\trarity : \"legendary\",\r\n\t\t\tdescription : \"\"\r\n\t\t}\r\n\t};\r\n\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\tvar aChoicesNew = [[], []];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i][0];\r\n\t\tvar sDmg = aDragons[i][1];\r\n\t\tvar sWakenedChoice = \"Wakened - \" + sDragon + \" dragon - \" + sDmg + \" (very rare)\";\r\n\t\tvar sWakenedChoiceLC = sWakenedChoice.toLowerCase();\r\n\t\tvar sWakenedName = \"Scaled Ornament (\" + sDragon + \", wakened)\";\r\n\t\tvar sAscendantChoice = \"Ascendant - \" + sDragon + \" dragon - \" + sDmg + \" (very rare)\";\r\n\t\tvar sAscendantChoiceLC = sAscendantChoice.toLowerCase();\r\n\t\tvar sAscendantName = \"Scaled Ornament (\" + sDragon + \", ascendant)\";\r\n\t\taChoicesNew[0].push(sWakenedChoice);\r\n\t\taChoicesNew[1].push(sAscendantChoice);\r\n\t\tobj[sWakenedChoiceLC] = {\r\n\t\t\tname : sWakenedName,\r\n\t\t\trarity : \"very rare\",\r\n\t\t\tdescription : \"This wearable accessory makes me immune to being charmed or frightened and grants my allies within 30 ft adv. on saves vs. those conditions. It also gives me a +1 bonus to my AC. As a reaction once per dawn when I take \" + sDmg + \" damage, I can ignore that damage and heal for the same amount instead.\",\r\n\t\t\tsavetxt : obj[\"stirring (rare)\"].savetxt,\r\n\t\t\textraAC : obj[\"stirring (rare)\"].extraAC,\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Scaled Ornament (absorb \" + sDmg + \")\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"dawn\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"reaction\", \"Scaled Ornament (absorb \" + sDmg + \")\"]],\r\n\t\t}\r\n\t\tobj[sAscendantChoiceLC] = newObj(obj[sWakenedChoiceLC]);\r\n\t\tobj[sAscendantChoiceLC].name = sAscendantName;\r\n\t\tobj[sAscendantChoiceLC].rarity = \"legendary\";\r\n\t\tobj[sAscendantChoiceLC].description = \"This makes me immune to being charmed or frightened and my allies in 30 ft gain adv. on saves vs. those conditions. It also gives me +1 bonus to AC, a flying speed equal to my walking speed, and I can hover. As a reaction once per dawn when I take \" + sDmg + \" damage, I can ignore it and instead heal that amount.\";\r\n\t\tobj[sAscendantChoiceLC].speed = { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t}\r\n\tobj.choices = obj.choices.concat(aChoicesNew[0]).concat(aChoicesNew[1]);\r\n\treturn obj;\r\n}();\r\n\r\n// Creatures\r\nCreatureList[\"giant canary\"] = {\r\n\tname : \"Giant Canary\",\r\n\tnameAlt : [\"Canary, Giant\"],\r\n\tsource : [[\"FToD\", 23]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, fly 60 ft\",\r\n\tscores : [10, 14, 12, 2, 10, 6],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius)\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Peck\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 10, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"dragonnel\"] = { // Alternate for Find Greater Steed spell (contributed by Nod_Hero)\r\n\tname : \"Dragonnel\",\r\n\tsource : [[\"FToD\", 190]],\r\n\tsize : 2, //Large\r\n\ttype : \"Dragon\",\r\n\tcompanion : [\"steed_not_al\"],\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 58,\r\n\thd : [9, 10],\r\n\tspeed : \"30 ft, fly 60 ft\",\r\n\tscores : [16, 15, 12, 8, 13, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Blindsight 30 ft; Darkvision 120 ft\",\r\n\tpassivePerception : 13,\r\n\tlanguages : \"understands Draconic and Common but can't speak\",\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Rend\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two rend attacks as Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the dragonnel can make two Rend attacks.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The dragonnel doesn't provoke an opportunity attack when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\n\n// pub_20211207_SCC.js\r\n// This file adds all the player-material from Strixhaven: A Curriculum of Chaos to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.SCC = {\r\n\tname : \"Strixhaven: A Curriculum of Chaos\",\r\n\tabbreviation : \"SCC\",\r\n\tabbreviationSpellsheet : \"SC\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://dnd.wizards.com/products/strixhaven-curriculum-chaos\",\r\n\tdate : \"2021/12/07\"\r\n};\r\n\r\n// Race\r\nRaceList[\"owlin\"] = {\r\n\tregExpSearch : /owlin/i,\r\n\tname : \"Owlin\",\r\n\tsource : [[\"SCC\", 29]],\r\n\tplural : \"Owlin\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tskills : [\"Stealth\"],\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\r\n\ttrait : \"Owlin\"+\r\n\t\"\\n \\u2022 Flight: Thanks to my wings, I have a flying speed equal to my walking speed. I can't use this flying speed if I'm wearing medium or heavy armor.\"+\r\n\t\"\\n \\u2022 Silent Feathers: I have proficiency in the Stealth skill.\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"lorehold student\"] = {\r\n\tregExpSearch : /^(?=.*lorehold)(?=.*student).*$/i,\r\n\tname : \"Lorehold Student\",\r\n\tsource : [[\"SCC\", 31]],\r\n\tskills : [\"History\", \"Religion\"],\r\n\tlanguageProfs : [2],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Tome of history\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Hooded lantern\", \"\", 2],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Lorehold Initiate\",\r\n\ttrait : [\r\n\t\t\"I thrive on esoteric lore. The more obscure the historical references I can include in everyday conversation, the better.\",\r\n\t\t\"By searching for these lost artifacts, I hope to find who I really am along the way.\",\r\n\t\t\"I can barely go a minute without talking about my research. I have so much knowledge in my head, and it needs to be let out somewhere!\",\r\n\t\t\"The spirits of the dead are so much more interesting to talk with than living classmates.\",\r\n\t\t\"I can speak eloquently about the historical ramifications of an ancient war. But ask me to add two-digit numbers together, and I'm a mess.\",\r\n\t\t\"In the end, it's all just entropy. Everything falls apart someday.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"lorehold initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Lorehold college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Comprehend Languages, Identify, Borrowed Knowledge, Locate Object, Speak with Dead, Spirit Guardians, Arcane Eye, Stone Shape, Flame Strike, and Legend Lore.\",\r\n\tsource : [[\"SCC\", 31]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"comprehend languages\", \"identify\", \"borrowed knowledge\", \"locate object\", \"speak with dead\", \"spirit guardians\", \"arcane eye\", \"stone shape\", \"flame strike\", \"legend lore\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Comprehend Languages, Identify, Borrowed Knowledge, Locate Object, Speak with Dead, Spirit Guardians, Arcane Eye, Stone Shape, Flame Strike, and Legend Lore.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"lorehold\" }],\r\n};\r\nBackgroundList[\"prismari student\"] = {\r\n\tregExpSearch : /^(?=.*prismari)(?=.*student).*$/i,\r\n\tname : \"Prismari Student\",\r\n\tsource : [[\"SCC\", 32]],\r\n\tskills : [\"Acrobatics\", \"Performance\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Artisan's tools or Musical instrument\", 1]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Artisan's tools or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Prismari Initiate\",\r\n\ttrait : [\r\n\t\t\"I'm the life of the party, and I expect everyone's attention when I walk into a room.\",\r\n\t\t\"Two weeks ago, I was enthralled with my latest project. Now, I think it's garbage and deserves to be destroyed.\",\r\n\t\t\"I believe everyone has the ability to express their truest selves through art, and I'm happy to quietly push them in the right direction.\",\r\n\t\t\"Everyone is a critic, and I work to win them all over.\",\r\n\t\t\"I'm beset with such an overwhelming sense of ennui regarding my art. Nothing quite captures my attention anymore.\",\r\n\t\t\"Instead of confronting my negative emotions, I channel them into explosive artistic displays.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"prismari initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Prismari college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Chromatic Orb, Thunderwave, Flaming Sphere, Kinetic Jaunt, Haste, Water Walk, Freedom of Movement, Wall of Fire, Cone of Cold, and Conjure Elemental.\",\r\n\tsource : [[\"SCC\", 32]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"chromatic orb\", \"thunderwave\", \"flaming sphere\", \"kinetic jaunt\", \"haste\", \"water walk\", \"freedom of movement\", \"wall of fire\", \"cone of cold\", \"conjure elemental\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Chromatic Orb, Thunderwave, Flaming Sphere, Kinetic Jaunt, Haste, Water Walk, Freedom of Movement, Wall of Fire, Cone of Cold, and Conjure Elemental.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"prismari\" }],\r\n};\r\nBackgroundList[\"quandrix student\"] = {\r\n\tregExpSearch : /^(?=.*quandrix)(?=.*student).*$/i,\r\n\tname : \"Quandrix Student\",\r\n\tsource : [[\"SCC\", 33]],\r\n\tskills : [\"Arcana\", \"Nature\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Abacus\", \"\", 2],\r\n\t\t[\"Book of arcane theory\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Quandrix Initiate\",\r\n\ttrait : [\r\n\t\t\"When I find a subject I'm interested in, I won't stop studying until I know everything about it. It keeps me up at night.\",\r\n\t\t\"I hope this all makes sense to me one day. Until then, I'm going to keep faking it.\",\r\n\t\t\"Equations and patterns come naturally to my mind. I wish friendship came just as easily.\",\r\n\t\t\"I believe I'm always the smartest person in the room. And I'll prove it, even if no one asks me to.\",\r\n\t\t\"If these classes have taught me anything, it's that reality is a lie, and nothing matters. So why bother?\",\r\n\t\t\"Before I graduate, I want to achieve something mathematically impossible. I must leave a legacy!\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"quandrix initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Quandrix college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Entangle, Guiding Bolt, Enlarge/Reduce, Vortex Warp, Aura of Vitality, Haste, Control Water, Freedom of Movement, Circle of Power, and Passwall.\",\r\n\tsource : [[\"SCC\", 33]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"guiding bolt\", \"enlarge/reduce\", \"vortex warp\", \"aura of vitality\", \"haste\", \"control water\", \"freedom of movement\", \"circle of power\", \"passwall\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Entangle, Guiding Bolt, Enlarge/Reduce, Vortex Warp, Aura of Vitality, Haste, Control Water, Freedom of Movement, Circle of Power, and Passwall.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"quandrix\" }],\r\n};\r\nBackgroundList[\"silverquill student\"] = {\r\n\tregExpSearch : /^(?=.*silverquill)(?=.*student).*$/i,\r\n\tname : \"Silverquill Student\",\r\n\tsource : [[\"SCC\", 35]],\r\n\tskills : [\"Intimidation\", \"Persuasion\"],\r\n\tlanguageProfs : [2],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Book of poetry\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Silverquill Initiate\",\r\n\ttrait : [\r\n\t\t\"I'll say whatever I need to in order to maintain my high social status.\",\r\n\t\t\"I prefer saying the blunt truth over a pretty lie, and I don't particularly care whose feelings I hurt.\",\r\n\t\t\"I believe that uplifting my peers is the best way to succeed.\",\r\n\t\t\"I've mastered the art of using humor as a defense, and I always have a charming joke ready.\",\r\n\t\t\"I always wait before speaking, analyzing the situation for whichever angle is most advantageous to my goals.\",\r\n\t\t\"No one knows about the all-nighters I've pulled to keep my magic looking effortless, and I'm going to keep it that way.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"silverquill initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Silverquill college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Dissonant Whispers, Silvery Barbs, Calm Emotions, Darkness, Beacon of Hope, Daylight, Compulsion, Confusion, Dominate Person, and Rary's Telepathic Bond.\",\r\n\tsource : [[\"SCC\", 35]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"dissonant whispers\", \"silvery barbs\", \"calm emotions\", \"darkness\", \"beacon of hope\", \"daylight\", \"compulsion\", \"confusion\", \"dominate person\", \"rary's telepathic bond\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Dissonant Whispers, Silvery Barbs, Calm Emotions, Darkness, Beacon of Hope, Daylight, Compulsion, Confusion, Dominate Person, and Rary's Telepathic Bond.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"silverquill\" }],\r\n};\r\nBackgroundList[\"witherbloom student\"] = {\r\n\tregExpSearch : /^(?=.*witherbloom)(?=.*student).*$/i,\r\n\tname : \"Witherbloom Student\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tskills : [\"Nature\", \"Survival\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [\"Herbalism kit\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Book about plant identification\", \"\", 5],\r\n\t\t[\"Iron pot\", \"\", 10],\r\n\t\t[\"Herbalism kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Witherbloom Initiate\",\r\n\ttrait : [\r\n\t\t\"I love brewing up a new recipe, even if some might be repulsed by my choice of ingredients. Or the final product. Or both.\",\r\n\t\t\"My fashion sense is like my garden: withered, black, and weird.\",\r\n\t\t\"I'm going to befriend every single monster in this swamp if it's the last thing I do.\",\r\n\t\t\"Everything in this world dies eventually. The question is, what will you do with the time you have left?\",\r\n\t\t\"I know we just met, but when you die, may I have your bones? For research.\",\r\n\t\t\"Don't interrupt me; I'm brooding.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"witherbloom initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Witherbloom college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Cure Wounds, Inflict Wounds, Lesser Restoration, Wither and Bloom, Revivify, Vampiric Touch, Blight, Death Ward, Antilife Shell, and Greater Restoration.\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cure wounds\", \"inflict wounds\", \"lesser restoration\", \"wither and bloom\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Cure Wounds, Inflict Wounds, Lesser Restoration, Wither and Bloom, Revivify, Vampiric Touch, Blight, Death Ward, Antilife Shell, and Greater Restoration.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"witherbloom\" }],\r\n};\r\n\r\n// Feats\r\nFeatsList[\"strixhaven initiate\"] = {\r\n\tname : \"Strixhaven Initiate\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tdescription : \"I learn two cantrips and a 1st-level spell from a list depending on my Strixhaven college. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You have studied some magical theory and have learned a few spells associated with Strixhaven University.\"+\r\n\t\"\\n   Choose one of Strixhaven's colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. You learn two cantrips and one 1st-level spell based on the college you choose, as specified in the Strixhaven Spells table.\"+\r\n\t\"\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\tchoices : [\"Lorehold\", \"Prismari\", \"Quandrix\", \"Silverquill\", \"Witherbloom\"],\r\n\t\"lorehold\" : {\r\n\t\tdescription : \"I learn two cantrips (Light, Sacred Flame, or Thaumaturgy) and a 1st-level spell from the cleric or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"light\", \"sacred flame\", \"thaumaturgy\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"prismari\" : {\r\n\t\tdescription : \"I learn two cantrips (Fire Bolt, Prestidigitation, or Ray of Frost) and a 1st-level spell from the bard or sorcerer spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"fire bolt\", \"prestidigitation\", \"ray of frost\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"bard\", \"sorcerer\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"quandrix\" : {\r\n\t\tdescription : \"I learn two cantrips (Druidcraft, Guidance, or Mage Hand) and a 1st-level spell from the druid or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"druidcraft\", \"guidance\", \"mage hand\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"silverquill\" : {\r\n\t\tdescription : \"I learn two cantrips (Sacred Flame, Thaumaturgy, or Vicious Mockery) and a 1st-level spell from the bard or cleric spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can have Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"sacred flame\", \"thaumaturgy\", \"vicious mockery\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"bard\", \"cleric\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"witherbloom\" : {\r\n\t\tdescription : \"I learn two cantrips (Chill Touch, Druidcraft, or Spare the Dying) and a 1st-level spell from the druid or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"druidcraft\", \"spare the dying\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"strixhaven mascot\"] = {\r\n\tname : \"Strixhaven Mascot\",\r\n\tsource : [[\"SCC\", 37]],\r\n\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of my college's mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\tdescriptionFull : \"You have learned how to summon a Strixhaven mascot to assist you, granting you these benefits:\"+\r\n\t\"\\n \\u2022 You can cast the find familiar spell as a ritual. Your familiar can take the form of the mascot associated with the college you chose for the Strixhaven Initiate feat: a spirit statue mascot (Lorehold), an art elemental mascot (Prismari), a fractal mascot (Quandrix), an inkling mascot (Silverquill), or a pest mascot (Witherbloom).\"+\r\n\t\"\\n \\u2022 When you take the Attack action on your turn, you can forgo one attack to allow your mascot familiar to make one attack of its own with its reaction.\"+\r\n\t\"\\n \\u2022 If your mascot familiar is within 60 feet of you, you can teleport as an action, swapping places with the familiar. If your destination space is too small for you to occupy, the teleportation fails and is wasted. Once you teleport in this way, you can't do so again until you finish a long rest, unless you expend a spell slot of 2nd level or higher to do it again.\",\r\n\tprerequisite : \"4th level, Strixhaven Initiate feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"strixhaven initiate\") !== -1; },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Swap places with Strixhaven Mascot\",\r\n\t\trecovery : \"long rest\",\r\n\t\tusages : 1,\r\n\t\taltResource : \"SS 2+\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Strixhaven Mascot\",\r\n\t\tspells : [\"find familiar\"],\r\n\t\tselection : [\"find familiar\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t}],\r\n\tchoices : [\"Lorehold\", \"Prismari\", \"Quandrix\", \"Silverquill\", \"Witherbloom\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iStrixInit = CurrentFeats.known.indexOf(\"strixhaven initiate\");\r\n\t\tif (iStrixInit !== -1 && CurrentFeats.choices[iStrixInit]) {\r\n\t\t\treturn CurrentFeats.choices[iStrixInit];\r\n\t\t}\r\n\t},\r\n\t\"lorehold\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Spirit Statue Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Spirit Statue Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"prismari\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of an Art Elemental Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make an attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Art Elemental Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"quandrix\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Fractal Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Fractal Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"silverquill\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of an Inkling Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Inkling Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"witherbloom\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Pest Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Pest Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t}\r\n};\r\nif (CompanionList.familiar && CompanionList.pact_of_the_chain) { // Needs to be revisited for v24\r\n\tCompanionList.strixhaven_mascot = {\r\n\t\tname : \"Strixhaven Mascot\",\r\n\t\tnameTooltip : \"Strixhaven Mascot (feat)\",\r\n\t\tnameOrigin : \"variant of the Find Familiar 1st-level conjuration [ritual] spell\",\r\n\t\tnameMenu : \"Strixhaven Mascot familiar (feat)\",\r\n\t\tsource : [[\"SCC\", 37]],\r\n\t\tincludeCheck : CompanionList.pact_of_the_chain.includeCheck,\r\n\t\taction : [[\"action\", \"Swap places with Strixhaven Mascot\"]].concat(CompanionList.familiar.action),\r\n\t\tattributesChange : CompanionList.pact_of_the_chain.attributesChange,\r\n\t\tattributesAdd : CompanionList.familiar.attributesAdd,\r\n\t\tnotes : function() {\r\n\t\t\tvar a = newObj(CompanionList.pact_of_the_chain.notes);\r\n\t\t\ta[0].description = [\r\n\t\t\t\t\"appearing in an unoccupied space within 10 ft\",\r\n\t\t\t\t\"It assumes a chosen beast or mascot form (can change at every casting), see the spell and feat\",\r\n\t\t\t\t\"It has the chosen form's statistics, but its type changes from beast to celestial, fey, or fiend\",\r\n\t\t\t\t\"When the familiar drops to 0 hit points, it disappears, leaving behind no physical form\",\r\n\t\t\t\t\"It reappears when I cast this spell again (in a new form if so desired)\"\r\n\t\t\t].join(\"\\n   \");\r\n\t\t\ta.push({\r\n\t\t\t\tname : \"As an action while it is within 60 ft, we can teleport\",\r\n\t\t\t\tdescription : [\r\n\t\t\t\t\t\"swapping places if there is enough space\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t].join(\"\\n   \"),\r\n\t\t\t\tjoinString : \", \"\r\n\t\t\t});\r\n\t\t\treturn a;\r\n\t\t}()\r\n\t};\r\n}\r\n\r\n// Spells\r\nSpellsList[\"borrowed knowledge\"] = {\r\n\tname : \"Borrowed Knowledge\",\r\n\tclasses : [\"bard\", \"cleric\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"SCC\", 37]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A book worth at least 25 gp.\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"Gain proficiency with one skill; ends early if cast again (25gp)\",\r\n\tdescriptionFull : \"You draw on knowledge from spirits of the past. Choose one skill in which you lack proficiency. For the spell's duration, you have proficiency in the chosen skill. The spell ends early if you cast it again.\"\r\n};\r\nSpellsList[\"kinetic jaunt\"] = {\r\n\tname : \"Kinetic Jaunt\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 37]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"+10 ft walk spd; provoke no opportunity atks; move through crea space, counts not as difficult terrain\",\r\n\tdescriptionFull : \"You magically empower your movement with dance-like steps, giving yourself the following benefits for the duration.\"+\r\n\t\"\\n \\u2022 Your walking speed increases by 10 feet.\"+\r\n\t\"\\n \\u2022 You don't provoke opportunity attacks.\"+\r\n\t\"\\n \\u2022 You can move through the space of another creature, and it doesn't count as difficult terrain. If you end your turn in another creature's space, you are shunted to the last unoccupied space you occupied, and you take 1d8 force damage.\"\r\n};\r\nSpellsList[\"silvery barbs\"] = {\r\n\tname : \"Silvery Barbs\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when a creature you can see within 60 feet of yourself succeeds on an attack roll, an ability check, or a saving throw\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea reroll d20 and use lowest for atk, check, or save; 1 crea adv. next atk, check, or save in 1 min\",\r\n\tdescriptionFull : \"You magically distract the triggering creature and turn its momentary uncertainty into encouragement for another creature. The triggering creature must reroll the d20 and use the lower roll.\"+\r\n\t\"\\n   You can then choose a different creature you can see within range (you can choose yourself). The chosen creature has advantage on the next attack roll, ability check, or saving throw it makes within 1 minute. A creature can be empowered by only one use of this spell at a time.\"\r\n};\r\nSpellsList[\"vortex warp\"] = {\r\n\tname : \"Vortex Warp\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or teleported to a sufficiently empty space of my choice within range; +30 ft/SL range\",\r\n\tdescriptionFull : \"You magically twist space around another creature you can see within range. The target must succeed on a Constitution saving throw (the target can choose to fail), or the target is teleported to an unoccupied space of your choice that you can see within range. The chosen space must be on a surface or in a liquid that can support the target without the target having to squeeze.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the range of the spell increases by 30 feet for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"wither and bloom\"] = {\r\n\tname : \"Wither and Bloom\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 2,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A withered vine twisted into a loop.\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"10-ft rad any crea 2d6+1d6/SL Necrotic dmg, save half; 1 crea can heal using 1+1/SL HD; see B\",\r\n\tdescriptionFull : \"You invoke both death and life upon a 10-foot-radius sphere centered on a point within range. Each creature of your choice in that area must make a Constitution saving throw, taking 2d6 necrotic damage on a failed save, or half as much damage on a successful one. Nonmagical vegetation in that area withers.\"+\r\n\t\"\\n   In addition, one creature of your choice in that area can spend and roll one of its unspent Hit Dice and regain a number of hit points equal to the roll plus your spellcasting ability modifier.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot above the 2nd, and the number of Hit Dice that can be spent and added to the healing roll increases by one for each slot above 2nd.\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"bottle of boundless coffee\"] = {\r\n\tname : \"Bottle of Boundless Coffee\",\r\n\tsource : [[\"SCC\", 38]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This metal bottle is full with delicious, comfortably warm coffee, but I can't feel the heat. It has a stopper on a little chain. It will accept only the coffee it produces. Each time I drink the coffee, I roll a d20. On a 1, the bottle stops dispensing coffee for 1 hour. Unless drunk, the coffee vanishes when it leaves the bottle.\",\r\n\tdescriptionFull : \"This metal bottle carries delicious, warm coffee. The bottle comes with a stopper, which is attached to the bottle by a little chain. Even when open, the bottle won't accept any liquid other than the coffee it produces. The coffee inside is always comfortably warm, and none of the heat can be felt through the bottle.\"+\r\n\t\"\\n   Each time you drink the coffee, roll a d20. On a 1, the bottle refuses to dispense coffee for the next hour. If you pour coffee from the bottle, rather than drinking from it, the coffee vanishes the moment it leaves the bottle.\"\r\n}\r\nMagicItemsList[\"cuddly strixhaven mascot\"] = {\r\n\tname : \"Cuddly Strixhaven Mascot\",\r\n\tsource : [[\"SCC\", 38]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This soft, Tiny, magic toy represents a Strixhaven mascot. As an action, I can press it to my arm, shoulder, or leg, and it attaches there for 1 hour or until I remove it as an action. Once per long rest while this toy is on my person, I can give myself advantage on the save to avoid or end the frightened condition on myself.\",\r\n\tdescriptionFull : \"Representing one of the mascots of Strixhaven, this soft, Tiny, magic toy is perfect for cuddling. If you press it to your arm, shoulder, or leg as an action, the toy stays attached there for 1 hour or until you use an action to remove it.\"+\r\n\t\"\\n   The toy can also be used to fight off fear. When you make a saving throw to avoid or end the frightened condition on yourself, you can give yourself advantage on the roll if the toy is on your person. You must decide to do so before rolling the d20. If the save succeeds, you can't use the toy in this way until you finish a long rest.\",\r\n\taction : [[\"action\", \" (attach/remove)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n}\r\nMagicItemsList[\"lorehold primer\"] = {\r\n\tname : \"Lorehold Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an History or Religion check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level cleric or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Lorehold Primer is a magic textbook created at Strixhaven's Lorehold College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (History) or Intelligence (Religion) check while holding the primer, you can expend 1 charge to give yourself 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the cleric or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Lorehold Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Lorehold Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfCreateSCCPrimerSpellsEntry : function(bAddIt, sName, aClasses) {\r\n\t\tvar sNameLC = sName.toLowerCase();\r\n\t\tif (bAddIt) {\r\n\t\t\tCurrentSpells[sNameLC] = {\r\n\t\t\t\tname : sName + ' (item)',\r\n\t\t\t\tlist : { 'class' : aClasses, level : [1, 1] },\r\n\t\t\t\tknown : { spells : 1 },\r\n\t\t\t\tbonus : {\r\n\t\t\t\t\tbon0 : {\r\n\t\t\t\t\t\tname : 'Either select a spell',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbon1 : {\r\n\t\t\t\t\t\tname : 'or just select \"Full List\"',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbon2 : {\r\n\t\t\t\t\t\tname : 'on the bottom left',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\ttypeList : 4,\r\n\t\t\t\trefType : \"item\",\r\n\t\t\t\tallowUpCasting : false,\r\n\t\t\t\tfirstCol : \"LR\"\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tdelete CurrentSpells[sNameLC];\r\n\t\t}\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\teval : function () {\r\n\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Lorehold Primer\", ['cleric', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Lorehold Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"prismari primer\"] = {\r\n\tname : \"Prismari Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Acrobatics or Performance check, after the d20 roll. If I study it in a long rest, I can pick a 1st-level bard or sorcerer spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Prismari Primer is a magic textbook created at Strixhaven's Prismari College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make a Dexterity (Acrobatics) or a Charisma (Performance) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the bard or sorcerer spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Prismari Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Prismari Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Prismari Primer\", ['bard', 'sorcerer']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Prismari Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"quandrix primer\"] = {\r\n\tname : \"Quandrix Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Arcana or Nature check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level druid or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Quandrix Primer is a magic textbook created at Strixhaven's Quandrix College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (Arcana) or an Intelligence (Nature) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the druid or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Quandrix Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Quandrix Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Quandrix Primer\", ['druid', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Quandrix Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"silverquill primer\"] = {\r\n\tname : \"Silverquill Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Intimidation or Persuasion check, after the d20 roll. If I study it in a long rest, I can pick a 1st-level bard or cleric spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Silverquill Primer is a magic textbook created at Strixhaven's Silverquill College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make a Charisma (Intimidation) or a Charisma (Persuasion) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the bard or cleric spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Silverquill Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Silverquill Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Silverquill Primer\", ['bard', 'cleric']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Silverquill Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"strixhaven pennant\"] = {\r\n\tname : \"Strixhaven Pennant\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This magic pennant bears the symbol of Strixhaven or one of its colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. While I wave the pennant, the symbol on it glitters, and the pennant sheds bright light in a 10-ft radius and dim light for an additional 10 ft.\",\r\n\tdescriptionFull : \"This magic pennant bears the symbol of Strixhaven or one of its colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. While you wave the pennant, the symbol on it glitters, and the pennant sheds bright light in a 10-foot-radius and dim light for an additional 10 feet.\"\r\n}\r\nMagicItemsList[\"witherbloom primer\"] = {\r\n\tname : \"Witherbloom Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to a Nature or Survival check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level druid or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Witherbloom Primer is a magic textbook created at Strixhaven's Witherbloom College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (Nature) or Wisdom (Survival) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the druid or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witherbloom Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Witherbloom Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Witherbloom Primer\", ['druid', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Witherbloom Primer\");\r\n\t}\r\n}\r\nvar SCC_Murgaxors_Orb_Full_Description = [\r\n\t\"Roiling green mist fills this glass orb, which the exiled Strixhaven mage Murgaxor once used in foul magical experiments. Murgaxor's spirit has infused the orb, which he uses to spread a terrible curse among Strixhaven's students.\",\r\n\t\">>Sentience<<. Murgaxor's orb is a sentient, chaotic evil magic item with the following properties:\",\r\n\t\"\\u2022 The orb has an Intelligence of 20, a Wisdom of 16, and a Charisma of 16, as well as hearing and darkvision out to a range of 30 feet.\",\r\n\t\"\\u2022 The orb can speak, read, and understand Common, and it can communicate telepathically with any creature touching it.\",\r\n\t\"\\u2022 At any time during your turn, the orb can cast the suggestion spell (save DC 17), targeting you or one other creature that touched the orb within the last 24 hours. This isn't a power of the orb that you control.\",\r\n\t\">>Curse<<. Any Humanoid you touch while holding the orb must succeed on a DC 10 Wisdom saving throw or become cursed. Each creature cursed by the orb bears an echo of Murgaxor's hateful thoughts, and that creature suffers from headaches that are persistent but not debilitating until the curse ends. On your turn, the orb can use an action to produce one of the following effects, targeting one or more creatures it has cursed:\",\r\n\t\"\\u2022 >>Unconsciousness<<. The cursed creature falls unconscious for 1 hour. The creature is roused if it takes damage or someone uses an action to shake or slap it awake.\",\r\n\t\"\\u2022 >>Visions of Terror<<. The cursed creature sees terrifying visions, causing it to view all creatures that aren't also cursed as dangerous monsters for 10 minutes. The cursed creature must use its action each round to make one attack against the nearest non-cursed creature. If the cursed creature has multiple possible targets, it attacks one at random. This effect ends if the cursed creature is incapacitated.\",\r\n\t\"After either of these effects ends, the affected creature is no longer cursed. The curse can also be removed from a creature with a remove curse spell or similar magic. All cases of the curse end if Murgaxor's orb is destroyed.\",\r\n\t\">>Magical Signature<<. As a side effect of the orb's curse, the spell detect magic reveals an aura of enchantment surrounding creatures bearing the curse. This aura is distinctive, but in a way detect magic offers no further details about.\",\r\n\t\">>Destroying the Orb<<. Murgaxor's orb has AC 18; 20 hit points; immunity to necrotic, poison, and psychic damage; and resistance to all other types of damage. If reduced to 0 hit points, the orb shatters.\"\r\n]\r\nMagicItemsList[\"murgaxor's orb\"] = {\r\n\tname : \"Murgaxor's Orb\",\r\n\tsource : [[\"SCC\", 126]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This sentient, chaotic evil orb bears a curse. It can communicate telepathically with any creature touching it. It can cast Suggestion on my turn, possibly on me. I have no control over it. Any Humanoid I touch while holding the orb must make a DC 10 Wisdom save or become cursed. See the Notes page.\",\r\n\tdescriptionFull : SCC_Murgaxors_Orb_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(SCC_Murgaxors_Orb_Full_Description).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(targeting) you/ig, \"$1 me\").replace(/you /ig, \"I \").replace(/feet/ig, \"ft\") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"masque charm\"] = {\r\n\tname : \"Masque Charm\",\r\n\tsource : [[\"SCC\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While wearing this small silver pin, I can cast Disguise Self once per sunset. It has DC 13 to discern the disguise. I can have the spell last its normal 1 hour duration, or 6 hours. If I choose 6 hours, the charm becomes nonmagical when the spell ends. In either case, the spell ends if the pin is removed from me.\",\r\n\tdescriptionFull : \"A masque charm is a small silver pin. While wearing this charm, you can use an action to cast the disguise self spell (DC 13 to discern the disguise). Once the spell is cast, it can't be cast from the charm again until the next sunset. When casting the spell, you can have the spell last for its normal 1 hour duration or for 6 hours. If you choose the 6-hour duration, the charm becomes nonmagical when the spell ends. In either case, the spell ends if the charm is removed from you.\",\r\n\tusages : 1,\r\n\trecovery : \"Sunset\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per sunset\",\r\n\t\tspells : [\"disguise self\"],\r\n\t\tselection : [\"disguise self\"],\r\n\t\tfirstCol : \"oncelr\"\r\n   }],\r\n   fixedDC : 13\r\n}\r\n\r\n// Creatures (for Strixhaven Mascot feat)\r\nCreatureList[\"art elemental mascot\"] = { // Prismari\r\n\tname : \"Art Elemental Mascot\",\r\n\tnameAlt : [\"Mascot, Art Elemental\"],\r\n\tsource : [[\"SCC\", 185]],\r\n\tsize : 4,\r\n\ttype : \"Elemental\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 11,\r\n\thp : 18,\r\n\thd : [4, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [6, 13, 12, 8, 11, 15],\r\n\tskills : {\r\n\t\t\"performance\" : 4\r\n\t},\r\n\tdamage_resistances : \"cold, fire\",\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Joyful Flare\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"fire\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Melancholic Bolt\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"cold\"],\r\n\t\trange : \"30 ft\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Captivating Artistry (1/Day)\",\r\n\t\tdescription : \"As an action, the elemental can target one creature it can see within 30 ft of itself. The target must succeed on a DC 12 Charisma saving throw or be charmed for 1 minute. The charmed target can repeat the save at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"When the elemental dies, it explodes in a burst of colored light. Each creature within 5 ft of the elemental must succeed on a DC 11 Constitution saving throw or be blinded for 1 minute. A blinded creature can repeat the save at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}]\r\n};\r\nCreatureList[\"fractal mascot\"] = { // Quandrix\r\n\tname : \"Fractal Mascot\",\r\n\tnameAlt : [\"Mascot, Fractal\"],\r\n\tsource : [[\"SCC\", 192]],\r\n\tsize : 4,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 12,\r\n\thp : 27,\r\n\thd : [6, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 14, 13, 7, 10, 5],\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Quantum Strike\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"force\"],\r\n\t\trange : \"30 ft\",\r\n\t\tdescription : \"+1d4 damage if the fractal is Medium or bigger\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Augment (bonus action)\",\r\n\t\tdescription : \"The fractal can increase its size by one category as a bonus action. While the fractal is Medium or bigger, it makes Strength checks and Strength saving throws with advantage. The fractal can become no larger than Huge via this bonus action.\"\r\n\t}, {\r\n\t\tname : \"Diminish (bonus action)\",\r\n\t\tdescription : \"The fractal can decreases its size by one category as a bonus action. While the fractal is Tiny, it makes attack rolls, Dexterity checks, and Dexterity saving throws with advantage. The fractal can become no smaller than 1 ft in height via this bonus action.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Relative Density\",\r\n\t\tdescription : \"The fractal can move through creatures and objects as if they were difficult terrain. It takes 1d10 force damage if it ends its turn inside an object.\"\r\n\t}]\r\n};\r\nCreatureList[\"inkling mascot\"] = { // Silverquill\r\n\tname : \"Inkling Mascot\",\r\n\tnameAlt : [\"Mascot, Inkling\"],\r\n\tsource : [[\"SCC\", 195]],\r\n\tsize : 5,\r\n\ttype : \"Ooze\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 18,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 30 ft (hover)\",\r\n\tscores : [10, 16, 14, 6, 7, 11],\r\n\tskills : {\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tdamage_immunities : \"psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, prone\",\r\n\tsenses : \"Blindsight 60 ft\",\r\n\tpassivePerception : 8,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Blot\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"psychic\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Ink Spray (1/Day)\",\r\n\t\tdescription : \"As an action, the inkling can spray viscous ink at one creature within 15 ft of itself. The target must succeed on a DC 12 Constitution saving throw or be blinded until the end of the inkling's next turn.\"\r\n\t}, {\r\n\t\tname : \"Shadow Stealth (bonus action)\",\r\n\t\tdescription : \"While in dim light or darkness, the inkling can take the Hide action as a bonus action.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amorphous\",\r\n\t\tdescription : \"The inkling can move through a space as narrow as 1 inch wide without squeezing.\"\r\n\t}]\r\n};\r\nCreatureList[\"pest mascot\"] = { // Witherbloom\r\n\tname : \"Pest Mascot\",\r\n\tnameAlt : [\"Mascot, Pest\"],\r\n\tsource : [[\"SCC\", 203]],\r\n\tsize : 5,\r\n\ttype : \"Monstrosity\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 22,\r\n\thd : [4, 4],\r\n\tspeed : \"30 ft\",\r\n\tscores : [11, 14, 17, 5, 13, 4],\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Regeneration\",\r\n\t\tdescription : \"The pest regains 5 hit points at the start of its turn if it has at least 1 hit point. If it takes fire damage, this trait doesn't function at the start of the pest's next turn.\"\r\n\t}, {\r\n\t\tname : \"Spiny Hide\",\r\n\t\tdescription : \"At the start of each of its turns, the pest deals 1d4 piercing damage to any creature grappling it or that it is grappling.\"\r\n\t}]\r\n};\r\nCreatureList[\"spirit statue mascot\"] = { // Lorehold\r\n\tname : \"Spirit Statue Mascot\",\r\n\tnameAlt : [\"Mascot, Spirit Statue\"],\r\n\tsource : [[\"SCC\", 216]],\r\n\tsize : 3,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Any alignment\",\r\n\tac : 14,\r\n\thp : 26,\r\n\thd : [4, 8],\r\n\tspeed : \"30 ft\",\r\n\tscores : [14, 9, 15, 12, 13, 8],\r\n\tskills : {\r\n\t\t\"arcana\" : 5,\r\n\t\t\"history\" : 5,\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tlanguages : \"any languages it knew in life\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Counsel of the Past (2/Day)\",\r\n\t\tdescription : \"The spirit statue touches one creature. Once within the next 10 minutes, that creature can roll a d4 and add the number rolled to one ability check of its choice, immediately after rolling the d20.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"When the spirit statue is reduced to 0 hit points, the statue crumbles, and the spirit returns to the afterlife in a burst of ghostly white flame. Each creature within 5 ft of it must succeed on a DC 12 Constitution saving throw or take 1d6 radiant damage.\"\r\n\t}]\r\n};\r\n\n// pub_20220125_MotM.js\r\n// This file adds all the player-material from Mordenkainen Presents: Monsters of the Multiverse to MPMB's Character Record Sheet\r\n// Includes many contributions by Nod_Hero and BraabHimself\r\n\r\n// Define the source\r\nSourceList.MotM = {\r\n\tname : \"Mordenkainen Presents: Monsters of the Multiverse\",\r\n\tabbreviation : \"MotM\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/monsters-of-the-multiverse\",\r\n\tdate : \"2022/01/25\" // box set release date\r\n};\r\n\r\n//Add Races\r\nRaceList[\"multiverse aarakocra\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*aarakocra).*$/i,\r\n\tname : \"Multiverse Aarakocra\",\r\n\tsortname : \"Aarakocra, Multiverse\",\r\n\tsource : [[\"MotM\", 5]],\r\n\tplural : \"Aarakocra\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /talon/i,\r\n\t\tname : \"Talons\",\r\n\t\tsource : [[\"MotM\", 5]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"wind caller\" : {\r\n\t\t\tname : \"Wind Caller\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wind Caller\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Gust of Wind\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"gust of wind\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"gust of wind\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"gust of wind\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Wind Caller trait.\",\r\n\t\t\t\t\tchanges : \"Using Wind Caller, I can cast Gust of Wind once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Aarakocra\"+\r\n\t\t\"\\n \\u2022 Flight: I have a flying speed equal to my walking speed. To use this speed, I can't be wearing medium or heavy armor.\"+\r\n\t\t\"\\n \\u2022 Talons: My unarmed strikes with talons deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Wind Caller: At 3rd level, I can cast Gust of Wind without using a spell slot or material component once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for this (one-time choice).\"\r\n};\r\nvar MotM_Aasimar_trait = (typePF ? \"\\n\" : \"\") + \" \\u2022 Light Bearer: I know the Light cantrip.\" +\r\n\"\\n \\u2022 Healing Hands: As an action once per long rest, I can touch a creature and heal it for a number of d4s equal to my Prof\" + (typePF ? \".\" : \"iciency\") + \" Bonus.\";\r\nvar MotM_Aasimar_HealingHands = {\r\n\tname : \"Healing Hands\",\r\n\tminlevel : 1,\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tadditional : ProficiencyBonusList.map(function(n) { return n + \"d4 healing\"; }),\r\n\taction : [[\"action\", \"\"]]\r\n};\r\nRaceList[\"multiverse aasimar\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*aasimar).*$/i,\r\n\tname : \"Multiverse Aasimar\",\r\n\tsortname : \"Aasimar, Multiverse\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Aasimar\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Celestial Revelation: At 3rd level, I choose one option from Necrotic Shroud, Radiant Consumption, or Radiant Soul. As a bonus action once per long rest, I can transform and gain its benefits. This transformation lasts for 1 minute or until I end it as a bonus action.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands\r\n\t}\r\n};\r\nAddRacialVariant(\"multiverse aasimar\", \"necrotic shroud\", {\r\n\tregExpSearch : /shroud/i,\r\n\tname : \"Necrotic Shroud Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tabilitySave : 6,\r\n\ttrait : \"Aasimar (Necrotic Shroud)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Necrotic Shroud (3rd level): Once per long rest, I can transform for 1 minute as a bonus action (start/end), causing enemies within 10 ft to make a Cha save (DC 8 + Cha mod + Prof Bonus) or become frightened of me until my next turn ends. Also, once on each of my turns, I can deal my Prof Bonus in necrotic damage to one damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"necrotic shroud\" : {\r\n\t\t\tname : \"Necrotic Shroud\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" necrotic damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"multiverse aasimar\", \"radiant consumption\", {\r\n\tregExpSearch : /consumption/i,\r\n\tname : \"Radiant Consumption Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\ttrait : \"Aasimar (Radiant Consumption)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Radiant Consumption (3rd level): Once per long rest, I can transform for 1 minute as a bonus action (start/end). I shed 10-ft radius bright light and 10-ft dim light. At the end of my turns, all in this bright light take my Prof Bonus in radiant damage. Also, once on my turns, I can deal Prof Bonus in radiant damage to one damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"radiant consumption\" : {\r\n\t\t\tname : \"Radiant Consumption\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" radiant damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"multiverse aasimar\", \"radiant soul\", {\r\n\tregExpSearch : /soul/i,\r\n\tname : \"Radiant Soul Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\ttrait : \"Aasimar (Radiant Soul)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Radiant Soul (3rd level): As a bonus action once per long rest, I can transform to gain spectral wings that give my a flying speed equal to my walking speed. These last for 1 minute or until I dismiss them as a bonus action. Once on each of my turns while active, I can deal my Prof Bonus in radiant damage to one target damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"radiant soul\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" radiant damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nRaceList[\"multiverse bugbear\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*bugbear).*$/i,\r\n\tname : \"Multiverse Bugbear\",\r\n\tsortname : \"Bugbear, Multiverse\",\r\n\tsource : [[\"MotM\", 8]],\r\n\tplural : \"Bugbears\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tskills : [\"Stealth\"],\r\n\tscoresGeneric : true,\r\n\tcarryingCapacity : 2,\r\n\ttrait : \"Bugbear (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have adv. on saves to avoid or end being charmed.\"+\r\n\t\t\"\\n \\u2022 Powerful Build: I count as one size larger for the weight I can carry.\"+\r\n\t\t\"\\n \\u2022 Long-Limbed: I add 5 ft of reach with my melee attacks on my turn.\"+\r\n\t\t\"\\n \\u2022 Sneaky: I am proficient in Stealth and can move through and stop in a space large enough for a Small creature without squeezing.\"+\r\n\t\t\"\\n \\u2022 Surprise Attack: My attacks deal +2d6 damage if the target hasn't taken a turn yet\" + (typePF ? \" in the current combat.\" : \".\")\r\n};\r\nRaceList[\"multiverse centaur\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*centaur).*$/i,\r\n\tname : \"Multiverse Centaur\",\r\n\tsortname : \"Centaur, Multiverse\",\r\n\tsource : [[\"MotM\", 9]],\r\n\tplural : \"Centaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\r\n\t\tname : \"Hooves\",\r\n\t\tsource : [[\"MotM\", 9]],\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\tdescription : \"Use as bonus action after charge 30 ft\",\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : [[\"bonus action\", \"Hooves (after charge)\"]],\r\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, or Survival\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Centaur\"+\r\n\t\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\r\n\t\t\"\\n \\u2022 Hooves: I can use my hooves for unarmed strikes that deal 1d6 bludgeoning damage.\"+\r\n\t\t\"\\n \\u2022 Charge: If I move 30 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can make a hooves attack against it as a bonus action.\"+\r\n\t\t\"\\n \\u2022 Equine Build: I count as one size larger for my carrying capacity and the weight I can push, drag, or lift. Because of my hooves, 1 ft of movement while climbing costs me 4 ft.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse changeling\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*changeling).*$/i,\r\n\tname : \"Multiverse Changeling\",\r\n\tsortname : \"Changeling, Multiverse\",\r\n\tsource : [[\"MotM\", 41]],\r\n\tplural : \"Changelings\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Deception, Insight, Intimidation, Performance, and Persuasion\",\r\n\tage : \" typically live to be around 100 years old. While a changeling can transform to conceal their age, the effects of aging affect them similarly to humans\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Changeling\"+\r\n\t\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\r\n\t\t\"\\n \\u2022 Shapechanger: As an action, I can change my appearance and voice to or from a humanoid-shaped form I have seen, not changing my equipment. I determine the specifics of the form like hair length, eye color, and sex. I can adjust my height and weight between Medium and Small and can appear as a member of another race, though none of my game statistics change. I revert back when I die.\"+\r\n\t\t(typePF ? \"\\n \\u2022 Changeling Instincts: I gain proficiency with 2 of the following skills: Deception, Insight, Intimidation, Performance, or Persuasion.\" : \"\"),\r\n\taction : [[\"action\", \"Shapechanger\"]]\r\n};\r\nRaceList[\"multiverse deep gnome\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))((?=.*\\b(underdarks?|deep|depths?)\\b)(?=.*\\bgnomes?\\b)|(?=.*svirfneblin)).*$/i,\r\n\tname : \"Multiverse Svirfneblin\",\r\n\tsortname : \"Gnome, Deep, Multiverse\",\r\n\tsource : [[\"MotM\", 41]],\r\n\tplural : \"Svirfneblin\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. spells\"] },\r\n\tage : \" can live to be 500 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Svirfneblin (my creature type is humanoid, gnome)\"+\r\n\t\t\"\\n \\u2022 Svirfneblin Camouflage: Proficiency bonus per long rest, I can gain adv. on Stealth checks.\"+\r\n\t\t\"\\n \\u2022 Gnomish Magic Resistance: I have advantage on Int, Wis, and Cha saves vs. spells.\"+\r\n\t\t\"\\n \\u2022 Gift of the Svirfneblin: At 3rd level, I can cast Disguise Self once per long rest without a spell slot. At 5th level, I can cast Nondetection once per long rest without a spell slot or material components. I can also cast each spell using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"svirfneblin camouflage\" : {\r\n\t\t\tname : \"Svirfneblin Camouflage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"gift of the svirfneblin (level 3)\" : {\r\n\t\t\tname : \"Gift of the Svirfneblin (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Gift of the Svirfneblin\",\r\n\t\t\t\tspells : [\"disguise self\"],\r\n\t\t\t\tselection : [\"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Disguise Self\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"gift of the svirfneblin (level 5)\" : {\r\n\t\t\tname : \"Gift of the Svirfneblin (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Gift of the Svirfneblin\",\r\n\t\t\t\tspells : [\"nondetection\"],\r\n\t\t\t\tselection : [\"nondetection\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"nondetection\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"nondetection\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Gift of the Svirfneblin trait.\",\r\n\t\t\t\t\tchanges : \"Using Gift of the Svirfneblin, I can cast Nondetection once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Nondetection\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse duergar\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))((?=.*\\bduergars?\\b)|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(grey|gray|underdark)\\b))).*$/i,\r\n\tname : \"Multiverse Duergar\",\r\n\tsortname : \"Duergar, Multiverse\",\r\n\tsource : [[\"MotM\", 12]],\r\n\tplural : \"Duergar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { adv_vs : [\"charmed\", \"poisoned\", \"stunned\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" can live to be 350 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Duergar (my creature type is humanoid, dwarf)\"+\r\n\t\t\"\\n \\u2022 Dwarven Resilience \\u0026 Psionic Fortitude: I have advantage on saving throws to avoid or end being poisoned, charmed, or stunned and I have resistance to poison damage.\"+\r\n\t\t\"\\n \\u2022 Duergar Magic: At 3rd level, I learn the Enlarge/Reduce spell. At 5th level, I learn the Invisibility spell. I can cast each spell on myself once per long rest without using a spell slot or material components, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"duergar magic (level 3)\" : {\r\n\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"enlarge/reduce\" : {\r\n\t\t\t\t\trange : \"Self/\" + SpellsList[\"enlarge/reduce\"].range,\r\n\t\t\t\t\tcomponents : SpellsList[\"enlarge/reduce\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"enlarge/reduce\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Duergar Magic trait.\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Enlarge/Reduce on myself once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Enlarge/Reduce\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"duergar magic (level 5)\" : {\r\n\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self/\" + SpellsList[\"invisibility\"].range,\r\n\t\t\t\t\tcomponents : SpellsList[\"invisibility\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"invisibility\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Duergar Magic trait.\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Invisibility on myself once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Invisibility\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse eladrin\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Multiverse Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin), Multiverse\",\r\n\tsource : [[\"MotM\", 13]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\tabilitySave : [4, 5, 6],\r\n\ttrait : \"Eladrin (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Shifting Seasons: After finish a long rest, I can align with a season.\"+\r\n\t\t\"\\n \\u2022 Fey Step: Prof Bonus per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. At 3rd level, additional effects based on my season.\",\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Shifting Seasons\",\r\n\t\tsource : [[\"MotM\", 13]],\r\n\t\tpopupName : \"Eladrin Shifting Season Features\",\r\n\t\tadditional : \"save DC 8 + Prof Bonus + Int/Wis/Cha mod\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"\\u2022 Autumn (Eladrin Season)\",\r\n\t\t\t\" After using Fey Step, up to 2 creatures I can see within 10 ft of me must make a Wis save\",\r\n\t\t\t\" If failed, a target is charmed by me for 1 minute, or until I or my allies damage it\",\r\n\t\t\t\"\\u2022 Winter (Eladrin Season)\",\r\n\t\t\t\" When I use Fey Step, one target \" + (typePF ? \"with\" : \"\") + \"in 5 ft of where I teleported from must make a Wis save\",\r\n\t\t\t\" If failed, it is frightened of me until the end of my next turn\",\r\n\t\t\t\"\\u2022 Spring (Eladrin Season)\",\r\n\t\t\t\" When I use Fey Step, I can instead teleport one willing creature I touch within 5 ft of me\",\r\n\t\t\t\" It teleports to an unoccupied space of my choice that I can see within 30 ft of me\",\r\n\t\t\t\"\\u2022 Summer (Eladrin Season)\",\r\n\t\t\t\" After using Fey Step, each creature of my choice I can see within 5 ft of me takes damage\",\r\n\t\t\t\" This is fire damage equal to my proficiency bonus\"\r\n\t\t]\r\n\t}]\r\n};\r\nRaceList[\"multiverse firbolg\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*firbolg).*$/i,\r\n\tname : \"Multiverse Firbolg\",\r\n\tsortname : \"Firbolg, Multiverse\",\r\n\tsource : [[\"MotM\", 15]],\r\n\tplural : \"Firbolg\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Speech of Beast and Leaf\", 1],\r\n\tage : \" can live up to 500 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Firbolg\"+\r\n\t\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Powerful Build: I count as one size larger for my carrying capacity.\"+\r\n\t\t\"\\n \\u2022 Hidden Step: Proficiency Bonus per long rest, as a bonus action, I can turn invisible until my next turn starts, as per the Invisibility spell.\"+\r\n\t\t\"\\n \\u2022 Firbolg Magic: I can cast Detect Magic and Disguise Self each once per long rest, or using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Speech of Beast and Leaf: I can make my words understood, in a limited manner, by Beasts, Plants, and vegetation. I have advantage on Charisma checks to influence them.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"firbolg magic \" : {\r\n\t\t\tname : \"Firbolg Magic\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\tspells : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tselection : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Magic\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Disguise Self\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"disguise self\" : {\r\n\t\t\t\t\tdescription : \"Alter appearance, up to 3ft shorter/taller; Int(Investigation) check vs. spell DC to determine disguise\",\r\n\t\t\t\t\tchanges : \"Using Firbolg Magic, I can cast Disguise Self once per long rest without using a spell slot. When I cast it using Firbolg Magic, I can also seem up to 3 feet shorter or taller.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"hidden step\" : {\r\n\t\t\tname : \"Hidden Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse air genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bairs?\\b).*$/i,\r\n\tname : \"Multiverse Air Genasi\",\r\n\tsortname : \"Genasi, Air, Multiverse\",\r\n\tsource : [[\"MotM\", 16]],\r\n\tplural : \"Air genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Air Genasi\"+\r\n\t\"\\n \\u2022 Unending Breath: I can hold my breath indefinitely while I am not incapacitated.\"+\r\n\t\"\\n \\u2022 Lightning Resistance: I have resistance to lightning damage.\"+\r\n\t\"\\n \\u2022 Mingle with the Wind: I know the Shocking Grasp cantrip. At 3rd level, I learn Feather Fall. At 5th level, I learn Levitate. I can cast each spell without using a spell slot or material components once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Mingle with the Wind\",\r\n\t\tspells : [\"shocking grasp\"],\r\n\t\tselection : [\"shocking grasp\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"mingle with the wind (level 3)\" : {\r\n\t\t\tname : \"Mingle with the Wind (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"feather fall\"],\r\n\t\t\t\tselection : [\"feather fall\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Feather Fall\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"feather fall\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"feather fall\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"feather fall\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Mingle with the Wind trait.\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Feather Fall once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"mingle with the wind (level 5)\" : {\r\n\t\t\tname : \"Mingle with the Wind (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\tselection : [\"levitate\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Levitate\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"levitate\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"levitate\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Mingle with the Wind trait.\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Levitate once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse earth genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bearths?\\b).*$/i,\r\n\tname : \"Multiverse Earth Genasi\",\r\n\tsortname : \"Genasi, Earth, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Earth genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Earth Genasi\"+\r\n\t\"\\n \\u2022 Earth Walk: I can move across difficult terrain without expending extra movement if I am using my walking speed on the ground or a floor.\"+\r\n\t\"\\n \\u2022 Merge with Stone: I can cast the Blade Ward cantrip as normal and as a bonus action Prof Bonus times per long rest. At 5th level, I can cast Pass Without Trace without using a spell slot or material component once per long rest, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"Merge with Stone (level 1)\" : {\r\n\t\t\tname : \"Merge with Stone\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"blade ward\"],\r\n\t\t\t\tselection : [\"blade ward\"],\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Blade Ward (as bonus action)\",\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"bonus action\", \"Blade Ward\"]],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"blade ward\" : {\r\n\t\t\t\t\ttime : \"1 a/bns\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Blade Ward as a bonus action a number of times per long rest equal to my proficiency bonus.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"merge with stone (level 5)\" : {\r\n\t\t\tname : \"Merge with Stone (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"pass without trace\"],\r\n\t\t\t\tselection : [\"pass without trace\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Pass Without Trace\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"pass without trace\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"pass without trace\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Merge with Stone trait.\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Pass Without Trace once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse fire genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bfires?\\b).*$/i,\r\n\tname : \"Multiverse Fire Genasi\",\r\n\tsortname : \"Genasi, Fire, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Fire genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Fire Genasi\"+\r\n\t\"\\n \\u2022 Fire Resistance: I have resistance to fire damage.\"+\r\n\t\"\\n \\u2022 Reach to the Blaze: I know the Produce Flame cantrip. At 3rd level, I learn Burning Hands. At 5th level, I learn Flame Blade. I can cast each spell without using a spell slot or material components once per long rest, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Reach to the Blaze\",\r\n\t\tspells : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"reach to the blaze (level 3)\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Burning Hands\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"reach to the blaze (level 5)\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze\",\r\n\t\t\t\tspells : [\"flame blade\"],\r\n\t\t\t\tselection : [\"flame blade\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Flame Blade\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"flame blade\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"flame blade\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"flame blade\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Reach to the Blaze trait.\",\r\n\t\t\t\t\tchanges : \"Using Reach to the Blaze, I can cast Flame Blade once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse water genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bwaters?\\b).*$/i,\r\n\tname : \"Multiverse Water Genasi\",\r\n\tsortname : \"Genasi, Water, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Water genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Acid\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Water Genasi\"+\r\n\t\"\\n \\u2022 Amphibious: I can breathe air and water\" + (typePF ? \"and I have a swimming speed equal to my walking speed.\" : \", have a swimming speed equal to walking speed.\")+\r\n\t\"\\n \\u2022 Acid Resistance: I have resistance to acid damage.\"+\r\n\t\"\\n \\u2022 Call to the Wave: I know the Acid Splash cantrip. At 3rd level, I can cast Create or Destroy Water without using a spell slot once per long rest. At 5th level, I can cast Water Walk without using a spell slot or material components once per long rest. I can also cast each spell using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these\" + (typePF ? \" (one-time choice).\" : \".\"),\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Call to the Wave\",\r\n\t\tspells : [\"acid splash\"],\r\n\t\tselection : [\"acid splash\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"call to the wave (level 3)\" : {\r\n\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave\",\r\n\t\t\t\tspells : [\"create or destroy water\"],\r\n\t\t\t\tselection : [\"create or destroy water\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Create or Destroy Water\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"call to the wave (level 5)\" : {\r\n\t\t\tname : \"Call to the Wave (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave\",\r\n\t\t\t\tspells : [\"water walk\"],\r\n\t\t\t\tselection : [\"water walk\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Water Walk\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"water walk\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"water walk\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"water walk\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Call to the Wave trait.\",\r\n\t\t\t\t\tchanges : \"Using Call to the Wave, I can cast Water Walk once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse githyanki\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*githyanki).*$/i,\r\n\tname : \"Multiverse Githyanki\",\r\n\tsortname : \"Githyanki, Multiverse\",\r\n\tsource : [[\"MotM\", 18]],\r\n\tplural : \"Githyanki\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Psychic\"],\r\n\tskillstxt : \"Choose any one skill that lasts until the end of my next long rest\",\r\n\ttoolProfs : [[\"Astral Knowledge: tool/weapon\", 1]],\r\n\tage : \" typically live to be around 100 years old. Githyanki who reside in the Astral Plane can live indefinitely.\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Githyanki\"+\r\n\t\t\"\\n \\u2022 Astral Knowledge: When I finish a long rest, I gain proficiency with 1 skill and with 1 weapon or tool from the PHB until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Githyanki Psionics: I know the Mage Hand cantrip, but require no components to cast it and the hand is invisible. At 3rd level, I learn Jump. At 5th level, I learn Misty Step. I can cast each without using components or a spell slot once per long rest, as well as by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githyanki Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\r\n\t\t\tchanges : \"Using Githyanki Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"githyanki psionics (level 3)\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (3)\",\r\n\t\t\t\tspells : [\"jump\"],\r\n\t\t\t\tselection : [\"jump\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Jump\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"jump\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"jump\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"jump\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Githyanki Psionics trait.\",\r\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Jump once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"githyanki psionics (level 5)\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (5)\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Misty Step\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"misty step\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"misty step\"].components + \"*\",\r\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Misty Step once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n// Githzerai\r\nRaceList[\"multiverse githzerai\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*githzerai).*$/i,\r\n\tname : \"Multiverse Githzerai\",\r\n\tsortname : \"Githzerai, Multiverse\",\r\n\tsource : [[\"MotM\", 19]],\r\n\tplural : \"Githzerai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\r\n\tdmgres : [\"Psychic\"],\r\n\tage : \" typically live to be around 100 years old. Githzerai who reside in the Astral Plane can live indefinitely.\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Githzerai\"+\r\n\t\t\"\\n \\u2022 Githzerai Psionics: I know the Mage Hand cantrip, but require no components to cast it and the hand is invisible. At 3rd level, I learn Shield. At 5th level, I learn Detect Thoughts. I can cast each without using components or a spell slot once per long rest, or by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Mental Discipline: I have advantage on saving throws to avoid or end the charmed and frightened conditions on myself.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githzerai Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\r\n\t\t\tchanges : \"Using Githzerai Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"githzerai psionics (level 3)\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (3)\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Shield\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"shield\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"shield\"].components + \"*\",\r\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Shield once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"githzerai psionics (level 5)\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (5)\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Thoughts\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect thoughts\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"detect thoughts\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"detect thoughts\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Githzerai Psionics trait.\",\r\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Detect Thoughts once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse goblin\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*goblin).*$/i,\r\n\tname : \"Multiverse Goblin\",\r\n\tsortname : \"Goblin, Multiverse\",\r\n\tsource : [[\"MotM\", 20]],\r\n\tplural : \"Goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"fury of the small\" : {\r\n\t\t\tname : \"Fury of the Small\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" damage\"; })\r\n\t\t}\r\n\t},\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Goblin (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have advantage on saving throws to avoid or end the charmed condition on myself.\"+\r\n\t\t\"\\n \\u2022 Fury of the Small: A number of times per long rest equal to my Proficiency Bonus, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my Proficiency Bonus.\"+\r\n\t\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\nRaceList[\"multiverse goliath\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*goliath).*$/i,\r\n\tname : \"Multiverse Goliath\",\r\n\tsortname : \"Goliath, Multiverse\",\r\n\tsource : [[\"MotM\", 21]],\r\n\tplural : \"Goliaths\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Athletics\"],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"stone's endurance\" : {\r\n\t\t\tname : \"Stone's Endurance\",\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Goliath\"+\r\n\t\t\"\\n \\u2022 Stone's Endurance: Proficiency Bonus per long rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\t\"\\n \\u2022 Little Giant: I have proficiency in the Athletics skill and count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse hobgoblin\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*hobgoblin).*$/i,\r\n\tname : \"Multiverse Hobgoblin\",\r\n\tsortname : \"Hobgoblin, Multiverse\",\r\n\tsource : [[\"MotM\", 23]],\r\n\tplural : \"Hobgoblins\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tfeatures : {\r\n\t\t\"fey gift\" : {\r\n\t\t\tname : \"Fey Gift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \" (Help action)\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"fortune from the many\" : {\r\n\t\t\tname : \"Fortune from the Many\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"fey gift: additional effect\" : {\r\n\t\t\tname : \"Fey Gifts: Additional Effects\",\r\n\t\t\tminlevel : 3,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Whenever I use Fey Gift to take the Help action, I can choose one of these additional effects:\",\r\n\t\t\t\t\t\" \\u2022 Hospitality: The one I help and I each gain 1d6 + my Prof Bonus in temporary HP\",\r\n\t\t\t\t\t\" \\u2022 Passage: The one I help and I both gain +10 ft walking speed until my next turn stats\",\r\n\t\t\t\t\t\" \\u2022 Spite: The first time the one I help hits an attack roll before my next turn starts,\",\r\n\t\t\t\t\t\"   the creature hit gains disadvantage on its next attack roll within the next minute\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hobgoblin (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have adv. on saves to avoid or end being charmed.\"+\r\n\t\t'\\n \\u2022 Fey Gift: Prof Bonus per long rest, I can take the Help action as a bonus action. From 3rd-level, I can produce an additional effect when I do this: Hospitality, Passage, or Spite.'+\r\n\t\t\"\\n \\u2022 Fortune from the Many: Prof Bonus per long rest, when I miss an attack or fail an ability check or saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +3).\"\r\n};\r\nRaceList[\"multiverse kenku\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*kenku).*$/i,\r\n\tname : \"Multiverse Kenku\",\r\n\tsortname : \"Kenku, Multiverse\",\r\n\tsource : [[\"MotM\", 24]],\r\n\tplural : \"Kenku\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose any two skills\",\r\n\tabilitySave : 6,\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"kenku recall\" : {\r\n\t\t\tname : \"Kenku Recall\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kenku\"+\r\n\t\t\"\\n \\u2022 Expert Duplication: I have adv. on checks to produce exact copies of writing or craftwork.\"+\r\n\t\t\"\\n \\u2022 Kenku Recall: Proficiency Bonus per long rest, I can give myself advantage on an ability check using any skill in which I have proficiency.\"+\r\n\t\t\"\\n \\u2022 Mimicry: I can mimic sounds and voices I have heard. Creatures hearing me can determine the imitation with a successful Wisdom (Insight) check against a DC of 8 + my Proficiency Bonus + my Charisma modifier.\"\r\n};\r\nvar MotM_Kobold_Draconic_Cry = \"\\n \\u2022 Draconic Cry: As a bonus action, I can let out a cry. Until the start of my next turn, my allies and I have advantage on attack rolls against any enemies within 10 ft of me who could hear the cry. I can do this a number of times per long rest equal to my Proficiency Bonus.\";\r\nRaceList[\"multiverse kobold\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*kobold).*$/i,\r\n\tname : \"Multiverse Kobold\",\r\n\tsortname : \"Kobold, Multiverse\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tplural : \"Kobolds\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"draconic cry\" : {\r\n\t\t\tname : \"Draconic Cry\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy: Choose one of the following with the \"Racial Options\" button:'+\r\n\t\t\"\\n    - Defiance: I have advantage on saves vs. being frightened\"+\r\n\t\t\"\\n    - Draconic Sorcery: I know one sorcerer cantrip of my choice\"+\r\n\t\t\"\\n    - Craftiness: I gain proficiency in one of the following: Arcana, Investigation, Medicine, Sleight of Hand, or Survival.\"+\r\n\t\tMotM_Kobold_Draconic_Cry\r\n};\r\nAddRacialVariant(\"multiverse kobold\", \"craftiness\", {\r\n\tregExpSearch : /craftiness/i,\r\n\tname : \"Craftiness Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tskillstxt : \"Choose one from Arcana, Investigation, Medicine, Sleight of Hand, or Survival\",\r\n\ttrait : \"Kobold\"+\r\n\t\t\"\\n \\u2022 Kobold Legacy (Craftiness): I gain proficiency in one of the following skills of my choice: Arcana, Investigation, Medicine, Sleight of Hand, or Survival.\"+\r\n\t\tMotM_Kobold_Draconic_Cry\r\n});\r\nAddRacialVariant(\"multiverse kobold\", \"defiance\", {\r\n\tregExpSearch : /defiance/i,\r\n\tname : \"Defiance Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tplural : \"Kobolds\",\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy (Defiance): I have advantage on saving throws to avoid or end the frightened condition on myself.'+\r\n\t\tMotM_Kobold_Draconic_Cry,\r\n});\r\nAddRacialVariant(\"multiverse kobold\", \"draconic sorcery\", {\r\n\tregExpSearch : /sorcery/i,\r\n\tname : \"Draconic Sorcery Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Kobold Legacy\",\r\n\t\t\"class\" : \"sorcerer\",\r\n\t\tlevel : [0, 0],\r\n\t}],\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy (Draconic Sorcery): I know one cantrip from the sorcerer spell list. Intelligence, Wisdom, or Charisma is my spellcasting ability for it (one-time choice).'+\r\n\t\tMotM_Kobold_Draconic_Cry,\r\n});\r\n// Lizardfolk\r\nRaceList[\"multiverse lizardfolk\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*lizard(folk|man|men)).*$/i,\r\n\tname : \"Multiverse Lizardfolk\",\r\n\tsortname : \"Lizardfolk, Multiverse\",\r\n\tsource : [[\"MotM\", 26]],\r\n\tplural : \"Lizardfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tskillstxt : \"Choose two from Animal Handling, Medicine, Nature, Perception, Stealth, and Survival\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bbite\\b/i,\r\n\t\tname : \"Bite\",\r\n\t\tsource : [[\"MotM\", 26]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\r\n\t\tname : \"Natural Armor\",\r\n\t\tsource : [[\"MotM\", 26]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"hungry jaws\" : {\r\n\t\t\tname : \"Hungry Jaws\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return n + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Lizardfolk\"+\r\n\t\t\"\\n \\u2022 Bite: My unarmed strikes with my fanged maw deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 15 minutes at a time.\"+\r\n\t\t\"\\n \\u2022 Hungry Jaws: Prof Bonus per long rest, as a bonus action, I can make a special bite attack. If it hits, it deals damage and I gain temporary HP equal to my proficiency bonus.\"+\r\n\t\t\"\\n \\u2022 Natural Armor: I have an AC of 13 + Dexterity modifier + shield.\"+\r\n\t\t\"\\n \\u2022 Nature's Intuition: I gain proficiency with two of the following  Animal Handling, Medicine, Nature, Perception, Stealth, or Survival.\"\r\n};\r\nRaceList[\"multiverse minotaur\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*minotaur).*$/i,\r\n\tname : \"Multiverse Minotaur\",\r\n\tsortname : \"Minotaur, Multiverse\",\r\n\tsource : [[\"MotM\", 27]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"MotM\", 27]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tdescription : \"Attack as a bonus action after moving 20 ft with the Dash action\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tabilitySave : 1,\r\n\tvision : [[\"Always know north\", 0], [\"Adv. on Survival to navigate or track\", 0]],\r\n\taction : [[\"bonus action\", \"Goring Rush (with Dash)\"], [\"bonus action\", \"Hammering Horns (after hit)\"]],\r\n\ttrait : \"Minotaur\"+(typePF ? \"\\n\" : \"\")+\r\n\t\t\" \\u2022 Horns: My unarmed strikes with horns deal 1d6 piercing damage.\"+\r\n\t\t\"\\n \\u2022 Goring Rush: When taking a Dash action and moving at least 20 ft, I can make a horns attack as a bonus action.\"+\r\n\t\t\"\\n \\u2022 Hammering Horns: As a bonus action after I hit a melee attack on my turn during my Attack action, I can shove the target, if it's up to one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 10 ft away from me.\"+\r\n\t\t\"\\n \\u2022 Labyrinthine Recall: \" + (typePF ? \"I always know which direction is north, and have adv. on any Wis (Survival) check I make to navigate or track.\" : \"I have adv. on Survival to navigate or track and always know north.\")\r\n};\r\nRaceList[\"multiverse orc\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))(?=.*orc).*$/i,\r\n\tname : \"Multiverse Orc\",\r\n\tsortname : \"Orc, Multiverse\",\r\n\tsource : [[\"MotM\", 28]],\r\n\tplural : \"Orcs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Orc\"+\r\n\t\t\"\\n \\u2022 Adrenaline Rush: Proficiency bonus per long rest, I can take the Dash action as a bonus action and gain my proficiency bonus in temporary hit points.\"+\r\n\t\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\"\\n \\u2022 Relentless Endurance: Once per long rest, when I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead.\",\r\n\tfeatures : {\r\n\t\t\"adrenaline rush\" : {\r\n\t\t\tname : \"Adrenaline Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t},\r\n\t\t\"relentless endurance\" : {\r\n\t\t\tname : \"Relentless Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse satyr\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*satyr).*$/i,\r\n\tname : \"Multiverse Satyr\",\r\n\tsortname : \"Satyr, Multiverse\",\r\n\tsource : [[\"MotM\", 29]],\r\n\tplural : \"Satyr\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"spells\"] },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(satyr|\\bram\\b))(?=.*headbutt).*$/i,\r\n\t\tname : \"Satyr Headbutt\",\r\n\t\tsource : [[\"MotM\", 29]],\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tscoresGeneric : true,\r\n\tskills : [\"Performance\", \"Persuasion\"],\r\n\ttrait : \"Satyr (my creature type is fey, rather than humanoid)\"+\r\n\t\t\"\\n \\u2022 Ram: My unarmed strikes with my horned head deal 1d6 bludgeoning damage.\"+\r\n\t\t\"\\n \\u2022 Magic Resistance: I have advantage on saves against spells.\"+\r\n\t\t\"\\n \\u2022 Mirthful Leaps: Whenever I make a long or high jump, I can roll a d8 and add the number rolled to the number of feet I cover, even when making a standing jump. This extra distance costs movement as normal.\"+\r\n\t\t\"\\n \\u2022 Reveler: I have proficiency in Performance, Persuasion, and one musical instrument.\"\r\n};\r\nRaceList[\"multiverse sea elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\r\n\tname : \"Multiverse Sea Elf\",\r\n\tsortname : \"Elf, Sea, Multiverse\",\r\n\tsource : [[\"MotM\", 30]],\r\n\tplural : \"Sea Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Friend of the Sea\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Sea Elf (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Child of the Sea. I can breathe air and water and have resistance to cold damage.\"+\r\n\t\t\"\\n \\u2022 Friend of the Sea: I can communicate simple ideas to beasts with a swimming speed. It can understand my words, though I have no special ability to understand it in return.\"\r\n};\r\nRaceList[\"multiverse shadar-kai\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\r\n\tname : \"Multiverse Shadar-kai\",\r\n\tsortname : \"Elf, Shadow (Shadar-kai), Multiverse\",\r\n\tsource : [[\"MotM\", 31]],\r\n\tplural : \"Shadar-kai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tdmgres : [\"Necrotic\"],\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Shadar-kai (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Blessing of the Raven Queen: Prof Bonus per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. Once I reach 3rd level, I then also appear translucent and have resistance to all damage until the start of my next turn.\",\r\n\tfeatures : {\r\n\t\t\"blessing of the raven queen\" : {\r\n\t\t\tname : \"Blessing of the Raven Queen\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n[{\r\n\tname : \"Beasthide\",\r\n\tregExpSearch : \"(?=.*beast)(?=.*hide)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Beasthide): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance. This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain 1d6 + twice my proficiency bonus in temporary hit points and a +1 bonus to my AC.\",\r\n\textra : {\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"1d6 + \" + (2 * n) + \" temp HP\"; })\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}, {\r\n\tname : \"Longtooth\",\r\n\tregExpSearch : \"(?=.*long)(?=.*(tooth|teeth))\",\r\n\ttrait : \"\\n \\u2022 Shifting (Longtooth): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points and my fangs elongate. As part of the bonus action when I shift and as a bonus action while shifted, I can make a single unarmed strike with my elongated fangs that deals 1d6 piercing damage.\",\r\n\textra : {\r\n\t\taction : [[\"bonus action\", \"Longtooth Fangs (while shifted)\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\t\tname : \"Longtooth Fangs\",\r\n\t\t\tsource : [[\"MotM\", 32]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Only while shifted; One attack as bonus action\",\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}, {\r\n\tname : \"Swiftstride\",\r\n\tregExpSearch : \"(?=.*swift)(?=.*stride)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Swiftstride): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points and +10 ft to my walking speed. Additionally, as a reaction when a creature ends its turn within 5 ft of me, I can move up to 10 ft. This reactive movement doesn't provoke opportunity attacks.\",\r\n\textra : {\r\n\t\taction : [['reaction', 'Reactive Stride (while shifted)']]\r\n\t}\r\n}, {\r\n\tname : \"Wildhunt\",\r\n\tregExpSearch : \"(?=.*wild)(?=.*hunt)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Wildhunt): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance. This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points. While I'm shifted, I have advantage on Wisdom checks and no creature within 30 ft of me can make an attack roll with advantage against me unless I'm incapacitated.\",\r\n\textra : {\r\n\t\tvision : [\r\n\t\t\t[\"Darkvision\", 60],\r\n\t\t\t[\"While shifted, creatures within 30 ft can't attack me with adv.\", 0]\r\n\t\t],\r\n\t\tsavetxt : { text : [\"While shifted, Adv. on Wis checks\"] }\r\n\t}\r\n}].forEach(function(o) {\r\n\tvar objNm = \"multiverse \" + o.name.toLowerCase() + \" shifter\";\r\n\tRaceList[objNm] = {\r\n\t\tregExpSearch : RegExp(\"^(?=.*(multiverse|motm\\\\b))\" + o.regExpSearch + \"(?=.*shifter).*$\", \"i\"),\r\n\t\tname : \"Multiverse \" + o.name + \" Shifter\",\r\n\t\tsortname : \"Shifter, \" + o.name + \", Multiverse\",\r\n\t\tsource : [[\"MotM\", 32]],\r\n\t\tplural : o.name + \" shifters\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskillstxt : \"Choose one skill from Acrobatics, Athletics, Intimidation, or Survival\",\r\n\t\tscoresGeneric : true,\r\n\t\ttrait : o.name + \" Shifter\"+\r\n\t\t\t\"\\n \\u2022 Bestial Instincts: I have proficiency in Acrobatics, Athletics, Intimidation, or Survival.\"+\r\n\t\t\to.trait,\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : ProficiencyBonusList.map(function(n) { return 2 * n + \" temp HP\"; }),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tfor (var attr in o.extra) {\r\n\t\tRaceList[objNm][attr] = o.extra[attr];\r\n\t}\r\n});\r\nRaceList[\"tabaxi-motm\"] = { // just a plain improvement over the previous, no need to make it a separate \"multiverse\" choice\r\n\tregExpSearch : /tabaxi/i,\r\n\tname : \"Tabaxi\",\r\n\tsource : [[\"MotM\", 33]],\r\n\tplural : \"Tabaxi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(tabaxi|\\bcat\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Tabaxi Claws\",\r\n\t\tsource : [[\"MotM\", 33]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tage : \" reach adulthood in their late teens and live less than 100 years [according to VGtM]\",\r\n\theight : \", when Medium sized, range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\") [according to VGtM]\",\r\n\tweight : \", when Medium sized, weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb) [according to VGtM]\",\r\n\theightMetric : \", when Medium sized, range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm) [according to VGtM]\",\r\n\tweightMetric : \", when Medium sized, weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tfeatures : {\r\n\t\t\"feline agility\" : {\r\n\t\t\tname : \"Feline Agility\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \" Turn\",\r\n\t\t\tadditional : \"still for 1 turn to recover\",\r\n\t\t\ttooltip : \" (can be replenished by not moving for one whole turn)\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Tabaxi\"+\r\n\t\t\"\\n \\u2022 Cat's Talent: I have proficiency in Perception and Stealth.\"+\r\n\t\t\"\\n \\u2022 Cat's Claws: I can use my retractable claws to make unarmed strikes dealing 1d6 slashing damage. They also give me a climbing speed equal to my walking speed.\"+\r\n\t\t\"\\n \\u2022 Feline Agility: When moving on my turn in combat, I can move double my speed. Once I do this, I can't do it again until I don't move at all on one of my turns.\"\r\n};\r\nRaceList[\"tortle-motm\"] = { // just a plain improvement over the previous, no need to make it a separate \"multiverse\" choice\r\n\tregExpSearch : /tortle/i,\r\n\tname : \"Tortle\",\r\n\tsortname : \"Tortle\",\r\n\tsource : [[\"MotM\", 34]],\r\n\tplural : \"Tortles\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, Perception, Stealth, or Survival\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*shell).*$/i,\r\n\t\tname : \"Tortle's Shell\",\r\n\t\tsource : [[\"MotM\", 34]],\r\n\t\tac : 17,\r\n\t\tdex : -10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*\\bclaws?\\b).*$/i,\r\n\t\tname : \"Tortle's Claws\",\r\n\t\tsource : [[\"MotM\", 34]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tage : \" reach adulthood by the age of 15 and live an average of 50 years [according to the Tortle Package]\",\r\n\theight : \", when Medium sized, stand between 5 and 6 feet tall (4'10\\\" + 2d8\\\") [according to the Tortle Package]\",\r\n\tweight : \", when Medium sized, weigh around 450 lb (400 + 2d8 \\xD7 2d4 lb) [according to the Tortle Package]\",\r\n\theightMetric : \", when Medium sized, stand between 1,5 and 1,8 metres tall (150 + 5d8 cm) [according to the Tortle Package]\",\r\n\tweightMetric : \", when Medium sized, weigh around 190 kg (180 + 5d8 \\xD7 4d4 / 10 kg) [according to the Tortle Package]\",\r\n\taction : [[\"action\", \"Shell Defense (start)\"], [\"bonus action\", \"Shell Defense (end)\"]],\r\n\ttrait : \"Tortle\"+\r\n\t\t\"\\n \\u2022 Claws: My unarmed strikes with my claws deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 1 hour at a time.\"+\r\n\t\t\"\\n \\u2022 Natural Armor: I have a base AC of 17, but I can't add my Dex to it or wear armor.\"+\r\n\t\t\"\\n \\u2022 Shell Defense: As an action, I can withdraw into my shell and gain +4 AC and adv. on Str and Con saves, but I count as prone, have speed 0, have disadv. on Dex saves, and can't take reactions. The only action I can take is a bonus action to emerge from the shell.\"\r\n};\r\nRaceList[\"multiverse triton\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*triton).*$/i,\r\n\tname : \"Multiverse Triton\",\r\n\tsortname : \"Triton, Multiverse\",\r\n\tsource : [[\"MotM\", 35]],\r\n\tplural : \"Triton\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tlanguageProfs : [\"Common\", \"Emissary of the Sea\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Triton\"+\r\n\t\t\"\\n \\u2022 Control Air and Water: I can cast the Fog Cloud spell. At 3rd level, Gust of Wind. At 5th level, Water Walk. I can cast each without using a spell slot once per long rest, and by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Emissary of the Sea: I can communicate simple ideas to beasts, elementals, and monstrosities with a swimming speed. They can understand my words, though I have no special ability to understand them in return.\"+\r\n\t\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Amphibious: I can breathe air and water.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"control air and water (level 1)\" : {\r\n\t\t\tname : \"Control Air and Water (level 1)\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"fog cloud\"],\r\n\t\t\t\tselection : [\"fog cloud\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Fog Cloud\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"control air and water (level 3)\" : {\r\n\t\t\tname : \"Control Air and Water (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Gust of Wind\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"control air and water (level 5)\" : {\r\n\t\t\tname : \"Control Air and Water (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"water walk\"],\r\n\t\t\t\tselection : [\"water walk\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Water Walk\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse yuan-ti\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*yuan.ti).*$/i,\r\n\tname : \"Multiverse Yuan-Ti\",\r\n\tsortname : \"Yuan-Ti, Multiverse\",\r\n\tsource : [[\"MotM\", 36]],\r\n\tplural : \"Yuan-Ti\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"poisoned\", \"spells\"],\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Yuan-Ti\"+\r\n\t\t\"\\n \\u2022 Serpentine Spellcasting: I know the Poison Spray cantrip and I can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these spells (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Magic and Poison Resistance: I have advantage on saving throws against spells and on saving throws to avoid or end being poisoned. I also have resistance to poison damage.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Serpentine Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2,\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"One snake with Intelligence 3 or less save or charmed for the duration\",\r\n\t\t\tchanges : \"I can cast Animal Friendship at-will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"serpentine spellcasting (level 3)\" : {\r\n\t\t\tname : \"Serpentine Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Serpentine Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Suggestion\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Creatures\r\n\n// pub_20220315_CotN.js\r\n// This file adds all the magic items from Critical Role: Call of the Netherdeep to MPMB's Character Record Sheet\r\n\r\nSourceList.CotN = {\r\n\tname : \"Critical Role: Call of the Netherdeep [magic items]\",\r\n\tabbreviation : \"CotN\",\r\n\tabbreviationSpellsheet : \"MO\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Critical Role\",\r\n\turl : \"https://dnd.wizards.com/products/call-netherdeep\",\r\n\tdate : \"2022/03/15\"\r\n};\r\n\r\nCreatureList[\"young horizonback tortoise\"] = { // Contains contributions by Nod_Hero\r\n\tname : \"Young Horizonback Tortoise\",\r\n\tnameAlt : [\"Tortoise, Young Horizonback\"],\r\n\tsource : [[\"CotN\", 26]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 68,\r\n\thd : [8, 12],\r\n\tspeed : \"30 ft\",\r\n\tscores : [19, 11, 15, 2, 12, 5],\r\n\tpassivePerception : 11,\r\n\tlanguages : \"understands Goblin but can't speak\",\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"piercing\"],\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\",\r\n\t\tmodifiers : [1, \"\"]\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amphibious\",\r\n\t\tdescription : \"The tortoise can breathe air and water.\",\r\n\t}]\r\n};\r\n\r\nMagicItemsList[\"breathing bubble\"] = {\r\n\tname : \"Breathing Bubble\",\r\n\tsource : [[\"W\", 266], [\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This translucent, bubble-like sphere has a slightly tacky outer surface. I gain its benefits only while wearing it over my head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tdescriptionFull : \"This translucent, bubble-like sphere has a slightly tacky outer surface, and you gain the item's benefits only while wearing it over your head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nMagicItemsList[\"earring of message\"] = {\r\n\tname : \"Earring of Message\",\r\n\tsource : [[\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"The blue crystal of this earring is wrapped with delicate copper wire. The earring has 5 charges. While wearing it, I can use an action to expend 1 charge and cast the message spell. The earring regains 1d4 + 1 expended charges daily at dawn.\",\r\n\tdescriptionFull : \"The blue crystal of this earring is wrapped with delicate copper wire. The earring has 5 charges. While wearing it, you can use an action to expend 1 charge and cast the message spell. The earring regains 1d4 + 1 expended charges daily at dawn.\",\r\n\tusages : 5,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4+1\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"message\"],\r\n\t\tselection : [\"message\"],\r\n\t\tfirstCol : '1'\r\n\t}]\r\n};\r\nMagicItemsList[\"medal of muscle\"] = {\r\n\tname : \"Medal of Muscle\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as a an action, I can squeeze this medal tightly in the palm of my hand. Doing so gives me advantage on Strength checks and Strength saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"You can squeeze this medal tightly in the palm of your hand as an action. Doing so gives you advantage on Strength checks and Strength saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the conch\"] = {\r\n\tname : \"Medal of the Conch\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can rub this medal to gain a swimming speed equal to my walking speed for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to rub this medal, you gain a swimming speed equal to your walking speed for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the horizonback\"] = {\r\n\tname : \"Medal of the Horizonback\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as a reaction when I would be hit by an attack, I can increase my AC by 5 until the start of my next turn, including against the triggering attack. I must be wearing the medal and able to see the creature that made the triggering attack. Once this property has been used, the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you would be hit by an attack, you can use your reaction to increase your AC by 5 until the start of your next turn, including against the triggering attack. You must be wearing the medal and able to see the creature that made the triggering attack to use this property. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the maze\"] = {\r\n\tname : \"Medal of the Maze\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can trace the maze inscribed on this medal to gain advantage on Wisdom checks and to know the quickest route to the end of any nonmagical path or maze for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to trace the maze inscribed on this medal, you gain advantage on Wisdom checks and know the quickest route to the end of any nonmagical path or maze for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the meat pie\"] = {\r\n\tname : \"Medal of the Meat Pie\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can press this medal to my mouth to gain 2d4 + 2 temporary hit points. Once this property has been used, it can't be used again, and the medal becomes nonmagical. While magical, this medal is slightly warm to the touch (as if it's fresh from the oven) and smells faintly of baked pie crust.\",\r\n\tdescriptionFull : \"You gain 2d4 + 2 temporary hit points when you use an action to press this medal to your mouth. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"+\r\n\t\"\\n   While magical, this medal is slightly warm to the touch (as if it's fresh from the oven) and smells faintly of baked pie crust.\"\r\n};\r\nMagicItemsList[\"medal of the wetlands\"] = {\r\n\tname : \"Medal of the Wetlands\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can trace the edge of this medal, making it so that difficult terrain doesn't cost me extra movement for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to trace the edge of this medal, difficult terrain doesn't cost you extra movement for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of wit\"] = {\r\n\tname : \"Medal of Wit\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can press this medal to my temple to give me advantage on Intelligence checks and Intelligence saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"You can press this medal to your temple as an action. Doing so gives you advantage on Intelligence checks and Intelligence saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"ring of red fury\"] = {\r\n\tname : \"Ring of Red Fury\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"ring\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This ring allows me to breathe water and gives me a swimming speed equal to my walking speed. As a bonus action once per long rest, I can use it to, for 1 minute, have adv. on Str checks and saves, add my Prof Bonus to damage rolls of my attacks, ignore difficult terrain, be immune to paralyzed and restrained.\",\r\n\tdescriptionLong : \"While wearing this ring with a stripe of ruidium running through it, I am able to breathe water and I have a swimming speed equal to my walking speed. As a bonus action once per long rest, I can use it to, for 1 minute, have adv. on my Strength checks and saves, add my proficiency bonus to the damage rolls of my attacks, have difficult terrain not cost me extra movement, and be immune to being paralyzed and restrained. When I do this bonus action, I have to make a DC 20 Charisma save or gain 1 level of exhaustion and become corrupted. If the Apotheon is killed or redeemed, this ring turns into a Ring of Free Action.\",\r\n\tdescriptionFull : [\r\n\t\t\"This ring has a stripe of ruidium running through it. While wearing the ring, you gain the following benefits:\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Rage\") + \". As a bonus action, you can use the ring to gain the following benefits, which last for 1 minute or until you are incapacitated:\",\r\n\t\t\"\\u2022 You have advantage on Strength checks and Strength saving throws.\",\r\n\t\t\"\\u2022 When you hit with an attack, you can add your proficiency bonus to the damage roll.\",\r\n\t\t\"\\u2022 Difficult terrain doesn't cost you extra movement, and you are immune to the paralyzed and restrained conditions.\",\r\n\t\t\"You can't use this property of the ring again until you finish a long rest.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you use the Ruidium Rage property of the ring, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and the ring of red fury becomes a Ring of Free Action.\"\r\n\t].join(\"\\n   \"),\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nMagicItemsList[\"ruidium armor\"] = {\r\n\tname : \"Ruidium Armor\",\r\n\tnameTest : /ruidium.*armou?r/i,\r\n\tsource : [[\"CotN\", 215]],\r\n\ttype : \"armor (medium or heavy)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic armor containing ruidium gives me resistance to psychic damage, a swimming speed equal to my walking speed, and allows me to breathe water. If I roll a 1 on a save while wearing it, I must make a DC 15 Charisma save or gain 1 level of exhaustion and become corrupted by ruidium.\",\r\n\tdescriptionFull : [\r\n\t\t\"This magic armor has a dull, rusty color or has veins of ruidium running through it. While you wear this armor, you gain the following benefits:\",\r\n\t\t\"\\u2022 You have resistance to psychic damage.\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you roll a 1 on a saving throw while wearing this armor, you must make a DC 15 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and ruidium armor becomes +1 armor.\"\r\n\t].join(\"\\n   \"),\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Ruidium\", \"Armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Ruidium\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/medium|heavy/i).test(inObj.type) || (/hide/i).test(inObj.name);\r\n\t\t},\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\tdmgres : [\"Psychic\"],\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n};\r\nMagicItemsList[\"ruidium shield\"] = {\r\n\tname : \"Ruidium Shield\",\r\n\tsource : [[\"CotN\", 215]],\r\n\ttype : \"shield\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic shield gives me resistance to psychic damage, a swimming speed equal to my walking speed, and allows me to breathe water. As a reaction when I take psychic damage, I can have another creature I can see in 30 ft take the damage instead, but I must make a DC 20 Cha save or gain 1 level of exhaustion.\",\r\n\tdescriptionFull : [\r\n\t\t\"Tendrils of ruidium extend across the metal surface of this shield. While this shield is on your person, you gain the following benefits:\",\r\n\t\t\"\\u2022 You have resistance to psychic damage.\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Psychic Reflection\") + \". When you take psychic damage while holding the shield, you can use your reaction to choose another creature you can see within 30 feet of you. That creature takes the psychic damage you would have taken.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you use the shield's Psychic Reflection property, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and a ruidium shield becomes a +2 shield.\"\r\n\t].join(\"\\n   \"),\r\n\tweight : 6,\r\n\tshieldAdd : \"Ruidium Shield\",\r\n\tdmgres : [\"Psychic\"],\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\taction : [[\"reaction\", \" (if taking psychic damage)\"]]\r\n}\r\nMagicItemsList[\"ruidium weapon\"] = {\r\n\tname : \"Ruidium Weapon\",\r\n\tnameTest : \"Ruidium\",\r\n\tsource : [[\"CotN\", 216]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon deals an extra 2d6 psychic damage to creatures. It also allows me to breath water and gives me a swimming speed equal to my walking speed. If I roll a 1 on an attack roll with it, I must make a DC 20 Cha save or gain 1 level of exhaustion and become corrupted by ruidium.\",\r\n\tdescriptionFull : [\r\n\t\t\"This magic weapon has a dull, rusty color or has veins of ruidium running through it. While this weapon is on your person, you gain the following benefits:\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Strike\") + \". A creature you hit with this weapon takes an extra 2d6 psychic damage.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you roll a 1 on an attack roll made with this weapon, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and a ruidium weapon becomes a +2 weapon.\"\r\n\t].join(\"\\n   \"),\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ( /ruidium/i.test(v.WeaponTextName) ) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 psychic damage vs. creatures';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Ruidium\" in the name of a weapon, it will be treated as the magic item Ruidium Weapon. Whenever it hits a creature, it deals an extra 2d6 psychic damage.'\r\n\t\t]\r\n\t},\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n};\r\nMagicItemsList[\"teleportation tablet\"] = {\r\n\tname : \"Teleportation Tablet\",\r\n\tsource : [[\"CotN\", 216]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can break this clay tablet in half to create a 5-ft radius Teleportation Circle to its predetermined destination within 30 ft, lasting until the end of my next turn. I can learn its destination by studying it for 10 minutes and making a DC 21 Arcana check. Once broken, the tablet turns to dust.\",\r\n\tdescriptionFull : \"This clay tablet is eight inches long, four inches wide, and half an inch thick. Inscribed on it is the sigil sequence for a permanent teleportation circle. A creature that studies the sequence for 10 minutes can make a DC 21 Intelligence (Arcana) check, learning the circle's destination on a success.\"+\r\n\t\"\\n   You can use an action to break the tablet in half, turning it to dust. If the tablet is broken while it is on the same plane of existence as the teleportation circle whose sigil sequence was engraved on it, a 10-foot-diameter teleportation circle of glowing blue light appears on the ground in an unoccupied space you choose within 30 feet of you. This teleportation circle has the characteristics of one created using the teleportation circle spell, except that it connects to the teleportation circle whose sigil sequence appears on the tablet.\"+\r\n\t\"\\n   The teleportation circle created by the tablet disappears at the end of your next turn.\"\r\n};\r\n\r\n// Vestige of Divergence\r\nvar EGtW_Vestiges_Replace = function (sDescr) {\r\n\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|giving|grants|of|to|for) I\\b/ig, \"$1 me\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; });\r\n}\r\nvar EGtW_JewelOfThreePrayersFullDescription = [\r\n\t\"The Jewel of Three Prayers is a Vestige of Divergence. In ancient times, Alyxian the Apotheon bore this amulet as a symbol of his covenant with three Prime Deities: Sehanine the Moon Weaver, Avandra the Change Bringer, and Corellon the Arch Heart.[[ When the jewel is found, only Sehanine's power thrums within its dormant heart. The power of the other two deities waits to be reawakened by a hero \\u2014 or heroes \\u2014 who can follow in Alyxian's footsteps.]]\",\r\n\t\">>Dormant<<. In this state, the Jewel of Three Prayers is a glittering golden disk attached to a fine golden chain. The chain magically resizes to function as a necklace for the creature that wears it.\",\r\n\t\"In its Dormant State, the jewel has the following properties:\",\r\n\t\"\\u2022 You gain a +1 bonus to AC while wearing the jewel.\",\r\n\t\"\\u2022 While wearing or holding the jewel, you can use an action to cause it to shed bright light in a 15-foot radius and dim light for an additional 15 feet. The light lasts until you extinguish it (no action required).\",\r\n\t\"\\u2022 The jewel has 3 charges and regains all its expended charges daily at dawn. While holding the jewel, you can expend 1 charge from it to cast the invisibility spell.\",\r\n\t\">>Awakened<<. In this state, the jewel has received the blessing of Avandra the Change Bringer. Three delicate spires unfurl from the jewel's center, like the buds of flowers opening in the spring. Three lapis lazuli stones rest like dewdrops on these spires.\",\r\n\t\"The following benefits of the jewel improve:\",\r\n\t\"\\u2022 The bonus that the jewel confers to your AC increases to +2.\",\r\n\t\"\\u2022 Its number of charges increases to 5.\",\r\n\t\"The jewel gains the following additional properties, which you can use while wearing or holding it:\",\r\n\t\"\\u2022 You can expend 1 of the jewel's charges (no action required) to end one of the following conditions on yourself: grappled, paralyzed, or restrained.\",\r\n\t\"\\u2022 When another creature you can see within 60 feet of you fails a saving throw, you can expend 1 of the jewel's charges as a reaction to enable that creature to reroll the saving throw, potentially turning a failure into a success. The creature must use the new roll.\",\r\n\t\">>Exalted<<. In this state, the jewel has received the blessing of Corellon the Arch Heart. A gleaming emerald surrounded by a halo of gold appears on the jewel.\",\r\n\t\"The following benefits of the jewel improve:\",\r\n\t\"\\u2022 The bonus that the jewel confers to your AC increases to +3.\",\r\n\t\"\\u2022 Its number of charges increases to 7.\",\r\n\t\"The jewel gains the following additional properties, which you can use while wearing or holding it:\",\r\n\t\"\\u2022 You gain the ability to breathe water, and you gain a swimming speed equal to your walking speed.\",\r\n\t\"\\u2022 Each of your allies within 30 feet of you gains the ability to breathe water and gains a swimming speed equal to its walking speed.\",\r\n\t\"\\u2022 As a bonus action, you can expend 1 of the jewel's charges to target yourself or one willing creature you can see within 15 feet of yourself. The target teleports to an unoccupied space of your choice within 15 feet of yourself, along with any equipment the target is wearing or carrying. The target appears in a flash of golden radiance, and each creature of your choice within 5 feet of the target's new location must make a DC 18 Constitution saving throw. On a failed save, the creature takes 4d10 radiant damage and is blinded until the start of your next turn. On a successful save, the creature takes half as much damage and isn't blinded.\"\r\n];\r\nMagicItemsList[\"jewel of three prayers\"] = {\r\n\tname : \"Jewel of Three Prayers\",\r\n\tsource : [[\"CotN\", 213]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"The golden chain of this intricate jewel magically resizes to function as a necklace for the creature that wears it. In ancient times, Alyxian the Apotheon bore this amulet as a symbol of his covenant with three Prime Deities: Sehanine the Moon Weaver, Avandra the Change Bringer, and Corellon the Arch Heart.\",\r\n\tdescriptionFull : EGtW_JewelOfThreePrayersFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }).replace(/\\[\\[|\\]\\]/g, ''),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_JewelOfThreePrayersFullDescription).replace(/\\[\\[.*?\\]\\]/, '')\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"1\"\r\n\t}],\r\n\taction : [[\"action\", \" (shed light)\"]],\r\n\t\"dormant\" : {\r\n\t\tname : \"Jewel of Three Prayers [dormant]\",\r\n\t\tdescription : \"This piece of jewelry grants me +1 AC and has 3 charges, regaining all at dawn. As an action, I can use it to shed bright light in a 15-ft radius and dim for another 15 ft (extinguishing requires no action). I can expend 1 charge to cast Invisibility.\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}]\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Jewel of Three Prayers [awakened]\",\r\n\t\tdescription : \"This grants me +2 AC. It has 5 charges, regaining all at dawn. As an action, I can have it shed 15-ft radius bright light and dim for another 15 ft. I can use 1 charge to cast Invisibility or stop being grappled, paralyzed, or restrained. As a reaction when I see a creature in 60 ft fail a save, I can use 1 charge to have it reroll.\",\r\n\t\tusages : 5,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 2, magic : true, text : \"I gain a +2 bonus to AC while attuned.\"}],\r\n\t\taction : [[\"reaction\", \"Jewel of Three Prayers (reroll save)\"]]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Jewel of Three Prayers [exalted]\",\r\n\t\tdescription : \"This grants me +3 AC. It has 7 charges, regaining all at dawn. As an action, I can have it shed 15-ft radius bright light and dim for another 15 ft. I can use 1 charge to cast Invisibility or stop being grappled, paralyzed, or restrained. As a reaction when I see failed save in 60 ft, I can use 1 charge for a reroll. See notes.\",\r\n\t\tusages : 7,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 3, magic : true, text : \"I gain a +3 bonus to AC while attuned.\"}],\r\n\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\t\taction : [[\"reaction\", \"Jewel of Three Prayers (reroll save)\"], [\"bonus action\", \"Jewel of Three Prayers (teleport)\"]]\r\n\t}\r\n}\r\n\n// pub_20220816_Spelljammer.js\r\n/*\r\n\tThis file adds the Character Options content from the \"Spelljammer: Adventures in Space\" set\r\n\t(the \"Astral Adventurer's Guide\" book and the \"Boo's Astral Menagerie\" book)\r\n\tto MPMB's Character Record Sheet\r\n\r\n\tIncludes many contributions by Nod_Hero\r\n\r\n\t- ERRATA -\r\n\tNote that this document includes the second \"Spelljammer: Adventures in Space\" Errata\r\n\thttps://media.dndbeyond.com/compendium-images/errata/SAiS/SJA-Errata.pdf\r\n*/\r\n\r\n\r\n// Unless otherwise noted, page numbers refer to the \"Astral Adventurer's Guide\" book\r\nSourceList[\"S:AiS\"] = {\r\n\tname : \"Spelljammer: Adventures in Space\",\r\n\tabbreviation : \"S:AiS\",\r\n\tabbreviationSpellsheet : \"SJ\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Spelljammer\",\r\n\turl : \"https://dnd.wizards.com/products/spelljammer\",\r\n\tdate : \"2022/08/16\"\r\n};\r\n\r\n// Backgrounds from Astral Adventurer's Guide\r\nBackgroundList[\"astral drifter\"] = {\r\n\tregExpSearch : /^(?=.*astral)(?=.*drifter).*$/i,\r\n\tname : \"Astral Drifter\",\r\n\tsource : [[\"S:AiS\", 7]],\r\n\tskills : [\"Insight\", \"Religion\"],\r\n\tlanguageProfs : [[\"Any, Celestial or Gith recommended\", 2]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Diary\", \"\", 5],\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Divine Contact\",\r\n\textra : [\"Select a Divine Contact\",\r\n\t\t\"Corellon (art/magic; CG)\",\r\n\t\t\"Tymora (good fortune; CG)\",\r\n\t\t\"Fharlanghn (horizons/travel; NG)\",\r\n\t\t\"Istus (fate/destiny; N)\",\r\n\t\t\"Nuada (war/warriors; N)\",\r\n\t\t\"Zivilyn (wisdom; N)\",\r\n\t\t\"Arawn (life/death; NE)\",\r\n\t\t\"Hecate (magic/moons; CE)\",\r\n\t\t\"Celestian (stars/wanderers; N)\",\r\n\t\t\"Ptah (knowledge/secrets; LN)\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"divine contact\"] = {\r\n\tdescription : \"I am 20d6 years older than I look, thanks to time spent in the Astral Sea without aging. While in the Astral Sea, I crossed paths with a wandering deity. The encounter was brief and nonviolent, yet it made a lasting impression on me. This deity saw fit to share one secret or obscure bit of cosmic lore with me. I gain the Magic Initiate [Cleric] feat.\",\r\n\tsource : [[\"S:AiS\", 7]],\r\n\tfeatsAdd: [{ key: \"magic initiate\", choice: \"cleric\" }],\r\n};\r\n\r\nBackgroundList[\"wildspacer\"] = {\r\n\tregExpSearch : /wildspacer/i,\r\n\tname : \"Wildspacer\",\r\n\tsource : [[\"S:AiS\", 8]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (space)\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Hempen rope, feet of\", 50, 0.2],\r\n\t\t[\"Grappling hook\", \"\", 4]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belaying pin (club)\", \"\", 2],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Wildspace Adaptation\",\r\n\textra : [\"Select a Close Encounter\",\r\n\t\t\"Beholder\",\r\n\t\t\"Cosmic horror\",\r\n\t\t\"Feyr\",\r\n\t\t\"Lunar dragon\",\r\n\t\t\"Mind flayer\",\r\n\t\t\"Neh-thalggu\",\r\n\t\t\"Neogi\",\r\n\t\t\"Space clown\",\r\n\t\t\"Vampirate\",\r\n\t\t\"Void scavver\",\r\n\t]\r\n};\r\nBackgroundFeatureList[\"wildspace adaptation\"] = {\r\n\tdescription : \"I was raised in the void of Wildspace, home to asteroid miners, moon farmers, and other hardy folk. Life in Wildspace has toughened me to face the terrors and other challenges of the airless night and I've learned how to adapt to zero gravity. Being weightless doesn't give me disadvantage on any of my melee attack rolls and I gain the Tough feat.\",\r\n\tsource : [[\"S:AiS\", 8]],\r\n\tfeatsAdd: [\"Tough\"],\r\n};\r\n\r\n// Races from Astral Adventurer's Guide\r\nRaceList[\"astral elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(astral|silver void)\\b).*$/i,\r\n\tname : \"Astral elf\",\r\n\tsortname : \"Elf, Astral\",\r\n\tsource : [[\"S:AiS\", 10]],\r\n\tplural : \"Astral elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old. Because nothing ages in the Astral Plane, astral elves from that plane can be thousands of years old.\",\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tskillstxt : \"Perception and choose any one skill which lasts until the end of my next Astral Trance\",\r\n\ttoolProfs : [[\"Astral Trance: tool or weapon\", 1]],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Astral Fire\",\r\n\t\tspells : [\"dancing lights\", \"light\", \"sacred flame\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"starlight step\" : {\r\n\t\t\tname : \"Starlight Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Astral Elf (my creature type is humanoid, elf)\"+\r\n\t\"\\n \\u2022 Starlight Step: A number of times per long rest equal to my proficiency bonus, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\"+\r\n\t\"\\n \\u2022 Astral Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours if I spend those hours in a trancelike meditation, during which I remain conscious. Whenever I finish this trance, I gain proficiency with one skill, and one weapon or tool of my choice. They last until I finish my next long rest.\"\r\n};\r\nRaceList[\"autognome\"] = {\r\n\tregExpSearch : /autognome/i,\r\n\tname : \"Autognome\",\r\n\tsource : [[\"S:AiS\", 11]],\r\n\tplural : \"Autognomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tage : \" can live for centuries, typically up to 500 years\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*casing).*$/i,\r\n\t\tname : \"Armored Casing\",\r\n\t\tsource : [[\"S:AiS\", 2]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Built for Success\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"paralyzed\", \"poison\"],\r\n\t\timmune : [\"disease\"]\r\n\t},\r\n\ttoolProfs : [[\"Tool of my choice\", 2]],\r\n\ttrait : typePF ?\r\n\t\t\"Autognome (my creature type is Construct)\"+\r\n\t\t\"\\n \\u2022 Armored Casing: My base AC is 13 + my Dexterity modifier.\"+\r\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save, after I see the roll, but before the effect.\"+\r\n\t\t\"\\n \\u2022 Mechanical Nature: I don't need to eat, drink or breathe.\"+\r\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay in an inactive and motionless state during which I'm conscious.\"+\r\n\t\t\"\\n \\u2022 Healing Machine: Cure Wounds, Healing Word, and Spare the Dying work on me. If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\r\n\t\t:\r\n\t\t\"Autognome (my creature type is Construct; I don't need to eat, drink or breathe)\"+\r\n\t\t\"\\n \\u2022 Armored Casing: While I'm not wearing armor, my AC is 13 + my Dexterity modifier.\"+\r\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save. I can do this after seeing the d20 roll, but before knowing the roll's effects.\"+\r\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay inactive and motionless.\"+\r\n\t\t\"\\n \\u2022 Healing Machine: Cure Wounds, Healing Word, and Spare the Dying work on me. If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\r\n};\r\nRaceList[\"giff\"] = {\r\n\tregExpSearch : /giff|hippofolk/i,\r\n\tname : \"Giff\",\r\n\tsource : [[\"S:AiS\", 12]],\r\n\tplural : \"Giff\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"astral spark\" : {\r\n\t\t\tname : \"Astral Spark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" force damage\"; })\r\n\t\t}\r\n\t},\r\n\tweaponProfs : [false, false, [\"Firearms\"]],\r\n\tcarryingCapacity : 2,\r\n\tsavetxt : { text : [\"Adv. on Str saves and checks\"] },\r\n\tadvantages : [[\"Strength\", true]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (/firearm/i.test(v.theWea.type) || /firearm/i.test(v.theWea.list)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/([;,]? ?loading|loading[;,]? ?)/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"No disadv. at long range\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of firearms and attacking at long range with a firearm doesn't impose disadvantage on my attack roll.\"\r\n\t\t]\r\n\t},\r\n\ttrait : \"Giff\"+\r\n\t\"\\n \\u2022 Astral Spark: My proficiency bonus times per long rest, when I hit a target with a simple or martial weapon, I can once per turn deal extra force damage equal to my prof\" + (typePF ? \"iciency\" : \".\") + \" bonus.\"+\r\n\t\"\\n \\u2022 Firearms Mastery: I am proficient with firearms, ignore their loading property, and they don't impose disadvantage at long range.\"+\r\n\t\"\\n \\u2022 Hippo Build: I have advantage on Strength saves and checks. In addition, I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"\r\n};\r\nRaceList[\"hadozee\"] = {\r\n\tregExpSearch : /hadozee/i,\r\n\tname : \"Hadozee\",\r\n\tsource : [[\"S:AiS\", 13]],\r\n\tplural : \"Hadozees\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tscoresGeneric : true,\r\n\taction : [\r\n\t\t[\"bonus action\", \"Dexterous Feet (Use an Object)\"],\r\n\t\t[\"reaction\", \"Glide (if 10 ft above ground)\"]\r\n\t],\r\n\tfeatures : {\r\n\t\t\"hadozee dodge\" : {\r\n\t\t\tname : \"Hadozee Dodge\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"1d6+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hadozee\"+\r\n\t\"\\n \\u2022 Dexterous Feet: As a bonus action, I can manipulate an object, open or close a door or container, or pick up or set down a Tiny object.\"+\r\n\t\"\\n \\u2022 Glide: As a reaction when I fall at least 10 ft above the ground, I can extend my skin membranes to glide my walking speed horizontally, and take 0 damage from the fall.\"+\r\n\t\"\\n \\u2022 Hadozee Dodge: A number of times equal to my proficiency bonus per long rest, as a reaction when I take damage, I can reduce the damage by 1d6 + my proficiency bonus.\"\r\n};\r\nRaceList[\"plasmoid\"] = {\r\n\tregExpSearch : /plasmoid/i,\r\n\tname : \"Plasmoid\",\r\n\tsource : [[\"S:AiS\", 14]],\r\n\tplural : \"Plasmoids\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscoresGeneric : true,\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Acid\", \"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"poison\"],\r\n\t\ttext : [\"Adv. on grapple checks\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"action\", \"Reshape Body\"],\r\n\t\t[\"bonus action\", \"Extrude/Reabsorb Pseudopod\"]\r\n\t],\r\n\ttrait : \"Plasmoid (my creature type is Ooze)\"+\r\n\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Hold Breath: I can hold my breath for 1 hour.\"+\r\n\t\"\\n \\u2022 Amorphous: I can squeeze through a 1-inch wide space without my equipment or clothes. \" + (typePF ? \"I have advantage on grapple checks.\" : \"I also have advantage on ability checks I make to initiate or escape a grapple.\")+\r\n\t\"\\n \\u2022 Shape Self: As an action, I can reshape my body to have a head and limbs, or back to a limbless blob. As a bonus action, I can extrude/reabsorb a pseudopod up to 6 inch wide and 10 ft long. As part of the bonus action, it can manipulate objects, open/close doors, or pick up/set down a Tiny object. It can carry up to 10 lb, but not attack or use magic items.\"\r\n};\r\nRaceList[\"thri-kreen\"] = {\r\n\tregExpSearch : /thri.?kreen/i,\r\n\tname : \"Thri-kreen\",\r\n\tsource : [[\"S:AiS\", 15]],\r\n\tplural : \"Thri-kreen\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\t// age, height and weight taken from Shining South (2004) p17 (using the male option)\r\n\tage : \" reach maturity around 7 years old and typically live around 30 years\",\r\n\theight : \" stand between 5 and 7 feet tall (5'2\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 140 and 375 pounds (135 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand from 1,6 to over 2 metres tall (160 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 60 and 180 kg (60 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tlanguageProfs : [\"Common\", \"Thri-kreen Telepathy\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*carapace)(?=.*chameleon).*$/i,\r\n\t\tname : \"Chameleon Carapace\",\r\n\t\tsource : [[\"S:AiS\", 4]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : [[\"action\", \"Chameleon Carapace\"]],\r\n\ttrait : \"Thri-kreen (my creature type is Monstrosity)\"+\r\n\t\"\\n \\u2022 Chameleon Carapace: My base AC is 13 + Dex mod. As an action, \" + (typePF ? \"I can gain adv. on Stealth checks to hide in my current surroundings.\" : \"I can have it match my current surroundings, granting me adv. on Stealth checks to hide in those surroundings.\")+\r\n\t\"\\n \\u2022 Secondary Arms: \" + (typePF ? \"I have two slightly smaller arms below my primary pair of arms. I can use these secondary arms\" : \"Able\") + \" to manipulate objects, hold Tiny objects, or wield light weapons.\"+\r\n\t\"\\n \\u2022 Sleepless: I don't \" + (typePF ? \"\" : \"require \") + \"sleep. I rest by refraining from strenuous activity.\"+\r\n\t\"\\n \\u2022 \" + (typePF ? \"Thri-kreen \" : \"\") + \"Telepathy: I can't speak, but can communicate telepathically to any willing creatures within 120 ft that understand at least one language. Any can break this (no action).\"\r\n};\r\n\r\n// Spells from Astral Adventurer's Guide\r\nSpellsList[\"air bubble\"] = {\r\n\tname : \"Air Bubble\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"S:AiS\", 22]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Create spectral globe of fresh air around a head of 1+2/SL willing creatures, lasts for the duration\",\r\n\tdescriptionFull : \"You create a spectral globe around the head of a willing creature you can see within range. The globe is filled with fresh air that lasts until the spell ends. If the creature has more than one head, the globe of air appears around only one of its heads (which is all the creature needs to avoid suffocation, assuming that all its heads share the same respiratory system).\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can create two additional globes of fresh air for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"create spelljamming helm\"] = {\r\n\tname : \"Create Spelljamming Helm\", \r\n\tnameShort : typePF ? \"Create spelljamming helm\" : \"Create spelljammin' helm\", // Lowercase or won't fit, shortened for Colourful version\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"S:AiS\", 22]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A crystal rod worth at least 5,000 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"One Large or smaller unoccupied chair I touch transforms into a spelljamming helm (5000gp cons.)\",\r\n\tdescriptionFull : \"Holding the rod used in the casting of the spell, you touch a Large or smaller chair that is unoccupied. The rod disappears, and the chair is transformed into a spelljamming helm.\"\r\n};\r\n\r\n// Magic Items from Astral Adventurer's Guide\r\nMagicItemsList[\"fish suit\"] = {\r\n\tname : \"Fish Suit\",\r\n\tsource : [[\"S:AiS\", 22]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tsavetxt : { immune : [\"surrounding gas\"] },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }, // flying speed is more situational, so not added to the listing\r\n\tdescription : \"This bulky suit takes 1 minute to don or doff. While worn, I can breathe in an airless environment and am immune to any gas that surrounds me. The suit grants me a swimming speed equal to my walking speed while underwater, or a flying speed equal to my walking speed in an environment with no gravity.\",\r\n\tdescriptionFull : \"This bulky suit, which fully encases your head and body, takes 1 minute to don or doff. While worn, it enables you to breathe in an airless environment and renders you immune to the harmful effects of any gas that surrounds you. The suit also grants you a swimming speed equal to your walking speed while underwater, or a flying speed equal to your walking speed in an environment with no gravity.\"\r\n};\r\nvar SJAAG_SpelljammingHelm = [\r\n\t\"The function of this ornate chair is to propel and maneuver a ship on which it has been installed through space and air. It can also propel and maneuver a ship on water or underwater, provided the ship is built for such travel. The ship in question must weigh 1 ton or more.\",\r\n\t\"The sensation of being attuned to a spelljamming helm is akin to the pins-and-needles effect one experiences after one's arm or leg falls asleep, but not as painful.\",\r\n\t\"While attuned to a spelljamming helm and sitting in it, you gain the following abilities for as long as you maintain concentration (as if concentrating on a spell):\",\r\n\t\"\\u2022 You can use the spelljamming helm to move the ship through space, air, or water up to the ship's speed. If the ship is in space and no other objects weighing 1 ton or more are within 1 mile of it, you can use the spelljamming helm to move the vessel fast enough to travel 100 million miles in 24 hours.\",\r\n\t\"\\u2022 You can steer the vessel, albeit in a somewhat clumsy fashion, in much the way that a rudder or oars can be used to maneuver a seafaring ship.\",\r\n\t\"\\u2022 At any time, you can see and hear what's happening on and around the vessel as though you were standing in a location of your choice aboard it.\",\r\n\t\">>Transfer Attunement<<. You can use an action to touch a willing spellcaster. That creature attunes to the spelljamming helm immediately, and your attunement to it ends.\"\r\n];\r\nMagicItemsList[\"spelljamming helm\"] = {\r\n\tname : \"Spelljamming Helm\",\r\n\tsource : [[\"S:AiS\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"While attuned to  this ornate chair and sitting in it, I can propel and maneuver the ship on which it has been installed through space, air, or water up to the ship's speed. I need to maintain concentration as if concentrating on a spell to do so. The ship can move faster in space if nothing is nearby. See Notes page.\",\r\n\tdescriptionFull : SJAAG_SpelljammingHelm.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\taction : [[\"action\", \" (Transfer Attunement)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(SJAAG_SpelljammingHelm).replace(/your/ig, \"my\").replace(/\\byou\\b/ig, \"I\").replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; })\r\n\t}]\r\n};\r\nMagicItemsList[\"wildspace orrery\"] = {\r\n\tname : \"Wildspace Orrery\",\r\n\tsource : [[\"S:AiS\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Inside a Wildspace system, this portable arcane device automatically tracks the positions and movements of all suns, planets, moons, and comets within that system, projecting a display of all these bodies in the space above its current location, marking itself as a white, pulsating pinprick of light.\",\r\n\tdescriptionFull : \"Inside a Wildspace system, this portable arcane device automatically tracks the positions and movements of all suns, planets, moons, and comets within that system, projecting a display of all these bodies in the space above its current location. In that display, a white, pulsating pinprick of light marks the orrery's location.\"\r\n};\r\n\r\n// Beasts from Boo's Astral Menagerie\r\nCreatureList[\"space eel\"] = {\r\n\tname : \"Space Eel\",\r\n\tnameAlt : [\"Eel, Space\"],\r\n\tsource : [[\"S:AiS\", 55]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 7,\r\n\thd : [2, 6],\r\n\tspeed : \"10 ft, fly 30 ft\",\r\n\tscores : [12, 18, 11, 1, 10, 1],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Attaches on hit; While attached, auto-damage at turn start, but can't make bite attacks\",\r\n\t\ttooltip : \"On a hit, the eel attaches to the target. While attached, the eel can't make bite attacks. Instead, the target takes the bite damage at the start of each of the eel's turns. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t}, {\r\n\t\tname : \"Tail Spine\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target DC 10 Con save or poisoned and paralyzed for 1 min (can save as each turn ends)\",\r\n\t\ttooltip : \"The target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Unusual Nature\",\r\n\t\tdescription : \"The eel doesn't require air.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn if not attached to a creature, the eel can make one Bite and one Tail Spine attack.\"\r\n\t}, {\r\n\t\tname : \"Attach\",\r\n\t\tdescription : \"If the eel hits with its bite attack, it attaches to the target. While attached, the eel can't make bite attacks. Instead, the target takes the bite damage at the start of each of the eel's turns. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t}, {\r\n\t\tname : \"Tail Spine\",\r\n\t\tdescription : \"If the eel hits with its tail spine, the target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Darkvision 60 ft\",\r\n\t\t\"##Unusual Nature##. Doesn't require air.\",\r\n\t\t\"##Multiattack##. 1 bite and 1 tail spine attack if not attached to a creature.\",\r\n\t\t\"##Bite##. Attaches to the target hit by its bite attack, dealing bite damage at the start of each turn. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t].join(\"\\n\"),\r\n};\r\nCreatureList[\"space guppy\"] = {\r\n\tname : \"Space Guppy\",\r\n\tnameAlt : [\"Guppy, Space\"],\r\n\tsource : [[\"S:AiS\", 55]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"0 ft, fly 30 ft\",\r\n\tscores : [3, 16, 10, 1, 10, 1],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail Slap\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Air Envelope\",\r\n\t\tdescription : \"If it has at least 1 hit point, the guppy can generate an air envelope around itself when in a vacuum. This air envelope can sustain the guppy and one other Tiny creature in its space indefinitely.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The guppy doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\nCreatureList[\"giant space hamster\"] = {\r\n\tname : \"Giant Space Hamster\",\r\n\tnameAlt : [\"Hamster, Giant Space\"],\r\n\tsource : [[\"S:AiS\", 56]], // page number in Boo's Astral Menagerie\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, burrow 10 ft\",\r\n\tscores : [14, 12, 10, 2, 12, 4],\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}]\r\n};\r\nCreatureList[\"space mollymawk\"] = {\r\n\tname : \"Space Mollymawk\",\r\n\tnameAlt : [\"Mollymawk, Space\"],\r\n\tsource : [[\"S:AiS\", 57]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"10 ft, fly 50 ft\",\r\n\tscores : [6, 14, 11, 3, 12, 3],\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tpassivePerception : 15,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The mollymawk doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}, {\r\n\t\tname : \"Hold Breath\",\r\n\t\tdescription : \"The mollymawk can hold its breath for 15 minutes.\"\r\n\t}]\r\n};\r\nCreatureList[\"space swine\"] = {\r\n\tname : \"Space Swine\",\r\n\tnameAlt : [\"Swine, Space\"],\r\n\tsource : [[\"S:AiS\", 57]], // page number in Boo's Astral Menagerie\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 8],\r\n\tspeed : \"40 ft, fly 40 ft\",\r\n\tscores : [14, 12, 10, 2, 12, 4],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"survival\" : 4\r\n\t},\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Barding\",\r\n\t\tdescription : \"Space swine that are trained for battle are typically outfitted with half-plate barding and are referred to as death squealers. This barding gives them an AC of 16.\"\r\n\t}],\r\n\twildshapeString : \" \" // the barding trait is not applicable to wild shapes\r\n};\r\n\n// pub_20221206_Dragonlance.js\r\n// This file adds the Character Options content from Dragonlance: Shadow of the Dragon Queen to MPMB's Character Record Sheet\r\n\r\nSourceList[\"D:SotDQ\"] = {\r\n\tname : \"Dragonlance: Shadow of the Dragon Queen\",\r\n\tabbreviation : \"D:SotDQ\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Dragonlance\",\r\n\turl : \"https://dnd.wizards.com/products/dragonlance\",\r\n\tdate : \"2022/12/06\"\r\n};\r\n\r\nRaceList[\"kender\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"D:SotDQ\", 27]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"frightened\"]},\r\n\tskillstxt : \"Choose one from Insight, Investigation, Sleight of Hand, Stealth, or Survival\",\r\n\tabilitySave : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"fearless\" : {\r\n\t\t\tname : \"Fearless\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t\"\\n \\u2022 Fearless: I have adv. on saves against the frightened condition. Once per long rest when I fail \" + (typePF ? \"such a save\" : \"a save to avoid being frightened\") + \", I can choose to succeed\" + (typePF ? \".\" : \" instead\")+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can taunt a creature within 60 ft of me that can hear and understand me. They must make a Wisdom \" + (typePF ? \"saving throw or have disadvantage\" : \"save (DC 8 + Prof B + Int/Wis/Cha mod; one-time choice) or have disadv.\") + \" on attack rolls not made against me until the start of my next turn. I can do this a number of times per long rest equal to my proficiency bonus.\" + (typePF ? \" The DC equals 8 + my proficiency bonus + Intelligence, Wisdom, or Charisma modifier (one-time choice when selecting this race).\" : \"\")\r\n};\r\n\r\nBackgroundList[\"knight of solamnia\"] = {\r\n\tregExpSearch : /^(?=.*(knight|champion|warrior))(?=.*solamnia).*$/i,\r\n\tname : \"Knight of Solamnia\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Squire of Solamnia\",\r\n\ttrait : [ // Kept those from the UA article\r\n\t\t\"I pledge my sword to the greater good. If I must perish in pursuit of that good, so be it.\",\r\n\t\t\"My comrades-in-arms are my family. I'll do whatever it takes to keep them safe.\",\r\n\t\t\"The protection of innocent people comes first. All other concerns come second.\",\r\n\t\t\"I joined the knights for the free meals, but their lessons grew on me over time.\",\r\n\t\t\"I wish my deeds to become the stuff of legends\\xD7just like those of the knighthood's heroic founders.\",\r\n\t\t\"A dishonorable act drove me to become a knight. I have acted with honor ever since.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Choose a Trinket\",\r\n\t\t\"Silver disk, recording my heroics\",\r\n\t\t\"Piece of a fallen knight's armor\",\r\n\t\t\"Pendant with a crown/rose/sword\",\r\n\t\t\"Pommel of my mentor's sword\",\r\n\t\t\"Favor from someone I defended\",\r\n\t\t\"Locket with silver dragon sketch\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"squire of solamnia\"] = {\r\n\tdescription : \"I gain the Squire of Solamnia feat. In addition, the Knights of Solamnia provide me free, modest lodging and food at any of their fortresses or encampments.\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2], [\"UA:HoK\", 3]],\r\n\tfeatsAdd: [\"Squire of Solamnia\"],\r\n};\r\n\r\nBackgroundList[\"mage of high sorcery\"] = {\r\n\tregExpSearch : /^(?=.*(mage|wizard|magus))(?=.*high)(?=.*sorcery).*$/i,\r\n\tname : \"Mage of High Sorcery\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\tskills : [\"Arcana\", \"History\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Bottle of colored ink\", \"\", \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Initiate of High Sorcery\",\r\n\ttrait : [ // Kept those from the UA article\r\n\t\t\"I wish to use my knowledge of magic to better people's lives.\",\r\n\t\t\"My study of magic might reveal all manner of secrets.\",\r\n\t\t\"Magic is a means to power, and I will use it to pursue my ambitions.\",\r\n\t\t\"I learned magic so I'd be able to protect those I care about.\",\r\n\t\t\"I use my magic to maintain the balance between all things.\",\r\n\t\t\"Whether in the past, present, or future, I will be the greatest mage ever known.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Choose a Trinket\",\r\n\t\t\"Unopened letter from first teacher\",\r\n\t\t\"Broken black/red/white wooden wand\",\r\n\t\t\"Scroll with incomprehensible formula\",\r\n\t\t\"Stone-covered foldable device\",\r\n\t\t\"Pouch with triple moon symbol\",\r\n\t\t\"Spellbook with triple moon symbol\",\r\n\t\t\"Lens to see Nuitari, invisible moon\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"initiate of high sorcery\"] = {\r\n\tdescription : \"I gain the Initiate of High Sorcery feat. In addition, the Mages of High Sorcery provide me with free, modest lodging and food indefinitely at any occupied Tower of High Sorcery and for one night at the home of an organization member.\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\tfeatsAdd: [\"Initiate of High Sorcery\"],\r\n};\r\n\r\n\r\n// Feats tree for Initiate of High Sorcery\r\nFeatsList[\"initiate of high sorcery\"] = {\r\n\tname : \"Initiate of High Sorcery\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a wizard cantrip and two 1st-levels spell from a list depending on my chosen moon. I can cast each spell once per long rest at its lowest levels without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You've received training from magic-users affiliated with the Mages of High Sorcery.\"+\r\n\t\"\\n   Choose one of the three moons of Krynn to influence your magic: the black moon, Nuitari; the red moon, Lunitari; or the white moon, Solinari. You learn one cantrip of your choice from the wizard spell list and two 1st-level spells based on the moon you choose, as specified in the Lunar Spells table.\"+\r\n\t\"\\n\\n\" + toUni(\"Lunar Spells\")+\r\n\t\"\\n\" + toUni(\"Moon\\t1st-Level Spell\")+\r\n\t\"\\nNuitari\\tChoose two from dissonant whispers, false life,\"+\r\n\t\"\\n\\thex, and ray of sickness\"+\r\n\t\"\\nLunitari\\tChoose two from color spray, disguise self,\"+\r\n\t\"\\n\\tfeather fall, and longstrider\"+\r\n\t\"\\nSolinari\\tChoose two from comprehend languages, detect\"+\r\n\t\"\\n\\tevil and good, protection from evil and good, and\"+\r\n\t\"\\n\\tshield\"+\r\n\t\"\\n\\n   You can cast each of the chosen 1st-level spells without a spell slot, and you must finish a long rest before you can cast them in this way again. You can also cast the spells using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\tprerequisite : \"Dragonlance Campaign, plus Sorcerer, Wizard, or Mage of High Sorcery background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.wizard || classes.known.sorcerer || CurrentBackground.known.indexOf('mage of high sorcery') !== -1 || /initiate of high sorcery/i.test(What(\"Background Feature\"));\r\n\t},\r\n\tchoices : [\"Nuitari\", \"Lunitari\", \"Solinari\"],\r\n\t\"nuitari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Dissonant Whispers, False Life, Hex, or Ray of Sickness). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level spell\",\r\n\t\t\tspells : [\"dissonant whispers\", \"false life\", \"hex\", \"ray of sickness\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"lunitari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Color Spray, Disguise Self, Feather Fall, Longstrider). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level spell\",\r\n\t\t\tspells : [\"color spray\", \"disguise self\", \"feather fall\", \"longstrider\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"solinari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Comprehend Languages, Detect Evil and Good, Protection from Evil and Good, Shield). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level spell\",\r\n\t\t\tspells : [\"comprehend languages\", \"detect evil and good\", \"protection from evil and good\", \"shield\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"adept of the black robes\"] = {\r\n\tname : \"Adept of the Black Robes\",\r\n\tsource : [[\"D:SotDQ\", 31], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn one 2nd-level Ench or Necro spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When a creature I can see within 60 ft fails its save vs. my damaging spell, I can expend HD up to the spell's level and add the rolls to the damage of the spell for that one creature.\",\r\n\tdescriptionFull : \"You chose the moon Nuitari to influence your magic, and your ambition and loyalty to the Order of the Black Robes have been recognized, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ambitious Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the evocation or necromancy school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Life Channel\") + \". You can channel your life force into the power of your magic. When a creature you can see within 60 feet fails on a saving throw against a spell that deals damage that you cast, you can expend a number of Hit Dice equal to the level of the spell. Roll the expended Hit Dice and add them together. The damage that the creature takes increases by an amount equal to that total.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Nuitari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'nuitari';\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Evoc/Necro spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_nuitari',\r\n\tallowUpCasting : true\r\n};\r\nFeatsList[\"adept of the red robes\"] = {\r\n\tname : \"Adept of the Red Robes\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a 2nd-level Illusion or Transmutation spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When I roll 9 or lower on the d20 for an attack or ability check, I can treat the roll as a 10. I can do this a number of times per long rest equal to my proficiency bonus.\",\r\n\tdescriptionFull : \"You chose the moon Lunitari to influence your magic, and your dedication to maintaining the balance between all things has been recognized by the Order of the Red Robes, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Insightful Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the illusion or transmutation school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Magical Balance\") + \". When you make an attack roll, an ability check, or a saving throw, and roll a 9 or lower on the d20, you can use your reaction to balance fate and treat the roll as a 10. you can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Lunitari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'lunitari';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Illus/Trans spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Illus\", \"Trans\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_lunitari',\r\n\tallowUpCasting : true\r\n};\r\nFeatsList[\"adept of the white robes\"] = {\r\n\tname : \"Adept of the White Robes\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn one 2nd-level Abjur or Div spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. As a reaction when I or a creature I can see within 30 ft is damaged, I can expend a spell slot and roll d6s equal to its level to reduce the damage by that much + my spellcasting modifier.\",\r\n\tdescriptionFull : \"You chose the moon Solinari to influence your magic, and your oath to use magic to make the world a better place has been recognized by the Order of the White Robes, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Protective Magic\") + \". You learn one 2nd-level spell of you choice. The 2nd-level spell must be from the abjuration or divination school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Protective Ward\") + \". When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to expend a spell slot and weave protective magic around the target. Roll a number of d6s equal to the level of the spell slot expended and reduce the damage the target takes by the total rolled on those dice + your spellcasting ability modifier.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Solinari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'solinari';\r\n\t},\r\n\taction : [[\"reaction\", \"\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Abjur/Div spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Div\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_solinari',\r\n\tallowUpCasting : true\r\n};\r\n\r\n// Feat Divinely Favored\r\nFeatsList[\"divinely favored\"] = {\r\n\tname : \"Divinely Favored\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a cleric cantrip, a 1st-level spell based on my alignment, and Augury. I can cast the spells each once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\tdescriptionFull : \"A god chose you to carry a spark of their power.\"+\r\n\t\"\\n   You learn one cantrip of your choice from the cleric spell list and one 1st-level spell based on the alignment of your character, as specified in the table below. You also learn the augury spell.\"+\r\n\t\"\\n\\n\" + toUni(\"Alignment\\t1st-level Spell\")+\r\n\t\"\\n Evil\\t\\tChoose one 1st level warlock spell\"+\r\n\t\"\\n Good\\t\\tChoose one 1st-level cleric spell\"+\r\n\t\"\\n Neutral\\t\\tChoose one 1st-level druid spell\"+\r\n\t\"\\n\\n   You can cast the chosen 1st-level spell and the augury spell without a spell slot, and you must finish a long rest before you can cast either of these spells in this way again. You can also cast these spells using spell slots you have of the appropriate level.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\t\"\\n\\n   In addition, you can use a holy symbol as a spellcasting focus for any spell you cast that uses the spellcasting ability you choose when you select this feat.\",\r\n\tchoices : [\"Evil (warlock spell)\", \"Good (cleric spell)\", \"Neutral (druid spell)\"],\r\n\t\"evil (warlock spell)\" : {\r\n\t\tname : \"Divinely Favored [Evil]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level warlock spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock Spell\",\r\n\t\t\t\"class\" : [\"warlock\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"good (cleric spell)\" : {\r\n\t\tname : \"Divinely Favored [Good]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level cleric spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric Spell\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"neutral (druid spell)\" : {\r\n\t\tname : \"Divinely Favored [Neutral]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level druid spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid Spell\",\r\n\t\t\t\"class\" : [\"druid\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t}\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nFeatsList[\"squire of solamnia\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"D:SotDQ\", 34]],\r\n\tdescription : \"Mounting or dismounting costs me only 5-ft of movement. Once per turn, I can grant myself advantage on a weapon attack, adding +1d8 to the damage roll if it hits. I can use this benefit my proficiency bonus per long rest, but a use is expended only if the attack hits.\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Mount Up\") + \". Mounting or dismounting costs you only 5 feet of movement.\"+\r\n\t\"\\n   \" + toUni(\"Precise Strike\") + \". Once per turn, when you make a weapon attack roll against a creature, you can cause the attack roll to have advantage. If the attack hits, you roll a d8 and add the number rolled as a bonus to the attack's damage roll. You can use this benefit a number of times equal to your proficiency bonus, but a use is expended only if the attack hits. You regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"Dragonlance Campaign, plus Fighter, Paladin, or Knight of Solamnia background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.fighter || classes.known.paladin || CurrentBackground.known.indexOf('knight of solamnia') !== -1 || /squire of solamnia/i.test(What(\"Background Feature\"));\r\n\t},\r\n\tlimfeaname : \"Precise Strike (Squire of Solamnia)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the crown\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"D:SotDQ\", 32]],\r\n\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Strength, Dexterity, or Constitution]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Dexterity, or Constitution by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Commanding Rally\") + \". As a bonus action, you can command one ally within 30 feet of yourself to attack. If that ally can see or hear you, they can immediately make one weapon attack as a reaction. If the attack hits, the ally can roll a d8 and add the number rolled as a bonus to the attack's damage roll. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Commanding Rally (Knight of the Crown)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\"],\r\n\t\"strength\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Strength]\",\r\n\t\tscores : [1,0,0,0,0,0]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Dexterity]\",\r\n\t\tscores : [0,1,0,0,0,0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Constitution]\",\r\n\t\tscores : [0,0,1,0,0,0]\r\n\t}\r\n};\r\nFeatsList[\"knight of the rose\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"D:SotDQ\", 33]],\r\n\tdescription : \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + my proficiency bonus + the modifier of the ability chosen to increase temporary hit points. I can do this my proficiency bonus per long rest. [+1 Constitution, Wisdom, or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution, Wisdom, or Charisma by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Bolstering Rally\") + \". As a bonus action, you can encourage one creature you can see within 30 feet of yourself (you can choose yourself). If the target can see or hear you, the target gains temporary hit points equal to 1d8 + your proficiency bonus + the ability modifier of the ability score increased by this feat. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Bolstering Rally (Knight of the Rose)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Constitution\", \"Wisdom\", \"Charisma\"],\r\n\t\"constitution\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Con Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Constitution modifier). I can do this my proficiency bonus per long rest. [+1 Constitution]\";',\r\n\t\tscores : [0,0,1,0,0,0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Wis Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Wisdom modifier). I can do this my proficiency bonus per long rest. [+1 Wisdom]\";',\r\n\t\tscores : [0,0,0,0,1,0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Cha Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Charisma modifier). I can do this my proficiency bonus per long rest. [+1 Charisma]\";',\r\n\t\tscores : [0,0,0,0,0,1]\r\n\t}\r\n};\r\nFeatsList[\"knight of the sword\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"D:SotDQ\", 33]],\r\n\tdescription : \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC (8 + Prof Bonus + mod of the ability increased by this feat) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Int/Wis/Cha]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Demoralizing Strike\") + \". Once per turn, when you hit a creature with a weapon attack roll, you can attempt to frighten that target. The target must make a Wisdom saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the target is frightened of you until the end of your next turn. On a successful save, the target has disadvantage on the next attack roll it makes before the end of its next turn. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Demoralizing Strike (Knight of the Sword)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Int Mod\"))) + \" (8 + Prof Bonus + Int mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Int]\";',\r\n\t\tscores : [0,0,0,1,0,0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Wis Mod\"))) + \" (8 + Prof Bonus + Wis mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Wis]\";',\r\n\t\tscores : [0,0,0,0,1,0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Cha Mod\"))) + \" (8 + Prof Bonus + Cha mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Cha]\";',\r\n\t\tscores : [0,0,0,0,0,1]\r\n\t}\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"sorcerer\", \"lunar sorcery\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|sorcery|witch))(?=.*(lunar|moon)).*$/i,\r\n\tsubname : \"Lunar Sorcery\",\r\n\tfullname : \"Lunar Sorcerer\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Lunar Embodiment\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tadditional : levels.map(function (n) { return (n < 3 ? 3 : n < 5 ? 6 : n < 7 ? 9 : n < 9 ? 12 : 15) + \" additional spells known\"}),\r\n\t\t\tspellcastingExtra : [\r\n\t\t\t\t// full moon\r\n\t\t\t\t\"shield\", \"lesser restoration\", \"dispel magic\", \"death ward\", \"rary's telepathic bond\",\r\n\t\t\t\t// new moon\r\n\t\t\t\t\"ray of sickness\", \"blindness/deafness\", \"vampiric touch\", \"confusion\", \"hold monster\",\r\n\t\t\t\t// crescent moon\r\n\t\t\t\t\"color spray\", \"alter self\", \"phantom steed\", \"hallucinatory terrain\", \"mislead\"\r\n\t\t\t],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tdescription : levels.map(function(n) {\r\n\t\t\t\tvar phases = {\r\n\t\t\t\t\t\"\\u25CB Full: \" : [\"Shield\", \"Lesser Restoration\", \"Dispel Magic\", \"Death Ward\", \"Rary's Telepathic Bond\"],\r\n\t\t\t\t\t\"\\u25CF New: \" : [\"Ray of Sickness\", \"Blindness/deafness\", \"Vampiric Touch\", \"Confusion\", \"Hold Monster\"],\r\n\t\t\t\t\t\"\\u25D6 Crescent: \" : [\"Color Spray\", \"Alter Self\", \"Phantom Steed\", \"Hallucinatory Terrain\", \"Mislead\"]\r\n\t\t\t\t};\r\n\t\t\t\tvar aReturn = [\r\n\t\t\t\t\t\"When I finish a long rest, I can choose a lunar phase: Full, New, or Crescent Moon\",\r\n\t\t\t\t\t\"I can cast the 1st-level spell of that lunar phase once per long rest without a spell slot\"\r\n\t\t\t\t];\r\n\t\t\t\tvar iSpellsAdd = n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : 5;\r\n\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\taReturn.push(phase + phases[phase].slice(0,iSpellsAdd).join(\", \"));\r\n\t\t\t\t}\r\n\t\t\t\t//aReturn.push(\"I know all \" + (iSpellsAdd * 3) + \" spells above; They don't count towards the number of spells I can know\");\r\n\t\t\t\treturn desc(aReturn);\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName === \"sorcerer\" && !isDuplicate && CurrentSpells.sorcerer.extra.indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\tvar phases = {\r\n\t\t\t\t\t\t\t\t\"F\" : [\"shield\", \"lesser restoration\", \"dispel magic\", \"death ward\", \"rary's telepathic bond\"],\r\n\t\t\t\t\t\t\t\t\"N\" :  [\"ray of sickness\", \"blindness/deafness\", \"vampiric touch\", \"confusion\", \"hold monster\"],\r\n\t\t\t\t\t\t\t\t\"C\" : [\"color spray\", \"alter self\", \"phantom steed\", \"hallucinatory terrain\", \"mislead\"]\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\t\t\t\tif (phases[phase].indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\t\t\tspellObj.firstCol = phase;\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'The letters \"F\", \"N\", or \"C\" in the first column are used to indicate that a spell belongs to either the Full Moon, New Moon, or Crescent Moon lunar phase.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tspellFirstColTitle : \"Ph\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"1st-level lunar phase spell\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Moon Fire\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I know the Sacred Flame cantrip and can use it on 2 creatures within 5 ft of each other\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Moon Fire\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tweaponsAdd : { select : [\"Sacred Flame\"] },\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sacred flame\" : {\r\n\t\t\t\t\tdescription : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 at CL 5, 11, and 17\",\r\n\t\t\t\t\tdescriptionShorter : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 CL 5/11/17\",\r\n\t\t\t\t\tdescriptionCantripDie : \"Up to 2 creas I see, max 5 ft apart, save or `CD`d8 Radiant dmg; no bonus for cover on save\",\r\n\t\t\t\t\tchanges : \"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName == 'sacred flame') {\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(\"1 creature\", \"up to 2 creatures within 5 ft\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Lunar Boons\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Each lunar phase is additionally associated with spells of the following schools of magic:\",\r\n\t\t\t\t\"\\u25CB Full: Abjur \\u0026 Div\\t\\t\\u25CF New: Ench \\u0026 Necro\\t\" + (typePF ? \"\\t\" : Array(8).join(\" \")) + \"\\u25D6 Crescent: Illus \\u0026 Trans\",\r\n\t\t\t\t\"I can reduce the sorcery point needed for Metamagic of spells of my current phase by 1\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Waxing and Waning\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 sorcery point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 sorcery point to change my lunar phase\",\r\n\t\t\t\t\"I can cast each lunar phase's 1st-level spells once per long rest, if it is my current phase\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Shield (in Full lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Ray of Sickness (in New lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Color Spray (in Crescent lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\teval : function () {\r\n\t\t\t\tRemoveFeature(\"1st-level lunar phase spell\", 0, \"\", \"\", \"Lunar Sorcerer: Lunar Embodiment\");\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tAddFeature(\"1st-level lunar phase spell\", 1, \"\", \"long rest\", \"Lunar Sorcerer: Lunar Embodiment\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Lunar Empowerment\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [passive benefits for current phase]\" + desc([\r\n\t\t\t\t\"\\u25CB Full: I shed bright light in a 10-ft radius \\u0026 dim light for extra 10 ft\",\r\n\t\t\t\t\"  Myself and creatures I choose in 10 ft have adv. on Investigation and Perception checks\",\r\n\t\t\t\t\"\\u25CF New: I have adv. on Stealth checks; While I'm in darkness, attacks have disadv. vs me\",\r\n\t\t\t\t\"\\u25D6 Crescent: I have resistance to Necrotic and Radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Necrotic\", \"Necro. (in crescent)\"],\r\n\t\t\t\t[\"Radiant\", \"Rad. (in crescent)\"]\r\n\t\t\t]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Lunar Phenomenon\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional: \"per phase: 1\\xD7 per long rest or 5 SP\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, or as part of changing phase, I can use a power of the (new) phase:\",\r\n\t\t\t\t\"\\u25CB Full: Chosen creatures within 30 ft of me must make a Constitution save or be blinded\",\r\n\t\t\t\t\"  This lasts until their next turn ends; I also heal one creature within 30 ft for 3d8 HP\",\r\n\t\t\t\t\"\\u25CF New: Chosen creatures within 30 ft of me must make a Dexterity save\",\r\n\t\t\t\t\"  If failed, they take 3d10 Necrotic damage and have 0 speed until their next turn ends\",\r\n\t\t\t\t\"  Also, I become invisible until the end of my next turn, or until I attack or cast a spell\",\r\n\t\t\t\t\"\\u25D6 Crescent: I can magically teleport to an unoccupied space I can see within 60 ft\",\r\n\t\t\t\t\"  Both of us gain resistance to all damage until the start of my next turn\",\r\n\t\t\t\t\"I can use each phase's bonus action 1/LR, or by spending 5 sorcery points to use it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Lunar Phenomenon (Full)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (New)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (Crescent)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Weapon, Hoopak\r\nWeaponsList[\"hoopak, melee\"] = {\r\n\tregExpSearch : /hoopak/i,\r\n\tname : \"Hoopak, melee\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 6, \"piercing\"],\r\n\trange : \"Melee\",\r\n\tweight : 2,\r\n\tdescription : \"Finesse, two-handed; Can be used ranged (40/160 ft) with ammo, for 1d4 bludgeoning damage\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"hoopak, ranged\"] = {\r\n\tregExpSearch : /^(?=.*hoopak)(?=.*ranged).*$/i,\r\n\tname : \"Hoopak, ranged\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tlist : \"ranged\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 4, \"bludgeoning\"],\r\n\trange : \"40/160 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, finesse, two-handed; Can be used in melee without ammo, for 1d6 piercing damage\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"flying citadel helm\"] = {\r\n\tname : \"Flying Citadel Helm\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This ornate chair allows me to maneuver a flying citadel while concentrating (as if a spell). I can move the citadel through the air 80 ft/round or 8 miles/h, steer it, and see and hear from its highest point as though I was at that location. As an action or bonus action, I can transfer attunement to a willing spellcaster.\",\r\n\tdescriptionFull : \"The function of this ornate chair is to propel and maneuver a flying citadel on which it has been installed. The chair has AC 15, 18 hit points, and immunity to poison and psychic damage. It is destroyed if reduced to 0 hit points.\"+\r\n\t\"\\n   The sensation of being attuned to a flying citadel helm is akin to the pins-and-needles effect one experiences after one's arm or leg falls asleep, but not as intense.\"+\r\n\t\"\\n   While attuned to a flying citadel helm and sitting in it, you gain the following abilities for as long as you maintain concentration (as if concentrating on a spell):\"+\r\n\t\"\\n \\u2022 You can use the flying citadel helm to move the citadel through the air, up to 80 feet per round, or up to 8 miles per hour.\"+\r\n\t\"\\n \\u2022 You can steer the citadel, albeit in a somewhat clumsy fashion, in much the way that a rudder or oars can be used to maneuver a seafaring ship.\"+\r\n\t\"\\n \\u2022 At any time, you can see and hear from the highest point outside the citadel as though you were at that location.\"+\r\n\t\"\\n\\n   If no creature attuned to the helm is maintaining concentration, the citadel remains motionless in its space.\"+\r\n\t\"\\n   \"+toUni(\"Transfer Attunement\")+\". You can use an action or a bonus action to touch a willing spellcaster, whereupon that creature attunes to the flying citadel helm immediately, and your attunement to the flying citadel helm ends.\"+\r\n\t\"\\n   \"+toUni(\"Crash\")+\". Should the flying citadel helm be destroyed, the citadel it is installed on loses power and begins to crumble. If the crumbling citadel is in the air, it descends at a rate of 30 feet per round, or 300 feet per minute. Any creature on the citadel or on the ground within 120 feet of the citadel when it lands must make a DC 20 Dexterity saving throw, taking 39 (6d12) bludgeoning damage on a failed save, or half as much damage on a successful one.\",\r\n\taction : [\r\n\t\t[\"action\", \" (Transfer Attunement)\"],\r\n\t\t[\"bonus action\", \" (Transfer Attunement)\"]\r\n\t]\r\n};\r\nMagicItemsList[\"kagonesti forest shroud\"] = {\r\n\tname : \"Kagonesti Forest Shroud\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"This cloak of autumnal leaves woven together grants me advantage on Dexterity (Stealth) checks. As a bonus action once per dawn, I can use it to magically teleport to an unoccupied space I can see within 30 ft. I then have advantage on the next attack roll I make before the end of the turn.\",\r\n\tdescriptionFull : \"This cloak appears to be made of autumnal leaves woven together. While you wear this cloak, you have advantage on Dexterity (Stealth) checks, and you can use a bonus action to magically teleport, along with any equipment you are wearing or carrying, to an unoccupied space you can see within 30 feet of yourself. You then have advantage on the next attack roll you make before the end of the turn. Once this bonus action is used, it can't be used again until the next dawn.\",\r\n\tadvantages : [[\"Stealth\", true]],\r\n\taction : [[\"bonus action\", \" (teleport)\"]],\r\n\tusages : 1,\r\n\trecovery : \"Dawn\",\r\n\tadditional : \"teleport\"\r\n};\r\nMagicItemsList[\"mirror of reflected pasts\"] = {\r\n\tname : \"Mirror of Reflected Pasts\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can (de)activate this mirror. It can be activated once per dawn, making it hover in the air, can't be moved, and when a non-construct sees its reflection in it while within 30 ft, it must make a DC 15 Wis save. It is paralyzed until the mirror is deactivated. It can retry the save at the end of each of its turns.\",\r\n\tdescriptionLong : \"As an action, I can activate this mirror of elven design once per dawn, or deactive it. While active, it hovers in the air and can't be moved. When a non-construct creature within 30 ft of the mirror sees its reflection in it, the creature must make a DC 15 Wisdom save or become paralyzed. The creature can repeat the save at the end of each of its turns, but is otherwise paralyzed until the  mirror is deactivated. A successful save makes a creature immune for 24 hours. While paralyzed by the mirror, the creature sees idealized versions of events from their past reflected in the mirror's glass.\",\r\n\tdescriptionFull : \"This mirror of elven design allows those who stare into it to reflect on positive memories. The 3-foot-tall mirror weighs 25 pounds, and it has AC 11, 10 hit points, and vulnerability to bludgeoning damage. It shatters and is destroyed if reduced to 0 hit points.\"+\r\n\t\"While holding the mirror upright, you can use an action to speak its command word and activate it. While activated, the mirror hovers in the air, and it can be destroyed but not moved. It remains activated until you use an action to speak the command word again or your attunement to the mirror ends, at which point the mirror harmlessly floats to the ground. Once the mirror has been deactivated, it can't be activated again until the next dawn.\"+\r\n\t\"If a non-Construct creature other than you sees its reflection in the activated mirror while within 30 feet of it, that creature must succeed on a DC 15 Wisdom saving throw or become paralyzed until the mirror is deactivated or until that creature can no longer see the mirror. A creature paralyzed by the mirror can repeat the saving throw at the end of each of its turns, ending the effect on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to this mirror's effect for the next 24 hours.\"+\r\n\t\"While paralyzed by the mirror, the creature sees events from their past reflected in the mirror's glass. These memories aren't real, but rather idealized versions of those occurrences. Nearby observers can glimpse flashes of these memories if looking indirectly at the mirror.\",\r\n\tweight : 25,\r\n\taction : [[\"action\", \" [(de)activate]\"]],\r\n\tusages : 1,\r\n\trecovery : \"Dawn\"\r\n};\r\n\n// pub_20230221_KftGV.js\r\n// This file adds the magic items from the Keys from the Golden Vault adventure book to MPMB's Character Record Sheet\r\n\r\nSourceList[\"KftGV\"] = {\r\n\tname : \"Keys from the Golden Vault [items]\",\r\n\tabbreviation : \"KftGV\",\r\n\tgroup : \"Adventure Books\",\r\n\turl : \"https://dnd.wizards.com/products/keys-from-the-golden-vault\",\r\n\tdate : \"2023/02/21\"\r\n};\r\n\r\nvar KftGV_ConstantoriPortrait = [\r\n\t\"This painting by famed artist Dkesii Kwan depicts Constantori, a beautiful courtier, who was paid a staggering sum to be Dkesii's model. Whether Constantori's actual appearance matches the painting remains a subject of debate. The portrait is one of several paintings commissioned by the late Daiyani Grysthorn, a crime lord who frequently gave magical paintings as gifts to her most esteemed associates.\",\r\n\t\">>Sentience<<. Constantori's Portrait is a sentient, lawful evil item with an Intelligence score of 14, a Wisdom score of 12, and a Charisma score of 8. It can hear within a range of 120 feet and has darkvision within a range of 60 feet, but it can't see anything behind itself.\",\r\n\t\"The painting can converse in Common, Draconic, and Elvish as if it were a living person, though Constantori's mouth doesn't move. Whenever conversation occurs within the portrait's auditory range, the painting eagerly gathers secrets, the names of secret tellers, significant events, or any political conversations.\",\r\n\t\">>Personality<<. Constantori's Portrait is demanding, condescending, and vain. It doesn't like being covered or placed out of sight, and it loudly condemns anyone who tries to remove it from its gold-leaf frame.\",\r\n\t\">>Wealth of Information<<. The painting's primary purpose is to observe and recall conversations. Over the past few decades, Constantori's Portrait has quietly observed countless conversations and now possesses an unquantifiable amount of lore\\u2014everything from criminal conspiracies to secret passwords. The DM decides what the painting knows and what it doesn't.\",\r\n\t\"While attuned to the painting, you can take an action to telepathically contact it over any distance, provided the painting and you are on the same plane of existence. The painting can't telepathically contact you, however. Maintaining telepathic contact with the painting requires your concentration (as if concentrating on a spell).\",\r\n\t\">>Guardian Portrait<<. While you are attuned to the painting, you can command it to guard its location against one or more creatures you identify as the painting's enemies. The painting performs this function until you command it to stop or until your attunement to the painting ends.\",\r\n\t\"The painting has 3 charges. When a creature the painting identifies as its enemy starts its turn in a space the painting can see, the painting expends 1 of its charges to cast magic missile (3 missiles), targeting that creature. The painting regains all expended charges daily at dawn.\",\r\n\t\"The painting is a Small object with AC 12, 20 hit points, and immunity to poison damage. In its gold-leaf frame, the painting weighs 15 pounds. If the painting has at least 1 hit point and is targeted by a mending spell, it regains 2d6 hit points.\"\r\n];\r\nMagicItemsList[\"constantori's portrait\"] = {\r\n\tname : \"Constantori's Portrait\",\r\n\tsource : [[\"KftGV\", 101]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can telepathically contact this sentient painting over any distance while on the same plane. It can't contact me. Maintaining contact requires concentration like on a spell. I can command the painting to guard an area. It can cast Magic Missile 3 times per dawn. See Notes page.\",\r\n\tdescriptionFull : KftGV_ConstantoriPortrait.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(KftGV_ConstantoriPortrait).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(contact) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\taction : [[\"action\", \" (contact)\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"magic missile\"],\r\n\t\tselection : [\"magic missile\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n};\r\n\r\nMagicItemsList[\"shard of xeluan\"] = {\r\n\tname : \"Shard of Xeluan\",\r\n\tsource : [[\"KftGV\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"While holding this 1-ft long obsidian shard, I can use it as a spellcasting focus, and I gain a +1 bonus to my spell attack rolls. While it is on my person, I gain +4 Strength up to 22. Attuning to this shard extends its curse to me: When I roll a 1 on a check, attack, or save, I must roll on its misfortunes table, see Notes.\",\r\n\tdescriptionFull : \"This 1-foot-long shard of obsidian has veins of silver and gold beneath its cold surface.\"+\r\n\t\"\\n   \" + toUni(\"Empowered Magic\") + \". While holding the shard, you can use it as a spellcasting focus, and it gives you a +1 bonus to your spell attack rolls.\"+\r\n\t\"\\n   \" + toUni(\"Enhanced Strength\") + \". Your Strength score increases by 4 while the shard is on your person. The shard can't raise your Strength score above 22.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Attuning to this item extends its curse to you. You remain cursed until you are targeted by a remove curse spell or similar magic, or until the shard is reattached to Xeluan's petrified heart.\"+\r\n\t\"\\n   The shard's curse causes misfortune to befall you. When you roll a 1 on an attack roll, an ability check, or a saving throw, roll on the Shard Misfortunes table to determine the misfortune. For as long as this misfortune lasts, no other shard misfortunes befall you.\"+\r\n\t\"\\n\\n \" + toUni(\"d6\\tMisfortune\")+\r\n\t\"\\n  1\\tYou accidentally cut yourself with the shard and are poisoned until the next dawn.\"+\r\n\t\"\\n  2\\tYou experience a vision of an ancient calamity\\u2014a beautiful city threatened by crumbling mountains and erupting volcanoes\\u2014and are stunned until the end of your next turn.\"+\r\n\t\"\\n  3\\tFor a few seconds, the ground shakes under you. You and each creature within 10 feet of you must succeed on a DC 16 Dexterity saving throw or be knocked prone.\"+\r\n\t\"\\n  4\\tThe shard releases three glowing darts of magical force that target one random creature within 30 feet of you. If no such target exists, you become the target. Each dart hits automatically and deals 3 (1d4 + 1) force damage to the target.\"+\r\n\t\"\\n  5\\tUntil the next dawn, Beasts with an Intelligence score of 3 or lower are hostile to you.\"+\r\n\t\"\\n  6\\tNothing seems to go your way. Until the next dawn, you have disadvantage on ability checks.\",\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t]\r\n\t},\r\n\tscores : [4, 0, 0, 0, 0, 0],\r\n\tscoresMaximum : [22, 0, 0, 0, 0, 0],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Shard Misfortunes Table\",\r\n\t\tnote : [\r\n\t\t\t\"Attuning to this item extends its curse to me. I remain cursed until I'm targeted by a remove curse spell or similar magic, or until the shard is reattached to Xeluan's petrified heart.\",\r\n\t\t\t\"The shard's curse causes misfortune to befall me. When I roll a 1 on an attack roll, an ability check, or a saving throw, roll on the Shard Misfortunes table to determine the misfortune. For as long as this misfortune lasts, no other shard misfortunes befall me.\",\r\n\t\t\t\"\\n  d6\\tMisfortune\",\r\n\t\t\t\"1\\tI accidentally cut myself with the shard and are poisoned until the next dawn.\"+\r\n\t\t\t\"2\\tI experience a vision of an ancient calamity: a beautiful city threatened by crumbling mountains and erupting volcanoes. I am stunned until the end of my next turn.\"+\r\n\t\t\t\"3\\tFor a few seconds, the ground shakes under me. Each creature within 10 ft of me, myself included, must succeed on a DC 16 Dexterity saving throw or be knocked prone.\"+\r\n\t\t\t\"4\\tThe shard releases three glowing darts of magical force that target one random creature within 30 ft of me. If no such target exists, I become the target. Each dart hits automatically and deals 1d4+1 force damage to the target.\"+\r\n\t\t\t\"5\\tUntil the next dawn, Beasts with an Intelligence score of 3 or lower are hostile to me.\"+\r\n\t\t\t\"6\\tNothing seems to go my way. Until the next dawn, I have disadvantage on ability checks.\"\r\n\t\t]\r\n\t}]\r\n};\r\n\r\nvar KftGV_ShardSolitaire = {\r\n\tdescriptionFull : \"This gemstone contains an unstable extradimensional rift. Its facets are ribboned with iridescent veins that seem to move of their own accord. Five types of shard solitaire are known to exist, each one a different type of gemstone: black sapphire, diamond, jacinth, rainbow pearl, and ruby.\"+\r\n\t\"\\n   \" + toUni(\"Rift Step\") + \". As a bonus action, while wearing or holding the shard solitaire, you can teleport yourself, along with anything you're wearing or carrying, to an unoccupied space you can see within 30 feet of yourself.\"+\r\n\t\"\\n   When you use this property, you can tap into the unstable power of the stone's extradimensional rift to increase the teleport distance by up to 30 feet, but if you teleport more than 30 feet using Rift Step, you must succeed on a DC 16 Constitution saving throw or take 3d10 force damage immediately after you teleport.\"+\r\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". The stone has 6 charges and regains 1d6 expended charges daily at dawn. \",\r\n\tdescriptionTable : \"The Shard Solitaire Types table lists the spells common to all shard solitaires, as well as the spells specific to each kind of stone. As an action, you can cast one of the stone's spells by expending the requisite number of charges, requiring no material components (save DC 16).\"+\r\n\t\"\\n\\n \" + toUni(\"Shard Solitaire\\tSpells\")+\r\n\t\"\\n  All\\t\\tBanishment (3 charges; the target is banished to the stone's extradimensional space\"+\r\n\t\"\\n\\t\\tfor the spell's duration), Mirror Image (1 charge)\"+\r\n\t\"\\n  Black sapphire\\tBlight (3 charges), Finger of Death (6 charges)\"+\r\n\t\"\\n  Diamond\\tIce Storm (3 charges), Simulacrum (6 charges; the duplicate created by the spell\"+\r\n\t\"\\n\\t\\thas the same number of hit points as the creature it imitates)\"+\r\n\t\"\\n  Jacinth\\t\\tFireball (2 charges), Fire Storm (6 charges)\"+\r\n\t\"\\n  Rainbow pearl\\tPrismatic Spray (6 charges), Water Breathing (2 charges)\"+\r\n\t\"\\n  Ruby\\t\\tFly (2 charges), Teleport (6 charges)\",\r\n\tspellcastingBonus : [{\r\n\t\tfixedDC : 16,\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"mirror image\"],\r\n\t\tselection : [\"mirror image\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"banishment\"],\r\n\t\tselection : [\"banishment\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tspellChanges_banishment : {\r\n\t\tdescription : \"1 crea save or banished to the stone's extradimensional space for the spell's duration\",\r\n\t\tchanges : \"The target is instead banished to the stone's extradimensional space for the spell's duration.\"\r\n\t}\r\n};\r\nMagicItemsList[\"shard solitaire\"] = {\r\n\tname : \"Shard Solitaire\",\r\n\tsource : [[\"KftGV\", 193]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action while wearing or holding this gemstone, I can teleport up to 60 ft to an empty space I can see. If I teleport over 30 ft, I need to make a DC 16 Con save or take 3d10 force damage. It has 6 charges, regaining 1d6 at dawn. I can use these charges to cast several spells as an action, see the spell sheet.\",\r\n\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull.replace(\": black sapphire, diamond, jacinth, rainbow pearl, and ruby.\", \", as shown in the Shard Solitaire Types table.\") + KftGV_ShardSolitaire.descriptionTable,\r\n\tallowDuplicates : true,\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\tchoices : [\"Black Sapphire\", \"Diamond\", \"Jacinth\", \"Rainbow Pearl\", \"Ruby\"],\r\n\t\"black sapphire\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The black sapphire shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Blight (3 charges), Finger of Death (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Black Sapphire (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"3 charges\",\r\n\t\t\tspells : [\"blight\"],\r\n\t\t\tselection : [\"blight\"],\r\n\t\t\tfirstCol : 3\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"finger of death\"],\r\n\t\t\tselection : [\"finger of death\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"diamond\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The diamond shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Ice Storm (3 charges), Simulacrum (6 charges; the duplicate created by the spell has the same number of hit points as the creature it imitates).\",\r\n\t\taction : [[\"bonus action\", \"Diamond (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"3 charges\",\r\n\t\t\tspells : [\"ice storm\"],\r\n\t\t\tselection : [\"ice storm\"],\r\n\t\t\tfirstCol : 3\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"simulacrum\"],\r\n\t\t\tselection : [\"simulacrum\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment,\r\n\t\t\t\"simulacrum\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tdescription : \"Create illusory duplicate of humanoid/beast; follows my verbal commands; has full HP, not half; See B\",\r\n\t\t\t\tchanges : \"Cast as 1 action and the duplicate created by the spell has the same number of hit points as the creature it imitates.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"jacinth\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The jacinth shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Fireball (2 charges), Fire Storm (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Jacinth (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"fireball\"],\r\n\t\t\tselection : [\"fireball\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"fire storm\"],\r\n\t\t\tselection : [\"fire storm\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"rainbow pearl\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The rainbow pearl shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Prismatic Spray (6 charges), Water Breathing (2 charges).\",\r\n\t\taction : [[\"bonus action\", \"Rainbow Pearl (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"prismatic spray\"],\r\n\t\t\tselection : [\"prismatic spray\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}, {\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"water breathing\"],\r\n\t\t\tselection : [\"water breathing\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"ruby\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The ruby shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Fly (2 charges), Teleport (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Ruby (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"fly\"],\r\n\t\t\tselection : [\"fly\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"teleport\"],\r\n\t\t\tselection : [\"teleport\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t}\r\n};\r\n\n// pub_20230815_GotG.js\n// This file adds the player-material from Bigby Presents: Glory of the Giants to MPMB's Character Record Sheet\n\nSourceList[\"GotG\"] = {\n\tname : \"Bigby Presents: Glory of the Giants\",\n\tabbreviation : \"GotG\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://www.dndbeyond.com/marketplace/sourcebooks/bigby-presents-glory-of-the-giants\",\n\tdate : \"2023/08/15\"\n};\n\nAddSubClass(\"barbarian\", \"giant\", {\n\tregExpSearch : /^((?=.*(marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n))|((?=.*(warrior|fighter))(?=.*(feral|tribal))))(?=.*giant).*$/i,\n\tsubname : \"Path of the Giant\",\n\tsubnameShort: \"Giant\",\n\tsource : [[\"GotG\", 11]],\n\tabilitySave : 1,\n\tspellcastingAbility : 5,\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Giant Power\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc(\"I learn Giant, and the Druidcraft or Thaumaturgy cantrip with Wis as spellcasting ability\"),\n\t\t\tlanguageProfs : [\"Giant\"],\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Giant Power\",\n\t\t\t\tspells : [\"druidcraft\", \"thaumaturgy\"],\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Giant's Havoc\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn desc([\n\t\t\t\t\t\"While raging, I add the bonus damage to ranged thrown weapon attacks that use Str,\",\n\t\t\t\t\t\"I gain +\" + (n < 14 ? 5 : 10) + \" ft reach, and I can become \" + (n < 14 ? 'Large' : 'Huge') + \" along with what I'm wearing, if there is room\"\n\t\t\t\t]);\n\t\t\t})\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Elemental Cleaver\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn desc([\n\t\t\t\t\t\"When I rage, I can infuse a weapon I'm holding with acid, cold, fire, thunder, or lightning\",\n\t\t\t\t\t\"While raging, its damage type changes to the chosen type and it deals +\" + (n < 14 ? 1 : 2) + \"d6 damage,\",\n\t\t\t\t\t\"it gains the thrown (20/60 ft) property, and reappears instantly after a thrown attack\",\n\t\t\t\t\t\"As a bonus action, I can change the chosen type; The bonuses only function for me\"\n\t\t\t\t]);\n\t\t\t}),\n\t\t\taction : [[\"bonus action\", \" (change type)\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif ((v.isMeleeWeapon || v.isRangedWeapon) && classes.known.barbarian && classes.known.barbarian.level && /^(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Damage_Type = \"Varies\";\n\t\t\t\t\t\t\tvar isThrownWeapon = /\\bthrown\\b/i.test(v.WeaponText);\n\t\t\t\t\t\t\tvar extraDmg = classes.known.barbarian.level < 14 ? '+1d6 damage' : '+2d6 damage';\n\t\t\t\t\t\t\tvar extraProp = v.isRangedWeapon && !isThrownWeapon ? 'Thrown (20/60 ft), returning; ' : isThrownWeapon ? 'Returning; ' : 'Thrown, returning; ';\n\t\t\t\t\t\t\tvar hasRange = /\\d+ ?(f.{0,2}t|m)/i.test(fields.Range);\n\t\t\t\t\t\t\tif (!hasRange) {\n\t\t\t\t\t\t\t\tfields.Range += ', 20/60 ft';\n\t\t\t\t\t\t\t} else if ((!v.isRangedWeapon || isThrownWeapon) && hasRange) {\n\t\t\t\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\n\t\t\t\t\t\t\t\tif (rangeNmbr.length === 1) {\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[0].replace(',', '.'));\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = fields.Range.replace(longRange,\"long_range\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvar shortRange = Number(rangeNmbr[0].replace(',', '.'));\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[1].replace(',', '.'));\n\t\t\t\t\t\t\t\t\ttempRange = fields.Range;\n\t\t\t\t\t\t\t\t\tif (shortRange < 20) tempRange = tempRange.replace(shortRange,\"short_range\");\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = tempRange.replace(longRange,\"long_range\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfields.Range = tempRange.replace(\"short_range\", 20).replace(\"long_range\", 60);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + extraProp + extraDmg;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the words 'Elemental Cleaver' in a weapon's name, the Elemental Cleaver infused weapon properties will be added to it and its damage type will be set to 'Varies'. Also, my Rage's bonus damage will be added to it if it is a melee weapon that uses Strength.\"\n\t\t\t\t],\n\t\t\t\tatkCalc : [\n\t\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && fields.Mod === 1 && classes.known.barbarian && classes.known.barbarian.level && /^(?!.*\\brage\\b)(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.barbarian.level < 9 ? 2 : classes.known.barbarian.level < 16 ? 3 : 4;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Mighty Impel\",\n\t\t\tsource : [[\"GotG\", 12]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn \" [DC 8 + Prof Bonus + Str mod]\" + desc([\n\t\t\t\t\t\"As a bonus action while raging, I can hurl a \" + (n < 14 ? 'Medium' : 'Large') + \" or smaller creature within my reach\",\n\t\t\t\t\t\"I move it to an empty space I can see within 30 ft; Unwilling can save to avoid this\",\n\t\t\t\t\t\"If it doesn't end this movement on a surface that can support it, it falls and lands prone\"\n\t\t\t\t]);\n\t\t\t}),\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Demiurgic Colossus\",\n\t\t\tsource : [[\"GotG\", 12]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"While raging, my reach increases by 10 ft, and my size can increase to Huge\",\n\t\t\t\t\"Mighty Impel works on Large creatures; Elemental Cleaver increases to +2d6 damage\",\n\t\t\t])\n\t\t}\n\t}\n});\n\nBackgroundList[\"giant foundling\"] = {\n\tregExpSearch : /^(?=.*giant)(?=.*foundling).*$/i,\n\tname : \"Giant Foundling\",\n\tsource : [[\"GotG\", 12]],\n\tskills : [\"Intimidation\", \"Survival\"],\n\tgold : 10,\n\tlanguageProfs : [\"Giant\", 1],\n\tequipleft : [\n\t\t[\"Backpack\", \"\", 5],\n\t\t[\"Small stone/sprig from home\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Strike of the Giants\",\n\ttrait : [\n\t\t\"What I lack in stature compared to giants, I make up for with sheer spite.\",\n\t\t\"I insist on being taken seriously as a full-grown adult. Nobody talks down to me!\",\n\t\t\"Crowded spaces make me uncomfortable. I'd much rather be in an open field than a bustling tavern.\",\n\t\t\"I embrace my shorter stature. It helps me stay unnoticed\\u2014and underestimated.\",\n\t\t\"Every avalanche begins as a single pebble.\",\n\t\t\"The world always feels too big, and I'm afraid I'll never find my place in it.\"\n\t],\n\textra : [\n\t\t\"Choose an Origin Story\",\n\t\t\"Found as a baby\",\n\t\t\"Rescued by stone giants\",\n\t\t\"Lost in the jungle with frost giant\",\n\t\t\"Family killed in war of giants\",\n\t\t\"Studied with storm giant oracle\",\n\t\t\"Adopted by cloud giant\"\n\t]\n};\nBackgroundFeatureList[\"strike of the giants\"] = {\n\tdescription : \"I grew up among giants or where they lived. Something about this environment\\u2014the food, water, elemental magic, or some blessing\\u2014caused me to grow to a remarkable size for my kind. I'm used to moving through a world much bigger than I, and that is reflected in my skills, attitude, and perspective on life. I gain the Strike of the Giants feat.\",\n\tsource : [[\"GotG\", 13], [\"UA:WotM\", 4]],\n\tfeatsAdd: [\"Strike of the Giants\"],\n};\n\nBackgroundList[\"rune carver\"] = {\n\tregExpSearch : /^(?=.*rune)(?=.*carver).*$/i,\n\tname : \"Rune Carver\",\n\tsource : [[\"GotG\", 14]],\n\tskills : [\"History\", \"Perception\"],\n\tgold : 10,\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tlanguageProfs : [\"Giant\"],\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Small knife\", \"\", 0.5],\n\t\t[\"Whetstone\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Rune Shaper\",\n\ttrait : [\n\t\t\"Is it practical to learn an ancient language that is rarely spoken? No. But is it fun? Very.\",\n\t\t\"I learned one of my ancestors was a lauded rune carver whose story was lost to time. I seek to rekindle that legacy.\",\n\t\t\"The old, traditional markings of runecraft look so boring. Why not give my runes some flair?\",\n\t\t\"In my studies of runes, I strive to understand how great civilizations of the past fell, so I can prevent it from happening to societies of the present.\",\n\t\t\"Life may be a whirlwind of chaos, but whenever I create my runes, I feel at peace.\",\n\t\t\"My brain struggles to process words written in ink, but the feeling of carved runes makes my mind sing.\"\n\t],\n\textra : [\n\t\t\"Choose a Rune Style\",\n\t\t\"Needle in wax/clay\",\n\t\t\"Whittle wooden figurines\",\n\t\t\"Engraved glass beads\",\n\t\t\"Stitched into hems of clothing\",\n\t\t\"Carved animal bones\",\n\t\t\"Drawn into candles\"\n\t]\n};\nBackgroundFeatureList[\"rune shaper\"] = {\n\tdescription : \"I've dedicated my life to studying runecraft, taught by a master rune carver or learned by poring over ancient engravings. I can tap into the supernatural power held within runes. The art of runecraft has been adopted by many outside of giant society and those often incorporate their native language among the Giant runes. I gain the Rune Shaper feat.\",\n\tsource : [[\"GotG\", 14]],\n\tfeatsAdd: [\"Rune Shaper\"],\n};\n\n// Feats - first the Strike of the Giants tree\nFeatsList[\"strike of the giants\"] = {\n\tname : \"Strike of the Giants\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"Martial weapon proficiency or Giant Foundling background\",\n\tprereqeval : function (v) {\n\t\treturn v.martialWeaponsProf || CurrentBackground.known.indexOf('giant foundling') !== -1 || /strike of the giants/i.test(What(\"Background Feature\"));\n\t},\n\tdescriptionFull : \"You have absorbed primeval magic that gives you an echo of the might of giants. When you take this feat, choose one of the benefits listed below. Once per turn, when you hit a target with a melee weapon attack or a ranged weapon attack using a thrown weapon, you can imbue the attack with an additional effect depending on the benefit you chose:\"+\n\t\"\\n   \" + toUni(\"Cloud Strike\") + \". The target takes an extra 1d4 thunder damage. If the target is a creature, it must succeed on a Wisdom saving throw, or you become invisible to it until the start of your next turn or until immediately after you make an attack roll or cast a spell.\"+\n\t\"\\n   \" + toUni(\"Fire Strike\") + \". The target takes an extra 1d10 fire damage.\"+\n\t\"\\n   \" + toUni(\"Frost Strike\") + \". The target takes an extra 1d6 cold damage. If the target is a creature, it must succeed on a Constitution saving throw, or its speed is reduced to 0 until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Hill Strike\") + \". The target takes an extra 1d6 damage of the weapon's type. If the target is a creature, it must succeed on a Strength saving throw or have the prone condition.\"+\n\t\"\\n   \" + toUni(\"Stone Strike\") + \". The target takes an extra 1d6 force damage. If the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet from you in a straight line.\"+\n\t\"\\n   \" + toUni(\"Storm Strike\") + \". The target takes an extra 1d6 lightning damage. If the target is a creature, it must succeed on a Constitution saving throw, or it has disadvantage on attack rolls until the start of your next turn.\"+\n\t\"\\n   The saving throw DC for these effects equals 8 + your proficiency bonus + your Strength or Constitution modifier.\"+\n\t\"\\n   You can use this feat a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\tchoices : [\"Cloud Strike\", \"Fire Strike\", \"Frost Strike\", \"Hill Strike\", \"Stone Strike\", \"Storm Strike\"],\n\t\"cloud strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d4 thunder damage. It must then make a Wis save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or I become invisible to it until my next turn starts, I make an attack, or I cast a spell. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"fire strike\" : {\n\t\tdescription : \"I have absorbed primeval magic that gives me an echo of the might of giants. Once per turn when I hit with a melee weapon attack or thrown weapon, the target takes +1d10 fire damage. I can do this a number of times per long rest equal to my proficiency bonus.\"\n\t},\n\t\"frost strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 cold damage. It must then make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or its speed is reduced to 0 until my next turn starts. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"hill strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 damage. It must then make a Str save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or be knocked prone. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"stone strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 force damage. It must then make a Wis save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or be pushed 10 ft away from me in a straight line. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"storm strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 lightning damage. It must then make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or it gets disadvantage on attack rolls until my next turn starts. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t}\n}\nFeatsList[\"ember of the fire giant\"] = {\n\tname : \"Ember of the Fire Giant\",\n\tsource : [[\"GotG\", 17]],\n\tprerequisite : \"4th level, Strike of the Giants (Fire Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'fire strike';\n\t},\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\n\t\"\\n\" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace a single attack with a magical burst of flame. Each creature of your choice in a 15-foot-radius sphere centered on you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, a creature takes fire damage equal to 1d8 + your proficiency bonus, and it has the blinded condition until the start of your next turn. On a successful save, the creature takes half as much damage only. You can use your Searing Ignition a number of times equal to your proficiency bonus (but no more than once per turn), and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I get fire resistance. Prof B. per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8 + Prof B. fire damage, blind until my next turn starts. Dex save DC 8 + Prof B. + Str/Con/Wis mod half damage, not blind. [+1 Str/Con/Wis]\",\n\textraLimitedFeatures : [{\n\t\tname : \"Searing Ignition\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Fire\"],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Str mod) halves damage, not blinded. [+1 Str]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 1,\n\t\t\ttype : 'AlwaysProf',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Con mod) halves damage, not blinded. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 3,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Wis mod) halves damage, not blinded. [+1 Wis]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 5,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"fury of the frost giant\"] = {\n\tname : \"Fury of the Frost Giant\",\n\tsource : [[\"GotG\", 17]],\n\tprerequisite : \"4th level, Strike of the Giants (Frost Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'frost strike';\n\t},\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\n\t\"\\n\" + toUni(\"Frigid Retaliation\") + \". Immediately after a creature you can see within 30 feet of you hits you with an attack roll and deals damage, you can use your reaction to retaliate with a conjured blast of ice. The creature must make a Constitution saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, the creature takes cold damage equal to 1d8 + your proficiency bonus, and its speed is reduced to 0 until the end of its next turn. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I gain cold resistance. As a reaction when a creature I see within 30 ft damages me with an attack, I can, Prof B. times per long rest, use Frigid Retaliation: it must make a Con save DC 8 + Prof B. + Str/Con/Wis mod or take 1d8 + Prof B. cold damage and have speed 0 until its next turn ends. [+1 Str/Con/Wis]\",\n\taction : [[\"reaction\", \"Frigid Retaliation\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Frigid Retaliation\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Cold\"],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Str mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Str]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 1,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Con mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 3,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Wis mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Wis]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 5,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"guile of the cloud giant\"] = {\n\tname : \"Guile of the Cloud Giant\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"4th level, Strike of the Giants (Cloud Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'cloud strike';\n\t},\n\tdescriptionFull : \"You've manifested the confounding magic emblematic of cloud giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Charisma by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Cloudy Escape\") + \". When a creature you can see hits you with an attack roll, you can use your reaction to give yourself resistance to that attack's damage. You then teleport to an unoccupied space that you can see within 30 feet of yourself. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can give myself resistance to that attack's damage. I then teleport to an unoccupied space that I can see within 30 ft. I can do this reaction my proficiency bonus times per long rest.\",\n\taction : [[\"reaction\", \"Cloudy Escape\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Cloudy Escape\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Charisma\"],\n\t\"strength\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Strength]\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Constitution]\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Charisma]\",\n\t\tscores : [0,0,0,0,0,1]\n\t}\n};\nFeatsList[\"keenness of the stone giant\"] = {\n\tname : \"Keenness of the Stone Giant\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"4th level, Strike of the Giants (Stone Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'stone strike';\n\t},\n\tdescriptionFull : \"You've manifested the physical talents emblematic of stone giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Cavernous Sight\") + \". You gain darkvision with a range of 60 feet. If you already have darkvision from another source, its range increases by 60 feet.\"+\n\t\"\\n\" + toUni(\"Stone Throw\") + \". As a bonus action, you can take a rock and make a magical attack with it. The attack is a ranged spell attack with a range of 60 feet that uses the ability score you increased with this feat as the spellcasting ability. On a hit, the rock deals 1d10 force damage, and the target must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + the spellcasting ability modifier) or have the prone condition. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I gain +60 ft Darkvision. As a bonus action, Prof Bonus times per long rest, I can make a magical Stone Throw attack. It is a spell attack with 60 ft range that deals 1d10 force damage and the target hit must make a Str save or be knocked prone. This uses the ability increased as spellcasting ability. [+1 Str/Con/Wis]\",\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\taction : [[\"bonus action\", \"Stone Throw\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Stone Throw\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Strength as spellcasting ability. [+1 Strength]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 1,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Constitution as spellcasting ability. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 3,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Wisdom as spellcasting ability. [+1 Wisdom]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 5,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"soul of the storm giant\"] = {\n\tname : \"Soul of the Storm Giant\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"4th level, Strike of the Giants (Storm Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'storm strike';\n\t},\n\tdescriptionFull : \"You've manifested the tempest magic emblematic of storm giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Charisma by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself with an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts until the start of your next turn or until you are incapacitated. While the aura is active, you have resistance to lightning and thunder damage. In addition, attack rolls against you have disadvantage, and whenever another creature starts its turn within the aura, you can force the creature to make a Strength saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, the creature's speed is halved until the start of its next turn. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"As a bonus action, Prof B. per long rest, I can make a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning/thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to a Str save DC 8 + Prof + Str/Con/Cha mod or halve their speed until their next turn starts. [+1 Str/Con/Cha]\",\n\taction : [[\"bonus action\", \"Maelstrom Aura\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Maelstrom Aura\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Charisma\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Str mod) or halve their speed until their next turn starts. [+1 Str]';\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Con mod) or halve their speed until their next turn starts. [+1 Con]';\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Cha Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Cha mod) or halve their speed until their next turn starts. [+1 Cha]';\",\n\t\tscores : [0,0,0,0,0,1]\n\t}\n};\nFeatsList[\"vigor of the hill giant\"] = {\n\tname : \"Vigor of the Hill Giant\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"4th level, Strike of the Giants (Hill Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'hill strike';\n\t},\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or give you the prone condition, you can use your reaction to steady yourself. You aren't moved and don't have the prone condition.\"+\n\t\"\\n\" + toUni(\"Iron Stomach\") + \". Whenever you eat food as part of a short rest and spend one or more Hit Dice to regain hit points, you regain additional hit points equal to your Constitution modifier + your proficiency bonus.\",\n\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Constitution modifier + my proficiency bonus. [+1 Strength/Constitution/Wisdom]\",\n\taction : [[\"reaction\", \"Bulwark\"]],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 St\" + (typePF ? \"rength\" : \"\") + \"]\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 Con\" + (typePF ? \"stitution\" : \"\") + \"]\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 Wis\" + (typePF ? \"dom\" : \"\") + \"]\",\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\n// Feats - Rune Shaper\nvar GotG_RuneShaper = [\n\t\"You've studied the magic of Giant runes, granting you the following benefits:\",\n\t\">>Comprehend Languages<<. You learn the comprehend languages spell. You can cast this spell without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using any spell slots you have.\",\n\t\">>Rune Magic<<. You know a number of runes equal to half your proficiency bonus (rounded down), chosen from the Rune Spells table. Whenever you finish a long rest, you can inscribe each rune you know onto one nonmagical weapon, armor, piece of clothing, or other object you touch. You temporarily learn the 1st-level spells that correspond to the runes you inscribed, as specified on the Rune Spells table, and you know those spells until you finish a long rest, when the runes fade. While you are wearing or carrying any rune-marked object, you can cast the spells associated with those runes using any spell slots you have.\",\n\t\"You can also invoke a rune inscribed on an object you are wearing or carrying and cast its associated spell without expending a spell slot or using material components. Once you cast the spell in this way, you can't do so again until you finish a long rest. Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\n\t\"Each time you gain a level, you can replace one of the runes you know with another one from the Rune Spells table below.\\n\",\n\t\">>Rune\\tSpell<<\",\n\t\"Cloud\\tFog Cloud\",\n\t\"Death\\tInflict Wounds\",\n\t\"Dragon\\tChromatic Orb\",\n\t\"Enemy\\tDisguise Self\",\n\t\"Fire\\tBurning Hands\",\n\t\"Friend\\tSpeak with Animals\",\n\t\"Frost\\tArmor of Agathys\",\n\t\"Hill\\tGoodberry\",\n\t\"Journey\\tLongstrider\",\n\t\"King\\tCommand\",\n\t\"Mountain\\tEntangle\",\n\t\"Stone\\tSanctuary\",\n\t\"Storm\\tThunderwave\"\n];\nFeatsList[\"rune shaper\"] = {\n\tname : \"Rune Shaper\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"Spellcasting feature or Rune Carver background\",\n\tprereqeval : function(v) { return v.isSpellcastingClass || CurrentBackground.known.indexOf('rune carver') !== -1 || /rune shaper/i.test(What(\"Background Feature\")); },\n\tdescriptionFull : GotG_RuneShaper.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\tdescription : \"I know half my Prof Bonus, rounded down, in runes. After a long rest, I can inscribe each rune on a nonmagical objects I touch. It lasts until my next long rest. I can cast Comprehend Languages and each inscribed rune's spell once per long rest without a spell slot or material components, or by using spell slots. See Notes.\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellFirstColTitle : \"PR\",\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Comprehend languages\",\n\t\tspells : [\"comprehend languages\"],\n\t\tselection : [\"comprehend languages\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}, {\n\t\tname : \"Runes\",\n\t\tspells : [\"fog cloud\", \"inflict wounds\", \"chromatic orb\", \"disguise self\", \"burning hands\", \"speak with animals\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"entangle\", \"sanctuary\", \"thunderwave\"],\n\t\tfirstCol : \"oncelr+markedbox\",\n\t\tlinkTimesToHalfProf : true, // custom attribute, for use in calcChanges.spellList\n\t\ttimes : 1 // half proficiency bonus, so always minimum of 1\n\t}],\n\tchangeeval : function() {\n\t\tif (!CurrentSpells['rune shaper']) return;\n\t\t// See if the proficiency bonus changed to trigger the changes dialog\n\t\t// Don't set the times attribute here, but instead on every call to the spell dialog\n\t\tvar halfProf = Math.floor( Number(How('Proficiency Bonus')) / 2 );\n\t\tif (CurrentSpells['rune shaper'].halfProf != halfProf) {\n\t\t\tCurrentSpells['rune shaper'].halfProf = halfProf;\n\t\t\tCurrentUpdates.types.push(\"spells\");\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// Change the times attribute to be half proficiency, rounded down\n\t\t\t\t// Do it this way, so it is updated even if a bonus to proficiency was manually applied\n\t\t\t\tif (spName === 'rune shaper' && spType === 'feat-bonus' && spList.name === \"Comprehend languages\") {\n\t\t\t\t\tvar oCast = CurrentSpells['rune shaper'];\n\t\t\t\t\tvar halfProf = Math.floor( Number(How('Proficiency Bonus')) / 2 );\n\t\t\t\t\toCast.halfProf = halfProf;\n\t\t\t\t\tfor (var key in oCast.bonus) {\n\t\t\t\t\t\tvar aBonus = oCast.bonus[key];\n\t\t\t\t\t\tif (!isArray(aBonus)) aBonus = [aBonus];\n\t\t\t\t\t\tfor (var i = 0; i < aBonus.length; i++) {\n\t\t\t\t\t\t\tif (aBonus[i].linkTimesToHalfProf) {\n\t\t\t\t\t\t\t\taBonus[i].times = halfProf;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"\"\n\t\t]\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(GotG_RuneShaper).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/Your/g, \"My\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(contact|granting) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}]\n};\n\nCreatureList[\"spotted lion\"] = {\n\tname : \"Spotted Lion\",\n\tnameAlt : [\"Lion, Spotted\"],\n\tsource : [[\"GotG\", 177]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 15,\n\thp : 66,\n\thd : [7, 12],\n\tspeed : \"60 ft\",\n\tscores : [23, 14, 17, 5, 13, 10],\n\tskills : {\n\t\t\"perception\" : 5,\n\t\t\"stealth\" : 6\n\t},\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 15,\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Rend\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"Bonus action on prone target; If used after 20 ft straight move, see Pounce trait\",\n\t\ttooltip : \"If the lion moved at least 20 ft straight toward the target immediately before hitting it, the target must succeed on a DC 16 Strength saving throw or have the prone condition. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Pack Tactics\",\n\t\tdescription : \"The lion has advantage on an attack roll against a creature if at least one of the lion's allies is within 5 feet of the target and the ally doesn't have the incapacitated condition.\"\n\t}, {\n\t\tname : \"Pounce\",\n\t\tdescription : \"If the lion moved at least 20 ft straight toward the target immediately before hitting it, the target must succeed on a DC 16 Strength saving throw or have the prone condition. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Senses##. Darkvision 60 ft.\",\n\t\t\"##Pack Tactics##. Advantage on attack rolls if at least one capable ally is within 5 ft of the target.\",\n\t\t\"##Pounce##. If moved 20 ft straight to the target before hitting it, the target must succeed on a DC 16 Strength saving throw or be knocked prone. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t].join(\"\\n\")\n};\nCreatureList[\"titanothere\"] = {\n\tname : \"Titanothere\",\n\tsource : [[\"GotG\", 185]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 16,\n\thp : 136,\n\thd : [13, 12],\n\tspeed : \"50 ft\",\n\tscores : [25, 10, 19, 2, 12, 6],\n\tpassivePerception : 11,\n\tchallengeRating : \"5\",\n\tproficiencyBonus : 3,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Stomp\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\",\n\t\ttooltip : \"If the titanothere moved at least 20 feet straight toward the target immediately before hitting it, the target takes an extra 13 (3d8) bludgeoning damage, and if the target is a creature, it must succeed on a DC 18 Strength saving throw or be knocked prone.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Beast of Burden\",\n\t\tdescription : \"The titanothere is considered to be one size larger for the purpose of determining its carrying capacity.\"\n\t}, {\n\t\tname : \"Charge\",\n\t\tdescription : \"If the titanothere moved at least 20 feet straight toward the target immediately before hitting it, the target takes an extra 13 (3d8) bludgeoning damage, and if the target is a creature, it must succeed on a DC 18 Strength saving throw or be knocked prone.\"\n\t}]\n};\n\n// Magic Items (excluding Horizon Puzzle Cube, because that's really just a storytelling device)\nMagicItemsList[\"elven thrower\"] = { // spear, but otherwise identical to Dwarven Thrower\n\tname : \"Elven Thrower\",\n\tsource : [[\"GotG\", 64]],\n\ttype : \"weapon (spear)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by an Elf\",\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this magic weapon. When you hit with a ranged attack using this weapon, it deals an extra 1d8 damage or, if the target is a Giant, 2d8 damage. Immediately after the attack, the weapon flies back to your hand.\",\n\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magic spear. When I hit with a ranged attack using this weapon, it deals an extra 1d8 damage or, if the target is a Giant, 2d8 damage. Immediately after the attack, the weapon flies back to my hand.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"spear\",\n\t\tregExpSearch : /^(?=.*elven)(?=.*thrower).*$/i,\n\t\tname : \"Elven Thrower\",\n\t\tsource : [[\"SRD\", 220], [\"D\", 167]],\n\t\trange : \"Melee, 20/60 ft\",\n\t\tdescription : \"Thrown, versatile (1d8); +1d8 damage when thrown (2d8 vs. giants) and returns immediately\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}]\n};\n\nMagicItemsList[\"armor of safeguarding\"] = {\n\tname : \"Armor of Safeguarding\",\n\tnameTest : \"of Safeguarding\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"armor (heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"Set in the center of this armor's chest is a citrine engraved with the shield rune.\"+\n\t\"\\n   While wearing this armor, your hit point maximum increases by an amount equal to 10 + your level.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the armor's rune to cast the beacon of hope spell with it; the spell has a duration of 1 minute and doesn't require concentration. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"Set in the center of this armor's chest is a citrine engraved with the shield rune. While wearing this armor, my max hp increases by my level + 10. As an action once per dawn, I can invoke its shield rune to cast Beacon of Hope with a duration of 1 minute without requiring concentration.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Beacon of Hope\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy/i.test(inObj.type);\n\t\t}\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"Beacon of Hope\",\n\t\tspells : [\"beacon of hope\"],\n\t\tselection : [\"beacon of hope\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tspellChanges : {\n\t\t\"beacon of hope\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"I can cast Beacon of Hope once per dawn without it requiring concentration.\"\n\t\t}\n\t},\n\tcalcChanges : {\n\t\thp : function (totalHD, HDobj, prefix) {\n\t\t\treturn [10 + (classes.totallevel ? classes.totallevel : 0)];\n\t\t}\n\t}\n};\nMagicItemsList[\"bloodshed blade\"] = {\n\tname : \"Bloodshed Blade\",\n\tnameTest : \"Bloodshed\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"weapon (any sword)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"The hilt of this sword bears a carnelian engraved with the blood rune.\"+\n\t\"\\n   You can add your Constitution modifier (minimum of +1) to the damage rolls of attacks made with this weapon.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you target a creature with an attack using this weapon, you can invoke the sword's rune, causing it to flare with crimson light and infusing your attack with bloodthirsty precision. You then spend and roll one of your unspent Hit Dice and add the number rolled to the attack roll. You can choose to invoke the rune after rolling the d20.\"+\n\t\"\\n   If this attack hits, you can also spend and roll any number of your unspent Hit Dice and add the total rolled to the weapon's damage.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This sword with a carnelian engraved hilt adds my Con mod to damage rolls (min +1). Once per dawn after I roll to hit against a creature with it, I can invoke its blood rune and expend one HD to add to the to hit total. If this attack hits, I can expend any HD I have left and add them to the damage roll.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /\\bbloodshed\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\toutput.extraDmg += Math.max(1, Number(What(\"Con Mod\")));\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Bloodshed\" in a the name of a sword, it will be treated as the magic weapon Bloodshed Blade, which adds my Constitution modifier (minimum of +1) to its damage rolls.'\n\t\t]\n\t}\n};\nMagicItemsList[\"crown of the wrath bringer\"] = {\n\tname : \"Crown of the Wrath Bringer\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This jagged iron circlet bears ornaments in the shape of the enemy rune. When worn, the crown glows with pale light as it draws upon the wearer's fury to strike opponents with vicious terror.\"+\n\t\"\\n   When you make an attack roll against a creature and hit it while wearing this crown, you can spend and roll one of your unspent Hit Dice. The creature takes extra psychic damage equal to the number rolled.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the crown's rune to cast the fear spell (save DC 15) with it; the spell has a duration of 1 minute and doesn't require concentration. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"When I hit a creature with an attack roll while wearing this jagged icon circlet, I can spend one HD to have the attack deal that much extra psychic damage. As an action once per dawn, I can invoke its enemy rune to cast Fear (DC 15) with a duration of 1 minute without requiring concentration.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Fear\",\n\tfixedDC : 15,\n\tspellcastingBonus : [{\n\t\tname : \"Fear\",\n\t\tspells : [\"fear\"],\n\t\tselection : [\"fear\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tspellChanges : {\n\t\t\"fear\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"I can cast Fear once per dawn without it requiring concentration.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"delver's claws\"] = {\n\tname : \"Delver's Claws\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"The back of this weatherworn leather glove is adorned with three large metal hooks shaped like a mole's claws. Stitched into the glove's palm is the mountain rune.\"+\n\t\"\\n   The glove is considered a simple melee weapon with the finesse and light properties, and it deals 1d4 slashing damage on a hit. While attuned to the glove, you gain a burrowing speed equal to your walking speed and blindsight to 15 feet.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \"As an action, you can invoke the glove's rune to bolster yourself with the sturdiness of the earth. Spend and roll a number of your unspent Hit Dice up to a maximum equal to your proficiency bonus. You then regain a number of hit points equal to the total roll plus your Constitution modifier.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This weatherworn leather glove is a simple, finesse, light melee weapon, dealing 1d4 slashing damage. While attuned, I gain 15 ft blindsight and a burrow speed equal to my walking speed. As an action once per dawn, I can invoke its mountain rune to spend up to Prof Bonus HD to regain hp (total roll + Con mod).\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*delver)(?=.*claw).*$/i,\n\t\tname : \"Delver's Claws\",\n\t\tsource : [[\"GotG\", 112]],\n\t\tability : 1,\n\t\ttype : \"Simple\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Finesse, light\",\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\tspeed : { burrow : { spd : \"walk\", enc : \"walk\" } },\n\tvision : [[\"Blindsight\", 15]],\n\taction : [[\"action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"glowrune pigment\"] = {\n\tname : \"Glowrune Pigment\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescriptionFull : \"This set of 1d4 + 2 small paint pots contains pigments mixed from crushed luminescent gemstones. This magical paint bestows temporary magical gifts on creatures with runes drawn on their skin with this paint.\"+\n\t\"\\n   One paint pot contains enough pigment to paint one rune. A creature can spend 10 minutes to paint one of the following runes onto itself or another creature:\"+\n\t\"\\n   \" + toUni(\"Journey Rune\") + \". Difficult terrain doesn't cost the painted creature extra movement.\"+\n\t\"\\n   \" + toUni(\"Life Rune\") + \". The painted creature gains 10 temporary hit points and has advantage on death saving throws.\"+\n\t\"\\n   \" + toUni(\"Light Rune\") + \". The painted creature gains darkvision to a range of 30 feet. If the painted creature already has darkvision from another source, the range of its darkvision increases by 30 feet.\"+\n\t\"\\n   \" + toUni(\"Mountain Rune\") + \". The painted creature is immune to being knocked prone and has advantage on Strength and Constitution saving throws.\"+\n\t\"\\n   \" + toUni(\"Shield Rune\") + \". The painted creature has advantage on Dexterity saving throws against effects that deal damage.\"+\n\t\"\\n   A creature can benefit from only one painted rune at a time, so a new rune painted on a creature has no effect unless the old one is removed first. The rune's benefits last for 8 hours or until the painted creature uses its action to wipe away the rune.\",\n\tdescription : \"This set of 1d4+2 paint pots can each be used to draw one rune on a creature in 10 min, which lasts for 8 hours: \\u2022 No penalty from difficult terrain. \\u2022 10 temp hp and adv. on death saves. \\u2022 +30 ft darkvision. \\u2022 Can't be knocked prone and adv. on Str saves and Con saves. \\u2022 Adv. on Dex save vs. damaging effects.\"\n};\nvar GotG_HarpOfGildedPlenty = [\n\t\"This golden harp is sculpted in the image of the god Iallanis, depicted as a young cloud giant woman. When a creature comes within 5 feet of the harp, the instrument animates and is capable of speaking, singing, and playing by itself.\",\n\t\"Whenever you attempt to attune to the harp, you must first make either a DC 15 Charisma (Performance) check or a DC 20 Charisma (Persuasion) check to convince the harp that you are worthy, attuning to the harp on a success. If you fail, you can't attempt to attune to the harp again until the next dawn. Once you have successfully attuned to the harp, the harp resizes to suit you.\",\n\t\">>Stalwart Song<<. Whenever you make a Charisma check while attuned to the harp, you can treat a roll of 9 or lower on the die as a 10.\",\n\t\">>Feast of Plenty<<. If you spend 10 minutes playing the harp, you can cast the heroes' feast spell from it. Once this property is used, it can't be used again until 1d10 + 10 days have passed.\",\n\t\">>Soothing Melody<<. As an action, you can use the harp to cast the calm emotions spell (save DC 19). When the spell is cast using the harp, its duration increases to 1 hour, provided you maintain concentration on the spell. This property can be used five times, and it regains all uses at dawn.\",\n\t\">>Sentience<<. The harp is a sentient, chaotic good object with an Intelligence of 13, a Wisdom of 15, and a Charisma of 20. It has hearing and darkvision to a range of 120 feet.\",\n\t\"The harp can speak, read, and understand Common and Giant. It can also communicate telepathically with the creature attuned to it.\",\n\t\"The harp has a dramatic and pompous personality, taking extreme pride in the quality of music produced from its strings. If the harp is shorter than 6 feet tall, it bemoans its height.\"\n];\nMagicItemsList[\"harp of gilded plenty\"] = {\n\tname : \"Harp of Gilded Plenty\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : GotG_HarpOfGildedPlenty.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(GotG_HarpOfGildedPlenty).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(suit) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tprerequisite : \"To attune to the harp, you must first make either a DC 15 Charisma (Performance) check or a DC 20 Charisma (Persuasion) check to convince the harp that you are worthy. You can retry after the next dawn.\",\n\tprereqeval : function() { return false; }, // so that everyone reads the prerequisite before adding the item\n\tdescription : \"This sentient harp is dramatic and pompous, see notes. I can treat a roll of 9 or lower as a 10 for Charisma checks. I can cast Heroes' Feast by playing it for 10 min, but can't do so again until 1d10+10 days have passed. Five times per dawn, I can use it to cast Calm Emotions (DC 19) with a 1 hour duration.\",\n\textraLimitedFeatures : [{\n\t\tname : \"Harp of Gilded Plenty: Calm Emotions\",\n\t\tusages : 5,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Harp: Heroes' Feast\",\n\t\tusages : 1,\n\t\trecovery : \"Special\",\n\t\tadditional : \"1d10+10 days\"\n\t}],\n\tspellFirstColTitle : \"Ch\",\n\tfixedDC : 19,\n\tspellcastingBonus : [{\n\t\tname : \"5\\xD7 per dawn\",\n\t\tspells : [\"calm emotions\"],\n\t\tselection : [\"calm emotions\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"1\\xD7 per 1d10+10 days\",\n\t\tspells : [\"heroes' feast\"],\n\t\tselection : [\"heroes' feast\"],\n\t\tfirstCol : \"Sp\"\n\t}]\n};\nMagicItemsList[\"lash of immolation\"] = {\n\tname : \"Lash of Immolation\",\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (whip)\",\n\trarity : \"rare\",\n\tdescriptionFull : \"The handle of this dark leather whip bears the fire rune, and embers dance around the whip's tail.\"+\n\t\"\\n   You gain a +1 bonus to attack and damage rolls made with this weapon, and on a hit, the whip deals an extra 1d6 fire damage. When you score a critical hit with an attack using this whip, the target also has the restrained condition until the start of your next turn, as fiery bands lash around the target.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you make an attack with the whip and hit, you can use your reaction to invoke the whip's rune. Doing so increases the extra fire damage dealt by the whip to 2d6.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This +1 dark leather whip ha embers dancing around its tail. It deals +1d6 fire damage. When I score a critical hit with it, the target is restrained until my next turn starts, as fiery bands lash around it. As a reaction once per dawn when I hit with it, I can invoke its fire rune to increase the fire damage to 2d6.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"whip\",\n\t\tregExpSearch : /^(?=.*lash)(?=.*immolation).*$/i,\n\t\tname : \"Lash of Immolation\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdescription : \"Finesse, reach; +1d6 fire damage (1/dawn +2d6); Critical hit: restrained until my next turn starts\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"longbow of the healing hearth\"] = {\n\tname : \"Longbow of the Healing Hearth\",\n\tnameAlt : typePF ? \"\" : \"Healing Hearth\", // shorter for the colourful spell sheet\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (longbow)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"This ivory longbow is inscribed with a prayer to the god Hiatea, the runes of which are entwined with gilded engravings of wheat stalks and deer antlers.\"+\n\t\"\\n   You gain a +3 bonus to attack and damage rolls made with this weapon. If you load no ammunition in the weapon, it produces its own, automatically creating one magic arrow when you pull back the string. The arrow created by the bow vanishes the instant after it hits or misses a target.\"+\n\t\"\\n   The bow has 8 charges for the following properties, which you can use while wielding the bow. The bow regains 1d4 + 1 charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Curative Arrow\") + \". When you take the Attack action using the bow, you can expend 1 charge to replace one of your attacks with a blazing arrow of curative magic, which automatically hits one creature you can see within 150 feet of you. The target can then immediately spend and roll one of its unspent Hit Dice and regain a number of hit points equal to the roll plus your Wisdom modifier (minimum of +1).\"+\n\t\"\\n   If the target has no unspent Hit Dice remaining, nothing happens. You can use a curative arrow only once per turn.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". While holding the bow, you can use an action to expend 1 or more of its charges to cast one of the following spells from it (save DC 18): create food and water (1 charge), warding bond (2 charges), guardian of faith (3 charges).\",\n\tdescription : \"This +3 ivory longbow creates its own ammo if needed and has 8 charges, regaining 1d4+1 at dawn. Instead of one attack in my Attack action, I can use 1 charge to have a target I see in 150 ft use 1 HD to regain hp + my Wis mod. I can use charges to cast (DC 18): Create Food \" + (typePF ? \"\\u0026\" : \"and\") + \" Water, Warding Bond, Guardian of Faith.\",\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longbow\",\n\t\tregExpSearch : /^(?=.*longbow)(?=.*healing)(?=.*hearth).*$/i,\n\t\tname : \"Longbow of the Healing Hearth\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdescription : \"Ammunition, heavy, two-handed; Creates own ammo\",\n\t\tmodifiers : [3, 3],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 8,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tfixedDC : 18,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"create food and water\"],\n\t\tselection : [\"create food and water\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"warding bond\"],\n\t\tselection : [\"warding bond\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"guardian of faith\"],\n\t\tselection : [\"guardian of faith\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"lucent destroyer\"] = {\n\tname : \"Lucent Destroyer\",\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (musket)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This magic weapon is a triple-barreled bronze musket. You gain a +1 bonus to attack and damage rolls made with it. It requires no ammunition, its damage is radiant instead of piercing, and it doesn't have the loading property. The base of the weapon is emblazoned with the light rune.\"+\n\t\"\\n   Additionally, while attuned to the weapon, you can cast dancing lights from the musket at will.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the weapon's rune to cast the sunbeam spell (save DC 17) with it. Once the rune has been invoked, it can't be invoked again until the next dawn.\"+\n\t\"\\n\\nIt's up to the DM to decide whether a character has proficiency with a firearm. Characters in most D\\u0026D worlds wouldn't have such proficiency. During their downtime, characters can use the training rules in the Player's Handbook to acquire proficiency, assuming that they have enough ammunition to keep the weapons working while mastering their use.\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magical musket emblazoned with the light rune. It deals radiant damage and doesn't need to be loaded with ammunition. It allows me to cast Dancing Lights at will and Sunbeam (DC 17) once per dawn by invoking the rune.\",\n\tweight : 10,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"musket\",\n\t\tregExpSearch : /^(?=.*lucent)(?=.*destroyer).*$/i,\n\t\tname : \"Lucent Destroyer\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdamage : [1, 12, \"radiant\"],\n\t\tdescription : \"Two-handed\",\n\t\tmodifiers : [1, 1],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune: Sunbeam\",\n\tfixedDC : 17,\n\tspellcastingBonus : [{\n\t\tname : \"At will\",\n\t\tspells : [\"dancing lights\"],\n\t\tselection : [\"dancing lights\"],\n\t\tfirstCol : \"atwill\"\n\t}, {\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"sunbeam\"],\n\t\tselection : [\"sunbeam\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"mistral mantle\"] = {\n\tname : \"Mistral Mantle\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This thick, fur-lined cloak has the frost rune stitched on the hem in silvery blue thread. Frigid wind swirls around the cloak, regardless of the weather.\"+\n\t\"\\n   While wearing this cloak, you have resistance to cold damage. Additionally, when you move within 5 feet of a creature, you can cause the cloak's cold wind to buffet the creature. The creature must succeed on a DC 14 Dexterity saving throw or take 1d6 cold damage and have the prone condition. A creature can be affected by the mantle only once during a turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the mantle's rune to cast the sleet storm spell (save DC 14) with it. When you use the mantle to cast the spell, the area of the spell isn't difficult terrain for you, and you can see through the storm, ignoring the normal penalties of a heavily obscured area.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This thick, fur-lined cloak gives me cold resistance. When I move within 5 ft of a creature, I can have it make a DC 14 Dex save once per turn or take 1d6 cold damage and become prone. As an action once per dawn, I can invoke its frost rune to cast Sleet Storm (DC 14), which I can move and see through normally.\",\n\tdmgres : [\"Cold\"],\n\tfixedDC : 14,\n\tspellcastingBonus : [{\n\t\tname : \"Sleet Storm\",\n\t\tspells : [\"sleet storm\"],\n\t\tselection : [\"sleet storm\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Sleet Storm\"\n};\nMagicItemsList[\"nimbus coronet\"] = {\n\tname : \"Nimbus Coronet\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"The design of this bronze circlet resembles swirling clouds. At its center is set a deep-blue stone, upon which is inscribed the cloud rune.\"+\n\t\"\\n   While wearing this circlet, you take no damage from falling. Additionally, as a bonus action, you and everything you are wearing or carrying can teleport to an unoccupied space you can see within 15 feet of yourself, reappearing in a puff of shimmering clouds.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the circlet's rune to assume a cloudlike form. The form lasts for 1 minute, until you are incapacitated, or until you dismiss it (no action required).\"+\n\t\"\\n   While in cloud form, you have a flying speed of 60 feet and resistance to bludgeoning, piercing, and slashing damage.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"I take no damage from falling while wearing this bronze circlet. As a bonus action, I can use it to teleport to an empty space I see within 15 ft. As an action once per dawn, I can invoke its cloud rune to become cloudlike for up to 1 minute. I then gain 60 ft fly speed, bludgeoning, slashing and piercing resistance.\",\n\taction : [[\"bonus action\", \" (teleport 15 ft)\"], [\"action\", \" (invoke rune)\"]],\n\tsavetxt : { immune : [\"falling damage\"] },\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"orb of skoraeus\"] = {\n\tname : \"Orb of Skoraeus\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescriptionFull : \"Said to be infused with the wisdom and power of the god Skoraeus, this polished stone orb is veined with iridescent crystal that seems to glow from within. The orb is 8 inches in diameter and weighs 8 pounds, making it a palm-sized trinket for a stone giant but a more unwieldy item for a Medium creature to use.\"+\n\t\"\\n   While holding this orb, you can use it as a spellcasting focus for your spells. You also gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Abundant Components\") + \". The orb has 3 charges and regains all expended charges at dawn. When you cast a spell while holding this orb, you can expend up to 3 charges to ignore the spell's material components with a gold piece cost, up to 300 gp per charge expended.\"+\n\t\"\\n   \" + toUni(\"Astute Mind\") + \". You gain a +2 bonus to any Constitution saving throw you make to maintain your concentration on a spell.\"+\n\t\"\\n   \" + toUni(\"Divine Sight\") + \". You can see normally in darkness, both magical and nonmagical, to a distance of 120 feet.\",\n\tdescription : 'I can use this polished stone orb as a spellcasting focus that grants me +2 to concentration saves and \"Divine Sight\", the ability to see in normal and magical darkness out to 120 ft. It has 3 charges per dawn. When I cast a spell, I can expend charges to ignore 300 gp worth of material components per charge used.',\n\tweight : 8,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tvision : [[\"Divine Sight\", 120]],\n\tsavetxt : {\n\t\ttext : [\"+2 on concentration saves\"]\n\t}\n};\nMagicItemsList[\"prehistoric figurine of wondrous power\"] = {\n\tname : \"Prehistoric Figurine of Wondrous Power\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, these statuettes depict dinosaurs and related creatures from the earliest days of the world.\"+\n\t\"\\n   As an action, you can throw a prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living creature. If the space where the creature would appear is occupied by other creatures or objects, or if there isn't enough space for the creature, the figurine doesn't become a creature.\"+\n\t\"\\n   The creature is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the creature defends itself but takes no other actions. See the Monster Manual for the creature's statistics.\"+\n\t\"\\n   The creature exists for a duration specific to each figurine. At the end of the duration, the creature reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature becomes a figurine again, its property can't be used again until a certain amount of time has passed, as specified in the figurine's description.\",\n\tdescription : \"As an action, I can speak the command word and throw one or more statuettes to an unoccupied space within 60 ft where it becomes a specific creature for a certain amount of time. It is friendly, understands my languages, and obeys my commands.\",\n\taction : [[\"action\", \"\"]],\n\tchoices : [\"Carnelian Triceratops\", \"Jasper Tyrannosaurus Rex\", \"Kyanite Pteranodon\", \"Pyrite Plesiosaurus\"],\n\t\"carnelian triceratops\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak the command word and throw this carnelian statuette to an unoccupied space within 60 ft, where it becomes a triceratops for 6 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this carnelian statuette of a triceratops to an unoccupied space within 60 ft, where it becomes a triceratops for up to 6 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the triceratops defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 10 days have passed.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this carnelian statuette depicts a triceratops.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living triceratops. If the space where the triceratops would appear is occupied by other creatures or objects, or if there isn't enough space for the triceratops, the figurine doesn't become a triceratops.\"+\n\t\t\"\\n   The triceratops is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the triceratops defends itself but takes no other actions. It can be ridden as a mount. See the Monster Manual for the triceratops's statistics.\"+\n\t\t\"\\n   The triceratops exists for up to 6 hours. At the end of the duration, the triceratops reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the triceratops becomes a figurine again, its property can't be used again until 10 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"10 days\"\n\t},\n\t\"jasper tyrannosaurus rex\" : {\n\t\trarity : \"legendary\",\n\t\tdescription : \"As an action, I can speak the command word and throw this jasper statuette to an unoccupied space within 60 ft, where it becomes a T-rex for up to 1 hour, until I use the command word again, or it reaches 0 HP. It is friendly, obeys my commands, and understands my languages. I can lose control of it, see notes.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this jasper statuette of a T-rex to an unoccupied space within 60 ft, where it becomes a T-rex for up to 1 hour, until I use an action to repeat the command word, or it reaches 0 HP. It is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 14 days have passed. Whenever I command it (even if reverting back), roll a d20. On a 1, I lose control and it becomes hostile until it drops to 0 hp.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this jasper statuette depicts a tyrannosaurus rex.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living tyrannosaurus rex. If the space where the tyrannosaurus rex would appear is occupied by other creatures or objects, or if there isn't enough space for the tyrannosaurus rex, the figurine doesn't become a tyrannosaurus rex.\"+\n\t\t\"\\n   The tyrannosaurus rex is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the tyrannosaurus rex defends itself but takes no other actions. See the Monster Manual for the tyrannosaurus rex's statistics.\"+\n\t\t\"\\n   The tyrannosaurus rex exists for up to 1 hour. At the end of the duration, the tyrannosaurus rex reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the tyrannosaurus rex becomes a figurine again, its property can't be used again until 14 days have passed.\"+\n\t\t\"\\n   Whenever you command the figurine while it's in tyrannosaurus rex form (including commanding it to revert to figurine form), you must roll a d20. On a 1, you lose control of the figurine, and it becomes hostile to you and your companions until it is reduced to 0 hit points, at which point it reverts to figurine form.\",\n\t\tusages : 1,\n\t\trecovery : \"14 days\",\n\t\ttoNotesPage : [{\n\t\t\tname : \"Lose Control\",\n\t\t\tnote : desc(\"Whenever I command the figurine while it's in tyrannosaurus rex form (including commanding it to revert to figurine form), I must roll a d20. On a 1, I lose control of the figurine, and it becomes hostile to me and my companions until it is reduced to 0 hit points, at which point it reverts to figurine form.\")\n\t\t}]\n\t},\n\t\"kyanite pteranodon\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak the command word and throw this kyanite statuette to an unoccupied space within 60 ft, where it becomes a pteranodon for 8 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this kyanite statuette of a pteranodon to an unoccupied space within 60 ft, where it becomes a pteranodon for up to 8 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount if I'm Medium or smaller, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 7 days have passed.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this kyanite statuette depicts a pteranodon.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living pteranodon. If the space where the pteranodon would appear is occupied by other creatures or objects, or if there isn't enough space for the pteranodon, the figurine doesn't become a pteranodon.\"+\n\t\t\"\\n   The pteranodon is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the pteranodon defends itself but takes no other actions. If your size is Medium or smaller, you can ride the pteranodon as a mount. See the Monster Manual for the pteranodon's statistics.\"+\n\t\t\"\\n   The pteranodon exists for up to 8 hours. At the end of the duration, the pteranodon reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the pteranodon becomes a figurine again, its property can't be used again until 7 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"7 days\"\n\t},\n\t\"pyrite plesiosaurus\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak the command word and throw this pyrite statuette to an unoccupied space within 60 ft, where it becomes a plesiosaurus for 12 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this pyrite statuette of a plesiosaurus to an unoccupied space within 60 ft, where it becomes a plesiosaurus for up to 12 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 4 days have passed. While I'm riding it, I can use it to cast Water Breathing at will.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this pyrite statuette depicts a plesiosaurus.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living plesiosaurus. If the space where the plesiosaurus would appear is occupied by other creatures or objects, or if there isn't enough space for the plesiosaurus, the figurine doesn't become a plesiosaurus.\"+\n\t\t\"\\n   The plesiosaurus is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the plesiosaurus defends itself but takes no other actions. It can be ridden as a mount. While you are riding the plesiosaurus, you can use it to cast water breathing at will. See the Monster Manual for the plesiosaurus's statistics.\"+\n\t\t\"\\n   The plesiosaurus exists for up to 12 hours. At the end of the duration, the plesiosaurus reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the plesiosaurus becomes a figurine again, its property can't be used again until 4 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"4 days\",\n\t\tspellcastingBonus : [{\n\t\t\tname : \"At will while riding it\",\n\t\t\tspells : [\"water breathing\"],\n\t\t\tselection : [\"water breathing\"],\n\t\t\tfirstCol : \"atwill\"\n\t\t}]\n\t}\n};\nMagicItemsList[\"reaper's scream\"] = {\n\tname : \"Reaper's Scream\",\n\tsource : [[\"GotG\", 115]],\n\ttype : \"weapon (morningstar)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"The spikes of this iron morningstar glow with sickly, pale light. The death rune is inscribed on its shaft and inlaid with pearl.\"+\n\t\"\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, and attacks with this weapon deal necrotic damage instead of piercing damage.\"+\n\t\"\\n   When you attack a creature with this weapon and roll a 20 on the attack roll, you gain 10 temporary hit points. Any creature that hits you with a melee attack while you have 1 or more of these temporary hit points takes 10 necrotic damage.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As a bonus action, you can invoke the weapon's rune, unleashing the screams of every creature slain by the weapon in one cacophonous burst. Each creature of your choice within 60 feet of you must succeed on a DC 15 Wisdom saving throw or have the stunned condition until the start of your next turn.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This +2 morningstar deals necrotic damage. When I roll a 20 to hit vs. a creature, I gain 10 \" + (typePF ? \"temp\" : \"temporary\") + \" hp. Melee attackers that hit me take 10 necrotic \" + (typePF ? \"dmg\" : \"damage\") + \" while these last. As a bonus action once per dawn, I can invoke its death rune to have chosen \" + (typePF ? \"\" : \"creatures \") + \"within 60 ft make a Wis save DC 15 or be stunned until my next turn starts.\",\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"morningstar\",\n\t\tregExpSearch : /^(?=.*reaper)(?=.*scream).*$/i,\n\t\tname : \"Reaper's Scream\",\n\t\tsource : [[\"GotG\", 115]],\n\t\tdescription : \"On 20 to hit: 10 temp hp (see magic item)\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\taction : [[\"bonus action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"ring of amity\"] = {\n\tname : \"Ring of Amity\",\n\tsource : [[\"GotG\", 115]],\n\ttype : \"ring\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This ring is carved from hematite and bears an engraving of the friend rune.\"+\n\t\"\\n   When you first attune to this ring, you can touch one willing creature and form a magical bond between the two of you. While this bond lasts, whenever you are subjected to a spell or magical effect that restores hit points, the bonded creature also receives the benefits of the spell or effect.\"+\n\t\"\\n   You can bond with a different creature whenever you finish a long rest, provided that you can touch the creature and the creature is willing.\"+\n\t\"\\n   A creature can benefit from only one ring of amity's bond at a time. The bond ends if either you or the creature travels to a different plane of existence, if you bond with a different creature at the end of a long rest, or if you sever the bond as a bonus action.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When the bonded creature hits a target with an attack roll, you can use your reaction to invoke the ring's rune if you are within 60 feet of the bonded creature. The bonded creature's attack is then turned into a critical hit.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This hematite ring allows me to bond to one willing creature I touch, which I can change every long rest. When a magical effect restores my hp, my bond also benefits from this effect. As a reaction once per dawn when my bond is within 60 ft and hits an attack, I can invoke the ring's friend rune to make it a critical hit.\",\n\tdescriptionLong : \"This hematite ring allows me to bond to one willing creature I touch, which I can change every long rest. A creature can only benefit from one such bond at the same time. The bond ends if we are no longer on the same plane, if I bond with another, or if I sever it as a bonus action. While this bond lasts, whenever I'm subjected to a spell or magical effect that restores hp, the bonded creature also receives the benefits of the spell or effect. As a reaction once per dawn when my bond is within 60 ft and hits with an attack roll, I can invoke the ring's friend rune to turn the hit into a critical hit.\",\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"sanctum amulet\"] = {\n\tname : \"Sanctum Amulet\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"A black opal pendant hangs at the base of this pearlescent chain. The sacred rune is inscribed on the back of the pendant.\"+\n\t\"\\n   While wearing this item, you have resistance to necrotic damage. Additionally, you can cast the spare the dying cantrip using either an action or a bonus action.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When a creature you can see within 60 feet of you is reduced to 0 hit points as a result of taking damage, you can use your reaction to invoke the item's rune, causing the pendant to flash with pale light. The creature then instead drops to 1 hit point.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this black opal pendant on a pearlescent chain, I have resistance to necrotic damage and can cast Spare the Dying as an action or bonus action. As a reaction once per dawn when I see a creature within 60 ft drop to 0 hp by damage, I can invoke the pendant's sacred rune to restore it to 1 hp.\",\n\tdmgres : [\"Necrotic\"],\n\tspellcastingBonus : [{\n\t\tname : \"Spare the Dying\",\n\t\tspells : [\"spare the dying\"],\n\t\tselection : [\"spare the dying\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"spare the dying\" : {\n\t\t\ttime : \"1 a/bns\",\n\t\t\tchanges : \"I can cast Spare the Dying either as an action or as a bonus action.\"\n\t\t}\n\t},\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"shield of the blazing dreadnought\"] = {\n\tname : \"Shield of the Blazing Dreadnought\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"Modeled after the formidable spiked tower shields wielded by some fire giants, this iron shield emanates a constant warmth.\"+\n\t\"\\n   You can use a bonus action to activate the shield, causing glowing lava to flow through the shield's grooves for 1 minute. While the shield is active, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Blazing Soul\") + \". You have immunity to fire damage.\"+\n\t\"\\n   \" + toUni(\"Cleansing Fire\") + \". As an action, you can cause the shield to flare with the cleansing fire of the god Surtur. Choose one creature you can see within 30 feet of yourself (you can choose yourself). One disease or condition of your choice affecting this creature ends immediately; the condition can be blinded, charmed, deafened, or poisoned.\"+\n\t\"\\n   \" + toUni(\"Shield Bash\") + \". When you take the Attack action on your turn, you can replace one of your attacks with a shield bash, targeting one creature you can see within 5 feet of yourself. The target must make a Strength saving throw (DC equals 8 + your proficiency bonus + your Strength modifier). On a failed save, the target takes 3d6 bludgeoning damage plus 3d6 fire damage and is knocked prone. On a successful save, the target takes half as much damage only. You can use Shield Bash only once per turn.\"+\n\t\"\\n   Once the shield has been activated, it can't be activated again until the next dawn.\",\n\tdescription : \"As a bonus action once per dawn, I can activate this iron shield to grant me the following for 1 minute: \\u2022 Immune to fire. \\u2022 As an action, I can remove disease, blinded, charmed, deafened, or poisoned from myself a creature I can see within 30 ft (Cleansing Fire). \\u2022 I can make a shield bash attack once per turn (see attack).\",\n\tdescriptionLong : \"As a bonus action once per dawn, I can activate this iron shield to grant me the following benefits for 1 minute: \\u2022 Blazing Soul: Immunity to fire damage.\"+\n\t\"\\n\\u2022 Cleansing Fire: As an action, I can remove a disease from myself or a creature I can see within 30 ft or the blinded, charmed, deafened, or poisoned condition.\"+\n\t\"\\n\\u2022 Shield Bash: When I take the Attack action on my turn, I can replace one attack with a shield bash to deal 3d6 bludgeoning and 3d6 fire damage and knock prone one creature within 5 ft. It can make a Str save (DC 8 + Prof B. + Str mod) to take half the damage only.\",\n\tweight : 6,\n\tshieldAdd : \"Shield of the Blazing Dreadnought\",\n\tsavetxt : { immune : [\"fire (while Blazing Dreadnought active)\"] },\n\taction : [\n\t\t[\"bonus action\", \" (activate)\"],\n\t\t[\"action\", \"Cleansing Fire (while Blazing Dreadnought active)\"],\n\t],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"activate\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*blazing)(?=.*dreadnought)(?=.*shield).*$/i,\n\t\tname : \"Blazing Dreadnought Shield Bash\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tability : 1,\n\t\ttype : 'AlwaysProf',\n\t\tdamage : ['3d8 Fire + 3d8', '', 'bludgeoning'],\n\t\trange : \"Melee\",\n\t\tdescription : \"Str save for half damage; If failed, also knocked prone; Once per Attack action while shield is active\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\tisNotWeapon : true,\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"staff of the rooted hills\"] = {\n\tname : \"Staff of the Rooted Hills\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"The hill rune is carved into this gnarled wooden staff. The staff magically resizes to match the height of any creature that attunes to it.\"+\n\t\"\\n   The staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it. The first time you hit any creature with the staff on your turn, the creature must succeed on a DC 12 Strength saving throw or be restrained by spectral vines until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the staff's rune to cast either hold person (save DC 12) or speak with plants with the staff. When you cast hold person using the staff, the target is wreathed in spectral vines.\"+\n\t\"\\n   Once the rune has been invoked to cast either spell, it can't be invoked again until the next dawn.\",\n\tdescription : \"A creature hit with this +1 quarterstaff must make a DC 12 Str save or be restrained by spectral vines until my next turn starts. As an action once per dawn, I can invoke its hill rune to cast either Hold Person (DC 12) or Speak with Plants with it. The target of this Hold Person is wreathed in spectral vines.\",\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*staff)(?=.*rooted)(?=.*hills).*$/i,\n\t\tname : \"Staff of the Rooted Hills\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tdescription : \"Versatile (1d8); On hit, DC 12 Str save or restrained until my next turn starts\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Hold Person or Speak with Plants\",\n\tfixedDC : 12,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"Hold Person\",\n\t\tspells : [\"hold person\"],\n\t\tselection : [\"hold person\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"Speak with Plants\",\n\t\tspells : [\"speak with plants\"],\n\t\tselection : [\"speak with plants\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"stonebreaker's breastplate\"] = {\n\tname : \"Stonebreaker's Breastplate\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"armor (breastplate)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"This breastplate is made from marbled granite, though it feels no heavier than a typical metal breastplate. Its chest is emblazoned with the stone rune.\"+\n\t\"\\n   While wearing this breastplate, you have resistance to bludgeoning, piercing, and slashing damage and are immune to being knocked prone.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the breastplate's rune to cast the wall of stone spell (save DC 14) with it. When you cast the spell in this way, you have advantage on saving throws made to maintain concentration on the spell.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this marbled granite breastplate, I have resistance to bludgeoning, piercing, and slashing damage and can't be knocked prone. As an action once per dawn, I can invoke its stone rune to cast Wall of Stone (DC 14) with it. It also grants me advantage on concentration saves for the spell cast in this way.\",\n\tarmorAdd : { select : \"Stonebreaker's Breastplate\", options : [\"Stonebreaker's Breastplate\"] },\n\tweight : 20,\n\tdmgres : [\"Bludgeoning\", \"Slashing\", \"Piercing\"],\n\tsavetxt : { immune : [\"knocked prone\"] },\n\taction : [[\"action\", \"\"]],\n\tfixedDC : 14,\n\tspellcastingBonus : [{\n\t\tname : \"Wall of Stone\",\n\t\tspells : [\"wall of stone\"],\n\t\tselection : [\"wall of stone\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Wall of Stone\"\n};\nMagicItemsList[\"thunderbuss\"] = {\n\tname : \"Thunderbuss\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"weapon (pistol)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This magic ranged weapon is a flared pistol with the storm rune engraved along the barrel. You gain a +1 bonus to attack and damage rolls made with it. It requires no ammunition, its damage is thunder instead of piercing, and it doesn't have the loading property.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As a bonus action, you can invoke the weapon's rune to launch a ball of energy to a point you can see within 30 feet of yourself. The energy then detonates into a 10-foot-radius sphere of turbulent wind and thunder centered on that point, and each creature in that sphere must make a DC 14 Constitution saving throw. On a failed save, a creature takes 3d6 thunder damage, and it can't take reactions until the end of your next turn. On a successful save, a creature takes half as much damage only.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\"+\n\t\"\\n\\nIt's up to the DM to decide whether a character has proficiency with a firearm. Characters in most D\\u0026D worlds wouldn't have such proficiency. During their downtime, characters can use the training rules in the Player's Handbook to acquire proficiency, assuming that they have enough ammunition to keep the weapons working while mastering their use.\",\n\tdescription : \"This +1 pistol deals thunder damage and requires loading nor ammunition. As a bonus action once per dawn, I can invoke its storm rune on a point within 30 ft. All creatures in a 10-ft radius must make a DC 14 Con save or take 3d6 thunder damage and no reactions until my next turn ends. Only half damage if saved.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"pistol\",\n\t\tregExpSearch : /thunderbuss/i,\n\t\tname : \"Thunderbuss\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tdamage : [1, 10, \"thunder\"],\n\t\tdescription : \"\",\n\t\tmodifiers : [1, 1],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\",\n\taction : [[\"bonus action\", \" (invoke rune)\"]]\n};\nMagicItemsList[\"war horn of valor\"] = {\n\tname : \"War Horn of Valor\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescriptionFull : \"This brass war horn is engraved with the war rune, which glows purple when the horn is blown.\"+\n\t\"\\n   You can blow the horn as a bonus action. When you do, if you have the frightened condition, you immediately end that condition on yourself. You also have advantage on saving throws against being frightened until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you blow the horn, you can also invoke the rune, imbuing the horn's deep call with protective magic that affects creatures of your choice within 30 feet of yourself. You and all affected creatures gain a +1 bonus to AC until the start of your next turn.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"As a bonus action, I can blow this brass war horn with the war rune to stop being frightened and gain adv. on saves against being frightened until my next turn starts. Once per dawn when I blow it, I can also invoke its rune, imbuing all chosen creatures within 30 ft with a +1 bonus to AC until my next turn starts.\",\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"wayfarer's boots\"] = {\n\tname : \"Wayfarer's Boots\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This pair of boots is made of durable cloth, with the journey rune stitched in golden thread above each heel. While you are wearing this item, your walking speed increases by 10 feet, and you have advantage on Wisdom (Survival) checks.\"+\n\t\"\\n   \" + toUni(\"Invoking the Runes\") + \". As a bonus action, you can invoke the boots' runes to cast the expeditious retreat spell with them. Once the runes have been invoked, they can't be invoked again until the next dawn.\",\n\tdescription : \"While I'm wearing this pair of durable cloth boots with the journey rune stitched in golden thread above each heel, I have +10 ft walking speed and advantage on Wisdom (Survival) checks. As a bonus action once per dawn, I can invoke the boots' runes to cast Expeditious Retreat with them.\",\n\tspeed : { walk : { spd : \"+10\", enc : \"+10\" } },\n\tadvantages : [[\"Survival\", true]],\n\tspellcastingBonus : [{\n\t\tname : \"Expeditious Retreat\",\n\t\tspells : [\"expeditious retreat\"],\n\t\tselection : [\"expeditious retreat\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Expeditious Retreat\"\n};\nMagicItemsList[\"wyrmreaver gauntlets\"] = {\n\tname : \"Wyrmreaver Gauntlets\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"Originally crafted for ground-bound giant brawlers to fight against dragons and other enormous predators of the sky, these studded gauntlets are engraved with the dragon rune.\"+\n\t\"\\n   While you are wearing these gauntlets, your unarmed strike deals an additional 1d6 force damage on a hit. Additionally, whenever you finish a long rest, choose one of the following damage types: acid, cold, fire, lightning, or poison. You have resistance to the chosen damage type until you finish another long rest.\"+\n\t\"\\n   \" + toUni(\"Invoking the Runes\") + \". As a bonus action, you can invoke the gauntlets' runes and summon two enormous spectral fists that envelop the gauntlets and mimic your hand motions. The fists can also launch themselves to strike distant opponents, returning immediately to your space after they hit or miss.\"+\n\t\"\\n   The fists last for 1 minute or until you are incapacitated. While the spectral fists are active, unarmed strikes you make on your turn have a reach of 30 feet, and when you hit a creature with an opportunity attack made with your unarmed strike, the creature must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + your Strength modifier) or have the prone condition.\"+\n\t\"\\n   Once the runes have been invoked, they can't be invoked again until the next dawn.\",\n\tdescription : \"+1d6 force damage to unarmed strikes. Each long rest, choose a resistance it grants me: acid, cold, fire, lightning, or poison. As a bonus action once per dawn, invoke the rune for 1 min: 30 ft range unarmed strikes, target hit with opportunity attacks with it must make Str save DC 8+Prof B.+Str mod or be knocked prone.\",\n\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = (typePF ? '' : 'These gauntlets add ') + '+1d6 force damage to unarmed strikes. Each long rest, I pick a resistance it grants me: acid, cold, fire, lightning, or poison. As a bonus action once per dawn, invoke the rune for 1 min: 30 ft range unarmed strikes, target hit with opportunity attacks with it must make Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Str) or be knocked prone.';\",\n\tdmgres : [\"acid,cold,fire,lightn.,or poison\"],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 force damage; Opportunity attack: Str save or prone';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My unarmed strike deals an additional 1d6 force damage on a hit.\"\n\t\t]\n\t},\n\taction : [[\"bonus action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"zephyr armor\"] = {\n\tname : \"Zephyr Armor\",\n\tnameTest : /zephyr.*armou?r/i,\n\tsource : [[\"GotG\", 117]],\n\ttype : \"armor (light)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This fine set of white-and-silver armor bears the wind rune upon its chest.\"+\n\t\"\\n   While wearing this armor, you have advantage on Dexterity (Acrobatics) checks and Dexterity saving throws as your movements are bolstered by gentle currents of wind.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the armor's rune to cast the wind wall spell (save DC 15) with it. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this white-and-silver armor with the wind rune on its chest, I have advantage on Dex (Acrobatics) checks and Dexterity saves as my movements are bolstered by gentle currents of wind. As an action once per dawn, I can invoke the armor's rune to cast Wind Wall (DC 15) with it.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Zephyr\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Zephyr\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/light/i.test(inObj.type);\n\t\t}\n\t},\n\tadvantages : [[\"Acrobatics\", true], [\"Dexterity\", true]],\n\tsavetxt : { text : [\"Adv. on Dex saves\"] },\n\tfixedDC : 13,\n\tspellcastingBonus : [{\n\t\tname : \"Wind Wall\",\n\t\tspells : [\"wind wall\"],\n\t\tselection : [\"wind wall\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Wind Wall\"\n};\n\n// pub_20230919_PaBTSO.js\n// This file adds the magic items from the Phandelver and Below: The Shattered Obelisk adventure from the D&D 5e starter set to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"PaBTSO\"] = {\n\tname : \"Phandelver and Below: The Shattered Obelisk [items]\",\n\tabbreviation : \"PaBTSO\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dndstore.wizards.com/us/product/820931/phandelver-and-below-the-shattered-obelisk-digital-plus-physical-bundle\",\n\tdate : \"2023/09/19\"\n};\n\n// Magic Items\nMagicItemsList[\"netherese ring of protection\"] = {\n\tname : \"Netherese Ring of Protection\",\n\tsource : [[\"PaBTSO\", 50]],\n\ttype : \"ring\",\n\trarity : \"rare\",\n\tdescription : \"This ring is made from a single piece of mystical green glass that's stronger than steel. It grants me a +1 bonus to AC and saving throws. It also gives me a +4 bonus to saves and checks made to avoid dropping or being disarmed of any item held in the hand this ring is on.\",\n\tdescriptionFull : \"You gain a +1 bonus to AC and saving throws while wearing this ring.\"+\n\t\"\\n   The ring is made from a single piece of mystical green glass that's stronger than steel. It has the added property of making the wearer less likely to drop or lose anything held in the hand the ring is on. The wearer receives a +4 bonus to saving throws or checks made to avoid dropping or being disarmed of any item held in that hand.\",\n\tattunement : true,\n\textraAC : [{name : \"Netherese Ring of Protection\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\n\taddMod : [{ type : \"save\", field : \"all\", mod : 1, text : \"While I wear the Netherese Ring of Protection, I gain a +1 bonus to all my saving throws.\" }],\n\tsavetxt : { text : [\"+4 to avoid disarm/drop held\"] }\n}\nMagicItemsList[\"statuette of augury\"] = {\n\tname : \"Statuette of Augury\",\n\tsource : [[\"PaBTSO\", 62]],\n\ttype : \"wondrous item\",\n\trarity : \"unknown\",\n\tdescription : \"This gold statuette of an elf is imbued with divination magic. A non-evil creature grasping the statue can ask it a question and receive a telepathic response, as though the creature had cast Augury. Once a creature has asked its question and received a response, it can never activate the statuette again.\",\n\tdescriptionFull : \"This gold statuette of an elf is worth 100 gp, and is imbued with divination magic. A non-evil creature grasping the statue can ask it a question and receive a telepathic response, as though the creature had cast augury. Once a creature has asked its question and received a response, it can never activate the statuette again.\",\n\tspellcastingBonus : [{\n\t\tname : \"Statuette of Augury\",\n\t\tspells : [\"augury\"],\n\t\tselection : [\"augury\"],\n\t\tfirstCol : \"1\\xD7\"\n\t}]\n}\nMagicItemsList[\"bracers of celerity\"] = {\n\tname : \"Bracers of Celerity\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This pair of lightweight bronze bracers is lined with soft, purple velvet and engraved with swirling designs. While I'm wearing these bracers, all my speeds increase by 10 ft, and I have advantage on saving throws I make to avoid or end the paralyzed or restrained condition on myself.\",\n\tdescriptionFull : \"This pair of lightweight bronze bracers is lined with soft, purple velvet and engraved with swirling designs.\"+\n\t\"\\n   While you're wearing these bracers, all your speeds increase by 10 feet, and you have advantage on saving throws you make to avoid or end the paralyzed or restrained condition on yourself.\",\n\tattunement : true,\n\tspeed : { allModes : { bonus : \"+10\" } },\n\tsavetxt : { adv_vs : [\"paralyzed\", \"restrained\"] }\n}\nMagicItemsList[\"cape of enlargement\"] = {\n\tname : \"Cape of Enlargement\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This cape has 3 charges, regaining 1d3 daily at dawn. As a bonus action, I can use 1 charge to enlarge myself for 10 min or end this effect. While enlarged, my size increases by one category as space allows, I have adv. on Strength checks and saves, and I add my Prof Bonus to my weapon and unarmed strike damage.\",\n\tdescriptionFull : \"Ancient runes are stitched in silver thread along the hem of this grayish-purple cape.\"+\n\t\"\\n   The cape has 3 charges. As a bonus action while wearing the cape, you can expend 1 of its charges to enlarge yourself, granting yourself the following benefits:\"+\n\t\"\\n   \\u2022 Your size increases by one category\\u2014from Medium to Large, for example. If there isn't enough room for your size to increase by one category, you instead become the maximum possible size in the space available.\"+\n\t\"\\n   \\u2022 You have advantage on Strength checks and Strength saving throws.\"+\n\t\"\\n   \\u2022 When you hit with an attack roll using a weapon or an unarmed strike, you can add your proficiency bonus to the attack's damage.\"+\n\t\"\\n   These benefits last for 10 minutes or until you use another bonus action to dismiss them. The cape regains 1d3 expended charges daily at dawn.\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\taction : [[\"bonus action\", \" (enlarge/stop)\"]],\n}\nMagicItemsList[\"flayer slayer\"] = {\n\tname : \"Flayer Slayer\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"weapon (greataxe)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this greataxe adorned with carvings of decapitated mind flayers. An aberration hit with this greataxe takes +1d12 slashing damage and if it is currently grappling a creature, it must succeed on a DC 15 Strength save or release each creature it is grappling.\",\n\tdescriptionFull : \"Carvings of decapitated mind flayers adorn this greataxe's metal blade. You gain a +1 bonus to attack and damage rolls made with this greataxe.\"+\n\t\"\\n   An Aberration hit with this greataxe takes an extra 1d12 slashing damage. If the Aberration is currently grappling a creature, the Aberration must succeed on a DC 15 Strength saving throw or release each creature it is grappling.\",\n\tattunement : true,\n\tweight : 7,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greataxe\",\n\t\tregExpSearch : /flayer slayer/i,\n\t\tname : \"Flayer Slayer\",\n\t\tsource : [[\"PaBTSO\", 217]],\n\t\tdescription : \"Heavy, two-handed; Aberrations: +1d12 damage \\u0026 DC 15 Str save or release all grappled\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"luminous war pick\"] = {\n\tname : \"Luminous War Pick\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"weapon (war pick)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this war pick inlaid with crushed pearlescent stones that imbue it with a faint luminescence. As a bonus action once per dawn, I can use it to cast the daylight spell, choosing a point on the war pick as a target for the spell.\",\n\tdescriptionFull : \"The haft of this war pick is inlaid with crushed pearlescent stones that imbue the weapon with a faint luminescence. You gain a +1 bonus to attack and damage rolls made with this war pick.\"+\n\t\"\\n   While wielding the war pick, you can use a bonus action to cast the daylight spell, choosing a point on the war pick. Once you use this bonus action, it can't be used again until the next dawn.\",\n\tattunement : true,\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"war pick\",\n\t\tregExpSearch : /^(?=.*\\bluminous\\b)((?=.*\\bkuwas?\\b)|((?=.*pick)(?=.*war))|((?!.*(heavy|great|light))(?=.*\\bpicks?\\b))).*$/i,\n\t\tname : \"Luminous War Pick\",\n\t\tsource : [[\"PaBTSO\", 217]],\n\t\tdescription : \"\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"daylight\"],\n\t\tselection : [\"daylight\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Daylight\",\n\taction : [[\"bonus action\", \" (Daylight)\"]],\n\tspellChanges : {\n\t\t\"daylight\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tdescription : \"60-ft rad bright light + 60-ft dim light from point on pick; only magical darkness of SL 4+ works in it\",\n\t\t\tchanges : \"While wielding the Luminous War Pick, I can use a bonus action to cast the daylight spell, choosing a point on the war pick.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"mind crystal\"] = {\n\tname : \"Mind Crystal\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"When you cast a spell that has a casting time of 1 action while holding a mind crystal, I can modify it in a specific way determined by the type of mind crystal. I can't use a mind crystal and a Metamagic option on the same spell. Once a mind crystal is used, it becomes a nonmagical gem worth 50 gp.\",\n\tdescriptionFull : \"These gemstones contain a crystallized bit of spellcasting magic. Different types of mind crystals exist, each with a different single-use effect.\"+\n\t\"\\n   When you cast a spell that has a casting time of 1 action while holding a mind crystal, you can modify the spell in a specific way. You can use only a single mind crystal to modify the spell, and you can't use a mind crystal and a Metamagic option on the same spell. Once you use a mind crystal, it becomes a nonmagical gem worth 50 gp.\"+\n\ttoUni(\"\\n   Careful\") + \". (Uncommon) Choose up to three creatures affected by the spell. The chosen creatures automatically succeed on their saving throws against the spell.\"+\n\ttoUni(\"\\n   Distant\") + \". (Uncommon) If the spell has a range of 5 feet or more and doesn't have a range of self, the spell's range increases by 100 feet. If the spell has a range of touch, its range becomes 30 feet.\"+\n\ttoUni(\"\\n   Empowered\") + \". (Uncommon) When you roll damage for the spell, you can reroll up to three damage dice. You must use the new rolls.\"+\n\ttoUni(\"\\n   Extended\") + \". (Uncommon) If the spell has a duration of 1 minute or longer, double the spell's duration, to a maximum duration of 24 hours.\"+\n\ttoUni(\"\\n   Heightened\") + \". (Rare) Choose one creature affected by the spell. That creature has disadvantage on the first saving throw it makes against the spell.\"+\n\ttoUni(\"\\n   Quickened\") + \". (Rare) You change the spell's casting time to 1 bonus action for this casting.\"+\n\ttoUni(\"\\n   Subtle\") + \". (Common) You cast the spell without any somatic or verbal components for this casting.\",\n\tallowDuplicates : true,\n\tchoices : ['Careful', 'Distant', 'Empowered', 'Extended', 'Heightened', 'Quickened', 'Subtle'],\n\t\"careful\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. Choose up to three creatures affected by the spell. The chosen creatures automatically succeed on their saving throws against the spell. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"distant\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action and a range other then self. If the spell has a range of touch, its range becomes 30 ft. If the spell has a range of 5 ft or more, it increases by 100 ft. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"empowered\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. When you roll damage for the spell, you can reroll up to three damage dice. You must use the new rolls. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"extended\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. If the spell has a duration of 1 minute or longer, double the spell's duration, to a maximum duration of 24 hours. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"heightened\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. Choose one creature affected by the spell. That creature has disadvantage on the first saving throw it makes against the spell. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"quickened\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. The spell's casting time is changed to 1 bonus action for this casting. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"subtle\" : {\n\t\trarity : \"common\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. The spell doesn't require any somatic or verbal components for this casting. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t}\n}\nMagicItemsList[\"mindblasting cap\"] = {\n\tname : \"Mindblasting Cap\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As a bonus action once per dawn, I can use this cap to project psychic energy in a 60-ft cone. All in the area must make a DC 15 Int save or take 5d8 psychic damage and be stunned for 1 min. If saved, deals half damage and not stunned. Stunned creatures can repeat the save at the end of each of their turns.\",\n\tdescriptionFull : \"This soft, violet cap bears stitching in the pattern of folds on a brain.\"+\n\t\"\\n   As a bonus action while wearing the cap, you can project psychic energy in a 60-foot cone. Each creature in that area must make a DC 15 Intelligence saving throw. On a failed save, a creature takes 5d8 psychic damage and has the stunned condition for 1 minute. On a successful save, the creature takes half as much damage only. At the end of each of its turns, a stunned creature can repeat the saving throw, ending the stunned condition on itself on a success.\"+\n\t\"\\n   Once this bonus action is used, it can't be used again until the next dawn.\",\n\tattunement : true,\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*mindblasting)(?=.*cap).*$/i,\n\t\tname : \"Mindblasting Cap\",\n\t\tsource : [[\"PaBTSO\", 218]],\n\t\tability : 0,\n\t\ttype : \"Magic Item\",\n\t\tdamage : [5, 8, \"psychic\"],\n\t\trange : \"60-ft cone\",\n\t\tdescription : \"Int save or stunned for 1 min, re-save end of turn; Success - half damage, not stunned\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, 0],\n\t\tdc : true,\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"mindguard crown\"] = {\n\tname : \"Mindguard Crown\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While I wear this adamantine crown, I have advantage on Intelligence, Wisdom, and Charisma saving throws, and I have resistance to psychic damage.\",\n\tdescriptionFull : \"While you wear this adamantine crown, you have advantage on Intelligence, Wisdom, and Charisma saving throws, and you have resistance to psychic damage.\",\n\tattunement : true,\n\tdmgres : [\"Psychic\"],\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]]\n}\nvar PaBTSO_mudslickTowerFullDescription = [\n\t'You can use an action to place this 1-inch-diameter granite sphere on the ground and speak its command word, which is \"petrification\" in Terran. The sphere rapidly grows into a stout tower that remains until you use an action to touch the tower and speak the command word again, whereupon the tower shrinks back to a 1-inch-diameter granite sphere. The tower must be empty to shrink in this way. The tower bristles with muddy knobs that constantly extrude and retract across its surface, as though the tower were breathing through a coating of thick mud.',\n\t\"Each creature in the area where the tower appears must make a DC 15 Dexterity saving throw, taking 10d10 bludgeoning damage on a failed save, or half as much damage on a successful one. In either case, the creature is pushed to an unoccupied space outside but next to the tower. Objects in the area that aren't being worn or carried take this damage and are pushed automatically.\"+\n\t\"Whenever it expands, the mudslick tower merges with any natural stone it touches, awkwardly tipping and wedging itself to touch as much natural stone as it can.\",\n\t\"The tower is 20 feet on a side and 30 feet high, with arrow slits on all sides and a battlement atop it. Its interior is divided into two floors, with a ladder running along one wall to connect them. The ladder ends at a trapdoor leading to the roof. When activated, the tower has a small door on the side facing you. The door opens only at your command, which you can speak as a bonus action. It is immune to the knock spell and similar magic, such as that of a chime of opening.\",\n\t\"Although it looks like stone, the tower is made of adamantine, and its magic prevents creatures from tipping it over. The roof, the door, and the walls each have 100 hit points, immunity to damage from nonmagical weapons excluding siege weapons, and resistance to all other damage. While merged with natural stone, the mudslick tower has immunity to all damage. Only a wish spell can repair the tower (this use of the spell counts as replicating a spell of 8th level or lower). Each casting of wish causes the roof, the door, or one wall to regain 50 hit points.\"\n];\nMagicItemsList[\"mudslick tower\"] = {\n\tname : \"Mudslick Tower\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As an action, I can command this granite sphere to expand to a 20-ft square, 30-ft high tower of adamantine. If it is empty, I can command it to shrink back down as an action. It has two floors  and a roof with battlements, connected by ladders. The front door only opens on my command, as a bonus action.\",\n\tdescriptionFull : PaBTSO_mudslickTowerFullDescription.join(\"\\n   \"),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(PaBTSO_mudslickTowerFullDescription).replace(/feet/ig, \"ft\").replace(/your/g, \"my\").replace(/(facing) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}],\n\taction : [[\"action\", \" (expand/shrink)\"]]\n}\nMagicItemsList[\"potion of psionic fortitude\"] = {\n\tname : \"Potion of Psionic Fortitude\",\n\tsource : [[\"PaBTSO\", 219]],\n\ttype : \"potion\",\n\trarity : \"uncommon\",\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to grant, for 1 hour, advantage on saving throws to avoid or end the charmed or stunned condition. This black potion swirls with shimmering flecks of pink and purple.\",\n\tdescriptionFull : \"When you drink this potion, you have advantage for 1 hour on saving throws you make to avoid or end the charmed or stunned condition on yourself.\"+\n\t\"\\n   This black potion swirls with shimmering flecks of pink and purple.\",\n\tweight : 0.5\n}\nMagicItemsList[\"ring of the orator\"] = {\n\tname : \"Ring of the Orator\",\n\tsource : [[\"PaBTSO\", 219]],\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This ring has 6 charges, regaining 1d6 daily at dawn. I can use 1 charge to project my voice to be heard clearly by all within 1 mile, for 1 min. Magical silence, 1 ft stone, 1 inch metal, lead, or 3 ft wood blocks this. During this, I can have creatures I can see understand me even if they don't know the language I speak.\",\n\tdescriptionFull : \"This ring has 6 charges. While you wear it, you can expend 1 of its charges to project your voice to be heard clearly by all creatures within 1 mile of yourself, regardless of intervening noise, for 1 minute. Magical silence, 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood blocks this projection. If you project your voice while speaking a language the listening creatures don't understand, you can make the creatures understand what you're saying. You must be able to see the creatures to make them understand. The ring regains 1d6 expended charges daily at dawn.\",\n\tattunement : true,\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\"\n}\n\n// pub_20231017_Planescape.js\n// This file adds the Character Options content from the \"Planescape: Adventures in the Multiverse\" set (the \"Sigil and the Outlands\" book) to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"P:AitM\"] = {\n\tname : \"Planescape: Adventures in the Multiverse\",\n\tabbreviation : \"P:AitM\",\n\tabbreviationSpellsheet : \"PS\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Planescape\",\n\turl : \"https://dndstore.wizards.com/us/product/820944/planescape-adventures-in-the-multiverse-digital-plus-physical-bundle\",\n\tdate : \"2023/10/17\"\n};\n\n// Backgrounds from Sigil and the Outlands\nBackgroundList[\"gate warden\"] = {\n\tregExpSearch : /^(?=.*gate)(?=.*warden).*$/i,\n\tname : \"Gate Warden\",\n\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\n\tskills : [\"Persuasion\", \"Survival\"],\n\tgold : 10,\n\tlanguageProfs : [[\"Any (Abyssal, Celestial, or Infernal recommended)\", 2]],\n\tequipleft : [\n\t\t[\"Blank book\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen or quill\", \"\", \"\"],\n\t\t[\"Ring of keys to unknown locks\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Planar Infusion\",\n\ttrait : [\n\t\t\"Strange events and otherworldly creatures don't phase me.\",\n\t\t\"I think in terms of exchange; something for something, nothing for nothing.\",\n\t\t\"I speak with an unusual cadence.\",\n\t\t\"I pepper my speech with borrowed words or curses from planar languages.\",\n\t\t\"I've seen enough to know that you can't take anyone at face value, so I scrutinize everyone.\",\n\t\t\"I have a superstitious habit I picked up from my gate-town, such as touching iron when I'm nervous or arranging objects in a specific order.\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Vial pendant with glowing honey\",\n\t\t\"Whispering lead ingot thumbprint\",\n\t\t\"Two chiming lodestone spheres\",\n\t\t\"Skin-safe smoldering pebble of coal\",\n\t\t\"Light up white feather\",\n\t\t\"Hard to remove chain-link ring\"\n\t]\n};\nBackgroundFeatureList[\"planar infusion\"] = {\n\tdescription : \"I spent a good amount of time somewhere influenced by planar forces. I'm accustomed to experiences that would leave others reeling in terror or captivated by beauty, and I'm comfortable dealing with fiends and celestials. I know where to find free, modest lodging and food in the community I grew up in. Also, I gain the Scion of the Outer Planes feat.\",\n\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\n\tfeatsAdd: [\"Scion of the Outer Planes\"],\n};\n\nBackgroundList[\"planar philosopher\"] = {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher).*$/i,\n\tname : \"Planar Philosopher\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\"],\n\tskillstxt : \"Arcana, and one skill determined by your faction or one skill of your choice.\",\n\tgold : 10,\n\tlanguageProfs : [2],\n\tequipleft : [\n\t\t[\"Portal key (e.g. bag of golden tea leaves)\", \"\", 3],\n\t\t[\"Manifesto of my guiding philosophy\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Common clothes in faction's style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t],\n\tfeature : \"Conviction\",\n\ttrait : [\n\t\t\"I don't venerate any gods. With time, we can be as powerful as them or greater.\",\n\t\t\"Experience is everything, I live in the moment.\",\n\t\t\"When things crumble, I find meaning in the dust.\",\n\t\t\"Life thrives through order, and I seek to maintain that order.\",\n\t\t\"When others make plans, the multiverse laughs and so do I.\",\n\t\t\"I know what's right, and none will stand in my way.\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Inscribed locket with image of mentor\",\n\t\t\"Cranium rat skull with glass eyes\",\n\t\t\"Torn parchment with half a puzzle\",\n\t\t\"Bracelet of twisted razorvine stems\",\n\t\t\"Fragment of verdigris bronze blade\",\n\t\t\"Broken symbol of forgotten god\"\n\t]\n};\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of athar\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*athar).*$/i,\n\tname : \"Planar Philosopher of Athar\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Religion\"],\n\tequipright : [\n\t\t[\"Common clothes in Athar style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of bleak cabal\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*bleak cabal).*$/i,\n\tname : \"Planar Philosopher of Bleak Cabal\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Insight\"],\n\tequipright : [\n\t\t[\"Common clothes in Bleak Cabal style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of doomguard\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*doomguard).*$/i,\n\tname : \"Planar Philosopher of Doomguard\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Nature\"],\n\tequipright : [\n\t\t[\"Common clothes in Doomguard style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of fated\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*fated).*$/i,\n\tname : \"Planar Philosopher of Fated\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Intimidation\"],\n\tequipright : [\n\t\t[\"Common clothes in Fated style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of fraternity of order\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*fraternity of order).*$/i,\n\tname : \"Planar Philosopher of Fraternity of Order\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"History\"],\n\tequipright : [\n\t\t[\"Common clothes in Fraternity of Order style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of hands of havoc\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*hands of havoc).*$/i,\n\tname : \"Planar Philosopher of Hands of Havoc\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Stealth\"],\n\tequipright : [\n\t\t[\"Common clothes in Hands of Havoc style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of harmonium\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*harmonium).*$/i,\n\tname : \"Planar Philosopher of Harmonium\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Perception\"],\n\tequipright : [\n\t\t[\"Common clothes in Harmonium style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of heralds of dust\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*heralds of dust).*$/i,\n\tname : \"Planar Philosopher of Heralds of Dust\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Medicine\"],\n\tequipright : [\n\t\t[\"Common clothes in Heralds of Dust style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of mercykillers\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*mercykillers).*$/i,\n\tname : \"Planar Philosopher of Mercykillers\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Survival\"],\n\tequipright : [\n\t\t[\"Common clothes in Mercykillers style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of mind's eye\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*mind's eye).*$/i,\n\tname : \"Planar Philosopher of Mind's Eye\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Persuasion\"],\n\tequipright : [\n\t\t[\"Common clothes in Mind's Eye style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of society of sensation\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*society of sensation).*$/i,\n\tname : \"Planar Philosopher of Society of Sensation\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Performance\"],\n\tequipright : [\n\t\t[\"Common clothes in Society of Sensation style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of transcendent order\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*transcendent order).*$/i,\n\tname : \"Planar Philosopher of Transcendent Order\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Athletics\"],\n\tequipright : [\n\t\t[\"Common clothes in Transcendent Order style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nBackgroundFeatureList[\"conviction\"] = {\n\tdescription : \"I subscribe to a distinct philosophy that seeks to understand the nature of the planes or a hidden truth of the multiverse and spread my philosophy. I am part of a network of like-minded believers who provide me free, modest lodging and food at any of their holding or the homes of other faction members. Also, I gain the Scion of the Outer Planes feat.\",\n\tsource : [[\"P:AitM\", 8], [\"UA:WotM\", 4]],\n\tfeatsAdd: [\"Scion of the Outer Planes\"],\n};\n\n// Feats from Sigil and the Outlands\nFeatsList[\"scion of the outer planes\"] = {\n\tname : \"Scion of the Outer Planes\",\n\tsource : [[\"P:AitM\", 12]],\n\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I can select a plane and gain resistance to a damage type and learn a cantrip associated with that plane. I can cast the cantrip without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\tdescriptionFull : \"Your connection to an Outer Plane infuses you with the energy there. Choose a type of plane listed in the Planar Infusion table. Your choice gives you resistance to a damage type and the ability to cast a cantrip, as specified in the table. You can cast this cantrip without material components, and your spellcasting ability for it is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\n\ttoUni(\"\\n\\nPlane\\t\\tResistance\\tCantrip\")+\n\t\"\\nChaotic Outer\\tPoison\\t\\tMinor Illusion\"+\n\t\"\\nEvil Outer  \\tNecrotic\\t\\tChill Touch\"+\n\t\"\\nGood Outer  \\tRadiant\\t\\tSacred Flame\"+\n\t\"\\nLawful Outer\\tForce\\t\\tGuidance\"+\n\t\"\\nThe Outlands\\tPsychic\\t\\tMage Hand\",\n\tprerequisite : \"Planescape Campaign\",\n\tspellcastingAbility : [4,5,6],\n\tchoices : ['Chaotic Outer Plane (Poison, Minor Illusion)', 'Evil Outer Plane (Necrotic, Chill Touch)', 'Good Outer Plane (Radiant, Sacred Flame)', 'Lawful Outer Plane (Force, Guidance)', 'The Outlands (Psychic, Mage Hand)'],\n\t'chaotic outer plane (poison, minor illusion)' : {\n\t\tname : \"Scion of the Outer Planes (Chaotic Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to a chaotic outer plane gives me resistance to poison damage and I know the Minor Illusion cantrip, which requires no material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Chaotic Outer Plane\",\n\t\t\tspells : [\"minor illusion\"],\n\t\t\tselection : [\"minor illusion\"],\n\t\t}],\n\t\tdmgres : [\"Poison\"],\n\t\tspellChanges : {\n\t\t\t\"minor illusion\" : {\n\t\t\t\tcomponents : \"S\",\n\t\t\t\tcompMaterial : \"\",\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Minor Illusion without material components.\"\n\t\t\t}\n\t\t}\n\t},\n\t'evil outer plane (necrotic, chill touch)' : {\n\t\tname : \"Scion of the Outer Planes (Evil Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an evil outer plane. This connection gives me resistance to necrotic damage and I know the Chill Touch cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Evil Outer Plane\",\n\t\t\tspells : [\"chill touch\"],\n\t\t\tselection : [\"chill touch\"],\n\t\t}],\n\t\tdmgres : [\"Necrotic\"]\n\t},\n\t'good outer plane (radiant, sacred flame)' : {\n\t\tname : \"Scion of the Outer Planes (Good Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an good outer plane. This connection gives me resistance to radiant damage and I know the Sacred Flame cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Good Outer Plane\",\n\t\t\tspells : [\"sacred flame\"],\n\t\t\tselection : [\"sacred flame\"],\n\t\t}],\n\t\tdmgres : [\"Radiant\"]\n\t},\n\t'lawful outer plane (force, guidance)' : {\n\t\tname : \"Scion of the Outer Planes (Lawful Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an lawful outer plane. This connection gives me resistance to force damage and I know the Guidance cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Lawful Outer Plane\",\n\t\t\tspells : [\"guidance\"],\n\t\t\tselection : [\"guidance\"],\n\t\t}],\n\t\tdmgres : [\"Force\"]\n\t},\n\t'the outlands (psychic, mage hand)' : {\n\t\tname : \"Scion of the Outer Planes (the Outlands)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from a plane of the outlands. This gives me resistance to psychic damage and I know the Mage Hand cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"The Outlands\",\n\t\t\tspells : [\"mage hand\"],\n\t\t\tselection : [\"mage hand\"],\n\t\t}],\n\t\tdmgres : [\"Psychic\"]\n\t}\n};\nFeatsList[\"agent of order\"] = {\n\tname : \"Agent of Order\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save (DC 8 + Prof Bonus + spellcasting ability mod of Scion of the Outer Planes) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest.\",\n\tcalculate : \"try { var a = Object.keys(CurrentSpells); var b = a.find(/scion of the outer planes/i); var c = CurrentSpells[a[b]]; var dc = c && c.calcSpellScores ? c.calcSpellScores.dc : '[Error: generate spell sheet first]'; } catch(e) { var dc = '[Error: select Scion of the Outer Planes feat]'; }; event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + dc + ' (= Scion of the Outer Planes spell DC) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 to any one ability score].';\",\n\tdescriptionFull : \"You can channel cosmic forces of order to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Stasis Strike\") + \". Once per turn, when you damage a creature you can see within 60 feet of yourself, you can deal an extra 1d8 force damage to the target, and it must make a Wisdom saving throw (DC equal to 8 + your proficiency bonus + the modifier of the spellcasting ability you chose for the Scion of the Outer Planes feat) as spectral bindings try to ensnare it. On a successful save, the target escapes. On a failed save, the target has the restrained condition until the start of your next turn. These bindings manifest as chains or some other symbol of stasis. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Lawful Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'lawful outer plane (force, guidance)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\"\n};\nFeatsList[\"baleful scion\"] = {\n\tname : \"Baleful Scion\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"Once per turn, when I damage a creature I can see within 60 ft, I can also deal 1d6 + my Proficiency Bonus necrotic damage to it. I then regain a number of hit points equal to this necrotic damage dealt. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of evil to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Life-Draining Grasp\") + \". Once per turn, when you damage a creature you can see within 60 feet of yourself, you can also deal necrotic damage to it. The necrotic damage equals 1d6 + your proficiency bonus, and you regain a number of hit points equal to this necrotic damage dealt. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Evil Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'evil outer plane (necrotic, chill touch)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\"\n};\nFeatsList[\"cohort of chaos\"] = {\n\tname : \"Cohort of Chaos\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"When I roll a 1 or a 20 on an attack roll or save, a the magic of chaos flares up and I roll on the Chaotic Flare table to determine what happens (see notes for table). As a bonus action, my Proficiency Bonus per long rest, I can force a flare to happen. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of chaos to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Chaotic Flare\") + \". When you roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through you. Roll a d4 and consult the table below to determine what happens. A flare lasts until the end of your next turn, and a new flare can't occur until after the first flare ends.\"+\n\ttoUni(\"\\n\\nd4\\tFlare\")+\n\t\"\\n  1\\tBattle Fury: A creature of your choice that you can see is filled with reckless fury. It has advantage on attack rolls and disadvantage on ability checks.\"+\n\t\"\\n  2\\tDisruption Field: Waves of energy ripple around you. Every creature that starts its turn within 5 feet of you, or that moves into that area for the first time on a turn, takes 1d8 force damage.\"+\n\t\"\\n  3\\tUnbound: When you move, you can use some or all of your walking speed to teleport yourself once, along with any equipment you're wearing or carrying, up to the distance used to an unoccupied space that you can see.\"+\n\t\"\\n  4\\tWailing Winds: Winds swirl in a 15-foot-radius sphere centered on you. You and any other creatures in that area have disadvantage on Wisdom saving throws.\"+\n\t\"\\n\\n   You can also forcibly release a chaotic flare as a bonus action, rolling on the table as normal to determine the effects. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Chaotic Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'chaotic outer plane (poison, minor illusion)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\tadditional : \"force flare\",\n\taction : [[\"bonus action\", \" (force flare)\"]],\n\ttoNotesPage : [{\n\t\tname : \"Chaotic Flare Table\",\n\t\tnote : [\n\t\t\t\"When I roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through Me. I roll a d4 on the table below to determine what happens. A flare lasts until the end of my next turn, and a new flare can't occur until after the first flare ends.\",\n\t\t\t\"As a bonus action, I can forcibly release a chaotic flare, rolling on the table as normal to determine the effects. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when you finish a long rest.\",\n\t\t\t\"\\n d4  Flare\",\n\t\t\t\"1  Battle Fury: A creature of my choice that I can see is filled with reckless fury. It has advantage on attack rolls and disadvantage on ability checks.\",\n\t\t\t\"2  Disruption Field: Waves of energy ripple around me. Every creature that starts its turn within 5 ft of me, or that moves into that area for the first time on a turn, takes 1d8 force damage.\",\n\t\t\t\"3  Unbound: When I move, I can use some or all of my walking speed to teleport once, along with any equipment I'm wearing or carrying, up to the distance used to an unoccupied space that I can see.\",\n\t\t\t\"4  Wailing Winds: Winds swirl in a 15-ft radius sphere centered on me. Creatures in that area, myself included, have disadvantage on Wisdom saving throws.\"\n\t\t]\n\t}]\n};\nFeatsList[\"outlands envoy\"] = {\n\tname : \"Outlands Envoy\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"I can cast Misty Step and Tongues each once per long rest without requiring a spell slot or material components. I can also cast them using a spell slot as normal. My spellcasting ability for these spells is the same as the one for the Scion of the Outer Planes feat. [+1 to any one ability score]\",\n\tdescriptionFull : \"You have spent significant time in Sigil or the Outlands, the crossroads of the multiverse. Being steeped in converging planar energies grants you these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Crossroads Emissary\") + \". You learn the misty step and tongues spells. You can cast each spell once using this feat without a spell slot, and you must finish a long rest before you can cast that spell in this way again. When you cast tongues using this feat, you require no material components. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the one chosen when you gained the Scion of the Outer Planes feat.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (the Outlands) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'the outlands (psychic, mage hand)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tspellcastingAbility : \"scion of the outer planes\",\n\tspellcastingBonus : [{\n\t\tname : \"Crossroads Emissary\",\n\t\tspells : [\"misty step\", \"tongues\"],\n\t\tselection : [\"misty step\", \"tongues\"],\n\t\tfirstCol : \"oncelr+markedbox\",\n\t\ttimes : 2\n\t}],\n\tspellChanges : {\n\t\t\"tongues\" : {\n\t\t\tcomponents : SpellsList.tongues.components.replace(\"M\", \"M*\"),\n\t\t\tcompMaterial : \"When using a spell slot: \"+SpellsList.tongues.compMaterial,\n\t\t\tchanges : \"Using Outlands Envoy, I can cast Tongues once per long rest without expending a spell slot or requiring material components.\"\n\t\t}\n\t}\n};\nFeatsList[\"planar wanderer\"] = {\n\tname : \"Planar Wanderer\",\n\tsource : [[\"P:AitM\", 11]],\n\tdescription : \"After each long rest, I can gain acid, cold, or fire resistance, that lasts until my next long rest ends. I know the direction to the last portal I used while on the same plane as it. As an action, I can try to open or close a portal (portal cracker). As an action once per long rest, I can detect portals (portal sense). See notes.\",\n\tdescriptionFull : \"You can draw on the forces of the multiverse to survive cosmic extremes and to traverse its infinite realms, granting you these benefits:\"+\n\t\"\\n   \" + toUni(\"Planar Adaptation\") + \". When you finish a long rest, you gain resistance to either acid, cold, or fire damage (your choice) until you finish your next long rest.\"+\n\t\"\\n   \" + toUni(\"Portal Cracker\") + \". Your experience with portals allows you to open them without a portal key. As an action, you can concentrate on a portal you're aware of that is within 5 feet of yourself and make a DC 20 Intelligence (Arcana) check. On a failed check, you take 3d8 psychic damage and can't use this benefit on that portal again until you finish a long rest. On a successful check, you can force the portal open or closed for 1 hour. For that duration, the portal doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"+\n\t\"\\n   \" + toUni(\"Portal Sense\") + \". You know the direction to the last planar portal you used while you and the portal are on the same plane of existence. Moreover, as an action, you can detect the location of any portals within 30 feet of you that aren't behind total cover. Once you detect a portal with this action, you can't use the action again until you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\n\tprereqeval : function(v) {\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes\") !== -1;\n\t},\n\tdmgres : [\"Acid/Cold/Fire\"],\n\taction : [[\"action\", \" (Portal Cracker)\"], [\"action\", \" (Portal Sense)\"]],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"Portal Sense\",\n\ttoNotesPage : [{\n\t\tname : \"Portal Cracker\",\n\t\tnote : [\n\t\t\t\"My experience with portals allows me to open them without a portal key.\",\n\t\t\t\"As an action, I can concentrate on a portal I'm aware of that is within 5 ft of me and make a DC 20 Intelligence (Arcana) check.\",\n\t\t\t\"On a failed check, I take 3d8 psychic damage and can't do this on that portal again until I finish a long rest.\",\n\t\t\t\"On a successful check, I can force the portal open or closed for 1 hour. For that duration, the portal doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"\n\t\t]\n\t}, {\n\t\tname : \"Portal Sense\",\n\t\tadditional : \"1\\xD7 per long rest\",\n\t\tnote : [\n\t\t\t\"I know the direction to the last planar portal I used while I and the portal are on the same plane of existence.\",\n\t\t\t\"As an action, I can detect the location of any portals within 30 ft of me that aren't behind total cover.\",\n\t\t\t\"Once I detect a portal with this action, I can't use the action again until I finish a long rest.\"\n\t\t],\n\t\tamendTo : \"Portal Cracker\"\n\t}]\n};\nFeatsList[\"righteous heritor\"] = {\n\tname : \"Righteous Heritor\",\n\tsource : [[\"P:AitM\", 11]],\n\tdescription : \"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce the damage taken by 1d10 + my Proficiency Bonus. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of good to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Soothe Pain\") + \". When you or a creature within 30 feet of you takes damage, you can use your reaction to reduce that damage by 1d10 + your proficiency bonus. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Good Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'good outer plane (radiant, sacred flame)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\taction : [[\"reaction\", \"\"]]\n};\n\n\n// Magic Items from Sigil and the Outlands\nMagicItemsList[\"mimir\"] = {\n\tname : \"Mimir\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can stow or toss this skull-shaped device in the air to activate it, making it float 1d3 ft near me. Once per dawn as an action while active, I can use it to cast Legend Lore. It speaks the revieled lore aloud. While active, it answers questions about the planes of existence I or someone I designate ask it.\",\n\tdescriptionLong : \"As a bonus action, I can toss this skull-shaped device covered with planar sigils into the air to activate it, causing it to float 1d3 ft near me but considered worn by me. I can use another bonus action to seize and stow it. It has AC 22, 25 HP, immunity to poison and psychic damage, and resistance to all other damage. Another can use an action to grab it with a successful unarmed strike or DC 22 Acrobatics check. Once per dawn as an action while active, I can use it to cast Legend Lore. It speaks the revealed lore aloud. While active, it answers questions about the planes of existence I or someone I designate ask it.\",\n\tdescriptionFull : \"This skull-shaped device is filled with knowledge. The device weighs 5 pounds and is covered with subtle etchings of planar sigils.\"+\n\t\"As a bonus action, you can toss the device into the air, whereupon it floats at a distance of 1d3 feet from you and you can access its properties. While the mimir is floating, a creature other than you can use an action to grasp or net the device, either by making a successful unarmed strike against AC 22 or a successful DC 22 Dexterity (Acrobatics) check. You can use a bonus action to seize and stow the device.\"+\n\t\"The device has AC 22, 25 hit points, immunity to poison and psychic damage, and resistance to all other damage. It is considered to be an object that is being worn while it is floating near you.\"+\n\ttoUni(\"\\n   Esoteric Knowledge\") + \". While the device is floating, you can use an action to cast legend lore from the device. The device speaks the revealed lore aloud. Once this property has been used, it can't be used again until the next dawn.\"+\n\ttoUni(\"\\n   Planar Knowledge\") + \". The device knows basic, useful information about the planes of existence. While the device is floating, it verbally answers questions you or anyone you designate poses to it about that topic. It knows the information about the planes in the Dungeon Master's Guide, as well as basic information about the gate-towns of the Outlands (presented in chapter 3 of Sigil and the Outlands).\",\n\taction : [[\"bonus action\", \" (activate/stow)\"]],\n\tweight : 5,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Legend Lore\",\n\tspellcastingBonus : [{\n\t\tname : \"once per dawn\",\n\t\tspells : [\"legend lore\"],\n\t\tselection : [\"legend lore\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"portal compass\"] = {\n\tname : \"Portal Compass\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This portable arcane instrument points in the direction of the last portal it passed through while it and the portal are on the same plane of existence. If that portal no longer exists, the needle becomes static until the compass passes through a new portal.\",\n\tdescriptionFull : \"This portable arcane instrument points in the direction of the last portal it passed through while it and the portal are on the same plane of existence. If that portal no longer exists, the needle becomes static until the compass passes through a new portal.\"\n};\nMagicItemsList[\"sensory stone\"] = {\n\tname : \"Sensory Stone\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This stone stores a single experience. As an action, one touching the stone can experience it harmlessly. As a reaction, I can replace the experience within with a new, six-second sensation experienced by a creature within 30 ft. As a bonus action, I can destroy it to end the charmed or frightened effect on myself.\",\n\tdescriptionFull : \"This small, smooth stone contains the essence of a single experience.\"+\n\t\"As an action, you or a willing creature you designate can touch the stone and experience the sensation as if it happened to the designated creature. The illusory experience is fleeting and harmless, however real it might feel in the moment.\"+\n\ttoUni(\"\\n   Record Sensation\") + \". You can use your reaction to record a short sensation lasting no longer than 6 seconds experienced by a creature of your choice within 30 feet of yourself, infusing the essence of that experience into the stone. This replaces any sensation already stored within the stone.\"+\n\ttoUni(\"\\n   Siphon Sensation\") + \". As a bonus action, you can draw on the stone's magic to end the charmed or frightened condition on yourself, destroying the stone in the process.\",\n\taction : [\n\t\t[\"action\", \" (experience)\"],\n\t\t[\"reaction\", \" (record)\"],\n\t\t[\"bonus action\", \" (destroy to end charmed/frightened)\"]\n\t]\n};\n\n\n// Spells from Sigil and the Outlands\nSpellsList[\"gate seal\"] = {\n\tname : \"Gate Seal\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"P:AitM\", 12]],\n\tlevel : 4,\n\tschool : \"Abjur\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u2020\",\n\tcompMaterial : \"A broken portal key, which the spell consumes\",\n\tduration : \"24 h\",\n\tdescription : \"30-ft cube wherein all portals close and can't be opened, and no planar travel; SL6: until dispelled\",\n\tdescriptionFull : \"You fortify the fabric of the planes in a 30-foot cube you can see within range. Within that area, portals close and can't be opened for the duration. Spells and other effects that allow planar travel or open portals, such as gate or plane shift, fail if used to enter or leave the area. The cube is stationary.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the spell lasts until dispelled.\"\n};\nSpellsList[\"warp sense\"] = {\n\tname : \"Warp Sense\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"P:AitM\", 12]],\n\tlevel : 2,\n\tschool : \"Div\",\n\ttime : \"1 a\",\n\trange : \"Self\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A razorvine leaf\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"Know presence of portals in 30 ft; 1 a DC 15 spell ability chk to see destination \\u0026 portal key, ends spell\",\n\tdescriptionFull : \"For the duration, you sense the presence of portals, even inactive ones, within 30 feet of yourself.\"+\n\t\"\\n   If you detect a portal in this way, you can use your action to study it. Make a DC 15 ability check using your spellcasting ability. On a successful check, you learn the destination plane of the portal and what portal key it requires, then the spell ends. On a failed check, you learn nothing and can't study that portal again using this spell until you cast it again.\"+\n\t\"\\n   The spell can penetrate most barriers but is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt.\"\n};\n\n// Beast from Turn of Fortune's Wheel\n// Whirlwyrm is just a giant crocodile under a different name, it has been added to the SRD code as a `nameAlt`\n\n// pub_20231030_CoA.js\r\n// This file adds the magic items from the Chains of Asmodeus adventure from Extra Life to MPMB's Character Record Sheet\r\n\r\nSourceList[\"CoA\"] = {\r\n\tname : \"Chains of Asmodeus\",\r\n\tabbreviation : \"CoA\",\r\n\tgroup : \"Extra Life\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dmsguild.com/product/457996/Chains-of-Asmodeus\",\r\n\tdate : \"2023/10/30\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nCoA_Corruption = {\r\n\tprocess : function(bAddRemove, sItem) {\r\n\t\t// Make a variable to remember the settings for this\r\n\t\tif (!CurrentVars.CoA_Corruption) {\r\n\t\t\tCurrentVars.CoA_Corruption = {\r\n\t\t\t\titems : [],\r\n\t\t\t\tpresent : false,\r\n\t\t\t\tsavedAlert : false\r\n\t\t\t};\r\n\t\t}\r\n\t\tvar bProcessIt = false;\r\n\t\tvar bItemPresent = CurrentVars.CoA_Corruption.items.indexOf(sItem) !== -1;\r\n\t\t// If removing, test if present and the triggering item is in the list\r\n\t\tif (!bAddRemove && bItemPresent) {\r\n\t\t\tCurrentVars.CoA_Corruption.items.eject(sItem);\r\n\t\t\tif (CurrentVars.CoA_Corruption.items.length !== 0) {\r\n\t\t\t\t// Still items present, so don't change anything\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\t// Removing note in final step if present \r\n\t\t\t\tbProcessIt = CurrentVars.CoA_Corruption.present ? true : false;\r\n\t\t\t\t// Make pop-up appear at next corrupting item addition\r\n\t\t\t\tCurrentVars.CoA_Corruption.savedAlert = false;\r\n\t\t\t}\r\n\t\t} else if (bAddRemove) { // Adding\r\n\t\t\t// Add the item to the list of items processed\r\n\t\t\tif (!bItemPresent) CurrentVars.CoA_Corruption.items.push(sItem);\r\n\t\t\tif (CurrentVars.CoA_Corruption.savedAlert) {\r\n\t\t\t\t// The state of the alert was saved, so don't prompt and do nothing\r\n\t\t\t\treturn;\r\n\t\t\t} else if (!CurrentVars.CoA_Corruption.present) {\r\n\t\t\t\t// If not present and dialog state was not saved, ask the user if the rules should be added to a notes page\r\n\t\t\t\tvar oMsg = {\r\n\t\t\t\t\tcTitle : \"Show Infernal Item Corruption (DM-only) Rules?\",\r\n\t\t\t\t\tcMsg : 'The cursed infernal item \"' + MagicItemsList[sItem].name + '\" can cause corruption.\\nDo you want to add the Infernal Item Corruption rules intended for the DM to a Notes page on your character sheet for reference?\\n\\nIMPORTANT: these rules are not intended to be read by players, only by the DM.\\n\\nThese notes will be automatically removed when you remove all corrupting items.',\r\n\t\t\t\t\tnIcon : 2, // Question\r\n\t\t\t\t\tnType : 2, // Yes,No\r\n\t\t\t\t\toCheckbox : {\r\n\t\t\t\t\t\tcMsg : \"Don't ask me again next time I add a corrupting item (unless I have removed all corrupting items)\",\r\n\t\t\t\t\t\tbInitialValue : true,\r\n\t\t\t\t\t\tbAfterValue : false\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t// Add the note if \"Yes\" was clicked\r\n\t\t\t\tbProcessIt = app.alert(oMsg) === 4;\r\n\t\t\t\t// Save the checkbox state\r\n\t\t\t\tCurrentVars.CoA_Corruption.savedAlert = oMsg.oCheckbox.bAfterValue;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (bProcessIt) {\r\n\t\t\tCurrentVars.CoA_Corruption.present = bAddRemove;\r\n\t\t\tprocessToNotesPage(bAddRemove, CoA_Corruption.toNotesPage, \"items\", {}, false, [\"Chains of Asmodeus, page 271\"]);\r\n\t\t}\r\n\t\tSetStringifieds(\"vars\"); // Save the global variable to a field\r\n\t},\r\n\ttoNotesPage : [{ // intentionally doesn't include a source\r\n\t\tname : \"INFERNAL ITEM CORRUPTION\",\r\n\t\tpopupName : 'The \"Infernal Item Corruption\" rules from Chains of Asmodeus (page 271)',\r\n\t\tnote : [\r\n\t\t\t\"\",\r\n\t\t\t\"Cursed infernal items can be used by mortals, but they always require attunement. Once attuned, the mortal risks an increasing chance of being corrupted by the item., eventually transforming into a devil.\",\r\n\t\t\t\"   Mortals that receive express permission from Asmodeus, or that make an infernal contract to acquire a magic item, don't suffer these corrupting effects.\",\r\n\t\t\t\"\",\r\n\t\t\t\"1. STAGE ONE CORRUPTION: BEGINNINGS\",\r\n\t\t\t\"Once a character has attuned to a cursed infernal magic item or artifact, it begins the infernal corruption process. Each time that character finishes a long rest, they must make a DC 10 Wisdom save (tieflings have advantage on this save). On a success, the character suffers no effects, but the DC increases by 1 the next time they must make this save. On a failure, the character progresses to Stage Two unless Dispel Evil and Good is cast on them before their next long rest.\",\r\n\t\t\t\"   While in Stage One, the infernal corruption can be prevented by breaking attunement to the corrupting item. This prevents further Wisdom saves and resets the DC of the save, if the character were to attune to the item again.\",\r\n\t\t\t\"\",\r\n\t\t\t\"2. STAGE TWO CORRUPTION: SUFFERINGS\",\r\n\t\t\t\"While in Stage Two, the character becomes delusional, seeing plots against them where there are none. Additionally, each time they rest, they experience terrifying visions and infernal whispers. Whenever they finish a long rest, they take 1d12 necrotic damage, which ignores resistances and immunities and can't be healed until a Dispel Evil and Good or Remove Curse spell is cast on them. Once the character has taken this damage six times, they progress to Stage Three.\",\r\n\t\t\t\"   While in Stage Two, the infernal corruption can be removed with one of the following spells: Divine Word, Heal, Mass Heal, True Polymorph, True Resurrection, or Wish.\",\r\n\t\t\t\"\\n3. STAGE THREE CORRUPTION: DEPARTINGS\",\r\n\t\t\t\"While in Stage Three, the character begins to suffer physical transformation, and slowly embraces evil. After they finish their first long rest upon entering Stage Three they must roll on the table below to determine how the infernal curse starts shaping them into a devil. In addition, a part-devil character is rendered infertile and detects as a Fiend to Detect Evil and Good spells and similar magic.\",\r\n\t\t\t\"\",\r\n\t\t\t\"   d10\\tTransformation\",\r\n\t\t\t\"     1\\tTheir fingertips elongate into claws\",\r\n\t\t\t\"     2\\tNon-functional leathery wings sprout from their back\",\r\n\t\t\t\"     3\\tDevilish horns grow upon their head\",\r\n\t\t\t\"     4\\tEach night more and more of their skin burns, leaving charred patches\",\r\n\t\t\t\"     5\\tOne eye turns milky white, the other turns yellow\",\r\n\t\t\t\"     6\\tTheir spine painfully elongates into a skeletal tail\",\r\n\t\t\t\"     7\\tTheir skin starts to calcify, turning portions into bone\",\r\n\t\t\t\"     8\\tTheir feet painfully twist to resemble cloven hooves\",\r\n\t\t\t\"     9\\tAll their hair falls out, replaced by tiny spikes\",\r\n\t\t\t\"   10\\tAll their teeth fall out, with new jagged teeth tearing through the gums each morning\",\r\n\t\t\t\"\",\r\n\t\t\t\"The character begins to experience waking whispers pushing them towards evil and they suffer terrifying visions whenever they rest, breaking their spirit and pushing them further to evil. Each time they finish a short or long rest, they must make a DC 10 Wisdom save. If they performed at least one evil act, such as making a decision that increased the suffering of others, they make the save with disadvantage. When they fail the save, they progress to Stage Four.\",\r\n\t\t\t\"   While in Stage Three, the infernal corruption can be ended with one of the following spells: True Polymorph, True Resurrection or Wish.\",\r\n\t\t\t\"\",\r\n\t\t\t\"4. STAGE FOUR CORRUPTION: FINALITIES\",\r\n\t\t\t\"When the character finishes their first long rest after reaching Stage Four, the character's alignment shifts to lawful evil. They're now bound by the devil's code, requiring them to honor any pact made and acquire souls in service of Asmodeus. Lastly, their physical form changes, morphing to resemble a devil (DM's choice).\",\r\n\t\t\t\"   Once the character reaches Stage Four, the only two cures are the Wish spell, which counts as beyond the scope of the spell, or by signing an infernal contract with Asmodeus to reclaim their soul.\"\r\n\t\t].join(\"\\n\")\r\n\t}],\r\n\tdescription : \"\\n   \" + toUni(\"Corrupting\") + '. This item corrupts. See the \"Infernal Item Corruption\" rules (CoA 271).'\r\n}\r\n\r\nMagicItemsList[\"amulet of appearance\"] = {\r\n\tname : \"Amulet of Appearance\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"My equipment always shines as if just polished and my wounds do not appear to others. I'm immune to being frightened and poisoned. However, whenever I would otherwise be affected by these conditions, a random non-evil humanoid on the material plane whom I have met is affected instead. I know this.\",\r\n\tdescriptionFull : \"Your armor, weapons, and other equipment always shine as if just polished. Even if you're wounded, your wounds do not appear to others. You're immune to the frightened and poisoned conditions, as these would otherwise ruin your elegant appearance. However, whenever you would otherwise have been affected by one of these conditions, a random non-evil Humanoid on the Material Plane whom you have previously met gets the condition instead. You know this.\",\r\n\tsavetxt : { immune : [\"frightened\", \"poisoned\"] }\r\n}\r\nMagicItemsList[\"amulet of betrayal\"] = {\r\n\tname : \"Amulet of Betrayal\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action, I can move one of the following conditions from myself to an ally within 60 ft: blinded, deafened, frightened, poisoned, stunned, exhaustion. When transferring exhaustion, all my exhaustion levels are moved. If the chosen ally is immune to a transferred condition, the transfer fails.\",\r\n\tdescriptionFull : \"You can use a bonus action to move one of the following conditions from yourself to an ally within 60 feet of you: blinded, deafened, frightened, poisoned, stunned, exhaustion. When transferring exhaustion, move all your exhaustion levels. If the chosen ally is immune to a transferred condition, the transfer fails.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"amulet of duplicity\"] = {\r\n\tname : \"Amulet of Duplicity\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"When I die, a copy of my naked corpse is left in my place while I'm brought to an extradimensional space. After 24 hours, I heal 1 hp and am brought back to the place I left, but with a different face. I have disadv. on Persuasion checks to reveal who I am. I can't relay this information and forget it when unattuning.\",\r\n\tdescriptionLong : \"When I die, the amulet leaves a copy of my naked corpse in my place while I'm transported to an extradimensional space, stable at 0 hp. After 24 hours, I regain 1 hp and am returned to the place I left with different facial features. Only a Wish spell can restore my true identity. I have disadvantage on Charisma (Persuasion) checks to reveal myself. The amulet is cursed. Identifying it only shows it prevents death and one can't explain its power once attuned. When unattuned, one immediately forgets what the amulet does. A Remove Curse spell reveals the details of the curse but doesn't lift it from the amulet.\",\r\n\tdescriptionFull : \"When you die, you're transported to an extradimensional space where you're stabilized at 0 hit points and kept in that state. The amulet creates a perfect copy of your corpse and places it where you were just before you died, but without any of your worn or carried items. After 24 hours, you regain 1 hit point and are returned to the location of your near-death. Everything about you is the same, except that your facial features are entirely different from before. Only a Wish spell can restore your true identity.\"+\r\n\t\"\\n   Until then, you have disadvantage on any Charisma (Persuasion) checks to attempt to reveal who you really are.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". An Identify spell or similar reveals only that the amulet can prevent death. Once you attune to the amulet, you can't describe its ability to any other creature, and if unattuned, you immediately forget what the amulet does. A Remove Curse spell reveals the details of the curse but does not remove it from the amulet.\"\r\n}\r\nMagicItemsList[\"bracers of asmodeus\"] = {\r\n\tname : \"Bracers of Asmodeus\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"These are cursed, corrupting, and give +2 AC while not wearing armor or using a shield. I can't unattune to them. They make me obsessed with scheming, manipulation, and always bartering for better deals, often using blackmail. If I decline an opportunity to make money at another's expense, I take 3d10 necrotic damage.\",\r\n\tdescriptionFull : \"You have a +2 bonus to AC while wearing these bracers, if you do not wear armor or use a shield at the same time.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". While attuned to the bracers, you become obsessed with plotting, scheming, and manipulation. You always barter for better deals, often using secrets or leveraging other offers in the process. If you ever decline an opportunity to better yourself financially at another's expense, you immediately take 3d10 necrotic damage. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"bracers of asmodeus\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"bracers of asmodeus\") },\r\n\textraAC : [{\r\n\t\tmod : 2,\r\n\t\tmagic : true,\r\n\t\ttext : \"I gain a +2 bonus to AC while I'm not wearing armor or using a shield.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor || v.usingShield; }\r\n\t}]\r\n}\r\nMagicItemsList[\"canian fork\"] = {\r\n\tname : \"Canian Fork\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"weapon (trident)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"This magic, cursed, corrupting trident gives me +3 bonus to attack and damage rolls made with. I can't willing to part with it and can't unattune to it without Remove Curse. I'm vulnerable to radiant damage. When I receive magical healing I have to succeed on a DC 15 Con save or the healing has no effect.\",\r\n\tdescriptionFull : \"You have a +3 bonus to attack and damage rolls made with this magic weapon. In addition, you can make one additional attack with it as a bonus action on each of your turns.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. You're also vulnerable to radiant damage and each time you receive magical healing, you must make a DC 15 Constitution saving throw.\"+\r\n\t\"\\n   On a failed save, the healing has no effect. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"canian fork\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"canian fork\") },\r\n\tweight : 4,\r\n\tsavetxt : { text : [\"Vulnerable to radiant damage\"] },\r\n\taction : [[\"bonus action\", \" attack\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"trident\",\r\n\t\tregExpSearch : /^(?=.*canian)(?=.*fork).*$/i,\r\n\t\tname : \"Canian Fork\",\r\n\t\tsource : [[\"CoA\", 267]],\r\n\t\tdescription : \"Thrown, versatile (1d8); Bonus action: 1 attack\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"condensed order\"] = {\r\n\tname : \"Condensed Order\",\r\n\tsource : [[\"CoA\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can snuff this silvery powder extracted from those of a lawful persuasion, or administer it to another. The consumer is immune to the flesh warping feature of demonic ichor and gains advantage on saves against effects from a demonic source. These benefits last for 8 hours.\",\r\n\tdescriptionFull : \"Condensed Order is a silvery powder that can be extracted from those of a lawful persuasion. Devils bound for the warfronts of Avernus take flasks and snuff boxes of the stuff to fortify themselves against exposure to the raw chaos of demons. Taking the substance requires an action and makes you immune to the flesh warping feature of demonic ichor. It also gives you advantage on saving throws against any effect from a demonic source. These benefits last for 8 hours.\"\r\n}\r\nMagicItemsList[\"demonbone polearm\"] = {\r\n\tname : \"Demonbone Polearm\",\r\n\tnameTest : \"Demonbone\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"weapon (polearm)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"As a reaction when damaged by a creature in reach, I can attack it once with this +2 polearm. It is cursed, I can't unattune to it and have disadv. with other weapons. If I take damage, I must make a DC 15 Wis save or go berserk: I attack those near to me until none remain in 60 ft or I'm calmed with a DC 15 Persuasion\" + (typePF ? \".\" : \"check.\"),\r\n\tdescriptionLong : \"I have a +2 bonus on attack and damage rolls made with this magic quarterstaff. As a reaction when I'm damaged by a creature in this weapon's reach, I can make one melee attack against it. This weapon is cursed, I'm unwilling to part with it, can't unattune to it without Remove Curse, and have disadvantage with other weapons. When I take damage, I must make a DC 15 Wisdom save or go berserk: I attack the nearest creature using this weapon with all my attacks, moving to the next nearest until none remain that I can sea or hear within 60 ft of me. I can also be calmed with a DC 15 Charisma (Persuasion) check.\",\r\n\tdescriptionFull : \"You have a +2 bonus to attack and damage rolls made with this magic weapon. In addition, when you're damaged by a creature in reach, you may use your reaction to make one melee attack against it with this weapon.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. While attuned, you have disadvantage on attack rolls with weapons other than this one.\"+\r\n\t\"\\n   Whenever a hostile creature damages you, you must succeed on a DC 15 Wisdom saving throw or go berserk. While berserk, you must use your action on each of your turns to attack the creature nearest to you with the weapon. If you can make extra attacks as part of the Attack action, you use those extra attacks, moving to attack the next nearest creature after you fell your current target. If you have multiple possible targets, you attack one at random.\"+\r\n\t\"\\n   You're berserk until you start your turn with no creatures within 60 feet of you that you can see or hear. Alternatively, an ally can use an action to make a DC 15 Charisma (Persuasion) check and if successful, you're no longer berserk. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"demonbone polearm\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"demonbone polearm\") },\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"polearm\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /\\b(polearm|glaive|halberd|lance|pike|quarterstaff|spear)\\b/i;\r\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tvar testRegex = /\\b(polearm|glaive|halberd|lance|pike|quarterstaff|spear)\\b/i;\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/demonbone/i).test(v.WeaponTextName) && (testRegex.test(v.thisWeapon[0]) || ( v.theWea.baseWeapon && testRegex.test(v.theWea.baseWeapon) ))) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Demonbone\" in a the name of a polearm, it will be treated as the magic weapon Demonbone Polearm. It adds +2 to hit and damage, can be used as a reaction when I\\'m damaged by a creature within reach to attack them, an is cursed causing me to go beserk when I\\'m damaged.'\r\n\t\t]\r\n\t},\r\n\taction : [[\"reaction\", \" (when damaged)\"]]\r\n}\r\nMagicItemsList[\"gauntlets of rage\"] = {\r\n\tname : \"Gauntlets of Rage\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tdescription : \"The first melee weapon attack I make after a short rest sends me into a fury for 1 minute. I can't cast spells or speak, am immune to charmed and frightened, and when I deal damage, I heal 2d8 hp and end this fury or one condition. Also, I can use a spell slot before a melee attack for +1d6 necrotic damage per spell level.\",\r\n\tdescriptionLong : \"I gain the power of never-ending fury. The first melee weapon attack I make after I finish a short or long rest automatically send me into a special fury for 1 minute. While furious, I can't cast spells, can't verbally communicate, and am immune to the charmed and frightened conditions. Each time I deal damage, I regain 2d8 hit points and may immediately remove a condition I currently suffer from or end this fury. Also, while in this fury, I may spend a spell slot before I make a melee attack. Doing so causes the attack to deal an extra 1d6 necrotic damage per level of spell slot expended, if it hits.\",\r\n\tdescriptionFull : \"You gain the power of never-ending fury. After you make a melee weapon attack, you automatically enter a special fury for 1 minute. While furious, you can't cast spells, can't verbally communicate, and are immune to the charmed and frightened conditions. Each time you deal damage, you regain 2d8 hit points and may immediately remove a condition you currently suffer from or end this fury. Additionally, while in this fury, you may spend a spell slot before you make a melee attack. Doing so causes the attack to deal an extra 3 (1d6) necrotic damage per level of spell slot expended, if the attack hits. Once used you may not use this fury again until you finish a short or long rest.\",\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tsavetxt : { text : [\"Immune to charmed and frightened in fury\"] }\r\n}\r\nMagicItemsList[\"infernal amulet\"] = {\r\n\tname : \"Infernal Amulet\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"While wearing this amulet, I can use it as a spellcasting focus for my spells, and it grants a +2 bonus to my spell save DC and spell attack bonus. It is cursed and corrupting. I'm unwilling to part with it and require Remove Curse to unattune to it. It gives me disadvantage on Strength saving throws and Strenght checks.\",\r\n\tdescriptionFull : \"While wearing this amulet, you can use it as a spellcasting focus for your spells, and it grants a +2 bonus to your spell save DC and spell attack bonus.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this amulet while attuned to it and you wear it always. While wearing the amulet you have disadvantage on Strength saving throws and Strength checks. Only the Remove Curse spell allows you to remove the item and end attunement.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"infernal amulet\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"infernal amulet\") },\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type != \"prepare\") return 2;\r\n\t\t\t},\r\n\t\t\t\"While wearing the Infernal Amulet my spell save DC and spell attack bonus each increase by 2.\"\r\n\t\t]\r\n\t},\r\n\tadvantages : [[\"Athletics\", false], [\"Strength\", false]]\r\n}\r\nif (typePF) MagicItemsList[\"infernal amulet\"].savetxt = { text : [\"Disadv. on Str saves/checks\"] }\r\nMagicItemsList[\"infernal plate armor\"] = {\r\n\tname : \"Infernal Plate Armor\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"While wearing this armor, I gain a +2 bonus to AC. This armor is cursed and corrupting. I can't take it off or unattune to it without Remove Curse. It makes me vulnerable to the following damage types: force, lightning, psychic, radiant, and thunder.\",\r\n\tdescriptionFull : \"While wearing this armor, you gain a +2 bonus to AC.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Once you wear this armor, and are attuned to it, you can't remove it. Only the Remove Curse spell allows you to end the attunement and finally doff it. While wearing the armor, you're vulnerable to the following damage types: force, lightning, psychic, radiant, and thunder.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"infernal plate armor\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"infernal plate armor\") },\r\n\tweight : 65,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*infernal)(?=.*plate).*$/i,\r\n\t\tname : \"Infernal Plate Armor\",\r\n\t\tsource : [[\"CoA\", 268]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"18+2\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { text : [\"Vulnerable to force, lightning, psychic, radiant, and thunder damage\"] },\r\n}\r\nMagicItemsList[\"knife of stolen resistance\"] = {\r\n\tname : \"Knife of Stolen Resistance\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"As an action once per long rest, I can use this knife to carve a single infernal rune into the flesh of an unconscious Beast, Celestial, Dragon, Fey, or Giant. Over the next 10 minutes the creature dies in agony, only Wish can stop this. If the creature has any resistances or immunities, I gain those while its dying.\",\r\n\tdescriptionFull : \"Using an action, you carve a single infernal rune into the flesh of an unconscious Beast, Celestial, Dragon, Fey, or Giant with this knife. Over the next 10 minutes the creature dies an agonizing death that can't be prevented short of the Wish spell. If the creature has any resistances or immunities, you gain those resistances and immunities until the creature dies or a Wish spell is used to save the creature. The knife's power can't be used again until you finish a long rest.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*knife)(?=.*stolen)(?=.*resistance).*$/i,\r\n\t\tname : \"Knife of Stolen Resistance\",\r\n\t\tsource : [[\"CoA\", 268]],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ring of collecting\"] = {\r\n\tname : \"Ring of Collecting\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"ring\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action once per dawn, I can use this ring to cast Tiny Hut. As a bonus action, I can disintegrate an up to Medium sized, nonmagical piece of art within 60 ft. That art now appears inside the tiny hut, vanishing forever if removed from it. For every 1000 gp of art added, the tiny hut get +1 ft radius and lasts +1 hour.\",\r\n\tdescriptionLong : \"As an action once per dawn, I can use this ring to cast Leomund's Tiny Hut. As a bonus action, I can use this ring to disintegrate an up to Medium sized, nonmagical piece of art (drawing, painting, or sculpture) within 60 ft. That art now appears inside the tiny hut, for me to appreciate whenever I desire. If I try to remove this art from the tiny hut, it vanishes forever. I can steadily improve this space, but only by denying such beauty from the rest of the world. For every 1000 gp of art acquired, the tiny hut increases in size by adding +1 ft to its radius and lasts +1 hour.\",\r\n\tdescriptionFull : \"While wearing this ring you can use it to cast the Leomund's Tiny Hut spell as an action. Once this property is used, it can't be used again until the next dawn. Additionally, as a bonus action, you can use the ring to disintegrate any nonmagical piece of art (drawing, painting, or sculpture) within 60 feet that is no larger than Medium-sized. That art now appears inside the tiny hut, for you to appreciate whenever you desire. If you try to remove this art from the tiny hut, it vanishes forever. You can steadily improve this space, but only by denying such beauty to the rest of the world. For every 1,000 gp of art acquired, the tiny hut increases in size by adding another foot to its radius and lasts one additional hour.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"leomund's tiny hut\"],\r\n\t\tselection : [\"leomund's tiny hut\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"leomund's tiny hut\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tduration : \"8h+1h/1k gp\",\r\n\t\t\tdescription : \"10ft+1ft/1000 gp rad immobile dome of force; 9 Medium crea; blocks magic; ends if I leave; see book\",\r\n\t\t\tchanges : \"Using the Ring of Collecting, I can cast Leomund's Tiny Hut as an action instead of taking 1 minute. Once this property is used, it can't be used again until the next dawn. For every 1000 gp of art acquired, the tiny hut increases in size by adding +1 ft to its radius and lasts +1 hour.\"\r\n\t\t}\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Leomund's Tiny Hut\",\r\n\taction : [[\"bonus action\", \" (steal art)\"]]\r\n}\r\nMagicItemsList[\"ring of the copycat\"] = {\r\n\tname : \"Ring of the Copycat\",\r\n\tsource : [[\"CoA\", 268]],\r\n\ttype : \"ring\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"As a reaction when an ally within 60 ft casts a spell, I can cast it as well as long as I can't normally cast it and it requires 10 gp or less material components. The cloned spell uses the original caster's abilities, originates from me and I choose its targets, but my ally can't cast this spell again until they finish a long rest.\",\r\n\tdescriptionFull : \"You gain the ability to channel energy from allies to cast spells, even if you normally can't. When an ally within 60 feet of you casts a spell that you normally can't cast and that requires 10 gp or fewer in material components, you may use a reaction to cast that spell. When cast in this way, the spell is cast using your ally's spellcasting ability, spell save DC, and spell attack bonus, as needed. You decide this cloned spell's target, as specified in the spell's description, and the spell originates from you. After you use this ability, your ally can't cast this spell again until they finish a long rest.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n}\r\nMagicItemsList[\"ring of treachery\"] = {\r\n\tname : \"Ring of Treachery\",\r\n\tsource : [[\"CoA\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This ring has 3 charges, which are restored whenever I finish a long rest. As a reaction when I am damaged, I can expend one charge to transfer that damage to a random creature (allies included) within 60 ft of me.\",\r\n\tdescriptionFull : \"This ring has 3 charges. While wearing this ring, when you're damaged, you may use a reaction to expend a charge and transfer that damage to a random creature (which could include an ally) within 60 feet. All charges are restored when you finish a long rest.\",\r\n\taction : [[\"reaction\", \" (when damaged)\"]],\r\n\tusages : 3\r\n}\r\nMagicItemsList[\"sage's mirror\"] = {\r\n\tname : \"Sage's Mirror\",\r\n\tsource : [[\"CoA\", 269]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This mirror has 3 charges, regaining all at dusk. As an action, I can expend 1 charge to cast either Find the Path or Legend Lore. With each use, it is apparent that the information gleaned from the mirror comes from a chamber in the Nine Hells where sages and scholars are tortured for the answers to each question.\",\r\n\tdescriptionFull : \"This item has 3 charges and regains all charges at dusk. You can use an action and expend 1 of the mirror's charges to cast one of the following spells:\"+\r\n\t\"\\n \\u2022 Find the Path\"+\r\n\t\"\\n \\u2022 Legend Lore\"+\r\n\t\"\\n   With each use, it is apparent that the information gleaned from the mirror comes from a chamber in the Nine Hells where sages and scholars are tortured for the answers to each question.\",\r\n\tusages : 3,\r\n\trecovery : \"Dusk\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"find the path\", \"legend lore\"],\r\n\t\tselection : [\"find the path\", \"legend lore\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"find the path\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Sage's Mirror, I can cast Find the Path as an action when I expend one of its charges.\"\r\n\t\t},\r\n\t\t\"legend lore\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Sage's Mirror, I can cast Legend Lore as an action when I expend one of its charges.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"skull of selfish knowledge\"] = {\r\n\tname : \"Skull of Selfish Knowledge\",\r\n\tsource : [[\"CoA\", 269]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can make this magical skull devour a nonmagical book, map, or scroll. Once devoured, the learning is forever available to me, but I can never write the information down or communicate it to others. It is for me alone.\",\r\n\tdescriptionFull : \"You may use an action to make the magical skull devour a nonmagical book, map, or scroll. Once devoured the learning is forever available to you, but you can never write the information down or communicate it to others. It is for you alone.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"stygian spear\"] = {\r\n\tname : \"Stygian Spear\",\r\n\tsource : [[\"CoA\", 270]],\r\n\ttype : \"weapon (spear or javelin)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"This +2 weapon deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\r\n\tdescriptionFull : \"You have a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. In addition, you have disadvantage on attack rolls made with weapons other than this one.\"+\r\n\t\"\\n   Whenever you roll a 1 on an attack roll using this weapon, your target changes to your closest ally.\"+\r\n\t\"\\n   If there are multiple allies, randomly determine which is the target. Make a new attack roll with advantage against your ally. If the attack hits, in addition to the standard damage you deal an extra 2d6 poison damage. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"stygian spear\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"stygian spear\") },\r\n\tchoices : [\"Javelin\", \"Spear\"],\r\n\t\"javelin\" : {\r\n\t\tname : \"Stygian Javelin\",\r\n\t\tdescription : \"This +2 javelin deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\r\n\t\tdescriptionLong : \"I have a +2 bonus to attack and damage rolls made with this magic javelin. When I throw it, it deals one extra die of damage on a hit and it flies back to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. Whenever I roll a 1 on an attack roll using this weapon, I instead attack my closest ally. I make a new attack roll with advantage against my ally and if it hits, this weapon deals an extra +2d6 poison damage. If there are multiple allies, randomly determine the target.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"javelin\",\r\n\t\t\tregExpSearch : /^(?=.*stygian)(?=.*javelin).*$/i,\r\n\t\t\tname : \"Stygian Javelin\",\r\n\t\t\tsource : [[\"CoA\", 270]],\r\n\t\t\tdescription : \"Returning, thrown; Thrown: +1d6 damage; On 1: adv. attack ally \\u0026 +2d6 poison damage\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tweight : 2\r\n\t},\r\n\t\"spear\" : {\r\n\t\tname : \"Stygian\\u200A Spear\",\r\n\t\tdescription : \"This +2 spear deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\r\n\t\tdescriptionLong : \"I have a +2 bonus to attack and damage rolls made with this magic spear. When I throw it, it deals one extra die of damage on a hit and it flies back to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. Whenever I roll a 1 on an attack roll using this weapon, I instead attack my closest ally. I make a new attack roll with advantage against my ally and if it hits, this weapon deals an extra +2d6 poison damage. If there are multiple allies, randomly determine the target.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*stygian)(?=.*spear).*$/i,\r\n\t\t\tname : \"Stygian Spear\",\r\n\t\t\tsource : [[\"CoA\", 270]],\r\n\t\t\tdescription : \"Returning, thrown, versatile (1d8); Thrown: +1d6 damage; On 1: adv. attack ally \\u0026 +2d6 poison damage\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tweight : 3\r\n\t}\r\n}\r\nMagicItemsList[\"sword of retribution\"] = {\r\n\tname : \"Sword of Retribution\",\r\n\tnameTest : \"of Retribution\",\r\n\tsource : [[\"CoA\", 270]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tcursed: true,\r\n\tdescription : \"Damage from this +3 sword can be regained only through resting. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. After a long rest, I must make a DC 11 Con save or only get the benefits of a short rest due to nightmares.\",\r\n\tdescriptionLong : \"I gain a +3 bonus to attack and damage rolls made with this sword. Hit points lost to this weapon's damage can be regained only through a short or long rest, rather than by regeneration, magic, or any other means. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. When I sleep, I experience nightmares of the past of the vengeful spirit possessing the sword, culminating in its death. After a long rest, I must make a DC 11 Constitution saving throw or only gain the benefits of a short rest.\",\r\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this sword. Hit points lost to this weapon's damage can be regained only through a short or long rest, rather than by regeneration, magic, or any other means.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. While attuned to this weapon, you also have disadvantage on attack rolls made with weapons other than this one.\"+\r\n\t\"\\n   The vengeful spirit possessing the sword shares its history and lust for vengeance with the wielder. After each successful long rest, you experience nightmares of the spirit's past, culminating in its death. When you wake, you must make a DC 11 Constitution saving throw. On a failed save, you only gain the benefits of a short rest. Only the Remove Curse spell allows you to end attunement to this item.\"+\r\n\tCoA_Corruption.description,\r\n\teval :       function() { CoA_Corruption.process(true,  \"sword of retribution\") },\r\n\tremoveeval : function() { CoA_Corruption.process(false, \"sword of retribution\") },\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of retribution/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Only rest heals this damage; Cursed';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Retribution\" in the name of a sword, it will be treated as the magic weapon Sword of Retribution. It gives a +3 bonus to attack and damage. Damage it deals can\\'t be healed except by resting, and it also bears a curse.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of retribution/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nvar CoA_VialOfGreed = [\r\n\t\"This small glass vial can stockpile resources for use in the future. Once stored, resources last for 1 century before vanishing. As an action you make the vial store any number of the following resources, which are magically consumed and converted into a violet-colored liquid:\",\r\n\t\"\\u2022 Up to 31 days of food and/or drink. The flavors are lost, instead becoming tasteless.\",\r\n\t\"\\u2022 Up to 7 days of alcohol. The flavors are lost, instead becoming tasteless.\",\r\n\t\"\\u2022 Up to 5 magic scrolls that affect a single creature. The target of the spell is you, and if the spell requires concentration, you can concentrate.\",\r\n\t\"\\u2022 Up to 5 magic potions. No more than 2 duplicate potions can be stored at a time.\",\r\n\t\"You may have more than one kind of resource in the vial, up to the limits expressed above. You can use a bonus action to consume one day of food (or alcohol) or activate one scroll or magic potion. If activating a magic scroll, the effects of that scroll must end before you can activate another scroll from the Vial of Greed.\"\r\n];\r\nMagicItemsList[\"vial of greed\"] = {\r\n\tname : \"Vial of Greed\",\r\n\tsource : [[\"CoA\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can have this small glass vial magically store: food and drink (up to 31 days), alcohol (up to 7 days), magic scrolls that affect 1 creature (up to 5), and magic potions (up to 5, no 3 can be the same). As a bonus action, I can use or consume one of those stored, but the food, drink and alcohol is tasteless.\",\r\n\tdescriptionFull : CoA_VialOfGreed.join(\"\\n   \"),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Vial of Greed Features\",\r\n\t\tnote : desc(CoA_VialOfGreed).replace(/is you/ig, \"is me\").replace(/you /ig, \"I \")\r\n\t}],\r\n\taction : [\r\n\t\t[\"action\", \"Store in Vial of Greed\"],\r\n\t\t[\"bonus action\", \"Use from Vial of Greed\"]\r\n\t]\r\n}\r\nMagicItemsList[\"weapon of agonizing paralysis\"] = {\r\n\tname : \"Weapon of Agonizing Paralysis\",\r\n\tnameTest : \"of Agonizing Paralysis\",\r\n\tsource : [[\"CoA\", 271]],\r\n\ttype : \"weapon (any melee)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon has a +3 bonus to hit and damage. When it reduces a creature to 0 hp, they don't die but are instead healed to 1 hp and paralyzed. While paralyzed, infernal runes appear as if carved into their flesh and at the start of each of their turns they suffer immense pain and gain a level of exhaustion.\",\r\n\tdescriptionFull : \"You have a +3 bonus to attack and damage rolls made with this magic weapon. When this weapon reduces a creature to 0 hit points, the creature doesn't die. Instead, infernal runes appear as if carved into their flesh and they're healed to 1 hit point. They now have the paralyzed condition until the condition is removed by a Lesser Restoration spell or similar magic. When the condition is removed, the runes disappear. At the start of each of their turns while they're paralyzed, the creature suffers immense pain and gains a level of exhaustion.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /melee/i.test(inObj.range);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /^(?=.*agonizing)(?=.*paralysis).*$/i.test(v.baseWeaponName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'At 0 hp: paralyzed not dead';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Agonizing Paralysis\" in a the name of a melee weapon, it will be treated as the magic weapon Weapon of Agonizing Paralysis. It has +3 to hit and damage and when it brings a target to 0 hp, they are healed to 1 hp and paralyzed.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /^(?=.*agonizing)(?=.*paralysis).*$/i.test(v.baseWeaponName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\n\n// pub_20231114_BoMT.js\n// This file adds the Character Options content from the \"The Book of Many Things\" book (from the \"The Deck of Many Things\" set) to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"BoMT\"] = {\n\tname : \"The Book of Many Things\",\n\tabbreviation : \"BoMT\",\n\tabbreviationSpellsheet : \"MT\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://dndstore.wizards.com/us/en/product/865604/the-deck-of-many-things-digital-plus-physical-bundle\",\n\tdate : \"2023/11/14\"\n};\n\nBackgroundList[\"rewarded\"] = {\n\tregExpSearch : /rewarded/i,\n\tname : \"Rewarded\",\n\tsource : [[\"BoMT\", 57]],\n\tskills : [\"Insight\", \"Persuasion\"],\n\tgold : 18,\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tequipleft : [\n\t\t[\"Paper, sheets of\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen\", \"\", \"\"],\n\t\t[\"Gaming set matching my proficiency\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Signet ring\", \"\", \"\"],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Fortune's Favor\",\n\ttrait : [\n\t\t\"A safe home is a foundation on which anything else can be built. (Key, Throne)\",\n\t\t\"I was elevated to heights I could never otherwise attain, and I won't waste my fortune. (Star, Sun)\",\n\t\t\"I try to be a source of inspiration and joy to others. Life is never as bad as you think! (Euryale, Jester)\",\n\t\t\"Courage and boldness can carry the day when all else fails. (Comet, Knight)\",\n\t\t\"My good fortune means I can lift others up as well. (Gem, Moon)\",\n\t\t\"Having the right answers is the first step to solving any problem, no matter how dire. (Fates, Sage)\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Perfumed scarf from admirer\",\n\t\t\"Crystal glows as candle\",\n\t\t\"Letter from far-off influential\",\n\t\t\"Symbol with unknown meaning\",\n\t\t\"Ever-crisp playing card\",\n\t\t\"Half a medallion\"\n\t]\n};\nBackgroundFeatureList[\"fortune's favor\"] = {\n\tdescription : \"I have unexpected good fortune in life, caused by something like a genie who granted me wishes, extraordinary luck during a game, me honing my skills to endure a supernatural trial, or some other force that transformed my life. This boon is reflected in my choice of one free feat: Lucky, Magic Initiate, or Skilled.\",\n\tsource : [[\"BoMT\", 57]],\n\tfeatsAdd: [{\n\t\toptions: [\n\t\t\t{ key: 'lucky' },\n\t\t\t{ key: 'magic initiate' },\n\t\t\t{ key: 'skilled' },\n\t\t],\n\t}],\n};\n\nBackgroundList[\"ruined\"] = {\n\tregExpSearch : /ruined/i,\n\tname : \"Ruined\",\n\tsource : [[\"BoMT\", 58]],\n\tskills : [\"Stealth\", \"Survival\"],\n\tgold : 13,\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tequipleft : [\n\t\t[\"Cracked hourglass\", \"\", 1],\n\t\t[\"Rusty manacles\", \"\", 6],\n\t\t[\"Bottle, glass (half-empty)\", \"\", 2],\n\t\t[\"Hunting trap\", \"\", 25],\n\t\t[\"Gaming set matching my proficiency\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Still Standing\",\n\ttrait : [\n\t\t\"I've changed from my past, and I work to live up to my new path. (Balance, Throne)\",\n\t\t\"Every moment is a gift I refuse to squander. (Euryale, Skull)\",\n\t\t\"Now that I've overcome having nothing, I can survive anything. (Fool, Ruin, Talons)\",\n\t\t\"I know enemies are set against me, and I always prepare for the worst. (Flames, Rogue)\",\n\t\t\"I interpret every event as part of a larger pattern I just haven't worked out yet. (Puzzle, Star)\",\n\t\t\"I must make up for so much time I've already lost. (Donjon, Void)\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Rusted scrap of family heirloom\",\n\t\t\"Ancient land deed, lost in obscurity\",\n\t\t\"Bauble once imbued with powerful magic\",\n\t\t\"Battered, pierced playing card\",\n\t\t\"Yellowed whispering humanoid tooth\",\n\t\t\"Keepsake from friend turned enemy\"\n\t]\n};\nBackgroundFeatureList[\"still standing\"] = {\n\tdescription : \"I have weathered ruinous misfortune in my life and I possess hidden reserves because of this. Possibly I've had to keep my senses sharp, had to redouble my efforts to reclaim what is mine, had to stoically persevered through it, or experienced something else transformative. How I've dealt with this is reflected in my choice of one free feat: Alert, Skilled, or Tough.\",\n\tsource : [[\"BoMT\", 58]],\n\tfeatsAdd: [{\n\t\toptions: [\n\t\t\t{ key: 'alert' },\n\t\t\t{ key: 'skilled' },\n\t\t\t{ key: 'tough' },\n\t\t],\n\t}],\n};\n\n\nFeatsList[\"cartomancer\"] = {\n\tname : \"Cartomancer\",\n\tsource : [[\"BoMT\", 49]],\n\tdescription : 'I can use a card deck as a spellcasting focus. I learn and can do stage magic with Prestidigitation. I conceal its components as card tricks when doing so. When I finish a long rest, I can store a spell from my class\\' spell list into a card, see \"Hidden Ace\" notes.',\n\tdescriptionFull : \"You have learned to channel your magic through a deck of cards. You can use a card deck as your spellcasting focus, and you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Card Tricks\") + \". You learn the Prestidigitation cantrip and can use it to create illusions that duplicate the effects of stage magic. When you use Prestidigitation in this way, you can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\"+\n\t\"\\n   \" + toUni(\"Hidden Ace\") + \". When you finish a long rest, you can choose one spell from your class's spell list and imbue that spell into a card. The chosen spell must have a casting time of 1 action, and it must be a level for which you have spell slots. The card remains imbued with this spell for 8 hours. While the card is imbued with the spell, you can use a bonus action to flourish the card and cast the spell within. The card then immediately loses its magic.\",\n\tprerequisite : \"4th-level, Spellcasting feature\",\n\tprereqeval : function(v) { return v.characterLevel >= 4 && v.isSpellcastingClass; },\n\tspellcastingBonus : [{\n\t\tname : \"Cartomancer\",\n\t\tspells : [\"prestidigitation\"],\n\t\tselection : [\"prestidigitation\"],\n\t}],\n\tspellChanges : {\n\t\t\"prestidigitation\" : {\n\t\t\tcomponents : \"V,S*\",\n\t\t\tcompMaterial : \"When I duplicate the effects of stage magic, I can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\",\n\t\t\tdescription : \"Harmless sensation, illusory image, snuff light, clean/soil/chill/warm/flavor, stage magic (hide comp)\",\n\t\t\tchanges : \"When I duplicate the effects of stage magic, I can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\"\n\t\t}\n\t},\n\taction : [[\"bonus action\", \"Hidden Ace (use imbued card)\"]],\n\ttoNotesPage : [{\n\t\tname : \"Hidden Ace\",\n\t\tpage3notes : true,\n\t\tnote : [\n\t\t\t\"When I finish a long rest, I can imbue a spell from my class' spell list into a card for 8 hours\",\n\t\t\t\"The spell must have a casting time of 1 action and be a level for which I have spell slots\",\n\t\t\t\"As a bonus action, I can flourish the card and cast the spell within; It then loses its magic\"\n\t\t]\n\t}]\n};\n\n\nvar BoMT = {\n\ttoDescrFull : function (sDescr) {\n\t\tif (typeof sDescr !== \"string\") sDescr = sDescr.join(\"\\n   \");\n\t\treturn sDescr.replace(/\\[\\[.*?\\]\\]/g, \"$1\")\n\t\t\t.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); });\n\t},\n\tto1stPerson : function (sDescr, joinStr) {\n\t\tif (typeof sDescr === \"string\") sDescr = [sDescr];\n\t\treturn desc(sDescr, joinStr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\n\t\t\t.replace(/you aren't/ig, \"I'm not\").replace(/you were/ig, \"I was\")\n\t\t\t.replace(/you are|you're/ig, \"I am\").replace(/yours\\b/ig, \"mine\")\n\t\t\t.replace(/\\byou\\b/ig, \"I\")\n\t\t\t.replace(/(aid|freeing|around|resurrected|beneath|between|\\w\\ws|by|of|to|for|on) I\\b/ig, \"$1 me\")\n\t\t\t.replace(/(toward) I\\b/ig, \"$1s me\")\n\t\t\t.replace(/(cards|items) me\\b/ig, \"$1 I\")\n\t\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\n\t\t\t.replace(/yours\\b/g, \"mine\").replace(/Yours/g, \"Mine\")\n\t\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\n\t\t\t.replace(/\\[\\[.*?\\]\\]/g, \"\")\n\t\t\t.replace(/(\\n *|\\u2022 |\\u25C6 )>>(.*?)( \\(.*?\\))?<<\\. /g, function(a, p1, p2, p3, p4) {\n\t\t\t\tif (/\\n   /.test(p1)) {\n\t\t\t\t\treturn \"\\n\\n   \" + p2.toUpperCase() + p3.toLowerCase() + \"\\n   \";\n\t\t\t\t} else {\n\t\t\t\t\treturn p1 + p2 + p3 + \": \";\n\t\t\t\t}\n\t\t\t});\n\t},\n\t\"voidwalker armor\" : \"This armor is cursed, and attuning to it extends the curse to you. As long as you remain cursed, you're unwilling to part with the armor. Taking it off fails to end the curse. While cursed in this way, you feel disconnected from your body, continuously hearing whispers that call for you to join them. Whenever you finish a long rest while cursed, you must make a DC 11 Charisma saving throw. On a failed save, your soul is drawn from your body and trapped in an object on a different plane of existence. The object and location of this object are chosen by the DM[[ (but might be the House of Cards; see chapter 18)]]. While your soul is trapped in this way, your body is inert and doesn't age or require sustenance. Destroying the object frees your soul; otherwise, only a Wish spell can restore your soul to your body.\",\n\t\"telescopic transporter\" : \"This enormous telescope allows you to view distant celestial objects, including stars, Wildspace systems, and Astral Sea phenomena like the cities of deities or the petrified husks of dead gods.\"+\n\t\t\"\\n   After spending 1 hour calibrating the telescope, you can attempt to travel to the planet or celestial body at which the telescope is currently pointed. At the end of the hour, you make a DC 17 Intelligence (Arcana) check. On a successful check, you and eight other willing creatures touching the telescope, along with everything all travelers are wearing and carrying, safely teleport to unoccupied spaces at the intended destination. On a failed check, a mishap occurs instead. The DM rolls on the table below to determine the mishap or chooses a mishap that's good for the campaign.\"+\n\t\t\"\\n\\nd6\\tMishap\"+\n\t\t\"\\n 1\\tThe travelers appear adrift in the Astral Sea.\"+\n\t\t\"\\n 2\\tThe travelers appear on a different plane of existence, determined randomly or chosen by the DM.\"+\n\t\t\"\\n 3\\tExcess cosmic energy overloads the telescope, causing it to explode. Each creature within 60 feet of the telescope takes 8d6 necrotic damage. Any Humanoid who survives this damage is transformed into a different kind of creature, as if it had been subject to the Reincarnate spell.\"+\n\t\t\"\\n 4\\tA creature from the Astral Sea (such as a githyanki knight) appears within 60 feet of the telescope. The DM decides its attitude.\"+\n\t\t\"\\n 5\\tThe travelers appear on a different planet or celestial body in the Wildspace system nearest to their target destination.\"+\n\t\t\"\\n 6\\tThe travelers arrive at their intended destination, but they each appear coated in harmless slime.\",\n\t\"sage's signet\" : {\n\t\t\"augury\" : {\n\t\t\ttime : \"1 a\",\n\t\t\tchanges : \"Using the Sage's Signet I can cast Augury once per dawn as an action.\"\n\t\t}\n\t},\n\t\"shrieking greaves\" : \"The greaves are cursed, and becoming attuned to them extends the curse to you. You can't remove the greaves or end your attunement to them until you are targeted by a Remove Curse spell or similar magic.\"+\n\t\"\\n   You have disadvantage on saving throws against the frightened condition. Whenever you start your turn frightened, the greaves release an ear-piercing scream. You and each creature within 10 feet of you must make a DC 15 Constitution saving throw, taking 2d8 thunder damage on a failed save, or half as much damage on a successful one.\",\n\t\"spindle of fate\" : [\n\t\t\">>Battle Foreknowledge<<. When you roll initiative, you can expend 1 charge to add or subtract your proficiency bonus from the total roll.\",\n\t\t\">>Doom Foretold<<. As an action, you can expend 2 charges to target a creature within 30 feet of yourself and invoke that creature's doom. While the target is on the same plane of existence as you are, you can sense the direction to its location, and you know the direction of its movement if it's in motion. Additionally, once per turn when you deal damage to the doomed creature, you can roll 1d6 and add the number rolled to the damage roll. These benefits persist for 1 hour or until you target another creature with this effect.\",\n\t\t\">>Twist of Fate<<. When a creature within 60 feet of you makes a saving throw or an attack roll, you can use your reaction to expend 3 charges and alter the outcome, turning a failed saving throw into a successful one, a missed attack roll into a hit, or vice versa.\"\n\t],\n\t\"starshot crossbow\" : [\n\t\t\"This crossbow is crafted from blackened wood, and its limbs bear pearl inlays depicting constellations. You ignore the loading property with this crossbow. If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the weapon vanishes the instant after it hits or misses a target. The crossbow has 3 charges and regains 1d3 expended charges daily at dawn.\",\n\t\t\">>Constellations<<. The crossbow is decorated with three constellations. As a bonus action, you can tap one of the constellations to invoke it, expending 1 charge and producing one of the following effects:\",\n\t\t\" \\u2022 >>Balance<<. The next time you hit a creature with a ranged attack roll using this crossbow before the end of your next turn, you or another creature of your choice within 30 feet of you can regain hit points equal to 1d8 plus your proficiency bonus.\",\n\t\t\" \\u2022 >>Flames<<. Until the end of your next turn, when you hit a creature with a ranged attack roll using this crossbow, the attack deals an additional 2d8 fire damage.\",\n\t\t\" \\u2022 >>Rogue<<. Until the end of your next turn, you have the invisible condition, and anything you are wearing or carrying is also invisible.\"\n\t],\n\t\"deck of miscellany\" : [\n\t\t\"Playing Card\\t\\tItem(s)\",\n\t\t\"  [3\\u2666] Three of diamonds  \\tWooden abacus\",\n\t\t\"  [4\\u2666] Four of diamonds  \\tFour vials of perfume\",\n\t\t\"  [5\\u2666] Five of diamonds  \\t5 days' worth of rations\",\n\t\t\"  [6\\u2666] Six of diamonds\\t\\tIron pot\",\n\t\t\"  [7\\u2666] Seven of diamonds  \\tDisguise kit\",\n\t\t\"  [8\\u2666] Eight of diamonds  \\tWindow (up to 5 feet wide and 5 feet high), which you can place on a vertical surface up to 5 feet thick and which allows you to look through the surface\",\n\t\t\"  [9\\u2666] Nine of diamonds  \\tManacles\",\n\t\t\"[10\\u2666] Ten of diamonds  \\tTen sheets of parchment\",\n\t\t\"  [3\\u2665] Three of hearts\\t\\tThree daggers\",\n\t\t\"  [4\\u2665] Four of hearts\\t\\tFour flasks of oil\",\n\t\t\"  [5\\u2665] Five of hearts\\t\\tFive silk robes\",\n\t\t\"  [6\\u2665] Six of hearts\\t\\tForgery kit\",\n\t\t\"  [7\\u2665] Seven of hearts\\t\\tQuarterstaff\",\n\t\t\"  [8\\u2665] Eight of hearts\\t\\tFishing tackle\",\n\t\t\"  [9\\u2665] Nine of hearts\\t\\tLeather pouch containing 18 gp\",\n\t\t\"[10\\u2665] Ten of hearts\\t\\t10 crossbow bolt\",\n\t\t\"  [3\\u2663] Three of clubs\\t\\tThree books, written in Common, about random historical events\",\n\t\t\"  [4\\u2663] Four of clubs\\t\\tCanvas tent\",\n\t\t\"  [5\\u2663] Five of clubs\\t\\t50 feet of coiled silk rope\",\n\t\t\"  [6\\u2663] Six of clubs\\t\\tTwo crowbars\",\n\t\t\"  [7\\u2663] Seven of clubs\\t\\tHealer's kit\",\n\t\t\"  [8\\u2663] Eight of clubs\\t\\tEight gems worth 5 gp each\",\n\t\t\"  [9\\u2663] Nine of clubs\\t\\tLamp\",\n\t\t\"[10\\u2663] Ten of clubs\\t\\t10 feet of iron chain\",\n\t\t\"  [3\\u2660] Three of spades\\t\\tThree spears\",\n\t\t\"  [4\\u2660] Four of spades\\t\\tSteel mirror\",\n\t\t\"  [5\\u2660] Five of spades\\t\\t15-foot wooden pole\",\n\t\t\"  [6\\u2660] Six of spades\\t\\tBurlap sack\",\n\t\t\"  [7\\u2660] Seven of spades\\t\\tTwo sets of fine clothes\",\n\t\t\"  [8\\u2660] Eight of spades\\t\\tShovel\",\n\t\t\"  [9\\u2660] Nine of spades\\t\\tLight hammer\",\n\t\t\"[10\\u2660] Ten of spades\\t\\tTen arrows\"\n\t],\n\t\"deck of many more things\" : {\n\t\tfeatures : [\n\t\t\t\"Like the Deck of Many Things, the Deck of Many More Things manifests differently on various worlds. While it can include fewer or different cards, it frequently appears with a Deck of Many Things as part of a combined deck of sixty-six illuminated cards. The combined deck is usually protected by a box or pouch. The forty-four cards of the Deck of Many More Things bear similar imagery to those in the Deck of Many Things and have potent magical effects, which are detailed later in this description. Notably, cards from the Deck of Many More Things are more likely to be beneficial, though about a third of them are still dangerous.\",\n\t\t\t\"Before you draw a card, you must declare how many cards you intend to draw and then draw them randomly. Unless a card allows you to draw additional cards, any cards drawn exceeding this number have no effect.\",\n\t\t\t\"As soon as you draw a card, its magic takes effect. You must draw each card you declared no more than 1 hour after the previous draw. Unless a card states otherwise, if you fail to draw the chosen number, the remaining number of cards fly from the deck and take effect simultaneously.\",\n\t\t\t\"Unless it is the Fool or the Jester card, a drawn card immediately takes effect, fades from existence, and reappears in the deck, making it possible to draw the same card multiple times.\",\n\t\t\t\"The DM can use the physical cards provided in The Deck of Many Things card set to build a combined Deck of Many Things and Deck of Many More Things, including whichever cards they desire. Alternatively, roll on the Deck of Many More Things table below to randomly determine what cards are drawn.\",\n\t\t\t\"\\n1d100\\tCard\"+\t\"\\t\\t1d100\\tCard\",\n\t\t\t\"01\\tAberration\"+\t\"\\t\\t   34\\tMine\",\n\t\t\t\"02\\tBalance*\"+\t\t\"\\t\\t   35\\tMonstrosity\",\n\t\t\t\"03\\tBeast\"+\t\t\"\\t\\t   36\\tMoon*\",\n\t\t\t\"04\\tBook\"+\t\t\t\"\\t\\t   37\\tOoze\",\n\t\t\t\"05\\tBridge\"+\t\t\"\\t\\t   38\\tPath\",\n\t\t\t\"06\\tCampfire\"+\t\t\"\\t\\t   39\\tPit\",\n\t\t\t\"07\\tCavern\"+\t\t\"\\t\\t   40\\tPlant\",\n\t\t\t\"08\\tCelestial\"+\t\"\\t\\t   41\\tPriest\",\n\t\t\t\"09\\tComet*\"+\t\t\"\\t\\t   42\\tPrisoner\",\n\t\t\t\"10\\tConstruct\"+\t\"\\t\\t   43\\tPuzzle*\",\n\t\t\t\"11\\tCorpse\"+\t\t\"\\t\\t   44\\tRing\",\n\t\t\t\"12\\tCrossroads\"+\t\"\\t\\t   45\\tRogue*\",\n\t\t\t\"13\\tDonjon*\"+\t\t\"\\t\\t   46\\tRuin*\",\n\t\t\t\"14\\tDoor\"+\t\t\t\"\\t\\t   47\\tSage*\",\n\t\t\t\"15\\tDragon\"+\t\t\"\\t\\t   48\\tShield\",\n\t\t\t\"16\\tElemental\"+\t\"\\t\\t   49\\tShip\",\n\t\t\t\"17\\tEuryale*\"+\t\t\"\\t\\t   50\\tSkull*\",\n\t\t\t\"18\\tExpert\"+\t\t\"\\t\\t   51\\tStaff\",\n\t\t\t\"19\\tFates*\"+\t\t\"\\t\\t   52\\tStairway\",\n\t\t\t\"20\\tFey\"+\t\t\t\"\\t\\t   53\\tStar*\",\n\t\t\t\"21\\tFiend\"+\t\t\"\\t\\t   54\\tStatue\",\n\t\t\t\"22\\tFlames*\"+\t\t\"\\t\\t   55\\tSun*\",\n\t\t\t\"23\\tFool*\"+\t\t\"\\t\\t   56\\tTalons*\",\n\t\t\t\"24\\tGem*\"+\t\t\t\"\\t\\t   57\\tTavern\",\n\t\t\t\"25\\tGiant\"+\t\t\"\\t\\t   58\\tTemple\",\n\t\t\t\"26\\tHumanoid\"+\t\t\"\\t\\t   59\\tThrone*\",\n\t\t\t\"27\\tJester*\"+\t\t\"\\t\\t   60\\tTomb\",\n\t\t\t\"28\\tKey*\"+\t\t\t\"\\t\\t   61\\tTower\",\n\t\t\t\"29\\tKnight*\"+\t\t\"\\t\\t   62\\tTree\",\n\t\t\t\"30\\tLance\"+\t\t\"\\t\\t   63\\tUndead\",\n\t\t\t\"31\\tMage\"+\t\t\t\"\\t\\t   64\\tVoid*\",\n\t\t\t\"32\\tMap\"+\t\t\t\"\\t\\t   65\\tWarrior\",\n\t\t\t\"33\\tMaze\"+\t\t\t\"\\t\\t   66\\tWell\",\n\t\t\t\"67-00\\tRoll again\\n\",\n\t\t\t\"* Found in the Deck of Many Things as depicted in the Dungeon Master's Guide\"\n\t\t],\n\t\tcards : [\n\t\t\t\">>Aberration<<. You gain telepathy within a range of 90 feet.\",\n\t\t\t\">>Beast<<. You immediately transform into a random Beast with a CR of 5 or lower. Your game statistics—including your ability scores, hit points, and possible actions—are replaced by the Beast's game statistics, and any nonmagical equipment you're wearing or carrying melds into your new form and can't be used. Any magic items you're carrying drop in an unoccupied space within 5 feet of your new form.\"+\n\t\t\t\"\\n   You remain transformed in this way for 2d12 days; nothing can alter your form while you're under the effects of this card, but the Wish spell can end the transformation early. When you revert to your normal form, you return to the same state you were in when you initially transformed.\",\n\t\t\t\">>Book<<. You gain the ability to speak, read, and write 1d6 + 2 languages of your choice.\",\n\t\t\t\">>Bridge<<. You gain the ability to cast the Time Stop spell 1d3 times. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Campfire<<. You immediately gain the benefits of finishing a long rest.\",\n\t\t\t\">>Cavern<<. You gain a climbing speed equal to your walking speed. You also gain the ability to move up, down, across vertical surfaces, and along ceilings, while leaving your hands free.\",\n\t\t\t\">>Celestial<<. You sprout a pair of softly luminescent, feathered wings from your back and gain a flying speed of 30 feet.\",\n\t\t\t\">>Construct<<. A homunculus appears in an unoccupied space within 5 feet of you. The appearance of the homunculus is determined by the DM, and the homunculus treats you as its creator.\",\n\t\t\t\">>Corpse<<. You immediately drop to 0 hit points, have the unconscious condition, and must begin making death saving throws. Spells and other magical effects that restore hit points have no effect on you until you are stabilized. If you fail three death saving throws, you die and can be resurrected only by the Wish spell.\",\n\t\t\t\">>Crossroads<<. Roll a d20. If the roll is even, you age 1d10 years. If the roll is odd, you become younger by 1d10 years, to a minimum of 1 year. This effect can be undone only by the Wish spell, divine intervention, or similar magic.\",\n\t\t\t\">>Door<<. You gain the ability to cast the Gate spell 1d4 times, requiring no material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Dragon<<. A dragon egg appears at your feet and immediately hatches into a dragon wyrmling. The type of dragon is chosen by the DM. The wyrmling views you as its parent and is staunchly loyal to you and your allies.\",\n\t\t\t\">>Elemental<<. You become immune to one of the following damage types (choose immediately upon drawing this card): acid, cold, fire, lightning, or thunder.\",\n\t\t\t\">>Expert<<. Your Dexterity score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Fey<<. A fey crossing opens into the Feywild, and you're immediately pulled through it, disappearing in a flash of rainbow-colored light. You draw no more cards.\"+\n\t\t\t\"\\n   The fey crossing appears as a shimmering fractal of light above the deck, and it remains open for 1 minute after the card is drawn. The precise location in the Feywild to which the fey crossing leads is determined by the DM.\",\n\t\t\t\">>Fiend<<. A powerful Fiend appears in a nearby unoccupied space and offers you a deal.[[ The precise nature of this deal is up to the DM, but usually the Fiend offers some material reward in exchange for you and your allies completing a task for the Fiend.]] The Fiend is indifferent to you and can be bargained with; it keeps its side of any bargain it makes, though it might twist the wording of any agreement to suit its purposes. If attacked, or if negotiations fail and you refuse the Fiend's offer, it returns to its home plane.\",\n\t\t\t\">>Giant<<. You immediately grow 2d10 inches in height, and your hit point maximum and current hit points both increase by 20.\",\n\t\t\t\">>Humanoid<<. You can immediately choose to stop drawing from the deck, regardless of how many cards you initially declared.\",\n\t\t\t\">>Lance<<. All your ability scores increase by 1, to a maximum of 20.\",\n\t\t\t\">>Mage<<. Your Intelligence score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Map<<. At any time you choose within 1 year of drawing this card, you can mentally name or describe an object or individual that is familiar to you. You immediately know the location of the object or individual, as well as the distance between you and the object or individual, even if the object or individual is on a different plane of existence. If you named an individual, you know if they are alive and any conditions they have. If you named an object, you know if it is broken or not. If you named a magic item that has charges, you know how many charges it has remaining.\",\n\t\t\t\">>Maze<<. You gain 1d3 levels of exhaustion.\",\n\t\t\t\">>Mine<<. A pile of 2d6 gems (each worth 5,000 gp) and 1d10 chunks of precious ore (each worth 2,500 gp) appears at your feet.\"\n\t\t],\n\t\tcards2 : [\n\t\t\t\">>Monstrosity<<. A Large or larger Monstrosity with a challenge rating of 10 or less (chosen by the DM) appears in an unoccupied space within 15 feet of you. The creature is hostile toward you and attacks immediately. The creature disappears when it is killed or when you are reduced to 0 hit points. If there isn't enough space for a Large or larger creature to appear, this card has no effect.\",\n\t\t\t\">>Ooze<<. A gelatinous cube immediately appears in your space and engulfs you. The gelatinous cube is hostile and remains until it is destroyed. If there isn't enough space for the gelatinous cube to appear, this card has no effect.\",\n\t\t\t\">>Path<<. Your walking speed increases by 10 feet.\",\n\t\t\t\">>Pit<<. A pit opens beneath you. You plummet 3d6 \\xD7 10 feet, take damage from the fall, and have the prone condition.\",\n\t\t\t\">>Plant<<. You gain the ability to cast Speak with Plants without using a spell slot; you must finish a long rest before you can cast it this way again. If you have spell slots of 3rd level or higher, you can cast this spell using them. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Priest<<. Your Wisdom score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Prisoner<<. Glowing chains made of magical force appear and wrap around you. You have the restrained condition until the chains are destroyed or you are freed. While you have this condition, you can't cast spells, and any magic items you're wearing or carrying have their properties suppressed. You draw no more cards. The chains are immune to damage and can't be dispelled using the Dispel Magic spell or similar magic. However, a Disintegrate spell destroys the chains instantly, freeing you. Another creature can also free you by succeeding on a DC 30 Dexterity check using thieves' tools.\",\n\t\t\t\">>Ring<<. A rare or rarer magic ring appears on your finger. If you have the attunement slots available, you're automatically attuned to the ring when it appears. The DM chooses the ring.\",\n\t\t\t\">>Shield<<. A rare or rarer suit of magic armor that you are proficient with appears in your hands. The DM chooses the armor. If you lack proficiency with any armor, your base AC instead now equals 12 + your Dexterity modifier while you aren't wearing armor.\",\n\t\t\t\">>Ship<<. You gain proficiency in three skills chosen by the DM.\",\n\t\t\t\">>Staff<<. A rare or rarer magic rod, staff, or wand appears in your hands. The DM chooses the item.\",\n\t\t\t\">>Stairway<<. You can choose to either decrease your number of declared draws by two or receive a rare or rarer wondrous item, which appears in your hands. The DM chooses the item.\",\n\t\t\t\">>Statue<<. You immediately have the petrified condition as your body is transformed into marble. The petrification lasts until you are freed with the Greater Restoration spell or similar magic.\",\n\t\t\t\">>Tavern<<. Your Charisma score increases by 2 to a maximum of 22.\",\n\t\t\t\">>Temple<<. A deity or entity of similar power becomes bound to aid you. At any point in time between drawing the card and when you die, you can use your action to call on this entity for divine intervention, and the entity is bound to answer. The parameters and nature of this intervention are chosen by the DM. If you die without having used this intervention, the deity fulfills its obligation by casting the Resurrection spell on you. Once the entity has answered your call for divine intervention or resurrected you, the entity is no longer bound to aid you.\",\n\t\t\t\">>Tomb<<. At any time you choose within 1 year of drawing this card, you can cast the True Resurrection spell once without expending a spell slot or requiring material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Tower<<. Draw two additional cards beyond your declared number of draws. The magic of these cards doesn't immediately take effect; instead, choose one of the two additional cards to keep, returning the other to the deck. The magic of the card you keep takes effect immediately thereafter.\",\n\t\t\t\">>Tree<<. Your skin immediately becomes rough, like tree bark. Your base AC now equals 15 + your Dexterity modifier while you aren't wearing armor, but you have vulnerability to fire damage. This transformation can be undone only by the Wish spell, divine intervention, or similar magic.\",\n\t\t\t\">>Undead<<. Somewhere on the Material Plane, a revenant rises. This revenant blames you for its existence and relentlessly hunts you to exact its revenge. The revenant exists until either 1 year passes, the revenant kills you, or you use a Wish spell to banish it permanently to the afterlife.\",\n\t\t\t\">>Warrior<<. Your Strength score increases by 2 to a maximum of 22.\",\n\t\t\t\">>Well<<. You learn three cantrips of your choice from any spell list.\"\n\t\t]\n\t},\n\t\"deck of wild cards\" : [\n\t\t\"This deck of heavy vellum cards hums with the magic of the Elemental Chaos.\",\n\t\t\"The magic of the deck functions only if cards are drawn at random (a deck of real-world playing cards can simulate the deck). As an action, you can draw a random card from this deck and throw it to make a ranged spell attack, using Dexterity for the attack roll. The card has a range of 30 feet. On a hit, it deals 1d4 slashing damage and imposes a magical effect determined by its suit, as detailed in the table below. The card immediately returns to the deck after it hits or misses a target.\\n\",\n\t\t\"d4\\tSuit\\tEffect\",\n\t\t\" 1\\t\\u2663 (Rods)\\tThe card explodes in a burst of fire. The target and each creature within 5 feet of it must succeed on a DC 15 Dexterity saving throw or take 2d8 fire damage.\",\n\t\t\" 2\\t\\u2666 (Coins)\\tThe card shoots streaks of lightning. The target must make a DC 15 Dexterity saving throw. On a failed save, the target has the blinded condition until the end of your next turn, and each creature within 10 feet of the target takes 1d6 lightning damage.\",\n\t\t\" 3\\t\\u2665 (Cups)\\tThe card covers the target in a thick layer of ice. The target takes 1d10 cold damage and must succeed on a DC 15 Constitution saving throw or have the restrained condition until the end of your next turn.\",\n\t\t\" 4\\t\\u2660 (Swords)\\tThe card unleashes a sharp, concussive blast. The target and each creature within 5 feet of it take 1d6 force damage and must succeed on a DC 15 Strength saving throw or have the prone condition.\"\n\t],\n\t\"deck of wonder\" : {\n\t\tfeatures : [\n\t\t\t\"Created in the image of the Deck of Many Things, this deck of ivory or vellum cards bestows an assortment of minor benefits and penalties on those who draw from it. Most (75 percent) of these decks have only thirteen cards, but the rest have twenty-two.\",\n\t\t\t\"Before you draw a card, you must declare how many cards you intend to draw, then draw them randomly. Any additional cards drawn have no effect. Unless a card states otherwise, as soon as you draw a card from the deck, its magic takes effect. You must draw each card you declared no more than 1 hour after the previous draw. If you fail to draw the chosen number, the remaining number of cards fly from the deck and take effect simultaneously.\",\n\t\t\t\"Unless it is the Mystery card, a drawn card immediately takes effect, fades from existence, and reappears in the deck, making it possible to draw the same card multiple times.\",\n\t\t\t\"You can use an altered deck of playing cards to simulate the deck, as shown in the table below.\",\n\t\t\t\"\\n1d13\\t1d22\\tPlaying Card\\t\\tCard\",\n\t\t\t\"\\t   1\\t[A\\u2666] Ace of diamonds\\t\\tChancellor*\",\n\t\t\t\"1\\t   2\\t[K\\u2666] King of diamonds\\t\\tDay\",\n\t\t\t\"2\\t   3\\t[Q\\u2666] Queen of diamonds \\tNight\",\n\t\t\t\"3\\t   4\\t[J\\u2666] Jack of diamonds\\t\\tDawn\",\n\t\t\t\"\\t   5\\t[2\\u2666] Two of diamonds\\t\\tDusk*\",\n\t\t\t\"\\t   6\\t[A\\u2665] Ace of hearts\\t\\tDestiny*\",\n\t\t\t\"4\\t   7\\t[K\\u2665] King of hearts\\t\\tCrown\",\n\t\t\t\"5\\t   8\\t[Q\\u2665] Queen of hearts\\t\\tLock\",\n\t\t\t\"6\\t   9\\t[J\\u2665] Jack of hearts\\t\\tChampion\",\n\t\t\t\"\\t   10\\t[2\\u2665] Two of hearts\\t\\tCoin*\",\n\t\t\t\"\\t   11\\t[A\\u2663] Ace of clubs\\t\\tVulture*\",\n\t\t\t\"7\\t   12\\t[K\\u2663] King of clubs\\t\\tChaos\",\n\t\t\t\"8\\t   13\\t[Q\\u2663] Queen of clubs\\t\\tOrder\",\n\t\t\t\"9\\t   14\\t[J\\u2663] Jack of clubs\\t\\tBeginning\",\n\t\t\t\"\\t   15\\t[2\\u2663] Two of clubs\\t\\tMystery*\",\n\t\t\t\"\\t   16\\t[A\\u2660] Ace of spades\\t\\tIsolation*\",\n\t\t\t\"10\\t   17\\t[K\\u2660] King of spades\\t\\tEnd\",\n\t\t\t\"11\\t   18\\t[Q\\u2660] Queen of spades\\t\\tMonster\",\n\t\t\t\"12\\t   19\\t[J\\u2660] Jack of spades\\t\\tKnife\",\n\t\t\t\"\\t   20\\t[2\\u2660] Two of spades\\t\\tJustice*\",\n\t\t\t\"\\t   21\\tJoker (with TM)\\t\\tStudent*\",\n\t\t\t\"13\\t   22\\tJoker (no TM)\\t\\tMischief\\n\",\n\t\t\t\"* Found only in a deck with twenty-two cards\"\n\t\t],\n\t\tcards : [\n\t\t\t\">>Beginning<<. Your hit point maximum and current hit points increase by 2d10. Your hit point maximum remains increased in this way for the next 8 hours.\",\n\t\t\t\">>Champion<<. You gain a +1 bonus to weapon attack and damage rolls. This bonus lasts for 8 hours.\",\n\t\t\t\">>Chancellor<<. Within 8 hours of drawing this card, you can cast Augury once as an action, requiring no material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Chaos<<. You gain resistance to one of the following damage types (chosen by the DM): acid, cold, fire, lightning, or thunder. This resistance lasts for 1d12 days.\",\n\t\t\t\">>Coin<<. Five pieces of jewelry, each worth 100 gp, or ten gemstones, each worth 50 gp, appear at your feet.\",\n\t\t\t\">>Crown<<. You learn the Friends cantrip. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice). If you already know this cantrip, the card has no effect.\",\n\t\t\t\">>Dawn<<. This card invigorates you. For the next 8 hours, you can add your proficiency bonus to your initiative rolls.\",\n\t\t\t\">>Day<<. You gain a +1 bonus to saving throws. This benefit lasts until you finish a long rest.\",\n\t\t\t\">>Destiny<<. This card protects you against an untimely demise. The first time after drawing this card that you would drop to 0 hit points from taking damage, you instead drop to 1 hit point.\",\n\t\t\t\">>Dusk<<. This card supernaturally saps your energy. You have disadvantage on initiative rolls. This effect lasts until you finish a long rest, but it can be ended early by a Remove Curse spell or similar magic.\",\n\t\t\t\">>End<<. This card is an omen of death. You take 2d10 necrotic damage, and your hit point maximum is reduced by an amount equal to the damage taken. This effect can't reduce your hit point maximum below 10 hit points. This reduction lasts until you finish a long rest, but it can be ended early by a Remove Curse spell or similar magic.\",\n\t\t\t\">>Isolation<<. You disappear, along with anything you are wearing or carrying, and become trapped in a harmless extradimensional space for 1d4 minutes. You draw no more cards. You then reappear in the space you left or the nearest unoccupied space. When you reappear, you must succeed on a DC 11 Constitution saving throw or have the poisoned condition for 1 hour as your body reels from the extradimensional travel.\",\n\t\t\t\">>Justice<<. You momentarily gain the ability to balance the scales of fate. For the next 8 hours, whenever you or a creature within 60 feet of you is about to roll a d20 with advantage or disadvantage, you can use your reaction to prevent the roll from being affected by advantage or disadvantage.\",\n\t\t\t\">>Knife<<. An uncommon magic weapon you're proficient with appears in your hands. The DM chooses the weapon.\",\n\t\t\t\">>Lock<<. You gain the ability to cast Knock 1d3 times. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Mischief<<. You receive an uncommon wondrous item (chosen by the DM), or you can draw two additional cards beyond your declared draws.\",\n\t\t\t\">>Monster<<. This card's monstrous visage curses you. While cursed in this way, whenever you make a saving throw, you must roll 1d4 and subtract the number rolled from the total. The curse lasts until you finish a long rest, but it can be ended early with a Remove Curse spell or similar magic.\",\n\t\t\t\">>Mystery<<. You have disadvantage on Intelligence saving throws for 1 hour. Discard this card and draw from the deck again; together, the two draws count as one of your declared draws.\",\n\t\t\t\">>Night<<. You gain darkvision within a range of 300 feet. This darkvision lasts for 8 hours.\",\n\t\t\t\">>Order<<. You gain resistance to one of the following damage types (chosen by the DM): force, necrotic, poison, psychic, or radiant. This resistance lasts for 1d12 days.\",\n\t\t\t\">>Student<<. You gain proficiency in Wisdom saving throws. If you already have this proficiency, you instead gain proficiency in Intelligence or Charisma saving throws (your choice).\",\n\t\t\t\">>Vulture<<. One nonmagical item or piece of equipment in your possession (chosen by the DM) disappears. The item remains nearby but concealed for a short time, so it can be found with a successful DC 15 Wisdom (Perception) check. If the item isn't recovered within 1 hour, it disappears forever.\"\n\t\t]\n\t}\n}\n\nMagicItemsList[\"antimagic armor\"] = {\n\tname : \"Antimagic Armor\",\n\tnameTest : /antimagic.*armou?r/i,\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"While wearing this armor, once per dawn I can cast Antimagic Field, requiring no spell components. In addition, as a reaction once per dawn, I can give myself advantage on a saving throw I make against a spell.\",\n\tdescriptionFull : \"While wearing this armor, you can use your reaction to give yourself advantage on a saving throw you make against a spell. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   In addition, while you wear this armor, you can use it to cast Antimagic Field, requiring no spell components. Once this property is used, it can't be used again until the next dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Antimagic\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Antimagic\"]\n\t},\n\taction : [[\"reaction\", \"Adv. save vs. spell (1\\xD7 per dawn)\"]],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"antimagic field\"],\n\t\tselection : [\"antimagic field\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Adv. save vs. spell (Antimagic Armor)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Antimagic Field (Antimagic Armor)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tspellChanges : {\n\t\t\"antimagic field\" : {\n\t\t\tcomponents : \"\",\n\t\t\tcompMaterial : \"\",\n\t\t\tchanges : \"While wearing the armor, it requires no components to cast Antimagic Field.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"armor of fungal spores\"] = {\n\tname : \"Armor of Fungal Spores\",\n\tnameTest : \"of Fungal Spores\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (medium)\",\n\trarity : \"uncommon\",\n\tdescription : \"As a bonus action once per dawn while wearing this armor, I can make it emit poisonous spores. These spores fill a 10-ft radius sphere centered on myself. Each creature in that area must make a DC 15 Constitution save or be poisoned until the end of my next turn.\",\n\tdescriptionFull : \"While wearing this armor, you can take a bonus action to make the armor emit poisonous spores, which fill a 10-foot-radius sphere centered on yourself. Each creature in that area must succeed on a DC 15 Constitution saving throw or have the poisoned condition until the end of your next turn. Once this property is used, it can't be used again until the next dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/medium/i.test(inObj.type);\n\t\t}\n\t},\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"armor of the fallen\"] = {\n\tname : \"Armor of the Fallen\",\n\tnameTest : \"of the Fallen\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (medium or heavy)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"While wearing this armor, I can use it to cast either Animate Dead or Speak with Dead. Once the armor has cast a spell in this way, it can't cast either spell until the next dawn. My soul keeps this armor together. If I die while attuned to the armor, the armor is destroyed.\",\n\tdescriptionFull : \"While wearing this armor, you can use it to cast either Speak with Dead or Animate Dead. Once the armor has cast a spell in this way, it can't cast either spell until the next dawn.\"+\n\t\"\\n   Your soul keeps this armor together. If you die while you are attuned to the armor, the armor is destroyed.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy|medium/i.test(inObj.type);\n\t\t}\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"either or\",\n\t\tspells : [\"animate dead\", \"speak with dead\"],\n\t\tselection : [\"animate dead\", \"speak with dead\"],\n\t\tfirstCol : \"SP\",\n\t\ttimes : 2\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"armor of weightlessness\"] = {\n\tname : \"Armor of Weightlessness\",\n\tnameTest : \"of Weightlessness\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This armor has 5 charges, regaining 1d4+1 expended charges daily at dawn. As a bonus action while wearing it, I can expend 1 or more charges to cast Jump (1 charge) or Levitate (2 charges) on myself.\",\n\tdescriptionFull : \"This armor has 5 charges. While you wear it, you can use a bonus action to expend 1 or more charges to cast one of the following spells from the armor, targeting yourself: Jump (1 charge) or Levitate (2 charges).\"+\n\t\"\\n   This armor regains 1d4 + 1 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\n\t},\n\tusages : 5,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge (self only)\",\n\t\tspells : [\"jump\"],\n\t\tselection : [\"jump\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges (self only)\",\n\t\tspells : [\"levitate\"],\n\t\tselection : [\"levitate\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"jump\" : {\n\t\t\tname : \"Jump (self only)\",\n\t\t\ttime : \"1 bns\",\n\t\t\trange : \"Self\",\n\t\t\tdescription : \"My jump distance is tripled for the duration\",\n\t\t\tchanges : \"Using the Armor of Weightlessness, I can cast Jump as a bonus action, but only on myself.\"\n\t\t},\n\t\t\"levitate\" : {\n\t\t\tname : \"Levitate (self only)\",\n\t\t\ttime : \"1 bns\",\n\t\t\trange : \"Self\",\n\t\t\tsave : \"\",\n\t\t\tdescription : \"I float and move up vertically up to 20 ft; As part of my move each round, I can move up/down 20 ft\",\n\t\t\tchanges : \"Using the Armor of Weightlessness, I can cast Levitate as a bonus action, but only on myself.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"baleful talon\"] = {\n\tname : \"Baleful Talon\",\n\tsource : [[\"BoMT\", 34]], // Chapter 5: Gem\n\ttype : \"weapon (dagger)\",\n\trarity : \"very rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this hooked, obsidian dagger. When I hit a creature with it and roll a 19 or 20 to hit, the dagger flares with sickly light and deals +6d6 necrotic damage. The creature can make a DC 15 Con save to halve the damage. It turns to dust if this reduces its HP to 0.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this hooked, obsidian dagger.\"+\n\t\"\\n   When you hit a creature with this magic weapon and roll a 19 or 20 on the attack roll, the creature must make a DC 15 Constitution saving throw as the dagger flares with sickly light. The creature takes 6d6 necrotic damage on a failed save, or half as much on a successful one. If this damage reduces the creature to 0 hit points, the creature disintegrates into dust.\",\n\tweight : 1,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*baleful)(?=.*talon).*$/i,\n\t\tname : \"Baleful Talon\",\n\t\tsource : [[\"BoMT\", 34]],\n\t\tdescription : \"Finesse, light, thrown; Roll of 19-20: +6d6 necrotic damage, DC 15 Con save halves\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"blasted goggles\"] = {\n\tname : \"Blasted Goggles\",\n\tsource : [[\"BoMT\", 174]], // Chapter 20: Flames\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"These tinker's goggles have 3 charges, regaining 1d3 daily at dawn. As an action, I can use 1 charge to shoot a beam of light: a creature I can see within 120 ft must make a DC 15 Dexterity save or take 3d6 fire damage. If this is a natural 20, I'm blinded for 24 hours. Cursed: I can't remove these or end attunement.\",\n\tdescriptionFull : \"These tinker's goggles have 3 charges. As an action, you can expend 1 charge to shoot a beam of fiery light from the goggles at a creature you can see within 120 feet of yourself. The target must succeed on a DC 15 Dexterity saving throw or take 3d6 fire damage. The goggles regain 1d3 expended charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Cursed\") + \". The goggles are cursed, and becoming attuned to them extends the curse to you. You can't remove the goggles or end your attunement to them until you are targeted by a Remove Curse spell or similar magic.\"+\n\t\"\\n   Whenever you use the goggles' fiery beam and the target rolls a 20 on the d20 for the saving throw, the goggles expose you to a flash of violent bright light. As a result, you have the blinded condition for 24 hours.\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\"\n};\nMagicItemsList[\"bloodrage greataxe\"] = {\n\tname : \"Bloodrage Greataxe\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (greataxe)\",\n\trarity : \"uncommon\",\n\tdescription : \"I gain a +2 bonus to attack and damage rolls made with this magic greataxe while I have half my hit points or fewer.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic greataxe while you have half your hit points or fewer.\",\n\tweight : 7,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greataxe\",\n\t\tregExpSearch : /^(?=.*bloodrage)(?=.*(great|heavy|weida))(?=.*(axe|\\bono|\\bfu|masakari)s?\\b).*$/i,\n\t\tname : \"Bloodrage Greataxe\",\n\t\tsource : [[\"BoMT\", 66]],\n\t\tdescription : \"Heavy, two-handed; If I'm \\u2264 \\u00BD HP: +2 to hit \\u0026 damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"bloodseeker ammunition\"] = {\n\tname : \"Bloodseeker Ammunition\",\n\tnameTest : \"Bloodseeker\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"very rare\",\n\tdescription : \"Ranged attack rolls made with this magic ammunition have advantage against any creature doesn't have all its hit points.\",\n\tdescriptionFull : \"Ranged attack rolls made with this ammunition have advantage against any creature doesn't have all its hit points.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"boomerang shield\"] = {\n\tname : \"Boomerang Shield\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"shield\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"I can make a ranged weapon attack with this magic shield. It reappears in my hand the instant after it hits or misses a target. It has a range of 20 ft and a long range of 60 ft, uses Strength or Dexterity (my choice), I add my proficiency bonus if I'm proficient with shields, and it deals 1d6 slashing damage.\",\n\tdescriptionFull : \"You can make a ranged weapon attack with this magic shield. It has a normal range of 20 feet and a long range of 60 feet, and it uses your Strength or Dexterity for the attack roll (your choice). If you're proficient with shields, you are proficient with attacks made using this shield. On a hit, it deals 1d6 slashing damage. If you throw the shield, it reappears in your hand the instant after it hits or misses a target.\",\n\tweight : 6,\n\tshieldAdd : \"Boomerang Shield\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*boomerang)(?=.*shield).*$/i,\n\t\tname : \"Boomerang Shield\",\n\t\tsource : [[\"BoMT\", 66]],\n\t\tability : 1,\n\t\ttype : \"Shield\",\n\t\tdamage : [1, 6, \"slashing\"],\n\t\trange : \"20/60 ft\",\n\t\tweight : 6,\n\t\tdescription : \"Finesse, thrown; Reappears instantly\", // Not actually finesse, but easier to code this way and shouldn't cause any issues\n\t\tabilitytodamage : true,\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.theWea.name === \"Boomerang Shield\" && tDoc.getField(\"Proficiency Shields\").isBoxChecked(0)) {\n\t\t\t\t\tfields.Proficiency = true;\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n};\nMagicItemsList[\"bow of conflagration\"] = {\n\tname : \"Bow of Conflagration\",\n\tnameTest : \"of Conflagration\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any bow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"Ammunition fired from this bow blazes brightly. When I hit with an attack roll using this bow, the target takes an extra 1d6 fire damage. If the target is a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of my turns until a creature uses an action to extinguish the flames.\",\n\tdescriptionFull : \"Ammunition fired from this bow blazes brightly. When you hit with an attack roll using this bow, the target takes an extra 1d6 fire damage. If the target is a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of your turns until a creature uses an action to extinguish the flames.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /conflagration/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 fire damage; ignites target object';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Conflagration\" in the name of a bow, it will be treated as the magic weapon Bow of Conflagration. The bow deals an extra 1d6 fire damage. If I target and hit a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of my turns until a creature uses an action to extinguish the flames.'\n\t\t]\n\t}\n};\nMagicItemsList[\"bow of melodies\"] = {\n\tname : \"Bow of Melodies\",\n\tnameTest : \"of Melodies\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any bow)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This bow has multiple strings. I can use these to play one of two melodies on each attack, imbuing it with magic. Melody of Precision: If I'm proficient with Performance, I add +1 (+2 if expertise) to the attack roll. Melody of Reverberation: the attack deals my Charisma modifier in extra thunder damage.\",\n\tdescriptionFull : \"This bow has multiple strings and resembles a lyre or small harp. By strumming the strings while setting an arrow to the bow, you imbue the arrow with magic.\"+\n\t\"\\n   You can play one of the following melodies when you use the bow to make a ranged weapon attack. You must choose to do so before you make the attack roll, and you can play only one melody per attack.\"+\n\t\"\\n   \" + toUni(\"Melody of Precision\") + \". If you're proficient in Performance, you gain a +1 bonus to the attack roll. If you have expertise in Performance, you gain a +2 bonus instead.\"+\n\t\"\\n   \" + toUni(\"Melody of Reverberation\") + \". The melody you strum echoes loudly. On a hit, the target takes extra thunder damage equal to your Charisma modifier.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tvar chaMod = Number(What('Cha Mod'));\n\t\t\t\t// Only add a description if positive Cha Mod and Melody of Precision is not an option or Reverberation is part of the name\n\t\t\t\tif (!v.theWea.isMagicWeapon && chaMod > 0 && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*melod(ies|y))(?!.*precision).*$/i.test(v.WeaponTextName) && (/reverberation/i.test(v.WeaponTextName) || !hasSkillProf(\"Performance\")[0])) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+' + chaMod + ' (Cha mod) thunder damage';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Melody\" or \"Melodies\" in the name of a bow, it will be treated as the magic weapon Bow of Melodies. If I also include either \"Precision\" or \"Reverberation\" in the name, the respective bonus will be added. if I include neither of those in the name, the bonus will be determined automatically, the Melody of Precision if proficient with Performance (+1 or +2 bonus to hit) or Melody of Reverberation otherwise (+Cha mod thunder damage).'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\t// Add to hit bonus if name doesn't include Reverberation. Will be zero if not proficient in Performance\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*melod(ies|y))(?!.*reverberation).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tvar perfProf = hasSkillProf(\"Performance\");\n\t\t\t\t\toutput.extraHit += perfProf[1] ? 2 : perfProf[0] ? 1 : 0;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"breastplate of balance\"] = {\n\tname : \"Breastplate of Balance\",\n\tsource : [[\"BoMT\", 34]], // Chapter 5: Gem\n\ttype : \"armor (breastplate)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This burnished copper breastplate with merchant's scales on the chest has 4 charges, regaining 1d4 at dawn. As a reaction when I or another I can see within 60 ft is about to roll a d20 with (dis)advantage, I can use 1 charge to prevent this (dis)advantage. As a bonus action, I can use 2 charges to cast Lesser Restoration.\",\n\tdescriptionFull : \"This burnished copper breastplate looks as if it were made of interlocking gears. Merchant's scales are emblazoned across the chest.\"+\n\t\"\\n   The armor has 4 charges. You can use the charges in the following ways while wearing the armor:\"+\n\t\"\\n   \" + toUni(\"Equalize\") + \". When you or a creature you can see within 60 feet of yourself is about to roll a d20 with advantage or disadvantage, you can expend 1 charge and take a reaction to prevent the roll from being affected by advantage or disadvantage.\"+\n\t\"\\n   \" + toUni(\"Expunge Imbalance\") + \". As a bonus action, you can expend 2 charges to cast the Lesser Restoration spell from the armor.\"+\n\t\"\\n   The armor regains 1d4 expended charges daily at dawn.\",\n\tweight : 20,\n\taction : [[\"reaction\", \" (if dis./adv.)\"]],\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\",\n\tarmorAdd : {\n\t\tselect : \"Breastplate of Balance\",\n\t\toptions : [\"Breastplate of Balance\"]\n\t},\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"2 charges\",\n\t\tspells : [\"lesser restoration\"],\n\t\tselection : [\"lesser restoration\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"lesser restoration\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"While wearing the armor, I can use 2 of its charges to cast Lesser Restoration as a bonus action.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"card sharp's deck\"] = {\n\tname : \"Card Sharp's Deck\",\n\tsource : [[\"BoMT\", 40]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : 'The cards of this deck shimmer around the edges. As an action, I can throw a card as ranged spell attack using Dexterity. This \"Deadly Deal\" attack has 120 ft range and deals 1d8 force damage. As an action once per dawn, I can shuffle the deck to cast Spray of Cards at 3rd level with it (save DC 15).',\n\tdescriptionFull : \"The cards of this deck shimmer around the edges. While holding this deck, you can use the following properties:\"+\n\t\"\\n   \" + toUni(\"Deadly Deal\") + \". As an action, you can use this deck to make a ranged spell attack by throwing a spectral card and using Dexterity for the attack roll. The card has a range of 120 feet and deals 1d8 force damage on a hit.\"+\n\t\"\\n   \" + toUni(\"Spray of Cards\") + \". As an action, you can shuffle the deck and cast the Spray of Cards spell at 3rd level from the deck (spell save DC 15). Once the deck has cast the spell, it can't cast the spell again until the next dawn.\",\n\taction : [[\"action\", \"\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*deadly)(?=.*deal).*$/i,\n\t\tname : \"Deadly Deal\",\n\t\tsource : [[\"BoMT\", 40]],\n\t\tability : 2,\n\t\ttype : \"Spell\",\n\t\tdamage : [1, 8, \"force\"],\n\t\trange : \"120 ft\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false,\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Spray of Cards\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"spray of cards\"],\n\t\tselection : [\"spray of cards\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"spray of cards\" : {\n\t\t\tdescription : \"All in area 3d10 Force dmg and blinded until their next turn ends; save halves \\u0026 not blinded\",\n\t\t\tdescriptionShorter : false,\n\t\t\tchanges : \"Using Card Sharp's Deck I can cast Spray of Cards at 3rd level once per dawn.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"clockwork armor\"] = {\n\tname : \"Clockwork Armor\",\n\tnameTest : /clockwork.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"The outside surface and internal joints of this armor whir with interlocking gears, drawing on the magic of the plane of Mechanus. The armor has 4 charges and regains 1d4 used charges daily at dawn. If I make a d20 roll while wearing it, I can expend 1 charge to change the number rolled to a 10.\",\n\tdescriptionFull : \"The outside surface and internal joints of this armor whir with interlocking gears, drawing on the orderly magic of the plane of Mechanus.\"+\n\t\"\\n   The armor has 4 charges. If you make a d20 roll while wearing this armor, you can expend 1 charge to change the number rolled to a 10. The armor regains 1d4 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Clockwork\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Clockwork\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy/i.test(inObj.type);\n\t\t}\n\t},\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\"\n};\nMagicItemsList[\"crown of whirling comets\"] = {\n\tname : \"Crown of Whirling Comets\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This crown has 6 charges, regaining 1d6 at dawn. As a bonus action, I can use 1 charge to fly my walking speed and hover, for 10 min. I can use 3 charges to cast Ice Storm (DC 16). As an action, I can launch one frigid starlight bolt per charge used, that each deal 2d4 cold damage to a creature I can see within 120 ft.\",\n\tdescriptionLong : \"This delicate silver tiara decorated with stellar iconography has gems on the tiara's points that detach and closely orbit my head. It has 6 charges, regaining 1d6 used charges daily at dawn. As a bonus action, I can use 1 charge to gain a flying speed equal to my walking speed and I can hover, for 10 minutes. As an action, I can expend any number of charges to launch one frigid starlight bolt per charge used to a creature I can see within 120 ft. Each bolt automatically hits and deals 2d4 cold damage. Bolts can be used to hit the same or different targets. As an action, I can use 3 charges to cast Ice Storm (save DC 16).\",\n\tdescriptionFull : \"This delicate silver tiara is decorated with stellar iconography. While you wear the crown, the gems on the tiara's points detach and closely orbit your head.\"+\n\t\"\\n   The crown has 6 charges for the following properties, which you can use while wearing the crown:\"+\n\t\"\\n   \" + toUni(\"Star Flight\") + \". As a bonus action, you can spend 1 charge to gain the power of flight for 10 minutes. For the duration, you gain a flying speed equal to your walking speed, and you can hover. While flying, you glow faintly with starlight.\"+\n\t\"\\n   \" + toUni(\"Starlight Strike\") + \". As an action, you can spend any number of charges to launch bolts of frigid starlight. You launch a number of bolts equal to the number of charges spent, and you can direct the bolts to target one creature or several, so long as all creatures are within 120 feet of you and you can see them. The bolts automatically strike their targets, and each bolt deals 2d4 cold damage.\"+\n\t\"\\n   \" + toUni(\"Whirling Hail\") + \". As an action, you can spend 3 charges and cast the Ice Storm spell (save DC 16).\"+\n\t\"\\n   The crown regains 1d6 expended charges daily at dawn.\",\n\taction : [[\"bonus action\", \" (fly)\"], [\"action\", \" (bolts)\"]],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\tfixedDC : 16,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"3 charges\",\n\t\tspells : [\"ice storm\"],\n\t\tselection : [\"ice storm\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"deck of dimensions\"] = {\n\tname : \"Deck of Dimensions\",\n\tsource : [[\"BoMT\", 40]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This deck has 6 charges, regaining 1d6 used at dawn. As a bonus action, I can use 1 charge to throw a card to an empty spot either within 60 ft and teleport to it, or within 5 ft and teleport to it once in the next 8 hours as an action. I can use 3 charges to cast Arcane Gate, but can't use the deck while the gate is active.\",\n\tdescriptionLong : \"These cards are decorated with intricate designs of different planes of existence. The deck has 6 charges, regaining 1d6 used charges daily at dawn. As a bonus action, I can use 1 charge to throw a card to an empty space either within 60 ft and teleport to it now, or within 5 ft and leave it there to use an action within the next 24 hours to speak the card's name and teleport to it. Once I teleport to a card, or 8 hours passed, the card vanishes and returns to the deck. As an action, I can use 3 charges to cast Arcane Gate, but the fluttering cards of the deck make up the gate, rendering the deck useless while it's active.\",\n\tdescriptionFull : \"The backs of the cards in this deck are decorated with intricate designs representing different planes of existence. The deck has 6 charges. While holding it, you can expend 1 or more of its charges to use the following properties:\"+\n\t\"\\n   \" + toUni(\"Marked Card\") + \". As a bonus action, you can expend 1 charge to draw a card from the deck and place it in an unoccupied space within 5 feet of you. The card then becomes marked with an invisible sigil. Once within the next 24 hours, as an action, you can speak the marked card's name and teleport to the card's location, along with any equipment you are wearing or carrying, appearing in the closest unoccupied space to the card. After you teleport in this way, or after 8 hours, the card returns to the deck, and the mark on it fades.\"+\n\t\"\\n   \" + toUni(\"Riffling Portal\") + \". As an action, you can expend 3 charges to cast the Arcane Gate spell from the deck. The deck vanishes, and fluttering cards create the spell's portal rings. When the spell ends, the deck reappears in your possession.\"+\n\t\"\\n   \" + toUni(\"Shuffling Stride\") + \". As a bonus action, you can expend 1 charge to throw a card from the deck to an unoccupied space within 60 feet of yourself and teleport, along with any equipment you're wearing or carrying, to that space. The card then vanishes and returns to the deck.\"+\n\t\"\\n   The deck regains 1d6 expended charges daily at dawn.\",\n\taction : [[\"bonus action\", \" (throw card)\"], [\"action\", \" (teleport back)\"]],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"3 charges\",\n\t\tspells : [\"arcane gate\"],\n\t\tselection : [\"arcane gate\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"deck of many more things\"] = {\n\tname : \"Deck of Many More Things\",\n\tsource : [[\"BoMT\", 51]], // Chapter 7: Sage\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tdescription : \"Before drawing cards from this deck, I must declare how many I wish to draw and then draw that number randomly. Any cards drawn in excess have no effect. When a card is drawn, its magic takes effect, it fades from existence, and, unless the card is the Fool or the Jester, reappears in the deck. See Notes page.\",\n\tdescriptionFull : \"Over the centuries since the first Deck of Many Things was created, many have sought and failed to replicate it. But some have created new cards. These forty-four additional cards are known collectively as the Deck of Many More Things. (More information on creating new cards for this deck appears in chapter 2.)\"+\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].features) +\n\t\"\\n\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].cards) +\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].cards2),\n\ttoNotesPage : [{\n\t\tname : \"Features and Table\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].features)\n\t}, {\n\t\tname : \"Cards and Their Effects, part 1\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].cards, \"\\n\\u2022 \").replace(/Use my Int/g, \"I use my Int\").replace(/at my ft/ig, \"my feet\")\n\t}, {\n\t\tname : \"Cards and Their Effects, part 2\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].cards2, \"\\n\\u2022 \").replace(/Use my Int/g, \"I use my Int\").replace(/I'm not/g, \"not\")\n\t}, {\n\t\tname : \"Deck of Many Things' Cards and Effects\",\n\t\tsource : MagicItemsList[\"deck of many things\"].source,\n\t\tnote : MagicItemsList[\"deck of many things\"].toNotesPage[1].note\n\t}]\n};\nMagicItemsList[\"deck of miscellany\"] = {\n\tname : \"Deck of Miscellany\",\n\tsource : [[\"BoMT\", 41]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Each card of the 32 cards in this wooden box has an illustration of a different item or set of items. As an action, I can pick a card and throw it in an empty space within 5 ft. There it transforms into the item(s) depicted. See the table on the Notes page for the items and the associated real-world playing cards.\",\n\tdescriptionFull : \"This wooden box contains a set of thirty-two parchment cards.\"+\n\t\"\\n   The face of each card bears an illustration of a different item or set of items. As an action, you can draw a card of your choice from the deck and throw it to the ground in an unoccupied space within 5 feet of yourself. When the card hits the ground, the card permanently transforms into the item or set of items depicted on its face. An altered deck of real-world playing cards can simulate the deck, as shown in the table below.\\n\\n\" + BoMT[\"deck of miscellany\"].join(\"\\n\"),\n\taction : [[\"action\", \"\"]],\n\ttoNotesPage : [{\n\t\tname : \"Cards and Their Items\",\n\t\tnote : \"\\n   This wooden box contains a set of thirty-two parchment cards. The face of each card bears an illustration of a different item or set of items. As an action, I can pick a remaining card and throw it to the ground in an unoccupied space within 5 ft. When the card hits the ground, the card permanently transforms into the item or set of items depicted on its face.\"+\n\t\tBoMT.to1stPerson(\"\\nUsed\\t\" + BoMT[\"deck of miscellany\"].join(\"\\n  \\u2610\\t\")) // empty ballet box\n\t}]\n};\nMagicItemsList[\"deck of oracles\"] = {\n\tname : \"Deck of Oracles\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"If I spend 10 minutes consulting this deck of oracle cards when I finish a long rest, I can roll a d20 and record result. Once in the next 8 hours after a creature within 60 ft makes a check, attack roll, or save, I can use my reaction to have it use the number I rolled instead. Once per dawn, I can use these to cast Divination.\",\n\tdescriptionFull : \"The illustrations on this deck of oracle cards move or change subtly when viewed indirectly. When you finish a long rest, you can spend 10 minutes consulting the cards for an omen of the coming day. Roll a d20 and record the number rolled. Once in the next 8 hours, immediately after a creature within 60 feet of you makes an ability check, an attack roll, or a saving throw, you can use your reaction to discard the d20 roll; the creature must use the number you rolled in place of its roll.\"+\n\t\"\\n   Additionally, while holding the cards, you can cast Divination from them. Once this property is used, it can't be used again until the next dawn.\",\n\taction : [[\"reaction\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Divination\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"divination\"],\n\t\tselection : [\"divination\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"deck of wild cards\"] = {\n\tname : \"Deck of Wild Cards\",\n\tsource : [[\"BoMT\", 41]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As an action, I can draw a random card from this deck of heavy vellum cards and throw it. I make a ranged spell attack using Dex with a range of 30 ft, dealing 1d4 slashing damage on a hit and one of four magical effects depending on the card drawn, see Notes page. The thrown card returns to the deck after the attack.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"deck of wild cards\"]),\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*deck)(?=.*wild)(?=.*cards?).*$/i,\n\t\tname : \"Deck of Wild Cards\",\n\t\tsource : [[\"BoMT\", 41]],\n\t\tability : 2,\n\t\ttype : \"Spell\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Also random effect on hit, see Notes page\",\n\t\tabilitytodamage : false,\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Random Card Effects\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wild cards\"])\n\t}]\n};\nMagicItemsList[\"deck of wonder\"] = {\n\tname : \"Deck of Wonder\",\n\tsource : [[\"BoMT\", 55]], // Chapter 7: Sage\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Before drawing cards from this deck, I must declare how many I wish to draw and then draw that number randomly. Any cards drawn in excess have no effect. When a card is drawn, its magic takes effect and then it fades from existence and reappears in the deck. See Notes page.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"deck of wonder\"].features) + \"\\n\\n   \" + BoMT.toDescrFull(BoMT[\"deck of wonder\"].cards),\n\ttoNotesPage : [{\n\t\tname : \"Features and Table\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wonder\"].features)\n\t}, {\n\t\tname : \"Cards and Their Effects\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wonder\"].cards, \"\\n\\u2022 \")\n\t}]\n};\nMagicItemsList[\"donjon's sundering sphere\"] = {\n\tname : \"Donjon's Sundering Sphere\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"Attuning to this marble-size crystal sphere includes attaching it to a nonmagical melee weapon, that then becomes magical +1. It grants me adv. on saves vs. being send to another dimension. Once per dawn when I hit a creature, I can have it make a DC 16 Cha save or be stuck in a demiplane until its next turn ends.\",\n\tdescriptionLong : \"Attuning to this marble-size crystal sphere includes attaching it to the hilt of a nonmagical melee weapon weapon, that then becomes a magic weapon with a +1 bonus to attack and damage rolls. While wielding it, I have advantage on save against being send to an extradimensional space or another plane of existence. Once per dawn when I hit a creature with this weapon, I can have it make a DC 16 Charisma save or be banished to a harmless demiplane until its next turn ends. It returns to the space it left, or the nearest empty space. When I end my attunement to the sphere, it detaches from the weapon.\",\n\tdescriptionFull : \"This marble-size crystal sphere glows with extraplanar energy.\"+\n\t\"\\n   As part of attuning to this item, you press the crystal sphere to the hilt of a nonmagical melee weapon of your choice, magically attaching the sphere to the weapon. The weapon becomes a magic weapon with a +1 bonus to attack and damage rolls. While wielding this weapon, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Dimensional Anchor\") + \". You have advantage on saving throws against spells or effects that would send you to an extradimensional space, a demiplane, or another plane of existence against your will.\"+\n\t\"\\n   \" + toUni(\"Isolating Smite\") + \". When you hit a creature with this weapon, you can force the creature to make a DC 16 Charisma saving throw. On a failed save, the creature is banished to a harmless demiplane until the end of its next turn. When the banished creature returns, it reappears in the space it left or the nearest unoccupied space if that space is occupied. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   When you end your attunement to the sphere, the sphere harmlessly detaches from the weapon, and the weapon reverts to a nonmagical piece of equipment.\",\n\tsavetxt : {\n\t\tadv_vs : [\"being send to other plane/dimension\"]\n\t},\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Banish\",\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /\\bdonjon'?s\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Donjon\\'s\" in the name of a melee weapon, it will be treated as a melee weapon with the Donjon\\'s Sundering Sphere attached. It adds a +1 bonus to attack and damage rolls made with it.'\n\t\t]\n\t}\n};\nMagicItemsList[\"dried leech\"] = {\n\tname : \"Dried Leech\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"uncommon\",\n\tdescription : \"If a creature is hit by this magic ammunition, the leech animates and attaches to the target, dealing 1d4 piercing damage at the start of each of their turns. The leech detaches if it deals at least 10 damage or the target dies. Anyone can use their action to detach a leech. A detached leech dies and turns nonmagical.\",\n\tdescriptionFull : \"This leech has been dried and imbued with a mote of animating magic. If you hit a creature with a ranged attack roll using this ammunition, the leech springs to life and sinks its teeth into the target, dealing 1d4 piercing damage at the start of each of the target's turns. If the leech deals at least 10 damage or the target dies, the leech falls off. A creature, including the target, can use its action to detach the leech. Once a leech is no longer attached to its target, the leech dies and is no longer magical.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"euryale's aegis\"] = {\n\tname : \"Euryale's Aegis\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This brass shield grants me poison resistance and petrification immunity. I can use it to cast 3 spells, each once per dawn. As a bonus action once per dawn, a target I can see within 30 ft must make a DC 20 Con save or be restrained until its next turn starts, at which point it must save again or be petrified for 24 hours.\",\n\tdescriptionLong : \"This gleaming brass shield bears a relief of the legendary medusa druid Euryale. It grants me poison resistance and immunity to being petrified. I can use it to cast 3 spells, each once per dawn: Lesser Restoration, Locate Creature, and Transport via Plants.\\nAs a bonus action once per dawn, I can try to petrify a creature I can see within 30 ft. It must make a DC 20 Constitution save or be restrained while its body turns to stone. When its next turn starts, it must then make a DC 20 Constitution save again or be petrified for 24 hours. On a successful save, the restrained condition ends.\",\n\tdescriptionFull : \"This gleaming brass shield bears a relief of the legendary medusa druid Euryale.\"+\n\t\"\\n   While wielding this shield, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Blessing of Euryale\") + \". You have resistance to poison damage and are immune to the petrified condition.\"+\n\t\"\\n   \" + toUni(\"Petrifying Heraldry\") + \". As a bonus action, you can make the front of the shield flare with a medusa's petrifying magic, causing the relief's eyes to glow brightly. Choose one creature you can see within 30 feet of you. The creature must succeed on a DC 20 Constitution saving throw, or it has the restrained condition as its body turns to stone. The restrained creature must make another DC 20 Constitution saving throw at the start of its next turn. On a failed save, the creature has the petrified condition for 24 hours. On a successful save, the restrained condition ends. Once this bonus action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". While wielding the shield, you can use an action to cast one of the following spells from it: Lesser Restoration, Locate Creature, Transport via Plants. Once you use the shield to cast a spell, the shield can't cast that spell again until the next dawn.\",\n\tweight : 6,\n\taction : [[\"bonus action\", \" - Petrify\"]],\n\tshieldAdd : \"Euryale's Aegis\",\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\timmune : [\"petrified\"]\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"lesser restoration\", \"locate creature\", \"transport via plants\"],\n\t\tselection : [\"lesser restoration\", \"locate creature\", \"transport via plants\"],\n\t\tfirstCol : \"oncelr\",\n\t\ttimes : 3\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Euryale's Aegis - Petrify\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Euryale's Aegis (each spell once)\",\n\t\tusages : 3,\n\t\trecovery : \"dawn\"\n\t}]\n};\nMagicItemsList[\"fabulist gem\"] = {\n\tname : \"Fabulist Gem\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can use this glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\",\n\tdescriptionFull : \"This glittering red gem is commonly found embedded in a ring or brooch.\"+\n\t\"\\n   While wearing the gem, you gain the following benefits.\"+\n\t\"\\n   \" + toUni(\"Counterfeit Coins\") + \". You can use your action to magically create a pile of coins, worth no more than 100 gp total, in an unoccupied space within 10 feet of yourself. The pile must appear on a surface that can support it. After 1 hour, the coins vanish, regardless of where they are. Once this action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Illusory Fashion\") + \". As a bonus action, you can magically change the appearance of your clothing and armor. You can change the style, color, and apparent quality of what you're wearing, or you can make it appear as if you were wearing different garments entirely. In either case, the changes wrought by this magic fail to pass physical inspection.\",\n\taction : [[\"action\", \" - Counterfeit Coins\"], [\"bonus action\", \" - Illusory Fashion\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Fabulist Gem - Counterfeit Coins\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tchoices : [\"Brooch\", \"Ring\"],\n\t\"brooch\" : {\n\t\tname : \"Fabulist Gem Brooch\",\n\t\tdescription : \"As a bonus action, I can use this brooch's glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\"\n\t},\n\t\"ring\" : {\n\t\tname : \"Fabulist Gem Ring\",\n\t\ttype : \"ring\",\n\t\tdescription : \"As a bonus action, I can use this ring's glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\"\n\t}\n};\nMagicItemsList[\"fate cutter shears\"] = {\n\tname : \"Fate Cutter Shears\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"weapon (dagger)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"The blades of these pruning shears bear many nicks and dents but still cut cleanly. They function as a magic dagger that deal +1d6 force damage. Once per dawn when I hit a creature with them, I can cut their fate. Until that target finishes a long rest, attack rolls against them score a critical hit on a roll of 19 or 20.\",\n\tdescriptionFull : \"The blades of these pruning shears bear many nicks and dents but still cut cleanly. The shears function as a magic dagger. The weapon has the following properties:\"+\n\t\"\\n   \" + toUni(\"Ever Sharp\") + \". When you hit with an attack using the shears, the target takes an extra 1d6 force damage.\"+\n\t\"\\n   \" + toUni(\"Sever Threads\") + \". When you hit a creature with the shears, you can cut that creature's fate. Until the target finishes a long rest, attack rolls against it score a critical hit on a roll of 19 or 20 on the d20. Once this property is used, it can't be used again until the next dawn.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Sever Threads\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*fate)(?=.*cutt(er|ing))(?=.*(shears?|dagger)).*$/i,\n\t\tname : \"Fate Cutter Shears\",\n\t\tsource : [[\"BoMT\", 61]],\n\t\tdescription : \"Finesse, light, thrown; +1d6 force damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"fate dealer's deck\"] = {\n\tname : \"Fate Dealer's Deck\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\n\tprereqeval : function (v) { return classes.known.paladin || classes.known.cleric ? true : false; },\n\tdescription : \"While holding this deck, I can use it as a spellcasting focus and I gain a bonus to my spell attack rolls and spell save DC determined by its rarity: rare (+1), very rare (+2), or legendary (+3). As an action, I can draw a card and expend and roll one HD to heal or deal radiant damage to a creature within 30 ft I can see, equal to the roll and the deck's bonus.\",\n\tdescriptionFull : \"The backs of these cards are inscribed with glyphs representing the Inner Planes, the Outer Planes, or the holy symbols of various deities. While holding this deck, you can use it as a spellcasting focus, and you gain a bonus to spell attack rolls and to your spell save DC. The bonus is determined by the deck's rarity: rare (+1), very rare (+2), or legendary (+3).\"+\n\t\"\\n   In addition, while you're holding the deck, you can draw a card as an action to expend and roll one of your Hit Dice and add the deck's bonus to the number rolled. One creature you can see within 30 feet of you either takes radiant damage or regains hit points (your choice) equal to the total.\",\n\tchoices : [\"+1 Fate Dealer's Deck (rare)\", \"+2 Fate Dealer's Deck (very rare)\", \"+3 Fate Dealer's Deck (legendary)\"],\n\t\"+1 fate dealer's deck (rare)\" : {\n\t\tname : \"Fate Dealer's Deck +1\",\n\t\tnameTest : \"+1 Fate Dealer's Deck\",\n\t\trarity : \"rare\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +1 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +1.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 1;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t},\n\t\"+2 fate dealer's deck (very rare)\" : {\n\t\tname : \"Fate Dealer's Deck +2\",\n\t\tnameTest : \"+2 Fate Dealer's Deck\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +2 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +2.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 2;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t},\n\t\"+3 fate dealer's deck (legendary)\" : {\n\t\tname : \"Fate Dealer's Deck +3\",\n\t\tnameTest : \"+3 Fate Dealer's Deck\",\n\t\trarity : \"legendary\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +3 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +3.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 3;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t}\n};\nMagicItemsList[\"feywrought armor\"] = {\n\tname : \"Feywrought Armor\",\n\tnameTest : /feywrought.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"While wearing this colorful, flowery armor that was forged in the Feywild, I have advantage on saves to avoid or end the charmed condition on myself. The armor has 3 charges and regains 1d3 used charges daily at dawn. As an action, I can use 1 charge to cast Compulsion (save DC 15) from it.\",\n\tdescriptionFull : \"This colorful, flowery armor was forged in the Feywild and is infused with that plane's captivating magic.\"+\n\t\"\\n   While wearing this armor, you have advantage on saving throws you make to avoid or end the charmed condition on yourself.\"+\n\t\"\\n   This armor has 3 charges. You can use an action to expend a charge to cast the Compulsion spell (save DC 15) from this armor. The armor regains 1d3 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Feywrought\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Feywrought\"]\n\t},\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tsavetxt : { adv_vs : [\"charmed\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"compulsion\"],\n\t\tselection : [\"compulsion\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"fool's blade\"] = {\n\tname : \"Fool's Blade\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"weapon (any sword)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action once per dawn, I can use this weapon +2 to feint a target within 5 ft, giving me adv. on attacks vs. it until my next turn starts. As a reaction once per dawn when a creature within 60 ft attacks me, I can have it make a DC 15 Int save or have it target another of my choice within its reach.\",\n\tdescriptionLong : \"This magic weapon appears ordinary, but bears strong illusion magic that allows me to deceive opponents. I have a +2 bonus to attack and damage rolls with it.\\nFool's Feint: As a bonus action once per dawn, I can feint a creature within 5 ft, giving me advantage on attack rolls against it until the start of my next turn.\\nMisdirect: As a reaction once per dawn when a creature within 60 ft targets me with an attack roll, I can have it make a DC 15 Intelligence save. On a failed save, the attack instead targets another creature of my choice that is within the attacker's reach.\",\n\tdescriptionFull : \"This weapon appears ordinary, but it bears strong illusion magic that allows its wielder to skillfully deceive opponents.\"+\n\t\"\\n   You have a +2 bonus to attack and damage rolls made with this magic weapon. While wielding it, you also gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Fool's Feint\") + \". As a bonus action, you can feint, choosing a creature within 5 feet of you as your target. Until the start of your next turn, you have advantage on attack rolls against the target. Once this bonus action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Misdirect\") + \". When a creature within 60 feet of you targets you with an attack roll, you can use your reaction to require that creature to make a DC 15 Intelligence saving throw. On a failed save, the attack instead targets another creature of your choice that is within the attacker's reach. Once this reaction has been used, it can't be used again until the next dawn.\",\n\taction : [[\"bonus action\", \" - Feint\"], [\"reaction\", \" - Misdirect\"]],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"brackets\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\titemName1stPage : [\"suffix\", \"Fool's\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /\\bfool'?s\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Fool\\'s\" in the name of a sword, it will be treated as the magic weapon Fool\\'s Blade. It adds a +2 bonus to attack and damage rolls made with it.'\n\t\t]\n\t}\n};\nMagicItemsList[\"forcebreaker weapon\"] = {\n\tname : \"Forcebreaker Weapon\",\n\tnameTest : \"Forcebreaker\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (any that deals bludgeoning damage)\",\n\trarity : \"very rare\",\n\tdescription : \"This magic weapon gives +2 to hit and damage. It was crafted to destroy structures made of magical force, such as a Wall of Force. With one strike with this weapon, I can shatter a Large or smaller structure of magical force, or shatter a 20-ft cube portion of a Huge or larger structure.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon.\"+\n\t\"\\n   This weapon was crafted to destroy structures made of force, such as those created by Forcecage or Wall of Force. Striking a Large or smaller structure of magical force with this weapon automatically shatters that structure. If the target is a Huge or larger structure of force, this weapon shatters a 20-foot-cube portion of it.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar damageArr = inObj.baseWeapon && !inObj.damage ? WeaponsList[inObj.baseWeapon].damage : inObj.damage;\n\t\t\treturn !/bludg(\\.|eoning)/i.test(damageArr.toString());\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && /forcebreaker/i.test(v.WeaponTextName) && /bludg(\\.|eoning)/i.test(fields.Damage_Type)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Shatters magical force';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Forcebreaker\" in the name of a bludgeoning weapon, it will be treated as the magic weapon Forcebreaker Weapon. It adds a +2 bonus to attack and damage rolls made with it.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && /forcebreaker/i.test(v.WeaponTextName) && /bludg(\\.|eoning)/i.test(fields.Damage_Type)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"glimmering moonbow\"] = {\n\tname : \"Glimmering Moonbow\",\n\tnameTest : \"Glimmering Moon\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"weapon (any bow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This silver-and-black bow adds +1 to its to hit and damage rolls, creates its own ammo that lasts until it hits or misses a target, and deals +1d6 radiant damage. As a bonus action once per dawn, I can use it to gain resistance to piercing, bludgeoning, and slashing damage until my next turn starts, \",\n\tdescriptionFull : \"This silver-and-black bow is engraved with the phases of the moon. You gain a +1 bonus to attack and damage rolls made with this magic weapon.\"+\n\t\"\\n   When you hit with a ranged attack roll using this magic bow, the target takes an extra 1d6 radiant damage. If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the bow vanishes the instant after it hits or misses a target.\"+\n\t\"\\n   While wielding this magic bow, you can use a bonus action to enter a semi-incorporeal state until the start of your next turn. While semi-incorporeal, you have resistance to bludgeoning, piercing, and slashing damage. Once this bonus action is used, it can't be used again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"resistances\",\n\taction : [[\"bonus action\", \" (resistances)\"]],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*glimmering)(?=.*moon).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(;|,)? ?(loading|Counts as magical)/ig, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 radiant damage';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"Glimmering\" and \"Moon\" in the name of a bow, it will be treated as the magic weapon Glimmering Moonbow. It has +1 to hit and damage, deals +1d6 radiant damage, and produces its own ammunition, thus its loading property is removed if it has it.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*glimmering)(?=.*moon).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"gloomwrought armor\"] = {\n\tname : \"Gloomwrought Armor\",\n\tnameTest : /gloomwrought.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"While wearing this intricate grayscale armor forged in the Shadowfell, I have advantage on saves to avoid or end the frightened condition on myself. The armor has 3 charges and regains 1d3 used charges daily at dawn. As an action, I can use 1 charge to cast Calm Emotions (save DC 15) from it.\",\n\tdescriptionFull : \"This intricate grayscale armor was forged in the Shadowfell and is infused with that plane's gloom.\"+\n\t\"\\n   While you're wearing this armor, you have advantage on saving throws you make to avoid or end the frightened condition on yourself.\"+\n\t\"\\n   This armor has 3 charges. You can expend a charge to cast the Calm Emotions spell (save DC 15) from the armor. This armor regains 1d3 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Gloomwrought\", \"Armor\"], \n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Gloomwrought\"]\n\t},\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"calm emotions\"],\n\t\tselection : [\"calm emotions\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"grasping whip\"] = {\n\tname : \"Grasping Whip\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (whip)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magic whip. When I hit a creature or object that is Large or smaller with this whip, I can pull that creature or object 5 ft toward me instead of dealing damage.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic whip. When you hit a creature or object that is Large or smaller with this whip, you can pull that creature or object 5 feet toward you instead of dealing damage.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"whip\",\n\t\tregExpSearch : /^(?=.*grasping)(?=.*whip).*$/i,\n\t\tname : \"Grasping Whip\",\n\t\tsource : [[\"BoMT\", 67]],\n\t\tdescription : \"Finesse, reach; Forgo damage to pull \\u2264 Large 5 ft to me\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"hammer of runic focus\"] = {\n\tname : \"Hammer of Runic Focus\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (warhammer)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action three times per dawn, I can slam this hammer on the ground, creating a 15-ft radius glowing circle of runes wherein it's a +3 warhammer glowing with matching runes. The rune circle disappears after 1 minute, when I create another, or when I dismiss it as a bonus action.\",\n\tdescriptionFull : \"This magic hammer has 3 charges. As a bonus action, you can expend 1 charge and slam this hammer on the ground, creating a 15-foot-radius circle of glowing runes centered on the point of impact. While you're inside that area, your hammer glows with matching runes, and you gain a +3 bonus to attack and damage rolls made with this hammer. The rune circle disappears after 1 minute, when you create another rune circle, or when you dismiss the rune circle as a bonus action. This hammer regains 1d3 expended charges daily at dawn.\",\n\tweight : 2,\n\taction : [[\"bonus action\", \" (start/end)\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /^(?=.*hammer)(?=.*runic)(?=.*focus).*$/i,\n\t\tname : \"Hammer of Runic Focus\",\n\t\tsource : [[\"BoMT\", 67]],\n\t\tdescription : \"Versatile (1d10); +2 to hit/damage while inside its circle\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"house of cards\"] = {\n\tname : \"House of Cards\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"As an action once per dawn, I can have this deck of cards deal themselves into a shelter centered on a point within 30 ft. It can be any shape that fits in a 40-ft cube, with 1 door and up to 4 windows, that only I can open or close. It has 15 AC, 50 HP, and lasts for 24 hours, I dismiss it as an action, or it reaches 0 HP.\",\n\tdescriptionLong : \"This deck of cards is decorated with geometric shapes that have a protective motif. As an action once per dawn, I can cause the cards to transform into a shelter made of cards centered on a point within 30 ft. It can be any shaped I want that fits in a 40-ft cube. It has a floor, a roof, one door and up to four windows, and only I can open or close them. It has a comfortable temperature inside, AC 15, 50 HP, and immunity to poison and psychic damage. It lasts for 24 hours, until I dismiss it as an action, or until it is reduced to 0 HP. When the shelter's duration ends, it transforms back into a deck of cards in my hand.\",\n\tdescriptionFull : \"This deck of cards is decorated with geometric shapes that have a protective motif. While you're holding the deck, you can use an action to shuffle it and cause the cards to deal themselves out and transform into a shelter made of cards. The shelter can be shaped however you desire, but it must fit in a 40-foot cube centered on a point within 30 feet of you. The shelter has one door and up to four windows, and only you can open or close them. It has a floor and a roof, and it maintains a comfortable temperature inside.\"+\n\t\"\\n   The shelter has AC 15, 50 hit points, and immunity to poison and psychic damage. The shelter lasts for 24 hours, until you dismiss it as an action, or until it is reduced to 0 hit points. When the shelter's duration ends, it transforms back into a deck of cards and appears in your hand. Once the deck has transformed into a shelter, it can't be used again until the next dawn.\",\n\taction : [[\"action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"jester's mask\"] = {\n\tname : \"Jester's Mask\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a bard, sorcerer, or warlock\",\n\tprereqeval : function (v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock ? true : false; },\n\tdescription : \"I can use this harlequin mask as a spellcasting focus. It adds a +3 bonus to my spell attacks and spell save DCs that use Charisma. Once per dawn when I roll a 1 on a d20, I can change it to a 20. As a reaction once per dawn when I'm hit by an attack roll, I can teleport 30 ft to an empty space I can see, taking no damage.\",\n\tdescriptionLong : \"While I'm wearing this colorful, harlequin domino mask edged with pearls, it grants me:\"+\n\t\"\\u2022 Charismatic Focus: I can use it as a spellcasting focus and it grants me a +3 bonus to spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"+\n\t\"\\u2022 Marvelous Escape: As a reaction once per dawn when a creature hits me with an attack roll, I can teleport in a puff of smoke and sparkles instead of taking damage. I teleport to an empty space I can see within 30 ft, along with anything I'm wearing or carrying.\"+\n\t\"\\u2022 Topsy-Turvy: Once per dawn when I roll a 1 on a d20, I can treat it as a 20 instead.\",\n\tdescriptionFull : \"This colorful, harlequin domino mask is edged with pearls. While wearing this mask, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Charismatic Focus\") + \". You can use the mask as a spellcasting focus. You gain a +3 bonus to any spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"+\n\t\"\\n   \" + toUni(\"Marvelous Escape\") + \". When a creature hits you with an attack roll, you can use your reaction to disappear in a puff of smoke and colorful sparkles. You take no damage and instead teleport, along with anything you are wearing or carrying, to an unoccupied space you can see within 30 feet of yourself. Once this reaction is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Topsy-Turvy\") + \". When you roll a 1 on a d20, you can treat the roll as if you rolled a 20 instead. Once this property is used, it can't be used again until the next dawn.\",\n\taction : [[\"reaction\", \" (escape)\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Jester's Mask - Marvelous Escape\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Jester's Mask - Topsy-Turvy\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type !== \"prepare\" && ability === 6) return 3;\n\t\t\t},\n\t\t\t\"While wearing the Jester's Mask, I gain a +3 bonus to any spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"\n\t\t]\n\t}\n};\nMagicItemsList[\"plate of knight's fellowship\"] = {\n\tname : \"Plate of Knight's Fellowship\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"armor (plate)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This gleaming set of silver-and-gold plate armor never tarnishes. As a bonus action once per dawn, I can use it to summon a warrior spirit (knight) to an empty spot within 30 ft. It lasts for 1 minute or until reduced to 0 HP. It is an ally to me, shares my initiative and obeys my commands. See the Companion page.\",\n\tdescriptionFull : \"This gleaming set of silver-and-gold plate armor never tarnishes.\"+\n\t\"\\n   While wearing this armor, you can use a bonus action to summon the spirit of a warrior to your aid. The spirit's corporeal form manifests in an unoccupied space of your choice within 30 feet of you, and it uses the knight stat block. The spirit disappears when it drops to 0 hit points or after 1 minute, whichever comes first.\"+\n\t\"\\n   The spirit is an ally to you and your companions. In combat, the spirit shares your initiative count but takes its turn immediately after yours. The spirit obeys your commands (no action required by you); if you don't issue any commands, the spirit takes the Dodge action and uses its movement to avoid danger.\"+\n\t\"\\n   Once this bonus action is used, it can't be used again until the next dawn.\",\n\tweight : 65,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"bonus action\", \"\"]],\n\tarmorAdd : {\n\t\tselect : \"Plate of Knight's Fellowship\",\n\t\toptions : [\"Plate of Knight's Fellowship\"]\n\t},\n\tcreaturesAdd : [[\"Knight\"]],\n\tcreatureOptions : [{\n\t\tname : \"Knight\",\n\t\tsource : [[\"SRD\", 400], [\"M\", 347]],\n\t\teval : function(prefix) {\n\t\t\tValue(prefix + \"Comp.Desc.Name\", \"Warrior Spirit\");\n\t\t},\n\t\tsize : 3,\n\t\ttype : \"Humanoid\",\n\t\talignment : \"any alignment\",\n\t\tac : 18,\n\t\thp : 52,\n\t\thd : [8, 8],\n\t\tspeed : \"30 ft\",\n\t\tscores : [16, 11, 14, 11, 11, 15],\n\t\tsaves : [\"\", \"\", 4, \"\", 2, \"\"],\n\t\tpassivePerception : 10,\n\t\tlanguages : \"any one language (usually Common)\",\n\t\tchallengeRating : \"3\",\n\t\tproficiencyBonus : 2,\n\t\tattacksAction : 2,\n\t\tattacks : [{\n\t\t\tname : \"Greatsword\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"slashing\"],\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Heavy, two-handed; Two greatsword attacks as an Attack action\"\n\t\t}, {\n\t\t\tname : \"Heavy Crossbow\",\n\t\t\tability : 2,\n\t\t\tdamage : [1, 10, \"piercing\"],\n\t\t\trange : \"100/400 ft\",\n\t\t\tdescription : \"Ammunition, heavy, loading, two-handed\"\n\t\t}],\n\t\tactions : [{\n\t\t\tname : \"Multiattack\",\n\t\t\tdescription : \"As an action on its turn, the knight can make two melee attacks.\"\n\t\t} ,{\n\t\t\tname : \"Leadership (Recharges after a Short or Long Rest)\",\n\t\t\tdescription : \"As an action, the knight can activate this ability. Then, for 1 minute, the knight can utter a special command or warning whenever a nonhostile creature that it can see within 30 ft of it makes an attack roll or save. The creature can add +1d4 to its roll provided it can hear and understand the knight. A creature can benefit from only one Leadership die at a time. This effect ends if the knight is incapacitated.\"\n\t\t}, {\n\t\t\tname : \"Parry\",\n\t\t\tdescription : \"As a reaction, the knight can add +2 AC against one melee attack that would hit it. To do so, the knight must see the attacker and be wielding a melee weapon.\"\n\t\t}],\n\t\tfeatures : [{\n\t\t\tname : \"Brave\",\n\t\t\tdescription : \"The knight has advantage on saving throws against being frightened.\"\n\t\t}, {\n\t\t\tname : \"Summoned\",\n\t\t\tdescription : \"The warrior spirit is an ally to you and your companions. It shares your initiative count but takes its turn immediately after yours. The spirit obeys your commands (no action), or takes the Dodge action and uses its movement to avoid danger if issued no commands. The spirit disappears when it drops to 0 hit points or after 1 minute, whichever comes first.\"\n\t\t}]\n\t}]\n};\nMagicItemsList[\"ring of puzzler's wit\"] = {\n\tname : \"Ring of Puzzler's Wit\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This gold ring bears a fluorite stone and is enchanted to sharpen the wearer's mind. The ring has 3 charges and regains 1d4-1 expended charges daily at dawn. When I make an Intelligence check, I can expend 1 charge to grant myself advantage on the check.\",\n\tdescriptionFull : \"This gold ring bears a fluorite stone and is enchanted to sharpen the wearer's mind.\"+\n\t\"\\n   The ring has 3 charges and regains 1d4 - 1 expended charges daily at dawn. When you make an Intelligence check, you can expend 1 charge to grant yourself advantage on the check.\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4-1\"\n};\nMagicItemsList[\"rod of hellish flames\"] = {\n\tname : \"Rod of Hellish Flames\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"rod\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"I can use this black iron rod as an arcane focus and it grants me resistance to fire and necrotic damage. Once per dawn I can use it to cast Hellish Rebuke as a 4th-level spell (save DC 16). When I cast a spell that deals fire or necrotic damage, I can once per dawn use it to maximize the damage instead of rolling.\",\n\tdescriptionFull : \"Glowing cinders orbit the flanged head of this black iron rod.\"+\n\t\"\\n   This rod can be used as an arcane focus. While holding this rod, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Hellish Resistance\") + \". You have resistance to fire and necrotic damage.\"+\n\t\"\\n   \" + toUni(\"Searing Rebuke\") + \". You can cast the Hellish Rebuke spell as a 4th-level spell (save DC 16) from the rod. Once you use the rod to cast the spell, the rod can't cast the spell again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Surge of Brimstone\") + \". Whenever you cast a spell that deals fire or necrotic damage, you can use the rod to deal the maximum damage instead of rolling. Once this property is used, it can't be used again until the next dawn.\",\n\tweight : 2,\n\textraLimitedFeatures : [{\n\t\tname : \"Rod of Hellish Flames (Hellish Rebuke)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Rod of Hellish Flames (maximize)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tdmgres : [\"Fire\", \"Necrotic\"],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"hellish rebuke\"],\n\t\tselection : [\"hellish rebuke\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"hellish rebuke\" : {\n\t\t\tdescription : \"Cast when taking damage, creature that dealt damage takes 5d10 Fire damage; save halves\",\n\t\t\tchanges : \"Using the Rod of Hellish Flames, I cast Hellish Rebuke as if I'm using a 4th-level spell slot, doing 5d10 damage, once per dawn.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"rogue's mantle\"] = {\n\tname : \"Rogue's Mantle\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This dark, hooded mantle of thick cloth gives me +60 ft darkvision. As a bonus action, I can use it to teleport 30 ft from and into dim light or darkness, to an empty space I can see. I then have advantage on my first attack before my turn ends. Also, I can use it to cast Antagonize once per dawn (save DC 15).\",\n\tdescriptionFull : \"This dark, hooded mantle of thick cloth is infused with secretive and deceptive magic. While wearing it, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Darkvision\") + \". You gain darkvision within a range of 60 feet. If you already have darkvision, the mantle increases your darkvision's range by 60 feet instead.\"+\n\t\"\\n   \" + toUni(\"Move in Shadows\") + \". While you are in dim light or darkness, you can use a bonus action to teleport, along with anything you are wearing or carrying, up to 30 feet to an unoccupied space you can see that is also in dim light or darkness. You then have advantage on the first melee attack you make before the end of the turn.\"+\n\t\"\\n   \" + toUni(\"Willful Enmity\") + \". You can cast the Antagonize spell (save DC 15) from the mantle. Once the mantle has cast the spell, it can't cast the spell again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Antagonize\",\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\taction : [[\"bonus action\", \" (teleport)\"]],\n\tfixedDC : 15,\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"antagonize\"],\n\t\tselection : [\"antagonize\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"ruinous flail\"] = {\n\tname : \"Ruinous Flail\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"weapon (flail)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This ash-gray, cold to the touch flail +1 deals double damage to objects and structures. Once per dawn, I can have a creature hit by it make a DC 15 Con save or be poisoned for 1 minute and take 2d4 necrotic damage at the start of each of its turns. It can repeat the save at the end of each of its turns to end the effects.\",\n\tdescriptionFull : \"This ash-gray flail is cold to the touch. You gain a +1 bonus to attack and damage rolls made with this magic weapon, and it deals double damage to objects and structures.\"+\n\t\"\\n   Additionally, when you hit a creature with this weapon, you can force the creature to make a DC 15 Constitution saving throw. On a failed save, the creature has the poisoned condition for 1 minute. The poisoned creature takes 2d4 necrotic damage at the start of each of its turns. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Once this property is used in this way, it can't be used again until the next dawn.\",\n\tweight : 2,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"flail\",\n\t\tregExpSearch : /^(?=.*ruinous)(?=.*flail).*$/i,\n\t\tname : \"Ruinous Flail\",\n\t\tsource : [[\"BoMT\", 37]],\n\t\tdescription : \"Double damage to objects; Once per dawn: target DC 15 Con save or poisoned, see item\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sage's signet\"] = {\n\tname : \"Sage's Signet\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"ring\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"This gilded ring with a beautiful engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury and two more spells depending on the signet each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\tdescriptionFull : \"This gilded ring bears a beautiful engraving and is imbued with powers of keen wisdom and foresight. While wearing this ring, you can use an action to cast the Augury spell from the ring. Once you use the ring to cast the spell, the ring can't cast the spell again until the next dawn.\"+\n\t\"\\n   Six varieties of Sage's Signet rings exist, each with a different signet (see the table below). A ring's signet determines its rarity as well as the additional spells it can cast. While wearing a Sage's Signet, you can cast each of its additional spells once from the ring using your Intelligence as the spellcasting ability. Once you cast each of the additional spells from the ring, it can't cast the spell again until the next dawn.\"+\n\t\"\\n\\nSignet\\tRarity\\tSpells\"+\n\t\"\\nBear\\tVery rare\\tEnlarge/Reduce, Polymorph\"+\n\t\"\\nHart\\tVery rare\\tAura of Vitality, Mass Cure Wounds\"+\n\t\"\\nLion\\tVery rare\\tDestructive Wave, Fireball\"+\n\t\"\\nSerpent\\tRare\\tFear, Hex\"+\n\t\"\\nSongbird\\tRare\\tCharm Person, Hypnotic Pattern\"+\n\t\"\\nWolf\\tVery rare\\tFreedom of Movement, Pass without Trace\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"each spell once\",\n\tchoices : [\"Bear (very rare)\", \"Hart (very rare)\", \"Lion (very rare)\", \"Serpent (rare)\", \"Songbird (rare)\", \"Wolf (very rare)\"],\n\t\"bear (very rare)\" :  {\n\t\tname : \"Sage's Signet (Bear)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful bear engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Enlarge/Reduce, and Polymorph each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"enlarge/reduce\", \"polymorph\"],\n\t\t\tselection : [\"augury\", \"enlarge/reduce\", \"polymorph\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"hart (very rare)\" :  {\n\t\tname : \"Sage's Signet (Hart)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful hart engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Aura of Vitality, and Mass Cure Wounds each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"aura of vitality\", \"mass cure wounds\"],\n\t\t\tselection : [\"augury\", \"aura of vitality\", \"mass cure wounds\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"lion (very rare)\" :  {\n\t\tname : \"Sage's Signet (Lion)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful lion engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Destructive Wave, and Fireball each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"destructive wave\", \"fireball\"],\n\t\t\tselection : [\"augury\", \"destructive wave\", \"fireball\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"serpent (rare)\" :  {\n\t\tname : \"Sage's Signet (Serpent)\",\n\t\trarity : \"rare\",\n\t\tdescription : \"This gilded ring with a beautiful serpent engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Fear, and Hex each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"fear\", \"hex\"],\n\t\t\tselection : [\"augury\", \"fear\", \"hex\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"songbird (rare)\" :  {\n\t\tname : \"Sage's Signet (Songbird)\",\n\t\trarity : \"rare\",\n\t\tdescription : \"This gilded ring with a beautiful songbird engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Charm Person, and Hypnotic Pattern each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"charm person\", \"hypnotic pattern\"],\n\t\t\tselection : [\"augury\", \"charm person\", \"hypnotic pattern\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"wolf (very rare)\" :  {\n\t\tname : \"Sage's Signet (Wolf)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful wolf engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Freedom of Movement, and Pass without Trace each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"freedom of movement\", \"pass without trace\"],\n\t\t\tselection : [\"augury\", \"freedom of movement\", \"pass without trace\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t}\n};\nMagicItemsList[\"shield of the tortoise\"] = {\n\tname : \"Shield of the Tortoise\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"shield\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This +1 shield curses me as soon as I attune to it. While I'm cursed by it, I can't discard it, I can't break my attunement to it, and I am sluggish. Sluggish means that my speed is halved and when I roll initiative, I always treat the roll on the d20 as a 1. I can't change my initiative by any means.\",\n\tdescriptionFull : \"While you are wielding this shield, you gain a +1 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". This item is cursed. Attuning to it extends the curse to you until you are targeted by a Remove Curse spell or similar magic. You cannot discard the shield, and remain attuned to it, as long as you are cursed. As long as you are cursed, you are sluggish. Your speed is halved. When you roll initiative, treat the roll on your d20 as a 1. You can't change your initiative by any means.\",\n\tweight : 6,\n\tshieldAdd : [\"Shield of the Tortoise\", 3, 6],\n\tspeed : { allModes : { bonus : \"/2\" } }\n};\nMagicItemsList[\"shrieking greaves\"] = {\n\tname : \"Shrieking Greaves\",\n\tsource : [[\"BoMT\", 174]], // Chapter 20: Flames\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"These black leg guards have 3 charges, regaining 1d3 used charges daily at dawn. As a bonus action, I can use 1 charge to gain +30 ft walking speed and adv. on Dex saves for 1 minute. They are cursed, see Notes page. I have disadv. on saves vs. being frightened and they scream if I start my turn frightened.\",\n\tdescriptionLong : \"These black leg guards are decorated with monstrous skulls screaming in terror. They have 3 charges, regaining 1d3 used charges daily at dawn. As a bonus action, I can use 1 charge to increase my walking speed by 30 ft, and gain advantage on Dexterity saves. These effects last for 1 minute. The greaves are cursed, and I can't remove or end my attunement to them. They give me disadvantage on saves against being frightened. When I start my turn frightened, they release an ear-piercing scream. I and all within 10 ft of me take 2d8 thunder damage and can make a DC 15 Constitution save to halve this damage.\",\n\tdescriptionFull : \"Each of these black leg guards is decorated with a motif of monstrous skulls screaming in terror.\"+\n\t\"\\n   The greaves have 3 charges. While wearing these greaves, you can use a bonus action to expend 1 charge to increase your walking speed by 30 feet, and you have advantage on Dexterity saving throws. These effects last for 1 minute. The greaves regain 1d3 expended charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". \" + BoMT.toDescrFull(BoMT[\"shrieking greaves\"]),\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\ttoNotesPage : [{\n\t\tname : \"Shrieking Greaves Curse\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"shrieking greaves\"]])\n\t}]\n};\nMagicItemsList[\"skull helm\"] = {\n\tname : \"Skull Helm\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"While wearing this skull-shaped helm, I have resistance to cold, poison, and necrotic damage. Additionally, I can cast Spirit of Death from it without requiring material components. Once I use the helm to cast the spell, it can't cast this spell again until the next dawn.\",\n\tdescriptionFull : \"While wearing this skull-shaped helm, you have resistance to cold, poison, and necrotic damage.\"+\n\t\"\\n   Additionally, while wearing the helm, you can cast Spirit of Death from it without requiring material components. Once you use the helm to cast the spell, the helm can't cast this spell again until the next dawn.\",\n\tdmgres : [\"Cold\", \"Poison\", \"Necrotic\"],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Spirit of Death\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"spirit of death\"],\n\t\tselection : [\"spirit of death\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"spirit of death\" : {\n\t\t\tcomponents : \"\",\n\t\t\tcompMaterial : \"\",\n\t\t\tdescription : \"Summon a Reaper Spirit; obeys commands; takes turn after mine; disappears at 0 hp\",\n\t\t\tchanges : \"While wearing the helmet, it requires no material components to cast Spirit of Death.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"sling of giant felling\"] = {\n\tname : \"Sling of Giant Felling\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (sling)\",\n\trarity : \"uncommon\",\n\tdescription : \"When I hit a creature with the Giant type with a ranged attack roll using this magic sling, the creature must succeed on a DC 18 Constitution saving throw or be knocked prone.\",\n\tdescriptionFull : \"When you hit a Giant creature with a ranged attack roll using this magic sling, the creature must succeed on a DC 18 Constitution saving throw or have the prone condition.\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"sling\",\n\t\tregExpSearch : /^(?=.*sling)(?=.*giant)(?=.*felling).*$/i,\n\t\tname : \"Sling of Giant Felling\",\n\t\tsource : [[\"BoMT\", 68]],\n\t\tdescription : \"Ammunition; Giants: DC 18 Con save or prone\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"spindle of fate\"] = {\n\tname : \"Spindle of Fate\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"wand\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This wand has 6 charges, regains 1d6 at dawn. I can use 1 charge to add my Prof Bonus to my initiative after the roll. As an action, I can use 2 charges to invoke a creature's doom. As a reaction when a creature within 60 ft makes an attack or save, I can use 3 charges to change the outcome. See Notes page.\",\n\tdescriptionFull : \"This wand is shaped like a drop spindle wrapped in red thread. The wand has 6 charges that can be used for the following properties:\"+\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"spindle of fate\"])+\n\t\"\\n   The wand regains 1d6 expended charges daily at dawn.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"spindle of fate\"]),\n\taction : [[\"action\", \" - Doom Foretold\"], [\"reaction\", \" - Twist of Fate\"]],\n\tweight : 1,\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : [\n\t\t\t\"This wand is shaped like a drop spindle wrapped in red thread. The wand has 6 charges, regaining 1d6 expended charges daily at dawn. The charges can be used for the following properties:\"+\n\t\t\tBoMT.to1stPerson(BoMT[\"spindle of fate\"])\n\t\t]\n\t}]\n};\nMagicItemsList[\"starshot crossbow\"] = {\n\tname : \"Starshot Crossbow\",\n\tnameTest : \"Starshot\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"weapon (any crossbow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This black wooden crossbow has pearl inlays depicting three constellations. It has 3 charges, regaining 1d3 at dawn. It produces its own ammo that lasts until it hits or misses a target. As a bonus action, I can use 1 charge to tap and invoke one of its constellations, see Notes page for the options.\",\n\tdescriptionLong : \"This crossbow of blackened wood has pearl inlays depicting three different constellations. It has 3 charges and regains 1d3 used charged daily at dawn. It produces its own ammo that lasts until it hits or misses a target. As a bonus action, I can use 1 charge to tap and invoke one of its constellations, see Notes for full text. Balance: next hit with the crossbow before my next turn ends heals me or another within 30 ft of me for 1d8+my Prof Bonus. Flames: until my next turn ends, the crossbow deals +2d8 fire damage. Rogue: until my next turn ends, I become invisible as well as anything I'm wearing or carrying.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"starshot crossbow\"]),\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /crossbow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /crossbow/i.test(v.baseWeaponName) && /Starshot/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(;|,)? ?(loading|Counts as magical)/ig, '');\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Starshot\" in the name of a crossbow, it will be treated as the magic weapon Starshot Crossbow. It produces its own ammunition, thus its loading property is removed.'\n\t\t]\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Features and Constellations\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"starshot crossbow\"])\n\t}]\n};\nMagicItemsList[\"stonemaker war pick\"] = {\n\tname : \"Stonemaker War Pick\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (war pick)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This war pick adds +1 to attack and damage rolls. I can use it to cast Meld into Stone once per dawn. If I score a critical hit with it against a creature that has 100 HP or fewer, I can use 1 charge to have the target make a DC 15 Con save or be petrified for 8 hours. It has 1d6+1 charges that can't be replenished.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic war pick. It has the following special properties:\"+\n\t\"\\n   \" + toUni(\"Meld into Stone\") + \". You can cast the Meld into Stone spell from this war pick. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Petrification\") + \". The war pick has 1d6 + 1 charges. If you score a critical hit against a creature that has fewer than 100 hit points, you can expend 1 charge from the war pick to have that creature make a DC 15 Constitution saving throw. On a failed save, the creature has the petrified condition for 8 hours. When the war pick has no charges remaining, it loses this property.\",\n\tweight : 2,\n\textraLimitedFeatures : [{\n\t\tname : \"Stonemaker War Pick - Meld into Stone\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Stonemaker War Pick - Petrification\",\n\t\tusages : \"1d6+1\",\n\t\trecovery : \"Never\"\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"meld into stone\"],\n\t\tselection : [\"meld into stone\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"war pick\",\n\t\tregExpSearch : /^(?=.*stonemaker)(((?=.*pick)(?=.*war))|((?!.*(heavy|great|light))(?=.*\\bpicks?\\b))).*$|\\bkuwas?\\b/i,\n\t\tname : \"Stonemaker War Pick\",\n\t\tsource : [[\"BoMT\", 68]],\n\t\tdescription : \"Can petrify on critical hit, see item\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sun staff\"] = {\n\tname : \"Sun Staff\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a cleric, druid, or wizard\",\n\tprereqeval : function (v) { return classes.known.cleric || classes.known.druid || classes.known.wizard ? true : false; },\n\tdescription : \"This +1 quarterstaff deals +1d8 fire damage on an attack. I can use it as a spellcasting focus. Once per dawn when I cast a spell using a spell slot, I can reroll my Prof Bonus of fire or radiant damage dice. As a bonus action, I can toggle it glowing with sunlight: 15-ft radius bright light and dim light for another 15 ft.\",\n\tdescriptionFull : \"Veins of sunstone run through this wooden staff. This staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it. When you hit with an attack roll using this staff, the target takes an extra 1d8 fire damage.\"+\n\t\"\\n   \" + toUni(\"Solar Focus\") + \". You can use the staff as a spellcasting focus. While holding the staff, you can reroll a number of damage dice up to your proficiency bonus when you use a spell slot to cast a spell that deals fire or radiant damage. You must use the new rolls. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Sunny Glow\") + \". As a bonus action, you can cause the staff to glow with sunlight. While glowing, the staff sheds bright light in a 15-foot radius and dim light for an additional 15 feet. The light lasts until you use another bonus action to extinguish it.\",\n\tweight : 4,\n\taction : [[\"bonus action\", \" (glow on/off)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"reroll damage\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*sun)(?=.*staff).*$/i,\n\t\tname : \"Sun Staff\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\tdescription : \"Versatile (1d8); +1d8 fire damage\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sword of the planes\"] = {\n\tname : \"Sword of the Planes\",\n\tnameTest : \"of the Planes\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (any sword)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This +3 weapon can tear the fabric of reality. As an action once per dawn, I can slice a rift to a location on another plane in an empty space within 5 ft of me. The rift can be up to 10 ft high and wide. Anything entering the rift is instantly transported. The DM determines where it goes exactly.\",\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this magic sword.\"+\n\t\"\\n   This sword can tear the fabric of reality, creating a temporary rift between planes. You can use your action to choose a different plane of existence from the one you're on and slice through an unoccupied space within 5 feet of yourself, creating a rift to that other plane. The rift can be up to 10 feet high and 10 feet wide, and it lasts for 1 minute. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   You can specify a target destination, such as the City of Brass on the Elemental Plane of Fire or the palace of Dispater on the second layer of the Nine Hells, and the rift opens in or near that destination (DM's discretion). If you are trying to reach the City of Brass, for example, the rift might appear on the Street of Steel, before the Gate of Ashes, or facing the city from across the Sea of Fire, at the DM's discretion.\"+\n\t\"\\n   Anything that enters the rift is instantly transported to the other plane, appearing in the unoccupied space nearest to the rift.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /of the Planes/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of the Planes\" in a the name of a sword, it will be treated as the magic weapon Sword of the Planes. It has +3 to hit and damage.'\n\t\t]\n\t}\n};\nMagicItemsList[\"telescopic transporter\"] = {\n\tname : \"Telescopic Transporter\",\n\tsource : [[\"BoMT\", 105]], // Chapter 13: Star\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tdescription : \"This enormous telescope allows me to view distant celestial objects, including stars, Wildspace systems, and Astral Sea phenomena. With 1 hour of calibrating, I can use it to attempt to travel to whatever it is pointed at. With a DC 17 Arcana check me and 8 others teleport, otherwise a mishap, see Notes.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"telescopic transporter\"]),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"telescopic transporter\"]])\n\t}]\n};\nMagicItemsList[\"tidecaller trident\"] = {\n\tname : \"Tidecaller Trident\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"weapon (trident)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This magic trident gives a +2 bonus to attack and damage made with it and advantage on attack rolls when used underwater. The trident has 3 charges, regaining 1d3 expended charges daily at dawn. I can expend these charges to cast spells (save DC 15): Control Water (1 charge) or Tsunami (3 charges).\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic trident. You also have advantage on attack rolls made with this weapon while underwater.\"+\n\t\"\\n   This trident has 3 charges. You can expend 1 charge to cast Control Water (save DC 15) from the trident or 3 charges to cast Tsunami (save DC 15) from it instead. The trident regains 1d3 expended charges daily at dawn.\",\n\tweight : 4,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"trident\",\n\t\tregExpSearch : /^(?=.*tidecaller)(?=.*trident).*$/i,\n\t\tname : \"Tidecaller Trident\",\n\t\tsource : [[\"BoMT\", 69]],\n\t\tdescription : \"Thrown, versatile (1d8); Adv. when underwater\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"control water\"],\n\t\tselection : [\"control water\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"tsunami\"],\n\t\tselection : [\"tsunami\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"voidwalker armor\"] = {\n\tname : \"Voidwalker Armor\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"armor (studded leather)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This black studded leather armor bears a red sheen. As a bonus action once per dawn, I can summon a projection of myself in an empty space within 30 ft. It's a translucent copy of me, immune to all damage and conditions, that I can make attacks and cast spells from. The projection disappears at the end of my turn.\",\n\tdescriptionFull : \"This black studded leather armor bears a red sheen. While wearing this armor, you can use a bonus action to summon a projection of yourself in an unoccupied space within 30 feet of yourself. The projection is a translucent copy of you that has immunity to all damage and conditions, and you can make attacks and cast spells with a range other than self as if standing in the projection's space. The projection disappears at the end of your turn. Once you use this bonus action, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". \" + BoMT.toDescrFull(BoMT[\"voidwalker armor\"]),\n\tweight : 13,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"bonus action\", \"\"]],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*voidwalker)(?=.*armou?r).*$/i,\n\t\tname : \"Voidwalker Armor\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\ttype : \"light\",\n\t\tac : 12,\n\t\tweight : 13,\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Voidwalker Curse\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"voidwalker armor\"]])\n\t}]\n};\nMagicItemsList[\"warrior's passkey\"] = {\n\tname : \"Warrior's Passkey\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This silver skeleton key is warm to the touch. I can use it to cast Knock while in its key form. As a bonus action, I can transform it into a magic +1 longsword that deals 1d10 force damage and I'm proficient with. The sword reverts back to a key if it leaves my grasp, I use a bonus action to do so, or my attunement ends.\",\n\tdescriptionFull : \"This silver skeleton key is warm to the touch. While holding the key in its key form, you can use an action to cast the Knock spell from the key.\"+\n\t\"\\n   \" + toUni(\"Transforming the Key\") + \". While holding the key, you can use a bonus action to transform it into a magic longsword. You are considered proficient with the sword, and you have a +1 bonus to attack and damage rolls made with it. On a hit, the sword deals 1d10 force damage. The item remains in its sword form until it leaves your grasp or you use another bonus action to revert it to its key form.\"+\n\t\"\\n   If you end your attunement to the item while it's in its sword form, it automatically reverts to its key form.\",\n\taction : [[\"bonus action\", \" (transform)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*warrior)(?=.*passkey).*$/i,\n\t\tname : \"Warrior's Passkey\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\tdamage : [1, 10, \"force\"],\n\t\tmodifiers : [1, 1],\n\t\tisAlwaysProf : true,\n\t\tdescription : \"\",\n\t\tweight : 0,\n\t\tselectNow : true\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"At will\",\n\t\tspells : [\"knock\"],\n\t\tselection : [\"knock\"],\n\t\tfirstCol : \"atwill\"\n\t}]\n};\nMagicItemsList[\"weapon of throne's command\"] = {\n\tname : \"Weapon of Throne's Command\",\n\tnameTest : \"of Throne's Command\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"weapon (any)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This +1 weapon grants me proficiency with Intimidation and Persuasion. It has 5 charges, regaining 1d4 at dawn. As a bonus action, I can expend charges to cast a spell from it with save DC 16: Command (1 charge), Zone of Truth (2), Compulsion (4), Banishment (4), or Dominate Person (5).\",\n\tdescriptionLong : \"This weapon is bedecked in ornate gold filigree and deep-blue and maroon jewels. I gain a +1 bonus to attack and damage rolls made with this weapon. Additionally, I gain proficiency in the Intimidation and Persuasion skills if I don't already have it. The weapon has 5 charges, regaining 1d4 expended charges daily at dawn. As a bonus action, I can expend 1 or more of its charges to cast one of the following spells (save DC 16): Command (1 charge), Zone of Truth (2 charges), Compulsion (4 charges), Banishment (4 charges), or Dominate Person (5 charges).\",\n\tdescriptionFull : \"This weapon is bedecked in ornate gold filigree and deep-blue and maroon jewels. You gain a +1 bonus to attack and damage rolls made with this weapon. Additionally, you gain proficiency in the Intimidation and Persuasion skills if you don't already have it.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". The weapon has 5 charges. You can use a bonus action and expend 1 or more of its charges to cast one of the following spells (save DC 16): Command (1 charge), Zone of Truth (2 charges), Compulsion (4 charges), Banishment (4 charges), or Dominate Person (5 charges).\"+\n\t\"\\n   The weapon regains 1d4 expended charges daily at dawn.\",\n\tskills : [\"Intimidation\", \"Persuasion\"],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\n\t},\n\tusages : 5,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\",\n\tfixedDC : 16,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"command\"],\n\t\tselection : [\"command\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"zone of truth\"],\n\t\tselection : [\"zone of truth\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"4 charges\",\n\t\tspells : [\"banishment\", \"compulsion\"],\n\t\tselection : [\"banishment\", \"compulsion\"],\n\t\tfirstCol : 4,\n\t\ttimes : 2\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"dominate person\"],\n\t\tselection : [\"dominate person\"],\n\t\tfirstCol : 5\n\t}],\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (/of throne'?s? command/.test(v.WeaponTextName)) {\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of Throne\\'s Command\" in a the name of a weapon, it will be treated as the magic weapon Weapon of Throne\\'s Command. It adds a +1 bonus to attack and damage rolls.'\n\t\t]\n\t},\n\tspellChanges : {\n\t\t\"command\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Command as a bonus action.\"\n\t\t},\n\t\t\"zone of truth\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Zone of Truth as a bonus action.\"\n\t\t},\n\t\t\"banishment\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Banishment as a bonus action.\"\n\t\t},\n\t\t\"compulsion\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Compulsion as a bonus action.\"\n\t\t},\n\t\t\"dominate person\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Dominate Person as a bonus action.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"winged ammunition\"] = {\n\tname : \"Winged Ammunition\",\n\tnameTest : \"Winged\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"uncommon\",\n\tdescription : \"Ranged weapon attack rolls made with this magic ammunition ignore half and three-quarters cover. In addition, attacking at long range doesn't impose disadvantage on ranged weapon attack rolls made with this ammunition.\",\n\tdescriptionFull : \"Ranged weapon attack rolls made with this ammunition ignore half and three-quarters cover. In addition, attacking at long range doesn't impose disadvantage on ranged weapon attack rolls made with this ammunition.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"wraps of unarmed prowess\"] = {\n\tname : \"Wraps of Unarmed Prowess, +1, +2, or +3\",\n\tnameTest : \"Wraps of Unarmed Prowess\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"wondrous item\",\n\tdescription : \"While wearing these cloth wraps, my unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks, and I gain a bonus to their attack and damage rolls. The bonus is determined by rarity: uncommon (+1), rare (+2), or very rare (+3).\",\n\tdescriptionFull : \"While you're wearing these cloth wraps, your unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage, and you gain a bonus to the attack and damage rolls of your unarmed strikes. The bonus is determined by the wraps' rarity: uncommon (+1), rare (+2), or very rare (+3).\",\n\tchoices : [\"+1 Wraps of Unarmed Prowess (uncommon)\", \"+2 Wraps of Unarmed Prowess (rare)\", \"+3 Wraps of Unarmed Prowess (very rare)\"],\n\t\"+1 wraps of unarmed prowess (uncommon)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +1\",\n\t\tnameTest : \"+1 Wraps of Unarmed Prowess\",\n\t\trarity : \"uncommon\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +1 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +1 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 1;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t},\n\t\"+2 wraps of unarmed prowess (rare)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +2\",\n\t\tnameTest : \"+2 Wraps of Unarmed Prowess\",\n\t\trarity : \"rare\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +2 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +2 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 2;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t},\n\t\"+3 wraps of unarmed prowess (very rare)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +3\",\n\t\tnameTest : \"+3 Wraps of Unarmed Prowess\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +3 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +3 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 3;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t}\n};\n\n\nSpellsList[\"antagonize\"] = {\n\tname : \"Antagonize\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A playing card depicting a rogue\",\n\tduration : \"Instantaneous\",\n\tsave : \"Wis\",\n\tdescription : \"1 crea 4d4+1d4/SL Psychic dmg, use rea to melee atk vs. crea I see (or dis. atk 1 rnd); save half, no rea\",\n\tdescriptionShorter : \"1 crea 4d4+1d4/SL Psychic dmg, rea melee atk vs. crea I see (or dis. atk 1 rnd); save half, no rea\",\n\tdescriptionFull : \"You whisper magical words that antagonize one creature of your choice within range. The target must make a Wisdom saving throw. On a failed save, the target takes 4d4 psychic damage and must immediately use its reaction to make a melee attack against another creature of your choice that you can see. If the target can't make this attack (for example, because there is no one within its reach or because its reaction is unavailable), the target instead has disadvantage on the next attack roll it makes before the start of your next turn. On a successful save, the target takes half as much damage only.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d4 for each slot level above 3rd.\"\n};\nSpellsList[\"spirit of death\"] = {\n\tname : \"Spirit of Death\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 4,\n\tschool : \"Necro\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A gilded playing card worth at least 400 gp and depicting an avatar of death\",\n\tduration : \"Conc, 1 h\",\n\tdescription : \"Summon a Reaper Spirit; obeys commands; takes turn after mine; disappears at 0 hp (400gp)\",\n\tdescriptionFull : \"You call forth a spirit that embodies death. The spirit manifests in an unoccupied space you can see within range and uses the reaper spirit stat block. The spirit disappears when it is reduced to 0 hit points or when the spell ends.\"+\n\t\"\\n   The spirit is an ally to you and your companions. In combat, the spirit shares your initiative count and takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue the spirit any commands, it takes the Dodge action and uses its movement to avoid danger.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the reaper spirit stat block.\"\n};\nSpellsList[\"spray of cards\"] = {\n\tname : \"Spray of Cards\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 2,\n\tschool : \"Conj\",\n\ttime : \"1 a\",\n\trange : \"S:15\" + (typePF ? \"-\" : \"\") + \"ft cone\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A deck of cards\",\n\tduration : \"Instantaneous\",\n\tsave : \"Dex\",\n\tdescription : \"All in area 2d10+1d10/SL Force dmg and blinded until their next turn ends; save halves \\u0026 not blinded\",\n\tdescriptionShorter : \"All in area 2d10+1d10/SL Force dmg, blinded till their next turn ends; save half \\u0026 not blinded\",\n\tdescriptionFull : \"You spray a 15-foot cone of spectral cards. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 2d10 force damage and has the blinded condition until the end of its next turn. On a successful save, a creature takes half as much damage only.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d10 for each slot level above 2nd.\"\n};\n\n// pub_20240521_VEoR.js\n// This file adds the magic item from the Vecna: Eve of Ruin adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"VEoR\"] = {\n\tname : \"Vecna: Eve of Ruin\",\n\tabbreviation : \"VEoR\",\n\tgroup : \"Adventure Books\",\n\turl : \"https://dndstore.wizards.com/us/en/product/924703/vecna-eve-of-ruin-digital-plus-physical-bundle\",\n\tdate : \"2024/05/21\"\n};\n\nMagicItemsList[\"chime of exile\"] = {\n\tname : \"Chime of Exile\",\n\tsource : [[\"VEoR\", 46]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This silver chime is engraved with delicate magic sigils. As an action once per dawn, I can hold the chime and cast the Banishment spell (save DC 20). If the target of the spell has 50 hit points or fewer, it automatically fails its saving throw.\",\n\tdescriptionFull : \"This silver chime is engraved with delicate magic sigils. While holding the chime, you can use an action to cast the Banishment spell (spell save DC 20). If the target of the spell has 50 hit points or fewer, it automatically fails its saving throw. Once the chime has been used to cast the spell, it can't be used this way again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Banishment\",\n\tfixedDC : 20,\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"banishment\"],\n\t\tselection : [\"banishment\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\n\n// pub_20240716_QftIS.js\n// This file adds the futuristic and magic item from the Quests from the Infinite Staircase adventure anthology to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"QftIS\"] = {\n\tname : \"Quests from the Infinite Staircase\",\n\tabbreviation : \"QftIS\",\n\tgroup : \"Adventure Books\",\n\turl : \"https://dndstore.wizards.com/us/en/product/928653/quests-from-the-infinite-staircase-digital-plus-physical-bundle\",\n\tdate : \"2024/07/16\"\n};\n\ntry {\n\tvar QftIS = { toDescrFull : BoMT.toDescrFull, to1stPerson : BoMT.to1stPerson };\n} catch (err) {\n}\nQftIS.replaceEnergyCellPlain = \">>Replacing the Energy Cell<<. While the >>THING<< has charges remaining, its energy cell can't be removed. Once the >>THING<< has 0 charges, you can replace the energy cell with a new cell by using an action or a bonus action.\"\nQftIS.replaceEnergyCell = \"\\n   \" + QftIS.replaceEnergyCellPlain.replace(\">>Replacing the Energy Cell<<\", toUni(\"Replacing the Energy Cell\"));\n\n// Futuristic items added as magic items, but set to be excluded by default\nMagicItemsList[\"antigravity belt\"] = {\n\tname : \"Antigravity Belt\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\", // not really magic items, so these use their own category \n\trarity : \"priceless\", // as per QftIS page 192\n\tdefaultExcluded : true,\n\tdescription : \"This belt has 10 charges per energy cell, which can be replaced as a (bonus) action if empty. As a bonus action, I can use charges to activate it for 1 min per charge, causing me to float in place. As a bonus action and when activating it, I can move 20 ft vertically. I can push off to move horizontally at half my speed.\",\n\tdescriptionLong : \"Metal tubes ring the lower edge of this wide belt powered by an energy cell stored in a metal case near the buckle. It has 10 charges per energy cell, which can be replaced as a (bonus) action when empty. As a bonus action, I can expend charges to activate the belt for 1 min per charge. While active, I float in place. As a bonus action and as part of activating it, I can ascend or descend up to 20 ft vertically. I can move myself horizontally by being pushed or towed or by scooting myself along a surface at half my walking speed. I can deactivate it as a bonus action; If I'm still levitating when it deactivates, I fall.\",\n\tdescriptionFull : \"Metal tubes ring the lower edge of this wide belt. It is powered by an energy cell stored in a metal case near the buckle. Placing a full energy cell in the belt gives the belt 10 charges.\"+\n\t\"\\n   \" + toUni(\"Activating the Belt\") + \". As a bonus action, you can expend any number of the belt's charges to activate it; the belt remains active for 1 minute per charge expended. You can use a bonus action to deactivate the belt early, but doing so doesn't recover any expended charges.\"+\n\t\"\\n   When you activate the belt, and as a bonus action while it remains active, you can rise or descend vertically up to 20 feet. You remain floating in place while the property is active, and you can move yourself horizontally by being pushed or towed or by scooting yourself along a surface, such as a wall or ceiling, at half your walking speed. If you are still levitating when the belt deactivates, you fall.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"belt\"),\n\tusages : 10,\n\trecovery : \"E-Cell\",\n\taction : [\n\t\t[\"bonus action\", \" (activate/stop)\"],\n\t\t[\"bonus action\", \"Replace Energy Cell\"]\n\t]\n};\nMagicItemsList[\"robot controller\"] = {\n\tname : \"Robot Controller\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This handheld device has 3 charges per energy cell, which can be replaced as a (bonus) action if empty. As an action, I can use 1 charge to Control one construct within 60 ft or Disrupt all within 30 ft to become incapacitated. They can make a DC 15 Wisdom save to resist and repeat the save. See Notes page.\",\n\tdescriptionFull : \"This small handheld device features a glass pane with a glowing display that responds to your touch.\"+\n\t\"\\n   The controller is powered by an energy cell stored in the device. Placing a full energy cell in the device gives the device 3 charges.\"+\n\t\"\\n   As an action while holding this device, you can expend 1 of its charges to cause one of the following effects:\"+\n\t\"\\n \\u2022 \" + toUni(\"Control\") + \". One Construct of your choice within 60 feet of you must succeed on a DC 15 Wisdom saving throw or have the charmed condition for 1 minute. While charmed in this way, the Construct obeys your verbal commands, and you and the Construct can communicate remotely with each other through the device. Whenever the charmed Construct takes damage, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\t\"\\n \\u2022 \" + toUni(\"Disrupt\") + \". Constructs of your choice within 30 feet of you must succeed on a DC 15 Wisdom saving throw or have the incapacitated condition for 1 minute. An incapacitated Construct can repeat the saving throw at the end of its turns, ending the effect on itself on a success.\",\n\tusages : 3,\n\trecovery : \"E-Cell\",\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : [\n\t\t\t\"This small handheld device features a glass pane with a glowing display that responds to my touch. It is powered by an energy cell, which gives it 3 charges. As an action or a bonus action, I can replace this energy cell with a new one, but only once it is empty.\",\n\t\t\t\"As an action, I can expend 1 charge to cause one of the following effects:\"+\n\t\t\t\" \\n \\u2022 Control: One construct of my choice within 60 ft of me must succeed on a DC 15 Wisdom saving throw or have the charmed condition for 1 minute. While charmed in this way, the Construct obeys my verbal commands, and we can communicate remotely with each other through the device. Whenever the charmed construct takes damage, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\t\t\t\" \\n \\u2022 Disrupt: All constructs of my choice within 30 ft of me must succeed on a DC 15 Wisdom saving throw or have the incapacitated condition for 1 minute. An incapacitated construct can repeat the saving throw at the end of its turns, ending the effect on itself on a success.\"\n\t\t]\n\t}]\n};\n// Futuristic Grenades\nWeaponsList[\"grenade, concussion\"] = {\n\tregExpSearch : /^(?=.*grenade)(?=.*concussion).*$/i,\n\tname : \"Concussion Grenade\",\n\tnameAlt : [\"Grenade, Concussion\"],\n\tsource : [[\"D\", 268]],\n\tlist : \"explosive\",\n\tability : 0,\n\ttype : \"Explosive\",\n\tdamage : [6, 6, \"force\"],\n\trange : \"60 ft\",\n\tweight : 1,\n\tdescription : \"All within 20-ft radius, Dex save halves\",\n\tabilitytodamage : false,\n\tmodifiers : [7, \"\"],\n\tdc : true,\n\tammo : \"grenade\",\n\tisNotWeapon : true,\n\tisAlwaysProf : false,\n\ttooltip : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\"\\n   A concussion grenade explodes in a concussive blast that fills a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d6 force damage on a failed save or half as much damage on a successful one.\",\n\tdefaultExcluded : true\n};\nif (MagicItemsList[\"grenade\"]) {\n\tAddFeatureChoice(MagicItemsList[\"grenade\"], false, \"Concussion Grenade\", {\n\t\tname : \"Concussion Grenade\",\n\t\tsortname : \"Grenade, Concussion\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"explosive, futuristic\",\n\t\trarity : \"priceless\",\n\t\tdefaultExcluded : true,\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. All creatures within 20 ft of an exploding concussion grenade take 6d6 force damage, but can make a DC 15 Dexterity save to halve that damage.\",\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\t\"\\n   A concussion grenade explodes in a concussive blast that fills a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d6 force damage on a failed save or half as much damage on a successful one.\",\n\t\tweaponsAdd : { select : [\"Concussion Grenade\"] },\n\t\teval : function() { // make sure the weapon and ammo are not excluded\n\t\t\tif (CurrentSources.weapExcl.eject(\"grenade, concussion\") !== -1) SetWeaponsdropdown();\n\t\t\tif (CurrentSources.ammoExcl.eject(\"grenade\") !== -1) SetAmmosdropdown();\n\t\t}\n\t}, false, true);\n\tAddFeatureChoice(MagicItemsList[\"grenade\"], false, \"Sleep Grenade\", {\n\t\tname : \"Sleep Grenade\",\n\t\tsortname : \"Grenade, Sleep\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"explosive, futuristic\",\n\t\trarity : \"priceless\",\n\t\tdefaultExcluded : true,\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. A soporific mist releases from a sleep grenade, then dissipates. All within 20 ft of it must make a DC 15 Con save or fall unconscious for 1 hour, until taking damage, or until another using an action to shake awake.\",\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\t\"\\n   A sleep grenade releases a cloud of soporific mist that fills a 20-foot-radius sphere, then dissipates. Each creature in that area must succeed on a DC 15 Constitution saving throw or have the unconscious condition for 1 hour. The condition ends on a creature early if the creature takes damage or if another creature uses an action to shake it awake.\"\n\t}, false, true);\n}\n// Futuristic Weapons\nMagicItemsList[\"needler pistol\"] = {\n\tname : \"Needler pistol\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This pistol has 10 charges per energy cell, which can be replaced as a (bonus) action once empty. As an action, I can use 1 charge to fire a burst needlelike darts from it in a 15-ft cone, dealing 8d4 piercing damage to all creatures in the area. Creatures can make a DC 15 Dexterity saving throw to half the damage.\",\n\tdescriptionFull : \"This strange pistol resembles a flask with a honeycomb of tubes sticking out its front. The weapon is powered by an energy cell stored at the base of the flask. Placing a full energy cell in the pistol gives the pistol 10 charges.\"+\n\t\"\\n   As an action while holding this pistol, you can expend 1 of its charges to fire a burst of glowing, needlelike darts from the pistol in a 15-foot cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 8d4 piercing damage on a failed save or half as much damage on a successful one.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\tusages : 10,\n\trecovery : \"E-Cell\",\n\tweight : 2, // Guess by MPMB\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*needler)(?=.*pistol).*$/i,\n\t\tname : \"Needler Pistol\",\n\t\tnameAlt : [\"Pistol, Needler\"],\n\t\tsource : [[\"QftIS\", 192]],\n\t\tability : 0,\n\t\ttype : \"Firearm\",\n\t\tdamage : [8, 4, \"piercing\"],\n\t\trange : \"15-ft Cone\",\n\t\tweight : 2, // Guess by MPMB\n\t\tdescription : \"Dex save for half damage; Ammunition, reload (10 shots)\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, \"\"],\n\t\tdc : true,\n\t\tammo : \"energy cell\",\n\t\tisAlwaysProf : false,\n\t\ttooltip : \"As an action while holding this pistol, you can expend 1 of its charges to fire a burst of glowing, needlelike darts from the pistol in a 15-ft cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 8d4 piercing damage on a failed save or half as much damage on a successful one.\" + QftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"paralysis pistol\"] = {\n\tname : \"Paralysis Pistol\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"technological device\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This pistol has 6 charges per energy cell, which can be replaced as a (bonus) action once empty. As an action, I can use 1 charge to fire the pistol at a creature I can see within 60 ft, which must then make a DC 15 Constitution save or be paralyzed for 1 min. The target can repeat the save at the end of each of its turns.\",\n\tdescriptionFull : \"This curious-looking pistol is shaped like a large, glass bulb with a handle on the bottom and brass prongs protruding from its front. The weapon is powered by an energy cell stored in its grip. Placing a full energy cell in the pistol gives the pistol 6 charges.\"+\n\t\"\\n   As an action while holding this pistol, you can expend 1 of its charges to fire a ray of crackling energy at a creature you can see within 60 feet of yourself. The target must succeed on a DC 15 Constitution saving throw or have the paralyzed condition for 1 minute. At the end of each of the target's turns, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\tusages : 6,\n\trecovery : \"E-Cell\",\n\tweight : 2, // Guess by MPMB\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*paralysis)(?=.*pistol).*$/i,\n\t\tname : \"Paralysis pistol\",\n\t\tnameAlt : [\"Pistol, Paralysis\"],\n\t\tsource : [[\"QftIS\", 192]],\n\t\tability : 0,\n\t\ttype : \"Firearm\",\n\t\tdamage : [\"Con save\", \"\", \"Paralyzed\"],\n\t\trange : \"60 ft\",\n\t\tweight : 2, // Guess by MPMB\n\t\tdescription : \"Paralyzed for 1 min; Repeat save at end of turn; Ammunition, reload (6 shots)\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, \"\"],\n\t\tdc : true,\n\t\tammo : \"energy cell\",\n\t\tisAlwaysProf : false,\n\t\ttooltip : \"As an action while holding this pistol, you can expend 1 of its charges to fire a ray of crackling energy at a creature you can see within 60 ft of yourself. The target must succeed on a DC 15 Constitution saving throw or have the paralyzed condition for 1 minute. At the end of each of the target's turns, it can repeat the saving throw, ending the effect on itself on a success.\" + QftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\t\tselectNow : true\n\t}]\n};\n// Futuristic Armour\nQftIS.poweredArmor = [\n\t\"This suit of technologically advanced plate armor includes an under-suit that can fully seal, a helmet with a full face mask and crystal lenses in the eyeholes, and a set of gauntlets. The armor is powered by an energy cell stored in a compartment on the thigh plate.\",\n\t\"Placing a full energy cell in the armor gives the armor 24 charges. A suit of powered armor functions as a suit of normal plate armor, even when it has 0 charges remaining.\",\n\t\">>Activating the Armor<<. As an action, you can expend any number of the armor's charges to activate it; the armor remains active for 1 hour per charge expended. You can use a bonus action to deactivate the armor early, but doing so doesn't recover any expended charges.\",\n\t\"While the armor is active, you gain the following benefits:\"+\n\t\"\\n \\u2022 >>Augmented Physicality<<. You have advantage on Strength checks, and your carrying capacity is doubled.\"+\n\t\"\\n \\u2022 >>Environmental Adaptation<<. The armor seals airtight and provides its own atmosphere. You can breathe normally in any environment and withstand extreme temperatures, and you're unaffected by harmful gases, as well as contact and inhaled poisons.\"+\n\t\"\\n \\u2022 >>Force Field<<. When you would take damage, you can use your reaction to expend 1 of the armor's charges to deploy a defensive force field. Roll 3d10 and reduce the damage taken by the total rolled.\"+\n\t\"\\n \\u2022 >>Propulsion<<. As a bonus action, you can expend 1 of the armor's charges to gain a flying speed equal to your walking speed for 1 minute. If you're airborne when this duration ends, you fall.\",\n\tQftIS.replaceEnergyCellPlain.replace(/>>THING<</g, \"armor\")\n]\nMagicItemsList[\"powered armor\"] = {\n\tname : \"Powered Armor\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"technological device\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This plate armor has 24 charges per energy cell, which can be replaced as a (bonus) action if empty. As an action, I can expend charges to active it for 1 hour per charge. While active, I gain adv. on Str, double carrying capacity, have my own atmosphere to breath in, and can use Force Field and Propulsion, see Notes.\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.poweredArmor),\n\tusages : 24,\n\trecovery : \"E-Cell\",\n\tweight : 65,\n\taction : [\n\t\t[\"action\", \"Activate Powered Armor (1 h/charge)\"],\n\t\t[\"reaction\", \"Powered Armor: Force Field (1 charge)\"],\n\t\t[\"bonus action\", \"Powered Armor: Propulsion (1 charge)\"],\n\t\t[\"bonus action\", \"Replace Energy Cell\"]\n\t],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*powered)(?=.*armou?r).*$/i,\n\t\tname : \"Powered Armor\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"heavy\",\n\t\tac : 18,\n\t\tstealthdis : true,\n\t\tweight : 65,\n\t\tstrReq : 15\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.poweredArmor)\n\t}]\n};\n\n// Magic Items\nQftIS.heretic = [\n\t\"The blasphemous weapon Heretic was created by a cult to steal power from good-aligned gods. The blade hungers to strike down servants of the Upper Planes and weaken the forces of good.\",\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. Heretic has 6 charges for the following properties; the sword regains 1d4 + 1 charges daily at dawn:\"+\n\t\"\\n \\u2022 >>Destroy Devotion<<. Once per turn when you hit a creature with this weapon, you can expend 1 of its charges to attempt to render the target powerless. The target must succeed on a DC 17 Constitution saving throw or have the paralyzed condition until the start of your next turn. Celestials have disadvantage on the save.\"+\n\t\"\\n \\u2022 >>Faith Hunter<<. While holding the sword, you can use an action to expend 1 or more of its charges to cast one of the following spells from it: Detect Evil and Good (1 charge), Fly (2 charges), or True Seeing (3 charges).\",\n\t\">>Sentience<<. Heretic is a sentient, chaotic evil weapon with an Intelligence of 17, a Wisdom of 17, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\n\t\"The weapon can speak, read, and understand Common and Giant, and it can communicate with its wielder telepathically. Its voice is soft and deep but rises in a wild furor when it's aware Celestials or worshipers of good-aligned deities are present. While you are attuned to it, Heretic also understands every language you know.\",\n\t\">>Personality<<. Heretic craves the destruction of good-aligned gods and their supporters. The blade is condescending and snobby, especially in the company of priests and other pious folk, at whom it often directs sneering comments. When Heretic identifies its quarry, it erupts in a frenzied need for violence.\"\n];\nMagicItemsList[\"heretic\"] = {\n\tname : \"Heretic\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"legendary\",\n\tdescription : \"This sentient longsword adds +3 to hit and damage and has 6 charges, regaining 1d4+1 at dawn. Once per turn on a hit with it, I can use 1 charge to force a DC 17 Con save or paralyze until my next turn. As an action, I can cast spells from it: Detect Evil and Good (1 charge), Fly (2 charges), or True Seeing (3 charges).\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.heretic),\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a non-good creature\",\n\tprereqeval : function(v) { return !/good/i.test(What(\"Alignment\")); },\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /heretic/i,\n\t\tname : \"Heretic\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\tdescription : \"Versatile (1d10); On hit, 1 charge to paralyze (DC 17 Con save)\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.heretic) + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"detect evil and good\"],\n\t\tselection : [\"detect evil and good\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"fly\"],\n\t\tselection : [\"fly\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"true seeing\"],\n\t\tselection : [\"true seeing\"],\n\t\tfirstCol : 2\n\t}]\n}\nQftIS.staffOfRuling = [\n\t\"An ornate carving of a serpent adorned with a coursing river spirals down the length of this redand-gold staff. While you're holding it, you can use an action to produce one of the following effects. Once the staff has produced an effect, it can't produce that effect again until the next dawn.\",\n\t\">>Orb of Lightning<<. You create a Small orb of lightning in an unoccupied space you can see within 60 feet of yourself. You concentrate on this orb as if concentrating on a spell. As a bonus action, you can move the orb up to 20 feet in any direction.\",\n\t\"When your concentration ends, or when a creature enters the orb's space or starts its turn there, the orb detonates in a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking lightning damage equal to the total accumulated damage on a failed save, or half as much damage on a successful one; the orb's base damage is 6d6, and if at the end of your turn the orb hasn't detonated, its damage increases by 2d6, to a maximum of 10d6.\",\n\t\">>Staff to Snake<<. You throw the staff to an unoccupied space within 10 feet of you, and the staff becomes a giant poisonous snake. The snake is under your control and shares your initiative count, but it takes its turn immediately after yours.\",\n\t\"On your turn, you can mentally command the snake if it is within 60 feet of you and you don't have the incapacitated condition. You decide what action the snake takes and where it moves during its turn, or you can issue it a general command, such as to attack your enemies or guard a location.\",\n\t\"If you use a bonus action to speak the command word again, or if the snake is reduced to 0 hit points, the snake reverts to staff form in its current space.\",\n\t\">>Thunderclap<<. You point the staff skyward, producing a fearsome thunderclap. Each creature of your choice in a 30-foot-radius sphere centered on you must succeed on a DC 15 Constitution saving throw or have the deafened and frightened conditions until the end of your next turn.\"\n];\nMagicItemsList[\"staff of ruling\"] = {\n\tname : \"Staff of Ruling\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tdescription : \"As an action, I can use this redand-gold staff with an ornate serpent carving to produce one of several effects: Orb of Lightning, Staff to Snake, or Thunderclap. Once the staff has produced an effect, it can't produce that effect again until the next dawn. See Notes page for the effect descriptions.\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.staffOfRuling),\n\tattunement : true,\n\tweight : 4,\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.staffOfRuling)\n\t}],\n\taction : [[\"action\", \"\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Staff of Ruling: Orb of Lightning\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Staff of Ruling: Staff to Snake\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Staff of Ruling: Thunderclap\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}]\n}\n// pub_al_20190917_ALPG-v9.1.js\n// This file adds the winged aasimar/tiefling from the Adventurers League Player's Guide v9.1: Inglorious Redemption to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"ALPGs9\"] = {\n\tname : \"AL Player's Guide v9.1: Inglorious Redemption\",\n\tabbreviation : \"ALPGs9\",\n\tgroup : \"Adventurers League\",\n\turl : \"https://www.dropbox.com/s/8r1cwjrk6n2rzyo/AL-Players-Guide-v9.1-Forgotten-Realms.pdf?dl=1\", // used to be https://www.dmsguild.com/product/208178\n\tdate : \"2019/09/17\",\n\tdefaultExcluded : true\n};\n\n/*\n\tAdd this source to the Aasimar from VGtM and the Winged Tiefling variant from SCAG\n\tAlso, add a winged variant to the three Aasimar subraces from VGtM\n*/\n[\n\t[\"fallen aasimar\", false],\n\t[\"protector aasimar\", false],\n\t[\"scourge aasimar\", false],\n\t[\"tiefling-winged\", true],\n\t[\"feral tiefling-winged\", true]\n].forEach(function (rac) {\n\tvar rObj = rac[1] ? RaceSubList[rac[0]] : RaceList[rac[0]];\n\tif (!rObj) return;\n\trObj.source = (isArray(rObj.source[0]) ? rObj.source : [rObj.source]).concat([[\"ALPGs9\", 6]]);\n\tif (rac[0].indexOf(\"aasimar\") !== -1) {\n\t\tAddRacialVariant(rac[0], \"winged\", {\n\t\t\tregExpSearch : /wing/i,\n\t\t\tname : \"Winged \" + rObj.name,\n\t\t\tsource : [[\"ALPGs9\", 6]],\n\t\t\tplural : \"Winged \" + rObj.plural,\n\t\t\tspeed : {\n\t\t\t\twalk : { spd : 30, enc : 20 },\n\t\t\t\tfly : { spd : 30, enc : 0 }\n\t\t\t},\n\t\t\ttrait : \"Winged \" + rObj.trait.replace(/\\)(\\r|\\n|.)+/, \")\\n\\nHealing Hands:\\n   As an action, once per long rest, I can touch to heal for my level in HP.\\nWings:\\n   Once I'm 5th level, I sprout feathered wings from my shoulder blades that give me a flying speed of 30 feet when I'm not wearing heavy armor.\"),\n\t\t\tfeatures : {\n\t\t\t\t\"healing hands\" : {\n\t\t\t\t\tname : \"Healing Hands\",\n\t\t\t\t\tusages : 1,\n\t\t\t\t\tminlevel : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\n\t\t\t\t\taction : [[\"action\", \"\"]]\n\t\t\t\t}\n\t\t\t},\n\t\t\tabilitySave : \"\",\n\t\t\tspellcastingAbility : \"\",\n\t\t\tspellcastingBonus : \"\"\n\t\t});\n\t}\n});\n"
  },
  {
    "path": "WotC material/all_WotC_unearthed_arcana.js",
    "content": "if (sheetVersion < 14000006) { throw \"This add-on script was made for a newer version of the sheet (v14.0.6-beta). Please use this required version or a later version (but lower than v15.0.0) and try again.\\n\\nYou can get the different versions at www.flapkan.com.\\n\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };\nif (sheetVersion >= 15000000) { throw \"This add-on script was made for a lower version of the sheet (one before v15.0.0). Please use the required version (v14.0.6-beta) or a later version and try again.\\n\\nYou can get the different versions at www.flapkan.com.\\n\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };\nvar iFileName = \"all_WotC_unearthed_arcana.js\";\nRequiredSheetVersion(\"14.0.6-beta\", \"15.0.0\");\n\n// ua_20150202_Eberron.js\r\n// This file adds the content from the Unearthed Arcana: Eberron article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:E\"] = {\r\n\tname : \"Unearthed Arcana: Eberron\",\r\n\tabbreviation : \"UA:E\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Eberron_v1.1.pdf\",\r\n\tdate : \"2015/02/02\"\r\n};\r\n\r\n// Adds three races:\r\n// Changeling\r\nRaceList[\"changeling-ua\"] = {\r\n\tregExpSearch : /changeling/i,\r\n\tname : \"Changeling\",\r\n\tsource : [[\"UA:E\", 1]],\r\n\tplural : \"Changelings\",\r\n\tsize : 3,\r\n\tskills : [\"Deception\"],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 2],\r\n\tage : \" reach adulthood in their early teens and live around 80 years\",\r\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 1],\r\n\ttrait : \"Changeling (+1 Dexterity, +1 Charisma)\\nShapechanger:\\n   As an action, I can polymorph into any humanoid of my size that I have seen, or back into my true form.\\n   However, my equipment does not change with me.\\n   If I die, I revert to my natural appearance.\",\r\n\taction : ['action', 'Polymorph']\r\n};\r\n// Warforged\r\nRaceList[\"warforged-ua\"] = {\r\n\tregExpSearch : /warforged/i,\r\n\tname : \"Warforged\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tplural : \"Warforged\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\r\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 0],\r\n\ttrait : \"Warforged (+1 Strength, +1 Constitution)\\nLiving Construct:\\n   Even though I was constructed, I am a living creature. I am immune to disease. I do not need to eat or breathe, but I can ingest food and drink if I wish.\\n   Instead of sleeping, I enter an inactive state for 4 hours each day. I do not dream in this state; I am fully aware of my surroundings and notice approaching enemies and other events as normal. I still need 8 hours for a long rest.\",\r\n\textraAC : {\r\n\t\tname : \"Composite Plating\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC.\"\r\n\t}\r\n};\r\n// Shifter and its 6 subraces\r\nRaceList[\"shifter-ua\"] = {\r\n\tregExpSearch : /shifter/i,\r\n\tname : \"Shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at the end of their teens and live around 100 years\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity and +1 to other ability score depending on type of shifter\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\ttrait : \"Shifter (+1 Dexterity and +1 to other ability score depending on type of shifter)\\n   Use the \\\"Racial Options\\\" button to select type of shifter.\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and another bonus depending on the type of shifter.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"shifter-ua\", \"beasthide\", {\r\n\tregExpSearch : /beasthide/i,\r\n\tname : \"Beasthide shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Beasthide shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 1, 1, 0, 0, 0],\r\n\ttrait : \"Beasthide Shifter (+1 Dexterity, +1 Constitution)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain a +1 bonus to my AC.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"cliffwalk\", {\r\n\tregExpSearch : /cliffwalk/i,\r\n\tname : \"Cliffwalk shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Cliffwalk shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Cliffwalk Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain a climb speed of 30 feet.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"longstride\", {\r\n\tregExpSearch : /longstride/i,\r\n\tname : \"Longstride shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Longstride shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Longstride Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I can use the Dash action as a bonus action.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"longtooth\", {\r\n\tregExpSearch : /(longtooth|longteeth)/i,\r\n\tname : \"Longtooth shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Longtooth shifters\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\blongtooth\\b/i,\r\n\t\tname : \"Longtooth\",\r\n\t\tsource : [[\"UA:E\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Only while shifted; Target up to my size is grappled\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 1, 0, 0, 0, 0],\r\n\ttrait : \"Longtooth Shifter (+1 Strength, +1 Dexterity)\\nShifting: On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again. While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and, as an action, I can make can make a bite attack. This is a melee weapon attack that uses Strength and deals 1d6 piercing damage. If this attack hits a target that is my size or smaller, the target is also grappled.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"razorclaw\", {\r\n\tregExpSearch : /razorclaw/i,\r\n\tname : \"Razorclaw shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Razorclaw shifters\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\brazorclaw\\b/i,\r\n\t\tname : \"Razorclaw\",\r\n\t\tsource : [[\"UA:E\", 2]],\r\n\t\tdamage : [1, \"\", \"slashing\"],\r\n\t\tdescription : \"Only while shifted, use instead of unarmed strike: Can use as bonus action; Finesse\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Razorclaw Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and, as a bonus action, I can make an unarmed strike that can use my Dexterity for the attack roll and damage, dealing slashing damage.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"wildhunt\", {\r\n\tregExpSearch : /wildhunt/i,\r\n\tname : \"Wildhunt shifter\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tplural : \"Wildhunt shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 1, 0, 0, 1, 0],\r\n\ttrait : \"Wildhunt Shifter (+1 Dexterity, +1 Wisdom)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain advantage on all Wisdom-based checks and saving throws.\"\r\n});\r\n\r\n// 12 variants of the Dragonmark feat\r\nFeatsList[\"dragonmark-ua\"] = {\r\n\tname : \"Dragonmark\",\r\n\tsource : [[\"UA:E\", 6]],\r\n\tdescription : \"Select the type of dragonmark using the little square button in this feat line.\",\r\n\tchoices : [\"Detection\", \"Finding\", \"Handling\", \"Healing\", \"Hospitality\", \"Making\", \"Passage\", \"Scribing\", \"Sentinel\", \"Shadow\", \"Storm\", \"Warding\"],\r\n\t\"detection\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Detection, the dragonmark of House Medani, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Detect Magic, Mage Hand\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Detect Thoughts\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Clairvoyance\",\r\n\t\tdescription : \"I learn the Mage Hand cantrip. I can also cast Detect Magic, Detect Thoughts (from 5th level onwards), and Clairvoyance (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"mage hand\", \"detect magic\", \"detect thoughts\", \"clairvoyance\"],\r\n\t\t\tselection : [\"mage hand\", \"detect magic\", \"detect thoughts\", \"clairvoyance\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"finding\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Finding, the dragonmark of House Tharashk, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Identify, Mage Hand\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Locate Object\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Clairvoyance\",\r\n\t\tdescription : \"I learn the Mage Hand cantrip. I can also cast Identify, Locate Object (from 5th level onwards), and Clairvoyance (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"mage hand\", \"identify\", \"locate object\", \"clairvoyance\"],\r\n\t\t\tselection : [\"mage hand\", \"identify\", \"locate object\", \"clairvoyance\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"handling\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Handling, the dragonmark of House Vadalis, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Druidcraft, Speak with Animals\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Beast Sense\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Conjure Animals\",\r\n\t\tdescription : \"I learn the Druidcraft cantrip. I can also cast Speak with Animals, Beast Sense (from 5th level onwards), and Conjure Animals (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"druidcraft\", \"speak with animals\", \"beast sense\", \"conjure animals\"],\r\n\t\t\tselection : [\"druidcraft\", \"speak with animals\", \"beast sense\", \"conjure animals\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"healing\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Healing, the dragonmark of House Jorasco, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Cure Wounds, Spare the Dying\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Lesser Restoration\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Revivify\",\r\n\t\tdescription : \"I learn the Spare the Dying cantrip. I can also cast Cure Wounds, Lesser Restoration (from 5th level onwards), and Revivify (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"spare the dying\", \"cure wounds\", \"lesser restoration\", \"revivify\"],\r\n\t\t\tselection : [\"spare the dying\", \"cure wounds\", \"lesser restoration\", \"revivify\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"hospitality\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Hospitality, the dragonmark of House Ghallanda, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Charisma as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Friends, Unseen Servant\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Rope Trick\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Leomund's Tiny Hut\",\r\n\t\tdescription : \"I learn the Friends cantrip. I can also cast Unseen Servant, Rope Trick (from 5th level onwards), and Leomund's Tiny Hut (from 9th level onwards), each once per long rest. Charisma is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tspells : [\"friends\", \"unseen servant\", \"rope trick\", \"leomund's tiny hut\"],\r\n\t\t\tselection : [\"friends\", \"unseen servant\", \"rope trick\", \"leomund's tiny hut\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"making\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Making, the dragonmark of House Cannith, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Identify, Mending\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Magic Weapon\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Fabricate\",\r\n\t\tdescription : \"I learn the Mending cantrip. I can also cast Identify, Magic Weapon (from 5th level onwards), and Fabricate (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"mending\", \"identify\", \"magic weapon\", \"fabricate\"],\r\n\t\t\tselection : [\"mending\", \"identify\", \"magic weapon\", \"fabricate\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"passage\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Passage, the dragonmark of House Orien, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Expeditious Retreat, Light\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Misty Step\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Teleportation Circle\",\r\n\t\tdescription : \"I learn the Light cantrip. I can also cast Expeditious Retreat, Misty Step (from 5th level onwards), and Teleportation Circle (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"light\", \"expeditious retreat\", \"misty step\", \"teleportation circle\"],\r\n\t\t\tselection : [\"light\", \"expeditious retreat\", \"misty step\", \"teleportation Circle\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"scribing\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Scribing, the dragonmark of House Sivis, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Comprehend Languages, Message\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Sending\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Tongues\",\r\n\t\tdescription : \"I learn the Message cantrip. I can also cast Comprehend Languages, Sending (from 5th level onwards), and Tongues (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"message\", \"comprehend languages\", \"sending\", \"tongues\"],\r\n\t\t\tselection : [\"message\", \"comprehend languages\", \"sending\", \"tongues\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"sentinel\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Sentinel, the dragonmark of House Deneith, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Blade Ward, Compelled Duel\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Blur\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Protection from Energy\",\r\n\t\tdescription : \"I learn the Blade Ward cantrip. I can also cast Compelled Duel, Blur (from 5th level onwards), and Protection from Energy (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"blade ward\", \"compelled duel\", \"blur\", \"protection from energy\"],\r\n\t\t\tselection : [\"blade ward\", \"compelled duel\", \"blur\", \"protection from energy\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"shadow\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Shadow, the dragonmark of House Phiarlan and House Thuranni, and are a member of one of those houses.\\n   You gain the ability to innately cast spells and cantrips, using Charisma as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Dancing Lights, Disguise Self\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Darkness\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Nondetection\",\r\n\t\tdescription : \"I learn the Dancing Lights cantrip. I can also cast Disguise Self, Darkness (from 5th level onwards), and Nondetection (from 9th level onwards), each once per long rest. Charisma is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tspells : [\"dancing lights\", \"disguise self\", \"darkness\", \"nondetection\"],\r\n\t\t\tselection : [\"dancing lights\", \"disguise self\", \"darkness\", \"nondetection\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"storm\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Storm, the dragonmark of House Lyrander, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Fog Cloud, Shocking Grasp\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Gust of Wind\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Sleet Storm\",\r\n\t\tdescription : \"I learn the Shocking Grasp cantrip. I can also cast Fog Cloud, Gust of Wind (from 5th level onwards), and Sleet Storm (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"shocking grasp\", \"fog cloud\", \"gust of wind\", \"sleet storm\"],\r\n\t\t\tselection : [\"shocking grasp\", \"fog cloud\", \"gust of wind\", \"sleet storm\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"warding\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Warding, the dragonmark of House Kundarak, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Alarm, Resistance\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Arcane Lock\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Magic Circle\",\r\n\t\tdescription : \"I learn the Resistance cantrip. I can also cast Alarm, Arcane Lock (from 5th level onwards), and Magic Circle (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"resistance\", \"alarm\", \"arcane lock\", \"magic circle\"],\r\n\t\t\tselection : [\"resistance\", \"alarm\", \"arcane lock\", \"magic circle\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t}\r\n}\r\n\r\n// Adds a subclass for the Wizard, called \"Tradition of the Artificer\"\r\nAddSubClass(\"wizard\", \"artificer-ua\", {\r\n\tregExpSearch : /^((?=.*(wizard|mage|magus))(?=.*artificer))|(?=.*infuser).*$/i,\r\n\tsubname : \"Tradition of the Artificer\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tfullname : \"Wizard (Artificer)\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Infuse Potions\",\r\n\t\t\tsource : [[\"UA:E\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce magic potions if I spend 10 minutes and expend a spell slot\",\r\n\t\t\t\t\"I can not regain the spell slot until the potion is consumed or a week has passed\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Infuse Scrolls\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce a scroll after a short rest if I spend 10 minutes and my Arcane Recovery\",\r\n\t\t\t\t\"I subtract the spell's level from the levels worth of slots I regain using Arcane Recovery\",\r\n\t\t\t\t\"This reduction applies till the scroll is used and I finish a long rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Infuse Weapons and Armor\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can spend 10 minutes to produce a magic weapon, armor, a shield, or ammunition\",\r\n\t\t\t\t\"The item retains its magic for 8 hours and the spell slot I expend is:\",\r\n\t\t\t\t\"2nd: +1 ammunition (20 pieces), 3rd: +1 weapon or +1 shield, 4th: +1 armor,\",\r\n\t\t\t\t\"5th: +2 weapon or +2 ammunition (20 pieces), 6th: +3 armor.\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"1 weapon or armor\", \"1 weapon or armor\", \"1 weapon or armor\", \"1 weapon or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\"]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Superior Artificer\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can create one additional scroll, potion, weapon, or armor when I use Infuse\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Artificer\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce a variety of magic items from Tables A and B from the DMG\",\r\n\t\t\t\t\"It takes 1 week for such an item and I cannot do it again for a month\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"Month\"\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20150406_Modifying-Classes.js\r\n// This file adds the content from the Unearthed Arcana: Modifying Classes article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MC\"] = {\r\n\tname : \"Unearthed Arcana: Modifying Classes\",\r\n\tabbreviation : \"UA:MC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA3_ClassDesignVariants.pdf\",\r\n\tdate : \"2015/04/06\"\r\n};\r\n// Also needs the PHB source, as the spell-less ranger uses stuff from there\r\nif (!SourceList.P) {\r\n\tSourceList.P = {\r\n\t\tname : \"Player's Handbook\",\r\n\t\tabbreviation : \"PHB\",\r\n\t\tgroup : \"Primary Sources\",\r\n\t\turl : \"https://dnd.wizards.com/products/rpg_playershandbook\",\r\n\t\tdate : \"2014/08/19\"\r\n\t};\r\n};\r\n\r\n// Adds a subclass for the Sorcerer, called \"Favored Soul\", but only have it added at the very end, after all cleric subclasses have been defined\r\nRunFunctionAtEnd(function() {\r\n\tvar SorcererSubclassFavoredSoul = AddSubClass(\"sorcerer\", \"favored soul-ua\", {\r\n\t\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\t\tsubname : \"Favored Soul\",\r\n\t\tsource : [[\"UA:MC\", 8]],\r\n\t\tfullname : \"Favored Soul\",\r\n\t\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature1\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tsource : [[\"UA:MC\", 9]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription: desc(\"I gain proficiency with light armor, medium armor, shields, and simple weapons\"),\r\n\t\t\t\tarmorProfs : [true, true, false, true],\r\n\t\t\t\tweaponProfs : [true, false]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature1.1\" : {\r\n\t\t\t\tname : \"Chosen of the Gods\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t'Choose a Cleric Domain using the \"Choose Feature\" button above',\r\n\t\t\t\t\t\"I add the chosen domain's spells to my known spells, when they are of a level I can cast\",\r\n\t\t\t\t\t\"These count as sorcerer spells, but do not count against the number of spells I can know\",\r\n\t\t\t\t]),\r\n\t\t\t\tchoices : []\r\n\t\t\t},\r\n\t\t\t\"subclassfeature14\" : {\r\n\t\t\t\tname : \"Divine Wings\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I sprout feathered or bat wings from my back unless blocked by armor\",\r\n\t\t\t\t\t\"I gain a fly speed equal to my current speed until I dismiss the wings as a bonus action\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/stop)\"]],\r\n\t\t\t\tspeed : { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t\t},\r\n\t\t\t\"subclassfeature18\" : {\r\n\t\t\t\tname : \"Power of the Chosen\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 18,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When I cast a spell I gained from the Chosen of the Gods class feature, I heal myself\",\r\n\t\t\t\t\t\"I regain a number of HP equal to my Charisma modifier (minimum 1) + the spell's level\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\t// Adding all cleric domain spells to the options of the first level ability \"Chosen of the Gods\"\r\n\tvar FSfeat = ClassSubList[SorcererSubclassFavoredSoul].features[\"subclassfeature1.1\"];\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar cDomain = ClassSubList[ClassList.cleric.subclasses[1][i]];\r\n\t\tif (cDomain && cDomain.spellcastingExtra) {\r\n\t\t\tvar eSpells = newObj(cDomain.spellcastingExtra);\r\n\t\t\teSpells[100] = \"AddToKnown\";\r\n\t\t\tvar dSource = cDomain.source ? cDomain.source : cDomain.features[\"subclassfeature1\"] && cDomain.features[\"subclassfeature1\"].source ? cDomain.features[\"subclassfeature1\"].source :[[\"UA:MC\", 8]];\r\n\t\t\t\r\n\t\t\tvar suffix = 1;\r\n\t\t\tvar entryDoNm = cDomain.subname;\r\n\t\t\twhile (FSfeat.choices.indexOf(entryDoNm) !== -1) {\r\n\t\t\t\tsuffix += 1;\r\n\t\t\t\tentryDoNm = cDomain.subname + \" (\" + suffix + \")\";\r\n\t\t\t};\r\n\t\t\tFSfeat.choices.push(entryDoNm);\r\n\t\t\tFSfeat[entryDoNm.toLowerCase()] = {\r\n\t\t\t\tname : \"Chosen of the Gods: \" + cDomain.subname,\r\n\t\t\t\tsource : dSource,\r\n\t\t\t\tspellcastingExtra : eSpells,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I add the \" + cDomain.subname.toLowerCase() + \" spells to my known spells, if they are of a level I can cast\",\r\n\t\t\t\t\t\"These count as sorcerer spells, but do not count against the number of spells I can know\",\r\n\t\t\t\t]),\r\n\t\t\t};\r\n\t\t};\r\n\t};\r\n});\r\n\r\n// A version of the ranger, the spell-less ranger\r\nClassList[\"spell-less ranger\"] = {\r\n\tregExpSearch : /^(?=.*spell.?less)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Spell-less Ranger\",\r\n\tsource : [[\"UA:MC\", 6]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tabilitySave : 1,\r\n\tabilitySaveAlt : 2,\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 10,\r\n\tsaves : [\"Str\", \"Dex\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Spell-less Ranger starting equipment:\\n \\u2022 Scale mail -or- leather armor;\\n \\u2022 Two shortswords -or- two simple melee weapons;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Ranger Archetype\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"favored enemy\" : ClassList.ranger.features[\"favored enemy\"],\r\n\t\t\"natural explorer\" : ClassList.ranger.features[\"natural explorer\"],\r\n\t\t\"combat superiority\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special Maneuvers\",\r\n\t\t\t\t\"I regain all superiority dice after a short rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"d8\",\r\n\t\t\tusages : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : n < 9 ? 4 : n < 17 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"combat maneuvers\" : {\r\n\t\t\tname : \"Combat Maneuvers\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page',\r\n\t\t\t\t\"I can use a Maneuver by expending a superiority die (only one Maneuver per attack)\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\treturn (n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6) + \" maneuvers known\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Maneuver\",\r\n\t\t\textrachoices : [\"Commander's Strike\", \"Disarming Attack\", \"Distracting Strike\", \"Evasive Footwork\", \"Feinting Attack\", \"Goading Attack\", \"Lunging Attack\", \"Maneuvering Attack\", \"Menacing Attack\", \"Parry\", \"Precision Attack\", \"Pushing Attack\", \"Rally\", \"Riposte\", \"Sweeping Attack\", \"Trip Attack\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"commander's strike\" : {\r\n\t\t\t\tname : \"Commander's Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I forgo one attack of my Attack action to use a bonus action to direct an ally I see/hear\",\r\n\t\t\t\t\t\"The ally can use a reaction to make an attack, adding the superiority die to damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t\t},\r\n\t\t\t\"disarming attack\" : {\r\n\t\t\t\tname : \"Disarming Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Strength save or drops a held object of my choice to its feet\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"distracting strike\" : {\r\n\t\t\t\tname : \"Distracting Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"The next attack of an ally before my next turn has adv. against the creature\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"evasive footwork\" : {\r\n\t\t\t\tname : \"Evasive Footwork\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Use when moving; I add the superiority die to my AC until I stop moving\")\r\n\t\t\t},\r\n\t\t\t\"feinting attack\" : {\r\n\t\t\t\tname : \"Feinting Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can feint to gain adv. on my next attack against a target within 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"goading attack\" : {\r\n\t\t\t\tname : \"Goading Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wis save or has disadv. vs. other targets until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"lunging attack\" : {\r\n\t\t\t\tname : \"Lunging Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can spend a superiority die to increase the reach of a melee weapon attack by 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"maneuvering attack\" : {\r\n\t\t\t\tname : \"Maneuvering Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Ally can use reaction to move half speed without opportunity attack from the target\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"menacing attack\" : {\r\n\t\t\t\tname : \"Menacing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wisdom save or is frightened of me until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"parry\" : {\r\n\t\t\t\tname : \"Parry\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"When damaged in melee, I can use a reaction to reduce it by superiority die + Dex mod\"),\r\n\t\t\t\taction : [[\"reaction\", \" (when damaged in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"precision attack\" : {\r\n\t\t\t\tname : \"Precision Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"I add the superiority die to my attack roll, either before or after rolling\")\r\n\t\t\t},\r\n\t\t\t\"pushing attack\" : {\r\n\t\t\t\tname : \"Pushing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be pushed up to 15 ft away\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"rally\" : {\r\n\t\t\t\tname : \"Rally\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Ally that can see/hear me gets temporary HP equal to superiority die + Charisma mod\"),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"riposte\" : {\r\n\t\t\t\tname : \"Riposte\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When missed in melee, I can use my reaction to make one melee attack vs. the attacker\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (after missed in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping attack\" : {\r\n\t\t\t\tname : \"Sweeping Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature and a second creature is within 5 ft of the first\",\r\n\t\t\t\t\t\"If the original attack roll hits this second creature, it takes the superiority die in damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"trip attack\" : {\r\n\t\t\t\tname : \"Trip Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"fighting style\" : ClassList.ranger.features[\"fighting style\"],\r\n\t\t\"poultices\" : {\r\n\t\t\tname : \"Poultices\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In 1 hour, I can create a number of poultices equal to my Wisdom modifier (min 1)\",\r\n\t\t\t\t\"The number of poultices I can have with me can't exceed my Wisdom modifier (min 1)\",\r\n\t\t\t\t\"I can applying a poultice in 1 minute, healing a creature; Poultices last for 24 hours\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\treturn \"heals \" + Math.ceil(n/2) + \"d6\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"primeval awareness\" : {\r\n\t\t\tname : \"Primeval Awareness\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can focus my awareness for 1 min, once per short rest\",\r\n\t\t\t\t\"Out to 1 mile (6 in favored terrain), I sense if certain types of creatures are present\",\r\n\t\t\t\t\"These types are: aberration, celestial, dragon, elemental, fey, fiend, and undead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Archetype\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose a Ranger Archetype you strive to emulate and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose either Spell-less Beast Master or Spell-less Hunter\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"land's stride\" : ClassList.ranger.features[\"land's stride\"],\r\n\t\t\"natural antivenom\" : {\r\n\t\t\tname : \"Natural Antivenom\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves vs. poison and resistance to poison damage\",\r\n\t\t\t\t\"When I use a poultice, in addition to healing, I cure one poison effect on the creature\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"poison\"] },\r\n\t\t\tdmgres : [\"Poison\"]\r\n\t\t},\r\n\t\t\"hide in plain sight\" : ClassList.ranger.features[\"land's stride\"],\r\n\t\t\"call natural allies\" : {\r\n\t\t\tname : \"Call Natural Allies\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in an area that is my Favored Terrain, I can call on beasts within 1 mile to help\",\r\n\t\t\t\t\"The DM determines the beasts: 1\\xD7CR 2, 2\\xD7CR 1, 4\\xD7CR 1/2, or 8\\xD7CR 1/4\",\r\n\t\t\t\t\"They will fight alongside me, are friendly to me and my allies, and help up to 1 hour\",\r\n\t\t\t\t\"After I use these feature, I can't use it in the same general area again for 24 hours\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"vanish\" : ClassList.ranger.features[\"vanish\"],\r\n\t\t\"relentless\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t},\r\n\t\t\"feral senses\" : ClassList.ranger.features[\"feral senses\"],\r\n\t\t\"foe slayer\" : ClassList.ranger.features[\"foe slayer\"]\r\n\t}\r\n};\r\n// Create the Hunter subclass for the spell-less ranger\r\nvar UAMC_SLR_Hunter = newObj(ClassSubList[\"ranger-hunter\"]);\r\nUAMC_SLR_Hunter.source = [\"UA:MC\", 6];\r\ndelete UAMC_SLR_Hunter.fullname;\r\nUAMC_SLR_Hunter.regExpSearch = /^(?=.*spell.?less)(?!.*(monster|barbarian|bard|cleric|druid|fighter|monk|paladin|rogue|sorcerer|warlock|wizard))(?=.*(hunter|huntress|hunts(wo)?m(e|a)n)).*$/i;\r\nAddSubClass(\"spell-less ranger\", \"hunter-ua\", UAMC_SLR_Hunter);\r\n// Create the Beast Master subclass for the spell-less ranger\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tvar UAMC_SLR_Beast_Master = newObj(ClassSubList[\"ranger-beast master\"]);\r\n\tUAMC_SLR_Beast_Master.source = [\"UA:MC\", 6];\r\n\tdelete UAMC_SLR_Beast_Master.fullname;\r\n\tUAMC_SLR_Beast_Master.regExpSearch = /^(?=.*spell.?less)(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural|green))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i;\r\n\tUAMC_SLR_Beast_Master.features[\"subclassfeature15\"] = {\r\n\t\tname : \"Beastly Coordination\",\r\n\t\tsource : [[\"UA:MC\", 7]],\r\n\t\tminlevel : 15,\r\n\t\tdescription: desc(\"My companion can, as a reaction, halve an attack's damage from an attacker that I see\")\r\n\t};\r\n\tAddSubClass(\"spell-less ranger\", \"beast master-ua\", UAMC_SLR_Beast_Master);\r\n};\r\n\n// ua_20150504_Waterborne-Adventures.js\r\n// This file adds the content from the Unearthed Arcana: Waterborne Adventures article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:WA\"] = {\r\n\tname : \"Unearthed Arcana: Waterborne Adventures\",\r\n\tabbreviation : \"UA:WA\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Waterborne_v3.pdf\",\r\n\tdate : \"2015/05/04\"\r\n};\r\n\r\n// New Fighting Style\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Mariner\", { // Still valid 2021-09-21\r\n\tname : \"Mariner Fighting Style\",\r\n\tsource : [[\"UA:WA\", 3]],\r\n\tdescription: desc([\r\n\t\t\"While not wearing heavy armor or using a shield, I gain +1 AC and swim/climb speed\",\r\n\t\t\"The swimming and climbing speeds are equal to my current walking speed\",\r\n\t]),\r\n\tspeed : {\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor and not using a shield.\",\r\n\t\tstopeval : function (v) { return v.heavyArmor || v.usingShield; }\r\n\t}\r\n});\r\n\r\n// Add the Minotaur (Krynn) race and its three variants\r\nRaceList[\"minotaur-ua\"] = {\r\n\tregExpSearch : /minotaur/i,\r\n\tname : \"Minotaur\",\r\n\tsource : [[\"UA:WA\", 1]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (water)\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"UA:WA\", 1]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 10, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Advantage on all checks made to shove a creature, but not to avoid being shoved myself\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\r\n\theight : \" are well over 6 feet tall\",\r\n\tweight : \" weigh around 300 lb\",\r\n\theightMetric : \" are well over 1,8 metres tall\",\r\n\tweightMetric : \" weigh around 135 kg\",\r\n\tscorestxt : \"+1 Strength, and either +1 Intelligence, +1 Wisdom, or another +1 Strength\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\ttrait : \"Minotaur (+1 Strength, and either +1 Int, Wis, or Str) use \\\"Racial Options\\\" button\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\",\r\n\tfeatures : {\r\n\t\t\"goring rush\" : {\r\n\t\t\tname : \"Goring Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\r\n\t\t},\r\n\t\t\"hammering horns\" : {\r\n\t\t\tname : \"Hammering Horns\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"minotaur-ua\", \"cunning\", {\r\n\tregExpSearch : /(cunning|wisdom)/i,\r\n\tname : \"Minotaur [Cunning]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Minotaur [cunning] (+1 Strength, +1 Wisdom)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\nAddRacialVariant(\"minotaur-ua\", \"intellect\", {\r\n\tregExpSearch : /(intellect|intelligence)/i,\r\n\tname : \"Minotaur [Intellect]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 1, 0, 0],\r\n\ttrait : \"Minotaur [intellect] (+1 Strength, +1 Intelligence)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\nAddRacialVariant(\"minotaur-ua\", \"strength\", {\r\n\tregExpSearch : /(strength|strong|\\bmight\\b)/i,\r\n\tname : \"Minotaur [Strength]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\ttrait : \"Minotaur [strength] (+2 Strength)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\n\n// ua_20150803_Modern-Magic.js\r\n// This file adds the content from the Unearthed Arcana: Modern Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MM\"] = {\r\n\tname : \"Unearthed Arcana: Modern Magic\",\r\n\tabbreviation : \"UA:MM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Modern\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_ModernMagic.pdf\",\r\n\tdate : \"2015/08/03\"\r\n};\r\n\r\n// A subclass for the Cleric, called \"City Domain\"\r\nAddSubClass(\"cleric\", \"city domain-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(urban|city)).*$/i,\r\n\tsubname : \"City Domain\",\r\n\tsource : [[\"UA:MM\", 1]],\r\n\tspellcastingExtra : [\"comprehend languages\", \"remote access-ua\", \"find vehicle-ua\", \"heat metal\", \"lightning bolt\", \"protection from ballistics-ua\", \"locate creature\", \"synchronicity-ua\", \"commune with city-ua\", \"shutdown-ua\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrip\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn the On/Off cantrip if I didn't already know it\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (On/Off)\",\r\n\t\t\t\tspells : [\"on/off-ua\"],\r\n\t\t\t\tselection : [\"on/off-ua\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with sidearms and land vehicles\"),\r\n\t\t\tweaponProfs : [false, false, [\"Sidearms\"]],\r\n\t\t\ttoolProfs : [\"Vehicles (land)\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Heart of the City\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While I'm in a city, I can gain adv. on a Cha (Deception, Intimidation, Persuasion) check\",\r\n\t\t\t\t\"I'm considered proficient with the appropriate skill for that one check\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Spirits of the City\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I make all city utilities in 30 ft either stop or work perfectly for 1 min\",\r\n\t\t\t\t\"Additionally, all hostiles within 30 ft must make a Cha save at the time of use\",\r\n\t\t\t\t\"If failed, it is either knocked prone or restrained (my choice) by city hazards\",\r\n\t\t\t\t\"A restrained target can escape with an Athletics or Acrobatics check vs. my spell DC\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Block Watch\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"While in an urban environment, I'm proficient and expertise in Insight and Perception\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Express Transit\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport from one mass transit site to another in the same city\",\r\n\t\t\t\t\"This works just like a Teleport spell; Mass transits sites include bus/train/subway stops\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Warlock, called \"Ghost in the Machine\"\r\nAddSubClass(\"warlock\", \"ghost in the machine-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*warlock)(?=.*ghost)(?=.*(machine|computer)).*$/i,\r\n\tsubname : \"the Ghost in the Machine\",\r\n\tsource : [[\"UA:MM\", 2]],\r\n\tspellcastingExtra : [\"infallible relay-ua\", \"remote access-ua\", \"arcane hacking-ua\", \"digital phantom-ua\", \"haywire-ua\", \"invisibility to cameras-ua\", \"conjure knowbot-ua\", \"system backdoor-ua\", \"shutdown-ua\", \"synchronicity-ua\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I am proficient with hacking tools and know the On/Off cantrip\"),\r\n\t\t\ttoolProfs : [\"Hacking tools\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (On/Off)\",\r\n\t\t\t\tspells : [\"on/off-ua\"],\r\n\t\t\t\tselection : [\"on/off-ua\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Information Surge\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause a computerized device within 30 ft to make an Int save\",\r\n\t\t\t\t\"If the device is held/used by a creature, that creature makes the saving throw\",\r\n\t\t\t\t\"If the device is not held/used, it makes a save with a +0 modifier and disadvantage\",\r\n\t\t\t\t\"On a failed save, the device stops functioning until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wire Walk\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can teleport through a hardwired network to a point I can see\",\r\n\t\t\t\t\"Both where I start and end must be a device, cable, or socket connected to the network\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Personal Encryption\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on saves vs. scrying, thought detection, and magics for learning my location\",\r\n\t\t\t\t\"If the effect doesn't let me a save, the user has disadv. on checks to use it on me, if any\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Technovirus\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I make a melee spell attack to infect someone with a techno-organic virus\",\r\n\t\t\t\t\"The target takes 8d10 psychic damage, or half that with a successful Con save\",\r\n\t\t\t\t\"If it failed its save, I can use an action to cast Command on it while it remains infected\",\r\n\t\t\t\t\"It makes its save vs. this Command with disadvantage and I can cast it at any range\",\r\n\t\t\t\t\"It is infected until my next long rest; The virus can be removed with Lesser Restoration\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Wizard, called \"Technomancy\" (contributed by AKA_Sketch)\r\nAddSubClass(\"wizard\", \"technomancy-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /technomancy|technomancer/i,\r\n\tsubname : \"Technomancy\",\r\n\tsource : [[\"UA:MM\", 3]],\r\n\tfullname : \"Technomancer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\": {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I gain proficiency with sidearms and hacking tools\"),\r\n\t\t\tweaponProfs : [false, false, [\"Sidearms\"]],\r\n\t\t\ttoolProfs : [\"Hacking tools\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\": {\r\n\t\t\tname : \"Technological Savant\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use a single tablet computer (or similar) instead of a spellbook\",\r\n\t\t\t\t\"Spells copied into this device cost half the normal amount of gp\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\": {\r\n\t\t\tname : \"Program Spell\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast a spell into a device of at least smartphone-level of computing power\",\r\n\t\t\t\t\"Variables of the spell are chosen at time of casting; I can have only one active at a time\",\r\n\t\t\t\t\"As an action within the next 48 hours, the spell can be cast from the device\",\r\n\t\t\t\t\"I can't activate a concentration spell in this way if I am concentrating on another spell\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\": {\r\n\t\t\tname : \"Online Casting\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast a spell, that is not area-of-effect, through networked electronic devices\",\r\n\t\t\t\t\"If the spell requires sight/hearing, the audio/visual must be transmitted electronically\",\r\n\t\t\t\t\"The spell's range is determined from me to my device plus from the target to its device\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\": {\r\n\t\t\tname : \"Chained Device\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use a held/worn tablet computer to concentrate on a spell I cast instead of me\",\r\n\t\t\t\t\"If the device is separated from me, turned off, or broken, the effect is lost\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a new Warlock invocation\r\nAddWarlockInvocation(\"Arcane Gunslinger (prereq: Pact of the Blade)\", { // Still valid 2021-09-21\r\n\tname : \"Arcane Gunslinger\",\r\n\tdescription : desc([\r\n\t\t\"My pact weapon can take firearm forms, and I can transform magical firearms into one\"\r\n\t]),\r\n\tsource : [[\"UA:MM\", 3]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isRangedWeapon && /firearm/i.test(v.theWea.type + \" \" + v.theWea.list) && /\\bpact\\b/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If I include the word 'Pact' in a firearm weapon's name, it gets treated as my Pact Weapon.\",\r\n\t\t\t90\r\n\t\t]\r\n\t}\r\n});\r\n\r\n/*\tAdds 14 spells that are, according to the article, 'suitable' for the Sorcerer, Warlock, or Wizard spell list. 1 of those is also considered suitable for the Paladin spell list.\r\n\t\r\n\tStrangely enough, adding all these spells to the Warlock spell list makes the Ghost in the Machine's Expanded Spell List class feature completely useless\r\n*/\r\nSpellsList[\"arcane hacking-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Arcane Hacking\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Hacking tools\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Adv on Int (hacking tools) vs. encryption; Use Int (hacking tools) to remove protective spells; See book\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You gain advantage on all Intelligence checks using hacking tools to break software encryption or online security when using a foreign system. This spell also allows you to break 2nd-level and lower protective spells such as arcane lock or glyph of warding by making an Intelligence check using hacking tools against the spell save DC of the spell's caster.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can attempt to counteract a spell set to secure the foreign system if the spell's level is equal to or less than the level of the spell slot you used.\"\r\n};\r\nSpellsList[\"commune with city-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Commune with City\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tritual : true,\r\n\tlevel : 5,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn up to three facts about surrounding city, out to 1 mile above- or 600 ft underground; see B\",\r\n\tdescriptionFull : \"You briefly become one with the city and gain knowledge of the surrounding area. Aboveground, this spell gives you knowledge of the area within 1 mile of you. In sewers and other underground settings, you gain knowledge of the area within 600 feet of you.\" + \"\\n   \" + \"You instantly gain knowledge of up to three facts of your choice about any of the following subjects as they relate to the area:\" + \"\\n  \\u2022 \" + \"Terrain and bodies of water\" + \"\\n  \\u2022 \" + \"Prevalent buildings, plants, animals, or intelligent creatures\" + \"\\n  \\u2022 \" + \"Powerful (CR 1 or higher) celestials, fey, fiends, elementals, or undead\" + \"\\n  \\u2022 \" + \"Influences from other planes of existence\" + \"\\n  \\u2022 \" + \"Electrical currents, wireless signals, and active transit lines and tracks\" + \"\\n\\n   \" + \"For example, you could determine the location of powerful undead in the area, the location of major sources of electrical power or interference, and the location of any nearby parks.\"\r\n};\r\nSpellsList[\"conjure knowbot-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Knowbot\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"500 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Create bot in touched device; computer checks 1 bns instead of 1 a for me; SL5: 1 h, 1000 ft, see book\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You touch a single computerized device or computer system to conjure a knowbot\\u2014a partially sentient piece of software imprinted with vestiges of your own skills and computer abilities. For the duration of the spell, you can use a bonus action to have the knowbot execute a computer-related task that would normally require an action. The knowbot makes Intelligence ability checks using your ability score and proficiency bonuses (including your proficiency with hacking tools, if applicable).\" + \"\\n   \" + \"You have a limited telepathic bond with the knowbot, out to a range of 500 feet from the device or system where the knowbot was conjured. If you move beyond this range, the knowbot disappears in 2d4 rounds, as if the duration of the spell had expired. Moving within range again immediately reestablishes the bond. The knowbot is bound to the system in which it was created, and it stays there until it is dismissed or the spell's duration expires.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the spell's duration increases to 1 hour. Additionally, your telepathic bond with the knowbot is effective out to a range of 1,000 feet, and if you leave the range of the bond, the knowbot continues performing its last directed task until the spell expires.\"\r\n};\r\nSpellsList[\"digital phantom-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Digital Phantom\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A small piece of copper wire\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Me and any others in same computer system +10 on Int to avoid detection; leave no trace on exit\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell works to actively hide your presence within a computer system. For the spell's duration, you and any other users you choose on your local network gain a +10 bonus to Intelligence checks to avoid detection by administrators, knowbots, tracking software, and the like. Whenever you and your chosen users leave any computer system you are working in while this spell is in effect, all trace of your previous presence in that system is erased.\"\r\n};\r\nSpellsList[\"find vehicle-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Find Vehicle\",\r\n\tclasses : [\"paladin\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Gain services of land spirit-vehicle; expertise, share spells with it; SL3: water, SL5: air, SL7: any; see B\",\r\n\tdescriptionFull : \"You summon a spirit that assumes the form of a nonmilitary land vehicle of your choice, appearing in an unoccupied space within range. The vehicle has the statistics of a normal vehicle of its sort, though it is celestial, fey, or fiendish (your choice) in origin. The physical characteristics of the vehicle reflect its origin to some degree. For example, a fiendish SUV might be jet black in color, with tinted windows and a sinister-looking front grille.\" + \"\\n   \" + \"You have a supernatural bond with the conjured vehicle that allows you to drive beyond your normal ability. While driving the conjured vehicle, you are considered proficient with vehicles of its type, and you add double your proficiency bonus to ability checks related to driving the vehicle. While driving the vehicle, you can make any spell you cast that targets only you also target the vehicle.\" + \"\\n   \" + \"If the vehicle drops to 0 hit points, it disappears, leaving behind no physical form. You can also dismiss the vehicle at any time as an action, causing it to disappear.\" + \"\\n   \" + \"You can't have more than one vehicle bonded by this spell at a time. As an action, you can release the vehicle from its bond at any time, causing it to disappear.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can conjure a nonmilitary water vehicle large enough to carry six Medium creatures. When you cast this spell using a spell slot of 5th level or higher, you can conjure a nonmilitary air vehicle large enough to carry ten Medium creatures. When you cast this spell using a spell slot of 7th level or higher, you can conjure any type of vehicle, subject to the DM's approval.\"\r\n};\r\nSpellsList[\"haywire-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Haywire\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"10 ft(+5 ft/SL) rad all electronic devices go haywire, see B; for hold devices, crea gets to save\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell plays havoc with electronic devices, making the use of such devices all but impossible. Each electronic device in a 10-foot-radius sphere centered on a point you choose within range is subject to random behavior while it remains within the area. A device not held by a creature is automatically affected. If an electronic device is held by a creature, that creature must succeed on a Wisdom saving throw or have the device affected by the spell.\" + \"\\n   \" + \"At the start of each of your turns, roll a d6 for each affected device to determine its behavior. Except where otherwise indicated, that behavior lasts until the start of your next turn while this spell is in effect.\" + \"\\n\\n\" + toUni(\"d10\") + \"\\t\" + toUni(\"Behavior\") + \"\\n  \" + \"1\\tThe device shuts down and must be restarted. Do not roll again for this device until it is restarted.\\n2–4\\tThe device does not function.\" + \"\\n  \" + \"5\\tThe device experiences a power surge, causing an electric shock to the wielder (if any) and one random creature within 5 feet of the device. Each affected creature must make a Dexterity saving throw against your spell save DC, taking 6d6 lightning damage on a failed save, or half as much damage on a successful one.\" + \"\\n  \" + \"6\\tThe device is usable as normal.\\n\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the radius of the sphere affected by the spell increases by 5 feet for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"infallible relay-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Infallible Relay\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A mobile phone\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 known crea save or has to answer my call from phone within 100 ft of it; it has to save to end call\",\r\n\tdescriptionFull : \"[Technomagic]\\n   With this spell, you can target any creature with whom you have spoken previously, as long as the two of you are on the same plane of existence. When you cast the spell, the nearest functioning telephone or similar communications device within 100 feet of the target begins to ring. If there is no suitable device close enough to the target, the spell fails.\" + \"\\n   \" + \"The target must make a successful Charisma saving throw or be compelled to answer your call. Once the connection is established, the call is crystal clear and cannot be dropped until the conversation has ended or the spell's duration ends. You can end the conversation at any time, but a target must succeed on a Charisma saving throw to end the conversation.\"\r\n};\r\nSpellsList[\"invisibility to cameras-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Invisibility to Cameras\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 3,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A scrap of black paper\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Up to 4 crea and anything they are wearing or carrying become undetectable for electornic sensors\",\r\n\tdescriptionFull : \"[Technomagic]\\n   Four creatures of your choice within range become undetectable to electronic sensors and cameras for the duration of the spell. Anything a target is wearing or carrying is likewise undetectable as long as it is on the target's person. The targets remain visible to vision.\"\r\n};\r\nSpellsList[\"on/off-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"On/Off\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Activate or deactivate 1 electornic device that has a way of doing so accessible from the outside of it\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This cantrip allows you to activate or deactivate any electronic device within range, as long as the device has a clearly defined on or off function that can be easily accessed from the outside of the device. Any device that requires a software- based shutdown sequence to activate or deactivate cannot be affected by on/off.\"\r\n};\r\nSpellsList[\"protection from ballistics-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Protection from Ballistics\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 3,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A shell casing\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"1 crea gains resistance to nonmagical ballistic damage\",\r\n\tdescriptionFull : \"This spell enchants the flesh of the target against the impact of bullets. Until the spell ends, the target has resistance to nonmagical ballistic damage.\"\r\n};\r\nSpellsList[\"remote access-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Remote Access\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"I can use any electronic device within range as if it were in my hands\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You can use any electronic device within range as if it were in your hands. This is not a telekinesis effect. Rather, this spell allows you to simulate a device's mechanical functions electronically. You are able to access only functions that a person using the device manually would be able to access. You can use remote access with only one device at a time.\"\r\n};\r\nSpellsList[\"shutdown-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Shutdown\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Shut down all electronic devices within range; if controlled/held by crea, it can save to keep active\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell shuts down all electronic devices within range that are not wielded by or under the direct control of a creature. If an electronic device within range is used by a creature, that creature must succeed on a Constitution saving throw to prevent the device from being shut down. While the spell remains active, no electronic device within range can be started or restarted.\"\r\n};\r\nSpellsList[\"synchronicity-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Synchronicity\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 crea not slowed by mundane delays, disadv on opportunity attacks to it, adv to Stealth and driving\",\r\n\tdescriptionFull : \"The creature you touch feels reality subtly shifted to its favor while this spell is in effect.\" + \"\\n   \" + \"The target isn't inconvenienced by mundane delays of any sort. Traffic lights are always green, there's always a waiting elevator, and a taxi is always around the corner. The target can run at full speed through dense crowds, and attacks of opportunity provoked by the target's movement are made with disadvantage.\" + \"\\n   \" + \"Synchronicity grants advantage to Dexterity (Stealth) checks, since the target always finds a handy piece of cover available. Additionally, the target has advantage on all ability checks made to drive a vehicle.\" + \"\\n   \" + \"In the event that two or more creatures under the effect of synchronicity are attempting to avoid being inconvenienced by each other, the creatures engage in a contest of Charisma each time the effects of the spells would oppose each other.\"\r\n};\r\nSpellsList[\"system backdoor-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"System Backdoor\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Hacking tools\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Gain admin access to 1 system; defeats 3rd or lower technomancy spells; SL5+: defeats same or lower\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell allows you to bypass system security in order to create a secure login on a foreign system. The login you create allows you administrator-level privileges in any computer system not enhanced through technomagic. The login defeats any technomagic spells of 3rd level or lower.\" + \"\\n   \" + \"Once the duration of the spell expires, the login and all privileges are wiped from the system.\" + \"\\n   \" + \"System logs still show the activity of the user, but the user identification cannot be found or traced.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you are able to bypass technomagic spells if the spell's level is equal to or less than the level of the spell slot you used.\"\r\n};\r\n\n// This code was contributed by Lewis Henderson\r\n//\r\n// Please note that the original .pdf has the hit dice as 2d6 per level.\r\n// There isn't any way to implement this, so the hit dice is recorded as a d12.\r\n// Also note that there is no automation for the companion page included in this.\r\n//\r\n// You will have to choose the ranger's animal spirit from the companion race drop-down list and add the Wisdom modifier bonus to attacks and saves manually.\r\n// ua_20150909_Ranger.js\r\n// This file adds the content from the Unearthed Arcana: Ranger article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:R\"] = {\r\n\tname : \"Unearthed Arcana: Ranger\",\r\n\tabbreviation : \"UA:R\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/DX_0907_UA_RangerOptions.pdf\",\r\n\tdate : \"2015/09/09\"\r\n};\r\n\r\n// Define a new class, called \"Playtest Ranger\" and its 3 subclasses\r\nClassList[\"ua-playtest-ranger\"] = {\r\n\tregExpSearch : /^(?=.*playtest)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Playtest Ranger\",\r\n\tsource : [[\"UA:R\", 0]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\tdie : 12,\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tsaves : [\"Dex\", \"Wis\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [\"Herbalism kit\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, true],\r\n\t\tsecondary : [true, false, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Playtest Ranger starting equipment:\\n \\u2022 leather armor;\\n \\u2022 Two shortswords -or- two martial melee weapons -or- a martial weapon and a shield;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows -or- a martial weapon.\",\r\n\tsubclasses : [\"Ranger Path\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"ambuscade\" : {\r\n\t\t\tname : \"Ambuscade\",\r\n\t\t\tsource : [[\"UA:R\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I roll initiative, I gain a special turn before others can act\",\r\n\t\t\t\t\"During this bonus turn, I can only use the Attack or Hide action\",\r\n\t\t\t\t\"I can't be surprised, but if I would be surprised I don't get the bonus turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"natural explorer\" : ClassList.ranger.features[\"natural explorer\"],\r\n\t\t\"fighting style\" : ClassList.ranger.features[\"fighting style\"],\r\n\t\t\"skirmisher's stealth\" : {\r\n\t\t\tname : \"Skirmisher's Stealth\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn, I can choose a creature I'm hidden from\",\r\n\t\t\t\t\"During that turn, I remain hidden from it, regardless of my actions\",\r\n\t\t\t\t\"As a bonus action at the end of my turn, I can use the Hide action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Path\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a Ranger Path you wish to follow and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose Guardian, Seeker, or Stalker\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"primeval awareness\" : ClassList.ranger.features[\"primeval awareness\"]\r\n\t}\r\n};\r\nAddSubClass(\"ua-playtest-ranger\", \"guardian-ua\", {\r\n\tregExpSearch : /^(?=.*guardian)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Guardian\",\r\n\tsource : [[\"UA:R\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Brown Bear Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my brown bear spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a brown bear and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Guardian's Shroud\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription :\"\\n   \" + \"When I call my spirit animal, I grant me or an ally I can see 2d6 + Wis mod temp HP\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ua-playtest-ranger\", \"seeker-ua\", {\r\n\tregExpSearch : /^(?=.*seeker)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Seeker\",\r\n\tsource : [[\"UA:R\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Giant Eagle Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my giant eagle spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a giant eagle and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Seeker's Eye\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I call my spirit animal, I can choose a creature that I can see\",\r\n\t\t\t\t\"Until the end of my next turn, all attacks against the target have advantage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ua-playtest-ranger\", \"stalker-ua\", {\r\n\tregExpSearch : /^(?=.*stalker)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Stalker\",\r\n\tsource : [[\"UA:R\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dire Wolf Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my dire wolf spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a dire wolf and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Stalker's Fangs\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I call my spirit animal, I can choose a creature that I can see\",\r\n\t\t\t\t\"The target's next weapon attack hit deals 2d6 + Wis mod extra slashing damage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20151005_Prestige Classes and Rune Magic.js\r\n// This file adds the content from the Unearthed Arcana: Prestige Classes and Rune Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:PCRM\"] = {\r\n\tname : \"Unearthed Arcana: Prestige Classes and Rune Magic\",\r\n\tabbreviation : \"UA:PCRM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Rune_Magic_Prestige_Class.pdf\",\r\n\tdate : \"2015/10/05\"\r\n};\r\n\r\n// Adds a prestige class, called \"Rune Scribe\" (includes contributions by K.12)\r\nClassList[\"rune scribe\"] = { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*rune)(?=.*scribe).*$/i,\r\n\tname : \"Rune Scribe\",\r\n\tsource : [[\"UA:PCRM\", 2]],\r\n\tprimaryAbility : \"Dexterity and Intelligence\",\r\n\tprereqs : \"\\n   - Dexterity 13 and Intelligence 13;\\n   - Proficiency in the Arcana skill\\n   - Complete a special task: You must find a rune and present it to an NPC rune scribe who accepts it in return for tutoring you in the ways of rune magic\",\r\n\tdie : 8,\r\n\timprovements : levels.map(function (n) {return 0}),\r\n\ttoolProfs : {\r\n\t\tsecondary : [\"Calligrapher's Supplies\", \"Mason's Tools\", \"Woodcarver's Tools\"]\r\n\t},\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tprestigeClassPrereq : 5,\r\n\tattacks : levels.map(function (n) {return 1}),\r\n\tspellcastingFactor : 1,\r\n\tfeatures : {\r\n\t\t\"rune lore\" : {\r\n\t\t\tname : \"Rune Lore\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the basics of scribing runes, and can activate all properties of a master rune\",\r\n\t\t\t\t\"The first rune I master is the one I found to qualify to become a rune scribe\",\r\n\t\t\t\t\"To use any features of a master rune, I need to first attune to it just like a magic item\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add master runes to the third page'\r\n\t\t\t]),\r\n\t\t\textraname : \"Master Rune\",\r\n\t\t\textrachoices : [\"Opal of the Ild Rune\", \"Orb of the Stein Rune\", \"Pennant of the Vind Rune\", \"Shard of the Kalt Rune\"],\t\r\n\t\t\t\"opal of the ild rune\" : {\r\n\t\t\t\tname : \"Opal of the Ild Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 4]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Ignite (simple): As an action, ignite touched flammable object; Fire extends 1 ft from it\",\r\n\t\t\t\t\t\"- Fire Tamer (simple): As an action, extinguish touched open flame up to 10-ft radius\",\r\n\t\t\t\t\t\"   I can expend a spell slot to extend that radius by 20 ft/SL\",\r\n\t\t\t\t\t\"- Fire's Friend (simple): While attuned, I have resistance to cold damage\",\r\n\t\t\t\t\t\"- Combustion (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   The target automatically takes 1d10 + 1d10/SL fire damage\",\r\n\t\t\t\t\t\"- Flame Brand (complex): During a short rest, I can augment a weapon, or 20 ammo\",\r\n\t\t\t\t\t\"   The weapon or ammo deals fire damage; It lasts for 24 hours or until I use this again\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"- Flame Stoker (complex): While attuned, I roll any fire damage twice and use the higher\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\taction : ['action', 'Ild Rune (Ignite, Fire Tamer, Combusion)']\r\n\t\t\t},\r\n\t\t\t\"orb of the stein rune\" : {\r\n\t\t\t\tname : \"Orb of the Stein Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 5]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Indomitable Stand (simple): As an action, I gain abilities until I move\",\r\n\t\t\t\t\t\"   I have advantage on all ability checks and saving throws to resist being moved\",\r\n\t\t\t\t\t\"   Anyone moving within 10 ft makes a DC 12 Str save or has speed 0 until its next turn\",\r\n\t\t\t\t\t\"- Stone Soul (simple): While attuned, I cannot be petrified\",\r\n\t\t\t\t\t\"- Stone's Secrets (simple): As an action, I learn everybody's current location within 30 ft\",\r\n\t\t\t\t\t\"   They have to touch the same surface as I'm touching with my hand\",\r\n\t\t\t\t\t\"- Crushing Brand (complex): During a short rest, I can augment a bludgeoning weapon\",\r\n\t\t\t\t\t\"   The weapon's bludgeoning damage ignores resistances and immunities\",\r\n\t\t\t\t\t\"   If the weapon deals its maximum damage, the target is also knocked prone\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"   These effects last for 24 hours or until I use Crushing Brand again\",\r\n\t\t\t\t\t\"- Earthen Step (complex): I can cast Meld Into Stone as a bonus action once per short rest\",\r\n\t\t\t\t\t\"- Overwhelming Bolt (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   It takes 2d8+1d8/SL bludg. dmg and is prone; DC 12+SL Str save for half \\u0026 not prone\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [['action', 'Stein Rune (Indomitable Stand, Secrets, Bolt)']],\r\n\t\t\t\tsavetxt : { immune : [\"petrified\"] },\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Orb of the Stein Rune\",\r\n\t\t\t\t\tspells : [\"meld into stone\"],\r\n\t\t\t\t\tselection : [\"meld into stone\"], \r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tchanges : \"Using my Orb of the Stein Rune, I can cast Meld Into Stone as a bonus action once per short rest.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Earthen Step (Orb of the Stein Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"pennant of the vind rune\" : {\r\n\t\t\t\tname : \"Pennant of the Vind Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 5]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Comforting Wind (simple): While attuned, I can't suffocate or drown\",\r\n\t\t\t\t\t\"   Also, I gain advantage on saves against inhaled poisons, toxins, and similar effects\",\r\n\t\t\t\t\t\"- Wind Step (simple): As an action, I fly 20 ft, after which I fall if I'm still airborne\",\r\n\t\t\t\t\t\"- Wind's Grasp (simple): As a reaction when falling, I can take no damage from the fall\",\r\n\t\t\t\t\t\"- Howling Brand (complex): During a short rest, I can augment a ranged weapon\",\r\n\t\t\t\t\t\"   Its range is doubled and attacks with it do not suffer disadvantage due to range\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"   These effects last for 24 hours or until I use Howling Brand again\",\r\n\t\t\t\t\t\"- Shrieking Bolt (complex): As an action, I expend spell slot to target a creature I can see\",\r\n\t\t\t\t\t\"   It 2d8+1d8/SL bludg. dmg \\u0026 pushed 10 ft; DC 12+SL Str save for half \\u0026 not pushed\",\r\n\t\t\t\t\t\"- Wind Walker (complex): I can cast Levitate as a bonus action once per short rest\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [['action', 'Vind Rune (Wind Step, Shrieking Bolt)'], ['reaction', \"Vind Rune (Wind's Grasp)\"]],\r\n\t\t\t\tsavetxt : { adv_vs : [\"inhaled poison\"] },\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Pennant of the Vind Rune\",\r\n\t\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\t\tselection : [\"levitate\"], \r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tchanges : \"Using my Pennant of the Vind Rune, I can cast Levitate as a bonus action once per short rest.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Wind Walker (Pennant of the Vind Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"shard of the kalt rune\" : {\r\n\t\t\t\tname : \"Shard of the Kalt Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 6]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Frigid Touch (simple): As an action, I freeze water that I touch a 10-ft radius\",\r\n\t\t\t\t\t\"- Frost Friend (simple): While attuned, I have resistance to fire damage\",\r\n\t\t\t\t\t\"- Icy Mantle (simple): As an action, me or a creature I touch gains a protective mantle\",\r\n\t\t\t\t\t\"   The next time taking bludg., slash., pierc. damage, it absorbs the damage and falls apart\",\r\n\t\t\t\t\t\"- Freezing Bolt (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   It takes 2d8+1d8/SL cold damage and its speed is 0 until the end of my next turn\",\r\n\t\t\t\t\t\"   If it succeeds on a DC 12+SL Con save, it takes only half damage and has normal speed\",\r\n\t\t\t\t\t\"- Ice Brand (complex): During a short rest, I can augment a weapon, or 20 ammo pieces\",\r\n\t\t\t\t\t\"   The weapon or ammo deals cold damage; It lasts for 24 hours or until I use this again\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"- Winter's Howl (complex): I can cast Sleet Storm as an action once per short rest\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\taction : ['action', 'Kalt Rune (Touch, Mantle, Bolt, Howl)'],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Shard of the Kalt Rune\",\r\n\t\t\t\t\tspells : [\"sleet storm\"],\r\n\t\t\t\t\tselection : [\"sleet storm\"],\r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Winter's Howl (Shard of the Kalt Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"runic magic\" : {\r\n\t\t\tname : \"Runic Magic\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I obtain spell slots as if gaining a level in a full spellcasting class, but don't learn spells\")\r\n\t\t},\r\n\t\t\"runic discovery\" : {\r\n\t\t\tname : \"Runic Discovery\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I know a number of master runes which I can attune to, even if not in my possession\",\r\n\t\t\t\t\"Attuning or de-attuning in this manner can be done over the course of a short rest\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\treturn (n < 3 ? 1 : n < 5 ? 2 : 3) + \" known master runes\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"living rune\" : {\r\n\t\t\tname : \"Living Rune\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I get 2 points that I can add to one or two of my ability scores as I see fit\",\r\n\t\t\t\t\"When I finish a long rest, I can re-allocate these point(s) from a single score to another\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"rune mastery\" : {\r\n\t\t\tname : \"Rune Mastery\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription: desc(\"One rune I'm attuned to doesn't count toward the limit of magic items I can attune to\")\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20151102_Light,-Dark,-Underdark!.js\r\n// This file adds the content from the Unearthed Arcana: Light, Dark, Underdark! article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:LDU\"] = {\r\n\tname : \"Unearthed Arcana: Light, Dark, Underdark!\",\r\n\tabbreviation : \"UA:LDU\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/02_UA_Underdark_Characters.pdf\",\r\n\tdate : \"2015/11/02\"\r\n};\r\n\r\n// New Fighting Styles\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Close Quarters Shooter\", { // Still valid 2021-09-21\r\n\tname : \"Close Quarters Shooting Fighting Style\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tdescription: desc([\r\n\t\t\"+1 bonus to attack rolls I make with ranged attacks\",\r\n\t\t\"I don't have disadvantage when making a ranged attack while within 5 ft of a hostile\",\r\n\t\t\"My ranged attacks ignore half and three-quarters cover against targets within 30 ft\",\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isRangedWeapon) output.extraHit += 1;\r\n\t\t\t},\r\n\t\t\t\"My ranged weapons get a +1 bonus on the To Hit.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Tunnel Fighter\", { // Still valid 2021-09-21\r\n\tname : \"Tunnel Fighting Style\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tdescription: desc([\r\n\t\t\"As a bonus action, I enter a defensive stance that lasts until the start of my next turn\",\r\n\t\t\"While I'm in this defensive stance I gain the following two benefits:\",\r\n\t\t\"\\u2022 I can make opportunity attacks without using my reaction\",\r\n\t\t\"\\u2022 I can make a melee attack as a reaction if a hostile moves >5 ft while in my reach\",\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\n\r\n// A subclass for the Ranger, called \"Deep Stalker\"\r\nAddSubClass(\"ranger\", \"deep stalker-ua\", {\r\n\tregExpSearch : /^(?=.*deep)(?=.*stalker).*$/i,\r\n\tsubname : \"Deep Stalker\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tfullname : \"Deep Stalker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Underdark Scout\",\r\n\t\t\tsource : [[\"UA:LDU\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"In the first turn of combat I have +10 ft speed and +1 attack with the Attack action\",\r\n\t\t\t\t\"All turns after that, I can take the Hide action as a bonus action at the end of my turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (Hide at end of turn)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Deep Stalker Magic\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 90 ft darkvision and add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"glyph of warding\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tvision : [[\"Darkvision\", 90]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I am proficient with Wisdom saving throws\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Once during my turn when I miss an attack, I can immediately make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Stalker's Dodge\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Sorcerer, called \"Shadow\"\r\nAddSubClass(\"sorcerer\", \"shadow sorcerer-ua\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*shadow).*$/i,\r\n\tsubname : \"Shadow\",\r\n\tsource : [[\"UA:LDU\", 2]],\r\n\tfullname : \"Shadow Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 60 ft darkvision and can cast Darkness by spending 1 sorcery point\",\r\n\t\t\t\t\"I can see through any darkness spell I cast using this ability\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 sorcery point\",\r\n\t\t\tvision : [[\"Darkvision\", 60]],\r\n\t\t\taction : [[\"action\", \" (1 sorcery point)\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 1\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"darkness\" : {\r\n\t\t\t\t\tdescription : \"15-ft rad darkness on point/obj; I see normally; darkvision doesn't work; only magical light of SL 3+\",\r\n\t\t\t\t\tchanges : \"Using my Eyes of the Dark class feature I can cast Darkness by spending 1 sorcery point and I can see through that Darkness without issue.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Strength of the Grave\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When damage reduces me to 0 HP, that isn't radiant damage or a critical hit,\",\r\n\t\t\t\t\"I can make a Constitution save (DC 5 + damage taken) to drop to 1 HP instead\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional : \"3 sorcery points\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I target a creature I can see and summon a hound within 30 ft of it\",\r\n\t\t\t\t\"The hound has all the stats of a medium sized dire wolf with the following exceptions:\",\r\n\t\t\t\t\"\\u2022 At the start of its turn, it automatically knows where the target is\",\r\n\t\t\t\t\"\\u2022 It can only move towards and make (opportunity) attack against the target\",\r\n\t\t\t\t\"\\u2022 It can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"\\u2022 It takes 5 force damage if it ends its turn inside an object\",\r\n\t\t\t\t\"The target has disadvantage on saves vs. my spells while the hound is within 5 ft of it\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Walk\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can teleport up to 120 ft\",\r\n\t\t\t\t\"The destination has to be unoccupied, within line of sight, and in dim light or darkness\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Shadow Form\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional : \"3 sorcery points\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I transform into a shadow form for 1 minute\",\r\n\t\t\t\t\"While transformed, I have resistance to all damage types except force damage\",\r\n\t\t\t\t\"Also, I can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 5 force damage if I end my turn inside an object\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Warlock, called \"The Undying Light\"\r\nAddSubClass(\"warlock\", \"the undying light-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*light)(?=.*(immortal|undying|neverending|unending)).*$/i,\r\n\tsubname : \"the Undying Light\",\r\n\tsource : [[\"UA:LDU\", 3]],\r\n\tspellcastingExtra : [\"burning hands\", \"flaming sphere\", \"daylight\", \"fire shield\", \"flame strike\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add my Cha modifier to cantrips/spells I cast that deal fire or radiant damage\",\r\n\t\t\t\t\"I have resistance to radiant damage and know the Light and Sacred Flame cantrips\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Radiant Soul\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Radiant Soul\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) output.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I would make a death saving throw, I can instead spring back to my feet\",\r\n\t\t\t\t\"I immediately stand up and recover HP equal to half my current HP maximum\",\r\n\t\t\t\t\"Also, all hostiles within 30 ft of me take 10 + Charisma modifier in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Radiant Resilience\",\r\n\t\t\tsource : [[\"UA:LDU\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"UA:LDU\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I touch a creature and heal it by expending dice from my pool\",\r\n\t\t\t\t\"I subtract the number of d6's used from my pool; I can expend up to 5d6 at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain expended uses with a long rest\",\r\n\t\t\t]),\r\n\t\t\tusages : \"15d6 per \",\r\n\t\t\tusagescalc : \"event.value = '15d6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20151217_That-Old-Black-Magic.js\r\n// This file adds the content from the Unearthed Arcana: That Old Black Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:TOBM\"] = {\r\n\tname : \"Unearthed Arcana: That Old Black Magic\",\r\n\tabbreviation : \"UA:TOBM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/07_UA_That_Old_Black_Magic.pdf\",\r\n\tdate : \"2015/12/17\"\r\n};\r\n\r\n// Adds the Abyssal Tiefling\r\nRaceList[\"abyssal tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*abyssal)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\tname : \"Abyssal tiefling\",\r\n\tsortname : \"Tiefling, Abyssal\",\r\n\tsource : [[\"UA:TOBM\", 1]],\r\n\tplural : \"Abyssal tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Abyssal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Abyssal Tiefling (+1 Constitution, +2 Charisma)\\nAbyssal Fortitude: My HP maximum increases with half the levels I have (min 1). Abyssal Arcana: After each long rest I gain randomly determined spellcasting ability (d6). This is a cantrip, and on both 3rd and 5th level a spell that I can cast once, at 2nd-level.\\n1: (Dancing Lights, Burning Hands, Alter Self); 2: (True Strike, Charm Person, Darkness)\" + (!typePF ? \";\" : \" \") + \" 3: (Light, Magic Missile, Invisibility); 4: (Spare the Dying, Hideous Laughter, Mirror Image)\" + (!typePF ? \";\" : \" \") + \" 5: (Message, Cure Wounds, Levitate); 6: (Prestidigitation, Thunderwave, Spider Climb)\",\r\n\tabilitySave : 6,\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Abyssal Arcana (level 1)\",\r\n\t\tspells : [\"dancing lights\", \"true strike\", \"light\", \"message\", \"spare the dying\", \"prestidigitation\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) { return [Math.max(1, Math.floor(totalHD / 2)), \"Abyssal Fortitude\"]; }\r\n\t},\r\n\tfeatures : {\r\n\t\t\"abyssal arcana (level 3)\" : {\r\n\t\t\tname : \"Abyssal Arcana (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Abyssal Arcana (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\", \"charm person\", \"magic missile\", \"cure wounds\", \"tasha's hideous laughter\", \"thunderwave\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"abyssal arcana (level 5)\" : {\r\n\t\t\tname : \"Abyssal Arcana (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Abyssal Arcana (level 5)\",\r\n\t\t\t\tspells : [\"alter self\", \"darkness\", \"invisibility\", \"levitate\", \"mirror image\", \"spider climb\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tvariants : RaceList.tiefling && RaceList.tiefling.variants ? RaceList.tiefling.variants : []\r\n};\r\n//now do the variants\r\nvar UATOBM_addAbyssalTiefling = function(){\r\n\tvar replaceTraitTxt = [\"+1 Intelligence, +2 Charisma\", \"+1 Constitution, +2 Charisma\"];\r\n\tvar replaceNameTxt = [\"tiefling\", \"abyssal tiefling\"];\r\n\tRaceList[\"abyssal tiefling-ua\"].variants.forEach( function(nVar) {\r\n\t\tif (!RaceSubList[\"tiefling-\" + nVar]) return;\r\n\t\tRaceSubList[\"abyssal tiefling-ua-\" + nVar] = newObj(RaceSubList[\"tiefling-\" + nVar]);\r\n\t\tvar thisVar = RaceSubList[\"abyssal tiefling-ua-\" + nVar];\r\n\t\tthisVar.trait = thisVar.trait.replace(replaceTraitTxt[0], replaceTraitTxt[1]);\r\n\t\tthisVar.trait = thisVar.trait.replace(replaceNameTxt[0].capitalize(), replaceNameTxt[1].capitalize());\r\n\t\tthisVar.name = thisVar.name.replace(replaceNameTxt[0], replaceNameTxt[1]);\r\n\t\tthisVar.plural = thisVar.plural.replace(replaceNameTxt[0], replaceNameTxt[1]);\r\n\t});\r\n}();\r\n\r\n/*\tAdds 5 spells for summoning fiends to the Sorcerer and the Wizard spell lists\r\n\t\r\n\tThis code was contributed by David\r\n*/\r\nSpellsList[\"conjure lesser demon-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Lesser Demon\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from an intelligent humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 8 (16 at SL6, 32 at SL8) manes/dretches that are hostile to all non-demons, attacking nearest\",\r\n\tdescriptionFull : \"You summon up to a total of eight manes or dretches that appear in unoccupied spaces you can see within range. A manes or dretch disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The demons are hostile to all creatures. Roll initiative for the summoned demons as a group, which has its own turns. The demons attack the nearest non-demons to the best of their ability.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. The summoned demons cannot cross the circle or target anyone in it while the spell lasts. Using the material component in this manner consumes it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th or 7th level, you summon sixteen demons. If you cast it using a spell slot of 8th or 9th level, you summon thirty-two demons.\"\r\n};\r\nSpellsList[\"conjure barlgura-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Barlgura\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Summon a barlgura that is hostile to all non-demons, attacking the nearest\",\r\n\tdescriptionFull : \"You summon a barlgura that appears in an unoccupied space you can see within range. The barlgura disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The barlgura is hostile to all non-demons. Roll initiative for the barlgura, which has its own turns. At the start of its turn, it moves toward and attacks the nearest non-demon it can perceive. If two or more creatures are equally near, it picks one at random. If it cannot see any potential enemies, the barlgura moves in a random direction in search of foes.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned barlgura cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure hezrou-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Hezrou\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Food worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a hezrou that I might control as long as there is food; At half HP it leaves, see B (100gp cons.)\",\r\n\tdescriptionFull : \"You summon a hezrou that appears in an unoccupied space you can see within range. The hezrou disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The hezrou's attitude depends on the value of the food used as a material component for this spell. Roll initiative for the hezrou, which has its own turns. At the start of the hezrou's turn, the DM makes a secret Charisma check on your behalf, with a bonus equal to the food's value divided by 20. The check DC starts at 10 and increases by 2 each round. You can issue orders to the hezrou and have it obey you as long as you succeed on the Charisma check.\" + \"\\n   \" + \"If the check fails, the spell no longer requires concentration and the demon is no longer under your control. The hezrou then focuses on devouring any corpses it can see. If there are no such meals at hand, it attacks the nearest creatures and eats anything it kills. If its hit points are reduced to below half its hit point maximum, it returns to the Abyss.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned hezrou cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure shadow demon-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Shadow Demon\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 3]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from an intelligent humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a shadow demon that I control while not in bright light, can attack, and within 100 ft, see B\",\r\n\tdescriptionFull : \"You summon a shadow demon that appears in an unoccupied space you can see within range. The shadow demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"Roll initiative for the shadow demon, which has its own turns. You can issue orders to the shadow demon, and it obeys you as long as it can attack a creature on each of its turns and does not start its turn in an area of bright light. If either of these conditions is not met, the shadow demon immediately makes a Charisma check contested by your Charisma check. If you fail the check, the spell no longer requires concentration and the demon is no longer under your control. The demon automatically succeeds on the check if it is more than 100 feet away from you.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned shadow demon cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure vrock-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Vrock\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 3]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A gem worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a vrock that I might control for some rounds, depending on gem value, see B (100gp cons.)\",\r\n\tdescriptionFull : \"You summon a vrock that appears in an unoccupied space you can see within range. The vrock disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The vrock's attitude depends on the value of the gem used as a material component for this spell. Roll initiative for the vrock, which has its own turns. At the start of the vrock's turn, the DM makes a secret Charisma check on your behalf, with a bonus equal to the gem's value divided by 20. The check DC starts at 10 and increases by 2 each round. You can issue orders to the vrock and have it obey you as long as you succeed on the Charisma check.\" + \"\\n   \" + \"If the check fails, the spell no longer requires concentration and the vrock is no longer under your control. The vrock takes no actions on its next turn and uses its telepathy to tell any creature it can see that it will fight in exchange for treasure. The creature that gives the vrock the most expensive gem can command it for the next 1d6 rounds. At the end of that time, it offers the bargain again. If no one offers the vrock treasure before its next turn begins, it attacks the nearest creatures for 1d6 rounds before returning to the Abyss.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned vrock cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\n\n// ua_20160104_Kits-of-Old.js\r\n// This file adds the content from the Unearthed Arcana: Kits of Old article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:KoO\"] = {\r\n\tname : \"Unearthed Arcana: Kits of Old\",\r\n\tabbreviation : \"UA:KoO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/04_UA_Classics_Revisited.pdf\",\r\n\tdate : \"2016/01/04\"\r\n};\r\n\r\n// Adds four subclasses, 2 for the bard, 2 for the fighter\r\nAddSubClass(\"bard\", \"college of swords-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"UA:KoO\", 1]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and scimitars\"),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : function () {\r\n\t\t\tvar FSfea = newObj(FightingStyles.two_weapon);\r\n\t\t\tFSfea.source = [\"UA:KoO\", 1];\r\n\t\t\tFSfea.minlevel = 3;\r\n\t\t\treturn FSfea;\r\n\t\t}(),\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"UA:KoO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action on my turn, I can do one of the following flourishes:\",\r\n\t\t\t\t\"I have to use a dagger, longsword, rapier, scimitar, or shortsword while doing this\",\r\n\t\t\t\t\"\\u2022 Defensive Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action, I add the die to my AC until the start of my next turn\",\r\n\t\t\t\t\"\\u2022 Trick Shooter's Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action with a dagger ranged attack, I add the die to the attack roll\",\r\n\t\t\t\t\"   If the target is an unattended, inanimate object, the result of the die is doubled\",\r\n\t\t\t\t\"\\u2022 Unnerving Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action when reducing a foe to 0 HP with a melee attack, I leave it alive\",\r\n\t\t\t\t\"   The target stays at 1 HP and is frightened of me for my Cha modifier in minutes\",\r\n\t\t\t\t\"   It must also make a Cha save at a DC of my spell save + the bardic inspiration die\",\r\n\t\t\t\t\"   If failed, it answers truthfully any questions I ask and obeys me while frightened\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (one inspiration die)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Battle Magic\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"When I use my action to cast a Bard spell, I can make one bonus action weapon attack\"),\r\n\t\t\taction : [[\"bonus action\", \" (with Bard spell)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of satire-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*satire).*$/i,\r\n\tsubname : \"College of Satire\",\r\n\tsubnameShort: \"Satire\",\r\n\tsource : [[\"UA:KoO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with thieves' tools, sleight of hand, and one other skill of my choice\"),\r\n\t\t\tskills : [\"Sleight of Hand\"],\r\n\t\t\tskillstxt : \"Thieves' Tools, Sleight of Hand, and any one other skill\",\r\n\t\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Tumbling Fool\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I tumble which gives the benefits of the Dash and Disengage actions\",\r\n\t\t\t\t\"I also gain a climbing speed at my current speed and half damage from falling\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fool's Insight\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can cast Detect Thoughts, but on a save the target suffers an embarrassing social gaffe\"),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fool's Insight\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : \"(S)\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect thoughts\" : {\r\n\t\t\t\t\tdescription : \"1 a read thoughts of visible Int>3 crea or detect invisible in 30 ft; save for probing, social gaffe on save\",\r\n\t\t\t\t\tchanges : \"I can cast this spell a number of times equal to my Charisma modifier per long rest and when I do so and the target makes its save, it suffers an embarrassing social gaffe.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fool's Luck\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tadditional: \"one bardic inspiration die\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I fail an ability check, saving throw, or attack roll, I can add one inspiration die\",\r\n\t\t\t\t\"If this turns the roll into a success, I have to note down the number rolled\",\r\n\t\t\t\t\"I can't use this ability again until the DM subtracts the amount from a check or attack\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"reset\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier-ua\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"UA:KoO\", 3]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one skill and any one tool\",\r\n\t\t\t\t\"For skills I can choose from Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"1 Skill and 1 Tool proficiencies\", \"2 Skill proficiencies\"],\r\n\t\t\t\"1 skill and 1 tool proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I gain proficiency with one skill and any one tool of my choice\",\r\n\t\t\t\t\t\"For the skill, I can choose Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t\ttoolProfs : [[\"Any tool\", 1]]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc(\"I gain two skill proficiencies: Animal Handling, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Animal Handling, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling to influence/control an animal; I add the superiority die to the roll\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 Use on a mount, before rolling to hit with a lance; I add the die to the damage roll\",\r\n\t\t\t\t\"   Also, the target must make a Str save (DC 8 + Prof + Str mod) or be knocked prone\",\r\n\t\t\t\t\"\\u2022 As a reaction when I'm hit or my mount is hit, I add the superiority die to AC\",\r\n\t\t\t\t\"   If the attack still hits, I or my mount only take half damage from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (if hit/mount hit)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use two superiority dice, instead of just one, to increase the damage of my lance\",\r\n\t\t\t\t\"If doing so, the target has disadvantage on its Str save to avoid being knocked prone\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"scout-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"UA:KoO\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with three skills or two skills and Thieves' Tools; For skills choose from:\",\r\n\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"2 Skill proficiencies and Thieves' Tools proficiency\", \"3 Skill proficiencies\"],\r\n\t\t\t\"2 skill proficiencies and thieves' tools proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with two skills and Thieves' Tools; For skills choose from:\",\r\n\t\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose two from: Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, or Survival\",\r\n\t\t\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]]\r\n\t\t\t},\r\n\t\t\t\"3 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with three skills, chosen from:\",\r\n\t\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose three from: Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling an Athletics, Nature, Perception, Stealth, or Survival check\",\r\n\t\t\t\t\"   I add half the superiority die to the roll (rounding up)\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 As a reaction when I'm hit while wearing light/medium armor, I add the die to AC\",\r\n\t\t\t\t\"   If the attack still hits, I only take half damage from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (if hit)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : function () {\r\n\t\t\tvar NEfea = newObj(ClassList.ranger.features[\"natural explorer\"]);\r\n\t\t\tNEfea.source = [\"UA:KoO\", 4];\r\n\t\t\tNEfea.minlevel = 3;\r\n\t\t\tNEfea.additional = [\"\", \"\", \"1 favored terrain\", \"1 favored terrain\", \"1 favored terrain\", \"1 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\"];\r\n\t\t\treturn NEfea;\r\n\t\t}(),\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20160404_Gothic-Heroes.js\r\n// This file adds the content from the Unearthed Arcana: Gothic Heroes article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:GH\"] = {\r\n\tname : \"Unearthed Arcana: Gothic Heroes\",\r\n\tabbreviation : \"UA:GH\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.dnd.wizards.com/upload/articles/UA%20Gothic%20Characters.pdf\",\r\n\tdate : \"2016/04/04\"\r\n};\r\n\r\n// Adds 8 new races, the Revenant versions of the Aasimar, Dragonborn, Dwarf, Elf, Gnome, Halfling, Human, and Tiefling\r\n// All revenants are still valid 2021-09-21\r\nRaceList[\"aasimar revenant-ua\"] = { // Based on the VGtM Aasimar, made with /u/RebelMage's help\r\n\tregExpSearch : /^(?=.*revenant)((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel)))).*$/i,\r\n\tname : \"Aasimar Revenant\",\r\n\tsortname : \"Revenant, Aasimar\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Aasimar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Aasimar Revenant (+1 Constitution, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip. Healing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : [\"1 HP\", \"2 HP\", \"3 HP\", \"4 HP\", \"5 HP\", \"6 HP\", \"7 HP\", \"8 HP\", \"9 HP\", \"10 HP\", \"11 HP\", \"12 HP\", \"13 HP\", \"14 HP\", \"15 HP\", \"16 HP\", \"17 HP\", \"18 HP\", \"19 HP\", \"20 HP\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dwarf revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b).*$/i,\r\n\tname : \"Dwarf Revenant\",\r\n\tsortname : \"Revenant, Dwarf\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Dwarves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 3, 0, 0, 0],\r\n\ttrait : \"Dwarf Revenant (+3 Constitution)\\nStonecunning: I have expertise on Int (History) checks related to the origin of stonework.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"elf revenant-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*revenant)(?=.*\\b(elfs?|elves|elvish|elven)\\b).*$/i,\r\n\tname : \"Elf Revenant\",\r\n\tsortname : \"Revenant, Elf\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Elf Revenant (+2 Dexterity, +1 Constitution)\\nTrance: I don't sleep, but meditate for 4 hours a day, needing only 4 hours for a long rest.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"halfling revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\b(halflings?|hobbits?)\\b).*$/i,\r\n\tname : \"Halfling Revenant\",\r\n\tsortname : \"Revenant, Halfling\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Halfling Revenant (+2 Dexterity, +1 Constitution)\" + (typePF ? \"\\n\" : \" \") + \"Lucky: I reroll 1's on attack/check/save. Halfling Nimbleness: I can move through the space of anybody of a size larger than me.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"gnome revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\bgnomes?\\b).*$/i,\r\n\tname : \"Gnome Revenant\",\r\n\tsortname : \"Revenant, Gnome\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Gnomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 2, 0, 0],\r\n\ttrait : \"Gnome Revenant (+1 Constitution, +2 Intelligence)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\nRaceList[\"dragonborn revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*dragonborn)(?=.*revenant).*$/i,\r\n\tname : \"Dragonborn Revenant\",\r\n\tsortname : \"Revenant, Dragonborn\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Dragonborn\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\tname : \"Breath weapon\",\r\n\t\tsource : [[\"UA:GH\", 1]],\r\n\t\tability : 3,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [2, 6, \"necrotic\"],\r\n\t\trange : '5-ft \\xD7 30-ft line',\r\n\t\tdescription : \"Hits all in area; Con save, success - half damage; Usable only once per short rest\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tdbBreathWeapon : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 1],\r\n\ttrait : \"Dragonborn Revenant (+1 Strength, +1 Constitution, +1 Charisma)\\nBreath Weapon: As an action, 5 ft by 30 ft line, Dex save halves, necrotic damage.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\",\r\n\tdmgres : [\"Necrotic\"],\r\n\tfeatures : {\r\n\t\t\"draconic ancestry\" : {\r\n\t\t\tname : \"Draconic Ancestry\",\r\n\t\t\tlimfeaname : \"Breath Weapon\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + 'd6';\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && CurrentRace.known === 'dragonborn revenant' && CurrentRace.level > 5) {\r\n\t\t\t\t\t\t\toutput.die = output.die.replace('2d6', (CurrentRace.level < 11 ? 3 : CurrentRace.level < 16 ? 4 : 5) + 'd6');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"human revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*human)(?=.*revenant).*$/i,\r\n\tname : \"Human Revenant\",\r\n\tsortname : \"Revenant, Human\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Humans\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Constitution and +1 to two different ability scores of my choice\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\ttrait : \"Human Revenant (+1 Constitution and +1 to two different ability scores of my choice)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\nRaceList[\"tiefling revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\tname : \"Tiefling Revenant\",\r\n\tsortname : \"Revenant, Tiefling\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Tiefling Revenant (+1 Constitution, +2 Charisma)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\n\r\n// Adds 2 subclasses, 1 for the Fighter and 1 for the rogue\r\nAddSubClass(\"fighter\", \"monster hunter-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*monster)(?=.*hunter).*$/i,\r\n\tsubname : \"Monster Hunter\",\r\n\tsource : [[\"UA:GH\", 2]],\r\n\tfullname : \"Monster Hunter\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one skill and any one tool\",\r\n\t\t\t\t\"For skills I can choose Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"1 Skill and 1 Tool proficiencies\", \"2 Skill proficiencies\"],\r\n\t\t\t\"1 skill and 1 tool proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I gain proficiency with one skill and any one tool of my choice\",\r\n\t\t\t\t\t\"For the skill, I can choose Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t\ttoolProfs : [[\"Any tool\", 1]]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc(\"I gain 2 skill proficiencies: Arcana, History, Insight, Investigation, Nature, or Perception\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Arcana, History, Insight, Investigation, Nature, and Perception\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 Use after damaging a creature; I add the superiority die to the damage roll\",\r\n\t\t\t\t\"   Also, the attack imposes disadvantage on any concentration save resulting from it\",\r\n\t\t\t\t\"\\u2022 Use after Int/Wis/Cha save, before knowing success/fail; add the die to the save total\",\r\n\t\t\t\t\"\\u2022 Use with Wis (Perception) to detect hidden or Wis (Insight) to see if lying to me\",\r\n\t\t\t\t\"   After rolling but before knowing if success/fail; I add the superiority die to the check\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Hunter's Mysticism\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\t\t\t\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can cast Detect Magic as a ritual and Protection from Evil & Good once per long rest\",\r\n\t\t\t\t\"I gain the ability to speak one of the following languages: Abyssal, Celestial, or Infernal\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (Prot vs. Evil/Good)\"]],\r\n\t\t\tlanguageProfs : [[\"Abyssal, Celestial, or Infernal\", 1]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t\tspellcastingAbility : 5\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"protection from evil and good\"],\r\n\t\t\t\tselection : [\"protection from evil and good\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect magic\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Monster Slayer\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Whenever I use a superiority die, I can choose to expend two, adding both to the roll\",\r\n\t\t\t\t\"If the target is an aberration, fey, fiend, or undead, both dice deal maximum damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"inquisitive-ua\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*inquisitive).*$/i,\r\n\tsubname : \"Inquisitive\",\r\n\tsource : [[\"UA:GH\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ear for Deceit\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When using Wis (Insight) to sense if someone is lying, I can choose to use a fixed total\",\r\n\t\t\t\t\"This total is 8 + Wis modifier + proficiency bonus (if proficient, or twice if expertise)\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eye for Detail\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use the bonus action granted by Cunning Action for the following as well:\",\r\n\t\t\t\t\"\\u2022 To make a Wisdom (Perception) check to spot a hidden creature or object\",\r\n\t\t\t\t\"\\u2022 To make an Intelligence (Investigation) check to uncover and decipher clues\",\r\n\t\t\t\t\"\\u2022 To use Insightful Fighting (see below)\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Insightful Fighting\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action or bonus action, I can decipher the tactics of an active opponent I can see\",\r\n\t\t\t\t\"I have to make a Wisdom (Insight) check vs. the target's Charisma (Deception) check\",\r\n\t\t\t\t\"If I succeed, I can use sneak attack on the target regardless of advantage/disadvantage\",\r\n\t\t\t\t\"This benefit lasts for 1 minute or until I successfully use Insightful Fighting again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Steady Eye\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc(\"If not moving during my turn, I gain adv. on Wis (Perception) to find hidden things\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Unerring Eye\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can sense magical deceptions within 30 feet of me, but not what it does\",\r\n\t\t\t\t\"I learn the presence of illusions, shapechanged creatures, or magic designed to deceive\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Eye for Weakness\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"While my Insightful Fighting is active, I add 2d6 to sneak attacks against that target\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20160606_Feats.js\n// This file adds the content from the Unearthed Arcana: Feats article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:F\"] = {\n\tname : \"Unearthed Arcana: Feats\",\n\tabbreviation : \"UA:F\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2016/downloads/DND/UA-Feats-V1.pdf\",\n\tdate : \"2016/06/06\"\n};\n\n// Add 8 feats: 4 'weapon mastery' feats and 4 'tool' feats\n// This doesn't add the \"Warhammer Master\" feat, as that is only in the article to illustrate how not to design a feat\nFeatsList[\"fell handed-ua\"] = {\n\tname : \"Fell Handed\",\n\tsource : [[\"UA:F\", 2], [\"UA\", 0]],\n\tdescriptionFull : \"You master the handaxe, battleaxe, greataxe, warhammer, and maul. You gain the following benefits when using any of them:\\n \\u2022 You gain a +1 bonus to attack rolls you make with the weapon.\\n \\u2022 Whenever you have advantage on a melee attack roll you make with the weapon and hit, you can knock the target prone if the lower of the two d20 rolls would also hit the target.\\n \\u2022 Whenever you have disadvantage on a melee attack roll you make with the weapon, the target takes bludgeoning damage equal to your Strength modifier (minimum of 0) if the attack misses but the higher of the two d20 rolls would have hit.\\n \\u2022 If you use the Help action to aid an ally's melee attack while you're wielding the weapon, you knock the target's shield aside momentarily. In addition to the ally gaining advantage on the attack roll, the ally gains a +2 bonus to the roll if the target is using a shield.\",\n\tdescription : \"With a handaxe, battleaxe, greataxe, warhammer, or maul, I get +1 to hit, knock prone if I have adv. and hit with both rolls, with disadv. still do Str mod in bludg. damage if I miss but the other die would've hit, can use Help to give ally +2 to hit vs. enemy with a shield.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif ((/handaxe|battleaxe|greataxe|warhammer|maul/).test(v.baseWeaponName)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Adv: knock prone if both dice hit; Disadv: Str Mod bludg. damage on miss but 2nd die would hit';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a handaxe, battleaxe, greataxe, warhammer, or maul, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 When attacking with advantage, the target is knocked prone if both die would hit;\\n \\u2022 When attacking with disadvantage and missing, still do my Strength modifier in bludgeoning damage.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif ((/handaxe|battleaxe|greataxe|warhammer|maul/).test(v.baseWeaponName)) output.extraHit += 1;\n\t\t\t}, \"\"]\n\t}\n};\nFeatsList[\"blade mastery-ua\"] = {\n\tname : \"Blade Mastery\",\n\tsource : [[\"UA:F\", 2], [\"UA\", 0]],\n\tdescriptionFull : \"You master the shortsword, longsword, scimitar, rapier, and greatsword. You gain the following benefits when using any of them:\\n \\u2022 You gain a +1 bonus to attack rolls you make with the weapon.\\n \\u2022 On your turn, you can use your reaction to assume a parrying stance, provided you have the weapon in hand. Doing so grants you a +1 bonus to your AC until the start of your next turn or until you're not holding the weapon.\\n \\u2022 When you make an opportunity attack with the weapon, you have advantage on the attack roll.\",\n\tdescription : \"With a shortsword, longsword, greatsword, scimitar, or rapier, I get +1 to hit, advantage on opportunity attacks, and with the weapon in hand I can use my reaction to assume a parrying stance that gives me +1 AC until the start of my next turn.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif ((/shortsword|longsword|greatsword|scimitar|rapier/).test(v.baseWeaponName)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Advantage on opportunity attacks';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a shortsword, longsword, greatsword, scimitar, or rapier, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 Advantage on opportunity attacks.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif ((/shortsword|longsword|greatsword|scimitar|rapier/).test(v.baseWeaponName)) output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"reaction\", \" Parrying Stance\"]]\n};\nFeatsList[\"flail mastery-ua\"] = {\n\tname : \"Flail Mastery\",\n\tsource : [[\"UA:F\", 3], [\"UA\", 0]],\n\tdescriptionFull : \"The flail is a tricky weapon to use, but you have spent countless hours mastering it. You gain the following benefits:\\n \\u2022 You gain a +1 bonus to attack rolls you make with a flail.\\n \\u2022 As a bonus action on your turn, you can prepare yourself to extend your flail to sweep over targets' shields. Until the end of this turn, your attack rolls with a flail gain a +2 bonus against any target using a shield.\\n \\u2022 When you hit with an opportunity attack using a flail, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + your Strength modifier) or be knocked prone.\",\n\tcalculate : \"event.value = 'With a flail, I get +1 to hit, and enemies hit by an opportunity attack with it have to make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + What('Str Mod')) + ' (8 + Prof Bonus + Str mod) or be knocked prone. As a bonus action, I can get +2 to hit with my flail vs. targets with shields until the end of my turn.';\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == 'flail') {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On opportunity attack hit, Strength save (DC 8 + Prof Bonus + Str mod) or knocked prone';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a flail, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 Targets hit with it must make a Strength saving throw (DC 8 + proficiency bonus + Strength modifier) or be knocked prone.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.baseWeaponName == 'flail') output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"bonus action\", \"\"]]\n};\nFeatsList[\"spear mastery-ua\"] = {\n\tname : \"Spear Mastery\",\n\tsource : [[\"UA:F\", 3], [\"UA\", 0]],\n\tdescriptionFull : \"Though the spear is a simple weapon to learn, it rewards you for the time you have taken to master it. You gain the following benefits:\\n \\u2022 You gain a +1 bonus to attack rolls you make with a spear.\\n \\u2022 When you use a spear, its damage die changes from a d6 to a d8, and from a d8 to a d10 when wielded with two hands. (This benefit has no effect if another feature has already improved the weapon's die.)\\n \\u2022 You can set your spear to receive a charge. As a bonus action, choose a creature you can see that is at least 20 feet away from you. If that creature moves within your spear's reach on its next turn, you can make a melee attack against it with your spear as a reaction. If the attack hits, the target takes an extra 1d8 piercing damage, or an extra 1d10 piercing damage if you wield the spear with two hands. You can't use this ability if the creature used the Disengage action before moving.\\n \\u2022 As a bonus action on your turn, you can increase your reach with a spear by 5 feet for the rest of your turn.\",\n\tdescription : \"With a spear, I get +1 to hit and it does d8 damage (versatile d10). As a bonus action, I select a target at least 20 ft away. If it moves in reach on its next turn, I can attack it as a reaction, extra damage die. As a bonus action, I can increase the spear's reach by 5 ft.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == 'spear') {\n\t\t\t\t\tfields.Damage_Die = fields.Damage_Die === '1d6' ? '1d8' : fields.Damage_Die;\n\t\t\t\t\tfields.Description = fields.Description.replace('versatile (1d8)', 'versatile (1d10)');\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a spear, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 The spear damage die increases to d8 (versatile d10).\",\n\t\t\t1\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.baseWeaponName == 'spear') output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"bonus action\", \" (set vs. charge)\"], ['bonus action', ' (increase reach)']]\n};\nFeatsList[\"alchemist-ua\"] = {\n\tname : \"Alchemist\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You have studied the secrets of alchemy and are an expert in its practice, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with alchemist's supplies. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\\n \\u2022 As an action, you can identify one potion within 5 feet of you, as if you had tasted it. You must see the liquid for this benefit to work.\\n \\u2022 Over the course of any short rest, you can temporarily improve the potency of one potion of healing of any rarity. To use this benefit, you must have alchemist's supplies with you, and the potion must be within reach. If the potion is drunk no more than 1 hour after the short rest ends, the creature drinking the potion can forgo the potion's die roll and regains the maximum number of hit points that the potion can restore.\",\n\tdescription : \"I gain proficiency with alchemist's supplies, or expertise if already proficient. As an action, I can identify a potion within 5 ft. During a rest with alchemist's supplies, I can enhance a potion of healing, to heal its max. Consuming it within 1 hour maximizes its effects [+1 Int]\",\n\tscores : [0, 0, 0, 1, 0, 0],\n\taction : [[\"action\", \" (identify potion)\"]],\n\ttoolProfs : [[\"Alchemist's supplies\", \"Int\"]],\n\teval : function () {\n\t\tif ((/(alchemist|alchemy).*(supplies|kit)/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/(alchemist|alchemy).*(supplies|kit)/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"burglar-ua\"] = {\n\tname : \"Burglar\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You pride yourself on your quickness and your close study of certain clandestine activities. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with thieves' tools. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\",\n\tdescription : \"I gain proficiency with thieves' tools, or expertise with them if I'm already proficient. [+1 Dexterity]\",\n\tscores : [0, 1, 0, 0, 0, 0],\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\n\teval : function () {\n\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"gourmand-ua\"] = {\n\tname : \"Gourmand\",\n\tsource : [[\"UA:F\", 4]],\n\tdescriptionFull : \"You have mastered a variety of special recipes, allowing you to prepare exotic dishes with useful effects. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with cook's utensils. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\\n \\u2022 As an action, you can inspect a drink or plate of food within 5 feet of you and determine whether it is poisoned, provided that you can see and smell it.\\n \\u2022 During a long rest, you can prepare and serve a meal that helps you and your allies recover from the rigors of adventuring, provided you have suitable food, cook's utensils, and other supplies on hand. The meal serves up to six people, and each person who eats it regains two additional Hit Dice at the end of the long rest. In addition, those who partake of the meal have advantage on Constitution saving throws against disease for the next 24 hours.\",\n\tdescription : \"I gain proficiency with cook's utensils, or expertise if already proficient. As an action, I can detect poison in food within 5 ft. In a long rest with food/supplies, I can have 6 creatures regain 2 extra HD and give them adv. on Con saves vs. disease for 24 hours. [+1 Con]\",\n\tscores : [0, 0, 1, 0, 0, 0],\n\taction : [[\"action\", \" (inspect food)\"]],\n\ttoolProfs : [[\"Cook's utensils\", \"Int\"]],\n\teval : function () {\n\t\tif ((/cook.*utensils/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/cook.*utensils/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"master of disguise-ua\"] = {\n\tname : \"Master of Disguise\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You have honed your ability to shape your personality and to read the personalities of others. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with the disguise kit. If you are already proficient with it, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you spend 1 hour observing a creature, you can then spend 8 hours crafting a disguise you can quickly don to mimic that creature. Making the disguise requires a disguise kit. You must make checks as normal to disguise yourself, but you can assume the disguise as an action.\",\n\tdescription : \"I gain proficiency with the disguise kit, or expertise with it if I'm already proficient. After observing a creature for 1 hour, I can craft a disguise to mimic it in 8 hours with a disguise kit. Once finished, I can don this disguise as an action. [+1 Charisma]\",\n\tscores : [0, 0, 0, 0, 0, 1],\n\taction : [[\"action\", \" (don disguise)\"]],\n\ttoolProfs : [[\"Disguise kit\", \"Cha\"]],\n\teval : function () {\n\t\tif ((/disguise.*kit/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/disguise.*kit/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\n\n// ua_20160801_The-Faithful.js\n// This file adds the content from the Unearthed Arcana: The Faithful article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TF\"] = {\n\tname : \"Unearthed Arcana: The Faithful\",\n\tabbreviation : \"UA:TF\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA%20Non-Divine%20Faithful%20SFG.pdf\",\n\tdate : \"2016/08/01\"\n};\n\n// Adds 2 subclasses, 1 for the Warlock and 1 for the Wizard\nAddSubClass(\"warlock\", \"the seeker-ua\", { // Still valid 2021-09-21\n\tregExpSearch : /^(?=.*warlock)(?=.*seeker).*$/i,\n\tsubname : \"the Seeker\",\n\tsource : [[\"UA:TF\", 1]],\n\tspellcastingExtra : [\"feather fall\", \"jump\", \"levitate\", \"locate object\", \"clairvoyance\", \"sending\", \"arcane eye\", \"locate creature\", \"legend lore\", \"passwall\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Shielding Aurora\",\n\t\t\tsource : [[\"UA:TF\", 1]],\n\t\t\tminlevel : 1,\n\t\t\tdescription: desc([\n\t\t\t\t\"As a bonus action, I create a whirling aurora of brilliant energy around me\",\n\t\t\t\t\"It lasts until the end of my next turn and grants me resistance to all damage\",\n\t\t\t\t\"Any hostile ending its turn in 10 ft of me get Warlock level + Cha mod radiant damage\",\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Astral Refuge\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription: desc([\n\t\t\t\t\"As an action, I can step into an astral refuge, coming back at the end of the turn\",\n\t\t\t\t\"While in the astral refuge, I can take two actions to cast spells targeting just me\",\n\t\t\t]),\n\t\t\taction : [[\"action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Far Wanderer\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription: desc(\"I no longer need to breathe, and I gain resistance to fire damage and cold damage\"),\n\t\t\tdmgres : [\"Cold\", \"Fire\"]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Astral Sequestration\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription: desc([\n\t\t\t\t\"With a 5 minutes ritual, I can shift myself and ten willing creatures to the Astral Plane\",\n\t\t\t\t\"While sequestered an Astral Plane, we gain the full benefits of a short rest\",\n\t\t\t\t\"After this rest, we return to the same space as before, without any time having passed\",\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t}\n});\n\n// Add a Pact Boon option that is only available for \"the Seeker\" subclass\nAddFeatureChoice(ClassList.warlock.features[\"pact boon\"], false, \"Pact of the Star Chain\", {\n\tname : \"Pact of the Star Chain\",\n\tsource : [[\"UA:TF\", 1]],\n\tdescription : desc([\n\t\t\"My patron grants me an item of power which disappears when I die\",\n\t\t\"While it is on my person, I can cast Augury as a ritual\",\n\t\t\"Additionally, once per short rest, I can get advantage on an Intelligence check\",\n\t\t\"If I lose this item I can perform a 1-hour ceremony to get a replacement\"\n\t]),\n\tusages : 1,\n\trecovery : \"short rest\",\n\tspellcastingBonus : [{\n\t\tname : \"Pact of the Star Chain\",\n\t\tspells : [\"augury\"],\n\t\tselection : [\"augury\"],\n\t\tfirstCol : SpellRitualTag,\n\t}],\n\tspellChanges : {\n\t\t\"augury\" : {\n\t\t\ttime : \"11 min\",\n\t\t\tchanges : \"With my Pact of the Star Chain boon I can cast Augury only as a ritual, thus requiring 10 extra minutes to cast it.\"\n\t\t}\n\t},\n\tprereqeval : function(v) {\n\t\treturn classes.known.warlock && classes.known.warlock.subclass.indexOf(\"the seeker\") !== -1 ? true : \"skip\";\n\t}\n});\nRunFunctionAtEnd(function() {\n\tvar theTheurgySubclass = AddSubClass(\"wizard\", \"theurgy-ua\", { // Still valid 2021-09-21\n\t\tregExpSearch : /^((?=.*mystic)(?=.*theurge))|(?=.*(theurgy|theurgist)).*$/i,\n\t\tsubname : \"Theurgy\",\n\t\tsource : [[\"UA:TF\", 1], [\"UA:WR\", 1]],\n\t\tfullname : \"Theurgist\",\n\t\tfeatures : {\n\t\t\t\"subclassfeature2\" : {\n\t\t\t\tname : \"Arcane Initiate\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t'Choose a Cleric Domain using the \"Choose Feature\" button above',\n\t\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\t\"I can replace it with one of the chosen domain spells, if it is of a level I can cast\",\n\t\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t\t]),\n\t\t\t\tcalcChanges : {\n\t\t\t\t\tspellList : [\n\t\t\t\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1 || !CurrentSpells.wizard.extra || !CurrentSpells.wizard.selectSp || !spList.level || !spList.level[1]) return;\n\t\t\t\t\t\t\tvar domainSpells = CurrentSpells.wizard.extra;\n\t\t\t\t\t\t\t// now stop this function if even one of the domain spells is not already in the spellbook\n\t\t\t\t\t\t\tvar knownSpells = [].concat(CurrentSpells.wizard.selectSp ? CurrentSpells.wizard.selectSp : []).concat(CurrentSpells.wizard.selectSpSB ? CurrentSpells.wizard.selectSpSB : []);\n\t\t\t\t\t\t\tfor (var i = 0; i < domainSpells.length; i++) {\n\t\t\t\t\t\t\t\tif (knownSpells.indexOf(domainSpells[i]) == -1) return;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// get all the cleric spells, level 1-9\n\t\t\t\t\t\t\tvar clericSpells = CreateSpellList({\"class\" : \"cleric\", level : [1,9]});\n\t\t\t\t\t\t\tspList.extraspells = spList.extraspells.concat(clericSpells);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"When I gain a wizard level after my spellbook already has all the spells of my chosen domain, I can instead select any cleric spell of a level I can cast as one of the spells I gain from levelling up.\"\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\tchoices : [],\n\t\t\t\tchoiceDependencies : [{\n\t\t\t\t\tfeature : \"subclassfeature2.3\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature6\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature10\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature14\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"subclassfeature2.1\" : {\n\t\t\t\tname : \"Channel Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc(\"I can channel arcane energy from my deity; the save for this is my wizard spell DC\"),\n\t\t\t\tusages : [0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3],\n\t\t\t\trecovery : \"short rest\"\n\t\t\t},\n\t\t\t\"subclassfeature2.2\" : {\n\t\t\t\tname : \"Channel Arcana: Divine Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"As a bonus action, I speak a prayer to control the flow of magic around me\",\n\t\t\t\t\t\"The next spell I cast gains a +2 bonus to its attack roll or saving throw DC\",\n\t\t\t\t]),\n\t\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t\t},\n\t\t\t\"subclassfeature2.3\" : {\n\t\t\t\tname : \"Channel Arcana: Domain\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature6\" : {\n\t\t\t\tname : \"Arcane Acolyte\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 6,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature10\" : {\n\t\t\t\tname : \"Arcane Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 10,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature14\" : {\n\t\t\t\tname : \"Arcane High Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 14,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t}\n\t\t}\n\t});\n\tvar MTfeat = ClassSubList[theTheurgySubclass].features;\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\n\t\tvar aDomain = ClassSubList[ClassList.cleric.subclasses[1][i]];\n\t\tif (!aDomain) continue;\n\t\tvar dSource = aDomain.source ? aDomain.source : aDomain.features[\"subclassfeature1\"] && aDomain.features[\"subclassfeature1\"].source ? aDomain.features[\"subclassfeature1\"].source : [[\"UA:TF\", 0], [\"UA:WR\", 0]];\n\t\t\n\t\tvar suffix = 1;\n\t\tvar entryDoNm = aDomain.subname;\n\t\twhile (MTfeat[\"subclassfeature2\"].choices.indexOf(entryDoNm) !== -1) {\n\t\t\tsuffix += 1;\n\t\t\tentryDoNm = aDomain.subname + \" (\" + suffix + \")\";\n\t\t};\n\t\tMTfeat[\"subclassfeature2\"].choices.push(entryDoNm);\n\t\tMTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()] = {\n\t\t\tname : \"Arcane Initiate: \" + aDomain.subname,\n\t\t\tsource : dSource,\n\t\t\tspellcastingExtra : aDomain.spellcastingExtra,\n\t\t\tdescription: desc([\n\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\"I can replace it with one of the \" + aDomain.subname.toLowerCase() + \" spells, if it is of a level I can cast\",\n\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t]),\n\t\t};\n\t\tvar AIdomain = MTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()];\n\t\tfor (var aFea in aDomain.features) {\n\t\t\tvar dFea = aDomain.features[aFea];\n\t\t\tif (dFea.minlevel === 2 && (/channel divinity/i).test(dFea.name)) {\n\t\t\t\tMTfeat[\"subclassfeature2.3\"].choices.push(entryDoNm);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name = MTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name.replace(/channel divinity/i, \"Channel Arcana\");\n\t\t\t};\n\t\t\tif (dFea.minlevel === 1 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature6\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature6\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 6 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature10\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature10\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 17 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature14\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature14\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t};\n\t};\n});\n\n// ua_20160912_The-Ranger,-Revised.js\r\n// This file adds the content from the Unearthed Arcana: The Ranger, Revised article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RR\"] = {\r\n\tname : \"Unearthed Arcana: The Ranger, Revised\",\r\n\tabbreviation : \"UA:RR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_RevisedRanger.pdf\",\r\n\tdate : \"2016/09/12\"\r\n};\r\n\r\n//adds an alternative ranger class, including three subclasses\r\nClassList.rangerua = {\r\n\tregExpSearch : /^((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Ranger\",\r\n\tsource : [[\"UA:RR\", 2]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tabilitySave : 5,\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 10,\r\n\tsaves : [\"Str\", \"Dex\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, or Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Ranger starting equipment:\\n \\u2022 Scale mail -or- leather armor;\\n \\u2022 Two shortswords -or- two simple melee weapons;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Ranger Conclaves\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"ranger\"\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tspells : [0, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"favored enemy\" : {\r\n\t\t\tname : \"Favored Enemy\",\r\n\t\t\tsource : [[\"UA:RR\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a favored enemy',\r\n\t\t\t\t\"Choose from beasts, fey, humanoids, monstrosities, or undead\",\r\n\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against the chosen favored enemy\",\r\n\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about them\",\r\n\t\t\t\t\"I also learn one language of my choice, typically one associated with the favored enemy\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 6 ? \"+2\" : \"+4\") + \" weapon attack damage\";\r\n\t\t\t}),\r\n\t\t\tchoices : [\"Beasts\", \"Fey\", \"Humanoids\", \"Monstrosities\", \"Undead\"],\r\n\t\t\t\"beasts\" : {\r\n\t\t\t\tname : \"Favored Enemy: Beasts\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against beasts\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about beasts\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with beasts\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"fey\" : {\r\n\t\t\t\tname : \"Favored Enemy: Fey\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against fey\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about fey\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with fey\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"humanoids\" : {\r\n\t\t\t\tname : \"Favored Enemy: Humanoids\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against humanoids\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about humanoids\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with humanoids\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"monstrosities\" : {\r\n\t\t\t\tname : \"Favored Enemy: Monstrosities\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against monstrosities\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about monstrosities\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with monstrosities\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"undead\" : {\r\n\t\t\t\tname : \"Favored Enemy: Undead\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against undead\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about undead\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with undead\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [1],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.isSpell && classes.known.rangerua && classes.known.rangerua.level && (/favou?red.{1,2}enemy/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.rangerua.level < 6 ? 2 : 4;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Favored Enemy' in the name or description of a weapon, it gets bonus damage, depending on my Ranger level.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"natural explorer\" : {\r\n\t\t\tname : \"Natural Explorer\",\r\n\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"On my first turn in combat, I have adv. on attacks against those that did not yet act\",\r\n\t\t\t\t\"I ignore difficult terrain; I have adv. on Initiative; I have benefits in travel, see page 3\",\r\n\t\t\t]),\r\n\t\t\t\"travel benefits\" : {\r\n\t\t\t\tname : \"Travel Benefits\",\r\n\t\t\t\textraname : \"Natural Explorer\",\r\n\t\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"After one hour of traveling in the wilderness I gain the following benefits:\",\r\n\t\t\t\t\t\" \\u2022 My allies and I are not slowed by difficult terrain and can't get lost except by magic\",\r\n\t\t\t\t\t\" \\u2022 I am alert to danger even when doing something else; I forage twice as much food\",\r\n\t\t\t\t\t\" \\u2022 If alone (or alone with animal companion), I can move stealthily at my normal pace\",\r\n\t\t\t\t\t\" \\u2022 When tracking others, I also learn their exact number, size, and time since passing\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"travel benefits\" }],\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"fighting style\" : function () {\r\n\t\t\tvar FSfea = newObj(ClassList.ranger.features[\"fighting style\"]);\r\n\t\t\tFSfea.source = [\"UA:RR\", 3];\r\n\t\t\treturn FSfea;\r\n\t\t}(),\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can cast ranger spells that I know, using Wisdom as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"2 spells known\", \"3 spells known\", \"3 spells known\", \"4 spells known\", \"4 spells known\", \"5 spells known\", \"5 spells known\", \"6 spells known\", \"6 spells known\", \"7 spells known\", \"7 spells known\", \"8 spells known\", \"8 spells known\", \"9 spells known\", \"9 spells known\", \"10 spells known\", \"10 spells known\", \"11 spells known\", \"11 spells known\"]\r\n\t\t},\r\n\t\t\"primeval awareness\" : {\r\n\t\t\tname : \"Primeval Awareness\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I haven't attacked a beast within the last 10 min, I can communicate with it\",\r\n\t\t\t\t\"As an action, I convey simple ideas, and read mood, intent, emotions, needs, etc.\",\r\n\t\t\t\t\"By concentrating for 1 min, I know if any of my favored enemies are within 5 miles\",\r\n\t\t\t\t\"Per group, I sense the number, general direction, distance, and type of favored enemy\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (communicate)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Conclave\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose a Ranger Conclave you strive to emulate and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose either Beast Conclave, Deep Stalker Conclave or Hunter Conclave\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"greater favored enemy\" : {\r\n\t\t\tname : \"Greater Favored Enemy\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a greater favored enemy',\r\n\t\t\t\t\"Choose from aberrations, celestials, constructs, dragons, elementals, fiends, or giants\",\r\n\t\t\t\t\"I get all the bonuses from Favored Enemy for this creature type as well\",\r\n\t\t\t\t\"Additionally, I have adv. on saves vs. spells and abilities of this greater favored enemy\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"+4 weapon attack damage\",\r\n\t\t\tchoices : [\"Aberrations\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fiends\", \"Giants\"],\r\n\t\t\t\"aberrations\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Aberrations\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against aberrations\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by aberrations\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of aberrations\"] }\r\n\t\t\t},\r\n\t\t\t\"celestials\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Celestials\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against celestials\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by celestials\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of celestials\"] }\r\n\t\t\t},\r\n\t\t\t\"constructs\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Constructs\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against constructs\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by constructs\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of constructs\"] }\r\n\t\t\t},\r\n\t\t\t\"dragons\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Dragons\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against dragons\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by dragons\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of dragons\"] }\r\n\t\t\t},\r\n\t\t\t\"elementals\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Elementals\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against elementals\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by elementals\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of elementals\"] }\r\n\t\t\t},\r\n\t\t\t\"fiends\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Fiends\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against fiends\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by fiends\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of fiends\"] }\r\n\t\t\t},\r\n\t\t\t\"giants\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Giants\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against giants\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by giants\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of giants\"] }\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [1]\r\n\t\t},\r\n\t\t\"fleet of foot\" : {\r\n\t\t\tname : \"Fleet of Foot\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"I can take the Dash action as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"hide in plain sight\" : {\r\n\t\t\tname : \"Hide in Plain Sight\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I hide on my turn without moving, others take -10 Wis (Perception) to find me\",\r\n\t\t\t\t\"This lasts until something reveals my presence, or until I (voluntarily) move/fall prone\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"vanish\" : {\r\n\t\t\tname : \"Vanish\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can't be nonmagically tracked if I don't want to be and can Hide as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"feral senses\" : {\r\n\t\t\tname : \"Feral Senses\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When not blinded or deafened, I'm aware of invisible, non-hidden creatures in 30 ft\",\r\n\t\t\t\t\"I don't have disadvantage when attacking creatures I am aware of but can't see\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"foe slayer\" : {\r\n\t\t\tname : \"Foe Slayer\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc(\"Once per turn, I can add Wis mod to the attack or damage roll after I see the die roll\")\r\n\t\t}\r\n\t}\r\n};\r\n\r\nAddSubClass(\"rangerua\", \"beast master-ua\", {\r\n\tregExpSearch : /^(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Beast Conclave\",\r\n\tsource : [[\"UA:RR\", 5]],\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Animal Companion\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I call an animal by spending 8 hours and 50 gp; I can revive it with 8 hours and 25 gp\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"+1 HD for companion\", \"+2 HD for companion\", \"+3 HD for companion\", \"+4 HD for companion\", \"+5 HD for companion\", \"+6 HD for companion\", \"+7 HD for companion\", \"+8 HD for companion\", \"+9 HD for companion\", \"+10 HD for companion\", \"+11 HD for companion\", \"+12 HD for companion\", \"+13 HD for companion\", \"+14 HD for companion\", \"+15 HD for companion\", \"+16 HD for companion\", \"+17 HD for companion\"],\r\n\t\t\tcreaturesAdd : [[\"Animal Companion\", false, function(AddRemove, prefix) {\r\n\t\t\t\tif (!AddRemove) return;\r\n\t\t\t\tvar compOptions = [\"Ape\", \"Black Bear\", \"Boar\", \"Giant Badger\", \"Giant Weasel\", \"Mule\", \"Panther\", \"Wolf\"];\r\n\t\t\t\tvar selectedRace = AskUserOptions(\"Select Animal Companion\", \"Select which beast you would like to have as your animal companion.\\nYou can change the beast at any time using the \\\"Companion Options\\\" button at the top of the Companion page.\", compOptions, \"radio\", true);\r\n\t\t\t\tApplyCompRace(selectedRace, prefix, \"companionrr\");\r\n\t\t\t}]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Companion's Bond\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"My companion gains several benefits, see the Companion's sheet\")\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Coordinated Attack\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription: desc(\"If I take the Attack action, my companion can use its reaction to make a melee attack\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Beast's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"While my companion can see me, it has advantage on all saving throws\")\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Storm of Claws and Fangs\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"My companion can, as an action, make melee attacks vs. all creatures within 5 ft of it\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Superior Beast's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"My companion can, as a reaction, halve an attack's damage from attacker that it sees\")\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Beast Conclave's Animal Companion as a companion option\r\nCompanionList.companionrr = {\r\n\tname : \"Animal Companion\",\r\n\tnameTooltip : \"Beast Conclave: Animal Companion\",\r\n\tnameOrigin : \"Beast Conclave 3\",\r\n\tnameMenu : \"Animal Companion (Beast Conclave feature)\",\r\n\tsource : [[\"UA:RR\", 5]],\r\n\tincludeCheck : function(sCrea, objCrea, iCreaCR) {\r\n\t\t// Only specific animals\r\n\t\treturn /^(ape|black bear|boar|giant badger|giant weasel|mule|panther|wolf)$/i.test(sCrea);\r\n\t},\r\n\tattributesAdd : {\r\n\t\theader : \"Companion\",\r\n\t\tminlevelLinked : [\"rangerua\", \"ranger\", \"spell-less ranger\"],\r\n\t\tattacksAction : 1,\r\n\t\tproficiencyBonusLinked : true,\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Coordinated Attack\",\r\n\t\t\tdescription : \"As a reaction when the ranger owner takes the Attack action, the companion can make one melee attack.\",\r\n\t\t\tminlevel : 5\r\n\t\t}, {\r\n\t\t\tname : \"Storm of Claws and Fangs\",\r\n\t\t\tdescription : \"As an action, the companion can make a melee attack against each creature that is within 5 ft.\",\r\n\t\t\tminlevel : 11\r\n\t\t}, {\r\n\t\t\tname : \"Superior Beast's Defense\",\r\n\t\t\tdescription : \"As a reaction, the companion can halve the damage of an attack from an attacker that it can see.\",\r\n\t\t\tminlevel : 15\r\n\t\t}],\r\n\t\thdLinked : function(prefix) {\r\n\t\t\tvar iTotalHD = CurrentCompRace[prefix] && CurrentCompRace[prefix].hd ? CurrentCompRace[prefix].hd[0] : 0;\r\n\t\t\tvar bRngLvls = false;\r\n\t\t\t[\"rangerua\", \"ranger\", \"spell-less ranger\"].forEach(function (n) {\r\n\t\t\t\tif (classes.known[n]) {\r\n\t\t\t\t\tbRngLvls = true;\r\n\t\t\t\t\tiTotalHD += classes.known[n].level > 3 ? classes.known[n].level - 3 : 0;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tif (!bRngLvls && classes.totallevel > 3) iTotalHD += classes.totallevel - 3;\r\n\t\t\treturn iTotalHD;\r\n\t\t}\r\n\t},\r\n\tnotes : [{\r\n\t\tname : \"Call forth and bond with an animal\",\r\n\t\tdescription : \"from the wilderness by spending 8 hours and 50 gp\",\r\n\t\tjoinString : \" \"\r\n\t}, {\r\n\t\tname : \"I can have one companion at a time\",\r\n\t\tdescription : \"If it dies, I can spend 8 hours and 25 gp to bring it back\",\r\n\t\tjoinString : \"; \"\r\n\t}, {\r\n\t\tname : \"Companion's Bond\",\r\n\t\tdescription : [\r\n\t\t\t\"It obeys my commands as best it can, or acts on its own if I can't command it\",\r\n\t\t\t\"When moving stealthily together with only my companion, we can move at a normal pace\",\r\n\t\t\t\"It uses my Proficiency Bonus instead of its own and adds this to its AC and damage rolls\",\r\n\t\t\t\"My companion gains proficiency with 2 skills of my choice (not automated), as well as all saves\",\r\n\t\t\t\"It gains a HD (and thus HP) for every ranger level I gain after 3rd, and an ASI whenever I do\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : typePF ? \": \" : \"\\n   \"\r\n\t}, {\r\n\t\tname : \"In Combat\",\r\n\t\tdescription : [\r\n\t\t\t\"My companion rolls for initiative and takes actions as normal, but can't use Multiattack\",\r\n\t\t\t\"My companion gains a bonus on damage rolls against my favored enemies just like me\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : typePF ? \": \" : \":\\n   \"\r\n\t}, {\r\n\t\tname : \"Coordinated Attack (Beast Conclave 5, UA:RR 6)\",\r\n\t\tdescription : \"When I take the Attack action, my companion can use its reaction to make one melee attack\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 5\r\n\t}, {\r\n\t\tname : \"Beast's Defense (Beast Conclave 7, UA:RR 6)\",\r\n\t\tdescription : \"While my companion can see me, it has advantage on all saving throws\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 7\r\n\t}, {\r\n\t\tname : \"Storm of Claws and Fangs (Beast Conclave 11, UA:RR 6)\",\r\n\t\tdescription : \"My companion can, as an action, make a melee attack vs. all creatures within 5 ft of it\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 11\r\n\t}, {\r\n\t\tname : \"Superior Beast's Defense (Beast Conclave 15, UA:RR 6)\",\r\n\t\tdescription : \"My companion can, as a reaction, halve the damage of an attack from an attacker that it sees\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 15\r\n\t}],\r\n\tattributesChange : function(sCrea, objCrea) {\r\n\t\t// Add Prof to attack damage\r\n\t\tfor (var i = 0; i < objCrea.attacks.length; i++) {\r\n\t\t\tvar oAtk = objCrea.attacks[i];\r\n\t\t\tif (!oAtk.modifiers) {\r\n\t\t\t\toAtk.modifiers = [\"\", \"Prof\"];\r\n\t\t\t} else {\r\n\t\t\t\toAtk.modifiers[1] += \"+Prof\";\r\n\t\t\t}\r\n\t\t\tif (oAtk.description) { // Remove multiattack\r\n\t\t\t\toAtk.description = oAtk.description.replace(/(((One|Two|2).+as an Attack action)|(2 per Attack));? ?/i, '');\r\n\t\t\t}\r\n\t\t};\r\n\t\t// Remove multiattack trait/feature/action\r\n\t\t[\"traits\", \"features\", \"actions\"].forEach(function (n) {\r\n\t\t\tif (!objCrea[n]) return;\r\n\t\t\tfor (var i = objCrea[n].length - 1; i > -1; i--) {\r\n\t\t\t\tvar oN = objCrea[n][i];\r\n\t\t\t\tif (oN.name && /multiattack/i.test(oN.name)) {\r\n\t\t\t\t\tobjCrea[n].splice(i, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t\t// Proficient with all saving throws\r\n\t\tvar aSaves = objCrea.saves ? objCrea.saves : [\"\", \"\", \"\", \"\", \"\", \"\"];\r\n\t\tfor (var i = 0; i < aSaves.length; i++) {\r\n\t\t\tvar iProfSave = Math.round((objCrea.scores[i] - 10.5) * 0.5) + objCrea.proficiencyBonus;\r\n\t\t\tif (aSaves[i] === \"\" || aSaves[i] < iProfSave) {\r\n\t\t\t\taSaves[i] = iProfSave;\r\n\t\t\t}\r\n\t\t}\r\n\t\tobjCrea.saves = aSaves;\r\n\t},\r\n\teval : function(prefix, lvl) {\r\n\t\t// Set the alignment to be the same as the main character\r\n\t\tvar iAlignInx = tDoc.getField(\"Alignment\").currentValueIndices;\r\n\t\tif (iAlignInx !== -1) {\r\n\t\t\tPickDropdown(prefix + \"Comp.Desc.Alignment\", iAlignInx);\r\n\t\t} else {\r\n\t\t\tValue(prefix + \"Comp.Desc.Alignment\", What(\"Alignment\"));\r\n\t\t}\r\n\t\t// Set HP to use fixed values\r\n\t\tvar sHPfld = prefix + \"Comp.Use.HP.Max\";\r\n\t\tvar aHPsets = How(sHPfld).split(\",\");\r\n\t\taHPsets[3] = \"fixed\";\r\n\t\tAddTooltip(sHPfld, undefined, aHPsets.toString());\r\n\t\t// Add Prof to the AC, if not already present\r\n\t\tAddToModFld(prefix + \"Comp.Use.AC\", \"Prof\", false, \"Animal Companion\", \"An beast conclave's animal companion adds its proficiency bonus (Prof) to its AC.\");\r\n\t\t// Alert player of things that have to be done manually\r\n\t\tapp.alert({\r\n\t\t\tcMsg : toUni(\"Pick Two Skills\") + \"\\nThe Ranger's Animal Companion that you have just added, gains proficiency with two additional skills to those already selected. Because there is no automation for selecting these proficiencies, please do so manually.\\n\\n\" + toUni(\"Ability Score Improvements\") + \"\\nThe Ranger's Animal Companion gains Ability Score Improvements (ASI) whenever your character gains them. An animal companion can't use these to take feats. There is no automation for adding these ASIs either, so please don't forget to increase the ability scores for the animal companion when you get the reminder pop-up for ASI changes.\\nAlso, remember that any DCs for abilities that the beast possesses are based on ability scores modifier and that they might need to be manually changed when increasing ability scores modifiers.\\nThe 'Notes' section on the companion page automatically keeps track of how many points you can increase the ability scores with and what the base value of those scores are according to the Monster Manual.\",\r\n\t\t\tnIcon : 3,\r\n\t\t\tcTitle : \"Don't forget the Skills and Ability Score Improvements!\"\r\n\t\t});\r\n\t},\r\n\tchangeeval : function (prefix, lvl) {\r\n\t\t// Update the string with the number of Ability Score Improvements (ASI)\r\n\t\tvar objCreaFnd = CurrentCompRace[prefix];\r\n\t\tif (objCreaFnd.typeFound !== \"creature\" || !CreatureList[objCreaFnd.known]) return;\r\n\t\tvar objCrea = CreatureList[objCreaFnd.known];\r\n\t\tvar iASIs = 0;\r\n\t\tfor (var aClass in classes.known) {\r\n\t\t\tif (!CurrentClasses[aClass].improvements) continue;\r\n\t\t\tvar classLvL = Math.min(CurrentClasses[aClass].improvements.length, classes.known[aClass].level);\r\n\t\t\tiASIs += 2 * CurrentClasses[aClass].improvements[classLvL - 1];\r\n\t\t}\r\n\t\tvar sNote = What(prefix + \"Cnote.Left\");\r\n\t\tvar sNoteNew = sNote;\r\n\t\tif (!iASIs) {\r\n\t\t\tsNoteNew = sNote.replace(/[\\r\\n]? *Currently, \\d+ points.*/, \"\");\r\n\t\t} else {\r\n\t\t\tvar sIncreases = \"Currently, \" + iASIs + \" points to divide \" + (objCrea && objCrea.scores ? \"(default: \" + objCrea.scores[0] + \" Str, \" + objCrea.scores[1] + \" Dex, \" + objCrea.scores[2] + \" Con, \" + objCrea.scores[3] + \" Int, \" + objCrea.scores[4] + \" Wis, \" + objCrea.scores[5] + \" Cha)\" : \"among the ability scores\");\r\n\t\t\tsNoteNew = sNote.replace(/(ASI.*)([\\r\\n]? *Currently, \\d+ points.*)?/, \"$1\\r   \" + sIncreases);\r\n\t\t}\r\n\t\tif (sNote !== sNoteNew) Value(prefix + \"Cnote.Left\", sNoteNew);\r\n\t}\r\n}\r\n\r\nAddSubClass(\"rangerua\", \"hunter-ua\", {\r\n\tregExpSearch : /^(?!.*(monster|barbarian|bard|cleric|druid|fighter|monk|paladin|rogue|sorcerer|warlock|wizard))(?=.*(hunter|huntress|hunts(wo)?m(e|a)n)).*$/i,\r\n\tsubname : \"Hunter Conclave\",\r\n\tsource : [[\"UA:RR\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hunter's Prey\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Choose Colossus Slayer, Giant Killer, or Horde Breaker with the \"Choose Feature\" button'),\r\n\t\t\tchoices : [\"Colossus Slayer\", \"Giant killer\", \"Horde Breaker\"],\r\n\t\t\t\"colossus slayer\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Colossus Slayer\",\r\n\t\t\t\tdescription: desc(\"Once per turn, when hitting someone that is below max HP, I do an extra 1d8 damage\")\r\n\t\t\t},\r\n\t\t\t\"giant killer\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Giant Killer\",\r\n\t\t\t\tdescription: desc(\"As a reaction, when a Large or larger enemy in 5 ft attacks me, I can attack it once\"),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"horde breaker\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Horde Breaker\",\r\n\t\t\t\tdescription: desc(\"Once per turn, when I hit a creature, I can make an attack vs. another within 5 ft of it\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Defensive Tactics\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc('\"Choose Feature\" button to choose Escape the Horde, Multiattack Defense, or Steel Will'),\r\n\t\t\tchoices : [\"Escape the Horde\", \"Multiattack Defense\", \"Steel Will\"],\r\n\t\t\t\"escape the horde\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Escape the Horde\",\r\n\t\t\t\tdescription: desc(\"Creatures attacking me with opportunity attacks have disadvantage on the attack rolls\")\r\n\t\t\t},\r\n\t\t\t\"multiattack defense\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Multiattack Defense\",\r\n\t\t\t\tdescription: desc(\"When a creature hits me, I gain +4 AC against that creature for the rest of the turn\")\r\n\t\t\t},\r\n\t\t\t\"steel will\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Steel Will\",\r\n\t\t\t\tdescription: desc(\"I have advantage on saves against being frightened\"),\r\n\t\t\t\tsavetxt : { adv_vs : [\"frightened\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Multiattack\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc('Choose Volley or Whirlwind Attack using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Volley\", \"Whirlwind Attack\"],\r\n\t\t\t\"volley\" : {\r\n\t\t\t\tname : \"Multiattack: Volley\",\r\n\t\t\t\tdescription: desc(\"As an action, I can make ranged attacks vs. all within a 10-ft radius of a point in range\"),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"whirlwind attack\" : {\r\n\t\t\t\tname : \"Multiattack: Whirlwind Attack\",\r\n\t\t\t\tdescription: desc(\"As an action, I can make melee attacks vs. all creatures within 5 ft of me\"),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Superior Hunter's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc('\"Choose Feature\" button to choose Evasion, Stand Against the Tide, or Uncanny Dodge'),\r\n\t\t\tchoices : [\"Evasion\", \"Stand Against the Tide\", \"Uncanny Dodge\"],\r\n\t\t\t\"evasion\" : {\r\n\t\t\t\tname : \"Evasion\",\r\n\t\t\t\tdescription: desc(\"My Dexterity saves vs. areas of effect negate damage on success and halve it on failure\"),\r\n\t\t\t\tsavetxt : { text : [\"Dex save vs. area effects: fail \\u2015 half dmg, success \\u2015 no dmg\"] }\r\n\t\t\t},\r\n\t\t\t\"stand against the tide\" : {\r\n\t\t\t\tname : \"Stand Against the Tide\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When a creature misses me with a melee attack, I can use my reaction on the attack\",\r\n\t\t\t\t\t\"I force the attacker to repeat it vs. another (not attacker) of my choice within range\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"uncanny dodge\" : {\r\n\t\t\t\tname : \"Uncanny Dodge\",\r\n\t\t\t\tdescription: desc(\"As a reaction, I halve the damage of an attack from an attacker that I can see\"),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"rangerua\", \"deep stalker-ua\", {\r\n\tregExpSearch : /^(?=.*deep)(?=.*stalker).*$/i,\r\n\tsubname : \"Deep Stalker Conclave\",\r\n\tsource : [[\"UA:RR\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Underdark Scout\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"In the first turn of combat I have +10 ft speed and +1 attack with the Attack action\",\r\n\t\t\t\t\"When I'm hiding or trying to hide, others gain no benefit from darkvision to detect me\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Deep Stalker Magic\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 90 ft darkvision (or +30 ft) and gain extra known spells at level 3, 5, 9, 13, 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"glyph of warding\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tvision : [[\"Darkvision\", \"fixed 90\"], [\"Darkvision\", \"+30\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I am proficient with Wisdom saving throws\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Once during my turn when I miss an attack, I can immediately make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Stalker's Dodge\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// By popular demand, the XGtE, TCoE, FToD ranger subclasses, if they exist, are added as an option to the Revised Ranger\r\n// Note that there are no rules by WotC that support doing this!\r\nvar UARR_AddRangerSubclassesToRevisedRanger = function() {\r\n\tvar aSources = [\"X\", \"T\", \"FToD\"];\r\n\tvar aRngrSubs = ClassList.ranger.subclasses[1];\r\n\tfor (var i = 0; i < aRngrSubs.length; i++) {\r\n\t\tvar sSub = aRngrSubs[i];\r\n\t\tvar oSub = ClassSubList[sSub];\r\n\t\tif (!oSub || !oSub.source || ClassList.rangerua.subclasses[1].indexOf(sSub) !== -1) continue;\r\n\t\tvar sSubSrc = isArray(oSub.source[0]) ? oSub.source[0][0] : oSub.source[0];\r\n\t\tif (aSources.indexOf(sSubSrc) === -1) continue;\r\n\t\tClassList.rangerua.subclasses[1].push(sSub);\r\n\t}\r\n}();\r\n\n// ua_20161107_Barbarian-Primal-Paths.js\r\n// This file adds the content from the Unearthed Arcana: Barbarian Primal Paths article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BPP\"] = {\r\n\tname : \"Unearthed Arcana: Barbarian Primal Paths\",\r\n\tabbreviation : \"UA:BPP\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Barbarian.pdf\",\r\n\tdate : \"2016/11/07\"\r\n};\r\n\r\n// A three subclasses for the Barbarian\r\nAddSubClass(\"barbarian\", \"ancestral guardian-ua\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"UA:BPP\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action while raging, I can choose a creature within 5 ft of me that I can see\",\r\n\t\t\t\t\"The creature has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"If it takes the Disengage action within 5 feet of me, its speed is halved for its turn\",\r\n\t\t\t\t\"This lasts until the start of my next turn or my rage ends, whichever comes \",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Ancestral Shield\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm raging, I can transfer my resistance to an ally I can see within 30 ft of me\",\r\n\t\t\t\t\"As a reaction when an ally takes bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\"My ally keeps the resistance, and I lose it, until the start of my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can consult my ancestral spirits to give myself advantage on a Int or Wis check\"),\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm raging, I can have my vengeful ancestors attack for 2d8 force damage\",\r\n\t\t\t\t\"As a reaction when I or an ally I can see within 30 feet of me is damaged in melee\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"storm herald-ua\", {\r\n\tregExpSearch : /^(?=.*storm)(?=.*herald).*$/i,\r\n\tsubname : \"Path of the Storm Herald\",\r\n\tsubnameShort: \"Storm Herald\",\r\n\tfullname : \"Storm Herald\",\r\n\tsource : [[\"UA:BPP\", 2]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Storm Aura\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the aura',\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Desert\", \"Sea\", \"Tundra\"],\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm of Fury: Desert\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"Any enemy that ends its turn in my aura takes fire damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2 fire damage\", \"3 fire damage\", \"3 fire damage\", \"3 fire damage\", \"3 fire damage\", \"4 fire damage\", \"4 fire damage\", \"4 fire damage\", \"4 fire damage\", \"5 fire damage\", \"5 fire damage\", \"5 fire damage\", \"5 fire damage\", \"6 fire damage\", \"6 fire damage\", \"6 fire damage\", \"6 fire damage\", \"7 fire damage\"]\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm of Fury: Sea\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"At the end of each of my turns, I can choose a creature in my aura, other than myself\",\r\n\t\t\t\t\t\"It must make a Dex save or take lightning damage, or half damage on a successful save\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Constitution modifier\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"3d6\", \"3d6\", \"3d6\", \"3d6\", \"3d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\"],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"turn\"\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm of Fury: Tundra\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"Any enemy that ends its turn in my aura takes cold damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2 cold damage\", \"3 cold damage\", \"3 cold damage\", \"3 cold damage\", \"3 cold damage\", \"4 cold damage\", \"4 cold damage\", \"4 cold damage\", \"4 cold damage\", \"5 cold damage\", \"5 cold damage\", \"5 cold damage\", \"5 cold damage\", \"6 cold damage\", \"6 cold damage\", \"6 cold damage\", \"6 cold damage\", \"7 cold damage\"]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature14\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Storm Soul\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Soul: Desert\",\r\n\t\t\t\tdescription: desc(\"I have resistance to fire damage and don't suffer the effects of extreme heat\"),\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme heat\"] }\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Soul: Sea\",\r\n\t\t\t\tdescription: desc(\"I have resistance to lightning damage and can breathe underwater\"),\r\n\t\t\t\tdmgres : [\"Lightning\"]\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Soul: Tundra\",\r\n\t\t\t\tdescription: desc(\"I have resistance to cold damage and don't suffer the effects of extreme cold\"),\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme cold\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shield of the Storm\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While I'm raging, allies within my aura gain the benefits of my Storm Soul feature\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Raging Storm\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Raging Storm: Desert\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Enemy in my aura move more than 5 ft on the ground must make a Strength save\",\r\n\t\t\t\t\t\"On a fail, it moves only 5 ft and its speed drops to 0 until the start of its next turn\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Constitution modifier\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Raging Storm: Sea\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Creatures in my aura hit by my attack must make a Str save or be knocked prone\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Strength modifier\",\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.barbarian && classes.known.barbarian.level > 13 && (/\\brage\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Str save or knocked prone';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the word 'Rage' in a melee weapon's name, it will show in its description that it forces targets that are hit to make a Strength saving throw or be knocked prone.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Raging Storm: Tundra\",\r\n\t\t\t\tdescription: desc(\"The area within my aura is difficult terrain for my enemies\")\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"zealot-ua\", {\r\n\tregExpSearch : /zealot/i,\r\n\tsubname : \"Path of the Zealot\",\r\n\tsubnameShort: \"Zealot\",\r\n\tfullname : \"Zealot\",\r\n\tsource : [[\"UA:BPP\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Divine Fury\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, I can become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t'Choose a damage type using the \"Choose Feature\" button above',\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"1d6+1\", \"1d6+2\", \"1d6+2\", \"1d6+3\", \"1d6+3\", \"1d6+4\", \"1d6+4\", \"1d6+5\", \"1d6+5\", \"1d6+6\", \"1d6+6\", \"1d6+7\", \"1d6+7\", \"1d6+8\", \"1d6+8\", \"1d6+9\", \"1d6+9\", \"1d6+10\"],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"turn\",\r\n\t\t\tchoices : [\"Necrotic Damage\", \"Radiant Damage\"],\r\n\t\t\t\"necrotic damage\" : {\r\n\t\t\t\tname : \"Divine Fury: Necrotic\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t\t\"At the end of my turn, each creature within 5 feet of me takes necrotic damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"radiant damage\" : {\r\n\t\t\t\tname : \"Divine Fury: Radiant\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t\t\"At the end of my turn, each creature within 5 feet of me takes radiant damage\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Warrior of the Gods\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Spells restoring me to life (not undeath or anything else) don't need material comp.\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Zealous Focus\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when I fail a saving throw while raging, I can instead succeed on it\",\r\n\t\t\t\t\"Doing so immediately ends my rage and I can't rage again until I finish a short rest\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Zealous Presence\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I howl in fury and unleash a battle cry infused with divine energy\",\r\n\t\t\t\t\"Allies within 60 ft of me gain adv. on attacks and saves until the start of my next turn\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \" (allies within 60 feet)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage Beyond Death\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, having 0 hit points doesn't knock me unconscious\",\r\n\t\t\t\t\"I still must make death saves, and I suffer the normal effects of taking damage\",\r\n\t\t\t\t\"However, if I would die due to failing death saves, I don't die until my rage ends\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161114_Bard-Colleges.js\r\n// This file adds the content from the Unearthed Arcana: Bard Colleges article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BC\"] = {\r\n\tname : \"Unearthed Arcana: Bard Colleges\",\r\n\tabbreviation : \"UA:BC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Bard.pdf\",\r\n\tdate : \"2016/11/14\"\r\n};\r\n\r\n// Adds 2 subclasses for the Bard\r\nAddSubClass(\"bard\", \"college of glamour-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*glamour).*$/i,\r\n\tsubname : \"College of Glamour\",\r\n\tsubnameShort: \"Glamour\",\r\n\tsource : [[\"UA:BC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mantle of Inspiration\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I expend one bardic inspiration die to aid those within 60 ft of me\",\r\n\t\t\t\t\"A number of allies equal to my Cha mod gain twice the die roll in temporary HP\",\r\n\t\t\t\t\"They can use a reaction to move their speed toward me, without opportunity attacks\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Enthralling Performance\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By performing for at least 10 minutes, I can charm humanoids within 60 ft of me\",\r\n\t\t\t\t\"At the end of the performance, my Cha mod number of targets must make a Wis save\",\r\n\t\t\t\t\"On a fail, a target is charmed for 1 hour; If success, it doesn't knows I tried to charm it\",\r\n\t\t\t\t\"While charmed, the target idolizes me, hinders those opposing me, and avoids violence\",\r\n\t\t\t\t\"This lasts until a target takes damage, I attack it, or if it sees me attacking its allies\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I take on an appearance of unearthly beauty for 1 minute\",\r\n\t\t\t\t\"As a bonus action during this time, I can cast Command without using a spell slot\",\r\n\t\t\t\t\"Creatures charmed by me automatically fail their saves against these Command spells\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\t\tspells : [\"command\"],\r\n\t\t\t\tselection : [\"command\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"command\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tdescription : \"1 crea save (fails save if charmed) or follow one word command, e.g. approach, drop, flee, halt\",\r\n\t\t\t\t\tchanges : \"Using my Mantle of Majesty class feature, I can cast Command as a bonus action once per long rest without using a spell slot, thus only affect a single target.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can cast Sanctuary on myself without using a spell slot\",\r\n\t\t\t\t\"If a creature fails its save to this, I gain adv. on all Cha checks against it for 1 min\",\r\n\t\t\t\t\"In addition, the target has disadv. on saves it makes against my spells on my next turn\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\t\tspells : [\"sanctuary\"],\r\n\t\t\t\tselection : [\"sanctuary\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sanctuary\" : {\r\n\t\t\t\t\ttime : \"Self\",\r\n\t\t\t\t\tdescription : \"Any trying to atk/target me must save or fail, dis. on save vs. spell I cast next turn, I adv. on Cha vs. it\",\r\n\t\t\t\t\tchanges : \"Using my Unbreakable Majesty class feature, I can cast Sanctuary once per short rest without using a spell slot, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of whispers-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*whispers).*$/i,\r\n\tsubname : \"College of Whispers\",\r\n\tsubnameShort: \"Whispers\",\r\n\tsource : [[\"UA:BC\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Venomous Blades\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I hit with a weapon attack, I can expend a bardic inspiration die to add damage\",\r\n\t\t\t\t\"I roll the inspiration die twice, dealing the total in Poison damage to the target\",\r\n\t\t\t\t\"I can do this no more than once per round on my turn\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Venomous Words\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By speaking in private with a humanoid for at least 10 minutes, I can try to frighten it\",\r\n\t\t\t\t\"After the conversation, the target must make a Wisdom save or be frightened of me\",\r\n\t\t\t\t\"If the save is successful, the target doesn't know I try to frighten it\",\r\n\t\t\t\t\"While frightened, the target avoids the company of others, including its allies\",\r\n\t\t\t\t\"The target also tries to hide in the most secret, safest place available to it\",\r\n\t\t\t\t\"This lasts for 1 hour or until it is attacked/damaged, or if it sees me attacking its allies\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Whispers\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature dies within 5 ft or by my hand, I can capture its shadow\",\r\n\t\t\t\t\"I can use shadows of those with the same type and size as me (or Medium if I'm Small)\",\r\n\t\t\t\t\"I can have only one captured shadow at a time and I can don it as a shadow disguise\",\r\n\t\t\t]),\r\n\t\t\t\"shadow disguise\" : {\r\n\t\t\t\tname : \"Shadow Disguise\",\r\n\t\t\t\textraname : \"Mantle of Whispers\",\r\n\t\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can don a shadow that I captured as a disguise for 1 hour or until I stop it\",\r\n\t\t\t\t\t\"I take on the creature's appearance and I can access its surface memories, but not secrets\",\r\n\t\t\t\t\t\"I have access to information that it would would freely share with a casual acquaintance\",\r\n\t\t\t\t\t\"This is enough that I can pass myself off as the creature by drawing on its memories\",\r\n\t\t\t\t\t\"Anybody can see through the disguise with a Wis (Insight) check vs. my Cha (Deception) +5\",\r\n\t\t\t\t\t\"The knowledge disappears when the disguise ends\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"shadow disguise\" }]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Lore\",\r\n\t\t\tsource : [[\"UA:BC\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I whisper to a creature within 30 ft that can hear and understand me\",\r\n\t\t\t\t\"Only the target can hear me; It must make a Wisdom save or be charmed by me\",\r\n\t\t\t\t\"If failed, it thinks I know its most mortifying secret, otherwise it only hears mumbling\",\r\n\t\t\t\t\"While charmed, the target obeys my commands, but won't risk its life or fight for me\",\r\n\t\t\t\t\"This lasts for 8 hours or until I or my allies attack or damage it\",\r\n\t\t\t\t\"When the effect ends, the target has no idea why it was so afraid of me\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161121_Cleric-Divine-Domains.js\r\n// This file adds the content from the Unearthed Arcana: Cleric Divine Domains article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CDD\"] = {\r\n\tname : \"Unearthed Arcana: Cleric Divine Domains\",\r\n\tabbreviation : \"UA:CDD\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Cleric.pdf\",\r\n\tdate : \"2016/11/21\"\r\n};\r\n\r\n// Adds 3 subclasses for the Cleric\r\nAddSubClass(\"cleric\", \"forge domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(forge|forgery|blacksmith)).*$/i,\r\n\tsubname : \"Forge Domain\",\r\n\tsource : [[\"UA:CDD\", 1]],\r\n\tspellcastingExtra : [\"searing smite\", \"shield\", \"heat metal\", \"magic weapon\", \"elemental weapon\", \"protection from energy\", \"fabricate\", \"wall of fire\", \"animate objects\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Blessing of the Forge\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"At the end of a long rest, I can imbue magic into a nonmagical weapon or armor\",\r\n\t\t\t\t\"It becomes magical: +1 AC if armor, or +1 to attack and damage rolls if a weapon\",\r\n\t\t\t\t\"This lasts until the end of my next long rest\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Artisan's Blessing\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"During a short rest, I can conduct a ritual to craft an item that is at least part metal\",\r\n\t\t\t\t\"The object can be worth up to 100 gp, and I must expend metals of equal value to it\",\r\n\t\t\t\t\"The item can be an exact duplicate of a nonmagical item if I possess the original\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Forge\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"+6 force damage\", \"+7 force damage\", \"+8 force damage\", \"+9 force damage\", \"+10 force damage\", \"+11 force damage\", \"+12 force damage\", \"+13 force damage\", \"+14 force damage\", \"+15 force damage\", \"+16 force damage\", \"+17 force damage\", \"+18 force damage\", \"+19 force damage\", \"+20 force damage\"],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a +1 AC while wearing medium or heavy armor, and resistance to fire damage\",\r\n\t\t\t\t\"When I hit a construct with an attack, I deal my cleric level in additional force damage\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Fire\"],\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm wearing medium or heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.heavyArmor && !v.mediumArmor; }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 fire damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 fire damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra fire damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Saint of Forge and Fire\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain immunity to fire damage\",\r\n\t\t\t\t\"If wearing heavy armor, I'm resistant to nonmagical bludg./piercing/slashing damage\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"fire\"] },\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"grave domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(grave)).*$/i,\r\n\tsubname : \"Grave Domain\",\r\n\tsource : [[\"UA:CDD\", 2]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"gentle repose\", \"ray of enfeeblement\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"raise dead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Circle of Mortality\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Spells I cast to heal a living creature at 0 HP have their dice count as their max result\",\r\n\t\t\t\t\"As a bonus action, I can cast the Spare the Dying cantrip, if I know it\",\r\n\t\t\t]),\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spare the dying\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\trange : \"Touch\",\r\n\t\t\t\t\tchanges : \"I can cast spare the dying as a bonus action instead of an action.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Eyes of the Grave\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By spending 1 min in uninterrupted contemplation, I sense undead within 1 mile\",\r\n\t\t\t\t\"I learn their number, distance, and direction from me\",\r\n\t\t\t\t\"In addition, I know the creature type of the one with the highest CR\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Path to the Grave\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can touch a creature to make it take extra damage from one attack\",\r\n\t\t\t\t\"It is vulnerable to all the damage from the next spell or attack from me or an ally\",\r\n\t\t\t\t\"This only applies to the first time that source inflicts damage, and then ends\",\r\n\t\t\t\t\"If the creature has resistance or is immune to the damage, it instead loses it\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sentinel at Death's Door\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc(\"As a reaction, I turn a critical hit to me or an ally I see within 30 ft to a normal hit\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 necrotic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 necrotic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra necrotic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Keeper of Souls\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per round, if I'm not incapacitated, I can manipulate the energy of the dying\",\r\n\t\t\t\t\"When an enemy I can see dies within 30 ft of me, I or an ally within 30 ft regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the enemy's number of Hit Dice\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"protection domain-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(protection|protect|defend|defense)).*$/i,\r\n\tsubname : \"Protection Domain\",\r\n\tsource : [[\"UA:CDD\", 3]],\r\n\tspellcastingExtra : [\"compelled duel\", \"protection from evil and good\", \"aid\", \"protection from poison\", \"protection from energy\", \"slow\", \"guardian of faith\", \"otiluke's resilient sphere\", \"antilife shell\", \"wall of force\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Shield of the Faithful\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when someone within 5 ft of me is attacked, I impose disadv. on the roll\",\r\n\t\t\t\t\"To do this, I must be able to see both the attacker and the target\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Radiant Defense\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I channel blessed energy into an ally that I can see within 30 ft of me\",\r\n\t\t\t\t\"The first time the ally is hit within the next minute, the attacker takes radiant damage\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"2d10+2\", \"2d10+3\", \"2d10+4\", \"2d10+5\", \"2d10+6\", \"2d10+7\", \"2d10+8\", \"2d10+9\", \"2d10+10\", \"2d10+11\", \"2d10+12\", \"2d10+13\", \"2d10+14\", \"2d10+15\", \"2d10+16\", \"2d10+17\", \"2d10+18\", \"2d10+19\", \"2d10+20\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Blessed Healer\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I restore HP to another with a spell, I regain 2 + the spell (slot) level in HP\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\t// note that several healing spells are not present here because they don't restore hp at casting (only later)\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Necrotic\", \"Necro\").replace(\", and\", \",\") + \"; I then regain 2+SL HP\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"mass heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = \"Heal 700 HP, split over crea in range, each then +11 HP; also cures blind, deaf, diseases; I heal +11 HP\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"power word heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/heals all.*/i, \"full HP; not charmed, frightened, paralyzed, stunned; can stand up as rea; if other, I heal 2+SL\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"regenerate\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\" for rest of duration\", \"\");\r\n\t\t\t\t\t\t\tcase \"heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"all diseases\", \"diseases\");\r\n\t\t\t\t\t\t\tcase \"cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"healing word\" :\r\n\t\t\t\t\t\t\tcase \"mass cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"mass healing word\" :\r\n\t\t\t\t\t\t\tcase \"prayer of healing\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/creatures?/i, \"crea\").replace(\"within\", \"in\").replace(\"spellcasting ability modifier\", \"spellcasting ability mod\") + \"; if other, I heal 2+SL\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast a spell that restores hit points to another creature than myself at the moment of casting, I also heal 2 + the level of the spell slot (or spell slot equivalent) hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 radiant damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra radiant damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Indomitable Defense\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \" (transfer)\"], ['bonus action', ' (return)']],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain resistance to two of: bludgeoning, necrotic, piercing, radiant, or slashing damage\",\r\n\t\t\t\t\"Whenever I finish a short or long rest, I can change the damage types chosen\",\r\n\t\t\t\t\"As an action, I can transfer both resistances to one creature I touch\",\r\n\t\t\t\t\"As a bonus action, I can transfer the resistances back to myself\",\r\n\t\t\t\t\"Otherwise, the creature keeps this resistance until the end of my next short or long rest\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161128_Druid-Circles.js\r\n// This file adds the content from the Unearthed Arcana: Druid Circles article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:DC\"] = {\r\n\tname : \"Unearthed Arcana: Druid Circles\",\r\n\tabbreviation : \"UA:DC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Druid11272016_CAWS.pdf\",\r\n\tdate : \"2016/11/28\"\r\n};\r\n\r\n// Adds 3 subclasses for the Druid\r\nAddSubClass(\"druid\", \"circle of dreams-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*\\bdreams\\b).*$/i,\r\n\tsubname : \"Circle of Dreams\",\r\n\tsubnameShort: \"Dreams\",\r\n\tsource : [[\"UA:DC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Balm of the Summer Court\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of fey energy represented by a number of d6s equal to my druid level\",\r\n\t\t\t\t\"As a bonus action, I can spend dice to heal an ally within 120 ft of me that I can see\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"The ally heals an amount equal to the total rolled and gains 1 temp HP per die spent\",\r\n\t\t\t\t\"In addition, the ally gains +5 ft speed per die spent, which lasts for 1 minute\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n + \"d6 per \"; }),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hearth of Moonlight and Shadow\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of a short or long rest, I can create a warded area of 30-ft radius\",\r\n\t\t\t\t\"Within this area, my allies and I gain +5 on Wis (Perception) checks to detect creatures\",\r\n\t\t\t\t\"Also, any light from open flames is not visible from outside the area\",\r\n\t\t\t\t\"This effect lasts until the end of the rest or when I leave the area\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hidden Paths\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"On my turn, I can teleport up to 30 ft to where I can see; Moved distance costs speed\",\r\n\t\t\t\t\"As an action, I can teleport a willing ally I touch up to 30 ft to a spot I can see\",\r\n\t\t\t\t\"Once I used either option, I can't use this feature again until 1d4 rounds have passed\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"1d4 rounds\",\r\n\t\t\taction : [[\"action\", \" (on ally)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Purifying Light\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot with a spell to restores HP, I can use Dispel Magic on the target\",\r\n\t\t\t\t\"The Dispel Magic counts as if being cast with the same spell slot as the healing spell\",\r\n\t\t\t\t\"Each creature effected by the Dispel Magic costs as one use of this feature\"\r\n\t\t\t]),\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the shepherd-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"UA:DC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Beast Speech\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Bond\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can summon a spirit to an empty space within 60 ft that I can see\",\r\n\t\t\t\t\"The Bear, Hawk, or Wolf spirit, creates a 30-ft radius aura and persist for 1 minute\",\r\n\t\t\t\t\"It doesn't occupy space, is immobile, and counts as neither a creature nor an object\",\r\n\t\t\t\t\"\\u2022 Bear: my allies in the area and I instantly gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"   While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: my allies and I gain advantage on attacks against targets in the aura\",\r\n\t\t\t\t\"\\u2022 Wolf: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"   If I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"Beast I summon with my spells have +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that restores hit points, it restores an additional 2 + the level of the spell slot (or spell slot equivalent) used to cast the spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Whenever I finish a long rest, I gain the benefits of a Death Ward spell for 24 hours\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guardian Spirit\",\r\n\t\t\t\tspells : [\"death ward\"],\r\n\t\t\t\tselection : [\"death ward\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"death ward\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Once, when I drops to 0 HP I drops to 1 HP instead; or negates first instantaneous kill effect\",\r\n\t\t\t\t\tduration : \"24 h\",\r\n\t\t\t\t\tchanges : \"Whenever I finish a long rest, I gain the benefits of a Death Ward spell for 24 hours.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can summon protectors\",\r\n\t\t\t\t\"I gain the benefits of a Conjure Animals spell as if cast with a 9th-level spell slot\",\r\n\t\t\t\t\"It summons 4 beast of my choice with CR 2 or lower within 20 ft of me for 1 hour\",\r\n\t\t\t\t\"If they receive no commands from me, they protect me from harm and attack foes\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of twilight-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*twilight).*$/i,\r\n\tsubname : \"Circle of Twilight\",\r\n\tsubnameShort: \"Twilight\",\r\n\tsource : [[\"UA:DC\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Harvest's Scythe\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have a pool of energy represented by a number of d10s equal to my druid level\",\r\n\t\t\t\t\"When I roll damage for a spell, I can do extra necrotic damage with dice from the pool\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"If I any hostiles die from an augmented spell, I can heal one ally I can see within 30 ft\",\r\n\t\t\t\t\"The ally regains 2 HP per die spent; or 5 HP per die if one of the slain was undead\",\r\n\t\t\t]),\r\n\t\t\tusages : [\"\", \"2d10 per \", \"3d10 per \", \"4d10 per \", \"5d10 per \", \"6d10 per \", \"7d10 per \", \"8d10 per \", \"9d10 per \", \"10d10 per \", \"11d10 per \", \"12d10 per \", \"13d10 per \", \"14d10 per \", \"15d10 per \", \"16d10 per \", \"17d10 per \", \"18d10 per \", \"19d10 per \", \"20d10 per \"],\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Speech Beyond the Grave\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per short rest, I can cast Speak with Dead without spell slots or material comp.\",\r\n\t\t\t\t\"The target and I can understand each other, regardless of language or intelligence\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Speech Beyond the Grave\",\r\n\t\t\t\tspells : [\"speak with dead\"],\r\n\t\t\t\tselection : [\"speak with dead\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"speak with dead\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per short rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Watcher at the Threshold\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain resistance to necrotic and radiant damage\",\r\n\t\t\t\t\"While I'm not incapacitated, allies within 30 ft of me gain adv. on their death saves\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Necrotic\", \"Radiant\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Paths of the Dead\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Once per short rest, I can cast Etherealness without needing a spell slot\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Paths of the Dead\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Paths of the Dead class feature I can cast Etherealness once per short rest without needing a spell slot, thus can only target 1 creature.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161205_Fighter-Martial-Archetypes.js\r\n// This file adds the content from the Unearthed Arcana: Eberron article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FMA\"] = {\r\n\tname : \"Unearthed Arcana: Fighter Martial Archetypes\",\r\n\tabbreviation : \"UA:FMA\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/2016_Fighter_UA_1205_1.pdf\",\r\n\tdate : \"2016/12/05\"\r\n};\r\n\r\n// Adds 4 subclasses for the Fighter\r\nAddSubClass(\"fighter\", \"arcane archer-ua\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"UA:FMA\", 1]],\r\n\tfullname : \"Arcane Archer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arcane Arrow\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can create one magical arrow that I can fire with a bow\",\r\n\t\t\t\t\"A shot with the arrow counts as magical and does additional force damage on a hit\",\r\n\t\t\t\t\"When I create the arrow, I can apply one of my known Arcane Shots on it\",\r\n\t\t\t\t\"This arrow lasts until the end of my turn or until I hit or miss a target with it\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 18 ? \"+2\" : \"+4\") + \"d6 force damage\";\r\n\t\t\t}),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : ['bonus action', 'Create Magical Arrow'],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((/longbow|shortbow/i).test(v.baseWeaponName) && (/^(?=.*arcane)(?=.*arrow).*$/i).test(v.WeaponTextName) && classes.known.fighter && classes.known.fighter.level) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; +' : '+') + (classes.known.fighter.level < 18 ? 2 : 4) + 'd6 force damage';\r\n\t\t\t\t\t\t\tif (!v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as magical/i).test(fields.Description)) fields.Description += '; Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Arcane Arrow' in a longbow or shortbow's name, it gets an added description of the damage this Arcane Arrow adds.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to add Arcane Shots to the third page'),\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" known\"; }),\r\n\t\t\textraname : \"Arcane Shot\",\r\n\t\t\textrachoices : [\"Beguiling Arrow\", \"Brute Bane Arrow\", \"Bursting Arrow\", \"Defending Arrow\", \"Grasping Arrow\", \"Piercing Arrow\", \"Seeking Arrow\", \"Shadow Arrow\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"beguiling arrow\" : {\r\n\t\t\t\tname : \"Beguiling Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\t\tadditional: \"Enchantment\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, I choose an ally withing 30 feet of the target\",\r\n\t\t\t\t\t\"The target can't attack the chosen ally or include the ally in any harmful area of effects\",\r\n\t\t\t\t\t\"This effect stops if the target is immune to charm effects or the ally damages the target\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"brute bane arrow\" : {\r\n\t\t\t\tname : \"Brute Bane Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\t\tadditional: \"Necromancy\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, the target's attacks deal half damage until the end of my next turn\",\r\n\t\t\t\t\t\"Only attacks that deal bludgeoning, piercing or slashing damage are halved\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"bursting arrow\" : {\r\n\t\t\t\tname : \"Bursting Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Evocation\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, all creatures within 10 ft of the target creature take 2d6 force damage\")\r\n\t\t\t},\r\n\t\t\t\"defending arrow\" : {\r\n\t\t\t\tname : \"Defending Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Abjuration\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, the target has disadv. on its next attack before the end of my next turn\")\r\n\t\t\t},\r\n\t\t\t\"grasping arrow\" : {\r\n\t\t\t\tname : \"Grasping Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Conjuration\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, the target is wrapped with grasping, thorny brambles for 1 minute\",\r\n\t\t\t\t\t\"The target has -10 ft speed; It takes 2d6 slashing damage when moving more than 1 ft\",\r\n\t\t\t\t\t\"As an action, the target or a creature can remove the brambles with a DC 10 Str check\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"piercing arrow\" : {\r\n\t\t\t\tname : \"Piercing Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Transmutation\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The arrow transform into an ethereal dart that creates a line of 1 ft wide and 30 ft long\",\r\n\t\t\t\t\t\"I then make a separate attack using my Arcane Arrow against each creature in that line\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"seeking arrow\" : {\r\n\t\t\t\tname : \"Seeking Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Divination\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can make a ranged attack against a creature I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners and obstacles to hit the target\",\r\n\t\t\t\t\t\"The attack ignores 1/2 and 3/4 cover and disadvantage from range or being out of sight\",\r\n\t\t\t\t\t\"The attack misses if the target is too far away or there is no path for the arrow to travel\",\r\n\t\t\t\t\t\"I know if the arrow hits the target, but don't learn the location unless it's in line of sight\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"shadow arrow\" : {\r\n\t\t\t\tname : \"Shadow Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Illusion\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, the target can't see beyond 30 ft until the end of my next turn\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Archer's Lore\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills\",\r\n\t\t\t\t\"I can choose from: Arcana, Athletics, Nature, Perception, Stealth, or Survival\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from Arcana, Athletics, Nature, Perception, Stealth, and Survival\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Conjure Arrows\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can create up to 20 nonmagical arrows that remain for 10 minutes\",\r\n\t\t\t\t\"The arrows vanish if I use this feature again with 10 minutes\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Arrow\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one use of Arcane Arrow one minute after I expend my last remaining use of it\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"knight-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green|fey|horned))(?=.*knight).*$/i,\r\n\tsubname : \"Knight\",\r\n\tsource : [[\"UA:FMA\", 2]],\r\n\tfullname : \"Knight\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement\",\r\n\t\t\t\t\"I have advantage on saving throws made to avoid falling off my mount\",\r\n\t\t\t\t\"If I fall off my mount for less than 10 ft while not incapacitated, I land on my feet\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Implacable Mark\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I hit a creature with a melee weapon attack, I mark it until the end of my next turn\",\r\n\t\t\t\t\"A marked target has disadv. on any attacks vs. those that didn't mark it\",\r\n\t\t\t\t\"I can attack the target I marked if it is within 5 ft of me and does one of the following:\",\r\n\t\t\t\t\"\\u2022 It moves at least 1 foot on its turn\",\r\n\t\t\t\t\"\\u2022 It makes an attack that it suffers disadv. on from being marked\",\r\n\t\t\t\t\"This attack uses my reaction, has adv., and adds my fighter level as extra damage\",\r\n\t\t\t\t\"I can still do this if I already used my reaction this round, but not this turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/\\b(implacable.?mark|marked)\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.fighter.level;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Implacable Mark' or 'Marked' in the name of a melee weapon, it gets my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Noble Cavalry\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one language\",\r\n\t\t\t\t\"I can choose the skills from: Animal Handling, History, Insight, Persuasion, and Religion\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"2 Skill proficiencies: Animal Handling, History, Insight, Persuasion, or Religion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Noble Cavalry\",\r\n\t\t\t\tdescription: desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies: animal handling, history, insight, persuasion, or religion\" : {\r\n\t\t\t\tname : \"Noble Cavalry\",\r\n\t\t\t\tdescription: desc(\"I gain 2 skill proficiencies: Animal Handling, History, Insight, Persuasion, or Religion\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Animal Handling, History, Insight, Persuasion, or Religion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hold the Line\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature within 5 ft of me moves at least 1 ft, I can attack it\",\r\n\t\t\t\t\"This attack is made with a melee weapon attack and deals extra damage on a hit\",\r\n\t\t\t\t\"If this hits, the attack reduces the target's speed to 0 until the end of this turn\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"+\" + Math.floor(n / 2) + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 9 && (/holds?.the.line/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.floor(classes.known.fighter.level / 2);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Hold the Line' in the name of a melee weapon, it gets half my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Defender's Blade\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can do opportunity attacks if I already used my reaction this round, but not this turn\",\r\n\t\t\t\t\"I gain a +1 bonus to AC when I'm wearing heavy armor\",\r\n\t\t\t]),\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm wearing heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.heavyArmor; }\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"samurai-ua\", {\r\n\tregExpSearch : /samurai/i,\r\n\tsubname : \"Samurai\",\r\n\tsource : [[\"UA:FMA\", 3]],\r\n\tfullname : \"Samurai\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fighting Spirit\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can give myself benefits that last until the end of my next turn\",\r\n\t\t\t\t\"I then gain adv. on my attacks and resistance to bludgeoning/piercing/slashing damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Elegant Courtier\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\"I gain proficiency with either one language or the History, Insight, or Persuasion skill\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: History, Insight, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Elegant Courtier\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\t\"I gain proficiency with one language of my choice\",\r\n\t\t\t\t]),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: history, insight, or persuasion\" : {\r\n\t\t\t\tname : \"Elegant Courtier\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\t\"I gain proficiency with one skill: History, Insight, or Persuasion\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: History, Insight, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Unbreakable Will\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Strength Before Death\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I take damage that would reduce me to 0 HP, I can delay that damage\",\r\n\t\t\t\t\"I then immediately take a bonus turn, interrupting the current turn\",\r\n\t\t\t\t\"I don't take the delayed damage until the bonus turn ends and can affect that damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"sharpshooter-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /sharpshooter/i,\r\n\tsubname : \"Sharpshooter\",\r\n\tsource : [[\"UA:FMA\", 3]],\r\n\tfullname : \"Sharpshooter\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Steady Aim\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can carefully aim my ranged weapon on a target I can see in range\",\r\n\t\t\t\t\"Until the end of my turn, my attacks with this weapon on that target get to:\",\r\n\t\t\t\t\"Ignore half and three-quarter cover; Add 2 + half fighter level damage per hit\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + (2 + Math.floor(n / 2)) + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isRangedWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/steady.{0,3}aim/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Ignores 1/2 and 3/4 cover';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Steady Aim' in the name of a ranged weapon, it gets 2 + half my fighter level added to its Damage, and the fact that it ignores half and three-quarter cover added to its description.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isRangedWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/steady.{0,3}aim/i).test(v.WeaponTextName)) { output.extraDmg += 2 + Math.floor(classes.known.fighter.level / 2); };\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Careful Eyes\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can take the Search action\",\r\n\t\t\t\t\"I gain proficiency with one skill, Perception, Investigation, or Survival\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose one from: Perception, Investigation, or Survival\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Close-Quarters Shooting\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I don't have disadvantage when making a ranged attack while within 5 ft of a hostile\",\r\n\t\t\t\t\"A hostile within 5 ft that I hit with a ranged attack on my turn, can't take reactions\",\r\n\t\t\t\t\"This lasts until the end of my turn\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Snap Shot\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"I can make one more ranged attack with my Attack action on my first turn of combat\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161212_Monk-Monastic-Traditions.js\r\n// This file adds the content from the Unearthed Arcana: Monk Monastic Traditions article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MMT\"] = {\r\n\tname : \"Unearthed Arcana: Monk Monastic Traditions\",\r\n\tabbreviation : \"UA:MMT\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/M_2016_UAMonk1_12_12WKWT.pdf\",\r\n\tdate : \"2016/12/12\"\r\n};\r\n\r\n// Adds 2 subclasses for the Monk\r\nAddSubClass(\"monk\", \"way of the kensei-ua\", {\r\n\tregExpSearch : /kensei/i,\r\n\tsubname : \"Way of the Kensei\",\r\n\tsubnameShort: \"Kensei\",\r\n\tsource : [[\"UA:MMT\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of the Kensei\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"3 martial weapons proficiencies\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Martial weapons I am proficient with count as kensei weapons for me\",\r\n\t\t\t\t\"With these, I can use Dex instead of Str and use the Martial Arts damage die\",\r\n\t\t\t\t\"As a bonus action, my kensei weapon deal +1d4 bludg. damage for an Attack action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level > 2 && fields.Proficiency && !v.isSpell && v.baseWeaponName !== 'shortsword' && (/martial/i).test(v.theWea.type)) {\r\n\t\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tvar curDie = eval_ish(fields.Damage_Die.replace('d', '*'));\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tvar curDie = 'x';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif (isNaN(curDie) || curDie < aMonkDie) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = '1d' + aMonkDie;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 bludg. damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I can use either Strength or Dexterity and my Martial Arts damage die in place of the normal damage die for any martial weapons I am proficient with (Kensei Weapons).\\n \\u2022 If I score a hit with one of these kensei weapons as part of an Attack action, I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 bludgeoning damage.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"kensei defense\" : {\r\n\t\t\t\tname : \"Kensei Defense\",\r\n\t\t\t\textraname : \"Way of the Kensei 3\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If I make an unarmed strike with an Attack action, I can use my kensei weapon to defend\",\r\n\t\t\t\t\t\"Until the start of my next turn, if I'm not incapacitated, I gain +2 AC while holding it\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"kensei defense\" }]\r\n\t\t},\r\n\t\t\"ki-empowered strikes\" : {\r\n\t\t\tname : \"One with the Blade\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((v.baseWeaponName == \"unarmed strike\" || (!v.isSpell && (/martial/i).test(v.theWea.type) && fields.Proficiency)) && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My unarmed strikes and Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Precise Strike\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \"As a bonus action, I can focus my attention on one creature I can see within 30 ft\" + \"\\n   \" + \"This turn, I double my proficiency bonus on my next weapon attack against that mark\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.isSpell && !v.isDC && (/precise.{0,3}strike/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.prof *= 2;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Precise Strike' in a weapon's name, or description it gets twice my proficiency bonus added to its To Hit instead of only once.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tadditional: \"1 to 3 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can grant my weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\"This bonus is equal to the number of ki points I spend; It lasts for 1 minute\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"On each of my turns, I can reroll one weapon attack roll I make that misses\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of tranquility-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*tranquility|tranquil|calm|diplomatic|diplomat)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Tranquility\",\r\n\tsubnameShort: \"Tranquility\",\r\n\tsource : [[\"UA:MMT\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of Tranquility\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I cast Sanctuary on me, no material comp., lasts 8 hours, hostiles must save every hour\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"1 min\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Way of Tranquility\",\r\n\t\t\t\tspells : [\"sanctuary\"],\r\n\t\t\t\tselection : [\"sanctuary\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sanctuary\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\ttime : \"8 h\",\r\n\t\t\t\t\tdescription : \"I'm warded; any who want to attack/target must first make save; doesn't protect vs. area spells\",\r\n\t\t\t\t\tchanges : \"Using my Path of Tranquility class feature I can cast Sanctuary without requiring material components and lasting for 8 hours, but it only affects myself and hostiles can attempt a new save every hour.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I use points to heal living creature; or 5 points to cure one poison/disease\",\r\n\t\t\t\t\"With Flurry of Blows, I can replace one unarmed strike with a use of this feature\",\r\n\t\t\t]),\r\n\t\t\tusages : [0, 0, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Emissary of Peace\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [Performance or Persuasion prof]\" + \"\\n   \" + \"I get adv. on Cha checks to calm or counsel peace; not with Deception or Intimidation\",\r\n\t\t\tskillstxt : \"Choose one from: Performance or Persuasion\",\r\n\t\t\t\"douse the flames of war\" : {\r\n\t\t\t\tname : \"Douse the Flames of War\",\r\n\t\t\t\textraname : \"Way of Tranquility 11\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a creature I touch must make a Wisdom save or have no violent impulses\",\r\n\t\t\t\t\t\"If the target is missing any HP it succeeds on the save; The effect lasts for 1 minute\",\r\n\t\t\t\t\t\"During this time, it can't attack or cast spells that deal damage or force a saving throw\",\r\n\t\t\t\t\t\"This effect ends if the target is attacked, takes damage, or is forced to make a saving throw\",\r\n\t\t\t\t\t\"It also ends if the target witnesses any of those things happening to its allies\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"douse the flames of war\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Anger of a Gentle Soul\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a reaction if another I see goes to 0 HP, I get bonus damage until my next turn ends\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"+17\", \"+18\", \"+19\", \"+20\"],\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20161219_Paladin-Sacred-Oaths.js\r\n// This file adds the content from the Unearthed Arcana: Paladin Sacred Oaths article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:PSO\"] = {\r\n\tname : \"Unearthed Arcana: Paladin Sacred Oaths\",\r\n\tabbreviation : \"UA:PSO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UAPaladin_SO_20161219_1.pdf\",\r\n\tdate : \"2016/12/19\"\r\n};\r\n\r\n// Adds 2 subclasses for the Paladin\r\nAddSubClass(\"paladin\", \"oath of conquest-ua\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"UA:PSO\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use my channel divinity to break a foe's will that I hit with my melee weapon\",\r\n\t\t\t\t\"The target must make a Wisdom saving throw or become frightened for 1 minute\",\r\n\t\t\t\t\"The target can repeat this save at the end of each or its turn to end the effect\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"blight\", \"dominate beast\", \"dominate person\", \"insect plague\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"While I'm not incapacitated, enemies in range have disadv. on saves vs. being frightened\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Implacable Spirit\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I can't be charmed\"),\r\n\t\t\tsavetxt : { immune : [\"charmed\"] }\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\"\\u2022 I have resistance all damage\",\r\n\t\t\t\t\"\\u2022 I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\"\\u2022 My melee weapons score critical hits on a roll of 19 or 20\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of treachery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^((?=.*blackguard)|(((?=.*(treachery|tyranny|tyrant))(?=.*paladin))|((?=.*(profane|unholy))(?=.*(knight|fighter|warrior|warlord|trooper))))).*$/i,\r\n\tsubname : \"Oath of Treachery\",\r\n\tsubnameShort: \"Treachery\",\r\n\tsource : [[\"UA:PSO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conjure Duplicate\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I create 1 illusory duplicate of myself within 30 ft of me for 1 min (conc)\",\r\n\t\t\t\t\"As a bonus action, I can move it up to 30 ft to a space I can see within 120 ft of me\",\r\n\t\t\t\t\"I can cast spells as though I was in its space, but still have to use my own senses\",\r\n\t\t\t\t\"I have advantage on attacks if the target is within 5 ft of the duplicate and me\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], ['bonus action', 'Move Duplicate']],\r\n\t\t\tspellcastingExtra : [\"charm person\", \"expeditious retreat\", \"invisibility\", \"mirror image\", \"gaseous form\", \"haste\", \"confusion\", \"greater invisibility\", \"dominate person\", \"passwall\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Poison Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I imbue one weapon or piece of ammunition with poison upon touch\",\r\n\t\t\t\t\"This poison lasts for 1 minute and will affect the next time I hit a target with it\",\r\n\t\t\t\t\"The target takes 2d10 + my paladin level poison damage immediately after the hit\",\r\n\t\t\t\t\"I automatically roll 20 on the 2d10 if I have advantage on the attack roll\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"2d10+\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && (/^(?=.*poison)(?=.*strike).*$/i).test(v.WeaponTextName) && classes.known.paladin && classes.known.paladin.level) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d10+' + classes.known.paladin.level + ' poison damage (or ' + (classes.known.paladin.level + 20) + ' if adv.)';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Poison Strike' in a weapon's name, it gets an added description of the extra 2d10 + paladin level of poison damage it would do. If I have advantage on the attack, I can treat the 2d10 as rolling 20 in total.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Cull the Herd\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I have adv. on melee attacks against creatures that have an ally of it within 5 ft of it\")\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Treacherous Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature within 5 ft misses me, I can redirect the attack\",\r\n\t\t\t\t\"If it can be charmed, it rerolls the attack on a target of my choice within 5 ft of it\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Blackguard's Escape\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction after I am hit by an attack, I can teleport up to 60 ft to a spot I can see\",\r\n\t\t\t\t\"In doing this, I also become invisible (as the spell) until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\"icon of deceit\" : {\r\n\t\t\t\tname : \"Icon of Deceit\",\r\n\t\t\t\textraname : \"Oath of Treachery 20\",\r\n\t\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\t\"\\u2022 I become invisible\",\r\n\t\t\t\t\t\"\\u2022 If I have adv. on an attack, I do 20 extra damage with it if it hits\",\r\n\t\t\t\t\t\"\\u2022 If a creature hits me on its turn, it must make a Wis save or I control its next action\",\r\n\t\t\t\t\t\"   Provided it can be charmed and I am not incapacitated when it takes the action\",\r\n\t\t\t\t]),\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"icon of deceit\",\r\n\t\t\t\tminlevel : 20\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170116_Ranger-and-Rogue.js\r\n// This file adds the content from the Unearthed Arcana: Ranger and Rogue article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RnR\"] = {\r\n\tname : \"Unearthed Arcana: Ranger and Rogue\",\r\n\tabbreviation : \"UA:RnR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/2017_01_UA_RangerRogue_0117JCMM.pdf\",\r\n\tdate : \"2017/01/16\"\r\n};\r\n\r\n// Adds 3 subclasses: 2 for the Ranger (and the Revised Ranger), and 1 for the Rogue\r\nvar UARnR_theHorizonWalkerSubclass = {\r\n\tregExpSearch : /^(?=.*horizon)(?=.*walker).*$/i,\r\n\tsubname : \"Horizon Walker\",\r\n\tsource : [[\"UA:RnR\", 1]],\r\n\tfullname : \"Horizon Walker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Planar magic\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"alter self\", \"protection from energy\", \"banishment\", \"teleportation circle\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Planar Walker\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose an enemy within 30 ft of me that I can see\",\r\n\t\t\t\t\"Until the end of this turn, my attack against that enemy ignore damage resistances\",\r\n\t\t\t\t\"In addition, the first time I hit it this turn, it takes an extra 1d6 force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Portal Lore\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I sense the distance and direction to any planar portals within 1000 ft\",\r\n\t\t\t\t\"I also sense to which plane the portal leads to; I can't sense details if obscured by magic\",\r\n\t\t\t\t\"I can use this feature additional times by expending spell slots of 2nd level or higher\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ethereal Step\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"As a bonus action, I can cast the Etherealness spell, which lasts until the end of the turn\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Ethereal Step\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tduration : \"1 rnd\",\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Ethereal Step class feature I can cast Etherealness as a bonus action once per short rest, but it only affects myself and lasts until the end of my turn.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Distant Strike\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can teleport 10 ft before each attack, to a place I can see\",\r\n\t\t\t\t\"If I attack two different creatures with this action, I get an extra attack against a third\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Spectral Defense\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I take damage, I can halve that damage against me\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddSubClass(\"ranger\", \"horizon walker-ua\", UARnR_theHorizonWalkerSubclass);\r\nvar UARnR_thePrimevalGuardianSubclass = { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*primeval)(?=.*guardian).*$/i,\r\n\tsubname : \"Primeval Guardian\",\r\n\tsource : [[\"UA:RnR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Guardian magic\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"entangle\", \"enhance ability\", \"conjure animals\", \"giant insect\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Guardian Soul\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I transform to or from a guardian form, changing me as follows:\",\r\n\t\t\t\t\"\\u2022 I grow to Large size, all my movement is reduced to 5 ft, and I get +5 ft reach\",\r\n\t\t\t\t\"\\u2022 I gain half my ranger level in temporary HP at the start of each of my turns\",\r\n\t\t\t\t\"This ends when I'm incapacitated; When it ends, I lose all temporary HP I got from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"1 temp HP per round\", \"2 temp HP per round\", \"2 temp HP per round\", \"3 temp HP per round\", \"3 temp HP per round\", \"4 temp HP per round\", \"4 temp HP per round\", \"5 temp HP per round\", \"5 temp HP per round\", \"6 temp HP per round\", \"6 temp HP per round\", \"7 temp HP per round\", \"7 temp HP per round\", \"8 temp HP per round\", \"8 temp HP per round\", \"9 temp HP per round\", \"9 temp HP per round\", \"10 temp HP per round\"],\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Piercing Thorns\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Once each turn, a hit from my weapon attack can deal 1d6 extra piercing damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell) fields.Description += (fields.Description ? '; ' : '') + 'Once per turn, +1d6 piercing damage';\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My weapon attacks can deal 1d6 extra piercing damage once per turn.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ancient Fortitude\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I assume my guardian form, my HP \\u0026 max HP increase by twice my ranger level\",\r\n\t\t\t\t\"When I leave the form, my max HP reverts back, and any excess HP I have is lost\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"+16 max HP\", \"+18 max HP\", \"+20 max HP\", \"+22 max HP\", \"+24 max HP\", \"+26 max HP\", \"+28 max HP\", \"+30 max HP\", \"+32 max HP\", \"+34 max HP\", \"+36 max HP\", \"+38 max HP\", \"+40 max HP\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Rooted Defense\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"While in guardian form, the ground within 30 ft of me is difficult terrain for hostiles\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Guardian Aura\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm in my guardian form, I heal allies that start their turn within 30 ft of me\",\r\n\t\t\t\t\"They heal half my ranger level if they are below half HP and not undead or constructs\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"Heals 7 HP\", \"Heals 8 HP\", \"Heals 8 HP\", \"Heals 9 HP\", \"Heals 9 HP\", \"Heals 10 HP\"]\r\n\t\t}\r\n\t}\r\n};\r\nAddSubClass(\"ranger\", \"primeval guardian-ua\", UARnR_thePrimevalGuardianSubclass);\r\nif (ClassList[\"rangerua\"]) { // add them to the Revised Ranger as well, if it is defined\r\n\tvar UARnR_theHorizonConclaveSubclass = newObj(UARnR_theHorizonWalkerSubclass);\r\n\tUARnR_theHorizonConclaveSubclass.subname = \"Horizon Conclave\";\r\n\tUARnR_theHorizonConclaveSubclass.regExpSearch = /^(?=.*horizon)(?=.*conclave).*$/i\r\n\tdelete UARnR_theHorizonConclaveSubclass.fullname;\r\n\tAddSubClass(\"rangerua\", \"horizon conclave-ua\", UARnR_theHorizonConclaveSubclass);\r\n\tvar UARnR_thePrimevalGuardianConclaveSubclass = newObj(UARnR_thePrimevalGuardianSubclass);\r\n\tUARnR_thePrimevalGuardianConclaveSubclass.subname = \"Primeval Guardian Conclave\";\r\n\tdelete UARnR_thePrimevalGuardianConclaveSubclass.fullname;\r\n\tAddSubClass(\"rangerua\", \"primeval guardian conclave-ua\", UARnR_thePrimevalGuardianConclaveSubclass);\r\n};\r\nAddSubClass(\"rogue\", \"scout-ua\", {\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"UA:RnR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Skirmisher\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile ends its turn within 5 ft of me, I can move half my speed\",\r\n\t\t\t\t\"This movement does not provoke attacks of opportunity\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Survivalist\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency and expertise with the Nature and Survival skills\"),\r\n\t\t\tskills : [['Nature', 'full'], ['Survival', 'full']]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Superior Mobility\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"I gain +10 ft to my walking speed (and swimming/climbing speed, if applicable)\"),\r\n\t\t\tspeed : { \r\n\t\t\t\tallModes : { bonus : \"+10\", exclude : [\"fly\", \"burrow\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ambush Master\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action in the first combat round with a surprised foe, I can lead the ambush\",\r\n\t\t\t\t\"If I do so, allies who can see me gets +5 to their initiative roll, up to my initiative value\",\r\n\t\t\t\t\"Also, each ally gains +10 ft to its speed that lasts until the end their next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (first round)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sudden Strike\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"With the Attack action, I can make one additional attack as a bonus action\",\r\n\t\t\t\t\"This attack can benefit from my Sneak Attack even if I already used it this turn\",\r\n\t\t\t\t\"However, I still can't use Sneak Attack on a single target more than once per turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170206_Sorcerous-Origins.js\r\n// This file adds the content from the Unearthed Arcana: Sorcerous Origins article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SO\"] = {\r\n\tname : \"Unearthed Arcana: Sorcerous Origins\",\r\n\tabbreviation : \"UA:SO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/26_UASorcererUA020617s.pdf\",\r\n\tdate : \"2017/02/06\"\r\n};\r\n\r\n// Adds 4 subclasses for the Sorcerer\r\n//this code includes contributions by /u/SoilentBrad, as well as LamentingDemon on GitHub\r\nAddSubClass(\"sorcerer\", \"favored soul-ua2\", {\r\n\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\tsubname : \"Favored Soul\",\r\n\tsource : [[\"UA:SO\", 1]],\r\n\tfullname : \"Favored Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I select my 1st level or higher spells, I can also pick spells from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Supernatural Resilience\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My hit point maximum increases by an amount equal to my sorcerer level\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Supernatural Resilience (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Blessed Countenance\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose an otherworldly quality using the \"Choose Feature\" button above',\r\n\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Beautiful\", \"Youthful\", \"Kind\", \"Imposing\"],\r\n\t\t\t\"beautiful\" : {\r\n\t\t\t\tname : \"Beautiful\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of beauty\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"youthful\" : {\r\n\t\t\t\tname : \"Youthful\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of youthfulness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"kind\" : {\r\n\t\t\t\tname : \"Kind\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of kindness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"imposing\" : {\r\n\t\t\t\tname : \"Imposing\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of imposingness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tskillstxt : \"I gain expertise in any Charisma-based skill I'm proficient with\",\r\n\t\t\tskills : [[\"Deception\", \"only\"], [\"Intimidation\", \"only\"], [\"Performance\", \"only\"], [\"Persuasion\", \"only\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Divine Purity\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I become immune to disease and poison\"),\r\n\t\t\tsavetxt : { immune : [\"poison\", \"disease\"] }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my maximum hit points\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad, as well as Toby L.\r\nAddSubClass(\"sorcerer\", \"phoenix sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*phoenix)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Phoenix Sorcery\",\r\n\tsource : [[\"UA:SO\", 1]],\r\n\tfullname : \"Phoenix Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Ignite\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"As an action, I can magically ignite a flammable object by touching it with my hand\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Mantle of Flame\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can wreathe myself in fire for 1 minute, gaining these benefits:\",\r\n\t\t\t\t\" - I shed bright light in a 30-ft radius and dim light for an additional 30 ft\",\r\n\t\t\t\t\" - I deal my Charisma modifier in fire damage to all that touch me\",\r\n\t\t\t\t\" - I also deal this damage to all that hit me with a melee attack from within 5 ft\",\r\n\t\t\t\t\" - When I roll for fire damage on my turn, I add my Charisma damage to the result\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Phoenix Spark\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I am reduced to 0 HP, I can draw on the phoenix to stay at 1 HP\",\r\n\t\t\t\t\"All creatures within 10 ft of me take half my sorcerer level + my Cha mod fire damage\",\r\n\t\t\t\t\"If I have Mantle of Flame active, this damage is my sorcerer level + twice my Cha mod\",\r\n\t\t\t\t\"If I use this feature, my Mantle of Flame immediately ends\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn Math.floor(n / 2) + \"+Cha \\u007Cor\\u007C \" + n + \"+2\\xD7Cha\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Nourishing Fire\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell using a spell slot that includes a fire damage roll, I regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the spell slot level + my Charisma modifier\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Form of the Phoenix\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my Mantle of Flame is active, I gain the following additional benefits:\",\r\n\t\t\t\t\"- I have a flying speed of 40 ft and can hover\",\r\n\t\t\t\t\"- I have resistance to all damage\",\r\n\t\t\t\t\"- If I use my Phoenix Spark, it deals an extra 20 fire damage to each creature\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [[\"All\", \"All (Mantle of Flame)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad\r\nAddSubClass(\"sorcerer\", \"sea sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*sea)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Sea Sorcery\",\r\n\tsource : [[\"UA:SO\", 2]],\r\n\tfullname : \"Sea Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Soul of the Sea\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can breathe underwater and I have a swim speed equal to my walking speed\"),\r\n\t\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Curse of the Sea\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can curse a target that I hit with a cantrip or that fails its save against my cantrip\",\r\n\t\t\t\t\"This lasts until the end of my next turn or until I curse another target like this\",\r\n\t\t\t\t\"Once per turn when I cast a spell, I can trigger an active curse, if a condition is met\",\r\n\t\t\t\t\" - If spell dealt cold damage to it, its has -15 ft speed until the end of my next turn\",\r\n\t\t\t\t\" - If the spell dealt lightning damage to it, that damage is increased with my Cha mod\",\r\n\t\t\t\t\" - If the spell moved the target, it is moved an additional 15 ft\",\r\n\t\t\t\t\"Only one of these effects can be applied, even if the spell meets multiple conditions\",\r\n\t\t\t\t\"If the spell triggering the curse is a cantrip, the target stays cursed for another round\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Watery Defense\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to fire damage\",\r\n\t\t\t\t\"I can protect myself when an attack deals bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\"As a reaction when that happens, I reduce the damage by my sorcerer level + Charisma\",\r\n\t\t\t\t\"I can then also move up to 30 ft without provoking opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn n + \" + Charisma score\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdmgres : [\"Fire\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shifting Form\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain the ability to enter a liquid state while moving, squeezing through small spaces\",\r\n\t\t\t\t\"When I move on my turn, I take half damage from opportunity attacks\",\r\n\t\t\t\t\"I can move through any enemy's space, but can't willingly end my move in that space\",\r\n\t\t\t\t\"On my turn, I can move through any opening of at least 3 inches in diameter\",\r\n\t\t\t\t\"I can't end my move in a space smaller than one size category smaller than I am\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Water Soul\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to eat, drink, or sleep; Critical hits against me become normal hits\",\r\n\t\t\t\t\"I gain resistance to bludgeoning, piercing, and slashing damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Bludgeoning\", \"Piercing\", \"Slashing\"]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad\r\nAddSubClass(\"sorcerer\", \"stone sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*stone)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Stone Sorcery\",\r\n\tsource : [[\"UA:SO\", 3]],\r\n\tfullname : \"Stone Sorcerer\",\r\n\tspellcastingExtra : [\"compelled duel\", \"searing smite\", \"thunderous smite\", \"wrathful smite\", \"branding smite\", \"magic weapon\", \"blinding smite\", \"elemental weapon\", \"staggering smite\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with shields, simple weapons and martial weapons\"),\r\n\t\t\tarmorProfs : [false, false, false, true],\r\n\t\t\tweaponProfs : [true, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Metal Magic\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My affinity for metal allows me to select from a broader range of spells\")\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Stone's Durability\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My hit point maximum increases by an amount equal to my sorcerer level\",\r\n\t\t\t\t\"As an action, I can gain an AC of 13 + Constitution modifier + shield\",\r\n\t\t\t\t\"This AC lasts until I don armor, I'm incapacitated, or use a bonus action to end it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', \" (end)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Stone's Durability (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*stone)(?=.*durability).*$/i,\r\n\t\t\t\tname : \"Stone's Durability\",\r\n\t\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\t\tac : \"13+Con\",\r\n\t\t\t\tdex : -10,\r\n\t\t\t\taffectsWildShape : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Stone Aegis\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can grant an aegis to an ally I can see within 60 ft of me\",\r\n\t\t\t\t\"The aegis reduces any bludgeoning, piercing, or slashing damage taken by the target\",\r\n\t\t\t\t\"This aegis lasts for 1 minute, until I use it again, or until I'm incapacitated\",\r\n\t\t\t\t\"As a reaction when the protected ally is attacked with a melee attack, I can teleport\",\r\n\t\t\t\t\"I can do this only if the attacker is within 60 ft of me and I can see it\",\r\n\t\t\t\t\"I teleport to an empty space next to it and make one melee weapon attack against it\",\r\n\t\t\t\t\"If this attack hits, the attack deals extra force damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn (Math.floor(n / 4) + 2) + \" damage reduction; +\" + (n < 11 ? 1 : n < 17 ? 2 : 3) + \"d10 force damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"], ['reaction', 'Aegis Teleport']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Stone's Edge\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per casting of a spell that deals damage, I can choose one creature damaged by it\",\r\n\t\t\t\t\"That creature takes extra force damage equal to half my sorcerer level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : Math.floor(n / 2) + \" force damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Earth Master's Aegis\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"My Stone's Aegis can now affect up to three creatures\")\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170213_Warlock-and-Wizard.js\r\n// This file adds the content from the Unearthed Arcana: Warlock and Wizard article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:WnW\"] = {\r\n\tname : \"Unearthed Arcana: Warlock and Wizard\",\r\n\tabbreviation : \"UA:WnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/20170213_Wizrd_Wrlck_UAv2_i48nf.pdf\",\r\n\tdate : \"2017/02/13\"\r\n};\r\n\r\n// Adds 3 subclasses, 2 for the Warlock, and 1 for the Wizard\r\n//this code includes contributions by Greg N.\r\nAddSubClass(\"warlock\", \"the hexblade-ua\", {\r\n\tregExpSearch : /^(?=.*hexblade)(?=.*warlock).*$/i,\r\n\tsubname : \"the Hexblade\",\r\n\tsource : [[\"UA:WnW\", 1]],\r\n\tspellcastingExtra : [\"shield\", \"wrathful smite\", \"branding smite\", \"magic weapon\", \"blink\", \"elemental weapon\", \"phantasmal killer\", \"staggering smite\", \"cone of cold\", \"destructive wave\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Hex Warrior\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor, shields, and martial weapons\",\r\n\t\t\t\t\"With one-handed melee weapons I can use Charisma instead of Strength or Dexterity\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && !(/((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b/i).test(v.WeaponText) && What('Cha Mod') > What(AbilityScores.abbreviations[fields.Mod - 1] + ' Mod')) {\r\n\t\t\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"For melee weapons that lack the two-handed property, I can use my Charisma instead of Strength or Dexterity.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hexblade's Curse\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can curse a creature I can see within 30 ft of me for 1 minute\",\r\n\t\t\t\t\" - I add my proficiency bonus to damage rolls against the cursed target\",\r\n\t\t\t\t\" - My attack rolls against the curse target score a critical hit on a roll of 19 and 20\",\r\n\t\t\t\t\" - If the target dies while cursed, I regain HP equal to my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : levels.map( function(n) { return n < 14 ? 1 : \"\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && /hexblade/i.test(v.WeaponTextName) && !v.CritChance) {\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Hexblade' in the name of a weapon, the automation will treat the attack as being against a target of the Hexblade's Curse: adding my proficiency bonus to the damage and adding the increased chance of a critical hit to the description.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/hexblade/i).test(v.WeaponTextName)) output.extraDmg += output.prof;\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Shadow Hound\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My shadow becomes a hound of pure darkness; Truesight reveals its nature\",\r\n\t\t\t\t\"As a bonus action, I can have it slip into the shadow of another I can see within 60 ft\",\r\n\t\t\t\t\"I know the distance/direction to the target; I ignore 1/2, 3/4 cover of the target\",\r\n\t\t\t\t\"My shadow returns to me if I use a bonus action to do so, I become incapacitated, \",\r\n\t\t\t\t\"a spell is used to stop it, or if one of us moves to another plane of existence\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Armor of Hexes\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Targets affected by my hexblade's curse have a 50% of missing me with any attack roll\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Hexes\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to rest to be able to use my Hexblade's Curse again\",\r\n\t\t\t\t\"However, when I curse a new target, the curse immediately ends on the previous target\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by Ben Y. and Wizzard\r\nAddSubClass(\"warlock\", \"the raven queen-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*\\braven)(?=.*queen\\b).*$/i,\r\n\tsubname : \"the Raven Queen\",\r\n\tsource : [[\"UA:WnW\", 2]],\r\n\tspellcastingExtra : [\"false life\", \"sanctuary\", \"silence\", \"spiritual weapon\", \"feign death\", \"speak with dead\", \"ice storm\", \"locate creature\", \"commune\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Sentinel Raven\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain the services of a spirit in the form of a raven (using the stats of a raven)\",\r\n\t\t\t\t\"It always obeys my commands, rolls its own initiative, and can be slain\",\r\n\t\t\t\t\"While it's within 100 ft, I can telepathically speak with it and see/hear what it does\",\r\n\t\t\t\t\"While it's on my shoulder, I gain Darkvision 30 ft and add my Cha mod to Perception\",\r\n\t\t\t\t\"While it's on my shoulder, it can't be targeted, take damage, or take actions\",\r\n\t\t\t\t\"It vanishes if it is more than 5 miles away from me, it dies, or if I die\",\r\n\t\t\t\t\"If it dies, I gain advantage on all attack rolls against its killer for 24 hours\",\r\n\t\t\t\t\"After a short rest, I can recall it to me regardless of its location or if it died\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", 30]],\r\n\t\t\taddMod : { type : \"skill\", field : \"Perc\", mod : \"max(Cha|0)\", text : \"While my sentinel raven is perched on my shoulder, I can add my Charisma modifier to Perception.\" },\r\n\t\t\tcreaturesAdd : [[\"Sentinel Raven\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Sentinel Raven\",\r\n\t\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\t\tsize : 5,\r\n\t\t\t\ttype : \"Beast\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : 12,\r\n\t\t\t\thp : 1,\r\n\t\t\t\thd : [1, 4],\r\n\t\t\t\tspeed : \"10 ft, fly 50 ft\",\r\n\t\t\t\tscores : [2, 14, 8, 2, 12, 6],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"perception\" : 3\r\n\t\t\t\t},\r\n\t\t\t\tpassivePerception : 13,\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Beak\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [1, \"\", \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Mimicry\",\r\n\t\t\t\t\tdescription : \"The raven can mimic simple sounds it has heard, such as a person whispering, a baby crying, or an animal chittering. A creature that hears the sounds can tell they are imitations with a successful DC 10 Wisdom (Insight) check.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sentinel\",\r\n\t\t\t\t\tdescription : \"The raven doesn't require sleep. While it is within 100 feet of me, it can awaken me from sleep as a bonus action.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shoulder Perch\",\r\n\t\t\t\t\tdescription : \"While perched on my shoulder, the raven can't be targeted by any attack or other harmful effect; only I can cast spells on it; it can't take damage; and it is incapacitated. It then also grants me darkvision 30 ft and a bonus to my Wisdom (Perception) equal to my Charisma modifier.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Sent by the Raven Queen\",\r\n\t\t\t\t\tdescription : \"The raven acts independently of me, but it always obeys my commands. In combat, it rolls its own initiative and acts on its own turn, but I control how it acts. If it is slain by a creature, I gain advantage on all attack rolls against the killer for the next 24 hours. While the raven is within 100 ft of me, I can telepathically command it and see through its eyes and hear what it hears.\\n   The raven vanishes when it dies, if I die, or if we are separated by more than 5 miles. At the end of a short or long rest, I can call the raven back to reappear within 5 ft of me, regardless where it is or if it died.\"\r\n\t\t\t\t}]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Raven\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, when my raven is perched on my shoulder, I can merge our bodies\",\r\n\t\t\t\t\"I become tiny and replace my speed with the raven's (10 ft, fly 50 ft)\",\r\n\t\t\t\t\"I can then use my action only to Dash, Disengage, Dodge, Help, Hide, or Search\",\r\n\t\t\t\t\"While merged, I still get all the benefits of my raven being perched on my shoulder\",\r\n\t\t\t\t\"I can end this as an action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start)\"], ['action', ' (end)']]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Raven's Shield\",\r\n\t\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can't be frightened, have advantage on death saves, and resistance to necrotic damage\"),\r\n\t\t\tsavetxt : { immune : [\"frightened\"], adv_vs : [\"death\"] },\r\n\t\t\tdmgres : [\"Necrotic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Queen's Right Hand\",\r\n\t\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can cast Finger of Death once per long rest\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Queen's Right Hand\",\r\n\t\t\t\tspells : [\"finger of death\"],\r\n\t\t\t\tselection : [\"finger of death\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/magicmanfk\r\nAddSubClass(\"wizard\", \"lore mastery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*\\blore)(?=.*mastery?\\b).*$/i,\r\n\tsubname : \"Lore Mastery\",\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tfullname : \"Lore Master\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Lore Master\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use my Intelligence modifier for initiative instead of my Dexterity modifier\",\r\n\t\t\t\t\"I get expertise with each Arcana, History, Nature, and Religion, if I'm proficient with it\"\r\n\t\t\t]),\r\n\t\t\tskills : [[\"Arcana\", \"only\"], [\"History\", \"only\"], [\"Nature\", \"only\"], [\"Religion\", \"only\"]],\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int-Dex|0)\", text : \"I use my Intelligence modifier for initiative rolls instead of Dexterity.\" }\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spell Secrets: Elements\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can change the damage type of spells I cast using spell slots (so not cantrips)\",\r\n\t\t\t\t\"I can swap out acid, cold, fire, force, lightning, necrotic, radiant, or thunder damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2.2\" : {\r\n\t\t\tname : \"Spell Secrets: Saves\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can change the saving throw ability score to another for a spell I cast using a spell slot\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Alchemical Casting\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell with a spell slot, I can expend one additional spell slot to augment it\",\r\n\t\t\t\t\" - 1st-level slot: one damage roll of the spell adds +2d10 force damage\",\r\n\t\t\t\t\" - 2nd-level slot: if the range of the spell is at least 30 ft, it becomes 1 mile\",\r\n\t\t\t\t\" - 3rd-level slot: the spell's save DC increases by 2\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Prodigious Memory\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"As a bonus action, I can replace one of my prepared spells with another from my book\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Magic\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can call to mind one spell of my choice from any class' spell list\",\r\n\t\t\t\t\"This spell must be of a level I have spell slots for and that I don't already have prepared\",\r\n\t\t\t\t\"I can then cast it using the normal spellcasting rules, including expending a spell slot\",\r\n\t\t\t\t\"It counts a wizard spell; I can only cast the spell during the same turn I call it to mind\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add many new Warlock invocations\r\n// Most probably still valid 2021-09-21, have to check\r\nAddWarlockInvocation(\"Aspect of the Moon (prereq: the Archfey patron)\", {\r\n\tname : \"Aspect of the Moon\",\r\n\tdescription: desc(\"I don't need to sleep nor can be magically forced to; I can rest while doing light activity\"),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tsavetxt : { text : [\"Nothing can force me to sleep\"] }\r\n});\r\nAddWarlockInvocation(\"Burning Hex (prereq: the Hexblade patron)\", {\r\n\tname : \"Burning Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can cause a target affected by my hexblade's curse to take damage\",\r\n\t\t\"It immediately takes fire damage equal to my Charisma modifier (min 1)\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Caiphon's Beacon (prereq: the Great Old One patron)\", {\r\n\tname : \"Caiphon's Beacon\",\r\n\tdescription : desc([\r\n\t\t\"I gain proficiencies with the Deception and Stealth skills\",\r\n\t\t\"I have advantage on attack rolls against charmed creatures\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass); },\r\n\tskills : [\"Deception\", \"Stealth\"]\r\n});\r\nAddWarlockInvocation(\"Chilling Hex (prereq: the Hexblade patron)\", {\r\n\tname : \"Chilling Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can swirl frost around a target affected by my hexblade's curse\",\r\n\t\t\"All creatures within 5 ft of the target take cold damage equal to my Cha modifier (min 1)\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Chronicle of the Raven Queen (prereq: the Raven Queen patron, Pact of the Tome)\", {\r\n\tname : \"Chronicle of the Raven Queen\",\r\n\tdescription : desc([\r\n\t\t\"Within 1 minute of a creature's death, I can use my book of shadows to ask it 1 question\",\r\n\t\t\"To do this, I need to put the corpse's hand on the book and speak the question aloud\",\r\n\t\t\"Its spirit writes the answer, to the best of its knowledge, in blood in a language I choose\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tprereqeval : function(v) { return (/raven queen/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome'; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Claw of Acamar (prereq: the Great Old One patron, Pact of the Blade)\", {\r\n\tname : \"Claw of Acamar\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a black, lead flail with grasping tentacles for a head\",\r\n\t\t\"It has reach and can reduce a creature's speed to 0 on a hit until the end of my next turn\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 necrotic damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*\\bclaw\\b)(?=.*\\bacamar\\b).*$/i,\r\n\t\tname : \"Claw of Acamar\",\r\n\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, reach; On hit: Reduces speed to 0, Expend spell slot for +2d8 necrotic damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Cloak of Baalzebul (prereq: the Fiend patron)\", {\r\n\tname : \"Cloak of Baalzebul\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can conjure or dismiss a swarm of buzzing flies around me\",\r\n\t\t\"This gives me adv. on Cha (Intimidation) checks, but disadv. on all other Charisma checks\",\r\n\t\t\"Creatures starting their turn within 5 ft of me take poison damage equal to my Cha mod\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \" (start/end)\"]]\r\n});\r\nAddWarlockInvocation(\"Curse Bringer (prereq: the Hexblade patron, Pact of the Blade)\", {\r\n\tname : \"Curse Bringer\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a silver greatsword with black runes etched in the blade\",\r\n\t\t\"If I bring a target of my hexblade's curse to 0 HP with it, I can move the curse to another\",\r\n\t\t\"It can reduce a creature's speed to 0 on a hit until the end of my next turn\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 slashing damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /^(?=.*\\bcurse)(?=.*bringer\\b).*$/i,\r\n\t\tname : \"Curse Bringer\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, heavy, two-handed; On hit: Reduces speed to 0, Expend spell slot for +2d8 slashing damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Kiss of Mephistopheles (prereq: level 5 warlock, the Fiend patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Kiss of Mephistopheles\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action when my Eldritch Blast hits, I can cast Fireball using a warlock spell slot\",\r\n\t\t\"The origin of the Fireball is the creature that was hit with my Eldritch Blast attack\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && classes.known.warlock.level >= 5 && (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Frost Lance (prereq: the Archfey patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Frost Lance\",\r\n\tdescription : desc([\r\n\t\t\"When my Eldritch Blast hits a creature once or more, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gaze of Khirad (prereq: level 7 warlock, the Great Old One patron)\", {\r\n\tname : \"Gaze of Khirad\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can see through solid object out to 30 ft until the end of my current turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 7; },\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Grasp of Hadar (prereq: the Great Old One patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Grasp of Hadar\",\r\n\tdescription : desc(\"Once per turn when my Eldritch Blast hits a creature, I can move it 10 ft closer to me\"),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/great old one/).test(classes.known.warlock.subclass); },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target moved 10 ft to me';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can move it in a straight line 10 ft closer to me.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Green Lord's Gift (prereq: the Archfey patron)\", {\r\n\tname : \"Green Lord's Gift\",\r\n\tdescription : desc([\r\n\t\t\"When I regain HP, all dice for determining the HP I heal are treated as rolling maximum\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and isn't a magic weapon\r\n\t\t\t\tif (v.pactWeapon && !output.magic && !v.theWea.isMagicWeapon) {\r\n\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +1 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Mace of Dispater (prereq: the Fiend patron, Pact of the Blade)\", {\r\n\tname : \"Mace of Dispater\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create an iron mace forged in Dis, the 2nd layer of the Nine Hells\",\r\n\t\t\"I can knock a target prone with it on a hit, if the target's size is Huge or smaller\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 force damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*\\bmace\\b)(?=.*\\bdispater\\b).*$/i,\r\n\t\tname : \"Mace of Dispater\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon; On hit: knock Huge or smaller prone, Expend spell slot for +2d8 force damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Moon Bow (prereq: the Archfey patron, Pact of the Blade)\", {\r\n\tname : \"Moon Bow\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a longbow that creates arrows of white wood when drawn\",\r\n\t\t\"Its arrows last for 1 minute; I have advantage on attack rolls against lycanthropes with it\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 radiant damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longbow\",\r\n\t\tregExpSearch : /^(?=.*\\bmoon)(?=.*bow\\b).*$/i,\r\n\t\tname : \"Moon Bow\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, heavy, two-handed; Adv. vs. lycanthropes; On hit, expend spell slot for +2d8 radiant damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Path of the Seeker (prereq: the Seeker patron)\", {\r\n\tname : \"Path of the Seeker\",\r\n\tdescription : desc([\r\n\t\t\"I ignore difficult terrain; I have advantage on saving throws against being paralyzed\",\r\n\t\t\"I also have advantage on checks to escape a grapple, manacles, or rope bindings\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tprereqeval : function(v) { return (/\\bseeker\\b/).test(classes.known.warlock.subclass); },\r\n\tsavetxt : { adv_vs : [\"paralyzed\"] }\r\n});\r\nAddWarlockInvocation(\"Raven Queen's Blessing (prereq: the Raven Queen patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Raven Queen's Blessing\",\r\n\tdescription : desc([\r\n\t\t\"When I score a critical hit with Eldritch Blast, I can choose an ally I can see within 30 ft\",\r\n\t\t\"That ally can immediately expend one HD to regain HP, just like after a short rest\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/raven queen/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 5 warlock, the Hexblade patron)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport next to a target affected by my hexblade's curse\",\r\n\t\t\"To do so, I must see the target and the space I'm teleporting to, and be within 30 ft of it\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Sea Twins' Gift (prereq: the Archfey patron)\", {\r\n\tname : \"Sea Twins' Gift\",\r\n\tdescription : desc([\r\n\t\t\"I can breathe underwater and I have a swim speed equal to my walking speed\",\r\n\t\t\"Once per long rest, I can cast Water Breathing using a warlock spell slot (PHB 287)\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sea Twins' Gift\",\r\n\t\tspells : [\"water breathing\"],\r\n\t\tselection : [\"water breathing\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n});\r\nAddWarlockInvocation(\"Seeker's Speech (prereq: the Seeker patron)\", {\r\n\tname : \"Seeker's Speech\",\r\n\tdescription : desc([\r\n\t\t\"When I finish a long rest, I pick two languages that I know until I finish my next long rest\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\bseeker\\b/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Shroud of Ulban (prereq: level 18 warlock, the Great Old One patron)\", {\r\n\tname : \"Shroud of Ulban\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can turn myself invisible for 1 minute\",\r\n\t\t\"If I attack, deal damage, or force a creature to make a save, I become visible again\",\r\n\t\t\"However, I only become visible at the end of the current turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[warlock level 18+]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 18; },\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Superior Pact Weapon (prereq: level 9 warlock, Pact of the Blade)\", {\r\n\tname : \"Superior Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +2 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus in its name, is not a magic weapon, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tvar iPactWeaBonus = 2;\r\n\t\t\t\tif (v.pactWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && ((!v.pactMag && !output.magic) || (v.pactMag && v.pactMag < iPactWeaBonus))) {\r\n\t\t\t\t\tif (v.pactMag) output.magic -= v.pactMag;\r\n\t\t\t\t\tv.pactMag = iPactWeaBonus;\r\n\t\t\t\t\toutput.magic += v.pactMag;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +2 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Tomb of Levistus (prereq: the Fiend patron)\", {\r\n\tname : \"Tomb of Levistus\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when I take damage, I can entomb myself in ice until the end of my turn\",\r\n\t\t\"I get 10 temp. HP per warlock level, which can be used to absorb the triggering damage\",\r\n\t\t\"Until the ice is gone, I have vulnerability to fire damage, 0 speed, and am incapacitated\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Ultimate Pact Weapon (prereq: level 15 warlock, Pact of the Blade)\", {\r\n\tname : \"Ultimate Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +3 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 15 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus in its name, is not a magic weapon, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tvar iPactWeaBonus = 3;\r\n\t\t\t\tif (v.pactWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && ((!v.pactMag && !output.magic) || (v.pactMag && v.pactMag < iPactWeaBonus))) {\r\n\t\t\t\t\tif (v.pactMag) output.magic -= v.pactMag;\r\n\t\t\t\t\tv.pactMag = iPactWeaBonus;\r\n\t\t\t\t\toutput.magic += v.pactMag;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +3 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\n\n// ua_20170313_The-Mystic-Class.js\r\n// This file adds the content from the Unearthed Arcana: The Mystic Class article to MPMB's Character Record Sheet\r\n// WARNING: there are no published multiclassing rules for Mystic; the ones provided here are extrapolated from other classes\r\n\r\n// Define the source\r\nSourceList[\"UA:TMC\"] = {\r\n\tname : \"Unearthed Arcana: The Mystic Class\",\r\n\tabbreviation : \"UA:TMC\",\t\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UAMystic3.pdf\",\r\n\tdate : \"2017/03/13\"\r\n};\r\n\r\n// Add spell schools\r\nspellSchoolList[\"Avatar\"] = \"avatar\";\r\nspellSchoolList[\"Awake\"]  = \"awakened\";\r\nspellSchoolList[\"Immor\"]  = \"immortal\";\r\nspellSchoolList[\"Nomad\"]  = \"nomad\";\r\nspellSchoolList[\"Wu Jen\"] = \"wu jen\";\r\n\r\n// Adds a new class, the Mystic, with 6 subclasses\r\nClassList.mystic = {\r\n\tregExpSearch : /psion\\b|mystic/i,\r\n\tname : \"Mystic\",\r\n\tsource : [[\"UA:TMC\", 1]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Wis\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Insight, Medicine, Nature, Perception, and Religion\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false]\r\n\t},\r\n\tequipment : \"Mystic starting equipment:\\n \\u2022 A spear -or- a mace;\\n \\u2022 Leather mail -or- studded leather armor;\\n \\u2022 A light crossbow and 20 bolts -or- any simple weapon;\\n \\u2022 A scholar's pack -or- an explorer's pack.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Mystic Order\", []],\r\n\tsubclassGainedLevel : 1,\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tspellcastingFactor : \"psionic0\",\r\n\tspellcastingKnown : {\r\n\t\tcantrips : levels.map(function (n) { return n < 3 ? 1 : n < 10 ? 2 : n < 17 ? 3 : 4; }),\r\n\t\tspells : levels.map(function (n) { return n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : n < 12 ? 5 : n < 15 ? 6 : n < 18 ? 7 : 8; })\r\n\t},\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"mystic\",\r\n\t\tpsionic : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"psi points\" : {\r\n\t\t\tname : \"Psi Points\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I use psi points to fuel my psionic disciplines, up to my psi limit per instance\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 4 : n < 3 ? 6 : n < 4 ? 14 : n < 5 ? 17 :\r\n\t\t\t\tn < 6 ? 27 : n < 7 ? 32 : n < 8 ? 38 : n < 9 ? 44 : n < 10 ? 57 :\r\n\t\t\t\tn < 18 ? 64 : 71;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 3 ? 2 : n < 5 ? 3 : n < 7 ? 5 : n < 9 ? 6 : 7) + \" psi limit\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"psionics\" : {\r\n\t\t\tname : \"Psionics\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use psionic talents/disciplines that I know, using Intelligence as my psionic ability\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tvar talent = n < 3 ? \"1 talent\" : (n < 10 ? 2 : n < 17 ? 3 : 4) + \" talents\";\r\n\t\t\t\tvar discpl = n < 3 ? \"1 discipline\" : (n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : n < 12 ? 5 : n < 15 ? 6 : n < 18 ? 7 : 8) + \" disciplines\";\r\n\t\t\t\treturn talent + \" \\u0026 \" + discpl + \" known\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"psychic focus\" : {\r\n\t\t\tname : \"Psychic Focus\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can choose one of my psionic disciplines and gain its focus benefit\",\r\n\t\t\t\t\"I can only focus on one at a time; It stays until I focus on another, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Mystic Order\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose a Mystic Order that shapes the nature of your rage and put it in the \"Class\" field')\r\n\t\t},\r\n\t\t\"mystical recovery\" : {\r\n\t\t\tname : \"Mystical Recovery\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action after using psi points on a discipline, I can regain HP per point spent\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"telepathy\" : {\r\n\t\t\tname : \"Telepathy\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can telepathically speak to creatures I can see within 120 ft, if they know a language\" // 'to' not 'with', so one-way\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"strength of mind\" : {\r\n\t\t\tname : \"Strength of Mind\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After a short rest, I can change my Wisdom save proficiency to another ability score\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"potent psionics\" : {\r\n\t\t\tname : \"Potent Psionics\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\",\r\n\t\t\t\t\"In addition, I add my Intelligence modifier to my psionic talent damage rolls\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.mystic && classes.known.mystic.level > 7 && !v.isSpell) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.mystic.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\\n \\u2022 My psionic talents get my Intelligence modifier added to their damage roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (classes.known.mystic && classes.known.mystic.level > 7 && v.thisWeapon[3] && v.thisWeapon[4].indexOf('mystic') !== -1 && SpellsList[v.thisWeapon[3]].level === 0) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Int Mod');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic && spellObj.level == 0) {\r\n\t\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+|Acid, Cold, Fire, Lightning, or Thunder\", \"Int\", true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My psionic talents get my Intelligence modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"consumptive power\" : {\r\n\t\t\tname : \"Consumptive Power\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per long rest, I can use my HP to fuel a psionic discipline instead of psi points\",\r\n\t\t\t\t\"I lose the HP; My HP max is reduced with the same until I finish my next long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"psionic mastery\" : {\r\n\t\t\tname : \"Psionic Mastery\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain a pool of special psi points that last until I finish a long rest\",\r\n\t\t\t\t\"I can use these, without psi limit, for disciplines that require an action or bonus action\",\r\n\t\t\t\t\"I can use either these or psi points from my normal pool for a discipline, but not both\",\r\n\t\t\t\t\"I can concentrate on all disciplines that use these special points at the same time\",\r\n\t\t\t\t\"I lose concentration if I cast a discipline requiring concentration from my normal pool\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\tif (n < 11) return \"\";\r\n\t\t\t\treturn n < 13 ? 1 : n < 15 ? 2 : n < 17 ? 3 : 4;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 11) return \"\";\r\n\t\t\t\treturn \"pool of \" + (n < 15 ? 9 : 11) + \" psi points\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"psionic body\" : {\r\n\t\t\tname : \"Psionic Body\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer age and I have resistance to bludgeoning, piercing, and slashing damage\",\r\n\t\t\t\t\"I'm immune to disease, poison damage, and the poisoned condition\",\r\n\t\t\t\t\"If I die, I have a 55% chance of discorporating instead and returning 1d3 days later\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"poison\", \"disease\"] },\r\n\t\t\tdmgres : [\"Bludgeoning\", \"Piercing\", \"Slashing\"]\r\n\t\t}\r\n\t}\r\n};\r\n// Order of the Avatar subclass for the Mystic\r\nAddSubClass(\"mystic\", \"avatar-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*avatar).*$/i,\r\n\tsubname : \"Order of the Avatar\",\r\n\tsource : [[\"UA:TMC\", 5]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, chosen from the avatar disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Avatar\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Armor Training\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and shields.\"),\r\n\t\t\tarmorProfs : [false, true, false, true]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Avatar of Battle\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Allies within 30 ft of me gain +2 on initiative rolls while I'm not incapacitated\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Avatar of Healing\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Allies within 30 ft of me that get healed through a psionic discipline, get extra healing\",\r\n\t\t\t\t\"They add my Intelligence modifier to the HP regained, as long as I'm not incapacitated\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!What(\"Int Mod\") || What(\"Int Mod\") <= 0) return;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"pr1-mend wounds\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"healed for \", \"healed for \" + What(\"Int Mod\") + \"+\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"pr2-restore health\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 HP\", (1 + What(\"Int Mod\")) + \" HP\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my Intelligence modifier to the hit points I restore using my psionic disciplines.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Avatar of Speed\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Allies within 30 ft of me can use Dash as a bonus action while I'm not incapacitated\")\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Awakened subclass for the Mystic\r\nAddSubClass(\"mystic\", \"awakened-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*awakened).*$/i,\r\n\tsubname : \"Order of the Awakened\",\r\n\tsource : [[\"UA:TMC\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : \" [+2 awakened disciplines]\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Awake\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Awakened Talent\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with two skills of my choice, taken from the following list:\",\r\n\t\t\t\t\"Animal Handling, Deception, Insight, Intimidation, Investigation, Perception, Persuasion\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from: Animal Handling, Deception, Insight, Intimidation, Investigation, Perception, and Persuasion\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Investigation\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By concentrating on an object I'm holding for 10 minutes, I learn the object's history\",\r\n\t\t\t\t\"I see/hear its surroundings the previous hour and know who hold it in the last 24 hours\",\r\n\t\t\t\t\"Also, for the next 24 hours, I can use an action to locate it and see its surroundings\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Surge\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can end my psychic focus to impose disadv. on a save vs. a discipline or talent I use\",\r\n\t\t\t\t\"Once I do this, I can't regain psychic focus in any discipline until I can use this again\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spectral Form\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become ghostly and move through objects and creatures for 10 min\",\r\n\t\t\t\t\"I also have resistance to all damage and move at half speed; I can end it as an action\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Immortal subclass for the Mystic\r\nAddSubClass(\"mystic\", \"immortal-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*immortal).*$/i,\r\n\tsubname : \"Order of the Immortal\",\r\n\tsource : [[\"UA:TMC\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, taken from the immortal disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Immor\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Immortal Durability\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My hit point maximum increases by an amount equal to my mystic level\",\r\n\t\t\t\t\"If not wearing armor or wielding a shield, my AC is 10 + my Dex mod + my Con mod\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.mystic) {\r\n\t\t\t\t\t\treturn [classes.known.mystic.level, \"Immortal Durability (mystic level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*immortal)(?=.*durability).*$/i,\r\n\t\t\t\tname : \"Immortal Durability\",\r\n\t\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\t\tac : \"10+Con\",\r\n\t\t\t\taffectsWildShape : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Resilience\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of each turn, I gain my Intelligence modifier in temporary HP (min 0)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Surge of Health\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can halve that damage, but end my psychic focus\",\r\n\t\t\t\t\"Once I do this, I can't regain psychic focus in any discipline until I can use this again\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Immortal Will\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I end my turn at 0 HP, I can use 5 psi points to regain mystic level + Con mod in HP\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 14) return \"\";\r\n\t\t\t\treturn \"HP: \" + n + \" + Constitution modifier\";\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Nomad subclass for the Mystic\r\nAddSubClass(\"mystic\", \"nomad-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*nomad).*$/i,\r\n\tsubname : \"Order of the Nomad\",\r\n\tsource : [[\"UA:TMC\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, taken from the nomad disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Nomad\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Breadth of Knowledge\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After I finish a long rest, I gain two proficiencies in chosen language, tool, or skill\",\r\n\t\t\t\t\"These proficiencies last until I finish my next long rest\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Memory of One Thousand Steps\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when hit by an attack, I can teleport away, causing the attack to miss\",\r\n\t\t\t\t\"I can teleport to any empty space that I had occupied since the start of my last turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Superior Teleportation\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a psionic discipline to teleport, I can increase its distance by up to 10 ft\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"ns1-step of a dozen paces\" :\r\n\t\t\t\t\t\t\t\tvar addDist = What(\"Unit System\") === \"metric\" ? 3 : 10;\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+ (ft|m))/i, addDist + \"+$1\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"ns3-defensive step\" :\r\n\t\t\t\t\t\t\tcase \"ns4-there and back again\" :\r\n\t\t\t\t\t\t\t\tvar addDist = What(\"Unit System\") === \"metric\" ? 3 : 10;\r\n\t\t\t\t\t\t\t\tvar theDist = Number(spellObj.description.replace(/.*(\\d+) (ft|m).*/i, \"$1\"));\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+) (ft|m)/i, (theDist + addDist) + \" $2\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My psionic disciplines that teleport have 10 ft added to the distance of their teleportation.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Effortless Journey\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once during my turn, I can teleport instead of moving, up to my movement speed \",\r\n\t\t\t\t\"I subtracting the distance teleported from my remaining speed\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Soul Knife subclass for the Mystic\r\nAddSubClass(\"mystic\", \"soul knife-ua\", {\r\n\tregExpSearch : /^(?=.*soul\\b)(?=.*\\bknife).*$/i,\r\n\tsubname : \"Order of the Soul Knife\",\r\n\tsource : [[\"UA:TMC\", 7]],\r\n\tfullname : \"Soul Knife\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Martial Training\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and martial weapons\"),\r\n\t\t\tarmor : [false, true, false, false],\r\n\t\t\tweapons : [false, true]\t\t\t\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Soul Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can create or dismiss my soul knives on both my fists\",\r\n\t\t\t\t\"As a bonus action, I can parry with these to get +2 AC until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create/dismiss)\"], ['bonus action', ' Parry']],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bsoul)(?=.*(knives|knife|weapon)\\b).*$/i,\r\n\t\t\t\tname : \"Soul Knife\",\r\n\t\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Martial\",\r\n\t\t\t\tdamage : [1, 8, \"psychic\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Finesse, light\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hone the Blade\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can spend psi points to give my soul knives a bonus to attack and damage for 10 min\",\r\n\t\t\t\t\"2 psi points: +1; 5 psi points: +2; 7 psi points: +4\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Consumptive Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I slay an enemy with a soul knife attack, I immediately regain 2 psi points\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Phantom Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make one attack with my soul knife, treating the target's AC as 10\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Wu Jen subclass for the Mystic\r\nAddSubClass(\"mystic\", \"wu jen-ua\", {\r\n\tregExpSearch : /^(?=.*\\bwu\\b)(?=.*\\bjen\\b).*$/i,\r\n\tsubname : \"Order of the Wu Jen\",\r\n\tsource : [[\"UA:TMC\", 8]],\r\n\tfullname : \"Wu Jen\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : \" [+2 wu jen disciplines]\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Wu Jen\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hermit's Study\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with two skills of my choice, taken from the following list:\",\r\n\t\t\t\t\"Animal Handling|Arcana|History|Insight|Medicine|Nature|Perception|Religion|Survival\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from: Animal Handling, Arcana, History, Insight, Medicine, Nature, Perception, Religion, and Survival\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Elemental Attunement\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If a target's resistance reduces damage of one of my psionic disciplines, I can bypass it\",\r\n\t\t\t\t\"With 1 extra psi point for the discipline (psi limit permitting), the resistance is ignored\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Arcane Dabbler\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I know 3 wizard spells (1-3 level); When I gain a mystic level, I can swap one of these\",\r\n\t\t\t\t\"As a bonus action, I can use psi points to make spell slots; Last until my next long rest\",\r\n\t\t\t\t\"2 PP: 1st-level; 3 PP: 2nd-level; 5 PP: 3rd-level; 6 PP: 4th-level; 7 PP: 5th-level\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Dabbler\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [1, 3],\r\n\t\t\t\ttimes : 3\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Elemental Mastery\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage to which I have resistance, I can ignore that damage\",\r\n\t\t\t\t\"I gain immunity to that damage type until the start of my next turn\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// The Psionic Talents for the Mystic (with contributions by rabidknave)\r\nPsionicsList[\"beacon-ua-psy\"] = {\r\n\tname : \"Beacon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h (D)\",\r\n\tdescription : \"My body sheds bright light 20-ft rad and dim light 20-ft, in chosen color; dismiss as a bonus action\",\r\n\tdescriptionFull : \"As a bonus action, you cause bright light to radiate from your body in a 20-foot radius and dim light for an additional 20 feet. The light can be colored as you like. The light lasts for 1 hour, and you can extinguish it earlier as a bonus action.\"\r\n};\r\nPsionicsList[\"blade meld-ua-psy\"] = {\r\n\tname : \"Blade Meld\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"One-handed melee weapon I'm holding merges with hand; it can't be removed for the duration\",\r\n\tdescriptionFull : \"As a bonus action, a one-handed melee weapon you hold becomes one with your hand. For the next minute, you can't let go of the weapon nor can it be forced from your grasp.\"\r\n};\r\nPsionicsList[\"blind spot-ua-psy\"] = {\r\n\tname : \"Blind Spot\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 creature save or treats me as invisible until the end of my next turn\",\r\n\tdescriptionFull : \"As an action, you erase your image from the mind of one creature you can see within 120 feet of you; the target must succeed on a Wisdom saving throw, or you are invisible to it until the end of your next turn.\"\r\n};\r\nPsionicsList[\"delusion-ua-psy\"] = {\r\n\tname : \"Delusion\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"1 crea either hears a sound (whisper-scream), or sees up to 5-ft cube object that disappears on touch\",\r\n\tdescriptionFull : \"As an action, you plant a false belief in the mind of one creature that you can see within 60 feet of you. You can create a sound or an image. Only the target of this talent perceives the sound or image you create.\" + \"\\n   \" + \"If you create a sound, its volume can range from a whisper to a scream. It can be your voice, someone else's voice, a creature's roar, a musical instrument, or any other sound you pick. It lasts for 1 minute.\" + \"\\n   \" + \"If you create an object, it must fit within a 5-foot cube and can't move or be reflective. The image can't create any effect that influences a sense other than sight. The image lasts for 1 minute, and it disappears if the creature touches it.\"\r\n};\r\nPsionicsList[\"energy beam-ua-psy\"] = {\r\n\tname : \"Energy Beam\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or 1d8 Acid, Cold, Fire, Lightning, or Thunder dmg; +1d8 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d8 Acid, Cold, Fire, Lightning, or Thunder dmg\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 90 feet of you. The target must succeed on a Dexterity saving throw or take 1d8 acid, cold, fire, lightning, or thunder damage (your choice).\" + \"\\n   \" + \"The talent's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8)\"\r\n};\r\nPsionicsList[\"light step-ua-psy\"] = {\r\n\tname : \"Light Step\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My walking speed increases by 10 ft; standing up costs 0 movement, once\",\r\n\tdescriptionFull : \"As a bonus action, you alter your density and weight to improve your mobility. For the rest of your turn, your walking speed increases by 10 feet, and the first time you stand up this turn, you do so without expending any of your movement if your speed is greater than 0.\"\r\n};\r\nPsionicsList[\"mind meld-ua-psy\"] = {\r\n\tname : \"Mind Meld\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"120 ft\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I communicate telepathically with 1 willing crea (int > 1) and gain access to 1 memory of theirs\",\r\n\tdescriptionFull : \"As a bonus action, you can communicate telepathically with one willing creature you can see within 120 feet of you. The target must have an Intelligence of at least 2, otherwise this talent fails and the action is wasted.\" + \"\\n   \" + \"This communication can occur until the end of the current turn. You don't need to share a language with the target for it to understand your telepathic utterances, and it understands you even if it lacks a language. You also gain access to one memory of the target's choice, gaining perfect recall of one thing it saw or did.\"\r\n};\r\nPsionicsList[\"mind slam-ua-psy\"] = {\r\n\tname : \"Mind Slam\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Force dmg, and knocked prone if Large or smaller; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Force dmg, and knocked prone if Large or smaller\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on a Constitution saving throw or take 1d6 force damage. If it takes any of this damage and is Large or smaller, it is knocked prone.\" + \"\\n   \" + \"The talent's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6)\"\r\n};\r\nPsionicsList[\"mind thrust-ua-psy\"] = {\r\n\tname : \"Mind Thrust\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10 Psychic dmg; +1d10 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d10 Psychic dmg\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 120 feet of you. The target must succeed on an Intelligence saving throw or take 1d10 psychic damage.\" + \"\\n   \" + \"The talent's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nPsionicsList[\"mystic charm-ua-psy\"] = {\r\n\tname : \"Mystic Charm\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 humanoid save or charmed until end of my next turn\",\r\n\tdescriptionFull : \"As an action, you beguile one humanoid you can see within 120 feet of you. The target must succeed on a Charisma saving throw or be charmed by you until the end of your next turn.\"\r\n};\r\nPsionicsList[\"mystic hand-ua-psy\"] = {\r\n\tname : \"Mystic Hand\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"Move 1 unattended object (up to 10 lbs) up to 30 ft, or manipulate an object\",\r\n\tdescriptionFull : \"You can use your action to manipulate or move one object within 30 feet of you. The object can't weigh more than 10 pounds, and you can't affect an object being worn or carried by another creature. If the object is loose, you can move it up to 30 feet in any direction.\" + \"\\n   \" + \"This talent allows you to open an unlocked door, pour out a beer stein, and so on.\" + \"\\n   \" + \"The object falls to the ground at the end of your turn if you leave it suspended in midair.\"\r\n};\r\nPsionicsList[\"psychic hammer-ua-psy\"] = {\r\n\tname : \"Psychic Hammer\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1d6 Force dmg and moved up to 10 ft in chosen direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Force dmg and moved up to 10 ft in chosen direction\",\r\n\tdescriptionFull : \"As an action, you try to grasp one creature you can see within 120 feet of you, with a hand crafted from telekinetic energy. The target must succeed on a Strength saving throw or take 1d6 force damage. If it takes any of this damage and is Large or smaller, you can move it up to 10 feet in a straight line in a direction of your choice. You can't lift the target off the ground unless it is already airborne or underwater.\" + \"\\n   \" + \"The talent's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\n\r\n// Psionic Disciplines for the Mystic\r\n//the adaptive body discipline\r\nPsionicsList[\"adaptive body-ua-psy\"] = {\r\n\tname : \"Adaptive Body\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I don't need to eat, breathe, or sleep; I can long rest with 8 hours of light activity, without sleep\",\r\n\tdescriptionFull : \"You can alter your body to match your surroundings, allowing you to withstand punishing environments. With greater psi energy, you can extend this protection to others.\" + PsychicFocus + \"While focused on this discipline, you don't need to eat, breathe, or sleep. To gain the benefits of a long rest, you can spend 8 hours engaged in light activity, rather than sleeping during any of it.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ab1-environmental adaptation\", \"ab2-adaptive shield\", \"ab3-energy adaptation\", \"ab4-energy immunity\"]\r\n};\r\nPsionicsList[\"ab1-environmental adaptation\"] = {\r\n\tname : \"Environmental Adaptation\",\r\n\tnameShort : \"Environmental Adapt.\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1 creature ignores the effects of extreme heat or cold (but not Fire or Cold damage)\",\r\n\tdescriptionFull : \"As an action, you or a creature you touch ignores the effects of extreme heat or cold (but not cold or fire damage) for the next hour.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ab2-adaptive shield\"] = {\r\n\tname : \"Adaptive Shield\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take acid, cold, fire, lightning, or thunder damage\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"If taking Acid, Cold, Fire, Lightning, or Thunder damage, gain resistance to it until end of next turn\",\r\n\tdescriptionFull : \"When you take acid, cold, fire, lightning, or thunder damage, you can use your reaction to gain resistance to damage of that type -including the triggering damage- until the end of your next turn.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ab3-energy adaptation\"] = {\r\n\tname : \"Energy Adaptation\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 creature gains resistance to either Acid, Cold, Fire, Lightning, or Thunder damage\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and give it resistance to acid, cold, fire, lightning, or thunder damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ab4-energy immunity\"] = {\r\n\tname : \"Energy Immunity\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 creature gains immunity to either Acid, Cold, Fire, Lightning, or Thunder damage\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and give it immunity to acid, cold, fire, lightning, or thunder damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the aura sight discipline (contributed by Justin W.)\r\nPsionicsList[\"aura sight-ua-psy\"] = {\r\n\tname : \"Aura Sight\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Wisdom (Insight) checks\",\r\n\tdescriptionFull : \"You refocus your sight to see the energy that surrounds all creatures. You perceive auras, energy signatures that can reveal key elements of a creature's nature.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Wisdom (Insight) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"as1-asses foe\", \"as2-read moods\", \"as3-view aura\", \"as4-perceive the unseen\"]\r\n};\r\nPsionicsList[\"as1-asses foe\"] = {\r\n\tname : \"Asses Foe\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn one creature's current HP total and all its immunities, resistances, and vulnerabilities\",\r\n\tdescriptionFull : \"As a bonus action, you analyze the aura of one creature you see. You learn its current hit point total and all its immunities, resistances, and vulnerabilities.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"as2-read moods\"] = {\r\n\tname : \"Read Moods\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn an one-word summary of the emotional state of up to 6 crea\",\r\n\tdescriptionFull : \"As a bonus action, you learn a one-word summary of the emotional state of up to six creatures you can see, such as happy, confused, afraid, or violent.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"as3-view aura\"] = {\r\n\tname : \"View Aura\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Monitor 1 crea: current HP, if magic effects it, basic emotional state; adv. on Insight/Cha checks vs. it\",\r\n\tdescriptionFull : \"As an action, you study one creature's aura. Until your concentration ends, while you can see the target, you learn if it's under the effect of any magical or psionic effects, its current hit point total, and its basic emotional state. While this effect lasts, you have advantage on Wisdom (Insight) and Charisma checks you make against it.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"as4-perceive the unseen\"] = {\r\n\tname : \"Perceive the Unseen\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"See all creatures, including hidden and invisible ones, regardless of lighting conditions\",\r\n\tdescriptionFull : \"As a bonus action, you gain the ability to see auras even of invisible or hidden creatures. Until your concentration ends, you can see all creatures, including hidden and invisible ones, regardless of lighting conditions.\",\r\n\tfirstCol : 5\r\n};\r\n//the bestial form discipline (contributed by rabidknave)\r\nPsionicsList[\"bestial form-ua-psy\"] = {\r\n\tname : \"Bestial Form\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Wisdom (Animal Handling) checks\",\r\n\tdescriptionFull : \"You transform your body, gaining traits of different beasts.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Wisdom (Animal Handling) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"bf1-bestial claws\", \"bf2-bestial transformation\", \"bf3-bt - amphibious\", \"bf4-bt - climbing\", \"bf5-bt - flight\", \"bf6-bt - keen senses\", \"bf7-bt - perfect senses\", \"bf8-bt - swimming\", \"bf9-bt - tough hide\"]\r\n};\r\nPsionicsList[\"bf1-bestial claws\"] = {\r\n\tname : \"Bestial Claws\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee weapon attack with manifested claw, dealing 1d10/PP Slashing dmg\",\r\n\tdescriptionFull : \"You manifest long claws for an instant and make a melee weapon attack against one creature within 5 feet of you. On a hit, this attack deals 1d10 slashing damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf2-bestial transformation\"] = {\r\n\tname : \"Bestial Transformation\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"Alter physique to gain one or more of following effects; sum PP cost for a single use; end with bns a\",\r\n\tdescriptionFull : \"As a bonus action, you alter your physical form to gain different characteristics. When you use this ability, you can choose one or more of the following effects. Each effect has its own psi point cost. Add them together to determine the total cost. This transformation lasts for 1 hour, until you die, or until you end it as a bonus action.\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"bf3-bt - amphibious\"] = {\r\n\tname : \" - Amphibious\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I'm able to breathe air and water by gaining gills\",\r\n\tdescriptionFull : \"You gain gills; you can breathe air and water\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf4-bt - climbing\"] = {\r\n\tname : \" - Climbing\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain climbing speed equal to my walking speed by growing tiny hooked claws\",\r\n\tdescriptionFull : \"You grow tiny hooked claws that give you gain a climbing speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf5-bt - flight\"] = {\r\n\tname : \" - Flight\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain flying speed equal to my walking speed by sprouting wings\",\r\n\tdescriptionFull : \"Wings sprout from your back. You gain a flying speed equal to your walking speed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"bf6-bt - keen senses\"] = {\r\n\tname : \" - Keen Senses\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain advantage on Wisdom (Perception) checks through more sensitive eyes and ears\",\r\n\tdescriptionFull : \"Your eyes and ears become more sensitive. You gain advantage on Wisdom (Perception) checks.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf7-bt - perfect senses\"] = {\r\n\tname : \" - Perfect Senses\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I see invisible creatures/objects within 10 ft, even when blinded, through smell\",\r\n\tdescriptionFull : \"You gain a keen sense of smell and an instinct to detect prey. You can see invisible creatures and objects within 10 feet of you, even if you are blinded.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"bf8-bt - swimming\"] = {\r\n\tname : \" - Swimming\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain swimming speed equal to my walking speed by growing fins and webbed feet/hands\",\r\n\tdescriptionFull : \"You gain fins and webbing between your fingers and toes; you gain a swimming speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf9-bt - tough hide\"] = {\r\n\tname : \" - Tough Hide\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain +2 bonus to AC through thicker skin\",\r\n\tdescriptionFull : \"Your skin becomes as tough as leather; you gain a +2 bonus to AC.\",\r\n\tfirstCol : 2\r\n};\r\n//the brute force discipline (contributed by rabidknave)\r\nPsionicsList[\"brute force-ua-psy\"] = {\r\n\tname : \"Brute Force\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Strength (Athletics) checks\",\r\n\tdescriptionFull : \"You augment your natural strength with psionic energy, granting you the ability to achieve incredible feats of might.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Strength (Athletics) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"bf1-brute strike\", \"bf2-knock back\", \"bf3-mighty leap\", \"bf4-feat of strength\"]\r\n};\r\nPsionicsList[\"bf1-brute strike\"] = {\r\n\tname : \"Brute Strike\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My next melee attack during this turn deals +1d6/PP damage, of the same type as the melee attack\",\r\n\tdescriptionFull : \"As a bonus action, you gain a bonus to your next damage roll against a target you hit with a melee attack during the current turn. The bonus equals +1d6 per psi point spent, and the bonus damage is the same type as the attack. If the attack has more than one damage type, you choose which one to use for the bonus damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf2-knock back\"] = {\r\n\tname : \"Knock Back\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you hit a target with a melee attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Use after melee atk hit; crea hit save or move 10 ft/PP away; if it then hits obj, 1d6/PP Bludg. dmg\", //added the damage\r\n\tdescriptionFull : \"When you hit a target with a melee attack, you can activate this ability as a reaction. The target must succeed on a Strength saving throw or be knocked 10 feet away from you per psi point spent. The target moves in a straight line. If it hits an object, this movement immediately ends and the target takes 1d6 bludgeoning damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf3-mighty leap\"] = {\r\n\tname : \"Mighty Leap\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"Move\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"As part of my movement, jump 20 ft/PP in any direction\",\r\n\tdescriptionFull : \"As part of your movement, you jump in any direction up to 20 feet per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf4-feat of strength\"] = {\r\n\tname : \"Feat of Strength\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain +5 bonus to Strength checks until the end of next turn\",\r\n\tdescriptionFull : \"As a bonus action, you gain a +5 bonus to Strength checks until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\n//the celerity discipline (contributed by rabidknave)\r\nPsionicsList[\"celerity-ua-psy\"] = {\r\n\tname : \"Celerity\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My walking speed increases by 10 ft\",\r\n\tdescriptionFull : \"You channel psionic power into your body, honing your reflexes and agility to an incredible degree. The world seems to slow down while you continue to move as normal.\" + PsychicFocus + \"While focused on this discipline, your walking speed increases by 10 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"c1-rapid step\", \"c2-agile defense\", \"c3-blur of motion\", \"c4-surge of speed\", \"c5-surge of action\"]\r\n};\r\nPsionicsList[\"c1-rapid step\"] = {\r\n\tname : \"Rapid Step\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My walking, swim, and climb speeds increases by 10 ft/PP; doesn't grant new movement modes\",\r\n\tdescriptionFull : \"As a bonus action, you increase your walking speed by 10 feet per psi point spent until the end of the current turn. If you have a climbing or swimming speed, this increase applies to that speed as well.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"c2-agile defense\"] = {\r\n\tname : \"Agile Defense\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I can take the Dodge action now, as part of using this power\",\r\n\tdescriptionFull : \"As a bonus action, you take the Dodge action.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c3-blur of motion\"] = {\r\n\tname : \"Blur of Motion\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I'm invisible while moving during the current turn\",\r\n\tdescriptionFull : \"As an action, you cause yourself to be invisible during any of your movement during the current turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c4-surge of speed\"] = {\r\n\tname : \"Surge of Speed\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I don't provoke opportunity attacks and gain a climbing speed equal to my walking speed\",\r\n\tdescriptionFull : \"As a bonus action, you gain two benefits until the end of the current turn: you don't provoke opportunity attacks, and you have a climbing speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c5-surge of action\"] = {\r\n\tname : \"Surge of Action\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I can take either the Dash action or make one weapon attack now, as part of using this power\",\r\n\tdescriptionFull : \"As a bonus action, you can Dash or make one weapon attack.\",\r\n\tfirstCol : 5\r\n};\r\n//the corrosive metabolism discipline (contributed by rabidknave)\r\nPsionicsList[\"corrosive metabolism-ua-psy\"] = {\r\n\tname : \"Corrosive Metabolism\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Acid and Poison damage\",\r\n\tdescriptionFull : \"Your control over your body allows you to deliver acid or poison attacks.\" + PsychicFocus + \"While focused on this discipline, you have resistance to acid and poison damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cm1-corrosive touch\", \"cm2-venom strike\", \"cm3-acid spray\", \"cm4-breath of the black dragon\", \"cm5-breath of the green dragon\"]\r\n};\r\nPsionicsList[\"cm1-corrosive touch\"] = {\r\n\tname : \"Corrosive Touch\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\", //use \"Touch\" instead of \"5 ft\" when its about reach\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 1d10/PP Acid damage; save halves\", // use \"; save halves\" for this kind of situations\r\n\tdescriptionFull : \"As an action, you deliver a touch of acid to one creature within your reach. The target must make a Dexterity saving throw, taking 1d10 acid damage per psi point spent on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cm2-venom strike\"] = {\r\n\tname : \"Venom Strike\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea 1d6/PP Poison damage; save halves; if save failed, poisoned until end of my next turn\",\r\n\tdescriptionFull : \"As an action, you create a poison spray that targets one creature you can see within 30 feet of you. The target must make a Constitution saving throw. On a failed save, it takes 1d6 poison damage per psi point spent and is poisoned until the end of your next turn. On a successful save, the target takes half as much damage and isn't poisoned.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cm3-acid spray\"] = {\r\n\tname : \"Acid Spray\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take piercing or slashing damage\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use after I take Piercing or Slashing damage; all creatures in range take 2d6 Acid damage\",\r\n\tdescriptionFull : \"As a reaction when you take piercing or slashing damage, you cause acid to spray from your wound; each creature within 5 feet of you takes 2d6 acid damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cm4-breath of the black dragon\"] = {\r\n\tname : \"Breath of the Black Dragon\",\r\n\tnameShort : \"Breath o/t Black Dragon\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"60-ft long 5-ft wide line all creatures 6d6(+1d6/extra PP) Acid dmg; save halves\",\r\n\tdescriptionFull : \"You exhale a wave of acid in a 60-foot line that is 5 feet wide. Each creature in the line must make a Constitution saving throw, taking 6d6 acid damage on a failed save, or half as much on a successful one. You can increase the damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"cm5-breath of the green dragon\"] = {\r\n\tname : \"Breath of the Green Dragon\",\r\n\tnameShort : \"Breath o/t Green Dragon\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"90-ft cone\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"All creatures 10d6 poison damage; save halves\",\r\n\tdescriptionFull : \"You exhale a cloud of poison in a 90-foot cone. Each creature in the line must make a Constitution saving throw, taking 10d6 poison damage on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : 7\r\n};\r\n//the crown of despair discipline (contributed by rabidknave)\r\nPsionicsList[\"crown of despair-ua-psy\"] = {\r\n\tname : \"Crown of Despair\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Intimidation) checks\",\r\n\tdescriptionFull : \"You have learned to harvest seeds of despair in a creature's psyche, wracking it with self-doubt and inaction.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Intimidation) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cd1-crowned in sorrow\", \"cd2-call to inaction\", \"cd3-visions of despair\", \"cd4-dolorous mind\"]\r\n};\r\nPsionicsList[\"cd1-crowned in sorrow\"] = {\r\n\tname : \"Crowned in Sorrow\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn start\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea 1d8/PP Psychic dmg and can't take reactions; save halves damage and normal reactions\",\r\n\tdescriptionFull : \"As an action, one creature you can see within 60 feet of you must make a Charisma saving throw. On a failed save, it takes 1d8 psychic damage per psi point spent, and it can't take reactions until the start of its next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cd2-call to inaction\"] = {\r\n\tname : \"Call to Inaction\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"After 1 min conversation, 1 crea save or incapacitated; ends if it or its ally is attacked (charm effect)\",\r\n\tdescriptionFull : \"If you spend 1 minute conversing with a creature, you can attempt to seed it with overwhelming ennui. At the end of the minute, you can use an action to force the creature to make a Wisdom saving throw. The save automatically succeeds if the target is immune to being charmed. On a failed save, it sits and is incapacitated until your concentration ends. This effect immediately ends if the target or any ally it can see is attacked or takes damage. On a successful save, the creature is unaffected and has no inkling of your attempt to bend its will.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cd3-visions of despair\"] = {\r\n\tname : \"Visions of Despair\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea 3d6(+1d6/extra PP) Psychic dmg and speed reduced to 0; save halves and no speed reduction\",\r\n\tdescriptionFull : \"As an action, you force one creature you can see within 60 feet of you to make a Charisma saving throw. On a failed save, it takes 3d6 psychic damage, and its speed is reduced to 0 until the end of its next turn. On a successful save, it takes half as much damage. You can increase the damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"cd4-dolorous mind\"] = {\r\n\tname : \"Dolorous Mind\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or incapacitated and speed 0; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you choose one creature you can see within 60 feet of you. It must succeed on a Charisma saving throw, or it is incapacitated and has a speed of 0 until your concentration ends. It can repeat this saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 5\r\n};\r\n//the crown of disgust discipline\r\nPsionicsList[\"crown of disgust-ua-psy\"] = {\r\n\tname : \"Crown of Disgust\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"5-ft rad around me is difficult terrain for creatures that aren't immune to being frightened\",\r\n\tdescriptionFull : \"You cause a creature to be flooded with emotions of disgust.\" + PsychicFocus + \"While you are focused on this discipline, the area in a 5-foot radius around you is difficult terrain for any enemy that isn't immune to being frightened.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cd1-eye of horror\", \"cd2-wall of repulsion\", \"cd3-visions of disgust\", \"cd4-world of horror\"]\r\n};\r\nPsionicsList[\"cd1-eye of horror\"] = {\r\n\tname : \"Eye of Horror\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or 1d6/PP Psychic damage and can't move closer; save halves and no movement restriction\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Charisma saving throw. On a failed save, it takes 1d6 psychic damage per psi point spent and can't move closer to you until the end of its next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cd2-wall of repulsion\"] = {\r\n\tname : \"Wall of Repulsion\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Up to 30\\xD71\\xD710 ft (l\\xD7w\\xD7h) invisible wall of energy; save to move through it, even for unwilling move\",\r\n\tdescription : \"Up to 9\\xD70,3\\xD73 m (l\\xD7w\\xD7h) invisible wall of energy; save to move through it, even for unwilling move\",\r\n\tdescriptionFull : \"As an action, you create an invisible, insubstantial wall of energy within 60 feet of you that is up to 30 feet long, 10 feet high, and 1 foot thick. The wall lasts until your concentration ends. Any creature attempting to move through it must make a Wisdom saving throw. On a failed save, a creature can't move through the wall until the start of its next turn. On a successful save, the creature can pass through it. A creature must make this save whenever it attempts to pass through the wall, whether willingly or unwillingly.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"cd3-visions of disgust\"] = {\r\n\tname : \"Visions of Disgust\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 5d6 Psychic dmg (half on save) & 1d6 Psychic dmg per crea within 5 ft at its turn end\",\r\n\tdescriptionFull : \"You cause a creature to regard all other beings as horrid, alien entities. As an action, choose one creature you can see within 60 feet of you. The target must make a Wisdom saving throw. On a failed save, it takes 5d6 psychic damage, and until your concentration ends, it takes 1d6 psychic damage per creature within 5 feet of it at the end of each of its turns. On a successful save, the target takes only half the initial damage and suffers none of the other effects.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"cd4-world of horror\"] = {\r\n\tname : \"World of Horror\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"6 crea 8d6 Psychic dmg, frightened, \\u0026 do only melee atks; save halves, no other effects; save each rnd\",\r\n\tdescriptionFull : \"As an action, choose up to six creatures within 60 feet of you. Each target must make a Charisma saving throw. On a failed save, a target takes 8d6 psychic damage, and it is frightened until your concentration ends. On a successful save, a target takes half as much damage.\" + \"\\n   \" + \"While frightened by this effect, a target's speed is reduced to 0, and the target can use its action, and any bonus action it might have, only to make melee attacks. The frightened target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the crown of rage discipline\r\nPsionicsList[\"crown of rage-ua-psy\"] = {\r\n\tname : \"Crown of Rage\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Any crea within range has disadvantage on melee attack rolls against targets other than me\",\r\n\tdescriptionFull : \"You place a mote of pure fury within a creature's mind, causing its bloodlust to overcome its senses and for it to act as you wish it to.\" + PsychicFocus + \"While you are focused on this discipline, any enemy within 5 feet of you that makes a melee attack roll against creatures other than you does so with disadvantage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cr1-primal fury\", \"cr2-fighting words\", \"cr3-mindless courage\", \"cr4-punishing fury\"]\r\n};\r\nPsionicsList[\"cr1-primal fury\"] = {\r\n\tname : \"Primal Fury\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or 1d6/PP Psychic dmg, use rea to move its speed toward nearest enemy (charm effect)\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Charisma saving throw or take 1d6 psychic damage per psi point spent on this ability and immediately use its reaction to move its speed in a straight line toward its nearest enemy. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cr2-fighting words\"] = {\r\n\tname : \"Fighting Words\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"After 1 min conversation, 1 crea save or attack one other, chosen crea for 5 rnds (charm effect)\",\r\n\tdescriptionFull : \"If you spend 1 minute conversing with a creature, you can attempt to leave a simmering violence in its mind. At the end of the minute, you can use an action to force the creature to make a Wisdom saving throw to resist feeling violent urges against one creature you describe to it or name. The save automatically succeeds if the target is immune to being charmed. On a failed save, the target attacks the chosen creature if it sees that creature before your concentration ends, using weapons or spells against a creature it was already hostile toward or unarmed strikes against an ally or a creature it was neutral toward. Once the fight starts, it continues to attack for 5 rounds before this effect ends. This effect immediately ends if the target or any ally it can see is attacked or takes damage from any creature other than the one it has been incited against. On a successful save, the creature is unaffected and has no inkling of your attempt to bend its will.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cr3-mindless courage\"] = {\r\n\tname : \"Mindless Courage\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or it can only move towards the nearest enemy it can see, or not move at all (charm effect)\",\r\n\tdescriptionFull : \"You cause a creature's bloodlust to overcome its sense of preservation. As a bonus action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or, until the end of your next turn, it can't willingly move unless its movement brings it closer to its nearest enemy that it can see. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cr4-punishing fury\"] = {\r\n\tname : \"Punishing Fury\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or when it makes melee atk, all in 5 ft of it can make melee atk vs. it as rea (charm effect)\",\r\n\tdescriptionFull : \"You cause a creature's rage to grow so hot that it attacks without heeding its own safety. As a bonus action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or, until your concentration ends, any creature within 5 feet of it can use a reaction to make a melee attack against it whenever the target makes a melee attack. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\n//the diminution discipline (contributed by mattohara & TheBob427)\r\nPsionicsList[\"diminution-ua-psy\"] = {\r\n\tname : \"Diminution\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I have advantage on Dexterity (Stealth) checks\",\r\n\tdescriptionFull : \"You manipulate the matter that composes your body, drastically reducing your size without surrendering any of your might.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Dexterity (Stealth) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"d1-miniature form\", \"d2-toppling shift\", \"d3-sudden shift\", \"d4-microscopic form\"]\r\n};\r\nPsionicsList[\"d1-miniature form\"] = {\r\n\tname : \"Miniature Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : 'Become Tiny, gain +5 to Dex (Stealth) and can fit through gaps of up to 6\" without squeezing',\r\n\tdescriptionMetric : \"Become Tiny, gain +5 to Dex (Stealth) and can fit through gaps of up to 15 cm without squeezing\",\r\n\tdescriptionFull : \"As a bonus action, you become Tiny until your concentration ends. While this size, you gain a +5 bonus to Dexterity (Stealth) checks and can move through gaps up to 6 inches across without squeezing.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"d2-toppling shift\"] = {\r\n\tname : \"Toppling Shift\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 creature save or be knocked prone\",\r\n\tdescriptionFull : \"As a bonus action, you shift to an incredibly small size and then suddenly return to normal, sending an opponent flying backward. Choose one creature you can see within 5 feet of you. It must succeed on a Strength saving throw or be knocked prone.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"d3-sudden shift\"] = {\r\n\tname : \"Sudden Shift\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use when hit by an attack; it misses, and I move up to 5 ft without provoking opportunity attacks\",\r\n\tdescriptionFull : \"As a reaction when you are hit by an attack, you shift down to minute size to avoid the attack. The attack misses, and you move up to 5 feet without provoking opportunity attacks before returning to normal size.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"d4-microscopic form\"] = {\r\n\tname : \"Microscopic Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Become diminutive, gain +5 AC, +10 to Dex (Stealth), can fit through 1\\\" gaps, but can't use wea atks\",\r\n\tdescriptionMetric : \"Become diminutive, gain +5 AC, +10 to Dex (Stealth), can fit through 2,5 cm gaps, can't use wea atks\",\r\n\tdescriptionFull : \"As a bonus action, you become smaller than Tiny until your concentration ends. While this size, you gain a +10 bonus to Dexterity (Stealth) checks and a +5 bonus to AC, you can move through gaps up to 1 inch across without squeezing, and you can't make weapon attacks.\",\r\n\tfirstCol : 7\r\n};\r\n//the giant growth discipline (contributed by mattohara & TheBob427)\r\nPsionicsList[\"giant growth-ua-psy\"] = {\r\n\tname : \"Giant Growth\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My reach increases by 5 ft\",\r\n\tdescriptionFull : \"You infuse yourself with psionic energy to grow to tremendous size, bolstering your strength and durability.\" + PsychicFocus + \"While focused on this discipline, your reach increases by 5 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"gg1-ogre form\", \"gg2-giant form\"]\r\n};\r\nPsionicsList[\"gg1-ogre form\"] = {\r\n\tname : \"Ogre Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"10 temp. HP; for duration: become Large, +5 ft reach, melee attacks deal +1d4 Bludgeoning dmg\",\r\n\tdescriptionFull : \"As a bonus action, you gain 10 temporary hit points. In addition, until your concentration ends, your melee weapon attacks deal an extra 1d4 bludgeoning damage on a hit, and your reach increases by 5 feet. If you're smaller than Large, you also become Large for the duration.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"gg2-giant form\"] = {\r\n\tname : \"Giant Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"30 temp. HP; for duration: become Huge, +10 ft reach, melee attacks deal +2d6 Bludgeoning dmg\",\r\n\tdescriptionFull : \"As a bonus action, you gain 30 temporary hit points. In addition, until your concentration ends, your melee weapon attacks deal an extra 2d6 bludgeoning damage on a hit, and your reach increases by 10 feet. If you're smaller than Huge, you also become Huge for the duration.\",\r\n\tfirstCol : 7\r\n};\r\n//the intellect fortress discipline (contributed by TheBob427)\r\nPsionicsList[\"intellect fortress-ua-psy\"] = {\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Psychic damage\",\r\n\tdescriptionFull : \"You forge an indomitable wall of psionic energy around your mind-one that allows you to launch counterattacks against your opponents.\" + PsychicFocus + \"While focused on this discipline, you have resistance to psychic damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"if1-psychic backlash\", \"if2-psychic parry\", \"if3-psychic redoubt\"]\r\n};\r\nPsionicsList[\"if1-psychic backlash\"] = {\r\n\tname : \"Psychic Backlash\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I impose dis. on an attack roll vs. me; if I'm hit anyway, the attacker takes 2d10 Psychic damage\",\r\n\tdescriptionFull : \"As a reaction, you can impose disadvantage on an attack roll against you if you can see the attacker. If the attack still hits you, the attacker takes 2d10 psychic damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"if2-psychic parry\"] = {\r\n\tname : \"Psychic Parry\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you make an Intelligence, a Wisdom, or a Charisma saving throw\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Add +1/PP to the result of an Int, Wis, or Cha save; use after rolling, but before knowing if successful\",\r\n\tdescriptionFull : \"As a reaction when you make an Intelligence, a Wisdom, or a Charisma saving throw, you gain a +1 bonus to that saving throw for each psi point you spend on this ability. You can use this ability after rolling the die but before suffering the results.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"if3-psychic redoubt\"] = {\r\n\tname : \"Psychic Redoubt\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Any creatures in range gain resistance to Psychic damage and advantage on Int, Wis, and Cha saves\",\r\n\tdescriptionFull : \"As an action, you create a field of protective psychic energy. Choose any number of creatures within 30 feet of you. Until your concentration ends, each target has resistance to psychic damage and advantage on Intelligence, Wisdom, and Charisma saving throws.\",\r\n\tfirstCol : 5\r\n};\r\n//the iron durability discipline (contributed by mattohara)\r\nPsionicsList[\"iron durability-ua-psy\"] = {\r\n\tname : \"Iron Durability\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +1 bonus to AC\",\r\n\tdescriptionFull : \"You transform your body to become a living metal, allowing you to shrug off attacks that would cripple weaker creatures.\" + PsychicFocus + \"While focused on this discipline, you gain a +1 bonus to AC.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"id1-iron hide\", \"id2-steel hide\", \"id3-iron resistance\"]\r\n};\r\nPsionicsList[\"id1-iron hide\"] = {\r\n\tname : \"Iron Hide\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain +1/PP AC; use when hit by attack; bonus works against triggering attack\",\r\n\tdescriptionFull : \"As a reaction when you are hit by an attack, you gain a +1 bonus to AC for each psi point you spend on this ability. The bonus lasts until the end of your next turn. This bonus applies against the triggering attack.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"id2-steel hide\"] = {\r\n\tname : \"Steel Hide\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain resistance to Bludgeoning, Piercing, and Slashing damage\",\r\n\tdescriptionFull : \"As a bonus action, you gain resistance to bludgeoning, piercing, and slashing damage until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"id3-iron resistance\"] = {\r\n\tname : \"Iron Resistance\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"I gain resistance to bludgeoning, piercing, or slashing (my choice)\",\r\n\tdescriptionFull : \"As an action, you gain resistance to bludgeoning, piercing, or slashing damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of awe discipline (contributed by mattohara)\r\nPsionicsList[\"mantle of awe-ua-psy\"] = {\r\n\tname : \"Mantle of Awe\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a bonus to Charisma checks, bonus equals half my Intelligence modifier (min 1)\",\r\n\tdescriptionFull : \"You learn to use psionic energy to manipulate others with a subtle combination of psi and your own, natural charm.\" + PsychicFocus + \"While focused on this discipline, you gain a bonus to Charisma checks. The bonus equals half your Intelligence modifier (minimum of +1).\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"moa1-charming presence\", \"moa2-center of attention\", \"moa3-invoke awe\"]\r\n};\r\nPsionicsList[\"moa1-charming presence\"] = {\r\n\tname : \"Charming Presence\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"2d8/PP HP of conscious, not in combat, not immune to charm crea charmed; use HP max, not current\",\r\n\tdescriptionFull : \"As an action, you exert an aura of sympathetic power. Roll 2d8 per psi point spent on this ability; the total is how many hit points worth of creatures this option can affect. Creatures within 30 feet of you are affected in ascending order of their hit point maximums, ignoring incapacitated creatures, creatures immune to being charmed, and creatures engaged in combat.\" + \"\\n   \" + \"Starting with the creature that has the lowest hit point maximum, each creature affected by this option is charmed by you for 10 minutes, regarding you as a friendly acquaintance. Subtract each creature's hit point maximum from the total before moving on to the next creature. A creature's hit point maximum must be equal to or less than the remaining total for that creature to be affected.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"moa2-center of attention\"] = {\r\n\tname : \"Center of Attention\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or all other creatures are invisible to it; ends if it leaves my sight/earshot or takes dmg\",\r\n\tdescriptionFull : \"As an action, you exert an aura of power that grabs a creature's attention. Choose one creature you can see within 60 feet of you. It must make a Charisma saving throw. On a failed save, the creature is so thoroughly distracted by you that all other creatures are invisible to it until your concentration ends. This effect ends if the creature can no longer see or hear you or if it takes damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"moa3-invoke awe\"] = {\r\n\tname : \"Invoke Awe\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"5 crea save or charmed, obey verbal commands; no self harm; will atk crea that atk me; save each rnd\",\r\n\tdescriptionFull : \"As an action, you exert an aura that inspires awe in others. Choose up to 5 creatures you can see within 60 feet of you. Each target must succeed on an Intelligence saving throw or be charmed by you until your concentration ends. While charmed, the target obeys all your verbal commands to the best of its ability and without doing anything obviously self-destructive. The charmed target will attack only creatures that it has seen attack you since it was charmed or that it was already hostile toward. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of command discipline\r\nPsionicsList[\"mantle of command-ua-psy\"] = {\r\n\tname : \"Mantle of Command\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"When ending a turn I didn't move in, use my rea to have 1 ally within 30 ft move half its speed\",\r\n\tdescriptionFull : \"You exert an aura of trust and authority, enhancing the coordination among your allies.\" + PsychicFocus + \"While focused on this discipline, when you end your turn and didn't move during it, you can use your reaction to allow one ally you can see within 30 feet of you to move up to half their speed, following a path of your choice. To move in this way, the ally mustn't be incapacitated.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mc1-coordinated movement\", \"mc2-commander's sight\", \"mc3-command to strike\", \"mc4-strategic mind\", \"mc5-overwhelming attack\"]\r\n};\r\nPsionicsList[\"mc1-coordinated movement\"] = {\r\n\tname : \"Coordinated Movement\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 5 allies I can see can use their reaction to move half their speed, following a path I choose\",\r\n\tdescriptionFull : \"As a bonus action, choose up to five allies you can see within 60 feet of you. Each of those allies can use their reaction to move up to half their speed, following a path of your choice.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc2-commander's sight\"] = {\r\n\tname : \"Commander's Sight\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 rnd\",\r\n\tdescription : \"I mark 1 crea; until the start of my next turn, my allies have adv. on attacks vs. it\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. Until the start of your next turn, your allies have advantage on attack rolls against that target.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc3-command to strike\"] = {\r\n\tname : \"Command to Strike\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 ally I can see can use their reaction to take the Attack action, with me choosing the targets\",\r\n\tdescriptionFull : \"As an action, choose one ally you can see within 60 feet of you. That ally can use their reaction to immediately take the Attack action. You choose the targets.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mc4-strategic mind\"] = {\r\n\tname : \"Strategic Mind\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 ally can, on its turn, either add 1d4 to its attack rolls or take Dash or Disengage as a bonus action\",\r\n\tdescriptionFull : \"As an action, you exert an aura of trust and command that unites your allies into a cohesive unit. Until your concentration ends, any ally within 60 feet of you on their turn can, as a bonus action, take the Dash or Disengage action or roll a d4 and add the number rolled to each attack roll they make that turn.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mc5-overwhelming attack\"] = {\r\n\tname : \"Overwhelming Attack\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 5 allies I see can use their reactions to take the Attack action, with me choosing the targets\",\r\n\tdescriptionFull : \"As an action, choose up to five allies you can see within 60 feet of you. Each of those allies can use their reaction to take the Attack action. You choose the targets of the attacks.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of courage discipline\r\nPsionicsList[\"mantle of courage-ua-psy\"] = {\r\n\tname : \"Mantle of Courage\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My and allies within 10 ft that can see me have advantage on saves vs. being frightened\",\r\n\tdescriptionFull : \"You focus your mind on courage, radiating confidence and bravado to your allies.\" + PsychicFocus + \"While focused on this discipline, you and allies within 10 feet of you who can see you have advantage on saving throws against being frightened.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mc1-incite courage\", \"mc2-aura of victory\", \"mc3-pillar of confidence\"]\r\n};\r\nPsionicsList[\"mc1-incite courage\"] = {\r\n\tname : \"Incite Courage\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 6 creatures are no longer frightened\",\r\n\tdescriptionFull : \"As a bonus action, choose up to six creatures you can see within 60 feet of you. If any of those creatures is frightened, that condition ends on that creature.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc2-aura of victory\"] = {\r\n\tname : \"Aura of Victory\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"When an enemy I can see is reduced to 0 HP, me and allies within range gain 2/PP temporary HP\",\r\n\tdescriptionFull : \"As a bonus action, you project psionic energy until your concentration ends. The energy fortifies you and your allies when your enemies are felled; whenever an enemy you can see is reduced to 0 hit points, you and each of your allies within 30 feet of you gain temporary hit points equal to double the psi points spent to activate this effect.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mc3-pillar of confidence\"] = {\r\n\tname : \"Pillar of Confidence\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"Me \\u0026 up to 5 crea gain, on their turn, a special action to either make 1 wea atk, Dash, or Disengage\",\r\n\tdescriptionFull : \"As an action, you and up to five creatures you can see within 60 feet of you each gain one extra action to use on their individual turns. The action goes away if not used before the end of your next turn. the action can be used only to make one weapon attack or to take the Dash or Disengage action.\",\r\n\tfirstCol : 6\r\n};\r\n//the mantle of fear discipline\r\nPsionicsList[\"mantle of fear-ua-psy\"] = {\r\n\tname : \"Mantle of Fear\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Intimidation) checks\",\r\n\tdescriptionFull : \"You tap into a well of primal fear and turn yourself into a beacon of terror to your enemies.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Intimidation) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-incite fear\", \"mf2-unsettling aura\", \"mf3-incite panic\"]\r\n};\r\nPsionicsList[\"mf1-incite fear\"] = {\r\n\tname : \"Incite Fear\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or be frightened of me; repeat save each turn when out of line of sight\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or become frightened of you until your concentration ends. Whenever the frightened target ends its turn in a location where it can't see you, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf2-unsettling aura\"] = {\r\n\tname : \"Unsettling Aura\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"All crea in range that can see me move only half speed when moving towards me (frightening effect)\",\r\n\tdescriptionFull : \"As a bonus action, you cloak yourself in unsettling psychic energy. Until your concentration ends, any enemy within 60 feet of you that can see you must spend 1 extra foot of movement for every foot it moves toward you. A creature ignores this effect if immune to being frightened.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf3-incite panic\"] = {\r\n\tname : \"Incite Panic\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"8 crea save each rnd or frightened and spend turn on random move or melee atk; 3 saves ends; see B\",\r\n\tdescriptionFull : \"As an action, choose up to eight creatures you can see within 90 feet of you that can see you. At the start of each of a target's turns before your concentration ends, the target must make a Wisdom saving throw. On a failed save, the target is frightened until the start of its next turn, and you roll a die. If you roll an odd number, the frightened target moves half its speed in a random direction and takes no action on that turn, other than to scream in terror. If you roll an even number, the frightened target makes one melee attack against a random target within its reach. If there is no such target, it moves half its speed in a random direction and takes no action on that turn. This effect ends on a target if it succeeds on three saving throws against it.\",\r\n\tfirstCol : 5\r\n};\r\n//the mantle of fury discipline\r\nPsionicsList[\"mantle of fury-ua-psy\"] = {\r\n\tname : \"Mantle of Fury\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Me and allies within 10 ft at start of my turn gain +5 ft walking speed for that turn\",\r\n\tdescriptionFull : \"You allow the primal fury lurking deep within your mind to burst forth, catching you and your allies in an implacable bloodthirst.\" + PsychicFocus + \"While focused on this discipline in combat, you and any ally who starts their turn within 10 feet of you gains a 5-foot increase to their walking speed during that turn.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-incite fury\", \"mf2-mindless charge\", \"mf3-aura of bloodletting\", \"mf4-overwhelming fury\"]\r\n};\r\nPsionicsList[\"mf1-incite fury\"] = {\r\n\tname : \"Incite Fury\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"3 creatures can add 1d4 to the damage of melee weapon attacks during the duration\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three allies you can see within 60 feet of you (you can choose yourself in place of one of the allies). Until your concentration ends, each target can roll a d4 when rolling damage for a melee weapon attack and add the number rolled to the damage roll.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf2-mindless charge\"] = {\r\n\tname : \"Mindless Charge\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"3 creatures can use their reactions to move their speed straight towards the nearest enemy\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three creatures you can see within 60 feet of you. Each target can immediately use its reaction to move up to its speed in a straight line toward its nearest enemy.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf3-aura of bloodletting\"] = {\r\n\tname : \"Aura of Bloodletting\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me and all creatures within range during the duration have advantage on melee attack rolls\",\r\n\tdescriptionFull : \"As a bonus action, you unleash an aura of rage. Until your concentration ends, you and any creature within 60 feet of you has advantage on melee attack rolls.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf4-overwhelming fury\"] = {\r\n\tname : \"Overwhelming Fury\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 creature save or it can use its actions only to make melee attacks; save at the end of each of its turns\",\r\n\tdescriptionFull : \"As an action, you flood rage into one creature you can see within 60 feet of you. The target must succeed on a Charisma saving throw, or it can use its actions only to make melee attacks until your concentration ends. It can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 5\r\n};\r\n//the mantle of joy discipline\r\nPsionicsList[\"mantle of joy-ua-psy\"] = {\r\n\tname : \"Mantle of Joy\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Persuasion) checks\",\r\n\tdescriptionFull : \"You tap into the joy within you, radiating it outward in soothing, psychic energy that brings hope and comfort to creatures around you.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Persuasion) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mj1-soothing presence\", \"mj2-comforting aura\", \"mj3-aura of jubilation\", \"mj4-beacon of recovery\"]\r\n};\r\nPsionicsList[\"mj1-soothing presence\"] = {\r\n\tname : \"Soothing Presence\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"3 creatures gain 3/PP temporary hit points\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three creatures you can see within 60 feet of you. Each target gains 3 temporary hit points per psi point spent on this effect.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mj2-comforting aura\"] = {\r\n\tname : \"Comforting Aura\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"3 creatures can add 1d4 on every saving throw during the duration\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three allies you can see (you can choose yourself in place of one of the allies). Until your concentration ends, each target can roll a d4 when making a saving throw and add the number rolled to the total.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mj3-aura of jubilation\"] = {\r\n\tname : \"Aura of Jubilation\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"All creatures within range that can see me have disadvantage on Perception and Investigation checks\",\r\n\tdescriptionFull : \"As a bonus action, you radiate a distracting mirth until your concentration ends. Each creature within 60 feet of you that can see you suffers disadvantage on any checks using the Perception and Investigation skills.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mj4-beacon of recovery\"] = {\r\n\tname : \"Beacon of Recovery\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Me + 5 allies can make an extra save against every effect that allows a save at the start/end of a turn\",\r\n\tdescriptionFull : \"As a bonus action, you and up to five allies you can see within 60 feet of you can immediately make saving throws against every effect they're suffering that allows a save at the start or end of their turns.\",\r\n\tfirstCol : 5\r\n};\r\n//the mastery of air discipline (contributed by mattohara)\r\nPsionicsList[\"mastery of air-ua-psy\"] = {\r\n\tname : \"Mastery of Air\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I take no falling damage and ignore difficult terrain when walking\",\r\n\tdescriptionFull : \"You become one with the power of elemental air.\" + PsychicFocus + \"While focused on this discipline, you take no falling damage, and you ignore difficult terrain when walking.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ma1-wind step\", \"ma2-wind stream\", \"ma3-cloak of air\", \"ma4-wind form\", \"ma5-misty form\", \"ma6-animate air\"]\r\n};\r\nPsionicsList[\"ma1-wind step\"] = {\r\n\tname : \"Wind Step\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"Move\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"Fly 20 ft/PP as part of my move this turn; if I end my turn in the air, my fall\",\r\n\tdescriptionFull : \"As part of your move on your turn, you can fly up to 20 feet for each psi point spent. If you end this flight in the air, you fall unless something else holds you aloft.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ma2-wind stream\"] = {\r\n\tname : \"Wind Stream\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"30-ft long 5-ft wide all crea 1d8/PP Bludgeoning dmg and knocked prone; save halves and not prone\",\r\n\tdescriptionFull : \"As an action, you create a line of focused air that is 30 feet long and 5 feet wide. Each creature in that area must make a Strength saving throw, taking 1d8 bludgeoning damage per psi point spent and being knocked prone on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ma3-cloak of air\"] = {\r\n\tname : \"Cloak of Air\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Atks vs. me have dis.; when missed by melee atk, use rea to have attacker repeat the attack on itself\",\r\n\tdescriptionFull : \"As a bonus action, you seize control of the air around you to create a protective veil. Until your concentration ends, attack rolls against you have disadvantage, and when a creature you can see misses you with a melee attack, you can use your reaction to force the creature to repeat the attack roll against itself.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ma4-wind form\"] = {\r\n\tname : \"Wind Form\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I gain a flying speed of 60 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain a flying speed of 60 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ma5-misty form\"] = {\r\n\tname : \"Misty Form\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : 'Gain resistance to Bludgeoning/Piercing/Slashing, can only take Dash actions, fit through 1\" opening',\r\n\tdescriptionMetric : \"Gain resistance to Bludgeoning/Piercing/Slashing, only take Dash actions, fit through 2,5 cm opening\",\r\n\tdescriptionFull : \"As an action, your body becomes like a misty cloud until your concentration ends. In this form, you gain resistance to bludgeoning, piercing, and slashing damage, and you can't take actions other than the Dash action. You can pass through openings that are no more than 1 inch wide without squeezing.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"ma6-animate air\"] = {\r\n\tname : \"Animate Air\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon an air elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause an air elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of fire discipline\r\nPsionicsList[\"mastery of fire-ua-psy\"] = {\r\n\tname : \"Mastery of Fire\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Fire damage and gain a +2 bonus on rolls for Fire damage\",\r\n\tdescriptionFull : \"You align your mind with the energy of elemental fire.\" + PsychicFocus + \"While focused on this discipline, you gain resistance to fire damage, and you gain a +2 bonus to rolls for fire damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-combustion\", \"mf2-rolling flame\", \"mf3-detonation\", \"mf4-fire storm\", \"mf5-animate fire\"]\r\n};\r\nPsionicsList[\"mf1-combustion\"] = {\r\n\tname : \"Combustion\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d10/PP Fire dmg, on fire: 1d6 Fire dmg/rnd, it can 1 a to end; save half \\u0026 not on fire\",\r\n\tdescriptionFull : \"As an action, choose one creature or object you can see within 120 feet of you. The target must make a Constitution save. On a failed save, the target takes 1d10 fire damage per psi point spent, and it catches on fire, taking 1d6 fire damage at the end of each of its turns until your concentration ends or until it or a creature adjacent to it extinguishes the flames with an action. On a successful save, the target takes half as much damage and doesn't catch on fire.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf2-rolling flame\"] = {\r\n\tname : \"Rolling Flame\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"20-ft cube all 5 Fire damage and any that end their turn in it also 5 Fire damage\",\r\n\tdescriptionFull : \"As an action, you create fire in a 20-foot-by-20-foot cube within 5 feet of you. The fire lasts until your concentration ends. Any creature in that area when you use this ability and any creature that ends its turn there takes 5 fire damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf3-detonation\"] = {\r\n\tname : \"Detonation\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"20-ft rad all creatures save or 7d6 Fire damage and knocked prone; save halves and not prone\",\r\n\tsave : \"Con\",\r\n\tdescriptionFull : \"As an action, you create a fiery explosion at a point you can see within 120 feet of you. Each creature in a 20-foot-radius sphere centered on that point must make a Constitution saving throw, taking 7d6 fire damage and being knocked prone on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mf4-fire storm\"] = {\r\n\tname : \"Fire Storm\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"All creatures that end their turn within 5 ft of me take 3d6 Fire damage\",\r\n\tdescriptionFull : \"As a bonus action, you become wreathed in flames until your concentration ends. Any creature that end its turn within 5 feet of you takes 3d6 fire damage.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mf5-animate fire\"] = {\r\n\tname : \"Animate Fire\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a fire elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause a fire elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of force discipline\r\nPsionicsList[\"mastery of force-ua-psy\"] = {\r\n\tname : \"Mastery of Force\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Strength checks\",\r\n\tdescriptionFull : \"As a student of psionic power, you perceive the potential energy that flows through all things. You reach out with your mind, transforming the potential into the actual. Objects and creatures move at your command.\" + PsychicFocus + \". While focused on this discipline, you have advantage on Strength checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-push\", \"mf2-move\", \"mf3-inertial armor\", \"mf4-telekinetic barrier\", \"mf5-grasp\", \"mf6-crush (with grasp)\" , \"mf7-move (with grasp)\"]\r\n};\r\nPsionicsList[\"mf1-push\"] = {\r\n\tname : \"Push\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1d8/PP Force dmg and pushed 5 ft/PP straight away; save halves and not pushed\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Strength saving throw. On a failed save, it takes 1d8 force damage per psi point spent and is pushed up to 5 feet per point spent in a straight line away from you. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf2-move\"] = {\r\n\tname : \"Move\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Move obj 60 ft, after which it falls; crea under obj DC 10 save or 1d6+1d6/PP Bludg. dmg; see book\",\r\n\tdescriptionFull : \"Choose one object you can see within 60 feet of you that isn't being worn or carried by another creature and that isn't secured in place. It can't be larger than 20 feet on a side, and its maximum weight depends on the psi points spent on this ability, as shown below.\" + \"\\n   \" + \"As an action, you move the object up to 60 feet, and you must keep the object within sight during this movement. If the object ends this movement in the air, it falls. If the object would fall on a creature, the creature must succeed on a DC 10 Dexterity saving throw or take damage as listed on the table below.\\n\\n  \" + toUni(\"Psi\") + \"\\t\" + toUni(\"Maximum\") + \"    \" + toUni(\"Bludgeoning\") + \"\\n\" + toUni(\"Points\") + \"\\t \" + toUni(\"Weight\") + \"\\t        \" + toUni(\"Damage\") + \"\\n    2\\t     25 lbs.  \\t             2d6\" + \"\\n    3\\t     50 lbs.  \\t             4d6\" + \"\\n    5\\t   250 lbs.  \\t             6d6\" + \"\\n    6\\t   500 lbs.  \\t             7d6\" + \"\\n    7\\t 1000 lbs.  \\t             8d6\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"mf3-inertial armor\"] = {\r\n\tname : \"Inertial Armor\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"I gain AC 14 + Dex modifier and resistance to Force dmg if not wearing armor; ends if don armor\",\r\n\tdescriptionFull : \"As an action, you sheathe yourself in an intangible field of magical force. For 8 hours, your base AC is 14 + your Dexterity modifier, and you gain resistance to force damage. This effect ends if you are wearing or don armor.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf4-telekinetic barrier\"] = {\r\n\tname : \"Telekinetic Barrier\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"40-ft long, 10-ft high, 1-inch thick transparent wall of energy; each 10-ft section has AC 10 \\u0026 10 HP\",\r\n\tdescriptionFull : \"As an action, you create a transparent wall of telekinetic energy, at least one portion of which must be within 60 feet of you. The wall is 40 feet long, 10 feet high, and 1 inch thick. The wall lasts until your concentration ends. Each 10-foot section of the wall has an AC of 10 and 10 hit points.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf5-grasp\"] = {\r\n\tname : \"Grasp\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 crea save or grappled; escape Athl./Acro. vs. my spell atk +1/PP; if grappled I can Crush/Move\",\r\n\tsave : \"Str\",\r\n\tdescriptionFull : \"You attempt to grasp a creature in telekinetic energy and hold it captive. As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Strength saving throw or be grappled by you until your concentration ends or until the target leaves your reach, which is 60 feet for this grapple.\" + \"\\n   \" + \"The grappled target can escape by succeeding on a Strength (Athletics) or Dexterity (Acrobatics) check contested by your psionic ability plus your proficiency bonus. When a target attempts to escape in this way, you can spend psi points to boost your check, abiding by your psi limit. You gain a +1 bonus per psi point spent.\" + \"\\n   \" + \"While a target is grappled in this manner, you create one of the following effects as an action: \" + toUni(\"Crush\") + \" (1–7 psi) The target takes 1d6 bludgeoning damage per psi point spent.\" + toUni(\"Move\") + \" (1–7 psi) You move the target up to 5 feet per psi point spent. You can move it in the air and hold it there. It falls if the grapple ends.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf6-crush (with grasp)\"] = {\r\n\tname : \" - Crush (with Grasp)\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature grappled by Grasp takes 1d6/PP Bludgeoning damage\",\r\n\tdescriptionFull : \"While the target is grappled by Grasp from the Mastery of Force discipline, you can use Crush on it as an action:\" + \"\\n  \" + \"The target takes 1d6 bludgeoning damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf7-move (with grasp)\"] = {\r\n\tname : \" - Move (with Grasp)\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature grappled by Grasp moved up to 5 ft/PP; can hold it aloft, but it falls when grapple ends\",\r\n\tdescriptionFull : \"While the target is grappled by Grasp from the Mastery of Force discipline, you can use Move on it as an action:\" + \"\\n  \" + \"You move the target up to 5 feet per psi point spent. You can move it in the air and hold it there. It falls if the grapple ends.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\n//the mastery of ice discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of ice-ua-psy\"] = {\r\n\tname : \"Mastery of Ice\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Cold damage\",\r\n\tdescriptionFull : \"You master the power of ice, shaping it to meet you demands.\" + PsychicFocus + \"While focused on this discipline, you have resistance to cold damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mi1-ice spike\", \"mi2-ice sheet\", \"mi3-frozen sanctuary\", \"mi4-frozen rain\", \"mi5-ice barrier\"]\r\n};\r\nPsionicsList[\"mi1-ice spike\"] = {\r\n\tname : \"Ice Spike\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 creature save or 1d8/PP Cold damage and speed halved; save halves and normal speed\",\r\n\tdescriptionFull : \"As an action, you hurl a mote of ice at one creature you can see within 120 feet of you. The target must make a Dexterity saving throw. On a failed save, the target takes 1d8 cold damage per psi point spent and has its speed halved until the start of your next turn. On a successful save, the target takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mi2-ice sheet\"] = {\r\n\tname : \"Ice Sheet\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Create 20-ft rad of difficult terrain; crea move more than 10 ft save or prone; on slope slide to bottom\",\r\n\tdescriptionFull : \"As an action, choose a point on the ground you can see within 60 feet of you. The ground in a 20-foot radius centered on that point becomes covered in ice for 10 minutes. It is difficult terrain, and any creature that moves more than 10 feet on it must succeed on a Dexterity saving throw or fall prone. If the surface is sloped, a creature that falls prone in the area immediately slides to the bottom of the slope.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mi3-frozen sanctuary\"] = {\r\n\tname : \"Frozen Sanctuary\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I gain 20 temporary hit points\",\r\n\tdescriptionFull : \"As a bonus action, you sheathe yourself with icy resilience. You gain 20 temporary hit points.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mi4-frozen rain\"] = {\r\n\tname : \"Frozen Rain\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all 6d6(+1d6/extra PP) Cold dmg \\u0026 spd 0; save half \\u0026 no spd 0; 1 a Athl. vs DC for no spd 0\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 120 feet of you. The air in a 20-foot-radius sphere centered on that point becomes deathly cold and saturated with moisture. Each creature in that area must make a Constitution saving throw. On a failed save, a target takes 6d6 cold damage, and its speed is reduced to 0 until your concentration ends. On a successful save, a target takes half as much damage.\" + \"\\n   \" + \"As an action, a target that has its speed reduced can end the effect early if it succeeds on a Strength (Athletics) check with a DC equal to this effect's save DC.\" + \"\\n   \" + \"You can increase this effect's damage by 1d6 per each additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"mi5-ice barrier\"] = {\r\n\tname : \"Ice Barrier\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"60\\xD71\\xD715ft (l\\xD7w\\xD7h) wall; a 10-ft section has AC 12 & 30 HP; melee atks do same as Cold dmg back\",\r\n\tdescriptionMetric : \"20\\xD70,3\\xD75m (l\\xD7w\\xD7h) wall; a 3-m section has AC 12 & 30 hp; melee atks do same as Cold dmg back\",\r\n\tdescriptionFull : \"As an action, you create a wall of ice, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Each 10-foot section of the wall has AC 12 and 30 hit points. A creature that damages the wall with a melee attack takes cold damage equal to the damage the creature dealt to the wall.\",\r\n\tfirstCol : 6\r\n};\r\n//the mastery of light and darkness discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of light and darkness-ua-psy\"] = {\r\n\tname : \"Mastery of Light and Darkness\",\r\n\tnameShort : \"Mastery of Light \\u0026 Dark\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I can see through natural and magical darkness out to 30 ft\",\r\n\tdescriptionFull : \"You claim dominion over light and darkness with your mind.\" + PsychicFocus + \"While focused on this discipline, natural and magical darkness within 30 feet of you has no effect on your vision.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mld1-darkness\", \"mld2-light\", \"mld3-shadow beasts\", \"mld4-radiant beam\"]\r\n};\r\nPsionicsList[\"mld1-darkness\"] = {\r\n\tname : \"Darkness\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"10 ft/PP rad darkness from point; darkvision doesn't work; only magical light of SL 3 or higher works\",\r\n\tdescriptionFull : \"As an action, you create an area of magical darkness, which foils darkvision. Choose a spot you can see within 60 feet of you. Magical darkness radiates from that point in a sphere with a 10-foot radius per psi point spent on this ability. The light produced by spells of 2nd level or less is suppressed in this area.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mld2-light\"] = {\r\n\tname : \"Light\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea/obj save or sheds bright light 20-ft rad and dim light 20-ft, and can't hide, atks vs. it have adv.\",\r\n\tdescriptionFull : \"As an action, an object you touch radiates light in a 20-foot radius and dim light for an additional 20 feet. The light lasts until your concentration ends. Alternatively, a creature you touch radiates light in the same manner if it fails a Dexterity saving throw. While lit in this manner, it can't hide, and attack rolls against it gain advantage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mld3-shadow beasts\"] = {\r\n\tname : \"Shadow Beasts\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Summon 2 shadows that obeys my verbal commands; See Monster Manual, page 269\",\r\n\tdescriptionFull : \"As an action, you cause two shadows to appear in unoccupied spaces you can see within 60 feet of you. The shadows last until your concentration ends, and they obey your verbal commands. In combat, roll for their initiative, and choose their behavior during their turns. When this effect ends, the shadows disappear. See the Monster Manual for their stat block.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mld4-radiant beam\"] = {\r\n\tname : \"Radiant Beam\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 6d6(+1d6/extra PP) Radiant dmg, blinded, save each turn to end blind; save halves \\u0026 not blind\",\r\n\tdescriptionFull : \"As an action, you project a beam of light at one creature you can see within 60 feet of you. The target must make a Dexterity saving throw. On a failed save, it takes 6d6 radiant damage and is blinded until your concentration ends. On a successful save, it takes half as much damage. A blinded target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\" + \"\\n   \" + \"You can increase this effect's damage by 1d6 per each additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\n//the mastery of water discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of water-ua-psy\"] = {\r\n\tname : \"Mastery of Water\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a swimming speed equal to my walking speed and I can breathe underwater\",\r\n\tdescriptionFull : \"Your mind becomes one with elemental water, attuning your thoughts to its ebb and flow.\" + PsychicFocus + \"While focused on this discipline, you have a swimming speed equal to your walking speed, and you can breathe underwater.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mwa1-dessicate\", \"mwa2-watery grasp\", \"mwa3-water whip\", \"mwa4-water breathing\",\"mwa5-water sphere\",\"mwa6-animate water\"]\r\n};\r\nPsionicsList[\"mwa1-dessicate\"] = {\r\n\tname : \"Dessicate\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 creature 1d10/PP Necrotic damage; save halves\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Constitution saving throw, taking 1d10 necrotic damage per psi point spent on this ability, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mwa2-watery grasp\"] = {\r\n\tname : \"Watery Grasp\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft sq all save or 2d6(+1d6/extra PP) Bludg. dmg, prone, pulled 10 ft to me; save half \\u0026 not prone\",\r\n\tdescriptionFull : \"As an action, you unleash a wave that surges forth and then retreats to you like the rising tide. You create a wave in a 20-foot-by-20-foot square. At least some portion of the square's border must be within 5 feet of you. Any creature in that square must make a Strength saving throw. On a failed save, a target takes 2d6 bludgeoning damage, is knocked prone, and is pulled up to 10 feet closer to you. On a successful save, a target takes half as much damage. You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"mwa3-water whip\"] = {\r\n\tname : \"Water Whip\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"60\\xD75-ft (l\\xD7w) all 3d6(+1d6/extra PP) Bludg. dmg \\u0026 move to empty spot on line; save half \\u0026 no move\",\r\n\tdescriptionMetric : \"20\\xD71,5m (l\\xD7w) all 3d6(+1d6/extra PP) Bludg. dmg, move to empty spot on line; save half \\u0026 no move\",\r\n\tdescriptionFull : \"As an action, you unleash a jet of water in a line that is 60 feet long and 5 feet wide. Each creature in the line must make a Strength saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one. In addition, you can move each target that fails its saving throw to any unoccupied space touching the line. You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"mwa4-water breathing\"] = {\r\n\tname : \"Water Breathing\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Me and up to 10 willing creatures can breathe underwater for the duration\",\r\n\tdescriptionFull : \"As an action, you grant yourself and up to ten willing creatures you can see within 60 feet of you the ability to breathe underwater for the next 24 hours.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mwa5-water sphere\"] = {\r\n\tname : \"Water Sphere\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or half speed, dis. on atks, can see only 10 ft, atks vs. it also dis.; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you cause a sphere of water to form around a creature. Choose one creature you can see within 60 feet of you. The target must make a Dexterity saving throw. On a failed save, it becomes trapped in the sphere of water until your concentration ends. While the target is trapped, its speed is halved, it suffers disadvantage on attack rolls, and it can't see anything more than 10 feet away from it. However, attack rolls against it also suffer disadvantage. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a successful one.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mwa6-animate water\"] = {\r\n\tname : \"Animate Water\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a water elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause a water elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of weather discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of weather-ua-psy\"] = {\r\n\tname : \"Mastery of Weather\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Lightning and Thunder damage\",\r\n\tdescriptionFull : \"Your mind reaches into the sky, reshaping the stuff of storms to serve your needs.\" + PsychicFocus + \"While focused on this discipline, you have resistance to lightning and thunder damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mw1-cloud steps\", \"mw2-hungry lightning\", \"mw3-wall of clouds\", \"mw4-whirlwind\", \"mw5-lightning leap\", \"mw6-wall of thunder\", \"mw7-thunder clap\"]\r\n};\r\nPsionicsList[\"mw1-cloud steps\"] = {\r\n\tname : \"Cloud Steps\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"U summon a 10 ft by 10 ft spiral staircase, that reaches 20 ft/PP upward\",\r\n\tdescriptionFull : \"As an action, you conjure forth clouds to create a solid, translucent staircase that lasts until your concentration ends. The stairs form a spiral that fills a 10-foot-by-10-foot area and reaches upward 20 feet per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mw2-hungry lightning\"] = {\r\n\tname : \"Hungry Lightning\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 creature 1d8/PP Lightning damage; save halves; disadvantage on save if wearing heavy armor\",\r\n\tdescriptionFull : \"As an action, you lash out at one creature you can see within 60 feet of you with tendrils of lightning. The target must make a Dexterity saving throw, with disadvantage if it's wearing heavy armor. The target takes 1d8 lightning damage per psi point spent on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mw3-wall of clouds\"] = {\r\n\tname : \"Wall of Clouds\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I create a 60-ft long, 15-ft high, 1-ft thick wall of clouds that blocks vision; it must start in range\",\r\n\tdescriptionFull : \"As an action, you create a wall of clouds, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Creatures can pass through it without hindrance, but the wall blocks vision.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mw4-whirlwind\"] = {\r\n\tname : \"Whirlwind\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad all crea save or 1d6 Bludg. dmg & moved to chosen empty space in rad; obj moved as well\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Winds howl in a 20-foot-radius sphere centered on that point. Each creature in the sphere must succeed on a Strength saving throw or take 1d6 bludgeoning damage and be moved to an unoccupied space of your choice in the sphere. Any loose object in the sphere is moved to an unoccupied space of your choice within it if the object weighs no more than 100 pounds.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mw5-lightning leap\"] = {\r\n\tname : \"Lightning Leap\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"60-ft long 5-ft wide all 6d6(+1d6/extra PP) Lightning dmg; save halves; I teleport to spot on line\",\r\n\tdescriptionFull : \"As an action, you let loose a line of lightning that is 60 feet long and 5 feet wide. Each creature in the line must make a Dexterity saving throw, taking 6d6 lightning damage on a failed save, or half as much damage on a successful one. You can then teleport to an unoccupied space touched by the line.\" + \"\\n   \" + \"You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"mw6-wall of thunder\"] = {\r\n\tname : \"Wall of Thunder\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"60\\xD71\\xD715 ft (l\\xD7w\\xD7h) wall; diff. terr.; crea start/move in save or 6d6 Thunder dmg, push 30 ft, prone\",\r\n\tdescriptionMetric : \"20\\xD70,3\\xD75 m (l\\xD7w\\xD7h) wall; diff. terr.; crea start/move in save or 6d6 Thunder dmg, push 10m, prone\",\r\n\tdescriptionFull : \"As an action, you create a wall of thunder, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Every foot moved through the wall costs 1 extra foot of movement. When a creature moves into the wall's space for the first time on a turn or starts its turn there, that creature must succeed on a Strength saving throw, or it takes 6d6 thunder damage, is pushed in a straight line up to 30 feet away from the wall, and is knocked prone.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mw7-thunder clap\"] = {\r\n\tname : \"Thunder Clap\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all save or 8d6 Thunder dmg and stunned until my next turn ends; save halves \\u0026 no stun\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Thunder energy erupts in a 20-foot-radius sphere centered on that point. Each creature in that area must make Constitution saving throw. On a failed save, a target takes 8d6 thunder damage, and it is stunned until the end of your next turn. On a successful save, a target takes half as much damage.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of wood and earth discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of wood and earth-ua-psy\"] = {\r\n\tname : \"Mastery of Wood and Earth\",\r\n\tnameShort : \"Mastery of Wood \\u0026 Earth\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +1 bonus to AC\",\r\n\tdescriptionFull : \"You attune your mind to seize control of wood and earth.\" + PsychicFocus + \"While focused on this discipline, you have a +1 bonus to AC.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mwe1-animate weapon\", \"mwe2-warp weapon\", \"mwe3-warp armor\", \"mwe4-wall of wood\", \"mwe5-armored form\", \"mwe6-animate earth\"]\r\n};\r\nPsionicsList[\"mwe1-animate weapon\"] = {\r\n\tname : \"Animate Weapon\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea attacked by my 1-handed melee wea; use discipline score for atk/dmg; +1d10/PP Force dmg\",\r\n\tdescriptionFull : \"As an action, your mind seizes control of a one-handed melee weapon you're holding. The weapon flies toward one creature you can see within 30 feet of you and makes a one-handed melee weapon attack against it, using your discipline attack modifier for the attack and damage rolls. On a hit, the weapon deals its normal damage, plus an extra 1d10 force damage per psi point spent on this ability. The weapon returns to your grasp after it attacks.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mwe2-warp weapon\"] = {\r\n\tname : \"Warp Weapon\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1 chosen nonmagical wea it is holding can't be used to attack until my next turn ends\",\r\n\tdescriptionFull : \"As an action, choose one nonmagical weapon held by one creature you can see within 60 feet of you. That creature must succeed on a Strength saving throw, or the chosen weapon can't be used to attack until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mwe3-warp armor\"] = {\r\n\tname : \"Warp Armor\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea wearing a nonmagical armor save or have AC 10 + its Dex modifier until my next turn ends\",\r\n\tdescriptionFull : \"As an action, choose a nonmagical suit of armor worn by one creature you can see within 60 feet of you. That creature must succeed on a Constitution saving throw, or the creature's AC becomes 10 + its Dexterity modifier until the end of your next turn.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mwe4-wall of wood\"] = {\r\n\tname : \"Wall of Wood\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Create 60-ft long, 15-ft high, 1-ft thick wall of solid wood; each 5-ft section has AC 12 and 100 HP\",\r\n\tdescriptionFull : \"As an action, you create a wall of wood at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Each 5-foot wide section of the wall has AC 12 and 100 hit points. Breaking one section creates a 5-foot by 5-foot hole in it, but the wall otherwise remains intact.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mwe5-armored form\"] = {\r\n\tname : \"Armored Form\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain resistance to Bludgeoning, Piercing, and Slashing damage\",\r\n\tdescriptionFull : \"As a bonus action, you gain resistance to bludgeoning, piercing, and slashing damage, which lasts until your concentration ends.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mwe6-animate earth\"] = {\r\n\tname : \"Animate Earth\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon an earth elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause an earth elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic arrow discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic arrow-ua-psy\"] = {\r\n\tname : \"Nomadic Arrow\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My ranged weapon attacks ignore disadvantage, but can't get adv. if it was subject to dis.\",\r\n\tdescriptionFull : \"You imbue a ranged weapon with a strange semblance of sentience, allowing it to unerringly find its mark.\" + PsychicFocus + \"While you are focused on this discipline, any attack roll you make for a ranged weapon attack ignores disadvantage. If disadvantage would normally apply to the roll, that roll also can't benefit from advantage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"na1-speed dart\", \"na2-seeking missile\", \"na3-faithful archer\"]\r\n};\r\nPsionicsList[\"na1-speed dart\"] = {\r\n\tname : \"Speed Dart\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"1 ranged weapon gains psionic power; next hit with it deals +1d10/PP Psychic damage\",\r\n\tdescriptionFull : \"As a bonus action, you imbue one ranged weapon you hold with psionic power. The next attack you make with it that hits before the end of the current turn deals an extra 1d10 psychic damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"na2-seeking missile\"] = {\r\n\tname : \"Seeking Missile\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you miss with a ranged weapon attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"When I miss with a ranged attack, I can reroll the attack roll against the same target\",\r\n\tdescriptionFull : \"As a reaction when you miss with a ranged weapon attack, you can repeat the attack roll against the same target.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"na3-faithful archer\"] = {\r\n\tname : \"Faithful Archer\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 ranged weapon gains sentience; free attack with it at the start of each turn; thrown weapons return\",\r\n\tdescriptionFull : \"As a bonus action, you imbue a ranged weapon with a limited sentience. Until your concentration ends, you can make an extra attack with the weapon at the start of each of your turns (no action required). If it is a thrown weapon, it returns to your grasp each time you make any attack with it.\",\r\n\tfirstCol : 5\r\n};\r\n//the nomadic chameleon discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic chameleon-ua-psy\"] = {\r\n\tname : \"Nomadic Chameleon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Dexterity (Stealth) checks\",\r\n\tdescriptionFull : \"You create a screen of psychic power that distorts your appearance, allowing you to blend into the background or even turn invisible.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Dexterity (Stealth) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"nc1-chameleon\", \"nc2-step from sight\", \"nc3-enduring invisibility\"]\r\n};\r\nPsionicsList[\"nc1-chameleon\"] = {\r\n\tname : \"Chameleon\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I can hide, regardless of requirements; at end of turn, remain hidden only if requirements are met\",\r\n\tdescriptionFull : \"As an action, you can attempt to hide even if you fail to meet the requirements needed to do so. At the end of the current turn, you remain hidden only if you then meet the normal requirements for hiding.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"nc2-step from sight\"] = {\r\n\tname : \"Step from Sight\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I (+1 crea/extra PP) become invisible; attacking/targeting/affecting other crea makes a crea visible\",\r\n\tdescriptionFull : \"As a bonus action, cloak yourself from sight. You can target one additional creature for every additional psi point you spend on this ability. The added targets must be visible to you and within 60 feet of you.\" + \"\\n   \" + \"Each target turns invisible and remains so until your concentration ends or until immediately after it targets, damages, or otherwise affects any creature with an attack, a spell, or another ability.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"nc3-enduring invisibility\"] = {\r\n\tname : \"Enduring Invisibility\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I turn invisible for the duration\",\r\n\tdescriptionFull : \"As a bonus action, you turn invisible and remain so until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic mind discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic mind-ua-psy\"] = {\r\n\tname : \"Nomadic Mind\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain proficiency with one skill, tool, or language\",\r\n\tdescriptionFull : \"You dispatch part of your psyche into the noosphere, the collective vista of minds and knowledge possessed by living things.\" + PsychicFocus + \"Whenever you focus on this discipline, you choose one skill or tool and have proficiency with it until your focus ends. Alternatively, you gain the ability to read and write one language of your choice until your focus ends.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"nm1-wandering mind\", \"nm2-find creature\", \"nm3-item lore\", \"nm4-psychic speech\", \"nm5-wandering eye\", \"nm6-phasing eye\"]\r\n};\r\nPsionicsList[\"nm1-wandering mind\"] = {\r\n\tname : \"Wandering Mind\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"10 min\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"Gain prof. with 1 skill/2PP: Animal Hand., History, Medicine, Nature, Performance, Religion, Survival\",\r\n\tdescriptionFull : \"You enter a deep contemplation. If you concentrate for this option's full duration, you then gain proficiency with up to three of the following skills (one skill for every 2 psi points spent): Animal Handling, Arcana, History, Medicine, Nature, Performance, Religion, and Survival. The benefit lasts for 1 hour, no concentration required.\",\r\n\tfirstCol : \"2-6\"\r\n};\r\nPsionicsList[\"nm2-find creature\"] = {\r\n\tname : \"Find Creature\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 h\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn general location of a creature, within 1-3 miles; if it's on other plane, learn which plane instead\",\r\n\tdescriptionFull : \"You cast your mind about for information about a specific creature. If you concentrate for this option's full duration, you then gain a general understanding of the creature's current location. You learn the region, city, town, village, or district where it is, pinpointing an area between 1 and 3 miles on a side (DM's choice). If the creature is on another plane of existence, you instead learn which plane.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"nm3-item lore\"] = {\r\n\tname : \"Item Lore\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 h\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 magical item or magic-imbued crea/obj; learn properties, how to use, and spells affecting it\",\r\n\tdescriptionFull : \"You carefully study an item. If you concentrate for this option's full duration while remaining within 5 feet of the item, you then gain the benefits of an identify spell cast on that item.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"nm4-psychic speech\"] = {\r\n\tname : \"Psychic Speech\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"I understand all spoken/written languages and all with a language can understand what I say\",\r\n\tdescriptionFull : \"As an action, you attune your mind to the psychic imprint of all language. For 1 hour, you gain the ability to understand any language you hear or attempt to read. In addition, when you speak, all creatures that can understand a language understand what you say, regardless of what language you use.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"nm5-wandering eye\"] = {\r\n\tname : \"Wandering Eye\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : 'Create invisible, moving (unlimited range, 30ft/rnd) 1\" magic eye with darkvision I see through',\r\n\tdescription : \"Create invisible, moving (unlimited range, 10m/rnd) 2,5cm magic eye /w darkvision I see through\",\r\n\tdescriptionFull : \"As an action, you create a psychic sensor within 60 feet of you. The sensor lasts until your concentration ends. The sensor is invisible and hovers in the air. You mentally receive visual information from it, which has normal vision and darkvision with a range of 60 feet. The sensor can look in all directions. As an action, you can move the sensor up to 30 feet in any direction. There is no limit to how far away from you the eye can move, but it can't enter another plane of existence. A solid barrier blocks the eye's movement, but the eye can pass through an opening as small as 1 inch in diameter.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"nm6-phasing eye\"] = {\r\n\tname : \"Phasing Eye\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"As Wandering Eye above, except the eye can move through objects but can't end its movement in one\",\r\n\tdescriptionFull : \"As Wandering Eye above, except the eye can move through solid objects but can't end its movement in one. If it does so, the effect immediately ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic step discipline (contributed by Justin W.)\r\nPsionicsList[\"nomadic step-ua-psy\"] = {\r\n\tname : \"Nomadic Step\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"1/turn; after I teleport, increase speed by 10 ft until end of my turn\",\r\n\tdescriptionFull : \"You exert your mind on the area around you, twisting the intraplanar pathways you perceive to allow instantaneous travel.\" + PsychicFocus + \"After you teleport on your turn while focused on this discipline, your walking speed increases by 10 feet until the end of the turn, as you are propelled by the magic of your teleportation. You can receive this increase only once per turn.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ns1-step of a dozen paces\", \"ns2-nomadic anchor\", \"ns3-defensive step\", \"ns4-there and back again\", \"ns5-transposition\", \"ns6-baleful transposition\", \"ns7-phantom caravan\", \"ns8-nomad's gate\"]\r\n};\r\nPsionicsList[\"ns1-step of a dozen paces\"] = {\r\n\tname : \"Step of a Dozen Paces\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I teleport up to 20 ft/PP to where I can see, instead of moving this turn; only if not moved yet\",\r\n\tdescriptionFull : \"If you haven't moved yet on your turn, you take a bonus action to teleport up to 20 feet per psi point spent to an unoccupied space you can see, and your speed is reduced to 0 until the end of the turn.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ns2-nomadic anchor\"] = {\r\n\tname : \"Nomadic Anchor\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"Create 5-ft cu teleport anchor; any teleport from this discipline can go to it if within range\",\r\n\tdescriptionFull : \"As an action, you create an invisible, intangible teleportation anchor in a 5-foot cube you can see within 120 feet of you. For the next 8 hours, whenever you use this psionic discipline to teleport, you can instead teleport to the anchor, even if you can't see it, but it must be within range of the teleportation ability.\",\r\n\tfirstCol : 1\r\n};\r\nPsionicsList[\"ns3-defensive step\"] = {\r\n\tname : \"Defensive Step\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"When hit by an attack, I gain +4 AC, and then teleport 10 ft to a space I can see\",\r\n\tdescriptionFull : \"When you are hit by an attack, you can use your reaction to gain a +4 bonus to AC against that attack, possibly turning it into a miss. You then teleport up to 10 feet to an unoccupied space you can see.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ns4-there and back again\"] = {\r\n\tname : \"There and Back Again\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"End of Turn\",\r\n\tdescription : \"I teleport 20 ft and move half my speed; I may teleport back to starting spot at end of my turn\",\r\n\tdescriptionFull : \"As a bonus action, you teleport up to 20 feet to an unoccupied space you can see and then move up to half your speed. At the end of your turn, you can teleport back to the spot you occupied before teleporting, unless it is now occupied or on a different plane of existence.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ns5-transposition\"] = {\r\n\tname : \"Transposition\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Willing creature and I teleport, swapping places, instead of moving this turn; only if not moved yet\",\r\n\tdescriptionFull : \"If you haven't moved yet on your turn, choose an ally you can see within 60 feet of you. As a bonus action, you and that creature teleport, swapping places, and your speed is reduced to 0 until the end of the turn. This ability fails and is wasted if either of you can't fit in the destination space.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ns6-baleful transposition\"] = {\r\n\tname : \"Baleful Transposition\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 creature save or it and I teleport, swapping places\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 120 feet of you. That creature must make a Wisdom saving throw. On a failed save, you and that creature teleport, swapping places. This ability fails and is wasted if either of you can't fit in the destination space.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ns7-phantom caravan\"] = {\r\n\tname : \"Phantom Caravan\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Me and up to 6 willing creatures teleport up to 1 mile to a spot I can see\",\r\n\tdescriptionFull : \"As an action, you and up to six willing creatures of your choice that you can see within 60 feet of you teleport up to 1 mile to a spot you can see. If there isn't an open space for all the targets to occupy at the arrival point, this ability fails and is wasted.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"ns8-nomad's gate\"] = {\r\n\tname : \"Nomad's Gate\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Create a 5-ft cu in range, and another up to 1 mile away; anyone entering one, teleports to the other\",\r\n\tdescriptionFull : \"As an action, you create a 5-foot cube of dim, gray light within 5 feet of you. You create an identical cube at any point of your choice within 1 mile that you have viewed within the past 24 hours. Until your concentration ends, anyone entering one of the cubes immediately teleports to the other one, appearing in an unoccupied space next to it. The teleportation fails if there is no space for the creature to appear in.\",\r\n\tfirstCol : 7\r\n};\r\n//the precognition discipline (contributed by Justin W.)\r\nPsionicsList[\"precognition-ua-psy\"] = {\r\n\tname : \"Precognition\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advangage on initiative rolls\",\r\n\tdescriptionFull : \"By analyzing information around you, from subtle hints to seemingly disconnected facts, you learn to weave a string of probabilities in an instant that gives you extraordinary insights.\" + PsychicFocus + \"While focused on this discipline, you have advantage on initiative rolls.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"p1-precognitive hunch\", \"p2-all-around sight\", \"p3-danger sense\", \"p4-victory before battle\"]\r\n};\r\nPsionicsList[\"p1-precognitive hunch\"] = {\r\n\tname : \"Precognitive Hunch\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I add 1d4 to attack rolls, saving throws, and ability checks\",\r\n\tdescriptionFull : \"As a bonus action, you open yourself to receive momentary insights that improve your odds of success; until your concentration ends, whenever you make an attack roll, a saving throw, or an ability check, you roll a d4 and add it to the total.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"p2-all-around sight\"] = {\r\n\tname : \"All-Around Sight\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"After an attack hits me, impose disadvantage on that attack roll\",\r\n\tdescriptionFull : \"In response to an attack hitting you, you use your reaction to impose disadvantage on that attack roll, possibly causing it to miss.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"p3-danger sense\"] = {\r\n\tname : \"Danger Sense\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 8 h\",\r\n\tdescription : \"I gain +10 on the initiative roll, can't be surprised, and attacks against me can't gain advantage\",\r\n\tdescriptionFull : \"As an action, you create a psychic model of reality in your mind and set it to show you a few seconds into the future. Until your concentration ends, you can't be surprised, attack rolls against you can't gain advantage, and you gain a +10 bonus to initiative.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"p4-victory before battle\"] = {\r\n\tname : \"Victory Before Battle\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"\",\r\n\trange : \"60-ft rad\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use when rolling initiative; grant myself and up to 5 creatures +10 on the initiative roll\",\r\n\tdescriptionFull : \"When you roll initiative, you can use this ability to grant yourself and up to five creatures of your choice within 60 feet of you a +10 bonus to initiative.\",\r\n\tfirstCol : 7\r\n};\r\n//the psionic restoration discipline (contributed by Justin W.)\r\nPsionicsList[\"psionic restoration-ua-psy\"] = {\r\n\tname : \"Psionic Restoration\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"While focused, I can touch a creature with 0 HP as a bonus action and stabilize it\",\r\n\tdescriptionFull : \"You wield psionic energy to cure wounds and restore health to yourself and others.\" + PsychicFocus + \"While focused on this discipline, you can use a bonus action to touch a creature that has 0 hit points and stabilize it.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pr1-mend wounds\", \"pr2-restore health\", \"pr3-restore life\", \"pr4-restore vigor\"]\r\n};\r\nPsionicsList[\"pr1-mend wounds\"] = {\r\n\tname : \"Mend Wounds\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature is healed for 1d8/PP HP\",\r\n\tdescriptionFull : \"As an action, you can spend psi points to restore hit points to one creature you touch. The creature regains 1d8 hit points per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pr2-restore health\"] = {\r\n\tname : \"Restore Health\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature is cured of either blindness, deafness, paralysis, poison, or 1 disease\",\r\n\tdescriptionFull : \"As an action, you touch one creature and remove one of the following conditions from it: blinded, deafened, paralyzed, or poisoned. Alternatively, you remove one disease from the creature.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pr3-restore life\"] = {\r\n\tname : \"Restore Life\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Resurrects 1 crea that has died in last minute to 1 HP, if not missing vital body parts or died of old age\",\r\n\tdescriptionFull : \"As an action, you touch one creature that has died within the last minute. The creature returns to life with 1 hit point. This ability can't return to life a creature that has died of old age, nor can it restore a creature missing any vital body parts.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pr4-restore vigor\"] = {\r\n\tname : \"Restore Vigor\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea removes either 1 ability score reduction, 1 HP max reduction effect, or 1 level of exhaustion\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and choose one of the following: remove any reductions to one of its ability scores, remove one effect that reduces its hit point maximum, or reduce its exhaustion level by one.\",\r\n\tfirstCol : 7\r\n};\r\n//the psionic weapon discipline (contributed by Justin W.)\r\nPsionicsList[\"psionic weapon-ua-psy\"] = {\r\n\tname : \"Psionic Weapon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"1 weapon or unarmed strike does Psychic dmg and counts as magical; no Str or Dex to dmg until CL6\",\r\n\tdescriptionFull : \"You have learned how to channel psionic energy into your attacks, lending them devastating power.\" + PsychicFocus + \"Whenever you focus on this discipline, choose one weapon you're holding or your unarmed strike. When you attack with it while focused on this discipline, its damage is psychic and magical, rather than its normal damage type. Until you reach 6th level as a mystic, you don't add your Strength or Dexterity modifier to the psychic attack's damage rolls.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pw1-ethereal weapon\", \"pw2-lethal strike\", \"pw3-augmented weapon\"]\r\n};\r\nPsionicsList[\"pw1-ethereal weapon\"] = {\r\n\tname : \"Ethereal Weapon\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"1 crea save or auto hit by my next wea/unarmed atk; save halves atk dmg \\u0026 negates any side-effects\",\r\n\tdescriptionFull : \"As a bonus action, you temporarily transform one weapon you're holding or your unarmed strike into pure psionic energy. The next attack you make with it before the end of your turn ignores the target's armor, requiring no attack roll. Instead, the target makes a Dexterity saving throw against this discipline. On a failed save, the target takes the attack's normal damage and suffers its additional effects. On a successful save, the target takes half damage from the attack but suffers no additional effects that would normally be imposed on a hit.\",\r\n\tfirstCol : 1\r\n};\r\nPsionicsList[\"pw2-lethal strike\"] = {\r\n\tname : \"Lethal Strike\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"My next weapon or unarmed attack that hits does +1d10/PP Psychic damage\",\r\n\tdescriptionFull : \"As a bonus action, you imbue a weapon you're holding or your unarmed strike with psychic energy. The next time you hit with it before the end of your turn, it deals an extra 1d10 psychic damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pw3-augmented weapon\"] = {\r\n\tname : \"Augmented Weapon\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"1 weapon becomes a magic weapon with a +3 bonus to its attack and damage rolls\",\r\n\tdescriptionFull : \"As a bonus action, touch one simple or martial weapon. Until your concentration ends, that weapon becomes a magic weapon with a +3 bonus to its attack and damage rolls.\",\r\n\tfirstCol : 5\r\n};\r\n//the psychic assault discipline\r\nPsionicsList[\"psychic assault-ua-psy\"] = {\r\n\tname : \"Psychic Assault\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +2 bonus to damage rolls with psionic talents that deal Psychic damage\",\r\n\tdescriptionFull : \"You wield your mind like a weapon, unleashing salvos of psionic energy.\" + PsychicFocus + \"While focused on this discipline, you gain a +2 bonus to damage rolls with psionic talents that deal psychic damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pa1-psionic blast\", \"pa2-ego whip\", \"pa3-id insinuation\", \"pa4-psychic blast\", \"pa5-psychic crush\"]\r\n};\r\nPsionicsList[\"pa1-psionic blast\"] = {\r\n\tname : \"Psionic Blast\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature takes 1d8/PP Psychic damage\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target takes 1d8 psychic damage per psi point spent on this ability.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pa2-ego whip\"] = {\r\n\tname : \"Ego Whip\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 3d8 Psychic dmg, next turn just Dodge/Disengage/Hide action; save half \\u0026 act normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, the creature takes 3d8 psychic damage, and it is filled with self-doubt, leaving it able to use its action on its next turn only to take the Dodge, Disengage, or Hide action. On a successful saving throw, it takes half as much damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pa3-id insinuation\"] = {\r\n\tname : \"Id Insinuation\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 5d8 Psychic dmg, next turn only Dodge/Attack action; save halves \\u0026 act normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, the creature takes 5d8 psychic damage, and it goes into a fury, as its id runs rampant. On its next turn, it can use its action only to take the Dodge or Attack action. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pa4-psychic blast\"] = {\r\n\tname : \"Psychic Blast\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft cone\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"All creatures 8d8(+2d8/extra PP) Psychic dmg; save halves\",\r\n\tdescriptionFull : \"As an action, you unleash devastating psychic energy in a 60-foot cone. Each creature in that area must make an Intelligence saving throw, taking 8d8 psychic damage on a failed save, or half as much damage on a successful one. You can increase the damage by 2d8 if you spend 1 more psi point on this ability.\",\r\n\tfirstCol : \"6-7\"\r\n};\r\nPsionicsList[\"pa5-psychic crush\"] = {\r\n\tname : \"Psychic Crush\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"20-ft cu all crea save or 8d8 Psychic dmg \\u0026 stunned until my next turn ends; save halves \\u0026 no stun\",\r\n\tdescriptionFull : \"As an action, you create a 20-foot cube of psychic energy within 120 feet of you. Each creature in that area must make an Intelligence saving throw. On a failed save, a target takes 8d8 psychic damage and is stunned until the end of your next turn. On a successful save, a target takes half as much damage.\",\r\n\tfirstCol : 7\r\n};\r\n//the psychic disruption discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic disruption-ua-psy\"] = {\r\n\tname : \"Psychic Disruption\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I have advantage on Charisma (Deception) checks\",\r\n\tdescriptionFull : \"You create psychic static that disrupts other creatures' ability to think clearly.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Deception) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pd1-distracting haze\", \"pd2-daze\", \"pd3-mind storm\"]\r\n};\r\nPsionicsList[\"pd1-distracting haze\"] = {\r\n\tname : \"Distracting Haze\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, can't see more than 10 ft; save halves and see normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. That creature must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and can't see anything more than 10 feet from it until your concentration ends. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pd2-daze\"] = {\r\n\tname : \"Daze\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or incapacitated until end of my next turn or it takes any damage\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. That creature must make an Intelligence saving throw. On a failed save, the target is incapacitated until the end of your next turn or until it takes any damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pd3-mind storm\"] = {\r\n\tname : \"Mind Storm\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"20-ft rad all crea 6d8(+1d6/extra PP) Psychic dmg and dis. on saves; save halves and no dis. on saves\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Each creature in a 20-foot-radius sphere centered on that point must make a Wisdom saving throw. On a failed save, a target takes 6d8 psychic damage and suffers disadvantage on all saving throws until the end of your next turn. On a successful save, a creature takes half as much damage. You can increase the damage by 1d6 per additional psi point spent on this ability.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\n//the psychic inquisition discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic inquisition-ua-psy\"] = {\r\n\tname : \"Psychic Inquisition\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I know when a creature telepathically communicating with me is lying\",\r\n\tdescriptionFull : \"You reach into a creature's mind to uncover information or plant ideas within it.\" + PsychicFocus + \"While focused on this discipline, you know when a creature communicating with you via telepathy is lying.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pi1-hammer of inquisition\", \"pi2-forceful query\", \"pi3-ransack mind\", \"pi4-phantom idea\"]\r\n};\r\nPsionicsList[\"pi1-hammer of inquisition\"] = {\r\n\tname : \"Hammer of Inquisition\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, dis. next Wis save before my next turn; save halves \\u0026 no effects\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and suffers disadvantage on its next Wisdom saving throw before the end of your next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pi2-forceful query\"] = {\r\n\tname : \"Forceful Query\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or they must truthfully answer a yes or no question (charm effect)\",\r\n\tdescriptionFull : \"As an action, you ask a question of one creature that can see and hear you within 30 feet of you. The question must be phrased so that it can be answered with a yes or no, otherwise this ability fails. The target must succeed on a Wisdom saving throw, or it replies with a truthful answer. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"pi3-ransack mind\"] = {\r\n\tname : \"Ransack Mind\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 h\",\r\n\trange : \"30 ft\",\r\n\tduration : \"12/24/48 h\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 3 saves if in range for full duration; learn key memories from 12/24/48 h (1/2/3 failed saves)\",\r\n\tdescriptionFull : \"While you concentrate on this ability, you probe one creature's mind. The creature must remain within 30 feet of you, and you must be able to see it. If you reach the ability's full duration, the target must make three Intelligence saving throws, and you learn information from it based on the number of saving throws it fails.\" + \"\\n   \" + \"With one failed saving throw, you learn its key memories from the past 12 hours.\" + \"\\n   \" + \"With two failed saving throws, you learn its key memories from the past 24 hours.\" + \"\\n   \" + \"With three failed saving throws, you learn its key memories from the past 48 hours.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pi4-phantom idea\"] = {\r\n\tname : \"Phantom Idea\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 h\",\r\n\trange : \"30 ft\",\r\n\tduration : \"4/24/48 h\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 3 saves if in range for full duration; implant memory lasting 4/24/48 h (1/2/3 failed saves)\",\r\n\tdescriptionFull : \"While you concentrate on this ability, you probe one creature's mind. The creature must remain within 30 feet of you, and you must be able to see it. If you reach the ability's full duration, the target must make three Intelligence saving throws, and you plant a memory or an idea in it, which lasts for a number of hours based on the number of saving throws it fails. You choose whether the idea or memory is trivial (such as “I had porridge for breakfast” or “Ale is the worst”) or personality-defining (“I failed to save my village from orc marauders and am therefore a coward” or “Magic is a scourge, so I renounce it”).\" + \"\\n   \" + \"With one failed saving throw, the idea or memory lasts for the next 4 hours. With two failed saving throws, it lasts for 24 hours. With three failed saving throws, it lasts for 48 hours.\",\r\n\tfirstCol : 6\r\n};\r\n//the psychic phantoms discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic phantoms-ua-psy\"] = {\r\n\tname : \"Psychic Phantoms\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Deception) checks\",\r\n\tdescriptionFull : \"Your power reaches into a creature's mind and causes it false perceptions.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Deception) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pp1-distracting figment\", \"pp2-phantom foe\", \"pp3-phantom betrayal\", \"pp4-phantom riches\"]\r\n};\r\nPsionicsList[\"pp1-distracting figment\"] = {\r\n\tname : \"Distracting Figment\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, can't use rea, melee atks vs. it have adv.; save halves \\u0026 no effects\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and thinks it perceives a threatening creature just out of its sight; until the end of your next turn, it can't use reactions, and melee attack rolls against it have advantage. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pp2-phantom foe\"] = {\r\n\tname : \"Phantom Foe\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or no rea and 1d8(+1d8/extra PP) Psychic dmg at start its turn; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it perceives a horrid creature adjacent to it until your concentration ends. During this time, the target can't take reactions, and it takes 1d8 psychic damage at the start of each of its turns. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. You can increase the damage by 1d8 for each additional psi point spent on the ability.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"pp3-phantom betrayal\"] = {\r\n\tname : \"Phantom Betrayal\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or targets its allies with attacks/damaging effects; save at end of each turn (charm effect)\",\r\n\tdescriptionFull : \"As an action, you plant delusional paranoia in a creature's mind. Choose one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or until your concentration ends, it must target its allies with attacks and other damaging effects. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pp4-phantom riches\"] = {\r\n\tname : \"Phantom Riches\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I move it and it can't act if not taking dmg since last turn; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you plant the phantom of a greatly desired object in a creature's mind. Choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, you gain partial control over the target's behavior until your concentration ends; the target moves as you wish on each of its turns, as it thinks it pursues the phantom object it desires. If it hasn't taken damage since its last turn, it can use its action only to admire the object you created in its perception. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the telepathic contact discipline (contributed by Justin W.)\r\nPsionicsList[\"telepathic contact-ua-psy\"] = {\r\n\tname : \"Telepathic Contact\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Use telepathy class feature with up to 6 crea; If no telepathy feature, gain telepathy 120 ft instead\",\r\n\tdescriptionFull : \"By channeling psionic power, you gain the ability to control other creatures by substituting your will for their own.\" + PsychicFocus + \"While focused on this discipline, you gain the ability to use your Telepathy class feature with up to six creatures at once. If you don't have that feature from the mystic class, you instead gain it while focused on this discipline.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"tc1-exacting query\", \"tc2-occluded mind\", \"tc3-broken will\", \"tc4-psychic grip\", \"tc5-psychic domination\"]\r\n};\r\nPsionicsList[\"tc1-exacting query\"] = {\r\n\tname : \"Exacting Query\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or answer 1 telepathically asked question; on save, target is immune until my long rest\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, the target truthfully answers one question you ask it via telepathy. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"tc2-occluded mind\"] = {\r\n\tname : \"Occluded Mind\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"5 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or believes telepathic statement; on save, target immune until my long rest (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, the target believes one statement of your choice for the next 5 minutes that you communicate to it via telepathy. The statement can be up to ten words long, and it must describe you or a creature or an object the target can see. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"tc3-broken will\"] = {\r\n\tname : \"Broken Will\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I control it on its next turn; on save, target immune until my long rest (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, you choose the target's movement and action on its next turn. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"tc4-psychic grip\"] = {\r\n\tname : \"Psychic Grip\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or paralyzed; save at end of each turn, on failure I use rea to have it move half its speed\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or it is paralyzed until your concentration ends. At the end of each of its turns, it can repeat the saving throw. On a success, this effect ends. On a failure, you can use your reaction to force the target to move up to half its speed, even though it's paralyzed.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"tc5-psychic domination\"] = {\r\n\tname : \"Psychic Domination\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I direct its actions and move on its turns; save at end of each turn (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or you choose the creature's actions and movement on its turns until your concentration ends. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 7\r\n};\r\n//the third eye discipline (contributed by Justin W.)\r\nPsionicsList[\"third eye-ua-psy\"] = {\r\n\tname : \"Third Eye\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain darkvision 60 ft; if already darkvision of 60 ft or more, increase range by 10 ft instead\",\r\n\tdescriptionFull : \"You create a third, psychic eye in your mind which you cast out into the world. It channels thoughts and knowledge back to you, greatly enhancing your senses.\" + PsychicFocus + \"While focused on this discipline, you have darkvision with a range of 60 feet. If you already have darkvision with that range or greater, increase its range by 10 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"te1-tremorsense\", \"te2-unwavering eye\", \"te3-piercing sight\", \"te4-truesight\"]\r\n};\r\nPsionicsList[\"te1-tremorsense\"] = {\r\n\tname : \"Tremorsense\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain tremorsense with a radius of 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain tremorsense with a radius of 30 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"te2-unwavering eye\"] = {\r\n\tname : \"Unwavering Eye\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"I gain advantage on Wisdom checks\",\r\n\tdescriptionFull : \"As a bonus action, you gain advantage on Wisdom checks for 1 minute\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"te3-piercing sight\"] = {\r\n\tname : \"Piercing Sight\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I see through objects that are up to 1 ft thick within 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain the ability to see through objects that are up to 1 foot thick within 30 feet of you. This sight lasts until your concentration ends.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"te4-truesight\"] = {\r\n\tname : \"Truesight\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain truesight with a radius of 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain truesight with a radius of 30 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\n\r\n// Psionic Discipline 'Mastery of Force' power 'Inertial Armour'\r\nArmourList[\"inertial armor-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*(inertial|psychic|psionic))(?=.*armou?r).*$/i,\r\n\tname : \"Inertial armor\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tac : 14,\r\n\tlist : \"magic\"\r\n};\r\n\r\n// Psionic Talents that work like damage cantrips\r\nWeaponsList[\"energy beam-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\benergy\\b)(?=.*\\bbeam\\b).*$/i,\r\n\tname : \"Energy Beam\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"My choice\"],\r\n\trange : \"90 ft\",\r\n\tdescription : \"Dex save, success - no damage; Acid, cold, fire, lightning, or thunder damage [my choice]\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"mind slam-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bmind\\b)(?=.*\\bslam\\b).*$/i,\r\n\tname : \"Mind Slam\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - Large or smaller target also knocked prone\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"mind thrust-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bmind\\b)(?=.*\\bthrust\\b).*$/i,\r\n\tname : \"Mind Thrust\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"psychic\"],\r\n\trange : \"120 ft\",\r\n\tdescription : \"Int save, success - no damage\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"psychic hammer-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bpsychic\\b)(?=.*\\bhammer\\b).*$/i,\r\n\tname : \"Psychic Hammer\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"120 ft\",\r\n\tdescription : \"Str save, success - no damage, fail - also move 10 ft in chosen direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\n// ua_20170320_Wizard-Revisited.js\n// This file adds the content from the Unearthed Arcana: Wizard Revisited article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:WR\"] = {\n\tname : \"Unearthed Arcana: Wizard Revisited\",\n\tabbreviation : \"UA:WR\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2017/dnd/downloads/MJ320UAWizardVF2017.pdf\",\n\tdate : \"2017/03/20\"\n};\n\n// Adds 1 new subclass for the Wizard (with contributions by erickrause)\nAddSubClass(\"wizard\", \"war magic-ua\", {\n\tregExpSearch : /^(?=.*war)(?=.*(magic|mage)).*$/i,\n\tsubname : \"War Magic\",\n\tsource : [[\"UA:WR\", 2]],\n\tfullname : \"War Mage\",\n\tfeatures : {\n\t\t\"subclassfeature2\" : { //has to be identical to a feature named in the ClassList\n\t\t\tname : \"Arcane Deflection\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when I'm hit by an attack, I can gain +2 to my AC against that attack\",\n\t\t\t\t\"As a reaction when I fail a Con save, I can gain +4 bonus to that saving throw\",\n\t\t\t\t\"After I do either, I can't cast spells other than cantrips until the end of my next turn\"\n\t\t\t]),\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Tactical Wit\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"\n\t\t\t]),\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Power Surge\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When multiple targets have to save vs. one of my spells, I can have it do more damage\",\n\t\t\t\t\"On the turn I cast the spell, I can roll 2 additional damage dice for it\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\"\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Durable Magic\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"While I'm maintaining concentration on a spell, I gain +2 to AC and all saving throws\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Deflecting Shroud\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I use my Arcane Deflection feature, magical energy arcs from me\",\n\t\t\t\t\"Any creatures of my choice within 10 ft of me take half my level in force damage\"\n\t\t\t]),\n\t\t\tadditional : levels.map( function(n) { return n < 14 ? \"\" : Math.floor(n/2) + \" force damage\"; })\n\t\t}\n\t}\n});\n\n// ua_20170327_A Trio-of-Subclasses.js\r\n// This file adds the content from the Unearthed Arcana: A Trio of Subclasses article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:AToS\"] = {\r\n\tname : \"Unearthed Arcana: A Trio of Subclasses\",\r\n\tabbreviation : \"UA:AToS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UAThreeSubclasses.pdf\",\r\n\tdate : \"2017/03/27\"\r\n};\r\n\r\n// Adds three subclass: 1 for the Monk, 1 for the Paladin, and 1 for the Ranger\r\nAddSubClass(\"monk\", \"way of the drunken master-ua\", {\r\n\tregExpSearch : /^((?=.*drunken)(?=.*master))|((?=.*drunk)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Drunken Master\",\r\n\tsubnameShort: \"Drunken Master\",\r\n\tfullname : \"Drunken Master\",\r\n\tsource : [[\"UA:AToS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Drunken Technique\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the Performance skill\",\r\n\t\t\t\t\"When using Flurry of Blows, I gain the benefits of a Disengage and +10 ft speed this turn\"\r\n\t\t\t]),\r\n\t\t\tskills : [\"Performance\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Tipsy Sway\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction when missed in melee, attacker instead hits another I can see within 5 ft\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drunkard's Luck\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Before I roll for a save, I can spend 1 ki to give myself advantage on it\"),\r\n\t\t\tadditional : \"1 ki point\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Intoxicated Frenzy\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I can make 3 extra attacks with Flurry of Blows if each is used on a different target\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of redemption-ua\", {\r\n\tregExpSearch : /^((?=.*redeemer)|((?=.*redemption)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Redemption\",\r\n\tsubnameShort: \"Redemption\",\r\n\tsource : [[\"UA:AToS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Armor of Peace\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When not wearing armor or wielding a shield, my AC is 16 + my Dexterity modifier\"),\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*armou?r)(?=.*peace).*$/i,\r\n\t\t\t\tname : \"Armor of Peace\",\r\n\t\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\t\tac : 16,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"shield\", \"sleep\", \"hold person\", \"ray of enfeeblement\", \"counterspell\", \"hypnotic pattern\", \"otiluke's resilient sphere\", \"stoneskin\", \"hold monster\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Emissary of Peace\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, I gain +5 to my next Charisma (Persuasion) check in the next min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Channel Divinity: Rebuke the Violent\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile within 10 ft damages another in melee, I can rebuke it\",\r\n\t\t\t\t\"It takes the same damage as it dealt but as radiant damage, with a Wis save to halve it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.3\" : {\r\n\t\t\tname : \"Warrior of Reconciliation\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can charm a creature when I reduce it to 0 HP with a simple, bludgeoning weapon\",\r\n\t\t\t\t\"It is peaceful, docile and only does what I command it to, but it can't cause harm\",\r\n\t\t\t\t\"For 1 min, until I'm incap., or I or allies attack it or have it save; after it is unconscious\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Guardian\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when an ally within 10 ft takes damage, I instead take the damage\",\r\n\t\t\t\t\"This damage can't be reduced in any way; Other effects might still apply to my ally\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Protective Spirit\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"At the end of my turn when I'm below half HP and not incapacitated, I regain HP\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"1d6+\" + Math.floor(n/2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Emissary of Redemption\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When taking damage from a creature, I take only half and it takes the other half\",\r\n\t\t\t\t\"This stops working on any that I attack or force to make a save, until I have a long rest\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"All from creatures\"]\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Monster Slayer subclass to both the normal and Revised Ranger (if it is defined)\r\nvar UAAToS_rangerSubclassMonsterSlayerUA = AddSubClass(\"ranger\", \"monster slayer-ua\", {\r\n\tregExpSearch : /^(?=.*monster)(?=.*slayer).*$/i,\r\n\tsubname : \"Monster Slayer\",\r\n\tsource : [[\"UA:AToS\", 3]],\r\n\tfullname : \"Monster Slayer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Slayer's Mysticism\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"zone of truth\", \"magic circle\", \"banishment\", \"planar binding\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Slayer's Eye\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can study a creature within 120 ft that I can see\",\r\n\t\t\t\t\"I learn its vulnerabilities, immunities, resistances, and the effects damaging it can have\",\r\n\t\t\t\t\"My first weapon hit on it each turn does +1d6 damage, until I study another or rest\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Supernatural Defense\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add 1d6 to saves I make against abilities of the current target of my Slayer's Eye\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Relentless Slayer\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, I can stop the target of my Slayer's Eye from escaping, if within 30 ft\",\r\n\t\t\t\t\"If I win a contested Wis check, it wastes it action to teleport/transform/plane shift\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Slayer's Counter\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when the target of my Slayer's Eye has me make a save, I can attack it\",\r\n\t\t\t\t\"I can make one weapon attack; If this hits, I automatically succeed on the saving throw\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UAAToS_rangerSubclassMonsterSlayerUA); };\r\n\n// ua_20170403_Starter-Spells.js\r\n// This file adds the content from the Unearthed Arcana: Starter Spells article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SS\"] = {\r\n\tname : \"Unearthed Arcana: Starter Spells\",\r\n\tabbreviation : \"UA:SS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-Starter-Spells.pdf\",\r\n\tdate : \"2017/04/03\"\r\n};\r\n\r\n/*\tAdds 17 spells of lower levels to all class' spell lists\r\n\t\r\n\tThis code was contributed by SoilentBrad\r\n*/\r\nSpellsList[\"cause fear-uass\"] = {\r\n\tname : \"Cause Fear\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or frightened; crea disadvantage on save if 25 HP or less; no effect on undead/constructs\",\r\n\tdescriptionFull : \"You awaken the sense of mortality in one creature you can see within range. The target must succeed on a Wisdom saving throw or become frightened for the duration. A target with 25 hit points or fewer makes the saving throw with disadvantage. The spell has no effect on constructs or undead.\"\r\n};\r\nSpellsList[\"ceremony-uass\"] = {\r\n\tname : \"Ceremony\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"25 gp worth of powdered silver\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Perform religious ceremony on target(s) that are within 10 ft throughout the casting; see book (25gp)\",\r\n\tdescriptionFull : \"You perform one of several religious ceremonies. When you cast the spell, choose one of the following ceremonies, the target of which must be within 10 feet of you throughout the casting.\" + \"\\n   \" + toUni(\"Atonement\") + \": You touch one willing creature whose alignment has changed, and you make a DC 20 Wisdom (Insight) check. On a success, you restore the target to its original alignment.\" + \"\\n   \" + toUni(\"Bless Water\") + \": You touch one vial of water and cause it to become holy water.\" + \"\\n   \" + toUni(\"Coming of Age\") + \": You touch one humanoid old enough to be a young adult. For the next 24 hours, whenever the target makes an ability check, it can roll a d4 and add the number rolled to the ability check. A creature can benefit from this ceremony just once.\" + \"\\n   \" + toUni(\"Dedication\") + \": You touch one humanoid who would willingly convert to your religion or who wishes to be dedicated to your god's service. For the next 24 hours, whenever the target makes a saving throw, it can roll a d4 and add the number rolled to the save. A creature can benefit from this ceremony just once.\" + \"\\n   \" + toUni(\"Funeral Rite\") + \": You bless one corpse within 5 feet of you. For the next 24 hours, the target can't become undead by any means short of a wish spell.\" + \"\\n   \" + toUni(\"Investiture\") + \": You touch one willing humanoid. Choose one 1st-level spell you have prepared and expend a spell slot and any material components as if you were casting that spell. The spell has no effect. Instead, the target can cast this spell once without having to expend a spell slot or use material components. If the target doesn't cast the spell within 1 hour, the invested spell is lost.\" + \"\\n   \" + toUni(\"Marriage\") + \": You touch adult humanoids willing to be bonded together in marriage. For the next 24 hours, each target gains a +2 bonus to AC and saving throws while they are within 30 feet of each other. A creature can benefit from this ceremony just once.\"\r\n};\r\nSpellsList[\"chaos bolt-uass\"] = {\r\n\tname : \"Chaos Bolt\",\r\n\tclasses : [\"sorcerer\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell atk 2d8+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft of target\",\r\n\tdescriptionFull : \"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 damage. Choose one of the d8s. The number it rolled determines the type of damage, as shown below.\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Damage Type\") + \"\\n  1\\tAcid\" + \"\\n  2\\tCold\" + \"\\n  3\\tFire\" + \"\\n  4\\tForce\" + \"\\n  5\\tLightning\" + \"\\n  6\\tPoison\" + \"\\n  7\\tPsychic\" + \"\\n  8\\tThunder\" + \"\\n\\n   \" + \"If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\" + \"\\n   \" + \"A creature can be targeted only once by this mass of chaotic energy.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, each target takes extra damage of the type rolled. The extra damage equals 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"guiding hand-uass\"] = {\r\n\tname : \"Guiding Hand\",\r\n\tclasses : [\"bard\", \"cleric\", \"druid\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 8 h\",\r\n\tdescription : \"Tiny incorporeal hand directs me to one major landmark I name that is on the same plane\",\r\n\tdescriptionFull : \"You create a Tiny incorporeal hand of shimmering light in an unoccupied space you can see within range. The hand exists for the duration, but it disappears if you teleport or you travel to a different plane of existence.\" + \"\\n   \" + \"When the hand appears, you name one major landmark, such as a city, mountain, castle, or battlefield on the same plane of existence as you. Someone in history must have visited the site and mapped it. If the landmark appears on no map in existence, the spell fails. Otherwise, whenever you move toward the hand, it moves away from you at the same speed you moved, and it moves in the direction of the landmark, always remaining 5 feet away from you.\" + \"\\n   \" + \"If you don't move toward the hand, it remains in place until you do and beckons for you to follow once every 1d4 minutes.\"\r\n};\r\nSpellsList[\"hand of radiance-uass\"] = {\r\n\tname : \"Hand of Radiance\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any creatures I can see in 5-ft radius save or 1d6 Radiant damage; +1d6 damage at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Any creatures I can see in 5-ft radius save or `CD`d6 Radiant damage\",\r\n\tdescriptionFull : \"You raise your hand, and burning radiance erupts from it. Each creature of your choice that you can see within 5 feet of you must succeed on a Constitution saving throw or take 1d6 radiant damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"healing elixir-uass\"] = {\r\n\tname : \"Healing Elixir\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Alchemist's supplies\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Make vial with alchemist's supplies; heals 2d4+2 HP as an action; if not used, disappears after 24 h\",\r\n\tdescriptionShorter : \"Make vial with alchemist's supplies; 1 a to heal 2d4+2 HP; if not used, disappears after 24 h\",\r\n\tdescriptionFull : \"You create a healing elixir in a simple vial that appears in your hand. The elixir retains its potency for the duration or until it's consumed, at which point the vial vanishes.\" + \"\\n   \" + \"As an action, a creature can drink the elixir or administer it to another creature. The drinker regains 2d4 + 2 hit points.\"\r\n};\r\nSpellsList[\"infestation-uass\"] = {\r\n\tname : \"Infestation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A living flea\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Piercing damage and moved 5 ft in random direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Piercing damage and moved 5 ft in random direction\",\r\n\tdescriptionFull : \"You cause mites, fleas, and other parasites to appear momentarily on one creature you can see within range. The target must succeed on a Constitution saving throw or take 1d6 piercing damage. If the target takes any of that damage, the target moves 5 feet in a random direction. Roll a d8 for the direction:\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Direction\") + \"\\n  1\\tNorth\" + \"\\n  2\\tNortheast\" + \"\\n  3\\tEast\" + \"\\n  4\\tSoutheast\" + \"\\n  5\\tSouth\" + \"\\n  6\\tSouthwest\" + \"\\n  7\\tWest\" + \"\\n  8\\tNorthwest\" + \"\\n\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"primal savagery-uass\"] = {\r\n\tname : \"Primal Savagery\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack deals 1d10 Piercing or Slashing dmg (my choice); +1d10 at CL 5, 11, and 17\",\r\n\tdescription : \"Melee spell attack deals `CD`d10 Piercing or Slashing dmg (my choice)\",\r\n\tdescriptionFull : \"Your teeth or fingernails lengthen and sharpen. You choose which. Make a melee spell attack against one creature within 5 feet of you. On a hit, the target takes 1d10 piercing or slashing damage (your choice). After you make the attack, your teeth or fingernails return to normal.\" + \"\\n   \" + \"The spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nSpellsList[\"puppet-uass\"] = {\r\n\tname : \"Puppet\",\r\n\tclasses : [\"bard\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 humanoid save or move its speed to where I choose and drop held items, if chosen (charm effect)\",\r\n\tdescriptionFull : \"Your gesture forces one humanoid you can see within range to make a Constitution saving throw. On a failed save, the target must move up to its speed in a direction you choose. In addition, you can cause the target to drop whatever it is holding. This spell has no effect on a humanoid that is immune to being charmed.\"\r\n};\r\nSpellsList[\"sense emotion-uass\"] = {\r\n\tname : \"Sense Emotion\",\r\n\tclasses : [\"bard\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Now and as 1 a for duration, sense emotion of humanoid in range; sense calm if not humanoid/charm\",\r\n\tdescriptionFull : \"You attune your senses to pick up the emotions of others for the duration. When you cast the spell, and as your action on each turn until the spell ends, you can focus your senses on one humanoid you can see within 30 feet of you. You instantly learn the target's prevailing emotion, whether it's love, anger, pain, fear, calm, or something else. If the target isn't actually humanoid or it is immune to being charmed, you sense that it is calm.\"\r\n};\r\nSpellsList[\"snare-uass\"] = {\r\n\tname : \"Snare\",\r\n\tclasses : [\"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"30 feet of cord or rope, which is consumed by the spell\",\r\n\tduration : \"Dispel/trigger\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft rad magical trap; Int (Inv) to see; save or restrained upside down 3 ft in the air; save/rnd at dis\",\r\n\tdescriptionFull : \"While you cast this spell, you use the cord or rope to create a circle with a 5-foot radius on a flat surface within your reach. When you finish casting, the cord or rope disappears to become a magical trap.\" + \"\\n   \" + \"The trap is nearly invisible and requires a successful Intelligence (Investigation) check against your spell save DC to be found.\" + \"\\n   \" + \"The trap triggers when a Small creature or larger moves into the area protected by the spell. The triggering creature must succeed on a Dexterity saving throw or fall prone and be hoisted into the air until it hangs upside down 3 feet above the protected surface, where it is restrained.\" + \"\\n   \" + \"The restrained creature can make a Dexterity saving throw with disadvantage at the end of each of its turns and ends the restrained effect on a success. Alternatively, another creature that can reach the restrained creature can use an action to make an Intelligence (Arcana) check against your spell save DC. On a success, the restrained effect also ends.\"\r\n};\r\nSpellsList[\"sudden awakening-uass\"] = {\r\n\tname : \"Sudden Awakening\",\r\n\tclasses : [\"bard\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Any creatures within range awaken and can then stand up from prone without expending movement\",\r\n\tdescriptionFull : \"Each sleeping creature you choose within range awakens, and then each prone creature within range can stand up without expending any movement.\"\r\n};\r\nSpellsList[\"unearthly chorus-uass\"] = {\r\n\tname : \"Unearthly Chorus\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"Use bns a to make 1 crea in range save or be friendly for 1 h; I adv on Cha (Performance) checks\",\r\n\tdescriptionFull : \"Music of a style you choose fills the air around you in a 30-foot radius. The music spreads around corners and can be heard from up to 100 feet away. The music moves with you, centered on you for the duration.\" + \"\\n   \" + \"Until the spell ends, you make Charisma (Performance) checks with advantage. In addition, you can use a bonus action on each of your turns to beguile one creature you choose within 30 feet of you that can see you and hear the music. The creature must make a Charisma saving throw. If you or your companions are attacking it, the creature automatically succeeds on the saving throw. On a failure, the creature becomes friendly to you for as long as it can hear the music and for 1 hour thereafter. You make Charisma (Deception) checks and Charisma (Persuasion) checks against creatures made friendly by this spell with advantage.\"\r\n};\r\nSpellsList[\"virtue-uass\"] = {\r\n\tname : \"Virtue\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tlevel : 0,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"1 creature that has at least 1 HP gets 1d4 + spellcasting ability modifier in temporary hit points\",\r\n\tdescriptionFull : \"You touch one creature, imbuing it with vitality. If the target has at least 1 hit point, it gains a number of temporary hit points equal to 1d4 + your spellcasting ability modifier. The temporary hit points are lost when the spell ends.\"\r\n};\r\nSpellsList[\"wild cunning-uass\"] = {\r\n\tname : \"Wild Cunning\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Call spirits of nature to aid me with finding food, drink, tracks, shelter, or camping; see book\",\r\n\tdescriptionFull : \"You call out to the spirits of nature to aid you. When you cast this spell, choose one of the following effects:\" + \"\\n  \\u2022 \" + \"If there are any tracks on the ground within range, you know where they are, and you make Wisdom (Survival) checks to follow these tracks with advantage for 1 hour or until you cast this spell again.\" + \"\\n  \\u2022 \" + \"If there is edible forage within range, you know it and where to find it.\" + \"\\n  \\u2022 \" + \"If there is clean drinking water within range, you know it and where to find it.\" + \"\\n  \\u2022 \" + \"If there is suitable shelter for you and your companions with range, you know it and where to find.\" + \"\\n  \\u2022 \" + \"Send the spirits to bring back wood for a fire and to set up a campsite in the area using your supplies. The spirits build the fire in a circle of stones, put up tents, unroll bedrolls, and put out any rations and water for consumption.\" + \"\\n  \\u2022 \" + \"Have the spirits instantly break down a campsite, which includes putting out a fire, taking down tents, packing up bags, and burying any rubbish.\"\r\n};\r\nSpellsList[\"zephyr strike-uass\"] = { // clarification: https://twitter.com/JeremyECrawford/status/849302527069884416\r\n\tname : \"Zephyr Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Moving doesn't provoke opportunity atks; next wea atk has adv and gives +30 ft speed for that turn\",\r\n\tdescriptionFull : \"You move like the wind. For the duration, your movement doesn't provoke opportunity attacks.\" + \"\\n   \" + \"In addition, the first time you make a weapon attack on your turn before the spell ends, you make the attack roll with advantage, and your speed increases by 30 feet until the end of that turn.\"\r\n};\r\n\r\n// Weapons (attack cantrips)\r\nWeaponsList[\"hand of radiance-uass\"] = {\r\n\tregExpSearch : /^(?=.*hand)(?=.*radiance).*$/i,\r\n\tname : \"Hand of Radiance\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"radiant\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; Only chosen creatures I can see are affected\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"infestation-uass\"] = {\r\n\tregExpSearch : /infestation/i,\r\n\tname : \"Infestation\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"piercing\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - target also moved 5 ft in random direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"primal savagery-uass\"] = {\r\n\tregExpSearch : /^(?=.*primal)(?=.*savagery).*$/i,\r\n\tname : \"Primal Savagery\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"piercing\"],\r\n\trange : \"Melee (5 ft)\",\r\n\tdescription : \"Does either Piercing or Slashing damage (my choice)\",\r\n\tabilitytodamage : false\r\n};\r\n\n// ua_20170417_Feats-for-Skills.js\r\n// This file adds the content from the Unearthed Arcana: Feats for Skills article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FS\"] = {\r\n\tname : \"Unearthed Arcana: Feats for Skills\",\r\n\tabbreviation : \"UA:FS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-SkillFeats.pdf\",\r\n\tdate : \"2017/04/17\"\r\n};\r\n\r\n// Add 18 feats, corresponding with the 18 skills\r\nFeatsList[\"acrobat-ua\"] = {\r\n\tname : \"Acrobat\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You become more nimble, gaining the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Acrobatics skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 As a bonus action, you can make a DC 15 Dexterity (Acrobatics) check. If you succeed, difficult terrain doesn't cost you extra movement until the end of the current turn.\",\r\n\tdescription : \"I gain expertise with Acrobatics, or proficiency if not so already. As a bonus action, I can make a DC 15 Dexterity (Acrobatics) check to have difficult terrain not cost me extra movement for this turn. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Acrobatics\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"animal handler-ua\"] = {\r\n\tname : \"Animal Handler\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You master the techniques needed to train and handle animals. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Animal Handling skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can use a bonus action on your turn to command one friendly beast within 60 feet of you that can hear you and that isn't currently following the command of someone else. You decide now what action the beast will take and where it will move during its next turn, or you issue a general command that lasts for 1 minute, such as to guard a particular area.\",\r\n\tdescription : \"I gain expertise with Animal Handling, or proficiency if not so already. As a bonus action, I can command a friendly beast not under another's command within 60 ft. If it hears me, I decide its next turn or give a general command lasting for 1 minute. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Animal Handling\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"arcanist-ua\"] = {\r\n\tname : \"Arcanist\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You study the arcane arts, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Arcana skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Prestidigitation and Detect Magic spells. You can cast detect magic once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Arcana, or proficiency if not so already. I learn the Prestidigitation cantrip. I can cast Detect Magic without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Arcana\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Arcanist\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"prestidigitation\"],\r\n\t\tselection : [\"prestidigitation\"],\r\n\t}, {\r\n\t\tname : \"Arcanist (1x long rest)\",\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"brawny-ua\"] = {\r\n\tname : \"Brawny\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You become stronger, gaining the following benefits:\\n \\u2022 Increase your Strength score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Athletics skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You count as if you were one size larger for the purpose of determining your carrying capacity.\",\r\n\tdescription : \"I gain expertise with Athletics, or proficiency if not so already. I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift. [+1 Strength]\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\tskills : [[\"Athletics\", \"increment\"]],\r\n\tcarryingCapacity : 2\r\n};\r\nFeatsList[\"diplomat-ua\"] = {\r\n\tname : \"Diplomat\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You master the arts of diplomacy, gaining the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Persuasion skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you spend 1 minute talking to someone who can understand what you say, you can make a Charisma (Persuasion) check contested by the creature's Wisdom (Insight) check. If you or your companions are fighting the creature, your check automatically fails. If your check succeeds, the target is charmed by you as long as it remains within 60 feet of you and for 1 minute thereafter.\",\r\n\tdescription : \"I gain expertise with Persuasion, or proficiency if not so already. With a one minute long conversation outside of combat, I can make a Persuasion vs. its Insight. If successful, it is charmed by me as long as it remains within 60 ft and 1 minute after that [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Persuasion\", \"increment\"]]\r\n};\r\nFeatsList[\"empathic-ua\"] = {\r\n\tname : \"Empathic\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You possess keen insight into how other people think and feel. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Insight skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can use your action to try to get uncanny insight about one humanoid you can see within 30 feet of you. Make a Wisdom (Insight) check contested by the target's Charisma (Deception) check. If your check succeeds, you have advantage on attack rolls and ability checks against the target until the end of your next turn.\",\r\n\tdescription : \"I gain expertise with Insight, or proficiency if not so already. As an action, a humanoid within 30 ft I can see must make its Deception vs. my Insight or I gain advantage on attacks and ability checks against it until the end of my next turn. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Insight\", \"increment\"]]\r\n};\r\nFeatsList[\"historian-ua\"] = {\r\n\tname : \"Historian\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"Your study of history rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the History skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Help action to aid another creature's ability check, you can make a DC 15 Intelligence (History) check. On a success, that creature's check gains a bonus equal to your proficiency bonus, as you share pertinent advice and historical examples. To receive this bonus, the creature must be able to understand what you're saying.\",\r\n\tdescription : \"I gain expertise with History, or proficiency if not so already. When I use the Help action to help a creature that can understand me with an ability check, I can make a DC 15 Int (History) check to give a bonus equal to my proficiency bonus. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"History\", \"increment\"]],\r\n\taction : [[\"action\", \"\"]]\r\n};\r\nFeatsList[\"investigator-ua\"] = {\r\n\tname : \"Investigator\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You have an eye for detail and can pick out the smallest clues. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Investigation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can take the Search action as a bonus action.\",\r\n\tdescription : \"I gain expertise with Investigation, or proficiency if not so already. As a bonus action, I can take the Search action. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Investigation\", \"increment\"]],\r\n\taction : [[\"bonus action\", \" (Search)\"]]\r\n};\r\nFeatsList[\"medic-ua\"] = {\r\n\tname : \"Medic\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You master the physician's arts, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Medicine skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 During a short rest, you can clean and bind the wounds of up to six willing beasts and humanoids. Make a DC 15 Wisdom (Medicine) check for each creature. On a success, if a creature spends a Hit Die during this rest, that creature can forgo the roll and instead regain the maximum number of hit points the die can restore. A creature can do so only once per rest, regardless of how many Hit Dice it spends.\",\r\n\tdescription : \"I gain expertise with Medicine, or proficiency if not so already. During a short rest, I can attend to the wounds of up to 6 creatures. With a DC 15 Wis (Medicine) check for each creature, that target gets the maximum result on one of its HD that it uses. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Medicine\", \"increment\"]]\r\n};\r\nFeatsList[\"menacing-ua\"] = {\r\n\tname : \"Menacing\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You become fearsome to others, gaining the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Intimidation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Attack action on your turn, you can replace one attack with an attempt to demoralize one humanoid you can see within 30 feet of you that can see and hear you. Make a Charisma (Intimidation) check contested by the target's Wisdom (Insight) check. If your check succeeds, the target is frightened until the end of your next turn. If your check fails, the target can't be frightened by you in this way for 1 hour.\",\r\n\tdescription : \"I gain expertise with Intimidation, or proficiency if not so already. Instead of 1 attack in my Attack action, a humanoid within 30 ft I can see and that can see and hear me must make its Insight vs. my Intimidation or be frightened until end of my next turn. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Intimidation\", \"increment\"]]\r\n};\r\nFeatsList[\"naturalist-ua\"] = {\r\n\tname : \"Naturalist\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"Your extensive study of nature rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Nature skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Druidcraft and Detect Poison and Disease spells. You can cast Detect Poison and Disease once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Nature, or proficiency if not so already. I learn the Druidcraft cantrip. I can cast Detect Poison and Disease without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Nature\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Naturalist\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t}, {\r\n\t\tname : \"Naturalist (1x long rest)\",\r\n\t\tspells : [\"detect poison and disease\"],\r\n\t\tselection : [\"detect poison and disease\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"perceptive-ua\"] = {\r\n\tname : \"Perceptive\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You hone your senses until they become razor sharp. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Perception skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 Being in a lightly obscured area doesn't impose disadvantage on your Wisdom (Perception) checks if you can both see and hear.\",\r\n\tdescription : \"I gain expertise with Perception, or proficiency if not so already. I don't have disadvantage on my Perception checks from being in a lightly obscured area (dim light), provided that I can still both see and hear. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Perception\", \"increment\"]],\r\n\tvision : [[\"No disadv. on Perception in lightly obscured or dim light\", 0]]\r\n};\r\nFeatsList[\"performer-ua\"] = {\r\n\tname : \"Performer\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You master performance so that you can command any stage. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Performance skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 While performing, you can try to distract one humanoid you can see who can see and hear you. Make a Charisma (Performance) check contested by the humanoid's Wisdom (Insight) check. If your check succeeds, you grab the humanoid's attention enough that it makes Wisdom (Perception) and Intelligence (Investigation) checks with disadvantage until you stop performing.\",\r\n\tdescription : \"I gain expertise with Performance, or proficiency if not so already. While performing, I can distract one humanoid. It must make its Insight vs. my Performance or have disadv. on its Perception and Investigation checks until I stop performing. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Performance\", \"increment\"]]\r\n};\r\nFeatsList[\"quick-fingered-ua\"] = {\r\n\tname : \"Quick-Fingered\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"Your nimble fingers and agility let you perform sleight of hand. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Sleight of Hand skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 As a bonus action, you can make a Dexterity (Sleight of Hand) check to plant something on someone else, conceal an object on a creature, lift a purse, or take something from a pocket.\",\r\n\tdescription : \"I gain expertise with Sleight of Hand, or proficiency if not so already. As a bonus action, I can make a Dexterity (Sleight of Hand) check to plant something on someone else, conceal an object on a creature, lift a purse, or take something from a pocket. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Sleight of Hand\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"silver-tongued-ua\"] = {\r\n\tname : \"Silver-Tongued\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You develop your conversational skill to better deceive others. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Deception skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Attack action on your turn, you can replace one attack with an attempt to deceive one humanoid you can see within 30 feet of you that can see and hear you. Make a Charisma (Deception) check contested by the target's Wisdom (Insight) check. If your check succeeds, your movement doesn't provoke opportunity attacks from the target and your attack rolls against it have advantage; both benefits last until the end of your next turn or until you use this ability on a different target. If your check fails, the target can't be deceived by you in this way for 1 hour.\",\r\n\tdescription : \"I gain expertise with Deception, or proficiency if not so already. Instead of 1 attack in my Attack action, a humanoid within 30 ft makes its Insight vs. my Deception or until end of my next turn, I gain adv. on attacks and don't provoke its opportunity attacks. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Deception\", \"increment\"]]\r\n};\r\nFeatsList[\"stealthy-ua\"] = {\r\n\tname : \"Stealthy\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"You know how best to hide. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Stealth skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you are hidden, you can move up to 10 feet in the open without revealing yourself if you end the move in a position where you're not clearly visible.\",\r\n\tdescription : \"I gain expertise with Stealth, or proficiency if not so already. When I'm hidden, I can move 10 ft to another position without revealing myself, provided that I won't be clearly visible in this new position either. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Stealth\", \"increment\"]]\r\n};\r\nFeatsList[\"survivalist-ua\"] = {\r\n\tname : \"Survivalist\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"You master wilderness lore, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Survival skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Alarm spell. You can cast it once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Survival, or proficiency if not so already. I can cast Alarm without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Survival\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1x long rest\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tspells : [\"alarm\"],\r\n\t\tselection : [\"alarm\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"theologian-ua\"] = {\r\n\tname : \"Theologian\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"Your extensive study of religion rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Religion skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Thaumaturgy and Detect Evil and Good spells. You can cast Detect Evil and Good once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Religion, or proficiency if not so already. I learn the Thaumaturgy cantrip. I can cast Detect Evil and Good without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Religion\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Theologian\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t}, {\r\n\t\tname : \"Theologian (1x long rest)\",\r\n\t\tspells : [\"detect evil and good\"],\r\n\t\tselection : [\"detect evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\n\n// ua_20170424_Feats-for-Races.js\r\n// This file adds the content from the Unearthed Arcana: Feats for Races article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FR\"] = {\r\n\tname : \"Unearthed Arcana: Feats for Races\",\r\n\tabbreviation : \"UA:FR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/RJSJC2017_04UASkillFeats_24v10.pdf\",\r\n\tdate : \"2017/04/24\"\r\n};\r\n\r\n// Adds 46 feats (23 + 13 variants of Grudge-Bearer), all of which have a racial prerequisite\r\nFeatsList[\"barbed hide-ua\"] = {\r\n\tname : \"Barbed Hide\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"One of your ancestors was a barbed devil or other spiky fiend. Barbs protrude from your head. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 As a bonus action, you can cause small barbs to protrude all over your body or cause them to retract. At the start of each of your turns while the barbs are out, you deal 1d6 piercing damage to any creature grappling you or any creature grappled by you.\\n \\u2022 You gain proficiency in the Intimidation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\",\r\n\tdescription : \"I gain expertise with Intimidation, or proficiency if not so already. As a bonus action, I can protrude/retract small barbs from my skin. With them out, at the start of each of my turns I deal 1d6 piercing damage to any I'm grappling or are grappling me. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Intimidation\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"bountiful luck-ua\"] = {\r\n\tname : \"Bountiful Luck\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Whenever an ally you can see within 30 feet of you rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, you can use your reaction to let the ally reroll the die. The ally must use the new roll.\",\r\n\tdescription : \"Whenever an ally I can see within 30 feet of me rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, I can use my reaction to let the ally reroll the die. The ally must use the new roll.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"critter friend-ua\"] = {\r\n\tname : \"Critter Friend\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Forest Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('forest gnome') !== -1; },\r\n\tdescriptionFull : \"Your friendship with animals mystically deepens. You gain the following benefits:\\n \\u2022 You gain proficiency in the Animal Handling skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Speak with Animals spell and can cast it at will, without expending a spell slot. You also learn the Animal Friendship spell, and you can cast it once with this feat, without expending a spell slot. You regain the ability to cast it in this way when you finish a long rest. Intelligence is your spellcasting ability for these spells.\",\r\n\tdescription : \"I gain expertise with Animal Handling, or proficiency if I didn't have that already. I can cast Speak With Animals and Animal Friendship without using a spell slot. I can cast each of these spells like this once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\tskills : [[\"Animal Handling\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per long rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"speak with animals\"],\r\n\t\tselection : [\"speak with animals\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"animal friendship\"],\r\n\t\tselection : [\"animal friendship\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dragon fear-ua\"] = {\r\n\tname : \"Dragon Fear\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"When angered, you radiate menace. You gain the following benefits:\\n \\u2022 Increase your Strength or Charisma score by 1, to a maximum of 20.\\n \\u2022 Instead of exhaling destructive energy, you can roar and expend a use of your breath weapon to force each creature of your choice within 30 feet of you to make a Wisdom saving throw (DC 8 + your proficiency bonus + your Charisma modifier). A target automatically succeeds if it can't hear or see you. On a failed save, a target becomes frightened for 1 minute. If the frightened target takes any damage, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tcalculate : \"event.value = 'I can expend a Breath Weapon use to roar instead. Each creature of my choice within 30 ft that can see and hear me must make a DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' Wis save (8 + Prof Bonus + Cha mod) or be frightened for 1 min. It can repeat the save whenever it takes damage. [+1 Str or Cha]';\",\r\n\tscorestxt : \"+1 Strength or Charisma\",\r\n\taction : [['action', 'Breath Weapon or Dragon Fear', 'Breath Weapon']]\r\n};\r\nFeatsList[\"dragon hide-ua\"] = {\r\n\tname : \"Dragon Hide\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You inherited the might and majesty of your dragon ancestors. You gain the following benefits:\\n \\u2022 Increase your Strength or Charisma score by 1, to a maximum of 20.\\n \\u2022 You grow retractable claws from the tips of your fingers. Extending or retracting the claws requires no action. The claws are natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal slashing damage equal to 1d4 + your Strength modifier, instead of the bludgeoning damage normal for an unarmed strike.\\n \\u2022 Your scales harden; you gain a +1 bonus to AC while you aren't wearing armor.\",\r\n\tdescription : \"I gain retractable claws that I can retract or extend, requiring no action. While extended, my unarmed strikes deal 1d4 slashing damage. My scales harden, giving me a +1 bonus to AC when I'm not wearing armor. [+1 Strength or Charisma]\",\r\n\tscorestxt : \"+1 Strength or Charisma\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(retractable|dragon))(?=.*claw).*$/i,\r\n\t\tname : \"Retractable Claws\",\r\n\t\tsource : [[\"UA:FR\", 2]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing armor.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor; }\r\n\t}\r\n};\r\nFeatsList[\"dragon wings-ua\"] = {\r\n\tname : \"Dragon Wings\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You sprout draconic wings. With your wings, you have a flying speed of 20 feet if you aren't wearing heavy armor and aren't exceeding your carrying capacity.\",\r\n\tdescription : \"I sprout draconic wings. With my wings, I have a flying speed of 20 feet if I am not wearing heavy armor and I am not exceeding my carrying capacity or encumbered.\",\r\n\tspeed : { fly : { spd : 20, enc : 0 } }\r\n};\r\nFeatsList[\"drow high magic-ua\"] = {\r\n\tname : \"Drow High Magic\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Drow (Dark Elf)\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dark elf') !== -1; },\r\n\tdescriptionFull : \"You learn more of the spells typical for your people. You learn Detect Magic and can cast it at will, without expending a spell slot. You also learn Levitate and Dispel Magic, each of which you can cast once without expending a spell slot. You regain the ability to cast the spell in this way when you finish a long rest. Charisma is your spellcasting ability for these spells.\",\r\n\tdescription : \"I can cast Detect Magic at will, without expending a spell slot. I can also cast Levitate and Dispel Magic without expending a spell slot, but each only once per long rest. Charisma is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"dispel magic\"],\r\n\t\tselection : [\"dispel magic\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dwarf resilience-ua\"] = {\r\n\tname : \"Dwarf Resilience\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have the blood of dwarf heroes flowing through your veins. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 Whenever you take the Dodge action in combat, you can spend one Hit Die to heal yourself. Roll the die, add your Constitution modifier, and regain a number of hit points equal to the total (minimum of 1).\",\r\n\tdescription : \"Whenever I take the Dodge action in combat, I can spend one Hit Die to heal myself. I roll the die, add my Constitution modifier, and regain a number of hit points equal to the total (minimum of 1). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elven accuracy-ua\"] = {\r\n\tname : \"Elven Accuracy\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being an Elf or a Half-Elf\",\r\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have uncanny aim. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 Whenever you have advantage on an attack roll, you can reroll one of the dice once.\",\r\n\tdescription : \"Whenever I have advantage on an attack roll, I can reroll one of the dice once. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0]\r\n};\r\nFeatsList[\"everybody-ua's friend\"] = {\r\n\tname : \"Everybody's Friend\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Half-Elf\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*elf).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You develop your magnetic personality to ease your way through the world. You gain the following benefits:\\n \\u2022 You gain proficiency in the Deception and Persuasion skills. If you're already proficient in either skill, your proficiency bonus is doubled for any check you make with that skill.\",\r\n\tdescription : \"I gain expertise with Deception and Persuasion, or proficiency with them if I didn't have that already. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Deception\", \"increment\"], [\"Persuasion\", \"increment\"]]\r\n};\r\nFeatsList[\"fade away-ua\"] = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('gnome') !== -1; },\r\n\tdescriptionFull : \"You can draw on your magical heritage to escape danger. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 When you take damage, you can use a reaction to magically become invisible until the end of your next turn or until you attack, deal damage, or force someone to make a saving throw. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"As a reaction when I take damage, I can magically become invisible until the end of my next turn or until I attack, deal damage, or force someone to make a saving throw. Once I do this, I can't do so again until I finish a short rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"fey teleportation-ua\"] = {\r\n\tname : \"Fey Teleportation\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a High Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('high elf') !== -1; },\r\n\tdescriptionFull : \"Drawing on your fey ancestry, you have learned how to teleport. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn the Misty Step spell and can cast it once without expending a spell slot. You regain the ability to cast it in this way when you finish a short or long rest. Intelligence is your spellcasting ability for this spell.\",\r\n\tdescription : \"I can cast Misty Step without using a spell slot. I can do so once per short rest. Intelligence is my spellcasting ability for this spell. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per short rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 'oncesr'\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"flames of phlegethos-ua\"] = {\r\n\tname : \"Flames of Phlegethos\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"You learn to call on hellfire to serve your commands. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 When you roll fire damage for a spell you cast, you can reroll any roll of 1 on the fire damage dice, but you must use the new roll, even if it is another 1.\\n \\u2022 Whenever you cast a spell that deals fire damage, you can cause flames to wreathe you until the end of your next turn. The flames don't harm you or your possessions, and they shed bright light out to 30 feet and dim light for an additional 30 feet. While the flames are present, any creature within 5 feet of you that hits you with a melee attack takes 1d4 fire damage.\",\r\n\tdescription : \"When I cast a fire damage spell, I can reroll any 1 on fire damage dice. I can then sheathe myself in flame until my next turn ends. These shed bright light in 30 ft, dim light in 30 ft and cause any within 5 ft that hit me in melee take 1d4 fire damage. [+1 Int or Cha]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\"\t\r\n};\r\nFeatsList[\"grudge-bearer-ua\"] = {\r\n\tname : \"Grudge-Bearer\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have a deep hatred for a particular kind of creature. Choose your foes, a type of creature to bear the burden of your wrath: aberrations, beasts, celestials, constructs, dragons, elementals, fey, fiends, giants, monstrosities, oozes, plants, or undead. Alternatively, you can choose two races of humanoid (such as gnolls and orcs). You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\\n \\u2022 During the first round of any combat against your chosen foes, your attack rolls against any of them have advantage.\\n \\u2022 When any of your chosen foes makes an opportunity attack against you, it makes the attack roll with disadvantage.\\n \\u2022 Whenever you make an Intelligence (Arcana, History, Nature, or Religion) check to recall information about your chosen foes, you add double your proficiency bonus to the check, even if you're not normally proficient.\",\r\n\tdescription : \"My hatred for a creature type gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Wisdom\",\r\n\tchoices : [\"2 Humanoids\", \"Aberrations\", \"Beasts\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fey\", \"Fiends\", \"Giants\", \"Monstrosities\", \"Oozes\", \"Plants\", \"Undead\"],\r\n\t\"2 humanoids\" : {\r\n\t\tdescription : \"My hatred for 2 humanoid races gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana/History/Nature/Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\taberrations : {\r\n\t\tdescription : \"My hatred for aberrations gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tbeasts : {\r\n\t\tdescription : \"My hatred for beasts gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tcelestials : {\r\n\t\tdescription : \"My hatred for celestials gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tconstructs : {\r\n\t\tdescription : \"My hatred for constructs gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tdragons : {\r\n\t\tdescription : \"My hatred for dragons gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\telementals : {\r\n\t\tdescription : \"My hatred for elementals gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tfey : {\r\n\t\tdescription : \"My hatred for fey gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tfiends : {\r\n\t\tdescription : \"My hatred for fiends gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tgiants : {\r\n\t\tdescription : \"My hatred for giants gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tmonstrosities : {\r\n\t\tdescription : \"My hatred for monstrosities gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\toozes : {\r\n\t\tdescription : \"My hatred for oozes gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tplants : {\r\n\t\tdescription : \"My hatred for plants gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tundead : {\r\n\t\tdescription : \"My hatred for undead gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t}\r\n};\r\nFeatsList[\"human determination-ua\"] = {\r\n\tname : \"Human Determination\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Human\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('human') !== -1; },\r\n\tdescriptionFull : \"You are filled with a determination that can draw the unreachable within your reach. You gain the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 When you make an attack roll, an ability check, or a saving throw, you can do so with advantage. Once you use this ability, you can't use it again until you finish a short or long rest.\",\r\n\tdescription : \"When I make an attack roll, an ability check, or a saving throw, I can do so with advantage. Once I use this ability, I can't do so again until I finish a short rest.\\n[+1 to one ability score]\",\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"attack/check/save\"\r\n};\r\nFeatsList[\"infernal constitution-ua\"] = {\r\n\tname : \"Infernal Constitution\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"Fiendish blood runs strong in you. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You have resistance to cold and poison damage.\\n \\u2022 You have advantage on saving throws against being poisoned.\",\r\n\tdescription : \"I have resistance to cold and poison damage and I have advantage on saving throws against being poisoned.\\n[+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tdmgres : [\"Cold\", \"Poison\"],\r\n\tsavetxt : { adv_vs : [\"poison\"] }\r\n};\r\nFeatsList[\"orcish aggression-ua\"] = {\r\n\tname : \"Orcish Aggression\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"As a bonus action, you can move up to your speed toward an enemy of your choice that you can see or hear. You must end this move closer to the enemy than you started.\",\r\n\tdescription : \"As a bonus action, I can move up to my speed toward an enemy of my choice that I can see or hear. I must end this move closer to the enemy than I started.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"orcish fury-ua\"] = {\r\n\tname : \"Orcish Fury\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"Your fury burns tirelessly. You gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 When you hit with an attack made with a simple or martial weapon, you can roll one of the weapon's damage dice an additional time and add it as extra damage of the weapon's damage type. Once you use this ability, you can't use it again until you finish a short or long rest.\\n \\u2022 Immediately after you use your Relentless Endurance trait, you can use your reaction to make one weapon attack.\",\r\n\tdescription : \"Once per short rest, I can roll an extra damage die for an attack with a simple or martial weapon. In addition, Immediately after I use my Relentless Endurance trait, I can use my reaction to make one weapon attack. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : [[\"reaction\", \" (after Relentless Endurance)\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"extra damage\"\r\n};\r\nFeatsList[\"prodigy-ua\"] = {\r\n\tname : \"Prodigy\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Half-Elf or a Human\",\r\n\tprereqeval : function(v) { return (/human|^(?=.*half)(?=.*elf).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain one skill proficiency of your choice, one tool proficiency of your choice, and fluency in one language of your choice.\",\r\n\tdescription : \"I gain one skill proficiency of my choice, one tool proficiency of my choice, fluency in one language of my choice, and +1 to one ability score of my choice. [+1 to one ability score]\",\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tskillstxt : \"Choose any one skill\",\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n};\r\nFeatsList[\"second chance-ua\"] = {\r\n\tname : \"Second Chance\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 When a creature you can see hits you with an attack roll, you can use your reaction to force that creature to reroll. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"When a creature I can see hits me with an attack roll, I can use my reaction to force that creature to reroll. Once I use this ability, I can't do so again until I finish a short rest.\\n[+1 Dexterity, Constitution, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"squat nimbleness-ua\"] = {\r\n\tname : \"Squat Nimbleness\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Dwarf, Gnome, or Halfling\",\r\n\tprereqeval : function(v) { return (/dwarf|gnome|halfling/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You are uncommonly nimble for your race. You gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 Increase your walking speed by 5 feet.\\n \\u2022 You gain proficiency in the Acrobatics or Athletics skill. If you're already proficient in the skill, your proficiency bonus is doubled for any check you make with it.\",\r\n\tdescription : \"My walking speed increases by 5 ft. I gain proficiency in the Acrobatics or Athletics skill. If I'm already proficient in the chosen skill, I gain expertise with it instead.\\n[+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tskillstxt : \"Proficiency with Acrobatics or Athletics; or gain Expertise if already proficient\",\r\n\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } }\r\n};\r\nFeatsList[\"wonder maker-ua\"] = {\r\n\tname : \"Wonder Maker\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Rock Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('rock gnome') !== -1; },\r\n\tdescriptionFull : \"You master the tinker techniques of your people. You gain the following benefits:\\n \\u2022 When you make a check using your proficiency with tinker's tools, you add double your proficiency bonus to the check.\\n \\u2022 When you make a device with your Tinker trait, you have the following additional options for what you make:\\n \\u2022 \" + toUni(\"Alarm\") + \". This device senses when a creature moves to within 15 feet of it without speaking aloud a password chosen when you create it. One round after a creature moves into range, the alarm makes a shrill ringing that lasts for 1 minute and can be heard from up to 300 feet away.\\n \\u2022 \" + toUni(\"Calculator\") + \". This device makes doing sums easy.\\n \\u2022 \" + toUni(\"Lifter\") + \". This device can be used as a block and tackle, allowing its user to hoist five times the weight the user can normally lift.\\n \\u2022 \" + toUni(\"Timekeeper\") + \". This pocket watch keeps accurate time.\\n \\u2022 \" + toUni(\"Weather Sensor\") + \". When used as an action, this device predicts weather conditions in a 1-mile radius over the next 4 hours, showing one symbol (clouds, sun/moon, rain, or snow) for each hour.\",\r\n\tdescription : \"I gain expertise with Tinker's Tools. I get additional Tinker options: Alarm (audible to 300 ft for 1 min), Calculator, Lifter (as block and tackle that multiplies max lift weight by 5), Timekeeper (pocket watch), Weather Sensor (predict for 1-mile, 4 hours) [+1 Dex or Int]\",\r\n\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\teval : function () {\r\n\t\tif ((/tinker.*tool/i).test(What('Too Text'))) {\r\n\t\t\tCheckbox('Too Exp', true);\r\n\t\t};\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif ((/tinker.*tool/i).test(What('Too Text'))) {\r\n\t\t\tCheckbox('Too Exp', false);\r\n\t\t};\r\n\t}\r\n};\r\nFeatsList[\"wood elf magic-ua\"] = {\r\n\tname : \"Wood Elf Magic\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Wood Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('wood elf') !== -1; },\r\n\tdescriptionFull : \"You learn the magic of the primeval woods. You learn one druid cantrip of your choice. You also learn Longstrider and Pass Without Trace, each of which you can cast once without expending a spell slot. You regain the ability to cast the spell in this way when you finish a long rest. Wisdom is your spellcasting ability for these spells.\",\r\n\tdescription : \"I learn a druid cantrip. In addition, I can cast Longstrider and Pass Without Trace, without expending a spell slot, but each only once per long rest. Wisdom is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druid Cantrip\",\r\n\t\tspellcastingAbility : 5,\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"longstrider\"],\r\n\t\tselection : [\"longstrider\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"pass without trace\"],\r\n\t\tselection : [\"pass without trace\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\n// ua_20170501_Revised-Subclasses.js\r\n// This file adds the content from the Unearthed Arcana: Revised Subclasses article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RS\"] = {\r\n\tname : \"Unearthed Arcana: Revised Subclasses\",\r\n\tabbreviation : \"UA:RS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-RevisedSubclasses.pdf\",\r\n\tdate : \"2017/05/01\"\r\n};\r\n\r\n// Add 5 subclasses from previous Unearthed Arcana articles: 1 for the Barbarian, 1 for the Bard, 1 for the Fighter, 1 for the Monk, and 1 for the Sorcerer\r\nAddSubClass(\"barbarian\", \"ancestral guardian2-ua\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"UA:RS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with an attack on my turn becomes distracted\",\r\n\t\t\t\t\"While distracted, it has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"In addition, everybody but me counts as having resistance to all of the target's attacks\",\r\n\t\t\t\t\"This lasts until the start of my next turn, or until my rage ends\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spirit Shield\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while raging when an ally I see within 30 ft is damaged, I can reduce it\",\r\n\t\t\t\t\"My guardian spirits reduce the damage by an amount equal to the roll of the dice\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d8 damage reduced\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Through consulting my ancestral spirits, I can cast Clairvoyance without a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"clairvoyance\"],\r\n\t\t\t\tselection : [\"clairvoyance\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Whenever I use Spirit Shield to reduce damage, the attacker takes the reduced damage\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of swords2-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"UA:RS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor and scimitars\",\r\n\t\t\t\t\"I can use a simple or martial melee weapon that I'm proficient with as spellcasting focus\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Style\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Select a Fighting Style for the college of swords using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dueling\", \"Two-Weapon Fighting\"],\r\n\t\t\t\"dueling\" : FightingStyles.dueling,\r\n\t\t\t\"two-weapon fighting\" : FightingStyles.two_weapon\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make one melee weapon attack and use one flourish option below\",\r\n\t\t\t\t\"In addition, I gain +10 ft to my walking speed until the end of the current turn\",\r\n\t\t\t\t\" - Defensive Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    I add the result of the die to my AC until the start of my next turn\",\r\n\t\t\t\t\" - Slashing Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    If the attack hits, I can use a die to deal damage to creatures next to the target\",\r\n\t\t\t\t\"    All creatures within 5 ft of the target take the result of the die in damage\",\r\n\t\t\t\t\" - Mobile Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    If the attack hits, I can use a die to push the target back 5 + the die result in feet\",\r\n\t\t\t\t\"    After this, I can use my reaction to move my speed to a space next to the target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cunning Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I take the Blade Flourish action, I can attack twice, but still only use one flourish\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"When I do a Blade Flourish, I can use a d6 instead of expending a Bardic Inspiration die\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"arcane archer2-ua\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"UA:RS\", 2]],\r\n\tfullname : \"Arcane Archer\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Magic Arrow\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I fire a nonmagical arrow from a short- or longbow I can make it magical\",\r\n\t\t\t\t\"This magical arrow gives a +1 bonus to the attack and damage rolls for the one attack\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/longbow|shortbow/i).test(v.baseWeaponName) && !v.theWea.isMagicWeapon) output.magic += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Any longbow or shortbow that doesn't include a magic bonus in its name gets a +1 magical bonus to damage and to hit as any arrows fired with it are automatically made magical.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can unleash magical effects when I fire a magic arrow from a short- or longbow\",\r\n\t\t\t\t\"I can use this once per turn as part of the Attack action, after an attack hits\",\r\n\t\t\t\t\"I know a number of Arcane Shot Options and learn additional at certain levels\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Arcane Shots Options to the third page'\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" options known\"; }),\r\n\t\t\textraname : \"Arcane Shot Option\",\r\n\t\t\textrachoices : [\"Banishing Arrow [Abjuration]\", \"Brute Bane Arrow [Necromancy]\", \"Bursting Arrow [Evocation]\", \"Grasping Arrow [Conjuration]\", \"Mind-Scrambling Arrow [Enchantment]\", \"Piercing Arrow [Transmutation]\", \"Seeking Arrow [Divination]\", \"Shadow Arrow [Illusion]\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"banishing arrow [abjuration]\" : {\r\n\t\t\t\tname : \"Banishing Arrow [Abjuration]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target makes a Cha save or is banished to the Feywild until the end of its next turn\",\r\n\t\t\t\t\t\"While banished, its speed is 0 and is incapacitated; It re-appearing in the same spot\",\r\n\t\t\t\t\t\"When I reach 18th level, this Arcane Shot Option also does an extra 2d6 force damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 18 ? \"\" : \"+2d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"brute bane arrow [necromancy]\" : {\r\n\t\t\t\tname : \"Brute Bane Arrow [Necromancy]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra necrotic damage and must make a Constitution save\",\r\n\t\t\t\t\t\"If failed, the damage of the target's attacks is halved until the start of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"bursting arrow [evocation]\" : {\r\n\t\t\t\tname : \"Bursting Arrow [Evocation]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription: desc(\"The target, in addition to the shot, and all creatures within 10 ft of it take damage\"),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"grasping arrow [conjuration]\" : {\r\n\t\t\t\tname : \"Grasping Arrow [Conjuration]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra poison damage as brambles wrap around it for 1 minute\",\r\n\t\t\t\t\t\"The brambles give it -10 ft speed and do it slashing damage every round it moves\",\r\n\t\t\t\t\t\"These can be removed by it or another as an action with Strength (Athletics) vs. my DC\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 18 ? 2 : 4) + \"d6 poison/slash. damage\"; })\r\n\t\t\t},\r\n\t\t\t\"mind-scrambling arrow [enchantment]\" : {\r\n\t\t\t\tname : \"Mind-Scrambling Arrow [Enchantment]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, it can't attack or harm one of my allies within 30 ft of it that I choose\",\r\n\t\t\t\t\t\"This lasts until the start of my next turn or until the chosen ally harms the target\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 damage\"; })\r\n\t\t\t},\r\n\t\t\t\"piercing arrow [transmutation]\" : {\r\n\t\t\t\tname : \"Piercing Arrow [Transmutation]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but shoot the arrow in a 30-ft long, 1-ft wide line\",\r\n\t\t\t\t\t\"It passes through objects, ignoring cover, but all creatures in the area take damage\",\r\n\t\t\t\t\t\"The damage is the same as a normal hit from my attack, plus extra piercing damage\",\r\n\t\t\t\t\t\"A creature can make a Dexterity save to reduce the damage by half\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 piercing damage\"; })\r\n\t\t\t},\r\n\t\t\t\"seeking arrow [divination]\" : {\r\n\t\t\t\tname : \"Seeking Arrow [Divination]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but I choose a target I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners, obstacles, and ignores cover to hit the target\",\r\n\t\t\t\t\t\"It is hit if it is within the weapon's range and there is a path for the arrow to get to it\",\r\n\t\t\t\t\t\"The target takes the full damage of the attack plus extra force damage\",\r\n\t\t\t\t\t\"It can make a Dexterity save to reduce the damage by half; If failed, I know its location\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"shadow arrow [illusion]\" : {\r\n\t\t\t\tname : \"Shadow Arrow [Illusion]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, the target can't see anything beyond 5 ft until the end of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 psychic damage\"; })\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with either the Arcana or Nature skill\"),\r\n\t\t\tskillstxt : \"Choose one from: Arcana or Nature\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Curving Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I miss with a magic arrow, I can use a bonus action to redirect the attack\",\r\n\t\t\t\t\"I reroll the attack against a different target within 60 ft of the original target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one use of Arcane Shot if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the kensei2-ua\", {\r\n\tregExpSearch : /kensei/i,\r\n\tsubname : \"Way of the Kensei\",\r\n\tsubnameShort: \"Kensei\",\r\n\tsource : [[\"UA:RS\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of the Kensei\",\r\n\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Some weapons, that don't have the heavy or special property, are kensei weapons for me\",\r\n\t\t\t\t\"At least one ranged and one melee weapon, more at higher levels (longbow does qualify)\",\r\n\t\t\t\t\"With these: proficient, count as a monk weapons, special bonuses while holding them:\",\r\n\t\t\t\t\" - If I do an unarmed strike during an Attack action, +2 AC until my next turn starts\",\r\n\t\t\t\t\" - As a bonus action, ranged kensei weapon attacks deal +1d4 damage in current turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with ranged)\"]],\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" kensei weapons\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level > 2 && !v.isSpell && !v.theWea.monkweapon && (/kensei/i).test(v.WeaponTextName) && !v.theWea.special && (!(/heavy|special/i).test(fields.Description) || v.baseWeaponName === 'longbow')) {\r\n\t\t\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t\t\t\tv.theWea.kenseiweapon = true;\r\n\t\t\t\t\t\t\tif (v.isRangedWeapon) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 damage';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Kensei' in the name of a weapon that doesn't have the Heavy or Special attribute, or that is a longbow, that weapon gains the same benefits as any other 'Monk Weapon'.\\nIn addition, with ranged 'Kensei Weapons', I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"ki-empowered strikes\" : {\r\n\t\t\tname : \"One with the Blade\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description) && (v.baseWeaponName === \"unarmed strike\" || v.theWea.kenseiweapon)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My unarmed strikes and any Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"precise strike\" : {\r\n\t\t\t\tname : \"Precise Strike\",\r\n\t\t\t\textraname : \"Way of the Kensei 6\",\r\n\t\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\t\tdescription: desc(\"Once per turn when I hit with a kensei weapon, I can do a martial arts die extra damage\"),\r\n\t\t\t\tadditional : \"1 ki point\"\r\n\t\t\t},\r\n\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can grant my kensei weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\"This bonus is equal to the number of ki points I spend; It lasts for 1 minute\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"1 to 3 ki points\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"precise strike\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"Once per turn, if I miss a monk weapon attack on my turn, I can reroll the attack roll\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"favoured soul-uars\", {\r\n\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\tsubname : \"Favored Soul\",\r\n\tsource : [[\"UA:RS\", 5]],\r\n\tfullname : \"Favored Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I select my 1st level or higher spells, I can also pick spells from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t\t\"I also learn Cure Wounds, which doesn't count against my number of spells known\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Divine Magic\",\r\n\t\t\t\tspells : [\"cure wounds\"],\r\n\t\t\t\tselection : [\"cure wounds\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Empowered Healing\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 sorcery point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I roll dice for healing with one of my sorcerer spells, I can reroll them once\",\r\n\t\t\t\t\"By spending 1 sorcery point, I can reroll any number of those dice for that spell\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Angelic Form\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose an otherworldly quality using the \"Choose Feature\" button above',\r\n\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Beautiful\", \"Youthful\", \"Kind\", \"Imposing\"],\r\n\t\t\t\"beautiful\" : {\r\n\t\t\t\tname : \"Angelic Form: Beautiful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of beauty\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"youthful\" : {\r\n\t\t\t\tname : \"Angelic Form: Youthful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of youthfulness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"kind\" : {\r\n\t\t\t\tname : \"Angelic Form: Kind\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of kindness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"imposing\" : {\r\n\t\t\t\tname : \"Angelic Form: Imposing\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of imposingness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \" Wings\"]],\r\n\t\t\tspeed : { fly : { spd : 30, enc : 20 } }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"UA:RS\", 6]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP remaining, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my hit point maximum\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20170605_Revised-Class-Options.js\r\n// This file adds the content from the Unearthed Arcana: Revised Class Options article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RCO\"] = {\r\n\tname : \"Unearthed Arcana: Revised Class Options\",\r\n\tabbreviation : \"UA:RCO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/June5UA_RevisedClassOptv1.pdf\",\r\n\tdate : \"2017/06/05\"\r\n};\r\n\r\n// Adds 4 revised subclasses from previous Unearthed Arcana articles: 1 for the Druid, 1 for the Fighter, 1 for the Paladin, and 1 for the Warlock\r\nAddSubClass(\"druid\", \"circle of the shepherd2-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"UA:RCO\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Speech of the Woods\",\r\n\t\t\tsource : [[\"UA:RCO\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts; Additionally, I learn Sylvan\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Sylvan\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Totem\",\r\n\t\t\tsource : [[\"UA:RCO\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon, or move, a spirit to a point I can see within 60 ft\",\r\n\t\t\t\t\"The spirit is a Bear, Hawk, or Unicorn (see below), which has a 30-ft radius aura\",\r\n\t\t\t\t\"It is incorporeal, immobile, doesn't counts as a creature or object, and persists for 1 min\",\r\n\t\t\t\t\"\\u2022 Bear: my allies in the area and I instantly gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"   While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: As a reaction, I can grant advantage on an attack vs. a target in the aura\",\r\n\t\t\t\t\"\\u2022 Unicorn: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"   If I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"Beasts or Fey I summon with spells get +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that restores hit points, it restores an additional 2 + the level of the spell slot (or spell slot equivalent) used to cast the spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"When a Beast or Fey that I summoned ends its turn in my Spirit Totem aura, it heals\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 10) return \"\";\r\n\t\t\t\treturn \"heals \" + Math.floor(n / 2) + \" HP\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can cast Conjure Animals\",\r\n\t\t\t\t\"This is done as if using a 9th-level spell slot to summon 4 beast of my choice up to CR 2\",\r\n\t\t\t\t\"They appear within 20 ft of me, last 1 hour, and protect me from harm and attack foes\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Faithful Summons\",\r\n\t\t\t\tspells : [\"conjure animals\"],\r\n\t\t\t\tselection : [\"conjure animals\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"conjure animals\" : {\r\n\t\t\t\t\tnameShort : \"Conjure Animals (level 9)\",\r\n\t\t\t\t\trange : \"20 ft\",\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"Summon 4 CR 2 beasts; protect me from harm and attack foes\",\r\n\t\t\t\t\tchanges : \"Using my Faithful Summons class feature when I'm reduced to 0 HP, I can cast Conjure Animals as if using a 9th-level spell slot. This then summons 4 beast of my choice up to CR 2 within 20 ft of me without needing concentration.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier2-ua\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"UA:RCO\", 2]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t\"Alternatively, I learn one language of my choice\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: Animal Handling, History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription: desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: animal handling, history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription: desc(\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\" \\u2022 Control Mount (Maneuver, UA:RCO 3)\",\r\n\t\t\t\t\"   Use after rolling Wis (Animal Handling) to influence an animal I or an ally is riding\",\r\n\t\t\t\t\"   I add the superiority die to the result\",\r\n\t\t\t\t\" \\u2022 Precision Attack (Maneuver, UA:RCO 3)\",\r\n\t\t\t\t\"   Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\" \\u2022 Trip Attack (Maneuver, UA:RCO 3) [DC 8 + Prof Bonus + Str mod]\",\r\n\t\t\t\t\"   Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\"   If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t\" \\u2022 Warding Maneuver (Maneuver, UA:RCO 3) [only while wielding weapon or shield]\",\r\n\t\t\t\t\"   As a reaction when I or a creature within 5 ft is hit, I add the superiority die to AC\",\r\n\t\t\t\t\"   If the attack still hits, the target counts as having resistance against the attack\"\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : ['reaction', 'Warding Maneuver']\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use two superiority dice, instead of just one, when using the Trip Attack Maneuver\",\r\n\t\t\t\t\"If doing so, both dice are added to the damage and the target has disadv. on its Str save\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of conquest2-ua\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"UA:RCO\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Presence\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures of my choice within 30-ft radius must make a Wisdom save\",\r\n\t\t\t\t\"If failed, a target is frightened for 1 minute; It can save again at the end of each turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"dominate beast\", \"stoneskin\", \"cloudkill\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Enemies that are frightened of me have their speed reduced to 0 while in my aura\",\r\n\t\t\t\t\"They also take psychic damage whenever they start theirs turn within my aura\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 7) return \"\";\r\n\t\t\t\treturn (n < 18 ? 10 : 30) + \"-foot aura; \" + Math.floor(n / 2) + \" psychic damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Scornful Rebuke\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I'm hit with an attack while I'm not incapacitated, the attacker takes damage\",\r\n\t\t\t\t\"This is psychic damage equal to my Charisma modifier (minimum of 0)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" - I have resistance to all damage\",\r\n\t\t\t\t\" - I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\" - My melee weapons score critical hits on a roll of 19 or 20\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the celestial-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*celestial).*$/i,\r\n\tsubname : \"the Celestial\",\r\n\tsource : [[\"UA:RCO\", 4]],\r\n\tspellcastingExtra : [\"burning hands\", \"cure wounds\", \"flaming sphere\", \"lesser restoration\", \"daylight\", \"revivify\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"greater restoration\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know the Light and Sacred Flame cantrips\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can heal a creature on touch by expending dice from my pool\",\r\n\t\t\t\t\"I can expend up to my Charisma modifier (min 1) of dice at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain all expended dice on a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\treturn (n + 1) + \"d6 per \";\r\n\t\t\t}),\r\n\t\t\tusagescalc : \"event.value = !classes.known.warlock ? '' : (1 + classes.known.warlock.level) + 'd6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add my Cha modifier to cantrips/spells I cast that deal fire or radiant damage\",\r\n\t\t\t\t\"Additionally, I have resistance to radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Radiant Resilience\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 10) return \"\";\r\n\t\t\t\treturn \"Me: \" + n + \"+Cha mod; Allies: \" + Math.floor(n / 2) + \"+Cha mod\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn when I would make a death save, I can instead spring back up\",\r\n\t\t\t\t\"I can stand up and recover HP equal to half my current HP maximum\",\r\n\t\t\t\t\"Also, creatures of my choice within 30 ft of me take 2d8 + Cha mod in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add Warlock invocations, revised versions from previous Unearthed Arcana articles, and new ones\r\n// Most probably still valid 2021-09-21, have to check\r\nAddWarlockInvocation(\"Eldritch Smite (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Eldritch Smite\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when I hit a creature with my pact weapon, I can do extra damage\",\r\n\t\t\"By expending a warlock spell slot, the creature takes extra damage and is knocked prone\",\r\n\t\t\"It takes 1d8 force damage and another 1d8 force damage per level of the spell slot\",\r\n\t\t\"If the target takes any of this bonus damage, it is knocked prone if it is Huge or smaller\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; }\r\n});\r\nAddWarlockInvocation(\"Frost Lance (prereq: Eldritch Blast cantrip)\", { // Still valid 2021-09-21\r\n\tname : \"Frost Lance\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when my Eldritch Blast hits a creature, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; 1 target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Ghostly Gaze (prereq: level 7 warlock)\", {\r\n\tname : \"Ghostly Gaze\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can see through solid objects out to 30 ft, until the end of my current turn\",\r\n\t\t\"Objects appear ghostly to me; I also gain 30 ft darkvision for the duration\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"I can use any pact weapon I create as my spellcasting focus for warlock spells\",\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a +1 magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tif (v.pactWeapon && !output.magic) {\r\n\t\t\t\t\tvar bContinue = true;\r\n\t\t\t\t\t// Now test if this isn't a weaponOptions addition with a static + bonus set to the modifier fields\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon && v.theWea.modifiers) {\r\n\t\t\t\t\t\t// Test the first two modifiers to see if both offer a +1 or more. Returns `true` if one contains no numbers or is less than the improved pact weapon bonus\r\n\t\t\t\t\t\tvar bContinue = v.theWea.modifiers.slice(0, 2).some(function (n) {\r\n\t\t\t\t\t\t\tif (!n || !/\\d/.test(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = 0;\r\n\t\t\t\t\t\t\t} else if (isNaN(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = n.match(/(^|\\+|-)\\d+\\b/g);\r\n\t\t\t\t\t\t\t\tnmbr = !nmbr ? 0 : nmbr.reduce(function(a, b) {return Number(a) + Number(b)});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar nmbr = Number(n);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn nmbr < 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if the continue boolean wasn't set to false, we can proceed\r\n\t\t\t\t\tif (bContinue) {\r\n\t\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name and is not a magic weapon with at least a +1 bonus, the calculation will add +1 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Kiss of Mephistopheles (prereq: level 5 warlock, Eldritch Blast cantrip)\", {\r\n\tname : \"Kiss of Mephistopheles\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action when my Eldritch Blast hits, I can cast Fireball using a warlock spell slot\",\r\n\t\t\"The origin of the Fireball is the creature that was hit with my Eldritch Blast attack\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Maddening Hex (prereq: level 5 warlock)\", {\r\n\tname : \"Maddening Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I cause pain around a target affected by a hex of mine (spell/feature)\",\r\n\t\t\"It and any of my choice within 5 ft of it take my Cha mod (min 0) in psychic damage\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 7 warlock)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport next to a target affected by a hex of mine (spell/feature)\",\r\n\t\t\"To do so, I must see the target and the space I'm teleporting to, and be within 30 ft of it\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\n\n// ua_20170911_Eladrin-and-Gith.js\r\n// This file adds the content from the Unearthed Arcana: Eladrin and Gith article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:EnG\"] = {\r\n\tname : \"Unearthed Arcana: Eladrin and Gith\",\r\n\tabbreviation : \"UA:EnG\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-Eladrin-Gith.pdf\",\r\n\tdate : \"2017/09/11\"\r\n};\r\n\r\n// Adds three races:\r\n// Alternative version of the Eladrin\r\nRaceList[\"eladrin-uaeng\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin)\",\r\n\tsource : [[\"UA:EnG\", 1]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity, +1 Intelligence or Charisma\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Eladrin (+2 Dexterity, +1 Intelligence or Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nFey Step: Once per short rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\" + (typePF ? \"\\n\" : \" \") + \"Shifting Seasons: After a short or long rest, I can align myself with a season, granting me access to a cantrip until my next rest: Friends, Chill Touch, Minor Illusion, or Fire Bolt. My spellcasting ability for this is Int or Cha, whichever is higher.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shifting Seasons\",\r\n\t\tspells : [\"friends\", \"chill touch\", \"minor illusion\", \"fire bolt\"],\r\n\t\tselection : [\"friends\", \"chill touch\", \"minor illusion\", \"fire bolt\"],\r\n\t\tfirstCol : \"checkbox\",\r\n\t\ttimes : 4\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n// Githyanki and its two variants\r\nRaceList[\"githyanki-ua\"] = {\r\n\tregExpSearch : /githyanki/i,\r\n\tname : \"Githyanki\",\r\n\tsource : [[\"UA:EnG\", 2]],\r\n\tplural : \"Githyanki\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gith\", 1],\r\n\tarmorProfs : [true, true, false, false],\r\n\tskillstxt : \"Choose any one skill or tool\",\r\n\tage : \" reach adulthood in their late teens and live for about a century\",\r\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (5'0\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 135 lb (100 + 2d12 \\xD7 2d4 lb)\",\r\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 61 kg (45 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 0, 0, 1, 0, 0],\r\n\ttrait : \"Githyanki (+2 Strength, +1 Intelligence)\\nGithyanki Psionics:\" + desc([\r\n\t\t\"I know the Mage Hand cantrip.\",\r\n\t\t\"At 3rd level, I can cast the Jump spell once per long rest.\",\r\n\t\t\"At 5th level, I can also cast the Misty Step spell once per long rest.\",\r\n\t\t\"Intelligence is my spellcasting ability for these spells.\",\r\n\t\t\"I don't require components to cast these spells.\"\r\n\t]),\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githyanki Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"jump\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 3)\",\r\n\t\t\tlimfeaname : \"Jump\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (3)\",\r\n\t\t\t\tspells : [\"jump\"],\r\n\t\t\t\tselection : [\"jump\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"misty step\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 5)\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (5)\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"githyanki-ua\", \"tool proficiency\", {\r\n\tregExpSearch : /tool proficiency/i,\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n});\r\nAddRacialVariant(\"githyanki-ua\", \"skill proficiency\", {\r\n\tregExpSearch : /skill proficiency/i,\r\n\tskillstxt : \"Choose any one skill\"\r\n});\r\n// Githzerai\r\nRaceList[\"githzerai-ua\"] = {\r\n\tregExpSearch : /githzerai/i,\r\n\tname : \"Githzerai\",\r\n\tsource : [[\"UA:EnG\", 3]],\r\n\tplural : \"Githzerai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gith\"],\r\n\tage : \" reach adulthood in their late teens and live for about a century\",\r\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (4'11\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 2, 0],\r\n\ttrait : \"Githzerai (+1 Intelligence, +2 Wisdom)\\n\" + (typePF ? \"\\n\" : \"\") + \"Monastic Training: I gain a +1 bonus to AC while I'm not wearing medium or heavy armor and not using a shield.\\n\\nGithzerai Psionics: I know the Mage Hand cantrip. At 3rd level, I can cast the Shield spell once per long rest. At 5th level, I can also cast the Detect Thoughts spell once per long rest. Wisdom is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githzerai Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"shield\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 3)\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (3)\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"detect thoughts\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 5)\",\r\n\t\t\tlimfeaname : \"Detect Thoughts\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (5)\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\textraAC : {\r\n\t\tname : \"Monastic Training\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing medium or heavy armor and not using a shield.\",\r\n\t\tstopeval : function (v) { return v.mediumArmor || v.heavyArmor || v.usingShield; }\r\n\t}\r\n};\r\n\n// ua_20171009_Fiendish-Options.js\r\n// This file adds the content from the Unearthed Arcana: Fiendish Options article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FO\"] = {\r\n\tname : \"Unearthed Arcana: Fiendish Options\",\r\n\tabbreviation : \"UA:FO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA_FiendishOptions.pdf\",\r\n\tdate : \"2017/10/09\"\r\n};\r\n\r\n// Adds 8 subraces for the Tiefling, even though it doesn't have any in the PHB/SRD\r\n// Much of this code was contributed by Friedrich\r\nRaceList[\"dispater tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*dispater)(?=.*tiefling|planetouched).*$/i,\r\n\tname : \"Dispater tiefling\",\r\n\tsortname : \"Tiefling, Dispater\",\r\n\tsource : [[\"UA:FO\", 1]],\r\n\tplural : \"Dispater tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\ttrait : \"Dispater Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Dis:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Disguise Self spell once per long rest.\\n   At 5th level, I can also cast the Invisibility spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Legacy of Dis (level 1)\",\r\n\t\tspells : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"disguise self\" : {\r\n\t\t\tname : \"Legacy of Dis (level 3)\",\r\n\t\t\tlimfeaname : \"Disguise Self\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Dis (level 3)\",\r\n\t\t\t\tspells : [\"disguise self\"],\r\n\t\t\t\tselection : [\"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Legacy of Dis (level 5)\",\r\n\t\t\tlimfeaname : \"Invisibility\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Dis (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"mephistopheles tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*mephistopheles)(?=.*tiefling|planetouched).*$/i,\r\n\tname : \"Mephistopheles tiefling\",\r\n\tsortname : \"Tiefling, Mephistopheles\",\r\n\tsource : [[\"UA:FO\", 2]],\r\n\tplural : \"Mephistopheles tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Mephistopheles Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Cania:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast the Magic Missile spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Web spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Legacy of Cania (level 1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"magic missile\" : {\r\n\t\t\tname : \"Legacy of Cania (level 3)\",\r\n\t\t\tlimfeaname : \"Magic Missile (2 darts)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Cania (level 3)\",\r\n\t\t\t\tspells : [\"magic missile\"],\r\n\t\t\t\tselection : [\"magic missile\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"magic missile\" : {\r\n\t\t\t\t\tdescription : \"4 darts hit creature(s) I can see for 1d4+1 Force dmg per dart\",\r\n\t\t\t\t\tchanges : \"Using Legacy of Cania, I cast Magic Missile as if I'm using a 2nd-level spell slot.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"web\" : {\r\n\t\t\tname : \"Legacy of Cania (level 5)\",\r\n\t\t\tlimfeaname : \"Web\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Cania (level 5)\",\r\n\t\t\t\tspells : [\"web\"],\r\n\t\t\t\tselection : [\"web\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20171113_Elf-Subraces.js\r\n// This file adds the content from the Unearthed Arcana: Elf Subraces article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:ES\"] = {\r\n\tname : \"Unearthed Arcana: Elf Subraces\",\r\n\tabbreviation : \"UA:ES\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-ElfSubraces.pdf\",\r\n\tdate : \"2017/11/13\"\r\n};\r\n\r\n// Adds 4 new subraces for the elf\r\nRaceList[\"avariel-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*avariel)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(winged?|wings?|flying|air)\\b))).*$/i,\r\n\tname : \"Avariel\",\r\n\tsortname : \"Elf, Winged (Avariel)\",\r\n\tsource : [[\"UA:ES\", 1]],\r\n\tplural : \"Avariel\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Auran\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from 5 to over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Avariel (+2 Dexterity)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nFlight: I have a flying speed of 30 feet. To use this speed, I can't be wearing medium or heavy armor.\"\r\n};\r\nRaceList[\"grugach elf-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*grugach)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(wilds?|wilderness)\\b))).*$/i,\r\n\tname : \"Grugach\",\r\n\tsortname : \"Elf, Wild (Grugach)\",\r\n\tsource : [[\"UA:ES\", 1]],\r\n\tplural : \"Grugach\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Elvish\", \"Sylvan\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"spear\", \"longbow\", \"shortbow\", \"net\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" stand around 5 feet tall (4'5\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 100 lb (75 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from well under to well over 1,5 metres tall (135 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 45 kg (35 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [1, 2, 0, 0, 0, 0],\r\n\ttrait : \"Grugach (+1 Strength, +2 Dexterity)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nCantrip: I know one cantrip of my choice from the druid spell list. Wisdom is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Grugach Cantrip\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\teval : function () {\r\n\t\tRemoveLangTool('language', 'Common');\r\n\t}\r\n};\r\n// Edit the Wood Elf PHB entry, if available, to not match on Grugach\r\nif (RaceList[\"wood elf\"]) {\r\n\tRaceList[\"wood elf\"].regExpSearch = RaceList[\"wood elf\"].regExpSearch.replace(/grugach\\|?|wilds\\?\\|?/g, \"\");\r\n}\r\nRaceList[\"shadar-kai elf-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\r\n\tname : \"Shadar-kai\",\r\n\tsortname : \"Elf, Shadow (Shadar-kai)\",\r\n\tsource : [[\"UA:ES\", 2]],\r\n\tplural : \"Shadar-kai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'8\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Shadar-kai (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nBlessing of the Raven Queen: Once per short rest, as a bonus action, I can magically teleport up to 15 ft to an unoccupied space I can see, and, until the start of my next turn, I have resistance to all damage and appear translucent.\" + (typePF ? \"\\n\" : \" \") + \"Cantrip: I know one cantrip: Chill Touch, Spare the Dying, or Thaumaturgy. Charisma is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shadar-kai Cantrip\",\r\n\t\tspells : [\"chill touch\", \"spare the dying\", \"thaumaturgy\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"blessing of the raven queen\" : {\r\n\t\t\tname : \"Blessing of the Raven Queen\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20180108_Three-Subclasses.js\n// This file adds the content from the Unearthed Arcana: Three Subclasses article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TS\"] = {\n\tname : \"Unearthed Arcana: Three Subclasses\",\n\tabbreviation : \"UA:TS\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA-3Subclasses0108.pdf\",\n\tdate : \"2018/01/08\"\n};\n\n// Adds 3 subclasses: 1 for the Druid, 1 for the Fighter, and 1 for the Wizard\nAddSubClass(\"druid\", \"circle of spores-ua\", {\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*spores).*$/i,\n\tsubname : \"Circle of Spores\",\n\tsubnameShort: \"Spores\",\n\tsource : [[\"UA:TS\", 1]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Circle Spells\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"My link to the cycle of life and death gives me with the ability to cast certain spells\",\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\n\t\t\t\t\"In addition, I learn the Chill Touch cantrip\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Circle Spells\",\n\t\t\t\tspells : [\"chill touch\"],\n\t\t\t\tselection : [\"chill touch\"],\n\t\t\t\tfirstCol : 'atwill'\n\t\t\t}],\n\t\t\tspellcastingExtra : [\"gentle repose\", \"ray of enfeeblement\", \"animate dead\", \"gaseous form\", \"blight\", \"confusion\", \"cloudkill\", \"contagion\"]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Halo of Spores\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription: desc(\"As a reaction on my turn, I can do poison damage to one creature I can see within 10 ft\"),\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : (n < 6 ? 3 : n < 10 ? 6 : n < 14 ? 9 : 12) + \" poison damage\"; }),\n\t\t\taction : [[\"reaction\", \" (on my turn)\"]]\n\t\t},\n\t\t\"subclassfeature2.2\" : {\n\t\t\tname : \"Symbiotic Entity\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I expend a Wild Shape use to boost my spores instead of transforming\",\n\t\t\t\t\"I then gain 3 temporary HP per druid level and my Halo of Spores does double damage\",\n\t\t\t\t\"Also, my melee weapon attacks do +1d6 poison damage with every hit\",\n\t\t\t\t\"This lasts for 10 minutes or until I use Wild Shape again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 2 ? \"\" : Math.floor(n*3) + \" temp HP; Halo of Spores: \" + (n < 6 ? 6 : n < 10 ? 12 : n < 14 ? 18 : 24) + \" damage\";\n\t\t\t}),\n\t\t\taction : [[\"action\", \"\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/\\b(spore|symbiotic)\\b/i).test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 poison damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the word 'Spore' or 'Symbiotic' in a melee weapon's name or description, it gets treated as a weapon that is infused by my Symbiotic Entity feature, adding +1d6 poison damage in the description.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Fungal Infestation\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I kill a humanoid with my Halo of Spores, it rises as a zombie at the end of my turn\",\n\t\t\t\t\"This zombie has 1 HP, only takes the Attack action, and can only make 1 attack with it\",\n\t\t\t\t\"It follows my mental commands and takes it turn after mine; It lasts for 1 hour\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Spreading Spores\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I create a 10-ft cube of fungal spores within 30 ft, lasting for 1 min\",\n\t\t\t\t\"Any creature starting its turn in the cube takes the damage of my Halo of Spores\",\n\t\t\t\t\"The cube ends if I use this again; While the cube persists, I can't use my Halo of Spores\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Fungal Body\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription: desc(\"I'm immune to critical hits and to being blinded, deafened, frightened, and poisoned\"),\n\t\t\tsavetxt : { immune : [\"blinded\", \"deafened\", \"frightened\", \"poisoned\", \"critical hits\"] }\n\t\t}\n\t}\n});\nvar UATS_fighterBruteSubclassUA = AddSubClass(\"fighter\", \"brute-ua\", {\n\tregExpSearch : /brute/i,\n\tsubname : \"Brute\",\n\tsource : [[\"UA:TS\", 2]],\n\tfullname : \"Brute\",\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Brute Force\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 3,\n\t\t\tdescription: desc(\"I do additional damage with weapons that I'm proficient with\"),\n\t\t\tadditional : levels.map(function (n) { \n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 10 ? 4 : n < 16 ? 6 : n < 20 ? 8 : 10) + \" weapon damage\";\n\t\t\t}),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (classes.known.fighter && classes.known.fighter.level > 2 && !v.isSpell && !v.isNaturalWeapon && fields.Proficiency) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d' + (classes.known.fighter.level < 10 ? 4 : classes.known.fighter.level < 16 ? 6 : classes.known.fighter.level < 20 ? 8 : 10) + ' damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"I do +1d4 damage with weapons that I'm proficient with. This increases to 1d6 at 10th level, 1d8 at 16th level, and 1d10 at 20th level.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature7\" : {\n\t\t\tname : \"Brutish Durability\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 7,\n\t\t\tdescription : desc([\n\t\t\t\t\"I add +1d6 to all my saving throws, including death saves\",\n\t\t\t\t\"If the total of a death save is 20 or more, it counts as rolling a 20\"\n\t\t\t]),\n\t\t\tsavetxt : { text : [\"Add 1d6 to all saves\"] }\n\t\t},\n\t\t\"subclassfeature15\" : {\n\t\t\tname : \"Devastating Critical\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 15,\n\t\t\tdescription: desc(\"Whenever I score a critical hit with a weapon, I add my fighter level to the damage\"),\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"+\" + n + \" damage on crit\"; })\n\t\t},\n\t\t\"subclassfeature18\" : {\n\t\t\tname : \"Survivor\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 18,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I have less than half my max HP at the start of my turn, I heal myself\",\n\t\t\t\t\"I regain HP equal to 5 + Constitution modifier (min 1); This doesn't work if I'm at 0 HP\"\n\t\t\t])\n\t\t}\n\t}\n});\nRunFunctionAtEnd(function () {\n\tvar FSfea = newObj(ClassList.fighter.features[\"fighting style\"]);\n\tFSfea.name = \"Additional Fighting Style\";\n\tFSfea.source = [\"UA:TS\", 2];\n\tFSfea.minlevel = 10;\n\tFSfea.extrachoices = \"\";\n\tFSfea.description = desc('Choose an Additional Fighting Style using the \"Choose Feature\" button above');\n\tClassSubList[UATS_fighterBruteSubclassUA].features.subclassfeature10 = FSfea;\n});\nAddSubClass(\"wizard\", \"school of invention-ua\", {\n\tregExpSearch : /^(?=.*wizard)(?=.*invent(ion|or)).*$/i,\n\tsubname : \"School of Invention\",\n\tsubnameShort: \"Invention\",\n\tfullname : \"Wizard (Inventor)\",\n\tsource : [[\"UA:TS\", 2]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Tools of the Inventor\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription: desc(\"I gain proficiency with light armor and two tools of my choice\"),\n\t\t\ttoolProfs : [[\"Any one tool\", 2]],\n\t\t\tarmorProfs : [true, false, false, false]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Arcanomechanical Armor\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"After a long rest, I can transform a studded leather armor into arcanomechanical armor\",\n\t\t\t\t\"This is a magic light armor that gives AC 12 + Dex mod and force resistance, if attuned\",\n\t\t\t\t\"Only I can attune to it; Creating a new one removes the magic from the previous\"\n\t\t\t]),\n\t\t\tdmgres : [\"Force\"],\n\t\t\tarmorOptions : [{\n\t\t\t\tregExpSearch : /arcanomechanical/i,\n\t\t\t\tname : \"Arcanomechanical\",\n\t\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\t\ttype : \"light\",\n\t\t\t\tac : 12,\n\t\t\t\tweight : 8,\n\t\t\t\tinvName : \"Arcanomechanical armor\",\n\t\t\t\tselectNow : true\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature2.2\" : {\n\t\t\tname : \"Reckless Casting\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can attempt to cast a random spell or cantrip by rolling a d10 on a table\",\n\t\t\t\t\"On a roll of 10, I roll again twice on that table and cast both results\",\n\t\t\t\t\"However, if I then roll 10 on either dice, the whole casting fails and the action is wasted\",\n\t\t\t\t\"If I choose cantrip, I roll on the table once and cast the result\",\n\t\t\t\t\"If I choose a spell, I expend a spell slot and roll twice on the table for the slot's level\",\n\t\t\t\t\"I can then choose which of the results I use; Use 5th-level table for spell slots over level 5\"\n\t\t\t]),\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Reckless Casting Tables\",\n\t\t\t\tnote : \"\\nd10\\tCantrip\\t\\td10\\tCantrip\" + desc([\n\t\t\t\t\t\" 1\\tAcid Splash\\t\\t    6\\tRay of Frost\",\n\t\t\t\t\t\" 2\\tChill Touch\\t\\t    7\\tShocking Grasp\",\n\t\t\t\t\t\" 3\\tFire Bolt\\t\\t    8\\tSacred Flame\",\n\t\t\t\t\t\" 4\\tLight\\t\\t    9\\tThorn Whip\",\n\t\t\t\t\t\" 5\\tPoison Spray\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t1st-Level Spell\\td10\\t1st-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBurning Hands\\t    6\\tFog Cloud\",\n\t\t\t\t\t\" 2\\tChromatic Orb\\t    7\\tJump\",\n\t\t\t\t\t\" 3\\tColor Spray\\t\\t    8\\tMagic Missile\",\n\t\t\t\t\t\" 4\\tFaerie Fire\\t\\t    9\\tThunderwave\",\n\t\t\t\t\t\" 5\\tFalse Life\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t2nd-Level Spell\\td10\\t2nd-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlur\\t\\t    6\\tLevitate\",\n\t\t\t\t\t\" 2\\tDarkness\\t\\t    7\\tMelf's Acid Arrow\",\n\t\t\t\t\t\" 3\\tEnlarge/Reduce\\t    8\\tScorching Ray\",\n\t\t\t\t\t\" 4\\tGust of Wind\\t    9\\tShatter\",\n\t\t\t\t\t\" 5\\tInvisibility\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t3rd-Level Spell\\td10\\t3rd-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlink\\t\\t    6\\tGaseous Form\",\n\t\t\t\t\t\" 2\\tFear\\t\\t    7\\tLightning Bolt\",\n\t\t\t\t\t\" 3\\tFeign Death \\t    8\\tSleet Storm\",\n\t\t\t\t\t\" 4\\tFireball\\t\\t    9\\tStinking Cloud\",\n\t\t\t\t\t\" 5\\tFly\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t4th-Level Spell\\td10\\t4th-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlight\\t\\t    6\\tIce Storm\",\n\t\t\t\t\t\" 2\\tConfusion\\t\\t    7\\tPhantasmal Killer\",\n\t\t\t\t\t\" 3\\tEvard's Black Tentacles\\t    8\\tStoneskin\",\n\t\t\t\t\t\" 4\\tFire Shield\\t\\t    9\\tWall of Fire\",\n\t\t\t\t\t\" 5\\tGreater Invisibility\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t5th-Level Spell\\td10\\t5th-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tCloudkill\\t\\t    6\\tInsect Plague\",\n\t\t\t\t\t\" 2\\tCone of Cold\\t    7\\tMass Cure Wounds\",\n\t\t\t\t\t\" 3\\tDestructive Wave\\t    8\\tWall of Force\",\n\t\t\t\t\t\" 4\\tFlame Strike\\t    9\\tWall of Stone\",\n\t\t\t\t\t\" 5\\tHold Monster\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t])\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Alchemical Casting\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"I can manipulate spells cast while wearing and attuned to my Arcanomechanical Armor\",\n\t\t\t\t\"By expending an additional 1st or 2nd-level spell slot, I do the following:\",\n\t\t\t\t\"\\u2022 1st: I can substitute acid, cold, fire, lightning, or thunder damage for another type\",\n\t\t\t\t\"\\u2022 2nd: I increase the spells damage, if any, by 2d10 force damage against one target\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Prodigious Inspiration\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 10,\n\t\t\tdescription: desc(\"As a bonus action, I can replace a prepared spell with another from my spellbook\"),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Controlled Chaos\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I expend a spell slot to cast a spell using Reckless Casting, it is more powerful\",\n\t\t\t\t\"I can roll on the table that is one level higher than the spell slot expended\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n// ua_20180409_Order-Domain.js\r\n// This file adds the content from the Unearthed Arcana: Order Domain article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:OD\"] = {\r\n\tname : \"Unearthed Arcana: Order Domain\",\r\n\tabbreviation : \"UA:OD\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_OrderDomain.pdf\",\r\n\tdate : \"2018/04/09\"\r\n};\r\n\r\n// New Subclass for Cleric: Order Domain\r\nAddSubClass(\"cleric\", \"order domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*order).*$/i,\r\n\tsubname : \"Order Domain\",\r\n\tsource : [[\"UA:OD\", 1]],\r\n\tspellcastingExtra : [\"command\", \"heroism\", \"enhance ability\", \"hold person\", \"mass healing word\", \"slow\", \"compulsion\", \"locate creature\", \"commune\", \"dominate person\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Voice of Authority\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I use a spell slot to cast a spell on an ally, it can use its reaction to attack\",\r\n\t\t\t\t\"The ally makes one weapon attack against a target of my choice that I can see\",\r\n\t\t\t\t\"If the spell targets multiple allies, I can choose which one can make the attack\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Order's Demand\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all chosen targets in 30 ft that can see or hear me must make a Wis save\",\r\n\t\t\t\t\"If failed, it is charmed by me until the end of my next turn or it takes any damage\",\r\n\t\t\t\t\"Also, I can choose to have any of the charmed targets to fall prone on a failed save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Order's Dominion\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast an enchantment spell using a spell slot, I regain one expended spell slot\",\r\n\t\t\t\t\"The regained slot must be lower level than the one used, and no higher than 5th-level\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 force damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 force damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra force damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Order's Wrath\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I deal my Divine Strike damage to a creature, it takes extra damage from my allies\",\r\n\t\t\t\t\"The first time each turn that it is hit with a weapon attack, it takes 2d8 force damage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20180514_Centaur-and-Minotaur.js\r\n// This file adds the content from the Unearthed Arcana: Centaur and Minotaur article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CnM\"] = {\r\n\tname : \"Unearthed Arcana: Centaur and Minotaur\",\r\n\tabbreviation : \"UA:CnM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA-Centaur.pdf\",\r\n\tdate : \"2018/05/14\"\r\n};\r\n\r\n// Add the Centaur race\r\nRaceList[\"centaur-ua\"] = {\r\n\tregExpSearch : /centaur/i,\r\n\tname : \"Centaur\",\r\n\tsortname : \"Centaur\",\r\n\tsource : [[\"UA:CnM\", 1]],\r\n\tplural : \"Centaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\r\n\t\tname : \"Hooves\",\r\n\t\tsource : [[\"UA:CnM\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tskills : [\"Survival\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" stand between 7 and 8 feet tall (front hooves to their crowns) and 6 to 8 feet long (from their chest to the back of their rumps)\", // from 3.5e Races of Faerun\r\n\tweight : \" weigh anywhere from 950 to 1200 lb\", // from 3.5e Races of Faerun\r\n\theightMetric : \" stand between 2,1 and 2,4 metres tall (front hooves to their crowns) and 1,8 to 2,4 metres long (from their chests to the back of their rumps)\",\r\n\tweightMetric : \" weigh anywhere from 430 to 550 kg\",\r\n\tscores : [2, 0, 0, 0, 1, 0],\r\n\ttrait : \"Centaur (+2 Strength +1 Wisdom)\" + desc([\r\n\t\t\"Hooves: I can use my hooves in melee (1d6 bludgeoning damage).\",\r\n\t\t\"Charge: Once per short rest, if I move 20 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can roll the weapon's damage dice twice.\",\r\n\t\t\"Equine Build: I count as one size larger for my carrying capacity. While climbing, 1 ft of movement costs me 5 ft. A medium or smaller creature can ride me as a mount.\",\r\n\t\t\"Hybrid Nature: I am affected by effects that work on either humanoids or monstrosities.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"charge\" : {\r\n\t\t\tname : \"Charge\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\n\r\n// Add the Minotaur race\r\nRaceList[\"minotaur-uacnm\"] = {\r\n\tregExpSearch : /minotaur/i,\r\n\tname : \"Minotaur\",\r\n\tsortname : \"Minotaur\",\r\n\tsource : [[\"UA:CnM\", 2]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Minotaur\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"UA:CnM\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"One horns attack as a bonus action if taking the Dash action\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\r\n\theight : \" are well over 6 feet tall\",\r\n\tweight : \" weigh around 300 lb\",\r\n\theightMetric : \" are well over 1,8 metres tall\",\r\n\tweightMetric : \" weigh around 135 kg\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tabilitySave : 1,\r\n\ttrait : \"Minotaur (+2 Strength +1 Constitution)\" + desc([\r\n\t\t\"Horns: I have horns that I can use in melee (1d6 piercing damage).\",\r\n\t\t\"Goring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\",\r\n\t\t\"Hammering Horns: As a reaction after I hit a melee attack during my Attack action, I can shove that target with my horns, if it is no more than one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 5 ft away from me.\",\r\n\t\t\"Hybrid Nature: I am affected by effects that work on either humanoids or monstrosities.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"goring rush\" : {\r\n\t\t\tname : \"Goring Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\r\n\t\t},\r\n\t\t\"hammering horns\" : {\r\n\t\t\tname : \"Hammering Horns\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"reaction\", \" (after hit)\"]]\r\n\t\t}\r\n\t}\r\n};\r\n\n// ua_20180611_Giant-Soul-Sorcerer.js\r\n// This file adds the content from the Unearthed Arcana: Giant Soul Sorcerer article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:GSS\"] = {\r\n\tname : \"Unearthed Arcana: Giant Soul Sorcerer\",\r\n\tabbreviation : \"UA:GSS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_GiantSoul.pdf\",\r\n\tdate : \"2018/06/11\"\r\n};\r\n\r\nAddSubClass(\"sorcerer\", \"giant soul-ua\", {\r\n\tregExpSearch : /^(?=.*giant)(?=.*soul)(?=.*sorcerer).*$/i,\r\n\tsubname : \"Giant Soul\",\r\n\tsource : [[\"UA:GSS\", 1]],\r\n\tfullname : \"Giant Soul Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Jotun Resilience\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My hit point maximum increases by an amount equal to my sorcerer level\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Jotun Resilience (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Mark of Ordning\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a giant heritage using the \"Choose Feature\" button above',\r\n\t\t\t\t\"I learn spells based on my giant heritage, which I add to my known spells\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Cloud Giant\", \"Fire Giant\", \"Frost Giant\", \"Hill Giant\", \"Stone Giant\", \"Storm Giant\"],\r\n\t\t\t\"cloud giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Cloud Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Minor Illusion, Fog Cloud and Invisibility to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"minor illusion\", \"fog cloud\", \"invisibility\"],\r\n\t\t\t\t\tselection : [\"minor illusion\", \"fog cloud\", \"invisibility\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"fire giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Fire Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Fire Bolt, Burning Hands, and Flaming Sphere to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"fire bolt\", \"burning hands\", \"flaming sphere\"],\r\n\t\t\t\t\tselection : [\"fire bolt\", \"burning hands\", \"flaming sphere\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"frost giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Frost Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Ray of Frost, Armor of Agathys, and Hold Person to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"ray of frost\", \"armor of agathys\", \"hold person\"],\r\n\t\t\t\t\tselection : [\"ray of frost\", \"armor of agathys\", \"hold person\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"hill giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Hill Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Shillelagh, Heroism, and Enlarge/Reduce to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"shillelagh\", \"heroism\", \"enlarge/reduce\"],\r\n\t\t\t\t\tselection : [\"shillelagh\", \"heroism\", \"enlarge/reduce\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"stone giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Stone Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Resistance, Entangle, and Spike Growth to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"resistance\", \"entangle\", \"spike growth\"],\r\n\t\t\t\t\tselection : [\"resistance\", \"entangle\", \"spike growth\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"storm giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Storm Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Thunderwave, Shocking Grasp, and Gust of Wind to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"thunderwave\", \"shocking grasp\", \"gust of wind\"],\r\n\t\t\t\t\tselection : [\"thunderwave\", \"shocking grasp\", \"gust of wind\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{ feature : \"subclassfeature6\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of Lost Ostoria\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the giant heritage'),\r\n\t\t\tchoices : [\"Cloud Giant\", \"Fire Giant\", \"Frost Giant\", \"Hill Giant\", \"Stone Giant\", \"Storm Giant\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"cloud giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Cloud Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action after casting any of my Mark of Ordning spells, I can teleport\",\r\n\t\t\t\t\t\"I teleport to an unoccupied space that I can see up to my Con mod + 10 ft away\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"fire giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Fire Giant\",\r\n\t\t\t\tdescription: desc(\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.baseWeaponName == 'fire bolt') output.extraDmg += Math.max(What('Con Mod'), 1);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells: Fire Bolt, Burning Hands, and Flaming Sphere\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (spName == \"sorcerer\" && (/^(fire bolt|burning hands|flaming sphere)$/i).test(spellKey)) {\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/d(6|10)/, \"d$1+\" + Math.max(1, What(\"Con Mod\")));\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells: Fire Bolt, Burning Hands, and Flaming Sphere\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"frost giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Frost Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I gain temporary HP\",\r\n\t\t\t\t\t\"I gain my Con mod in temporary HP (min 1) and its added to that of the spell (if any)\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"hill giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Hill Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I can magically push others\",\r\n\t\t\t\t\t\"I can select up to two creatures within 5 ft of me that each have to make a Str save\",\r\n\t\t\t\t\t\"If failed, it is pushed my Con mod (min 1) + 5 ft away from me; It can choose to fail\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"stone giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Stone Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I gain a bonus to AC\",\r\n\t\t\t\t\t\"My AC increases with my Constitution modifier (min +1) until the end of my next turn\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"storm giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Storm Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I shoot lightning\",\r\n\t\t\t\t\t\"Up to 3 targets in 30 ft that I can see take my Con mod (min 1) in lightning damage\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage of Fallen Ostoria\",\r\n\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I start casting a sorcerer spell using a spell slot on my turn, I can grow in size\",\r\n\t\t\t\t\"It lasts for 1 min or until I die or am incapacitated; I can activate it only once per turn\",\r\n\t\t\t\t\"While it lasts, I enjoy the following benefits (which are cumulative, except the damage):\",\r\n\t\t\t\t\"\\u2022 I increase size by one category (from Medium to Large, for example)\",\r\n\t\t\t\t\"\\u2022 My current HP and maximum HP increase by a number equal to my sorcerer level\",\r\n\t\t\t\t\"\\u2022 My reach and walking speed both increase by 5 ft\",\r\n\t\t\t\t\"\\u2022 I gain advantage on Strength checks and Strength saving throws\",\r\n\t\t\t\t\"\\u2022 I add my Constitution modifier to the damage of my melee weapon attacks (min +1)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : \"+\" + n + \" HP\";\r\n\t\t\t}),\r\n\t\t\tusages : levels.map(function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : n < 18 ? 1 : 2;\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Blessing of the All Father\",\r\n\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"I add +2 to my Constitution and its maximums increases to 22\"),\r\n\t\t\tscores : [0, 0, 2, 0, 0, 0],\r\n\t\t\tscoresMaximum : [0, 0, 22, 0, 0, 0]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20180723_Races-of-Eberron.js\n// This file adds the content from the Unearthed Arcana: Races of Eberron article to MPMB's Character Record Sheet\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\n\n// Define the sources\nSourceList[\"UA:RoE\"] = {\n\tname : \"Unearthed Arcana: Races of Eberron\",\n\tabbreviation : \"UA:RoE\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Eberron\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/723UA_EberronRaces7232018.pdf\",\n\tdate : \"2018/07/23\"\n};\n\n// The changeling\nRaceList[\"changeling-ua2\"] = {\n\tregExpSearch : /changeling/i,\n\tname : \"Changeling\",\n\tsource : [[\"WGtE\", 61], [\"UA:RoE\", 2]],\n\tplural : \"Changelings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Choose two from Deception, Intimidation, Insight, and Persuasion\",\n\tlanguageProfs : [\"Common\", 2],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" reach adulthood in their early teens and live around 80 years\",\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\n\tscorestxt : \"+2 Charisma, and +1 Dexterity or +1 Intelligence\",\n\tscores : [0, 0, 0, 0, 0, 2],\n\ttrait : \"Changeling (+2 Charisma, and +1 Dexterity or +1 Intelligence)\\nChange Appearance: As an action, I can polymorph to or from a humanoid form of my size I have seen, not changing my equipment. I revert back if I die and have adv. on Deception.\\nUnsettling Visage: As a reaction once per short rest when I'm attacked by a seen attacker, I can impose disadv. Doing this reveals my shapeshifting nature to all within 30 ft.\\nDivergent Persona: I have proficiency with one tool, and an alternate persona. While in the alternate form, my proficiency bonus with that tool is doubled.\",\n\taction : [[\"action\", \"Change Appearance\"]],\n\tfeatures : {\n\t\t\"unsettling visage\" : {\n\t\t\tname : \"Unsettling Visage\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t}\n\t}\n};\n\n// The kalashtar\nRaceList[\"kalashtar-ua\"] = { //this code includes contributions by /u/SoilentBrad\n\tregExpSearch : /kalashtar/i,\n\tname : \"Kalashtar\",\n\tsource : [[\"WGtE\", 63], [\"UA:RoE\", 4]],\n\tplural : \"Kalashtar\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Advantage with either Insight, Intimidation, Performance, or Persuasion\",\n\tlanguageProfs : [\"Common\", \"Quori\", 1],\n\tsavetxt : { immune : [\"effects that require me to dream\"] },\n\tdmgres : [\"Psychic\"],\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\n\theight : \" range from 5 and a half to well over 6 feet tall (5'4\\\" + 2d6\\\")\",\n\tweight : \" weigh around 145 lb (110 + 2d6 \\xD7 1d6 lb)\",\n\theightMetric : \" range from 1,7 to 1,9 metres tall (160 + 5d6 cm)\",\n\tweightMetric : \" weigh around 65 kg (50 + 5d6 \\xD7 2d6 / 10 kg)\",\n\tscorestxt : \"+1 Wisdom, +1 Charisma, and +1 to one other ability score of my choice\",\n\tscores : [0, 0, 0, 0, 1, 1],\n\ttrait : \"Kalashtar (+1 Wisdom, +1 Charisma, and +1 to one other\" + (typePF ? \"\" : \" ability score of my choice\") + \")\\nDual Mind: As a reaction after I roll a Wis\" + (typePF ? \" save, I can gain adv.\" : \"dom saving throw, I can gain advantage\") + \" on it.\\nMind Link: I can speak telepathically to any creature I can see within 60 ft, as long as it can speak at least one language. As a bonus action, I can give that creature the ability to speak telepathically back to me until the start of my next turn.\\nPsychic Glamour: I have adv. on Insight, Intimidation, Performance, or Persuasion checks.\\nSevered from Dreams: I don't dream and thus immune to spells that affect dreams.\",\n\taction : [['bonus action', 'Mind Link'], ['reaction', 'Dual Mind']]\n};\n\n// The four subraces of the shifter\nRaceList[\"beasthide shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*beast)(?=.*hide).*$/i,\n\tname : \"Beasthide shifter\",\n\tsortname : \"Shifter, Beasthide\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Beasthide shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Athletics\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 2, 0, 0, 0],\n\ttrait : \"Beasthide Shifter: (+1 Dexterity, +2 Constitution)\\n\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to 1d6 + my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have a +1 bonus to AC\",\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"longtooth shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*long)(?=.*(tooth|teeth)).*$/i,\n\tname : \"Longtooth shifter\",\n\tsortname : \"Shifter, Longtooth\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Longtooth shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\n\t\tname : \"Longtooth Fangs\",\n\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\t\tdamage : [1, 6, \"piercing\"],\n\t\tdescription : \"Only while shifted; One attack as bonus action\",\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Intimidation\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [2, 1, 0, 0, 0, 0],\n\ttrait : \"Longtooth Shifter: (+2 Strength, +1 Dexterity)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I use my elongated fangs to make unarmed strikes, dealing 1d6 piercing damage. As a bonus action, I can maken one attack with my fangs.\",\n\taction : ['bonus action', 'Attack with Longtooth Fangs'],\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"swiftstride shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*swift)(?=.*stride).*$/i,\n\tname : \"Swiftstride shifter\",\n\tsortname : \"Shifter, Swiftstride\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Swiftstride shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Acrobatics\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 2, 0, 0, 0, 1],\n\ttrait : \"Swiftstride Shifter: (+2 Dexterity, +1 Charisma)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nWhile transformed like this, my walking speed increases with 5 ft.\\nAs a reaction when an enemy ends its turn within 5 ft of me while I'm shifted, I can move 10 ft without provoking opportunity attacks.\",\n\taction : ['reaction', 'Stride (while shifted)'],\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"wildhunt shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*wild)(?=.*hunt).*$/i,\n\tname : \"Wildhunt shifter\",\n\tsortname : \"Shifter, Wildhunt\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Wildhunt shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Perception\", \"Survival\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 2, 0],\n\ttrait : \"Wildhunt Shifter: (+1 Dexterity, +2 Wisdom)\\nShifting: As a bonus action once per short rest, I can transform and get adv. on Wis checks.\" + (typePF ? \" \" : \"\\n\") + \"This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nMark the Scent: As a bonus action once per short rest, I can mark a creature that I can see within 10 ft. Until the end of my next long rest, my proficiency bonus is doubled for checks to find this target, and I always know its location if it is within 60 ft of me.\",\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t},\n\t\t\"mark the scent\" : {\n\t\t\tname : \"Mark the Scent\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t}\n};\n\n// The three subraces of the warforged\nRaceList[\"envoy warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*envoy).*$/i,\n\tname : \"Envoy warforged\",\n\tsortname : \"Warforged, Envoy\",\n\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\tplural : \"Envoy warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tskillstxt : \"Choose any one skill, any one tool, and expertise with any one tool I'm proficient with\",\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscorestxt : \"+1 Constitution and +1 to two other ability scores of my choice\",\n\tscores : [0, 0, 1, 0, 0, 0],\n\ttrait : \"Envoy Warforged (+1 Constitution and +1 to two other abilit\" + (typePF ? \"ies\" : \"y scores of my choice\") + \")\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nIntegrated Tool: I have expertise with one tool and it is integrated into my body.\",\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\nRaceList[\"juggernaut warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*juggernaut).*$/i,\n\tname : \"Juggernaut warforged\",\n\tsortname : \"Warforged, Juggernaut\",\n\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\tplural : \"Juggernaut warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*warforged)(?=.*iron)(?=.*fists?).*$/i,\n\t\tname : \"Warforged Iron Fists\",\n\t\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\tselectNow : true\n\t}],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscores : [2, 0, 1, 0, 0, 0],\n\ttrait : \"Juggernaut Warforged (+2 Strength, +1 Constitution)\" + (typePF ? \"\" : \" Iron Fists: unarmed strikes do 1d4.\") + \"\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nPowerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\" + (typePF ? \" Iron Fists: My unarmed strikes do 1d4 damage.\" : \"\"),\n\tcarryingCapacity : 2,\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\nRaceList[\"skirmisher warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*skirmisher).*$/i,\n\tname : \"Skirmisher warforged\",\n\tsortname : \"Warforged, Skirmisher\",\n\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\tplural : \"Skirmisher warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Skirmisher Warforged (+2 Dexterity, +1 Constitution)\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nLight Step: If I travel alone for an hour or more, I can move stealthily at a normal pace.\",\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\n\n// ua_20180810_Magic-Items-of-Eberron.js\r\n// This file adds the content from the Unearthed Arcana: Magic Items of Eberron to MPMB's Character Record Sheet\r\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\r\n\r\n// Define the sources\r\nSourceList[\"UA:MIoE\"] = {\r\n\tname : \"Unearthed Arcana: Magic Items of Eberron\",\r\n\tabbreviation : \"UA:MIoE\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_Magic_Items_of_Eberron.pdf\",\r\n\tdate : \"2018/08/10\"\r\n};\r\n\r\n// Different or not available in Eberron: Rising from the Last War\r\nMagicItemsList[\"band of loyalty-ua\"] = {\r\n\tname : \"Band of Loyalty\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"ring\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I'm reduced to zero hit points while attuned to this ring, I instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\tdescriptionFull : \"If you are reduced to zero hit points while attuned to a band of loyalty, you instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\tattunement : true\r\n}\r\nvar UAMIoE_docentFullDescription = [\r\n\t\"A docent is a small metal sphere, approximately 2 inches across, studded with dragonshards. Despite a strong magical aura, it has no obvious abilities. When you attune to a docent, the sphere becomes embedded in your chest and comes to life\\u2014literally.\",\r\n\t\">>Sentience<<. A docent is a sentient neutral item with an Intelligence of 16, a Wisdom of 14, and a Charisma of 14. It can perceive the world through your senses.\",\r\n\t\"A docent communicates telepathically with its wielder and can speak, read, and understand Common and Giant.\",\r\n\t\">>Personality<<. A docent is designed to advise and assist the warforged it's attached to. One of the simple functions of a docent is to serve as a translator. The docent's properties are under its control, and if you have a bad relationship with your docent it may refuse to assist you… or simply lie about information that it obtains. However, if you treat your docent well it could serve as a useful ally.\",\r\n\t\"The origin of docents is a great mystery. House Cannith created the first warforged thirty years ago. But the docents come from the distant land of Xen'drik and appear to be thousands of years old. Were they created to interface with some other form of construct? Or are the modern warforged a new interpretation of an ancient design? The docents claim to have forgotten their creators… but this is a mystery waiting to be unraveled. While all docents come from Xen'drik, some have been brought to Khorvaire by explorers and it's possible to encounter them in the Five Nations.\",\r\n\t\">>Languages<<. All docents understand Common and Giant, but a docent knows up to four additional languages. Elvish and Draconic are common options. If a docent knows less than six languages in total, it can add new languages to its repertoire after encountering them. So a docent found in Xen'drik may have never encountered a dwarf before… but after spending some time in Khorvaire studying dwarves, it could pick up the Dwarvish language.\",\r\n\t\">>Properties<<. A docent possesses up to three of the following properties:\",\r\n\t\"\\u2022 The docent can cast the detect magic spell at will.\",\r\n\t\"\\u2022 The docent can cast the detect evil and good spell at will.\",\r\n\t\"\\u2022 The docent can detect any form of divination or scrying targeting it and its warforged host.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Arcana) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (History) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Investigation) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Nature) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Insight) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Perception) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Medicine) checks targeting its warforged host. If the host is rendered unconscious, the docent will automatically attempt to stabilize them once each turn.\",\r\n\t\"You can use a bonus action on your turn to request that the docent use one of its properties on your behalf.\"\r\n];\r\nMagicItemsList[\"docent-ua\"] = {\r\n\tname : \"Docent\",\r\n\tsource : [[\"WGtE\", 121], [\"UA:MIoE\", 3]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I can embed this sentient small metal sphere studded with dragonshards into my chest. I can communicate telepathically with it. It can serve me as an advisor and a translator, as it knowns 6 languages. It also knows spells and/or skills that I can have it use as a bonus action. See Notes page.\",\r\n\tdescriptionFull : UAMIoE_docentFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(UAMIoE_docentFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|assist) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"feather token-ua\"] = {\r\n\tname : \"Feather Token\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as a bonus action while the token is in my possession, I can use it to cast Feather Fall. This small metal disk is inscribed with the image of a feather and only holds sufficient charge for a single use, after which it loses its power.\",\r\n\tdescriptionFull : \"This small metal disk is inscribed with the image of a feather. While the token is in your possession, you can cast feather fall as a bonus action. A feather token only holds sufficient charge for a single use, after which it loses its power. While it's an expensive form of insurance, frequent airship travelers and citizens of Sharn often appreciate the security it provides.\"\r\n}\r\nMagicItemsList[\"glamerweave-ua\"] = {\r\n\tname : \"Glamerweave\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Glamerweave clothing is imbued with cosmetic illusions that have no impact on combat. Most of the time, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. A gown could appear to be wreathed in flames, or a hat orbited by illusory butterflies.\",\r\n\tdescriptionFull : \"Glamerweave clothing is imbued with cosmetic illusions. Traditionally, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. You could have a gown that appears to be wreathed in flames, or a hat that's orbited by illusory butterflies. Regardless of the design, these are cosmetic effects and have no impact on combat.\\n\\n\" + [\r\n\t\ttoUni(\"1d8\\tDescription\"),\r\n\t\t\"  1\\tA hat orbited by the twelve moons\",\r\n\t\t\"  2\\tLong gloves wreathed in cold flames\",\r\n\t\t\"  3\\tA traveler's cloak lined with glittering stars\",\r\n\t\t\"  4\\tA scarlet gown that glows with inner radiance\",\r\n\t\t\"  5\\tA cloth shirt that appears to be a chain shirt\",\r\n\t\t\"  6\\tA silver gown surrounded by drifting snowflakes\",\r\n\t\t\"  7\\tA robe with two dragons wrestling across the back\",\r\n\t\t\"  8\\tA cloak that slowly and subtly shifts colors\"\r\n\t].join(\"\\n\")\r\n}\r\nMagicItemsList[\"shiftweave-ua\"] = {\r\n\tname : \"Shiftweave\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Up to five different outfits are embedded into these clothes that have transmutation magic woven into their fabric. As an action, I can speak a command word to transform the outfit into one of the other designs contained within.\",\r\n\tdescriptionFull : \"Transmutation magic is woven into the fabric of shiftweave clothing. When a suit of shiftweave is created, up to five different outfits can be embedded into the cloth. By taking an action and uttering a command word, you can transform your shiftweave outfit into one of the other designs contained within it. To determine the price of a suit of shiftweave, combine the value of all of the outfits it contains and add 25 gp to that amount.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"armblade-ua\"] = {\r\n\tname : \"Armblade\",\r\n\tsource : [[\"WGtE\", 120], [\"UA:MIoE\", 3]],\r\n\ttype : \"weapon (any one-handed melee weapon)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a warforged, I can integrate this weapon in my forearm by attuning to it. While attached, it can't be disarmed or removed against my will, but I can't use that hand for other actions. I can spend one minute to end the attunement and remove the armblade. The weapon isn't inherently magical.\",\r\n\tdescriptionFull : \"An armblade is a weapon designed to integrate with the forearm of a warforged. If you're a warforged, you can attach an armblade by attuning to it. An attached armblade cannot be disarmed or removed from you against your will, but while the weapon is attached you cannot use that hand for other actions. You can spend one minute to end the attunement and remove the armblade.\\n   An armblade isn't inherently considered to be a magic weapon for purposes of overcoming damage resistance. However, any sort of magical melee weapon could be created as an armblade, so you could acquire a vicious armblade or a vorpal armblade.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t},\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn (!inObj.description || (/two.{0,3}handed/i).test(inObj.description)) || (!inObj.range || !(/melee/i).test(inObj.range));\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"wand sheath-ua\"] = {\r\n\tname : \"Wand Sheath\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 4]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. The wand doesn't count to the number of items I can attune to. As a bonus action, I can then retract/extend it while keeping my hand free.\",\r\n\tdescriptionLong : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. I still need to attune to this wand if it requires me to do so, but the wand wand then doesn't count towards the number of items I can attune to. When I take the wand out of the sheath, I lose attunement with it. As a bonus action, I can retract or extend a wand in the sheath. While retracted, the wand can't be damaged. While extended, I can use the wand as if holding it, but my hand remains free for other actions.\",\r\n\tdescriptionFull : \"A wand sheath is designed to integrate with the forearm of a warforged. If you're a warforged, you can attach a wand sheath by attuning to it. While the wand sheath is attached, it cannot be removed from you against your will. You can spend one minute to end the attunement and remove the wand sheath.\\n   You can insert a wand into the sheath as an action. While the wand is sheathed, you gain the following benefits:\\n \\u2022 You can retract the wand into your forearm or extend it from your forearm as a bonus action. While it is retracted, it cannot be damaged or removed.\\n \\u2022 While the wand is extended, you can use it as if you were holding it, but your hand remains free for other actions.\\n \\u2022 If the sheathed wand requires attunement, you must attune to the wand before you can use it. However, the wand sheath and the attached wand only count as a single item for purposes of the maximum number of items you can be attuned to. If you remove the wand from the sheath, you immediately lose your attunement to the wand.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t},\r\n\taction : [[\"action\", \" (insert)\"], [\"bonus action\", \" (extend/retract)\"]]\r\n}\r\n\n// ua_20180813_Races-of-Ravnica.js\n// This file adds the content from the Unearthed Arcana: Races of Ravnica article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:RoR\"] = {\n\tname : \"Unearthed Arcana: Races of Ravnica\",\n\tabbreviation : \"UA:RoR\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Magic: The Gathering\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_RavnicaRaces.pdf\",\n\tdate : \"2018/08/13\"\n};\n\n// Add Loxodon\nRaceList[\"loxodon-ua\"] = {\n\tregExpSearch : /loxodon/i,\n\tname : \"Loxodon\",\n\tsource : [[\"UA:RoR\", 1]],\n\tplural : \"Loxodons\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\ttoolProfs : [\"Mason's tools\"],\n\tarmorOptions : [{\n\t\tregExpSearch : /^((?=.*natural)(?=.*armou?r)|(?=.*loxodon)(?=.*(hide|skin))).*$/i,\n\t\tname : \"Natural Armor\",\n\t\tsource : [[\"UA:RoR\", 1]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Keen Smell\", 0]],\n\tage : \" physically mature at the same rate as humans, but are considered young until they reach the age of 60 and live about 450 years\",\n\theight : \" stand between 7 and 8 feet tall\",\n\tweight : \" weigh between 300 and 400 pounds\",\n\theightMetric : \" stand between 2 and 2,5 metres tall\",\n\tweightMetric : \" weigh between 150 to 200 kg\",\n\tscores : [0, 0, 2, 0, 1, 0],\n\ttrait : \"Loxodon (+2 Constitution, +1 Wisdom)\" + desc([\n\t\t\"Powerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\",\n\t\t\"Stonecunning: I can add double my proficiency bonus to Intelligence (History) checks related to the origin of stonework, instead of my normal proficiency bonus.\",\n\t\t\"Keen Smell: I have advantage on Wisdom (Perception) and Intelligence (Investigation) checks that rely on smell.\",\n\t\t\"Natural Armor: \" + (typePF ? \"I have an AC of\" : \"My thick, leathery skin gives me AC\") + \" 13 + Dexterity modifier + shield.\"\n\t]),\n\tcarryingCapacity : 2\n};\n\n// Add Simic Hybrid\nRaceList[\"simic hybrid-ua\"] = {\n\tregExpSearch : /^(?=.*(simic|elf|dwarf|human|orc))(?=.*hybrid).*$/i,\n\tname : \"Simic hybrid\",\n\tsource : [[\"UA:RoR\", 3]],\n\tplural : \"Simic hybrids\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptionsSp : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*grappling)(?=.*(appendage|tentacle|claw)).*$/i,\n\t\tname : \"Grappling Appendages\",\n\t\tsource : [[\"UA:RoR\", 3]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tdescription : \"After hitting, start grapple on target as a bonus action\"\n\t}, {\n\t\tregExpSearch : /^(?=.*acid)(?=.*spit).*$/i,\n\t\tname : \"Acid Spit\",\n\t\tsource : [[\"UA:RoR\", 3]],\n\t\tability : 3,\n\t\ttype : \"Natural\",\n\t\tdamage : [\"C\", 10, \"acid\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Dex save, success - no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\textraACSp : {\n\t\tname : \"Carapace\",\n\t\tmod : 1,\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor.\",\n\t\tstopeval : function (v) { return v.heavyArmor; }\n\t},\n\tage : \" age the same as the base humanoid race, although the maximum lifespan is somewhat reduced\",\n\theight : \" are of the same height as another of its humanoid race\",\n\tweight : \" are of the same weight as another of its humanoid race\",\n\tscorestxt : \"+2 Constitution and +1 to one other ability score of my choice\",\n\tscores : [0, 0, 2, 0, 0, 0],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (1st level): Choose one to three types of enhancement using the \\\"Racial Options\\\" button: Manta Glide, Nimble Climber, or Underwater Adaptation.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can either choose one I didn't take at 1st level or choose Grappling Appendages, Carapace, or Acid Spit.\",\n\tfeatures : {\n\t\t\"animal enhancement\" : {\n\t\t\tname : \"Animal Enhancement\",\n\t\t\tminlevel : 5,\n\t\t\teval : function() {\n\t\t\t\tvar curChoice = ParseRace(What('Race Remember'))[1].capitalize();\n\t\t\t\tvar AEoptions = [\"Manta Glide\", \"Nimble Climber\", \"Underwater Adaptation\", \"Grappling Appendages\", \"Carapace\", \"Acid Spit\"];\n\t\t\t\tif (curChoice && AEoptions.indexOf(curChoice) !== -1) AEoptions.splice(AEoptions.indexOf(curChoice), 1);\n\t\t\t\tvar theChoice = AskUserOptions('Simic Hybrid 5th-level Animal Enhancement', 'The Simic Hybrid race offers a choice of animal enhancement at 5th-level. Make a selection to update the sheet accordingly. You can only change this selection by removing the Simic Hybrid race or changing its variant.', AEoptions, 'radio', true);\n\t\t\t\tvar feaTxt = '';\n\t\t\t\tvar rObjNm = \"simic hybrid-ua\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Manta Glide\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { climb : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { swim : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Grappling Appendages): I have two extra appendages which I can use to make unarmed strikes for 1d6 bludgeoning damage. As a bonus action after hitting with them, I can try to grapple the target. I can't use these appendages to wield anything.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tAddWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tAddAction(\"bonus action\", \"Grappling Appendages (after hit)\", \"being a \" + rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Carapace): My skin is covered by a thick shell, giving my a +1 to AC whenever I'm not wearing heavy armor.\";\n\t\t\t\t\t\tprocessExtraAC(true, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Acid Spit): As an action, I can spit acid at a single creature within 30 ft that I can see. It must make a Dexterity saving throw with DC 8 + Con modifier + Prof Bonus or take 2d10 acid damage. This increases with 1d10 at 11th and 17th level.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tAddWeapon(\"Acid Spit\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tif (What(\"Unit System\") !== \"imperial\") feaTxt = ConvertToMetric(feaTxt, 0.5);\n\t\t\t\tValue(\"Racial Traits\", What(\"Racial Traits\").replace(/Animal Enhancement \\(5th level\\):.*/, '') + feaTxt);\n\t\t\t\tValue(\"Race Remember\", What(\"Race Remember\") + \"-*\" + theChoice.replace(' ', '_') + \"*\");\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar theRegex = /\\*(Manta_Glide|Nimble_Climber|Underwater_Adaptation|Grappling_Appendages|Carapace|Acid_Spit)\\*/i;\n\t\t\t\tvar raceRem = What(\"Race Remember\");\n\t\t\t\tif (!theRegex.test(raceRem)) return;\n\t\t\t\tvar theChoice = raceRem.match(theRegex)[1].replace('_', ' ').capitalize();\n\t\t\t\tvar rObjNm = \"simic hybrid-ua\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { climb : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { swim : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tRemoveWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tRemoveAction(\"bonus action\", \"Grappling Appendages (after hit)\", \"being a \" + rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tprocessExtraAC(false, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tRemoveWeapon(\"Acid Spit\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tValue(\"Racial Traits\", What(\"Unit System\") === \"imperial\" ? CurrentRace.trait : ConvertToMetric(CurrentRace.trait, 0.5));\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"simic hybrid-ua\", \"manta glide\", {\n\tregExpSearch : /manta glide/i,\n\tsource : [[\"UA:RoR\", 3]],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Nimble Climber, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid-ua\", \"nimble climber\", {\n\tregExpSearch : /nimble climber/i,\n\tsource : [[\"UA:RoR\", 3]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid-ua\", \"underwater adaptation\", {\n\tregExpSearch : /underwater adaptation/i,\n\tsource : [[\"UA:RoR\", 3]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Nimble Climber, Grappling Appendages, Carapace, or Acid Split.\"\n});\n\n// Add Vedalken\nRaceList[\"vedalken-ua\"] = {\n\tregExpSearch : /vedalken/i,\n\tname : \"Vedalken\",\n\tsource : [[\"UA:RoR\", 4]],\n\tplural : \"Vedalken\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tskillstxt : \"Choose one from Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. I add 1d4 to a check with the chosen skill\",\n\tlanguageProfs : [\"Common\"],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" age at the same rate as humans and typically live 350 to 500 years\",\n\theight : \" stand between 6 and 6 and a half feet tall\",\n\tweight : \" weigh around 200 pounds\",\n\theightMetric : \" stand between 1,8 and 2 metres tall\",\n\tweightMetric : \" weigh around 100 kg\",\n\tscores : [0, 0, 0, 2, 1, 0],\n\ttrait : \"Vedalken (+2 Intelligence, +1 Wisdom)\\n   Vedalken Dispassion: I have advantage on all Intelligence, Wisdom, and Charisma saving throws.\\n   Tireless Precision: I am proficient with any one tool and one skill of my choice: Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. Whenever I make an ability check with the chosen tool or skill, I can add 1d4 to the check's total.\",\n\tadvantages : [[\"Int\", true], [\"Wis\", true], [\"Cha\", true]]\n};\n\n// Add Viashino\nRaceList[\"viashino-ua\"] = {\n\tregExpSearch : /viashino/i,\n\tname : \"Viashino\",\n\tsource : [[\"UA:RoR\", 5]],\n\tplural : \"Viashino\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Choose one from Acrobatics or Stealth\",\n\tlanguageProfs : [\"Common\", \"Draconic\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*viashino)(?=.*bite).*$/i,\n\t\tname : \"Viashino bite\",\n\t\tsource : [[\"UA:RoR\", 5]],\n\t\tdamage : [1, 4, \"piercing\"],\n\t\tselectNow : true\n\t}, {\n\t\tregExpSearch : /^(?=.*lashing)(?=.*tail).*$/i,\n\t\tname : \"Lashing tail\",\n\t\tsource : [[\"UA:RoR\", 5]],\n\t\tability : 1,\n\t\ttype : \"Natural\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Only as reaction\",\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\tage : \" reach adulthood in their early teens and rarely live past 60 due to their violent lives\",\n\theight : \" stand about as tall as humans\",\n\tweight : \" have lithe, wiry frames and are thus lighter than a human of the same height\",\n\tscores : [1, 2, 0, 0, 0, 0],\n\taction : [[\"reaction\", \"Lashing Tail (after being hit)\"]],\n\ttrait : \"Viashino (+1 Strength, +2 Dexterity)\\n\\nBite: I can use my fanged maw to make unarmed strikes dealing 1d4 piercing damage.\\n\\nLashing Tail: I have semi-prehensile tail that is tipped with a bony blade. As a reaction when a creature I can see within 5 ft damages me with a melee attack, I can use my tail to make an unarmed strike against it dealing 1d4 slashing damage.\"\n};\n\n// ua_20180910_Dragonmarks.js\r\n// This file adds the content from the Unearthed Arcana: Dragonmarks article to MPMB's Character Record Sheet\r\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\r\n\r\n// Define the sources\r\nSourceList[\"UA:D\"] = {\r\n\tname : \"Unearthed Arcana: Dragonmarks\",\r\n\tabbreviation : \"UA:D\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_Dragonmarks.pdf\",\r\n\tdate : \"2018/09/10\"\r\n};\r\n\r\n// Dragonmarks subraces\r\nRaceList[\"dragonmark detection half-elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*detection)|(?=.*house)(?=.*medani)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Detection (Half-Elf)\",\r\n\tsource : [[\"WGtE\", 96], [\"UA:D\", 2]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 0, 0, 1, 0, 1],\r\n\ttrait : \"Half-Elf, Dragonmark of Detection (+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Deductive Intuition: I can add my Intuition Die (1d4) to my Intelligence (Investigation) and Wisdom (Insight) checks.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Sense Threats: I can cast Detect Magic and Detect Poison and Disease as rituals using Intelligence as my spellcasting ability.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sense Threats\",\r\n\t\tspells : [\"detect magic\", \"detect poison and disease\"],\r\n\t\tselection : [\"detect magic\", \"detect poison and disease\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"detect magic\" : {\r\n\t\t\ttime : \"10 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t},\r\n\t\t\"detect poison and disease\" : {\r\n\t\t\ttime : \"10 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding half-orc-ua\"] = {\r\n\tregExpSearch : /^(?=.*half)(?=.*\\bor(c|k))((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk)).*$/i,\r\n\tname : \"Half-orc (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Half-Orc)\",\r\n\tsource : [[\"WGtE\", 97], [\"UA:D\", 2]],\r\n\tplural : \"Half-orcs (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood around age 14 and rarely live longer than 75 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Half-Orc, Dragonmark of Finding (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Hunter's Intuition: I add my Intuition Die (1d4) to my Perception and Survival checks.\\n   Imprint Prey: As a bonus action once per short rest, I imprint a target I can see in 30 ft or with a Survival check when tracking it, lasting until it dies or I use this again. I double my Intuition Die for tracking it, sense its general location in 60 ft, my attacks vs. it ignore half cover and don't have disadv. if I can't see it, and it has no adv. vs. me if I can't see it.\\n\" + (typePF ? \"Nature's Voice: cast Locate Animals/Plants as a ritual from 3rd level.\" : \"   Nature's Voice: Once I reach 3rd level, I can cast Locate Animals or Plants as a ritual.\"),\r\n\tfeatures : {\r\n\t\t\"imprint prey\" : {\r\n\t\t\tname : \"Imprint Prey\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"locate animals or plants\" : {\r\n\t\t\tname : \"Locate Animals or Plants\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Nature's Voice\",\r\n\t\t\t\tspells : [\"locate animals or plants\"],\r\n\t\t\t\tselection : [\"locate animals or plants\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"locate animals or plants\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark handling human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*handling)|(?=.*house)(?=.*vadalis)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Handling (Human)\",\r\n\tsource : [[\"WGtE\", 98], [\"UA:D\", 3]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Handling (+1 Dex\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"terity, +1 Wisdom, +1 to any one ability score\") + \")\\n   Wild Intuition: I can add my Intuition Die (1d4) to my Wisdom (Animal Handling) and Intelligence (Nature) checks.\\n   Expert Handling: I can use the Help action to aid an ally animal companion or mount even when they are within 30 ft of me, rather than just within 5 ft.\\n   Primal Connection: Once per short rest, I can cast Animal Friendship using Wisdom \" + (typePF ? \"as my spellcasting ability\" : \"\") + \".\\n   \" + (typePF ? \"The Bigger They Are: My spells that normally affect only beasts now also affect monstrosities with an Intelligence of 3 or lower.\" : \"Bigger They Are: My spells that affect only beasts, also affect monstrosities with Int < 4.\"),\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tname : \"Primal Connection\",\r\n\t\t\tlimfeaname : \"Animal Friendship\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\tspells : [\"animal friendship\"],\r\n\t\t\t\tselection : [\"animal friendship\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"animal friendship\" :\r\n\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"beasts\", \"beasts/monstrosities\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"beast bond\" :\r\n\t\t\t\t\t\tspellObj.description = \"Telepathic link with 1 beast/monstrosity Int<4 while in sight; it has adv. on atks vs. crea I can see\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"beast sense\" :\r\n\t\t\t\t\t\tspellObj.description = \"Use senses of 1 willing monstrosity Int<4 or beast; I'm blinded and deafened while doing so\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"dominate beast\" :\r\n\t\t\t\t\t\tspellObj.description = \"1 monstrosity Int<4 or beast save or charmed, follows telepathic commands, 1 a for complete control\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"speak with animals\" :\r\n\t\t\t\t\t\tspellObj.description = \"Communicate verbally with monstrosities Int<4 or beasts for duration; interactions limited by their Int\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Spells I cast that only affect beasts can also affect monstrosities with an Intelligence score of 3 or lower.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark healing halfling-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*healing)|(?=.*house)(?=.*jorasco)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Healing (Halfling)\",\r\n\tsource : [[\"WGtE\", 99], [\"UA:D\", 3]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Halfling, Dragonmark of Healing (+2 Dexterity, +1 Wisdom)\" + (typePF ? \"\\n  \" : \"\") + \r\n\t\t\" Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\" + desc([\r\n\t\t\"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\",\r\n\t\t\"Medical Intuition: I \" + (typePF ? \"\" : \"can\") + \" add my Intuition Die (1d4) to \" + (typePF ? \"Medicine\" : \"my Wisdom (Medicine)\") + \" checks.\",\r\n\t\t\"Healing Touch: As an action once per short rest, I can spend one of my Hit Dice to heal myself or a creature I touch. I heal the roll of the die plus my Wisdom modifier.\",\r\n\t\t\"Jorasco's Blessing: I know the Spare the Dying cantrip.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"healing touch\" : {\r\n\t\t\tname : \"Healing Touch\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Jorasco's Blessing\",\r\n\t\tspells : [\"spare the dying\"],\r\n\t\tselection : [\"spare the dying\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\nRaceList[\"dragonmark hospitality halfling-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*hospitality)|(?=.*house)(?=.*ghallanda)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Hospitality (Halfling)\",\r\n\tsource : [[\"WGtE\", 100], [\"UA:D\", 4]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Halfling, Dragonmark of Hospitality (+2 Dexterity, +1 Charisma)\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\nHalfling Nimbleness: I can move through the space of Medium and larger creatures.\\nEver Hospitable: I can add my Intuition Die (1d4) to my Charisma (Persuasion) checks and ability checks involving brewer's supplies or cook's utensils.\\nInnkeeper's Charms: I know Friends and Prestidigitation with Cha as my spellcasting ability.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innkeeper's Charms\",\r\n\t\tspells : [\"friends\", \"prestidigitation\"],\r\n\t\tselection : [\"friends\", \"prestidigitation\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}]\r\n};\r\nRaceList[\"dragonmark making human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*making)|(?=.*house)(?=.*cannith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Making (Human)\",\r\n\tsource : [[\"WGtE\", 101], [\"UA:D\", 4]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Intelligence, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 1, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Making (+1 Dex\" + (typePF ? \", +2 Int or +2 Dex, +1 Int\" : \"terity, +1 Intelligence, +1 to Dex or Int, my choice\") + \")\\nArtisan's Intuition: I can add my Intuition Die (1d4) to ability checks with artisan's tools.\\nMagecraft: I can create a magic item that gives me the ability to cast one wizard cantrip of my choice, using Intelligence as my spellcasting ability. This works while the item is in my possession. At the end of a long rest, I can replace it with a new item and cantrip.\\nSpellsmith: Once per long rest, I can spend 1 minute to make a nonmagical armor or weapon gain a +1 bonus for the next hour. Maker's Gift: I know the mending cantrip.\",\r\n\tfeatures : {\r\n\t\t\"spellsmith\" : {\r\n\t\t\tname : \"Spellsmith\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\teval : function () {\r\n\t\tCurrentSpells['dragonmark making human'] = {\r\n\t\t\tname : 'Human (dragonmark)',\r\n\t\t\tability : 4,\r\n\t\t\tlist : { 'class' : 'wizard', level : [0, 0], notspells : ['mending'] },\r\n\t\t\tknown : { cantrips : 1, spells : 'list' },\r\n\t\t\tbonus : {\r\n\t\t\t\tbonus1 : {\r\n\t\t\t\t\tname : \"Maker's Gift\",\r\n\t\t\t\t\tspells : ['mending'],\r\n\t\t\t\t\tselection : ['mending'],\r\n\t\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttypeList : 2,\r\n\t\t\trefType : \"race\"\r\n\t\t};\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tdelete CurrentSpells['dragonmark making human'];\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t}\r\n};\r\nRaceList[\"dragonmark passage human-ua\"] = { // different in Unearthed Arcana\r\n\tregExpSearch : /^((?=.*mark)(?=.*passage)|(?=.*house)(?=.*orien)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Passage (Human)\",\r\n\tsource : [[\"UA:D\", 4]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity and +1 to another ability score of my choice\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Passage (+2 Dexterity and +1 to another ability score)\\n   Intuitive Motion: I can add my Intuition Die (1d4) to my Strength (Athletics) checks and any ability checks involving operating or maintaining a land vehicle.\\n   Orien's Grace: I can forgo half my movement speed for my turn to no longer provoke opportunity attacks for the rest of that turn.\\n   Shared Passage: As a bonus action once per long rest, I can teleport myself and a willing ally within 5 ft a distance up to my walking speed to an unoccupied space I can see.\",\r\n\tfeatures : {\r\n\t\t\"shared passage\" : {\r\n\t\t\tname : \"Shared Passage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark scribing gnome-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*scribing)|(?=.*house)(?=.*sivis)).*$/i,\r\n\tname : \"Gnome (dragonmark)\",\r\n\tsortname : \"Dragonmark, Scribing (Gnome)\",\r\n\tsource : [[\"WGtE\", 103], [\"UA:D\", 5]],\r\n\tplural : \"Gnomes (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\", 1],\r\n\ttoolProfs : [\"Calligrapher's supplies\", \"Forgery kits\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Gnome, Dragonmark of Scribing (+2 Intelligence, +1 Charisma)\\n   Gifted Scribe: I can add my Intuition Die (1d4) to ability checks involving calligrapher's supplies or forgery kits. I am proficient with both of these tools.\\n   Whispering Wind: I know the Message cantrip.\\n   Scribe's Insight: I can cast Comprehend Languages once per long rest.\\nIntelligence is my spellcasting ability for the spells gained from being a gnome, dragonmark of scribing.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Whispering Wind\",\r\n\t\tspells : [\"message\"],\r\n\t\tselection : [\"message\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"comprehend languages\" : {\r\n\t\t\tname : \"Scribe's Insight\",\r\n\t\t\tlimfeaname : \"Comprehend Languages\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark sentinel human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*sentinel)|(?=.*house)(?=.*deneith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Sentinel (Human)\",\r\n\tsource : [[\"WGtE\", 104], [\"UA:D\", 5]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Sentinel (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Sentinel's Intuition: I can add my Intuition Die (1d4) to Initiative rolls and my Wisdom (Perception) checks.\\n   Sentinel's Shield: I know the Blade Ward cantrip. I can cast Shield once per short rest.\\n   Vigilant Guardian: As an action, I can designate an ally as my ward, gaining adv. on Insight and Perception checks to spot threats to it. As a reaction when I see my ward being attacked while within 5 ft, I can swap places with it, becoming the target of the attack.\",\r\n\taction : [['action', 'Vigilant Guardian (designate ward)'], ['reaction', 'Vigilant Guardian (swap with ward)']],\r\n\tfeatures : {\r\n\t\t\"shield\" : {\r\n\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\tspells : [\"blade ward\"],\r\n\t\t\t\tselection : [\"blade ward\"],\r\n\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark shadow elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*shadow)|(?=.*house)(?=.*(phiarlan|thuranni))).*$/i,\r\n\tname : \"Elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Shadow (Elf)\",\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tplural : \"Elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tskillstxt : \"Perception and proficiency with either Performance or one musical instrument\",\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Elf, Dragonmark of Shadow (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nGift of the Shadows: I can add my Intuition Die (1d4) to Performance and Stealth checks.\\nShape Shadows: I know the Minor Illusion cantrip using Charisma as my spellcasting ability.\\nSlip Into Shadow: As a bonus action once per short rest, I can use the Hide action even while I have no cover or if I'm being observed.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shape Shadows\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"slip into shadow\" : {\r\n\t\t\tname : \"Slip Into Shadow\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"dragonmark shadow elf-ua\", \"performance, \", {\r\n\tregExpSearch : /performance/i,\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tskills : [\"Perception\", \"Performance\"],\r\n\tskillstxt : \"\"\r\n});\r\nAddRacialVariant(\"dragonmark shadow elf-ua\", \"musical instrument, \", {\r\n\tregExpSearch : /musical instrument/i,\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tskillstxt : \"\",\r\n\ttoolProfs : [[\"Musical instrument\", 1]]\r\n});\r\nRaceList[\"dragonmark storm half-elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*storm)|(?=.*house)(?=.*lyrandar)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Storm (Half-Elf)\",\r\n\tsource : [[\"WGtE\", 106], [\"UA:D\", 6]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 0, 0, 1],\r\n\ttrait : \"Half-Elf, Dragonmark of Storm (+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Windwright's Intuition: I can add my Intuition Die (1d4) to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a water or air vehicle.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Headwinds: I know the Gust cantrip. Once I reach 3rd level, I can cast Gust of Wind once per long rest. Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6, // Not mentioned in WGtE, but essential!\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Headwinds (level 1)\",\r\n\t\tspells : [\"gust\"],\r\n\t\tselection : [\"gust\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\tlimfeaname : \"Gust of Wind\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark warding dwarf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*warding)|(?=.*house)(?=.*kundarak)).*$/i,\r\n\tname : \"Dwarf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Warding (Dwarf)\",\r\n\tsource : [[\"WGtE\", 108], [\"UA:D\", 7]],\r\n\tplural : \"Dwarves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 1, 2, 1, 0, 0],\r\n\ttrait : \"Dwarf, Dragonmark of Warding (+1 Dex\" + (typePF ? \", +2 Con, +1 Int\" : \"terity, +2 Constitution, +1 Intelligence\") + \")\\n   Stonecunning: When I make an Intelligence (History) check related to the origin of stonework, I am considered having expertise in the History skill.\\n   Master of Locks: I can add my Intuition Die (1d4) to Intelligence (History), Intelligence (Investigation), and ability checks with thieves' tools, if it involves lock or trap mechanisms.\\n   Wards and Seals: I can cast Alarm as a ritual. Once I reach 3rd level, I can cast Arcane Lock once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Wards and Seals (level 1)\",\r\n\t\tspells : [\"alarm\"],\r\n\t\tselection : [\"alarm\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"alarm\" : {\r\n\t\t\ttime : \"11 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"arcane lock\" : {\r\n\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Greater Dragonmark feats\r\nFeatsList[\"greater dragonmark-ua\"] = {\r\n\tname : \"Greater Dragonmark\",\r\n\tsource : [[\"WGtE\", 110], [\"UA:D\", 7]],\r\n\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase one ability score by 1, to a maximum of 20. The abilities available to you are based on your mark, as shown on the Greater Dragonmark Benefits table.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn a set of spells, each of which you can cast once without expending a spell slot or using a material component. The list of spells, the spellcasting ability for them, and the type of rest you must complete to regain the use of these spells are shown on the Greater Dragonmark Benefits table.\",\r\n\tdescription : \"Select the type of greater dragonmark using the square button on this feat line.\\nMy Intuition Die increases with one step (for example d4 to d6), I gain spellcating abilities, and an increase to one ability score.\",\r\n\teval : function () {\r\n\t\tvar raceTrait = What('Racial Traits');\r\n\t\tif ((/my Intuition Die \\(1d4\\)/i).test(raceTrait)) {\r\n\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d4\\)/i, 'my Intuition Die (1d6)'));\r\n\t\t};\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tvar raceTrait = What('Racial Traits');\r\n\t\tif ((/my Intuition Die \\(1d6\\)/i).test(raceTrait)) {\r\n\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d6\\)/i, 'my Intuition Die (1d4)'));\r\n\t\t};\r\n\t},\r\n\tchoices : [\"Detection\", \"Finding\", \"Handling\", \"Healing\", \"Hospitality\", \"Making\", \"Passage\", \"Scribing\", \"Sentinel\", \"Shadow\", \"Storm\", \"Warding\"],\r\n\t\"detection\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Detection\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*detection).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Charisma or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells See Invisibility and True Seeing, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast See Invisibility and True Seeing each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Charisma or Intelligence]\",\r\n\t\tscorestxt : \"+1 Charisma or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"see invisibility\", \"true seeing\"],\r\n\t\t\tselection : [\"see invisibility\", \"true seeing\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"see invisibility\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"true seeing\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 willing crea gains truesight 120 ft; see through illusions, hidden doors, ethereal plane\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"finding\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Finding\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity, Strength, or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Locate Creature and Find the Path, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Locate Creature and Find the Path each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 \" + (typePF ? \"Strength, Dexterity, or Wisdom]\" : \"Str, Dex, or Wis]\"),\r\n\t\tscorestxt : \"+1 Strength, Dexterity, or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"locate creature\", \"find the path\"],\r\n\t\t\tselection : [\"locate creature\", \"find the path\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"locate creature\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"find the path\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Know the shortest route to a location I am familiar with and are on the same plane with\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"handling\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Handling\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*handling).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Beast Sense and Dominate Beast, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Beast Sense and Dominate Beast each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"beast sense\", \"dominate beast\"],\r\n\t\t\tselection : [\"beast sense\", \"dominate beast\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"healing\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Healing\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*healing).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Mass Healing Word and Greater Restoration, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Mass Healing Word and Greater Restoration each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\tselection : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"greater restoration\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Reduce exhaustion or end charm, petrify, curse, stat or max HP reduction\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"hospitality\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Hospitality\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*hospitality).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sanctuary and Mordenkainen's Magnificent Mansion, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sanctuary and \" + (typePF ? \"Mordenkainen's \" : \"\") + \"Magnificent Mansion each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\tselection : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"sanctuary\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"mordenkainen's magnificent mansion\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create extradimensional mansion with rooms, food and servants to serve 100 people; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"making\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Making\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*making).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Fabricate and Creation, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Fabricate and Creation each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Dexterity or Intelligence]\",\r\n\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"fabricate\", \"creation\"],\r\n\t\t\tselection : [\"fabricate\", \"creation\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"creation\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"passage\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Passage\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*passage).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Constitution score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Blink and Teleportation Circle, each of which you can cast once without expending a spell slot or using a material component. Constitution is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Blink and Teleportation Circle each once per long rest without using spell slots or requiring material components. Constitution is my spellcasting ability for these. [+1 Dexterity or Constitution]\",\r\n\t\tscorestxt : \"+1 Dexterity or Constitution\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"blink\", \"teleportation circle\"],\r\n\t\t\tselection : [\"blink\", \"teleportation circle\"],\r\n\t\t\tspellcastingAbility : 3,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"teleportation circle\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create a circle to teleport to another teleportation circle on same plane; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"scribing\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Scribing\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sending and Tongues, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sending and Tongues each once per short rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Intelligence or Charisma]\",\r\n\t\tscorestxt : \"+1 Intelligence or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\tspells : [\"sending\", \"tongues\"],\r\n\t\t\tselection : [\"sending\", \"tongues\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncesr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"sending\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"tongues\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"sentinel\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Sentinel\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*sentinel).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Strength or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Compelled Duel, Warding Bond, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Compelled Duel and Warding Bond each once per short rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Strength or Wisdom]\",\r\n\t\tscorestxt : \"+1 Strength or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\tspells : [\"compelled duel\", \"warding bond\"],\r\n\t\t\tselection : [\"compelled duel\", \"warding bond\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncesr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"warding bond\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 crea +1 AC, +1 saves, resistance all dmg; if it takes dmg I take same dmg; ends if >60 ft away\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"shadow\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Shadow\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*shadow).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Nondetection and Mislead, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Nondetection and Mislead each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"nondetection\", \"mislead\"],\r\n\t\t\tselection : [\"nondetection\", \"mislead\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"nondetection\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 crea or object up to 10 cu ft hidden from all divination magic\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"storm\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Storm\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Control Water and Control Winds, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Control Water and Control Winds each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"control water\", \"control winds\"],\r\n\t\t\tselection : [\"control water\", \"control winds\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"control water\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"warding\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Warding\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Knock, Glyph of Warding and Leomund's Secret Chest*, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\\n\\n* To cast Leomund's Secret Chest using this feat, you must have a Siberys dragonshard with a value of at least 100 gp. While you have this dragonshard in hand, it serves as the spell's focus, and you can use it to summon and dismiss the chest.\",\r\n\t\tdescription : \"My Intuition Die increases one step. I can cast Knock, Secret Chest, and Glyph of Warding each once per long rest without spell slot or material component. Secret Chest requires a 100 gp Siberys dragonshard as a focus. These use Int as spellcasting ability. [+1 Dex or Int]\",\r\n\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"knock\", \"glyph of warding\"],\r\n\t\t\tselection : [\"knock\", \"glyph of warding\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}, {\r\n\t\t\tname : \"with Siberys dragonshard\",\r\n\t\t\tspells : [\"leomund's secret chest\"],\r\n\t\t\tselection : [\"leomund's secret chest\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"glyph of warding\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create a glyph that triggers on set condition; Int(Investigation) vs. Spell DC; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"leomund's secret chest\" : {\r\n\t\t\t\tcompMaterial : \"A Siberys dragonshard with a value of at least 100 gp\",\r\n\t\t\t\tdescription : \"Hide chest with content in Ethereal Plane for 60 days, after that chance of loss; 1 a reappear (100gp)\",\r\n\t\t\t\tchanges : \"Leomund's Secret Chest cast through my Greater Dragonmark of Warding requires a Siberys dragonshard as a focus instead of an exquisite chest and its tiny replica.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Aberrant Dragonmark feat\r\nFeatsList[\"aberrant dragonmark-ua\"] = {\r\n\tname : \"Aberrant Dragonmark\",\r\n\tsource : [[\"WGtE\", 112], [\"UA:D\", 9]],\r\n\tprerequisite : \"Not having a dragonmark\",\r\n\tprereqeval : function(v) { return !(/dragonmark/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have manifested an aberrant dragonmark. Determine its appearance and the flaw associated with it (see the table below for examples). You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You learn a cantrip from the sorcerer spell list. In addition, choose a 1st-level spell from the sorcerer spell list. You learn that spell and can cast it at its lowest level. Once you cast it, you must finish a long rest before you can cast it again. Constitution is your spellcasting ability for these spells.\\n \\u2022 You can increase the power of your aberrant spells at the risk of your own vitality. When you cast a spell with your aberrant mark, you can use one of your Hit Dice to increase the spell's level by 1. Immediately after you cast the spell, roll the Hit Die. You take damage equal to the number rolled.\\n\\n\" + toUni(\"1d8\") + \"\\t\" + toUni(\"Aberrant Mark Flaw\") + \"\\n1\\tYour mark is a source of constant physical pain.\\n2\\tYour mark whispers to you, though you may not understand what it says.\\n3\\tIn times of stress, your mark may trigger a cantrip effect involuntarily.\\n4\\tThe skin around your mark has an unusual appearance: burned, scaly, withered, etc.\\n5\\tMundane animals become uneasy around you.\\n6\\tYou have dramatic mood swings any time you use your mark.\\n7\\tYour appearance changes in a minor way every time you use your mark.\\n8\\tYou have horrific nightmares after you use your mark.\",\r\n\tdescription : \"I learn a sorcerer cantrip and a 1st-level sorcerer spell, using Con as my spellcasting ability. I can cast the spell once per long rest without a spell slot. I can use a Hit Die when casting the spell, casting it as if with a level 2 spell slot and taking the HD as damage. [+1 Con]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sorcerer cantrip\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\r\n\n// ua_20190815_Barbarian-and-Monk.js\r\n// This file adds the content from the Unearthed Arcana: Barbarian and Monk article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BnM\"] = {\r\n\tname : \"Unearthed Arcana: Barbarian and Monk\",\r\n\tabbreviation : \"UA:BnM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-WildAstral.pdf\",\r\n\tdate : \"2019/08/15\"\r\n};\r\n\r\n// Add a subclasses for the Barbarian and one for the Monk\r\nAddSubClass(\"barbarian\", \"path of the wild soul-ua\", {\r\n\tregExpSearch : /^(?=.*\\bwild\\b)(?=.*\\bsoul\\b).*$/i,\r\n\tsubname : \"Path of the Wild Soul\",\r\n\tsubnameShort: \"Wild Soul\",\r\n\tfullname : \"Wild Soul\",\r\n\tsource : [[\"UA:BnM\", 1]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Lingering Magic\",\r\n\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Detect Magic without spell slots or components, using Con for spellcasting\",\r\n\t\t\t\t\"When I do so, I faintly glow a color corresponding to the school of magic I detect\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Con mod (min 1) per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Lingering Magic\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect magic\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tritual : false,\r\n\t\t\t\t\tchanges : \"Using my Path of the Wild Soul class feature I can cast Detect Magic without requiring components or spell slots.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wild Surge\",\r\n\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Whenever I enter my rage, I have to roll on the Wild Surge table (see Notes page)\"),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Surge Table\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Magic erupts from me while I rage. Whenever I enter my rage, I have to roll on the table below to see what happens.\",\r\n\t\t\t\t\t\"If the effect calls for a saving throw, the DC is equal to 8 + my proficiency bonus + my Constitution modifier.\\n\",\r\n\t\t\t\t\t\"d8\\tEFFECT\",\r\n\t\t\t\t\t\" 1\\tNecrotic energy bursts from me. Each creature within 30 ft of me takes 1d10 necrotic damage, and I gain temporary HP equal to the sum of the necrotic damage dealt to the creatures.\",\r\n\t\t\t\t\t\" 2\\tI teleport up to 20 ft to an unoccupied space I can see. Until my rage ends, I can activate this effect again on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 3\\tI conjure 1d4 intangible spirits that look like flumphs in unoccupied spaces within 30 ft of me. Each spirit immediately flies 30 ft in a random direction. At the end of my turn, all spirits explode and each creature within 5 ft of one or more of them must succeed on a Dexterity saving throw or take 2d8 force damage.\",\r\n\t\t\t\t\t\" 4\\tArcane energy enshrouds me. Until my rage ends, I gain a +2 bonus to AC, and whenever a creature within 10 ft of me hits me with an attack, that creature takes force damage equal to my Constitution modifier.\",\r\n\t\t\t\t\t\" 5\\tPlant life temporarily grows around me: until my rage ends, the ground within 10 ft of me is difficult terrain.\",\r\n\t\t\t\t\t\" 6\\tArcane energy taps into the minds of those around me. Each creature within 30 ft of me must succeed on a Wisdom saving throw or I see a glimpse of the creature's thoughts, learning how it plans to attack me. As a result, the creature has disadvantage on attack rolls against me until the start of my next turn.\",\r\n\t\t\t\t\t\" 7\\tShadows weave around a weapon of my choice I am holding. Until my rage ends, my weapon deals psychic damage instead of its bludgeoning, slashing, or piercing damage, and it gains the light and thrown properties with a normal range of 20 ft and a long range of 60 ft. If I drop the weapon or throw it, the weapon dissipates and reappears in my hand at the end of my turn.\",\r\n\t\t\t\t\t\" 8\\tA beam of brilliant light lances from my chest in a 5-ft-wide, 60-ft-long line. Each creature in the line must succeed on a Constitution saving throw or take 2d8 radiant damage and be blinded until the start of my next turn.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Magic Reserves\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can touch a creature and roll a die to channel magic into it\",\r\n\t\t\t\t\"The target regains an expended spell slot of a level equal to or less then the die roll\",\r\n\t\t\t\t\"If it has no expended spell slots of that level, it gains 5\\xD7 the die roll in temp HP instead\",\r\n\t\t\t\t\"Regardless of what happens, I take force damage equal to five times the die roll\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : n < 14 ? \"1d4\" : \"1d6\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Arcane Rebuke\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I have to make a save while raging, the magic in my soul lashes out\",\r\n\t\t\t\t\"This causes the creature forcing me to make the save, if any, to take 3d6 force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in Rage after save)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Chaotic Fury\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can reroll the effect on the Wild Surge table\",\r\n\t\t\t\t\"This replaces the current wild surge effect with a new one\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in Rage)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the astral self-ua\", {\r\n\tregExpSearch : /^(?=.*astral)(?=.*(self|projection|travel))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Astral Self\",\r\n\tsubnameShort: \"Astral Self\",\r\n\tsource : [[\"UA:BnM\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arms of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"My ki mastery allows me to summon portions of my astral self; See 3rd page notes\"),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms\"], [\"bonus action\", \"Astral Arm Attacks (after Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bastral\\b)(?=.*\\barms?\\b).*$/i,\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, \"\", typePF ? \"Necrotic/Radiant\" : \"necrotic|radiant\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"10 ft reach; Uses Str, Dex, or Wis; Deals necrotic or radiant damage\",\r\n\t\t\t\tmonkweapon : true,\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"astral arms\" : {\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\textraname : \"Way of the Astral Self 3\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms for 10 minutes; I choose their appearance\",\r\n\t\t\t\t\t\"While they are summoned, I can use Wisdom instead of Strength for Strength checks/saves\",\r\n\t\t\t\t\t\"The arms are melee monk weapons with 10 ft reach that can use Wis instead of Str/Dex\",\r\n\t\t\t\t\t\"I can choose to have them deal either radiant or necrotic damage\",\r\n\t\t\t\t\t\"After I use them in my Attack action, I can use them for more attacks as a bonus action\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"2 ki points; \" + (n < 11 ? 1 : n < 17 ? 2 : 3) + \" bonus action attack\" + (n < 11 ? \"\" : \"s\");\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral arms\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Visage of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can now also summon the visage of my astral self; See third page notes section\"),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage\", \"Summon Astral Arms\"]],\r\n\t\t\t\"astral visage\" : {\r\n\t\t\t\tname : \"Astral Visage\",\r\n\t\t\t\textraname : \"Way of the Astral Self 6\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action (or when summoning my astral arms), I can summon my astral visage\",\r\n\t\t\t\t\t\"It covers my face like a helmet or mask and I choose its appearance; It lasts for 10 minutes\",\r\n\t\t\t\t\t\"It grants adv. on Insight \\u0026 Intimidation, and the ability to see 120 ft in (magical) darkness\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral visage\" }]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Awakening of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"While having both astral arms and visage summoned, I gain extra benefits, see 3rd page\"),\r\n\t\t\t\"deflect energy\" : {\r\n\t\t\t\tname : \"Deflect Energy\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"As a reaction when I take acid, cold, fire, force, or lightning damage, I can deflect it\",\r\n\t\t\t\t\t\"By doing so, the damage is reduced by 1d10 + my Wisdom modifier + my Monk level\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"empowered arms\" : {\r\n\t\t\t\tname : \"Empowered Arms\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"Once per turn when I hit an astral arms attack, I can add a martial arts die to its damage\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"word of the spirit\" : {\r\n\t\t\t\tname : \"Word of the Spirit\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"I can direct my words to a creature I can see within 30 ft so that only it can hear me\",\r\n\t\t\t\t\t\"Alternatively, I can amplify my voice so that it is heard by all within 600 ft of me\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [\r\n\t\t\t\t{ extrachoice : \"deflect energy\" },\r\n\t\t\t\t{ extrachoice : \"empowered arms\" },\r\n\t\t\t\t{ extrachoice : \"word of the spirit\" }\r\n\t\t\t]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Complete Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can now also summon the body of my astral self; See third page notes section\",\r\n\t\t\t\t\"This spectral body covers my physique like armor, connecting with the arms and visage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage, or Complete\", \"Summon Astral Arms and/or Visage\"], [\"reaction\", \"Ki Consumption (Complete Astral Self)\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Astral Body\",\r\n\t\t\t\textraname : \"Way of the Astral Self 17\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tadditional: \"10 ki points\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon the arms, visage, and body of my astral self for 10 min\",\r\n\t\t\t\t\t\"This gives me the arms, visage, +2 bonus to AC while not incapacitated, and as follows:\",\r\n\t\t\t\t\t\"When I take the Attack action I can choose to make 3 attacks with my astral arms instead\",\r\n\t\t\t\t\t\"As a reaction when a creature in 10 ft is reduced to 0 HP, I can regain my Wis mod in ki\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20190905_Sorcerer-and-Warlock.js\r\n// This file adds the content from the Unearthed Arcana: Sorcerer and Warlock article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SnW\"] = {\r\n\tname : \"Unearthed Arcana: Sorcerer and Warlock\",\r\n\tabbreviation : \"UA:SnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-AberrantLurk.pdf\",\r\n\tdate : \"2019/09/05\"\r\n};\r\n\r\n// Add a subclasses for the Sorcerer and one for the Warlock\r\n// Both contain work by /u/KaydeArcane\r\nvar UASnW_abberantMindExtraSpell = [\"arms of hadar\", \"dissonant whispers\", \"calm emotions\", \"detect thoughts\", \"hunger of hadar\", \"sending\", \"compulsion\", \"evard's black tentacles\", \"modify memory\", \"rary's telepathic bond\"];\r\nAddSubClass(\"sorcerer\", \"aberrant mind-ua\", {\r\n\tregExpSearch : /^(?=.*aberrant)(?=.*mind).*$/i,\r\n\tsubname : \"Aberrant Mind\",\r\n\tsource : [[\"UA:SnW\", 1]],\r\n\tspellcastingExtra : UASnW_abberantMindExtraSpell,\r\n\tspellcastingExtraApplyNonconform : true,\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Invasive Thoughts\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can telepathic link myself with a creature within 30 ft that I can see\",\r\n\t\t\t\t\"This lasts for 10 minutes, until I'm incapacitated or die, or I use this ability again\",\r\n\t\t\t\t\"I can telepathically talk with the target; It can speak back if it understands a language\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Psionic Spells\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn additional spells, which do not count towards the number of spell I can know\")\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Warped Being\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My aberrant origin gives me an AC of 13 + my Dex mod when I am not wearing armor\"),\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*warped)(?=.*being).*$/i,\r\n\t\t\t\tname : \"Warped Being\",\r\n\t\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\t\tac : 13,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Sorcery\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend sorcery points instead of a spell slot to cast a spell from my Psionic Spells\",\r\n\t\t\t\t\"This costs the spell's level in sorcery points, but the spell requires no other components\"\r\n\t\t\t]),\r\n\t\t\tspellFirstColTitle : \"SP\",\r\n\t\t\tspellChanges : function () {\r\n\t\t\t\tvar fullReObj = {};\r\n\t\t\t\tUASnW_abberantMindExtraSpell.map(function (s) {\r\n\t\t\t\t\tvar spObj = SpellsList[s] ? SpellsList[s] : { level : 1 };\r\n\t\t\t\t\tfullReObj[s] = {\r\n\t\t\t\t\t\tfirstCol : spObj.level,\r\n\t\t\t\t\t\tcompMaterial : (spObj.compMaterial ? spObj.compMaterial + \"\\n\" : \"\") + \"If I cast this spell by expending Sorcery Points, it doesn't require any components\",\r\n\t\t\t\t\t\tchanges : \"I can cast this spell by expending a number of Sorcery Points equal to its level instead of expending a spell slot. When I do so, the spell doesn't require any components.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\treturn fullReObj;\r\n\t\t\t}()\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Psychic Defenses\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I gain resistance to psychic damage and adv. on saves vs. being charmed or frightened\"),\r\n\t\t\tdmgres : [\"Psychic\"],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Revelation in Flesh\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend 1 or more sorcery points to transform for 1 minute\",\r\n\t\t\t\t\"For each sorcery point used, I gain one of the following benefits of my choice:\",\r\n\t\t\t\t\"\\u2022 I gain a swimming speed equal to my walking speed and the ability to breathe water\",\r\n\t\t\t\t\"\\u2022 I gain a flying speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\"\\u2022 I can move, with equipment, through any space as narrow as 1 inch without squeezing\",\r\n\t\t\t\t\"  I can spend 5 ft of movement to escape form a grapple or from nonmagical restraints\",\r\n\t\t\t\t\"\\u2022 I am aware of the location of any hidden/invisible creatures within 60 ft of me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : \"1+ sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Warp Reality\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can radiate a 20-ft radius aura of difficult terrain for 1 minute\",\r\n\t\t\t\t\"Creatures that start their turn within the aura take 2d10 psychic damage\",\r\n\t\t\t\t\"When creating it, I can choose any creatures I can see to be unaffected by this aura\",\r\n\t\t\t\t\"As a bonus action, I can end this aura to teleport myself and others away\",\r\n\t\t\t\t\"I teleport myself and any creature in the aura to a location I can see within 1 mile\",\r\n\t\t\t\t\"An unwilling creature can succeed on a Charisma saving throw to avoid being teleported\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (create)\"], [\"bonus action\", \" (end)\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the lurker in the deep-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*lurker)(?=.*(deep|depth)).*$/i,\r\n\tsubname : \"the Lurker in the Deep\",\r\n\tsource : [[\"UA:SnW\", 2]],\r\n\tspellcastingExtra : [\"create or destroy water\", \"thunderwave\", \"gust of wind\", \"shatter\", \"lightning bolt\", \"sleet storm\", \"control water\", \"evard's black tentacles\", \"commune with nature\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Grasp of the Deep\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon or move a spectral tentacle and make an attack with it\",\r\n\t\t\t\t\"I can summon it to a space within 60 ft that I can see or move an existing one 30 ft\",\r\n\t\t\t\t\"I make melee spell attacks with 10 ft reach with it that deal cold or lightning damage\",\r\n\t\t\t\t\"Creatures hit by the tentacle suffer 10 ft speed reduction until the start of my next turn\",\r\n\t\t\t\t\"The 10-ft long tentacle lasts for 1 minute or until I summon another\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/move)\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Cha mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^((?=.*grasp)(?=.*deep)|(?=.*spectral)(?=.*tentacle)).*$/i,\r\n\t\t\t\tname : \"Grasp of the Deep\",\r\n\t\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\t\tability : 6,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"Cold/Lightning\"],\r\n\t\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\t\tdescription : \"My choice of cold or lightning damage; Target -10 ft speed until my next turn starts\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tlitdGraspOfTheDeep : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.litdGraspOfTheDeep && classes.known.warlock.level >= 10) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '2d8';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Scion of the Deep\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can communicate telepathically with any aberration, beast, elemental, or monstrosity\",\r\n\t\t\t\t\"The creature must be within 120 ft of me and have an innate swimming speed\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fathomless Soul\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [cold resistance]\\n   I have a swimming speed equal to my walking speed; I can breathe both air and water\",\r\n\t\t\tdmgres : [\"Cold\"],\r\n\t\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Guardian Grasp\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature in 10 ft of my tentacle takes damage, I can have it help\",\r\n\t\t\t\t\"One creature takes only half damage and my spectral tentacle vanishes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Devouring Maw\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon a 10-ft radius translucent maw within 60 ft for 1 minute\",\r\n\t\t\t\t\"Creatures in the maw as it appear must Str save or be restrained, can repeat as action\",\r\n\t\t\t\t\"Creatures starting their turn in the maw take 3d6 cold or lightning damage (my choice)\",\r\n\t\t\t\t\"If a creature is in the maw at the start of my turn, I gain my warlock level in temp HP\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unleash the Depths\",\r\n\t\t\tsource : [[\"UA:SnW\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can choose one of the following effects to occur within 30 ft of me:\",\r\n\t\t\t\t\"\\u2022 Teleport myself and up to 5 willing creatures I can see within 30 ft of the chosen point\",\r\n\t\t\t\t\"  The destination must be within 100 miles and visited by me within the last 24 hours\",\r\n\t\t\t\t\"\\u2022 5 creatures within 30 ft of the chosen point that I can see are attacked by tentacles\",\r\n\t\t\t\t\"  The targets take 6d10 cold or lightning damage (my choice) and are knocked prone\",\r\n\t\t\t\t\"  Each can make a Dexterity save to halve the damage and avoid being knocked prone\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\n// ua_20190918_Bard-and-Paladin.js\r\n// This file adds the content from the Unearthed Arcana: Bard and Paladin article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BnP\"] = {\r\n\tname : \"Unearthed Arcana: Bard and Paladin\",\r\n\tabbreviation : \"UA:BnP\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-EloquentHeroics.pdf\",\r\n\tdate : \"2019/09/18\"\r\n};\r\n\r\n// Add a subclasses for the bard and one for the paladin\r\nAddSubClass(\"bard\", \"college of eloquence-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\r\n\tsubname : \"College of Eloquence\",\r\n\tsubnameShort: \"Eloquence\",\r\n\tsource : [[\"UA:BnP\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Universal Speech\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend one bardic inspiration die to make me understood by all\",\r\n\t\t\t\t\"I roll the die, that many creatures I can see within 60 ft of me are affected for 10 min\",\r\n\t\t\t\t\"Those affected magically understand me and I gain adv. on Cha checks to influence them\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Soothing Words\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast Calm Emotions without expending a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Soothing Words\",\r\n\t\t\t\tspells : [\"calm emotions\"],\r\n\t\t\t\tselection : [\"calm emotions\"],\r\n\t\t\t\tfirstCol : 'Sp'\r\n\t\t\t}],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Undeniable Logic\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend one bardic inspiration die to encourage or befuddle\",\r\n\t\t\t\t\"One creature I can see within 60 ft that can hear me gets one of the following effects:\",\r\n\t\t\t\t\" \\u2022 It heals HP equal to the die roll and has adv. on its next save before my next turn ends\",\r\n\t\t\t\t\" \\u2022 It suffers psychic damage equal to the die roll and must make an Intelligence save\",\r\n\t\t\t\t\"   On a failed save, it also suffers disadv. on its next save before the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Infectious Inspiration\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My bardic inspiration dice are not lost if the check, attack, or save it was added to fails\",\r\n\t\t\t\t\"As a reaction when the same thing happens but the roll succeeds, I can inspire another\",\r\n\t\t\t\t\"I give a creature within 60 ft that can hear me an inspiration die without expending any\",\r\n\t\t\t\t\"I can use this reaction a number of times per long rest equal to my Cha mod (min 1)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Cha mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of heroism-ua\", {\r\n\tregExpSearch : /^(?=.*\\bhero)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of Heroism\",\r\n\tsubnameShort: \"Heroism\",\r\n\tsource : [[\"UA:BnP\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Peerless Athlete\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, I gain adv. on Str (Athletics) and Dex (Acrobatics) checks for 10 min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"expeditious retreat\", \"guiding bolt\", \"enhance ability\", \"enthrall\", \"haste\", \"protection from energy\", \"compulsion\", \"freedom of movement\", \"commune\", \"conjure volley\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Legendary Strike\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, my weapon attacks score a critical hit on a roll of 19 or 20 for 1 min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Mighty Deed\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I score a critical hit or reduce a target to 0 HP, I can bolster morale or demoralize\",\r\n\t\t\t\t\"Up to my Cha mod (min 1) of creatures I can see in 30 ft suffer the same chosen effect:\",\r\n\t\t\t\t\" \\u2022 All creatures gain temp HP equal to 1d6 + my Charisma modifier (min 1 temp HP)\",\r\n\t\t\t\t\" \\u2022 All creatures must make a Wis save or be frightened of me until my next turn starts\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"Round\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Glorious Defense\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see hits me with an attack roll, I can gain bonus AC\",\r\n\t\t\t\t\"I add my Cha mod (min 1) to my AC for that attack, potentially causing it to miss me\",\r\n\t\t\t\t\"If it misses, I can make one weapon attack against the attacker as part of this reaction\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Living Myth\",\r\n\t\t\tsource : [[\"UA:BnP\", 3]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 I have advantage on all Charisma checks\",\r\n\t\t\t\t\" \\u2022 Once on each of my turns when I miss with a weapon attack, I can cause it to hit\",\r\n\t\t\t\t\" \\u2022 As a reaction when I fail a saving throw, I can choose to succeed instead\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20191003_Cleric-Druid-and-Wizard.js\r\n// This file adds the content from the Unearthed Arcana: Cleric, Druid, and Wizard article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CDnW\"] = {\r\n\tname : \"Unearthed Arcana: Cleric, Druid, and Wizard\",\r\n\tabbreviation : \"UA:CDnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-TwilightFireNames.pdf\",\r\n\tdate : \"2019/10/03\"\r\n};\r\n\r\n// Add a subclass for the Cleric\r\nAddSubClass(\"cleric\", \"twilight domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(twilight|transition)).*$/i,\r\n\tsubname : \"Twilight Domain\",\r\n\tsource : [[\"UA:CDnW\", 1]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"darkness\", \"invisibility\", \"aura of vitality\", \"leomund's tiny hut\", \"aura of life\", \"greater invisibility\", \"circle of power\", \"dream\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of Night\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain Darkvision with unlimited range and can give this benefit to allies\",\r\n\t\t\t\t\"As an action, I can grant this to chosen creatures I can see within 10 ft for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", \"unlimited\"]],\r\n\t\t\tadditional : \"extend to others\",\r\n\t\t\tusages : \"Wis mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Vigilant Blessing\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can grant myself or a creature I touch adv. on the next initiative roll\",\r\n\t\t\t\t\"This benefit ends immediately after the roll or when I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Twilight Sanctuary\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use my holy symbol to create a 30-ft radius sphere around myself\",\r\n\t\t\t\t\"It moves with me, is filled with dim light, and lasts for 1 min or until I'm incapacitated\",\r\n\t\t\t\t\"When a creature, including me, ends its turn inside the sphere, I can grant it a benefit\",\r\n\t\t\t\t\"It either gains 1d8 temp HP or one effect causing it to be charmed or frightened ends\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Steps of the Brave\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on saves against being frightened\",\r\n\t\t\t\t\"As a bonus action while I'm in dim light or darkness, I can give myself a fly speed\",\r\n\t\t\t\t\"This fly speed is equal to my walking speed and lasts until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Midnight Shroud\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast Darkness, I can choose my Wis mod of creatures I can see\",\r\n\t\t\t\t\"The chosen creatures can see through the Darkness; I can be one of the chosen creatures\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\t// note that several healing spells are not present here because they don't restore hp at casting (only later)\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey == \"darkness\" && (!spellObj.fistCol || spellObj.fistCol == \"markedbox\")) {\r\n\t\t\t\t\t\t\tspellObj.description = \"15-ft rad darkness on point/obj; no darkvision; only magic light SL 3+ works; Wis mod of crea can see\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Darkness using a spell slot, I can choose a number of creatures that I can see (myself included) equal to my Wisdom modifier (minimum 1).The chosen creatures can see through the Darkness.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Druid\r\nAddSubClass(\"druid\", \"circle of wildfire-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*wild.{0,1}fire).*$/i,\r\n\tsubname : \"Circle of Wildfire\",\r\n\tsubnameShort: \"Wildfire\",\r\n\tsource : [[\"UA:CDnW\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Spells\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My mystical bond with a wildfire spirit gives me the ability to cast certain spells\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\r\n\t\t\t\t\"In addition, I learn the Fire Bolt cantrip\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Circle Spells\",\r\n\t\t\t\tspells : [\"fire bolt\"],\r\n\t\t\t\tselection : [\"fire bolt\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"locate animals or plants\", \"scorching ray\", \"fireball\", \"plant growth\", \"aura of life\", \"fire shield\", \"flame strike\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Summon Wildfire\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a wildfire spirit within 30 ft\",\r\n\t\t\t\t\"All within 10 ft of where it manifests must make a Dex save or take 2d10 fire damage\",\r\n\t\t\t\t\"It disappears after 1 hour, when it is reduced to 0 HP, or I summon another\",\r\n\t\t\t\t\"It obeys my commands, is friendly to my allies and I, and acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"Its HP maximum is equal to its Con mod + my Wis mod + five times my druid level\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Wildfire\"]],\r\n\t\t\tcreaturesAdd : [[\"Wildfire Spirit\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Wildfire Spirit\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Elemental\",\r\n\t\t\t\talignment : \"Chaotic\",\r\n\t\t\t\tac : 13,\r\n\t\t\t\thp : 12,\r\n\t\t\t\thd : [2, 6],\r\n\t\t\t\tspeed : \"20 ft, fly 30 ft (hover)\",\r\n\t\t\t\tscores : [10, 14, 14, 13, 15, 11],\r\n\t\t\t\tsaves : [\"\", 4, 4, \"\", 4, \"\"],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"nature\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tdamage_immunities : \"fire\",\r\n\t\t\t\tcondition_immunities : \"charmed, frightened, grappled, prone, restrained\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"understands the languages of its creator\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flame Seed\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\tdescription : \"Ranged weapon attack\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"10 ft\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft of teleportation origin, success - no damage; See traits\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [2, 10, \"fire\"],\r\n\t\t\t\t\trange : \"10 ft\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft where spirit is summoned, success - no damage\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The spirit obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It only takes the Dodge action, unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Flame Seed, Fiery Teleportation, Dash, Disengage, Help, or Hide action.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Fiery Teleportation (1\\xD7 per short rest)\",\r\n\t\t\t\t\tdescription : \"The spirit and each willing creature of its creator's choice within 5 ft of it teleport up to 30 ft to unoccupied spaces its creator can see. Each creature within 10 ft of the space that the spirit left must succeed on a Dexterity saving throw against its creator's spell save DC or take fire damage equal to 1d6 + its proficiency bonus.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Wildfire\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvl5 = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + drdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its creator's Intelligence modifier\\n + 5 \\xD7 \" + drdLvl + \" from five times its creator's druid level (\" + drdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Enhanced Bond\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my wildfire spirit is present, I can have my spells originate from it (no range 'self')\",\r\n\t\t\t\t\"Also, I can then add 1d8 to a single roll of my spells that restore HP or deal fire damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Flames of Life\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature dies in 30 ft of me/wildfire spirit, I can have flames erupt\",\r\n\t\t\t\t\"The creature has to be Small or larger; The flames last for 1 minute or until touched\",\r\n\t\t\t\t\"When I see someone touch the flames, it heals or takes fire damage for 2d10 + Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Blazing Endurance\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I drop to 0 HP and don't die, I can stay at 1 HP instead with 5\\xD7 druid level temp HP\",\r\n\t\t\t\t\"Also, all chosen creatures that I can see within 30 ft take 2d10 + druid level fire damage\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Wizard\r\nAddSubClass(\"wizard\", \"onomancy-ua\", {\r\n\tregExpSearch : /onomancy|onomancer/i,\r\n\tsubname : \"Onomancy\",\r\n\tsource : [[\"UA:CDnW\", 4]],\r\n\tfullname : \"Onomancer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I learn a language of my choice and gain proficiency with calligrapher's tools\"),\r\n\t\t\ttoolProfs : [\"Calligrapher's tools\"],\r\n\t\t\tlanguageProfs : [1]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Extract Name\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 60 ft make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is charmed by me until my next turn ends and I mentally learn its true name\",\r\n\t\t\t\t\"If successful, I know that my magic failed and can't use this feature again on it\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.2\" : {\r\n\t\t\tname : \"Fateful Naming\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add Bane and Bless to my spellbook and they count as wizard spells for me\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\r\n\t\t\t\t\"I can cast either spell without using a spell slot by speaking the true name of a target\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fateful Naming\",\r\n\t\t\t\tspells : [\"bane\", \"bless\"],\r\n\t\t\t\tselection : [\"bane\", \"bless\"],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tfirstCol : \"markedbox\"\r\n\t\t\t}],\r\n\t\t\tadditional : \"with true name\",\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Resonants\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Resonants to the third page',\r\n\t\t\t\t\"Whenever I gain a wizard level, I can replace a Resonant I know with another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : (n < 10 ? 2 : 4) + \" resonants known\";\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? 0 : n < 10 ? 2 : 4;\r\n\t\t\t}),\r\n\t\t\textraname : \"Resonant\",\r\n\t\t\textrachoices : [\"Absorption\", \"Devastation\", \"Dissolution\", \"Nullification\", \"Puppetry\", \"Sympathy\"],\r\n\t\t\t\"absorption\" : {\r\n\t\t\t\tname : \"Absorption\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"When the spell deals damage to the named target, I gain a number of temporary hit points\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn (n < 10 ? 3 : n < 14 ? 4 : 5) + \"d6 temporary hit points\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"devastation\" : {\r\n\t\t\t\tname : \"Devastation\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"The named creature has disadvantage on its first saving throw against the spell\")\r\n\t\t\t},\r\n\t\t\t\"dissolution\" : {\r\n\t\t\t\tname : \"Dissolution\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"The first time the named creature takes damage from the spell, it takes extra damage\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"+\" + (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d8 force damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"nullification\" : {\r\n\t\t\t\tname : \"Nullification\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If the named creature is affected by any other spells, I know what those spells are\",\r\n\t\t\t\t\t\"In addition, I can try to end one of my choice with an Int check (DC 10 + spell level)\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"puppetry\" : {\r\n\t\t\t\tname : \"Puppetry\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The first time the named creature takes damage from the spell, it is moved as well\",\r\n\t\t\t\t\t\"I choose to knock it prone or move it up to 10 ft directly towards me or away from me\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"sympathy\" : {\r\n\t\t\t\tname : \"Sympathy\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"I can target the named creature with the spell even if I can't see it or it is has total cover\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Resonant Utterance\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast a wizard spell, I can use one resonant that I know\",\r\n\t\t\t\t\"The resonant will only work if I speak the true name of a creature targeted by the spell\"\r\n\t\t\t]),\r\n\t\t\tusages : \"half wizard level per \",\r\n\t\t\tusagescalc : \"event.value = classes.known.wizard ? Math.floor(classes.known.wizard.level / 2) : 0;\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Relentless Naming\",\r\n\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I speak the true name of a creature when I cast a damage dealing spell at it,\",\r\n\t\t\t\t\"I can have that spell deal force or psychic damage instead of its normal damage type\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20191017_Fighter-Ranger-and-Rogue.js\r\n// This file adds the content from the Unearthed Arcana: Fighter, Ranger, and Rogue article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FRnR\"] = {\r\n\tname : \"Unearthed Arcana: Fighter, Ranger, and Rogue\",\r\n\tabbreviation : \"UA:FRnR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-RuneSwarmRevived.pdf\",\r\n\tdate : \"2019/10/17\"\r\n};\r\n\r\n// Add a subclass for the Fighter\r\nAddSubClass(\"fighter\", \"rune knight-ua\", {\r\n\tregExpSearch : /^(?=.*rune)(?=.*knight).*$/i,\r\n\tsubname : \"Rune Knight\",\r\n\tsource : [[\"UA:FRnR\", 1]],\r\n\tfullname : \"Rune Knight\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with smith's tools and I learn to speak, read, and write Giant\"),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tlanguageProfs : [\"Giant\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rune Magic\",\r\n\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn how to use runes to enhance my weapons, armor, and shields\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a rune and add it to the third page',\r\n\t\t\t\t\"When I finish a long rest, I can inscribe each rune I know upon a different item I touch\",\r\n\t\t\t\t\"Each item can hold only one rune and remains there until I finish a long rest\",\r\n\t\t\t\t\"Runes inscribed on a carried object grant both a passive and a limited-use active effect\",\r\n\t\t\t\t\"Whenever I gain a fighter level, I can swap a rune I know for another\",\r\n\t\t\t\t\"The DC for a rune's abilities is 8 + my Proficiency bonus + my Intelligence modifier\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5) + \" runes known\"\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\textraname : \"Rune\",\r\n\t\t\textrachoices : [\"Haug (Hill Rune)\", \"Ild (Fire Rune)\", \"Ise (Frost Rune)\", \"Skye (Cloud Rune)\", \"Stein (Stone Rune)\", \"Uvar (Storm Rune)\"],\r\n\t\t\t\"haug (hill rune)\" : {\r\n\t\t\t\tname : \"Haug\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I gain a resilience reminiscent of hill giants\",\r\n\t\t\t\t\t\"I always gain advantage on saves against being poisoned and resistance to poison damage\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to gain resistance to bludg/slash/pierc damage for 1 min\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Haug Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tdmgres : [\"Poison\"],\r\n\t\t\t\tsavetxt : { adv_vs : [\"poison\"] }\r\n\t\t\t},\r\n\t\t\t\"ild (fire rune)\" : {\r\n\t\t\t\tname : \"Ild\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain craftsmanship reminiscent of fire giants\",\r\n\t\t\t\t\t\"I always double my proficiency bonus when making an ability check with a tool\",\r\n\t\t\t\t\t\"When I hit a creature with a weapon attack, I can invoke it to summon fiery shackles\",\r\n\t\t\t\t\t\"It must make a Str save or be restrained for 1 min; Repeat save at end of each of its turns\",\r\n\t\t\t\t\t\"While restrained, the creature takes 2d6 fire damage at the start of each of its turns\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Ild Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t\t},\r\n\t\t\t\"ise (frost rune)\" : {\r\n\t\t\t\tname : \"Ise\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a stoic calm reminiscent of frost giants\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Animal Handling) and Charisma (Intimidation) checks\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke this rune to gain +2 Strength (max 30) for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Ise Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Animal Handling\", true], [\"Intimidation\", true] ]\r\n\t\t\t},\r\n\t\t\t\"skye (cloud rune)\" : {\r\n\t\t\t\tname : \"Skye\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a deceptiveness reminiscent of cloud giants\",\r\n\t\t\t\t\t\"I always gain advantage on Dexterity (Sleight of Hand) and Charisma (Deception) checks\",\r\n\t\t\t\t\t\"As a reaction when I or a target I see get hit by an attack within 30 ft, I can invoke this\",\r\n\t\t\t\t\t\"This causes the attack to target another within 30 ft with the same roll (ignore range)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Skye Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Sleight of Hand\", true], [\"Deception\", true] ]\r\n\t\t\t},\r\n\t\t\t\"stein (stone rune)\" : {\r\n\t\t\t\tname : \"Stein\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain insightfulness reminiscent of stone giants\",\r\n\t\t\t\t\t\"I always gain adv. on Wisdom (Insight) checks and I gain darkvision 60 ft (or +30 ft)\",\r\n\t\t\t\t\t\"As a reaction when a creature I can see ends it turn within 30 ft, I can invoke this rune\",\r\n\t\t\t\t\t\"This causes the creature to make a Wisdom save or be charmed by me for 1 minute\",\r\n\t\t\t\t\t\"While charmed, it descends into a dreamy stupor, becoming incapacitated and has speed 0\",\r\n\t\t\t\t\t\"This ends early if it takes damage or someone uses an action to shake it out of this state\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Stein Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]],\r\n\t\t\t\tadvantages : [ [\"Insight\", true] ]\r\n\t\t\t},\r\n\t\t\t\"uvar (storm rune)\" : {\r\n\t\t\t\tname : \"Uvar\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I can glimpse the future like storm giants\",\r\n\t\t\t\t\t\"I always gain adv. on Int (Arcana) checks and I can't be surprised while not incapacitated\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to enter a prophetic state for 1 min or till incapacitated\",\r\n\t\t\t\t\t\"While in this state, I can use a reaction to cause a roll to gain advantage or disadvantage\",\r\n\t\t\t\t\t\"I can do this for attacks, saves, and checks of myself or others I can see within 60 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Uvar Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Arcana\", true] ],\r\n\t\t\t\tsavetxt : { immune : [\"surprised\"] },\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Giant Might\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue myself with giant magic for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 Space permitted, I grow to Large size along with everything I'm wearing\",\r\n\t\t\t\t\" \\u2022 Advantage on Strength check and saves; My weapon attacks deal extra damage\"\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 10 ? 6 : 8) + \" weapon damage\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { text : [\"Adv. on Str saves in giant might\"] }\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Defensive Runes\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see a creature get hit by an attack within 60 ft, I can grant it AC\",\r\n\t\t\t\t\"The creature adds 1 + my Int mod (min 2) to its AC for the attack; I learn another rune\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Great Stature\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My runes permanently make me grow; I add 3d4 inches to my length\",\r\n\t\t\t\t\"In addition, my Giant Might adds more weapon damage and I learn another rune\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rune Magic Mastery\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : \" \\n  I can use each of my runes twice instead of once per short rest and I learn another rune\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Blessing of the All Father\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"When I use Giant Might, I can have it also affect a willing ally that I can see within 60 ft\")\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Ranger (and also to the Revised Ranger)\r\nvar UAFRnR_rangerSubclassSwarmkeeperUA = AddSubClass(\"ranger\", \"swarmkeeper-ua\", {\r\n\tregExpSearch : /swarmkeeper/i,\r\n\tsubname : \"Swarmkeeper\",\r\n\tsource : [[\"UA:FRnR\", 3]],\r\n\tfullname : \"Swarmkeeper\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Mage Hand; When I cast it, the hand takes the form of swarming nature spirits\",\r\n\t\t\t\t\"I get bonus spells known, which do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"web\", \"gaseous form\", \"giant insect\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Gathered Swarm\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I constantly have a swarm of fey spirits crawling in my space, they look like Tiny beasts\",\r\n\t\t\t\t\"As a bonus action, I can agitate that swarm for 1 minute, empowering my attacks\",\r\n\t\t\t\t\"Once per turn when I hit with a weapon attack, I can have it deal extra force damage\",\r\n\t\t\t\t\"In addition, the creature hit is moved 5 ft towards or away from me (my choice)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + (n < 11 ? 1 : 2) + \"d6 force dmg\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Wis mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Writhing Tide\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I activate Gathered Swarm, I gain one additional benefit of my choice:\",\r\n\t\t\t\t\" \\u2022 I gain +10 ft walking speed and I can take the Disengage action as a bonus action\",\r\n\t\t\t\t\" \\u2022 I gain climb speed equal to walk speed & need no check for difficult surfaces or ceilings\",\r\n\t\t\t\t\" \\u2022 I gain a 10 ft fly speed and I can hover\"\r\n\t\t\t]),\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"scuttling eyes\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"storm of minions\",\r\n\t\t\t\tminlevel : 15\r\n\t\t\t}],\r\n\t\t\t\"scuttling eyes\" : {\r\n\t\t\t\tname : \"Scuttling Eyes\",\r\n\t\t\t\textraname : \"Swarmkeeper 11\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can from a spirit of my swarm into a Tiny beast of my choice for 1 hour\",\r\n\t\t\t\t\t\"It has AC 18, my senses, and 40 ft speed it can use to walk, climb, fly, or swim\",\r\n\t\t\t\t\t\"It telepathically relays what it sees and hears to me and I can speak through it\",\r\n\t\t\t\t\t\"During my turn, I can telepathically command it and it can hide using my Stealth\",\r\n\t\t\t\t\t\"If it is damaged, I must make a Wis save (DC 10 or half damage if higher) or it vanishes\",\r\n\t\t\t\t\t\"As an action, I can dismiss it early and I can teleport to an empty space within 5 ft of it\",\r\n\t\t\t\t\t\"I can also invoke this ability by spending a spell slot of 3rd level or higher\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (summon/dismiss)\"]],\r\n\t\t\t\tadditional : \"or level 3 spell slot\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t},\r\n\t\t\t\"storm of minions\" : {\r\n\t\t\t\tname : \"Storm of Minions\",\r\n\t\t\t\textraname : \"Swarmkeeper 15\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can create a 10-ft radius swarm-filled sphere on a point within 120 ft\",\r\n\t\t\t\t\t\"I can choose any number of creatures that I can see to be unaffected by it\",\r\n\t\t\t\t\t\"It lasts minute, is difficult terrain for others, and I can move it 30 ft as a bonus action\",\r\n\t\t\t\t\t\"Others that start their turn in it take 2d8 necrotic damage and must make a Con save\",\r\n\t\t\t\t\t\"On a success, they take half damage, but if failed, are blinded until their next turn starts\",\r\n\t\t\t\t\t\"At the start of my turn, if a Small or larger creature was damaged by it, I heal 1d8 HP\",\r\n\t\t\t\t\t\"I can also invoke this ability by spending a spell slot of 4th level or higher\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : \"or level 4 spell slot\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UAFRnR_rangerSubclassSwarmkeeperUA); };\r\n\r\n// Add a subclass for the Rogue\r\nAddSubClass(\"rogue\", \"the revived-ua\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*revived).*$/i,\r\n\tsubname : \"the Revived\",\r\n\tsource : [[\"UA:FRnR\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tokens of Past Lives\",\r\n\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain a chosen skill or tool proficiency and can change it whenever I finish a long rest\"),\r\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Revived Nature\",\r\n\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to poison damage and adv. on saves against disease and being poisoned\",\r\n\t\t\t\t\"I don't need to eat, drink, breathe, or sleep; I must spend 4 hours inactive for a long rest\",\r\n\t\t\t\t\"I'm motionless during this inactive state, remain semiconscious, and can hear as normal\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Poison\"],\r\n\t\t\tsavetxt : { adv_vs : [\"disease\", \"poison\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Bolts from the Grave\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Immediately after I use my cunning action, I can unleash bolts of necrotic energy\",\r\n\t\t\t\t\"This is a ranged spell attack with 30 ft range, which I'm proficient with, using Dexterity\",\r\n\t\t\t\t\"If it hits, it deals my sneak attack damage, provided I didn't use sneak attack this turn\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*bolts?)(?=.*grave).*$/i,\r\n\t\t\t\tname : \"Bolts from the Grave\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 6, \"necrotic\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"Immediately after using cunning action; Only if I not yet used sneak attack this turn\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisBoltsFromTheGrave : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.rogue && classes.known.rogue.level && v.theWea.isBoltsFromTheGrave) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = Math.ceil(classes.known.rogue.level / 2) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Connect with the Dead\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Speak with Dead without a spell slot or material components using Intelligence\",\r\n\t\t\t\t\"Doing this gives me a random proficiency (roll 1d3) that lasts until I finish my next rest:\",\r\n\t\t\t\t\"[1] language of my choice; [2] skill or tool of my choice; [3] saving throw of my choice\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Connect with the Dead\",\r\n\t\t\t\tspells : [\"speak with dead\"],\r\n\t\t\t\tselection : [\"speak with dead\"],\r\n\t\t\t\tfirstCol : \"oncesr\",\r\n\t\t\t\tspellcastingAbility : 4\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"speak with dead\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Connect with the Dead, I can cast Speak with Dead once per short rest without using a spell slot or material component.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Audience with Death\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on death saves; Whenever I make one, I can ask a question to a death entity\",\r\n\t\t\t\t'It answers truthfully with \"yes\", \"no\", or \"unknown\", using the knowledge of all that died',\r\n\t\t\t\t\"When at 0 HP and healed or stabilized, I can change any of my traits/ideals/bonds/flaws\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { text : [\"Adv. on death saves\"] },\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"ethereal jaunt\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}],\r\n\t\t\t\"ethereal jaunt\" : {\r\n\t\t\t\tname : \"Ethereal Jaunt\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\t\textraname : \"the Revived 17\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can now use my cunning action to teleport to an unoccupied space within 30 ft\",\r\n\t\t\t\t\t\"I don't need to see where I'm going, but it fails if I'd go through a magical force effect\",\r\n\t\t\t\t\t\"I'm shunted if I appear in an occupied space and take force damage of 2\\xD7 the ft moved\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20191104_Class-Feature-Variants.js\r\n// This file adds the content from the Unearthed Arcana: Class Feature Variants article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CFV\"] = {\r\n\tname : \"Unearthed Arcana: Class Feature Variants\",\r\n\tabbreviation : \"UA:CFV\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA_ClassFeatures.pdf\",\r\n\tdate : \"2019/11/04\"\r\n};\r\n\r\n// Proficiency Versatility is not something governed by import automation, thus skipped\r\n\r\n// Barbarian alternative class features\r\nCreateClassFeatureVariant(\"barbarian\", \"danger sense\", \"Survival Instincts (ua)\", {\r\n\tname : \"Survival Instincts\",\r\n\tsource : [[\"UA:CFV\", 1]],\r\n\tdescription : desc([\r\n\t\t\"I gain proficiency and expertise with two skills of my choice\",\r\n\t\t\"I can choose from Animal Handling, Medicine, Nature, Perception, and Survival\"\r\n\t]),\r\n\tskillstxt : \"Proficiency and expertise with two from Animal Handling, Medicine, Nature, Perception, and Survival\"\r\n});\r\nCreateClassFeatureVariant(\"barbarian\", \"fast movement\", \"Instinctive Pounce (ua)\", {\r\n\tname : \"Instinctive Pounce\",\r\n\tsource : [[\"UA:CFV\", 1]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature ends it move within 15 ft of me, I can move towards it\",\r\n\t\t\"I move up to half my speed closer to it; This move doesn't provoke opportunity attacks\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\n\r\n// Bard alternative class features enhancements\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Bard Spell List\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cause fear\", \"color spray\", \"command\", \"aid\", \"enlarge/reduce\", \"mind spike\", \"mirror image\", \"phantasmal force\", \"mass healing word\", \"slow\", \"tiny servant\", \"phantasmal killer\", \"contact other plane\", \"rary's telepathic bond\", \"heroes' feast\", \"mental prison\", \"scatter\", \"tenser's transformation\", \"power word pain\", \"prismatic spray\", \"antipathy/sympathy\", \"maze\", \"prismatic wall\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the bard class with the following spells (spell level in brackets): Cause Fear (1), Color Spray (1), Command (1), Aid (2), Enlarge/Reduce (2), Mind Spike (2), Mirror Image (2), Phantasmal Force (2), Mass Healing Word (3), Slow (3), Tiny Servant (3), Phantasmal Killer (4), Contact Other Plane (5), Rary's Telepathic Bond (5), Heroes' Feast (6), Mental Prison (6), Scatter (6), Tenser's Transformation (6), Power Word Pain (7), Prismatic Spray (7), Antipathy/Sympathy (8), Maze (8), and Prismatic Wall (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Magical Inspiration (ua)\", {\r\n\tname : \"Magical Inspiration\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : desc([\r\n\t\t\"A bardic inspiration die recipient can also use it when casting a damaging or healing spell\",\r\n\t\t\"They can expend the die and add its result to one damage or healing roll of the spell\"\r\n\t])\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription: desc(\"After a long rest, I can swap a bard cantrip or spell I know for another of the same level\")\r\n}, \"Optional 1st-level bard features\");\r\n\r\n// Cleric alternative class features and enhancements\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription: desc(\"Whenever I gain a cleric level, I can replace a cleric cantrip I know with another\")\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Cleric Spell List\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cause fear\", \"wrathful smite\", \"branding smite\", \"aura of vitality\", \"aura of life\", \"aura of purity\", \"skill empowerment\", \"wall of light\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the cleric class with the following spells (spell level in brackets): Cause Fear (1), Wrathful Smite (1), Branding Smite (2), Aura of Vitality (3), Aura of Life (4), Aura of Purity (4), Skill Empowerment (5), Wall of Light (5), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"channel divinity\"], true, \"Harness Divine Power (ua)\", {\r\n\tname : \"Channel Divinity:\\xA0Harness Divine Power\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription: desc(\"As a bonus action, I can use my holy symbol and a prayer to regain 1 used level 1 spell slot\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 2nd-level cleric features\");\r\n// Cleric subclass alternative feature, so only run this after we are sure all subclasses have been added\r\nRunFunctionAtEnd(function() {\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar domain = ClassList.cleric.subclasses[1][i];\r\n\t\tvar objDomain = ClassSubList[domain];\r\n\t\tif (!objDomain || !objDomain.features.subclassfeature8 || !(/divine strike|potent spellcasting/i).test(objDomain.features.subclassfeature8.name)) continue;\r\n\t\tCreateClassFeatureVariant(domain, \"subclassfeature8\", \"Blessed Strikes (ua)\", {\r\n\t\t\tname : \"Blessed Strikes\",\r\n\t\t\tsource : [[\"UA:CFV\", 4]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature is damaged by my weapon attack/spell, I can do +1d8 radiant damage\",\r\n\t\t\t\t\"Once I deal this extra damage, I can't do so again until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && (v.isWeapon || (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0)) && /\\d/.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per round +1d8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn when a creature takes damage from one of my spell or weapon attacks, I can also deal 1d8 radiant damage to the target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// Druid alternative class features and enhancements\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription: desc(\"Whenever I gain a druid level, I can replace a druid cantrip I know with another\")\r\n}, \"Optional 1st-level druid features\");\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Druid Spell List\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"ceremony\", \"protection from evil and good\", \"augury\", \"continual flame\", \"enlarge/reduce\", \"aura of vitality\", \"elemental weapon\", \"revivify\", \"thunder step\", \"wall of sand\", \"divination\", \"fire shield\", \"cone of cold\", \"dawn\", \"immolation\", \"flesh to stone\", \"symbol\", \"incendiary cloud\", \"mass polymorph\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the druid class with the following spells (spell level in brackets): Ceremony (1), Protection from Evil and Good (1), Augury (2), Continual Flame (2), Enlarge/Reduce (2), Aura of Vitality (3), Elemental Weapon (3), Revivify (3), Thunder Step (3), Wall of Sand (3), Divination (4), Fire Shield (4), Cone of Cold (5), Dawn (5), Immolation (5), Flesh to Stone (6), Symbol (7), Incendiary Cloud (8), Mass Polymorph (9), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nAddFeatureChoice(ClassList.fighter.features[\"fighting style\"], true, \"Martial Versatility (ua)\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Fighter 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a fighter level, I can swap a fighting style I know for another I'm allowed\")\r\n}, \"Optional 1st-level fighter features\");\r\n// All the other fighting styles are available for all three classes, fighter, paladin, and ranger, so add them to all three here\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Blind Fighting (ua)\", {\r\n\tname : \"Blind Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"Being unable to see a creature doesn't impose disadvantage on my attack rolls against it\",\r\n\t\t\"However, this doesn't help me if the creature is hidden from me\"\r\n\t])\r\n});\r\nAddFightingStyle([\"ranger\"], \"Interception\", { // different for the Ranger, doesn't get this in TCoE\r\n\tname : \"Interception Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature I can see hits a target within 5 ft of me, I can intercept\",\r\n\t\t\"I reduce the damage the target takes by 1d10 + my Proficiency Bonus (min 0 damage)\",\r\n\t\t\"I can only do this while wielding a shield or a simple or martial weapon\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Thrown Weapon Fighting (ua)\", {\r\n\tname : \"Thrown Weapon Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 13]],\r\n\tdescription : desc([\r\n\t\t\"I can draw a weapon with the thrown property as part of the attack I make with it\",\r\n\t\t\"In addition, my ranged attacks made with thrown weapons deal +1 damage\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isThrownWeapon && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1 damage when thrown';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I deal +1 damage when I hit a ranged attack made with a thrown weapon.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && !v.isMeleeWeapon) {\r\n\t\t\t\t\toutput.extraDmg += 1;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Unarmed Fighting (ua)\", {\r\n\tname : \"Unarmed Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 13]],\r\n\tdescription : desc([\r\n\t\t\"My unarmed strikes deal 1d6 damage, or 1d8 damage when I have both hands free\",\r\n\t\t\"When I successfully start a grapple, I can deal 1d4 bludgeoning damage to the target\",\r\n\t\t\"Until the grapple ends, I can also deal this damage whenever I hit it with a melee attack\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\tif (fields.Damage_Die == 1 || fields.Damage_Die == \"1d4\") fields.Damage_Die = '1d6';\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Versatile (d8)';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d6 damage instead of 1, which increases to 1d8 if I have both hands free to make an unarmed strike with.\",\r\n\t\t\t2\r\n\t\t]\r\n\t}\r\n});\r\nif (ClassSubList[\"fighter-battle master\"]) {\r\n\t// Fighter alternative class features and enhancements (only if Battle Master subclass exists)\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Maneuver Versatility (ua)\", {\r\n\t\tname : \"Maneuver Versatility\",\r\n\t\textraname : \"Optional Battle Master 3\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"Whenever I finish a long rest, I can replace a Maneuver I know with another\")\r\n\t}, \"Optional 3rd-level battle master features\");\r\n\t\t// New Maneuver options\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Bait and Switch (ua)\", {\r\n\t\tname : \"Bait and Switch\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"On my turn, I can expend a superiority die to swap places with an ally within 5 ft\",\r\n\t\t\t\"Doing this costs me 5 ft of movement, but this doesn't provoke opportunity attacks\",\r\n\t\t\t\"The ally then adds the superiority die to its AC until the start of my next turn\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Brace (ua)\", {\r\n\t\tname : \"Brace\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when a creature I can see moves within 5 of me, I can attack it\",\r\n\t\t\t\"I expend a superiority die and make one weapon attack, adding the die to the damage\"\r\n\t\t]),\r\n\t\tlimfeaname : \"Brace\\xA0\",\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Restraining Strike\", {\r\n\t\tname : \"Restraining Strike\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Immediately after hitting with a melee weapon attack, I can use a bonus action to grapple\",\r\n\t\t\t\"I add the superiority die to the Str (Athletics) check; I can only do this on my own turn\",\r\n\t\t\t\"The target is also restrained while grappled in this way\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \" (after melee weapon hit)\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Silver Tongue\", {\r\n\t\tname : \"Silver Tongue\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"When I make a Cha (Deception) or Cha (Persuasion) check, I can add a superiority die to it\")\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Snipe\", {\r\n\t\tname : \"Snipe\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a bonus action, I can expend a superiority die and make a ranged weapon attack\",\r\n\t\t\t\"I can draw a thrown weapon as part of making this attack; I add the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Studious Eye\", {\r\n\t\tname : \"Studious Eye\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"When I make a Wis (Insight) or Int (Investigation) check, I can add a superiority die to it\")\r\n\t});\r\n}\r\n\r\n// Monk class features enhancements\r\n// Add the monk weapon options as extrachoices\r\nRunFunctionAtEnd(function () {\r\n\tvar UACFV_Monk_Weapon = {\r\n\t\tname : \"Martial Arts Weapons\",\r\n\t\textraname : \"Monk Weapon\",\r\n\t\textrachoices : [],\r\n\t\tsource : [[\"UA:CFV\", 6]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Unarmed strike \\u0026 5 + Wis mod simple/martial weapons (not two-handed/heavy/special)\",\r\n\t\t\t\"With these monk weapons, I can use Dex instead of Str and the Martial Arts damage die\",\r\n\t\t\t\"When taking an Attack action with these, I get one unarmed strike as a bonus action\"\r\n\t\t]),\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tvar monkWeapons = [\"unarmed strike\"].concat(GetFeatureChoice(\"classes\", \"monk\", \"martial arts\", true));\r\n\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && (monkWeapons.indexOf(v.baseWeaponName) != -1 || (/monk weapon/i).test(v.WeaponTextName))) {\r\n\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tvar curDie = eval_ish(fields.Damage_Die.replace('d', '*'));\r\n\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\tvar curDie = 'x';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tif (isNaN(curDie) || curDie < aMonkDie) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '1d' + aMonkDie;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tif (fields.Mod === 1 || fields.Mod === 2 || What(AbilityScores.abbreviations[fields.Mod - 1] + \" Mod\") < What(AbilityScores.abbreviations[v.StrDex - 1] + \" Mod\")) {\r\n\t\t\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"I can use either Strength or Dexterity and my Martial Arts damage die in place of the normal damage die for any 'Monk Weapons', which include unarmed strike and 5 + my Wisdom modifier of simple or martial weapons of my choice that I'm proficient with and that don't have the two-handed, heavy, or special property.\\n   I can select these weapon using the \\\"Choose Feature\\\" button on the 2nd page, or have them count as such by including the words \\\"Monk Weapon\\\" in the name of the weapon.\",\r\n\t\t\t\t1\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\tfor (var weapon in WeaponsList) {\r\n\t\tvar aWea = WeaponsList[weapon];\r\n\t\t// skip attacks that are not simple or martial weapons, that have the heavy, two-handed, or special property, are magic weapons, or those that are spells or cantrips\r\n\t\tif (aWea.isMagicWeapon || !(/simple|martial/i).test(aWea.type) || (/heavy|special|((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?/i).test(aWea.description) || aWea.special || (/spell|cantrip/i).test(aWea.list)) continue;\r\n\t\tUACFV_Monk_Weapon.extrachoices.push(aWea.name);\r\n\t\tUACFV_Monk_Weapon[aWea.name.toLowerCase()] = {\r\n\t\t\tname : aWea.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : aWea.source,\r\n\t\t\tweaponsAdd : { select : [aWea.name] },\r\n\t\t\tsubmenu : ((/simple/i).test(aWea.type) ? \"\\x1BSimple weapon, \" : \"Martial weapon, \") + ((/^(?!.*melee).*\\d+.*$/i).test(aWea.range) ? \"ranged\" : \"melee\"),\r\n\t\t\tprereqeval : 'testSource(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"], \"weapExcl\") ? \"skip\" : isProficientWithWeapon(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"]);'\r\n\t\t}\r\n\t}\r\n\tCreateClassFeatureVariant(\"monk\", \"martial arts\", \"Choose Monk Weapons\", UACFV_Monk_Weapon);\r\n\t// Move some stuff around, because the original Martial Arts feature was moved into a choice, but we want to keep its original \"additional\", \"action\", \"eval\", \"removeeval\" attributes\r\n\tvar UACFV_Martial_Arts = ClassList.monk.features[\"martial arts\"];\r\n\tvar UACFV_Martial_Arts_Original = UACFV_Martial_Arts[\"\\x1B[original] martial arts\"];\r\n\tif (UACFV_Martial_Arts_Original) {\r\n\t\t[\"additional\", \"action\", \"eval\", \"removeeval\"].forEach(function (n) {\r\n\t\t\tif (!UACFV_Martial_Arts_Original[n]) return;\r\n\t\t\tUACFV_Martial_Arts[n] = UACFV_Martial_Arts_Original[n];\r\n\t\t\tdelete UACFV_Martial_Arts_Original[n];\r\n\t\t});\r\n\t}\r\n});\r\n// Ki enhancements\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Ki-Fueled Strike (ua)\", {\r\n\tname : \"Ki-Fueled Strike\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription: desc(\"If I spend any ki points during my action, I can make an unarmed strike as a bonus action\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Distant Eye (1 ki point) (ua)\", {\r\n\tname : \"Distant Eye\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \" [1 ki point]\\n   My ranged weapon attacks during this turn ignore the disadvantage from long range\"\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Quickened Healing (2 ki points) (ua)\", {\r\n\tname : \"Quickened Healing\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \" [2 ki points]\\n   As an action, I can regain a number of hit points equal to the roll of my martial arts die\",\r\n\taction : [[\"action\", \"\"]]\r\n}, \"Optional 2nd-level monk features\");\r\n\r\n// Paladin alternative class features and enhancements\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Martial Versatility (ua)\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a paladin level, I can swap a fighting style I know for another I'm allowed\")\r\n}, \"Optional 2nd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Paladin Spell List\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gentle repose\", \"prayer of healing\", \"warding bond\", \"life transference\", \"spirit guardians\", \"dawn\", \"flame strike\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the paladin class with the following spells (spell level in brackets): Gentle Repose (2), Prayer of Healing (2), Warding Bond (2), Life Transference (3), Spirit Guardians (3), Dawn (5), and Flame Strike (5).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features[\"subclassfeature3.0-channel divinity\"], true, \"Harness Divine Power (ua)\", {\r\n\tname : \"Channel Divinity:\\xA0Harness Divine Power\",\r\n\textraname : \"Optional Paladin 3\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription: desc(\"As a bonus action, I can use my holy symbol and a prayer to regain 1 used level 1 spell slot\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 3rd-level paladin features\");\r\n\r\n// Ranger alternative class features and enhancements\r\nvar UACFV_Deft_Explorer = {\r\n\tname : \"Deft Explorer\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : desc('Use the \"Choose Feature\" button above to add a deft explorer benefit to the third page'),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn n < 6 ? \"1 benefit\" : (n < 10 ? 2 : 3) + \" benefits\";\r\n\t}),\r\n\textraTimes : levels.map(function (n) {\r\n\t\treturn n < 6 ? 1 : n < 10 ? 2 : 3;\r\n\t}),\r\n\textraname : \"Deft Explorer Benefit\",\r\n\textrachoices : [\"Canny\", \"Roving\", \"Tireless\"],\r\n\t\"canny\" : {\r\n\t\tname : \"Canny\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription : desc([\r\n\t\t\t\"I learn two language of my choice, and proficiency and expertise with one skill of my choice\",\r\n\t\t\t\"The skill I have to choose from: Animal Handling, Athletics, History, Insight, Investigation,\",\r\n\t\t\t\"Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t\t]),\r\n\t\tlanguageProfs : [2],\r\n\t\tskillstxt : \"Proficiency and expertise with one from Animal Handling, Athletics, History, Insight, Investigation, Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t},\r\n\t\"roving\" : {\r\n\t\tname : \"Roving\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription: desc(\"I gain +5 ft walking speed and climbing and swimming speed equal to my walking speed\"),\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : \"+5\", enc : \"+5\" },\r\n\t\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t\t}\r\n\t},\r\n\t\"tireless\" : {\r\n\t\tname : \"Tireless\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Whenever I finish a short or long rest, I reduce my exhaustion level, if any, by 1\",\r\n\t\t\t\"As an action a number of times per day, I can give myself temp HP of 1d10 + Wis mod\"\r\n\t\t]),\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : \"Wisdom modifier per \",\r\n\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\trecovery : \"long rest\"\r\n\t},\r\n\tautoSelectExtrachoices : []\r\n}\r\nCreateClassFeatureVariant(\"ranger\", \"natural explorer\", \"Deft Explorer (ua)\", UACFV_Deft_Explorer);\r\nvar UACFV_Favored_Foe = {\r\n\tname : \"Favored Foe\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : desc([\r\n\t\t\"I know Hunter's Mark and it doesn't count against the number of spells I can know\",\r\n\t\t\"I can cast it a number of times without using a spell slot or requiring concentration\",\r\n\t\t\"I can also use a spell slot to cast it as normal, but then it does require concentration\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Favored Foe\",\r\n\t\tspells : [\"hunter's mark\"],\r\n\t\tselection : [\"hunter's mark\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}],\r\n\tusages : \"Wisdom modifier per \",\r\n\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\trecovery : \"long rest\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"hunter's mark\"]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"favored enemy\", \"Favored Foe (ua)\", UACFV_Favored_Foe);\r\n// Now some easier alternatives/enhancements\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nvar UACFV_Ranger_Martial_Versatility = {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a ranger level, I can swap a fighting style I know for another I'm allowed\")\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Martial Versatility (ua)\", UACFV_Ranger_Martial_Versatility, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Ranger_Expanded_Spell_List = {\r\n\tname : \"Expanded Ranger Spell List\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"searing smite\", \"aid\", \"enhance ability\", \"gust of wind\", \"magic weapon\", \"warding bond\", \"blinding smite\", \"meld into stone\", \"revivify\", \"tongues\", \"death ward\", \"dominate beast\", \"awaken\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the ranger class with the following spells (spell level in brackets): Entangle (1), Searing Smite (1), Aid (2), Enhance Ability (2), Gust of Wind (2), Magic Weapon (2), Warding Bond (2), Blinding Smite (3), Meld into Stone (3), Revivify (3), Tongues (3), Death Ward (4), Dominate Beast (4), Awaken (5), and Greater Restoration (5).\"\r\n\t\t]\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Expanded Spell List (ua)\", UACFV_Ranger_Expanded_Spell_List, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Ranger_Spell_Versatility = {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription: desc(\"When I finish a long rest, I can replace a ranger spell I know with another of the same level\")\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Spell Versatility (ua)\", UACFV_Ranger_Spell_Versatility, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Primal_Awareness = {\r\n\tname : \"Primal Awareness\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription : desc([\r\n\t\t\"I get bonus spells known, which do not count against the number of spells I can know\",\r\n\t\t\"In addition, I can cast each once per long rest without expending a spell slot\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the bonus spells from the normally selectable list\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I know the following spells, without them counting towards the maximum number of spells I can know: Detect Magic, Speak with Animals, Beast Sense, Locate Animals or Plants, Speak with Plants, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Primal Awareness\",\r\n\t\tspells : [\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tselection : [\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : levels.map(function (n) {\r\n\t\t\treturn n < 5 ? 2 : n < 9 ? 4 : n < 13 ? 5 : n < 17 ? 6 : 7;\r\n\t\t})\r\n\t}]\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"primeval awareness\", \"Primal Awareness (ua)\", UACFV_Primal_Awareness);\r\nvar UACFV_Fade_Away = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can become invisible along with any equipment I'm wearing/carrying\",\r\n\t\t\"This invisibility lasts until the start of my next turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"hide in plain sight\", \"Fade Away (ua)\", UACFV_Fade_Away);\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tAddFeatureChoice(ClassSubList[\"ranger-beast master\"].features[\"subclassfeature3\"], true, \"Beast of the Air/Earth (ua)\", {\r\n\t\tname : \"Beast of the Air/Earth\",\r\n\t\textraname : \"Optional Beast Master 3\",\r\n\t\tsource : [[\"UA:CFV\", 8]],\r\n\t\tdescription : desc([\r\n\t\t\t\"My ranger's companion can be a primal beast whose lineage stretches back to the beginning\",\r\n\t\t\t\"This beast of the air or earth takes the form of a regular animal, but has different abilities\",\r\n\t\t\t\"Its hit points total is equal to its Con mod + my Wis mod + 5 times my ranger level\",\r\n\t\t\t\"As a bonus action, I can command it to make one attack or take the Hide action\",\r\n\t\t\t\"If it dies, I can revive it within 1 hour as an action where I expend a spell slot and touch it\",\r\n\t\t\t\"It then returns to life with all its hit points after 1 minute\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"Command Beast of the Air/Earth\"], [\"action\", \"Revive Beast of the Air/Earth\"]],\r\n\t\tcreaturesAdd : [[\"Beast of the Air\", true], [\"Beast of the Earth\", true]],\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Beast of the Air\",\r\n\t\t\tsource : [[\"UA:CFV\", 8]],\r\n\t\t\tsize : 4,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Neutral\",\r\n\t\t\tac : 13,\r\n\t\t\thp : 6,\r\n\t\t\thd : [1, 6],\r\n\t\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\t\tspeed : \"10 ft, fly 60 ft\",\r\n\t\t\tscores : [6, 16, 13, 8, 14, 11],\r\n\t\t\tsaves : [\"\", 5, 3, \"\", 4, \"\"],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\"stealth\" : 5\r\n\t\t\t},\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 14,\r\n\t\t\tlanguages : \"understands the languages of its master (me)\",\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Shred\",\r\n\t\t\t\tability : 2,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\"\r\n\t\t\t}],\r\n\t\t\tfeatures : [{\r\n\t\t\t\tname : \"Ready Companion\",\r\n\t\t\t\tdescription : \"As a bonus action, I can command the beast to make its shred attack or to Hide.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Primal Rebirth\",\r\n\t\t\t\tdescription : \"If the beast has died within the last hour, I can use my action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Flyby\",\r\n\t\t\t\tdescription : \"The beast doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\t\tvar rngrLvl5 = 5 * rngrLvl;\r\n\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + rngrLvl5);\r\n\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its master's Wisdom modifier\\n + 5 \\xD7 \" + rngrLvl + \" from five times its master's ranger level (\" + rngrLvl5 + \")\");\r\n\t\t\t\t},\r\n\t\t\t\tsetAltHp : true,\r\n\t\t\t\thpForceRecalc : true\r\n\t\t\t},\r\n\t\t\tcompanionApply : \"companion\"\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Earth\",\r\n\t\t\tsource : [[\"UA:CFV\", 9]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Neutral\",\r\n\t\t\tac : 12,\r\n\t\t\thp : 7,\r\n\t\t\thd : [1, 8],\r\n\t\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\t\tspeed : \"40 ft, climb or swim 40 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsaves : [\"\", 4, 4, \"\", 4, \"\"],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\"stealth\" : 4\r\n\t\t\t},\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 14,\r\n\t\t\tlanguages : \"understands the languages of its master (me)\",\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Maul\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t\t\t}],\r\n\t\t\tfeatures : [{\r\n\t\t\t\tname : \"Movement Mode\",\r\n\t\t\t\tdescription : \"When I bond with the beast, I choose wether it has a climb speed or a swim speed.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Ready Companion\",\r\n\t\t\t\tdescription : \"As a bonus action, I can command the beast to make its shred attack or to Hide.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Primal Rebirth\",\r\n\t\t\t\tdescription : \"If the beast has died within the last hour, I can use my action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tdescription : \"If the beast moves at least 20 ft straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against my spell save DC or be knocked prone.\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\t\tvar rngrLvl5 = 5 * rngrLvl;\r\n\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + rngrLvl5);\r\n\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its master's Wisdom modifier\\n + 5 \\xD7 \" + rngrLvl + \" from five times its master's ranger level (\" + rngrLvl5 + \")\");\r\n\t\t\t\t},\r\n\t\t\t\tsetAltHp : true,\r\n\t\t\t\thpForceRecalc : true\r\n\t\t\t},\r\n\t\t\tcompanionApply : \"companion\"\r\n\t\t}]\r\n\t}, \"Optional 3rd-level beast master features\");\r\n}\r\n\r\n// Add the Ranger alternative class features also to the Revised Ranger, if it exists\r\nif (ClassList[\"rangerua\"]) {\r\n\tCreateClassFeatureVariant(\"rangerua\", \"natural explorer\", \"Deft Explorer (ua)\", UACFV_Deft_Explorer);\r\n\r\n\t// Add Favored Foe as an alternative choice (can't be done by automation because of choices) and add \"Favored Foe\" variant option\r\n\t// Move some attributes from the main object to the favored enemy choice objects\r\n\t['additional', 'languageProfs', 'calcChanges'].forEach( function(attr) {\r\n\t\tvar fea = ClassList.rangerua.features[\"favored enemy\"];\r\n\t\tif (!fea[attr]) return;\r\n\t\t// Move the attribute to each of the choices\r\n\t\tfor (var i = 0; i < fea.choices.length; i++) {\r\n\t\t\tvar aCh = fea[fea.choices[i].toLowerCase()];\r\n\t\t\tif (aCh.source) continue; // don't do options that are not part of the original entry (which don't have a source)\r\n\t\t\taCh[attr] = fea[attr];\r\n\t\t}\r\n\t\t// Now delete the attributes from the parent object\r\n\t\tdelete fea[attr];\r\n\t});\r\n\t// Now add the alternative class feature as another choice\r\n\tAddFeatureChoice(ClassList.rangerua.features[\"favored enemy\"], false, \"[alternative feature] Favored Foe (ua)\", UACFV_Favored_Foe);\r\n\r\n\t// The enhancement option for fighting styles has to be added to each class separately\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Martial Versatility (ua)\", UACFV_Ranger_Martial_Versatility, \"Optional 2nd-level ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Expanded Spell List (ua)\", UACFV_Ranger_Expanded_Spell_List, \"Optional 2nd-level ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Spell Versatility (ua)\", UACFV_Ranger_Spell_Versatility, \"Optional 2nd-level ranger features\");\r\n\t\tCreateClassFeatureVariant(\"rangerua\", \"primeval awareness\", \"Primal Awareness (ua)\", UACFV_Primal_Awareness);\r\n\tCreateClassFeatureVariant(\"rangerua\", \"hide in plain sight\", \"Fade Away (ua)\", UACFV_Fade_Away);\r\n}\r\n\r\n// Rogue alternative class feature enhancement\r\nAddFeatureChoice(ClassList.rogue.features[\"cunning action\"], true, \"Cunning Action: Aim (ua)\", {\r\n\tname : \"Cunning Action: Aim\",\r\n\textraname : \"Optional Rogue 2\",\r\n\tsource : [[\"UA:CFV\", 9]],\r\n\tdescription : desc([\r\n\t\t\"I can also use my cunning action bonus action to carefully aim my next attack\",\r\n\t\t\"If I don't move in my turn, I give myself adv. on my next attack in the current turn\",\r\n\t\t\"After I use cunning action to aim, my speed is 0 until the end of the current turn\"\r\n\t])\r\n}, \"Optional 2nd-level rogue features\");\r\n\r\n// Sorcerer alternative class features and enhancements\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Sorcerer Spell List\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"UA:CFV\", 9]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"primal savagery\", \"grease\", \"protection from evil and good\", \"flame blade\", \"flaming sphere\", \"vampiric touch\", \"fire shield\", \"flesh to stone\", \"demiplane\", \"foresight\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the sorcerer class with the following spells (spell level in brackets): Primal Savagery (cantrip), Grease (1), Protection from Evil and Good (1), Flame Blade (2), Flaming Sphere (2), Vampiric Touch (3), Fire Shield (4), Flesh to Stone (6), Demiplane (8), and Foresight (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription: desc(\"After a long rest, I can swap a sorcerer cantrip/spell I know for another of the same level\")\r\n}, \"Optional sorcerer features\");\r\n// Font of Magic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Empowering Reserves\", {\r\n\tname : \"Empowering Reserves\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [2 sorcery points]\\n   When I make an ability check on my turn, I can gain advantage on the check\"\r\n}, \"Optional 2nd-level sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Imbuing Touch\", {\r\n\tname : \"Imbuing Touch\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [2 sorcery points]\\n   As an action, I can touch a nonmagical weapon and make it count as magical for 1 minute\",\r\n\taction : [[\"action\", \" (2 sorcery points)\"]]\r\n}, \"Optional 2nd-level sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Sorcerous Fortitude (ua)\", {\r\n\tname : \"Sorcerous Fortitude\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [1+ sorcery points]\\n   As an action, I can gain 1d4 temporary hit points per sorcery point I spend\",\r\n\taction : [[\"action\", \" (1+ sorcery points)\"]]\r\n}, \"Optional 2nd-level sorcerer features\");\r\n// Metamagic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Elemental Spell (ua)\", {\r\n\tname : \"Elemental Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"If the spell deals one of the below damage types, I can change it to another on the list\",\r\n\t\t\"These damage types are: acid, cold, fire, lightning, or thunder\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Seeking Spell (ua)\", {\r\n\tname : \"Seeking\\xA0Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"I can ignore half- and three-quarters cover for the one spell I'm casting\",\r\n\t\t\"This applies both to my spell attack rolls as to the Dexterity saving throws of the targets\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Unerring Spell (ua)\", {\r\n\tname : \"Unerring Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"2 sorcery points\",\r\n\tdescription : desc([\r\n\t\t\"If I make an attack roll for a spell and miss, I can use this to reroll the attack once\",\r\n\t\t\"I can use unerring spell even if I already used another metamagic option for the spell\"\r\n\t])\r\n});\r\n\r\n// Warlock alternative class features and enhancements\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription: desc(\"After a long rest, I can swap a warlock cantrip or spell I know for another of the same level\")\r\n}, \"Optional 1st-level warlock features\");\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Warlock Spell List\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"thunderwave\", \"knock\", \"animate dead\", \"life transference\", \"greater invisibility\", \"phantasmal killer\", \"mislead\", \"modify memory\", \"planar binding\", \"teleportation circle\", \"create homunculus\", \"magic jar\", \"project image\", \"abi-dalzim's horrid wilting\", \"gate\", \"shapechange\", \"weird\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the warlock class with the following spells (spell level in brackets): Thunderwave (1), Knock (2), Animate Dead (3), Life Transference (3), Greater Invisibility (4), Phantasmal Killer (4), Mislead (5), Modify Memory (5), Planar Binding (5), Teleportation Circle (5), Create Homunculus (6), Magic Jar (6), Project Image (7), Abi-Dalzim's Horrid Wilting (8), Gate (9), Shapechange (9), and Weird (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\n// New Eldritch Invocations\r\nAddWarlockInvocation(\"Bond of the Talisman (prereq: level 12 warlock, Pact of the Talisman) (ua)\", {\r\n\tname : \"Bond of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can teleport to the unoccupied space closest to the wearer of my talisman\",\r\n\t\t\"The talisman's wearer can do the same to teleport to me; Only works if both on same plane\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 12 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Chain Master's Fury (prereq: level 9 warlock, Pact of the Chain)\", {\r\n\tname : \"Chain Master's Fury\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription: desc(\"As a bonus action, I can command my familiar to make one attack\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Armor (prereq: Pact of the Blade)\", {\r\n\tname : \"Eldritch Armor\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can touch an unattended suit of armor and instantly don it\",\r\n\t\t\"I am proficient with this suit of armor until it is removed\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade';\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Mind (prereq: Pact of the Tome)\", {\r\n\tname : \"Eldritch Mind\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription: desc(\"I have advantage on my Constitution saving throws to maintain concentration on a spell\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves\" }\r\n});\r\nAddWarlockInvocation(\"Far Scribe (prereq: level 5 warlock, Pact of the Tome) (ua)\", {\r\n\tname : \"Far\\xA0Scribe\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Cha mod (min 1) in creature names; I can remove one as an action\",\r\n\t\t\"I can cast Sending without a spell slot or material components, targeting one on the page\",\r\n\t\t\"Instead of saying the message, I write it on the page and any reply appears there as well\",\r\n\t\t\"This writing disappears after 1 minute; The target still hears the message in their mind\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Far Scribe\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Send 25 word message to crea named in book of shadows; it recognizes me and can respond 25 words\",\r\n\t\t\tchanges : \"By using Far Scribe, I can cast Sending without using a spell slot or material components, but only to target one of the creatures that wrote their name in my book of shadows. Instead of speaking the message, I write it in my book and any response appears there as well, lasting for 1 minute. The target still hears the message in their mind.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gift of the Protectors (prereq: level 9 warlock, Pact of the Tome) (ua)\", {\r\n\tname : \"Gift of the\\xA0Protectors\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Cha mod (min 1) in creature names; I can remove one as an action\",\r\n\t\t\"If a creature whose name is on the page drops to 0 HP, it magically drops to 1 HP instead\",\r\n\t\t\"This doesn't work if the creature would be killed outright\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Investment of the Chain Master (prereq: Pact of the Chain) (ua)\", {\r\n\tname : \"Investment of the Chain\\xA0Master\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription : desc([\r\n\t\t\"When I cast Find Familiar, the summoned create has additional benefits:\",\r\n\t\t\"\\u2022 It gains a flying or swimming speed of 40 ft (my choice at casting)\",\r\n\t\t\"\\u2022 It no longer needs to breathe\",\r\n\t\t\"\\u2022 Its weapon attacks are considered magical for overcoming immunities and resistances\",\r\n\t\t\"\\u2022 If it forces a creature to make a saving throw, it uses my spell save DC\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\tcalcChanges : {\r\n\t\tcompanionCallback : [function(prefix, oCrea, bAdd, sCompType) {\r\n\t\t\tif (sCompType !== \"pact_of_the_chain\") return;\r\n\t\t\tvar strFea = \"##\\u25C6 Investment of the Chain Master (UA:CFV 11)##.: The familiar gains 40 ft fly or swim speed (my choice), doesn't need to breathe, its attacks are considered magical, and it can use my spell save DC instead of its own DC's (if any).\";\r\n\t\t\tvar strSpd = \"fly or swim 40 ft\";\r\n\t\t\tif (What(\"Unit System\") === \"metric\") {\r\n\t\t\t\tstrFea = ConvertToMetric(strFea, 0.5);\r\n\t\t\t\tstrSpd = ConvertToMetric(strSpd, 0.5);\r\n\t\t\t}\r\n\t\t\tvar aFnc = bAdd ? AddString : RemoveString;\r\n\t\t\taFnc(prefix + \"Comp.Use.Features\", strFea, true);\r\n\t\t\taFnc(prefix + \"Comp.Use.Speed\", strSpd, typePF ? \",\\n\" : \", \");\r\n\t\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\t\tvar baseFld = prefix + \"Comp.Use.Attack.\" + i;\r\n\t\t\t\tvar weaDescrFld = baseFld + \".Description\";\r\n\t\t\t\tvar strWeaDescr = What(weaDescrFld);\r\n\t\t\t\tif (bAdd && What(baseFld + \".Weapon Selection\") && !(/(,|;)? ?counts as magical/i).test(strWeaDescr)) {\r\n\t\t\t\t\tAddString(weaDescrFld, \"Counts as magical\", \"; \");\r\n\t\t\t\t} else if (!bAdd) {\r\n\t\t\t\t\tValue(weaDescrFld, strWeaDescr.replace(/(,|;)? ?counts as magical/i, ''));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"My pact of the chain familiars gain an extra feature listing the extra bonuses they gain.\"]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Protection of the Talisman (prereq: level 9 warlock, Pact of the Talisman) (ua)\", {\r\n\tname : \"Protection of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription: desc(\"The wearer of my talisman adds 1d4 to saving throw rolls in which they lack proficiency\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\tsavetxt : { text : [\"+1d4 to nonproficient saves\"] }\r\n});\r\nAddWarlockInvocation(\"Rebuke of the Talisman (prereq: Pact of the Talisman) (ua)\", {\r\n\tname : \"Rebuke of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when the wearer of my talisman is hit, I deal damage and push the attacker\",\r\n\t\t\"To be able to do this, I have to see the attacker and it has to be within 30 ft of me\",\r\n\t\t\"I deal it my Cha mod in psychic damage (min 1) and push it 10 ft away from the talisman\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\n// Pact Boon option\r\nAddWarlockPactBoon(\"Pact of the Talisman (ua)\", {\r\n\tname : \"Pact of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"The wearer of this amulet adds 1d4 to checks with skills in which they lack proficiency\",\r\n\t\t\"I can give the talisman to others to use; The talisman turns to ash when I die\",\r\n\t\t\"If I lose my talisman, I can perform a 1-hour ceremony to gain a replacement\",\r\n\t\t\"This ceremony destroys the previous amulet and can be done during a short or long rest\"\r\n\t])\r\n});\r\n\r\n// Wizard alternative class features and enhancements\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a wizard level, I can replace a wizard cantrip I know with another\")\r\n}, \"Optional 1st-level wizard features\");\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Wizard Spell List\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"augury\", \"enhance ability\", \"speak with dead\", \"divination\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the wizard class with the following spells (spell level in brackets): Augury (2), Enhance Ability (2), Speak with Dead (3), and Divination (4).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\n\n// ua_20191125_Fighter-Rogue-and-Wizard.js\r\n// This file adds the content from the Unearthed Arcana: Fighter, Rogue, and Wizard (psionics) article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FRnW\"] = {\r\n\tname : \"Unearthed Arcana: Fighter, Rogue, and Wizard\",\r\n\tabbreviation : \"UA:FRnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-PsychicSoulPsionics.pdf\",\r\n\tdate : \"2019/11/25\"\r\n};\r\n\r\n// Add a subclass for the Fighter\r\nAddSubClass(\"fighter\", \"psychic warrior-ua\", {\r\n\tregExpSearch : /^(?=.*psychic)(?=.*warrior).*$/i,\r\n\tsubname : \"Psychic Warrior\",\r\n\tsource : [[\"UA:FRnW\", 1]],\r\n\tfullname : \"Psychic Warrior\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Armament\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar a = desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can choose to augment my defenses or strikes until the next\",\r\n\t\t\t\t\t\" \\u2022 As a reaction, augmented defenses allow me to reduce the damage taken by 1d10\",\r\n\t\t\t\t\t\"   I can reduce the damage taken by myself or by a creature that I can see within 30 ft\",\r\n\t\t\t\t\t\" \\u2022 Once per turn, augmented strikes adds +1d4 psychic damage to my weapon attack\"\r\n\t\t\t\t]);\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 10 ? a : a.replace('1d10', '1d12').replace('1d4', '1d6');\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 10 ? \"1d10 defense; 1d4 offense\" : \"1d12 defense; 1d6 offense\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"Augmented Defenses\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Telekinetic Hand\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I learn the Mage Hand cantrip, can cast it without components, and can make it invisible\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Telekinetic Hand\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiples\",\r\n\t\t\t\t\tchanges : \"My Telekinetic Hand class feature allows me to cast Mage Hand without components and I can make the spectral hand invisible.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Strength of Mind\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 20 ft make a Strength save\",\r\n\t\t\t\t\"It takes 2d6 + Int mod psychic damage \\u0026 moves 15 ft away or towards me (my choice)\",\r\n\t\t\t\t\"If its save succeeds, it takes half damage and isn't moved; DC 8 + Prof Bonus + Int mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Telekinetic Bulwark\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action, I can forgo one of the attacks to project psionic power\",\r\n\t\t\t\t\"Myself and my allies within 10 ft of me gain half cover and adv. on Strength saves\",\r\n\t\t\t\t\"This 10-ft radius bastion around me lasts for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"I regain the usage of this feature after I use my second wind feature\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tlimfeaname : \"Telekinetic Bulwark [Second Wind regains]\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Agonizing Strikes\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I hit a creature with a weapon attack, I can deal an extra +2d10 psychic damage\",\r\n\t\t\t\t\"The target also has to make a Constitution save (DC 8 + my Prof Bonus + my Int mod)\",\r\n\t\t\t\t\"If it fails, it falls prone and has disadv. on its next ability check until my next turn starts\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Psychic Dreadnaught\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can give myself the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 At the start of each of my turns, I regain 10 hit points\",\r\n\t\t\t\t\" \\u2022 My walking speed increases by +10 ft\",\r\n\t\t\t\t\" \\u2022 If I'm prone, I can stand up by spending 5 ft of movement\",\r\n\t\t\t\t\"These benefits also end when I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Rogue\r\nAddSubClass(\"rogue\", \"soulknife-ua\", {\r\n\tregExpSearch : /soulknife/i,\r\n\tsubname : \"Soulknife\",\r\n\tsource : [[\"UA:FRnW\", 2]],\r\n\tfullname : \"Soulknife\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psychic Blade\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can create a magical blade from one or both of my hands\",\r\n\t\t\t\t\"Disappear if I'm incapacitated, leave my hand (not thrown), or I dismiss it (no action)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*soulknife)(?=.*psychic)(?=.*blade).*$/i,\r\n\t\t\t\tname : \"Soulknife's Psychic Blade\",\r\n\t\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Simple\",\r\n\t\t\t\tdamage : [1, 6, \"psychic\"],\r\n\t\t\t\trange : \"Melee, 30/60 ft\",\r\n\t\t\t\tdescription : \"Finesse, light, thrown\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisSoulknifePsychicBlade : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psionic Enhancement\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can choose one of these benefits until my next long rest:\",\r\n\t\t\t\t\" \\u2022 Talk telepathically with those I can see in 30 ft; Can respond if they know a language\",\r\n\t\t\t\t\" \\u2022 Increase my walking speed by 5 ft\",\r\n\t\t\t\t\" \\u2022 Increase my maximum and current HP with my Intelligence modifier plus rogue level\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Terrifying Blade\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I damage a creature with my psychic blade, it must make a Wisdom saving throw\",\r\n\t\t\t\t\"If it fails, it is frightened of me until my the start of my next turn\",\r\n\t\t\t\t\"If it succeeds, it is immune to this for 24 hours; DC 8 + my Prof Bonus + my Int mod\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isSoulknifePsychicBlade) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Wis save or frightened for 1 round';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Psychic Veil\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become invisible along with everything I'm wearing or carrying\",\r\n\t\t\t\t\"This ends after 10 minutes, if I make an attack, or if I force a creature to make a save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Rend Mind\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can deal 12d6 psychic damage to a creature I can see within 30 ft\",\r\n\t\t\t\t\"It also makes an Int save or is stunned until my next turn starts; Half damage on success\",\r\n\t\t\t\t\"It has disadv. on the save if I'm hidden from it; DC 10 + my Prof Bonus + my Int mod\",\r\n\t\t\t\t\"I must have a psychic blade manifested to do so and one vanishes when I use this feature\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Wizard\r\nAddSubClass(\"wizard\", \"psionics-ua\", {\r\n\tregExpSearch : /^((?=.*(wizard|mage|magus))(?=.*psionics)|(?=.*(psionicist|mentalist)))(?!.*(wild mage|\\bpsion\\b|mystic)).*$/i,\r\n\tsubname : \"Psionics\",\r\n\tsource : [[\"UA:FRnW\", 3]],\r\n\tfullname : \"Psionicist\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Psionic Focus\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn to channel psionic energy through an object special to me, my psionic focus\",\r\n\t\t\t\t\"It allows me to reroll a roll of 1 on any psychic or force damage die for my wizard spells\",\r\n\t\t\t\t\"I can use this as my spellcasting focus; If lost, I can recreate it by meditating for 1 hour\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Psionic Devotion\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'I learn one cantrip: Friends, Mage Hand, or Message; Use \"Choose Feature\" button above',\r\n\t\t\t\t\"While my psionic focus is on me, I can cast it as a bonus action without components\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Friends\", \"Mage Hand\", \"Message\"],\r\n\t\t\t\"friends\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Friends\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn the Friends cantrip and while my psionic focus in on me, I am better at casting it\",\r\n\t\t\t\t\t\"I can cast it as a bonus action without components and the target doesn't become hostile\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"friends\"],\r\n\t\t\t\t\tselection : [\"friends\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"friends\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"Adv. on Cha checks vs. 1 crea currently not hostile; when spell ends, crea realizes I used magic\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Friends as a bonus action without requiring any components and when the spell ends, the target doesn't become hostile to me.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"mage hand\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Mage Hand\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn Mage Hand and while my psionic focus in on me, I am better at casting it\",\r\n\t\t\t\t\t\"I can then cast it as a bonus action without components and can make the hand invisible\",\r\n\t\t\t\t\t\"Also, I can control the hand as a bonus action instead of an action\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tdescription : \"Create invisible hand for simple tasks or carry up to 10 lb; 1 bns action to control; can't have multiples\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Mage Hand as a bonus action without requiring any components, can make the hand invisible, and controlling the hand is a bonus action for me.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"message\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Message\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn the Message cantrip and while my psionic focus in on me, I'm better at casting it\",\r\n\t\t\t\t\t\"I can then cast it as a bonus action without components\",\r\n\t\t\t\t\t\"Also, I don't need to point at the target or whisper the message out loud\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"message\"],\r\n\t\t\t\t\tselection : [\"message\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"message\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"1 crea hears message I think; can reply with a whisper; nobody can overhear; needs no straight line\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Message as a bonus action without requiring any components, don't need to point toward the target, and I don't need to whisper my message out loud.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Thought Form\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can use my psionic focus to transform my body into luminous energy\",\r\n\t\t\t\t\"I chose the shape (my size); It sheds 5-ft radius dim light; My equipment melds into it\",\r\n\t\t\t\t\"My psionic focus hovers within the energy; In this form, I have the following benefits:\",\r\n\t\t\t\t\" \\u2022 Spells I cast require no verbal, somatic, or material components without a gold cost\",\r\n\t\t\t\t\" \\u2022 I have resistance to psychic and nonmagical bludgeoning/piercing/slashing damage\",\r\n\t\t\t\t\"This lasts for 10 minutes or until I'm incapacitated, die, or use a bonus action to end it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Mental Discipline\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'I learn one spell: Dominate Person, Scrying, or Telekinesis; Use \"Choose Feature\" button',\r\n\t\t\t\t\"I can cast the spell without a spell slot once per long rest (and normally with a spell slot)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tchoices : [\"Dominate Person\", \"Scrying\", \"Telekinesis\"],\r\n\t\t\t\"dominate person\" : {\r\n\t\t\t\tname : \"Mental Discipline: Dominate Person\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Dominate Person to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Dominate Person (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"dominate person\"],\r\n\t\t\t\t\tselection : [\"dominate person\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"dominate person\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Dominate Person without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"scrying\" : {\r\n\t\t\t\tname : \"Mental Discipline: Scrying\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Scrying to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Scrying (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"scrying\"],\r\n\t\t\t\t\tselection : [\"scrying\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"scrying\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Scrying without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"telekinesis\" : {\r\n\t\t\t\tname : \"Mental Discipline: Telekinesis\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Telekinesis to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Telekinesis (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"telekinesis\"],\r\n\t\t\t\t\tselection : [\"telekinesis\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"telekinesis\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Telekinesis without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10.1\" : {\r\n\t\t\tname : \"Empowered Psionics\",\r\n\t\t\tsource : [[\"UA:FRnW\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I add my Int modifier to one target of my wizard spells that do psychic or force damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spName.indexOf(\"wizard\") != -1) {\r\n\t\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"force|psychic\", \"Int\", true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I deal psychic or force damage with a wizard spell, I can add my Intelligence modifier to the damage against one of the spell's targets.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Thought Travel\",\r\n\t\t\tsource : [[\"UA:FRnW\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in my thought form, I gain a fly speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\"I can then also move through creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 1d10 force damage if I end my turn inside an object\",\r\n\t\t\t\t\"If I end my thought form while inside an object, I'm shunted to the nearest empty space\",\r\n\t\t\t\t\"I then take 1d10 force damage for every 5 ft traveled\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// The new spells\r\nSpellsList[\"ego whip-ua\"] = {\r\n\tname : \"Ego Whip\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or can't cast spells and disadv. on atks, checks, and saves; save end of each turn to end\",\r\n\tdescriptionFull : \"You lash the mind of one creature you can see within range, filling it with despair. The target must succeed on an Intelligence saving throw or suffer disadvantage on attack rolls, ability checks, and saving throws, and it can't cast spells. At the end of each of its turns, the target can make another Intelligence saving throw. On a success, the spell ends on the target.\"\r\n};\r\nSpellsList[\"id insinuation-ua\"] = {\r\n\tname : \"Id Insinuation\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or incapacitated and end of each turn 1d12 Psychic damage, after which it can save to end\",\r\n\tdescriptionShorter : \"1 crea save or incapacitated \\u0026 end of each turn 1d12 Psychic damage, can save to end after\",\r\n\tdescriptionFull : \"You unleash a torrent of conflicting desires in the mind of one creature you can see within range, impairing its ability to make decisions. The target must succeed on a Wisdom saving throw or be incapacitated. At the end of each of its turns, it takes 1d12 psychic damage, and it can then make another Wisdom saving throw. On a success, the spell ends on the target.\"\r\n};\r\nSpellsList[\"intellect fortress-ua_frnw\"] = { // completely different than later iterations in UA:POR and TCoE\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I have advantage on all saves and I can use my reaction to have a creature in 30 ft reroll a failed save\",\r\n\tdescriptionFull : \"You create a faintly shimmering barrier of protective psychic power around you. For the duration, you have advantage on all saving throws.\\n   When another creature that you can see within 30 feet of you fails a saving throw, you can use your reaction to allow them to reroll the save. They must use the new roll.\"\r\n};\r\nSpellsList[\"mental barrier-ua\"] = {\r\n\tname : \"Mental Barrier\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are forced to make an Intelligence, a Wisdom, or a Charisma saving throw\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"I have Psychic damage resistance and adv. on Int, Wis, and Cha saves until the start of my next turn\",\r\n\tdescriptionFull : \"You protect your mind with a wall of looping, repetitive thought. Until the start of your next turn, you have advantage on Intelligence, Wisdom, and Charisma saving throws, and you have resistance to psychic damage.\"\r\n};\r\nSpellsList[\"mind thrust-ua\"] = { // rather different than later iterations in UA:POR and TCoE\r\n\tname : \"Mind Thrust\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1+1/SL crea, all max 30 ft apart, 3d6 Psychic dmg, only Dash/Diseng. next turn; save half, any action\",\r\n\tdescriptionFull : \"You propel a lance of psionic disruption into the mind of one creature you can see within range. The target must make an Intelligence saving throw. On a failed save, the target takes 3d6 psychic damage, and it can use its action only to Dash or Disengage on its next turn. On a successful save, the target takes half as much damage, and this spell doesn't limit its action options.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"psionic blast-ua\"] = {\r\n\tname : \"Psionic Blast\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft cone\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea 5d8+1d8/SL Force dmg, 20 ft pushed away, knocked prone; save half, not pushed or prone\",\r\n\tdescriptionShorter : \"All 5d8+1d8/SL Force dmg, 20 ft pushed away, knocked prone; save half, not pushed or prone\",\r\n\tdescriptionFull : \"You unleash a destructive wave of mental power in a 30-foot cone. Each creature in the area must make a Dexterity saving throw. On a failed save, a target takes 5d8 force damage, is pushed 20 feet directly away from you, and is knocked prone. On a successful save, a target takes half as much damage and isn't pushed or knocked prone.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"psychic crush-ua\"] = {\r\n\tname : \"Psychic Crush\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 6,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 12d6 Psychic damage and stunned for 1 min; save half, not stunned; save at turn end to stop\",\r\n\tdescriptionFull : \"You overload the mind of one creature you can see within range, filling its psyche with discordant emotions. The target must make an Intelligence saving throw. On a failed save, the target takes 12d6 psychic damage and is stunned for 1 minute. On a successful save, the target takes half as much damage and isn't stunned.\\n   The stunned target can make an Intelligence saving throw at the end of each of its turns. On a successful save, the spell ends on the target.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"thought shield-ua\"] = {\r\n\tname : \"Thought Shield\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"1 crea's mind can't be read/detected, telepathy only if wanted, adv. on saves vs. lie detecting effects\",\r\n\tdescriptionFull : \"You weave a clouding veil over the mind of one creature you touch. For the duration, the target's mind can't be read or detected, creatures can't telepathically communicate with the target unless the target allows it, and the target has advantage on saving throws against any effect that would determine whether it is telling the truth.\"\r\n};\r\n\r\n// Add the two psionic-themed feats\r\nFeatsList[\"telekinetic-ua\"] = {\r\n\tname : \"Telekinetic\",\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tdescriptionFull : \"You learn to move things with your mind. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn the mage hand cantrip. You can cast it without verbal or somatic components, and you can make the spectral hand invisible.\\n \\u2022 As a bonus action, you can try to shove one creature you can see within 5 feet of the spectral hand created by your mage hand spell. When you do so, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + your Intelligence modifier) or be pushed 5 feet away from you.\",\r\n\tdescription : \"I learn the Mage Hand cantrip, can cast it without components, and can make it invisible. As a bonus action, I can use it to try and shove a creature I can see within 5 ft of it. The target must make a Str save (Int based) or be shoved 5 ft away from me. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Telekinetic\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tsave : \"Str\",\r\n\t\t\tdescription : \"Invisible hand, simple tasks, carries 10 lb; 1 a to control; not multiple; 1 bns 1 crea save or shove 5 ft\",\r\n\t\t\tchanges : \"My Telekinetic feat allows me to cast Mage Hand without verbal or somatic components and I can make the spectral hand invisible.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"telepathic-ua\"] = {\r\n\tname : \"Telepathic\",\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tdescriptionFull : \"You awaken the ability to mentally connect with others. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in one skill of your choice from the following list: Deception, Insight, Intimidation, or Persuasion.\\n \\u2022 You can communicate telepathically with any creature you can see within 30 feet of you. If it understands at least one language, it can respond to you telepathically.\",\r\n\tdescription : \"I gain proficiency with one skill chosen from Deception, Insight, Intimidation, or Persuasion. I can communicate telepathically with any creature I can see within 30 feet of me. If it understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tchoices : [\"Deception\", \"Insight\", \"Intimidation\", \"Persuasion\"],\r\n\t\"deception\" : {\r\n\t\tdescription : \"I gain proficiency with Deception. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Deception\"]\r\n\t},\r\n\t\"insight\" : {\r\n\t\tdescription : \"I gain proficiency with Insight. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Insight\"]\r\n\t},\r\n\t\"intimidation\" : {\r\n\t\tdescription : \"I gain proficiency with Intimidation. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Intimidation\"]\r\n\t},\r\n\t\"persuasion\" : {\r\n\t\tdescription : \"I gain proficiency with Persuasion. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Persuasion\"]\r\n\t}\r\n};\r\n\n// ua_20200114_Subclasses-Part-1.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 1 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP1\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 1\",\r\n\tabbreviation : \"UA:SP1\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020-Subclasses01.pdf\",\r\n\tdate : \"2020/01/14\"\r\n};\r\n\r\n// Add a subclasses for the Barbarian, Monk, Paladin, and Warlock\r\nAddSubClass(\"barbarian\", \"path of the beast-ua\", {\r\n\tregExpSearch : /^(?=.*\\bbeast\\b)(?=.*(warrior|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Beast\",\r\n\tsubnameShort: \"Beast\",\r\n\tsource : [[\"UA:SP1\", 1]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Form of the Beast\",\r\n\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my rage, I can transform to gain a bite, tail, or claws attack for that rage\",\r\n\t\t\t\t\"The bite attack allows me to regain my Con mod in HP on a hit once on my turn\",\r\n\t\t\t\t\"The claws attack allows me to make one extra attack when I use it in my Attack action\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*bite).*$/i,\r\n\t\t\t\tname : \"Bestial Bite\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; On a hit once on my turn, regain Con mod in HP\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*claws?).*$/i,\r\n\t\t\t\tname : \"Bestial Claws\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; Extra attack if used as part of Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*tail).*$/i,\r\n\t\t\t\tname : \"Bestial Tail\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 12, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Reach; Only in rage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"chosen weapon counts as magical\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bestial Soul\",\r\n\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can choose one of the following benefits until my next rest:\",\r\n\t\t\t\t\" \\u2022 Swimming speed equal to my walking speed and I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 Climb speed (same as walking) and no check to climb difficult surfaces or upside down\",\r\n\t\t\t\t\" \\u2022 Once per turn when I jump, I can extend it by the result of an Athletics check in feet\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.bestialNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The natural melee weapon that I gain from Form of the Beast count as magical for the purpose of overcoming resistance and immunity to nonmagical attacks and damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Infectious Fury\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In rage, when I hit a creature with my natural weapon, I can have it make a Wis save\",\r\n\t\t\t\t\"If it fails (DC 8 + my Prof Bonus + my Con mod) it suffers one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 It uses its reaction to make a melee attack against one creature I can see of my choice\",\r\n\t\t\t\t\" \\u2022 It takes 2d12 psychic damage\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Call the Hunt\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter rage, I can choose my Con mod of willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"The targets gain the Reckless Attack feature and I have adv. on saves vs. being frightened\",\r\n\t\t\t\t\"I also gain 5 temporary hit points per creature that accepts this benefit\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of mercy-ua\", {\r\n\tregExpSearch : /^(?=.*mercy)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Mercy\",\r\n\tsubnameShort: \"Mercy\",\r\n\tsource : [[\"UA:SP1\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Implements of Mercy\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the herbalism and poisoner's kit, and either Insight or Medicine\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the skill proficiency, Insight or Medicine'\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Herbalism kit\", \"Poisoner's kit\"],\r\n\t\t\tchoices : [\"proficiency with Insight\", \"proficiency with Medicine\"],\r\n\t\t\t\"proficiency with insight\" : {\r\n\t\t\t\tname : \"Implements of Mercy - Insight\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription: desc(\"I gain proficiency in the Insight skill and with the herbalism kit and the poisoner's kit\"),\r\n\t\t\t\tskills : [\"Insight\"]\r\n\t\t\t},\r\n\t\t\t\"proficiency with medicine\" : {\r\n\t\t\t\tname : \"Implements of Mercy - Medicine\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription: desc(\"I gain proficiency in the Medicine skill and with the herbalism kit and the poisoner's kit\"),\r\n\t\t\t\tskills : [\"Medicine\"]\r\n\t\t\t},\r\n\t\t\t\"hands of healing\" : {\r\n\t\t\t\tname : \"Hands of Healing\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"As an action, I can spend 1 ki point to touch a creature and restore a number of its HP\";\r\n\t\t\t\t\tvar b6 = \"It also recovers from one disease or the blinded, deafened, paralyzed, or poisoned condition\";\r\n\t\t\t\t\tvar c = \"When I use Flurry of Blows, I can do this instead of one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, c] :\r\n\t\t\t\t\t\t[a, b6, n < 11 ? c : c.replace(\"one\", \"each\")]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; heal 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wisdom modifier\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"hands of harm\" : {\r\n\t\t\t\tname : \"Hands of Harm\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I hit a creature with an unarmed strike, I can spend 1 ki point to deal extra damage\",\r\n\t\t\t\t\t\"Only once per turn; If the target is incapacitated or poisoned, I roll the damage die 3 times\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" necrotic damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hands of healing\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"hands of harm\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Noxious Aura\",\r\n\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 ki point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 ki point to gain a 5-ft radius toxic aura for 1 minute\",\r\n\t\t\t\t\"While active, ranged attacks have disadv. vs. me; It ends if I'm incapacitated or dismiss it\",\r\n\t\t\t\t\"Others who start their turn in it must make a Con save or be poisoned and take damage\",\r\n\t\t\t\t\"They take my Wis mod in poison damage (min 0); Poisoned lasts until my next turn ends\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Healing Technique\",\r\n\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"With hands of healing I can also end: 1 disease, blinded, deafened, paralyzed, or poisoned\"),\r\n\t\t\t\"hand of mercy\" : {\r\n\t\t\t\tname : \"Hand of Mercy\",\r\n\t\t\t\textraname : \"Way of Mercy 17\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can use 4 ki to have a touched creature make a Con save (can fail willingly)\",\r\n\t\t\t\t\t\"If failed, it becomes paralyzed in a state of suspended animation for my monk level in days\",\r\n\t\t\t\t\t\"It also has immunity to all damage, and curses, diseases, poisons affecting it are suspended\",\r\n\t\t\t\t\t\"The creature appears dead to all inspection and to spells used to determine its status\",\r\n\t\t\t\t\t\"I can end the effect at will (no action required); I can have only one affected at a time\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 17 ? \"\" : \"4 ki points; \" + n + \" days\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hand of mercy\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the watchers-ua\", {\r\n\tregExpSearch : /^(?=.*watchers)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Watchers\",\r\n\tsubnameShort: \"Watchers\",\r\n\tsource : [[\"UA:SP1\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Watcher's Will\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As an action, Cha mod of creatures I see in 30 ft adv. on Int/Wis/Cha saves for 1 min\"),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"alarm\", \"chromatic orb\", \"augury\", \"moonbeam\", \"counterspell\", \"nondetection\", \"aura of purity\", \"banishment\", \"hold monster\", \"hallow\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure the Extraplanar\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, elementals, fey, fiends, and aberrations within 30 ft must make a Wis save\",\r\n\t\t\t\t\"Succeeds if it can't hear me; On fail, turned for 1 minute or until it takes any damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Sentinel\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, chosen creatures in range and I add my Cha mod to Initiative\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"max(Cha|1)\", text : \"I can add my Charisma modifier (min +1) to initiative rolls.\" }]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Vigilant Rebuke\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another I can see saves against a spell, I can damage the caster\",\r\n\t\t\t\t\"Has to succeed save within 30 ft of me vs. unwanted spell; 2d8 + Cha mod force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Mortal Bulwark\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 Truesight out to 120 ft and adv. on attacks vs. elementals, fey, fiends, and aberrations\",\r\n\t\t\t\t\" \\u2022 I can force creatures I hit and damage with an attack to make a Charisma save\",\r\n\t\t\t\t\"   If failed, the target is banished to its native plane of existence if it's not currently there\",\r\n\t\t\t\t\"   If successful, the creature can't be banished by this feature for 24 hours\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the noble genie-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*noble)(?=.*\\b(genie|djinni|dao|efreeti)\\b).*$/i,\r\n\tsubname : \"the Noble Genie\",\r\n\tsource : [[\"UA:SP1\", 4]],\r\n\tspellcastingExtra : [\"fog cloud\", \"sleep\", \"enlarge/reduce\", \"phantasmal force\", \"create food and water\", \"protection from energy\", \"polymorph\", \"phantasmal killer\", \"bigby's hand\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Collector's Vessel\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My patron gives me a magical vessel, a Tiny object which I can use as a spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to receive a replacement\",\r\n\t\t\t\t\"As an action while holding it, I can create a tether to a willing target I can see in 100 ft\",\r\n\t\t\t\t\"This lasts for 1 hour, until I do this again, or the tethered target is reduced to 0 HP\",\r\n\t\t\t\t\"It also ends when the tethered target ends its turn further than 100 ft from me\",\r\n\t\t\t\t\"While the tether lasts, I add my Cha mod (min +1) to my Wis (Perception) checks\",\r\n\t\t\t\t\"Also, I can have spells I cast originate from the tethered creature's space\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Resistance\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can gain acid, cold, fire, or lightning resistance (my choice)\",\r\n\t\t\t\t\"This lasts until I finish my next long rest; A creature tethered to my vessel also gains this\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Protective Wish\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or my tethered creature is hit by an attack, we can swap places\",\r\n\t\t\t\t\"As we both teleport to each others location, the one hit by the attack switches as well\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10.1\" : {\r\n\t\t\tname : \"Genie's Entertainment\",\r\n\t\t\tsource : [[\"UA:SP1\", 6]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can have a creature I can see within 90 ft make a Charisma save\",\r\n\t\t\t\t\"If failed, it is drawn into my vessel and teleported to my patron's court for 1 minute\",\r\n\t\t\t\t\"In there it is stunned but unharmed; At the end of each of its turns it can save to return\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Collector's Call\",\r\n\t\t\tsource : [[\"UA:SP1\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can implore my patron if I make a Persuasion check vs. my spell save DC\",\r\n\t\t\t\t\"If I fail, the use is wasted; If I succeed, I can choose one of the following effects:\",\r\n\t\t\t\t\" \\u2022 A creature I can see in 60 ft heals 8d6 HP and 1 disease or condition affecting it ends\",\r\n\t\t\t\t\"   This condition can be blinded, charmed, deafened, frightened, paralyzed, or poisoned\",\r\n\t\t\t\t\" \\u2022 A creature I can see in 60 ft has disadv. on attacks \\u0026 saves until my next turn starts\",\r\n\t\t\t\t\" \\u2022 I can cast Legend Lore without using material components\",\r\n\t\t\t\t\"I can regain a use of this by sacrificing 500 gp of nonmagical treasure to my patron\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Collector's Call\",\r\n\t\t\t\tspells : [\"legend lore\"],\r\n\t\t\t\tselection : [\"legend lore\"],\r\n\t\t\t\tfirstCol : 'Sp'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"legend lore\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Learn summary of lore of named or described person, place, or object\",\r\n\t\t\t\t\tchanges : \"When I use my Collector's Call feature to cast Legend Lore, it doesn't require any material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20200206_Subclasses-Part-2.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 2 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP2\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 2\",\r\n\tabbreviation : \"UA:SP2\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_02_06_Subclasses2.pdf\",\r\n\tdate : \"2020/02/06\"\r\n};\r\n\r\n// Add a subclass for the Bard and the functionality for its Dancing Item\r\nAddSubClass(\"bard\", \"college of creation-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*creation).*$/i,\r\n\tsubname : \"College of Creation\",\r\n\tsubnameShort: \"Creation\",\r\n\tsource : [[\"UA:SP2\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Note of Potential\",\r\n\t\t\tsource : [[\"UA:SP2\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can also grant a note of potential to whomever I give a bardic inspiration die\",\r\n\t\t\t\t\"This tiny, invulnerable object orbits in 5 ft; It enhances the use of the inspiration die:\",\r\n\t\t\t\t\"\\u2022 Note of Destruction (used for attack roll): others within 5 ft must make a Con save\",\r\n\t\t\t\t\"  If failed, they take the die roll in thunder damage; This uses my spell save DC\",\r\n\t\t\t\t\"\\u2022 Note of Protection (used for save): Grants temp HP equal to the roll + my Cha mod\",\r\n\t\t\t\t\"\\u2022 Note of Ingenuity (used for check): Roll the die twice and choose which result to use\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Animating Performance\",\r\n\t\t\tsource : [[\"UA:SP2\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can animate a Large or smaller nonmagical item I can see within 30 ft\",\r\n\t\t\t\t\"It lasts for 1 hour or until it has 0 HP; I control it and it acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"When I use bardic inspiration, I can command the item as part of the same bonus action\",\r\n\t\t\t\t\"I can't have multiple at once; Select \\\"Dancing Item\\\" on a companion page for its stats\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Dancing Item\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tcreaturesAdd : [[\"Dancing Item\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Dancing Item\",\r\n\t\t\t\tsource : [[\"UA:SP2\", 2]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : 16,\r\n\t\t\t\thp : 33,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [18, 12, 16, 4, 10, 6],\r\n\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned, frightened\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Slam\",\r\n\t\t\t\t\tability : 6,\r\n\t\t\t\t\tdamage : [1, 10, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tmodifiers : [\"\", \"oCha\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"bard\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The item obeys the commands of its creator and uses its creator's spell attack modifier for its attack rolls. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Dash, Force-Empowered Slam (and possibly Endless Waltz), Disengage, Help, Hide, or Search action.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Immutable Form\",\r\n\t\t\t\t\tdescription : \"The item is immune to any spell or effect that would alter its form.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Endless Waltz\",\r\n\t\t\t\t\tdescription : \"Immediately after the item makes a slam attack, it can take the Dodge action as a bonus action.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : 'Animated',\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.bard) return;\r\n\t\t\t\t\t\tvar chaMod = Number(What('Cha Mod'));\r\n\t\t\t\t\t\tvar brdLvl = classes.known.bard.level;\r\n\t\t\t\t\t\tvar brdLvl5 = 5 * brdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(HDobj.conMod + chaMod + brdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + chaMod + \" from its creator's Charisma modifier\\n + 5 \\xD7 \" + brdLvl + \" from five times its creator's bard level (\" + brdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Performance of Creation\",\r\n\t\t\tsource : [[\"UA:SP2\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"As an action, I create a Large or smaller nonmagical item in an empty space in 10 ft\",\r\n\t\t\t\t\t\"Max \" + (20 * n) + \" gp value; I can't have multiple, creating more makes the first one vanish\",\r\n\t\t\t\t\t\"It vanishes when my next turn ends, unless I use my action to extend its life 1 extra turn\",\r\n\t\t\t\t\t\"If I sustain it for 1 minute this way, it continues to exists for my bard level in hours\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 5+\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Cleric\r\nAddSubClass(\"cleric\", \"unity domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*unity).*$/i,\r\n\tsubname : \"Unity Domain\",\r\n\tsource : [[\"UA:SP2\", 2]],\r\n\tspellcastingExtra : [\"heroism\", \"shield of faith\", \"aid\", \"warding bond\", \"beacon of hope\", \"sending\", \"aura of purity\", \"guardian of faith\", \"greater restoration\", \"rary's telepathic bond\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Emboldening Bond\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar descr = desc([\r\n\t\t\t\t\t\"As an action, I can magically bond two willing targets I can see in 30 ft (can be me)\",\r\n\t\t\t\t\t\"While within 30 ft of the other, a bonded target can add +d4 to a save, attack, or check\",\r\n\t\t\t\t\t\"This can only be added once per turn; The bond lasts for 1 hour or until I use this again\",\r\n\t\t\t\t\t\"I can do this once per long rest, after which I can do so by expending a spell slot (SS 1+)\"\r\n\t\t\t\t]);\r\n\t\t\t\tvar descr17 = descr.replace('While within 30 ft of the other', 'While on the same plane');\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 17 ? descr : descr17;\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Shared Burden\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft takes damage, I can divide that damage\",\r\n\t\t\t\t\"I then choose a number of willing creatures that I can see equal to my Wis mod (min 1)\",\r\n\t\t\t\t\"I distribute the damage over these and the original target, each taking at least 1 damage\",\r\n\t\t\t\t\"Damage resistances and vulnerabilities are only applied after the damage is distributed\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Protective Bond\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My emboldening bond now also allows the two bonded to shield each other of damage\",\r\n\t\t\t\t\"When the other takes damage, one can use its reaction to give it resistance to all damage\",\r\n\t\t\t\t\"This resistance lasts until the end of the current turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : n < 17 ? \"the bonded must be within 30 ft\" : \"the bonded must be on the same plane\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Enduring Unity\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"The 30 ft restriction no longer applies to my emboldening and protective bond features\",\r\n\t\t\t\t\"My emboldening bond now also empowers a bonded if the other is reduced to 0 HP\",\r\n\t\t\t\t\"If that happens, the bonded creature above 0 HP gains the following benefits:\",\r\n\t\t\t\t\" \\u2022 Advantage on attack rolls, ability checks, and saving throws; Resistance to all damage\",\r\n\t\t\t\t\" \\u2022 As an action, it can touch its bonded partner to expend and roll HD to heal\",\r\n\t\t\t\t\"These benefits lasts for 1 minute or until the downed creature regains at least 1 HP\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Sorcerer\r\nAddSubClass(\"sorcerer\", \"clockwork soul-ua\", {\r\n\tregExpSearch : /^((?=.*(sorcerer|witch))(?=.*mechanus)|(?=.*clockwork)(?=.*soul)).*$/i,\r\n\tsubname : \"Clockwork Soul\",\r\n\tsource : [[\"UA:SP2\", 4]],\r\n\tfullname : \"Clockwork Soul\",\r\n\tspellcastingExtra : [\"alarm\", \"protection from evil and good\", \"find traps\", \"heat metal\", \"counterspell\", \"glyph of warding\", \"arcane eye\", \"otiluke's resilient sphere\", \"animate objects\", \"wall of force\"],\r\n\tspellcastingExtraApplyNonconform : true,\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Clockwork Magic\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn additional spells, which do not count towards the number of spell I can know\")\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Restore Balance\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 60 ft is about to roll a d20 with adv./disadv.,\",\r\n\t\t\t\t\"I can prevent that roll from being affected by advantage and disadvantage.\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bulwark of Law\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can imbue a creature I can see within 30 ft with a magical ward\",\r\n\t\t\t\t\"I grant it a number of d8s equal to the number of sorcery points I expend when I do this\",\r\n\t\t\t\t\"When it takes damage, it can use its reaction to spend and roll any number of those dice\",\r\n\t\t\t\t\"The dice roll reduces the damage; The ward lasts until I finish a long rest or do this again\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1-5 sorcery points; 1d8 per point\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Trance of Order\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can enter a state of clockwork consciousness for 1 minute\",\r\n\t\t\t\t\"While in this state, attack rolls against me can't benefit from advantage\",\r\n\t\t\t\t\"Also, I can then treat a d20 roll below 9 as a 10 for my attack rolls, checks, and saves\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Clockwork Cavalcade\",\r\n\t\t\tsource : [[\"UA:SP2\", 5]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can call spirits to bring balance in a 30-ft cube originating from me\",\r\n\t\t\t\t\"Inside the cube, the intangible spirits do all the following before vanishing:\",\r\n\t\t\t\t\" \\u2022 Restore up to 100 HP, divided among the creatures in the cube as I see fit\",\r\n\t\t\t\t\" \\u2022 Repair all damaged objects in the cube\",\r\n\t\t\t\t\" \\u2022 End spells of my choice of 6th-level or lower on objects or creatures in the cube\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 7 sorcery points (7 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"7 SP\"\r\n\t\t}\r\n\t}\r\n});\r\n\n// ua_20200206_Subclasses-Part-3.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 3 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP3\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 3\",\r\n\tabbreviation : \"UA:SP3\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020-Subclasses03_0224.pdf\",\r\n\tdate : \"2020/02/24\"\r\n};\r\n\r\n// Add a subclass for the Artificer (but after all other scripts, so that all armour options are present)\r\nRunFunctionAtEnd(function () {\r\n\tif (!ClassList.artificer) { return; };\r\n\tvar UASP3_artificerSubclassArmorerUA = AddSubClass(\"artificer\", \"armorer-ua\", {\r\n\t\tregExpSearch : /^(?=.*armou?rer)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Armorer\",\r\n\t\tfullname : \"Armorer\",\r\n\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools of the Trade\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with heavy armor \\u0026 smith's tools]\",\r\n\t\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\t\tspellcastingExtra : [\"magic missile\", \"shield\", \"mirror image\", \"shatter\", \"hypnotic pattern\", \"lightning bolt\", \"fire shield\", \"greater invisibility\", \"passwall\", \"wall of force\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Power Armor\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can use smith's tool to turn a suit of heavy armor into power armor\",\r\n\t\t\t\t\t\"It continues to be power armor until I doff it, don another armor, or I die\",\r\n\t\t\t\t\t\"It can't be removed against my will, covers all my limbs, and even replaces missing limbs\",\r\n\t\t\t\t\t\"I ignore the Strength requirement of power armor and can use it as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.2\" : {\r\n\t\t\t\tname : \"Armor Model\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a rest, I can use smith's tools to change the model of my arcane armor\",\r\n\t\t\t\t\t'Select a model using the \"Choose Feature\" button; See \"Notes\" page for features of each'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"also see notes page\",\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Power Armor Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"I can customize my power armor to the guardian or infiltrator model whenever I finish a short or long rest, provided I have smith's tools in hand.\",\r\n\t\t\t\t\t\t\"Each model includes a special weapon. When I attack with that weapon, I can use my Intelligence modifier, instead of Strength or Dexterity, for the attack and damage rolls.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Guardian Power Armor (Armorer 3, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"\\u2022 Thunder Gauntlets: The armored fists of the guardian power armor each count as a simple melee weapon, and each deals 1d8 thunder damage on a hit. A creature hit by the gauntlet has disadvantage on attack rolls against targets other than me until the start of me next turn, as the armor magically emits a distracting pulse when the creature attacks someone else.\",\r\n\t\t\t\t\t\t\"\\u2022 Defensive Field: As a bonus action, I can gain temporary hit points equal to my artificer level, replacing any temporary hit points I already have. I lose these temporary hit points if I doff the armor.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Infiltrator Power Armor (Armorer 3, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"\\u2022 Lightning Launcher: A gemlike node on one of the armored fists or on the chest (my choice) counts as a simple ranged weapon, with a normal range of 90 ft and a long range of 300 ft. It deals 1d6 lightning damage on a hit. Once on each of my turns when I hit a creature with it, I can deal an extra 1d6 lightning damage to that target.\",\r\n\t\t\t\t\t\t\"\\u2022 Powered Steps: My walking speed increases by 5 feet.\",\r\n\t\t\t\t\t\t\"\\u2022 Second Skin: The armor's weight is negligible, and it becomes formfitting and wearable under clothing. If the armor normally imposes disadvantage on Dexterity (Stealth) checks, the power armor doesn't.\"\r\n\t\t\t\t\t])\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [],\r\n\t\t\t\tchoiceDependencies : [{\r\n\t\t\t\t\tfeature : \"subclassfeature15\",\r\n\t\t\t\t\tchoiceAttribute : true\r\n\t\t\t\t}],\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*thunder)(?=.*gauntlet).*$/i,\r\n\t\t\t\t\tname : \"Thunder Gauntlets\",\r\n\t\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 8, \"thunder\"],\r\n\t\t\t\t\trange : \"Melee\",\r\n\t\t\t\t\tdescription : \"Target hit disadv. on attacks vs. others than me until my next turn starts\",\r\n\t\t\t\t\tabilitytodamage : true,\r\n\t\t\t\t\tmonkweapon : true\r\n\t\t\t\t}, {\r\n\t\t\t\t\tregExpSearch : /^(?=.*lightning)(?=.*launcher).*$/i,\r\n\t\t\t\t\tname : \"Lightning Launcher\",\r\n\t\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 6, \"lightning\"],\r\n\t\t\t\t\trange : \"90/300 ft\",\r\n\t\t\t\t\tdescription : \"Once per turn on hit, +1d6 lightning damage\",\r\n\t\t\t\t\tabilitytodamage : true\r\n\t\t\t\t}],\r\n\t\t\t\t// Do this in the parent object, so that it is always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\taction : [[\"bonus action\", \"Defensive Field (Guardian Model)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Armor Modifications\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Power armor now counts as armor, boots, bracers, and a weapon for holding infusions\",\r\n\t\t\t\t\t\"I can infuse two of those after a rest without counting towards the number of items\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"+2 infused items, if used on power armor\"\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Perfected Armor\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t'My armor gets additional features, based on the model; Use \"Choose Feature\" to select it',\r\n\t\t\t\t\t\"The guardian gets the ability to pull a creature closer as a reaction and make an attack\",\r\n\t\t\t\t\t\"The infiltrator gets an upgrade to its lightning launcher weapon attack\"\r\n\t\t\t\t]),\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Guardian Perfected Armor Features\",\r\n\t\t\t\t\tpopupName : \"Perfected Armor: Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Tinkering with my armor's energy system leads me to discover a powerful pulling force.\",\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn within 30 ft of me, I can force the creature to succeed on a Strength saving throw against my spell save DC or be pulled up to 30 ft toward me to an unoccupied space. If I pull the target to space within 5 ft of me, I can make a melee weapon attack against it as part of this reaction.\",\r\n\t\t\t\t\t\t\"I can use this reaction a number of times equal to my Intelligence modifier (min 1). I regain all expended uses of it when I finish a long rest.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Infiltrator Perfected Armor Features (Armorer 15, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"Any creature that takes lightning damage from my Lightning Launcher glimmers with light until the start of my next turn.\",\r\n\t\t\t\t\t\t\"The glimmering creature sheds dim light in a 5-ft radius, and the next attack roll against it by a creature other than me has advantage. If that attack hits, it deals an extra 1d6 lightning damage.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Power Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [\"guardian\", \"infiltrator\"],\r\n\t\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\t\"guardian\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tadditional: \"Intelligence modifier per long rest\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn in 30 ft, I have it make a Str save\",\r\n\t\t\t\t\t\t\"If it fails, I pull it up to 30 ft towards me to an empty space\",\r\n\t\t\t\t\t\t\"If I pull it within 5 ft, I can make a melee weapon attack vs. it as part of this reaction\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t\"infiltrator\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Infiltrator\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"Those hit by my lightning launcher shed 5-ft radius dim light until my next turn starts\",\r\n\t\t\t\t\t\t\"Also, the next attack roll made by another than me vs. the target has advantage\",\r\n\t\t\t\t\t\t\"If that attack hits, it deals an extra 1d6 lightning damage\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t// Do these in the parent object, so that they are always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"reaction\", \"Perfected Armor: Guardian\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tif (!UASP3_artificerSubclassArmorerUA || !ClassSubList[UASP3_artificerSubclassArmorerUA]) return;\r\n\tvar itsFea = ClassSubList[UASP3_artificerSubclassArmorerUA].features[\"subclassfeature3.2\"];\r\n\tvar guardianTxt = desc([\r\n\t\t\"Both fists are Thunder Gauntlets, simple melee weapons that distract those hit by it\",\r\n\t\t\"As a bonus action, I can activate a defensive shield to gain my artificer level in temp HP\"\r\n\t])\r\n\tvar guardianAdditional = levels.map(function (n) {\r\n\t\treturn n + \" temp HP; see notes page\";\r\n\t})\r\n\tvar infiltratorTxt = desc([\r\n\t\t\"+5 ft walking speed; Gemlike node in fist/chest is a ranged weapon, Lightning Launcher\",\r\n\t\t\"The power armor is formfitting, has negligible weight, and doesn't give disadv. on Stealth\"\r\n\t])\r\n\tvar prereqFunc = function(v) {\r\n\t\tvar sParsed = ParseArmor(v.choice.replace(/(Guardian|Infiltrator) arcane /i, ''));\r\n\t\treturn sParsed && testSource(sParsed, ArmourList[sParsed], \"armorExcl\") ? \"skip\" : true;\r\n\t};\r\n\tfor (var armor in ArmourList) {\r\n\t\tvar anArm = ArmourList[armor];\r\n\t\tif (anArm.type != \"heavy\" || anArm.isMagicArmor || !anArm.weight || (CurrentVars.extraArmour && CurrentVars.extraArmour[armor])) continue;\r\n\t\t// Add the Guardian variant of the armor\r\n\t\tvar gArmName = \"Guardian Power \" + anArm.name;\r\n\t\titsFea[gArmName.toLowerCase()] = {\r\n\t\t\tname : (typePF || anArm.name.length < 16 ? \"Armor \" : \"\") + \"Model: Guardian \" + anArm.name,\r\n\t\t\tsubmenu : \"Guardian Power Armor\",\r\n\t\t\tdescription : guardianTxt,\r\n\t\t\tadditional : guardianAdditional,\r\n\t\t\tarmorAdd : { select : gArmName, options : [gArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Thunder Gauntlets\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tdependentChoices : \"guardian\"\r\n\t\t}\r\n\t\t// And now add the Infiltrator variant of the armor\r\n\t\tvar iArm = newObj(anArm);\r\n\t\tiArm.name = \"Infiltrator Power \" + anArm.name;\r\n\t\tiArm.weight = 0;\r\n\t\tiArm.stealthdis = false;\r\n\t\tiArm.strReq = 0;\r\n\t\tiArm.selectNow = true;\r\n\t\tif (iArm.regExpSearch.indexOf(\".*$/\") == -1) {\r\n\t\t\tiArm.regExpSearch = iArm.regExpSearch.replace(/^/, \"infiltrator.*\");\r\n\t\t} else {\r\n\t\t\tiArm.regExpSearch = iArm.regExpSearch.replace(/\\.\\*\\$$/, \"(?=.infiltrator).*$\");\r\n\t\t};\r\n\t\titsFea[iArm.name.toLowerCase()] = {\r\n\t\t\tname : \"Armor Model: Infiltrator \" + anArm.name,\r\n\t\t\tsubmenu : \"Infiltrator Power Armor\",\r\n\t\t\tdescription : infiltratorTxt,\r\n\t\t\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } },\r\n\t\t\tweaponsAdd : { select : [\"Lightning Launcher\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tarmorOptions : [iArm],\r\n\t\t\tdependentChoices : \"infiltrator\"\r\n\t\t}\r\n\t\t// Lastly push both choices to the array\r\n\t\titsFea.choices.push(gArmName, iArm.name);\r\n\t}\r\n});\r\n\r\n// Add the new Artificer infusions\r\nif (ClassList.artificer && ClassList.artificer.features[\"infuse item\"]) {\r\n\t\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Magical Strength (ua) (prereq: level 10 artificer)\", {\r\n\t\tname : \"Armor of Magical Strength\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"The wearer of the armor can use its Int mod instead of its Str mod for Str checks/saves\",\r\n\t\t\t\"The armor has 4 charges, regaining 1d4 expended charges daily at dawn\",\r\n\t\t\t\"As a reaction when being knocked prone, the wearer can use 1 charge to not be prone\"\r\n\t\t]),\r\n\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\tprereqeval : function(v) { return classes.known.artificer.level >= 10; },\r\n\t\tmagicitemsAdd : [\"Armor of Magical Strength (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"armor of magical strength-ua\"] = {\r\n\t\tname : \"Armor of Magical Strength (UA)\",\r\n\t\tnameTest : \"of Magical Strength (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"This armor has 4 charges and regains 1d4 charges daily at dawn. As a reaction when I would be knocked prone, I can expend 1 charge to not be knocked prone. It allows me to use my Intelligence modifier instead of my Strength modifier when making Strength checks or Strength saves.\",\r\n\t\tdescriptionFull : \"While wearing this armor, a creature can use its Intelligence modifier in place of its Strength modifier when making Strength checks and Strength saving throws.\\n   The armor has 4 charges. As a reaction when it would be knocked prone, the wearer can expend 1 charge to not be knocked prone. The armor regains 1d4 expended charges daily at dawn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"prefix\"\r\n\t\t},\r\n\t\tusages : 4,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"regains 1d4\",\r\n\t\taddMod : [{\r\n\t\t\ttype : \"save\", field : \"Str\", mod : \"max(Int-Str|0)\",\r\n\t\t\ttext : \"While attuned to the Armor of Magical Strength (UA), I can use my Intelligence modifier instead of my Strength modifier for Strength saving throws.\"\r\n\t\t}, {\r\n\t\t\ttype : \"skill\", field : \"Athletics\", mod : \"max(Int-Str|0)\",\r\n\t\t\ttext : \"While attuned to the Armor of Magical Strength (UA), I can use my Intelligence modifier instead of my Strength modifier for Strength checks.\"\r\n\t\t}]\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Tools\", {\r\n\t\tname : \"Armor of Tools\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"The armor can have a set of artisan's or thieves' tools integrated into it as an action\",\r\n\t\t\t\"The tools remain integrated for 8 hours, or until removed as an action\",\r\n\t\t\t\"The wearer can add its Intelligence modifier to checks made with the integrated tools\"\r\n\t\t]),\r\n\t\tadditional : \"suit of armor\",\r\n\t\tmagicitemsAdd : [\"Armor of Tools\"]\r\n\t});\r\n\tMagicItemsList[\"armor of tools-ua\"] = {\r\n\t\tname : \"Armor of Tools\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"As an action, I can integrate a set of artisan's or thieves' tools into this magic studded leather armor, which can hold only one set at a time. The tools remain integrated for 8 hours or until I remove them as an action. I can add my Intelligence modifier as a bonus to any ability checks I make with the integrated tools.\",\r\n\t\tdescriptionFull : \"As an action, a creature wearing this infused armor can integrate into it artisan's tools or thieves' tools. The tools remain integrated in the armor for 8 hours or until the wearer removes the tools as an action. The armor can have only one tool integrated at a time.\\n   The wearer can add its Intelligence modifier to any ability checks it makes with the integrated tool. The wearer must have a hand free to use the tool.\",\r\n\t\taction : [[\"action\", \"\"]]\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Mind Sharpener (ua)\", {\r\n\t\tname : \"Mind Sharpener\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription: desc(\"The wearer can use its reaction to ignore a failed Con save to maintain concentration\"),\r\n\t\tadditional : \"suit of armor or robes\",\r\n\t\tmagicitemsAdd : [\"Mind Sharpener (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"mind sharpener-ua\"] = {\r\n\t\tname : \"Mind Sharpener (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : \"This magic armor or robes can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\",\r\n\t\tdescriptionFull : \"The infused item can send a jolt to the wearer to refocus their mind. While wearing this infused item, whenever the creature fails a Constitution saving throw to maintain concentration on a spell, it can use its reaction to succeed instead.\",\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tchoices : [\"Mind Sharpener Armor\", \"Mind Sharpener Robes\"],\r\n\t\t\"mind sharpener armor\" : {\r\n\t\t\tname : \"Mind\\u200A Sharpener (UA)\",\r\n\t\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\t\tdescription : \"This magic armor can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\",\r\n\t\t\tchooseGear : {\r\n\t\t\t\ttype : \"armor\",\r\n\t\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\t\titemName1stPage : [\"suffix\", \"Mind Sharpener\"],\r\n\t\t\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"mind sharpener robes\" : {\r\n\t\t\tname : \"Mind Sharpener (UA) (Robes)\",\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\tdescription : \"These magic robes can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\"\r\n\t\t}\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Spell-Refueling Ring (ua) (prereq: level 6 artificer)\", {\r\n\t\tname : \"Spell-Refueling Ring\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As an action once per dawn, the wearer of this ring can recover one expended spell slot\",\r\n\t\t\t\"The maximum level of the spell slot is equal to the number of magic items it is attuned to\"\r\n\t\t]),\r\n\t\tadditional : \"ring; requires attunement\",\r\n\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\tmagicitemsAdd : [\"Spell-Refueling Ring (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"spell-refueling ring-ua\"] = {\r\n\t\tname : \"Spell-Refueling Ring (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"ring\",\r\n\t\tdescription : \"As an action, I can activate this magic ring to recover one expended spell slot. The maximum level of the recovered slot is equal to the number of magic items I am attuned to when I activate this ring. Once used, the ring can't be used again until the next dawn.\",\r\n\t\tdescriptionFull : \"While wearing this ring, the creature can recover one expended spell slot as an action. The maximum level of the recovered slot is equal to the number of magic items the wearer is currently attuned to. Once used, the ring can't be used again until the next dawn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t};\r\n}\r\n\r\nAddSubClass(\"druid\", \"circle of the stars-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*circle)(?=.*stars).*$/i,\r\n\tsubname : \"Circle of the Stars\",\r\n\tsubnameShort: \"Stars\",\r\n\tsource : [[\"UA:SP3\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Star Map\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I've created a star map, a Tiny object which I can use as my spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to create a replacement\",\r\n\t\t\t\t\"I can use it to cast Augury or Guiding Bolt, even unprepared, without using a spell slot\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guiding bolt\", \"augury\"],\r\n\t\t\t\tselection : [\"guiding bolt\", \"augury\"],\r\n\t\t\t\tfirstCol : \"Sp\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Starry Form\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to take on a starry form for 10 minutes\",\r\n\t\t\t\t\"In that form I shed bright light in a 10-ft radius and dim light for an extra 10-ft radius\",\r\n\t\t\t\t\"When I do so, I choose one constellation below to grant me benefits in my starry form:\",\r\n\t\t\t\t\"\\u2022 Chalice: When I use a spell slot to cast a healing spell, I also heal a creature in 30 ft\",\r\n\t\t\t\t\"  This can be myself or the original target; I restore 1d8 + half my druid level in HP\",\r\n\t\t\t\t\"\\u2022 Archer: As a bonus action, I can make a ranged spell attack to hurl a luminous arrow\",\r\n\t\t\t\t\"  This has a range of 60 ft and deals radiant damage equal to 1d8 + my Wisdom mod\",\r\n\t\t\t\t\"\\u2022 Dragon: I can treat a roll below 10 as a 10 for Int/Wis checks and concentration saves\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (Archer Constellation)\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"Chalice: heals 1d8+\" + Math.floor(n/2) + \" HP\";\r\n\t\t\t}),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*luminous)(?=.*arrow).*$/i,\r\n\t\t\t\tname : \"Luminous Arrow\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"radiant\"],\r\n\t\t\t\trange : \"60 ft\",\r\n\t\t\t\tdescription : \"Use as bonus action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cosmic Omen\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can roll a die to gain an omen based on the result (odd/even)\",\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft makes an attack, check, or save, I can:\",\r\n\t\t\t\t\"\\u2022 Weal (even): add 1d6 to the number rolled for the attack, check, or save\",\r\n\t\t\t\t\"\\u2022 Woe (odd): subtract 1d6 from the number rolled for the attack, check, or save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Full of Stars\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While in my starry form, I have resistance to bludgeoning, piercing, and slashing damage\"),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Bludgeoning\", \"Bludgeon. (in form)\"],\r\n\t\t\t\t[\"Piercing\", \"Piercing (in form)\"],\r\n\t\t\t\t[\"Slashing\", \"Slashing (in form)\"]\r\n\t\t\t],\r\n\t\t\t\"star flare\" : {\r\n\t\t\t\tname : \"Star Flare\",\r\n\t\t\t\textraname : \"Circle of the Stars 14\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I conjure a 30-ft radius sphere of light on a point within 120 ft I can see\",\r\n\t\t\t\t\t\"I then teleport each willing creature in that sphere to an empty space within 30 ft of it\",\r\n\t\t\t\t\t\"Creatures left within the sphere must make a Con save or take 4d10 radiant damage\",\r\n\t\t\t\t\t\"Those that failed the save are also blinded until the end of my next turn\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 5+\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"star flare\",\r\n\t\t\t\tminlevel : 14\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar UASP3_rangerSubclassFeyWandererUA = AddSubClass(\"ranger\", \"fey wanderer-ua\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*wanderer).*$/i,\r\n\tsubname : \"Fey Wanderer\",\r\n\tsource : [[\"UA:SP3\", 5]],\r\n\tfullname : \"Fey Wanderer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fey Wanderer Magic\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"charm person\", \"misty step\", \"dispel magic\", \"banishment\", \"mislead\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Cunning Will\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Adv. on saves vs. charm/frightened; Proficiency in Deception, Performance, or Persuasion\"),\r\n\t\t\tskillstxt : \"Choose one from: Deception, Performance, or Persuasion\",\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Dreadful Strikes\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue the weapons I'm holding with magic until my turn ends\",\r\n\t\t\t\t\"They count as magical and deal +1d6 psychic damage, but only once to a single creature\",\r\n\t\t\t\t\"I can also do this as part of the same bonus action as making an off-hand attack\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Blessings of the Courts\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn when I hit a weapon attack, I can expend a spell slot for extra damage\",\r\n\t\t\t\t\"The target takes +3d6 psychic damage and must make a Wis save or be frightened of me\",\r\n\t\t\t\t\"This lasts until the end of my next turn; In addition, I add my Wis mod to Cha checks\"\r\n\t\t\t]),\r\n\t\t\taddMod : [\"Deception\", \"Intimidation\", \"Performance\", \"Persuasion\"].map(function(skill){return {type : \"skill\", field : skill, mod : \"Wis\", text : \"I add my Wisdom modifier to my Charisma checks\"};})\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Beguiling Twist\",\r\n\t\t\tsource : [[\"UA:SP3\", 6]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 120 ft succeeds a save vs. charmed/frightened\",\r\n\t\t\t\t\"I can have another I can see in 120 ft make a Wis save or suffer one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 For 1 min, it's frightened of me or charmed; It can save again at the end of its turns\",\r\n\t\t\t\t\" \\u2022 It takes 3d10 psychic damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\"misty presence\" : {\r\n\t\t\t\tname : \"Misty Presence\",\r\n\t\t\t\textraname : \"Fey Wanderer 15\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 6]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can have a creature I can see within 30 ft make a Wisdom save\",\r\n\t\t\t\t\t\"On a failed save, it cannot see or hear me for 24 hours or until I use this feature again\",\r\n\t\t\t\t\t\"The target can repeat its save if I hit it with an attack, force it to save, or deal it damage\",\r\n\t\t\t\t\t\"On a successful save, the creature is immune to my use of this feature for 7 days\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 4th-level or higher spell slot (SS 4+)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 4+\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"misty presence\",\r\n\t\t\t\tminlevel : 15\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UASP3_rangerSubclassFeyWandererUA); };\r\n\n// ua_20200512_Subclasses-Revisited.js\n// This file adds the content from the Unearthed Arcana: Fighter, Ranger, and Rogue article to MPMB's Character Record Sheet\n// This file contains contributions by Undrhil and Metacomet10\n\nSourceList[\"UA:SR\"] = {\n\tname : \"Unearthed Arcana: Subclasses Revisited\",\n\tabbreviation : \"UA:SR\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_SubclassesRevisited_0512.pdf\",\n\tdate : \"2020/05/12\"\n};\n\nAddSubClass(\"rogue\", \"phantom-ua\", {\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*phantom).*$/i,\n\tsubname : \"Phantom\",\n\tsource : [[\"UA:SR\", 1]],\n\tfullname : \"Phantom\",\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Whispers of the Dead\",\n\t\t\tsource : [[\"UA:SR\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"Whenever I finish a short or long rest, I can gain one skill or tool proficiency of my choice\",\n\t\t\t\t\"This proficiency lasts until I use this feature again to gain a different proficiency\"\n\t\t\t]),\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a short or long rest\"\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Wails from the Grave\",\n\t\t\tsource : [[\"UA:SR\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\tvar a = [\n\t\t\t\t\t\"Directly after I deal sneak attack damage to a creature on my turn, I \" + (n < 17 ? \"can\" : \"also\") + \" harm another\",\n\t\t\t\t\tn < 17 ? \"I then deal half my sneak attack in psychic damage to a creature I can see within 30 ft\" : \"I deal half my sneak attack in psychic damage to both it and another I can see in 30 ft\"\n\t\t\t\t];\n\t\t\t\treturn desc(a);\n\t\t\t}),\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\",\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn Math.ceil(n / 4) + \"d6\";\n\t\t\t}),\n\t\t},\n\t\t\"subclassfeature9\" : {\n\t\t\tname : \"Tokens of the Departed\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 9,\n\t\t\tdescription : \" [max Proficiency Bonus of soul trinkets]\" + desc([\n\t\t\t\t\"As a reaction when I see a creature within 30 ft die, I can create a Tiny soul trinket\",\n\t\t\t\t\"The token of its life essence appears in my free hand; The DM determines its appearance\",\n\t\t\t\t\"While a soul trinket is on my person, I have advantage on death and Constitution saves\",\n\t\t\t\t\"As an action, I can destroy one of my soul trinkets and ask its associated spirit a question\",\n\t\t\t\t\"Its spirit appears and answers concisely in a language it knew; Trinket can be anywhere\"\n\t\t\t]),\n\t\t\taction : [\n\t\t\t\t[\"reaction\", \"Create Soul Trinket\"],\n\t\t\t\t[\"action\", \"Destroy Soul Trinket\"]\n\t\t\t],\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Soul Trinkets (max Prof Bonus)\",\n\t\t\t\tusages : \"\",\n\t\t\t\trecovery : \"Special\"\n\t\t\t}],\n\t\t\tsavetxt : { text : [\"While soul trinket is on me, Adv. on Con and death saves\"] }\n\t\t},\n\t\t\"subclassfeature13\" : {\n\t\t\tname : \"Ghost Walk\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 13,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can assume a spectral form with 10 ft flying speed and can hover\",\n\t\t\t\t\"Attacks vs. me have disadv.; I can move through creatures and objects as difficult terrain\",\n\t\t\t\t\"This lasts 10 min; I take 1d10 force damage if I end my turn inside a creature or object\",\n\t\t\t\t\"I can assume this form once per long rest, or by destroying one of my soul trinkets (ST)\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taltResource : \"ST\"\n\t\t},\n\t\t\"subclassfeature17\" : {\n\t\t\tname : \"Death Knoll\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 17,\n\t\t\tdescription : desc([\n\t\t\t\t\"Wails from the Grave now also deals damage to the target of the original sneak attack\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n/* This UA version of Order of Scribes is not done yet\nAddSubClass(\"wizard\",\"order of scribes-ua\", {\n\tregExpSearch : /^(?=.*wizard)(?=.*order)(?=.*scribes?).*$|scrivener/i,\n\tsubname : \"Order of Scribes\",\n\tsource : [[\"UA:SR\", 4]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Wizardly Quill\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can magically create a Tiny quill with the following properties:\",\n\t\t\t\t\" \\u2022 It doesn't require ink and produces ink in the color of my choice when writing with it\",\n\t\t\t\t\" \\u2022 The gold and time required to transcribe spells into my spellbook with it are halved\",\n\t\t\t\t\" \\u2022 As a bonus action, I can use it to erase a text written with it if within 5 ft of the text\",\n\t\t\t\t\"The quill disappear if I create another or if I die\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (create/erase)\"]]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Awakened Spellbook\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc ([\n\t\t\t\t\"My spellbook gains sentience and grants me the following benefits while I am holding it:\",\n\t\t\t\t\" \\u2022 I can use the book as a spellcasting focus for my wizard spells\",\n\t\t\t\t\" \\u2022 When I cast a wizard spell using a spell slot, I can temporarily replace its damage type\",\n\t\t\t\t\"   The new damage type must appear in another spell in my awakened spellbook\",\n\t\t\t\t\" \\u2022 Once per long rest, I can ritual cast a wizard spell without 10 min extra casting time\",\n\t\t\t\t\"I can replace it over a short rest, transferring its spells and sentience to a blank book\"\n\t\t\t]),\n\t\t\tadditional : \"fast ritual cast\",\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Master Scrivener\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I finish a long rest, I can write a spell in my awakened spellbook on a blank paper\",\n\t\t\t\t\"It must be a level 1 or 2 spell with 1 action casting time; My spellbook must be in 5 ft\",\n\t\t\t\t\"As an action, I can use this scroll to cast the spell on it at one higher level than normal\",\n\t\t\t\t\"Only I can use the scroll; The scroll turns blank again when I use it or finish a long rest\",\n\t\t\t\t\"Also, using my Wizardly Quill, the gold and time I need to craft spell scrolls is halved\"\n\t\t\t]),\n\t\t\taction : [[\"action\", \" (cast scroll)\"]],\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t// Finished until here\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Manifest Mind\",\n\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc('As a bonus action, I can cause my Awakened Spellbook to manifest. See \"Note\" page'),\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Manifest Mind\",\n\t\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\t\tpage3notes : false,\n\t\t\t\tnote : desc ([\"As a bonus action with my Awakened Spellbook on my person, I can cause the mind to\",\n\t\t\t\t\"manifest as a Tiny spectral construct, hovering in an unoccupied space of my choice within\",\n\t\t\t\t\"60 ft. It is intangible and doesn't occupy its space, and it sheds dim light in a 10 ft radius.\",\n\t\t\t\t\"It looks like a ghostly tome, a cascade of text, or a scholar from the past \\(my choice.\\).\",\n\t\t\t\t\"\\(See Companion Page for statistics for this construct.\\)\",\n\t\t\t\t\"While manifested, it can hear and see and has darkvision with a range of 60 ft. As an\",\n\t\t\t\t\"action, I can hear and see using its senses instead of my own, until my concentration\",\n\t\t\t\t\"ends \\(as if concentrating on a spell\\).\",\n\t\t\t\t\"Whenever I cast a wizard spell on my turn, I can cast it as if I were in the spectral mind's\",\n\t\t\t\t\"space, using its senses. I can do this a number of times per day equal to my proficiency\",\n\t\t\t\t\"bonus, and I regain all uses when I finish a long rest.\",\n\t\t\t\t\"As a bonus action, I can cause it to hover up to 30 ft to an unoccupied space that I or it\",\n\t\t\t\t\"can see. It can pass through creatures but not objects. It stops manifesting if it is ever\",\n\t\t\t\t\"more than 300 ft away from me, if it drops to 0 hit points, if I die, or if I dismiss it as\",\n\t\t\t\t\"a bonus action.\"\n\t\t\t\t])\n\t\t\t}],\n\t\t\teval : function() {\n\t\t\t\tvar companionFunctions = ClassList.artificer ? ClassList.artificer.artificerCompFunc : ClassList.wizard.artificer.CompFunc;\n\t\t\t\tcompanionFunctions.add(\"Manifest Mind\");\n\t\t\t\tClassList.wizard.wizardCompFunc.update(10, What('Int mod'),What('AC'),What('Str mod'),What('Dex mod'),What('Con mod'),What('Wis mod'),What('Cha mod'));\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar companionFunctions = ClassList.artificer ? ClassList.artificer.artificerCompFunc : ClassList.wizard.artificerCompFunc;\n\t\t\t\tcompanionFunctions.remove(\"Manifest Mind\");\n\t\t\t},\n\t\t\taction : [[\"bonus action\",\"\"],[\"bonus action\",\"Hover spellbook 30ft\"],[\"bonus action\",\"dismiss Manifestation\"]],\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"One with the Word\",\n\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"While I am holding my Awakened Spellbook and it is manifest, I can take an action to\",\n\t\t\t\t\"swap places with the manifestation. I can do this a number of times equal to my\",\n\t\t\t\t\"proficiency bonus and I regain all expended uses when I finish a long rest.\",\n\t\t\t\t\"If I die but at least one spell remains in my Awakened Spellbook, I can return to\",\n\t\t\t\t\"life after 1 minute within 5 ft of the book. I revive with 1 hit point. I then roll\",\n\t\t\t\t\"3d6 and the spellbook loses spells of my choice that have a combined spell level\",\n\t\t\t\t\"equal to that roll or higher. I am incapable of casting the lost spells, even if I\",\n\t\t\t\t\"find them on a scroll or in another spellbook. I can only restore my ability to cast\",\n\t\t\t\t\"one of these spells with the wish spell, which will restore one spell per casting.\"\n\t\t\t]),\n\t\t\taction : [[\"action\",\"Swap places with spellbook\"]],\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t}\n});\n*/\n\n// ua_20200713_Feats-2020.js\n// This file adds the content from the Unearthed Arcana 2020: Feats article to MPMB's Character Record Sheet\n// All content in this file contains contributions by AelarTheElfRogue\n\n// Define the source\nSourceList[\"UA:F2\"] = {\n\tname : \"Unearthed Arcana: Feats 2020\",\n\tabbreviation : \"UA:F2\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_Feats.pdf\",\n\tdate : \"2020/07/13\"\n};\n\nFeatsList[\"crusher-ua\"] = {\n\tname : \"Crusher\",\n\tsource : [[\"UA:F2\", 1]],\n\tdescriptionFull : \"You are practiced in the art of crushing your enemies, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals bludgeoning damage, you can move it 5 feet to an unoccupied space, provided the target is no more than one size larger than you.\\n \\u2022 When you score a critical hit that deals bludgeoning damage to a creature, attack rolls against that creature are made with advantage until the end of your next turn.\",\n\tdescription : \"Once per turn, when I hit a creature no more than one size larger than me with an attack that deals bludgeoning damage, I can move it 5 ft to an unoccupied space. If I score a critical hit that deals bludgeoning damage, attacks against the creature hit gain advantage until the start of my next turn. [+1 \" + (typePF ? \"Str or Dex\" : \"Strength or Dexterity\") + \"]\",\n\tscorestxt : \"+1 Strength or Dexterity\"\n};\nFeatsList[\"practiced expert-ua\"] = {\n\tname : \"Practiced Expert\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You have honed your proficiency with particular skills or tools, gaining the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with one skill or tool of your choice.\\n \\u2022 Choose one of your skill or tool proficiencies. Your proficiency bonus is doubled for any ability check you make that uses the chosen proficiency.\",\n\tdescription : \"I gain proficiency in one skill or tool, and expertise in that same skill or tool, or another skill or tool I'm proficient with. [+1 to one ability score of my choice]\",\n\tskillstxt : \"Proficiency with one skill or tool, and\\n   Expertise with one skill or tool I'm proficient with\",\n\tscorestxt : \"+1 to one ability score of my choice\"\n};\nFeatsList[\"shadow touched-ua\"] = {\n\tname : \"Shadow Touched\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You learn how to bend shadows from your experience with the Shadowfell. You gain the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn the darkness spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\n\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\n\tspellcastingBonus : [{\n\t\tname : \"Darkness\",\n\t\tspells : [\"darkness\"],\n\t\tselection : [\"darkness\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}, {\n\t\tname : \"1st-level Illus/Necro spell\",\n\t\t'class' : \"any\",\n\t\tschool : [\"Illus\", \"Necro\"],\n\t\tlevel : [1, 1],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}],\n\tspellcastingAbility : 4,\n\tallowUpCasting : true,\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\t\"intelligence\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\n\t\tspellcastingAbility : 4,\n\t\tscores : [0, 0, 0, 1, 0, 0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\n\t\tspellcastingAbility : 5,\n\t\tscores : [0, 0, 0, 0, 1, 0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\n\t\tspellcastingAbility : 6,\n\t\tscores : [0, 0, 0, 0, 0, 1]\n\t}\n};\nFeatsList[\"shield training-ua\"] = {\n\tname : \"Shield Training\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You've trained in the effective use of shields. You gain the following benefits:\\n \\u2022 Increase your Strength, Dexterity, or Constitution score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with shields.\\n \\u2022 In combat, you can don or doff a shield as the free object interaction on your turn.\\n \\u2022 If you have the Spellcasting or Pact Magic feature, you can use a shield as a spellcasting focus.\",\n\tdescription : \"I gain proficiency with shields. I can don or doff a shield as the free object interaction on my turn. If I have the Spellcasting or Pact Magic feature, I can use my shield as a spellcasting focus. [+1 Strength, Dexterity, or Constitution]\",\n\tscorestxt : \"+1 Strength, Dexterity, or Constitution\",\n\tarmorProfs : [false, false, false, true]\n};\nFeatsList[\"tandem tactician-ua\"] = {\n\tname : \"Tandem Tactician\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"Your presence in a scrap tends to elevate your comrades. You gain the following benefits:\\n \\u2022 You can use the Help action as a bonus action.\\n \\u2022 When you use the Help action to aid an ally in attacking a creature, increase the range of the Help action by 10 feet. Additionally, you can help two allies targeting the same creature within range when you use the Help action this way.\",\n\tdescription : \"I can use the Help action as a bonus action. When I use the Help action to aid an ally in attacking a creature, the range of the Help action increases with 10 ft. I can help two allies targeting the same creature within range when I use the Help action this way.\",\n\taction : [[\"bonus action\", \"\"]]\n};\nFeatsList[\"tracker-ua\"] = {\n\tname : \"Tracker\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You have spent time hunting creatures and honed your skills, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You learn the hunter's mark spell. You can cast it once without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have. Wisdom is your spellcasting ability for this spell.\\n \\u2022 You have advantage on Wisdom (Survival) checks to track creatures.\",\n\tdescription : \"I can cast Hunter's Mark once per long rest at its lowest level without expending a spell slot, and can cast it by expending a spell slot as normal. Wisdom is my spellcasting ability for this. I have advantage on Wisdom (Survival) checks to track creatures. [+1 Wisdom]\",\n\tscores : [0, 0, 0, 0, 1, 0],\n\tspellcastingBonus : [{\n\t\tname : \"1\\xD7/LR \\u0026 spell slot\",\n\t\tspellcastingAbility : 5,\n\t\tallowUpCasting : true,\n\t\tspells : [\"hunter's mark\"],\n\t\tselection : [\"hunter's mark\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}]\n};\n// ua_20200805_Subclasses-Part-4.js\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 4 article to MPMB's Character Record Sheet\n// This file contains contributions by AelarTheElfRogue\n\n// Define the source\nSourceList[\"UA:SP4\"] = {\n\tname : \"Unearthed Arcana: Subclasses, Part 4\",\n\tabbreviation : \"UA:SP4\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_Subclasses04.pdf\",\n\tdate : \"2020/08/05\"\n};\n\nAddSubClass(\"bard\", \"college of spirits-ua\",{\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*spirits?).*$/i,\n\tsubname : \"College of Spirits\",\n\tsubnameShort: \"Spirits\",\n\tsource : [[\"UA:SP4\", 1]],\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Guiding Whispers\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"I learn the Guidance cantrip and can cast it with a range of 60 ft\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Guiding Whispers\",\n\t\t\t\tspells : [\"guidance\"],\n\t\t\t\tselection : [\"guidance\"],\n\t\t\t\tfirstCol : \"atwill\"\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"guidance\" : {\n\t\t\t\t\trange : \"60 ft\",\n\t\t\t\t\tchanges : \"I can cast Guidance with a range of 60 ft.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Spiritual Focus\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : \" [only for bard spells]\" + desc([\n\t\t\t\t\"I can use a candle, crystal ball, skull, spirit board, or tarokka deck as a spellcasting focus\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature3.2\" : {\n\t\t\tname : \"Tales from Beyond\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can expend a bardic inspiration die to roll on the Spirits' Tales table\",\n\t\t\t\t\"I retain the rolled tale in my mind until I bestow its effects or finish a short or long rest\",\n\t\t\t\t\"I can only retain one tale at a time; I need to hold a spiritual focus to roll on the table\",\n\t\t\t\t\"As an action, I can choose a creature I see in 30 ft or myself to bestow the tale's effect\",\n\t\t\t\t\"The tales use my spell save DC; See the Notes page for the Spirits' Tales table\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (roll on table)\"], [\"action\", \" (use effect)\"]],\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Spirits' Tales Table\",\n\t\t\t\tnote : desc([\n\t\t\t\t\t\"As a bonus action while I'm holding my spiritual focus, I can reach out to spirits who tell their tales through me. I expend one use of my Bardic Inspiration and roll on the table below using my Bardic Inspiration die to determine the tale. I retain the tale in mind until I bestow the tale's effect or finish a short or long rest.\",\n\t\t\t\t\t\"I can retain only one of these tales in mind at a time, and rolling on the table immediately ends the effect of the previous tale.\",\n\t\t\t\t\t\"As an action, I can choose myself or one creature I can see within 30 ft to be the target of the tale's effect. If the tale requires a saving throw, the DC equals my spell save DC.\",\n\t\t\t\t\t\"\\nRoll \" + (typePF ? \"\" : \" \") + \"Tale\"\n\t\t\t\t])+\n\t\t\t\tdesc([\n\t\t\t\t\t\"  1    Beast: I recite the tale of a clever animal. For 1 minute, the target has advantage on Wisdom (Perception) checks and advantage on attack rolls against a creature if another enemy is within 5 ft of it, and that enemy isn't incapacitated.\",\n\t\t\t\t\t\"  2    Warrior: I recount the story of a renowned duelist. Make a melee spell attack against the target as an attacking spectral warrior briefly appears in a unoccupied space within 5 ft of the target before vanishing. On a hit, the target takes force damage equal to two rolls of my Bardic Inspiration die + my Charisma modifier.\",\n\t\t\t\t\t\"  3    Friends: I recite the tale of friends who found each other in the afterlife. The target and another creature of its choice it can see within 5 ft of it regains hit points equal to a roll of my Bardic Inspiration die + my Charisma modifier.\",\n\t\t\t\t\t\"  4    Runaway: I tell the tale of an adventurer that could escape any confinement. The target can immediately use its reaction to teleport up to 30 ft to an unoccupied space it can see. When the target teleports, it can choose a number of creatures it can see within 30 ft of it up to my Charisma modifier (minimum of 1) to immediately use the same reaction.\",\n\t\t\t\t\t\"  5    Avenger: I recount the tale of an avenging knight. For 1 minute, whenever a creature the target can see within 30 ft of it is damaged by a creature, the target can use its reaction to deal force damage equal to a roll of my Bardic Inspiration die to the attacker.\",\n\t\t\t\t\t\"  6    Hero: I speak the tale of an epic hero. The target gains temporary hit points equal to a roll of my Bardic Inspiration die + my bard level. While it has these temporary hit points, the target's walking speed increases by 10 ft.\",\n\t\t\t\t\t\"  7    Fey: I recount the tale of a mischievous fey. The target must succeed on a Wisdom saving throw or become charmed by me until the end of its next turn. The charmed target must use its action to make a melee attack against a creature other than itself that I mentally choose. The target can act normally on its turn if I choose no other creature.\",\n\t\t\t\t\t\"  8    Dark Spirit: I speak a dreadful tale of a slayer in the dark. The target becomes invisible until the end of its next turn or until it hits a creature with an attack. If it hits a creature with an attack during this invisibility, that creature takes necrotic damage equal to a roll of my Bardic Inspiration die and is frightened of the target until the end of its next turn.\",\n\t\t\t\t\t\"  9    Giant: I speak of the deeds of a mighty giant. Each creature of the target's choice it can see within 30 ft of it must make a Strength saving throw, taking force damage equal to two rolls of my Bardic Inspiration die on a failed save and is knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\n\t\t\t\t\t\" 10    Dragon: I breathe a poem of a wrathful dragon. The target magically spews fire from their mouth in a 30-ft cone. Each creature in that area must make a Dexterity saving throw, taking fire damage equal to three rolls of my Bardic Inspiration die on a failed save, or half as much damage on a successful one.\",\n\t\t\t\t\t\" 11    Celestial: I speak of the exalted deeds of a celestial. The target regains hit points equal to two rolls of my Bardic Inspiration die + my bard level, and I end one disease or a condition from the following list affecting the target: blinded, deafened, paralyzed, petrified, or poisoned.\",\n\t\t\t\t\t\" 12    Unknown: I utter an incomprehensible fable from a being beyond the stars. The target must succeed on an Intelligence saving throw or take psychic damage equal to three rolls of my Bardic Inspiration die, and the target is unable to speak any language for 1 minute.\"\n\t\t\t\t], \"\\n\")\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\tsource : [[\"UA:SP4\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\n\t\t\t]),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\t\tif (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]] && v.thisWeapon[4].indexOf(\"bard\") !== -1) {\n\t\t\t\t\t\t\t// If RAW is selected, first test if this spell is eligible to use with a spellcasting focus\n\t\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\n\t\t\t\t\t\t\tvar spellObj = SpellsList[v.thisWeapon[3]];\n\t\t\t\t\t\t\tif (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components))) return;\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\n\t\t\t\t\t\t\tvar d6Regex = /(\\d+)d6/;\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd6') != -1) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd6', 'Cd6');\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd6') != -1) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd6', 'Qd6');\n\t\t\t\t\t\t\t} else if (d6Regex.test(fields.Damage_Die)) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d6Regex, Number(fields.Damage_Die.replace(d6Regex, '$1')) + 1 + 'd6');\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d6 dmg\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d6';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\n\t\t\t\t],\n\t\t\t\tspellAdd : [\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\t\t\t// Do not process if a psionic, not a bard spell, or, if RAW is selected, not eligible to use with a spellcasting focus\n\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"bard\" || (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components)))) return;\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d6\", true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d6\", true, true)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\n\t\t\t\t]\n\t\t\t},\n\t\t\tchoices : [\"RAW: only +1d6 for spells with non-costly material components\", \"Allow +1d6 for any bard spell\"],\n\t\t\t\"raw: only +1d6 for spells with non-costly material components\" : {\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"If I use a spiritual focus to cast a bard spell, I can add 1d6 to one damage or healing roll\"\n\t\t\t\t])\n\t\t\t},\n\t\t\t\"allow +1d6 for any bard spell\" : {\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\n\t\t\t\t])\n\t\t\t},\n\t\t\tdefaultChoice : \"allow +1d6 for any bard spell\"\n\t\t},\n\t\t\"subclassfeature6.1\" : {\n\t\t\tname : \"Spirit Session\",\n\t\t\tsource : [[\"UA:SP4\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"Using my spiritual focus, I can conduct a hour-long ritual to channel spirit during a rest\",\n\t\t\t\t\"The number of willing participants, me included, can be up to my Proficiency Bonus\",\n\t\t\t\t\"At the end, I learn a divination or necromancy spell of my choice until I start a long rest\",\n\t\t\t\t\"The spell can't be higher level than the number of participants and of a level I can cast\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Spirit Session\",\n\t\t\t\tschool : [\"Div\", \"Necro\"],\n\t\t\t\tfirstCol : \"SS\"\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Mystical Connection\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"I can roll a d6 instead of expending a bardic inspiration die when I do Tales from Beyond\",\n\t\t\t\t\"Even if I roll a d6, I still roll my bardic inspiration die for the effect, but not expend it\"\n\t\t\t])\n\t\t}\n\t}\n});\nAddSubClass(\"warlock\", \"the undead-ua\",{\n\tregExpSearch : /^(?=.*undead)(?=.*warlock).*$/i,\n\tsubname : \"the Undead\",\n\tsource : [[\"UA:SP4\", 1]],\n\tspellcastingExtra : [\"bane\", \"false life\", \"blindness/deafness\", \"phantasmal force\", \"phantom steed\", \"speak with dead\", \"death ward\", \"greater invisibility\", \"antilife shell\", \"cloudkill\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Form of Dread\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 1,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can transform for 1 minute and gain the following benefits:\",\n\t\t\t\t\" \\u2022 I gain temporary hit points equal to 1d10 + my warlock level\",\n\t\t\t\t\" \\u2022 I am immune to the frightened condition\",\n\t\t\t\t\" \\u2022 Once per turns when I hit an attack, I can force the target to make a Wis save\",\n\t\t\t\t\"   If the target fails this save, it is frightened of me until the end of my next turn\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn \"1d10+\" + n + \" temp HP\";\n\t\t\t}),\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"bonus action\", \"\"]],\n\t\t\tsavetxt : { immune : [\"frightened (Form of Dread)\"] }\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Grave Touched\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"I no longer need to eat, drink, or breathe\",\n\t\t\t\t\"When I damage a creature with an attack, I can change the damage type to necrotic\",\n\t\t\t\t\"While I'm in my Form of Dread, I can roll one extra damage die for this necrotic damage\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Mortal Husk\",\n\t\t\tsource : [[\"UA:SP4\", 4]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"I have resistance to necrotic damage, or immunity while I'm in my Form of Dread\",\n\t\t\t\t\"When I'm reduced to 0 HP, I can cause my body to explode and I revive with 1 HP after\",\n\t\t\t\t\"Each creature of my choice within 30 ft takes 2d10 + my warlock level necrotic damage\",\n\t\t\t\t\"After this, I gain 1 level of exhaustion and must complete 1d4 long rests to do so again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 10 ? \"\" : \"2d10+\" + n + \" damage, 1\\xD7 per 1d4 long rests\"\n\t\t\t}),\n\t\t\tdmgres : [[\"Necrotic\"]],\n\t\t\tsavetxt : { immune : [\"necrotic (Form of Dread)\"] },\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Mortal Husk (revive)\",\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"1d4 LR\"\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Spirit Projection\",\n\t\t\tsource : [[\"UA:SP4\", 4]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can project my spirit from my body, leaving it suspended and unconscious\",\n\t\t\t\t\"This lasts 1 hour or until my concentration is broken; Damage and effects affect both\",\n\t\t\t\t\"When it ends, I can have my spirit return to my body or my body teleport to my spirit\",\n\t\t\t\t\"My spirit has my abilities, but no gear; While projecting I gain the following benefits:\",\n\t\t\t\t\" \\u2022 My spirit and body gain resistance to bludgeoning, piercing, and slashing damage\",\n\t\t\t\t\" \\u2022 My conjuration/necromancy spells need no verbal, somatic, non-costly material comp.\",\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and can hover\",\n\t\t\t\t\" \\u2022 Move through creatures/objects as difficult terrain; 1d10 force damage if end turn in\",\n\t\t\t\t\" \\u2022 While in my Form of Dread, once per turns when I deal necrotic damage, I can heal\",\n\t\t\t\t\"   I regain hit points equal to half the amount of necrotic damage dealt\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"action\", \"\"]]\n\t\t}\n\t}\n});\n\n// ua_20201026_Subclasses-Part-5.js\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 5 article to MPMB's Character Record Sheet\r\n// This file contains contributions by WondrousLittleWizard\r\n\r\n// Define the source\r\nSourceList[\"UA:SP5\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 5\",\r\n\tabbreviation : \"UA:SP5\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_102620_Subclasses05.pdf\",\r\n\tdate : \"2020/10/26\"\r\n};\r\n\r\nAddSubClass(\"monk\", \"ascendant dragon-ua\", {\r\n\tregExpSearch : /^(?=.*ascendant)(?=.*(dragon|draconic))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Ascendant Dragon\",\r\n\tsubnameShort: \"Ascendant Dragon\",\r\n\tsource : [[\"UA:SP5\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Disciple\",\r\n\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can change the damage type of my unarmed strikes to acid, cold, fire, lightning, poison\",\r\n\t\t\t\t\"As a reaction when I fail an Intimidation or Persuasion check, I can reroll the check\",\r\n\t\t\t\t\"If this turns it into a success, I can't do so again until I finish a long rest; I learn Draconic\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\taction : [[\"reaction\", \" (reroll check)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reroll\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"Change type to acid/cold/fire/lightning/poison\";\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I damage a target with an unarmed strike, I can change the damage type to acid, cold, fire, lightning or poison.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"breath of the dragon\" : {\r\n\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\textraname : \"Ascendant Dragon 3\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar iMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"When I take the Attack action on my turn, I can replace one attack with a breath weapon\",\r\n\t\t\t\t\t\t\"This deals \" + (n < 11 ? 2 : 3) + \"d\" + iMonkDie + \" acid, cold, fire, lightning, or poison (my choice) damage to all in the area\",\r\n\t\t\t\t\t\t\"The area can be a 20-ft cone or a 5-ft wide, 30-ft line; Dex save to halve the damage\",\r\n\t\t\t\t\t\t\"I can do this my Proficiency Bonus times per long rest, or by expending 1 ki point\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, the energy clings to those damaged by this, hurting them every turn\",\r\n\t\t\t\t\t\t\"At the start of each of their turns, they take 1d\" + iMonkDie + \" damage of the chosen type\",\r\n\t\t\t\t\t\t\"At the end of each of their turns, they can repeat the save to end this effect on themselves\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : \"Prof B. per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"1 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 11 ? 2 : 3) + \"d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon).*$/i,\r\n\t\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\ttype : \"Natural\",\r\n\t\t\t\t\tdamage : [2, 4, \"My choice\"],\r\n\t\t\t\t\trange : \"5-ft \\xD7 30-ft line\",\r\n\t\t\t\t\tdescription : \"All in area; Dex save for half damage; Alt: 20-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmonkweapon : false,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tUA_WotAD_BreathWeapon : true,\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && v.theWea.UA_WotAD_BreathWeapon) {\r\n\t\t\t\t\t\t\t\tvar n = classes.known.monk.level;\r\n\t\t\t\t\t\t\t\tvar aMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = (n < 11 ? 2 : 3) + \"d\" + aMonkDie;\r\n\t\t\t\t\t\t\t\tif (n >= 17) fields.Description += (fields.Description ? '; ' : '') + 'Clings to targets';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My Breath of the Dragon deals damage equal to two rolls of my Martials Arts die. At 11th level, this increases to three rolls of my Martial Arts die. At 17th level, the energy clings to the target. At the start of each of a target's turns, it takes damage of the type the breath dealt equal to one roll of my Martial Arts die. At the end of its turn, the creature can repeat the save, ending the effect on itself on a success.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"breath of the dragon\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wings Unfurled\",\r\n\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"Prof B. / long rest or 1 ki\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Step of the Wind, I can gain a flying speed equal to my walking speed\",\r\n\t\t\t\t\"I can do this Prof Bonus per long rest, or by using 2 ki points to use Step of the Wind\"\r\n\t\t\t]),\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Wings Unfurled\",\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\taltResource : \"1 ki\"\r\n\t\t\t}],\r\n\t\t\t\"aspect of the wyrm\" : {\r\n\t\t\t\tname : \"Aspect of the Wyrm\",\r\n\t\t\t\textraname : \"Ascendant Dragon 11\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"As a bonus action, I can activate a 30 ft aura of draconic power that lasts for 1 minute\",\r\n\t\t\t\t\t\t\"I choose acid, cold, fire, lightning, or poison damage when I activate this aura\",\r\n\t\t\t\t\t\t\"From 17th-level, all creatures of my choosing in the aura take 4d10 damage of this type\",\r\n\t\t\t\t\t\t\"My allies in the aura and myself gain resistance to the chosen damage type\",\r\n\t\t\t\t\t\t\"When an attack hits one of us, the one hit can use their reaction to damage the attacker\",\r\n\t\t\t\t\t\t\"This damage is of the chosen damage type, equal to one roll of my martial arts\",\r\n\t\t\t\t\t\t\"I can activate this aura once per long rest, or by expending 4 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) aDesc.splice(2,1);\r\n\t\t\t\t\treturn desc(aDesc);\r\n\t\t\t\t}),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"4 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 11 ? \"\" : \"1d\" + (n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (activate)\"], [\"reaction\", \" (if active)\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"aspect of the wyrm\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Ascendant Aspect\",\r\n\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I gain 30 ft blindsight and both Breath of the Dragon and Aspect of the Wyrm improve\"),\r\n\t\t\tvision : [[\"blindsight\", 30]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar UASP5_Ranger_Subclass_Drakewarden = AddSubClass(\"ranger\", \"drakewarden-ua\", {\r\n\tregExpSearch : /^(?=.*(drake|dragon|draconic))(?=.*(warden|ranger|trainer)).*$/i,\r\n\tsubname : \"Drakewarden\",\r\n\tsource : [[\"UA:SP5\", 2]],\r\n\tfullname : \"Drakewarden\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Gift\",\r\n\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Draconic language and the Thaumaturgy cantrip\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Draconic Gift\",\r\n\t\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drake Companion\",\r\n\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon my drake to an empty space within 30 ft that I can see\",\r\n\t\t\t\t'Select a \"Drake Companion\" on the companion page for its stats and rules',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \" (summon)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\tcreaturesAdd : [[\"Drake Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Drake Companion\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Dragon\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : \"14+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [3, 10],\r\n\t\t\t\thdLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tminlevelLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [16, 12, 15, 8, 14, 8],\r\n\t\t\t\tsaves : [\"\", 3, \"\", \"\", 4, \"\"],\r\n\t\t\t\tdamage_immunities : \"the chosen Draconic Essence damage type\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"Draconic\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"Only 1d6 is piercing damage, the rest is of the chosen Draconic Essence damage type\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Warden\",\r\n\t\t\t\t\tdescription : \"The drake obeys the commands of its warden and shares its proficiency bonus. It takes its turn immediately after that of its warden, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its warden takes a bonus action to command it to take another action. If its warden is incapacitated, the drake can take any action, not just Dodge. The drake vanishes after a number of hours equal to its proficiency bonus, when it is reduced to 0 hit points, when its warden summons another drake, or when its warden dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Draconic Essence\",\r\n\t\t\t\t\tdescription : \"When the drake is summoned, choose a damage type: acid, cold, fire, lightning, or poison.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infused Strikes\",\r\n\t\t\t\t\tdescription : \"As a reaction when another creature within 30 ft of the drake that it can see hits with a weapon attack, the drake can infuse the strike with its essence, causing the attack to deal an extra 1d6 damage of its chosen Draconic Essence damage type\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Bond of Fang and Scale (Drakewarden 7)\",\r\n\t\t\t\t\tminlevel : 7,\r\n\t\t\t\t\tdescription : \"When the drake is summoned, it gains either a 40 ft swimming speed and can breathe underwater, or a 40 ft flying speed and has wings. The drake's bite deals an extra 1d6 damage of its chosen Draconic Essence type.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"BlueText.Comp.Use.Attack.1.Damage Die\", mod : \"1d6\", text : \"The drake's bite attack deals an extra 1d6 damage of the type chosen for its Draconic Essence.\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly/swim 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly/swim 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Perfected Bond (Drakewarden 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The drake's size is now Large and its bite attack deals an extra 1d6 damage (for a total of +2d6) of its chosen Draconic Essence type.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"BlueText.Comp.Use.Attack.1.Damage Die\", mod : \"1d6\", text : \"The drake's bite attack deals another extra 1d6 damage (for a total of +2d6) of the type chosen for its Draconic Essence.\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 4); // Small\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.ranger && !classes.known.rangerua) return;\r\n\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\tvar rngrLvlM = 5 * rngrLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + rngrLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 as a base\\n + 5 \\xD7 \" + rngrLvl + \" from five times its warden's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Bond of Fang and Scale\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I summon my drake I can choose for it to have 40 ft flying or swimming speed\",\r\n\t\t\t\t\"If I choose swimming, it also gains the ability to breathe underwater\",\r\n\t\t\t\t\"The drake's bite attack deals an extra 1d6 damage chosen by its Draconic Essense\",\r\n\t\t\t\t\"While it is summoned, I gain resistance to the damage type of its Draconic Essense\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"(See Drake)\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drake's Breath\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause my drake or myself to exhale a 30-ft cone breath weapon\",\r\n\t\t\t\t\"Its damage type is acid, cold, fire, lightning, or poison; Dex save to halve the damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : (n < 15 ? 6 : 8) + \"d6 damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*drake)(?=.*breath).*$/i,\r\n\t\t\t\tname : \"Drake's Breath\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [6, 6, \"My choice\"],\r\n\t\t\t\trange : \"30-ft cone\",\r\n\t\t\t\tdescription : \"Hits all in area; Dex save for half damage; Damage type: acid, cold, fire, lightning, or poison\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tDrakewardenDrakeBreath : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.DrakewardenDrakeBreath && (classes.known.rangerua || classes.known.ranger)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Damage_Die = (rngrLvl < 15 ? 6 : 8) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\",\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Perfected Bond\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Large and its bite deals +1d6 damage chosen by its Draconic Essence\",\r\n\t\t\t\t\"As a reaction when the drake or I take damage while within 30 ft of each other,\",\r\n\t\t\t\t\"I can give myself or the drake resistance to that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(UASP5_Ranger_Subclass_Drakewarden);\r\n};\r\n\n// ua_20210126_Gothic-Lineages.js\n// This file adds the content from the Unearthed Arcana 2021: Gothic Lineages article to MPMB's Character Record Sheet\n// This file contains contributions by Metacomet10, MarvinTheParanoidAndroid, and CountVladmir\n\nSourceList[\"UA:GL\"] = {\n\tname : \"Unearthed Arcana: Gothic Lineages\",\n\tabbreviation : \"UA:GL\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Ravenloft\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_GothicLineages.pdf\",\n\tdate : \"2021/01/26\"\n};\n\nRaceList[\"dhampir-ua\"] = {\n\tregExpSearch : /dhampir/i,\n\tname : \"Dhampir\",\n\tsource : [[\"UA:GL\", 2]],\n\tplural : \"Dhampirs\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 },\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*vampiric)(?=.*bite).*$/i,\n\t\tname : \"Vampiric Bite\",\n\t\tsource : [[\"VRGtR\", 17]],\n\t\tability : 3,\n\t\ttype : \"Simple\",\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Adv. while at or below half HP; Can empower myself on hit\",\n\t\tisAlwaysProf : true,\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Vampiric Bite\",\n\t\tadditional : \"empower myself\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\n\t\trecovery : \"long rest\"\n\t}],\n\tscorestxt : \"+2 to one ability score, and +1 to a different score of my choice\",\n\ttrait : \"Dhampir\" + (typePF ? \"\\n \" : \"\\t\") +\n\t\"\\u2022 Type: My creature type is both Humanoid and Undead.\" +\n\t\"\\n \\u2022 Spider Climb: Climbing speed equal to walking speed. At 3rd level, I can move up, down, and across vertical surfaces and upside down along ceilings, while leaving my hands free.\" +\n\t\"\\n \\u2022 Vampiric Bite: Uses Constitution and has adv. on the attack roll if I'm at or below half HP. My Proficiency Bonus per long rest, when I hit a creature other than a construct or undead, I can empower myself. I either regain HP or gain a bonus on my next ability check or attack roll. The bonus is equal to the piercing damage dealt.\"\n};\nRaceList[\"hexblood-ua\"] = {\n\tregExpSearch : /hexblood/i,\n\tname : \"Hexblood\",\n\tsource : [[\"UA:GL\", 4]],\n\tplural : \"Hexbloods\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscorestxt : \"+2 to one ability score, and +1 to a different score of my choice\",\n\ttrait : \"Hexblood\" + (typePF ? \"\\n \" : \"\\t\") +\n\t\"\\u2022 Fey Resilience: I'm both Humanoid and Fey. I have adv. on saves vs. charms.\" +\n\t\"\\n \\u2022 Magic Token: As an action once per long rest, I can harmlessly remove a lock of my hair, one of my nails or teeth and imbue this token with magic until I finish a long rest. While the token is imbued in this way, I can telepathically speak to a creature holding it or see and hear around it. See the Notes page for more information.\" +\n\t\"\\n \\u2022 Hex Magic: I known Disguise Self and Hex. I can cast each spell once per long rest without using a spell slot, or by using a spell slot.\",\n\ttoNotesPage : [{\n\t\tname : \"Hexblood's Magic Token\",\n\t\tnote : [\"As an action, I can harmlessly pull out one of my nails, a tooth, or a lock of hair. This token is imbued with magic until I finish a long rest.\",\n\t\t\"While the token is imbued in this way, I can use an action to send a telepathic message to the creature holding or carrying the token, as long as I'm on the same plane of existence and are within 10 miles of it. The message can contain up to twenty-five words.\",\n\t\t\"In addition, while I'm within 10 miles of the token, I can use an action to enter a trance for 1 minute, during which I can see and hear from the token as if I was located where it is. While I'm using my senses at the token's location, I'm blinded and deafened in regard to my own surroundings. Afterward, the token is harmlessly destroyed.\",\n\t\t\"Once I create a token using this feature, I can't do so again until I finish a long rest, at which point my missing part regrows.\"]\n\t}],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\taction : [[\"action\", \"Magic Token\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Magic Token\",\n\t\tusages : 1,\n\t\trecovery : \"long rest\"\n\t}],\n\tspellcastingAbility : [4, 5, 6],\n\tfeatures : {\n\t\t\"hex magic\" : {\n\t\t\tname : \"Hex Magic\",\n\t\t\tminlevel : 1,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Hex Magic\",\n\t\t\t\tspells : [\"disguise self\", \"hex\"],\n\t\t\t\tselection : [\"disguise self\", \"hex\"],\n\t\t\t\tfirstCol : 'oncelr+markedbox',\n\t\t\t\ttimes : 2,\n\t\t\t\tallowUpCasting : true\n\t\t\t}],\n\t\t}\n\t}\n};\nRaceList[\"reborn-ua\"] = {\n\tregExpSearch : /reborn/i,\n\tname : \"Reborn\",\n\tsource : [[\"UA:GL\", 5]],\n\tplural : \"Reborns\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\ttrait : \"Reborn\" + (typePF ? \"\\n \" : \"  \") +\n\t\"\\u2022 Type: My creature type is Humanoid, as well as Construct or Undead (my choice).\" +\n\t\"\\n \\u2022 Deathless Nature: I don't need to sleep, eat, drink, or breathe. I have adv. on saves vs. disease, poison, and death saves. I have resistance to poison damage. Magic can't put me to sleep and I can finish a long rest in 4 hours if I spend it inactive and motionless.\" +\n\t\"\\n \\u2022 Knowledge from a Past Life: When I make an ability check that uses a skill, I can add +1d6 to the roll after seeing the d20 result. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"disease\", \"poison\", \"death saves\"],\n\t},\n\textraLimitedFeatures : [{\n\t\tname : \"Knowledge from a Past Life\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\n\t\trecovery : \"long rest\"\n\t}],\n\tuseFromPreviousRace : {\n\t\tmessage : \"If you replace a race with the Reborn lineage, you can keep the following elements of that race:\"+\n\t\tdesc([\"its size,\",\n\t\t\"any skill proficiencies you gained from it,\",\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\n\t\t\"any languages it knows and gain no new languages.\"], \"\\n   \\u2022 \")+\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\n\t\tdesc([\"are size Medium or Small (your choice),\",\n\t\t\"gain proficiency in two skills of your choice, and\",\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\n\t\tdefaultTraits : {\n\t\t\tsize : [3, 4],\n\t\t\tskillstxt : \"Choose any two skills\"\n\t\t},\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\n\t\tupdateName : \"suffix\"\n\t}\n};\nAddRacialVariant(\"reborn-ua\", \"undead\", {\n\tregExpSearch : /undead/i,\n\tsource : [[\"UA:GL\", 5]],\n\ttrait : RaceList[\"reborn-ua\"].trait.replace(\"Humanoid, as well as Construct or Undead (my choice)\", \"both Humanoid and Undead\").replace(\"  \", \"\\t\")\n});\nAddRacialVariant(\"reborn-ua\", \"construct\", {\n\tregExpSearch : /construct/i,\n\tsource : [[\"UA:GL\", 5]],\n\ttrait : RaceList[\"reborn-ua\"].trait.replace(\"Humanoid, as well as Construct or Undead (my choice)\", \"both Humanoid and Construct\").replace(\"  \", \"\\t\")\n});\n\n// ua_20210311_Folk-of-the-Feywild.js\n// This file adds the content from the Unearthed Arcana 2021: Folk of the Feywild article to MPMB's Character Record Sheet\n// This file contains contributions by CountVladmir and othercrow\n\nSourceList[\"UA:FotF\"] = {\n\tname : \"Unearthed Arcana: Folk of the Feywild\",\n\tabbreviation : \"UA:FotF\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_FeyFolk.pdf\",\n\tdate : \"2021/03/11\"\n};\n\nRaceList[\"fairy-ua\"] = {\n\tregExpSearch : /fairy/i,\n\tname : \"Fairy\",\n\tsource : [[\"UA:FotF\", 2]],\n\tplural : \"Fairies\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tfly : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Fairy Magic\",\n\t\tspells : [\"druidcraft\"],\n\t\tselection : [\"druidcraft\"],\n\t\tfirstCol : \"atwill\"\n\t}],\n\tfeatures : {\n\t\t\"fairy magic\" : {\n\t\t\tname : \"Fairy Magic\",\n\t\t\tminlevel : 1,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Fairy Magic\",\n\t\t\t\tspells : [\"faerie fire\"],\n\t\t\t\tselection : [\"faerie fire\"],\n\t\t\t\tfirstCol : 'oncelr',\n\t\t\t\tallowUpCasting : true\n\t\t\t}],\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Faerie Fire\",\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"long rest\",\n\t\t\t\taltResource : \"SS 1+\"\n\t\t\t}]\n\t\t}\n\t},\n\ttrait : \"Fairy\"+\n\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\n\t\"\\n \\u2022 Fairy Flight: I have a magical flying speed equal to my walking speed and can hover.\"+\n\t\"\\n \\u2022 Fairy Magic: I know the Druidcraft and Faerie Fire spells, and can cast the latter without using a spell slot once per long rest, as well as using slots as normal.\"+\n\t\"\\n \\u2022 Fey Passage: I can squeeze through a space as narrow as 1 inch wide.\"\n};\n\nRaceList[\"feywild hobgoblin-ua\"] = {\n\tregExpSearch : /^(?=.*feywild)(?=.*hobgoblin).*$/i,\n\tname : \"Feywild hobgoblin\",\n\tsortname : \"Hobgoblin, Feywild\",\n\tsource : [[\"UA:FotF\", 2]],\n\tplural : \"Feywild hobgoblins\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tfeatures : {\n\t\t\"fey gift\" : {\n\t\t\tname : \"Fey Gift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\taction : [[\"bonus action\", \" (Help action)\"]],\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"fortune from the many\" : {\n\t\t\tname : \"Fortune from the Many\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"fey gift - additional effect\" : {\n\t\t\tname : \"Fey Gifts - Additional Effects\",\n\t\t\tminlevel : 3,\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Fey Gifts - Additional Effects\",\n\t\t\t\tpage3notes : true,\n\t\t\t\tnote : [\n\t\t\t\t\t\"Whenever I take the Help action, I can choose one of the following effects:\",\n\t\t\t\t\t\" \\u2022 Hospitality: The target and I each gain 1d6 + my Proficiency Bonus in temporary HP\",\n\t\t\t\t\t\" \\u2022 Passage: The target and I gain +10 ft walking speed until my next turn starts\",\n\t\t\t\t\t\" \\u2022 Spite: Enhances the first attack by the target or me that hits before my next turn starts\",\n\t\t\t\t\t\"   The creature hit has disadvantage on its next attack roll it makes within the next minute\"\n\t\t\t\t]\n\t\t\t}]\n\t\t}\n\t},\n\ttrait : \"Feywild hobgoblin\"+\n\t\"\\n \\u2022 Fey Gift: I can take the Help action as a bonus action my Proficiency Bonus per long rest.\"+\n\t\"\\n \\u2022 Fortune from the Many: When I miss an attack or fail an ability check or a save, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5). I can do this a number of times per long rest equal to my Proficiency Bonus.\"+\n\t'\\n \\u2022 From 3rd-level onwards, whenever I take the Help action, I can choose to produce an additional effect: Hospitality, Passage, or Spite. See the 3rd page \"Notes\" section.'\n};\n\nRaceList[\"owlfolk-ua\"] = {\n\tregExpSearch : /owlfolk/i,\n\tname : \"Owlfolk\",\n\tsource : [[\"UA:FotF\", 3]],\n\tplural : \"Owlfolk\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tfly : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tskills : [\"Stealth\"],\n\tvision : [[\"Darkvision\", 90]],\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Magic Sight\",\n\t\tspells : [\"detect magic\"],\n\t\tselection : [\"detect magic\"]\n\t}],\n\taction : [[\"reaction\", \"Nimble Flight\"]],\n\ttrait : \"Owlfolk\"+\n\t\"\\n \\u2022 Magic Sight: I know the spell Detect Magic and can cast as a ritual or by using spell slots as normal.\"+\n\t\"\\n \\u2022 Nimble Flight: My wings give me a flying speed equal to my walking speed. As a reaction when I fall, I can make a Dexterity saving throw (DC 10) to stop falling and fly in place until the start of my next turn.\"+\n\t\"\\n \\u2022 Silent Feathers: I have proficiency in the Stealth skill.\"\n};\n\nRaceList[\"rabbitfolk-ua\"] = {\n\tregExpSearch : /rabbitfolk/i,\n\tname : \"Rabbitfolk\",\n\tsource : [[\"UA:FotF\", 3]],\n\tplural : \"Rabbitfolk\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t},\n\tskills : [\"Perception\"],\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"I can add my proficiency bonus to initiative rolls.\" }],\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\taction : [[\"reaction\", \"Lucky Footwork\"]],\n\ttrait : \"Rabbitfolk\"+\n\t\"\\n \\u2022 Hare-Trigger: I add my proficiency bonus to initiative rolls.\"+\n\t\"\\n \\u2022 Leporine Senses: I have proficiency in the Perception skill.\"+\n\t\"\\n \\u2022 Lucky Footwork: As a reaction when I fail a Dexterity saving throw, I can add +1d4 to the result, potentially making it a success.\"+\n\t\"\\n \\u2022 Rabbit Hop: Once during each of my turns when I walk at least 5 ft, I can hop an extra 1d12 ft without it costing any extra movement. I can only do this if my speed isn't 0.\"\n};\n\n// ua_20210414_Draconic-Options.js\n// This file adds the content from the Unearthed Arcana 2021: Draconic Options article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:DO\"] = {\n\tname : \"Unearthed Arcana: Draconic Options\",\n\tabbreviation : \"UA:DO\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2021/downloads/Unearthed-Arcana-2021-Draconic-Options.pdf\",\n\tdate : \"2021/04/14\"\n};\n\n// Draconic Races\nvar UADO_dragonborns_add = function () { // New dragonborn variants\n\tvar objDragonborns = {\n\t\tChromatic : {\n\t\t\tregExpSearch : /^(?=.*chromatic)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\tvariants : [[\"Black\", \"Acid\"], [\"Blue\", \"Lightning\"], [\"Green\", \"Poison\"], [\"Red\", \"Fire\"], [\"White\", \"Cold\"]],\n\t\t\tbreathWeaponShape : \"5-ft by 30-ft line\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 5-ft by 30-ft line, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest. The damage increases to 3d8 at 5th level, 4d8 at 11th level, and 5d8 at 17th level.\",\n\t\t\t\t\"Chromatic Warding: From 3rd level, I can protect myself using my draconic energies. As an action once per long rest, I can become immune to >>type<< damage for 10 minutes.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"chromatic warding\" : {\n\t\t\t\t\tname : \"Chromatic Warding\",\n\t\t\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\taction : [[\"action\", \"\"]]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tMetallic : {\n\t\t\tregExpSearch : /^(?=.*metallic)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\tvariants : [[\"Brass\", \"Fire\"], [\"Bronze\", \"Lightning\"], [\"Copper\", \"Acid\"], [\"Gold\", \"Fire\"], [\"Silver\", \"Cold\"]],\n\t\t\tbreathWeaponShape : \"15-ft cone\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest.\",\n\t\t\t\t\"Metallic Breath Weapon: At 3rd level I gain a second breath weapon once per long rest, that works just like the first. It doesn't deal damage, but I can choose one effect: Str save or pushed 20 ft and prone, or Con save or incapacitated until my next turn starts.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"metallic breath weapon\" : {\n\t\t\t\t\tname : \"Metallic Breath Weapon\",\n\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tweaponOptions : [{\n\t\t\t\t\t\tregExpSearch : /^(?=.*metallic)(?=.*breath)(?=.*weapon).*$/i,\n\t\t\t\t\t\tname : \"Metallic breath weapon\",\n\t\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\t\tability : 3,\n\t\t\t\t\t\ttype : 'Natural',\n\t\t\t\t\t\tdamage : ['Str save or', '', 'Con save'],\n\t\t\t\t\t\trange : \"15-ft cone\",\n\t\t\t\t\t\tdescription : \"Str save or pushed 20 ft and knocked prone -or- Con save or incapacitated until my next turn starts\",\n\t\t\t\t\t\tabilitytodamage : false,\n\t\t\t\t\t\tdc : true,\n\t\t\t\t\t\tselectNow : true\n\t\t\t\t\t}]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tGem : {\n\t\t\tregExpSearch : /^(?=.*gem)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\tvariants : [[\"Amethyst\", \"Force\"], [\"Crystal\", \"Radiant\"], [\"Emerald\", \"Psychic\"], [\"Sapphire\", \"Thunder\"], [\"Topaz\", \"Necrotic\"]],\n\t\t\tbreathWeaponShape : \"15-ft cone\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest.\",\n\t\t\t\t\"Psionic Mind: I can speak telepathically to \" + (typePF ? \"any creature I can see within 30 ft that understands a language but it can't respond.\" : \"a creature with a language I can see in 30 ft.\"),\n\t\t\t\t\"Gem Flight: From 3rd level, I can temporarily fly. As a bonus action once per long rest, I can gain a flying speed equal to my walking speed and can hover. This lasts for 1 minute.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"gem flight\" : {\n\t\t\t\t\tname : \"Gem Flight\",\n\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor (var sDrBrn in objDragonborns) {\n\t\tvar sDrBrnLC = sDrBrn.toLowerCase();\n\t\tvar oDrBrn = objDragonborns[sDrBrn];\n\t\tRaceList[sDrBrnLC + \" dragonborn-ua\"] = {\n\t\t\tregExpSearch : oDrBrn.regExpSearch,\n\t\t\tname : sDrBrn + \" Dragonborn\",\n\t\t\tsortname : \"Dragonborn, \" + sDrBrn,\n\t\t\tsource : oDrBrn.source,\n\t\t\tplural : sDrBrn + \" Dragonborn\",\n\t\t\tsize : 3,\n\t\t\tspeed : {\n\t\t\t\twalk : { spd : 30, enc : 20 }\n\t\t\t},\n\t\t\tlanguageProfs : [\"Common\", 1],\n\t\t\tweaponOptions : [{\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\n\t\t\t\tname : \"Breath weapon\",\n\t\t\t\tsource : oDrBrn.source,\n\t\t\t\tability : 3,\n\t\t\t\ttype : 'Natural',\n\t\t\t\tdamage : ['Q', 8, 'fire'],\n\t\t\t\trange : oDrBrn.breathWeaponShape.replace('by', '\\xD7'),\n\t\t\t\tdescription : \"Hits all in area; Dex save, success - half damage\",\n\t\t\t\tabilitytodamage : false,\n\t\t\t\tdc : true,\n\t\t\t\tdbBreathWeapon : true,\n\t\t\t\tselectNow : true\n\t\t\t}],\n\t\t\tage : \" reach adulthood by 15 and live around 80 years\",\n\t\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\n\t\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\n\t\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\n\t\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\n\t\t\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\t\t\ttrait : sDrBrn + \" Dragonborn\"+\n\t\t\t\t\"\\n \\u2022 \" + sDrBrn + ' Ancestry: Choose a type of dragon using the \"Racial Options\" button. The damage type of my resistance and my breath weapon are determined by the dragon type chosen.'+\n\t\t\t\t+ oDrBrn.trait.replace(/>>type<< /ig, \"\"),\n\t\t\tfeatures : {\n\t\t\t\t\"breath weapon\" : {\n\t\t\t\t\tname : \"Breath Weapon\",\n\t\t\t\t\tminlevel : 1,\n\t\t\t\t\tusages : \"Proficiency bonus per \",\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tadditional : levels.map(function (n) {\n\t\t\t\t\t\treturn (n < 5 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + 'd8';\n\t\t\t\t\t}),\n\t\t\t\t\tcalcChanges : {\n\t\t\t\t\t\tatkAdd : [\n\t\t\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && (/dragonborn/i).test(CurrentRace.known) && CurrentRace.variant) {\n\t\t\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.dmgres[0];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tvariants : []\n\t\t};\n\t\tif (oDrBrn.features) {\n\t\t\tfor (var sFea in oDrBrn.features) {\n\t\t\t\tRaceList[sDrBrnLC + \" dragonborn-ua\"].features[sFea] = oDrBrn.features[sFea];\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0; i < oDrBrn.variants.length; i++) {\n\t\t\tvar sDrBrnVar = oDrBrn.variants[i][0];\n\t\t\tvar sDrBrnDmg = oDrBrn.variants[i][1];\n\t\t\tAddRacialVariant(sDrBrnLC + \" dragonborn-ua\", sDrBrnVar.toLowerCase(), {\n\t\t\t\tregExpSearch : RegExp(sDrBrnVar, \"i\"),\n\t\t\t\tname : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\",\n\t\t\t\ttrait : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\"+\n\t\t\t\t\toDrBrn.trait.replace(/>>TYPE<</g, sDrBrnDmg).replace(/>>type<</g, sDrBrnDmg.toLowerCase()),\n\t\t\t\tdmgres : [sDrBrnDmg]\n\t\t\t});\n\t\t}\n\t}\n}();\nRaceList[\"draconic kobold-ua\"] = {\n\tregExpSearch : /^(?=.*draconic)(?=.*kobold).*$/i,\n\tname : \"Draconic kobold\",\n\tsortname : \"Kobold, Draconic\",\n\tsource : [[\"UA:DO\", 4]],\n\tplural : \"Draconic kobolds\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tage : \" reach adulthood at age 6 and can live up to 120 years, but rarely do so\",\n\theight : \" are between 2 and 3 feet tall (2'1\\\" + 2d4\\\")\",\n\tweight : \" weigh between 25 and 35 lb (25 + 2d4 \\xD7 1 lb)\",\n\theightMetric : \" are between 65 and 90 cm tall (63 + 5d4 cm)\",\n\tweightMetric : \" weigh between 10 and 15 kg (11 + 5d4 \\xD7 2 / 10 kg)\",\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tfeatures : {\n\t\t\"draconic roar\" : {\n\t\t\tname : \"Draconic Roar\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\taction : [[\"bonus action\", \"\"]],\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t},\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy: Choose one of the following with the \"Racial Options\" button: (1) Brave: advantage on saves vs. being frightened, (2) Cantrip: I know one sorcerer cantrip of my choice, or (3) Tail: I can use my tail that deals 1d6 damage to make unarmed strikes.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n};\nAddRacialVariant(\"draconic kobold-ua\", \"brave\", {\n\tregExpSearch : /brave/i,\n\tname : \"Draconic Kobold-Brave\",\n\tsource : [[\"UA:DO\", 4]],\n\tplural : \"Draconic Kobolds\",\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Brave): I have advantage on saving throws to avoid or end the frightened condition on myself.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\nAddRacialVariant(\"draconic kobold-ua\", \"cantrip\", {\n\tregExpSearch : /cantrip/i,\n\tsource : [[\"UA:DO\", 4]],\n\tspellcastingAbility : [4, 5, 6],\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Draconic Legacy\",\n\t\t\"class\" : \"sorcerer\",\n\t\tlevel : [0, 0],\n\t\tfirstCol : 'atwill'\n\t}],\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Cantrip). I know one cantrip from the sorcerer spell list. Intelligence, Wisdom, or Charisma is my spellcasting ability for it (chosen when I select this race).'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\nAddRacialVariant(\"draconic kobold-ua\", \"tail\", {\n\tregExpSearch : /tail/i,\n\tsource : [[\"UA:DO\", 4]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*draconic)(?=.*tail).*$/i,\n\t\tname : \"Draconic Tail\",\n\t\tsource : [[\"UA:DO\", 4]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tselectNow : true\n\t}],\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Tail): I can make unarmed strikes with my tail. The tail deals 1d6 + my Strength modifier bludgeoning damage.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\n\n// Draconic Feats\nFeatsList[\"gift of the metallic dragon-ua\"] = {\n\tname : \"Gift of the Metallic Dragon\",\n\tsource : [[\"UA:DO\", 4]],\n\tdescriptionFull : \"You've manifested some of the power of metallic dragons, granting you the following benefits:\"+\n\t\"\\n \\u2022 You learn the cure wounds spell. You can cast this spell without expending a spell slot. Once you cast this spell in this way, you can't do so again until you finish a long rest. You can also cast this spell using spell slots you have. The spell's spellcasting ability is Intelligence, Wisdom, or Charisma when you cast it with this feat (choose when you gain the feat).\"+\n\t\"\\n \\u2022 You can manifest protective wings that can shield you or others from attacks. When you or another creature you can see within 5 feet of you is hit by an attack roll, you can use your reaction to manifest spectral wings from your back for a moment. Roll a d4 and grant a bonus to the target's AC equal to the number rolled against that attack roll, potentially causing it to miss. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I know Cure Wounds. I can cast it using spell slots and once per long rest without a spell slot. As a reaction when I or another I can see within 5 ft is hit by an attack, I can add a d4 to AC, potentially causing the attack to miss. I can do this my Prof Bonus per long rest.\",\n\tspellcastingAbility : [4, 5, 6],\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Cure Wounds\",\n\t\tspells : [\"cure wounds\"],\n\t\tselection : [\"cure wounds\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}],\n\taction : [[\"reaction\", \"Metallic Gift (Spectral Wings)\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Metallic Gift (Spectral Wings)\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}]\n};\n\n// Draconic Spells\nSpellsList[\"draconic transformation-ua\"] = {\n\tname : \"Draconic Transformation\",\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\n\tsource : [[\"UA:DO\", 5]],\n\tlevel : 7,\n\tschool : \"Trans\",\n\ttime : \"1 bns\",\n\trange : \"Self\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A statuette of a dragon, worth at least 500 gp\",\n\tduration : \"Conc, 1 min\",\n\tsave : \"Dex\",\n\tdescription : \"Blindsight 30 ft; 40 ft fly speed; at cast and 1 bns: 30-ft cone all 3d8 Force damage, save half (500gp)\",\n\tdescriptionShorter : \"Blindsight 30 ft; 40 ft fly; at cast and 1 bns: 30-ft cone all 3d8 Force dmg, save half (500gp)\",\n\tdescriptionFull : \"With a roar, you draw on the magic of dragons to transform yourself, taking on various draconic features. You gain the following benefits until the spell ends:\"+\n\t\"\\n \\u2022 You have blindsight with a range of 30 feet. Within that range, you can effectively see anything that isn't behind total cover, even if you're blinded or in darkness. Moreover, you can see an invisible creature, unless the creature successfully hides from you.\"+\n\t\"\\n \\u2022 Incorporeal wings sprout from your back, giving you a flying speed of 40 feet.\"+\n\t\"\\n \\u2022 When you cast this spell, and as a bonus action on subsequent turns for the duration, you can exhale a breath of shimmering energy in a 30-foot cone. Each creature in the area must make a Dexterity saving throw, taking 3d8 force damage on a failed save or half as much damage on a successful one.\"\n};\nSpellsList[\"fizban's platinum shield-ua\"] = {\n\tname : \"Fizban's Platinum Shield\",\n\tnameAlt : \"Platinum Shield\",\n\tclasses : [\"sorcerer\", \"wizard\"],\n\tsource : [[\"UA:DO\", 5]],\n\tlevel : 6,\n\tschool : \"Abjur\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A platinum-plated dragon scale, worth at least 500 gp\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"1 crea Acid, Cold, Fire, Lightn. \\u0026 Poison resist., half cover, better Dex saves; 1 bns change crea (500gp)\",\n\tdescriptionFull : \"You create a field of silvery light that surrounds a creature of your choice within range (you can choose yourself). The field sheds dim light out to 5 feet.\"+\n\t\"\\n   As a bonus action on subsequent turns, you can move the field to another creature within 60 feet of the field.\"+\n\t\"\\n   The creature protected by the field gains the following benefits:\"+\n\t\"\\n \\u2022 The creature has half cover.\"+\n\t\"\\n \\u2022 The creature has resistance to acid, cold, fire, lightning, and poison damage.\"+\n\t\"\\n \\u2022 If the creature is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, the creature instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\"\n};\nSpellsList[\"raulothim's psychic lance-ua\"] = {\n\tname : \"Raulothim's Psychic Lance\",\n\tnameAlt : \"Psychic Lance\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"UA:DO\", 6]],\n\tlevel : 4,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"120 ft\",\n\tcomponents : \"V\",\n\tduration : \"Instantaneous\",\n\tsave : \"Int\",\n\tdescription : \"1 crea I see or name I know save or 10d6+1d6/SL Psychic dmg \\u0026 incapacitated till my next turn starts\",\n\tdescriptionShorter : \"1 crea I see or name I know save or 10d6+1d6/SL Psychic dmg \\u0026 incapacitated for 1 rnd\",\n\tdescriptionFull : \"You unleash a shimmering lance of psychic power from your forehead at a creature that you can see within range. Alternatively, you can utter the creature's name. If the named target is within range, it gains no benefit from cover or invisibility as the lance homes in on it. If the named target isn't within range, the lance dissipates, and the spell slot is not expended.\"+\n\t\"\\n   The target must succeed on an Intelligence saving throw or take 10d6 psychic damage and be incapacitated until the start of your next turn.\"+\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d6 for each slot level above 4th.\"\n};\n\n// ua_20211008_Travelers-of-the-Multiverse.js\n// This file adds the content from the Unearthed Arcana 2021: Travelers of the Multiverse article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TotM\"] = {\n\tname : \"Unearthed Arcana: Travelers of the Multiverse\",\n\tabbreviation : \"UA:TotM\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Spelljammer\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_TravelersoftheMultiverse.pdf\",\n\tdate : \"2021/10/08\"\n};\n\n// New races\nRaceList[\"astral elf-ua\"] = {\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(astral|silver void)\\b).*$/i,\n\tname : \"Astral elf\",\n\tsortname : \"Elf, Astral\",\n\tsource : [[\"UA:TotM\", 2]],\n\tplural : \"Astral elves\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Elvish or other\", 1]],\n\tscoresGeneric : true,\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old. Because nothing ages in the Astral Plane, astral elves from that plane can be thousands of years old.\",\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Astral Fire\",\n\t\tspells : [\"dancing lights\", \"light\", \"sacred flame\"],\n\t\tfirstCol : \"atwill\"\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Radiant Soul\",\n\t\tusages : 1,\n\t\trecovery : \"short rest\"\n\t}],\n\ttrait : \"Astral Elf\"+\n\t\"\\n \\u2022 Radiant Soul: Once per short rest when I succeed on a death save, I can regain HP equal to my proficiency bonus + my Int, Wis, or Cha mod (choose when selecting this race).\"+\n\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours if I spend those hours in a trancelike meditation, during which I remain conscious.\"+\n\t\"\\n \\u2022 Trance Proficiencies. Whenever I finish a long rest using Trance, I gain two proficiencies, each one with a weapon or a tool of my choice. They last until I finish my next long rest.\"\n};\nRaceList[\"autognome-ua\"] = {\n\tregExpSearch : /autognome/i,\n\tname : \"Autognome\",\n\tsource : [[\"UA:TotM\", 2]],\n\tplural : \"Autognomes\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Gnomish or other\", 1]],\n\tscoresGeneric : true,\n\tage : \" can live for centuries, up to 500 years\",\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*casing).*$/i,\n\t\tname : \"Armored Casing\",\n\t\tsource : [[\"UA:TotM\", 2]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Built for Success\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\tadv_vs : [\"paralyzed\", \"poison\"],\n\t\timmune : [\"disease\"]\n\t},\n\ttoolProfs : [[\"Tool of my choice\", 2]],\n\ttrait : typePF ?\n\t\t\"Autognome (my type is Construct)\"+\n\t\t\"\\n \\u2022 Cure Wounds, Healing Word, and Spare the Dying work on me.\"+\n\t\t\"\\n \\u2022 Armored Casing: My base AC is 13 + my Dexterity modifier.\"+\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save, after I see the roll, but before the effect.\"+\n\t\t\"\\n \\u2022 Mechanical Nature: I don't need to eat, drink or breathe.\"+\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay in an inactive and motionless state during which I'm conscious.\"+\n\t\t\"\\n \\u2022 True Life: If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\n\t\t:\n\t\t\"Autognome (type is Construct; Cure Wounds, Healing Word, Spare the Dying work on me)\"+\n\t\t\"\\n \\u2022 Armored Casing: While I'm not wearing armor, my AC is 13 + my Dexterity modifier.\"+\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save. I can do this after seeing the d20 roll, but before knowing the roll's effects.\"+\n\t\t\"\\n \\u2022 Mechanical Nature: I have immunities/resistances and don't need to eat, drink or breathe\"+\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay inactive and motionless.\"+\n\t\t\"\\n \\u2022 True Life: If Mending is cast on me, I can expend one HD like during a short rest.\"\n};\nRaceList[\"giff-ua\"] = {\n\tregExpSearch : /giff|hippofolk/i,\n\tname : \"Giff\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Giff\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\tcarryingCapacity : 2,\n\tsavetxt : { text : [\"Adv. on Str saves and checks\"] },\n\tadvantages : [[\"Strength\", true]],\n\ttrait : \"Giff\"+\n\t\"\\n \\u2022 Damage Dealer: Like a hippopotamus in a crystalware shop, I am naturally adept at damaging things. When I roll a 1 on a damage die for a melee attack, I can reroll the die and use the new roll. I can do so no more than once per turn.\"+\n\t\"\\n \\u2022 Hippo Build: I have advantage on Strength-based ability checks and Strength saving throws. In addition, I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"\n};\nRaceList[\"hadozee-ua\"] = {\n\tregExpSearch : /hadozee/i,\n\tname : \"Hadozee\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Hadozees\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tscoresGeneric : true,\n\taction : [\n\t\t[\"bonus action\", \"Dexterous Feet (Use an Object)\"],\n\t\t[\"reaction\", \"Glide (negate falling damage)\"]\n\t],\n\ttrait : \"Hadozee\"+\n\t\"\\n \\u2022 Dexterous Feet: As a bonus action, I can do the Use an Object action.\"+\n\t\"\\n \\u2022 Glide: If I'm not incapacitated or wearing heavy armor, I can extend my skin membranes and glide. When I do so, I can perform the following aerial maneuvers:\"+\n\t\"   - When I fall, I can move up to 5 ft horizontally for every 1 ft I descend.\"+\n\t\"   - As a reaction when I would take damage from a fall, I can reduce this damage to 0.\"\n};\nRaceList[\"plasmoid-ua\"] = {\n\tregExpSearch : /plasmoid/i,\n\tname : \"Plasmoid\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Plasmoids\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Acid\", \"Poison\"],\n\tsavetxt : {\n\t\tadv_vs : [\"poison\"],\n\t\ttext : [\"Adv. on grapple checks\"]\n\t},\n\taction : [[\"bonus action\", \"Extrude/Reabsorb Pseudopod\"]],\n\ttrait : \"Plasmoid (my type is Ooze)\"+\n\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Hold Breath: I can hold my breath for 1 hour.\"+\n\t\"\\n \\u2022 Amorphous: I can squeeze through a 1-inch wide space without my equipment or clothes. \" + (typePF ? \"I have advantage on grapple checks.\" : \"I also have advantage on ability checks I make to initiate or escape a grapple.\")+\n\t\"\\n \\u2022 Shape Self: While not incapacitated, I can reshape my body to have a head and limbs, or back to a limbless blob (no action). As a bonus action, I can extrude/reabsorb a pseudopod up to 6 inch wide and 10 ft long. It can carry up to 10 lb. I can use it to manipulate objects, open unlocked doors, stow/retrieve objects, or pour out contents of a container.\" + (typePF ? \" It can't attack or use magic items.\" : \"\")\n};\nRaceList[\"thri-kreen-ua\"] = {\n\tregExpSearch : /thri.?kreen/i,\n\tname : \"Thri-kreen\",\n\tsource : [[\"UA:TotM\", 4]],\n\tplural : \"Thri-kreen\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\t// age, height and weight taken from Shining South (2004) p17 (using the male option)\n\tage : \" reach maturity around 7 years old and typically live around 30 years\",\n\theight : \" stand between 5 and 7 feet tall (5'2\\\" + 2d10\\\")\",\n\tweight : \" weigh between 140 and 375 pounds (135 + 2d10 \\xD7 2d6 lb)\",\n\theightMetric : \" stand from 1,6 to over 2 metres tall (160 + 5d10 cm)\",\n\tweightMetric : \" weigh between 60 and 180 kg (60 + 5d10 \\xD7 4d6 / 10 kg)\",\n\tlanguageProfs : [\"Common\", \"Thri-kreen Telepathy\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*carapace)(?=.*chameleon).*$/i,\n\t\tname : \"Chameleon Carapace\",\n\t\tsource : [[\"UA:TotM\", 4]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\taction : [[\"action\", \"Chameleon Carapace\"]],\n\ttrait : \"Thri-kreen (my type is Monstrosity)\"+\n\t\"\\n \\u2022 Chameleon Carapace: \" + (typePF ? \"AC 13 + Dex,\" : \"My base AC is 13 + Dex mod. I have\") + \" adv. on Stealth checks to hide.\"+\n\t\"\\n \\u2022 Secondary Arms: I have two slightly smaller arms below my primary pair of arms.\" + (typePF ? \" \" : \"\\n   \") + \"I can't use these secondary arms to wield a shield or weapons other than light weapons.\"+\n\t\"\\n \\u2022 Sleepless: I don't \" + (typePF ? \"\" : \"require \") + \"sleep. I rest by refraining from strenuous activity.\"+\n\t\"\\n \\u2022 \" + (typePF ? \"Thri-kreen \" : \"\") + \"Telepathy: I can communicate telepathically to any number of willing creatures I can see that understand at least one language, while within 120 ft. Any can break this (no action).\"\n};\n\n// This file adds the content from the Unearthed Arcana 2022: Heroes of Krynn article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n\r\n// ua_20220308_Heroes-of-Krynn.js\r\nSourceList[\"UA:HoK\"] = {\r\n\tname : \"Unearthed Arcana: Heroes of Krynn\",\r\n\tabbreviation : \"UA:HoK\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022HeroesofKrynn.pdf\",\r\n\tdate : \"2022/03/08\"\r\n};\r\n\r\n// Race\r\nRaceList[\"kender-ua\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"UA:HoK\", 1]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"frightened\"]},\r\n\tabilitySave : 6,\r\n\tfeatures : {\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"kender ace\" : {\r\n\t\t\tname : \"Kender Ace\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Kender Ace Table\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I possess a magical ability to pull an item out of a bag or another container.\",\r\n\t\t\t\t\t\"As a bonus action, I can reach into a container I'm carrying and roll a d6 to determine the item I pull out.\",\r\n\t\t\t\t\t\"The object glimmers softly and disappears after 1 hour.\",\r\n\t\t\t\t\t\"I can use this bonus action a number of times equal to my proficiency bonus, and you regain all expended uses when I finish a long rest.\\n\",\r\n\t\t\t\t\t\"  d6\\tItem\",\r\n\t\t\t\t\t\"   1\\t5d6 gold pieces\",\r\n\t\t\t\t\t\"   2\\t1 simple weapon of my choice that has the light property\",\r\n\t\t\t\t\t\"   3\\t1 item of my choice from the Adventuring Gear table (PHB 148), no more than 1 gp and 1 lb\",\r\n\t\t\t\t\t\"   4\\t1 random item from the Trinkets table (PHB 159)\",\r\n\t\t\t\t\t\"   5\\tMy choice of a crowbar or a grappling hook\",\r\n\t\t\t\t\t\"   6\\t1 item of my choice from the Tools table (PHB 154), no more than 10 gp\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t(typePF ? \"\\n \" : \"\\t\")+\"\\u2022 Brave: I have adv. on saves to avoid or end being frightened.\"+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can have a creature that can hear and understand me within 60 ft make a Wisdom save (DC 8 + Prof B. + Cha mod) or gain disadv. on attacks until my next turn starts. I can do this a number of times per long rest equal to my Prof Bonus.\"+\r\n\t'\\n \\u2022 Kender Ace: Starting at 3rd-level, as a bonus action, I can reach into a container and roll on the Kender Aces table to determine the item I pull out, see the \"Notes\" section. I can do this a number of times per long rest equal to my proficiency bonus.'\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"sorcerer\", \"lunar magic-ua\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*(lunar|moon)).*$/i,\r\n\tsubname : \"Lunar Magic\",\r\n\tsource : [[\"UA:HoK\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Moon Fire\",\r\n\t\t\tsource : [[\"UA:HoK\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I know the Sacred Flame cantrip and can use it on 2 creatures within 5 ft of each other\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Moon Fire\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tweaponsAdd : { select : [\"Sacred Flame\"] },\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sacred flame\" : {\r\n\t\t\t\t\tdescription : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 at CL 5, 11, and 17\",\r\n\t\t\t\t\tdescriptionShorter : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 CL 5/11/17\",\r\n\t\t\t\t\tdescriptionCantripDie : \"Up to 2 creas I see, max 5 ft apart, save or `CD`d8 Radiant dmg; no bonus for cover on save\",\r\n\t\t\t\t\tchanges : \"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName == 'sacred flame') {\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(\"1 creature\", \"up to 2 creatures within 5 ft\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Lunar Embodiment\",\r\n\t\t\tsource : [[\"UA:HoK\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tadditional : levels.map(function (n) { return (n < 3 ? 3 : n < 5 ? 6 : n < 7 ? 9 : n < 9 ? 12 : 15) + \" additional spells known\"}),\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"dissonant whispers\", \"sanctuary\", \"moonbeam\", \"darkness\", \"blindness/deafness\", \"death ward\", \"bestow curse\", \"phantom steed\", \"freedom of movement\", \"evard's black tentacles\", \"hallucinatory terrain\", \"mass cure wounds\", \"mislead\", \"dream\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tdescription : levels.map(function(n) {\r\n\t\t\t\tvar phases = {\r\n\t\t\t\t\t\"\\u25CB Full: \" : [\"Faerie Fire\", \"Moonbeam\", \"Death Ward\", \"Freedom of Movement\", \"Mass Cure Wounds\"],\r\n\t\t\t\t\t\"\\u25CF New: \" : [\"Dissonant Whispers\", \"Darkness\", \"Bestow Curse\", \"Evard's Black Tentacles\", \"Mislead\"],\r\n\t\t\t\t\t\"\\u25D6 Crescent: \" : [\"Sanctuary\", \"Blindness/deafness\", \"Phantom Steed\", \"Hallucinatory Terrain\", \"Dream\"]\r\n\t\t\t\t};\r\n\t\t\t\tvar aReturn = [\r\n\t\t\t\t\t\"When I finish a long rest, I can choose a lunar phase: Full, New, or Crescent Moon\",\r\n\t\t\t\t\t\"I can cast the spells of the chosen lunar phase each once per long rest without a spell slot\"\r\n\t\t\t\t];\r\n\t\t\t\tvar iSpellsAdd = n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : 5;\r\n\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\taReturn.push(phase + phases[phase].slice(0,iSpellsAdd).join(\", \"));\r\n\t\t\t\t}\r\n\t\t\t\t//aReturn.push(\"I know all \" + (iSpellsAdd * 3) + \" spells above; They don't count towards the number of spells I can know\");\r\n\t\t\t\treturn desc(aReturn);\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName === \"sorcerer\" && !isDuplicate && CurrentSpells.sorcerer.extra.indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\tvar phases = {\r\n\t\t\t\t\t\t\t\t\"F\" : [\"faerie fire\", \"moonbeam\", \"death ward\", \"freedom of movement\", \"mass cure wounds\"],\r\n\t\t\t\t\t\t\t\t\"N\" : [\"dissonant whispers\", \"darkness\", \"bestow curse\", \"evard's black tentacles\", \"mislead\"],\r\n\t\t\t\t\t\t\t\t\"C\" : [\"sanctuary\", \"blindness/deafness\", \"phantom steed\", \"hallucinatory terrain\", \"dream\"]\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\t\t\t\tif (phases[phase].indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\t\t\tspellObj.firstCol = phase;\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'The letters \"F\", \"N\", or \"C\" in the first column are used to indicate that a spell belongs to either the Full Moon, New Moon, or Crescent Moon lunar phase.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tspellFirstColTitle : \"Ph\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\t// Because Death Ward is a 4th-level spell, but gained at 5th level, we need to manually add it at sorcerer level 5 and 6\r\n\t\t\t\tname : \"Death Ward\",\r\n\t\t\t\tspells : [\"death ward\"],\r\n\t\t\t\tselection : [\"death ward\"],\r\n\t\t\t\tfirstCol : \"F\",\r\n\t\t\t\ttimes : levels.map(function(n){ return n === 5 || n === 6 ? 1 : 0; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Lunar Boons\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Each lunar phase is additionally associated with spells of the following schools of magic:\",\r\n\t\t\t\t\"\\u25CB Full: Abjur \\u0026 Conj\\t\\t\\u25CF New: Evoc \\u0026 Necro\\t\" + (typePF ? \"\\t\" : Array(8).join(\" \")) + \"\\u25D6 Crescent: Div \\u0026 Trans\",\r\n\t\t\t\t\"I can reduce the sorcery point needed for Metamagic of spells of my current phase by 1\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Waxing and Waning\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 sorcery point to change my lunar phase\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Lunar Empowerment\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [passive benefits for current phase]\" + desc([\r\n\t\t\t\t\"\\u25CB Full: I shed bright light in a 10-ft radius and dim light for an additional 10 ft\",\r\n\t\t\t\t\"        Myself and creatures I choose inside this bright light have advantage on saves\",\r\n\t\t\t\t\"\\u25CF New: Adv. on Stealth checks; If I'm in dim light or darkness, attacks have disadv. vs me\",\r\n\t\t\t\t\"\\u25D6 Crescent: I have resistance to Necrotic and Radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [[\"Necrotic\", \"Necro. (in crescent)\"], [\"Radiant\", \"Rad. (in crescent)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Lunar Phenomenon\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional: \"per phase: 1\\xD7 per long rest or 5 SP\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, or as part of changing phase, I can use a power of the (new) phase:\",\r\n\t\t\t\t\"\\u25CB Full: Chosen creatures within 30 ft of me must make a Constitution save or be blinded\",\r\n\t\t\t\t\"   This lasts until their next turn ends; I also heal one creature within 30 ft for 3d8 HP\",\r\n\t\t\t\t\"\\u25CF New: Chosen creatures within 30 ft of me must make a Dexterity save\",\r\n\t\t\t\t\"   If failed, they take 3d10 Necrotic damage and have 0 speed until their next turn ends\",\r\n\t\t\t\t\"   Also, I become invisible until the end of my next turn, or until I attack or cast a spell\",\r\n\t\t\t\t\"\\u25D6 Crescent: I can magically teleport to an unoccupied space I can see within 60 ft\",\r\n\t\t\t\t\"   I gain resistance to all damage until the start of my next turn\",\r\n\t\t\t\t\"I can use each phase's bonus action 1/LR, or by spending 5 sorcery points to use it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Lunar Phenomenon (Full)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (New)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (Crescent)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds\r\nBackgroundList[\"knight of solamnia-ua\"] = {\r\n\tregExpSearch : /^(?=.*(knight|champion|warrior))(?=.*solamnia).*$/i,\r\n\tname : \"Knight of Solamnia\",\r\n\tsource : [[\"UA:HoK\", 3]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tequipleft : [\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Squire of Solamnia\",\r\n\ttrait : [\r\n\t\t\"I pledge my sword to the greater good. If I must perish in pursuit of that good, so be it.\",\r\n\t\t\"My comrades-in-arms are my family. I'll do whatever it takes to keep them safe.\",\r\n\t\t\"The protection of innocent people comes first. All other concerns come second.\",\r\n\t\t\"I joined the knights for the free meals, but their lessons grew on me over time.\",\r\n\t\t\"I wish my deeds to become the stuff of legends\\xD7just like those of the knighthood's heroic founders.\",\r\n\t\t\"A dishonorable act drove me to become a knight. I have acted with honor ever since.\"\r\n\t]\r\n};\r\n/*\tFeats\r\n\tAll the below feats are the work of PoetOfGod and have not been double-checked\r\n\tby Safety-Orange, because the \"Revised\" article has already been published\r\n\tand that superseeds all these feats with newer versions.\r\n*/\r\n\r\n// Feats tree for Initiate of High Sorcery\r\nFeatsList[\"initiate of high sorcery-ua\"] = {\r\n\tname : \"Initiate of High Sorcery\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"I learn a cantrip and a first level spell from a list depending on my chosen moon. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You've received training from magic-users affiliated with the Mages of High Sorcery.\\n   Choose one of three moons of Krynn, each of which is associated with a distinct type of magic: the black moon, Nuitari; the red moon, Lunitari; or the white moon, Solinari. You learn one cantrip and one 1st-level spell based on the moon you choose, as specified in the Lunar Spells table.\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\\n\\n\" + toUni(\"Lunar Spells\") + \"\\n\" + toUni(\"Moon\") + \"\\t\" + toUni(\"Cantrips\") + \"\\t\\t\" + toUni(\"1st-level Spell\") + \"\\nNuitari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tchill touch, mage\\tspell from the evocation or\\n\\thand, and vicious\\tnecromany school of magic.\\n\\tmockery\\nLunitari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tguidance,\\t\\tspell from the school of\\n\\tmessage, and\\tdivination or transmutation.\\n\\tprestidigitation\\nSolinari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tproduce flame,\\tspell from the abjuration or\\n\\tresistance, and\\tconjuration school of magic.\\n\\tspare the dying\",\r\n\tprerequisite : \"Apprentice of High Sorcery\",\r\n\tchoices : [\"Intelligence - Nuitari\", \"Intelligence - Lunitari\", \"Intelligence - Solinari\", \"Wisdom - Nuitari\", \"Wisdom - Lunitari\", \"Wisdom - Solinari\", \"Charisma - Nuitari\", \"Charisma - Lunitari\", \"Charisma - Solinari\"],\r\n\t// nine choices, one for each ability and moon\r\n\t\"intelligence - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n};\r\nFeatsList[\"adept of the black robes-ua\"] = {\r\n\tname : \"Adept of the Black Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Choose an ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\tdescriptionFull : \"Your ambition and loyalty to the Order of the Black Robes has been recognized, granting you these benefits:\\n\" + toUni(\"Ambitious Magic.\") + \" You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the evocation or necromancy school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Life Channel.\") + \" You can channel your lifeforce into the power of your magic. When a creature you can see within 60 feet fails on a saving throw against a spell you cast, you can expend a number of Hit Dice equal to the level of the spell. Roll a number of Hit Die equal to half the number of Hit Dice expended (rounded up) and the damage the triggering creature takes increases by an amount equal to the total rolled of those dice.\",\r\n\tprerequisite : \"4th-level, Initiate of High Sorcery feat, Any Non-Good Alignment\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1 && !(/good/i).test(What(\"Alignment\")); },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Evoc/Necro spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\nFeatsList[\"adept of the red robes-ua\"] = {\r\n\tname : \"Adept of the Red Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\tdescriptionFull : \"Your pursuit of truth and dedication to maintaining the balance between all things has been recognized by the Order of the Red Robes, granting you these benefits:\\n\" + toUni(\"Insightful Magic.\") + \" You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the divination or transmutation school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Magical Balance.\") + \" When you make an attack roll, an ability check, or a saving throw, and roll a 9 or lower on the d20, you can use your reaction to balance fate and treat the roll as a 10. you can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1; },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Div/Trans spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Div\", \"Trans\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\taction : [[\"reaction\", \"Magical Balance\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\nFeatsList[\"adept of the white robes-ua\"] = {\r\n\tname : \"Adept of the White Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Choose an ability for this spell. When a creature w/in 30 ft takes damage I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the damage by that much + my SC ability mod.\",\r\n\tdescriptionFull : \"Your oath to use magic to make the world a better place has been recognized by the Order of the White Robes, granting you these benefits:\\n\" + toUni(\"Protective Magic.\") + \" You learn one 2nd-level spell of you choice. The 2nd-level spell must be from the abjuration or conjuration school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Protective Ward.\") + \" When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to expend a spell slot and weave protective magic around the target. Roll a number of d4s equal to the level of the spell slot expended and reduce the damage the target takes by the total rolled on those dice + your spellcasting ability modifier.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery feat, Any Non-Evil Alignment\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1 && !(/evil/i).test(What(\"Alignment\")); },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Abjur/Conj spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. When a creature w/in 30 ft takes damage I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the damage by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. When a crea w/in 30 ft takes dmg I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the dmg by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. When a crea w/in 30 ft takes dmg I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the dmg by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\n\r\n// Feat tree for Divinely Favored\r\nFeatsList[\"divinely favored-ua\"] = {\r\n\tname : \"Divinely Favored\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn Thaumaturgy and one 1st-level spell based on my alignment. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spells that use the chosen ability.\",\r\n\tdescriptionFull : \"A god has chosen you to carry a spark of their divine power.\\n   You learn the thaumaturgy cantrip and one 1st-level spell based on the alignment of your character, as specified in the Alignment Spells table.\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\\n\\n\" + toUni(\"Alignment Spells\") + \"\\n\" + toUni(\"Alignment\") + \"   \" + toUni(\"1st-level Spell\") + \"\\nEvil\\t\t Choose one 1st level warlock or wizard spell.\\nGood\\t\t Choose one 1st-level cleric or wizard spell.\\nNeutral\\t\t Choose one 1st-level druid or wizard spell.\\n\\n   In addition, you can use a holy symbol as a spellcasting focus for any spell you cast that uses the spellcasting ability you choose when you select this feat.\",\r\n\tchoices : [\"Intelligence - Good\", \"Intelligence - Neutral\", \"Intelligence - Evil\", \"Wisdom - Good\", \"Wisdom - Neutral\", \"Wisdom - Evil\", \"Charisma - Good\", \"Charisma - Neutral\", \"Charisma - Evil\"],\r\n\t// nine choices, one for each alignment and ability pair\r\n\t\"intelligence - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"divine communications-ua\"] = {\r\n\tname : \"Divine Communications\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. My chosen ability from Divinely Favored is my spellcasting ability for these spells\",\r\n\tdescriptionFull : \"Your connection to your god deepens, granting you these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase the ability score of the spellcasting ability chosen when you gained the Divinely Favored feat by 1, to a maximum of 20.\\n\" + toUni(\"Celestial Tongues.\") + \" You learn to speak, read, and write Celestial, and two other languages of your choice.\\n\" + toUni(\"Divine Omens.\") + \" You can cast the augury and commune spell without a spell slot, and you must finish 1d4 long rests before you can cast it in this way again. You can also cast the spell using the spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gained the Divinely Favored feat.\",\r\n\tprerequisite : \"4th level, Divinely Favored feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"divinely favored-ua\") !== -1; },\r\n\tlanguageProfs : [\"Celestial\", 2],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Augury and Commune\",\r\n\t\tspells : [\"augury\", \"commune\"],\r\n\t\tselection : [\"augury\", \"commune\"],\r\n\t\ttimes : 2\r\n\t}],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\t// extract just the ability from the divinely favored choices\r\n\t\tvar iDvnFav = CurrentFeats.known.indexOf(\"divinely favored-ua\");\r\n\t\tif (iDvnFav !== -1 && CurrentFeats.choices[iDvnFav]) {\r\n\t\t\treturn CurrentFeats.choices[iDvnFav].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iDvnFav].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Intelligence is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Wisdom is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Charisma is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nFeatsList[\"squire of solamnia-ua\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"As a reaction once per long rest when I see another creature 30 ft make a save, I can give them advantage if they can hear and understand me. I gain proficiency with with medium armor and martial weapons. I have advantage on saves to avoid falling off a mount.\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\\n\" + toUni(\"Martial Training.\") + \" You gain proficiency with medium armor and martial weapons.\\n\" + toUni(\"Defensive Rider.\") + \" You have advantage on saving throws made to avoid falling off a mount.\\n\" + toUni(\"Encouraging Rally.\") + \" When another creature you can see within 30 feet of you makes a saving throw, you can use your reaction to inspire them. If the target can hear you and understands you, it gains advantage on the saving throw. Once you use this reaction, you can't do so again until you finish a long rest.\",\r\n\tprerequisite : \"Squireship in the Knights of Solamnia\",\r\n\tarmorProfs : [false, true, false, false],\r\n\tweaponProfs : [false, true],\r\n\tsavetxt : { adv_vs : [\"falling off a mount\"]},\r\n\taction : [[\"reaction\", \"Encouraging Rally (Squire of Solamnia)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Encouraging Rally (Squire of Solamnia)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"knight of the crown-ua\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"When a creature within 30 ft makes an attack roll against another creature within 5 ft, I can use my reaction to grant advantage on the attack roll. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n\" + toUni(\"Tactical Teamwork.\") + \" When a creature you can see within 30 feet of you makes an attack roll against another creature that is within 5 feet of you, you can use your reaction to grant advantage on the attack roll. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\taction : [[\"reaction\", \"Tactical Teamwork (Knight of the Crown)\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the sword-ua\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"I gain proficiency in the chosen ability saving throw. After I or a creature I can see within 30 feet fails an Int, Wis, or Cha save, I can expend a HD. I roll that die and increase the save by that much. Once I change a fail into a success, I can't do so again until a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\\n\" + toUni(\"Disciplined Spirit.\") + \" You gain proficiency in Intelligence, Wisdom, or Charisma saving throws (your choice when you take this feat).\\n\" + toUni(\"Willpower.\") + \" Immediately after you or a creature you can see within 30 feet of you fail an Intelligence, Wisdom, or Charisma saving throw, you can expend a Hit Die. The saving throw increases by an amount equal to a roll of that Hit Die, potentially turning a failure into a success. Once you turn a failed saving throw into a successful one using this feat, you can't do so again until you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tsaves : [\"Int\"]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tsaves : [\"Wis\"]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tsaves : [\"Cha\"]\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the rose-ua\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + the modifier of the score increased by this feat. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase your Constitution or Charisma score by 1, to a maximum of 20.\\n\" + toUni(\"Bolstering Rally.\") + \" When you roll initiative, you can choose up to three other creatures you can see within 30 feet of you. Each creature can gain temporary hit points equal to a roll of your Hit Die + your proficiency bonus + the ability modifier of the ability score increased by this feat. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tscorestxt : \"+1 Constitution or Charisma\",\r\n\tchoices : [\"Constitution\", \"Charisma\"],\r\n\t\"constitution\" : {\r\n\t\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + my Constitution modifier. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + my Charisma modifier. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\n\n// This file adds the content from the Unearthed Arcana 2022: Heroes of Krynn Revisited article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n\r\n// ua_20220425_Heroes-of-Krynn-Revisited.js\r\nSourceList[\"UA:HoKR\"] = {\r\n\tname : \"Unearthed Arcana: Heroes of Krynn Revisited\",\r\n\tabbreviation : \"UA:HoKR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-HeroesofKrynnRevisited.pdf\",\r\n\tdate : \"2022/04/25\"\r\n};\r\n\r\nRaceList[\"kender-ua2\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"UA:HoKR\", 1]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { immune : [\"frightened\"]},\r\n\tskillstxt : \"Choose one from Insight, Investigation, Sleight of Hand, Stealth, or Survival\",\r\n\tabilitySave : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t\"\\n \\u2022 Fearless: I am immune to the frightened condition.\"+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can taunt a creature within 60 ft of me that can hear and understand me. They must make a Wisdom saving throw or have disadvantage on attack rolls not made against me until the start of my next turn. I can do this a number of times per long rest equal to my proficiency bonus. The DC equals 8 + proficiency bonus + Intelligence, Wisdom, or Charisma modifier (one-time choice).\"\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nvar UA_HoKR_KnightlyManeuvers_Notes = function (n) {\r\n\t// Get the name, source, and description from the maneuver of the Battle Master subclass, if that subclass is present\r\n\tif (ClassSubList[\"fighter-battle master\"] && ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"] && ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"][n]) {\r\n\t\tvar sourceObj = ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"][n];\r\n\t} else {\r\n\t\t// Subclass or maneuver not found, thus only add the name\r\n\t\tvar sourceObj = {\r\n\t\t\tname : n.capitalize(),\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tdescription : \"\"\r\n\t\t};\r\n\t}\r\n\treturn {\r\n\t\tname : sourceObj.name,\r\n\t\tsource : sourceObj.source,\r\n\t\tnote : sourceObj.description,\r\n\t\tpage3notes : true,\r\n\t\tadditional : \"Knightly Maneuver\"\r\n\t};\r\n};\r\nFeatsList[\"squire of solamnia-ua2\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"Mounting/dismounting costs a 5-ft move. I learn one Knightly Maneuver: Lunging Attack, Precision Attack, or Pushing Attack. I can change which I know after each long rest. The DC is 8 + Prof B + Str or Dex mod (my choice). I gain Prof Bonus of Superiority Dice (d6) to use with these, regaining them after a long rest.\",\r\n\tcalculate : \"event.value = 'Mounting/dismounting costs a 5-ft move. I learn one Knightly Maneuver: Lunging Attack, Precision Attack, or Pushing Attack. DC is ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Dex Mod')))) + ' (8 + Prof Bonus + Str/Dex mod). I can change which I know after each long rest. I gain Prof Bonus of Superiority Dice (d6) to use with these, regaining them after a long rest.';\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Mount Up\") + \". Mounting or dismounting costs you only 5 feet of movement.\"+\r\n\t\"\\n   \" + toUni(\"Squire Maneuvers\") + \". You learn the Lunging Attack, Precision Attack, or Pushing Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with another one from the list above.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain a number of superiority dice equal to your proficiency bonus. These dice are d6s, and you can use them only with the maneuver you gain from this feat and with any maneuvers you gain from feats that have this feat as a prerequisite. A superiority die is expended when you use it, and you regain all expended superiority dice when you finish a long rest.\",\r\n\tprerequisite : \"Fighter or Paladin Class or Knight of Solamnia Background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.fighter || classes.known.paladin || CurrentBackground.known.indexOf('knight of solamnia') !== -1;\r\n\t},\r\n\tlimfeaname : \"Knightly Superiority Dice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"var total = CurrentFeats.known.indexOf('squire of solamnia-ua2') === -1 ? 0 : Number(How('Proficiency Bonus')); for (var i = 0; i < CurrentFeats.known.length; i++) { var oFeat = FeatsList[CurrentFeats.known[i]]; if (oFeat && oFeat.knightlySuperiority && oFeat.knightlySuperiority.use) { total += oFeat.knightlySuperiority.use; }; }; event.value = total;\", // complex because it works for all feats\r\n\trecovery : \"long rest\",\r\n\tadditional : 'd6',\r\n\tknightlySuperiority : {\r\n\t\tdie : 6,\r\n\t\tprereq : true\r\n\t},\r\n\ttoNotesPage : [\"lunging attack\", \"precision attack\", \"pushing attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the crown-ua2\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Distracting Strike or Goading Attack. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Strength or Dexterity]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength or Dexterity score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Crown Maneuvers\") + \". You learn the Distracting Strike or the Goading Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\ttoNotesPage : [\"distracting strike\", \"goading attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the sword-ua2\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Maneuvering Attack or Menacing Attack. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Sword Maneuvers\") + \". You learn the Maneuvering Attack or the Menacing Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Intelligence, Wisdom, or Charisma\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\ttoNotesPage : [\"maneuvering attack\", \"menacing attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the rose-ua2\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Commander's Strike or Rally. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Constitution or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Rose Maneuvers\") + \". You learn the Commander's Strike or Rally maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Constitution or Charisma\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\taction : [\r\n\t\t[\"bonus action\", \"Commander's Strike (with Attack action)\"],\r\n\t\t[\"bonus action\", \"Rally\"]\r\n\t],\r\n\ttoNotesPage : [\"commander's strike\", \"rally\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\n\n// This file adds the content from the Unearthed Arcana 2022: Giant Options article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n// ua_20220523_Giant-Options.js\r\nSourceList[\"UA:GO\"] = {\r\n\tname : \"Unearthed Arcana: Giant Options\",\r\n\tabbreviation : \"UA:GO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-drjwf73f8n.pdf\",\r\n\tdate : \"2022/05/23\"\r\n};\r\n\r\nAddSubClass(\"barbarian\", \"giant-ua\", {\r\n\tregExpSearch : /^((?=.*(marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n))|((?=.*(warrior|fighter))(?=.*(feral|tribal))))(?=.*giant).*$/i,\r\n\tsubname : \"Path of the Giant\",\r\n\tsubnameShort: \"Giant\",\r\n\tsource : [[\"UA:GO\", 1]],\r\n\tabilitySave : 1,\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Giant Power\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I learn Giant, and the Druidcraft or Thaumaturgy cantrip with Wis as spellcasting ability\"),\r\n\t\t\tlanguageProfs : [\"Giant\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Giant Power\",\r\n\t\t\t\tspells : [\"druidcraft\", \"thaumaturgy\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Giant's Havoc\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"While raging, I add the bonus damage to ranged thrown weapon attacks that use Str,\",\r\n\t\t\t\t\t\"I gain +\" + (n < 14 ? 5 : 10) + \" ft reach, and I become \" + (n < 14 ? 'Large' : 'Huge') + \" along with what I'm wearing, if there is room\"\r\n\t\t\t\t]);\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Cleaver\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"When I rage, I can infuse a weapon I'm holding with acid, cold, fire, thunder, or lightning\",\r\n\t\t\t\t\t\"While raging, its damage type changes to the chosen type and it deals +\" + (n < 14 ? 1 : 2) + \"d6 damage,\",\r\n\t\t\t\t\t\"it gains the thrown (20/60 ft) property, and reappears instantly after a thrown attack\",\r\n\t\t\t\t\t\"As a bonus action, I can change the chosen type; The bonuses only function for me\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \" (change type)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((v.isMeleeWeapon || v.isRangedWeapon) && classes.known.barbarian && classes.known.barbarian.level && /^(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tfields.Damage_Type = \"Varies\";\r\n\t\t\t\t\t\t\tvar isThrownWeapon = /\\bthrown\\b/i.test(v.WeaponText);\r\n\t\t\t\t\t\t\tvar extraDmg = classes.known.barbarian.level < 14 ? '+1d6 damage' : '+2d6 damage';\r\n\t\t\t\t\t\t\tvar extraProp = v.isRangedWeapon && !isThrownWeapon ? 'Thrown (20/60 ft), returning; ' : isThrownWeapon ? 'Returning; ' : 'Thrown, returning; ';\r\n\t\t\t\t\t\t\tvar hasRange = /\\d+ ?(f.{0,2}t|m)/i.test(fields.Range);\r\n\t\t\t\t\t\t\tif (!hasRange) {\r\n\t\t\t\t\t\t\t\tfields.Range += ', 20/60 ft';\r\n\t\t\t\t\t\t\t} else if ((!v.isRangedWeapon || isThrownWeapon) && hasRange) {\r\n\t\t\t\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\t\t\t\tif (rangeNmbr.length === 1) {\r\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[0].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = fields.Range.replace(longRange,\"long_range\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tvar shortRange = Number(rangeNmbr[0].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[1].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\ttempRange = fields.Range;\r\n\t\t\t\t\t\t\t\t\tif (shortRange < 20) tempRange = tempRange.replace(shortRange,\"short_range\");\r\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = tempRange.replace(longRange,\"long_range\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfields.Range = tempRange.replace(\"short_range\", 20).replace(\"long_range\", 60);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + extraProp + extraDmg;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Elemental Cleaver' in a weapon's name, the Elemental Cleaver infused weapon properties will be added to it and its damage type will be set to 'Acid'. Also, my Rage's bonus damage will be added to it if it is a melee weapon that uses Strength.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && fields.Mod === 1 && classes.known.barbarian && classes.known.barbarian.level && /^(?!.*\\brage\\b)(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.barbarian.level < 9 ? 2 : classes.known.barbarian.level < 16 ? 3 : 4;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Mighty Impel\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn \" [DC 8 + Prof Bonus + Str mod]\" + desc([\r\n\t\t\t\t\t\"As a bonus action while raging, I can hurl a \" + (n < 14 ? 'Medium' : 'Large') + \" or smaller creature within my reach\",\r\n\t\t\t\t\t\"I move it to an empty space I can see within 30 ft; Unwilling can save to avoid this\",\r\n\t\t\t\t\t\"If it doesn't end this movement on a surface that can support it, it falls and lands prone\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Demiurgic Colossus\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, my reach increases by 10 ft, and my size can increase to Huge\",\r\n\t\t\t\t\"Mighty Impel works on Large creatures; Elemental Cleaver increases to +2d6 damage\",\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"druid\", \"circle of the primeval-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*(primeval|behemoth)).*$/i,\r\n\tsubname : \"Circle of the Primeval\",\r\n\tsubnameShort: \"Primeval\",\r\n\tsource : [[\"UA:GO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Keeper of Old\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain proficiency in History; I can add d4 to my Intelligence (History) checks\"),\r\n\t\t\tskills : [\"History\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Primeval Companion\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a primeval companion\",\r\n\t\t\t\t\"The companion appears in an empty spot within 30 ft with the appearance of my choice\",\r\n\t\t\t\t\"It vanishes when reduced to 0 hit points, when I die, and when I summon another one\"\r\n\t\t\t]),\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Summon Primeval Companion\"],\r\n\t\t\t\t[\"bonus action\", \"Command Primeval Companion\"]\r\n\t\t\t],\r\n\t\t\tcreaturesAdd : [[\"Primeval Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Primeval Companion\",\r\n\t\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Beast\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [2, 10],\r\n\t\t\t\thdLinked : [\"druid\"],\r\n\t\t\t\tminlevelLinked : [\"druid\"],\r\n\t\t\t\tspeed : \"30 ft\",\r\n\t\t\t\tscores : [15, 15, 17, 6, 12, 8],\r\n\t\t\t\tsaves : [\"\", 4, 5, \"\", \"\", \"\"],\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 11,\r\n\t\t\t\tlanguages : \"Understands the languages of its summoner\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Strike\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 8, \"bludgeoning\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"My choice of bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Primeval Companion\",\r\n\t\t\t\t\tdescription : \"The primeval companion obeys the commands of its summoner and shares its proficiency bonus. It takes its turn immediately after that of its summoner, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its summoner takes a bonus action to command it to take another action. If its summoner is incapacitated, the companion can take any action, not just Dodge. The companion vanishes when it is reduced to 0 hit points, when its summoner summons another companion, or when its summoner dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Intercept attack\",\r\n\t\t\t\t\tdescription : \"As a reaction when a creature the companion can see hits a target within 5 ft of the companion with an attack, the target instead takes half the damage. The companion takes the remainder of the damage\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Prehistoric Conduit (Circle of the Primeval 6)\",\r\n\t\t\t\t\tminlevel : 6,\r\n\t\t\t\t\tdescription : \"Spells cast by the companion's summoner with a range other than self can originate from the companion instead. Also, the companion has advantage on saving throws against spells cast by its summoner. If the companion would normally take half damage on a successful save against these spells, instead, it takes no damage on a success and half and no other effects on a fail.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Titanic Bond (Circle of the Primeval 10)\",\r\n\t\t\t\t\tminlevel : 10,\r\n\t\t\t\t\tdescription : \"The companion's size is now Large and it gains either a swimming or climbing speed equal to its walking speed.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"swim/climb 30 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"swim or climb 30 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvlM = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(10 + drdLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + drdLvl + \" from five times its summoner's druid level (\" + drdLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Prehistoric Conduit\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Spells I cast with the range of touch can originate from my primeval companion\",\r\n\t\t\t\t\"The primeval companion has advantage on saving throws against my spells\",\r\n\t\t\t\t\"If the companion would take half damage on a successful save against a spell I cast,\",\r\n\t\t\t\t\"it instead takes no damage on a success and half damage and no other effects on a fail\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Titanic Bond\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My companion grows to Large; it gains a climb or swim speed equal to its walking speed\",\r\n\t\t\t\t\"When I hit an attack or spell damage a creature I can see, I can have it make a Wis save\",\r\n\t\t\t\t\"If failed, the target is frightened of me until the end of my next turn\",\r\n\t\t\t\t\"I can do this only while my primeval companion is summoned, and only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Scourge of the Ancients\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a bonus action to command my companion, I can expend a spell slot so that:\",\r\n\t\t\t\t\" \\u2022 It becomes Huge if there is room, and gains 10 times the spell slot level in temp HP\",\r\n\t\t\t\t\" \\u2022 On a hit, the companion's Strike deals an extra 1d8 + the spell slot level damage\",\r\n\t\t\t\t\" \\u2022 Its walking (and climbing or swimming) speed increases with 5 ft per spell slot level\",\r\n\t\t\t\t\"These benefits last for 1 hour, until the companion vanishes, or until I use this again\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"wizard\", \"runecrafter-ua\", {\r\n\tregExpSearch : /runecrafting|runecrafter/i,\r\n\tsubname : \"Tradition of Runecrafting\",\r\n\tsubnameShort: \"Runecrafting\",\r\n\tfullname : \"Runecrafter\",\r\n\tsource : [[\"UA:GO\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Runes of Understanding\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I always have Comprehend Languages prepared and can cast it without using a spell slot\",\r\n\t\t\t\t\"It doesn't count against the number of spells I can prepare\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Runes of Understanding\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Runic Empowerment\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell using a spell slot, I can invoke one of the following runes:\",\r\n\t\t\t\t\" \\u2022 Life Rune: Me or a creature I can see within 30 ft gains 5 temp HP per spell slot level\",\r\n\t\t\t\t\" \\u2022 War Rune: A creature I can see within 30 ft is marked until the end of my next turn\",\r\n\t\t\t\t\"   Attack rolls against it gain a bonus equal to half the spell slot level, rounded up\",\r\n\t\t\t\t\" \\u2022 Wind Rune: Until my next turn starts, my speed increases by 5 ft per spell slot level\",\r\n\t\t\t\t\"   Additionally, my movement doesn't provoke opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sigils of Warding\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I fail a Strength, Dexterity, or Constitution save, I can call on a rune\",\r\n\t\t\t\t\"I expend a use of my Runic Empowerment feature and succeed on the save instead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Rune Maven\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I use Arcane Recovery, I also regain uses of Runic Empowerment\",\r\n\t\t\t\t\"I regain a number of uses equal to half my Intelligence modifier, rounded up (min 1)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Engraved Enmity\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 60 ft make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is marked by an enmity rune for 1 min, or until I lose my concentration\",\r\n\t\t\t\t\"A glowing energy mote hovers over the marked and it suffers the following effects:\",\r\n\t\t\t\t\" \\u2022 The marked has disadvantage on saving throws against spells I cast\",\r\n\t\t\t\t\" \\u2022 The glow makes the marked visible even if invisible, and they can't become invisible\",\r\n\t\t\t\t\" \\u2022 When marking and as a bonus action on subsequent turns, I can curse the creature\",\r\n\t\t\t\t\"   The next time an ally hits the cursed with an attack, it also takes 1d8 force damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n/*\tFeats\r\n\tAll the below feats are the work of PoetOfGod and have not been double-checked\r\n\tby Safety-Orange, because the \"Revised\" article \"Wonders of the Multiverse\"\r\n\thas already been published, superseding all these feats with newer versions.\r\n*/\r\nFeatsList[\"elemental touched-ua\"] = {\r\n\tname : \"Elemental Touched\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Planes, granting you a measure of control over the natural world around you. You learn either the druidcraft or thaumaturgy cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you gain this feat).\\n   Whenever you finish a long rest, you can choose which element you are attuned to: Air, Earth, Fire, or Water. Depending on your choice, you can use a bonus action to cause one of the following effects:\"+\r\n\t\"\\n\\n\" + toUni(\"Air\") + \". You gain a fly speed equal to your walking speed until the end of your turn. If you are airborne at the end of your turn after using this movement and aren't held aloft by other means, you fall.\"+\r\n\t\"\\n\" + toUni(\"Earth\") + \". You cause the ground within 30 feet of you to become difficult terrain for 1 minute or until you create this effect again. During that time, you can move across ground that is difficult terrain without spending extra movement.\"+\r\n\t\"\\n\" + toUni(\"Fire\") + \". You surround yourself in a cloud of ash and smoke. Until the end of your turn, your movement doesn't provoke opportunity attacks.\"+\r\n\t\"\\n\" + toUni(\"Water\") + \". You can create a forceful surge of water directed at a creature within 15 feet of you that you can see. The creature must succeed on a Strength saving throw (which it can choose to fail) against a DC equal to 8 + your spellcasting ability modifier + your proficiency bonus or be pushed up to 10 feet away from you. The water vanishes immediately after the creature succeeds or fails.\"+\r\n\t\"\\n\\nYou can create this effect a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I learn druidcraft or thaumaturgy. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Druidcraft\", \"Thaumaturgy\"],\r\n\t\"druidcraft\" : {\r\n\t\tdescription : \"I learn druidcraft. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Touched\",\r\n\t\t\tspells : [\"druidcraft\"],\r\n\t\t\tselection : [\"druidcraft\"]\r\n\t\t}]\r\n\t},\r\n\t\"thaumaturgy\" : {\r\n\t\tdescription : \"I learn thaumaturgy. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Touched\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"]\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"outsized might-ua\"] = {\r\n\tname : \"Outsized Might\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tdescriptionFull : \"You have absorbed primeval magic that allows you, despite your relatively small stature, to embody the might of titanic creatures. This grants you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Little but Mighty\") + \". You gain proficiency in either the Athletics or Acrobatics skill.\"+\r\n\t\"\\n\" + toUni(\"Powerful Build\") + \". You count as one size larger when determining your carrying capacity and the amount you can push, drag, or lift.\"+\r\n\t\"\\n\" + toUni(\"Stalwart\") + \". You have advantage on saving throws against being moved or knocked prone.\",\r\n\tdescription : \"I gain proficiency in Athletics or Acrobatics. I count as one size larger when determining my carrying capacity and the amount I can push, drag, or lift. I have advantage on saving throws against being moved or knocked prone.\",\r\n\tskillstxt : \"Choose Athletics or Acrobatics\",\r\n\tcarryingCapacity : 2,\r\n\tsavetxt : { adv_vs : [\"moved\", \"prone\"]}\r\n};\r\n\r\n// X of the X Giant feats\r\nFeatsList[\"ember of the fire giant-ua\"] = {\r\n\tname : \"Ember of the Fire Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\r\n\t\"\\n\" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace one of your attacks with a magical burst of flame. Each creature of your choice within 15 feet of you that can see you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + your Constitution modifier). On a failed save, a creature takes fire damage equal to 2d6 + your proficiency bonus and is blinded until the start of your next turn; on a successful save, the creature takes half as much damage with no additional effects. You can use your Searing Ignition a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I gain resistance to fire damage. When I take the Attack action on my turn I can use an attack to instead make each creature I choose within 15 ft roll a Dex save DC 8 + Prof + Con mod. On a fail they take 2d6 + Prof Fire dmg, blinded until the start of my next turn. Success halves and no other effect. Prof Uses / LR.\",\r\n\taction : [[\"action\", \"Searing Ignition (as Attack action)\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Fire\"]\r\n};\r\nFeatsList[\"fury of the frost giant-ua\"] = {\r\n\tname : \"Fury of the Frost Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\r\n\t\"\\n\" + toUni(\"Frigid Vengeance\") + \". When a creature hits you with an attack roll, you can use your reaction to retaliate with a burst of magical ire. The creature must succeed on a Wisdom saving throw (DC equals 8 + your proficiency bonus + your Consitution modifier) or be frightened of you until the start of its next turn. You can use your reaction in this way a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I gain resistance to cold damage. When I am hit with an attack roll I can use my reaction to make them roll a Wis save DC 8 + Prof + Con mod. On a failure they are frightened until the start of their next turn. Prof Uses / LR.\",\r\n\taction : [[\"reaction\", \"Frigid Vengeance\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Cold\"]\r\n};\r\nFeatsList[\"guile of the cloud giant-ua\"] = {\r\n\tname : \"Guile of the Cloud Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested the airy speech and magic emblematic of cloud giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Misty Form\") + \". You can cast the blur spell without using a spell slot or material components. When you cast the spell in this way, the spell doesn't require you to maintain concentration on it. Once you cast the spell in this way, you can't do so again until you finish a long rest. You can also cast this spell in the normal way using spell slots you have of appropriate level.\"+\r\n\t\"\\nIntelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat).\"+\r\n\t\"\\n\" + toUni(\"Silver Tongue\") + \". You gain proficiency in either the Deception or Persuasion skill. Your proficiency bonus is doubled for any ability check you make using this skill.\",\r\n\tdescription : \"I gain proficiency and expertise in Deception or Persuasion. Once per long rest I can cast Blur without using a spell slot, material components, or concentration. I can also cast it normally with spell slots.\",\r\n\tskillstxt : \"Choose Deception or Persuasion. You also gain expertise with that skill\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Guile of the Cloud Giant\",\r\n\t\tspells : [\"blur\"],\r\n\t\tselection : [\"blur\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}]\r\n};\r\nFeatsList[\"keenness of the stone giant-ua\"] = {\r\n\tname : \"Keenness of the Stone Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the protection and spellcasting emblematic of stone giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Dreamer's Magic\") + \" You learn the detect thoughts spell and one 1st-level spell of your choice. The 1st-level spell must be from the abjuration or the divination school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level.\"+\r\n\t\"\\nIntelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat).\"+\r\n\t\"\\n\" + toUni(\"Mountain Sight\") + \". You gain darkvision out to a range of 60 feet. If you already have darkvision from another source, its range increases by 30 feet\",\r\n\tdescription : \"I learn detect thoughts and a 1st level Abjur or Div spell. I can cast these without a spell slot once per long rest, or as normal. I gain 60 ft of Darkvision or if I already have darkvision I get an extra 30 feet of Darkvision.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Keenness of the Stone Giant\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}, {\r\n\t\tname : \"1st-level Abjur/Div spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Div\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]]\r\n};\r\nFeatsList[\"soul of the storm giant-ua\"] = {\r\n\tname : \"Soul of the Storm Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested divination abilities and tempest magic emblematic of storm giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself in an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts for 1 minute or until you are incapacitated. While the aura is active, attack rolls against you have disadvantage, and whenever a creature starts its turn within the sphere, you can force the creature's speed to be halved until the start of its next turn. Once you use this bonus action, you can't do so again until you finish a long rest.\"+\r\n\t\"\\n\" + toUni(\"Storm's Oracle\") + \". You can cast the divination spell as a ritual, without needing amterial components.\\n Intelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat). Once you cast the spell in this way, you can't do so again until you finish a long rest.\",\r\n\tdescription : \"I learn Divination and can cast it once per long rest as a ritual without using a spell slot or materials. Once per long rest as a bonus action I create a 10 ft rad that lasts for 1 min or until I am incapacitated. Atks against me have disadv, when creas start their turn in the area I can halve their spd until their next turn.\",\r\n\taction : [[\"bonus action\", \"Maelstrom Aura\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Storm's Oracle\",\r\n\t\tspells : [\"divination\"],\r\n\t\tselection : [\"divination\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"divination\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"vigor of the hill giant-ua\"] = {\r\n\tname : \"Vigor of the Hill Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or knock you prone, you can use your reaction to steady yourself. You are then neither moved nor knocked prone.\"+\r\n\t\"\\n\" + toUni(\"Hearty Health\") + \". When you are subjected to a spell that restores your hit points, you can regain additional hit points equal to your Constitution modifier. You can regain these additional hit points a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"When I would be moved or knocked prone I can use my reaction to not. When I would restore hit points from a spell I can regain an additional Con mod hit points, I can regain hit points this way Prof Uses / LR.\",\r\n\taction : [[\"reaction\", \"Bulwark\"]]\r\n};\r\n\r\n// Rune Carver Apprentice feat tree\r\nFeatsList[\"rune carver apprentice-ua\"] = {\r\n\tname : \"Rune Carver Apprentice\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tdescriptionFull : \"You've begun studying the art of runecraft, which allows you to temporarily mark your items and imbue them with magic.\"+\r\n\t\"\\n   Whenever you finish a long rest, you can mark one nonmagical weapon, armor, piece of clothing, or other object you can touch with a rune of your choice. You temporarily learn one 1st-level spell based on the rune you choose, as specified in the table below, and you know the spell until you finish a long rest, when the rune fades.\"+\r\n\t\"\\n\\n\" + toUni(\"Rune\\tSpell\")+\r\n\t\"\\nBlood\\tFalse life\"+\r\n\t\"\\nCloud\\tFog cloud\"+\r\n\t\"\\nDeath\\tRay of sickness\"+\r\n\t\"\\nDragon\\tChromatic orb\"+\r\n\t\"\\nEnemy\\tBane\"+\r\n\t\"\\nFire\\tBurning hands\"+\r\n\t\"\\nFriend\\tBless\"+\r\n\t\"\\nFrost\\tArmor of Agathys\"+\r\n\t\"\\nHill\\tGoodberry\"+\r\n\t\"\\nJourney\\tLongstrider\"+\r\n\t\"\\nKing\\tCommand\"+\r\n\t\"\\nLight\\tGuiding bolt\"+\r\n\t\"\\nLife\\tCure wounds\"+\r\n\t\"\\nMountain\\tJump\"+\r\n\t\"\\nShield\\tShield\"+\r\n\t\"\\nStone\\tSanctuary\"+\r\n\t\"\\nStorm\\tThunderwave\"+\r\n\t\"\\nWar\\tHeroism\"+\r\n\t\"\\nWind\\tFeather fall\"+\r\n\t\"\\n\\nWhile you are wearing or carrying the rune-marked object, you can cast the chosen spell associated with the rune once without using a spell slot or material components, and you can also cast the spell using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you gain this feat).\",\r\n\tdescription : \"At the end of a long rest, I can mark a nonmagical object I can touch with a rune. I learn a 1st-level spell until I finish a long rest when the rune fades. While wearing or carrying the object I can cast the spell once without using a spell slot or material components, or as normal.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Rune Carver\",\r\n\t\tspells : [\"false life\", \"fog cloud\", \"ray of sickness\", \"chromatic orb\", \"bane\", \"burning hands\", \"bless\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"guiding bolt\", \"cure wounds\", \"jump\", \"shield\", \"sanctuary\", \"thunderwave\", \"heroism\", \"feather fall\"],\r\n\t\tselection : [\"false life\", \"fog cloud\", \"ray of sickness\", \"chromatic orb\", \"bane\", \"burning hands\", \"bless\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"guiding bolt\", \"cure wounds\", \"jump\", \"shield\", \"sanctuary\", \"thunderwave\", \"heroism\", \"feather fall\"],\r\n\t\ttimes : 19,\r\n\t\tfirstCol : \"R\",\r\n\t\tallowUpCasting : true\r\n\t}]\r\n};\r\nFeatsList[\"rune carver adept-ua\"] = {\r\n\tname : \"Rune Carver Adept\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level, Rune Carver Apprentice feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"rune carver apprentice\") !== -1; },\r\n\tdescriptionFull : \"Your skill with the art of runecraft has increased.\\n   Whenever you finish a long rest, you can now mark a number of objects equal to your proficiency bonus with a rune from the Rune Carver Apprentice feat. An object can have only one rune at a time, and you must inscribe a different rune on each object.\",\r\n\tdescription : \"At the end of a long rest, when using the Rune Carver apprentice feat, I can now inscribe a number of objects up to my Proficiency Bonus. Each object can only have one rune, and each rune must be different.\"\r\n};\r\n\n// This file adds the content from the Unearthed Arcana 2022: Wonders of the Multiverse article to MPMB's Character Record Sheet\r\n// ua_20220718_Wonders-of-the-Multiverse.js\r\nSourceList[\"UA:WotM\"] = {\r\n\tname : \"Unearthed Arcana: Wonders of the Multiverse\",\r\n\tabbreviation : \"UA:WotM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-WondersoftheMultiverse.pdf\",\r\n\tdate : \"2022/07/18\"\r\n};\r\n\r\n// Race\r\nRaceList[\"glitchling-ua\"] = {\r\n\tregExpSearch : /glitchling/i,\r\n\tname : \"Glitchling\",\r\n\tsource : [[\"UA:WotM\", 2]],\r\n\tplural : \"Glitchlings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*plating).*$/i,\r\n\t\tname : \"Armored Plating\",\r\n\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\tac : 14,\r\n\t\tselectNow : true\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"balance chaos\" : {\r\n\t\t\tname : \"Balance Chaos\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"vestigial wings\" : {\r\n\t\t\tname : \"Vestigial Wings\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Glitchling (my type is Construct)\"+\r\n\t\"\\n \\u2022 Armored Plating: My base AC is 14 + my Dexterity modifier.\"+\r\n\t\"\\n \\u2022 Living Construct: Life preserving spells that normally don't affect constructs work on me.\" + (typePF ? \" (e.g. Cure Wounds, Spare the Dying).\" : \"\")+\r\n\t\"\\n \\u2022 Ordered Mind: I have adv. on Wis (Insight) checks and on saves against being charmed.\"+\r\n\t\"\\n \\u2022 Balance Chaos: \" + (typePF ? \"My proficiency bonus per long rest, I can treat an attack roll or save roll of 9 or lower as a 10 instead.\" : \"Prof Bonus per long rest, I can treat a save/attack roll below 10 as a 10.\")+\r\n\t\"\\n \\u2022 Vestigial Wings: Prof Bonus per long rest, I can gain a flying speed equal to my walking speed for 1 turn, but fall if I end my turn aloft.\"\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"cleric\", \"fate-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(fate|destiny)).*$/i,\r\n\tsubname : \"Fate Domain\",\r\n\tsource : [[\"UA:WotM\", 2]],\r\n\tspellcastingExtra : [\"dissonant whispers\", \"heroism\", \"see invisibility\", \"warding bond\", \"beacon of hope\", \"clairvoyance\", \"death ward\", \"divination\", \"commune\", \"geas\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Omens and Portents\",\r\n\t\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Augury once per long rest without using a spell slot or requiring components\",\r\n\t\t\t\t\"Once I do, my divination spells have -25% of no/random answer until I finish a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"Augury\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Omens and Portents\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"augury\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Omens and Portents, I can cast Augury once per long rest without expending a spell slot or requiring components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Thies That Bind\",\r\n\t\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically tie my fate to a creature or object I touch for 1 hour\",\r\n\t\t\t\t\"Unwilling creatures can make a Wisdom save to resist; It ends early if I do this again\",\r\n\t\t\t\t\"I know the direction to a bound target's location and the direction of its movement\",\r\n\t\t\t\t\"Once per turn, a spell I cast on the target using a spell slot gets +1d6 damage or healing\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Strands of Fate\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can manipulate the strands of fate for 1 minute while concentrating\",\r\n\t\t\t\t\"As a reaction when a creature I see makes a check or attack, I can impose adv. or disadv.\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (activate)\"], [\"reaction\", \" (if active)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Insightful Striking\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain a brief vision of the defenses of a creature I see within 30 ft\",\r\n\t\t\t\t\"Until the end of my next turn, I gain one of the following effects:\",\r\n\t\t\t\t\" \\u2022 I add 1d6 to my next attack roll against the target \",\r\n\t\t\t\t\" \\u2022 The target subtracts 1d6 from the next saving throw it makes against a spell I cast\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Visions of the Future\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\"Once per long rest, I can cast Foresight without a spell slot with a duration of 1 minute\"]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tlimfeaname : \"Visions of the Future (Foresight)\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Visions of the Future\",\r\n\t\t\t\tspells : [\"foresight\"],\r\n\t\t\t\tselection : [\"foresight\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"foresight\" : {\r\n\t\t\t\t\tduration : \"1 min\",\r\n\t\t\t\t\tchanges : \"Using Visions of the Future, I can cast Foresight once per long rest without expending a spell slot; when I cast the spell in this way, the spell's duration is 1 minute for that casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds, first those not reprinted exactly as in this UA\r\nBackgroundList[\"giant foundling-ua\"] = {\r\n\tregExpSearch : /^(?=.*giant)(?=.*foundling).*$/i,\r\n\tname : \"Giant Foundling\",\r\n\tsource : [[\"UA:WotM\", 4]],\r\n\tskills : [\"Intimidation\", \"Survival\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Backpack\", \"\", 5],\r\n\t\t[\"Small stone/sprig reminding of home\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Strike of the Giants\",\r\n\ttrait : [\r\n\t\t\"What I lack in stature, I make up for with sheer spite.\",\r\n\t\t\"Sometimes size does matter, okay? If I see a beast bigger than me, I'm immediately running away.\",\r\n\t\t\"Crowded spaces make me uncomfortable. I'd much rather be in a wide-open field than a bustling tavern.\",\r\n\t\t\"I like being small. It helps me stay unnoticed\\u2014and underestimated.\",\r\n\t\t\"Size is just half the story. Every avalanche begins as a single pebble.\",\r\n\t\t\"The world always feels too big, and I'm afraid I'll never find my place in it.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Origin Story\",\r\n\t\t\"Found as a baby\" + (typePF ? \"\": \" by nomadic giants\"),\r\n\t\t\"Rescued from mountain crag\" + (typePF ? \"\": \" by stone giants\"),\r\n\t\t\"Found as a child lost in a jungle\" + (typePF ? \"\": \" by a frost giant\"),\r\n\t\t\"Home/family killed by warring giants\"\r\n\t]\r\n};\r\nBackgroundList[\"planar philosopher-ua\"] = {\r\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher).*$/i,\r\n\tname : \"Planar Philosopher\",\r\n\tsource : [[\"UA:WotM\", 4]],\r\n\tskills : [\"Arcana\", \"Persuasion\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Conviction\",\r\n\ttrait : [\r\n\t\t\"I don't venerate any gods; we can be as powerful or greater than them.\",\r\n\t\t\"Experience is everything, live in the moment.\",\r\n\t\t\"When things crumble, I find meaning in the ashes.\",\r\n\t\t\"Life thrives through order; I won't tolerate disruptions.\",\r\n\t\t\"When others make plans, the multiverse laughs and so do I.\",\r\n\t\t\"I know what's right, and no one will stand in my way.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Trinket\",\r\n\t\t\"Inscribed locket with image of mentor\",\r\n\t\t\"Bleached rat skull with glass eyes\",\r\n\t\t\"Torn parchment with half a puzzle\",\r\n\t\t\"Bracelet of twisted razorvine stems\",\r\n\t\t\"Fragment of verdigris bronze blade\",\r\n\t\t\"Smooth stone with holy symbols\"\r\n\t]\r\n};\r\nBackgroundList[\"rune carver-ua\"] = {\r\n\tregExpSearch : /^(?=.*rune)(?=.*carver).*$/i,\r\n\tname : \"Rune Carver\",\r\n\tsource : [[\"UA:WotM\", 5]],\r\n\tskills : [\"History\", \"Perception\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [\"Giant\", 1],\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5],\r\n\t\t[\"Whetstone\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Rune Carver Apprentice\",\r\n\ttrait : [\r\n\t\t\"Is it practical to learn an ancient language that is rarely used in everyday speech? No. But is it fun? Very.\",\r\n\t\t\"I learned one of my ancestors was a lauded rune carver whose story was lost to time. I seek to rekindle that legacy.\",\r\n\t\t\"The old, traditional markings of runecraft look so boring. Why not give your runes some flair?\",\r\n\t\t\"In my studies of runes, I strive to understand how great civilizations of the past fell, so that I may prevent it from happening to societies of the present.\",\r\n\t\t\"Life may be a whirlwind of chaos around me, but whenever I create my runes, I feel at peace.\",\r\n\t\t\"My brain struggles to process ink words written on paper, but the tactile feeling of carved runes makes my mind sing.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Rune Style\",\r\n\t\t\"Use fine metal needle to inscribe\",\r\n\t\t\"On small wooden figurines\",\r\n\t\t\"On glass beads in necklace/bracelet\",\r\n\t\t\"Stitched into the hems of clothing\",\r\n\t\t\"Carved on set of animal bones\",\r\n\t\t\"Drawn into candles\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"rune carver apprentice\"] = {\r\n\tdescription : \"I've dedicated my life to studying the practice of runecraft. Whether I was personally taught by a master rune carver or learned by poring over engravings in ancient ruins, I understand how to tap into the supernatural power held within runes. Also, I gain the Rune Carver Apprentice feat.\",\r\n\tsource : [[\"UA:WotM\", 5]],\r\n\tfeatsAdd: [\"Rune Carver Apprentice\"],\r\n};\r\n\r\n// Then the backgrounds that haven't been altered in the book\r\n// Feats\r\nFeatsList[\"cartomancer-ua\"] = {\r\n\tname : \"Cartomancer\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : 'I can use a deck of cards as a spellcasting focus. When doing so, Prof Bonus per long rest I can add +1d4 to the damage of one target of a spell I cast. I know Prestidigitation and can also cast it to do stage magic, concealing its components. When I finish a long rest, I can store a spell into a card, see \"Hidden Ace\" notes.',\r\n\tdescriptionFull : \"You have learned to channel your magic through a deck of playing cards, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Card Focus\") + \". You can use a deck of cards as your spellcasting focus. When you use the deck as a focus to cast a spell that deals damage, roll a d4. You gain a bonus to one damage roll of the spell equal to the number rolled. This bonus applies to one creature of your choice that you can see damaged by the spell; you can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses of it when you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Card Tricks\") + \". You learn the prestidigitation cantrip and can use it to create illusions that duplicate the effects of stage magic. When you use prestidigitation in this way, you can conceal the verbal and somatic components of the spell as mundane conversation and card-handling.\"+\r\n\t\"\\n   \" + toUni(\"Hidden Ace\") + \". When you finish a long rest, you can choose one spell you know and imbue it into a card; the chosen spell must have a casting time of 1 action, and its level must be less than or equal to your proficiency bonus. While the card is imbued with the spell, you can use your bonus action to flourish the card and cast the spell within. The card then immediately loses its magic.\",\r\n\tprerequisite : \"4th-level; Sorcerer, Warlock, or Wizard Class\",\r\n\tprereqeval : function (v) {\r\n\t\treturn v.characterLevel >= 4 && (classes.known.wizard || classes.known.warlock || classes.known.sorcerer);\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Cartomancer (+1d4 spell damage)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"Hidden Ace (use imbued card)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hidden Ace\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"Whenever I finish a long rest, I can imbue a spell I know into a card until I flourish the card\",\r\n\t\t\t\"The spell must have a casting time of 1 action and a level no more than my Prof Bonus\",\r\n\t\t\t\"As a bonus action, I can flourish the card to cast the stored spell, ousting it from the card\"\r\n\t\t]\r\n\t}]\r\n};\r\n\r\n// Scion of the Outer Planes feat tree\r\nFeatsList[\"scion of the outer planes-ua\"] = {\r\n\tname : \"Scion of the Outer Planes\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I can select a plane and gain resistance to a damage type and learn a cantrip associated with that plane. I can cast the cantrip without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You are influenced by and adept at navigating planar pathways and the strange realities of the Outer Planes.\"+\r\n\t\"\\n   Whether planar essence infuses you or you have extraplanar ancestry, your connection to a plane infuses you with the energies found there. Choose a type of plane listed in the table below. Your choice gives you resistance to a damage type and the ability to cast a cantrip, as specified in the table. You can cast this cantrip without material components, and your spellcasting ability for it is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\ttoUni(\"\\n\\nPlane\\t\\tResistance\\tCantrip\")+\r\n\t\"\\nAstral\\t\\tPsychic\\t\\tMessage\"+\r\n\t\"\\nChaotic Outer\\tNecrotic\\t\\tMinor Illusion\"+\r\n\t\"\\nEvil Outer  \\tNecrotic\\t\\tChill Touch\"+\r\n\t\"\\nGood Outer  \\tRadiant\\t\\tSacred Flame\"+\r\n\t\"\\nLawful Outer\\tRadiant\\t\\tGuidance\"+\r\n\t\"\\nThe Outlands\\tPsychic\\t\\tMage Hand\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tchoices : ['Astral Plane (Psychic, Message)', 'Chaotic Outer Plane (Necrotic, Minor Illusion)', 'Evil Outer Plane (Necrotic, Chill Touch)', 'Good Outer Plane (Radiant, Sacred Flame)', 'Lawful Outer Plane (Radiant, Guidance)', 'The Outlands (Psychic, Mage Hand)'],\r\n\t'astral plane (psychic, message)' : {\r\n\t\tname : \"Scion of the Outer Planes (Astral Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to the astral plane gives me resistance to psychic damage and I know the Message cantrip, which I can cast without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Astral Plane\",\r\n\t\t\tspell : [\"message\"],\r\n\t\t\tselection : [\"message\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Psychic\"],\r\n\t\tspellChanges : {\r\n\t\t\t\"message\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Message without material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t'chaotic outer plane (necrotic, minor illusion)' : {\r\n\t\tname : \"Scion of the Outer Planes (Chaotic Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to a chaotic outer plane gives me resistance to necrotic damage and I know the Minor Illusion cantrip, which requires no material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Chaotic Outer Plane\",\r\n\t\t\tspells : [\"minor illusion\"],\r\n\t\t\tselection : [\"minor illusion\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Necrotic\"],\r\n\t\tspellChanges : {\r\n\t\t\t\"minor illusion\" : {\r\n\t\t\t\tcomponents : \"S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Minor Illusion without material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t'evil outer plane (necrotic, chill touch)' : {\r\n\t\tname : \"Scion of the Outer Planes (Evil Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an evil outer plane. This connection gives me resistance to necrotic damage and I know the Chill Touch cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Evil Outer Plane\",\r\n\t\t\tspells : [\"chill touch\"],\r\n\t\t\tselection : [\"chill touch\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Necrotic\"]\r\n\t},\r\n\t'good outer plane (radiant, sacred flame)' : {\r\n\t\tname : \"Scion of the Outer Planes (Good Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an good outer plane. This connection gives me resistance to radiant damage and I know the Sacred Flame cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Good Outer Plane\",\r\n\t\t\tspells : [\"sacred flame\"],\r\n\t\t\tselection : [\"sacred flame\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Radiant\"]\r\n\t},\r\n\t'lawful outer plane (radiant, guidance)' : {\r\n\t\tname : \"Scion of the Outer Planes (Lawful Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an lawful outer plane. This connection gives me resistance to radiant damage and I know the Guidance cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lawful Outer Plane\",\r\n\t\t\tspells : [\"guidance\"],\r\n\t\t\tselection : [\"guidance\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Radiant\"]\r\n\t},\r\n\t'the outlands (psychic, mage hand)' : {\r\n\t\tname : \"Scion of the Outer Planes (The Outlands)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from a plane of the outlands. This gives me resistance to psychic damage and I know the Mage Hand cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"The Outlands\",\r\n\t\t\tspells : [\"mage hand\"],\r\n\t\t\tselection : [\"mage hand\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Psychic\"]\r\n\t}\r\n};\r\nFeatsList[\"agent of order-ua\"] = {\r\n\tname : \"Agent of Order\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save (DC 8 + Prof Bonus + the modifier of the ability score increased by this feat) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest.\",\r\n\tdescriptionFull : \"You can channel cosmic forces of order that lock the multiverse into patterns. Your actions are your own to choose, but these forces grant you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Stasis Strike\") + \". Once per turn when you damage a creature you can see within 60 feet of yourself, you can deal an extra 1d8 force damage to the target, and it must succeed on a Wisdom saving throw (DC equal to 8 + your proficiency bonus + the modifier of the ability score increased by this feat) or be restrained by spectral bindings until the start of your next turn. These bindings manifest as chains, gears, encasing stone, or some other symbol of stasis. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Lawful Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'lawful outer plane (radiant, guidance)';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof Bonus + Str mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Strength]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Dex Mod'))) + ' (8 + Prof Bonus + Dex mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Dexterity]';\",\r\n\t\tscores : [0, 1, 0, 0, 0, 0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof Bonus + Con mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Constitution]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Intelligence]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Wisdom]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Charisma]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"baleful scion-ua\"] = {\r\n\tname : \"Baleful Scion\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"Once per turn, when I hit a creature with a melee weapon attack, I can also deal 1d6 + my Proficiency Bonus necrotic damage to it. I then regain a number of hit points equal to this necrotic damage dealt. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel cosmic forces of evil that cause pain but invigorate your being. You can choose your own actions despite this malign connection. You gain the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Life-Draining Grasp\") + \". Once per turn, when you hit a creature with a melee weapon attack, you can also deal necrotic damage to it. The damage equals 1d6 + your proficiency bonus, and you regain a number of hit points equal to this necrotic damage dealt. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Evil Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'evil outer plane (necrotic, chill touch)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"cohort of chaos-ua\"] = {\r\n\tname : \"Cohort of Chaos\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"When I roll a 1 or a 20 on an attack roll or save, a the magic of chaos flares up and I roll on the Chaotic Flare table to determine what happens (see notes for table). As a bonus action, my Proficiency Bonus per long rest, I can force a flare to happen. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel the cosmic forces of chaos that drive the multiverse toward both freedom and disarray. Your actions are still yours to choose, but you gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Chaotic Flare\") + \". When you roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through you. Roll on the table below to determine what happens. A flare lasts until the end of your next turn, and a new flare can't occur until after the first flare ends.\"+\r\n\ttoUni(\"\\n\\nd4\\tFlare\")+\r\n\t\"\\n  1\\tDisruption Field: Waves of energy ripple in a 10-foot sphere centered on you. Every creature other than you that starts its turn in that area, or that moves into that area for the first time on a turn, takes 1d8 force damage.\"+\r\n\t\"\\n  2\\tBattle Fury: A creature of your choice that you can see is filled with reckless fury. The creature has advantage on attack rolls and disadvantage on ability checks.\"+\r\n\t\"\\n  3\\tUnbound: When you move, you can use some or all of your walking speed to teleport once, along with any equipment you're wearing or carrying, up to the distance used to an unoccupied space that you can see.\"+\r\n\t\"\\n  4\\tWailing Winds: Howling winds swirl around you in a 60-foot radius. You and any creature in that radius has disadvantage on Wisdom saving throws.\"+\r\n\t\"\\n\\n   You can also forcibly release a chaotic flare as a bonus action, rolling on the table as normal to determine the effects. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Chaotic Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'chaotic outer plane (necrotic, minor illusion)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tadditional : \"force flare\",\r\n\taction : [[\"bonus action\", \" (force flare)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Chaotic Flare Table\",\r\n\t\tnote : [\r\n\t\t\t\"When I roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through me. I roll on the table below to determine what happens. A flare lasts until the end of my next turn, and a new flare can't occur until after the first flare ends.\",\r\n\t\t\t\"As a bonus action, I can forcibly release a chaotic flare, rolling on the table as normal to determine the effects. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when you finish a long rest.\",\r\n\t\t\t\"\\n d4  Flare\",\r\n\t\t\t\"1  Disruption Field: Waves of energy ripple in a 10-ft sphere centered on me. Every creature other than me that starts its turn in that area, or that moves into that area for the first time on a turn, takes 1d8 force damage.\",\r\n\t\t\t\"2  Battle Fury: A creature of my choice that I can see is filled with reckless fury. The creature has advantage on attack rolls and disadvantage on ability checks.\",\r\n\t\t\t\"3  Unbound: When I move, I can use some or all of my walking speed to teleport once, along with any equipment I'm wearing or carrying, up to the distance used to an unoccupied space that I can see.\",\r\n\t\t\t\"4  Wailing Winds: Howling winds swirl around me in a 60-ft radius. I and any creature in that radius have disadvantage on Wisdom saving throws.\"\r\n\t\t]\r\n\t}]\r\n};\r\nFeatsList[\"outlands envoy-ua\"] = {\r\n\tname : \"Outlands Envoy\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I can cast Misty Step and Tongues each once per long rest without requiring a spell slot or material components. I can also cast them using a spell slot as normal. My spellcasting ability for these spells is the same as the one for the Scion of the Outer Planes feat. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You have spent significant time in Sigil or elsewhere in the Outlands, the crossroads of the multiverse. Being steeped in converging planar energies grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Crossroads Emissary\") + \". You learn the misty step and tongues spells. You can cast each spell once using this feat without a spell slot, and you must finish a long rest before you can cast that spell in this way again. When you cast tongues using this feat, you require no material components. You can also cast these spells using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gained the Scion of the Outer Planes feat.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes-ua\") !== -1;\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tspellcastingAbility : \"scion of the outer planes-ua\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Crossroads Emissary\",\r\n\t\tspells : [\"misty step\", \"tongues\"],\r\n\t\tselection : [\"misty step\", \"tongues\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"tongues\" : {\r\n\t\t\tcomponents : SpellsList.tongues.components.replace(\"M\", \"M*\"),\r\n\t\t\tcompMaterial : \"When using a spell slot: \"+SpellsList.tongues.compMaterial,\r\n\t\t\tchanges : \"Using Outlands Envoy, I can cast Tongues once per long rest without expending a spell slot or requiring material components.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"planar wanderer-ua\"] = {\r\n\tname : \"Planar Wanderer\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"After each long rest, I can gain acid, cold, or fire resistance, that lasts until my next long rest ends. I know the direction to the last portal I used while on the same plane as it. As an action, I can try to open or close a portal (portal cracker). As an action once per long rest, I can detect portals (portal sense). See notes.\",\r\n\tdescriptionFull : \"You can draw on the forces of the multiverse to survive cosmic extremes and to traverse its infinite realms. You gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Planar Adaptation\") + \". When you finish a long rest, you gain resistance to either acid, cold, or fire damage (your choice) until you finish your next long rest.\"+\r\n\t\"\\n   \" + toUni(\"Portal Cracker\") + \". Your experience with portals allows you to operate them without the proper portal key. As an action, you can concentrate on a portal you're aware of that is within 5 feet of you and make a DC 20 Wisdom (Survival) check. On a failure, you take 3d8 force damage and you can't use this feature on that portal again until you finish a long rest. On a success, you can force the portal open or closed for 1 hour. For that duration, a portal closed in this way doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"+\r\n\t\"\\n   \" + toUni(\"Portal Sense\") + \". You know the direction to the last planar portal you used while you and the portal are on the same plane. Moreover, as an action, you can detect the location of any portals within 30 feet of you that aren't behind total cover. Once you detect a portal with this action, you can't use the action again until you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes-ua\") !== -1;\r\n\t},\r\n\tdmgres : [\"Acid/Cold/Fire\"],\r\n\taction : [[\"action\", \" (Portal Cracker)\"], [\"action\", \" (Portal Sense)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tadditional : \"Portal Sense\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Portal Cracker\",\r\n\t\tnote : [\r\n\t\t\t\"My experience with portals allows me to operate them without the proper portal key.\",\r\n\t\t\t\"As an action, I can concentrate on a portal I'm aware of that is within 5 ft of me and make a DC 20 Wisdom (Survival) check.\",\r\n\t\t\t\"On a failure, I take 3d8 force damage and I can't use this feature on that portal again until I finish a long rest.\",\r\n\t\t\t\"On a success, I can force the portal open or closed for 1 hour. For that duration, a portal closed in this way doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"\r\n\t\t]\r\n\t}, {\r\n\t\tname : \"Portal Sense\",\r\n\t\tadditional : \"1\\xD7 per long rest\",\r\n\t\tnote : [\r\n\t\t\t\"I know the direction to the last planar portal I used while I and the portal are on the same plane.\",\r\n\t\t\t\"As an action, I can detect the location of any portals within 30 ft of me that aren't behind total cover.\",\r\n\t\t\t\"Once I detect a portal with this action, I can't use the action again until I finish a long rest.\"\r\n\t\t],\r\n\t\tamendTo : \"Portal Cracker\"\r\n\t}]\r\n};\r\nFeatsList[\"righteous heritor-ua\"] = {\r\n\tname : \"Righteous Heritor\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce the damage taken by 1d10 + my Proficiency Bonus. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel the cosmic forces of good that foster serenity and fellowship. You are still free to choose your own actions, but gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Soothe Pain\") + \". When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to dull its suffering and reduce the damage it takes by 1d10 + your proficiency bonus. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Good Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'good outer plane (radiant, sacred flame)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\n\r\n// Strike of the Giants feat tree\r\nFeatsList[\"strike of the giants-ua\"] = {\r\n\tname : \"Strike of the Giants\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"As a bonus action, I can call on the power of my giant magic to imbue my attacks with additional power. The next time I hit a target with a melee or thrown weapon attack within the next minute, the attack has an additional effect depending on the origin of my giant magic (hill, stone, frost, fire, cloud or storm).\",\r\n\tdescriptionFull : \"You have absorbed primeval magic that gives you an echo of the might of giants. Choose one of the kinds of giants listed below. As a bonus action, you can call on the power of your giant magic to imbue your attacks with additional power. The next time you hit a target with a melee or thrown weapon attack within the next minute, the attack has an additional effect depending on the origin of your giant magic:\"+\r\n\tdesc([\r\n\t\ttoUni(\"Hill Giant\") + \". The target takes an extra 1d6 damage of the weapon's type. If the target is a creature, it must succeed on a Strength saving throw or be knocked prone.\",\r\n\t\ttoUni(\"Stone Giant\") + \". The target takes an extra 1d6 force damage. If the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet away from you in a straight line.\",\r\n\t\ttoUni(\"Frost Giant\") + \". The target takes an extra 1d6 cold damage. If the target is a creature, it must succeed on a Constitution saving throw, or its speed is reduced to 0 until the start of your next turn.\",\r\n\t\ttoUni(\"Fire Giant\") + \". The target takes an extra 1d8 fire damage.\",\r\n\t\ttoUni(\"Cloud Giant\") + \". The target takes an extra 1d4 thunder damage. If the target is a creature, it must succeed on a Wisdom saving throw, or you become invisible to it until the start of your next turn.\",\r\n\t\ttoUni(\"Storm Giant\") + \". The target takes an extra 1d6 lightning damage. If the target is a creature, it must succeed on a Constitution saving throw, or it has disadvantage on attack rolls until the start of your next turn.\\n\",\r\n\t\t\"The saving throw DC for these effects equals 8 + your proficiency bonus + your Strength or Constitution modifier.\",\r\n\t\t\"You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\"\r\n\t]),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Hill Giant\", \"Stone Giant\", \"Frost Giant\", \"Fire Giant\", \"Cloud Giant\", \"Storm Giant\"],\r\n\t\"hill giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of hill giants. The next time I hit with a melee or thrown weapon attack within the next minute, it deals +1d6 damage and if the target is a creature, it must make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or be knocked prone.';\"\r\n\t},\r\n\t\"stone giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of stone giants. My next hit in the next minute with a melee or thrown weapon attack deals +1d6 force damage and the target must make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or be pushed 10 ft away from me in a straight line.';\"\r\n\t},\r\n\t\"frost giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of frost giants. The next hit with my melee or thrown weapon attack within 1 minute deals +1d6 cold damage, and if the target is a creature, it must make a Con save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or its speed is 0 until my next turn starts.';\"\r\n\t},\r\n\t\"fire giant\" : {\r\n\t\tdescription : \"I have absorbed primeval magic that gives me an echo of the might of fire giants. As a bonus action, I can call on this power and the next time I hit a target with a melee or thrown weapon attack within the next minute, that attack deals +1d8 fire damage. I can do this my Proficiency Bonus per long rest.\"\r\n\t},\r\n\t\"cloud giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of cloud giants. My next hit within 1 minute with a melee or thrown weapon attack deals +1d4 thunder damage, and the target must make a Wisdom save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or I become invisible to it until my next turn starts.';\"\r\n\t},\r\n\t\"storm giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of storm giants. My next hit within 1 minute with a melee or thrown weapon attack deals +1d6 lightning damage, and the target must make a Con save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or it has disadv. on attack rolls until my next turn starts.';\"\r\n\t}\r\n};\r\nFeatsList[\"ember of the fire giant-ua2\"] = {\r\n\tname : \"Fury of the Fire Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+Prof Bonus fire damage & are blinded until my next turn starts. Dex save (8 + Prof B. + Str/Con/Wis mod) for half damage & not blinded.\",\r\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\r\n\t\"\\n   \" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace a single attack with a magical burst of flame. Each creature of your choice within 15 feet of you that can see you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, a creature takes fire damage equal to 1d8 + your proficiency bonus, and it is blinded until the start of your next turn. On a successful save, the creature takes half as much damage and isn't blinded. You can use your Searing Ignition a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Fire Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'fire giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Fire\"],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) for half damage \\u0026 not blinded. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 1,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B.+ Con mod) for half damage \\u0026 not blinded. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 3,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) for half damage \\u0026 not blinded. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 5,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"fury of the frost giant-ua2\"] = {\r\n\tname : \"Fury of the Frost Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Con save (DC 8 + Prof B. + Str/Con/Wis mod) or take 1d8 + Prof Bonus  cold damage and have its speed reduced by half until my next turn ends.\",\r\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\r\n\t\"\\n   \" + toUni(\"Frigid Retaliation\") + \". Immediately after a creature you can see within 30 feet of you hits you with an attack roll and deals damage, you can use your reaction to retaliate with a conjured blast of ice. The creature must make a Constitution saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, it takes 1d8 + your proficiency bonus cold damage, and its speed is halved until the end of its next turn. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Frost Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'frost giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Cold\"],\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof Bonus) cold damage and have its speed reduced by half until my next turn ends. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B. + Con mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) cold damage and have its speed reduced by half until my next turn ends. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof Bonus) cold damage and have its speed reduced by half until my next turn ends. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t}\r\n};\r\nFeatsList[\"guile of the cloud giant-ua2\"] = {\r\n\tname : \"Guile of the Cloud Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"As a reaction when a creature I can see hits me with an attack roll, I can give myself resistance to that attack's damage. I then teleport to an unoccupied space that I can see within 30 ft. I can do this a number of times equal to half my Proficiency Bonus (rounded up) per long rest. [+1 Dex, Con, or Cha]\",\r\n\tdescriptionFull : \"You've manifested the airy speech and magic emblematic of cloud giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Cloudy Escape\") + \". When a creature you can see hits you with an attack roll, you can use your reaction to give yourself resistance to that attack's damage. You then teleport to an unoccupied space that you can see within 30 feet of yourself. You can use this reaction a number of times equal to half your proficiency bonus (rounded up), and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Cloud Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'cloud giant';\r\n\t},\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\tusages : \"Half proficiency bonus (rounded up) per \",\r\n\tusagescalc : \"event.value = Math.ceil(Number(How('Proficiency Bonus'))/2);\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"keenness of the stone giant-ua2\"] = {\r\n\tname : \"Keenness of the Stone Giant\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, 60/180 ft, 1d10 bludgeoning damage. Target hit must make a Str save DC 10 (8 + Prof B. + Str/Con/Wis mod) or be knocked prone.\",\r\n\tdescriptionFull : \"You've manifested the physical talents emblematic of stone giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Stone Throw\") + \". As a bonus action, you can touch a rock that can fit in the palm of your hand and imbue it with magic. While the rock is imbued with magic and you are wielding it, the rock is a magic ranged weapon with which you're proficient, and it has the thrown property with a normal range of 60 feet and a long range of 180 feet. On a hit, the rock deals 1d10 bludgeoning damage, and if the target is a creature, it must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat) or be knocked prone. The magic remains in the rock until you hit with it or finish a long rest. You can imbue a number of rocks equal to your proficiency bonus with this bonus action, and you regain all expended uses when you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Cavernous Sight\") + \". You gain darkvision out to a range of 60 feet. If you already have darkvision from another source, its range increases by 60 feet.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Stone Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'stone giant';\r\n\t},\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tadditional : \"Imbue Stone\",\r\n\taction : [[\"bonus action\", \" (Imbue Stone)\"]],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) or be knocked prone. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 1,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tisMagicWeapon : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B. + Con mod) or be knocked prone. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 3,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) or be knocked prone. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 5,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"soul of the storm giant-ua2\"] = {\r\n\tname : \"Soul of the Storm Giant\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save (DC 8 + Prof Bonus + Int/Wis/Cha mod) or halve its speed until my next turn starts.\",\r\n\tdescriptionFull : \"You've manifested divination abilities and tempest magic emblematic of storm giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself in an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts until the start of your next turn or until you are incapacitated. While the aura is active, attack rolls against you have disadvantage, and whenever a creature starts its turn within the aura, you can force the creature to make a Strength saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the creature's speed is halved until the start of its next turn. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Storm Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'storm giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"action\", \"\"]],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or halve its speed until my next turn starts. [+1 Int]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or halve its speed until my next turn starts. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or halve its speed until my next turn starts. [+1 Cha]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"vigor of the hill giant-ua2\"] = {\r\n\tname : \"Vigor of the Hill Giant\",\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tdescription : \"When I'm subjected to an effect that would move me at least 5 ft or knock me prone, I can use my reaction to steady myself and stop this from happening. Whenever I eat food as part of a short rest and spend one or more HD to regain HP, I regain additional HP equal to my Con mod + my Proficiency Bonus. [+1 Con]\",\r\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or knock you prone, you can use your reaction to steady yourself. You are then neither moved nor knocked prone.\"+\r\n\t\"\\n   \" + toUni(\"Iron Stomach\") + \". Whenever you eat food as part of a short rest and spend one or more Hit Dice to regain hit points, you regain additional hit points equal to your Constitution modifier + your proficiency bonus.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Hill Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'hill giant';\r\n\t},\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\n\r\n// Rune Carver Apprentice feat tree\r\nFeatsList[\"rune carver apprentice-ua2\"] = {\r\n\tname : \"Rune Carver Apprentice\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know Comprehend Languages and cast it once per long rest without a spell slot. I know two runes, which I can inscribe and use to cast their associated spell once per long rest without a spell slot or material components. I can also cast all three spells with spell slots as normal. See notes page.\",\r\n\tdescriptionFull : \"You've begun studying the art of runecraft.\" + desc([\r\n\t\t\"You learn the comprehend languages spell. You can cast this spell without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using any spell slots you have.\",\r\n\t\t\"You know two runes of your choice from the Rune Spells table. Whenever you finish a long rest, you can mark one nonmagical weapon, armor, piece of clothing, or other object you touch with a rune you know. You temporarily learn one 1st-level spell based on the rune you inscribed, as specified in the Rune Spells table, and you know the spell until you finish a long rest, when the rune fades.\\n\",\r\n\t\ttoUni(\"Rune\\t\\tSpell\"),\r\n\t\t\"Death\\t\\tRay of sickness\",\r\n\t\t\"Dragon\\t\\tChromatic orb\",\r\n\t\t\"Enemy\\t\\tDisguise self\",\r\n\t\t\"Friend\\t\\tSpeak with animals\",\r\n\t\t\"Journey   \\tLongstrider\",\r\n\t\t\"King\\t\\tCommand\",\r\n\t\t\"Mountain\\tEntangle\",\r\n\t\t\"Sacred\\t\\tSanctuary\\n\",\r\n\t\t\"While you are wearing or carrying the rune-marked object, you can cast the spell associated with the chosen rune once without using a spell slot or material components, and you can also cast the spell using any spell slots you have.\",\r\n\t\t\"Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\t\t\"Each time you gain a level, you can replace one of the runes you know with a different one from the Rune Spells table.\"\r\n\t]),\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"comprehend languages\"],\r\n\t\tselection : [\"comprehend languages\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"Select Rune Spell\",\r\n\t\tspells : [\"ray of sickness\", \"chromatic orb\", \"disguise self\", \"speak with animals\", \"longstrider\", \"command\", \"entangle\", \"sanctuary\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : 2,\r\n\t\tallowUpCasting : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName === \"rune carver apprentice-ua2\" && spellKey !== \"comprehend languages\") {\r\n\t\t\t\t\tspellObj.components = spellObj.components.replace(/M(\\u0192)?/, \"M*\");\r\n\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+) ?gp/, \"$1*gp\");\r\n\t\t\t\t\tspellObj.ritual = false;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If the rune spells that I know are inscribed on something in my possession, I can cast each once per long rest without without using a spell slot or material components, or I can cast them using spell slots as normal.\"\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"I know Comprehend Languages and can cast it without expending a spell slot once per long rest. I can also cast this spell using any spell slots I have.\",\r\n\t\t\t\"I know two runes of my choice from the list below. Whenever I finish a long rest, I can mark one nonmagical weapon, armor, piece of clothing, or other object I touch with a rune I know. I temporarily learn one 1st-level spell based on the rune I inscribed and I know the spell until I finish a long rest, when the rune fades.\",\r\n\t\t\t\"While I'm wearing or carrying the rune-marked object, I can cast its associated spell once per long rest without using a spell slot or material components. I can also cast the spell using any spell slots I have.\",\r\n\t\t\t\"My spellcasting ability for this is Intelligence, Wisdom, or Charisma (choose when selecting this feat).\",\r\n\t\t\t\"Each time I gain a level, I can replace one of the runes I know with a different one from the list.\\n\",\r\n\t\t\t\"RUNE\\t\\tSPELL\\t\\tSCHOOL\",\r\n\t\t\t\"Death\\t\\tRay of Sickness\\tNecromancy\",\r\n\t\t\t\"Dragon\\t\\tChromatic Orb\\tEvocation\",\r\n\t\t\t\"Enemy\\t\\tDisguise Self   \\tIllusion\",\r\n\t\t\t\"Friend\\t\\tSpeak With Animals\\tDivination\",\r\n\t\t\t\"Journey\\t\\tLongstrider\\t\\tTransmutation\",\r\n\t\t\t\"King\\t\\tCommand\\t\\tEnchantment\",\r\n\t\t\t\"Mountain\\t\\tEntangle\\t\\tConjuration\",\r\n\t\t\t\"Sacred\\t\\tSanctuary\\t\\tAbjuration\"\r\n\t\t]\r\n\t}]\r\n};\r\nFeatsList[\"rune carver adept-ua2\"] = {\r\n\tname : \"Rune Carver Adept\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends.\",\r\n\tdescriptionFull : \"Your ability to draw out power from runes has grown.\" + desc([\r\n\t\t\"Increase the ability score of the spellcasting ability chosen when you gained the Rune Carver Apprentice feat by 1, to a maximum of 20.\",\r\n\t\t\"Whenever you cast a spell from the Rune Spells table, or a spell of a school of magic associated with the spell you marked on an object from your Rune Carver Apprentice feat, you can invoke runic power, granting you one of these benefits of your choice:\",\r\n\t\ttoUni(\"Battle Runes\") + \". Choose one creature you can see within 30 feet of yourself. Until the end of that creature's next turn, it has advantage on the next attack roll it makes.\",\r\n\t\ttoUni(\"Healing Runes\") + \". Choose one creature you can see within 30 feet of yourself. That creature gains temporary hit points equal to your level.\",\r\n\t\ttoUni(\"Runic Winds\") + \". Choose one creature you can see within 30 feet of yourself. Until the end of that creature's turn, its movement doesn't provoke opportunity attacks, and its walking speed increases by 10 feet.\",\r\n\t\t\"You can invoke runic power a number of times equal to your proficiency bonus, but no more than once per spell you cast. You regain all expended uses when you finish a long rest.\"\r\n\t]),\r\n\tprerequisite : \"4th-level, Rune Carver Apprentice feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"rune carver apprentice-ua2\") !== -1;\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tselfChoosing : function() {\r\n\t\tif (CurrentSpells[\"rune carver apprentice-ua2\"] && !isNaN(CurrentSpells[\"rune carver apprentice-ua2\"].ability)) {\r\n\t\t\treturn AbilityScores.names[CurrentSpells[\"rune carver apprentice-ua2\"].ability - 1].toLowerCase();\r\n\t\t}\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Int]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Intelligence)\"\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Wisdom)\"\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Cha]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Charisma)\"\r\n\t}\r\n};\r\n\r\n// Scion of Elemental X\r\nFeatsList[\"scion of elemental air-ua\"] = {\r\n\tname : \"Scion of Elemental Air\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know the Minor Illusion cantrip (choice of Int, Wis, or Cha spellcasting ability). As a bonus action, I can gain a flying speed equal to my walking speed until my turn ends, but fall after this movement if I'm airborne and not held aloft by other means. I can do this bonus action my Proficiency Bonus per long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Air, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the minor illusion cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Wind's Glide\") + \". You can use a bonus action to gain a flying speed equal to your walking speed until the end of your turn. If you are airborne at the end of your turn after using this movement and aren't held aloft by other means, you fall. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"scion of elemental earth-ua\"] = {\r\n\tname : \"Scion of Elemental Earth\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know the Druidcraft cantrip (choice of Int, Wis, or Cha spellcasting ability). As a bonus action, I can conjure a bulwark of earth that provides half cover to me or a creature of my choice within 30 ft of myself, until the start of my next turn. I can create this bulwark my Proficiency Bonus per long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Earth, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the druidcraft cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Earthen Shield\") + \". You can use a bonus action to conjure a bulwark of earth that provides half cover to you or a creature of your choice within 30 feet of yourself. The bulwark remains until the start of your next turn. You can create this bulwark a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"scion of elemental fire-ua\"] = {\r\n\tname : \"Scion of Elemental Fire\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"I know the Dancing Lights and Produce Flame cantrips. I can choose Int, Wis, or Cha as my spellcasting ability for this.. I can cast Produce Flame as normal, and I can also cast it as a bonus action a number of times equal to my Proficiency Bonus, regaining all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Fire, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the dancing lights cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Fervent Blaze\") + \". You learn the produce flame cantrip, using the same spellcasting ability chosen for this feat's Elemental Magic benefit. You can cast produce flame as normal, and you can also cast it as a bonus action a number of times equal to your proficiency bonus, regaining all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"Fervent Blaze\",\r\n\t\tspell : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"]\r\n\t}, {\r\n\t\tname : \"Fervent Blaze (bonus action)\",\r\n\t\tspell : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"]\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName === \"scion of elemental fire-ua\" && spellKey === \"produce flame\") {\r\n\t\t\t\t\tif (isDuplicate) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"SP\";\r\n\t\t\t\t\t\tspellObj.time = \"1 bns\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.firstCol = \"atwill\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I can cast Produce Flame as a bonus action a number of times equal to my proficiency bonus, regaining all expended uses when I finish a long rest.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"scion of elemental water-ua\"] = {\r\n\tname : \"Scion of Elemental Water\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Water, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the thaumaturgy cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Wave Surge\") + \". You can use a bonus action to create a forceful surge of water directed at a creature within 15 feet of you that you can see. The target must make a Strength saving throw; the DC for this save is equal to 8 + your proficiency bonus + the spellcasting ability modifier chosen for this feat, and a creature can choose to fail this saving throw. On a failure, the target is pushed up to 10 feet away from you or pulled up to 10 feet toward you (your choice). The water vanishes immediately after the creature succeeds or fails. You can create this effect a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Int as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Wis as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Cha as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\n\r\n// Spells\r\nSpellsList[\"antagonize-ua\"] = {\r\n\tname : \"Antagonize\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A playing card depicting a rogue\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 4d4+1d4/SL Psychic dmg & melee atk vs. chosen crea; if none in range, dis. on next atk\",\r\n\tdescriptionShorter : \"1 crea save or 4d4+1d4/SL Psychic dmg & melee atk vs. chosen crea; if no in range, dis. next atk\",\r\n\tdescriptionFull : \"You whisper magical words that antagonize one creature of your choice within range. The target must make a Wisdom saving throw. On a failed save, it takes 4d4 psychic damage and must immediately use its reaction, if available, to make a melee attack against another creature of your choice that you can see. If no other creature is within range, the target has disadvantage on the next attack roll it makes before the start of your next turn.\"+\r\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d4 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"house of cards-ua\"] = {\r\n\tname : \"House of Cards\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A deck of cards\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"30-ft high tower, lifts up; 3 floors, 10-ft sq top floor; 5\\xD710 ft card: AC 10, 1 HP; all in half cover (5 sp)\",\r\n\tdescriptionMetric : \"10-m high tower, lifts up; 3 floors, 3-m sq top floor; 1,5\\xD73m card: AC 10, 1 HP; all in half cover (5 sp)\",\r\n\tdescriptionFull : \"You touch the ground and conjure forth a defensive structure made of enormous playing cards. The structure rises with you at its center, harmlessly lifting you and any creatures in the area. The house of cards has a square base that is 30 feet on each side, and it has three floors with 10-foot-high ceilings. The second floor is 20 feet on each side, and the top floor is 10 feet on each side\\u2014both centered above the bottom floor. Ramps connect the interior of each floor, and empty doorframes connect the interior and exterior of each level. Creatures inside or on top of the structure have half cover.\"+\r\n\t\"\\n   Each card that comprises the house is 5 feet wide and 10 feet tall and is very fragile. A card has AC 10 and 1 hit point. The cards are immune to poison and psychic damage. Reducing a card to 0 hit points destroys it. Every time a card is destroyed, roll 1d6. If you roll a 5 or a 6, the house collapses, ending the spell.\"+\r\n\t\"\\n   The house and all its cards vanish when the spell ends.\"\r\n};\r\nSpellsList[\"spirit of death-ua\"] = {\r\n\tname : \"Spirit of Death\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 4,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded playing card depicting an avatar of death worth at least 400 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Summon spirit to atk 1 crea; obeys commands; takes turn after me; ends if it or target at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth a spirit that embodies death itself. Choose a creature you can see within range. The spirit manifests in an unoccupied space that you can see within 10 feet of the target, and the target becomes haunted by the spirit. The spirit uses the Reaper Spirit stat block. The spirit disappears when it or the haunted creature is reduced to 0 hit points, or when the spell ends.\"+\r\n\t\"\\n   The reaper spirit is an ally to you and your companions. In combat, the spirit shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you), but it will only attack the haunted creature. If you don't issue the spirit any commands, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"spray of cards-ua\"] = {\r\n\tname : \"Spray of Cards\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 11]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"15-ft cone\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A deck of cards\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : typePF ? \"W/D\" : \"W/d\",\r\n\tdescription : \"All in area either: Wis save or blinded 1 rnd; or 2d10+1d10/2SL Force dmg, Dex save halves (5sp)\",\r\n\tdescriptionFull : \"You spray spectral cards from your hands or sleeve; the cards blind or slash at your enemies, and then vanish. Choose one of the following effects for the cards.\"+\r\n\t\"\\n   \" + toUni(\"Blinding Cards\") + \". Each creature in a 15-foot cone must succeed on a Wisdom saving throw or be blinded until the end of their next turn.\"+\r\n\t\"\\n   \" + toUni(\"Cutting Cards\") + \". Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes 2d10 force damage on a failed save or half as much damage on a successful one.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage of cutting cards increases by 1d10 for every two slot levels above 2nd.\"\r\n};\r\nSpellsList[\"summon warrior spirit-ua\"] = {\r\n\tname : \"Summon Warrior Spirit\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 11]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded playing card depicting a knight worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Warrior Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a warrior spirit from the legendary Deck of Many Things. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Warrior Spirit stat block. When you cast the spell, choose a type of warrior: barbarian, fighter, or monk. The warrior resembles a humanoid armed appropriately to the chosen class, which determines certain traits in its stat block. The warrior disappears when it drops to 0 hit points or when the spell ends.\"+\r\n\t\"\\n   The warrior is an ally to you and your companions. In combat, the warrior shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the creature assumes the higher level for that casting wherever it uses the spell's level in its stat block.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/ps_20160427_Zendikar.js",
    "content": "var iFileName = \"ps_20160427_Zendikar.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all material from the Plane Shift: Zendikar article (https://magic.wizards.com/en/articles/archive/feature/plane-shift-zendikar-2016-04-27) to MPMB's Character Record Sheet\r\n// This code contains mostly contributions by SoilentBrad\r\n\r\n// Define the source\r\nSourceList[\"PS:Z\"] = {\r\n\tname : \"Plane Shift: Zendikar\", \r\n\tabbreviation : \"PS:Z\",\r\n\tgroup : \"Plane Shift\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://media.wizards.com/2016/downloads/magic/Plane%20Shift%20Zendikar.pdf\",\r\n\tdate : \"2016/04/27\"\r\n};\r\n\r\n// Adds 11 races\r\nRaceList[\"kor\"] = {\r\n\tregExpSearch : /\\bkor\\b/i,\r\n\tname : \"Kor\",\r\n\tsource : [[\"PS:Z\", 11]],\r\n\tplural : \"Kor\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : 30, enc : 0 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tskills : [\"Acrobatics\", \"Athletics\"],\r\n\tlanguageProfs : [\"Common\", \"Kor (silent speech)\"],\r\n\tage : \" reach adulthood in their late teens and live less than a century\",\r\n\theight : \" average nearly 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" are more slender than humans\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Kor (+2 Dexterity, +1 Wisdom)\\nKor Climbling: I have proficiency in the Athletics and Acrobatics skills.\\nLucky: When I roll a 1 on the d20 for an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\nBrave: I have advantage on saving throws against being frightened.\"\r\n};\r\n\r\nRaceList[\"emeria merfolk\"] = {\r\n\tregExpSearch : /^(?=.*\\b(emeria|wind))(?=.*(merfolk|mermaid|merman)\\b).*$/i,\r\n\tname : \"Emeria Creed Merfolk\",\r\n\tsortname : \"Merfolk, Emeria Creed\",\r\n\tsource : [[\"PS:Z\", 13]],\r\n\tplural : \"Emeria Creed Merfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Merfolk\", 1],\r\n\tage : \" reach adulthood around 20 and live considerably longer than humans, often reaching well over 100 years\",\r\n\theight : \" stand between 6 and 7 feet tall\",\r\n\tweight : \" average around 300 pounds\",\r\n\theightMetric : \" stand between 1,8 and 2,2 metres tall\",\r\n\tskills : [\"Deception\", \"Persuasion\"],\r\n\tscores : [0, 0, 0, 0, 2, 1],\r\n\ttrait : \"Emeria Creed Merfolk (+2 Wisdom, +1 Charisma)\\nAmphibious: I can breathe air and water.\\nWind Creed Manipulation: I have proficiency in the Deception and Persuasion skills.\\nCantrip: I know one cantrip of my choice from the druid spell list. Wisdom is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Emeria Creed Cantrip\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\nRaceList[\"ula merfolk\"] = {\r\n\tregExpSearch : /^(?=.*\\b(ula|water))(?=.*(merfolk|mermaid|merman)\\b).*$/i,\r\n\tname : \"Ula Creed Merfolk\",\r\n\tsortname : \"Merfolk, Ula Creed\",\r\n\tsource : [[\"PS:Z\", 13]],\r\n\tplural : \"Ula Creed Merfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Merfolk\", 1],\r\n\tage : \" reach adulthood around 20 and live considerably longer than humans, often reaching well over 100 years\",\r\n\theight : \" stand between 6 and 7 feet tall\",\r\n\tweight : \" average around 300 pounds\",\r\n\theightMetric : \" stand between 1,8 and 2,2 metres tall\",\r\n\tskills : [\"Survival\"],\r\n\ttoolProfs : [\"Navigator's tools\"],\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Ula Creed Merfolk (+2 Intelligence, +1 Charisma)\\nAmphibious: I can breathe air and water.\\nWater Creed Navigation: I have proficiency with navigator's tools and in the Survival skill.\\nCantrip: I know one cantrip of my choice from the wizard spell list. Intelligence is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Ula Creed Cantrip\",\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\nRaceList[\"cosi merfolk\"] = {\r\n\tregExpSearch : /^(?=.*\\b(cosi|trickster))(?=.*(merfolk|mermaid|merman)\\b).*$/i,\r\n\tname : \"Cosi Creed Merfolk\",\r\n\tsortname : \"Merfolk, Cosi Creed\",\r\n\tsource : [[\"PS:Z\", 13]],\r\n\tplural : \"Cosi Creed Merfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Merfolk\", 1],\r\n\tage : \" reach adulthood around 20 and live considerably longer than humans, often reaching well over 100 years\",\r\n\theight : \" stand between 6 and 7 feet tall\",\r\n\tweight : \" average around 300 pounds\",\r\n\theightMetric : \" stand between 1,8 and 2,2 metres tall\",\r\n\tskills : [\"Sleight of Hand\", \"Stealth\"],\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Ula Creed Merfolk (+1 Intelligence, +2 Charisma)\\nAmphibious: I can breathe air and water.\\nCreed of the Trickster: I have proficiency in the Sleight of Hand and Stealth skills.\\nCantrip: I know one cantrip of my choice from the bard spell list. Charisma is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Cosi Creed Cantrip\",\r\n\t\t\"class\" : \"bard\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\n\r\nRaceList[\"zendikar vampire\"] = {\r\n\tregExpSearch : /^(?=.*vampire)(?=.*zendikar).*$/i,\r\n\tname : \"Vampire\",\r\n\tsortname : \"Vampire, Zendikar\",\r\n\tsource : [[\"PS:Z\", 15]],\r\n\tplural : \"Vampires\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Vampire\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*blood)(?=.*thirst).*$/i,\r\n\t\tname : \"Blood Thirst\",\r\n\t\tsource : [[\"PS:Z\", 15]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"necrotic\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"+1 piercing damage; Reduces max HP by the necrotic damage, while healing me for the same\",\r\n\t\tabilitytodamage : false,\r\n\t\tmonkweapon : false,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" don't mature and age in the same way that other races do. Every living vampire is either a bloodchief, infected by Ulamog's influence in the distant reaches of history, or was spawned by a bloodchief from a living human. Most vampires are thus very old, but few have any memory of their earliest years.\",\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Vampire (+1 Intelligence, +2 Charisma)\\nBlood Thirst: I can drain blood and life energy from a willing creature, or one that is grappled by me, incapacitated, or restrained. With a melee attack, I deal 1 piercing and 1d6 necrotic damage. The target's max HP is reduced by the necrotic damage amount and I regain HP for the same. This max HP reduction lasts until the target finished a long rest.\\nNull Transformation: A humanoid killed by my blood thirst ability becomes a null.\"\r\n};\r\n\r\nRaceList[\"grotag tribe goblin\"] = {\r\n\tregExpSearch : /^(?=.*\\bgrotag)(?=.*goblin\\b).*$/i,\r\n\tname : \"Grotag tribe goblin\",\r\n\tsortname : \"Goblin, Grotag Tribe\",\r\n\tsource : [[\"PS:Z\", 17]],\r\n\tplural : \"Grotag tribe goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\", \"Psychic\"],\r\n\tskills : [\"Animal Handling\"],\r\n\tarmourOptions : [{\r\n\t\tregExpSearch : /^(?=.*goblin)(?=.*grit).*$/i,\r\n\t\tname : \"Goblin Grit\",\r\n\t\tsource : [[\"PS:Z\", 17]],\r\n\t\tac : 11,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood at around 12 and rarely live longer than 50 years\",\r\n\theight : \" average about 3 feet tall (3'\\\" + 2d4\\\")\",\r\n\tweight : \" weigh about 40 lb (35 + 2d4 \\xD7 1d4 lb)\",\r\n\theightMetric : \" average about 100 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh about 20 kg (17 + 5d4 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 0, 0],\r\n\ttrait : \"Grotag Tribe Goblin (+2 Constitution)\\nGrit: I have resistance to fire damage and psychic damage.\\n   In addition, when I am wearing no armor, my AC is equal to 11 + my Dexterity modifier.\"\r\n};\r\nRaceList[\"lavastep tribe goblin\"] = {\r\n\tregExpSearch : /^(?=.*\\blavastep)(?=.*goblin\\b).*$/i,\r\n\tname : \"Lavastep tribe goblin\",\r\n\tsortname : \"Goblin, Lavastep Tribe\",\r\n\tsource : [[\"PS:Z\", 17]],\r\n\tplural : \"Lavastep tribe goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\", \"Psychic\"],\r\n\tarmourOptions : [{\r\n\t\tregExpSearch : /^(?=.*goblin)(?=.*grit).*$/i,\r\n\t\tname : \"Goblin Grit\",\r\n\t\tsource : [[\"PS:Z\", 17]],\r\n\t\tac : 11,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood at around 12 and rarely live longer than 50 years\",\r\n\theight : \" average about 3 feet tall (3'\\\" + 2d4\\\")\",\r\n\tweight : \" weigh about 40 lb (35 + 2d4 \\xD7 1d4 lb)\",\r\n\theightMetric : \" average about 100 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh about 20 kg (17 + 5d4 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 0, 0],\r\n\ttrait : \"Lavastep Tribe Goblin (+2 Constitution)\\nGrit: I have resistance to fire damage and psychic damage.\\n   In addition, when I am wearing no armor, my AC is equal to 11 + my Dexterity modifier.\\nLavastep Grit: I have advantage on Dexterity (Stealth) checks made to hide in rocky or subterranean environments.\"\r\n};\r\nRaceList[\"tuktuk tribe goblin\"] = {\r\n\tregExpSearch : /^(?=.*\\btuktuk)(?=.*goblin\\b).*$/i,\r\n\tname : \"Tuktuk tribe goblin\",\r\n\tsortname : \"Goblin, Tuktuk Tribe\",\r\n\tsource : [[\"PS:Z\", 17]],\r\n\tplural : \"Tuktuk tribe goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\", \"Psychic\"],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\tarmourOptions : [{\r\n\t\tregExpSearch : /^(?=.*goblin)(?=.*grit).*$/i,\r\n\t\tname : \"Goblin Grit\",\r\n\t\tsource : [[\"PS:Z\", 17]],\r\n\t\tac : 11,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood at around 12 and rarely live longer than 50 years\",\r\n\theight : \" average about 3 feet tall (3'\\\" + 2d4\\\")\",\r\n\tweight : \" weigh about 40 lb (35 + 2d4 \\xD7 1d4 lb)\",\r\n\theightMetric : \" average about 100 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh about 20 kg (17 + 5d4 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 0, 0],\r\n\ttrait : \"Tuktuk Tribe Goblin (+2 Constitution)\\nGrit: I have resistance to fire damage and psychic damage.\\n   In addition, when I am wearing no armor, my AC is equal to 11 + my Dexterity modifier.\"\r\n};\r\n\r\nRaceList[\"tajuru elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\btajuru\\b).*$/i,\r\n\tname : \"Tajuru elf\",\r\n\tsortname : \"Elf, Tajuru\",\r\n\tsource : [[\"PS:Z\", 19]],\r\n\tplural : \"Tajuru elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tskillstxt : \"Perception and choose any two skills or tools\",\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 2, 1],\r\n\ttrait : \"Tajuru Elf (+2 Wisdom, +1 Charisma)\\nTajuru Nation: Tajuru elves are the most open to people of other races, seeing their skills and perspectives as valuable new tools for survival.\"\r\n};\r\nRaceList[\"joraga elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\bjoraga\\b).*$/i,\r\n\tname : \"Joraga elf\",\r\n\tsortname : \"Elf, Joraga\",\r\n\tsource : [[\"PS:Z\", 19]],\r\n\tplural : \"Joraga elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 2, 0],\r\n\ttrait : \"Joraga Elf (+1 Dexterity, +2 Wisdom)\\nMask of the Wild: I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n};\r\nRaceList[\"mul daya elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\bmul)(?=.*daya\\b).*$/i,\r\n\tname : \"Mul Daya elf\",\r\n\tsortname : \"Elf, Mul Daya\",\r\n\tsource : [[\"PS:Z\", 19]],\r\n\tplural : \"Mul Daya elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [1, 0, 0, 0, 2, 0],\r\n\ttrait : \"Mul Daya Elf (+1 Strength, +2 Wisdom)\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nMul Daya Magic: 1st level: Chill Touch cantrip; 3rd level: Hex; 5th level: Darkness. Both spells can be used once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Mul Daya Magic (level 1)\",\r\n\t\tspells : [\"chill touch\"],\r\n\t\tselection : [\"chill touch\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"faerie fire\" : {\r\n\t\t\tname : \"Mul Daya Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mul Daya Magic (level 3)\",\r\n\t\t\t\tspells : [\"hex\"],\r\n\t\t\t\tselection : [\"hex\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Mul Daya Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mul Daya Magic (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Adds 7 creatures, 6 beasts and the null for the vampire's racial feature\r\nCreatureList[\"woodcrasher baloth\"] = {\r\n\tname : \"Woodcrasher Baloth\",\r\n\tsource : [[\"PS:Z\", 33]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 95,\r\n\thd : [10, 12],\r\n\tspeed : \"50 ft, climb 30 ft\",\r\n\tscores : [22, 9, 17, 2, 11, 5],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Gore\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [4, 8, \"bludgeoning\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Trampling Charge trait\"\r\n\t\t}, {\r\n\t\t\tname : \"Stomp\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [3, 10, \"bludgeoning\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Can only be used on prone creatures (also see Trampling Charge trait)\"\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Trampling Charge\",\r\n\t\t\tdescription : \"If the baloth moves at least 20 ft straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the baloth can make one stomp attack against it as a bonus action.\"\r\n\t\t}\r\n\t]\r\n};\r\nCreatureList[\"gnarlid\"] = {\r\n\tname : \"Gnarlid\",\r\n\tsource : [[\"PS:Z\", 34]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 17,\r\n\thd : [2, 10],\r\n\tspeed : \"40 ft, climb 30 ft\",\r\n\tscores : [19, 10, 16, 2, 13, 7],\r\n\tskills : {\r\n\t\t\"perception\" : 3,\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"1d8 when enlarged; One bite and one claws attack as an Attack action\",\r\n\t\tmodifiers : [-1, \"\"],\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"2d6 when enlarged; One claws and one bite attack as an Attack action\",\r\n\t\tmodifiers : [-1, \"\"]\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the gnarlid can make one Bite and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Smell\",\r\n\t\tdescription : \"The gnarlid has advantage on Wisdom (Perception) checks that rely on smell.\",\r\n\t}, {\r\n\t\tname : \"Enlarge\",\r\n\t\tdescription : \"As an action, the gnarlid can enlarge. When enlarged, its HP maximum and damage dealt is doubled.\"\r\n\t}]\r\n};\r\nCreatureList[\"ox\"] = {\r\n\tname : \"Ox\",\r\n\tsource : [[\"PS:Z\", 34]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 19,\r\n\thd : [3, 10],\r\n\tspeed : \"40 ft\",\r\n\tscores : [17, 11, 12, 3, 12, 6],\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Ram\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the ox hits with a ram attack after moving at least 20 ft straight toward a target on the same turn, the target takes an extra 2d4 bludgeoning damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.\"\r\n\t}]\r\n};\r\nCreatureList[\"terastodon\"] = {\r\n\tname : \"Terastodon\",\r\n\tsource : [[\"PS:Z\", 34]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 126,\r\n\thd : [11, 12],\r\n\tspeed : \"40 ft\",\r\n\tscores : [24, 9, 21, 3, 11, 6],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"6\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 8, \"bludgeoning\"],\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Trampling Charge trait\",\r\n\t}, {\r\n\t\tname : \"Stomp\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 10, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Can only be used on prone creatures (also see Trampling Charge trait)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Trampling Charge\",\r\n\t\tdescription : \"If the terastodon moves at least 20 ft straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 18 Strength saving throw or be knocked prone. If the target is prone, the terastodon can make one stomp attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"terra stomper\"] = {\r\n\tname : \"Terra Stomper\",\r\n\tsource : [[\"PS:Z\", 34]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 136,\r\n\thd : [13, 12],\r\n\tspeed : \"50 ft\",\r\n\tscores : [25, 10, 19, 2, 12, 9],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t},\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"8\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [3, 8, \"bludgeoning\"],\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Medium or smaller target is grappled and restrained (escape DC 17); can't use bite again until grapple ends\",\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 12, \"piercing\"],\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"One bite and one tail attack to a different as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the terra stomper can make one Bite and one Tail attack. It can't make both attacks against the same target.\"\r\n\t}]\r\n};\r\nCreatureList[\"timbermaw\"] = {\r\n\tname : \"Timbermaw\",\r\n\tsource : [[\"PS:Z\", 34]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 27,\r\n\thd : [6, 8],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [14, 14, 11, 3, 14, 5],\r\n\tdamage_resistances : \"bludgeoning, piercing, and slashing from nonmagical weapons\",\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Tentacles\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"On hit, can make beak attack\"\r\n\t}, {\r\n\t\tname : \"Beak\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Only on hit with a tentacle attack\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Forest Camouflage\",\r\n\t\tdescription : \"The timbermaw has advantage on Dexterity (Stealth) checks made to hide in woodland terrain.\"\r\n\t}]\r\n};\r\nCreatureList[\"vampire null\"] = {\r\n\tname : \"Vampire Null\",\r\n\tsource : [[\"PS:Z\", 28]],\r\n\tsize : 3,\r\n\ttype : \"Undead\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 8,\r\n\thp : 22,\r\n\thd : [3, 8],\r\n\tspeed : \"30 ft\",\r\n\tscores : [13, 6, 16, 3, 6, 5],\r\n\tsaves : [\"\", \"\", \"\", \"\", 0, \"\"],\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 8,\r\n\tlanguages : \"understands all languages it knew in life but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Undead Fortitude\",\r\n\t\tdescription : \"If damage reduces the null to 0 hit points, it must make a Constitution saving throw with a DC of 5 + the damage taken, unless the damage is radiant or from a critical hit. On a success, the null drops to 1 hit point instead.\"\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/ps_20160712_Innistrad.js",
    "content": "var iFileName = \"ps_20160712_Innistrad.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds all material from the Plane Shift: Innistrad article (https://www.dragonmag.com/5.0/#!/article/106375/102161027) to MPMB's Character Record Sheet\r\n// This code contains mostly contributions by SoilentBrad\r\n\r\n// Define the source\r\nSourceList[\"PS:I\"] = {\r\n\tname : \"Plane Shift: Innistrad\",\r\n\tabbreviation : \"PS:I\",\r\n\tgroup : \"Plane Shift\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/Plane_Shift_Innistrad.pdf\",\r\n\tdate : \"2016/07/12\"\r\n};\r\n\r\n// Adds 4 human subraces\r\nRaceList[\"gavony human\"] = {\r\n\tregExpSearch : /^(?=.*\\bgavonian?s?\\b).*$/i,\r\n\tname : \"Gavonian\",\r\n\tsortname : \"Human, Gavony\",\r\n\tsource : [[\"PS:I\", 8]],\r\n\tplural : \"Gavonians\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than a century\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 to each ability score\",\r\n\tscores : [1, 1, 1, 1, 1, 1],\r\n\ttrait : \"Gavonian Human (+1 to each ability score)\\nGavonian: Whether safe behind the walls of the High City of Thraben or out in the moors with little more than shuttered windows, barred doors, and grim determination to stand against the horrors of the night, my people are the most well-rounded of Innistrad.\"\r\n};\r\nRaceList[\"kessig human\"] = {\r\n\tregExpSearch : /^(?=.*\\bkessig(er)?s?\\b).*$/i,\r\n\tname : \"Kessiger\",\r\n\tsortname : \"Human, Kessig\",\r\n\tsource : [[\"PS:I\", 8]],\r\n\tplural : \"Kessigers\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tskills : [\"Survival\"],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than a century\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 1, 0],\r\n\ttrait : \"Kessiger Human (+1 Dexterity, +1 Wisdom)\\nSure-Footed: When I use the Dash action, difficult terrain doesn't cost extra movement on that turn.\\nSpring Attack: When I make a melee attack against a creature, I don't provoke opportunity attacks from that creature for the rest of my turn, whether I hit or not.\"\r\n};\r\nRaceList[\"nephalia human\"] = {\r\n\tregExpSearch : /^(?=.*\\bnephalian?s?\\b).*$/i,\r\n\tname : \"Nephalian\",\r\n\tsortname : \"Human, Nephalia\",\r\n\tsource : [[\"PS:I\", 8]],\r\n\tplural : \"Nephalians\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Any combination of four skills and tools\",\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than a century\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 0, 1],\r\n\ttrait : \"Nephalian Human (+1 Intelligence, +1 Charima)\\nBreadth of Knowledge: I gain proficiency in any combination of four skills or four tools of my choice.\"\r\n};\r\nRaceList[\"stensia human\"] = {\r\n\tregExpSearch : /^(?=.*\\bstensian?s?\\b).*$/i,\r\n\tname : \"Stensian\",\r\n\tsortname : \"Human, Stensia\",\r\n\tsource : [[\"PS:I\", 8]],\r\n\tplural : \"Stensians\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskills : [\"Intimidation\"],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than a century\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 0],\r\n\ttrait : \"Stensian Human (+1 Strength, +1 Constitution)\\nDaunting: I have proficiency in the Intimidation skill.\\nTough: My hit point maximum increases by 2, and it increases by 2 every time I gain a level.\",\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) {\r\n\t\t\treturn [totalHD * 2, '\\n + ' + totalHD + ' \\xD7 2 from the Stensian Tough feature (' + (totalHD * 2) + ')', true];\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Adds 1 background\r\nBackgroundList[\"inquisitor\"] = {\r\n\tregExpSearch : /inquisitor/i,\r\n\tname : \"Inquisitor\",\r\n\tsource : [[\"PS:I\", 12]],\r\n\tskills : [\"Investigation\", \"Religion\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 3],\r\n\t\t[\"Holy symbol\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Legal Authority\",\r\n\ttrait : [\r\n\t\t\"It will all go smoothly if everyone just does as I say.\",\r\n\t\t\"Despair is an extravagance we can ill afford.\",\r\n\t\t\"I know the writings of Saint Raban backward and forward.\",\r\n\t\t\"I try to see the bright side in the very worst situations.\",\r\n\t\t\"It helps me feel better when others show sympathy or appreciation for the horrors I've endured.\",\r\n\t\t\"I prefer to face evil with a strong group of friends in front of me.\",\r\n\t\t\"I want to see the wicked burn for the evil they've brought on us.\",\r\n\t\t\"I feel the sin being purged from me as I help cleanse the world.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Honesty\",\r\n\t\t\t\"Honesty: The smallest deception paves the way to grievous sin. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Piety\",\r\n\t\t\t\"Piety: Devotion to the angels and the rites of the church is all that keeps the world from destruction. (Good)\"\r\n\t\t],\r\n\t\t[\"Order\",\r\n\t\t\t\"Order: The laws of Avacyn are meant to preserve the social order\\u2014everything in its proper place. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Humanity\",\r\n\t\t\t\"Humanity: Human life is to be cherished and preserved against the horrors of the night. (Good)\"\r\n\t\t],\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: The path to holiness comes through understanding of the world. (Any)\"\r\n\t\t],\r\n\t\t[\"Punishment\",\r\n\t\t\t\"Punishment: It is better for the innocent to suffer than for the guilty to escape their due. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"Thraben is the heart of the world. The cathedral must stand even if the hinterlands are lost.\",\r\n\t\t\"One day, I will claim vengeance against the monster that took my family from me.\",\r\n\t\t\"My weapon is all I have to remember my beloved mentor by.\",\r\n\t\t\"The geist of my beloved speaks to me sometimes.\",\r\n\t\t\"My dear sibling is now a werewolf.\",\r\n\t\t\"A small crossways chapel is my spiritual home.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am troubled by the wild rage and bloodlust that lurks in my own heart.\",\r\n\t\t\"I have come to believe that I executed an innocent person.\",\r\n\t\t\"I enjoy the prestige of my position more than service to the angels.\",\r\n\t\t\"I drink to forget the horrors I've seen.\",\r\n\t\t\"I might have made a promise to a demon that I can't keep.\",\r\n\t\t\"I'll do whatever grim task must be done, for my soul is already lost.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tvariant : []\r\n};\r\nBackgroundFeatureList[\"legal authority\"] = {\r\n\tdescription : \"As an inquisitor of the church, I have the authority to arrest criminals. In the absence of other authorities, I am authorized to pass judgment and even carry out sentencing. If I abuse this power, however, my superiors in the church might strip it from me.\",\r\n\tsource : [[\"PS:I\", 12]]\r\n};\r\n"
  },
  {
    "path": "WotC material/ps_20170216_Kaladesh.js",
    "content": "var iFileName = \"ps_20170216_Kaladesh.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all material from the Plane Shift: Kaladesh article (https://magic.wizards.com/en/articles/archive/feature/plane-shift-kaladesh-2017-02-16) to MPMB's Character Record Sheet\r\n// This code contains contributions by SoilentBrad and userZynx_name\r\n\r\n// Define the source\r\nSourceList[\"PS:K\"] = {\r\n\tname : \"Plane Shift: Kaladesh\",\r\n\tabbreviation : \"PS:K\",\r\n\tgroup : \"Plane Shift\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://media.wizards.com/2017/downloads/magic/Plane-Shift_Kaladesh.pdf\",\r\n\tdate : \"2017/02/16\"\r\n};\r\n\r\n// Adds a subclass for the Sorcerer\r\nAddSubClass(\"sorcerer\", \"pyromancer\", { // Includes contributions by userZynx_name\r\n\tregExpSearch : /pyromanc(er|y)/i,\r\n\tsubname : \"Pyromancy\",\r\n\tsource : [[\"PS:K\", 9]],\r\n\tfullname : \"Pyromancer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Heart of Fire\",\r\n\t\t\tsource : [[\"PS:K\", 9]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I start casting a spell (not cantrip) that deals fire damage, flames erupt from me\",\r\n\t\t\t\t\"Chosen creatures within 10 ft that I can see take half my sorcerer level in fire damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) { return (n > 1 ? Math.floor(n/2) : 1) + \" fire damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fire in the Veins\",\r\n\t\t\tsource : [[\"PS:K\", 9]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I have resistance to fire damage and spells I cast ignore resistance to fire damage\"),\r\n\t\t\tdmgres : [\"Fire\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Pyromancer's Fury\",\r\n\t\t\tsource : [[\"PS:K\", 9]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when hit by a melee attack, I can deal fire damage to the attacker\",\r\n\t\t\t\t\"The damage is equal to my sorcerer level and ignores resistance to fire damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tadditional : levels.map( function(n) { return n < 14 ? \"\" : n + \" fire damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Fiery Soul\",\r\n\t\t\tsource : [[\"PS:K\", 9]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have immunity to fire damage\",\r\n\t\t\t\t\"Any spell or effect I create treats immunity to fire damage as resistance to fire damage\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"fire\"] }\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Adds 2 feats\r\nFeatsList[\"quicksmithing\"] = { // Includes contributions by userZynx_name\r\n\tname : \"Quicksmithing\",\r\n\tsource : [[\"PS:K\", 13]],\r\n\tdescriptionFull : \"You have mastered the art of on-the-fly invention, improvement, and jury-rigging. You can use your talents to create immediate, short-term magical effects similar to spells, given time and an adequate supply of aether.\\n   When you choose this feat, you master two magical effects, each of which recreates the effect of a 1st-level spell that has the ritual tag. These spells can come from any class list, but Intelligence is your spellcasting ability for them.\\n   If you come across a schematic geared toward quicksmithing or study with another quicksmith, you might be able to add another spell to the effects you have mastered. The spell's level can be no higher than half your level (rounded up), and it must have the ritual tag. The process of mastering the spell takes 2 hours per level of the spell, and costs 50 gp per level. The cost represents aether you use as you experiment with the spell effect to master it.\\n   In addition, you have proficiency with artisan's tools (quicksmith's tools). Using those tools, you can spend 1 hour and 10 gp worth of materials to construct a Tiny clockwork device (AC 5, 1 hp). The device ceases to function after 24 hours unless you spend 1 hour repairing it to keep it functioning. You can use your action to dismantle the device, at which point you can reclaim the materials used to create it. You can have up to three such devices active at a time.\\n   When you create a device, choose one of the following options:\\n   \" + toUni(\"Clockwork Toy\") + \". This toy is a clockwork animal, monster, or person, such as a frog, mouse, bird, dragon, or soldier. When placed on the ground, the toy moves 5 feet across the ground on each of your turns in a random direction. It makes noises as appropriate to the creature it represents.\\n   \" + toUni(\"Fire Starter\") + \". This device produces a miniature flame, which you can use to light a candle, torch, or campfire. Using the device requires your action.\\n   \" + toUni(\"Music Box\") + \". When opened, this music box plays a single song at a moderate volume. The box stops playing when it reaches the song's end or when it is closed.\",\r\n\tdescription : \"I gain the Tinker ability of a Rock Gnome, including proficiency with tinker's tools. I learn two 1st-level ritual spells and can learn more if found and no higher spell level than half my character level. I can cast these as rituals with Intelligence as my spellcasting ability.\",\r\n\tprerequisite : \"Intelligence 13 or higher\",\r\n\tprereqeval : function (v) { return What('Int') >= 13; },\r\n\teval : function () {\r\n\t\tCurrentSpells['quicksmithing'] = {\r\n\t\t\tname : 'Quicksmithing Ritual Spells',\r\n\t\t\tability : 4,\r\n\t\t\tlist : {'class' : 'any', ritual : true},\r\n\t\t\tknown : { spells : 'book' },\r\n\t\t\trefType : \"feat\"\r\n\t\t};\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tdelete CurrentSpells['quicksmithing'];\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t}\r\n};\r\nFeatsList[\"servo crafting\"] = { // Includes contributions by userZynx_name\r\n\tname : \"Servo Crafting\",\r\n\tsource : [[\"PS:K\", 13]],\r\n\tdescriptionFull : \"You are skilled in the creation of servos\\u2014tiny constructs that function as personal assistants. You can cast the find familiar spell as a ritual, creating a servo to serve as your familiar instead of an animal. A servo's statistics appear in the \\\"Artifact Creatures\\\" section of the Plane Shift: Kaladesh document. In every other way, a servo familiar functions as described in the find familiar spell.\\n   You can communicate telepathically with your servo familiar and perceive through its senses as long as you are on the same plane of existence. You can speak through your servo in your own voice.\\n   Additionally, when you take the Attack action, you can forgo one of your own attacks to allow your servo familiar to make one attack of its own.\",\r\n\tdescription : \"I can cast Find Familiar as a ritual, creating a servo instead of an animal. I can telepathically communicate with it, perceive its senses, and speak through it in my own voice. When I use the Attack action, I can forfeit one attack for it to attack.\",\r\n\tprerequisite : \"Intelligence 13 or higher\",\r\n\tprereqeval : function (v) { return What('Int') >= 13; },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Servo Crafting\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"find familiar\"],\r\n\t\tselection : [\"find familiar\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t}]\r\n};\r\n\r\n// Adds 4 races\r\nRaceList[\"aetherborn\"] = { // Includes contributions by SoilentBrad\r\n\tregExpSearch : /aetherborn/i,\r\n\tname : \"Aetherborn\",\r\n\tsortname : \"Aetherborn\",\r\n\tsource : [[\"PS:K\", 17]],\r\n\tplural : \"Aetherborn\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 2],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\"],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" come into being as adults and live no more than a few years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 100 lb, and get lighter as they age\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tscorestxt : \"+2 Charisma, +1 to two others of your choice\",\r\n\tscores : [0, 0, 0, 0, 0, 2],\r\n\ttrait : \"Aetherborn (+2 Charisma, +1 to two others of your choice)\\nBorn of Aether: I have resistance to necrotic damage.\\nMenacing: I gain proficiency in the Intimidation skill.\",\r\n};\r\nRaceList[\"kaladesh dwarf\"] = { // Includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\bkaladesh\\b).*$/i,\r\n\tname : \"Kaladesh dwarf\",\r\n\tsortname : \"Dwarf, Kaladesh\",\r\n\tsource : [[\"PS:K\", 19]],\r\n\tplural : \"Kaladesh dwarves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\ttoolProfs : [[\"Artisan's tools\", 2]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (3'8\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (115 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (110 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (55 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\ttrait : \"Kaladesh Dwarf (+2 Constitution, +1 Wisdom)\\nArtisan's Expertise: I have proficiency and expertise with two artisan's tools of my choice.\\n   Whenever I make an Intelligence (History) check related to the origin of any architectural construction, I am considered proficient in the History skill and add double my proficiency bonus to the check, instead of my normal proficiency bonus.\\nDwarven Toughness: My hit point maximum increases by 1 for every level I have.\",\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) { return [totalHD, \"Dwarven Toughness\"]; }\r\n\t}\r\n};\r\nRaceList[\"vahadar elf\"] = { // Includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?!.*half)((?=.*\\bvahadar\\b)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\bcity\\b))).*$/i,\r\n\tname : \"Vahadar\",\r\n\tsortname : \"Elf, Vahadar\",\r\n\tsource : [[\"PS:K\", 21]],\r\n\tplural : \"Vahadar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Vahadar (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, but I still need 8 hours for a long rest.\\nCantrip: I know one cantrip of my choice from the druid spell list. Wisdom is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Vahadar Cantrip\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\nRaceList[\"bishtahar elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\bbishtahar\\b).*$/i,\r\n\tname : \"Bishtahar\",\r\n\tsortname : \"Elf, Bishtahar\",\r\n\tsource : [[\"PS:K\", 21]],\r\n\tplural : \"Bishtahar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Bishtahar (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nMask of the Wild: I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n};\r\nRaceList[\"tirahar elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\btirahar\\b).*$/i,\r\n\tname : \"Tirahar\",\r\n\tsortname : \"Elf, Tirahar\",\r\n\tsource : [[\"PS:K\", 21]],\r\n\tplural : \"Tirahar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Tirahar (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nMask of the Wild: I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n};\r\nRaceList[\"vedalken-psk\"] = { // Includes contributions by SoilentBrad\r\n\tregExpSearch : /vedalken/i,\r\n\tname : \"Vedalken\",\r\n\tsortname : \"Vedalken\",\r\n\tsource : [[\"PS:K\", 24]],\r\n\tplural : \"Vedalken\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Vedalken\"],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" reach adulthood around 40 and live up to 500 years\",\r\n\theight : \" range from 6 to 6 1/2 feet tall\",\r\n\tweight : \" weigh less than 200 lb\",\r\n\tscores : [0, 0, 0, 2, 1, 0],\r\n\ttrait : \"Vedalken (+2 Intelligence, +1 Wisdom)\\nVedalken Cunning: I have advantage on all Intelligence, Wisdom, and Charisma saving throws against magic.\\nAether Lore: Whenever I make an Intelligence (History) check related to magic items or aether-powered technological devices, I can add twice my proficiency bonus, instead of any proficiency bonus I normally apply.\"\r\n};\r\n\r\n// Adds 3 creatures, 2 beast and 1 optional familiar\r\nCreatureList[\"gremlin\"] = { // Includes contributions by SoilentBrad\r\n\tname : \"Gremlin\",\r\n\tsource : [[\"PS:K\", 26]],\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 27,\r\n\thd : [5, 8],\r\n\tspeed : \"40 ft\",\r\n\tscores : [12, 13, 13, 3, 13, 6],\r\n\tpassivePerception : 11,\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Claws\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Aether Scent\",\r\n\t\t\tdescription : \"The gremlin can pinpoint, by scent, the location of refined or unrefined aether within 30 feet of it.\",\r\n\t\t}\r\n\t],\r\n\tactions : [{\r\n\t\t\tname : \"Siphon\",\r\n\t\t\tdescription : \"The gremlin drains aether from an aether-powered device it can see within 5 feet of it. If the object isn't being worn or carried, the touch automatically drains aether. If the object is being worn or carried by a creature, the creature must succeed on a DC 11 Dexterity saving throw to keep it out of the gremlin's reach. If the aether-powered device grants any bonus (to attack rolls, damage rolls, Armor Class, and so on), that bonus is reduced by 1. If the device has charges, it loses 1 charge. Otherwise, it stops functioning for 1 round. Left unhindered, a gremlin can completely destroy an aether-powered device.\"\r\n\t\t}\r\n\t]\r\n};\r\nCreatureList[\"sky whale\"] = { // Includes contributions by SoilentBrad\r\n\tname : \"Sky Whale\",\r\n\tnameAlt : [\"Whale, Sky\"],\r\n\tsource : [[\"PS:K\", 28]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 85,\r\n\thd : [9, 12],\r\n\tspeed : \"fly 50 ft (hover)\",\r\n\tscores : [21, 9, 17, 2, 10, 7],\r\n\tskills : {\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\t\tname : \"Flipper\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [2, 8, \"bludgeoning\"],\r\n\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\tdescription : \"Target must succeed on a DC 16 Strength saving throw or be knocked prone\"\r\n\t\t}, {\r\n\t\t\tname : \"Tail\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [2, 8, \"bludgeoning\"],\r\n\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\tdescription : \"Target must succeed on a DC 16 Strength saving throw or be knocked prone\"\r\n\t\t}\r\n\t],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the whale can make one Flipper and one Tail attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Hold Breath\",\r\n\t\tdescription : \"The whale can hold its breath for 30 minutes.\"\r\n\t}]\r\n};\r\nCreatureList[\"servo\"] = { // Includes contributions by userZynx_name\r\n\tname : \"Servo\",\r\n\tsource : [[\"PS:K\", 32]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 10,\r\n\thd : [3, 4],\r\n\tspeed : \"20 ft\",\r\n\tscores : [4, 11, 12, 3, 10, 7],\r\n\tpassivePerception : 10,\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"charmed, poisoned\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Claw\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, \"\", \"slashing\"],\r\n\t\t\trange : \"Melee\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tmodifiers : [1, \"\"],\r\n\t\t\tabilitytodamage : false\r\n\t\t}\r\n\t]\r\n};\r\n"
  },
  {
    "path": "WotC material/ps_20170705_Amonkhet.js",
    "content": "var iFileName = \"ps_20170705_Amonkhet.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all material from the Plane Shift: Amonkhet article (https://dnd.wizards.com/articles/features/plane-shift-amonkhet) to MPMB's Character Record Sheet\r\n// This code contains contributions by /u/MILKB0T and /u/juju2569\r\n\r\n// Define the source\r\nSourceList[\"PS:A\"] = {\r\n\tname : \"Plane Shift: Amonkhet\",\r\n\tabbreviation : \"PS:A\",\r\n\tgroup : \"Plane Shift\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://media.wizards.com/2017/downloads/magic/plane-shift_amonkhet.pdf\",\r\n\tdate : \"2017/07/05\"\r\n};\r\n\r\n// Adds 2 backgrounds and 3 background features\r\nBackgroundList[\"initiate\"] = {\r\n\tregExpSearch : /initiate/i,\r\n\tname : \"Initiate\",\r\n\tsource : [[\"PS:A\", 8]],\r\n\tskills : [\"Athletics\", \"Intimidation\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tequipleft : [\r\n\t\t[\"Simple puzzle box\", \"\", 1],\r\n\t\t[\"Scroll with divine teachings\", \"\", \"\"],\r\n\t\t[\"Gaming set\", \"\", \"\"],\r\n\t\t[\"Earned cartouches\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Trials of the Five Gods\",\r\n\ttrait : [\r\n\t\t\"I always have a joke on hand when the mood gets too serious.\",\r\n\t\t\"I use sarcasm and insults to keep a distance between myself and my crop-mates, because I don't want to get attached to them.\",\r\n\t\t\"I'll settle for nothing less than perfection\\u2014in myself, in my cropmates, in everything.\",\r\n\t\t\"I'm so focused on the glorious afterlife that nothing in this life can shake my calm resolve.\",\r\n\t\t\"I enjoy using my skills to help those who lack those same skills.\",\r\n\t\t\"I train hard so that I can play hard at the end of the day. I fully expect to play even harder in the glorious afterlife, but I'm not in a hurry to get there.\",\r\n\t\t\"I'm perfectly happy letting others pick up the slack for me while I take it easy.\",\r\n\t\t\"I'm constantly sizing up everyone around me, thinking about what kind of opponent they'll be in the final trial.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Solidarity\",\r\n\t\t\t\"Solidarity: The thing that matters most of all is that we're there for each other. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: The world is a puzzle\\u2014a mystery waiting to be solved. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Strength\",\r\n\t\t\t\"Strength: All that matters to me is my own perfection. Let everyone else seek that perfection in their own way. (Any)\"\r\n\t\t],\r\n\t\t[\"Ambition\",\r\n\t\t\t\"Ambition: I'm going to prove that I deserve only the best\\u2014of everything. (Evil)\"\r\n\t\t],\r\n\t\t[\"Zeal\",\r\n\t\t\t\"Zeal: Anything worth doing is worth throwing my whole self into. (Any)\"\r\n\t\t],\r\n\t\t[\"Redemption\",\r\n\t\t\t\"Redemption: I will train all the harder to make up for the doubt I entertained when I was younger. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"One of my crop-mates is my dearest friend, and I hope we will face each other in the final trial.\",\r\n\t\t\"I am in love with a vizier.\",\r\n\t\t\"I am particularly drawn to one of the five gods, and I want nothing more than to win that god's particular favor.\",\r\n\t\t\"I am more devoted to Naktamun and its people than I am to any of the ideals of the gods.\",\r\n\t\t\"My weapon was a gift from a beloved trainer who died in an accident.\",\r\n\t\t\"I carry a memento of my time as an acolyte, and I treasure it above all other things.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'm easily distracted by an attractive person, which could be the death of me in the trials.\",\r\n\t\t\"I really wanted to be a vizier, and I'm angry at the god who didn't choose me.\",\r\n\t\t\"Training for a lifetime to die in the end seems like a big waste of energy.\",\r\n\t\t\"I'm not at all sure I'll be able to grant a glorified death to any of my crop-mates.\",\r\n\t\t\"I have a lasting grudge against one of my crop-mates, and each of us wants to see the other fail.\",\r\n\t\t\"I think I've figured out that this world is not what it seems. Something dark is going on here.\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"],\r\n\tvariant : []\r\n};\r\nBackgroundList[\"vizier\"] = {\r\n\tregExpSearch : /vizier/i,\r\n\tname : \"Vizier\",\r\n\tsource : [[\"PS:A\", 10]],\r\n\tskills : [\"History\", \"Religion\"],\r\n\tgold : 25,\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tequipleft : [\r\n\t\t[\"Scroll with divine teachings\", \"\", \"\"],\r\n\t\t[\"Artisan's tools or musical instrument\", \"\", \"\"],\r\n\t\t[\"Vizier's cartouche\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Voice of Authority\",\r\n\ttrait : [\r\n\t\t\"Everything I do, I do gracefully and deliberately, and with complete confidence. (Oketra)\",\r\n\t\t\"Nothing can shake my rock-hard focus. (Oketra)\",\r\n\t\t\"When I am at peace, I am an oasis of perfect calm in the world. When I am roused to anger, I am an embodiment of terror. (Kefnet)\",\r\n\t\t\"I enjoy teasing acolytes and initiates with juicy tidbits of knowledge wrapped up in fiendishly difficult puzzles. (Kefnet)\",\r\n\t\t\"I have the utmost faith in myself and my abilities. (Rhonas)\",\r\n\t\t\"I get restless when life in the city feels too tame, too safe. (Rhonas)\",\r\n\t\t\"I enjoy solitude as an opportunity to plan my victory. (Bontu)\",\r\n\t\t\"I use satire as a way to undermine the teachings of the other gods. (Bontu)\",\r\n\t\t\"I love, fight, and feast with equal zeal. (Hazoret)\",\r\n\t\t\"I think of those in my care as my family, in a way that most people have trouble understanding. (Hazoret)\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Solidarity\",\r\n\t\t\t\"Solidarity: The worthy must respect the worthy. In the afterlife, all will be united in goal and action. (Oketra)\"\r\n\t\t],\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: The worthy shall cultivate a nimble mind, so as to perceive the wonders beyond imagination that wait in the afterlife. (Kefnet)\"\r\n\t\t],\r\n\t\t[\"Strength\",\r\n\t\t\t\"Strength: The worthy shall hone a strong body that can withstand the boundless energies of the afterlife. (Rhonas)\"\r\n\t\t],\r\n\t\t[\"Ambition\",\r\n\t\t\t\"Ambition: The worthy shall strive for greatness, for supremacy in life leads to supremacy in the afterlife. (Bontu)\"\r\n\t\t],\r\n\t\t[\"Zeal\",\r\n\t\t\t\"Zeal: The worthy shall rush to the God-Pharaoh's side with relentless passion, rising to overcome every obstacle in their way. (Hazoret)\"\r\n\t\t],\r\n\t\t[\"Naktamun\",\r\n\t\t\t\"Naktamun: The life of the city is ordered according to the plan of the God-Pharaoh, and that order must be preserved at all costs.\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My loyalty to my companions embodies the ideal of loyalty to my god. (Oketra)\",\r\n\t\t\"The teachings of my god are more precious to me than any possession. (Kefnet)\",\r\n\t\t\"I would do anything to defend the temple of my god from any harm or desecration. (Rhonas)\",\r\n\t\t\"I am committed to the service of my god\\u2014because it's my sure ticket into the afterlife. (Bontu)\",\r\n\t\t\"I love my god and never want my service to end. (Hazoret)\",\r\n\t\t\"I have a close friend or lover who is also a vizier.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am in love with an initiate, and I want to shield this person from death in the trials.\",\r\n\t\t\"I secretly wish I had not been chosen as a vizier, so I could participate in the trials as an initiate.\",\r\n\t\t\"I secretly question whether the gods care at all about us or what we do.\",\r\n\t\t\"A vizier of another god seeks my death in retribution for a past insult.\",\r\n\t\t\"I am terrified of what lies beyond the Gate to the Afterlife.\",\r\n\t\t\"I secretly believe the God-Pharaoh's return will not bring blessing to this world.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], [\"Musical instrument\", 1]],\r\n\tvariant : []\r\n};\r\nBackgroundFeatureList[\"trials of the five gods\"] = {\r\n\tdescription : \"I live to do the five trials to determine my worthiness in the afterlife. While preparing for these, I have access to training, a place to live, and regular meals. I can enjoy these benefits only as long as I obey the societal norms of Naktamun, obeying the orders of the gods and the instructions of their viziers. If I violate these norms, I risk being treated as a dissenter.\",\r\n\tsource : [[\"PS:A\", 9]]\r\n};\r\nBackgroundFeatureList[\"voice of authority\"] = {\r\n\tdescription : \"My voice is the voice of my god, at least in theory. My job might include training and instructing initiates, and they are required to obey me. In any circumstance, an initiate is expected to defer to my voice and obey my commands. If I abuse this authority, though, my god might personally punish me.\",\r\n\tsource : [[\"PS:A\", 10]]\r\n};\r\nBackgroundFeatureList[\"shelter of dissenters\"] = {\r\n\tdescription : \"If dissenters wish to have any hope of survival, whether hiding within the city or cast out into the desert, they must help each other. I can find a place to hide, rest, or recuperate among other dissenters. They will help shield me from those who hunt me, possibly even risking their lives for me.\",\r\n\tsource : [[\"PS:A\", 11]]\r\n};\r\n\r\n// Adds 5 races\r\nRaceList[\"ibis-headed aven\"] = { // Includes contributions by /u/MILKB0T\r\n\tregExpSearch : /^(?=.*aven)(?=.*ibis).*$/i,\r\n\tname : \"Ibis-Headed Aven\",\r\n\tsortname : \"Aven, Ibis-Headed\",\r\n\tsource : [[\"PS:A\", 16]],\r\n\tplural : \"Ibis-Headed Avens\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Aven\"],\r\n\tage : \" age like humans and can live into their 80s\",\r\n\theight : \" stand between 5 and 6 feet tall\",\r\n\tweight : \" are very slender and their bones are partially hollow to facilitate their flight\",\r\n\theightMetric : \" stand between 1,5 and 1,8 metres tall\",\r\n\tscores : [0, 2, 0, 1, 0, 0],\r\n\ttrait : \"Ibis-Headed Aven (+2 Dexterity, +1 Intelligence)\\n\\nKefnet's Blessing: I can add half my proficiency bonus, rounded down, to any Intelligence check I make that doesn't already include my proficiency bonus.\"\r\n};\r\nif (!SourceList[\"PS:D\"]) {\r\n\tRaceList[\"hawk-headed aven\"] = { // Includes contributions by /u/MILKB0T\r\n\t\tregExpSearch : /^(?=.*aven)(?=.*hawk).*$/i,\r\n\t\tname : \"Hawk-Headed Aven\",\r\n\t\tsortname : \"Aven, Hawk-Headed\",\r\n\t\tsource : [[\"PS:A\", 16], [\"PS:D\", 6]],\r\n\t\tplural : \"Hawk-Headed Avens\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 15 },\r\n\t\t\tfly : { spd : 30, enc : 0 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Aven\"],\r\n\t\tskills : [\"Perception\"],\r\n\t\tage : \" age like humans and can live into their 80s\",\r\n\t\theight : \" stand between 5 and 6 feet tall\",\r\n\t\tweight : \" are very slender and their bones are partially hollow to facilitate their flight\",\r\n\t\theightMetric : \" stand between 1,5 and 1,8 metres tall\",\r\n\t\tscores : [0, 2, 0, 0, 2, 0],\r\n\t\ttrait : \"Hawk-Headed Aven (+2 Dexterity, +2 Wisdom)\\n\\nHawkeyed: I have proficiency in the Perception skill.\\n\\nAttacking at long range doesn't impose disadvantage on my ranged weapon attack rolls.\"\r\n\t};\r\n};\r\nRaceList[\"khenra\"] = { // Includes contributions by /u/juju2569\r\n\tregExpSearch : /khenra/i,\r\n\tname : \"Khenra\",\r\n\tsource : [[\"PS:A\", 18]],\r\n\tplural : \"Khenra\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 35, enc : 25 } },\r\n\tlanguageProfs : [\"Common\", \"Khenra\"],\r\n\tweaponProfs : [false, false, [\"javelin\", \"khopesh\", \"spear\"]],\r\n\tage : \" reaching adulthood in their early teens and rarely live past 60, even without a violent death\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [1, 2, 0, 0, 0, 0],\r\n\ttrait : \"Khenra (+2 Dexterity, +1 Strength)\\n\\nKhenra Twins: If my twin is alive and I can see my twin, I can reroll the die once whenever I roll a 1 on an attack roll, ability check, or saving throw. I must then use the new roll. If my twin is dead (or if I was born without a twin), I can't be frightened.\"\r\n};\r\nRaceList[\"amonkhet minotaur\"] = { // Includes contributions by /u/juju2569\r\n\tregExpSearch : /^(?=.*amonkhet)(?=.*minotaur).*$/i,\r\n\tname : \"Amonkhet Minotaur\",\r\n\tsortname : \"Minotaur, Amonkhet\",\r\n\tsource : [[\"PS:A\", 20]],\r\n\tplural : \"Amonkhet Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\tlanguageProfs : [\"Common\", \"Minotaur\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"PS:A\", 20]],\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach full maturity around the age of 20, but rarely live beyond 40\",\r\n\theight : \" are well over 6 feet tall\",\r\n\tweight : \" have strong, stocky builds\",\r\n\theightMetric : \" are well over 1,8 metres tall\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"relentless endurance\" : {\r\n\t\t\tname : \"Relentless Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"savage attacks\" : {\r\n\t\t\tname : \"Savage Attacks\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/d\\d+/).test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tif (v.extraCritM) {\r\n\t\t\t\t\t\t\t\tv.extraCritM += 1;\r\n\t\t\t\t\t\t\t\tvar extraCritRegex = /\\d+(d\\d+ extra on a crit(ical)?( hit)? in melee)/i;\r\n\t\t\t\t\t\t\t\tfields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tv.extraCritM = 1;\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\\d+).*/, '$1') + ' extra on a crit in melee';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My melee weapon attacks roll 1 additional dice on a critical hit.\",\r\n\t\t\t\t\t900\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\ttrait : \"Amonkhet Minotaur (+2 Strength, +1 Constitution)\\nHorns: I can use my horns to make unarmed strikes, doing 1d6 damage instead of 1.\\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.\\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.\"\r\n};\r\nRaceList[\"naga\"] = { // Includes contributions by /u/juju2569\r\n\tregExpSearch : /naga/i,\r\n\tname : \"Naga\",\r\n\tsource : [[\"PS:A\", 22]],\r\n\tplural : \"Nagas\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\tlanguageProfs : [\"Common\", \"Naga\"],\r\n\ttoolProfs : [\"Poisoner's kit\"],\r\n\tsavetxt : { immune : [\"poison\"] },\r\n\tweaponOptions : [{ // Includes contributions by /u/juju2569\r\n\t\tregExpSearch : /^(?=.*naga)(?=.*bite).*$/i,\r\n\t\tname : \"Naga Bite\",\r\n\t\tsource : [[\"PS:A\", 22]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Target must make Constitution save (DC 8 + Prof Bonus + Con mod) or take +1d4 poison damage\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}, {\r\n\t\tregExpSearch : /\\bconstrict\\b/i,\r\n\t\tname : \"Constrict\",\r\n\t\tsource : [[\"PS:A\", 22]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Target is grappled and restrained (escape DC 8+Prof+Str mod); Can't use constrict again until grapple ends\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood in their late teens and show no signs of aging beyond that point except for growing larger. They could live well over a century.\",\r\n\theight : \" stand about 5 feet tall when upright, but the total length of their bodies, head to tail, ranges from 10 to as much as 20 feet\",\r\n\tweight : \" weigh around 200 lb\",\r\n\theightMetric : \" stand about 1,5 metres tall when upright, but the total length of their bodies, head to tail, ranges from 3 to as much as 6 metres\",\r\n\tweightMetric : \" weigh around 100 kg\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\ttrait : \"Naga (+1 Intelligence, +2 Constitution)\\nSpeed Burst: As a bonus action on my turn, if I have both hands free, I can increase my walking speed by 5 ft until the end of my turn. By lowering my body to the ground and propelling myself with my arms, I can move more quickly for a time.\\nNatural Weapons: I can bite with my fanged maw to poison a creature and constrict with my serpentine body. If I hit with a constrict attack, the target is grappled and restrained. Until this grapple ends, I can't use constrict on another target.\"\r\n};\r\n\r\n// Add weapons for races\r\nWeaponsList.longsword.regExpSearch = WeaponsList.longsword.regExpSearch.replace(\"|\", \"|khopesh|\");\r\n\r\n// Adds 4 subclasses for the Cleric\r\nAddSubClass(\"cleric\", \"solidarity domain\", { // Includes contributions by /u/juju2569\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(solidarity|teamwork|oketra)\\b).*$/i,\r\n\tsubname : \"Solidarity Domain\",\r\n\tsubnameShort: \"Solidarity\",\r\n\tsource : [[\"PS:A\", 24]],\r\n\tspellcastingExtra : [\"bless\", \"guiding bolt\", \"aid\", \"warding bond\", \"beacon of hope\", \"crusader's mantle\", \"aura of life\", \"guardian of faith\", \"circle of power\", \"mass cure wounds\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"PS:A\", 24]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Solidarity's Action\",\r\n\t\t\tsource : [[\"PS:A\", 24]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"When I do the Help action to aid an ally, I can make a weapon attack as a bonus action\"),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \" (with Help action)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Preserve Life\",\r\n\t\t\tsource : [[\"PS:A\", 24]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I heal chosen living creatures within 30 ft of me, up to half their max HP\",\r\n\t\t\t\t\"I can heal five times my cleric level in HP, which I have to divide over the subjects.\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : Math.floor(n*5) + \" HP to divide\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Oketra's Blessing\",\r\n\t\t\tsource : [[\"PS:A\", 24]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, when a creature within 30 ft makes an attack roll, I can grant a bonus\",\r\n\t\t\t\t\"The creature then adds a +10 bonus to the roll; I can do this after seeing the d20 roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"PS:A\", 25]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 weapon damage\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Supreme Healing\",\r\n\t\t\tsource : [[\"PS:A\", 25]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"When I cast a healing spell, all dice for determining HP are treated as rolling maximum\"),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"strength domain\", { // Includes contributions by /u/juju2569\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(strength|toughness|rhonas)\\b).*$/i,\r\n\tsubname : \"Strength Domain\",\r\n\tsubnameShort: \"Strength\",\r\n\tsource : [[\"PS:A\", 25]],\r\n\tspellcastingExtra : [\"divine favor\", \"shield of faith\", \"enhance ability\", \"protection from poison\", \"haste\", \"protection from energy\", \"dominate beast\", \"stoneskin\", \"destructive wave\", \"insect plague\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Acolyte of Strength\",\r\n\t\t\tsource : [[\"PS:A\", 26]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn a druid cantrip\",\r\n\t\t\t\t\"I gain proficiency with one skill: Animal Handling, Athletics, Nature, or Survival\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose one from: Animal Handling, Athletics, Nature, or Survival\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Acolyte of Strength\",\r\n\t\t\t\t\"class\" : \"druid\",\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"PS:A\", 26]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Feat of Strength\",\r\n\t\t\tsource : [[\"PS:A\", 26]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I make an attack roll, ability check, or save using Strength, I can bless it\",\r\n\t\t\t\t\"I can then add a +10 bonus to the roll; I can do this after seeing the d20 roll\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Rhonas's Blessing\",\r\n\t\t\tsource : [[\"PS:A\", 26]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction if any within 30 ft do an attack, check, or save using Str, I can bless it\",\r\n\t\t\t\t\"The subject adds a +10 bonus to the roll; I can do this after seeing the d20 roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"PS:A\", 26]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 weapon damage\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Avatar of Battle\",\r\n\t\t\tsource : [[\"PS:A\", 26]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"I have resistance to bludgeoning/piercing/slashing damage from nonmagical weapons\"),\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"ambition domain\", { // Includes contributions by /u/juju2569\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(ambition|bontu)\\b).*$/i,\r\n\tsubname : \"Ambition Domain\",\r\n\tsubnameShort: \"Ambition\",\r\n\tsource : [[\"PS:A\", 27]],\r\n\tspellcastingExtra : [\"bane\", \"disguise self\", \"mirror image\", \"ray of enfeeblement\", \"bestow curse\", \"vampiric touch\", \"death ward\", \"dimension door\", \"dominate person\", \"modify memory\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Warding Flare\",\r\n\t\t\tsource : [[\"PS:A\", 27]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature within 30 ft attacks me and I can see it, I can interpose divine light\",\r\n\t\t\t\t\"As a reaction, I impose disadv. on the attacker's attack roll (unless it can't be blinded)\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Invoke Duplicity\",\r\n\t\t\tsource : [[\"PS:A\", 27]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I create illusory duplicates of myself within 30 ft of me for 1 min (conc)\",\r\n\t\t\t\t\"As a bonus action, I can move them 30 ft to space(s) I can see within 120 ft of me\",\r\n\t\t\t\t\"I can cast spells as though I was in an duplicate's space, using my own senses\",\r\n\t\t\t\t\"I have advantage on attacks if the target is within 5 ft of a duplicate and me\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : (n < 17 ? 1 : 2) + \" illusory duplicate\" + (n < 17 ? \"\" : \"s\"); }),\r\n\t\t\taction : [[\"action\", \"\"], ['bonus action', 'Move Duplicate(s)']]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Cloak of Shadows\",\r\n\t\t\tsource : [[\"PS:A\", 27]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"As an action, I become invisible until the end of my next turn or I attack/cast a spell\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"PS:A\", 27]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Improved Duplicity\",\r\n\t\t\tsource : [[\"PS:A\", 27]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Invoke Duplicity, I make four illusory duplicates instead of one\",\r\n\t\t\t\t\"I can move any number of the illusory duplicates as part of the same bonus action\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"zeal domain\", { // Includes contributions by /u/MILKB0T\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(zeal|hazoret)\\b).*$/i,\r\n\tsubname : \"Zeal Domain\",\r\n\tsubnameShort: \"Zeal\",\r\n\tsource : [[\"PS:A\", 28]],\r\n\tspellcastingExtra : [\"searing smite\", \"thunderous smite\", \"magic weapon\", \"shatter\", \"haste\", \"fireball\", \"fire shield\", \"freedom of movement\", \"destructive wave\", \"flame strike\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"PS:A\", 28]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Priest of Zeal\",\r\n\t\t\tsource : [[\"PS:A\", 28]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"When I use the Attack action, I can make a weapon attack as a bonus action\"),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Consuming Fervor\",\r\n\t\t\tsource : [[\"PS:A\", 28]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"Instead of rolling, I can do maximum damage when I do fire or thunder damage\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Resounding Strike\",\r\n\t\t\tsource : [[\"PS:A\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"When I deal thunder damage to a Large or smaller foe, I can push it up to 10 ft away\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"PS:A\", 28]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 weapon damage\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Blaze of Glory\",\r\n\t\t\tsource : [[\"PS:A\", 28]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I'm reduced to 0 HP or killed outright, I can do a final heroic act\",\r\n\t\t\t\t\"I move my speed towards my attacker and attack it once in melee with advantage\",\r\n\t\t\t\t\"If the attack hits, it does an extra 5d10 fire and extra 5d10 weapon damage\",\r\n\t\t\t\t\"After this, I suffer the consequences of the damage as I would normally do\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Adds 1 creature\r\nCreatureList[\"serpopard\"] = {\r\n\tname : \"Serpopard\",\r\n\tsource : [[\"PS:A\", 37]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 52,\r\n\thd : [7, 10],\r\n\tspeed : \"40 ft\",\r\n\tscores : [18, 14, 15, 3, 12, 8],\r\n\tskills : {\r\n\t\t\"perception\" : 3,\r\n\t\t\"stealth\" : 6\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\t\tname : \"Claw\", // No Claw attack in the stat block, but logical considering the Pounce trait and CR 3\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Pounce trait\"\r\n\t\t}, {\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 10, \"piercing\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Target also takes 3d6 poison damage, half on a DC 14 Constitution saving throw\"\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tdescription : \"The serpopard has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t\t}, {\r\n\t\t\tname : \"Pounce\",\r\n\t\t\tdescription : \"If the serpopard moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the serpopard can make one bite attack against it as a bonus action.\"\r\n\t\t}\r\n\t]\r\n};\r\nCreatureList[\"cerodon\"] = {\r\n\tname : \"Cerodon\",\r\n\tsource : [[\"PS:A\", 37]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 126,\r\n\thd : [11, 12],\r\n\tspeed : \"40 ft\",\r\n\tscores : [24, 9, 21, 3, 11, 6],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"6\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Gore\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [4, 8, \"bludgeoning\"],\r\n\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Trampling Charge trait\"\r\n\t\t}, {\r\n\t\t\tname : \"Stomp\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [4, 10, \"bludgeoning\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Can only be used on prone creatures (also see Trampling Charge trait)\"\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Trampling Charge\",\r\n\t\t\tdescription : \"If the cerodon moves at least 20 ft straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 18 Strength saving throw or be knocked prone. If the target is prone, the cerodon can make one stomp attack against it as a bonus action.\"\r\n\t\t}, {\r\n\t\t\tname : \"Siege Monster\",\r\n\t\t\tdescription : \"The cerodon deals double damage to objects and structures.\"\r\n\t\t}\r\n\t]\r\n};\r\nCreatureList[\"hippopotamus\"] = {\r\n\tname : \"Hippopotamus\",\r\n\tsource : [[\"PS:A\", 37]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 76,\r\n\thd : [8, 12],\r\n\tspeed : \"40 ft, swim 30 ft\",\r\n\tscores : [22, 9, 17, 3, 11, 6],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [3, 8, \"piercing\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Trampling Charge trait\"\r\n\t\t}, {\r\n\t\t\tname : \"Stomp\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [3, 10, \"bludgeoning\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Can only be used on prone creatures (also see Trampling Charge trait)\"\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Hold Breath\",\r\n\t\t\tdescription : \"The hippopotamus can hold its breath for 30 minutes.\"\r\n\t\t}, {\r\n\t\t\tname : \"Trampling Charge\",\r\n\t\t\tdescription : \"If the hippopotamus moves at least 20 ft straight toward a creature and then hits it with a Bit attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the hippopotamus can make one stomp attack against it as a bonus action.\"\r\n\t\t}\r\n\t]\r\n};\r\n"
  },
  {
    "path": "WotC material/ps_20180109_Ixalan.js",
    "content": "var iFileName = \"ps_20180109_Ixalan.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all material from the Plane Shift: Ixalan article (https://magic.wizards.com/en/articles/archive/feature/plane-shift-ixalan-2018-01-09) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"PS:X\"] = {\r\n\tname : \"Plane Shift: Ixalan\", \r\n\tabbreviation : \"PS:X\",\r\n\tgroup : \"Plane Shift\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://media.wizards.com/2018/downloads/magic/plane-shift_ixalan.pdf\",\r\n\tdate : \"2018/01/09\"\r\n};\r\n\r\n// Adds 6 races\r\nRaceList[\"green merfolk\"] = {\r\n\tregExpSearch : /^(?=.*green)(?=.*(merfolk|mermaid|merman)\\b).*$/i,\r\n\tname : \"Green Merfolk\",\r\n\tsortname : \"Merfolk, Green\",\r\n\tsource : [[\"PS:X\", 12]],\r\n\tplural : \"Green Merfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Merfolk\", 1],\r\n\tage : \" reach adulthood around 20 and live considerably longer than humans, often reaching well over 100 years\",\r\n\theight : \" stand between 6 and 7 feet tall\",\r\n\tweight : \" average around 300 pounds\",\r\n\theightMetric : \" stand between 1,8 and 2,2 metres tall\",\r\n\tweightMetric : \" average around 135 kg\",\r\n\tscores : [0, 0, 0, 0, 2, 1],\r\n\ttrait : \"Green Merfolk (+2 Wisdom, +1 Charisma)\\nAmphibious: I can breathe air and water.\\nMask of the Wild: I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\\nCantrip: I know one cantrip of my choice from the druid spell list. Wisdom is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Cantrip\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\nRaceList[\"blue merfolk\"] = {\r\n\tregExpSearch : /^(?=.*blue)(?=.*(merfolk|mermaid|merman)\\b).*$/i,\r\n\tname : \"Blue Merfolk\",\r\n\tsortname : \"Merfolk, Blue\",\r\n\tsource : [[\"PS:X\", 12]],\r\n\tplural : \"Blue Merfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Merfolk\", 1],\r\n\tage : \" reach adulthood around 20 and live considerably longer than humans, often reaching well over 100 years\",\r\n\theight : \" stand between 6 and 7 feet tall\",\r\n\tweight : \" average around 300 pounds\",\r\n\theightMetric : \" stand between 1,8 and 2,2 metres tall\",\r\n\tweightMetric : \" average around 135 kg\",\r\n\tskills : [\"History\", \"Nature\"],\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Blue Merfolk (+2 Intelligence, +1 Charisma)\\nAmphibious: I can breathe air and water.\\nLore of the Waters: I have proficiency with the History and Nature skills.\\nCantrip: I know one cantrip of my choice from the wizard spell list. Intelligence is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Ula Creed Cantrip\",\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\n\r\nRaceList[\"ixalan vampire\"] = {\r\n\tregExpSearch : /^(?=.*vampire)(?=.*ixalan).*$/i,\r\n\tname : \"Vampire\",\r\n\tsortname : \"Vampire, Ixalan\",\r\n\tsource : [[\"PS:X\", 14]],\r\n\tplural : \"Vampires\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\tlanguageProfs : [\"Common\", \"Vampire\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*blood)(?=.*thirst).*$/i,\r\n\t\tname : \"Blood Thirst\",\r\n\t\tsource : [[\"PS:X\", 14]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"necrotic\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"+1 piercing damage; Reduces max HP by the necrotic damage, while healing me for the same\",\r\n\t\tabilitytodamage : false,\r\n\t\tmonkweapon : false,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" don't mature and age in the same way that other races do\",\r\n\tscores : [0, 0, 0, 0, 1, 2],\r\n\ttrait : \"Vampire (+1 Wisdom, +2 Charisma)\\nBlood Thirst: I can drain blood and life energy from a willing creature, or one that is grappled by me, incapacitated, or restrained. With a melee attack, I deal 1 piercing and 1d6 necrotic damage. The target's max HP is reduced by the necrotic damage amount and I regain HP for the same. This max HP reduction lasts until the target finished a long rest.\\nFeast of Blood: After using my blood thirst ability to drain blood, I gain +10 ft speed and advantage on Strength and Dexterity checks and saving throws for 1 minute.\"\r\n};\r\n\r\nRaceList[\"ixalan orc\"] = {\r\n\tregExpSearch : /^(?=.*ixalan)(?=.*orc).*$/i,\r\n\tname : \"Ixalan orc\",\r\n\tsortname : \"Orc, Ixalan\",\r\n\tsource : [[\"PS:X\", 15]],\r\n\tplural : \"Ixalan orcs\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach adulthood at age 14 and rarely live longer than 75 years\",\r\n\theight : \" are usually over 6 feet tall (5'4\\\" + 2d8\\\")\",\r\n\tweight : \" weigh between 230 and 280 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are usually over 1,8 metres tall (160 + 5d8 cm)\",\r\n\tweightMetric : \" weigh between 100 and 125 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"relentless endurance\" : {\r\n\t\t\tname : \"Relentless Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"savage attacks\" : {\r\n\t\t\tname : \"Savage Attacks\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/d\\d+/).test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tif (v.extraCritM) {\r\n\t\t\t\t\t\t\t\tv.extraCritM += 1;\r\n\t\t\t\t\t\t\t\tvar extraCritRegex = /\\d+(d\\d+ extra on a crit(ical)?( hit)? in melee)/i;\r\n\t\t\t\t\t\t\t\tfields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tv.extraCritM = 1;\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\\d+).*/, '$1') + ' extra on a crit in melee';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My melee weapon attacks roll 1 additional dice on a critical hit.\",\r\n\t\t\t\t\t900\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\ttrait : \"Ixalan Orc (+2 Strength, +1 Constitution)\" + (typePF ? \"\\n\" : \" \") + \"\\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.\\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.\"\r\n};\r\n\r\nRaceList[\"ixalan goblin\"] = {\r\n\tregExpSearch : /^(?=.*ixalan)(?=.*goblin).*$/i,\r\n\tname : \"Ixalan goblin\",\r\n\tsortname : \"Goblin, Ixalan\",\r\n\tsource : [[\"PS:X\", 16]],\r\n\tplural : \"Ixalan goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 },\r\n\t\tclimb : { spd : 25, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at around 12 and rarely live longer than 50 years\",\r\n\theight : \" average about 3 feet tall (3'\\\" + 2d4\\\")\",\r\n\tweight : \" weigh about 40 lb (35 + 2d4 \\xD7 1d4 lb)\",\r\n\theightMetric : \" average about 100 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh about 20 kg (17 + 5d4 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Ixalan Goblin (+2 Dexterity)\\nAgile Climber: I have a climbing speed of 25 ft, but can't use this while encumbered or wearing medium or heavy armor.\"\r\n};\r\n\r\nRaceList[\"siren\"] = {\r\n\tregExpSearch : /\\bsiren\\b/i,\r\n\tname : \"Siren\",\r\n\tsource : [[\"PS:X\", 17]],\r\n\tplural : \"Sirens\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Siren\"],\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" have slender bodies and their bones partially hollow to facilitate their flight\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Siren (+2 Charisma)\\n\\nFlight: I have a flying speed of 30 ft, but can't use this while encumbered or wearing medium or heavy armor.\\n\\nSiren's Song: I know the friends cantrip and can cast it without material components.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Siren's Song\",\r\n\t\tspells : [\"friends\"],\r\n\t\tselection : [\"friends\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\n\r\nFeatsList[\"vampiric exultation\"] = {\r\n\tname : \"Vampiric Exultation\",\r\n\tsource : [[\"PS:X\", 14]],\r\n\tprerequisite : \"Being an Ixalan Vampire\",\r\n\tprereqeval : function () { return CurrentRace.known == 'ixalan vampire' },\r\n\tdescriptionFull : \"As an action, you can transform the lower half of your body into an inky black vapor, allowing you to float through the air. While transformed, you have a flying speed of 30 feet. You can maintain this form for up to 10 minutes. Once you use this ability, you can't use it again until you finish a short or long rest.\",\r\n\tdescription : \"As an action, I can transform the lower half of my body into an inky black vapor for up to 10 minutes. While transformed, I have a flying speed of 30 ft. Once I use this ability, I can't use it again until I finish a short or long rest.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\n\r\n// Adds 1 creature, a beast\r\nCreatureList[\"frilled deathspitter\"] = {\r\n\tname : \"Frilled Deathspitter\",\r\n\tsource : [[\"PS:X\", 30]],\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 18,\r\n\thd : [4, 6],\r\n\tspeed : \"40 ft\",\r\n\tscores : [12, 16, 13, 4, 12, 6],\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 3,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and two claw attacks as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claw\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two claw and one bite attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Spit Poison\",\r\n\t\tability : 2,\r\n\t\tdamage : [4, 8, \"poison\"],\r\n\t\trange : \"15/30 ft\",\r\n\t\tdescription : \"Target blinded til end of next turn; DC 13 Con save for half damage and not blinded\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the deathspitter can make two Claw and one Bite attack.\"\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/ps_20180731_Dominaria.js",
    "content": "var iFileName = \"ps_20180731_Dominaria.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds all material from the Plane Shift: Dominaria article (https://magic.wizards.com/en/articles/archive/feature/plane-shift-dominaria-2018-07-31) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"PS:D\"] = {\r\n\tname : \"Plane Shift: Dominaria\", \r\n\tabbreviation : \"PS:D\",\r\n\tgroup : \"Plane Shift\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://media.wizards.com/2018/downloads/magic/Plane_Shift_Dominaria.pdf\",\r\n\tdate : \"2018/07/31\"\r\n};\r\n\r\n// Adds the 'Aven' race, which is identical to the Hawk-Headed Aven from Plane Shift: Amonkhet\r\nif (!SourceList[\"PS:A\"]) {\r\n\tRaceList[\"aven\"] = {\r\n\t\tregExpSearch : /aven/i,\r\n\t\tname : \"Aven\",\r\n\t\tsource : [[\"PS:A\", 16], [\"PS:D\", 6]],\r\n\t\tplural : \"Avens\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 15 },\r\n\t\t\tfly : { spd : 30, enc : 0 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Aven\"],\r\n\t\tage : \" age like humans and can live into their 80s\",\r\n\t\theight : \" stand between 5 and 6 feet tall\",\r\n\t\tweight : \" are very slender and their bones are partially hollow to facilitate their flight\",\r\n\t\theightMetric : \" stand between 1,5 and 1,8 metres tall\",\r\n\t\tscores : [0, 2, 0, 0, 2, 0],\r\n\t\ttrait : \"Aven (+2 Dexterity, +2 Wisdom)\\n\\nHawkeyed: I have proficiency in the Perception skill.\\n\\nAttacking at long range doesn't impose disadvantage on my ranged weapon attack rolls.\"\r\n\t};\r\n};\r\n// Add a new human race\r\nRaceList[\"keldon human\"] = {\r\n\tregExpSearch : /^((?=.*\\bkeldon?s?\\b)|(?=.*keld)(?=.*human)).*$/i,\r\n\tname : \"Keldon\",\r\n\tsortname : \"Human, Keldon\",\r\n\tsource : [[\"PS:D\", 19]],\r\n\tplural : \"Keldons\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskills : [\"Athletics\"],\r\n\tsaves : [\"Str\"],\r\n\tlanguageProfs : [\"Common\", \"Keldon\"],\r\n\tage : \" reach adulthood in their late teens and live less than a century\",\r\n\theight : \" stand over 6 feet tall, reaching heights of above 7 feet\",\r\n\tweight : \" heavier than the human norms of other cultures\",\r\n\theightMetric : \" stand over 1,8 metres tall, reaching heights of above 2,1 metres\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\ttrait : \"Keldon Human (+2 Strength, +1 Constitution)\\n   Natural Athlete: I am proficient with the Athletics skill.\\n   Keldon Resilience: I am proficient with Strength saving throws.\\n   Icehaven Born: I am naturally adapted to cold climates.\"\r\n};\r\n\r\n// Add 2 beasts\r\nCreatureList[\"kavu predator\"] = {\r\n\tname : \"Kavu Predator\",\r\n\tsource : [[\"PS:D\", 24]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 75,\r\n\thd : [10, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [18, 12, 15, 6, 14, 8],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Elvish\",\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 10, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Can be used in combination with claw while pouncing (see Pounce trait)\"\r\n\t}, {\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"2 claw attacks as 1 action; If used after moving 20 ft straight in the same round, see Pounce trait\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the kavu moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the kavu can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"steel leaf kavu\"] = {\r\n\tname : \"Steel Leaf Kavu\",\r\n\tnameAlt : [\"Kavu, Steel Leaf\"],\r\n\tsource : [[\"PS:D\", 24]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 16,\r\n\thp : 142,\r\n\thd : [15, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [20, 12, 18, 6, 14, 8],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Elvish\",\r\n\tchallengeRating : \"4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Raking Charge trait\"\r\n\t}, {\r\n\t\tname : \"Rend\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 8, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Can only be used if target is prone\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Raking Charge\",\r\n\t\tdescription : \"If the kavu moves at least 20 ft straight toward a creature and then hits it with a bit attack on the same turn, that target must succeed on a DC 15 Strength saving throw or be knocked prone. If the target is prone, the kavu can make one rend attack against it as a bonus action.\"\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20140715_LMoP.js",
    "content": "var iFileName = \"pub_20140715_LMoP.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the magic items from the Lost Mines of Phandelver adventure from the D&D 5e starter set to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"LMoP\"] = {\r\n\tname : \"Lost Mines of Phandelver [items]\",\r\n\tabbreviation : \"LMoP\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dndbeyond.com/sources/lmop\",\r\n\tdate : \"2014/07/15\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"dragonguard\"] = {\r\n\tname : \"Dragonguard\",\r\n\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 72]],\r\n\ttype : \"armor (breastplate)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This +1 breastplate has a gold dragon motif worked into its design. It grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\r\n\tdescriptionFull : \"This +1 breastplate has a gold dragon motif worked into its design. Created for a human hero of Neverwinter named Tergon, it grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\r\n\tweight : 20,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /dragonguard/i,\r\n\t\tname : \"Dragonguard\",\r\n\t\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 72]],\r\n\t\ttype : \"medium\",\r\n\t\tac : \"14+1\",\r\n\t\tweight : 20,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"breath weapons of dragons\"] }\r\n}\r\nMagicItemsList[\"hew\"] = {\r\n\tname : \"Hew\",\r\n\tsource : [[\"LMoP\", 33], [\"PaBTSO\", 54]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : 'Dwarvish runes on the head of this rusty battleaxe read \"Hew\". It adds a +1 bonus to attack and damage rolls made with it and deals maximum damage against plant creatures or objects made of wood. While carrying it, I feel uneasy when I travel through a forest, as its creator was a dwarf smith who feuded with dryads.',\r\n\tdescriptionFull : 'This rusty old battleaxe of dwarven manufacture has runes in Dwarvish on the axe head which read \"Hew\". Hew is a +1 battleaxe that deals maximum damage when the wielder hits a plant creature or an object made of wood. The axe\\'s creator was a dwarf smith who feuded with the dryads of a forest where he used it for protection while he cut firewood. Whoever carries the axe feels uneasy whenever he or she travels through a forest.',\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /\\bhew\\b/i,\r\n\t\tname : '\"Hew\"',\r\n\t\tsource : [[\"LMoP\", 33], [\"PaBTSO\", 54]],\r\n\t\tdescription : \"Versatile (1d10); Max damage against plant creatures and wooden objects\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"lightbringer\"] = {\r\n\tname : \"Lightbringer\",\r\n\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 54]],\r\n\ttype : \"weapon (mace)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This mace adds a +1 bonus to attack and damage rolls made with it. It is made for a cleric of the god of dawn, with its head shaped like a sunburst and made of solid brass. I can command it to glow as bright as a torch. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\r\n\tdescriptionFull : \"This +1 mace was made for a cleric of Lathander, the god of dawn. The head of the mace is shaped like a sunburst and is made of solid brass. Named Lightbringer, this weapon glows as bright as a torch when its wielder commands. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /lightbringer/i,\r\n\t\tname : \"Lightbringer\",\r\n\t\tsource : [[\"LMoP\", 48], [\"PaBTSO\", 54]],\r\n\t\tdescription : \"Command to glow as torch and deal +1d6 radiant damage to undead\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"spider staff\"] = { // changed to the new version introduced in Phandelver and Below: The Shattered Obelisk with the prerequisite\r\n\tname : \"Spider Staff\",\r\n\tsource : [[\"LMoP\", 53], [\"PaBTSO\", 220]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"Attacks with this black adamantine quarterstaff topped with a spider deal +1d6 poison damage on a hit. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Spider Climb (1 charge) or Web (2 charges, spell save DC 15).\",\r\n\tdescriptionFull : \"The top of this black, adamantine staff is shaped like a spider. The staff weighs 6 pounds. You must be attuned to the staff to gain its benefits and cast its spells. The staff can be wielded as a quarterstaff. It deals 1d6 extra poison damage on a hit when used to make a weapon attack.\\n   The staff has 10 charges, which are used to fuel the spells within it. With the staff in hand, you can use your action to cast one of the following spells from the staff if the spell is on your class's spell list: Spider Climb (1 charge) or Web (2 charges, spell save DC 15). No components are required.\\n   The staff regains 1d6+4 expended charges each day at dusk. If you expend the staff's last charge, roll a d20. On a 1, the staff crumbles to dust and is destroyed.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tweight : 6, // kept to the original weight\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /^(?=.*spider)(?=.*staff).*$/i,\r\n\t\tname : \"Spider Staff\",\r\n\t\tsource : [[\"LMoP\", 53], [\"PaBTSO\", 220]],\r\n\t\tdescription : \"Versatile (1d8); +1d6 poison damage\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tfixedDC : 15,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"spider climb\"],\r\n\t\tselection : [\"spider climb\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"web\"],\r\n\t\tselection : [\"web\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"staff of defense\"] = { // changed to the new version introduced in Phandelver and Below: The Shattered Obelisk with the prerequisite\r\n\tname : \"Staff of Defense\",\r\n\tsource : [[\"LMoP\", 53]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This slender, hollow staff is made of glass yet is as strong as oak. While holding it, I gain a +1 bonus to AC. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Mage Armor (1 charge) or Shield (2 charges) as an action.\",\r\n\tdescriptionFull : \"This slender, hollow staff is made of glass yet is as strong as oak. It weighs 3 pounds. You must be attuned to the staff to gain its benefits and cast its spells.\\n   While holding the staff, you have a +1 bonus to your Armor Class.\\n   The staff has 10 charges, which are used to fuel the spells within it. With the staff in hand, you can use your action to cast one of the following spells from the staff if the spell is on your class's spell list: Mage Armor (1 charge) or Shield (2 charges). No components are required.\\n   The staff regains 1d6+4 expended charges each day at dawn. If you expend the staff's last charge, roll a d20. On a 1, the staff shatters and is destroyed.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\r\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\r\n\tweight : 3,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tweaponsAdd : { options : [\"Staff of Defense\"] },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"mage armor\"],\r\n\t\tselection : [\"mage armor\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"shield\"],\r\n\t\tselection : [\"shield\"],\r\n\t\tfirstCol : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"shield\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Cast as an action.\"\r\n\t\t}\r\n\t},\r\n\textraAC : [{name : \"Staff of Defense\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while holding the Staff of Defense.\"}],\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20140818_PHB.js",
    "content": "var iFileName = \"pub_20140818_PHB.js\";\r\nRequiredSheetVersion(\"14.0.6-beta\");\r\n// This file adds all material from the Player's Handbook to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.P={\r\n\tname : \"Player's Handbook\",\r\n\tabbreviation : \"PHB\",\r\n\tabbreviationSpellsheet : \"P\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/rpg_playershandbook\",\r\n\tdate : \"2014/08/19\"\r\n};\r\n\r\n// (sub)Races that are not in the SRD\r\nRaceList[\"mountain dwarf\"] = {\r\n\tregExpSearch : /^((?=.*(hylar|daewar))|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(mountain|shield)\\b))).*$/i,\r\n\tname : \"Mountain dwarf\",\r\n\tsortname : \"Dwarf, Mountain\",\r\n\tsource : [[\"P\", 20]],\r\n\tplural : \"Mountain dwarves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\tarmorProfs : [true, true, false, false],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 2, 0, 0, 0],\r\n\ttrait : \"Mountain Dwarf (+2 Strength, +2 Constitution)\\n\\nStonecunning:\\n   Whenever I make an Intelligence (History) check related to the origin of stonework, I am considered proficient in the History skill and add double my proficiency bonus to the check, instead of my normal proficiency bonus.\"\r\n};\r\nRaceList[\"dark elf\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*drow)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(dark|underdarks?|deep|depths?)\\b))).*$/i,\r\n\tname : \"Drow\",\r\n\tsortname : \"Elf, Dark (Drow)\",\r\n\tsource : [[\"P\", 24]],\r\n\tplural : \"Drow\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"rapier\", \"shortsword\", \"hand crossbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to 5 1/2 feet tall (4'5\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 100 lb (75 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,7 metres tall (135 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 45 kg (35 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Drow (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nDrow Magic: 1st level: Dancing Lights cantrip; 3rd level: Faerie Fire; 5th level: Darkness. Both spells can be used once per long rest. Charisma is my spellcasting ability for these.\", // errata to specify once per day is long rest\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Drow Magic (level 1)\",\r\n\t\tspells : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"faerie fire\" : {\r\n\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Faerie Fire\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\tlimfeaname : \"Darkness\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"wood elf\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*(grugach|kagonesti|silhana))|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(woodlands?|woods?|forests?|wilds?|green)\\b))).*$/i,\r\n\tname : \"Wood elf\",\r\n\tsortname : \"Elf, Wood\",\r\n\tsource : [[\"P\", 24]],\r\n\tplural : \"Wood elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 125 lb (100 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 60 kg (45 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Wood Elf (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nMask of the Wild: I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n};\r\nRaceList[\"forest gnome\"] = {\r\n\tregExpSearch : /^((?=.*\\bgnomes?\\b)(?=.*\\b(woods?|forests?|wilds?|green)\\b)).*$/i,\r\n\tname : \"Forest gnome\",\r\n\tsortname : \"Gnome, Forest\",\r\n\tsource : [[\"P\", 37]],\r\n\tplural : \"Forest gnomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 2, 0, 0],\r\n\ttrait : \"Forest Gnome (+1 Dexterity, +2 Intelligence)\" + (typePF ? \"\\n\" : \" \") + \"\\nNatural Illusionist:\\n   I know the Minor Illusion cantrip. Intelligence is my spellcasting ability for it.\\n\\nSpeak with Small Beasts:\\n   Through sounds and gestures, I can communicate simple ideas with Small or smaller beasts.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Natural Illusionist\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t}]\r\n};\r\nRaceList[\"stout halfling\"] = {\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*stout).*$/i,\r\n\tname : \"Stout halfling\",\r\n\tsortname : \"Halfling, Stout\",\r\n\tsource : [[\"P\", 28]],\r\n\tplural : \"Stout halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\", \"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Stout Halfling (+2 Dexterity, +1 Constitution)\\n\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\n\\nHalfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\"\r\n};\r\n\r\n// Add racial variants that are not part of the SRD\r\nAddRacialVariant(\"human\", \"variant\", {\r\n\tregExpSearch : /variant/i,\r\n\tsource : [[\"P\", 31]],\r\n\tskillstxt : \"Choose any one skill\",\r\n\tscorestxt : \"+1 to two different ability scores of my choice\",\r\n\tscores : [0, 0, 0, 0, 0, 0],\r\n\ttrait : \"Human (+1 to two different ability scores of my choice)\\n\\nSkills: I gain proficiency in one skill of my choice.\\n\\nFeat: I gain one feat of my choice.\",\r\n\tfeatsAdd: [{ type: /^(?!.*(blessing|boon|gift|fighting style)).*$/i }],\r\n});\r\n\r\n// Add the subclasses that are not in the SRD\r\nAddSubClass(\"barbarian\", \"totem warrior\", {\r\n\tregExpSearch : /^(?=.*totem)(?=.*(warrior|fighter|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Totem Warrior\",\r\n\tfullname : \"Totem Warrior\",\r\n\tsource : [[\"P\", 50]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spirit Seeker\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast Beast Sense and Speak with Animals as rituals (PHB 217 \\u0026 277)\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"beast sense\", \"speak with animals\"],\r\n\t\t\t\tselection : [\"beast sense\", \"speak with animals\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"beast sense\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"speak with animals\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Totem Spirit\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Spirit using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Bear Spirit\",\r\n\t\t\t\tdescription: desc(\"While raging, I have resistance to all damage types except psychic\"),\r\n\t\t\t\tdmgres : [[\"All -Psychic\", \"All -Psychic (rage)\"]],\r\n\t\t\t\teval : function() {\r\n\t\t\t\t\tprocessResistance(false, 'Barbarian: Rage', ClassList.barbarian.features.rage.dmgres);\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function() {\r\n\t\t\t\t\tprocessResistance(true, 'Barbarian: Rage', ClassList.barbarian.features.rage.dmgres);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Eagle Spirit\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging without heavy armor, others have disadv. on opportunity attacks vs. me\",\r\n\t\t\t\t\t\"I can use the Dash action as a bonus action\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (Dash)\"]]\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Wolf Spirit\",\r\n\t\t\t\tdescription: desc(\"While raging, friends have advantage on melee attacks vs. hostiles within 5 ft of me\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Aspect of the Beast\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Aspect using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Aspect of the Bear\",\r\n\t\t\t\tdescription: desc(\"Advantage on Strength checks to push/pull/lift/break; Carrying capacity is doubled\"),\r\n\t\t\t\tcarryingCapacity : 2\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Aspect of the Eagle\",\r\n\t\t\t\tdescription: desc(\"I can see up to 1 mile away perfectly; No disadvantage on Perception from dim light\")\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Aspect of the Wolf\",\r\n\t\t\t\tdescription: desc(\"I can track while traveling at a fast pace; I can move stealthily at a normal pace\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Spirit Walker\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can cast Commune with Nature as a ritual\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Walker\",\r\n\t\t\t\tspells : [\"commune with nature\"],\r\n\t\t\t\tselection : [\"commune with nature\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"commune with nature\" : {\r\n\t\t\t\t\ttime : \"11 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Totemic Attunement\",\r\n\t\t\tsource : [[\"P\", 50]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc('Choose Bear, Eagle, Elk, Wolf, or Tiger Attunement using the \"Choose Feature\" button'),\r\n\t\t\tchoices : [\"Bear\", \"Eagle\", \"Wolf\"],\r\n\t\t\t\"bear\" : {\r\n\t\t\t\tname : \"Bear Attunement\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, any creature that sees me within 5 ft has disadv. on attacks vs. others\",\r\n\t\t\t\t\t\"Enemies that can't perceive me or be frightened are immune\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Eagle Attunement\",\r\n\t\t\t\tdescription: desc(\"While raging, I can fly at my current speed, but I can only stay aloft during my turn\")\r\n\t\t\t},\r\n\t\t\t\"wolf\" : {\r\n\t\t\t\tname : \"Wolf Attunement\",\r\n\t\t\t\tdescription: desc(\"If my melee attack hits while raging, I can knock prone as a bonus action (up to Large)\"),\r\n\t\t\t\taction : [[\"bonus action\", \" (raging: knock prone)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of valor\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*valor).*$/i,\r\n\tsubname : \"College of Valor\",\r\n\tsubnameshort: \"Valor\",\r\n\tsource : [[\"P\", 55]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor, shields, and martial weapons\"),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Inspiration\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"My Bardic Inspiration can also be used to add the die to a weapon damage roll\",\r\n\t\t\t\t\"Alternatively, it can be used as a reaction to add the die to AC against one attack\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Battle Magic\",\r\n\t\t\tsource : [[\"P\", 55]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"As a bonus action when I use my action to cast a bard spell, I can make a weapon attack\"),\r\n\t\t\taction : [[\"bonus action\", \" (with Bard spell)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"knowledge domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(knowledge|wisdom|learning)).*$/i,\r\n\tsubname : \"Knowledge Domain\",\r\n\tsubnameshort: \"Knowledge\",\r\n\tsource : [[\"P\", 59]],\r\n\tspellcastingExtra : [\"command\", \"identify\", \"augury\", \"suggestion\", \"nondetection\", \"speak with dead\", \"arcane eye\", \"confusion\", \"legend lore\", \"scrying\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Blessings of Knowledge\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I learn two languages and gain proficiency and expertise with two skills\",\r\n\t\t\t\t\"I can choose from the following: Arcana, History, Nature, or Religion\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from Arcana, History, Nature, and Religion. You also gain expertise with these skills\",\r\n\t\t\tlanguageProfs : [2]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Knowledge of Ages\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"As an action, I gain proficiency with a chosen skill or tool for 10 minutes\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Read Thoughts\",\r\n\t\t\tsource : [[\"P\", 59]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one creature within 60 ft I can see must make a Wisdom save\",\r\n\t\t\t\t\"If it fails, I can read its surface thoughts for 1 min, as long as it's within 60 ft of me\",\r\n\t\t\t\t\"As an action, I can end this and cast Suggestion on it (it fails its save automatically)\",\r\n\t\t\t\t\"If it succeeded on its save, I can't use this feature again on it until I finish a long rest\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"P\", 60]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Visions of the Past\",\r\n\t\t\tsource : [[\"P\", 60]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can see recent events of an object or area by concentrating and praying for 1 min\",\r\n\t\t\t\t\"I can meditate this way for up to a number of minutes equal to my Wisdom score\",\r\n\t\t\t\t\"\\u2022 Object Reading (after meditating for 1 minute per owner):\",\r\n\t\t\t\t\"   If an owner owned it in the last Wis score in days, I learn how that owner got/lost it\",\r\n\t\t\t\t\"   I also learn the most recent significant event involving the object and the owner\",\r\n\t\t\t\t\"\\u2022 Area Reading (my immediate surroundings, up to a 50-foot cube):\",\r\n\t\t\t\t\"   Going back my Wisdom score in days, per minute I meditate, I learn about one event\",\r\n\t\t\t\t\"   This starts with the most recent event; It can be significant or just important to me\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"light domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(light|sun|shining)\\b).*$/i,\r\n\tsubname : \"Light Domain\",\r\n\tsource : [[\"P\", 61]],\r\n\tspellcastingExtra : [\"burning hands\", \"faerie fire\", \"flaming sphere\", \"scorching ray\", \"daylight\", \"fireball\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"scrying\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrip\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn the Light cantrip if I didn't already know it\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (Light)\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Warding Flare\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature within 30 ft attacks me and I can see it, I can interpose divine light\",\r\n\t\t\t\t\"As a reaction, I impose disadv. on the attacker's attack roll (unless it can't be blinded)\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Radiance of the Dawn\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, in 30 ft, magical darkness is dispelled and hostiles must make a Con save\",\r\n\t\t\t\t\"Each takes radiant damage, saves for half, and negates with total cover\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"2d10 + 2 damage\", \"2d10 + 3 damage\", \"2d10 + 4 damage\", \"2d10 + 5 damage\", \"2d10 + 6 damage\", \"2d10 + 7 damage\", \"2d10 + 8 damage\", \"2d10 + 9 damage\", \"2d10 + 10 dmg\", \"2d10 + 11 dmg\", \"2d10 + 12 dmg\", \"2d10 + 13 dmg\", \"2d10 + 14 dmg\", \"2d10 + 15 dmg\", \"2d10 + 16 dmg\", \"2d10 + 17 dmg\", \"2d10 + 18 dmg\", \"2d10 + 19 dmg\", \"2d10 + 20 dmg\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Improved Flare\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can also use my Warding Flare if another is attacked by a creature within 30 ft of me\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Corona of Light\",\r\n\t\t\tsource : [[\"P\", 61]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I have an aura of 60 ft sunlight and 30 ft dim light for 1 min\",\r\n\t\t\t\t\"Enemies in the sunlight have disadv. on saves vs. spells that deal fire or radiant damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (start/stop)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"nature domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(nature|natural|animal|element(s|al)?)\\b).*$/i,\r\n\tsubname : \"Nature Domain\",\r\n\tsource : [[\"P\", 62]],\r\n\tspellcastingExtra : [\"animal friendship\", \"speak with animals\", \"barkskin\", \"spike growth\", \"plant growth\", \"wind wall\", \"dominate beast\", \"grasping vine\", \"insect plague\", \"tree stride\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Acolyte of Nature\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn a druid cantrip and proficiency with a skill: Animal Handling, Nature, Survival\"),\r\n\t\t\tskillstxt : \"Choose one from Animal Handling, Nature, or Survival\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Acolyte of Nature\",\r\n\t\t\t\t\"class\" : \"druid\",\r\n\t\t\t\tlevel : [0, 0]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Charm Animals and Plants\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all beasts and plants within 30 ft that I can see must make a Wis save\",\r\n\t\t\t\t\"If failed, each is charmed and friendly to allies and me for 1 min or until damaged\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Dampen Elements\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, if an ally in 30 ft or I takes acid/cold/fire/lightning/thunder damage,\",\r\n\t\t\t\t\"I can grant resistance against that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 cold/fire/lightning damage (choice)\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 cold/fire/lightning damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra cold, fire, or lightning damage (my choice).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Master of Nature\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a bonus action, I can command creatures that are charmed by my Channel Divinity\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"tempest domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(tempest|destruction|storm)\\b).*$/i,\r\n\tsubname : \"Tempest Domain\",\r\n\tsource : [[\"P\", 62]],\r\n\tspellcastingExtra : [\"fog cloud\", \"thunderwave\", \"gust of wind\", \"shatter\", \"call lightning\", \"sleet storm\", \"control water\", \"ice storm\", \"destructive wave\", \"insect plague\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Wrath of the Storm\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when a creature I can see within 5 ft hits me, I can thunderously rebuke\",\r\n\t\t\t\t\"It takes 2d8 lightning or thunder damage (my choice) that a Dex save can halve\",\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Destructive Wrath\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"Instead of rolling, I can do maximum damage when I do lightning or thunder damage\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Thunderbolt Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I deal lightning damage to a Large or smaller foe, I can push it up to 10 ft away\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 thunder damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 thunder damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra thunder damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Stormborn\",\r\n\t\t\tsource : [[\"P\", 62]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"Whenever I'm not underground or indoors, I have a fly speed equal to my current speed\"),\r\n\t\t\tspeed : { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"trickery domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(trickery|trickster|illusion)).*$/i,\r\n\tsubname : \"Trickery Domain\",\r\n\tsubnameshort: \"Trickery\",\r\n\tsource : [[\"P\", 63]],\r\n\tspellcastingExtra : [\"charm person\", \"disguise self\", \"mirror image\", \"pass without trace\", \"blink\", \"dispel magic\", \"dimension door\", \"polymorph\", \"dominate person\", \"modify memory\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Blessing of the Trickster\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a willing creature I touch (not me) has adv. on Dex (Stealth) checks\",\r\n\t\t\t\t\"This lasts for 1 hour or until I use it again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Invoke Duplicity\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I create illusory duplicates of myself within 30 ft of me for 1 min (conc)\",\r\n\t\t\t\t\"As a bonus action, I can move them 30 ft to space(s) I can see within 120 ft of me\",\r\n\t\t\t\t\"I can cast spells as though I were in a duplicate's space, using my own senses\",\r\n\t\t\t\t\"I have advantage on attacks if the target is within 5 ft of a duplicate and me\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : (n < 17 ? 1 : 2) + \" illusory duplicate\" + (n < 17 ? \"\" : \"s\"); }),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Move Duplicate(s)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: Cloak of Shadows\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As an action, I become invisible until the end of my next turn or I attack/cast a spell\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 8 ? \"\" : \"+\" + (n < 14 ? 1 : 2) + \"d8 poison damage\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 poison damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra poison damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Improved Duplicity\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Invoke Duplicity, I make four illusory duplicates instead of one\",\r\n\t\t\t\t\"I can move any number of the illusory duplicates as part of the same bonus action\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"war domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*\\b(war|fighting|conflict)\\b).*$/i,\r\n\tsubname : \"War Domain\",\r\n\tsource : [[\"P\", 63]],\r\n\tspellcastingExtra : [\"divine favor\", \"shield of faith\", \"magic weapon\", \"spiritual weapon\", \"crusader's mantle\", \"spirit guardians\", \"freedom of movement\", \"stoneskin\", \"flame strike\", \"hold monster\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"War Priest\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"When I use the Attack action, I can make a weapon attack as a bonus action\"),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Channel Divinity: War God's Blessing\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, when a creature within 30 ft makes an attack roll, I can bless its attack\",\r\n\t\t\t\t\"The creature then adds a +10 bonus to the roll; I can do this after seeing the d20 roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 damage of the weapon's type\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Avatar of Battle\",\r\n\t\t\tsource : [[\"P\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I have resistance to bludgeoning/piercing/slashing damage from nonmagical weapons\"),\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the moon\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))((?=.*\\bmoon\\b)|((?=.*\\bmany\\b)(?=.*\\bforms?\\b))).*$/i,\r\n\tsubname : \"Circle of the Moon\",\r\n\tsubnameshort: \"Moon\",\r\n\tsource : [[\"P\", 69]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Forms\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I am able to transform into more dangerous animal forms when using Wild Shape\")\r\n\t\t},\r\n\t\t\"subclassfeature2.wild shape\" : {\r\n\t\t\tname : \"Wild Shape\",\r\n\t\t\tsource : [[\"P\", 66]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I assume the shape of a beast I have seen before with these rules:\",\r\n\t\t\t\t\" \\u2022 I gain all its game statistics except Intelligence, Wisdom, or Charisma\",\r\n\t\t\t\t\" \\u2022 I get its skill/saving throw prof. while keeping my own, using whichever is higher\",\r\n\t\t\t\t\" \\u2022 I assume the beast's HP and HD; I get mine back when I revert back\",\r\n\t\t\t\t\" \\u2022 I can't cast spells in beast form, but transforming doesn't break concentration\",\r\n\t\t\t\t\" \\u2022 I retain features from class, race, etc., but I don't retain special senses\",\r\n\t\t\t\t\" \\u2022 I can choose whether equipment falls to the ground, merges, or stays worn\",\r\n\t\t\t\t\" \\u2022 I revert if out of time or unconscious; if KOd by damage, excess damage carries over\"\r\n\t\t\t]),\r\n\t\t\tusages : ClassList.druid.features[\"subclassfeature2.wild shape\"].usages,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\tvar cr = Math.max(1, Math.floor(n/3));\r\n\t\t\t\tvar hr = Math.floor(n/2);\r\n\t\t\t\tvar limits = n < 4 ? \", no fly/swim\" : n < 8 ? \", no fly\" : \"\";\r\n\t\t\t\treturn \"CR \" + cr + limits + \"; \" + hr + (limits.length ? \" h\" : \" hours\");\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \" (start/stop)\"]],\r\n\t\t\teval : function() {\r\n\t\t\t\tprocessActions(false, \"Druid: Wild Shape\", ClassList.druid.features[\"subclassfeature2.wild shape\"].action, \"Wild Shape\");\r\n\t\t\t},\r\n\t\t\twildshapePageInfo: {\r\n\t\t\t\tuses: ClassList.druid.features[\"subclassfeature2.wild shape\"].wildshapePageInfo.uses,\r\n\t\t\t\tduration: ClassList.druid.features[\"subclassfeature2.wild shape\"].wildshapePageInfo.duration,\r\n\t\t\t\tlimitations: levels.map(function (n) {\r\n\t\t\t\t\tvar CR = Math.max(1, Math.floor(n/3));\r\n\t\t\t\t\tvar limits = n < 4 ? \", no fly/swim\" : \", no fly speed\";\r\n\t\t\t\t\treturn n < 8 ? \"max CR \" + CR + limits : \"CR \" + CR + \"or lower\";\r\n\t\t\t\t}),\r\n\t\t\t},\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Combat Wild Shape\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action while in Wild Shape, I can expend spell slots to heal myself\",\r\n\t\t\t\t\"I regain 1d8 HP per expended spell slot level; I can use Wild Shape as a bonus action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (heal)\"]],\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\tprocessActions(true, \"Druid: Wild Shape\", ClassList.druid.features[\"subclassfeature2.wild shape\"].action, \"Wild Shape\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Primal Strike\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My attacks count as magical while in Wild Shape\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Elemental Wild Shape\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can transform into an air/earth/fire/water elemental by expending 2 Wild Shape uses\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Thousand Forms\",\r\n\t\t\tsource : [[\"P\", 69]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can cast Alter Self at will without using a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Thousand Forms\",\r\n\t\t\t\tspells : [\"alter self\"],\r\n\t\t\t\tselection : [\"alter self\"],\r\n\t\t\t\tfirstCol : \"atwill\",\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"battle master\", {\r\n\tregExpSearch : /^(?=.*(war|fighter|battle|martial))(?=.*master).*$/i,\r\n\tsubname : \"Battle Master\",\r\n\tfullname : \"Battle Master\",\r\n\tsource : [[\"P\", 73]],\r\n\tabilitySave : 1,\r\n\tabilitySaveAlt : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special Maneuvers\",\r\n\t\t\t\t\"I regain all superiority dice after a short rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Maneuvers\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page',\r\n\t\t\t\t\"I can use a Maneuver by expending a superiority die (only one Maneuver per attack)\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9) + \" known\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Maneuver\",\r\n\t\t\textrachoices : [\"Commander's Strike\", \"Disarming Attack\", \"Distracting Strike\", \"Evasive Footwork\", \"Feinting Attack\", \"Goading Attack\", \"Lunging Attack\", \"Maneuvering Attack\", \"Menacing Attack\", \"Parry\", \"Precision Attack\", \"Pushing Attack\", \"Rally\", \"Riposte\", \"Sweeping Attack\", \"Trip Attack\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 3 : n < 10 ? 5 : n < 15 ? 7 : 9;\r\n\t\t\t}),\r\n\t\t\t\"commander's strike\" : {\r\n\t\t\t\tname : \"Commander's Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I forgo one attack of my Attack action to use a bonus action to direct an ally I see/hear\",\r\n\t\t\t\t\t\"The ally can use a reaction to make an attack, adding the superiority die to damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t\t},\r\n\t\t\t\"disarming attack\" : {\r\n\t\t\t\tname : \"Disarming Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Strength save or drops a held object of my choice to its feet\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"distracting strike\" : {\r\n\t\t\t\tname : \"Distracting Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"The next attack of an ally before my next turn has adv. against the creature\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"evasive footwork\" : {\r\n\t\t\t\tname : \"Evasive Footwork\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Use when moving; I add the superiority die to my AC until I stop moving\")\r\n\t\t\t},\r\n\t\t\t\"feinting attack\" : {\r\n\t\t\t\tname : \"Feinting Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can feint to gain adv. on my next attack this turn vs. a target in 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"goading attack\" : {\r\n\t\t\t\tname : \"Goading Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wis save or has disadv. vs. other targets until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"lunging attack\" : {\r\n\t\t\t\tname : \"Lunging Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can spend a superiority die to increase the reach of a melee weapon attack by 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"maneuvering attack\" : {\r\n\t\t\t\tname : \"Maneuvering Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Ally can use reaction to move half speed without opportunity attack from the target\",\r\n\t\t\t\t]),\r\n\r\n\t\t\t},\r\n\t\t\t\"menacing attack\" : {\r\n\t\t\t\tname : \"Menacing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wisdom save or is frightened of me until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"parry\" : {\r\n\t\t\t\tname : \"Parry\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"When damaged in melee, I can use a reaction to reduce it by superiority die + Dex mod\"),\r\n\t\t\t\taction : [[\"reaction\", \" (when damaged in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"precision attack\" : {\r\n\t\t\t\tname : \"Precision Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"I add the superiority die to my attack roll, either before or after rolling\")\r\n\t\t\t},\r\n\t\t\t\"pushing attack\" : {\r\n\t\t\t\tname : \"Pushing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be pushed up to 15 ft away\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"rally\" : {\r\n\t\t\t\tname : \"Rally\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Ally that can see/hear me gets temporary HP equal to superiority die + Charisma mod\"),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"riposte\" : {\r\n\t\t\t\tname : \"Riposte\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When missed in melee, I can use my reaction to make one melee attack vs. the attacker\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (after missed in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping attack\" : {\r\n\t\t\t\tname : \"Sweeping Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature and a second creature is within 5 ft of the first\",\r\n\t\t\t\t\t\"If the original attack roll hits this second creature, it takes the superiority die in damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"trip attack\" : {\r\n\t\t\t\tname : \"Trip Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Student of War\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I have proficiency with one artisan's tool set of my choice\"),\r\n\t\t\ttoolProfs : [[\"Artisan's tools\", 1]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Know Your Enemy\",\r\n\t\t\tsource : [[\"P\", 73]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I spend 1 min studying someone, the DM will tell me info about him/her\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"eldritch knight\", {\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green|arcane archer))(?=.*(knight|fighter|warrior|militant|warlord|phalanx|gladiator|trooper))(?=.*\\b(eldritch|arcane|magic|mage|witch)\\b).*$/i,\r\n\tsubname : \"Eldritch Knight\",\r\n\tfullname : \"Eldritch Knight\",\r\n\tsource : [[\"P\", 75]],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 3,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tschool : [\"Evoc\", \"Abjur\"],\r\n\t\tlevel : [0, 4]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [0, 0, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\r\n\t\tspells : [0, 0, 2, 3, 3, 3, 4, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"action surge\" : {\r\n\t\t\tname : \"Action Surge\",\r\n\t\t\tsource : [[\"P\", 72]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can take one additional action on my turn on top of my normally allowed actions\"),\r\n\t\t\tusages : [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\", \"30 ft teleport\"]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast known wizard cantrips/spells, using Intelligence as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"\", \"2 cantrips \\u0026 3 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 4 spells known\", \"2 cantrips \\u0026 5 spells known\", \"2 cantrips \\u0026 6 spells known\", \"2 cantrips \\u0026 6 spells known\", \"3 cantrips \\u0026 7 spells known\", \"3 cantrips \\u0026 8 spells known\", \"3 cantrips \\u0026 8 spells known\", \"3 cantrips \\u0026 9 spells known\", \"3 cantrips \\u0026 10 spells known\", \"3 cantrips \\u0026 10 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 11 spells known\", \"3 cantrips \\u0026 12 spells known\", \"3 cantrips \\u0026 13 spells known\"],\r\n\t\t\tspellcastingBonus : [{ // the spells gained at level 3, 8, 14, 20\r\n\t\t\t\tname : \"From any school\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\ttimes : [0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4],\r\n\t\t\t\tlevel : [1, 4]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Weapon Bond\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can bond with up to two weapons by spending a short rest with each\",\r\n\t\t\t\t\"I can't be disarmed of a bonded weapon and I can summon one as a bonus action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"War Magic\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"When I use my action to cast a cantrip, I can make a weapon attack as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Eldritch Strike\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"A creature hit by my weapon attack has disadv. on the save vs. the next spell I cast\",\r\n\t\t\t\t\"This lasts until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Arcane Charge\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I use Action Surge, I can also teleport up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"I can do so before or after the extra action\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Improved War Magic\",\r\n\t\t\tsource : [[\"P\", 75]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"When I use my action to cast a spell, I can make a weapon attack as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the four elements\", {\r\n\tregExpSearch : /^(?=.*\\b(four|4)\\b)((?=.*elements?)|((?=.*earth)|(?=.*(wind|air))|(?=.*fire)|(?=.*water)))((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Four Elements\",\r\n\tsubnameshort: \"Four Elements\",\r\n\tsource : [[\"P\", 80]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Disciple of the Elements\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I know Elemental Attunement and additional Elemental Disciplines, depending on level\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Elemental Disciplines to the third page',\r\n\t\t\t\t\"From 5th level onward, I can use additional ki points to increase their spell slot level\",\r\n\t\t\t\t\"I can trade known Elemental Disciplines for others when I gain new ones\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : ((n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" known; \") + (n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6) + \" max ki\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Elemental Discipline\",\r\n\t\t\textrachoices : [\"Breath of Winter (prereq: level 17 monk)\", \"Clench of the North Wind (prereq: level 6 monk)\", \"Elemental Attunement\", \"Eternal Mountain Defense (prereq: level 17 monk)\", \"Fangs of the Fire Snake\", \"Fist of Four Thunders\", \"Fist of Unbroken Air\", \"Flames of the Phoenix (prereq: level 11 monk)\", \"Gong of the Summit (prereq: level 6 monk)\", \"Mist Stance (prereq: level 11 monk)\", \"Ride the Wind (prereq: level 11 monk)\", \"River of Hungry Flame (prereq: level 17 monk)\", \"Rush of the Gale Spirits\", \"Shape the Flowing River\", \"Sweeping Cinder Strike\", \"Water Whip\", \"Wave of Rolling Earth (prereq: level 17 monk)\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"elemental attunement\" }],\r\n\t\t\t\"elemental attunement\" : {\r\n\t\t\t\tname : \"Elemental Attunement\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can briefly control elemental forces within 30 ft of me\",\r\n\t\t\t\t\t\"I can make a harmless sensory effect, light/snuff light, chill/warm 1 lb for 1 hour,\",\r\n\t\t\t\t\t\"or I cause earth/fire/water/mist in a 1 ft cube to shape itself into a form for 1 minute\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"breath of winter (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"Breath of Winter\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"6 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Cone of Cold without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Breath of Winter\",\r\n\t\t\t\t\tspells : [\"cone of cold\"],\r\n\t\t\t\t\tselection : [\"cone of cold\"],\r\n\t\t\t\t\tfirstCol : 6\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"cone of cold\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Breath of Winter discipline, I can cast Cone of Cold without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"clench of the north wind (prereq: level 6 monk)\" : {\r\n\t\t\t\tname : \"Clench of the North Wind\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"3 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Hold Person without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Clench of the North Wind\",\r\n\t\t\t\t\tspells : [\"hold person\"],\r\n\t\t\t\t\tselection : [\"hold person\"],\r\n\t\t\t\t\tfirstCol : 3\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 6; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"hold person\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Clench of the North Wind discipline, I can cast Hold Person without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"eternal mountain defense (prereq: level 17 monk)\" : { // errata from level 11 to level 17\r\n\t\t\t\tname : \"Eternal Mountain Defense\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Stoneskin on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Eternal Mountain Defense\",\r\n\t\t\t\t\tspells : [\"stoneskin\"],\r\n\t\t\t\t\tselection : [\"stoneskin\"],\r\n\t\t\t\t\tfirstCol : 5\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"stoneskin\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I gain resistance to nonmagical Bludgeoning, Piercing, and Slashing damage\",\r\n\t\t\t\t\t\tchanges : \"With the Eternal Mountain Defense discipline, I can cast Stoneskin without a material component but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fangs of the fire snake\" : {\r\n\t\t\t\tname : \"Fangs of the Fire Snake\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"With Attack action, my unarmed strikes +10 ft reach and deal fire damage this turn\",\r\n\t\t\t\t\t\"Also, I can spent an additional 1 ki point to cause an attack to deal +1d10 fire damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && (/^(?=.*fire)(?=.*snake).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'After hit, spend 1 ki point for +1d10 fire damage';\r\n\t\t\t\t\t\t\t\tfields.Range = 'Melee (15 ft reach)';\r\n\t\t\t\t\t\t\t\tfields.Damage_Type = 'fire';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the words 'Fire Snake' in the name of an unarmed strike, it gets +10 ft reach, does fire damage, and gains the option to deal +1d10 fire damage by spending 1 additional ki point.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fist of four thunders\" : {\r\n\t\t\t\tname : \"Fist of Four Thunders\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Thunderwave\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Fist of Four Thunders\",\r\n\t\t\t\t\tspells : [\"thunderwave\"],\r\n\t\t\t\t\tselection : [\"thunderwave\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"thunderwave\" : {\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Fist of Four Thunders discipline, I can cast Thunderwave.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"fist of unbroken air\" : {\r\n\t\t\t\tname : \"Fist of Unbroken Air\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points; +1d10/extra ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, target within 30 ft takes 3d10 bludgeoning damage (spend ki for more)\",\r\n\t\t\t\t\t\"It is also pushed up to 20 ft away from me and knocked prone\",\r\n\t\t\t\t\t\"It can make a Strength save to halve damage and avoid being pushed and knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"flames of the phoenix (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Flames of the Phoenix\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Fireball without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Flames of the Phoenix\",\r\n\t\t\t\t\tspells : [\"fireball\"],\r\n\t\t\t\t\tselection : [\"fireball\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"fireball\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Flames of the Phoenix discipline, I can cast Fireball without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"gong of the summit (prereq: level 6 monk)\" : {\r\n\t\t\t\tname : \"Gong of the Summit\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"3 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Shatter without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Gong of the Summit\",\r\n\t\t\t\t\tspells : [\"shatter\"],\r\n\t\t\t\t\tselection : [\"shatter\"],\r\n\t\t\t\t\tfirstCol : 3\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 6; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"shatter\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Gong of the Summit discipline, I can cast Shatter without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"mist stance (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Mist Stance\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Gaseous Form on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mist Stance\",\r\n\t\t\t\t\tspells : [\"gaseous form\"],\r\n\t\t\t\t\tselection : [\"gaseous form\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"gaseous form\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I turn into a misty cloud with fly 10 ft, resist. to nonmagical dmg, adv. on Str/Dex/saves\",\r\n\t\t\t\t\t\tchanges : \"With the Mist Stance discipline, I can cast Gaseous Form without a material component, but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"ride the wind (prereq: level 11 monk)\" : {\r\n\t\t\t\tname : \"Ride the Wind\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"4 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Fly on myself without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Ride the Wind\",\r\n\t\t\t\t\tspells : [\"fly\"],\r\n\t\t\t\t\tselection : [\"fly\"],\r\n\t\t\t\t\tfirstCol : 4\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 11; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"fly\" : {\r\n\t\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"I gain 60 ft flying speed\",\r\n\t\t\t\t\t\tchanges : \"With the Ride the Wind discipline, I can cast Fly without a material component but only on myself.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"river of hungry flame (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"River of Hungry Flame\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Wall of Fire without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"River of Hungry Flame\",\r\n\t\t\t\t\tspells : [\"wall of fire\"],\r\n\t\t\t\t\tselection : [\"wall of fire\"],\r\n\t\t\t\t\tfirstCol : 5\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"wall of fire\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the River of Hungry Flame discipline, I can cast Wall of Fire without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"rush of the gale spirits\" : {\r\n\t\t\t\tname : \"Rush of the Gale Spirits\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Gust of Wind without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Rush of the Gale Spirits\",\r\n\t\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"gust of wind\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"With the Rush of the Gale Spirits discipline, I can cast Gust of Wind without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"shape the flowing river\" : {\r\n\t\t\t\tname : \"Shape the Flowing River\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can affect ice/water up to a 30-foot cube within 120 ft\",\r\n\t\t\t\t\t\"I can switch it between water/ice states and reshape ice up to half its largest dimension\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping cinder strike\" : {\r\n\t\t\t\tname : \"Sweeping Cinder Strike\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Burning Hands\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Sweeping Cinder Strike\",\r\n\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"With the Sweeping Cinder Strike discipline, I can cast Burning Hands.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"water whip\" : {\r\n\t\t\t\tname : \"Water Whip\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"2 ki points; +1d10/extra ki point\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a creature within 30 ft takes 3d10 bludgeoning damage (spend ki for more)\",\r\n\t\t\t\t\t\"It is also knocked prone or pulled up to 25 ft closer to me (my choice)\",\r\n\t\t\t\t\t\"It can make a Dexterity save to halve damage and avoid being pulled or knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"wave of rolling earth (prereq: level 17 monk)\" : {\r\n\t\t\t\tname : \"Wave of Rolling Earth\",\r\n\t\t\t\tsource : [[\"P\", 81]],\r\n\t\t\t\tadditional: \"6 ki points\",\r\n\t\t\t\tdescription: desc(\"As an action, I can cast Wall of Stone without material components\"),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Wave of Rolling Earth\",\r\n\t\t\t\t\tspells : [\"wall of stone\"],\r\n\t\t\t\t\tselection : [\"wall of stone\"],\r\n\t\t\t\t\tfirstCol : 6\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.monk.level >= 17; },\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"wall of stone\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"With the Wave of Rolling Earth discipline, I can cast Wall of Stone without a material component.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of shadow\", {\r\n\tregExpSearch : /^(?=.*shadow)((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of Shadow\",\r\n\tsubnameshort: \"Shadow\",\r\n\tsource : [[\"P\", 80]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Shadow Arts\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I know the Minor Illusion cantrip and can cast certain spells by using ki (see page 3)\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Shadow Arts\",\r\n\t\t\t\tspells : [\"minor illusion\"],\r\n\t\t\t\tselection : [\"minor illusion\"],\r\n\t\t\t}],\r\n\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\"shadow spells\" : {\r\n\t\t\t\tname : \"Shadow Spells\",\r\n\t\t\t\textraname : \"Shadow Arts\",\r\n\t\t\t\tsource : [[\"P\", 80]],\r\n\t\t\t\tadditional: \"2 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can cast Darkness, Darkvision, Pass Without Trace, or Silence\",\r\n\t\t\t\t\t\"I don't require spell slots or material components to cast these spells like this, just ki points\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Shadow Arts\",\r\n\t\t\t\t\tspells : [\"darkness\", \"darkvision\", \"pass without trace\", \"silence\"],\r\n\t\t\t\t\tselection : [\"darkness\", \"darkvision\", \"pass without trace\", \"silence\"],\r\n\t\t\t\t\tfirstCol : 2,\r\n\t\t\t\t\ttimes : 4\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"shadow spells\" }],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"darkness\" : {\r\n\t\t\t\t\tcomponents : \"V\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"darkvision\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spell cast with my Shadow Arts don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Shadow Step\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can teleport from and into dim light or darkness within 60 ft\",\r\n\t\t\t\t\"After I do this, I have adv. on the next melee attack I make before the end of my turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Cloak of Shadows\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"As an action, I can become invisible in dim light or darkness until I attack/cast\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Opportunist\",\r\n\t\t\tsource : [[\"P\", 80]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a reaction, if a creature in 5 ft is hit by another, I can make a melee attack vs. it\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the ancients\", {\r\n\tregExpSearch : /^(((?=.*(ancient|nature|natural|green|fey|horned))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))|((?=.*(green|fey|horned))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Ancients\",\r\n\tsubnameshort: \"Ancients\",\r\n\tsource : [[\"P\", 87]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Nature's Wrath\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a creature I can see within 10 ft must make a Str/Dex save (its choice)\",\r\n\t\t\t\t\"If it fails this save, it is restrained until it succeeds on a save at the end of its turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"ensnaring strike\", \"speak with animals\", \"moonbeam\", \"misty step\", \"plant growth\", \"protection from energy\", \"ice storm\", \"stoneskin\", \"commune with nature\", \"tree stride\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Turn the Faithless\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all fey/fiends within 30 ft that can hear me must make a Wisdom save\",\r\n\t\t\t\t\"If one fails, it is turned for 1 minute or until it takes damage and must show true form\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Warding\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"Allies within range and I have resistance to damage from spells\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"],\r\n\t\t\tdmgres : [\"Spells\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Undying Sentinel\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If dropped to 0 hit points and not killed outright, I can choose to stay at 1 hit point\",\r\n\t\t\t\t\"Additionally, I suffer no drawbacks of old age and can't be aged magically\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Elder Champion\",\r\n\t\t\tsource : [[\"P\", 87]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I assume the form of a force of nature for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 At the start of each of my turns, I regain 10 hit points\",\r\n\t\t\t\t\" \\u2022 I can cast paladin spells with a casting time of 1 action as a bonus action instead\",\r\n\t\t\t\t\" \\u2022 Enemies within 10 ft have disadv. on saves vs. my paladin spells and channel divinity\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of vengeance\", {\r\n\tregExpSearch : /^(((?=.*(vengeance|wrath|justice))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))|((?=.*dark)(?=.*knight))|(?=.*avenger)).*$/i,\r\n\tsubname : \"Oath of Vengeance\",\r\n\tsubnameshort: \"Vengeance\",\r\n\tsource : [[\"P\", 88]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure Enemy\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one creature within 60 ft that I can see me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is frightened and its speed is 0 despite bonuses; if success, its speed is halved\",\r\n\t\t\t\t\"This lasts for 1 minute or until it takes damage; Undead/fiends have disadv. on save\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"bane\", \"hunter's mark\", \"hold person\", \"misty step\", \"haste\", \"protection from energy\", \"banishment\", \"dimension door\", \"hold monster\", \"scrying\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Vow of Enmity\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I utter a vow against a creature I can see within 10 ft\",\r\n\t\t\t\t\"I get adv. on attacks against it for 1 minute or until it drops to 0 HP or falls unconscious\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Relentless Avenger\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"After I hit with an opportunity attack, I can move 1/2 my speed in the same reaction\",\r\n\t\t\t\t\"This movement doesn't provoke opportunity attacks\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Soul of Vengeance\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When an enemy I have an active Vow of Enmity against makes an attack, I can react\",\r\n\t\t\t\t\"As a reaction, I can make a melee weapon attack against it if it is within range\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (with Vow of Enmity)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Avenging Angel\",\r\n\t\t\tsource : [[\"P\", 88]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I gain a flying speed of 60 ft and a 30 ft aura of menace for 1 hour\",\r\n\t\t\t\t\"When a creature first enters or starts its turn in the aura, it must make a Wis save\",\r\n\t\t\t\t\"If failed, for 1 min or until it takes damage, it is frightened and attacks vs. it have adv.\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ranger\", \"beast master\", {\r\n\tregExpSearch : /^(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural|green))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Beast Master\",\r\n\tfullname : \"Beast Master\",\r\n\tsource : [[\"P\", 93]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger's Companion\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"It adds my proficiency bonus to AC, attacks, damage, and save/skill proficiencies\",\r\n\t\t\t\t\"Its hit point maximum equals four times my ranger level if higher than its normal HP\",\r\n\t\t\t\t\"It takes a turn on my initiative; It takes the Dodge action unless I command it otherwise\",\r\n\t\t\t\t\"As an action, I can have it take the Attack, Dash, Disengage, or Help action on its turn\",\r\n\t\t\t\t\"I can still use Extra Attack while commanding it to Attack; No action to order to move\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Beast \\u2264Medium and CR \\u22641/4\",\r\n\t\t\tcreaturesAdd : [[\"Ranger's Companion\", false, function(AddRemove, prefix) {\r\n\t\t\t\tif (!AddRemove) return;\r\n\t\t\t\tvar cObj = MakeCompMenu_CompOptions(prefix, \"justCompanions\");\r\n\t\t\t\tif (!cObj.companion || !cObj.companion.length) {\r\n\t\t\t\t\tvar selectedRace = \"Wolf\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar compOptions = cObj.companion.map(function(n) { return n[0] });\r\n\t\t\t\t\tvar selectedRace = AskUserOptions(\"Select Ranger's Companion\", \"Select which beast you would like to have as your ranger's companion.\\nThis can be any beast that is no larger than Medium and that has a challenge rating of 1/4 or lower.\\nYou can change the beast at any time using the \\\"Companion Options\\\" button at the top of the Companion page.\", compOptions, \"radio\", true);\r\n\t\t\t\t}\r\n\t\t\t\tApplyCompRace(selectedRace, prefix, \"companion\");\r\n\t\t\t}]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Exceptional Training\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My beast's attacks count as magical for overcoming resistances and immunities\",\r\n\t\t\t\t\"As a bonus action, I can command it to take the Dash/Disengage/Help action on its turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Bestial Fury\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"When I command my beast to use the Attack action, it can attack twice on its turn\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Share Spells\",\r\n\t\t\tsource : [[\"P\", 93]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"When I cast a spell on myself, I can have it also affect my beast if it is within 30 ft\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"arcane trickster\", {\r\n\tregExpSearch : /^(?=.*(trickster|rogue|miscreant))(?=.*\\b(eldritch|arcane|magic|mage|witch)\\b).*$/i,\r\n\tsubname : \"Arcane Trickster\",\r\n\tfullname : \"Arcane Trickster\",\r\n\tsource : [[\"P\", 98]],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 3,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tschool : [\"Ench\", \"Illus\"],\r\n\t\tlevel : [0, 4]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [0, 0, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\r\n\t\tspells : [0, 0, 2, 3, 3, 3, 4, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast known wizard cantrips/spells, using Intelligence as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"\", \"3 cantrips \\u0026 3 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 4 spells known\", \"3 cantrips \\u0026 5 spells known\", \"3 cantrips \\u0026 6 spells known\", \"3 cantrips \\u0026 6 spells known\", \"4 cantrips \\u0026 7 spells known\", \"4 cantrips \\u0026 8 spells known\", \"4 cantrips \\u0026 8 spells known\", \"4 cantrips \\u0026 9 spells known\", \"4 cantrips \\u0026 10 spells known\", \"4 cantrips \\u0026 10 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 11 spells known\", \"4 cantrips \\u0026 12 spells known\", \"4 cantrips \\u0026 13 spells known\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mage Hand cantrip\", // the Mage Hand cantrip gained at level 1\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"From any school\", // the spells gained at level 3, 8, 14, 20\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\ttimes : [0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4],\r\n\t\t\t\tlevel : [1, 4]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Mage Hand Legerdemain\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can direct my Mage Hand\",\r\n\t\t\t\t\"With a Dex (Sleight of Hand) vs. Wis (Perception) checks, I can do so discreetly\",\r\n\t\t\t\t\"I can make it invisible and perform the following tasks:\",\r\n\t\t\t\t\" \\u2022 Stow/retrieve an object the hand is holding in a container worn/carried by another\",\r\n\t\t\t\t\" \\u2022 Use thieves' tools to pick locks and disarm traps at range\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\tdescription : \"Invisible hand, carries 10 lb; 1 bns to control, use thieves' tools, or stow/retrieve obj; only 1 instance\",\r\n\t\t\t\t\tchanges : \"My Mage Hand Legerdemain class feature expands my use of the Mage Hand cantrip and makes the spectral hand invisible.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Magical Ambush\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"When I cast a spell while hidden, the target(s) have disadvantage against that spell\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Versatile Trickster\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc(\"As a bonus action, gain adv. on attacks this turn on creature within 5 ft of Mage Hand\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Spell Thief\",\r\n\t\t\tsource : [[\"P\", 98]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, after a spell is cast at me, I can try to negate and steal it\",\r\n\t\t\t\t\"The caster makes a save against my spell DC with his/her spellcasting ability\",\r\n\t\t\t\t\"On failure, the caster forgets how to cast that spell for eight hours\",\r\n\t\t\t\t\"If I have a spell slot of a high enough level for it, I learn how to cast it during this time\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"assassin\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*assassin).*$/i,\r\n\tsubname : \"Assassin\",\r\n\tfullname : \"Assassin\",\r\n\tsource : [[\"P\", 97]],\r\n\tabilitySave : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I am proficient with disguise kits and poisoner's kits\"),\r\n\t\t\ttoolProfs : [\"Disguise kit\", \"Poisoner's kit\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Assassinate\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have adv. on attack rolls against creatures that have not taken a turn in combat yet\",\r\n\t\t\t\t\"Any hit I score against a creature that is surprised is a critical hit\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Infiltration Expertise\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"I can create false identities in 7 days for 25 gp\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Imposter\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"After 3 hours of studying a person, I can mimic speech, writing, and behavior\",\r\n\t\t\t\t\"I have advantage on Charisma (Deception) checks to maintain this ruse\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Death Strike\",\r\n\t\t\tsource : [[\"P\", 97]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"When I hit a surprised creature, it must make a Con save or take double damage\"),\r\n\t\t\tadditional : \"Save DC: 8 + Dex mod + Proficiency bonus\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"wild magic\", {\r\n\tregExpSearch : /^(?=.*(mage|magus|sorcerer|witch))(?=.*(wild|chaos|chaotic|limbo)).*$/i,\r\n\tsubname : \"Wild Magic\",\r\n\tfullname : \"Wild Mage\",\r\n\tsource : [[\"P\", 103]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Wild Magic Surge\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Wild Magic Surges can happen 5% of the time that I cast a sorcerer spell\",\r\n\t\t\t\t\"This doesn't happen with cantrips and I only take this chance if the DM tells me to\",\r\n\t\t\t\t\"Metamagic can't affect spells cast because of the surge, but they require no concentration\",\r\n\t\t\t\t'\"See the \"Notes\" page for the table\"',\r\n\t\t\t]),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Magic Surge Table\",\r\n\t\t\t\tsource : [[\"P\", 104]],\r\n\t\t\t\tpopupName : \"Wild Mage's Wild Magic Surge Table, part 1\",\r\n\t\t\t\tadditional : \"results 01-50\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My spellcasting can unleash surges of untamed magic. Immediately after I cast a sorcerer spell of 1st level or higher, the DM can have me roll a d20. If I roll a 1, a Wild Magic Surge happens. Roll on the table below to create a random magical effect. A surge can happen only once per turn.\",\r\n\t\t\t\t\t\"If a Wild Magic effect is a spell, it's too wild to be affected by Metamagic. If it normally requires concentration, it doesn't require concentration in this case; the spell lasts for its full duration.\",\r\n\t\t\t\t\t\"d100  Effect\",\r\n\t\t\t\t\t\"01-02 Roll on this table at the start of each of your turns for the next minute, ignoring this result on subsequent rolls.\",\r\n\t\t\t\t\t\"03-04 For the next minute, you can see any invisible creature if you have line of sight to it.\",\r\n\t\t\t\t\t\"05-06 A modron chosen and controlled by the DM appears in an unoccupied space within 5 ft of you, then disappears 1 minute later.\",\r\n\t\t\t\t\t\"07-08 You cast fireball as a 3rd-level spell centered on yourself.\",\r\n\t\t\t\t\t\"09-10 You cast magic missile as a 5th-level spell.\",\r\n\t\t\t\t\t\"11-12 Roll a d10. Your height changes by a number of inches equal to the roll. If the roll is odd, you shrink. If the roll is even, you grow.\",\r\n\t\t\t\t\t\"13-14 You cast confusion centered on yourself.\",\r\n\t\t\t\t\t\"15-16 For the next minute, you regain 5 hit points at the start of each of your turns.\",\r\n\t\t\t\t\t\"17-18 You grow a long beard made of feathers that remains until you sneeze, at which point the feathers explode out from your face.\",\r\n\t\t\t\t\t\"19-20 You cast grease centered on yourself.\",\r\n\t\t\t\t\t\"21-22 Creatures have disadvantage on saving throws against the next spell you cast in the next minute that involves a saving throw.\",\r\n\t\t\t\t\t\"23-24 Your skin turns a vibrant shade of blue. A remove curse spell can end this effect.\",\r\n\t\t\t\t\t\"25-26 An eye appears on your forehead for the next minute.\",\r\n\t\t\t\t\t\"27-28 For the next minute, all your spells with a casting time feet of 1 action have a casting time of 1 bonus action.\",\r\n\t\t\t\t\t\"29-30 You teleport up to 60 ft to an unoccupied space of your choice that you can see.\",\r\n\t\t\t\t\t\"31-32 You are transported to the Astral Plane until the end of your next turn, after which time you return to the space you previously occupied or the nearest unoccupied space if that space is occupied.\",\r\n\t\t\t\t\t\"33-34 Maximize the damage of the next damaging spell you cast within the next minute.\",\r\n\t\t\t\t\t\"35-36 Roll a d10. Your age changes by a number of years equal to the roll. If the roll is odd, you get younger (minimum 1 year old). If the roll is even, you get older.\",\r\n\t\t\t\t\t\"37-38 1d6 flumphs controlled by the DM appear in unoccupied spaces within 60 ft of you and are frightened of you. They vanish after 1 minute.\",\r\n\t\t\t\t\t\"39-40 You regain 2d10 hit points.\",\r\n\t\t\t\t\t\"41-42 You turn into a potted plant until the start of your next turn. While a plant, you are incapacitated and have vulnerability to all damage. If you drop to 0 hit points, your pot breaks, and your form reverts.\",\r\n\t\t\t\t\t\"43-44 For the next minute, you can teleport up to 20 ft as a bonus action on each of your turns.\",\r\n\t\t\t\t\t\"45-46 You cast levitate on yourself.\",\r\n\t\t\t\t\t\"47-48 A unicorn controlled by the DM appears in a space within 5 ft of you, then disappears 1 minute later.\",\r\n\t\t\t\t\t\"49-50 You can't speak for the next minute. Whenever you try, pink bubbles float out of your mouth.\"\r\n\t\t\t\t]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Wild Magic Surge Table\",\r\n\t\t\t\tsource : [[\"P\", 104]],\r\n\t\t\t\tpopupName : \"Wild Mage's Wild Magic Surge Table, part 2\",\r\n\t\t\t\tadditional : \"results 51-100\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"d100  Effect\",\r\n\t\t\t\t\t\"51-52 A spectral shield hovers near you for the next minute, granting you a +2 bonus to AC and immunity to magic missile.\",\r\n\t\t\t\t\t\"53-54 You are immune to being intoxicated by alcohol for the next 5d6 days.\",\r\n\t\t\t\t\t\"55-56 Your hair falls out but grows back within 24 hours.\",\r\n\t\t\t\t\t\"57-58 For the next minute, any flammable object you touch that isn't being worn or carried by another creature bursts into flame.\",\r\n\t\t\t\t\t\"59-60 You regain your lowest-level expended spell slot.\",\r\n\t\t\t\t\t\"61-62 For the next minute, you must shout when you speak.\",\r\n\t\t\t\t\t\"63-64 You cast fog cloud centered on yourself.\",\r\n\t\t\t\t\t\"65-66 Up to three creatures you choose within 30 ft of you take 4d10 lightning damage.\",\r\n\t\t\t\t\t\"67-68 You are frightened by the nearest creature until the end of your next turn.\",\r\n\t\t\t\t\t\"69-70 Each creature within 30 ft of you becomes invisible for the next minute. The invisibility ends on a creature when it attacks or casts a spell.\",\r\n\t\t\t\t\t\"71-72 You gain resistance to all damage for the next minute.\",\r\n\t\t\t\t\t\"73-74 A random creature within 60 ft of you becomes poisoned for 1d4 hours.\",\r\n\t\t\t\t\t\"75-76 You glow with bright light in a 30-ft radius for the next minute. Any creature that ends its turn within 5 ft of you is blinded until the end of its next turn.\",\r\n\t\t\t\t\t\"79-80 Illusory butterflies and flower petals flutter in the air within 10 ft of you for the next minute.\",\r\n\t\t\t\t\t\"77-78 You cast polymorph on yourself. If you fail the saving throw, you turn into a sheep for the spell's duration.\",\r\n\t\t\t\t\t\"81-82 You can take one additional action immediately.\",\r\n\t\t\t\t\t\"83-84 Each creature within 30 ft of you takes 1d10 necrotic damage. You regain hit points equal to the sum of the necrotic damage dealt.\",\r\n\t\t\t\t\t\"85-86 You cast mirror image.\",\r\n\t\t\t\t\t\"87-88 You cast fly on a random creature within 60 ft of you.\",\r\n\t\t\t\t\t\"89-90 You become invisible for the next minute. During that time, other creatures can't hear you. The invisibility ends if you attack or cast a spell.\",\r\n\t\t\t\t\t\"91-92 If you die within the next minute, you immediately come back to life as if by the reincarnate spell.\",\r\n\t\t\t\t\t\"93-94 Your size increases by one size category for the next minute.\",\r\n\t\t\t\t\t\"95-96 You and all creatures within 30 ft of you gain vulnerability to piercing damage for the next minute.\",\r\n\t\t\t\t\t\"97-98 You are surrounded by faint, ethereal music for the next minute.\",\r\n\t\t\t\t\t\"99-100 You regain all expended sorcery points.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Tides of Chaos\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can gain advantage on either one attack roll, ability check, or saving throw\",\r\n\t\t\t\t\"After I cast a 1st-level or higher sorcerer spell, the DM can impose a Wild Magic Surge\",\r\n\t\t\t\t\"After I roll on the Wild Magic Surge table, I regain my use of Tides of Chaos\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bend Luck\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction, I can add/subtract 1d4 from another's attack roll, ability check, or save\"),\r\n\t\t\taction : [[\"reaction\", \" (2 sorcery points)\"]],\r\n\t\t\tadditional : \"2 sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Controlled Chaos\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Whenever I roll on the Wild Magic Surge table, I can roll twice and use either result\")\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Spell Bombardment\",\r\n\t\t\tsource : [[\"P\", 103]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per turn, when I roll spell damage, I can take one damage die that rolled max\",\r\n\t\t\t\t\"I can then roll this die again and add it to the spell's damage\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the archfey\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*warlock).*$/i,\r\n\tsubname : \"the Archfey\",\r\n\tsource : [[\"P\", 109]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"calm emotions\", \"phantasmal force\", \"blink\", \"plant growth\", \"dominate beast\", \"greater invisibility\", \"dominate person\", \"seeming\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Fey Presence\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, all creatures in a 10-ft cube around me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, they're all charmed or frightened (my choice) until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Misty Escape\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when I take damage, I can turn invisible and teleport up to 60 ft\",\r\n\t\t\t\t\"I stay invisible until the start of my next turn or until I attack or cast a spell\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (taking damage)\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Beguiling Defenses\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when a creature tries to charm me, I can turn the charm back on it\",\r\n\t\t\t\t\"It must make a Wis save or be charmed by me for 1 minute or until taking damage\",\r\n\t\t\t\t\"I am immune to being charmed\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when charmed)\"]],\r\n\t\t\tsavetxt : { immune : [\"charmed\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Dark Delirium\",\r\n\t\t\tsource : [[\"P\", 109]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a creature within 60 ft must make a Wis save or be charmed/frightened\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration is broken or it takes damage\",\r\n\t\t\t\t\"During this time, it can't see or hear anything but the illusion, me, and itself\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the great old one\", {\r\n\tregExpSearch : /^(((?=.*(tharizdun|cthulhu))(?=.*warlock))|((?=.*(great|dread))(?=.*(ancient|old))(?=.*\\b(one|entity)\\b))).*$/i,\r\n\tsubname : \"the Great Old One\",\r\n\tsource : [[\"P\", 110]],\r\n\tspellcastingExtra : [\"dissonant whispers\", \"tasha's hideous laughter\", \"detect thoughts\", \"phantasmal force\", \"clairvoyance\", \"sending\", \"dominate beast\", \"evard's black tentacles\", \"dominate person\", \"telekinesis\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Awakened Mind\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can telepathically speak to creatures I can see within 30 ft if they know a language\"), // 'to' not 'with', so one-way\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Entropic Ward\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when I'm attacked, I can impose disadvantage to that attack roll\",\r\n\t\t\t\t\"If it misses me, I have adv. on my next attack vs. the attacker during my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Thought Shield\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"No one can read my mind unless I allow it; I have resistance to psychic damage\",\r\n\t\t\t\t\"When I take psychic damage, the dealer of the psychic damage takes the same amount\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Psychic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Create Thrall\",\r\n\t\t\tsource : [[\"P\", 110]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can charm an incapacitated humanoid by touch\",\r\n\t\t\t\t\"While it is charmed, I can communicate with it telepathically if it is on the same plane\",\r\n\t\t\t\t\"This lasts until the charm is removed (can be by Remove Curse) or I use this again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"abjuration\", {\r\n\tregExpSearch : /abjuration|abjurer/i,\r\n\tsubname : \"School of Abjuration\",\r\n\tsubnameshort: \"Abjuration\",\r\n\tfullname : \"Abjurer\",\r\n\tsource : [[\"P\", 115]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Abjuration Savant\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy abjuration spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Arcane Ward\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Whenever I cast an 1st-level or higher abjuration spell, I make/heal a ward\",\r\n\t\t\t\t\"I make it at max HP; When I cast again, it heals two HP per spell level\",\r\n\t\t\t\t\"It stays active at 0 HP and doesn't go away until my next long rest\",\r\n\t\t\t\t\"If I take damage, the ward takes the damage instead, but excess damage carries over\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"Ward max HP: \" + (n * 2) + \"+Int mod\";\r\n\t\t\t}),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Projected Ward\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction, my Arcane Ward can absorb damage done to a creature within 30 ft\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Abjuration\",\r\n\t\t\tsource : [[\"P\", 115]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"When I cast an abjuration spell requiring an ability check, I add my proficiency bonus\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"dispel magic\" || spellKey === \"counterspell\") {\r\n\t\t\t\t\t\t\tvar profB = Number(How(\"Proficiency Bonus\"));\r\n\t\t\t\t\t\t\tvar checkStr = \"(\" + AbilityScores.names.join(\"|\") + \"|spell(casting)?( ability )?) check\";\r\n\t\t\t\t\t\t\tvar checkRx = RegExp(checkStr + \" \\\\(([+-]?\\\\d+)\\\\)\", \"i\");\r\n\t\t\t\t\t\t\tvar theBonus = profB;\r\n\t\t\t\t\t\t\tif (checkRx.test(spellObj.description)) {\r\n\t\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(checkRx);\r\n\t\t\t\t\t\t\t\ttheBonus += Number(theMatch[2]);\r\n\t\t\t\t\t\t\t\tif (tDoc.getField(\"Remarkable Athlete\").isBoxChecked(0) === 1 && theMatch[1].test(/Str|Dex|Con/i)) {\r\n\t\t\t\t\t\t\t\t\ttheBonus -= Math.ceil(profB/2);\r\n\t\t\t\t\t\t\t\t} else if (tDoc.getField(\"Jack of All Trades\").isBoxChecked(0) === 1) {\r\n\t\t\t\t\t\t\t\t\ttheBonus -= Math.floor(profB/2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(RegExp(checkStr, \"i\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(theMatch[0], theMatch[1] + \" check (\" + (theBonus >= 0 ? \"+\" : \"\") + theBonus + \")\");\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my proficiency bonus to ability checks required by abjuration spells. This is shown on the spell sheet by a lowered DC or higher bonus on the check.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spell Resistance\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I have adv. on spell saves and resistance to damaging spells\"),\r\n\t\t\tdmgres : [\"Spells\"],\r\n\t\t\tsavetxt : { adv_vs : [\"spells\"] }\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"conjuration\", {\r\n\tregExpSearch : /conjuration|conjurer/i,\r\n\tsubname : \"School of Conjuration\",\r\n\tsubnameshort: \"Conjuration\",\r\n\tfullname : \"Conjurer\",\r\n\tsource : [[\"P\", 116]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Conjuration Savant\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy conjuration spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Minor Conjuration\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can conjure an object up to 3 ft on each side and no more than 10 lbs\",\r\n\t\t\t\t\"It must be of a form of a nonmagical object I have seen and is created within 10 ft\",\r\n\t\t\t\t\"The object disappears after 1 hour, if it takes or deals damage, or when I use this again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Benign Transposition\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can teleport to a place within 30 ft that I can see\",\r\n\t\t\t\t\"Instead, I can swap places with a willing Small/Medium creature in 30 ft that I can see\",\r\n\t\t\t\t\"I can do this again after a long rest or casting a 1st-level or higher conjuration spell\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Focused Conjuration\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While I am concentrating on a conjuration spell, it can't be broken by taking damage\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Durable Summons\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Any creature I summon or create with a conjuration spell has 30 temporary hit points\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey.indexOf(\"conjure\") !== -1 && !(/barrage|volley|knowbot/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/verbal commands/i, \"command\").replace(/^summon /i, '') + \"; +30 temp hp\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t} else if ((/find (greater )?(steed|familiar)/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/Gain the services of a ([^;]+)/i, \"A $1 (+30 temp hp)\");\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Any creature I summon or create with a conjuration spell gains 30 temporary hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"divination\", {\r\n\tregExpSearch : /divination|diviner|divinator/i,\r\n\tsubname : \"School of Divination\",\r\n\tsubnameshort: \"Divination\",\r\n\tfullname : \"Diviner\",\r\n\tsource : [[\"P\", 116]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Divination Savant\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy divination spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Portent\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After a long rest, I roll dice and keep the results to be used before my next long rest\",\r\n\t\t\t\t\"A result can replace an attack/save/ability check made by me or a creature I can see\",\r\n\t\t\t\t\"I choose to switch them before the dice to be replaced are rolled; Max once per turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 14 ? 2 : 3) + \"d20 after a long rest\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Expert Divination\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I cast a divination spell, I recover a spell slot of a lower level than the one I cast\"),\r\n\t\t\tadditional : \"Spell slot < 6th-level\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"The Third Eye\",\r\n\t\t\tsource : [[\"P\", 116]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I gain one of the following until my next short or long rest:\",\r\n\t\t\t\t\"Darkvision 60ft, see the Ethereal Plane 60ft, read any language, or see invisibility 10ft\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Greater Portent\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can roll 3d20 instead of 2d20 when using my Portent feature\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"enchantment\", {\r\n\tregExpSearch : /enchantment|enchanter/i,\r\n\tsubname : \"School of Enchantment\",\r\n\tsubnameshort: \"Enchantment\",\r\n\tfullname : \"Enchanter\",\r\n\tsource : [[\"P\", 117]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Enchantment Savant\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy enchantment spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Hypnotic Gaze\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, a seen enemy within 5 ft must make a Wis save or be charmed\",\r\n\t\t\t\t\"This doesn't work if it can't see/hear me; It's also incapacitated and reduced to 0 speed\",\r\n\t\t\t\t\"This lasts until the end of my next turn, but I can use an action to extend the duration\",\r\n\t\t\t\t\"It also ends if it takes damage, can't see or hear me, or is more than 5 ft from me\",\r\n\t\t\t\t\"On success or once it ends, I can't use this on it again until after a long rest\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Instinctive Charm\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when someone I can see in 30 ft attacks me, it must make a Wis save\",\r\n\t\t\t\t\"If failed, it must instead attack the closest creature within range (not me or self)\",\r\n\t\t\t\t\"On a success, the target is immune to this until after my long rest; This is a charm effect\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Split Enchantment\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I cast an enchantment spell with only one target, I can target a second in range\",\r\n\t\t\t\t\"This does not apply to cantrips\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || !spellObj.level || spellObj.school !== \"Ench\") return;\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch(spellKey) {\r\n\t\t\t\t\t\t\tcase \"animal messenger\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Tiny beast delivers\", \"2 tiny beasts deliver single\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"antipathy/sympathy\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Creature,\", \"2 crea, 1\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"heroism\" :\r\n\t\t\t\t\t\t\tcase \"command\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/, halt| as spell lasts/i, \"\");\r\n\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1+1/SL\", \"2 or 1+1/SL\").replace(/1 (crea(ture)?|beast|humanoid)/i, \"2 $1s\").replace(/creas\\b/gi, \"crea\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My enchantment, single-target 1st-level or higher spells can affect two targets instead of only one.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Alter Memories\",\r\n\t\t\tsource : [[\"P\", 117]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I cast an enchantment spell that charms, I can have one target be unaware of it\",\r\n\t\t\t\t\"Also, once before that spell ends, I can have that target forget time while affected\",\r\n\t\t\t\t\"It must make an Intelligence save or lose up to 1 + Charisma modifier hours of memory\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"illusion\", {\r\n\tregExpSearch : /illusion|illusionist|illusionary/i,\r\n\tsubname : \"School of Illusion\",\r\n\tsubnameshort: \"Illusion\",\r\n\tfullname : \"Illusionist\",\r\n\tsource : [[\"P\", 118]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Illusion Savant\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy illusion spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Improved Minor Illusion\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain the knowledge of the Minor Illusion cantrip (or another if I already knew it)\",\r\n\t\t\t\t\"When I cast it, I can create both a sound and an image with a single casting\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Minor Illusion cantrip\",\r\n\t\t\t\tspells : [\"minor illusion\"],\r\n\t\t\t\tselection : [\"minor illusion\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"minor illusion\" : {\r\n\t\t\t\t\tdescription : \"5-ft cube illusion includes visible and audible; Int(Investigation) check vs. Spell DC; see book\",\r\n\t\t\t\t\tchanges : \"My Improved Minor Illusion class feature allows me to make both a sound and an image with a single casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Malleable Illusion\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"After I cast an illusion spell that lasts 1 min or longer, I can use an action to change it\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Illusory Self\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"As a reaction, when I'm attacked, I can impose an illusion that makes the attack miss\"),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Illusory Reality\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, after I cast a 1st-level or higher illusion spell, I can make it real\",\r\n\t\t\t\t\"One inanimate, nonmagical object that is part of the illusion becomes real for 1 minute\",\r\n\t\t\t\t\"The object can't be something that directly harms someone\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"necromancy\", {\r\n\tregExpSearch : /necromancy|necromancer|necromantic/i,\r\n\tsubname : \"School of Necromancy\",\r\n\tsubnameshort: \"Necromancy\",\r\n\tfullname : \"Necromancer\",\r\n\tsource : [[\"P\", 118]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Necromancy Savant\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy necromancy spells into my spellbook\"),\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Grim Harvest\",\r\n\t\t\tsource : [[\"P\", 118]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per turn, when I kill something with a 1st-level or higher spell, I regain hit points\",\r\n\t\t\t\t\"The number of hit points regained is 2\\xD7 the spell's level (or 3\\xD7 with necromancy spells)\",\r\n\t\t\t\t\"This doesn't occur for constructs/undead\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Undead Thralls\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add Animate Dead to my spellbook and can have an additional target when casting it\",\r\n\t\t\t\t\"Undead created by my necromancy spells have the following benefits:\",\r\n\t\t\t\t\"They add my proficiency bonus to damage and my wizard level to their HP maximums\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Undead Thralls\",\r\n\t\t\t\tspells : [\"animate dead\"],\r\n\t\t\t\tselection : [\"animate dead\"],\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"animate dead\" : {\r\n\t\t\t\t\tdescription : \"Turn corpses into 2+2/SL Skeletons or Zombies; control for 24h; bns a command within 60 ft\",\r\n\t\t\t\t\tchanges : \"My Undead Thralls class feature allows me to animate one more corpse than normal with Animate Dead.\",\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Inured to Undead\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I have resistance to necrotic damage and my hit point maximum can't be reduced\"),\r\n\t\t\tdmgres : [\"Necrotic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Command Undead\",\r\n\t\t\tsource : [[\"P\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, an undead within 60 ft that I can see must make a Charisma save\",\r\n\t\t\t\t\"If its Int is > 7, it has adv. on the save; If its Int is > 11, it repeats the save every hour\",\r\n\t\t\t\t\"If failed, it becomes friendly to me and obeys my commands until I use this on another\",\r\n\t\t\t\t\"On success, it becomes permanently immune to my further attempts\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"transmutation\", {\r\n\tregExpSearch : /transmutation|transmuter/i,\r\n\tsubname : \"School of Transmutation\",\r\n\tsubnameshort: \"Transmutation\",\r\n\tfullname : \"Transmuter\",\r\n\tsource : [[\"P\", 119]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Transmutation Savant\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I halve the gp and time needed to copy transmutation spells into my spellbook\")\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Minor Alchemy\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can transform an object of wood/stone/iron/copper/silver into another of those\",\r\n\t\t\t\t\"For each 10 min I spend, I can transform up to 1 cubic foot of the material\",\r\n\t\t\t\t\"It reverts back when I lose concentration or after 1 hour\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Transmuter's Stone\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In 8 hours, I can create a transmuter's stone that gives its wielder one of the following:\",\r\n\t\t\t\t\" \\u2022 Darkvision 60 ft\",\r\n\t\t\t\t\" \\u2022 10 ft increase to speed while unencumbered\",\r\n\t\t\t\t\" \\u2022 Proficiency in Constitution saving throws\",\r\n\t\t\t\t\" \\u2022 Resistance to either acid, cold, fire, lightning, or thunder damage\",\r\n\t\t\t\t\"The benefit is chosen at creation; I can have only one active stone at a time\",\r\n\t\t\t\t\"I can change the benefit when I cast a 1st-level or higher transmutation spell with it\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shapechanger\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add Polymorph to my spellbook; I can cast it on myself without using a spell slot\",\r\n\t\t\t\t\"When I do that, I can only transform into a beast with a challenge rating of 1 or lower\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Add to spellbook\",\r\n\t\t\t\tspells : [\"polymorph\"],\r\n\t\t\t\tselection : [\"polymorph\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"1/SR no spell slot\",\r\n\t\t\t\tspells : [\"polymorph\"],\r\n\t\t\t\tselection : [\"polymorph\"],\r\n\t\t\t\tfirstCol : \"oncesr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"polymorph\" : {\r\n\t\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tdescription : \"I transformed into a beast of my choice with a CR 1 or lower; see book\",\r\n\t\t\t\t\tchanges : \"Using my Shapechanger class feature, I can cast Polymorph once per short rest without using a spell slot, but when I do so I can only cast it on myself and transform into a beast.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Transmuter\",\r\n\t\t\tsource : [[\"P\", 119]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can destroy my transmuter's stone and do one of the four following:\",\r\n\t\t\t\t\"##\\u2022 Major Transformation##.\",\r\n\t\t\t\t\"  In 10 minutes, I transmute one nonmagical object up to 5 cubic foot into another\",\r\n\t\t\t\t\"  This new, nonmagical object must be of similar size and mass and equal or less value\",\r\n\t\t\t\t\"##\\u2022 Panacea##.\",\r\n\t\t\t\t\"  One touched has all curses, diseases, and poisons removed and is healed to max HP\",\r\n\t\t\t\t\"##\\u2022 Restore Life##.\",\r\n\t\t\t\t\"  I cast Raise Dead without using spell slots or needing to have it in my spellbook\",\r\n\t\t\t\t\"##\\u2022 Restore Youth##.\",\r\n\t\t\t\t\"  A touched creature's apparent age is reduced by 3d10 years (to a minimum of 13)\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Companions\r\nCompanionList[\"undead_thrall\"] = {\r\n\tname: \"Undead Thralls\",\r\n\tnameOrigin: \"School of Necromancy 6\",\r\n\tnameMenu : \"Undead Thrall (School of Necromancy feature)\",\r\n\tsource: [[\"P\", 119]],\r\n\tincludeCheck: function(sCrea, objCrea, iCreaCR, bIsAL) {\r\n\t\treturn /undead/i.test(objCrea.type);\r\n\t},\r\n\tattributesChange: function(sCrea, objCrea) {\r\n\t\tobjCrea.hp += classes.known.wizard ? classes.known.wizard.level : classes.totallevel;\r\n\t\tif (!objCrea.attacks) return;\r\n\t\tobjCrea.attacks = objCrea.attacks.map(function(oAtk) {\r\n\t\t\tif (oAtk.abilitytodamage !== false && !oAtk.dc) {\r\n\t\t\t\tif (!oAtk.modifiers) {\r\n\t\t\t\t\toAtk.modifiers = [\"\", \"oProf\"];\r\n\t\t\t\t} else {\r\n\t\t\t\t\toAtk.modifiers[1] += \"+oProf\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn oAtk;\r\n\t\t});\r\n\t},\r\n\tcalcChanges: {\r\n\t\thp: function (totalHD, HDobj, prefix) {\r\n\t\t\tif (classes.known.wizard) {\r\n\t\t\t\treturn [classes.known.wizard.level, \"Undead Thralls (wizard level)\"];\r\n\t\t\t} else {\r\n\t\t\t\treturn [classes.totallevel, \"Undead Thralls (character level)\"];\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tnotes: [{\r\n\t\tname: \"Undead I create with a necromancy spell\",\r\n\t\tdescription: \"add my wizard level to their hit point maximum and add my proficiency bonus to their weapon damage rolls.\",\r\n\t\tjoinString: \" \",\r\n\t}],\r\n\teval: function(prefix, lvl) {\r\n\t\t// Set HP to use average value, so that the level bonus is automatically included\r\n\t\tvar sHPfld = prefix + \"Comp.Use.HP.Max\";\r\n\t\tvar aHPsets = How(sHPfld).split(\",\");\r\n\t\taHPsets[3] = \"average\";\r\n\t\tAddTooltip(sHPfld, undefined, aHPsets.toString());\r\n\t},\r\n};\r\n\r\n// Add the backgrounds that are not in the SRD\r\nBackgroundList[\"charlatan\"] = {\r\n\tregExpSearch : /charlatan/i,\r\n\tname : \"Charlatan\",\r\n\tsource : [[\"P\", 128], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Sleight of Hand\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Tools for chosen con\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"False Identity\",\r\n\ttrait : [\r\n\t\t\"I fall in and out of love easily, and am always pursuing someone.\",\r\n\t\t\"I have a joke for every occasion, especially occasions where humor is inappropriate.\",\r\n\t\t\"Flattery is my preferred trick for getting what I want.\",\r\n\t\t\"I'm a born gambler who can't resist taking a risk for a potential payoff.\",\r\n\t\t\"I lie about almost everything, even when there's no good reason to.\",\r\n\t\t\"Sarcasm and insults are my weapons of choice.\",\r\n\t\t\"I keep multiple holy symbols on me and invoke whatever deity might come in useful at any given moment.\",\r\n\t\t\"I pocket anything I see that might have some value.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: I am a free spirit \\u2015 no one tells me what to do. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: I never target people who can't afford to lose a few coins. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Charity\",\r\n\t\t\t\"Charity: I distribute the money I acquire to the people who really need it. (Good)\"\r\n\t\t],\r\n\t\t[\"Creativity\",\r\n\t\t\t\"Creativity: I never run the same con twice. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Friendship\",\r\n\t\t\t\"Friendship: Material goods come and go. Bonds of friendship last forever. (Good)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I'm determined to make something of myself. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I fleeced the wrong person and must work to ensure that this individual never crosses paths with me or those I care about.\",\r\n\t\t\"I owe everything to my mentor \\u2015 a horrible person who's probably rotting in jail somewhere.\",\r\n\t\t\"Somewhere out there, I have a child who doesn't know me. I'm making the world better for him or her.\",\r\n\t\t\"I come from a noble family, and one day I'll reclaim my lands and title from those who stole them from me.\",\r\n\t\t\"A powerful person killed someone I love. Someday soon, I'll have my revenge.\",\r\n\t\t\"I swindled and ruined a person who didn't deserve it. I seek to atone for my misdeeds but might never be able to forgive myself.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I can't resist a pretty face.\",\r\n\t\t\"I'm always in debt. I spend my ill-gotten gains on decadent luxuries faster than I bring them in.\",\r\n\t\t\"I'm convinced that no one could ever fool me the way I fool others.\",\r\n\t\t\"I'm too greedy for my own good. I can't resist taking a risk if there's money involved.\",\r\n\t\t\"I can't resist swindling people who are more powerful than me.\",\r\n\t\t\"I hate to admit it and will hate myself for it, but I'll run and preserve my own hide if the going gets tough.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Favorite Scheme\",\r\n\t\t\"Cheat at games of chance\",\r\n\t\t\"Shave coins, forge documents\",\r\n\t\t\"User/manipulator\",\r\n\t\t\"Change identity\",\r\n\t\t\"Sleight-of-hand cons\",\r\n\t\t\"Sell junk as expensive necessities\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", \"Forgery kit\"],\r\n\tlifestyle : \"comfortable\"\r\n};\r\nBackgroundList[\"criminal\"] = {\r\n\tregExpSearch : /criminal/i,\r\n\tname : \"Criminal\",\r\n\tsource : [[\"P\", 129], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Dark, common clothes with hood\", \"\", 3],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Criminal Contact\",\r\n\ttrait : [\r\n\t\t\"I always have a plan for what to do when things go wrong.\",\r\n\t\t\"I am always calm, no matter the situation. I never raise my voice or let my emotions control me.\",\r\n\t\t\"The first thing I do in a new place is note the locations of everything valuable \\u2015 or where such things could be hidden.\",\r\n\t\t\"I would rather make a new friend than a new enemy.\",\r\n\t\t\"I am incredibly slow to trust. Those who seem the fairest often have the most to hide.\",\r\n\t\t\"I don't pay attention to the risks in a situation. Never tell me the odds.\",\r\n\t\t\"The best way to get me to do something is to tell me I can't do it.\",\r\n\t\t\"I blow up at the slightest insult.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Honor\",\r\n\t\t\t\"Honor: I don't steal from others in the trade. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Chains are meant to be broken, as are those who would forge them. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Charity\",\r\n\t\t\t\"Charity: I steal from the wealthy so that I can help people in need. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I will do whatever it takes to become wealthy. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm loyal to my friends, not to any ideals, and everyone else can take a trip down the Styx for all I care. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Redemption\",\r\n\t\t\t\"Redemption: There's a spark of good in everyone. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'm trying to pay off an old debt I owe to a generous benefactor.\",\r\n\t\t\"My ill-gotten gains go to support my family.\",\r\n\t\t\"Something important was taken from me, and I aim to steal it back.\",\r\n\t\t\"I will become the greatest thief that ever lived.\",\r\n\t\t\"I'm guilty of a terrible crime. I hope I can redeem myself for it.\",\r\n\t\t\"Someone I loved died because of a mistake I made. That will never happen again.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"When I see something valuable, I can't think about anything but how to steal it.\",\r\n\t\t\"When faced with a choice between money and my friends, I usually choose the money.\",\r\n\t\t\"If there's a plan, I'll forget it. If I don't forget it, I'll ignore it.\",\r\n\t\t\"I have a \\\"tell\\\" that reveals when I'm lying.\",\r\n\t\t\"I turn tail and run when things look bad.\",\r\n\t\t\"An innocent person is in prison for a crime that I committed. I'm okay with that.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Criminal Specialty\",\r\n\t\t\"Blackmailer\",\r\n\t\t\"Burglar\",\r\n\t\t\"Enforcer\",\r\n\t\t\"Fence\",\r\n\t\t\"Highway robber\",\r\n\t\t\"Hired killer\",\r\n\t\t\"Pickpocket\",\r\n\t\t\"Smuggler\",\r\n\t\t\"Spy\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"entertainer\"] = {\r\n\tregExpSearch : /(entertainer|actor|dancer|fire.?eater|jester|juggler|instrumentalist|poet|singer|storyteller|tumbler)/i,\r\n\tname : \"Entertainer\",\r\n\tsource : [[\"P\", 130], [\"ALbackground\", 0]],\r\n\tskills : [\"Acrobatics\", \"Performance\"],\r\n\tgold : 15,\r\n\tequipright : [\r\n\t\t[\"Costume\", \"\", 4],\r\n\t\t[\"Favor of an admirer\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"By Popular Demand\",\r\n\ttrait : [\r\n\t\t\"I know a story relevant to almost every situation.\",\r\n\t\t\"Whenever I come to a new place, I collect local rumors and spread gossip.\",\r\n\t\t\"I'm a hopeless romantic, always searching for that 'special someone'.\",\r\n\t\t\"Nobody stays angry at me or around me for long, since I can defuse any amount of tension.\",\r\n\t\t\"I love a good insult, even one directed at me.\",\r\n\t\t\"I get bitter if I'm not the center of attention.\",\r\n\t\t\"I'll settle for nothing less than perfection.\",\r\n\t\t\"I change my mood or my mind as quickly as I change key in a song.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Beauty\",\r\n\t\t\t\"Beauty: When I perform, I make the world better than it was. (Good)\"\r\n\t\t],\r\n\t\t[\"Tradition\",\r\n\t\t\t\"Tradition: The stories, legends, and songs of the past must never be forgotten, for they teach us who we are. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Creativity\",\r\n\t\t\t\"Creativity: The world is in need of new ideas and bold action. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I'm only in it for the money and fame. [Evil]\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I like seeing the smiles on people's faces when I perform. That's all that matters. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Honesty\",\r\n\t\t\t\"Honesty: Art should reflect the soul; it should come from within and reveal who we really are. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My instrument is my most treasured possession, and it reminds me of someone I love.\",\r\n\t\t\"Someone stole my precious instrument, and someday I'll get it back.\",\r\n\t\t\"I want to be famous, whatever it takes.\",\r\n\t\t\"I idolize a hero of the old tales and measure my deeds against that person's.\",\r\n\t\t\"I will do anything to prove myself superior to my hated rival.\",\r\n\t\t\"I would do anything for the other members of my old troupe.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'll do anything to win fame and renown.\",\r\n\t\t\"I'm a sucker for a pretty face.\",\r\n\t\t\"A scandal prevents me from ever going home again. That kind of trouble seems to follow me around.\",\r\n\t\t\"I once satirized a noble who still wants my head. It was a mistake that I will likely repeat.\",\r\n\t\t\"I have trouble keeping my true feelings hidden. My sharp tongue lands me in trouble.\",\r\n\t\t\"Despite my best efforts, I am unreliable to my friends.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Entertainer Routine\",\r\n\t\t\"Actor\",\r\n\t\t\"Dancer\",\r\n\t\t\"Fire-eater\",\r\n\t\t\"Jester\",\r\n\t\t\"Juggler\",\r\n\t\t\"Instrumentalist\",\r\n\t\t\"Poet\",\r\n\t\t\"Singer\",\r\n\t\t\"Storyteller\",\r\n\t\t\"Tumbler\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", [\"Musical instrument\", 1]],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"folk hero\"] = {\r\n\tregExpSearch : /^(?=.*folk)(?=.*hero).*$/i,\r\n\tname : \"Folk Hero\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Shovel\", \"\", 5],\r\n\t\t[\"Iron pot\", \"\", 10]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Rustic Hospitality\",\r\n\ttrait : [\r\n\t\t\"I judge people by their actions, not their words.\",\r\n\t\t\"If someone is in trouble, I'm always ready to lend help.\",\r\n\t\t\"When I set my mind to something, I follow through no matter what gets in my way.\",\r\n\t\t\"I have a strong sense of fair play and always try to find the most equitable solution to arguments.\",\r\n\t\t\"I'm confident in my own abilities and do what I can to instill confidence in others.\",\r\n\t\t\"Thinking is for other people. I prefer action.\",\r\n\t\t\"I misuse long words in an attempt to sound smarter.\",\r\n\t\t\"I get bored easily. When am I going to get on with my destiny?\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: People deserve to be treated with dignity and respect. (Good)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: No one should get preferential treatment before the law, and no one is above the law. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Tyrants must not be allowed to oppress the people. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: If I become strong, I can take what I want\\u2015 what I deserve. (Evil)\"\r\n\t\t],\r\n\t\t[\"Sincerity\",\r\n\t\t\t\"Sincerity: There's no good in pretending to be something I'm not. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Destiny\",\r\n\t\t\t\"Destiny: Nothing and no one can steer me away from my higher calling. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have a family, but I have no idea where they are. One day, I hope to see them again.\",\r\n\t\t\"I worked the land, I love the land, and I will protect the land.\",\r\n\t\t\"A proud noble once gave me a horrible beating, and I will take my revenge on any bully I encounter.\",\r\n\t\t\"My tools are symbols of my past life, and I carry them so that I will never forget my roots.\",\r\n\t\t\"I protect those who cannot protect themselves.\",\r\n\t\t\"I wish my childhood sweetheart had come with me to pursue my destiny.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"The tyrant who rules my land will stop at nothing to see me killed.\",\r\n\t\t\"I'm convinced of the significance of my destiny, and blind to my shortcomings and the risk of failure.\",\r\n\t\t\"The people who knew me when I was young know my shameful secret, so I can never go home again.\",\r\n\t\t\"I have a weakness for the vices of the city, especially hard drink.\",\r\n\t\t\"Secretly, I believe that things would be better if I were a tyrant lording over the land.\",\r\n\t\t\"I have trouble trusting in my allies.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Defining Event\",\r\n\t\t\"I stood up to a tyrant's agents\",\r\n\t\t\"I saved people during a natural disaster\",\r\n\t\t\"I stood alone against a terrible monster\",\r\n\t\t\"I stole from a corrupt merchant for the poor\",\r\n\t\t\"I led a militia to fight off an invading army\",\r\n\t\t\"I stole weapons from a tyrant to arm the people\",\r\n\t\t\"I trained peasantry to fight a tyrant with farm tools\",\r\n\t\t\"A decree was rescinded after I led a protest against it\",\r\n\t\t\"A magical creature gave me a blessing or insight\",\r\n\t\t\"I rose to leadership in a lord's army\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], \"Vehicles (land)\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"guild artisan\"] = {\r\n\tregExpSearch : /^(?=.*guild)(?=.*artisan).*$/i,\r\n\tname : \"Guild Artisan\",\r\n\tsource : [[\"P\", 132], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Letter of introduction from guild\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Guild Membership\",\r\n\ttrait : [\r\n\t\t\"I believe that anything worth doing is worth doing right. I can't help it\\u2015 I'm a perfectionist.\",\r\n\t\t\"I'm a snob who looks down on those who can't appreciate fine art.\",\r\n\t\t\"I always want to know how things work and what makes people tick.\",\r\n\t\t\"I'm full of witty aphorisms and have a proverb for every occasion.\",\r\n\t\t\"I'm rude to people who lack my commitment to hard work and fair play.\",\r\n\t\t\"I like to talk at length about my profession.\",\r\n\t\t\"I don't part with my money easily and will haggle tirelessly to get the best deal possible.\",\r\n\t\t\"I'm well known for my work, and I want to make sure everyone appreciates it. I'm always taken aback when people haven't heard of me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Community\",\r\n\t\t\t\"Community: It is the duty of all civilized people to strengthen the bonds of community and the security of civilization. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Generosity\",\r\n\t\t\t\"Generosity: My talents were given to me so that I could use them to benefit the world. (Good)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: Everyone should be free to pursue his or her own livelihood. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I'm only in it for the money. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm committed to the people I care about, not to ideals. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I work hard to be the best there is at my craft. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The workshop where I learned my trade is the most important place in the world to me.\",\r\n\t\t\"I created a great work for someone, and then found them unworthy to receive it. I'm still looking for someone worthy.\",\r\n\t\t\"I owe my guild a great debt for forging me into the person I am today.\",\r\n\t\t\"I pursue wealth to secure someone's love.\",\r\n\t\t\"One day I will return to my guild and prove that I am the greatest artisan of them all.\",\r\n\t\t\"I will get revenge on the evil forces that destroyed my place of business and ruined my livelihood.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'll do anything to get my hands on something rare or priceless.\",\r\n\t\t\"I'm quick to assume that someone is trying to cheat me.\",\r\n\t\t\"No one must ever learn that I once stole money from guild coffers.\",\r\n\t\t\"I'm never satisfied with what I have\\u2015 I always want more.\",\r\n\t\t\"I would kill to acquire a noble title.\",\r\n\t\t\"I'm horribly jealous of anyone who can outshine my handiwork. Everywhere I go, I'm surrounded by rivals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Guild Business\",\r\n\t\t\"Alchemists and apothecaries\",\r\n\t\t\"Armorers, locksmiths, and finesmiths\",\r\n\t\t\"Brewers, distillers, and vintners\",\r\n\t\t\"Calligraphers, scribes, and scriveners\",\r\n\t\t\"Carpenters, roofers, and plasterers\",\r\n\t\t\"Cartographers, surveyors, and chart-makers\",\r\n\t\t\"Cobblers and shoemakers\",\r\n\t\t\"Cooks and bakers\",\r\n\t\t\"Glassblowers and glaziers\",\r\n\t\t\"Jewelers and gemcutters\",\r\n\t\t\"Leatherworkers, skinners, and tanners\",\r\n\t\t\"Masons and stonecutters\",\r\n\t\t\"Painters, limners, and sign-makers\",\r\n\t\t\"Potters and tile-makers\",\r\n\t\t\"Shipwrights and sailmakers\",\r\n\t\t\"Smiths and metal-forgers\",\r\n\t\t\"Tinkers, pewterers, and casters\",\r\n\t\t\"Wagon-makers and wheelwrights\",\r\n\t\t\"Weavers and dyers\",\r\n\t\t\"Woodcarvers, coopers, and bowyers\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"comfortable\"\r\n};\r\nBackgroundList[\"hermit\"] = {\r\n\tregExpSearch : /hermit/i,\r\n\tname : \"Hermit\",\r\n\tsource : [[\"P\", 134], [\"ALbackground\", 0]],\r\n\tskills : [\"Medicine\", \"Religion\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Winter blanket\", \"\", 3],\r\n\t\t[\"Herbalism kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Scroll case with notes\", \"\", 1]\r\n\t],\r\n\tfeature : \"Discovery\",\r\n\ttrait : [\r\n\t\t\"I've been isolated for so long that I rarely speak, preferring gestures and the occasional grunt.\",\r\n\t\t\"I am utterly serene, even in the face of disaster.\",\r\n\t\t\"The leader of my community had something wise to say on every topic, and I am eager to share that wisdom.\",\r\n\t\t\"I feel tremendous empathy for all who suffer.\",\r\n\t\t\"I'm oblivious to etiquette and social expectations.\",\r\n\t\t\"I connect everything that happens to me to a grand, cosmic plan.\",\r\n\t\t\"I often get lost in my own thoughts and contemplation, becoming oblivious to my surroundings.\",\r\n\t\t\"I am working on a grand philosophical theory and love sharing my ideas.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: My gifts are meant to be shared with all, not used for my own benefit. (Good)\"\r\n\t\t],\r\n\t\t[\"Logic\",\r\n\t\t\t\"Logic: Emotions must not cloud our sense of what is right and true, or our logical thinking. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Free Thinking\",\r\n\t\t\t\"Free Thinking: Inquiry and curiosity are the pillars of progress. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Solitude and contemplation are paths toward mystical or magical power. (Evil)\"\r\n\t\t],\r\n\t\t[\"Live and Let Live\",\r\n\t\t\t\"Live and Let Live: Meddling in the affairs of others only causes trouble. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Self-Knowledge\",\r\n\t\t\t\"Self-Knowledge: If you know yourself, there's nothing left to know. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"Nothing is more important than the other members of my hermitage, order, or association.\",\r\n\t\t\"I entered seclusion to hide from the ones who might still be hunting me. I must someday confront them.\",\r\n\t\t\"I'm still seeking the enlightenment I pursued in my seclusion, and it still eludes me.\",\r\n\t\t\"I entered seclusion because I loved someone I could not have.\",\r\n\t\t\"Should my discovery come to light, it could bring ruin to the world.\",\r\n\t\t\"My isolation gave me great insight into a great evil that only I can destroy.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Now that I've returned to the world, I enjoy its delights a little too much.\",\r\n\t\t\"I harbor dark, bloodthirsty thoughts that my isolation and meditation failed to quell.\",\r\n\t\t\"I am dogmatic in my thoughts and philosophy.\",\r\n\t\t\"I let my need to win arguments overshadow friendships and harmony.\",\r\n\t\t\"I'd risk too much to uncover a lost bit of knowledge.\",\r\n\t\t\"I like keeping secrets and won't share them with anyone.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Life of Seclusion\",\r\n\t\t\"Searching for spiritual enlightenment\",\r\n\t\t\"Living in accordance with a religious order\",\r\n\t\t\"Exiled for a crime I didn't commit\",\r\n\t\t\"Retreated from society after a life-altering event\",\r\n\t\t\"Worked on my art, literature, music, or manifesto\",\r\n\t\t\"Commune with nature, far from civilization\",\r\n\t\t\"Caretaker of an ancient ruin or relic\",\r\n\t\t\"Pilgrim in search of a thing of spiritual significance\"\r\n\t],\r\n\ttoolProfs : [\"Herbalism kit\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"noble\"] = {\r\n\tregExpSearch : /^(?!.*(waterdhavian|waterdeep|knight))(?=.*noble).*$/i,\r\n\tname : \"Noble\",\r\n\tsource : [[\"P\", 135], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Persuasion\"],\r\n\tgold : 25,\r\n\tequipleft : [\r\n\t\t[\"Scroll of pedigree\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Position of Privilege\",\r\n\ttrait : [\r\n\t\t\"My eloquent flattery makes everyone I talk to feel like the most wonderful and important person in the world.\",\r\n\t\t\"The common folk love me for my kindness and generosity.\",\r\n\t\t\"No one could doubt by looking at my regal bearing that I am a cut above the unwashed masses.\",\r\n\t\t\"I take great pains to always look my best and follow the latest fashions.\",\r\n\t\t\"I don't like to get my hands dirty, and I won't be caught dead in unsuitable accommodations.\",\r\n\t\t\"Despite my noble birth, I do not place myself above other folk. We all have the same blood.\",\r\n\t\t\"My favor, once lost, is lost forever.\",\r\n\t\t\"If you do me an injury, I will crush you, ruin your name, and salt your fields.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: Respect is due to me because of my position, but all people regardless of station deserve to be treated with dignity. (Good)\"\r\n\t\t],\r\n\t\t[\"Responsibility\",\r\n\t\t\t\"Responsibility: It is my duty to respect the authority of those above me, just as those below me must respect mine. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: I must prove that I can handle myself without the coddling of my family. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: If I can attain more power, no one will tell me what to do. (Evil)\"\r\n\t\t],\r\n\t\t[\"Family\",\r\n\t\t\t\"Family: Blood runs thicker than water. (Any)\"\r\n\t\t],\r\n\t\t[\"Noble Obligation\",\r\n\t\t\t\"Noble Obligation: It is my duty to protect and care for the people beneath me. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I will face any challenge to win the approval of my family.\",\r\n\t\t\"My house's alliance with another noble family must be sustained at all costs.\",\r\n\t\t\"Nothing is more important than the other members of my family.\",\r\n\t\t\"I am in love with the heir of a family that my family despises.\",\r\n\t\t\"My loyalty to my sovereign is unwavering.\",\r\n\t\t\"The common folk must see me as a hero of the people.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I secretly believe that everyone is beneath me.\",\r\n\t\t\"I hide a truly scandalous secret that could ruin my family forever.\",\r\n\t\t\"I too often hear veiled insults and threats in every word addressed to me, and I'm quick to anger.\",\r\n\t\t\"I have an insatiable desire for carnal pleasures.\",\r\n\t\t\"In fact, the world does revolve around me.\",\r\n\t\t\"By my words and actions, I often bring shame to my family.\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"outlander\"] = {\r\n\tregExpSearch : /^(?!.*urban)(?=.*(outlander|forester|trapper|homesteader|guide|exile|outcast|bounty.?hunter|tribal nomad|hunter-gatherer|tribal.?marauder)).*$/i,\r\n\tname : \"Outlander\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Staff\", \"\", 4],\r\n\t\t[\"Hunting trap\", \"\", 25],\r\n\t\t[\"Trophy from animal\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Wanderer\",\r\n\ttrait : [\r\n\t\t\"I'm driven by a wanderlust that led me away from home.\",\r\n\t\t\"I watch over my friends as if they were a litter of newborn pups.\",\r\n\t\t\"I once ran twenty-five miles without stopping to warn to my clan of an approaching orc horde. I'd do it again if I had to.\",\r\n\t\t\"I have a lesson for every situation, drawn from observing nature.\",\r\n\t\t\"I place no stock in wealthy or well-mannered folk. Money and manners won't save you from a hungry owlbear.\",\r\n\t\t\"I'm always picking things up, absently fiddling with them, and sometimes accidentally breaking them.\",\r\n\t\t\"I feel far more comfortable around animals than people.\",\r\n\t\t\"I was, in fact, raised by wolves.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Change\",\r\n\t\t\t\"Change: Life is like the seasons, in constant change, and we must change with it. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: It is each person's responsibility to make the most happiness for the whole tribe. (Good)\"\r\n\t\t],\r\n\t\t[\"Honor\",\r\n\t\t\t\"Honor: If I dishonor myself, I dishonor my whole clan. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: The strongest are meant to rule. (Evil)\"\r\n\t\t],\r\n\t\t[\"Nature\",\r\n\t\t\t\"Nature: The natural world is more important than all the constructs of civilization. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Glory\",\r\n\t\t\t\"Glory: I must earn glory in battle, for myself and my clan. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My family, clan, or tribe is the most important thing in my life, even when they are far from me.\",\r\n\t\t\"An injury to the unspoiled wilderness of my home is an injury to me.\",\r\n\t\t\"I will bring terrible wrath down on the evildoers who destroyed my homeland.\",\r\n\t\t\"I am the last of my tribe, and it is up to me to ensure their names enter legend.\",\r\n\t\t\"I suffer awful visions of a coming disaster and will do anything to prevent it.\",\r\n\t\t\"It is my duty to provide children to sustain my tribe.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am too enamored of ale, wine, and other intoxicants.\",\r\n\t\t\"There's no room for caution in a life lived to the fullest.\",\r\n\t\t\"I remember every insult I've received and nurse a silent resentment toward anyone who's ever wronged me.\",\r\n\t\t\"I am slow to trust members of other races, tribes, and societies.\",\r\n\t\t\"Violence is my answer to almost any challenge.\",\r\n\t\t\"Don't expect me to save those who can't save themselves. It is nature's way that the strong thrive and the weak perish.\"\r\n\t],\r\n\textra : [\"Select an Origin\",\r\n\t\t\"Forester\",\r\n\t\t\"Trapper\",\r\n\t\t\"Homesteader\",\r\n\t\t\"Guide\",\r\n\t\t\"Exile or outcast\",\r\n\t\t\"Bounty hunter\",\r\n\t\t\"Pilgrim\",\r\n\t\t\"Tribal nomad\",\r\n\t\t\"Hunter-gatherer\",\r\n\t\t\"Tribal marauder\"\r\n\t],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"sage\"] = {\r\n\tregExpSearch : /(sage|alchemist|astronomer|academic|librarian|professor|researcher|apprentice|scribe)/i,\r\n\tname : \"Sage\",\r\n\tsource : [[\"P\", 137], [\"ALbackground\", 0]],\r\n\tskills : [\"Arcana\", \"History\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5],\r\n\t\t[\"Letter from dead colleague\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Researcher\",\r\n\ttrait : [\r\n\t\t\"I use polysyllabic words that convey the impression of great erudition.\",\r\n\t\t\"I've read every book in the world's greatest libraries\\u2015 or I like to boast that I have.\",\r\n\t\t\"I'm used to helping out those who aren't as smart as I am, and I patiently explain anything and everything to others.\",\r\n\t\t\"There's nothing I like more than a good mystery.\",\r\n\t\t\"I'm willing to listen to every side of an argument before I make my own judgment.\",\r\n\t\t\"I . . . speak . . . slowly . . . when talking . . . to idiots, . . . which . . . almost. . . everyone . . . is . . . compared . . . to me.\",\r\n\t\t\"I am horribly, horribly awkward in social situations.\",\r\n\t\t\"I'm convinced that people are always trying to steal my secrets.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: The path to power and self-improvement is through knowledge. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Beauty\",\r\n\t\t\t\"Beauty: What is beautiful points us beyond itself toward what is true. (Good)\"\r\n\t\t],\r\n\t\t[\"Logic\",\r\n\t\t\t\"Logic: Emotions must not cloud our logical thinking. (Lawful)\"\r\n\t\t],\r\n\t\t[\"No Limits\",\r\n\t\t\t\"No Limits: Nothing should fetter the infinite possibility inherent in all existence. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Knowledge is the path to power and domination. (Evil)\"\r\n\t\t],\r\n\t\t[\"Self-Improvement\",\r\n\t\t\t\"Self-Improvement: The goal of a life of study is the betterment of oneself. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"It is my duty to protect my students.\",\r\n\t\t\"I have an ancient text that holds terrible secrets that must not fall into the wrong hands.\",\r\n\t\t\"I work to preserve a library, university, scriptorium, or monastery.\",\r\n\t\t\"My life's work is a series of tomes related to a specific field of lore.\",\r\n\t\t\"I've been searching my whole life for the answer to a certain question.\",\r\n\t\t\"I sold my soul for knowledge. I hope to do great deeds and win it back.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am easily distracted by the promise of information.\",\r\n\t\t\"Most people scream and run when they see a demon. I stop and take notes on its anatomy.\",\r\n\t\t\"Unlocking an ancient mystery is worth the price of a civilization.\",\r\n\t\t\"I overlook obvious solutions in favor of complicated ones.\",\r\n\t\t\"I speak without really thinking through my words, invariably insulting others.\",\r\n\t\t\"I can't keep a secret to save my life, or anyone else's.\"\r\n\t],\r\n\textra : [\"Select a Specialty\",\r\n\t\t\"Alchemist\",\r\n\t\t\"Astronomer\",\r\n\t\t\"Discredited academic\",\r\n\t\t\"Librarian\",\r\n\t\t\"Professor\",\r\n\t\t\"Researcher\",\r\n\t\t\"Wizard's apprentice\",\r\n\t\t\"Scribe\"\r\n\t],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"sailor\"] = {\r\n\tregExpSearch : /sailor/i,\r\n\tname : \"Sailor\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Perception\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Silk rope, feet of\", 50, 0.1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belaying pin (club)\", \"\", 2],\r\n\t\t[\"Lucky charm\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Ship's Passage\",\r\n\ttrait : [\r\n\t\t\"My friends know they can rely on me, no matter what.\",\r\n\t\t\"I work hard so that I can play hard when the work is done.\",\r\n\t\t\"I enjoy sailing into new ports and making new friends over a flagon of ale.\",\r\n\t\t\"I stretch the truth for the sake of a good story.\",\r\n\t\t\"To me, a tavern brawl is a nice way to get to know a new city.\",\r\n\t\t\"I never pass up a friendly wager.\",\r\n\t\t\"My language is as foul as an otyugh nest.\",\r\n\t\t\"I like a job well done, especially if I can convince someone else to do it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: The thing that keeps a ship together is mutual respect between captain and crew. (Good)\"\r\n\t\t],\r\n\t\t[\"Fairness\",\r\n\t\t\t\"Fairness: We all do the work, so we all share in the rewards. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Freedom\",\r\n\t\t\t\"Freedom: The sea is freedom\\u2015 the freedom to go anywhere and do anything. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Mastery\",\r\n\t\t\t\"Mastery: I'm a predator, and the other ships on the sea are my prey. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I'm committed to my crewmates, not to ideals. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: Someday I'll own my own ship and chart my own destiny. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'm loyal to my captain first, everything else second.\",\r\n\t\t\"The ship is most important\\u2015 crewmates and captains come and go.\",\r\n\t\t\"I'll always remember my first ship.\",\r\n\t\t\"In a harbor town, I have a paramour whose eyes nearly stole me from the sea.\",\r\n\t\t\"I was cheated out of my fair share of the profits, and I want to get my due.\",\r\n\t\t\"Ruthless pirates murdered my captain and crewmates, plundered our ship, and left me to die. Vengeance will be mine.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I follow orders, even if I think they're wrong.\",\r\n\t\t\"I'll say anything to avoid having to do extra work.\",\r\n\t\t\"Once someone questions my courage, I never back down no matter how dangerous the situation.\",\r\n\t\t\"Once I start drinking, it's hard for me to stop.\",\r\n\t\t\"I can't help but pocket loose coins and other trinkets I come across.\",\r\n\t\t\"My pride will probably lead to my destruction.\"\r\n\t],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (water)\"],\r\n\tlifestyle : \"modest\",\r\n};\r\nBackgroundList[\"soldier\"] = {\r\n\tregExpSearch : /^(?!.*mercenary)(?=.*soldier).*$/i,\r\n\tname : \"Soldier\",\r\n\tsource : [[\"P\", 140], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Intimidation\"],\r\n\tgold : 10,\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Trophy from fallen enemy\", \"\", \"\"],\r\n\t\t[\"Bone dice or playing cards\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Military Rank\",\r\n\ttrait : [\r\n\t\t\"I'm always respectful and polite.\",\r\n\t\t\"I'm haunted by memories of war. I can't get the violent images out of my mind.\",\r\n\t\t\"I'm slow to make new friends, because I've lost too many old ones.\",\r\n\t\t\"I'm full of inspiring and cautionary tales from my military experience with some relevance to almost every type of combat situation.\",\r\n\t\t\"I can stare down an owlbear without flinching.\",\r\n\t\t\"I enjoy my strength and like to break things.\",\r\n\t\t\"I have a rough sense of humor.\",\r\n\t\t\"I approach problems head-on. A simple, direct course is the best path to a solution.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Greater Good\",\r\n\t\t\t\"Greater Good: Our fate is to give our lives in the defense of others. (Good)\"\r\n\t\t],\r\n\t\t[\"Responsibility\",\r\n\t\t\t\"Responsibility: I do what I have to and follow just authority. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Independence\",\r\n\t\t\t\"Independence: When people obey orders blindly, they affirm a kind of tyranny. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: In life as in war, the mightier force prevails. (Evil)\"\r\n\t\t],\r\n\t\t[\"Live and Let Live\",\r\n\t\t\t\"Live and Let Live: Ideals aren't worth killing over or going to war for. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Nation\",\r\n\t\t\t\"Nation: My city, state, or people are the only things that matter. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I would still give my life for the people I have served with.\",\r\n\t\t\"Someone saved my life on the battlefield. Even now, I would never leave a friend behind.\",\r\n\t\t\"My honor is my life.\",\r\n\t\t\"I'll never forget the crushing defeat my company endured or the foes who inflicted it.\",\r\n\t\t\"Those who fight with me are those worth laying down my life for.\",\r\n\t\t\"I fight for those who cannot fight for themselves.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"The atrocious enemy we faced in battle still leaves me trembling with fear.\",\r\n\t\t\"I have little respect for those who are not a tested warrior.\",\r\n\t\t\"A disastrous mistake I made in battle cost many lives\\u2015 I will do anything to keep that mistake a secret.\",\r\n\t\t\"My hatred of my foes is blind and unreasoning. \",\r\n\t\t\"I uphold the law, even if the law causes suffering.\",\r\n\t\t\"I'd rather eat my weapon than admit when I'm wrong.\"\r\n\t],\r\n\textra : [\"Select a Specialty\",\r\n\t\t\"Officer\",\r\n\t\t\"Scout\",\r\n\t\t\"Infantry\",\r\n\t\t\"Cavalry\",\r\n\t\t\"Healer\",\r\n\t\t\"Quartermaster\",\r\n\t\t\"Standard-bearer\",\r\n\t\t\"Support staff\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"urchin\"] = {\r\n\tregExpSearch : /urchin/i,\r\n\tname : \"Urchin\",\r\n\tsource : [[\"P\", 141], [\"ALbackground\", 0]],\r\n\tskills : [\"Sleight of Hand\", \"Stealth\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Map of the city\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Token from my parents\", \"\", \"\"],\r\n\t\t[\"Pet mouse\", \"\", 0.1],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"City Secrets\",\r\n\ttrait : [\r\n\t\t\"I keep scraps of food and trinkets hidden away in my pockets.\",\r\n\t\t\"I ask questions all the time.\",\r\n\t\t\"I like to squeeze into compact places where nobody can harm me.\",\r\n\t\t\"I sleep with my back to solid surface, with all that I own embraced tightly in my arms.\",\r\n\t\t\"I have bad manners and eat like a pig.\",\r\n\t\t\"I expect that anybody who's nice to me is hiding malicious intent.\",\r\n\t\t\"I eschew bathing.\",\r\n\t\t\"I say, without reserve, what other people are implying or masking.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Respect\",\r\n\t\t\t\"Respect: Everybody, no matter their riches, deserves respect. (Good)\"\r\n\t\t],\r\n\t\t[\"Community\",\r\n\t\t\t\"Community: We have to take look out for each other, because nobody else will do it for us. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Change\",\r\n\t\t\t\"Change: The low rise up, and the high and mighty come down. Change is natural. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Retribution\",\r\n\t\t\t\"Retribution: The rich need to be shown how it is to live and die in the poor quarters. (Evil)\"\r\n\t\t],\r\n\t\t[\"People\",\r\n\t\t\t\"People: I help those who help me\\u2015 that is what lets us stay alive. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Aspiration\",\r\n\t\t\t\"Aspiration: I'm going to prove that I'm worthy of a better life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My town or city is my home, and I'll battle those that threaten it.\",\r\n\t\t\"I'm the benefactor of an orphanage so others may be kept from enduring what I was forced to endure.\",\r\n\t\t\"I owe my life to another urchin who taught me the ways of living in the gutters.\",\r\n\t\t\"I owe a debt I can never repay to the person who showed me sympathy.\",\r\n\t\t\"I got away from my life of poverty by robbing an influential person, and I'm wanted for it.\",\r\n\t\t\"No one else should have to suffer the difficulties I've been through.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I will run away from a fight if I'm outnumbered.\",\r\n\t\t\"A gold piece already has a lot of value to me, and I'll do just about anything for more of it.\",\r\n\t\t\"I will never completely trust another. I only trust myself.\",\r\n\t\t\"I would rather use an unfair advantage than fight honorably.\",\r\n\t\t\"It's not theft if I have more use for it than someone else.\",\r\n\t\t\"People who are incapable of taking care of themselves get what they deserve.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", [\"Thieves' tools\", \"Dex\"]],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Add the background variants\r\nAddBackgroundVariant(\"entertainer\", \"gladiator\", {\r\n\tregExpSearch : /gladiator/i,\r\n\tname : \"Gladiator\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Costume\", \"\", 4],\r\n\t\t[\"Favor of an admirer\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Inexpensive, unusual weapon\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Are You Entertained?\",\r\n\textra : \"\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"guild merchant\", {\r\n\tregExpSearch : /^(?=.*guild)(?=.*merchant).*$/i,\r\n\tname : \"Guild Merchant\",\r\n\tsource : [[\"P\", 133], [\"ALbackground\", 0]],\r\n\tequipleft : [\r\n\t\t[\"Letter of introduction from guild\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Cart\", \"\", \"\"],\r\n\t\t[\"Mule\", \"\", \"\"]\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Guild Business\",\r\n\t\t\"Traders\",\r\n\t\t\"Caravan masters\",\r\n\t\t\"Shopkeepers\"\r\n\t],\r\n\ttoolProfs : [\"Navigator's tools (or language)\"]\r\n});\r\nAddBackgroundVariant(\"noble\", \"knight\", {\r\n\tregExpSearch : /^(?!.*order)(?=.*knight).*$/i,\r\n\tname : \"Knight\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t\t[\"Banner or token from devoted love\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Retainers\"\r\n});\r\nAddBackgroundVariant(\"sailor\", \"pirate\", {\r\n\tregExpSearch : /pirate/i,\r\n\tname : \"Pirate\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]],\r\n\tfeature : \"Bad Reputation\"\r\n});\r\n\r\n// Add the backgrounds features that are not in the SRD\r\nBackgroundFeatureList[\"are you entertained?\"] = {\r\n\tdescription : \"I can always find a place to perform (arena/pit fight), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"bad reputation\"] = {\r\n\tdescription : \"No matter where I go, people are afraid of me due to my reputation. When I am in a civilized settlement, I can get away with minor criminal offenses, such as refusing to pay for food at a tavern or breaking down doors at a local shop, since most people will not report my activity to the authorities.\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"by popular demand\"] = {\r\n\tdescription : \"I can always find a place to perform (inn/tavern/circus/etc.), where I receive free lodging and food of a modest or comfortable standard, as long as I perform each night. In addition, my performance makes me something of a local figure. When strangers recognize me in a town where I have performed, they typically take a liking to me.\",\r\n\tsource : [[\"P\", 130], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"city secrets\"] = {\r\n\tdescription : \"I know the secret patterns and flow to cities and can find passages through the urban sprawl that others would miss. When I am not in combat, I (and companions I lead) can travel between any two locations in the city twice as fast as my speed would normally allow.\",\r\n\tsource : [[\"P\", 141], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"criminal contact\"] = {\r\n\tdescription : \"I have a reliable and trustworthy contact who acts as my liaison to a network of other criminals. I know how to get messages to and from my contact, even over great distances; specifically, I know the local messengers, corrupt caravan masters, and seedy sailors who can deliver my messages.\",\r\n\tsource : [[\"P\", 129], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"discovery\"] = {\r\n\tdescription : \"The quiet seclusion of my extended hermitage gave me access to a unique and powerful discovery. The exact nature of this revelation depends on the nature of my seclusion. It might be a great truth, a hidden site, a long forgotten fact, or unearthed some relic of the past that could rewrite history.\",\r\n\tsource : [[\"P\", 134], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"false identity\"] = {\r\n\tdescription : \"I have created a second identity that includes documentation, established acquaintances, and disguises that allow me to assume that persona. Additionally, I can forge documents, including official papers and personal letters, as long as I have seen an example of the kind of document or the handwriting I am trying to copy.\",\r\n\tsource : [[\"P\", 128], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"guild membership\"] = {\r\n\tdescription : \"5 gp membership fees per month: The guild offers lodging if possible. In case of being accused of a crime, the guild will support me if a good case can be made for my innocence or the crime is justifiable. I can also gain access to powerful political figures through the guild, as long as I'm in good standing and the guild is paid enough.\",\r\n\tsource : [[\"P\", 133], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"military rank\"] = {\r\n\tdescription : \"I have a military rank from my career as a soldier. Soldiers loyal to my former military organization still recognize my authority and influence. I can invoke my rank to influence soldiers and temporarily requisition simple equipment or horses. I can usually gain access to friendly military encampments and fortresses where my rank is recognized.\",\r\n\tsource : [[\"P\", 140], [\"ALbackground\", 0]],\r\n};\r\nBackgroundFeatureList[\"position of privilege\"] = {\r\n\tdescription : \"I am welcome in high society, and people assume I have the right to be wherever I am. The common folk make every effort to accommodate me and avoid my displeasure, and other people of high birth treat me as a member of the same social sphere. I can secure an audience with a local noble if I need to.\",\r\n\tsource : [[\"P\", 135], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"researcher\"] = {\r\n\tdescription : \"When I attempt to learn or recall a piece of lore, if I do not know that information, I often know where and from whom I can obtain it. Usually, this information comes from a library, scriptorium, university, or a sage or other learned person or creature. Unearthing the deepest secrets of the multiverse can require an adventure or even a whole campaign.\",\r\n\tsource : [[\"P\", 138], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"retainers\"] = {\r\n\tdescription : \"I have the service of three retainers loyal to my family, one of whom is another noble and my squire. My other retainers are commoners who can perform mundane tasks for me, but they do not fight for me, will not follow me into obviously dangerous areas (such as dungeons), and will leave if they are frequently endangered or abused.\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"rustic hospitality\"] = {\r\n\tdescription : \"Since I come from the ranks of the common folk, I fit in among them with ease. I can find a place to hide, rest, or recuperate among other commoners, unless I have shown myself to be a danger to them. They will shield me from the law or anyone else searching for me, though they will not risk their lives for me.\",\r\n\tsource : [[\"P\", 131], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ship's passage\"] = {\r\n\tdescription : \"When I need to, I can secure free passage on a sailing ship for myself and my companions. I might sail on the ship I served on, or another ship I have good relations with. Because I'm calling in a favor, I can't be certain of a schedule or route that will meet my every need. My companions and I are expected to assist the crew during the voyage.\",\r\n\tsource : [[\"P\", 139], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"wanderer\"] = {\r\n\tdescription : \"I have an excellent memory for maps and geography, and I can always recall the general layout of terrain, settlements, and other features around me. In addition, I can find food and fresh water for myself and up to five other people each day, provided that the land offers berries, small game, water, and so forth.\",\r\n\tsource : [[\"P\", 136], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Add the feats that are not in the SRD\r\nFeatsList[\"actor\"] = {\r\n\tname : \"Actor\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Skilled at mimicry and dramatics, you gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You have advantage on Charisma (Deception) and Charisma (Performance) checks when trying to pass yourself off as a different person.\\n \\u2022 You can mimic the speech of another person or the sounds made by other creatures. You must have heard the person speaking, or heard the creature make the sound, for at least 1 minute. A successful Wisdom (Insight) check contested by your Charisma (Deception) check allows a listener to determine that the effect is faked.\",\r\n\tdescription : \"Advantage on Charisma (Deception) and (Performance) if trying to pass as another. I can mimic a person's speech or other creature's sounds if I've heard it for at least 1 minute. Wisdom (Insight) vs. Charisma (Deception) to determine the sound is faked. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1]\r\n};\r\nFeatsList[\"alert\"] = {\r\n\tname : \"Alert\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Always on the lookout for danger, you gain the following benefits:\\n \\u2022 You gain a +5 bonus to initiative.\\n \\u2022 You can't be surprised while you are conscious.\\n \\u2022 Other creatures don't gain advantage on attack rolls against you as a result of being unseen by you.\",\r\n\tdescription : \"I can't be surprised while I'm conscious. I have a +5 bonus on initiative rolls. Other creatures don't gain advantage on attack rolls against me as a result of being hidden from me.\",\r\n\taddMod : { type : \"skill\", field : \"Init\", mod : 5, text : \"I have a +5 bonus on initiative rolls.\" }\r\n};\r\nFeatsList[\"athlete\"] = {\r\n\tname : \"Athlete\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"You have undergone extensive physical training to gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 When you are prone, standing up uses only 5 feet of your movement.\\n \\u2022 Climbing doesn't cost you extra movement.\\n \\u2022 You can make a running long jump or a running high jump after moving only 5 feet on foot, rather than 10 feet.\",\r\n\tdescription : \"Standing up from prone uses only 5 ft of movement. Climbing doesn't cost me extra movement. I can make a running long jump or a running high jump after moving only 5 feet on foot, rather than 10 feet. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\nFeatsList[\"charger\"] = {\r\n\tname : \"Charger\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"When you use your action to Dash, you can use a bonus action to make one melee weapon attack or to shove a creature.\\n   If you move at least 10 feet in a straight line immediately before taking this bonus action, you either gain a +5 bonus to the attack's damage roll (if you chose to make a melee attack and hit) or push the target up to 10 feet away from you (if you chose to shove and you succeed).\",\r\n\tdescription : \"As a bonus action after taking the Dash action, I can make one melee weapon attack or shove a creature. If I move at least 10 ft in a straight line before this bonus action, I add +5 damage to the attack or increase the distance up to 10 ft for the shove.\",\r\n\taction : [[\"bonus action\", \" (after Dash action)\"]]\r\n};\r\nFeatsList[\"crossbow expert\"] = {\r\n\tname : \"Crossbow Expert\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"Thanks to extensive practice with the crossbow, you gain the following benefits:\\n \\u2022 You ignore the loading quality of crossbows with which you are proficient.\\n \\u2022 Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls.\\n \\u2022 When you use the Attack action and attack with a one-handed weapon, you can use a bonus action to attack with a hand crossbow you are holding.\",\r\n\tdescription : \"I ignore the loading quality of crossbows I'm proficient with. I don't suffer disadv. on ranged attack rolls for being within 5 ft of a hostile. When I attack with a one-handed weapon in my Attack action, I can use a bonus action to attack with a hand crossbow I'm holding.\",\r\n\taction : [[\"bonus action\", \" (with Attack action)\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (/crossbow/i.test(v.baseWeaponName) && fields.Proficiency) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(,? ?loading|loading,? ?)/i, '');\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of crossbows I'm proficient with.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"defensive duelist\"] = {\r\n\tname : \"Defensive Duelist\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"When you are wielding a finesse weapon with which you are proficient and another creature hits you with a melee attack, you can use your reaction to add your proficiency bonus to your AC for that attack, potentially causing the attack to miss you.\",\r\n\tdescription : \"When wielding a finesse weapon with which I am proficient and another creature hits me with a melee attack, I can use my reaction to add my proficiency bonus to my AC for that attack, potentially causing the attack to miss me.\",\r\n\tprerequisite : \"Dexterity 13 or higher\",\r\n\tprereqeval : function(v) { return What('Dex') >= 13; },\r\n\taction : [[\"reaction\", \" (when hit in melee)\"]]\r\n};\r\nFeatsList[\"dual wielder\"] = {\r\n\tname : \"Dual Wielder\",\r\n\tsource : [[\"P\", 165]],\r\n\tdescriptionFull : \"You master fighting with two weapons, gaining the following benefits:\\n \\u2022 You gain a +1 bonus to AC while you are wielding a separate melee weapon in each hand.\\n \\u2022 You can use two-weapon fighting even when the one-handed melee weapons you are wielding aren't light.\\n \\u2022 You can draw or stow two one-handed weapons when you would normally be able to draw or stow only one.\",\r\n\tdescription : \"I can use two-weapon fighting even when the one-handed melee weapons I'm wielding aren't light. I can draw or stow two one-handed weapons when I would normally be able to draw or stow only one. +1 AC while wielding separate melee weapons in each hand.\",\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC when holding a melee weapon in each hand.\",\r\n\t\tstopeval : function (v) { return v.usingShield && !(/animated/i).test(What(\"AC Shield Bonus Description\")); }\r\n\t}\r\n};\r\nFeatsList[\"dungeon delver\"] = {\r\n\tname : \"Dungeon Delver\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"Alert to the hidden traps and secret doors found in many dungeons, you gain the following benefits:\\n \\u2022 You have advantage on Wisdom (Perception) and Intelligence (Investigation) checks made to detect the presence of secret doors.\\n \\u2022 You have advantage on saving throws made to avoid or resist traps.\\n \\u2022 You have resistance to the damage dealt by traps.\\n \\u2022 Traveling at a fast pace doesn't impose the normal -5 penalty on your passive Wisdom (Perception) score.\",\r\n\tdescription : \"I have adv. on Wis (Perception) and Int (Investigation) checks made to detect the presence of secret doors. I have resistance to damage dealt by traps and advantage on saves to avoid or resist traps. Travelling at a fast pace doesn't impose -5 on my passive Perception.\",\r\n\tdmgres : [\"Traps\"],\r\n\tsavetxt : { adv_vs : [\"traps\"] },\r\n\tvision : [[\"Adv. on Perception and Investigation for secret doors\", 0], [\"No -5 for travelling at fast pace\", 0]]\r\n};\r\nFeatsList[\"durable\"] = {\r\n\tname : \"Durable\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"Hardy and resilient, you gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 When you roll a Hit Die to regain hit points, the minimum number of hit points you regain from the roll equals twice your Constitution modifier (minimum of 2).\",\r\n\tdescription : \"When I roll a hit die to regain hit points, the minimum number of hit points I regain from the roll equals twice my Constitution modifier (minimum of 2). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elemental adept\"] = {\r\n\tname : \"Elemental Adept\",\r\n\tsource : [[\"P\", 166]],\r\n\tdescriptionFull : \"When you gain this feat, choose one of the following damage types: acid, cold, fire, lightning, or thunder.\\n   Spells you cast ignore resistance to damage of the chosen type. In addition, when you roll damage for a spell you cast that deals damage of that type, you can treat any 1 on a damage die as a 2.\\n\\nYou can select this feat multiple times. Each time you do so, you must choose a different damage type.\",\r\n\tdescription : \"Choose one of the damage types: acid, cold, fire, lightning, or thunder. Spells I cast ignore resistance to damage from this damage type. For any spell I cast that deals this damage type, I can treat any 1 on a damage die as a 2.\",\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tallowDuplicates : true,\r\n\tchoices : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\"acid\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to acid damage. For any spell I cast that deals acid damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"cold\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to cold damage. For any spell I cast that deals cold damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"fire\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to fire damage. For any spell I cast that deals fire damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"lightning\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to lightning damage. For any spell I cast that deals lightning damage, I can treat any 1 on a damage die as a 2.\"\r\n\t},\r\n\t\"thunder\" : {\r\n\t\tdescription : \"Spells I cast ignore resistance to thunder damage. For any spell I cast that deals thunder damage, I can treat any 1 on a damage die as a 2.\"\r\n\t}\r\n};\r\nFeatsList[\"great weapon master\"] = {\r\n\tname : \"Great Weapon Master\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You've learned to put the weight of a weapon to your advantage, letting its momentum empower your strikes. You gain the following benefits:\\n \\u2022 On your turn, when you score a critical hit with a melee weapon or reduce a creature to 0 hit points with one, you can make one melee weapon attack as a bonus action.\\n \\u2022 Before you make a melee attack with a heavy weapon that you are proficient with, you can choose to take a -5 penalty to the attack roll. If the attack hits, you add +10 to the attack's damage.\",\r\n\tdescription : \"If I score a critical hit or reduce a creature to 0 hit points with a melee weapon in my turn, I can make one melee weapon attack as a bonus action. With a heavy melee weapon, I can choose to take a -5 penalty on the attack roll for +10 on the attack's damage.\",\r\n\taction : [[\"bonus action\", \" (after crit or take-down)\"]],\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/heavy/i).test(fields.Description) && (/\\bgwm\\b|power.{0,3}attack|great.{0,3}weapon.{0,3}master/i).test(v.WeaponText)) {\r\n\t\t\t\t\toutput.extraDmg += 10;\r\n\t\t\t\t\toutput.extraHit -= 5;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the words 'Power Attack', 'Great Weapon Master', or just 'GWM' in a heavy melee weapon's name or description, the calculation will put a -5 penalty on the attack's To Hit and +10 on its Damage.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"healer\"] = {\r\n\tname : \"Healer\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You are an able physician, allowing you to mend wounds quickly and get your allies back in the fight. You gain the following benefits:\\n \\u2022 When you use a healer's kit to stabilize a dying creature, that creature also regains 1 hit point.\\n \\u2022 As an action, you can spend one use of a healer's kit to tend to a creature and restore 1d6+4 hit points to it, plus additional hit points equal to the creature's maximum number of Hit Dice. The creature can't regain hit points from this feat again until it finishes a short or long rest.\",\r\n\tdescription : \"Using a healer's kit to stabilize someone gives them 1 hit point as well. As an action, I can spend one use of a healer's kit to restore 1d6 + 4 + (creature's HD) hit points. After that, the creature can't gain hit points from this feat again until it finishes a short rest.\",\r\n\taction : [[\"action\", \" (1d6+4+HD with healing kit)\"]]\r\n};\r\nFeatsList[\"heavily armored\"] = {\r\n\tname : \"Heavily Armored\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have trained to master the use of heavy armor, gaining the following benefits:\\n \\u2022 Increase your Strength score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with heavy armor.\",\r\n\tdescription : \"I gain proficiency with heavy armor. [+1 Strength]\",\r\n\tprerequisite : \"Proficiency with medium armor\",\r\n\tprereqeval : function(v) { return v.mediumArmorProf; },\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\tarmorProfs : [false, false, true, false]\r\n};\r\nFeatsList[\"heavy armor master\"] = {\r\n\tname : \"Heavy Armor Master\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You can use your armor to deflect strikes that would kill others. You gain the following benefits:\\n \\u2022 While you are wearing heavy armor, bludgeoning, piercing, and slashing damage that you take from nonmagical weapons is reduced by 3.\",\r\n\tdescription : \"While wearing heavy armor, bludgeoning, piercing, and slashing damage taken from nonmagical weapons is reduced by 3. [+1 Strength]\",\r\n\tprerequisite : \"Proficiency with heavy armor\",\r\n\tprereqeval : function(v) { return v.heavyArmorProf; },\r\n\tscores : [1, 0, 0, 0, 0, 0]\r\n};\r\nFeatsList[\"inspiring leader\"] = {\r\n\tname : \"Inspiring Leader\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You can spend 10 minutes inspiring your companions, shoring up their resolve to fight. When you do so, choose up to six friendly creatures (which can include yourself) within 30 feet of you who can see or hear you and who can understand you. Each creature can gain temporary hit points equal to your level + your Charisma modifier. A creature can't gain temporary hit points from this feat again until it has finished a short or long rest.\",\r\n\tcalculate : \"event.value = 'I can spend 10 minutes inspiring up to 6 friendly creatures within 30 feet who can see or hear and can understand me. Each gains lvl (' + What('Character Level') + ') + Cha mod (' + What('Cha Mod') + \\\") temporary hit points. One can't gain temporary hit points from this feat again until after a short rest.\\\";\",\r\n\tprerequisite : \"Charisma 13 or higher\",\r\n\tprereqeval : function(v) { return What('Cha') >= 13; }\r\n};\r\nFeatsList[\"keen mind\"] = {\r\n\tname : \"Keen Mind\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have a mind that can track time, direction, and detail with uncanny precision. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You always know which way is north.\\n \\u2022 You always know the number of hours left before the next sunrise or sunset.\\n \\u2022 You can accurately recall anything you have seen or heard within the past month.\",\r\n\tdescription : \"I always know which way is north and the number of hours left before the next sunrise or sunset. I can accurately recall anything I have seen or heard within the past month. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0]\r\n};\r\nFeatsList[\"lightly armored\"] = {\r\n\tname : \"Lightly Armored\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have trained to master the use of light armor, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with light armor.\",\r\n\tdescription : \"I gain proficiency with light armor. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tarmorProfs : [true, false, false, false]\r\n};\r\nFeatsList[\"linguist\"] = {\r\n\tname : \"Linguist\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have studied languages and codes, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn three languages of your choice.\\n \\u2022 You can ably create written ciphers. Others can't decipher a code you create unless you teach them, they succeed on an Intelligence check (DC equal to your Intelligence score + your proficiency bonus), or they use magic to decipher it.\",\r\n\tcalculate : \"event.value = \\\"I can ably create written ciphers that others can't decipher unless I teach them, they succeed on an Intelligence check DC \\\" + (Number(What('Int')) + Number(How('Proficiency Bonus'))) + ' (Intelligence score + proficiency bonus), or they use magic to decipher it. I learn three languages of my choice. [+1 Intelligence]';\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tlanguageProfs : [3]\r\n};\r\nFeatsList[\"lucky\"] = {\r\n\tname : \"Lucky\",\r\n\tsource : [[\"P\", 167]],\r\n\tdescriptionFull : \"You have inexplicable luck that seems to kick in at just the right moment.\\n   You have 3 luck points. Whenever you make an attack roll, an ability check, or a saving throw, you can spend one luck point to roll an additional d20. You can choose to spend one of your luck points after you roll the die, but before the outcome is determined. You choose which of the d20s is used for the attack roll, ability check, or saving throw.\\n   You can also spend one luck point when an attack roll is made against you. Roll a d20, and then choose whether the attack uses the attacker's roll or yours. If more than one creature spends a luck point to influence the outcome of a roll, the points cancel each other out; no additional dice are rolled.\\n   You regain your expended luck points when you finish a long rest.\",\r\n\tdescription : \"Use one of three luck points to roll an extra d20 for attacking, being attacked, an ability check, or a saving throw before the outcome is determined. If more than one creature uses luck, no extra dice are rolled. I regain expended luck points when I finish a long rest.\",\r\n\tusages : 3,\r\n\trecovery : \"long rest\",\r\n\tadditional : \"attack/check/save\"\r\n};\r\nFeatsList[\"mage slayer\"] = {\r\n\tname : \"Mage Slayer\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have practiced techniques useful in melee combat against spellcasters, gaining the following benefits:\\n \\u2022 When a creature within 5 feet of you casts a spell, you can use your reaction to make a melee weapon attack against that creature.\\n \\u2022 When you damage a creature that is concentrating on a spell, that creature has disadvantage on the saving throw it makes to maintain its concentration.\\n \\u2022 You have advantage on saving throws against spells cast by creatures within 5 feet of you.\",\r\n\tdescription : \"As a reaction, I can make a melee weapon attack on a creature within 5 ft of me that casts a spell. Concentration checks from damage from me are made with disadvantage. I have advantage on saving throws against spells cast by creatures within 5 feet of me.\",\r\n\tsavetxt : { adv_vs : [\"spells cast within 5 ft\"] },\r\n\taction : [[\"reaction\", \"Melee weapon attack (if spell cast in 5 ft)\"]]\r\n};\r\nFeatsList[\"magic initiate\"] = {\r\n\tname : \"Magic Initiate\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Choose a class: bard, cleric, druid, sorcerer, warlock, or wizard. You learn two cantrips of your choice from that class's spell list.\\n   In addition, choose one 1st-level spell to learn from that same list. Using this feat, you can cast the spell once at its lowest level, and you must finish a long rest before you can cast it in this way again.\\n   Your spellcasting ability for these spells depends on the class you chose: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid: or Intelligence for wizard.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I learn two cantrips and one 1st-level spell of my choice from that class' spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot.\",\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spName.indexOf(\"magic initiate\") === 0 && spellObj.level > 0) {\r\n\t\t\t\t\t// test if levels in same class\r\n\t\t\t\t\tvar casterClass = spName.replace(/magic initiate[_-]*/i, '');\r\n\t\t\t\t\tif (classes.known[casterClass]) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"oncelr+markedbox\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the bard's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a bard, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Bard cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Bard 1st-level spell\",\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the cleric's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a cleric, I can also cast the 1st-level spell by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Cleric 1st-level spell\",\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the druid's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a druid, I can also cast the 1st-level spell by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Druid cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Druid 1st-level spell\",\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the sorcerer's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a sorcerer, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Sorcerer cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the warlock's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a warlock, I can also cast the 1st-level spell by expending a spell slot as normal. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Warlock cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Warlock 1st-level spell\",\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"I learn two cantrips and one 1st-level spell of my choice from the wizard's spell list. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. If I'm a wizard, I can also cast the 1st-level spell by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard cantrip\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"Wizard 1st-level spell\",\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"martial adept\"] = {\r\n\tname : \"Martial Adept\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have martial training that allows you to perform special combat maneuvers. You gain the following benefits:\\n \\u2022 You learn two maneuvers of your choice from among those available to the Battle Master archetype in the fighter class. If a maneuver you use requires your target to make a saving throw to resist the maneuver's effects, the saving throw DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice).\\n \\u2022 You gain one superiority die, which is a d6 (this die is added to any superiority dice you have from another source). This die is used to fuel your maneuvers. A superiority die is expended when you use it. You regain your expended superiority dice when you finish a short or long rest.\",\r\n\tdescription : \"\",\r\n\tcalculate : \"event.value = 'I learn two maneuvers of my choice from those available to the Battle Master (2nd page \\\"Choose Feature\\\" button). The saving throw DC for this is ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Dex Mod')))) + ' (8 + proficiency bonus + Str/Dex mod). I gain one superiority die (d6), which I regain when I finish a short rest.';\",\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"fighter\",\r\n\t\t\"subclass\" : \"fighter-battle master\",\r\n\t\t\"feature\" : \"subclassfeature3.1\",\r\n\t\t\"bonus\" : 2\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Combat Superiority\",\r\n\t\tusages : 1,\r\n\t\tadditional : 'd6',\r\n\t\trecovery : \"short rest\",\r\n\t\taddToExisting : true\r\n\t}]\r\n};\r\nFeatsList[\"medium armor master\"] = {\r\n\tname : \"Medium Armor Master\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have practiced moving in medium armor to gain the following benefits:\\n \\u2022 Wearing medium armor doesn't impose disadvantage on your Dexterity (Stealth) checks.\\n \\u2022 When you wear medium armor, you can add 3, rather than 2, to your AC if you have a Dexterity of 16 or higher.\",\r\n\tdescription : \"Wearing medium armor doesn't impose disadvantage on my Dexterity (Stealth) checks. When I wear medium armor, I can add up to 3, rather than 2, to my AC if my Dexterity is 16 or higher.\",\r\n\tprerequisite : \"Proficiency with medium armor\",\r\n\tprereqeval : function(v) { return v.mediumArmorProf; },\r\n\teval : function () {\r\n\t\tValue('Medium Armor Max Mod', 3);\r\n\t\tApplyArmor(What(\"AC Armor Description\"));\r\n\t},\r\n\tremoveeval : function () {\r\n\t\ttDoc.resetForm(['Medium Armor Max Mod']);\r\n\t\tApplyArmor(What(\"AC Armor Description\"));\r\n\t}\r\n};\r\nFeatsList[\"mobile\"] = {\r\n\tname : \"Mobile\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You are exceptionally speedy and agile. You gain the following benefits:\\n \\u2022 Your speed increases by 10 feet.\\n \\u2022 When you use the Dash action, difficult terrain doesn't cost you extra movement on that turn.\\n \\u2022 When you make a melee attack against a creature, you don't provoke opportunity attacks from that creature for the rest of the turn, whether you hit or not.\",\r\n\tdescription : \"When I use the Dash action, difficult terrain doesn't cost me extra movement that turn. When I make a melee attack against a creature, I don't provoke opportunity attacks from that creature for the rest of the turn, whether I hit or not. [+10 ft speed]\",\r\n\tspeed : { allModes : { bonus : \"+10\" } }\r\n};\r\nFeatsList[\"moderately armored\"] = {\r\n\tname : \"Moderately Armored\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You have trained to master the use of medium armor and shields, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with medium armor and shields.\",\r\n\tdescription : \"I gain proficiency with medium armor and shields. [+1 Strength or Dexterity]\",\r\n\tprerequisite : \"Proficiency with light armor\",\r\n\tprereqeval : function(v) { return v.lightArmorProf; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tarmorProfs : [false, true, false, true]\r\n};\r\nFeatsList[\"mounted combatant\"] = {\r\n\tname : \"Mounted Combatant\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You are a dangerous foe to face while mounted. While you are mounted and aren't incapacitated, you gain the following benefits:\\n \\u2022 You have advantage on melee attack rolls against any unmounted creature that is smaller than your mount.\\n \\u2022 You can force an attack targeted at your mount to target you instead.\\n \\u2022 If your mount is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\",\r\n\tdescription : \"I have advantage on melee attack rolls against unmounted creatures smaller than my mount. I can force attacks targeting my mount to target me instead. When a Dex save would halve damage, my mount takes no damage on success and half damage on failure.\"\r\n};\r\nFeatsList[\"observant\"] = {\r\n\tname : \"Observant\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Quick to notice details of your environment, you gain the following benefits:\\n \\u2022 Increase your Intelligence or Wisdom score by 1, to a maximum of 20.\\n \\u2022 If you can see a creature's mouth while it is speaking a language you understand, you can interpret what it's saying by reading its lips.\\n \\u2022 You have a +5 bonus to your passive Wisdom (Perception) and passive Intelligence (Investigation) scores.\",\r\n\tdescription : \"If I can see a creature's mouth while it is speaking a language I understand, I can interpret what it's saying by reading its lips. I have a +5 bonus to passive Wisdom (Perception) and passive Intelligence (Investigation) scores. [+1 Intelligence or Wisdom]\",\r\n\tscorestxt : \"+1 Intelligence or Wisdom\",\r\n\taddMod : { type : \"skill\", field : \"passive perception\", mod : 5, text : \"I have a +5 bonus to passive Wisdom (Perception).\" }\r\n};\r\nFeatsList[\"polearm master\"] = {\r\n\tname : \"Polearm Master\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"You can keep your enemies at bay with reach weapons. You gain the following benefits:\\n \\u2022 When you take the Attack action and attack with only a glaive, halberd, quarterstaff, or spear, you can use a bonus action to make a melee attack with the opposite end of the weapon; this attack uses the same ability modifier as the primary attack. The weapon's damage die for this attack is a d4, and the attack deals bludgeoning damage.\\n \\u2022 While you are wielding a glaive, halberd, pike, quarterstaff, or spear, other creatures provoke an opportunity attack from you when they enter your reach.\",\r\n\tdescription : \"As a bonus action when I do the Attack action with a glaive/\" + (typePF ? \" \" : \"\") + \"halberd/quarterstaff/spear, I can make a 1d4 bludgeoning attack with its butt end.\" + (typePF ? \"\\n\" : \" \") + \"While wielding a glaive/halberd/\" + (typePF ? \"\" : \" \") + \"pike/quarterstaff/spear, I get an opportunity attack when a creature enters my reach.\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*(polearm|(glaive|guandao|bisento|naginata)|(halberd|\\bji\\b|kamayari)|(quarterstaff|\\bstaff\\b|\\bbo\\b)|(spear|qiang|\\byaris?\\b)))(?=.*butt)(?=.*end).*$/i,\r\n\t\tname : \"Polearm Butt End\",\r\n\t\tsource : [[\"P\", 168]],\r\n\t\tability : 1,\r\n\t\ttype : \"polearm butt end\",\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"As bonus action after Attack action with only a glaive, halberd, spear, or quarterstaff\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : ['bonus action', 'Butt End Attack (after attack with polearm)'],\r\n\tweaponProfs : [false, false, [\"polearm butt end\"]]\r\n};\r\nFeatsList[\"resilient\"] = {\r\n\tname : \"Resilient\",\r\n\tsource : [[\"P\", 168]],\r\n\tdescriptionFull : \"Choose one ability score. You gain the following benefits:\\n \\u2022 Increase the chosen ability score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in saving throws using the chosen ability.\",\r\n\tdescription : \"Select an ability score using the square button on this feat line. I gain proficiency with the saving throw of that ability score and a +1 added to it.\",\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"strength\" : {\r\n\t\tdescription : \"I gain proficiency with Strength saving throws. [+1 Strength]\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tsaves : [\"Str\"]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tdescription : \"I gain proficiency with Dexterity saving throws. [+1 Dexterity]\",\r\n\t\tscores : [0, 1, 0, 0, 0, 0],\r\n\t\tsaves : [\"Dex\"]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tdescription : \"I gain proficiency with Constitution saving throws. [+1 Constitution]\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tsaves : [\"Con\"]\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I gain proficiency with Intelligence saving throws. [+1 Intelligence]\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0],\r\n\t\tsaves : [\"Int\"]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I gain proficiency with Wisdom saving throws. [+1 Wisdom]\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tsaves : [\"Wis\"]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I gain proficiency with Charisma saving throws. [+1 Charisma]\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1],\r\n\t\tsaves : [\"Cha\"]\r\n\t}\r\n};\r\nFeatsList[\"ritual caster\"] = {\r\n\tname : \"Ritual Caster\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"You have learned a number of spells that you can cast as rituals. These spells are written in a ritual book, which you must have in hand while casting one of them.\\n   When you choose this feat, you acquire a ritual book holding two 1st-level spells of your choice. Choose one of the following classes: bard, cleric, druid, sorcerer, warlock, or wizard. You must choose your spells from that class's spell list, and the spells you choose must have the ritual tag. The class you choose also determines your spellcasting ability for these spells: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid; or Intelligence for wizard.\\n   If you come across a spell in written form, such as a magical spell scroll or a wizard's spellbook, you might be able to add it to your ritual book. The spell must be on the spell list for the class you chose, the spell's level can be no higher than half your level (rounded up), and it must have the ritual tag. The process of copying the spell into your ritual book takes 2 hours per level of the spell, and costs 50 gp per level. The cost represents material components you expend as you experiment with the spell to master it, as well as the fine inks you need to record it.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I gain a book with two 1st-level ritual spells from that class' spell list. I can transcribe more ritual spells into this book and cast them as rituals only.\",\r\n\tprerequisite : \"Intelligence or Wisdom 13 or higher\",\r\n\tprereqeval : function(v) { return What('Int') >= 13 || What('Wis') >= 13; },\r\n\tcommoneval : function(chc, spellAbility) {\r\n\t\tif (!chc) return;\r\n\t\tCurrentSpells['ritual caster ' + chc] = {\r\n\t\t\tname : 'Ritual Book [' + chc.capitalize() + ']',\r\n\t\t\tability : spellAbility,\r\n\t\t\tlist : {\"class\" : chc, ritual : true},\r\n\t\t\tknown : {spells : 'book'},\r\n\t\t\trefType : \"feat\"\r\n\t\t};\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tcommonremoveeval : function(chc) {\r\n\t\tif (!chc) return;\r\n\t\tdelete CurrentSpells['ritual caster ' + chc];\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (!spellObj.ritualCasterFeatChange && spName.indexOf(\"ritual caster \") !== -1) {\r\n\t\t\t\t\tspellObj.ritualCasterFeatChange = true;\r\n\t\t\t\t\tspellObj.firstCol = SpellRitualTag;\r\n\t\t\t\t\tif (!(/.*(\\d+ ?h\\b|special|see b).*/i).test(spellObj.time)) {\r\n\t\t\t\t\t\tvar numMinutes = Number(spellObj.time.replace(/(\\d+) ?min.*/, \"$1\"));\r\n\t\t\t\t\t\tif (isNaN(numMinutes)) numMinutes = 0;\r\n\t\t\t\t\t\tspellObj.time = (numMinutes + 10) + \" min\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"By the Ritual Caster feat, I can cast ritual spells from my Ritual Book. Casting a spell as a ritual means adding 10 minutes to its casting time.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual bard spells.\\nI can copy ritual bard spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual cleric spells.\\nI can copy ritual cleric spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Wisdom is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 5); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual druid spells.\\nI can copy ritual druid spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Wisdom is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 5); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual sorcerer spells.\\nI can copy ritual sorcerer spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual warlock spells.\\nI can copy ritual warlock spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Charisma is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 6); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"I can cast spells in my ritual book as rituals only. I gain two 1st-level ritual wizard spells.\\nI can copy ritual wizard spells that I find into my book if they are not more than half my level (2 hours and 50 gp per spell level). Intelligence is my spellcasting ability for these.\",\r\n\t\teval : function(lvl, chc) { FeatsList[\"ritual caster\"].commoneval(chc[1], 4); },\r\n\t\tremoveeval : function(lvl, chc) { FeatsList[\"ritual caster\"].commonremoveeval(chc[0]); }\r\n\t}\r\n};\r\nFeatsList[\"savage attacker\"] = {\r\n\tname : \"Savage Attacker\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"Once per turn when you roll damage for a melee weapon attack, you can reroll the weapon's damage dice and use either total.\",\r\n\tdescription : \"Once per turn, when I roll damage for a melee weapon attack, I can reroll the weapon's damage dice and use either total.\"\r\n};\r\nFeatsList[\"sentinel\"] = {\r\n\tname : \"Sentinel\",\r\n\tsource : [[\"P\", 169]],\r\n\tdescriptionFull : \"You have mastered techniques to take advantage of every drop in any enemy's guard, gaining the following benefits:\\n \\u2022 When you hit a creature with an opportunity attack, the creature's speed becomes 0 for the rest of the turn.\\n \\u2022 Creatures provoke opportunity attacks from you even if they take the Disengage action before leaving your reach.\\n \\u2022 When a creature within 5 feet of you makes an attack against a target other than you (and that target doesn't have this feat), you can use your reaction to make a melee weapon attack against the attacking creature.\",\r\n\tdescription : \"Creatures I hit with opportunity attacks have 0 speed for this turn. The Disengage action doesn't work on me. When a creature within 5 ft makes an attack against a target other than me, I can use my reaction to make a melee weapon attack against the attacker.\",\r\n\taction : [[\"reaction\", \" (after attack on ally)\"]]\r\n};\r\nFeatsList[\"sharpshooter\"] = {\r\n\tname : \"Sharpshooter\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have mastered ranged weapons and can make shots that others find impossible. You gain the following benefits:\\n \\u2022 Attacking at long range doesn't impose disadvantage on your ranged weapon attack rolls.\\n \\u2022 Your ranged weapon attacks ignore half cover and three-quarters cover.\\n \\u2022 Before you make an attack with a ranged weapon that you are proficient with, you can choose to take a -5 penalty to the attack roll. If the attack hits, you add +10 to the attack's damage.\",\r\n\tdescription : \"My ranged weapon attacks don't have disadvantage on long range and ignore half cover and three-quarters cover. With a ranged weapon that I am proficient with, I can choose to take a -5 penalty on the attack roll for +10 on the attack's damage.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isRangedWeapon || v.isThrownWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"No disadv. at long range; Ignore \\u00BD and \\u00BE cover\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My ranged weapon attacks suffer no disadvantage for long range and ignore half cover and three-quarters cover. This includes thrown weapons.\\n \\u2022 If I include the words 'Power Attack', 'Sharpshooter', or 'Sharpshot' in the name or description of a ranged weapon that I'm proficient with, the calculation will put a -5 penalty on the attack's To Hit and a +10 bonus to its Damage. This does not work with thrown weapons.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isRangedWeapon && fields.Proficiency && /power.{0,3}attack|sharp.{0,3}shoo?t/i.test(v.WeaponText)) {\r\n\t\t\t\t\toutput.extraDmg += 10;\r\n\t\t\t\t\toutput.extraHit -= 5;\r\n\t\t\t\t};\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"shield master\"] = {\r\n\tname : \"Shield Master\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You use shields not just for protection but also for offense. You gain the following benefits while you are wielding a shield:\\n \\u2022 If you take the Attack action on your turn, you can use a bonus action to try to shove a creature within 5 feet of you with your shield.\\n \\u2022 If you aren't incapacitated, you can add your shield's AC bonus to any Dexterity saving throw you make against a spell or other harmful effect that targets only you.\\n \\u2022 If you are subjected to an effect that allows you to make a Dexterity saving throw to take only half damage, you can use your reaction to take no damage if you succeed on the saving throw, interposing your shield between yourself and the source of the effect.\",\r\n\tdescription : \"As a bonus action, when I use the Attack action, I can shove someone within 5 ft with my shield. I add my shield's AC bonus to Dex saves vs. effects targeting only me. As a reaction, if I succeed on a Dex save for half damage, I can interpose my shield to avoid the damage.\",\r\n\taction : [['bonus action', 'Shove with shield (with Attack action)'], ['reaction', 'Interpose shield (if Dex save half dmg)']]\r\n};\r\nFeatsList[\"skilled\"] = {\r\n\tname : \"Skilled\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You gain proficiency in any combination of three skills or tools of your choice.\",\r\n\tdescription : \"I gain proficiency with any combination of three skills or tools of my choice.\",\r\n\tskillstxt : \"Choose three skills or tools\"\r\n};\r\nFeatsList[\"skulker\"] = {\r\n\tname : \"Skulker\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You are expert at slinking through shadows. You gain the following benefits:\\n \\u2022 You can try to hide when you are lightly obscured from the creature from which you are hiding.\\n \\u2022 When you are hidden from a creature and miss it with a ranged weapon attack, making the attack doesn't reveal your position.\\n \\u2022 Dim light doesn't impose disadvantage on your Wisdom (Perception) checks relying on sight.\",\r\n\tdescription : \"I can try to hide when I am lightly obscured. My position is not revealed when I am hidden from a creature and miss it with a ranged weapon attack. Dim light doesn't impose disadvantage on my Wisdom (Perception) checks relying on sight.\",\r\n\tprerequisite : \"Dexterity 13 or higher\",\r\n\tprereqeval : function(v) { return What('Dex') >= 13; },\r\n\tvision : [[\"No disadv. on Perception in dim light\", 0]]\r\n};\r\nFeatsList[\"spell sniper\"] = {\r\n\tname : \"Spell Sniper\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have learned techniques to enhance your attacks with certain kinds of spells, gaining the following benefits:\\n \\u2022 When you cast a spell that requires you to make an attack roll, the spell's range is doubled.\\n \\u2022 Your ranged spell attacks ignore half cover and three-quarters cover.\\n \\u2022 You learn one cantrip that requires an attack roll. Choose the cantrip from the bard, cleric, druid, sorcerer, warlock, or wizard spell list. Your spellcasting ability for this cantrip depends on the spell list you chose from: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid; or Intelligence for wizard.\",\r\n\tdescription : \"Select a spellcasting class using the square button on this feat line. I learn one cantrip requiring an attack roll from the spell list of the chosen class. Any spell I cast requiring an attack roll has its range doubled and ignores half and 3/4 cover.\",\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.spellSniper && !v.isDC && v.isSpell && (/\\d+ ?(f.{0,2}t|m)/i).test(fields.Range)) {\r\n\t\t\t\t\tv.spellSniper = true;\r\n\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\tvar notNmbrs = fields.Range.split(RegExp(rangeNmbr.join('|')));\r\n\t\t\t\t\tfields.Range = '';\r\n\t\t\t\t\trangeNmbr.forEach(function (dR, idx) {\r\n\t\t\t\t\t\tfields.Range += (notNmbrs[idx] ? notNmbrs[idx] : '') + (parseFloat(dR.toString().replace(',', '.') * 2));\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (notNmbrs.length > rangeNmbr.length) {\r\n\t\t\t\t\t\tfields.Range += notNmbrs[notNmbrs.length - 1];\r\n\t\t\t\t\t};\r\n\t\t\t\t\tif (!v.rangeM) {\r\n\t\t\t\t\t\tv.rangeM = 2;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tv.rangeM *= 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My spells and cantrips that require an attack roll have their range doubled.\",\r\n\t\t\t700\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ( !spellObj.spellSniper && !spellObj.psionic && (/spell attack/i).test(spellObj.description + spellObj.descriptionFull) && (/^(?!.*(S:|rad|touch|self|cone|cube)).*\\d+([.,]\\d+)?[\\- ]?(f.{0,2}t|m).*$/i).test(spellObj.range) ) {\r\n\t\t\t\t\tspellObj.spellSniper = true;\r\n\t\t\t\t\tvar rangeNmbr = spellObj.range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\tvar notNmbrs = spellObj.range.split(RegExp(rangeNmbr.join('|')));\r\n\t\t\t\t\tspellObj.range = '';\r\n\t\t\t\t\trangeNmbr.forEach(function (dR, idx) {\r\n\t\t\t\t\t\tspellObj.range += (notNmbrs[idx] ? notNmbrs[idx] : '') + (parseFloat(dR.toString().replace(',', '.') * 2));\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (notNmbrs.length > rangeNmbr.length) {\r\n\t\t\t\t\t\tspellObj.range += notNmbrs[notNmbrs.length - 1];\r\n\t\t\t\t\t};\r\n\t\t\t\t\tif (!spellObj.rangeM) {\r\n\t\t\t\t\t\tspellObj.rangeM = 2;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.rangeM *= 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My spells and cantrips that require an attack roll have their range doubled.\",\r\n\t\t\t700\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Bard\", \"Cleric\", \"Druid\", \"Sorcerer\", \"Warlock\", \"Wizard\"],\r\n\t\"bard\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one bard cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'bard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"cleric\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one cleric cantrip that requires an attack roll. Wisdom is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'cleric',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"druid\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one druid cantrip that requires an attack roll. Wisdom is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\t'class' : 'druid',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"sorcerer\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one sorcerer cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"warlock\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one warlock cantrip that requires an attack roll. Charisma is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\t'class' : 'warlock',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t},\r\n\t\"wizard\" : {\r\n\t\tdescription : \"Any spell that I cast that requires an attack roll has its range doubled. My ranged spell attacks ignore half cover and three-quarters cover. I learn one wizard cantrip that requires an attack roll. Intelligence is my spellcasting ability for this.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Spell Attack Cantrip\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\t'class' : 'wizard',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tattackOnly : true,\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"tavern brawler\"] = {\r\n\tname : \"Tavern Brawler\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"Accustomed to rough-and-tumble fighting using whatever weapons happen to be at hand, you gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 You are proficient with improvised weapons.\\n \\u2022 Your unarmed strike uses a d4 for damage.\\n \\u2022 When you hit a creature with an unarmed strike or an improvised weapon on your turn, you can use a bonus action to attempt to grapple the target.\",\r\n\tdescription : \"I am proficient with improvised weapons. My unarmed strike does 1d4 damage. When I hit a creature with an unarmed strike or improvised weapon on my turn, I can attempt to grapple the target as a bonus action. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : ['bonus action', 'Grapple (on hit with unarmed/improv.)'],\r\n\tweaponProfs : [false, false, [\"Improvised weapons\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" || v.baseWeaponName == \"improvised weapon\" || /improvised/i.test(v.WeaponName + v.baseWeaponName) || /improvised weapon/i.test(v.theWea.type)) {\r\n\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\tif (v.isMeleeWeapon) fields.Description += (fields.Description ? '; ' : '') + 'After hit, can attempt to grapple as a bonus action';\r\n\t\t\t\t};\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && fields.Damage_Die == 1) {\r\n\t\t\t\t\tfields.Damage_Die = '1d4';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d4 damage instead of 1.\\n \\u2022 After hitting a creature with an unarmed strike or improvised weapon in melee, I can attempt to start a grapple as a bonus action.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"tough\"] = {\r\n\tname : \"Tough\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"Your hit point maximum increases by an amount equal to twice your level when you gain this feat. Whenever you gain a level thereafter, your hit point maximum increases by an additional 2 hit points.\",\r\n\tdescription : \"My hit point maximum increases by an amount equal to twice my character level.\",\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) {\r\n\t\t\treturn [totalHD * 2, '\\n + ' + totalHD + ' \\xD7 2 from the Tough feat (' + (totalHD * 2) + ')', true];\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"war caster\"] = {\r\n\tname : \"War Caster\",\r\n\tsource : [[\"P\", 170]],\r\n\tprerequisite : \"The ability to cast at least one spell\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescriptionFull : \"You have practiced casting spells in the midst of combat, learning techniques that grant you the following benefits:\\n \\u2022 You have advantage on Constitution saving throws that you make to maintain your concentration on a spell when you take damage.\\n \\u2022 You can perform the somatic components of spells even when you have weapons or a shield in one or both hands.\\n \\u2022 When a hostile creature's movement provokes an opportunity attack from you, you can use your reaction to cast a spell at the creature, rather than making an opportunity attack. The spell must have a casting time of 1 action and must target only that creature.\",\r\n\tdescription : \"Advantage on Con saves to maintain concentration on spells when damaged. Perform somatic components even when holding weapons or shield in one or both hands. Cast spell of 1 action casting time that targets only one creature instead of an opportunity attack.\",\r\n\taction : [[\"reaction\", \" - Opportunity Spell\"]],\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves when damaged\" }\r\n};\r\nFeatsList[\"weapon master\"] = {\r\n\tname : \"Weapon Master\",\r\n\tsource : [[\"P\", 170]],\r\n\tdescriptionFull : \"You have practiced extensively with a variety of weapons, gaining the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with four simple or martial weapons of your choice.\",\r\n\tdescription : \"I gain proficiency with four simple or martial weapons of my choice.\\n[+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\n\r\n// Add attack entry that is not in the SRD\r\nWeaponsList[\"thorn whip\"] = {\r\n\tregExpSearch : /^(?=.*thorn)(?=.*whip).*$/i,\r\n\tname : \"Thorn Whip\",\r\n\tsource : [[\"P\", 282]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"piercing\"],\r\n\trange : \"Melee, 30 ft\",\r\n\tdescription : \"Melee spell attack, pull target up to 10 ft closer\",\r\n\tabilitytodamage : false\r\n};\r\n\r\n// Add spells that are not in the SRD\r\nSpellsList[\"arcane gate\"] = {\r\n\tname : \"Arcane Gate\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 214]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"500 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Two portals, up to 500 ft apart, teleport any to other side; portals are filled with opaque mist\",\r\n\tdescriptionFull : \"You create linked teleportation portals that remain open for the duration. Choose two points on the ground that you can see, one point within 10 feet of you and one point within 500 feet of you. A circular portal, 10 feet in diameter, opens over each point. If the portal would open in the space occupied by a creature, the spell fails, and the casting is lost.\" + \"\\n   \" + \"The portals are two-dimensional glowing rings filled with mist, hovering inches from the ground and perpendicular to it at the points you choose. A ring is visible only from one side (your choice), which is the side that functions as a portal.\" + \"\\n   \" + \"Any creature or object entering the portal exits from the other portal as if the two were adjacent to each other, passing through a portal from the non-portal side has no effect. The mist that fills each portal is opaque and blocks vision through it. On your turn, you can rotate the rings as a bonus action so that the active side faces in a different direction.\"\r\n};\r\nSpellsList[\"armor of agathys\"] = {\r\n\tname : \"Armor of Agathys\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 215]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A cup of water\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"5+5/SL temp HP; as long as temp HP last any crea that hits in melee takes 5+5/SL Cold dmg\",\r\n\tdescriptionFull : \"A protective magical force surrounds you, manifesting as a spectral frost that covers you and your gear. You gain 5 temporary hit points for the duration. If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, both the temporary hit points and the cold damage increase by 5 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"arms of hadar\"] = {\r\n\tname : \"Arms of Hadar\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 215]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"2d6+1d6/SL Necrotic dmg; save halves; on failed save no reactions until next turn\",\r\n\tdescriptionFull : \"You invoke the power of Hadar, the Dark Hunger. Tendrils of dark energy erupt from you and batter all creatures within 10 feet of you. Each creature in that area must make a Strength saving throw. On a failed save, a target takes 2d6 necrotic damage and can't take reactions until its next turn. On a successful save, the creature takes half damage, but suffers no other effect.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"aura of life\"] = {\r\n\tname : \"Aura of Life\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 4,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Me + any crea while in area Necrotic dmg resist.; at turn start, 0 HP living in area heal 1 HP\",\r\n\tdescriptionFull : \"Life-preserving energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. Each non-hostile creature in the aura (including you) has resistance to necrotic damage, and its hit point maximum can't be reduced. In addition, a non-hostile, living creature regains 1 hit point when it starts its turn in the aura with 0 hit points.\"\r\n};\r\nSpellsList[\"aura of purity\"] = {\r\n\tname : \"Aura of Purity\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 4,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Me + any crea while in area Poison dmg resist., immune to disease, adv. on saves vs. conditions\",\r\n\tdescriptionFull : \"Purifying energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. Each non-hostile creature in the aura (including you) can't become diseased, has resistance to poison damage, and has advantage on saving throws against effects that cause any of the following conditions - blinded, charmed, deafened, frightened, paralyzed, poisoned, and stunned.\"\r\n};\r\nSpellsList[\"aura of vitality\"] = {\r\n\tname : \"Aura of Vitality\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"As a bonus action for the duration, I can heal 2d6 HP to 1 creature in range (can be me)\",\r\n\tdescriptionFull : \"Healing energy radiates from you in an aura with a 30-foot radius. Until the spell ends, the aura moves with you, centered on you. You can use a bonus action to cause one creature in the aura (including you) to regain 2d6 hit points.\"\r\n};\r\nSpellsList[\"banishing smite\"] = {\r\n\tname : \"Banishing Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 216]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Next weapon hit +5d10 Force dmg; if this brings target HP<50, I banish it until spell ends\",\r\n\tdescriptionFull : \"The next time you hit a creature with a weapon attack before this spell ends, your weapon crackles with force, and the attack deals an extra 5d10 force damage to the target. Additionally, if this attack reduces the target to 50 hit points of fewer, you banish it. If the target is native to a different plane of existence than the one you're on, the target disappears, returning to its home plane. If the target is native to the plane you're on, the creature vanishes into a harmless demiplane. While there, the target is incapacitated. It remains there until the spell ends, at which point the tart reappears in the space it left or in the nearest unoccupied space if that space is occupied.\"\r\n};\r\nSpellsList[\"beast sense\"] = {\r\n\tname : \"Beast Sense\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"P\", 217]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Use 1 willing beast's senses; I'm blinded and deafened while doing so\",\r\n\tdescriptionFull : \"You touch a willing beast. For the duration of the spell, you can use your action to see through the beast's eyes and hear what it hears, and continue to do so until you use your action to return to your normal senses. While perceiving through the beast's senses, you gain the benefits of any special senses possessed by that creature, though you are blinded and deafened to your own surroundings.\"\r\n};\r\nSpellsList[\"blade ward\"] = {\r\n\tname : \"Blade Ward\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 218]],\r\n\tlevel : 0,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"Until the end of my next turn, Bludgeoning, Piercing, and Slashing dmg resist. vs. weapons\",\r\n\tdescriptionFull : \"You extend your hand and trace a sigil of warding in the air. Until the end of your next turn, you have resistance against bludgeoning, piercing, and slashing damage dealt by weapon attacks.\"\r\n};\r\nSpellsList[\"blinding smite\"] = {\r\n\tname : \"Blinding Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 219]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Next melee weapon hit +3d8 Radiant dmg; save or blinded; extra save at end of every turn\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during this spell's duration, you weapon flares with a bright light, and the attack deals an extra 3d8 radiant damage to the target. Additionally, the target must succeed on a Constitution saving throw or be blinded until the spell ends.\" + \"\\n   \" + \"A creature blinded by this spell makes another Constitution saving throw at the end of each of its turns. On a successful save, it is no longer blinded.\"\r\n};\r\nSpellsList[\"chromatic orb\"] = {\r\n\tname : \"Chromatic Orb\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 221]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A diamond worth at least 50 gp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell attack for 3d8+1d8/SL Acid, Cold, Fire, Lightning, Poison or Thunder dmg (50gp)\",\r\n\tdescriptionFull : \"You hurl a 4-inch-diameter sphere of energy at a creature that you can see within range. You choose acid, cold, fire, lightning, poison, or thunder for the type of orb you create, and then make a ranged spell attack against the target. If the attack hits, the creature takes 3d8 damage of the type you chose.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"poison\", \"thunder\"],\r\n\t\t\tinDescriptionAs :\"Acid, Cold, Fire, Lightning, Poison or Thunder\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"circle of power\"] = {\r\n\tname : \"Circle of Power\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 221]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Any crea while in area adv. on saves vs. magical effects; if save would half dmg it takes no dmg\",\r\n\tdescriptionFull : \"Divine energy radiates from you, distorting and diffusing magical energy within 30 feet of you. Until the spell ends, the sphere moves with you, centered on you. For the duration, each friendly creature in the area (including you) has advantage on saving throws against spells and other magical effects. Additionally, when an affected creature succeeds on a saving throw made against a spell or magical effect that allows it to make a saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw.\"\r\n};\r\nSpellsList[\"cloud of daggers\"] = {\r\n\tname : \"Cloud of Daggers\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 222]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A sliver of glass\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"5-ft cube 4d4+2d4/SL Slashing dmg to all that enter or start turn in area\",\r\n\tdescriptionFull : \"You fill the air with spinning daggers in a cube 5 feet on each side, centered on a point you choose within range. A creature takes 4d4 slashing damage when it enters the spell's area for the first time on a turn or starts its turn there.\" + AtHigherLevels + \"when you cast this spell using a spell slot of 3rd level or higher, the damage increases by 2d4 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"compelled duel\"] = {\r\n\tname : \"Compelled Duel\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 224]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or dis. on attacks vs. not-me and save if moving more than 30 ft away\",\r\n\tdescriptionFull : \"You attempt to compel a creature into a duel. One creature that you can see within range must make a Wisdom saving throw. On a failed save, the creature is drawn to you, compelled by your divine demand. For the duration, it has disadvantage on attack rolls against creatures other than you, and must make a Wisdom saving throw each time it attempts to move to a space that is more than 30 feet away from you, if it succeeds on this saving throw, this spell doesn't restrict the target's movement for that turn.\" + \"\\n   \" + \"The spell ends if you attack any other creature, if you cast a spell that targets a hostile creature other than the target, if a creature friendly to you damages the target or casts a harmful spell on it, or if you end your turn more than 30 feet away from the target.\"\r\n};\r\nSpellsList[\"conjure barrage\"] = {\r\n\tname : \"Conjure Barrage\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 225]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:60\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"One piece of ammunition or a thrown weapon\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Throw weapon or ammo; copies rain down for 3d8 dmg; dmg type as weapon; save halves\",\r\n\tdescriptionFull : \"You throw a nonmagical weapon or fire a piece of nonmagical ammunition into the air to create a cone of identical weapons that shoot forward and then disappear. Each creature in a 60-foot cone must succeed on a Dexterity saving throw. A creature takes 3d8 damage on a failed save, or half as much damage on a successful one. The damage type is the same as that of the weapon or ammunition used as a component.\"\r\n};\r\nSpellsList[\"conjure volley\"] = {\r\n\tname : \"Conjure Volley\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 226]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"One piece of ammunition or one thrown weapon\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Turn ammo/thrown wea into volley; 40-ft rad 20-ft high 8d8 dmg; dmg type as weapon; save halves\",\r\n\tdescriptionFull : \"You fire a piece of nonmagical ammunition from a ranged weapon or throw a nonmagical weapon into the air and choose a point within range. Hundreds of duplicates of the ammunition or weapon fall in a volley from above and then disappear. Each creature in a 40-foot-radius. 20-foot-high cylinder centered on that point must make a Dexterity saving throw. A creature takes 8d8 damage on a failed save, or half as much damage on a successful one. The damage type is the same as that of the ammunition or weapon.\"\r\n};\r\nSpellsList[\"cordon of arrows\"] = {\r\n\tname : \"Cordon of Arrows\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 228]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Four or more arrows or bolts\",\r\n\tduration : \"8 h\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"4+2/SL arrows/bolts attack first crea in 30 ft one at a time for 1d6 Piercing dmg; save halves\",\r\n\tdescriptionFull : \"You plant four pieces of nonmagical ammunition - arrows or crossbow bolts - in the ground within range and lay magic upon them to protect an area. Until the spell ends, whenever a creature other than you comes within 30 feet of the ammunition for the first time on a turn or ends its turn there, one piece of ammunition flies up to strike it. The creature must succeed on a Dexterity saving throw or take 1d6 piercing damage. The piece of ammunition is then destroyed. The spell ends when no ammunition remains.\" + \"\\n   \" + \"When you cast this spell, you can designate any creatures you choose, and the spell ignores them.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the amount of ammunition that can be affected increases by two for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"crown of madness\"] = {\r\n\tname : \"Crown of Madness\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 229]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 humanoid save or charmed and must melee attack against crea chosen by me; extra save/rnd\",\r\n\tdescriptionFull : \"One humanoid of your choice that you can see within range must succeed on a Wisdom saving throw or become charmed by you for the duration. While the target is charmed in this way, a twisted crown of jagged iron appears on its head, and a madness glows in its eyes.\" + \"\\n   \" + \"The charmed target must use its action before moving on each of its turns to make a melee attack against a creature other than itself that you mentally choose. The target can act normally on its turn if you choose no creature or if none are within its reach.\" + \"\\n   \" + \"On your subsequent turns, you must use your action to maintain control over the target, or the spell ends. Also, the target can make a Wisdom saving throw at the end of each of its turns. On a success, the spell ends.\"\r\n};\r\nSpellsList[\"crusader's mantle\"] = {\r\n\tname : \"Crusader's Mantle\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 230]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me and allies in range deal extra 1d4 Radiant dmg with weapon attacks\",\r\n\tdescriptionFull : \"Holy power radiates from you in an aura with a 30-foot radius, awakening boldness in friendly creatures. Until the spell ends, the aura moves with you, centered on you. While in the aura, each non-hostile creature in the aura (including you) deals an extra 1d4 radiant damage when it hits with a weapon attack.\"\r\n};\r\nSpellsList[\"destructive wave\"] = {\r\n\tname : \"Destructive Wave\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 231]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any crea 5d6 Thunder dmg \\u0026 5d6 Radiant or Necrotic dmg \\u0026 knocked prone; save halves, not prone\",\r\n\tdescriptionShorter : \"Any crea 5d6 Thunder dmg \\u0026 5d6 Radiant or Necrotic dmg \\u0026 prone; save half, not prone\",\r\n\tdescriptionFull : \"You strike the ground, creating a burst of divine energy that ripples outward from you. Each creature you choose within 30 feet of you must succeed on a Constitution saving throw or take 5d6 thunder damage, as well as 5d6 radiant or necrotic damage (your choice), and be knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\r\n\tdynamicDamageBonus : {\r\n\t\tallDmgTypesSingleMoment : true,\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"radiant\", \"necrotic\"],\r\n\t\t\tinDescriptionAs : \"Radiant or Necrotic\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"dissonant whispers\"] = {\r\n\tname : \"Dissonant Whispers\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"P\", 234]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea 3d6+1d6/SL Psychic dmg and flee; save halves and no fleeing; deaf crea are immune\",\r\n\tdescriptionFull : \"You whisper a discordant melody that only one creature of your choice within range can hear, wracking it with terrible pain. The target must make a Wisdom saving throw. On a failed save, it takes 3d6 psychic damage and must immediately use its reaction, if available, to move as far as its speed allows away from you. The creature doesn't move into obviously dangerous ground, such as a fire or a pit. On a successful save, the target takes half as much damage and doesn't have to move away. A deafened creature automatically succeeds on the save.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"elemental weapon\"] = {\r\n\tname : \"Elemental Weapon\",\r\n\tclasses : [\"artificer\", \"paladin\"],\r\n\tsource : [[\"P\", 237]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"+1 magical weapon; +1d4 Acid, Cold, Fire, Lightning, or Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\r\n\tdescriptionShorter : \"+1 wea; +1d4 Acid/Cold/Fire/Lightning/Thunder dmg; SL5: +2/+2d4, SL7: +3/+3d4\",\r\n\tdescriptionFull : \"A nonmagical weapon you touch becomes a magic weapon. Choose one of the following damage types - acid, cold, fire, lightning, or thunder. For the duration, the weapon has a +1 bonus to attack rolls and deals an extra 1d4 damage of the chosen type when it hits.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th or 6th level, the bonus to attack rolls increases to +2 and the extra damage increases to 2d4. When you use a spell slot of 7th level or higher, the bonus increases to +3 and the extra damage increases to 3d4.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\t\tinDescriptionAs : \"Acid, Cold, Fire, Lightning, or Thunder|Acid/Cold/Fire/Lightning/Thunder\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"ensnaring strike\"] = {\r\n\tname : \"Ensnaring Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 237]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Next crea hit save (Large adv.) or restrained, 1d6+1d6/SL Piercing dmg/rnd; Str check to escape\",\r\n\tdescriptionShorter : \"Next crea hit save (Large adv.) or restrained, 1d6+1d6/SL Piercing dmg/rnd; Str chk escape\",\r\n\tdescriptionFull : \"The next time you hit a creature with a weapon attack before this spell ends, a writhing mass of thorny vines appears at the point of impact, and the target must succeed on a Strength saving throw or be restrained by the magical vines until the spell ends. A Large or larger creature has advantage on this saving throw. If the target succeeds on the save, the vines shrivel away.\" + \"\\n   \" + \"While restrained by this spell, the target takes 1d6 piercing damage at the start of each of its turns. A creature restrained by the vines or one that can touch the creature can use its action to make a Strength check against your spell save DC. On a success, the target is freed.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"feign death\"] = {\r\n\tname : \"Feign Death\",\r\n\tclasses : [\"bard\", \"cleric\", \"druid\", \"wizard\"],\r\n\tsource : [[\"P\", 240]],\r\n\tritual : true,\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pinch of graveyard dirt\",\r\n\tduration : \"1 h (D)\",\r\n\tdescription : \"Willing creature appears dead; it is blinded, incapacitated, has dmg resist. all but Psychic, and speed 0\",\r\n\tdescriptionFull : \"You touch a willing creature and put it into a cataleptic state that is indistinguishable from death.\" + \"\\n   \" + \"For the spell's duration, or until you use an action to touch the target and dismiss the spell, the target appears dead to all outward inspection and to spells used to determine the target's status. The target is blinded and incapacitated, and its speed drops to 0. The target has resistance to all damage except psychic damage. If the target is diseased or poisoned when you cast the spell, or becomes diseased or poisoned while under the spell's effect, the disease and poison have no effect until the spell ends.\"\r\n};\r\nSpellsList[\"friends\"] = {\r\n\tname : \"Friends\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 244]],\r\n\tlevel : 0,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A small amount of makeup applied to the face as this spell is cast\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Adv. on Cha checks vs. 1 crea currently not hostile; when spell ends, crea knows and becomes hostile\",\r\n\tdescriptionFull : \"For the duration, you have advantage on all Charisma checks directed at one creature of your choice that isn't hostile toward you. When the spell ends, the creature realizes that you used magic to influence its mood and becomes hostile toward you. A creature prone to violence might attack you. Another creature might seek retribution in other ways (at the DM's discretion), depending on the nature of your interaction with it.\"\r\n};\r\nSpellsList[\"grasping vine\"] = {\r\n\tname : \"Grasping Vine\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"P\", 246]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Conjure vine with 30 ft reach; bns a to direct to 1 crea save or pulled 20 ft to vine\",\r\n\tdescriptionFull : \"You conjure a vine that sprouts from the ground in an unoccupied space of your choice that you can see within range. When you cast this spell, you can direct the vine to lash out at a creature within 30 feet of it that you can see. That creature must succeed on a Dexterity saving throw or be pulled 20 feet directly toward the vine.\" + \"\\n   \" + \"Until the spell ends, you can direct the vine to lash out at the same creature or another one as a bonus action on each of your turns.\"\r\n};\r\nSpellsList[\"hail of thorns\"] = {\r\n\tname : \"Hail of Thorns\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 249]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Next ranged weapon hit, all within 5 ft of target 1d10+1d10/SL Piercing dmg; save halves\",\r\n\tdescriptionFull : \"The next time you hit a creature with a ranged weapon attack before the spell ends, this spell creates a rain of thorns that sprouts from your ranged weapon or ammunition. In addition to the normal effect of the attack, the target of the attack and each creature within 5 feet of it must make a Dexterity saving throw. A creature takes 1d10 piercing damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d10 for each slot level above 1st (to a maximum of 6d10).\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"hex\"] = {\r\n\tname : \"Hex\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 251]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"The petrified eye of a newt\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 crea +1d6 Necrotic dmg from my atks; dis. on chosen ability checks; SL3: conc, 8h; SL5: conc, 24h\",\r\n\tdescriptionShorter : \"1 crea +1d6 Necrotic dmg from my atks; dis. chosen abi chks; SL3: conc, 8h; SL5: conc, 24h\",\r\n\tdescriptionFull : \"You place a curse on a creature that you can see within range. Until the spell ends, you deal an extra 1d6 necrotic damage to the target whenever you hit it with an attack. Also, choose one ability when you cast the spell. The target has disadvantage on ability checks made with the chosen ability.\" + \"\\n   \" + \"If the target drops to 0 hit points before this spell ends, you can use a bonus action on a subsequent turn of yours to curse a new creature.\" + \"\\n   \" + \"A remove curse cast on the target ends this spell early.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd or 4th level, you can maintain your concentration on the spell for up to 8 hours. When you use a spell slot of 5th level or higher, you can maintain your concentration on the spell for up to 24 hours.\"\r\n};\r\nSpellsList[\"hunger of hadar\"] = {\r\n\tname : \"Hunger of Hadar\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"P\", 251]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pickled octopus tentacle\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft rad all: blind while in, start turn in 2d6 Cold dmg, end turn in save or 2d6 Acid dmg\",\r\n\tdescriptionFull : \"You open a gateway to the dark between the stars, a region infested with unknown horrors. A 20-foot-radius sphere of blackness and bitter cold appears, centered on a point with range and lasting for the duration. This void is filled with a cacophony of soft whispers and slurping noises that can be heard up to 30 feet away. No light, magical or otherwise, can illuminate the area, and creatures fully within the area are blinded.\" + \"\\n   \" + \"The void creates a warp in the fabric of space, and the area is difficult terrain. Any creature that starts its turn in the area takes 2d6 cold damage. Any creature that ends its turn in the area must succeed on a Dexterity saving throw or take 2d6 acid damage as milky, otherworldly tentacles rub against it.\"\r\n};\r\nSpellsList[\"lightning arrow\"] = {\r\n\tname : \"Lightning Arrow\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 255]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Next rngd wea atk 4d8+1d8/SL Lightn. dmg, miss half; 10 ft all 2d8+1d8/SL Lightn. dmg, save half\",\r\n\tdescriptionShorter : \"Next atk 4d8+1d8/SL Lightn. dmg, miss h\" + (typePF ? \"a\" : \"\") + \"lf; 10 ft all 2d8+1d8/SL Lightn. dmg, save half\",\r\n\tdescriptionFull : \"The next time you make a ranged weapon attack during the spell's duration, the weapon's ammunition, or the weapon itself if it's a thrown weapon, transforms into a bolt of lightning. Make the attack roll as normal. The target takes 4d8 lightning damage on a hit, or half as much damage on a miss, instead of the weapon's normal damage.\" + \"\\n   \" + \"Whether you hit or miss, each creature within 10 feet of the target must make a Dexterity saving throw. Each of these creatures takes 2d8 lightning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"The piece of ammunition or weapon then returns to its normal form.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage for both effects of the spell increases by 1d8 for each slot level above 3rd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\tskipDmgGroupIfNotMultiple : /(atk .*?lightn\\. dmg.*?)/i\r\n\t}\r\n};\r\nSpellsList[\"phantasmal force\"] = {\r\n\tname : \"Phantasmal Force\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 264]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of fleece\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or sees 10 ft cube illusion that does 1d6 Psychic dmg/rnd; Int(Investigation) vs. spell DC\",\r\n\tdescriptionShorter : \"1 crea save or sees 10 ft cube illusion that does 1d6 Psychic dmg/rnd; Investigation vs. DC\",\r\n\tdescriptionFull : \"You craft an illusion that takes root in the mind of a creature that you can see within range. The target must make an Intelligence saving throw. On a failed save, you create a phantasmal object, creature, or other visible phenomenon of your choice that is no larger than a 10-foot cube and that is perceivable only to the target for the duration. This spell has no effect on undead or constructs.\" + \"\\n   \" + \"The phantasm includes sound, temperature, and other stimuli, also evident only to the creature.\" + \"\\n   \" + \"The target can use its action to examine the phantasm with an Intelligence (Investigation) check against your spell save DC. If the check succeeds, the target realizes that the phantasm is an illusion, and the spell ends.\" + \"\\n   \" + \"While a target is affected by the spell, the target treats the phantasm as if it were real. The target rationalizes any illogical outcomes from interacting with the phantasm. For example, a target attempting to walk across a phantasmal bridge that spans a chasm falls once it steps onto the bridge. If the target survives the fall, it still believes that the bridge exists and comes up with some other explanation for its fall - it was pushed, it slipped, or a strong wind might have knocked it off.\" + \"\\n   \" + \"An affected target is so convinced of the phantasm's reality that it can even take damage from the illusion. A phantasm created to appear as a creature can attack the target. Similarly, a phantasm created to appear as fire, a pool of acid, or lava can burn the target. Each round on your turn, the phantasm can deal 1d6 psychic damage to the target if it is in the phantasm's area or within 5 feet of the phantasm, provided that the illusion is of a creature or hazard that could logically deal damage, such as by attacking. The target perceives the damage as a type appropriate to the illusion.\"\r\n};\r\nSpellsList[\"power word heal\"] = {\r\n\tname : \"Power Word Heal\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"P\", 266]],\r\n\tlevel : 9,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea heals all HP and stops being charmed, frightened, paralyzed, stunned; it can use rea to stand up\",\r\n\tdescriptionShorter : \"1 crea heals all HP, not charmed, frightened, paralyzed, stunned; rea to stand up\",\r\n\tdescriptionFull : \"A wave of healing energy washes over the creature you touch. The target regains all its hit points. If the creature is charmed, frightened, paralyzed, or stunned, the condition ends. If the creature is prone, it can use its reaction to stand up. This spell has no effect on undead or constructs.\"\r\n};\r\nSpellsList[\"ray of sickness\"] = {\r\n\tname : \"Ray of Sickness\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"P\", 271]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Spell attack for 2d8+1d8/SL Poison dmg; save or also poisoned until end of my next turn\",\r\n\tdescriptionFull : \"A ray of sickening greenish energy lashes out toward a creature within range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 poison damage and must make a Constitution saving throw. On a failed save, it is also poisoned until the end of your next turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"searing smite\"] = {\r\n\tname : \"Searing Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 274]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Next melee weapon hit +1d6+1d6/SL Fire dmg and target ignites: start of turn save to end or 1d6 dmg\",\r\n\tdescriptionShorter : \"Next melee wea hit +1d6+1d6/SL Fire dmg \\u0026 ignites: start of turn save to end or 1d6 dmg\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during the spell's duration, your weapon flares with white-hot intensity, and the attack deals an extra 1d6 fire damage to the target and causes the target to ignite in flames. At the start of each of its turns until the spell ends, the target must make a Constitution saving throw. On a failed save, it takes 1d6 fire damage. On a successful save, the spell ends. If the target or a creature within 5 feet of it uses an action to put out the flames, or if some other effect douses the flames (such as the target being submerged in water), the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the initial extra damage dealt by the attack increases by 1d6 for each slot above the 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\textraDmgGroupsSameType : /(end or )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"staggering smite\"] = {\r\n\tname : \"Staggering Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 278]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Next melee weapon hit +4d6 Psychic dmg and save or dis. on atks/chks, no rea, until end next turn\",\r\n\tdescriptionFull : \"The next time you hit a creature with a melee weapon attack during this spell's duration, your weapon pierces both body and mind, and the attack deals an extra 4d6 psychic damage to the target. The target must make a Wisdom saving throw. On a failed save, it has disadvantage on attack rolls and ability checks, and can't take reactions, until the end of its next turn.\"\r\n};\r\nSpellsList[\"swift quiver\"] = {\r\n\tname : \"Swift Quiver\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"P\", 279]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A quiver containing at least one piece of ammunition\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Quiver gives nonmagical ammo; bns a to make 2 atks with weapon that uses ammo from that quiver\",\r\n\tdescriptionFull : \"You transmute your quiver so it produces an endless supply of nonmagical ammunition, which seems to leap into your hand when you reach for it.\" + \"\\n   \" + \"On each of your turns until the spell ends, you can use a bonus action to make two attacks with a weapon that uses ammunition from the quiver. Each time you make such a ranged attack, your quiver magically replaces the piece of ammunition you used with a similar piece of nonmagical ammunition. Any pieces of ammunition created by this spell disintegrate when the spell ends. If the quiver leaves your possession, the spell ends.\"\r\n};\r\nSpellsList[\"telepathy\"] = {\r\n\tname : \"Telepathy\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"P\", 281]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Unlimited\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pair of linked silver rings\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"1 willing crea Int>0 and I telepathic link; share words, sensory information if on same plane\",\r\n\tdescriptionFull : \"You create a telepathic link between yourself and a willing creature with which you are familiar. The creature can be anywhere on the same plane of existence as you. The spell ends if you or the target are no longer on the same plane.\" + \"\\n   \" + \"Until the spell ends, you and the target can instantaneously share words, images, sounds, and other sensory messages with one another through the link, and the target recognizes you as the creature it is communicating with. The spell enables a creature with an Intelligence score of at least 1 to understand the meaning of your words and take in the scope of any sensory messages you send to it.\"\r\n};\r\nSpellsList[\"thorn whip\"] = {\r\n\tname : \"Thorn Whip\",\r\n\tclasses : [\"artificer\", \"druid\"],\r\n\tsource : [[\"P\", 282]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"The stem of a plant with thorns\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell atk for 1d6 Piercing dmg and pull crea up to 10 ft towards me; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Melee spell attack for `CD`d6 Piercing dmg and pull crea up to 10 ft towards me\",\r\n\tdescriptionFull : \"You create a long, vine-like whip covered in thorns that lashes out at your command toward a creature in range. Make a melee spell attack against the target. If the attack hits, the creature takes 1d6 piercing damage, and if the creature is Large or smaller, you pull the creature up to 10 feet closer to you.\" + \"\\n   \" + \"This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"thunderous smite\"] = {\r\n\tname : \"Thunderous Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 282]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Next melee weapon hit +2d6 Thunder dmg and save or 10 ft push and prone; audible in 300 ft\",\r\n\tdescriptionFull : \"The first time you hit with a melee weapon attack during this spell's duration, your weapon rings with thunder that is audible within 300 feet of you, and the attack deals an extra 2d6 thunder damage to the target. Additionally, if the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet away from you and knocked prone.\"\r\n};\r\nSpellsList[\"tsunami\"] = {\r\n\tname : \"Tsunami\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"P\", 284]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Sight\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 6 rnds\",\r\n\tsave : \"Str\",\r\n\tdescription : \"300\\xD750\\xD7300ft (l\\xD7w\\xD7h) wall of water moves away at 50 ft/rnd; 6d10 Bludg. dmg; save halves; see B\",\r\n\tdescriptionShorter : \"300\\xD750\\xD7300ft (l\\xD7w\\xD7h) wave moves away at 50 ft/rnd; 6d10 Bludg. dmg; save half; see B\",\r\n\tdescriptionMetric : \"90\\xD715\\xD790m (l\\xD7w\\xD7h) wall of water moves away at 15 m/rnd; 6d10 Bludg. dmg; save halves; see B\",\r\n\tdescriptionShorterMetric : \"90\\xD715\\xD790m (l\\xD7w\\xD7h) wave moves away at 15 m/rnd; 6d10 Bludg. dmg; save half; see B\",\r\n\tdescriptionFull : \"A wall of water springs into existence at a point you choose within range. You can make the wall up to 300 feet long, 300 feet high, and 50 feet thick. The wall lasts for the duration.\" + \"\\n   \" + \"When the wall appears, each creature within its area must make a Strength saving throw. On a failed save, a creature takes 6d10 bludgeoning damage, or half as much damage on a successful save.\" + \"\\n   \" + \"At the start of each of your turns after the wall appears, the wall, along with any creatures in it, moves 50 feet away from you. Any Huge or smaller creature inside the wall or whose space the wall enters when it moves must succeed on a Strength saving throw or take 5d10 bludgeoning damage. A creature can take this damage only once per round. At the end of the turn, the wall's height is reduced by 50 feet, and the damage creatures take from the spell on subsequent rounds is reduced by 1d10. When the wall reaches 0 feet in height, the spell ends.\" + \"\\n   \" + \"A creature caught in the wall can move by swimming. Because of the force of the wave, though, the creature must make a successful Strength (Athletics) check against your spell save DC in order to move at all. If it fails the check, it can't move. A creature that moves out of the area falls to the ground.\"\r\n};\r\nSpellsList[\"witch bolt\"] = {\r\n\tname : \"Witch Bolt\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"P\", 289]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A twig from a tree that has been struck by lightning\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Rngd spell atk 1d12+1d12/SL Lightn. dmg; 1 a 1d12 Lightn. dmg; ends if out of range or I do other a\",\r\n\tdescriptionShorter : \"Rngd atk 1d12+1d12/SL Lightn. dmg; 1 a 1d12 Lightn. dmg; end: out of range/do other a\",\r\n\tdescriptionFull : \"A beam of crackling, blue energy lances out toward a creature within range, forming a sustained arc of lightning between you and the target. Make a ranged spell attack against that creature. On a hit, the target takes 1d12 lightning damage, and on each of your turns for the duration, you can use your action to deal 1d12 lightning damage to the target automatically. The spell ends if you use your action to do anything else. The spell also ends if the target is ever outside the spell's range or if it has total cover from you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the initial damage increases by 1d12 for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /(1 a )(.*?)( Lightn. dmg)/i\r\n\t}\r\n};\r\nSpellsList[\"wrathful smite\"] = {\r\n\tname : \"Wrathful Smite\",\r\n\tclasses : [\"paladin\"],\r\n\tsource : [[\"P\", 289]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Next melee weapon hit +1d6 Psychic dmg and save or frightened; it can take 1 a for extra save\",\r\n\tdescriptionFull : \"The next time you hit with a melee weapon attack during this spell's duration, your attack deals an extra 1d6 psychic damage. Additionally, if the target is a creature, it must make a Wisdom saving throw or be frightened of you until the spell ends. As an action, the creature can make a Wisdom check against your spell save DC to steel its resolve and end this spell.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20140819_HotDQ+20141104_RoT.js",
    "content": "var iFileName = \"pub_20140819_HotDQ+20141104_RoT.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the background features and magic items from the Hoard of the Dragon Queen and Rise of Tiamat adventure books to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.HotDQ={\r\n\tname : \"Hoard of the Dragon Queen [background features, items]\",\r\n\tabbreviation : \"HotDQ\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://wpn.wizards.com/en/products/tyranny-of-dragons\",\r\n\tdate : \"2014/08/19\"\r\n};\r\nSourceList.RoT = {\r\n\tname : \"Rise of Tiamat [items]\",\r\n\tabbreviation : \"RoT\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://wpn.wizards.com/en/products/tyranny-of-dragons\",\r\n\tdate : \"2014/11/04\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"cult of the dragon infiltrator\"] = {\r\n\tdescription : \"I have infiltrated the ranks of the Cult of the Dragon. Having spied on the organization for quite some time, I am familiar with its inner workings and customs. I have a second identity as an initiate of the cult, enough of a facade to blend in as a simple grunt or servant.\",\r\n\tsource : [[\"HotDQ\", 87], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"dragon scholar\"] = {\r\n\tdescription : \"I have studied dragons and their lore for many years. I can automatically identify locations built or used by dragons, and I can identify dragon eggs and scales by sight. If I fail an Intelligence check to recall lore relating to dragons, I know someone or some book that I can consult for the answer unless the DM rules that the lore is unknown.\",\r\n\tsource : [[\"HotDQ\", 87], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Magic Items\r\n// The magic cauldron on page 79 is omitted as its only magic is that it functions as the material component for the Augury spell. Not something an adventurer is likely to use, with it being 50 lb.\r\nMagicItemsList[\"dragongleam\"] = {\r\n\tname : \"Dragongleam\",\r\n\tsource : [[\"HotDQ\", 69]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This rusty spear is engraved with draconic runes on its crossguard which read \\\"Tiamat's Eyes Shine\\\". The spear has 10 charges. As an action while holding it, I can say this command and expend 1 charge to cast Daylight. The spear loses its magic once all charges are expended.\",\r\n\tdescriptionFull : \"This rusty spear is engraved with draconic runes on its crossguard which read \\\"Tiamat's Eyes Shine\\\". The spear has 10 charges. While holding it, you can say the command and expend 1 charge as an action to cast the Daylight spell. The spear loses this property if it has no charges left.\",\r\n\tweight : 3,\r\n\tusages : 10,\r\n\trecovery : \"Never\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"daylight\"],\r\n\t\tselection : [\"daylight\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"daylight\" : {\r\n\t\t\tcomponent : \"V,M\\u0192\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"spear\",\r\n\t\tregExpSearch : /dragongleam/i,\r\n\t\tname : \"Dragongleam\",\r\n\t\tsource : [[\"HotDQ\", 69]],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"tankard of plenty\"] = {\r\n\tname : \"Tankard of Plenty\",\r\n\tsource : [[\"HotDQ\", 74]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"A\",\r\n\tdescription : 'This golden stein is decorated with dancing dwarves and grain patterns. Speaking the command word \"Illefarn\" while grasping the handle fills the tankard with three pints of rich dwarven ale. This power can be used up to three times per day.',\r\n\tdescriptionFull : 'This golden stein is decorated with dancing dwarves and grain patterns. Speaking the command word (\"Illefarn\") while grasping the handle fills the tankard with three pints of rich dwarven ale. This power can be used up to three times per day.',\r\n\tusages : 3,\r\n\trecovery : \"Day\"\r\n}\r\nvar HotDQ_tempDragonMaskNoteTxt = [\r\n\tdesc([\r\n\t\ttoUni(\"Damage Absorption\") + \". You have resistance against DTYPE damage. If you already have resistance to DTYPE damage from another source, you instead have immunity to DTYPE damage. If you already have immunity to DTYPE damage from another source, whenever you are subjected to DTYPE damage, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\",\r\n\t\ttoUni(\"Draconic Majesty\") + \". While you are wearing no armor, you can add your Charisma bonus to your Armor Class.\",\r\n\t\ttoUni(\"Dragon Breath\") + \". If you have a breath weapon that requires rest to recharge, it gains a recharge of 6.\",\r\n\t\ttoUni(\"Dragon Sight\") + \". You gain darkvision out to 60 feet, or to an additional 60 feet if you already have that sense. Once per day, you can gain blindsight out to 30 feet for 5 minutes.\",\r\n\t\ttoUni(\"Dragon Tongue\") + \". You can speak and understand Draconic. You also have advantage on any Charisma check you make against DCOLOUR dragons.\",\r\n\t\ttoUni(\"Legendary Resistance (1/Day)\") + \". If you fail a saving throw, you can choose to succeed instead.\"\r\n\t]), [\r\n\t\t\" It reshapes to fit my face and head when I attuned to it. While I'm wearing a dragon mask and attuned to it, it grants me the following benefits.\",\r\n\t\t\"\\u2022 Damage Absorption. I have resistance against DTYPE damage. If I already have resistance to DTYPE damage from another source, I instead gain immunity to DTYPE damage. If I already have immunity to DTYPE damage from another source, whenever I am subjected to DTYPE damage, I take none of that damage and instead regain a number of hit points equal to half the DTYPE damage dealt.\",\r\n\t\t\"\\u2022 Draconic Majesty. While I am wearing no armor, I can add my Charisma bonus to my Armor Class.\",\r\n\t\t\"\\u2022 Dragon Breath. If I have a breath weapon that requires rest to recharge, it gains a recharge of 6.\",\r\n\t\t\"\\u2022 Dragon Sight. I gain darkvision out to 60 ft, or to an additional 60 ft if I already have that sense. Once per day, I can gain blindsight out to 30 ft for 5 minutes.\",\r\n\t\t\"\\u2022 Dragon Tongue. I can speak and understand Draconic. I also have advantage on any Charisma check I make against DCOLOUR dragons.\",\r\n\t\t\"\\u2022 Legendary Resistance. Once per day when I fail a saving throw, I can choose to succeed instead.\"\r\n\t].join(\"\\n   \")\r\n];\r\nMagicItemsList[\"dragon mask\"] = {\r\n\tname : \"Dragon Mask\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb associated damage type, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. a dragon type, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, see Notes page.\",\r\n\tdescriptionFull : \"Each dragon mask is a legendary wondrous item that reshapes to fit the face and head of a wearer attuned to it. While you are wearing any dragon mask and attuned to it, you gain the following benefits.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/You have resistance against DTYPE damage.*?\\n/, \"You have resistance against the mask's damage type. If you already have resistance to that damage type from another source, you instead have immunity to that damage type. If you already have immunity to that damage type from another source, whenever you are subjected to damage of that type, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR dragons\", \"dragons that share the mask's color\"),\r\n\tattunement : true,\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tusages : 1,\r\n\trecovery : \"Day\",\r\n\tadditional : \"Legendary Resistance\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Dragon Mask (Blindsight 30 ft, 5 min)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Day\"\r\n\t}],\r\n\textraAC : [{\r\n\t\tmod : \"Cha\",\r\n\t\tmagic : true,\r\n\t\ttext : \"I add my Charisma modifier to AC while I'm not wearing armor.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor; }\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.dbBreathWeapon || (/^(?=.*breath)(?=.*weapon).*$/i).test(v.theWea.name)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(Us(e|able)( only)? )?once per (short|long) rest/i, 'Recharge 6');\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tincrementDamageRes : function (dType, dRes) {\r\n\t\tSetProf(\r\n\t\t\t\"savetxt\",\r\n\t\t\tCurrentProfs.resistance[dRes] && CurrentProfs.resistance[dRes].src.length > 1,\r\n\t\t\t{ immune : [dRes] },\r\n\t\t\t!dType ? \"Mask of the Dragon Queen (magic item)\" : dType + \" Dragon Mask (magic item)\"\r\n\t\t);\r\n\t},\r\n\tchoices : [\"Black\", \"Blue\", \"Green\", \"Red\", \"White\", \"Mask of the Dragon Queen\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"black\" : {\r\n\t\tname : \"Black Dragon Mask\",\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb acid damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. black dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This horned mask of glossy ebony has horns and a skull-like mien. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb acid damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against black dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and water breathing. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This horned mask of glossy ebony has horns and a skull-like mien. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"acid\").replace(\"DCOLOUR\", \"black\") + \"\\n   \" + toUni(\"Water Breathing\") + \". You can breathe underwater.\",\r\n\t\tdmgres : [\"Acid\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Black\", \"acid\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This horned mask of glossy ebony has horns and a skull-like mien.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"acid\").replace(\"DCOLOUR\", \"black\") + \"\\n   Water Breathing. I can breathe underwater.\"\r\n\t\t}]\r\n\t},\r\n\t/*\r\n\t\tAlthough the adventure book only includes the Black Dragon Mask,\r\n\t\tthis code also includes the Blue, Green, Red, and White Dragon Masks.\r\n\t\tThe rules for these are found in the Rise of Tiamat Online Supplement,\r\n\t\there: https://media.wizards.com/2014/downloads/dnd/RiseTiamatSupplementv0.2_Printer.pdf\r\n\t*/\r\n\t\"blue\" : {\r\n\t\tname : \"Blue Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb lightning damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. Cha checks vs. blue dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask of glossy azure has spikes around its edges and a ridged horn in its center. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb lightning damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against blue dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Lingering Shock. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mask of glossy azure has spikes around its edges and a ridged horn in its center. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"lightning\").replace(\"DCOLOUR\", \"blue\") + \"\\n   \" + toUni(\"Lingering Shock\") + \". If you deal lightning damage to a creature, it can't take reactions until its next turn.\",\r\n\t\tdmgres : [\"Lightning\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Blue\", \"lightning\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mask of glossy azure has spikes around its edges and a ridged horn in its center.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"lightning\").replace(\"DCOLOUR\", \"blue\") + \"\\n   Lingering Shock. If I deal lightning damage to a creature, it can't take reactions until its next turn.\"\r\n\t\t}]\r\n\t},\r\n\t\"green\" : {\r\n\t\tname : \"Green Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb poison damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. green dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mottled green mask is surmounted by a frilled crest and has spikes along its jaw. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb poison damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against green dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and water breathing. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mottled green mask is surmounted by a frilled crest and has leathery spiked plates along its jaw. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"poison\").replace(\"DCOLOUR\", \"green\") + \"\\n   \" + toUni(\"Water Breathing\") + \". You can breathe underwater.\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"Green\", \"poison\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mottled green mask is surmounted by a frilled crest and has leathery spiked plates along its jaw.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"poison\").replace(\"DCOLOUR\", \"green\") + \"\\n   Water Breathing. I can breathe underwater.\"\r\n\t\t}]\r\n\t},\r\n\t\"red\" : {\r\n\t\tname : \"Red Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb fire damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. red dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask of glossy crimson has swept-back horns and spiked cheek ridges. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb fire damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against red dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Dragon Fire. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This mask of glossy crimson has swept-back horns and spiked cheek ridges. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"fire\").replace(\"DCOLOUR\", \"red\") + \"\\n   \" + toUni(\"Dragon Fire\") + \". If you deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\",\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"red\", \"fire\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This mask of glossy crimson has swept-back horns and spiked cheek ridges.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"fire\").replace(\"DCOLOUR\", \"red\") + \"\\n   Dragon Fire. If I deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\"\r\n\t\t}]\r\n\t},\r\n\t\"white\" : {\r\n\t\tname : \"White Dragon Mask\",\r\n\t\tsource : [[\"HotDQ\", 0], [\"RoTOS\", 4]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It grants me the ability to absorb cold damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (1/day), adv. on Cha checks vs. white dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This gleaming mask is white with highlights of pale blue and is topped by a spined crest. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb cold damage, depending on how resistant I'm to it already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against white dragons, lets me add my Charisma modifier to AC while I'm not wearing armor, and Winter's Fury. Once per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"This gleaming mask is white with highlights of pale blue and is topped by a spined crest. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/DTYPE/g, \"cold\").replace(\"DCOLOUR\", \"white\") + \"\\n   \" + toUni(\"Winter's Fury\") + \". While your current hit points are equal to or less than half your hit point maximum, you deal an extra 1d8 cold damage with your melee attacks.\",\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"dragon mask\"].incrementDamageRes(\"white\", \"cold\"); },\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   This gleaming mask is white with highlights of pale blue and is topped by a spined crest.\" + HotDQ_tempDragonMaskNoteTxt[1].replace(/DTYPE/g, \"cold\").replace(\"DCOLOUR\", \"white\") + \"\\n   Winter's Fury. While my current hit points are equal to or less than half my hit point maximum, I deal an extra 1d8 cold damage with my melee attacks.\"\r\n\t\t}]\r\n\t},\r\n\t\"mask of the dragon queen\" : {\r\n\t\tname : \"Mask of the Dragon Queen\",\r\n\t\tsource : [[\"RoT\", 94]],\r\n\t\tdescription : \"This mask reshapes to fit my head. It allows to absorb acid, cold, fire, lightning, and poison damage, darkvision 60 ft, blindsight 30 ft (1/day), Legendary Resistance (5/day), adv. on Cha checks vs. dragons, the ability speak Draconic, and lets me add my Cha mod to AC while not wearing armor, and more, see Notes page.\",\r\n\t\tdescriptionLong : \"This mask gives me a draconic visage and covers my face, neck, and shoulders. The mask reshapes to fit my face and head when I attuned to it. It grants me the ability to absorb acid, cold, fire, lightning, and poison damage, depending on how resistant I'm already. Additionally, it gives me darkvision 60 ft (or +60 ft) and blindsight 30 ft once per day for 5 min, the ability speak Draconic, advantage on Charisma checks against dragons, lets me add my Charisma modifier to AC while not wearing armor, and more. 5 times per day when I fail a saving throw, I can use the mask to succeed on it instead. See Notes page.\",\r\n\t\tdescriptionFull : \"When two or more of the dragon masks are assembled they magically transform into the Mask of the Dragon Queen. Each mask shrinks to become the modeled head of a chromatic dragon, appearing to roar its devotion to Tiamat where all the masks brought together are arranged crown-like on the wearer's head. Below the five masks, a new mask shapes itself, granting the wearer a draconic visage that covers the face, neck, and shoulders. The mask reshapes to fit a wearer attuned to it. While you are wearing the mask and attuned to it, you can access the following properties.\" + HotDQ_tempDragonMaskNoteTxt[0].replace(/You have resistance against DTYPE damage.*?\\n/, \"You have resistance against acid, cold, fire, lightning, and poison damage. If you already have resistance to a damage type from another source, you instead have immunity to that damage type. If you already have immunity to a damage type from another source, whenever you are subjected to that damage type, you take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR \", \"\").replace(toUni(\"(1/Day)\"), toUni(\"(5/Day)\")) + \"\\n\\n   It can have the properties of any one of the colored masks, but only can have one active at a time. These are the following:\\n   \" + toUni(\"Water Breathing (black and green)\") + \". You can breathe underwater.\\n   \" + toUni(\"Lingering Shock (blue)\") + \". If you deal lightning damage to a creature, it can't take reactions until its next turn.\\n   \" + toUni(\"Dragon Fire (red)\") + \". If you deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\\n   \" + toUni(\"Winter's Fury (white)\") + \". While your current hit points are equal to or less than half your hit point maximum, you deal an extra 1d8 cold damage with your melee attacks.\",\r\n\t\tdmgres : [\"Acid\", \"Cold\", \"Fire\", \"Lightning\", \"Poison\"],\r\n\t\tchangeeval : function () {\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"acid\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"cold\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"fire\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"lightning\");\r\n\t\t\tMagicItemsList[\"dragon mask\"].incrementDamageRes(\"\", \"poison\");\r\n\t\t},\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   When two or more of the dragon masks are assembled they magically transform into the Mask of the Dragon Queen. Each mask shrinks to become the modeled head of a chromatic dragon, appearing to roar its devotion to Tiamat where all the masks brought together are arranged crown-like on the wearer's head. Below the five masks, a new mask shapes itself, granting the wearer a draconic visage that covers the face, neck, and shoulders.\" +\r\n\t\t\tHotDQ_tempDragonMaskNoteTxt[1].replace(/Damage Absorption.*?\\n/, \"Damage Absorption. I have resistance to acid, cold, fire, lightning, and poison damage. If I already have resistance to a damage type from another source, I instead have immunity to that damage type. If I already have immunity to a damage type from another source, whenever I am subjected to that damage type, I take none of that damage and regain a number of hit points equal to half the damage dealt of that type.\\n\").replace(\"DCOLOUR \", \"\").replace(\"Once per day when\", \"Five times per day when\") +\r\n\t\t\t\"\\n   \\u2022 Special Properties. I can access the properties of any one of the colored masks, but only can have one active at a time. These are the following:\"+\r\n\t\t\t\"\\n      \\u25E6 Water Breathing (black and green). I can breathe underwater.\"+\r\n\t\t\t\"\\n      \\u25E6 Lingering Shock (blue). If I deal lightning damage to a creature, it can't take reactions until its next turn.\"+\r\n\t\t\t\"\\n      \\u25E6 Dragon Fire (red). If I deal fire damage to a creature or flammable object, it starts burning. At the start of each of its turns, a creature burning in this way takes 1d6 fire damage. A creature that can reach the burning target can use an action to extinguish the fire.\"+\r\n\t\t\t\"\\n      \\u25E6 Winter's Fury (white). While my current hit points are equal to or less than half my hit point maximum, I deal an extra 1d8 cold damage with my melee attacks.\"\r\n\t\t}],\r\n\t\tusages : 5,\r\n\t\trecovery : \"Day\",\r\n\t\tadditional : \"Legendary Resistance\"\r\n\t}\r\n}\r\nMagicItemsList[\"hazirawn\"] = {\r\n\tname : \"Hazirawn\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This sentient, neutral evil, greatsword functions depend on whether you are attuned to it or not.\",\r\n\tdescriptionFull : \"A sentient (neutral evil) greatsword, Hazirawn is capable of speech in Common and Netherese. Even if you aren't attuned to the sword, you gain a +1 bonus on attack and damage rolls made with this weapon and you deal an extra 1d6 necrotic damage when you hit with the weapon.\\n   \" + toUni(\"Increased Potency\") + \". While you are attuned to this weapon, its bonus on attack and damage rolls increases to +2, and a hit deals an extra 2d6 necrotic damage (instead of 1d6).\\n   \" + toUni(\"Spells\") + \". Hazirawn has 4 charges to cast spells. As long as the sword is attuned to you and you are holding it in your hand, you can cast Detect Magic (1 charge), Detect Evil and Good (1 charge), or Detect Thoughts (2 charges). Each night at midnight, Hazirawn regains 1d4 expended charges.\\n   \" + toUni(\"Wounding\") + \". While you are attuned to the weapon, any creature that you hit with Hazirawn can't regain hit points for 1 minute. The target can make a DC 15 Constitution saving throw at the end of each of its turns, ending this effect early on a success.\",\r\n\tweight : 6,\r\n\tchoices : [\"not attuned\", \"attuned\"],\r\n\t\"not attuned\" : {\r\n\t\tname : \"Hazirawn\\u200A\",\r\n\t\tdescription : \"A sentient (neutral evil) greatsword, Hazirawn is capable of speech in Common and Netherese. While I'm not attuned to the sword, I gain a +1 bonus on attack and damage rolls made with it. It also deals an extra 1d6 necrotic damage on attacks made with the sword.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"greatsword\",\r\n\t\t\tregExpSearch : /hazirawn/i,\r\n\t\t\tname : \"Hazirawn\",\r\n\t\t\tsource : [[\"HotDQ\", 94]],\r\n\t\t\tdescription : \"Heavy, two-handed; +1d6 necrotic damage\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"attuned\" : {\r\n\t\tname : \"Hazirawn\\u200A\\u200A\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This sentient, neutral evil, greatsword adds +2 to damage and to hit rolls, deals +2d6 necrotic damage, and those hit with it can't regain HP for 1 min, but can make a DC 15 Con save at the end of each turn to stop this effect. It has 4 charges to cast spells, regaining 1d4 at midnight. It speaks Common and Netherese.\",\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Hazirawn (regains 1d4)\",\r\n\t\t\tusages : 4,\r\n\t\t\trecovery : \"Midnight\"\r\n\t\t}],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"greatsword\",\r\n\t\t\tregExpSearch : /hazirawn/i,\r\n\t\t\tname : \"Hazirawn\",\r\n\t\t\tsource : [[\"HotDQ\", 94]],\r\n\t\t\tdescription : \"Heavy, two-handed; +2d6 necrotic damage; Wounding (can't regain HP for 1 min, DC 15 Con save to stop)\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"detect evil and good\", \"detect magic\"],\r\n\t\t\tselection : [\"detect evil and good\", \"detect magic\"],\r\n\t\t\tfirstCol : 1,\r\n\t\t\ttimes : 2\r\n\t\t}, {\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}],\r\n\t\tfixedDC : 15, // assumed from the fact that its Wounding property has DC 15\r\n\t\tspellFirstColTitle : \"Ch\"\r\n\t}\r\n}\r\nMagicItemsList[\"insignia of claws\"] = {\r\n\tname : \"Insignia of Claws\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"The jewels in the insignia flare with purple light when I enter combat, empowering my fists. While wearing the insignia, I gain a +1 bonus to the attack rolls and the damage rolls of my unarmed strikes and natural weapons. Such attacks are considered to be magical.\",\r\n\tdescriptionFull : \"The jewels in the insignia of the Cult of the Dragon flare with purple light when you enter combat, empowering your natural fists or natural weapons.\\n   While wearing the insignia you gain a +1 bonus to the attack rolls and the damage rolls you make with unarmed strikes and natural weapons. Such attacks are considered to be magical.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes gain a +1 bonus to their attack and damage rolls, and count as magical.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\toutput.magic += 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"wand of winter\"] = {\r\n\tname : \"Wand of Winter\",\r\n\tsource : [[\"HotDQ\", 94]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This wand looks and feels like an icicle and has 7 charges, regaining 1d6+1 expended charges at dawn. If I use its last charge, roll a d20. On a 20, it melts away. I can use its charges to cast spells with DC 15/+5 to hit: Ray of Frost (0 charges: 1d8, 1 charge: 2d8), Sleet Storm (3 charges), or Ice Storm (4 charges).\",\r\n\tdescriptionFull : \"This wand looks and feels like an icicle. You must be attuned to the wand to use it.\\n   The wand has 7 charges, which are used to fuel the spells within it. With the wand in hand, you can use your action to cast one of the following spells from the wand, even if you are incapable of casting spells: Ray of Frost (no charges, or 1 charge to cast at 5th level; +5 to hit with ranged spell attack), Sleet Storm (3 charges; spell save DC 15), or Ice Storm (4 charges; spell save DC 15). No components are required. The wand regains 1d6+1 expended charges each day at dawn. If you expend the wand's last charge, roll a d20. On a 20, the wand melts away, forever destroyed.\",\r\n\tweight : 1,\r\n\tusages : 7,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+1\",\r\n\tfixedDC : 15,\r\n\tfixedSpAttack : 5,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"ray of frost\"],\r\n\t\tselection : [\"ray of frost\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"0 charges (at will)\",\r\n\t\tspells : [\"ray of frost\"],\r\n\t\tselection : [\"ray of frost\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"sleet storm\"],\r\n\t\tselection : [\"sleet storm\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"ice storm\"],\r\n\t\tselection : [\"ice storm\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spellKey == \"ray of frost\" && spName == \"wand of winter\") {\r\n\t\t\t\t\tif (isDuplicate) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"1\";\r\n\t\t\t\t\t\tspellObj.description = \"Spell attack for 2d8 Cold dmg and -10 ft speed until start of my next turn\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.description = \"Spell attack for 1d8 Cold dmg and -10 ft speed until start of my next turn\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"dragontooth dagger\"] = {\r\n\tname : \"Dragontooth Dagger\",\r\n\tsource : [[\"RoT\", 94]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"This dagger is fashioned from the tooth of a dragon. Its handle is its leather wrapped root and there is no crossguard. It adds a +1 bonus to attack and damage rolls made with it and deals +1d6 acid damage on a hit. Against the enemies of the Cult of the Dragon this increases to a +2 bonus and +2d6 acid damage.\",\r\n\tdescriptionFull : \"A dagger fashioned from the tooth of a dragon. While the blade is obviously a fang or predator's tooth, the handle is leather wrapped around the root of the tooth, and there is no crossguard.\\n   You gain a +1 bonus to attack and damage rolls made with this weapon. On a hit with this weapon, the target takes an extra 1d6 acid damage.\\n   \" + toUni(\"Draconic Potency\") + \". Against enemies of the Cult of the Dragon, the dagger's bonus to attack and damage rolls increases to 2, and the extra acid damage increases to 2d6.\",\r\n\tweight : 1,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*dragontooth)(?=.*dagger).*$/i,\r\n\t\tname : \"Dragontooth Dagger\",\r\n\t\tsource : [[\"RoT\", 94]],\r\n\t\tdescription : \"Finesse, light, thrown; +1d6 acid damage; Vs. Cult of the Dragon enemies: +2 magic \\u0026 +2d6 acid damage\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\r\n// Beast\r\n// Sled dog is just a wolf under a different name, it has been added to the SRD code as a `nameAlt`\r\n"
  },
  {
    "path": "WotC material/pub_20140930_MM.js",
    "content": "var iFileName = \"pub_20140930_MM.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all the player-material from the Monster Manual to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.M={\r\n\tname : \"Monster Manual\",\r\n\tabbreviation : \"MM\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/monster-manual\",\r\n\tdate : \"2014/09/30\"\r\n};\r\n\r\n// Dinosaurs not in the SRD\r\nCreatureList[\"allosaurus\"] = {\r\n\tname : \"Allosaurus\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 51,\r\n\thd : [6, 10], //[#, die]\r\n\tspeed : \"60 ft\",\r\n\tscores : [19, 13, 17, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tpassivePerception : 15,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 30 ft straight in the same round, see Pounce trait\"\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 10, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Can be used in combination with claw while pouncing (see Pounce trait)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the allosaurus moves at least 30 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the allosaurus can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"ankylosaurus\"] = {\r\n\tname : \"Ankylosaurus\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 68,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [19, 11, 15, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\",\r\n\t\tmodifiers : [1, \"\"]\r\n\t}]\r\n};\r\nCreatureList[\"pteranodon\"] = {\r\n\tname : \"Pteranodon\",\r\n\tsource : [[\"M\", 79]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 13,\r\n\thd : [3, 8], //[#, die]\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [12, 15, 10, 2, 9, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 1\r\n\t},\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The pteranodon doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\n\r\n// Special familiars not in the SRD\r\nCreatureList[\"faerie dragon\"] = { // With contributions by Patrick O.\r\n\tname : \"Faerie Dragon\",\r\n\tnameAlt : [\"Dragon, Faerie\"],\r\n\tsource : [[\"M\", 133]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Dragon\",\r\n\talignment : \"Chaotic Good\",\r\n\tac : 15,\r\n\thp : 14,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [3, 20, 13, 14, 12, 16], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"arcana\" : 4,\r\n\t\t\"perception\" : 3,\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 13,\r\n\tlanguages : \"Draconic, Sylvan\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : false\r\n\t}, {\r\n\t\tname : \"Euphoria Breath (Recharge 5-6)\",\r\n\t\tability : 3,\r\n\t\tdamage : [\"Wis save\", \"\", \"Euphoria\"],\r\n\t\trange : \"5 ft\",\r\n\t\tdescription : \"For 1 min, target rolls d6 at turn start: 1-4 move random (no actions), 5-6 save again (no actions/move)\",\r\n\t\tdc : true,\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"The dragon exhales a puff of euphoria gas at one creature within 5 feet of it. The target must succeed on a DC 11 Wisdom saving throw, or for 1 minute, the target can't take reactions and must roll a d6 at the start of each of its turns to determine its behavior during the turn: 1-4 - the target takes no action or bonus action and uses all its movement to move in a random direction. 5-6 - the target doesn't move, and the only thing it can do on its turn is make a DC 11 Wisdom saving throw, ending the effect on itself on a success.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Superior Invisibility\",\r\n\t\tdescription : \"As a bonus action, the dragon can magically turn invisible until its concentration ends (as with a spell). Anything it wears or carries is invisible with it.\"\r\n\t}, {\r\n\t\tname : \"Limited Telepathy\",\r\n\t\tdescription : \"Using telepathy, the dragon can magically communicate with any other faerie dragon within 60 feet of it.\"\r\n\t}, {\r\n\t\tname : \"Magic Resistance\",\r\n\t\tdescription : \"The dragon has advantage on saves against spells and magical effects.\"\r\n\t}, {\r\n\t\tname : \"Euphoria Breath (Recharge 5-6)\",\r\n\t\tdescription : \"Exhale a puff of euphoria gas at a creature within 5 ft. It must succeed on a DC 11 Wisdom save, or for 1 minute, it can't take reactions and must roll a d6 at the start of each of its turns:\\n 1-4 - No action or bonus action, using all movment to move in a random direction.\\n 5-6 - The target does nothing except attempt another save to try end the effect on itself.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Innate Spellcasting\",\r\n\t\tdescription : \"Cast spells using Charisma (save DC 13), requiring no material components. The spells it knows depends on its age (and stack):\\n Red: 1/day - Dancing Lights, Mage Hand, Minor Illusion\\n Orange (6-10 years): 1/day - Color Spray\\n Yellow (11-20 years): 1/day - Mirror Image\\n Green (21-30 years): 1/day - Suggestion\\n Blue (31-40 years): 1/day - Major Image\\n Indigo (41-50 years): 1/day - Hallucinatory Terrain\\n Violet (51+ years): 1/day - Polymorph\"\r\n\t}]\r\n};\r\nCreatureList[\"crawling claw\"] = {\r\n\tname : \"Crawling Claw\",\r\n\tsource : [[\"M\", 44]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Undead\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 2,\r\n\thd : [1, 4], //[#, die]\r\n\tspeed : \"20 ft, climb 20 ft\",\r\n\tscores : [13, 14, 11, 5, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Blindsight 30 ft (blind beyond this radius)\",\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Does bludgeoning or slashing damage (claw's choice)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Turn Immunity\",\r\n\t\tdescription : \"The claw is immune to effects that turn undead.\"\r\n\t}]\r\n};\r\nCreatureList[\"peryton\"] = {\r\n\tname : \"Peryton\",\r\n\tsource : [[\"M\", 251]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Monstrosity\",\r\n\tcompanion : \"steed\",\r\n\talignment : \"Chaotic Evil\",\r\n\tac : 13,\r\n\thp : 33,\r\n\thd : [6, 8], //[#, die]\r\n\tspeed : \"20 ft, fly 60 ft\",\r\n\tscores : [16, 12, 13, 9, 12, 10], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight/smell\",\r\n\tpassivePerception : 16,\r\n\tlanguages : \"understands Common and Elvish, but can't speak\",\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One gore and one talons attack as an Attack action; +2d8 after 30 ft dive straight down\"\r\n\t}, {\r\n\t\tname : \"Talons\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One talons and one gore attack as an Attack action; +2d8 after 30 ft dive straight down\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the peryton can make one Gore and one Talon attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Dive Attack\",\r\n\t\tdescription : \"If the peryton is flying and dives at least 30 ft. straight toward a target and then hits it with a melee weapon attack, the attack deals an extra 9 (2d8) damage to the target.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The peryton doesn't provoke an opportunity attack when it flies out of an enemy's reach.\"\r\n\t}, {\r\n\t\tname : \"Keen Sight and Smell\",\r\n\t\tdescription : \"The peryton has advantage on Wisdom (Perception) checks that rely on sight or smell.\"\r\n\t}]\r\n};\r\n\r\n// Blights and spores\r\nCreatureList[\"needle blight\"] = {\r\n\tname : \"Needle Blight\",\r\n\tnameAlt : [\"Blight, Needle\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 11,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 12, 13, 4, 8, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Needles\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"30/60 ft\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"twig blight\"] = {\r\n\tname : \"Twig Blight\",\r\n\tnameAlt : [\"Blight, Twig\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 4, //Small\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 13,\r\n\thp : 4,\r\n\thd : [1, 6], //[#, die]\r\n\tspeed : \"20 ft\",\r\n\tscores : [6, 13, 12, 4, 8, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tdamage_vulnerabilities : \"fire\",\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"False Appearance\",\r\n\t\tdescription : \"While the blight remains motionless, it is indistinguishable from a dead shrub.\"\r\n\t}]\r\n};\r\nCreatureList[\"vine blight\"] = {\r\n\tname : \"Vine Blight\",\r\n\tnameAlt : [\"Blight, Vine\"],\r\n\tsource : [[\"M\", 32]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Plant\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 12,\r\n\thp : 26,\r\n\thd : [4, 8], //[#, die]\r\n\tspeed : \"10 ft\",\r\n\tscores : [15, 8, 14, 5, 10, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"stealth\" : 1\r\n\t},\r\n\tcondition_immunities : \"blinded, deafened\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius).\",\r\n\tpassivePerception : 9,\r\n\tlanguages : \"Common\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Constrict\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Large or smaller target is grappled and restrained (escape DC 12); Can't use constrict again until grapple ends\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"False Appearance\",\r\n\t\tdescription : \"While the blight remains motionless, it is indistinguishable from a tangle of vines.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Entangling Plants (Recharge 5-6)\",\r\n\t\tdescription : \"As an action, grasping roots and vines sprout in a 15-ft radius centered on the blight, withering away after 1 minute. For the duration, that area is difficult terrain for nonplant creatures. In addition, each creature of the blight's choice in that area when the plants appear must succeed on a DC 12 Strength saving throw or become restrained. A creature can use its action to make a DC 12 Strength check, freeing it self or another entangled creature within reach on a success.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t(typePF ? \"##Senses##. \" : \"\") + \"Blindsight 60 ft (blind beyond).\",\r\n\t\t\"##Immunities##. Blinded, deafened.\",\r\n\t\t\"##Entangling Plants (Recharge 5-6)##. As an action, 15-ft radius is difficult terrain for nonplant creatures for 1 min. Chosen creatures in it must make a DC 12 Str save or become restrained. A creature can use its action to free itself or another within reach with a DC 12 Str check.\",\r\n\t\t\"##False Appearance##. While motionless, it's indistinguishable from a tangle of vines.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\nCreatureList[\"gas spore\"] = {\r\n\tname : \"Gas Spore\",\r\n\tsource : [[\"M\", 138]],\r\n\tsize : 2, //Large\r\n\ttype : \"Plant\",\r\n\talignment : \"Unaligned\",\r\n\tac : 5,\r\n\thp : 1,\r\n\thd : [1, 10], //[#, die]\r\n\tspeed : \"fly 10 ft (hover)\",\r\n\tscores : [5, 1, 3, 1, 1, 1], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tcondition_immunities : \"blinded, deafened, frightened\",\r\n\tsenses : \"Blindsight 30 ft (blind beyond this radius).\",\r\n\tpassivePerception : 5,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Touch\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, \"\", \"poison\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"DC 10 Con save or infected with Death Burst disease, see traits\",\r\n\t\tmodifiers : [1, \"\"],\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"The gas spore explodes when it drops to 0 hit points. Each creature within 20 feet of it must succeed on a DC 15 Constitution saving throw or take 10 (3d6) poison damage and become infected with a disease on a failed save. Creatures immune to the poisoned condition are immune to this disease.\\n   Spores invade an infected creature's system, killing the creature in a number of hours equal to 1d12+the creature's Constitution score, unless the disease is removed. In half that time, the creature becomes poisoned for the rest of the duration. After the creature dies, it sprouts 2d4 Tiny gas spores that grow to full size in 7 days.\"\r\n\t}, {\r\n\t\tname : \"Eerie Resemblance\",\r\n\t\tdescription : \"The gas spore resembles a beholder. A creature that can see the gas spore can discern its true nature with a successful DC 15 Intelligence (Nature) check.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t(typePF ? \"##Senses##. \" : \"\") + \"Blindsight 30 ft (blind beyond).\",\r\n\t\t\"##Immunities##. Blinded, deafened, frightened.\",\r\n\t\t\"##Eerie Resemblance##. Distinguishable form a beholder only with a DC 15 Nature check. ##Death Burst##. Explodes at 0 HP: all within 20 ft DC 15 Con save or 3d6 poison damage and infected with disease that kills a creature in 1d12+its Con score of hours. After half that, it's poisoned for the remainder. When dies, sprouts 2d4 Tiny gas spores that grow to full size in 7 days.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\n\r\n// Even though the shield guardian is in the SRD, the description for its control amulet is only found in the Monster Manual\r\nMagicItemsList[\"shield guardian amulet\"] = {\r\n\tname : \"Shield Guardian Amulet\",\r\n\tsource : [[\"M\", 271], [\"RotF\", 149]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tnotLegalAL : true,\r\n\tprerequisite : \"Requires attunement by a humanoid\",\r\n\tprereqeval : function(v) { return !CurrentRace.known || !RaceList[CurrentRace.known] || !/creature type/i.test(RaceList[CurrentRace.known].trait); },\r\n\tdescription : \"A shield guardian is magically linked to this amulet. It has AC 10, 10 HP, and immunity to poison and psychic damage. I know the distance and direction of the guardian while I'm wearing the amulet and I'm on the same plane as it. While within 10 ft of it, I can use the amulet to reactivate it with a DC 20 Arcana check.\",\r\n\tdescriptionFull : \"The amulet is a 4-inch-wide disk composed of silver-framed wood, with a rune carved into its face. A detect magic spell reveals a magical aura of enchantment around the amulet.\"+\r\n\t\"\\n   Every shield guardian has an amulet magically linked to it. A shield guardian can have only one corresponding amulet, and if that amulet is destroyed, the shield guardian is incapacitated until a replacement amulet is created.\"+\r\n\t\"\\n   A shield guardian's amulet is subject to direct attack if it isn't being worn or carried. It has AC 10, 10 hit points, and immunity to poison and psychic damage. Crafting an amulet requires 1 week and costs 1,000 gp in components.\"+\r\n\t\"\\n   A shield guardian's solitary focus is to protect the amulet's wearer. The amulet's wearer can command the guardian to attack its enemies or to guard the wielder against attack. If an attack threatens to injure the wearer, the construct can magically absorb the blow into its own body, even at a distance.\"+\r\n\t\"\\n   A humanoid that attunes to this amulet knows the distance and direction of the shield guardian, provided the amulet and the guardian are on the same plane of existence. As an action, the amulet's attuned wearer can try to reactivate the shield guardian, doing so with a successful DC 20 Intelligence (Arcana) check. Reactivation can only be attempted while the amulet and guardian are within 10 feet of each other.\",\r\n\tcreaturesAdd : [[\"Shield Guardian\"]]\r\n};\r\n\r\n\r\n// Player characters as Lycanthropes race - even though they are in the SRD, the rules for applying their abilities to player characters are not (added in v13.1.13)\r\n/*\r\nGains:\r\n - speed in non-humanoid form\r\n - damage immunities\r\n - traits\r\n - actions that don't involve equipment\r\n\r\n P.S. multiattack is a weird one, going with the interpretation here: https://rpg.stackexchange.com/questions/70694\r\n*/\r\nvar MM_lycanthrope = {\r\n\tcreateDefaultTraits : function(sLycanName, sLycanPlural) {\r\n\t\t// the traits of a human\r\n\t\tvar obj = {\r\n\t\t\tname : \"Human \" + sLycanName,\r\n\t\t\tplural : \"Human \" + sLycanPlural,\r\n\t\t\tlanguageProfs : [\"Common\", 1],\r\n\t\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\t\tscorestxt : \"+1 to all ability scores\",\r\n\t\t\tscores : [1, 1, 1, 1, 1, 1, 1]\r\n\t\t}\r\n\t\treturn obj;\r\n\t},\r\n\tcreateMessage : function(sLycanName, aOtherGains) {\r\n\t\tvar aGained = [\r\n\t\t\t\"Its speed in nonhumanoid form.\",\r\n\t\t\t\"Natural attacks in nonhumanoid form (e.g. bite/claw).\",\r\n\t\t\t\"Damage immunity to bludgeoning, piercing, and slashing from nonmagical attacks that aren't silvered.\",\r\n\t\t\t\"Shapechanger trait.\"\r\n\t\t].concat(aOtherGains);\r\n\t\treturn \"The lycanthrope races are template races. All features and traits of the base race are retained and all the \" + sLycanName + \"'s features are added to it.\"+\r\n\t\t\"\\nIf you choose not to use a previous race as the base race or you selected a \" + sLycanName + \" at character creation, a human (non-variant) will be used as the base race.\"+\r\n\t\t\"\\nThe \" + sLycanName + \"'s features added to the base race are:\"+\r\n\t\tdesc(aGained, \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nThe possible alignment change and moon-related limitations of lycanthrope are not mentioned in this race. Discuss with your DM how they want to handle lycanthrope.\"\r\n\t},\r\n};\r\nRaceList[\"lycanthrope-werebear\"] = {\r\n\tregExpSearch : /were.?bear|^(?=.*lycanthrope)(?=.*bear).*$/i,\r\n\tname : \"Werebear\",\r\n\tsource : [[\"M\", 208]],\r\n\tplural : \"Werebears\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Werebear (+1 to all ability scores; min 19 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a Large bear-hybrid, into a Large bear, or back. In those forms, I gain 40 ft walking speed, 30 ft climb speed, +1 AC, and a bite and claw attack. My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my bite must save or be cursed with werebear lycanthrope.\",\r\n\t\t\"Keen Smell: I have adv. on Wis (Perception) checks using smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 208]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 19 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a Large bear-hybrid, into a Large bear, or back\",\r\n\t\t\t\t\t\"In my bear and hybrid forms, I gain 40 ft walking speed, 30 ft climb speed, and +1 AC\",\r\n\t\t\t\t\t\"In these forms I also gain a bite and claw attack, but can't use bite as part of a multiattack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with werebear lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, none of which can be with my werebear bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (bear/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, no bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [19, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Werebear Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werebear|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 208]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Bear and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Werebear Claw\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werebear|lycanthrope))(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 208]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Bear and Hybrid form only\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in bear/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my bear or bear-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tsource : [[\"M\", 208]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Drow Werebear\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"werebear\", [\r\n\t\t\t\"Strength increase to 19 unless it was already higher.\",\r\n\t\t\t\"Keen Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Werebear\", \"Werebears\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\nRaceList[\"lycanthrope-wereboar\"] = {\r\n\tregExpSearch : /were.?boar|^(?=.*lycanthrope)(?=.*boar).*$/i,\r\n\tname : \"Wereboar\",\r\n\tsource : [[\"M\", 209]],\r\n\tplural : \"Wereboars\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Wereboar (+1 to all ability scores; min 17 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a boar-\" + (typePF ? \"\" : \"humanoid \") + \"hybrid, into a boar, or back. In those forms, I gain 40 ft walking speed, +1 AC, and a tusks attack. My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my tusks must save or be cursed\" + (typePF ? \".\" : \" with lycanthrope.\"),\r\n\t\t\"Relentless: If I'm reduced to 0 HP by 14 damage or less, I can instead drop to 1 HP.\",\r\n\t\t\"Charge: If I move 15 ft straight before a tusks hit, +2d6 damage and Str save or prone.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 17 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a boar-humanoid hybrid, into a boar, or back\",\r\n\t\t\t\t\t\"In my boar and hybrid forms, I gain 40 ft walking speed, a tusks attack, and +1 AC\",\r\n\t\t\t\t\t\"I also gain a bite and claw attack; As an action, I can make two claw attacks (multiattack)\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with wereboar lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my wereboar tusks\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (boar/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 tusks)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [17, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Wereboar Tusks\",\r\n\t\t\t\tregExpSearch : /^(?=.*(wereboar|lycanthrope))(?=.*tusks).*$/i,\r\n\t\t\t\tsource : [[\"M\", 209]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Boar/hybrid form only; Humanoids Con save or cursed; Charge for +2d6 damage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in boar/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my boar or boar-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\twereboar_relentless : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Relentless\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If I'm reduced to 0 HP by an affect dealing 14 damage or less, I can instead drop to 1 HP\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in boar or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\twereboar_charge : {\r\n\t\t\tname : \"Charge\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If, in one turn, I move straight for 15 ft and then hit with my tusks, I deal +2d6 damage\",\r\n\t\t\t\t\t\"Those hit like this must make a Str save or be knocked prone (DC 8 + Prof B. + Str mod)\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in boar or hybrid form only\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"High Elf Wereboar\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"wereboar\", [\r\n\t\t\t\"Strength increase to 17 unless it was already higher.\",\r\n\t\t\t\"Relentless and Charge traits.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Wereboar\", \"Wereboars\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t},\r\n\tabilitySave : 1 // for charge trait\r\n};\r\nRaceList[\"lycanthrope-wererat\"] = {\r\n\tregExpSearch : /were.?rat|^(?=.*lycanthrope)(?=.*rat).*$/i,\r\n\tname : \"Wererat\",\r\n\tsource : [[\"M\", 209]],\r\n\tplural : \"Wererats\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Wererat (+1 to all ability scores; min 15 Dex)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can transform into a rat-humanoid hybrid, into a giant rat, or back. In those forms, I gain a bite attack, which can use Strength or Dexterity. In my giant rat form, I also become small and gain Darkvision 60 ft My stats don't otherwise change when transformed, but my equipment doesn't change and I revert back when I die. Humanoids hit by my bite must save or be cursed with wererat lycanthrope.\",\r\n\t\t\"Keen Smell: I have adv. on Wis (Perception) checks using smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Dexterity score increases to 15 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can transform into a rat-humanoid hybrid, into a giant rat (Small), or back\",\r\n\t\t\t\t\t\"In my rat and hybrid forms, I gain a bite attack that can use either Strength or Dexterity\",\r\n\t\t\t\t\t\"In my giant rat form, I also become small and gain Darkvision 60 ft\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with wererat lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my wererat bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (giant rat/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [0, 15, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Wererat Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(wererat|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 209]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Rat and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisWereratBite : true, // for calcChanges.atkAdd\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isWereratBite) fields.Mod = v.StrDex;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'I can use Strength or Dexterity for my Wererat Bite, whichever is higher.'\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tsource : [[\"M\", 209]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Lizardfolk Wererat\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"wererat\", [\r\n\t\t\t\"Dexterity increase to 15 unless it was already higher.\",\r\n\t\t\t\"Keen Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Wererat\", \"Wererats\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\nRaceList[\"lycanthrope-weretiger\"] = {\r\n\tregExpSearch : /were.?tiger|^(?=.*lycanthrope)(?=.*tiger).*$/i,\r\n\tname : \"Weretiger\",\r\n\tsource : [[\"M\", 210]],\r\n\tplural : \"Weretigers\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Weretiger (+1 to all ability scores; min 15 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a tiger-humanoid hybrid, into a Large tiger, or back. In those forms, I gain 40 ft walking speed, a bite attack, and a claw attack. My stats don't otherwise change when transformed, but my equipment doesn't transform and I revert back when I die. Humanoids hit by my bite must save or be cursed with weretiger lycanthrope.\"+\r\n\t\t(typePF ? \"\\n \\u2022 Pounce: \" : \" \") + \"I can pounce in my tiger and hybrid form, see notes.\",\r\n\t\t\"Keen Hearing and Smell: I have adv. on Wis (Perception) checks using hearing or smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 17 unless it was already higher; I gain 60 ft darkvision\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a tiger-humanoid hybrid, into a Large tiger, or back\",\r\n\t\t\t\t\t\"In my tiger and hybrid forms, I gain 40 ft walking speed, a bite attack, and a claw attack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with weretiger lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, none of which can be with my weretiger bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (tiger/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, no bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [17, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Weretiger Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(weretiger|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 210]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Tiger and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Weretiger Claw\",\r\n\t\t\t\tregExpSearch : /^(?=.*(weretiger|lycanthrope))(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 210]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Tiger and Hybrid form only; Can be use to pounce\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Darkvision\", 60]]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on hearing or smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Hearing and Smell\", 0]]\r\n\t\t},\r\n\t\tweretiger_pounce : {\r\n\t\t\tname : \"Pounce\",\r\n\t\t\tsource : [[\"M\", 210]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Pounce\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"If, in one turn, I move straight for 15 ft and then hit with my claw, I can pounce a target\",\r\n\t\t\t\t\t\"The creature must make a Str save or be knocked prone (DC 8 + Prof Bonus + Str mod)\",\r\n\t\t\t\t\t\"If I knocked someone prone, I can then make a bite attack against them as a bonus action\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in tiger or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"bonus action\", \"Bite after successful Pounce\"]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Mountain Dwarf Weretiger\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"weretiger\", [\r\n\t\t\t\"Strength increase to 17 unless it was already higher.\",\r\n\t\t\t\"Keen Hearing and Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Weretiger\", \"Weretigers\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t},\r\n\tabilitySave : 1 // for pounce trait\r\n};\r\nRaceList[\"lycanthrope-werewolf\"] = {\r\n\tregExpSearch : /were.?wol(f|ve)|^(?=.*lycanthrope)(?=.*wol(f|ve)).*$/i,\r\n\tname : \"Werewolf\",\r\n\tsource : [[\"M\", 211]],\r\n\tplural : \"Werewolves\",\r\n\tsize : 3,\r\n\tspeed : { walk : { spd : 30, enc : 20 } },\r\n\ttrait : \"Human Werewolf (+1 to all ability scores; min 15 Str)\" + desc([\r\n\t\t\"Shapechanger: As an action, I can polymorph into a wolf-humanoid hybrid, into a wolf, or back. In those forms, I gain 40 ft walking speed, a bite attack, and +1 AC. In my hybrid form, I also gain a claws attack. My stats don't otherwise change when transformed, but my equipment doesn't transform and I revert back when I die. Humanoids hit by my bite must save or be cursed with werewolf lycanthrope.\",\r\n\t\t\"Keen Hearing and Smell: I have adv. on Wis (Perception) checks using hearing or smell.\"\r\n\t], \"\\n \\u2022 \"),\r\n\tfeatures : {\r\n\t\tlycanthrope_features : {\r\n\t\t\tname : \"Lycanthrope\",\r\n\t\t\tsource : [[\"M\", 211]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Lycanthrope\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"My Strength score increases to 15 unless it was already higher\",\r\n\t\t\t\t\t\"As an action, I can polymorph into a wolf-humanoid hybrid, into a wolf, or back\",\r\n\t\t\t\t\t\"In my wolf and hybrid forms, I gain 40 ft walking speed, a bite attack, and +1 AC\",\r\n\t\t\t\t\t\"In my hybrid form, I also gain a claws attack\",\r\n\t\t\t\t\t\"My stats don't otherwise change, my equipment doesn't transform and I revert back if I die\",\r\n\t\t\t\t\t\"Humanoids hit by my bite must make a Con save or be cursed with werewolf lycanthrope\",\r\n\t\t\t\t\t\"The DC to avoid this curse is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"As an action, I can make two attacks, only one of which can be with my werewolf bite\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tadditional : \"in humanoid or hybrid form only\"\r\n\t\t\t}],\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Shapechange (wolf/hybrid/back)\"],\r\n\t\t\t\t[\"action\", \"Multiattack (2 attacks, max 1 bite)\"]\r\n\t\t\t],\r\n\t\t\tscoresOverride : [15, 0, 0, 0, 0, 0],\r\n\t\t\tsavetxt : { immune : [\"bludgeoning, piercing, and slashing damage unless from magic/silver\"] },\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Werewolf Bite\",\r\n\t\t\t\tregExpSearch : /^(?=.*(werewolf|lycanthrope))(?=.*bite).*$/i,\r\n\t\t\t\tsource : [[\"M\", 211]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Wolf and Hybrid form only; Humanoids Con save or cursed\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Wolf-hybrid Claws\",\r\n\t\t\t\tregExpSearch : /^(?=.*wolf)(?=.*hybrid)(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\t\tsource : [[\"M\", 211]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [2, 4, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Hybrid form only\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraAC : [{\r\n\t\t\t\tname : \"+1 in wolf/hybrid form\",\r\n\t\t\t\tmod : 0,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm in my wolf or wolf-hybrid form. This bonus is not added by default, it has to be added/removed manually when changing form.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\tlycanthrope_keen_senses : {\r\n\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\tsource : [[\"M\", 211]],\r\n\t\t\tminlevel : 1,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I have advantage on Wisdom (Perception) checks that rely on hearing or smell\"\r\n\t\t\t\t],\r\n\t\t\t\tpage3notes : true\r\n\t\t\t}],\r\n\t\t\tvision : [[\"Keen Hearing and Smell\", 0]]\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tupdateName : \"prefix\", // e.g. \"Rock Gnome Werewolf\"\r\n\t\tmessage : MM_lycanthrope.createMessage(\"werewolf\", [\r\n\t\t\t\"Strength increase to 15 unless it was already higher.\",\r\n\t\t\t\"Keen Hearing and Smell trait.\"\r\n\t\t]),\r\n\t\tdefaultTraits : MM_lycanthrope.createDefaultTraits(\"Werewolf\", \"Werewolves\"),\r\n\t\tgainTraits : [\"everything\"]\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20141209_DMG.js",
    "content": "var iFileName = \"pub_20141209_DMG.js\";\r\nRequiredSheetVersion(\"13.2.0\");\r\n// This file adds all the player-material from the Dungeon Master's Guide to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.D={\r\n\tname : \"Dungeon Master's Guide\",\r\n\tabbreviation : \"DMG\",\r\n\tgroup : \"Core Sources\",\r\n\turl : \"https://dnd.wizards.com/products/dungeon-masters-guide\",\r\n\tdate : \"2014/12/09\"\r\n};\r\n\r\n// Races\r\nRaceList[\"aasimar\"] = {\r\n\tregExpSearch : /^(?!.*(fallen|protector|scourge))((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel)))).*$/i,\r\n\tname : \"Aasimar\",\r\n\tsource : [[\"D\", 286]],\r\n\tplural : \"Aasimar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 1, 2],\r\n\ttrait : \"Aasimar (+1 Wisdom, +2 Charisma)\\n\\nCelestial Legacy:\\n   I know the Light cantrip.\\n   Once I reach 3rd level, I can cast the Lesser Restoration spell once per long rest.\\n   Once I reach 5th level, I can cast the Daylight spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Celestial Legacy (level 1)\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tname : \"Celestial Legacy (level 3)\",\r\n\t\t\tlimfeaname : \"Lesser Restoration\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Celestial Legacy (level 3)\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"daylight\" : {\r\n\t\t\tname : \"Celestial Legacy (level 5)\",\r\n\t\t\tlimfeaname : \"Daylight\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 5,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Celestial Legacy (level 5)\",\r\n\t\t\t\tspells : [\"daylight\"],\r\n\t\t\t\tselection : [\"daylight\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"eladrin\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin)\",\r\n\tsource : [[\"D\", 286]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 1, 0, 0],\r\n\ttrait : \"Eladrin (+2 Dexterity, +1 Intelligence)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nFey Step: I can cast the Misty Step spell once using this trait. I regain the ability to do so when I finish a short rest.\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fey Step\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Subclasses\r\nAddSubClass(\"cleric\", \"death domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(death|dead|dying)).*$/i,\r\n\tsubname : \"Death Domain\",\r\n\tsource : [[\"D\", 96]],\r\n\tspellcastingExtra : [\"false life\", \"ray of sickness\", \"blindness/deafness\", \"ray of enfeeblement\", \"animate dead\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"cloudkill\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"D\", 96]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons\"),\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Reaper\",\r\n\t\t\tsource : [[\"D\", 96]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I learn one necromancy cantrip of my choice from any spell list\",\r\n\t\t\t\t\"My necromancy, single-target cantrips can affect two targets within 5 ft of each other\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reaper\",\r\n\t\t\t\t\"class\" : \"any\",\r\n\t\t\t\tschool : [\"Necro\"],\r\n\t\t\t\tlevel : [0, 0]\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.school == \"Necro\" && spellObj.level === 0) {\r\n\t\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\t\tcase \"chill touch\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Spell attack\", \"2 crea in 5 ft spell atk\").replace(\"Necrotic\", \"Necro.\").replace(\"at CL 5, 11, and 17\", \"CL 5/11/17\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"spare the dying\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 living creature\", \"1 living creature (or 2 within 5 ft of each other)\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"toll the dead\" :\r\n\t\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/1 crea(ture)?/i, \"2 crea in 5 ft\").replace(\"disadvantage\", \"disadv.\").replace(\"save halves\", \"save half\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My necromancy, single-target cantrips can affect two targets within 5 ft of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Touch of Death\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"When I hit a creature with a melee attack, I can deal extra necrotic damage\"),\r\n\t\t\tadditional : [\"\", \"+9 damage\", \"+11 damage\", \"+13 damage\", \"+15 damage\", \"+17 damage\", \"+19 damage\", \"+21 damage\", \"+23 damage\", \"+25 damage\", \"+27 damage\", \"+29 damage\", \"+31 damage\", \"+33 damage\", \"+35 damage\", \"+37 damage\", \"+39 damage\", \"+41 damage\", \"+43 damage\", \"+45 damage\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Inescapable Destruction\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I deal necrotic damage with spells or Channel Divinity, I ignore resistance to it\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 necrotic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 necrotic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra necrotic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Improved Reaper\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I cast a 5th-level or lower necromancy spell that has one target, I can target two\",\r\n\t\t\t\t\"They need to be within 5 ft of each other; I have to provide material comp. for both\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.school == \"Necro\" && spellObj.level && spellObj.level < 6) {\r\n\t\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\t\tcase \"blindness/deafness\" :\r\n\t\t\t\t\t\t\t\t\t// only 2 target if not cast at higher SL\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 crea in 5 ft or \" + spellObj.description;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"contagion\" :\r\n\t\t\t\t\t\t\t\tcase \"inflict wounds\" :\r\n\t\t\t\t\t\t\t\tcase \"ray of enfeeblement\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(Melee )?spell attack/i, \"2 \" + \"$1\".toLowerCase() + \"spell atk in 5 ft\").replace(\"spell ends\", \"ends\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"cause fear\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 crea in 5 ft or 1+1/SL crea max 30 ft apart (no constr/undead), save or frightened; save end of turn\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"feign death\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = \"2 willing crea in 5 ft appear dead; Are blinded, incapacitated, dmg resist. all but Psychic, speed 0\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"gentle repose\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 corpse protected from\", \"2 corpses in 5 ft suffer no\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"raise dead\" :\r\n\t\t\t\t\t\t\t\tcase \"revivify\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"a creature's body that has\", \"body of 2 crea in 5 ft that\").replace(\"cons.)\", \"cons. \\xD72)\");\r\n\t\t\t\t\t\t\t\t\tspellObj.compMaterial += \" (once for each target)\";\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"speak with dead\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 corpse with mouth answers 5 questions\", \"2 corpses in 5 ft answer 5 questions each\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase \"enervation\" :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"action\", \"1 a\").replace(\"see book\", \"see B\");\r\n\t\t\t\t\t\t\t\tcase \"bestow curse\" :\r\n\t\t\t\t\t\t\t\tcase \"blight\" :\r\n\t\t\t\t\t\t\t\tcase \"cause fear-uass\" :\r\n\t\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\t\tcase \"negative energy flood\" :\r\n\t\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/1 crea(ture)?/i, \"2 crea in 5 ft\").replace(\"disadvantage\", \"disadv.\").replace(\"save halves\", \"save half\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My necromancy, single-target 5th-level or lower spells can affect two targets within 5 ft of each other if both are within range of the spell. The spells still require material components for each target separately.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oathbreaker\", {\r\n\tregExpSearch : /^((?=.*blackguard)|((?=.*(oath.*breaker|breaker.*oath))((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))))).*$/i,\r\n\tsubname : \"Oathbreaker\",\r\n\tsource : [[\"D\", 97]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Control Undead\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, one undead (CR < paladin level) I can see in 30 ft must make a Wis save\",\r\n\t\t\t\t\"If failed, it must obey my commands for 24 hours or until I use this on another\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"hellish rebuke\", \"inflict wounds\", \"crown of madness\", \"darkness\", \"animate dead\", \"bestow curse\", \"blight\", \"confusion\", \"contagion\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Dreadful Aspect\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, anyone I choose within 30 ft that can see me must make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is frightened for 1 min or until it succeeds a save at the end of its turns\",\r\n\t\t\t\t\"It can't save at the end of its turn if it's still within 30 ft of me\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Hate\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Fiends/undead within range and I add my Cha mod as bonus on melee weapon damage\",\r\n\t\t\t\t\"Multiple Auras of Hate don't stack; only the strongest applies\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Cha mod added to damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my Charisma modifier to my melee weapon damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Number(What(\"Cha Mod\"));\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Supernatural Resistance\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I have resistance to bludgeoning/piercing/slashing damage from nonmagical weapons\"),\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Dread Lord\",\r\n\t\t\tsource : [[\"D\", 97]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I gain a 30-ft aura of gloom that reduces bright light to dim for 1 min\",\r\n\t\t\t\t\"If frightened of me, foes starting their turn in the aura take 4d10 psychic damage\",\r\n\t\t\t\t\"Attacks vs. my allies and me inside the aura have disadvantage if attackers need sight\",\r\n\t\t\t\t\"As a bonus action, I can make a melee spell attack vs. a target inside the aura\",\r\n\t\t\t\t\"If this attack hits, it does 3d10 + Charisma modifier necrotic damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Magic Items not found in the SRD\r\nMagicItemsList[\"alchemy jug\"] = {\r\n\tname : \"Alchemy Jug\",\r\n\tsource : [[\"D\", 150]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"As an action, command the jug to produce liquid; or an action to uncorked it and pour 2 gal/min. After producing, it only makes the same up to its max, until next dawn. Oil (1 qt), acid (8 fl oz), basic poison (1/2 fl oz), beer (4 gal), honey/wine (1 gal), fresh water (8 gal), mayonnaise/vinegar (2 gal), salt water (12 gal).\",\r\n\tdescriptionLong : \"A heavy ceramic jug. As an action, the jug can be commanded to hold a chosen liquid. With another action, I can uncork the jug and pour the liquid out at 2 gallons per minute. Once commanded to produce a liquid, it can't produce a different one or more than the maximum of one, until the next dawn.\\rLiquids (with maximum): acid (8 fl. oz.), basic poison (1/2 fl. oz.), beer (4 gallons), honey (1 gallon), mayonnaise (2 gallons), oil (1 quart), vinegar (2 gallons), fresh water (8 gallons), salt water (12 gallons), wine (1 gallon).\",\r\n\tdescriptionFull : \"This ceramic jug appears to be able to hold a gallon of liquid and weighs 12 pounds whether full or empty. Sloshing sounds can be heard from within the jug when it is shaken, even if the jug is empty.\"+\r\n\t\"\\n   You can use an action and name one liquid from the table below to cause the jug to produce the chosen liquid. Afterward, you can uncork the jug as an action and pour that liquid out, up to 2 gallons per minute. The maximum amount of liquid the jug can produce depends on the liquid you named.\"+\r\n\t\"\\n   Once the jug starts producing a liquid, it can't produce a different one, or more of one that has reached its maximum, until the next dawn.\\n\\n\"+\r\n\ttoUni(\"Max        \\tLiquid\\t\\tMax        \\tLiquid\")+\r\n\t\"\\n8 ounces  \\tAcid\\t\\t1 quart   \\tOil\"+\r\n\t\"\\n1/2 ounce\\tBasic poison\\t2 gallons  \\tVinegar\"+\r\n\t\"\\n4 gallons  \\tBeer\\t\\t8 gallons  \\tWater, fresh\"+\r\n\t\"\\n1 gallon    \\tHoney\\t\\t12 gallons\\tWater, salt\"+\r\n\t\"\\n2 gallons \\tMayonnaise\\t1 gallon    \\tWine\",\r\n\tweight : 12\r\n}\r\nMagicItemsList[\"cap of water breathing\"] = {\r\n\tname : \"Cap of Water Breathing\",\r\n\tsource : [[\"D\", 157]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this cap underwater, I can speak its command word as an action to create a bubble of air around my head. It allows me to breathe normally underwater. This bubble stays with me until I speak the command word again, the cap is removed, or I am no longer underwater.\",\r\n\tdescriptionFull : \"While wearing this cap underwater, you can speak its command word as an action to create a bubble of air around your head. It allows you to breathe normally underwater. This bubble stays with you until you speak the command word again, the cap is removed, or you are no longer underwater.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"cloak of invisibility\"] = {\r\n\tname : \"Cloak of Invisibility\",\r\n\tsource : [[\"D\", 158]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"As an action, I can pull the hood of this cloak down or up over my head, making myself invisible (down) or visible again (up). While invisible, anything I carry or wear is invisible as well. It functions for 2 hours, usable in increments of 1 minute. It regains 1 hour of duration for every 12 hours not being used.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can pull its hood over your head to cause yourself to become invisible. While you are invisible, anything you are carrying or wearing is invisible with you. You become visible when you cease wearing the hood. Pulling the hood up or down requires an action.\\n   Deduct the time you are invisible, in increments of 1 minute, from the cloak's maximum duration of 2 hours. After 2 hours of use, the cloak ceases to function. For every uninterrupted period of 12 hours the cloak goes unused, it regains 1 hour of duration.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\tusages : \"120 min\",\r\n\trecovery : \"Special\",\r\n\tadditional : \"regain 1h/12h\"\r\n}\r\nMagicItemsList[\"driftglobe\"] = {\r\n\tname : \"Driftglobe\",\r\n\tsource : [[\"D\", 166]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : [\"A\", \"B\"],\r\n\tdescription : \"By speaking its command word while within 60 ft, this glass sphere casts Light or Daylight on itself. Daylight only works once per dawn. While lit up, I can use an action to speak another command word to make it hover 5 ft off the ground and follow me at a distance of 60 ft. It stops hovering when grasped.\",\r\n\tdescriptionFull : \"This small sphere of thick glass weighs 1 pound. If you are within 60 feet of it, you can speak its command word and cause it to emanate the Light or Daylight spell. Once used, the Daylight effect can't be used again until the next dawn.\\n   You can speak another command word as an action to make the illuminated globe rise into the air and float no more than 5 feet off the ground. The globe hovers in this way until you or another creature grasps it. If you move more than 60 feet from the hovering globe, it follows you until it is within 60 feet of you. It takes the shortest route to do so. If prevented from moving, the globe sinks gently to the ground and becomes inactive, and its light winks out.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \" (hover)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Daylight\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"On globe\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"On globe\",\r\n\t\tspells : [\"daylight\"],\r\n\t\tselection : [\"daylight\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"light\" : {\r\n\t\t\trange : \"Globe\",\r\n\t\t\tdescription : \"Driftglobe sheds bright light in a 20-ft radius and dim light in an additional 20-ft radius\",\r\n\t\t\tchanges : \"The spell can only affect the globe.\"\r\n\t\t},\r\n\t\t\"daylight\" : {\r\n\t\t\trange : \"Globe\",\r\n\t\t\tdescription : \"Driftglobe shed 60-ft rad bright light + 60-ft dim light; only magical darkness of SL 4+ works in it\",\r\n\t\t\tchanges : \"The spell can only affect the globe.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"efreeti chain\"] = {\r\n\tname : \"Efreeti Chain\",\r\n\tsource : [[\"D\", 167]],\r\n\ttype : \"armor (chain mail)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"While wearing this armor, I gain a +3 bonus to AC, I am immune to fire damage, and I can understand and speak Primordial. In addition, I can stand on and walk across molten rock as if it were solid ground.\",\r\n\tdescriptionFull : \"While wearing this armor, you gain a +3 bonus to AC, you are immune to fire damage, and you can understand and speak Primordial. In addition, you can stand on and walk across molten rock as if it were solid ground.\",\r\n\tattunement : true,\r\n\tweight : 55,\r\n\tlanguageProfs : [\"Primordial\"],\r\n\tsavetxt : { immune : [\"fire\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*efreeti)(?=.*chain).*$/i,\r\n\t\tname : \"Efreeti Chain\",\r\n\t\tsource : [[\"D\", 167]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"16+3\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 55,\r\n\t\tstrReq : 13,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"elixir of health\"] = {\r\n\tname : \"Elixir of Health\",\r\n\tsource : [[\"D\", 168]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to cure any disease, and removing the blinded, deafened, paralyzed, and poisoned conditions. The potion's clear red liquid has tiny bubbles of light in it.\",\r\n\tdescriptionFull : \"When you drink this potion, it cures any disease afflicting you, and it removes the blinded, deafened, paralyzed, and poisoned conditions. The clear red liquid has tiny bubbles of light in it.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"gloves of thievery\"] = {\r\n\tname : \"Gloves of Thievery\",\r\n\tsource : [[\"D\", 172]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"These gloves are invisible while worn. While wearing them, I gain a +5 bonus to Dexterity (Sleight of Hand) checks and Dexterity checks made to pick locks.\",\r\n\tdescriptionFull : \"These gloves are invisible while worn. While wearing them, you gain a +5 bonus to Dexterity (Sleight of Hand) checks and Dexterity checks made to pick locks.\",\r\n\taddMod : [{ type: \"skill\", field : \"Sleight of Hand\", mod : 5, text : \"I gain a +5 bonus to Dexterity (Sleight of Hand) checks while wearing Gloves of Thievery.\" }]\r\n}\r\nMagicItemsList[\"instrument of the bards\"] = {\r\n\tname : \"Instrument of the Bards\",\r\n\tsource : [[\"D\", 176]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\tdescription : \"If I play this exquisite, magical instruments while casting a spell that has a somatic or material component and charms on a failed save, it imposes disadvantage on that save. I can also use it to cast a set of spells, each once per dawn, using my spellcasting ability and spell save DC.\",\r\n\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\",\r\n\tattunement : true,\r\n\tweight : 3, // Magic of Faerûn (2001) page 161\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tchoices : [\"Anstruth Harp (very rare)\", \"Canaith Mandolin (rare)\", \"Cli Lyre (rare)\", \"Doss Lute (uncommon)\", \"Fochlucan Bandore (uncommon)\", \"Mac-Fuirmidh Cittern (uncommon)\", \"Ollamh Harp (legendary)\"],\r\n\t\"anstruth harp (very rare)\" : {\r\n\t\tname : \"Anstruth Harp [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Anstruth Harp\",\r\n\t\trarity : \"very rare\",\r\n\t\tmagicItemTable : \"H\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Anstruth harp can be used to cast Control Weather, Cure Wounds (5th level), and Wall of Thorns.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"control weather\", \"cure wounds\", \"wall of thorns\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"control weather\", \"cure wounds\", \"wall of thorns\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"cure wounds\" : {\r\n\t\t\t\tdescription : \"1 living creature heals 5d8+spellcasting ability modifier HP\",\r\n\t\t\t\tchanges : \"When using the Anstruth Harp to cast Cure Wounds, it is cast at 5th-level.\"\r\n\t\t\t},\r\n\t\t\t\"control weather\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tchanges : \"Casting time is only an action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"canaith mandolin (rare)\" : {\r\n\t\tname : \"Canaith Mandolin [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Canaith Mandolin\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Canaith mandolin can be used to cast Cure Wounds (3rd level), Dispel Magic, and Protection from Energy (lightning only).\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"cure wounds\", \"dispel magic\", \"protection from energy\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"cure wounds\", \"dispel magic\", \"protection from energy\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"cure wounds\" : {\r\n\t\t\t\tdescription : \"1 living creature heals 3d8+spellcasting ability modifier HP\",\r\n\t\t\t\tchanges : \"When using the Canaith Mandolin to cast Cure Wounds, it is cast at 3rd-level.\"\r\n\t\t\t},\r\n\t\t\t\"protection from energy\" : {\r\n\t\t\t\tdescription : \"1 creature gains resistance to Lightning damage for the duration\",\r\n\t\t\t\tchanges : \"When using the Canaith Mandolin to cast Protection from Energy, it can only grant resistance to lightning damage.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"cli lyre (rare)\" : {\r\n\t\tname : \"Cli Lyre [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Cli Lyre\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Cli lyre can be used to cast Stone Shape, Wall of Fire, and Wind Wall.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"stone shape\", \"wall of fire\", \"wind wall\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"stone shape\", \"wall of fire\", \"wind wall\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"doss lute (uncommon)\" : {\r\n\t\tname : \"Doss Lute [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Doss Lute\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Doss lute can be used to cast Animal Friendship, Protection from Energy (fire only), and Protection from Poison.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"animal friendship\", \"protection from energy\", \"protection from poison\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"animal friendship\", \"protection from energy\", \"protection from poison\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"protection from energy\" : {\r\n\t\t\t\tdescription : \"1 creature gains resistance to Fire damage for the duration\",\r\n\t\t\t\tchanges : \"When using the Doss Lute to cast Protection from Energy, it can only grant resistance to fire damage.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"fochlucan bandore (uncommon)\" : {\r\n\t\tname : \"Fochlucan Bandore [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Fochlucan Bandore\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Fochlucan bandore can be used to cast Entangle, Faerie Fire, Shillelagh, and Speak with Animals.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"entangle\", \"faerie fire\", \"shillelagh\", \"speak with animals\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"entangle\", \"faerie fire\", \"shillelagh\", \"speak with animals\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 8,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"mac-fuirmidh cittern (uncommon)\" : {\r\n\t\tname : \"Mac-Fuirmidh Cittern [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Mac-Fuirmidh Cittern\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Mac-Fuirmidh cittern can be used to cast Barkskin, Cure Wounds, and Fog Cloud.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"barkskin\", \"cure wounds\", \"fog cloud\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"barkskin\", \"cure wounds\", \"fog cloud\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}]\r\n\t},\r\n\t\"ollamh harp (legendary)\" : {\r\n\t\tname : \"Ollamh Harp [Instrument of the Bards]\",\r\n\t\tsortname : \"Instrument of the Bards, Ollamh Harp\",\r\n\t\trarity : \"legendary\",\r\n\t\tmagicItemTable : \"I\",\r\n\t\tdescriptionFull : \"An instrument of the bards is an exquisite example of its kind, superior to an ordinary instrument in every way. Seven types of these instruments exist, each named after a legendary bard college. A creature that attempts to play the instrument without being attuned to it must succeed on a DC 15 Wisdom saving throw or take 2d4 psychic damage.\\n   You can use an action to play the instrument and cast one of its spells. Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn. The spells use your spellcasting ability and spell save DC.\\n   You can play the instrument while casting a spell that causes any of its targets to be charmed on a failed saving throw, thereby imposing disadvantage on the save. This effect applies only if the spell has a somatic or a material component.\\n   All instruments of the bards can be used to cast the following spells: Fly, Invisibility, Levitate, and Protection from Evil and Good.\\n   In addition, the Ollamh harp can be used to cast Confusion, Control Weather, and Fire Storm.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per long rest\",\r\n\t\t\tspells : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"confusion\", \"control weather\", \"fire storm\"],\r\n\t\t\tselection : [\"fly\", \"invisibility\", \"levitate\", \"protection from evil and good\", \"confusion\", \"control weather\", \"fire storm\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 7,\r\n\t\t\tspellcastingAbility : \"class\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"control weather\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tchanges : \"Casting time is only an action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"mariner's armor\"] = {\r\n\tname : \"Mariner's Armor\",\r\n\tnameTest : \"Mariner's\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this armor, I have a swimming speed equal to my walking speed. In addition, whenever I start my turn underwater with 0 hit points, the armor causes me to rise 60 ft toward the surface. The armor is decorated with fish and shell motifs.\",\r\n\tdescriptionFull : \"While wearing this armor, you have a swimming speed equal to your walking speed. In addition, whenever you start your turn underwater with 0 hit points, the armor causes you to rise 60 feet toward the surface. The armor is decorated with fish and shell motifs.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n}\r\nMagicItemsList[\"potion of fire breath\"] = {\r\n\tname : \"Potion of Fire Breath\",\r\n\tsource : [[\"D\", 187]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to, for 1 hour, use a bonus action to do 4d6 fire damage at a target within 30 ft, Dex save DC 13 halves. This can be done 3 times. This potion's orange liquid flickers, and smoke fills the top of the container and wafts out whenever it is opened.\",\r\n\tdescriptionFull : \"After drinking this potion, you can use a bonus action to exhale fire at a target within 30 feet of you. The target must make a DC 13 Dexterity saving throw, taking 4d6 fire damage on a failed save, or half as much damage on a successful one. The effect ends after you exhale the fire three times or when 1 hour has passed. This potion's orange liquid flickers, and smoke fills the top of the container and wafts out whenever it is opened.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of invulnerability\"] = {\r\n\tname : \"Potion of Invulnerability\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to have resistance to all damage for 1 minute. The potion's syrupy liquid looks like liquefied iron.\",\r\n\tdescriptionFull : \"For 1 minute after you drink this potion, you have resistance to all damage. The potion's syrupy liquid looks like liquefied iron.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of longevity\"] = {\r\n\tname : \"Potion of Longevity\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to reduce the consumer's physical age is by 1d6+6 years, to a minimum of 13 years. Subsequent consumptions of this type of potion have a 10% cumulative chance to instead age the consumer by 1d6+6 years.\",\r\n\tdescriptionLong : \"Once as an action, I can drink this potion or administer it to another to reduce the consumer's physical age is by 1d6+6 years, to a minimum of 13 years. Subsequent consumptions of this type of potion have a 10% cumulative chance to instead age the consumer by 1d6+6 years. Suspended in this amber liquid are a scorpion's tail, an adder's fang, a dead spider, and a tiny heart that, against all reason, is still beating. These ingredients vanish when the potion is opened.\",\r\n\tdescriptionFull : \"When you drink this potion, your physical age is reduced by 1d6+6 years, to a minimum of 13 years. Each time you subsequently drink a potion of longevity, there is 10 percent cumulative chance that you instead age by 1d6+6 years. Suspended in this amber liquid are a scorpion's tail, an adder's fang, a dead spider, and a tiny heart that, against all reason, is still beating. These ingredients vanish when the potion is opened.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"potion of vitality\"] = {\r\n\tname : \"Potion of Vitality\",\r\n\tsource : [[\"D\", 188]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to remove any exhaustion, disease, and poison affecting the consumer. For the next 24 hours, the consumer regains the maximum number of HP for any HD used. The potion's crimson liquid regularly pulses with dull light, calling to mind a heartbeat.\",\r\n\tdescriptionFull : \"When you drink this potion, it removes any exhaustion you are suffering and cures any disease or poison affecting you. For the next 24 hours, you regain the maximum number of hit points for any Hit Die you spend. The potion's crimson liquid regularly pulses with dull light, calling to mind a heartbeat.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"rod of resurrection\"] = {\r\n\tname : \"Rod of Resurrection\",\r\n\tsource : [[\"D\", 197]],\r\n\ttype : \"rod\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"This rod has 5 charges and regains 1 expended charge daily at dawn. While I hold it, I can use an action to expend 1 charge and cast Heal from it, or expend 5 charges and cast Resurrection from it. If the rod is reduced to 0 charges, roll a d20. On a 1, the rod disappears in a burst of radiance.\",\r\n\tdescriptionFull : \"The rod has 5 charges. While you hold it, you can use an action to cast one of the following spells from it: Heal (expends 1 charge) or Resurrection (expends 5 charges).\\n   The rod regains 1 expended charge daily at dawn. If the rod is reduced to 0 charges, roll a d20. On a 1, the rod disappears in a burst of radiance.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tprerequisite : \"Requires attunement by a cleric, druid, or paladin\",\r\n\tprereqeval : function(v) { return classes.known.cleric || classes.known.druid || classes.known.paladin ? true : false; },\r\n\tusages : 5,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"heal\"],\r\n\t\tselection : [\"heal\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"5 charges\",\r\n\t\tspells : [\"resurrection\"],\r\n\t\tselection : [\"resurrection\"],\r\n\t\tfirstCol : 5\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"resurrection\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Casting time is only 1 action instead of 1 hour.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"rod of the pact keeper, +1, +2, or +3\"] = {\r\n\tname : \"Rod of the Pact Keeper, +1, +2, or +3\",\r\n\tsource : [[\"D\", 197]],\r\n\ttype : \"rod\",\r\n\tdescription : \"While holding this rod, I gain a bonus to spell attack rolls and to the saving throw DCs of my warlock spells, determined by the rod's rarity: uncommon (+1), rare (+2), or very rare (+3). As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\tdescriptionFull : \"While holding this rod, you gain a bonus to spell attack rolls and to the saving throw DCs of your warlock spells. The bonus is determined by the rod's rarity: uncommon (+1), rare (+2), or very rare (+3).\\n   In addition, you can regain one warlock spell slot as an action while holding the rod. You can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tprerequisite : \"Requires attunement by a warlock\",\r\n\tprereqeval : function(v) { return classes.known.warlock; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tlimfeaname : \"Rod of the Pact Keeper (warlock spell slot)\",\r\n\taction : [[\"action\", \"\"]],\r\n\tallowDuplicates : true,\r\n\tchoices : [\"+1 Rod (uncommon)\", \"+2 Rod (rare)\", \"+3 Rod (very rare)\"],\r\n\t\"+1 rod (uncommon)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tmagicItemTable : \"F\",\r\n\t\tdescription : \"While holding this rod, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 rod (rare)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +2\",\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"While holding this rod, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 rod (very rare)\" : {\r\n\t\tname : \"Rod of the Pact Keeper +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tmagicItemTable : \"H\",\r\n\t\tdescription : \"While holding this rod, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my warlock spells. As an action once per long rest, I can regain one warlock spell slot while holding the rod.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('warlock') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rod of the Pact Keeper, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my warlock spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"saddle of the cavalier\"] = {\r\n\tname : \"Saddle of the Cavalier\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While in this saddle on a mount, I can't be dismounted against my will if I am conscious, and attack rolls against the mount have disadvantage.\",\r\n\tdescriptionFull : \"While in this saddle on a mount, you can't be dismounted against your will if you're conscious, and attack rolls against the mount have disadvantage.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"scroll of protection\"] = {\r\n\tname : \"Scroll of Protection\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"scroll\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops a creature type from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected.\",\r\n\tdescriptionFull : \"Each scroll of protection works against a specific type of creature chosen by the DM or determined randomly by rolling on the following table.\\n\\n\" + [\r\n\t\ttoUni(\"d100\\tCreature Type\\td100\\tCreature Type\"),\r\n\t\t\"01-10\\tAberrations\\t41-50\\tFey\",\r\n\t\t\"11-20\\tBeasts\\t\\t51-75\\tFiends\",\r\n\t\t\"21-30\\tCelestials   \\t76-80\\tPlants\",\r\n\t\t\"31-40\\tElementals\\t81-00\\tUndead\",\r\n\t].join(\"\\n\") + \"\\nUsing an action to read the scroll encloses you in an invisible barrier that extends from you to form a 5-foot-radius, 10-foot-high cylinder. For 5 minutes, this barrier prevents creatures of the specified type from entering or affecting anything within the cylinder.\\n   The cylinder moves with you and remains centered on you. However, if you move in such a way that an aberration would be inside the cylinder, the effect ends.\\n   A creature can attempt to overcome the barrier by using an action to make a DC 15 Charisma check. On a success, the creature ceases to be affected by the barrier.\",\r\n\tchoices : [\"Aberrations\", \"Beasts\", \"Celestials\", \"Elementals\", \"Fey\", \"Fiends\", \"Plants\", \"Undead\"],\r\n\t\"aberrations\" : {\r\n\t\tname : \"Scroll of Protection from Aberrations\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops aberrations from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes an aberration, it ends.\"\r\n\t},\r\n\t\"beasts\" : {\r\n\t\tname : \"Scroll of Protection from Beasts\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops beasts from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a beast, it ends.\"\r\n\t},\r\n\t\"celestials\" : {\r\n\t\tname : \"Scroll of Protection from Celestials\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops celestials from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes a celestial, it ends.\"\r\n\t},\r\n\t\"elementals\" : {\r\n\t\tname : \"Scroll of Protection from Elementals\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 min that moves with me and stops elementals from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes an elemental, it ends.\"\r\n\t},\r\n\t\"fey\" : {\r\n\t\tname : \"Scroll of Protection from Fey\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops fey from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a fey, it ends.\"\r\n\t},\r\n\t\"fiends\" : {\r\n\t\tname : \"Scroll of Protection from Fiends\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops fiends from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a fiend, it ends.\"\r\n\t},\r\n\t\"plants\" : {\r\n\t\tname : \"Scroll of Protection from Plants\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops plants from entering or affecting anything within. As an action, a creature can make a DC 15 Charisma check to stop being affected. If I move so the barrier includes a plant, it ends.\"\r\n\t},\r\n\t\"undead\" : {\r\n\t\tname : \"Scroll of Protection from Undead\",\r\n\t\tdescription : \"Once as an action, I can use this to make a 5-ft radius, 10-ft high invisible barrier around myself for 5 minutes that moves with me and stops undead from entering or affecting anything within. As an action, a creature can make a DC 15 Cha check to stop being affected. If I move so the barrier includes a undead, it ends.\"\r\n\t}\r\n}\r\nMagicItemsList[\"sending stones\"] = {\r\n\tname : \"Sending Stones\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"While I touch one of this pair of stones, I can use an action to cast Sending, targeting the bearer of the other stone. If no creature has the other stone, the spell won't cast. Once it is cast, neither stone can be used again until the next dawn. Sending allows each bearer to communicate up to 25 words.\",\r\n\tdescriptionFull : \"Sending stones come in pairs, with each smooth stone carved to match the other so the pairing is easily recognized. While you touch one stone, you can use an action to cast the Sending spell from it. The target is the bearer of the other stone. If no creature bears the other stone, you know that fact as soon as you use the stone and don't cast the spell.\\n   Once Sending is cast through the stones, they can't be used again until the next dawn. If one of the stones in a pair is destroyed, the other one becomes nonmagical.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"To other stone bearer only\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tusages : 1, \r\n\trecovery : \"dawn\",\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tdescription : \"Send a 25 word message to the bearer of the other Sending Stone, who can respond with 25 words\",\r\n\t\t\tchanges : \"Using one stone of a pair of Sending Stones, the spell can only target the bearer of the other stone of the pair.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"sentinel shield\"] = {\r\n\tname : \"Sentinel Shield\",\r\n\tsource : [[\"D\", 199]],\r\n\ttype : \"shield\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While holding this shield, I have advantage on initiative rolls and Wisdom (Perception) checks. The shield is emblazoned with a symbol of an eye.\",\r\n\tdescriptionFull : \"While holding this shield, you have advantage on initiative rolls and Wisdom (Perception) checks. The shield is emblazoned with a symbol of an eye.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Sentinel Shield\",\r\n\tadvantages : [[\"Initiative\", true], [\"Perception\", true]],\r\n\tvision : [[\"Adv. on Perception checks\", 0]]\r\n}\r\nMagicItemsList[\"staff of the adder\"] = {\r\n\tname : \"Staff of the Adder\",\r\n\tsource : [[\"D\", 203]],\r\n\ttype : \"staff\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"As a bonus action, I can speak this staff's command word to animate its snake head for 1 minute or make it inanimate again. While animated, I can use it in melee (1d6 piercing + DC 15 Con save or 3d6 poison), but it can be attacked and has AC 15 and 20 HP (full every time). If it reaches 0 HP, the staff is destroyed.\",\r\n\tdescriptionFull : \"You can use a bonus action to speak this staff's command word and make the head of the staff become that of an animate poisonous snake for 1 minute. By using another bonus action to speak the command word again, you return the staff to its normal inanimate form.\\n   You can make a melee attack using the snake head, which has a reach of 5 feet. Your proficiency bonus applies to the attack roll. On a hit, the target takes 1d6 piercing damage and must succeed on a DC 15 Constitution saving throw or take 3d6 poison damage.\\n   The snake head can be attacked while it is animate. It has an Armor Class of 15 and 20 hit points. If the head drops to 0 hit points, the staff is destroyed. As long as it's not destroyed, the staff regains all lost hit points when it reverts to its inanimate form.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tprerequisite : \"Requires attunement by a cleric, druid, or warlock\",\r\n\tprereqeval : function(v) { return classes.known.cleric || classes.known.druid || classes.known.warlock ? true : false; },\r\n\taction : [[\"bonus action\", \" (animate/end)\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*snake)(?=.*head)(?=.*staff)(?=.*adder).*$/i,\r\n\t\tname : \"Animated Snake Head from Staff of the Adder\",\r\n\t\tsource : [[\"D\", 203]],\r\n\t\tlist : \"melee\",\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tweight : 4,\r\n\t\tdescription : \"DC 15 Constitution save or 3d6 poison damage\",\r\n\t\tabilitytodamage : false,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"sword of answering\"] = {\r\n\tname : \"Sword of Answering\",\r\n\tsource : [[\"D\", 206]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a gem set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\",\r\n\tdescriptionFull : 'In the world of Greyhawk, only nine of these blades are known to exist. Each is patterned after the legendary sword Fragarach, which is variously translated as \"Final Word.\" Each of the nine swords has its own name and alignment, and each bears a different gem in its pommel.\\n   You gain a +3 bonus to attack and damage rolls made with this sword. In addition, while you hold the sword, you can use your reaction to make one melee attack with it against any creature in your reach that deals damage to you. You have advantage on the attack roll, and any damage dealt with this special attack ignores any damage immunity or resistance the target has.\\n\\n' + [\r\n\t\ttoUni(\"Name\\t\\tAlignment\\tGem\"),\r\n\t\t\"Answerer    \\tChaotic good\\tEmerald\",\r\n\t\t\"Back Talker\\tChaotic evil\\tJet\",\r\n\t\t\"Concluder    \\tLawful neutral\\tAmethyst\",\r\n\t\t\"Last Quip    \\tChaotic neutral\\tTourmaline\",\r\n\t\t\"Rebutter\\t\\tNeutral good\\tTopaz\",\r\n\t\t\"Replier\\t\\tNeutral\\t\\tPeridot\",\r\n\t\t\"Retorter\\t\\tLawful good\\tAquamarine\",\r\n\t\t\"Scather\\t\\tLawful evil\\tGarnet\",\r\n\t\t\"Squelcher    \\tNeutral evil\\tSpinel\"\r\n\t].join(\"\\n\"),\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /^(?=.*sword)(?=.*answering).*$/i,\r\n\t\tname : \"Sword of Answering\",\r\n\t\tsource : [[\"D\", 206]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tchoices : [\"Answerer (chaotic good)\", \"Back Talker (chaotic evil)\", \"Concluder (lawful neutral)\", \"Last Quip (chaotic neutral)\", \"Rebutter (neutral good)\", \"Replier (neutral)\", \"Retorter (lawful good)\", \"Scather (lawful evil)\", \"Squelcher (neutral evil)\"],\r\n\t\"answerer (chaotic good)\" : {\r\n\t\tname : \"Sword of Answering [Answerer]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an emerald set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"back talker (chaotic evil)\" : {\r\n\t\tname : \"Sword of Answering [Back Talker]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has jet set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"concluder (lawful neutral)\" : {\r\n\t\tname : \"Sword of Answering [Concluder]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*neutral).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an amethyst set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"last quip (chaotic neutral)\" : {\r\n\t\tname : \"Sword of Answering [Last Quip]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the chaotic neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*chaotic)(?=.*neutral).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a tourmaline set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"rebutter (neutral good)\" : {\r\n\t\tname : \"Sword of Answering [Rebutter]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a topaz set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"replier (neutral)\" : {\r\n\t\tname : \"Sword of Answering [Replier]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?!.*(chaotic|lawful|evil|good)).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a peridot set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"retorter (lawful good)\" : {\r\n\t\tname : \"Sword of Answering [Retorter]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful good alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has an aquamarine set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"scather (lawful evil)\" : {\r\n\t\tname : \"Sword of Answering [Scather]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the lawful evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a garnet set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t},\r\n\t\"squelcher (neutral evil)\" : {\r\n\t\tname : \"Sword of Answering [Squelcher]\",\r\n\t\tprerequisite : \"Requires attunement by a creature with the neutral evil alignment\",\r\n\t\tprereqeval : function(v) { return (/^(?=.*neutral)(?=.*evil).*$/i).test(What(\"Alignment\")); },\r\n\t\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magical longsword that has a spinel set in its pommel. As a reaction when a creature within my reach damages me, I can make one melee attack with this sword with advantage. This attack ignores damage immunities and resistances of the target.\"\r\n\t}\r\n}\r\nMagicItemsList[\"sword of vengeance\"] = {\r\n\tname : \"Sword of Vengeance\",\r\n\tnameTest : \"of Vengeance\",\r\n\tsource : [[\"D\", 206]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tattunement : true,\r\n\tdescription : \"This sword gives +1 to hit and damage and is cursed. I can't part with this sword and have disadv. on attacks with other weapons. If I take damage in combat, I must make a DC 15 Wis save or I will attack the attacker until it drops to 0 HP or I can't attack it in melee anymore.\",\r\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon.\\n   \" + toUni(\"Curse\") + \". This sword is cursed and possessed by a vengeful spirit. Becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the sword, keeping it on your person at all times. While attuned to this weapon, you have disadvantage on attack rolls made with weapons other than this one.\\n   In addition, while the sword is on your person, you must succeed on a DC 15 Wisdom saving throw whenever you take damage in combat. On a failed save you must attack the creature that damaged you until you drop to 0 hit points or it does, or until you can't reach the creature to make a melee attack against it.\\n   You can break the curse in the usual ways. Alternatively, casting banishment on the sword forces the vengeful spirit to leave it. The sword then becomes a +1 weapon with no other properties.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of vengeance/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Cursed';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Vengeance\" in the name of a sword, it will be treated as the magic weapon Sword of Vengeance. It has +1 to hit and damage, but also bears a curse.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of vengeance/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"tentacle rod\"] = {\r\n\tname : \"Tentacle Rod\",\r\n\tsource : [[\"D\", 208]],\r\n\ttype : \"rod\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, all 3 tentacles of this rod attack with 15 ft reach, +9 to hit, dealing 1d6 bludgeoning damage. If a target is hit by all 3 it must make a DC 15 Con save or have half speed, disadv. on Dex saves, no reactions, and do action or bonus action, not both, for 1 min. It can repeat the save at the end of each of its turns.\",\r\n\tdescriptionLong : \"As an action while holding the rod, I can direct each of its three tentacles to attack a creature I can see within 15 ft. Each tentacle makes a melee attack roll, +9 to hit, dealing 1d6 bludgeoning damage. If a target is hit by all three tentacles, it must make a DC 15 Constitution saving throw. On a failure, the creature's speed is halved, it has disadvantage on Dexterity saving throws, and it can't use reactions for 1 minute. Moreover, on each of its turns, it can take either an action or a bonus action, but not both. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tdescriptionFull : \"Made by the drow, this rod is a magic weapon that ends in three rubbery tentacles. While holding the rod, you can use an action to direct each tentacle to attack a creature you can see within 15 feet of you. Each tentacle makes a melee attack roll with a +9 bonus. On a hit, the tentacle deals 1d6 bludgeoning damage. If you hit a target with all three tentacles, it must make a DC 15 Constitution saving throw. On a failure, the creature's speed is halved, it has disadvantage on Dexterity saving throws, and it can't use reactions for 1 minute. Moreover, on each of its turns, it can take either an action or a bonus action, but not both. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*tentacle)(?=.*rod).*$/i,\r\n\t\tname : \"Tentacle Rod\",\r\n\t\tsource : [[\"D\", 208]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (15 ft)\",\r\n\t\tdescription : \"Action to use, 3 attacks; If all 3 hit same target, it DC 15 Con save, see magic item\",\r\n\t\tabilitytodamage : false,\r\n\t\tmodifiers : [9, \"\"],\r\n\t\tweight : 2,\r\n\t\tisAlwaysProf : false,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"tome of the stilled tongue\"] = {\r\n\tname : \"Tome of the Stilled Tongue\",\r\n\tsource : [[\"D\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"I can use this thick leather-bound tome as a spellbook and an arcane focus. Once per dawn while holding it, I can use a bonus action to cast a spell I have written in it, without expending a spell slot or using any verbal or somatic components. Removing the tongue on the cover erases all spells within.\",\r\n\tdescriptionLong : \"The first few pages of this thick leather-bound tome are filled with indecipherable scrawls. The remaining pages are blank and pristine. I can use it as a spellbook and an arcane focus. Once per dawn while holding it, I can use a bonus action to cast a spell I have written in the tome, without expending a spell slot or using any verbal or somatic components. While attuned to the book, I can remove the tongue from the book's cover, permanently erasing all spells within. Vecna watches the user or this tome and sometimes has cryptic messages appear in it at midnight and fade away after they are read.\",\r\n\tdescriptionFull : \"This thick leather-bound volume has a desiccated tongue pinned to the front cover. Five of these tomes exist, and it's unknown which one is the original. The grisly cover decoration on the first tome of the stilled tongue once belonged to a treacherous former servant of the lich-god Vecna, keeper of secrets. The tongues pinned to the covers of the four copies came from other spellcasters who crossed Vecna. The first few pages of each tome are filled with indecipherable scrawls. The remaining pages are blank and pristine.\\n   If you can attune to this item, you can use it as a spellbook and an arcane focus. In addition, while holding the tome, you can use a bonus action to cast a spell you have written in this tome, without expending a spell slot or using any verbal or somatic components. Once used, this property of the tome can't be used again until the next dawn.\\n   While attuned to the book, you can remove the tongue from the book's cover. If you do so, all spells written in the book are permanently erased.\\n   Vecna watches anyone using this tome. He can also write cryptic messages in the book. These messages appear at midnight and fade away after they are read.\",\r\n\tattunement : true,\r\n\tweight : 5,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"weapon of warning\"] = {\r\n\tname : \"Weapon of Warning\",\r\n\tnameTest : \"of Warning\",\r\n\tsource : [[\"D\", 213]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While this magic weapon is on my person, I have advantage on initiative rolls. In addition, both me and my allies within 30 ft of me can't be surprised and the weapon magically awakens us when combat starts, except those incapacitated by something other than nonmagical sleep.\",\r\n\tdescriptionFull : \"This magic weapon warns you of danger. While the weapon is on your person, you have advantage on initiative rolls. In addition, you and any of your companions within 30 feet of you can't be surprised, except when incapacitated by something other than nonmagical sleep. The weapon magically awakens you and your companions within range if any of you are sleeping naturally when combat begins.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/warning/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Warning\" in the name of a weapon, it will be treated as the magic weapon Weapon of Warning.'\r\n\t\t]\r\n\t},\r\n\tsavetxt : { immune : [\"surprised\"] }\r\n}\r\n\r\n// Sentient Items\r\nvar DMG_blackrazorFullDescription = [\r\n\t\"Hidden in the dungeon of White Plume Mountain, Blackrazor shines like a piece of night sky filled with stars. Its black scabbard is decorated with pieces of cut obsidian.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. It has the following additional properties.\",\r\n\t\">>Devour Soul<<. Whenever you use it to reduce a creature to 0 hit points, the sword slays the creature devours its soul, unless it is a construct or an undead. A creature whose soul has been devoured by Blackrazor can be restored to life only by a Wish spell.\",\r\n\t\"When it devours a soul, Blackrazor grants you temporary hit points equal to the slain creature's hit point maximum. These hit points fade after 24 hours. As long as these temporary hit points last and you keep Blackrazor in hand, you have advantage on attack rolls, saving throws, and ability checks.\",\r\n\t\"If you hit an undead with this weapon, you take 1d10 necrotic damage and the target regains 1d10 hit points. If this necrotic damage reduces you to 0 hit points, Blackrazor devours your soul.\",\r\n\t\">>Soul Hunter<<. While you hold the weapon, you are aware of the presence of Tiny or larger creatures within 60 feet of you that aren't constructs or undead. You also can't be charmed or frightened.\",\r\n\t\"Blackrazor can cast the Haste spell on you once per day. It decides when to cast the spell and maintains concentration on it so that you don't have to.\",\r\n\t\">>Sentience<<. Blackrazor is a sentient chaotic neutral weapon with an Intelligence of 17, a Wisdom of 10, and a Charisma of 19. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon can speak, read, and understand Common, and can communicate with its wielder telepathically. Its voice is deep and echoing. While you are attuned to it, Blackrazor also understands every language you know.\",\r\n\t\">>Personality<<. Blackrazor speaks with an imperious tone, as though accustomed to being obeyed.\",\r\n\t\"The sword's purpose is to consume souls. It doesn't care whose souls it eats, including the wielder's. The sword believes that all matter and energy sprang from a void of negative energy and will one day return to it. Blackrazor is meant to hurry that process along.\",\r\n\t\"Despite its nihilism, Blackrazor feels a strange kinship to Wave and Whelm, two other weapons locked away under White Plume Mountain. It wants the three weapons to be united again and wielded together in combat, even though it violently disagrees with Whelm and finds Wave tedious.\",\r\n\t\"Blackrazor's hunger for souls must be regularly fed. If the sword goes three days or more without consuming a soul, a conflict between it and its wielder occurs at the next sunset.\"\r\n];\r\nMagicItemsList[\"blackrazor\"] = {\r\n\tname : \"Blackrazor\",\r\n\tsource : [[\"D\", 216]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sentient greatsword adds +3 to hit and damage and makes me immune to being charmed or frightened. Once per day it can cast Haste on me as it sees fit. If I use it to bring a creature to 0 HP, it devours the creature's soul, granting me temporary HP equal to the creature's max HP for 24 hours. See Notes page.\",\r\n\tdescriptionFull : DMG_blackrazorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-lawful alignment\",\r\n\tprereqeval : function(v) { return !(/lawful/i).test(What(\"Alignment\")); },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweight : 6,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /blackrazor/i,\r\n\t\tname : \"Blackrazor\",\r\n\t\tsource : [[\"D\", 216]],\r\n\t\tdescription : \"Heavy, two-handed; Devours soul; Heals undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(DMG_blackrazorFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|reduces|grants) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\tsavetxt : { immune : [\"charmed\", \"frightened\"] },\r\n\tusages : 1,\r\n\trecovery : \"day\",\r\n\tadditional : \"Haste\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per day\",\r\n\t\tspells : [\"haste\"],\r\n\t\tselection : [\"haste\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"haste\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"1 min\",\r\n\t\t\tdescription : \"I get +2 AC, speed doubled, adv. on Dex saves, extra action (1 attack, dash, disengage, hide)\",\r\n\t\t\tchanges : \"Blackrazor casts the spell on me, so I don't need to concentrate on it.\"\r\n\t\t}\r\n\t}\r\n}\r\nvar DMG_waveFullDescription = [\r\n\t\"Held in the dungeon of White Plume Mountain, this trident is an exquisite weapon engraved with images of waves, shells, and sea creatures. Although you must worship a god of the sea to attune to this weapon, Wave happily accepts new converts.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. If you score a critical hit with it, the target takes extra necrotic damage equal to half its hit point maximum.\",\r\n\t\"The weapon also functions as a trident of fish command and a weapon of warning. It can confer the benefit of a cap of water breathing while you hold it, and you can use it as a cube of force by choosing the effect, instead of pressing cube sides to select it.\",\r\n\t\">>Sentience<<. Wave is a sentient weapon of neutral alignment, with an Intelligence of 14, a Wisdom of 10, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Aquan. It can also speak with aquatic animals as if using a Speak with Animals spell, using telepathy to involve its wielder in the conversation.\",\r\n\t\">>Personality<<. When it grows restless, Wave has a habit of humming tunes that vary from sea chanteys to sacred hymns of the sea gods.\",\r\n\t\"Wave zealously desires to convert mortals to the worship of one or more sea gods, or else to consign the faithless to death. Conflict arises if the wielder fails to further the weapon's objectives in the world. The trident has a nostalgic attachment to the place where it was forged, a desolate island called Thunderforge. A sea god imprisoned a family of storm giants there, and the giants forged Wave in an act of devotion to\\u2014or rebellion against\\u2014that god.\",\r\n\t\"Wave harbors a secret doubt about its own nature and purpose. For all its devotion to the sea gods, Wave fears that it was intended to bring about a particular sea god's demise. This destiny is something Wave might not be able to avert.\"\r\n];\r\nif (MagicItemsList[\"trident of fish command\"] && MagicItemsList[\"weapon of warning\"] && MagicItemsList[\"cap of water breathing\"] && MagicItemsList[\"cube of force\"]) {\r\n\tMagicItemsList[\"wave\"] = {\r\n\t\tname : \"Wave\",\r\n\t\tsource : [[\"D\", 218]],\r\n\t\ttype : \"weapon (trident)\",\r\n\t\trarity : \"legendary\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"This sentient trident adds +3 to hit and damage and if I score a critical hit with it, the target takes extra necrotic damage equal to half its max HP. It also functions as a trident of fish command, a weapon of warning, cap of water breathing while I hold it, and I can use it as a cube of force. See Notes page.\",\r\n\t\tdescriptionFull : DMG_waveFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a creature that worships a god of the sea\",\r\n\t\tprereqeval : function(v) { return (/deep sashelas|sekolah|ulutiu|umberlee|valkur|poseidon|neptune|aegir|nehalennia|njord/i).test(What(\"Faith/Deity\")); },\r\n\t\tweight : 4,\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"trident\",\r\n\t\t\tregExpSearch : /wave/i,\r\n\t\t\tname : \"Wave\",\r\n\t\t\tsource : [[\"D\", 218]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); On crit: necrotic damage equal to half target max HP\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : desc(DMG_waveFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/you/ig, \"I\") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t\t}, {\r\n\t\t\tname : \"Contained Items\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\n\\n\\u2022 Trident of Fish Command (SRD 247, DMG 209)\\n   \" + MagicItemsList[\"trident of fish command\"].description,\r\n\t\t\t\t\"\\u2022 Weapon of Warning (DMG 213)\\n   \" + MagicItemsList[\"weapon of warning\"].description,\r\n\t\t\t\t\"\\u2022 Cap of Water Breathing (DMG 157)\\n   \" + MagicItemsList[\"cap of water breathing\"].description,\r\n\t\t\t\t\"\\u2022 Cube of Force (SRD 215, DMG 159)\" + desc(MagicItemsList[\"cube of force\"].toNotesPage[0].note)\r\n\t\t\t].join(\"\\n\\n\")\r\n\t\t}],\r\n\t\t// cube of force & cap of water breathing\r\n\t\taction : [[\"action\", \" (Cap of Water Breathing)\"], [\"action\", \" (Cube of Force)\"]],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Wave [Cube of Force] (regains 1d20)\",\r\n\t\t\tusages : 36,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t// trident of fish command\r\n\t\t\tname : \"Wave [Fish Command] (regains 1d3)\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"dominate beast\"],\r\n\t\t\tselection : [\"dominate beast\"],\r\n\t\t\tfirstCol : 1\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate beast\" : {\r\n\t\t\t\tdescription : \"1 beast with swim speed save or charmed, follows telepathic commands, 1 a for complete control\",\r\n\t\t\t\tchanges : \"Can only affect beasts with innate swim speed.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t// weapon of warning\r\n\t\tadvantages : [[\"Initiative\", true]]\r\n\t}\r\n}\r\nvar DMG_whelmFullDescription = [\r\n\t\"Whelm is a powerful warhammer forged by dwarves and lost in the dungeon of White Plume Mountain.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. At dawn the day after you first make an attack roll with Whelm, you develop a fear of being outdoors that persists as long as you remain attuned to the weapon. This causes you to have disadvantage on attack rolls, saving throws, and ability checks while you can see the daytime sky.\",\r\n\t\">>Thrown Weapon<<. Whelm has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When you hit with a ranged weapon attack using it, the target takes an extra 1d8 bludgeoning damage, or an extra 2d8 bludgeoning damage if the target is a giant. Each time you throw the weapon, it flies back to your hand after the attack. If you don't have a hand free, the weapon lands at your feet.\",\r\n\t\">>Shock Wave<<. You can use an action to strike the ground with Whelm and send a shock wave out from the point of impact. Each creature of your choice on the ground within 60 feet of that point must succeed on a DC 15 Constitution saving throw or become stunned for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Once used, this property can't be used again until the next dawn.\",\r\n\t\">>Supernatural Awareness<<. While you are holding the weapon, it alerts you to the location of any secret or concealed doors within 30 feet of you. In addition, you can use an action to cast Detect Evil and Good or Locate Object from the weapon. Once you cast either spell, you can't cast it from the weapon again until the next dawn.\",\r\n\t\">>Sentience<<. Whelm is a sentient lawful neutral weapon with an Intelligence of 15, a Wisdom of 12, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Dwarvish. Giant, and Goblin. It shouts battle cries in Dwarvish when used in combat.\",\r\n\t\">>Personality<<. Whelm's purpose is to slaughter giants and goblinoids. It also seeks to protect dwarves against all enemies. Conflict arises if the wielder fails to destroy goblins and giants or to protect dwarves. Whelm has ties to the dwarf clan that created it, variously called the Dankil or the Mightyhammer clan. It longs to be returned to that clan. It would do anything to protect those dwarves from harm. The hammer also carries a secret shame. Centuries ago, a dwarf named Ctenmiir wielded it valiantly for a time. But Ctenmiir was turned into a vampire. His will was strong enough that he bent Whelm to his evil purposes, even killing members of his own clan.\"\r\n];\r\nMagicItemsList[\"whelm\"] = {\r\n\tname : \"Whelm\",\r\n\tsource : [[\"D\", 218]],\r\n\ttype : \"weapon (warhammer)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sentient warhammer adds +3 to hit and damage, has the thrown property, deals extra damage when thrown, and returns to my hand when thrown. I can use it to create a shock wave. It makes me afraid of the outdoors, so while I can see the daytime sky, I have disadv. on attacks, saves, and checks. See Notes page.\",\r\n\tdescriptionFull : DMG_whelmFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"warhammer\",\r\n\t\tregExpSearch : /whelm/i,\r\n\t\tname : \"Whelm\",\r\n\t\tsource : [[\"D\", 218]],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Versatile (1d10), thrown, returning; +1d8 damage when thrown (+2d8 vs. giants)\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(DMG_whelmFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|causes|alerts) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\taction : [[\"action\", \" (Shock Wave)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Whelm [Shock Wave]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Whelm [Detect Evil and Good]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Whelm [Locate Object]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tvision : [[\"Know location of secret doors\", 30]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"detect evil and good\", \"locate object\"],\r\n\t\tselection : [\"detect evil and good\", \"locate object\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\n\r\n// Firearms [weapons and ammunition] (includes contributions by grungydan)\r\nWeaponsList[\"pistol\"] = {\r\n\tregExpSearch : /^(?!.*(automatic|laser|antimatter|needler|paralysis))(?=.*\\bpistols?\\b).*$/i,\r\n\tname : \"Pistol\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 10, \"piercing\"],\r\n\trange : \"30/90 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, loading\",\r\n\tabilitytodamage : true,\r\n\tammo : \"renaissance bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"musket\"] = {\r\n\tregExpSearch : /musket/i,\r\n\tname : \"Musket\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 12, \"piercing\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 10,\r\n\tdescription : \"Ammunition, loading, two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"renaissance bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"renaissance bullet\"] = {\r\n\tname : \"Bullets, Renaissance\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 0.2,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Bullets, renaissance\",\r\n\talternatives : [/^(?=.*bullet)(?=.*renaissance).*$/i],\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"pistol automatic\"] = {\r\n\tregExpSearch : /^(?=.*pistol)(?=.*automatic).*$/i,\r\n\tname : \"Automatic pistol\",\r\n\tnameAlt : [\"Pistol, Automatic\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 6, \"piercing\"],\r\n\trange : \"50/150 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, reload (15 shots)\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"revolver\"] = {\r\n\tregExpSearch : /revolver/i,\r\n\tname : \"Revolver\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Ammunition, reload (6 shots)\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"rifle hunting\"] = {\r\n\tregExpSearch : /^(((?=.*hunting)(?=.*rifle))|((?!.*(automatic|laser|antimatter))(?=.*\\brifles?\\b))).*$/i,\r\n\tname : \"Hunting rifle\",\r\n\tnameAlt : [\"Rifle, Hunting\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 10, \"piercing\"],\r\n\trange : \"80/240 ft\",\r\n\tweight : 8,\r\n\tdescription : \"Ammunition, reload (5 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"rifle automatic\"] = {\r\n\tregExpSearch : /^(?=.*automatic)(?=.*rifle).*$/i,\r\n\tname : \"Automatic rifle\",\r\n\tnameAlt : [\"Rifle, Automatic\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"80/240 ft\",\r\n\tweight : 8,\r\n\tdescription : \"Ammunition, burst fire, reload (30 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true,\r\n\ttooltip : \"A weapon that has the burst fire property can make a single-target attack, or it can spray a 10-foot-cube area within normal range with shots. Each creature in the area must succeed on a DC 15 Dexterity saving throw or take the weapon's normal damage. This action uses ten pieces of ammunition.\"\r\n};\r\nWeaponsList[\"shotgun\"] = {\r\n\tregExpSearch : /shotgun/i,\r\n\tname : \"Shotgun\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 8, \"piercing\"],\r\n\trange : \"30/90 ft\",\r\n\tweight : 7,\r\n\tdescription : \"Ammunition, reload (2 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"modern bullet\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"modern bullet\"] = {\r\n\tname : \"Bullets, Modern\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 0.1,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Bullets, modern\",\r\n\talternatives : [/^(?=.*bullet)(?=.*modern).*$/i],\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"laser pistol\"] = {\r\n\tregExpSearch : /^(?=.*laser)(?=.*pistol).*$/i,\r\n\tname : \"Laser pistol\",\r\n\tnameAlt : [\"Pistol, Laser\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [3, 6, \"radiant\"],\r\n\trange : \"40/120 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, reload (50 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"antimatter rifle\"] = {\r\n\tregExpSearch : /^(?=.*antimatter)(?=.*rifle).*$/i,\r\n\tname : \"Antimatter rifle\",\r\n\tnameAlt : [\"Rifle, Antimatter\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [6, 8, \"necrotic\"],\r\n\trange : \"120/360 ft\",\r\n\tweight : 10,\r\n\tdescription : \"Ammunition, reload (2 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"laser rifle\"] = {\r\n\tregExpSearch : /^(?=.*laser)(?=.*rifle).*$/i,\r\n\tname : \"Laser rifle\",\r\n\tnameAlt : [\"Rifle, Laser\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"firearm\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [3, 8, \"radiant\"],\r\n\trange : \"100/300 ft\",\r\n\tweight : 7,\r\n\tdescription : \"Ammunition, reload (30 shots), two-handed\",\r\n\tabilitytodamage : true,\r\n\tammo : \"energy cell\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"energy cell\"] = {\r\n\tname : \"Energy Cell\",\r\n\tsource : [[\"D\", 268], [\"QftIS\", 192]],\r\n\tweight : 0,\r\n\ticon : \"Bullets\",\r\n\tinvName : \"Energy Cell\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Explosives as weapons and ammunition\r\nWeaponsList[\"bomb, renaissance\"] = {\r\n\tregExpSearch : /^(?=.*bomb)(?=.*renaissance).*$/i,\r\n\tname : \"Bomb, renaissance\",\r\n\tsource : [[\"D\", 267]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [3, 6, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"Dex save for all within 5-ft radius\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [4, \"\"],\r\n\tdc : true,\r\n\tammo : \"bomb\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a character can light this bomb and throw it at a point up to 60 ft away. Each creature within 5 ft of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\"+\r\n\t\"\\n   A bomb costs 150 gp and weights 1 lb.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"bomb\"] = {\r\n\tname : \"Bomb\",\r\n\tsource : [[\"D\", 267]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Bomb, renaissance\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"dynamite stick\"] = {\r\n\tregExpSearch : /^(?=.*dynamite)(?=.*stick).*$/i,\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [3, 6, \"bludgeoning\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"All within 5-ft radius, Dex save halves; +1d6 damage \\u0026 +5 ft radius per extra stick used (max 10d6/20 ft)\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [4, \"\"],\r\n\tdc : true,\r\n\tammo : \"dynamite stick\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a creature can light a stick of dynamite and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must make a DC 12 Dexterity saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   A character can bind sticks of dynamite together so they explode at the same time. Each additional stick increases the damage by 1d6 (to a maximum of 10d6) and the burst radius by 5 feet (to a maximum of 20 feet).\"+\r\n\t\"\\n   Dynamite can be rigged with a longer fuse to explode after a set amount of time, usually 1 to 6 rounds. Roll initiative for the dynamite. After the set number of rounds goes by, the dynamite explodes on that initiative.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"dynamite stick\"] = {\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Dynamite stick\",\r\n\tdefaultExcluded : true\r\n};\r\nWeaponsList[\"grenade, fragmentation\"] = {\r\n\tregExpSearch : /^(?=.*grenade)(?=.*frag(\\b|mentation)).*$/i,\r\n\tname : \"Fragmentation Grenade\",\r\n\tnameAlt : [\"Grenade, Fragmentation\"],\r\n\tsource : [[\"D\", 268]],\r\n\tlist : \"explosive\",\r\n\tability : 0,\r\n\ttype : \"Explosive\",\r\n\tdamage : [5, 6, \"piercing\"],\r\n\trange : \"60 ft\",\r\n\tweight : 1,\r\n\tdescription : \"All within 20-ft radius, Dex save halves\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [7, \"\"],\r\n\tdc : true,\r\n\tammo : \"grenade\",\r\n\tisNotWeapon : true,\r\n\tisAlwaysProf : false,\r\n\ttooltip : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\"\\n   Each creature within 20 feet of an exploding fragmentation grenade must make a DC 15 Dexterity saving throw, taking 5d6 piercing damage on a failed save, or half as much damage on a successful one.\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"grenade\"] = {\r\n\tname : \"Grenade\",\r\n\tsource : [[\"D\", 268]],\r\n\tweight : 1,\r\n\ticon : \"Flasks\",\r\n\tinvName : \"Grenade\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Explosives as \"technological\" magic items\r\nMagicItemsList[\"bomb, renaissance\"] = {\r\n\tname : \"Bomb, renaissance\",\r\n\tsource : [[\"D\", 267]],\r\n\ttype : \"explosive, renaissance\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, I can light this bomb and throw it at a point up to 60 ft away. Each creature within 5 ft of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\",\r\n\tdescriptionFull : \"As an action, a character can light this bomb and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must succeed on a DC 12 Dexterity saving throw or take 3d6 fire damage.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tweaponsAdd : { select : [\"Bomb, Renaissance\"] },\r\n\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\tif (CurrentSources.weapExcl.eject(\"bomb, renaissance\") !== -1) SetWeaponsdropdown();\r\n\t\tif (CurrentSources.ammoExcl.eject(\"bomb\") !== -1) SetAmmosdropdown();\r\n\t}\r\n};\r\nMagicItemsList[\"gunpowder\"] = {\r\n\tname : \"Gunpowder\",\r\n\tsource : [[\"D\", 267]],\r\n\ttype : \"explosive, renaissance\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"Gunpowder is chiefly used to propel a bullet out of the barrel of a pistol or rifle, or it is formed into a bomb. Gunpowder is sold in small wooden kegs or in water-resistant powder horns.\",\r\n\tdescriptionFull : \"Gunpowder is chiefly used to propel a bullet out of the barrel of a pistol or rifle, or it is formed into a bomb. Gunpowder is sold in small wooden kegs or in water-resistant powder horns.\"+\r\n\t\"\\n   Setting fire to a container full of gunpowder can cause it to explode, dealing fire damage to creatures within 10 feet of it (3d6 for a powder horn). A successful DC 12 Dexterity saving throw halves the damage. Setting fire to an ounce of gunpowder causes it to flare for 1 round, shedding bright light in a 30-foot radius and dim light for an additional 30 feet.\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Horn (35 gp)\", \"Keg (250 gp)\"],\r\n\t\"horn (35 gp)\" : {\r\n\t\tname : \"Gunpowder Horn\",\r\n\t\tdescription : \"This water-resistant horn contains explosive powder that is chiefly used to propel a bullet and can be formed into a bomb. The horn explodes if set on fire, dealing 3d6 fire damage to all within 10 ft, DC 12 Dex save halves. If 1 ounce is set on fire, it flares for 1 round with 20-ft radius bright and equal dim light.\",\r\n\t\tweight : 2\r\n\t},\r\n\t\"keg (250 gp)\" : {\r\n\t\tname : \"Gunpowder Keg\",\r\n\t\tdescription : \"This small wooden keg contains explosive powder that is chiefly used to propel a bullet and can be formed into a bomb. The horn explodes if set on fire, dealing 3d6 fire damage to all within 10 ft, DC 12 Dex save halves. If 1 ounce is set on fire, it flares for 1 round with 20-ft radius bright light and 20-ft radius dim light.\",\r\n\t\tweight : 20\r\n\t}\r\n}\r\nMagicItemsList[\"dynamite stick\"] = {\r\n\tname : \"Dynamite stick\",\r\n\tsource : [[\"D\", 268]],\r\n\ttype : \"explosive, modern\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, I can light a (bundle of) stick(s) of dynamite and throw it at a point up to 60 ft away. All creatures within 5-ft/stick of that point take 2d6+1d6/stick fire damage, DC 12 Dex save for half. Maximum 10d6 damage and 20-ft radius. I can also explode it using a longer fuse (roll separate initiative for it).\",\r\n\tdescriptionFull : \"As an action, a creature can light a stick of dynamite and throw it at a point up to 60 feet away. Each creature within 5 feet of that point must make a DC 12 Dexterity saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   A character can bind sticks of dynamite together so they explode at the same time. Each additional stick increases the damage by 1d6 (to a maximum of 10d6) and the burst radius by 5 feet (to a maximum of 20 feet).\"+\r\n\t\"\\n   Dynamite can be rigged with a longer fuse to explode after a set amount of time, usually 1 to 6 rounds. Roll initiative for the dynamite. After the set number of rounds goes by, the dynamite explodes on that initiative.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tweaponsAdd : { select : [\"Dynamite Stick\"] },\r\n\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\tif (CurrentSources.weapExcl.eject(\"dynamite stick\") !== -1) SetWeaponsdropdown();\r\n\t\tif (CurrentSources.ammoExcl.eject(\"dynamite stick\") !== -1) SetAmmosdropdown();\r\n\t}\r\n};\r\nMagicItemsList[\"grenade\"] = {\r\n\tname : \"Grenade\",\r\n\tsource : [[\"D\", 268], [\"QftIS\", 192]],\r\n\ttype : \"explosive, modern\",\r\n\trarity : \"\",\r\n\tdefaultExcluded : true,\r\n\tdescription : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\",\r\n\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\",\r\n\taction : [[\"action\", \"Throw Explosive\"]],\r\n\tchoices : [\"Fragmentation Grenade\", \"Smoke Grenade\"],\r\n\t\"fragmentation grenade\" : {\r\n\t\tname : \"Fragmentation Grenade\",\r\n\t\tsortname : \"Grenade, Fragmentation\",\r\n\t\tsource : [[\"D\", 268]],\r\n\t\tdefaultExcluded : true,\r\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. All creatures within 20 ft of an exploding fragmentation grenade take 6d6 piercing damage, but can make a DC 15 Dexterity save to halve that damage.\",\r\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\t\"\\n   Each creature within 20 feet of an exploding fragmentation grenade must make a DC 15 Dexterity saving throw, taking 5d6 piercing damage on a failed save, or half as much damage on a successful one.\",\r\n\t\tweight : 1,\r\n\t\tweaponsAdd : { select : [\"Fragmentation Grenade\"] },\r\n\t\teval : function() { // make sure the weapon and ammo are not excluded\r\n\t\t\tif (CurrentSources.weapExcl.eject(\"grenade, fragmentation\") !== -1) SetWeaponsdropdown();\r\n\t\t\tif (CurrentSources.ammoExcl.eject(\"grenade\") !== -1) SetAmmosdropdown();\r\n\t\t}\r\n\t},\r\n\t\"smoke grenade\" : {\r\n\t\tname : \"Smoke Grenade\",\r\n\t\tsortname : \"Grenade, Smoke\",\r\n\t\tsource : [[\"D\", 268]],\r\n\t\tdefaultExcluded : true,\r\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. 1 round after a smoke grenade lands, it emits a cloud of smoke that heavily obscures a 20-ft radius area. A moderate wind (10 mph) disperses this smoke in 4 rounds, a strong wind (20+ mph) in 1 round.\",\r\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\r\n\t\t\"\\n   One round after a smoke grenade lands, it emits a cloud of smoke that creates a heavily obscured area in a 20-foot radius. A moderate wind (at least 10 miles per hour) disperses the smoke in 4 rounds; a strong wind (20 or more miles per hour) disperses it in 1 round.\",\r\n\t\tweight : 2\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20150407_PotA.js",
    "content": "var iFileName = \"pub_20150407_PotA.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the magic items from the Princes of the Apocalypse adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"PotA\"] = {\r\n\tname : \"Princes of the Apocalypse [items]\",\r\n\tabbreviation : \"PotA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/princes-apocalypse\",\r\n\tdate : \"2015/04/07\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"balloon pack\"] = {\r\n\tname : \"Balloon Pack\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"As an action, I can deploy the balloon to gain the effects of Levitate for 10 minutes. As a reaction, I can deploy the balloon to gain the effects of Feather Fall. After either effect ends, I descend slowly for 60 ft as it deflates. Once used in either way, the backpack is useless until recharged in an air node for 1 hour.\",\r\n\tdescriptionFull : \"This backpack contains the spirit of an air elemental and a compact leather balloon. While you're wearing the backpack, you can deploy the balloon as an action and gain the effect of the Levitate spell for 10 minutes, targeting yourself and requiring no concentration. Alternatively, you can use a reaction to deploy the balloon when you're falling and gain the effect of the Feather Fall spell for yourself.\\n   When either spell ends, the balloon slowly deflates as the elemental spirit escapes and returns to the Elemental Plane of Air. As the balloon deflates, you descend gently toward the ground for up to 60 feet. If you are still in the air at the end of this distance, you fall if you have no other means of staying aloft.\\n   After the spirit departs, the backpack's property is unusable unless the backpack is recharged for 1 hour in an elemental air node, which binds another spirit to the backpack.\",\r\n\tweight : 5, // as backpack\r\n\tusages : 1,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\",\r\n\taction : [[\"action\", \" (Levitate)\"], [\"reaction\", \" (Feather Fall)\"]],\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"feather fall\", \"levitate\"],\r\n\t\tselection : [\"feather fall\", \"levitate\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"feather fall\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tdescription : \"I descent only 60 ft/rnd for duration or until landed, taking no falling damage\",\r\n\t\t\tchanges : \"Using the Balloon Pack, I can only target myself.\"\r\n\t\t},\r\n\t\t\"levitate\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"10 min\",\r\n\t\t\tsave : \"\",\r\n\t\t\tdescription : \"I rise vertically, up to 20 ft; move up/down 20 ft instead of normal move\",\r\n\t\t\tchanges : \"Using the Balloon Pack, I can only target myself, but the spell requires no concentration.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bottled breath\"] = {\r\n\tname : \"Bottled Breath\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"Once as an action, I can inhale this breath of elemental air or administer it to another. The target then either exhale it or hold it in. If exhaled immediately, it produces the effects of Gust of Wind. Holding it in removes the need to breathe for 1 hour, though this benefit can end early, by speaking for example.\",\r\n\tdescriptionFull : \"This bottle contains a breath of elemental air. When you inhale it, you either exhale it or hold it.\\n   If you exhale the breath, you gain the effect of the Gust of Wind spell. If you hold the breath, you don't need to breathe for 1 hour, though you can end this benefit early (for example, to speak). Ending it early doesn't give you the benefit of exhaling the breath.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"claws of the umber hulk\"] = {\r\n\tname : \"Claws of the Umber Hulk\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"These brown iron gauntlets, shaped like umber hulk claws, cover my hands up to my elbows. While wearing both, I can tunnel 1 ft per round through solid rock and have a burrowing speed of 20 ft, but can't manipulate items or use somatic spell components. I can use them as melee weapons, dealing 1d8 slashing damage.\",\r\n\tdescriptionFull : \"These heavy gauntlets of brown iron are forged in the shape of an umber hulk's claws, and they fit the wearer's hands and forearms all the way up to the elbow. While wearing both claws, you gain a burrowing speed of 20 feet, and you can tunnel through solid rock at a rate of 1 foot per round.\\n   You can use a claw as a melee weapon while wearing it. You have proficiency with it, and it deals 1d8 slashing damage on a hit (your Strength modifier applies to the attack and damage rolls, as normal).\\n   While wearing the claws, you can't manipulate objects or cast spells with somatic components.\",\r\n\tweight : 1,\r\n\tattunement : true,\r\n\tspeed : { burrow : { spd : \"fixed20\", enc : \"fixed10\" } },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*claws)(?=.*umber)(?=.*hulk).*$/i,\r\n\t\tname : \"Claws of the Umber Hulk\",\r\n\t\tsource : [[\"PotA\", 222]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 8, \"slashing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nvar PotA_tempDevastationOrbNoteTxt = [\r\n\t\"A devastation orb is an elemental bomb that can be created at the site of an elemental node by performing a ritual with an elemental weapon. The type of orb created depends on the node used. For example, an air node creates a devastation orb of air. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed.\\n   A devastation orb measures 12 inches in diameter, weighs 10 pounds, and has a solid outer shell. The orb detonates 1d100 hours after its creation, releasing the elemental energy it contains. The orb gives no outward sign of how much time remains before it will detonate. Spells such as Identify and Divination can be used to ascertain when the orb will explode. An orb has AC 10, 15 hit points, and immunity to poison and psychic damage. Reducing it to 0 hit points causes it to explode instantly.\\n   A special container can be crafted to contain a devastation orb and prevent it from detonating. The container must be inscribed with symbols of the orb's opposing element. For example, a case inscribed with earth symbols can be used to contain a devastation orb of air and keep it from detonating. While in the container, the orb thrums. If it is removed from the container after the time when it was supposed to detonate, it explodes 1d6 rounds later, unless it is returned to the container.\\n   Regardless of the type of orb, its effect is contained within a sphere with a 1 mile radius. The orb is the sphere's point of origin. The orb is destroyed after one use.\",\r\n\tdesc([\r\n\t\t\"This elemental bomb can be created at the site of an elemental node of tELEMENT by performing a ritual with an elemental weapon. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed.\",\r\n\t\t\"A devastation orb measures 12 inches in diameter, weighs 10 pounds, and has a solid outer shell. The orb detonates 1d100 hours after its creation, releasing the elemental energy it contains. The orb gives no outward sign of how much time remains before it will detonate. Spells such as Identify and Divination can be used to ascertain when the orb will explode. An orb has AC 10, 15 hit points, and immunity to poison and psychic damage. Reducing it to 0 hit points causes it to explode instantly.\",\r\n\t\t\"A special container inscribed with symbols of oELEMENT can be crafted to contain a devastation orb of tELEMENT and prevent it from detonating. While in the container, the orb thrums. If it is removed from the container after the time when it was supposed to detonate, it explodes 1d6 rounds later, unless it is returned to the container.\"\r\n\t])\r\n];\r\nMagicItemsList[\"devastation orb\"] = {\r\n\tname : \"Devastation Orb\",\r\n\tsource : [[\"PotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates an effect in a 1-mile radius around it.\",\r\n\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0],\r\n\tweight : 10,\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Air\", \"Earth\", \"Fire\", \"Water\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"air\" : {\r\n\t\tname : \"Devastation Orb of Air\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates a powerful windstorm in 1 mile around it for 1 hour. Everything exposed to the wind is damage by it. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Air Orb\") + \". When this orb detonates, it creates a powerful windstorm that lasts for 1 hour. Whenever a creature ends its turn exposed to the wind, the creature must succeed on a DC 18 Constitution saving throw or take 1d4 bludgeoning damage, as the wind and debris batter it. The wind is strong enough to uproot weak trees and destroy light structures after at least 10 minutes of exposure. Otherwise, the rules for strong wind apply, as detailed in chapter 5 of the Dungeon Master's Guide.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"air\").replace(/oElement/g, \"earth\") + \"\\n  When this orb detonates, it creates a powerful windstorm within a sphere with a 1 mile radius that lasts for 1 hour. Whenever a creature ends its turn exposed to the wind, the creature must succeed on a DC 18 Constitution saving throw or take 1d4 bludgeoning damage, as the wind and debris batter it. The wind is strong enough to uproot weak trees and destroy light structures after at least 10 minutes of exposure. Otherwise, the rules for strong wind apply. A strong wind imposes disadvantage on ranged weapon attack rolls and Wisdom (Perception) checks that rely on hearing. A strong wind also extinguishes open flames, disperses fog, and makes flying by nonmagical means nearly impossible. A flying creature in a strong wind must land at the end of its turn or fall. A strong wind in a desert can create a sandstorm that imposes disadvantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t\t}]\r\n\t},\r\n\t\"earth\" : {\r\n\t\tname : \"Devastation Orb of Earth\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates the effect of an Earthquake spell in 1 mile around it for 1 minute. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Earth Orb\") + \". When this orb detonates, it subjects the area to the effects of the Earthquake spell for 1 minute (spell save DC 18). For the purpose of the spell's effects, the spell is cast on the turn that the orb explodes.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"earth\").replace(/oElement/g, \"air\") + desc([\r\n\t\t\t\t\"When this orb detonates, it subjects the area to the effects of the Earthquake spell for 1 minute (spell save DC 18). For the purpose of the spell's effects, the spell is cast on the turn that the orb explodes.\",\r\n\t\t\t\t\"The Earthquake spell creates a seismic disturbance that shakes creatures and structures in contact with the ground in that area. The ground in the area becomes difficult terrain. Each creature on the ground that is concentrating must make a Constitution saving throw. On a failed save, the creature's concentration is broken.\",\r\n\t\t\t\t\"At the end of each turn this goes on, each creature on the ground in the area must make a Dexterity saving throw. On a failed save, the creature is knocked prone.\",\r\n\t\t\t\t\"This spell can have additional effects depending on the terrain in the area, as determined by the DM.\",\r\n\t\t\t\t\"\\u2022 Fissures. Fissures open throughout the spell's area at the start of the turn after the orb detonates. A total of 1d6 such fissures open in locations chosen by the DM. Each is 1d10 \\xD7 10 ft deep, 10 ft wide, and extends from one edge of the area to the opposite side. A creature standing on a spot where a fissure opens must succeed on a Dexterity saving throw or fall in. A creature that successfully saves moves with the fissure's edge as it opens. A fissure that opens beneath a structure causes it to automatically collapse (see below).\",\r\n\t\t\t\t\"\\u2022 Structures. The tremor deals 50 bludgeoning damage to any structure in contact with the ground in the area when the orb detonates and at the start of each of turns for the duration. If a structure drops to 0 hit points, it collapses and potentially damages nearby creatures. A creature within half the distance of a structure's height must make a Dexterity saving throw. On a failed save, the creature takes 5d6 bludgeoning damage, is knocked prone, and is buried in the rubble, requiring a DC 20 Strength (Athletics) check as an action to escape. The DM can adjust the DC higher or lower, depending on the nature of the rubble. On a successful save, the creature takes half as much damage and doesn't fall prone or become buried.\"\r\n\t\t\t])\r\n\t\t}]\r\n\t},\r\n\t\"fire\" : {\r\n\t\tname : \"Devastation Orb of Fire\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates a dry heat wave in 1 mile around it for 24 hours. There is extreme heat within the area and wildfires can appear within, see Notes.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Fire Orb\") + \". When this orb detonates, it creates a dry heat wave that lasts for 24 hours. Within the area of effect, the rules for extreme heat apply, as detailed in chapter 5 of the Dungeon Master's Guide. At the end of each hour, there is a ten percent chance that the heat wave starts a wildfire in a random location within the area of effect. The wildfire covers a 10-foot-square area initially but expands to fill another 10-foot square each round until the fire is extinguished or burns itself out. A creature that comes within 10 feet of a wildfire for the first time on a turn or starts its turn there takes 3d6 fire damage.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"fire\").replace(/oElement/g, \"water\") + \"\\n  When this orb detonates, it creates a dry heat wave within a 1-mile radius sphere that lasts for 24 hours. At the end of each hour, there is a ten percent chance that the heat wave starts a wildfire in a random location within the area of effect. The wildfire covers a 10-foot-square area initially but expands to fill another 10-foot square each round until the fire is extinguished or burns itself out. A creature that comes within 10 feet of a wildfire for the first time on a turn or starts its turn there takes 3d6 fire damage.\\n   Within the area of effect, the rules for extreme heat apply, as the temperature is above 100 \\u00B0F. Any creature exposed to the heat and without access to drinkable water must succeed on a Constitution saving throw at the end of each hour or gain one level of exhaustion. The DC is 5 for the first hour and increases by 1 for each additional hour. Creatures wearing medium or heavy armor, or who are clad in heavy clothing, have disadvantage on the saving throw. Creatures with resistance or immunity to fire damage automatically succeed on the saving throw, as do creatures naturally adapted to hot climates.\"\r\n\t\t}]\r\n\t},\r\n\t\"water\" : {\r\n\t\tname : \"Devastation Orb of Water\",\r\n\t\tdescription : \"This 12 inch diameter orb has AC 10, 15 HP, and is immune to poison and psychic damage. it explodes 1d100 hours after its creation or when reduced to 0 HP. When detonated, it creates torrential rainstorm in 1 mile around it for 24 hours. If bodies of water exist in the area, they rise 10 ft and flood. See Notes page.\",\r\n\t\tdescriptionFull : PotA_tempDevastationOrbNoteTxt[0] + \"\\n   \" + toUni(\"Water Orb\") + \". When this orb detonates, it creates a torrential rainstorm that lasts for 24 hours. Within the area of effect, the rules for heavy precipitation apply, as detailed in chapter 5 of the Dungeon Master's Guide. If there is a substantial body of water in the area, it floods after 2d10 hours of heavy rain, rising 10 feet above its banks and inundating the surrounding area. The flood advances at a rate of 100 feet per round, moving away from the body of water where it began until it reaches the edge of the area of effect: at that point, the water flows downhill (and possibly recedes back to its origin). Light structures collapse and wash away. Any Large or smaller creature caught in the flood's path is swept away. The flooding destroys crops and might trigger mudslides, depending on the terrain.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : PotA_tempDevastationOrbNoteTxt[1].replace(/tELEMENT/g, \"water\").replace(/oElement/g, \"fire\") + \"\\n  When this orb detonates, it creates a torrential rainstorm in a 1-mile radius sphere that lasts for 24 hours. If there is a substantial body of water in the area, it floods after 2d10 hours of heavy rain, rising 10 feet above its banks and inundating the surrounding area. The flood advances at a rate of 100 feet per round, moving away from the body of water where it began until it reaches the edge of the area of effect: at that point, the water flows downhill (and possibly recedes back to its origin). Light structures collapse and wash away. Any Large or smaller creature caught in the flood's path is swept away. The flooding destroys crops and might trigger mudslides, depending on the terrain.\\n   Within the area of effect, the rules for heavy precipitation apply. Everything is lightly obscured, and creatures in the area have disadvantage on Wisdom (Perception) checks that rely on sight. Heavy rain also extinguishes open flames and imposes disadvantage on Wisdom (Perception) checks that rely on hearing.\"\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"drown\"] = {\r\n\tname : \"Drown\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (trident)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This trident has a +1 bonus on to hit and damage and deals +1d8 cold damage. It allows me to speak Aquan, grants me resistance to cold damage, and allows me to cast Dominate Monster on a water elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A steel trident decorated with bronze barnacles along the upper part of its haft, Drown has a sea-green jewel just below the tines and a silver shell at the end of its haft. It floats on the surface if dropped onto water, and it floats in place if it is released underwater. The trident is always cool to the touch, and it is immune to any damage due to exposure to water. Drown contains a spark of Olhydra, the Princess of Evil Water.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the targets take an extra 1d8 cold damage.\\n   \" + toUni(\"Water Mastery\") + \". You gain the following benefits while you hold Drown:\\n \\u2022 You can speak Aquan fluently.\\n \\u2022 You have resistance to cold damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on a water elemental. Once you have done so, Drown can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Tears of Endless Anguish\") + \". While inside a water node, you can perform a ritual called the Tears of Endless Anguish, using Drown to create a devastation orb of water. Once you perform the ritual, Drown can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + \". Drown makes its wielder covetous. While attuned to the weapon, you gain the following flaw: \\\"I demand and deserve the largest share of the spoils, and I refuse to part with anything that's mine.\\\" In addition, if you are attuned to Drown for 24 consecutive hours, barnacles form on your skin. The barnacles can be removed with a Greater Restoration spell or similar magic, but not while you are attuned to the weapon.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tlanguageProfs : [\"Aquan\"],\r\n\tdmgres : [\"Cold\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Water elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect a water elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"trident\",\r\n\t\tregExpSearch : /drown/i,\r\n\t\tname : \"Drown\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"Thrown, versatile (1d8); +1d8 cold damage\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A steel trident decorated with bronze barnacles along the upper part of its haft, Drown has a sea-green jewel just below the tines and a silver shell at the end of its haft. It floats on the surface if dropped onto water, and it floats in place if it is released underwater. The trident is always cool to the touch, and it is immune to any damage due to exposure to water. Drown contains a spark of Olhydra, the Princess of Evil Water.\",\r\n\t\t\t\"I gain a +1 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the targets take an extra 1d8 cold damage.\",\r\n\t\t\t\"While holding Drown, I can speak Aquan fluently, have resistance to cold damage, I can cast Dominate Monster (save DC 17) on a water elemental once per dawn.\",\r\n\t\t\t\"While inside a water node, I can perform a ritual called the Tears of Endless Anguish, using Drown to create a Devastation Orb of Water. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Drown can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t\"Drown makes me covetous. While attuned to the weapon, I gain the following flaw: \\\"I demand and deserve the largest share of the spoils, and I refuse to part with anything that's mine.\\\" In addition, if I am attuned to Drown for 24 consecutive hours, barnacles form on my skin. The barnacles can be removed with a Greater Restoration spell or similar magic, but not while I am attuned to the weapon.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"ironfang\"] = {\r\n\tname : \"Ironfang\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (war pick)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This war pick has a +2 bonus on to hit and damage and deals +1d8 thunder damage. It allows me to speak Terran, grants me resistance to cold damage, tremorsense 60 ft, allows me to cast Dominate Monster on an earth elemental once per dawn, and to cast Shatter using 1 of its 3 charges and more, see Notes page.\",\r\n\tdescriptionFull : \"A war pick forged from a single piece of iron, Ironfang has a fang-like head inscribed with ancient runes. The pick is heavy in the hand, but when the wielder swings the pick in anger, the weapon seems almost weightless. This weapon is immune to any form of rust, acid, or corrosion\\u2014nothing seems to mark it. Ironfang contains a spark of Ogr\\xE9moch, the Prince of Evil Earth.\\n   You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the target takes an extra 1d8 thunder damage.\\n   \" + toUni(\"Earth Mastery\") + \". You gain the following benefits while you hold Ironfang:\\n \\u2022 You can speak Terran fluently.\\n \\u2022 You have resistance to acid damage.\\n \\u2022 You have tremorsense out to a range of 60 feet.\\n \\u2022 You can sense the presence of precious metals and stones within 60 feet of you, but not their exact location.\\n \\u2022 You can cast Dominate Monster (save DC 17) on an earth elemental. Once you have done so, Ironfang can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Shatter\") + \". Ironfang has 3 charges. You can use your action to expend 1 charge and cast the 2nd-level version of Shatter (DC 17). Ironfang regains 1d3 expended charges daily at dawn.\\n   \" + toUni(\"The Rumbling\") + \". While inside an earth node, you can perform a ritual called the Rumbling, using Ironfang to create a devastation orb of earth. Once you perform the ritual, Ironfang can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + \". Ironfang heightens its wielder's destructive nature. While attuned to the weapon, you gain the following flaw: \\\"I like to break things and cause ruin.\\\"\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tlanguageProfs : [\"Terran\"],\r\n\tdmgres : [\"Acid\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tlimfeaname : \"Ironfang [Rumbling ritual]\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ironfang [Dominate Monster]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Ironfang [Shatter] (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\",\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}, {\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"shatter\"],\r\n\t\tselection : [\"shatter\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Earth elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect an earth elemental.\"\r\n\t\t},\r\n\t\t\"shatter\" : {\r\n\t\t\tdescription : \"10-ft rad all 4d8 Thunder dmg; save halves; nonmagical unattended objects also take dmg\",\r\n\t\t\tchanges : \"Cast as if using a 2nd-level spell slot.\"\r\n\t\t}\r\n\t},\r\n\tvision : [[\"Tremorsense\", \"fixed 60\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"war pick\",\r\n\t\tregExpSearch : /ironfang/i,\r\n\t\tname : \"Ironfang\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"+1d8 thunder damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A war pick forged from a single piece of iron, Ironfang has a fang-like head inscribed with ancient runes. The pick is heavy in the hand, but when the wielder swings the pick in anger, the weapon seems almost weightless. This weapon is immune to any form of rust, acid, or corrosion\\u2014nothing seems to mark it. Ironfang contains a spark of Ogr\\xE9moch, the Prince of Evil Earth.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the target takes an extra 1d8 thunder damage.\",\r\n\t\t\t\"While holding Ironfang, I can speak Terran fluently, have resistance to acid damage, have tremorsense out to a range of 60 ft, can sense the presence of precious metals and stones within 60 ft of me, but not their exact location, and can cast Dominate Monster (save DC 17) on an earth elemental once per dawn.\",\r\n\t\t\t\"Ironfang has 3 charges and regains 1d3 expended charges daily at dawn. I can use your action to expend 1 charge and cast the 2nd-level version of Shatter (DC 17).\",\r\n\t\t\t\"While inside an earth node, I can perform a ritual called the Rumbling, using Ironfang to create a Devastation Orb of Earth. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Ironfang can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Ironfang heightens my destructive nature. While attuned to the weapon, I gain the following flaw: \"I like to break things and cause ruin.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"lost crown of besilmer\"] = {\r\n\tname : \"Lost Crown of Besilmer\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This dwarven battle-helm gives me psychic resistance and adv. on saves against being charmed. It has 3 charges, regaining 1d3 at dawn. As a bonus action, I can use 1 charge to inspire an ally in 60 ft that I can see and that can see and hear me. Once before my next turn ends, it can add a d6 to one check, attack, or save.\",\r\n\tdescriptionFull : \"This dwarven battle-helm consists of a sturdy open-faced steel helmet, decorated with a golden circlet above the brow from which seven small gold spikes project upward. You gain the following benefits while wearing the crown:\\n \\u2022 You have resistance to psychic damage.\\n \\u2022 You have advantage on saving throws against effects that would charm you.\\n \\u2022 You can use a bonus action to inspire one creature you can see that is within 60 feet of you and that can see or hear you. Once before the end of your next turn, the inspired creature can roll a d6 and add the number rolled to one ability check, attack roll, or saving throw it makes. This uses 1 charge from the crown. It has 3 charges, and it regains 1d3 expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \" (inspire)\"]],\r\n\tdmgres : [\"Psychic\"],\r\n\tsavetxt : { adv_vs : [\"charmed\"] }\r\n}\r\nMagicItemsList[\"orcsplitter\"] = {\r\n\tname : \"Orcsplitter\",\r\n\tsource : [[\"PotA\", 224]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"G\",\r\n\tprerequisite : \"Requires attunement by a good-aligned dwarf, fighter, or paladin\",\r\n\tdescription : \"This sentient greataxe has a +2 bonus on to hit and damage. If I roll a 20 on an attack vs. an orc with it, the orc must make a DC 17 Con save or be reduced to 0 HP. While I'm not incapacitated, I can't be surprised by orcs, and me and my allies in 30 ft can't be frightened. I can sense orcs within 120 ft. See Notes page.\",\r\n\tdescriptionFull : \"A mighty axe wielded long ago by the dwarf king Torhild Flametongue, Orcsplitter is a battered weapon that appears unremarkable at first glance. Its head is graven with the Dwarvish runes for \\\"orc,\\\" but the runes are depicted with a gap or slash through the markings; the word \\\"orc\\\" is literally split in two.\\n   You gain the following benefits while holding this magic weapon:\\n \\u2022 You gain a +2 bonus to attack and damage rolls made with it.\\n \\u2022 When you roll a 20 on an attack roll with this weapon against an orc, that orc must succeed on a DC 17 Constitution saving throw or drop to 0 hit points.\\n \\u2022 You can't be surprised by orcs while you're not incapacitated. You are also aware when orcs are within 120 feet of you and aren't behind total cover, although you don't know their location.\\n \\u2022 You and any of your friends within 30 feet of you can't be frightened while you're not incapacitated.\\n\\n\" + toUni(\"Sentience\") + \". Orcsplitter is a sentient, lawful good weapon with an Intelligence of 6, a Wisdom of 15, and a Charisma of 10. It can see and hear out to 120 feet and has darkvision. It communicates by transmitting emotions to its wielder, although on rare occasions it uses a limited form of telepathy to bring to the wielder's mind a couplet or stanza of ancient Dwarvish verse.\\n   \" + toUni(\"Personality\") + \". Orcsplitter is grim, taciturn, and inflexible. It knows little more than the desire to face orcs in battle and serve a courageous, just wielder. It disdains cowards and any form of duplicity, deception, or disloyalty. The weapon's purpose is to defend dwarves and to serve as a symbol of dwarven resolve. It hates the traditional foes of dwarves\\u2014giants, goblins, and, most of all, orcs\\u2014and silently urges its possessor to meet such creatures in battle.\",\r\n\tattunement : true,\r\n\tweight : 7,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /orcsplitter/i,\r\n\t\tname : \"Orcsplitter\",\r\n\t\tsource : [[\"PotA\", 224]],\r\n\t\tdescription : \"Heavy, two-handed; On 20 vs. Orc: it DC 17 Con save or 0 HP\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { immune : [\"frightened\"] },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t'A mighty axe wielded long ago by the dwarf king Torhild Flametongue, Orcsplitter is a battered weapon that appears unremarkable at first glance. Its head is graven with the Dwarvish runes for \"orc,\" but the runes are depicted with a gap or slash through the markings; the word \"orc\" is literally split in two.',\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with it. When I roll a 20 on an attack roll with this weapon against an orc, that orc must succeed on a DC 17 Constitution saving throw or drop to 0 hit points.\",\r\n\t\t\t\"While I am not incapacitated, I can't be surprised by orcs and I am aware when orcs are within 120 ft of meand aren't behind total cover, although I don't know their location. Also, me and any of my friends within 30 ft of can't be frightened while I am not incapacitated.\",\r\n\t\t\t\"Orcsplitter is a sentient, lawful good weapon with an Intelligence of 6, a Wisdom of 15, and a Charisma of 10. It can see and hear out to 120 feet and has darkvision. It communicates by transmitting emotions to its wielder, although on rare occasions it uses a limited form of telepathy to bring to the wielder's mind a couplet or stanza of ancient Dwarvish verse.\",\r\n\t\t\t\"Orcsplitter is grim, taciturn, and inflexible. It knows little more than the desire to face orcs in battle and serve a courageous, just wielder. It disdains cowards and any form of duplicity, deception, or disloyalty. The weapon's purpose is to defend dwarves and to serve as a symbol of dwarven resolve. It hates the traditional foes of dwarves\\u2014giants, goblins, and, most of all, orcs\\u2014and silently urges its possessor to meet such creatures in battle.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"reszur\"] = {\r\n\tname : \"Reszur\",\r\n\tsource : [[\"PotA\", 157]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this dagger. It doesn't make noise when it hits or cuts something. If I speaks the name \\\"Reszur\\\", which is engraved on its pommel, the blade gives off a faint, cold glow, shedding dim light in a 10-foot radius until I speak the name again.\",\r\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this weapon, which doesn't make noise when it hits or cuts something.\\n   The name \\\"Reszur\\\" is graven on the dagger's pommel. If the wielder speaks the name, the blade gives off a faint, cold glow, shedding dim light in a 10-foot radius until the wielder speaks the name again.\",\r\n\tweight : 1,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /reszur/i,\r\n\t\tname : \"Reszur\",\r\n\t\tsource : [[\"PotA\", 157]],\r\n\t\tdescription : \"Finesse, light, thrown; Doesn't make any noise\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"seeker dart\"] = {\r\n\tname : \"Seeker Dart\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"weapon (dart)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"Once as an action, when I whisper \\\"seek\\\" and hurl this dart, it seeks out a target of my choice within 120 ft that I have seen at least once. If the target isn't within range or there is no clear path to it, the dart's magic is spent. Else, the target must make a DC 16 Dex save or take 1d4 piercing and 3d4 lightning damage.\",\r\n\tdescriptionFull : \"This small dart is decorated with designs like windy spirals that span the length of its shaft.\\n   When you whisper the word \\\"seek\\\" and hurl this dart, it seeks out a target of your choice within 120 feet of you. You must have seen the target before, but you don't need to see it now. If the target isn't within range or if there is no clear path to it, the dart falls to the ground, its magic spent and wasted. Otherwise, elemental winds guide the dart instantly through the air to the target. The dart can pass though openings as narrow as 1 inch wide and can change direction to fly around corners.\\n   When the dart reaches its target, the target must succeed on a DC 16 Dexterity saving throw or take 1d4 piercing damage and 3d4 lightning damage. The dart's magic is then spent, and it becomes an ordinary dart.\",\r\n\tweight : 0.25\r\n}\r\nMagicItemsList[\"storm boomerang\"] = {\r\n\tname : \"Storm Boomerang\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"weapon (javelin)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This ranged weapon has 60/120 ft range, deals 1d4 bludgeoning and 3d4 thunder damage, and its target must make a DC 10 Con save or be stunned until its next turn ends. On a miss, it returns to the thrower's hand. Once it deals thunder damage, it can't do so or stun again until recharged in an air node for 1 hour.\",\r\n\tdescriptionFull : \"This boomerang is a ranged weapon carved from griffon bone and etched with the symbol of elemental air. When thrown, it has a range of 60/120 feet, and any creature that is proficient with the javelin is also proficient with this weapon. On a hit, the boomerang deals 1d4 bludgeoning damage and 3d4 thunder damage, and the target must succeed on a DC 10 Constitution saving throw or be stunned until the end of its next turn. On a miss, the boomerang returns to the thrower's hand.\\n   Once the boomerang deals thunder damage to a target, the weapon loses its ability to deal thunder damage and its ability to stun a target. These properties return after the boomerang spends at least 1 hour inside an elemental air node.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"javelin\",\r\n\t\tname : \"Storm Boomerang\",\r\n\t\tregExpSearch : /^(?=.*storm)(?=.*boomerang).*$/i,\r\n\t\tlist : \"melee\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"60/120 ft\",\r\n\t\tweight : 2,\r\n\t\tdescription : \"Returns on a miss; Once: +3d4 thunder damage, target DC 10 Con save or stunned 1 turn\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\"\r\n}\r\nMagicItemsList[\"tinderstrike\"] = {\r\n\tname : \"Tinderstrike\",\r\n\tsource : [[\"PotA\", 225]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This flint dagger has a +2 bonus on to hit and damage and deals +2d6 fire damage. It allows me to speak Ignan, grants me resistance to fire damage, and allows me to cast Dominate Monster on a fire elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A flint dagger, Tinderstrike is uncommonly sharp, and sparks cascade off its edge whenever it strikes something solid. Its handle is always warm to the touch, and the blade smolders for 1d4 minutes after it is used to deal damage. It contains a spark of Imix, Prince of Evil Fire.\\n   You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you hit with it, the target takes an extra 2d6 fire damage.\\n   \" + toUni(\"Fire Mastery\") + \". You gain the following benefits while you hold Tinderstrike:\\n \\u2022 You can speak Ignan fluently.\\n \\u2022 You have resistance to fire damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on a fire elemental. Once you have done so, Tinderstrike can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Dance of the All-Consuming Fire\") + \". While inside a fire node, you can perform a ritual called the Dance of the All-Consuming Fire, using Tinderstrike to create a devastation orb of fire. Once you perform the ritual, Tinderstrike can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + '. Tinderstrike makes its wielder impatient and rash. While attuned to the weapon, you gain the following flaw: \"I act without thinking and take risks without weighing the consequences.\"',\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tlanguageProfs : [\"Ignan\"],\r\n\tdmgres : [\"Fire\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Fire elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect a fire elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /tinderstrike/i,\r\n\t\tname : \"Tinderstrike\",\r\n\t\tsource : [[\"PotA\", 225]],\r\n\t\tdescription : \"Finesse, light, thrown; +2d6 fire damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A flint dagger, Tinderstrike is uncommonly sharp, and sparks cascade off its edge whenever it strikes something solid. Its handle is always warm to the touch, and the blade smolders for 1d4 minutes after it is used to deal damage. It contains a spark of Imix, Prince of Evil Fire.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this magic weapon. When I hit with it, the target takes an extra 2d6 fire damage.\",\r\n\t\t\t\"While holding Tinderstrike, I can speak Ignan fluently, have resistance to fire damage, and can cast Dominate Monster (save DC 17) on a fire elemental once per dawn.\",\r\n\t\t\t\"While inside a fire node, I can perform a ritual called the Dance of the All-Consuming Fire, using Tinderstrike to create a Devastation Orb of Fire. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Tinderstrike can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Tinderstrike makes me impatient and rash. While attuned to the weapon, I gain the following flaw: \"I act without thinking and take risks without weighing the consequences.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"weird tank\"] = {\r\n\tname : \"Weird Tank\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, I can open (or close) this tank of water, allowing the water weird within it to act or not. The weird is bound to the tank, follows my telepathic commands, and acts after me in combat. If the weird is killed, a new one can be formed by placing the tank in a water node for 24 hours.\",\r\n\tdescriptionLong : \"As an action, I can open (or close) this tank of water, allowing the water weird within it to act or not. The weird is bound to the tank, follows my telepathic commands, and acts after me in combat. If it is killed, a new one can be formed by placing the tank in a water node for 24 hours. I can close the tank as an action, but I can only close the tank after commanding the weird to retract into it or if it died. The tank has AC 15, 50 HP, vulnerability to bludgeoning damage, and immunity to poison and psychic damage. Reducing the tank to 0 hit points destroys it and the water weird contained within it.\",\r\n\tdescriptionFull : \"A weird tank is a ten-gallon tank of blown glass and sculpted bronze with a backpack-like carrying harness fashioned from tough leather. A water weird is contained within the tank. While wearing the tank, you can use an action to open it, allowing the water weird to emerge. The water weird acts immediately after you in the initiative order, and it is bound to the tank.\\n   You can command the water weird telepathically (no action required) while you wear the tank. You can close the tank as an action only if you have first commanded the water weird to retract into it or if the water weird is dead.\\n   If the water weird is killed, the tank loses its magical containment property until it spends at least 24 hours inside an elemental water node. When the tank is recharged, a new water weird forms inside it.\\n   The tank has AC 15, 50 hit points, vulnerability to bludgeoning damage, and immunity to poison and psychic damage. Reducing the tank to 0 hit points destroys it and the water weird contained within it.\",\r\n\tweight : 120,\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"windvane\"] = {\r\n\tname : \"Windvane\",\r\n\tsource : [[\"PotA\", 225]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This spear with the finesse property has a +2 bonus on to hit and damage and deals +1d6 lightning damage. It allows me to speak Auran, grants me resistance to lightning damage, and allows me to cast Dominate Monster on an air elemental once per dawn. It gives me a flaw, see Notes page.\",\r\n\tdescriptionFull : \"A silver spear, Windvane has dark sapphires on the filigreed surface of its polished head. Held by its shining haft, the weapon feels insubstantial, as if clutching a cool, gently flowing breeze. The spear contains a spark of Yan-C-Bin, the Prince of Evil Air.\\n   You have a +2 bonus to attack and damage rolls made with this magic weapon, which has the finesse weapon property. When you hit with it, the target takes an extra 1d6 lightning damage.\\n   \" + toUni(\"Air Mastery\") + \". You gain the following benefits while you hold Windvane:\\n \\u2022 You can speak Auran fluently.\\n \\u2022 You have resistance to lightning damage.\\n \\u2022 You can cast Dominate Monster (save DC 17) on an air elemental. Once you have done so, Windvane can't be used this way again until the next dawn.\\n\\n\" + toUni(\"Song of the Four Winds\") + \". While inside an air node, you can perform a ritual called the Song of the Four Winds, using Windvane to create a devastation orb of air. Once you perform the ritual, Windvane can't be used to perform the ritual again until the next dawn.\\n   \" + toUni(\"Flaw\") + '. Windvane makes its wielder mercurial and unreliable. While attuned to the weapon, you gain the following flaw: \"I break my vows and plans. Duty and honor mean nothing to me.\"',\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tlanguageProfs : [\"Auran\"],\r\n\tdmgres : [\"Lightning\"],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tfixedDC : 17,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"dominate monster\"],\r\n\t\tselection : [\"dominate monster\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"dominate monster\" : {\r\n\t\t\tdescription : \"Air elemental save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\r\n\t\t\tchanges : \"Can only affect an air elemental.\"\r\n\t\t}\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"spear\",\r\n\t\tregExpSearch : /windvane/i,\r\n\t\tname : \"Windvane\",\r\n\t\tsource : [[\"PotA\", 225]],\r\n\t\tdescription : \"Finesse, thrown, versatile (1d6); +1d6 lightning damage\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"A silver spear, Windvane has dark sapphires on the filigreed surface of its polished head. Held by its shining haft, the weapon feels insubstantial, as if clutching a cool, gently flowing breeze. The spear contains a spark of Yan-C-Bin, the Prince of Evil Air.\",\r\n\t\t\t\"I have a +2 bonus to attack and damage rolls made with this magic weapon, which has the finesse weapon property. When I hit with it, the target takes an extra 1d6 lightning damage.\",\r\n\t\t\t\"While holding Windvane, I can speak Auran fluently, have resistance to lightning damage, and can cast Dominate Monster (save DC 17) on an air elemental once per dawn.\",\r\n\t\t\t\"While inside an air node, I can perform a ritual called the Song of the Four Winds, using Windvane to create a Devastation Orb of Air. The ritual takes 1 hour to complete and requires 2,000 gp worth of special components, which are consumed. Once I perform the ritual, Windvane can't be used to perform the ritual again until the next dawn.\",\r\n\t\t\t'Windvane makes me mercurial and unreliable. While attuned to the weapon, I gain the following flaw: \"I break my vows and plans. Duty and honor mean nothing to me.\"'\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"wingwear\"] = {\r\n\tname : \"Wingwear\",\r\n\tsource : [[\"PotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"This snug uniform with leathery flaps has 3 charges, regaining all when placed in an air not for 1 hour. As a bonus action, I can expend 1 charge to gain a flying speed of 30 ft until I land or have 0 altitude. At the end of each of my turns, my altitude drops by 5 ft and I must move at least 30 ft horizontally or I fall.\",\r\n\tdescriptionFull : \"This snug uniform has symbols of air stitched into it and leathery flaps that stretch along the arms, waist, and legs to create wings for gliding. A suit of wingwear has 3 charges. While you wear the suit, you can use a bonus action and expend 1 charge to gain a flying speed of 30 feet until you land. At the end of each of your turns, your altitude drops by 5 feet. Your altitude drops instantly to 0 feet at the end of your turn if you didn't fly at least 30 feet horizontally on that turn. When your altitude drops to 0 feet, you land (or fall), and you must expend another charge to use the suit again.\\n   The suit regains all of its expended charges after spending at least 1 hour in an elemental air node.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"Air Node\",\r\n\tadditional : \"recharge: 1 h in air node\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}"
  },
  {
    "path": "WotC material/pub_20150415_AL-EE.js",
    "content": "var iFileName = \"pub_20150415_AL-EE.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the optional backgrounds from the Adventurers League season 2 (Elemental Evil) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"AL:EE\"]={\r\n\tname : \"Elemental Evil Backgrounds [Mulmaster]\",\r\n\tabbreviation : \"AL:EE\",\r\n\tgroup : \"Adventurers League\",\r\n\turl : \"https://www.dropbox.com/s/ljtrwzmkoijb02o/Mulmaster-Bonds-and-Backgrounds.pdf?dl=1\", // used to be https://dndadventurersleague.org/wp-content/uploads/2015/04/Mulmaster-Bonds-and-Backgrounds.pdf\r\n\tdate : \"2015/04/15\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"caravan specialist\"] = {\r\n\tregExpSearch : /^(?=.*caravan)(?=.*specialist).*$/i,\r\n\tname : \"Caravan Specialist\",\r\n\tsource : [[\"AL:EE\", 2], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Survival\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Two-person tent\", \"\", 20],\r\n\t\t[\"Regional map\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Wagonmaster\",\r\n\ttrait : [\r\n\t\t\"Any group is only as strong as its weakest link. Everyone has to pull their own weight.\",\r\n\t\t\"There's always someone out there trying to take what I've got. Always be vigilant.\",\r\n\t\t\"Anything can be learned if you have the right teacher. Most folks just need a chance.\",\r\n\t\t\"Early to bed and early to rise; this much at least is under my control.\",\r\n\t\t\"You can listen to me or don't and wish you had. Everyone ends up on one side of that fence.\",\r\n\t\t\"Eventually my hard work will be rewarded. Maybe that time has finally come.\",\r\n\t\t\"A strong ox or horse is more reliable than most people I've met.\",\r\n\t\t\"I never had time for books, but wish I had. I admire folks who have taken the time to learn.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Service\",\r\n\t\t\t\"Service: Using my talents to help others is the best way of helping myself. (Good)\"\r\n\t\t],\r\n\t\t[\"Selfish\",\r\n\t\t\t\"Selfish: What people don't know WILL hurt them, but why is that my problem? (Evil)\"\r\n\t\t],\r\n\t\t[\"Wanderer\",\r\n\t\t\t\"Wanderer: I go where the road takes me. Sometimes that's a good thing… (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Fittest\",\r\n\t\t\t\"Fittest: On the open road, the law of nature wins. Victims are the unprepared. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Focused\",\r\n\t\t\t\"Focused: I simply have a job to do, and I'm going to do it. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Motivated\",\r\n\t\t\t\"Motivated: There's a reason I'm good at what I do, I pay attention to the details. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My brother has a farm In Elmwood and I've helped him and his neigbors move their goods to Mulmaster and other surrounding towns. Those are good people.\",\r\n\t\t\"A caravan I lead was attacked by bandits and many innocents died. I swear that I will avenge them by killing any bandits I encounter.\",\r\n\t\t\"The Soldiery are mostly good guys who understand the importance of protecting the roads. The City Watch is who you have to look out for. If they are inspecting your goods, get ready to pay a fine.\",\r\n\t\t\"The new commander of Southroad Tower, Capt. Holke, understands the importance of safe roads. He's hired me for several jobs and I'm grateful.\",\r\n\t\t\"There's always a road I haven't traveled before. I'm always looking for new places to explore.\",\r\n\t\t\"Wealth and power mean little without the freedom to go where and when you want.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have trouble trusting people I've just met.\",\r\n\t\t\"I enjoy the open road. Underground and tight spaces make me very nervous.\",\r\n\t\t\"I expect others to heed my orders and have little respect or sympathy if they don't.\",\r\n\t\t\"I am very prideful and have trouble admitting when I'm wrong.\",\r\n\t\t\"Once I decide on a course of action, I do not waver.\",\r\n\t\t\"I like to explore, and my curiosity will sometimes get me into trouble.\"\r\n\t],\r\n\ttoolProfs : [\"Vehicles (land)\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"earthspur miner\"] = {\r\n\tregExpSearch : /^(?=.*earthspur)(?=.*miner).*$/i,\r\n\tname : \"Earthspur Miner\",\r\n\tsource : [[\"AL:EE\", 3], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Shovel or miner's pick\", \"\", 5],\r\n\t\t[\"Block and tackle\", \"\", 5],\r\n\t\t[\"Climber's kit\", \"\", 12]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Deep Miner\",\r\n\ttrait : [\r\n\t\t\"Nothing bothers me for long.\",\r\n\t\t\"I hate the horrors of the Underdark with a passion. They took my friends and family and almost got me.\",\r\n\t\t\"Anything worth doing takes time and patience. I have learned to plan and wait for the things I want and to be patient to achieve my goals.\",\r\n\t\t\"I can party with everyone. Whether with dwarves, or goliaths, or deep gnomes, I can find a way to have a good time.\",\r\n\t\t\"I'd rather be mining. This is okay; mining is better.\",\r\n\t\t\"I think that I will stumble upon great riches if I just keep looking.\",\r\n\t\t\"People who don't work with their hands and who live in houses are soft and weak.\",\r\n\t\t\"I wish I were more educated. I look up to people who are.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Generosity\",\r\n\t\t\t\"Generosity: The riches of the earth are to be shared by all. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: Gems and precious metals, I want them all for myself. (Evil)\"\r\n\t\t],\r\n\t\t[\"Mooch\",\r\n\t\t\t\"Mooch: Property, schmoperty. If I need it, I take and use it. If I don't, I leave it for someone else. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Boundaries\",\r\n\t\t\t\"Boundaries: Everything and everyone has its prescribed place; I respect that and expect others to do the same. (Lawful) \"\r\n\t\t],\r\n\t\t[\"Let it Be\",\r\n\t\t\t\"Let it Be: I don't meddle in the affairs of others if I can avoid it. They're none of my business. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Materialist\",\r\n\t\t\t\"Materialist: I want riches to improve my life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The people of the Earthspur mines are my family. I will do anything to protect them.\",\r\n\t\t\"A deep gnome saved my life when I was injured and alone. I owe his people a great debt.\",\r\n\t\t\"I must behold and preserve the natural beauty of places below the earth.\",\r\n\t\t\"Gems hold a special fascination for me, more than gold, land, magic, or power.\",\r\n\t\t\"I want to explore new depths and scale new heights.\",\r\n\t\t\"Someday I'm going to find the mother lode, then I'll spend the rest of my life in luxury.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'm uncomfortable spending time under the open sky. I'd rather be indoors or underground.\",\r\n\t\t\"I'm not used to being around other people much and sometimes get grouchy about it.\",\r\n\t\t\"Good tools are more reliable than people. In a cave in, I would save a sturdy pick before a stranger.\",\r\n\t\t\"I jealously guard my secrets, because I think others will take advantage of me if they learn what I know.\",\r\n\t\t\"I am obsessed with getting rich. I always have a scheme brewing for making it big.\",\r\n\t\t\"I'm afraid of the dark.\"\r\n\t],\r\n\tlanguageProfs : [\"Dwarvish\", \"Undercommon\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"harborfolk\"] = {\r\n\tregExpSearch : /harborfolk/i,\r\n\tname : \"Harborfolk\",\r\n\tsource : [[\"AL:EE\", 4], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Sleight of Hand\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Fishing tackle\", \"\", 4],\r\n\t\t[\"Set of dice, playing cards, or three-dragon ante\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Rowboat\", \"\", 100]\r\n\t],\r\n\tfeature : \"Harborfolk\",\r\n\ttrait : [\r\n\t\t\"I am curious. I want to know why things are the way they are and why people do the things that they do.\",\r\n\t\t\"I can't sing, but that never stops me from doing it, loudly. Everyone loves a good sea chanty!\",\r\n\t\t\"I think the High Blade is doing a terrific job, don't you?\",\r\n\t\t\"I'm very excited that the House Built on Gold is being restored. I am a zealous worshipper of Waukeen.\",\r\n\t\t\"I am quite superstitious. I see portents in everyday occurances.\",\r\n\t\t\"I resent the rich and enjoy thwarting their plans and spoiling their fun in small ways.\",\r\n\t\t\"I have a sea story to fit every occasion.\",\r\n\t\t\"I'm a fisher, but I secretly detest eating fish. I will do anything to avoid it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Calm\",\r\n\t\t\t\"Calm: For all things, there is a tide. I set sail when it is right, and mend my nets when it is not. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Windblown\",\r\n\t\t\t\"Windblown: I go where the winds blow. No man or woman tells me where or when to sail. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Aspiring\",\r\n\t\t\t\"Aspiring: I will gain the favor of a Zor or Zora patron, maybe even one of the Blades! (Any)\"\r\n\t\t],\r\n\t\t[\"Salty\",\r\n\t\t\t\"Salty: I want people to look to me as an expert on plying Mulmaster Harbor. (Any)\"\r\n\t\t],\r\n\t\t[\"Selfless\",\r\n\t\t\t\"Selfless: We are all children of the sea. I help everyone in peril afloat and ashore. (Good)\"\r\n\t\t],\r\n\t\t[\"Let them Drown\",\r\n\t\t\t\"Let them Drown: I refuse to risk my hide to help others. They wouldn't help me if roles were reversed. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I once lost everything but my rowboat. I'll do anything to protect it.\",\r\n\t\t\"My brother was in the Soldiery, but he was killed. I really look up to the men and women who serve.\",\r\n\t\t\"The Cloaks killed my friend for spellcasting. I'll get them back somehow, someday.\",\r\n\t\t\"The High House of Hurting helped me when I was hurt and asked nothing in return. I owe them my life.\",\r\n\t\t\"I was robbed in the Zhent ghetto once. It will not happen again.\",\r\n\t\t\"I would do anything to protect the other harborfolk. They are my family.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I drink too much, which causes me to miss the tide.\",\r\n\t\t\"I killed a drunk member of the City Watch in a brawl. I am terrified that they might find out.\",\r\n\t\t\"I oversell myself and make promises I can't keep when I want to impress someone.\",\r\n\t\t\"Book learning is a waste of time. I have no patience for people who don't speak from experience.\",\r\n\t\t\"I almost always cheat. I can't help myself.\",\r\n\t\t\"I am a secret informant for the Hawks. I send them reports about everything I see and hear, even what my friends and allies are up to.\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (water)\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"mulmaster aristocrat\"] = {\r\n\tregExpSearch : /^(?=.*mulmaster)(?=.*aristocrat).*$/i,\r\n\tname : \"Mulmaster Aristocrat\",\r\n\tsource : [[\"AL:EE\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Performance\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Artisan's tools or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Highborn\",\r\n\ttrait : [\r\n\t\t\"My ambitions are boundless. I will be a Zor or Zora one day!\",\r\n\t\t\"I must alwayss look my best.\",\r\n\t\t\"Beauty is everywhere. I can find it in even the homliest person and the most horrible tragedy.\",\r\n\t\t\"Décorum must be preserved at all costs.\",\r\n\t\t\"I will not admit I am wrong if I can avoid it.\",\r\n\t\t\"I am extremely well-educated and frequently remind others of that fact.\",\r\n\t\t\"I take what I can today, because I do not know what tomorrow holds.\",\r\n\t\t\"My life is full of dance, song, drink, and love.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Generous\",\r\n\t\t\t\"Generous: I have a responsibility to help and protect the less fortunate. (Good)\"\r\n\t\t],\r\n\t\t[\"Loyal\",\r\n\t\t\t\"Loyal: My word, once given, is my bond. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Callous\",\r\n\t\t\t\"Callous: I am unconcerned with any negative effects my actions may have on the lives and fortunes of others. (Evil)\"\r\n\t\t],\r\n\t\t[\"Impulsive\",\r\n\t\t\t\"Impulsive: I follow my heart. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Ignorant\",\r\n\t\t\t\"Ignorant: Explanations bore me. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Isolationist\",\r\n\t\t\t\"Isolationist: I am concerned with the fortunes of my friends and family. Others must see to themselves. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have dedicated my wealth and my talents to the service of one of the city's many temples.\",\r\n\t\t\"My family and I are loyal supporters of High Blade Jaseen Drakehorn. Our fortunes are inexorably tied to hers. I would do anything to support her.\",\r\n\t\t\"Like many families who were close to High Blade Selfaril Uoumdolphin, mine has suffered greatly since his fall. We honor his memory in secret.\",\r\n\t\t\"My family plotted with Rassendyll Uoumdolphin brother usurped brother as High Blade. Betrayal is the quickest route to power.\",\r\n\t\t\"Wealth and power are nothing. Fulfillment can only be found in artistic expression.\",\r\n\t\t\"It's not how you feel, who you know, or what you can do - it's how you look, and I look fabulous.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have difficulty caring about anyone or anything other than myself.\",\r\n\t\t\"Having grown up with wealth, I am careless with my finances. I overspend and am overly generous.\",\r\n\t\t\"The ends (my advancement) justify any means.\",\r\n\t\t\"I must have what I want and will brook no delay.\",\r\n\t\t\"My family has lost everything. I must keep up appearances, lest we become a laughingstock.\",\r\n\t\t\"I have no artistic sense. I hide that fact behind extreme opinons and have become a trendsetter.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], [\"Musical instrument\", 1]],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"phlan refugee\"] = {\r\n\tregExpSearch : /^(?=.*phlan)(?=.*refugee).*$/i,\r\n\tname : \"Phlan Refugee\",\r\n\tsource : [[\"AL:EE\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Athletics\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Token of the life I once knew\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Phlan Survivor\",\r\n\ttrait : [\r\n\t\t\"I may have lost everything I worked for most of my life, but there's work to be done, no time to linger on the past.\",\r\n\t\t\"I worked hard to get where I am and I refuse to let a little hardship stop me from succeeding.\",\r\n\t\t\"I protect those around me, you never know when one of them will be useful.\",\r\n\t\t\"I have always gotten ahead by giving, why change now?\",\r\n\t\t\"I prepare for everything, it paid off in Phlan and it will pay off again.\",\r\n\t\t\"I will reclaim my home, though the path may be long, I will never give up hope.\",\r\n\t\t\"I never cared for personal hygiene, and am amazed that It bothers others.\",\r\n\t\t\"I am always willing to volunteer my services, just as long as don't have to do anything.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Justice\",\r\n\t\t\t\"Justice: Corruption brought Phlan down, I will not tolerate that any longer. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Acceptance\",\r\n\t\t\t\"Acceptance: Stability is a myth, to think you can control your future is futile. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: I am guided by a higher power and I trust that everything will be right in the end. (Good)\"\r\n\t\t],\r\n\t\t[\"Restraint\",\r\n\t\t\t\"Restraint: I hate those who caused my loss. It is all I can do not to lash out at them. (Any)\"\r\n\t\t],\r\n\t\t[\"Strength\",\r\n\t\t\t\"Strength: As shown in Phlan, the strong survive. If you are weak you deserve what you get (Evil)\"\r\n\t\t],\r\n\t\t[\"Openness\",\r\n\t\t\t\"Openness: I am always willing to share my life story with anyone who will listen. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have the chance at a new life and this time I am going to do things right.\",\r\n\t\t\"The Lord Regent brought this suffering upon his people. I will see him brought to justice.\",\r\n\t\t\"I await the day I will be able to return to my home in Phlan.\",\r\n\t\t\"I will never forget the debt owed to Glevith of the Welcomers. I will be ready to repay that debt when called upon.\",\r\n\t\t\"There was someone I cared about in Phlan, I will find out what happened to them.\",\r\n\t\t\"Some say my life wasn't worth saving, I will prove them wrong.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I used the lives of children to facilitate my escape from Phlan.\",\r\n\t\t\"I am a sucker for the underdog, and always bet on the loosing team.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"I will borrow money from friends with no intention to repay it.\",\r\n\t\t\"I am unable to keep secrets. A secret is just an untold story.\",\r\n\t\t\"When something goes wrong, it's never my fault.\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"wagonmaster\"] = {\r\n\tdescription : \"I'm used to being in charge. My reputation has me on a short list for critical jobs, allows me to attract two more loyal workers for caravaning, and causes others to look to me for direction. I can identify the most defensible locations for camping. I have a great memory for maps and geography. While travelling, I can always find my cardinal directions.\",\r\n\tsource : [[\"AL:EE\", 2], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"deep miner\"] = {\r\n\tdescription : \"I am used to navigating the deep places of the earth. I never get lost in caves or mines if I have either seen an accurate map of them or have been through them before. Furthermore, I am able to scrounge fresh water and food for myself and as many as five other people each day if I am in a mine or natural caves.\",\r\n\tsource : [[\"AL:EE\", 3], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"harborfolk\"] = {\r\n\tdescription : \"I grew up on the docks and waters of Mulmaster Harbor. The harborfolk remember me and still treat me as one of them. They welcome me and my companions. While they might charge me for it, they'll always offer what food and shelter they have; they'll even hide me if the City Watch is after me (but not if the Hawks are).\",\r\n\tsource : [[\"AL:EE\", 4], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"highborn\"] = {\r\n\tdescription : \"Mulmaster is run by and for its aristoracy. Every other class of citizen in the city defers to me, and even the priesthood, Soldiery, Hawks, and Cloaks treat me with deference. Other aristocrats and nobles accept me in their circles and likely know me or of me. My connections can get me the ear of a Zor or Zora under the right circumstances.\",\r\n\tsource : [[\"AL:EE\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"phlan survivor\"] = {\r\n\tdescription : \"Whatever my prior standing I'm now one of the many refugees that came to Mulmaster. I'm able to find refuge with others from Phlan and those who sympathize with my plight. Within Mulmaster this means that I can find a place to sleep, recover, and hide from the watch with either other refugees from Phlan, or the Zhents within the ghettos.\",\r\n\tsource : [[\"AL:EE\", 6], [\"ALbackground\", 0]]\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20150416_EE.js",
    "content": "var iFileName = \"pub_20150416_EE.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds all the player-material from the Elemental Evil Player's Companion (November 2017, after the XGtE update) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.E={\r\n\tname : \"Elemental Evil Player's Companion\", // November 2017 version\r\n\tabbreviation : \"EE\",\r\n\tabbreviationSpellsheet : \"EE\",\r\n\tgroup : \"Primary Sources\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dropbox.com/scl/fi/h3rt7296724s6p8xgr1w2/Elemental-Evil-Players-Companion-v2017.pdf?rlkey=99p2n6gpk0qcz9r3hdjka0b9y&dl=1\", // used to be https://media.dnd.wizards.com/EE-Players-Companion_0_0.pdf\r\n\tdate : \"2015/04/16\"\r\n};\r\n\r\n// Races\r\nRaceList[\"aarakocra\"] = {\r\n\tregExpSearch : /aarakocra/i,\r\n\tname : \"Aarakocra\",\r\n\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\tplural : \"Aarakocra\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 },\r\n\t\tfly : { spd : 50, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Aarakocra\", \"Auran\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /talon/i,\r\n\t\tname : \"Talons\",\r\n\t\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach maturity by age 3 and live about 30 years\",\r\n\theight : \" are about 5 feet tall\",\r\n\tweight : \" weigh between 80 and 100 lb\",\r\n\theightMetric : \" are about 1,5 metres tall\",\r\n\tweightMetric : \" weigh between 36 and 45 kg\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Aarakocra (+2 Dexterity, +1 Wisdom)\\n\\nFlight: I have a flying speed of 50 feet. To use this speed, I can't be wearing medium or heavy armor.\\n\\nTalons: My unarmed strikes deal 1d4 slashing damage on a hit.\"\r\n};\r\nRaceList[\"deep gnome\"] = {\r\n\tregExpSearch : /^((?=.*svirfneblin)|((?=.*\\bgnomes?\\b)(?=.*\\b(underdarks?|deep|depths?)\\b))).*$/i,\r\n\tname : \"Svirfneblin\",\r\n\tsortname : \"Gnome, Deep (Svirfneblin)\",\r\n\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 113]],\r\n\tplural : \"Svirfneblin\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\", \"Undercommon\"],\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" are considered full-grown adults when they reach 25 and live 200 to 250 years\",\r\n\theight : \" stand between 3 and 3 1/2 feet tall (2'9\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 90 lb (80 + 2d4 \\xD7 1d4 lb)\",\r\n\theightMetric : \" stand between 90 and 105 cm tall (85 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 50 kg (35 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 2, 0, 0],\r\n\ttrait : \"Svirfneblin (+1 Dexterity, +2 Intelligence)\\n\\nStone Camouflage:\\n   I have advantage on Dexterity (stealth) checks to hide in rocky terrain.\"\r\n};\r\nRaceList[\"air genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bairs?\\b).*$/i,\r\n\tname : \"Air genasi\",\r\n\tsortname : \"Genasi, Air\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Air genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 2, 0, 0, 0],\r\n\ttrait : \"Air Genasi (+1 Dexterity, +2 Constitution)\\n\\nUnending Breath: I can hold my breath indefinitely while I am not incapacitated.\\n\\nMingle with the Wind: I can cast the Levitate spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\tspellcastingAbility : 3,\r\n\tfeatures : {\r\n\t\t\"levitate\" : {\r\n\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\tselection : [\"levitate\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Levitate once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"earth genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bearths?\\b).*$/i,\r\n\tname : \"Earth genasi\",\r\n\tsortname : \"Genasi, Earth\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Earth genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Earth Genasi (+1 Strength, +2 Constitution)\" + (typePF ? \"\\n\" : \"\") + \"\\nEarth Walk: I can move across difficult terrain made of earth or stone without expending extra movement.\" + (typePF ? \"\\n\" : \"\") + \"\\nMerge with Stone: I can cast the Pass without Trace spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\tspellcastingAbility : 3,\r\n\tfeatures : {\r\n\t\t\"pass without trace\" : {\r\n\t\t\tname : \"Merge with Stone\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"pass without trace\"],\r\n\t\t\t\tselection : [\"pass without trace\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Pass without Trace once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"fire genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bfires?\\b).*$/i,\r\n\tname : \"Fire genasi\",\r\n\tsortname : \"Genasi, Fire\",\r\n\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\tplural : \"Fire genasi\",\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\ttrait : \"Fire Genasi (+2 Constitution, +1 Intelligence)\\n\\nReach to the Blaze:\\n   I know the Produce Flame cantrip.\\n   Once I reach 3rd level, I can cast the Burning Hands spell once as a 1st-level spell.\\n   I regain the ability to cast it this way when I finish a long rest.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Reach to the Blaze (level 1)\",\r\n\t\tspells : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"burning hands\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"water genasi\"] = {\r\n\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bwaters?\\b).*$/i,\r\n\tname : \"Water genasi\",\r\n\tsortname : \"Genasi, Water\",\r\n\tsource : [[\"E\", 10], [\"W\", 172]],\r\n\tplural : \"Water genasi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\tdmgres : [\"Acid\"],\r\n\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\ttrait : \"Water Genasi (+2 Constitution, +1 Wisdom)\\nAmphibious: I can breathe air and water.\\nSwim: I have a swimming speed of 30 feet.\\nCall to the Wave: I know the Shape Water cantrip.\\n   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.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Call to the Wave (level 1)\",\r\n\t\tspells : [\"shape water\"],\r\n\t\tselection : [\"shape water\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"create or destroy water\" : {\r\n\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\t\tspells : [\"create or destroy water\"],\r\n\t\t\t\tselection : [\"create or destroy water\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"goliath\"] = { // Added cold resistance in accordance with the VGtM 2020 errata https://media.wizards.com/2020/dnd/downloads/VGtM-Errata.pdf\r\n\tregExpSearch : /goliath/i,\r\n\tname : \"Goliath\",\r\n\tsource : [[\"E\", 11], [\"V\", 108], [\"W\", 175]],\r\n\tplural : \"Goliaths\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Giant\"],\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Athletics\"],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" are between 6 and a half and 8 feet tall (6'2\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 280 and 340 lb (200 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 2 and 2,4 metres tall (190 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 100 and 155 kg (90 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"stone's endurance\" : {\r\n\t\t\tname : \"Stone's Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Goliath (+2 Strength, +1 Constitution)\"+\r\n\t\"\\n \\u2022 Stone's Endurance: Once per short rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\"+\r\n\t(typePF ? \"\\n \\u2022 Natural Athlete: I have proficiency in the Athletics skill.\" : \"\"),\r\n\tcarryingCapacity : 2\r\n};\r\n\r\n// Feat\r\nFeatsList[\"svirfneblin magic\"] = {\r\n\tname : \"Svirfneblin Magic\",\r\n\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 114]],\r\n\tprerequisite : \"Being a Svirfneblin (Deep Gnome)\",\r\n\tprereqeval : function(v) { return CurrentRace.known === 'deep gnome'; },\r\n\tdescriptionFull : \"You have inherited the innate spellcasting ability of your ancestors. This ability allows you to cast Nondetection on yourself at will, without needing a material component. You can also cast each of the following spells once with this ability: Blindness/Deafness, Blur, and Disguise Self. You regain the ability to cast these spells when you finish a long rest.\\n   Intelligence is your spellcasting ability for these spells, and you cast them at their lowest possible levels.\",\r\n\tdescription : \"I can cast Nondetection on myself at will, without a material component. I can also cast the spells Blindness/Deafness, Blur, and Disguise Self once each. I regain the ability to cast these spells when I finish a long rest. Intelligence is my spellcasting ability for these spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"at will (self only)\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"nondetection\"],\r\n\t\tselection : [\"nondetection\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"1\\xD7 long rest (self only)\",\r\n\t\tspells : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\tselection : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\tfirstCol : 'oncelr',\r\n\t\ttimes : 3\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"nondetection\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"I am hidden from all divination magic\",\r\n\t\t\tchanges : \"Using Svirfneblin Magic, I can cast Nondetection without a material component, but only on myself.\"\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Spells\r\nSpellsList[\"abi-dalzim's horrid wilting\"] = {\r\n\tname : \"Abi-Dalzim's Horrid Wilting\",\r\n\tnameShort : \"Abi-D's Horrid Wilting\",\r\n\tnameAlt : \"Horrid Wilting\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 8,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of sponge\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft cube all crea 12d8 Necrotic dmg; save halves; plants/water elem. dis. const/undead immune\",\r\n\tdescriptionFull : \"You draw the moisture from every creature in a 30-foot cube centered on a point you choose within range. Each creature in that area must make a Constitution saving throw. Constructs and undead aren't affected, and plants and water elementals make this saving throw with disadvantage. A creature takes 12d8 necrotic damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"Nonmagical plants in the area that aren't creatures, such as trees and shrubs, wither and die instantly.\"\r\n};\r\nSpellsList[\"absorb elements\"] = {\r\n\tname : \"Absorb Elements\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take acid, cold, fire, lightning, or thunder damage\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"Acid, Cold, Fire, Lightning, or Thunder resistance till next turn start; first melee hit +1d6+1d6/SL dmg\",\r\n\tdescriptionFull : \"The spell captures some of the incoming energy, lessening its effect on you and storing it for your next melee attack. You have resistance to the triggering damage type until the start of your next turn. Also, the first time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the extra damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"aganazzar's scorcher\"] = {\r\n\tname : \"Aganazzar's Scorcher\",\r\n\tnameAlt : \"Scorch\", //as per the Spell Compendium's (DnD 3.5e) alternative name\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A red dragon's scale\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft long 5-ft wide line all creatures 3d8+1d8/SL Fire dmg; save halves\",\r\n\tdescriptionFull : \"A line of roaring flame 30 feet long and 5 feet wide emanates from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 3d8 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"beast bond\"] = {\r\n\tname : \"Beast Bond\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of fur wrapped in a cloth\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Telepathic link with 1 beast Int<4 while in line of sight; beast has adv. on attacks vs. crea I can see\",\r\n\tdescriptionFull : \"You establish a telepathic link with one beast you touch that is friendly to you or charmed by you. The spell fails if the beast's Intelligence is 4 or higher. Until the spell ends, the link is active while you and the beast are within line of sight of each other. Through the link, the beast can understand your telepathic messages to it, and it can telepathically communicate simple emotions and concepts back to you. While the link is active, the beast gains advantage on attack rolls against any creature within 5 feet of you that you can see.\"\r\n};\r\nSpellsList[\"bones of the earth\"] = {\r\n\tname : \"Bones of the Earth\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lifted, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionShorter : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionShorterMetric : \"6+2/SL 1,5-m dia stone lift 9 m; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\tdescriptionFull : \"You cause up to six pillars of stone to burst from places on the ground that you can see within range. Each pillar is a cylinder that has a diameter of 5 feet and a height of up to 30 feet. The ground where a pillar appears must be wide enough for its diameter, and you can target the ground under a creature if that creature is Medium or smaller. Each pillar has AC 5 and 30 hit points. When reduced to 0 hit points, a pillar crumbles into rubble, which creates an area of difficult terrain with a 10-foot radius that lasts until the rubble is cleared. Each 5-foot-diameter portion of the area requires at least 1 minute to clear by hand.\\n   If a pillar is created under a creature, that creature must succeed on a Dexterity saving throw or be lifted by the pillar. A creature can choose to fail the save.\\n   If a pillar is prevented from reaching its full height because of a ceiling or other obstacle, a creature on the pillar takes 6d6 bludgeoning damage and is restrained, pinched between the pillar and the obstacle. The restrained creature can use an action to make a Strength or Dexterity check (the creature's choice) against the spell's save DC. On a success, the creature is no longer restrained and must either move off the pillar or fall off it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 7th level or higher, you can create two additional pillars for each slot level above 6th.\"\r\n};\r\nSpellsList[\"catapult\"] = {\r\n\tname : \"Catapult\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Send 5+5/SL lb unattended object in 90 ft straight line; if crea hit, save or 3d8+1d8/SL Bludg. dmg\",\r\n\tdescriptionFull : \"Choose one object weighing 1 to 5 pounds within range that isn't being worn or carried. The object flies in a straight line up to 90 feet in a direction you choose before falling to the ground, stopping early if it impacts against a solid surface. If the object would strike a creature, that creature must make a Dexterity saving throw. On a failed save, the object strikes the target and stops moving. When the object strikes something, the object and what it strikes each take 3d8 bludgeoning damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the maximum weight of objects that you can target with this spell increases by 5 pounds, and the damage increases by 1d8, for each slot level above 1st.\"\r\n};\r\nSpellsList[\"control flames\"] = {\r\n\tname : \"Control Flames\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"Nonmagical flame up to 5 cu ft; instant: expand/extinguish, 1h: brighten/dim/color/create shapes\",\r\n\tdescriptionFull : \"You choose nonmagical flame that you can see within range and that fits within a 5-foot cube. You affect it in one of the following ways.\" + \"\\n \\u2022 \" + \"You instantaneously expand the flame 5 feet in one direction, provided that wood or other fuel is present in the new location.\" + \"\\n \\u2022 \" + \"You instantaneously extinguish the flames within the cube.\" + \"\\n \\u2022 \" + \"You double or halve the area of bright light and dim light cast by the flame, change its color, or both. The change lasts for 1 hour.\" + \"\\n \\u2022 \" + \"You cause simple shapes-such as the vague form of a creature, an inanimate object, or a location-to appear within the flames and animate as you like. The shapes last for 1 hour.\" + \"\\n   \" + \"If you cast this spell multiple times, you can have up to three of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"control winds\"] = {\r\n\tname : \"Control Winds\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16], [\"UA:D\", 8]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"100-ft cube of air either gusts, downdraft, or updraft; affects flying/jump/ranged; 1 a change; see B\",\r\n\tdescriptionFull : \"You take control of the air in a 100-foot cube that you can see within range. Choose one of the following effects when you cast the spell. The effect lasts for the spell's duration, unless you use your action on a later turn to switch to a different effect. You can also use your action to temporarily halt the effect or to restart one you've halted.\" + \"\\n   \" + toUni(\"Gusts\") + \": A wind picks up within the cube, continually blowing in a horizontal direction you designate. You choose the intensity of the wind: calm, moderate, or strong. If the wind is moderate or strong, ranged weapon attacks that enter or leave the cube or pass through it have disadvantage on their attack rolls. If the wind is strong, any creature moving against the wind must spend 1 extra foot of movement for each foot moved.\" + \"\\n   \" + toUni(\"Downdraft\") + \": You cause a sustained blast of strong wind to blow downward from the top of the cube. Ranged weapon attacks that pass through the cube or that are made against targets within it have disadvantage on their attack rolls. A creature must make a Strength saving throw if it flies into the cube for the first time on a turn or starts its turn there flying. On a failed save, the creature is knocked prone.\" + \"\\n   \" + toUni(\"Updraft\") + \": You cause a sustained updraft within the cube, rising upward from the cube's bottom side. Creatures that end a fall within the cube take only half damage from the fall. When a creature in the cube makes a vertical jump, the creature can jump up to 10 feet higher than normal.\"\r\n};\r\nSpellsList[\"create bonfire\"] = {\r\n\tname : \"Create Bonfire\",\r\n\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft cube all crea now/enter/end turn save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\tdescriptionShorter : \"5-ft cube all now/enter/end save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"5-ft cube all crea at casting, entering, or end turn in save or `CD`d8 Fire dmg; ignites flammable\",\r\n\tdescriptionFull : \"You create a bonfire on ground that you can see within range. Until the spell ends, the magic bonfire fills a 5-foot cube. Any creature in the bonfire's space when you cast the spell must succeed on a Dexterity saving throw or take 1d8 fire damage. A creature must also make the saving throw when it moves into the bonfire's space for the first time on a turn or ends its turn there.\" + \"\\n   \" + \"The bonfire ignites flammable objects in its area that aren't being worn or carried.\" + \"\\n   \" + \"The spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\"\r\n};\r\nSpellsList[\"dust devil\"] = {\r\n\tname : \"Dust Devil\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A pinch of dust\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft cube; all in 5-ft 1d8+1d8/SL Bludg. dmg and pushed 10 ft away; save halves, no push; see book\",\r\n\tdescriptionFull : \"Choose an unoccupied 5-foot cube of air that you can see within range. An elemental force that resembles a dust devil appears in the cube and lasts for the spell's duration.\" + \"\\n   \" + \"Any creature that ends its turn within 5 feet of the dust devil must make a Strength saving throw. On a failed save, the creature takes 1d8 bludgeoning damage and is pushed 10 feet away from the dust devil. On a successful save, the creature takes half as much damage and isn't pushed.\" + \"\\n   \" + \"As a bonus action, you can move the dust devil up to 30 feet in any direction. If the dust devil moves over sand, dust, loose dirt, or light gravel, it sucks up the material and forms a 10-foot-radius cloud of debris around itself that lasts until the start of your next turn. The cloud heavily obscures its area.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"earthbind\"] = {\r\n\tname : \"Earthbind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 creatures save or fly speed is reduced to 0; airborne creatures safely descend at 60 ft per round\",\r\n\tdescriptionFull : \"Choose one creature you can see within range. Yellow strips of magical energy loop around the creature. The target must succeed on a Strength saving throw, or its flying speed (if any) is reduced to 0 feet for the spell's duration. An airborne creature affected by this spell safely descends at 60 feet per round until it reaches the ground or the spell ends.\"\r\n};\r\nSpellsList[\"earth tremor\"] = {\r\n\tname : \"Earth Tremor\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea in range except me save or 1d6+1d6/SL Bludgeoning dmg and prone; loose ground is dif. ter.\",\r\n\tdescriptionFull : \"You cause a tremor in the ground within range. Each creature other than you in that area must make a Dexterity saving throw. On a failed save, a creature takes 1d6 bludgeoning damage and is knocked prone. If the ground in that area is loose earth or stone, it becomes difficult terrain until cleared, with each 5-foot-diameter portion requiring at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"elemental bane\"] = {\r\n\tname : \"Elemental Bane\",\r\n\tclasses : [\"artificer\", \"druid\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. to it \\u0026 +2d6 to first dmg with it/turn\",\r\n\tdescriptionShorter : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. \\u0026 +2d6 first dmg/turn\",\r\n\tdescriptionFull : \"Choose one creature you can see within range, and choose one of the following damage types - acid, cold, fire, lightning, or thunder. The target must succeed on a Constitution saving throw or be affected by the spell for its duration. The first time each turn the affected target takes damage of the chosen type, the target takes an extra 2d6 damage of that type. Moreover, the target loses any resistance to that damage type until the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\t\tinDescriptionAs : \"first\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"erupting earth\"] = {\r\n\tname : \"Erupting Earth\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A piece of obsidian\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft cube all crea 3d12+1d12/SL Bludgeoning dmg; save halves; area becomes difficult terrain\",\r\n\tdescriptionFull : \"Choose a point you can see on the ground within range. A fountain of churned earth and stone erupts in a 20-foot cube centered on that point. Each creature in that area must make a Dexterity saving throw. A creature takes 3d12 bludgeoning damage on a failed save, or half as much damage on a successful one. Additionally, the ground in that area becomes difficult terrain until cleared. Each 5-foot-square portion of the area requires at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d12 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"flame arrows\"] = {\r\n\tname : \"Flame Arrows\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"12+2/SL ammunition drawn from touched quiver do +1d6 Fire damage on a successful hit\",\r\n\tdescriptionFull : \"You touch a quiver containing arrows or bolts. When a target is hit by a ranged weapon attack using a piece of ammunition drawn from the quiver, the target takes an extra 1d6 fire damage. The spell's magic ends on the piece of ammunition when it hits or misses, and the spell ends when twelve pieces of ammunition have been drawn from the quiver.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of pieces of ammunition you can affect with this spell increases by two for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"frostbite\"] = {\r\n\tname : \"Frostbite\",\r\n\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Cold dmg and dis. on next weapon attack roll; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Cold dmg and dis. on next weapon attack roll\",\r\n\tdescriptionFull : \"You cause numbing frost to form on one creature that you can see within range. The target must make a Constitution saving throw. On a failed save, the target takes 1d6 cold damage, and it has disadvantage on the next weapon attack roll it makes before the end of its next turn.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"gust\"] = {\r\n\tname : \"Gust\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 157], [\"E\", 19], [\"E:RLW\", 50], [\"UA:D\", 6], [\"WGtE\", 107]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Med. or smaller crea save or push 5 ft; or push unattended 5 lb obj 10 ft; or harmless sensory effect\",\r\n\tdescriptionFull : \"You seize the air and compel it to create one of the following effects at a point you can see within range.\" + \"\\n \" + \"\\u2022 One Medium or smaller creature that you choose must succeed on a Strength saving throw or be pushed up to 5 feet away from you.\" + \"\\n \" + \"\\u2022 You create a small blast of air capable of moving one object that is neither held nor carried and that weighs no more than 5 pounds. The object is pushed up to 10 feet away from you. It isn't pushed with enough force to cause damage.\" + \"\\n \" + \"\\u2022 You create a harmless sensory affect using air, such as causing leaves to rustle, wind to slam shutters shut, or your clothing to ripple in a breeze.\"\r\n};\r\nSpellsList[\"ice knife\"] = {\r\n\tname : \"Ice Knife\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 157], [\"E\", 19]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A drop of water or piece of ice\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Ranged atk for 1d10 Piercing dmg; hit/miss 5-ft rad on target all crea save or 2d6+1d6/SL Cold dmg\",\r\n\tdescriptionShorter : \"Ranged atk 1d10 Piercing dmg; on target 5-ft rad all crea save or 2d6+1d6/SL Cold dmg\",\r\n\tdescriptionFull : \"You create a shard of ice and fling it at one creature within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 piercing damage. Hit or miss, the shard then explodes. The target and each creature within 5 feet of it must succeed on a Dexterity saving throw or take 2d6 cold damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the cold damage increases by 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"immolation\"] = {\r\n\tname : \"Immolation\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 158], [\"E\", 19]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or 8d6 Fire dmg \\u0026 burns for 4d6 Fire dmg/rnd; save each rnd to end; save half, no burning\",\r\n\tdescriptionShorter : \"1 crea save or 8d6 Fire dmg \\u0026 4d6 Fire dmg/rnd; save each rnd to end; save half, no rnds\",\r\n\tdescriptionFull : \"Flames wreathe one creature you can see within range. The target must make a Dexterity saving throw. It takes 8d6 fire damage on a failed save, or half as much damage on a successful one. On a failed save, the target also burns for the spell's duration. The burning target sheds bright light in a 30-foot radius and dim light for an additional 30 feet. At the end of each of its turns, the target repeats the saving throw. It takes 4d6 fire damage on a failed save, and the spell ends on a successful one. These magical flames can't be extinguished by nonmagical means.\" + \"\\n   \" + \"If damage from this spell kills a target, the target is turned to ash.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"investiture of flame\"] = {\r\n\tname : \"Investiture of Flame\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Fire immune; Cold res.; 1d10 Fire dmg in 5 ft; 1 a 15-ft long 5-ft wide all crea 4d8 Fire dmg, save half\",\r\n\tdescriptionShorter : \"Fire im.; Cold res.; 1d10 Fire dmg in 5 ft; 1a 15-ft long 5-ft wide all 4d8 Fire dmg, save half\",\r\n\tdescriptionShorterMetric : \"Fire immune; Cold res.; 1d10 Fire dmg in 1,5 m; 1 a 4,5-m long all 4d8 Fire dmg, save half\",\r\n\tdescriptionFull : \"Flames race across your body, shedding bright light in a 30-foot radius and dim light for an additional 30 feet for the spell's duration. The flames don't harm you. Until the spell ends, you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to fire damage and have resistance to cold damage.\" + \"\\n \" + \"\\u2022 Any creature that moves within 5 feet of you for the first time on a turn or ends its turn there takes 1d10 fire damage.\" + \"\\n \" + \"\\u2022 You can use your action to create a line of fire 15 feet long and 5 feet wide extending from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 4d8 fire damage on a failed save, or half as much damage on a successful one.\"\r\n};\r\nSpellsList[\"investiture of ice\"] = {\r\n\tname : \"Investiture of Ice\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all crea 4d6 Cold dmg, half spd; save half, no spd\",\r\n\tdescriptionShorter : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all 4d6 Cold dmg, half speed; save half\",\r\n\tdescriptionFull : \"Until the spell ends, ice rimes your body, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to cold damage and have resistance to fire damage.\" + \"\\n \" + \"\\u2022 You can move across difficult terrain created by ice or snow without spending extra movement.\" + \"\\n \" + \"\\u2022 The ground in a 10-foot radius around you is icy and is difficult terrain for creatures other than you. The radius moves with you.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cone of freezing wind extending from your outstretched hand in a direction you choose. Each creature in the cone must make a Constitution saving throw. A creature takes 4d6 cold damage on a failed save, or half as much damage on a successful one. A creature that fails its save against this effect has its speed halved until the start of your next turn.\"\r\n};\r\nSpellsList[\"investiture of stone\"] = {\r\n\tname : \"Investiture of Stone\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Nonmagical Bludg/Pierc/Slash resist.; 1 a 15-ft rad all crea save or prone; move through earth/stone\",\r\n\tdescriptionFull : \"Until the spell ends, bits of rock spread across your body, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks.\" + \"\\n \\u2022 \" + \"You can use your action to create a small earthquake on the ground in a 15-foot radius centered on you. Other creatures on that ground must succeed on a Dexterity saving throw or be knocked prone.\" + \"\\n \\u2022 \" + \"You can move across difficult terrain made of earth or stone without spending extra movement. You can move through solid earth or stone as if it was air and without destabilizing it, but you can't end your movement there. If you do so, you are ejected to the nearest unoccupied space, this spell ends, and you are stunned until the end of your next turn.\"\r\n};\r\nSpellsList[\"investiture of wind\"] = {\r\n\tname : \"Investiture of Wind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Rngd wea atks dis. vs. me; fly 60 ft; 1 a 15-ft cube in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\tdescriptionShorter : \"Rngd wea atk dis; fly 60 ft; 1 a 15-ft cu in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\tdescriptionFull : \"Until the spell ends, wind whirls around you, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 Ranged weapon attacks made against you have disadvantage on the attack roll.\" + \"\\n \" + \"\\u2022 You gain a flying speed of 60 feet. If you are still flying when the spell ends, you fall, unless you can somehow prevent it.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cube of swirling wind centered on a point you can see within 60 feet of you. Each creature in that area must make a Constitution saving throw. A creature takes 2d10 bludgeoning damage on a failed save, or half as much damage on a successful one. If a Large or smaller creature fails the save, that creature is also pushed up to 10 feet away from the center of the cube.\"\r\n};\r\nSpellsList[\"maelstrom\"] = {\r\n\tname : \"Maelstrom\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Paper or leaf in the shape of a funnel\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft deep 30-ft rad dif. ter.; all crea starting turn in save or 6d6 Bludg. dmg and pulled 10 ft to center\",\r\n\tdescriptionShorter : \"5-ft deep 30-ft rad dif. ter.; all start turn in save or 6d6 Bludg. dmg \\u0026 pull 10 ft to center\",\r\n\tdescriptionFull : \"A mass of 5-foot-deep water appears and swirls in a 30-foot radius centered on a point you can see within range. The point must be on ground or in a body of water. Until the spell ends, that area is difficult terrain, and any creature that starts its turn there must succeed on a Strength saving throw or take 6d6 bludgeoning damage and be pulled 10 feet toward the center.\"\r\n};\r\nSpellsList[\"magic stone\"] = {\r\n\tname : \"Magic Stone\",\r\n\tclasses : [\"artificer\", \"druid\", \"warlock\"],\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"Imbue 3 pebbles for spell attacks, thrown 60 ft or with sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\tdescriptionShorter : \"Imbue 3 pebbles for spell atk, thrown 60 ft or sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\tdescriptionFull : \"You touch one to three pebbles and imbue them with magic. You or someone else can make a ranged spell attack with one of the pebbles by throwing it or hurling it with a sling. If thrown, it has a range of 60 feet. If someone else attacks with the pebble, that attacker adds your spellcasting ability modifier, not the attacker's, to the attack roll. On a hit, the target takes bludgeoning damage equal to 1d6 + your spellcasting ability modifier. Hit or miss, the spell then ends on the stone.\" + \"\\n   \" + \"If you cast this spell again, the spell ends early on any pebbles still affected by it.\"\r\n};\r\nSpellsList[\"maximilian's earthen grasp\"] = {\r\n\tname : \"Maximilian's Earthen Grasp\",\r\n\tnameShort : \"Max's Earthen Grasp\",\r\n\tnameAlt : \"Earthen Grasp\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A miniature hand sculpted from clay\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Medium hand atks 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a hand moves/atks, releases; see B\",\r\n\tdescriptionShorter : \"Medium hand atk 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a move/atk, release; see B\",\r\n\tdescriptionFull : \"You choose a 5-foot-square unoccupied space on the ground that you can see within range. A Medium hand made from compacted soil rises there and reaches for one creature you can see within 5 feet of it. The target must make a Strength saving throw. On a failed save, the target takes 2d6 bludgeoning damage and is restrained for the spell's duration.\" + \"\\n   \" + \"As an action, you can cause the hand to crush the restrained target, which must make a Strength saving throw. The target takes 2d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"To break out, the restrained target can use its action to make a Strength check against your spell save DC. On a success, the target escapes and is no longer restrained by the hand.\" + \"\\n   \" + \"As an action, you can cause the hand to reach for a different creature or to move to a different unoccupied space within range. The hand releases a restrained target if you do either.\"\r\n};\r\nSpellsList[\"melf's minute meteors\"] = {\r\n\tname : \"Melf's Minute Meteors\",\r\n\tnameAlt : \"Minute Meteors\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Niter, sulfur, and pine tar formed into a bead\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"6+2/SL meteors; at casting/bns a send up to two 120 ft for 5-ft rad all crea 2d6 Fire dmg; save half\",\r\n\tdescriptionShorter : \"6+2/SL meteors; at cast/bns a send up to two 120 ft for 5-ft rad all 2d6 Fire dmg; save half\",\r\n\tdescriptionFull : \"You create six tiny meteors in your space. They float in the air and orbit you for the spell's duration. When you cast the spell-and as a bonus action on each of your turns thereafter-you can expend one or two of the meteors, sending them streaking toward a point or points you choose within 120 feet of you. Once a meteor reaches its destination or impacts against a solid surface, the meteor explodes. Each creature within 5 feet of the point where the meteor explodes must make a Dexterity saving throw. A creature takes 2d6 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of meteors created increases by two for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"mold earth\"] = {\r\n\tname : \"Mold Earth\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 162], [\"E\", 21]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"5 cu ft earth; instant.: excavate; 1h: change to difficult or normal terrain, or change shape and color\",\r\n\tdescriptionFull : \"You choose a portion of dirt or stone that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 If you target an area of loose earth, you can instantaneously excavate it, move it along the ground, and deposit it up to 5 feet away. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause shapes, colors, or both to appear on the dirt or stone, spelling out words, creating images, or shaping patterns. The changes last for 1 hour.\" + \"\\n \" + \"\\u2022 If the dirt or stone you target is on the ground, you cause it to become difficult terrain. Alternatively, you can cause the ground to become normal terrain if it is already difficult terrain. This change lasts for 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"primordial ward\"] = {\r\n\tname : \"Primordial Ward\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Acid, Cold, Fire, Lightning, and Thunder resistance; use rea to gain 1 immunity for 1 rnd, spell ends\",\r\n\tdescriptionFull : \"You have resistance to acid, cold, fire, lightning, and thunder damage for the spell's duration.\" + \"\\n   \" + \"When you take damage of one of those types, you can use your reaction to gain immunity to that type of damage, including against the triggering damage. If you do so, the resistances end, and you have the immunity until the end of your next turn, at which time the spell ends.\"\r\n};\r\nSpellsList[\"pyrotechnics\"] = {\r\n\tname : \"Pyrotechnics\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"5 cu ft nonma. flame extinguish, or 10-ft rad all crea save or blind 1 rnd, or 20-ft rad hvy obsc. 1 min\",\r\n\tdescriptionFull : \"Choose an area of nonmagical flame that you can see and that fits within a 5-foot cube within range. You can extinguish the fire in that area, and you create either fireworks or smoke when you do so.\" + \"\\n   \" + toUni(\"Fireworks\") + \": The target explodes with a dazzling display of colors. Each creature within 10 feet of the target must succeed on a Constitution saving throw or become blinded until the end of your next turn.\" + \"\\n   \" + toUni(\"Smoke\") + \": Thick black smoke spreads out from the target in a 20-foot radius, moving around corners. The area of the smoke is heavily obscured. The smoke persists for 1 minute or until a strong wind disperses it.\"\r\n};\r\nSpellsList[\"shape water\"] = {\r\n\tname : \"Shape Water\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 164], [\"E\", 21], [\"W\", 172]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instant. or 1 h\",\r\n\tdescription : \"5 cu ft water; instant: move/change flow; 1h: simple shapes/change color or opacity/freeze\",\r\n\tdescriptionFull : \"You choose an area of water that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 You instantaneously move or otherwise change the flow of the water as you direct, up to 5 feet in any direction. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause the water to form into simple shapes and animate at your direction. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You change the water's color or opacity. The water must be changed in the same way throughout. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You freeze the water, provided that there are no creatures in it. The water unfreezes in 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n};\r\nSpellsList[\"skywrite\"] = {\r\n\tname : \"Skywrite\",\r\n\tclasses : [\"artificer\", \"bard\", \"druid\", \"wizard\"],\r\n\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Sight\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Write up to 10 words with clouds in a part of the sky I can see; strong wind can diperse the clouds\",\r\n\tdescriptionFull : \"You cause up to ten words to form in a part of the sky you can see. The words appear to be made of cloud and remain in place for the spell's duration. The words dissipate when the spell ends. A strong wind can disperse the clouds and end the spell early.\"\r\n};\r\nSpellsList[\"snilloc's snowball swarm\"] = {\r\n\tname : \"Snilloc's Snowball Swarm\",\r\n\tnameAlt : \"Snowball Swarm\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A piece of ice or a small white rock chip\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft radius all creatures 3d6+1d6/SL Cold damage; save halves\",\r\n\tdescriptionFull : \"A flurry of magic snowballs erupts from a point you choose within range. Each creature in a 5-foot-radius sphere centered on that point must make a Dexterity saving throw. A creature takes 3d6 cold damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"storm sphere\"] = {\r\n\tname : \"Storm Sphere\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 166], [\"E\", 22]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad dif. ter., all now/end turn save or 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\tdescriptionShorter : \"20-ft rad dif. ter., all save/turn 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\tdescriptionFull : \"A 20-foot-radius sphere of whirling air springs into existence centered on a point you choose within range. The sphere remains for the spell's duration. Each creature in the sphere when it appears or that ends its turn there must succeed on a Strength saving throw or take 2d6 bludgeoning damage. The sphere's space is difficult terrain.\" + \"\\n   \" + \"Until the spell ends, you can use a bonus action on each of your turns to cause a bolt of lightning to leap from the center of the sphere toward one creature you choose within 60 feet of the center. Make a ranged spell attack. You have advantage on the attack roll if the target is in the sphere. On a hit, the target takes 4d6 lightning damage.\" + \"\\n   \" + \"Creatures within 30 feet of the sphere have disadvantage on Wisdom (Perception) checks made to listen.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases for each of its effects by 1d6 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"thunderclap\"] = {\r\n\tname : \"Thunderclap\",\r\n\tclasses : [\"artificer\", \"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"100-ft rad audible; all crea but me in area save or 1d6 Thunder dmg; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"100-ft rad audible; all crea but me in area save or `CD`d6 Thunder dmg\",\r\n\tdescriptionFull : \"You create a burst of thunderous sound that can be heard up to 100 feet away. Each creature within range, other than you, must succeed on a Constitution saving throw or take 1d6 thunder damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"tidal wave\"] = {\r\n\tname : \"Tidal Wave\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of water\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft x 10-ft, 10-ft high all crea 4d8 Bludg. dmg and prone; save halves not prone; extinguish flames\",\r\n\tdescriptionFull : \"You conjure up a wave of water that crashes down on an area within range. The area can be up to 30 feet long, up to 10 feet wide, and up to 10 feet tall. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 4d8 bludgeoning damage and is knocked prone. On a successful save, a creature takes half as much damage and isn't knocked prone. The water then spreads out across the ground in all directions, extinguishing unprotected flames in its area and within 30 feet of it, and then it vanishes.\"\r\n};\r\nSpellsList[\"transmute rock\"] = {\r\n\tname : \"Transmute Rock\",\r\n\tclasses : [\"artificer\", \"druid\", \"wizard\"],\r\n\tsource : [[\"X\", 169], [\"E\", 22]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"Clay and water\",\r\n\tduration : \"Until dispelled\",\r\n\tdescription : \"40 cu ft stone to mud or mud to stone; mud and stone restrains; mud from ceiling falls; see book\",\r\n\tdescriptionFull : \"You choose an area of stone or mud that you can see that fits within a 40-foot cube and is within range, and choose one of the following effects.\" + \"\\n   \" + toUni(\"Transmute Rock to Mud\") + \": Nonmagical rock of any sort in the area becomes an equal volume of thick, flowing mud that remains for the spell's duration.\" + \"\\n   \" + \"The ground in the spell's area becomes muddy enough that creatures can sink into it. Each foot that a creature moves through the mud costs 4 feet of movement, and any creature on the ground when you cast the spell must make a Strength saving throw. A creature must also make the saving throw when it moves into the area for the first time on a turn or ends its turn there. On a failed save, a creature sinks into the mud and is restrained, though it can use an action to end the restrained condition on itself by pulling itself free of the mud.\" + \"\\n   \" + \"If you cast the spell on a ceiling, the mud falls. Any creature under the mud when it falls must make a Dexterity saving throw. A creature takes 4d8 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + toUni(\"Transmute Mud to Rock\") + \": Nonmagical mud or quicksand in the area no more than 10 feet deep transforms into soft stone for the spell's duration. Any creature in the mud when it transforms must make a Dexterity saving throw. On a successful save, a creature is shunted safely to the surface in an unoccupied space. On a failed save, a creature becomes restrained by the rock. A restrained creature, or another creature within reach, can use an action to try to break the rock by succeeding on a DC 20 Strength check or by dealing damage to it. The rock has AC 15 and 25 hit points, and it is immune to poison and psychic damage.\"\r\n};\r\nSpellsList[\"vitriolic sphere\"] = {\r\n\tname : \"Vitriolic Sphere\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of giant slug bile\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn end; save half \\u0026 no dmg next turn\",\r\n\tdescriptionShorter : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn; save half \\u0026 no next turn\",\r\n\tdescriptionFull : \"You point at a location within range, and a glowing, 1-foot-diameter ball of emerald acid streaks there and explodes in a 20-foot-radius sphere. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 10d4 acid damage and another 5d4 acid damage at the end of its next turn. On a successful save, a creature takes half the initial damage and no damage at the end of its next turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the initial damage increases by 2d4 for each slot level above 4th.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /((?:\\+?\\d+d?\\d*)+)( dmg next turn)/i\r\n\t}\r\n};\r\nSpellsList[\"wall of sand\"] = {\r\n\tname : \"Wall of Sand\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A handful of sand\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"30\\xD710\\xD710ft (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\tdescriptionMetric : \"9\\xD73\\xD73m (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\tdescriptionFull : \"You conjure up a wall of swirling sand on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 10 feet thick, and it vanishes when the spell ends. It blocks line of sight but not movement. A creature is blinded while in the wall's space and must spend 3 feet of movement for every 1 foot it moves there.\"\r\n};\r\nSpellsList[\"wall of water\"] = {\r\n\tname : \"Wall of Water\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23], [\"V\", 116], [\"MOT\", 27]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A drop of water\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"30\\xD71\\xD710ft (l\\xD7w\\xD7h) or 20-ft rad 20-ft high; dif. ter.; range wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\tdescriptionMetric : \"9\\xD70,3\\xD73m (l\\xD7w\\xD7h) or 6-m rad 6-m high; dif. ter.; ranged wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\tdescriptionFull : \"You conjure up a wall of water on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 1 foot thick, or you can make a ringed wall up to 20 feet in diameter, 20 feet high, and 1 foot thick. The wall vanishes when the spell ends. The wall's space is difficult terrain.\" + \"\\n   \" + \"Any ranged weapon attack that enters the wall's space has disadvantage on the attack roll, and fire damage is halved if the fire effect passes through the wall to reach its target. Spells that deal cold damage that pass through the wall cause the area of the wall they pass through to freeze solid (at least a 5-foot square section is frozen). Each 5-foot-square frozen section has AC 5 and 15 hit points. Reducing a frozen section to 0 hit points destroys it. When a section is destroyed, the wall's water doesn't fill it.\"\r\n};\r\nSpellsList[\"warding wind\"] = {\r\n\tname : \"Warding Wind\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Strong (20 mph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\tdescriptionMetric : \"Strong (32 kph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\tdescriptionFull : \"A strong wind (20 miles per hour) blows around you in a 10-foot radius and moves with you, remaining centered on you. The wind lasts for the spell's duration.\\n   The wind has the following effects.\"+\r\n\t\"\\n \\u2022 It deafens you and other creatures in its area.\"+\r\n\t\"\\n \\u2022 It extinguishes unprotected flames in its area that are torch-sized or smaller.\"+\r\n\t\"\\n \\u2022 The area is difficult terrain for creatures other than you.\"+\r\n\t\"\\n \\u2022 The attack rolls of ranged weapon attacks have disadvantage if they pass in or out of the wind.\"+\r\n\t\"\\n \\u2022 It hedges out vapor, gas, and fog that can be dispersed by strong wind.\"\r\n};\r\nSpellsList[\"watery sphere\"] = {\r\n\tname : \"Watery Sphere\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A droplet of water\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"5-ft rad all crea < Huge save or restrained; on save ejected; save each rnd; 1 a move sphere 30 ft\",\r\n\tdescriptionFull : \"You conjure up a sphere of water with a 5-foot radius at a point you can see within range. The sphere can hover but no more than 10 feet off the ground. The sphere remains for the spell's duration.\" + \"\\n   \" + \"Any creature in the sphere's space must make a Strength saving throw. On a successful save, a creature is ejected from that space to the nearest unoccupied space of the creature's choice outside the sphere. A Huge or larger creature succeeds on the saving throw automatically, and a Large or smaller creature can choose to fail it. On a failed save, a creature is restrained by the sphere and is engulfed by the water. At the end of each of its turns, a restrained target can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"The sphere can restrain as many as four Medium or smaller creatures or one Large creature. If the sphere restrains a creature that causes it to exceed this capacity, a random creature that was already restrained by the sphere falls out of it and lands prone in a space within 5 feet of it.\" + \"\\n   \" + \"As an action, you can move the sphere up to 30 feet in a straight line. If it moves over a pit, a cliff, or other drop-off, it safely descends until it is hovering 10 feet above the ground. Any creature restrained by the sphere moves with it. You can ram the sphere into creatures, forcing them to make the saving throw.\" + \"\\n   \" + \"When the spell ends, the sphere falls to the ground and extinguishes all normal flames within 30 feet of it. Any creature restrained by the sphere is knocked prone in the space where it falls. The water then vanishes.\"\r\n};\r\nSpellsList[\"whirlwind\"] = {\r\n\tname : \"Whirlwind\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 171], [\"E\", 24]],\r\n\tlevel : 7,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"300 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A piece of straw\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"10-ft rad 30-ft high all crea 10d6 Bludg. dmg; save halves; restrains; 1 a move 30 ft; see book\",\r\n\tdescriptionFull : \"A whirlwind howls down to a point that you can see on the ground within range. The whirlwind is a 10-foot-radius, 30-foot-high cylinder centered on that point. Until the spell ends, you can use your action to move the whirlwind up to 30 feet in any direction along the ground. The whirlwind sucks up any Medium or smaller objects that aren't secured to anything and that aren't worn or carried by anyone.\" + \"\\n   \" + \"A creature must make a Dexterity saving throw the first time on a turn that it enters the whirlwind or that the whirlwind enters its space, including when the whirlwind first appears. A creature takes 10d6 bludgeoning damage on a failed save, or half as much damage on a successful one. In addition, a Large or smaller creature that fails the save must succeed on a Strength saving throw or become restrained in the whirlwind until the spell ends. When a creature starts its turn restrained by the whirlwind, the creature is pulled 5 feet higher inside it, unless the creature is at the top. A restrained creature moves with the whirlwind and falls when the spell ends, unless the creature has some means to stay aloft.\" + \"\\n   \" + \"A restrained creature can use an action to make a Strength or Dexterity check against your spell save DC. If successful, the creature is no longer restrained by the whirlwind and is hurled 3d6 \\xD7 10 feet away from it in a random direction.\"\r\n};\r\n\r\n// Weapons (attack cantrips)\r\nWeaponsList[\"create bonfire\"] = {\r\n\tregExpSearch : /^(?=.*create)(?=.*bonfire).*$/i,\r\n\tname : \"Create Bonfire\",\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"5-ft cube; Dex save at casting or when moved into, success - no damage; Conc, 1 min\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"frostbite\"] = {\r\n\tregExpSearch : /frostbite/i,\r\n\tname : \"Frostbite\",\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"cold\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also disadv. on next weapon attack roll in next turn; 1 creature\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"magic stone\"] = {\r\n\tregExpSearch : /^(?=.*magic)(?=.*stone).*$/i,\r\n\tname : \"Magic Stone\",\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [1, 6, \"bludgeoning\"],\r\n\trange : \"60/120 ft\",\r\n\tdescription : \"Produces 3 stones that each can be thrown (60 ft) or hurled with a sling (120 ft) as a spell attack\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"thunderclap\"] = {\r\n\tregExpSearch : /thunderclap/i,\r\n\tname : \"Thunderclap\",\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"thunder\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; all creatures in area; audible in 100 ft\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20150714_AL-RoD.js",
    "content": "var iFileName = \"pub_20150714_AL-RoD.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the optional backgrounds from the Adventurers League season 3 (Rage of Demons) to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"AL:RoD\"]={\r\n\tname : \"Rage of Demons Backgrounds [Hillsfar]\",\r\n\tabbreviation : \"AL:RoD\",\r\n\tgroup : \"Adventurers League\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://www.dropbox.com/s/h4ijcnfun1cn580/Hillsfar-Regional-Character-Options.pdf?dl=1\", // used to be https://dndadventurersleague.org/wp-content/uploads/2015/07/Hillsfar-Regional-Character-Options.pdf\r\n\tdate : \"2015/07/14\"\r\n};\r\n\r\n// Backgrounds (with contributions by AggieBear)\r\nBackgroundList[\"cormanthor refugee\"] = {\r\n\tregExpSearch : /^(?=.*cormanthor)(?=.*refugee).*$/i,\r\n\tname : \"Cormanthor Refugee\",\r\n\tsource : [[\"AL:RoD\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Nature\", \"Survival\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Two-person tent\", \"\", 20],\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Holy symbol (type)\", \"\", 1],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Shelter of the Elven Clergy\",\r\n\ttrait : [\r\n\t\t\"I long for a home that never really existed, whether in the camps, Hillsfar, or Myth Drannor.\",\r\n\t\t\"Though I am not an elf, I am a fervent, radical worshipper of the elven gods.\",\r\n\t\t\"I live in the moment, knowing my life could be turned upside down any day.\",\r\n\t\t\"I appreciate beauty in all of its forms.\",\r\n\t\t\"I hate the dark elves and the Netherese for each driving the elves out of Cormanthyr in the past.\",\r\n\t\t\"I am a forest bumpkin who grew up in a tent in the woods and is wholly ignorant of city life.\",\r\n\t\t\"I was raised alongside children of many other races. I harbor no racial prejudices at all.\",\r\n\t\t\"The elves have just the right word for so many things that cannot be expressed as well in other languages. I pepper my speech with elven words, phrases, and sayings.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Patient\",\r\n\t\t\t\"Patient: The elves have taught me to think and plan for the long-term. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Rebellious\",\r\n\t\t\t\"Rebellious: Governments and politicians drove my family to the camps. I subtly defy authority whenever I think I can get away with it. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Self-Absorbed\",\r\n\t\t\t\"Self-Absorbed: I've had to look out for number one so long that it has become second nature. (Any)\"\r\n\t\t],\r\n\t\t[\"Wanderlust\",\r\n\t\t\t\"Wanderlust: I want to see as much of the world beyond the camps as I can. (Any)\"\r\n\t\t],\r\n\t\t[\"Generous\",\r\n\t\t\t\"Generous: I give everything I can to help those in need, regardless of who they are. (Good)\"\r\n\t\t],\r\n\t\t[\"To the Abyss with Them\",\r\n\t\t\t\"To the Abyss with Them: The people of Hillsfar cast me out. I won't risk my hide to help them. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The elves took me in when I had nowhere else to go. In return, I do what I can to help elves in need.\",\r\n\t\t\"I seek revenge against the people of Hillsfar for driving my family into the forest.\",\r\n\t\t\"My family lost everything when they were driven from Hillsfar. I strive to rebuild that fortune.\",\r\n\t\t\"The forest has provided me with food and shelter. In return, I protect forests and those who dwell within.\",\r\n\t\t\"I am deeply, tragically in love with someone whose racial lifespan is far longer or shorter than mine.\",\r\n\t\t\"Members of my extended family did not make it to the camps or have been kidnapped to fight in the Arena. I search for them tirelessly.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am very uncomfortable indoors and underground\",\r\n\t\t\"I am haughty. I grew up among the elves and emulate them. Other races are crude in comparison.\",\r\n\t\t\"Elf this, elf that. I am sick and tired of the elves.\",\r\n\t\t\"I am a miser. Having lost everything once before, I clutch my possessions and wealth very tightly.\",\r\n\t\t\"I am a moocher. I am so used to others providing for me that I have come to expect everyone to do it.\",\r\n\t\t\"I believe the gods have cursed me, my family, and all of the Cormanthor refugees. We are all doomed, doomed I tell you!\"\r\n\t],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tlanguageProfs : [\"Elvish\"],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"gate urchin\"] = {\r\n\tregExpSearch : /^(?=.*gate)(?=.*urchin).*$/i,\r\n\tname : \"Gate Urchin\",\r\n\tsource : [[\"AL:RoD\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Sleight of Hand\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Battered alms box\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Cast-off military jacket, cap, or scarf\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Red Plume and Mage Guild Contacts\",\r\n\ttrait : [\r\n\t\t\"I appreciate the simple things in life: a song, a warm meal, a sunny day. I don't need any more.\",\r\n\t\t\"My problems are always caused by others. I'm never to blame.\",\r\n\t\t\"I am afraid I could wind up back on the streets any day.\",\r\n\t\t\"I get along with everyone.\",\r\n\t\t\"I see people as marks for a con and have difficulty feeling true empathy for them.\",\r\n\t\t\"I have a real flair for matchmaking. I can find anyone a spouse!\",\r\n\t\t\"I think money is the true measure of appreciation and affection. Everything else is talk or an act.\",\r\n\t\t\"I don't like having a lot of stuff, just a few simple things I need. I don't like being tied down and tend to leave things behind when I don't need them anymore.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loyal\",\r\n\t\t\t\"Loyal: I never rat out any of my friends, even when the Red Plumes or the Rogues Guild ask. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Adventurous\",\r\n\t\t\t\"Adventurous: I don't like doing the same thing every day. I crave variety. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Strong\",\r\n\t\t\t\"Strong: Only the strong survive. I respect those who are strong and powerful. (Any)\"\r\n\t\t],\r\n\t\t[\"Witty\",\r\n\t\t\t\"Witty: Brains are better than brawn. I rely on my wits and respect others who do the same. (Any)\"\r\n\t\t],\r\n\t\t[\"Honest\",\r\n\t\t\t\"Honest: Others can do what they want, but I won't lie or steal, even to feed my family. (Good)\"\r\n\t\t],\r\n\t\t[\"Ungrateful\",\r\n\t\t\t\"Ungrateful: Those who give, only do it to make themselves feel better. I steal from them. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The Joydancers of Lliira gave me my instrument when I really needed food. I hate them for that.\",\r\n\t\t\"Busking has taught me to love music above all else.\",\r\n\t\t\"The Rogues Guild spared me when I did a job without cutting them in. I owe them a great debt.\",\r\n\t\t\"I know people hate the Red Plumes, but some of them were really good to me. I help Red Plumes whenever I can, and I respect them. They're just doing what they have to do to get by in this world.\",\r\n\t\t\"I will be wealthy some day. My descendants will live in comfort and style.\",\r\n\t\t\"I know how hard life on the streets is. I do everything I can for those who have less than me.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Though I no longer live at the Gate, I am still always concerned about where I will get my next meal.\",\r\n\t\t\"Years of thieving have become habit. I sometimes steal from strangers without thinking about it.\",\r\n\t\t\"I am ashamed of my origins. I pretend I am higher-born and fear others will find out the truth.\",\r\n\t\t\"I think people who grew up in houses are soft, spoiled, and ungrateful. I frequently tell them so.\",\r\n\t\t\"I am still very uncomfortable wearing nice clothes, sleeping in a warm bed, and eating fine food.\",\r\n\t\t\"I do not trust anyone who has not had a hard life.\"\r\n\t],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], [\"Musical instrument\", 1]],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"hillsfar merchant\"] = {\r\n\tregExpSearch : /^(?=.*hillsfar)(?=.*merchant).*$/i,\r\n\tname : \"Hillsfar Merchant\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 25,\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t\t[\"Letter of introduction from family's trading house\", \"\", 1]\r\n\t],\r\n\tfeature : \"Factor\",\r\n\tfeatureAlt : \"Trade Contact\",\r\n\ttrait : [\r\n\t\t\"I fill my evenings with wine or mead and song.\",\r\n\t\t\"I greatly admire gladiators and enjoy the Arena.\",\r\n\t\t\"I take my wealth for granted. It seldom occurs to me that others aren't rich themselves.\",\r\n\t\t\"I leave broken hearts all around the Moonsea and up and down the Sword Coast.\",\r\n\t\t\"I work hard and seldom make time for fun.\",\r\n\t\t\"I am a particularly devout and pray often.\",\r\n\t\t\"The Red Plumes caught me once. I hate them.\",\r\n\t\t\"I ask a lot of questions to get information about those with whom I am working and dealing.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Frugal\",\r\n\t\t\t\"Frugal: I spend my money very carefully. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Profligate\",\r\n\t\t\t\"Profligate: I tend to spend extravagantly. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Honest\",\r\n\t\t\t\"Honest: I deal with others above board. (Any)\"\r\n\t\t],\r\n\t\t[\"Sharp\",\r\n\t\t\t\"Sharp: I seek to make the best deal possible. (Any)\"\r\n\t\t],\r\n\t\t[\"Charitable\",\r\n\t\t\t\"Charitable: I give generously to others. (Good)\"\r\n\t\t],\r\n\t\t[\"Greedy\",\r\n\t\t\t\"Greedy: I do not share my wealth with others. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I am fiercely loyal to those with whom I work.\",\r\n\t\t\"I must uphold the good name of my family.\",\r\n\t\t\"I will prove myself to my family as an adventurer.\",\r\n\t\t\"Deals are sacrosanct. I never go back on my word.\",\r\n\t\t\"I love making deals and negotiating agreements.\",\r\n\t\t\"I guard my wealth jealously.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am a braggart. I promote myself shamelessly.\",\r\n\t\t\"I am vain. I always wear the latest fashions.\",\r\n\t\t\"I am a glutton. I eat and drink to excess.\",\r\n\t\t\"I am a snob. I want only the finest things in life.\",\r\n\t\t\"I am lazy. I want others to take care of everything.\",\r\n\t\t\"I am overconfident. I overestimate my abilities.\"\r\n\t],\r\n\ttoolProfs : [\"Vehicles (land)\", \"Vehicles (water)\"],\r\n\tlifestyle : \"wealthy\"\r\n};\r\nBackgroundList[\"hillsfar smuggler\"] = {\r\n\tregExpSearch : /^(?=.*hillsfar)(?=.*smuggler).*$/i,\r\n\tname : \"Hillsfar Smuggler\",\r\n\tsource : [[\"AL:RoD\", 8], [\"ALbackground\", 0]],\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Forgery kit\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Passage\",\r\n\ttrait : [\r\n\t\t\"When I'm not smuggling, I gamble.\",\r\n\t\t\"I just love Halfling cooking and baking!\",\r\n\t\t\"I party with dwarves whenever I can.\",\r\n\t\t\"I'm a terrible singer, but I love to do it.\",\r\n\t\t\"I was raised to honor Chauntea and still do.\",\r\n\t\t\"The blood sports of the Arena sicken me.\",\r\n\t\t\"I think non-humans are really interesting.\",\r\n\t\t\"I exaggerate the tales of my exploits.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Fair\",\r\n\t\t\t\"Fair: I think everyone deserves to be treated fairly. I don't play favorites. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Impulsive\",\r\n\t\t\t\"Impulsive: Planning is often a waste of time. No plan survives contact with reality. It's easier to dive in and deal with the consequences. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Curious\",\r\n\t\t\t\"Curious: I want to learn as much as I can about the people and places I encounter. (Any)\"\r\n\t\t],\r\n\t\t[\"Prepared\",\r\n\t\t\t\"Prepared: I think success depends on preparing as much as possible in advance. (Any)\"\r\n\t\t],\r\n\t\t[\"Respectful\",\r\n\t\t\t\"Respectful: I think everyone deserves to be treated with respect and dignity, regardless of their race, creed, color, or origin. (Good)\"\r\n\t\t],\r\n\t\t[\"Corrupt\",\r\n\t\t\t\"Corrupt: I will break the law or act dishonestly if the money is right. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I am loyal to the Rogues Guild and would do anything for them.\",\r\n\t\t\"I love the city of Hillsfar and my fellow Hillsfarians, despite the recent problems.\",\r\n\t\t\"I admire the elves. I help them whenever I can.\",\r\n\t\t\"A gnome helped me once. I pay the favor forward.\",\r\n\t\t\"I enjoy tricking the Red Plumes at every opportunity.\",\r\n\t\t\"I smuggled agricultural goods for non-human farmers. I try to help them when I can.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"My hatred for the Red Plumes burns so brightly that I have difficulty suppressing It around them.\",\r\n\t\t\"The Red Plumes caught me once before, and I was branded for my crime. If they catch me again, for any offense, the punishment will be dire.\",\r\n\t\t\"I treat all Hillsfarans poorly. I am disgusted with their failure to revolt against the Great Law of Humanity.\",\r\n\t\t\"I have difficulty trusting strangers. Anyone could be a spy for the authorities.\",\r\n\t\t\"I am greedy. There Isn't much I won't do for money.\",\r\n\t\t\"I'm an informant for the Red Plumes. They let me continue my activities, so long as I pass them information about illegal activity in Hillsfar.\"\r\n\t],\r\n\ttoolProfs : [\"Forgery kit\"],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"secret identity\"] = {\r\n\tregExpSearch : /^(?=.*secret)(?=.*identity).*$/i,\r\n\tname : \"Secret Identity\",\r\n\tsource : [[\"AL:RoD\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Forgery kit\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Identity\",\r\n\ttrait : [\r\n\t\t\"Despite its problems, I love Hillsfar, it's the greatest city in the world. The only one for me.\",\r\n\t\t\"I move from place to place, never staying anywhere long and leaving nothing behind.\",\r\n\t\t\"I think flattery is the best way to direct attention away from me.\",\r\n\t\t\"I don't make friends easily. They're a liability I cannot afford.\",\r\n\t\t\"Risk and danger are exhilarate me. Pulling off schemes and deceptions is a rush.\",\r\n\t\t\"The First Lord is right, humans are superior. I really admire them, despite the atrocities.\",\r\n\t\t\"I avoid people of my own race, as well as things associated with my race, lest they give me away.\",\r\n\t\t\"I live for the Arena. I admire gladiators and enjoy the thrill of blood on the sands!\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Quisling\",\r\n\t\t\t\"Quisling: Supporting the rulers of the land and following the laws is the road to salvation. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Scoflaw\",\r\n\t\t\t\"Scoflaw: The laws and lawmakers are corrupt. I follow laws only when it suits me. (Chaotic))\"\r\n\t\t],\r\n\t\t[\"Optimist\",\r\n\t\t\t\"Optimist: Everyone Is basically good. Though the government is misguided it will all be okay. (Any)\"\r\n\t\t],\r\n\t\t[\"Secretive\",\r\n\t\t\t\"Secretive: I am in the habit of not talking about myself. My business is none of yours. (Any)\"\r\n\t\t],\r\n\t\t[\"Heroic\",\r\n\t\t\t\"Heroic: I do everything I can to help non-humans, regardless of the personal cost to me. (Good)\"\r\n\t\t],\r\n\t\t[\"Depraved\",\r\n\t\t\t\"Depraved: I have lost my moral compass. The ends justify most any means. (Evil)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The humans of Hillsfar have inflicted terrible harm on me, my family, and my race. I will have revenge.\",\r\n\t\t\"I am part of an underground network that smuggles non-humans into and out of the city.\",\r\n\t\t\"I am a partisan. I commit minor acts of defiance against the First Lord and Red Plumes when I can.\",\r\n\t\t\"I am a spy. I report on events in and around Hillfar.\",\r\n\t\t\"My secret identity is the only thing protecting me from the Arena. I will stop at nothing to maintain it.\",\r\n\t\t\"I am madly in love with a human who does not know my true identity, and I fear rejection if I reveal it.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"After years of denying who I am, I now despise myself and other members of my pathetic race.\",\r\n\t\t\"Years of hiding have made me somewhat paranoid. I trust no one.\",\r\n\t\t\"I've been lying so often and for so long that I can't help it anymore. I frequently lie for no reason at all.\",\r\n\t\t\"I am ashamed. I failed to protect a member of my family who was seized and thrown into the Area.\",\r\n\t\t\"I am struggling with maintaining my secret identity. I subconsciously want to get caught and therefore sometimes let my secret identity slip.\",\r\n\t\t\"Years of successfully deceiving others have made me cocky. I think no one can see through my lies.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise kit\", \"Forgery kit\"],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"shade fanatic\"] = {\r\n\tregExpSearch : /^(?=.*shade)(?=.*fanatic).*$/i,\r\n\tname : \"Shade Fanatic\",\r\n\tsource : [[\"AL:RoD\", 10], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Intimidation\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Forgery kit\", \"\", 5],\r\n\t\t[\"Transparent shadow cylinder\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Secret Society\",\r\n\ttrait : [\r\n\t\t\"I am a bully; I try to hide it though.\",\r\n\t\t\"I let my actions speak for themselves\",\r\n\t\t\"I am important; I will not let anyone forget that.\",\r\n\t\t\"You are either with me or against me.\",\r\n\t\t\"I know it is only a time before I am betrayed by those I care for.\",\r\n\t\t\"I never understand why people get so emotional.\",\r\n\t\t\"They are out to get me. It is only my cunning that keeps me ahead of them\",\r\n\t\t\"Everyone has a choice, the one I make is always right though.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: I know even if I need do evil acts, history will be my redemption. (Chaos)\"\r\n\t\t],\r\n\t\t[\"Dedicated\",\r\n\t\t\t\"Dedicated: I can do anything I put my mind to (Lawful)\"\r\n\t\t],\r\n\t\t[\"Exciting\",\r\n\t\t\t\"Exciting: I have found the truth of the Shadovar and want to share it with everyone. (Any)\"\r\n\t\t],\r\n\t\t[\"Frugal\",\r\n\t\t\t\"Frugal: I horde my possessions knowing that someday I will be called upon to give everything I have to the cause (Any)\"\r\n\t\t],\r\n\t\t[\"Eloquent\",\r\n\t\t\t\"Eloquent: I use my words to sway others to my beliefs. (Any)\"\r\n\t\t],\r\n\t\t[\"Compassionate\",\r\n\t\t\t\"Compassionate: It is through love that others will join In our cause. (Good)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"They say the Shade broke the bonds of mortality; I want to find out how.\",\r\n\t\t\"The whispers in my head remind me that there is power to be found in the shadows.\",\r\n\t\t\"For the glory of Netheril, I will grow in power.\",\r\n\t\t\"I once lived in Hillsfar, I was chased out before I was able to say farewell.\",\r\n\t\t\"My true love was a killed by the Red Plumes; I plot to make them suffer.\",\r\n\t\t\"I had a loved one die in the arena at Hillsfar; I am out to prove I am stronger than them!\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I always over exaggerate my abilities.\",\r\n\t\t\"I cannot bear to let those I care for out of my sight.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"The group I am with has committed atrocities; I am always worried their actions will become public.\",\r\n\t\t\"I always enjoy a good mug of ale … or five.\",\r\n\t\t\"I know what I do is wrong, but am afraid to speak up about it.\"\r\n\t],\r\n\ttoolProfs : [\"Forgery kit\"],\r\n\tlanguageProfs : [\"Netherese\"],\r\n\tlifestyle : \"moderate\"\r\n};\r\nBackgroundList[\"trade sheriff\"] = {\r\n\tregExpSearch : /^(?=.*trade)(?=.*sheriff).*$/i,\r\n\tname : \"Trade Sheriff\",\r\n\tsource : [[\"AL:RoD\", 11], [\"ALbackground\", 0]],\r\n\tskills : [\"Investigation\", \"Persuasion\"],\r\n\tgold : 17,\r\n\tequipleft : [\r\n\t\t[\"Thieves' tools\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Gray cloak\", \"\", \"\"],\r\n\t\t[\"Sheriff's insignia\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Investigative Services\",\r\n\ttrait : [\r\n\t\t\"I am always polite and respectful\",\r\n\t\t\"I let my actions speak for themselves\",\r\n\t\t\"I am haunted by my past having seen the murder of a close friend or family member and it is the one case I always needed to solve but have not been able to.\",\r\n\t\t\"I am quick to judge and slow to vindicate\",\r\n\t\t\"I can be very persuasive and am able to ask questions where others might not be able to.\",\r\n\t\t\"I have a quirky personality that seems to take others off their guard.\",\r\n\t\t\"My sense of humor is considered by most to be awkward\",\r\n\t\t\"Everyone has a choice, and they can always make the right choice, mine!\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Hope\",\r\n\t\t\t\"Hope: my job is to speak for the victim (good)\"\r\n\t\t],\r\n\t\t[\"Dedicated\",\r\n\t\t\t\"Dedicated: Once I start an investigation, until told to do so, I do not quit, not matter where it leads. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Nation\",\r\n\t\t\t\"Nation: My city, nation, or people are all that matter (any)\"\r\n\t\t],\r\n\t\t[\"Mercenary\",\r\n\t\t\t\"Mercenary: When I do investigations, I expect answers immediately (Any)\"\r\n\t\t],\r\n\t\t[\"Eloquent\",\r\n\t\t\t\"Eloquent: I use my words to sway others to give me answers.(good)\"\r\n\t\t],\r\n\t\t[\"Might\",\r\n\t\t\t\"Might: It is through threats and force that I get my answers (lawful)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"To this day an unsolved case will always leave me haunted and bother me.\",\r\n\t\t\"Through the might of my personality I will solve an investigation or puzzle.\",\r\n\t\t\"It is my right to believe what I will, just try and stop me.\",\r\n\t\t\"I need to prove my worth to my fellow Sheriffs.\",\r\n\t\t\"Someone I cared for died under suspicious circumstances. I will find out what happened to them and bring their killer to justice.\",\r\n\t\t\"I speak for those that cannot speak for themselves.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I always over exaggerate my abilities.\",\r\n\t\t\"I cannot bear to let those I care for out of my sight.\",\r\n\t\t\"I took a bribe to tank an investigation and I would do anything to keep it secret.\",\r\n\t\t\"I have little respect for those that are of \\\"low\\\" intelligence/race.\",\r\n\t\t\"I always enjoy a good mug of ale … or five to cover up my past.\",\r\n\t\t\"I speak for the First Lord of Hillsfar and make sure everyone knows it.\"\r\n\t],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\tlanguageProfs : [\"Elvish\"],\r\n\tlifestyle : \"moderate\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"factor\"] = {\r\n\tdescription : \"My family has assigned me the services of a loyal retainer from the business. This person can perform mundane tasks for me such as making purchases, delivering messages, and running errands. He or she will not fight for me or follow me into danger, and will leave if frequently endangered or abused. If killed, my family assigns me another within days.\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"investigative services\"] = {\r\n\tdescription : \"I have a way of communicating with others that puts them at ease. I can invoke my rank to allow me access to a crime scene or to requisition equipment or horses on a temporary basis. When entering a settlement around Hillsfar, I can identify a contact who will give me information and would help me because I want to stop anyone from disrupting trade.\",\r\n\tsource : [[\"AL:RoD\", 11], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"red plume and mage guild contacts\"] = {\r\n\tdescription : \"I made friends among the Red Plumes and Mage's Guild when I lived at the Hillsfar Gate. They remember me fondly and help me in little ways when they can. I can invoke their assistance in and around Hillsfar to obtain food, simple equipment for temporary use, and to gain access to the low-security areas of their garrisons, halls, and encampments.\",\r\n\tsource : [[\"AL:RoD\", 6], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret identity\"] = {\r\n\tdescription : \"I have created a secret identity that I use to conceal my true race and that offers a covering explanation for my presence in Hillsfar. In addition, I can forge documents, including official papers and personal letters, as long as I have seen an example of the kind of document or the handwriting I am trying to copy.\",\r\n\tsource : [[\"AL:RoD\", 9], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret passage\"] = {\r\n\tdescription : \"I can call on my smuggler contacts to secure secret passage into or out of Hillsfar for myself and my friends, no questions asked, and no Red Plume entanglements. Because I'm calling in a favor, I can't be certain when or if they can help. In return for passage, my companions and I may owe the Rogue's Guild a favor and/or may have to pay bribes.\",\r\n\tsource : [[\"AL:RoD\", 8], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"secret society\"] = {\r\n\tdescription : \"I have a special way of communicating with others who feel the same way I do about the Shade. When I enter a village or larger city, I can identify a contact who will give me information on those that would hinder my goals and those would help me simply because of my desire to see the Shade Enclave return in all its glory.\",\r\n\tsource : [[\"AL:RoD\", 10], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"shelter of the elven clergy\"] = {\r\n\tdescription : \"The clerics of Elventree have vowed to care for the Cormanthor refugees. They will help me when they can, including providing me and my companions with free healing and care at temples, shrines, and other established presences in Elventree. They will also provide me (but only me) with a poor lifestyle.\",\r\n\tsource : [[\"AL:RoD\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"trade contact\"] = {\r\n\tdescription : \"My family and I have trade contacts such as caravan masters, sailors, artisans, farmers, and shopkeepers throughout the Moonsea region and all along the Sword Coast. When adventuring in either of those areas, I can use those contacts to get information about the local area or to pass a message to someone in those areas, even across great distance.\",\r\n\tsource : [[\"AL:RoD\", 7], [\"ALbackground\", 0]]\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20150915_OotA.js",
    "content": "var iFileName = \"pub_20150915_OotA.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds all the beasts and background features from the Out of the Abyss adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.OotA={\r\n\tname : \"Out of the Abyss [beasts, background features, items]\",\r\n\tabbreviation : \"OotA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/outoftheabyss\",\r\n\tdate : \"2015/09/15\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"deep delver\"] = {\r\n\tdescription : \"I have a knack for finding my way in the Underdark, recalling all twists and turns with ease, such that I can always retrace my steps underground. I can determine which sources of food and water are safe to consume. I can always find sufficient food and water for myself and up to five other people in the Underdark, if sustenance is available in the area.\",\r\n\tsource : [[\"OotA\", 221], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"underdark experience\"] = {\r\n\tdescription : \"I'm no casual visitor to the Underdark, but have spent considerable time there learning its ways. I'm familiar with the various races, civilizations, settlements, and travel routes of the Underdark. If I fail an Intelligence check to recall some piece of Underdark lore, I know a source I can consult for the answer unless the DM rules that the lore is unknown.\",\r\n\tsource : [[\"OotA\", 221], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Creatures\r\nCreatureList[\"cave badger\"] = { // contributed by Nod_Hero\r\n\tname : \"Cave Badger\",\r\n\tnameAlt : [\"Badger, Cave\"],\r\n\tsource : [[\"OotA\", 96]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 13,\r\n\thd : [2, 8],\r\n\tspeed : \"30 ft, burrow 15 ft\",\r\n\tscores : [13, 10, 15, 2, 12, 5],\r\n\tsenses : \"Darkvision 30 ft, Tremorsense 60 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 11,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claws attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One claws and one bite attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the badger can make one Bite and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Smell\",\r\n\t\tdescription : \"The badger has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t}]\r\n};\r\nCreatureList[\"steeder, female\"] = {\r\n\tname : \"Female Steeder\",\r\n\tnameAlt : [\"Steeder, Female\", \"Steeder\"],\r\n\tsource : [[\"OotA\", 231]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 30,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [15, 16, 14, 2, 10, 3],\r\n\tskills : {\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Darkvision 120 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 2d8 acid damage, half on a DC 12 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Sticky Leg\",\r\n\t\tability : 2,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Grappled\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Medium or smaller is stuck to the steeder's leg and grappled (escape DC 12); Can't use again until grapple ends\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The steeder can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Leap\",\r\n\t\tdescription : \"The steeder can expend all its movement on its turn to jump up to 90 ft vertically or horizontally, provided that its speed is at least 30 feet.\"\r\n\t}]\r\n};\r\nCreatureList[\"steeder, male\"] = {\r\n\tname : \"Male Steeder\",\r\n\tnameAlt : [\"Steeder, Male\"],\r\n\tsource : [[\"OotA\", 231]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 13,\r\n\thd : [2, 8],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [15, 12, 14, 2, 10, 3],\r\n\tskills : {\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tsenses : \"Darkvision 120 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 1d8 acid damage, half on a DC 12 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Sticky Leg\",\r\n\t\tability : 1,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Grappled\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Small or smaller is stuck to the steeder's leg and grappled (escape DC 12); Can't use again until grapple ends\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The steeder can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Leap\",\r\n\t\tdescription : \"The steeder can expend all its movement on its turn to jump up to 60 ft vertically or horizontally, provided that its speed is at least 30 feet.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"dawnbringer\"] = {\r\n\tname : \"Dawnbringer\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-evil alignment\",\r\n\tprereqeval : function(v) { return !(/evil/i).test(What(\"Alignment\")); },\r\n\tdescription : \"As a bonus action, I can have this hilt create a blade of radiance. It acts like a longsword that does +2 to attack and damage rolls, radiant damage (+1d8 to undead), has finesse, emits bright sunlight in a 15-ft radius and dim light in another 15 ft. I can use it to cast Lesser Restoration and it is sentient, see Notes page.\",\r\n\tdescriptionLong : \"As a bonus action, I can have this longsword hilt create or dismiss a blade of pure radiance. It acts like a longsword that grants a +2 bonus to attack and damage rolls, does radiant damage and has the finesse property. It deals +1d8 radiant damage to undead and emits sunlight, bright light in a 15-ft radius and dim light in an additional 15ft. As an action, I can expand or reduce both the bright and dim light's radius by 5 ft each, to a maximum of 30 feet each or a minimum of 10 feet each. Once per dawn, I can use it to cast Lesser Restoration. Also, it is sentient, see Notes page.\",\r\n\tdescriptionFull : \"Lost for ages in the Underdark, Dawnbringer appears to be a gilded longsword hilt. While grasping the hilt, you can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, this magic longsword has the finesse property. If you are proficient with shortswords or longswords, you are proficient with Dawnbringer.\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When you hit an undead with it, that target takes an extra 1d8 radiant damage.\\n   The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the blade persists, you can use an action to expand or reduce its radius of bright and dim light by 5 feet each, to a maximum of 30 feet each or a minimum of 10 feet each.\\n   While holding the weapon, you can use an action to touch a creature with the blade and cast Lesser Restoration on that creature. Once used, this ability can't be used again until the next dawn.\\n   \" + toUni(\"Sentience\") + \". Dawnbringer is a sentient neutral good weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet.\\n   The sword can speak, read, and understand Common, and it can communicate with its wielder telepathically. Its voice is kind and feminine. It knows every language you know while attuned to it.\\n   \" + toUni(\"Personality\") + \". Forged by ancient sun worshippers, Dawnbringer is meant to bring light into darkness and to fight creatures of darkness. It is kind and compassionate to those in need, but fierce and destructive to its enemies.\\n   Long years lost in darkness have made Dawnbringer frightened of both the dark and abandonment. It prefers that its blade always be present and shedding light in areas of darkness, and it strongly resists being parted from its wielder for any length of time.\" +\r\n\t// Addition from Adventurers League Content Catalogue 8.07\r\n\t\"\\n   If an evil creature attempts to attune to the weapon, it not only finds it impossible, but Dawnbringer attempts to take control of its wielder (DC 14 Charisma saving throw). If the weapon is successful, it insists on being taken to the surface or willingly given to the first creature it comes across that is not a member of a race indigenous to the Underdark. Dawnbringer will not allow its relinquishment to a creature that it or its wielder knows is evil, and instead compels its wielder to find a new recipient.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \" (start/stop)\"], [\"action\", \" (change light)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /dawnbringer/i,\r\n\t\tname : \"Dawnbringer\",\r\n\t\tsource : [[\"OotA\", 222]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Finesse, versatile (1d10); +1d8 damage to undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.name == \"Dawnbringer\" && !fields.Proficiency) {\r\n\t\t\t\t\tfields.Proficiency = CurrentProfs.weapon.otherWea && CurrentProfs.weapon.otherWea.finalProfs.indexOf(\"shortsword\") !== -1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Lesser Restoration\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"lesser restoration\"],\r\n\t\tselection : [\"lesser restoration\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"Lost for ages in the Underdark, Dawnbringer appears to be a gilded longsword hilt. While grasping the hilt, I can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, it functions as a magic longsword that has the finesse property. I'm proficient with it if I'm proficient with either shortswords or longswords.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When I hit an undead with it, that target takes an extra 1d8 radiant damage.\",\r\n\t\t\t\"The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 ft. The light is sunlight. As an action while the blade persists, I can expand or reduce its radius of bright and dim light by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each.\",\r\n\t\t\t\"As an action while holding the weapon, I can touch a creature with the blade and cast Lesser Restoration on that creature. Once used, this ability can't be used again until the next dawn.\",\r\n\t\t\t\"Dawnbringer is a sentient neutral good weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet. The sword can speak, read, and understand Common, and it can communicate with its wielder telepathically. Its voice is kind and feminine. It knows every language you know while attuned to it.\",\r\n\t\t\t\"Forged by ancient sun worshippers, Dawnbringer is meant to bring light into darkness and to fight creatures of darkness. It is kind and compassionate to those in need, but fierce and destructive to its enemies. Long years lost in darkness have made Dawnbringer frightened of both the dark and abandonment. It prefers that its blade always be present and shedding light in areas of darkness, and it strongly resists being parted from its wielder for any length of time.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"piwafwi (cloak of elvenkind)\"] = {\r\n\tname : \"Piwafwi\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While I wear this dark spider-silk cloak with its hood up, Wisdom (Perception) checks made to see me have disadv., and I have adv. on Dex (Stealth) checks made to hide, as its color shifts to camouflage me. Pulling the hood up or down requires an action. It loses its magic if exposed to sunlight for 1 uninterrupted hour.\",\r\n\tdescriptionFull : \"This dark spider-silk cloak is made by drow. It is a cloak of elvenkind. It loses its magic if exposed to sunlight for 1 hour without interruption.\\n   While you wear this cloak with its hood up, Wisdom (Perception) checks made to see you have disadvantage. and you have advantage on Dexterity (Stealth) checks made to hide, as the cloak's color shifts to camouflage you. Pulling the hood up or down requires an action.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\teval : function () {\r\n\t\tif (CurrentMagicItems.known.indexOf(\"boots of elvenkind\") !== -1) {\r\n\t\t\tSetProf(\"advantage\", true, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t\t}\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tSetProf(\"advantage\", false, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t}\r\n}\r\nMagicItemsList[\"piwafwi of fire resistance (cloak of elvenkind)\"] = {\r\n\tname : \"Piwafwi of Fire Resistance\",\r\n\tsource : [[\"OotA\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"While I wear this dark spider-silk cloak with its hood up, Wisdom (Perception) checks made to see me have disadv., and I get adv. on Dex (Stealth) checks made to hide. Pulling the hood up or down requires an action. It also grants me fire resistance. It loses its magic if exposed to sunlight for 1 hour without interruption.\",\r\n\tdescriptionFull : \"This dark spider-silk cloak is made by drow. It is a cloak of elvenkind. It also grants resistance to fire damage while you wear it. It loses its magic if exposed to sunlight for 1 hour without interruption.\\n   While you wear this cloak with its hood up, Wisdom (Perception) checks made to see you have disadvantage. and you have advantage on Dexterity (Stealth) checks made to hide, as the cloak's color shifts to camouflage you. Pulling the hood up or down requires an action.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Fire\"],\r\n\taction : [[\"action\", \" (hood up/down)\"]],\r\n\teval : function () {\r\n\t\tif (CurrentMagicItems.known.indexOf(\"boots of elvenkind\") !== -1) {\r\n\t\t\tSetProf(\"advantage\", true, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t\t}\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tSetProf(\"advantage\", false, [\"Stealth\", true], \"Cloak and Boots of Elvenkind (magic items)\");\r\n\t}\r\n}\r\nMagicItemsList[\"spell gem\"] = { // not legal in AL\r\n\tname : \"Spell Gem\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This gem can store 1 spell in it. If it is empty, I can cast a spell as normal, but have it stored in the gem. As an action, I can cast a stored spell from it, if that spell is on my class' spell list.\",\r\n\tdescriptionFull : \"A spell gem can contain one spell from any class's spell list. You become aware of the spell when you learn the gem's properties. While holding the gem, you can cast the spell from it as an action if you know the spell or if the spell is on your class's spell list. Doing so doesn't require any components, and doesn't require attunement. The spell then disappears from the gem.\\n   If the spell is of a higher level than you can normally cast, you must make an ability check using your spellcasting ability to determine whether you cast it successfully. The DC equals 10 + the spell's level. On a failed check, the spell disappears from the gem with no other effect\\n   Each spell gem has a maximum level for the spell it can store. The spell level determines the gem's rarity, the stored spell's saving throw DC, and attack bonus, as shown in the table below.\\n   You can imbue the gem with a spell if you're attuned to it and it's empty. To do so, you cast the spell while holding the gem. The spell is stored in the gem instead of having any effect. Casting the spell must require either 1 action or 1 minute or longer, and the spell's level must be no higher than the gem's maximum. If the spell belongs to the school of abjuration and requires material components that are consumed, you must provide them, but they can be worth half as much as normal.\\n   Once imbued with a spell, the gem can't be imbued again until the next dawn.\\n   Deep gnomes created these magic gemstones and keep the creation process a secret.\\n\\n\" + [\r\n\t\ttoUni(\"Level\\tStone\\t\\tRarity\\t\\tDC/Atk\"),\r\n\t\t\"Cantrip\\tObsidian\\t\\tUncommon\\t13/+5\",\r\n\t\t\"1st\\tLapis Lazuli\\tUncommon\\t13/+5\",\r\n\t\t\"2nd\\tQuartz\\t\\tRare\\t\\t13/+5\",\r\n\t\t\"3rd\\tBloodstone\\tRare\\t\\t15/+7\",\r\n\t\t\"4th\\tAmber\\t\\tVery Rare   \\t15/+9\",\r\n\t\t\"5th\\tJade\\t\\tVery Rare   \\t17/+9\",\r\n\t\t\"6th\\tTopaz\\t\\tVery Rare   \\t17/+10\",\r\n\t\t\"7th\\tStar Ruby  \\tLegendary \\t18/+10\",\r\n\t\t\"8th\\tRuby\\t\\tLegendary \\t18/+10\",\r\n\t\t\"9th\\tDiamond\\t\\tLegendary \\t19/+11\"\r\n\t].join(\"\\n\"),\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ((/spell gem/i).test(spName) && spellObj.time != \"1 a\") {\r\n\t\t\t\t\tspellObj.time = \"1 a\";\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Spells cast into a Spell Gem can only have a casting time of either 1 action or 1 minute or longer.\\n \\u2022 Spells cast from a Spell Gem always require 1 action to cast.\"\r\n\t\t],\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// only continue for spell gems\r\n\t\t\t\tif (!(/spell gem/i).test(CurrentSpells[spName].name)) return;\r\n\t\t\t\t// create the notspells array if it didn't already exist\r\n\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t// now add all the spells of this spell gem's level that have a casting time of 1 reaction or 1 bonus action\r\n\t\t\t\tfor (var spell in SpellsList) {\r\n\t\t\t\t\tvar aSp = SpellsList[spell];\r\n\t\t\t\t\tif (aSp.level <= spList.level[1] && aSp.time && (/1 (rea|bns)/i).test(aSp.time)) spList.notspells.push(spell);\r\n\t\t\t\t}\r\n\t\t\t}, \"\"\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Storing Spells\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"Casting a spell stored from a spell gem doesn't require attunement\",\r\n\t\t\t\"Only spells with a casting time of 1 action or 1 min or more can be stored in a spell gem\",\r\n\t\t\t\"Imbuing a spell gem requires casting a spell as normal, but the spell produces no effect\",\r\n\t\t\t\"I only need to provide half the costly material components for abjuration spells to imbue\"\r\n\t\t]\r\n\t}],\r\n\tchoices : [\"Obsidian (cantrip, uncommon)\", \"Lapis Lazuli (1st-level, uncommon)\", \"Quartz (2nd-level, rare)\", \"Bloodstone (3rd-level, rare)\", \"Amber (4th-level, very rare)\", \"Jade (5th-level, very rare)\", \"Topaz (6th-level, very rare)\", \"Star Ruby (7th-level, legendary)\", \"Ruby (8th-level, legendary)\", \"Diamond (9th-level, legendary)\"],\r\n\t\"obsidian (cantrip, uncommon)\" : {\r\n\t\tname : \"Spell Gem [Obsidian]\",\r\n\t\tsortname : \"Spell Gem  (cantrip) [Obsidian]\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This gem can store one cantrip. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,0],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"lapis lazuli (1st-level, uncommon)\" : {\r\n\t\tname : \"Spell Gem [Lapis Lazuli]\",\r\n\t\tsortname : \"Spell Gem (1st-level) [Lapis Lazuli]\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This gem can store one spell up to 1st-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack. If the spell's level is higher than I can cast, I need to make a DC 11 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,1],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"quartz (2nd-level, rare)\" : {\r\n\t\tname : \"Spell Gem [Quartz]\",\r\n\t\tsortname : \"Spell Gem (2nd-level) [Quartz]\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This gem can store one spell up to 2nd-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 13 and +5 spell attack. If the spell's level is higher than I can cast, I need to make a DC 12 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,2],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"bloodstone (3rd-level, rare)\" : {\r\n\t\tname : \"Spell Gem [Bloodstone]\",\r\n\t\tsortname : \"Spell Gem (3rd-level) [Bloodstone]\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This gem can store one spell up to 3rd-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 15 and +7 spell attack. If the spell's level is higher than I can cast, I need to make a DC 13 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,3],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"amber (4th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Amber]\",\r\n\t\tsortname : \"Spell Gem (4th-level) [Amber]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 4th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 15 and +9 spell attack. If the spell's level is higher than I can cast, I need to make a DC 14 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 15,\r\n\t\tfixedSpAttack : 9,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,4],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"jade (5th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Jade]\",\r\n\t\tsortname : \"Spell Gem (5th-level) [Jade]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 5th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 17 and +9 spell attack. If the spell's level is higher than I can cast, I need to make a DC 15 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,5],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"topaz (6th-level, very rare)\" : {\r\n\t\tname : \"Spell Gem [Topaz]\",\r\n\t\tsortname : \"Spell Gem (6th-level) [Topaz]\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This gem can store one spell up to 6th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 17, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 16 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 17,\r\n\t\tfixedSpAttack : 10,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,6],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"star ruby (7th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Star Ruby]\",\r\n\t\tsortname : \"Spell Gem (7th-level) [Star Ruby]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 7th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 18, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 17 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 18,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,7],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"ruby (8th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Ruby]\",\r\n\t\tsortname : \"Spell Gem (8th-level) [Ruby]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 8th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 18, +10 spell attack. If the spell's level is higher than I can cast, I need to make a DC 18 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 18,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,8],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t},\r\n\t\"diamond (9th-level, legendary)\" : {\r\n\t\tname : \"Spell Gem [Diamond]\",\r\n\t\tsortname : \"Spell Gem (9th-level) [Diamond]\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"This gem can store one spell up to 9th-level. I can cast such a spell into the empty gem. As an action, I can cast the spell stored in it (if it's on my class' spell list), with DC 19, +11 spell attack. If the spell's level is higher than I can cast, I need to make a DC 19 check with my spellcasting ability or the spell has no effect.\",\r\n\t\tfixedDC : 19,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,9],\r\n\t\t\tpsionic : false,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\ttimes : 20\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"stonespeaker crystal\"] = {\r\n\tname : \"Stonespeaker Crystal\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This crystal has 10 charges, regaining 1d6+4 at dawn, which I can use to cast its spells. When I use its last charge, roll a d20. On a 1, it vanishes. It gives me adv. on Int (Investigation) checks. When I cast an abjuration spell, I can expend 1 charge per level of the spell to substitute one material component of the spell.\",\r\n\tdescriptionFull : \"Created by the stone giant librarians of Gravenhollow, this nineteen-inch-long shard of quartz grants you advantage on Intelligence (Investigation) checks while it is on your person.\\n   The crystal has 10 charges. While holding it, you can use an action to expend some of its charges to cast one of the following spells from it: Speak with Animals (2 charges), Speak with Dead (4 charges), or Speak with Plants (3 charges).\\n   When you cast a Divination spell, you can use the crystal in place of one material component that would normally be consumed by the spell, at a cost of 1 charge per level of the spell. The crystal is not consumed when used in this way.\\n   The crystal regains 1d6+4 expended charges daily at dawn. If you expend the crystal's last charge, roll a d20. On a 1, the crystal vanishes, lost forever.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"speak with animals\"],\r\n\t\tselection : [\"speak with animals\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"speak with plants\"],\r\n\t\tselection : [\"speak with plants\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"speak with dead\"],\r\n\t\tselection : [\"speak with dead\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tadvantages : [[\"Investigation\", true]]\r\n}\r\nMagicItemsList[\"wand of viscid globs\"] = {\r\n\tname : \"Wand of Viscid Globs\",\r\n\tsource : [[\"OotA\", 223]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This black wand has 7 charges, regaining 1d6+1 at midnight. If its last charge is used, roll a d20. On a 1, it melts. As an action, I can expend 1 charge to make a ranged attack roll on a target in 60 ft (with my spellcasting ability). On a hit, it is restrained for 1 hour. The wand is destroyed if exposed to sunlight for 1 hour.\",\r\n\tdescriptionFull : \"Crafted by the drow, this slim black wand has 7 charges. While holding it, you can use an action to expend 1 of its charges to cause a small glob of viscous material to launch from the tip at one creature within 60 feet of you. Make a ranged attack roll against the target, with a bonus equal to your spellcasting modifier (or your Intelligence modifier, if you don't have a spellcasting modifier) plus your proficiency bonus. On a hit, the glob expands and dries on the target, which is restrained for 1 hour. After that time, the viscous material cracks and falls away.\\n   Applying a pint or more of alcohol to the restrained creature dissolves the glob instantly, as does the application of oil of etherealness or universal solvent. The glob also dissolves instantly if exposed to sunlight. No other nonmagical process can remove the viscous material until it deteriorates on its own.\\n   The wand regains 1d6+1 expended charges daily at midnight. If you expend the wands last charge, roll a d20. On a 1, the wand melts into harmless slime and is destroyed.\\n   A wand of viscous globs is destroyed if exposed to sunlight for 1 hour without interruption.\",\r\n\tweight : 1,\r\n\tusages : 7,\r\n\trecovery : \"Midnight\",\r\n\tadditional : \"regains 1d6+1\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*wand)(?=.*viscid)(?=.*globs).*$/i,\r\n\t\tname : \"Wand of Viscid Globs\",\r\n\t\tsource : [[\"OotA\", 223]],\r\n\t\tability : 4,\r\n\t\ttype : \"Spell\",\r\n\t\tdamage : [\"\\u2015\", \"\", \"Restrained\"],\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"1 charge; Lasts 1 hour or until exposed to sunlight, a pint of alcohol, oil of etherealness, or universal solvent\",\r\n\t\tabilitytodamage : false,\r\n\t\tuseSpellcastingAbility : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20151103_SCAG.js",
    "content": "var iFileName = \"pub_20151103_SCAG.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds all the player-material from Sword Coast Adventure Guide to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.S={\r\n\tname : \"Sword Coast Adventure Guide\",\r\n\tabbreviation : \"SCAG\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/sword-coast-adventurers-guide\",\r\n\tdate : \"2015/11/03\"\r\n};\r\n\r\n// Races\r\nRaceList[\"ghostwise halfling\"] = {\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*ghostwise).*$/i,\r\n\tname : \"Ghostwise halfling\",\r\n\tsortname : \"Halfling, Ghostwise\",\r\n\tplural : \"Ghostwise halflings\",\r\n\tsource : [[\"S\", 110]],\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Ghostwise Halfling (+2 Dexterity, +1 Wisdom)\" + (typePF ? \"\\n\" : \" \") + \"\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\" + (typePF ? \"\\n\" : \" \") + \"\\nHalfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\" + (typePF ? \"\\n\" : \" \") + \"\\nSilent Speech: I can speak telepathically to any one creature within 30 feet of me. It only understands me if we share a language.\"\r\n};\r\nRaceList[\"gray dwarf\"] = {\r\n\tregExpSearch : /^((?=.*\\bduergars?\\b)|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(grey|gray|underdark)\\b))).*$/i,\r\n\tname : \"Duergar\",\r\n\tsortname : \"Dwarf, Gray (Duergar)\",\r\n\tsource : [[\"S\", 104], [\"MToF\", 81]],\r\n\tplural : \"Duergar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\", \"Undercommon\"],\r\n\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\r\n\tsavetxt : { adv_vs : [\"charmed\", \"illusions\", \"paralyzed\", \"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (3'8\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (115 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (110 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (55 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Duergar (+2 Constitution, +1 Strength)\\nStonecunning: Whenever I make an Int (History) check related to the origin of stonework, I am considered proficient in the skill and add double my proficiency bonus to the check.\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nDuergar Magic: 3rd: Enlarge/Reduce to enlarge; 5th: Invisibility. If not in direct sunlight,\" + (!typePF ? \"\\n\" : \" \") + \"I can cast both spells on myself once per long rest without material components, using Int.\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"enlarge\" : {\r\n\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"enlarge/reduce\" : {\r\n\t\t\t\t\tname : \"Enlarge\",\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"I'm enlarged, adv. on Str checks/aves and +1d4 on weapon dmg; Can't cast this in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I cast Enlarge/Reduce while I'm not in direct sunlight, but only to enlarge myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Me and my worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Invisibility while I'm not in direct sunlight, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n// [dupl_start] Reprint from Elemental Evil Player's Companion\r\nif (!RaceList[\"deep gnome\"]) {\r\n\tRaceList[\"deep gnome\"] = {\r\n\t\tregExpSearch : /^((?=.*svirfneblin)|((?=.*\\bgnomes?\\b)(?=.*\\b(underdarks?|deep|depths?)\\b))).*$/i,\r\n\t\tname : \"Svirfneblin\",\r\n\t\tsortname : \"Gnome, Deep (Svirfneblin)\",\r\n\t\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 113]],\r\n\t\tplural : \"Svirfneblin\",\r\n\t\tsize : 4,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 15 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Gnomish\", \"Undercommon\"],\r\n\t\tvision : [[\"Darkvision\", 120]],\r\n\t\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\t\tage : \" are considered full-grown adults when they reach 25 and live 200 to 250 years\",\r\n\t\theight : \" stand between 3 and 3 1/2 feet tall (2'9\\\" + 2d4\\\")\",\r\n\t\tweight : \" weigh around 90 lb (80 + 2d4 \\xD7 1d4 lb)\",\r\n\t\theightMetric : \" stand between 90 and 105 cm tall (85 + 5d4 cm)\",\r\n\t\tweightMetric : \" weigh around 50 kg (35 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 1, 0, 2, 0, 0],\r\n\t\ttrait : \"Svirfneblin (+1 Dexterity, +2 Intelligence)\\n\\nStone Camouflage:\\n   I have advantage on Dexterity (stealth) checks to hide in rocky terrain.\"\r\n\t};\r\n} // dupl_end\r\n\r\n// Racial variants\r\nAddRacialVariant(\"half-elf\", \"aquatic\", {\r\n\tregExpSearch : /aquatic/i,\r\n\tname : \"Half-aquatic elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-aquatic elves\",\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Aquatic Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nSwimming Speed:\\n   My aquatic heritage gives me a swimming speed of 30 feet.\"\r\n});\r\nAddRacialVariant(\"half-elf\", \"cantrip\", {\r\n\tregExpSearch : /cantrip/i,\r\n\tname : \"Half-high elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-high elves\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-High Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nCantrip:\\n   I know one cantrip of my choice from the wizard spell list.\\n   Intelligence is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"High Elf Cantrip\",\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n});\r\nAddRacialVariant(\"half-elf\", \"drow magic\", {\r\n\tregExpSearch : /^(?=.*drow)(?=.*magic).*$/i,\r\n\tname : \"Half-drow\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-drow\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-drow (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nDrow Magic:\\n   I know the Dancing Lights cantrip.\\n   Once I reach 3rd level, I can cast the Faerie Fire spell once per long rest.\\n   Once I reach 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Drow Magic (level 1)\",\r\n\t\tspells : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"faerie fire\" : {\r\n\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Drow Magic (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"half-elf\", \"elf weapon training\", {\r\n\tregExpSearch : /^(?=.*\\b(elf|elven)\\b)(?=.*weapon)(?=.*training).*$/i,\r\n\tsource : [[\"S\", 116]],\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Elf (+2 Charisma and +1 to two other ability scores of my choice)\",\r\n\tweaponProfs : [false, false, [\"longsword\", \"shortsword\", \"longbow\", \"shortbow\"]]\r\n});\r\nAddRacialVariant(\"half-elf\", \"fleet of foot\", {\r\n\tregExpSearch : /^(?=.*fleet)(?=.*\\b(foot|feet)\\b).*$/i,\r\n\tname : \"Half-wood elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-wood elves\",\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Wood Elf (+2 Charisma and +1 to two other ability scores of my choice)\"\r\n});\r\nAddRacialVariant(\"half-elf\", \"mask of the wild\", {\r\n\tregExpSearch : /^(?=.*\\bmasks?\\b)(?=.*\\bwilds?\\b).*$/i,\r\n\tname : \"Half-wood elf\",\r\n\tsource : [[\"S\", 116]],\r\n\tplural : \"Half-wood elves\",\r\n\tskillstxt : \"\",\r\n\ttrait : \"Half-Wood Elf (+2 Charisma and +1 to two other ability scores of my choice)\\n\\nMask of the Wild:\\n   I can attempt to hide even when I am only lightly obscured by foliage, heavy rain, falling snow, mist, and other natural phenomena.\"\r\n});\r\nAddRacialVariant(\"tiefling\", \"devil's tongue\", {\r\n\tregExpSearch : /^(?=.*devil)(?=.*tongue).*$/i,\r\n\tname : \"Devil's tongue tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Devil's tongue tieflings\",\r\n\ttrait : \"Devil's Tongue Tiefling (+1 Intelligence, +2 Charisma)\\n\\nDevil's Tongue:\\n   I know the Vicious Mockery cantrip.\\n   At 3rd level, I can cast the Charm Person spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Enthrall spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Devil's Tongue (level 1)\",\r\n\t\tspells : [\"vicious mockery\"],\r\n\t\tselection : [\"vicious mockery\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"charm person\" : {\r\n\t\t\tname : \"Devil's Tongue (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Devil's Tongue (level 3)\",\r\n\t\t\t\tspells : [\"charm person\"],\r\n\t\t\t\tselection : [\"charm person\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"charm person\" : {\r\n\t\t\t\t\tdescription : \"2 humanoids, max 30 ft apart, save or charmed; advantage on save if I or my allies are fighting it\",\r\n\t\t\t\t\tchanges : \"Using Devil's Tongue, I cast Charm Person as if I'm using a 2nd-level spell slot, affecting 2 humanoids.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"enthrall\" : {\r\n\t\t\tname : \"Devil's Tongue (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Devil's Tongue (level 5)\",\r\n\t\t\t\tspells : [\"enthrall\"],\r\n\t\t\t\tselection : [\"enthrall\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"tiefling\", \"hellfire\", {\r\n\tregExpSearch : /hellfire/i,\r\n\tname : \"Hellfire tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Hellfire tieflings\",\r\n\ttrait : \"Hellfire Tiefling (+1 Intelligence, +2 Charisma)\\n\\nInfernal Legacy (Hellfire):\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Burning Hands spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tfeatures : {\r\n\t\t\"burning hands\" : {\r\n\t\t\tname : \"Hellfire Legacy (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Hellfire Legacy (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\tdescription : \"4d6 Fire damage; save halves; unattended flammable objects ignite\",\r\n\t\t\t\t\tchanges : \"Using Hellfire Legacy, I cast Burning Hands as if I'm using a 2nd-level spell slot, doing 4d6 Fire damage.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"darkness\" : {\r\n\t\t\tname : \"Hellfire Legacy (level 5)\",\r\n\t\t\tlimfeaname : \"Darkness\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Infernal Legacy (level 5)\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"tiefling\", \"winged\", {\r\n\tregExpSearch : /wing/i,\r\n\tname : \"Winged tiefling\",\r\n\tsource : [[\"S\", 118]],\r\n\tplural : \"Winged tieflings\",\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\ttrait : \"Winged Tiefling (+1 Intelligence, +2 Charisma)\\n\\nWings:\\n   I have bat-like wings sprouting from my shoulder blades that give me flying speed of 30 ft when I'm not wearing heavy armor.\",\r\n\tfeatures : \"\",\r\n\tspellcastingAbility : \"\",\r\n\tspellcastingBonus : \"\"\r\n});\r\nRunFunctionAtEnd(function() {\r\n\tif (!RaceList.tiefling) return;\r\n\tvar tRace = {\r\n\t\tobjname : \"feral tiefling\",\r\n\t\treplaceTraitTxt : [\"+1 Intelligence, +2 Charisma\", \"+2 Dexterity, +1 Intelligence\"],\r\n\t\treplaceNameTxt : [\"tiefling\", \"feral tiefling\"],\r\n\t\tregExpSearch : /^(?=.*feral)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\t\tname : \"Feral tiefling\",\r\n\t\tsortname : \"Tiefling, Feral\",\r\n\t\tsource : [[\"S\", 118]],\r\n\t\tplural : \"Feral tieflings\",\r\n\t\tscores : [0, 2, 0, 1, 0, 0],\r\n\t\ttrait : \"Feral Tiefling (+2 Dexterity, +1 Intelligence)\\n\\nInfernal Legacy:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Hellish Rebuke spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\"\r\n\t};\r\n\t// Create the RaceList entry\r\n\tRaceList[tRace.objname] = newObj(RaceList.tiefling);\r\n\tfor (var rFea in tRace) {\r\n\t\tif ((/objname|replaceTraitTxt|replaceNameTxt/).test(rFea)) continue;\r\n\t\tRaceList[tRace.objname][rFea] = tRace[rFea];\r\n\t};\r\n\t// Create feral tiefling variants\r\n\tRaceList[tRace.objname].variants.forEach( function(nVar) {\r\n\t\tRaceSubList[tRace.objname + \"-\" + nVar] = newObj(RaceSubList[\"tiefling-\" + nVar]);\r\n\t\tvar thisVar = RaceSubList[tRace.objname + \"-\" + nVar];\r\n\t\tthisVar.trait = thisVar.trait.replace(tRace.replaceTraitTxt[0], tRace.replaceTraitTxt[1]);\r\n\t\tthisVar.trait = thisVar.trait.replace(tRace.replaceNameTxt[0].capitalize(), tRace.replaceNameTxt[1].capitalize());\r\n\t\tthisVar.name = thisVar.name.replace(tRace.replaceNameTxt[0], tRace.replaceNameTxt[1]);\r\n\t\tthisVar.plural = thisVar.plural.replace(tRace.replaceNameTxt[0], tRace.replaceNameTxt[1]);\r\n\t});\r\n});\r\n\r\n// Subclasses\r\nAddSubClass(\"barbarian\", \"battlerager\", {\r\n\tregExpSearch : /(battlerager|kuldjargh)/i,\r\n\tsubname : \"Path of the Battlerager\",\r\n\tsubnameShort: \"Battlerager\",\r\n\tfullname : \"Battlerager\",\r\n\tsource : [[\"S\", 121]],\r\n\tabilitySave : 6,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Battlerager Armor\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with spiked armor both as an armor and as a weapon\",\r\n\t\t\t\t\"As a bonus action while raging, I can attack once with my armor spikes\",\r\n\t\t\t\t\"With my spiked armor I do 3 piercing damage when I use my Attack action to grapple\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Armor Spikes attack (in rage)\"]],\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?!.*(dragon|draconic|beast))(?=.*spike(d|s))(?=.*armou?r).*$/i,\r\n\t\t\t\tname : \"Spiked armor\",\r\n\t\t\t\tsource : [[\"S\", 121]],\r\n\t\t\t\ttype : \"medium\",\r\n\t\t\t\tac : 14,\r\n\t\t\t\tstealthdis : true,\r\n\t\t\t\tweight : 45\r\n\t\t\t}],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*armou?r)(?=.*spike).*$/i,\r\n\t\t\t\tname : \"Armor spikes\",\r\n\t\t\t\tsource : [[\"S\", 121]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"armor spikes\",\r\n\t\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Does 3 piercing damage when grappling during my Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tweaponProfs : [false, false, [\"armor spikes\"]],\r\n\t\t\teval : function() {\r\n\t\t\t\tAddString('Proficiency Armor Other Description', 'Spiked Armor', ', ');\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tRemoveString('Proficiency Armor Other Description', 'Spiked Armor');\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Reckless Abandon\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"If I use Reckless Attack during rage, I also gain temporary HP equal to my Con mod\")\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Battlerager Charge\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"As a bonus action while raging, I can use the Dash action\"),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spiked Retribution\",\r\n\t\t\tsource : [[\"S\", 121]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I'm hit in melee by an attacker within 5 ft, it takes 3 piercing damage\",\r\n\t\t\t\t\"This only works while I'm wearing spiked armor, in rage, and I'm not incapacitated\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"arcana domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(arcana|magic|wizardry)).*$/i,\r\n\tsubname : \"Arcana Domain\",\r\n\tsource : [[\"S\", 125]],\r\n\tspellcastingExtra : [\"detect magic\", \"magic missile\", \"magic weapon\", \"nystul's magic aura\", \"dispel magic\", \"magic circle\", \"arcane eye\", \"leomund's secret chest\", \"planar binding\", \"teleportation circle\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Arcane Initiate\",\r\n\t\t\tsource : [[\"S\", 125]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with Arcana and two wizard cantrips that count as cleric cantrips\"),\r\n\t\t\tskills : [\"Arcana\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Initiate\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Arcane Abjuration\",\r\n\t\t\tsource : [[\"S\", 125]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, one celestial, elemental, fey, or fiend within 30 ft must make a Wis save\",\r\n\t\t\t\t\"If it fails and is able to see/hear me, it is turned for 1 min or until it takes damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\",\r\n\t\t\t\t\"If its CR is low enough and it is not on its home plane, it is banished for 1 min instead\",\r\n\t\t\t\t\"Banished: sent to home plane, reappearing where it was if the effect ends before 1 min\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"CR 1/2 or lower\", \"CR 1/2 or lower\", \"CR 1/2 or lower\", \"CR 1 or lower\", \"CR 1 or lower\", \"CR 1 or lower\", \"CR 2 or lower\", \"CR 2 or lower\", \"CR 2 or lower\", \"CR 3 or lower\", \"CR 3 or lower\", \"CR 3 or lower\", \"CR 4 or lower\", \"CR 4 or lower\", \"CR 4 or lower\", \"CR 4 or lower\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spell Breaker\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I restore HP to an ally with a 1st-level or higher spell, I can also end one spell\",\r\n\t\t\t\t\"The chosen spell on the ally ends if it is equal or lower level to the spell slot level used\",\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"mass heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = \"Heal 700 hp, split over crea in range; also cures blindness, deafness, and all diseases; spell breaker\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"power word heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/heals all.*/i, \"full hp; no longer charmed, frightened, paralyzed, stunned; can stand up as rea; spell breaker\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"goodberry\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Create \", \"\").replace(\"lose potency after \", \"remain\");\r\n\t\t\t\t\t\t\tcase \"regenerate\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\" for rest of duration\", \"\");\r\n\t\t\t\t\t\t\tcase \"heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"all diseases\", \"diseases\");\r\n\t\t\t\t\t\t\tcase \"cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"healing word\" :\r\n\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\tcase \"mass cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"mass healing word\" :\r\n\t\t\t\t\t\t\tcase \"prayer of healing\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/creatures?/i, \"crea\").replace(\"within\", \"in\").replace(\"spellcasting ability modifier\", \"spellcasting ability mod\") + \"; spell breaker\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast a spell that restores hit points to another creature than myself, I can also end a spell affecting the target. This spell can be of the same level of the spell slot used to cast the healing spell, or lower.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Arcane Mastery\",\r\n\t\t\tsource : [[\"S\", 126]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add four wizards spells, a 6th, 7th, 8th, and 9th-level spell, to my domain spells\",\r\n\t\t\t\t\"As any domain spell, these spells are automatically prepared and count as cleric spells\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Mastery (6)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [6, 6],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (7)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [7, 7],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (8)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [8, 8],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Arcane Mastery (9)\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [9, 9],\r\n\t\t\t\tfirstCol : 'markedbox'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"purple dragon knight\", {\r\n\tregExpSearch : /^(((?=.*purple)(?=.*dragon)(?=.*knight))|(?=.*banneret)).*$/i,\r\n\tsubname : \"Purple Dragon Knight\",\r\n\tsubnameShort : \"Purple Dragon\",\r\n\tfullname : \"Purple Dragon Knight\",\r\n\tsource : [[\"S\", 128]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Rallying Cry\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When I use Second Wind, I also heal three allies within 60 ft that can see or hear me\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n + \" HP\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Second Wind (+Rallying Cry)\", \"Second Wind\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Royal Envoy\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the Persuasion skill and I gain expertise with the Persuasion skill\",\r\n\t\t\t\t\"If already proficient, I can choose Animal Handling, Insight, Intimidation, or Performance\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Persuasion proficiency and expertise; If already proficient, choose one from Animal Handling, Insight, Intimidation, or Performance\",\r\n\t\t\tskills : [\"Persuasion\", \"full\"]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Inspiring Surge\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my Action Surge, I can inspire an ally within 60 ft that can see or hear me\",\r\n\t\t\t\t\"The ally can then use its reaction to make one melee or ranged weapon attack\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n < 18 ? \"1 ally\" : \"2 allies\"; // level 18 per errata\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Bulwark\",\r\n\t\t\tsource : [[\"S\", 128]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Indomitable to reroll a Int, Wis, or Cha save, I can extend it to an ally\",\r\n\t\t\t\t\"The ally can reroll its failed saving throw against the same effect and take the result\",\r\n\t\t\t\t\"It only works if not incapacitated and the ally is within 60 ft and can see or hear me\",\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the long death\", {\r\n\tregExpSearch : /^(?=.*\\blong)(?=.*\\b(death|dead))((?=.*(monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Long Death\",\r\n\tsubnameShort: \"Long Death\",\r\n\tsource : [[\"S\", 130]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Touch of Death\",\r\n\t\t\tsource : [[\"S\", 130]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"If I reduce someone within 5 ft to 0 HP, I gain Wis mod + monk level temporary HP\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hour of Reaping\",\r\n\t\t\tsource : [[\"S\", 130]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures within 30 feet of me must make a Wisdom saving throw\",\r\n\t\t\t\t\"On a failed save the creature is frightened until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Mastery of Death\",\r\n\t\t\tsource : [[\"S\", 131]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tadditional : \"1 ki point\",\r\n\t\t\tdescription : desc(\"When I'm reduced to 0 HP, I can expend 1 ki point to have 1 HP instead\"),\r\n\t\t\t\"touch of the long death\" : {\r\n\t\t\t\tname : \"Touch of the Long Death\",\r\n\t\t\t\textraname : \"Way of the Long Death 17\",\r\n\t\t\t\tsource : [[\"S\", 131]],\r\n\t\t\t\tadditional: \"1-10 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a target within 5 ft takes 2d10 necrotic damage per ki point I spent\",\r\n\t\t\t\t\t\"It can make a Constitution saving throw to half the damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"touch of the long death\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the sun soul\", {\r\n\tregExpSearch : /^(?=.*\\bsun)(?=.*\\b(soul|spirit))((?=.*(warrior|monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Sun Soul\",\r\n\tsubnameShort: \"Sun Soul\",\r\n\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional : \"1 ki point for 2 extra attacks\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a ranged spell attack that I can use as an attack in the Attack action\",\r\n\t\t\t\t\"If I do this and spend 1 ki point, I can make 2 of these attacks as a bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (2\\xD7 with Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*radiant)(?=.*(sun|light))(?=.*bolt).*$/i,\r\n\t\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 4, \"radiant\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"If used in an Attack action, spend 1 ki point to use it twice as a bonus action\",\r\n\t\t\t\tmonkweapon : true,\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"searing arc strike\" : {\r\n\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\textraname : \"Way of the Sun Soul 6\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"After taking the Attack action, I can cast Burning Hands as a bonus action [PHB 220]\",\r\n\t\t\t\t\t\"For every additional ki point I spend, Burning hands is cast at 1 higher spell level\",\r\n\t\t\t\t\t\"The maximum total ki points I can spend for this (including the 2) is half my Monk level\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\t\tvar xtrKi = Math.max(0,Math.floor(n/2) - 2);\r\n\t\t\t\t\treturn \"2 ki points + max \" + xtrKi + \" ki point\" + (xtrKi == 1 ? \"\" : \"s\");\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (after Attack action)\"]],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tdescription : \"3d6+1d6/extra Ki Fire dmg; save halves; unattended flammable objects ignite (ki max 1/2 monk lvl)\",\r\n\t\t\t\t\t\tchanges : \"After I use the Attack action, I can cast Burning Hands as a bonus action by spending 2 ki points. I can even spend additional ki points to increase its spell level. The total amount of ki points I can spend on it is half my monk level.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"searing arc strike\",\r\n\t\t\t\tminlevel : 6\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Searing Sunburst\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, anyone in a 20-ft radius light on a point within 150 ft makes a Con save\",\r\n\t\t\t\t\"If failed and not behind opaque total cover, take 2d6 (+ 2d6/ki point) radiant damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : \"0 ki points + max 3 ki points\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*searing)(?=.*sunburst).*$/i,\r\n\t\t\t\tname : \"Searing Sunburst\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [2, 6, \"radiant\"],\r\n\t\t\t\trange : \"150 ft\",\r\n\t\t\t\tdescription : \"All in 20-ft radius; Con save - success no damage; +2d6 damage per ki point (max 3 ki)\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : \"monk\",\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sun Shield\",\r\n\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, when I'm hit by a melee attack, I can deal 5 + Wis mod radiant damage\",\r\n\t\t\t\t\"I can only do this while my light aura is on; I can turn it on/off as a bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start/stop)\"], [\"reaction\", \" (hit in melee)\"]],\r\n\t\t\tadditional : \"30-ft rad bright + 30-ft dim light\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the crown\", {\r\n\tregExpSearch : /^(?=.*(crown|king|country))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))).*$/i,\r\n\tsubname : \"Oath of the Crown\",\r\n\tsubnameShort: \"Crown\",\r\n\tsource : [[\"S\", 133]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Champion Challenge\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have any chosen creatures within 30 ft of me make a Wis save\",\r\n\t\t\t\t\"If failed, a target is unable to willingly move more than 30 ft away from me\",\r\n\t\t\t\t\"The effect ends if I'm incapacitated, die, or it is moved more than 30 ft away from me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]], // changed to bonus action per errata (v1.0, 2017)\r\n\t\t\tspellcastingExtra : [\"command\", \"compelled duel\", \"warding bond\", \"zone of truth\", \"aura of vitality\", \"spirit guardians\", \"banishment\", \"guardian of faith\", \"circle of power\", \"geas\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Turn the Tide\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, any chosen creatures within 30 ft that can hear me regains HP\",\r\n\t\t\t\t\"Each regain 1d6 + my Charisma modifier HP, up to half of its total HP\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Divine Allegiance\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature within 5 feet of me takes damage, I can substitute my HP for it\",\r\n\t\t\t\t\"The creature takes no damage and I take all of it; this damage can't be prevented\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Unyielding Spirit\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"I have advantage on saving throws against effects that paralyze or stun\"),\r\n\t\t\tsavetxt : { adv_vs : [\"paralyzed\", \"stunned\"] }\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Exalted Champion\",\r\n\t\t\tsource : [[\"S\", 133]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I gain the following benefits for 1 hour or until I'm incapacitated:\",\r\n\t\t\t\t\" \\u2022 \" + \"Resistance to bludgeoning, piercing, and slashing damage from nonmagical weapons\",\r\n\t\t\t\t\" \\u2022 \" + \"My allies within 30 ft of me and I have advantage on Wisdom and Death saves\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"mastermind\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*(mastermind|strategist)).*$/i,\r\n\tsubname : \"Mastermind\",\r\n\tfullname : \"Mastermind\",\r\n\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Master of Intrigue\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with disguise kits, forgery kits, one gaming set, and two languages\",\r\n\t\t\t\t\"I can mimic speech patterns and accents if I've heard them for at least 1 minute\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [2],\r\n\t\t\ttoolProfs : [\"Disguise kit\", \"Forgery kit\", [\"Gaming set\", 1]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Master of Tactics\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use the Help action as a bonus action\",\r\n\t\t\t\t\"This even works if the ally attacks a target within 30 ft of me that can see or hear me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Insightful Manipulator\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By spending 1 minute observing/interacting outside of combat I can learn capabilities\",\r\n\t\t\t\t\"The DM tells me if the target is my equal, superior, or inferior in regard to two things:\",\r\n\t\t\t\t\" - Intelligence score    - Wisdom score    - Charisma score    - Class levels (if any)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Misdirection\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, I can redirect an attack meant for me to a creature within 5 ft of me\",\r\n\t\t\t\t\"This only works if the creature is providing me with cover against the attack\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Soul of Deceit\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My thoughts can't be read by telepathy or similar means; I can project false thoughts\",\r\n\t\t\t\t\"For that, I must pass a Cha (Deception) vs. Wis (Insight) check to fool the mind reader\",\r\n\t\t\t\t\"Magic always determines I'm truthful; I can't be magically compelled to tell the truth\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"swashbuckler\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*swashbuckl).*$/i,\r\n\tsubname : \"Swashbuckler\",\r\n\tfullname : \"Swashbuckler\",\r\n\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fancy Footwork\",\r\n\t\t\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Enemies I make a melee attack against in my turn can't use opportunity attacks on me\",\r\n\t\t\t\t\"This lasts until the end of my current turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rakish Audacity\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I don't need advantage to sneak attack if my target is the only one within 5 ft of me\",\r\n\t\t\t\t\"I still can't sneak attack if I have disadv.; I add my Charisma modifier to initiative rolls\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Cha|0)\", text : \"I can add my Charisma modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Panache\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can beguile a creature that hears and understands me, for 1 minute\",\r\n\t\t\t\t\"It must succeed a Wis (Insight) check opposed by my Cha (Persuasion) or be affected as:\",\r\n\t\t\t\t\"\\u2022 A hostile target gains disadv. on attacks and can't do opportunity attacks vs. not-me\",\r\n\t\t\t\t\"  This effect ends if an ally attacks or casts a spell vs. it, or if it and I are 60 ft apart\",\r\n\t\t\t\t\"\\u2022 Targets that are not hostile are charmed and regard me as a friendly acquaintance\",\r\n\t\t\t\t\"  This effect ends if me or an ally do anything harmful to it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Elegant Maneuver\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc(\"As a bonus action, I can gain adv. on my next Dex (Acrobatics) or Str (Athletics) check\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Master Duelist\",\r\n\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"Once per short rest, when I miss with an attack roll, I can roll again with advantage\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"storm sorcery\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))((?=.*(storm|tempest|hurricane))|((?=.*air)(?=.*element))).*$/i,\r\n\tsubname : \"Storm Sorcery\",\r\n\tfullname : \"Storm Sorcerer\",\r\n\tsource : [[\"S\", 137], [\"X\", 51]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Wind Speaker\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I can speak, read, and write Primordial (and its dialects Aquan, Auran, Ignan, Terran)\"),\r\n\t\t\tlanguageProfs : [\"Primordial\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Tempestuous Magic\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, before or after casting a 1st-level or higher spell, I can fly 10 ft\",\r\n\t\t\t\t\"This movement doesn't provoke opportunity attacks as whirling gust of air surround me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with casting)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Heart of the Storm\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to lightning and thunder damage\",\r\n\t\t\t\t\"When I start casting a 1st-level or higher spell that deals lightning or thunder damage,\",\r\n\t\t\t\t\"I deal lightning or thunder damage to creatures of my choice that I can see within 10 ft\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : Math.floor(n/2) + \" damage\"; }),\r\n\t\t\tdmgres : [\"Lightning\", \"Thunder\"]\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Storm Guide\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can stop rain around me in 20-ft radius; bonus action for it to resume\",\r\n\t\t\t\t\"As a bonus action, I can choose the direction of wind around me in a 100-ft radius\",\r\n\t\t\t\t\"This lasts until the end of my next turn and doesn't alter the wind's speed\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Storm's Fury\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when hit by a melee attack, I can deal lightning damage to the attacker\",\r\n\t\t\t\t\"The attacker must also make a Strength save or be pushed up to 20 ft away from me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : n + \" lightning damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Wind Soul\",\r\n\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have immunity to lightning and thunder damage and gain magical 60 ft fly speed\",\r\n\t\t\t\t\"As an action, I reduce my fly speed to 30 ft and give allies 30 ft fly speed for 1 hour\",\r\n\t\t\t\t\"I can do this once per short rest for up to 3 + my Charisma modifier allies within 30 ft\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tsavetxt : { immune : [\"lightning\", \"thunder\"] },\r\n\t\t\tspeed : { fly : { spd : \"fixed 60\", enc : \"fixed 60\" } },\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the undying\", {\r\n\tregExpSearch : /^(?!.*light)(?=.*warlock)(?=.*(immortal|undying|neverending|unending)).*$/i,\r\n\tsubname : \"the Undying\",\r\n\tsource : [[\"S\", 139]],\r\n\tspellcastingExtra : [\"false life\", \"ray of sickness\", \"blindness/deafness\", \"silence\", \"feign death\", \"speak with dead\", \"aura of life\", \"death ward\", \"contagion\", \"legend lore\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Among the Dead\",\r\n\t\t\tsource : [[\"S\", 139]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Spare the Dying cantrip and gain advantage on saving throws vs. diseases\",\r\n\t\t\t\t\"If an undead targets me directly with an attack or spell, it must make a Wisdom save\",\r\n\t\t\t\t\"On a fail, it must choose a new target or forfeit its attack or harmful spell\",\r\n\t\t\t\t\"On a success or if I attack or cast a harmful spell on it, it is immune for 24 hours\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"disease\"] },\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Among the Dead\",\r\n\t\t\t\tspells : [\"spare the dying\"],\r\n\t\t\t\tselection : [\"spare the dying\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Defy Death\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I regain 1d8 + my Constitution modifier in HP when I succeed on a Death saving throw\",\r\n\t\t\t\t\"I also regain this amount whenever I use Spare the Dying to stabilize a creature\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Undying Nature\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can hold my breath indefinitely; I don't require food, water, or sleep (I still need rest)\",\r\n\t\t\t\t\"I age more slowly, only 1 year for every 10 years that pass; I can't be magically aged\",\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Indestructible Life\",\r\n\t\t\tsource : [[\"S\", 140]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"As a bonus action, I can regain HP and reattach severed body parts\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : \"1d8 + \" + n + \" HP\"; })\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"bladesinging\", {\r\n\tregExpSearch : /(bladesinging|bladesinger)/i,\r\n\tsubname : \"Tradition of Bladesinging\",\r\n\tsubnameShort: \"Bladesinging\",\r\n\tfullname : \"Bladesinger\",\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Training in War and Song\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain proficiency with light armor, a one-handed melee weapon, and Performance\"),\r\n\t\t\tarmorProfs : [true, false, false, false],\r\n\t\t\tskills : [\"Performance\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Bladesong\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can start the bladesong for 1 minute; I can dismiss it at any time\",\r\n\t\t\t\t\"It stops when I wear a shield, medium or heavy armor, or attack with two hands\",\r\n\t\t\t\t\"While the bladesong is active I have the following benefits:\",\r\n\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to AC\",\r\n\t\t\t\t\" \\u2022 Base walking speed increases by 10 foot\",\r\n\t\t\t\t\" \\u2022 Advantage on Dexterity (Acrobatics) checks\",\r\n\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to concentration saves for maintaining conc. on a spell\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start)\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Extra Attack\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can attack twice instead of once when I take the Attack action on my turn\",\r\n\t\t\t\t\"Moreover, I can cast one of my cantrips in place of one of those attacks\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Song of Defense\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while my bladesong is active, I can expend a spell slot to reduce damage\",\r\n\t\t\t\t\"The damage I take is reduced by 5 for every level of the spell slot I expend\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in bladesong)\"]]\r\n\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Song of Victory\",\r\n\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"While my bladesong is active, I add my Int mod (min 1) to melee weapon attack damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/blade.?song/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(1, Number(What('Int Mod')));\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Bladesong' in the name or description of a melee weapon, it gets my Intelligence modifier added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// New Totem Warrior options\r\nif (ClassSubList[\"barbarian-totem warrior\"]) {\r\n\tvar SCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature3.1\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Elk Spirit\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"While raging without heavy armor, my base walking speed increases by 15 ft\")\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Tiger Spirit\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"While raging, I can add 10 ft to my long jump and 3 ft to my high jump distance\")\r\n\t\t});\r\n\t}\r\n\tSCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature6\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Aspect of the Elk\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While mounted or on foot and not incapacitated, my travel pace is doubled\",\r\n\t\t\t\t\"I can extend this benefit to up to ten companions, while they are within 60 ft of me\"\r\n\t\t\t])\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Aspect of the Tiger\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription: desc(\"I gain proficiency with two skills chosen from: Athletics, Acrobatics, Stealth, or Survival\"),\r\n\t\t\tskillstxt : \"Choose two from Athletics, Acrobatics, Stealth, and Survival\"\r\n\t\t});\r\n\t}\r\n\tSCAG_TotemWarriorFeature = ClassSubList[\"barbarian-totem warrior\"].features[\"subclassfeature14\"];\r\n\tif (SCAG_TotemWarriorFeature) {\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Elk\", {\r\n\t\t\tname : \"Elk Attunement\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can move through a Large or smaller creature's space\",\r\n\t\t\t\t\"It must make a Strength save of DC 8 + Strength modifier + Proficiency bonus\",\r\n\t\t\t\t\"If failed, it is knocked prone and takes 1d12 + Strength modifier bludgeoning damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t});\r\n\t\tAddFeatureChoice(SCAG_TotemWarriorFeature, false, \"Tiger\", {\r\n\t\t\tname : \"Tiger Attunement\",\r\n\t\t\tsource : [[\"S\", 122]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can make a melee weapon attack on these conditions:\",\r\n\t\t\t\t\" \\u2022 I move at least 20 ft in a straight line towards the target that is Large or smaller\",\r\n\t\t\t\t\" \\u2022 I make a melee weapon attack against it after the bonus action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\r\n\t\t});\r\n\t}\r\n}\r\n\r\n// Backgrounds\r\nBackgroundList[\"far traveler\"] = {\r\n\tregExpSearch : /^(?=.*far)(?=.*traveler).*$/i,\r\n\tname : \"Far Traveler\",\r\n\tsource : [[\"S\", 148], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Perception\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Gaming set or musical instrument\", \"\", \"\"],\r\n\t\t[\"Poorly wrought maps\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Piece of jewelry worth 10 gp\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"All Eyes on You\",\r\n\ttrait : [\r\n\t\t\"I have different assumptions from those around me concerning personal space, blithely invading others' space in innocence, or reacting to ignorant invasion of my own.\",\r\n\t\t\"I have my own ideas about what is and is not food, and I find the eating habits of those around me fascinating, confusing, or revolting.\",\r\n\t\t\"I have a strong code of honor or sense of propriety that others don't comprehend.\",\r\n\t\t\"I express affection or contempt in ways that are unfamiliar to others.\",\r\n\t\t\"I honor my deities through practices that are foreign to this land.\",\r\n\t\t\"I begin or end my day with small traditional rituals that are unfamiliar to those around me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Open\",\r\n\t\t\t\"Open: I have much to learn from the kindly folk I meet along my way. (Good)\"\r\n\t\t],\r\n\t\t[\"Reserved\",\r\n\t\t\t\"Reserved: As someone new to these strange lands, I am cautious and respectful in my dealings. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Adventure\",\r\n\t\t\t\"Adventure: I'm far from home, and everything is strange and wonderful! (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Cunning\",\r\n\t\t\t\"Cunning: Though I may not know their ways, neither do they know mine, which can be to my advantage. (Evil)\"\r\n\t\t],\r\n\t\t[\"Inquisitive\",\r\n\t\t\t\"Inquisitive: Everything is new, but I have a thirst to learn. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Suspicious\",\r\n\t\t\t\"Suspicious: I must be careful, for I have no way of telling friend from foe here. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"So long as I have this token from my homeland, I can face any adversity in this strange land.\",\r\n\t\t\"The gods of my people are a comfort to me so far from home.\",\r\n\t\t\"I hold no greater cause than my service to my people.\",\r\n\t\t\"My freedom is my most precious possession. I'll never let anyone take it from me again.\",\r\n\t\t\"I'm fascinated by the beauty and wonder of this new land.\",\r\n\t\t\"Though I had no choice, I lament having to leave my loved one(s) behind. I hope to see them again one day.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I am secretly (or not so secretly) convinced of the superiority of my own culture over that of this foreign land.\",\r\n\t\t\"I pretend not to understand the local language in order to avoid interactions I would rather not have.\",\r\n\t\t\"I have a weakness for the new intoxicants and other pleasures of this land.\",\r\n\t\t\"I don't take kindly to some of the actions and motivations of the people of this land, because these folk are different from me.\",\r\n\t\t\"I consider the adherents of other gods to be deluded innocents at best, or ignorant fools at worst.\",\r\n\t\t\"I have a weakness for the exotic beauty of the people of these lands.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Why You Are Here\",\r\n\t\t\"Emissary\",\r\n\t\t\"Exile\",\r\n\t\t\"Fugitive\",\r\n\t\t\"Pilgrim\",\r\n\t\t\"Sightseer\",\r\n\t\t\"Wanderer\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"modest\"\r\n};\r\n\r\n// Background variants\r\nAddBackgroundVariant(\"soldier\", \"city watch\", {\r\n\tregExpSearch : /^(?=.*city)(?=.*(watch|guard)).*$/i,\r\n\tname : \"City Watch\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Insight\"],\r\n\tequipright : [\r\n\t\t[\"Uniform of my unit\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Horn\", \"\", 2],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Watcher's Eye\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"clan crafter\", {\r\n\tregExpSearch : /^(?=.*clan)(?=.*(crafter|smith|builder|miner)).*$/i,\r\n\tname : \"Clan Crafter\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Insight\"],\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Maker's mark chisel\", \"\", 0.5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins and 10 gp gem)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Respect of the Stout Folk\",\r\n\textra : \"\",\r\n\tlanguageProfs : [\"Dwarvish\"],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"sage\", \"cloistered scholar\", {\r\n\tregExpSearch : /^(?=.*cloistered)(?=.*scholar).*$/i,\r\n\tname : \"Cloistered Scholar\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]],\r\n\tskills : [\"History\"],\r\n\tskillstxt : \"History and choose one from Arcana, Nature, and Religion\",\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Quill\", \"\", \"\"],\r\n\t\t[\"Parchment, sheets of\", 1, \"\"],\r\n\t\t[\"Small penknife\", \"\", 0.5],\r\n\t\t[\"Borrowed book\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Scholar's robes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Library Access\",\r\n\textra : [\"Name your Library\"],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"guild artisan\", \"courtier\", {\r\n\tregExpSearch : /courtier/i,\r\n\tname : \"Courtier\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Persuasion\"],\r\n\tgold : 5,\r\n\tequipleft : \"\",\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Court Functionary\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"acolyte\", \"faction agent\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*(faction|harper|order of the gauntlet|emerald enclave|lord.?s alliance|zhentarim)).*$/i,\r\n\tname : \"Faction Agent\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\"],\r\n\tskillstxt : \"Insight and choose one Intelligence, Wisdom, or Charisma skill\",\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Copy of seminal faction's text\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Badge or emblem of faction\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Safe Haven\",\r\n\textra : [\r\n\t\t\"Select a Faction\",\r\n\t\t\"The Harpers\",\r\n\t\t\"The Order of the Gauntlet\",\r\n\t\t\"The Emerald Enclave\",\r\n\t\t\"The Lord's Alliance\",\r\n\t\t\"The Zhentarim\"\r\n\t],\r\n\tlanguageProfs : [2],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"folk hero\", \"inheritor\", {\r\n\tregExpSearch : /inheritor/i,\r\n\tname : \"Inheritor\",\r\n\tsource : [[\"S\", 150], [\"ALbackground\", 0]],\r\n\tskills : [\"Survival\"],\r\n\tskillstxt : \"Survival and choose one from Arcana, History, and Religion\",\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Gaming set or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"The inheritance\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Inheritance\",\r\n\textra : [\r\n\t\t\"Select an Inheritance\",\r\n\t\t\"Document such as a map, letter, or journal\",\r\n\t\t\"A trinket\",\r\n\t\t\"Article of clothing\",\r\n\t\t\"Piece of jewelry\",\r\n\t\t\"Arcane book or formulary\",\r\n\t\t\"Written story, song, poem, or secret\",\r\n\t\t\"Tattoo or other body marking\"\r\n\t],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n});\r\nAddBackgroundVariant(\"soldier\", \"investigator\", {\r\n\tregExpSearch : /investigator/i,\r\n\tname : \"Investigator\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Investigation\"],\r\n\tequipright : [\r\n\t\t[\"Uniform\", \"\", 3],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Horn\", \"\", 2],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Watcher's Eye\",\r\n\textra : \"\",\r\n\ttoolProfs : \"\",\r\n\tlanguageProfs : [2]\r\n});\r\nAddBackgroundVariant(\"soldier\", \"knight of the order\", {\r\n\tregExpSearch : /^(?=.*knight)(?=.*order).*$/i,\r\n\tname : \"Knight of the Order\",\r\n\tsource : [[\"S\", 151], [\"ALbackground\", 0]],\r\n\tskills : [\"Persuasion\"],\r\n\tskillstxt : \"Persuasion and choose one from Arcana, History, Nature, and Religion\",\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Signet, banner, or seal of rank\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Knightly Regard\",\r\n\textra : [\"Name your Knightly Order\"],\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"comfortable\"\r\n});\r\nAddBackgroundVariant(\"soldier\", \"mercenary veteran\", {\r\n\tregExpSearch : /^(?=.*mercenary)(?=.*(veteran|soldier)).*$/i,\r\n\tname : \"Mercenary Veteran\",\r\n\tsource : [[\"S\", 152], [\"ALbackground\", 0]],\r\n\tskills : [\"Athletics\", \"Persuasion\"],\r\n\tequipright : [\r\n\t\t[\"Uniform of my company\", \"\", 4],\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Gaming set\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Mercenary Life\",\r\n\textra : [\"Name your Mercenary Company\"],\r\n\tlifestyle : \"modest\"\r\n});\r\nAddBackgroundVariant(\"criminal\", \"urban bounty hunter\", {\r\n\tregExpSearch : /^(?=.*urban)(?=.*bounty)(?=.*hunter).*$/i,\r\n\tname : \"Urban Bounty Hunter\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]],\r\n\tskills : \"\",\r\n\tskillstxt : \"Choose two from Deception, Insight, Persuasion, and Stealth\",\r\n\tgold : 20,\r\n\tequipright : [\r\n\t\t[\"Appropriate Clothes\", \"\", 3],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Ear to the Ground\",\r\n\textra : \"\",\r\n\ttoolProfs : [[\"Gaming set, instrument, or thieves' tools\", 2]],\r\n\tlifestyle : \"poor\"\r\n});\r\nAddBackgroundVariant(\"outlander\", \"uthgardt tribe member\", {\r\n\tregExpSearch : /^(?=.*(uthgardt|barbarian|nomad|clan))(?=.*tribe)(?=.*member).*$/i,\r\n\tname : \"Uthgardt Tribe Member\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Hunting trap\", \"\", 25],\r\n\t\t[\"Totemic token or tattoos of tribal totem\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Uthgardt Heritage\",\r\n\textra : \"\",\r\n\ttoolProfs : [[\"Artisan's tools or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"poor\"\r\n});\r\nAddBackgroundVariant(\"noble\", \"waterdhavian noble\", {\r\n\tregExpSearch : /^(?=.*(waterdhavian|waterdeep))(?=.*noble).*$/i,\r\n\tname : \"Waterdhavian Noble\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]],\r\n\tgold : 20,\r\n\tequipleft : [\r\n\t\t[\"Scroll of pedigree\", \"\", \"\"],\r\n\t\t[\"Skin of fine zzar or wine\", \"\", 5] // weight based on waterskin\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Signet ring or brooch\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Kept in Style\",\r\n\ttoolProfs : [[\"Gaming set or musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tlifestyle : \"wealthy\"\r\n});\r\n\r\n// Background features\r\nBackgroundFeatureList[\"court functionary\"] = {\r\n\tdescription : \"My knowledge of how bureaucracies function lets me gain access to the records and inner workings of any noble court or government I encounter. I know or can easily acquire the knowledge who the movers and shakers are, whom to go to for the favors I seek, and what the current intrigues of interest in the group are.\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"all eyes on you\"] = {\r\n\tdescription : \"My accent, mannerisms, figures of speech all mark me as foreign. Curious glances are directed my way wherever I go. A nuisance, but I also gain the friendly interest of the curious. I can parley this attention into access I might not otherwise have, for me and my companions. Nobles, scholars, merchants, and guilds, might be among the interested.\",\r\n\tsource : [[\"S\", 149], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ear to the ground\"] = {\r\n\tdescription : \"I am in frequent contact with people in my chosen segment of society. These people might be associated with the criminal underworld, the rough-and-tumble folk of the streets, or members of high society. This connection comes in the form of a contact in any city I visit, a person who provides information about the people and places of the local area.\",\r\n\tsource : [[\"S\", 153], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"inheritance\"] = {\r\n\tdescription : \"The item I inherited has a special significance, history, power, and/or important value. When I begin my adventuring career, I can decide whether to tell my companions about it right away. Rather than attracting attention to myself, I could decide to keep it a secret until I learn more about what it means to me and what it can do for me.\",\r\n\tsource : [[\"S\", 150], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"kept in style\"] = {\r\n\tdescription : \"While I am in Waterdeep or elsewhere in the North my house sees to my everyday needs. My name and signet are sufficient to cover most of my expenses; the inns, taverns, and festhalls I frequent are glad to record my debt and send an accounting to my family's estate. This advantage enables me to take 2 gp of my daily lifestyle costs down to 0 gp.\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"knightly regard\"] = {\r\n\tdescription : \"I receive shelter and succor from members of my knightly order and its sympathizers. Religious knightly orders get aid from temples and communities of my deity. Civic order knights get help from the community they serve. Philosophical order knights can find help from those they have aided in pursuit of their ideals, and those who share those ideals.\",\r\n\tsource : [[\"S\", 151], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"library access\"] = {\r\n\tdescription : \"I have free access to most of the library I work at, though it might have repositories of lore that are too valuable, magical, or secret to permit anyone immediate access. I have a working knowledge of my cloister's personnel and bureaucracy, and I know how to navigate those connections. I am likely to gain preferential treatment at other libraries.\",\r\n\tsource : [[\"S\", 146], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"mercenary life\"] = {\r\n\tdescription : \"I know the mercenary life well. I am able to identify mercenary company emblems, and I know a little about any such company, including the leaders, reputation, and who hired them recently. I can find the locales where mercenaries abide anywhere, as long as I speak the language. My mercenary work between adventures affords me a comfortable lifestyle.\",\r\n\tsource : [[\"S\", 152], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"respect of the stout folk\"] = {\r\n\tdescription : \"No one esteems clan crafters quite so highly as dwarves do. I always have free room and board in any place where shield dwarves or gold dwarves dwell, and the individuals in such a settlement might vie among themselves to determine who can offer me (and possibly my compatriots) the finest accommodations and assistance.\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"safe haven\"] = {\r\n\tdescription : \"As a faction agent, I have access to a secret network of support and operatives who can provide assistance on my adventures. I know secret signs and passwords to identify such operatives, who can provide me with access to a hidden safe house, free room and board, or assistance in finding information. These agents never risk their lives or identity for me.\",\r\n\tsource : [[\"S\", 147], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"uthgardt heritage\"] = {\r\n\tdescription : \"I have an excellent knowledge of my tribe's territory, and surrounding terrain and natural resources. I am familiar enough with any wilderness area that I can find twice as much food and water as one normally would. I can call upon the hospitality of my people, and those allied, often including members of druid circles, nomadic elves, and priesthoods.\",\r\n\tsource : [[\"S\", 154], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"watcher's eye\"] = {\r\n\tdescription : \"My experience in enforcing the law, and dealing with lawbreakers, gives me a feel for local laws and criminals. I can easily find the local outpost of the watch, guards or a similar organization, and just as easily pick out the dens of criminal activity in a community. I am far more likely to be welcome in the former locations rather than the latter, however.\",\r\n\tsource : [[\"S\", 145], [\"ALbackground\", 0]]\r\n};\r\n\r\n// [dupl_start] Feat reprint from Elemental Evil Player's Companion\r\nif (!FeatsList[\"svirfneblin magic\"]) {\r\n\tFeatsList[\"svirfneblin magic\"] = {\r\n\t\tname : \"Svirfneblin Magic\",\r\n\t\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 114]],\r\n\t\tprerequisite : \"Being a Svirfneblin (Deep Gnome)\",\r\n\t\tprereqeval : function(v) { return CurrentRace.known === 'deep gnome'; },\r\n\t\tdescriptionFull : \"You have inherited the innate spellcasting ability of your ancestors. This ability allows you to cast Nondetection on yourself at will, without needing a material component. You can also cast each of the following spells once with this ability: Blindness/Deafness, Blur, and Disguise Self. You regain the ability to cast these spells when you finish a long rest.\\n   Intelligence is your spellcasting ability for these spells, and you cast them at their lowest possible levels.\",\r\n\t\tdescription : \"I can cast Nondetection on myself at will, without a material component. I can also cast the spells Blindness/Deafness, Blur, and Disguise Self once each. I regain the ability to cast these spells when I finish a long rest. Intelligence is my spellcasting ability for these spells.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"at will (self only)\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"nondetection\"],\r\n\t\t\tselection : [\"nondetection\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}, {\r\n\t\t\tname : \"1\\xD7 long rest (self only)\",\r\n\t\t\tspells : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\t\tselection : [\"blindness/deafness\", \"blur\", \"disguise self\"],\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 3\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"nondetection\" : {\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"I am hidden from all divination magic\",\r\n\t\t\t\tchanges : \"Using Svirfneblin Magic, I can cast Nondetection without a material component, but only on myself.\"\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n} // dupl_end\r\n\r\n// Spells\r\nSpellsList[\"booming blade\"] = {\r\n\tname : \"Booming Blade\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"1 round\",\r\n\tdescription : \"Melee wea atk with cast; hit: 0d8 Thunder dmg, if it moves next round +1d8; +1d8 at CL5, 11, \\u0026 17\",\r\n\tdescriptionShorter : \"melee wea atk with cast; hit: 0d8 Thunder dmg, if move next rnd +1d8; +1d8 CL 5/11/17 \",\r\n\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Thunder dmg and if moves next round +`CD`d8 Thunder dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects and then becomes sheathed in booming energy until the start of your next turn. If the target willingly moves 5 feet or more before then, the target takes 1d8 thunder damage, and the spell ends.\",\r\n\t\t\"This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 thunder damage to the target on a hit, and the damage the target takes for moving increases to 2d8. Both damage rolls increase by 1d8 at 11th level (2d8 and 3d8) and again at 17th level (3d8 and 4d8).\",\r\n\t],\r\n\tdynamicDamageBonus : {\r\n\t\textraDmgGroupsSameType : /(next r(?:ou)?nd )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"green-flame blade\"] = {\r\n\tname : \"Green-Flame Blade\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee wea atk with cast; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\tdescriptionShorter : \"Melee wea atk; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Fire dmg, 1 crea in 5 ft `CD-1`d8+spellcasting ability modifier Fire dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects, and you can cause green fire to leap from the target to a different creature of your choice that you can see within 5 feet of it. The second creature takes fire damage equal to your spellcasting ability modifier.\",\r\n\t\t\"This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 fire damage to the target on a hit, and the fire damage to the second creature increases to 1d8 + your spellcasting ability modifier. Both damage rolls increase by 1d8 at 11th level (2d8 and 2d8) and 17th level (3d8 and 3d8).\"\r\n\t],\r\n};\r\nSpellsList[\"lightning lure\"] = {\r\n\tname : \"Lightning Lure\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:15-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea in 15 ft save or pulled 10 ft to me; if it ends in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5, 11, \\u0026 17\",\r\n\tdescriptionShorter : \"1 crea in 15 ft save or pulled 10 ft to me; if end in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"1 crea I see save or pulled 10 ft to me; if it ends in 5 ft, `CD`d8 Lightning dmg\",\r\n\tdescriptionFull: [\r\n\t\t\"You create a lash of lightning energy that strikes at one creature of your choice that you can see within 15 feet of you. The target must succeed on a Strength saving throw or be pulled up to 10 feet in a straight line toward you and then take 1d8 lightning damage if it is within 5 feet of you.\",\r\n\t\t\"This spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\",\r\n\t],\r\n};\r\nSpellsList[\"sword burst\"] = {\r\n\tname : \"Sword Burst\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:5-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea in range save or 1d6 Force damage; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"All crea in range save or `CD`d6 Force damage\",\r\n\tdescriptionFull: [\r\n\t\t\"You create a momentary circle of spectral blades that sweep around you. All other creatures within 5 feet of you must succeed on a Dexterity saving throw or take 1d6 force damage.\",\r\n\t\t\"This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\",\r\n\t],\r\n};\r\n\r\nWeaponsList[\"booming blade\"] = {\r\n\tregExpSearch : /^(?=.*booming)(?=.*blade).*$/i,\r\n\tname : \"Booming Blade\",\r\n\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"Bd8/Cd8\", \"\", \"thunder\"],\r\n\trange : \"With melee wea\",\r\n\tdescription : \"First damage added to the attack; second to the target if it moves next round\",\r\n\tabilitytodamage : false\r\n};\r\nWeaponsList[\"green-flame blade\"] = {\r\n\tregExpSearch : /^(?=.*green)(?=.*flame)(?=.*blade).*$/i,\r\n\tname : \"Green-Flame Blade\",\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"Bd8/Bd8\", \"\", \"fire\"],\r\n\trange : \"With melee wea\",\r\n\tdescription : \"First damage added to the attack; second to a target within 5 ft\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"lightning lure\"] = {\r\n\tregExpSearch : /^(?=.*lightning)(?=.*lure).*$/i,\r\n\tname : \"Lightning Lure\",\r\n\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"lightning\"],\r\n\trange : \"15 ft\",\r\n\tdescription : \"Str save; success - nothing; fail - pulled 10 ft closer to me, only take damage if end within 5 ft of me\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"sword burst\"] = {\r\n\tregExpSearch : /^(?=.*sword)(?=.*burst).*$/i,\r\n\tname : \"Sword Burst\",\r\n\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Dex save, success - no damage; all creatures in range\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20160315_CoS.js",
    "content": "var iFileName = \"pub_20160315_CoS.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the backgrounds from the Curse of Strahd adventure book and the optional backgrounds from the Adventurers League season 4 (Curse of Strahd) to MPMB's Character Record Sheet\r\n\r\n// Define the sources\r\nSourceList.CoS={\r\n\tname : \"Curse of Strahd [background, items, pack]\",\r\n\tabbreviation : \"CoS\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Ravenloft\",\r\n\turl : \"https://media.wizards.com/2016/downloads/DND/CoS_Character_Options.pdf?dl=1\",\r\n\tdate : \"2016/03/15\"\r\n};\r\nSourceList[\"AL:CoS\"]={\r\n\tname : \"Curse of Strahd Backgrounds\", // v1.1\r\n\tabbreviation : \"AL:CoS\",\r\n\tgroup : \"Adventurers League\",\r\n\turl : \"https://www.dropbox.com/s/f9ktz5u2gcu2509/Curse-of-Strahd-Backgrounds-v1.1.pdf\", // used to be https://dndadventurersleague.org/wp-content/uploads/2016/06/Curse-of-Strahd-Backgrounds-v1.1.pdf\r\n\tdate : \"2016/04/07\"\r\n};\r\n\r\n// Backgrounds (with contributions by RCanine)\r\nBackgroundList[\"haunted one\"] = {\r\n\tregExpSearch : /haunted.one/i,\r\n\tname : \"Haunted One\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Arcana, Investigation, Religion, and Survival\",\r\n\tlanguageProfs : [2], // was 1 in book, fixed in errata\r\n\tgold : 0.1, // added in VRGtR reprint\r\n\tequipleft : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden Stakes\", 3, 1],\r\n\t\t[\"Holy symbol\", \"\", 1],\r\n\t\t[\"Holy water, flasks of\", \"\", 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel Mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", \"\", 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torch\", 3, 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3], // added in VRGtR reprint\r\n\t\t[\"Trinket of special significance\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Heart of Darkness\",\r\n\ttrait : [\r\n\t\t\"I don't run from evil. Evil runs from me.\",\r\n\t\t\"I like to read and memorize poetry. It keeps me calm and brings me fleeting moments of happiness.\",\r\n\t\t\"I spend money freely and live life to the fullest, knowing that tomorrow I might die.\",\r\n\t\t\"I live for the thrill of the hunt.\",\r\n\t\t\"I don't talk about the thing that torments me. I'd rather not burden others with my curse.\",\r\n\t\t\"I expect danger around every corner.\",\r\n\t\t\"I refuse to become a victim, and I will not allow others to be victimized.\",\r\n\t\t\"I put no trust in divine beings.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Sacrifice\", \"Sacrifice: I try to help those in need, no matter what the personal cost. (Good)\"],\r\n\t\t[\"Desperation\", \"Desperation: I'll stop the spirits that haunt me or die trying. (Any)\"],\r\n\t\t[\"Cleansing\", \"Cleansing: I kill monsters to make the world a safer place, and to exorcise my own demons. (Good)\"],\r\n\t\t[\"Vigilante\", \"Vigilante: I have a dark calling that puts me above the law. (Chaotic)\"],\r\n\t\t[\"Preparation\", \"Preparation: I like to know my enemy's capabilities and weaknesses before rushing into battle. (Lawful)\"],\r\n\t\t[\"Destruction\", \"Destruction: I'm a monster that destroys other monsters, and anything else that gets in my way. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I keep my thoughts and discoveries in a journal. My journal is my legacy.\",\r\n\t\t\"I would sacrifice my life and my soul to protect the innocent.\",\r\n\t\t\"My torment drove away the person I love. I strive to win back the love I've lost.\",\r\n\t\t\"A terrible guilt consumes me. I hope that I can find redemption through my actions.\",\r\n\t\t\"There's evil in me, I can feel it. It must never be set free.\",\r\n\t\t\"I have a child to protect. I must make the world a safer place for him (or her).\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have certain rituals that I must follow every day. I can never break them.\",\r\n\t\t\"I assume the worst in people.\",\r\n\t\t\"I feel no compassion for the dead. They're the lucky ones.\",\r\n\t\t\"I have an addiction.\",\r\n\t\t\"I am a purveyor of doom and gloom who lives in a world without hope.\",\r\n\t\t\"I talk to spirits that no one else can see.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Harrowing Event\",\r\n\t\t\"Monster spared my life\",\r\n\t\t\"Born under a dark star\",\r\n\t\t\"Haunted by an apparition\",\r\n\t\t\"Dark arts in the family\",\r\n\t\t\"An oni took my sibling\",\r\n\t\t\"Memory of cured lycanthropy\",\r\n\t\t\"Raised by a hag\",\r\n\t\t\"Studied an eldritch tome\",\r\n\t\t\"Formerly possessed by a fiend\",\r\n\t\t\"Avenged a murder\"\r\n\t]\r\n};\r\nBackgroundList[\"black fist double agent\"] = {\r\n\tregExpSearch : /black\\W*fist/i,\r\n\tname : \"Black Fist Double Agent\",\r\n\tsource : [[\"AL:CoS\", 2], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Insight\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Tears of Virulence emblem\", \"\", \"\"],\r\n\t\t[\"Writ of free agency\", \"\", \"\"],\r\n\t\t[\"Set of artisan's tools or gaming set\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Double Agent\",\r\n\ttrait : [\r\n\t\t\"People are only as trustworthy as you are valuable to them. Always strive to be the most valuable person around.\",\r\n\t\t\"My eloquence and sophistication are tools I use to avoid arousing suspicion myself.\",\r\n\t\t\"I am a thrill-seeker, excited by covert and dangerous missions.\",\r\n\t\t\"I live by my wits and always check every lock twice, just to be certain.\",\r\n\t\t\"I never admit to my mistakes lest they be used against me.\",\r\n\t\t\"I take every effort to be unnoticeable and blend into the crowd. Passersby rarely give me a second look.\",\r\n\t\t\"I am prepared for any eventuality; including the day my usefulness as a spy comes to an end.\",\r\n\t\t\"I always make certain to know my enemy before acting, lest I bite off more than I can chew.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Suspicious\", \"Suspicious: In my experience, everybody has something to hide, and what they hide can usually hurt me. (Any)\"],\r\n\t\t[\"Secretive\", \"Secretive: I trade in secrets, and am not about to let any of mine slip. (Any)\"],\r\n\t\t[\"Hedonist\", \"Hedonist: Life is short. I live my life to the fullest, as I know any day could be my last. (Chaotic)\"],\r\n\t\t[\"Selfless\", \"Selfless: I use my position to help the downtrodden avoid persecution from the authorities. (Good)\"],\r\n\t\t[\"Patriotic\" , \"Patriotic: I am a loyal supporter of Phlan and its leaders, and see my role as a solemn duty and necessary evil to prevent anarchy. (Lawful)\"],\r\n\t\t[\"Manipulative\", \"Manipulative: I use my knowledge to blackmail and manipulate others to my own benefit. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I was framed for a crime I did not commit, and seek to bring the true culprit to justice.\",\r\n\t\t\"I am a part of an underground network that smuggles innocent civilians out of the city prior to being raided by the authorities.\",\r\n\t\t\"I miss the glory days of Phlan, before the coming of the dragon.\",\r\n\t\t\"I seek to prove myself worthy of joining the Black Fist as a member of their order.\",\r\n\t\t\"My sister was killed by a Tear of Virulence, and now I feed them false information whenever possible.\",\r\n\t\t\"My family was wrongly imprisoned, and I act as an informant in order to secure their release.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I think too highly of myself, and have an exaggerated sense of self-importance.\",\r\n\t\t\"I have difficulty trusting strangers. I see spies and informants everywhere.\",\r\n\t\t\"Years of getting away with minor crimes has left me believing that I am above the law, and have diplomatic immunity above my station.\",\r\n\t\t\"Years of seeing innocent people suffer have left me despondent and pessimistic for the future.\",\r\n\t\t\"My desire for vengeance often gets me into trouble\",\r\n\t\t\"I am spendthrift, and share my wealth with the patrons of my favorite tavern.\"\r\n\t],\r\n\ttoolProfs : [\"Disguise Kit\", [\"Artisan's tools or gaming set\", 1]],\r\n\tlifestyle : \"modest\"\r\n};\r\nBackgroundList[\"dragon casualty\"] = {\r\n\tregExpSearch : /^(?=.*dragon)(?=.*casualty).*$/i,\r\n\tname : \"Dragon Casualty\",\r\n\tsource : [[\"AL:CoS\", 3], [\"ALbackground\", 0]],\r\n\tskills : [\"Intimidation\", \"Survival\"],\r\n\ttoolProfs : [\"Based on my origin\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Loaf of moldy bread\", \"\", 1],\r\n\t\t[\"Cast-off Vorgansharax scale\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Tattered Rags\", \"\", 3],\r\n\t\t[\"Dagger\", \"\", 1],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Dragonscarred\",\r\n\textra : [\r\n\t\t\"Select an Origin (or Disfigurement)\",\r\n\t\t\"Dockworker\",\r\n\t\t\"Fisherman\",\r\n\t\t\"Tradesperson\",\r\n\t\t\"Merchant\",\r\n\t\t\"Black Fist Soldier\",\r\n\t\t\"Adventurer\",\r\n\t\t\"Visitor\",\r\n\t\t\"Entertainer\",\r\n\t\t\"Scholar\",\r\n\t\t\"Healer\",\r\n\t\t\"Criminal\",\r\n\t\t\"Unskilled laborer\",\r\n\t\t\"\",\r\n\t\t\"- Disfigurements (optional):\",\r\n\t\t\"Extensive scarring\",\r\n\t\t\"Small non-functional wing(s)\",\r\n\t\t\"Misshapen, wing-like membrane(s)\",\r\n\t\t\"Elongated, claw-like hand(s) or feet\",\r\n\t\t\"Painful green scales embedded in skin\",\r\n\t\t\"Bulbous, reptilian eye(s)\",\r\n\t\t\"Enlarged dorsal spines\",\r\n\t\t\"Small irregular spines instead of hair\"\r\n\t],\r\n\ttrait : [\r\n\t\t\"I am driven to escape my past, and rarely stay in one place long.\",\r\n\t\t\"I know secrets of the Maimed Virulence, but fear the harm that may befall me should others learn them.\",\r\n\t\t\"Speaking of my ordeal helps sooth the still open wounds in my soul.\",\r\n\t\t\"My former life is meaningless, and was ripped to shreds by the claws of Vorgansharax. All that matters now is what I do with the future.\",\r\n\t\t\"I have faced the worst a dragon can deliver and survived. I am fearless, and my resolve unshakable.\",\r\n\t\t\"I am haunted my tortured past, and wake at night screaming at half-remembered horrors.\",\r\n\t\t\"I sleep with my back to a wall or tree, and a weapon within arm's reach.\",\r\n\t\t\"I am slow to trust, but incredibly loyal to those who have earned it.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Survivor\", \"Survivor: No matter the cost, I will take any action necessary to survive (any)\"],\r\n\t\t[\"Independence\", \"Independence: When in trouble, the only person I can rely on is myself (Chaotic)\"],\r\n\t\t[\"Compassionate\", \"Compassionate: I have suffered long at the hands of a Dragon, and take pity and compassion on the suffering of others (Good)\"],\r\n\t\t[\"Secretive\", \"Secretive: I am withdrawn, and hide my monstrous appearance for fear of drawing unwanted attention. (Chaotic)\"],\r\n\t\t[\"Justice\", \"Justice: I have been wronged, and will not allow the same fate to befall others. (Lawful)\"],\r\n\t\t[\"Sycophant\", \"Sycophant: During my ordeal, I became a willing servant of the Maimed Virulence, and spy on his behalf. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I have sworn vengeance on the Maimed Virulence and those that follow him.\",\r\n\t\t\"I long to reunite with friends and family who may dwell among the Phlan Refugees, and protect them.\",\r\n\t\t\"While a prisoner of the Maimed Virulence, I overheard rumors of an item or treasure the Dragon seeks. I will have that treasure for myself!\",\r\n\t\t\"I seek to reclaim and rebuild my former life to the best of my ability.\",\r\n\t\t\"I have been reborn as a child of Vorgansharax. I will claim my birthright as his chosen heir and successor.\",\r\n\t\t\"I attribute my survival to the work of the divine, and seek to prove myself worthy of the honor.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have been touched with dragon-greed, and have a lust for wealth which can never be satisfied.\",\r\n\t\t\"I secretly believe others are plotting to harm me.\",\r\n\t\t\"I no longer enjoy the simple pleasures in life. Food is but ashes and bile in my throat.\",\r\n\t\t\"Anyone who refuses to celebrate my celebrity does not deserve my company.\",\r\n\t\t\"I am paranoid and overly suspicious of others. Anyone may be an agent of the Maimed Virulence.\",\r\n\t\t\"Once I make up my mind, I follow my chosen course of action regardless of the consequences.\"\r\n\t],\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tlifestyle : \"wretched\"\r\n};\r\nBackgroundList[\"iron route bandit\"] = {\r\n\tregExpSearch : /^(?=.*iron)(?=.*route)(?=.*bandit).*$/i,\r\n\tname : \"Iron Route Bandit\",\r\n\tsource : [[\"AL:CoS\", 5], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Stealth\"],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Backpack, with:\", \"\", 5],\r\n\t\t[\"Bag of 1000 ball bearings\", 1, 2],\r\n\t\t[\"String, feet of\", 10, \"\"],\r\n\t\t[\"Bell\", \"\", \"\"],\r\n\t\t[\"Candles\", 5, \"\"],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Pitons\", 10, .25],\r\n\t\t[\"Hooded lantern\", \"\", 2],\r\n\t\t[\"Oil, flasks of\", 2, 1],\r\n\t\t[\"Rations, days of\", 5, 2],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Waterskin\", \"\", 5],\r\n\t\t[\"Hempen rope, feet of\", 50, 0.2]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Dark common clothes\", \"\", 3],\r\n\t\t[\"Pack Saddle\", \"\", \"\"],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Black-Market Breeder\",\r\n\ttrait : [\r\n\t\t\"If people leave their gear unsecured, they must not want it very much.\",\r\n\t\t\"I feel more comfortable sleeping under the open sky.\",\r\n\t\t\"I always pre-plan my escape should things go bad; I always like to have an exit strategy.\",\r\n\t\t\"I tend to give animal owners breeding and care advice whether or not they want it.\",\r\n\t\t\"I lost a pet as a child and sadly reflect on it to this day.\",\r\n\t\t\"I always form a powerful, emotional bond with my mount.\",\r\n\t\t\"I recoil at the thought of killing someone else's pet or mount.\",\r\n\t\t\"I prefer to hang to the back of a scuffle or discussion. Better to have my enemies in front of me.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loyalty\", \"Loyalty: Never bite the hand that feeds. (Good)\"],\r\n\t\t[\"Unpredictability\", \"Unpredictability: Keep your enemy guessing and off-balance like a confused deer. (Chaotic)\"],\r\n\t\t[\"Power\", \"Power: I strive to become leader of the pack at all costs. (Lawful)\"],\r\n\t\t[\"Freedom\", \"Freedom: I bow to no one I don't respect. (Chaotic)\"],\r\n\t\t[\"Resourcefulness\", \"Resourcefulness: Our wits are our most valuable resource in troubled times. (Any)\"],\r\n\t\t[\"Unity\", \"Unity: Lone wolves fail where the pack succeeds. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I cannot leave a harmed animal behind; I must save it or put it out of its misery.\",\r\n\t\t\"I leave behind my own personal calling cards when I do a job.\",\r\n\t\t\"I do not trust people who do not have a pet, mount, or furry companion.\",\r\n\t\t\"The pelt I wear on my back was from an animal that died saving my life, I will always cherish it.\",\r\n\t\t\"If my pet does not like you, I do not like you!\",\r\n\t\t\"Once you've ridden with me and fought by my side, I'll be there for you odds be damned.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I talk to animals; I believe they understand me, even if they do not.\",\r\n\t\t\"I growl at and bite anyone who gets too close to my food while I am eating.\",\r\n\t\t\"I strongly dislike enclosed spaces and require intoxication or firm encouragement to enter them.\",\r\n\t\t\"I robbed the wrong caravan once. The owner is a powerful merchant who holds a grudge.\",\r\n\t\t\"I'm an inveterate gambler.\",\r\n\t\t\"I judge people based on how well they stand their ground in a fight. I got not time for cowards…\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"phlan insurgent\"] = {\r\n\tregExpSearch : /^(?=.*phlan)(?=.*insurgent).*$/i,\r\n\tname : \"Phlan Insurgent\",\r\n\tsource : [[\"AL:CoS\", 6], [\"ALbackground\", 0]],\r\n\tskills : [\"Stealth\", \"Survival\"],\r\n\ttoolProfs : [[\"Artisan's tools\", 1], \"Vehicles (land)\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Caltrops\", 20, 0.1],\r\n\t\t[\"Small trinket of my life before\", \"\", \"\"],\r\n\t\t[\"Healer's kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Dark common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Guerilla\",\r\n\textra : [\r\n\t\t\"Select an Origin\",\r\n\t\t\"Fisher\",\r\n\t\t\"Hunter\",\r\n\t\t\"Craftsperson\",\r\n\t\t\"Priest/Priestess\",\r\n\t\t\"Cook\",\r\n\t\t\"City Watch\",\r\n\t\t\"Servant\",\r\n\t\t\"Unskilled laborer\",\r\n\t\t\"Stojanow river worker\",\r\n\t\t\"Twilight Marsh worker\",\r\n\t\t\"Mantor's Library scribe\",\r\n\t\t\"Clergy of Ilmater\",\r\n\t\t\"Laughing Goblin server\",\r\n\t\t\"Black Fist guard\",\r\n\t\t\"House Sokol retainer\",\r\n\t\t\"Bay of Phlan dockworker\"\r\n\t],\r\n\ttrait : [\r\n\t\t\"My patience knows no bounds, so long as my goal is in sight.\",\r\n\t\t\"In life and in struggle, the ends justify my actions.\",\r\n\t\t\"If you aren't helping me, you'd best at least stay out of my way.\",\r\n\t\t\"I long for the life that was taken away from me.\",\r\n\t\t\"Friends and family perished, tragically, before my eyes. I hope never to undergo that again.\",\r\n\t\t\"Making the right choices in life are important to me. The choices I make might save not just my life, but the lives of others as well.\",\r\n\t\t\"I can never allow my foes to get the drop on me.\",\r\n\t\t\"Time is a precious resource that I must spend wisely.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Leadership\", \"Leadership: The oppressed need someone to inspire them to courageous acts. (Good)\"],\r\n\t\t[\"Unpredictability\", \"Unpredictability: Keeping the enemy guessing and off-balance is my tactical strength. (Chaos)\"],\r\n\t\t[\"Determination\", \"Determination: Threats to my home must be eliminated at all costs. (Any)\"],\r\n\t\t[\"Freedom\", \"Freedom: Those who are enslaved and unjustly imprisoned deserve my aid. (Good)\"],\r\n\t\t[\"Resourcefulness\", \"Resourcefulness: Our wits are our most valuable resource in troubled times. (Any)\"],\r\n\t\t[\"Unity\", \"Unity: Working together, we can overcome all obstacles, even the most seemingly insurmountable ones. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I'll never let my fellow insurgents down. They are my only remaining friends.\",\r\n\t\t\"I was separated from a loved one during my escape from town. I will find them.\",\r\n\t\t\"One of the Tears of the Virulence was a trusted friend, until the day they betrayed the city. They will pay harshly for their transgressions.\",\r\n\t\t\"An item I hold close is my last remaining connection to the family I lost during the fall.\",\r\n\t\t\"The dragon who took my past life away from me will feel the full extent of my vengeance.\",\r\n\t\t\"The knowledge in Mantor's Library is an irreplaceable treasure that must be protected.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have no respect for those who flee. I harbor a deep grudge against the citizens who abandoned Phlan.\",\r\n\t\t\"Ale is the only way I can escape the desperation of my circumstances.\",\r\n\t\t\"It doesn't take much to get me into a fight.\",\r\n\t\t\"Being an insurgent means doing things that aren't always ethical. I'm still learning to live with that.\",\r\n\t\t\"My desire to liberate Phlan oftentimes clouds my judgement, despite my best efforts.\",\r\n\t\t\"I relentlessly despise the Maimed Virulence and his allies. I'd abandon other goals in order to strike out at them\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"stojanow prisoner\"] = {\r\n\tregExpSearch : /^(?=.*stojanow)(?=.*prisoner).*$/i,\r\n\tname : \"Stojanow Prisoner\",\r\n\tsource : [[\"AL:CoS\", 8], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Perception\"],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Small knife\", \"\", 0.25],\r\n\t\t[\"Small trinket from my life before\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Ex-Convict\",\r\n\ttrait : [\r\n\t\t\"I am a bully; others will suffer as I have.\",\r\n\t\t\"I always say yes even when I mean no; it's just easier.\",\r\n\t\t\"I aim to misbehave.\",\r\n\t\t\"I go out of my way to frustrate or anger those in power.\",\r\n\t\t\"I strive to obey the law. I will never again make the mistake of going against authority.\",\r\n\t\t\"I always plan everything out. The one time I let others plan things it did not end well for me.\",\r\n\t\t\"I take blame to protect others from pain.\",\r\n\t\t\"I horde information, you never know what may come in handy.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Loss\", \"Loss: I freely give those who offend me what was so brutally denied me, death. (Chaos)\"],\r\n\t\t[\"Dedication\", \"Dedication: I never betray those who trust me. (Law)\"],\r\n\t\t[\"Vengeance\", \"Vengeance: I use any means to get information I need; I have been well taught. (Evil)\"],\r\n\t\t[\"Redemption\", \"Redemption: Everyone deserves a second chance. (Good)\"],\r\n\t\t[\"Resilience\", \"Resilience: I can survive any challenge. (Any)\"],\r\n\t\t[\"Leadership\", \"Leadership: The best teams are made up of those that society has discarded. (Any)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I take up arms to help establish a free Phlan.\",\r\n\t\t\"The horrors of my time in Stojanow haunt my dreams, only after a day of hard work can I find sleep.\",\r\n\t\t\"I am indebted to those who freed me from prison, I will repay this debt.\",\r\n\t\t\"My torturer survived the attack that set me free, I will find him/her.\",\r\n\t\t\"I will not rest while others suffer fates similar to mine.\",\r\n\t\t\"I am searching for a way to heal the scars of Stojanow, both physical and emotional.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"During stressful times, I find myself crying for no reason.\",\r\n\t\t\"My nerve endings are shot from the interrogations; I am numb to all but the harshest touch.\",\r\n\t\t\"I am incapable of standing up for myself.\",\r\n\t\t\"I folded under the torture, and gave information that I promised would be kept secret. My life would be in jeopardy if others found out.\",\r\n\t\t\"Survival is worth more than friendship.\",\r\n\t\t\"The ghosts from my past hinder my actions.\"\r\n\t],\r\n\tlifestyle : \"poor\"\r\n};\r\nBackgroundList[\"ticklebelly nomad\"] = {\r\n\tregExpSearch : /^(?=.*ticklebelly)(?=.*nomad).*$/i,\r\n\tname : \"Ticklebelly Nomad\",\r\n\tsource : [[\"AL:CoS\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Animal Handling\", \"Nature\"],\r\n\ttoolProfs : [\"Herbalism Kit\"],\r\n\tgold : 5,\r\n\tequipleft : [\r\n\t\t[\"Herbalism kit\", \"\", 3],\r\n\t\t[\"Small tribal jewelry\", \"\", \"\"],\r\n\t\t[\"Hunting trap\", \"\", 25]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"At Home in the Wild\",\r\n\ttrait : [\r\n\t\t\"I eagerly inject myself into the unknown.\",\r\n\t\t\"Villages, towns, and cities do not suit me. I'd rather be out in the wilderness any day.\",\r\n\t\t\"I accomplish my tasks efficiently, using as few resources as possible.\",\r\n\t\t\"It's difficult for me to remain in one place for long.\",\r\n\t\t\"I loudly brag about my tribe every chance I get.\",\r\n\t\t\"Having walked among giants, I am fearless in the face of bigger creatures.\",\r\n\t\t\"I am quiet and reserved, but observant. Nothing escapes my attention.\",\r\n\t\t\"My word is my bond. I see a promise to completion, even if it conflicts with my beliefs.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Kinship\", \"Kinship: Family is most important in life. Though I may be far from my own, the bonds of family must be protected in others' lives as well. (Good)\"],\r\n\t\t[\"Preservation\", \"Preservation: Nature must not be despoiled by encroaching civilization. (Any)\"],\r\n\t\t[\"Wanderlust\", \"Wanderlust: One must expand their horizons by seeing the world and exploring. (Chaos)\"],\r\n\t\t[\"Isolation\", \"Isolation: My tribe and its ways must be protected and shielded from outside influence. (Neutral)\"],\r\n\t\t[\"Protection\", \"Protection: Threats to the land and to the people must be dealt with at any and all costs. (Law)\"],\r\n\t\t[\"Belonging\", \"Belonging: All creatures have a place in the world, so I strive to help others find theirs. (Good)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I ache to return to my tribe and the family I left, but cannot until my obligations are fulfilled.\",\r\n\t\t\"The dragon cultists that invaded my homeland stole away one of my tribe's people. I will not know rest until I've found them.\",\r\n\t\t\"The dragon's presence in the hills destroyed valuable territory and resulted in deaths within my tribe. The creature must pay for what it has done.\",\r\n\t\t\"I carry a trinket that spiritually and emotionally ties me to my people and my home.\",\r\n\t\t\"I discovered a strange relic in the hills during my tribe's wanderings. I must discover what it is.\",\r\n\t\t\"One of the stone giant clans from the Giant's Cairn has graced me with a mark of kinship.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I throw myself and my friends into situations rarely ever thinking about consequences.\",\r\n\t\t\"Unfamiliar people and surroundings put me on edge.\",\r\n\t\t\"I have absolutely no patience for slowpokes and those who prove indecisive.\",\r\n\t\t\"My desire to experience new things causes me to make unsafe choices.\",\r\n\t\t\"I am overly protective of nature, sometimes to the detriment of my companions and myself.\",\r\n\t\t\"My lack of worldliness often proves my undoing in social, commercial, and hostile situations.\"\r\n\t],\r\n\tlanguageProfs : [\"Giant\"],\r\n\tlifestyle : \"poor\"\r\n};\r\n\r\n// Background features\r\nBackgroundFeatureList[\"at home in the wild\"] = {\r\n\tdescription : \"In the wilderness, my home, I can find a place to hide, rest, or recuperate that is secure enough to conceal me from most natural threats, but not all supernatural, magical, or threats that actively seek me out. However, this feature doesn't shield or conceal me from scrying, mental probing, nor from threats that don't need the five senses to find me.\",\r\n\tsource : [[\"AL:CoS\", 9], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"black-market breeder\"] = {\r\n\tdescription : \"I know how to find people who are always looking for stolen animals and vehicles, for pit fights or getaways during an illegal job. This provides me with information of what such animals & vehicles are in high demand in the area, but also offer to give me favors and information (DM choice) if I bring such animals and vehicles to them.\",\r\n\tsource : [[\"AL:CoS\", 5], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"double agent\"] = {\r\n\tdescription : \"I have a trusty contact in the Tears of Virulence garrison in Phlan to whom I pass information. In exchange, I get away with minor criminal offenses in Phlan. My Black Fists contacts can help me get an audience with the Lord Regent, the Lord Sage, Black Fists members, or deposed nobles who are sympathetic to the Phlan refugees and insurgents.\",\r\n\tsource : [[\"AL:CoS\", 2], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"dragonscarred\"] = {\r\n\tdescription : \"My extensive scars from being tortured by Vorgansharax give me fame and notoriety, but it is difficult to disguise my appearance and hide from prying eyes. I can use this to gain access to people and places I might not otherwise have, for me and my companions. However, I fear that my afflictions are not completely mundane, as they burn and writhe.\",\r\n\tsource : [[\"AL:CoS\", 3], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"ex-convict\"] = {\r\n\tdescription : \"The knowledge gained during my incarceration lets me gain insight into local guards and jailors. I know which will accept bribes, or look the other way for me. I can also seek shelter for myself from authorities with other criminals in the area.\",\r\n\tsource : [[\"AL:CoS\", 8], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"guerilla\"] = {\r\n\tdescription : \"I've come to know the surrounding other natural features in which I can take refuge--or set up ambushes. I can quickly survey my environment for advantageous features. Additionally, I can scavenge around my natural surroundings to cobble together simple supplies (such as improvised torches, rope, patches of fabric, etc.) that are consumed after use.\",\r\n\tsource : [[\"AL:CoS\", 6], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"heart of darkness\"] = {\r\n\tdescription : \"Those who look into my eyes can see that I have faced unimaginable horror and that I am no stranger to darkness. Though they might fear me, commoners will extend me every courtesy and do their utmost to help. Unless I have shown myself to be a danger to them, they will even take up arms to fight with me, should I find myself facing an enemy alone.\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Equipment pack\r\nPacksList.monsterhunter = {\r\n\tname : \"Monster hunter's pack (33 gp)\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34]],\r\n\titems : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden stake\", 3, 1],\r\n\t\t[\"Amulet holy symbol\", \"\", \"\"],\r\n\t\t[\"Holy water, flasks of\", 1, 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", 1, 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torches\", 3, 1]\r\n\t]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"plantslayer battleaxe\"] = {\r\n\tname : \"Plantslayer Battleaxe\", // name taken from Adventurers League Content Catalogue v8.07, page 28\r\n\tnameAlt : \"Adventurer's Battleaxe\",\r\n\tsource : [[\"CoS\", 198]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This battleaxe's handle is carved with leaves and vines. It deals an extra 1d8 slashing damage against ordinary plants and plant creatures. When a creature of non-good alignment makes an attack with it, it sprouts thorns, dealing 1 magical piercing damage to the wielder after the attack is made.\",\r\n\tdescriptionFull : \"The axe's handle is carved with leaves and vines, and it weighs half as much as a normal battleaxe. When the axe hits a plant, whether an ordinary plant or a plant creature, the target takes an extra 1d8 slashing damage. When a creature of non-good alignment wields the axe, it sprouts thorns whenever its wielder makes an attack with it. These thorns prick the wielder for 1 piercing damage after the attack is made, and this damage is considered magical.\",\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /^(?=.*plantslayer)(?=.*battleaxe).*$/i,\r\n\t\tname : \"Plantslayer Battleaxe\",\r\n\t\tsource : [[\"CoS\", 198]],\r\n\t\tdescription : \"Versatile (1d10); +1d8 damage vs. plants\",\r\n\t\tweight : 2,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"blood spear\"] = {\r\n\tname : \"Blood Spear\",\r\n\tsource : [[\"CoS\", 221]],\r\n\ttype : \"weapon (spear)\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This spear drains the life from those it kills and transfers that life to its wielder, imbuing that individual with the stamina to keep fighting. When I use it to reduce the target to 0 HP, I gain 2d6 temporary HP. If I'm chosen by Kavan to wield this spear, I gain a +2 bonus to attack and damage rolls made with it.\",\r\n\tdescriptionFull : \"Kavan was a ruthless chieftain whose tribe lived in the Balinok Mountains centuries before the arrival of Strahd von Zarovich. Although he was very much alive, Kavan had some traits in common with vampires: he slept during the day and hunted at night, he drank the blood of his prey, and he lived underground. In battle, he wielded a spear stained with blood. His was the first blood spear, a weapon that drains life from those it kills and transfers that life to its wielder, imbuing that individual with the stamina to keep fighting.\\n   When you hit with a melee attack using this magic spear and reduce the target to 0 hit points, you gain 2d6 temporary hit points.\\n   Any creature can wield the spear, but only the character chosen by Kavan to wield it gains a +2 bonus to attack and damage rolls made with this magic weapon.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tchoices : [\"Chosen of Kavan\", \"Not a chosen of Kavan\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"chosen of kavan\" : {\r\n\t\tname : \"Blood\\u200A Spear\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*blood)(?=.*spear).*$/i,\r\n\t\t\tname : \"Blood Spear\",\r\n\t\t\tsource : [[\"CoS\", 221]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); If used to reduce target to 0 HP, I gain 2d6 temp HP\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"not a chosen of kavan\" : {\r\n\t\tname : \"Blood\\u200A\\u200A Spear\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"spear\",\r\n\t\t\tregExpSearch : /^(?=.*blood)(?=.*spear).*$/i,\r\n\t\t\tname : \"Blood Spear\",\r\n\t\t\tsource : [[\"CoS\", 221]],\r\n\t\t\tdescription : \"Thrown, versatile (1d8); If used to reduce target to 0 HP, I gain 2d6 temp HP\",\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"green copper ewer\"] = {\r\n\tname : \"Green Copper Ewer\",\r\n\tsource : [[\"CoS\", 188]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Any poisonous liquid poured into the ewer is instantly transformed into an equal amount of sweet wine. If I speak the ewer's command word while grasping its handle, the ewer fills with 1 gallon of wine. After doing so, it can't produce more wine until the next dawn.\",\r\n\tdescriptionFull : \"Any poisonous liquid poured into the ewer is instantly transformed into an equal amount of sweet wine. Furthermore, a creature that grasps the ewer's handle can command the ewer to fill with 1 gallon of wine, and it can't produce more wine until the next dawn.\"\r\n}\r\nMagicItemsList[\"gulthias staff\"] = {\r\n\tname : \"Gulthias Staff\",\r\n\tsource : [[\"CoS\", 221]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This black wooden quarterstaff has 10 charges, regaining 1d6+4 at dusk. When I hit with it in melee, I can use 1 charge to regain HP equal to the damage dealt, but I must make a DC 12 Wis save or be afflicted by short-term madness (DMG 259). While attuned to it, evil plant creatures are indifferent to me.\",\r\n\tdescriptionLong : \"This spongy, black wooden quarterstaff has 10 charges, regaining 1d6+4 at dusk. When I hit with it in melee, I can use 1 charge to regain HP equal to the damage dealt, but I must make a DC 12 Wis save or be afflicted by short-term madness (see table at SRD 201 or DMG 259). While I'm attuned to the staff, evil plant creatures don't regard me as hostile unless I harm them. If it is broken or burned to ashes, it releases an inhuman scream that can be heard out to 300 ft. All blights that can hear the scream immediately wither and die.\",\r\n\tdescriptionFull : \"Made from the branch of a Gulthias tree (see the blights entry of the Monster Manual), a Gulthias staff is a spongy, black length of wood. Its evil makes beasts visibly uncomfortable while within 30 feet of it. The staff has 10 charges and regains 1d6+4 of its expended charges daily at dusk.\\n   If the staff is broken or burned to ashes, its wood releases a terrible, inhuman scream that can be heard out to a range of 300 feet. All blights that can hear the scream immediately wither and die.\\n   \" + toUni(\"Vampiric Strike\") + \". The staff can be wielded as a magic quarterstaff. On a hit, it deals damage as a normal quarterstaff, and you can expend 1 charge to regain a number of hit points equal to the damage dealt by the weapon. Each time a charge is spent, red blood oozes from the staff's pores, and you must succeed on a DC 12 Wisdom saving throw or be afflicted with short term madness (see \\\"Madness\\\" in chapter 8 of the Dungeon Master's Guide).\\n   \" + toUni(\"Blight Bane\") + \". While you are attuned to the staff, blights and other evil plant creatures don't regard you as hostile unless you harm them.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"Dusk\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /^(?=.*gulthias)(?=.*staff).*$/i,\r\n\t\tname : \"Gulthias Staff\",\r\n\t\tsource : [[\"CoS\", 221]],\r\n\t\tdescription : \"Versatile (1d8); On hit, 1 charge to regain HP equal to damage dealt but DC 12 Wis save or madness\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"holy symbol of ravenkind\"] = {\r\n\tname : \"Holy Symbol of Ravenkind\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin of good alignment\",\r\n\tprereqeval : function(v) { return (/good/i).test(What(\"Alignment\")) && (classes.known.cleric || classes.known.paladin); },\r\n\tdescription : \"This platinum amulet has 10 charges, regaining 1d6+4 at dawn. As an action, I can use 1 charge to hold vampires (see 3rd page notes). I can use 3 charges with Turn Undead to give disadv. on its saves. As an action, ican use 5 charges to shed daylight, 30-ft radius bright light and dim light for another 30-ft for 10 minutes.\",\r\n\tdescriptionFull : \"The Holy Symbol of Ravenkind is a unique holy symbol sacred to the good-hearted faithful of Barovia. It predates the establishment of any church in Barovia. According to legend, it was delivered to a paladin named Lugdana by a giant raven - or an angel in the form of a giant raven. Lugdana used the holy symbol to root out and destroy nests of vampires until her death. The high priests of Ravenloft kept and wore the holy symbol after Lugdana's passing.\\n   The holy symbol is a platinum amulet shaped like the sun, with a large crystal embedded in its center.\\n   The holy symbol has 10 charges for the following properties. It regains 1d6+4 charges daily at dawn.\\n   \" + toUni(\"Hold Vampires\") + \". As an Action, you can expend 1 charge and present the holy symbol to make it flare with holy power. Vampires and vampire spawn within 30 feet of the holy symbol when it flares must make a DC 15 Wisdom saving throw. On a failed save, a target is paralyzed for 1 minute. It can repeat the saving throw at the end of its turns to end the effect on itself.\\n   \" + toUni(\"Turn Undead\") + \". If you have the Turn Undead or the Turn the Unholy feature, you can expend 3 charges when you present the holy symbol while using that feature. When you do so, undead have disadvantage on their saving throws against the effect.\\n   \" + toUni(\"Sunlight\") + \". As an action, you can expend 5 charges while presenting the holy symbol to make it shed bright light in a 30-foot radius and dim light for an additional 30 feet. The light is sunlight and lasts for 10 minutes or until you end the effect (no action required).\",\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hold Vampires\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"As an action, I can use 1 charge to have all vampires within 30 ft make a DC 15 Wis save\",\r\n\t\t\t\"If failed, a target is paralyzed for 1 minute but can repeat the save at the end of its turns\"\r\n\t\t],\r\n\t\tadditional : \"1 charge\"\r\n\t}]\r\n}\r\nMagicItemsList[\"icon of ravenloft\"] = {\r\n\tname : \"Icon of Ravenloft\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature of good alignment\",\r\n\tprereqeval : function(v) { return (/good/i).test(What(\"Alignment\")); },\r\n\tdescription : \"All within 30 ft of this silver statue are under the effect of Protection from Evil and Good that works against fiends and undead. As an action while attuned to it, I can cast Augury or Cure Wounds (3d8+3, 30 ft range) from it, each once per dawn and if I use it for my Turn Undead, the DC increases by 2.\",\r\n\tdescriptionFull : \"The Icon of Ravenloft is a 12-inch tall statuette made of the purest silver, weighing 10 pounds. It depicts a cleric kneeling in supplication.\\n   The icon was given to Strahd by the archpriest Ciril Romulich, an old family friend, to consecrate the castle and its chapel.\\n   While within 30 feet of the icon, a creature is under the effect of a Protection from Evil and Good spell against fiends and undead. Only a creature attuned to the icon can use its other properties.\\n   \" + toUni(\"Augury\") + \". You can use an action to cast an Augury spell from the icon, with no material components required. Once used, this property can't be used again until the next dawn.\\n   \" + toUni(\"Bane of the Undead\") + \". You can use the icon as a holy symbol while using the Turn Undead or Turn the Unholy feature. If you do so, increase the save DC by 2.\\n   \" + toUni(\"Cure Wounds\") + \". While holding the icon, you can take an action to heal one creature that you can see within 30 feet of you. The target regains 3d8+3 hit points, unless it is an undead, a construct, or a fiend. Once used, this property can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 10,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Icon of Ravenloft [Augury]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Icon of Ravenloft [Cure Wounds]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"All in 30 ft\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"markedbox\"\r\n\t}, {\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"augury\", \"cure wounds\"],\r\n\t\tselection : [\"augury\", \"cure wounds\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"protection from evil and good\" : {\r\n\t\t\trange : \"30-ft rad\",\r\n\t\t\ttime : \"Always\",\r\n\t\t\tdescription : \"All in range immune to fear, charm, and possession by fiends and undead, they also disadv. on attacks\",\r\n\t\t\tduration : \"Unlimited\",\r\n\t\t\tchanges : \"All within 30 ft of the Icon of Ravenloft have this spell protect them from undead and fiends.\"\r\n\t\t},\r\n\t\t\"augury\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Icon of Ravenloft, it only takes an action to cast.\"\r\n\t\t},\r\n\t\t\"cure wounds\" : {\r\n\t\t\trange : \"30 ft\",\r\n\t\t\tdescription : \"1 living creature heals 3d8+3 HP if it not an undead, construct, or fiend\",\r\n\t\t\tdynamicDamageBonus : { doNotProcess : true },\r\n\t\t\tchanges : \"Using the Icon of Ravenloft, it has a range of 30 ft and always heals 3d8+3 HP, but can't affect undead, a construct, or a fiend.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"lost sword\"] = {\r\n\tname : \"Lost Sword\",\r\n\tsource : [[\"CoS\", 81]],\r\n\ttype : \"weapon (shortsword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tprerequisite : \"Requires attunement by a creature of lawful good alignment\",\r\n\tprereqeval : function(v) { return (/^(?=.*lawful)(?=.*good).*$/i).test(What(\"Alignment\")); },\r\n\tdescription : \"This lawful good shortsword is sentient (Int 11, Wis 13, Cha 13). It adds +1 to hit and damage and shines bright light in a 15-ft radius and dim light for an additional 15 ft. Attuning to it takes only 1 minute. Once per dawn, I can use it to cast Crusader's Mantle. Its purpose is to fight evil. See Notes page.\",\r\n\tdescriptionFull : \"The Lost Sword is a sentient lawful good +1 shortsword (Intelligence 11, Wisdom 13, Charisma 13). It has hearing and normal vision out to a range of 120 feet. It communicates by transmitting emotion to the creature carrying or wielding it.\\n   The sword's purpose is to fight evil. The sword has the following additional properties:\\n \\u2022 The sword continually sheds bright light in a 15-foot radius and dim light for an additional 15 feet. Only by destroying the sword can this light be extinguished.\\n \\u2022 A lawful good creature can attune itself to the sword in 1 minute.\\n \\u2022 While attuned to the weapon, the sword's wielder can use the sword to cast the Crusader's Mantle spell. Once used, this property of the sword can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Crusader's Mantle\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"shortsword\",\r\n\t\tregExpSearch : /^(?=.*lost)(?=.*sword).*$/i,\r\n\t\tname : \"Lost Sword\",\r\n\t\tsource : [[\"CoS\", 81]],\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"crusader's mantle\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"The Lost Sword is a sentient lawful good +1 shortsword.\",\r\n\t\t\t\"A lawful good creature can attune itself to the sword in 1 minute.\",\r\n\t\t\t\"It continually sheds bright light in a 15-ft radius and dim light for an additional 15 ft. Only by destroying the sword can this light be extinguished.\",\r\n\t\t\t\"While attuned to the weapon, the sword's wielder can use the sword to cast the Crusader's Mantle spell. Once used, this property of the sword can't be used again until the next dawn.\",\r\n\t\t\t\"It has Intelligence 11, Wisdom 13, and Charisma 13 and can hear and see as a human out to a range of 120 ft. It communicates by transmitting emotion to the creature carrying or wielding it. The sword's purpose is to fight evil.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"saint markovia's thighbone\"] = {\r\n\tname : \"Saint Markovia's Thighbone\",\r\n\tsource : [[\"CoS\", 222]],\r\n\ttype : \"weapon (mace)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This mace sheds bright light in a 20-ft radius and dim light for another 20 ft while held. Fiends and undead hit with it take +2d6 radiant damage, become frightened of me until my next turn ends, and if below 26 HP after its damage, must make a DC 15 Wis save or die. If it hits an undead, it crumbles after the combat.\",\r\n\tdescriptionFull : \"Saint Markovia's thighbone has the properties of a mace of disruption. If it scores one or more hits against a vampire or a vampire spawn in the course of a single battle, the thighbone crumbles into dust once the battle concludes.\\n   As a youth, Markovia followed her heart and became a priest of the Morninglord soon after her eighteenth birthday. She proved to be a charismatic proselytizer and, before the age of thirty, had gained a reputation for allowing no evil to stand before her.\\n   Markovia had long considered Strahd a mad tyrant, but only after his transformation into a vampire did she dare to challenge him. As she rallied her followers and prepared to march on Castle Ravenloft, Strahd sent a group of vampire spawn to her abbey. They confronted Markovia and were destroyed to a one.\\n   Suffused with confidence born of a righteous victory, Markovia advanced on Castle Ravenloft. A great battle raged from the catacombs to the parapets. In the end, Markovia never returned to Barovia, and Strahd long afterward walked with a limp and a grimace of pain. It is said that he trapped Markovia in a crypt beneath his castle, and her remains linger there yet.\\n   The essence of Markovia's saintliness passed partly into her bones as the rest of her body decomposed. Her remaining thighbone is imbued with power that inflicts grievous injury on the undead.\\n   Mace of Disruption. When you hit a fiend or an undead with this magic weapon, that creature takes an extra 2d6 radiant damage. If the target has 25 hit points or fewer after taking this damage, it must succeed on a DC 15 Wisdom saving throw or be destroyed. On a successful save, the creature becomes frightened of you until the end of your next turn.\\n   While you hold this weapon, it sheds bright light in a 20-foot radius and dim light for an additional 20 feet.\",\r\n\tattunement : true,\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*markovia)(?=.*thighbone).*$/i,\r\n\t\tname : \"Saint Markovia's Thighbone\",\r\n\t\tsource : [[\"CoS\", 222]],\r\n\t\tdescription : \"Fiend/undead +2d6 radiant damage, frightened until my next turn ends, and if HP<26, DC 15 Wis save or die\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"silver dragon shield +2\"] = {\r\n\tname : \"Silver Dragon Shield +2\",\r\n\tsource : [[\"CoS\", 68]],\r\n\ttype : \"shield\",\r\n\trarity : \"rare\",\r\n\tdescription : \"While holding this shield, I have a +2 bonus to AC. This bonus is in addition to the shield's normal bonus to AC. It is emblazoned with a stylized silver dragon that is the emblem of the Order of the Silver Dragon. The shield whispers warnings to me, granting me a +2 bonus to initiative while I am not incapacitated.\",\r\n\tdescriptionFull : \"While holding this shield, you have a +2 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\\n   The shield is emblazoned with a stylized silver dragon that is the emblem of the Order of the Silver Dragon (see Curse of Strahd, chapter 7). The shield whispers warnings to its bearer, granting a +2 bonus to initiative if the bearer isn't incapacitated.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Silver Dragon Shield +2\",\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : 2, text : \"While I carry the Silver Dragon Shield, it whispers warnings to me, granting me a +2 bonus to initiative rolls.\" }]\r\n}\r\nMagicItemsList[\"statuette of saint markovia\"] = {\r\n\tname : \"Statuette of Saint Markovia\",\r\n\tsource : [[\"CoS\", 152]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This golden statuette grants any good-aligned creature that carries it a +1 bonus to saving throws.\",\r\n\tdescriptionFull : \"This golden statuette grants any good-aligned creature that carries it a +1 bonus to saving throws.\",\r\n\taddMod : [{ type : \"save\", field : \"all\", mod : 1, text : \"While I carry the Statuette of Saint Markovia, I gain a +1 bonus to all my saving throws.\" }]\r\n}\r\nMagicItemsList[\"sunsword\"] = {\r\n\tname : \"Sunsword\",\r\n\tsource : [[\"CoS\", 223]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"As a bonus action, I can have this hilt create a blade of radiance. It acts like a longsword with +2 to hit and damage, does radiant damage (+1d8 to undead), has finesse, emits bright sunlight in a 15-ft radius and dim light in another 15 ft. As an action, I can change the light's radius by 5 ft. It is sentient, see Notes page.\",\r\n\tdescriptionLong : \"As a bonus action, I can have this longsword hilt create or dismiss a blade of pure radiance. While the blade exists, it acts like a longsword that has +2 to attack and damage rolls, does radiant damage, and has the finesse property. It deals +1d8 damage to undead and emits sunlight, bright light in a 15-ft radius and dim light in an additional 15-ft radius. As an action, I can expand or reduce both the bright and dim light's radius by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each. I'm proficient with it if I'm proficient with either longswords or shortswords. It is sentient, see Notes page.\",\r\n\tdescriptionFull : \"The Sunsword is a unique blade once possessed by Strahd's brother, Sergei von Zarovich. In its original form, it had a platinum hilt and guard, and a thin crystal blade as strong as steel.\\n   Strahd employed a powerful wizard named Khazan to destroy the weapon after Sergei's death. The first part of the process required the hilt and the blade to be separated, which Khazan accomplished. While Khazan was busying himself destroying the blade, his apprentice stole the hilt and fled. Khazan later located his apprentice's mutilated corpse in the Svalich Woods, but the hilt was nowhere to be found. To avoid the vampire's wrath, Khazan told Strahd that the entire weapon had been destroyed.\\n   The hilt, which is sentient, knows that it can never be reunited with its original crystal blade. It has, however, gained the properties of a sun blade.\\n   While grasping the hilt, you can use a bonus action to cause a blade of pure radiance to spring into existence, or make the blade disappear. While the blade exists, this magic longsword has the finesse property. If you are proficient with shortswords or longswords, you are proficient with the sun blade.\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When you hit an undead with it, that target takes an extra 1d8 radiant damage.\\n   The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the blade persists, you can use an action to expand or reduce its radius of bright and dim light by 5 feet each, to a maximum of 30 feet each or a minimum of 10 feet each.\\n   \" + toUni(\"Sentience\") + \". The Sunsword is a sentient chaotic good weapon with an Intelligence of 11, a Wisdom of 17, and a Charisma of 16. It has hearing and normal vision out to a range of 60 feet. The weapon communicates by transmitting emotions to the creature carrying it or wielding it.\\n   \" + toUni(\"Personality\") + \". The Sunsword's special purpose is to destroy Strahd, not so much because it wants to free the land of Barovia from evil but because it wants revenge for the loss of its crystal blade. The weapon secretly fears its own destruction.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \" (start/stop)\"], [\"action\", \" (change light)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /sunsword/i,\r\n\t\tname : \"Sunsword\",\r\n\t\tsource : [[\"CoS\", 223]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Finesse, versatile (1d10); +1d8 damage to undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.name == \"Sunsword\" && !fields.Proficiency) {\r\n\t\t\t\t\tfields.Proficiency = CurrentProfs.weapon.otherWea && CurrentProfs.weapon.otherWea.finalProfs.indexOf(\"shortsword\") !== -1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc([\r\n\t\t\t\"The Sunsword is a unique blade once possessed by Strahd's brother, Sergei von Zarovich. In its original form, it had a platinum hilt and guard, and a thin crystal blade as strong as steel.\",\r\n\t\t\t\"Strahd employed a powerful wizard named Khazan to destroy the weapon after Sergei's death. The first part of the process required the hilt and the blade to be separated, which Khazan accomplished. While Khazan was busying himself destroying the blade, his apprentice stole the hilt and fled. Khazan later located his apprentice's mutilated corpse in the Svalich Woods, but the hilt was nowhere to be found. To avoid the vampire's wrath, Khazan told Strahd that the entire weapon had been destroyed.\",\r\n\t\t\t\"The hilt, which is sentient, knows that it can never be reunited with its original crystal blade. It has, however, gained the properties of a sun blade. While grasping the hilt, I can use a bonus action to make a blade of pure radiance spring from the hilt, or cause the blade to disappear. While the blade exists, it functions as a magic longsword that has the finesse property. I'm proficient with it if I'm proficient with either shortswords or longswords.\",\r\n\t\t\t\"I gain a +2 bonus to attack and damage rolls made with this weapon, which deals radiant damage instead of slashing damage. When I hit an undead with it, that target takes an extra 1d8 radiant damage.\",\r\n\t\t\t\"The sword's luminous blade emits bright light in a 15-foot radius and dim light for an additional 15 ft. The light is sunlight. As an action while the blade persists, I can expand or reduce its radius of bright and dim light by 5 ft each, to a maximum of 30 ft each or a minimum of 10 ft each.\",\r\n\t\t\t\"The Sunsword is a sentient chaotic good weapon with an Intelligence of 11, a Wisdom of 17, and a Charisma of 16. It has hearing and normal vision out to a range of 60 feet. The weapon communicates by transmitting emotions to the creature carrying it or wielding it.\",\r\n\t\t\t\"The Sunsword's special purpose is to destroy Strahd, not so much because it wants to free the land of Barovia from evil but because it wants revenge for the loss of its crystal blade. The weapon secretly fears its own destruction\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20160906_SKT.js",
    "content": "var iFileName = \"pub_20160906_SKT.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the beasts from the Storm King's Thunder adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.SKT={\r\n\tname : \"Storm King's Thunder [beasts, items]\",\r\n\tabbreviation : \"SKT\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/storm-kings-thunder\",\r\n\tdate : \"2016/09/06\"\r\n};\r\n\r\n// Creatures [Crag Cat removed, because it is a monstrosity according to 2020 errata https://media.wizards.com/2020/dnd/downloads/SKT-Errata.pdf ]\r\nCreatureList[\"ice spider\"] = { // contributed by Nod_Hero\r\n\tname : \"Ice Spider\",\r\n\tnameAlt : [\"Spider, Ice\"],\r\n\tsource : [[\"SKT\", 127]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [14, 16, 12, 2, 11, 4],\r\n\tskills : {\r\n\t\t\"stealth\" : 7\r\n\t},\r\n\tsenses : \"Blindsight 10 ft; Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target also takes 2d8 poison damage, half on a DC 11 Constitution saving throw\"\r\n\t}, {\r\n\t\tname : \"Icy Web (Recharge 5-6)\",\r\n\t\tability : 2,\r\n\t\tdamage : [\"\\u2015\", \"\", \"Restrained\"],\r\n\t\trange : \"30/60 ft\",\r\n\t\tdescription : \"Target can escape as an action with a DC 12 Strength check, or by destroying the webbing (AC 10; 5 HP)\",\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"On a hit, the target is restrained by webbing and takes 1 cold damage at the start of each of its turns. As an action, the restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to poison and psychic damage).\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bite\",\r\n\t\tdescription : \"If the poison damage from the spider's bite attack reduces the target to 0 HP, the target is stable but poisoned for 1 hour, even after regaining HP, and is paralyzed while poisoned in this way.\"\r\n\t}, {\r\n\t\tname : \"Spider Climb\",\r\n\t\tdescription : \"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t}, {\r\n\t\tname : \"Web Sense\",\r\n\t\tdescription : \"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.\"\r\n\t}, {\r\n\t\tname : \"Web Walker\",\r\n\t\tdescription : \"The spider ignores movement restrictions caused by webbing.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Icy Web (Recharge 5-6)\",\r\n\t\tdescription : \"See attack. On a hit, the target is restrained by webbing and takes 1 cold damage at the start of each of its turns. As an action, the restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to bludgeoning, poison, and psychic damage).\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Blindsight 10 ft, Darkvision 60 ft.\",\r\n\t\t\"##Bite##. If the poison damage reduces the target to 0 HP, the target is stable but poisoned and paralyzed for 1 hour, even after regaining HP.\",\r\n\t\t\"##Spider Climb##. Climb difficult surfaces, including upside down, without an ability check.\",\r\n\t\t\"##Web Sense##. Knows the exact location of any other creature in contact with the same web.\",\r\n\t\t\"##Web Walker##. No movement restrictions from webbing.\",\r\n\t].join(typePF ? \"\\n\" : \" \"),\r\n};\r\nCreatureList[\"sheep\"] = {\r\n\tname : \"Sheep\",\r\n\tsource : [[\"SKT\", 142]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 10, 11, 2, 10, 5],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 0,\r\n\tattacks : [],\r\n\ttraits : [{\r\n\t\tname : \"Sure-Footed\",\r\n\t\tdescription : \"The sheep has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\r\n\t}]\r\n};\r\nCreatureList[\"pig\"] = {\r\n\tname : \"Pig\",\r\n\tsource : [[\"SKT\", 143]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 5,\r\n\thd : [1, 8],\r\n\tspeed : \"30 ft\",\r\n\tscores : [13, 11, 12, 2, 9, 5],\r\n\tpassivePerception : 9,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 0,\r\n\tattacks : []\r\n};\r\nCreatureList[\"hulking crab\"] = {\r\n\tname : \"Hulking Crab\",\r\n\tnameAlt : [\"Crab, Hulking\"],\r\n\tsource : [[\"SKT\", 240]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 17,\r\n\thp : 76,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"20 ft, swim 30 ft\",\r\n\tscores : [19, 8, 16, 3, 11, 3], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"stealth\" : 2\r\n\t},\r\n\tsenses : \"Blindsight 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\t\tname : \"Claws\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tmodifiers : [-4, \"\"],\r\n\t\t\tabilitytodamage : false\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Amphibious\",\r\n\t\t\tdescription : \"The hulking crab can breate air and water.\"\r\n\t\t}, {\r\n\t\t\tname : \"Shell Camouflage\",\r\n\t\t\tdescription : \"While the hulking crab remains motionless with its eyestalks and pincers tucked close to its body, it resembles a natural formation or a pile of detritus. A creature within 30 feet of it can discern its true nature with a DC 15 Intelligence (Nature) check.\"\r\n\t\t}\r\n\t]\r\n};\r\nCreatureList[\"tressym\"] = {\r\n\tname : \"Tressym\",\r\n\tsource : [[\"SKT\", 242]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 5,\r\n\thd : [2, 4], //[#, die]\r\n\tspeed : \"40 ft, climb 30 ft, fly 40 ft\",\r\n\tscores : [3, 15, 10, 11, 12, 12], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 5,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 15,\r\n\tlanguages : \"understands Common but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\t\tname : \"Claws\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tmodifiers : [-4, \"\"],\r\n\t\t\tabilitytodamage : false\r\n\t\t}\r\n\t],\r\n\ttraits : [{\r\n\t\t\tname : \"Detect Invisibility\",\r\n\t\t\tdescription : \"Within 60 feet of the tressym, magical invisibility fails to conceal anything from the tressym's sight.\"\r\n\t\t}, {\r\n\t\t\tname : \"Keen Smell\",\r\n\t\t\tdescription : \"The tressym has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t\t}, {\r\n\t\t\tname : \"Poison Sense\",\r\n\t\t\tdescription : \"The tressym can detect whether a substance is poisonous by taste, touch, or smell.\"\r\n\t\t}\r\n\t],\r\n\twildshapeString : [\r\n\t\t\"##Languages##. Understands Common but can't speak.\",\r\n\t\t\"##Senses##. Darkvision 60 ft; Advantage on Wisdom (Perception) checks that rely on smell.\",\r\n\t\t\"##Immunities##. Poison damage, poisoned condition.\",\r\n\t\t\"##Detect Invisibility##. Magical invisibility fails to conceal anything from sight, out to 60 ft.\",\r\n\t\t\"##Poison Sense##. Detect whether a substance is poisonous by taste, touch, or smell.\",\r\n\t].join(\"\\n\"),\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"faerie dust\"] = { // contains contributions by Nod_Hero\r\n\tname : \"Faerie Dust\",\r\n\tsource : [[\"SKT\", 35]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"A pinch of this dust can substitute for the material components of any enchantment spell of 3rd level or lower. If a pinch of faerie dust is sprinkled on a creature, roll percentile dice and consult the Faerie Dust Table to determine the effect, see notes.\",\r\n\tdescriptionFull : \"This small pouch contains ten pinches of faerie dust. A pinch of this dust can substitute for the material components of any enchantment spell of 3rd level or lower. If a pinch of faerie dust is sprinkled on a creature, roll percentile dice and consult the Faerie Dust table to determine the effect.\"+\r\n\t\"\\n\\nFaerie Dust Table\"+\r\n\t\"\\n   d100\\tMagical Effect\"+\r\n\t\"\\n  01-70\\tThe creature sprinkled with dust gains a flying\"+\r\n\t\t\"\\n\\tspeed of 60 feet for 10 minutes.\"+\r\n\t\"\\n  71-80\\tThe creature sprinkled with dust must succeed\"+\r\n\t\t\"\\n\\ton a DC 11 Constitution saving throw or fall\"+\r\n\t\t\"\\n\\tunconscious for 1 minute. The creature awakens\"+\r\n\t\t\"\\n\\tif it takes damage or if it is shaken or slapped as\"+\r\n\t\t\"\\n\\tan action.\"+\r\n\t\"\\n  81-90\\tThe creature sprinkled with dust must succeed on\"+\r\n\t\t\"\\n\\ta DC 11 Wisdom saving throw or be affected by a\"+\r\n\t\t\"\\n\\tconfusion spell.\"+\r\n\t\"\\n  91-00\\tThe creature sprinkled with dust becomes\"+\r\n\t\t\"\\n\\tinvisible for 1 hour. Any equipment it is wearing\"+\r\n\t\t\"\\n\\tor carrying is invisible as long as it is on the\"+\r\n\t\t\"\\n\\tcreature's person. The effect on the creature ends\"+\r\n\t\t\"\\n\\tif it attacks, deals any damage, or casts a spell.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Faerie Dust Table\",\r\n\t\tnote : \"\\n   d100 \\tMagical Effect\"+\r\n\t\t\t\"\\n  01-70\\tThe creature sprinkled with dust gains a flying speed of 60 ft\"+\r\n\t\t\t\"\\n\\tfor 10 minutes.\"+\r\n\t\t\t\"\\n  71-80\\tThe creature sprinkled with dust must succeed on a DC 11\"+\r\n\t\t\t\t\"\\n\\tConstitution saving throw or fall unconscious for 1 minute.\"+\r\n\t\t\t\t\"\\n\\tThe creature awakens if it takes damage or if it is shaken or slapped\"+\r\n\t\t\t\t\"\\n\\tas an action.\"+\r\n\t\t\t\"\\n  81-90\\tThe creature sprinkled with dust must succeed on a DC 11 Wisdom\"+\r\n\t\t\t\t\"\\n\\tsaving throw or be affected by a confusion spell.\"+\r\n\t\t\t\"\\n  91-00\\tThe creature sprinkled with dust becomes invisible for 1 hour.\"+\r\n\t\t\t\t\"\\n\\tAny equipment it is wearing or carrying is invisible as long as it is on\"+\r\n\t\t\t\t\"\\n\\tthe creature's person. The effect on the creature ends if it attacks,\"+\r\n\t\t\t\t\"\\n\\tdeals any damage, or casts a spell.\"\r\n\t}],\r\n\tusages : 10,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"banner of the krig rune\"] = {\r\n\tname : \"Banner of the Krig Rune\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"As an action, I can furl or unfurl this 5 ft by 3 ft banner. While it is unfurled and I'm attuned to it, I can use its magical properties to see invisible creatures, and each once per short rest emanate courage or protect from ranged attacks. I can even transfer them over to a place, destroying the banner in the process. See Notes.\",\r\n\tdescriptionFull : \"Crafted from a thick, red fabric, this banner measures 5 feet high and 3 feet wide. The krig (war) rune is displayed on the fabric with round, metal plates sewn into it. It can be attached to a 10-foot pole to serve as a standard. Furling or unfurling the banner requires an action. The banner has the following properties.\\n   \" + toUni(\"Mark of Courage\") + \". As a bonus action, you can touch the unfurled banner and cause it to emanate courage. You and your allies are immune to the frightened condition while within 20 feet of it. This benefit lasts for 10 minutes or until the banner is furled. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Sentinel Standard\") + \". You can see invisible creatures while they are within 20 feet of the unfurled banner and within your line of sight.\\n   \" + toUni(\"Standard's Shield\") + \". As a bonus action, you can touch the unfurled banner and invoke this power. Any ranged attack roll that targets you or an ally of yours has disadvantage if the target is within 20 feet of the unfurled banner. This benefit lasts for 1 minute or until the banner is furled. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Battle\") + \". You can transfer the banner's magic to a place by tracing the krig rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 500-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the banner to be within 5 feet of you and during which you choose creatures, creature types, or both that will benefit from the magic. At the end, the banner is destroyed, and the area gains the following property:\\n   While in the 500-foot-radius sphere, the creatures you chose during the transfer process are immune to the frightened condition and gain a +1 bonus to attack rolls and AC.\",\r\n\tattunement : true,\r\n\taction : [\r\n\t\t[\"bonus action\", \"Mark of Courage (Krig Banner)\"],\r\n\t\t[\"bonus action\", \"Standard's Shield (Krig Banner)\"]\r\n\t],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Mark of Courage (Krig Banner)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}, {\r\n\t\tname : \"Standard's Shield (Krig Banner)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"Crafted from a thick, red fabric, this banner measures 5 ft high and 3 ft wide. The krig (war) rune is displayed on the fabric with round, metal plates sewn into it. It can be attached to a 10-ft pole to serve as a standard. Furling or unfurling the banner requires an action. The banner has the following properties.\",\r\n\t\t\t\"As a bonus action, I can touch the unfurled banner and use the Mark of Courage, have it emanate courage. Me and my allies are immune to the frightened condition while within 20 ft of it. This benefit lasts for 10 minutes or until the banner is furled. Once I use this property, I can't use it again until I finish a short or long rest.\",\r\n\t\t\t\"I can see invisible creatures while they are within 20 ft of the unfurled banner and within my line of sight.\",\r\n\t\t\t\"As a bonus action, I can touch the unfurled banner and invoke the Standard's Shield power. While within 20 ft of the unfurled banner, me an my allies are protected from ranged attacks. Any ranged attack roll targetting those protected has disadvantage. This benefit lasts for 1 minute or until the banner is furled. Once I use this property, I can't use it again until I finish a short or long rest.\\n\",\r\n\t\t\t\"I can transfer the banner's magic to a place by tracing the krig rune on the ground with my finger. The point where I trace it becomes the center of a spherical area of magic that has a 500-ft radius and that is fixed to the place. The transfer takes 8 hours of work that requires the banner to be within 5 ft of me and during which I choose creatures, creature types, or both that will benefit from the magic. At the end, the banner is destroyed, and the creatures I chose during the transfer process are immune to the frightened condition and gain a +1 bonus to attack rolls and AC while within the area.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"blod stone\"] = {\r\n\tname : \"Blod Stone\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"As an action while I carry this diamond with the blod rune, I can divine the location of the creature nearest to me that is related to the blood in the item and that isn't undead. I sense the distance and direction of the creature. The diamond is worth at least 5000 gp. If it is destroyed, the blood inside evaporates.\",\r\n\tdescriptionFull : \"This diamond contains the blood of a creature\\u2014blood that appears in the form of the blod (blood) rune. While the item is on your person, you can use your action to divine the location of the creature nearest to you that is related to the blood in the item and that isn't undead. You sense the distance and direction of the creature relative to your location. The creature is either the one whose blood is in the item or a blood relative.\\n   This item is made from a large diamond worth at least 5,000 gp. When the blood of a creature is poured onto it during the creation process, the blood seeps into the heart of the gem. If the gem is destroyed, the blood evaporates and is gone forever. A vengeful being might use a blod stone to hunt down an entire bloodline. Such stones are sometimes given as gifts to siblings or handed down from parent to child.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"claw of the wyrm rune\"] = {\r\n\tname : \"Claw of the Wyrm Rune\",\r\n\tsource : [[\"SKT\", 233]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This silvered dragon's claw gives me resistance to dragon breath weapons. As an action 3 times per dawn, I can have a dragon within 30 ft make a DC 15 Con save or gain vulnerability to all damage types until the end of my next turn. I can transfer its magic to a place, destroying the claw in the process. See book.\",\r\n\tdescriptionFull : \"This dragon's claw has been covered with a coat of molten silver, upon which has been inscribed the wyrm (dragon) rune. The claw has the following properties.\\n   \" + toUni(\"Wyrmslayer\") + \". As an action, you can point the claw at a dragon within 30 feet of you. The dragon must then succeed on a DC 15 Constitution saving throw or gain vulnerability to all damage types until the end of your next turn. This property can be used three times. The claw regains all expended uses at the next dawn.\\n   \" + toUni(\"Wyrm Shield\") + \". While the claw is displayed on your person, you have resistance to the damage caused by any dragon's breath weapon.\\n   \" + toUni(\"Wyrm Ward\") + \". You can transfer the c1aw's magic to a place by tracing the wyrm rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 100-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the claw to be within 5 feet of you. At the end, the claw is destroyed, and the area gains the following property:\\n   While in the 100-foot-radius sphere, any dragon has disadvantage on saving throws and can have a flying speed no higher than 10 feet.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Dragon Breath Weapons\"],\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"conch of teleportation\"] = {\r\n\tname : \"Conch of Teleportation\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This 2.5 ft conch shell is inscribed with the uvar rune. As an action once per dawn, I can blow into the shell, teleporting myself and up to 8 willing creatures to a predetermined location without any chance of mishap. The location is determined at creation of the item and can't be changed.\",\r\n\tdescriptionFull : \"This item is an ordinary, albeit rather large, conch shell that has been inscribed with the uvar rune. The conch measures 2\\xBD feet long and weighs 20 pounds.\\n   As an action, you can cast the Teleport spell by blowing into the shell. The destination is fixed, and there is no chance of either a mishap or the spell being off target. Anyone teleported by the conch appears in a specific location designated by the item's creator at the time the uvar rune is inscribed on the conch. It doesn't allow teleportation to any other destination. Once its spell is cast, the conch can't be used again until the next dawn.\",\r\n\tweight : 20,\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"gavel of the venn rune\"] = {\r\n\tname : \"Gavel of the Venn Rune\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This wooden gavel imposes disadv. on attacks against me before my first turn in a combat. As an action once per long rest, I can strike it on a hard surface and have the first creature that deals damage with an attack within 60 ft of the strike take half that damage itself as psychic damage. Can transfer rune, see book.\",\r\n\tdescriptionFull : \"This wooden gavel is small by giant reckoning but nearly the size of a warhammer in human hands. The venn (friend) rune is inscribed in mithral in the base of the haft. Among giants, this item is used as part of rituals to resolve disputes. The gavel has the following properties.\\n   \" + toUni(\"Arbiters Shield\") + \". At the start of every combat, attack rolls against you have disadvantage before the start of your first turn, provided that the gavel is on your person.\\n   \" + toUni(\"Bond of Amity\") + \". As an action, you can use the gavel to strike a point on a hard surface. The first time in the next minute that a creature within 60 feet of that point deals damage to another creature with an attack that hits, the attacker takes psychic damage equal to half the damage it dealt to the target. Once you use this property, you can't use it again until you finish a long rest.\\n   \" + toUni(\"Gift of Truth\") + \". You can transfer the gavel's magic to a place by tracing the venn rune on the ground with your finger. The point where you trace it becomes the center of a spherical area of magic that has a 30-foot radius and that is fixed to the place. The transfer takes 8 hours of work that requires the gavel to be within 5 feet of you. At the end, the gavel is destroyed, and the area gains the following property:\\n   Whenever a creature utters a lie while within the 30-foot-radius sphere, that creature takes 5 psychic damage and flinches visibly.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n}\r\nMagicItemsList[\"gurt's greataxe\"] = {\r\n\tname : \"Gurt's Greataxe\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This giant-sized greataxe adds +1 to hit and damage and deals 3d12 slashing damage (+2d12 vs. humans). When in an area that is below 0 \\u00B0F, it sheds bright light in a 20-ft radius and dim light for another 20 ft. As an action once per dawn, I can use it to cast Heat Metal (DC 13) that deals cold damage instead of fire.\",\r\n\tdescriptionFull : \"In the Year of the Icy Axe (123 DR), the frost giant Lord Gurt fell to Uthgar Gardolfsson\\u2014leader of the folk who would become the Uthgardt barbarians\\u2014in a battle that marked the ascendance of humankind over the giants in the Dessarin Valley. Gurt's greataxe was buried in Morgur's Mound until it was unearthed and brought back to Waterdeep. After laying in the city's vaults for decades, the axe was given to Harshnag, a frost giant adventurer, in recognition of his service to Waterdeep. Uthgardt barbarians recognize the weapon on sight and attack any giant that wields it.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. It is sized for a giant, weighs 325 pounds, and deals 3d12 slashing damage on a hit, plus an extra 2d12 slashing damage if the target is human.\\n   The axe sheds light as a torch when the temperature around it drops below 0 degrees Fahrenheit. The light can't be shut off in these conditions.\\n   As an action, you can cast a version of the Heat Metal spell (save DC 13) that deals cold damage instead of fire damage. Once this power is used, it can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 325,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /^(?=.*gurt)(?=.*greataxe).*$/i,\r\n\t\tname : \"Gurt's Greataxe\",\r\n\t\tsource : [[\"SKT\", 234]],\r\n\t\tdamage : [3, 12, \"slashing\"],\r\n\t\tweight : 325,\r\n\t\tdescription : \"Heavy, two-handed; +2d12 damage against humans\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tfixedDC : 13,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Deals cold damage\",\r\n\t\tspells : [\"heat metal\"],\r\n\t\tselection : [\"heat metal\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"heat metal\" : {\r\n\t\t\tdescription : \"1 metal obj on touch 2d8 Cold dmg; save or drop obj; if held: dis. atk/chk; bns a cool obj again\",\r\n\t\t\tdescriptionShorter : \"1 metal obj, touch it 2d8 Cold dmg; save or drop it; if held: dis. atk/chk; bns a redo\",\r\n\t\t\tchanges : \"Using Gurt's Greataxe, the spell deals cold damage instead of fire.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"ingot of the skold rune\"] = {\r\n\tname : \"Ingot of the Skold Rune\",\r\n\tsource : [[\"SKT\", 234]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the ingot as it is, or transfer its runic properties over to a shield or two-handed melee weapon.\",\r\n\tdescriptionFull : \"This appears to be a simple ingot of iron ore, about a foot long and a few inches across. Inspection of its surface reveals the faint, silvery outline of the skold (shield) rune. The ingot has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Runic Shield\") + \". You have a +1 bonus to AC.\\n   \" + toUni(\"Shield Bond\") + \". As a bonus action, choose a creature that you can see within 30 feet of you, other than yourself. Until the end of your next turn, any damage the target takes is reduced to 1, but you take half the damage prevented in this way. The damage you take can't be reduced in any way. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Shield Ward\") + \". You can transfer the ingot's magic to a nonmagical item\\u2014a shield or a two-handed melee weapon-by tracing the skold rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the ingot is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Shield\") + \". The shield is now a rare magic item that requires attunement. Its magic gives you a +1 bonus to AC, and the first time after each of your long rests that damage reduces you to 0 hit points, you are instead reduced to 1 hit point. You must be wielding the shield to gain these benefits.\\n \\u2022 \" + toUni(\"Weapon\") + \". The weapon is now an uncommon magic weapon. It grants you a +1 bonus to AC while you're holding it.\",\r\n\tchoices : [\"Ingot\", \"Transferred to a shield\", \"Transferred to a two-handed melee weapon\"],\r\n\t\"ingot\" : {\r\n\t\tname : \"Ingot of the Skold Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This iron ingot gives me +1 AC. As a bonus action, I can use it to choose a creature within 30 ft other than myself. Until the end of my next turn, any damage it takes is reduced to 1, but I take half the prevented damage and this damage can't be reduced in any way. I can transfer the rune to a shield or weapon, see book.\",\r\n\t\tattunement : true,\r\n\t\textraAC : [{name : \"Skold Rune\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t},\r\n\t\"transferred to a shield\" : {\r\n\t\tname : \"Skold Rune Shield\",\r\n\t\tsortname : \"Rune Shield, Skold\",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This shield gives my +1 AC on top of its normal bonus to AC. While carrying it, the first time after a long rest that damage reduces me to 0 HP, I drop to 1 HP instead.\",\r\n\t\tshieldAdd : [\"Skold Rune Shield\", 3, 6],\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t},\r\n\t\"transferred to a two-handed melee weapon\" : {\r\n\t\tname : \"Skold Rune Weapon\",\r\n\t\tsortname : \"Rune Weapon, Skold\",\r\n\t\ttype : \"weapon (any two-handed melee)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic weapon grants me a +1 bonus to AC.\",\r\n\t\textraAC : [{name : \"Skold Rune\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Skold Rune\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !(/melee/i).test(inObj.range) || !(/((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b/i).test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*\\bskold\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Skold Rune\" in the name of a weapon, it will be treated as the magic weapon Skold Rune Weapon.'\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"korolnor scepter\"] = {\r\n\tname : \"Korolnor Scepter\",\r\n\tsource : [[\"SKT\", 234]],\r\n\ttype : \"weapon (club)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This tapered mithral rod the size of a dwarf's forearm has 10 charges, regaining 1d6+4 at dawn. It can be wielded as a +3 club. As an action while below sea level, I can expend 1 charge to determine the distance to the surface. I can also use the charges to cast Sending (2 charges) and Teleport (3 charges).\",\r\n\tdescriptionFull : \"The Korolnor Scepter is one of ten Ruling Scepters of Shanatar, forged by the dwarven gods and given to the ruling houses of the ancient dwarven empire. The Korolnor Scepter's location was unknown for the longest time until a storm giant queen, Neri, found it in a barnacle-covered shipwreck at the bottom of the Trackless Sea. The Ruling Scepters are all roughly the same size and shape, but their materials and properties vary.\\n   The Korolnor Scepter is a tapered mithral rod as thick and long as a dwarf's forearm, with a small platinum knob at the bottom and a rounded disk adorned with a ring of seven tiny blue gems at the top.\\n   You gain a +3 bonus to attack and damage rolls made with this scepter, which can be wielded as a magic club.\\n   You can use the properties of the Wyrmskull Throne, as well as the properties of the scepter itself. The scepter has 10 charges, and it regains 1d6+4 expended charges at dawn. Its properties are as follows.\\n   If you are underground or underwater, you can use an action to expend 1 charge to determine the distance to the surface.\\n   As an action: you can expend 2 charges to cast the Sending spell from the scepter.\\n   As an action: you can expend 3 charges to cast the Teleport spell from the scepter. If the destination is within 60 feet of the Wyrmskull Throne, there is no chance of a teleport error or mishap occurring.\",\r\n\tattunement : true,\r\n\tweight : 2,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"teleport\"],\r\n\t\tselection : [\"teleport\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"club\",\r\n\t\tregExpSearch : /^(?=.*korolnor)(?=.*scepter).*$/i,\r\n\t\tname : \"Korolnor Scepter\",\r\n\t\tsource : [[\"SKT\", 234]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"navigation orb\"] = {\r\n\tname : \"Navigation Orb\",\r\n\tsource : [[\"SKT\", 235]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This hollow 7-ft diameter sphere of thin, polished mithral bears the skye rune and is keyed to a particular cloud castle. It only works while within that castle. As an action while touching it, I can use it to move the cloud castle 1 mph until commanded otherwise, have it stop, or turn 90 degrees.\",\r\n\tdescriptionFull : \"A navigation orb is a hollow, 7-foot-diameter sphere of thin, polished mithral with a large skye (cloud) rune embossed on its outer surface. The orb levitates 10 feet above the ground and is keyed to a particular cloud castle, allowing you to control that castle's altitude and movement while the orb is inside the castle. If the orb is destroyed or removed from its castle, the castle's altitude and location remain fixed until the orb is returned or replaced.\\n   As an action, you can cause one of the following effects to occur if you are touching the orb:\\n   The castle moves at a speed of 1 mph in a straight line, in a direction of your choice, until the castle stops or is made to stop, or until another action is used to change its direction. If this movement brings the castle into contact with the ground, the castle lands gently.\\n   The castle, if it is moving, comes to a gradual stop.\\n   The castle makes a slow, 90-degree turn clockwise or counterclockwise (turning a northerly view into a westerly view, for example). The castle can turn while it is moving in a straight line.\\n   Any creature touching the orb knows the altitude of the base of the castle above the ground or water below it.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"opal of the ild rune\"] = {\r\n\tname : \"Opal of the Ild Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I can use the opal as it is, or transfer its runic properties over to a suit of armor or weapon.\",\r\n\tdescriptionFull : \"This triangular fire opal measures about three inches on each side and is half an inch thick. The ild (fire) rune shimmers within its core, causing it to be slightly warm to the touch. The opal has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Ignite\") + \". As an action, you can ignite an object within 10 feet of you. The object must be flammable, and the fire starts in a circle no larger than 1 foot in diameter.\\n   \" + toUni(\"Fires Friend\") + \". You have resistance to cold damage.\\n   \" + toUni(\"Fire Tamer\") + \". As an action, you can extinguish any open flame within 10 feet of you. You choose how much fire to extinguish in that radius.\\n   \" + toUni(\"Gift of Flame\") + \". You can transfer the opal's magic to a nonmagical item\\u2014a weapon or a suit of armor\\u2014by tracing the ild rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the opal is destroyed, and the rune appears in red on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Weapon\") + \". The weapon is now an uncommon magic weapon. It deals an extra 1d6 fire damage to any target it hits.\\n \\u2022 \" + toUni(\"Armor\") + \". The armor is now a rare magic item that requires attunement. You have resistance to cold damage while wearing the armor.\",\r\n\tchoices : [\"Opal\", \"Transferred to a suit of armor\", \"Transferred to a weapon\"],\r\n\t\"opal\" : {\r\n\t\tname : \"Opal of the Ild Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This triangular fire opal gives me resistance to cold damage. As an action, I can use it to extinguish any open flames of my choice within 10 ft, or I can ignite a flammable object within 10 ft with a fire up to 1 ft in diameter. I can undertake an 8 hour ritual to transfer the rune to a suit of armor or weapon, see book.\",\r\n\t\tattunement : true,\r\n\t\tdmgres : [\"Cold\"],\r\n\t\taction : [[\"action\", \"\"]]\r\n\t},\r\n\t\"transferred to a suit of armor\" : {\r\n\t\tname : \"Ild Rune Armor\",\r\n\t\tsortname : \"Rune Armor, Ild\",\r\n\t\ttype : \"armor (any)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This magic armor gives me resistance to cold damage.\",\r\n\t\tattunement : true,\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Ild Rune\"]\r\n\t\t}\r\n\t},\r\n\t\"transferred to a weapon\" : {\r\n\t\tname : \"Ild Rune Weapon\",\r\n\t\tsortname : \"Rune Weapon, Ild\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic weapon deals +1d6 fire damage to any target it hits.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Ild Rune\"]\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*\\bild\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 fire damage';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Ild Rune\" in a the name of a weapon, it will be treated as the magic weapon Ild Rune Weapon, which deals +1d6 fire damage.'\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"orb of the stein rune\"] = {\r\n\tname : \"Orb of the Stein Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I can use the orb as it is, or transfer its runic properties over to a shield or pair of boots.\",\r\n\tdescriptionFull : \"This orb of granite is about the size of an adult human's fist. The stein (stone) rune appears on it in the form of crystalline veins that run across the surface. The orb has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Indomitable Stand\") + \". As an action, you can channel the orb's magic to hold your ground. For the next minute or until you move any distance, you have advantage on all checks and saving throws to resist effects that force you to move. In addition, any enemy that moves to a space within 10 feet of you must succeed on a DC 12 Strength saving throw or be unable to move any farther this turn.\\n   \" + toUni(\"Stone Soul\") + \". You can't be petrified.\\n   \" + toUni(\"Earthen Step\") + \". You can cast Meld into Stone as a bonus action. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Stone\") + \". You can transfer the orb's magic to a nonmagical item\\u2014a shield or a pair of boots\\u2014by tracing the stein rune there with your finger. The transfer takes8 hours of work that requires the two items to be within 5 feet of each other. At the end, the orb is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Shield\") + \". The shield is now a rare magic item that requires attunement. While you wield it, you have resistance to all damage dealt by ranged weapon attacks.\\n \\u2022 \" + toUni(\"Boots\") + \". The pair of boots is now an uncommon magic item that requires attunement. While you wear the boots, you have advantage on Strength saving throws, and you can use your reaction to avoid being knocked prone.\",\r\n\tchoices : [\"Orb\", \"Transferred to a shield\", \"Transferred to a pair of boots\"],\r\n\t\"orb\" : {\r\n\t\tname : \"Orb of the Stein Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This orb gives me petrification immunity. As a bonus action once per short rest, I can cast Meld Into Stone. As an action, I can hold my ground for 1 min or until I move any distance, giving me adv. on saves/checks vs. moving and enemies moving to a space in 10 ft must make a DC 12 Str save or have speed 0 for this turn.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { immune : [\"petrified\"] },\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"meld into stone\"],\r\n\t\t\tselection : [\"meld into stone\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"meld into stone\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\tchanges : \"Using the Orb of the Stein Rune, I can cast this as a bonus action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a shield\" : {\r\n\t\tname : \"Stein Rune Shield\",\r\n\t\tsortname : \"Rune Shield, Stein\",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This shield gives me resistance to all damage dealt by range weapon attack.\",\r\n\t\tattunement : true,\r\n\t\tshieldAdd : \"Stein Rune Shield\",\r\n\t\tdmgres : [\"Ranged Weapon Attacks\"]\r\n\t},\r\n\t\"transferred to a pair of boots\" : {\r\n\t\tname : \"Stein Rune Boots\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"These pair of boots give me advantage on Strength saving throws. As a reaction, I can avoid being knocked prone.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { text : [\"Adv. on Str saves\"] },\r\n\t\tadvantages : [\"Strength\", true],\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t}\r\n}\r\nMagicItemsList[\"pennant of the vind rune\"] = {\r\n\tname : \"Pennant of the Vind Rune\",\r\n\tsource : [[\"SKT\", 235]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the pennant as it is, or transfer its runic properties over to a suit of armor, pair of boots, or cloak.\",\r\n\tdescriptionFull : \"This blue pennant is crafted from silk and is five feet long and whips about as if buffeted by a wind. The vind (wind) rune appears on its surface, looking almost like a cloud. The pennant has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Wind Step\") + \". As an action, you fly up to 20 feet. If you don't land at the end of this flight, you fall unless you have another means of staying aloft.\\n   \" + toUni(\"Comforting Wind\") + \". You can't suffocate.\\n   \" + toUni(\"Winds Grasp\") + \". As a reaction when you fall, you can cause yourself to take no damage from the fall. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Wind Walker\") + \". While you are attuned to this rune, you can cast Levitate as a bonus action. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Wind\") + \". You can transfer the pennant's magic to a nonmagical item\\u2014a suit of armor, a pair of boots, or a cloak\\u2014by tracing the vind rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the pennant is destroyed, and the rune appears in silver on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Armor\") + \". The armor is now an uncommon magic item that requires attunement. You gain a bonus to speed of 5 feet while you wear the armor, and if it normally imposes disadvantage on Stealth checks, it no longer does so.\\n \\u2022 \" + toUni(\"Boots/Cloak\") + \". The pair of boots or cloak is now a rare magic item that requires attunement. While wearing the item, you can convert up to 20 feet of your movement on each of your turns into flight. If you don't land at the end of this flight, you fall unless you have another means of staying aloft. You can also cast Feather Fall once from the item, and you regain the ability to do so when you finish a short or long rest.\",\r\n\tchoices : [\"Pennant\", \"Transferred to a suit of armor\", \"Transferred to a pair of boots or cloak\"],\r\n\t\"pennant\" : {\r\n\t\tname : \"Pennant of the Vind Rune \",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This blue pennant stops me from suffocating. As an action, I can fly up to 20 ft, but won't stay aloft at the end of it. As a reaction once per short rest when I fall, I can use Wind Grasp to take no damage from the fall. As a bonus action once per short rest, I can cast Levitate. I can transfer this rune, see book.\",\r\n\t\tattunement : true,\r\n\t\tsavetxt : { immune : [\"suffocation\"] },\r\n\t\taction : [\r\n\t\t\t[\"action\", \"Wind Step (Vind Rune)\"],\r\n\t\t\t[\"reaction\", \"Winds Grasp (Vind Rune)\"]\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Levitate (Vind Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Winds Grasp (Vind Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"levitate\"],\r\n\t\t\tselection : [\"levitate\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"levitate\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\tchanges : \"Using the Pennant of the Vind Rune, I can cast this as a bonus action.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a suit of armor\" : {\r\n\t\tname : \"Vind Rune Armor\",\r\n\t\tsortname : \"Rune Armor, Vind\",\r\n\t\ttype : \"armor (any)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This magic armor doesn't impose disadvantage on stealth checks and gives me a 5 ft bonus to my speed.\",\r\n\t\tattunement : true,\r\n\t\tspeed : { allModes : { bonus : \"+5\" } },\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Vind Rune\"],\r\n\t\t\tnoStealthDis : /^(?=.*\\bvind)(?=.*rune\\b).*$/i\r\n\t\t}\r\n\t},\r\n\t\"transferred to a pair of boots or cloak\" : {\r\n\t\tname : \"Vind Rune Boots or Cloak\",\r\n\t\tnameAlt : \"Vind Rune Boots\",\r\n\t\tnameTest : \"Vind Rune Cloak\",\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing this item, I can convert up to 20 ft of my movement on each of my turns into flight. If I don't land at the end of this flight, I fall unless I have other means of staying aloft. Once per short rest, I can use this item to cast Feather Fall.\",\r\n\t\tattunement : true,\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"feather fall\"],\r\n\t\t\tselection : [\"feather fall\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"potion of giant size\"] = {\r\n\tname : \"Potion of Giant Size\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"potion\",\r\n\trarity : \"legendary\",\r\n\tdescription : \"Once as an action, I can drink this potion of pale white liquid or administer it to another to grow to Huge for 24 hours. This gives Str 25, +5 ft reach, double max HP (current HP also doubles), and roll three times damage die for weapons. When its effect ends, HP above the max HP becomes temporary HP.\",\r\n\tdescriptionFull : \"When you drink this potion, you become Huge for 24 hours if you are Medium or smaller, otherwise the potion does nothing. For that duration, your Strength becomes 25, if it isn't already higher, and your hit point maximum is doubled (your current hit points are doubled when you drink the potion). In addition, the reach of your melee attacks increases by 5 feet.\\n   Everything you are carrying and wearing also increases in size for the duration. When rolling damage for weapons enlarged in this manner, roll three times the normal number of dice; for example, an enlarged longsword would deal 3d8 slashing damage (instead of1d8), or 3d10 slashing damage (instead of 1d10) when used with two hands.\\n   When the effect ends, any hit points you have above your hit point maximum become temporary hit points. This potion is a pale white liquid made from the tongue of a giant clam, with a pungent aroma akin to that of rotting algae. It tastes sweet, however, when consumed.\",\r\n\tweight : 0.5\r\n}\r\nMagicItemsList[\"robe of serpents\"] = {\r\n\tname : \"Robe of Serpents\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"As a bonus action, I can remove one of the 1d4+3 emblazoned, brightly colored snakes from this robe and have it turn into a giant poisonous snake within 5 ft of me. It acts on my initiative and attacks those hostile to me. It disappears after 1 hour, when it drops to 0 HP, or when I dismiss it (no action).\",\r\n\tdescriptionFull : \"A robe of serpents is a stylish silk garment that is popular among wealthy nobles and retired assassins. The robe is emblazoned with 1d4+3 stylized serpents, all brightly colored.\\n   As a bonus action on your turn, you can transform one of the robe's serpents into a giant poisonous snake. The snake instantly falls from the robe, slithers into an unoccupied space next to you, and acts on your initiative count. The snake can tell friendly creatures from hostile ones and attacks the latter. The snake disappears in a harmless puff of smoke after 1 hour, when it drops to 0 hit points, or when you dismiss it (no action required). Once detached, a snake can't return to the robe. When all of the robe's snakes have detached, the robe becomes a nonmagical garment.\",\r\n\tattunement : true,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"1d4+3\",\r\n\trecovery : \"Never\"\r\n}\r\nMagicItemsList[\"rod of the vonindod\"] = {\r\n\tname : \"Rod of the Vonindod\",\r\n\tsource : [[\"SKT\", 236]],\r\n\ttype : \"rod\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"This 4 ft adamantine rod sized for a giant has 10 charges and regains 1d6+4 expended charges daily at dawn. I can expend 1 charge to cast Locate Object from it which has a range of 10 miles when used to locate objects made of adamantine. It has two prongs at one end and a molded handle grip on the other.\",\r\n\tdescriptionFull : \"The fire giant Duke Zalto hired a wizard to craft several of these adamantine rods. Each measures 4 feet long, weighs 100 pounds, and is sized to fit comfortably in a fire giant's hand. The rod has two prongs at one end and a molded handle grip on the opposite end.\\n   The rod has 10 charges and regains 1d6+4 of its expended charges daily at dawn. As an action, you can grasp it by the handle and expend 1 charge to cast the Locate Object spell from it. When the rod is used to detect objects made of adamantine, such as fragments of the Vonindod construct, its range increases to 10 miles.\",\r\n\tweight : 100,\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"locate object\"],\r\n\t\tselection : [\"locate object\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"locate object\" : {\r\n\t\t\tdescription : \"Learn direction to closest described kind or specific obj in 1000 ft (10 miles if adamantine); see book\",\r\n\t\t\tchanges : \"Using the Rod of the Vonindod, the spell detection range increases to 10 miles when used to locate adamantine objects.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"shard of the ise rune\"] = {\r\n\tname : \"Shard of the Ise Rune\",\r\n\ttype : \"wondrous item\",\r\n\tsource : [[\"SKT\", 236]],\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I can use the shard as it is, or transfer its runic properties over to a cloak or a pair of boots.\",\r\n\tdescriptionFull : \"This shard of ice is long and slender, roughly the size of a dagger. The ise (ice) rune glows within it. The shard has the following properties, which work only while it's on your person.\\n   \" + toUni(\"Frigid Touch\") + \". As an action, you can touch a body of water and freeze the water in a 10-foot-radius sphere around the spot you touched. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Frost Friend\") + \". You have resistance to fire damage.\\n   \" + toUni(\"Icy Mantle\") + \". As an action, you can touch yourself or another creature with water on your finger. The water creates an icy mantle of protection. The next time within the next minute that the target takes bludgeoning, slashing, or piercing damage, that damage is reduced to 0, and the mantle is destroyed. Once you use this property, you can't use it again until you finish a short or long rest.\\n   \" + toUni(\"Winter's Howl\") + \". As an action, you can cast Sleet Storm (spell save DC 17). You regain this ability after you finish a short or long rest.\\n   \" + toUni(\"Gift of Frost\") + \". You can transfer the shard's magic to a nonmagical item\\u2014a cloak or a pair of boots-by tracing the ise rune there with your finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the shard is destroyed, and the rune appears in blue on the chosen item, which gains a benefit based on its form:\\n \\u2022 \" + toUni(\"Cloak\") + \". The cloak is now a rare magic item that requires attunement. While wearing it, you have resistance to fire damage, and you have advantage on Dexterity (Stealth) checks made while in snowy terrain.\\n \\u2022 \" + toUni(\"Boots\") + \". The pair of boots is now a rare magic item that requires attunement. While wearing it, you ignore difficult terrain while walking, and you can walk on water.\",\r\n\tattunement : true,\r\n\tchoices : [\"Shard\", \"Transferred to a cloak\", \"Transferred to a pair of boots\"],\r\n\t\"shard\" : {\r\n\t\tname : \"Shard of the Ise Rune \",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This shard of ice gives me fire resistance. As an action, I can use Frigid Touch, freezing water in a 10-ft radius where I touch it, or Icy Mantle, to prevent the first bludgeoning, slashing, or piercing damagein the next minute for a creature I touch. I can use it to cast Sleet Storm (DC 17). I can do all 3 each once per short rest.\",\r\n\t\tdmgres : [\"Fire\"],\r\n\t\taction : [\r\n\t\t\t[\"action\", \"Frigid Touch (Ise Rune)\"],\r\n\t\t\t[\"action\", \"Icy Mantle (Ise Rune)\"]\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Frigid Touch (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Icy Mantle (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}, {\r\n\t\t\tname : \"Sleet Storm (Ise Rune)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}],\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"sleet storm\"],\r\n\t\t\tselection : [\"sleet storm\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}]\r\n\t},\r\n\t\"transferred to a cloak\" : {\r\n\t\tname : \"Ise Rune Cloak\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing this cloak, I have resistance to fire damage, and I have advantage on Dexterity (Stealth) checks made while in snowy terrain.\",\r\n\t\tdmgres : [\"Fire\"]\r\n\t},\r\n\t\"transferred to a pair of boots\" : {\r\n\t\tname : \"Ise Rune Boots\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While wearing these boots, I ignore difficult terrain while walking, and I can walk on water.\"\r\n\t}\r\n}\r\nMagicItemsList[\"ring of hardened magma\"] = {\r\n\tname : \"Ring of Hardened Magma\",\r\n\tsource : [[\"SKT\", 105]], // Raven Rock ancient relic\r\n\ttype : \"ring\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"Warm orange light spills from minuscule cracks that form on this rings outer surface. It automatically resizes to fit the creature attuned to it. It has 6 charges which can be used to cast Conjure Minor Elementals (summoning 4 magma mephits or 4 magmins) or Fire Shield (warm shield version only), costing 1 charge each.\",\r\n\tdescriptionFull : \"This ring is sized for a fire giant's finger. When a creature attunes to the ring, it magically shrinks to fit that creature's index finger, and warm orange light spills from minuscule cracks that form on its outer surface. The ring has 6 charges. While attuned to the ring, a creature can expend 1 charge to cast conjure minor elementals (summoning either four magma mephits or four magmins, as the wearer wishes) or fire shield (warm shield version only) from the ring. Once all of its charges are spent, the ring loses its spellcasting properties but retains its resizing property.\",\r\n\tattunement : true,\r\n\tusages : 6,\r\n\trecovery : \"Never\",\r\n\tspellcastingAbility : \"class\", // https://www.sageadvice.eu/2015/11/27/hat-of-disguise-dc/\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"conjure minor elementals\", \"fire shield\"],\r\n\t\tselection : [\"conjure minor elementals\", \"fire shield\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"conjure minor elementals\" : {\r\n\t\t\tdescription : \"Summon 4 magma mephits or 4 magmins that obey my verbal commands\",\r\n\t\t\tchanges : \"Using the Ring of Hardened Magma, the spell summons either four magma mephits or four magmins.\"\r\n\t\t},\r\n\t\t\"fire shield\" : {\r\n\t\t\tdescription : \"Fiery shield gives resistance to Cold damage and deals 2d8 Fire damage to melee attackers\",\r\n\t\t\tdynamicDamageBonus : false,\r\n\t\t\tchanges : \"Using the Ring of Hardened Magma, the spell can only produce the warm shield.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"red dragon's thighbone\"] = {\r\n\tname : \"Red Dragon's Thighbone\",\r\n\tsource : [[\"SKT\", 105]], // Raven Rock ancient relic\r\n\ttype : \"weapon (greatclub)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This 14-ft long, 250 lb red dragon's thighbone can be used as a greatclub by a giant. It magically shrinks to a size that a creature that attunes to it can wield it effectively as a greatclub. It deals an extra 2d8 bludgeoning damage whenever it hits a creature of the dragon type.\",\r\n\tdescriptionFull : \"This 14-ft long, 250 lb red dragon's thighbone can be used as a greatclub by a giant. If a creature attunes to the greatclub, it magically shrinks to a size that the creature can wield effectively. The greatclub is considered a magic weapon that deals an extra 2d8 bludgeoning damage whenever it hits a dragon (including any creature of the dragon type).\",\r\n\tattunement : true,\r\n\tweight : 10,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greabclub\",\r\n\t\tregExpSearch : /^(?=.*red)(?=.*dragon)(?=.*thighbone).*$/i,\r\n\t\tname : \"Red Dragon's Thighbone\",\r\n\t\tsource : [[\"SKT\", 105]],\r\n\t\tdescription : \"Two-handed; +2d6 damage vs. dragons\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ancient relic boulder\"] = {\r\n\tname : \"Ancient Relic Boulder\",\r\n\tsource : [[\"SKT\", 105]], // One Stone ancient relic\r\n\ttype : \"wondrous item\",\r\n\trarity : \"unknown\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"As an action once per 7 days, I can use this stone to cast either Control Weather or Divination. As an action once per 24 hours, I can have it shrink to 6-inch diameter, 25 lb, or enlarge to normal, 15-ft diameter, 24000 lb. Anything the enlarged boulder falls on takes 10d10 bludgeoning damage, DC 15 Dex save to avoid.\",\r\n\tdescriptionFull : \"This boulder is a relic of giantkind that was shaped, carved, and abandoned long ago by a stone giant earth shaman. Any character who succeeds on a DC 15 Intelligence (Arcana) check can tell that the engraved lines adorning its outer surface are carefully designed to channel magical energy. A detect magic spell reveals an aura of transmutation magic emanating from it and casting identify spell on the boulder allows one to learn its magical properties, each of which is activated by tracing specific lines on its surface:\\n \\u2022 A creature can use an action to cast the control weather spell or the divination spell from the stone. Once either spell is cast, this property can't be used again for 7 days.\\n \\u2022 A creature can use an action to shrink the stone to the size of a 6-inch-diameter orb weighing 25 pounds, or enlarge the boulder to its normal size (15-foot diameter) and weight (12 tons). Anything the enlarged boulder falls on takes 55 (10d10) bludgeoning damage. A creature can avoid taking this damage by tumbling out of the way with a successful DC 15 Dexterity saving throw. Once the reducing or enlarging effect is used, this property can't be used again for 24 hours.\",\r\n\tweight : 25,\r\n\taction : [[\"action\", \" (shrink/enlarge)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ancient Relic Boulder (spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"7 days\"\r\n\t}, {\r\n\t\tname : \"Ancient Relic Boulder (shrink/enlarge)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"24 h\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"\",\r\n\t\tspells : [\"control weather\", \"divination\"],\r\n\t\tselection : [\"control weather\", \"divination\"],\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"control weather\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Ancient Relic Boulder, the spell takes only 1 action to cast.\"\r\n\t\t}\r\n\t}\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20161115_VGtM.js",
    "content": "var iFileName = \"pub_20161115_VGtM.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all the player-material from Volo's Guide to Monsters to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.V = {\r\n\tname : \"Volo's Guide to Monsters\",\r\n\tabbreviation : \"VGtM\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/volos-guide-to-monsters\",\r\n\tdate : \"2016/11/15\"\r\n};\r\n\r\n// Races\r\nRaceList[\"fallen aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*fallen).*$/i,\r\n\tname : \"Fallen Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 168]],\r\n\tplural : \"Fallen Aasimar\",\r\n\tsortname : \"Aasimar, Fallen\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 0, 0, 0, 2],\r\n\ttrait : \"Fallen Aasimar (+1 Strength, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nNecrotic Shroud: Once per long rest when I'm 3rd level, I can use an action to transform, causing all within 10 ft of me to make a Cha\" + (typePF ? \"\" : \"risma\") + \" saving throw (DC 8 + Cha mod + Prof Bonus) or be frightened of me until the end of my next turn. This lasts for 1 minute or until I end it as a bonus action. Once on my turn I can have one of my attacks or spells deals my level in extra necrotic damage to one target.\",\r\n\tabilitySave : 6,\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"necrotic shroud\" : {\r\n\t\t\tname : \"Necrotic Shroud\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"protector aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*protector).*$/i,\r\n\tname : \"Protector Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\tplural : \"Protector Aasimar\",\r\n\tsortname : \"Aasimar, Protector\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 1, 2],\r\n\ttrait : \"Protector Aasimar (+1 Wisdom, +2 Charisma)\\nLight Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Soul: Once per long rest when I'm 3rd level, I can use an action to transform, gaining glimmer in my eyes and two incorporeal wings. For 1 minute or until I end it as a bonus action, I have 30 feet fly speed; once on my turn I can have one of my attacks or spells deal my level in extra radiant damage to one target.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"radiant soul\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"scourge aasimar\"] = {\r\n\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*scourge).*$/i,\r\n\tname : \"Scourge Aasimar\",\r\n\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\tplural : \"Scourge Aasimar\",\r\n\tsortname : \"Aasimar, Scourge\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Scourge Aasimar (+1 Constitution, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Consumption: Once per long rest when I'm 3rd level, I can use an action to radiate bright light in 10-ft radius and dim light for another 10-ft, for 1 minute or until I end it as a bonus action. Once on my turn my attack or spell deals my level in extra radiant damage to one target, and at the end of my turns all creatures within 10 ft of me, including myself, take half my level in radiant damage.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"radiant consumption\" : {\r\n\t\t\tname : \"Radiant Consumption\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 3) return \"\"\r\n\t\t\t\treturn Math.ceil(n/2) + \"/\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"bugbear\"] = {\r\n\tregExpSearch : /bugbear/i,\r\n\tname : \"Bugbear\",\r\n\tsource : [[\"V\", 119], [\"E:RLW\", 25], [\"W\", 174]],\r\n\tplural : \"Bugbears\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Stealth\"],\r\n\tage : \" reach adulthood at age 16 and live up to 80 years\",\r\n\theight : \" are between 6 and 8 feet tall (6'0\\\" + 2d12\\\")\",\r\n\tweight : \" weigh between 250 and 350 lb (200 + 2d12 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 1,9 and 2,4 metres tall (185 + 5d12 cm)\",\r\n\tweightMetric : \" weigh between 115 and 160 kg (90 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 1, 0, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"surprise attack\" : {\r\n\t\t\tname : \"Surprise Attack\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"Combat\",\r\n\t\t\tadditional : \"2d6\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Bugbear (+2 Strength, +1 Dexterity)\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\nLong-Limbed: I have an additional 5 feet reach with melee attacks that I make on my turn.\\nSurprise Attack: If I hit a surprised creature on my first turn in combat, that attack deals an extra 2d6 damage. I can do this only once per combat.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"firbolg\"] = {\r\n\tregExpSearch : /firbolg/i,\r\n\tname : \"Firbolg\",\r\n\tsource : [[\"V\", 106], [\"W\", 170]],\r\n\tplural : \"Firbolg\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Giant\", \"Speech of Beast and Leaf\"],\r\n\tage : \" reach adulthood around 30 and can live for 500 years\",\r\n\theight : \" are between 6 and half and 8 feet tall (6'2\\\" + 2d12\\\")\",\r\n\tweight : \" weigh between 240 and 300 lb (175 + 2d12 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are between 2 and 2,5 metres tall (190 + 5d12 cm)\",\r\n\tweightMetric : \" weigh between 110 and 135 kg (80 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 0, 0, 2, 0],\r\n\ttrait : \"Firbolg (+1 Strength, +2 Wisdom)\" + (typePF ? \"\\n\" : \" \") + \"Hidden Step: Once per short rest, as a bonus action, I turn invisible until the start of my next turn as per the invisibility spell.\\nPowerful Build: I count as one size larger for the weight I can carry.\\nFirbolg Magic: I can cast the Detect Magic and Disguise Self spells each once per short rest. With Disguise Self I can seem up to 3 feet shorter. Wisdom is my ability for these spells.\\nSpeech of Beast and Leaf: I can make my words understood, in a limited manner, by beasts and plants. I have advantage on Charisma checks to influence them.\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"firbolg magic (detect magic)\" : {\r\n\t\t\tname : \"Firbolg Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\tspells : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tselection : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"disguise self\" : {\r\n\t\t\t\t\tdescription : \"Alter appearance, up to 3ft shorter/taller; Int(Investigation) check vs. spell DC to determine disguise\",\r\n\t\t\t\t\tchanges : \"Using Firbolg Magic, I can cast Disguise Self once per short rest to also seem up to 3 feet shorter or taller.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"hidden step\" : {\r\n\t\t\tname : \"Hidden Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"goblin\"] = {\r\n\tregExpSearch : /^(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\tname : \"Goblin\",\r\n\tsource : [[\"V\", 119], [\"G\", 17], [\"E:RLW\", 26], [\"W\", 174]],\r\n\tplural : \"Goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"fury of the small\" : {\r\n\t\t\tname : \"Fury of the Small\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map(function (n) { return \"+\" + n + \" damage\"; })\r\n\t\t}\r\n\t},\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Goblin (+2 Dexterity, +1 Constitution)\"+\r\n\t\"\\n \\u2022 Fury of the Small: Once per short rest, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my level.\"+\r\n\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\n// dupl_start\r\nif (!RaceList[\"goliath\"]) {\r\n\tRaceList[\"goliath\"] = {\r\n\t\tregExpSearch : /goliath/i,\r\n\t\tname : \"Goliath\",\r\n\t\tsource : [[\"E\", 11], [\"V\", 108], [\"W\", 176]],\r\n\t\tplural : \"Goliaths\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Giant\"],\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tskills : [\"Athletics\"],\r\n\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\theight : \" are between 6 and a half and 8 feet tall (6'2\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh between 280 and 340 lb (200 + 2d10 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" are between 2 and 2,4 metres tall (190 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh between 100 and 155 kg (90 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [2, 0, 1, 0, 0, 0],\r\n\t\tfeatures : {\r\n\t\t\t\"stone's endurance\" : {\r\n\t\t\t\tname : \"Stone's Endurance\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Goliath (+2 Strength, +1 Constitution)\"+\r\n\t\t\"\\n \\u2022 Stone's Endurance: Once per short rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\"+\r\n\t\t(typePF ? \"\\n \\u2022 Natural Athlete: I have proficiency in the Athletics skill.\" : \"\"),\r\n\t\tcarryingCapacity : 2\r\n\t};\r\n} // dupl_end\r\nRaceList[\"hobgoblin\"] = {\r\n\tregExpSearch : /hobgoblin/i,\r\n\tname : \"Hobgoblin\",\r\n\tsource : [[\"V\", 119], [\"E:RLW\", 26], [\"W\", 175]],\r\n\tplural : \"Hobgoblins\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tarmorProfs : [true, false, false, false],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 150 and 200 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 70 and 90 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\tfeatures : {\r\n\t\t\"saving face\" : {\r\n\t\t\tname : \"Saving Face\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hobgoblin (+2 Constitution, +1 Intelligence)\\n\\nMartial Training: I am proficient with two martial weapons of my choice and light armor.\\n\\nSaving Face: Once per short rest, when I miss an attack roll or fail an ability check or a saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5).\"\r\n};\r\nRaceList[\"kenku\"] = {\r\n\tregExpSearch : /kenku/i,\r\n\tname : \"Kenku\",\r\n\tsource : [[\"V\", 109], [\"W\", 177]],\r\n\tplural : \"Kenku\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Acrobatics, Deception, Stealth, and Sleight of Hand\",\r\n\tlanguageProfs : [\"Common\", \"Auran\"],\r\n\tage : \" reach maturity at about 12 years old and can live to 60\",\r\n\theight : \" are around 5 feet tall (4'4\\\" + 2d8\\\")\",\r\n\tweight : \" weigh between 90 and 120 lb (70 + 2d8 \\xD7 1d4 lb)\",\r\n\theightMetric : \" are around 1,5 metres tall (135 + 5d8 cm)\",\r\n\tweightMetric : \" weigh between 40 and 55 kg (35 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Kenku (+2 Dexterity, +1 Wisdom)\"+\r\n\t\t\"\\n \\u2022 Expert Forgery: Kenku can duplicate other creatures' handwriting and craftwork. I have advantage on all checks made to produce forgeries or duplicates of existing objects.\"+\r\n\t\t\"\\n \\u2022 Mimicry: I can mimic any sounds I have heard, including voices, but can otherwise not speak. Creatures hearing these sounds can determine they are imitations with a successful Wisdom (Insight) check opposed by my Charisma (Deception).\"\r\n};\r\nRaceList[\"kobold\"] = {\r\n\tregExpSearch : /kobold/i,\r\n\tname : \"Kobold\",\r\n\tsource : [[\"V\", 119]],\r\n\tplural : \"Kobolds\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tvision : [[\"Darkvision\", 60], [\"Sunlight Sensitivity\", 0]],\r\n\tage : \" reach adulthood at age 6 and can live up to 120 years, but rarely do so\",\r\n\theight : \" are between 2 and 3 feet tall (2'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 25 and 35 lb (25 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 65 and 90 cm tall (63 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 10 and 15 kg (11 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"grovel, cower, and beg\" : {\r\n\t\t\tname : \"Grovel, Cower, and Beg\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kobold (+2 Dexterity)\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nGrovel, Cower, and Beg: As an action, I can distract all foes within 10 feet of me that can see me so that my allies gain advantage on attack rolls against them.\\nPack Tactics: I have advantage on attack rolls against creatures when at least one of my allies is within 5 feet of that creature and that ally is not incapacitated.\"\r\n};\r\nRaceList[\"lizardfolk\"] = {\r\n\tregExpSearch : /lizard(folk|man|men)/i,\r\n\tname : \"Lizardfolk\",\r\n\tsource : [[\"V\", 111]],\r\n\tplural : \"Lizardfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Animal Handling, Nature, Perception, Stealth, and Survival\",\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bbite\\b/i,\r\n\t\tname : \"Bite\",\r\n\t\tsource : [[\"V\", 113]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\r\n\t\tname : \"Natural Armor\",\r\n\t\tsource : [[\"V\", 113]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach maturity around age 14 and rarely live longer than 60 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'9\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 200 lb (120 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 95 kg (55 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\tfeatures : {\r\n\t\t\"cunning artisan\" : {\r\n\t\t\tname : \"Cunning Artisan\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"hungry jaws\" : {\r\n\t\t\tname : \"Hungry Jaws\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Lizardfolk (+2 Constitution, +1 Wisdom) Bite: I can use my fanged maw to make unarmed strikes dealing 1d6 piercing damage.\" + (typePF ? \"\\n\" : \" \") + \"Cunning Artisan: As part of a short rest I can harvest parts of a slain creature to make a shield, club, javelin, or 1d4 darts/blowgun needles. This requires a suitable corpse and appropriate tools.\" + (typePF ? \"\\n\" : \" \") + \"Hold Breath: I can hold my breath for up to 15 minutes at a time.\" + (typePF ? \"\\n\" : \" \") + \"Natural Armor: I have an AC of 13 + Dexterity modifier + shield.\" + (typePF ? \"\\n\" : \" \") + \"Hungry Jaws: As a bonus action, once per short rest, I can make a special bite attack and if it hits I gain temporary HP equal to my Con modifier (min 1).\"\r\n};\r\nRaceList[\"orc\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\bor(c|k)).*$/i,\r\n\tname : \"Orc\",\r\n\tsource : [[\"V\", 120], [\"E:RLW\", 32], [\"W\", 178]],\r\n\tplural : \"Orcs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskillstxt : \"Choose two from Animal Handling, Insight, Intimidation, Medicine, Nature, Perception, and Survival.\",\r\n\tage : \" reach adulthood at age 12 and live up to 50 years\",\r\n\theight : \" are usually over 6 feet tall (5'4\\\" + 2d8\\\")\",\r\n\tweight : \" weigh between 230 and 280 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are usually over 1,8 metres tall (160 + 5d8 cm)\",\r\n\tweightMetric : \" weigh between 100 and 125 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\ttrait : \"Orc (+2 Strength, +1 Constitution)\\n\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\n\\nAggressive: As a bonus action, I can move up to my speed toward an enemy that I can see or hear. I must end my move closer to this enemy than I started.\",\r\n\taction : [[\"bonus action\", \"Aggressive (dash to enemy)\"]],\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"tabaxi\"] = {\r\n\tregExpSearch : /tabaxi/i,\r\n\tname : \"Tabaxi\",\r\n\tsource : [[\"V\", 113], [\"W\", 179]],\r\n\tplural : \"Tabaxi\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : 20, enc : 10 }\r\n\t},\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(tabaxi|\\bcat\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Tabaxi Claws\",\r\n\t\tsource : [[\"V\", 115]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\tfeatures : {\r\n\t\t\"feline agility\" : {\r\n\t\t\tname : \"Feline Agility\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \" Turn\",\r\n\t\t\tadditional : \"still for 1 turn to recover\",\r\n\t\t\ttooltip : \" (can be replenished by not moving for one whole turn)\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Tabaxi (+2 Dexterity, +1 Charisma)\"+\r\n\t\"\\n \\u2022 Cat's Talent: I have proficiency in Perception and Stealth.\"+\r\n\t\"\\n \\u2022 Cat's Claws: I can use my retractable claws to make unarmed strikes dealing 1d4 slashing damage. They also give me a climbing speed of 20 ft.\"+\r\n\t\"\\n \\u2022 Feline Agility: When moving on my turn in combat, I can move double my speed. Once I do this, I can't do it again until I don't move at all on one of my turns.\"\r\n};\r\nRaceList[\"triton\"] = {\r\n\tregExpSearch : /triton/i,\r\n\tname : \"Triton\",\r\n\tsource : [[\"V\", 115], [\"MOT\", 26]],\r\n\tplural : \"Triton\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Primordial\", \"Emissary of the Sea\"],\r\n\tdmgres : [\"Cold\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach maturity around age 15 and can live up to 200 years\",\r\n\theight : \" are around 5 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" are around 1,6 metres tall (135 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 1],\r\n\ttrait : \"Triton (+1 Strength, +1 Constitution, and +1 Charisma)\\nControl Air and Water: I can cast the Fog Cloud spell. Once I reach 3rd level, I can cast the Gust of Wind spell. Once I reach 5th level, I can cast the Wall of Water spell. All three spells can be used once per long rest. Charisma is my spellcasting ability for these spells.\\nEmissary of the Sea: I can communicate simple ideas to beasts that can breathe water.\\nGuardians of the Depths: Adapted to even the most extreme ocean depths, I have resistance to cold damage.\" + (typePF ? \"\\n\" : \" \") + \"Amphibious: I can breathe air and water.\",\r\n\tspellcastingAbility : 6,\r\n\tfeatures : {\r\n\t\t\"fog cloud\" : {\r\n\t\t\tname : \"Control Air and Water (level 1)\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (1)\",\r\n\t\t\t\tspells : [\"fog cloud\"],\r\n\t\t\t\tselection : [\"fog cloud\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Control Air and Water (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"wall of water\" : {\r\n\t\t\tname : \"Control Air and Water (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water (5)\",\r\n\t\t\t\tspells : [\"wall of water\"],\r\n\t\t\t\tselection : [\"wall of water\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n// [dupl_start] Add Wall of Water spell, if not already present\r\nif (!SpellsList[\"wall of water\"]) {\r\n\tSpellsList[\"wall of water\"] = {\r\n\t\tname : \"Wall of Water\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 170], [\"E\", 23], [\"V\", 116], [\"MOT\", 27]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A drop of water\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tdescription : \"30\\xD71\\xD710ft (l\\xD7w\\xD7h) or 20-ft rad 20-ft high; dif. ter.; range wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\t\tdescriptionMetric : \"9\\xD70,3\\xD73m (l\\xD7w\\xD7h) or 6-m rad 6-m high; dif. ter.; ranged wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\t\tdescriptionFull : \"You conjure up a wall of water on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 1 foot thick, or you can make a ringed wall up to 20 feet in diameter, 20 feet high, and 1 foot thick. The wall vanishes when the spell ends. The wall's space is difficult terrain.\" + \"\\n   \" + \"Any ranged weapon attack that enters the wall's space has disadvantage on the attack roll, and fire damage is halved if the fire effect passes through the wall to reach its target. Spells that deal cold damage that pass through the wall cause the area of the wall they pass through to freeze solid (at least a 5-foot square section is frozen). Each 5-foot-square frozen section has AC 5 and 15 hit points. Reducing a frozen section to 0 hit points destroys it. When a section is destroyed, the wall's water doesn't fill it.\"\r\n\t};\r\n}; // dupl_end\r\nRaceList[\"yuan-ti pureblood\"] = {\r\n\tregExpSearch : /^(?!.*human)(?=.*yuan.ti)(?=.*pure.?blood).*$/i,\r\n\tname : \"Yuan-Ti Pureblood\",\r\n\tsource : [[\"V\", 120]],\r\n\tplural : \"Yuan-Ti Purebloods\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Abyssal\", \"Draconic\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\timmune : [\"poison\"],\r\n\t\tadv_vs : [\"magic\"]\r\n\t},\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Yuan-Ti Pureblood (+1 Intelligence, +2 Charisma)\"+\r\n\t\t\"\\n \\u2022 Innate Spellcasting: I know the Poison Spray cantrip and I can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\"+\r\n\t\t\"\\n \\u2022 Magic Resistance: I have advantage on saving throws against spells and other magical effects.\"+\r\n\t\t\"\\n \\u2022 Poison Immunity: I am immune to poison damage and the poisoned condition.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"One snake with Intelligence 3 or less save or charmed for the duration\",\r\n\t\t\tchanges : \"I can cast Animal Friendship at-will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"suggestion\" : {\r\n\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Creatures\r\nCreatureList[\"aurochs\"] = {\r\n\tname : \"Aurochs\",\r\n\tsource : [[\"V\", 207], [\"MotM\", 71]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 38,\r\n\thd : [4, 10], //[#, die]\r\n\tspeed : \"50 ft\",\r\n\tscores : [20, 10, 19, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the aurochs moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) piercing damage. A targeted creature must succeed on a DC 15 Strength saving throw or be knocked prone.\"\r\n\t}]\r\n};\r\nCreatureList[\"cow\"] = {\r\n\tname : \"Cow\",\r\n\tsource : [[\"V\", 207]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the cow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}]\r\n};\r\nCreatureList[\"ox\"] = {\r\n\tname : \"Ox\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the ox moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Beast of Burden\",\r\n\t\tdescription : \"The oxen is considered to be a Huge animal for the purpose of determining its carrying capacity.\"\r\n\t}]\r\n};\r\nCreatureList[\"deep rothe\"] = {\r\n\tname : \"Deep Roth\\xE9\",\r\n\tnameAlt : [\"Roth\\xE9, Deep\"],\r\n\tsource : [[\"V\", 208], [\"MotM\", 71]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 13,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the roth\\xE9 moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Dancing Lights\",\r\n\t\tdescription : \"The roth\\xE9 casts dancing lights, requiring no spell components and using Wisdom as the spellcasting ability.\"\r\n\t}]\r\n};\r\nCreatureList[\"rothe\"] = {\r\n\tname : \"Roth\\xE9\",\r\n\tsource : [[\"V\", 208]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the roth\\xE9 moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}]\r\n};\r\nCreatureList[\"stench kow\"] = {\r\n\tname : \"Stench Kow\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\tsize : 2, //Large\r\n\ttype : \"Fiend\", // Change in MotM from Beast\r\n\tsubtype : \"cattle\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 10,\r\n\thp : 15,\r\n\thd : [2, 10], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tdamage_resistances : \"cold, fire, and poison damage\",\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Gore\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t}, {\r\n\t\tname : \"Stench\",\r\n\t\tdescription : \"Any creature other than a stench kow starting its turn within 5 ft of a stench kow must make a DC 12 Constitution saving throw or be poisoned until the start of the creature's next turn. On a successful saving throw, the creature is immune to the stench of all stench kows for 1 hour.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Darkvision 60 ft.\" + (typePF ? \"\\n\" : \" \") + \"##Resistances##. Cold, fire, poison.\",\r\n\t\t\"##Charge##. If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, it deals extra 2d6 piercing damage.\",\r\n\t\t\"##Stench##. Any creature starting its turn within 5 ft of a stench kow must make a DC 12 Con save or be poisoned until the start of the its next turn. On a success, it is immune to the stench of all stench kows for 1 hour\",\r\n\t].join(\"\\n\")\r\n};\r\nCreatureList[\"dolphin\"] = {\r\n\tname : \"Dolphin\",\r\n\tsource : [[\"V\", 208], [\"MotM\", 97]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 11,\r\n\thd : [2, 8], //[#, die]\r\n\tspeed : \"swim 60 ft\",\r\n\tscores : [14, 13, 13, 6, 12, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Blindsight 60 ft\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 30 ft straight in the same round, deals extra 1d6 damage (Charge)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Charge\",\r\n\t\tdescription : \"If the dolphin moves at least 30 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 3 (1d6) bludgeoning damage.\"\r\n\t}, {\r\n\t\tname : \"Hold Breath\",\r\n\t\tdescription : \"The dolphin can hold its breath for 20 minutes.\"\r\n\t}]\r\n};\r\nCreatureList[\"cranium rat\"] = {\r\n\tname : \"Cranium Rat\",\r\n\tnameAlt : [\"Rat, Cranium\"],\r\n\tsource : [[\"V\", 133], [\"MotM\", 83]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Aberration\", // Change in MotM from Beast\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Lawful Evil\",\r\n\tac : 12,\r\n\thp : 2,\r\n\thd : [1, 4], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [2, 14, 10, 4, 11, 8], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsenses : \"Darkvision 30 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\",\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Illumination\",\r\n\t\tdescription : \"As a bonus action, the cranium rat can shed dim light from its brain in a 5-foot radius or extinguish the light.\"\r\n\t}, {\r\n\t\tname : \"Telepathic Shroud\",\r\n\t\tdescription : \"The cranium rat is immune to any effect that would sense its emotions or read its thoughts, as well as to all divination spells.\"\r\n\t}]\r\n};\r\nCreatureList[\"brontosaurus\"] = {\r\n\tname : \"Brontosaurus\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 215], [\"MotM\", 95]],\r\n\tsize : 0, //Gargantuan\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 121,\r\n\thd : [9, 20], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsaves : [\"\", \"\", 6, \"\", \"\", \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"5\",\r\n\tproficiencyBonus : 3,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Stomp\",\r\n\t\tability : 1,\r\n\t\tdamage : [5, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (20 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\"\r\n\t}, {\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [6, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (20 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"deinonychus\"] = {\r\n\tname : \"Deinonychus\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 26,\r\n\thd : [4, 8], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [15, 15, 14, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 3,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two claw and one bite as one Attack action; If used after moving 20 ft straight in the same round, see Pounce trait\"\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two claw and one bite as one Attack action (also, see Pounce trait)\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the deinonychus can make two Claw and one Bite attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the deinonychus moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the deinonychus can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"dimetrodon\"] = {\r\n\tname : \"Dimetrodon\",\r\n\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\tsize : 3, //Medium\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 19,\r\n\thd : [3, 8], //[#, die]\r\n\tspeed : \"30 ft, swim 20 ft\",\r\n\tscores : [14, 10, 15, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"hadrosaurus\"] = {\r\n\tname : \"Hadrosaurus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 224], [\"MotM\", 96]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 19,\r\n\thd : [3, 10], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [15, 10, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"quetzalcoatlus\"] = {\r\n\tname : \"Quetzalcoatlus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 230], [\"MotM\", 96]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 30,\r\n\thd : [4, 12], //[#, die]\r\n\tspeed : \"10 ft, fly 80 ft\",\r\n\tscores : [15, 13, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 2\r\n\t},\r\n\tpassivePerception : 12,\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [3, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"If used after diving 30 ft towards a target, the attack deals 3d6 extra damage (Dive Attack)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Dive Attack\",\r\n\t\tdescription : \"If the quetzalcoatlus is flying and dives at least 30 ft toward a creature and then hits it with a bite attack, the attack deals an extra 10 (3d6) damage to the target.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The quetzalcoatlus doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\nCreatureList[\"stegosaurus\"] = {\r\n\tname : \"Stegosaurus\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 231], [\"MotM\", 96]],\r\n\tsize : 1, //Huge\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 76,\r\n\thd : [8, 12], //[#, die]\r\n\tspeed : \"40 ft\",\r\n\tscores : [20, 9, 17, 2, 11, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [6, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"velociraptor\"] = {\r\n\tname : \"Velociraptor\",\r\n\tsource : [[\"V\", 140], [\"ToA\", 235], [\"MotM\", 96]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Beast\",\r\n\tsubtype : \"dinosaur\", // MotM addition\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 10,\r\n\thd : [3, 4], //[#, die]\r\n\tspeed : \"30 ft\",\r\n\tscores : [6, 14, 13, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claw\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the velociraptor can make one Bite and one Claw attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The velociraptor has advantage on an attack roll against a creature if at least one of the velociraptor's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}]\r\n};\r\nCreatureList[\"gazer\"] = {\r\n\tname : \"Gazer\",\r\n\tsource : [[\"V\", 126], [\"MotM\", 134]],\r\n\tsize : 5, //Tiny\r\n\ttype : \"Aberration\",\r\n\tsubtype : \"Beholder\", // MotM addition\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Neutral Evil\",\r\n\tac : 13,\r\n\thp : 13,\r\n\thd : [3, 4], //[#, die]\r\n\tspeed : \"0 ft, fly 30 ft\",\r\n\tscores : [3, 17, 14, 3, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tsaves : [\"\", \"\", \"\", \"\", 2, \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Eye Rays\",\r\n\t\tability : 3,\r\n\t\tdamage : [\"Special\", \"\", \"\"], //[#, die, type] \"\" for die is allowed\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"Shoot two randomly determined different rays as one action; Each ray has its own target; See traits\",\r\n\t\tdc : true,\r\n\t\tabilitytodamage : false\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Aggressive\",\r\n\t\tdescription : \"As a bonus action, the gazer moves its speed toward an enemy that it can see.\"\r\n\t}, {\r\n\t\tname : \"Mimicry\",\r\n\t\tdescription : \"The gazer can mimic simple speech it has heard, in any language. Any who hear this can tell it is an imitation with a successful DC 10 Wis (Insight) check.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Eye Rays\",\r\n\t\tdescription : \"1. Dazing Ray: Wisdom saving throw or charmed until the start of the gazer's next turn. While charmed, half speed and disadv. on attacks.\\n2. Fear Ray: Wisdom saving throw or frightened until the start of the gazer's next turn.\\n3. Frost Ray: Target must make a Dexterity saving throw or 10 (3d6) cold damage.\\n4. Telekinetic Ray: Medium or smaller creature, Strength saving throw or be moved up to 30 ft away from the gazer. If it is an unattended Tiny object, the gazer moves it up to 30 ft in any direction. It can exert fine control on objects this way.\" // MotM: no longer 10 lb limit, just Tiny object\r\n\t}],\r\n\tvariant : [{\r\n\t\tname : \"Variant: Familiar\",\r\n\t\tdescription : \"The gazer can serve another creature as a familiar, forming a telepathic bond with its willing master, provided that the master is at least a 3rd-level spellcaster. While the two are bonded, the master can sense what the gazer senses as long as they are within 1 mile of each other. If its master causes it physical harm, the gazer will end its service as a familiar, breaking the telepathic bond.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"mind blade\"] = {\r\n\tname : \"Mind Blade\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"Mind flayers can turn any nonmagical sword into a mind blade. Only one creature can attune to this sword: either a specific mind flayer or one of its thralls. In the hands of its intended wielder, the mind blade is a magic weapon that deals an extra 2d6 psychic damage to any target it hits.\",\r\n\tdescriptionFull : \"Mind flayers can turn any nonmagical sword into a mind blade. Only one creature can attune to it: either a specific mind flayer or one of its thralls. In the hands of any other creature, the mind blade functions as a normal sword of its kind. In the hands of its intended wielder, the mind blade is a magic weapon that deals an extra 2d6 psychic damage to any target it hits.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by the creature this armor was made for: either a specific mind flayer or one of its thralls\",\r\n\tprereqeval : function (v) { return false; },\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/^(?=.*mind)(?=.*blade).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 psychic damage';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Mind Blade\" in a the name of a sword, it will be treated as the magic weapon Mind Blade, which adds +2d6 psychic damage on any hit as long as attuned to its intended wielder.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"mind carapace armor\"] = {\r\n\tname : \"Mind Carapace Armor\",\r\n\tnameTest : /mind.carapace.*armou?r/i,\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"armor (heavy)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Only one creature can attune to this armor: either a specific mind flayer or one of its thralls. To its intended wearer, the armor grants advantage on Intelligence, Wisdom, and Charisma saving throws and makes its wearer immune to the frightened condition.\",\r\n\tdescriptionFull : \"Any nonmagical suit of heavy armor can be turned by mind flayers into mind carapace armor. Only one creature can attune to it: either a specific mind flayer or one of its thralls. While worn by any other creature, the mind carapace armor functions as normal armor of its kind. To its intended wearer, the armor grants advantage on Intelligence, Wisdom, and Charisma saving throws and makes its wearer immune to the frightened condition.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by the creature this armor was made for: either a specific mind flayer or one of its thralls\",\r\n\tprereqeval : function (v) { return false; },\r\n\tsavetxt : { text : [\"Adv. on Int, Wis, and Cha saves\"], immune : [\"frightened\"] },\r\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]],\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Mind Carapace\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Mind Carapace\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/heavy/i).test(inObj.type);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"mind lash\"] = {\r\n\tname : \"Mind Lash\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"weapon (whip)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"This magic whip strips away a creature's will to survive as it also strips away flesh and deals +2d4 psychic damage on each hit. Any target taking psychic damage must succeed on a DC 15 Wisdom save or have disadv. on Int, Wis, and Cha saves for 1 minute. It can repeat the save at the end of each of its turns.\",\r\n\tdescriptionFull : \"In the hands of any creature other than a mind flayer, a mind lash functions as a normal whip. In the hands of an illithid, this magic weapon strips away a creature's will to survive as it also strips away flesh, dealing an extra 2d4 psychic damage to any target it hits. Any creature that takes psychic damage from the mind lash must also succeed on a DC 15 Wisdom saving throw or have disadvantage on Intelligence, Wisdom, and Charisma saving throws for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\tprerequisite : \"Requires attunement by an illithid\",\r\n\tprereqeval : function (v) { return (/mind flayer|illithid/i).test(What(\"Race\")); },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"whip\",\r\n\t\tregExpSearch : /^(?=.*mind)(?=.*lash).*$/i,\r\n\t\tname : \"Mind Lash\",\r\n\t\tsource : [[\"V\", 81]],\r\n\t\tdescription : \"Finesse, reach; +2d4 psychic damage; DC 15 Wis save or disadv. on Int/Wis/Cha saves for 1 min\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"shield of far sight\"] = {\r\n\tname : \"Shield of Far Sight\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"shield\",\r\n\trarity : \"rare\",\r\n\tdescription : \"The mind flayer that created this shield can see through its eye with 60 ft darkvision while it is on the same plane. While peering through this magical eye, the mind flayer can use its Mind Blast action as though it were standing behind the shield. If a shield of far sight is destroyed, its creator is blinded for 2d12 hours.\",\r\n\tdescriptionFull : \"A mind flayer skilled at crafting magic items creates a shield of far sight by harvesting an eye from an intelligent humanoid and magically implanting it on the outer surface of a nonmagical shield. The shield becomes a magic item once the eyes is implanted, whereupon the mind flayer can give the shield to a thrall or hang it on a wall in its lair. As long as the shield is on the same plane of existence as its creator, the mind flayer can see through the shield's eye, which has darkvision out to a range of 60 feet. While peering through this magical eye, the mind flayer can use its Mind Blast action as though it were standing behind the shield.\\n   If a shield of far sight is destroyed, the mind flayer that created it is blinded for 2d12 hours.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Shield of Far Sight\"\r\n}\r\nMagicItemsList[\"survival mantle\"] = {\r\n\tname : \"Survival Mantle\",\r\n\tsource : [[\"V\", 81]],\r\n\ttype : \"armor (half plate)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"This mantle functions as a half plate and takes just as long to don or doff. It encases portions of my shoulders, neck, and chest so that I can breathe normally in any environment (including a vacuum) and gives me advantage on saving throws against gases (such as Cloudkill, Stinking Cloud, or inhaled poisons).\",\r\n\tdescriptionFull : \"This carapace-like augmentation encases portions of the wearer's shoulders, neck, and chest. A survival mantle is equivalent to a suit of nonmagical half plate armor and takes just as long to don or doff. It can't be worn with other kinds of armor.\\n   A creature wearing a survival mantle can breathe normally in any environment (including a vacuum) and has advantage on saving throws against harmful gases (such as those created by a Cloudkill spell, a Stinking Cloud spell, inhaled poisons, and the breath weapons of some dragons).\",\r\n\tweight : 40,\r\n\tsavetxt : { adv_vs : [\"gases\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*survival)(?=.*mantle).*$/i,\r\n\t\tname : \"Survival Mantle\",\r\n\t\tsource : [[\"V\", 81]],\r\n\t\ttype : \"medium\",\r\n\t\tac : 15,\r\n\t\tstealthdis : true,\r\n\t\tweight : 40,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20170404_TftYP.js",
    "content": "var iFileName = \"pub_20170404_TftYP.js\";\nRequiredSheetVersion(\"14.0.5-beta\");\n// This file adds the beasts from the Tales from the Yawning Portal adventure book to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.TftYP={\n\tname : \"Tales from the Yawning Portal [beasts, items]\",\n\tabbreviation : \"TftYP\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Anthology\",\n\turl : \"https://dnd.wizards.com/products/tales-yawning-portal\",\n\tdate : \"2017/04/04\"\n};\n\n// Creatures\n// Snow leopard is just a tiger under a different name, it has been added to the SRD code as a `nameAlt`\nCreatureList[\"giant crayfish\"] = {\n\tname : \"Giant Crayfish\",\n\tnameAlt : [\"Crayfish, Giant\"],\n\tsource : [[\"TftYP\", 235]],\n\tsize : 2, //Large\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 15,\n\thp : 45,\n\thd : [7, 10], //[#, die]\n\tspeed : \"30 ft, swim 30 ft\",\n\tscores : [15, 13, 13, 1, 9, 3], //[Str, Dex, Con, Int, Wis, Cha]\n\tskills : {\n\t\t\"stealth\" : 3\n\t},\n\tsenses : \"Blindsight 30 ft\",\n\tpassivePerception : 9,\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\t\tname : \"Claw\",\n\t\t\tability : 1,\n\t\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Target grappled on hit (escape DC 12); 2 claw attacks as Attack action, if not grappling with claw\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Amphibious\",\n\t\t\tdescription : \"The giant crayfish can breathe air and water.\"\n\t\t}\n\t]\n};\nCreatureList[\"giant ice toad\"] = {\n\tname : \"Giant Ice Toad\",\n\tnameAlt : [\"Toad, Giant Ice\"],\n\tsource : [[\"TftYP\", 235]],\n\tsize : 2, //Large\n\ttype : \"Monstrosity\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 52,\n\thd : [7, 10], //[#, die]\n\tspeed : \"30 ft\",\n\tscores : [16, 13, 14, 8, 10, 6], //[Str, Dex, Con, Int, Wis, Cha]\n\tdamage_immunities : \"cold\",\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 10,\n\tlanguages : \"Ice Toad\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\t\tname : \"Bite\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Target is grappled and restrained (escape DC 13); Can't use bite again until grapple ends\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Amphibious\",\n\t\t\tdescription : \"The toad can breathe air and water\"\n\t\t}, {\n\t\t\tname : \"Cold Aura\",\n\t\t\tdescription : \"A creature that starts its turn within 10 feet of the toad takes 5 (1d10) cold damage.\"\n\t\t}, {\n\t\t\tname : \"Standing Leap\",\n\t\t\tdescription : \"The toad's long jump is up to 20 ft and its high jump is up to 10 ft, with or without a running start.\"\n\t\t}\n\t],\n\tfeatures : [{\n\t\t\tname : \"Swallow\",\n\t\t\tdescription : \"The toad can make a bite attack against a Medium or smaller target it is grappling. If it hits, the target takes bite damage, is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the toad, and it takes 10 (3d6) acid damage and 11 (2d6) cold damage at the start of each of the toad's turns. The toad can have only one target swallowed at a time.\\nIf the toad dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 5 feet of movement, exiting prone.\"\n\t\t}\n\t],\n\twildshapeString : (typePF ? \"##Senses##. \" : \"\") + \"Darkvision 60 ft. ##Cold Aura##. Any within 5 ft at start of their turn take 1d10 cold damage. ##Amphibious##. Breathes air and water. ##Standing Leap##. Long jump 20 ft and high jump 10 ft, regardless of start. ##Swallow##. If bite attack hits Medium or smaller being grappling, it takes bite damage and is swallowed: blinded, restrained, total cover, takes 3d6 acid and 2d6 cold damage at the start of each of the toad's turns; Only 1 swallowed at a time.\"\n};\nCreatureList[\"giant lightning eel\"] = {\n\tname : \"Giant Lightning Eel\",\n\tnameAlt : [\"Eel, Giant Lightning\"],\n\tsource : [[\"TftYP\", 236]],\n\tsize : 2, //Large\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 42,\n\thd : [5, 10], //[#, die]\n\tspeed : \"5 ft, swim 30 ft\",\n\tscores : [11, 17, 16, 2, 12, 3], //[Str, Dex, Con, Int, Wis, Cha]\n\tdamage_resistances : \"lightning\",\n\tsenses : \"Blindsight 60 ft\",\n\tpassivePerception : 11,\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"+1d8 lightning damage on a hit; Two bite attacks as an Attack action\"\n\t}, {\n\t\tname : \"Lightning Jolt (Recharge 5-6)\",\n\t\tability : 3,\n\t\tdamage : [3, 8, \"lightning\"], //[#, die, type] \"\" for die is allowed\n\t\trange : \"Out/in 5/15 ft\",\n\t\tdc : true,\n\t\tdescription : \"Out water: 5 ft, 1 crea; In water: all in 15 ft; Con save: fail― stunned until eel's next turn end, success― half damage\",\n\t\tmodifiers : [-1, \"\"],\n\t\tabilitytodamage : false,\n\t\ttooltip : \"One creature the eel touches within 5 feet of it outside water, or each creature within 15 feet of it in a body of water, must make a DC 12 Constitution saving throw. On failed save, a target takes 13 (3d8) lightning damage. If the target takes any of this damage, the target is stunned until the end of the eel's next turn. On a successful save, a target takes half as much damage and isn't stunned\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the eel can make two Bite attacks.\"\n\t}, {\n\t\tname : \"Lightning Jolt (Recharge 5-6)\",\n\t\tdescription : \"See Attack. One creature the eel touches within 5 feet of it outside water, or each creature within 15 feet of it in a body of water, must make a DC 12 Constitution saving throw. On failed save, a target takes 13 (3d8) lightning damage. If the target takes any of this damage, the target is stunned until the end of the eel's next turn. On a successful save, a target takes half as much damage and isn't stunned\"\n\t}]\n};\nCreatureList[\"giant subterranean lizard\"] = {\n\tname : \"Giant Subterranean Lizard\",\n\tnameAlt : [\"Lizard, Giant Subterranean\"],\n\tsource : [[\"TftYP\", 236]],\n\tsize : 1, //Huge\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 66,\n\thd : [7, 12], //[#, die]\n\tspeed : \"30 ft, swim 50 ft\",\n\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\n\tskills : {\n\t\t\"stealth\" : 3\n\t},\n\tpassivePerception : 10,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\t\tname : \"Bite\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 10, \"piercing\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Target grappled \\u0026 restrained (escape DC 15); Can't use bite until grapple ends\"\n\t\t}, {\n\t\t\tname : \"Tail\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\n\t\t\trange : \"Melee (10 ft)\",\n\t\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Target DC 15 Str save or knocked prone\"\n\t\t}\n\t],\n\ttraits : [{\n\t\t\tname : \"Swallow\",\n\t\t\tdescription : \"The lizard can make one bite attack against a Medium or smaller target it is grappling. If the attack hits, the target takes bite damage, is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the lizard, and it takes 10 (3d6) acid damage at the start of each of the lizard's turns. The lizard can have only one target swallowed at a time.\\nIf the lizard dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 10 feet of movement, exiting prone.\"\n\t\t}\n\t],\n\twildshapeString : \"##Swallow##. If a bite attack hits a Small or smaller target that is currently being grappled by the lizard, the target is swallowed, ending the grapple. While swallowed, it is blinded, restrained, has total cover, and takes 3d4 acid damage at the start of each of the lizard's turns; The lizard can have only 1 swallowed at a time. If the lizard dies, the swallowed creature is no longer restrained and can escape using 10 ft movement.\"\n};\n\n// Magic Items\nMagicItemsList[\"flame tongue shortsword of gem detection\"] = {\t// contributed by Nod_Hero\n\tname : \"Flame Tongue Shortsword of Gem Detection\",\n\tsource : [[\"TftYP\", 178]],\n\ttype : \"weapon (shortsword)\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can speak the command word to cause flames that add +2d6 fire damage and shine bright light for 40 ft \\u0026 dim light for 40 ft. The flames last until I speak the word again or sheathe it. As an action, I can mentally command it to detect type and quantity of gems and jewels within 60 ft of the sword.\",\n\tdescriptionFull : \"You can use a bonus action to speak this magic sword's command word, causing flames to erupt from the blade. These flames shed bright light in a 40-foot radius and dim light for an additional 40 feet. While the sword is ablaze, it deals an extra 2d6 fire damage to any target it hits. The flames last until you use a bonus action to speak the command word again or until you drop or sheathe the sword.\"+\n\t\"\\n   While you are attuned to this sword you can use an action to mentally command it to detect gems and jewels. You learn the kind and number of such objects within 60 feet of the sword.\",\n\taction : [\n\t\t[\"bonus action\", \"Flame Tongue (activate/end)\"],\n\t\t[\"action\", \"Gem Detection (within 60 ft)\"]\n\t],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"shortsword\",\n\t\tregExpSearch : /^(?=.*flame tongue)(?=.*short)(?=.*sword).*$/i,\n\t\tname : \"Flame Tongue Shortsword\",\n\t\tsource : [[\"TftYP\", 179]],\n\t\tdescription : \"Finesse, light; While active, +2d6 fire damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"amulet of protection from turning\"] = {\n\tname : \"Amulet of Protection from Turning\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"This silver and turquoise amulet has 3 charges, regain all at dawn. It gives me adv. on saves against effects that turn undead. If I fail a save against such an effect, I can expend 1 charge to succeed instead. It glows with a silvery blue light for a few seconds each time an effect that turns undead is used on me.\",\n\tdescriptionFull : \"While you wear this amulet of silver and turquoise, you have advantage on saving throws against effects that turn undead.\\n   If you fail a saving throw against such an effect, you can choose to succeed instead. You can do so three times, and expended uses recharge daily at dawn. Each time an effect that turns undead is used against you, the amulet glows with silvery blue light for a few seconds.\",\n\tattunement : true,\n\tweight : 1,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tsavetxt : { adv_vs : [\"turn undead\"] }\n}\nMagicItemsList[\"balance of harmony\"] = {\n\tname : \"Balance of Harmony\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"D\",\n\tdescription : \"I can use the scale to cast Detect Evil and Good as a ritual by placing a gem of 100 gp or more or holy water on both pans. It then tips to the side it detected, good or evil, or fluctuates slightly if what it detected is neutral. After this, I can touch it to learn the rest of the information the spell normally conveys.\",\n\tdescriptionFull : \"This scale bears celestial symbols on one pan and fiendish symbols on the other. You can use the scale to cast Detect Evil and Good as a ritual. Doing so requires you to place the scale on a solid surface, then sprinkle the pans with holy water or place a transparent gem worth 100 gp in each pan. The scale remains motionless if it detects nothing, tips to one side or the other for good (consecrated) or evil (desecrated), and fluctuates slightly if it detects a creature appropriate to the spell but neither good nor evil. By touching the scales after casting the ritual, you instantly learn any information the spell can normally convey, and then the effect ends.\",\n\tweight : 1,\n\tspellcastingBonus : [{\n\t\tname : \"Only as ritual\",\n\t\tspells : [\"detect evil and good\"],\n\t\tselection : [\"detect evil and good\"],\n\t\tfirstCol : SpellRitualTag,\n\t}],\n\tspellChanges : {\n\t\t\"detect evil and good\" : {\n\t\t\ttime : \"10 min\",\n\t\t\tcompMaterial : \"The Balance of Harmony requires placing the scale on a solid surface and sprinkling the pans with holy water or placing a transparent gem worth 100 gp in each pan.\",\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"bracelet of rock magic\"] = {\n\tname : \"Bracelet of Rock Magic\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This gold bracelet grants me immunity to being petrified. It has 16 charges to cast Flesh to Stone (DC 15). Once all charges are used, it turns to lead and loses its magic. If I use it to target a creature strongly related to stone, the target has adv. on its save. If it saves, Flesh to Stone is cast on me with disadv. on the save.\",\n\tdescriptionFull : \"While you wear this gold bracelet, it grants you immunity to being petrified, and it allows you to cast Flesh to Stone (save DC 15) as an action. Once the spell has been cast three times, the bracelet can no longer cast it. Thereafter, you can cast Stone Shape as an action. After you have done this thirteen times, the bracelet loses its magic and turns from gold to lead.\\n   \" + toUni(\"Curse\") + \". The bracelet's affinity with earth manifests as an unusual curse. Creatures of flesh that are strongly related to earth and stone, such as stone giants and dwarves, have advantage on the saving throw against Flesh to Stone cast from the bracelet. If such a creature's save is successful, the bracelet breaks your attunement to it and casts the spell on you. You make your saving throw with disadvantage, and on a failed save you are petrified instantly.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true,\n\tusages : 16,\n\trecovery : \"Never\",\n\tsavetxt : { immune : [\"petrified\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"flesh to stone\"],\n\t\tselection : [\"flesh to stone\"],\n\t\tfirstCol : 1\n\t}]\n}\nMagicItemsList[\"eagle whistle\"] = {\n\tname : \"Eagle Whistle\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"Three times per dawn, I can blow this whistle, gaining a flying speed equal to twice my walking speed while I do so continuously. I can blow it for a number for rounds equal to 5 + five times my Constitution modifier (minimum of 1 round) or until I talk, hold my breath, start suffocating, or land.\",\n\tdescriptionFull : \"While you blow an eagle whistle continuously, you can fly twice as fast as your walking speed. You can blow the whistle continuously for a number of rounds equal to 5 + five times your Constitution modifier (minimum of 1 round) or until you talk, hold your breath, or start suffocating. A use of the whistle also ends if you land. If you are aloft when you stop blowing the whistle, you fall. The whistle has three uses. It regains expended uses daily at dawn.\",\n\tweight : 1,\n\tusages : 3,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"hell hound cloak\"] = {\n\tname : \"Hell Hound Cloak\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"H\",\n\tdescription : \"As an action, I can command this cloak to Polymorph me into a hell hound for 1 hour, or until I stop it as a bonus action. The 6th time I use it and every time after, I must make a DC 15 Cha save or be stuck in hell hound form until dispelled or I drop to 0 HP. If I remain in hell hound form for 6 hours, it becomes permanent.\",\n\tdescriptionFull : \"This dark cloak is made of cured hell hound hide. As an action, you can command the cloak to transform you into a hell hound for up to 1 hour. The transformation otherwise functions as the Polymorph spell, but you can use a bonus action to revert to your normal form.\\n   \" + toUni(\"Curse\") + \". This cloak is cursed with the essence of a hell hound, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the cloak, keeping it within reach at all times.\\n   The sixth time you use the cloak, and each time thereafter, you must make a DC 15 Charisma saving throw. On a failed save, the transformation lasts until dispelled or until you drop to 0 hit points, and you can't willingly return to normal form. If you ever remain in hell hound form for 6 hours, the transformation becomes permanent and you lose your sense of self. All your statistics are then replaced by those of a hell hound. Thereafter, only Remove Curse or similar magic allows you to regain your identity and return to normal. If you remain in this permanent form for 6 days, only a Wish spell can reverse the transformation.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true\n}\nMagicItemsList[\"javelin of backbiting\"] = {\n\tname : \"Javelin of Backbiting\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (javelin)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This javelin has +2 to hit and damage, +30 ft range, and deals +1d6 damage when thrown. After a throwing attack, it flies back to my hand immediately. While its curse lasts, I'm unwilling to part with it and have disadv. on attacks with other weapon. Also, on a roll of 1 to hit, I roll the attack again, but at myself with adv.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, its normal and long ranges both increase by 30 feet. and it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the weapon, keeping it within reach at all times. In addition, you have disadvantage on attack rolls made with weapons other than this one.\\n   Whenever you roll a 1 on an attack roll using this weapon, the weapon bends or flies to hit you in the back. Make a new attack roll with advantage against your own AC. If the result is a hit, you take damage as if you had attacked yourself with the spear.\",\n\tattunement : true,\n\tweight : 2,\n\tcursed : true,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"javelin\",\n\t\tregExpSearch : /^(?=.*javelin)(?=.*backbiting).*$/i,\n\t\tname : \"Javelin of Backbiting\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\trange : \"Melee, 60/150 ft\",\n\t\tdescription : \"Thrown; +1d6 damage if thrown; Returning; On 1 to hit: attack myself with adv.\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"loadstone\"] = {\n\tname : \"Loadstone\",\n\tnameAlt : \"Lodestone\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"The large gem worth 150 gp is cursed. Detect Magic doesn't detect it, but Identify does reveal its nature. If I take the Dash or Disengage action while it is on my person, its curse activates. While cursed, I am unwilling to part with it, my speed is reduced by 5 ft, and my maximum load and lift capacities are halved.\",\n\tdescriptionFull : \"This stone is a large gem worth 150 gp.\\n   \" + toUni(\"Curse\") + \". The stone is cursed, but its magical nature is hidden; Detect Magic doesn't detect it. An Identify spell reveals the stone's true nature. If you use the Dash or Disengage action while the stone is on your person, its curse activates. Until the curse is broken with Remove Curse or similar magic, your speed is reduced by 5 feet, and your maximum load and maximum lift capacities are halved. You also become unwilling to part with the stone.\",\n\tweight : 1,\n\tcursed : true\n}\nMagicItemsList[\"mirror of the past\"] = {\n\tname : \"Mirror of the Past\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"D\",\n\tdescription : \"As an action once per dawn, I can gaze into this mirror while thinking of a specific object or creature. The mirror then shows me scenes from the target's past for 1 minute or less, instead of my reflection. Information conveyed is accurate, but it is random and cryptic, and presented in no particular order.\",\n\tdescriptionFull : \"The holder of this platinum hand mirror can learn something about the history of a specific object or creature by taking an action to gaze into the mirror and think of the target. Instead of the holder's reflection, the mirror presents scenes from the target's past. Information conveyed is accurate, but it is random and cryptic, and presented in no particular order. Once it is activated, the mirror gives its information for 1 minute or less, then returns to normal. It can't be used again until the next dawn.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"action\", \"\"]]\n}\nMagicItemsList[\"night caller\"] = {\n\tname : \"Night Caller\",\n\tsource : [[\"TftYP\", 228]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"I can use this whistle to cast Animate Dead, if I blow it under the night sky or in darkness. Once used, it can't function for 7 days. It can affect targets through 10 ft of soft earth or similar, but they take 1 min to claw to the surface. Once per 24 hours, I can blow it to reassert control over 1 or 2 targ I animated with it.\",\n\tdescriptionFull : \"This whistle is carved from transparent crystal, and it resembles a tiny dragon curled up like a snail. The name Night Caller is etched on the whistle in Dwarvish runes. If a character succeeds on a DC 20 Intelligence (Arcana or History) check, the character recalls lore that says the duergar made several such whistles for various groups in an age past.\\n   If you blow the whistle in darkness or under the night sky, it allows you to cast the Animate Dead spell. The target can be affected through up to 10 feet of soft earth or similar material, and if it is, it takes 1 minute to claw its way to the surface to serve you. Once the whistle has animated an undead creature, it can't do so again until 7 days have passed.\\n   Once every 24 hours, you can blow the whistle to reassert control over one or two creatures you animated with it.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"7 days\",\n\tspellFirstColTitle : \"Us\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per 7 days\",\n\t\tspells : [\"animate dead\"],\n\t\tselection : [\"animate dead\"],\n\t\tfirstCol : \"checkbox\"\n\t}],\n\tspellChanges : {\n\t\t\"animate dead\" : {\n\t\t\tdescription : \"In darkness, turn (buried) corpse into Skeleton/Zombie; control for 24h; bns a command within 60 ft\",\n\t\t\tchanges : \"Night Caller can only be used in darkness or under the night sky. It can only create a single Skeleton or Zombie, but can animate a corpse buried below up to 10 feet of soft earth or similar material.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"potion of mind control\"] = {\n\tname : \"Potion of Mind Control\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"potion\",\n\tmagicItemTable : \"E\",\n\tdescription : \"\",\n\tdescriptionFull : \"When you drink a potion of mind control, you can cast a dominate spell (save DC 15) on a specific creature if you do so before the end of your next turn. If you don't, the potion is wasted.\\n   A potion of mind control produces the effect of a Dominate Beast (beast), Dominate Person (humanoid), or Dominate Monster (monster) spell depending on its type. If the target's initial saving throw fails, the effect lasts for 1 hour, with no concentration required on your part. The charmed creature has disadvantage on new saving throws to break the effect during this time.\",\n\tweight : 1,\n\tchoices : [\"Beast\", \"Humanoid\", \"Monster\"],\n\t\"beast\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Beast before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t},\n\t\"humanoid\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Person before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t},\n\t\"monster\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion can cast Dominate Monster before the end of my next turn. The spell save DC is 15 and it lasts for 1 hour, requiring no concentration. Once charmed, the target has disadvantage on new saves to break the effect.\"\n\t}\n}\nMagicItemsList[\"robe of summer\"] = {\n\tname : \"Robe of Summer\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This elegant garment is made from fine cloth in hues of red, orange, and gold. While I wear the robe, I have resistance to cold damage. In addition, I am comfortable as if the temperature were that of a balmy day, so I suffer no ill effects from the weather's temperature extremes.\",\n\tdescriptionFull : \"This elegant garment is made from fine cloth in hues of red, orange, and gold. While you wear the robe, you have resistance to cold damage. In addition, you are comfortable as if the temperature were that of a balmy day, so you suffer no ill effects from the weather's temperature extremes.\",\n\tattunement : true,\n\tweight : 1,\n\tdmgres : [\"Cold\"]\n}\nMagicItemsList[\"shatterspike\"] = {\n\tname : \"Shatterspike\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this magic longsword. If it hits an object, the hit is automatically a critical hit, and it can deal bludgeoning or slashing damage to the object (my choice). Further, damage from nonmagical sources can't harm the weapon.\",\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon. If it hits an object, the hit is automatically a critical hit, and it can deal bludgeoning or slashing damage to the object (your choice). Further, damage from nonmagical sources can't harm the weapon.\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /Shatterspike/i,\n\t\tname : \"Shatterspike\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\tdescription : \"Versatile (1d10); Against objects: always critical hit, can choose to deal bludgeoning damage\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"spear of backbiting\"] = {\n\tname : \"Spear of Backbiting\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (spear)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"This spear has +2 to hit and damage, +30 ft range, and deals +1d6 damage when thrown. After a throwing attack, it flies back to my hand immediately. While its curse lasts, I'm unwilling to part with it and have disadv. on attacks with other weapon. Also, on a roll of 1 to hit, I roll the attack again, but at myself with adv.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, its normal and long ranges both increase by 30 feet. and it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with Remove Curse or similar magic, you are unwilling to part with the weapon, keeping it within reach at all times. In addition, you have disadvantage on attack rolls made with weapons other than this one.\\n   Whenever you roll a 1 on an attack roll using this weapon, the weapon bends or flies to hit you in the back. Make a new attack roll with advantage against your own AC. If the result is a hit, you take damage as if you had attacked yourself with the spear.\",\n\tattunement : true,\n\tweight : 3,\n\tcursed : true,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"spear\",\n\t\tregExpSearch : /^(?=.*spear)(?=.*backbiting).*$/i,\n\t\tname : \"Spear of Backbiting\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\trange : \"Melee, 50/90 ft\",\n\t\tdescription : \"Thrown, versatile (1d8); +1d6 damage if thrown; Returning; On 1 to hit: attack myself with adv.\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"stone of ill luck\"] = {\n\tname : \"Stone of Ill Luck\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"C\",\n\tdescription : \"Although this polished agate appears to be a stone of good luck to anyone who tries to identify it. While it is on my person, it gives me a +1 bonus and a -2 penalty (from the curse) to ability checks and saving throws (for a total of -1). Until the curse is broken, I am unwilling to part with the item.\",\n\tdescriptionFull : \"This polished agate appears to be a stone of good luck to anyone who tries to Identify it, and it confers that item's property while on your person.\\n   \" + toUni(\"Curse\") + \". This item is cursed. While it is on your person, you take a -2 penalty to ability checks and saving throws. Until the curse is discovered, the DM secretly applies this penalty, assuming you are adding the item's bonus. You are unwilling to part with the stone until the curse is broken with Remove Curse or similar magic.\",\n\tattunement : true,\n\tweight : 1,\n\tcursed : true,\n\taddMod : [\n\t\t{ type : \"save\", field : \"all\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my saving throws.\" },\n\t\t{ type : \"skill\", field : \"all\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my ability checks.\" },\n\t\t{ type : \"skill\", field : \"Init\", mod : -1, text : \"I gain a +1 bonus and -2 penalty on all my ability checks.\" }\n\t]\n}\nMagicItemsList[\"wand of entangle\"] = {\n\tname : \"Wand of Entangle\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"wand\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"This wand has 7 charges, regaining 1d6+1 expended charges daily at dawn. If I use its last charge, I roll a d20. On a 1, it is destroyed. As an action, I can expend 1 charge to cast Entangle (save DC 13) from it.\",\n\tdescriptionFull : \"This wand has 7 charges. While holding it, you can use an action to expend 1 of its charges to cast the Entangle spell (save DC 13) from it.\\n   The wand regains 1d6+1 expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand crumbles into ashes and is destroyed.\",\n\tattunement : true,\n\tweight : 1,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tusages : 7,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+1\",\n\tfixedDC : 13,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"entangle\"],\n\t\tselection : [\"entangle\"],\n\t\tfirstCol : 1\n\t}]\n}\nMagicItemsList[\"waythe\"] = {\n\tname : \"Waythe\",\n\tsource : [[\"TftYP\", 229]],\n\ttype : \"weapon (greatsword)\",\n\trarity : \"legendary\",\n\tstoryItemAL : true,\n\tdescription : \"This greatsword adds +1 to hit and damage. Against giants, it deal +2d6 damage and they must make a DC 15 Str save or be knocked prone. It has 7 charges, regaining 1d6+1 at dawn. As an action, I can expend 1 charge to speak its command word to detect enemies within 60 ft. Waythe is sentient, see Notes page.\",\n\tdescriptionLong : \"This greatsword adds a +1 bonus to attack and damage rolls made with it. Against giants, it deal 2d6 extra slashing damage and when a giant is hit with it, they must make a DC 15 Strength saving throw or be knocked prone. It has 7 charges, regaining 1d6+1 at dawn. As an action, I can expend 1 charge to speak its command, letting me know the direction of the nearest creature hostile to me within 60 ft, regardless of it being ethereal, invisible, disguised, or hidden. This lasts for 1 minute. Waythe is sentient and has a mind of its own, see Notes page.\",\n\tdescriptionFull : \"Waythe is a unique greatsword most recently in the possession of a high-ranking cloud giant ambassador.\\n   You gain a +1 bonus to attack and damage rolls made with this magic weapon. When you hit a creature of the giant type with it, the giant takes an extra 2d6 slashing damage, and it must succeed on a DC 15 Strength saving throw or fall prone.\\n   The sword also functions as a wand of enemy detection. It regains all of its expended charges at dawn and isn't at risk of crumbling if its last charge is used.\\n   \" + toUni(\"Sentience\") + \". Waythe is a sentient weapon of neutral good alignment, with an Intelligence of 12, a Wisdom of 2, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet.\\n   The weapon can speak and understand Giant and Common, and it can communicate telepathically with its wielder.\\n   \" + toUni(\"Personality\") + \". This sword believes in freedom and allowing others to live as they see fit. It is protective of its friends, and wants to be friends with a like-minded wielder. (It takes only 1 minute for a good-aligned character to gain attunement with the sword.) Waythe is courageous to the point of foolhardiness, however, and vocally urges bold action. It is likely to come into conflict with an evil or a timid wielder.\",\n\tattunement : true,\n\tweight : 6,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greatsword\",\n\t\tregExpSearch : /waythe/i,\n\t\tname : \"Waythe\",\n\t\tsource : [[\"TftYP\", 229]],\n\t\tdescription : \"Heavy, two-handed; +2d6 damage vs. giants; Giants DC 15 Str save or fall prone\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 7,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+1\",\n\taction : [[\"action\", \"\"]],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc([\n\t\t\t\"It takes only 1 minute for a good-aligned character to gain attunement with this sword.\",\n\t\t\t\"I gain a +1 bonus to attack and damage rolls made with this magic greatsword. When I hit a creature of the giant type with it, it deals an extra 2d6 slashing damage, and the giant must succeed on a DC 15 Strength saving throw or fall prone.\",\n\t\t\t\"Waythe has 7 charges and regains 1d6+1 expended charges daily at dawn. As an action while holding it, I can expend 1 charge to speak its command word. For the next minute, I know the direction of the nearest creature hostile to me within 60 ft, but not its distance from me. Waythe can sense the presence of hostile creatures that are ethereal, invisible, disguised, or hidden, as well as those in plain sight. The effect ends if I stop holding Waythe.\",\n\t\t\t\"Waythe is a sentient weapon of neutral good alignment, with an Intelligence of 12, a Wisdom of 2, and a Charisma of 14. It has hearing and darkvision out to a range of 120 feet, can speak and understand Giant and Common, and can communicate telepathically with its wielder.\",\n\t\t\t\"Waythe believes in freedom and allowing others to live as they see fit. It is protective of its friends, and wants to be friends with a like-minded wielder. Waythe is courageous to the point of foolhardiness, however, and vocally urges bold action. It is likely to come into conflict with an evil or a timid wielder.\"\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\n\t}]\n}\nMagicItemsList[\"white dragonhide cape\"] = { // worn by king Snurre\n\tname : \"White Dragonhide Cape\",\n\tsource : [[\"TftYP\", 193]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"G\",\n\tdescription : \"I have resistance to cold damage while wearing this cape\",\n\tdescriptionFull : \"This magic cape grants the wearer resistance to cold damage.\",\n\tdmgres : [\"Cold\"]\n}\nMagicItemsList[\"spellcasting bolts\"] = {\n\tname : \"Spellcasting Bolts\",\n\tsource : [[\"TftYP\", 209]],\n\ttype : \"weapon (crossbow bolts)\",\n\trarity : \"rare\",\n\tmagicItemTable : \"B\",\n\tdescription : \"These magical crossbow bolts cast a spell on the target they are used on.\",\n\tdescriptionFull : \"These magical crossbow bolts cast a spell on the target they are used on. The spell has a save DC of 15 and a duration of 1 minute.\",\n\tchoices : [\"Bolt of Holding\", \"Bolt of Blinding\", \"Bolt of Vapors\"],\n\t\"bolt of holding\" : {\n\t\tname : \"Bolt of Holding\",\n\t\tdescription : \"This magic crossbow bolt casts Hold Person on the target hit with it, as well as up to two others within 30 ft of that target. The targets must succeed on a DC 15 Wisdom save or be paralyzed for 1 minute. At the end of each of their turns, they can make another Wisdom save to end the effect on themselves.\",\n\t\tdescriptionFull : \"This magic bolt casts hold person on the target hit with it, as well as up to two other targets within 30 feet of that target. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t},\n\t\"bolt of blinding\" : {\n\t\tname : \"Bolt of Blinding\",\n\t\tdescription : \"This magic bolt casts Blindness/Deafness on the target hit with it, as well as up to two others within 30 ft of that target. The targets must make a DC 15 Con save or be blinded or deafened (my choice) for 1 minute. At the end of each of their turns, a target can make another Con save to end the effect on itself.\",\n\t\tdescriptionFull : \"This magic bolt casts blindness/deafness to blind on a target hit with the bolt, as well as up to two other targets within 30 feet of that target. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t},\n\t\"bolt of vapors\" : {\n\t\tname : \"Bolt of Vapors\",\n\t\tdescription : \"This magic crossbow bolt casts Stinking Cloud centered on the point it hits, creating a 20-ft radius sphere of yellow, nauseating gas there for 1 minute. It heavily obscures and creatures fully in the cloud or starting their turn in it must make a DC 15 Con save against poison or spend their action that turn retching.\",\n\t\tdescriptionFull : \"This magic bolt casts stinking cloud centered on the point it hits. The spell has a spell save DC of 15 and a duration of 1 minute.\"\n\t}\n}\nMagicItemsList[\"berserker battleaxe (tamoachan)\"] = {\n\tname : \"Berserker Battleaxe (Tamoachan)\", // can't just be \"Berserker Battleaxe\" or the magic item \"Berserker Axe\" wouldn't work anymore\n\tsource : [[\"TftYP\", 68]], // Tloques' battleaxe\n\ttype : \"weapon (battleaxe)\",\n\trarity : \"very rare\",\n\tmagicItemTable : \"H\",\n\tdescription : \"This axe gives +2 to hit and damage, +1 HP per level, and has 12 charges to cast spells, regaining 1d6+4 at dawn. I can't part with it, have disadv. with other weapons, and if I'm damaged by a hostile, I must make a DC 15 Wis save or go berserk: attack the closest creature with the axe until none remain within 60 ft.\",\n\tdescriptionLong : \"This axe adds a +2 bonus to attack and damage rolls made with it. While attuned to it, my HP maximum increases by 1 for each level I have. It has scrolls of Passwall, Burning Hands, and Gust of Wind beneath the wrappings of its handle. As long as these remain there, it has 12 charges to cast these spells, regaining 1d6+4 at dawn. It is cursed, making it so that I can't part with it and have disadvantage on attack rolls made with other weapons. If I'm damaged by a hostile, I must make a DC 15 Wis save or go berserk, using my action each turn to attack the closest creature with the axe until none remain within 60 ft.\",\n\tdescriptionFull : \"This battleaxe has a blade of bronze, and the haft is wound with snakeskin wrappings. You gain a +2 bonus to attack and damage rolls made with this magic weapon. In addition, while you are attuned to this weapon, your hit point maximum increases by 1 for each level you have attained.\\n   Concealed beneath the wrappings around the handle is a parchment containing the spells passwall, burning hands, and gust of wind. When the attuned wielder uses an action to say the correct words of power, which are engraved in Olman on the axe blade, one of these spells can be cast.\\n   The axe has 12 charges and regains 1d6+4 expended charges daily at dawn. Casting a spell from it takes a number of charges equal to the level at which the spell is cast (5th for passwall, 2nd for gust of wind, and 1st or higher for burning hands; spell save DC 15). If the parchment is removed from the axe, the axe loses the capability of casting these spells forever.\\n   \" + toUni(\"Curse\") + \". This axe is cursed, and becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the axe, keeping it within reach at all times. You also have disadvantage on attack rolls with weapons other than this one, unless no foe is within 60 feet of you that you can see or hear.\\n   Whenever a hostile creature damages you while the axe is in your possession, you must succeed on a DC 15 Wisdom saving throw or go berserk. While berserk, you must use your action each round to attack the creature nearest to you with the axe. If you can make extra attacks as part of the Attack action, you use those extra attacks, moving to attack the next nearest creature after you fell your current target. If you have multiple possible targets, you attack one at random. You are berserk until you start your turn with no creatures within 60 feet of you that you can see or hear.\",\n\tattunement : true,\n\tweight : 4,\n\tusages : 12,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+4\",\n\tlimfeaname : \"Berserker Battleaxe\",\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1+ charges\",\n\t\tspells : [\"burning hands\"],\n\t\tselection : [\"burning hands\"],\n\t\tfirstCol : \"1+\"\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"gust of wind\"],\n\t\tselection : [\"gust of wind\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"passwall\"],\n\t\tselection : [\"passwall\"],\n\t\tfirstCol : 5\n\t}],\n\tspellChanges : {\n\t\t\"burning hands\" : {\n\t\t\tdescription : \"All in area 3d6+1d6/extra charge Fire dmg; save halves; unattended flammable objects ignite\",\n\t\t\tchanges : \"The spell level this is cast at depends on the amount of charges spend, 1 charge per spell slot level.\"\n\t\t}\n\t},\n\tcalcChanges : {\n\t\thp : function (totalHD) { return [totalHD]; }\n\t},\n\tweaponOptions : [{\n\t\tbaseWeapon : \"battleaxe\",\n\t\tregExpSearch : /^(?=.*berserker)(?=.*battleaxe).*$/i,\n\t\tname : \"Berserker Battleaxe\",\n\t\tsource : [[\"TftYP\", 68]],\n\t\tdescription : \"Versatile (1d10); Cursed\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"plantslayer longsword\"] = {\n\tname : \"Plantslayer Longsword\",\n\tsource : [[\"TftYP\", 70]], // from Stone Statue\n\ttype : \"weapon (longsword)\",\n\trarity : \"rare\",\n\tmagicItemTable : \"F\",\n\tdescription : \"This sword is made of laminated wood, inset with jagged teeth of obsidian. I gain a +1 bonus to attack and damage rolls made with this magic weapon. In addition, it deals an extra 2d6 damage to any creature of the plant type.\",\n\tdescriptionFull : \"This sword is made of laminated wood, inset with jagged teeth of obsidian. You gain a +1 bonus to attack and damage rolls made with this magic weapon. In addition, it deals an extra 2d6 damage to any creature of the plant type.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*plantslayer)(?=.*longsword).*$/i,\n\t\tname : \"Plantslayer Longsword\",\n\t\tsource : [[\"TftYP\", 70]],\n\t\tdescription : \"Versatile (1d10); +2d6 damage vs. plants\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\n"
  },
  {
    "path": "WotC material/pub_20170915_Tortle.js",
    "content": "var iFileName = \"pub_20170915_Tortle.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the Tortle Race from the Tortle Package from Extra Life to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.TP={\r\n\tname : \"Tortle Package\",\r\n\tabbreviation : \"TP\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/221716/Tortle-Package-5e\",\r\n\tdate : \"2017/09/15\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// The Tortle race\r\nRaceList.tortle = {\r\n\tregExpSearch : /tortle/i,\r\n\tname : \"Tortle\",\r\n\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\tplural : \"Tortles\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Aquan\"],\r\n\tskills : [\"Survival\"],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*shell).*$/i,\r\n\t\tname : \"Tortle's Shell\",\r\n\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\tac : 17,\r\n\t\tdex : -10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*\\bclaws?\\b).*$/i,\r\n\t\tname : \"Tortle's Claws\",\r\n\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood by the age of 15 and live an average of 50 years\",\r\n\theight : \" stand between 5 and 6 feet tall (4'10\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 450 lb (400 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 and 1,8 metres tall (150 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 190 kg (180 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 0, 0, 0, 1, 0],\r\n\taction : [[\"action\", \"Shell Defense (start)\"], [\"bonus action\", \"Shell Defense (end)\"]],\r\n\ttrait : \"Tortle (+2 Strength, +1 Wisdom)\"+\r\n\t\"\\n \\u2022 Claws: My unarmed strikes with my claws deal 1d4 slashing damage.\"+\r\n\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 1 hour at a time.\"+\r\n\t\"\\n \\u2022 Natural Armor: I have a base AC of 17, but I can't add my Dex to it or wear armor.\"+\r\n\t\"\\n \\u2022 Shell Defense: As an action, I can withdraw into my shell and gain +4 AC and adv. on Str and Con saves, but I count as prone, have speed 0, have disadv. on Dex saves, and can't take reactions. The only action I can take is a bonus action to emerge from the shell.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20170919_ToA.js",
    "content": "var iFileName = \"pub_20170919_ToA.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the backgrounds and beasts from the Tomb of Annihilation adventure book to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.ToA={\r\n\tname : \"Tomb of Annihilation [backgrounds, beasts, items]\",\r\n\tabbreviation : \"ToA\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/tomb-annihilation\",\r\n\tdate : \"2017/09/19\"\r\n};\r\n\r\n// Add Human to Yuan-ti tranformation from the ritual (excluded by default)\r\nAddRacialVariant(\"human\", \"yuan-ti transformed\", {\r\n\tdefaultExcluded : true,\r\n\tregExpSearch : /^(?!.*variant)(?=.*yuan.ti)(?=.*transformed)?.*$/i,\r\n\tsource : [[\"ToA\", 119]],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\timmune : [\"poison\"],\r\n\t\tadv_vs : [\"magic\"]\r\n\t},\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"1 snake (beast) with less than 4 Int save or charmed for the duration\",\r\n\t\t\tchanges : \"Using Innate Spellcasting, I can cast Animal Friendship at will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"suggestion\" : {\r\n\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Yuan-ti Human (+1 to all ability scores)\\n   Madness: I suffer from an indefinite madness (DMG 258).\\n   Innate Spellcasting: I know the Poison Spray cantrip and can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\\n   Magic Resistance: I have advantage on saves against spells and other magical effects.\"\r\n});\r\nif (RaceSubList['human-variant']) {\r\n\tAddRacialVariant(\"human\", \"yuan-ti transformed variant\", {\r\n\t\tdefaultExcluded : true,\r\n\t\tregExpSearch : /^(?=.*variant)(?=.*yuan.ti)(?=.*transformed)?.*$/i,\r\n\t\tsource : [[\"ToA\", 119]],\r\n\t\tskillstxt : \"Choose any one skill\",\r\n\t\tscorestxt : \"+1 to two different ability scores of my choice\",\r\n\t\tscores : [0, 0, 0, 0, 0, 0],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : {\r\n\t\t\timmune : [\"poison\"],\r\n\t\t\tadv_vs : [\"magic\"]\r\n\t\t},\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Innate Spellcasting (level 1)\",\r\n\t\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\t\tfirstCol : 'atwill',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"animal friendship\" : {\r\n\t\t\t\tdescription : \"1 snake (beast) with less than 4 Int save or charmed for the duration\",\r\n\t\t\t\tchanges : \"Using Innate Spellcasting, I can cast Animal Friendship at will, but only to target snakes.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tfeatures : {\r\n\t\t\t\"suggestion\" : {\r\n\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Innate Spellcasting (level 3)\",\r\n\t\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Yuan-ti Human (+1 to two different ability scores of my choice)\\n   Skill & Feat: I gain proficiency in one skill of my choice and I gain one feat of my choice.\\n   Madness: I suffer from an indefinite madness (DMG 258).\\n   Innate Spellcasting: I know the Poison Spray cantrip and can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest. Charisma is my spellcasting ability for these spells.\\n   Magic Resistance: I have advantage on saves against spells and other magical effects.\",\r\n\t\teval : RaceSubList['human-variant'].eval,\r\n\t\tremoveeval : RaceSubList['human-variant'].removeeval\r\n\t});\r\n}\r\n\r\n// Backgrounds (with contributions by SoilentBrad and @lowbrr)\r\nBackgroundList[\"anthropologist\"] = {\r\n\tregExpSearch : /anthropologist/i,\r\n\tname : \"Anthropologist\",\r\n\tsource : [[\"ToA\", 191], [\"ALbackground\", 0]],\r\n\tskills : [\"Insight\", \"Religion\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Leather-bound diary\", \"\", 5],\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Trinket of special significance\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Adept Linguist\",\r\n\ttrait : [\r\n\t\t\"I prefer the company of those who aren't like me, including people of other races.\",\r\n\t\t\"I'm a stickler when it comes to observing proper etiquette and local customs.\",\r\n\t\t\"I would rather observe than meddle.\",\r\n\t\t\"By living among violent people, I have become desensitized to violence.\",\r\n\t\t\"I would risk life and limb to discover a new culture or unravel the secrets of a dead one.\",\r\n\t\t\"When I arrive at a new settlement for the first time, I must learn all its customs.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Discovery\",\r\n\t\t\t\"Discovery: I want to be the first person to discover a lost culture. (Any)\"\r\n\t\t],\r\n\t\t[\"Distance\",\r\n\t\t\t\"Distance: One must not interfere with the affairs of another culture \\u2015 even one in need of aid. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Knowledge\",\r\n\t\t\t\"Knowledge: By understanding other races and cultures, we learn to understand ourselves. (Any)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: Common people crave strong leadership, and I do my utmost to provide it. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Protection\",\r\n\t\t\t\"Protection: I must do everything possible to save a society facing extinction. (Good)\"\r\n\t\t],\r\n\t\t[\"Indifferent\",\r\n\t\t\t\"Indifferent: Life is cruel. What's the point in saving people if they're going to die anyway? (Chaotic)\"\r\n\t\t],\r\n\t],\r\n\tbond : [\r\n\t\t\"My mentor gave me a journal filled with lore and wisdom. Losing it would devastate me.\",\r\n\t\t\"Having lived among the people of a primeval tribe or clan, I long to return and see how they are faring.\",\r\n\t\t\"Years ago, tragedy struck the members of an isolated society I befriended, and I will honor them.\",\r\n\t\t\"I want to learn more about a particular humanoid culture that fascinates me.\",\r\n\t\t\"I seek to avenge a clan, tribe, kingdom, or empire that was wiped out.\",\r\n\t\t\"I have a trinket that I believe is the key to finding a long-lost society.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"Boats make me seasick.\",\r\n\t\t\"I talk to myself, and I don't make friends easily.\",\r\n\t\t\"I believe that I'm intellectually superior to people from other cultures and have much to teach them.\",\r\n\t\t\"I've picked up some unpleasant habits living among goblins, lizardfolk, or orcs.\",\r\n\t\t\"I complain about everything.\",\r\n\t\t\"I wear a tribal mask and never take it off.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Adopted Culture\",\r\n\t\t\"Aarakocra\",\r\n\t\t\"Dwarf\",\r\n\t\t\"Elf\",\r\n\t\t\"Goblin\",\r\n\t\t\"Halfling\",\r\n\t\t\"Human\",\r\n\t\t\"Lizardfolk\",\r\n\t\t\"Orc\",\r\n\t],\r\n\tlanguageProfs : [2]\r\n};\r\nBackgroundList[\"archaeologist\"] = {\r\n\tregExpSearch : /archa?eologist/i,\r\n\tname : \"Archaeologist\",\r\n\tsource : [[\"ToA\", 192], [\"ALbackground\", 0]],\r\n\tskills : [\"History\", \"Survival\"],\r\n\tgold : 25,\r\n\tequipleft : [\r\n\t\t[\"Map case with a map of a ruin/dungeon\", \"\", 1],\r\n\t\t[\"Bullseye lantern\", \"\", 2],\r\n\t\t[\"Miner's pick\", \"\", 10],\r\n\t\t[\"Shovel\", \"\", 5],\r\n\t\t[\"Two-person tent\", \"\", 20]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Trinket recovered from a dig site\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Historical Knowledge\",\r\n\ttrait : [\r\n\t\t\"I love a good puzzle or mystery.\",\r\n\t\t\"I'm a pack rat who never throws anything away.\",\r\n\t\t\"Fame is more important to me than money.\",\r\n\t\t\"I have no qualms about stealing from the dead.\",\r\n\t\t\"I'm happier in a dusty old tomb than I am in the centers of civilization.\",\r\n\t\t\"Traps don't make me nervous. Idiots who trigger traps make me nervous.\",\r\n\t\t\"I might fail, but I will never give up.\",\r\n\t\t\"You might think I'm a scholar, but I love a good brawl. These fists were made for punching.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Preservation\",\r\n\t\t\t\"Preservation: That artifact belongs in a museum. (Good)\"\r\n\t\t],\r\n\t\t[\"Greed\",\r\n\t\t\t\"Greed: I won't risk my life for nothing. I expect some kind of payment. (Any)\"\r\n\t\t],\r\n\t\t[\"Death Wish\",\r\n\t\t\t\"Death Wish: Nothing is more exhilarating than a narrow escape from the jaws of death. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Dignity\",\r\n\t\t\t\"Dignity: The dead and their belongings deserve to be treated with respect. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Immortality\",\r\n\t\t\t\"Immortality: All my exploring is part of a plan to find the secret of everlasting life. (Any)\"\r\n\t\t],\r\n\t\t[\"Danger\",\r\n\t\t\t\"Danger: With every great discovery comes grave danger. The two walk hand in hand. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"Ever since I was a child, I've heard stories about a lost city. I aim to find it, learn its secrets, and earn my place in the history books.\",\r\n\t\t\"I want to find my mentor, who disappeared on an expedition some time ago.\",\r\n\t\t\"I have a friendly rival. Only one of us can be the best, and I aim to prove it's me.\",\r\n\t\t\"I won't sell an art object or other treasure that has historical significance or is one of a kind.\",\r\n\t\t\"I'm secretly in love with the wealthy patron who sponsors my archaeological exploits.\",\r\n\t\t\"I hope to bring prestige to a library, a museum, or a university.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have a secret fear of some common wild animal \\u2015 and in my work, I see them everywhere.\",\r\n\t\t\"I can't leave a room without searching it for secret doors.\",\r\n\t\t\"When I'm not exploring dungeons or ruins, I get jittery and impatient.\",\r\n\t\t\"I have no time for friends or family. I spend every waking moment thinking about and preparing for my next expedition.\",\r\n\t\t\"When given the choice of going left or right, I always go left.\",\r\n\t\t\"I can't sleep except in total darkness.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Signature Item\",\r\n\t\t\"10-foot pole\",\r\n\t\t\"Crowbar\",\r\n\t\t\"Hat\",\r\n\t\t\"Hooded lantern\",\r\n\t\t\"Medallion\",\r\n\t\t\"Shovel\",\r\n\t\t\"Sledgehammer\",\r\n\t\t\"Whip\"\r\n\t],\r\n\ttoolProfs : [[\"Cartographer or navigator tools\", 1]],\r\n\tlanguageProfs : [1]\r\n};\r\n\r\n// Background features (with contributions by SoilentBrad and @lowbrr)\r\nBackgroundFeatureList[\"adept linguist\"] = {\r\n\tdescription : \"I can communicate with humanoids who don't speak any language I know. I must observe the humanoids interacting with one another for at least one day, after which I learn a handful of important words, expressions, and gestures \\u2015 enough to communicate on a rudimentary level.\",\r\n\tsource : [[\"ToA\", 191], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"historical knowledge\"] = {\r\n\tdescription : \"When I enter a ruin or dungeon, I can correctly ascertain its original purpose and determine its builders, whether those were dwarves, elves, humans, yuan-ti, or some other known race. In addition, I can determine the monetary value of art objects more than a century old.\",\r\n\tsource : [[\"ToA\", 192], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Weapon\r\nWeaponsList[\"yklwa\"] = {\r\n\tregExpSearch : /yklwa/i,\r\n\tname : \"Yklwa\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Simple\",\r\n\tdamage : [1, 8, \"piercing\"],\r\n\trange : \"Melee, 10/30 ft\",\r\n\tweight : 3,\r\n\tdescription : \"Thrown\",\r\n\tmonkweapon : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Gear\r\nGearList[\"rain catcher\"] = {\r\n\tinfoname : \"Rain catcher [1 gp]\",\r\n\tname : \"Rain catcher\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 1,\r\n\tweight : 5\r\n};\r\nGearList[\"insect repellent salve\"] = {\r\n\tinfoname : \"Salve (vial) [5 sp]\",\r\n\tname : \"Insect Repellent Salve, applications of\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 20,\r\n\tweight : \"\",\r\n\ttype : \"insect repellent\"\r\n};\r\nGearList[\"insect repellent incense\"] = {\r\n\tinfoname : \"Incense (block) [1 gp]\",\r\n\tname : \"Insect Repellent Incense, blocks of\",\r\n\tsource : [[\"ToA\", 32]],\r\n\tamount : 1,\r\n\tweight : \"\",\r\n\ttype : \"insect repellent\"\r\n};\r\n\r\n// Creatures\r\n// [dupl_start] reprints from Volo's Guide to Monsters\r\nif (!SourceList.V) {\r\n\tCreatureList[\"brontosaurus\"] = {\r\n\t\tname : \"Brontosaurus\",\r\n\t\tsource : [[\"V\", 139], [\"ToA\", 215], [\"MotM\", 95]],\r\n\t\tsize : 0, //Gargantuan\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 15,\r\n\t\thp : 121,\r\n\t\thd : [9, 20], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tsaves : [\"\", \"\", 6, \"\", \"\", \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"5\",\r\n\t\tproficiencyBonus : 3,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Stomp\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [5, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (20 ft)\",\r\n\t\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\"\r\n\t\t}, {\r\n\t\t\tname : \"Tail\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [6, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (20 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"deinonychus\"] = {\r\n\t\tname : \"Deinonychus\",\r\n\t\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\t\tsize : 3, //Medium\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 26,\r\n\t\thd : [4, 8], //[#, die]\r\n\t\tspeed : \"40 ft\",\r\n\t\tscores : [15, 15, 14, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 3\r\n\t\t},\r\n\t\tpassivePerception : 13,\r\n\t\tchallengeRating : \"1\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 3,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Claw\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Two claw and one bite as one Attack action; If used after moving 20 ft straight in the same round, see Pounce trait\"\r\n\t\t}, {\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Two claw and one bite as one Attack action (also, see Pounce trait)\"\r\n\t\t}],\r\n\t\tactions : [{\r\n\t\t\tname : \"Multiattack\",\r\n\t\t\tdescription : \"As an action on its turn, the deinonychus can make two Claw and one Bite attack.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Pounce\",\r\n\t\t\tdescription : \"If the deinonychus moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the deinonychus can make one bite attack against it as a bonus action.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"dimetrodon\"] = {\r\n\t\tname : \"Dimetrodon\",\r\n\t\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\t\tsize : 3, //Medium\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 12,\r\n\t\thp : 19,\r\n\t\thd : [3, 8], //[#, die]\r\n\t\tspeed : \"30 ft, swim 20 ft\",\r\n\t\tscores : [14, 10, 15, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 2\r\n\t\t},\r\n\t\tpassivePerception : 12,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"hadrosaurus\"] = {\r\n\t\tname : \"Hadrosaurus\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 224], [\"MotM\", 96]],\r\n\t\tsize : 2, //Large\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 11,\r\n\t\thp : 19,\r\n\t\thd : [3, 10], //[#, die]\r\n\t\tspeed : \"40 ft\",\r\n\t\tscores : [15, 10, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 2\r\n\t\t},\r\n\t\tpassivePerception : 12,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Tail\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"quetzalcoatlus\"] = {\r\n\t\tname : \"Quetzalcoatlus\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 230], [\"MotM\", 96]],\r\n\t\tsize : 1, //Huge\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 30,\r\n\t\thd : [4, 12], //[#, die]\r\n\t\tspeed : \"10 ft, fly 80 ft\",\r\n\t\tscores : [15, 13, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 2\r\n\t\t},\r\n\t\tpassivePerception : 12,\r\n\t\tchallengeRating : \"2\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [3, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\tdescription : \"If used after diving 30 ft towards a target, the attack deals 3d6 extra damage (Dive Attack)\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Dive Attack\",\r\n\t\t\tdescription : \"If the quetzalcoatlus is flying and dives at least 30 ft toward a creature and then hits it with a bite attack, the attack deals an extra 10 (3d6) damage to the target.\"\r\n\t\t}, {\r\n\t\t\tname : \"Flyby\",\r\n\t\t\tdescription : \"The quetzalcoatlus doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"stegosaurus\"] = {\r\n\t\tname : \"Stegosaurus\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 231], [\"MotM\", 96]],\r\n\t\tsize : 1, //Huge\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 76,\r\n\t\thd : [8, 12], //[#, die]\r\n\t\tspeed : \"40 ft\",\r\n\t\tscores : [20, 9, 17, 2, 11, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [6, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"velociraptor\"] = {\r\n\t\tname : \"Velociraptor\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 235], [\"MotM\", 96]],\r\n\t\tsize : 5, //Tiny\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 10,\r\n\t\thd : [3, 4], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [6, 14, 13, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 3\r\n\t\t},\r\n\t\tpassivePerception : 13,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 2,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t\t}, {\r\n\t\t\tname : \"Claw\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, 4, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t\t}],\r\n\t\tactions : [{\r\n\t\t\tname : \"Multiattack\",\r\n\t\t\tdescription : \"As an action on its turn, the velociraptor can make one Bite and one Claw attack.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Pack Tactics\",\r\n\t\t\tdescription : \"The velociraptor has advantage on an attack roll against a creature if at least one of the velociraptor's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t}]\r\n\t};\r\n} // dupl_end\r\n// The following creatures were transcribed with the help of SoilentBrand and @lowbrr\r\nCreatureList[\"almiraj\"] = {\r\n\tname : \"Almiraj\",\r\n\tsource : [[\"ToA\", 211]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"50 ft\",\r\n\tscores : [2, 16, 10, 2, 14, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 5,\r\n\t},\r\n\tsenses : \"Darkvision 30 ft; Adv. on Wis (Perception) checks using hearing/sight\",\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Horn\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Senses\",\r\n\t\tdescription : \"The almiraj has advantage on Wisdom (Perception) checks that rely on hearing or sight.\"\r\n\t}]\r\n};\r\nCreatureList[\"flying monkey\"] = {\r\n\tname : \"Flying Monkey\",\r\n\tnameAlt : [\"Monkey, Flying\"],\r\n\tsource : [[\"ToA\", 220]],\r\n\tsize : 4, //Small\r\n\ttype : \"Beast\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"30 ft, climb 20 ft, fly 30 ft\",\r\n\tscores : [8, 14, 11, 5, 12, 6],\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The flying monkey has advantage on an attack roll against a creature if at least one of the monkey's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}]\r\n};\r\nCreatureList[\"giant snapping turtle\"] = {\r\n\tname : \"Giant Snapping Turtle\",\r\n\tnameAlt : [\"Turtle, Giant Snapping\"],\r\n\tsource : [[\"ToA\", 222]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 17,\r\n\thp : 75,\r\n\thd : [10, 10],\r\n\tspeed : \"30 ft, swim 40 ft\",\r\n\tscores : [19, 10, 14, 2, 12, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amphibious\",\r\n\t\tdescription : \"The turtle can breathe air and water.\"\r\n\t}, {\r\n\t\tname : \"Stable\",\r\n\t\tdescription : \"Whenever an effect knocks the turtle prone, it can make a DC 10 Constitution saving throw to avoid being knocked prone. A prone turtle is upside down. To stand up, it must succeed on a DC 10 Dexterity check on its turn and then use all its movement for that turn. While prone, the turtle's AC becomes 12.\"\r\n\t}]\r\n};\r\nCreatureList[\"jaculi\"] = {\r\n\tname : \"Jaculi\",\r\n\tsource : [[\"ToA\", 225]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 16,\r\n\thd : [3, 10],\r\n\tspeed : \"30 ft, climb 20 ft\",\r\n\tscores : [15, 14, 11, 2, 8, 3],\r\n\tskills : {\r\n\t\t\"athletics\" : 4,\r\n\t\t\"perception\" : 1,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tsenses : \"Blindsight 30 ft; Adv. on Wis (Perception) checks using smell\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after at least 10 ft jump, adv. on to hit and extra 2d6 damage, see Spring trait\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Spring\",\r\n\t\tdescription : \"The jaculi springs up to 30 feet in a straight line and makes a bite attack against a target within its reach. This attack has advantage if the jaculi springs at least 10 feet. If the attack hits, the bite deals an extra 7 (2d6) piercing damage.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Camouflage\",\r\n\t\tdescription : \"The jaculi has advantage on Dexterity (Stealth) checks made to hide.\"\r\n\t}, {\r\n\t\tname : \"Keen Smell\",\r\n\t\tdescription : \"The jaculi has advantage on Wisdom (Perception) checks that rely on smell.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Blindsight 30 ft.\",\r\n\t\t\"##Camouflage##. Advantage on Dexterity (Stealth) checks made to hide.\",\r\n\t\t\"##Keen Smell##. Advantage on Wisdom (Perception) checks that rely on smell.\",\r\n\t\t\"##Spring##. 30 ft in a straight line and make a bite attack. Advantage on the attack roll if springing at least 10 ft. It deals an extra 7 (2d6) piercing damage on a hit.\",\r\n\t].join(\"\\n\"),\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"bob\"] = { // contributed by Nod_Hero\r\n\tname : \"Bob\",\r\n\tsource : [[\"ToA\", 89]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Dwarvish runes on the head of this rusty battleaxe read 'Bob'. It adds a +1 bonus to attack and damage rolls made with it, floats on water and other liquids, and grants me advantage on Strength (Athletics) checks made to swim.\",\r\n\tdescriptionFull : \"Etched into the haft of the battleaxe are Dethek (Dwarvish) runes that spell the weapon's name: Bob. It floats on water and other liquids, adds a +1 bonus to attack and damage rolls made with it, and grants its bearer advantage on Strength (Athletics) checks made to swim.\",\r\n\tweight : 4,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /\\bbob\\b/i,\r\n\t\tname : '\"Bob\"',\r\n\t\tsource : [[\"ToA\", 89]],\r\n\t\tdescription : \"Versatile (1d10); Floats\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"longsword of speaking draconic\"] = { // contributed by Nod_Hero\r\n\tname : \"Longsword of Speaking Draconic\",\r\n\tsource : [[\"ToA\", 173]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This longsword has a dragon-shaped hilt. While I carry it, I gain the ability to speak and understand the Draconic language.\",\r\n\tdescriptionFull : \"This longsword has a dragon-shaped hilt. While you carry it, you gain the ability to speak and understand the Draconic language.\",\r\n\tweight : 3,\r\n\tlanguageProfs : [\"Draconic\"],\r\n\tweaponsAdd : {\r\n\t\tselect : [\"Longsword of Speaking Draconic\"],\r\n\t\toptions : [\"Longsword of Speaking Draconic\"]\r\n\t}\r\n};\r\nMagicItemsList[\"amulet of the black skull\"] = {\r\n\tname : \"Amulet of the Black Skull\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"The obsidian amulet has 6 charges, regaining 1d6 at dawn. As an action, I can expend a charge to teleport to a location within 100 ft that I'm familiar with. If I'm not undead, I must make a DC 16 Con save whenever I do so and if I fail, I'm transformed (see table on Notes page) as I arrive at the destination.\",\r\n\tdescriptionFull : \"This amulet is carved from obsidian and shaped like a screaming humanoid skull, with ruby eyes and emeralds for teeth. It hangs from an iron chain necklace.\\n   The amulet has 6 charges and regains 1d6 charges daily at dawn. While wearing the amulet, you can use an action to expend 1 of its charges to transport yourself and anything you are wearing or carrying to a location within 100 feet of you. The destination you choose doesn't need to be in your line of sight, but it must be familiar to you (in other words, a place you have seen or visited), and it must be on the same plane of existence as you. This effect isn't subject to the magic restrictions placed on the Tomb of the Nine Gods; thus, the amulet can be used to enter and exit the tomb.\\n   If you aren't undead, you must make a DC 16 Constitution saving throw each time you use the amulet to teleport. On a failed saving throw, the black skull cackles as you are transformed in transit. The transformation takes effect as soon as you arrive at the destination, and is determined randomly by rolling percentile dice and consulting the Black Skull Transformation table.\\n\\n\" + toUni(\"d100\\tTransformation\") + \"\\n01-20\\tThe symbol of Acererak is burned into your flesh, a curse that can only be removed with a Remove Curse spell or similar magic. Until the curse ends, your hit points can't be restored by magic.\\n21-35\\tYou grow larger as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\\n36-50\\tYou grow smaller as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\\n51-70\\tYou arrive at the destination wearing nothing but the amulet of the black skull. Everything else that you were wearing or carrying appears in a random unoccupied space within 100 feet of you.\\n71-95\\tYou are paralyzed for 1 minute or until this effect is ended with a Lesser Restoration spell or similar magic.\\n96-00\\tYou become petrified. This effect can be ended only with a Greater Restoration spell or similar magic.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Transformation Table\",\r\n\t\tnote : [\r\n\t\t\t\"This amulet is carved from obsidian and shaped like a screaming humanoid skull, with ruby eyes and emeralds for teeth. It hangs from an iron chain necklace.\",\r\n\t\t\t\"If I'm not undead, I must make a DC 16 Constitution save each time I use the amulet to teleport. On a failure, the black skull cackles as I'm transformed in transit. The transformation is random (see table below) and takes effect as soon as I arrive at the destination.\",\r\n\t\t\t\"d100\\tTRANSFORMATION\",\r\n\t\t\t\"01-20\\tThe symbol of Acererak is burned into my flesh, a curse that can only be removed with a Remove Curse spell or similar magic. Until the curse ends, my hit points can't be restored by magic.\",\r\n\t\t\t\"21-35\\tI grow larger as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\",\r\n\t\t\t\"36-50\\tI grow smaller as if affected by an Enlarge/Reduce spell, except the effect lasts for 1 hour.\",\r\n\t\t\t\"51-70\\tI arrive at the destination wearing nothing but the amulet of the black skull. Everything else that I was wearing or carrying appears in a random unoccupied space within 100 ft.\",\r\n\t\t\t\"71-95\\tI am paralyzed for 1 minute or until this effect is ended with a Lesser Restoration spell or similar magic.\",\r\n\t\t\t\"96-00\\tI become petrified. This effect can be ended only with a Greater Restoration spell or similar magic.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"bookmark\"] = {\r\n\tname : \"Bookmark\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This dagger adds +3 to hit and damage. As a bonus action while holding it, I can have it shed bright light in a 20-ft radius and dim light for another 20 ft, go dark, act as a compass, cast Dimension Door once per dawn, or cast Compulsion once per dawn, which effects only spiders of the beast type within 90 ft.\",\r\n\tdescriptionFull : \"This +3 dagger belongs to Artus Cimber. While you have the dagger drawn, you can use a bonus action to activate one of the following properties:\\n \\u2022 Cause a blue gem set into the dagger's pommel to shed bright light in a 20-foot radius and dim light for an additional 20 feet, or make the gem go dark.\\n \\u2022 Turn the dagger into a compass that, while resting on your palm, points north.\\n \\u2022 Cast Dimension Door from the dagger. Once this property is used, it can't be used again until the next dawn.\\n \\u2022 Cast Compulsion (save DC 15) from the dagger. The range of the spell increases to 90 feet but it targets only spiders that are beasts. Once this property is used, it can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /bookmark/i,\r\n\t\tname : \"Bookmark\",\r\n\t\tsource : [[\"ToA\", 206]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Compulsion (Bookmark)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Dimension Door (Bookmark)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"compulsion\", \"dimension door\"],\r\n\t\tselection : [\"compulsion\", \"dimension door\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"compulsion\" : {\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\trange : \"90 ft\",\r\n\t\t\tdescription : \"Any spiders that hear me save or I can, as bns, have it move fully in a direction; save again after move\",\r\n\t\t\tchanges : \"Using Bookmark, I can cast this as a bonus action with a range of 90 ft, but it can only target spiders with the beast type.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"ghost lantern\"] = {\r\n\tname : \"Ghost Lantern\",\r\n\tsource : [[\"ToA\", 206]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"As a bonus action, I can command the spirit in the lantern to shed bright light in 30-ft radius and dim light for another 30 ft. I can order the spirit to act as my Mage Hand. If I fall unconscious within 10 ft of the lantern, the spirit stabilizes me. Casting Dispel Evil and Good on it releases the spirit and makes it nonmagical.\",\r\n\tdescriptionFull : \"A restless spirit is trapped inside this lantern. While holding the lantern, you can command the spirit as a bonus action to shed bright light in a 30-foot radius and dim light for an additional 30 feet.\\n   While holding the lantern, you can use an action to order the spirit to leave the lantern and duplicate the effect of the Mage Hand spell. The spirit returns to the lantern when the spell ends.\\n   If you fall unconscious within 10 feet of the lantern, the spirit emerges from it, magically stabilizes you with a touch, and then quickly returns to the lantern.\\n   The spirit is bound to the lantern and can't be harmed, turned, or raised from the dead.\\n   Casting a Dispel Evil and Good spell on the lantern releases the spirit to the afterlife and renders the lantern nonmagical.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"mask of the beast\"] = {\r\n\tname : \"Mask of the Beast\",\r\n\tsource : [[\"ToA\", 207]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"C\",\r\n\tdescription : \"This wooden mask is shaped in the likeness of a beast's visage and has 3 charges. While wearing the mask I can expend 1 charge and use the mask to cast the Animal Friendship spell as an action. The mask regains all expended charges at dawn.\",\r\n\tdescriptionFull : \"This wooden mask is shaped in the likeness of a beast's visage and has 3 charges. While wearing the mask you can expend 1 charge and use the mask to cast the Animal Friendship spell as an action. The mask regains all expended charges at dawn.\",\r\n\tweight : 1,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"animal friendship\"],\r\n\t\tselection : [\"animal friendship\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n}\r\nMagicItemsList[\"scorpion armor\"] = {\r\n\tname : \"Scorpion Armor\",\r\n\tsource : [[\"ToA\", 208]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"This suit of plate armor fashioned from giant scorpion chitin doesn't impose disadv. on stealth or saves against extreme heat. It gives me +5 bonus on initiative while I'm not incapacitated. Whenever I don or doff it, I take 10d10+45 poison damage, DC 15 Con save halves. Only a Wish can remove this curse.\",\r\n\tdescriptionFull : \"This suit of plate armor is fashioned from giant scorpion chitin. While wearing this armor, you gain the following benefits:\\n \\u2022 The armor improves your combat readiness, granting you a +5 bonus to initiative as long as you aren't incapacitated.\\n \\u2022 The armor doesn't impose disadvantage on your Dexterity (Stealth) checks.\\n \\u2022 The armor doesn't impose disadvantage on saving throws made to resist the effects of extreme heat (see chapter 5 of the Dungeon Master's Guide).\\n\\n\" + toUni(\"Curse\") + \". This armor is cursed. Whenever you don or doff it, you must make a DC 15 Constitution saving throw, taking 100 (10d10+45) poison damage on a failed save, or half as much damage on a successful one. Only a Wish spell can remove the armor's curse.\",\r\n\tattunement : true,\r\n\tweight : 65,\r\n\tcursed : true,\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : 5, text : \"I gain a +5 bonus on my initiative rolls.\" }],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*scorpion)(?=.*armor).*$/i,\r\n\t\tname : \"Scorpion Armor\",\r\n\t\tsource : [[\"ToA\", 208]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : 18,\r\n\t\tstealthdis : false,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20171011_Grung.js",
    "content": "var iFileName = \"pub_20171011_One-Grung-Above.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the Grung Race from the One Grung Above from Extra Life to MPMB's Character Record Sheet\r\n// This file contains contributions by /u/GoldenSnurp\r\n// Be aware that this race is not legal in adventurers league!\r\n\r\nSourceList[\"OGA\"] = {\r\n\tname : \"One Grung Above\",\r\n\tabbreviation : \"OGA\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/223738/One-Grung-Above-5e\",\r\n\tdate : \"2017/10/11\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nRaceList[\"grung\"] = {\r\n\tregExpSearch : /grung/i,\r\n\tname : \"Grung\",\r\n\tsource : [[\"OGA\", 4]],\r\n\tplural : \"Grung\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd: 25, enc: 15 },\r\n\t\tclimb : { spd: 25, enc: 15 }\r\n\t},\r\n\tlanguageProfs : [\"Grung\"],\r\n\tsavetxt : { immune: [\"poison\"] },\r\n\tskills : [\"Perception\"],\r\n\tage : \" reach adulthood at the age of one and live around 50 years\",\r\n\theight : \" range from 2 1/2 to 3 1/2 feet tall\",\r\n\tweight : \" weigh around 30 lb\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Grung (+2 Dexterity, +1 Constitution)\\nPoisonous Skin: Creatures that touch me must make a DC 12 Con save or be poisoned for 1 min, repeating the save at the end of each of its turns. My piercing weapon attacks deal +2d4 poison damage if the target fails a DC 12 Con save.\\nStanding Leap: Without a running start, I can long jump to 25 ft and high jump to 15 ft.\\nWater Dependency: I can breathe air and water. I need to be immersed in water for 1 hour every day or suffer 1 level of exhaustion at the end of that day until I immerse for 1 hour.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20171121_XGtE.js",
    "content": "var iFileName = \"pub_20171121_XGtE.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n// This file adds the backgrounds and beasts from Xanathar's Guide to Everything to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.X={\r\n\tname : \"Xanathar's Guide to Everything\",\r\n\tabbreviation : \"XGtE\",\r\n\tabbreviationSpellsheet : \"X\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/xanathars-guide-everything\",\r\n\tdate : \"2017/11/21\"\r\n};\r\n\r\n// Add 3 subclasses for the Barbarian\r\nAddSubClass(\"barbarian\", \"ancestral guardian\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"X\", 9]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with an attack on my turn becomes distracted\",\r\n\t\t\t\t\"While distracted, it has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"In addition, everybody but me counts as having resistance to all of the target's attacks\",\r\n\t\t\t\t\"This lasts until the start of my next turn, or until my rage ends\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spirit Shield\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while raging when an ally I see within 30 ft is damaged, I can reduce it\",\r\n\t\t\t\t\"My guardian spirits reduce the damage by an amount equal to the roll of the dice\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d6 damage reduced\"; }),\r\n\t\t\taction : [[\"reaction\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast either Clairvoyance or Augury, without a spell slot or material components\",\r\n\t\t\t\t\"Augury consults ancestral spirits; Clairvoyance summons an invisible ancestral spirit\",\r\n\t\t\t\t\"Wisdom is my spellcasting ability for these spells\"\r\n\t\t\t]),\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"clairvoyance\"],\r\n\t\t\t\tselection : [\"clairvoyance\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"augury\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Omen about specific course of action I plan to take in the next 30 min\",\r\n\t\t\t\t\tchanges : \"My casting of Augury is a practice of consulting my ancestral spirits, thus requiring no material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"clairvoyance\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"My casting of Clairvoyance is a practice of consulting my an ancestral spirit of mine, thus requiring no material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"When using Spirit Shield, the attacker takes the reduced amount as force damage\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"storm herald\", {\r\n\tregExpSearch : /^(?=.*storm)(?=.*herald).*$/i,\r\n\tsubname : \"Path of the Storm Herald\",\r\n\tsubnameShort: \"Storm Herald\",\r\n\tfullname : \"Storm Herald\",\r\n\tsource : [[\"X\", 10]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Storm Aura\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the type of aura'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Desert\", \"Sea\", \"Tundra\"],\r\n\t\t\taction : [[\"bonus action\", \" (reactivate)\"]],\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Aura: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, anybody in my aura other than me takes fire damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 20 ? 5 : 6) + \" fire damage\"; })\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Aura: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, I can choose one creature in my aura other than me\",\r\n\t\t\t\t\t\"It takes lightning damage, or half as much on a successful Dexterity saving throw\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 10 ? 1 : n < 15 ? 2 : n < 20 ? 3 : 4) + \"d6 lightning damage\"; })\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Aura: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura, but not through total cover\",\r\n\t\t\t\t\t\"The aura's features activate when I enter my rage or as a bonus action while raging\",\r\n\t\t\t\t\t\"Whenever I active my aura, all creatures of my choice in my aura gain temporary HP\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 20 ? 5 : 6) + \" temporary hit points\"; })\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature10\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature14\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Storm Soul\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Soul: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to fire damage and don't suffer the effects of extreme heat\",\r\n\t\t\t\t\t\"As an action, I can set fire to an unattended flammable object I touch\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (ignite)\"]],\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme heat\"] }\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Soul: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can breathe underwater and I have 30 ft swim speed\",\r\n\t\t\t\t\t\"In addition, I have resistance to lightning damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Lightning\"],\r\n\t\t\t\tspeed : { swim : { spd : 30, enc : 20 } }\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Soul: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to cold damage and don't suffer the effects of extreme cold\",\r\n\t\t\t\t\t\"As an action, I can turn a 5-ft cube of water to ice, which melts after 1 minute\",\r\n\t\t\t\t\t\"This action fails if there are any creatures within the cube of water\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (freeze)\"]],\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme cold\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shielding Storm\",\r\n\t\t\tsource : [[\"X\", 10]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"In rage, creatures of my choice within my Storm Aura also gain Storm Soul resistance\"),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Shielding Storm: Desert\",\r\n\t\t\t\tdescription : desc(\"While raging, creatures of my choice within my Storm Aura also gain resistance to fire\")\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Shielding Storm: Sea\",\r\n\t\t\t\tdescription : desc(\"In rage, creatures of my choice within my Storm Aura also gain resistance to lightning\")\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Shielding Storm: Tundra\",\r\n\t\t\t\tdescription : desc(\"While raging, creatures of my choice within my Storm Aura also gain resistance to cold\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Raging Storm\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Raging Storm: Desert\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when hit by a creature in my Storm Aura, I can have it make a Dex save\",\r\n\t\t\t\t\t\"On a failed save, the attacker takes fire damage equal to half my barbarian level\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (if hit)\"]],\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : Math.floor(n/2) + \" fire damage\"; })\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Raging Storm: Sea\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when I hit a creature in my Storm Aura, I can have it make a Str save\",\r\n\t\t\t\t\t\"On a failed save, the creature is knocked prone, as if struck by a wave\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (with attack)\"]]\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Raging Storm: Tundra\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I activate my Storm Aura, I can choose a creature in my aura that I can see\",\r\n\t\t\t\t\t\"It must make a Str save or have its speed reduced to 0 until the start of my next turn\",\r\n\t\t\t\t\t\"My Storm Herald features have DC 8 + my Proficiency Bonus + my Constitution modifier\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"zealot\", {\r\n\tregExpSearch : /zealot/i,\r\n\tsubname : \"Path of the Zealot\",\r\n\tsubnameShort: \"Zealot\",\r\n\tfullname : \"Zealot\",\r\n\tsource : [[\"X\", 11]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Divine Fury\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\"This is necrotic or radiant damage equal to 1d6 + half my barbarian level\",\r\n\t\t\t\t'Choose a damage type using the \"Choose Feature\" button above'\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" damage\"; }),\r\n\t\t\tchoices : [\"Necrotic Damage\", \"Radiant Damage\"],\r\n\t\t\t\"necrotic damage\" : {\r\n\t\t\t\tname : \"Divine Fury\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\t\"It takes an extra 1d6 + half my barbarian level worth of necrotic damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"radiant damage\" : {\r\n\t\t\t\tname : \"Divine Fury\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While raging, the first creature I hit with a weapon attack in my turn gets extra damage\",\r\n\t\t\t\t\t\"It takes an extra 1d6 + half my barbarian level worth of radiant damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+1d6+\" + Math.floor(n/2) + \" radiant damage\"; })\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && classes.known.barbarian && classes.known.barbarian.level > 2 && (/\\brage\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tvar theDMG = GetFeatureChoice('class', 'barbarian', 'subclassfeature3');\r\n\t\t\t\t\t\t\tif (!theDMG) return;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6+' + Math.floor(classes.known.barbarian.level / 2) + ' ' + GetFeatureChoice('class', 'barbarian', 'subclassfeature3') + ' on first hit each turn';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Rage' in a melee weapon's name, it will show in its description that its first hit does extra damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Warrior of the Gods\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"Spells restoring me to life (not undeath or anything else) don't require material comp.\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fanatical Focus\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I fail a saving throw while raging, I can reroll it and must use the new roll\",\r\n\t\t\t\t\"I can use this ability only once per rage\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"rage\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Zealous Presence\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose up to 10 creatures within 60 ft that can hear my battle cry\",\r\n\t\t\t\t\"These creatures gain adv. on attacks and saves until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage Beyond Death\",\r\n\t\t\tsource : [[\"X\", 11]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, having 0 hit points doesn't knock me unconscious\",\r\n\t\t\t\t\"I still must make death saves, and I suffer the normal effects of taking damage\",\r\n\t\t\t\t\"I only die due to failed death saves if my rage ends while I'm at 0 HP\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Bard\r\nAddSubClass(\"bard\", \"college of glamour\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*glamour).*$/i,\r\n\tsubname : \"College of Glamour\",\r\n\tsubnameShort: \"Glamour\",\r\n\tsource : [[\"X\", 14]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mantle of Inspiration\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I expend one Bardic Inspiration die to aid those within 60 ft of me\",\r\n\t\t\t\t\"My Cha mod (min 1) of creatures that I can see and can see me gain temporary HP\",\r\n\t\t\t\t\"They can immediately use a reaction to move their speed, without opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"1 inspiration die; \" + (n < 5 ? 5 : n < 10 ? 8 : n < 15 ? 11 : 14) + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Enthralling Performance\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By performing for at least 1 minute, I can charm humanoids within 60 ft of me\",\r\n\t\t\t\t\"After the performance, my Cha mod (min 1) number of targets must make a Wis save\",\r\n\t\t\t\t\"On a fail, a target is charmed for 1 hour; If success, it doesn't knows I tried to charm it\",\r\n\t\t\t\t\"While charmed, the target idolizes me, hinders those opposing me, and avoids violence\",\r\n\t\t\t\t\"This lasts until a target takes damage, I attack it, or if it sees me attacking its allies\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I appear unearthly beautiful while I concentrate, up to 1 minute\",\r\n\t\t\t\t\"At the same time, and as a bonus action during, I can cast Command without a spell slot\",\r\n\t\t\t\t\"Creatures charmed by me automatically fail their saves against these Command spells\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\t\tspells : [\"command\"],\r\n\t\t\t\tselection : [\"command\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"command\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tdescription : \"1 crea save or follow one word command, e.g. approach, drop, flee, halt\",\r\n\t\t\t\t\tchanges : \"Using my Mantle of Majesty class feature, I can cast Command as a bonus action once per long rest without using a spell slot, thus only affect a single target.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\tsource : [[\"X\", 14]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I gain a magically majestic presence for 1 min or until incapacitated\",\r\n\t\t\t\t\"During this, the first time a creature attacks me each turn they must make a Cha save\",\r\n\t\t\t\t\"If failed, it can't attack me this turn and must choose another target or lose its attack\",\r\n\t\t\t\t\"If successful, it can attack, but has disadv. on all saves against my spells on my next turn\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of swords\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"X\", 15]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor and scimitars\",\r\n\t\t\t\t\"My bardic spellcasting focus can be any simple or martial weapon I'm proficient with\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Style\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc('Select a Fighting Style for the college of swords using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dueling\", \"Two-Weapon Fighting\"],\r\n\t\t\t\"dueling\" : FightingStyles.dueling,\r\n\t\t\t\"two-weapon fighting\" : FightingStyles.two_weapon\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"X\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action on my turn, I gain bonus speed and special attack options\",\r\n\t\t\t\t\"I gain +10 ft to my walking speed until the end of the current turn\",\r\n\t\t\t\t\"Once per turn when I hit with a weapon attack, I can expend a Bardic Inspiration die\",\r\n\t\t\t\t\"The roll of that die is added to the weapon's damage, in addition to one of the following:\",\r\n\t\t\t\t\"\\u2022 Defensive Flourish: the result is also added to my AC until the start of my next turn\",\r\n\t\t\t\t\"\\u2022 Slashing Flourish: the extra damage is also dealt to any of my choosing in 5 ft of me\",\r\n\t\t\t\t\"\\u2022 Mobile Flourish: the target is also pushed 5 plus the die result in feet away from me\",\r\n\t\t\t\t\"  As a reaction after this push, I can move my speed to a space within 5 ft of the target\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Flourish\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"When I do a Blade Flourish, I can use a d6 instead of expending a Bardic Inspiration die\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of whispers\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*whispers).*$/i,\r\n\tsubname : \"College of Whispers\",\r\n\tsubnameShort: \"Whispers\",\r\n\tsource : [[\"X\", 16]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psychic Blades\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I hit a creature with a weapon attack, I can expend one use of Bardic Inspiration\",\r\n\t\t\t\t\"If so, the attack does extra psychic damage; I can do so only once per round, on my turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"1 Bardic Inspiration for +\" + (n < 5 ? 2 : n < 10 ? 3 : n < 15 ? 5 : 8) + \"d6 damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Words of Terror\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By speaking privately with a humanoid for at least 1 minute, I can try to inspire terror\",\r\n\t\t\t\t\"After the talk, it must make a Wis save or be frightened of me or someone of my choice\",\r\n\t\t\t\t\"If the save is successful, the target doesn't know I tried to frighten it\",\r\n\t\t\t\t\"This lasts for 1 hour, or until it sees its allies or itself being attacked or damaged\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Whispers\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a humanoid dies within 30 ft of me, I can capture its shadow\",\r\n\t\t\t\t\"As an action, I can use it to make me look just like the dead person did while it was alive\",\r\n\t\t\t\t\"While disguised, I know general information about it and its memories, but not its secrets\",\r\n\t\t\t\t\"Others can see through the disguise with a Wis (Insight) check vs. my Cha (Deception) +5\",\r\n\t\t\t\t\"A shadow lasts until used or next long rest; The disguise ends as a bonus action or 1 hour\"\r\n\t\t\t]),\r\n\t\t\taction : [['action', 'Shadow Disguise (start)'], ['bonus action', 'Shadow Disguise (end)']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Lore\",\r\n\t\t\tsource : [[\"X\", 16]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I whisper to a creature within 30 ft that can hear and understand me\",\r\n\t\t\t\t\"Only the target can hear me; It must make a Wis save or be charmed by me for 8 hours\",\r\n\t\t\t\t\"If failed, it thinks I know its most mortifying secret, otherwise it only hears mumbling\",\r\n\t\t\t\t\"While charmed, the target obeys my commands, but won't fight or risk its life for me\",\r\n\t\t\t\t\"This lasts for 8 hours, or until I or my allies attack it, damage it, or have it make a save\"\r\n\t\t\t\t//\"When the effect ends, the target has no idea why it was so afraid of me\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 2 subclasses for the Cleric\r\nAddSubClass(\"cleric\", \"forge domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(forge|forgery|blacksmith)).*$/i,\r\n\tsubname : \"Forge Domain\",\r\n\tsource : [[\"X\", 18]],\r\n\tspellcastingExtra : [\"identify\", \"searing smite\", \"heat metal\", \"magic weapon\", \"elemental weapon\", \"protection from energy\", \"fabricate\", \"wall of fire\", \"animate objects\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain proficiency with heavy armor and smith's tools\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\ttoolProfs : [\"Smith's tools\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Blessing of the Forge\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the end of a long rest, I can imbue magic into a nonmagical weapon or armor\",\r\n\t\t\t\t\"It becomes magical: +1 AC if armor, or +1 to attack and damage rolls if a weapon\",\r\n\t\t\t\t\"This lasts until the end of my next long rest or until I die\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Artisan's Blessing\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With an hour-long ritual, I can craft a nonmagical item that is at least part metal\",\r\n\t\t\t\t\"Including: suit of armor, simple or martial weapon, set of tools, 10 pieces of ammunition\",\r\n\t\t\t\t\"The creation can be worth up to 100 gp, and I must expend metals of equal value to it\",\r\n\t\t\t\t\"The metals irretrievably coalesce into the new item, forming even nonmetal parts of it\",\r\n\t\t\t\t\"The item can be an exact duplicate of a nonmagical item if I possess the original\",\r\n\t\t\t\t\"The item comes into existence at the end of the hour in an unoccupied space within 5 ft\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Forge\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"I gain resistance to fire damage and +1 to AC while wearing medium or heavy armor\"),\r\n\t\t\tdmgres : [\"Fire\"],\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while wearing Medium or Heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.mediumArmor && !v.heavyArmor; }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 fire damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 fire damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra fire damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Saint of Forge and Fire\",\r\n\t\t\tsource : [[\"X\", 19]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain immunity to fire damage\",\r\n\t\t\t\t\"When wearing heavy armor, I'm resistant to nonmagical bludg./piercing/slashing damage\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"fire\"] },\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"grave domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*grave).*$/i,\r\n\tsubname : \"Grave Domain\",\r\n\tsource : [[\"X\", 19]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"gentle repose\", \"ray of enfeeblement\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"raise dead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Circle of Mortality\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Spells I cast to heal a living creature at 0 HP have their dice count as their max result\",\r\n\t\t\t\t\"I learn Spare the Dying, which I can cast as a bonus action with a range of 30 ft\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Circle of Mortality\",\r\n\t\t\t\tspells : [\"spare the dying\"],\r\n\t\t\t\tselection : [\"spare the dying\"],\r\n\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spare the dying\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\tchanges : \"I can cast Spare the Dying as a bonus action instead of an action, and it has a range of 30 ft instead of touch.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of the Grave\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : typePF ? \"Wisdom mod per \" : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I sense undead within 60 ft that aren't protected from divination magic\",\r\n\t\t\t\t\"Until the end of my next turn, I sense the location of any undead not behind total cover\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Path to the Grave\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can curse a creature within 30 ft until the end of my next turn\",\r\n\t\t\t\t\"It is vulnerable to all the damage from the next attack by me or my allies that hits it\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sentinel at Death's Door\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tusages : typePF ? \"Wisdom mod per \" : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription : desc(\"As a reaction, I turn a critical hit to me or an ally I see within 30 ft to a normal hit\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Keeper of Souls\",\r\n\t\t\tsource : [[\"X\", 20]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per round, if I'm not incapacitated, I can manipulate the energy of the dying\",\r\n\t\t\t\t\"When an enemy I can see dies within 60 ft of me, I or an ally within 60 ft regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the enemy's number of Hit Dice\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 2 subclasses for the Druid\r\nAddSubClass(\"druid\", \"circle of dreams\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*\\bdreams\\b).*$/i,\r\n\tsubname : \"Circle of Dreams\",\r\n\tsubnameShort: \"Dreams\",\r\n\tsource : [[\"X\", 22]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Balm of the Summer Court\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of fey energy represented by a number of d6s equal to my druid level\",\r\n\t\t\t\t\"As a bonus action, I can spend dice to heal an ally within 120 ft of me that I can see\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"The ally heals an amount equal to the total rolled and gains 1 temp HP per die spent\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n + \"d6 per \"; }),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hearth of Moonlight and Shadow\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of a rest, I can create a 30-ft radius invisible magical sphere\",\r\n\t\t\t\t\"The sphere extends from a point in space I touch, but doesn't extend through total cover\",\r\n\t\t\t\t\"Within this area, my allies and I gain +5 on Wis (Perception) and Dex (Stealth) checks\",\r\n\t\t\t\t\"Also, any light from open flames that are in the sphere is invisible from outside the area\",\r\n\t\t\t\t\"This effect lasts until the end of the rest or when I leave the sphere\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hidden Paths\",\r\n\t\t\tsource : [[\"X\", 22]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can teleport myself up to 60 ft to a spot I can see\",\r\n\t\t\t\t\"As an action, I can teleport a willing ally I touch up to 30 ft to a spot I can see\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"], ['action', ' (on ally)']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Walker in Dreams\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can cast either Dream, Scrying, or Teleportation Circle\",\r\n\t\t\t\t\"This doesn't require a spell slot or material components; Dream uses me as the messenger\",\r\n\t\t\t\t\"Teleportation Circle connects to the last place I finished a long rest, if on the same plane\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"dream\"],\r\n\t\t\t\tselection : [\"dream\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"scrying\"],\r\n\t\t\t\tselection : [\"scrying\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Walker in Dreams\",\r\n\t\t\t\tspells : [\"teleportation circle\"],\r\n\t\t\t\tselection : [\"teleportation circle\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"dream\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"scrying\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"1 crea save or sensor follows it around; or create sensor in familiar location; see book\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"teleportation circle\" : {\r\n\t\t\t\t\tcomponents : \"V\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Create a circle to teleport to the place where I finished my last long rest, if on the same plane; see book\",\r\n\t\t\t\t\tchanges : \"Using Walker in Dreams, I can cast either Dream, Scrying, or Teleportation Circle once per long rest without requiring material components.\\n \\u2022 The teleportation circle brings me back to the place where I finished my last long rest.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the shepherd\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"X\", 23]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Speech of the Woods\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts; Additionally, I learn Sylvan\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Sylvan\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Totem\",\r\n\t\t\tsource : [[\"X\", 23]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon, or move, a spirit to a point I can see within 60 ft\",\r\n\t\t\t\t\"It is a spectral form of a Bear, Hawk, or Unicorn (my choice), with a 30-ft radius aura\",\r\n\t\t\t\t\"It is incorporeal, immobile, doesn't counts as a creature or object, and persists for 1 min\",\r\n\t\t\t\t\"The spirit persists for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"\\u2022 Bear: my allies and I, if in the aura, immediately gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"  While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: As a reaction, I can grant advantage on an attack vs. a target in the aura\",\r\n\t\t\t\t\"  While in the aura, my allies and I gain advantage on Wisdom (Perception) checks\",\r\n\t\t\t\t\"\\u2022 Unicorn: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"  When I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"Beasts or Fey I summon with spells get +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that summons beast or fey creatures, those summons have +2 HP per HD and their attacks count as magical.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"When a Beast or Fey that I summoned ends its turn in my Spirit Totem aura, it heals\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 10 ? \"\" : \"heals \" + Math.floor(n / 2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"X\", 24]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can cast Conjure Animals\",\r\n\t\t\t\t\"This is done as if using a 9th-level spell slot to summon 4 beast of my choice up to CR 2\",\r\n\t\t\t\t\"They appear within 20 ft of me, last 1 hour, and protect me from harm and attack foes\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Faithful Summons\",\r\n\t\t\t\tspells : [\"conjure animals\"],\r\n\t\t\t\tselection : [\"conjure animals\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"conjure animals\" : {\r\n\t\t\t\t\tnameShort : \"Conjure Animals (level 9)\",\r\n\t\t\t\t\trange : \"20 ft\",\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"Summon 4 CR 2 beasts; protect me from harm and attack foes\",\r\n\t\t\t\t\tchanges : \"Using my Faithful Summons class feature when I'm reduced to 0 HP, I can cast Conjure Animals as if using a 9th-level spell slot. This then summons 4 beast of my choice up to CR 2 within 20 ft of me without needing concentration.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Fighter\r\nAddSubClass(\"fighter\", \"arcane archer\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"X\", 28]],\r\n\tfullname : \"Arcane Archer\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with either the Arcana or Nature skill\",\r\n\t\t\t\t\"I also learn either the Prestidigitation or the Druidcraft cantrip\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Arcana or Nature\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\t\tspells : [\"druidcraft\", \"prestidigitation\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can unleash magical effects when I fire an arrow from a short- or longbow\",\r\n\t\t\t\t\"I can use this once per turn as part of the Attack action, after an attack hits\",\r\n\t\t\t\t\"I know a number of Arcane Shot Options and learn additional at certain levels\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Arcane Shots Options to the third page'\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" options known\"; }),\r\n\t\t\textraname : \"Arcane Shot Option\",\r\n\t\t\textrachoices : [\"Banishing Arrow [Abjuration]\", \"Beguiling Arrow [Enchantment]\", \"Bursting Arrow [Evocation]\", \"Enfeebling Arrow [Necromancy]\", \"Grasping Arrow [Conjuration]\", \"Piercing Arrow [Transmutation]\", \"Seeking Arrow [Divination]\", \"Shadow Arrow [Illusion]\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"banishing arrow [abjuration]\" : {\r\n\t\t\t\tname : \"Banishing Arrow [Abjuration]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target makes a Cha save or is banished to the Feywild until the end of its next turn\",\r\n\t\t\t\t\t\"While banished, its speed is 0 and is incapacitated; It re-appearing in the same spot\",\r\n\t\t\t\t\t\"When I reach 18th level, this Arcane Shot Option also does an extra 2d6 force damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 18 ? \"\" : \"+2d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"beguiling arrow [enchantment]\" : {\r\n\t\t\t\tname : \"Beguiling Arrow [Enchantment]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, it is charmed by one of my allies within 30 ft of it that I choose\",\r\n\t\t\t\t\t\"This lasts until my next turn starts or until the chosen ally attacks the target in any way\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 damage\"; })\r\n\t\t\t},\r\n\t\t\t\"bursting arrow [evocation]\" : {\r\n\t\t\t\tname : \"Bursting Arrow [Evocation]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc(\"The target, in addition to the shot, and all creatures within 10 ft of it take damage\"),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"enfeebling arrow [necromancy]\" : {\r\n\t\t\t\tname : \"Enfeebling Arrow [Necromancy]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra necrotic damage and must make a Constitution save\",\r\n\t\t\t\t\t\"If failed, the damage of the target's attacks are halved until the start of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"grasping arrow [conjuration]\" : {\r\n\t\t\t\tname : \"Grasping Arrow [Conjuration]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra poison damage as brambles wrap around it for 1 minute\",\r\n\t\t\t\t\t\"The brambles give it -10 ft speed and do it slashing damage every round it moves\",\r\n\t\t\t\t\t\"These can be removed by it or another as an action with Strength (Athletics) vs. my DC\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 18 ? 2 : 4) + \"d6 poison/slash. damage\"; })\r\n\t\t\t},\r\n\t\t\t\"piercing arrow [transmutation]\" : {\r\n\t\t\t\tname : \"Piercing Arrow [Transmutation]\",\r\n\t\t\t\tsource : [[\"X\", 29]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but shoot the arrow in a 30-ft long, 1-ft wide line\",\r\n\t\t\t\t\t\"It passes through objects, ignoring cover, but all creatures in the area take damage\",\r\n\t\t\t\t\t\"The damage is the same as a normal hit from my attack, plus extra piercing damage\",\r\n\t\t\t\t\t\"A creature can make a Dexterity save to reduce the damage by half\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 piercing damage\"; })\r\n\t\t\t},\r\n\t\t\t\"seeking arrow [divination]\" : {\r\n\t\t\t\tname : \"Seeking Arrow [Divination]\",\r\n\t\t\t\tsource : [[\"X\", 30]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but I choose a target I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners, obstacles, and ignores cover to hit the target\",\r\n\t\t\t\t\t\"It is hit if it is within the weapon's range and there is a path for the arrow to get to it\",\r\n\t\t\t\t\t\"The target takes the full damage of the attack plus extra force damage\",\r\n\t\t\t\t\t\"It can make a Dexterity save to reduce the damage by half; If failed, I know its location\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"shadow arrow [illusion]\" : {\r\n\t\t\t\tname : \"Shadow Arrow [Illusion]\",\r\n\t\t\t\tsource : [[\"X\", 30]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, the target can't see anything beyond 5 ft until the end of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 psychic damage\"; })\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Magic Arrow\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"Whenever I fire a nonmagical arrow from a short- or longbow, I can make it magical\")\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Curving Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn when I miss with a magic arrow, I can use a bonus action to redirect it\",\r\n\t\t\t\t\"I reroll the attack against a different target within 60 ft of the original target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Shot\",\r\n\t\t\tsource : [[\"X\", 28]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"I regain one use of Arcane Shot if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"X\", 30]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t'Alternatively, I learn one language; Use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: Animal Handling, History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: animal handling, history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Unwavering Mark\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I hit a creature with a melee weapon attack, I mark it until the end of my next turn\",\r\n\t\t\t\t\"While it is within 5 ft of me, a marked target has disadv. on attacks not directed at me\",\r\n\t\t\t\t\"If it damages anybody but me, I can make a special melee attack vs. it in my next turn\",\r\n\t\t\t\t\"This takes a bonus action, but has adv. and adds half my fighter level to the damage\",\r\n\t\t\t\t\"A mark ends early if I'm incapacitated, die, or somebody else marks the target\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Strength modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Str Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + Math.floor(n/2) + \" damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/\\b(unwavering.?mark|marked)\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.floor(classes.known.fighter.level / 2);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Unwavering Mark' or 'Marked' in the name of a melee weapon, it gets half my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Warding Maneuver\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature within 5 ft is hit, I can try to fend off the strike\",\r\n\t\t\t\t\"I add 1d8 to the target's AC; If the attack still hits, the target has resistance against it\",\r\n\t\t\t\t\"I can only do this while wielding a melee weapon or a shield\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hold the Line\",\r\n\t\t\tsource : [[\"X\", 30]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Creatures provoke opportunity attacks when moving 5 ft or more while within my reach\",\r\n\t\t\t\t\"If I hit an opportunity attack, the target's speed is reduced to 0 until the end of the turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I hit a creature after moving 10 ft in a straight line, it must make a Strength save\",\r\n\t\t\t\t\"If failed, the target is knocked prone; I can do this only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Vigilant Defender\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can make opportunity attacks without using my reaction\",\r\n\t\t\t\t\"I can do this only once on every creature's turn, except on my own turn\",\r\n\t\t\t\t\"I can't do this on the same turn that I use my normal reaction\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"samurai\", {\r\n\tregExpSearch : /samurai/i,\r\n\tsubname : \"Samurai\",\r\n\tsource : [[\"X\", 31]],\r\n\tfullname : \"Samurai\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t'Alternatively, I learn one language; Use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Spirit\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can give myself advantage on weapon attacks and temporary HP\",\r\n\t\t\t\t\"This advantage on weapon attack rolls lasts until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : (n < 10 ? 5 : n < 15 ? 10 : 15) + \" temporary HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Elegant Courtier\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to any Charisma (Persuasion) checks I make\",\r\n\t\t\t\t\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"\r\n\t\t\t]),\r\n\t\t\tsaves : [\"Wis\"],\r\n\t\t\taddMod : { type : \"skill\", field : \"Pers\", mod : \"max(Wis|0)\", text : \"I can add my Wisdom modifier to any Charisma (Persuasion) checks I make.\" }\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Tireless Spirit\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"I regain one use of Fighting Spirit if I have no more remaining when I roll initiative\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can forgo advantage on one attack to make one extra attack\",\r\n\t\t\t\t\"This extra attack is part of the same action; I can do this only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Strength Before Death\",\r\n\t\t\tsource : [[\"X\", 31]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I'm reduced to 0 HP but not killed outright, I can delay falling unconscious\",\r\n\t\t\t\t\"I then immediately take a bonus turn, interrupting the current turn\",\r\n\t\t\t\t\"While I'm at 0 HP, I suffer damage normally and die if I have 3 failed death saves\",\r\n\t\t\t\t\"If I'm still at 0 HP at the end of this bonus turn, I fall unconscious\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Monk\r\nAddSubClass(\"monk\", \"way of the drunken master\", {\r\n\tregExpSearch : /^((?=.*drunken)(?=.*master))|((?=.*drunk)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Drunken Master\",\r\n\tsubnameShort: \"Drunken Master\",\r\n\tfullname : \"Drunken Master\",\r\n\tsource : [[\"X\", 33]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I gain proficiency with the Performance skill and brewer's supplies\"),\r\n\t\t\tskills : [\"Performance\"],\r\n\t\t\ttoolProfs : [\"Brewer's supplies\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drunken Technique\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When using Flurry of Blows, I gain the benefits of a Disengage and +10 ft speed this turn\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Tipsy Sway\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"1 ki point: as a reaction if missed in melee, attacker instead hits other I see within 5 ft\"),\r\n\t\t\tadditional : \"Standing up from prone costs only 5 ft\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drunkard's Luck\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc(\"By spending 2 ki points, I can remove disadv. from an ability check, attack roll, or save\"),\r\n\t\t\tadditional : \"2 ki points\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Intoxicated Frenzy\",\r\n\t\t\tsource : [[\"X\", 34]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"I can make 3 extra attacks with Flurry of Blows if each is used on a different target\")\r\n\t\t}\r\n\t}\r\n});\r\n// Create the Kensei and its weapon options last, so we benefit of all possible weapons that were added\r\nRunFunctionAtEnd(function () {\r\n\tvar theKenseiSubclassName = AddSubClass(\"monk\", \"way of the kensei\", {\r\n\t\tregExpSearch : /kensei/i,\r\n\t\tsubname : \"Way of the Kensei\",\r\n\t\tsubnameShort: \"Kensei\",\r\n\t\tfullname : \"Kensei\",\r\n\t\tsource : [[\"X\", 34]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Path of the Kensei\",\r\n\t\t\t\tsource : [[\"X\", 34]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with either calligrapher's supplies or painter's supplies\",\r\n\t\t\t\t\t\"Some weapons, that don't have the heavy or special property, are kensei weapons for me\",\r\n\t\t\t\t\t\"At least one ranged and one melee weapon, more at higher levels (longbow does qualify)\",\r\n\t\t\t\t\t\"With these: proficient, count as a monk weapons, special bonuses depending on type held:\",\r\n\t\t\t\t\t\"\\u2022 Melee: if I do unarmed strike during an Attack action, +2 AC until my next turn starts\",\r\n\t\t\t\t\t\"\\u2022 Ranged: as a bonus action, ranged weapon attacks deal +1d4 damage in current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with ranged)\"]],\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" kensei weapons\"; }),\r\n\t\t\t\ttoolProfs : [\"calligrapher's or painter's supplies\"],\r\n\t\t\t\textraname : \"Kensei Weapon\",\r\n\t\t\t\textrachoices : [], // add these dynamically, see below\r\n\t\t\t\textraTimes : levels.map( function(n) { return n < 3 ? 0 : n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5; }),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tvar theKenseiWeapons = GetFeatureChoice(\"class\", \"monk\", \"subclassfeature3\", true);\r\n\t\t\t\t\t\t\tif (theKenseiWeapons.indexOf(v.baseWeaponName) != -1 || ((/kensei/i).test(v.WeaponTextName) && !v.theWea.special && (!(/heavy|special/i).test(fields.Description) || v.baseWeaponName === 'longbow'))) {\r\n\t\t\t\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t\t\t\t\tv.theWea.kenseiweapon = true;\r\n\t\t\t\t\t\t\t\tif (v.isRangedWeapon) {\r\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 damage';\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"For the weapons that I select using the \\\"Choose Feature\\\" button on the second page or when I include the word 'Kensei' in the name of a weapon that doesn't have the Heavy or Special attribute, or that is a longbow, that weapon gains the same benefits as any other 'Monk Weapon'.\\nIn addition, with ranged 'Kensei Weapons', I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 damage.\",\r\n\t\t\t\t\t\t1\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"ki-empowered strikes\" : {\r\n\t\t\t\tname : \"One with the Blade\",\r\n\t\t\t\tsource : [[\"X\", 34]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description) && (v.baseWeaponName === \"unarmed strike\" || v.theWea.kenseiweapon)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My unarmed strikes and any Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t},\r\n\t\t\t\t\"deft strike\" : {\r\n\t\t\t\t\tname : \"Deft Strike\",\r\n\t\t\t\t\textraname : \"Way of the Kensei 6\",\r\n\t\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\t\tdescription : desc(\"Once per turn when I hit with a kensei weapon, I can do a martial arts die extra damage\"),\r\n\t\t\t\t\tadditional : \"1 ki point\"\r\n\t\t\t\t},\r\n\t\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a bonus action, I can grant my kensei weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\t\"This bonus is equal to the number of ki points I spend and doesn't stack with magic\",\r\n\t\t\t\t\t\t\"This lasts for 1 minute or until I use this feature again\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"1 to 3 ki points\",\r\n\t\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t\t},\r\n\t\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\t\textrachoice : \"deft strike\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\t\tminlevel : 11\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature17\" : {\r\n\t\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\t\tsource : [[\"X\", 35]],\r\n\t\t\t\tminlevel : 17,\r\n\t\t\t\tdescription : desc(\"Once per turn, if I miss a monk weapon attack on my turn, I can reroll the attack roll\")\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tvar itsFea = ClassSubList[theKenseiSubclassName].features.subclassfeature3;\r\n\tfor (var weapon in WeaponsList) {\r\n\t\tvar aWea = WeaponsList[weapon];\r\n\t\t// skip attacks that are not simple or martial weapons, that have the heavy or special property, are magic weapons, or those that are spells or cantrips\r\n\t\tif (weapon !== \"longbow\" && (aWea.isMagicWeapon || !(/simple|martial/i).test(aWea.type) || (/heavy|special/i).test(aWea.description) || aWea.special || (/improvised|gear|spell|cantrip/i).test(aWea.list))) continue;\r\n\t\titsFea.extrachoices.push(aWea.name);\r\n\t\titsFea[aWea.name.toLowerCase()] = {\r\n\t\t\tname : aWea.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : aWea.source,\r\n\t\t\tweaponProfs : [false, false, [weapon]],\r\n\t\t\tweaponsAdd : { select : [aWea.name] },\r\n\t\t\tsubmenu : ((/simple/i).test(aWea.type) ? \"\\x1BSimple weapon, \" : \"Martial weapon, \") + ((/^(?!.*melee).*\\d+.*$/i).test(aWea.range) ? \"ranged\" : \"melee\"),\r\n\t\t\tprereqeval : 'testSource(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"], \"weapExcl\") ? \"skip\" : true;'\r\n\t\t}\r\n\t}\r\n});\r\n// dupl_start\r\nif (!ClassSubList[\"monk-way of the sun soul\"] && (!SourceList.S || SourceList.S.abbreviation.toLowerCase() !== \"scag\")) {\r\n\t// the Way of the Sun Soul subclass is identical to the one in SCAG, so only add if it that one doesn't exist yet\r\n\tAddSubClass(\"monk\", \"way of the sun soul\", {\r\n\t\tregExpSearch : /^(?=.*\\bsun)(?=.*\\b(soul|spirit))((?=.*(warrior|monk|monastic))|(((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\t\tsubname : \"Way of the Sun Soul\",\r\n\t\tsubnameShort: \"Sun Soul\",\r\n\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tadditional : \"1 ki point for 2 extra attacks\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain a ranged spell attack that I can use as an attack in the Attack action\",\r\n\t\t\t\t\t\"If I do this and spend 1 ki point, I can make 2 of these attacks as a bonus action\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (2\\xD7 with Attack action)\"]],\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*radiant)(?=.*(sun|light))(?=.*bolt).*$/i,\r\n\t\t\t\t\tname : \"Radiant Sun Bolt\",\r\n\t\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\ttype : \"Spell\",\r\n\t\t\t\t\tdamage : [1, 4, \"radiant\"],\r\n\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\tdescription : \"If used in an Attack action, spend 1 ki point to use it twice as a bonus action\",\r\n\t\t\t\t\tmonkweapon : true,\r\n\t\t\t\t\tabilitytodamage : true,\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}],\r\n\t\t\t\t\"searing arc strike\" : {\r\n\t\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\t\textraname : \"Way of the Sun Soul 6\",\r\n\t\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"After taking the Attack action, I can cast Burning Hands as a bonus action [PHB 220]\",\r\n\t\t\t\t\t\t\"For every additional ki point I spend, Burning hands is cast at 1 higher spell level\",\r\n\t\t\t\t\t\t\"The maximum total ki points I can spend for this (including the 2) is half my Monk level\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\t\t\tvar xtrKi = Math.max(0,Math.floor(n/2) - 2);\r\n\t\t\t\t\t\treturn \"2 ki points + max \" + xtrKi + \" ki point\" + (xtrKi == 1 ? \"\" : \"s\");\r\n\t\t\t\t\t}),\r\n\t\t\t\t\taction : [[\"bonus action\", \" (after Attack action)\"]],\r\n\t\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\t\tname : \"Searing Arc Strike\",\r\n\t\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\t\tfirstCol : 2\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tspellFirstColTitle : \"Ki\",\r\n\t\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\t\"burning hands\" : {\r\n\t\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\t\tdescription : \"3d6+1d6/extra Ki Fire dmg; save halves; unattended flammable objects ignite (ki max 1/2 monk lvl)\",\r\n\t\t\t\t\t\t\tchanges : \"After I use the Attack action, I can cast Burning Hands as a bonus action by spending 2 ki points. I can even spend additional ki points to increase its spell level. The total amount of ki points I can spend on it is half my monk level.\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\t\textrachoice : \"searing arc strike\",\r\n\t\t\t\t\tminlevel : 6\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature11\" : {\r\n\t\t\t\tname : \"Searing Sunburst\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tminlevel : 11,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, anyone in a 20-ft radius light on a point within 150 ft makes a Con save\",\r\n\t\t\t\t\t\"If failed and not behind opaque total cover, take 2d6 (+ 2d6/ki point) radiant damage\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : \"0 ki points + max 3 ki points\",\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*searing)(?=.*sunburst).*$/i,\r\n\t\t\t\t\tname : \"Searing Sunburst\",\r\n\t\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\ttype : \"Spell\",\r\n\t\t\t\t\tdamage : [2, 6, \"radiant\"],\r\n\t\t\t\t\trange : \"150 ft\",\r\n\t\t\t\t\tdescription : \"All in 20-ft radius; Con save - success no damage; +2d6 damage per ki point (max +6d6)\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tuseSpellMod : \"monk\",\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature17\" : {\r\n\t\t\t\tname : \"Sun Shield\",\r\n\t\t\t\tsource : [[\"S\", 131], [\"X\", 35]],\r\n\t\t\t\tminlevel : 17,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction, when I'm hit by a melee attack, I can deal 5 + Wis mod radiant damage\",\r\n\t\t\t\t\t\"I can only do this while my light aura is on; I can turn it on/off as a bonus action\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/stop)\"], [\"reaction\", \" (hit in melee)\"]],\r\n\t\t\t\tadditional : \"30-ft rad bright + 30-ft dim light\"\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}; // dupl_end\r\n\r\n// Add 2 subclasses for the Paladin\r\nAddSubClass(\"paladin\", \"oath of conquest\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"X\", 37]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Presence\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures of my choice within a 30-ft radius must make a Wisdom save\",\r\n\t\t\t\t\"If failed, a target is frightened for 1 minute; It can save again at the end of each turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"dominate beast\", \"stoneskin\", \"cloudkill\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Creatures that are frightened of me have their speed reduced to 0 while in my aura\",\r\n\t\t\t\t\"They also take psychic damage whenever they start theirs turn within my aura\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 7) return \"\";\r\n\t\t\t\treturn (n < 18 ? 10 : 30) + \"-foot aura; \" + Math.floor(n / 2) + \" psychic damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Scornful Rebuke\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I'm hit with an attack while I'm not incapacitated, the attacker takes damage\",\r\n\t\t\t\t\"This is psychic damage equal to my Charisma modifier (minimum of 1)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"X\", 38]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" - I have resistance to all damage\",\r\n\t\t\t\t\" - I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\" - My melee weapons score critical hits on a roll of 19 or 20\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of redemption\", {\r\n\tregExpSearch : /^((?=.*redeemer)|((?=.*redemption)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Redemption\",\r\n\tsubnameShort: \"Redemption\",\r\n\tsource : [[\"X\", 38]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Emissary of Peace\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"As a bonus action, I grant myself +5 on Charisma (Persuasion) checks for 10 minutes\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"sanctuary\", \"sleep\", \"calm emotions\", \"hold person\", \"counterspell\", \"hypnotic pattern\", \"otiluke's resilient sphere\", \"stoneskin\", \"hold monster\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Rebuke the Violent\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after a creature within 30 ft attacks and damages another, I can rebuke it\",\r\n\t\t\t\t\"It takes the same damage as it dealt but as radiant damage, with a Wis save to halve it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Guardian\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when an ally within my aura takes damage, I instead take the damage\",\r\n\t\t\t\t\"This damage can't be reduced in any way; Other effects might still apply to my ally\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Protective Spirit\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"At the end of my turn when I'm below half HP and not incapacitated, I regain HP\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"1d6+\" + Math.floor(n/2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Emissary of Redemption\",\r\n\t\t\tsource : [[\"X\", 39]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When taking damage from a creature, I take only half and it takes the other half\",\r\n\t\t\t\t\"This stops working on any that I attack or force to make a save, until I have a long rest\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"All from creatures\"]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 3 subclasses for the Ranger\r\nvar XGtE_Ranger_Subclass_Gloom_Stalker = AddSubClass(\"ranger\", \"gloom stalker\", {\r\n\tregExpSearch : /^(?=.*gloom)(?=.*stalker).*$/i,\r\n\tsubname : \"Gloom Stalker\",\r\n\tsource : [[\"X\", 41]],\r\n\tfullname : \"Gloom Stalker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dread Ambusher\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to my initiative rolls\",\r\n\t\t\t\t\"In the first turn of combat I get +10 ft speed and an extra attack with the Attack action\",\r\n\t\t\t\t\"If I take the Attack action and that extra attack hits, it does +1d8 damage\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Wis|0)\", text : \"I can add my Wisdom modifier to my initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Gloom Stalker Magic\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"fear\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Umbral Sight\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain 60 ft darkvision, or add 30 ft to darkvision if I already had it because of my race\",\r\n\t\t\t\t\"When I'm in darkness, others gain no benefit from darkvision to detect me\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc(\"Once on each of my turns when I miss a weapon attack, I can make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Shadowy Dodge\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nvar XGtE_Ranger_Subclass_Horizon_Walker = AddSubClass(\"ranger\", \"horizon walker\", {\r\n\tregExpSearch : /^(?=.*horizon)(?=.*walker).*$/i,\r\n\tsubname : \"Horizon Walker\",\r\n\tsource : [[\"X\", 42]],\r\n\tfullname : \"Horizon Walker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Detect Portal\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"As an action, I sense the distance and direction to the closest planar portal within 1 mile\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Horizon Walker Magic\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"misty step\", \"haste\", \"banishment\", \"teleportation circle\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Planar Warrior\",\r\n\t\t\tsource : [[\"X\", 42]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose one creature that I can see within 30 ft of me\",\r\n\t\t\t\t\"All damage from my first weapon attack that hits it on this turn becomes force damage\",\r\n\t\t\t\t\"In addition, that first hit does extra damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + (n < 11 ? 1 : 2) + \"d8 force damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ethereal Step\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"As a bonus action, I can cast the Etherealness spell, which lasts until the end of my turn\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Ethereal Step\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tduration : \"1 rnd\",\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Ethereal Step class feature I can cast Etherealness as a bonus action once per short rest, but it only affects myself and lasts until the end of my turn.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Distant Strike\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can teleport 10 ft before each attack, to a place I can see\",\r\n\t\t\t\t\"If I attack two different creatures with this action, I get an extra attack against a third\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Spectral Defense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc(\"As a reaction when an attack damages me, I can give myself resistance vs. that attack\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nvar XGtE_Ranger_Subclass_Monster_Slayer = AddSubClass(\"ranger\", \"monster slayer\", {\r\n\tregExpSearch : /^(?=.*monster)(?=.*slayer).*$/i,\r\n\tsubname : \"Monster Slayer\",\r\n\tsource : [[\"X\", 43]],\r\n\tfullname : \"Monster Slayer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hunter's Sense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I learn vulnerabilities/immunities/resistances of a target I see within 60 ft\",\r\n\t\t\t\t\"If it is protected from divination magic, I sense it has none of these\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Monster Slayer Magic\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"zone of truth\", \"magic circle\", \"banishment\", \"hold monster\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Slayer's Prey\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I designate a creature I see within 60 ft; This lasts until I do this again\",\r\n\t\t\t\t\"My first hit to the target with a weapon attack on each of my turns does +1d6 damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Supernatural Defense\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add 1d6 to saving throws the current target of my Slayer's Prey forces me to make\",\r\n\t\t\t\t\"In addition, I also add 1d6 to checks to escape that target's grapple\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Magic-User's Nemesis\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see someone within 60 ft casting a spell or teleporting, I can foil it\",\r\n\t\t\t\t\"The target must make a Wisdom save or have its spell or teleport fail and be wasted\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Slayer's Counter\",\r\n\t\t\tsource : [[\"X\", 43]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when the target of my Slayer's Prey has me make a save, I can attack it\",\r\n\t\t\t\t\"I can make one weapon attack; If this hits, I automatically succeed on the saving throw\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Add all three subclasses to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(XGtE_Ranger_Subclass_Gloom_Stalker, XGtE_Ranger_Subclass_Horizon_Walker, XGtE_Ranger_Subclass_Monster_Slayer);\r\n};\r\n\r\n// Add 4 subclasses for the Rogue\r\nAddSubClass(\"rogue\", \"inquisitive\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*inquisitive).*$/i,\r\n\tsubname : \"Inquisitive\",\r\n\tsource : [[\"X\", 45]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ear for Deceit\",\r\n\t\t\tsource : [[\"X\", 45]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"For Wis (Insight) to sense if another is lying, I can treat a die roll of 7 or lower as an 8\")\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eye for Detail\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can do either of the following:\",\r\n\t\t\t\t\"\\u2022 Make a Wisdom (Perception) check to spot a hidden creature or object\",\r\n\t\t\t\t\"\\u2022 Make an Intelligence (Investigation) check to uncover or decipher clues\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Insightful Fighting\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can decipher the tactics of another I can see that's not incapacitated\",\r\n\t\t\t\t\"I have to make a Wisdom (Insight) check vs. the target's Charisma (Deception) check\",\r\n\t\t\t\t\"If I succeed, I can use my sneak attack on it even if I don't have adv. (but not if disadv.)\",\r\n\t\t\t\t\"This benefit lasts for 1 minute or until I successfully use Insightful Fighting again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Steady Eye\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I'm more perceptive when I don't move more than half my speed in the same turn\",\r\n\t\t\t\t\"If so, I gain adv. on Wis (Perception) and Int (Investigation) checks during that turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Unerring Eye\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can sense magical deceptions within 30 feet of me, but not what it does\",\r\n\t\t\t\t\"I learn the presence of illusions, shapechanged creatures, or magic designed to deceive\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Eye for Weakness\",\r\n\t\t\tsource : [[\"X\", 46]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc(\"While my Insightful Fighting is active, I add 3d6 to sneak attacks against that target\")\r\n\t\t}\r\n\t}\r\n});\r\n// dupl_start\r\nif (!ClassSubList[\"rogue-mastermind\"] && (!SourceList.S || SourceList.S.abbreviation.toLowerCase() !== \"scag\")) {\r\n\t// the Mastermind subclass is identical to the one in SCAG, so only add if it that one doesn't exist yet\r\n\tAddSubClass(\"rogue\", \"mastermind\", {\r\n\t\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*(mastermind|strategist)).*$/i,\r\n\t\tsubname : \"Mastermind\",\r\n\t\tfullname : \"Mastermind\",\r\n\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Master of Intrigue\",\r\n\t\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with disguise kits, forgery kits, one gaming set, and two languages\",\r\n\t\t\t\t\t\"I can mimic speech patterns and accents if I've heard them for at least 1 minute\"\r\n\t\t\t\t]),\r\n\t\t\t\tlanguageProfs : [2],\r\n\t\t\t\ttoolProfs : [\"Disguise kit\", \"Forgery kit\", [\"Gaming set\", 1]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Master of Tactics\",\r\n\t\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can use the Help action as a bonus action\",\r\n\t\t\t\t\t\"This even works if the ally attacks a target within 30 ft of me that can see or hear me\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Insightful Manipulator\",\r\n\t\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"By spending 1 minute observing/interacting outside of combat I can learn capabilities\",\r\n\t\t\t\t\t\"The DM tells me if the target is my equal, superior, or inferior in regard to two things:\",\r\n\t\t\t\t\t\" - Intelligence score    - Wisdom score    - Charisma score    - Class levels (if any)\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"subclassfeature13\" : {\r\n\t\t\t\tname : \"Misdirection\",\r\n\t\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\t\tminlevel : 13,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction, I can redirect an attack meant for me to a creature within 5 ft of me\",\r\n\t\t\t\t\t\"This only works if the creature is providing me with cover against the attack\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature17\" : {\r\n\t\t\t\tname : \"Soul of Deceit\",\r\n\t\t\t\tsource : [[\"S\", 135], [\"X\", 46]],\r\n\t\t\t\tminlevel : 17,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My thoughts can't be read by telepathy or similar means; I can project false thoughts\",\r\n\t\t\t\t\t\"For that, I must pass a Cha (Deception) vs. Wis (Insight) check to fool the mind reader\",\r\n\t\t\t\t\t\"Magic always determines I'm truthful; I can't be magically compelled to tell the truth\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}; // dupl_end\r\nAddSubClass(\"rogue\", \"scout\", {\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"X\", 47]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Skirmisher\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile ends its turn within 5 ft of me, I can move half my speed\",\r\n\t\t\t\t\"This movement does not provoke attacks of opportunity\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Survivalist\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I gain proficiency and expertise with the Nature and Survival skills\"),\r\n\t\t\tskills : [['Nature', 'full'], ['Survival', 'full']]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Superior Mobility\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc(\"I gain +10 ft to my walking speed (and swimming/climbing speed, if applicable)\"),\r\n\t\t\tspeed : {\r\n\t\t\t\tallModes : { bonus : \"+10\", exclude : [\"fly\", \"burrow\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ambush Master\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain advantage on Initiative rolls\",\r\n\t\t\t\t\"The first creature I hit in the first round of combat becomes an easy target\",\r\n\t\t\t\t\"Until the start of my next turn, all attacks against the target have advantage\"\r\n\t\t\t]),\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sudden Strike\",\r\n\t\t\tsource : [[\"X\", 47]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can make one additional attack as a bonus action\",\r\n\t\t\t\t\"This attack can benefit from my Sneak Attack even if I already used it this turn\",\r\n\t\t\t\t\"However, I still can't use Sneak Attack on a single target more than once per turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// dupl_start\r\nif (!ClassSubList[\"rogue-swashbuckler\"] && (!SourceList.S || SourceList.S.abbreviation.toLowerCase() !== \"scag\")) {\r\n\t// the Swashbuckler subclass is identical to the one in SCAG, so only add if it that one doesn't exist yet\r\n\tAddSubClass(\"rogue\", \"swashbuckler\", {\r\n\t\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*swashbuckl).*$/i,\r\n\t\tsubname : \"Swashbuckler\",\r\n\t\tfullname : \"Swashbuckler\",\r\n\t\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Fancy Footwork\",\r\n\t\t\t\tsource : [[\"S\", 135], [\"X\", 47]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Enemies I make a melee attack against in my turn can't use opportunity attacks on me\",\r\n\t\t\t\t\t\"This lasts until the end of my current turn\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Rakish Audacity\",\r\n\t\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I don't need advantage to sneak attack if my target is the only one within 5 ft of me\",\r\n\t\t\t\t\t\"I still can't sneak attack if I have disadv.; I add my Charisma modifier to initiative rolls\"\r\n\t\t\t\t]),\r\n\t\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Cha|0)\", text : \"I can add my Charisma modifier to initiative rolls.\" }\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Panache\",\r\n\t\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can beguile a creature that hears and understands me, for 1 minute\",\r\n\t\t\t\t\t\"It must succeed a Wis (Insight) check opposed by my Cha (Persuasion) or be affected as:\",\r\n\t\t\t\t\t\"\\u2022 A hostile target gains disadv. on attacks and can't do opportunity attacks vs. not-me\",\r\n\t\t\t\t\t\"  This effect ends if an ally attacks or casts a spell vs. it, or if it and I are 60 ft apart\",\r\n\t\t\t\t\t\"\\u2022 Targets that are not hostile are charmed and regard me as a friendly acquaintance\",\r\n\t\t\t\t\t\"  This effect ends if me or an ally do anything harmful to it\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature13\" : {\r\n\t\t\t\tname : \"Elegant Maneuver\",\r\n\t\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\t\tminlevel : 13,\r\n\t\t\t\tdescription : desc(\"As a bonus action, I can gain adv. on my next Dex (Acrobatics) or Str (Athletics) check\"),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature17\" : {\r\n\t\t\t\tname : \"Master Duelist\",\r\n\t\t\t\tsource : [[\"S\", 136], [\"X\", 47]],\r\n\t\t\t\tminlevel : 17,\r\n\t\t\t\tdescription : desc(\"Once per short rest, when I miss with an attack roll, I can roll again with advantage\"),\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tusages : 1\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}; // dupl_end\r\n\r\n// Add 3 subclasses for the Sorcerer\r\nAddSubClass(\"sorcerer\", \"divine soul\", { // this code includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?=.*divine)(?=.*soul).*$/i,\r\n\tsubname : \"Divine Soul\",\r\n\tsource : [[\"X\", 50]],\r\n\tfullname : \"Divine Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t\t'I also learn a spell based on my affinity, use the \"Choose Feature\" button above for this'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Good\", \"Evil\", \"Law\", \"Chaos\", \"Neutrality\"],\r\n\t\t\t\"good\" : {\r\n\t\t\t\tname : \"Divine Magic: Good\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Cure Wounds, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Good)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"cure wounds\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"eagle\"\r\n\t\t\t},\r\n\t\t\t\"evil\" : {\r\n\t\t\t\tname : \"Divine Magic: Evil\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Inflict Wounds, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Evil)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"inflict wounds\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"bat\"\r\n\t\t\t},\r\n\t\t\t\"law\" : {\r\n\t\t\t\tname : \"Divine Magic: Law\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Bless, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Law)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"bless\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"eagle\"\r\n\t\t\t},\r\n\t\t\t\"chaos\" : {\r\n\t\t\t\tname : \"Divine Magic: Chaos\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I also learn Bane, which doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Chaos)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"bane\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"bat\"\r\n\t\t\t},\r\n\t\t\t\"neutrality\" : {\r\n\t\t\t\tname : \"Divine Magic: Neutrality\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I learn spells/cantrips or replace known, I can also pick from the cleric spell list\",\r\n\t\t\t\t\t\"I learn Protection from Evil \\xD7 Good; It doesn't count against my number of spells known\",\r\n\t\t\t\t\t\"These count as sorcerer spells for me; I can only replace the bonus spell with a cleric spell\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Divine Magic (Neutrality)\",\r\n\t\t\t\t\t\"class\" : \"cleric\",\r\n\t\t\t\t\tlevel : [1,9],\r\n\t\t\t\t\tselection : [\"protection from evil and good\"]\r\n\t\t\t\t}],\r\n\t\t\t\tdependentChoices : \"dragonfly\"\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature14\",\r\n\t\t\t\tchoiceAttribute : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Empowered Healing\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn, when I or an ally in 5 ft roll dice to healing with a spell, I can reroll dice\",\r\n\t\t\t\t\"By spending 1 sorcery point; I can reroll any number of those dice for that spell once\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 sorcery point\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"eagle\", \"bat\", \"dragonfly\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"eagle\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I manifest a pair of spectral eagle wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"bat\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I manifest a pair of spectral bat wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"dragonfly\" : {\r\n\t\t\t\tname : \"Otherworldy Wings\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I create a pair of spectral dragonfly wings, giving me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspeed : { fly : { spd : 30, enc : 20 } }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"X\", 50]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP remaining, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my hit point maximum\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"shadow magic\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*shadow).*$/i,\r\n\tsubname : \"Shadow Magic\",\r\n\tsource : [[\"X\", 50]],\r\n\tfullname : \"Shadow Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I gain 120 ft darkvision\"),\r\n\t\t\tvision : [[\"Darkvision\", 120]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Strength of the Grave\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When damage reduces me to 0 HP, that isn't radiant damage or a critical hit,\",\r\n\t\t\t\t\"I can make a Charisma save (DC 5 + damage taken) to drop to 1 HP instead\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Darkness\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Darkness, which doesn't count against my number of spells known\",\r\n\t\t\t\t\"I can also cast it by spending 2 sorcery points and then I can see through it normally\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"2 sorcery points\",\r\n\t\t\taction : [[\"action\", \" (2 sorcery points)\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I summon a hound within 30 ft of a creature I see within 120 ft\",\r\n\t\t\t\t\"The hound has all the stats of a dire wolf with the following exceptions:\",\r\n\t\t\t\t\"\\u2022 It is medium size and counts as a monstrosity not a beast\",\r\n\t\t\t\t\"\\u2022 It starts with a number of temporary hit points equal to half my sorcerer level\",\r\n\t\t\t\t\"\\u2022 At the start of its turn, it automatically knows where the (hidden) target is\",\r\n\t\t\t\t\"\\u2022 It can only move towards and make (opportunity) attack against the target\",\r\n\t\t\t\t\"\\u2022 It can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"\\u2022 It takes 5 force damage if it ends its turn inside an object\",\r\n\t\t\t\t\"The target has disadvantage on saves vs. my spells while the hound is within 5 ft of it\",\r\n\t\t\t\t\"It disappears if reduced to 0 HP, if the target is reduced to 0 HP, or after 5 minutes\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : \"3 sorcery points; \" + Math.floor(n/2) + \" temporary HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]],\r\n\t\t\tcreaturesAdd : [[\"Hound of Ill Omen\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\t\tsource : [[\"X\", 51]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Monstrosity\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : 14,\r\n\t\t\t\thp : 37,\r\n\t\t\t\thd : [5, 10],\r\n\t\t\t\tspeed : \"50 ft\",\r\n\t\t\t\tscores : [17, 15, 15, 3, 12, 7],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"perception\" : 3,\r\n\t\t\t\t\t\"stealth\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell;\\nAt the start of each turn, knows where the target is\",\r\n\t\t\t\tpassivePerception : 13,\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [2, 6, \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"Target must succeed on a DC 13 Strength saving throw or be knocked prone\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\t\tdescription : \"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Pack Tactics\",\r\n\t\t\t\t\tdescription : \"The hound has advantage on an attack roll against a creature if at least one of the hound's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Actions\",\r\n\t\t\t\t\tdescription : \"The hound can only move towards its targets and make attacks or opportunity attacks against its target.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Temporary Hit Points\",\r\n\t\t\t\t\tdescription : \"When the hound is summoned, it gains temporary HP equal to half my sorcerer level.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shadowy Form\",\r\n\t\t\t\t\tdescription : \"The hound can move through other creatures and objects as if they were difficult terrain. It takes 5 force damage if it ends its turn inside an object.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sign of Ill Omen\",\r\n\t\t\t\t\tdescription : \"While the hound is within 5 ft of its target, that target has disadvantage on saving throws versus my spells.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Summoned\",\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"The hound of ill omen gains half my sorcerer level as temporary HP when created.\");\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"\");\r\n\t\t\t\t},\r\n\t\t\t\tchangeeval : function (prefix, lvl) {\r\n\t\t\t\t\tif (!classes.known.sorcerer) return;\r\n\t\t\t\t\tValue(prefix + 'Comp.Use.HP.Temp', Math.floor(classes.known.sorcerer.level / 2));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Walk\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can teleport up to 120 ft\",\r\n\t\t\t\t\"The destination has to be unoccupied, within line of sight, and in dim light or darkness\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Umbral Form\",\r\n\t\t\tsource : [[\"X\", 51]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional : \"6 sorcery points\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I transform into a shadow form for 1 minute\",\r\n\t\t\t\t\"While transformed, I have resistance to all damage except force and radiant damage\",\r\n\t\t\t\t\"Also, I can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 5 force damage if I end my turn inside an object\",\r\n\t\t\t\t\"This ends early if I end it as a bonus action, I die, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (6 sorcery points)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// dupl_start\r\nif (!ClassSubList[\"sorcerer-storm sorcery\"] && (!SourceList.S || SourceList.S.abbreviation.toLowerCase() !== \"scag\")) {\r\n\t// the Storm Sorcery subclass is identical to the one in SCAG, so only add if it that one doesn't exist yet\r\n\tAddSubClass(\"sorcerer\", \"storm sorcery\", {\r\n\t\tregExpSearch : /^(?=.*(sorcerer|witch))((?=.*(storm|tempest|hurricane))|((?=.*air)(?=.*element))).*$/i,\r\n\t\tsubname : \"Storm Sorcery\",\r\n\t\tfullname : \"Storm Sorcerer\",\r\n\t\tsource : [[\"S\", 137], [\"X\", 51]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature1\" : {\r\n\t\t\t\tname : \"Wind Speaker\",\r\n\t\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription : desc(\"I can speak, read, and write Primordial (and its dialects Aquan, Auran, Ignan, Terran)\"),\r\n\t\t\t\tlanguageProfs : [\"Primordial\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature1.1\" : {\r\n\t\t\t\tname : \"Tempestuous Magic\",\r\n\t\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, before or after casting a 1st-level or higher spell, I can fly 10 ft\",\r\n\t\t\t\t\t\"This movement doesn't provoke opportunity attacks as whirling gust of air surround me\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with casting)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature6\" : {\r\n\t\t\t\tname : \"Heart of the Storm\",\r\n\t\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to lightning and thunder damage\",\r\n\t\t\t\t\t\"When I start casting a 1st-level or higher spell that deals lightning or thunder damage,\",\r\n\t\t\t\t\t\"I deal lightning or thunder damage to creatures of my choice that I can see within 10 ft\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : Math.floor(n/2) + \" damage\"; }),\r\n\t\t\t\tdmgres : [\"Lightning\", \"Thunder\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature6.1\" : {\r\n\t\t\t\tname : \"Storm Guide\",\r\n\t\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can stop rain around me in 20-ft radius; bonus action for it to resume\",\r\n\t\t\t\t\t\"As a bonus action, I can choose the direction of wind around me in a 100-ft radius\",\r\n\t\t\t\t\t\"This lasts until the end of my next turn and doesn't alter the wind's speed\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature14\" : {\r\n\t\t\t\tname : \"Storm's Fury\",\r\n\t\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when hit by a melee attack, I can deal lightning damage to the attacker\",\r\n\t\t\t\t\t\"The attacker must also make a Strength save or be pushed up to 20 ft away from me\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 14 ? \"\" : n + \" lightning damage\"; })\r\n\t\t\t},\r\n\t\t\t\"subclassfeature18\" : {\r\n\t\t\t\tname : \"Wind Soul\",\r\n\t\t\t\tsource : [[\"S\", 137], [\"X\", 52]],\r\n\t\t\t\tminlevel : 18,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have immunity to lightning and thunder damage and gain magical 60 ft fly speed\",\r\n\t\t\t\t\t\"As an action, I reduce my fly speed to 30 ft and give allies 30 ft fly speed for 1 hour\",\r\n\t\t\t\t\t\"I can do this once per short rest for up to 3 + my Charisma modifier allies within 30 ft\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tsavetxt : { immune : [\"lightning\", \"thunder\"] },\r\n\t\t\t\tspeed : { fly : { spd : \"fixed 60\", enc : \"fixed 60\" } },\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}; // dupl_end\r\n\r\n// Add 2 subclasses for the Warlock\r\nAddSubClass(\"warlock\", \"the celestial\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*celestial).*$/i,\r\n\tsubname : \"the Celestial\",\r\n\tsource : [[\"X\", 54]],\r\n\tspellcastingExtra : [\"cure wounds\", \"guiding bolt\", \"flaming sphere\", \"lesser restoration\", \"daylight\", \"revivify\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"greater restoration\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\tsource : [[\"X\", 54]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I learn the Light and Sacred Flame cantrips, not counting for the number I can know\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"X\", 54]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can heal a creature I can see within 60 ft by expending dice\",\r\n\t\t\t\t\"I can expend up to my Charisma modifier (min 1) of dice from my pool at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain all expended dice on a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return (n + 1) + \"d6 per \"; }),\r\n\t\t\tusagescalc : \"event.value = !classes.known.warlock ? '' : (1 + classes.known.warlock.level) + 'd6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add my Cha modifier once to the fire or radiant damage of cantrips and spells I cast\",\r\n\t\t\t\t\"This bonus only applies to one target; Also, I have resistance to radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage to one target.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\", true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage to one target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Celestial Resilience\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 10 ? \"\" : \"Me: \" + n + \"+Cha mod; Allies: \" + Math.floor(n / 2) + \"+Cha mod\"; })\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn when I would make a death save, I can instead spring back up\",\r\n\t\t\t\t\"I recover HP equal to half my current HP maximum, and can then stand up if I choose\",\r\n\t\t\t\t\"When I do, creatures of my choice within 30 ft take 2d8 + Cha mod in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the hexblade\", { // this code includes contributions by SoilentBrad\r\n\tregExpSearch : /^(?=.*hexblade)(?=.*warlock).*$/i,\r\n\tsubname : \"the Hexblade\",\r\n\tsource : [[\"X\", 55]],\r\n\tspellcastingExtra : [\"shield\", \"wrathful smite\", \"blur\", \"branding smite\", \"blink\", \"elemental weapon\", \"phantasmal killer\", \"staggering smite\", \"banishing smite\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Hexblade's Curse\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can curse a creature I can see within 30 ft of me for 1 minute\",\r\n\t\t\t\t\"\\u2022 I add my proficiency bonus to damage rolls against the cursed target\",\r\n\t\t\t\t\"\\u2022 My attack rolls against the curse target score a critical hit on a roll of 19 and 20\",\r\n\t\t\t\t\"\\u2022 If the target dies while cursed, I regain HP equal to my warlock level + Cha mod\",\r\n\t\t\t\t\"The curse ends after 1 minute, when the target dies, I die, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && /curse/i.test(v.WeaponTextName) && !v.CritChance) {\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Curse' in the name of a weapon, the automation will treat the attack as being against a target of the Hexblade's Curse: adding my proficiency bonus to the damage and adding the increased chance of a critical hit to the description.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/curse/i).test(v.WeaponTextName)) output.extraDmg += output.prof;\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hex Warrior\",\r\n\t\t\tsource : [[\"X\", 55]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor, shields, and martial weapons\",\r\n\t\t\t\t\"When I finish a long rest, I can imbue one weapon I touch with my will\",\r\n\t\t\t\t\"Until my next long rest, I can use it with Charisma instead of Strength or Dexterity\",\r\n\t\t\t\t\"I have to be proficient with the weapon and it can't have the two-handed property\",\r\n\t\t\t\t\"This benefit also works with every weapon from Pact of the Blade, with no restriction\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (What('Cha Mod') > What(AbilityScores.abbreviations[fields.Mod - 1] + ' Mod') && (v.pactWeapon || v.theWea.pactWeapon || /^(?=.*hexblade)(?!.*((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b).*$/i.test(v.WeaponText))) {\r\n\t\t\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Hexblade' in the name of a weapon that is not two-handed, it gets treated as the weapon I imbued to use Charisma instead of Strength or Dexterity, if my Charisma modifier is higher than the ability it would otherwise use. Alternatively, if I have the Pact of the Blade feature, this will also work for any weapons set to be my Pact Weapon.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Accursed Specter\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I slay a humanoid, I can curse its soul and have it rise as a specter from its corpse\",\r\n\t\t\t\t\"It has the stats of a specter with temporary hit points equal to half my warlock level\",\r\n\t\t\t\t\"It rolls initiative and has its own turns, obeying my verbal commands\",\r\n\t\t\t\t\"It gains a bonus to attack rolls equal to my Charisma modifier (min +0)\",\r\n\t\t\t\t\"The specter remains until the end of my next long rest, at which point it vanishes\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) { return n < 6 ? \"\" : Math.floor(n/2) + \" temp HP\"; }),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcreaturesAdd : [[\"Accursed Specter\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Accursed Specter\",\r\n\t\t\t\tnameAlt : [\"Accursed Spectre\"],\r\n\t\t\t\tsource : [[\"X\", 56]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Undead\",\r\n\t\t\t\talignment : \"Chaotic Evil\",\r\n\t\t\t\tac : 12,\r\n\t\t\t\thp : 22,\r\n\t\t\t\thd : [5, 8],\r\n\t\t\t\tspeed : \"fly 50 ft (hover)\",\r\n\t\t\t\tscores : [1, 14, 11, 10, 10, 12],\r\n\t\t\t\tdamage_resistances : \"acid; cold; fire; lightning; thunder; bludgeoning, piercing, and slashing from nonmagical weapons\",\r\n\t\t\t\tdamage_immunities : \"necrotic, poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft; While in sunlight, disadv. on Wis (Perception) checks using sight\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tlanguages : \"all languages it knew in life, but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Life Drain\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [3, 6, \"necrotic\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"DC 10 Con save or HP max reduced by same as damage taken until a long rest\",\r\n\t\t\t\t\tmodifiers : [\"max(oCha|0)\", \"\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"A target of the specter's life drain must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Incorporeal Movement\",\r\n\t\t\t\t\tdescription : \"The specter can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sunlight Sensitivity\",\r\n\t\t\t\t\tdescription : \"While in sunlight, the specter has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Life Drain\",\r\n\t\t\t\t\tdescription : \"A target of the specter's life drain must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Bound Spirit\",\r\n\t\t\t\t\tdescription : \"The specter obeys my verbal commands and remains in my service until the end of my next long rest, at which point it vanishes to the afterlife. It acts on its own turn with its own initiative.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Bound Spirit\",\r\n\t\t\t\teval : function(prefix) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"The accursed specter gains half my warlock level as temporary HP when created.\");\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function(prefix) {\r\n\t\t\t\t\tAddTooltip(prefix + 'Comp.Use.HP.Temp', \"\");\r\n\t\t\t\t},\r\n\t\t\t\tchangeeval : function (prefix, newLvl) {\r\n\t\t\t\t\tif (!classes.known.warlock) return;\r\n\t\t\t\t\tValue(prefix + 'Comp.Use.HP.Temp', Math.floor(classes.known.warlock.level / 2));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Armor of Hexes\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a Hexblade's Curse recipient hits me with an attack, I can roll a d6\",\r\n\t\t\t\t\"On a result of 4 or higher, the attacks misses me instead, regardless of its d20 roll\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Hexes\",\r\n\t\t\tsource : [[\"X\", 56]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When the target of my Hexblade's Curse dies, I can curse another I can see within 30 ft\",\r\n\t\t\t\t\"I can't do this while incapacitated and I don't regain HP from the death of the previous\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add Warlock Invocations\r\nAddWarlockInvocation(\"Aspect of the Moon (prereq: Pact of the Tome)\", {\r\n\tname : \"Aspect of the Moon\",\r\n\tdescription : desc(\"I don't need sleep nor can be forced to by any means; I can rest while doing light activity\"),\r\n\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome'; },\r\n\tsavetxt : { text : [\"Nothing can force me to sleep\"] }\r\n});\r\nAddWarlockInvocation(\"Cloak of Flies (prereq: level 5 warlock)\", {\r\n\tname : \"Cloak of Flies\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can surround myself with a 5-ft radius magical aura of buzzing flies\",\r\n\t\t\"It lasts until I'm incapacitated or dismiss it as a bonus action; Total cover block the aura\",\r\n\t\t\"The aura grants me adv. on Cha (Intimidation), but disadv. on all other Cha checks\",\r\n\t\t\"Creatures starting their turn in the aura take my Cha mod (min 0) in poison damage\"\r\n\t]),\r\n\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"bonus action\", \" (start/stop)\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Smite (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Eldritch Smite\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when I hit a creature with my pact weapon, I can empower the strike\",\r\n\t\t\"By expending a warlock spell slot, the creature takes extra damage and is knocked prone\",\r\n\t\t\"It takes 1d8 force damage and another 1d8 force damage per level of the spell slot\",\r\n\t\t\"The target is only knocked prone if it is Huge or smaller\"\r\n\t]),\r\n\tsource : [[\"X\", 56]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; }\r\n});\r\nAddWarlockInvocation(\"Ghostly Gaze (prereq: level 7 warlock)\", {\r\n\tname : \"Ghostly Gaze\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can gain darkvision, and the ability to see through solid objects, out to 30 ft\",\r\n\t\t\"Objects appear ghostly to me; This lasts up to 1 minute, while I'm concentrating on this\"\r\n\t]),\r\n\tsource : [[\"X\", 56]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Gift of the Depths (prereq: level 5 warlock)\", {\r\n\tname : \"Gift of the Depths\",\r\n\tdescription : desc([\r\n\t\t\"I can breathe underwater and I have a swim speed equal to my walking speed\",\r\n\t\t\"Once per long rest, I can cast Water Breathing without using a spell slot (PHB 287)\"\r\n\t]),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Gift of the Depths\",\r\n\t\tspells : [\"water breathing\"],\r\n\t\tselection : [\"water breathing\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n});\r\nAddWarlockInvocation(\"Gift of the Ever-Living Ones (prereq: Pact of the Chain)\", {\r\n\tname : \"Gift of the Ever-Living Ones\",\r\n\tdescription : desc(\"When I regain HP while my familiar is within 100 ft, I regain the max the dice can roll\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain'; }\r\n});\r\nAddWarlockInvocation(\"Grasp of Hadar (prereq: Eldritch Blast cantrip)\", {\r\n\tname : \"Grasp of Hadar\",\r\n\tdescription : desc(\"Once per turn when my Eldritch Blast hits a creature, I can move it 10 ft closer to me\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target moved 10 ft to me';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can move it in a straight line 10 ft closer to me.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"I can use any pact weapon I create as my spellcasting focus for warlock spells\",\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a +1 magic weapon\",\r\n\t\t\"I can now also conjure a shortbow, longbow, or light or heavy crossbow as my pact weapon\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif ((/^(shortbow|longbow|light crossbow|heavy crossbow)$/).test(v.baseWeaponName) && (/\\bpact\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t}\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tif (v.pactWeapon && !output.magic) {\r\n\t\t\t\t\tvar bContinue = true;\r\n\t\t\t\t\t// Now test if this isn't a weaponOptions addition with a static + bonus set to the modifier fields\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon && v.theWea.modifiers) {\r\n\t\t\t\t\t\t// Test the first two modifiers to see if both offer a +1 or more. Returns `true` if one contains no numbers or is less than the improved pact weapon bonus\r\n\t\t\t\t\t\tvar bContinue = v.theWea.modifiers.slice(0, 2).some(function (n) {\r\n\t\t\t\t\t\t\tif (!n || !/\\d/.test(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = 0;\r\n\t\t\t\t\t\t\t} else if (isNaN(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = n.match(/(^|\\+|-)\\d+\\b/g);\r\n\t\t\t\t\t\t\t\tnmbr = !nmbr ? 0 : nmbr.reduce(function(a, b) {return Number(a) + Number(b)});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar nmbr = Number(n);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn nmbr < 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if the continue boolean wasn't set to false, we can proceed\r\n\t\t\t\t\tif (bContinue) {\r\n\t\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the word 'Pact' in a the name of a melee weapon, shortbow, longbow, light crossbow, or heavy crossbow, it will be treated as my Pact Weapon.\\n \\u2022 If my Pact Weapon doesn't already include a magical bonus in its name and is not a magic weapon with at least a +1 bonus, the calculation will add +1 to its To Hit and Damage.\",\r\n\t\t\t290\r\n\t\t],\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/^(shortbow|longbow|light crossbow|heavy crossbow)$/).test(v.baseWeaponName) && (/\\bpact\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t};\r\n\t\t\t}, \"\", 90]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Lance of Lethargy (prereq: Eldritch Blast cantrip)\", {\r\n\tname : \"Lance of Lethargy\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when my Eldritch Blast hits a creature, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; 1 target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"Once on each of my turns when I hit a creature with my Eldritch Blast cantrip, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Maddening Hex (prereq: level 5 warlock, Hex spell or warlock feature that curses)\", {\r\n\tname : \"Maddening Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I cause pain around a target hexed by me that I can see within 30 ft\",\r\n\t\t\"It and any of my choice I can see in 5 ft of it take my Cha mod (min 1) in psychic damage\",\r\n\t\t\"The Hex spell and all of my warlock features that curse are considered a hex for this\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Hex spell or warlock feature that curses]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && (isSpellUsed('hex', true) || (/hexblade/).test(classes.known.warlock.subclass)); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 7 warlock, Hex spell or warlock feature that curses)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport to a target hexed by me that I can see within 30 ft\",\r\n\t\t\"I teleport up to 30 ft to an unoccupied space that I can see within 5 ft of the target\"\r\n\t]),\r\n\tsource : [[\"X\", 57]],\r\n\tsubmenu : \"[improves Hex spell or warlock feature that curses]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7 && (isSpellUsed('hex', true) || (/hexblade/).test(classes.known.warlock.subclass)); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Shroud of Shadow (prereq: level 15 warlock)\", {\r\n\tname : \"Shroud of Shadow\",\r\n\tdescription : desc(\"I can cast Invisibility at will, without using spell slots (PHB 254)\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level 15+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shroud of Shadow\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 15; },\r\n\tspellChanges : {\r\n\t\t\"invisibility\" : {\r\n\t\t\tdescription : \"1 crea invisible; attacking/casting makes the crea visible; anything worn/carried also invisible\",\r\n\t\t\tchanges : \"With the Shroud of Shadow invocation I can cast Invisibility at will, but when I do so I am unable to cast it using a higher level spell slot.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Tomb of Levistus (prereq: level 5 warlock)\", {\r\n\tname : \"Tomb of Levistus\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when I take damage, I can entomb myself in ice until the end of my turn\",\r\n\t\t\"During, I get 10 temp. HP per warlock level, which I use to absorb the triggering damage\",\r\n\t\t\"After, till the ice is gone, I also get vulnerability to fire, 0 speed, and am incapacitated\"\r\n\t]),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tadditional : levels.map( function(n) { return (n * 10) + \" temp HP\"; })\r\n});\r\nAddWarlockInvocation(\"Trickster's Escape (prereq: level 7 warlock)\", {\r\n\tname : \"Trickster's Escape\",\r\n\tdescription : desc(\"Once per long rest, I can cast Freedom of Movement on myself without using a spell slot\"),\r\n\tsource : [[\"X\", 57], [\"UA:RCO\", 7]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Trickster's Escape\",\r\n\t\tspells : [\"freedom of movement\"],\r\n\t\tselection : [\"freedom of movement\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\tspellChanges : {\r\n\t\t\"freedom of movement\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tdescription : \"Magic can't reduce my speed, paralyze or restrain me; I can use 5 ft to escape nonmagical restrains\",\r\n\t\t\tchanges : \"With the Trickster's Escape invocation I can cast Freedom of Movement, but only on myself.\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add 1 subclass for the Wizard\r\nAddSubClass(\"wizard\", \"war magic\", {\r\n\tregExpSearch : /^(?=.*war)(?=.*(wizard|magic|mage)).*$/i,\r\n\tsubname : \"War Magic\",\r\n\tfullname : \"War Mage\",\r\n\tsource : [[\"X\", 59]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : { //has to be identical to a feature named in the ClassList\r\n\t\t\tname : \"Arcane Deflection\",\r\n\t\t\tsource : [[\"X\", 59]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I'm hit by an attack, I can gain +2 to my AC against that attack\",\r\n\t\t\t\t\"As a reaction when I fail a save, I can gain +4 bonus to that saving throw\",\r\n\t\t\t\t\"After I do either, I can't cast spells other than cantrips until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Tactical Wit\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Power Surge\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of stored power surges that I can use to empower my damaging spells\",\r\n\t\t\t\t\"I gain a power surge whenever I successfully end a spell with Dispel Magic or Counterspell\",\r\n\t\t\t\t\"This pool can store a number of power surges equal to my Intelligence modifier (min 1)\",\r\n\t\t\t\t\"It resets to 1 power surge after a long rest or when I have 0 surges left after a short rest\",\r\n\t\t\t\t\"When I deal damage with a wizard spell, I can spend a power surge to do extra damage\",\r\n\t\t\t\t\"One target takes half my wizard level in force damage; I can do this only once per turn\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Resets to 1 after \",\r\n\t\t\tusagescalc : \"event.value = !event.value || event.value == 'Resets to 1 after ' ? 1 : event.value;\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 6 ? \"\" : \"+\" + Math.floor(n/2) + \" force damage\"; })\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Durable Magic\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"While I'm maintaining concentration on a spell, I gain +2 to AC and all saving throws\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Deflecting Shroud\",\r\n\t\t\tsource : [[\"X\", 60]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my Arcane Deflection feature, magical energy arcs from me to creatures\",\r\n\t\t\t\t\"Up to 3 targets I can see within 60 ft of me take half my wizard level in force damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) { return n < 14 ? \"\" : Math.floor(n/2) + \" force damage\"; })\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add feats\r\nFeatsList[\"bountiful luck\"] = {\r\n\tname : \"Bountiful Luck\",\r\n\tsource : [[\"X\", 73]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Your people have extraordinary luck, which you have learned to mystically lend to your companions when you see them falter. You're not sure how you do it; you just wish it, and it happens. Surely a sign of fortune's favor!\\n   When an ally you can see within 30 feet of you rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, you can use your reaction to let the ally reroll the die. The ally must use the new roll\\n   When you use this ability, you can't use your Lucky racial trait before the end of your next turn.\",\r\n\tdescription : \"When an ally I can see within 30 ft of me rolls a 1 on an attack roll, an ability check, or a saving throw, I can use my reaction to let the ally reroll the die. The ally must use the new roll. When I use this, I can't use my racial Lucky trait until the end of my next turn.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"dragon fear\"] = {\r\n\tname : \"Dragon Fear\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"When angered, you radiate menace. You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Instead of exhaling destructive energy, you can expend a use of your Breath Weapon trait to roar, forcing each creature of your choice within 30 feet of you to make a Wisdom saving throw (DC 8 + your proficiency bonus + your Charisma modifier). A target automatically succeeds on the save if it can't hear or see you. On a failed save, a target becomes frightened of you for 1 minute. If the frightened target takes any damage, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tcalculate : \"event.value = 'I can use my Breath Weapon to roar instead. Chosen creatures within 30 ft that see and hear me must make a DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' Wis save (8 + Prof Bonus + Cha mod) or be frightened of me for 1 min. A target can repeat the save whenever it takes damage. [+1 Str, Con, or Cha]';\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Charisma\",\r\n\taction : [['action', 'Breath Weapon or Dragon Fear', 'Breath Weapon']]\r\n};\r\nFeatsList[\"dragon hide\"] = {\r\n\tname : \"Dragon Hide\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You manifest scales and claws reminiscent of your draconic ancestors. You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Your scales harden. While you aren't wearing armor, you can calculate your AC as 13 + your Dexterity modifier. You can use a shield and still gain this benefit.\\n \\u2022 You grow retractable claws from the tips of your fingers. Extending or retracting the claws requires no action. The claws are natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal slashing damage equal to 1d4 + your Strength modifier, instead of the normal bludgeoning damage for an unarmed strike.\",\r\n\tdescription : \"I gain retractable claws that I can retract or extend, requiring no action. While extended, my unarmed strikes deal 1d4 slashing damage. My scales harden, giving me an AC of 13 + Dexterity modifier + shield when I'm not wearing armor. [+1 Str, Con, or Cha]\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Charisma\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(retractable|dragon))(?=.*claw).*$/i,\r\n\t\tname : \"Retractable Claws\",\r\n\t\tsource : [[\"X\", 74]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*(dragon|draconic|scaly))(?=.*(hide|skin|scales|resilience)).*$/i,\r\n\t\tname : \"Dragon Hide\",\r\n\t\tsource : [[\"X\", 74]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nFeatsList[\"drow high magic\"] = {\r\n\tname : \"Drow High Magic\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Drow (Dark Elf)\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dark elf') !== -1; },\r\n\tdescriptionFull : \"You learn more of the magic typical of dark elves. You learn the Detect Magic spell and can cast it at will, without expending a spell slot. You also learn Levitate and Dispel Magic, each of which you can cast once without expending a spell slot. You regain the ability to cast those two spells in this way when you finish a long rest. Charisma is your spellcasting ability for all three spells.\",\r\n\tdescription : \"I can cast Detect Magic at will, without expending a spell slot. I can also cast Levitate and Dispel Magic without expending a spell slot, but each only once per long rest. Charisma is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"dispel magic\"],\r\n\t\tselection : [\"dispel magic\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dwarven fortitude\"] = {\r\n\tname : \"Dwarven Fortitude\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have the blood of dwarf heroes flowing through your veins. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 Whenever you take the Dodge action in combat, you can spend one Hit Die to heal yourself. Roll the die, add your Constitution modifier, and regain a number of hit points equal to the total (minimum of 1).\",\r\n\tdescription : \"Whenever I take the Dodge action in combat, I can spend one Hit Die to heal myself. I roll the die, add my Constitution modifier, and regain a number of hit points equal to the total (minimum of 1). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elven accuracy\"] = {\r\n\tname : \"Elven Accuracy\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being an Elf or a Half-Elf\",\r\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"The accuracy of elves is legendary, especially that of elf archers and spellcasters. You have uncanny aim with attacks that rely on precision rather than brute force. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 Whenever you have advantage on an attack roll using Dexterity, Intelligence, Wisdom, or Charisma, you can reroll one of the dice once.\",\r\n\tdescription : \"Whenever I have advantage on an attack roll that uses Dexterity, Intelligence, Wisdom, or Charisma, I can reroll one of the dice once. [+1 Dexterity, Intelligence, Wisdom, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Intelligence, Wisdom, or Charisma\"\r\n};\r\nFeatsList[\"fade away\"] = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('gnome') !== -1; },\r\n\tdescriptionFull : \"Your people are clever, with a knack for illusion magic. You have learned a magical trick for fading away when you suffer harm. You gain the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 Immediately after you take damage, you can use a reaction to magically become invisible until the end of your next turn or until you attack, deal damage, or force someone to make a saving throw. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"As a reaction when I take damage, I can magically become invisible until the end of my next turn or until I attack, deal damage, or force someone to make a saving throw. Once I do this, I can't do so again until I finish a short rest. [+1 Dexterity or Intelligence]\",\r\n\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"fey teleportation\"] = { // this code includes contributions by SoilentBrad\r\n\tname : \"Fey Teleportation\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a High Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('high elf') !== -1; },\r\n\tdescriptionFull : \"Your study of high elven lore has unlocked fey power that few other elves possess, except your eladrin cousins. Drawing on your fey ancestry, you can momentarily stride through the Feywild to shorten your path from one place to another. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn to speak, read, and write Sylvan.\\n \\u2022 You learn the Misty Step spell and can cast it once without expending a spell slot. You regain the ability to cast it in this way when you finish a short or long rest. Intelligence is your spellcasting ability for this spell.\",\r\n\tdescription : \"I can cast Misty Step without using a spell slot. I can do so once per short rest. Intelligence is my spellcasting ability for this spell. I also learn to speak, read, and write Sylvan. [+1 Intelligence or Charisma]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per short rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 'oncesr'\r\n\t}],\r\n\tlanguageProfs : [\"Sylvan\"],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"flames of phlegethos\"] = {\r\n\tname : \"Flames of Phlegethos\",\r\n\tsource : [[\"X\", 74]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"You learn to call on hellfire to serve your commands. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 When you roll fire damage for a spell you cast, you can reroll any roll of 1 on the fire damage dice, but you must use the new roll, even if it is another 1.\\n \\u2022 Whenever you cast a spell that deals fire damage, you can cause flames to wreathe you until the end of your next turn. The flames don't harm you or your possessions, and they shed bright light out to 30 feet and dim light for an additional 30 feet. While the flames are present, any creature within 5 feet of you that hits you with a melee attack takes 1d4 fire damage.\",\r\n\tdescription : \"When I cast a fire damage spell, I can reroll any 1 on fire damage dice once. I then sheathe myself in flame until my next turn ends. These shed bright light in 30 ft, dim light in 30 ft and cause any within 5 ft that hit me in melee to take 1d4 fire damage. [+1 Int or Cha]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\"\t\r\n};\r\nFeatsList[\"infernal constitution\"] = {\r\n\tname : \"Infernal Constitution\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"Fiendish blood runs strong in you, unlocking a resilience akin to that possessed by some fiends. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You have resistance to cold and poison damage.\\n \\u2022 You have advantage on saving throws against being poisoned.\",\r\n\tdescription : \"I have resistance to cold and poison damage and I have advantage on saving throws against being poisoned.\\n[+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tdmgres : [\"Cold\", \"Poison\"],\r\n\tsavetxt : { adv_vs : [\"poison\"] }\r\n};\r\nFeatsList[\"orcish fury\"] = {\r\n\tname : \"Orcish Fury\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"Your fury burns tirelessly. You gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 When you hit with an attack using a simple or martial weapon, you can roll one of the weapon's damage dice an additional time and add it as extra damage of the weapon's damage type. Once you use this ability, you can't use it again until you finish a short or long rest.\\n \\u2022 Immediately after you use your Relentless Endurance trait, you can use your reaction to make one weapon attack.\",\r\n\tdescription : \"Once per short rest, I can roll an extra damage die for an attack with a simple or martial weapon. In addition, Immediately after I use my Relentless Endurance trait, I can use my reaction to make one weapon attack. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : [[\"reaction\", \" (after Relentless Endurance)\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"extra damage\"\r\n};\r\nFeatsList[\"prodigy\"] = {\r\n\tname : \"Prodigy\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Half-Elf, Half-Orc, or Human\",\r\n\tprereqeval : function(v) { return (/human|^(?=.*half)(?=.*(elf|orc)).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 You gain one skill proficiency of your choice, one tool proficiency of your choice, and fluency in one language of your choice.\\n \\u2022 Choose one skill in which you have proficiency. You gain expertise with that skill, which means your proficiency bonus is doubled for any ability check you make with it. The skill you choose must be one that isn't already benefiting from a feature, such as Expertise, that doubles your proficiency bonus.\",\r\n\tdescription : \"I gain proficiency with one skill of my choice and expertise with it, or expertise with another skill of my choice that I'm already proficient with. I also gain proficiency with one tool of my choice and fluency in one language of my choice.\",\r\n\tskillstxt : \"Proficiency with any one skill and Expertise with any one skill that you are already proficient with\",\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n};\r\nFeatsList[\"second chance\"] = {\r\n\tname : \"Second Chance\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Fortune favors you when someone tries to strike you. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 When a creature you can see hits you with an attack roll, you can use your reaction to force that creature to reroll. Once you use this ability, you can't use it again until you roll initiative at the start of combat or until you finish a short or long rest.\",\r\n\tdescription : \"When a creature I can see hits me with an attack roll, I can use my reaction to force that creature to reroll. Once I use this ability, I can't do so again until I roll initiative at the start of combat or I finish a short rest. [+1 Dexterity, Constitution, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"Combat\"\r\n};\r\nFeatsList[\"squat nimbleness\"] = {\r\n\tname : \"Squat Nimbleness\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Dwarf or a small race\",\r\n\tprereqeval : function(v) { return (/dwarf/i).test(CurrentRace.known) || tDoc.getField('Size Category').currentValueIndices === 4; },\r\n\tdescriptionFull : \"You are uncommonly nimble for your race. You gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 Increase your walking speed by 5 feet.\\n \\u2022 You gain proficiency in the Acrobatics or Athletics skill (your choice).\\n \\u2022 You have advantage on any Strength (Athletics) or Dexterity (Acrobatics) check you make to escape from being grappled.\",\r\n\tdescription : \"My walking speed increases by 5 ft. I gain proficiency in either the Acrobatics or the Athletics skill. I have advantage on Dexterity (Acrobatics) and Strength (Athletics) checks I make to escape from being grappled. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tskillstxt : \"Acrobatics or Athletics\",\r\n\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } }\r\n};\r\nFeatsList[\"wood elf magic\"] = {\r\n\tname : \"Wood Elf Magic\",\r\n\tsource : [[\"X\", 75]],\r\n\tprerequisite : \"Being a Wood Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('wood elf') !== -1; },\r\n\tdescriptionFull : \"You learn the magic of the primeval woods, which are revered and protected by your people. You learn one druid cantrip of your choice. You also learn the Longstrider and Pass Without Trace spells, each of which you can cast once without expending a spell slot. You regain the ability to cast these two spells in this way when you finish a long rest. Wisdom is your spellcasting ability for all three spells.\",\r\n\tdescription : \"I learn a druid cantrip. In addition, I can cast Longstrider and Pass Without Trace, without expending a spell slot, but each only once per long rest. Wisdom is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druid Cantrip\",\r\n\t\tspellcastingAbility : 5,\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"longstrider\"],\r\n\t\tselection : [\"longstrider\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"pass without trace\"],\r\n\t\tselection : [\"pass without trace\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\r\n// [dupl_start] Add spells, first those taken from the Elemental Evil Player's Companion, if not already present\r\nif (!SourceList.E || !(/Elemental.*Evil.*Player.*Companion/i).test(SourceList.E.name)) {\r\n\tSpellsList[\"abi-dalzim's horrid wilting\"] = {\r\n\t\tname : \"Abi-Dalzim's Horrid Wilting\",\r\n\t\tnameShort : \"Abi-D's Horrid Wilting\",\r\n\t\tnameAlt : \"Horrid Wilting\",\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\t\tlevel : 8,\r\n\t\tschool : \"Necro\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"150 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A bit of sponge\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Con\",\r\n\t\tdescription : \"30-ft cube all crea 12d8 Necrotic dmg; save halves; plants/water elem. dis. const/undead immune\",\r\n\t\tdescriptionFull : \"You draw the moisture from every creature in a 30-foot cube centered on a point you choose within range. Each creature in that area must make a Constitution saving throw. Constructs and undead aren't affected, and plants and water elementals make this saving throw with disadvantage. A creature takes 12d8 necrotic damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"Nonmagical plants in the area that aren't creatures, such as trees and shrubs, wither and die instantly.\"\r\n\t};\r\n\tSpellsList[\"absorb elements\"] = {\r\n\t\tname : \"Absorb Elements\",\r\n\t\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\t\tlevel : 1,\r\n\t\tschool : \"Abjur\",\r\n\t\ttime : \"1 rea\",\r\n\t\ttimeFull : \"1 reaction, which you take when you take acid, cold, fire, lightning, or thunder damage\",\r\n\t\trange : \"Self\",\r\n\t\tcomponents : \"S\",\r\n\t\tduration : \"1 rnd\",\r\n\t\tdescription : \"Acid, Cold, Fire, Lightning, or Thunder resistance till next turn start; first melee hit +1d6+1d6/SL dmg\",\r\n\t\tdescriptionFull : \"The spell captures some of the incoming energy, lessening its effect on you and storing it for your next melee attack. You have resistance to the triggering damage type until the start of your next turn. Also, the first time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the extra damage increases by 1d6 for each slot level above 1st.\"\r\n\t};\r\n\tSpellsList[\"aganazzar's scorcher\"] = {\r\n\t\tname : \"Aganazzar's Scorcher\",\r\n\t\tnameAlt : \"Scorch\", //as per the Spell Compandium's (DnD 3.5e) alternative name\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\t\tlevel : 2,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30-ft line\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A red dragon's scale\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"30-ft long 5-ft wide line all creatures 3d8+1d8/SL Fire dmg; save halves\",\r\n\t\tdescriptionFull : \"A line of roaring flame 30 feet long and 5 feet wide emanates from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 3d8 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n\t};\r\n\tSpellsList[\"beast bond\"] = {\r\n\t\tname : \"Beast Bond\",\r\n\t\tclasses : [\"druid\", \"ranger\"],\r\n\t\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\t\tlevel : 1,\r\n\t\tschool : \"Div\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Touch\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A bit of fur wrapped in a cloth\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tdescription : \"Telepathic link with 1 beast Int<4 while in line of sight; beast has adv. on attacks vs. crea I can see\",\r\n\t\tdescriptionFull : \"You establish a telepathic link with one beast you touch that is friendly to you or charmed by you. The spell fails if the beast's Intelligence is 4 or higher. Until the spell ends, the link is active while you and the beast are within line of sight of each other. Through the link, the beast can understand your telepathic messages to it, and it can telepathically communicate simple emotions and concepts back to you. While the link is active, the beast gains advantage on attack rolls against any creature within 5 feet of you that you can see.\"\r\n\t};\r\n\tSpellsList[\"bones of the earth\"] = {\r\n\t\tname : \"Bones of the Earth\",\r\n\t\tclasses : [\"druid\"],\r\n\t\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\t\tlevel : 6,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"120 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lifted, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\t\tdescriptionShorter : \"6+2/SL 5-ft dia stone lift up 30 ft; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\t\tdescriptionShorterMetric : \"6+2/SL 1,5-m dia stone lift 9 m; \\u2265Medium crea save or lift, 6d6 Bludg. dmg if hit ceiling; see B\",\r\n\t\tdescriptionFull : \"You cause up to six pillars of stone to burst from places on the ground that you can see within range. Each pillar is a cylinder that has a diameter of 5 feet and a height of up to 30 feet. The ground where a pillar appears must be wide enough for its diameter, and you can target the ground under a creature if that creature is Medium or smaller. Each pillar has AC 5 and 30 hit points. When reduced to 0 hit points, a pillar crumbles into rubble, which creates an area of difficult terrain with a 10-foot radius that lasts until the rubble is cleared. Each 5-foot-diameter portion of the area requires at least 1 minute to clear by hand.\\n   If a pillar is created under a creature, that creature must succeed on a Dexterity saving throw or be lifted by the pillar. A creature can choose to fail the save.\\n   If a pillar is prevented from reaching its full height because of a ceiling or other obstacle, a creature on the pillar takes 6d6 bludgeoning damage and is restrained, pinched between the pillar and the obstacle. The restrained creature can use an action to make a Strength or Dexterity check (the creature's choice) against the spell's save DC. On a success, the creature is no longer restrained and must either move off the pillar or fall off it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 7th level or higher, you can create two additional pillars for each slot level above 6th.\"\r\n\t};\r\n\tSpellsList[\"catapult\"] = {\r\n\t\tname : \"Catapult\",\r\n\t\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 150], [\"E\", 15]],\r\n\t\tlevel : 1,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"Send 5+5/SL lb unattended object in 90 ft straight line; if crea hit, save or 3d8+1d8/SL Bludg. dmg\",\r\n\t\tdescriptionFull : \"Choose one object weighing 1 to 5 pounds within range that isn't being worn or carried. The object flies in a straight line up to 90 feet in a direction you choose before falling to the ground, stopping early if it impacts against a solid surface. If the object would strike a creature, that creature must make a Dexterity saving throw. On a failed save, the object strikes the target and stops moving. When the object strikes something, the object and what it strikes each take 3d8 bludgeoning damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the maximum weight of objects that you can target with this spell increases by 5 pounds, and the damage increases by 1d8, for each slot level above 1st.\"\r\n\t};\r\n\tSpellsList[\"control flames\"] = {\r\n\t\tname : \"Control Flames\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"S\",\r\n\t\tduration : \"Instant. or 1 h\",\r\n\t\tdescription : \"Nonmagical flame up to 5 cu ft; instant: expand/extinguish, 1h: brighten/dim/color/create shapes\",\r\n\t\tdescriptionFull : \"You choose nonmagical flame that you can see within range and that fits within a 5-foot cube. You affect it in one of the following ways.\" + \"\\n \\u2022 \" + \"You instantaneously expand the flame 5 feet in one direction, provided that wood or other fuel is present in the new location.\" + \"\\n \\u2022 \" + \"You instantaneously extinguish the flames within the cube.\" + \"\\n \\u2022 \" + \"You double or halve the area of bright light and dim light cast by the flame, change its color, or both. The change lasts for 1 hour.\" + \"\\n \\u2022 \" + \"You cause simple shapes-such as the vague form of a creature, an inanimate object, or a location-to appear within the flames and animate as you like. The shapes last for 1 hour.\" + \"\\n   \" + \"If you cast this spell multiple times, you can have up to three of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n\t};\r\n\tSpellsList[\"control winds\"] = {\r\n\t\tname : \"Control Winds\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 152], [\"E\", 16], [\"UA:D\", 8]],\r\n\t\tlevel : 5,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"300 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 h\",\r\n\t\tdescription : \"100-ft cube of air either gusts, downdraft, or updraft; affects flying/jump/ranged; 1 a change; see B\",\r\n\t\tdescriptionFull : \"You take control of the air in a 100-foot cube that you can see within range. Choose one of the following effects when you cast the spell. The effect lasts for the spell's duration, unless you use your action on a later turn to switch to a different effect. You can also use your action to temporarily halt the effect or to restart one you've halted.\" + \"\\n   \" + toUni(\"Gusts\") + \": A wind picks up within the cube, continually blowing in a horizontal direction you designate. You choose the intensity of the wind: calm, moderate, or strong. If the wind is moderate or strong, ranged weapon attacks that enter or leave the cube or pass through it have disadvantage on their attack rolls. If the wind is strong, any creature moving against the wind must spend 1 extra foot of movement for each foot moved.\" + \"\\n   \" + toUni(\"Downdraft\") + \": You cause a sustained blast of strong wind to blow downward from the top of the cube. Ranged weapon attacks that pass through the cube or that are made against targets within it have disadvantage on their attack rolls. A creature must make a Strength saving throw if it flies into the cube for the first time on a turn or starts its turn there flying. On a failed save, the creature is knocked prone.\" + \"\\n   \" + toUni(\"Updraft\") + \": You cause a sustained updraft within the cube, rising upward from the cube's bottom side. Creatures that end a fall within the cube take only half damage from the fall. When a creature in the cube makes a vertical jump, the creature can jump up to 10 feet higher than normal.\"\r\n\t};\r\n\tSpellsList[\"create bonfire\"] = {\r\n\t\tname : \"Create Bonfire\",\r\n\t\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"5-ft cube all crea now/enter/end turn save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\t\tdescriptionShorter : \"5-ft cube all now/enter/end save or 1d8 Fire dmg; ignites flammable; +1d8 at CL 5/11/17\",\r\n\t\tdescriptionCantripDie : \"5-ft cube all crea at casting, entering, or end turn in save or `CD`d8 Fire dmg; ignites flammable\",\r\n\t\tdescriptionFull : \"You create a bonfire on ground that you can see within range. Until the spell ends, the magic bonfire fills a 5-foot cube. Any creature in the bonfire's space when you cast the spell must succeed on a Dexterity saving throw or take 1d8 fire damage. A creature must also make the saving throw when it moves into the bonfire's space for the first time on a turn or ends its turn there.\" + \"\\n   \" + \"The bonfire ignites flammable objects in its area that aren't being worn or carried.\" + \"\\n   \" + \"The spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\"\r\n\t};\r\n\tSpellsList[\"dust devil\"] = {\r\n\t\tname : \"Dust Devil\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\t\tlevel : 2,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A pinch of dust\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"5-ft cube; all in 5-ft 1d8+1d8/SL Bludg. dmg and pushed 10 ft away; save halves, no push; see book\",\r\n\t\tdescriptionFull : \"Choose an unoccupied 5-foot cube of air that you can see within range. An elemental force that resembles a dust devil appears in the cube and lasts for the spell's duration.\" + \"\\n   \" + \"Any creature that ends its turn within 5 feet of the dust devil must make a Strength saving throw. On a failed save, the creature takes 1d8 bludgeoning damage and is pushed 10 feet away from the dust devil. On a successful save, the creature takes half as much damage and isn't pushed.\" + \"\\n   \" + \"As a bonus action, you can move the dust devil up to 30 feet in any direction. If the dust devil moves over sand, dust, loose dirt, or light gravel, it sucks up the material and forms a 10-foot-radius cloud of debris around itself that lasts until the start of your next turn. The cloud heavily obscures its area.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\"\r\n\t};\r\n\tSpellsList[\"earthbind\"] = {\r\n\t\tname : \"Earthbind\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 154], [\"E\", 17]],\r\n\t\tlevel : 2,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"300 ft\",\r\n\t\tcomponents : \"V\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"1 creatures save or fly speed is reduced to 0; airborne creatures safely descend at 60 ft per round\",\r\n\t\tdescriptionFull : \"Choose one creature you can see within range. Yellow strips of magical energy loop around the creature. The target must succeed on a Strength saving throw, or its flying speed (if any) is reduced to 0 feet for the spell's duration. An airborne creature affected by this spell safely descends at 60 feet per round until it reaches the ground or the spell ends.\"\r\n\t};\r\n\tSpellsList[\"earth tremor\"] = {\r\n\t\tname : \"Earth Tremor\",\r\n\t\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\t\tlevel : 1,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"10 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"All crea in range except me save or 1d6+1d6/SL Bludgeoning dmg and prone; loose ground is dif. ter.\",\r\n\t\tdescriptionFull : \"You cause a tremor in the ground within range. Each creature other than you in that area must make a Dexterity saving throw. On a failed save, a creature takes 1d6 bludgeoning damage and is knocked prone. If the ground in that area is loose earth or stone, it becomes difficult terrain until cleared, with each 5-foot-diameter portion requiring at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st.\"\r\n\t};\r\n\tSpellsList[\"elemental bane\"] = {\r\n\t\tname : \"Elemental Bane\",\r\n\t\tclasses : [\"artificer\", \"druid\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\t\tlevel : 4,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"90 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Con\",\r\n\t\tdescription : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. to it \\u0026 +2d6 to first dmg with it/turn\",\r\n\t\tdescriptionShorter : \"1+1/SL crea, each max 30 ft apart, save or 1 energy: lose resist. \\u0026 +2d6 first dmg/turn\",\r\n\t\tdescriptionFull : \"Choose one creature you can see within range, and choose one of the following damage types - acid, cold, fire, lightning, or thunder. The target must succeed on a Constitution saving throw or be affected by the spell for its duration. The first time each turn the affected target takes damage of the chosen type, the target takes an extra 2d6 damage of that type. Moreover, the target loses any resistance to that damage type until the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.\",\r\n\t\tdynamicDamageBonus : {\r\n\t\t\tmultipleDmgTypes : {\r\n\t\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"thunder\"],\r\n\t\t\t\tinDescriptionAs : \"first\"\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tSpellsList[\"erupting earth\"] = {\r\n\t\tname : \"Erupting Earth\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 155], [\"E\", 17]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"120 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A piece of obsidian\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"20-ft cube all crea 3d12+1d12/SL Bludgeoning dmg; save halves; area becomes difficult terrain\",\r\n\t\tdescriptionFull : \"Choose a point you can see on the ground within range. A fountain of churned earth and stone erupts in a 20-foot cube centered on that point. Each creature in that area must make a Dexterity saving throw. A creature takes 3d12 bludgeoning damage on a failed save, or half as much damage on a successful one. Additionally, the ground in that area becomes difficult terrain until cleared. Each 5-foot-square portion of the area requires at least 1 minute to clear by hand.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d12 for each slot level above 3rd.\"\r\n\t};\r\n\tSpellsList[\"flame arrows\"] = {\r\n\t\tname : \"Flame Arrows\",\r\n\t\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Touch\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 h\",\r\n\t\tdescription : \"12+2/SL ammunition drawn from touched quiver do +1d6 Fire damage on a successful hit\",\r\n\t\tdescriptionFull : \"You touch a quiver containing arrows or bolts. When a target is hit by a ranged weapon attack using a piece of ammunition drawn from the quiver, the target takes an extra 1d6 fire damage. The spell's magic ends on the piece of ammunition when it hits or misses, and the spell ends when twelve pieces of ammunition have been drawn from the quiver.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of pieces of ammunition you can affect with this spell increases by two for each slot level above 3rd.\"\r\n\t};\r\n\tSpellsList[\"frostbite\"] = {\r\n\t\tname : \"Frostbite\",\r\n\t\tclasses : [\"artificer\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Con\",\r\n\t\tdescription : \"1 crea save or 1d6 Cold dmg and dis. on next weapon attack roll; +1d6 at CL 5, 11, and 17\",\r\n\t\tdescriptionCantripDie : \"1 crea save or `CD`d6 Cold dmg and dis. on next weapon attack roll\",\r\n\t\tdescriptionFull : \"You cause numbing frost to form on one creature that you can see within range. The target must make a Constitution saving throw. On a failed save, the target takes 1d6 cold damage, and it has disadvantage on the next weapon attack roll it makes before the end of its next turn.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n\t};\r\n\tSpellsList[\"gust\"] = {\r\n\t\tname : \"Gust\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 157], [\"E\", 19], [\"E:RLW\", 50], [\"UA:D\", 6], [\"WGtE\", 107]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"Med. or smaller crea save or push 5 ft; or push unattended 5 lb obj 10 ft; or harmless sensory effect\",\r\n\t\tdescriptionFull : \"You seize the air and compel it to create one of the following effects at a point you can see within range.\" + \"\\n \" + \"\\u2022 One Medium or smaller creature that you choose must succeed on a Strength saving throw or be pushed up to 5 feet away from you.\" + \"\\n \" + \"\\u2022 You create a small blast of air capable of moving one object that is neither held nor carried and that weighs no more than 5 pounds. The object is pushed up to 10 feet away from you. It isn't pushed with enough force to cause damage.\" + \"\\n \" + \"\\u2022 You create a harmless sensory affect using air, such as causing leaves to rustle, wind to slam shutters shut, or your clothing to ripple in a breeze.\"\r\n\t};\r\n\tSpellsList[\"ice knife\"] = {\r\n\t\tname : \"Ice Knife\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 157], [\"E\", 19]],\r\n\t\tlevel : 1,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"S,M\",\r\n\t\tcompMaterial : \"A drop of water or piece of ice\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"Ranged atk for 1d10 Piercing dmg; hit/miss 5-ft rad on target all crea save or 2d6+1d6/SL Cold dmg\",\r\n\t\tdescriptionShorter : \"Ranged atk 1d10 Piercing dmg; on target 5-ft rad all crea save or 2d6+1d6/SL Cold dmg\",\r\n\t\tdescriptionFull : \"You create a shard of ice and fling it at one creature within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 piercing damage. Hit or miss, the shard then explodes. The target and each creature within 5 feet of it must succeed on a Dexterity saving throw or take 2d6 cold damage.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the cold damage increases by 1d6 for each slot level above 1st.\",\r\n\t\tdynamicDamageBonus : {\r\n\t\t\tskipDmgGroupIfNotMultiple : /(atk .*piercing dmg.*?)/i\r\n\t\t}\r\n\t};\r\n\tSpellsList[\"immolation\"] = {\r\n\t\tname : \"Immolation\",\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 158], [\"E\", 19]],\r\n\t\tlevel : 5,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"90 ft\",\r\n\t\tcomponents : \"V\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"1 crea save or 8d6 Fire dmg \\u0026 burns for 4d6 Fire dmg/rnd; save each rnd to end; save half, no burning\",\r\n\t\tdescriptionShorter : \"1 crea save or 8d6 Fire dmg \\u0026 4d6 Fire dmg/rnd; save each rnd to end; save half, no rnds\",\r\n\t\tdescriptionFull : \"Flames wreathe one creature you can see within range. The target must make a Dexterity saving throw. It takes 8d6 fire damage on a failed save, or half as much damage on a successful one. On a failed save, the target also burns for the spell's duration. The burning target sheds bright light in a 30-foot radius and dim light for an additional 30 feet. At the end of each of its turns, the target repeats the saving throw. It takes 4d6 fire damage on a failed save, and the spell ends on a successful one. These magical flames can't be extinguished by nonmagical means.\" + \"\\n   \" + \"If damage from this spell kills a target, the target is turned to ash.\",\r\n\t\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n\t};\r\n\tSpellsList[\"investiture of flame\"] = {\r\n\t\tname : \"Investiture of Flame\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\t\tlevel : 6,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Self\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"Fire immune; Cold res.; 1d10 Fire dmg in 5 ft; 1 a 15-ft long 5-ft wide all crea 4d8 Fire dmg, save half\",\r\n\t\tdescriptionShorter : \"Fire im.; Cold res.; 1d10 Fire dmg in 5 ft; 1a 15-ft long 5-ft wide all 4d8 Fire dmg, save half\",\r\n\t\tdescriptionShorterMetric : \"Fire immune; Cold res.; 1d10 Fire dmg in 1,5 m; 1 a 4,5-m long all 4d8 Fire dmg, save half\",\r\n\t\tdescriptionFull : \"Flames race across your body, shedding bright light in a 30-foot radius and dim light for an additional 30 feet for the spell's duration. The flames don't harm you. Until the spell ends, you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to fire damage and have resistance to cold damage.\" + \"\\n \" + \"\\u2022 Any creature that moves within 5 feet of you for the first time on a turn or ends its turn there takes 1d10 fire damage.\" + \"\\n \" + \"\\u2022 You can use your action to create a line of fire 15 feet long and 5 feet wide extending from you in a direction you choose. Each creature in the line must make a Dexterity saving throw. A creature takes 4d8 fire damage on a failed save, or half as much damage on a successful one.\"\r\n\t};\r\n\tSpellsList[\"investiture of ice\"] = {\r\n\t\tname : \"Investiture of Ice\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\t\tlevel : 6,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Self\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tsave : \"Con\",\r\n\t\tdescription : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all crea 4d6 Cold dmg, half spd; save half, no spd\",\r\n\t\tdescriptionShorter : \"Cold im.; Fire res.; 10-ft rad dif. ter.; 1 a 15-ft cone all 4d6 Cold dmg, half speed; save half\",\r\n\t\tdescriptionFull : \"Until the spell ends, ice rimes your body, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 You are immune to cold damage and have resistance to fire damage.\" + \"\\n \" + \"\\u2022 You can move across difficult terrain created by ice or snow without spending extra movement.\" + \"\\n \" + \"\\u2022 The ground in a 10-foot radius around you is icy and is difficult terrain for creatures other than you. The radius moves with you.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cone of freezing wind extending from your outstretched hand in a direction you choose. Each creature in the cone must make a Constitution saving throw. A creature takes 4d6 cold damage on a failed save, or half as much damage on a successful one. A creature that fails its save against this effect has its speed halved until the start of your next turn.\"\r\n\t};\r\n\tSpellsList[\"investiture of stone\"] = {\r\n\t\tname : \"Investiture of Stone\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 159], [\"E\", 19]],\r\n\t\tlevel : 6,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Self\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"Nonmagical Bludg/Pierc/Slash resist.; 1 a 15-ft rad all crea save or prone; move through earth/stone\",\r\n\t\tdescriptionFull : \"Until the spell ends, bits of rock spread across your body, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks.\" + \"\\n \\u2022 \" + \"You can use your action to create a small earthquake on the ground in a 15-foot radius centered on you. Other creatures on that ground must succeed on a Dexterity saving throw or be knocked prone.\" + \"\\n \\u2022 \" + \"You can move across difficult terrain made of earth or stone without spending extra movement. You can move through solid earth or stone as if it was air and without destabilizing it, but you can't end your movement there. If you do so, you are ejected to the nearest unoccupied space, this spell ends, and you are stunned until the end of your next turn.\"\r\n\t};\r\n\tSpellsList[\"investiture of wind\"] = {\r\n\t\tname : \"Investiture of Wind\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\t\tlevel : 6,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Self\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tsave : \"Con\",\r\n\t\tdescription : \"Rngd wea atks dis. vs. me; fly 60 ft; 1 a 15-ft cube in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\t\tdescriptionShorter : \"Rngd wea atk dis; fly 60 ft; 1 a 15-ft cu in 60 ft all 2d10 Bludg. dmg, push 10 ft, save half\",\r\n\t\tdescriptionFull : \"Until the spell ends, wind whirls around you, and you gain the following benefits.\" + \"\\n \" + \"\\u2022 Ranged weapon attacks made against you have disadvantage on the attack roll.\" + \"\\n \" + \"\\u2022 You gain a flying speed of 60 feet. If you are still flying when the spell ends, you fall, unless you can somehow prevent it.\" + \"\\n \" + \"\\u2022 You can use your action to create a 15-foot cube of swirling wind centered on a point you can see within 60 feet of you. Each creature in that area must make a Constitution saving throw. A creature takes 2d10 bludgeoning damage on a failed save, or half as much damage on a successful one. If a Large or smaller creature fails the save, that creature is also pushed up to 10 feet away from the center of the cube.\"\r\n\t};\r\n\tSpellsList[\"maelstrom\"] = {\r\n\t\tname : \"Maelstrom\",\r\n\t\tclasses : [\"druid\"],\r\n\t\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\t\tlevel : 5,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"120 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"Paper or leaf in the shape of a funnel\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"5-ft deep 30-ft rad dif. ter.; all crea starting turn in save or 6d6 Bludg. dmg and pulled 10 ft to center\",\r\n\t\tdescriptionShorter : \"5-ft deep 30-ft rad dif. ter.; all start turn in save or 6d6 Bludg. dmg \\u0026 pull 10 ft to center\",\r\n\t\tdescriptionFull : \"A mass of 5-foot-deep water appears and swirls in a 30-foot radius centered on a point you can see within range. The point must be on ground or in a body of water. Until the spell ends, that area is difficult terrain, and any creature that starts its turn there must succeed on a Strength saving throw or take 6d6 bludgeoning damage and be pulled 10 feet toward the center.\"\r\n\t};\r\n\tSpellsList[\"magic stone\"] = {\r\n\t\tname : \"Magic Stone\",\r\n\t\tclasses : [\"artificer\", \"druid\", \"warlock\"],\r\n\t\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 bns\",\r\n\t\trange : \"Touch\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"1 min\",\r\n\t\tdescription : \"Imbue 3 pebbles for spell attacks, thrown 60 ft or with sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\t\tdescriptionShorter : \"Imbue 3 pebbles for spell atk, thrown 60 ft or sling, do 1d6+spellcasting mod Bludg. dmg\",\r\n\t\tdescriptionFull : \"You touch one to three pebbles and imbue them with magic. You or someone else can make a ranged spell attack with one of the pebbles by throwing it or hurling it with a sling. If thrown, it has a range of 60 feet. If someone else attacks with the pebble, that attacker adds your spellcasting ability modifier, not the attacker's, to the attack roll. On a hit, the target takes bludgeoning damage equal to 1d6 + your spellcasting ability modifier. Hit or miss, the spell then ends on the stone.\" + \"\\n   \" + \"If you cast this spell again, the spell ends early on any pebbles still affected by it.\"\r\n\t};\r\n\tSpellsList[\"maximilian's earthen grasp\"] = {\r\n\t\tname : \"Maximilian's Earthen Grasp\",\r\n\t\tnameShort : \"Max's Earthen Grasp\",\r\n\t\tnameAlt : \"Earthen Grasp\",\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\t\tlevel : 2,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A miniature hand sculpted from clay\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"Medium hand atks 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a hand moves/atks, releases; see B\",\r\n\t\tdescriptionShorter : \"Medium hand atk 1 crea: save or 2d6 Bludg. dmg \\u0026 restrained; 1 a move/atk, release; see B\",\r\n\t\tdescriptionFull : \"You choose a 5-foot-square unoccupied space on the ground that you can see within range. A Medium hand made from compacted soil rises there and reaches for one creature you can see within 5 feet of it. The target must make a Strength saving throw. On a failed save, the target takes 2d6 bludgeoning damage and is restrained for the spell's duration.\" + \"\\n   \" + \"As an action, you can cause the hand to crush the restrained target, which must make a Strength saving throw. The target takes 2d6 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"To break out, the restrained target can use its action to make a Strength check against your spell save DC. On a success, the target escapes and is no longer restrained by the hand.\" + \"\\n   \" + \"As an action, you can cause the hand to reach for a different creature or to move to a different unoccupied space within range. The hand releases a restrained target if you do either.\"\r\n\t};\r\n\tSpellsList[\"melf's minute meteors\"] = {\r\n\t\tname : \"Melf's Minute Meteors\",\r\n\t\tnameAlt : \"Minute Meteors\",\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 161], [\"E\", 20]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Self\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"Niter, sulfur, and pine tar formed into a bead\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"6+2/SL meteors; at casting/bns a send up to two 120 ft for 5-ft rad all crea 2d6 Fire dmg; save half\",\r\n\t\tdescriptionShorter : \"6+2/SL meteors; at cast/bns a send up to two 120 ft for 5-ft rad all 2d6 Fire dmg; save half\",\r\n\t\tdescriptionFull : \"You create six tiny meteors in your space. They float in the air and orbit you for the spell's duration. When you cast the spell-and as a bonus action on each of your turns thereafter-you can expend one or two of the meteors, sending them streaking toward a point or points you choose within 120 feet of you. Once a meteor reaches its destination or impacts against a solid surface, the meteor explodes. Each creature within 5 feet of the point where the meteor explodes must make a Dexterity saving throw. A creature takes 2d6 fire damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the number of meteors created increases by two for each slot level above 3rd.\"\r\n\t};\r\n\tSpellsList[\"mold earth\"] = {\r\n\t\tname : \"Mold Earth\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 162], [\"E\", 21]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"S\",\r\n\t\tduration : \"Instant. or 1 h\",\r\n\t\tdescription : \"5 cu ft earth; instant.: excavate; 1h: change to difficult or normal terrain, or change shape and color\",\r\n\t\tdescriptionFull : \"You choose a portion of dirt or stone that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 If you target an area of loose earth, you can instantaneously excavate it, move it along the ground, and deposit it up to 5 feet away. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause shapes, colors, or both to appear on the dirt or stone, spelling out words, creating images, or shaping patterns. The changes last for 1 hour.\" + \"\\n \" + \"\\u2022 If the dirt or stone you target is on the ground, you cause it to become difficult terrain. Alternatively, you can cause the ground to become normal terrain if it is already difficult terrain. This change lasts for 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n\t};\r\n\tSpellsList[\"primordial ward\"] = {\r\n\t\tname : \"Primordial Ward\",\r\n\t\tclasses : [\"druid\"],\r\n\t\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\t\tlevel : 6,\r\n\t\tschool : \"Abjur\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Self\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tdescription : \"Acid, Cold, Fire, Lightning, and Thunder resistance; use rea to gain 1 immunity for 1 rnd, spell ends\",\r\n\t\tdescriptionFull : \"You have resistance to acid, cold, fire, lightning, and thunder damage for the spell's duration.\" + \"\\n   \" + \"When you take damage of one of those types, you can use your reaction to gain immunity to that type of damage, including against the triggering damage. If you do so, the resistances end, and you have the immunity until the end of your next turn, at which time the spell ends.\"\r\n\t};\r\n\tSpellsList[\"pyrotechnics\"] = {\r\n\t\tname : \"Pyrotechnics\",\r\n\t\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 163], [\"E\", 21]],\r\n\t\tlevel : 2,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Con\",\r\n\t\tdescription : \"5 cu ft nonma. flame extinguish, or 10-ft rad all crea save or blind 1 rnd, or 20-ft rad hvy obsc. 1 min\",\r\n\t\tdescriptionFull : \"Choose an area of nonmagical flame that you can see and that fits within a 5-foot cube within range. You can extinguish the fire in that area, and you create either fireworks or smoke when you do so.\" + \"\\n   \" + toUni(\"Fireworks\") + \": The target explodes with a dazzling display of colors. Each creature within 10 feet of the target must succeed on a Constitution saving throw or become blinded until the end of your next turn.\" + \"\\n   \" + toUni(\"Smoke\") + \": Thick black smoke spreads out from the target in a 20-foot radius, moving around corners. The area of the smoke is heavily obscured. The smoke persists for 1 minute or until a strong wind disperses it.\"\r\n\t};\r\n\tSpellsList[\"shape water\"] = {\r\n\t\tname : \"Shape Water\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 164], [\"E\", 21], [\"W\", 172]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"S\",\r\n\t\tduration : \"Instant. or 1 h\",\r\n\t\tdescription : \"5 cu ft water; instant: move/change flow; 1h: simple shapes/change color or opacity/freeze\",\r\n\t\tdescriptionFull : \"You choose an area of water that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 You instantaneously move or otherwise change the flow of the water as you direct, up to 5 feet in any direction. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause the water to form into simple shapes and animate at your direction. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You change the water's color or opacity. The water must be changed in the same way throughout. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You freeze the water, provided that there are no creatures in it. The water unfreezes in 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n\t};\r\n\tSpellsList[\"skywrite\"] = {\r\n\t\tname : \"Skywrite\",\r\n\t\tclasses : [\"artificer\", \"bard\", \"druid\", \"wizard\"],\r\n\t\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\t\tritual : true,\r\n\t\tlevel : 2,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"Sight\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 h\",\r\n\t\tdescription : \"Write up to 10 words with clouds in a part of the sky I can see; strong wind can diperse the clouds\",\r\n\t\tdescriptionFull : \"You cause up to ten words to form in a part of the sky you can see. The words appear to be made of cloud and remain in place for the spell's duration. The words dissipate when the spell ends. A strong wind can disperse the clouds and end the spell early.\"\r\n\t};\r\n\tSpellsList[\"snilloc's snowball swarm\"] = {\r\n\t\tname : \"Snilloc's Snowball Swarm\",\r\n\t\tnameAlt : \"Snowball Swarm\",\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 165], [\"E\", 22]],\r\n\t\tlevel : 2,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"90 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A piece of ice or a small white rock chip\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"5-ft radius all creatures 3d6+1d6/SL Cold damage; save halves\",\r\n\t\tdescriptionFull : \"A flurry of magic snowballs erupts from a point you choose within range. Each creature in a 5-foot-radius sphere centered on that point must make a Dexterity saving throw. A creature takes 3d6 cold damage on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot level above 2nd.\"\r\n\t};\r\n\tSpellsList[\"storm sphere\"] = {\r\n\t\tname : \"Storm Sphere\",\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 166], [\"E\", 22]],\r\n\t\tlevel : 4,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"150 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"20-ft rad dif. ter., all now/end turn save or 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\t\tdescriptionShorter : \"20-ft rad dif. ter., all save/turn 2d6 Bludg. dmg; bns a 60 ft atk 4d6 Lightn. dmg; +1d6/SL\",\r\n\t\tdescriptionFull : \"A 20-foot-radius sphere of whirling air springs into existence centered on a point you choose within range. The sphere remains for the spell's duration. Each creature in the sphere when it appears or that ends its turn there must succeed on a Strength saving throw or take 2d6 bludgeoning damage. The sphere's space is difficult terrain.\" + \"\\n   \" + \"Until the spell ends, you can use a bonus action on each of your turns to cause a bolt of lightning to leap from the center of the sphere toward one creature you choose within 60 feet of the center. Make a ranged spell attack. You have advantage on the attack roll if the target is in the sphere. On a hit, the target takes 4d6 lightning damage.\" + \"\\n   \" + \"Creatures within 30 feet of the sphere have disadvantage on Wisdom (Perception) checks made to listen.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases for each of its effects by 1d6 for each slot level above 4th.\"\r\n\t};\r\n\tSpellsList[\"thunderclap\"] = {\r\n\t\tname : \"Thunderclap\",\r\n\t\tclasses : [\"artificer\", \"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"5 ft\",\r\n\t\tcomponents : \"S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Con\",\r\n\t\tdescription : \"100-ft rad audible; all crea but me in area save or 1d6 Thunder dmg; +1d6 at CL 5, 11, and 17\",\r\n\t\tdescriptionCantripDie : \"100-ft rad audible; all crea but me in area save or `CD`d6 Thunder dmg\",\r\n\t\tdescriptionFull : \"You create a burst of thunderous sound that can be heard up to 100 feet away. Each creature within range, other than you, must succeed on a Constitution saving throw or take 1d6 thunder damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n\t};\r\n\tSpellsList[\"tidal wave\"] = {\r\n\t\tname : \"Tidal Wave\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"120 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A drop of water\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"30-ft x 10-ft, 10-ft high all crea 4d8 Bludg. dmg and prone; save halves not prone; extinguish flames\",\r\n\t\tdescriptionFull : \"You conjure up a wave of water that crashes down on an area within range. The area can be up to 30 feet long, up to 10 feet wide, and up to 10 feet tall. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 4d8 bludgeoning damage and is knocked prone. On a successful save, a creature takes half as much damage and isn't knocked prone. The water then spreads out across the ground in all directions, extinguishing unprotected flames in its area and within 30 feet of it, and then it vanishes.\"\r\n\t};\r\n\tSpellsList[\"transmute rock\"] = {\r\n\t\tname : \"Transmute Rock\",\r\n\t\tclasses : [\"artificer\", \"druid\", \"wizard\"],\r\n\t\tsource : [[\"X\", 169], [\"E\", 22]],\r\n\t\tlevel : 5,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"120 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"Clay and water\",\r\n\t\tduration : \"Until dispelled\",\r\n\t\tdescription : \"40 cu ft stone to mud or mud to stone; mud and stone restrains; mud from ceiling falls; see book\",\r\n\t\tdescriptionFull : \"You choose an area of stone or mud that you can see that fits within a 40-foot cube and is within range, and choose one of the following effects.\" + \"\\n   \" + toUni(\"Transmute Rock to Mud\") + \": Nonmagical rock of any sort in the area becomes an equal volume of thick, flowing mud that remains for the spell's duration.\" + \"\\n   \" + \"The ground in the spell's area becomes muddy enough that creatures can sink into it. Each foot that a creature moves through the mud costs 4 feet of movement, and any creature on the ground when you cast the spell must make a Strength saving throw. A creature must also make the saving throw when it moves into the area for the first time on a turn or ends its turn there. On a failed save, a creature sinks into the mud and is restrained, though it can use an action to end the restrained condition on itself by pulling itself free of the mud.\" + \"\\n   \" + \"If you cast the spell on a ceiling, the mud falls. Any creature under the mud when it falls must make a Dexterity saving throw. A creature takes 4d8 bludgeoning damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + toUni(\"Transmute Mud to Rock\") + \": Nonmagical mud or quicksand in the area no more than 10 feet deep transforms into soft stone for the spell's duration. Any creature in the mud when it transforms must make a Dexterity saving throw. On a successful save, a creature is shunted safely to the surface in an unoccupied space. On a failed save, a creature becomes restrained by the rock. A restrained creature, or another creature within reach, can use an action to try to break the rock by succeeding on a DC 20 Strength check or by dealing damage to it. The rock has AC 15 and 25 hit points, and it is immune to poison and psychic damage.\"\r\n\t};\r\n\tSpellsList[\"vitriolic sphere\"] = {\r\n\t\tname : \"Vitriolic Sphere\",\r\n\t\tclasses : [\"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\t\tlevel : 4,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"150 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A drop of giant slug bile\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn end; save half \\u0026 no dmg next turn\",\r\n\t\tdescriptionShorter : \"20-ft rad all crea 10d4+2d4/SL Acid dmg, +5d4 dmg next turn; save half \\u0026 no next turn\",\r\n\t\tdescriptionFull : \"You point at a location within range, and a glowing, 1-foot-diameter ball of emerald acid streaks there and explodes in a 20-foot-radius sphere. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 10d4 acid damage and another 5d4 acid damage at the end of its next turn. On a successful save, a creature takes half the initial damage and no damage at the end of its next turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the initial damage increases by 2d4 for each slot level above 4th.\",\r\n\t\tdynamicDamageBonus : {\r\n\t\t\tmultipleDmgMoments : false,\r\n\t\t\textraDmgGroupsSameType : /((?:\\+?\\d+d?\\d*)+)( dmg next turn)/i\r\n\t\t}\r\n\t};\r\n\tSpellsList[\"wall of sand\"] = {\r\n\t\tname : \"Wall of Sand\",\r\n\t\tclasses : [\"wizard\"],\r\n\t\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"90 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A handful of sand\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tdescription : \"30\\xD710\\xD710ft (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\t\tdescriptionMetric : \"9\\xD73\\xD73m (l\\xD7w\\xD7h) wall on the ground; blocks line of sight; blinded while inside; 1/3 move\",\r\n\t\tdescriptionFull : \"You conjure up a wall of swirling sand on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 10 feet thick, and it vanishes when the spell ends. It blocks line of sight but not movement. A creature is blinded while in the wall's space and must spend 3 feet of movement for every 1 foot it moves there.\"\r\n\t};\r\n\tSpellsList[\"wall of water\"] = {\r\n\t\tname : \"Wall of Water\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 170], [\"E\", 23], [\"V\", 116], [\"MOT\", 27]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A drop of water\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tdescription : \"30\\xD71\\xD710ft (l\\xD7w\\xD7h) or 20-ft rad 20-ft high; dif. ter.; range wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\t\tdescriptionMetric : \"9\\xD70,3\\xD73m (l\\xD7w\\xD7h) or 6-m rad 6-m high; dif. ter.; ranged wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\t\tdescriptionFull : \"You conjure up a wall of water on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 1 foot thick, or you can make a ringed wall up to 20 feet in diameter, 20 feet high, and 1 foot thick. The wall vanishes when the spell ends. The wall's space is difficult terrain.\" + \"\\n   \" + \"Any ranged weapon attack that enters the wall's space has disadvantage on the attack roll, and fire damage is halved if the fire effect passes through the wall to reach its target. Spells that deal cold damage that pass through the wall cause the area of the wall they pass through to freeze solid (at least a 5-foot square section is frozen). Each 5-foot-square frozen section has AC 5 and 15 hit points. Reducing a frozen section to 0 hit points destroys it. When a section is destroyed, the wall's water doesn't fill it.\"\r\n\t};\r\n\tSpellsList[\"warding wind\"] = {\r\n\t\tname : \"Warding Wind\",\r\n\t\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\t\tlevel : 2,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"S:10-ft rad\",\r\n\t\tcomponents : \"V\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tdescription : \"Strong (20 mph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\t\tdescriptionMetric : \"Strong (32 kph) wind around me deafens/extinguishes unprotected flames/dif. ter./ranged wea dis.\",\r\n\t\tdescriptionFull : \"A strong wind (20 miles per hour) blows around you in a 10-foot radius and moves with you, remaining centered on you. The wind lasts for the spell's duration.\\n   The wind has the following effects.\"+\r\n\t\t\"\\n \\u2022 It deafens you and other creatures in its area.\"+\r\n\t\t\"\\n \\u2022 It extinguishes unprotected flames in its area that are torch-sized or smaller.\"+\r\n\t\t\"\\n \\u2022 The area is difficult terrain for creatures other than you.\"+\r\n\t\t\"\\n \\u2022 The attack rolls of ranged weapon attacks have disadvantage if they pass in or out of the wind.\"+\r\n\t\t\"\\n \\u2022 It hedges out vapor, gas, and fog that can be dispersed by strong wind.\"\r\n\t};\r\n\tSpellsList[\"watery sphere\"] = {\r\n\t\tname : \"Watery Sphere\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 170], [\"E\", 23]],\r\n\t\tlevel : 4,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"90 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A droplet of water\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"5-ft rad all crea < Huge save or restrained; on save ejected; save each rnd; 1 a move sphere 30 ft\",\r\n\t\tdescriptionFull : \"You conjure up a sphere of water with a 5-foot radius at a point you can see within range. The sphere can hover but no more than 10 feet off the ground. The sphere remains for the spell's duration.\" + \"\\n   \" + \"Any creature in the sphere's space must make a Strength saving throw. On a successful save, a creature is ejected from that space to the nearest unoccupied space of the creature's choice outside the sphere. A Huge or larger creature succeeds on the saving throw automatically, and a Large or smaller creature can choose to fail it. On a failed save, a creature is restrained by the sphere and is engulfed by the water. At the end of each of its turns, a restrained target can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"The sphere can restrain as many as four Medium or smaller creatures or one Large creature. If the sphere restrains a creature that causes it to exceed this capacity, a random creature that was already restrained by the sphere falls out of it and lands prone in a space within 5 feet of it.\" + \"\\n   \" + \"As an action, you can move the sphere up to 30 feet in a straight line. If it moves over a pit, a cliff, or other drop-off, it safely descends until it is hovering 10 feet above the ground. Any creature restrained by the sphere moves with it. You can ram the sphere into creatures, forcing them to make the saving throw.\" + \"\\n   \" + \"When the spell ends, the sphere falls to the ground and extinguishes all normal flames within 30 feet of it. Any creature restrained by the sphere is knocked prone in the space where it falls. The water then vanishes.\"\r\n\t};\r\n\tSpellsList[\"whirlwind\"] = {\r\n\t\tname : \"Whirlwind\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 171], [\"E\", 24]],\r\n\t\tlevel : 7,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"300 ft\",\r\n\t\tcomponents : \"V,M\",\r\n\t\tcompMaterial : \"A piece of straw\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"10-ft rad 30-ft high all crea 10d6 Bludg. dmg; save halves; restrains; 1 a move 30 ft; see book\",\r\n\t\tdescriptionFull : \"A whirlwind howls down to a point that you can see on the ground within range. The whirlwind is a 10-foot-radius, 30-foot-high cylinder centered on that point. Until the spell ends, you can use your action to move the whirlwind up to 30 feet in any direction along the ground. The whirlwind sucks up any Medium or smaller objects that aren't secured to anything and that aren't worn or carried by anyone.\" + \"\\n   \" + \"A creature must make a Dexterity saving throw the first time on a turn that it enters the whirlwind or that the whirlwind enters its space, including when the whirlwind first appears. A creature takes 10d6 bludgeoning damage on a failed save, or half as much damage on a successful one. In addition, a Large or smaller creature that fails the save must succeed on a Strength saving throw or become restrained in the whirlwind until the spell ends. When a creature starts its turn restrained by the whirlwind, the creature is pulled 5 feet higher inside it, unless the creature is at the top. A restrained creature moves with the whirlwind and falls when the spell ends, unless the creature has some means to stay aloft.\" + \"\\n   \" + \"A restrained creature can use an action to make a Strength or Dexterity check against your spell save DC. If successful, the creature is no longer restrained by the whirlwind and is hurled 3d6 \\xD7 10 feet away from it in a random direction.\"\r\n\t};\r\n}; // dupl_end\r\n\r\n// Then add the new spells from XGtE (contains contributions by SoilentBrad)\r\nSpellsList[\"catnap\"] = {\r\n\tname : \"Catnap\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A pinch of sand\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"3+1/SL willing crea unconscious for 10 min to gain benefits of short rest; Ends if dmg or 1 a to wake\",\r\n\tdescriptionFull : \"You make a calming gesture, and up to three willing creatures of your choice that you can see within range fall unconscious for the spell's duration. The spell ends on a target early if it takes damage or someone uses an action to shake or slap it awake. If a target remains unconscious for the full duration, that target gains the benefit of a short rest, and it can't be affected by this spell again until it finishes a long rest.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional willing creature for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"cause fear\"] = {\r\n\tname : \"Cause Fear\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1+1/SL crea (not construct/undead), each max 30 ft apart, save or frightened; save end of each turn\",\r\n\tdescriptionFull : \"You awaken the sense of mortality in one creature you can see within range. A construct or an undead is immune to this effect. The target must succeed on a Wisdom saving throw or become frightened of you until the spell ends. The frightened target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, you can target one additional creature for each slot level above 1st. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"ceremony\"] = {\r\n\tname : \"Ceremony\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"X\", 151]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"25 gp worth of powdered silver, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Perform religious ceremony on target(s) within 10 ft throughout the casting; see book (25gp cons.)\",\r\n\tdescriptionFull : \"You perform a special religious ceremony that is infused with magic. When you cast the spell, choose one of the following rites, the target of which must be within 10 feet of you throughout the casting.\" + \"\\n   \" + toUni(\"Atonement\") + \": You touch one willing creature whose alignment has changed, and you make a DC 20 Wisdom (Insight) check. On a successful check, you restore the target to its original alignment.\" + \"\\n   \" + toUni(\"Bless Water\") + \": You touch one vial of water and cause it to become holy water.\" + \"\\n   \" + toUni(\"Coming of Age\") + \": You touch one humanoid who is a young adult. For the next 24 hours, whenever the target makes an ability check, it can roll a d4 and add the number rolled to the ability check. A creature can benefit from this rite only once.\" + \"\\n   \" + toUni(\"Dedication\") + \": You touch one humanoid who wishes to be dedicated to your god's service. For the next 24 hours, whenever the target makes a saving throw, it can roll a d4 and add the number rolled to the save. A creature can benefit from this rite only once.\" + \"\\n   \" + toUni(\"Funeral Rite\") + \": You touch one corpse, and for the next 7 days, the target can't become undead by any means short of a wish spell.\" + \"\\n   \" + toUni(\"Wedding\") + \": You touch adult humanoids willing to be bonded together in marriage. For the next 7 days, each target gains a +2 bonus to AC while they are within 30 feet of each other. A creature can benefit from this rite again only if widowed.\"\r\n};\r\nSpellsList[\"chaos bolt\"] = {\r\n\tname : \"Chaos Bolt\",\r\n\tclasses : [\"sorcerer\"],\r\n\tsource : [[\"X\", 151], [\"G\", 67]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft\",\r\n\tdescriptionShorter : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set type, see B; double on d8s: new atk vs. crea in 30 ft\",\r\n\tdescriptionFull : \"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 + 1d6 damage. Choose one of the d8s. The number rolled on that die determines the attack's damage type, as shown below.\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Damage Type\") + \"\\n  1\\tAcid\" + \"\\n  2\\tCold\" + \"\\n  3\\tFire\" + \"\\n  4\\tForce\" + \"\\n  5\\tLightning\" + \"\\n  6\\tPoison\" + \"\\n  7\\tPsychic\" + \"\\n  8\\tThunder\" + \"\\n\\n   \" + \"If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\" + \"\\n   \" + \"A creature can be targeted only once by each casting of this spell.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, each target takes 1d6 extra damage of the type rolled for each slot level above 1st.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"force\", \"lightning\", \"poison\", \"psychic\", \"thunder\"],\r\n\t\t\tinDescriptionAs : ''\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"charm monster\"] = {\r\n\tname : \"Charm Monster\",\r\n\tclasses : [\"bard\", \"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 151]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1+1/SL creatures, each max 30 ft apart, save or charmed; adv. on save if me/ally is fighting it\",\r\n\tdescriptionFull : \"You attempt to charm a creature you can see within range. It must make a Wisdom saving throw, and it does so with advantage if you or your companions are fighting it. If it fails the saving throw, it is charmed by you until the spell ends or until you or your companions do anything harmful to it. The charmed creature is friendly to you. When the spell ends, the creature knows it was charmed by you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"create homunculus\"] = {\r\n\tname : \"Create Homunculus\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 152]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Clay, ash, and mandrake root, all of which the spell consumes, and a jewel-encrusted dagger worth at least 1,000 gp\", \r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I take 2d4 piercing dmg to create a homunculus as my faithful companion; see book (1000gp)\",\r\n\tdescriptionFull : \"While speaking an intricate incantation, you cut yourself with a jewel-encrusted dagger, taking 2d4 piercing damage that can't be reduced in any way. You then drip your blood on the spell's other components and touch them, transforming them into a special construct called a homunculus.\" + \"\\n   \" + \"The statistics of the homunculus are in the Monster Manual. It is your faithful companion, and it dies if you die. Whenever you finish a long rest, you can spend up to half your Hit Dice if the homunculus is on the same plane of existence as you. When you do so, roll each die and add your Constitution modifier to it. Your hit point maximum is reduced by the total, and the homunculus's hit point maximum and current hit points are both increased by it. This process can reduce you to no lower than 1 hit point, and the change to your and the homunculus's hit points ends when you finish your next long rest. The reduction to your hit point maximum can't be removed by any means before then, except by the homunculus's death.\" + \"\\n   \" + \"You can have only one homunculus at a time. If you cast this spell while your homunculus lives, the spell fails.\",\r\n\tdynamicDamageBonus : { doNotProcess : true } // You don't want to do yourself more damage do you?\r\n};\r\nSpellsList[\"crown of stars\"] = {\r\n\tname : \"Crown of Stars\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 152]],\r\n\tlevel : 7,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"7+2/SL motes shed 30-ft light; bonus action to fire one as 120 ft ranged atk for 4d12 Radiant dmg\",\r\n\tdescriptionShorter : \"7+2/SL motes shed 30-ft light; bns a to fire one as 120 ft ranged atk for 4d12 Radiant dmg\",\r\n\tdescriptionFull : \"Seven star-like motes of light appear and orbit your head until the spell ends. You can use a bonus action to send one of the motes streaking toward one creature or object within 120 feet of you. When you do so, make a ranged spell attack. On a hit, the target takes 4d12 radiant damage. Whether you hit or miss, the mote is expended. The spell ends early if you expend the last mote.\" + \"\\n   \" + \"If you have four or more motes remaining, they shed bright light in a 30-foot radius and dim light for an additional 30 feet. If you have one to three motes remaining, they shed dim light in a 30-foot radius.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 8th level or higher, the number of motes created increases by two for each slot level above 7th.\"\r\n};\r\nSpellsList[\"danse macabre\"] = {\r\n\tname : \"Danse Macabre\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 153]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"5+2/SL small/medium corpses as zombie/skeleton; spellc. mod to atk/dmg; bns a command in 60 ft\",\r\n\tdescriptionFull : \"Threads of dark power leap from your fingers to pierce up to five Small or Medium corpses you can see within range. Each corpse immediately stands up and becomes undead. You decide whether it is a zombie or a skeleton (the statistics for zombies and skeletons are in the Monster Manual), and it gains a bonus to its attack and damage rolls equal to your spellcasting ability modifier.\" + \"\\n   \" + \"You can use a bonus action to mentally command the creatures you make with this spell, issuing the same command to all of them. To receive the command, a creature must be within 60 feet of you. You decide what action the creatures will take and where they will move during their next turn, or you can issue a general command, such as to guard a chamber or passageway against your foes. If you issue no commands, the creatures do nothing except defend themselves against hostile creatures. Once given an order, the creatures continue to follow it until their task is complete.\" + \"\\n   \" + \"The creatures are under your control until the spell ends, after which they become inanimate once more\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, you animate up to two additional corpses for each slot level above 5th.\"\r\n};\r\nSpellsList[\"dawn\"] = {\r\n\tname : \"Dawn\",\r\n\tclasses : [\"cleric\", \"wizard\"],\r\n\tsource : [[\"X\", 153]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A sunburst pendant worth at least 100 gp\", \r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft rad 40-ft high all crea 4d10 Radiant dmg at cast/end turn; bns a move it 60 ft (100gp)\",\r\n\tdescriptionFull : \"The light of dawn shines down on a location you specify within range. Until the spell ends, a 30-foot-radius, 40-foot-high cylinder of bright light glimmers there. This light is sunlight.\" + \"\\n   \" + \"When the cylinder appears, each creature in it must make a Constitution saving throw, taking 4d10 radiant damage on a failed save, or half as much damage on a successful one. A creature must also make this saving throw whenever it ends its turn in the cylinder.\" + \"\\n   \" + \"If you're within 60 feet of the cylinder, you can move it up to 60 feet as a bonus action on your turn.\"\r\n};\r\nSpellsList[\"dragon's breath\"] = {\r\n\tname : \"Dragon's Breath\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 154]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A hot pepper\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 willing crea: 1 a breathe 15-ft cone all 3d6+1d6/SL Acid/Cold/Fire/Lightn./Poison dmg; save half\",\r\n\tdescriptionShorter : \"1 willing crea: 1 a 15-ft cone 3d6+1d6/SL Acid/Cold/Fire/Lightn/Poison dmg; save half\",\r\n\tdescriptionFull : \"You touch one willing creature and imbue it with the power to spew magical energy from its mouth, provided it has one. Choose acid, cold, fire, lightning, or poison. Until the spell ends, the creature can use an action to exhale energy of the chosen type in a 15-foot cone. Each creature in that area must make a Dexterity saving throw, taking 3d6 damage of the chosen type on a failed save, or half as much damage on a successful one.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot level above 2nd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"lightning\", \"poison\"],\r\n\t\t\tinDescriptionAs : \"Acid/Cold/Fire/Lightn.?/Poison\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"druid grove\"] = {\r\n\tname : \"Druid Grove\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 154]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"10 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Mistletoe, which the spell consumes, that was harvested with a golden sickle under the light of a full moon\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Protect 30-ft to 90-ft cube outdoors or underground; see book for effects\",\r\n\tdescriptionFull : \"You invoke the spirits of nature to protect an area outdoors or underground. The area can be as small as a 30-foot cube or as large as a 90-foot cube. Buildings and other structures are excluded from the affected area. If you cast this spell in the same area every day for a year, the spell lasts until dispelled.\" + \"\\n   \" + \"The spell creates the following effects within the area. When you cast this spell, you can specify creatures as friends who are immune to the effects. You can also specify a password that, when spoken aloud, makes the speaker immune to these effects.\" + \"\\n   \" + \"The entire warded area radiates magic. A dispel magic cast on the area, if successful, removes only one of the following effects, not the entire area. That spell's caster chooses which effect to end. Only when all its effects are gone is this spell dispelled.\" + \"\\n   \" + toUni(\"Solid Fog\") + \": You can fill any number of 5-foot squares on the ground with thick fog, making them heavily obscured. The fog reaches 10 feet high. In addition, every foot of movement through the fog costs 2 extra feet. To a creature immune to this effect, the fog obscures nothing and looks like soft mist, with motes of green light floating in the air.\" + \"\\n   \" + toUni(\"Grasping Undergrowth\") + \": You can fill any number of 5-foot squares on the ground that aren't filled with fog with grasping weeds and vines, as if they were affected by an entangle spell. To a creature immune to this effect, the weeds and vines feel soft and reshape themselves to serve as temporary seats or beds.\" + \"\\n   \" + toUni(\"Grove Guardians\") + \": You can animate up to four trees in the area, causing them to uproot themselves from the ground. These trees have the same statistics as an awakened tree, which appears in the Monster Manual, except they can't speak, and their bark is covered with druidic symbols. If any creature not immune to this effect enters the warded area, the grove guardians fight until they have driven off or slain the intruders. The grove guardians also obey your spoken commands (no action required by you) that you issue while in the area. If you don't give them commands and no intruders are present, the grove guardians do nothing. The grove guardians can't leave the warded area. When the spell ends, the magic animating them disappears, and the trees take root again if possible.\" + \"\\n   \" + toUni(\"Additional Spell Effects\") + \": You can place your choice of one of the following magical effects within the warded area:\" + \"\\n \\u2022 \" + \"A constant gust of wind in two locations of your choice\" + \"\\n \\u2022 \" + \"Spike growth in one location of your choice\" + \"\\n \\u2022 \" + \"Wind wall in two locations of your choice\" + \"\\n   \" + \"To a creature immune to this effect, the winds are a fragrant, gentle breeze, and the area of spike growth is harmless.\"\r\n};\r\nSpellsList[\"enemies abound\"] = {\r\n\tname : \"Enemies Abound\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or regard all creatures it can see as enemies, random targeting; save when damaged to end\",\r\n\tdescriptionFull : \"You reach into the mind of one creature you can see and force it to make an Intelligence saving throw. A creature automatically succeeds if it is immune to being frightened. On a failed save, the target loses the ability to distinguish friend from foe, regarding all creatures it can see as enemies until the spell ends. Each time the target takes damage, it can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"Whenever the affected creature chooses another creature as a target, it must choose the target at random from among the creatures it can see within range of the attack, spell, or other ability it's using. If an enemy provokes an opportunity attack from the affected creature, the creature must make that attack if it is able to.\"\r\n};\r\nSpellsList[\"enervation\"] = {\r\n\tname : \"Enervation\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 2d8+1d8/SL Necrotic dmg, saved: ends; fail: +2d8 dmg and Act to repeat; I heal half; see B\",\r\n\tdescriptionShorter : \"1 crea 2d8+1d8/SL Necro. dmg, save: ends; fail: +2d8 dmg & Act repeat; I heal half; see B\",\r\n\tdescriptionFull : \"A tendril of inky darkness reaches out from you, touching a creature you can see within range to drain life from it. The target must make a Dexterity saving throw. On a successful save, the target takes 2d8 necrotic damage, and the spell ends. On a failed save, the target takes 4d8 necrotic damage, and until the spell ends, you can use your action on each of your turns to automatically deal 4d8 necrotic damage to the target. The spell ends if you use your action to do anything else, if the target is ever outside the spell's range, or if the target has total cover from you.\" + \"\\n   \" + \"Whenever the spell deals damage to a target, you regain hit points equal to half the amount of necrotic damage the target takes.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the damage increases by 1d8 for each slot level above 5th.\",\r\n};\r\nSpellsList[\"far step\"] = {\r\n\tname : \"Far Step\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 155]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"At casting and as bonus action for duration, I can teleport 60 ft to a space I can see\",\r\n\tdescriptionFull : \"You teleport up to 60 feet to an unoccupied space you can see. On each of your turns before the spell ends, you can use a bonus action to teleport in this way again.\"\r\n};\r\nSpellsList[\"find greater steed\"] = {\r\n\tname : \"Find Greater Steed\",\r\n\t\tclasses : [\"paladin\"],\r\n\t\tsource : [[\"X\", 156]],\r\n\t\tlevel : 4,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"10 min\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tdescription : \"Gain the services of a steed; can communicate with it telepathically; can share spells with it; see book\",\r\n\t\tdescriptionFull : \"You summon a spirit that assumes the form of a loyal, majestic mount. Appearing in an unoccupied space within range, the spirit takes on a form you choose: a griffon, a pegasus, a peryton, a dire wolf, a rhinoceros, or a saber-toothed tiger. The creature has the statistics provided in the Monster Manual for the chosen form, though it is a celestial, a fey, or a fiend (your choice) instead of its normal creature type. Additionally, if it has an Intelligence score of 5 or lower, its Intelligence becomes 6, and it gains the ability to understand one language of your choice that you speak.\" + \"\\n   \" + \"You control the mount in combat. While the mount is within 1 mile of you, you can communicate with it telepathically. While mounted on it, you can make any spell you cast that targets only you also target the mount.\" + \"\\n   \" + \"The mount disappears temporarily when it drops to 0 hit points or when you dismiss it as an action. Casting this spell again re-summons the bonded mount, with all its hit points restored and any conditions removed.\" + \"\\n   \" + \"You can't have more than one mount bonded by this spell or find steed at the same time. As an action, you can release a mount from its bond, causing it to disappear permanently.\" + \"\\n   \" + \"Whenever the mount disappears, it leaves behind any objects it was wearing or carrying.\"\r\n};\r\nSpellsList[\"guardian of nature\"] = {\r\n\tname : \"Guardian of Nature\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I transform into a Primal Beast (offensive bonuses) or a Great Tree (defensive bonuses); see book\",\r\n\tdescriptionFull : \"A nature spirit answers your call and transforms you into a powerful guardian. The transformation lasts until the spell ends. You choose one of the following forms to assume: Primal Beast or Great Tree.\" + \"\\n\\n\" + toUni(\"Primal Beast\") + \": Bestial fur covers your body, your facial features become feral, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"Your walking speed increases by 10 feet.\" + \"\\n \\u2022 \" + \"You gain darkvision with a range of 120 feet.\" + \"\\n \\u2022 \" + \"You make Strength-based attack rolls with advantage.\" + \"\\n \\u2022 \" + \"Your melee weapon attacks deal an extra 1d6 force damage on a hit.\" + \"\\n\\n\" + toUni(\"Great Tree\") + \": Your skin appears barky, leaves sprout from your hair, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You gain 10 temporary hit points.\" + \"\\n \\u2022 \" + \"You make Constitution saving throws with advantage.\" + \"\\n \\u2022 \" + \"You make Dexterity- and Wisdom-based attack rolls with advantage.\" + \"\\n \\u2022 \" + \"While you are on the ground, the ground within 15 feet of you is difficult terrain for your enemies.\"\r\n};\r\nSpellsList[\"healing spirit\"] = { // limited usages (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Healing Spirit\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"5-ft cube; any living crea I see start/enter heals 1d6+1d6/SL HP; 1+spell mod uses; bns a move it 30 ft\",\r\n\tdescriptionShorter : \"5-ft cube; any living start/enter heals 1d6+1d6/SL HP; 1+spell mod uses; bns a move 30 ft\",\r\n\tdescriptionFull : \"You call forth a nature spirit to soothe the wounded. The intangible spirit appears in a space that is a 5-foot cube you can see within range. The spirit looks like a transparent beast or fey (your choice).\" + \"\\n   \" + \"Until the spell ends, whenever you or a creature you can see moves into the spirit's space for the first time on a turn or starts its turn there, you can cause the spirit to restore 1d6 hit points to that creature (no action required). The spirit can't heal constructs or undead. The spirit can heal a number of times equal to 1 + your spellcasting ability modifier (minimum of twice). After healing that number of times, the spirit disappears.\" + \"\\n   \" + \"As a bonus action on your turn, you can move the spirit up to 30 feet to a space you can see.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the healing increases by 1d6 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"holy weapon\"] = { \r\n\tname : \"Holy Weapon\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Wea +2d8 Radiant dmg; bns a end spell: 30-ft rad all crea 4d8 Radiant dmg, blind; save half, no blind\",\r\n\tdescriptionShorter : \"wea +2d8 Radiant dmg; bns a end: 30-ft rad all 4d8 Radiant dmg, blind; save half, no blind\",\r\n\tdescriptionFull : \"You imbue a weapon you touch with holy power. Until the spell ends, the weapon emits bright light in a 30-foot radius and dim light for an additional 30 feet. In addition, weapon attacks made with it deal an extra 2d8 radiant damage on a hit. If the weapon isn't already a magic weapon, it becomes one for the duration.\" + \"\\n   \" + \"As a bonus action on your turn, you can dismiss this spell and cause the weapon to emit a burst of radiance. Each creature of your choice that you can see within 30 feet of the weapon must make a Constitution saving throw. On a failed save, a creature takes 4d8 radiant damage, and it is blinded for 1 minute. On a successful save, a creature takes half as much damage and isn't blinded. At the end of each of its turns, a blinded creature can make a Constitution saving throw, ending the effect on itself on a success.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\tskipDmgGroupIfNotMultiple : /(wea .*?radiant dmg.*?)/i\r\n\t}\r\n};\r\nSpellsList[\"illusory dragon\"] = {\r\n\tname : \"Illusory Dragon\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 157]],\r\n\tlevel : 8,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"W/I\",\r\n\tdescription : \"Huge shadowy dragon; see: Wis save or fright.; bns a move 60 ft \\u0026 breath wea 7d6 dmg; Int save half\",\r\n\tdescriptionShorter : \"Huge illus.; see: Wis save or fright.; bns a move 60 ft \\u0026 breath wea 7d6 dmg; Int save half\",\r\n\tdescriptionFull : \"By gathering threads of shadow material from the Shadowfell, you create a Huge shadowy dragon in an unoccupied space that you can see within range. The illusion lasts for the spell's duration and occupies its space, as if it were a creature.\" + \"\\n   \" + \"When the illusion appears, any of your enemies that can see it must succeed on a Wisdom saving throw or become frightened of it for 1 minute. If a frightened creature ends its turn in a location where it doesn't have line of sight to the illusion, it can repeat the saving throw, ending the effect on itself on a success.\" + \"\\n   \" + \"As a bonus action on your turn, you can move the illusion up to 60 feet. At any point during its movement, you can cause it to exhale a blast of energy in a 60-foot cone originating from its space. When you create the dragon, choose a damage type: acid, cold, fire, lightning, necrotic, or poison. Each creature in the cone must make an Intelligence saving throw, taking 7d6 damage of the chosen damage type on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"The illusion is tangible because of the shadow stuff used to create it, but attacks miss it automatically, it succeeds on all saving throws, and it is immune to all damage and conditions. A creature that uses an action to examine the dragon can determine that it is an illusion by succeeding on an Intelligence (Investigation) check against your spell save DC. If a creature discerns the illusion for what it is, the creature can see through it and has advantage on saving throws against its breath.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"radiant\", \"necrotic\"],\r\n\t\t\tinDescriptionAs : ''\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"infernal calling\"] = {\r\n\tname : \"Infernal Calling\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 158]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A ruby worth at least 999 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 1 devil of CR 6+1/SL; hostile to all, obeys my command if to its liking or Cha check; see B\",\r\n\tdescriptionFull : \"Uttering a dark incantation, you summon a devil from the Nine Hells. You choose the devil's type, which must be one of challenge rating 6 or lower, such as a barbed devil or a bearded devil. The devil appears in an unoccupied space that you can see within range. The devil disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The devil is unfriendly toward you and your companions. Roll initiative for the devil, which has its own turns. It is under the Dungeon Master's control and acts according to its nature on each of its turns, which might result in its attacking you if it thinks it can prevail, or trying to tempt you to undertake an evil act in exchange for limited service. The DM has the creature's statistics.\" + \"\\n   \" + \"On each of your turns, you can try to issue a verbal command to the devil (no action required by you). It obeys the command if the likely outcome is in accordance with its desires, especially if the result would draw you toward evil. Otherwise, you must make a Charisma (Deception, Intimidation, or Persuasion) check contested by its Wisdom (Insight) check. You make the check with advantage if you say the devil's true name. If your check fails, the devil becomes immune to your verbal commands for the duration of the spell, though it can still carry out your commands if it chooses. If your check succeeds, the devil carries out your command \\u2014 such as “attack my enemies,” “explore the room ahead,” or “bear this message to the queen” \\u2014 until it completes the activity, at which point it returns to you to report having done so.\" + \"\\n   \" + \"If your concentration ends before the spell reaches its full duration, the devil doesn't disappear if it has become immune to your verbal commands. Instead, it acts in whatever manner it chooses for 3d6 minutes, and then it disappears.\" + \"\\n   \" + \"If you possess an individual devil's talisman, you can summon that devil if it is of the appropriate challenge rating plus 1, and it obeys all your commands, with no Charisma checks required.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the challenge rating increases by 1 for each slot level above 5th.\"\r\n};\r\nSpellsList[\"infestation\"] = {\r\n\tname : \"Infestation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 158]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A living flea\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Poison dmg and moved 5 ft in random direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Poison dmg and moved 5 ft in random direction\",\r\n\tdescriptionFull : \"You cause a cloud of mites, fleas, and other parasites to appear momentarily on one creature you can see within range. The target must succeed on a Constitution saving throw, or it takes 1d6 poison damage and moves 5 feet in a random direction if it can move and its speed is at least 5 feet. Roll a d4 for the direction:\" + \"\\n\\n\" + toUni(\"d4\") + \"\\t\" + toUni(\"Direction\") + \"\\n  1\\tNorth\" + \"\\n  2\\tSouth\" + \"\\n  3\\tEast\" + \"\\n  4\\tWest\" + \"\\n\\n   \" + \"This movement doesn't provoke opportunity attacks, and if the direction rolled is blocked, the target doesn't move.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"invulnerability\"] = {\r\n\tname : \"Invulnerability\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 9,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A small piece of adamantine worth at least 500 gp, which the spell consumes\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Immune to all damage until the spell ends (500gp cons.)\",\r\n\tdescriptionFull : \"You are immune to all damage until the spell ends.\"\r\n};\r\nSpellsList[\"life transference\"] = { // can't reduce damage taken (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Life Transference\",\r\n\tclasses : [\"cleric\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I take 4d8+1d8/SL Necrotic dmg (in full) and 1 crea in range I can see heals twice that in HP\",\r\n\tdescriptionFull : \"You sacrifice some of your health to mend another creature's injuries. You take 4d8 necrotic damage, which can't be reduced in any way, and one creature of your choice that you can see within range regains a number of hit points equal to twice the necrotic damage you take.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"maddening darkness\"] = {\r\n\tname : \"Maddening Darkness\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A drop of pitch mixed with a drop of mercury\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"60-ft rad darkness; darkvision, no light works; all crea starting turn in 8d8 Psychic dmg, save halves\",\r\n\tdescriptionShorter : \"60-ft rad darkness; darkvision, no light works; all start turn in 8d8 Psychic dmg, save half\",\r\n\tdescriptionFull : \"Magical darkness spreads from a point you choose within range to fill a 60-foot-radius sphere until the spell ends. The darkness spreads around corners. A creature with darkvision can't see through this darkness. Nonmagical light, as well as light created by spells of 8th level or lower, can't illuminate the area.\" + \"\\n   \" + \"Shrieks, gibbering, and mad laughter can be heard within the sphere. Whenever a creature starts its turn in the sphere, it must make a Wisdom saving throw, taking 8d8 psychic damage on a failed save, or half as much damage on a successful one.\"\r\n};\r\nSpellsList[\"mass polymorph\"] = {\r\n\tname : \"Mass Polymorph\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 160]],\r\n\tlevel : 9,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A caterpillar cocoon\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"10 crea save or take chosen beast form of CR \\u2264 its CR or half its char. level; can only act as beast; see B\",\r\n\tdescriptionFull : \"You transform up to ten creatures of your choice that you can see within range. An unwilling target must succeed on a Wisdom saving throw to resist the transformation. An unwilling shapechanger automatically succeeds on the save.\" + \"\\n   \" + \"Each target assumes a beast form of your choice, and you can choose the same form or different ones for each target. The new form can be any beast you have seen whose challenge rating is equal to or less than the target's (or half the target's level, if the target doesn't have a challenge rating). The target's game statistics, including mental ability scores, are replaced by the statistics of the chosen beast, but the target retains its hit points, alignment, and personality.\" + \"\\n   \" + \"Each target gains a number of temporary hit points equal to the hit points of its new form. These temporary hit points can't be replaced by temporary hit points from another source. A target reverts to its normal form when it has no more temporary hit points or it dies. If the spell ends before then, the creature loses all its temporary hit points and reverts to its normal form.\" + \"\\n   \" + \"The creature is limited in the actions it can perform by the nature of its new form. It can't speak, cast spells, or do anything else that requires hands or speech.\" + \"\\n   \" + \"The target's gear melds into the new form. The target can't activate, use, wield, or otherwise benefit from any of its equipment.\"\r\n};\r\nSpellsList[\"mental prison\"] = {\r\n\tname : \"Mental Prison\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 161]],\r\n\tlevel : 6,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 5d10 Psychic dmg; save or restrained, blind, deaf, and if moved: 10d10 dmg, ends; charm effect\",\r\n\tdescriptionShorter : \"1 crea 5d10 Psychic dmg; save or restrained, blind, deaf, if move: 10d10 dmg, ends; charm\",\r\n\tdescriptionFull : \"You attempt to bind a creature within an illusory cell that only it perceives. One creature you can see within range must make an Intelligence saving throw. The target succeeds automatically if it is immune to being charmed. On a successful save, the target takes 5d10 psychic damage, and the spell ends. On a failed save, the target takes 5d10 psychic damage, and you make the area immediately around the target's space appear dangerous to it in some way. You might cause the target to perceive itself as being surrounded by fire, floating razors, or hideous maws filled with dripping teeth. Whatever form the illusion takes, the target can't see or hear anything beyond it and is restrained for the spell's duration. If the target is moved out of the illusion, makes a melee attack through it, or reaches any part of its body through it, the target takes 10d10 psychic damage, and the spell ends.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgMoments : false,\r\n\t\textraDmgGroupsSameType : /(if moved?: )((?:\\+?\\d+d?\\d*)+)/i\r\n\t}\r\n};\r\nSpellsList[\"mighty fortress\"] = {\r\n\tname : \"Mighty Fortress\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 161]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"1 mile\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A diamond worth at least 500 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Create a stone fortress 120 ft on a side for 7 days; see book for effects (500gp cons.)\",\r\n\tdescriptionFull : \"A fortress of stone erupts from a square area of ground of your choice that you can see within range. The area is 120 feet on each side, and it must not have any buildings or other structures on it. Any creatures in the area are harmlessly lifted up as the fortress rises.\" + \"\\n   \" + \"The fortress has four turrets with square bases, each one 20 feet on a side and 30 feet tall, with one turret on each corner. The turrets are connected to each other by stone walls that are each 80 feet long, creating an enclosed area. Each wall is 1 foot thick and is composed of panels that are 10 feet wide and 20 feet tall. Each panel is contiguous with two other panels or one other panel and a turret. You can place up to four stone doors in the fortress's outer wall.\" + \"\\n   \" + \"A small keep stands inside the enclosed area. The keep has a square base that is 50 feet on each side, and it has three floors with 10-foot-high ceilings. Each of the floors can be divided into as many rooms as you like, provided each room is at least 5 feet on each side. The floors of the keep are connected by stone staircases, its walls are 6 inches thick, and interior rooms can have stone doors or open archways as you choose. The keep is furnished and decorated however you like, and it contains sufficient food to serve a nine-course banquet for up to 100 people each day. Furnishings, food, and other objects created by this spell crumble to dust if removed from the fortress.\" + \"\\n   \" + \"A staff of one hundred invisible servants obeys any command given to them by creatures you designate when you cast the spell. Each servant functions as if created by the unseen servant spell.\" + \"\\n   \" + \"The walls, turrets, and keep are all made of stone that can be damaged. Each 10-foot-by-10-foot section of stone has AC 15 and 30 hit points per inch of thickness. It is immune to poison and psychic damage. Reducing a section of stone to 0 hit points destroys it and might cause connected sections to buckle and collapse at the DM's discretion.\" + \"\\n   \" + \"After 7 days or when you cast this spell somewhere else, the fortress harmlessly crumbles and sinks back into the ground, leaving any creatures that were inside it safely on the ground.\" + \"\\n   \" + \"Casting this spell on the same spot once every 7 days for a year makes the fortress permanent.\"\r\n};\r\nSpellsList[\"mind spike\"] = { // +1d8 at higher levels errata (https://media.wizards.com/2020/dnd/downloads/XGtE-Errata.pdf)\r\n\tname : \"Mind Spike\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 162]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea 3d8+1d8/SL Psychic dmg, know its location, can't be invis for me; save half, no other benefits\",\r\n\tdescriptionShorter : \"1 crea 3d8+1d8/SL Psychic dmg, know its location, can't be invis for me; save half, not rest\",\r\n\tdescriptionFull : \"You reach into the mind of one creature you can see within range. The target must make a Wisdom saving throw, taking 3d8 psychic damage on a failed save, or half as much damage on a successful one. On a failed save, you also always know the target's location until the spell ends, but only while the two of you are on the same plane of existence. While you have this knowledge, the target can't become hidden from you, and if it's invisible, it gains no benefit from that condition against you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"negative energy flood\"] = {\r\n\tname : \"Negative Energy Flood\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 5,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A broken bone and a square of black silk\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea: living 5d12 Necrotic dmg, save halves, rises as zombie if killed; undead 5d12/2 temp HP\",\r\n\tdescriptionFull : \"You send ribbons of negative energy at one creature you can see within range. Unless the target is undead, it must make a Constitution saving throw, taking 5d12 necrotic damage on a failed save, or half as much damage on a successful one. A target killed by this damage rises up as a zombie at the start of your next turn. The zombie pursues whatever creature it can see that is closest to it. Statistics for the zombie are in the Monster Manual.\" + \"\\n   \" + \"If you target an undead with this spell, the target doesn't make a saving throw. Instead, roll 5d12. The target gains half the total as temporary hit points.\"\r\n};\r\nSpellsList[\"power word pain\"] = {\r\n\tname : \"Power Word Pain\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 7,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea with 100 HP or less disadv. atk/check/save, conc. save to cast; save/rnd to end; charm effect\",\r\n\tdescriptionFull : \"You speak a word of power that causes waves of intense pain to assail one creature you can see within range. If the target has 100 hit points or fewer, it is subject to crippling pain. Otherwise, the spell has no effect on it. A target is also unaffected if it is immune to being charmed.\" + \"\\n   \" + \"While the target is affected by crippling pain, any speed it has can be no higher than 10 feet. The target also has disadvantage on attack rolls, ability checks, and saving throws, other than Constitution saving throws. Finally, if the target tries to cast a spell, it must first succeed on a Constitution saving throw, or the casting fails and the spell is wasted.\" + \"\\n   \" + \"A target suffering this pain can make a Constitution saving throw at the end of each of its turns. On a successful save, the pain ends.\"\r\n};\r\nSpellsList[\"primal savagery\"] = { \r\n\tname : \"Primal Savagery\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack, 5 ft range, for 1d10 Acid dmg; +1d10 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Melee spell attack, 5 ft range, for `CD`d10 Acid dmg\",\r\n\tdescriptionFull : \"You channel primal magic to cause your teeth or fingernails to sharpen, ready to deliver a corrosive attack. Make a melee spell attack against one creature within 5 feet of you. On a hit, the target takes 1d10 acid damage. After you make the attack, your teeth or fingernails return to normal.\" + \"\\n   \" + \"The spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nSpellsList[\"psychic scream\"] = {\r\n\tname : \"Psychic Scream\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 163]],\r\n\tlevel : 9,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"10 crea Int>2 save or 14d6 Psychic dmg and stunned; save halves, no stun; end of turn save to stop\",\r\n\tdescriptionFull : \"You unleash the power of your mind to blast the intellect of up to ten creatures of your choice that you can see within range. Creatures that have an Intelligence score of 2 or lower are unaffected.\" + \"\\n   \" + \"Each target must make an Intelligence saving throw. On a failed save, a target takes 14d6 psychic damage and is stunned. On a successful save, a target takes half as much damage and isn't stunned. If a target is killed by this damage, its head explodes, assuming it has one.\" + \"\\n   \" + \"A stunned target can make an Intelligence saving throw at the end of each of its turns. On a successful save, the stunning effect ends.\"\r\n};\r\nSpellsList[\"scatter\"] = {\r\n\tname : \"Scatter\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Up to 5 creatures in range, save or teleported 120 ft to a different space I can see on the ground\",\r\n\tdescriptionFull : \"The air quivers around up to five creatures of your choice that you can see within range. An unwilling creature must succeed on a Wisdom saving throw to resist this spell. You teleport each affected target to an unoccupied space that you can see within 120 feet of you. That space must be on the ground or on a floor.\"\r\n};\r\nSpellsList[\"shadow blade\"] = {\r\n\tname : \"Shadow Blade\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Sword 2d8 Psychic dmg, finesse, light, thrown (20/60 ft), adv. if target in dim/dark; +1d8 at SL3/5/7\",\r\n\tdescriptionMetric : \"Sword: 2d8 Psychic dmg, finesse, light, thrown (6/18 m), adv. if target in dim/dark; +1d8 at SL3/5/7\",\r\n\tdescriptionShorter : \"Sword 2d8 Psychic dmg, finesse, light, thrown (20/60ft), adv. in dim/dark; +1d8 SL3/5/7\",\r\n\tdescriptionShorterMetric : \"Sword 2d8 Psychic dmg, finesse, light, thrown (6/18 m), adv. in dim/dark; +1d8 SL3/5/7\",\r\n\tdescriptionFull : \"You weave together threads of shadow to create a sword of solidified gloom in your hand. This magic sword lasts until the spell ends. It counts as a simple melee weapon with which you are proficient. It deals 2d8 psychic damage on a hit and has the finesse, light, and thrown properties (range 20/60). In addition, when you use the sword to attack a target that is in dim light or darkness, you make the attack roll with advantage.\" + \"\\n   \" + \"If you drop the weapon or throw it, it dissipates at the end of the turn. Thereafter, while the spell persists, you can use a bonus action to cause the sword to reappear in your hand.\" + AtHigherLevels + \"When you cast this spell using a 3rd- or 4th-level spell slot, the damage increases to 3d8. When you cast it using a 5th- or 6th-level spell slot, the damage increases to 4d8. When you cast it using a spell slot of 7th level or higher, the damage increases to 5d8.\"\r\n};\r\nWeaponsList[\"shadow blade\"] = {\r\n\tregExpSearch : /(?=.*shadow)(?=.*blade).*$/i,\r\n\tname : \"Shadow Blade\",\r\n\tsource : [[\"X\", 164]],\r\n\tlist : \"spell\",\r\n\tability : 1,\r\n\ttype : \"Simple\",\r\n\tdamage : [2, 8, \"psychic\"],\r\n\trange : \"Melee, 20/60 ft\",\r\n\tdescription : \"Finesse, light, thrown; +1d8 at SL3/5/7; Adv. if target in dim light/darkness\",\r\n\tabilitytodamage : true,\r\n\tisAlwaysProf : true,\r\n\tuseSpellcastingAbility : false\r\n};\r\nSpellsList[\"shadow of moil\"] = {\r\n\tname : \"Shadow of Moil\",\r\n\tclasses : [\"warlock\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 4,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An undead eyeball encased in a gem worth at least 150 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me: heavy obsc., Radiant resistance; 10-ft rad: 1 step darker, hit vs. me get 2d8 Necrotic dmg (150gp)\",\r\n\tdescriptionShorter : \"Me: hvy obsc., Radiant resist; 10-ft rad: 1 step darker, hit vs. me 2d8 Necrotic dmg (150gp)\",\r\n\tdescriptionFull : \"Flame-like shadows wreathe your body until the spell ends, causing you to become heavily obscured to others. The shadows turn dim light within 10 feet of you into darkness, and bright light in the same area to dim light.\" + \"\\n   \" + \"Until the spell ends, you have resistance to radiant damage. In addition, whenever a creature within 10 feet of you hits you with an attack, the shadows lash out at that creature, dealing it 2d8 necrotic damage.\"\r\n};\r\nSpellsList[\"sickening radiance\"] = {\r\n\tname : \"Sickening Radiance\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 164]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"30-ft rad all enter/start turn save or 4d10 Radiant dmg, 1 level of exhaustion, and emit 5-ft rad light\",\r\n\tdescriptionShorter : \"30-ft rad all enter/start turn save or 4d10 Radiant dmg, 1 lvl exhaust., emit 5-ft rad light\",\r\n\tdescriptionFull : \"Dim, greenish light spreads within a 30-foot-radius sphere centered on a point you choose within range. The light spreads around corners, and it lasts until the spell ends.\" + \"\\n   \" + \"When a creature moves into the spell's area for the first time on a turn or starts its turn there, that creature must succeed on a Constitution saving throw or take 4d10 radiant damage, and it suffers one level of exhaustion and emits a dim, greenish light in a 5-foot radius. This light makes it impossible for the creature to benefit from being invisible. The light and any levels of exhaustion caused by this spell go away when the spell ends.\"\r\n};\r\nSpellsList[\"skill empowerment\"] = {\r\n\tname : \"Skill Empowerment\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 willing creature gains expertise in one skill of my choice that it is proficient with for the duration\",\r\n\tdescriptionFull : \"Your magic deepens a creature's understanding of its own talent. You touch one willing creature and give it expertise in one skill of your choice; until the spell ends, the creature doubles its proficiency bonus for ability checks it makes that use the chosen skill.\" + \"\\n   \" + \"You must choose a skill in which the target is proficient and that isn't already benefiting from an effect, such as Expertise, that doubles its proficiency bonus.\"\r\n};\r\nSpellsList[\"snare\"] = {\r\n\tname : \"Snare\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"S,M\\u2020\",\r\n\tcompMaterial : \"25 feet of rope, which the spell consumes\",\r\n\tduration : \"8 h, till trigger\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft rad trap; Investigation vs spell DC to see; save or restrained 3 ft in the air; save each rnd (5sp)\",\r\n\tdescriptionFull : \"As you cast this spell, you use the rope to create a circle with a 5-foot radius on the ground or the floor. When you finish casting, the rope disappears and the circle becomes a magic trap.\" + \"\\n   \" + \"This trap is nearly invisible, requiring a successful Intelligence (Investigation) check against your spell save DC to be discerned.\" + \"\\n   \" + \"The trap triggers when a Small, Medium, or Large creature moves onto the ground or the floor in the spell's radius. That creature must succeed on a Dexterity saving throw or be magically hoisted into the air, leaving it hanging upside down 3 feet above the ground or the floor. The creature is restrained there until the spell ends.\" + \"\\n   \" + \"A restrained creature can make a Dexterity saving throw at the end of each of its turns, ending the effect on itself on a success. Alternatively, the creature or someone else who can reach it can use an action to make an Intelligence (Arcana) check against your spell save DC. On a success, the restrained effect ends.\" + \"\\n   \" + \"After the trap is triggered, the spell ends when no creature is restrained by it.\"\r\n};\r\nSpellsList[\"soul cage\"] = {\r\n\tname : \"Soul Cage\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 165]],\r\n\tlevel : 6,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when a humanoid you can see within 60 feet of you dies\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A tiny silver cage worth 100 gp\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"As a reaction when humanoid in range dies, I capture their soul in a tiny cage; see book (100gp)\",\r\n\tdescriptionFull : \"This spell snatches the soul of a humanoid as it dies and traps it inside the tiny cage you use for the material component. A stolen soul remains inside the cage until the spell ends or until you destroy the cage, which ends the spell. While you have a soul inside the cage, you can exploit it in any of the ways described below. You can use a trapped soul up to six times. Once you exploit a soul for the sixth time, it is released, and the spell ends. While a soul is trapped, the dead humanoid it came from can't be revived.\" + \"\\n   \" + toUni(\"Steal Life\") + \": You can use a bonus action to drain vigor from the soul and regain 2d8 hit points.\" + \"\\n   \" + toUni(\"Query Soul\") + \": You ask the soul a question (no action required) and receive a brief telepathic answer, which you can understand regardless of the language used. The soul knows only what it knew in life, but it must answer you truthfully and to the best of its ability. The answer is no more than a sentence or two and might be cryptic.\" + \"\\n   \" + toUni(\"Borrow Experience\") + \": You can use a bonus action to bolster yourself with the soul's life experience, making your next attack roll, ability check, or saving throw with advantage. If you don't use this benefit before the start of your next turn, it is lost.\" + \"\\n   \" + toUni(\"Eyes of the Dead\") + \": You can use an action to name a place the humanoid saw in life, which creates an invisible sensor somewhere in that place if it is on the plane of existence you're currently on. The sensor remains for as long as you concentrate, up to 10 minutes (as if you were concentrating on a spell). You receive visual and auditory information from the sensor as if you were in its space using your senses\" + \"\\n   \" + \"A creature that can see the sensor (such as one using see invisibility or truesight) sees a translucent image of the tormented humanoid whose soul you caged.\"\r\n};\r\nSpellsList[\"steel wind strike\"] = {\r\n\tname : \"Steel Wind Strike\",\r\n\tclasses : [\"ranger\", \"wizard\"],\r\n\tsource : [[\"X\", 166]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"S,M\\u0192\",\r\n\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack vs. 5 crea in range; 6d10 Force dmg on hit; after, I teleport next to one target\",\r\n\tdescriptionFull : \"You flourish the weapon used in the casting and then vanish to strike like the wind. Choose up to five creatures you can see within range. Make a melee spell attack against each target. On a hit, a target takes 6d10 force damage.\" + \"\\n   \" + \"You can then teleport to an unoccupied space you can see within 5 feet of one of the targets you hit or missed.\"\r\n};\r\nSpellsList[\"summon greater demon\"] = {\r\n\tname : \"Summon Greater Demon\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 166]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from a humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"Summon 1 demon of CR 5+1/SL that obeys me; end of each of its turn, save to break free; see book\",\r\n\tdescriptionFull : \"You utter foul words, summoning one demon from the chaos of the Abyss. You choose the demon's type, which must be one of challenge rating 5 or lower, such as a shadow demon or a barlgura. The demon appears in an unoccupied space you can see within range, and the demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"Roll initiative for the demon, which has its own turns. When you summon it and on each of your turns thereafter, you can issue a verbal command to it (requiring no action on your part), telling it what it must do on its next turn. If you issue no command, it spends its turn attacking any creature within reach that has attacked it.\" + \"\\n   \" + \"At the end of each of the demon's turns, it makes a Charisma saving throw. The demon has disadvantage on this saving throw if you say its true name. On a failed save, the demon continues to obey you. On a successful save, your control of the demon ends for the rest of the duration, and the demon spends its turns pursuing and attacking the nearest non-demons to the best of its ability. If you stop concentrating on the spell before it reaches its full duration, an uncontrolled demon doesn't disappear for 1d6 rounds if it still has hit points.\" + \"\\n   \" + \"As part of casting the spell, you can form a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. While the spell lasts, the summoned demon can't cross the circle or harm it, and it can't target anyone within it. Using the material component in this manner consumes it when the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the challenge rating increases by 1 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"summon lesser demons\"] = {\r\n\tname : \"Summon Lesser Demons\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from a humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon up to 8 (16 at SL6, 24 at SL8) CR \\u22641 1 demons, DM choice; attack nearest non-demons\",\r\n\tdescriptionFull : \"You utter foul words, summoning demons from the chaos of the Abyss. Roll on the following table to determine what appears.\" + \"\\n\\n \" + toUni(\"d6\") + \"\\t\" + toUni(\"Demons Summoned\") + \"\\n  1-2\\tTwo demons of challenge rating 1 or lower\" + \"\\n  3-4\\tFour demons of challenge rating 1/2 or lower\" + \"\\n  5-6\\tEight demons of challenge rating 1/4 or lower\" + \"\\n\\n   \" + \"The DM chooses the demons, such as manes or dretches, and you choose the unoccupied spaces you can see within range where they appear. A summoned demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The demons are hostile to all creatures, including you. Roll initiative for the summoned demons as a group, which has its own turns. The demons pursue and attack the nearest non-demons to the best of their ability.\" + \"\\n   \" + \"As part of casting the spell, you can form a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. While the spell lasts, the summoned demons can't cross the circle or harm it, and they can't target anyone within it. Using the material component in this manner consumes it when the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th or 7th level, you summon twice as many demons. If you cast it using a spell slot of 8th or 9th level, you summon three times as many demons.\"\r\n};\r\nSpellsList[\"synaptic static\"] = {\r\n\tname : \"Synaptic Static\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 5,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instant, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"20-ft rad all crea Int>2 save or 8d6 Psychic dmg, -1d6 on atks/check/conc. save; save half, no -1d6\",\r\n\tdescriptionShorter : \"20-ft rad all crea Int>2 save or 8d6 Psychic dmg, -1d6 on atk/chk/conc save; save half, no -1d6\",\r\n\tdescriptionFull : \"You choose a point within range and cause psychic energy to explode there. Each creature in a 20-foot-radius sphere centered on that point must make an Intelligence saving throw. A creature with an Intelligence score of 2 or lower can't be affected by this spell. A target takes 8d6 psychic damage on a failed save, or half as much damage on a successful one.\" + \"\\n   \" + \"After a failed save, a target has muddled thoughts for 1 minute. During that time, it rolls a d6 and subtracts the number rolled from all its attack rolls and ability checks, as well as its Constitution saving throws to maintain concentration. The target can make an Intelligence saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n};\r\nSpellsList[\"temple of the gods\"] = {\r\n\tname : \"Temple of the Gods\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"X\", 167]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 h\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A holy symbol worth at least 5 gp\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Create a temple 120 ft on a side to the deity of a holy symbol used; see book for effects\",\r\n\tdescriptionFull : \"You cause a temple to shimmer into existence on ground you can see within range. The temple must fit within an unoccupied cube of space, up to 120 feet on each side. The temple remains until the spell ends. It is dedicated to whatever god, pantheon, or philosophy is represented by the holy symbol used in the casting.\" + \"\\n   \" + \"You make all decisions about the temple's appearance. The interior is enclosed by a floor, walls, and a roof, with one door granting access to the interior and as many windows as you wish. Only you and any creatures you designate when you cast the spell can open or close the door.\" + \"\\n   \" + \"The temple's interior is an open space with an idol or altar at one end. You decide whether the temple is illuminated and whether that illumination is bright light or dim light. The smell of burning incense fills the air within, and the temperature is mild.\" + \"\\n   \" + \"The temple opposes types of creatures you choose when you cast this spell. Choose one or more of the following: celestials, elementals, fey, fiends, or undead. If a creature of the chosen type attempts to enter the temple, that creature must make a Charisma saving throw. On a failed save, it can't enter the temple for 24 hours. Even if the creature can enter the temple, the magic there hinders it; whenever it makes an attack roll, an ability check, or a saving throw inside the temple, it must roll a d4 and subtract the number rolled from the d20 roll.\" + \"\\n   \" + \"In addition, the sensors created by divination spells can't appear inside the temple, and creatures within can't be targeted by divination spells.\" + \"\\n   \" + \"Finally, whenever any creature in the temple regains hit points from a spell of 1st level or higher, the creature regains additional hit points equal to your Wisdom modifier (minimum 1 hit point).\" + \"\\n   \" + \"The temple is made from opaque magical force that extends into the Ethereal Plane, thus blocking ethereal travel into the temple's interior. Nothing can physically pass through the temple's exterior. It can't be dispelled by dispel magic, and antimagic field has no effect on it. A disintegrate spell destroys the temple instantly.\" + \"\\n   \" + \"Casting this spell on the same spot once every 7 days for a year makes this effect permanent.\"\r\n};\r\nSpellsList[\"tenser's transformation\"] = {\r\n\tname : \"Tenser's Transformation\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A few hairs from a bull\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"50 temp HP; prof Str/Con save, all wea/arm; extra atk; adv., wea atks +2d12 Force dmg; no spellc.\",\r\n\tdescriptionShorter : \"50 temp HP; prof Str/Con save, wea/arm; +1 atk; adv, wea atks +2d12 Force dmg; no spellc\",\r\n\tdescriptionFull : \"You endow yourself with endurance and martial prowess fueled by magic. Until the spell ends, you can't cast spells, and you gain the following benefits:\" + \"\\n \\u2022 \" + \"You gain 50 temporary hit points. If any of these remain when the spell ends, they are lost.\" + \"\\n \\u2022 \" + \"You have advantage on attack rolls that you make with simple and martial weapons.\" + \"\\n \\u2022 \" + \"When you hit a target with a weapon attack, that target takes an extra 2d12 force damage.\" + \"\\n \\u2022 \" + \"You have proficiency with all armor, shields, simple weapons, and martial weapons.\" + \"\\n \\u2022 \" + \"You have proficiency in Strength and Constitution saving throws.\" + \"\\n \\u2022 \" + \"You can attack twice, instead of once, when you take the Attack action on your turn. You ignore this benefit if you already have a feature, like Extra Attack, that gives you extra attacks.\" + \"\\n   \" + \"Immediately after the spell ends, you must succeed on a DC 15 Constitution saving throw or suffer one level of exhaustion.\"\r\n};\r\nSpellsList[\"thunder step\"] = {\r\n\tname : \"Thunder Step\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Me + 1 willing crea teleport 90 ft; all crea in 10 ft of origin 3d10+1d10/SL Thunder dmg; save half\",\r\n\tdescriptionShorter : \"Me + 1 willing crea teleport 90 ft; all in 10 ft of origin 3d10+1d10/SL Thunder dmg; save half\",\r\n\tdescriptionFull : \"You teleport yourself to an unoccupied space you can see within range. Immediately after you disappear, a thunderous boom sounds, and each creature within 10 feet of the space you left must make a Constitution saving throw, taking 3d10 thunder damage on a failed save, or half as much damage on a successful one. The thunder can be heard from up to 300 feet away.\" + \"\\n   \" + \"You can bring along objects as long as their weight doesn't exceed what you can carry. You can also teleport one willing creature of your size or smaller who is carrying gear up to its carrying capacity. The creature must be within 5 feet of you when you cast this spell, and there must be an unoccupied space within 5 feet of your destination space for the creature to appear in; otherwise, the creature is left behind.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d10 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"tiny servant\"] = {\r\n\tname : \"Tiny Servant\",\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"X\", 168]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"Animate 1+2/SL Tiny, nonmagical, unattended obj as tiny servants; bns a to command telepathically\",\r\n\tdescriptionFull : \"You touch one Tiny, nonmagical object that isn't attached to another object or a surface and isn't being carried by another creature. The target animates and sprouts little arms and legs, becoming a creature under your control until the spell ends or the creature drops to 0 hit points. See the Tiny Servant stat block for its statistics.\" + \"\\n   \" + \"As a bonus action, you can mentally command the creature if it is within 120 feet of you. (If you control multiple creatures with this spell, you can command any or all of them at the same time, issuing the same command to each one.) You decide what action the creature will take and where it will move during its next turn, or you can issue a simple, general command, such as to fetch a key, stand watch, or stack some books. If you issue no commands, the servant does nothing other than defend itself against hostile creatures. Once given an order, the servant continues to follow that order until its task is complete.\" + \"\\n   \" + \"When the creature drops to 0 hit points, it reverts to its original form, and any remaining damage carries over to that form.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can animate two additional objects for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"toll the dead\"] = {\r\n\tname : \"Toll the Dead\",\r\n\tclasses : [\"cleric\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\tlevel : 0,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 1d12 Necrotic dmg (d8 instead of d12 if at full HP); +1d12/1d8 at CL 5, 11, \\u0026 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d12 Necrotic damage (d8 instead of d12 if at full HP)\",\r\n\tdescriptionFull : \"You point at one creature you can see within range, and the sound of a dolorous bell fills the air around it for a moment. The target must succeed on a Wisdom saving throw or take 1d8 necrotic damage. If the target is missing any of its hit points, it instead takes 1d12 necrotic damage.\" + \"\\n   \" + \"The spell's damage increases by one die when you reach 5th level (2d8 or 2d12), 11th level (3d8 or 3d12), and 17th level (4d8 or 4d12).\"\r\n};\r\nSpellsList[\"wall of light\"] = {\r\n\tname : \"Wall of Light\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"X\", 170]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A hand mirror\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"60\\xD75\\xD710ft (l\\xD7w\\xD7h) 4d8+1d8/SL Radiant dmg \\u0026 blind; save half, not blind; 1 a rngd spell atk; see B\",\r\n\tdescriptionShorter : \"60|5|10ft (l|w|h) 4d8+1d8/SL Radiant dmg, blind; save half, no blind; 1 a rngd atk; see B\",\r\n\tdescriptionMetric : \"18\\xD71,5\\xD73m (l\\xD7w\\xD7h) 4d8+1d8/SL Radiant dmg \\u0026 blind; save half, not blind; 1 a rngd spell atk; see B\",\r\n\tdescriptionShorterMetric : \"18|1,5|3m (l|w|h) 4d8+1d8/SL Radiant dmg, blind; save half, no blind; 1 a rngd atk; see B\",\r\n\tdescriptionFull : \"A shimmering wall of bright light appears at a point you choose within range. The wall appears in any orientation you choose: horizontally, vertically, or diagonally. It can be free floating, or it can rest on a solid surface. The wall can be up to 60 feet long, 10 feet high, and 5 feet thick. The wall blocks line of sight, but creatures and objects can pass through it. It emits bright light out to 120 feet and dim light for an additional 120 feet.\" + \"\\n   \" + \"When the wall appears, each creature in its area must make a Constitution saving throw. On a failed save, a creature takes 4d8 radiant damage, and it is blinded for 1 minute. On a successful save, it takes half as much damage and isn't blinded. A blinded creature can make a Constitution saving throw at the end of each of its turns, ending the effect on itself on a success.\" + \"\\n   \" + \"A creature that ends its turn in the wall's area takes 4d8 radiant damage.\" + \"\\n   \" + \"Until the spell ends, you can use an action to launch a beam of radiance from the wall at one creature you can see within 60 feet of it. Make a ranged spell attack. On a hit, the target takes 4d8 radiant damage. Whether you hit or miss, reduce the length of the wall by 10 feet. If the wall's length drops to 0 feet, the spell ends.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the damage increases by 1d8 for each slot level above 5th.\"\r\n};\r\nSpellsList[\"word of radiance\"] = {\r\n\tname : \"Word of Radiance\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,M\",\r\n\tcompMaterial : \"A holy symbol\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any crea within range save or 1d6 Radiant damage; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Any crea within range save or `CD`d6 Radiant damage\",\r\n\tdescriptionFull : \"You utter a divine word, and burning radiance erupts from you. Each creature of your choice that you can see within range must succeed on a Constitution saving throw or take 1d6 radiant damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"wrath of nature\"] = {\r\n\tname : \"Wrath of Nature\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 5,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"60-ft cu dif. ter.; rock: rngd atk 3d8 Bludg. dmg; tree: Dex or 4d6 Slash. dmg; root: Str or restr.; see B\",\r\n\tdescriptionShorter : \"60-ft cu dif. ter.; rock: atk 3d8 Bludg. dmg; tree: Dex or 4d6 Slash. dmg; root: Str or restrain\",\r\n\tdescriptionFull : \"You call out to the spirits of nature to rouse them against your enemies. Choose a point you can see within range. The spirits cause trees, rocks, and grasses in a 60-foot cube centered on that point to become animated until the spell ends.\" + \"\\n   \" + toUni(\"Grasses and Undergrowth\") + \": Any area of ground in the cube that is covered by grass or undergrowth is difficult terrain for your enemies.\" + \"\\n   \" + toUni(\"Trees\") + \": At the start of each of your turns, each of your enemies within 10 feet of any tree in the cube must succeed on a Dexterity saving throw or take 4d6 slashing damage from whipping branches.\" + \"\\n   \" + toUni(\"Roots and Vines\") + \": At the end of each of your turns, one creature of your choice that is on the ground in the cube must succeed on a Strength saving throw or become restrained until the spell ends. A restrained creature can use an action to make a Strength (Athletics) check against your spell save DC, ending the effect on itself on a success.\" + \"\\n   \" + toUni(\"Rocks\") + \": As a bonus action on your turn, you can cause a loose rock in the cube to launch at a creature you can see in the cube. Make a ranged spell attack against the target. On a hit, the target takes 3d8 nonmagical bludgeoning damage, and it must succeed on a Strength saving throw or fall prone.\"\r\n};\r\nSpellsList[\"zephyr strike\"] = { \r\n\tname : \"Zephyr Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"X\", 171]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Moving doesn't provoke opportunity atks; once: adv. on wea atk, +1d8 Force dmg, +30 ft spd for turn\",\r\n\tdescriptionShorter : \"Moving doesn't provoke opport. atks; once: adv. on wea atk, +1d8 Force dmg, +30 ft spd for turn\",\r\n\tdescriptionFull : \"You move like the wind. Until the spell ends, your movement doesn't provoke opportunity attacks.\" + \"\\n   \" + \"Once before the spell ends, you can give yourself advantage on one weapon attack roll on your turn. That attack deals an extra 1d8 force damage on a hit. Whether you hit or miss, your walking speed increases by 30 feet until the end of that turn.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\n\r\n// Add weapons (attack cantrips)\r\nWeaponsList[\"create bonfire\"] = {\r\n\tregExpSearch : /^(?=.*create)(?=.*bonfire).*$/i,\r\n\tname : \"Create Bonfire\",\r\n\tsource : [[\"X\", 152], [\"E\", 16]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"fire\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"5-ft cube; Dex save at casting or when moved into, success - no damage; Conc, 1 min\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"frostbite\"] = {\r\n\tregExpSearch : /frostbite/i,\r\n\tname : \"Frostbite\",\r\n\tsource : [[\"X\", 156], [\"E\", 18]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"cold\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also disadv. on next weapon attack roll in next turn; 1 creature\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"infestation\"] = {\r\n\tregExpSearch : /infestation/i,\r\n\tname : \"Infestation\",\r\n\tsource : [[\"X\", 158]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"poison\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - target also moved 5 ft in random direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"magic stone\"] = {\r\n\tregExpSearch : /^(?=.*magic)(?=.*stone).*$/i,\r\n\tname : \"Magic Stone\",\r\n\tsource : [[\"X\", 160], [\"E\", 20]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [1, 6, \"bludgeoning\"],\r\n\trange : \"60/120 ft\",\r\n\tdescription : \"Produces 3 stones that each can be thrown (60 ft) or hurled with a sling (120 ft) as a spell attack\",\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"primal savagery\"] = {\r\n\tregExpSearch : /^(?=.*primal)(?=.*savagery).*$/i,\r\n\tname : \"Primal Savagery\",\r\n\tsource : [[\"X\", 169]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"acid\"],\r\n\trange : \"Melee (5 ft)\",\r\n\tdescription : \"\",\r\n\tabilitytodamage : false\r\n};\r\nWeaponsList[\"thunderclap\"] = {\r\n\tregExpSearch : /thunderclap/i,\r\n\tname : \"Thunderclap\",\r\n\tsource : [[\"X\", 168], [\"E\", 22]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"thunder\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; all creatures in area; audible in 100 ft\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"toll the dead\"] = {\r\n\tregExpSearch : /^(?=.*toll)(?=.*the)(?=.*dead).*$/i,\r\n\tname : \"Toll the Dead\",\r\n\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 12, \"necrotic\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Wis save, success - no damage; If target is at full HP, d8 instead of d12 damage\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"word of radiance\"] = {\r\n\tregExpSearch : /^(?=.*word)(?=.*radiance).*$/i,\r\n\tname : \"Word of Radiance\",\r\n\tsource : [[\"X\", 171]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"radiant\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; Only chosen creatures I can see are affected\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n\r\n// Companion options (Find Greater Steed spell)\r\nCompanionList.steed = {\r\n\tname : \"Find Greater Steed\",\r\n\tnameTooltip : \"the Find Greater Steed spell\",\r\n\tnameOrigin : \"4th-level conjuration spell\",\r\n\tnameMenu : \"Greater steed (Find Greater Steed spell)\",\r\n\tsource : [[\"X\", 156]],\r\n\taction : [[\"action\", \"Find Greater Steed (dismiss)\"]],\r\n\tattributesAdd : {\r\n\t\theader : \"Mount\",\r\n\t\ttype : [\"Celestial\", \"Fey\", \"Fiend\"],\r\n\t\tsubtype : \"\",\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Find Greater Steed\",\r\n\t\t\tdescription : \"If dropped to 0 HP, the steed disappears, leaving behind no physical form.\"\r\n\t\t}],\r\n\t\tlanguages : \"understands one language its master speaks (master's choice)\"\r\n\t},\r\n\tattributesChange : function(sCrea, objCrea) {\r\n\t\tif (objCrea.scores[3] < 6) objCrea.scores[3] = 6;\r\n\t},\r\n\tnotes : function() {\r\n\t\tif (!CompanionList.mount) return;\r\n\t\tvar a = newObj(CompanionList.mount.notes);\r\n\t\ta[0].description = a[0].description.replace(/It assumes a chosen form.*/i, \"It has the chosen form: griffon, pegasus, peryton, dire wolf, rhinoceros, or saber-toothed tiger\");\r\n\t\treturn a;\r\n\t}()\r\n};\r\n\r\n// Add creatures\r\nCreatureList[\"tiny servant\"] = { // Stats for the Tiny Servant spell (contains contributions by SoilentBrad)\r\n\tname : \"Tiny Servant\",\r\n\tsource : [[\"X\", 169]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 10,\r\n\thd : [4, 4],\r\n\tspeed : \"30 ft, climb 30 ft\",\r\n\tscores : [4, 16, 10, 2, 10, 1],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius)\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"adamantine ammunition\"] = {\r\n\tname : \"Adamantine Ammunition\",\r\n\tsource : [[\"X\", 78]],\r\n\ttype : \"weapon (any ammunition)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Whenever a ammunition made or coated with adamantine hits an object, the hit is a critical hit. The adamantine version of ten pieces of ammunition costs 500 gp more than the normal version, whether the ammunition is made of the metal or coated with it.\",\r\n\tdescriptionFull : \"Ammunition made of or coated with adamantine is unusually effective when used to break objects. Whenever a piece of adamantine ammunition hits an object, the hit is a critical hit.\\n   The adamantine version of ten pieces of ammunition costs 500 gp more than the normal version, whether the ammunition is made of the metal or coated with it.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"ammo\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\titemName1stPage : [\"suffix\", \"Adamantine\"],\r\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"adamantine weapon\"] = {\r\n\tname : \"Adamantine Weapon\",\r\n\tsource : [[\"X\", 78]],\r\n\ttype : \"weapon (any melee)\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Whenever a weapon made or coated with adamantine hits an object, the hit is a critical hit. The adamantine version of a melee weapon costs 500 gp more than the normal version, whether the weapon is made of the metal or coated with it.\",\r\n\tdescriptionFull : \"Melee weapons made of or coated with adamantine are unusually effective when used to break objects. Whenever an adamantine weapon hits an object, the hit is a critical hit.\\n   The adamantine version of a melee weapon costs 500 gp more than the normal version, whether the weapon is made of the metal or coated with it.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\titemName1stPage : [\"suffix\", \"Adamantine\"],\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn inObj.list != \"melee\";\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.list == \"melee\" && /adamantine/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Always critical hits on objects';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Adamantine\" in the name of a melee weapon, it will be treated as the magic item Adamantine Weapon. Whenever it hits an object, it automatically scores a critical hit.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"armor of gleaming\"] = {\r\n\tname : \"Armor of Gleaming\",\r\n\tnameTest : \"of Gleaming\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"armor (medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This armor never gets dirty.\",\r\n\tdescriptionFull : \"This armor never gets dirty.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/medium|heavy/i).test(inObj.type);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bead of nourishment\"] = {\r\n\tname : \"Bead of Nourishment\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once I can eat this spongy, flavorless, gelatinous bead. It dissolves on my tongue and provides as much nourishment as 1 day of rations.\",\r\n\tdescriptionFull : \"This spongy, flavorless, gelatinous bead dissolves on your tongue and provides as much nourishment as 1 day of rations.\"\r\n}\r\nMagicItemsList[\"bead of refreshment\"] = {\r\n\tname : \"Bead of Refreshment\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once I can drop this spongy, flavorless, gelatinous bead in liquid. It dissolves in the liquid and transforms up to a pint of it into fresh, cold drinking water. The bead has no effect on magical liquids or harmful substances such as poison.\",\r\n\tdescriptionFull : \"This spongy, flavorless, gelatinous bead dissolves in liquid, transforming up to a pint of the liquid into fresh, cold drinking water. The bead has no effect on magical liquids or harmful substances such as poison.\"\r\n}\r\nMagicItemsList[\"boots of false tracks\"] = {\r\n\tname : \"Boots of False Tracks\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Only humanoids can wear these boots. While wearing the boots, I can choose to have them leave tracks like those of another kind of humanoid of my size.\",\r\n\tdescriptionFull : \"Only humanoids can wear these boots. While wearing the boots, you can choose to have them leave tracks like those of another kind of humanoid of your size.\"\r\n}\r\nMagicItemsList[\"candle of the deep\"] = {\r\n\tname : \"Candle of the Deep\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"The flame of this candle is not extinguished when immersed in water. It gives off light and heat like a normal candle.\",\r\n\tdescriptionFull : \"The flame of this candle is not extinguished when immersed in water. It gives off light and heat like a normal candle.\"\r\n}\r\nMagicItemsList[\"cast-off armor\"] = {\r\n\tname : \"Cast-Off Armor\",\r\n\tnameTest : \"Cast-Off\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action, I can doff this armor.\",\r\n\tdescriptionFull : \"You can doff this armor as an action.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"charlatan's die\"] = {\r\n\tname : \"Charlatan's Die\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Whenever I roll this six-sided die, I can control which number it rolls.\",\r\n\tdescriptionFull : \"Whenever you roll this six-sided die, you can control which number it rolls.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"cloak of billowing\"] = {\r\n\tname : \"Cloak of Billowing\",\r\n\tsource : [[\"X\", 136]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a bonus action while wearing this cloak, I can make it billow dramatically.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can use a bonus action to make it billow dramatically.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"cloak of many fashions\"] = {\r\n\tname : \"Cloak of Many Fashions\",\r\n\tsource : [[\"X\", 136], [\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a bonus action while wearing this cloak, I can change its style, color, and apparent qualities. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\tdescriptionFull : \"While wearing this cloak, you can use a bonus action to change the style, color, and apparent quality of the garment. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"clockwork amulet\"] = {\r\n\tname : \"Clockwork Amulet\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once per dawn when I make an attack roll while wearing this copper amulet, I can forgo rolling the d20 to get a 10 on the die. The amulet contains tiny interlocking gears powered by magic from Mechanus, a plane of clockwork predictability. When I hold it up to my ear, I can hear faint ticking and whirring noises.\",\r\n\tdescriptionFull : \"This copper amulet contains tiny interlocking gears and is powered by magic from Mechanus, a plane of clockwork predictability. A creature that puts an ear to the amulet can hear faint ticking and whirring noises coming from within.\\n   When you make an attack roll while wearing the amulet, you can forgo rolling the d20 to get a 10 on the die. Once used, this property can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"clothes of mending\"] = {\r\n\tname : \"Clothes of Mending\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This elegant outfit of traveler's clothes magically mends itself to counteract daily wear and tear. Pieces of the outfit that are destroyed can't be repaired in this way.\",\r\n\tdescriptionFull : \"This elegant outfit of traveler's clothes magically mends itself to counteract daily wear and tear. Pieces of the outfit that are destroyed can't be repaired in this way.\",\r\n\tweight : 4\r\n}\r\nMagicItemsList[\"dark shard amulet\"] = {\r\n\tname : \"Dark Shard Amulet\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this amulet of extraplanar material from the realm of my warlock patron as a spellcasting focus for my warlock spells. Once per long rest, I can use it to cast a warlock cantrip that I don't know. To do so, I must make a DC 10 Intelligence (Arcana) check, wasting the attempt as well as my action if I fail.\",\r\n\tdescriptionFull : \"This amulet is fashioned from a single shard of resilient extraplanar material originating from the realm of your warlock patron. While you are wearing it, you gain the following benefits:\\n \\u2022 You can use the amulet as a spellcasting focus for your warlock spells.\\n \\u2022 You can try to cast a cantrip that you don't know. The cantrip must be on the warlock spell list, and you must make a DC 10 Intelligence (Arcana) check. If the check succeeds, you cast the spell. If the check fails, so does the spell, and the action used to cast the spell is wasted. In either case, you can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warlock\",\r\n\tprereqeval : function (v) { return classes.known.warlock ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility: \"warlock\",\r\n\tspellFirstColTitle: \"\",\r\n\tspellcastingPreparedCantrips: { 'class': 'warlock' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'warlock',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('dark shard amulet') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName.indexOf('dark shard amulet') !== -1) {\r\n\t\t\t\t\tspellObj.firstCol = \"\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n}\r\nMagicItemsList[\"dread helm\"] = {\r\n\tname : \"Dread Helm\",\r\n\tsource : [[\"X\", 137], [\"WBtW\", 209]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This fearsome steel helm makes my eyes glow red while I wear it.\",\r\n\tdescriptionFull : \"This fearsome steel helm makes your eyes glow red while you wear it.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"ear horn of hearing\"] = {\r\n\tname : \"Ear Horn of Hearing\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While held up to my ear, this horn suppresses the effects of the deafened condition on me, allowing me to hear normally.\",\r\n\tdescriptionFull : \"While held up to your ear, this horn suppresses the effects of the deafened condition on you, allowing you to hear normally.\",\r\n\tsavetxt : { immune : [\"deafened\"] },\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"enduring spellbook\"] = {\r\n\tname : \"Enduring Spellbook\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This spellbook, along with anything written on its pages, can't be damaged by fire or immersion in water. In addition, the spellbook doesn't deteriorate with age.\",\r\n\tdescriptionFull : \"This spellbook, along with anything written on its pages, can't be damaged by fire or immersion in water. In addition, the spellbook doesn't deteriorate with age.\",\r\n\tweight : 5\r\n}\r\nMagicItemsList[\"ersatz eye\"] = {\r\n\tname : \"Ersatz Eye\",\r\n\tsource : [[\"X\", 137], [\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in my eye socket, it can't be removed by anyone other than me, and I can see through the tiny orb as though it were a normal eye.\",\r\n\tdescriptionFull : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in your eye socket, it can't be removed by anyone other than you, and you can see through the tiny orb as though it were a normal eye.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"hat of vermin\"] = {\r\n\tname : \"Hat of Vermin\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This hat has 3 charges, regaining all at dawn. As an action while holding it, I can expend 1 charge and speak a command word to have one bat, frog, or rat appear in the hat. The creature acts as an ordinary member of its kind and disappears after 1 hour or when it has 0 HP. It is not under my control.\",\r\n\tdescriptionFull : \"This hat has 3 charges. While holding the hat, you can use an action to expend 1 of its charges and speak a command word that summons your choice of a bat, a frog, or a rat. The summoned creature magically appears in the hat and tries to get away from you as quickly as possible. The creature is neither friendly nor hostile, and it isn't under your control. It behaves as an ordinary creature of its kind and disappears after 1 hour or when it drops to 0 hit points. The hat regains all expended charges daily at dawn.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"hat of wizardry\"] = {\r\n\tname : \"Hat of Wizardry\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this antiquated, cone-shaped hat adorned with gold crescent moons and stars as a spellcasting focus for my wizard spells. Once per long rest, I can use it to cast a wizard cantrip that I don't know. To do so, I must make a DC 10 Intelligence (Arcana) check, wasting the attempt as well as my action if I fail.\",\r\n\tdescriptionFull : \"This antiquated, cone-shaped hat is adorned with gold crescent moons and stars. While you are wearing it, you gain the following benefits:\\n \\u2022 You can use the hat as a spellcasting focus for your wizard spells.\\n \\u2022 You can try to cast a cantrip that you don't know. The cantrip must be on the wizard spell list, and you must make a DC 10 Intelligence (Arcana) check. If the check succeeds, you cast the spell. If the check fails, so does the spell, and the action used to cast the spell is wasted. In either case, you can't use this property again until you finish a long rest.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility: \"wizard\",\r\n\tspellFirstColTitle: \"\",\r\n\tspellcastingPreparedCantrips: { 'class': 'wizard' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'wizard',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('hat of wizardry') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t],\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName.indexOf('hat of wizardry') !== -1) {\r\n\t\t\t\t\tspellObj.firstCol = \"\";\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n}\r\nMagicItemsList[\"heward's handy spice pouch\"] = {\r\n\tname : \"Heward's Handy Spice Pouch\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This belt pouch appears empty. It has 10 charges, regaining 1d6+4 expended charges at dawn. As an action while holding it, I can speak the name of any nonmagical food seasoning (e.g. salt, pepper, or saffron), and remove a pinch of the desired seasoning from the pouch. A pinch is enough to season a single meal.\",\r\n\tdescriptionFull : \"This belt pouch appears empty and has 10 charges. While holding the pouch, you can use an action to expend 1 of its charges, speak the name of any nonmagical food seasoning (such as salt, pepper, saffron, or cilantro), and remove a pinch of the desired seasoning from the pouch. A pinch is enough to season a single meal. The pouch regains 1d6+4 expended charges daily at dawn.\",\r\n\tweight : 1,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"horn of silent alarm\"] = {\r\n\tname : \"Horn of Silent Alarm\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This horn has 4 charges, regaining 1d4 expended charges daily at dawn. As an action, I can expend 1 charge and blow it, have only one creature within 600 ft of my choice hear the horn's blare, provided it isn't deafened. No other creature hears sound coming from the horn.\",\r\n\tdescriptionFull : \"This horn has 4 charges. When you use an action to blow it, one creature of your choice can hear the horn's blare, provided the creature is within 600 feet of the horn and not deafened. No other creature hears sound coming from the horn. The horn regains 1d4 expended charges daily at dawn.\",\r\n\tweight : 2,\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"instrument of illusions\"] = { // contains contributions by AelarTheElFRogue\r\n\tname : \"Instrument of Illusions\",\r\n\tsource : [[\"X\", 137]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"common\",\r\n\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 5-ft-radius (15-ft for bards) sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\",\r\n\tdescriptionFull : \"While you are playing this musical instrument, you can create harmless, illusory visual effects within a 5-foot-radius sphere centered on the instrument. If you are a bard, the radius increases to 15 feet. Sample visual effects include luminous musical notes, a spectral dancer, butterflies, and gently falling snow. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when you stop playing.\",\r\n\tattunement : true,\r\n\tweight : 3, // same as instrument of the bards\r\n\tchoices : [\"Bard (15-ft radius)\", \"Not a Bard (5-ft radius)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.bard ? \"bard (15-ft radius)\" : \"not a bard (5-ft radius)\";\r\n\t},\r\n\t\"bard (15-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A of Illusions\",\r\n\t\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 15-ft-radius sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\"\r\n\t},\r\n\t\"not a bard (5-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A\\u200A of Illusions\",\r\n\t\tdescription : \"While I am playing this musical instrument, I can create harmless, illusory visual effects within a 5-ft-radius sphere centered on the instrument. The magical effects have neither substance nor sound, and they are obviously illusory. The effects end when I stop playing.\"\r\n\t}\r\n}\r\nMagicItemsList[\"instrument of scribing\"] = {\r\n\tname : \"Instrument of Scribing\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 (or 7) words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\",\r\n\tdescriptionFull : \"This musical instrument has 3 charges. While you are playing it, you can use an action to expend 1 charge from the instrument and write a magical message on a nonmagical object or surface that you can see within 30 feet of you. The message can be up to six words long and is written in a language you know. If you are a bard, you can scribe an additional seven words and choose to make the message glow faintly, allowing it to be seen in nonmagical darkness. Casting Dispel Magic on the message erases it. Otherwise, the message fades away after 24 hours.\\n   The instrument regains all expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tweight : 3, // same as instrument of the bards\r\n\tchoices : [\"Bard (15-ft radius)\", \"Not a Bard (5-ft radius)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.bard ? \"bard (15-ft radius)\" : \"not a bard (5-ft radius)\";\r\n\t},\r\n\t\"bard (15-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A of Scribing\",\r\n\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 7 words in a language I know and I can have it glow faintly. Dispel Magic erases it, otherwise it fades away after 24 hours. This can be used 3 times per dawn.\"\r\n\t},\r\n\t\"not a bard (5-ft radius)\" : {\r\n\t\tname : \"Instrument\\u200A\\u200A of Scribing\",\r\n\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\"\r\n\t}\r\n}\r\nMagicItemsList[\"lock of trickery\"] = {\r\n\tname : \"Lock of Trickery\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This lock appears to be an ordinary lock and comes with a single key. The tumblers in this lock magically adjust to thwart burglars. Without the key, a creature proficient with thieves' tools can pick this lock with a successful DC 15 Dexterity check, but has disadvantage on that check.\",\r\n\tdescriptionFull : \"This lock appears to be an ordinary lock and comes with a single key. The tumblers in this lock magically adjust to thwart burglars. Dexterity checks made to pick the lock have disadvantage. Thus, without the key, a creature proficient with thieves' tools can pick this lock with a successful DC 15 Dexterity check, but has disadvantage on that check.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"moon-touched sword\"] = {\r\n\tname : \"Moon-Touched Sword\",\r\n\tnameTest : \"Moon-Touched\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"common\",\r\n\tdescription : \"In darkness, the unsheathed blade of this sword sheds moonlight, creating bright light in a 15-ft radius and dim light for an additional 15 ft.\",\r\n\tdescriptionFull : \"In darkness, the unsheathed blade of this sword sheds moonlight, creating bright light in a 15-foot radius and dim light for an additional 15 feet.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /moon.touched/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Moon-Touched\" in the name of a sword, it will be treated as the magic weapon Moon-Touched Sword.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"mystery key\"] = {\r\n\tname : \"Mystery Key\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"A question mark is worked into the head of this key. The key has a 5% chance of unlocking any lock into which it's inserted. Once it unlocks something, the key disappears.\",\r\n\tdescriptionFull : \"A question mark is worked into the head of this key. The key has a 5% chance of unlocking any lock into which it's inserted. Once it unlocks something, the key disappears.\"\r\n}\r\nMagicItemsList[\"orb of direction\"] = {\r\n\tname : \"Orb of Direction\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this orb, I can determine which way is north. This property functions only on the Material Plane.\",\r\n\tdescriptionFull : \"While holding this orb, you can use an action to determine which way is north. This property functions only on the Material Plane.\",\r\n\tweight : 3,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"orb of time\"] = {\r\n\tname : \"Orb of Time\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this orb, I can determine whether it is morning, afternoon, evening, or nighttime outside. This property functions only on the Material Plane.\",\r\n\tdescriptionFull : \"While holding this orb, you can use an action to determine whether it is morning, afternoon, evening, or nighttime outside. This property functions only on the Material Plane.\",\r\n\tweight : 3,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"perfume of bewitching\"] = {\r\n\tname : \"Perfume of Bewitching\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can apply the perfume in this tiny vial to myself and its effect lasts 1 hour. For the duration, I have advantage on all Charisma checks directed at humanoids of challenge rating 1 or lower. Those subjected to the perfume's effect are not aware that they've been influenced by magic.\",\r\n\tdescriptionFull : \"This tiny vial contains magic perfume, enough for one use. You can use an action to apply the perfume to yourself, and its effect lasts 1 hour. For the duration, you have advantage on all Charisma checks directed at humanoids of challenge rating 1 or lower. Those subjected to the perfume's effect are not aware that they've been influenced by magic.\"\r\n}\r\nMagicItemsList[\"pipe of smoke monsters\"] = {\r\n\tname : \"Pipe of Smoke Monsters\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while smoking this pipe, I can exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-ft cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\",\r\n\tdescriptionFull : \"While smoking this pipe, you can use an action to exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-foot cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\"\r\n}\r\nMagicItemsList[\"pole of angling\"] = {\r\n\tname : \"Pole of Angling\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While holding this 10 ft pole, I can speak a command word and transform it into a fishing pole with a hook, a line, and a reel. Speaking the command word again changes the fishing pole back into a normal 10 ft pole.\",\r\n\tdescriptionFull : \"While holding this 10-foot pole, you can speak a command word and transform it into a fishing pole with a hook, a line, and a reel. Speaking the command word again changes the fishing pole back into a normal 10-foot pole.\",\r\n\tweight : 7\r\n}\r\nMagicItemsList[\"pole of collapsing\"] = {\r\n\tname : \"Pole of Collapsing\",\r\n\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As an action while holding this 10 ft pole, I can speak a command word to have it collapse into a 1-ft-long rod. The pole's weight doesn't change. As an action while holding the rod, I can speak a different command word to have it elongate back to a pole, but only as long as the surrounding space allows.\",\r\n\tdescriptionFull : \"While holding this 10-foot pole, you can use an action to speak a command word and cause it to collapse into a 1-foot-long rod, for ease of storage. The pole's weight doesn't change. You can use an action to speak a different command word and cause the rod to revert to a pole; however, the rod will elongate only as far as the surrounding space allows.\",\r\n\tweight : 7,\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"pot of awakening\"] = {\r\n\tname : \"Pot of Awakening\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I plant an ordinary shrub in this 10 lb clay pot and let it grow for 30 days, the shrub magically transforms into an awakened shrub at the end of that time. When the shrub awakens, its roots break the pot, destroying it. The awakened shrub is friendly toward me. Absent commands from me, it does nothing.\",\r\n\tdescriptionFull : \"If you plant an ordinary shrub in this 10-pound clay pot and let it grow for 30 days, the shrub magically transforms into an awakened shrub at the end of that time. When the shrub awakens, its roots break the pot, destroying it.\\n   The awakened shrub is friendly toward you. Absent commands from you, it does nothing.\",\r\n\tweight : 10\r\n}\r\nMagicItemsList[\"rope of mending\"] = {\r\n\tname : \"Rope of Mending\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can cut this 50-foot coil of hempen rope into any number of smaller pieces, and then use an action to speak a command word and cause the pieces to knit back together. The pieces must be in contact with each other and not otherwise in use. A rope of mending is forever shortened if a section of it is lost.\",\r\n\tdescriptionFull : \"You can cut this 50-foot coil of hempen rope into any number of smaller pieces, and then use an action to speak a command word and cause the pieces to knit back together. The pieces must be in contact with each other and not otherwise in use. A rope of mending is forever shortened if a section of it is lost or destroyed.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweight : 10\r\n}\r\nMagicItemsList[\"ruby of the war mage\"] = {\r\n\tname : \"Ruby of the War Mage\",\r\n\tsource : [[\"X\", 138]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"By pressing this 1-inch-diameter ruby etched with eldritch runes to a simple or martial weapon for 10 minutes, it attaches itself to the weapon. I can then use that weapon as a spellcasting focus. Once attached, it can't be removed unless my attunement ends, I detach it as an action, or the weapon is destroyed.\",\r\n\tdescriptionFull : \"Etched with eldritch runes, this 1-inch-diameter ruby allows you to use a simple or martial weapon as a spellcasting focus for your spells. For this property to work, you must attach the ruby to the weapon by pressing the ruby against it for at least 10 minutes. Thereafter, the ruby can't be removed unless you detach it as an action or the weapon is destroyed. Not even an Antimagic Field causes it to fall off. The ruby does fall off the weapon if your attunement to the ruby ends.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; }\r\n}\r\nMagicItemsList[\"shield of expression\"] = {\r\n\tname : \"Shield of Expression\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"shield\",\r\n\trarity : \"common\",\r\n\tdescription : \"The front of this shield is shaped in the likeness of a face. As a bonus action while bearing the shield, I can have the shield alter the expression of the face.\",\r\n\tdescriptionFull : \"The front of this shield is shaped in the likeness of a face. While bearing the shield, you can use a bonus action to alter the face's expression.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Shield of Expression\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"smoldering armor\"] = {\r\n\tname : \"Smoldering Armor\",\r\n\tnameTest : \"Smoldering\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\trarity : \"common\",\r\n\tdescription : \"Wisps of harmless, odorless smoke rise from this armor while it is worn.\",\r\n\tdescriptionFull : \"Wisps of harmless, odorless smoke rise from this armor while it is worn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t}\r\n}\r\nMagicItemsList[\"staff of adornment\"] = {\r\n\tname : \"Staff of Adornment\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I place an object up to 1 lb above the tip of the staff while holding it, the object floats 1 inch from its tip and remains there until it is removed or until I no longer possess the staff. It can have up to three objects floating over its tip at any given time and I can make one or more objects slowly spin or turn in place.\",\r\n\tdescriptionFull : \"If you place an object weighing no more than 1 pound (such as a shard of crystal, an egg, or a stone) above the tip of the staff while holding it, the object floats an inch from the staff's tip and remains there until it is removed or until the staff is no longer in your possession. The staff can have up to three such objects floating over its tip at any given time. While holding the staff, you can make one or more of the objects slowly spin or turn in place.\",\r\n\tweight : 4\r\n}\r\nMagicItemsList[\"staff of birdcalls\"] = {\r\n\tname : \"Staff of Birdcalls\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"This staff has 10 charges, regaining 1d6+4 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can use 1 charge to create a sound out to a range of 60 ft: a finch's chirp, raven's caw, duck's quack, chicken's cluck, goose's honk, loon's call, turkey's gobble, seagull's cry, owl's hoot, or eagle's shriek.\",\r\n\tdescriptionFull : \"This wooden staff is decorated with bird carvings. It has 10 charges. While holding it, you can use an action to expend 1 charge from the staff and cause it to create one of the following sounds out to a range of 60 feet: a finch's chirp, a raven's caw, a duck's quack, a chicken's cluck, a goose's honk, a loon's call, a turkey's gobble, a seagull's cry, an owl's hoot, or an eagle's shriek.\\n   The staff regains 1d6+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff explodes in a harmless cloud of bird feathers and is lost forever.\",\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"staff of flowers\"] = {\r\n\tname : \"Staff of Flowers\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"staff\",\r\n\trarity : \"common\",\r\n\tdescription : \"This staff has 10 charges, regaining 1d6+4 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can use 1 charge to cause a flower of my choice to sprout from a patch of earth or soil within 5 ft or from the staff itself. The flower is nonmagical and grows or withers as a normal flower would.\",\r\n\tdescriptionFull : \"This wooden staff has 10 charges. While holding it, you can use an action to expend 1 charge from the staff and cause a flower to sprout from a patch of earth or soil within 5 feet of you, or from the staff itself. Unless you choose a specific kind of flower, the staff creates a mildscented daisy. The flower is harmless and nonmagical, and it grows or withers as a normal flower would. The staff regains 1d6+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff turns into flower petals and is lost forever.\",\r\n\tweight : 4,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"talking doll\"] = {\r\n\tname : \"Talking Doll\",\r\n\tsource : [[\"X\", 139], [\"WBtW\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"During a short rest with this doll within 5 ft of me, I can tell it to say up to 6 phrases of up to 6 words each, and set an observable condition under which the doll speaks each phrase. Conditions must happen within 5 ft of the doll. The doll can remember only 6 phrases that are lost when my attunement to it ends.\",\r\n\tdescriptionFull : \"While this stuffed doll is within 5 feet of you, you can spend a short rest telling it to say up to six phrases, none of which can be more than six words long, and set an observable condition under which the doll speaks each phrase. You can also replace old phrases with new ones. Whatever the condition, it must occur within 5 feet of the doll to make it speak. For example, whenever someone picks up the doll, it might say, \\\"I want a piece of candy.\\\" The doll's phrases are lost when your attunement to the doll ends.\"\r\n}\r\nMagicItemsList[\"tankard of sobriety\"] = {\r\n\tname : \"Tankard of Sobriety\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This tankard has a stern face sculpted into one side. I can drink ale, wine, or any other nonmagical alcoholic beverage poured into it without becoming inebriated. The tankard has no effect on magical liquids or harmful substances such as poison.\",\r\n\tdescriptionFull : \"This tankard has a stern face sculpted into one side. You can drink ale, wine, or any other nonmagical alcoholic beverage poured into it without becoming inebriated. The tankard has no effect on magical liquids or harmful substances such as poison.\",\r\n\tweight : 1\r\n}\r\nMagicItemsList[\"unbreakable arrow\"] = {\r\n\tname : \"Unbreakable Arrow\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"weapon (arrow)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This arrow can't be broken, except when it is within an Antimagic Field.\",\r\n\tdescriptionFull : \"This arrow can't be broken, except when it is within an Antimagic Field.\",\r\n\tweight : 0.05\r\n}\r\nMagicItemsList[\"veteran's cane\"] = {\r\n\tname : \"Veteran's Cane\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as a bonus action, I can grasp this walking cane and speak its command word to have it transform into an ordinary longsword. Once transformed, the longsword is nonmagical and can't revert back to a walking cane.\",\r\n\tdescriptionFull : \"When you grasp this walking cane and use a bonus action to speak the command word, it transforms into an ordinary longsword and ceases to be magical.\",\r\n\tweight : 4,\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"walloping ammunition\"] = {\r\n\tname : \"Walloping Ammunition\",\r\n\tnameTest : \"Walloping\",\r\n\tsource : [[\"X\", 139]],\r\n\ttype : \"weapon (any ammunition)\",\r\n\trarity : \"common\",\r\n\tdescription : \"This magic ammunition packs a wallop. A creature hit by the ammunition must succeed on a DC 10 Strength saving throw or be knocked prone.\",\r\n\tdescriptionFull : \"This ammunition packs a wallop. A creature hit by the ammunition must succeed on a DC 10 Strength saving throw or be knocked prone.\",\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"ammo\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"wand of conducting\"] = {\r\n\tname : \"Wand of Conducting\",\r\n\tsource : [[\"X\", 140]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regaining all at dawn. As an action, I can wave it around and expend 1 charge to create orchestral music that can be heard out to a range of 60 ft and ends when I stop waving the wand. If I use its last charge, roll a d20. On a 1, a sad tuba sound plays as the wand crumbles to dust.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and create orchestral music by waving it around. The music can be heard out to a range of 60 feet and ends when you stop waving the wand.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, a sad tuba sound plays as the wand crumbles to dust and is destroyed.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"wand of pyrotechnics\"] = {\r\n\tname : \"Wand of Pyrotechnics\",\r\n\tsource : [[\"X\", 140]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 7 charges, regaining 1d6+1 at dawn, 5% chance it is destroyed when its last charge is used. As an action, I can expend 1 charge to create a harmless burst of sound light at a point I can see up to 60 ft away, with the noise travelling 300 ft. The light is as bright as a torch flame but lasts only a second.\",\r\n\tdescriptionFull : \"This wand has 7 charges. While holding it, you can use an action to expend 1 of its charges and create a harmless burst of multicolored light at a point you can see up to 60 feet away. The burst of light is accompanied by a crackling noise that can be heard up to 300 feet away. The light is as bright as a torch flame but lasts only a second.\\n   The wand regains 1d6+1 expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand erupts in a harmless pyrotechnic display and is destroyed.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 7,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+1\"\r\n}\r\nMagicItemsList[\"wand of scowls\"] = {\r\n\tname : \"Wand of Scowls\",\r\n\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to scowl for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to scowl for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"wand of smiles\"] = {\r\n\tname : \"Wand of Smiles\",\r\n\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\ttype : \"wand\",\r\n\trarity : \"common\",\r\n\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to smile for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to smile for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\tweight : 1,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20180529_MToF.js",
    "content": "var iFileName = \"pub_20180529_MToF.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds all the player-material from Mordenkainen's Tome of Foes to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.MToF={\n\tname : \"Mordenkainen's Tome of Foes\",\n\tabbreviation : \"MToF\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://dnd.wizards.com/products/mordenkainens-tome-foes\",\n\tdate : \"2018/05/29\"\n};\n\n// Tiefling subraces\nRaceList[\"baalzebul tiefling\"] = {\n\tregExpSearch : /^(?=.*baalzebul)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Baalzebul tiefling\",\n\tsortname : \"Tiefling, Baalzebul\",\n\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\n\tplural : \"Baalzebul tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Baalzebul Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Maladomini:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Ray of Sickness once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Crown of Madness once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Maladomini (1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"ray of sickness\" : {\n\t\t\tname : \"Legacy of Maladomini (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Maladomini (3)\",\n\t\t\t\tspells : [\"ray of sickness\"],\n\t\t\t\tselection : [\"ray of sickness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"ray of sickness\" : {\n\t\t\t\t\tdescription : \"Spell attack for 3d8 Poison dmg; save or also poisoned until end of my next turn\",\n\t\t\t\t\tchanges : \"Using Legacy of Maladomini, I cast Ray of Sickness as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"crown of madness\" : {\n\t\t\tname : \"Legacy of Maladomini (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Maladomini (5)\",\n\t\t\t\tspells : [\"crown of madness\"],\n\t\t\t\tselection : [\"crown of madness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"dispater tiefling\"] = {\n\tregExpSearch : /^(?=.*dispater)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Dispater tiefling\",\n\tsortname : \"Tiefling, Dispater\",\n\tsource : [[\"MToF\", 21]],\n\tplural : \"Dispater tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 0, 2],\n\ttrait : \"Dispater Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Dis:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Disguise Self once per long rest.\\n   At 5th level, I can also cast Detect Thoughts once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Dis (level 1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"disguise self\" : {\n\t\t\tname : \"Legacy of Dis (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Dis (level 3)\",\n\t\t\t\tspells : [\"disguise self\"],\n\t\t\t\tselection : [\"disguise self\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t},\n\t\t\"detect thoughts\" : {\n\t\t\tname : \"Legacy of Dis (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Dis (level 5)\",\n\t\t\t\tspells : [\"detect thoughts\"],\n\t\t\t\tselection : [\"detect thoughts\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"fierna tiefling\"] = {\n\tregExpSearch : /^(?=.*fierna)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Fierna tiefling\",\n\tsortname : \"Tiefling, Fierna\",\n\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\n\tplural : \"Fierna tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 0, 1, 2],\n\ttrait : \"Fierna Tiefling (+1 Wisdom, +2 Charisma)\\n\\nLegacy of Phlegethos:\\n   I know the Friends cantrip.\\n   At 3rd level, I can cast Charm Person once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Suggestion once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Phlegethos (1)\",\n\t\tspells : [\"friends\"],\n\t\tselection : [\"friends\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"charm person\" : {\n\t\t\tname : \"Legacy of Phlegethos (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Phlegethos (3)\",\n\t\t\t\tspells : [\"charm person\"],\n\t\t\t\tselection : [\"charm person\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"charm person\" : {\n\t\t\t\t\tdescription : \"2 humanoids, max 30 ft apart, save or charmed; adv. on save if me/ally is fighting it\",\n\t\t\t\t\tchanges : \"Using Legacy of Phlegethos, I cast Charm Person as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"suggestion\" : {\n\t\t\tname : \"Legacy of Phlegethos (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Phlegethos (5)\",\n\t\t\t\tspells : [\"suggestion\"],\n\t\t\t\tselection : [\"suggestion\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"glasya tiefling\"] = {\n\tregExpSearch : /^(?=.*glasya)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Glasya tiefling\",\n\tsortname : \"Tiefling, Glasya\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Glasya tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 0, 2],\n\ttrait : \"Glasya Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Malbolge:\\n   I know the Minor Illusion cantrip.\\n   At 3rd level, I can cast Disguise Self once per long rest.\\n   At 5th level, I can also cast Invisibility once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Malbolge (1)\",\n\t\tspells : [\"minor illusion\"],\n\t\tselection : [\"minor illusion\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"disguise self\" : {\n\t\t\tname : \"Legacy of Malbolge (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Malbolge (3)\",\n\t\t\t\tspells : [\"disguise self\"],\n\t\t\t\tselection : [\"disguise self\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t},\n\t\t\"invisibility\" : {\n\t\t\tname : \"Legacy of Malbolge (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Malbolge (5)\",\n\t\t\t\tspells : [\"invisibility\"],\n\t\t\t\tselection : [\"invisibility\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"levistus tiefling\"] = {\n\tregExpSearch : /^(?=.*levistus)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Levistus tiefling\",\n\tsortname : \"Tiefling, Levistus\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Levistus tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 1, 0, 0, 2],\n\ttrait : \"Levistus Tiefling (+1 Constitution, +2 Charisma)\\n\\nLegacy of Stygia:\\n   I know the Ray of Frost cantrip.\\n   At 3rd level, I can cast Armor of Agathys once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Darkness once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Stygia (1)\",\n\t\tspells : [\"ray of frost\"],\n\t\tselection : [\"ray of frost\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"armor of agathys\" : {\n\t\t\tname : \"Legacy of Stygia (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Stygia (3)\",\n\t\t\t\tspells : [\"armor of agathys\"],\n\t\t\t\tselection : [\"armor of agathys\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"armor of agathys\" : {\n\t\t\t\t\tdescription : \"10 temp HP; as long as temp HP last any crea that hits in melee takes 10 Cold dmg\",\n\t\t\t\t\tchanges : \"Using Legacy of Stygia, I cast Armor of Agathys as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"darkness\" : {\n\t\t\tname : \"Legacy of Stygia (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Stygia (5)\",\n\t\t\t\tspells : [\"darkness\"],\n\t\t\t\tselection : [\"darkness\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"mammon tiefling\"] = {\n\tregExpSearch : /^(?=.*mammon)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Mammon tiefling\",\n\tsortname : \"Tiefling, Mammon\",\n\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\n\tplural : \"Mammon tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Mammon Tiefling (+1 Intelligence, +2 Charisma)\\nLegacy of Minauros:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast Tenser's Floating Disk once per short rest.\\n   At 5th level, I can also cast Arcane Lock without a material component once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Minauros (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"tenser's floating disk\" : {\n\t\t\tname : \"Legacy of Minauros (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Minauros (3)\",\n\t\t\t\tspells : [\"tenser's floating disk\"],\n\t\t\t\tselection : [\"tenser's floating disk\"],\n\t\t\t\tfirstCol : 'oncesr'\n\t\t\t}]\n\t\t},\n\t\t\"arcane lock\" : {\n\t\t\tname : \"Legacy of Minauros (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Minauros (5)\",\n\t\t\t\tspells : [\"arcane lock\"],\n\t\t\t\tselection : [\"arcane lock\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"arcane lock\" : {\n\t\t\t\t\tcomponents : \"V,S\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nRaceList[\"mephistopheles tiefling\"] = {\n\tregExpSearch : /^(?=.*mephistopheles)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Mephistopheles tiefling\",\n\tsortname : \"Tiefling, Mephistopheles\",\n\tsource : [[\"MToF\", 23]],\n\tplural : \"Mephistopheles tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 0, 2],\n\ttrait : \"Mephistopheles Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Cania:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast Burning Hands once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Flame Blade once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Cania (level 1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"burning hands\" : {\n\t\t\tname : \"Legacy of Cania (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Cania (level 3)\",\n\t\t\t\tspells : [\"burning hands\"],\n\t\t\t\tselection : [\"burning hands\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"burning hands\" : {\n\t\t\t\t\tdescription : \"All in area 4d6 Fire dmg; save halves; unattended flammable objects ignite\",\n\t\t\t\t\tchanges : \"Using Legacy of Cania, I cast Burning Hands as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"flame blade\" : {\n\t\t\tname : \"Legacy of Cania (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Cania (level 5)\",\n\t\t\t\tspells : [\"flame blade\"],\n\t\t\t\tselection : [\"flame blade\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\nRaceList[\"zariel tiefling\"] = {\n\tregExpSearch : /^(?=.*zariel)(?=.*tiefling|planetouched).*$/i,\n\tname : \"Zariel tiefling\",\n\tsortname : \"Tiefling, Zariel\",\n\tsource : [[\"MToF\", 23], [\"UA:FO\", 2]],\n\tplural : \"Zariel tieflings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Infernal\"],\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Fire\"],\n\tage : \" reach adulthood in their late teens and live around 100 years\",\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [1, 0, 0, 0, 0, 2],\n\ttrait : \"Zariel Tiefling (+1 Strength, +2 Charisma)\\n\\nLegacy of Avernus:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast Searing Smite once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast Branding Smite once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\n\tspellcastingAbility : 6,\n\tspellcastingBonus : [{\n\t\tname : \"Legacy of Avernus (1)\",\n\t\tspells : [\"thaumaturgy\"],\n\t\tselection : [\"thaumaturgy\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tfeatures : {\n\t\t\"searing smite\" : {\n\t\t\tname : \"Legacy of Avernus (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Avernus (3)\",\n\t\t\t\tspells : [\"searing smite\"],\n\t\t\t\tselection : [\"searing smite\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"searing smite\" : {\n\t\t\t\t\tdescription : \"Next melee weapon hit +2d6 Fire dmg and target ignites; save to end spell or 1d6 Fire dmg\",\n\t\t\t\t\tchanges : \"Using Legacy of Avernus, I cast Searing Smite as if I'm using a 2nd-level spell slot.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"branding smite\" : {\n\t\t\tname : \"Legacy of Avernus (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Legacy of Avernus (5)\",\n\t\t\t\tspells : [\"branding smite\"],\n\t\t\t\tselection : [\"branding smite\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}]\n\t\t}\n\t}\n};\n\n// Elf subraces\nRaceList[\"eladrin-mtof\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\n\tname : \"Eladrin\",\n\tsortname : \"Elf, Fey (Eladrin)\",\n\tsource : [[\"MToF\", 61]],\n\tplural : \"Eladrin\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 0, 0, 0, 1],\n\tabilitySave : 6,\n\ttrait : \"Eladrin (+2 Dexterity, +1 Charisma)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\",\n\t\t\"Fey Step: Once per short rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. Once I reach 3rd level, this gains an additional effect, based on the current season I'm aligned with. See the third page notes section for the effects.\",\n\t\t\"Shifting Seasons: After I finish a long rest, I can align myself with a season of my choice.\"\n\t]),\n\tfeatures : {\n\t\t\"fey step\" : {\n\t\t\tname : \"Fey Step\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Eladrin Season Features\",\n\t\tsource : [[\"MToF\", 62]],\n\t\tpopupName : \"Eladrin Shifting Season Features\",\n\t\tadditional : \"save DC 8 + Cha mod + Prof Bonus\",\n\t\tpage3notes : true,\n\t\tnote : \"\\n  \\u2022 Autumn (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" After using Fey Step, up to 2 creatures I can see within 10 ft of me must make a Wis save\",\n\t\t\t\" If failed, a target is charmed by me for 1 minute, or until I or my allies damage it\"\n\t\t]) + \"\\n  \\u2022 Winter (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" When I use Fey Step, one target in 5 ft of where I teleported from must make a Wis save\",\n\t\t\t\" If failed, it is frightened of me until the end of my next turn\"\n\t\t]) + \"\\n  \\u2022 Spring (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" When I use Fey Step, I can instead teleport one willing creature I touch within 5 ft of me\",\n\t\t\t\" It teleports to an unoccupied space of my choice that I can see within 30 ft of me\"\n\t\t]) + \"\\n  \\u2022 Summer (Eladrin Season, MToF 62)\" + desc([\n\t\t\t\" After using Fey Step, each creature of my choice within 5 ft of me takes fire damage\",\n\t\t\t\" This fire damage is equal to my Charisma modifier (minimum 1)\"\n\t\t])\n\t}]\n};\nRaceList[\"sea elf\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\n\tname : \"Sea elf\",\n\tsortname : \"Elf, Sea\",\n\tsource : [[\"MToF\", 62], [\"W\", 163], [\"UA:ES\", 1]],\n\tplural : \"Sea elves\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 30, enc : 20 }\n\t},\n\tweaponProfs : [false, false, [\"spear\", \"trident\", \"light crossbow\", \"net\"]],\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Aquan\", \"Friend of the Sea\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to almost 1,8 metres tall (140 + 5d8 cm)\",\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Sea Elf (+2 Dexterity, +1 Constitution)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\",\n\t\t\"Child of the Sea. I have 30 ft swimming speed and can breathe air and water.\",\n\t\t\"Friend of the Sea: Through sounds and gestures, I can communicate simple ideas with any beast that has an inborn swimming speed.\"\n\t])\n};\nRaceList[\"shadar-kai elf\"] = {\n\tregExpSearch : /^(?!.*half)((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\n\tname : \"Shadar-kai\",\n\tsortname : \"Elf, Shadow (Shadar-kai)\",\n\tsource : [[\"MToF\", 62]],\n\tplural : \"Shadar-kai\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tdmgres : [\"Necrotic\"],\n\tskills : [\"Perception\"],\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\n\theight : \" range from under 5 to over 6 feet tall (4'8\\\" + 2d8\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Shadar-kai (+2 Dexterity, +1 Constitution)\" + desc([\n\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\",\n\t\t\"Blessing of the Raven Queen: Once per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\",\n\t\t\"Once I reach 3rd level, after I use the Blessing of the Raven Queen, I appear translucent and have resistance to all damage until the start of my next turn.\"\n\t]),\n\tfeatures : {\n\t\t\"blessing of the raven queen\" : {\n\t\t\tname : \"Blessing of the Raven Queen\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t}\n};\n\n// Gith and its two subraces\nRaceList[\"githyanki-mtof\"] = {\n\tregExpSearch : /githyanki/i,\n\tname : \"Githyanki\",\n\tsource : [[\"MToF\", 96]],\n\tplural : \"Githyanki\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Gith\", 1],\n\tarmorProfs : [true, true, false, false],\n\tweaponProfs : [false, false, [\"shortsword\", \"longsword\", \"greatsword\"]],\n\tskillstxt : \"Choose any one skill or tool\",\n\tage : \" reach adulthood in their late teens and live for about a century\",\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (5'0\\\" + 2d12\\\")\",\n\tweight : \" weigh around 135 lb (100 + 2d12 \\xD7 2d4 lb)\",\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\n\tweightMetric : \" weigh around 61 kg (45 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [2, 0, 0, 1, 0, 0],\n\ttrait : \"Githyanki (+2 Strength, +1 Intelligence)\\n\" + (typePF ? \"\\n\" : \"\") + \"Githyanki Psionics:\" + desc([\n\t\t\"I know the Mage Hand cantrip, but the hand is invisible.\",\n\t\t\"At 3rd level, I can cast Jump once per long rest.\",\n\t\t\"At 5th level, I can also cast Misty Step once per long rest.\",\n\t\t\"Intelligence is my spellcasting ability for these spells.\",\n\t\t\"I don't require components to cast these spells.\"\n\t]),\n\tspellcastingAbility : 4,\n\tspellcastingBonus : [{\n\t\tname : \"Githyanki Psionics (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"mage hand\" : {\n\t\t\tcomponents : \"\",\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\n\t\t\tchanges : \"Using Githyanki Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\n\t\t}\n\t},\n\tfeatures : {\n\t\t\"jump\" : {\n\t\t\tname : \"Githyanki Psionics (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githyanki Psionics (3)\",\n\t\t\t\tspells : [\"jump\"],\n\t\t\t\tselection : [\"jump\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"jump\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Jump once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"misty step\" : {\n\t\t\tname : \"Githyanki Psionics (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githyanki Psionics (5)\",\n\t\t\t\tspells : [\"misty step\"],\n\t\t\t\tselection : [\"misty step\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"misty step\" : {\n\t\t\t\t\tcomponents : SpellsList[\"misty step\"].components + \"*\",\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Misty Step once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"githyanki-mtof\", \"tool proficiency\", {\n\tregExpSearch : /tool proficiency/i,\n\tskillstxt : \"\",\n\ttoolProfs : [[\"Any tool\", 1]]\n});\nAddRacialVariant(\"githyanki-mtof\", \"skill proficiency\", {\n\tregExpSearch : /skill proficiency/i,\n\tskillstxt : \"Choose any one skill\"\n});\nRaceList[\"githzerai-mtof\"] = {\n\tregExpSearch : /githzerai/i,\n\tname : \"Githzerai\",\n\tsource : [[\"MToF\", 96]],\n\tplural : \"Githzerai\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Gith\"],\n\tage : \" reach adulthood in their late teens and live for about a century\",\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (4'11\\\" + 2d12\\\")\",\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\n\tscores : [0, 0, 0, 1, 2, 0],\n\ttrait : \"Githzerai (+1 Intelligence, +2 Wisdom)\\n\" + (typePF ? \"\\n\" : \"\") + \"Githzerai Psionics:\" + desc([\n\t\t\"I know the Mage Hand cantrip, but the hand is invisible.\",\n\t\t\"At 3rd level, I can cast Shield once per long rest.\",\n\t\t\"At 5th level, I can also cast Detect Thoughts once per long rest.\",\n\t\t\"Wisdom is my spellcasting ability for these spells.\",\n\t\t\"I don't require components to cast these spells.\"\n\t]),\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\n\tspellcastingAbility : 5,\n\tspellcastingBonus : [{\n\t\tname : \"Githzerai Psionics (1)\",\n\t\tspells : [\"mage hand\"],\n\t\tselection : [\"mage hand\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"mage hand\" : {\n\t\t\tcomponents : \"\",\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\n\t\t\tchanges : \"Using Githzerai Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\n\t\t}\n\t},\n\tfeatures : {\n\t\t\"shield\" : {\n\t\t\tname : \"Githzerai Psionics (level 3)\",\n\t\t\tminlevel : 3,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githzerai Psionics (3)\",\n\t\t\t\tspells : [\"shield\"],\n\t\t\t\tselection : [\"shield\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"shield\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Shield once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"detect thoughts\" : {\n\t\t\tname : \"Githzerai Psionics (level 5)\",\n\t\t\tminlevel : 5,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Githzerai Psionics (5)\",\n\t\t\t\tspells : [\"detect thoughts\"],\n\t\t\t\tselection : [\"detect thoughts\"],\n\t\t\t\tfirstCol : 'oncelr'\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"detect thoughts\" : {\n\t\t\t\t\tcomponents : \"\",\n\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Detect Thoughts once per long rest without requiring components.\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n// [dupl_start] Reprint from Sword Coast Adventure Guide\nif (!RaceList[\"gray dwarf\"]) { \n\tRaceList[\"gray dwarf\"] = {\n\t\tregExpSearch : /^((?=.*\\bduergars?\\b)|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(grey|gray|underdark)\\b))).*$/i,\n\t\tname : \"Duergar\",\n\t\tsortname : \"Dwarf, Gray (Duergar)\",\n\t\tsource : [[\"S\", 104], [\"MToF\", 81]],\n\t\tplural : \"Duergar\",\n\t\tsize : 3,\n\t\tspeed : {\n\t\t\twalk : { spd : 25, enc : 25 }\n\t\t},\n\t\tlanguageProfs : [\"Common\", \"Dwarvish\", \"Undercommon\"],\n\t\tvision : [[\"Darkvision\", 120], [\"Sunlight Sensitivity\", 0]],\n\t\tsavetxt : { adv_vs : [\"charmed\", \"illusions\", \"paralyzed\", \"poison\"] },\n\t\tdmgres : [\"Poison\"],\n\t\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\n\t\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\n\t\tage : \" are considered young until they are 50 and live about 350 years\",\n\t\theight : \" stand between 4 and 5 feet tall (3'8\\\" + 2d4\\\")\",\n\t\tweight : \" weigh around 150 lb (115 + 2d4 \\xD7 2d6 lb)\",\n\t\theightMetric : \" stand between 1,2 and 1,5 metres tall (110 + 5d4 cm)\",\n\t\tweightMetric : \" weigh around 70 kg (55 + 5d4 \\xD7 4d6 / 10 kg)\",\n\t\tscores : [1, 0, 2, 0, 0, 0],\n\t\ttrait : \"Duergar (+2 Constitution, +1 Strength)\\nStonecunning: Whenever I make an Int (History) check related to the origin of stonework, I am considered proficient in the skill and add double my proficiency bonus to the check.\\nSunlight Sensitivity: Disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when I or what I am trying to attack/perceive is in direct sunlight.\\nDuergar Magic: 3rd: Enlarge/Reduce to enlarge; 5th: Invisibility. If not in direct sunlight,\" + (!typePF ? \"\\n\" : \" \") + \"I can cast both spells on myself once per long rest without material components, using Int.\",\n\t\tspellcastingAbility : 4,\n\t\tfeatures : {\n\t\t\t\"enlarge\" : {\n\t\t\t\tname : \"Duergar Magic (level 3)\",\n\t\t\t\tminlevel : 3,\n\t\t\t\tspellcastingBonus : [{\n\t\t\t\t\tname : \"Duergar Magic (level 3)\",\n\t\t\t\t\tspells : [\"enlarge/reduce\"],\n\t\t\t\t\tselection : [\"enlarge/reduce\"],\n\t\t\t\t\tfirstCol : 'oncelr'\n\t\t\t\t}],\n\t\t\t\tspellChanges : {\n\t\t\t\t\t\"enlarge/reduce\" : {\n\t\t\t\t\t\tname : \"Enlarge\",\n\t\t\t\t\t\trange : \"Self\",\n\t\t\t\t\t\tcomponents : \"V,S\",\n\t\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\t\tdescription : \"I'm enlarged, adv. on Str checks/aves and +1d4 on weapon dmg; Can't cast this in direct sunlight\",\n\t\t\t\t\t\tchanges : \"Using Duergar Magic, I cast Enlarge/Reduce while I'm not in direct sunlight, but only to enlarge myself.\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"invisibility\" : {\n\t\t\t\tname : \"Duergar Magic (level 5)\",\n\t\t\t\tminlevel : 5,\n\t\t\t\tspellcastingBonus : [{\n\t\t\t\t\tname : \"Duergar Magic (level 5)\",\n\t\t\t\t\tspells : [\"invisibility\"],\n\t\t\t\t\tselection : [\"invisibility\"],\n\t\t\t\t\tfirstCol : 'oncelr'\n\t\t\t\t}],\n\t\t\t\tspellChanges : {\n\t\t\t\t\t\"invisibility\" : {\n\t\t\t\t\t\trange : \"Self\",\n\t\t\t\t\t\tcomponents : \"V,S\",\n\t\t\t\t\t\tcompMaterial : \"\",\n\t\t\t\t\t\tdescription : \"I and worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\",\n\t\t\t\t\t\tchanges : \"Me and my worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n// Reprint from Elemental Evil Player's Companion and Sword Coast Adventure Guide\nif (!RaceList[\"deep gnome\"]) {\n\tRaceList[\"deep gnome\"] = {\n\t\tregExpSearch : /^((?=.*svirfneblin)|((?=.*\\bgnomes?\\b)(?=.*\\b(underdarks?|deep|depths?)\\b))).*$/i,\n\t\tname : \"Svirfneblin\",\n\t\tsortname : \"Gnome, Deep (Svirfneblin)\",\n\t\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 113]],\n\t\tplural : \"Svirfneblin\",\n\t\tsize : 4,\n\t\tspeed : {\n\t\t\twalk : { spd : 25, enc : 15 }\n\t\t},\n\t\tlanguageProfs : [\"Common\", \"Gnomish\", \"Undercommon\"],\n\t\tvision : [[\"Darkvision\", 120]],\n\t\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\n\t\tage : \" are considered full-grown adults when they reach 25 and live 200 to 250 years\",\n\t\theight : \" stand between 3 and 3 1/2 feet tall (2'9\\\" + 2d4\\\")\",\n\t\tweight : \" weigh around 90 lb (80 + 2d4 \\xD7 1d4 lb)\",\n\t\theightMetric : \" stand between 90 and 105 cm tall (85 + 5d4 cm)\",\n\t\tweightMetric : \" weigh around 50 kg (35 + 5d4 \\xD7 4d4 / 10 kg)\",\n\t\tscores : [0, 1, 0, 2, 0, 0],\n\t\ttrait : \"Svirfneblin (+1 Dexterity, +2 Intelligence)\\n\\nStone Camouflage:\\n   I have advantage on Dexterity (stealth) checks to hide in rocky terrain.\"\n\t};\n}\n// Feat reprint from Elemental Evil Player's Companion\nif (!FeatsList[\"svirfneblin magic\"]) {\n\tFeatsList[\"svirfneblin magic\"] = {\n\t\tname : \"Svirfneblin Magic\",\n\t\tsource : [[\"E\", 7], [\"S\", 115], [\"MToF\", 114]],\n\t\tprerequisite : \"Being a Svirfneblin (Deep Gnome)\",\n\t\tprereqeval : function(v) { return CurrentRace.known === 'deep gnome'; },\n\t\tdescriptionFull : \"You have inherited the innate spellcasting ability of your ancestors. This ability allows you to cast Nondetection on yourself at will, without needing a material component. You can also cast each of the following spells once with this ability: Blindness/Deafness, Blur, and Disguise Self. You regain the ability to cast these spells when you finish a long rest.\\n   Intelligence is your spellcasting ability for these spells, and you cast them at their lowest possible levels.\",\n\t\tdescription : \"I can cast Nondetection on myself at will, without a material component. I can also cast the spells Blindness/Deafness, Blur, and Disguise Self once each. I regain the ability to cast these spells when I finish a long rest. Intelligence is my spellcasting ability for these spells.\",\n\t\tspellcastingBonus : [{\n\t\t\tname : \"at will (self only)\",\n\t\t\tspellcastingAbility : 4,\n\t\t\tspells : [\"nondetection\"],\n\t\t\tselection : [\"nondetection\"],\n\t\t\tfirstCol : 'atwill'\n\t\t}, {\n\t\t\tname : \"1\\xD7 long rest (self only)\",\n\t\t\tspells : [\"blindness/deafness\", \"blur\", \"disguise self\"],\n\t\t\tselection : [\"blindness/deafness\", \"blur\", \"disguise self\"],\n\t\t\tfirstCol : 'oncelr',\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : {\n\t\t\t\"nondetection\" : {\n\t\t\t\trange : \"Self\",\n\t\t\t\tcomponents : \"V,S\",\n\t\t\t\tcompMaterial : \"\",\n\t\t\t\tdescription : \"I am hidden from all divination magic\",\n\t\t\t\tchanges : \"Using Svirfneblin Magic, I can cast Nondetection without a material component, but only on myself.\"\n\t\t\t}\n\t\t}\n\t};\n} // dupl_end\n\n// Magic Items\nMagicItemsList[\"greater silver sword\"] = {\n\tname : \"Greater Silver Sword\",\n\tsource : [[\"MToF\", 89]],\n\ttype : \"weapon (greatsword)\",\n\trarity : \"legendary\",\n\tdescription : \"This magic greatsword gives +1 to hit and damage. While holding it, I have adv. on Int, Wis, and Cha saves, immunity to being charmed, and resistance to psychic damage. If I score a critical hit with it on a creature's astral body, I can cut the cord tethering it to its material body, instead of dealing damage.\",\n\tdescriptionFull : \"This magic weapon grants a +3 bonus to attack and damage rolls made with it. While you hold the sword, you have advantage on Intelligence, Wisdom, and Charisma saving throws, you are immune to being charmed, and you have resistance to psychic damage. In addition, if you score a critical hit with it against a creature's astral body, you can cut the silvery cord that tethers the target to its material body, instead of dealing damage.\",\n\tattunement : true,\n\tweight : 6,\n\tprerequisite : \"Requires attunement by a creature that has psionic ability\",\n\tprereqeval : function (v) {\n\t\tif (!v.isSpellcaster) return false;\n\t\tif ((/psion|mystic/i).test(What(\"Racial Traits\"))) return true;\n\t\tfor (var aCast in CurrentSpells) {\n\t\t\tvar spCast = CurrentSpells[aCast];\n\t\t\tif ((/psion|mystic/i).test(spCast.name) || (spCast.list && spCast.list.psionic)) return true;\n\t\t\tif (!spCast.bonus) continue;\n\t\t\tfor (var aBon in spCast.bonus) {\n\t\t\t\tif ((/psion|mystic/i).test(aBon) || (/psion|mystic/i).test(spCast.bonus[aBon].name)) return true;\n\t\t\t}\n\t\t}\n\t},\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greatsword\",\n\t\tregExpSearch : /^(?=.*greater)(?=.*silver)(?=.*sword).*$/i,\n\t\tname : \"Greater Silver Sword\",\n\t\tsource : [[\"MToF\", 89]],\n\t\tdescription : \"Heavy, two-handed; On crit vs. astral body, cut cord instead of damage\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}],\n\tsavetxt : { text : [\"Adv. on Int, Wis, and Cha saves\"], immune : [\"charmed\"] },\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]],\n\tdmgres : [\"Psychic\"]\n}\nMagicItemsList[\"infernal tack\"] = {\n\tname : \"Infernal Tack\",\n\tsource : [[\"MToF\", 167], [\"DiA\", 224]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tnotLegalAL : true,\n\tdescription : \"While wearing the spurs of this set, the nightmare equipped with the bridle, bit, reins, saddle, and stirrups is under my command. As an action, I can have it appear in 20 ft at the start of my next turn. It acts on as my ally on my initiative, remains for 1 day, until I or it dies, or I dismiss it as an action. If it dies, it reforms in 24 h.\",\n\tdescriptionLong : \"This tack consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with the tack serves whoever wears the spurs until the wearer dies or the tack is removed. As an action, I can clash the spurs together or scrape them through blood, causing the nightmare to appear within 20 ft at the start of my next turn. It acts as my ally on my initiative count, remains for 1 day, until I or it dies, or until I dismiss it as an action. If it dies, it reforms within 24 hours, after which I can summon it again. The tack doesn't create a nightmare from thin air; one must first be subdued so the tack can be placed on it.\",\n\tdescriptionFull : \"A narzugon binds a nightmare to its service with infernal tack, which consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with infernal tack must serve whoever wears the spurs until the wearer dies or the tack is removed.\\n   You can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of your next turn, within 20 feet of you. It acts as your ally and takes its turn on your initiative count. It remains for 1 day, until you or it dies, or until you dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which you can summon it again.\\n   The tack doesn't conjure a nightmare from thin air; one must first be subdued so the tack can be placed on it. No nightmare accepts this forced servitude willingly, but some eventually form strong loyalties to their masters and become true partners in evil.\",\n\tattunement : true,\n\tweight : 26, // riding saddle (25) + bit and bridle (1)\n\tprerequisite : \"Requires attunement by a creature of evil alignment\",\n\tprereqeval : function(v) { return (/evil/i).test(What(\"Alignment\")); },\n\taction : [[\"action\", \"\"]],\n\tcreaturesAdd : [[\"Nightmare\", true,\n\tfunction (AddRemove, prefix) {\n\t\tif (!AddRemove) return;\n\t\t// Show equipment section\n\t\tMakeCompMenu_CompOptions(prefix, [\"companion\", \"visible\", \"comp.eqp\"], true);\n\t\t// Add equipment when added\n\t\tvar equip = [\"bit and bridle\", \"riding\"];\n\t\tfor (var i = 0; i < equip.length; i++) {\n\t\t\tvar gear = GearList[equip[i]];\n\t\t\tif (!gear) continue;\n\t\t\tAddToInv(prefix + \"comp\", \"l\", gear.name, gear.amount, gear.weight, \"\", false, false, false, false);\n\t\t}\n\t\t// Add notes\n\t\tvar note = \"I can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of my next turn, within 20 ft of me.\\nThe nightmare acts as my ally and takes its turn on my initiative count. It remains for 1 day, until I or it dies, or until I dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which I can summon it again.\";\n\t\tValue(prefix + \"Comp.eqp.Notes\", What(\"Unit System\") === \"metric\" ? ConvertToMetric(note, 0.5) : note);\n\t}]]\n}\n"
  },
  {
    "path": "WotC material/pub_20180723_WGtE_dupl.js",
    "content": "var iFileName = \"pub_20180723_WGtE.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the content from Wayfinder's Guide to Eberron to MPMB's Character Record Sheet\r\n// Be aware that this script is for the version from 9th of October 2018, not the original version, \r\n// nor the updated version of November 2019 that uses the identical rules to Eberron: Rising from the Last War.\r\n\r\n// Define the sources\r\nSourceList.WGtE = {\r\n\tname : \"Wayfinder's Guide to Eberron (2018)\",\r\n\tabbreviation : \"WGtE\",\r\n\tgroup : \"Playtest Material\",\r\n\turl : \"https://www.dmsguild.com/product/247882/Wayfinders-Guide-to-Eberron-5e\",\r\n\tdate : \"2018/10/09\" // the original is from 2018/07/23, but this script is based on the newer version that includes (most of) the UA:Dragonmark changes, but not on the latest version that is identical to what is in Eberron: Rising from the Last War\r\n};\r\n\r\nif (!SourceList[\"UA:RoE\"]) {\r\n\t// The changeling\r\n\tRaceList[\"changeling-ua2\"] = {\r\n\t\tregExpSearch : /changeling/i,\r\n\t\tname : \"Changeling\",\r\n\t\tsource : [[\"WGtE\", 61], [\"UA:RoE\", 2]],\r\n\t\tplural : \"Changelings\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tskillstxt : \"Choose two from Deception, Intimidation, Insight, and Persuasion\",\r\n\t\tlanguageProfs : [\"Common\", 2],\r\n\t\ttoolProfs : [[\"Any tool\", 1]],\r\n\t\tage : \" reach adulthood in their early teens and live around 80 years\",\r\n\t\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\r\n\t\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\r\n\t\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\t\tscorestxt : \"+2 Charisma, and +1 Dexterity or +1 Intelligence\",\r\n\t\tscores : [0, 0, 0, 0, 0, 2],\r\n\t\ttrait : \"Changeling (+2 Charisma, and +1 Dexterity or +1 Intelligence)\\nChange Appearance: As an action, I can polymorph to or from a humanoid form of my size I have seen, not changing my equipment. I revert back if I die and have adv. on Deception.\\nUnsettling Visage: As a reaction once per short rest when I'm attacked by a seen attacker, I can impose disadv. Doing this reveals my shapeshifting nature to all within 30 ft.\\nDivergent Persona: I have proficiency with one tool, and an alternate persona. While in the alternate form, my proficiency bonus with that tool is doubled.\",\r\n\t\taction : [[\"action\", \"Change Appearance\"]],\r\n\t\tfeatures : {\r\n\t\t\t\"unsettling visage\" : {\r\n\t\t\t\tname : \"Unsettling Visage\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// The kalashtar\r\n\tRaceList[\"kalashtar-ua\"] = { //this code includes contributions by /u/SoilentBrad\r\n\t\tregExpSearch : /kalashtar/i,\r\n\t\tname : \"Kalashtar\",\r\n\t\tsource : [[\"WGtE\", 63], [\"UA:RoE\", 4]],\r\n\t\tplural : \"Kalashtar\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tskillstxt : \"Advantage with either Insight, Intimidation, Performance, or Persuasion\",\r\n\t\tlanguageProfs : [\"Common\", \"Quori\", 1],\r\n\t\tsavetxt : { immune : [\"effects that require me to dream\"] },\r\n\t\tdmgres : [\"Psychic\"],\r\n\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\theight : \" range from 5 and a half to well over 6 feet tall (5'4\\\" + 2d6\\\")\",\r\n\t\tweight : \" weigh around 145 lb (110 + 2d6 \\xD7 1d6 lb)\",\r\n\t\theightMetric : \" range from 1,7 to 1,9 metres tall (160 + 5d6 cm)\",\r\n\t\tweightMetric : \" weigh around 65 kg (50 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Wisdom, +1 Charisma, and +1 to one other ability score of my choice\",\r\n\t\tscores : [0, 0, 0, 0, 1, 1],\r\n\t\ttrait : \"Kalashtar (+1 Wisdom, +1 Charisma, and +1 to one other\" + (typePF ? \"\" : \" ability score of my choice\") + \")\\nDual Mind: As a reaction after I roll a Wis\" + (typePF ? \" save, I can gain adv.\" : \"dom saving throw, I can gain advantage\") + \" on it.\\nMind Link: I can speak telepathically to any creature I can see within 60 ft, as long as it can speak at least one language. As a bonus action, I can give that creature the ability to speak telepathically back to me until the start of my next turn.\\nPsychic Glamour: I have adv. on Insight, Intimidation, Performance, or Persuasion checks.\\nSevered from Dreams: I don't dream and thus immune to spells that affect dreams.\",\r\n\t\taction : [['bonus action', 'Mind Link'], ['reaction', 'Dual Mind']]\r\n\t};\r\n\r\n\t// The four subraces of the shifter\r\n\tRaceList[\"beasthide shifter-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*shifter)(?=.*beast)(?=.*hide).*$/i,\r\n\t\tname : \"Beasthide shifter\",\r\n\t\tsortname : \"Shifter, Beasthide\",\r\n\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\r\n\t\tplural : \"Beasthide shifters\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskills : [\"Athletics\", \"Perception\"],\r\n\t\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\t\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 1, 2, 0, 0, 0],\r\n\t\ttrait : \"Beasthide Shifter: (+1 Dexterity, +2 Constitution)\\n\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to 1d6 + my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have a +1 bonus to AC\",\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"longtooth shifter-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*shifter)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\tname : \"Longtooth shifter\",\r\n\t\tsortname : \"Shifter, Longtooth\",\r\n\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\r\n\t\tplural : \"Longtooth shifters\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\"],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\t\tname : \"Longtooth Fangs\",\r\n\t\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Only while shifted; One attack as bonus action\",\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskills : [\"Intimidation\", \"Perception\"],\r\n\t\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\t\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [2, 1, 0, 0, 0, 0],\r\n\t\ttrait : \"Longtooth Shifter: (+2 Strength, +1 Dexterity)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I use my elongated fangs to make unarmed strikes, dealing 1d6 piercing damage. As a bonus action, I can maken one attack with my fangs.\",\r\n\t\taction : ['bonus action', 'Attack with Longtooth Fangs'],\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"swiftstride shifter-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*shifter)(?=.*swift)(?=.*stride).*$/i,\r\n\t\tname : \"Swiftstride shifter\",\r\n\t\tsortname : \"Shifter, Swiftstride\",\r\n\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\r\n\t\tplural : \"Swiftstride shifters\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 35, enc : 25 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskills : [\"Acrobatics\", \"Perception\"],\r\n\t\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\t\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 2, 0, 0, 0, 1],\r\n\t\ttrait : \"Swiftstride Shifter: (+2 Dexterity, +1 Charisma)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nWhile transformed like this, my walking speed increases with 5 ft.\\nAs a reaction when an enemy ends its turn within 5 ft of me while I'm shifted, I can move 10 ft without provoking opportunity attacks.\",\r\n\t\taction : ['reaction', 'Stride (while shifted)'],\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"wildhunt shifter-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*shifter)(?=.*wild)(?=.*hunt).*$/i,\r\n\t\tname : \"Wildhunt shifter\",\r\n\t\tsortname : \"Shifter, Wildhunt\",\r\n\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\r\n\t\tplural : \"Wildhunt shifters\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskills : [\"Perception\", \"Survival\"],\r\n\t\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\t\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 1, 0, 0, 2, 0],\r\n\t\ttrait : \"Wildhunt Shifter: (+1 Dexterity, +2 Wisdom)\\nShifting: As a bonus action once per short rest, I can transform and get adv. on Wis checks.\" + (typePF ? \" \" : \"\\n\") + \"This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nMark the Scent: As a bonus action once per short rest, I can mark a creature that I can see within 10 ft. Until the end of my next long rest, my proficiency bonus is doubled for checks to find this target, and I always know its location if it is within 60 ft of me.\",\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t},\r\n\t\t\t\"mark the scent\" : {\r\n\t\t\t\tname : \"Mark the Scent\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// The three subraces of the warforged\r\n\tRaceList[\"envoy warforged-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*warforged)(?=.*envoy).*$/i,\r\n\t\tname : \"Envoy warforged\",\r\n\t\tsortname : \"Warforged, Envoy\",\r\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\tplural : \"Envoy warforged\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", 1],\r\n\t\ttoolProfs : [[\"Any tool\", 1]],\r\n\t\tskillstxt : \"Choose any one skill, any one tool, and expertise with any one tool I'm proficient with\",\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\r\n\t\t\tadv_vs : [\"poison\"]\r\n\t\t},\r\n\t\tdmgres : [\"Poison\"],\r\n\t\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\r\n\t\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\t\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\t\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\t\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Constitution and +1 to two other ability scores of my choice\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\ttrait : \"Envoy Warforged (+1 Constitution and +1 to two other abilit\" + (typePF ? \"ies\" : \"y scores of my choice\") + \")\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nIntegrated Tool: I have expertise with one tool and it is integrated into my body.\",\r\n\t\teval : function() {\r\n\t\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\r\n\t\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\r\n\t\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\r\n\t\t\t} else {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\r\n\t\t\t};\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\r\n\t\t\t\ttDoc.resetForm(['AC Armor Description']);\r\n\t\t\t};\r\n\t\t},\r\n\t\tarmorAdd : { select : \"\" },\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\r\n\t\t\tname : \"Darkwood core\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\tac : 11\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\r\n\t\t\tname : \"Darkwood core (Prof)\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\tac : \"11+Prof\"\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\r\n\t\t\tname : \"Composite plating\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : \"13+Prof\",\r\n\t\t\tdex : 2\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\r\n\t\t\tname : \"Heavy plating\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\ttype : \"heavy\",\r\n\t\t\tac : \"16+Prof\",\r\n\t\t\tstealthdis : true\r\n\t\t}]\r\n\t};\r\n\tRaceList[\"juggernaut warforged-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*warforged)(?=.*juggernaut).*$/i,\r\n\t\tname : \"Juggernaut warforged\",\r\n\t\tsortname : \"Warforged, Juggernaut\",\r\n\t\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\r\n\t\tplural : \"Juggernaut warforged\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\"],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*warforged)(?=.*iron)(?=.*fists?).*$/i,\r\n\t\t\tname : \"Warforged Iron Fists\",\r\n\t\t\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\r\n\t\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\r\n\t\t\tadv_vs : [\"poison\"]\r\n\t\t},\r\n\t\tdmgres : [\"Poison\"],\r\n\t\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\r\n\t\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\t\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\t\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\t\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\t\tscores : [2, 0, 1, 0, 0, 0],\r\n\t\ttrait : \"Juggernaut Warforged (+2 Strength, +1 Constitution)\" + (typePF ? \"\" : \" Iron Fists: unarmed strikes do 1d4.\") + \"\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nPowerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\" + (typePF ? \" Iron Fists: My unarmed strikes do 1d4 damage.\" : \"\"),\r\n\t\tcarryingCapacity : 2,\r\n\t\teval : function() {\r\n\t\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\r\n\t\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\r\n\t\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\r\n\t\t\t} else {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\r\n\t\t\t};\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\r\n\t\t\t\ttDoc.resetForm(['AC Armor Description']);\r\n\t\t\t};\r\n\t\t},\r\n\t\tarmorAdd : { select : \"\" },\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\r\n\t\t\tname : \"Darkwood core\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\tac : 11\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\r\n\t\t\tname : \"Darkwood core (Prof)\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\tac : \"11+Prof\"\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\r\n\t\t\tname : \"Composite plating\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : \"13+Prof\",\r\n\t\t\tdex : 2\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\r\n\t\t\tname : \"Heavy plating\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\ttype : \"heavy\",\r\n\t\t\tac : \"16+Prof\",\r\n\t\t\tstealthdis : true\r\n\t\t}]\r\n\t};\r\n\tRaceList[\"skirmisher warforged-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*warforged)(?=.*skirmisher).*$/i,\r\n\t\tname : \"Skirmisher warforged\",\r\n\t\tsortname : \"Warforged, Skirmisher\",\r\n\t\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\r\n\t\tplural : \"Skirmisher warforged\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 35, enc : 25 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\"],\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\r\n\t\t\tadv_vs : [\"poison\"]\r\n\t\t},\r\n\t\tdmgres : [\"Poison\"],\r\n\t\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\r\n\t\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\t\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\t\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\t\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\t\tscores : [0, 2, 1, 0, 0, 0],\r\n\t\ttrait : \"Skirmisher Warforged (+2 Dexterity, +1 Constitution)\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nLight Step: If I travel alone for an hour or more, I can move stealthily at a normal pace.\",\r\n\t\teval : function() {\r\n\t\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\r\n\t\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\r\n\t\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\r\n\t\t\t} else {\r\n\t\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\r\n\t\t\t};\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\r\n\t\t\t\ttDoc.resetForm(['AC Armor Description']);\r\n\t\t\t};\r\n\t\t},\r\n\t\tarmorAdd : { select : \"\" },\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\r\n\t\t\tname : \"Darkwood core\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\tac : 11\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\r\n\t\t\tname : \"Darkwood core (Prof)\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\tac : \"11+Prof\"\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\r\n\t\t\tname : \"Composite plating\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : \"13+Prof\",\r\n\t\t\tdex : 2\r\n\t\t}, {\r\n\t\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\r\n\t\t\tname : \"Heavy plating\",\r\n\t\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\r\n\t\t\ttype : \"heavy\",\r\n\t\t\tac : \"16+Prof\",\r\n\t\t\tstealthdis : true\r\n\t\t}]\r\n\t};\r\n}\r\n\r\n// Elf Variants\r\nif (RaceList[\"wood elf\"]) {\r\n\tAddRacialVariant(\"wood elf\", \"aereni\", {\r\n\t\tregExpSearch : /aereni/i,\r\n\t\tname : \"Aereni wood elf\",\r\n\t\tsource : [[\"WGtE\", 73]],\r\n\t\tplural : \"Aereni wood elves\",\r\n\t\tweaponProfs : \"\",\r\n\t\tskillstxt : \"Proficiency and expertise with any one skill or tool\",\r\n\t\ttrait : \"Aereni \" + RaceList[\"wood elf\"].trait\r\n\t});\r\n\tAddRacialVariant(\"wood elf\", \"valenar\", {\r\n\t\tregExpSearch : /valenar/i,\r\n\t\tname : \"Valenar wood elf\",\r\n\t\tsource : [[\"WGtE\", 73]],\r\n\t\tplural : \"Valenar wood elves\",\r\n\t\tweaponProfs : [false, false, [\"scimitar\", \"double-bladed scimitar\", \"longbow\", \"shortbow\"]],\r\n\t\ttrait : \"Valenar \" + RaceList[\"wood elf\"].trait\r\n\t});\r\n}\r\nAddRacialVariant(\"high elf\", \"aereni\", {\r\n\tregExpSearch : /aereni/i,\r\n\tname : \"Aereni high elf\",\r\n\tsource : [[\"WGtE\", 73]],\r\n\tplural : \"Aereni high elves\",\r\n\tweaponProfs : \"\",\r\n\tskillstxt : \"Proficiency and expertise with any one skill or tool\",\r\n\ttrait : \"Aereni \" + RaceList[\"high elf\"].trait\r\n});\r\nAddRacialVariant(\"high elf\", \"valenar\", {\r\n\tregExpSearch : /valenar/i,\r\n\tname : \"Valenar high elf\",\r\n\tsource : [[\"WGtE\", 73]],\r\n\tplural : \"Valenar high elves\",\r\n\tweaponProfs : [false, false, [\"scimitar\", \"double-bladed scimitar\", \"longbow\", \"shortbow\"]],\r\n\ttrait : \"Valenar \" + RaceList[\"high elf\"].trait\r\n});\r\n\r\n// Double bladed scimitar\r\nif (!WeaponsList[\"double-bladed scimitar\"]){\r\n\tWeaponsList[\"double-bladed scimitar\"] = {\r\n\t\tregExpSearch : /^(?=.*double)(?=.*scimitar).*$/i,\r\n\t\tname : \"Double-bladed scimitar\",\r\n\t\tnameAlt : [\"Scimitar, Double-bladed\"],\r\n\t\tsource : [[\"E:RLW\", 22], [\"WGtE\", 74]],\r\n\t\tlist : \"melee\",\r\n\t\tability : 1,\r\n\t\ttype : \"Martial\",\r\n\t\tdamage : [2, 4, \"slashing\"],\r\n\t\trange : \"Melee\",\r\n\t\tweight : 6,\r\n\t\tdescription : \"Two-handed; With Attack action, one attack as bonus action for 1d4\",\r\n\t\tspecial : true,\r\n\t\tabilitytodamage : true\r\n};\r\n}\r\n// Revenant blade feat\r\nFeatsList[\"revenant blade-wgte\"] = {\r\n\tname : \"Revenant Blade\",\r\n\tsource : [[\"WGtE\", 74]],\r\n\tprerequisite : \"Being an Elf\",\r\n\tprereqeval : function(v) { return (/^(?!.*half)(?=.*(elf|eladrin|avariel|grugach|shadar-kai)).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You are descended from a master of the double blade and their skills have passed on to you. You gain the following benefits:\\n \\u2022 Increase your Dexterity or Strength score by 1, to a maximum of 20.\\n \\u2022 While wielding a double-bladed weapon with two hands, the weapon has the finesse trait for your attacks with it, and you gain +1 AC.\\n \\u2022 On your turn, when you use a bonus action to make a melee attack with the blade at the opposite end of the weapon, the weapon's damage die for this attack increases to 2d4, instead of 1d4.\",\r\n\tdescription : \"As a bonus action with the Attack action, I can make an extra with a double-bladed weapon for 2d4 slashing damage. I treat double-bladed weapons as having the finesse trait. +1 AC while wielding a double-bladed weapon with two hands. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\taction : [[\"bonus action\", \" (with Attack action)\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'double-bladed scimitar' && fields.Proficiency) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace('Two-handed; With Attack action, one attack as bonus action for 1d4', 'Finesse, two-handed; With Attack action, one attack as bonus action');\r\n\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"Double-bladed weapons count as having finesse for me and I can make an extra attack with them as a bonus action when taking the Attack action.\"\r\n\t\t]\r\n\t},\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm wielding a double-bladed weapon in two hands.\",\r\n\t\tstopeval : function (v) { return v.usingShield && !(/animated/i).test(What(\"AC Shield Bonus Description\")) || !CurrentWeapons.known.some(function (n) { return n[0] == \"double-bladed scimitar\" || (WeaponsList[n[0]] && WeaponsList[n[0]].baseWeapon == \"double-bladed scimitar\"); }); }\r\n\t}\r\n};\r\n\r\n// Creature\r\nCreatureList[\"clawfoot raptor\"] = {\r\n\tname : \"Clawfoot Raptor\",\r\n\tsource : [[\"WGtE\", 81]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 16,\r\n\thd : [3, 8],\r\n\tspeed : \"50 ft\",\r\n\tscores : [17, 17, 13, 2, 12, 10],\r\n\tskills : {\r\n\t\t\"athletics\" : 5,\r\n\t\t\"perception\" : 5,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tpassivePerception : 15,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claw\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 30 ft straight in the same round, see Pounce trait\"\r\n\t}, {\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Can be used in combination with claw while pouncing (see Pounce trait)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the clawfoot moves at least 30 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the clawfoot can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\n\r\n// House Agent backgrounds\r\nif (!BackgroundList[\"house agent\"]) {\r\n\tBackgroundList[\"house agent\"] = { // the default is House Cannith\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*(noble|cannith)).*$/i,\r\n\t\tname : \"Agent of House Cannith\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tskills : [\"Investigation\", \"Persuasion\"],\r\n\t\tgold : 20,\r\n\t\tequipleft : [[\"Signet ring of house Cannith\", \"\", \"\"]],\r\n\t\tequipright : [\r\n\t\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t\t[\"ID papers\", \"\", \"\"],\r\n\t\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t\t],\r\n\t\tfeature : \"House Connections\",\r\n\t\ttrait : [\r\n\t\t\t\"I never let emotion complicate work.\",\r\n\t\t\t\"I'm always looking to improve efficiency.\",\r\n\t\t\t\"I share trivia about my house's business (medicine, ships, warforged).\",\r\n\t\t\t\"I hold myself and anyone I work with to extremely high standards.\",\r\n\t\t\t\"I never forget an insult made against myself or my house.\",\r\n\t\t\t\"I'm very excited and enthusiastic about everything my house does.\",\r\n\t\t\t\"I'm representing my house and take great pride in my personal appearance.\",\r\n\t\t\t\"I'm critical of monarchies and opposed to any restrictions on the houses.\"\r\n\t\t],\r\n\t\tideal : [\r\n\t\t\t[\"Common Good\",\r\n\t\t\t\t\"Common Good: My house serves a vital function, and its prosperity will help everyone. (Good)\"\r\n\t\t\t],\r\n\t\t\t[\"Tradition\",\r\n\t\t\t\t\"Tradition: I uphold traditions of my house and bring honor to my family. (Lawful)\"\r\n\t\t\t],\r\n\t\t\t[\"Innovation\",\r\n\t\t\t\t\"Innovation: Abandon old traditions and find better ways to do things. (Chaotic)\"\r\n\t\t\t],\r\n\t\t\t[\"Power\",\r\n\t\t\t\t\"Power: I want to ensure the prosperity of my house and wield its power myself. (Evil)\"\r\n\t\t\t],\r\n\t\t\t[\"Discovery\",\r\n\t\t\t\t\"Discovery: I want to learn all I can, both for my house and for my own curiosity. (Any)\"\r\n\t\t\t],\r\n\t\t\t[\"Comfort\",\r\n\t\t\t\t\"Comfort: I want to ensure that me and friends of mine enjoy the best things in life. (Any)\"\r\n\t\t\t]\r\n\t\t],\r\n\t\tbond : [\r\n\t\t\t\"My house is my family, and I would do anything for my family.\",\r\n\t\t\t\"I love someone from another house, but the relationship is forbidden.\",\r\n\t\t\t\"Someone I love was killed by a rival faction within my house, and I will have revenge.\",\r\n\t\t\t\"I don't care about the house as a whole, but I would do anything for my old mentor.\",\r\n\t\t\t\"I believe my house needs to evolve to survive, and I need to lead that change.\",\r\n\t\t\t\"I'm determined to impress the leaders of my house, and to become a leader myself.\"\r\n\t\t],\r\n\t\tflaw : [\r\n\t\t\t\"I'm overly concerned with following established procedures and protocols.\",\r\n\t\t\t\"I'm obsessed with conspiracy theories and worried about secret societies and hidden demons.\",\r\n\t\t\t\"I believe that my house and bloodline makes me better than everyone else.\",\r\n\t\t\t\"I'm concealing a secret that could get me driven from my house.\",\r\n\t\t\t\"I have strong religious beliefs that aren't widespread in my house.\",\r\n\t\t\t\"I'm working for a hidden faction in my house that gives me secret assignments.\"\r\n\t\t],\r\n\t\textra : [\r\n\t\t\t\"Select an House Agent Role\",\r\n\t\t\t\"Acquisition\",\r\n\t\t\t\"Investigation\",\r\n\t\t\t\"Research \\u0026 Development\",\r\n\t\t\t\"Security\",\r\n\t\t\t\"Intimidation\",\r\n\t\t\t\"Exploration\",\r\n\t\t\t\"Negotiation\",\r\n\t\t\t\"Covert Operations\"\r\n\t\t],\r\n\t\ttoolProfs : [\"Alchemist's supplies\", \"Tinker's tools\"]\r\n\t};\r\n\tAddBackgroundVariant(\"house agent\", \"deneith\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*deneith).*$/i,\r\n\t\tname : \"Agent of House Deneith\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Deneith\", \"\", \"\"]],\r\n\t\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"ghallanda\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*ghallanda).*$/i,\r\n\t\tname : \"Agent of House Ghallanda\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Ghallanda\", \"\", \"\"]],\r\n\t\ttoolProfs : [\"Brewer's supplies\", \"Cook's utensils\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"jorasco\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*jorasco).*$/i,\r\n\t\tname : \"Agent of House Jorasco\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Jorasco\", \"\", \"\"]],\r\n\t\ttoolProfs : [\"Alchemist's supplies\", \"Herbalism kit\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"kundarak\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*kundarak).*$/i,\r\n\t\tname : \"Agent of House Kundarak\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Kundarak\", \"\", \"\"]],\r\n\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"lyrandar\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*lyrandar).*$/i,\r\n\t\tname : \"Agent of House Lyrandar\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Lyrandar\", \"\", \"\"]],\r\n\t\ttoolProfs : [\"Navigator's tools\", \"Vehicles (sea/air)\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"medani\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*medani).*$/i,\r\n\t\tname : \"Agent of House Medani\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Medani\", \"\", \"\"]],\r\n\t\ttoolProfs : [\"Disguise kit\", [\"Thieves' tools\", \"Dex\"]]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"orien\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*orien).*$/i,\r\n\t\tname : \"Agent of House Orien\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Orien\", \"\", \"\"]],\r\n\t\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"phiarlan\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*phiarlan).*$/i,\r\n\t\tname : \"Agent of House Phiarlan\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Phiarlan\", \"\", \"\"]],\r\n\t\ttoolProfs : [\"Disguise kit\", [\"Musical instrument\", 1]]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"sivis\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*sivis).*$/i,\r\n\t\tname : \"Agent of House Sivis\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Sivis\", \"\", \"\"]],\r\n\t\ttoolProfs : [\"Calligrapher's tools\", \"Forgery kit\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"tharashk\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*tharashk).*$/i,\r\n\t\tname : \"Agent of House Tharashk\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Tharashk\", \"\", \"\"]],\r\n\t\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"thuranni\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*thuranni).*$/i,\r\n\t\tname : \"Agent of House Thuranni\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Thuranni\", \"\", \"\"]],\r\n\t\ttoolProfs : [[\"Musical instrument\", 1], \"Poisoner's kit\"]\r\n\t});\r\n\tAddBackgroundVariant(\"house agent\", \"vadalis\", {\r\n\t\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*vadalis).*$/i,\r\n\t\tname : \"Agent of House Vadalis\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\t\tequipleft : [[\"Signet ring of house Vadalis\", \"\", \"\"]],\r\n\t\ttoolProfs : [\"Herbalism kit\", \"Vehicles (land)\"]\r\n\t});\r\n\tBackgroundFeatureList[\"house connections\"] = {\r\n\t\tdescription : \"As an agent of my house, I can always get food and lodging for my friends at a house enclave. My house usually provides me with necessary supplies and transportation if it assigns me a mission. I have many old friends, mentors, and rivals in my house that I might run into and be willing to help me depending on my current standing in the house.\",\r\n\t\tsource : [[\"E:RLW\", 53], [\"WGtE\", 95]]\r\n\t};\r\n}\r\n\r\n// Dragonmarks subraces\r\nRaceList[\"dragonmark passage human-wgte\"] = { // different than UA: Dragonmarks\r\n\tregExpSearch : /^((?=.*mark)(?=.*passage)|(?=.*house)(?=.*orien)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Passage (Human)\",\r\n\tsource : [[\"WGtE\", 102]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity and +1 to another ability score of my choice\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Passage (+2 Dexterity and +1 to another ability score)\\n   Intuitive Motion: I can add my Intuition Die (1d4) to my Strength (Athletics) checks and any ability checks involving operating or maintaining a land vehicle.\\n   Determined Stride: When I use the Dash action, difficult terrain doesn't cost me extra movement for that turn.\\n   Shared Passage: As a bonus action once per long rest, I can teleport myself and a willing ally within 5 ft a distance up to my walking speed to an unoccupied space I can see.\",\r\n\tfeatures : {\r\n\t\t\"shared passage\" : {\r\n\t\t\tname : \"Shared Passage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nif (!SourceList[\"UA:D\"]) {\r\n\tRaceList[\"dragonmark detection half-elf-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*detection)|(?=.*house)(?=.*medani)).*$/i,\r\n\t\tname : \"Half-elf (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Detection (Half-Elf)\",\r\n\t\tsource : [[\"WGtE\", 96], [\"UA:D\", 2]],\r\n\t\tplural : \"Half-elves (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\tadv_vs : [\"charmed\"]\r\n\t\t},\r\n\t\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\t\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\t\tscores : [0, 0, 0, 1, 0, 1],\r\n\t\ttrait : \"Half-Elf, Dragonmark of Detection (+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Deductive Intuition: I can add my Intuition Die (1d4) to my Intelligence (Investigation) and Wisdom (Insight) checks.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Sense Threats: I can cast Detect Magic and Detect Poison and Disease as rituals using Intelligence as my spellcasting ability.\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Sense Threats\",\r\n\t\t\tspells : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\tselection : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"detect magic\" : {\r\n\t\t\t\ttime : \"10 min\",\r\n\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t},\r\n\t\t\t\"detect poison and disease\" : {\r\n\t\t\t\ttime : \"10 min\",\r\n\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"dragonmark finding half-orc-ua\"] = {\r\n\t\tregExpSearch : /^(?=.*half)(?=.*\\bor(c|k))((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk)).*$/i,\r\n\t\tname : \"Half-orc (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Finding (Half-Orc)\",\r\n\t\tsource : [[\"WGtE\", 97], [\"UA:D\", 2]],\r\n\t\tplural : \"Half-orcs (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tage : \" reach adulthood around age 14 and rarely live longer than 75 years\",\r\n\t\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\t\tscores : [1, 0, 0, 0, 1, 0],\r\n\t\ttrait : \"Half-Orc, Dragonmark of Finding (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Hunter's Intuition: I add my Intuition Die (1d4) to my Perception and Survival checks.\\n   Imprint Prey: As a bonus action once per short rest, I imprint a target I can see in 30 ft or with a Survival check when tracking it, lasting until it dies or I use this again. I double my Intuition Die for tracking it, sense its general location in 60 ft, my attacks vs. it ignore half cover and don't have disadv. if I can't see it, and it has no adv. vs. me if I can't see it.\\n\" + (typePF ? \"Nature's Voice: cast Locate Animals/Plants as a ritual from 3rd level.\" : \"   Nature's Voice: Once I reach 3rd level, I can cast Locate Animals or Plants as a ritual.\"),\r\n\t\tfeatures : {\r\n\t\t\t\"imprint prey\" : {\r\n\t\t\t\tname : \"Imprint Prey\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"locate animals or plants\" : {\r\n\t\t\t\tname : \"Locate Animals or Plants\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Nature's Voice\",\r\n\t\t\t\t\tspells : [\"locate animals or plants\"],\r\n\t\t\t\t\tselection : [\"locate animals or plants\"],\r\n\t\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"locate animals or plants\" : {\r\n\t\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"dragonmark handling human-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*handling)|(?=.*house)(?=.*vadalis)).*$/i,\r\n\t\tname : \"Human (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Handling (Human)\",\r\n\t\tsource : [[\"WGtE\", 98], [\"UA:D\", 3]],\r\n\t\tplural : \"Humans (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", 1],\r\n\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Dexterity, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\t\tscores : [0, 1, 0, 0, 1, 0],\r\n\t\ttrait : \"Human, Dragonmark of Handling (+1 Dex\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"terity, +1 Wisdom, +1 to any one ability score\") + \")\\n   Wild Intuition: I can add my Intuition Die (1d4) to my Wisdom (Animal Handling) and Intelligence (Nature) checks.\\n   Expert Handling: I can use the Help action to aid an ally animal companion or mount even when they are within 30 ft of me, rather than just within 5 ft.\\n   Primal Connection: Once per short rest, I can cast Animal Friendship using Wisdom \" + (typePF ? \"as my spellcasting ability\" : \"\") + \".\\n   \" + (typePF ? \"The Bigger They Are: My spells that normally affect only beasts now also affect monstrosities with an Intelligence of 3 or lower.\" : \"Bigger They Are: My spells that affect only beasts, also affect monstrosities with Int < 4.\"),\r\n\t\tspellcastingAbility : 5,\r\n\t\tfeatures : {\r\n\t\t\t\"animal friendship\" : {\r\n\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\tlimfeaname : \"Animal Friendship\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\t\tspells : [\"animal friendship\"],\r\n\t\t\t\t\tselection : [\"animal friendship\"],\r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\tcase \"animal friendship\" :\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"beasts\", \"beasts/monstrosities\");\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\tcase \"beast bond\" :\r\n\t\t\t\t\t\t\tspellObj.description = \"Telepathic link with 1 beast/monstrosity Int<4 while in sight; it has adv. on atks vs. crea I can see\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\tcase \"beast sense\" :\r\n\t\t\t\t\t\t\tspellObj.description = \"Use senses of 1 willing monstrosity Int<4 or beast; I'm blinded and deafened while doing so\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\tcase \"dominate beast\" :\r\n\t\t\t\t\t\t\tspellObj.description = \"1 monstrosity Int<4 or beast save or charmed, follows telepathic commands, 1 a for complete control\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\tcase \"speak with animals\" :\r\n\t\t\t\t\t\t\tspellObj.description = \"Communicate verbally with monstrosities Int<4 or beasts for duration; interactions limited by their Int\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"Spells I cast that only affect beasts can also affect monstrosities with an Intelligence score of 3 or lower.\"\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\tRaceList[\"dragonmark healing halfling-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*healing)|(?=.*house)(?=.*jorasco)).*$/i,\r\n\t\tname : \"Halfling (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Healing (Halfling)\",\r\n\t\tsource : [[\"WGtE\", 99], [\"UA:D\", 3]],\r\n\t\tplural : \"Halflings (dragonmark)\",\r\n\t\tsize : 4,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 15 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\t\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\t\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\t\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\t\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\t\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\t\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\t\tscores : [0, 2, 0, 0, 1, 0],\r\n\t\ttrait : \"Halfling, Dragonmark of Healing (+2 Dexterity, +1 Wisdom)\" + (typePF ? \"\\n  \" : \"\") +\r\n\t\t\t\" Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\" + desc([\r\n\t\t\t\"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\",\r\n\t\t\t\"Medical Intuition: I \" + (typePF ? \"\" : \"can\") + \" add my Intuition Die (1d4) to \" + (typePF ? \"Medicine\" : \"my Wisdom (Medicine)\") + \" checks.\",\r\n\t\t\t\"Healing Touch: As an action once per short rest, I can spend one of my Hit Dice to heal myself or a creature I touch. I heal the roll of the die plus my Wisdom modifier.\",\r\n\t\t\t\"Jorasco's Blessing: I know the Spare the Dying cantrip.\"\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"healing touch\" : {\r\n\t\t\t\tname : \"Healing Touch\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Jorasco's Blessing\",\r\n\t\t\tspells : [\"spare the dying\"],\r\n\t\t\tselection : [\"spare the dying\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}]\r\n\t};\r\n\tRaceList[\"dragonmark hospitality halfling-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*hospitality)|(?=.*house)(?=.*ghallanda)).*$/i,\r\n\t\tname : \"Halfling (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Hospitality (Halfling)\",\r\n\t\tsource : [[\"WGtE\", 100], [\"UA:D\", 4]],\r\n\t\tplural : \"Halflings (dragonmark)\",\r\n\t\tsize : 4,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 15 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\t\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\t\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\t\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\t\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\t\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\t\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\t\tscores : [0, 2, 0, 0, 0, 1],\r\n\t\ttrait : \"Halfling, Dragonmark of Hospitality (+2 Dexterity, +1 Charisma)\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\nHalfling Nimbleness: I can move through the space of Medium and larger creatures.\\nEver Hospitable: I can add my Intuition Die (1d4) to my Charisma (Persuasion) checks and ability checks involving brewer's supplies or cook's utensils.\\nInnkeeper's Charms: I know Friends and Prestidigitation with Cha as my spellcasting ability.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Innkeeper's Charms\",\r\n\t\t\tspells : [\"friends\", \"prestidigitation\"],\r\n\t\t\tselection : [\"friends\", \"prestidigitation\"],\r\n\t\t\tfirstCol : 'atwill',\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t};\r\n\tRaceList[\"dragonmark making human-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*making)|(?=.*house)(?=.*cannith)).*$/i,\r\n\t\tname : \"Human (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Making (Human)\",\r\n\t\tsource : [[\"WGtE\", 101], [\"UA:D\", 4]],\r\n\t\tplural : \"Humans (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", 1],\r\n\t\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Dexterity, +1 Intelligence, and another +1 to either Dexterity or Intelligence\",\r\n\t\tscores : [0, 1, 0, 1, 0, 0],\r\n\t\ttrait : \"Human, Dragonmark of Making (+1 Dex\" + (typePF ? \", +2 Int or +2 Dex, +1 Int\" : \"terity, +1 Intelligence, +1 to Dex or Int, my choice\") + \")\\nArtisan's Intuition: I can add my Intuition Die (1d4) to ability checks with artisan's tools.\\nMagecraft: I can create a magic item that gives me the ability to cast one wizard cantrip of my choice, using Intelligence as my spellcasting ability. This works while the item is in my possession. At the end of a long rest, I can replace it with a new item and cantrip.\\nSpellsmith: Once per long rest, I can spend 1 minute to make a nonmagical armor or weapon gain a +1 bonus for the next hour. Maker's Gift: I know the mending cantrip.\",\r\n\t\tfeatures : {\r\n\t\t\t\"spellsmith\" : {\r\n\t\t\t\tname : \"Spellsmith\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\teval : function () {\r\n\t\t\tCurrentSpells['dragonmark making human'] = {\r\n\t\t\t\tname : 'Human (dragonmark)',\r\n\t\t\t\tability : 4,\r\n\t\t\t\tlist : { 'class' : 'wizard', level : [0, 0] },\r\n\t\t\t\tknown : { cantrips : 1, spells : 'list' },\r\n\t\t\t\tbonus : {\r\n\t\t\t\t\tbonus1 : {\r\n\t\t\t\t\t\tname : \"Maker's Gift\",\r\n\t\t\t\t\t\tspells : ['mending'],\r\n\t\t\t\t\t\tselection : ['mending'],\r\n\t\t\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\ttypeList : 2,\r\n\t\t\t\trefType : \"race\"\r\n\t\t\t};\r\n\t\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tdelete CurrentSpells['dragonmark making human'];\r\n\t\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t\t}\r\n\t};\r\n\tRaceList[\"dragonmark scribing gnome-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*scribing)|(?=.*house)(?=.*sivis)).*$/i,\r\n\t\tname : \"Gnome (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Scribing (Gnome)\",\r\n\t\tsource : [[\"WGtE\", 103], [\"UA:D\", 5]],\r\n\t\tplural : \"Gnomes (dragonmark)\",\r\n\t\tsize : 4,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 15 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Gnomish\", 1],\r\n\t\ttoolProfs : [\"Calligrapher's supplies\", \"Forgery kits\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\t\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\t\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\t\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\t\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\t\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 2, 0, 1],\r\n\t\ttrait : \"Gnome, Dragonmark of Scribing (+2 Intelligence, +1 Charisma)\\n   Gifted Scribe: I can add my Intuition Die (1d4) to ability checks involving calligrapher's supplies or forgery kits. I am proficient with both of these tools.\\n   Whispering Wind: I know the Message cantrip.\\n   Scribe's Insight: I can cast Comprehend Languages once per long rest.\\nIntelligence is my spellcasting ability for the spells gained from being a gnome, dragonmark of scribing.\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Whispering Wind\",\r\n\t\t\tspells : [\"message\"],\r\n\t\t\tselection : [\"message\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"comprehend languages\" : {\r\n\t\t\t\tname : \"Scribe's Insight\",\r\n\t\t\t\tlimfeaname : \"Comprehend Languages\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Scribe's Insight\",\r\n\t\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"dragonmark sentinel human-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*sentinel)|(?=.*house)(?=.*deneith)).*$/i,\r\n\t\tname : \"Human (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Sentinel (Human)\",\r\n\t\tsource : [[\"WGtE\", 104], [\"UA:D\", 5]],\r\n\t\tplural : \"Humans (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", 1],\r\n\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\t\tscores : [1, 0, 0, 0, 1, 0],\r\n\t\ttrait : \"Human, Dragonmark of Sentinel (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Sentinel's Intuition: I can add my Intuition Die (1d4) to Initiative rolls and my Wisdom (Perception) checks.\\n   Sentinel's Shield: I know the Blade Ward cantrip. I can cast Shield once per short rest.\\n   Vigilant Guardian: As an action, I can designate an ally as my ward, gaining adv. on Insight and Perception checks to spot threats to it. As a reaction when I see my ward being attacked while within 5 ft, I can swap places with it, becoming the target of the attack.\",\r\n\t\taction : [['action', 'Vigilant Guardian (designate ward)'], ['reaction', 'Vigilant Guardian (swap with ward)']],\r\n\t\tfeatures : {\r\n\t\t\t\"shield\" : {\r\n\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\tlimfeaname : \"Shield\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\t\tspells : [\"blade ward\"],\r\n\t\t\t\t\tselection : [\"blade ward\"],\r\n\t\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"dragonmark shadow elf-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*shadow)|(?=.*house)(?=.*(phiarlan|thuranni))).*$/i,\r\n\t\tname : \"Elf (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Shadow (Elf)\",\r\n\t\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\t\tplural : \"Elves (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\tadv_vs : [\"charmed\"]\r\n\t\t},\r\n\t\tskills : [\"Perception\"],\r\n\t\tskillstxt : \"Perception and proficiency with either Performance or one musical instrument\",\r\n\t\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\t\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\t\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\t\tscores : [0, 2, 0, 0, 0, 1],\r\n\t\ttrait : \"Elf, Dragonmark of Shadow (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nGift of the Shadows: I can add my Intuition Die (1d4) to Performance and Stealth checks.\\nShape Shadows: I know the Minor Illusion cantrip using Charisma as my spellcasting ability.\\nSlip Into Shadow: As a bonus action once per short rest, I can use the Hide action even while I have no cover or if I'm being observed.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Shape Shadows\",\r\n\t\t\tspells : [\"minor illusion\"],\r\n\t\t\tselection : [\"minor illusion\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"slip into shadow\" : {\r\n\t\t\t\tname : \"Slip Into Shadow\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAddRacialVariant(\"dragonmark shadow elf-ua\", \"performance, \", {\r\n\t\tregExpSearch : /performance/i,\r\n\t\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\t\tskills : [\"Perception\", \"Performance\"],\r\n\t\tskillstxt : \"\"\r\n\t});\r\n\tAddRacialVariant(\"dragonmark shadow elf-ua\", \"musical instrument, \", {\r\n\t\tregExpSearch : /musical instrument/i,\r\n\t\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\t\tskillstxt : \"\",\r\n\t\ttoolProfs : [[\"Musical instrument\", 1]]\r\n\t});\r\n\tRaceList[\"dragonmark storm half-elf-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*storm)|(?=.*house)(?=.*lyrandar)).*$/i,\r\n\t\tname : \"Half-elf (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Storm (Half-Elf)\",\r\n\t\tsource : [[\"WGtE\", 106], [\"UA:D\", 6]],\r\n\t\tplural : \"Half-elves (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 },\r\n\t\t\tswim : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Lightning\"],\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\tadv_vs : [\"charmed\"]\r\n\t\t},\r\n\t\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\t\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscorestxt : \"+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\t\tscores : [0, 1, 0, 0, 0, 1],\r\n\t\ttrait : \"Half-Elf, Dragonmark of Storm (+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Windwright's Intuition: I can add my Intuition Die (1d4) to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a water or air vehicle.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Headwinds: I know the Gust cantrip. Once I reach 3rd level, I can cast Gust of Wind once per long rest. Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 6, // Not mentioned in WGtE, but essential!\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Headwinds (level 1)\",\r\n\t\t\tspells : [\"gust\"],\r\n\t\t\tselection : [\"gust\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"gust of wind\" : {\r\n\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\tlimfeaname : \"Gust of Wind\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"dragonmark warding dwarf-ua\"] = {\r\n\t\tregExpSearch : /^((?=.*mark)(?=.*warding)|(?=.*house)(?=.*kundarak)).*$/i,\r\n\t\tname : \"Dwarf (dragonmark)\",\r\n\t\tsortname : \"Dragonmark, Warding (Dwarf)\",\r\n\t\tsource : [[\"WGtE\", 108], [\"UA:D\", 7]],\r\n\t\tplural : \"Dwarves (dragonmark)\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 25 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : { adv_vs : [\"poison\"] },\r\n\t\tdmgres : [\"Poison\"],\r\n\t\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\t\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\t\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\t\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\t\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\t\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [0, 1, 2, 1, 0, 0],\r\n\t\ttrait : \"Dwarf, Dragonmark of Warding (+1 Dex\" + (typePF ? \", +2 Con, +1 Int\" : \"terity, +2 Constitution, +1 Intelligence\") + \")\\n   Stonecunning: When I make an Intelligence (History) check related to the origin of stonework, I am considered having expertise in the History skill.\\n   Master of Locks: I can add my Intuition Die (1d4) to Intelligence (History), Intelligence (Investigation), and ability checks with thieves' tools, if it involves lock or trap mechanisms.\\n   Wards and Seals: I can cast Alarm as a ritual. Once I reach 3rd level, I can cast Arcane Lock once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wards and Seals (level 1)\",\r\n\t\t\tspells : [\"alarm\"],\r\n\t\t\tselection : [\"alarm\"],\r\n\t\t\tfirstCol : SpellRitualTag,\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"alarm\" : {\r\n\t\t\t\ttime : \"11 min\",\r\n\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tfeatures : {\r\n\t\t\t\"arcane lock\" : {\r\n\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// Greater Dragonmark feats\r\n\tFeatsList[\"greater dragonmark-ua\"] = {\r\n\t\tname : \"Greater Dragonmark\",\r\n\t\tsource : [[\"WGtE\", 110], [\"UA:D\", 7]],\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase one ability score by 1, to a maximum of 20. The abilities available to you are based on your mark, as shown on the Greater Dragonmark Benefits table.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn a set of spells, each of which you can cast once without expending a spell slot or using a material component. The list of spells, the spellcasting ability for them, and the type of rest you must complete to regain the use of these spells are shown on the Greater Dragonmark Benefits table.\",\r\n\t\tdescription : \"Select the type of greater dragonmark using the square button on this feat line.\\nMy Intuition Die increases with one step (for example d4 to d6), I gain spellcating abilities, and an increase to one ability score.\",\r\n\t\teval : function () {\r\n\t\t\tvar raceTrait = What('Racial Traits');\r\n\t\t\tif ((/my Intuition Die \\(1d4\\)/i).test(raceTrait)) {\r\n\t\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d4\\)/i, 'my Intuition Die (1d6)'));\r\n\t\t\t};\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tvar raceTrait = What('Racial Traits');\r\n\t\t\tif ((/my Intuition Die \\(1d6\\)/i).test(raceTrait)) {\r\n\t\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d6\\)/i, 'my Intuition Die (1d4)'));\r\n\t\t\t};\r\n\t\t},\r\n\t\tchoices : [\"Detection\", \"Finding\", \"Handling\", \"Healing\", \"Hospitality\", \"Making\", \"Passage\", \"Scribing\", \"Sentinel\", \"Shadow\", \"Storm\", \"Warding\"],\r\n\t\t\"detection\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Detection\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*detection).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Charisma or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells See Invisibility and True Seeing, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast See Invisibility and True Seeing each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Charisma or Intelligence]\",\r\n\t\t\tscorestxt : \"+1 Charisma or Intelligence\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"see invisibility\", \"true seeing\"],\r\n\t\t\t\tselection : [\"see invisibility\", \"true seeing\"],\r\n\t\t\t\tspellcastingAbility : 4,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"see invisibility\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"true seeing\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"1 willing crea gains truesight 120 ft; see through illusions, hidden doors, ethereal plane\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"finding\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Finding\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity, Strength, or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Locate Creature and Find the Path, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Locate Creature and Find the Path each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 \" + (typePF ? \"Strength, Dexterity, or Wisdom]\" : \"Str, Dex, or Wis]\"),\r\n\t\t\tscorestxt : \"+1 Strength, Dexterity, or Wisdom\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"locate creature\", \"find the path\"],\r\n\t\t\t\tselection : [\"locate creature\", \"find the path\"],\r\n\t\t\t\tspellcastingAbility : 5,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"locate creature\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"find the path\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Know the shortest route to a location I am familiar with and are on the same plane with\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"handling\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Handling\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*handling).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Beast Sense and Dominate Beast, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Beast Sense and Dominate Beast each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"beast sense\", \"dominate beast\"],\r\n\t\t\t\tselection : [\"beast sense\", \"dominate beast\"],\r\n\t\t\t\tspellcastingAbility : 5,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"healing\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Healing\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*healing).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Mass Healing Word and Greater Restoration, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Mass Healing Word and Greater Restoration each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\t\tselection : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\t\tspellcastingAbility : 5,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"greater restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Reduce exhaustion or end charm, petrify, curse, stat or max HP reduction\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"hospitality\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Hospitality\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*hospitality).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sanctuary and Mordenkainen's Magnificent Mansion, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sanctuary and \" + (typePF ? \"Mordenkainen's \" : \"\") + \"Magnificent Mansion each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\t\tselection : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\t\tspellcastingAbility : 6,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sanctuary\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mordenkainen's magnificent mansion\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Create extradimensional mansion with rooms, food and servants to serve 100 people; see book\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"making\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Making\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*making).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Fabricate and Creation, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Fabricate and Creation each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Dexterity or Intelligence]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"fabricate\", \"creation\"],\r\n\t\t\t\tselection : [\"fabricate\", \"creation\"],\r\n\t\t\t\tspellcastingAbility : 4,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"creation\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"passage\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Passage\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*passage).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Constitution score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Blink and Teleportation Circle, each of which you can cast once without expending a spell slot or using a material component. Constitution is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Blink and Teleportation Circle each once per long rest without using spell slots or requiring material components. Constitution is my spellcasting ability for these. [+1 Dexterity or Constitution]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Constitution\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"blink\", \"teleportation circle\"],\r\n\t\t\t\tselection : [\"blink\", \"teleportation circle\"],\r\n\t\t\t\tspellcastingAbility : 3,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"teleportation circle\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Create a circle to teleport to another teleportation circle on same plane; see book\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"scribing\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Scribing\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sending and Tongues, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sending and Tongues each once per short rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Intelligence or Charisma]\",\r\n\t\t\tscorestxt : \"+1 Intelligence or Charisma\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\t\tspells : [\"sending\", \"tongues\"],\r\n\t\t\t\tselection : [\"sending\", \"tongues\"],\r\n\t\t\t\tspellcastingAbility : 4,\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sending\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"tongues\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"sentinel\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Sentinel\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*sentinel).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Strength or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Compelled Duel, Warding Bond, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Compelled Duel and Warding Bond each once per short rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Strength or Wisdom]\",\r\n\t\t\tscorestxt : \"+1 Strength or Wisdom\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\t\tspells : [\"compelled duel\", \"warding bond\"],\r\n\t\t\t\tselection : [\"compelled duel\", \"warding bond\"],\r\n\t\t\t\tspellcastingAbility : 5,\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"warding bond\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"1 crea +1 AC, +1 saves, resistance all dmg; if it takes dmg I take same dmg; ends if >60 ft away\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"shadow\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Shadow\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*shadow).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Nondetection and Mislead, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Nondetection and Mislead each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"nondetection\", \"mislead\"],\r\n\t\t\t\tselection : [\"nondetection\", \"mislead\"],\r\n\t\t\t\tspellcastingAbility : 6,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"nondetection\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"1 crea or object up to 10 cu ft hidden from all divination magic\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"storm\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Storm\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Control Water and Control Winds, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Control Water and Control Winds each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"control water\", \"control winds\"],\r\n\t\t\t\tselection : [\"control water\", \"control winds\"],\r\n\t\t\t\tspellcastingAbility : 6,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"control water\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"warding\" : {\r\n\t\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Warding\",\r\n\t\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known); },\r\n\t\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Knock, Glyph of Warding and Leomund's Secret Chest*, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\\n\\n* To cast Leomund's Secret Chest using this feat, you must have a Siberys dragonshard with a value of at least 100 gp. While you have this dragonshard in hand, it serves as the spell's focus, and you can use it to summon and dismiss the chest.\",\r\n\t\t\tdescription : \"My Intuition Die increases one step. I can cast Knock, Secret Chest, and Glyph of Warding each once per long rest without spell slot or material component. Secret Chest requires a 100 gp Siberys dragonshard as a focus. These use Int as spellcasting ability. [+1 Dex or Int]\",\r\n\t\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\t\tspells : [\"knock\", \"glyph of warding\"],\r\n\t\t\t\tselection : [\"knock\", \"glyph of warding\"],\r\n\t\t\t\tspellcastingAbility : 4,\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}, {\r\n\t\t\t\tname : \"with Siberys dragonshard\",\r\n\t\t\t\tspells : [\"leomund's secret chest\"],\r\n\t\t\t\tselection : [\"leomund's secret chest\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"glyph of warding\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Create a glyph that triggers on set condition; Int(Investigation) vs. Spell DC; see book\",\r\n\t\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"leomund's secret chest\" : {\r\n\t\t\t\t\tcompMaterial : \"A Siberys dragonshard with a value of at least 100 gp\",\r\n\t\t\t\t\tdescription : \"Hide chest with content in Ethereal Plane for 60 days, after that chance of loss; 1 a reappear (100gp)\",\r\n\t\t\t\t\tchanges : \"Leomund's Secret Chest cast through my Greater Dragonmark of Warding requires a Siberys dragonshard as a focus instead of an exquisite chest and its tiny replica.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// Aberrant Dragonmark feat\r\n\tFeatsList[\"aberrant dragonmark-ua\"] = {\r\n\t\tname : \"Aberrant Dragonmark\",\r\n\t\tsource : [[\"WGtE\", 112], [\"UA:D\", 9]],\r\n\t\tprerequisite : \"Not having a dragonmark\",\r\n\t\tprereqeval : function(v) { return !(/dragonmark/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"You have manifested an aberrant dragonmark. Determine its appearance and the flaw associated with it (see the table below for examples). You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You learn a cantrip from the sorcerer spell list. In addition, choose a 1st-level spell from the sorcerer spell list. You learn that spell and can cast it at its lowest level. Once you cast it, you must finish a long rest before you can cast it again. Constitution is your spellcasting ability for these spells.\\n \\u2022 You can increase the power of your aberrant spells at the risk of your own vitality. When you cast a spell with your aberrant mark, you can use one of your Hit Dice to increase the spell's level by 1. Immediately after you cast the spell, roll the Hit Die. You take damage equal to the number rolled.\\n\\n\" + toUni(\"1d8\") + \"\\t\" + toUni(\"Aberrant Mark Flaw\") + \"\\n1\\tYour mark is a source of constant physical pain.\\n2\\tYour mark whispers to you, though you may not understand what it says.\\n3\\tIn times of stress, your mark may trigger a cantrip effect involuntarily.\\n4\\tThe skin around your mark has an unusual appearance: burned, scaly, withered, etc.\\n5\\tMundane animals become uneasy around you.\\n6\\tYou have dramatic mood swings any time you use your mark.\\n7\\tYour appearance changes in a minor way every time you use your mark.\\n8\\tYou have horrific nightmares after you use your mark.\",\r\n\t\tdescription : \"I learn a sorcerer cantrip and a 1st-level sorcerer spell, using Con as my spellcasting ability. I can cast the spell once per long rest without a spell slot. I can use a Hit Die when casting the spell, casting it as if with a level 2 spell slot and taking the HD as damage. [+1 Con]\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tspellcastingAbility : 3,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Sorcerer cantrip\",\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [0, 0],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}, {\r\n\t\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t\t'class' : 'sorcerer',\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t};\r\n}\r\n\r\n// Gust cantrip reprint\r\nif (!SpellsList[\"gust\"]) {\r\n\tSpellsList[\"gust\"] = {\r\n\t\tname : \"Gust\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 157], [\"E\", 19], [\"E:RLW\", 50], [\"UA:D\", 6], [\"WGtE\", 107]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"Med. or smaller crea save or push 5 ft; or push unattended 5 lb obj 10 ft; or harmless sensory effect\",\r\n\t\tdescriptionFull : \"You seize the air and compel it to create one of the following effects at a point you can see within range.\" + \"\\n \" + \"\\u2022 One Medium or smaller creature that you choose must succeed on a Strength saving throw or be pushed up to 5 feet away from you.\" + \"\\n \" + \"\\u2022 You create a small blast of air capable of moving one object that is neither held nor carried and that weighs no more than 5 pounds. The object is pushed up to 10 feet away from you. It isn't pushed with enough force to cause damage.\" + \"\\n \" + \"\\u2022 You create a harmless sensory affect using air, such as causing leaves to rustle, wind to slam shutters shut, or your clothing to ripple in a breeze.\"\r\n\t};\r\n}\r\n\r\n// Magic Items\r\nif (!SourceList[\"UA:MIoE\"]) {\r\n\t// Duplicates from Eberron: Rising from the Last War\r\n\tif (!SourceList[\"E:RLW\"]) {\r\n\t\tMagicItemsList[\"cleansing stone\"] = {\r\n\t\t\tname : \"Cleansing Stone\",\r\n\t\t\tsource : [[\"E:RLW\", 276], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\trarity : \"common\",\r\n\t\t\tdescription : \"This stone sphere is 1 ft in diameter and engraved with mystic sigils. As an action while touching it, I can activate it to remove dirt and grime from my garments and my person.\",\r\n\t\t\tdescriptionFull : \"A cleansing stone is a stone sphere one foot in diameter, engraved with mystic sigils. When touching the stone, you can use an action to activate it and remove dirt and grime from your garments and your person. Cleansing stones are often embedded into pedestals in public squares in Aundair or found in high-end Ghallanda inns.\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tweight : 88 // using average marble/limestone density of 2.711 g/cm3\r\n\t\t}\r\n\t\tMagicItemsList[\"everbright lantern\"] = {\r\n\t\t\tname : \"Everbright Lantern\",\r\n\t\t\tsource : [[\"E:RLW\", 277], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\trarity : \"common\",\r\n\t\t\tdescription : \"This bullseye lantern is powered by a dragonshard imbued with the effect of a Continual Flame spell. The light never goes out, but it can be shuttered off. It casts bright light in a 60-ft cone and dim light for an additional 60 ft.\",\r\n\t\t\tdescriptionFull : \"An everbright lantern contains an Eberron dragonshard imbued with the effect of a continual flame spell. This bright light is mounted inside a normal bullseye lantern, allowing the light to be shuttered off. An everbright lantern provides clear illumination in a 60-foot cone and shadowy illumination in a 120-foot cone, just like a mundane bullseye lantern, but its flame never goes out.\",\r\n\t\t\tweight : 2\r\n\t\t}\r\n\t\tMagicItemsList[\"imbued wood focus\"] = {\r\n\t\t\t// Note that this item is implemented here against RAW,\r\n\t\t\t// because according to PHB page 203 a spellcasting focus can only be used for\r\n\t\t\t// spells with a material component that is neither costly nor consumed.\r\n\t\t\t// See also https://dnd.wizards.com/articles/sage-advice/rules-spellcasting\r\n\t\t\t// This would mean that the Imbued Wood Focus in only useful for a limited number of spells.\r\n\t\t\t// Instead, this code just applies the damage bonus to all damage spells that roll for their damage.\r\n\t\t\tname : \"Imbued Wood Focus\",\r\n\t\t\tsource : [[\"E:RLW\", 277], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\trarity : \"common\",\r\n\t\t\tdescription : \"This rod, wand, or staff is cut from a tree infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal the associated damage type add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tdescriptionFull : \"An imbued wood focus is a rod, staff, or wand cut from a tree infused with extraplanar energy. If you're a spell­caster, you can use this orb as a spellcasting focus.\\n   When you cast a damage-dealing spell using this item as your spellcasting focus, you gain a +1 bonus to one damage roll of the spell, provided the damage is of the type associated with the item's wood. The types of wood and their associated damage types are listed in the table below.\\n\\n\" + toUni(\"Wood\\t\\t\\tDamage Type\") + \"\\nFernian Ash\\t\\tFire\\nIrian Rosewood\\t\\tRadiant\\nKythrian Manchineel  \\tAcid or Poison\\nLamannian Oak\\t\\tLightning or Thunder\\nMabaran Ebony\\t\\tNecrotic\\nRisian Pine\\t\\tCold\\nShavarran Birch\\t\\tForce\\nXorian Wenge\\t\\tPsychic\",\r\n\t\t\tattunement : true,\r\n\t\t\tallowDuplicates : true,\r\n\t\t\tweight : 2,\r\n\t\t\tchoices : [\"Fernian Ash (fire)\", \"Irian Rosewood (radiant)\", \"Kythrian Manchineel (acid and poison)\", \"Lamannian Oak (lightning and thunder)\", \"Mabaran Ebony (necrotic)\", \"Risian Pine (cold)\", \"Shavarran Birch (force)\", \"Xorian Wenge (psychic)\"],\r\n\t\t\t\"fernian ash (fire)\" : {\r\n\t\t\t\tname : \"Fernian Ash Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Fernian Ash (fire)\",\r\n\t\t\t\tnameTest : /^(?=.*fernian)(?=.*ash)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Fernian ash, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal fire damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && (/fire/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"irian rosewood (radiant)\" : {\r\n\t\t\t\tname : \"Irian Rosewood Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Irian Rosewood (radiant)\",\r\n\t\t\t\tnameTest : /^(?=.*irian)(?=.*rosewood)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Irian rosewood, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal radiant damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && (/radiant/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"radiant\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"kythrian manchineel (acid and poison)\" : {\r\n\t\t\t\tname : \"Kythrian Manchineel Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Kythrian Manchineel (acid and poison)\",\r\n\t\t\t\tnameTest : /^(?=.*kythrian)(?=.*manchineel)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Kythrian manchineel, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal acid or poison damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && (/acid|poison/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"acid|poison\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"lamannian oak (lightning and thunder)\" : {\r\n\t\t\t\tname : \"Lamannian Oak Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Lamannian Oak (lightning and thunder)\",\r\n\t\t\t\tnameTest : /^(?=.*lamannian)(?=.*oak)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Lamannian oak, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal lightning or thunder damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && (/lightning|thunder/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"lightning|thunder\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"mabaran ebony (necrotic)\" : {\r\n\t\t\t\tname : \"Mabaran Ebony Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Mabaran Ebony (necrotic)\",\r\n\t\t\t\tnameTest : /^(?=.*mabaran)(?=.*ebony)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Mabaran ebony, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal necrotic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && (/necrotic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"necro\\\\.?|necrotic\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"risian pine (cold)\" : {\r\n\t\t\t\tname : \"Risian Pine Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Risian Pine (cold)\",\r\n\t\t\t\tnameTest : /^(?=.*risian)(?=.*pine)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Risian pine, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal cold damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && (/cold/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"cold\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"shavarran birch (force)\" : {\r\n\t\t\t\tname : \"Shavarran Birch Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Shavarran Birch (force)\",\r\n\t\t\t\tnameTest : /^(?=.*shavarran)(?=.*birch)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Shavarran birch, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal force damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1 dmg\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] != \"eldritch blast\" && (/force/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"force\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"xorian wenge (psychic)\" : {\r\n\t\t\t\tname : \"Xorian Wenge Rod, Wand, or Staff\",\r\n\t\t\t\tsortname : \"Imbued Wood Focus, Xorian Wenge (psychic)\",\r\n\t\t\t\tnameTest : /^(?=.*xorian)(?=.*wenge)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\t\tdescription : \"This rod, wand, or staff made of Xorian wenge, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal psychic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && (/psychic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"psychic\", 1, true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tMagicItemsList[\"orb of shielding\"] = {\r\n\t\t\tname : \"Orb of Shielding\",\r\n\t\t\tsource : [[\"E:RLW\", 278], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\trarity : \"common\",\r\n\t\t\tdescription : \"An orb of shielding is made from crystal or stone aligned to one of the planes. I can use it as my spellcasting focus. While I am holding the orb and take damage of the type associated with the material the orb is made from, I can use my reaction to reduce the damage by 1d4 (to a minimum of 0).\",\r\n\t\t\tdescriptionFull : \"An orb of shielding is made from crystal or stone aligned to one of the planes. While you are holding the orb and take damage of the type associated with the material your orb is made from, you can use your reaction to reduce the damage by 1d4. The materials and their associated damage types are listed below.\\n\" +\r\n\t\t\t\"\\n \\u2022 Fernian basalt: Fire damage\" +\r\n\t\t\t\"\\n \\u2022 Irian quartz: Radiant damage\" +\r\n\t\t\t\"\\n \\u2022 Kythrian skarn: Acid or poison damage\" +\r\n\t\t\t\"\\n \\u2022 Lamannian flint: Lightning or thunder damage\" +\r\n\t\t\t\"\\n \\u2022 Mabaran obsidian: Necrotic damage\" +\r\n\t\t\t\"\\n \\u2022 Quori celestine, Xorian marble: Psychic damage\" +\r\n\t\t\t\"\\n \\u2022 Risian shale: Cold damage\" +\r\n\t\t\t\"\\n \\u2022 Shavaran chert: Force damage\",\r\n\t\t\tattunement : true,\r\n\t\t\tallowDuplicates : true,\r\n\t\t\tweight : 3,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tchoices : [\"Fernian Basalt (fire)\", \"Irian Quartz (radiant)\", \"Kythrian Skarn (acid or poison)\", \"Lamannian Flint (lightning or thunder)\", \"Mabaran Obsidian (necrotic)\", \"Quori Celestine (psychic)\", \"Risian Shale (cold)\", \"Shavaran Chert (force)\", \"Xorian Marble (psychic)\"],\r\n\t\t\t\"fernian basalt (fire)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Fernian Basalt]\",\r\n\t\t\t\tdescription : \"This stone orb is made from fernian basalt. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take fire damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"irian quartz (radiant)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Irian Quartz]\",\r\n\t\t\t\tdescription : \"This crystal orb is made from irian quartz. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take radiant damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"kythrian skarn (acid or poison)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Kythrian Skarn]\",\r\n\t\t\t\tdescription : \"This stone orb is made from kythrian skarn. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take acid or poison damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"lamannian flint (lightning or thunder)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Lamannian Flint]\",\r\n\t\t\t\tdescription : \"This stone orb is made from lamannian flint. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take lightning or thunder damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"mabaran obsidian (necrotic)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Mabaran Obsidian]\",\r\n\t\t\t\tdescription : \"This crystal orb is made from mabaran obsidian. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take necrotic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"quori celestine (psychic)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Quori Celestine]\",\r\n\t\t\t\tdescription : \"This crystal orb is made from quori celestine. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take psychic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"risian shale (cold)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Risian Shale]\",\r\n\t\t\t\tdescription : \"This stone orb is made from risian shale. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take cold damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"shavaran chert (force)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Shavaran Chert]\",\r\n\t\t\t\tdescription : \"This stone orb is made from shavaran chert. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take force damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t},\r\n\t\t\t\"xorian marble (psychic)\" : {\r\n\t\t\t\tname : \"Orb of Shielding [Xorian Marble]\",\r\n\t\t\t\tdescription : \"This stone orb is made from xorian marble. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take psychic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t\t}\r\n\t\t}\r\n\t\tMagicItemsList[\"spellshard\"] = {\r\n\t\t\tname : \"Spellshard\",\r\n\t\t\tsource : [[\"E:RLW\", 279], [\"WGtE\", 115], [\"UA:MIoE\", 3]],\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\tdescription : \"This dragonshard is imbued with a text. By concentrating while holding it, I can see its pages in my mind's eye and it will draw me to the right section if I think of a topic. I can add content to it with a simple ritual and can use it as a wizard's spellbook, costing 1 gp per \\\"page\\\" I add to the shard.\",\r\n\t\t\tallowDuplicates : true,\r\n\t\t\tchoices : [\"normal\", \"advanced\"],\r\n\t\t\t\"normal\" : {\r\n\t\t\t\tname : \"Spellshard \",\r\n\t\t\t\tallowDuplicates : true,\r\n\t\t\t\trarity : \"common\",\r\n\t\t\t\tdescription : \"This dragonshard is imbued with a work of literature. By holding it and concentrating, I can see its pages in my mind's eye and it will draw me to the right section if I think of a topic. I can add content to it with a simple ritual and can use it as a wizard's spellbook, costing 1 gp per \\\"page\\\" I add to the shard.\",\r\n\t\t\t\tdescriptionLong : \"This polished dragonshard fits into the palm of my hand. It is imbued with a particular work of literature. By holding it and concentrating, I can see its pages in my mind's eye. Thinking of a particular phrase or topic will draw me to the first section that addresses it. I can add content to it with a simple ritual, allowing me to use it as a wizard's spellbook costing 1 gp per \\\"page\\\" in the shard, but otherwise functions as a mundane spellbook. Spellshards can also be used as diaries or journals.\"\r\n\t\t\t},\r\n\t\t\t\"advanced\" : {\r\n\t\t\t\tname : \"Advanced Spellshard\",\r\n\t\t\t\tallowDuplicates : true,\r\n\t\t\t\trarity : \"uncommon\",\r\n\t\t\t\tdescription : \"This dragonshard is imbued with a text. By concentrating and speaking the passphrase, I can see its pages in my mind's eye and it will draw me to the right section if I think of a topic. I can add content to it with a simple ritual and can use it as a wizard's spellbook, costing 1 gp per \\\"page\\\" I add to the shard.\",\r\n\t\t\t\tdescriptionLong : \"This polished dragonshard fits into the palm of my hand. It is imbued with a particular work of literature. By holding it, concentrating, and speaking its passphrase, I can see its pages in my mind's eye. Thinking of a particular phrase or topic will draw me to the first section that addresses it. I can add content to it with a simple ritual, allowing me to use it as a wizard's spellbook costing 1 gp per \\\"page\\\" in the shard, but otherwise functions as a mundane spellbook. Spellshards can also be used as diaries or journals.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t// Different or not available in Eberron: Rising from the Last War\r\n\tMagicItemsList[\"band of loyalty-ua\"] = {\r\n\t\tname : \"Band of Loyalty\",\r\n\t\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\ttype : \"ring\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"If I'm reduced to zero hit points while attuned to this ring, I instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\t\tdescriptionFull : \"If you are reduced to zero hit points while attuned to a band of loyalty, you instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\t\tattunement : true\r\n\t}\r\n\tvar ERftLW_docentFullDescription = [\r\n\t\t\"A docent is a small metal sphere, approximately 2 inches across, studded with dragonshards. Despite a strong magical aura, it has no obvious abilities. When you attune to a docent, the sphere becomes embedded in your chest and comes to life\\u2014literally.\",\r\n\t\t\">>Sentience<<. A docent is a sentient neutral item with an Intelligence of 16, a Wisdom of 14, and a Charisma of 14. It can perceive the world through your senses.\",\r\n\t\t\"A docent communicates telepathically with its wielder and can speak, read, and understand Common and Giant.\",\r\n\t\t\">>Personality<<. A docent is designed to advise and assist the warforged it's attached to. One of the simple functions of a docent is to serve as a translator. The docent's properties are under its control, and if you have a bad relationship with your docent it may refuse to assist you… or simply lie about information that it obtains. However, if you treat your docent well it could serve as a useful ally.\",\r\n\t\t\"The origin of docents is a great mystery. House Cannith created the first warforged thirty years ago. But the docents come from the distant land of Xen'drik and appear to be thousands of years old. Were they created to interface with some other form of construct? Or are the modern warforged a new interpretation of an ancient design? The docents claim to have forgotten their creators… but this is a mystery waiting to be unraveled. While all docents come from Xen'drik, some have been brought to Khorvaire by explorers and it's possible to encounter them in the Five Nations.\",\r\n\t\t\">>Languages<<. All docents understand Common and Giant, but a docent knows up to four additional languages. Elvish and Draconic are common options. If a docent knows less than six languages in total, it can add new languages to its repertoire after encountering them. So a docent found in Xen'drik may have never encountered a dwarf before… but after spending some time in Khorvaire studying dwarves, it could pick up the Dwarvish language.\",\r\n\t\t\">>Properties<<. A docent possesses up to three of the following properties:\",\r\n\t\t\"\\u2022 The docent can cast the detect magic spell at will.\",\r\n\t\t\"\\u2022 The docent can cast the detect evil and good spell at will.\",\r\n\t\t\"\\u2022 The docent can detect any form of divination or scrying targeting it and its warforged host.\",\r\n\t\t\"\\u2022 The docent has a +7 bonus to Intelligence (Arcana) checks.\",\r\n\t\t\"\\u2022 The docent has a +7 bonus to Intelligence (History) checks.\",\r\n\t\t\"\\u2022 The docent has a +7 bonus to Intelligence (Investigation) checks.\",\r\n\t\t\"\\u2022 The docent has a +7 bonus to Intelligence (Nature) checks.\",\r\n\t\t\"\\u2022 The docent has a +6 bonus to Wisdom (Insight) checks.\",\r\n\t\t\"\\u2022 The docent has a +6 bonus to Wisdom (Perception) checks.\",\r\n\t\t\"\\u2022 The docent has a +6 bonus to Wisdom (Medicine) checks targeting its warforged host. If the host is rendered unconscious, the docent will automatically attempt to stabilize them once each turn.\",\r\n\t\t\"You can use a bonus action on your turn to request that the docent use one of its properties on your behalf.\"\r\n\t];\r\n\tMagicItemsList[\"docent-ua\"] = {\r\n\t\tname : \"Docent\",\r\n\t\tsource : [[\"WGtE\", 121], [\"UA:MIoE\", 3]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"I can embed this sentient small metal sphere studded with dragonshards into my chest. I can communicate telepathically with it. It can serve me as an advisor and a translator, as it knowns 6 languages. It also knows spells and/or skills that I can have it use as a bonus action. See Notes page.\",\r\n\t\tdescriptionFull : ERftLW_docentFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a warforged\",\r\n\t\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\t\taction : [[\"bonus action\", \"\"]],\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : desc(ERftLW_docentFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|assist) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t\t}]\r\n\t}\r\n\tMagicItemsList[\"feather token-ua\"] = {\r\n\t\tname : \"Feather Token\",\r\n\t\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"Once as a bonus action while the token is in my possession, I can use it to cast Feather Fall. This small metal disk is inscribed with the image of a feather and only holds sufficient charge for a single use, after which it loses its power.\",\r\n\t\tdescriptionFull : \"This small metal disk is inscribed with the image of a feather. While the token is in your possession, you can cast feather fall as a bonus action. A feather token only holds sufficient charge for a single use, after which it loses its power. While it's an expensive form of insurance, frequent airship travelers and citizens of Sharn often appreciate the security it provides.\"\r\n\t}\r\n\tMagicItemsList[\"glamerweave-ua\"] = {\r\n\t\tname : \"Glamerweave\",\r\n\t\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"Glamerweave clothing is imbued with cosmetic illusions that have no impact on combat. Most of the time, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. A gown could appear to be wreathed in flames, or a hat orbited by illusory butterflies.\",\r\n\t\tdescriptionFull : \"Glamerweave clothing is imbued with cosmetic illusions. Traditionally, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. You could have a gown that appears to be wreathed in flames, or a hat that's orbited by illusory butterflies. Regardless of the design, these are cosmetic effects and have no impact on combat.\\n\\n\" + [\r\n\t\t\ttoUni(\"1d8\\tDescription\"),\r\n\t\t\t\"  1\\tA hat orbited by the twelve moons\",\r\n\t\t\t\"  2\\tLong gloves wreathed in cold flames\",\r\n\t\t\t\"  3\\tA traveler's cloak lined with glittering stars\",\r\n\t\t\t\"  4\\tA scarlet gown that glows with inner radiance\",\r\n\t\t\t\"  5\\tA cloth shirt that appears to be a chain shirt\",\r\n\t\t\t\"  6\\tA silver gown surrounded by drifting snowflakes\",\r\n\t\t\t\"  7\\tA robe with two dragons wrestling across the back\",\r\n\t\t\t\"  8\\tA cloak that slowly and subtly shifts colors\"\r\n\t\t].join(\"\\n\")\r\n\t}\r\n\tMagicItemsList[\"shiftweave-ua\"] = {\r\n\t\tname : \"Shiftweave\",\r\n\t\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"Up to five different outfits are embedded into these clothes that have transmutation magic woven into their fabric. As an action, I can speak a command word to transform the outfit into one of the other designs contained within.\",\r\n\t\tdescriptionFull : \"Transmutation magic is woven into the fabric of shiftweave clothing. When a suit of shiftweave is created, up to five different outfits can be embedded into the cloth. By taking an action and uttering a command word, you can transform your shiftweave outfit into one of the other designs contained within it. To determine the price of a suit of shiftweave, combine the value of all of the outfits it contains and add 25 gp to that amount.\",\r\n\t\taction : [[\"action\", \"\"]]\r\n\t}\r\n\tMagicItemsList[\"armblade-ua\"] = {\r\n\t\tname : \"Armblade\",\r\n\t\tsource : [[\"WGtE\", 120], [\"UA:MIoE\", 3]],\r\n\t\ttype : \"weapon (any one-handed melee weapon)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"As a warforged, I can integrate this weapon in my forearm by attuning to it. While attached, it can't be disarmed or removed against my will, but I can't use that hand for other actions. I can spend one minute to end the attunement and remove the armblade. The weapon isn't inherently magical.\",\r\n\t\tdescriptionFull : \"An armblade is a weapon designed to integrate with the forearm of a warforged. If you're a warforged, you can attach an armblade by attuning to it. An attached armblade cannot be disarmed or removed from you against your will, but while the weapon is attached you cannot use that hand for other actions. You can spend one minute to end the attunement and remove the armblade.\\n   An armblade isn't inherently considered to be a magic weapon for purposes of overcoming damage resistance. However, any sort of magical melee weapon could be created as an armblade, so you could acquire a vicious armblade or a vorpal armblade.\",\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a warforged\",\r\n\t\tprereqeval : function (v) {\r\n\t\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t\t},\r\n\t\tallowDuplicates : true,\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn (!inObj.description || (/two.{0,3}handed/i).test(inObj.description)) || (!inObj.range || !(/melee/i).test(inObj.range));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tMagicItemsList[\"wand sheath-ua\"] = {\r\n\t\tname : \"Wand Sheath\",\r\n\t\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 4]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. The wand doesn't count to the number of items I can attune to. As a bonus action, I can then retract/extend it while keeping my hand free.\",\r\n\t\tdescriptionLong : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. I still need to attune to this wand if it requires me to do so, but the wand wand then doesn't count towards the number of items I can attune to. When I take the wand out of the sheath, I lose attunement with it. As a bonus action, I can retract or extend a wand in the sheath. While retracted, the wand can't be damaged. While extended, I can use the wand as if holding it, but my hand remains free for other actions.\",\r\n\t\tdescriptionFull : \"A wand sheath is designed to integrate with the forearm of a warforged. If you're a warforged, you can attach a wand sheath by attuning to it. While the wand sheath is attached, it cannot be removed from you against your will. You can spend one minute to end the attunement and remove the wand sheath.\\n   You can insert a wand into the sheath as an action. While the wand is sheathed, you gain the following benefits:\\n \\u2022 You can retract the wand into your forearm or extend it from your forearm as a bonus action. While it is retracted, it cannot be damaged or removed.\\n \\u2022 While the wand is extended, you can use it as if you were holding it, but your hand remains free for other actions.\\n \\u2022 If the sheathed wand requires attunement, you must attune to the wand before you can use it. However, the wand sheath and the attached wand only count as a single item for purposes of the maximum number of items you can be attuned to. If you remove the wand from the sheath, you immediately lose your attunement to the wand.\",\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a warforged\",\r\n\t\tprereqeval : function (v) {\r\n\t\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t\t},\r\n\t\taction : [[\"action\", \" (insert)\"], [\"bonus action\", \" (extend/retract)\"]]\r\n\t}\r\n}\r\nMagicItemsList[\"bag of bounty-ua\"] = {\r\n\tname : \"Bag of Bounty\",\r\n\tsource : [[\"WGtE\", 116]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"As an action three times per dawn, I can cast Create Food and Water, but can try and create fine food with a Cha check. If I'm proficient with cook's utensils, I add my proficiency bonus. Meal quality: modest (DC 10), comfortable (DC 13), wealthy (DC 15), aristocratic (DC 18). Failure results in a sour and squalid meal. \",\r\n\tdescriptionFull : \"This is a sturdy leather sack with tiny Siberys shards embedded into the lining. If you have the Mark of Hospitality you can use an action to cast create food and water, drawing a feast from within the bag. You shape this meal with your thoughts. You can create the standard bland fare without requiring any sort of check, but you can attempt to create finer food by making a Charisma check; if you're proficient with cook's utensils, add your bonus to this check. A failed check results in a sour and squalid meal.\\n\\n\" + toUni(\"DC\\tFood Quality\") + \"\\nNo roll\\tPoor\\n10\\tModest\\n13\\tComfortable\\n15\\tWealthy\\n18\\tAristocratic\\n\\nA bag of bounty can be used up to three times over the course of a day. After that, the bag can't be used again until the next dawn.\",\r\n\tprerequisite : \"Can only be used by someone with a Dragonmark of Hospitality\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*hospitality).*$/i).test(CurrentRace.known);\r\n\t},\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"3 times per long rest\",\r\n\t\tspells : [\"create food and water\"],\r\n\t\tselection : [\"create food and water\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"create food and water\" : {\r\n\t\t\tdescription : \"Create 45 lb food and 30 gal water; feeds 15 humanoids or 5 steeds for 24h; Cha check for quality\",\r\n\t\t\tchanges : \"Using the Bag of Bounty, I can create the standard bland fare without requiring any sort of check, but I can attempt to create finer food by making a Charisma check, adding my proficiency bonus if I'm proficient with cook's utensils. A failed check results in a sour and squalid meal.\"\r\n\t\t}\r\n\t},\r\n\tusages : 3,\r\n\trecovery : \"dawn\"\r\n}\r\nMagicItemsList[\"inquisitive's goggles-ua\"] = {\r\n\tname : \"Inquisitive's Goggles\",\r\n\tsource : [[\"WGtE\", 115]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I can add my Intuition Die to my Wis (Insight) checks. When I examine an object, I can make a Wis (Perception) check to sense the aura of the last living creature to touch it (DC is 13 + days since last contact). On a success, I learn the creature's species and I can immediately use my Imprint Prey ability to target it.\",\r\n\tdescriptionLong : \"The lenses of these garish goggles are carved from Siberys dragonshards. It allows me to can add my Intuition Die to my Wisdom (Insight) checks. When I examine an object, I can use it to make a Wisdom (Perception) check to identify the aura of the last living creature to touch the object.The DC is 13 + the number of days since the last contact occurred. If the check is successful, I learn the species of the creature and I can immediately use my Imprint Prey ability to target this creature.\",\r\n\tdescriptionFull : \"The lenses of these goggles are carved from Siberys dragonshards. While garish in appearance, these goggles are a boon to any Tharashk inquisitive. To attune to the goggles, you must possess the Mark of Finding. As long as this condition is met, you gain the following benefits:\\n \\u2022 You can add your Intuition die from the Hunter's Intuition trait of the mark when you make Wisdom (Insight) checks.\\n \\u2022 When you examine an object, you can make a Wisdom (Perception) check to identify the aura of the last living creature to touch the object. The DC is 13 + the number of days since the last contact occurred. If the check is successful, you learn the species of the creature and you can immediately use your Imprint Prey ability to target this creature.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by someone with a Dragonmark of Finding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"keycharm-ua\"] = {\r\n\tname : \"Keycharm\",\r\n\tsource : [[\"WGtE\", 115]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"When I cast Alarm, Arcane Lock, Glyph of Warding, or a similar abjuration effect, I can tie it to the keycharm. Whoever holds the keycharm is considered to be the owner of this effect. For example, they receive the notification from Alarm, can safely avoid a Glyph of Warding, or can circumvent the Arcane Lock.\",\r\n\tdescriptionFull : \"This simple object plays a vital role in the work of House Kundarak. If you possess the Mark of Warding, when you cast alarm, arcane lock, glyph of warding, or similar abjuration effects, you can tie the effect to the keycharm. Whoever holds the keycharm is considered to the owner of this enchantment; they receive the notification from alarm, they can safely avoid a glyph, and they can deactivate any associated effect.\",\r\n\tprerequisite : \"Can only be used by someone with a Dragonmark of Warding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"rings of shared suffering-ua\"] = {\r\n\tname : \"Rings of Shared Suffering\",\r\n\tsource : [[\"WGtE\", 117]],\r\n\ttype : \"ring\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I can only attune to one of these rings. As a bonus action, I can link this ring to the other of its pair, if a creature is attuned to it. From then on, when that creature takes damage, they only suffer half and I take the rest. This effect has no range limit and lasts until either of us ends it as a bonus action or removes their ring.\",\r\n\tdescriptionFull : \"These rings come in linked pairs. If you possess the Mark of Sentinel, you can use a bonus action to form a link to the creature attuned to the other ring; from then on, whenever that creature suffers damage, they only suffer half of that damage and you take the rest. This effect continues until you end it as a bonus action or until you or the other creature removes their ring. This effect isn't limited by range. A creature cannot be attuned to more than one ring of shared suffering.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by someone with a Dragonmark of Sentinel\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*sentinel).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"scribe's pen-ua\"] = {\r\n\tname : \"Scribe's Pen\",\r\n\tsource : [[\"WGtE\", 115]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this quill to write on any surface. This can be visible(traced in glowing mystical lines) or invisible to any creature without the Mark of Scribing. Detect Magic reveals the invisible writing. As an action, I or others with the Mark of Scribing can make it (in)visible. Marks on living creatures fade within a week.\",\r\n\tdescriptionFull : \"If you possess the Mark of Scribing, you can use this quill to write on any surface. This can be visible\\u2014traced in glowing mystical lines\\u2014or invisible to any creature without the Mark of Scribing. Invisible writing will be revealed by Detect Magic, See Invisibility, or True Seeing. Any creature with the Mark of Scribing can also reveal your writing or make it invisible as an action. If you mark a living creature, the mark will fade within a week.\",\r\n\tprerequisite : \"Can only be used by someone with a Dragonmark of Scribing\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nif (!SourceList[\"E:RLW\"]) {\r\n\tMagicItemsList[\"wheel of wind and water\"] = {\r\n\t\tname : \"Wheel of Wind and Water\",\r\n\t\tsource : [[\"E:RLW\", 280], [\"WGtE\", 115]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"I can telepathically control the elemental bound into the elemental galleon or airship that has this wheel mounted at its helm. If I use a wheel of wind and water that is mounted on a mundane sailing ship, I can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\t\tdescriptionFull : \"When mounted at the helm of an elemental galleon or airship, this wheel allows a creature that possesses the Mark of Storm to telepathically control the elemental bound inside the vessel.\\n   If a wheel of wind and water is mounted on a mundane sailing ship, a creature with the Mark of Storm who is using the wheel can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\t\tprerequisite : \"Can only be used by someone with a Dragonmark of Storm\",\r\n\t\tprereqeval : function (v) {\r\n\t\t\treturn (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known);\r\n\t\t}\r\n\t}\r\n}"
  },
  {
    "path": "WotC material/pub_20180918_WDH.js",
    "content": "var iFileName = \"pub_20180918_WDH.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the magic items from the Waterdeep: Dragon Heist adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"WDH\"] = {\r\n\tname : \"Waterdeep: Dragon Heist [items]\",\r\n\tabbreviation : \"WDH\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/waterdeep-dragon-heist\",\r\n\tdate : \"2018/09/18\"\r\n};\r\n\r\n// Mundane Items\r\nWeaponsList[\"oversized longbow\"] = {\r\n\tregExpSearch : /^(?=.*oversized?)(?=.*(\\bbows?\\b|longbow)).*$/i,\r\n\tname : \"Oversized Longbow\",\r\n\tnameAlt : [\"Bow, Oversized\"],\r\n\tsource : [[\"WDH\", 201]],\r\n\tlist : \"ranged\",\r\n\tability : 2,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 6, \"piercing\"],\r\n\trange : \"150/600 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, heavy, two-handed; Damage uses Str; Requires Medium size and Str 18\",\r\n\tabilitytodamage : false,\r\n\tmodifiers : [\"\", \"Str\"],\r\n\tammo : \"oversized arrow\",\r\n\tdefaultExcluded : true\r\n};\r\nAmmoList[\"oversized arrow\"] = {\r\n\tname : \"Oversized Arrows\",\r\n\tsource : [[\"WDH\", 201]],\r\n\ticon : \"Arrows\",\r\n\tweight : 0.10,\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Magic Items\r\nvar WDH_azuredgeFullDescription = [\r\n\t\"Forged by the archwizard Ahghairon, this intelligent battleaxe was crafted to defend Waterdeep. Its current wielder is a former member of Force Grey named Meloon Wardragon, but the weapon is searching for a new owner.\",\r\n\t\"Azuredge has a solid steel handle etched with tiny runes, wrapped in blue dragon hide with a star sapphire set into the pommel. The axe head is forged from silver, electrum, and steel alloys whose edges constantly shimmer with a deep blue luminescence.\",\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. The Shield spell provides no defense against the axe, which passes through that spell's barrier of magical force.\",\r\n\t\"When you hit a fiend or an undead with the axe, cold blue flames erupt from its blade and deal an extra 2d6 radiant damage to the target.\",\r\n\t\">>Hurling<<. The battleaxe has 3 charges. You can expend 1 charge and make a ranged attack with the axe, hurling it as if it had the thrown property with a normal range of 60 feet and a long range of 180 feet. Whether it hits or misses, the axe flies back to you at the end of the current turn, landing in your open hand or at your feet in your space (as you choose). The axe regains all expended charges daily at dawn.\",\r\n\t\">>Illumination<<. While holding the axe, you can use an action to cause the axe to glow blue or to quench the glow. This glow sheds bright light in a 30-foot radius and dim light for an additional 30 feet.\",\r\n\t\">>Sentience<<. Azuredge is a sentient lawful neutral weapon with an Intelligence of 12, a Wisdom of 15, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\r\n\t\"The weapon communicates telepathically with its wielder and can speak, read, and understand Common. It has a calm, delicate voice. The weapon can sense the presence of non-lawful creatures within 120 feet of it.\",\r\n\t\">>Personality<<. Azuredge is sworn to protect Waterdeep, and it desires to be wielded by a law-abiding person willing to dedicate everything to the city's defense. The weapon is patient and takes its time finding its ideal wielder.\",\r\n\t\"If someone tries to use Azuredge against its will, the axe can become ten times heavier than normal, and can magically adhere to any Medium or larger object or surface it comes into contact with. Once it does so, the axe can't be wielded. Nothing short of a Wish spell can separate the axe from the item or surface to which it is adhered without destroying one or the other, though the axe can choose to end the effect at any time.\"\r\n];\r\nMagicItemsList[\"azuredge\"] = {\r\n\tname : \"Azuredge\",\r\n\tsource : [[\"WDH\", 189]],\r\n\ttype : \"weapon (battleaxe)\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This battleaxe is sentient, adds +3 to hit and damage, and deals +2d6 radiant damage vs. fiends/undead. As an action, I can stop or start its glow of bright light in a 30-ft radius and dim light for another 30 ft. It has 3 charges, regaining all at dawn, which can be used to throw it, after which it returns to my hand. See Notes.\",\r\n\tdescriptionFull : WDH_azuredgeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tweight : 4,\r\n\taction : [[\"action\", \" (glow/end)\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"throw\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"battleaxe\",\r\n\t\tregExpSearch : /azuredge/i,\r\n\t\tname : \"Azuredge\",\r\n\t\tsource : [[\"WDH\", 189]],\r\n\t\trange : \"Melee, 60/180 ft\",\r\n\t\tdescription : \"Versatile (1d10), thrown (1 charge); Returning; Ignores Shield spell; +2d6 radiant damage vs. fiends/undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"crusader's mantle\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : \"\\n   \" + WDH_azuredgeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"badge of the watch\"] = { // contains contributions by Pengsloth\r\n\tname : \"Badge of the Watch\",\r\n\tsource : [[\"WDH\", 189]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"F\",\r\n\tdescription : \"While wearing this badge and not using a shield, I gain +2 AC. If it is more than 5 ft away from me for over 1 minute, it vanishes and reappears within 5 ft of the Open Lord. While holding the badge, the Open Lord knows my location if we are both on the same plane and can, as an action end my attunement to it.\",\r\n\tprerequisite : \"Requires attunement by someone designated by the Open Lord of Waterdeep\",\r\n\tprereqeval : function () { return false; },\r\n\tdescriptionFull : \"A badge of the Watch is given only to those who have earned the trust of the Open Lord of Waterdeep. The badge, signifying the rank of captain in Waterdeep's City Watch, bears the emblem of Waterdeep and is meant to be worn or carried.\\n   While wearing the badge, you gain a +2 bonus to AC if you aren't using a shield.\\n   If the badge is more than 5 feet away from you for more than 1 minute, it vanishes and harmlessly reappears on a surface within 5 feet of the Open Lord. While holding the badge, the Open Lord knows your location, provided the two of you are on the same plane of existence and your attunement to the badge hasn't ended.\\n   As an action, the Open Lord can touch the badge and end your attunement to it.\",\r\n\tattunement : true,\r\n\textraAC : [{\r\n\t\tmod : 2,\r\n\t\tname : \"Badge of the Watch\",\r\n\t\tmagic : true,\r\n\t\ttext : \"While wearing the badge, I gain a +2 bonus to AC if I'm not using a shield.\",\r\n\t\tstopeval : function (v) {\r\n\t\t\treturn v.usingShield;\r\n\t\t}\r\n\t}]\r\n}\r\nvar WDH_blackstaffFullDescription = \"The Blackstaff is a sentient, rune-carved staff set with thin silver veins. It is the symbol of office for the Blackstaff, the highest-ranking wizard in Waterdeep. As the rightful owner of the Blackstaff, Vajra Safahr is the only one who can become attuned to it. The staff can, however, choose a new owner (see \\\"Personality\\\" below).\\n   This staff can be wielded as a magic quarterstaff that grants a +2 bonus to attack and damage rolls made with it. While holding it, you gain a +2 bonus to Armor Class, saving throws, and spell attack rolls.\\n   The staff has 20 charges for the following properties. The staff regains 2d8+4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff retains its +2 bonus to attack and damage roll but loses all other properties. On a 20, the staff regain 1d8+2 charges.\\n   >>Power Strike<<. When you hit with a melee attack using the staff, you can expend 1 charge to deal an extra 1d6 force damage to the target.\\n   >>Spells<<. While holding this staff, you can use an action to expend 1 or more of its charges to cast one of the following spells from it, using your spell save DC and spell attack bonus: Cone of Cold (5 charges), Fireball (5th-level version, 5 charges), Globe of Invulnerability (6 charges), Hold Monster (5 charges), Levitate (2 charges). Lightning Bolt (5th-level version, 5 charges), Magic Missile (1 charge), Ray of Enfeeblement (1 charge), or Wall of Force (5 charges).\\n   >>Retributive Strike<<. You can use an action to break the staff over your knee or against a solid surface, performing a retributive strike. The staff is destroyed and releases its remaining magic in an explosion that expands to fill a 30-foot-radius sphere centered on it.\\n   You have a 50% chance to instantly travel to a random plane of existence, avoiding the explosion. If you fail to avoid the effect, you take force damage equal to 16 \\xD7 the number of charges in the staff. Every other creature in the area must make a DC 17 Dexterity saving throw. On a failed save, a creature takes an amount of damage based on how far away it is from the point of origin, as shown in the following table. On a successful save, a creature takes half as much damage.\\n\\n>>Distance from Origin\\tEffect<<\\n10 ft. away or closer\\t8 \\xD7 the number of charges in the staff\\n11 to 20 ft. away\\t6 \\xD7 the number of charges in the staff\\n21 to 30 ft. away\\t4 \\xD7 the number of charges in the staff\\n\\n\\n   >>Animate Walking Statues<<. You can expend 1 or more of the staff's charges as an action to animate or deactivate one or more of the walking statues of Waterdeep. You must be in the city to use this property, and you can animate or deactivate one statue for each charge expended. An animated statue obeys the telepathic commands of Khelben Arunsun's spirit, which is trapped inside the staff (see \\\"Personality\\\" below). A walking statue becomes inanimate if deactivated or if the staff is broken.\\n   >>Dispel Magic<<. You can expend 1 of the staff's charges as a bonus action to cast Dispel Magic on a creature, an object, or a magical effect that you touch with the tip of the staff. If the target is an unwilling creature or an object in the possession of such a creature, you must hit the creature with a melee attack using the Blackstaff before you can expend the charge to cast the spell.\\n   >>Drain Magic<<. This property affects only creatures that use spell slots. When you hit such a creature with a melee attack using the Blackstaff, you can expend 1 of the staff's charges as a bonus action, causing the target to expend one spell slot of the highest spell level it can cast without casting a spell. If the target has already expended all its spell slots, nothing happens. Spell slots that are expended in this fashion are regained when the target finishes a long rest, as normal.\\n   >>Master of Enchantment<<. When you cast an enchantment spell of 1st level or higher while holding the staff, you can make an Intelligence (Arcana) check with a DC of 10 + the level of the spell. If the check succeeds, you cast the spell without expending a spell slot.\\n   >>Sentience<<. The Blackstaff is a sentient staff of neutral alignment, with an Intelligence of 22, a Wisdom of 15, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet, and it can communicate telepathically with any creature that is holding it.\\n   >>Personality<<. The staff has the spirits of all previous Blackstaffs trapped within it. Its creator, Khelben Arunsun, is the dominant personality among them. Like Khelben, the staff is extremely devious and manipulative. It prefers to counsel its owner without exerting outright control. The staff's primary goal is to protect Waterdeep and its Open Lord, currently Laeral Silverhand. Its secondary goal is to help its wielder become more powerful.\\n   In the event that the holder of the office of the Blackstaff no longer serves the staff's wishes, the staff ceases to function until it finds a worthy inheritor\\u2014someone whose loyalty to Waterdeep is beyond reproach.\\n   >>Spirit Trap<<. When the Blackstaff dies, the spirit of that individual becomes trapped in the staff along with the spirits of the previous Blackstaffs. (A Blackstaff whose spirit is trapped in the staff can't be raised from the dead.)\\n   Destroying the staff would release the spirits trapped inside it, but in that event, Khelben's spirit can lodge itself inside any one piece of the staff that remains. The piece containing Khelben's spirit has the staff's Sentience property but none of its other properties. As long as this piece of the staff exists, Khelben's spirit can make the staff whole again whenever he wishes. When the staff is remade, the spirits of the previous Blackstaffs become trapped inside it again.\";\r\nif (MagicItemsList[\"staff of power\"]) {\r\n\tMagicItemsList[\"blackstaff\"] = {\r\n\t\tname : \"Blackstaff\",\r\n\t\tsource : [[\"WDH\", 190]],\r\n\t\ttype : \"staff\",\r\n\t\trarity : \"legendary\",\r\n\t\tstoryItemAL : true,\r\n\t\tdescription : \"This +2 quarterstaff gives me a +2 bonus on saves, AC, and spell attacks. It has 20 charges, regaining 2d8+4 at dawn, which can be used to cast spells, deal +1d6 force damage in melee, drain magic from a target hit in melee, or animate walking statues. It is sentient and has more features, see Notes page.\",\r\n\t\tdescriptionFull : WDH_blackstaffFullDescription.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\tattunement : true,\r\n\t\tweight : 4,\r\n\t\tprerequisite : \"Requires attunement by the Blackstaff heir, who must be a wizard\",\r\n\t\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\t\tusages : 20,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"regains 2d8+4\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"quarterstaff\",\r\n\t\t\tregExpSearch : /blackstaff/i,\r\n\t\t\tname : \"Blackstaff\",\r\n\t\t\tsource : [[\"WDH\", 190]],\r\n\t\t\tdescription : \"Versatile (1d8); On hit, use 1 charge for: +1d6 force damage or, as a bonus action, Drain Magic or Dispel Magic\",\r\n\t\t\tmodifiers : [2, 2],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Blackstaff, I have a +2 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\taddMod : [{ type : \"save\", field : \"all\", mod : 2, text : \"While holding the Blackstaff, I gain a +2 bonus to all my saving throws.\" }],\r\n\t\textraAC : [{name : \"Blackstaff\", mod : 2, magic : true, text : \"I gain a +2 bonus to AC while attuned.\"}],\r\n\t\taction : [\r\n\t\t\t[\"action\",\" (Animate Walking Statues)\"],\r\n\t\t\t[\"action\", \" (Retributive Strike)\"],\r\n\t\t\t[\"bonus action\", \" (Drain Magic)\"]\r\n\t\t],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : MagicItemsList[\"staff of power\"].spellcastingBonus.concat([{\r\n\t\t\tname : \"1 charge\",\r\n\t\t\tspells : [\"dispel magic\"],\r\n\t\t\tselection : [\"dispel magic\"],\r\n\t\t\tfirstCol : 1\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"fireball\" : MagicItemsList[\"staff of power\"].spellChanges.fireball,\r\n\t\t\t\"lightning bolt\" : MagicItemsList[\"staff of power\"].spellChanges[\"lightning bolt\"],\r\n\t\t\t\"dispel magic\" : {\r\n\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\trange : \"Melee atk\",\r\n\t\t\t\tdescription : \"Dispel all magic on crea or object hit with melee atk; DC 10+SL spellcasting ability check if level >3\",\r\n\t\t\t\tchanges : \"Can cast as a bonus action, but only on something touched by the staff. It might first require an attack by the staff to be able to cast it on\"\r\n\t\t\t}\r\n\t\t},\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Features\",\r\n\t\t\tnote : \"\\n   \" + WDH_blackstaffFullDescription.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you /ig, \"I \")\r\n\t\t}, {\r\n\t\t\tname : \"Sentient Item Features\",\r\n\t\t\tnote : sentientItemConflictTxt\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"bracer of flying daggers\"] = {\r\n\tname : \"Bracer of Flying Daggers\",\r\n\tsource : [[\"WDH\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This armband appears to have thin daggers strapped to it. As an action, I can pull up to two magic daggers from the bracer and immediately hurl them, making a ranged attack with each dagger. A dagger vanishes if I don't hurl it right away, and the daggers disappear right after they hit or miss.\",\r\n\tdescriptionFull : \"This armband appears to have thin daggers strapped to it. As an action, you can pull up to two magic daggers from the bracer and immediately hurl them, making a ranged attack with each dagger. A dagger vanishes if you don't hurl it right away, and the daggers disappear right after they hit or miss. The bracer never runs out of daggers.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*bracer)(?=.*flying)(?=.*dagger).*$/i,\r\n\t\tname : \"Bracer of Flying Daggers\",\r\n\t\tsource : [[\"WDH\", 190]],\r\n\t\trange : \"20/60 ft\",\r\n\t\tdescription : \"Finesse, light, thrown; As action, throw 2; Doesn't work with Attack action\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"dragonstaff of ahghairon\"] = { // contains contributions by Pengsloth\r\n\tname : \"Dragonstaff of Ahghairon\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"staff\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This staff has 10 charges, regaining 1d10 at dawn, which can be used to cast Command. Dragons have disadv. on their save against it. The staff gives me adv. on saves against the spells and breath weapons of dragons. I can touch a dragon with the staff, allowing it to ignore the effects of Ahghairon's Dragonward.\",\r\n\tdescriptionFull : \"While holding the dragonstaff of Ahghairon, you have advantage on saving throws against the spells and breath weapons of dragons, as well as the breath weapons of other creatures of the dragon type (such as dragon turtles).\\n   A creature of the dragon type that you touch with the staff can move through the city of Waterdeep, ignoring Ahghairon's dragonward (see \\\"Ahghairon's Dragonward,\\\" in the Introduction of Waterdeep: Dragon Heist). This effect lasts until the creature is touched again by the staff or until a time you proclaim when you confer the benefit.\\n   The staff has 10 charges. While holding it, you can expend 1 charge as an action to cast the Command spell. If you target a dragon with this casting, the dragon has disadvantage on its saving throw. The staff regains 1d10 charges daily at dawn.\",\r\n\tattunement : true,\r\n\tsavetxt : { adv_vs : [\"dragon breath weapons\", \"dragon spells\"] },\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d10\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"command\"],\r\n\t\tselection : [\"command\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"command\" : {\r\n\t\t\tdescription : \"1 crea, save or follow one word command, e.g. approach, drop, flee, halt; dragons disadv. on save\",\r\n\t\t\tchanges : \"When this spell is cast on a dragon they have disadvantage on the saving throw.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"feather of diatryma summoning\"] = {\r\n\tname : \"Feather of Diatryma Summoning\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"D\",\r\n\tdescription : \"As an action once per 7 days, I can speak the command word and throw this feather to an empty large space in 5 ft, where it becomes a diatryma (axe beak stats) for 6 hours, until I speak the command again, or it reaches 0 HP. It is friendly, understands my languages, obeys my commands, and can be used as a mount.\",\r\n\tdescriptionFull : \"This bright plume is made from the feather of a diatryma (pronounced dee-ah-TRY-mah), a Large, colorful, flightless bird native to the Underdark. If you use an action to speak the command word and throw the feather into a Large unoccupied space on the ground within 5 feet of you, the feather becomes a living diatryma for up to 6 hours, after which it reverts to its feather form. It reverts to feather form early if it drops to 0 hit points or if you use an action to speak the command word again while touching the bird.\\n   When the diatryma reverts to feather form, the magic of the feather can't be used again until 7 days have passed.\\n   The diatryma uses the statistics of an axe beak, except that its beak deals piercing damage instead of slashing damage. The creature is friendly to you and your companions, and it can be used as a mount. It understands your languages and obeys your spoken commands. If you issue no commands, the diatryma defends itself but takes no other actions.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"7 days\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"knave's eye patch\"] = { // contains contributions by Pengsloth\r\n\tname : \"Knave's Eye Patch\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"While wearing this eye patch I have advantage on Perception checks that rely on sight, I am unaffected by Sunlight Sensitivity if I have it, and I am immune to magic that would read my thoughts or determine whether I'm lying. Creatures can communicate telepathically with me only if I allow it.\",\r\n\tdescriptionFull : \"While wearing this eye patch, you gain these benefits:\\n \\u2022 You have advantage on Wisdom (Perception) checks that rely on sight.\\n \\u2022 If you have the Sunlight Sensitivity trait, you are unaffected by the trait.\\n \\u2022 You are immune to magic that allows other creatures to read your thoughts or determine whether you are lying. Creatures can communicate telepathically with you only if you allow it.\",\r\n\tattunement : true,\r\n\tvision : [[\"Adv. on Perception checks relying on sight\", 0]]\r\n}\r\nMagicItemsList[\"lord's ensemble\"] = {\r\n\tname : \"Lord's Ensemble\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tprerequisite : \"Requires attunement by a creature with a humanoid build\",\r\n\tdescription : \"While wearing this helm, amulet, and ring, my identity can't be determined. I move through difficult terrain as normal terrain. Magic can't be used to reduce my speed, paralyze me, restrain me, read my thoughts, or learn my alignment, creature type, or if I'm lying. I'm hidden from scrying and Divination magic.\",\r\n\tdescriptionLong : \"This set of a helm, amulet, and ring can be worn and attuned to as a single magic item, but only while within Waterdeep. The helm magically alters my voice to sound genderless, and makes me immune to magic that reads my thoughts, determines if I'm lying, or reveals my alignment or creature type. Creatures can't speak telepathically with me unless I allow it. The amulet causes me to be hidden from Divination magic and magical scrying sensors. The robe makes me look nondescript, makes difficult terrain not cost me extra movement, and stops magic from reducing my speed or me to be paralyze or restrained.\",\r\n\tdescriptionFull : \"The Masked Lords of Waterdeep don this ensemble when meeting with one another. This raiment renders each lord indistinguishable from the others. The ensemble consists of three pieces\\u2014a helm, an amulet, and a robe\\u2014that function as a single magic item when worn together, but only within the city of Waterdeep and its sewers. You become attuned to the ensemble as a single item.\\n   \" + toUni(\"Lord's Helm\") + \". This bucket helm covers your head and conceals your face. Screens over the eyes help to shroud your identity without blinding you. While you wear the helm, your voice is magically altered to sound genderless, and you are immune to magic that allows other creatures to read your thoughts, to determine whether you are lying, to know your alignment, or to know your creature type. Creatures can communicate telepathically with you only if you allow it.\\n   \" + toUni(\"Lord's Amulet\") + \". This amulet bears the crest of Waterdeep. It functions as an amulet of proof against detection and location.\\n   \" + toUni(\"Lord's Robe\") + \". This elegant robe functions as a ring of free action, and it creates the illusion that you have a nondescript, androgynous humanoid build and stand 6 feet tall.\",\r\n\tattunement : true,\r\n\tsavetxt : { immune : [\"paralyzed\", \"restrained\"] }\r\n}\r\nMagicItemsList[\"paper bird\"] = {\r\n\tname : \"Paper Bird\",\r\n\tsource : [[\"WDH\", 191]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"I can write up to 50 words on a sheet of the 1d6+3 in this box and speak a creature's name, causing the parchment to fold into a Tiny bird and fly to that creature on the same plane if it isn't stopped. It has 60 ft fly speed, 1 HP, AC 13, Dex 16, 1 in all other ability scores, and immunity to poison and psychic damage.\",\r\n\tdescriptionFull : \"After you write a message of fifty words or fewer on this magic sheet of parchment and speak a creature's name, the parchment magically folds into a Tiny paper bird and flies to the recipient whose name you uttered. The recipient must be on the same plane of existence as you, otherwise the bird turns into ash as it takes flight.\\n   The bird is an object that has 1 hit point, an Armor Class of 13, a flying speed of 60 feet, a Dexterity of 16 (+3), and a score of 1 (\\u22125) in all other abilities, and it is immune to poison and psychic damage.\\n   It travels to within 5 feet of its intended recipient by the most direct route, whereupon it turns into a nonmagical and inanimate sheet of parchment that can be unfolded only by the intended recipient. If the bird's hit points or speed is reduced to 0 or if it is otherwise immobilized, it turns into ash.\\n   Paper birds usually come in small, flat boxes containing 1d6 + 3 sheets of the parchment.\",\r\n\tusages : \"1d6+3\",\r\n\trecovery : \"Never\"\r\n}\r\nMagicItemsList[\"ring of truth telling\"] = {\r\n\tname : \"Ring of Truth Telling\",\r\n\tsource : [[\"WDH\", 192]],\r\n\ttype : \"ring\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"While wearing this ring, I have advantage on Wisdom (Insight) checks to determine whether someone is lying to me.\",\r\n\tdescriptionFull : \"While wearing this ring, you have advantage on Wisdom (Insight) checks to determine whether someone is lying to you.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"smokepowder\"] = {\r\n\tname : \"Smokepowder\",\r\n\tsource : [[\"WDH\", 192]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"B\",\r\n\tdescription : \"The Forgotten Realms version of gunpowder.\",\r\n\tdescriptionFull : \"Smokepowder is a magical explosive chiefly used to propel a bullet out of the barrel of a firearm. It is stored in airtight wooden kegs or tiny, waterproof leather packets. A packet contains enough smokepowder for five shots, and a keg holds enough smokepowder for five hundred shots.\"+\r\n\t\t\"\\n   If smokepowder is set on fire, dropped, or otherwise handled roughly, it explodes and deals fire damage to each creature or object within 20 feet of it: 1d6 for a packet, 9d6 for a keg. A successful DC 12 Dexterity saving throw halves the damage.\"+\r\n\t\t\"\\n   Casting Dispel Magic on smokepowder renders it permanently inert.\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"Keg (500 shots)\", \"Packet (5 shots)\"],\r\n\t\"packet (5 shots)\" : {\r\n\t\tname : \"Smokepowder Packet\",\r\n\t\tdescription : \"This magical explosive is used to propel a bullet out of a firearm. These tiny, waterproof leather packets contain enough for five shots. Casting dispel magic on it renders it permanently inert. If it is set on fire, dropped, or handled roughly, it explodes and deals 1d6 fire damage to all within 20 ft, DC 12 Dex save halves.\",\r\n\t\tusages : 5,\r\n\t\trecovery : \"Never\",\r\n\t\tadditional : \"shots\",\r\n\t\tweight : 0.1, // 7000 grains per lb, 100 grains per shot\r\n\t\textraTooltip : \"AL: can be purchased for 1 treasure checkpoint. Once found, this item goes on a character's evergreen list of available items.\"\r\n\t},\r\n\t\"keg (500 shots)\" : {\r\n\t\tname : \"Smokepowder Keg\",\r\n\t\tdescription : \"This magical explosive is used to propel a bullet out of a firearm. This airtight wooden kegs contain enough for five hundred shots. Casting dispel magic on it renders it permanently inert. If it is set on fire, dropped, or handled roughly, it explodes and deals 9d6 fire damage to all within 20 ft, DC 12 Dex save halves.\",\r\n\t\tusages : 500,\r\n\t\trecovery : \"Never\",\r\n\t\tadditional : \"shots\",\r\n\t\tweight : 12 // 7000 grains per lb, 100 grains per shot (+2 for the keg itself)\r\n\t}\r\n}\r\n\r\n// Beast\r\n// Falcon is just a hawk under a different name, it has been added to the SRD code as a `nameAlt`\r\n"
  },
  {
    "path": "WotC material/pub_20181107_LLoK.js",
    "content": "var iFileName = \"pub_20181107_LLoK.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the magic items from the Lost Laboratory of Kwalish adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"LLoK\"] = {\r\n\tname : \"Lost Laboratory of Kwalish [items, spells]\",\r\n\tabbreviation : \"LLoK\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/258047/Lost-Laboratory-of-Kwalish-5e\",\r\n\tdate : \"2018/11/07\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"blade of the medusa\"] = {\r\n\tname : \"Blade of the Medusa\",\r\n\tnameTest : \"of the Medusa\",\r\n\tsource : [[\"LLoK\", 53]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I'm unwilling to part with this magic blade. When I attack a creature with it and roll a 20 to hit, it must make a DC 15 Con save or be restrained, and on a roll of 1, I must make that save. At the end of each of the target's turns, it can save again, ending the effect with 3 successes, or petrified for 1 hour after 3 failures.\",\r\n\tdescriptionLong : \"I'm unwilling to part with this magic sword. When I attack a creature with it and roll a 20 to hit, it must make a DC 15 Constitution save or be restrained. However, if I roll of 1 on the attack roll, I must make that same save. At the end of each of the effected target's turns, it can make the save again. If it successfully saves against this effect three times, the effect ends. However, if it failed three times, it is turned to stone and petrified for 1 hour. A creature is immune to this effect if it is immune to damage of the weapon's type, does not have a body made of flesh, or has legendary actions.\",\r\n\tdescriptionFull : \"When you attack a creature with this magic weapon and roll a 20 on the attack roll, the creature must make a DC 15 Constitution saving throw in addition to suffering the attack's normal effects. On a failed save, the creature is restrained and must make another Constitution saving throw at the end of each of its turns. If it successfully saves against this effect three times, the effect ends. If it fails its saves three times, it is turned to stone and subjected to the petrified condition for 1 hour.\\n   A creature is immune to this effect if it is immune to damage of the weapon's type, does not have a body made of flesh, or has legendary actions.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the weapon. Whenever you attack a creature with this weapon and roll a 1 on the attack roll, you must succeed on a DC 15 Constitution saving throw or be restrained and forced to make additional saves against being petrified, as above.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of the medusa/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: DC 15 Con save or restrained, see item; On 1 to hit: I same save';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of the Medusa\" in a the name of a sword, it will be treated as the magic weapon Blade of the Medusa.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"galder's bubble pipe\"] = {\r\n\tname : \"Galder's Bubble Pipe\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This finely carved pipe has 3 charges, regaining all at dawn, which I can use to cast spells. As an action, I can expend all 3 charges to summon a steam mephit. It acts on its own initiative, is friendly to me, obeys my verbal commands, and disappears after 1 minute or if it ends its turn more than 60 ft from the pipe.\",\r\n\tdescriptionFull : \"This finely carved pipe blows odorless bubbles instead of smoke when used. The pipe has 3 charges, and it regains all spent charges daily at dawn. While you hold the pipe, you can expend charges to gain access to the following properties:\\n \\u2022 You can cast Fog Cloud as an action (1 charge).\\n \\u2022 You can cast Misty Step as a bonus action (2 charges).\\n \\u2022 You can summon a steam mephit as an action (3 charges). The mephit is friendly to you, obeys your verbal commands, and acts on its own turn in the initiative order. It disappears in a harmless puff of steam after 1 minute or if it ends its turn more than 60 feet from the pipe.\",\r\n\tattunement : true,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"fog cloud\"],\r\n\t\tselection : [\"fog cloud\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"gambler's blade\"] = {\r\n\tname : \"Gambler's Blade\",\r\n\tnameTest : \"Gambler's\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I am unwilling to part with this sword until I'm freed of its curse. Each day at dawn, I can choose its magical bonus to attack and damage rolls of +1, +2, or +3. However, I take a corresponding penalty (-1, -2, or -3) to my death saving throws.\",\r\n\tdescriptionFull : \"Choose a magical bonus of +1 to +3. This sword gains that bonus to its attack and damage rolls. For each point of bonus you choose for the sword, you take a corresponding penalty (-1 to -3) to your death saving throws. You can change this magical bonus each day at dawn.\\n   \" + toUni(\"Curse\") + \". This weapon is cursed, and becoming attuned to it extends the curse to you. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the weapon.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/gambler's/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Choose its magic bonus (1-3), but equal penalty on death saves';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If I include the word \\\"Gambler's\\\" in a the name of a sword, it will be treated as the magic weapon Gambler's Blade.\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"heward's hireling armor\"] = {\r\n\tname : \"Heward's Hireling Armor\",\r\n\tnameAlt : \"Hireling Armor\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This leather armor gives me a +1 bonus to AC and allows me to draw or stow two one-handed weapons when I would normally be able to draw or stow only one. It has 6 pockets that hold 20 lb (2 cu ft) each as they are extradimensional spaces. Retrieving an item from a pocket requires an action.\",\r\n\tdescriptionFull : \"A number of Kwalish's experiments were attempts to research the works of the legendary mage Heward, who first crafted what he named hireling armor. While wearing this armor, you gain a +1 bonus to AC. In addition, the armor's animated straps can assist with the drawing and sheathing of weapons, such that you can draw or stow two one-handed weapons when you would normally be able to draw or stow only one.\\n   This armor also has six pockets, each of which is an extradimensional space. Each pocket can hold up to 20 pounds of material, not exceeding a volume of 2 cubic feet. The armor always weighs 10 pounds, regardless of its pockets' contents. Placing an object into one of the armor's pockets follows the normal rules for interacting with objects. Retrieving an item from a pocket of the armor requires you to use an action. When you reach into a pocket for a specific item, the item is always magically on top.\\n   Placing the armor inside an extradimensional space created by a bag of holding, a Heward's handy haversack, or a similar item instantly destroys both items and opens a gate to the Astral Plane. The gate originates where the one item was placed inside the other. Any creature within 10 feet of the gate is sucked through it and deposited in a random location on the Astral Plane. The gate then closes. The gate is one-way only and can't be reopened.\",\r\n\tweight : 10,\r\n\taction : [[\"action\", \" (retrieve item)\"]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*heward)(?=.*hireling)(?=.*armor).*$/i,\r\n\t\tname : \"Heward's Hireling Armor\",\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nif (MagicItemsList[\"ioun stone\"]) {\r\n\tMagicItemsList[\"ioun stone\"].incrementSkill = function (aSkill, iType, forceRemove) {\r\n\t\tif (SkillsList.abbreviations.indexOf(aSkill) == -1) return;\r\n\t\tvar aIndx = SkillsList.abbreviations.indexOf(aSkill);\r\n\t\tvar aFld = (Who(\"Text.SkillsNames\") === \"alphabeta\" ? aSkill : SkillsList.abbreviationsByAS[aIndx]) + \" Bonus\";\r\n\t\tvar iSkill = SkillsList.names[aIndx];\r\n\t\tvar iName = \"Ioun Stone of \" + iType;\r\n\t\tvar iTxt = \"While the \" + iName + \" orbits my head and I'm proficient with the \" + iSkill + \" skill, I gain a +1 bonus on checks with it.\";\r\n\t\tvar addIt = forceRemove ? false : CurrentProfs.skill[aSkill] && CurrentProfs.skill[aSkill].length > 1;\r\n\t\tvar hasBonus = How(aFld).indexOf(iTxt) !== -1;\r\n\t\tif (hasBonus !== addIt) {\r\n\t\t\tprocessMods( addIt, iName + \" (magic item)\", [{ type : \"skill\", field : aSkill, mod : 1, text : iTxt }] );\r\n\t\t}\r\n\t}\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Supreme Intellect\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this faceted sphere orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I gain a +1 bonus on Intelligence checks.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain a +1 bonus to Intelligence checks while this faceted sphere orbits your head.\",\r\n\t\taddMod : [\r\n\t\t\t{ type : \"skill\", field : \"Arcana\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"History\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Investigation\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Nature\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" },\r\n\t\t\t{ type : \"skill\", field : \"Religion\", mod : 1, text : \"While the Ioun stone of Supreme Intellect orbits my head, I gain a +1 bonus on Intelligence checks.\" }\r\n\t\t]\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Historical Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this polished, steely sphere orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the History skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the History skill, or a +1 bonus to checks with that skill if already proficient, while this polished, steely sphere orbits your head.\",\r\n\t\tskills : [\"History\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"His\", \"Historical Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"His\", \"Historical Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Natural Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this burnished, brassy stone orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the Nature skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the Nature skill, or a +1 bonus to checks with that skill if already proficient, while this burnished, brassy stone orbits your head.\",\r\n\t\tskills : [\"Nature\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Nat\", \"Natural Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Nat\", \"Natural Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Religious Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this tiny golden gem orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has resistance to all damage and 10 HP. While it orbits my head, I gain proficiency in the Religion skill, or a +1 bonus with it if I'm already proficient.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain proficiency in the Religion skill, or a +1 bonus to checks with that skill if already proficient, while this tiny golden gem orbits your head.\",\r\n\t\tskills : [\"Religion\"],\r\n\t\tchangeeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Rel\", \"Religious Knowledge\"); },\r\n\t\tremoveeval : function () { MagicItemsList[\"ioun stone\"].incrementSkill(\"Rel\", \"Religious Knowledge\", true); }\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Language Knowledge\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tmagicItemTable : \"G\",\r\n\t\tdescription : \"As an action, I can make this pulsating bit of red jeweled crystal orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I am fluent in one additional language chosen by the DM.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You are fluent in one additional language while this pulsating bit of red jeweled crystal orbits your head. The DM chooses the language bestowed by the stone.\",\r\n\t\tlanguageProfs : [1]\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"ioun stone\"], false, \"Self-Preservation\", {\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As an action, I can make this silvery gem orbit my head at 1d3 ft or retrieve it. Others can catch it as an action with an attack or Acrobatics check (AC/DC 24). It has 10 HP and resistance to all damage. While it orbits my head, I gain a +1 bonus to Intelligence saving throws.\",\r\n\t\tdescriptionFull : \"An Ioun stone is named after Ioun, a god of knowledge and prophecy revered on some worlds. Many types of Ioun stone exist, each type a distinct combination of shape and color.\\n   When you use an action to toss one of these stones into the air, the stone orbits your head at a distance of 1d3 feet and confers a benefit to you. Thereafter, another creature must use an action to grasp or net the stone to separate it from you, either by making a successful attack roll against AC 24 or a successful DC 24 Dexterity (Acrobatics) check. You can use an action to seize and stow the stone, ending its effect.\\n   A stone has AC 24, 10 hit points, and resistance to all damage. It is considered to be an object that is being worn while it orbits your head.\\n   You gain a +1 bonus to Intelligence saving throws while this silvery gem orbits your head.\",\r\n\t\taddMod : [{ type : \"save\", field : \"Int\", mod : 1, text : \"While the Ioun stone of Self-Preservation orbits my head, I gain a +1 bonus to Intelligence saving throws.\" }]\r\n\t}, false, true); // force sorting on the last one\r\n}\r\nvar LLoK_leatherGolemArmorFullDescription = [\r\n\t\"Strange rituals have repurposed the body of a flesh golem into this partially sentient suit of leather armor. While wearing this armor, you gain the following benefits:\",\r\n\t\"\\u2022 You gain a +1 bonus to AC and to saving throws against spells and other magical effects.\",\r\n\t\"\\u2022 >>Immutable Form<<. You are immune to any spell or effect that would alter your form.\",\r\n\t\"\\u2022 >>Lightning Absorption<<. You gain resistance to lightning damage. Whenever you take lightning damage, you gain 5 temporary hit points.\",\r\n\t\">>Curse<<. This armor is cursed, and it extends to whomever becomes attuned to it. Until the curse is broken with a remove curse spell or similar magic, you are unwilling to part with the armor. In addition, while you wear the cursed armor, you gain the following properties:\",\r\n\t\"\\u2022 >>Aversion of Fire<<. If you take fire damage, you have disadvantage on attack rolls and ability checks until the end of your next turn.\",\r\n\t\"\\u2022 >>Berserk<<. Whenever you suffer a critical hit, roll a d6. On a 6, you go beserk because of the armor. On each of your turns while berserk, you attack the nearest creature you can see. If no creature is near enough to move to and attack, you attack an object, with preference for an object smaller than yourself. Once you go beserk because of the armor, it cannot be removed. You continue to attack until you are incapacitated or until another creature is able to change your state of mind with appropriate magic (such as a calm emotions spell) or a successful DC 15 Charisma (Persuasion) check.\"\r\n];\r\nMagicItemsList[\"leather golem armor\"] = {\r\n\tname : \"Leather Golem Armor\",\r\n\tsource : [[\"LLoK\", 55]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"I am unwilling to part with this leather armor until its curse is lifted from me, see Notes page. The curse makes me go berserk and have an aversion to fire. It gives me a +1 bonus to AC and saves vs. spells and magical effects. I have resistance to lightning damage and when I suffer such damage, I gain 5 temporary HP.\",\r\n\tdescriptionFull : LLoK_leatherGolemArmorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tweight : 10,\r\n\tdmgres : [\"Lightning\"],\r\n\tcursed : true,\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*leather)(?=.*golem)(?=.*armor).*$/i,\r\n\t\tname : \"Leather Golem Armor\",\r\n\t\tsource : [[\"LLoK\", 55]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { text : [\"+1 vs. spells and magical effects\"] },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_leatherGolemArmorFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/you /ig, \"I \")\r\n\t}]\r\n}\r\nvar LLoK_polymorphBladeFullDescription = [\r\n\t\"When you attack a creature with this magic weapon and roll a 20 on the attack roll, the creature must make a DC 15 Wisdom saving throw in addition to suffering the attack's normal effects. On a failed save, the creature also suffers the effects of a polymorph spell. Roll a d20 and consult the following table to determine the form the target creature is transformed into.\",\r\n\t\">>d20\\tNew Form   \\td20\\tNew Form<<\",\r\n\t\"  1\\tTyrannosaurus\\t 11\\tWolf\",\r\n\t\"  2\\tGiant ape    \\t 12\\tHorse\",\r\n\t\"  3\\tElephant     \\t 13\\tOx\",\r\n\t\"  4\\tGiant scorpion\\t 14\\tGiant frog\",\r\n\t\"  5\\tRhinoceros   \\t 15\\tPoisonous snake\",\r\n\t\"  6\\tPolar bear   \\t 16\\tHawk\",\r\n\t\"  7\\tGiant toad   \\t 17\\tOctopus\",\r\n\t\"  8\\tGiant eagle  \\t 18\\tCat\",\r\n\t\"  9\\tBlack bear   \\t 19\\tRat\",\r\n\t\"10\\tCrocodile     \\t 20\\tRabbit\",\r\n\t\"A creature is immune to this effect if it is immune to damage of the weapon's type, is a shapechanger, or has legendary actions.\",\r\n\t\">>Curse<<. This weapon is cursed, and it extends to whomever becomes attuned to it. Until the curse is broken with a Remove Curse spell or similar magic, you are unwilling to part with the weapon. Whenever you attack a creature with this weapon and roll a 1 on the attack roll, you suffer the effect of a polymorph spell for 1 hour, rolling on the table to determine your new form.\"\r\n];\r\nMagicItemsList[\"polymorph blade\"] = {\r\n\tname : \"Polymorph Blade\",\r\n\tnameTest : \"Polymorph\",\r\n\tsource : [[\"LLoK\", 59]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"very rare\",\r\n\tmagicItemTable : \"H\",\r\n\tdescription : \"I'm unwilling to part with this magic sword. When I attack a creature with it and roll a 20 to hit, the creature must make a DC 15 Wisdom save or be polymorphed for 1 hour into a random beast (see Notes page). However, on a roll of 1 to hit, I am the one being polymorphed for 1 hour without a save.\",\r\n\tdescriptionFull : LLoK_polymorphBladeFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/polymorph/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: DC 15 Wis save or polymorphed, see item; On 1 to hit: I polymorph';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Polymorph\" in a the name of a sword, it will be treated as the magic weapon Polymorph Blade.'\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_polymorphBladeFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/you /ig, \"I \")\r\n\t}]\r\n}\r\nvar LLoK_poweredArmorFullDescription = [\r\n\t\"Powered armor resembles a suit of unusual plate armor, with finely articulated joints connected by an oily, black, leather-like material. The armor has been worked to create the appearance of a heavily muscled warrior, and its great helm is unusual in that it has no openings\\u2014only a broad glass plate in the front with a second piece of glass above it. Strange plates, tubing, and large metal bosses adorn the armor in seemingly random fashion. On the back of the armor's left gauntlet is a rectangular metal box, from which projects a short rod tipped with a cone-shaped red crystal.\",\r\n\t\"While wearing this armor, you gain the following benefits:\",\r\n\t\"\\u2022 You have a +1 bonus to AC.\",\r\n\t\"\\u2022 Your Strength score is 18 (this has no effect if your Strength is already 18 or higher).\",\r\n\t\"\\u2022 You have advantage on death saving throws.\",\r\n\t\"The armor has further capabilities that can be powered either by energy cells or by your own life energy. You can use a bonus action to draw power from an energy cell or sacrifice hit points to gain one of the following benefits:\",\r\n\t\"\\u2022 Emit a force field to gain 2d6 + 5 temporary hit points (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Activate boosters to gain a flying speed of 15 feet for 1 minute (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Fire arm-mounted laser: +8 to hit, range 120 feet, one target. 2d6 radiant damage (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Translate any writing you can see in any nonmagical language, to a total of one thousand words over 1 minute (1 charge or 5 hit points).\",\r\n\t\"\\u2022 Fill the armor with air, so you can breathe normally in any environment for up to 1 hour (1 charge or 5 hit points).\",\r\n\t\"u2022 Gain darkvision to a range of 60 feet for up to 1 hour (1 charge or 5 hit points).\",\r\n\t\"The armor can accept only one energy cell at a time. It is found with one energy cell attached, containing 2d10 charges.\"\r\n];\r\nMagicItemsList[\"powered armor-llk\"] = {\r\n\tname : \"Powered Armor (LLK)\", // add source to name so it won't conflict with Powered Armor from QftIS\r\n\tsource : [[\"LLoK\", 56]],\r\n\ttype : \"armor (plate)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This unusual plate armor looks like a heavily muscled warrior with a helm without openings. It gives me a +1 bonus to AC, increases my Strength to 18, and adv. on death saves. As a bonus action, I can use charges from its energy cell or expend my own HP to have it do various things, see Notes page.\",\r\n\tdescriptionFull : LLoK_poweredArmorFullDescription.join(\"\\n   \"),\r\n\tattunement : true,\r\n\tweight : 65,\r\n\tscoresOverride : [18, 0, 0, 0, 0, 0],\r\n\tsavetxt : { text : [\"Adv. on death saves\"] },\r\n\taction : [[\"bonus action\", \" (use energy)\"]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*powered)(?=.*armor).*$/i,\r\n\t\tname : \"Powered Armor\",\r\n\t\tsource : [[\"LLoK\", 56]],\r\n\t\ttype : \"heavy\",\r\n\t\tac : \"18+1\",\r\n\t\tstealthdis : true,\r\n\t\tweight : 65,\r\n\t\tstrReq : 15,\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : \"2d10\",\r\n\trecovery : \"Never\",\r\n\tadditional : \"energy cell\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(LLoK_poweredArmorFullDescription).replace(/your/g, \"my\").replace(/you /ig, \"I \")\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arm)(?=.*mounted)(?=.*laser).*$/i,\r\n\t\tname : \"Arm-Mounted Laser\",\r\n\t\tsource : [[\"LLoK\", 56]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [2, 6, \"radiant\"],\r\n\t\trange : \"120 ft\",\r\n\t\tdescription : \"Bonus action; Uses 1 charge or 5 HP\",\r\n\t\tabilitytodamage : false,\r\n\t\tmodifiers : [8, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\n\r\n// Spells (contain contributions by /u/KittenWithMittens)\r\nSpellsList[\"flock of familiars\"] = {\r\n\tname : \"Flock of Familiars\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 3+1/SL familiars as Find Familiar; can see through their eyes and deliver touch spells; see B\",\r\n\tdescriptionFull : \"You temporarily summon three familiars\\u2014spirits that take animal forms of your choice. Each familiar uses the same rules and options for a familiar conjured by the find familiar spell. All the familiars conjured by this spell must be the same type of creature (celestials, fey, or fiends; your choice). If you already have a familiar conjured by the find familiar spell or similar means, then one fewer familiars are conjured by this spell.\\n   Familiars summoned by this spell can telepathically communicate with you and share their visual or auditory senses while they are within 1 mile of you.\\n   When you cast a spell with a range of touch, one of the familiars conjured by this spell can deliver the spell, as normal. However, you can cast a touch spell through only one familiar per turn.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you conjure an additional familiar for each slot level above 2nd.\"\r\n}\r\nSpellsList[\"galder's speedy courier\"] = {\r\n\tname : \"Galder's Speedy Courier\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"25 gp, or mineral goods of equivalent value, which the spell consumes\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Send 3\\xD73\\xD73 ft chest of items I put in it to named crea on same plane; SL8: other plane (25gp cons.)\",\r\n\tdescriptionMetric : \"Send 1\\xD71\\xD71 m chest of items I put in it to named crea on same plane; SL8: other plane (25gp cons.)\",\r\n\tdescriptionFull : \"You summon a Small air elemental to a spot within range. The air elemental is formless, nearly transparent, immune to all damage, and cannot interact with other creatures or objects. It carries an open, empty chest whose interior dimensions are 3 feet on each side. While the spell lasts, you can deposit as many items inside the chest as will fit. You can then name a living creature you have met and seen at least once before, or any creature for which you possess a body part, lock of hair, clipping from a nail, or similar portion of the creature's body.\\n   As soon as the lid of the chest is closed, the elemental and the chest disappear, then reappear adjacent to the target creature. If the target creature is on another plane, or if it is proofed against magical detection or location, the contents of the chest reappear on the ground at your feet.\\n   The target creature is made aware of the chest's contents before it chooses whether or not to open it, and knows how much of the spell's duration remains in which it can retrieve them. No other creature can open the chest and retrieve its contents. When the spell expires or when all the contents of the chest have been removed, the elemental and the chest disappear. The elemental also disappears if the target creature orders it to return the items to you. When the elemental disappears, any items not taken from the chest reappear on the ground at your feet.\" + AtHigherLevels + \"When you cast this spell using an 8th-level spell slot, you can send the chest to a creature on a different plane of existence from you.\"\r\n}\r\nSpellsList[\"galder's tower\"] = {\r\n\tname : \"Galder's Tower\",\r\n\tclasses : [\"wizard\"],\r\n\tsource : [[\"LLoK\", 57]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A fragment of stone, wood, or other building material\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Conjure round or square tower with 2+1/Sl stories, each 100 sq ft and 10 ft high; see book\",\r\n\tdescriptionFull : \"You conjure a two-story tower made of stone, wood, or similar suitably sturdy materials. The tower can be round or square in shape. Each level of the tower is 10 feet tall and has an area of up to 100 square feet. Access between levels consists of a simple ladder and hatch. Each level takes one of the following forms, chosen by you when you cast the spell:\" +\r\n\t\"\\n \\u2022 A bedroom with a bed, chairs, chest, and magical fireplace\" +\r\n\t\"\\n \\u2022 A study with desks, books, bookshelves, parchments, ink, and ink pens\" +\r\n\t\"\\n \\u2022 A dining space with a table, chairs, magical fireplace, containers, and cooking utensils\" +\r\n\t\"\\n \\u2022 A lounge with couches, armchairs, side tables and footstools\" +\r\n\t\"\\n \\u2022 A washroom with toilets, washtubs, a magical brazier, and sauna benches\" +\r\n\t\"\\n \\u2022 An observatory with a telescope and maps of the night sky\" +\r\n\t\"\\n \\u2022 An unfurnished, empty room\" +\r\n\t\"\\n\\nThe interior of the tower is warm and dry, regardless of conditions outside. Any equipment or furnishings conjured with the tower dissipate into smoke if removed from it. At the end of the spell's duration, all creatures and objects within the tower that were not created by the spell appear safely outside on the ground, and all traces of the tower and its furnishings disappear.\" +\r\n\t\"\\n   You can cast this spell again while it is active to maintain the tower's existence for another 24 hours. You can create a permanent tower by casting this spell in the same location and with the same configuration every day for one year.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the tower can have one additional story for each slot level beyond 3rd.\"\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20181120_GGtR.js",
    "content": "var iFileName = \"pub_20181120_GGtR.js\";\nRequiredSheetVersion(\"14.0.5-beta\");\n// This file adds all material from the Guildmasters' Guide to Ravnica to MPMB's Character Record Sheet\n\n// Define the source\nSourceList.G = {\n\tname : \"Guildmasters' Guide to Ravnica\",\n\tabbreviation : \"GGtR\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Magic: The Gathering\",\n\turl : \"https://dnd.wizards.com/products/guildmasters-guide-ravnica\",\n\tdate : \"2018/11/20\"\n};\n\n// Add the Centaur race\nRaceList[\"centaur\"] = {\n\tregExpSearch : /centaur/i,\n\tname : \"Centaur\",\n\tsortname : \"Centaur\",\n\tsource : [[\"G\", 15], [\"MOT\", 19]],\n\tplural : \"Centaurs\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 40, enc : 30 }\n\t},\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\n\t\tname : \"Hooves\",\n\t\tsource : [[\"G\", 15], [\"MOT\", 19]],\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\tdescription : \"Use as bonus action after charge 30 ft\",\n\t\tselectNow : true\n\t}],\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, or Survival\",\n\tage : \" mature and age at about the same rate as humans\",\n\theight : \" stand between 6 and 7 feet tall, with their equine bodies reaching about 4 feet at the withers (6'0\\\" + 1d10\\\")\",\n\tweight : \" weigh around 670 lb (600 + 1d10 \\xD7 2d12 lb)\",\n\theightMetric : \" stand around 2 metres tall, with their equine bodies reaching about 1,5 metres at the withers (183 + 3d8 cm)\",\n\tweightMetric : \" weigh around 300 kg (270 + 3d8 \\xD7 4d12 / 10 kg)\",\n\tscores : [2, 0, 0, 0, 1, 0],\n\ttrait : \"Centaur (+2 Strength +1 Wisdom)\" + desc([\n\t\t\"Fey: My creature type is fey, rather than humanoid.\",\n\t\t\"Hooves: I can use my hooves for unarmed strikes that deal 1d4 bludgeoning damage.\",\n\t\t\"Charge: If I move 30 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can make a hooves attack against it as a bonus action.\",\n\t\t\"Equine Build: I count as one size larger for my carrying capacity and the weight I can push, drag, or lift. Because of my hooves, 1 ft of movement while climbing costs me 4 ft.\"\n\t]),\n\taction : [[\"bonus action\", \"Hooves (after charge)\"]],\n\tcarryingCapacity : 2\n};\n// [dupl_start] Reprint from Volo's Guide to Monsters\nif (!RaceList[\"goblin\"]) {\n\tRaceList[\"goblin\"] = {\n\t\tregExpSearch : /^(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\n\t\tname : \"Goblin\",\n\t\tsource : [[\"V\", 119], [\"G\", 17], [\"E:RLW\", 26], [\"W\", 174]],\n\t\tplural : \"Goblins\",\n\t\tsize : 4,\n\t\tspeed : {\n\t\t\twalk : { spd : 30, enc : 20 }\n\t\t},\n\t\tlanguageProfs : [\"Common\", \"Goblin\"],\n\t\tvision : [[\"Darkvision\", 60]],\n\t\tage : \" reach adulthood at age 8 and live up to 60 years\",\n\t\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\n\t\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\n\t\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\n\t\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\n\t\tscores : [0, 2, 1, 0, 0, 0],\n\t\tfeatures : {\n\t\t\t\"fury of the small\" : {\n\t\t\t\tname : \"Fury of the Small\",\n\t\t\t\tminlevel : 1,\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"short rest\",\n\t\t\t\tadditional : levels.map(function (n) { return \"+\" + n + \" damage\"; })\n\t\t\t}\n\t\t},\n\t\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\n\t\ttrait : \"Goblin (+2 Dexterity, +1 Constitution)\"+\n\t\t\"\\n \\u2022 Fury of the Small: Once per short rest, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my level.\"+\n\t\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\n\t};\n} // dupl_end\n\n// Add Loxodon\nRaceList[\"loxodon\"] = {\n\tregExpSearch : /loxodon/i,\n\tname : \"Loxodon\",\n\tsource : [[\"G\", 18]],\n\tplural : \"Loxodons\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Loxodon\"],\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*loxodon)(?=.*(natural|hide|skin)).*$/i,\n\t\tname : \"Loxodon Natural Armor\",\n\t\tsource : [[\"G\", 18]],\n\t\tac : \"12+Con\",\n\t\tdex : -10,\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Keen Smell\", 0]],\n\tage : \" physically mature at the same rate as humans, but are considered young until they reach the age of 60 and live about 450 years\",\n\theight : \" stand between 7 and 8 feet tall (6'7\\\" + 2d10\\\")\",\n\tweight : \" weigh between 300 and 400 pounds (295 + 2d10 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 2 and 2,5 metres tall (200 + 5d10 cm)\",\n\tweightMetric : \" weigh between 135 and 200 kg (133 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 2, 0, 1, 0],\n\ttrait : \"Loxodon (+2 Constitution, +1 Wisdom)\" +\n\t\t\"\\n  Powerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\" +\n\t\t\"\\n  Natural Armor: \" + (typePF ? \"I have an AC of\" : \"My thick, leathery skin gives me AC\") + \" 12 + Constitution modifier + shield.\" +\n\t\t\"\\n  Trunk: I can grasp things with my trunk or use it as a snorkel. It has a reach of 5 ft and can lift things up to 5\\xD7 my Strength in pounds. I can also use it to make unarmed strikes, but I can't use it to wield weapons, shields, or anything that requires manual precision.\" +\n\t\t\"\\n  Keen Smell: I have \" + (typePF ? \"advantage on Wisdom (Perception), Wisdom (Survival), and Intelligence (Investigation) checks that involve smell.\" : \"adv. on Perception, Survival, and Investigation checks involving smell.\"),\n\tcarryingCapacity : 2\n};\n\n// Add the Minotaur race\nRaceList[\"minotaur\"] = {\n\tregExpSearch : /minotaur/i,\n\tname : \"Minotaur\",\n\tsortname : \"Minotaur\",\n\tsource : [[\"G\", 19], [\"MOT\", 22]],\n\tplural : \"Minotaurs\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Minotaur\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /\\bhorns?\\b/i,\n\t\tname : \"Horns\",\n\t\tsource : [[\"G\", 19], [\"MOT\", 23]],\n\t\tdamage : [1, 6, \"piercing\"],\n\t\tdescription : \"Attack as a bonus action after moving 20 ft with the Dash action\",\n\t\tselectNow : true\n\t}],\n\tskillstxt : \"Choose one from Intimidation or Persuasion\",\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\n\theight : \" stand around 6 feet tall (5'4\\\" + 2d8\\\")\",\n\tweight : \" weigh around 300 pounds (175 + 2d8 \\xD7 2d6 lb)\",\n\theightMetric : \" stand around 175 cm tall (163 + 5d8 cm)\",\n\tweightMetric : \" weigh around 135 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\n\tscores : [2, 0, 1, 0, 0, 0],\n\tabilitySave : 1,\n\ttrait : \"Minotaur (+2 Strength +1 Constitution)\" + desc([\n\t\t\"Horns: I can use my horns for unarmed strikes that deal 1d6 piercing damage.\",\n\t\t\"Goring Rush: When taking a Dash action and moving at least 20 ft, I can make a horns attack as a bonus action.\",\n\t\t\"Hammering Horns: As a bonus action after I hit a melee attack during my Attack action, I can shove that target with my horns, if it is up to than one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 10 ft away from me.\"\n\t]),\n\tfeatures : {\n\t\t\"goring rush\" : {\n\t\t\tname : \"Goring Rush\",\n\t\t\tminlevel : 1,\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\n\t\t},\n\t\t\"hammering horns\" : {\n\t\t\tname : \"Hammering Horns\",\n\t\t\tminlevel : 1,\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]]\n\t\t}\n\t}\n};\n\n// Add Simic Hybrid\nRaceList[\"simic hybrid\"] = {\n\tregExpSearch : /^(?=.*(simic|elf|dwarf|human|orc))(?=.*hybrid).*$/i,\n\tname : \"Simic hybrid\",\n\tsource : [[\"G\", 20]],\n\tplural : \"Simic hybrids\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Elvish or Vedalken\", 1]],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptionsSp : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*grappling)(?=.*(appendage|tentacle|claw)).*$/i,\n\t\tname : \"Grappling Appendages\",\n\t\tsource : [[\"G\", 20]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tdescription : \"After hitting, start grapple on target as a bonus action\"\n\t}, {\n\t\tregExpSearch : /^(?=.*acid)(?=.*spit).*$/i,\n\t\tname : \"Acid Spit\",\n\t\tsource : [[\"G\", 21]],\n\t\tability : 3,\n\t\ttype : \"Natural\",\n\t\tdamage : [\"C\", 10, \"acid\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Dex save, success - no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\textraACSp : {\n\t\tname : \"Carapace\",\n\t\tmod : 1,\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor.\",\n\t\tstopeval : function (v) { return v.heavyArmor; }\n\t},\n\tage : \" age slightly faster than their base humanoid race and their maximum lifespan is somewhat reduced\",\n\theight : \" are of the same height as typical for their humanoid race\",\n\tweight : \" are of the same weight as typical for their humanoid race\",\n\tscorestxt : \"Simic Hybrid: +2 Constitution and +1 to one other ability score of my choice;\",\n\tscores : [0, 0, 2, 0, 0, 0],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (1st level): Choose one to three types of enhancement using the \\\"Racial Options\\\" button: Manta Glide, Nimble Climber, or Underwater Adaptation.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can either choose one I didn't take at 1st level or choose Grappling Appendages, Carapace, or Acid Spit.\",\n\tfeatures : {\n\t\t\"animal enhancement\" : {\n\t\t\tname : \"Animal Enhancement\",\n\t\t\tminlevel : 5,\n\t\t\teval : function() {\n\t\t\t\tvar curChoice = ParseRace(What('Race Remember'))[1].capitalize();\n\t\t\t\tvar AEoptions = [\"Manta Glide\", \"Nimble Climber\", \"Underwater Adaptation\", \"Grappling Appendages\", \"Carapace\", \"Acid Spit\"];\n\t\t\t\tif (curChoice && AEoptions.indexOf(curChoice) !== -1) AEoptions.splice(AEoptions.indexOf(curChoice), 1);\n\t\t\t\tvar theChoice = AskUserOptions('Simic Hybrid 5th-level Animal Enhancement', 'The Simic Hybrid race offers a choice of animal enhancement at 5th-level. Make a selection to update the sheet accordingly. You can only change this selection by removing the Simic Hybrid race or changing its variant.', AEoptions, 'radio', true);\n\t\t\t\tvar feaTxt = '';\n\t\t\t\tvar rObjNm = \"simic hybrid\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Manta Glide\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { climb : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Nimble Climber)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { swim : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Underwater Adaptation)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Grappling Appendages): I have two extra appendages which I can use to make unarmed strikes for 1d6 bludgeoning damage. As a bonus action after hitting with them, I can try to grapple the target. I can't use these appendages to wield anything.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tAddWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tAddAction(\"bonus action\", \"Grappling Appendages (after hit)\", rNm + \": Animal Enhancement (Grappling Appendages)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Carapace): My skin is covered by a thick shell, giving my a +1 to AC whenever I'm not wearing heavy armor.\";\n\t\t\t\t\t\tprocessExtraAC(true, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Acid Spit): As an action, I can spit acid at a creature within 30 ft that I can see. It must make a Dex save (DC 8 + Con mod + Prof Bonus) or take 2d10 acid damage (+1d10 at 11th and 17th level). I can do this my Con mod times per long rest.\";\n\t\t\t\t\t\tAddFeature(\"Acid Spit\", \"Con Mod\", \"\", \"long rest\", rNm + \": Animal Enhancement (Acid Spit)\", 0, \"event.value = Math.max(1, What('Con Mod'));\");\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tAddWeapon(\"Acid Spit\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tif (What(\"Unit System\") !== \"imperial\") feaTxt = ConvertToMetric(feaTxt, 0.5);\n\t\t\t\tValue(\"Racial Traits\", What(\"Racial Traits\").replace(/Animal Enhancement \\(5th level\\):.*/, '') + feaTxt);\n\t\t\t\tValue(\"Race Remember\", What(\"Race Remember\") + \"-*\" + theChoice.replace(' ', '_') + \"*\");\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar theRegex = /\\*(Manta_Glide|Nimble_Climber|Underwater_Adaptation|Grappling_Appendages|Carapace|Acid_Spit)\\*/i;\n\t\t\t\tvar raceRem = What(\"Race Remember\");\n\t\t\t\tif (!theRegex.test(raceRem)) return;\n\t\t\t\tvar theChoice = raceRem.match(theRegex)[1].replace('_', ' ').capitalize();\n\t\t\t\tvar rObjNm = \"simic hybrid\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { climb : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Nimble Climber)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { swim : { spd : 'walk', enc : 'walk' } }, rNm + \": Animal Enhancement (Underwater Adaptation)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tRemoveWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tRemoveAction(\"bonus action\", \"Grappling Appendages (after hit)\", rNm + \": Animal Enhancement (Grappling Appendages)\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tprocessExtraAC(false, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tRemoveFeature(\"Acid Spit\", \"\", \"\", \"\", \"\", \"\", \"event.value = Math.max(1, What('Con Mod'));\");\n\t\t\t\t\t\tRemoveWeapon(\"Acid Spit\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tValue(\"Racial Traits\", What(\"Unit System\") === \"imperial\" ? CurrentRace.trait : ConvertToMetric(CurrentRace.trait, 0.5));\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"simic hybrid\", \"manta glide\", {\n\tregExpSearch : /manta glide/i,\n\tsource : [[\"G\", 20]],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Nimble Climber, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid\", \"nimble climber\", {\n\tregExpSearch : /nimble climber/i,\n\tsource : [[\"G\", 20]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid\", \"underwater adaptation\", {\n\tregExpSearch : /underwater adaptation/i,\n\tsource : [[\"G\", 20]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Nimble Climber, Grappling Appendages, Carapace, or Acid Split.\"\n});\n\n// Add Vedalken\nRaceList[\"vedalken\"] = {\n\tregExpSearch : /vedalken/i,\n\tname : \"Vedalken\",\n\tsource : [[\"G\", 21]],\n\tplural : \"Vedalken\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tskillstxt : \"Choose one from Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. I add 1d4 to a check with the chosen skill\",\n\tlanguageProfs : [\"Common\", \"Vedalken\", 1],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" reach maturity around age 40 and typically live 350 years, with some living up to 500 years\",\n\theight : \" stand between 6 and 6 and a half feet tall (5'4\\\" + 2d10\\\")\",\n\tweight : \" are slender, weighing around 200 pounds (110 + 2d10 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 1,8 and 2 metres tall (163 + 5d10 cm)\",\n\tweightMetric : \" are slender, weighing around 100 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 0, 0, 2, 1, 0],\n\ttrait : \"Vedalken (+2 Intelligence, +1 Wisdom)\" + desc([\n\t\t\"Vedalken Dispassion: I have advantage on all Intelligence, Wisdom, and Charisma saves.\",\n\t\t\"Tireless Precision: I am proficient with any one tool and one skill of my choice: Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. Whenever I make an ability check with the chosen tool or skill, I can add 1d4 to the check's total.\",\n\t\t\"Partially Amphibious: Once per long rest, I can breathe underwater for 1 hour by absorbing oxygen through my skin.\"\n\t]),\n\tfeatures : {\n\t\t\"partially amphibious\" : {\n\t\t\tname : \"Partially Amphibious\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t},\n\tadvantages : [[\"Int\", true], [\"Wis\", true], [\"Cha\", true]]\n};\n\n// New Subclass for Cleric: Order Domain\nAddSubClass(\"cleric\", \"order domain\", {\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*order).*$/i,\n\tsubname : \"Order Domain\",\n\tsource : [[\"T\", 31], [\"G\", 25]],\n\tspellcastingExtra : [\"command\", \"heroism\", \"hold person\", \"zone of truth\", \"mass healing word\", \"slow\", \"compulsion\", \"locate creature\", \"commune\", \"dominate person\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Bonus Proficiency\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 1,\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor, and either the Intimidation or Persuasion skill\"),\n\t\t\tarmorProfs : [false, false, true, false],\n\t\t\tskillstxt : \"Choose one from Intimidation or Persuasion\"\n\t\t},\n\t\t\"subclassfeature1.1\" : {\n\t\t\tname : \"Voice of Authority\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 1,\n\t\t\tdescription : desc([\n\t\t\t\t\"Whenever I use a spell slot to cast a spell on an ally, it can use its reaction to attack\",\n\t\t\t\t\"The ally makes one weapon attack against a target of my choice that I can see\",\n\t\t\t\t\"If the spell targets multiple allies, I can choose which one can make the attack\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Channel Divinity: Order's Demand\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, all chosen targets in 30 ft that can see or hear me must make a Wis save\",\n\t\t\t\t\"If failed, it is charmed by me until the end of my next turn or it takes any damage\",\n\t\t\t\t\"Also, I can choose to have a charmed target drop what its holding when it fails its save\"\n\t\t\t]),\n\t\t\taction : [[\"action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Embodiment of the Law\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I cast an enchantment spell using a spell slot, I can reduce its casting time\",\n\t\t\t\t\"If the spell normally has a casting time of an action, I can now cast it as a bonus action\"\n\t\t\t]),\n\t\t\tusages : \"Wisdom modifier per \",\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery : \"long rest\",\n\t\t\tcalcChanges : {\n\t\t\t\tspellAdd : [\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\t\t\tif (CurrentSpells[spName].refType == \"class\" && spellObj.school == \"Ench\" && spellObj.time == \"1 a\") {\n\t\t\t\t\t\t\tspellObj.time = \"1a/bns\"\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"When I cast an enchantment spell using a spell slot that normally requires 1 action to cast, I can reduce its casting time to a bonus action.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature8\" : {\n\t\t\tname : \"Divine Strike\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 8,\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\tif (n < 8) return \"\";\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\n\t\t\t}),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage' + (classes.known.cleric.level < 17 ? '' : ' \\u0026 again if hit by ally before my next turn');\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature17\" : {\n\t\t\tname : \"Order's Wrath\",\n\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\n\t\t\tminlevel : 17,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I deal my Divine Strike damage to a creature, it is cursed until my next turn starts\",\n\t\t\t\t\"The next time it is hit by a weapon attack from my allies, it takes +2d8 psychic damage\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n// New Subclass for Druid: Circle of Spores (but add TCoE as main source, because it is more likely to be available at a table)\nAddSubClass(\"druid\", \"circle of spores\", {\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*spores).*$/i,\n\tsubname : \"Circle of Spores\",\n\tsubnameShort: \"Spores\",\n\tsource : [[\"T\", 36], [\"G\", 26]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Circle Spells\",\n\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"I learn the Chill Touch cantrip and gain the ability to cast certain spells\",\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Circle Spells\",\n\t\t\t\tspells : [\"chill touch\"],\n\t\t\t\tselection : [\"chill touch\"]\n\t\t\t}],\n\t\t\tspellcastingExtra : [\"blindness/deafness\", \"gentle repose\", \"animate dead\", \"gaseous form\", \"blight\", \"confusion\", \"cloudkill\", \"contagion\"]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Halo of Spores\",\n\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\n\t\t\tminlevel : 2,\n \t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when someone I can see in 10 ft starts its turn or moves, I can have it save\",\n\t\t\t\t\"It must succeed on a Constitution save or take necrotic damage from my cloud of spores\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : 'Con save or 1d' + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10) + \" necrotic damage\"; }),\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature2.2\" : { // changed from poison to necrotic damage in TCoE\n\t\t\tname : \"Symbiotic Entity\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can expend a Wild Shape use to boost my spores instead of transforming\",\n\t\t\t\t\"I gain 4 temporary hit points per druid level and my Halo of Spores damage increases\",\n\t\t\t\t\"Also, my melee weapon attacks do +1d6 necrotic damage with every hit\",\n\t\t\t\t\"This lasts for 10 min, until these temporary HP run out, or until I use Wild Shape again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 2 ? \"\" : Math.floor(n*4) + \" temp HP; Halo of Spores: 2d\" + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10);\n\t\t\t}),\n\t\t\taction : [[\"action\", \"\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/\\b(spore|symbiotic)\\b/i).test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 necrotic damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the word 'Spore' or 'Symbiotic' in a melee weapon's name, it gets treated as a weapon that is infused by my Symbiotic Entity feature, adding +1d6 necrotic damage in the description.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Fungal Infestation\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when a Small/Medium beast/humanoid dies in 10 ft, I can animate it\",\n\t\t\t\t\"It rises as a zombie with 1 HP that follows my mental commands and dies after 1 hour\",\n\t\t\t\t\"It can only take the attack action for one melee attack; It takes its turns after mine\"\n\t\t\t]),\n\t\t\tusages : \"Wisdom modifier per \",\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Spreading Spores\",\n\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : \" [only while Symbiotic Entity is active]\" + desc([\n\t\t\t\t\"As a bonus action, I create a 10-ft cube of fungal spores within 30 ft, lasting for 1 min\",\n\t\t\t\t\"Any creature moving into or starting its turn in it must save against my Halo of Spores\",\n\t\t\t\t\"The cube ends if I use this feature again; While it persists, I can't use my Halo of Spores\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Fungal Body\",\n\t\t\tsource : [[\"T\", 38], [\"G\", 27]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"I'm immune to being blinded, deafened, frightened, poisoned, and critical hits\"\n\t\t\t]),\n\t\t\tsavetxt : { immune : [\"blinded\", \"deafened\", \"frightened\", \"poisoned\", \"critical hits (unless incapacitated)\"] }\n\t\t}\n\t}\n});\n\nBackgroundList[\"azorius functionary\"] = {\n\tregExpSearch : /^(?=.*azorius)(?=.*functionary).*$/i,\n\tname : \"Azorius Functionary\",\n\tsource : [[\"G\", 33]],\n\tskills : [\"Insight\", \"Intimidation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"friends\", \"message\", \"command\", \"ensnaring strike\", \"arcane lock\", \"calm emotions\", \"hold person\", \"clairvoyance\", \"counterspell\", \"compulsion\", \"divination\", \"dominate person\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Friends, Message, Command, Ensnaring Strike, Arcane Lock, Calm Emotions, Hold Person, Clairvoyance, Counterspell, Compulsion, Divination, and Dominate Person.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Scroll with law text\", \"\", \"\"],\n\t\t[\"Blue ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Azorius insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Legal Authority\",\n\ttrait : [\n\t\t\"I try never to let my judgment become clouded by emotion.\",\n\t\t\"I have infinite patience with the dolts and boors I'm forced to deal with every day.\",\n\t\t\"When I give an order, I expect it to be obeyed.\",\n\t\t\"I just want things the way I like them: neat, orderly, and clean.\",\n\t\t\"No wrongdoing can escape my watchful gaze.\",\n\t\t\"I always say exactly what I mean, no matter how many words it takes to communicate the particular nuance I am attempting to convey.\",\n\t\t\"I'm very literal and don't appreciate metaphor or sarcasm.\",\n\t\t\"I never change my mind once it's made up.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Order\", \"Order: The law is meant to ensure that the gears of society turn smoothly and quietly. (Lawful)\"],\n\t\t[\"Peace\", \"Peace: The ultimate object of the law is to remove violence from society. (Good)\"],\n\t\t[\"Compliance\", \"Compliance: Coercion is a fine way of ensuring that the laws are obeyed. (Lawful)\"],\n\t\t[\"Legislation\", \"Legislation: The law embodies excellence in its precision and detail. (Lawful)\"],\n\t\t[\"Punishment\", \"Punishment: A public display of consequences is an excellent deterrent for other criminals. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I am beholden to an Azorius arrester who captured the criminal who killed my parents, saving me from the same fate.\",\n\t\t\"I hope one day to write the laws, not just enforce them.\",\n\t\t\"I tried and failed to prevent a murder, and I have sworn to find and arrest the perpetrator.\",\n\t\t\"I successfully prevented a murder, and the would-be perpetrator wants me dead.\",\n\t\t\"One of my parents was prominent in the guild, and I resent constantly being compared to that standard.\",\n\t\t\"I've modeled my career after a highly respected lawmage or arrester, but I fear that my role model might be involved in something illegal.\"\n\t],\n\tflaw : [\n\t\t\"I'm unable to distinguish between the letter and the spirit of the law.\",\n\t\t\"I seem like a harsh judge to others, but I judge myself most harshly of all.\",\n\t\t\"I have a secret, illegal vice.\",\n\t\t\"I was traumatized by witnessing a crime as a child.\",\n\t\t\"I'm incapable of deception.\",\n\t\t\"I wish I had joined the Boros, but I fear they'd never accept me.\"\n\t]\n};\nBackgroundFeatureList[\"legal authority\"] = {\n\tdescription : \"I have the authority to enforce the laws of Ravnica, inspiring respect and fear as a result. People mind their manners, avoid my attention, and assume I have a right to be wherever I am. My Azorius insignia gets me an audience with anyone I want, though it might work adversely with incorrigible lawbreakers. Abusing this privilege can get me in serious trouble.\",\n\tsource : [[\"G\", 33]]\n};\n\nBackgroundList[\"boros legionnaire\"] = {\n\tregExpSearch : /^(?=.*boros)(?=.*legionnaire).*$/i,\n\tname : \"Boros Legionnaire\",\n\tsource : [[\"G\", 40]],\n\tskills : [\"Athletics\", \"Intimidation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"sacred flame\", \"guiding bolt\", \"heroism\", \"aid\", \"scorching ray\", \"beacon of hope\", \"blinding smite\", \"death ward\", \"wall of fire\", \"flame strike\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Sacred Flame, Guiding Bolt, Heroism, Aid, Scorching Ray, Beacon of Hope, Blinding Smite, Death Ward, Wall of Fire, and Flame Strike.\"\n\t\t]\n\t},\n\tgold : 2,\n\tequipleft : [\n\t\t[\"Feather from angel's wing\", \"\", \"\"],\n\t\t[\"Tattered piece of Boros banner\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Boros insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Celestial, Draconic, Goblin, or Minotaur\", 1]],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tfeature : \"Legion Station\",\n\ttrait : [\n\t\t\"I approach every task with the same high degree of military precision.\",\n\t\t\"I am always the first into the fray.\",\n\t\t\"I bear any injury or indignity with stoic discipline.\",\n\t\t\"My righteous wrath is easily inflamed by the slightest iniquity.\",\n\t\t\"My honor is more important to me than my life.\",\n\t\t\"Dangerous work is best accomplished by an orderly group working with common purpose.\",\n\t\t\"I treat my weapons, uniform, and insignia with reverence, for they are gifts of the angels.\",\n\t\t\"I pace when standing and fidget incessantly when forced to sit.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Justice\", \"Justice: Achieving justice requires establishing fair, equitable, and compassionate relationships within a community. (Good)\"],\n\t\t[\"Protection\", \"Protection: It isn't right for innocents to suffer because of the arrogance of the powerful. (Good)\"],\n\t\t[\"Solidarity\", \"Solidarity: It is most crucial to act with a single will, marching side by side in perfect accord. (Lawful)\"],\n\t\t[\"Order\", \"Order: Society functions only if people do their duty and respect the chain of command. (Lawful)\"],\n\t\t[\"Conviction\", \"Conviction: Anything worth doing is worth doing with your whole heart. (Lawful)\"]\n\t],\n\tbond : [\n\t\t\"I would lay down my life for Aurelia and the angels.\",\n\t\t\"I owe my life to the Boros captain who took me in when I was living on the streets.\",\n\t\t\"My fellow legionnaires are my family.\",\n\t\t\"I wield the same Boros weapon my grandparent did, for the honor of our family.\",\n\t\t\"I ran with the Rakdos in my youth, and I'm striving to atone for my past misdeeds.\",\n\t\t\"I do what I can to help out the spouse of a comrade who died in battle.\"\n\t],\n\tflaw : [\n\t\t\"I act bravely when I'm in a group, but I'm a coward when I'm alone.\",\n\t\t\"I see everything in clear-cut black and white.\",\n\t\t\"I'm just a little fascinated by the ways of the Gruul.\",\n\t\t\"I trust the chain of command more than anything\\u2014more even than my closest friends.\",\n\t\t\"I'm slow to trust members of other guilds.\",\n\t\t\"I've been known to turn a blind eye to injustice, with the help of a modest bribe.\"\n\t],\n\tlifestyle : \"poor\"\n};\nBackgroundFeatureList[\"legion station\"] = {\n\tdescription : \"I am established in the hierarchy of the Boros Legion. I can requisition simple equipment for temporary use. I have access to any Boros garrison in Ravnica where I can rest in safety and have access to medics. I'm paid 1 gp per week (a Boros-minted 1-zino coin), allowing me (together with the free garrison lodging) to have a poor lifestyle between adventures.\",\n\tsource : [[\"G\", 40]]\n};\n\nBackgroundList[\"dimir operative\"] = {\n\tregExpSearch : /^(?=.*dimir)(?=.*operative).*$/i,\n\tname : \"Dimir Operative\",\n\tsource : [[\"G\", 46]],\n\tskills : [\"Deception\", \"Stealth\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"encode thoughts\", \"mage hand\", \"disguise self\", \"sleep\", \"detect thoughts\", \"pass without trace\", \"gaseous form\", \"meld into stone\", \"nondetection\", \"arcane eye\", \"freedom of movement\", \"modify memory\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Encode Thoughts, Mage Hand, Disguise Self, Sleep, Detect Thoughts, Pass Without Trace, Gaseous Form, Meld into Stone, Nondetection, Arcane Eye, Freedom of Movement, and Modify Memory.\"\n\t\t]\n\t},\n\tgold : 0,\n\tequipleft : [\n\t\t[\"Small knife\", 3, 0.25],\n\t\t[\"Starting equipment of secondary guild\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Dark-colored common clothes\", \"\", 3],\n\t\t[\"Dimir insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [\"Disguise kit\"],\n\tfeature : \"False Guild Identity\",\n\ttrait : [\n\t\t\"I'm good at hiding my true thoughts and feelings.\",\n\t\t\"When I'm in doubt about revealing something, I assume it's a secret, and I don't share it.\",\n\t\t\"I like to sound mysterious, because wisdom hidden grows deeper with time.\",\n\t\t\"I have no patience with people who get in my way.\",\n\t\t\"I love hearing about other people's nightmares.\",\n\t\t\"Combat is meant to be quick, clean, and one-sided.\",\n\t\t\"I like to stick to the shadows.\",\n\t\t\"I never show my anger. I just plot my revenge.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My true guild is all that really matters. (Any)\"],\n\t\t[\"Control\", \"Control: I like pulling the strings. (Lawful)\"],\n\t\t[\"Secrets\", \"Secrets: I collect secrets and never reveal them. (Any)\"],\n\t\t[\"Knowledge\", \"Knowledge: I want to know as much as I can about this city and how it works. (Any)\"],\n\t\t[\"Independence\", \"Independence: I value the freedom to pursue my own goals without interference. (Chaotic)\"],\n\t\t[\"Nihilism\", \"Nihilism: I don't believe in anything, and anyone who does is a fool. (Neutral)\"]\n\t],\n\tbond : [\n\t\t\"I discovered a secret I can't let anyone else uncover\\u2014including my guild superiors.\",\n\t\t\"I formed a close friendship or romance with someone in the guild I'm infiltrating.\",\n\t\t\"The Dimir agent who recruited me was unmasked and killed. My revenge on the killers will be thorough and painful.\",\n\t\t\"I spend as much time as I can in the Ismeri Library because I'm certain an information hub operates behind its facade. I want its secrets!\",\n\t\t\"I'm utterly loyal to my superior in the guild, more than to the guild or its guildmaster.\",\n\t\t\"Someone has discovered my true identity.\"\n\t],\n\tflaw : [\n\t\t\"I like secrets so much that I'm reluctant to share details of a plan even with those who need to know.\",\n\t\t\"I would let my friends die rather than reveal my true identity.\",\n\t\t\"I have trouble trusting anyone but myself.\",\n\t\t\"I have a particular vice that puts all my secrets at risk if I'm not careful.\",\n\t\t\"I'm pretty sure I've done something horrible that I can't remember because of the guild's mind magic.\",\n\t\t\"I put too much trust in the people who give me orders.\"\n\t],\n\textra : [\n\t\t\"Select a Reason for Infiltration\",\n\t\t\"Parental link\",\n\t\t\"Track activities\",\n\t\t\"Spy on individual\",\n\t\t\"Recruit more spies\",\n\t\t\"Member before recruitment\",\n\t\t\"Destroy from within\",\n\t\t\"Secret wish to join\",\n\t\t\"Randomly chosen\"\n\t]\n};\nBackgroundFeatureList[\"false guild identity\"] = {\n\tdescription : \"I have more than one identity. The one I wear most of the time makes me appear to be a member of a guild other than my own. I have documentation, established acquaintances, and disguises that allow me to assume that persona and fit into the secondary guild. Whenever I choose, I can drop this identity and blend into the guildless masses of the city.\",\n\tsource : [[\"G\", 46]]\n};\n\nBackgroundList[\"golgari agent\"] = {\n\tregExpSearch : /^(?=.*golgari)(?=.*agent).*$/i,\n\tname : \"Golgari Agent\",\n\tsource : [[\"G\", 53]],\n\tskills : [\"Nature\", \"Survival\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"dancing lights\", \"spare the dying\", \"entangle\", \"ray of sickness\", \"protection from poison\", \"ray of enfeeblement\", \"spider climb\", \"animate dead\", \"plant growth\", \"giant insect\", \"grasping vine\", \"cloudkill\", \"insect plague\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Dancing Lights, Spare the Dying, Entangle, Ray of Sickness, Protection from Poison, Ray of Enfeeblement, Spider Climb, Animate Dead, Plant Growth, Giant Insect, Grasping Vine, Cloudkill, and Insect Plague.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Poisoner's kit\", \"\", 2]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Golgari insignia\", \"\", \"\"],\n\t\t[\"Pet beetle or spider\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Elvish, Giant, or Kraul\", 1]],\n\ttoolProfs : [\"Poisoner's kit\"],\n\tfeature : \"Undercity Paths\",\n\ttrait : [\n\t\t\"Remember, I could kill you in your sleep. Or put centipedes in your bedroll.\",\n\t\t\"I like to remind people of their inevitable demise.\",\n\t\t\"Sometimes I give voice to the whispers of the rot, which I hear but no one else does.\",\n\t\t\"I do my best to discourage anyone from approaching or talking to me.\",\n\t\t\"I have accepted my death. Hence, I don't fear it.\",\n\t\t\"Like roots growing through stone, I am relentless and determined in my action.\",\n\t\t\"I put my knowledge of anatomy to use by narrating the injuries my enemies suffer in grisly detail.\",\n\t\t\"Like a wild animal, I lash out viciously when I'm provoked\\u2014and I'm easily provoked.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Stoicism\", \"Stoicism: All of us are part of the cyclical march of nature, which will continue with or without us. (Neutral)\"],\n\t\t[\"Nature\", \"Nature: The natural world is more important than the edifices of the city and civilization. (Neutral)\"],\n\t\t[\"Interdependence\", \"Interdependence: We are all part of nature's web. (Lawful)\"],\n\t\t[\"Ambition\", \"Ambition: The time of Golgari ascendance is at hand, and I intend to have a prominent place in the new world order. (Evil)\"],\n\t\t[\"Live and Let Live\", \"Live and Let Live: Meddling in the affairs of other guilds is a great way to get squashed like a bug. (Neutral)\"]\n\t],\n\tbond : [\n\t\t\"I cherish the finger of a family member who was petrified by a medusa.\",\n\t\t\"I have an identical twin who is as different from me as any person could be.\",\n\t\t\"I want to lead one faction of the guild to a new position of dominance.\",\n\t\t\"I love spending time in the moss-covered building where I took part in my first reclamation mission.\",\n\t\t\"I found something in the sewer that must never come to light.\",\n\t\t\"I am forever grateful to the reclaimer who found me floating facedown in the sewer, moments from death.\"\n\t],\n\tflaw : [\n\t\t\"Death comes for us all, so you can't expect me to take care of someone who can't fight it off.\",\n\t\t\"I assume that anyone outside the Golgari looks down on me.\",\n\t\t\"I feel a need for revenge against those who enjoy the privilege of living above ground.\",\n\t\t\"I don't bother to couch my opinions in flattering words.\",\n\t\t\"I can't help but pocket any trinket or coin I come across, no matter how worthless.\",\n\t\t\"I'm convinced that I'm better and stronger than members of other guilds, isolated as they are from the realities of life and death.\"\n\t]\n};\nBackgroundFeatureList[\"undercity paths\"] = {\n\tdescription : \"I know hidden, underground pathways that I can use to bypass crowds, obstacles, and observation as I move through the city. I can lead a group to travel between two locations in the city twice as fast as normally. The paths of the undercity are haunted by dangers that rarely brave the light of the surface world, so my journey isn't guaranteed to be safe.\",\n\tsource : [[\"G\", 53]]\n};\n\nBackgroundList[\"gruul anarch\"] = {\n\tregExpSearch : /^(?=.*gruul)(?=.*anarch).*$/i,\n\tname : \"Gruul Anarch\",\n\tsource : [[\"G\", 60]],\n\tskills : [\"Animal Handling\", \"Athletics\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"produce flame\", \"compelled duel\", \"speak with animals\", \"thunderwave\", \"beast sense\", \"shatter\", \"conjure animals\", \"conjure barrage\", \"dominate beast\", \"stoneskin\", \"destructive wave\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Produce Flame, Compelled Duel, Speak with Animals, Thunderwave, Beast Sense, Shatter, Conjure Animals, Conjure Barrage, Dominate Beast, Stoneskin, and Destructive Wave.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Herbalism kit\", \"\", 3],\n\t\t[\"Skull of a boar\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Gruul insignia\", \"\", \"\"],\n\t\t[\"Hunting trap\", \"\", 25],\n\t\t[\"Beast-hide cloak\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Draconic, Giant, Goblin, or Sylvan\", 1]],\n\ttoolProfs : [\"Herbalism kit\"],\n\tfeature : \"Rubblebelt Refuge\",\n\ttrait : [\n\t\t\"Unlike people, the beasts of the wild are friends who won't stab me in the back.\",\n\t\t\"Go ahead and insult me\\u2014I dare you.\",\n\t\t\"I scorn those who can't survive away from the comforts of the city.\",\n\t\t\"Don't tell me I'm not allowed to do something.\",\n\t\t\"Laws are for people who are afraid to face their inner beasts.\",\n\t\t\"I smear the blood of my enemies over my skin.\",\n\t\t\"I was, in fact, raised by maaka.\",\n\t\t\"HarrRRAAGGHH! [I rarely form a coherent sentence and prefer to express myself by breaking things.]\"\n\t],\n\tideal : [\n\t\t[\"Clan\", \"Clan: My clan is all that really matters. (Any)\"],\n\t\t[\"Anarchy\", \"Anarchy: No person or law or custom can tell another what to do. (Chaotic)\"],\n\t\t[\"Nature\", \"Nature: We weren't born tame or domesticated, so we shouldn't have to live that way. (Neutral)\"],\n\t\t[\"Might\", \"Might: The strongest are meant to dominate the weak. (Evil)\"],\n\t\t[\"Rage\", \"Rage: AAAAAARRRRggggh! [To live is to feel and express the rage burning in your belly.] (Chaotic)\"],\n\t\t[\"Tradition\", \"Tradition: The Old Ways must be preserved and upheld. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I am determined that one day I will lead my clan\\u2014or a new one.\",\n\t\t\"I would give my life for my clan chieftain.\",\n\t\t\"The chieftain of another clan has a grudge against me.\",\n\t\t\"I am devoted to a sacred site in the midst of the rubblebelt.\",\n\t\t\"My weapon is made from the first raktusk I ever hunted.\",\n\t\t\"GrrrRRAAAAGGHH! [I will do anything to prove myself greater than my siblings or ancestors.]\"\n\t],\n\tflaw : [\n\t\t\"If you question my courage, I will never back down.\",\n\t\t\"HrrrGGGAAAARRuuuh! [My anger in battle led to the death of a loved one.]\",\n\t\t\"I'm as stubborn as a batterboar.\",\n\t\t\"I'm so convinced of my superiority over soft, civilized people that I'll take great risks to prove it.\",\n\t\t\"I'm easily manipulated by people I find attractive.\",\n\t\t\"I'm not actually all that angry.\"\n\t],\n\textra : [\n\t\t\"Select a Gruul Clan\",\n\t\t\"Burning Tree clan\",\n\t\t\"Ghor clan\",\n\t\t\"Scab clan\",\n\t\t\"Slitz clan\",\n\t\t\"Gravel Hide clan\",\n\t\t\"Zhur-Taa clan\",\n\t\t\"Minor or new clan\",\n\t\t\"Trog\"\n\t]\n};\nBackgroundFeatureList[\"rubblebelt refuge\"] = {\n\tdescription : \"I'm very familiar with areas of the city that most people shun: neighborhoods ruined by wurms, overgrown parks gone untended for decades, and the vast, long abandoned rubblebelts of broken terrain. There, I can find a suitable place for me and my allies to hide or rest, as well as food and fresh water for myself and up to five other people each day.\",\n\tsource : [[\"G\", 60]]\t\n};\n\nBackgroundList[\"izzet engineer\"] = {\n\tregExpSearch : /^(?=.*izzet)(?=.*engineer).*$/i,\n\tname : \"Izzet Engineer\",\n\tsource : [[\"G\", 66]],\n\tskills : [\"Arcana\", \"Investigation\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"produce flame\", \"shocking grasp\", \"chaos bolt\", \"create or destroy water\", \"unseen servant\", \"heat metal\", \"rope trick\", \"call lightning\", \"elemental weapon\", \"glyph of warding\", \"conjure minor elementals\", \"divination\", \"otiluke's resilient sphere\", \"animate objects\", \"conjure elemental\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Produce Flame, Shocking Grasp, Chaos Bolt, Create or Destroy Water, Unseen Servant, Heat Metal, Rope Trick, Call Lightning, Elemental Weapon, Glyph of Warding, Conjure Minor Elementals, Divination, Otiluke's Resilient Sphere, Animate Objects, and Conjure Elemental.\"\n\t\t]\n\t},\n\tgold : 5,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Twisted remains of failed experiment\", \"\", \"\"],\n\t\t[\"Hammer\", \"\", 3],\n\t\t[\"Block and tackle\", \"\", 5]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Izzet insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Draconic, Goblin, or Vedalken\", 1]],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Urban Infrastructure\",\n\ttrait : [\n\t\t\"I have a hard time staying focused on ... oh, and my brain tends to jump from one ... did I mention focus?\",\n\t\t\"I get really excited about my ideas and I can't wait to talk about them and start putting them into practice and tinkering with them and I want to tell you about how exciting it all is!\",\n\t\t\"It's not magic\\u2014or anything, really\\u2014if you do it only halfway. Whatever I do, I give it all I've got.\",\n\t\t\"I do what my gut tells me.\",\n\t\t\"Life's an experiment, and I can't wait to see what happens.\",\n\t\t\"I pepper my speech with the incomprehensible jargon of my trade, like mizzium droplets inserted into a weird-field suspension.\",\n\t\t\"Great ideas are fine, but great results are what counts.\",\n\t\t\"If you can guess what I'm about to do, that means I've run out of imagination.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Creativity\", \"Creativity: Half the world's troubles come from stodgy thinking, stuck in the past. We need innovative solutions. (Chaotic)\"],\n\t\t[\"Discovery\", \"Discovery: Every experiment has the potential to reveal more secrets of the multiverse. (Any)\"],\n\t\t[\"Science\", \"Science: A rigorous application of logical principles and protocols will lead us toward progress more surely than any belief system. (Lawful)\"],\n\t\t[\"Fun\", \"Fun: I love my job! Despite the dangerous working conditions, there's nothing I'd rather do. (Chaotic)\"],\n\t\t[\"Power\", \"Power: Someday I'll find or create the magic that will make me the most powerful being in Ravnica. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I have dedicated my life to finding a solution to a scientific problem.\",\n\t\t\"I'll never forget the laboratory where I learned my skills, or the other attendants who learned alongside me.\",\n\t\t\"I'm convinced it was sabotage that destroyed my first laboratory and killed many of my friends, and I seek revenge against whoever did it.\",\n\t\t\"I have the schematics for an invention that I hope to build one day, once I have the necessary resources.\",\n\t\t\"A fellow student and I are racing to solve the same scientific puzzle.\",\n\t\t\"I would do anything the guildmaster told me to do.\"\n\t],\n\tflaw : [\n\t\t\"If there's a plan, I'll probably forget it. If I don't forget it, I'll probably ignore it.\",\n\t\t\"I get bored easily, and if nothing is happening I'll make something happen.\",\n\t\t\"Nothing is ever simple, and if it seems simple, I'll find a way to make it complicated.\",\n\t\t\"I tend to ignore sleep for days when I'm conducting research, often at the expense of my own health and safety.\",\n\t\t\"I'm convinced there's not a soul in Ravnica, except maybe the great Niv-Mizzet, who can match my boundless intellect.\",\n\t\t\"I'm incapable of admitting a flaw in my logic.\"\n\t]\n};\nBackgroundFeatureList[\"urban infrastructure\"] = {\n\tdescription : \"Although the Izzet League is infamous for mad inventions it is also involved in construction of the city's infrastructure. I have a basic knowledge of the structure of buildings and what is behind its walls. I can find their blueprints showing entry points, secret spaces, structural weaknesses, or secret spaces. My guild won't protect me if I use this knowledge unlawfully.\",\n\tsource : [[\"G\", 66]]\n};\n\nBackgroundList[\"orzhov representative\"] = {\n\tregExpSearch : /^(?=.*orzhov)(?=.*representative).*$/i,\n\tname : \"Orzhov Representative\",\n\tsource : [[\"G\", 72]],\n\tskills : [\"Intimidation\", \"Religion\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"friends\", \"guidance\", \"command\", \"illusory script\", \"enthrall\", \"ray of enfeeblement\", \"zone of truth\", \"bestow curse\", \"speak with dead\", \"spirit guardians\", \"blight\", \"death ward\", \"leomund's secret chest\", \"geas\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Friends, Guidance, Command, Illusory Script, Enthrall, Ray of Enfeeblement, Zone of Truth, Bestow Curse, Speak with Dead, Spirit Guardians, Blight, Death Ward, Leomund's Secret Chest, and Geas.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Orzhov insignia\", \"\", \"\"],\n\t\t[\"Vestments\", \"\", 4],\n\t\t[\"Chain of 10 golden coins\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Leverage\",\n\ttrait : [\n\t\t\"I am always willing to act in accordance with the financial incentive offered.\",\n\t\t\"Debts are never meant to be forgiven.\",\n\t\t\"I am accustomed to enjoying the finest pleasures money can buy.\",\n\t\t\"No one could doubt that I am a cut above the masses of pitiful peasants that infest the city.\",\n\t\t\"I can't stand to spend a zib more than necessary to purchase what I need.\",\n\t\t\"I hate it when people try to make light of a serious situation.\",\n\t\t\"I want to make sure everyone is aware of how wealthy, powerful, and important I am.\",\n\t\t\"I can't think of anything to look forward to.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Wealth\", \"Wealth: I will do whatever it takes to become as rich as the oligarchs. (Evil)\"],\n\t\t[\"Power\", \"Power: One day, I will be the one giving orders. (Evil)\"],\n\t\t[\"Prestige\", \"Prestige: I want to be admired, respected, feared, or even hated for my position and wealth. (Evil)\"],\n\t\t[\"Stability\", \"Stability: The economy functions best when chaos is kept under control and everyone knows their place. (Lawful)\"],\n\t\t[\"Eternity\", \"Eternity: I want to live forever\\u2014in the flesh as long as possible, and as a spirit afterward. (Any)\"]\n\t],\n\tbond : [\n\t\t\"The unbearable weight of my debt has driven me to desperation.\",\n\t\t\"I'm duty-bound to obey the dictates of an ancestor on the Ghost Council.\",\n\t\t\"I value my worldly goods more highly than my mortal life.\",\n\t\t\"An oligarch publicly humiliated me, and I will exact revenge on that whole family.\",\n\t\t\"My faith in the Obzedat never wavers.\",\n\t\t\"I want to prove myself more worthy than an older sibling and thereby ensure that I inherit a greater share of my parents' wealth.\"\n\t],\n\tflaw : [\n\t\t\"I hold a scandalous secret that could ruin my family forever\\u2014but could also earn me the favor of the Ghost Council.\",\n\t\t\"I'm convinced that everyone I know is plotting against me.\",\n\t\t\"I'll brave any risk if the monetary reward is great enough.\",\n\t\t\"I am convinced that I am far more important than anyone else is willing to acknowledge.\",\n\t\t\"I have little respect for anyone who isn't wealthy.\",\n\t\t\"I'll take any opportunity to steal from wealthier people, even for worthless trinkets.\"\n\t]\n};\nBackgroundFeatureList[\"leverage\"] = {\n\tdescription : \"I can exert leverage over one or more below me in the guild's hierarchy and demand their help as needs warrant. For example, deliver a message, arrange a ride, or clean up a bloody mess. As my status in the guild improves, I gain influence over more people of higher station. The DM decides if the demands are reasonable and if subordinates are available.\",\n\tsource : [[\"G\", 72]]\n};\n\nBackgroundList[\"rakdos cultist\"] = {\n\tregExpSearch : /^(?=.*rakdos)(?=.*cultist).*$/i,\n\tname : \"Rakdos Cultist\",\n\tsource : [[\"G\", 79]],\n\tskills : [\"Acrobatics\", \"Performance\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"fire bolt\", \"vicious mockery\", \"burning hands\", \"dissonant whispers\", \"hellish rebuke\", \"crown of madness\", \"enthrall\", \"flaming sphere\", \"fear\", \"haste\", \"confusion\", \"wall of fire\", \"dominate person\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Fire Bolt, Vicious Mockery, Burning Hands, Dissonant Whispers, Hellish Rebuke, Crown of Madness, Enthrall, Flaming Sphere, Fear, Haste, Confusion, Wall of Fire, and Dominate Person.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Musical instrument\", \"\", \"\"],\n\t\t[\"Costume\", \"\", 4],\n\t\t[\"Hooded lantern of wrought iron\", \"\", 2],\n\t\t[\"Chain with spiked links, feet of\", 10, 1],\n\t\t[\"Tinderbox\", \"\", 1],\n\t\t[\"Torches\", 10, 1],\n\t\t[\"Sweet, red juice, bottle of\", \"\", 4]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Rakdos insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Abyssal or Giant\", 1]],\n\ttoolProfs : [[\"Musical instrument\", 1]],\n\tfeature : \"Fearsome Reputation\",\n\ttrait : [\n\t\t\"I revel in mayhem, the more destructive the better.\",\n\t\t\"When violence breaks out, I lose myself in rage, and it's sometimes hard to stop.\",\n\t\t\"Everything is funny to me, and the most hilarious and bloodiest things leave me cackling with sadistic glee.\",\n\t\t\"I derive genuine pleasure from the pain of others.\",\n\t\t\"I enjoy testing other people's patience.\",\n\t\t\"I can't stand it when things are predictable, so I like to add a little chaos to every situation.\",\n\t\t\"I throw my weight around to make sure I get my way.\",\n\t\t\"I enjoy breaking delicate works of art. And fingers, which are sort of the same.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Hedonism\", \"Hedonism: Death comes for everyone, so take as much pleasure as you can from every moment of life. (Neutral)\"],\n\t\t[\"Creativity\", \"Creativity: I strive to find more ways to express my art through pain\\u2014my own as well as others'. (Chaotic)\"],\n\t\t[\"Freedom\", \"Freedom: No one tells me what to do. (Chaotic)\"],\n\t\t[\"Equality\", \"Equality: I want to see Ravnica remade, with no guilds and no hierarchies. (Chaotic)\"],\n\t\t[\"Spectacle\", \"Spectacle: People are inspired by the greatness they see in art. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I have belonged to the same performance troupe for years, and these people mean everything to me.\",\n\t\t\"A blood witch told me I have a special destiny to fulfill, and I'm trying to figure out what it is.\",\n\t\t\"I'm secretly hoping that I can change the cult from the inside, using my influence to help rein in the wanton violence.\",\n\t\t\"I own something that Rakdos once touched (it's seared black at the spot), and I cherish it.\",\n\t\t\"I want to be better at my chosen form of performance than any other member of my troupe.\",\n\t\t\"I am devoted to Rakdos and live to impress him.\"\n\t],\n\tflaw : [\n\t\t\"My family is prominent in another guild. I enjoy my wild life, but I don't want to embarrass them.\",\n\t\t\"I couldn't hide my emotions and opinions even if I wanted to.\",\n\t\t\"I throw caution to the wind.\",\n\t\t\"I resent the rich and powerful.\",\n\t\t\"When I'm angry, I lash out in violence.\",\n\t\t\"There's no such thing as too much pleasure.\"\n\t],\n\textra : [\n\t\t\"Select a Performance Style\",\n\t\t\"Spikewheel acrobat\",\n\t\t\"Lampooning satirist\",\n\t\t\"Fire juggler\",\n\t\t\"Marionette puppeteer\",\n\t\t\"Pain artist\",\n\t\t\"Noise musician\",\n\t\t\"Nightmare clown\",\n\t\t\"Master of ceremonies\"\n\t]\n};\nBackgroundFeatureList[\"fearsome reputation\"] = {\n\tdescription : \"People recognize me as a member of the Cult of Rakdos, and they're careful not to draw my anger or ridicule. I can get away with minor criminal offenses, such as refusing to pay for food at a restaurant or breaking down a door at a local shop, if no legal authorities witness the crime. Most are too daunted by me to report my wrongdoing to the Azorius.\",\n\tsource : [[\"G\", 79]]\n};\n\nBackgroundList[\"selesnya initiate\"] = {\n\tregExpSearch : /^(?=.*selesnya)(?=.*initiate).*$/i,\n\tname : \"Selesnya Initiate\",\n\tsource : [[\"G\", 86]],\n\tskills : [\"Nature\", \"Persuasion\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"druidcraft\", \"friends\", \"aid\", \"animal friendship\", \"charm person\", \"animal messenger\", \"calm emotions\", \"warding bond\", \"plant growth\", \"speak with plants\", \"aura of life\", \"conjure minor elementals\", \"awaken\", \"commune with nature\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Druidcraft, Friends, Aid, Animal Friendship, Charm Person, Animal Messenger, Calm Emotions, Warding Bond, Plant Growth, Speak with Plants, Aura of Life, Conjure Minor Elementals, Awaken, and Commune with Nature.\"\n\t\t]\n\t},\n\tgold : 5,\n\tequipleft : [\n\t\t[\"Healer's kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Robes\", \"\", 4],\n\t\t[\"Selesnya insignia\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [[\"Elvish, Loxodon, or Sylvan\", 1]],\n\ttoolProfs : [[\"Artisan's tools or musical instrument\", 1]],\n\tfeature : \"Conclave's Shelter\",\n\ttrait : [\n\t\t\"I never raise my voice or lose my temper.\",\n\t\t\"I feel the pains and joys of everyone around me, friend or foe.\",\n\t\t\"I would rather make a friend than thwart an enemy.\",\n\t\t\"I'm always straining to peer into another reality that seems to be just beyond my senses.\",\n\t\t\"I'm uneasy if I can't see plants growing or feel soil beneath my feet.\",\n\t\t\"Seeing illness or injury in any creature saddens me.\",\n\t\t\"I have much to be proud of, but I am still just one strand in the grand, interwoven tapestry of life.\",\n\t\t\"Nature offers rich and abundant metaphors for understanding the complexities of life.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Harmony\", \"Harmony: Nothing is more beautiful than voices and actions aligned in common purpose. (Good)\"],\n\t\t[\"Order\", \"Order: Like a well-pruned tree, society thrives when everything is kept in good order. (Lawful)\"],\n\t\t[\"Life\", \"Life: Preserving life and nature is always a worthwhile endeavor. (Good)\"],\n\t\t[\"Humility\", \"Humility: Ambition and pride are the roots of strife. (Good)\"],\n\t\t[\"Evangelism\", \"Evangelism: When all have joined the Selesnya Conclave, Ravnica will finally know peace. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I would give my life in the defense of the small enclave where I first encountered Mat'Selesnya.\",\n\t\t\"I love beasts and plants of all kinds, and am loath to harm them.\",\n\t\t\"A healer nursed me to recovery from a mortal illness.\",\n\t\t\"I'll sing the invitation of Mat'Selesnya with my dying breath.\",\n\t\t\"I cherish a leaf from Vitu-Ghazi that changes color with the seasons, even though it is no longer attached to the tree.\",\n\t\t\"Every member of the conclave is my kin, and I would fight for any one of them.\"\n\t],\n\tflaw : [\n\t\t\"I'm terrified of getting into a fight where my side is outnumbered.\",\n\t\t\"I assume that people mean well until they prove otherwise.\",\n\t\t\"I enjoy comfort and quiet, and prefer to avoid extra effort.\",\n\t\t\"I have a fierce temper that doesn't reflect the inner calm I seek.\",\n\t\t\"I'm convinced that everyone else in the conclave has a deeper connection to the Worldsoul than I do.\",\n\t\t\"I'm trying to atone for the life of crime I led before I joined the Selesnya, but I find it hard to give up my bad habits.\"\n\t]\n};\nBackgroundFeatureList[\"conclave's shelter\"] = {\n\tdescription : \"My companions and I can find a place to hide or rest in any Selesnya enclave in the city, unless I have proven to be a danger to them. The members of the enclave will shield me from anyone searching for me, but will not risk their lives. I can receive free healing and care at a Selesnya enclave, though I must provide material components needed for spells.\",\n\tsource : [[\"G\", 86]]\n};\n\nBackgroundList[\"simic scientist\"] = {\n\tregExpSearch : /^(?=.*simic)(?=.*scientist).*$/i,\n\tname : \"Simic Scientist\",\n\tsource : [[\"G\", 93]],\n\tskills : [\"Arcana\", \"Medicine\"],\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"acid splash\", \"druidcraft\", \"detect poison and disease\", \"expeditious retreat\", \"jump\", \"alter self\", \"enhance ability\", \"enlarge/reduce\", \"gaseous form\", \"water breathing\", \"wind wall\", \"freedom of movement\", \"polymorph\", \"creation\"]);\n\t\t\t},\n\t\t\t\"My background adds extra spells to the spell list(s) of my spellcasting class(es): Acid Splash, Druidcraft, Detect Poison and Disease, Expeditious Retreat, Jump, Alter Self, Enhance Ability, Enlarge/reduce, Gaseous Form, Water Breathing, Wind Wall, Freedom of Movement, Polymorph, and Creation.\"\n\t\t]\n\t},\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Book of research notes\", \"\", 5],\n\t\t[\"Squid ink, 1 ounce bottle of\", \"\", \"\"],\n\t\t[\"Ink pen\", \"\", \"\"],\n\t\t[\"Blubber oil, flasks of\", \"\", 1],\n\t\t[\"Acid, vials of\", \"\", 1],\n\t\t[\"Fish scales, vial of\", \"\", 1],\n\t\t[\"Seaweed, vial of\", \"\", 1],\n\t\t[\"Jellyfish stingers, vial of\", \"\", 1],\n\t\t[\"Unidentified slime, glass bottle of\", \"\", 4]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\tfeature : \"Simic Researcher\",\n\ttrait : [\n\t\t\"I can't wait to see what I become next!\",\n\t\t\"I am convinced that everything inclines toward constant improvement.\",\n\t\t\"I'm eager to explain every detail of my most intricate experiments and theories to anyone who shows the least bit of interest.\",\n\t\t\"I assume that everyone needs even the most basic concepts explained to them.\",\n\t\t\"I describe everything that happens as if it were going into my research notes (and it often is).\",\n\t\t\"I am insatiably curious about the seemingly infinite forms and adaptations of life.\",\n\t\t\"I can't resist prying into anything forbidden, since it must be terribly interesting.\",\n\t\t\"I employ a highly technical vocabulary to avoid imprecision and ambiguity in my communication.\"\n\t],\n\tideal : [\n\t\t[\"Guild\", \"Guild: My guild is all that really matters. (Any)\"],\n\t\t[\"Change\", \"Change: All life is meant to progress toward perfection, and our work is to hurry it along\\u2014no matter what must be upended along the way. (Chaotic)\"],\n\t\t[\"Knowledge\", \"Knowledge: Understanding the world is more important than what you do with your knowledge. (Neutral)\"],\n\t\t\"Greater Good. I want to reshape the world into higher forms of life so that all can enjoy evolution. (Good)\",\n\t\t[\"Logic\", \"Logic: It's foolish to let emotions and principles interfere with the conclusions of logic. (Lawful)\"],\n\t\t[\"Superiority\", \"Superiority: My vast intellect and strength are directed toward increasing my sway over others. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I helped create a krasis that I love like a pet and would carry with me everywhere ... except it's the size of a building, and it might eat me.\",\n\t\t\"In my laboratory, I discovered something that I think could eliminate half the life on Ravnica.\",\n\t\t\"The other researchers in my clade are my family\\u2014a big, eccentric family including members and parts of many species.\",\n\t\t\"The laboratory where I did my research contains everything that is precious to me.\",\n\t\t\"I will get revenge on the shortsighted fool who killed my precious krasis creation.\",\n\t\t\"Everything I do is an attempt to impress someone I love.\"\n\t],\n\tflaw : [\n\t\t\"I have a rather embarrassing mutation that I do everything I can to keep hidden.\",\n\t\t\"I'm more interested in taking notes on monstrous anatomy than in fighting monsters.\",\n\t\t\"Every social situation I'm in seems to lead to my asking rude personal questions.\",\n\t\t\"I'm supremely confident in my ability to adapt to any situation and handle any danger.\",\n\t\t\"I'll take any risk to earn recognition for my scientific brilliance.\",\n\t\t\"I have a tendency to take shortcuts in my research and any other tasks I have to complete.\"\n\t],\n\textra : [\n\t\t\"Select a Clade or Research\",\n\t\t\"Hull Clade: protection/durability\",\n\t\t\"Fin Clade: movement\",\n\t\t\"Gyre Clade: patterns/metamagic\",\n\t\t\"Guardian Project: guard monsters/super soldiers\",\n\t\t\"Crypsis Project: (counter)intelligence\",\n\t\t\"Independent research in a new area\"\n\t]\n};\nBackgroundFeatureList[\"simic researcher\"] = {\n\tdescription : \"I know where or from whom I can acquire scientific facts, usually from a Simic laboratory, or sometimes an Izzet facility, library, university, independent scholar, or creature. I might need to offer bribes, favors, or other incentives to induce people to reveal their secrets. The DM can rule that the knowledge is inaccessible place, can't be found, or requires a quest.\",\n\tsource : [[\"G\", 93]]\n};\n\n// Spells\nSpellsList[\"encode thoughts\"] = {\n\tname : \"Encode Thoughts\",\n\tclasses : [],\n\tsource : [[\"G\", 47]],\n\tlevel : 0,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"Self\",\n\tcomponents : \"S\",\n\tduration : \"Up to 8 h\",\n\tdescription : \"Make physical thought strand of memory or vice versa; works with detect thoughts \\u0026 modify memory\",\n\tdescriptionFull : \"Putting a finger to your head, you pull a memory, an idea, or a message from your mind and transform it into a tangible string of glowing energy called a thought strand, which persists for the duration or until you cast this spell again. The thought strand appears in an unoccupied space within 5 feet of you as a Tiny, weightless, semisolid object that can be held and carried like a ribbon. It is otherwise stationary.\" + \"\\n   \" + \"If you cast this spell while concentrating on a spell or an ability that allows you to read or manipulate the thoughts of others (such as detect thoughts or modify memory), you can transform the thoughts or memories you read, rather than your own, into a thought strand.\" + \"\\n   \" + \"Casting this spell while holding a thought strand allows you to instantly receive whatever memory, idea, or message the thought strand contains. (Casting detect thoughts on the strand has the same effect.)\"\n};\n// [dupl_start] Chaos Bolt reprinted from Xanathar's Guide to Everything\nif (!SourceList.X) {\n\tSpellsList[\"chaos bolt\"] = {\n\t\tname : \"Chaos Bolt\",\n\t\tclasses : [\"sorcerer\"],\n\t\tsource : [[\"X\", 151], [\"G\", 67]],\n\t\tlevel : 1,\n\t\tschool : \"Evoc\",\n\t\ttime : \"1 a\",\n\t\trange : \"120 ft\",\n\t\tcomponents : \"V,S\",\n\t\tduration : \"Instantaneous\",\n\t\tdescription : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft\",\n\t\tdescriptionShorter : \"Spell atk 2d8+1d6+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft\",\n\t\tdescriptionFull : \"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 + 1d6 damage. Choose one of the d8s. The number rolled on that die determines the attack's damage type, as shown below.\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Damage Type\") + \"\\n  1\\tAcid\" + \"\\n  2\\tCold\" + \"\\n  3\\tFire\" + \"\\n  4\\tForce\" + \"\\n  5\\tLightning\" + \"\\n  6\\tPoison\" + \"\\n  7\\tPsychic\" + \"\\n  8\\tThunder\" + \"\\n\\n   \" + \"If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\" + \"\\n   \" + \"A creature can be targeted only once by each casting of this spell.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, each target takes 1d6 extra damage of the type rolled for each slot level above 1st.\",\n\t\tdynamicDamageBonus : {\n\t\t\tmultipleDmgTypes : {\n\t\t\t\tdmgTypes : [\"acid\", \"cold\", \"fire\", \"force\", \"lightning\", \"poison\", \"psychic\", \"thunder\"],\n\t\t\t\tinDescriptionAs : \"\"\n\t\t\t}\n\t\t}\n\t};\n} // dupl_end\n\n// Magic Items\nvar GGtR_GuildKeyrune = {\n\tfeaturesArtificial: {\n\t\tname: \"Artificial\",\n\t\tdescription: \"The [THIS] is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the [THIS] takes the Dodge action and moves to avoid danger.\",\n\t},\n\tnotesSummon: {\n\t\tname: \"Summon\",\n\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a [TYPE]. It reverts back to a keyrune after [DURATION], if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t},\n\tcreateCreatureOptions: function(type, nameThis, duration, aTraits, aActions, aFeatures, aNotes, fCallback) {\n\t\tif (!CreatureList[type]) return false;\n\t\tvar obj = newObj(CreatureList[type]);\n\t\tobj.name = \"Keyrune \" + obj.name;\n\t\tif (nameThis) {\n\t\t\tif (isArray(nameThis)) {\n\t\t\t\tobj.nameThis = nameThis[0];\n\t\t\t\ttype = nameThis[0];\n\t\t\t\tobj.name = nameThis[1];\n\t\t\t} else {\n\t\t\t\tobj.nameThis = nameThis;\n\t\t\t}\n\t\t}\n\t\tdelete obj.nameAlt;\n\t\tobj.source.push([\"G\", 177]);\n\t\tobj.header = \"Keyrune\";\n\t\tobj.languages = \"Understands the keyrune owner's languages\";\n\t\t// traits\n\t\tif (aTraits) {\n\t\t\tif (!obj.traits) obj.traits = [];\n\t\t\tobj.traits = obj.traits.concat(aTraits);\n\t\t}\n\t\t// actions\n\t\tif (aActions) {\n\t\t\tif (!obj.actions) obj.actions = [];\n\t\t\tobj.actions = obj.actions.concat(aTraits);\n\t\t}\n\t\t// features\n\t\tif (!obj.features) obj.features = [];\n\t\tobj.features.push(GGtR_GuildKeyrune.featuresArtificial);\n\t\tif (aFeatures) obj.features = obj.features.concat(aFeatures);\n\t\t// notes\n\t\tif (!obj.notes) obj.notes = [];\n\t\tobj.notes.push({\n\t\t\tname: GGtR_GuildKeyrune.notesSummon.name,\n\t\t\tdescription: GGtR_GuildKeyrune.notesSummon.description.replace(\"[TYPE]\", type).replace(\"[DURATION]\", duration),\n\t\t});\n\t\tif (aNotes) obj.notes = obj.notes.concat(aNotes);\n\t\tif (fCallback) fCallback(obj);\n\t\treturn [obj];\n\t},\n}\nMagicItemsList[\"guild keyrune\"] = {\n\tname : \"Guild Keyrune\",\n\tsource : [[\"G\", 177]],\n\ttype : \"wondrous item\",\n\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a creature. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for some hours, until it has 0 HP, or I dismiss it as an action.\",\n\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a creature if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\tdescriptionFull : \"Associated with a particular guild, a guild keyrune is a ceremonial, stylized key, about 1 foot long, made from carved stone. Not a literal key, the item is a badge of authority that gives its bearer access to privileged places in its guild's headquarters and outposts. At the DM's discretion, a character might be given a keyrune upon attaining a renown score of 25 in their guild.\\n    When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the key rune transforms into a creature. If there isn't enough space for the creature, the keyrune doesn't transform. See the Monster Manual for the creature's stat block- the name of which is given in bold in the keyrune's description- unless you're directed to chapter 6 of this book instead.\\n    The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n    The creature exists for a duration specific to each keyrune. At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\tattunement : true,\n\taction : [[\"action\", \"\"]],\n\tchoices : [\"Azorius\", \"Boros\", \"Dimir\", \"Golgari\", \"Gruul\", \"Izzet\", \"Orzhov\", \"Rakdos\", \"Selesnya\", \"Simic\"],\n\t\"azorius\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word and have it transform into a giant eagle for 1 hour with which I can talk telepathically if within 1 mile. It is friendly to me and my allies and obeys my spoken commands. As an action, I can see and hear what it does. I can have it revert back as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a a giant eagle for 1 hour. While within 1 mile, I can communicate telepathically with it. It is friendly to me and my allies and obeys my spoken commands, otherwise using only the Dodge action. It reverts back to its keyrune form when it drops to 0 HP or if I touch it and speak the command word as an action. Once it does, it can't transform again for 36 hours. As an action, I can see/hear through its senses as if I had keen sight until the start of my next turn, but I can't use my own senses during that time.\",\n\t\tdescriptionFull : \"This keyrune is carved from white marble and lapis lazuli to resemble a noble bird of prey. It can become a giant eagle for up to 1 hour. While the transformed eagle is within 1 mile of you, you can communicate with it telepathically. As an action, you can see through the eagle's eyes and hear what it hears until the start of your next turn, and you gain the benefit of its keen sight. During this time, you are deaf and blind with regard to your own senses.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a giant eagle. If there isn't enough space for the eagle, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the eagle takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Azorius guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/azorius/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\taction: [[\"action\", \" (Shared Vision)\"]],\n\t\tcreaturesAdd: [[\"Keyrune Giant Eagle\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"giant eagle\", \"eagle\", \"1 hour\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the eagle is within 1 mile of its owner, they can communicate telepathically.\",\n\t\t}, {\n\t\t\tname: \"Shared Vision\",\n\t\t\tdescription: \"As an action, the owner can see through the eagle's eyes and hear what it hears until the start of their next turn, and gain the benefit of its keen sight. During this time, the owner is deaf and blind with regard to their own senses.\",\n\t\t}]),\n\t},\n\t\"boros\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word and place it on the ground to transforms into a human veteran. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 8 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a human veteran if there is enough space. The creature is friendly to me and my allies and gives tactical advice, but is easily revealed as an artificial human. It understands my languages and obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I dismiss it as an action by touching it and speaking the command word again. Once it does, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Carved from red sandstone with white granite elements to resemble a member of the Boros Legion, this keyrune can become a veteran (human) for up to 8 hours. In addition to fighting on your behalf, this veteran cheerfully offers tactical advice, which is usually sound. Anyone who talks with the transformed keyrune or examines it closely can easily recognize that it is an artificial human.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a veteran (human). If there isn't enough space for the veteran, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Boros guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/boros/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd : [[\"Keyrune Veteran\", true]],\n\t\tcreatureOptions : [{\n\t\t\tname : \"Keyrune Veteran\",\n\t\t\tsource : [[\"SRD\", 403], [\"MM\", 350], [\"G\", 177]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Humanoid\",\n\t\t\talignment : \"Any\",\n\t\t\tac : 17,\n\t\t\thp : 58,\n\t\t\thd : [9, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [16, 13, 14, 10, 11, 10],\n\t\t\tskills : {\n\t\t\t\t\"athletics\" : 5,\n\t\t\t\t\"perception\" : 2,\n\t\t\t},\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tpassivePerception : 12,\n\t\t\tchallengeRating : \"3\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Longsword\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 8, \"slashing\"],\n\t\t\t\trange : \"Melee\",\n\t\t\t\tdescription : \"Versatile (1d10); Two attacks as an action\",\n\t\t\t}, {\n\t\t\t\tname : \"Shortsword\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 6, \"piercing\"],\n\t\t\t\trange : \"Melee\",\n\t\t\t\tdescription : \"Finesse, light\",\n\t\t\t}, {\n\t\t\t\tname : \"Heavy Crossbow\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 12, \"piercing\"],\n\t\t\t\trange : \"100/400 ft\",\n\t\t\t\tdescription : \"Ammunition, heavy, loading, two-handed\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The veteran is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the veteran takes the Dodge action and moves to avoid danger. Anyone who talks with the transformed keyrune or examines it closely can easily recognize that it is an artificial human.\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the veteran can make two Longsword attacks and, if it has a shortsword drawn, one Shortsword attack.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Tactician\",\n\t\t\t\tdescription : \"In addition to fighting on its owner's behalf, the veteran cheerfully offers tactical advice, which is usually sound.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a veteran. It reverts back to a keyrune after 8 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"dimir\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transform into an intellect devourer. It is friendly to me and my allies. It lasts for 24 hours, until it has 0 HP, or I dismiss it as an action. I can command it to pursue only a single mission each times it transforms and it returns to me at the end of it.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into an intellect devourer if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It lasts for 24 hours, during which time it pursues a single mission set by me, like information gathering, returning to me afterwards to report and transform back to the keyrune. It also reverts back when it drops to 0 HP or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again for 36 hours.\",\n\t\tdescriptionFull : \"This keyrune, carved from black stone accented with steel, resembles a stylized horror. On command, it transforms into an intellect devourer that resembles the Dimir guild symbol, with six bladelike legs. The creature exists for up to 24 hours. During that time, it pursues only a single mission you give it\\u2014usually an assignment to take over someone's body, either to impersonate that person for a brief time or to extract secrets from their mind. When the mission is complete, the creature returns to you, reports its success, and reverts to its keyrune form.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a intellect devourer. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Dimir guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/dimir/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd : [[\"Keyrune Intellect Devourer\", true]],\n\t\tcreatureOptions : [{\n\t\t\tname : \"Keyrune Intellect Devourer\",\n\t\t\tsource : [[\"MM\", 191], [\"G\", 177]],\n\t\t\tsize : 5,\n\t\t\ttype : \"Aberration\",\n\t\t\talignment : \"Lawful Evil\",\n\t\t\tac : 12,\n\t\t\thp : 21,\n\t\t\thd : [6, 4],\n\t\t\tspeed : \"40 ft\",\n\t\t\tscores : [6, 14, 13, 12, 11, 10],\n\t\t\tskills : {\n\t\t\t\t\"perception\" : 2,\n\t\t\t\t\"stealth\" : 4,\n\t\t\t},\n\t\t\tdamage_resistances : \"bludgeoning, piercing, and slashing from nonmagical weapons\",\n\t\t\tcondition_immunities : \"blinded\",\n\t\t\tlanguages: \"Understands the keyrune owner's languages, Telepathy 60 ft\",\n\t\t\tsenses: \"Blindsight 60 ft (blind beyond this radius), Detect Intelligence\",\n\t\t\tpassivePerception : 12,\n\t\t\tchallengeRating : \"2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 4, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"Claws and Devour Intellect as an action\",\n\t\t\t}, {\n\t\t\t\tname : \"Devour Intellect\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 10, \"psychic\"],\n\t\t\t\trange : \"10 ft\",\n\t\t\t\tdescription : \"Int save to avoid; Failure: if target's Int score \\u2264 3d6, it gains Int 0 and is stunned while at Int 0\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Detect Intelligence\",\n\t\t\t\tdescription: \"The devourer magically senses the location of creatures within 300 ft that have an Int score of 3 or higher, regardless of barriers.\",\n\t\t\t}, {\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The devourer is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the devourer takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the devourer can make one claws attack and uses Devour Intellect.\",\n\t\t\t}, {\n\t\t\t\tname : \"Devour Intellect\",\n\t\t\t\tdescription : \"As an action, the devourer targets one creature with a brain that it can see within 10 ft. The target must make an Intelligence save against this magic or take 2d10 psychic damage and if its Intelligence score is lower or equal to a roll of 3d6, that score is reduced to 0 and the target is stunned while its Int is 0.\",\n\t\t\t}, {\n\t\t\t\tname : \"Body Thief\",\n\t\t\t\tdescription : \"As an action, the devourer can initiate an Int contest with an incapacitated humanoid within 5 ft. If it wins, the devourer magically consumes the target's brain, teleports into its skull, and takes control of its body. While inside, the intellect has total cover. The devourer retains its Int, Wis, and Cha, as well as its Telepathy and traits. It otherwise adopts the target's statistics and knows everything it knew, including spells and languages.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname : \"Body Thief (continued)\",\n\t\t\t\tdescription : \"If the host body dies, the intellect devourer must leave it. The intellect devourer is also forced out if the target regains its devoured brain by means of Wish. By spending 5 ft of its movement, the intellect devourer can voluntarily leave the body, teleporting to the nearest unoccupied space within 5 ft. The body then dies, unless its brain is restored within 1 round. Protection from Evil and Good prevents the intellect devourer from consuming a brain, and when cast on a controlled body, it drives the intellect devourer out.\",\n\t\t\t}, {\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a veteran. It reverts back to a keyrune after 24 hours, if it drops to 0 HP, if the keyrune's owner uses an action to touch it and speak the command word, or if it finishes it mission.\\n   It pursues only a single mission given by its owner. This is usually an assignment to take over someone's body, either to impersonate that person for a brief time or to extract secrets from their mind. When the mission is complete, the creature returns to its owner, reports its success, and reverts to its keyrune form.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"golgari\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a giant scorpion with which I can talk telepathically if in 60 ft. It is friendly to me and my allies and obeys my commands. It reverts back after 6 hours, if it drops to 0 HP, or I touch it and speak its command word as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a giant scorpion if there is enough space. While within 60 ft of it, I can communicate with it telepathically. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after some hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Made from deep green jade with black veins, this keyrune has an insectile shape. It can transform into a giant scorpion for up to 6 hours. The scorpion has an Intelligence of 4 and can communicate with you telepathically while it is within 60 feet of you, though its messages are largely limited to describing the passage of potential prey.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a giant scorpion. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Golgari guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/golgari/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Giant Scorpion\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"giant scorpion\", \"scorpion\", \"6 hours\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the scorpion is within 60 ft of its owner, they can communicate telepathically.\",\n\t\t}], function(obj) { obj.scores[3] = 4; }),\n\t},\n\t\"gruul\" : {\n\t\ttype : \"wondrous item\",\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a ceratok (rhinoceros stats). It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 1 hour, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a ceratok (rhinoceros stats) if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 1 hour, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This crude keyrune is cobbled together from bits of rubble, broken glass, bone, and animal hair. One end resembles a horned beast. On command, the keyrune transforms into a ceratok, a horned creature much like a rhinoceros (and with the same statistics). It remains in its ceratok form for 1 hour.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a ceratok. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Gruul guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/gruul/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Ceratok\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"rhinoceros\", [\"ceratok\", \"Keyrune Ceratok\"], \"1 hour\"),\n\t},\n\t\"izzet\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a galvanice weird. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 3 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a galvanice weird if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 3 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Formed of carved and polished red and blue stone, the keyrune includes bits of cable and wire. One end resembles a humanlike head, suggesting the jagged elemental form of the galvanice weird that it can become for a duration of 3 hours. In this form, it will serve you as a bodyguard, lift and carry things for you, act as a test subject for your experiments, or aid you in any other way that its capabilities allow.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a galvanice weird. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Izzet guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/izzet/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Galvanice Weird\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Galvanice Weird\",\n\t\t\tsource : [[\"G\", 209]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Elemental\",\n\t\t\talignment : \"Chaotic Neutral\",\n\t\t\tac : 12,\n\t\t\thp : 22,\n\t\t\thd : [3, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [14, 10, 17, 3, 10, 5],\n\t\t\tdamage_resistances : \"cold, lightning; bludgeoning, piercing, and slashing from nonmagical attacks\",\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious\",\n\t\t\tsenses : \"Darkvision 60 ft\",\n\t\t\tpassivePerception : 10,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Slam\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"+2d4 Lightning damage and target must make Con save, see below\",\n\t\t\t\ttooltip : \"If the target is a creature, it must succeed on a DC 13 Constitution saving throw or lose the ability to use reactions until the start of the weird's next turn.\",\n\t\t\t}, {\n\t\t\t\tname : \"With Slam Hit\",\n\t\t\t\tability : 3,\n\t\t\t\tdamage : [\"Con save\", \"\", \"No Reactions\"],\n\t\t\t\trange : \"Creature hit\",\n\t\t\t\tdescription : \"If failed, target can't use reactions until the start of the weird's next turn\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t}, {\n\t\t\t\tname : \"Death Burst\",\n\t\t\t\tability : 3,\n\t\t\t\tdamage : [2, 6, \"lightning\"],\n\t\t\t\trange : \"10-ft radius\",\n\t\t\t\tdescription : \"Only when the weird dies; Dex save to halve damage\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t\ttooltip : \"When the weird dies, it explodes in a burst of ice and lightning. Each creature within 10 ft of the exploding weird must make a DC 13 Dexterity saving throw, taking 2d6 lightning damage on a failed save, or half as much damage on a successful one.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Death Burst\",\n\t\t\t\tdescription : \"When the weird dies, it explodes in a burst of ice and lightning. Each creature within 10 ft of the exploding weird must make a Dexterity saving throw, taking 2d6 lightning damage on a failed save, or half as much damage on a successful one.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The weird is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the weird takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a galvanice weird. It reverts back to a keyrune after 3 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\\n   In this form, it will serve as a bodyguard, lift and carry things, act as a test subject for experiments, or aid its owner in any other way that its capabilities allow.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"orzhov\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a winged thrull. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 2 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a winged thrull if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 2 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This keyrune is carved from white marble with veins of black. The end is shaped like a thrull's head, with a gold faceplate affixed. On command, the keyrune transforms into a winged thrull for up to 2 hours. If you don't come from an Orzhov oligarch family, it serves you grudgingly, clownishly aping your movements and mannerisms while carrying out your orders.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a winged thrull. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Orzhov guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/orzhov/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Winged Thrull\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Winged Thrull\",\n\t\t\tsource : [[\"G\", 221]],\n\t\t\tsize : 4,\n\t\t\ttype : \"Construct\",\n\t\t\talignment : \"Unaligned\",\n\t\t\tac : 12,\n\t\t\thp : 31,\n\t\t\thd : [7, 6],\n\t\t\tspeed : \"30 ft, fly 30 ft\",\n\t\t\tscores : [9, 15, 12, 8, 9, 8],\n\t\t\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"exhaustion, poisoned\",\n\t\t\tsenses : \"Darkvision 60 ft\",\n\t\t\tpassivePerception : 9,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1/2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [2, 4, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Rock\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\t\t\trange : \"20/60 ft\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Self-Sacrifice\",\n\t\t\t\tdescription : \"As a reaction when a creature within 5 ft of the thrull is hit by an attack, the thrull can swap places with that creature and be hit by the attack instead.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The thrull is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the thrull takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a winged thrull. It reverts back to a keyrune after 2 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\\n   If the onwer doesn't come from an Orzhov oligarch family, the thrull serves them grudgingly, clownishly aping their movements and mannerisms while carrying out their orders.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"rakdos\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a cackler. It is friendly to me and my allies. It obeys my spoken commands, taking only the Dodge action if not commanded otherwise. It lasts for 1 hour, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a cackler if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 1 hour, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This dark granite keyrune is marbled with scarlet veins and carved with the leering visage of a mischievous demon. When activated, it transforms into a cackler for up to 1 hour.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a cackler. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Rakdos guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/rakdos/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Cackler\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Cackler\",\n\t\t\tsource : [[\"G\", 195]],\n\t\t\tsize : 4,\n\t\t\ttype : \"Fiend\",\n\t\t\tsubtype : \"Demon\",\n\t\t\talignment : \"Chaotic Evil\",\n\t\t\tac : 15,\n\t\t\thp : 10,\n\t\t\thd : [3, 6],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [9, 16, 11, 11, 7, 12],\n\t\t\tskills : {\n\t\t\t\t\"perception\" : 2,\n\t\t\t\t\"stealth\" : 4,\n\t\t\t},\n\t\t\tdamage_resistances : \"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical attacks\",\n\t\t\tdamage_immunities : \"poison\",\n\t\t\tcondition_immunities : \"poisoned\",\n\t\t\tsenses : \"Darkvision 120 ft\",\n\t\t\tpassivePerception : 9,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1/2\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 1,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Bite\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 4, \"piercing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Spiked Chain\",\n\t\t\t\tability : 2,\n\t\t\t\tdamage : [1, 6, \"slashing\"],\n\t\t\t\trange : \"Melee (10 ft)\",\n\t\t\t}, {\n\t\t\t\tname : \"Last Laugh\",\n\t\t\t\tability : 6,\n\t\t\t\tdamage : [1, 4, \"psychic\"],\n\t\t\t\trange : \"10-ft radius\",\n\t\t\t\tdescription : \"Only when the cackler dies; Wis save to avoid\",\n\t\t\t\tdc : true,\n\t\t\t\tabilitytodamage : false,\n\t\t\t\ttooltip : \"When the cackler dies, it releases a dying laugh that scars the minds of other nearby creatures. Each creature within 10 ft of the cackler must succeed on a DC 11 Wisdom saving throw or take 1d4 psychic damage.\",\n\t\t\t}, {\n\t\t\t\tname : \"Fire Bolt\",\n\t\t\t\tability : 6,\n\t\t\t\tdamage : [1, 10, \"fire\"],\n\t\t\t\trange : \"120 ft\",\n\t\t\t\tdescription : \"Unattended flammable objects ignite\",\n\t\t\t\tabilitytodamage : false,\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Innate Spellcasting\",\n\t\t\t\tdescription : \"The cackler's innate spellcasting ability is Charisma (spell save DC 11, +3 to hit with spell attacks). The cackler can innately cast, without requiring material components, Fire Bolt (at will) and Tasha's Hideous Laughter (1/day).\",\n\t\t\t}, {\n\t\t\t\tname : \"Last Laugh\",\n\t\t\t\tdescription : \"When the cackler dies, it releases a dying laugh that scars the minds of other nearby creatures. Each creature within 10 ft of the cackler must succeed on a Wisdom saving throw or take 1d4 psychic damage.\",\n\t\t\t}, {\n\t\t\t\tname : \"Mimicry\",\n\t\t\t\tdescription : \"The cackler can mimic any sounds it has heard, including voices. A creature that hears the sounds can tell they are imitations with a successful DC 11 Wisdom (Insight) check.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The cackler is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the cackler takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a cackler. It reverts back to a keyrune after 1 hour, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t},\n\t\"selesnya\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a wolf with Int 6 with which I can talk telepathically if within 1 mile. It is friendly to me and my allies. It obeys my commands, but only uses the Dodge action otherwise. It lasts for 8 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a wolf with Intelligence 6 if there is enough space. The creature is friendly to me and my allies, understands Elvish and Sylvan (but can't speak them), and obeys my commands. While within 1 mile, we can communicate telepathically. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 8 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"Carved from white and green marble in the shape of a wolf's head, this keyrune transforms into a dire wolf. The wolf persists for 8 hours. Its Intelligence is 6, and it understands Elvish and Sylvan but can't speak those languages. While it is within 1 mile of you, you can communicate with each other telepathically.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a dire wolf. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Selesnya guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/selesnya/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Dire Wolf\", true]],\n\t\tcreatureOptions: GGtR_GuildKeyrune.createCreatureOptions(\"dire wolf\", \"wolf\", \"8 hours\", [{\n\t\t\tname: \"Telepathy\",\n\t\t\tdescription: \"While the wolf is within 1 mile of its owner, they can communicate telepathically.\",\n\t\t}], function(obj) {\n\t\t\tobj.scores[3] = 6;\n\t\t\tobj.languages = \"Understands the keyrune owner's languages, Elvish, and Sylvan, but can't speak\";\n\t\t}),\n\t},\n\t\"simic\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak this ceremonial key's command word to have it transforms into a krasis (cat. 2, Grabber and Stabilizing Legs). It is friendly to me and my allies. It obeys my commands, taking only the Dodge action if not commanded otherwise. It lasts for 5 hours, until it has 0 HP, or I dismiss it as an action.\",\n\t\tdescriptionLong : \"As an action, I can speak this ceremonial key's command word and place it on the ground where it transforms into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations if there is enough space. The creature is friendly to me and my allies, understands my languages, and obeys my spoken commands. It takes only the Dodge action if not commanded otherwise. It reverts back to its keyrune form after 5 hours, when it drops to 0 HP, or if I touch it and speak its command word as an action. Once it reverts back, it can't transform again until 36 hours have passed.\",\n\t\tdescriptionFull : \"This keyrune is assembled from coral, mother-of-pearl, and chrome and adorned with the spirals and curves characteristic of Simic ornamentation. The head resembles the shell of a sea creature. On command, the keyrune turns into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations. The transformation lasts for up to 5 hours.\\n   When you use an action to speak the item's command word and place the keyrune on the ground in an unoccupied space within 5 feet of you, the keyrune transforms into a category 2 krasis that has the Grabber and Stabilizing Legs adaptations. If there isn't enough space for the creature, the keyrune doesn't transform.\\n   The creature is friendly to you, your companions, and other members of your guild (unless those guild members are hostile to you). It understands your languages and obeys your spoken commands. If you issue no commands, the creature takes the Dodge action and moves to avoid danger.\\n   At the end of the duration, the creature reverts to its keyrune form. It reverts early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature reverts to its keyrune form, it can't transform again until 36 hours have passed.\",\n\t\tprerequisite : \"Requires attunement by a member of the Simic guild\",\n\t\tprereqeval : function (v) {\n\t\t\treturn (/simic/i).test(What(\"Background\") + What(\"Background Extra\") + What(\"Background_Faction.Text\"));\n\t\t},\n\t\tusages : 1,\n\t\trecovery : \"36 h\",\n\t\tcreaturesAdd: [[\"Keyrune Krasis\", true]],\n\t\tcreatureOptions: [{\n\t\t\tname : \"Keyrune Krasis\",\n\t\t\tsource : [[\"G\", 210]],\n\t\t\tsize : 3,\n\t\t\ttype : \"Monstrosity\",\n\t\t\talignment : \"Unaligned\",\n\t\t\tac : 15,\n\t\t\thp : 19,\n\t\t\thd : [3, 8],\n\t\t\tspeed : \"30 ft\",\n\t\t\tscores : [16, 15, 14, 2, 13, 8],\n\t\t\tpassivePerception : 11,\n\t\t\tlanguages: \"Understands the keyrune owner's languages\",\n\t\t\tchallengeRating : \"1\",\n\t\t\tproficiencyBonus : 2,\n\t\t\tattacksAction : 2,\n\t\t\tattacks : [{\n\t\t\t\tname : \"Bite\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 10, \"piercing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"One bite and one claws attack as an Attack action\",\n\t\t\t}, {\n\t\t\t\tname : \"Claws\",\n\t\t\t\tability : 1,\n\t\t\t\tdamage : [1, 8, \"slashing\"],\n\t\t\t\trange : \"Melee (5 ft)\",\n\t\t\t\tdescription : \"One claws and one bite attack as an Attack action; Target is grappled (escape DC 13)\",\n\t\t\t}],\n\t\t\tactions : [{\n\t\t\t\tname : \"Multiattack\",\n\t\t\t\tdescription : \"As an action on its turn, the krasis can make one Bite and one Claws attack.\",\n\t\t\t}],\n\t\t\ttraits : [{\n\t\t\t\tname : \"Amphibious\",\n\t\t\t\tdescription : \"The krasis can breathe air and water.\",\n\t\t\t}, {\n\t\t\t\tname : \"Grabber\",\n\t\t\t\tdescription : \"When the krasis hits a creature with its claws, the target is grappled (escape DC 13) by a specialized grasping appendage on the krasis. It can have only one creature grappled in this way at a time.\",\n\t\t\t}, {\n\t\t\t\tname : \"Stabilizing Legs\",\n\t\t\t\tdescription : \"The krasis has several crablike legs. As a result, it has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\",\n\t\t\t}],\n\t\t\tfeatures : [{\n\t\t\t\tname: \"Artificial\",\n\t\t\t\tdescription: \"The krasis is friendly to the owner of the keyrune, their companions, and (non-hostile) members of their guild. It obeys their spoken commands. If no command is issued, the krasis takes the Dodge action and moves to avoid danger.\",\n\t\t\t}],\n\t\t\tnotes : [{\n\t\t\t\tname: \"Summon\",\n\t\t\t\tdescription: \"As an action, the owner of the keyrune can place it in an empty space within 5 ft and speak the item's command word. If space allows, the keyrune transforms into a category 1 krasis that has the Grabber and Stabilizing Legs adaptations. It reverts back to a keyrune after 5 hours, if it drops to 0 HP, or if the keyrune's owner uses an action to touch it and speak the command word.\",\n\t\t\t}],\n\t\t\theader : \"Keyrune\",\n\t\t}],\n\t}\n}\nMagicItemsList[\"guild signet\"] = {\n\tname : \"Guild Signet\",\n\tsource : [[\"G\", 178]],\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This signet ring bears a symbol of its associated guild. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast the spell within (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\tdescriptionFull : \"This ring, adorned with the symbol of a guild, allows you to cast one spell closely associated with that guild, as shown in the table below. A guild signet is sometimes awarded to a guild member whose renown score in that guild is 5 or higher, as a reward for performing special services for the guild. Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\\n   A signet has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, you can expend 1 charge to cast the associated spell (save DC 13).\\n\\n\" +\n\ttoUni(\"Guild \\tAssociated Spell\") +\n\t\"\\nAzorius\\tensnaring strike\" +\n\t\"\\nBoros\\theroism\" +\n\t\"\\nDimir\\tdisguise self\" +\n\t\"\\nGolgari\\tentangle\" +\n\t\"\\nGruul\\tcompelled duel\" +\n\t\"\\nlzzet\\tchaos bolt\" +\n\t\"\\nOrzhov\\tcommand\" +\n\t\"\\nRakdos\\thellish rebuke\" +\n\t\"\\nSelesnya\\tcharm person\" +\n\t\"\\nSimic\\texpeditious retreat\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tchoices : [\"Azorius\", \"Boros\", \"Dimir\", \"Golgari\", \"Gruul\", \"Izzet\", \"Orzhov\", \"Rakdos\", \"Selesnya\", \"Simic\"],\n\t\"azorius\" : {\n\t\tdescription : \"This signet ring bears a symbol of Azorius. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Ensnaring Strike (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"ensnaring strike\"],\n\t\t\tselection : [\"ensnaring strike\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"boros\" : {\n\t\tdescription : \"This signet ring bears a symbol of Boros. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Heroism (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"heroism\"],\n\t\t\tselection : [\"heroism\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"dimir\" : {\n\t\tdescription : \"This signet ring bears a symbol of Dimir. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Disguise Self (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"disguise self\"],\n\t\t\tselection : [\"disguise self\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"golgari\" : {\n\t\tdescription : \"This signet ring bears a symbol of Golgari. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Entangle (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"entangle\"],\n\t\t\tselection : [\"entangle\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"gruul\" : {\n\t\tdescription : \"This signet ring bears a symbol of Gruul. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Compelled Duel (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"compelled duel\"],\n\t\t\tselection : [\"compelled duel\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"izzet\" : {\n\t\tdescription : \"This signet ring bears a symbol of lzzet. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Chaos Bolt (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"chaos bolt\"],\n\t\t\tselection : [\"chaos bolt\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"orzhov\" : {\n\t\tdescription : \"This signet ring bears a symbol of Orzhov. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Command (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"command\"],\n\t\t\tselection : [\"command\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"rakdos\" : {\n\t\tdescription : \"This signet ring bears a symbol of Rakdos. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Hellish Rebuke (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"hellish rebuke\"],\n\t\t\tselection : [\"hellish rebuke\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"selesnya\" : {\n\t\tdescription : \"This signet ring bears a symbol of Selesnya. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Charm Person (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"charm person\"],\n\t\t\tselection : [\"charm person\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t},\n\t\"simic\" : {\n\t\tdescription : \"This signet ring bears a symbol of Simic. It has 3 charges, and it regains 1d3 expended charges daily at dawn. While wearing it, I can expend 1 charge to cast Expeditious Retreat (save DC 13). Aside from its magical properties, the ring is also an indicator of the guild's recognition and favor.\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tfixedDC : 13,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"expeditious retreat\"],\n\t\t\tselection : [\"expeditious retreat\"],\n\t\t\tfirstCol : 1\n\t\t}]\n\t}\n}\nMagicItemsList[\"illusionist's bracers\"] = {\n\tname : \"Illusionist's Bracers\",\n\tsource : [[\"G\", 178]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While wearing the bracers, whenever I cast a cantrip, I can use a bonus action on the same turn to cast that cantrip a second time.\",\n\tdescriptionFull : \"A powerful illusionist of House Dimir originally developed these bracers, which enabled her to create multiple minor illusions at once. The bracers' power, though, extends far beyond illusions.\\n   While wearing the bracers, whenever you cast a cantrip, you can use a bonus action on the same turn to cast that cantrip a second time.\",\n\tweight : 1,\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\taction : [[\"bonus action\", \" (with cantrip)\"]]\n}\nMagicItemsList[\"mizzium apparatus\"] = {\n\tname : \"Mizzium Apparatus\",\n\tsource : [[\"G\", 179]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"I can use this harness as an arcane focus and to attempt to cast a spells that I do not know or have prepared but is on my class' spell list. This requires an Int (Arcana) check DC 10 + twice the spell slot level and components and a spell slot as appropriate for the spell. On a failure, I cast a random spell, see Notes page.\",\n\tdescriptionLong : \"This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness. I can use it as an arcane focus. In addition, I can use it to attempt to cast a spell that I do not know or have prepared but is on my class' spell list. I use components and a spell slot as appropriate for the spell as normal, but I must succeed on an Intelligence (Arcana) check DC 10 + twice the spell slot level. On a failure, I cast a random spell, see Notes page. The DC for cantrips is 10, and on a failure nothing happens.\",\n\tdescriptionFull : \"Innovation is a dangerous pursuit, at least the way the mages of the Izzet League engage in it. As protection against the risk of an experiment going awry, they have developed a device to help channel and control their magic. This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness. The item weighs 8 pounds.\\n   While you are wearing the mizzium apparatus, you can use it as an arcane focus. In addition, you can attempt to cast a spell that you do not know or have prepared. The spell you choose must be on your class's spell list and of a level for which you have a spell slot, and you must provide the spell's components.\\n   You expend a spell slot to cast the spell as normal, but before resolving it you must make an Intelligence (Arcana) check. The DC is 10 + twice the level of the spell slot you expend to cast the spell.\\n   On a successful check, you cast the spell as normal, using your spell save DC and spellcasting ability modifier. On a failed check, you cast a different spell from the one you intended. Randomly determine the spell you cast by rolling on the table for the level of the spell slot you expended. If the slot is 6th level or higher, roll on the table for 5th-level spells.\\n   If you try to cast a cantrip you don't know, the DC for the Intelligence (Arcana) check is 10, and on a failed check, there is no effect.\\n\\n\" + [\n\t\ttoUni(\"d6\\t1st-level spell\"),\n\t\t\" 1\\tBurning Hands\",\n\t\t\" 2\\tChaos Bolt\",\n\t\t\" 3\\tColor Spray\",\n\t\t\" 4\\tFaerie Fire\",\n\t\t\" 5\\tFog Cloud\",\n\t\t\" 6\\tThunderwave\\n\",\n\t\ttoUni(\"d6\\t2nd-level spell\"),\n\t\t\" 1\\tBlur\",\n\t\t\" 2\\tGust of Wind\",\n\t\t\" 3\\tHeat Metal\",\n\t\t\" 4\\tMelf's Acid Arrow\",\n\t\t\" 5\\tScorching Ray\",\n\t\t\" 6\\tShatter\\n\",\n\t\ttoUni(\"d6\\t3rd-level spell\"),\n\t\t\" 1\\tFear\",\n\t\t\" 2\\tFeign Death\",\n\t\t\" 3\\tFireball\",\n\t\t\" 4\\tGaseous Form\",\n\t\t\" 5\\tSleet Storm\",\n\t\t\" 6\\tStinking Cloud\\n\",\n\t\ttoUni(\"d4\\t4th-level spell\"),\n\t\t\" 1\\tConfusion\",\n\t\t\" 2\\tConjure Minor Elementals\",\n\t\t\" 3\\tEvard's Black Tentacles\",\n\t\t\" 4\\tIce Storm\\n\",\n\t\ttoUni(\"d4\\t5th-level spell\"),\n\t\t\" 1\\tAnimate Objects\",\n\t\t\" 2\\tCloudkill\",\n\t\t\" 3\\tCone of Cold\",\n\t\t\" 4\\tFlame Strike\"\n\t].join(\"\\n\"),\n\tweight : 8,\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a sorcerer, warlock, or wizard\",\n\tprereqeval : function(v) { return classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\n\ttoNotesPage : [{\n\t\tname : \"Random Spells\",\n\t\tnote : [\n\t\t\t\"This apparatus is a collection of leather straps, flexible tubing, glass cylinders, and plates, bracers, and fittings made from a magic-infused metal alloy called mizzium, all assembled into a harness.\",\n\t\t\t\"While I am wearing the mizzium apparatus, I can use it as an arcane focus. In addition, I can attempt to cast a spell that I do not know or have prepared. The spell I choose must be on my class's spell list and of a level for which I have a spell slot, and I must provide the spell's components.\",\n\t\t\t\"I expend a spell slot to cast the spell as normal, but before resolving it I must make an Intelligence (Arcana) check. The DC is 10 + twice the level of the spell slot I expend to cast the spell. On a successful check, I cast the spell as normal, using my spell save DC and spellcasting ability modifier. On a failed check, I cast a different spell from the one I intended, randomly determining the spell I cast by rolling on the table for the level of the spell slot expended. If the slot is 6th level or higher, I roll on the table for 5th-level spells. If I try to cast a cantrip I don't know, the DC for the Intelligence (Arcana) check is 10, and on a failed check, there is no effect.\\n\",\n\t\t\t\"1D6\\t1ST-LEVEL SPELL\\t1D6\\t2ND-LEVEL SPELL\",\n\t\t\t\"  1\\tBurning Hands \\t  1\\tBlur\",\n\t\t\t\"  2\\tChaos Bolt    \\t  2\\tGust of Wind\",\n\t\t\t\"  3\\tColor Spray   \\t  3\\tHeat Metal\",\n\t\t\t\"  4\\tFaerie Fire   \\t  4\\tMelf's Acid Arrow\",\n\t\t\t\"  5\\tFog Cloud     \\t  5\\tScorching Ray\",\n\t\t\t\"  6\\tThunderwave   \\t  6\\tShatter\\n\",\n\t\t\t\"1D6\\t3RD-LEVEL SPELL\",\n\t\t\t\"  1\\tFear\",\n\t\t\t\"  2\\tFeign Death\",\n\t\t\t\"  3\\tFireball\",\n\t\t\t\"  4\\tGaseous Form\",\n\t\t\t\"  5\\tSleet Storm\",\n\t\t\t\"  6\\tStinking Cloud\\n\",\n\t\t\t\"1D4\\t4TH-LEVEL SPELL\\t1D4\\t5TH-LEVEL SPELL (AND HIGHER)\",\n\t\t\t\"  1\\tConfusion\\t\\t  1\\tAnimate Objects\",\n\t\t\t\"  2\\tConjure Minor Elem.\\t  2\\tCloudkill\",\n\t\t\t\"  3\\tEvard's Black Tentacles\\t  3\\tCone of Cold\",\n\t\t\t\"  4\\tIce Storm\\t\\t  4\\tFlame Strike\"\n\t\t]\n\t}]\n}\nMagicItemsList[\"mizzium armor\"] = {\n\tname : \"Mizzium Armor\",\n\tnameTest : \"Mizzium\",\n\tsource : [[\"G\", 179]],\n\ttype : \"armor (medium or heavy)\",\n\trarity : \"rare\",\n\tdescription : \"This armor is reinforced with a magically enhanced metal alloy called mizzium. While I'm wearing it, any critical hit against me becomes a normal hit. In addition, when I'm subjected to a magical effect that allows me to make a Str or Con save to take only half damage, I instead take no damage if I succeed on it.\",\n\tdescriptionFull : \"This suit of armor is reinforced with a magically enhanced metal alloy called mizzium, which is made in Izzet foundries. While you're wearing the armor, any critical hit against you becomes a normal hit. In addition, when you are subjected to a magical effect that allows you to make a Strength or Constitution saving throw to take only half damage, you instead take no damage if you succeed on the saving throw.\",\n\tsavetxt : { text : [\"No damage on success Str or Con save for half damage\"] },\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !(/medium|heavy/i).test(inObj.type) || (/hide/i).test(inObj.name);\n\t\t},\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\n\t}\n}\nMagicItemsList[\"mizzium mortar\"] = {\n\tname : \"Mizzium Mortar\",\n\tsource : [[\"G\", 179]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This 4-ft-long, 6-inch-diameter tube has 4 charges, regaining 1d4 at dawn. As an action, I can expend 1 charge to have all in a 30-ft cone take 5d4 fire damage. As an action, I can expend 3 charges to have all in a 20-ft radius, 40-ft high cylinder in 60 ft take 5d8 fire damage. For both effects DC 15 Dex save halves.\",\n\tdescriptionLong : \"This 4-ft-long, 6-inch-diameter mizzium tube has 4 charges, regaining 1d4 expended charges at dawn. The end that's pointed toward a target is open, and a glowing ball of molten metal can be seen at the other end as long as the mortar has at least 1 charge remaining. As an action, I can expend 1 charge to create a spray of molten mizzium in a 30-ft cone. All within the cone take 5d4 fire damage, DC 15 Dexterity saving throw halves. As an action, I can expend 3 charges to create a 20-ft radius, 40-ft high cylinder within 60 ft of me that deals 5d8 fire damage to all within, DC 15 Dexterity saving throw halves.\",\n\tdescriptionFull : \"This short tube, about 2 feet long and 6 inches in diameter, is made from mizzium, a magically enhanced metal alloy forged by the Izzet League. The end that's pointed toward a target is open, and a glowing ball of molten metal can be seen at the other end as long as the mortar has at least 1 charge remaining.\\n   The mortar has 4 charges for the following properties. It regains 1d4 expended charges daily at dawn.\\n   \" + toUni(\"Molten Spray\") + \". You can expend 1 charge as an action to loose a 30-foot cone of molten mizzium. Each creature in the area must make a DC 15 Dexterity saving throw, taking 5d4 fire damage on a failed save, or half as much damage on a successful one.\\n   \" + toUni(\"Mizzium Bombard\") + \". You can expend 3 charges as an action to launch a hail of molten projectiles in a 20-foot-radius, 40-foot-high cylinder centered on a point you can see within 60 feet of you. Each creature in the area must make a DC 15 Dexterity saving throw. A creature takes 5d8 fire damage on a failed save, or half as much damage on a successful one.\",\n\tweight : 1,\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\"\n}\nMagicItemsList[\"moodmark paint\"] = {\n\tname : \"Moodmark Paint\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Once, I can spend 1 minute to apply this thick black paint to a creature's face. For the next 8 hours, anyone seeing the target can make a DC 10 Wisdom (Insight) check to see if it is happy, sad, angry, disgusted, surprised, or afraid, as well as the main source of that emotion. Drows have advantage on this check.\",\n\tdescriptionFull : \"This thick, black paint is stored in a small jar, containing enough paint to apply moodmarks to one creature. The paint is dabbed on the face in spots or markings that often resemble the eyes of insects or spiders. Applying the paint in this way takes 1 minute.\\n   For the next 8 hours, the marks change to reflect your mental state. A creature that can see you and makes a successful DC 10 Wisdom (Insight) check can discern whether you are happy, sad, angry, disgusted, surprised, or afraid, as well as the main source of that emotion. For example, you might communicate fear caused by a monster you just saw around the corner, grief at the loss of a friend, or happiness derived from pride in your performance in combat. A dark elf has advantage on this check.\",\n\tweight : 1\n}\nMagicItemsList[\"pariah's shield\"] = {\n\tname : \"Pariah's Shield\",\n\tsource : [[\"G\", 180]],\n\ttype : \"shield\",\n\trarity : \"rare\",\n\tdescription : \"While I wield this shield. I gain a +1 bonus to AC for every two allies within 5 ft of me on top of the shield's AC bonus, up to a +3 bonus. As a reaction when a creature I can see within 5 ft of me takes damage, I can take that damage instead, but the damage type for it changes to force.\",\n\tdescriptionFull : \"Soldiers of the Boros Legion consider it an honor to bear this shield, even knowing that it might be the last honor they receive. The front of the shield is sculpted to depict a grieving human face.\\n   You gain a +1 bonus to AC for every two allies within 5 feet of you (up to a maximum of +3) while you wield this shield. This bonus is in addition to the shield's normal bonus to AC.\\n   When a creature you can see within 5 feet of you takes damage, you can use your reaction to take that damage, instead of the creature taking it. When you do so, the damage type changes to force.\",\n\tattunement : true,\n\tweight : 6,\n\tshieldAdd : \"Pariah's Shield\",\n\taction : [[\"reaction\", \"\"]]\n}\nMagicItemsList[\"peregrine mask\"] = {\n\tname : \"Peregrine Mask\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While wearing this winged helm, I have a flying speed of 60 ft and advantage on initiative rolls.\",\n\tdescriptionFull : \"While wearing this winged helm, you have a flying speed of 60 feet. In addition, you have advantage on initiative rolls.\",\n\tattunement : true,\n\tadvantages : [[\"Initiative\", true]],\n\tspeed : { fly : { spd : \"fixed60\", enc : \"fixed50\" } }\n}\nMagicItemsList[\"pyroconverger\"] = {\n\tname : \"Pyroconverger\",\n\tsource : [[\"G\", 180]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"As an action, I can use this flamethrower to deal 4d6 fire damage to all in a 10-ft cone, DC 13 Dex save halves. I must roll a d10 each time I use it and add the times it was used since my last long rest. If the total is 11 or higher, it malfunctions and I take 4d6 fire damage and I can't use it again until I finish a long rest.\",\n\tdescriptionFull : \"A Pyroconverger is an Izzet-made flamethrower. It carries a risk of malfunction each time you use it.\\n   As an action, you can cause the Pyroconverger to project fire in a 10-foot cone. Each creature in that area must make a DC 13 Dexterity saving throw, taking 4d6 fire damage on a failed save, or half as much damage on a successful one.\\n   Each time you use the Pyroconverger, roll a d10 and add the number of times you have used it since your last long rest. If the total is 11 or higher, the Pyroconverger malfunctions: you take 4d6 fire damage, and you can't use the Pyroconverger again until you finish a long rest.\",\n\tattunement : true,\n\tweight : 1,\n\tweaponOptions : [{\n\t\tregExpSearch : /pyroconverger/i,\n\t\tname : \"Pyroconverger\",\n\t\tsource : [[\"G\", 180]],\n\t\tability : 0,\n\t\ttype : \"Magic Item\",\n\t\tdamage : [4, 6, \"fire\"],\n\t\trange : \"10-ft cone\",\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Roll each time for malfunction, see item\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\tmodifiers : [5, \"\"],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"if malfunction\"\n}\nMagicItemsList[\"rakdos riteknife\"] = {\n\tname : \"Rakdos Riteknife\",\n\tsource : [[\"G\", 180]],\n\ttype : \"weapon (dagger)\",\n\trarity : \"legendary\",\n\tdescription : \"This has +1 to hit/damage and imprisons souls of any killed with it, up to 5. It deals +1d4 necr. per stored soul. As a bonus action, I can release souls to regain 1d10 HP per soul. Once per long rest as a reaction after I deal damage with it, I can release 5 souls to have the target make a DC 15 Con save or die if below 75 HP.\",\n\tdescriptionLong : \"This magical dagger has a +1 bonus on attack and damage rolls made with it. When used to slay a creature, it imprisons its soul. It can store up to five souls. While it holds souls, it deals +1d4 necrotic damage per stored soul. [Siphon Vitality] As a bonus action, I can release one or more soul to regain 1d10 HP per soul released. [Annihilation] As a reaction after I deal damage with it, I can release five souls to have the target of the attack make a DC 15 Constitution saving throw or die if below 75 HP. If the target dies, I can't use this property again until I finish a long rest.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon. Its blade is cruelly serrated, and its hilt resembles a demonic head and wings. Whenever you slay a creature with an attack using the dagger, the creature's soul is imprisoned inside the dagger, and that creature can be restored to life only by a Wish spell. The dagger can hold a maximum of five souls.\\n   For each soul imprisoned in the dagger, your attacks with it deal an extra 1d4 necrotic damage on a hit. While the dagger is within 5 feet of you, your dreams are haunted by whispers from the trapped souls.\\n   The dagger has the following additional properties.\\n   \" + toUni(\"Siphon Vitality\") + \". As a bonus action, you can release any number of stored souls from the dagger to regain 1d10 hit points per soul released.\\n   \" + toUni(\"Annihilation\") + \". If the dagger holds five souls, you can use this property: As a reaction immediately after you hit a creature with the dagger and deal damage to that target, you can release all five souls. If the target now has fewer than 75 hit points, it must succeed on a DC 15 Constitution saving throw or die. If the target dies, you can't use this property again until you finish a long rest.\",\n\tattunement : true,\n\tweight : 1,\n\taction : [[\"bonus action\", \" (Siphon Vitality)\"], [\"reaction\", \" (Annihilation)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*rakdos)(?=.*riteknife).*$/i,\n\t\tname : \"Rakdos Riteknife\",\n\t\tsource : [[\"G\", 180]],\n\t\tdescription : \"Finesse, light, thrown; Imprisons soul on kill (max 5); +1d4 necrotic damage per stored soul\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"Annihilation\"\n}\nMagicItemsList[\"skyblinder staff\"] = {\n\tname : \"Skyblinder Staff\",\n\tsource : [[\"G\", 181]],\n\ttype : \"staff\",\n\trarity : \"uncommon\",\n\tdescription : \"This +1 quarterstaff gives me a +1 bonus on spell attacks. As a reaction when a flying creature I can see within 30 ft makes an attack roll against me, I can cause the staff to flare with light. The attacker has disadvantage on the attack roll, and it must make a DC 15 Con save or be blinded until the start of its next turn.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic quarterstaff. While holding it, you gain a +1 bonus to spell attack rolls.\\n   If a flying creature you can see within 30 feet of you makes an attack roll against you, you can use your reaction to hold the staff aloft and cause it to flare with light. The attacker has disadvantage on the attack roll, and it must succeed on a DC 15 Constitution saving throw or be blinded until the start of its next turn.\",\n\tattunement : true,\n\tweight : 4,\n\taction : [[\"reaction\", \" (vs. flying)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*skyblinder)(?=.*staff).*$/i,\n\t\tname : \"Skyblinder Staff\",\n\t\tsource : [[\"G\", 181]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type == \"attack\") return 1;\n\t\t\t},\n\t\t\t\"While holding the Skyblinder Staff, I have a +1 bonus to spell attack rolls.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"spies' murmur\"] = {\n\tname : \"Spies' Murmur\",\n\tsource : [[\"G\", 181]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This dark metal headpiece is worn curved around the ear. I can communicate telepathically with others that I know within 1 mile who are also wearing a spies' murmur. As a bonus action, I can allow that creature to hear everything I hear for 1 hour. I can end this effect as a bonus action, and it ends if I am incapacitated.\",\n\tdescriptionFull : \"This headpiece, crafted from dark metal, is worn curved around the ear. If you know a creature wearing another Spies' Murmur and that creature is within 1 mile of you, you can communicate telepathically with each other. As a bonus action, you can allow that creature to hear everything you hear for 1 hour. You can end this effect as a bonus action, and it ends if you're incapacitated.\",\n\tattunement : true\n}\nMagicItemsList[\"sunforger\"] = {\n\tname : \"Sunforger\",\n\tsource : [[\"G\", 181]],\n\ttype : \"weapon (warhammer)\",\n\trarity : \"rare\",\n\tdescription : \"This warhammer adds +2 to attack and damage rolls made with it. As an action once per short rest, I can hurl it up to 120 ft to a point I can see where it explodes in a 20-ft radius, dealing 6d6 fire damage to all within, DC 15 Dex save halves. Within 24 hours afterward, I can have it reform in my hand as an action.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon.\\n   As an action, you can hurl the weapon up to 120 feet to a point you can see. When it reaches that point, the weapon vanishes in an explosion, and each creature in a 20-foot-radius sphere centered on that point must make a DC 15 Dexterity saving throw, taking 6d6 fire damage on a failed save, or half as much damage on a successful one. Afterward, you can use an action to cause the weapon to reappear in your empty hand. You can't cause it to explode again until you finish a short or long rest.\\n   If you don't call the weapon back to your hand, it reappears at the point where it exploded when you are no longer attuned to it or when 24 hours have passed.\",\n\tattunement : true,\n\tweight : 2,\n\taction : [[\"action\", \" (hurl/recall)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /sunforger/i,\n\t\tname : \"Sunforger\",\n\t\tsource : [[\"G\", 181]],\n\t\tdescription : \"Versatile (1d10); As action, hurl 120 ft for 20-ft rad 6d6 fire dmg, Dex DC 15 half\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"short rest\",\n\tadditional : \"Hurl\"\n}\nMagicItemsList[\"sword of the paruns\"] = {\n\tname : \"Sword of the Paruns\",\n\tsource : [[\"G\", 181]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"very rare\",\n\tdescription : \"This longsword has a +1 to hit and damage. Once per round after I take an action while holding it, I can use it to have a creature within 60 ft use its reaction to do something based on the action I was taking: [Attack] make one weapon attack, [Dash] move its speed, or [Dodge] gain the benefits of a Dodge action.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon. Additionally, once on each of your turns, you can use one of the following properties if you're holding the sword:\\n \\u2022 Immediately after you use the Attack action to attack with the sword, you can enable one creature within 60 feet of you to use its reaction to make one weapon attack.\\n \\u2022 Immediately after you take the Dash action, you can enable one creature within 60 feet of you to use its reaction to move up to its speed.\\n \\u2022 Immediately after you take the Dodge action, you can enable one creature within 60 feet of you to use its reaction to gain the benefits of the Dodge action.\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*sword)(?=.*paruns).*$/i,\n\t\tname : \"Sword of the Paruns\",\n\t\tsource : [[\"G\", 181]],\n\t\tdescription : \"Versatile (1d10); Have ally in 60 ft do something when I take the Attack, Dash, or Dodge action\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"voyager staff\"] = {\n\tname : \"Voyager Staff\",\n\tsource : [[\"G\", 181]],\n\ttype : \"staff\",\n\trarity : \"very rare\",\n\tdescription : \"This +1 quarterstaff gives me a +1 bonus on spell attacks. It has 10 charges, regaining 1d6+4 expended charges at dawn. If I expend its last charge, roll a d20. On a 1, it vanishes. I can use its charges to cast Banishment (4 ch), Blink (3 ch), Misty Step (2 ch), Passwall (5 ch), and Teleport (7 ch), using my spellcasting ability.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic quarterstaff. While you hold it, you gain a +1 bonus to spell attack rolls.\\n   This staff has 10 charges. While holding it, you can use an action to expend 1 or more of the staff's charges to cast one of the following spells from it, using your spell save DC: Banishment (4 charges), Blink (3 charges), Misty Step (2 charges), Passwall (5 charges), or Teleport (7 charges).\\n   The staff regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff vanishes forever.\",\n\tattunement : true,\n\tweight : 4,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*voyager)(?=.*staff).*$/i,\n\t\tname : \"Voyager Staff\",\n\t\tsource : [[\"G\", 181]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type == \"attack\") return 1;\n\t\t\t},\n\t\t\t\"While holding the Voyager Staff, I have a +1 bonus to spell attack rolls.\"\n\t\t]\n\t},\n\tusages : 10,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6+4\",\n\tspellcastingAbility : \"class\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"2 charges\",\n\t\tspells : [\"misty step\"],\n\t\tselection : [\"misty step\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"blink\"],\n\t\tselection : [\"blink\"],\n\t\tfirstCol : 3\n\t}, {\n\t\tname : \"4 charges\",\n\t\tspells : [\"banishment\"],\n\t\tselection : [\"banishment\"],\n\t\tfirstCol : 4\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"passwall\"],\n\t\tselection : [\"passwall\"],\n\t\tfirstCol : 5\n\t}, {\n\t\tname : \"7 charges\",\n\t\tspells : [\"teleport\"],\n\t\tselection : [\"teleport\"],\n\t\tfirstCol : 7\n\t}]\n}\n"
  },
  {
    "path": "WotC material/pub_20181120_WDotMM.js",
    "content": "var iFileName = \"pub_20181120_WDotMM.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the magic items from the Waterdeep: Dungeon of the Mad Mage adventure to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"WDotMM\"] = {\r\n\tname : \"Waterdeep: Dungeon of the Mad Mage [items]\",\r\n\tabbreviation : \"WDotMM\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/waterdeep-dungeon-of-the-mad-mage\",\r\n\tdate : \"2018/11/20\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"potion of comprehension\"] = {\r\n\tname : \"Potion of Comprehension\",\r\n\tsource : [[\"WDotMM\", 62]],\r\n\ttype : \"potion\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to gain the effect of the Comprehend Languages spell. The consumer understands the literal meaning of any spoken language heard or written text touched and read. This liquid is a clear concoction with bits of salt and soot swirling in it.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain the effect of a comprehend languages spell for 1 hour. This liquid is a clear concoction with bits of salt and soot swirling in it.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"potion of watchful rest\"] = { // contains contributions by Nod_Hero\r\n\tname : \"Potion of Watchful Rest\",\r\n\tsource : [[\"WDotMM\", 62]],\r\n\ttype : \"potion\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as an action, I can drink this weet, amber-colored potion or administer it to another to gain the following benefits for the next 8 hours: magic can't put the consumer to sleep, and they can remain awake during a long rest and still gain its benefits. This brew has no effect on creatures that don't require sleep.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain the following benefits for the next 8 hours: magic can't put you to sleep, and you can remain awake during a long rest and still gain its benefits. This sweet, amber-colored brew has no effect on creatures that don't require sleep, such as elves.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"dagger of blindsight\"] = {\r\n\tname : \"Dagger of Blindsight\",\r\n\tsource : [[\"WDotMM\", 86]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\",\r\n\tdescription : \"This magical dagger has a saw-toothed edge and a black pearl nested in its pommel. While I'm attuned to it, I have blindsight out to a range of 30 ft.\",\r\n\tdescriptionFull : \"This rare magic item requires attunement. A creature attuned to it gains blindsight out to a range of 30 feet. The dagger has a saw-toothed edge and a black pearl nested in its pommel.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tweaponsAdd : {\r\n\t\tselect : [\"Dagger of Blindsight\"],\r\n\t\toptions : [\"Dagger of Blindsight\"]\r\n\t},\r\n\tvision : [[\"Blindsight\", 30]]\r\n}\r\nMagicItemsList[\"professor orb\"] = { // contains contributions by Pengsloth\r\n\tname : \"Professor Orb\",\r\n\tsource : [[\"WDotMM\", 131], [\"RotF\", 315]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"This orb is sentient with the personality of a scholar, but no will of its own. It has Int 18, Wis and Cha of 3d6 each. It knows and reads 4 languages, can see/hear as a human out to 60 ft, and has extensive knowledge of 4 narrow academic subjects (+9 on checks). It knows Mage Hand, which it uses to move around.\",\r\n\tdescriptionFull : \"Each professor orb takes the form of a smooth, solid, 5-pound sphere of smoky gray quartz about the size of a grapefruit. Close examination reveals two or more pinpricks of silver light deep inside the sphere.\\n   A Professor Orb is sentient and has the personality of a scholar. Its alignment is determined by rolling on the alignment table in the \\\"Sentient Magic Items\\\" section in chapter 7 of the Dungeon Master's Guide. Regardless of its disposition, the orb has an Intelligence of 18, and Wisdom and Charisma scores determined by rolling 3d6 for each ability. The orb speaks, reads, and understands four languages, and can see and hear normally out to a range of 60 feet. Unlike most sentient items, the orb has no will of its own and can't initiate a conflict with the creature in possession of it.\\n   A Professor Orb has extensive knowledge of four narrow academic subjects. When making an Intelligence check to recall lore from any of its areas of expertise, the orb has a +9 bonus to its roll (including its Intelligence modifier).\\n   In addition to the knowledge it possesses, a professor orb can cast the Mage Hand cantrip at will. It uses the spell only to transport itself. Its spellcasting ability is Intelligence.\"\r\n}\r\nAddFeatureChoice(MagicItemsList[\"horn of valhalla\"], false, \"Endless Maze (rare; 3d4+3 berserkers; prereq: simple weapons prof.)\", {\r\n\tname : \"Horn of the Endless Maze\",\r\n\tsortname : \"Horn of Valhalla, Endless Maze\",\r\n\tsource : [[\"WDotMM\", 163]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tmagicItemTable : \"G\", // interpretation, made it the same as Brass Horn of Valhalla,\r\n\tdescription : \"As an action once per 7 days, I can blow this horn to summon 3d4+3 minotaurs (use berserker stats) from the Abyss in 60 ft. They return after 1 hour or when they drop to 0 HP. They follow my commands and are friendly to me and my companions if I'm proficient with all simple weapons. Otherwise, they attack me.\",\r\n\tdescriptionFull : \"You can use an action to blow this horn. In response, 3d4+3 warrior spirits from the Abyss appear within 60 feet of you. They look like Minotaurs and use the statistics of a berserker. They return to the Abyss after 1 hour or when they drop to 0 hit points. Once you use the horn, it can't be used again until 7 days have passed.\\n   If you blow the horn without having proficiency with all simple weapons, the summoned berserkers attack you. If you meet the requirement, they are friendly to you and your companions and follow your commands.\"\r\n});\r\nMagicItemsList[\"dodecahedron of doom\"] = {\r\n\tname : \"Dodecahedron of Doom\",\r\n\tsource : [[\"WDotMM\", 174]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This twelve-sided metal die is 1 ft across and bears the numbers 1 through 12 engraved on its pentagonal sides. As an action, I can hurl it up to 60 ft. A random magical effect occurs when the die comes to rest after rolling across the ground for at least 10 ft. See the Notes page for the table of effects.\",\r\n\tdescriptionFull : \"This twelve-sided metal die is 12 inches across and bears the numbers 1 through 12 engraved on its pentagonal sides. The dodecahedron contains arcane clockwork mechanisms that whir and click whenever the die is cast.\\n   The dodecahedron can be hurled up to 60 feet as an action. A random magical effect occurs when the die comes to rest after rolling across the ground for at least 10 feet. If an effect requires a target and no eligible target is within range, nothing happens. Spells cast by the dodecahedron require no components. Roll a d12 and consult the following table to determine the effect:\\n\\n\" + toUni(\"d12\\teffect\") + \"\\n1-2\\tThe dodecahedron explodes and is destroyed. Each creature within 20 feet of the exploding die must make a DC 13 Dexterity saving throw, taking 40 (9d8) force damage on a failed save, or half as much damage on a successful one.\\n3-4\\tThe dodecahedron casts Light on itself. The effect lasts until a creature touches the die.\\n5-6\\tThe dodecahedron casts Ray of Frost (+5 to hit), targeting a random creature within 60 feet of it that doesn't have total cover against the attack.\\n7-8\\tThe dodecahedron casts Shocking Grasp (+5 to hit) on the next creature that touches it.\\n9-10\\tThe dodecahedron casts Darkness on itself. The effect has a duration of 10 minutes.\\n11-12\\tThe next creature to touch the dodecahedron gains 1d10 temporary hit points that last for 1 hour.\",\r\n\tweight : 2,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effect Table\",\r\n\t\tnote : [\r\n\t\t\t\"This twelve-sided metal die is 12 inches across and bears the numbers 1 through 12 engraved on its pentagonal sides. The dodecahedron contains arcane clockwork mechanisms that whir and click whenever the die is cast.\",\r\n\t\t\t\"If an effect requires a target and no eligible target is within range, nothing happens.\",\r\n\t\t\t\"d12\\tEFFECT\",\r\n\t\t\t\"1-2\\tThe dodecahedron explodes and is destroyed. Each creature within 20 feet of the exploding die must make a DC 13 Dexterity saving throw, taking 40 (9d8) force damage on a failed save, or half as much damage on a successful one.\",\r\n\t\t\t\"3-4\\tThe dodecahedron casts light on itself. The effect lasts until a creature touches the die.\",\r\n\t\t\t\"5-6\\tThe dodecahedron casts ray of frost (+5 to hit), targeting a random creature within 60 feet of it that doesn't have total cover against the attack.\",\r\n\t\t\t\"7-8\\tThe dodecahedron casts shocking grasp (+5 to hit) on the next creature that touches it.\",\r\n\t\t\t\"9-10\\tThe dodecahedron casts darkness on itself. The effect has a duration of 10 minutes.\",\r\n\t\t\t\"11-12\\tThe next creature to touch the dodecahedron gains 1d10 temporary hit points that last for 1 hour.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"orb of gonging\"] = { // contains contributions by Pengsloth\r\n\tname : \"Orb of Gonging\",\r\n\tsource : [[\"WDotMM\", 174]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This item is a hollow, 5-inch-diameter orb with notches along its outside bronze rings. As an action, I can align the notches, causing the orb to gong loudly until the notches are no longer aligned. The sounds are spaced 6 seconds apart and can be heard out to a range of 600 ft.\",\r\n\tdescriptionFull : \"This common wondrous item is a hollow, 5-inch-diameter orb that weighs 5 pounds. Its outer shell is composed of notched bronze rings, which can be turned so that the notches line up. Aligning the notches requires an action, and doing so causes the orb to gong loudly until the notches are no longer aligned. The sounds are spaced 6 seconds apart and can be heard out to a range of 600 feet.\"\r\n}\r\nMagicItemsList[\"black crystal tablet\"] = { // contains contributions by Pengsloth\r\n\tname : \"Black Crystal Tablet\",\r\n\tsource : [[\"WDotMM\", 284]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tdescription : \"As an action once per dawn, I can use the tablet to cast Eyebite or Gate, but the latter only links to the Far Realm. When attuning to it, I must make a DC 20 Wisdom saving throw or be afflicted by afflicted long-term madness (see table at SRD 201 or DMG 259).\",\r\n\tdescriptionFull : \"Any creature that attunes to the tablet must make a DC 20 Wisdom saving throw at the end of its next long rest. On a failed save, the creature becomes afflicted with a random form of long-term madness (see \\\"Madness\\\" in chapter 8 of the Dungeon Master's Guide).\\n   As an action, a creature attuned to the Black Crystal Tablet can use it to cast Eyebite or Gate (the portal created by this spell links to the Far Realm only). After the tablet is used to cast a spell, it cannot be used again until the next dawn.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature that has proficiency in the arcana skill\",\r\n\tprereqeval : function(v) { return v.skillProfs.indexOf(\"Arcana\") !== -1; },\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"eyebite\", \"gate\"],\r\n\t\tselection : [\"eyebite\", \"gate\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"gate\" : {\r\n\t\t\tdescription : \"Create a portal to a precise location in the far realm; can transport named crea to me\",\r\n\t\t\tchanges : \"The spell can only connect to the Far Realm.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"helm of the scavenger\"] = {\r\n\tname : \"Helm of the Scavenger\",\r\n\tsource : [[\"WDotMM\", 297]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This ornate chair can be placed on a ship weighing up to 100 tons. It generates artificial gravity and an envelope of fresh air at 70 \\u00B0F around the ship when in the void of space. While attuned to it and sitting in the chair, I can propel the ship, steer it, and see what is happening anywhere on it, but I can't use spell slots.\",\r\n\tdescriptionFull : \"This ornate chair is designed to propel and maneuver a ship through space.\\n   \" + toUni(\"Passive Properties\") + \". The following properties of the helm come into play even when no creature is attuned to it:\\n \\u2022 When placed aboard a vessel weighing between 1 and 100 tons, the helm generates an envelope of fresh air around the ship while it is in the void of space (but not underwater). This envelope extends out from the edges of the hull in all directions for a distance equal in length to the vessel's beam, so that creatures aboard and near the ship can breathe normally in space. The temperature within the air envelope is 70 degrees Fahrenheit.\\n \\u2022 When placed aboard a vessel weighing between 1 and 100 tons, the helm generates an artificial gravity field while the ship is in the void of space, so that creatures can walk on the ship's decks as they normally would. Creatures and objects that fall overboard bob in a gravity plane that extends out from the main deck for a distance equal in length to the vessel's beam.\\n\\n\" + toUni(\"Active Properties\") + \". The sensation of being attuned to the helm is akin to being immersed in warm water. While attuned to the helm, you gain the following abilities while you sit in it:\\n \\u2022 You can use the helm to propel the vessel across or through water and other liquids at a maximum speed in miles per hour equal to your highest-level unexpended spell slot.\\n \\u2022 You can use the helm to propel the vessel through air or space at a maximum speed in miles per hour equal to your highest-level unexpended spell slot \\xD7 10.\\n \\u2022 Provided you have at least one unexpended spell slot, you can steer the vessel, albeit in a somewhat clumsy fashion, in much the same way that oars or a rudder can maneuver a seafaring ship.\\n \\u2022 Whenever you like, you can see what's happening on and around the vessel as though you were standing in a location of your choice aboard it.\\n\\n\" + toUni(\"Drawback\") + \". While attuned to the helm, you cannot expend your own spell slots.\",\r\n\tattunement : true,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"When placed aboard a vessel weighing between 1 and 100 tons, this ornate chair can propel and maneuver a ship through space.\",\r\n\t\t\t\"The following properties of the helm come into play even when no creature is attuned to it:\",\r\n\t\t\t\" \\u2022 The helm generates an envelope of fresh air around the ship while it is in the void of space (but not underwater). This envelope extends out from the edges of the hull in all directions for a distance equal in length to the vessel's beam, so that creatures aboard and near the ship can breathe normally in space. The temperature within the air envelope is 70 degrees Fahrenheit.\",\r\n\t\t\t\" \\u2022 The helm generates an artificial gravity field while the ship is in the void of space, so that creatures can walk on the ship's decks as they normally would. Creatures and objects that fall overboard bob in a gravity plane that extends out from the main deck for a distance equal in length to the vessel's beam.\",\r\n\t\t\t\"The sensation of being attuned to the helm is akin to being immersed in warm water. While attuned to the helm, I gain the following abilities while I sit in it:\",\r\n\t\t\t\" \\u2022 I can use the helm to propel the vessel across or through water and other liquids at a maximum speed in miles per hour equal to my highest-level unexpended spell slot.\",\r\n\t\t\t\" \\u2022 I can use the helm to propel the vessel through air or space at a maximum speed in miles per hour equal to my highest-level unexpended spell slot \\xD7 10.\",\r\n\t\t\t\" \\u2022 Provided I have at least one unexpended spell slot, I can steer the vessel, albeit in a somewhat clumsy fashion, in much the same way that oars or a rudder can maneuver a seafaring ship.\",\r\n\t\t\t\" \\u2022 Whenever I like, I can see what's happening on and around the vessel as though I were standing in a location of my choice aboard it.\",\r\n\t\t\t\" \\u2022 I cannot expend my own spell slots.\"\r\n\t\t]\r\n\t}]\r\n}\r\nMagicItemsList[\"shield of the uven rune\"] = { // contains contributions by Pengsloth\r\n\tname : \"Shield of the Uven Rune\",\r\n\tsource : [[\"WDotMM\", 299]],\r\n\tstoryItemAL : true,\r\n\tdescription : \"I can use the shield as it is, or transfer its runic properties over to a weapon.\",\r\n\tdescriptionFull : \"This shield is made from the scale of an ancient white dragon. It has a rune burned into its outward-facing side. A character who examines the rune and succeeds on a DC 20 Intelligence (History) check recognizes it as an uven (\\\"enemy\\\" in Giant) rune that confers great power.\\n   While holding the shield, you benefit from the following properties.\\n   \" + toUni(\"Winter's Friend\") + \". You are immune to cold damage.\\n   \" + toUni(\"Deadly Rebuke\") + \". Immediately after a creature hits you with a melee attack, you can use your reaction to deal 3d6 necrotic damage to that creature.\\n   \" + toUni(\"Bane\") + \". You can cast the Bane spell from the shield (save DC 17). The spell does not require concentration and lasts for 1 minute. Once you cast the spell from the shield, you can't do so again until you finish a short or long rest.\\n   \" + toUni(\"Gift of Vengeance\") + \". You can transfer the shield's magic to a nonmagical weapon by tracing the uven rune on the weapon with one finger. The transfer takes 8 hours of work that requires the two items to be within 5 feet of each other. At the end, the shield is destroyed, and the rune is etched or burned into the chosen weapon. This weapon becomes a rare magic item that requires attunement. It has the properties of a +1 weapon. The bonus increases to +3 when the weapon is used against one of the following creature types, chosen by you at the time of the magic weapon's creation: aberrations, celestials, constructs, dragons, elementals, fey, fiends, giants, or undead.\",\r\n\tattunement : true,\r\n\tchoices : [\"Shield\", \"Transferred to a weapon\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"shield\" : {\r\n\t\tname : \"Shield of the Uven Rune \",\r\n\t\ttype : \"shield\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This shield made from the scale of a white dragon gives me cold damage immunity. As a reaction when I'm hit by a melee attack, I can deal 3d6 necrotic damage to the attacker. Once per short rest, I can cast Bane (DC 17) needing no concentration. I can do an 8 hour ritual to transfer the rune to a weapon, see book.\",\r\n\t\tweight : 6,\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\",\r\n\t\tadditional : \"Bane\",\r\n\t\tshieldAdd : \"Shield of the Uven Rune\",\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tsavetxt : {\timmune : [\"cold\"] },\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per short rest\",\r\n\t\t\tspells : [\"bane\"],\r\n\t\t\tselection : [\"bane\"],\r\n\t\t\tfirstCol : \"oncesr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"bane\" : {\r\n\t\t\t\tduration : \"1 min\",\r\n\t\t\t\tchanges : \"The spell does not require concentration.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"transferred to a weapon\" : {\r\n\t\tname : \"Uven Rune Weapon\",\r\n\t\ttype : \"weapon (any)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This magic weapon adds a +1 bonus to attack and damage rolls made with it. This bonus increases to +3 when it is used against the creature type, chosen at the time of the magic weapon's creation: aberrations, celestials, constructs, dragons, elementals, fey, fiends, giants, or undead.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\titemName1stPage : [\"suffix\", \"Uven Rune\"]\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (/^(?=.*\\buven\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2 to hit/damage vs. chosen creature type';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Uven Rune\" in a the name of a weapon, it will be treated as the magic weapon Uven Rune Weapon, which has a +1 bonus, or a +3 bonus against its chosen creature type.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif ((/^(?=.*\\buven\\b)(?=.*(rune|runic)).*$/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"blast scepter\"] = { // contains contributions by Pengsloth\r\n\tname : \"Blast Scepter\",\r\n\tsource : [[\"WDotMM\", 310]],\r\n\ttype : \"rod\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"While attuned to the Blast Scepter, I gain resistance to fire and lightning damage and can, as an action, use it to cast Thunderwave as a 4th-level spell (save DC 16) without expending a spell slot. It can be used as an arcane focus.\",\r\n\tdescriptionFull : \"The Blast Scepter can be used as an arcane focus.\\n   Whoever is attuned to the Blast Scepter gains resistance to fire and lightning damage and can, as an action, use it to cast Thunderwave as a 4th-level spell (save DC 16) without expending a spell slot.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Fire\", \"Lightning\"],\r\n\tfixedDC : 16,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will (4th level)\",\r\n\t\tspells : [\"thunderwave\"],\r\n\t\tselection : [\"thunderwave\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"thunderwave\" : {\r\n\t\t\tnameShort : \"Thunderwave (4th level)\",\r\n\t\t\tdescription : \"All crea/obj in area 5d8 Thunder dmg, pushed 10 ft away; save halves and not pushed\",\r\n\t\t\tchanges : \"Cast as if using a 4th-level spell slot\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"chest of preserving\"] = {\r\n\tname : \"Chest of Preserving\",\r\n\tsource : [[\"WDotMM\", 139]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Food and other perishable items do not age or decay while inside this chest. It is 2.5 ft long, 1.5 ft wide, and 1 ft tall with a half-barrel lid. The chest has a lock, which can be picked with thieves' tools and a successful DC 15 Dexterity check. Smashing the lock or any other part of the chest renders it nonmagical.\",\r\n\tdescriptionFull : \"Food and other perishable items do not age or decay while inside a Chest of Preserving. The chest is 2\\xBD feet long, 1\\xBD feet wide, and 1 foot tall with a half-barrel lid. The chest has a lock, which can be picked with thieves' tools and a successful DC 15 Dexterity check. Smashing the lock or any other part of the chest renders it nonmagical.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"circlet of human perfection\"] = { // contains contributions by Pengsloth\r\n\tname : \"Circlet of Human Perfection\",\r\n\tsource : [[\"WDotMM\", 30]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tprerequisite : \"Requires attunement by a humanoid\",\r\n\tdescription : \"Wearing this circlet transforms my appearance into an attractive human of average height and weight, but otherwise doesn't change anything. The circlet chooses the physical characteristics of the form, such as age, gender, skin color, hair color, and voice. Removing the circlet ends the effect.\",\r\n\tdescriptionFull : \"The Circlet of Human Perfection transforms its attuned wearer into an attractive human of average height and weight. The circlet chooses the physical characteristics of the form, such as age, gender, skin color, hair color, and voice. Except for size, the wearer's statistics and racial traits don't change, nor do items worn or carried by the wearer. Removing the circlet ends the effect.\",\r\n\tattunement : true\r\n}\r\nMagicItemsList[\"propeller helm\"] = { // contains contributions by Pengsloth\r\n\tname : \"Propeller Helm\",\r\n\tsource : [[\"WDotMM\", 251]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tmagicItemTable : \"F\",\r\n\tprerequisite : \"Requires attunement by a Small humanoid\",\r\n\tprereqeval : function () { return tDoc.getField(\"Size Category\").currentValueIndices == 4; },\r\n\tdescription : \"While worn, the helm allows me to use an action to cast Levitate, requiring no components. Each time the spell ends, there is a 50 percent chance that the helm loses its magic and becomes nonmagical.\",\r\n\tdescriptionFull : \"While worn, the helm allows its wearer to use an action to cast the Levitate spell, requiring no components. The helm's propeller spins and whirs loudly until the spell ends. Each time the spell ends, there is a 50 percent chance that the helm loses its magic and becomes nonmagical.\",\r\n\tattunement : true,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"tearulai\"] = { // contains contributions by Pengsloth\r\n\tname : \"Tearulai\",\r\n\tsource : [[\"WDotMM\", 76]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"very rare\",\r\n\tstoryItemAL : true,\r\n\tdescription : \"If I roll a 20 on an attack with this sword, it deals +14 slashing damage and there is a 5% chance its lobs off a limb. It deals max damage to objects and has 6 charges, regaining 1d4+2 at dawn, which it can use to cast spells. It can shed light on command and is a sentient weapon with a will of its own, see Notes page.\",\r\n\tdescriptionFull : [\r\n\t\t\"The longsword, Tearulai, is a sentient, neutral good sword of sharpness with an emerald-colored blade and precious gemstones embedded in its hilt and pommel. The sword's magical properties are suppressed until it is removed from Valdemar's skull.\",\r\n\t\t\"Evil creatures can't attune to Tearulai; any evil creature that tries to do so takes 20 psychic damage. The weapon's emerald blade can't be damaged or dulled, and the sword can't be teleported anywhere without its wielder while the two are attuned to one another.\",\r\n\t\ttoUni(\"Sword of Sharpness\") + \". When you attack an object with this magic sword and hit, maximize your weapon damage dice against the target.\",\r\n\t\t\"When you attack a creature with this weapon and roll a 20 on the attack roll, that target takes an extra 14 slashing damage. Then roll another d20. If you roll a 20, you lop off one of the target's limbs, with the effect of such loss determined by the DM. If the creature has no limb to sever, you lop off a portion of its body instead.\",\r\n\t\t\"In addition, you can speak the sword's command to cause the blade to shed bright light in a 10-foot radius and dim light for an additional 10 feet. Speaking the command word again or sheathing the sword puts out the light.\\n\\nNote: According to the SRD, it is an extra 4d6 slashing damage, although this is incorrect.\",\r\n\t\ttoUni(\"Spells\") + \". The sword has 6 charges and regains 1d4 + 2 expended charges daily at dawn. A creature attuned to the sword can use an action and expend 1 or more charges to cast one of the following spells from it without material components: Fly (2 charges), Polymorph (3 charges), or Transport Via Plants (4 charges).\",\r\n\t\ttoUni(\"Sentience\") + \". The sword has an Intelligence of 17, a Wisdom of 12, and a Charisma of 20. It has hearing and truesight out to a range of 120 feet. It communicates telepathically with its attuned wielder and can speak, read, and understand Common, Draconic, Elvish, and Sylvan. In addition, the sword can ascertain the true value of any gemstone brought within 5 feet of it.\",\r\n\t\ttoUni(\"Personality\") + \". Tearulai admires great beauty, music, fine art, and poetry. Vain, the weapon strives to improve its appearance. It craves gemstones and seeks out better ones with which to adorn itself. Most of all, it longs to return to the forests around Myth Drannor, where it was created. If its wielder's goals run counter to its own, Tearulai attempts to take control of its wielder and escape Undermountain, whereupon it can use its Transport Via Plants spell to return whence it came.\"\r\n\t].join(\"\\n   \"),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature of non-evil alignment\",\r\n\tprereqeval : function(v) { return !(/evil/i).test(What(\"Alignment\")); },\r\n\tweight : 3,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /tearulai/i,\r\n\t\tname : \"Tearulai\",\r\n\t\tsource : [[\"WDotMM\", 76]],\r\n\t\tdescription : \"Versatile (1d10); On 20 to hit: +14 damage \\u0026 5% chance to sever limb; Max damage vs. objects\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regain 1d4+2\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"fly\"],\r\n\t\tselection : [\"fly\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"transport via plants\"],\r\n\t\tselection : [\"transport via plants\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Traits and Personality\",\r\n\t\tnote : desc([\r\n\t\t\t\"Tearulai has an emerald-colored blade and precious gemstones embedded in its hilt and pommel. Evil creatures can't attune to it and take 20 psychic damage if they try to do so. Its emerald blade can't be damaged or dulled, and the sword can't be teleported anywhere without its wielder while the two are attuned to one another.\",\r\n\t\t\t\"Objects hit by the sword take maximum damage from it. When I roll a 20 on the attack roll against a creature, that target takes an extra 14 slashing damage. Then roll another d20. If you roll a 20, you lop off one of the target's limbs, with the effect of such loss determined by the DM. If the creature has no limb to sever, you lop off a portion of its body instead.\",\r\n\t\t\t\"I can speak the sword's command to cause the blade to shed bright light in a 10-ft radius and dim light for another 10 ft. The light stops when I sheath the sword or speaking the command word again.\",\r\n\t\t\t\"The sword has 6 charges and regains 1d4 + 2 expended charges daily at dawn. I can use the charges to cast Fly (2 charges), Polymorph (3 charges), or Transport Via Plants (4 charges).\",\r\n\t\t\t\"Tearulai is sentient and has an Intelligence of 17, a Wisdom of 12, and a Charisma of 20. It has hearing and truesight out to a range of 120 ft. It communicates telepathically with its attuned wielder and can speak, read, and understand Common, Draconic, Elvish, and Sylvan. In addition, the sword can ascertain the true value of any gemstone brought within 5 ft of it.\",\r\n\t\t\t\"Tearulai admires great beauty, music, fine art, and poetry. Vain, the weapon strives to improve its appearance. It craves gemstones and seeks out better ones with which to adorn itself. Most of all, it longs to return to the forests around Myth Drannor, where it was created. If its wielder's goals run counter to its own, Tearulai attempts to take control of its wielder and uses Transport Via Plants to return whence it came.\"\r\n\t\t]) + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"vial of stardust\"] = {\r\n\tname : \"Vial of Stardust\",\r\n\tsource : [[\"WDotMM\", 251]],\r\n\ttype : \"potion\",\r\n\trarity : \"unknown\",\r\n\tdescription : \"Once as an action, I can sprinkles the stardust contained in this vial over myself. After I do so, I gain the ability to cast Dream once as an action (spell save DC 15), requiring no components.\",\r\n\tdescriptionFull : \"Any creature that sprinkles the contents of a Vial of Stardust over itself gains the ability to cast the Dream spell once as an action (spell save DC 15), requiring no components.\"\r\n}\r\n\r\n// Beast\r\n// Crow is just a raven under a different name, it has been added to the SRD code as a `nameAlt`\r\n"
  },
  {
    "path": "WotC material/pub_20190521_GoS.js",
    "content": "var iFileName = \"pub_20190521_GoS.js\";\nRequiredSheetVersion(\"13.0.8\");\n// This file adds all material from the Ghosts of Saltmarsh adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"GoS\"] = {\n\tname : \"Ghosts of Saltmarsh [backgrounds, beasts, items]\",\n\tabbreviation : \"GoS\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Anthology\",\n\turl : \"https://dnd.wizards.com/products/ghosts-saltmarsh\",\n\tdate : \"2019/05/21\"\n};\n\nBackgroundList[\"fisher\"] = {\n\tregExpSearch : /fisher/i,\n\tname : \"Fisher\",\n\tsource : [[\"GoS\", 29], [\"ALbackground\", 0]],\n\tskills : [\"History\", \"Survival\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Fishing tackle\", \"\", 4],\n\t\t[\"Net\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Fishing lure or oiled leather boots\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\tfeature : \"Harvest the Water\",\n\ttrait : [\n\t\t\"I am unmoved by the wrath of nature.\",\n\t\t\"My friends are my crew; we sink or float together.\",\n\t\t\"I need long stretches of quiet to clear my head.\",\n\t\t\"Rich folk don't know the satisfaction of hard work.\",\n\t\t\"I laugh heartily, feel deeply, and fear nothing.\",\n\t\t\"I work hard; nature offers no handouts.\",\n\t\t\"I dislike bargaining; state your price and mean it.\",\n\t\t\"Luck favors me, and I take risks others might not.\"\n\t],\n\tideal : [\n\t\t[\"Camaraderie\", \"Camaraderie. Good people make even the longest voyage bearable. (Good)\"],\n\t\t[\"Luck\", \"Luck. Our luck depends on respecting its rules\\u2014now throw this salt over your shoulder. (Lawful)\"],\n\t\t[\"Daring\", \"Daring. The richest bounty goes to those who risk everything. (Chaotic)\"],\n\t\t[\"Plunder\", \"Plunder. Take all that you can and leave nothing for the scavengers. (Evil)\"],\n\t\t[\"Balance\", \"Balance. Do not fish the same spot twice in a row; suppress your greed, and nature will reward you. (Neutral)\"],\n\t\t[\"Hard Work\", \"Hard Work. No wave can move a soul hard at work. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I lost something important in the deep sea, and I intend to find it.\",\n\t\t\"Someone else's greed destroyed my livelihood, and I will be compensated.\",\n\t\t\"I will fish the many famous waters of this land.\",\n\t\t\"The gods saved me during a terrible storm, and I will honor their gift.\",\n\t\t\"My destiny awaits me at the bottom of a particular pond in the Feywild.\",\n\t\t\"I must repay my village's debt.\"\n\t],\n\tflaw : [\n\t\t\"I am judgmental, especially of those I deem homebodies or otherwise lazy.\",\n\t\t\"I become depressed and anxious if I'm away from the sea too long.\",\n\t\t\"I have lived a hard life and find it difficult to empathize with others.\",\n\t\t\"I am inclined to tell long-winded stories at inopportune times.\",\n\t\t\"I work hard, but I play harder.\",\n\t\t\"I am obsessed with catching an elusive aquatic beast, often to the detriment of other pursuits.\"\n\t],\n\textra : [\n\t\t\"Select a Fishing Tale\",\n\t\t\"Lobster wrestling\",\n\t\t\"It dragged the boat\",\n\t\t\"Fins of pure gold\",\n\t\t\"Ghost fish\",\n\t\t\"Nemesis clam\",\n\t\t\"It swallowed the sun\",\n\t\t\"Dive into the abyss\",\n\t\t\"Love story\"\n\t]\n};\nBackgroundFeatureList[\"harvest the water\"] = {\n\tdescription : \"I gain advantage on ability checks made using fishing tackle. If I have access to a body of water that sustains marine life, I can maintain a moderate lifestyle while working as a fisher, and I can catch enough food to feed myself and up to ten other people each day.\",\n\tsource : [[\"GoS\", 29], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"marine\"] = {\n\tregExpSearch : /marine/i,\n\tname : \"Marine\",\n\tsource : [[\"GoS\", 31], [\"ALbackground\", 0]],\n\tskills : [\"Athletics\", \"Survival\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Folded flag with company symbol\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Dagger\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Vehicles (water)\", \"Vehicles (land)\"],\n\tfeature : \"Steady\",\n\ttrait : [\n\t\t\"I speak rarely but mean every word I say.\",\n\t\t\"I laugh loudly and see the humor in stressful situations.\",\n\t\t\"I prefer to solve problems without violence, but I finish fights decisively.\",\n\t\t\"I enjoy being out in nature; poor weather never sours my mood.\",\n\t\t\"I am dependable.\",\n\t\t\"I am always working on some project or other.\",\n\t\t\"I become cantankerous and quiet in the rain.\",\n\t\t\"When the sea is within my sight, my mood is jovial and optimistic.\"\n\t],\n\tideal : [\n\t\t[\"Teamwork\", \"Teamwork. Success depends on cooperation and communication. (Good)\"],\n\t\t[\"Code\", \"Code. The marines' code provides a solution for every problem, and following it is imperative. (Lawful)\"],\n\t\t[\"Embracing\", \"Embracing. Life is messy. Throwing yourself into the worst of it is necessary to get the job done. (Chaotic)\"],\n\t\t[\"Might\", \"Might. The strong train so that they might rule those who are weak. (Evil)\"],\n\t\t[\"Bravery\", \"Bravery. To act when others quake in fear\\u2014this is the essence of the warrior. (Any)\"],\n\t\t[\"Perseverance\", \"Perseverance. No injury or obstacle can turn me from my goal. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I face danger and evil to offset an unredeemable act in my past.\",\n\t\t\"I. Will. Finish. The. Job.\",\n\t\t\"I must set an example of hope for those who have given up.\",\n\t\t\"I'm searching for a fellow marine captured by an elusive enemy.\",\n\t\t\"Fear leads to tyranny, and both must be eradicated.\",\n\t\t\"My commander betrayed my unit, and I will have revenge.\"\n\t],\n\tflaw : [\n\t\t\"I grow combative and unpredictable when I drink.\",\n\t\t\"I find civilian life difficult and struggle to say the right thing in social situations.\",\n\t\t\"My intensity can drive others away.\",\n\t\t\"I hold grudges and have difficulty forgiving others.\",\n\t\t\"I become irrational when innocent people are hurt.\",\n\t\t\"I sometimes stay up all night listening to the ghosts of my fallen enemies.\"\n\t],\n\textra : [\n\t\t\"Select a Hardship Endured\",\n\t\t\"Nearly drowned\",\n\t\t\"Captured\",\n\t\t\"Sacrifice\",\n\t\t\"Juggernaut\",\n\t\t\"Stowaway\",\n\t\t\"Leave none behind\"\n\t]\n};\nBackgroundFeatureList[\"steady\"] = {\n\tdescription : \"I can move twice the normal amount of time (up to 16 hours) each day before being subject to the effect of a forced march and need to make Constitution saves at the end of each extra hour to avoid gaining a level of exhaustion. Additionally, I can automatically find a safe route to land a boat on shore, provided such a route exists.\",\n\tsource : [[\"GoS\", 31], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"shipwright\"] = {\n\tregExpSearch : /shipwright/i,\n\tname : \"Shipwright\",\n\tsource : [[\"GoS\", 33], [\"ALbackground\", 0]],\n\tskills : [\"History\", \"Perception\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Blank book\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen (quill)\", \"\", \"\"],\n\t\t[\"Carpenter's tools\", \"\", 8]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Carpenter's tools\", \"Vehicles (water)\"],\n\tfeature : \"I'll Patch It!\",\n\ttrait : [\n\t\t\"I love talking and being heard more than I like to listen.\",\n\t\t\"I'm extremely fond of puzzles.\",\n\t\t\"I thrive under pressure.\",\n\t\t\"I love sketching and designing objects, especially boats.\",\n\t\t\"I'm not afraid of hard work\\u2014in fact, I prefer it.\",\n\t\t\"A pipe, an ale, and the smell of the sea: paradise.\",\n\t\t\"I have an endless supply of cautionary tales related to the sea.\",\n\t\t\"I don't mind getting my hands dirty.\"\n\t],\n\tideal : [\n\t\t[\"Crew\", \"Crew. If everyone on deck pitches in, we'll never sink. (Good)\"],\n\t\t[\"Careful Lines\", \"Careful Lines. A ship must be balanced according to the laws of the universe. (Lawful)\"],\n\t\t[\"Invention\", \"Invention. Make what you need out of whatever is at hand. (Chaotic)\"],\n\t\t[\"Perfection\", \"Perfection. To measure a being and find it lacking is the greatest disappointment. (Evil)\"],\n\t\t[\"Reflection\", \"Reflection. Muddied water always clears in time. (Any)\"],\n\t\t[\"Hope\", \"Hope. The horizon at sea holds the greatest promise. (Any)\"]\n\t],\n\tbond : [\n\t\t\"I must visit all the oceans of the world and behold the ships that sail there.\",\n\t\t\"Much of the treasure I claim will be used to enrich my community.\",\n\t\t\"I must find a kind of wood rumored to possess magical qualities.\",\n\t\t\"I repair broken things to redeem what's broken in myself.\",\n\t\t\"I will craft a boat capable of sailing through the most dangerous of storms.\",\n\t\t\"A kraken destroyed my masterpiece; its teeth shall adorn my hearth.\"\n\t],\n\tflaw : [\n\t\t\"I don't know when to throw something away. You never know when it might be useful again.\",\n\t\t\"I get frustrated to the point of distraction by shoddy craftsmanship.\",\n\t\t\"Though I am an excellent crafter, my work tends to look as though it belongs on a ship.\",\n\t\t\"I am so obsessed with sketching my ideas for elaborate inventions that I sometimes forget little thing like eating and sleeping.\",\n\t\t\"I'm judgmental of those who are not skilled with tools of some kind.\",\n\t\t\"I sometimes take things that don't belong to me, especially if they are very well made.\"\n\t],\n\textra : [\n\t\t\"Select a Sea's Influence\",\n\t\t\"Grand designs\",\n\t\t\"Solid and sound\",\n\t\t\"Favored\",\n\t\t\"Master of armaments\",\n\t\t\"Low places\",\n\t\t\"Mysteries of the deep\"\n\t]\n};\nBackgroundFeatureList[\"i'll patch it!\"] = {\n\tdescription : \"Provided I have carpenter's tools and wood, I can perform repairs on a water vehicle. When I use this ability, I restore a number of hit points to the hull of a water vehicle equal to 5\\xD7 my proficiency modifier. A vehicle cannot be patched by me in this way again until after it has been pulled ashore and fully repaired.\",\n\tsource : [[\"GoS\", 33], [\"ALbackground\", 0]]\n};\n\nBackgroundList[\"smuggler\"] = {\n\tregExpSearch : /smuggler/i,\n\tname : \"Smuggler\",\n\tsource : [[\"GoS\", 34], [\"ALbackground\", 0]],\n\tskills : [\"Athletics\", \"Deception\"],\n\tgold : 15,\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Leather boots or vest\", \"\", 1],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\ttoolProfs : [\"Vehicles (water)\"],\n\tfeature : \"Down Low\",\n\ttrait : [\n\t\t\"I love being on the water but hate fishing.\",\n\t\t\"I think of everything in terms of monetary value.\",\n\t\t\"I never stop smiling.\",\n\t\t\"Nothing rattles me; I have a lie for every occasion.\",\n\t\t\"I love gold but won't cheat a friend.\",\n\t\t\"I enjoy doing things others believe to be impossible.\",\n\t\t\"I become wistful when I see the sun rise over the ocean.\",\n\t\t\"I am no common criminal; I am a mastermind.\"\n\t],\n\tideal : [\n\t\t[\"Wealth\", \"Wealth. Heaps of coins in a secure vault is all I dream of. (Any)\"],\n\t\t[\"Smuggler's Code\", \"Smuggler's Code. I uphold the unwritten rules of the smugglers, who do not cheat one another or directly harm innocents. (Lawful)\"],\n\t\t[\"All for a Coin\", \"All for a Coin. I'll do nearly anything if it means I turn a profit. (Evil)\"],\n\t\t[\"Peace and Prosperity\", \"Peace and Prosperity. I smuggle only to achieve a greater goal that benefits my community. (Good)\"],\n\t\t[\"People\", \"People. For all my many lies, I place a high value on friendship. (Any)\"],\n\t\t[\"Daring\", \"Daring. I am most happy when risking everything. (Any)\"]\n\t],\n\tbond : [\n\t\t\"My vessel was stolen from me, and I burn with the desire to recover it.\",\n\t\t\"I intend to become the leader of the network of smugglers that I belong to.\",\n\t\t\"I owe a debt that cannot be repaid in gold.\",\n\t\t\"After one last job, I will retire from the business.\",\n\t\t\"I was tricked by a fellow smuggler who stole something precious from me. I will find that thief.\",\n\t\t\"I give most of my profits to a charitable cause, and I don't like to brag about it.\"\n\t],\n\tflaw : [\n\t\t\"Lying is reflexive, and I sometimes engage in it without realizing.\",\n\t\t\"I tend to assess my relationships in terms of profit and loss.\",\n\t\t\"I believe everyone has a price and am cynical toward those who present themselves as virtuous.\",\n\t\t\"I struggle to trust the words of others.\",\n\t\t\"Few people know the real me.\",\n\t\t\"Though I act charming, I feel nothing for others and don't know what friendship is.\"\n\t],\n\textra : [\n\t\t\"Select a Claim to Fame\",\n\t\t\"Spirit of the whale\",\n\t\t\"Cart and sword\",\n\t\t\"The recruit\",\n\t\t\"River of shadows\",\n\t\t\"Gold-hearted\",\n\t\t\"Playing both sides\"\n\t]\n};\nBackgroundFeatureList[\"down low\"] = {\n\tdescription : \"I am acquainted with a network of smugglers who are willing to help me out of tight spots. While in a particular town, city, or other similarly sized community, my companions and I can stay for free in safe houses. Safe houses provide a poor lifestyle. While staying at a safe house, I can choose to keep my presence (and that of my companions) a secret.\",\n\tsource : [[\"GoS\", 34], [\"ALbackground\", 0]]\n};\n\nMagicItemsList[\"charm of plant command\"] = {\n\tname : \"Charm of Plant Command\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tmagicItemTable : \"C\",\n\tdescription : \"This fist-sized charm is made from a bundle of dried plant stems wrapped in silver thread. It has 3 charges, regain all at dawn. As an action, I can expend 1 charge to cast Speak With Plants. While that spell lasts, I also have adv. on Charisma checks made to influence the behavior, demeanor, and attitude of plants.\",\n\tdescriptionFull : \"This fist-sized charm is made from a bundle of dried plant stems wrapped in silver thread. Hung on a leather thong, it is typically worn around the neck or attached to a belt.\\n   This charm has 3 charges. While you bear the charm, you can expend 1 charge as an action to cast the Speak With Plants spell. For the duration of the spell, you also have advantage on Charisma checks made to influence the behavior, demeanor, and attitude of plants. The charm regains all expended charges at dawn each day.\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"speak with plants\"],\n\t\tselection : [\"speak with plants\"],\n\t\tfirstCol : 1\n\t}],\n\tspellChanges : {\n\t\t\"speak with plants\" : {\n\t\t\tdescription : \"Talk with plants about previous 24h; plants to difficult terrain or vice versa; adv. Cha checks vs. plants\",\n\t\t\tchanges : \"For the duration of the spell, I also have advantage on Charisma checks made to influence the behavior, demeanor, and attitude of plants.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"cursed luckstone\"] = {\n\tname : \"Cursed Luckstone\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"C\",\n\tdescription : \"This flat, gray-and-black river stone is inscribed with an arcane symbol. It is cursed and attuning to it curses me. Once per dawn while it is on my person, I can gain adv. on one ability check of my choice, but disadv. on my next two ability checks. Discarding the stone will cause it to teleport back into my pocket.\",\n\tdescriptionFull : \"This flat, gray-and-black river stone is inscribed with an unknown arcane symbol and feels cool to the touch. While carrying the stone, you can gain advantage on one ability check of your choice. The stone can't be used this way again until the next dawn.\\n   \" + toUni(\"Curse\") + \"This item is cursed. Attuning to it curses you until you are targeted by a remove curse spell or similar magic. As long as you remain cursed, you cannot discard the stone, which immediately teleports back into your pocket or pack. After you use the stone's magic, your next two ability checks are made with disadvantage.\",\n\tattunement : true,\n\tusages : 1,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"helm of underwater action\"] = {\n\tname : \"Helm of Underwater Action\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tmagicItemTable : \"F\",\n\tdescription : \"While wearing this brass helmet, I can breathe underwater, I gain darkvision with a range of 60 ft, and I gain a swimming speed of 30 ft.\",\n\tdescriptionFull : \"While wearing this brass helmet, you can breathe underwater, you gain darkvision with a range of 60 feet, and you gain a swimming speed of 30 feet.\",\n\tattunement : true,\n\tweight : 1,\n\tvision : [[\"Darkvision\", \"fixed 60\"]],\n\tspeed : { swim : { spd : 30, enc : 20 } }\n}\nMagicItemsList[\"pipe of remembrance\"] = {\n\tname : \"Pipe of Remembrance\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Smoke exhaled from this delicate wooden pipe with a river stone bowl does not dissipate, but lingers around. Once per dawn, I can have that smoke form moving shapes after 10 minutes. The shapes reenact my most impressive and heroic achievements realistically for 5 minutes, after which the smoke dissipates.\",\n\tdescriptionFull : \"This long, delicate wooden pipe features a bowl made from smooth river stone. When the pipe is lit, smoke exhaled from it does not dissipate, instead lingering around the bearer. After 10 minutes, the smoke forms moving shapes that reenact the bearer's most impressive and heroic achievements for 5 minutes. When this realistic performance is complete, the smoke dissipates. The pipe can't be used this way again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\"\n}\nMagicItemsList[\"pressure capsule\"] = {\n\tname : \"Pressure Capsule\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Consuming this capsule of beeswax, sand, and enchanted water plants will prevent the effects of swimming at depths greater than 100 ft for 1 hour. Thus, a creature without a swimming speed does not multiply the time spend swimming at depth for the purpose of determining exhaustion.\",\n\tdescriptionFull : \"This small capsule is made of beeswax blended with sand and a variety of enchanted water plants. A creature who consumes a pressure capsule ignores the effects of swimming at depths greater than 100 feet for 1 hour (see \\\"Unusual Environments\\\" in chapter 5 of the Dungeon Master's Guide).\" // addition of 1 hour duration from AL content catalogue v8.08\n}\nMagicItemsList[\"sekolahian worshiping statuette\"] = {\n\tname : \"Sekolahian Worshiping Statuette\",\n\tsource : [[\"GoS\", 229]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"Skillfully carved from sandstone, this 1-ft-tall statuette depicts a shark twisting through the water with its mouth open. Once per hour when a Tiny sea-dwelling animal is within 1 inch of the statuette's mouth, the shark flashes to life and deals 1 piercing damage to it.\",\n\tdescriptionFull : \"Skillfully carved from sandstone, this 1-foot-tall statuette depicts a shark twisting through the water with its mouth open. If any Tiny sea-dwelling animal is within 1 inch of the statuette's mouth, the shark flashes to life and deals 1 piercing damage to it. The shark can deal damage in this way no more than once per hour.\"\n}\n\n// Creatures [Sea Lion removed, because it was completely rewritten as a monstrosity according to 2020 errata https://media.wizards.com/2020/dnd/downloads/GoS-Errata.pdf ]\nCreatureList[\"fish\"] = {\n\tname : \"Fish\",\n\tsource : [[\"GoS\", 215]],\n\tsize : 5,\n\ttype : \"Beast\",\n\tcompanion : \"familiar\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 1,\n\thd : [1, 4],\n\tspeed : \"swim 40 ft\",\n\tscores : [2, 16, 9, 1, 7, 2],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 8,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The fish can breathe only underwater.\"\n\t}]\n}\nCreatureList[\"giant white moray eel\"] = {\n\tname : \"Giant White Moray Eel\",\n\tnameAlt : [\"Eel, Giant White Moray\"],\n\tsource : [[\"GoS\", 216]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 60,\n\thd : [8, 12],\n\tspeed : \"swim 40 ft\",\n\tscores : [19, 14, 12, 1, 10, 3],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 4\n\t},\n\tsenses : \"Blindsight 10 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}]\n}\nCreatureList[\"giant coral snake\"] = {\n\tname : \"Giant Coral Snake\",\n\tnameAlt : [\"Snake, Giant Coral\"],\n\tsource : [[\"GoS\", 236]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 90,\n\thd : [12, 10],\n\tspeed : \"30 ft, swim 30 ft\",\n\tscores : [12, 16, 14, 2, 10, 3],\n\tskills : {\n\t\t\"perception\" : 2\n\t},\n\tsenses : \"Blindsight 10 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [2, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Target DC 12 Con save or stunned until end of its next turn and short-term madness for 10 min\"\n\t}]\n}\nCreatureList[\"giant sea eel\"] = {\n\tname : \"Giant Sea Eel\",\n\tnameAlt : [\"Eel, Giant Sea\"],\n\tsource : [[\"GoS\", 237]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 19,\n\thd : [3, 10],\n\tspeed : \"swim 40 ft\",\n\tscores : [11, 14, 12, 2, 10, 7],\n\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 4\n\t},\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 12,\n\tchallengeRating : \"1/2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [2, 10, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The eel can breathe only underwater.\"\n\t}]\n}\n"
  },
  {
    "path": "WotC material/pub_20190618_AcqInc.js",
    "content": "var iFileName = \"pub_20190618_AcqInc.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds all material from the Acquisitions Incorporated book to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"AcqInc\"] = {\n\tname : \"Acquisitions Incorporated\",\n\tabbreviation : \"AcqInc\",\n\tabbreviationSpellsheet : \"AI\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Penny Arcade\",\n\turl : \"https://dnd.wizards.com/products/acquisitions-incorporated\",\n\tdate : \"2019/06/18\"\n};\n\nBackgroundList[\"celebrity adventurer's scion\"] = {\n\tregExpSearch : /^(?=.*celebrity)(?=.*adventurer)(?=.*scion).*$/i,\n\tname : \"Celebrity Adventurer's Scion\",\n\tsource : [[\"AcqInc\", 48]],\n\tskills : [\"Perception\", \"Performance\"],\n\tgold : 30,\n\tequipleft : [\n\t\t[\"Disguise kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [2],\n\ttoolProfs : [\"Disguise kit\"],\n\tfeature : \"Name Dropping\",\n\ttrait : [\n\t\t\"I will never get out of my famous parent's shadow, and no one else will ever understand this burden.\",\n\t\t\"I've seen enough of the adventuring life to have realistic expectations and empathy for my peers.\",\n\t\t\"Living up to my legacy will be difficult, but I'm going to do it.\",\n\t\t\"I'm used to the very best in life, and that's a hard habit to break.\",\n\t\t\"My parent taught me a sense of duty. I strive to uphold it, even when the odds are against me.\",\n\t\t\"No one can fake a smile, a handshake, or an interested nod like I can.\",\n\t\t\"I've been part of the adventuring life since I was old enough to walk. Let me explain a few things to you.\",\n\t\t\"No risk is too great for the rewards of defeating my enemies... and taking their stuff.\"\n\t],\n\tideal : [\n\t\t[\"Power\", \"Power. The only way to get ahead in this world is to attain power and hold onto it with all your might. (Evil)\"],\n\t\t[\"Peace\", \"Peace. Those who can find or make peace in the chaotic world around them have everything. (Lawful)\"],\n\t\t[\"Fame\", \"Fame. I've seen what fame can bring. And I'll do anything to get all that for myself. (Neutral)\"],\n\t\t[\"Training\", \"Training. Hard work, sacrifice, and training lead to success\\u2014and eventually to perfection. (Any)\"],\n\t\t[\"Anonymity\", \"Anonymity. I want to be successful. And alone. With lots of guards and wards between me and everyone else in the world. (Any)\"],\n\t\t[\"Wisdom\", \"Wisdom. Material wealth is an illusion. Wisdom is the real treasure. (Good)\"]\n\t],\n\tbond : [\n\t\t\"While my parent was out adventuring, a servant raised me, and I care about that person more than anyone.\",\n\t\t\"I consider every member of my parent's former adventuring party to be family.\",\n\t\t\"Despite their absences, my famous parent was kind and generous. I love them and want to make them proud.\",\n\t\t\"My parent once brought a cursed magic item home. It is my obsession.\",\n\t\t\"My childhood home holds all my best memories, and its upkeep is my primary concern.\",\n\t\t\"Growing up, I had an imaginary friend I could always count on. That friend is still with me.\"\n\t],\n\tflaw : [\n\t\t\"You don't know what I'm going through. You never can.\",\n\t\t\"You. Fetch my cloak. And maybe rub my feet for a while.\",\n\t\t\"My comrades are brave, but I must defeat this threat alone to prove my worth.\",\n\t\t\"Oh, yeah, that spell? Named after my parent's best friend. Let me tell you about them.\",\n\t\t\"My best days are behind me. Ahead lies only toil, pain, and death.\",\n\t\t\"You have to look out for yourself. No one else will.\"\n\t]\n};\nBackgroundFeatureList[\"name dropping\"] = {\n\tdescription : \"I know and have met any number of powerful people across the land, and some might even remember me. I might be able to wrangle minor assistance from a major figure in the campaign, at the DM's discretion. Additionally, the common folk treat me with deference, and my heritage and the stories I tell might be good for a free meal or a place to sleep.\",\n\tsource : [[\"AcqInc\", 48]]\n};\n\nBackgroundList[\"failed merchant\"] = {\n\tregExpSearch : /^(?=.*failed)(?=.*merchant).*$/i,\n\tname : \"Failed Merchant\",\n\tsource : [[\"AcqInc\", 49]],\n\tskills : [\"Investigation\", \"Persuasion\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Merchant's scale\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Supply Chain\",\n\ttrait : [\n\t\t\"I didn't have the cutthroat attitude necessary to succeed. I won't make that mistake again.\",\n\t\t\"Even my competitors said I was affable and talented. Those traits should serve me well.\",\n\t\t\"To prosper, you have to be in control.\",\n\t\t\"The customer is always right.\",\n\t\t\"I was cutting corners and breaking deals to maximize profit. That's why I failed.\",\n\t\t\"When I get an idea, I am single-minded in its execution\\u2014even if it's a terrible idea.\",\n\t\t\"If I can be everyone's friend, I'll always have support.\",\n\t\t\"My heart wasn't in being a merchant, so I failed. I'm not all that keen on adventuring either, but I need the money.\"\n\t],\n\tideal : [\n\t\t[\"Survival\", \"Survival. Where there's life, there's hope. If I remain alive and flexible, I can succeed. (Any)\"],\n\t\t[\"Generosity\", \"Generosity. People helped me when I was down. Now that I'm back on my feet, I'll pay it forward. (Good)\"],\n\t\t[\"Excitement\", \"Excitement. Caution got me nowhere in my previous business. I'm not going to let it hold me back now. (Chaotic)\"],\n\t\t[\"Wealth\", \"Wealth. With enough coin, I can buy comfort, power, knowledge, and even eternal life. Nothing will stand between me and money. (Evil)\"],\n\t\t[\"Stability\", \"Stability. The mercantile trade was too chaotic for me. I need a nice stable profession, like adventuring. (Lawful)\"],\n\t\t[\"Redemption\", \"Redemption. Too many people consider me a failure. So I need to prove them wrong. (Any)\"]\n\t],\n\tbond : [\n\t\t\"My family means everything to me. I failed them before, and I must not do so again.\",\n\t\t\"My church provides a connection to my god, so I must ensure that it is protected and funded.\",\n\t\t\"My former business partner fell ill, and then our business failed. Part of my new venture involves earning enough to take care of their family.\",\n\t\t\"If I take care of my possessions, they'll take care of me. People come and go, but a weapon or a wand is something you can always rely on.\",\n\t\t\"Although my business failed, the people of my community were kind to me. I'll do everything in my power to protect them.\",\n\t\t\"I owe a dangerous person a lot of money. As long as they're happy, they let my debt rest unpaid.\"\n\t],\n\tflaw : [\n\t\t\"Why spend gold here when you can buy the same thing for copper in the next town?\",\n\t\t\"I must have the best of everything. Like, right now.\",\n\t\t\"You haven't heard of me? I'm sure that's because of your ignorance and low breeding.\",\n\t\t\"I failed, but I'm awesome. So when anyone else is successful, it must be because of nepotism, dishonesty, or dumb luck.\",\n\t\t\"I find that most people are trustworthy. Hey, where's my belt pouch?\",\n\t\t\"Nothing gets between me and danger except my fellow adventurers. So I'll be sure to put them there.\"\n\t]\n};\nBackgroundFeatureList[\"supply chain\"] = {\n\tdescription : \"From my time as a merchant, I retain connections with wholesalers, suppliers, and other merchants and entrepreneurs. I can call upon these connections when looking for items or information.\",\n\tsource : [[\"AcqInc\", 49]]\n};\n\nBackgroundList[\"gambler\"] = {\n\tregExpSearch : /gambler/i,\n\tname : \"Gambler\",\n\tsource : [[\"AcqInc\", 49]],\n\tskills : [\"Deception\", \"Insight\"],\n\tgold : 15,\n\tequipleft : [\n\t\t[\"Type of gaming set\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Lucky charm\", \"\", \"\"],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tfeature : \"Never Tell Me the Odds\",\n\ttrait : [\n\t\t\"I plan for every contingency. Leave nothing to chance!\",\n\t\t\"Every copper wants to be a silver. Each bet is an opportunity.\",\n\t\t\"I'm one of Lady Luck's favored. Anything I try is destined to succeed.\",\n\t\t\"I've lost so much to gambling that I refuse to spend money on anything anymore.\",\n\t\t\"Nothing is certain. Planning is a coward's act.\",\n\t\t\"I can't be sure who I've swindled, cheated, or defeated, so I keep a low profile in public.\",\n\t\t\"The perfect bet is out there somewhere. I just have to keep my eyes open.\",\n\t\t\"I have beaten my addiction, but all it takes is one weak moment and I'll be back at the card table.\"\n\t],\n\tideal : [\n\t\t[\"Knowledge\", \"Knowledge. Knowledge is power, and knowing which horse to back is the key to success. (Any)\"],\n\t\t[\"Fate\", \"Fate. Whatever happens is fated, regardless of any planning or striving. (Lawful)\"],\n\t\t[\"Bravery\", \"Bravery. If you want to succeed, you have to take risks. (Chaotic)\"],\n\t\t[\"Survival\", \"Survival. You can't win if you're dead. Live to fight another day\\u2014when the odds might be more in your favor. (Any)\"],\n\t\t[\"Reliability\", \"Reliability. When I was in need, I was able to rely on others. Now I want to be the one others rely on. (Good)\"],\n\t\t[\"Victory\", \"Victory. Winning is the real measure of a person. In the end, the only thing that matters is the scoreboard. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"One person in particular owes me a lot of money, and I need to keep them alive if I want to be repaid.\",\n\t\t\"I'm loyal to the friend or family member who taught me how to gamble.\",\n\t\t\"The person who saved me from my gambling addiction is the only reason I'm alive today.\",\n\t\t\"A patron once fronted me money in exchange for a percentage of my winnings. I owe them a debt of gratitude. And a lot of cash.\",\n\t\t\"A criminal syndicate I once played for isn't happy I left the game, and its enforcers are looking for me.\",\n\t\t\"Urchins once helped me find marks for my games. Now I'm driven to help them escape the streets.\"\n\t],\n\tflaw : [\n\t\t\"I don't know when to quit. Especially when everyone else is telling me to.\",\n\t\t\"I save my sympathy for my friends, and I have no friends.\",\n\t\t\"You think we're in trouble now? Let me tell you how bad things are likely to get!\",\n\t\t\"You can loan me a little, right? I've got a sure thing. I'll double your money, guaranteed.\",\n\t\t\"I was once a terribly flawed person, like you. Let me tell you how you can save yourself.\",\n\t\t\"I'm a great gambler. I'm just bad at math and logic.\"\n\t]\n};\nBackgroundFeatureList[\"never tell me the odds\"] = {\n\tdescription : \"Odds and probability are my bread and butter. During downtime activities that involve games of chance or figuring odds on the best plan, I can get a solid sense of which choice is likely the best one and which opportunities seem too good to be true, at the DM's determination.\",\n\tsource : [[\"AcqInc\", 50]]\n};\n\nBackgroundList[\"plaintiff\"] = {\n\tregExpSearch : /plaintiff/i,\n\tname : \"Plaintiff\",\n\tsource : [[\"AcqInc\", 50]],\n\tskills : [\"Medicine\", \"Persuasion\"],\n\tgold : 20,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Legalese\",\n\ttrait : [\n\t\t\"I can't believe I have a chance to join Acquisitions Incorporated! The fun I'm going to have!\",\n\t\t\"I've been wronged my entire life, and the world owes me.\",\n\t\t\"I have always tried to make the best of a bad situation.\",\n\t\t\"The law doesn't protect the honest and the hard working. I'm going to do whatever needs to be done to make things right.\",\n\t\t\"I'm always in the wrong place at the wrong time.\",\n\t\t\"My superiors are smarter and wiser than I am. I do what I'm told.\",\n\t\t\"Never pass up the opportunity to make an easy bit of coin. That's my motto.\",\n\t\t\"I'm beginning to feel like the gods are not on my side.\"\n\t],\n\tideal : [\n\t\t[\"Justice\", \"Justice. Those who break the law need to answer for their crimes. (Lawful)\"],\n\t\t[\"Freedom\", \"Freedom. People must have the freedom to do what they want and pursue their dreams. (Chaotic)\"],\n\t\t[\"Greed\", \"Greed. Everyone I see is getting theirs, so I'm surely going to get mine. (Evil)\"],\n\t\t[\"Chaos\", \"Chaos. You're out of order! And you're out of order! This whole realm is out of order! (Chaotic)\"],\n\t\t[\"Humility\", \"Humility. I'm just a small part of a larger whole. So is everyone else. (Neutral)\"],\n\t\t[\"Responsibility\", \"Responsibility. We all have our roles to play. I'll hold up my end of the bargain. (Any)\"]\n\t],\n\tbond : [\n\t\t\"Others hurt in the same accident that hurt me are my new family. I'll make sure they're taken care of.\",\n\t\t\"The rulers of this place were kind to me, and they have my lifelong devotion.\",\n\t\t\"My parents worry about me, but I'll make them proud.\",\n\t\t\"The only bond that matters is the one holding my money pouch to my belt.\",\n\t\t\"The other new hires at Acquisitions Incorporated are my allies. We have each other's backs.\",\n\t\t\"My legal counsel is my best friend. I owe all my forthcoming opportunities to their hard work.\"\n\t],\n\tflaw : [\n\t\t\"The person who gains the most reward for the least effort wins.\",\n\t\t\"Three magic beans for just one cow? What a deal!\",\n\t\t\"I have only one vice, but it controls my life.\",\n\t\t\"Sleep is for the weak. We need to keep training more if we're going to be ready for the challenges ahead.\",\n\t\t\"Until my songs are sung in every tavern in this realm, I won't be satisfied.\",\n\t\t\"If people find me unpleasant, that's their problem.\"\n\t]\n};\nBackgroundFeatureList[\"legalese\"] = {\n\tdescription : \"My experience with the local legal system has given me a firm knowledge of its ins and outs. Even when the law is not on my side, I can use complex terms like \\\"ex injuria jus non oritur\\\" to frighten people into thinking I know what I'm talking about. I might be able to intimidate or deceive folks who don't know any better to get favors or special treatment.\",\n\tsource : [[\"AcqInc\", 50]]\n};\n\nBackgroundList[\"rival intern\"] = {\n\tregExpSearch : /^(?=.*rival)(?=.*intern).*$/i,\n\tname : \"Rival Intern\",\n\tsource : [[\"AcqInc\", 51]],\n\tskills : [\"History\", \"Investigation\"],\n\tgold : 10,\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Ledger from prev. employer\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tfeature : \"Inside Informant\",\n\ttrait : [\n\t\t\"My previous employer didn't respect me, and now I'll do whatever I can to gain respect.\",\n\t\t\"The job is important, but the relationships I forge with my coworkers are even more so.\",\n\t\t\"The job is everything to me. Who needs relaxation, hobbies, and a social life?\",\n\t\t\"I know I'm not the best and brightest, but if I put my best self forward, I can overcome anything.\",\n\t\t\"My former boss was an idiot. So was my boss before that. And before that. I'm sure those were all coincidences.\",\n\t\t\"This company is so much better than my previous one. It will always be the best until they stop paying me.\",\n\t\t\"I know this dagger belongs to the company, but I'm sure they won't miss it. Or this flask. Or this armor.\",\n\t\t\"It's only a matter of time before I'll be upper management. I just have to kiss up to my superiors and kick down those beneath me.\"\n\t],\n\tideal : [\n\t\t[\"Advancement\", \"Advancement. Money and power can be gained more easily within an organization. I plan to gain as much as possible. (Evil)\"],\n\t\t[\"Structure\", \"Structure. Life goes much more smoothly when you follow the rules and work within a system. (Lawful)\"],\n\t\t[\"Uncertainty\", \"Uncertainty. The more chaos that swirls around me, the more opportunities I can find to profit. (Chaotic)\"],\n\t\t[\"Justice\", \"Justice. I can't stand people being treated unjustly. I do whatever it takes to stop injustice and those who flout the law. (Lawful)\"],\n\t\t[\"Pleasure\", \"Pleasure. What's the use of working hard and making money if you can't enjoy the finer things in life? (Any)\"],\n\t\t[\"Power\", \"Power. Money is fine, but real power means never having to say you're sorry. (Evil)\"]\n\t],\n\tbond : [\n\t\t\"I have a family member in need. I consider them in everything I do.\",\n\t\t\"My peers keep me grounded.\",\n\t\t\"My past mistakes cost someone else dearly. I have to rectify that.\",\n\t\t\"A childhood mentor put me on my current path. If I succeed, I want to repay that mentor in some way.\",\n\t\t\"I value an oath of loyalty I took to a group of friends over everything else in my life.\",\n\t\t\"Although I don't get along well with people, my pet means the world to me.\"\n\t],\n\tflaw : [\n\t\t\"I know what's best. Trust me.\",\n\t\t\"Flaw? I have no flaws. I'm perfect.\",\n\t\t\"My loyalties are... fluid.\",\n\t\t\"If anything goes wrong, it must be someone else's fault. Let me explain that in detail.\",\n\t\t\"There's right and there's wrong, and there's no gray area in between.\",\n\t\t\"Our superiors might not like what you're doing. I'm going to have to put that in my report.\"\n\t]\n};\nBackgroundFeatureList[\"inside informant\"] = {\n\tdescription : \"I have connections to my previous employer or other groups I dealt with during my previous employment. I can communicate with my contacts, gaining information at the DM's discretion.\",\n\tsource : [[\"AcqInc\", 51]]\n};\n\nRaceList[\"verdan\"] = {\n\tregExpSearch : /verdan/i,\n\tname : \"Verdan\",\n\tsource : [[\"AcqInc\", 74]],\n\tplural : \"Verdan\",\n\tsize : 4, // small at 1st level, but medium from level 5+\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Goblin\", 1],\n\tskills : [\"Persuasion\"],\n\tsavetxt : { text : [\"Adv. on Wis/Cha saves\"] },\n\tage : \" reach adulthood at around the age of 24, and it is thought that they might live to nearly 200 years old. However, because no verdan has died of old age since the race's initial creation, their upper age limits remain subject to speculation.\",\n\theight : \" are between 3 and a half and 4 feet tall, plus 2 feet from 5th level onwards\",\n\theightMetric : \" are between 100 and 120 cm tall, plus 60 cm from 5th level onwards\",\n\tscores : [0, 0, 1, 0, 0, 2],\n\ttrait : \"Verdan (+1 Constitution, +2 Charisma)\\nSudden Growth Spurt: At 5th level, I grow 2 ft, increasing my size from Small to Medium.\\nBlack Blood Healing: When I roll a 1 or 2 on any HD I spend at the end of short rest, I can reroll the die and must use the new roll.\\nLimited Telepathy: I can telepathically communicate simple ideas and straightforward concepts to a creature I can see within 30 ft, if it can understand at least one language.\\nTelepathic Insight: I have advantage on Wisdom and Charisma saving throws.\",\n\tfeatures : {\n\t\t\"sudden growth spurt\" : {\n\t\t\tname : \"Sudden Growth Spurt\",\n\t\t\tminlevel : 5,\n\t\t\teval : function () { PickDropdown(\"Size Category\", 3); },\n\t\t\tremoveeval : function () { PickDropdown(\"Size Category\", 4); }\n\t\t}\n\t},\n\tadvantages : [\n\t\t[\"Wisdom\", true],\n\t\t[\"Charisma\", true]\n\t]\n}\n\nSpellsList[\"distort value\"] = {\n\tname : \"Distort Value\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"AcqInc\", 75]],\n\tlevel : 1,\n\tschool : \"Illus\",\n\ttime : \"1 min\",\n\trange : \"Touch\",\n\tcomponents : \"V\",\n\tduration : \"8 hours\",\n\tdescription : \"1 obj up to 1+1/SL cu ft doubles/halves in perceived value; Investigation vs. spell DC to see true value\",\n\tdescriptionFull : \"Do you need to squeeze a few more gold pieces out of a merchant as you try to sell that weird octopus statue you liberated from the chaos temple? Do you need to downplay the worth of some magical assets when the tax collector stops by? Distort value has you covered.\\n   You cast this spell on an object no more than 1 foot on a side, doubling the object's perceived value by adding illusory flourishes or polish to it, or reducing its perceived value by half with the help of illusory scratches, dents, and other unsightly features. Anyone examining the object can ascertain its true value with a successful Intelligence (Investigation) check against your spell save DC.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the maximum size of the object increases by 1 foot for each slot level above 1st.\"\n};\nSpellsList[\"fast friends\"] = {\n\tname : \"Fast Friends\",\n\tclasses : [\"bard\", \"cleric\", \"wizard\"],\n\tsource : [[\"AcqInc\", 75]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V\",\n\tduration : \"Conc, 1 h\",\n\tsave : \"Wis\",\n\tdescription : \"1+1/SL humanoid save or charmed and perform tasks I ask it to do; adv. save if me/ally is fighting it\",\n\tdescriptionFull : \"When you need to make sure something gets done, you can't rely on vague promises, sworn oaths, or binding contracts of employment. When you cast this spell, choose one humanoid within range that can see and hear you, and that can understand you. The creature must succeed on a Wisdom saving throw or become charmed by you for the duration. While the creature is charmed in this way, it undertakes to perform any services or activities you ask of it in a friendly manner, to the best of its ability.\\n   You can set the creature new tasks when a previous task is completed, or if you decide to end its current task. If the service or activity might cause harm to the creature, or if it conflicts with the creature's normal activities and desires, the creature can make another Wisdom saving throw to try to end the effect. This save is made with advantage if you or your companions are fighting the creature. If the activity would result in certain death for the creature, the spell ends.\\n   When the spell ends, the creature knows it was charmed by you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional creature for each slot level above 3rd.\"\n};\nSpellsList[\"gift of gab\"] = {\n\tname : \"Gift of Gab\",\n\tclasses : [\"bard\", \"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 2,\n\tschool : \"Ench\",\n\ttime : \"1 rea\",\n\ttimeFull : \"1 reaction, which you take when you speak to another creature\",\n\trange : \"Self\",\n\tcomponents : \"V,S,R\\u2020\",\n\tcompMaterial : \"2 gp royalty component\",\n\tduration : \"Instantaneous\",\n\tdescription : \"Cast when talking, any crea within 5 ft think what I said in the last 6 seconds was only to cast a spell\",\n\tdescriptionFull : \"Jim Darkmagic is said to have invented this spell, originally calling it 'I said what?!'. Have you ever been talking to the local monarch and accidentally mentioned how their son looks like your favorite hog from when you were growing up on the family farm? We've all been there! But rather than being beheaded for an honest slip of the tongue, you can pretend it never happened\\u2014by ensuring that no one knows it happened.\\n   When you cast this spell, you skillfully reshape the memories of listeners in your immediate area, so that each creature of your choice within 5 feet of you forgets everything you said within the last 6 seconds. Those creatures then remember that you actually said the words you speak as the verbal component of the spell.\"\n};\nSpellsList[\"incite greed\"] = {\n\tname : \"Incite Greed\",\n\tclasses : [\"cleric\", \"warlock\", \"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A gem worth at least 50 gp\",\n\tduration : \"Conc, 1 min\",\n\tsave : \"Wis\",\n\tdescription : \"Any crea that see me save or charmed, only move to me, if in 5 ft do nothing; save end of each turn\",\n\tdescriptionFull : \"When you cast this spell, you present the gem used as the material component and choose any number of creatures within range that can see you. Each target must succeed on a Wisdom saving throw or be charmed by you until the spell ends, or until you or your companions do anything harmful to it. While charmed in this way, a creature can do nothing but use its movement to approach you in a safe manner. While an affected creature is within 5 feet of you, it cannot move, but simply stares greedily at the gem you present.\\n   At the end of each of its turns, an affected target can make a Wisdom saving throw. If it succeeds, this effect ends for that target.\"\n};\nSpellsList[\"jim's glowing coin\"] = {\n\tname : \"Jim's Glowing Coin\",\n\tclasses : [\"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 2,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,M,R\\u2020\",\n\tcompMaterial : \"A coin, and 2 gp royalty component\",\n\tduration : \"1 min\",\n\tsave : \"Wis\",\n\tdescription : \"30-ft radius any creature I can see save or disadvantage on Perception and Initiative for duration\",\n\tdescriptionFull : \"Of the many tactics employed by master magician and renowned adventurer Jim Darkmagic, the old glowing coin trick is a time-honored classic. When you cast the spell, you hurl the coin that is the spell's material component to any spot within range. The coin lights up as if under the effect of a light spell. Each creature of your choice that you can see within 30 feet of the coin must succeed on a Wisdom saving throw or be distracted for the duration. While distracted, a creature has disadvantage on Wisdom (Perception) checks and initiative rolls.\"\n};\nSpellsList[\"jim's magic missile\"] = {\n\tname : \"Jim's Magic Missile\",\n\tclasses : [\"wizard\"],\n\tsource : [[\"AcqInc\", 76]],\n\tlevel : 1,\n\tschool : \"Evoc\",\n\ttime : \"1 a\",\n\trange : \"120 ft\",\n\tcomponents : \"V,S,R\\u2020\",\n\tcompMaterial : \"1 gp royalty component per spell slot level used\",\n\tduration : \"Instantaneous\",\n\tdescription : \"3+1/SL darts, each spell atk for 2d4 Force dmg, 5d4 crit; any 1 to hit, all dmg me 1 (1+1/SL gp cons.)\",\n\tdescriptionShorter : \"3+1/SL darts, atk 2d4 Force dmg, 5d4 crit; any 1 to hit, all dmg me 1 (1+1/SL gp cons.)\",\n\tdescriptionFull : \"Any apprentice wizard can cast a boring old magic missile. Sure, it always strikes its target. Yawn. Do away with the drudgery of your grandfather's magic with this improved version of the spell, as used by Jim Darkmagic!\\n   You create three twisting, whistling, hypoallergenic, gluten-free darts of magical force. Each dart targets a creature of your choice that you can see within range. Make a ranged spell attack for each missile. On a hit, a missile deals 2d4 force damage to its target.\\n   If the attack roll scores a critical hit, the target of that missile takes 5d4 force damage instead of you rolling damage twice for a critical hit. If the attack roll for any missile is a 1, all missiles miss their targets and blow up in your face, dealing 1 force damage per missile to you.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the spell creates one more dart, and the royalty component increases by 1 gp, for each slot level above 1st.\",\n\tdynamicDamageBonus : {\n\t\tmultipleDmgMoments : true,\n\t\textraDmgGroupsSameType : /((?:\\+?\\d+d?\\d*)+)( crit)/i\n\t}\n};\nSpellsList[\"motivational speech\"] = {\n\tname : \"Motivational Speech\",\n\tclasses : [\"bard\", \"cleric\"],\n\tsource : [[\"AcqInc\", 77]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 min\",\n\trange : \"60 ft\",\n\tcomponents : \"V\",\n\tduration : \"1 h\",\n\tdescription : \"5 crea that hear me 5+5/SL temp HP, adv. Wis saves, if hit adv. on next atk; stops when temp HP gone\",\n\tdescriptionFull : \"You address allies, staff, or innocent bystanders to exhort and inspire them to greatness, whether they have anything to get excited about or not. Choose up to five creatures within range that can hear you. For the duration, each affected creature gains 5 temporary hit points and has advantage on Wisdom saving throws. If an affected creature is hit by an attack, it has advantage on the next attack roll it makes. Once an affected creature loses the temporary hit points granted by this spell, the spell ends for that creature.\" + AtHigherLevels + \"At Higher Levels. When you cast this spell using a spell slot of 4th level or higher, the temporary hit points increase by 5 for each slot level above 3rd.\"\n};\n\n// Magic Item from the adventure\nMagicItemsList[\"piercer\"] = {\n\tname : \"Piercer\",\n\tsource : [[\"AcqInc\", 121]],\n\ttype : \"weapon (shortsword)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magical shortsword. I regain the maximum possible number of hit points from expended Hit Dice. However, I must eat twice as much food each day to avoid exhaustion, a minimum of 2 lb.\",\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon.\\n   A character attuned to the sword regains the maximum possible number of hit points from expended Hit Dice. However, the attuned character must eat twice as much food each day (a minimum of 2 pounds) to avoid exhaustion (see \\\"The Environment\\\" in chapter 8 of the Player's Handbook.)\",\n\tattunement : true,\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"shortsword\",\n\t\tregExpSearch : /piercer/i,\n\t\tname : \"Piercer\",\n\t\tsource : [[\"AcqInc\", 121]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\n"
  },
  {
    "path": "WotC material/pub_20190903_DnDEK_dupl.js",
    "content": "var iFileName = \"pub_20190903_DnDEK.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the sidekick rules from the Dungeons & Dragons Essentials Kit adventures to MPMB's Character Record Sheet\r\n/* - NOTICE -\r\n\tThese sidekick classes are available as normal classes because the sheet doesn't support classes for the companion page\r\n\r\n\tBe aware that the sidekick official way of levelling is not fully compatible with the sheet,\r\n\tbecause it isn't how player classes normally gain abilities and choices.\r\n\tFor example, the ability score improvements here are left to the player, while the rules say which score increases.\r\n\r\n\tAlso, the sidekicks here gain increases to their proficiency bonus just like normal classes because that is hard-coded into the sheet.\r\n\tAccording to the official rules, the sidekicks only get a proficiency bonus increase at 5th level, and at no other levels.\r\n*/\r\n\r\n// Define the source\r\nSourceList[\"DnDEK\"] = {\r\n\tname : \"Dungeons & Dragons Essentials Kit [sidekick classes]\",\r\n\tabbreviation : \"DnDEK\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/dnd_essentials_rulebook.pdf\",\r\n\tdate : \"2019/09/03\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nClassList[\"sidekick-expert\"] = {\r\n\tloadSidekickStats : function(AddRemove, scoresA) {\r\n\t\t// (re)set the default ability scores\r\n\t\tinitiateCurrentStats();\r\n\t\tvar expectedA = AddRemove ? [8,8,8,8,8,8] : scoresA;\r\n\t\tvar setA = AddRemove ? scoresA : [8,8,8,8,8,8];\r\n\t\tfor (var s = 0; s < scoresA.length; s++) {\r\n\t\t\tif (CurrentStats.cols[0].scores[s] != expectedA[s]) continue;\r\n\t\t\tCurrentStats.cols[0].scores[s] = setA[s];\r\n\t\t\tvar thisAbi = AbilityScores.abbreviations[s];\r\n\t\t\tif (AddRemove && !What(thisAbi)) Value(thisAbi, setA[s])\r\n\t\t}\r\n\t\t// (re)set the race and background\r\n\t\tvar expectedV = AddRemove ? [\"\", \"\"] : [\"Hum\\u200Aanoid\", \"Generic\"];\r\n\t\tvar setV = AddRemove ? [\"Hum\\u200Aanoid\", \"Generic\"] : [\"\", \"\"];\r\n\t\tif (What(\"Race\") == expectedV[0]) Value(\"Race\", setV[0]);\r\n\t\tif (What(\"Background\") == expectedV[1]) Value(\"Background\", setV[1]);\r\n\t},\r\n\tfixSidekickLevelDeps : function(aClass, lvlA) {\r\n\t\t// First add an extra HD\r\n\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\tvar lvlFld = \"HD\" + i + \" Level\";\r\n\t\t\tif (What(\"HD\" + i + \" Die\") == 8 && What(lvlFld) == lvlA[1]) {\r\n\t\t\t\tValue(lvlFld, What(lvlFld) + 1);\r\n\t\t\t\tCurrentUpdates.types.push(\"hp\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tamendSidekickHP : function (HDobj) {\r\n\t\t// remove 1st level max, and change its average and fixed value\r\n\t\tvar matchRegex = /(\\d+)d8 \\((\\d+\\.?\\d+?)\\)/;\r\n\t\tvar match = HDobj.dieStr[1].match(matchRegex);\r\n\t\tif (!match) return;\r\n\t\tHDobj.dieStr.shift(); HDobj.average -= 3.5; HDobj.fixed -= 3;\r\n\t\tHDobj.dieStr[0] = HDobj.dieStr[0].replace(matchRegex, (Number(match[1]) + 1) + \"d8 (\" + (Number(match[2]) + 4.5) + \")\");\r\n\t\tHDobj.dieStr.push(\"\\n extra sidekick HD (included above), but no max 1st level\");\r\n\t},\r\n\tregExpSearch : /^(?=.*expert)(?=.*sidekick).*$/i,\r\n\tname : \"Expert (sidekick)\",\r\n\tsource : [[\"DnDEK\", 63]],\r\n\tprimaryAbility : \"Dexterity\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4],\r\n\tdie : 8,\r\n\tsaves : [\"Dex\"],\r\n\tskills : {\r\n\t\tprimary : [\"Acrobatics\", \"Performance\", \"Persuasion\", \"Sleight of Hand\", \"Stealth\"]\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [[\"Thieves' tools\", \"Dex\"], [\"Musical instrument\", 1]]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false, [\"rapier\", \"shortsword\"]]\r\n\t},\r\n\tequipment : \"Expert starting equipment:\" +\r\n\t\t\"\\n \\u2022 A shortsword and a dagger;\" +\r\n\t\t\"\\n \\u2022 A shortbow and a quiver of 20 arrows;\" +\r\n\t\t\"\\n \\u2022 Studded leather armor;\" +\r\n\t\t\"\\n \\u2022 Thieves' tools and a musical instrument of my choice.\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1, 1, 1, 1, 1, 2],\r\n\tfeatures : {\r\n\t\t\"sidekick\" : {\r\n\t\t\tname : \"Sidekick\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Unlike other classes, a sidekick has preset ability scores and skill proficiencies\",\r\n\t\t\t\t\"A sidekick gains 2 HD at 1st level, but doesn't get max HP for its 1st level\",\r\n\t\t\t\t\"If the DM allows it, a race can be selected and have its racial traits applied\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it multiclass\"\r\n\t\t\t]),\r\n\t\t\tscorestxt : \"Starts with 10 Strength, 15 Dexterity, 12 Constitution, 13 Intelligence, 10 Wisdom, and 14 Charisma\",\r\n\t\t\tweaponsAdd : { select : [\"Shortsword\", \"Dagger\", \"Shortbow\"] },\r\n\t\t\tarmorAdd : { select : \"Studded Leather\" },\r\n\t\t\tlanguageProfs : [\"Common\", 1],\r\n\t\t\teval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].loadSidekickStats(true, [10, 15, 12, 13, 10, 14]);\r\n\t\t\t},\r\n\t\t\tremoveeval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].loadSidekickStats(false, [10, 15, 12, 13, 10, 14]);\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].fixSidekickLevelDeps(\"sidekick-expert\", lvlA);\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj) {\r\n\t\t\t\t\tClassList[\"sidekick-expert\"].amendSidekickHP(HDobj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"helpful\" : {\r\n\t\t\tname : \"Helpful\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can use a bonus action to take the Help action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"cunning action\" : {\r\n\t\t\tname : \"Cunning Action\",\r\n\t\t\tsource : [[\"DnDEK\", 64]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can use a bonus action to take the Dash, Disengage, or Hide action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"expertise\" : function() {\r\n\t\t\tvar a = {\r\n\t\t\t\tname : \"Expertise\",\r\n\t\t\t\tsource : [[\"DnDEK\", 64]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription: desc(\"I gain expertise with two skills I am proficient with\"),\r\n\t\t\t\tskillstxt : \"Expertise with any two skill proficiencies\",\r\n\t\t\t\textraname : \"Expertise\",\r\n\t\t\t\textrachoices : [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\r\n\t\t\t\textraTimes : 2\r\n\t\t\t}\r\n\t\t\tfor (var i = 0; i < a.extrachoices.length; i++) {\r\n\t\t\t\tvar attr = a.extrachoices[i].toLowerCase();\r\n\t\t\t\ta[attr] = {\r\n\t\t\t\t\tname : a.extrachoices[i] + \" Expertise\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tsource : a.source,\r\n\t\t\t\t\tskills : [[a.extrachoices[i], \"only\"]],\r\n\t\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? false : v.skillExpertiseLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn a;\r\n\t\t}()\r\n\t}\r\n}\r\nClassList[\"sidekick-warrior\"] = {\r\n\tregExpSearch : /^(?=.*warrior)(?=.*sidekick).*$/i,\r\n\tname : \"Warrior (sidekick)\",\r\n\tsource : [[\"DnDEK\", 63]],\r\n\tprimaryAbility : \"Strength\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3],\r\n\tdie : 8,\r\n\tsaves : [\"Con\"],\r\n\tskills : {\r\n\t\tprimary : [\"Athletics\", \"Perception\", \"Survival\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, true, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true]\r\n\t},\r\n\tequipment : \"Warrior starting equipment:\" +\r\n\t\t\"\\n \\u2022 A longsword;\" +\r\n\t\t\"\\n \\u2022 A longbow and a quiver of 20 arrows;\" +\r\n\t\t\"\\n \\u2022 Chain shirt and a shield.\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1, 1, 1, 1, 1, 2],\r\n\tfeatures : {\r\n\t\t\"sidekick\" : {\r\n\t\t\tname : \"Sidekick\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Unlike other classes, a sidekick has preset ability scores and skill proficiencies\",\r\n\t\t\t\t\"A sidekick gains 2 HD at 1st level, but doesn't get max HP for its 1st level\",\r\n\t\t\t\t\"If the DM allows it, a race can be selected and have its racial traits applied\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tscorestxt : \"Starts with 15 Strength, 13 Dexterity, 14 Constitution, 10 Intelligence, 12 Wisdom, and 10 Charisma\",\r\n\t\t\tweaponsAdd : { select : [\"Longsword\", \"Longbow\"] },\r\n\t\t\tarmorAdd : { select : \"Chain Shirt\" },\r\n\t\t\tshieldAdd : \"Shield\",\r\n\t\t\tlanguageProfs : [\"Common\", 1],\r\n\t\t\teval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].loadSidekickStats(true, [15, 13, 14, 10, 12, 10]);\r\n\t\t\t},\r\n\t\t\tremoveeval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].loadSidekickStats(false, [15, 13, 14, 10, 12, 10]);\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].fixSidekickLevelDeps(\"sidekick-warrior\", lvlA);\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj) {\r\n\t\t\t\t\tClassList[\"sidekick-expert\"].amendSidekickHP(HDobj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"martial role\" : {\r\n\t\t\tname : \"Martial Role\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose a Martial Role for the warrior using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Attacker\", \"Defender\"],\r\n\t\t\t\"attacker\" : {\r\n\t\t\t\tname : \"Martial Role: Attacker\",\r\n\t\t\t\tdescription: desc(\"I gain a +2 bonus to my attack rolls\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (!v.isDC) output.extraHit += 2;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add a +2 bonus on the To Hit of all my attack rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"defender\" : {\r\n\t\t\t\tname : \"Martial Role: Defender\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction, I can give disadv. on an attack made vs. someone within 5 ft of me\",\r\n\t\t\t\t\t\"I need to be able to see the attacker to do this\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"second wind\" : {\r\n\t\t\tname : \"Second Wind\",\r\n\t\t\tsource : [[\"DnDEK\", 64]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"As a bonus action, I regain 1d10 + warrior level HP; I can use this once per short rest\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn \"1d10+\" + n;\r\n\t\t\t}),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"improved critical\" : {\r\n\t\t\tname : \"Improved Critical\",\r\n\t\t\tsource : [[\"DnDEK\", 64]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I score a critical hit with my weapon attacks on a roll of 19 and 20\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && !v.isSpell && !v.CritChance && classes.known[\"sidekick-warrior\"]) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My weapon attacks score a critical on a to hit roll of both 19 and 20.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nClassList[\"sidekick-spellcaster\"] = {\r\n\tsetSidekickSpells : function (knownObj, lvlA) {\r\n\t\tvar spCast = CurrentSpells[\"sidekick-spellcaster\"];\r\n\t\tif (!spCast) return;\r\n\t\tif (!spCast.selectCa) spCast.selectCa = [];\r\n\t\tif (!spCast.selectSp) spCast.selectSp = [];\r\n\t\tfor (var knownType in knownObj) {\r\n\t\t\tvar knowSel = \"select\" + knownType;\r\n\t\t\tfor (var cLvl in knownObj[knownType]) {\r\n\t\t\t\tif (cLvl > lvlA[0] && cLvl <= lvlA[1]) { // level gained\r\n\t\t\t\t\tspCast[knowSel] = spCast[knowSel].concat(knownObj[knownType][cLvl]);\r\n\t\t\t\t} else if (cLvl <= lvlA[0] && cLvl > lvlA[1]) { // level lost\r\n\t\t\t\t\tvar removeSp = knownObj[knownType][cLvl];\r\n\t\t\t\t\tfor (var i = 0; i < removeSp.length; i++) {\r\n\t\t\t\t\t\tvar indx = spCast[knowSel].indexOf(removeSp[i]);\r\n\t\t\t\t\t\tif (indx == -1) continue;\r\n\t\t\t\t\t\tspCast[knowSel].splice(indx, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tregExpSearch : /^(?=.*(spellcaster|mage|healer))(?=.*sidekick).*$/i,\r\n\tname : \"Spellcaster (sidekick)\",\r\n\tsource : [[\"DnDEK\", 63]],\r\n\tprimaryAbility : \"Intelligence or Wisdom\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3],\r\n\tdie : 8,\r\n\tsaves : [\"Wis\"],\r\n\tskills : {\r\n\t\tprimary : [\"Arcana\", \"Investigation\", \"Religion\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false]\r\n\t},\r\n\tequipment : \"Spellcaster starting equipment:\" +\r\n\t\t\"\\n \\u2022 A quarterstaff;\" +\r\n\t\t\"\\n \\u2022 Leather armor.\",\r\n\tsubclasses : [\"Magical Role\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1],\r\n\tfeatures : {\r\n\t\t\"sidekick\" : {\r\n\t\t\tname : \"Sidekick\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Unlike other classes, a sidekick has preset ability scores and skill proficiencies\",\r\n\t\t\t\t\"A sidekick gains 2 HD at 1st level, but doesn't get max HP for its 1st level\",\r\n\t\t\t\t\"If the DM allows it, a race can be selected and have its racial traits applied\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tscorestxt : \"Starts with 10 Strength, 12 Dexterity, 10 Constitution, 15 Intelligence, 14 Wisdom, and 13 Charisma\",\r\n\t\t\tweaponsAdd : { select : [\"Quarterstaff\"] },\r\n\t\t\tarmorAdd : { select : \"Leather\" },\r\n\t\t\tlanguageProfs : [\"Common\", 1],\r\n\t\t\teval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].loadSidekickStats(true, [10, 12, 10, 15, 14, 13]);\r\n\t\t\t},\r\n\t\t\tremoveeval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].loadSidekickStats(false, [10, 12, 10, 15, 14, 13]);\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA, choiceA) {\r\n\t\t\t\tClassList[\"sidekick-expert\"].fixSidekickLevelDeps(\"sidekick-warrior\", lvlA);\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj) {\r\n\t\t\t\t\tClassList[\"sidekick-expert\"].amendSidekickHP(HDobj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Magical Role\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose the magical role of the sidekick, mage or healer, and put it in the \"Class\" field')\r\n\t\t},\r\n\t\t\"potent cantrips\" : {\r\n\t\t\tname : \"Potent Cantrips\",\r\n\t\t\tsource : [[\"DnDEK\", 64]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I add my spellcasting ability modifier to the damage I deal with any cantrip\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave) return;\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1] + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod > 0 && v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0) {\r\n\t\t\t\t\t\t\toutput.extraDmg += spAbiMod;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave || spellObj.psionic || spellObj.level !== 0) return;\r\n\t\t\t\t\t\tvar spAbi = AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1];\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(spAbi + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod < 1) return;\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", spAbi);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\nAddSubClass(\"sidekick-spellcaster\", \"mage\", {\r\n\tregExpSearch : /^(?=.*mage)(?=.*sidekick).*$/i,\r\n\tsubname : \"Mage\",\r\n\tfullname : \"Mage (sidekick)\",\r\n\tsource : [[\"DnDEK\", 63]],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 1,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 6]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5],\r\n\t\tspells :   [1, 2, 3, 3, 4, 4, 8, 9,10,11,12,12]\r\n\t},\r\n\tspellcastingTable : [[0, 0, 0, 0, 0, 0, 0, 0, 0]].concat(levels.slice(0,12).map(function (n) {\r\n\t\treturn defaultSpellTable[n < 7 ? Math.ceil(n / 2) : n];\r\n\t})),\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can cast wizard cantrips/spells I know, using Intelligence as my spellcasting ability\"),\r\n\t\t\tweaponsAdd : { select : [\"Fire Bolt\"] },\r\n\t\t\tchangeeval : function (lvlA, choiceA) {\r\n\t\t\t\tif (!lvlA[1]) return;\r\n\t\t\t\t// set the spells known for the level\r\n\t\t\t\tvar knownObj = {\r\n\t\t\t\t\tCa : {\r\n\t\t\t\t\t\t\"1\" : [\"fire bolt\", \"light\"],\r\n\t\t\t\t\t\t\"4\" : [\"mage hand\"],\r\n\t\t\t\t\t\t\"7\" : [\"minor illusion\"],\r\n\t\t\t\t\t\t\"10\" : [\"shocking grasp\"]\r\n\t\t\t\t\t},\r\n\t\t\t\t\tSp : {\r\n\t\t\t\t\t\t\"1\" : [\"sleep\"],\r\n\t\t\t\t\t\t\"2\" : [\"burning hands\"],\r\n\t\t\t\t\t\t\"3\" : [\"shield\"],\r\n\t\t\t\t\t\t\"5\" : [\"invisibility\"],\r\n\t\t\t\t\t\t\"7\" : [\"flaming sphere\", \"fireball\", \"fly\", \"wall of fire\"],\r\n\t\t\t\t\t\t\"8\" : [\"polymorph\"],\r\n\t\t\t\t\t\t\"9\" : [\"cone of cold\"],\r\n\t\t\t\t\t\t\"10\" : [\"hold monster\"],\r\n\t\t\t\t\t\t\"11\" : [\"chain lightning\"]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tClassList[\"sidekick-spellcaster\"].setSidekickSpells(knownObj, lvlA);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"sidekick-spellcaster\", \"healer\", {\r\n\tregExpSearch : /^(?=.*healer)(?=.*sidekick).*$/i,\r\n\tsubname : \"Healer\",\r\n\tfullname : \"Healer (sidekick)\",\r\n\tsource : [[\"DnDEK\", 63]],\r\n\tabilitySave : 5,\r\n\tspellcastingFactor : 1,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"cleric\",\r\n\t\tlevel : [0, 6]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5],\r\n\t\tspells :   [1, 2, 3, 3, 4, 4, 8, 9,10,11,12,12]\r\n\t},\r\n\tspellcastingTable : [[0, 0, 0, 0, 0, 0, 0, 0, 0]].concat(levels.slice(0,12).map(function (n) {\r\n\t\treturn defaultSpellTable[n < 7 ? Math.ceil(n / 2) : n];\r\n\t})),\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"DnDEK\", 63]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can cast cleric cantrips/spells I know, using Wisdom as my spellcasting ability\"),\r\n\t\t\tweaponsAdd : { select : [\"Sacred Flame\"] },\r\n\t\t\tchangeeval : function (lvlA, choiceA) {\r\n\t\t\t\tif (!lvlA[1]) return;\r\n\t\t\t\t// set the spells known for the level\r\n\t\t\t\tvar knownObj = {\r\n\t\t\t\t\tCa : {\r\n\t\t\t\t\t\t\"1\" : [\"guidance\", \"sacred flame\"],\r\n\t\t\t\t\t\t\"4\" : [\"resistance\"],\r\n\t\t\t\t\t\t\"7\" : [\"light\"],\r\n\t\t\t\t\t\t\"10\" : [\"spare they dying\"]\r\n\t\t\t\t\t},\r\n\t\t\t\t\tSp : {\r\n\t\t\t\t\t\t\"1\" : [\"cure wounds\"],\r\n\t\t\t\t\t\t\"2\" : [\"bless\"],\r\n\t\t\t\t\t\t\"3\" : [\"shield of faith\"],\r\n\t\t\t\t\t\t\"5\" : [\"aid\"],\r\n\t\t\t\t\t\t\"7\" : [\"lesser restoration\", \"protection from energy\", \"revivify\", \"death ward\"],\r\n\t\t\t\t\t\t\"8\" : [\"banishment\"],\r\n\t\t\t\t\t\t\"9\" : [\"greater restoration\"],\r\n\t\t\t\t\t\t\"10\" : [\"mass cure wounds\"],\r\n\t\t\t\t\t\t\"11\" : [\"heal\"]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tClassList[\"sidekick-spellcaster\"].setSidekickSpells(knownObj, lvlA);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/pub_20190917_DiA.js",
    "content": "var iFileName = \"pub_20190917_DiA.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds all material from the Baldur's Gate: Descent into Avernus adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"DiA\"] = {\n\tname : \"Baldur's Gate: Descent into Avernus [background, items]\",\n\tabbreviation : \"DiA\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dnd.wizards.com/products/baldurs-gate-descent-into-avernus\",\n\tdate : \"2019/09/17\"\n};\n\nBackgroundList[\"faceless\"] = {\n\tregExpSearch : /faceless/i,\n\tname : \"Faceless\",\n\tsource : [[\"DiA\", 203]],\n\tskills : [\"Deception\", \"Intimidation\"],\n\tgold : 10,\n\tlanguageProfs : [1],\n\ttoolProfs : [\"Disguise kit\"],\n\tequipleft : [\n\t\t[\"Disguise kit\", \"\", 3]\n\t],\n\tequipright : [\n\t\t[\"Costume\", \"\", 4],\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Dual Personalities\",\n\ttrait : [\n\t\t\"I'm earnest and uncommonly direct.\",\n\t\t\"I strive to have no personality\\u2014it's easier to forget what's hardly there.\",\n\t\t\"I treasure a memento of the person or instance that set me upon my path.\",\n\t\t\"I sleep just as much as I need to and on an unusual schedule.\",\n\t\t\"I think far ahead, a detachedness often mistaken for daydreaming.\",\n\t\t\"I cultivate a single obscure hobby or study and eagerly discuss it at length.\",\n\t\t\"I am ever learning how to be among others\\u2014when to stay quiet, when to laugh.\",\n\t\t\"I behave like an extreme opposite of my persona.\"\n\t],\n\tideal : [\n\t\t[\"Justice\",\n\t\t\t\"Justice. Place in society shouldn't determine one's access to what is right. (Good)\"\n\t\t],\n\t\t[\"Security\",\n\t\t\t\"Security. Doing what must be done can't bring the innocent to harm. (Lawful)\"\n\t\t],\n\t\t[\"Confusion\",\n\t\t\t\"Confusion. Deception is a weapon. Strike from where your foes won't expect. (Chaotic)\"\n\t\t],\n\t\t[\"Infamy\",\n\t\t\t\"Infamy. My name will be a malediction, a curse that fulfills my will. (Evil)\"\n\t\t],\n\t\t[\"Incorruptibility\",\n\t\t\t\"Incorruptibility. Be a symbol, and leave your flawed being behind. (Any)\"\n\t\t],\n\t\t[\"Anonymity\",\n\t\t\t\"Anonymity. It's my deeds that should be remembered, not their instrument. (Any)\"\n\t\t]\n\t],\n\tbond : [\n\t\t\"I do everything for my family. My first thought is keeping them safe.\",\n\t\t\"What I do, I do for the world. The people don't realize how much they need me.\",\n\t\t\"I've seen too many in need. I must not fail them as everyone else has.\",\n\t\t\"I stand in opposition, lest the wicked go unopposed.\",\n\t\t\"I am exceptional. I do this because no one else can, and no one can stop me.\",\n\t\t\"I do everything for those who were taken from me.\"\n\t],\n\tflaw : [\n\t\t\"I am callous about death. It comes to us all eventually.\",\n\t\t\"I never make eye contact or hold it unflinchingly.\",\n\t\t\"I have no sense of humor. Laughing is uncomfortable and embarrassing.\",\n\t\t\"I overexert myself, sometimes needing to recuperate for a day or more.\",\n\t\t\"I think far ahead, a detachedness often mistaken for daydreaming.\",\n\t\t\"I see morality entirely in black and white.\"\n\t],\n\textra : [\n\t\t\"Select a Faceless Persona\",\n\t\t\"Flamboyant spy or brigand\",\n\t\t\"Incarnation of nation or people\",\n\t\t\"Scoundrel with masked guise\",\n\t\t\"Vengeful spirit\",\n\t\t\"Manifestation of deity or faith\",\n\t\t\"Beauty accented with makeup\",\n\t\t\"Impersonation of another hero\",\n\t\t\"Embodiment of a school of magic\",\n\t\t\"Warrior with distinctive armor\",\n\t\t\"Fear-inspiring monstrous disguise\"\n\t]\n};\nBackgroundFeatureList[\"religious community\"] = {\n\tdescription : \"I'm tightly connected with the religious community of the city. I know if a deity has a following in the city, any places that faith openly congregates, and the neighborhoods those faithful typically inhabit. While this isn't remarkable for most of the city's larger faiths, keeping track of the hundreds of religions newcomers bring with them is no mean feat.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"long-lost heir\"] = {\n\tdescription : \"I can pose as the long-lost heir to some imaginary or dead lineage. I'm well-versed in the mannerisms and idiosyncrasies of nobility, imitating them smoothly enough to convince anybody of my authenticity. However, any true test is likely to reveal my deception. I can enter places that only nobility can and might be able to bluff other through with me.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"criminal connections\"] = {\n\tdescription : \"In a big city, crime is just another business. As a result, I can arrange a meeting with a low-ranking operative of nearly any business, noble family, crew, government institution, or guild. This operative will hear me out and, at their discretion, take my information or request up their chain of command. These meetings almost always occur in shady venues.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"backstage pass\"] = {\n\tdescription : \"I know that most of the real business, in entertainment or otherwise, happens behind the scenes. It's easy for me to case what sorts of audiences attend a venue. After a successful performance, I may meet an enthusiastic member of the crowd\\u2014someone of an occupation or social class that frequents the venue, who is delighted to talk with me, and to listen.\",\n\tsource : [[\"DiA\", 202], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"dual personalities\"] = {\n\tdescription : \"The world knows me as my persona and those who seek to learn more about me find themselves stymied by my disguise. I'm unidentifiable as my true self while disguised and behaving as my persona, allowing me to change appearances between my two personalities as I wish. My deception might lose its effectiveness if someone realize the connection.\",\n\tsource : [[\"DiA\", 204], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"social vengeance\"] = {\n\tdescription : \"I've lived my whole life amongst the lower class of the city, seeing the upper class flaunt their wealth while my hardworking neighbors struggled. I know their eagerness to give the wealthy their comeuppance. I can convince 1d6 commoners in a busy area in 2d10 min\" + (typePF ? \"utes\" : \"\") + \" to perform a non-illegal act that inconveniences a guard, noble, or wealthy looking individual.\",\n\tsource : [[\"DiA\", 204], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"professional courtesy\"] = {\n\tdescription : \"I conduct my business in one of the city's districts and I'm familiar with its local crews, their territories, and inter-crew politics. When I need information about something in my district, I can learn the local gossip from crew members. Within my district, I can gain entry to nearly any bank, guild hall, place of business, workhouse, or crew meeting place.\",\n\tsource : [[\"DiA\", 205], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"the real city\"] = {\n\tdescription : \"I know the city that most of its inhabitants ignore, the dog-eat-dog world of the homeless and unfortunate. I know where to go for anonymity. In these slums and alley camps, I can get a damp bed and a bad meal, but also a degree of privacy and no questions asked. Living here isn't comfortable, but it's unlikely any will find me\\u2014and I can stay as long as I want.\",\n\tsource : [[\"DiA\", 205], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"patriar\"] = {\n\tdescription : \"As a member of an elite family of the city, I may pass through without paying tolls, enter the better part of town and stay there after dark, mingle among the nobility unquestioned, and impress those looking for wealthy patrons. My word is accepted over others' without question, and any corruption among guards or officials tends to work in my favor.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"immigrant experience\"] = {\n\tdescription : \"Even after my short time in the city, I've learned it holds more walls and gates than those the guards patrol. I'm known within the city's immigrant communities. Should I ever need to learn about a foreign land, people, tradition, or history, I know where to find someone with firsthand experience\\u2014likely somewhere in the poorer part of town.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"rumor monger\"] = {\n\tdescription : \"Via my personal rumor mill and published articles, I can surmise a great deal about the secrets of the city's inhabitants\\u2014necromancy, spying, smuggling, dealing in magical wares. Whenever a noteworthy crime or happening occurs in the city, I immediately have a list of 1d4 suspects who, if they aren't involved, have a strong chance of knowing who is.\",\n\tsource : [[\"DiA\", 206], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"smuggler's sense\"] = {\n\tdescription : \"I'm familiar with the docks of the city, the movement of inspectors and tax collectors, the way cargo and coin flows, the movements of the harbor guards, and how to operate the port's machinery for moving wares. As a result, it's easy for me to hustle a load of cargo ashore or see such a cargo onto a cooperative ship without attracting suspicion or taxation.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"city guard: lower city (the flaming fists)\"] = {\n\tdescription : \"I'm required to take a regular shift patrolling the lower or outer city and I must report for training once every ten days. In return, I have access to the guard's fortresses and a direct line of communication with officers and other soldiers. I can also pass through the city's gates and go to the upper city without question, but can't bring guests to the upper city.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"city guard: upper city (the watch)\"] = {\n\tdescription : \"I'm required to take a regular shift patrolling the upper city or its gates and I must report for training once every ten days. In return, I have access to the citadel and a direct line of communication with officers and officials. My word carries considerable weight. I can escort people into the upper city unimpeded, but I'm regarded with suspicion in the lower city.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"loyalty test\"] = {\n\tdescription : \"I can spot the behaviors common to corrupt guards and military officers a mile away. While this doesn't equate to evidence, and my sense isn't foolproof, my instinct proves a starting point to determine who might take a bribe, who might turn a blind eye to a crime, who might have criminal connections, or who might fulfill their duties strictly by the book.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\nBackgroundFeatureList[\"gateguide connection\"] = {\n\tdescription : \"I've associated with enough of the Gateguides crew that I know their torch-based code. From the lighting, placement, and type of torch arranged on or near a structure, I can gather information about those who live or do business there\\u2014if they deal fairly with strangers, have guild or government connections, or their standing with the Gateguides.\",\n\tsource : [[\"DiA\", 207], [\"ALbackground\", 0]]\n};\n\n// Creatures\n// Peacock is just a vulture under a different name, it has been added to the SRD code as a `nameAlt`\nCreatureList[\"abyssal chicken\"] = {\n\tname : \"Abyssal Chicken\",\n\tnameAlt : [\"Chicken, Abyssal\"],\n\tsource : [[\"DiA\", 97]],\n\tsize : 5,\n\ttype : \"Fiend\",\n\tsubtype : \"demon\",\n\tcompanion : \"familiar_not_al\",\n\talignment : \"Chaotic Evil\",\n\tac : 13,\n\thp : 10,\n\thd : [3, 4],\n\tspeed : \"30 ft, fly 30 ft\",\n\tscores : [6, 14, 13, 4, 9, 5],\n\tdamage_resistances : \"cold, fire, lightning\",\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"blinded, poisoned\",\n\tsenses : \"Blindsight 30 ft (blind beyond this radius)\",\n\tpassivePerception : 9,\n\tlanguages : \"understands Abyssal but can't speak\",\n\tchallengeRating : \"1/4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One bite and one claws attack as an Attack action\"\n\t}, {\n\t\tname : \"Claws\",\n\t\tability : 2,\n\t\tdamage : [1, 6, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One claws and one bite attack as an Attack action\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the chicken can make one Bite and one Claws attack.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Bad Flier\",\n\t\tdescription : \"The chicken falls at the end of a turn if it's airborne and the only thing holding it aloft is its flying speed.\"\n\t}]\n}\n\nMagicItemsList[\"candle mace\"] = { // contributed by Nod_Hero\n\tname : \"Candle Mace\",\n\tsource : [[\"DiA\", 39]],\n\ttype : \"weapon (mace)\",\n\trarity : \"uncommon\",\n\tdescription : \"This mace adds a +1 bonus to attack and damage rolls made with it. The head of this mace sheds bright light in a 5-ft radius and dim light for an additional 5 ft. As an action when I wield this mace, I can extinguish or ignite its light.\",\n\tdescriptionFull : \"This +1 mace was made for a cleric of Lathander, the god of dawn. The head of this mace sheds bright light in a 5-foot-radius and dim light for an additional 5 feet. When you wield this mace, you can extinguish or ignite its light as an action.\",\n\tweight : 4,\n\taction : [[\"action\", \" (on/off)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"mace\",\n\t\tregExpSearch : /^(?=.*candle)(?=.*mace).*$/i,\n\t\tname : \"Candle Mace\",\n\t\tsource : [[\"DiA\", 39]],\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"battle standard of infernal power\"] = {\n\tname : \"Battle Standard of Infernal Power\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While holding the banner, my weapon attacks and those of my allies within 300 ft of me count as magical for the purposes of overcoming damage immunities and resistances. The standard has a small unopenable cage with an incapacitated quasit within. It turns to smoke if killed or released and a new one appears.\",\n\tdescriptionLong : \"While holding the banner, my weapon attacks and those of my allies within 300 ft of me count as magical for the purposes of overcoming damage immunities and resistances.\\nThis hell-forged battle standard is made of infernal iron and fitted with a small, unopenable cage containing a quasit. The trapped quasit is incapacitated, and its cage has AC 19, 10 hit points, and immunity to all types of damage except force damage. If killed or somehow released, the quasit disappears in a cloud of smoke, and a new one appears in the cage, provided the cage is intact.\",\n\tdescriptionFull : \"This hell-forged battle standard is made of infernal iron and fitted with a small, unopenable cage containing a quasit. The trapped quasit is incapacitated, and its cage has AC 19, 10 hit points, and immunity to all types of damage except force damage. If killed or somehow released, the quasit disappears in a cloud of smoke, and a new one appears in the cage, provided the cage is intact.\\n   While you hold the banner, your weapon attacks and those of all allied creatures within 300 feet of you count as magical for the purposes of overcoming damage immunities and resistances.\",\n\tattunement : true,\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My weapon attacks count as magical for overcoming resistances and immunities.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"gauntlets of flaming fury\"] = {\n\tname : \"Gauntlets of Flaming Fury\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"While wearing both these steel gauntlets, any weapons I grasp with them count as magical. As a bonus action once per dawn, I can use them to envelop one or two melee weapons in my grasp with magical flames, causing them to deal an extra 1d6 fire damage on a hit. This lasts until I sheathe or let go of a weapon.\",\n\tdescriptionFull : \"While you wear both of these steel gauntlets, any non- magical weapon you grasp with either gauntlet is treated as a magic weapon. As a bonus action, you can use the gauntlets to cause magical flames to envelop one or two melee weapons in your grasp. Each flaming weapon deals an extra 1d6 fire damage on a hit. The flames last until you sheathe or let go of either weapon. Once used, this property can't be used again until the next dawn.\",\n\tattunement : true,\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.isSpell && !v.isNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/dancing|counts as( a)? magical/i).test(fields.Description)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"Any nonmagical weapons that I grasp with my Gauntlets of Flaming Fury count as magical for overcoming resistances and immunities.\"\n\t\t]\n\t}\n}\nMagicItemsList[\"fane-eater\"] = {\n\tname : \"Fane-Eater\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"weapon (battleaxe)\",\n\trarity : \"legendary\",\n\tdescription : \"This battleaxe adds a +3 bonus to attack and damage rolls made with it. When I use it to attack a creature and roll a 20 on the attack roll, the creature takes an extra 2d8 necrotic damage, and I regain a number of hit points equal to the necrotic damage taken.\",\n\tdescriptionFull : \"Fane-Eater is a battleaxe belonging to Arkhan the Cruel.\\n   You gain a +3 bonus to attack and damage rolls with Fane-Eater. If you attack a creature with this weapon and roll a 20 on the attack roll, the creature takes an extra 2d8 necrotic damage, and you regain a number of hit points equal to the necrotic damage taken.\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by an evil cleric or paladin\",\n\tprereqeval : function(v) { return (classes.known.paladin || classes.known.cleric) && (/evil/i).test(What(\"Alignment\")); },\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"battleaxe\",\n\t\tregExpSearch : /fane-eater/i,\n\t\tname : \"Fane-Eater\",\n\t\tsource : [[\"DiA\", 223]],\n\t\tdescription : \"Versatile (1d10); On 20 to hit: +2d8 necrotic damage and I heal same amount\",\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"hellfire weapon\"] = {\n\tname : \"Hellfire Weapon\",\n\tnameTest : \"Hellfire\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"weapon (any)\",\n\trarity : \"uncommon\",\n\tdescription : \"This weapon is fashioned from infernal iron and traced with veins of hellfire that shed dim light in a 5-ft radius. Any humanoid killed by an attack made with this weapon has its soul funneled into the River Styx, where it's reborn instantly as a lemure devil.\",\n\tdescriptionFull : \"This weapon is fashioned from infernal iron and traced with veins of hellfire that shed dim light in a 5-foot-radius.\\n   Any humanoid killed by an attack made with this weapon has its soul funneled into the River Styx, where it's reborn instantly as a lemure devil.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && (/hellfire/i).test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Humanoids killed lose their soul';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Hellfire\" in a the name of a weapon, it will be treated as the magic weapon Hellfire Weapon. Any humanoid killed by the weapon has its soul funneled into the River Styx, and are instantly reborn as a lemure devil.'\n\t\t]\n\t}\n}\nMagicItemsList[\"helm of devil command\"] = {\n\tname : \"Helm of Devil Command\",\n\tsource : [[\"DiA\", 223]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This helm has 3 charges, regaining all 24 h after using the last. I can use 1 charge to cast Dominate Monster on a devil, but it knows I tried to charm it. It allows me to know the exact location of all devils within 1000 ft and I can telepathically communicate with one of them at a time, or broadcast my thoughts to all.\",\n\tdescriptionLong : \"This bulky, eyeless helmet resizes to fit my head and allows me to see out of it as if I was not wearing it. It has 3 charges, regaining all 24 hours after using the last charge. I can use 1 charge to cast Dominate Monster on a devil, but if it can see me do so, the devil knows I tried to charm it. The helm also allows me to know the exact location of all devils within 1000 ft and I can telepathically communicate with one of them at a time, or broadcast my thoughts to all within range, but they have no special means of replying. If I use its dominating power while I'm on the Nine Hells, there is a chance it attracts a narzugon.\",\n\tdescriptionFull : \"This bulky, eyeless helmet is made for a pit fiend but magically resizes to fit the heads of other wearers.\\n   While wearing the helm, you can see out of it as though you weren't wearing it. In addition, you know the exact location and type of all devils within 1,000 feet of you. You can telepathically communicate with a devil within range, or you can broadcast your thoughts to all devils within range. The devils receiving your broadcasted thoughts have no special means of replying to them.\\n   The helm has 3 charges. As an action, you can expend 1 charge to cast dominate monster (save DC 21), which affects devils only. (The spell fails and the charge is wasted if you target any creature that's not a devil.) If a devil can see you when you cast this spell on it, the devil knows you tried to charm it. The helm regains all its charges 24 hours after its last charge is expended.\\n   If you are not a devil, using the helm's dominate monster property in the Nine Hells has a 20 percent chance of attracting a narzugon, which arrives on the back of a nightmare mount in 1d4 hours. The narzugon tries to recover the helm, killing you if necessary to obtain it. If it gets the helm, the narzugon tries to deliver it to its infernal master.\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a creature that can speak infernal\",\n\tprereqeval : function(v) { return (/infernal/i).test(v.languageProfs); },\n\tusages : 3,\n\trecovery : \"Special\",\n\tfixedDC : 21,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"dominate monster\"],\n\t\tselection : [\"dominate monster\"],\n\t\tfirstCol : 1\n\t}],\n\tspellChanges : {\n\t\t\"dominate monster\" : {\n\t\t\tdescription : \"Devil save or charmed, follows telepathic commands, 1 a for complete control; save on dmg\",\n\t\t\tchanges : \"Can only affect a devil.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"infernal puzzle box\"] = {\n\tname : \"Infernal Puzzle Box\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This cube-shaped container is around 15 cm on a side and is composed of airtight, interlocking parts. It can't be magically opened and is immune to all damage. I can figure out how to open it in 1 hour with a DC 30 Investigation check. If failed by 5 or more, I take 12d6 psychic damage, Wis DC 18 halves.\",\n\tdescriptionLong : \"This cube-shaped container is around 15 cm on a side and is composed of airtight, interlocking parts made from materials found in the Nine Hells. It can't be magically opened and is immune to all damage while shut. Every infernal puzzle box has an unique mundane way of opening it. I can figure out how to open this box in 1 hour with a DC 30 Investigation check, but if I fail this check by 5 or more, I take 12d6 psychic damage, Wisdom save DC 18 halves. Once I figure out the trick or sequence of steps needed to open this box, I can open it as an action, allowing access to the box's contents.\",\n\tdescriptionFull : \"An infernal puzzle box is a cube-shaped container 5 to 6 inches on a side, composed of airtight, interlocking parts made from materials found in the Nine Hells. Most of these boxes are made of infernal iron, though some are carved from bone or horn. Infernal puzzle boxes are used to safeguard diabolical contracts signed between devils and mortals, even after the terms of these contracts are fulfilled. An empty infernal puzzle box weighs 3 pounds regardless of the materials used to fashion it.\\n   When an object small enough to fit inside an infernal puzzle box is placed in it, the container magically seals shut around the object, and no magic can force the box open. The sealed box becomes immune to all damage as well. Every infernal puzzle box is constructed with a unique means of opening it. The trick to solving the puzzle is always mundane, never magical. Once a creature figures out the trick or sequence of steps needed to open a particular infernal puzzle box, that creature can open the box as an action, allowing access to the box's contents.\\n   A creature that spends 1 hour holding an infernal puzzle box while trying to open it can make a DC 30 Intelligence (Investigation) check. If the check succeeds, the creature figures out the trick or sequence of steps needed to open the box. If the check fails by 5 or more, the creature must make a DC 18 Wisdom saving throw, taking 42 (12d6) psychic damage on a failed save, or half as much damage on a successful one.\",\n\tweight : 3\n}\n// [dupl_start] reprint from Mordenkainen's Tome of Foes\nif (!SourceList.MToF) {\n\tMagicItemsList[\"infernal tack\"] = {\n\t\tname : \"Infernal Tack\",\n\t\tsource : [[\"MToF\", 167], [\"DiA\", 224]],\n\t\ttype : \"wondrous item\",\n\t\trarity : \"legendary\",\n\t\tnotLegalAL : true,\n\t\tdescription : \"While wearing the spurs of this set, the nightmare equipped with the bridle, bit, reins, saddle, and stirrups is under my command. As an action, I can have it appear in 20 ft at the start of my next turn. It acts on as my ally on my initiative, remains for 1 day, until I or it dies, or I dismiss it as an action. If it dies, it reforms in 24 h.\",\n\t\tdescriptionLong : \"This tack consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with the tack serves whoever wears the spurs until the wearer dies or the tack is removed. As an action, I can clash the spurs together or scrape them through blood, causing the nightmare to appear within 20 ft at the start of my next turn. It acts as my ally on my initiative count, remains for 1 day, until I or it dies, or until I dismiss it as an action. If it dies, it reforms within 24 hours, after which I can summon it again. The tack doesn't create a nightmare from thin air; one must first be subdued so the tack can be placed on it.\",\n\t\tdescriptionFull : \"A narzugon binds a nightmare to its service with infernal tack, which consists of a bridle, bit, reins, saddle, stirrups, and spurs. A nightmare equipped with infernal tack must serve whoever wears the spurs until the wearer dies or the tack is removed.\\n   You can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of your next turn, within 20 feet of you. It acts as your ally and takes its turn on your initiative count. It remains for 1 day, until you or it dies, or until you dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which you can summon it again.\\n   The tack doesn't conjure a nightmare from thin air; one must first be subdued so the tack can be placed on it. No nightmare accepts this forced servitude willingly, but some eventually form strong loyalties to their masters and become true partners in evil.\",\n\t\tattunement : true,\n\t\tweight : 26, // riding saddle (25) + bit and bridle (1)\n\t\tprerequisite : \"Requires attunement by a creature of evil alignment\",\n\t\tprereqeval : function(v) { return (/evil/i).test(What(\"Alignment\")); },\n\t\taction : [[\"action\", \"\"]],\n\t\tcreaturesAdd : [[\"Nightmare\", true,\n\t\tfunction (AddRemove, prefix) {\n\t\t\tif (!AddRemove) return;\n\t\t\t// Show equipment section\n\t\t\tMakeCompMenu_CompOptions(prefix, [\"companion\", \"visible\", \"comp.eqp\"], true);\n\t\t\t// Add equipment when added\n\t\t\tvar equip = [\"bit and bridle\", \"riding\"];\n\t\t\tfor (var i = 0; i < equip.length; i++) {\n\t\t\t\tvar gear = GearList[equip[i]];\n\t\t\t\tif (!gear) continue;\n\t\t\t\tAddToInv(prefix + \"comp\", \"l\", gear.name, gear.amount, gear.weight, \"\", false, false, false, false);\n\t\t\t}\n\t\t\t// Add notes\n\t\t\tvar note = \"I can use an action to call a nightmare equipped with infernal tack by clashing the spurs together or scraping them through blood. The nightmare appears at the start of my next turn, within 20 ft of me.\\nThe nightmare acts as my ally and takes its turn on my initiative count. It remains for 1 day, until I or it dies, or until I dismiss it as an action. If the nightmare dies, it reforms in the Nine Hells within 24 hours, after which I can summon it again.\";\n\t\t\tValue(prefix + \"Comp.eqp.Notes\", What(\"Unit System\") === \"metric\" ? ConvertToMetric(note, 0.5) : note);\n\t\t}]]\n\t}\n} // dupl_end\nMagicItemsList[\"matalotok\"] = {\n\tname : \"Matalotok\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"weapon (warhammer)\",\n\trarity : \"legendary\",\n\tdescription : \"This ancient warhammer, the Frost Father, was fashioned by Thrym. It is frigid to the touch and wreathed in mist. I'm immune to cold damage while holding it. Whenever I deal damage to a creature with it, it radiates a burst of intense cold in a 30-ft radius sphere, dealing 3d6 cold damage to all creatures within.\",\n\tdescriptionFull : \"Matalotok, the Frost Father, is an ancient hammer fashioned by Thrym, the god of frost giants. The favored weapon of the demon lord Kostchtchie, Matalotok is frigid to the touch and wreathed in mist.\\n   You are immune to cold damage while holding Matalotok. Whenever it deals damage to a creature, the hammer radiates a burst of intense cold in a 30-foot-radius sphere. Each creature in that area takes 10 (3d6) cold damage.\",\n\tattunement : true,\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /matalotok/i,\n\t\tname : \"Matalotok\",\n\t\tsource : [[\"DiA\", 224]],\n\t\tdescription : \"Versatile (1d10); On hit: all in 30-ft radius take 3d6 cold damage\",\n\t\tselectNow : true\n\t}],\n\tsavetxt : { immune : [\"cold\"] }\n}\nMagicItemsList[\"obsidian flint dragon plate\"] = {\n\tname : \"Obsidian Flint Dragon Plate\",\n\tsource : [[\"DiA\", 224]],\n\ttype : \"armor (plate)\",\n\trarity : \"legendary\",\n\tdescription : \"I gain a +2 bonus to AC and resistance to poison damage while I wear this plate armor. In addition, I gain advantage on ability checks and saving throws made to avoid or end the grappled condition on myself.\",\n\tdescriptionFull : \"You gain a +2 bonus to AC and resistance to poison damage while you wear this armor. In addition, you gain advantage on ability checks and saving throws made to avoid or end the grappled condition on yourself.\",\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*obsidian)(?=.*flint)(?=.*dragon)(?=.*plate).*$/i,\n\t\tname : \"Obsidian Flint Dragon Plate\",\n\t\tsource : [[\"DiA\", 224]],\n\t\ttype : \"heavy\",\n\t\tac : \"18+2\",\n\t\tstealthdis : true,\n\t\tweight : 65,\n\t\tstrReq : 15,\n\t\tselectNow : true\n\t}],\n\tdmgres : [\"Poison\"],\n\tsavetxt : { adv_vs : [\"grappled\"] },\n\tweight : 65\n}\nvar DiA_shieldOfTheHiddenLordFullDescription = [\n\t\"The Shield of the Hidden Lord is of celestial origin and serves as a prison for the pit fiend Gargauth, whose mortal followers revere it as a god. Over time, Gargauth's evil has warped the shield's appearance, so that its celestial motif and designs have become twisted into a fiendish face that subtly moves in disturbing ways.\",\n\t\"While holding this shield, you gain a +2 bonus to AC and resistance to fire damage.\",\n\t\">>Sentience<<. The Shield of the Hidden Lord is sentient as long as it imprisons Gargauth. While sentient, the shield has the following properties:\",\n\t\"\\u2022 The shield has an Intelligence of 22, a Wisdom of 18, and a Charisma of 24, as well as hearing and truesight out to a range of 120 feet.\",\n\t\"\\u2022 The shield can speak, read, and understand Common and Infernal, and it can communicate telepathically with any creature it can sense within 120 feet of it. Its voice is a deep, hollow whisper.\",\n\t\"\\u2022 The shield has 3 charges. You can use an action to expend 1 charge to cast Fireball or 2 charges to cast Wall of Fire from the shield (save DC 21 for each). The Wall of Fire spell lasts for 1 minute (no concentration required). The shield regains all expended charges daily at dawn.\",\n\t\"\\u2022 Anytime during your turn, the shield can choose to radiate an aura of dread for 1 minute. (This is not a power of the shield that you control.) Any creature hostile to you that starts its turn within 20 feet of the shield must make a DC 18 Wisdom saving throw. On a failed save, the creature is frightened until the start of its next turn. On a successful save, the creature is immune to this power of the shield for the next 24 hours. Once the shield uses this power, it can't use it again until the next dawn.\\n\",\n\t\">>Gargauth's Personality<<. Gargauth desperately seeks freedom but can't escape on its own. The pit fiend won't reveal its true nature, referring to itself only as the Hidden Lord. It drops hints and subtle suggestions that it is an angel trapped in an unholy prison. If released from the shield, the pit fiend honors the terms of whatever bargain it struck to facilitate its escape.\",\n\t\"While trapped in the shield, Gargauth carefully steers the shield's current owner toward committing acts of cruelty and domination, hoping to condemn the individual's soul to the Nine Hells. Conflict occurs if the shield's owner does anything that would make it more difficult for Gargauth to escape its prison, such as leaving the shield in a place where others are unlikely to find it.\",\n\t\"Gargauth doesn't know how to escape from the shield. The pit fiend believes (incorrectly) that it can break free of the shield if it's brought to the Nine Hells, for it's convinced that the shield's powers are weaker there.\",\n\t\">>Freeing Gargauth<<. Casting dispel evil and good on the shield has a 1 percent chance of freeing the pit fiend, or automatically succeeds if the spell is cast by a solar, a planetar, or an archdevil. A god can release the pit fiend by touching the shield and speaking Gargauth's name. When released, Gargauth appears in a random, unoccupied space as close to the shield as possible.\"\n];\nMagicItemsList[\"shield of the hidden lord\"] = {\n\tname : \"Shield of the Hidden Lord\",\n\tsource : [[\"DiA\", 225]],\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tstoryItemAL : true,\n\tdescription : 'This shield grants me +2 bonus to AC and resistance to fire damage. It has 3 charges, regaining all at dawn. I can expend 1 charge to cast Fireball or 2 charges to cast Wall of Fire from it at DC 21. The shield is sentient and can communicate telepathically with any creature within 120 ft of it. See \"Notes\" page for more.',\n\tdescriptionFull : DiA_shieldOfTheHiddenLordFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\tattunement : true,\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(DiA_shieldOfTheHiddenLordFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(to) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tweight : 6,\n\tshieldAdd : [\"Shield of the Hidden Lord\", 4, 6],\n\tusages : 3,\n\trecovery : \"Dawn\",\n\tfixedDC : 21,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"fireball\"],\n\t\tselection : [\"fireball\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"wall of fire\"],\n\t\tselection : [\"wall of fire\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"wall of fire\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"The Wall of Fire lasts for 1 minute and does not require concentration.\"\n\t\t}\n\t}\n}\nvar DiA_soulCoinFullDescription = [\n\t\"Soul coins are about 5 inches across and about 1 inch thick, minted from infernal iron. Each coin weighs one-third of a pound, and is inscribed with Infernal writing and a spell that magically binds a single soul to the coin. Because each soul coin has a unique soul trapped within it, each has a story. A creature might have been imprisoned as a result of defaulting on a deal, while another might be the victim of a night hag's curse.\",\n\t\">>Carrying Soul Coins<<. To hold a soul coin is to feel the soul bound within it\\u2014overcome with rage or fraught with despair.\",\n\t\"An evil creature can carry as many soul coins as it wishes (up to its maximum weight allowance). A non-evil creature can carry a number of soul coins equal to or less than its Constitution modifier without penalty. A non-evil creature carrying a number of soul coins greater than its Constitution modifier has disadvantage on its attack rolls, ability checks, and saving throws.\",\n\t\">>Using a Soul Coin<<. A soul coin has 3 charges. A creature carrying the coin can use its action to expend 1 charge from a soul coin and use it to do one of the following:\",\n\t\"\\u2022 >>Drain Life<<. You siphon away some of the soul's essence and gain 1d10 temporary hit points.\",\n\t\"\\u2022 >>Query<<. You telepathically ask the soul a question and receive a brief telepathic response, which you can understand. The soul knows only what it knew in life, but it must answer you truthfully and to the best of its ability. The answer is no more than a sentence or two and might be cryptic.\\n\",\n\t\">>Freeing a Soul<<. Casting a spell that removes a curse on a soul coin frees the soul trapped within it, as does expending all of the coin's charges. The coin itself rusts from within and is destroyed once the soul is released. A freed soul travels to the realm of the god it served or the outer plane most closely tied to its alignment (DM's choice). The souls of lawful evil creatures released from soul coins typically emerge from the River Styx as lemure devils.\",\n\t\"A soul can also be freed by destroying the coin that contains it. A soul coin has AC 19, 1 hit point for each charge it has remaining, and immunity to all damage except that which is dealt by a hellfire weapon or an infernal war machine's furnace.\",\n\t\"Freeing a soul from a soul coin is considered a good act, even if the soul belongs to an evil creature.\",\n\t\">>Hellish Currency<<. Soul coins are a currency of the Nine Hells and are highly valued by devils. The coins are used among the infernal hierarchy to barter for favors, bribe the unwilling, and reward the faithful for services rendered.\",\n\t\"Soul coins are created by Mammon and his greater devils on Minauros, the third layer of the Nine Hells, in a vast chamber where the captured souls of evil mortals are bound into the coins. These coins are then distributed throughout the Nine Hells to be used for goods and services, infernal deals, dark bargains, and bribes.\"\n];\nMagicItemsList[\"soul coin\"] = {\n\tname : \"Soul Coin\",\n\tsource : [[\"DiA\", 225], [\"CoA\", 269]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Each coin traps a unique soul, whose rage or despair is felt by me while I hold it. A coin has 3 charges. As an action, I can expend 1 charge to either siphon the soul's essence to grant me 1d10 temporary HP or telepathically ask the soul a question which it must answer truthfully. See \\\"Notes\\\" page for more.\",\n\tdescriptionFull : DiA_soulCoinFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(DiA_soulCoinFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(answer) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}],\n\tweight : 0.3,\n\tusages : 3,\n\trecovery : \"Never\",\n\taction : [[\"action\", \"\"]]\n}\n"
  },
  {
    "path": "WotC material/pub_20190919_LR.js",
    "content": "var iFileName = \"pub_20190919_LR.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the Locathah from the Locathah Rising adventure from Extra Life to MPMB's Character Record Sheet\n\nSourceList.LR = {\n\tname : \"Locathah Rising\",\n\tabbreviation : \"LR\",\n\tgroup : \"Extra Life\",\n\turl : \"https://www.dmsguild.com/product/289261/Locathah-Rising-5e\",\n\tdate : \"2019/09/19\",\n\tdefaultExcluded : true\n};\n\nRaceList.locathah = {\n\tsource : [[\"LR\", 24]],\n\tregExpSearch : /locathah/i,\n\tname : \"Locathah\",\n\tplural : \"Locathah\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 30, enc : 20 },\n\t},\n\tlanguageProfs : [\"Common\", \"Aquan\"],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\", \"frightened\", \"paralyzed\", \"poisoned\", \"stunned\", \"sleep\"],\n\t},\n\tskills : [\"athletics\", \"perception\"],\n\tscores : [2, 1, 0, 0, 0, 0],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\n\t\tname : \"Natural Armor\",\n\t\tsource : [[\"LR\", 24]],\n\t\tac : 12,\n\t\tselectNow : true\n\t}],\n\tage : \" mature to adulthood by the age of 10 but have been known to live up to 80 years\",\n\theight : \" stand between 5 and 6 feet tall\",\n\tweight : \" average about 150 pounds\",\n\theightMetric : \" stand between 1,5 and 1,8 metres tall\",\n\tweightMetric : \" weigh around 70 kg\",\n\ttrait : \"Locathah (+2 Strength, +1 Dexterity)\\n   Limited Amphibiousness: I can breathe air and water, but need to be submerged at least once every 4 hours to avoid suffocating.\\n   Leviathan Will: I have advantage on saving throws against being charmed, frightened, paralyzed, poisoned, stunned, or put to sleep.\\n   Natural Armor: I have an AC of 12 + Dexterity modifier + shield.\\n   Observant & Athletic: I have proficiency in the Athletics and Perception skills.\"\n};\n"
  },
  {
    "path": "WotC material/pub_20191112_AWM.js",
    "content": "var iFileName = \"pub_20191112_Adventure-with-Muk.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the Dankwood Goblin race from the Adventure with Muk from Extra Life to MPMB's Character Record Sheet\r\n// Be aware that this race is not legal in adventurers league!\r\n\r\nSourceList[\"AwM\"] = {\r\n\tname : \"Adventure with Muk\",\r\n\tabbreviation : \"AwM\",\r\n\tgroup : \"Extra Life\",\r\n\turl : \"https://www.dmsguild.com/product/294712/Adventure-with-Muk-5e\",\r\n\tdate : \"2019/11/12\",\r\n\tdefaultExcluded : true\r\n};\r\n\r\nRaceList[\"dankwood goblin\"] = {\r\n\tregExpSearch : /^(?=.*dankwood)(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\tname : \"Dankwood goblin\",\r\n\tsortname : \"Goblin, Dankwood\",\r\n\tsource : [[\"AwM\", 35]],\r\n\tplural : \"Dankwood goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Dankwood Goblin (+2 Dexterity, +1 Wisdom)\"+\r\n\t\"\\n   Speak with Small Beasts: Through sounds and gestures, I can communicate simple ideas with Small or smaller beasts. Dankwood goblins love animals and often keep squirrels, badgers, rabbits, moles, woodpeckers, and other creatures as beloved pets.\"+\r\n\t\"\\n   Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20191119_ERftLW.js",
    "content": "var iFileName = \"pub_20191119_ERftLW.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the content from Eberron: Rising from the Last War to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"E:RLW\"] = {\r\n\tname : \"Eberron: Rising from the Last War\",\r\n\tabbreviation : \"E:RLW\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://dnd.wizards.com/products/eberron\",\r\n\tdate : \"2019/11/19\"\r\n};\r\n\r\n// The changeling\r\nRaceList[\"changeling\"] = {\r\n\tregExpSearch : /changeling/i,\r\n\tname : \"Changeling\",\r\n\tsource : [[\"E:RLW\", 18]],\r\n\tplural : \"Changelings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Deception, Intimidation, Insight, and Persuasion\",\r\n\tlanguageProfs : [\"Common\", 2],\r\n\tage : \" mature slightly faster than humans but share a similar lifespan, typically a century or less. While a changeling can transform to conceal their age, the effects of aging affect them similarly to humans\",\r\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Charisma and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 0, 2],\r\n\ttrait : \"Changeling (+2 Charisma and +1 to one other ability score of my choice)\\nShapechanger: As an action, I can change my appearance and voice to or from a humanoid-shaped form I have seen, not changing my equipment. I determine the specifics of the form like hair length, eye color, and sex. I can adjust my height and weight, but not so much that my size changes. I revert back when I die. I can make myself appear as a member of another race, though none of my game statistics change.\",\r\n\taction : [[\"action\", \"Shapechanger\"]]\r\n};\r\n\r\n// Double bladed scimitar\r\nWeaponsList[\"double-bladed scimitar\"] = {\r\n\tregExpSearch : /^(?=.*double)(?=.*scimitar).*$/i,\r\n\tname : \"Double-bladed scimitar\",\r\n\tnameAlt : [\"Scimitar, Double-bladed\"],\r\n\tsource : [[\"E:RLW\", 22], [\"WGtE\", 74]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [2, 4, \"slashing\"],\r\n\trange : \"Melee\",\r\n\tweight : 6,\r\n\tdescription : \"Two-handed; With Attack action, one attack as bonus action for 1d4\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Revenant blade feat\r\nFeatsList[\"revenant blade\"] = {\r\n\tname : \"Revenant Blade\",\r\n\tsource : [[\"E:RLW\", 22]],\r\n\tprerequisite : \"Being an Elf\",\r\n\tprereqeval : function(v) { return (/^(?!.*half)(?=.*(elf|eladrin|avariel|grugach|shadar-kai)).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You are descended from a master of the double blade and their skills have passed on to you. You gain the following benefits:\\n \\u2022 Increase your Dexterity or Strength score by 1, to a maximum of 20.\\n \\u2022 While you are holding a double-bladed scimitar with two hands, you gain a + 1 bonus to Armor Class.\\n \\u2022 A double-bladed scimitar has the finesse property when you wield it.\",\r\n\tdescription : \"My mastery with the double bladed scimitar allows me to treat it as having the finesse trait. In addition, I gain +1 AC while wielding it with two hands. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'double-bladed scimitar' && fields.Proficiency) {\r\n\t\t\t\t\tif (!/finesse/i.test(fields.Description)) fields.Description = 'Finesse, ' + fields.Description.substr(0,1).toLowerCase() + fields.Description.substr(1);\r\n\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"Double-bladed scimitars count as having finesse for me.\",\r\n\t\t\t1\r\n\t\t]\r\n\t},\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm wielding a double-bladed weapon in two hands.\",\r\n\t\tstopeval : function (v) { return v.usingShield && !(/animated/i).test(What(\"AC Shield Bonus Description\")) || !CurrentWeapons.known.some(function (n) { return n[0] == \"double-bladed scimitar\" || (WeaponsList[n[0]] && WeaponsList[n[0]].baseWeapon == \"double-bladed scimitar\"); }); }\r\n\t}\r\n};\r\n// [dupl_start] reprints from Volo's Guide to Monsters\r\nif (!SourceList.V) {\r\n\tRaceList[\"bugbear\"] = {\r\n\t\tregExpSearch : /bugbear/i,\r\n\t\tname : \"Bugbear\",\r\n\t\tsource : [[\"V\", 119], [\"E:RLW\", 25], [\"W\", 174]],\r\n\t\tplural : \"Bugbears\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskills : [\"Stealth\"],\r\n\t\tage : \" reach adulthood at age 16 and live up to 80 years\",\r\n\t\theight : \" are between 6 and 8 feet tall (6'0\\\" + 2d12\\\")\",\r\n\t\tweight : \" weigh between 250 and 350 lb (200 + 2d12 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" are between 1,9 and 2,4 metres tall (185 + 5d12 cm)\",\r\n\t\tweightMetric : \" weigh between 115 and 160 kg (90 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [2, 1, 0, 0, 0, 0],\r\n\t\tfeatures : {\r\n\t\t\t\"surprise attack\" : {\r\n\t\t\t\tname : \"Surprise Attack\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"Combat\",\r\n\t\t\t\tadditional : \"2d6\"\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Bugbear (+2 Strength, +1 Dexterity)\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\nLong-Limbed: I have an additional 5 feet reach with melee attacks that I make on my turn.\\nSurprise Attack: If I hit a surprised creature on my first turn in combat, that attack deals an extra 2d6 damage. I can do this only once per combat.\",\r\n\t\tcarryingCapacity : 2\r\n\t};\r\n\tRaceList[\"goblin\"] = {\r\n\t\tregExpSearch : /^(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\t\tname : \"Goblin\",\r\n\t\tsource : [[\"V\", 119], [\"G\", 17], [\"E:RLW\", 26], [\"W\", 174]],\r\n\t\tplural : \"Goblins\",\r\n\t\tsize : 4,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\t\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\t\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\t\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\t\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\t\tscores : [0, 2, 1, 0, 0, 0],\r\n\t\tfeatures : {\r\n\t\t\t\"fury of the small\" : {\r\n\t\t\t\tname : \"Fury of the Small\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadditional : levels.map(function (n) { return \"+\" + n + \" damage\"; })\r\n\t\t\t}\r\n\t\t},\r\n\t\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\t\ttrait : \"Goblin (+2 Dexterity, +1 Constitution)\"+\r\n\t\t\"\\n \\u2022 Fury of the Small: Once per short rest, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my level.\"+\r\n\t\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n\t};\r\n\tRaceList[\"hobgoblin\"] = {\r\n\t\tregExpSearch : /hobgoblin/i,\r\n\t\tname : \"Hobgoblin\",\r\n\t\tsource : [[\"V\", 119], [\"E:RLW\", 26], [\"W\", 175]],\r\n\t\tplural : \"Hobgoblins\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tarmorProfs : [true, false, false, false],\r\n\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh between 150 and 200 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh between 70 and 90 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 2, 1, 0, 0],\r\n\t\tfeatures : {\r\n\t\t\t\"saving face\" : {\r\n\t\t\t\tname : \"Saving Face\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Hobgoblin (+2 Constitution, +1 Intelligence)\\n\\nMartial Training: I am proficient with two martial weapons of my choice and light armor.\\n\\nSaving Face: Once per short rest, when I miss an attack roll or fail an ability check or a saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5).\"\r\n\t};\r\n\t// The Orc, which is a duplicate from VGtM after the VGtM 2020 errata\r\n\tRaceList[\"orc\"] = {\r\n\t\tregExpSearch : /^(?!.*half)(?=.*\\bor(c|k)).*$/i,\r\n\t\tname : \"Orc\",\r\n\t\tsource : [[\"V\", 120], [\"E:RLW\", 32], [\"W\", 178]],\r\n\t\tplural : \"Orcs\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskillstxt : \"Choose two from Animal Handling, Insight, Intimidation, Medicine, Nature, Perception, and Survival.\",\r\n\t\tage : \" reach adulthood at age 12 and live up to 50 years\",\r\n\t\theight : \" are usually over 6 feet tall (5'4\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh between 230 and 280 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" are usually over 1,8 metres tall (160 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh between 100 and 125 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [2, 0, 1, 0, 0, 0],\r\n\t\ttrait : \"Orc (+2 Strength, +1 Constitution)\\n\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\n\\nAggressive: As a bonus action, I can move up to my speed toward an enemy that I can see or hear. I must end my move closer to this enemy than I started.\",\r\n\t\taction : [[\"bonus action\", \"Aggressive (dash to enemy)\"]],\r\n\t\tcarryingCapacity : 2\r\n\t};\r\n} // dupl_end\r\n\r\n// The kalashtar\r\nRaceList[\"kalashtar\"] = {\r\n\tregExpSearch : /kalashtar/i,\r\n\tname : \"Kalashtar\",\r\n\tsource : [[\"E:RLW\", 30]],\r\n\tplural : \"Kalashtar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Quori\", 1],\r\n\tsavetxt : { immune : [\"effects that require me to dream\"], text : [\"Adv. on all Wis saves\"] },\r\n\tadvantages : [ [\"Wisdom\", true] ],\r\n\tdmgres : [\"Psychic\"],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from 5 and a half to well over 6 feet tall (5'4\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 145 lb (110 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from 1,7 to 1,9 metres tall (160 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (50 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [0, 0, 0, 0, 2, 1],\r\n\ttrait : \"Kalashtar (+2 Wisdom, +1 Charisma)\\n   Dual Mind: I have advantage on Wisdom saving throws.\\n   Mind Link: I can speak telepathically to any creature I can see within 10 ft \\xD7 my level, as long as it can speak at least one language. As an action, I can give that creature the ability to speak telepathically back to me while it can see me and is within range. This lasts for 1 hour, until I use this ability on another creature, or until I end it as an action.\\n   Severed from Dreams: I don't dream and thus immune to spells that affect dreams.\",\r\n\taction : [['action', 'Mind Link (start/stop)']]\r\n};\r\n\r\n// The four subraces of the shifter\r\nRaceList[\"beasthide shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*beast)(?=.*hide).*$/i,\r\n\tname : \"Beasthide shifter\",\r\n\tsortname : \"Shifter, Beasthide\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Beasthide shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Athletics\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\ttrait : \"Beasthide Shifter (+1 Strength, +2 Constitution)\\n\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to 1d6 + my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have a +1 bonus to AC.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return \"1d6 + \" + n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"longtooth shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\tname : \"Longtooth shifter\",\r\n\tsortname : \"Shifter, Longtooth\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Longtooth shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\tname : \"Longtooth Fangs\",\r\n\t\tsource : [[\"E:RLW\", 34]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tdescription : \"Only while shifted; One attack as bonus action\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 1, 0, 0, 0, 0],\r\n\ttrait : \"Longtooth Shifter (+2 Strength, +1 Dexterity)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I use my elongated fangs to make unarmed strikes, dealing 1d6 piercing damage. As a bonus action, I can maken one attack with my fangs.\",\r\n\taction : [['bonus action', 'Longtooth Fangs attack (while shifted)']],\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"swiftstride shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*swift)(?=.*stride).*$/i,\r\n\tname : \"Swiftstride shifter\",\r\n\tsortname : \"Shifter, Swiftstride\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Swiftstride shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Acrobatics\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Swiftstride Shifter (+2 Dexterity, +1 Charisma)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nWhile transformed like this, my walking speed increases with 10 ft.\\nAs a reaction when an enemy ends its turn within 5 ft of me while I'm shifted, I can move 10 ft without provoking opportunity attacks.\",\r\n\taction : [['reaction', 'Stride (while shifted)']],\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"wildhunt shifter\"] = {\r\n\tregExpSearch : /^(?!.*(multiverse|motm\\b))(?=.*shifter)(?=.*wild)(?=.*hunt).*$/i,\r\n\tname : \"Wildhunt shifter\",\r\n\tsortname : \"Shifter, Wildhunt\",\r\n\tsource : [[\"E:RLW\", 34]],\r\n\tplural : \"Wildhunt shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tskills : [\"Survival\"],\r\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 2, 0],\r\n\ttrait : \"Wildhunt Shifter (+1 Dexterity, +2 Wisdom)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have advantage on Wisdom checks and no creature within 30 ft can make an attack roll with advantage against me, unless I'm incapacitated.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tadditional : levels.map(function (n) { return n + \" + Con mod temp HP\"; })\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// The warforged\r\nRaceList[\"warforged\"] = {\r\n\tregExpSearch : /warforged/i,\r\n\tname : \"Warforged\",\r\n\tsource : [[\"E:RLW\", 36]],\r\n\tplural : \"Warforged\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Any tool\", 1]],\r\n\tskillstxt : \"Choose any one skill and any one tool\",\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\timmune : [\"disease\", \"magical aging effects\"],\r\n\t\tadv_vs : [\"poison\"]\r\n\t},\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" typical are between two and thirty years old. The maximum warforged lifespan remains a mystery; so far, warforged have shown no signs of deterioration due to age. Warforged are immune to magical aging effects.\",\r\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\tscorestxt : \"+2 Constitution and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 2, 0, 0, 0],\r\n\ttrait : \"Warforged (+2 Constitution and +1 to one other ability score\" + (typePF ? \"\" : \" of my choice\") + \")\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: I gain +1 AC and I can don only armor with which I'm proficient. To don or doff armor, I must (un)incorporate it into my body over the course of 1 hour, which can be done during resting. Donned armor can't be removed against my will while I'm alive.\",\r\n\textraAC : {\r\n\t\tname : \"Integrated Protection\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC.\"\r\n\t}\r\n};\r\n\r\n// Dragonmarks subraces\r\nRaceList[\"dragonmark detection half-elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*detection)|(?=.*house)(?=.*medani)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Detection (Half-Elf)\",\r\n\tsource : [[\"E:RLW\", 40]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Wisdom and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\ttrait : \"Half-Elf, Dragonmark of Detection (+2 Wisdom \\u0026 +1 to one other ability of my choice)\\n   Deductive Intuition: I can add +1d4 to my Intelligence (Investigation) and Wisdom (Insight) checks.\\n   Magical Detection: I can cast Detect Magic and Detect Poison and Disease each once per long rest. At 3rd level, I can also cast See Invisibility once per long rest. Wisdom is my spellcasting ability for these and none of them require material components.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5, // changed from Int to Wis by errata\r\n\tfeatures : {\r\n\t\t\"magical detection\" : {\r\n\t\t\tname : \"Magical Detection (level 1)\",\r\n\t\t\tlimfeaname : \"Detect Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Detection (level 1)\",\r\n\t\t\t\tspells : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\t\tselection : [\"detect magic\", \"detect poison and disease\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Poison and Disease\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect poison and disease\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"see invisibility\" : {\r\n\t\t\tname : \"Magical Detection (level 3)\",\r\n\t\t\tlimfeaname : \"See Invisibility\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Detection (level 3)\",\r\n\t\t\t\tspells : [\"see invisibility\"],\r\n\t\t\t\tselection : [\"see invisibility\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"see invisibility\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"detect evil and good\", \"detect poison and disease\", \"detect thoughts\", \"find traps\", \"clairvoyance\", \"nondetection\", \"arcane eye\", \"divination\", \"legend lore\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Detect Evil and Good, Detect Poison and Disease, Detect Thoughts, Find Traps, Clairvoyance, Nondetection, Arcane Eye, Divination, and Legend Lore.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding half-orc\"] = {\r\n\tregExpSearch : /^((?=.*half)(?=.*\\bor(c|k))((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk))).*$/i,\r\n\tname : \"Half-orc (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Half-Orc)\",\r\n\tsource : [[\"E:RLW\", 41]],\r\n\tplural : \"Half-orcs (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood around age 14 and rarely live longer than 75 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 2, 0],\r\n\ttrait : \"Half-Orc, Dragonmark of Finding (+1 Constitution, +2 Wisdom)\\n   Hunter's Intuition: I can add +1d4 to my Wisdom (Perception) and Wisdom (Survival) checks.\\n   Finder's Magic: I can cast Hunter's Mark once per long rest. At 3rd level, I can also cast Locate Object once per long rest. Wisdom is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"finder's magic\" : {\r\n\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\tlimfeaname : \"Hunter's Mark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\t\tspells : [\"hunter's mark\"],\r\n\t\t\t\tselection : [\"hunter's mark\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"locate object\" : {\r\n\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Locate Object\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\t\tspells : [\"locate object\"],\r\n\t\t\t\tselection : [\"locate object\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"faerie fire\", \"longstrider\", \"locate animals or plants\", \"locate object\", \"clairvoyance\", \"speak with plants\", \"divination\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Faerie Fire, Longstrider, Locate Animals or Plants, Locate Object, Clairvoyance, Speak with Plants, Divination, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding human\"] = {\r\n\tregExpSearch : /^((?=.*human)((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk))).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Human)\",\r\n\tsource : [[\"E:RLW\", 41]],\r\n\tplural : \"Human (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 2, 0],\r\n\ttrait : \"Human, Dragonmark of Finding (+1 Constitution, +2 Wisdom)\\n   Hunter's Intuition: I can add +1d4 to my Wisdom (Perception) and Wisdom (Survival) checks.\\n   Finder's Magic: I can cast Hunter's Mark once per long rest. At 3rd level, I can also cast Locate Object once per long rest. Wisdom is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"finder's magic\" : {\r\n\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\tlimfeaname : \"Hunter's Mark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 1)\",\r\n\t\t\t\tspells : [\"hunter's mark\"],\r\n\t\t\t\tselection : [\"hunter's mark\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"locate object\" : {\r\n\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\tlimfeaname : \"Locate Object\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Finder's Magic (level 3)\",\r\n\t\t\t\tspells : [\"locate object\"],\r\n\t\t\t\tselection : [\"locate object\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"faerie fire\", \"longstrider\", \"locate animals or plants\", \"locate object\", \"clairvoyance\", \"speak with plants\", \"divination\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Faerie Fire, Longstrider, Locate Animals or Plants, Locate Object, Clairvoyance, Speak with Plants, Divination, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark handling human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*handling)|(?=.*house)(?=.*vadalis)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Handling (Human)\",\r\n\tsource : [[\"E:RLW\", 42]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Wisdom and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\ttrait : \"Human, Dragonmark of Handling (+2 Wisdom, +1 to one other ability score of my choice)\\n   Wild Intuition: I can add +1d4 to my Wisdom (Animal Handling) and Intelligence (Nature) checks.\\n   Primal Connection: I can cast Animal Friendship and Speak with Animals each once per short rest. Wisdom is my spellcasting ability for these.\\n   The Bigger They Are: When I cast Animal Friendship or Speak with Animals, I can target a monstrosity with an Intelligence of 3 or lower instead of a beast.\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"primal connection\" : {\r\n\t\t\tname : \"Primal Connection\",\r\n\t\t\tlimfeaname : \"Animal Friendship\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Speak with Animals\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\tspells : [\"animal friendship\", \"speak with animals\"],\r\n\t\t\t\tselection : [\"animal friendship\", \"speak with animals\"],\r\n\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"animal friendship\" :\r\n\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"beasts\", \"beasts/monstrosities\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"speak with animals\" :\r\n\t\t\t\t\t\tspellObj.description = \"Communicate verbally with monstrosities Int<4 or beasts for duration; interactions limited by their Int\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"When I cast Animal Friendship or Speak with Animals, I can target a monstrosity with an Intelligence of 3 or lower instead of a beast.\"\r\n\t\t],\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"animal friendship\", \"speak with animals\", \"beast sense\", \"calm emotions\", \"beacon of hope\", \"conjure animals\", \"aura of life\", \"dominate beast\", \"awaken\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Animal Friendship, Speak with Animals, Beast Sense, Calm Emotions, Beacon of Hope, Conjure Animals, Aura of Life, Dominate Beast, and Awaken.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark healing halfling\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*healing)|(?=.*house)(?=.*jorasco)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Healing (Halfling)\",\r\n\tsource : [[\"E:RLW\", 43]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Halfling, Dragonmark of Healing (+2 Dexterity, +1 Wisdom)\\nLucky: When I roll a 1 on an attack, check, or save, I can reroll it but must use the result.\" + (typePF ? \" \" : \"\\n\") + \"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\\nMedical Intuition: I can add +1d4 to my Wisdom (Medicine) and herbalism kit checks.\\nHealing Touch: I can cast Cure Wounds each once per long rest. At 3rd level, I can also cast Lesser Restoration once per long rest. Wisdom is my spellcasting ability for these.\\nSpells of the Mark: I add several spells to \" + (typePF ? \"my class' spell list.\" : \"the spell list of my spellcasting class(es).\"),\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"healing touch\" : {\r\n\t\t\tname : \"Healing Touch (level 1)\",\r\n\t\t\tlimfeaname : \"Cure Wounds\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Healing Touch (level 1)\",\r\n\t\t\t\tspells : [\"cure wounds\"],\r\n\t\t\t\tselection : [\"cure wounds\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tname : \"Healing Touch (level 3)\",\r\n\t\t\tlimfeaname : \"Lesser Restoration\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Healing Touch (level 3)\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cure wounds\", \"healing word\", \"lesser restoration\", \"prayer of healing\", \"aura of vitality\", \"mass healing word\", \"aura of purity\", \"aura of life\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Cure Wounds, Healing Word, Lesser Restoration, Prayer of Healing, Aura of Vitality, Mass Healing Word, Aura of Purity, Aura of Life, and Greater Restoration.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark hospitality halfling\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*hospitality)|(?=.*house)(?=.*ghallanda)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Hospitality (Halfling)\",\r\n\tsource : [[\"E:RLW\", 44]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Halfling, Dragonmark of Hospitality (+2 Dexterity, +1 Charisma)\\nLucky: When I roll a 1 on an attack, check, or save, I can reroll it but must use the result.\" + (typePF ? \" \" : \"\\n\") + \"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\\nEver Hospitable: I can add +1d4 to my Charisma (Persuasion), brewer's supplies, and cook's utensils checks.\" + (typePF ? \"\\n\" : \" \") + \"Innkeeper's Magic: I know the Prestidigitation cantrip and I can cast Purify Food and Drink and Unseen Servant each once per long rest. Charisma as my spellcasting ability for these. Spells of the Mark: I add several spells to my class' spell list.\",\r\n\tspellcastingAbility : 6,\r\n\tfeatures : {\r\n\t\t\"innkeeper's magic\" : {\r\n\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\tlimfeaname : \"Purify Food and Drink\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\t\tspells : [\"prestidigitation\"],\r\n\t\t\t\tselection : [\"prestidigitation\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Innkeeper's Magic\",\r\n\t\t\t\tspells : [\"purify food and drink\", \"unseen servant\"],\r\n\t\t\t\tselection : [\"purify food and drink\", \"unseen servant\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Unseen Servant\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"goodberry\", \"sleep\", \"aid\", \"calm emotions\", \"create food and water\", \"leomund's tiny hut\", \"aura of purity\", \"mordenkainen's private sanctum\", \"hallow\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Goodberry, Sleep, Aid, Calm Emotions, Create Food and Water, Leomund's Tiny Hut, Aura of Purity, Mordenkainen's Private Sanctum, and Hallow.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark making human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*making)|(?=.*house)(?=.*cannith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Making (Human)\",\r\n\tsource : [[\"E:RLW\", 45]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Intelligence and +1 to one other ability score of my choice\",\r\n\tscores : [0, 0, 0, 2, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Making (+2 Intelligence, +1 to one other ability score of my choice)\\n   Artisan's Intuition: I can add +1d4 to Arcana checks and checks with artisan's tools.\\n   Spellsmith: I know the Mending cantrip. I can cast Magic Weapon once per long rest and when I do so, it doesn't require concentration and lasts for 1 hour. Intelligence is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\" + (typePF ? \"\" : \"\\n   Maker's Gift: I gain proficiency with one type of artisan's tools of my choice.\"),\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"spellsmith\" : {\r\n\t\t\tname : \"Spellsmith\",\r\n\t\t\tlimfeaname : \"Magic Weapon\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spellsmith\",\r\n\t\t\t\tspells : [\"mending\"],\r\n\t\t\t\tselection : [\"mending\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Spellsmith\",\r\n\t\t\t\tspells : [\"magic weapon\"],\r\n\t\t\t\tselection : [\"magic weapon\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"magic weapon\" : {\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"1 nonmagical weapon becomes magical with an +1 bonus to attack and damage\",\r\n\t\t\t\t\tchanges : \"When using my Spellsmith racial trait, this spell doesn't require concentration and lasts for 1 hour.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"identify\", \"tenser's floating disk\", \"continual flame\", \"magic weapon\", \"conjure barrage\", \"elemental weapon\", \"fabricate\", \"stone shape\", \"creation\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Identify, Tenser's Floating Disk, Continual Flame, Magic Weapon, Conjure Barrage, Elemental Weapon, Fabricate, Stone Shape, and Creation.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark passage human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*passage)|(?=.*house)(?=.*orien)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Passage (Human)\",\r\n\tsource : [[\"E:RLW\", 46]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity and +1 to one other ability score of my choice\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Passage (+2 Dexterity, +1 to one other ability score of my choice)\\n   Intuitive Motion: I can add +1d4 to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a land vehicle.\\n   Magical Passage: I can cast Misty Step once per long rest, using Dexterity as my spellcasting ability.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\\n   Courier's Speed: My base walking speed is 35 ft.\",\r\n\tspellcastingAbility : 2,\r\n\tfeatures : {\r\n\t\t\"magical passage\" : {\r\n\t\t\tname : \"Magical Passage\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magical Passage\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"expeditious retreat\", \"jump\", \"misty step\", \"pass without trace\", \"blink\", \"phantom steed\", \"dimension door\", \"freedom of movement\", \"teleportation circle\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Expeditious Retreat, Jump, Misty Step, Pass Without Trace, Blink, Phantom Steed, Dimension Door, Freedom of Movement, and Teleportation Circle.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark scribing gnome\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*scribing)|(?=.*house)(?=.*sivis)).*$/i,\r\n\tname : \"Gnome (dragonmark)\",\r\n\tsortname : \"Dragonmark, Scribing (Gnome)\",\r\n\tsource : [[\"E:RLW\", 47]],\r\n\tplural : \"Gnomes (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Gnome, Dragonmark of Scribing (+2 Intelligence, +1 Charisma)\\n   Gifted Scribe: I can add +1d4 to my Intelligence (History) checks and ability checks with calligrapher's supplies.\\n   Scribe's Insight: I know the Message cantrip. I can cast Comprehend Languages once per long rest. At 3rd level, I can also cast Magic Mouth once per long rest. Intelligence is my spellcasting ability for these spells.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"scribe's insight\" : {\r\n\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\tlimfeaname : \"Comprehend Languages\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\t\tspells : [\"message\"],\r\n\t\t\t\tselection : [\"message\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Scribe's Insight (level 1)\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"magic mouth\" : {\r\n\t\t\tname : \"Scribe's Insight (level 3)\",\r\n\t\t\tlimfeaname : \"Magic Mouth\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight (level 3)\",\r\n\t\t\t\tspells : [\"magic mouth\"],\r\n\t\t\t\tselection : [\"magic mouth\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"comprehend languages\", \"illusory script\", \"animal messenger\", \"silence\", \"sending\", \"tongues\", \"arcane eye\", \"confusion\", \"dream\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Comprehend Languages, Illusory Script, Animal Messenger, Silence, Sending, Tongues, Arcane Eye, Confusion, and Dream.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark sentinel human\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*sentinel)|(?=.*house)(?=.*deneith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Sentinel (Human)\",\r\n\tsource : [[\"E:RLW\", 48]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 2, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Sentinel (+2 Constitution, +1 Wisdom)\\n  Sentinel's Intuition: I can add +1d4 my Wisdom (Insight) and Wisdom (Perception) checks.\\n  Guardian's Shield: I can cast Shield once per long rest, using Wisdom as my spellcasting ability.\\n  Vigilant Guardian: Once per long rest as a reaction when a creature I can see within 5 ft is hit by an attack roll, I can swap places with it and I'm hit by the attack instead.\\n  Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"vigilant guardian\" : {\r\n\t\t\tname : \"Vigilant Guardian\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [['reaction', '']]\r\n\t\t},\r\n\t\t\"guardian's shield\" : {\r\n\t\t\tname : \"Guardian's Shield\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guardian's Shield\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"compelled duel\", \"shield of faith\", \"warding bond\", \"zone of truth\", \"counterspell\", \"protection from energy\", \"death ward\", \"guardian of faith\", \"bigby's hand\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Compelled Duel, Shield of Faith, Warding Bond, Zone of Truth, Counterspell, Protection from Energy, Death Ward, Guardian of Faith, and Bigby's Hand.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark shadow elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*shadow)|(?=.*house)(?=.*(phiarlan|thuranni))).*$/i,\r\n\tname : \"Elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Shadow (Elf)\",\r\n\tsource : [[\"E:RLW\", 49]],\r\n\tplural : \"Elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Elf, Dragonmark of Shadow (+2 Dexterity, +1 Charisma)\\n   Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\n   Cunning Intuition: I can add +1d4 to my Cha\" + (typePF ? \"risma\" : \"\") + \" (Performance) and Dex\" + (typePF ? \"terity\" : \"\") + \" (Stealth) checks.\\n   Shape Shadows: I know the Minor Illusion cantrip. At 3rd level, I can cast Invisibility once per long rest. Charisma is my spellcasting ability for these.\\n   Spells of the Mark: I add several spells to \" + (typePF ? \"my class' spell list.\" : \"the spell list of my spellcasting class(es).\"),\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shape Shadows (level 1)\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"shape shadows\" : {\r\n\t\t\tname : \"Shape Shadows (level 3)\",\r\n\t\t\tlimfeaname : \"Invisibility\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Shape Shadows (level 3)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"disguise self\", \"silent image\", \"darkness\", \"pass without trace\", \"clairvoyance\", \"major image\", \"greater invisibility\", \"hallucinatory terrain\", \"mislead\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Disguise Self, Silent Image, Darkness, Pass Without Trace, Clairvoyance, Major Image, Greater Invisibility, Hallucinatory Terrain, and Mislead.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark storm half-elf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*storm)|(?=.*house)(?=.*lyrandar)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Storm (Half-Elf)\",\r\n\tsource : [[\"E:RLW\", 50]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\ttrait : \"Half-Elf, Dragonmark of Storm (+1 Dexterity, +2 Charisma)\\n   Windwright's Intuition: I can add +1d4 to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a water or air vehicle.\\n   Headwinds: I know the Gust cantrip. Once I reach 3rd level, I can cast Gust of Wind once per long rest. Charisma is my spellcasting ability for these spells.\\n   Spells of the Mark: I add several spells to the spell list of my spellcasting class(es).\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Headwinds (level 1)\",\r\n\t\tspells : [\"gust\"],\r\n\t\tselection : [\"gust\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\tlimfeaname : \"Gust of Wind\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"feather fall\", \"fog cloud\", \"gust of wind\", \"levitate\", \"sleet storm\", \"wind wall\", \"conjure minor elementals\", \"control water\", \"conjure elemental\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Feather Fall, Fog Cloud, Gust of Wind, Levitate, Sleet Storm, Wind Wall, Conjure Minor Elementals, Control Water, and Conjure Elemental.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark warding dwarf\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*warding)|(?=.*house)(?=.*kundarak)).*$/i,\r\n\tname : \"Dwarf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Warding (Dwarf)\",\r\n\tsource : [[\"E:RLW\", 51]],\r\n\tplural : \"Dwarves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 2, 1, 0, 0],\r\n\ttrait : \"Dwarf, Dragonmark of Warding (+2 Constitution, +1 Intelligence)\\n\" + (typePF ? \"   \" : \"- \") + \"Warder's Intuition: I can add +1d4 to my Intelligence (Investigation) checks and ability checks with thieves' tools.\" + (typePF ? \"\\n   Stonecunning: When I make an Int (History) check related to origin of stonework, I am considered having expertise in the History skill.\\n   \" : \" - Stonecunning: Expertise in History when concerning stonework.\\n- \") + \"Wards and Seals: I can cast Alarm and Mage Armor each once per long rest. At 3rd level, I can also cast Arcane Lock once per long rest. Intelligence is my spellcasting ability for these and none of them require material components.\\n\" + (typePF ? \"   \" : \"- \") + \"Spells of the Mark: I add several spells to my class' spell list(s).\",\r\n\tspellcastingAbility : 4,\r\n\tfeatures : {\r\n\t\t\"wards and seals\" : {\r\n\t\t\tname : \"Wards and Seals (level 1)\",\r\n\t\t\tlimfeaname : \"Alarm\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 1)\",\r\n\t\t\t\tspells : [\"alarm\", \"mage armor\"],\r\n\t\t\t\tselection : [\"alarm\", \"mage armor\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Mage Armor\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"alarm\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mage armor\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"arcane lock\" : {\r\n\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"alarm\", \"armor of agathys\", \"arcane lock\", \"knock\", \"glyph of warding\", \"magic circle\", \"leomund's secret chest\", \"mordenkainen's faithful hound\", \"antilife shell\"]);\r\n\t\t\t},\r\n\t\t\t\"My race adds extra spells to the spell list(s) of my spellcasting class(es): Alarm, Armor of Agathys, Arcane Lock, Knock, Glyph of Warding, Magic Circle, Leomund's Secret Chest, Mordenkainen's Faithful Hound, and Antilife Shell.\"\r\n\t\t]\r\n\t}\r\n};\r\n\r\n// [dupl_start] Gust cantrip reprint\r\nif (!SpellsList[\"gust\"]) {\r\n\tSpellsList[\"gust\"] = {\r\n\t\tname : \"Gust\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 157], [\"E\", 19], [\"E:RLW\", 50], [\"UA:D\", 6], [\"WGtE\", 107]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"Med. or smaller crea save or push 5 ft; or push unattended 5 lb obj 10 ft; or harmless sensory effect\",\r\n\t\tdescriptionFull : \"You seize the air and compel it to create one of the following effects at a point you can see within range.\" + \"\\n \" + \"\\u2022 One Medium or smaller creature that you choose must succeed on a Strength saving throw or be pushed up to 5 feet away from you.\" + \"\\n \" + \"\\u2022 You create a small blast of air capable of moving one object that is neither held nor carried and that weighs no more than 5 pounds. The object is pushed up to 10 feet away from you. It isn't pushed with enough force to cause damage.\" + \"\\n \" + \"\\u2022 You create a harmless sensory affect using air, such as causing leaves to rustle, wind to slam shutters shut, or your clothing to ripple in a breeze.\"\r\n\t};\r\n} // dupl_end\r\n\r\n// Aberrant Dragonmark feat\r\nFeatsList[\"aberrant dragonmark\"] = {\r\n\tname : \"Aberrant Dragonmark\",\r\n\tsource : [[\"E:RLW\", 52]],\r\n\tprerequisite : \"No other dragonmark\",\r\n\tprereqeval : function(v) { return !(/dragonmark/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have manifested an aberrant dragonmark. Determine its appearance and the flaw associated with it. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You learn a cantrip of your choice from the sorcerer spell list. In addition, choose a 1st-level spell from the sorcerer spell list. You learn that spell and can cast it through your mark. Once you cast it, you must finish a short or long rest before you can cast it again through the mark. Constitution is your spellcasting ability for these spells.\\n \\u2022 When you cast the 1st-level spell through your mark, you can expend one of your Hit Dice and roll it. If you roll an even number, you gain a number of temporary hit points equal to the number rolled. If you roll an odd number, one random creature within 30 feet of you (not including you) takes force damage equal to the number rolled. If no other creatures are in range, you take the damage.\\n\\nYou also develop a random flaw from the Aberrant Dragonmark Flaws table.\\n\\n\" + toUni(\"d8\\tFlaw\") + \"\\n  1\\tYour mark is a source of constant physical pain.\\n  2\\tYour mark whispers to you. Its meaning can be unclear.\\n  3\\tWhen you're stressed, the mark hisses audibly.\\n  4\\tThe skin around the mark is burned, scaly, or withered.\\n  5\\tAnimals are uneasy around you.\\n  6\\tYou have a mood swing any time you use your mark.\\n  7\\tYour looks change slightly whenever you use the mark.\\n  8\\tYou have horrific nightmares after you use your mark.\",\r\n\tdescription : \"I learn a sorcerer cantrip, and a 1st-level spell that I can cast once per short rest. They use Con as spellcasting ability. I can expend and roll an HD when I cast the level 1 spell. If even, I gain it in temp HP. If odd, a random target in 30 ft takes it in force damage. [+1 Con]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sorcerer cantrip\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [0, 0],\r\n\t}, {\r\n\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : 'oncesr'\r\n\t}]\r\n};\r\n\r\n// House Agent backgrounds\r\nBackgroundList[\"house agent\"] = { // the default is House Cannith\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*(noble|cannith)).*$/i,\r\n\tname : \"Agent of House Cannith\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tskills : [\"Investigation\", \"Persuasion\"],\r\n\tgold : 20,\r\n\tequipleft : [[\"Signet ring of house Cannith\", \"\", \"\"]],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"ID papers\", \"\", \"\"],\r\n\t\t[\"Purse (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"House Connections\",\r\n\ttrait : [\r\n\t\t\"I never let emotion complicate work.\",\r\n\t\t\"I'm always looking to improve efficiency.\",\r\n\t\t\"I share trivia about my house's business (medicine, ships, warforged).\",\r\n\t\t\"I hold myself and anyone I work with to extremely high standards.\",\r\n\t\t\"I never forget an insult made against myself or my house.\",\r\n\t\t\"I'm very excited and enthusiastic about everything my house does.\",\r\n\t\t\"I'm representing my house and take great pride in my personal appearance.\",\r\n\t\t\"I'm critical of monarchies and opposed to any restrictions on the houses.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Common Good\",\r\n\t\t\t\"Common Good: My house serves a vital function, and its prosperity will help everyone. (Good)\"\r\n\t\t],\r\n\t\t[\"Tradition\",\r\n\t\t\t\"Tradition: I uphold traditions of my house and bring honor to my family. (Lawful)\"\r\n\t\t],\r\n\t\t[\"Innovation\",\r\n\t\t\t\"Innovation: Abandon old traditions and find better ways to do things. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Power\",\r\n\t\t\t\"Power: I want to ensure the prosperity of my house and wield its power myself. (Evil)\"\r\n\t\t],\r\n\t\t[\"Discovery\",\r\n\t\t\t\"Discovery: I want to learn all I can, both for my house and for my own curiosity. (Any)\"\r\n\t\t],\r\n\t\t[\"Comfort\",\r\n\t\t\t\"Comfort: I want to ensure that me and friends of mine enjoy the best things in life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"My house is my family, and I would do anything for my family.\",\r\n\t\t\"I love someone from another house, but the relationship is forbidden.\",\r\n\t\t\"Someone I love was killed by a rival faction within my house, and I will have revenge.\",\r\n\t\t\"I don't care about the house as a whole, but I would do anything for my old mentor.\",\r\n\t\t\"I believe my house needs to evolve to survive, and I need to lead that change.\",\r\n\t\t\"I'm determined to impress the leaders of my house, and to become a leader myself.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I'm overly concerned with following established procedures and protocols.\",\r\n\t\t\"I'm obsessed with conspiracy theories and worried about secret societies and hidden demons.\",\r\n\t\t\"I believe that my house and bloodline makes me better than everyone else.\",\r\n\t\t\"I'm concealing a secret that could get me driven from my house.\",\r\n\t\t\"I have strong religious beliefs that aren't widespread in my house.\",\r\n\t\t\"I'm working for a hidden faction in my house that gives me secret assignments.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an House Agent Role\",\r\n\t\t\"Acquisition\",\r\n\t\t\"Investigation\",\r\n\t\t\"Research \\u0026 Development\",\r\n\t\t\"Security\",\r\n\t\t\"Intimidation\",\r\n\t\t\"Exploration\",\r\n\t\t\"Negotiation\",\r\n\t\t\"Covert Operations\"\r\n\t],\r\n\ttoolProfs : [\"Alchemist's supplies\", \"Tinker's tools\"]\r\n};\r\nAddBackgroundVariant(\"house agent\", \"deneith\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*deneith).*$/i,\r\n\tname : \"Agent of House Deneith\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Deneith\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"ghallanda\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*ghallanda).*$/i,\r\n\tname : \"Agent of House Ghallanda\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Ghallanda\", \"\", \"\"]],\r\n\ttoolProfs : [\"Brewer's supplies\", \"Cook's utensils\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"jorasco\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*jorasco).*$/i,\r\n\tname : \"Agent of House Jorasco\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Jorasco\", \"\", \"\"]],\r\n\ttoolProfs : [\"Alchemist's supplies\", \"Herbalism kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"kundarak\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*kundarak).*$/i,\r\n\tname : \"Agent of House Kundarak\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Kundarak\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"lyrandar\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*lyrandar).*$/i,\r\n\tname : \"Agent of House Lyrandar\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Lyrandar\", \"\", \"\"]],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (sea/air)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"medani\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*medani).*$/i,\r\n\tname : \"Agent of House Medani\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Medani\", \"\", \"\"]],\r\n\ttoolProfs : [\"Disguise kit\", [\"Thieves' tools\", \"Dex\"]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"orien\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*orien).*$/i,\r\n\tname : \"Agent of House Orien\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Orien\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], \"Vehicles (land)\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"phiarlan\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*phiarlan).*$/i,\r\n\tname : \"Agent of House Phiarlan\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Phiarlan\", \"\", \"\"]],\r\n\ttoolProfs : [\"Disguise kit\", [\"Musical instrument\", 1]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"sivis\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*sivis).*$/i,\r\n\tname : \"Agent of House Sivis\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Sivis\", \"\", \"\"]],\r\n\ttoolProfs : [\"Calligrapher's tools\", \"Forgery kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"tharashk\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*tharashk).*$/i,\r\n\tname : \"Agent of House Tharashk\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Tharashk\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Gaming set\", 1], [\"Thieves' tools\", \"Dex\"]]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"thuranni\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*thuranni).*$/i,\r\n\tname : \"Agent of House Thuranni\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Thuranni\", \"\", \"\"]],\r\n\ttoolProfs : [[\"Musical instrument\", 1], \"Poisoner's kit\"]\r\n});\r\nAddBackgroundVariant(\"house agent\", \"vadalis\", {\r\n\tregExpSearch : /^(?=.*agent)(?=.*house)(?=.*vadalis).*$/i,\r\n\tname : \"Agent of House Vadalis\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 94]],\r\n\tequipleft : [[\"Signet ring of house Vadalis\", \"\", \"\"]],\r\n\ttoolProfs : [\"Herbalism kit\", \"Vehicles (land)\"]\r\n});\r\nBackgroundFeatureList[\"house connections\"] = {\r\n\tdescription : \"As an agent of my house, I can always get food and lodging for my friends at a house enclave. My house usually provides me with necessary supplies and transportation if it assigns me a mission. I have many old friends, mentors, and rivals in my house that I might run into and be willing to help me depending on my current standing in the house.\",\r\n\tsource : [[\"E:RLW\", 53], [\"WGtE\", 95]]\r\n};\r\n\r\n// Artificer class\r\nClassList.artificer = {\r\n\tregExpSearch : /^(?=.*artificer)(?!.*wizard).*$/i,\r\n\tname : \"Artificer\",\r\n\tsource : [[\"E:RLW\", 54], [\"T\", 9]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Con\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Investigation, Medicine, Nature, Perception, and Sleight of Hand\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\", [\"Artisan's tools\", 1]],\r\n\t\tsecondary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false, [\"Firearms\"]]\r\n\t},\r\n\tequipment : \"Artificer starting equipment:\" +\r\n\t\t\"\\n \\u2022 Any two simple weapons;\" +\r\n\t\t\"\\n \\u2022 A light crossbow and 20 bolts;\" +\r\n\t\t\"\\n \\u2022 Studded leather armor -or- scale mail;\" +\r\n\t\t\"\\n \\u2022 Thieves' tools and a dungeoneer's pack;\" +\r\n\t\t\"\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Artificer Specialist\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingFactorRoundupMulti : true,\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells : \"list\",\r\n\t\tprepared : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"magical tinkering\" : {\r\n\t\t\tname : \"Magical Tinkering\",\r\n\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I use thieves/artisan's tools to give 1 property to a nonmagical tiny object:\",\r\n\t\t\t\t\" \\u2022 Emit light (5-ft radius bright light, equal dim), an odor, or a nonverbal sound\",\r\n\t\t\t\t\" \\u2022 Static visual effect on one surface, or emit a 6-second recorded message when tapped\",\r\n\t\t\t\t\"If I instill a property in more objects than I can have active, the oldest loses its property\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Intelligence modifier of active objects\",\r\n\t\t\taction : [[\"action\", \" (add/remove)\"]],\r\n\t\t\t\"infuse item\" : {\r\n\t\t\t\tname : \"Infuse Item\",\r\n\t\t\t\textraname : \"Artificer 2\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can turn nonmagical objects into magic items using my infusions\",\r\n\t\t\t\t\t\"I can attune to it immediately; If I infuse too many items, the oldest loses its magic\",\r\n\t\t\t\t\t\"The infusion lasts until my death + my Int mod in days, but ends if I unlearn the infusion\",\r\n\t\t\t\t\t\"Each infusion can only be used in one item at a time and only in appropriate items\",\r\n\t\t\t\t\t\"Whenever I gain an artificer level, I can replace an infusion I know with another\",\r\n\t\t\t\t\t\"I can use an infused item as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"infuse item\",\r\n\t\t\t\tminlevel : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast prepared artificer cantrips/spells, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"To cast, I must use thieves' or artisan's tools I'm proficient with as a spellcasting focus\",\r\n\t\t\t\t\"I can cast my prepared artificer spells as rituals if they have the ritual tag\",\r\n\t\t\t\t\"Whenever I gain an artificer level, I can swap one artificer cantrip I know for another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\treturn [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4][idx] + \" cantrips known\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic && spName == \"artificer\" && spellObj.compMaterial === SpellsList[spellKey].compMaterial) {\r\n\t\t\t\t\t\t\tvar extraFocus = classes.known.artificer.subclass.indexOf(\"artillerist\") !== -1 && classes.known.artificer.level > 4 ? \"my arcane firearm, \" : classes.known.artificer.subclass.indexOf(\"armorer\") !== -1 && classes.known.artificer.level > 2 ? \"my arcane armor, \" : \"\";\r\n\t\t\t\t\t\t\tspellObj.compMaterial = (spellObj.compMaterial ? spellObj.compMaterial + \".\\n\\nAlso a\" : \"A\") + \"lways requires my artificer spellcasting focus: thieves' tools, any set of artisan's tools I'm proficient with, \" + extraFocus + \"or an item infused by me.\";\r\n\t\t\t\t\t\t\tif (GetFeatureChoice(\"classes\", \"artificer\", \"spellcasting\", true).indexOf(\"don't change component column on spell sheet\") != -1) {\r\n\t\t\t\t\t\t\t\t// do nothing if set to do so\r\n\t\t\t\t\t\t\t} else if (!spellObj.components) {\r\n\t\t\t\t\t\t\t\tspellObj.components = \"M\\u0192\";\r\n\t\t\t\t\t\t\t} else if (spellObj.components.indexOf(\"M\") == -1) {\r\n\t\t\t\t\t\t\t\tspellObj.components += \",M\\u0192\";\r\n\t\t\t\t\t\t\t} else if ((/M([^\\u0192\\u2020]|$)/).test(spellObj.components)) {\r\n\t\t\t\t\t\t\t\tspellObj.components = spellObj.components.replace(\"M\", \"M\\u0192\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My artificer spells always require me to use a spellcasting focus: thieves' tools, artisan's tools I'm proficient with, or an item infused by me.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\textrachoices : [\"Don't change component column on spell sheet\"],\r\n\t\t\textraname : \"Artificer Spellcasting\",\r\n\t\t\t\"don't change component column on spell sheet\" : {\r\n\t\t\t\tname : \"[Meta] Don't alter spell sheets\",\r\n\t\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\t\tdescription: desc(\"The automation will not add M\\u0192 to each artificer spell on the generated spell sheets\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"infuse item\" : {\r\n\t\t\tname : \"Infuse Item\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 12]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to add Artificer Infusions to the third page'),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Artificer Infusion\",\r\n\t\t\textrachoices : [\"Boots of the Winding Path (prereq: level 6 artificer)\", \"Enhanced Arcane Focus\", \"Enhanced Defense (armor)\", \"Enhanced Defense (shield)\", \"Enhanced Weapon\", \"Homunculus Servant\", \"Radiant Weapon (prereq: level 6 artificer)\", \"Repeating Shot\", \"Repulsion Shield (prereq: level 6 artificer)\", \"Resistant Armor (prereq: level 6 artificer)\", \"Returning Weapon\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12;\r\n\t\t\t}),\r\n\t\t\t\"boots of the winding path (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Boots of the Winding Path\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The wearer can use a bonus action to teleport up to 15 ft to an unoccupied space it can see\",\r\n\t\t\t\t\t\"It must be a space that the wearer had occupied some time during the current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"pair of boots; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Boots of the Winding Path\"]\r\n\t\t\t},\r\n\t\t\t\"enhanced arcane focus\" : {\r\n\t\t\t\tname : \"Enhanced Arcane Focus\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription: desc(\"The holder has a bonus to spell attack rolls and ignores half cover with spell attacks\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"rod/staff/wand; attunement; +\" + (n < 10 ? 1 : 2);\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Enhanced Arcane Focus +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"enhanced arcane focus, +1 or +2\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense (armor)\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (shield)\") == -1;\r\n\t\t\t\t},\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Armor +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"armor, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense (shield)\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (armor)\") == -1;\r\n\t\t\t\t},\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Shield +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"shield, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced weapon\" : {\r\n\t\t\t\tname : \"Enhanced Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"simple/martial weapon; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Weapon +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tRemoveMagicItem(\"weapon, +1, +2, or +3\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"homunculus servant\" : {\r\n\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The item I infuse becomes the heart of a homunculus that immediately forms around it\",\r\n\t\t\t\t\t\"I determine its appearance; It is friendly to me and my allies and obeys my commands\",\r\n\t\t\t\t\t'See \"Homunculus Servant\" on a companion page to see its game statistics'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"gem or crystal of 100+ gp\",\r\n\t\t\t\taction : [[\"bonus action\", \" (command)\"]],\r\n\t\t\t\tcreaturesAdd : [[\"Homunculus Servant\"]],\r\n\t\t\t\tcreatureOptions : [{\r\n\t\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\t\tsize : 5,\r\n\t\t\t\t\ttype : \"Construct\",\r\n\t\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\t\tac : 13,\r\n\t\t\t\t\thp : 3,\r\n\t\t\t\t\thd : [2, 4],\r\n\t\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\t\tspeed : \"20 ft, fly 30 ft\",\r\n\t\t\t\t\tscores : [4, 15, 12, 10, 10, 7],\r\n\t\t\t\t\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\r\n\t\t\t\t\tskills : {\r\n\t\t\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\t\t\"stealth\" : 4\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\t\tcondition_immunities : \"exhaustion, poisoned\",\r\n\t\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\t\tpassivePerception : 14,\r\n\t\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\t\tattacksAction : 1,\r\n\t\t\t\t\tattacks : [{\r\n\t\t\t\t\t\tname : \"Force Strike\",\r\n\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tfeatures : [{\r\n\t\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\ttraits : [{\r\n\t\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\t\tdescription : \"The homunculus regains 2d6 hit points whenever the Mending spell is cast on it. Its HP total is equal to 1 + its creator's artificer level + its creator's Intelligence modifier. If it or its creator dies, the homunculus vanishes, leaving its heart in its space.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Evasion\",\r\n\t\t\t\t\t\tdescription : \"If the homunculus is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw, and only half damage if it fails. It can't use this trait if it's incapacitated.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tactions : [{\r\n\t\t\t\t\t\tname : \"Channel Magic\",\r\n\t\t\t\t\t\tdescription : \"As a reaction, the homunculus delivers a spell cast by its creator that has a range of touch. The homunculus must be within 120 ft of its creator to do so.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\theader : \"Construct\",\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\t\tHDobj.alt.push(1 + intMod + artLvl);\r\n\t\t\t\t\t\t\tHDobj.altStr.push(\" = 1 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + \" + artLvl + \" from its creator's artificer level\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t\t}\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"radiant weapon (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Radiant Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon has a +1 bonus to attack and damage rolls made with it and it sheds light\",\r\n\t\t\t\t\t\"As a bonus action, its wielder can start/stop the light, 30-ft radius bright + 30 ft dim light\",\r\n\t\t\t\t\t\"The weapon has 4 charges, regaining 1d4 expended charges daily at dawn\",\r\n\t\t\t\t\t\"As a reaction when hit by an attack, the wielder can expend 1 charge to blind its attacker\",\r\n\t\t\t\t\t\"The attacker makes a Con save (my spell save DC) or is blinded until its next turn ends\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"simple/martial weapon; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Radiant Weapon\"]\r\n\t\t\t},\r\n\t\t\t\"repeating shot\" : {\r\n\t\t\t\tname : \"Repeating Shot\",\r\n\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon requiring ammunition has a +1 bonus to attack and damage rolls made with it\",\r\n\t\t\t\t\t\"It magically produces one piece of ammunition whenever it is used to make a ranged attack\",\r\n\t\t\t\t\t\"Thus, it doesn't require ammunition and ignores the loading property if it has it\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"weapon with ammo; requires attunement\",\r\n\t\t\t\tmagicitemsAdd : [\"Repeating Shot\"]\r\n\t\t\t},\r\n\t\t\t\"repulsion shield (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Repulsion Shield\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The shield gives its wearer an extra +1 bonus to AC; It has 4 charges, regaining 1d4 daily\",\r\n\t\t\t\t\t\"As a reaction when hit in melee, the wearer can use 1 charge to push the attacker 15 ft\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"shield; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Repulsion Shield\"]\r\n\t\t\t},\r\n\t\t\t\"resistant armor (prereq: level 6 artificer)\" : {\r\n\t\t\t\tname : \"Resistant Armor\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The armor gives its wearer resistance to one type of damage, chosen at the time of infusion\",\r\n\t\t\t\t\t\"Choose from: acid,\tcold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\tmagicitemsAdd : [\"Armor of Resistance\"]\r\n\t\t\t},\r\n\t\t\t\"returning weapon\" : {\r\n\t\t\t\tname : \"Returning Weapon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\tdescription : \"After being used for a ranged attack, the weapon returns immediately; +1 magical bonus\",\r\n\t\t\t\tadditional : \"weapon with the thrown property\",\r\n\t\t\t\tmagicitemsAdd : [\"Returning Weapon\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"the right tool for the job\" : {\r\n\t\t\tname : \"The Right Tool for the Job\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: \" [using thieves' or artisan's tools]\" + desc(\"In 1 hour (during a rest) I can create a set of artisan's tools that last until I do so again\"),\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Artificer Specialist\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a specialism and put it in the \"Class\" field on the first page',\r\n\t\t\t\t\"Choose either alchemist, artillerist, or battle smith\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"tool expertise\" : {\r\n\t\t\tname : \"Tool Expertise\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [expertise with all tools I'm proficient with]\",\r\n\t\t\tskillstxt : \"Expertise with all tools I'm proficient with\",\r\n\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t},\r\n\t\t\"flash of genius\" : {\r\n\t\t\tname : \"Flash of Genius\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"As a reaction when I or another in 30 ft make a check/save, I can add my Int mod to it\"),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"magic item adept\" : {\r\n\t\t\tname : \"Magic Item Adept\",\r\n\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"It takes me half the normal time and gold to craft common and uncommon magic items\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"attune to \" + (n < 14 ? 4 : n < 18 ? 5 : 6) + \" magic items\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"spell-storing item\" : {\r\n\t\t\tname : \"Spell-Storing Item\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 13]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can infuse a 1st-/2nd-level artificer spell into an item I touch\",\r\n\t\t\t\t\"It has to be a weapon or spellcasting focus for me; Stored spells are lost if I do this again\",\r\n\t\t\t\t\"The spell must have a casting time of 1 action, but I need not have it prepared\",\r\n\t\t\t\t\"A creature holding an infused item can use an action to cast the spell, using my abilities\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"cast stored spell\",\r\n\t\t\tusages : \"2\\xD7 Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(2, Number(What('Int Mod')) * 2);\",\r\n\t\t\trecovery : typePF ? \"LR\" : \"long rest\"\r\n\t\t},\r\n\t\t\"magic item savant\" : {\r\n\t\t\tname : \"Magic Item Savant\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [ignore class/race/spell/level attune require.]\"\r\n\t\t},\r\n\t\t\"soul of artifice\" : {\r\n\t\t\tname : \"Soul of Artifice\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : \" [+1 on all saves per attuned magic item]\\n   As a reaction when I'm reduced to 0 HP, I can end one infusion to drop to 1 HP instead\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tsavetxt : {\r\n\t\t\t\ttext : [\"+1 to all saves per attuned magic item\"]\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tprereqLvl6 : function(v) { return classes.known.artificer.level >= 6; },\r\n\tprereqLvl10 : function(v) { return classes.known.artificer.level >= 10; },\r\n\tprereqLvl14 : function(v) { return classes.known.artificer.level >= 14; },\r\n};\r\n\r\n// Set the Artificer infusion list for Replicate Magic Item\r\nRunFunctionAtEnd(function() {\r\n\tvar artMi = [\r\n\t\t// 2nd-level artificer\r\n\t\t[\"alchemy jug\", 2],\r\n\t\t[\"bag of holding\", 2],\r\n\t\t[\"cap of water breathing\", 2],\r\n\t\t[\"goggles of night\", 2],\r\n\t\t[\"rope of climbing\", 2],\r\n\t\t[\"sending stones\", 2],\r\n\t\t[\"wand of magic detection\", 2],\r\n\t\t[\"wand of secrets\", 2],\r\n\t\t// 6th-level artificer\r\n\t\t[\"boots of elvenkind\", 6],\r\n\t\t[\"cloak of elvenkind\", 6],\r\n\t\t[\"cloak of the manta ray\", 6],\r\n\t\t[\"eyes of charming\", 6],\r\n\t\t[\"gloves of thievery\", 6],\r\n\t\t[\"lantern of revealing\", 6],\r\n\t\t[\"pipes of haunting\", 6],\r\n\t\t[\"ring of water walking\", 6],\r\n\t\t// 10th-level artificer\r\n\t\t[\"boots of striding and springing\", 10],\r\n\t\t[\"boots of the winterlands\", 10],\r\n\t\t[\"bracers of archery\", 10],\r\n\t\t[\"brooch of shielding\", 10],\r\n\t\t[\"cloak of protection\", 10],\r\n\t\t[\"eyes of the eagle\", 10],\r\n\t\t[\"gauntlets of ogre power\", 10],\r\n\t\t[\"gloves of missile snaring\", 10],\r\n\t\t[\"gloves of swimming and climbing\", 10],\r\n\t\t[\"hat of disguise\", 10],\r\n\t\t[\"headband of intellect\", 10],\r\n\t\t[\"helm of telepathy\", 10],\r\n\t\t[\"medallion of thoughts\", 10],\r\n\t\t[\"necklace of adaptation\", 10], // TCoE addition\r\n\t\t[\"periapt of wound closure\", 10],\r\n\t\t[\"pipes of the sewers\", 10],\r\n\t\t[\"quiver of ehlonna\", 10],\r\n\t\t[\"ring of jumping\", 10],\r\n\t\t[\"ring of mind shielding\", 10],\r\n\t\t[\"slippers of spider climbing\", 10],\r\n\t\t[\"ventilating lung\", 10],\r\n\t\t[\"winged boots\", 10],\r\n\t\t// 14th-level artificer\r\n\t\t[\"amulet of health\", 14],\r\n\t\t[\"arcane propulsion arm\", 14],\r\n\t\t[\"belt of giant strength\", 14, \"hill (str 21, rare)\"],\r\n\t\t[\"boots of levitation\", 14],\r\n\t\t[\"boots of speed\", 14],\r\n\t\t[\"bracers of defense\", 14],\r\n\t\t[\"cloak of the bat\", 14],\r\n\t\t[\"dimensional shackles\", 14],\r\n\t\t[\"gem of seeing\", 14],\r\n\t\t[\"horn of blasting\", 14],\r\n\t\t[\"ring of free action\", 14],\r\n\t\t[\"ring of protection\", 14],\r\n\t\t[\"ring of the ram\", 14]\r\n\t];\r\n\t// add all common items (except potions and scrolls)\r\n\tfor (var mi in MagicItemsList) {\r\n\t\tvar aMI = MagicItemsList[mi];\r\n\t\tif (aMI.type && !(/potion|scroll/i).test(aMI.type) &&\r\n\t\t\t( (!aMI.rarity && aMI.choices) || (aMI.rarity && aMI.rarity.toLowerCase() === \"common\") )\r\n\t\t) {\r\n\t\t\t// only look at choices if the main object has no rarity (i.e. the choices have different rarities)\r\n\t\t\tif (!aMI.rarity && aMI.choices) {\r\n\t\t\t\tfor (var c = 0; c < aMI.choices.length; c++) {\r\n\t\t\t\t\tvar choiceNmLC = aMI.choices[c].toLowerCase();\r\n\t\t\t\t\tvar aMIchoice = aMI[choiceNmLC];\r\n\t\t\t\t\t// skip if not common rarity or a potion or a scroll\r\n\t\t\t\t\tif (!aMIchoice || !aMIchoice.rarity || aMIchoice.rarity.toLowerCase() !== \"common\" || (/potion|scroll/i).test(aMIchoice.type)) continue;\r\n\t\t\t\t\tartMi.push([mi, 0, choiceNmLC]);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// the main object has rarity \"common\", so add it as a whole\r\n\t\t\t\tartMi.push([mi]);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tvar theObj = ClassList.artificer.features[\"infuse item\"];\r\n\tfor (var a = 0; a < artMi.length; a++) {\r\n\t\tvar MI0 = artMi[a][0];\r\n\t\tvar MI1 = artMi[a][1];\r\n\t\tvar MI2 = artMi[a][2];\r\n\t\tvar anArtMi = MagicItemsList[MI0];\r\n\t\tif (!anArtMi) continue;\r\n\t\tif (MI2 && anArtMi[MI2]) {\r\n\t\t\tanArtMi = {\r\n\t\t\t\tname : anArtMi[MI2].name ? anArtMi[MI2].name : anArtMi.name + \" [\" + MI2.capitalize() + \"]\",\r\n\t\t\t\trarity : anArtMi[MI2].rarity ? anArtMi[MI2].rarity : anArtMi.rarity,\r\n\t\t\t\tsource : anArtMi[MI2].source ? anArtMi[MI2].source : anArtMi.source,\r\n\t\t\t\tattunement : anArtMi[MI2].attunement !== undefined ? anArtMi[MI2].attunement : anArtMi.attunement\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar theI = anArtMi.name + (MI1 ? \" (prereq: level \" + MI1 + \" artificer)\" : \"\");\r\n\t\tvar theILC = theI.toLowerCase();\r\n\t\tif (theObj[theILC]) continue;\r\n\t\ttheObj[theILC] = {\r\n\t\t\tname : anArtMi.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : anArtMi.source,\r\n\t\t\tmagicitemsAdd : [anArtMi.name],\r\n\t\t\tadditional : anArtMi.attunement ? \"requires attunement\" : undefined,\r\n\t\t\tprereqeval : MI1 && MI1 > 2 ? ClassList.artificer[\"prereqLvl\" + MI1] : undefined,\r\n\t\t\tsubmenu : \"Replicate Magic Item\" + (MI1 ? \" (prereq: level \" + (\" \"+MI1).slice(-2) + \" artificer)\" : \" (common magic items) [\" + getLetterRange(anArtMi.name, [\"A-F\", \"G-Q\", \"R-Z\"]) + \"]\")\r\n\t\t};\r\n\t\ttheObj.extrachoices.push(theI);\r\n\t};\r\n});\r\n\r\n// Add the Alchemist specialism\r\nAddSubClass(\"artificer\", \"alchemist\", {\r\n\tregExpSearch : /^(?=.*alchemist)(?!.*wizard).*$/i,\r\n\tsubname : \"Alchemist\",\r\n\tfullname : \"Alchemist\",\r\n\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [proficient with alchemist's supplies]\",\r\n\t\t\ttoolProfs : [\"Alchemist's supplies\"],\r\n\t\t\tspellcastingExtra : [\"healing word\", \"ray of sickness\", \"flaming sphere\", \"melf's acid arrow\", \"gaseous form\", \"mass healing word\", \"blight\", \"death ward\", \"cloudkill\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Experimental Elixir\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest I can produce a number of elixirs in empty flasks I touch\",\r\n\t\t\t\t\"Also, as an action, I can expend a spell slot to create one elixir in a touched empty flask\",\r\n\t\t\t\t\"I need alchemist supplies on my person to do this; An elixir lasts until my next long rest\",\r\n\t\t\t\t\"For their effects, see the experimental elixir table on a Notes page; They work like potions\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 6 ? 1 : n < 15 ? 2 : 3) + \" elixir\" + (n < 6 ? \"\" : \"s\");\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Experimental Elixir Table\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Whenever I finish a long rest, I can magically produce a number of experimental elixir in empty flasks I touch. I can create one at 3rd level, two at 6th level, and three at 15th level.\",\r\n\t\t\t\t\t\"Creating an experimental elixir requires me to have alchemist's supplies on my person, and any elixir created like this lasts until it is drunk or until the end of my next long rest.\",\r\n\t\t\t\t\t\"I can create additional experimental elixirs by expending a spell slot of 1st level or higher for each one. When I do so, I use my action to create the elixir in an empty flask I touch.\",\r\n\t\t\t\t\t\"As an action, a creature can drink the elixir or administer it to an incapacitated creature.\",\r\n\t\t\t\t\t\"The effect of an elixir when someone drinks it is found on the table below. Roll to determine the effect for each elixir I create when finishing a long rest. I can choose the effect from the table for those created by expending a spell slot.\",\r\n\t\t\t\t\t\"\\n  D6\\tEFFECT\",\r\n\t\t\t\t\t\"1\\tHealing: The drinker regains a number of hit points equal to 2d4 + my Intelligence modifier.\",\r\n\t\t\t\t\t\"2\\tSwiftness: The drinker's walking speed increases by 10 ft for 1 hour.\",\r\n\t\t\t\t\t\"3\\tResilience: The drinker gains a +1 bonus to AC for 10 minutes.\",\r\n\t\t\t\t\t\"4\\tBoldness: The drinker can roll a d4 and add the number rolled to every attack roll and saving throw they make for the next minute.\",\r\n\t\t\t\t\t\"5\\tFlight: The drinker gains a flying speed of 10 ft for 10 minutes.\",\r\n\t\t\t\t\t\"6\\tTransformation: The drinker's body is transformed as if by the alter self spell. The drinker determines the transformation caused by the spell, the effects of which last for 10 minutes.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Alchemical Savant\",\r\n\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 15]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast spells using alchemist's supplies as my spellcasting focus, I can enhance them\",\r\n\t\t\t\t\"I add my Int mod to one roll of acid, fire, necrotic, or poison damage, or restoring HP\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1 && (/acid|fire|necrotic|poison/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells that deal acid, fire, necrotic, or poison damage which I cast while using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one damage die roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\tvar toAdd = Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"acid|fire|necro\\\\.?|necrotic|poison\", toAdd, true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", toAdd, true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells I cast using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one die rolled for dealing acid, fire, necrotic, or poison damage, or when restoring hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Restorative Reagents\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Drinking my experimental elixirs now also grants 2d6 + my Int mod in temp HP (min 1)\",\r\n\t\t\t\t\"I can cast Lesser Restoration with alchemist's supplies without a spell slot (Int mod times)\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tlimfeaname : \"Restorative Reagents: Lesser Restoration\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Restorative Reagents\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"Sp\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"lesser restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tchanges : \"When using my Restorative Reagents class feature, I can cast Lesser Restoration a number of times per long rest equal to my Intelligence modifier. To do so, I have to use alchemist's supplies as my spellcasting focus.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Chemical Mastery\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tadditional: \"each spell 1\\xD7 per long rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to acid and poison damage and immunity to being poisoned\",\r\n\t\t\t\t\"I can cast Greater Restoration and Heal each once per long rest without a spell slot\",\r\n\t\t\t\t\"I need alchemist's supplies as a focus for it, but the spells require no material components\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Acid\", \"Poison\"],\r\n\t\t\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Chemical Mastery\",\r\n\t\t\t\tspells : [\"greater restoration\", \"heal\"],\r\n\t\t\t\tselection : [\"greater restoration\", \"heal\"],\r\n\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"greater restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tdescription : \"Reduce exhaustion 1 lvl or end charm, petrify, curse, one ability score reduction, or max HP reduction\",\r\n\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Greater Restoration once per long rest without using a spell slot or requiring other material components.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"heal\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Heal once per long rest without using a spell slot.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the Artillerist specialism\r\nAddSubClass(\"artificer\", \"artillerist\", {\r\n\tregExpSearch : /^(?=.*artillerist)(?!.*wizard).*$/i,\r\n\tsubname : \"Artillerist\",\r\n\tfullname : \"Artillerist\",\r\n\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [proficient with woodcarver's tools]\",\r\n\t\t\ttoolProfs : [\"Woodcarver's tools\"],\r\n\t\t\tspellcastingExtra : [\"shield\", \"thunderwave\", \"scorching ray\", \"shatter\", \"fireball\", \"wind wall\", \"ice storm\", \"wall of fire\", \"cone of cold\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use woodcarver's or smith's tools to create an eldritch cannon in 5 ft\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+) to create one cannon\",\r\n\t\t\t\t\"I decide its size (Small/Tiny), appearance, type: flamethrower, force ballista, or protector\",\r\n\t\t\t\t\"It disappears after 1 hour, when reduced to 0 HP, or if I dismiss it as an action\",\r\n\t\t\t\t\"As a bonus action when within 60 ft of it, I can activate it to move and do its action\",\r\n\t\t\t\t\"I can't have multiple cannons; Select \\\"Eldritch Cannon\\\" on a companion page for its stats\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 15 ? \"1 cannon\" : \"2 cannons\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (create/dismiss)\"], [\"bonus action\", \" (activate)\"]],\r\n\t\t\tcreaturesAdd : [[\"Eldritch Cannon\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\t\tsize : [4, 5],\r\n\t\t\t\ttype : \"Object\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 18,\r\n\t\t\t\thp : 5,\r\n\t\t\t\thd : [\"\", \"\"],\r\n\t\t\t\tspeed : \"15 ft, climb 15 ft\",\r\n\t\t\t\tscores : [10, 10, 10, 10, 10, 10],\r\n\t\t\t\tdamage_immunities : \"poison, psychic\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 0,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flamethrower\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [2, 8, \"fire\"],\r\n\t\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\t\tdescription : \"Dex save, success - half damage; Unattended flammable objects ignite\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"The cannon exhales fire in an adjacent 15-ft cone that its creator designates. Each creature in that area must make a Dexterity saving throw against its creator's artificer spell save DC, taking 2d8 fire damage on a failed save or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Force Ballista\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [2, 8, \"force\"],\r\n\t\t\t\t\trange : \"120 ft\",\r\n\t\t\t\t\tdescription : \"Creature hit is pushed 5 ft away\",\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"The cannon's creator makes a ranged spell attack, originating from the cannon, at one creature or object within 120 ft of it. On a hit, the target takes 2d8 force damage, and if the target is a creature, it is pushed up to 5 ft away from the cannon.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Detonate\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [3, 8, \"force\"],\r\n\t\t\t\t\trange : \"20-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save, success - half damage; Destroys cannon\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\ttooltip : \"As an action, its creator can command the cannon to detonate if its creator is within 60 ft of it. Doing so destroys the cannon and forces each creature within 20 ft of it to make a Dexterity saving throw against its creator's artificer spell save DC, taking 3d8 force damage on a failed save or half as much damage on a successful one.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\tdescription : \"The cannon regains 2d6 HP whenever Mending is cast on it.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Cannon Type\",\r\n\t\t\t\t\tdescription : \"Upon creation, the creator decides what type of cannon it is: Flamethrower, Force Ballista, or Protector. What feature/attack it can use depends on its type.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Protector\",\r\n\t\t\t\t\tdescription : \"The cannon emits a burst of positive energy that grants itself and each creature of its creator's choice within 10 ft of it a number of temporary hit points equal to 1d8 + its creator's Intelligence modifier (minimum of +1).\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"As an object, the cannon only acts when activated by its creator, uses its creator's artificer spell attack and save DC, and has five times the artificer level in HP. It disappears after 1 hour, when reduced to 0 HP, or when its creator dismisses it as an action.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Activation\",\r\n\t\t\t\t\tdescription : \"The creator of the cannon can activate it as a bonus action while within 60 ft of it. Once activated, the cannon does as instructed, moves and uses the action associated with its type: flamethrower attack, force ballista attack, or protector feature.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Detonate (Artillerist 9)\",\r\n\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\tdescription : \"The creator of the cannon, can use an action to detonate the cannon when within 60 ft of it, see the attack section. The cannon's attacks now deal 3d8 damage.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// add the Detonate attack entry\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"Detonate\");\r\n\t\t\t\t\t\t// Upgrade the damage for the attacks\r\n\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"3d8\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// remove the Detonate attack entry\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t\t\t// Reset the damage for the attacks\r\n\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"2d8\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shimmering Field (Artillerist 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The creator of the cannon and their allies have half cover while within 10 ft of the cannon.\"\r\n\t\t\t\t}],\r\n\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\theader : \"Object\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\tHDobj.alt.push(5 * artLvl);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t},\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// remove the Detonate attack if adding this creature before artificer level 9\r\n\t\t\t\t\tif (lvl[0] < 9) Value(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Arcane Firearm\",\r\n\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 18]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : \" [lasts until I use this feature again]\" + desc([\r\n\t\t\t\t\"After a long rest, I can use woodcarver's tools to enhance a wand, staff, or rod\",\r\n\t\t\t\t\"If I use this as my spellcasting focus for an artificer spell, I add +1d8 to one damage\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\r\n\t\t\t\t\t\t\tvar d8Regex = /(\\d+)d8/;\r\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd8') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd8', 'Cd8');\r\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd8') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd8', 'Qd8');\r\n\t\t\t\t\t\t\t} else if (d8Regex.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d8Regex, Number(fields.Damage_Die.replace(d8Regex, '$1')) + 1 + 'd8');\r\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d8 dmg\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d8';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\",\r\n\t\t\t\t\t10\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d8\", true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Explosive Cannon\",\r\n\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"My eldritch cannons deal +1d8 damage; As an action, I can detonate a cannon in 60 ft\"),\r\n\t\t\taction : [[\"action\", \"Eldritch Cannon (detonate)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Fortified Position\",\r\n\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : \" [cannons grant half cover in 10 ft to allies]\" + desc([\r\n\t\t\t\t\"I can now have two cannons at the same time and activate both with one bonus action\",\r\n\t\t\t\t\"I can create 2 eldritch cannons with the same action (still only one with a spell slot)\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the Battle Smith specialism\r\nAddSubClass(\"artificer\", \"battle smith\", {\r\n\tregExpSearch : /^(?=.*battle)(?=.*smith)(?!.*wizard).*$/i,\r\n\tsubname : \"Battle Smith\",\r\n\tfullname : \"Battle Smith\",\r\n\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Battle Ready \\u0026 Tool Proficiency\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with martial weapons and smith's tools\",\r\n\t\t\t\t\"I can use my Intelligence modifier instead of Strength or Dexterity for magic weapons\"\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tspellcastingExtra : [\"heroism\", \"shield\", \"branding smite\", \"warding bond\", \"aura of vitality\", \"conjure barrage\", \"aura of purity\", \"fire shield\", \"banishing smite\", \"mass cure wounds\"],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && (v.theWea.isMagicWeapon || v.thisWeapon[1]) && (fields.Mod === 1 || fields.Mod === 2) && Number(What(\"Int\")) > Number(What(fields.Mod === 1 ? \"Str\" : \"Dex\"))) {\r\n\t\t\t\t\t\t\tfields.Mod = 4;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'I can use my Intelligence modifier instead of Strength or Dexterity for the attack and damage rolls of magic weapons.'\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Steel Defender\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I end a long rest, I can use smith's tools to create a steel defender\",\r\n\t\t\t\t\"I determine its appearance; It obeys my commands and it acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can take reactions and move on its turn even if I don't command it\",\r\n\t\t\t\t\"I can't have multiple at once; Select \\\"Steel Defender\\\" on a companion page for its stats\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (command)\"], [\"action\", \" (restore)\"]],\r\n\t\t\tcreaturesAdd : [[\"Steel Defender\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Steel Defender\",\r\n\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : 15,\r\n\t\t\t\thp : 12,\r\n\t\t\t\thd : [2, 8],\r\n\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [14, 12, 14, 4, 10, 6],\r\n\t\t\t\tsaves : [\"\", 3, 4, \"\", \"\", \"\"],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"athletics\" : 4,\r\n\t\t\t\t\t\"perception\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\t\t\t\tpassivePerception : 14,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Rend\",\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\tability : 0,\r\n\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"After using the reaction, the attacker takes this damage, no attack roll required\",\r\n\t\t\t\t\tmodifiers : [\"-Prof\", \"oInt\"],\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The steel defender obeys the commands of its creator and shares its proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Vigilant\",\r\n\t\t\t\t\tdescription : \"The \" + (typePF ? \"\" : \"steel \") + \"defender can't be surprised.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\tdescription : \"The steel defender regains 2d6 HP whenever the Mending spell is cast on it. Its HP total is equal to 2 + its creator's artificer level times five + its creator's Int mod. Within an hour of its death, while within 5 ft, its creator can take an action to use smith's tools and expend a spell slot to have it return to full HP after 1 minute. If its creator dies, \" + (typePF ? \"the steel defender also perishes\" : \"so does it\") + \".\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Repair (3/Day)\",\r\n\t\t\t\t\tdescription : \"As an action, the \" + (typePF ? \"\" : \"magical mechanisms inside the \") + \"steel defender restore\" + (typePF ? \"s\" : \"\") + \" 2d8 + its proficiency bonus in HP to itself or to one construct or object within 5 ft of it.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\tdescription : typePF ? \"As a reaction, the steel defender imposes disadvantage on the attack roll of one creature it can see that is within 5 ft of it, provided the attack roll is against a creature other than the defender.\" : \"As a reaction, the defender imposes disadv. on the attack roll of one creature it can see within 5 ft, provided the creature attacks another than the defender.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Arcane Jolt (Battle Smith 9)\",\r\n\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"Arcane Jolt (1d6): On hit, deal force damage or heal target in 30 ft\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Improved Defender (Battle Smith 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The steel defender's Deflect Attack now deals 1d4 + its creator's Intelligence modifier in force damage to the attacker.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"Comp.Use.AC\", mod : 2, text : \"The steel defender gains a +2 bonus to its AC (base AC of 15).\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (1d6)\", \"Arcane Jolt (2d6)\"));\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"Deflect Attack (reaction)\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (2d6)\", \"Arcane Jolt (1d6)\"));\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\theader : \"Construct\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\tvar artLvl5 = 5 * artLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(2 + intMod + artLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 2 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level (\" + artLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t},\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// remove the Deflect Attack (reaction) attack if adding this creature before artificer level 15\r\n\t\t\t\t\tif (lvl[0] < 15) Value(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Arcane Jolt\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar descr9 = desc([\r\n\t\t\t\t\t\"Once per turn when my steel defender or magic weapon hits a target, I can have it:\",\r\n\t\t\t\t\t\" \\u2022 Deal an extra +2d6 force damage to the target\",\r\n\t\t\t\t\t\" \\u2022 Restore 2d6 HP to another target within 30 ft of the one that was hit\"\r\n\t\t\t\t]);\r\n\t\t\t\tvar descr15 = descr9.replace(/2d6/g, '4d6');\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 9 ? \"\" : n < 15 ? descr9 : descr15;\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 9 ? \"\" : (n < 15 ? 2 : 4) + \"d6\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isMagicWeapon || v.thisWeapon[1]) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Arcane Jolt (' + (classes.known.artificer && classes.known.artificer.level >= 15 ? 4 : 2) + 'd6)';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn when I hit with a magic weapon or my steel defender hits with its attack, I can use my Arcane Jolt class feature to have the hit either deal extra force damage or heal somebody within 30 ft of the target hit.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Improved Defender\",\r\n\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My defender's Deflect Attack now deals its attacker 1d4 + my Int mod force damage\",\r\n\t\t\t\t\"My arcane jolt damage/healing increases to 4d6; My steel defender gains +2 AC\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the new special magic items for the artificer class (infusions)\r\nMagicItemsList[\"boots of the winding path\"] = {\r\n\tname : \"Boots of the Winding Path\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 21], [\"UA:A2\", 9], [\"UA:A3\", 12]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While wearing these boots, I can teleport up to 15 ft as a bonus action to an unoccupied space I can see, as long as I occupied that space at some point during the current turn.\",\r\n\tdescriptionFull : \"While wearing these boots, a creature can teleport up to 15 feet as a bonus action to an unoccupied space the creature can see. The creature must have occupied that space at some point during the current turn.\",\r\n\tattunement : true,\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"enhanced arcane focus, +1 or +2\"] = {\r\n\tname : \"Enhanced Arcane Focus, +1 or +2\",\r\n\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff)).*$/i,\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls (or +2 if the artificer that created it is level 10 or higher). In addition, I ignore half cover when making a spell attack.\",\r\n\tdescriptionFull : \"While holding this rod, staff, or wand, a creature gains a +1 bonus to spell attack rolls. In addition, the creature ignores half cover when making a spell attack.\\n   The bonus increases to +2 when it is created by someone with 10 levels or more in the artificer class.\",\r\n\tattunement : true,\r\n\tweight : 1,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tchoices : [\"+1 to spell attacks\", \"+2 to spell attacks (artificer level 10+)\"],\r\n\t\"+1 to spell attacks\" : {\r\n\t\tname : \"Enhanced Arcane Focus +1\",\r\n\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?=.*\\+1)(?!.*\\+2).*$/i,\r\n\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks (artificer level 10+)\" : {\r\n\t\tname : \"Enhanced Arcane Focus +2\",\r\n\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?!.*\\+1)(?=.*\\+2).*$/i,\r\n\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +2 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type == \"attack\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +2 bonus to spell attack rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"radiant weapon\"] = {\r\n\tname : \"Radiant Weapon\",\r\n\tnameTest : \"Radiant\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\ttype : \"weapon (any)\",\r\n\tdescription : \"This item adds a +1 on its to hit and damage, has 4 charges, and regains 1d4 at dawn. As a bonus action, I can have it start/stop shedding light, bright in 30 ft, dim in another 30 ft. As a reaction if hit by an attack, I can use 1 charge to blind the attacker until the end of its next turn unless it makes a Con save (my spell DC).\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it. While holding it, the wielder can take a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet. The wielder can extinguish the light as a bonus action.\\n   The weapon has 4 charges. As a reaction immediately after being hit by an attack, the wielder can expend 1 charge and cause the attacker to be blinded until the end of the attacker's next turn, unless the attacker succeeds on a Constitution saving throw against your spell save DC. The weapon regains 1d4 expended charges daily at dawn.\",\r\n\tattunement : true,\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"blind attacker; regains 1d4\",\r\n\taction : [[\"bonus action\", \" (start/stop light)\"], [\"reaction\", \" (1 charge; after hit)\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reaction to blind attacker';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Radiant\" in the name of a weapon, it will be treated as the magic weapon Radiant Weapon. It has +1 to hit and damage and can be used to shed light and to blind an attacker.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"repeating shot\"] = {\r\n\tname : \"Repeating Shot\",\r\n\tsource : [[\"E:RLW\", 62], [\"T\", 22], [\"UA:A3\", 13]],\r\n\ttype : \"weapon (any with ammunition)\",\r\n\tdescription : \"When I use this magic weapon to make a ranged attack, it magically produces one piece of ammunition and grants a +1 bonus to its attack and damage rolls. Thus, it doesn't require ammunition and ignores the loading property if it has it. The produced ammunition vanishes once it hits or misses a target.\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it when it's used to make a ranged attack, and it ignores the loading property if it has it.\\n   If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the weapon vanishes the instant after it hits or misses a target.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/ammunition/i).test(inObj.description);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '').replace(/(;|,)? ?loading/i, '');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Repeating Shot\" in the name of a weapon with the ammunition property, it will be treated as the magic weapon Repeating Shot. It has +1 to hit and damage and produces its own ammunition, thus its loading property is removed if it has it.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif ((/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText) && !v.isSpell) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"repulsion shield\"] = {\r\n\tname : \"Repulsion Shield\",\r\n\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\ttype : \"shield\",\r\n\tdescription : \"I gain an additional +1 bonus to Armor Class while wielding this shield. The shield has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction immediately after being hit by a melee attack, I can expend 1 charge to push the attacker up to 15 ft away.\",\r\n\tdescriptionFull : \"A creature gains a +1 bonus to Armor Class while wielding this shield.\\n   The shield has 4 charges. While holding it, the wielder can use a reaction immediately after being hit by a melee attack to expend 1 of the shield's charges and push the attacker up to 15 feet away. The shield regains 1d4 expended charges daily at dawn.\",\r\n\tweight : 6,\r\n\tattunement : true,\r\n\tusages : 4,\r\n\tadditional : \"regains 1d4\",\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (1 charge)\"]],\r\n\tshieldAdd : [\"Repulsion Shield\", 3, 6]\r\n}\r\nMagicItemsList[\"returning weapon\"] = {\r\n\tname : \"Returning Weapon\",\r\n\tnameTest : \"Returning\",\r\n\tsource : [[\"E:RLW\", 63], [\"T\", 23], [\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\ttype : \"weapon (any thrown)\",\r\n\tdescription : \"This magic weapon grants a +1 bonus to attack and damage rolls I make with it. It returns to my hand immediately after I use it to make a ranged attack.\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it, and it returns to the wielder's hand immediately after it is used to make a ranged attack.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !/\\bthrown\\b/i.test(inObj.description);\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Returns immediately after ranged attack';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Returning\" in the name of a thrown weapon, it will be treated as the magic weapon Returning Weapon. It has +1 to hit and damage and returns to my hand immediately after I use it to make a ranged attack.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\n\r\n// Magic Items\r\nMagicItemsList[\"arcane propulsion arm\"] = {\r\n\tname : \"Arcane Propulsion Arm\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"Once attached to my wrist, elbow, or shoulder, this prosthetic magically forms a copy of the appendage it's replacing. It can't be removed against my will, but I can as an action. I can use it as a proficient melee weapon with the thrown property. After a throwing attack with it, it returns and reattaches immediately.\",\r\n\tdescriptionFull : \"This prosthetic appendage was developed by artificers of House Cannith. To attune to this item, you must attach it to your arm at the wrist, elbow, or shoulder, at which point the prosthetic magically forms a copy of the appendage it's replacing.\\n\\nWhile attached, the prosthetic provides these benefits:\\n \\u2022 The prosthetic is a fully capable part of your body.\\n \\u2022 You can take an action to remove the prosthetic, and it removes itself if your attunement to it ends. It can't be removed against your will.\\n \\u2022 The prosthetic is a magic melee weapon with which you're proficient. It deals 1d8 force damage on a hit and has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When thrown, the prosthetic detaches and flies at the target of the attack, then immediately returns to you and reattaches.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature missing a hand or an arm\",\r\n\tprereqeval : function (v) { return false; },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arcane)(?=.*propulsion)(?=.*arm).*$/i,\r\n\t\tname : \"Arcane Propulsion Arm\",\r\n\t\tsource : [[\"E:RLW\", 276]],\r\n\t\tability : 1,\r\n\t\ttype : \"AlwaysProf\",\r\n\t\tdamage : [1, 8, \"force\"],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Thrown; Returns immediately after thrown\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"armblade\"] = {\r\n\tname : \"Armblade\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"weapon (any one-handed melee weapon)\",\r\n\trarity : \"common\",\r\n\tdescription : \"While attuned to it, this magic weapon is attached to my arm and inseparable from me. As a bonus action, I can retract it into my forearm or extend it from there. While it is extended, I can use the weapon as if I was holding it, and I can't use that hand for other purposes.\",\r\n\tdescriptionFull : \"An armblade is a magic weapon that attaches to your arm, becoming inseparable from you as long as you're attuned to it. To attune to this item, you must hold it against your forearm for the entire attunement period.\\n   As a bonus action, you can retract the armblade into your forearm or extend it from there. While it is extended, you can use the weapon as if you were holding it, and you can't use that hand for other purposes.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn (!inObj.description || (/two.{0,3}handed/i).test(inObj.description)) || (!inObj.range || !(/melee/i).test(inObj.range));\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"belashyrra's beholder crown\"] = {\r\n\tname : \"Belashyrra's Beholder Crown\",\r\n\tnameAlt : \"Beholder Crown\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tdescription : \"This symbiotic crown of dark purple and mauve stone attaches to my skull and removing it requires ending a curse. It allows me to see normally in magical and normal darkness (devil's sight) out to 120 ft. It has 10 charges, regaining 1d6+3 at dawn, which I can use to cast several spells with spell save DC 16.\",\r\n\tdescriptionLong : \"This symbiotic crown of dark purple and mauve stone attaches to my skull once I attune to it and removing it requires ending a curse. It allows me to see normally in magical and normal darkness (devil's sight) out to 120 ft. It has 10 charges, regaining 1d6+3 at dawn, which I can use to cast several spells with spell save DC 16. These are: Charm Person (1 charge), Disintegrate (6 charges), Fear (3 charges), Finger of Death (7 charges), Flesh to Stone (6 charges), Hold Person (2 charges), Ray of Enfeeblement (2 charges), Sleep (1 charge), Slow (3 charges), and Telekinesis (5 charges).\",\r\n\tdescriptionFull : \"This symbiotic crown is carved from dark purple and mauve stone, with ten points like stalks set with gemstones resembling the eyestalks of a beholder. To attune to this item, you must wear it on your head for the entire attunement period, during which the crown's hidden tendrils burrow into your scalp to bond with your skull.\\n   While wearing the crown, you can see normally in darkness, both magical and nonmagical, to a distance of 120 feet.\\n   \" + toUni(\"Spells\") + \". The crown has 10 charges. While wearing it, you can use an action to expend some of its charges to cast one of the following spells from it (spell save DC 16): charm person (1 charge), disintegrate (6 charges), fear (3 charges), finger of death (7 charges), flesh to stone (6 charges), hold person (2 charges), ray of enfeeblement (2 charges), sleep (1 charge), slow (3 charges), telekinesis (5 charges).\\n   The crown regains 1d6 + 3 expended charges daily at dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The crown can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the crown ends, and it detaches from you.\\n   The daelkyr Belashyrra made these crowns. While on the same plane of existence as the crown, Belashyrra can see through its eyestalks.\",\r\n\tattunement : true,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+3\",\r\n\tfixedDC : 16,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"charm person\", \"sleep\"],\r\n\t\tselection : [\"charm person\", \"sleep\"],\r\n\t\tfirstCol : 1,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"hold person\", \"ray of enfeeblement\"],\r\n\t\tselection : [\"hold person\", \"ray of enfeeblement\"],\r\n\t\tfirstCol : 2,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"fear\", \"slow\"],\r\n\t\tselection : [\"fear\", \"slow\"],\r\n\t\tfirstCol : 3,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"5 charges\",\r\n\t\tspells : [\"telekinesis\"],\r\n\t\tselection : [\"telekinesis\"],\r\n\t\tfirstCol : 5\r\n\t}, {\r\n\t\tname : \"6 charges\",\r\n\t\tspells : [\"disintegrate\", \"flesh to stone\"],\r\n\t\tselection : [\"disintegrate\", \"flesh to stone\"],\r\n\t\tfirstCol : 6,\r\n\t\ttimes : 2\r\n\t}, {\r\n\t\tname : \"7 charges\",\r\n\t\tspells : [\"finger of death\"],\r\n\t\tselection : [\"finger of death\"],\r\n\t\tfirstCol : 7\r\n\t}]\r\n}\r\nMagicItemsList[\"cleansing stone\"] = {\r\n\tname : \"Cleansing Stone\",\r\n\tsource : [[\"E:RLW\", 276], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This stone sphere is 1 ft in diameter and engraved with mystic sigils. As an action while touching it, I can activate it to remove dirt and grime from my garments and my person.\",\r\n\tdescriptionFull : \"A cleansing stone is a sphere 1 foot in diameter, engraved with mystic sigils. When touching the stone, you can use an action to activate it and remove dirt and grime from your garments and your person.\\n   Such stones are often embedded in pedestals in public squares in Aundair or in high-end Ghallanda inns.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweight : 88 // using average marble/limestone density of 2.711 g/cm3\r\n}\r\nvar ERftLW_docentFullDescription = [\r\n\t\"A docent is a small metal sphere, about 2 inches across, studded with dragonshards. To attune to a docent, you must embed the item somewhere on your body, such as your chest or your eye socket.\",\r\n\t'>>Sentience<<. A docent is a sentient item of any alignment with an Intelligence of 16, a Wisdom of 14, and a Charisma of 14. It perceives the world through your senses. It communicates telepathically with you and can speak, read, and understand any language it knows (see \"Random Properties\" below).',\r\n\t\">>Life Support<<. Whenever you end your turn with 0 hit points, the docent can make a Wisdom (Medicine) check with a +6 bonus. If this check succeeds, the docent stabilizes you.\",\r\n\t\">>Random Properties<<. A docent has the following properties:\",\r\n\t\" \\u2022 >>Languages<<. The docent knows Common, Giant, and 1d4 additional languages chosen by the DM. If a docent knows fewer than six languages, it can learn a new language after it hears or reads the language through your senses.\",\r\n\t\" \\u2022 >>Skills<<. The docent has a +7 bonus to one of the following skills (roll a d4): (1) Arcana, (2) History, (3) Investigation, or (4) Nature.\",\r\n\t\" \\u2022 >>Spells<<. The docent knows one of the following spells and can cast it at will, requiring no components (roll a d6): (1–2) detect evil and good or (3–6) detect magic. The docent decides when to cast the spell.\",\r\n\t\">>Personality<<. A docent is designed to advise and assist the warforged it's attached to. One of the simple functions of a docent is to serve as a translator. The docent's properties are under its control, and if you have a bad relationship with your docent, it might refuse to assist you.\"\r\n];\r\nMagicItemsList[\"docent\"] = {\r\n\tname : \"Docent\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I can embed this sentient small metal sphere studded with dragonshards into my chest or eye socket. I can communicate telepathically with it and it uses my senses. It can serve me as an advisor and a translator. It knowns 6 languages, a spells, an Intelligence skill, and can stabilize me. See Notes page.\",\r\n\tdescriptionFull : ERftLW_docentFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(ERftLW_docentFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/(with|stabilizes|assist) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"dyrrn's tentacle whip\"] = {\r\n\tname : \"Dyrrn's Tentacle Whip\",\r\n\tnameAlt : \"Tentacle Whip\",\r\n\tsource : [[\"E:RLW\", 276]],\r\n\ttype : \"weapon (whip)\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This magic whip embeds itself in my arm once I attune to it and removing it requires ending a curse. It has a +2 bonus to attack and damage rolls, deals +1d6 psychic damage, but has disadv. vs. aberrations. On a roll of 20 to hit, the target is stunned until it next turn ends. As a bonus action, I can draw/sheath it in my arm\",\r\n\tdescriptionFull : \"This long, whip-like strand of tough muscle bears a sharp stinger at one end. To attune to this symbiotic weapon, you wrap the whip around your wrist for the entire attunement period, during which time the whip painfully embeds its tendrils into your arm.\\n   You gain a +2 bonus to attack and damage rolls made with this magic whip, but attack rolls made against aberrations with this weapon have disadvantage. A creature hit by this weapon takes an extra 1d6 psychic damage. When you roll a 20 on the d20 for an attack roll with this weapon, the target is stunned until the end of its next turn.\\n   As a bonus action, you can sheathe the whip by causing it to retract into your arm, or draw the whip out of your arm again.\\n   \" + toUni(\"Symbiotic Nature\") + \". The whip can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the whip ends, and it detaches from you.\",\r\n\tattunement : true,\r\n\tweight : 3,\r\n\taction : [[\"bonus action\", \"Tentacle Whip (draw/sheath)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"whip\",\r\n\t\tregExpSearch : /^(?=.*tentacle)(?=.*whip).*$/i,\r\n\t\tname : \"Dyrrn's Tentacle Whip\",\r\n\t\tsource : [[\"E:RLW\", 276]],\r\n\t\tdescription : \"Finesse, reach; +1d6 psychic dmg; On 20 to hit: stun until its next turn ends; Disadv. vs. aberrations\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"earworm\"] = {\r\n\tname : \"Earworm\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"This symbiont bonds to my skull once I attune to it and removing it to end the attunement requires ending a curse. It has 4 charges, regaining 1d4 at dawn, which I can use to cast Detect Thoughts (2 charges) or Dissonant Whispers (1 charge) with DC 15. It allows me to speak, read, and write deep speech.\",\r\n\tdescriptionFull : \"To attune to this symbiont, you must hold it against the skin behind your ear for the entire attunement period, whereupon it burrows into your head and bonds to your skull. While the earworm is inside you, you can speak, read, and write Deep Speech.\\n   \" + toUni(\"Spells\") + \". The earworm has 4 charges. You can cast the following spells from it, expending the necessary number of charges (spell save DC 15): detect thoughts (2 charges) or dissonant whispers (1 charge). Each time you use the earworm to cast the detect thoughts spell, it sends the information gleaned to the nearest daelkyr, or to the next nearest earworm until it reaches a daelkyr.\\n   The earworm regains 1d4 expended charges daily at dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The earworm can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the earworm ends, and it exits your body.\",\r\n\tattunement : true,\r\n\tlanguageProfs : [\"Deep Speech\"],\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\tfixedDC : 15,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"dissonant whispers\"],\r\n\t\tselection : [\"dissonant whispers\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : 2\r\n\t}]\r\n}\r\nMagicItemsList[\"everbright lantern\"] = {\r\n\tname : \"Everbright Lantern\",\r\n\tsource : [[\"E:RLW\", 277], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This bullseye lantern is powered by a dragonshard that sheds light comparable to that produced by a Continual Flame spell. The light never goes out, but it can be shuttered off. It sheds light in a 120-ft cone; the closest 60 ft is bright light, and the farthest 60 ft is dim light.\",\r\n\tdescriptionFull : \"This bullseye lantern contains an Eberron dragonshard that sheds light comparable to that produced by a continual flame spell. An everbright lantern sheds light in a 120-foot cone; the closest 60 feet is bright light, and the farthest 60 feet is dim light.\",\r\n\tweight : 2\r\n}\r\nMagicItemsList[\"feather token\"] = {\r\n\tname : \"Feather Token\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This small metal disk is inscribed with the image of a feather. When I fall at least 20 ft while the token is on my person, I descend 60 ft per round and take no damage from falling. The token's magic is expended after landing, whereupon the disk becomes nonmagical.\",\r\n\tdescriptionFull : \"This small metal disk is inscribed with the image of a feather. When you fall at least 20 feet while the token is on your person, you descend 60 feet per round and take no damage from falling. The token's magic is expended after you land, whereupon the disk becomes nonmagical.\"\r\n}\r\nMagicItemsList[\"finder's goggles\"] = {\r\n\tname : \"Finder's Goggles\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"These goggles with dragonshard lenses grant me +1d4 on Wis (Insight) checks. As an action once per dawn, I can use them to find the last creature to touch an object with a Wis (Insight) check DC 13 + days since last contact. I learn the creature's type and can immediately cast Locate Creature to find the creature.\",\r\n\tdescriptionFull : \"The lenses of these garish goggles are carved from Siberys dragonshards. While wearing these lenses, you gain the following benefits:\\n \\u2022 When you make a Wisdom (Insight) check, you can roll a d4 and add the number rolled to the check.\\n \\u2022 As an action, you can use the goggles to examine an object to identify the aura of the last creature that touched it. Make a Wisdom (Insight) check against a DC of 13 + the number of days since the last contact occurred. On a success, you learn the creature's type and can immediately use the goggles to cast locate creature to find that creature. This property can't be used again until the next dawn.\",\r\n\taction : [[\"action\", \"\"]],\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Finding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known);\r\n\t},\r\n\taction : [[\"action\", \" (examine object)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"examine object\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"After examining object\",\r\n\t\tspells : [\"locate creature\"],\r\n\t\tselection : [\"locate creature\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}]\r\n}\r\nMagicItemsList[\"glamerweave\"] = {\r\n\tname : \"Glamerweave\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can turn the pattern within the cloth into a moving illusory pattern. For the uncommon version, this pattern extends beyond the cloth and gives me +1d4 on a Performance or Persuasion check.\",\r\n\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing the common version of these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\\n   Uncommon glamerweave can have the pattern rise from the cloth. For example, a glamerweave gown might be wreathed in harmless, illusory flames, while a glam­erweave hat might have illusory butterflies fluttering around it.\\n   When you make a Charisma (Performance) or Cha­risma (Persuasion) check while wearing the uncommon version of glamerweave, you can roll a d4 and add the number rolled to the check. Once you use this property, it can't be used again until the next dawn. \",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Common (moving illusory pattern)\", \"Uncommon (pattern rises from the cloth)\"],\r\n\t\"common (moving illusory pattern)\" : {\r\n\t\tname : \"Glamerweave \",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can create a moving illusory pattern within the cloth.\",\r\n\t\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing the common version of these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\"\r\n\t},\r\n\t\"uncommon (pattern rises from the cloth)\" : {\r\n\t\tname : \"Uncommon Glamerweave\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"Glamerweave is clothing imbued with harmless illusory magic. As a bonus action while wearing these clothes, I can have the pattern within them rise as an illusory visage (e.g. wreathed in flames). Once per dawn, I can use this to gives me +1d4 on a Charisma (Performance) or Charisma (Persuasion) check.\",\r\n\t\tdescriptionFull : \"Glamerweave is clothing imbued with harmless illusory magic. While wearing these clothes, you can use a bonus action to create a moving illusory pattern within the cloth.\\n   You can have the pattern rise from the cloth. For example, a glamerweave gown might be wreathed in harmless, illusory flames, while a glamerweave hat might have illusory butterflies fluttering around it.\\n   When you make a Charisma (Performance) or Charisma (Persuasion) check while wearing the glamerweave, you can roll a d4 and add the number rolled to the check. Once you use this property, it can't be used again until the next dawn.\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}\r\n}\r\nMagicItemsList[\"imbued wood focus\"] = {\r\n\t// Note that this item is implemented here against RAW,\r\n\t// because according to PHB page 203 a spellcasting focus can only be used for\r\n\t// spells with a material component that is neither costly nor consumed.\r\n\t// See also https://dnd.wizards.com/articles/sage-advice/rules-spellcasting\r\n\t// This would mean that the Imbued Wood Focus in only useful for a limited number of spells.\r\n\t// Instead, this code just applies the damage bonus to all damage spells that roll for their damage.\r\n\tname : \"Imbued Wood Focus\",\r\n\tsource : [[\"E:RLW\", 277], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This rod, wand, or staff is cut from a tree infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal the associated damage type add a +1 bonus to one of their damage rolls.\",\r\n\tdescriptionFull : \"An imbued wood focus is a rod, staff, or wand cut from a tree infused with extraplanar energy. If you're a spell­caster, you can use this orb as a spellcasting focus.\\n   When you cast a damage-dealing spell using this item as your spellcasting focus, you gain a +1 bonus to one damage roll of the spell, provided the damage is of the type associated with the item's wood. The types of wood and their associated damage types are listed in the table below.\\n\\n\" + toUni(\"Wood\\t\\t\\tDamage Type\") + \"\\nFernian Ash\\t\\tFire\\nIrian Rosewood\\t\\tRadiant\\nKythrian Manchineel  \\tAcid or Poison\\nLamannian Oak\\t\\tLightning or Thunder\\nMabaran Ebony\\t\\tNecrotic\\nRisian Pine\\t\\tCold\\nShavarran Birch\\t\\tForce\\nXorian Wenge\\t\\tPsychic\",\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tweight : 2,\r\n\tchoices : [\"Fernian Ash (fire)\", \"Irian Rosewood (radiant)\", \"Kythrian Manchineel (acid and poison)\", \"Lamannian Oak (lightning and thunder)\", \"Mabaran Ebony (necrotic)\", \"Risian Pine (cold)\", \"Shavarran Birch (force)\", \"Xorian Wenge (psychic)\"],\r\n\t\"fernian ash (fire)\" : {\r\n\t\tname : \"Fernian Ash Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Fernian Ash (fire)\",\r\n\t\tnameTest : /^(?=.*fernian)(?=.*ash)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Fernian ash, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal fire damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/fire/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"irian rosewood (radiant)\" : {\r\n\t\tname : \"Irian Rosewood Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Irian Rosewood (radiant)\",\r\n\t\tnameTest : /^(?=.*irian)(?=.*rosewood)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Irian rosewood, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal radiant damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/radiant/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"radiant\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"kythrian manchineel (acid and poison)\" : {\r\n\t\tname : \"Kythrian Manchineel Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Kythrian Manchineel (acid and poison)\",\r\n\t\tnameTest : /^(?=.*kythrian)(?=.*manchineel)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Kythrian manchineel, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal acid or poison damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/acid|poison/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"acid|poison\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"lamannian oak (lightning and thunder)\" : {\r\n\t\tname : \"Lamannian Oak Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Lamannian Oak (lightning and thunder)\",\r\n\t\tnameTest : /^(?=.*lamannian)(?=.*oak)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Lamannian oak, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal lightning or thunder damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/lightning|thunder/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"lightning|thunder\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"mabaran ebony (necrotic)\" : {\r\n\t\tname : \"Mabaran Ebony Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Mabaran Ebony (necrotic)\",\r\n\t\tnameTest : /^(?=.*mabaran)(?=.*ebony)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Mabaran ebony, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal necrotic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/necrotic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"necro\\\\.?|necrotic\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"risian pine (cold)\" : {\r\n\t\tname : \"Risian Pine Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Risian Pine (cold)\",\r\n\t\tnameTest : /^(?=.*risian)(?=.*pine)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Risian pine, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal cold damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/cold/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"cold\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"shavarran birch (force)\" : {\r\n\t\tname : \"Shavarran Birch Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Shavarran Birch (force)\",\r\n\t\tnameTest : /^(?=.*shavarran)(?=.*birch)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Shavarran birch, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal force damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1 dmg\";\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] != \"eldritch blast\" && (/force/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"force\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"xorian wenge (psychic)\" : {\r\n\t\tname : \"Xorian Wenge Rod, Wand, or Staff\",\r\n\t\tsortname : \"Imbued Wood Focus, Xorian Wenge (psychic)\",\r\n\t\tnameTest : /^(?=.*xorian)(?=.*wenge)(?=.*(rod|wand|staff)).*$/i,\r\n\t\tdescription : \"This rod, wand, or staff made of Xorian wenge, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal psychic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.thisWeapon[3] && (/psychic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t],\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"psychic\", 1, true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"keycharm\"] = {\r\n\tname : \"Keycharm\",\r\n\tsource : [[\"E:RLW\", 277]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"When I cast Alarm, Arcane Lock, or Glyph of Warding, I can tie the effect to the keycharm. Its holder receives the notification from Alarm, bypasses the Arcane Lock, or avoids triggering the Glyph of Warding. It can have up to 3 tied spells at one time. As an action, the holder can speak the command to end a tied spell.\",\r\n\tdescriptionFull : \"This small stylized key plays a vital role in the work of House Kundarak. If you cast the alarm, arcane lock, or glyph of warding spell, you can tie the effect to the keycharm so that whoever holds it receives the notification from the alarm spell, bypasses the lock of the arcane lock spell, or avoids triggering the glyph placed by the glyph of warding spell. In addition, the holder (who needn't be attuned to the item) can take an action to end any one spell tied to it, provided the holder knows the command word you set for ending the tied spells. The keycharm can have up to three tied spells at one time.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Warding\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"kyrzin's ooze\"] = {\r\n\tname : \"Kyrzin's Ooze\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"Once I attune to this opalescent goo by drinking it, it can only be removed by ending a curse. It gives me resistance to acid and poison damage and immunity to the poisoned condition. Each as an action once per short rest, I can exhale acid breath or become amorphous for 1 minute along with my equipment.\",\r\n\tdescriptionLong : \"I can only attune to this opalescent, symbiotic goo by drinking it. I can't remove it or end the attunement voluntarily, but it seeps out of me if the curse is removed. It gives me resistance to acid and poison damage and immunity to the poisoned condition. As an action once per dawn, I can become amorphous for 1 minute along with my equipment and can move through a space as narrow as 1 inch wide. As an action once per dawn, I can exhale a 30-ft line, 5-ft wide acid breath that deals 8d8 acid damage (Dexterity save DC 15 halves). If I die while it is inside me, it turns my corpse into a black pudding.\",\r\n\tdescriptionFull : \"This opalescent, symbiotic goo comes sealed in a jar and slowly shifts and moves, as if endlessly exploring the jar's interior. To attune to this item, you must first drink the contents of the jar, unlocking the following properties.\\n   \" + toUni(\"Resistant\") + \". While attuned to Kyrzin's ooze, you have resistance to poison and acid damage, and you're immune to the poisoned condition.\\n   \" + toUni(\"Amorphous\") + \". As an action, you can speak a command word and cause your body to assume the amorphous qualities of an ooze. For the next minute, you (along with any equipment you're wearing or carrying) can move through a space as narrow as 1 inch wide without squeezing. Once you use this property, it can't be used again until the next dawn.\\n   \" + toUni(\"Acid Breath\") + \". As an action, you can exhale acid in a 30-foot line that is 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 36 (8d8) acid damage on a failed save, or half as much damage on a successful one. Once you use this property, it can't be used again until the next dawn.\\n   \" + toUni(\"Symbiotic Nature\") + \". The ooze can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the ooze ends, as it seeps out of you.\\n   If you die while the ooze is inside you, it bursts out and engulfs you, turning your corpse into a black pudding allied with the daelkyr.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Acid\", \"Poison\"],\r\n\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\taction : [[\"action\", \" (amorphous/acid breath)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Kyrzin's Ooze [Amorphous]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Kyrzin's Ooze [Acid Breath]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*ooze)(?=.*acid)(?=.*breath).*$/i,\r\n\t\tname : \"Kyrzin's Ooze Acid Breath\",\r\n\t\tsource : [[\"E:RLW\", 278]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [8, 8, \"acid\"],\r\n\t\trange : '5-ft \\xD7 30-ft line',\r\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tmodifiers : [7, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"living armor\"] = {\r\n\tname : \"Living Armor\",\r\n\tnameTest : /living.*armou?r/i,\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"armor (any)\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This armor of black chitin attaches itself to me once I attune to it and removing it requires ending a curse. It gives me +1 AC and resistance to necrotic, poison, and psychic damage. Whenever I finish a long rest, I must either feed it half my remaining HD (rounding up) or take 1 level of exhaustion.\",\r\n\tdescriptionFull : \"This hideous armor is formed from black chitin, beneath which veins pulse and red sinews glisten. To attune to this item, you must wear it for the entire attunement period, during which tendrils on the inside burrow into you.\\n   While wearing this armor, you have a +1 bonus to Armor Class, and you have resistance to the following damage types: necrotic, poison, and psychic.\\n   \" + toUni(\"Symbiotic Nature\") + \". The armor can't be removed from you while you're attuned to it, and you can't voluntarily end your attunement to it. If you're targeted by a spell that ends a curse, your attunement to the armor ends, and it detaches from you.\\n   The armor requires fresh blood be fed to it. Immediately after you finish any long rest, you must either feed half of your remaining Hit Dice to the armor (round up) or take 1 level of exhaustion.\",\r\n\tattunement : true,\r\n\tdmgres : [\"Necrotic\", \"Poison\", \"Psychic\"],\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Living\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"+1 Living\"]\r\n\t}\r\n}\r\nMagicItemsList[\"living gloves\"] = {\r\n\tname : \"Living Gloves\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"These gloves made of thin chitin and sinew bond with my skin once I attune to them and removing them requires ending a curse. Once I attune to them, I can choose to become proficient and gain expertise with either sleight of hand, thieves' tools, or an artisan's tools or musical instrument of my choice.\",\r\n\tdescriptionFull : \"These symbiotic gloves\\u2014made of thin chitin and sinew\\u2014pulse with a life of their own. To attune to them, you must wear them for the entire attunement period, during which the gloves bond with your skin.\\n   While attuned to these gloves, you gain one of the following proficiencies (your choice when you attune to the gloves):\\n \\u2022 Sleight of Hand\\n \\u2022 Thieves' tools\\n \\u2022 One kind of artisan's tools of your choice\\n \\u2022 One kind of musical instrument of your choice\\n\\nWhen you make an ability check using the chosen proficiency, you add double your proficiency bonus to the check, instead of your normal proficiency bonus.\\n   \" + toUni(\"Symbiotic Nature\") + \". The gloves can't be removed from you while you're attuned to them, and you can't voluntarily end your attunement to them. If you're targeted by a spell that ends a curse, your attunement to the gloves ends, and they can be removed.\",\r\n\tattunement : true,\r\n\tchoices : [\"Proficiency and expertise with Sleight of Hand\", \"Proficiency and expertise with Thieves' Tools\", \"Proficiency and expertise with chosen artisan's tools\", \"Proficiency and expertise with chosen musical instrument\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"proficiency and expertise with sleight of hand\" : {\r\n\t\tname : \"Living Gloves [Sleight of Hand]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with sleight of hand.\",\r\n\t\tskills : [[\"Sleight of Hand\", \"full\"]]\r\n\t},\r\n\t\"proficiency and expertise with thieves' tools\" : {\r\n\t\tname : \"Living Gloves [Thieves' Tools]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with thieves' tools.\",\r\n\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\t\teval : function () {\r\n\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\tCheckbox('Too Exp', true);\r\n\t\t\t};\r\n\t\t},\r\n\t\tremoveeval : function () {\r\n\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\tCheckbox('Too Exp', false);\r\n\t\t\t};\r\n\t\t}\r\n\t},\r\n\t\"proficiency and expertise with chosen artisan's tools\" : {\r\n\t\tname : \"Living Gloves [Artisan's Tools]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with a set of artisan's tools of my choice (chosen when I attune to them).\",\r\n\t\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\t},\r\n\t\"proficiency and expertise with chosen musical instrument\" : {\r\n\t\tname : \"Living Gloves [Musical Instrument]\",\r\n\t\tdescription : \"These symbiotic gloves made of thin chitin and sinew bond with my skin once I attune to them. Removing them requires ending a curse, I can't do so or end the attunement voluntarily. They give me proficiency and expertise with a musical instrument of my choice (chosen when I attune to them).\",\r\n\t\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\t}\r\n}\r\nMagicItemsList[\"orb of shielding\"] = {\r\n\tname : \"Orb of Shielding\",\r\n\tsource : [[\"E:RLW\", 278], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"An orb of shielding is made from crystal or stone aligned to one of the planes. I can use it as my spellcasting focus. While I am holding the orb and take damage of the type associated with the material the orb is made from, I can use my reaction to reduce the damage by 1d4 (to a minimum of 0).\",\r\n\tdescriptionFull : \"An orb of shielding is a polished, spherical chunk of crystal or stone aligned to one of the planes of existence. If you're a spellcaster, you can use this orb as a spellcasting focus.\\n   If you're holding the orb when you take damage of the type associated with the orb's material, you can use your reaction to reduce the damage by 1d4 (to a minimum of 0). The materials and their associated damage types are listed in the Orb of Shielding table.\\n\\n\" + toUni(\"Planar Material\\t\\tDamage Type\") + \"\\nFernian Basalt\\t\\tFire\\nIrian Quartz\\t\\tRadiant\\nKythrian Skarn\\t\\tAcid or Poison\\nLamannian Flint\\t\\tLightning or Thunder\\nMabaran Obsidian      \\tNecrotic\\nRisian Shale\\t\\tCold\\nShavarran Chert\\t\\tForce\\nXorian Marble\\t\\tPsychic\",\r\n\tattunement : true,\r\n\tallowDuplicates : true,\r\n\tweight : 3,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchoices : [\"Fernian Basalt (fire)\", \"Irian Quartz (radiant)\", \"Kythrian Skarn (acid or poison)\", \"Lamannian Flint (lightning or thunder)\", \"Mabaran Obsidian (necrotic)\", \"Risian Shale (cold)\", \"Shavaran Chert (force)\", \"Xorian Marble (psychic)\"],\r\n\t\"fernian basalt (fire)\" : {\r\n\t\tname : \"Orb of Shielding [Fernian Basalt]\",\r\n\t\tdescription : \"This stone orb is made from fernian basalt. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take fire damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"irian quartz (radiant)\" : {\r\n\t\tname : \"Orb of Shielding [Irian Quartz]\",\r\n\t\tdescription : \"This crystal orb is made from irian quartz. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take radiant damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"kythrian skarn (acid or poison)\" : {\r\n\t\tname : \"Orb of Shielding [Kythrian Skarn]\",\r\n\t\tdescription : \"This stone orb is made from kythrian skarn. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take acid or poison damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"lamannian flint (lightning or thunder)\" : {\r\n\t\tname : \"Orb of Shielding [Lamannian Flint]\",\r\n\t\tdescription : \"This stone orb is made from lamannian flint. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take lightning or thunder damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"mabaran obsidian (necrotic)\" : {\r\n\t\tname : \"Orb of Shielding [Mabaran Obsidian]\",\r\n\t\tdescription : \"This crystal orb is made from mabaran obsidian. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take necrotic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"risian shale (cold)\" : {\r\n\t\tname : \"Orb of Shielding [Risian Shale]\",\r\n\t\tdescription : \"This stone orb is made from risian shale. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take cold damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"shavaran chert (force)\" : {\r\n\t\tname : \"Orb of Shielding [Shavaran Chert]\",\r\n\t\tdescription : \"This stone orb is made from shavaran chert. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take force damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t},\r\n\t\"xorian marble (psychic)\" : {\r\n\t\tname : \"Orb of Shielding [Xorian Marble]\",\r\n\t\tdescription : \"This stone orb is made from xorian marble. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take psychic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t}\r\n}\r\nMagicItemsList[\"prosthetic limb\"] = { // no attument as per errata\r\n\tname : \"Prosthetic Limb\",\r\n\tsource : [[\"E:RLW\", 278], [\"W\", 268], [\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This artificial limb replaces a lost limb, like a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. As an action, I can detach or reattach it. It can't be removed against my will. It detaches if I die.\",\r\n\tdescriptionFull : \"This item replaces a lost limb\\u2014a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. You can detach or reattach it as an action, and it can't be removed against your will. It detaches if you die.\",\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"scribe's pen\"] = {\r\n\tname : \"Scribe's Pen\",\r\n\tsource : [[\"E:RLW\", 278]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"I can use this pen to write on any surface. I decide whether the writing is visible or invisible, but it is always visible to creatures with the Mark of Scribing. As an action, I or others with the Mark of Scribing can touch the writing and make it visible to all. Writing on creatures other than constructs fades after 7 days.\",\r\n\tdescriptionFull : \"You can use this pen to write on any surface. You decide whether the writing is visible or invisible, but the writing is always visible to a person with the Mark of Scribing.\\n   Any creature with the Mark of Scribing can use an action to touch the invisible writing, making it visible to all.\\n   If you use the pen to write on a creature that isn't a construct, the writing fades after 7 days.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a creature with the Dragonmark of Scribing\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\nMagicItemsList[\"shiftweave\"] = {\r\n\tname : \"Shiftweave\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Up to five different outfits are embedded into these clothes. As a bonus action, I can speak its command word to transform the outfit into one of the other designs contained within. Regardless of its appearance, the outfit can't be anything but clothing or gain properties of other magical clothing.\",\r\n\tdescriptionFull : \"When a suit of shiftweave is created, up to five different outfits can be embedded into the cloth. While wearing the clothing, you can speak its command word as a bonus action to transform your outfit into your choice of one of the other designs contained within it. Regardless of its appearance, the outfit can't be anything but clothing. Although it can duplicate the look of other magical clothing, it doesn't gain their magical properties.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"speaking stone\"] = {\r\n\tname : \"Speaking Stone\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This dragonshard is inscribed with arcane symbols that uniquely identify it. By touching it, I can cast Sending to any other speaking stone whose location or unique sequence of symbols I know. A creature within 5 ft of the receiving speaking stone hears the message as if they were the target of the Sending.\",\r\n\tdescriptionFull : \"The key to long-distance, virtually instantaneous communication across Khorvaire is House Sivis's network of message stations. Each station contains at least one speaking stone, which is carved from a Siberys dragonshard and inscribed with arcane symbols that uniquely identify it. If you're a gnome with the Mark of Scribing, you can touch the stone and use an action to cast the sending spell from it. The target is any other speaking stone whose location or unique sequence of symbols you know. A creature within 5 feet of the stone hears the message as if they were the target.\\n   In a Sivis message station, a gnome is always on duty by the speaking stone, listening for messages that might come in and transcribing them for delivery to their intended recipients.\",\r\n\tprerequisite : \"Can only be used by a gnome with the Dragonmark of Scribing\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known);\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}]\r\n}\r\nMagicItemsList[\"spellshard\"] = {\r\n\tname : \"Spellshard\",\r\n\tsource : [[\"E:RLW\", 279], [\"WGtE\", 115], [\"UA:MIoE\", 3]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This dragonshard can store up to 320 pages of text or spells. As an action while holding it (and speaking its passphrase if it has one), I can open my mind to its content and concentrate on it to subsequently read from and write to it in the same amount of time as a normal book (same cost as a normal spellbook).\",\r\n\tdescriptionFull : 'This polished Eberron dragonshard fits in the hand and stores information similar to a book. The shard can hold the equivalent of one book that\\'s no more than 320 pages long. A shard can be created blank or already filled with information. When the shard is created, the creator can set a passphrase that must be spoken to access the information stored within.\\n   While holding the shard, you can use an action to open your mind to the shard, seeing its content in your mind. On subsequent rounds, reading the text or scribing new text on blank \"pages\" in the shard requires concentration (as if concentrating on a spell) and takes the same amount of time it takes you to read and write normally. Thinking of a particular phrase or topic draws you to the first section in the shard that addresses it.\\n   A wizard can use a spellshard as a spellbook, with the usual cost in gold and time to \"scribe\" a spell into the shard.',\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"ventilating lungs\"] = {\r\n\tname : \"Ventilating Lungs\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"These lungs replace those in my chest while I'm attuned to them. Their function can't be suppressed by (anti)magic. They allow me to breath normally in any environment and give me advantage on saves against harmful gases and vapors. Once per dawn, I can use them to cast Gust of Wind (save DC 15) by exhaling.\",\r\n\tdescriptionFull : \"These metallic nodules were created in response to the poisonous gases used on the battlefields of the Last War. When you attune to these lungs, they replace the lungs in your chest, which disappear. The lungs allow you to breathe normally, even in an antimagic field, and their breathing function can't be suppressed by magic.\\n   Outside an antimagic field or any other effect that suppresses magic, these lungs allow you to breathe normally in any environment (including a vacuum), and you have advantage on saving throws against harmful gases such as those created by a cloudkill spell, a stinking cloud spell, inhaled poisons, and gaseous breath weapons.\\n   As an action, you can use these lungs to exhale a gust of wind, as if you had cast the gust of wind spell (spell save DC 15) with no components. This property of the lungs can't be used again until the next dawn.\\n   If your attunement to the lungs ends, your original lungs reappear.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Gust of Wind\",\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"gust of wind\"],\r\n\t\tselection : [\"gust of wind\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"gases\", \"vapors\"] }\r\n}\r\nMagicItemsList[\"wand sheath\"] = {\r\n\tname : \"Wand Sheath\",\r\n\tsource : [[\"E:RLW\", 279]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This sheath clamps unto my arm and can't be removed while I'm attuned to it. As an action, I can insert a wand in it, which then doesn't count to the number of items I can attune to. As a bonus action, I can then retract the wand or extend the wand and use it as if holding it, while keeping my hand free.\",\r\n\tdescriptionFull : \"A wand sheath clamps onto your arm and imparts the following benefits:\\n \\u2022 The wand sheath can't be removed from you while you're attuned to it.\\n \\u2022 You can insert a wand into the sheath as an action. The sheath can hold only one wand at a time.\\n \\u2022 You can retract or extend a wand from the sheath as a bonus action. While the wand is extended, you can use it as if you were holding it, but your hand remains free.\\n\\nIf a sheathed wand requires attunement, you must attune to the wand before you can use it. However, the wand sheath and the attached wand count as a single magic item with regard to the number of magic items you can attune to. If you remove the wand from the sheath, your attunement to the wand ends.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\taction : [[\"action\", \" (insert)\"], [\"bonus action\", \" (extend/retract)\"]]\r\n}\r\nMagicItemsList[\"wheel of wind and water\"] = {\r\n\tname : \"Wheel of Wind and Water\",\r\n\tsource : [[\"E:RLW\", 280], [\"WGtE\", 115]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"I can telepathically control the elemental bound into the elemental galleon or airship that has this wheel mounted at its helm. If I use a wheel of wind and water that is mounted on a mundane sailing ship, I can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\tdescriptionFull : \"When mounted at the helm of an elemental galleon or airship, this wheel allows a creature that possesses the Mark of Storm to telepathically control the elemental bound inside the vessel.\\n   If a wheel of wind and water is mounted on a mundane sailing ship, a creature with the Mark of Storm who is using the wheel can create an area of ideal conditions around the vessel, increasing its speed by 5 miles per hour.\",\r\n\tprerequisite : \"Can only be used by a creature with the Dragonmark of Storm\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known);\r\n\t}\r\n}\r\n\r\n// Beasts\r\nCreatureList[\"clawfoot\"] = {\r\n\tname : \"Clawfoot\",\r\n\tsource : [[\"E:RLW\", 289]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 19,\r\n\thd : [3, 8],\r\n\tspeed : \"40 ft\",\r\n\tscores : [12, 16, 14, 4, 12, 6],\r\n\tskills : {\r\n\t\t\"perception\" : 3,\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"1 bite \\u0026 1 claws attack as Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Pounce trait; 1 bite \\u0026 1 claws attack as Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the clawfoot can make one Bite and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Pack Tactics\",\r\n\t\tdescription : \"The clawfoot has advantage on an attack roll against a creature if at least one of the clawfoot's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t}, {\r\n\t\tname : \"Pounce\",\r\n\t\tdescription : \"If the clawfoot moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 11 Strength saving throw or be knocked prone. If the target is prone, the clawfoot can make one bite attack against it as a bonus action.\"\r\n\t}]\r\n};\r\nCreatureList[\"fastieth\"] = {\r\n\tname : \"Fastieth\",\r\n\tsource : [[\"E:RLW\", 289]],\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 9,\r\n\thd : [2, 8],\r\n\tspeed : \"50 ft\",\r\n\tscores : [12, 18, 10, 4, 11, 4],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Quickness (Recharge 5-6)\",\r\n\t\tdescription : \"The fastieth can take the Dodge action as a bonus action.\"\r\n\t}]\r\n};\r\nERftLW_Valenar_Ancestral_Traits = [\r\n\t\"\\u25C6 [Variant] Ancestral Traits: Each Valenar animal can be customized with an ancestral gift, a supernatural trait granted by its ancestral spirit. Choose a trait or roll on the table below for each Valenar animal.\",\r\n\t\" d8\\tTrait\",\r\n\t\"  1\\tBestow Luck (1/day): As a bonus action, the animal chooses one creature it can see\",\r\n\t\t\"\\twithin 30 ft of it. The next ability check, attack roll, or saving throw the target\",\r\n\t\t\"\\tmakes in the next hour has advantage.\",\r\n\t\"  2\\tBurst of Speed (recharge 6): The animal can take the Dash action as a bonus action.\",\r\n\t\"  3\\tCamouflage: The animal has advantage on Dexterity (Stealth) checks it makes while\",\r\n\t\t\"\\toutdoors.\",\r\n\t\"  4\\tLie Detector: The animal knows when a creature within 15 ft of it tells a lie.\",\r\n\t\"  5\\tFey Ancestry: The animal has advantage on saving throws against being charmed or\",\r\n\t\t\"\\tfrightened, and magic can't put it to sleep.\",\r\n\t\"  6\\tFey Step (1/day): The animal, along with anything it is wearing or carrying,\",\r\n\t\t\"\\tteleports up to 30 ft to an unoccupied space it can see.\",\r\n\t\"  7\\tQuickness (recharge 6): The animal can take the Dodge action as a bonus action.\",\r\n\t\"  8\\tShrouded Step. The animal can't be tracked except by magical means, and it leaves\",\r\n\t\t\"\\tbehind no tracks or other traces of its passage.\"\r\n].join(\"\\n\");\r\nCreatureList[\"valenar hawk\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Hawk\",\r\n\tsource : [[\"E:RLW\", 312]],\r\n\tsize : 5,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 14,\r\n\thp : 10,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [8, 18, 10, 9, 16, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 15,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/8\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Talons\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The hawk has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}, {\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The hawk can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the hawk bonds with a different creature or until the bonded creature dies. While bonded, the hawk and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\nCreatureList[\"valenar hound\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Hound\",\r\n\tsource : [[\"E:RLW\", 312]],\r\n\tsize : 3,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 14,\r\n\thp : 19,\r\n\thd : [3, 8],\r\n\tspeed : \"40 ft\",\r\n\tscores : [17, 15, 14, 10, 15, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 13 Strength saving throw or be knocked prone\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Hearing and Smell\",\r\n\t\tdescription : \"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t}, {\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The hound can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the hound bonds with a different creature or until the bonded creature dies. While bonded, the hound and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\nCreatureList[\"valenar steed\"] = { // contributed by Nod_Hero\r\n\tname : \"Valenar Steed\",\r\n\tsource : [[\"E:RLW\", 313]],\r\n\tsize : 2,\r\n\ttype : \"Fey\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 22,\r\n\thd : [3, 10],\r\n\tspeed : \"60 ft\",\r\n\tscores : [14, 16, 14, 10, 15, 11],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands Common, Elvish, and Sylvan but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Hooves\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bonding\",\r\n\t\tdescription : \"The steed can magically bond with one creature it can see, immediately after spending at least 1 hour observing that creature while within 30 ft of it. The bond lasts until the steed bonds with a different creature or until the bonded creature dies. While bonded, the steed and the bonded creature can communicate telepathically with each other at a distance of up to 100 ft.\"\r\n\t}],\r\n\teval : function(prefix, lvl) {\r\n\t\tAddString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t},\r\n\tremoveeval : function(prefix, lvl) {\r\n\t\tRemoveString(prefix + 'Cnote.Left', ERftLW_Valenar_Ancestral_Traits, true);\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20200317_EGtW.js",
    "content": "var iFileName = \"pub_20200317_EGtW.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\", 15);\r\n// This file adds the content from Explorer's Guide to Wildemount to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.W = {\r\n\tname : \"Explorer's Guide to Wildemount\",\r\n\tabbreviation : \"EGtW\",\r\n\tabbreviationSpellsheet : \"W\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Critical Role\",\r\n\turl : \"https://dnd.wizards.com/products/wildemount\",\r\n\tdate : \"2020/03/17\"\r\n};\r\n\r\n// Races\r\nRaceList[\"pallid elf\"] = { // contains contributions by Smashman\r\n\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(pallid|pale)\\b)).*$/i,\r\n\tname : \"Pallid Elf\",\r\n\tsortname : \"Elf, Pallid\",\r\n\tsource : [[\"W\", 163]],\r\n\tplural : \"Pallid Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [\r\n\t\t[\"Darkvision\", 60],\r\n\t\t[\"Adv. on Int (Investigation) and Wis (Insight) checks\", \"\"]\r\n\t],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tadvantages : [ [\"Insight\", true], [\"Investigation\", true] ],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 110 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,7 metres tall (137 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 50 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Pallid Elf (+2 Dexterity, +1 Wisdom)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nIncisive Sense: I have advantage on Intelligence (Investigation) and Wisdom (Insight) checks.\\nBlessing of the Moonweaver: I know the Light cantrip. At 3rd level, I can cast Sleep once per long rest. At 5th level, I can also cast Invisibility on myself once per long rest. Spells cast using this trait require no material components and use Wisdom as spellcasting ability.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Blessing of the Moonweaver (level 1)\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"light\" : {\r\n\t\t\tcomponents : \"V\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Light without requiring a material component.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"sleep\" : {\r\n\t\t\tname : \"Blessing of the Moonweaver (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Blessing of the Moonweaver (level 3)\",\r\n\t\t\t\tspells : [\"sleep\"],\r\n\t\t\t\tselection : [\"sleep\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sleep\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Sleep once per long rest without requiring a material component.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Blessing of the Moonweaver (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Blessing of the Moonweaver (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Me and my worn/carried invisible until I attack or cast; Can't cast this spell in direct sunlight\",\r\n\t\t\t\t\tchanges : \"Using Blessing of the Moonweaver, I can cast Invisibility once per long rest without requiring a material component, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"lotusden halfling\"] = { // contains contributions by Metacomet10\r\n\tregExpSearch : /^(?=.*\\b(halflings?|hobbits?)\\b)(?=.*lotusden).*$/i,\r\n\tname : \"Lotusden Halfling\",\r\n\tsortname : \"Halfling, Lotusden\",\r\n\tsource : [[\"W\", 164]],\r\n\tplural : \"Lotusden Halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Lotusden Halfling (+2 Dexterity, +1 Wisdom)\" + (typePF ?\r\n\t\t\"\\n- Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\"+\r\n\t\t\"\\n- Child of the Wood: I know the Druidcraft cantrip. At 3rd level, I can cast Entangle once per long rest. At 5th level, I can cast Spike Growth once per long rest without a material component. Wisdom is my spellcasting ability for these.\"+\r\n\t\t\" - Halfling Nimbleness: I can move through the space of any creature that is of a size larger than me.\"+\r\n\t\t\"\\n- Timberwalk: Checks to track me have disadv. I need not expend extra movement to move over difficult terrain of nonmagical plants.\" :\r\n\t\t\"\\nChild of the Wood: I know the Druidcraft cantrip, at 3rd level: Entangle, at 5th level: Spike Growth. I can use both spells once per long rest and without material components. Wisdom is my spellcasting ability. \"+\r\n\t\t\"|Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll. \"+\r\n\t\t\"|Halfling Nimbleness: I can move through the space of any creature that is of a size larger than me. \"+\r\n\t\t\"|Timberwalk: Disadv. on checks to track me. I require no extra movement for difficult terrain of nonmagical plants.\"),\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Child of the Wood (level 1)\",\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"entangle\" : {\r\n\t\t\tname : \"Child of the Wood (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Child of the Wood (level 3)\",\r\n\t\t\t\tspells : [\"entangle\"],\r\n\t\t\t\tselection : [\"entangle\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"spike growth\" : {\r\n\t\t\tname : \"Child of the Wood (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Child of the Wood (level 5)\",\r\n\t\t\t\tspells : [\"spike growth\"],\r\n\t\t\t\tselection : [\"spike growth\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spike growth\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Child of the Wood, I can cast Spike Growth once per long rest without requiring a material component.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n{ // Dragonborn variants (almost completely made by Smashman)\r\n\tvar EGtW_breathWeaponDesc = function (dmgType, shape) {\r\n\t\tvar shapeStr = shape === \"line\" ? \"5-ft by 30-ft line\" : \"15-ft cone\";\r\n\t\tvar capitailzedDmgType = dmgType.charAt(0).toUpperCase() + dmgType.slice(1);\r\n\t\tvar saveStat = [\"cold\", \"poison\"].indexOf(dmgType) >= 0 ? \"Con\" : \"Dex\";\r\n\t\treturn capitailzedDmgType + \" Breath Weapon: As an action once per short rest, I can deal 2d6 \" + dmgType + \" damage to all in a \" + shapeStr + \", \" + saveStat + \" save halves (DC 8 + Con mod + Prof Bonus).\\nThis damage increases to 3d6 at level 6, 4d6 at level 11, and 5d6 at level 16.\";\r\n\t};\r\n\tvar EGtW_draconicAncestryFeature = {\r\n\t\tname : \"Draconic Ancestry\",\r\n\t\tlimfeaname : \"Breath Weapon\",\r\n\t\tminlevel : 1,\r\n\t\tusages : 1,\r\n\t\tadditional : levels.map(function (n) {\r\n\t\t\treturn (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + 'd6';\r\n\t\t}),\r\n\t\trecovery : \"short rest\",\r\n\t\taction : [['action', \"\"]],\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.theWea.dbBreathWeapon && (/dragonborn/i).test(CurrentRace.known)) {\r\n\t\t\t\t\t\tfields.Damage_Die = (CurrentRace.level < 6 ? 2 : CurrentRace.level < 11 ? 3 : CurrentRace.level < 16 ? 4 : 5) + 'd6';\r\n\t\t\t\t\t\tif (CurrentRace.variant) {\r\n\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.breathDmgType;\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(/(dex|con) save/i, ((/cold|poison/i).test(CurrentRace.breathDmgType) ? 'Con' : 'Dex') + ' save');\r\n\t\t\t\t\t\t\tfields.Range = (/black|blue|brass|bronze|copper/i).test(CurrentRace.variant) ? '5-ft \\xD7 30-ft line' : '15-ft cone';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'',\r\n\t\t\t\t1\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\tvar EGtW_breathWeaponObj = {\r\n\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\tname : \"Breath weapon\",\r\n\t\tsource : [[\"W\", 168]],\r\n\t\tability : 3,\r\n\t\ttype : 'Natural',\r\n\t\tdamage : [2, 6, 'fire'],\r\n\t\trange : \"15-ft cone\",\r\n\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per short rest\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tdbBreathWeapon : true,\r\n\t\tselectNow : true\r\n\t};\r\n\tvar EGtW_acidBreath = EGtW_breathWeaponDesc(\"acid\", \"line\");\r\n\tvar EGtW_fireBreathCone = EGtW_breathWeaponDesc(\"fire\", \"cone\");\r\n\tvar EGtW_fireBreathLine = EGtW_breathWeaponDesc(\"fire\", \"cone\");\r\n\tvar EGtW_coldBreath = EGtW_breathWeaponDesc(\"cold\", \"cone\");\r\n\tvar EGtW_lightningBreath = EGtW_breathWeaponDesc(\"lightning\", \"line\");\r\n\tvar EGtW_poisonBreath = EGtW_breathWeaponDesc(\"poison\", \"cone\");\r\n\tvar EGtW_forcefulPresenceStr = \"Forceful Presence: Once per short rest, I can give myself adv. on an Intimidation or Persuasion check.\";\r\n\tvar EGtW_vengefulAssaultStr = \"Vengeful Assault: As a reaction when I take damage from a creature in range of a weapon that I'm holding, I can use the weapon to make an attack against the creature. I can do this once per short rest.\";\r\n\r\n\t// Draconblood\r\n\tRaceList[\"draconblood dragonborn\"] = {\r\n\t\tregExpSearch : /draconblood/i,\r\n\t\tname : \"Draconblood Dragonborn\",\r\n\t\tsortname : \"Dragonborn, Draconblood\",\r\n\t\tsource : [[\"W\", 168]],\r\n\t\tplural : \"Draconblood Dragonborn\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tweaponOptions : [EGtW_breathWeaponObj],\r\n\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 2, 0, 1],\r\n\t\ttrait : \"Draconblood Dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\t\"Draconic Ancestry: Choose one type of dragon using the \\\"Racial Options\\\" button. I gain a breath weapon as determined by the dragon type chosen.\",\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"draconic ancestry\" : EGtW_draconicAncestryFeature,\r\n\t\t\t\"forceful presence\" : {\r\n\t\t\t\tname : \"Forceful Presence\",\r\n\t\t\t\tsource : [[\"W\", 168]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tvariants : []\r\n\t};\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"black\", {\r\n\t\tregExpSearch : /black/i,\r\n\t\tname : \"Black draconblood dragonborn\",\r\n\t\ttrait : \"Black draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"blue\", {\r\n\t\tregExpSearch : /blue/i,\r\n\t\tname : \"Blue draconblood dragonborn\",\r\n\t\ttrait : \"Blue draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"brass\", {\r\n\t\tregExpSearch : /brass/i,\r\n\t\tname : \"Brass draconblood dragonborn\",\r\n\t\ttrait : \"Brass draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathLine,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"bronze\", {\r\n\t\tregExpSearch : /bronze/i,\r\n\t\tname : \"Bronze draconblood dragonborn\",\r\n\t\ttrait : \"Bronze draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"copper\", {\r\n\t\tregExpSearch : /copper/i,\r\n\t\tname : \"Copper draconblood dragonborn\",\r\n\t\ttrait : \"Copper draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"gold\", {\r\n\t\tregExpSearch : /gold/i,\r\n\t\tname : \"Gold draconblood dragonborn\",\r\n\t\ttrait : \"Gold draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"green\", {\r\n\t\tregExpSearch : /green/i,\r\n\t\tname : \"Green draconblood dragonborn\",\r\n\t\ttrait : \"Green draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_poisonBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"poison\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"red\", {\r\n\t\tregExpSearch : /red/i,\r\n\t\tname : \"Red draconblood dragonborn\",\r\n\t\ttrait : \"Red draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"silver\", {\r\n\t\tregExpSearch : /silver/i,\r\n\t\tname : \"Silver draconblood dragonborn\",\r\n\t\ttrait : \"Silver draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\tAddRacialVariant(\"draconblood dragonborn\", \"white\", {\r\n\t\tregExpSearch : /white/i,\r\n\t\tname : \"White draconblood dragonborn\",\r\n\t\ttrait : \"White draconblood dragonborn (+2 Intelligence, +1 Charisma)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_forcefulPresenceStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\r\n\t// Ravenite\r\n\tRaceList[\"ravenite dragonborn\"] = {\r\n\t\tregExpSearch : /ravenite/i,\r\n\t\tname : \"Ravenite Dragonborn\",\r\n\t\tsortname : \"Dragonborn, Ravenite\",\r\n\t\tsource : [[\"W\", 169]],\r\n\t\tplural : \"Ravenite Dragonborn\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tweaponOptions : [EGtW_breathWeaponObj],\r\n\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [2, 1, 0, 0, 0, 0],\r\n\t\ttrait : \"Ravenite Dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\t\"Draconic Ancestry: Choose one type of dragon using the \\\"Racial Options\\\" button. I gain a breath weapon as determined by the dragon type chosen.\",\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"draconic ancestry\" : EGtW_draconicAncestryFeature,\r\n\t\t\t\"vengeful assault\" : {\r\n\t\t\t\tname : \"Vengeful Assault\",\r\n\t\t\t\tsource : [[\"W\", 168]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taction : [['reaction', \"\"]],\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tvariants : []\r\n\t};\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"black\", {\r\n\t\tregExpSearch : /black/i,\r\n\t\tname : \"Black ravenite dragonborn\",\r\n\t\ttrait : \"Black ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"blue\", {\r\n\t\tregExpSearch : /blue/i,\r\n\t\tname : \"Blue ravenite dragonborn\",\r\n\t\ttrait : \"Blue ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"brass\", {\r\n\t\tregExpSearch : /brass/i,\r\n\t\tname : \"Brass ravenite dragonborn\",\r\n\t\ttrait : \"Brass ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathLine,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"bronze\", {\r\n\t\tregExpSearch : /bronze/i,\r\n\t\tname : \"Bronze ravenite dragonborn\",\r\n\t\ttrait : \"Bronze ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_lightningBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"lightning\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"copper\", {\r\n\t\tregExpSearch : /copper/i,\r\n\t\tname : \"Copper ravenite dragonborn\",\r\n\t\ttrait : \"Copper ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_acidBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"acid\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"gold\", {\r\n\t\tregExpSearch : /gold/i,\r\n\t\tname : \"Gold ravenite dragonborn\",\r\n\t\ttrait : \"Gold ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"green\", {\r\n\t\tregExpSearch : /green/i,\r\n\t\tname : \"Green ravenite dragonborn\",\r\n\t\ttrait : \"Green ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_poisonBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"poison\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"red\", {\r\n\t\tregExpSearch : /red/i,\r\n\t\tname : \"Red ravenite dragonborn\",\r\n\t\ttrait : \"Red ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_fireBreathCone,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"fire\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"silver\", {\r\n\t\tregExpSearch : /silver/i,\r\n\t\tname : \"Silver ravenite dragonborn\",\r\n\t\ttrait : \"Silver ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n\tAddRacialVariant(\"ravenite dragonborn\", \"white\", {\r\n\t\tregExpSearch : /white/i,\r\n\t\tname : \"White ravenite dragonborn\",\r\n\t\ttrait : \"White ravenite dragonborn (+2 Strength, +1 Constitution)\" + desc([\r\n\t\t\tEGtW_coldBreath,\r\n\t\t\tEGtW_vengefulAssaultStr\r\n\t\t]),\r\n\t\tbreathDmgType : \"cold\"\r\n\t});\r\n}\r\n\r\n// [dupl_start] reprints from Volo's Guide to Monsters\r\nif (!SourceList.V) {\r\n\tRaceList[\"fallen aasimar\"] = {\r\n\t\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*fallen).*$/i,\r\n\t\tname : \"Fallen Aasimar\",\r\n\t\tsource : [[\"V\", 104], [\"W\", 168]],\r\n\t\tplural : \"Fallen Aasimar\",\r\n\t\tsortname : \"Aasimar, Fallen\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [1, 0, 0, 0, 0, 2],\r\n\t\ttrait : \"Fallen Aasimar (+1 Strength, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nNecrotic Shroud: Once per long rest when I'm 3rd level, I can use an action to transform, causing all within 10 ft of me to make a Cha\" + (typePF ? \"\" : \"risma\") + \" saving throw (DC 8 + Cha mod + Prof Bonus) or be frightened of me until the end of my next turn. This lasts for 1 minute or until I end it as a bonus action. Once on my turn I can have one of my attacks or spells deals my level in extra necrotic damage to one target.\",\r\n\t\tabilitySave : 6,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Light Bearer\",\r\n\t\t\tspells : [\"light\"],\r\n\t\t\tselection : [\"light\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"healing hands\" : {\r\n\t\t\t\tname : \"Healing Hands\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"necrotic shroud\" : {\r\n\t\t\t\tname : \"Necrotic Shroud\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"protector aasimar\"] = {\r\n\t\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*protector).*$/i,\r\n\t\tname : \"Protector Aasimar\",\r\n\t\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\t\tplural : \"Protector Aasimar\",\r\n\t\tsortname : \"Aasimar, Protector\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 0, 1, 2],\r\n\t\ttrait : \"Protector Aasimar (+1 Wisdom, +2 Charisma)\\nLight Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Soul: Once per long rest when I'm 3rd level, I can use an action to transform, gaining glimmer in my eyes and two incorporeal wings. For 1 minute or until I end it as a bonus action, I have 30 feet fly speed; once on my turn I can have one of my attacks or spells deal my level in extra radiant damage to one target.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Light Bearer\",\r\n\t\t\tspells : [\"light\"],\r\n\t\t\tselection : [\"light\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"healing hands\" : {\r\n\t\t\t\tname : \"Healing Hands\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"radiant soul\" : {\r\n\t\t\t\tname : \"Radiant Soul\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 3 ? \"\" : \"+\" + n + \" damage\"; }),\r\n\t\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"scourge aasimar\"] = {\r\n\t\tregExpSearch : /^((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel))))(?=.*scourge).*$/i,\r\n\t\tname : \"Scourge Aasimar\",\r\n\t\tsource : [[\"V\", 104], [\"W\", 167]],\r\n\t\tplural : \"Scourge Aasimar\",\r\n\t\tsortname : \"Aasimar, Scourge\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 1, 0, 0, 2],\r\n\t\ttrait : \"Scourge Aasimar (+1 Constitution, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip.\\nHealing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRadiant Consumption: Once per long rest when I'm 3rd level, I can use an action to radiate bright light in 10-ft radius and dim light for another 10-ft, for 1 minute or until I end it as a bonus action. Once on my turn my attack or spell deals my level in extra radiant damage to one target, and at the end of my turns all creatures within 10 ft of me, including myself, take half my level in radiant damage.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Light Bearer\",\r\n\t\t\tspells : [\"light\"],\r\n\t\t\tselection : [\"light\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"healing hands\" : {\r\n\t\t\t\tname : \"Healing Hands\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"radiant consumption\" : {\r\n\t\t\t\tname : \"Radiant Consumption\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\tif (n < 3) return \"\"\r\n\t\t\t\t\treturn Math.ceil(n/2) + \"/\" + n + \" damage\";\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tif (!RaceList[\"bugbear\"]) {\r\n\t\tRaceList[\"bugbear\"] = {\r\n\t\t\tregExpSearch : /bugbear/i,\r\n\t\t\tname : \"Bugbear\",\r\n\t\t\tsource : [[\"V\", 119], [\"E:RLW\", 25], [\"W\", 174]],\r\n\t\t\tplural : \"Bugbears\",\r\n\t\t\tsize : 3,\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\t\t\tvision : [[\"Darkvision\", 60]],\r\n\t\t\tskills : [\"Stealth\"],\r\n\t\t\tage : \" reach adulthood at age 16 and live up to 80 years\",\r\n\t\t\theight : \" are between 6 and 8 feet tall (6'0\\\" + 2d12\\\")\",\r\n\t\t\tweight : \" weigh between 250 and 350 lb (200 + 2d12 \\xD7 2d6 lb)\",\r\n\t\t\theightMetric : \" are between 1,9 and 2,4 metres tall (185 + 5d12 cm)\",\r\n\t\t\tweightMetric : \" weigh between 115 and 160 kg (90 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\t\t\tscores : [2, 1, 0, 0, 0, 0],\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"surprise attack\" : {\r\n\t\t\t\t\tname : \"Surprise Attack\",\r\n\t\t\t\t\tminlevel : 1,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"Combat\",\r\n\t\t\t\t\tadditional : \"2d6\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttrait : \"Bugbear (+2 Strength, +1 Dexterity)\\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\\nLong-Limbed: I have an additional 5 feet reach with melee attacks that I make on my turn.\\nSurprise Attack: If I hit a surprised creature on my first turn in combat, that attack deals an extra 2d6 damage. I can do this only once per combat.\",\r\n\t\t\tcarryingCapacity : 2\r\n\t\t};\r\n\t}\r\n\tRaceList[\"firbolg\"] = {\r\n\t\tregExpSearch : /firbolg/i,\r\n\t\tname : \"Firbolg\",\r\n\t\tsource : [[\"V\", 106], [\"W\", 170]],\r\n\t\tplural : \"Firbolg\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Elvish\", \"Giant\", \"Speech of Beast and Leaf\"],\r\n\t\tage : \" reach adulthood around 30 and can live for 500 years\",\r\n\t\theight : \" are between 6 and half and 8 feet tall (6'2\\\" + 2d12\\\")\",\r\n\t\tweight : \" weigh between 240 and 300 lb (175 + 2d12 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" are between 2 and 2,5 metres tall (190 + 5d12 cm)\",\r\n\t\tweightMetric : \" weigh between 110 and 135 kg (80 + 5d12 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [1, 0, 0, 0, 2, 0],\r\n\t\ttrait : \"Firbolg (+1 Strength, +2 Wisdom)\" + (typePF ? \"\\n\" : \" \") + \"Hidden Step: Once per short rest, as a bonus action, I turn invisible until the start of my next turn as per the invisibility spell.\\nPowerful Build: I count as one size larger for the weight I can carry.\\nFirbolg Magic: I can cast the Detect Magic and Disguise Self spells each once per short rest. With Disguise Self I can seem up to 3 feet shorter. Wisdom is my ability for these spells.\\nSpeech of Beast and Leaf: I can make my words understood, in a limited manner, by beasts and plants. I have advantage on Charisma checks to influence them.\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tfeatures : {\r\n\t\t\t\"firbolg magic (detect magic)\" : {\r\n\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\t\tspells : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\t\tselection : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\t\tfirstCol : 'oncesr',\r\n\t\t\t\t\ttimes : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"disguise self\" : {\r\n\t\t\t\t\t\tdescription : \"Alter appearance, up to 3ft shorter/taller; Int(Investigation) check vs. spell DC to determine disguise\",\r\n\t\t\t\t\t\tchanges : \"Using Firbolg Magic, I can cast Disguise Self once per short rest to also seem up to 3 feet shorter or taller.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"hidden step\" : {\r\n\t\t\t\tname : \"Hidden Step\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\tcarryingCapacity : 2\r\n\t};\r\n\tif (!RaceList[\"goblin\"]) {\r\n\t\tRaceList[\"goblin\"] = {\r\n\t\t\tregExpSearch : /^(?=.*\\bgoblins?\\b)(?!.*(hobgoblin|bugbear)).*$/i,\r\n\t\t\tname : \"Goblin\",\r\n\t\t\tsource : [[\"V\", 119], [\"G\", 17], [\"E:RLW\", 26], [\"W\", 174]],\r\n\t\t\tplural : \"Goblins\",\r\n\t\t\tsize : 4,\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\t\t\tvision : [[\"Darkvision\", 60]],\r\n\t\t\tage : \" reach adulthood at age 8 and live up to 60 years\",\r\n\t\t\theight : \" are between 3 and a half and 4 feet tall (3'5\\\" + 2d4\\\")\",\r\n\t\t\tweight : \" weigh between 40 and 70 lb (35 + 2d4 \\xD7 1 lb)\",\r\n\t\t\theightMetric : \" are between 100 and 120 cm tall (100 + 5d4 cm)\",\r\n\t\t\tweightMetric : \" weigh between 20 and 30 kg (17 + 5d4 \\xD7 2 / 10 kg)\",\r\n\t\t\tscores : [0, 2, 1, 0, 0, 0],\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"fury of the small\" : {\r\n\t\t\t\t\tname : \"Fury of the Small\",\r\n\t\t\t\t\tminlevel : 1,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\t\tadditional : levels.map(function (n) { return \"+\" + n + \" damage\"; })\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\t\t\ttrait : \"Goblin (+2 Dexterity, +1 Constitution)\"+\r\n\t\t\t\"\\n \\u2022 Fury of the Small: Once per short rest, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my level.\"+\r\n\t\t\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n\t\t};\r\n\t}\r\n\tif (!RaceList[\"goliath\"]) {\r\n\t\tRaceList[\"goliath\"] = {\r\n\t\t\tregExpSearch : /goliath/i,\r\n\t\t\tname : \"Goliath\",\r\n\t\t\tsource : [[\"E\", 11], [\"V\", 108], [\"W\", 176]],\r\n\t\t\tplural : \"Goliaths\",\r\n\t\t\tsize : 3,\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [\"Common\", \"Giant\"],\r\n\t\t\tdmgres : [\"Cold\"],\r\n\t\t\tskills : [\"Athletics\"],\r\n\t\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\t\theight : \" are between 6 and a half and 8 feet tall (6'2\\\" + 2d10\\\")\",\r\n\t\t\tweight : \" weigh between 280 and 340 lb (200 + 2d10 \\xD7 2d6 lb)\",\r\n\t\t\theightMetric : \" are between 2 and 2,4 metres tall (190 + 5d10 cm)\",\r\n\t\t\tweightMetric : \" weigh between 100 and 155 kg (90 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\t\t\tscores : [2, 0, 1, 0, 0, 0],\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"stone's endurance\" : {\r\n\t\t\t\t\tname : \"Stone's Endurance\",\r\n\t\t\t\t\tminlevel : 1,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttrait : \"Goliath (+2 Strength, +1 Constitution)\"+\r\n\t\t\t\"\\n \\u2022 Stone's Endurance: Once per short rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\t\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\"+\r\n\t\t\t(typePF ? \"\\n \\u2022 Natural Athlete: I have proficiency in the Athletics skill.\" : \"\"),\r\n\t\t\tcarryingCapacity : 2\r\n\t\t};\r\n\t}\r\n\tif (!RaceList[\"hobgoblin\"]) {\r\n\t\tRaceList[\"hobgoblin\"] = {\r\n\t\t\tregExpSearch : /hobgoblin/i,\r\n\t\t\tname : \"Hobgoblin\",\r\n\t\t\tsource : [[\"V\", 119], [\"E:RLW\", 26], [\"W\", 175]],\r\n\t\t\tplural : \"Hobgoblins\",\r\n\t\t\tsize : 3,\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [\"Common\", \"Goblin\"],\r\n\t\t\tvision : [[\"Darkvision\", 60]],\r\n\t\t\tarmorProfs : [true, false, false, false],\r\n\t\t\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\t\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\t\tweight : \" weigh between 150 and 200 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\t\tweightMetric : \" weigh between 70 and 90 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\t\tscores : [0, 0, 2, 1, 0, 0],\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"saving face\" : {\r\n\t\t\t\t\tname : \"Saving Face\",\r\n\t\t\t\t\tminlevel : 1,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttrait : \"Hobgoblin (+2 Constitution, +1 Intelligence)\\n\\nMartial Training: I am proficient with two martial weapons of my choice and light armor.\\n\\nSaving Face: Once per short rest, when I miss an attack roll or fail an ability check or a saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5).\"\r\n\t\t};\r\n\t}\r\n\tRaceList[\"kenku\"] = {\r\n\t\tregExpSearch : /kenku/i,\r\n\t\tname : \"Kenku\",\r\n\t\tsource : [[\"V\", 109], [\"W\", 177]],\r\n\t\tplural : \"Kenku\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tskillstxt : \"Choose two from Acrobatics, Deception, Stealth, and Sleight of Hand\",\r\n\t\tlanguageProfs : [\"Common\", \"Auran\"],\r\n\t\tage : \" reach maturity at about 12 years old and can live to 60\",\r\n\t\theight : \" are around 5 feet tall (4'4\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh between 90 and 120 lb (70 + 2d8 \\xD7 1d4 lb)\",\r\n\t\theightMetric : \" are around 1,5 metres tall (135 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh between 40 and 55 kg (35 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\t\tscores : [0, 2, 0, 0, 1, 0],\r\n\t\ttrait : \"Kenku (+2 Dexterity, +1 Wisdom)\"+\r\n\t\t\t\"\\n \\u2022 Expert Forgery: Kenku can duplicate other creatures' handwriting and craftwork. I have advantage on all checks made to produce forgeries or duplicates of existing objects.\"+\r\n\t\t\t\"\\n \\u2022 Mimicry: I can mimic any sounds I have heard, including voices, but can otherwise not speak. Creatures hearing these sounds can determine they are imitations with a successful Wisdom (Insight) check opposed by my Charisma (Deception).\"\r\n\t};\r\n}\r\n// reprints from Elemental Evil Player's Companion\r\nif (!SourceList.E) {\r\n\tRaceList[\"aarakocra\"] = {\r\n\t\tregExpSearch : /aarakocra/i,\r\n\t\tname : \"Aarakocra\",\r\n\t\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\t\tplural : \"Aarakocra\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 25, enc : 15 },\r\n\t\t\tfly : { spd : 50, enc : 0 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Aarakocra\", \"Auran\"],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /talon/i,\r\n\t\t\tname : \"Talons\",\r\n\t\t\tsource : [[\"E\", 5], [\"W\", 166]],\r\n\t\t\tdamage : [1, 4, \"slashing\"],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tage : \" reach maturity by age 3 and live about 30 years\",\r\n\t\theight : \" are about 5 feet tall\",\r\n\t\tweight : \" weigh between 80 and 100 lb\",\r\n\t\theightMetric : \" are about 1,5 metres tall\",\r\n\t\tweightMetric : \" weigh between 36 and 45 kg\",\r\n\t\tscores : [0, 2, 0, 0, 1, 0],\r\n\t\ttrait : \"Aarakocra (+2 Dexterity, +1 Wisdom)\\n\\nFlight: I have a flying speed of 50 feet. To use this speed, I can't be wearing medium or heavy armor.\\n\\nTalons: My unarmed strikes deal 1d4 slashing damage on a hit.\"\r\n\t};\r\n\tRaceList[\"air genasi\"] = {\r\n\t\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bairs?\\b).*$/i,\r\n\t\tname : \"Air genasi\",\r\n\t\tsortname : \"Genasi, Air\",\r\n\t\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\t\tplural : \"Air genasi\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\t\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 1, 2, 0, 0, 0],\r\n\t\ttrait : \"Air Genasi (+1 Dexterity, +2 Constitution)\\n\\nUnending Breath: I can hold my breath indefinitely while I am not incapacitated.\\n\\nMingle with the Wind: I can cast the Levitate spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\t\tspellcastingAbility : 3,\r\n\t\tfeatures : {\r\n\t\t\t\"levitate\" : {\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\t\tselection : [\"levitate\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Levitate once per long rest without requiring material components.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"earth genasi\"] = {\r\n\t\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bearths?\\b).*$/i,\r\n\t\tname : \"Earth genasi\",\r\n\t\tsortname : \"Genasi, Earth\",\r\n\t\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\t\tplural : \"Earth genasi\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\t\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [1, 0, 2, 0, 0, 0],\r\n\t\ttrait : \"Earth Genasi (+1 Strength, +2 Constitution)\" + (typePF ? \"\\n\" : \"\") + \"\\nEarth Walk: I can move across difficult terrain made of earth or stone without expending extra movement.\" + (typePF ? \"\\n\" : \"\") + \"\\nMerge with Stone: I can cast the Pass without Trace spell once with this trait, requiring no material components, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for this spell.\",\r\n\t\tspellcastingAbility : 3,\r\n\t\tfeatures : {\r\n\t\t\t\"pass without trace\" : {\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\t\tspells : [\"pass without trace\"],\r\n\t\t\t\t\tselection : [\"pass without trace\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Pass without Trace once per long rest without requiring material components.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"fire genasi\"] = {\r\n\t\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bfires?\\b).*$/i,\r\n\t\tname : \"Fire genasi\",\r\n\t\tsortname : \"Genasi, Fire\",\r\n\t\tsource : [[\"E\", 9], [\"W\", 172]],\r\n\t\tplural : \"Fire genasi\",\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 2, 1, 0, 0],\r\n\t\ttrait : \"Fire Genasi (+2 Constitution, +1 Intelligence)\\n\\nReach to the Blaze:\\n   I know the Produce Flame cantrip.\\n   Once I reach 3rd level, I can cast the Burning Hands spell once as a 1st-level spell.\\n   I regain the ability to cast it this way when I finish a long rest.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 3,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Reach to the Blaze (level 1)\",\r\n\t\t\tspells : [\"produce flame\"],\r\n\t\t\tselection : [\"produce flame\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"burning hands\" : {\r\n\t\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tRaceList[\"water genasi\"] = {\r\n\t\tregExpSearch : /^(?=.*(genasi|planetouched))(?=.*\\bwaters?\\b).*$/i,\r\n\t\tname : \"Water genasi\",\r\n\t\tsortname : \"Genasi, Water\",\r\n\t\tsource : [[\"E\", 10], [\"W\", 172]],\r\n\t\tplural : \"Water genasi\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 },\r\n\t\t\tswim : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Primordial\"],\r\n\t\tdmgres : [\"Acid\"],\r\n\t\tage : \" reach adulthood in their late teens and live up to 120 years\",\r\n\t\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 75 lb (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 2, 0, 1, 0],\r\n\t\ttrait : \"Water Genasi (+2 Constitution, +1 Wisdom)\\nAmphibious: I can breathe air and water.\\nSwim: I have a swimming speed of 30 feet.\\nCall to the Wave: I know the Shape Water cantrip.\\n   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.\\n   Constitution is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 3,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Call to the Wave (level 1)\",\r\n\t\t\tspells : [\"shape water\"],\r\n\t\t\tselection : [\"shape water\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"create or destroy water\" : {\r\n\t\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\t\t\tspells : [\"create or destroy water\"],\r\n\t\t\t\t\tselection : [\"create or destroy water\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tSpellsList[\"shape water\"] = {\r\n\t\tname : \"Shape Water\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 164], [\"E\", 21], [\"W\", 172]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"S\",\r\n\t\tduration : \"Instant. or 1 h\",\r\n\t\tdescription : \"5 cu ft water; instant: move/change flow; 1h: simple shapes/change color or opacity/freeze\",\r\n\t\tdescriptionFull : \"You choose an area of water that you can see within range and that fits within a 5-foot cube. You manipulate it in one of the following ways.\" + \"\\n \" + \"\\u2022 You instantaneously move or otherwise change the flow of the water as you direct, up to 5 feet in any direction. This movement doesn't have enough force to cause damage.\" + \"\\n \" + \"\\u2022 You cause the water to form into simple shapes and animate at your direction. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You change the water's color or opacity. The water must be changed in the same way throughout. This change lasts for 1 hour.\" + \"\\n \" + \"\\u2022 You freeze the water, provided that there are no creatures in it. The water unfreezes in 1 hour.\" + \"\\n\\n\" + \"If you cast this spell multiple times, you can have no more than two of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.\"\r\n\t};\r\n}\r\n// reprint from Mordenkainen's Tome of Foes\r\nif (!SourceList.MToF) {\r\n\tRaceList[\"sea elf\"] = {\r\n\t\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\r\n\t\tname : \"Sea elf\",\r\n\t\tsortname : \"Elf, Sea\",\r\n\t\tsource : [[\"MToF\", 62], [\"W\", 163], [\"UA:ES\", 1]],\r\n\t\tplural : \"Sea elves\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 },\r\n\t\t\tswim : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tweaponProfs : [false, false, [\"spear\", \"trident\", \"light crossbow\", \"net\"]],\r\n\t\tlanguageProfs : [\"Common\", \"Elvish\", \"Aquan\", \"Friend of the Sea\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\tadv_vs : [\"charmed\"]\r\n\t\t},\r\n\t\tskills : [\"Perception\"],\r\n\t\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\t\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\r\n\t\theightMetric : \" range from under 1,5 to almost 1,8 metres tall (140 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\t\tscores : [0, 2, 1, 0, 0, 0],\r\n\t\ttrait : \"Sea Elf (+2 Dexterity, +1 Constitution)\" + desc([\r\n\t\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\",\r\n\t\t\t\"Child of the Sea. I have 30 ft swimming speed and can breathe air and water.\",\r\n\t\t\t\"Friend of the Sea: Through sounds and gestures, I can communicate simple ideas with any beast that has an inborn swimming speed.\"\r\n\t\t])\r\n\t};\r\n}\r\n// reprint from the Tortle Package\r\nif (!RaceList.tortle) {\r\n\tRaceList.tortle = {\r\n\t\tregExpSearch : /tortle/i,\r\n\t\tname : \"Tortle\",\r\n\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\tplural : \"Tortles\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Aquan\"],\r\n\t\tskills : [\"Survival\"],\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*tortle)(?=.*shell).*$/i,\r\n\t\t\tname : \"Tortle's Shell\",\r\n\t\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\t\tac : 17,\r\n\t\t\tdex : -10,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*tortle)(?=.*\\bclaws?\\b).*$/i,\r\n\t\t\tname : \"Tortle's Claws\",\r\n\t\t\tsource : [[\"TP\", 4], [\"W\", 181]],\r\n\t\t\tdamage : [1, 4, \"slashing\"],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tage : \" reach adulthood by the age of 15 and live an average of 50 years\",\r\n\t\theight : \" stand between 5 and 6 feet tall (4'10\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 450 lb (400 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" stand between 1,5 and 1,8 metres tall (150 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 190 kg (180 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [2, 0, 0, 0, 1, 0],\r\n\t\taction : [[\"action\", \"Shell Defense (start)\"], [\"bonus action\", \"Shell Defense (end)\"]],\r\n\t\ttrait : \"Tortle (+2 Strength, +1 Wisdom)\"+\r\n\t\t\"\\n \\u2022 Claws: My unarmed strikes with my claws deal 1d4 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 1 hour at a time.\"+\r\n\t\t\"\\n \\u2022 Natural Armor: I have a base AC of 17, but I can't add my Dex to it or wear armor.\"+\r\n\t\t\"\\n \\u2022 Shell Defense: As an action, I can withdraw into my shell and gain +4 AC and adv. on Str and Con saves, but I count as prone, have speed 0, have disadv. on Dex saves, and can't take reactions. The only action I can take is a bonus action to emerge from the shell.\"\r\n\t};\r\n} // dupl_end\r\n\r\n// Subclasses\r\nAddSubClass(\"fighter\", \"echo knight\", { // contains contributions by Smashman, @Nod_Hero#2046 (Discord), BraabHimself, and TysonJouglet\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green))(?=.*(knight|fighter|warrior|militant|warlord|phalanx|gladiator|trooper))(?=.*(echo|mirror|mirage|reflection)).*$/i,\r\n\tsubname : \"Echo Knight\",\r\n\tsource : [[\"W\", 183]],\r\n\tfullname : \"Echo Knight\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Manifest Echo\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can magically manifest a translucent image of myself within 15 ft\",\r\n\t\t\t\t\"My echo lasts until I dismiss it as a bonus action, I manifest another, or I'm incapacitated\",\r\n\t\t\t\t\"It is also destroyed if it is more than 30 ft away from me at the end of my turn\",\r\n\t\t\t\t\"It has 1 HP, immunity to all conditions, uses my save bonuses, and AC 14 + Prof Bonus\",\r\n\t\t\t\t\"On my turn as a free action, I can command it to move up to 30 ft in any direction\",\r\n\t\t\t\t\"As a bonus action, I can teleport to swap places with it, at a cost of 15 ft movement\",\r\n\t\t\t\t\"When I use the Attack action on my turn, I can have any attack originate from my echo\",\r\n\t\t\t\t\"I can also make opportunity attacks from the echo's location as if I were in its space\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/dismiss)\"], [\"bonus action\", \"Swap Location with Echo\"]],\r\n\t\t\tcreaturesAdd : [[\"Echo\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Echo\",\r\n\t\t\t\tsource : [[\"W\", 183]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Echo\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : \"14+oProf\",\r\n\t\t\t\thp : 1,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"fly 30 ft (hover)\",\r\n\t\t\t\tscores : [\"\", \"\", \"\", \"\", \"\", \"\"],\r\n\t\t\t\tsavesLinked : true,\r\n\t\t\t\tcondition_immunities : \"all conditions\",\r\n\t\t\t\tpassivePerception : 0,\r\n\t\t\t\tlanguages : \"\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 0,\r\n\t\t\t\tattacksAction : 0,\r\n\t\t\t\tattacks : [],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Echo\",\r\n\t\t\t\t\tdescription : \"The echo is a magical, translucent, gray image of its creator that doesn't act and has no turn in combat. It lasts until it is destroyed, dismissed, another is manifested, or its creator is incapacitated. The echo is also destroyed if it is ever more than 30 ft away from its creator at the end of its creator's turn.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Swap Place\",\r\n\t\t\t\t\tdescription : \"The echo's creator can, as a bonus action, teleport, magically swapping places with the echo at a cost of 15 feet of the creator's movement, regardless of the distance between the two.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Attack Origin\",\r\n\t\t\t\t\tdescription : \"When the echo's creator takes the Attack action on their turn, any attack they make with that action can originate from the echo's space. This choice is made for each attack separately.\\n   In addition, when a creature that the echo's creator can see within 5 ft of the echo moves at least 5 ft away from it, its creator can use their reaction to make an opportunity attack against that creature as if its creator was in the echo's space.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Echo\",\r\n\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t// Same size as character\r\n\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", tDoc.getField(\"Size Category\").currentValueIndices);\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Age\", What(\"Age\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Sex\", What(\"Sex\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Height\", What(\"Height\"));\r\n\t\t\t\t\tValue(prefix + \"Comp.Desc.Alignment\", What(\"Alignment\"));\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Unleash Incarnation\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use the Attack action, I can make one extra melee attack from my echo's position\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Echo Avatar\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can temporarily transfer my consciousness to my echo for up to 10 min\",\r\n\t\t\t\t\"During this time, I see and hear through its eyes and ears, but not my own eyes and ears\",\r\n\t\t\t\t\"While I use my echo this way, it can be up to 1000 ft away from me without issue\",\r\n\t\t\t\t\"I can end this at any time, requiring no action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shadow Martyr\",\r\n\t\t\tsource : [[\"W\", 183]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see is attacked, I can make my echo the target\",\r\n\t\t\t\t\"Before the attack roll, the echo teleports to an empty space within 5 ft of the creature\",\r\n\t\t\t\t\"The attack roll of the triggering attack is then made against the echo instead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Reclaim Potential\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When my echo is destroyed by taking damage, I gain 2d6 + my Con mod in temp HP\",\r\n\t\t\t\t\"I can only gain these temporary hit points if I don't already have temporary hit points\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Legion of One\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can now manifest two echoes instead of one with the same bonus action\",\r\n\t\t\t\t\"These two can coexist, but if I manifest a third, the previous two are destroyed\",\r\n\t\t\t\t\"Anything I can do from one echo's position can be done from the other's instead\",\r\n\t\t\t\t\"I regain one use of Unleash Incarnation if I have no more remaining when I roll initiative\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"chronurgy magic\", { // contains contributions by bassbogan on GitHub and @Nod_Hero#2046 on Discord\r\n\tregExpSearch : /chronurgy|chronomancer|chronurgist/i,\r\n\tsubname : \"Chronurgy Magic\",\r\n\tsubnameShort: \"Chronurgy\",\r\n\tfullname : \"Chronurgist\",\r\n\tsource : [[\"W\", 184]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Chronal Shift\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after I or a creature I see rolls a check, save, or attack, I can force a reroll\",\r\n\t\t\t\t\"I can do this after I see if the roll fails or succeeds; The target must use the second roll.\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\teval : function() {\r\n\t\t\t\t// Always have access to dunamancy spells enabled\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") === -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\t// Remove access to dunamancy spells when removing subclass\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") !== -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true], \"remove\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Temporal Awareness\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"\r\n\t\t\t]),\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Momentary Stasis\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can have a Large or smaller creature I can see in 60 ft make a Con save\",\r\n\t\t\t\t\"If failed, it is encased in a field of magical energy, incapacitated and has a speed of 0\",\r\n\t\t\t\t\"This lasts until the end of my next turn or until the creature takes any damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Arcane Abeyance\",\r\n\t\t\tsource : [[\"W\", 184]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast a 4th-level or lower spell, I can condense it into a mote\",\r\n\t\t\t\t\"The spell is frozen in time at the moment of casting and held within a grey bead\",\r\n\t\t\t\t\"The bead is a Tiny object with 1 HP, AC 15, and immune to poison and psychic damage\",\r\n\t\t\t\t\"After 1 hour or if it is destroyed, it vanishes with a flash of light and the spell is lost\",\r\n\t\t\t\t\"As an action, a creature holding the bead can release the spell within as if they cast it\",\r\n\t\t\t\t\"The spell still uses my spell attack bonus and save DC; The bead vanishes once used\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Convergent Future\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction after I or a creature I see rolls a check, save, or attack, I can choose the roll\",\r\n\t\t\t\t\"I decide the number rolled, if it is the minimum needed to succeed or 1 less than that\",\r\n\t\t\t\t\"When I use this feature, I gain a level of exhaustion which only a long rest can remove\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"wizard\", \"graviturgy magic\", { // contains contributions by bassbogan on GitHub and @Nod_Hero#2046 on Discord\r\n\tregExpSearch : /^((?=.*graviturgy)(?=.*(wizard|magic|mage))|gravimancer|graviturgist).*$/i,\r\n\tsubname : \"Graviturgy Magic\",\r\n\tsubnameShort: \"Graviturgy\",\r\n\tfullname : \"Graviturgist\",\r\n\tsource : [[\"W\", 185]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Adjust Density\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically double or halve the weight of a creature I can see in 30 ft\",\r\n\t\t\t\t\"If doubled, it has -10 ft speed and advantage on Strength checks and Strength saves\",\r\n\t\t\t\t\"If halved, it has +10 ft speed, can jump twice as far, and disadv. on Str checks and saves\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration ends (like concentrating on a spell)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? \"Large\" : \"Huge\") + \" or smaller creatures\";\r\n\t\t\t}),\r\n\t\t\teval : function() {\r\n\t\t\t\t// Always have access to dunamancy spells enabled\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") === -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tremoveeval : function() {\r\n\t\t\t\t// Remove access to dunamancy spells when removing subclass\r\n\t\t\t\tif (GetFeatureChoice(\"classes\", \"wizard\", \"spellcasting\", true).indexOf(\"access to dunamancy spells\") !== -1) {\r\n\t\t\t\t\tClassFeatureOptions([\"wizard\", \"spellcasting\", \"access to dunamancy spells\", true], \"remove\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Gravity Well\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I cast a spell on a creature, I can move it 5 ft to an empty space of my choice\",\r\n\t\t\t\t\"This only works if the target is willing, fails its save vs. the spell, or the spell attack hits it\"\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Violent Attraction\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I see in 60 ft hits a weapon attack, I can improve it\",\r\n\t\t\t\t\"I increase the weapon's velocity, causing it to deal an extra 1d10 damage\",\r\n\t\t\t\t\"As a reaction if a creature within 60 ft is damaged by a fall, I can increase it by 2d10\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Event Horizon\",\r\n\t\t\tsource : [[\"W\", 185]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically emit powerful gravitational magic that pulls on hostiles\",\r\n\t\t\t\t\"Whenever a creature hostile to me starts it turn within 30 ft, it must make Str save\",\r\n\t\t\t\t\"If failed, it takes 2d10 force damage and its speed is 0 until the start of its next turn\",\r\n\t\t\t\t\"If successful, it takes half the damage and every foot it moves this turn costs 2 extra feet\",\r\n\t\t\t\t\"This lasts for 1 minute or until my concentration ends (like concentrating on a spell)\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add option to allow Dunamancy spells for the other spellcastingclasses\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the bard spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the bard class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the cleric spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the cleric class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the druid spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the druid class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the paladin spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the paladin class with all dunamancy spells (spell level in brackets): Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), and Temporal Shunt (5).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\nvar EGtW_Ranger_Dunamancy_Spells = {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the ranger spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the ranger class with all dunamancy spells (spell level in brackets): Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), and Temporal Shunt (5).\"\r\n\t\t]\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Access to Dunamancy Spells\", EGtW_Ranger_Dunamancy_Spells, \"Optional 2nd-level ranger features\");\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList[\"rangerua\"]) return;\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Access to Dunamancy Spells\", EGtW_Ranger_Dunamancy_Spells, \"Optional 2nd-level ranger features\");\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the sorcerer spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the sorcerer class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the warlock spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the warlock class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\tname : \"Dunamancy Spells\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"W\", 186]],\r\n\tdescription : desc([\r\n\t\t\"All dunamancy spells are added to the wizard spell list, each still pending DM's approval\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\", \"gravity fissure\", \"tether essence\", \"dark star\", \"reality break\", \"ravenous void\", \"time ravage\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the wizard class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5), Gravity Fissure (6), Tether Essence (7), Dark Star (8), Reality Break (8),Ravenous Void (9), and Time Ravage (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList.artificer) return;\r\n\tAddFeatureChoice(ClassList.artificer.features.spellcasting, true, \"Access to Dunamancy Spells\", {\r\n\t\tname : \"Dunamancy Spells\",\r\n\t\textraname : \"Optional Artificer 1\",\r\n\t\tsource : [[\"W\", 186]],\r\n\t\tdescription : desc([\r\n\t\t\t\"All dunamancy spells are added to the artificer spell list, each still pending DM's approval\"\r\n\t\t]),\r\n\t\tcalcChanges : {\r\n\t\t\tspellList : [\r\n\t\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t\tif (spName !== \"artificer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\t\tspList.extraspells = spList.extraspells.concat([\"sapping sting\", \"gift of alacrity\", \"magnify gravity\", \"fortune's favor\", \"immovable object\", \"wristpocket\", \"pulse wave\", \"gravity sinkhole\", \"temporal shunt\"]);\r\n\t\t\t\t},\r\n\t\t\t\t\"This optional class feature expands the spell list of the artificer class with all dunamancy spells (spell level in brackets): Sapping Sting (cantrip), Gift of Alacrity (1), Magnify Gravity (1), Fortune's Favor (2), Immovable Object (2), Wristpocket (2), Pulse Wave (3), Gravity Sinkhole (4), Temporal Shunt (5).\"\r\n\t\t\t]\r\n\t\t}\r\n\t}, \"Optional 1st-level artificer features\");\r\n});\r\n\r\n// Backgrounds (includes contributions by remcovandalen)\r\nBackgroundList[\"grinner\"] = {\r\n\tregExpSearch : /grinner/i,\r\n\tname : \"Grinner\",\r\n\tsource : [[\"W\", 200]],\r\n\tskills : [\"Deception\", \"Performance\"],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"], [\"Musical instrument\", 1]],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit\", \"\", 3],\r\n\t\t[\"Musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Fine clothes\", \"\", 6],\r\n\t\t[\"Gold-plated ring with smiling face\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Ballad of the Grinning Fool\",\r\n\ttrait : [\r\n\t\t\"I love the spotlight. Everyone, look at me!\",\r\n\t\t\"Give me a drink and I'm your friend.\",\r\n\t\t\"Talk to me about yourself. I'm a hell of a listener.\",\r\n\t\t\"I hate to start fights, but I love to finish them.\",\r\n\t\t\"I can't sit still.\",\r\n\t\t\"I'm always humming an old tune from my past.\",\r\n\t\t\"When I don't have a reason to smile, I'm miserable.\",\r\n\t\t\"I'm lucky like you wouldn't believe.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Revolution\",\r\n\t\t\t\"Revolution: Tyrants must fall, no matter the cost. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Compassion\",\r\n\t\t\t\"Compassion: The only way to make a better world is to perform small kindnesses. (Good)\"\r\n\t\t],\r\n\t\t[\"Justice\",\r\n\t\t\t\"Justice: A nation built upon just foundations will uphold freedom for all. (Law)\"\r\n\t\t],\r\n\t\t[\"Expression\",\r\n\t\t\t\"Expression: Music, joy, and laughter are the keys to freedom. (Good)\"\r\n\t\t],\r\n\t\t[\"Self-Determination\",\r\n\t\t\t\"Self-Determination: People should be free to do as they please. (Chaotic)\"\r\n\t\t],\r\n\t\t[\"Vigilance\",\r\n\t\t\t\"Vigilance: A free people must be carefully taught, lest they be misled. (Neutral)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"I lost someone important to an agent of the empire. That regime will fall.\",\r\n\t\t\"The first people to be hurt by this war will be the common folk. I need to protect them.\",\r\n\t\t\"Music helped me through a dark time in my life. Now, I'll use music to change the world.\",\r\n\t\t\"I will be known as the greatest spy who ever lived.\",\r\n\t\t\"All life is precious to me. I know I can change the world without taking a humanoid life.\",\r\n\t\t\"The elite in their ivory towers don't understand how we suffer. I intend to show them.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I've never lied once in my life. What? No, I'm not crossing my fingers!\",\r\n\t\t\"I do everything big! Subtlety? I don't know the meaning of subtlety! Oh, that's a problem?\",\r\n\t\t\"Being a spy in wartime is painful. I've seen so much suffering, I think I'm losing my mind.\",\r\n\t\t\"I can't focus on my mission. I just want to carouse and sing and play!\",\r\n\t\t\"Yeah, that's my name. Yeah, I'm a Grinner spy. Who cares about staying undercover?\",\r\n\t\t\"I can't afford to trust anyone. Not. Anyone.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Your Favorite Code-Song\",\r\n\t\t\"Zan's Coming Back\",\r\n\t\t\"Blow Fire Down the Coast\",\r\n\t\t\"Hush! Onward Come the Dragons\",\r\n\t\t\"Let the Sword Grow Rust\",\r\n\t\t\"Drink Deep, Li'l Hummingbird\",\r\n\t\t\"Dirge for the Emerald Fire\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"ballad of the grinning fool\"] = {\r\n\tdescription : \"A member of the Golden Grin will find me and give shelter to me and my companions if I play the Ballad of the Grinning Fool in a major tavern or inn in a large city. This shelter might be discontinued if it becomes too dangerous to hide me. I must use the ballad with caution, for those who know the ballad can be traitors, counterspies, or agents of tyranny.\",\r\n\tsource : [[\"W\", 200]]\r\n};\r\nBackgroundList[\"volstrucker agent\"] = {\r\n\tregExpSearch : /^(?=.*volstrucker)(?=.*agent).*$/i,\r\n\tname : \"Volstrucker Agent\",\r\n\tsource : [[\"W\", 202]],\r\n\tskills : [\"Deception\", \"Stealth\"],\r\n\ttoolProfs : [\"Poisoner's kit\"],\r\n\tlanguageProfs : [1],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Poisoner's kit\", \"\", 2]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Black cloak with a hood\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Shadow Network\",\r\n\ttrait : [\r\n\t\t\"I prefer to keep my thoughts to myself.\",\r\n\t\t\"I indulge vice in excess to quiet my conscience.\",\r\n\t\t\"I've left emotion behind me. I'm now perfectly placid.\",\r\n\t\t\"Some event from the past keeps worming its way into my mind, making me restless.\",\r\n\t\t\"I always keep my word\\u2014except when I'm commanded to break it.\",\r\n\t\t\"I laugh off insults and never take them personally.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Order\",\r\n\t\t\t\"Order: The will of the crown is absolute. (Law)\"\r\n\t\t],\r\n\t\t[\"True Loyalty\",\r\n\t\t\t\"True Loyalty: The Cerberus Assembly is greater than any power, even the crown. (Any)\"\r\n\t\t],\r\n\t\t[\"Death\",\r\n\t\t\t\"Death: The penalty for disloyalty is death. (Evil)\"\r\n\t\t],\r\n\t\t[\"Determination\",\r\n\t\t\t\"Determination: I cannot fail. Not ever. (Neutral)\"\r\n\t\t],\r\n\t\t[\"Fear\",\r\n\t\t\t\"Fear: People should not respect power. They should fear it. (Evil)\"\r\n\t\t],\r\n\t\t[\"Escape\",\r\n\t\t\t\"Escape: The Volstrucker are pure evil! I can't atone for what I've done for them, but I can escape with my life. (Any)\"\r\n\t\t]\r\n\t],\r\n\tbond : [\r\n\t\t\"The job is all that matters. I will see it through.\",\r\n\t\t\"My orders are important, but my comrades are worth more than anything. I would die for them.\",\r\n\t\t\"Everything I've done, I've done to protect someone close to me.\",\r\n\t\t\"If the empire falls, all of civilization falls with it. I will hold back chaos and barbarism at any cost.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I drink to dull the pain in the back of my head.\",\r\n\t\t\"I go a bit mad when I see blood.\",\r\n\t\t\"I can hear the voices of everyone I've killed. I see their faces. I can't be free of these ghosts.\",\r\n\t\t\"Fear is a powerful motivator. I will do whatever it takes to prevent those who know what I am from seeing me fail, and from those I care about from knowing what I am.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select Your Tragedy\",\r\n\t\t\"Familicide\",\r\n\t\t\"Amnesia\",\r\n\t\t\"Capture\",\r\n\t\t\"Starvation\",\r\n\t\t\"Disfigurement\",\r\n\t\t\"Vicissitude\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"shadow network\"] = {\r\n\tdescription : \"I can use the Volstrucker shadow network to communicate with other members over long distances. I can write a letter in special arcane ink (10 gp per page), address it to another member of the Volstrucker, and cast it into a fire. It will burn and materialize whole again on the person of the addressee. This special ink is the same as used for a wizard's spellbook.\",\r\n\tsource : [[\"W\", 202]]\r\n};\r\nAddBackgroundVariant(\"acolyte\", \"luxonborn\", {\r\n\tregExpSearch : /luxonborn/i,\r\n\tname : \"Luxonborn\",\r\n\tsource : [[\"W\", 203]]\r\n});\r\nAddBackgroundVariant(\"criminal\", \"myriad operative\", {\r\n\tregExpSearch : /^(?=.*myriad)(?=.*operative).*$/i,\r\n\tname : \"Myriad Operative\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : \"\"\r\n});\r\nAddBackgroundVariant(\"sailor\", \"revelry pirate\", {\r\n\tregExpSearch : /^(?=.*revelry)(?=.*pirate).*$/i,\r\n\tname : \"Revelry Pirate\",\r\n\tsource : [[\"W\", 203]]\r\n});\r\nAddBackgroundVariant(\"sage\", \"cobalt scholar\", {\r\n\tregExpSearch : /^(?=.*cobalt)(?=.*scholar).*$/i,\r\n\tname : \"Cobalt Scholar\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : [\r\n\t\t\"Select Specific Role\",\r\n\t\t\"Rank-and-file\",\r\n\t\t\"Expositors\",\r\n\t\t\"Archivists\"\r\n\t]\r\n});\r\nAddBackgroundVariant(\"criminal\", \"augen trust\", {\r\n\tregExpSearch : /^(?=.*augen)(?=.*trust).*$/i,\r\n\tname : \"Augen Trust\",\r\n\tsource : [[\"W\", 203]],\r\n\textra : \"\"\r\n});\r\n\r\n// Spells (contains contributions by Biggoron144)\r\nSpellsList[\"sapping sting\"] = {\r\n\tname : \"Sapping Sting\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 0,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 creature that I can see save or 1d4 Necrotic dmg and fall prone; +1d4 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 creature that I can see save or `CD`d4 Necrotic dmg and fall prone\",\r\n\tdescriptionFull : \"You sap the vitality of one creature you can see in range. The target must succeed on a Constitution saving throw or take 1d4 necrotic damage and fall prone.\\n   This spell's damage increases by 1d4 when you reach 5th level (2d4), 11th level (3d4), and 17th level (4d4).\"\r\n};\r\nWeaponsList[\"sapping sting\"] = {\r\n\tregExpSearch : /^(?=.*sapping)(?=.*sting).*$/i,\r\n\tname : \"Sapping Sting\",\r\n\tsource : [[\"W\", 189]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 4, \"necrotic\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - also fall prone\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nSpellsList[\"gift of alacrity\"] = {\r\n\tname : \"Gift of Alacrity\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"1 willing creature can add 1d8 to its initiative rolls for the duration\",\r\n\tdescriptionFull : \"You touch a willing creature. For the duration, the target can add 1d8 to its initiative rolls.\"\r\n};\r\nSpellsList[\"magnify gravity\"] = {\r\n\tname : \"Magnify Gravity\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Con\",\r\n\tdescription : \"10-ft rad all crea 2d8+1d8/SL Force dmg, half spd; Save halves \\u0026 no spd reduce; Str check to move obj\",\r\n\tdescriptionShorter : \"10-ft rad all 2d8+1d8/SL Force dmg, half spd; Save half, no spd reduce; Str check to move obj\",\r\n\tdescriptionFull : \"The gravity in a 10-foot-radius sphere centered on a point you can see within range increases for a moment. Each creature in the sphere on the turn when you cast the spell must make a Constitution saving throw. On a failed save, a creature takes 2d8 force damage, and its speed is halved until the end of its next turn. On a successful save, a creature takes half as much damage and suffers no reduction to its speed.\\n   Until the start of your next turn, any object that isn't being worn or carried in the sphere requires a successful Strength check against your spell save DC to pick up or move.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"fortune's favor\"] = {\r\n\tname : \"Fortune's Favor\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A white pearl worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1+1/SL crea once roll extra d20 and select which to use for atk, check, save, or atk vs. it (100gp cons.)\",\r\n\tdescriptionFull : \"You impart latent luck to yourself or one willing creature you can see within range. When the chosen creature makes an attack roll, an ability check, or a saving throw before the spell ends, it can dismiss this spell on itself to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against the chosen creature, it can dismiss this spell on itself to roll a d20 and choose which of the d20s to use, the one it rolled or the one the attacker rolled.\\n   If the original d20 roll has advantage or disadvantage, the creature rolls the additional d20 after advantage or disadvantage has been applied to the original roll.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"immovable object\"] = {\r\n\tname : \"Immovable Object\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Gold dust worth at least 25 gp, which the spell consumes\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1 obj <10 lb fixed in place; holds 4k lb; Str check move, except chosen/password; See B (25gp cons.)\",\r\n\tdescriptionMetric : \"1 obj <5 kg fixed in place; holds 2k kg; Str check move, except chosen/password; See B (25gp cons.)\",\r\n\tdescriptionFull : \"You touch an object that weighs no more than 10 pounds and cause it to become magically fixed in place. You and the creatures you designate when you cast this spell can move the object normally. You can also set a password that, when spoken within 5 feet of the object, suppresses this spell for 1 minute.\\n   If the object is fixed in the air, it can hold up to 4,000 pounds of weight. More weight causes the object to fall. Otherwise, a creature can use an action to make a Strength check against your spell save DC. On a success, the creature can move the object up to 10 feet.\" + AtHigherLevels + \"If you cast this spell using a spell slot of 4th or 5th level, the DC to move the object increases by 5, it can carry up to 8,000 pounds of weight, and the duration increases to 24 hours. If you cast this spell using a spell slot of 6th level or higher, the DC to move the object increases by 10, it can carry up to 20,000 pounds of weight, and the effect is permanent until dispelled.\"\r\n};\r\nSpellsList[\"wristpocket\"] = {\r\n\tname : \"Wristpocket\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 190]],\r\n\tritual : true,\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Store 1 held obj <5 lb in extradim. space; 1 a to summon obj in free hand or return; reappears at end\",\r\n\tdescriptionMetric : \"Store 1 held obj <2,5 kg in extradim. space; 1 a summon obj in free hand or return; reappears at end\",\r\n\tdescriptionFull : \"You flick your wrist, causing one object in your hand to vanish. The object, which only you can be holding and can weigh no more than 5 pounds, is transported to an extradimensional space, where it remains for the duration.\\n   Until the spell ends, you can use your action to summon the object to your free hand, and you can use your action to return the object to the extradimensional space. An object still in the pocket plane when the spell ends appears in your space, at your feet.\"\r\n};\r\nSpellsList[\"pulse wave\"] = {\r\n\tname : \"Pulse Wave\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"6d6+1d6/SL Force dmg, pulled/pushed 15+5/SL ft from me (also free obj); save halves, no move\",\r\n\tdescriptionMetric : \"6d6+1d6/SL Force dmg, pull/push 4,5+1,5/SL m from me (also free obj); save halves, no move\",\r\n\tdescriptionShorter : \"6d6+1d6/SL Force dmg, pull/push 15+5/SL ft from me (also free obj); save half, no move\",\r\n\tdescriptionFull : \"You create intense pressure, unleash it in a 30-foot cone, and decide whether the pressure pulls or pushes creatures and objects. Each creature in that cone must make a Constitution saving throw. A creature takes 6d6 force damage on a failed save, or half as much damage on a successful one. And every creature that fails the save is either pulled 15 feet toward you or pushed 15 feet away from you, depending on the choice you made for the spell.\\n   In addition, unsecured objects that are completely within the cone are likewise pulled or pushed 15 feet.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d6 and the distance pulled or pushed increases by 5 feet for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"gravity sinkhole\"] = {\r\n\tname : \"Gravity Sinkhole\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 4,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A black marble\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all crea 5d10+1d10/SL Force dmg, pulled to center of radius; save halves and not pulled\",\r\n\tdescriptionFull : \"A 20-foot-radius sphere of crushing force forms at a point you can see within range and tugs at the creatures there. Each creature in the sphere must make a Constitution saving throw. On a failed save, the creature takes 5d10 force damage and is pulled in a straight line toward the center of the sphere, ending in an unoccupied space as close to the center as possible (even if that space is in the air). On a successful save, the creature takes half as much damage and isn't pulled.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d10 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"temporal shunt\"] = {\r\n\tname : \"Temporal Shunt\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, taken when a creature you can see makes an attack roll or starts to cast a spell\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Cast if see atk/cast, 1+1/SL crea, each max 30 ft apart, save or vanish until next turn, atk/cast wasted\",\r\n\tdescriptionFull : \"You target the triggering creature, which must succeed on a Wisdom saving throw or vanish, being thrown to another point in time and causing the attack to miss or the spell to be wasted. At the start of its next turn, the target reappears where it was or in the closest unoccupied space. The target doesn't remember you casting the spell or being affected by it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, you can target one additional creature for each slot level above 5th. All targets must be within 30 feet of each other.\"\r\n};\r\nSpellsList[\"gravity fissure\"] = {\r\n\tname : \"Gravity Fissure\",\r\n\tsource : [[\"W\", 187]],\r\n\tlevel : 6,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:100\" + (typePF ? \"-\" : \"\") + \"ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A fistful of iron filings\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"100-ft long 5-ft wide all 8d8+1d8/SL Force dmg, save half; all in 10 ft of line save or dmg \\u0026 pull to it\",\r\n\tdescriptionShorter : \"100-ft long 5-ft wide all 8d8+1d8/SL Force dmg, save half; all in 10 ft of it save or dmg \\u0026 pulled\",\r\n\tdescriptionFull : \"You manifest a ravine of gravitational energy in a line originating from you that is 100 feet long and 5 feet wide. Each creature in that line must make a Constitution saving throw, taking 8d8 force damage on a failed save, or half as much damage on a successful one.\\n   Each creature within 10 feet of the line but not in it must succeed on a Constitution saving throw or take 8d8 force damage and be pulled toward the line until the creature is in its area.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 7th level or higher, the damage increases by 1d8 for each slot level above 6th.\"\r\n};\r\nSpellsList[\"tether essence\"] = {\r\n\tname : \"Tether Essence\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 7,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A spool of platinum cord worth at least 250 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tsave : \"Con\",\r\n\tdescription : \"2 crea save (dis. if in 30 ft) or if both fail take same dmg and same healing; ends if 0 hp (250gp cons.)\",\r\n\tdescriptionFull : \"Two creatures you can see within range must make a Constitution saving throw, with disadvantage if they are within 30 feet of each other. Either creature can willingly fail the save. If either save succeeds, the spell has no effect. If both saves fail, the creatures are magically linked for the duration, regardless of the distance between them. When damage is dealt to one of them, the same damage is dealt to the other one. If hit points are restored to one of them, the same number of hit points are restored to the other one. If either of the tethered creatures is reduced to 0 hit points, the spell ends on both. If the spell ends on one creature, it ends on both.\"\r\n};\r\nSpellsList[\"dark star\"] = {\r\n\tname : \"Dark Star\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 186]],\r\n\tlevel : 8,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"150 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A shard of onyx and a drop of the caster's blood, both of which the spell consumes\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Up to 40-ft rad as Darkness spell, as Silence spell, dif. ter.; enter/start turn 8d10 Force dmg, save half\",\r\n\tdescriptionShorter : \"Up to 40-ft rad as Darkness \\u0026 Silence, dif. ter.; enter/start turn 8d10 Force dmg, save half\",\r\n\tdescriptionFull : \"This spell creates a sphere centered on a point you choose within range. The sphere can have a radius of up to 40 feet. The area within this sphere is filled with magical darkness and crushing gravitational force.\\n   For the duration, the spell's area is difficult terrain. A creature with darkvision can't see through the magical darkness, and nonmagical light can't illuminate it. No sound can be created within or pass through the area. Any creature or object entirely inside the sphere is immune to thunder damage, and creatures are deafened while entirely inside it. Casting a spell that includes a verbal component is impossible there.\\n   Any creature that enters the spell's area for the first time on a turn or starts its turn there must make a Constitution saving throw. The creature takes 8d10 force damage on a failed save, or half as much damage on a successful one. A creature reduced to 0 hit points by this damage is disintegrated. A disintegrated creature and everything it is wearing and carrying, except magic items, are reduced to a pile of fine gray dust.\"\r\n};\r\nSpellsList[\"reality break\"] = {\r\n\tname : \"Reality Break\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 8,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A crystal prism\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or can't take reactions, random effect each turn, see book; extra save at end of every turn\",\r\n\tdescriptionFull : \"You shatter the barriers between realities and timelines, thrusting a creature into turmoil and madness. The target must succeed on a Wisdom saving throw, or it can't take reactions until the spell ends. The affected target must also roll a d10 at the start of each of its turns; the number rolled determines what happens to the target, as shown on the Reality Break Effects table.\"+\r\n\t\"\\n   At the end of each of its turns, the affected target can repeat the Wisdom saving throw, ending the spell on itself on a success.\"+\r\n\t\"\\n\\n d10 \\tEffect\"+\r\n\t\"\\n 1-2 \\tVision of the Far Realm: The target takes 6d12 psychic damage, and it is stunned until the end of the turn.\"+\r\n\t\"\\n 3-5 \\tRending Rift: The target must make a Dexterity saving throw, taking 8d12 force damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n 6-8 \\tWormhole: The target is teleported, along with everything it is wearing and carrying, up to 30 feet to an unoccupied space of your choice that you can see. The target also takes 10d12 force damage and is knocked prone.\"+\r\n\t\"\\n 9-10\\tChill of the Dark Void: The target takes 10d12 cold damage, and it is blinded until the end of the turn.\"\r\n};\r\nSpellsList[\"ravenous void\"] = {\r\n\tname : \"Ravenous Void\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 188]],\r\n\tlevel : 9,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"1000 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A small, nine-pointed star made of iron\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad all enter/start 5d10 Force dmg, restrained; all enter/start in 100 ft save or pulled in; see B\",\r\n\tdescriptionShorter : \"20-ft rad all enter/start 5d10 Force dmg, restrained; all start in 100 ft save or pull in; see B\",\r\n\tdescriptionFull : \"You create a 20-foot-radius sphere of destructive gravitational force centered on a point you can see within range. For the spell's duration, the sphere and any space within 100 feet of it are difficult terrain, and nonmagical objects fully inside the sphere are destroyed if they aren't being worn or carried.\\n   When the sphere appears and at the start of each of your turns until the spell ends, unsecured objects within 100 feet of the sphere are pulled toward the sphere's center, ending in an unoccupied space as close to the center as possible.\\n   A creature that starts its turn within 100 feet of the sphere must succeed on a Strength saving throw or be pulled straight toward the sphere's center, ending in an unoccupied space as close to the center as possible. A creature that enters the sphere for the first time on a turn or starts its turn there takes 5d10 force damage and is restrained until it is no longer in the sphere. If the sphere is in the air, the restrained creature hovers inside the sphere. A creature can use its action to make a Strength check against your spell save DC, ending this restrained condition on itself or another creature in the sphere that it can reach. A creature reduced to 0 hit points by this spell is annihilated, along with any nonmagical items it is wearing or carrying.\"\r\n};\r\nSpellsList[\"time ravage\"] = {\r\n\tname : \"Time Ravage\",\r\n\tclasses : [],\r\n\tsource : [[\"W\", 189]],\r\n\tlevel : 9,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"An hourglass filled with diamond dust worth at least 5,000 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea 10d12 Necrotic dmg \\u0026 aged: dis. atk/chk/save, die in 30 days; save half, not aged (5k gp cons.)\",\r\n\tdescriptionShorter : \"1 crea 10d12 Necro. dmg, aged: dis. atk/chk/save, die in 30 days; save hlf, no aged (5k gp cons)\",\r\n\tdescriptionFull : \"You target a creature you can see within range, putting its physical form through the devastation of rapid aging. The target must make a Constitution saving throw, taking 10d12 necrotic damage on a failed save, or half as much damage on a successful one. If the save fails, the target also ages to the point where it has only 30 days left before it dies of old age. In this aged state, the target has disadvantage on attack rolls, ability checks, and saving throws, and its walking speed is halved. Only the wish spell or the greater restoration cast with a 9th-level spell slot can end these effects and restore the target to its previous age.\"\r\n};\r\n\r\n// Creatures - new beasts\r\nCreatureList[\"moorbounder\"] = {\r\n\tname : \"Moorbounder\",\r\n\tsource : [[\"W\", 295]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 30,\r\n\thd : [4, 10],\r\n\tspeed : \"70 ft\",\r\n\tscores : [18, 14, 14, 2, 13, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Standing Leap\",\r\n\t\tdescription : \"The moorbounder's long jump is up to 40 ft and its high jump is up to 20 ft, with or without a running start.\"\r\n\t}]\r\n};\r\nCreatureList[\"bristled moorbounder\"] = {\r\n\tname : \"Bristled Moorbounder\",\r\n\tsource : [[\"W\", 295]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 52,\r\n\thd : [7, 10],\r\n\tspeed : \"70 ft\",\r\n\tscores : [18, 14, 14, 2, 13, 5],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Blades\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One blades and one claws attack as an Attack action\"\r\n\t}, {\r\n\t\tname : \"Claws\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 4, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"One blades and one claws attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the moorbounder can makeone Blades and one Claws attack.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Bladed Hide\",\r\n\t\tdescription : \"At the start of each of its turns, the moorbounder deals 2d4 piercing damage to any creature grappling it.\"\r\n\t}, {\r\n\t\tname : \"Standing Leap\",\r\n\t\tdescription : \"The moorbounder's long jump is up to 40 ft and its high jump is up to 20 ft, with or without a running start.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items (each contain contributions by kat9137 [Discord] aka sophiechiabatta [GitHub])\r\nMagicItemsList[\"acheron blade\"] = {\r\n\tname : \"Acheron Blade\",\r\n\tnameTest : \"Acheron\",\r\n\tsource : [[\"W\", 265]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This sword gives a +1 to hit and damage rolls. While I'm holding it, I'm immune to effects that turn undead. As an action, once per dusk, I can use it to gain 1d4+4 temporary HP. Once per dusk, I can give a creature hit with it disadvantage on their next save until the end of my next turn (frighten effect).\",\r\n\tdescriptionFull : \"The black blade of this sword is crafted from a mysterious arcane alloy. You gain a +1 bonus to attack and damage rolls made with this magic weapon. While the sword is on your person, you are immune to effects that turn undead.\"+\r\n\t\"\\n   \" + toUni(\"Dark Blessing\") + \". While holding the sword, you can use an action to give yourself 1d4 + 4 temporary hit points. This property can't be used again until the next dusk.\"+\r\n\t\"\\n   \" + toUni(\"Disheartening Strike\") + \". When you hit a creature with an attack using this weapon, you can fill the target with unsettling dread: the target has disadvantage on the next saving throw it makes before the end of your next turn. The creature ignores this effect if it's immune to the frightened condition. Once you use this property, you can't do so again until the next dusk\",\r\n\taction : [[\"action\", \" (Dark Blessing)\"]],\r\n\tsavetxt : { immune : [\"Effects that turn undead\"] },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Acheron Blade (Dark Blessing)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Dusk\"\r\n\t}, {\r\n\t\tname : \"Acheron Blade (Disheartening Strike)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Dusk\"\r\n\t}],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/acheron/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per dusk, target disadv. on next save until my next turn ends';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Acheron\" in a the name of a sword, it will be treated as the magic weapon Acheron Blade.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/acheron/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t''\r\n\t\t]\r\n\t}\r\n};\r\n\r\nMagicItemsList[\"amulet of the drunkard\"] = {\r\n\tname : \"Amulet of the Drunkard\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This amulet smells of old, ale-stained wood. While wearing it, I can regain 4d4 + 4 hit points when I drink a pint of beer, ale, mead, or wine. Once the amulet has restored hit points, it can't do so again until the next dawn.\",\r\n\tdescriptionFull : \"This amulet smells of old, ale-stained wood. While wearing it, you can regain 4d4 + 4 hit points when you drink a pint of beer, ale, mead, or wine. Once the amulet has restored hit points, it can't do so again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nvar EGtW_ArcaneCannonFullDescription = [\r\n\t\"This Large cannon is imbued with magic. It requires no ammunition and doesn't need to be loaded. It takes one action to aim the cannon and one action to fire it. After the cannon has fired, it must recharge for 5 minutes before it can be fired again. The creature firing the cannon chooses the effect from the following options:\",\r\n\t\">>Acid Jet<<. The cannon discharges acid in a line 300 feet long and 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 4d10 acid damage on a failed save, or half as much damage on a successful one. In addition, a creature that fails its saving throw takes 2d10 acid damage at the start of each of its turns; a creature can end this damage by using its action to wash off the acid with a pint or more of water.\",\r\n\t\">>Fire Jet<<. The cannon discharges fire in a line 300 feet long and 5 feet wide. Each creature in the area must make a DC 15 Dexterity saving throw, taking 6d10 fire damage on a failed save, or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\",\r\n\t\">>Frost Shot<<. The cannon shoots a ball of frost to a point you can see within 1200 feet of the cannon. The ball then expands to form a 30-foot-radius sphere centered on that point. Each creature in that area must make a DC 15 Constitution saving throw. On a failed save, a creature takes 4d10 cold damage, and its speed is reduced by 10 feet for 1 minute. On a successful save, the creature takes half as much damage, and its speed isn't reduced. A creature whose speed is reduced by this effect can repeat the save at the end of each of its turns, ending the effect on itself on a success.\",\r\n\t\">>Lightning Shot<<. The cannon shoots a ball of lightning to a point you can see within 1200 feet of the cannon. The lightning then expands to form a 20-foot-radius sphere centered on that point. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d10 lightning damage on a failed save, or half as much damage on a successful one. Creatures wearing metal armor have disadvantage on the save.\",\r\n\t\">>Poison Spray<<. The cannon expels poison gas in a 60-foot cone. Each creature in that area must make a DC 15 Constitution saving throw. On a failed save, the creature takes 4d10 poison damage and is poisoned for 1 minute. On a successful save, the creature takes half as much damage and isn't poisoned. A creature poisoned in this way can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n];\r\nMagicItemsList[\"arcane cannon\"] = {\r\n\tname : \"Arcane Cannon\",\r\n\tsource : [[\"W\", 265]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This Large magical cannon requires no ammunition and doesn't need to be loaded, but takes 5 minutes to recharge once fired. It takes one action to aim it and another action to fire it. When I fire it, I can choose the effect, an acid jet, fire jet, frost shot, lightning shot, or poison spray. See Notes page.\",\r\n\tdescriptionFull : EGtW_ArcaneCannonFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\taction : [[\"action\", \" (Aim or Fire)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tnote : \"\\n\" + EGtW_ArcaneCannonFullDescription.join(\"\\n \\u2022 \").replace(/>>(.*?)<<\\./g, function(a, match) { return match.toUpperCase() + \":\"; }).replace(/\\byou\\b/ig, \"I\").replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t}]\r\n};\r\nMagicItemsList[\"battering shield\"] = {\r\n\tname : \"Battering Shield\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"shield\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This iron tower shield gives me a +1 bonus to AC, in addition to the shield's normal bonus to AC. It has 3 charges, regaining 1d3 expended charges daily at dawn. When I am holding the shield and push a creature 5 ft away, I can expend 1 charge to push that creature an additional 10 ft, knock it prone, or both.\",\r\n\tdescriptionFull : \"While holding this iron tower shield, you gain a +1 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\\n   Additionally, the shield has 3 charges, and it regains 1d3 expended charges daily at dawn. If you are holding the shield and push a creature within your reach at least 5 feet away, you can expend 1 charge to push that creature an additional 10 feet, knock it prone, or both.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tshieldAdd : [\"Battering Shield\", 3],\r\n\tweight : 6\r\n};\r\nMagicItemsList[\"bloodaxe\"] = {\r\n\tname : \"Bloodaxe\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This rust-colored magical greataxe grants a +2 bonus to attack and damage rolls made with it. The axe deals an additional 1d6 necrotic damage to creature's that aren't constructs or undead. If I reduce a creature to 0 hit points with this axe, I gain 10 temporary hit points.\",\r\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic axe. The axe deals an extra 1d6 necrotic damage to creatures that aren't constructs or undead. If you reduce such a creature to 0 hit points with an attack using this axe, you gain 10 temporary hit points.\\n   This axe is forged from a dark, rust-colored metal and once belonged to the goliath barbarian Grog Strongjaw of Vox Machina.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /bloodaxe/i,\r\n\t\tname : \"Bloodaxe\",\r\n\t\tsource : [[\"W\", 266]],\r\n\t\tdescription : \"Heavy, two-handed; +1d6 necrotic damage to living targets\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 7\r\n};\r\nMagicItemsList[\"breathing bubble\"] = {\r\n\tname : \"Breathing Bubble\",\r\n\tsource : [[\"W\", 266], [\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This translucent, bubble-like sphere has a slightly tacky outer surface. I gain its benefits only while wearing it over my head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tdescriptionFull : \"This translucent, bubble-like sphere has a slightly tacky outer surface, and you gain the item's benefits only while wearing it over your head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nMagicItemsList[\"brooch of living essence\"] = {\r\n\tname : \"Brooch of Living Essence\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing this nondescript brooch, spells and anything else that would detect or reveal my creature type treat me as humanoid, and those that would reveal my alignment treat it as neutral.\",\r\n\tdescriptionFull : \"While wearing this nondescript brooch, spells and anything else that would detect or reveal your creature type treat you as humanoid, and those that would reveal your alignment treat it as neutral.\"\r\n};\r\nMagicItemsList[\"butcher's bib\"] = {\r\n\tname : \"Butcher's Bib\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This black leather apron is perpetually covered by blood. Once per turn when I roll damage for a melee attack with a weapon, I can use it to reroll the weapon's damage dice, but must use the new roll. While wearing the bib, my weapon attacks that deal slashing damage score a critical hit on a roll of 19 or 20.\",\r\n\tdescriptionFull : \"This black leather apron is perpetually covered by blood, even after being washed off. You gain the following benefits while wearing the apron:\"+\r\n\t\"\\n \\u2022 Once per turn when you roll damage for a melee attack with a weapon, you can reroll the weapon's damage dice. If you do so, you must use the second total.\"+\r\n\t\"\\n \\u2022 Your weapon attacks that deal slashing damage score a critical hit on a roll of 19 or 20 on the d20.\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isDC && !v.isSpell && !v.CritChance && /slash/i.test(v.theWea.damage[2])) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t}\r\n\t\t\t\tif (!v.isDC && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reroll damage once per turn';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"My weapon attacks that deal slashing damage score a critical on a to hit roll of both 19 and 20. Once per turn, I can reroll the damage of a melee weapon attack and must use the second result.\",\r\n\t\t\t19\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"coin of delving\"] = {\r\n\tname : \"Coin of Delving\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This scintillating copper coin sheds dim light in a 5-ft radius. If dropped a distance greater than 5 ft, the coin issues a melodious ringing sound when it hits a surface. Any creature that can hear the chime can determine the distance the coin dropped based on the tone.\",\r\n\tdescriptionFull : \"This scintillating copper coin sheds dim light in a 5-foot radius. If dropped a distance greater than 5 feet, the coin issues a melodious ringing sound when it hits a surface. Any creature that can hear the chime can determine the distance the coin dropped based on the tone.\"\r\n};\r\nMagicItemsList[\"corpse slayer\"] = {\r\n\tname : \"Corpse Slayer\",\r\n\tnameTest : \"Corpse Slaying\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magic weapon. Undead hit by it take an additional 1d8 damage and gain disadvantage on saving throws against effects that turn undead until the start of my next turn.\",\r\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic weapon.\\n   When you hit an undead creature with an attack using this weapon, the attack deals an extra 1d8 damage of the weapon's type, and the creature has disadvantage on saving throws against effects that turn undead until the start of your next turn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : [\"between\", \"Corpse Slaying\", \"\"],\r\n\t\titemName1stPage : [\"suffix\", \"Corpse Slaying\"],\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isSpell && !v.theWea.isMagicWeapon && (/corpse slay(er|ing)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d8 damage vs. undead; Target disadv. vs. turn undead';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Corpse Slayer\" or \"Corpse Slaying\" in a the name of a weapon, it will be treated as the magic weapon Corpse Slayer, which has a +1 to hit and damage and deals +1d8 damage vs. undead.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (!v.isSpell && (/corpse slay(er|ing)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"dispelling stone\"] = {\r\n\tname : \"Dispelling Stone\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This smooth, rainbow-colored, egg-shaped stone can be thrown up to 30 ft and explodes in a 10-ft-radius sphere of magical energy on impact, destroying the stone. Any active spell of 5th level or lower in the sphere ends.\",\r\n\tdescriptionFull : \"This smooth, rainbow-colored, egg-shaped stone can be thrown up to 30 feet and explodes in a 10-foot-radius sphere of magical energy on impact, destroying the stone. Any active spell of 5th level or lower in the sphere ends.\",\r\n\tusages : 1,\r\n\trecovery : \"Never\"\r\n};\r\nMagicItemsList[\"duskcrusher\"] = {\r\n\tname : \"Duskcrusher\",\r\n\tsource : [[\"W\", 266]],\r\n\ttype : \"weapon (warhammer)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This rod caries the symbol of Pelor. As a bonus action, I can activate its crackling head of sunlight, that shines bright light in 15 ft and dim for another 15 ft. While active, I can use it as a +2 warhammer that deals radiant damage and +1d8 damage to undead. Once per dawn, I can cast Sunbeam with it (DC 15).\",\r\n\tdescriptionLong : \"This leather-wrapped metal rod caries the symbol of Pelor on top. As a bonus action, I can cause a warhammer head of crackling radiance to spring into existence. It emits emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. While the radiant head is active, the rod functions as a +2 warhammer that deals radiant damage and +1d8 damage to undead. Once per dawn while its radiant head is active, I can use it to cast Sunbeam (DC 15). I can deactivate the head as an action.\",\r\n\tdescriptionFull : \"This item takes the form of a leather-wrapped metal rod emblazoned with the symbol of Pelor, the Dawn Father. While grasping the rod, you can use a bonus action to cause a warhammer head of crackling radiance to spring into existence. The warhammer's radiant head emits bright light in a 15-foot radius and dim light for an additional 15 feet. The light is sunlight. You can use an action to make the radiant head disappear.\"+\r\n\t\"\\n   While the radiant head is active, you gain a +2 bonus to attack and damage rolls made with this magic weapon, and attacks with the weapon deal radiant damage instead of bludgeoning damage. An undead creature hit by the weapon takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   While you are holding Duskcrusher and its radiant head is active, you can use an action to cast the sunbeam spell (save DC 15) from the weapon, and this action can't be used again until the next dawn.\",\r\n\taction : [ [\"bonus action\", \" (activate)\"], [\"action\", \" (deactivate)\"] ],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Duskcrusher (Sunbeam)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"warhammer\",\r\n\t\tregExpSearch : /duskcrusher/i,\r\n\t\tname : \"Duskcrusher\",\r\n\t\tsource : [[\"W\", 266]],\r\n\t\tdamage : [1, 8, \"radiant\"],\r\n\t\tdescription : \"Versatile (1d10); +1d8 damage vs. undead\",\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 2,\r\n\tfixedDC : 15,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"sunbeam\"],\r\n\t\tselection : [\"sunbeam\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nMagicItemsList[\"dust of deliciousness\"] = {\r\n\tname : \"Dust of Deliciousness\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This reddish brown dust can be sprinkled over any edible substance to greatly improve the flavor. The dust also dulls the eater's senses: anyone eating food treated with this dust has disadvantage on Wisdom ability checks and Wisdom saving throws for 1 hour. There is enough dust to flavor six servings.\",\r\n\tdescriptionFull : \"This reddish brown dust can be sprinkled over any edible substance to greatly improve the flavor. The dust also dulls the eater's senses: anyone eating food treated with this dust has disadvantage on Wisdom ability checks and Wisdom saving throws for 1 hour. There is enough dust to flavor six servings.\",\r\n\tusages : 6,\r\n\trecovery : \"Never\"\r\n};\r\n// [dupl_start] reprint from Xanathar's Guide to Everything\r\nif (!MagicItemsList[\"ersatz eye\"]) {\r\n\tMagicItemsList[\"ersatz eye\"] = {\r\n\t\tname : \"Ersatz Eye\",\r\n\t\tsource : [[\"X\", 137], [\"W\", 267]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in my eye socket, it can't be removed by anyone other than me, and I can see through the tiny orb as though it were a normal eye.\",\r\n\t\tdescriptionFull : \"This artificial eye replaces a real one that was lost or removed. While the ersatz eye is embedded in your eye socket, it can't be removed by anyone other than you, and you can see through the tiny orb as though it were a normal eye.\",\r\n\t\tattunement : true\r\n\t}\r\n} // dupl_end\r\nMagicItemsList[\"goggles of object reading\"] = {\r\n\tname : \"Goggles of Object Reading\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing these leather-framed goggles feature purple crystal lenses, I have advantage on Intelligence (Arcana) checks made to reveal information about a creature or object I can see. Once per dawn, I can cast Identify using the goggles.\",\r\n\tdescriptionFull : \"These leather-framed goggles feature purple crystal lenses. While wearing the goggles, you have advantage on Intelligence (Arcana) checks made to reveal information about a creature or object you can see. In addition, you can cast the identify spell using the goggles. Once you do so, you can't do so again until the next dawn.\", // Changed googles to goggles, as this is clearly a typo in the book\r\n\tadditional : \"Identify\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"identify\"],\r\n\t\tselection : [\"identify\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nMagicItemsList[\"hunter's coat\"] = {\r\n\tname : \"Hunter's Coat\",\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"armor (leather)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I have a +1 bonus to AC while wearing this leather armor. The coat has 3 charges. When I hit a creature with an attack and that creature doesn't have all its hit points, I can expend 1 charge to deal an extra 1d10 necrotic damage to the target. The coat regains 1d3 expended charges at dawn.\",\r\n\tdescriptionFull : \"You have a +1 bonus to AC while wearing this armor. The coat has 3 charges. When you hit a creature with an attack and that creature doesn't have all its hit points, you can expend 1 charge to deal an extra 1d10 necrotic damage to the target. The coat regains 1d3 expended charges daily at dawn.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*hunter)(?=.*coat).*$/i,\r\n\t\tname : \"Hunter's Coat\",\r\n\t\tsource : [[\"W\", 267]],\r\n\t\ttype : \"light\",\r\n\t\tac : \"11+1\",\r\n\t\tweight : 10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweight : 10\r\n};\r\nMagicItemsList[\"last stand armor\"] = {\r\n\tname : \"Last Stand Armor\",\r\n\tnameTest : /last.stand.*armou?r/i,\r\n\tsource : [[\"W\", 267]],\r\n\ttype : \"armor (any)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I have a +1 bonus to AC while wearing this magic armor. If I die while wearing this armor, it is destroyed, and each celestial, fey, and fiend with 30 ft of me must succeed on a DC 15 Charisma saving throw or be banished to their home plane of existence, unless they are already there.\",\r\n\tdescriptionFull : \"You have a +1 bonus to AC while wearing this armor, which shimmers softly. If you die while wearing the armor, it is destroyed, and each celestial, fey, and fiend with 30 feet of you must succeed on a DC 15 Charisma saving throw or be banished to its home plane of existence, unless it is already there.\",\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Last Stand\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"between\", \"Last Stand\", \"(+1)\"]\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Last Stand Armor\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"Never\"\r\n\t}]\r\n};\r\n\r\nvar EGtW_LuxonBeaconFullDescription = [\r\n\t\"This dodecahedron of faintly glowing crystal is heavier than it appears. A set of handles are affixed to its sides, and it pulsates and thrums when touched.\",\r\n\t\">>Fragment of Possibility<<. A creature that touches the beacon and concentrates for 1 minute receives a Fragment of Possibility, which looks like a Tiny, grayish bead of energy that follows the creature around, staying within 1 foot of it at all times. The fragment lasts for 8 hours or until used. Once the beacon grants a Fragment of Possibility, it can't grant another until the next dawn. A creature with a Fragment of Possibility from a Luxon Beacon can't gain another Fragment of Possibility from any source.\",\r\n\t\"When a creature with a Fragment of Possibility makes an attack roll, an ability check, or a saving throw, it can expend its fragment to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against the creature, it can expend its fragment to roll a d20 and choose which of the d20s to use, the one it rolled or the one the attacker rolled.\",\r\n\t\"If the original d20 roll has advantage or disadvantage, the creature rolls its d20 after advantage or disadvantage has been applied to the original roll.\",\r\n\t\">>Soul Snare<<. If a follower of the Luxon who has undergone a ritual of consecution dies within 100 miles of a Luxon Beacon, their soul is ensnared by it. This soul will be reincarnated within the body of a random humanoid baby developing within 100 miles of the beacon.\"\r\n];\r\nMagicItemsList[\"luxon beacon\"] = {\r\n\tname : \"Luxon Beacon\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once per dawn, a creature can touch this crystal for 1 minute to gain a Fragment of Possibility. Once for the next 8 hours, it can roll an extra d20 for an attack, check, save, or being attacked, before the outcome is determined. Creatures consecuted to the Luxon that die within 100 miles of it are reincarnated. See notes.\",\r\n\tdescriptionFull : EGtW_LuxonBeaconFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Luxon Beacon (Fragment of Possibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(EGtW_LuxonBeaconFullDescription).replace(/   >>(.*?)<<\\. /g, function(a, match) { return match.toUpperCase() + \"\\n   \"; })\r\n\t}]\r\n};\r\nMagicItemsList[\"needle of mending\"] = {\r\n\tname : \"Needle of Mending\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"weapon (dagger)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This weapon is a magic dagger disguised as a sewing needle. As a bonus action, I can speak its command word to transform it into a dagger or back into a needle. I gain a +1 bonus to attack and damage rolls made with the dagger. As an action while holding it, I can cast the mending cantrip from it.\",\r\n\tdescriptionFull : \"This weapon is a magic dagger disguised as a sewing needle. When you hold it and use a bonus action to speak its command word, it transforms into a dagger or back into a needle.\\n   You gain a +1 bonus to attack and damage rolls made with the dagger. While holding it, you can use an action to cast the mending cantrip from it.\",\r\n\taction : [[\"bonus action\", \" (transform)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"dagger\",\r\n\t\tregExpSearch : /^(?=.*needle)(?=.*mending).*$/i,\r\n\t\tname : \"Needle of Mending\",\r\n\t\tsource : [[\"W\", 268]],\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mending\"],\r\n\t\tselection : [\"mending\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mending\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Needle of Mending, I can cast Mending as an action.\"\r\n\t\t}\r\n\t},\r\n\tweight : 1\r\n};\r\nMagicItemsList[\"nightfall pearl\"] = {\r\n\tname : \"Nightfall Pearl\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"I can spend 10 minutes to activate this his 6-inch-diameter, jet-black orb, causing the area within 10 miles of it to become night even if it is daytime. This night lasts for 24 hours, until I cancel it as an action, or until my attunement to the pearl ends. Once used, the pearl can't be used again for 24 hours.\",\r\n\tdescriptionFull : \"Used to summon night, this 6-inch-diameter, jet-black orb is cold to the touch. You can spend 10 minutes to activate it, causing the area within 10 miles of it at the moment of activation to become night even if it is daytime. This night lasts for 24 hours, until you cancel it as an action, or until your attunement to the pearl ends. Once used, the pearl can't be used again for 24 hours.\",\r\n\taction : [[\"action\", \" (end)\"]],\r\n\tusages : 1,\r\n\trecovery : \"24 hrs\"\r\n};\r\nMagicItemsList[\"orb of the veil\"] = { // no automation for halving the fire damage, because it is very complex, error prone, and the curse could (and will) be removed\r\n\tname : \"Orb of the Veil\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This orb increases my Wisdom and maximum by 2, grants me +60 ft darkvision, and adv. on Wisdom checks to find hidden doors and paths. It is cursed and once attuned to it, I become unwilling to part with it, nonmagical flames within 30 ft of me extinguish, and fire damage I deal is halved (not automated).\",\r\n\tdescriptionFull : \"This onyx sphere bears deep, spiraling grooves and dangles from an iron chain. While the orb is on your person, you gain the following benefits:\\n Your Wisdom score increases by 2, as does your maximum for that score.\\n You gain darkvision out to a range of 60 feet. If you already have darkvision, the orb increases its range by 60 feet.\\n You have advantage on Wisdom checks to find hidden doors and paths.\\n   \" + toUni(\"Curse\") + \". The orb is cursed, and becoming attuned to it extends the curse to you. As long as you remain cursed, you are unwilling to part with the orb, keeping it on your person at all times. All nonmagical flames within 30 feet of you automatically extinguish, and fire damage dealt by you is halved.\",\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tscores : [0, 0, 0, 0, 2, 0],\r\n\tscoresMaximum : [0, 0, 0, 0, \"+2\", 0],\r\n\tweight : 3\r\n};\r\nMagicItemsList[\"potion of maximum power\"] = {\r\n\tname : \"Potion of Maximum Power\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion of glowing purple liquid that smells of sugar and plum or administer it to another. The next time the recipient casts a damage-dealing spell of 4th-level or lower within 1 minute, instead of rolling the damage die, the highest number possible for each die is used.\",\r\n\tdescriptionFull : \"The first time you cast a damage-dealing spell of 4th level or lower within 1 minute after drinking the potion, instead of rolling dice to determine the damage dealt, you can instead use the highest number possible for each die.\\n This glowing purple liquid smells of sugar and plum, but it has a muddy taste.\",\r\n\tweight : 0.5\r\n};\r\nMagicItemsList[\"potion of possibility\"] = {\r\n\tname : \"Potion of Possibility\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"potion\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion of glowing purple liquid that smells of sugar and plum or administer it to another. Twice for the next 8 hours, the consumer can roll an extra d20 for an attack, check, save, or being attacked, before the outcome is determined.\",\r\n\tdescriptionFull : \"When you drink this clear potion, you gain two Fragments of Possibility, each of which looks like a Tiny, grayish bead of energy that follows you around, staying within 1 foot of you at all times. Each fragment lasts for 8 hours or until used.\"+\r\n\t\"\\n   When you make an attack roll, an ability check, or a saving throw, you can expend your fragment to roll an additional d20 and choose which of the d20s to use. Alternatively, when an attack roll is made against you, you can expend your fragment to roll a d20 and choose which of the d20s to use, the one you rolled or the one the attacker rolled.\"+\r\n\t\"\\n   If the original d20 roll has advantage or disadvantage, you roll your d20 after advantage or disadvantage has been applied to the original roll.\"+\r\n\t\"\\n   While you have one or more Fragments of Possibility from this potion, you can't gain another Fragment of Possibility from any source.\",\r\n\tweight : 0.5\r\n};\r\n// [dupl_start] reprint from Eberron: Rising from the Last War\r\nif (!MagicItemsList[\"prosthetic limb\"]) {\r\n\tMagicItemsList[\"prosthetic limb\"] = {\r\n\t\tname : \"Prosthetic Limb\",\r\n\t\tsource : [[\"E:RLW\", 278], [\"W\", 268], [\"T\", 134]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"This artificial limb replaces a lost limb, like a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. As an action, I can detach or reattach it. It can't be removed against my will. It detaches if I die.\",\r\n\t\tdescriptionFull : \"This item replaces a lost limb\\u2014a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. You can detach or reattach it as an action, and it can't be removed against your will. It detaches if you die.\",\r\n\t\taction : [[\"action\", \" (attach/detach)\"]]\r\n\t}\r\n} // dupl_end\r\nMagicItemsList[\"reincarnation dust\"] = {\r\n\tname : \"Reincarnation Dust\",\r\n\tsource : [[\"W\", 268]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tusages : 1,\r\n\trecovery : \"Never\",\r\n\tdescription : \"Once I can sprinkle the purple dust in this small pouch on a dead humanoid or a piece of a dead humanoid. The dust is absorbed by the remains. If willing, the dead creature returns to life with a new body as if the reincarnate spell had been cast on the remains.\",\r\n\tdescriptionFull : \"When this small pouch of purple dust is sprinkled on a dead humanoid or a piece of a dead humanoid, the dust is absorbed by the remains. If willing, the dead creature returns to life with a new body as if the reincarnate spell had been cast on the remains.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Use once\",\r\n\t\tspells : [\"reincarnate\"],\r\n\t\tselection : [\"reincarnate\"]\r\n\t}]\r\n};\r\nMagicItemsList[\"ring of obscuring\"] = {\r\n\tname : \"Ring of Obscuring\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This band of iron resembling a skull has 3 charges, regaining 1d3 expended charges at dawn. As an action, I can expend 1 charge to cast Fog Cloud from it, with the following changes: the cloud is centered on me when it first appears, the spell lasts for 1 minute, and the spell requires no concentration.\",\r\n\tdescriptionFull : \"This band of iron resembles a skull and is cold to the touch. It has 3 charges and regains 1d3 expended charges daily at dawn. As an action while wearing the ring, you can expend 1 of its charges to cast the fog cloud spell from it, with the following changes: the cloud is centered on you when it first appears, and the spell lasts for 1 minute (no concentration required).\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Ring of Obscuring\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"Dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"fog cloud\"],\r\n\t\tselection : [\"fog cloud\"],\r\n\t\tfirstCol : '1'\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fog cloud\" : {\r\n\t\t\trange : \"Self\",\r\n\t\t\tduration : \"1 min\",\r\n\t\t\tchanges : \"When I cast fog cloud with the Ring of Obscuring, the spell is centered on me, lasts for 1 minute, and the requires no concentration.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"ring of temporal salvation\"] = {\r\n\tname : \"Ring of Temporal Salvation\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"ring\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"If I die while wearing this gray crystal ring, I vanish and reappear in an empty space within 5 ft, with 3d6 + my Con mod in HP, and 1 less level of exhaustion (if any). If my maximum HP is less than the amount rolled, my max rises to a similar amount. Once this ring is used, it turns to dust and is destroyed.\",\r\n\tdescriptionFull : \"If you die while wearing this gray crystal ring, you vanish and reappear in an unoccupied space within 5 feet of the space you left (or the nearest unoccupied space). You have a number of hit points equal to 3d6 + your Constitution modifier. If your hit point maximum is lower than the number of hit points you regain, your hit point maximum rises to a similar amount. If you have any levels of exhaustion, reduce your level of exhaustion by 1. Once the ring is used, it turns to dust and is destroyed.\"\r\n};\r\nMagicItemsList[\"rod of retribution\"] = {\r\n\tname : \"Rod of Retribution\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"rod\",\r\n\trarity : \"uncommon\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This adamantine rod with a glowing crystalline tip has 3 charges, regaining all daily at dawn. As a reaction when a creature I can see within 60 ft damages me, I can expend a charge to force it to make a DC 13 Dexterity save. It takes a 2d10 lightning damage on a failed save, or half as much on a successful one.\",\r\n\tdescriptionFull : \"This adamantine rod is tipped with a glowing crystalline eye. The rod has 3 charges and regains all its expended charges daily at dawn.\\n   When a creature you can see within 60 feet of you damages you while you are holding this rod, you can use your reaction to expend 1 of the rod's charges to force the creature to make a DC 13 Dexterity saving throw. The creature takes 2d10 lightning damage on a failed save, or half as much damage on a successful one.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (if damaged)\"]],\r\n\tweight : 2\r\n};\r\nMagicItemsList[\"spell bottle\"] = {\r\n\tname : \"Spell Bottle\",\r\n\tsource : [[\"W\", 269]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While holding this bottle, I can cast a 5th-level or lower spell into it if empty, or cast the stored spell from it (slot level, DC, and spell attack as original casting). As a reaction when I see a spell being cast in 60 ft, I can try to store it in the empty bottle. Works if 3rd-level or lower, otherwise Int check DC 10 + spell level.\",\r\n\tdescriptionFull : \"This glass bottle can store one spell of up to 5th level at a time. When found, roll a d6 and subtract 1; the total determines the level of spell in the bottle (the DM chooses the spell, and 0 means the bottle is empty). A swirling blue vapor fills the bottle while it contains a spell.\"+\r\n\t\"\\n   When the bottle is empty, any creature can cast a spell of 1st through 5th level into it by touching it while casting. The spell has no effect other than to be stored in the bottle.\"+\r\n\t\"\\n   While holding the bottle, you can cast the spell stored in it. The spell uses the slot level, spell save DC, spell attack bonus, and spellcasting ability of the original caster, but is otherwise treated as if you cast the spell. The bottle becomes empty once the spell is cast.\"+\r\n\t\"\\n   If you're holding the empty bottle when you see a creature casting a spell within 60 feet of you, you can open the bottle as a reaction in an attempt to interrupt the spell. If the creature is casting a spell of 3rd level or lower, the spell has no effect, and it is stored in the bottle. If it is casting a spell of 4th level or higher, make an Intelligence check. The DC equals 10 + the spell's level. On a success, the spell has no effect, and it is stored in the bottle.\"\r\n};\r\nMagicItemsList[\"staff of dunamancy\"] = {\r\n\tname : \"Staff of Dunamancy\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This staff has 10 charges, regains 1d6+4 at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. As an action, I can use its charges to cast Fortune's Favor (2), Pulse Wave (3), or Gravity Sinkhole (4), using my spellcasting ability. Once per dawn, I can turn a failed save vs. a spell that targets only me into a success.\",\r\n\tdescriptionFull : \"This staff of polished gray wood bears numerous runes carved along its length. The staff has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff turns into dust and is destroyed.\"+\r\n\t\"\\n   While holding the staff, you can use an action to expend 2 or more of its charges to cast one of the following spells from it, using your spell save DC and spell attack bonus: fortune's favor (2 charges), pulse wave (3 charges), or gravity sinkhole (4 charges).\"+\r\n\t\"\\n   \" + toUni(\"New Possibility\") + \". If you are holding the staff and fail a saving throw against a spell that targets only you, you can turn your failed save into a successful one. This property can't be used again until the next dawn.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Staff of Dunamancy (regains 1d6+4)\",\r\n\t\tusages : 10,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Staff of Dunamancy (New Possibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2 charges\",\r\n\t\tspells : [\"fortune's favor\"],\r\n\t\tselection : [\"fortune's favor\"],\r\n\t\tfirstCol : 2\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"pulse wave\"],\r\n\t\tselection : [\"pulse wave\"],\r\n\t\tfirstCol : 3\r\n\t}, {\r\n\t\tname : \"4 charges\",\r\n\t\tspells : [\"gravity sinkhole\"],\r\n\t\tselection : [\"gravity sinkhole\"],\r\n\t\tfirstCol : 4\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fortune's favor\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Staff of Dunamancy, I can cast Fortune's Favor as an action.\"\r\n\t\t}\r\n\t},\r\n\tweight : 4\r\n};\r\nMagicItemsList[\"staff of the ivory claw\"] = {\r\n\tname : \"Staff of the Ivory Claw\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"staff\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This gray-and-cerulean staff is topped with a small dragon claw carved from ivory. While holding the staff, I gain a +1 bonus to spell attack rolls. Whenever you score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\",\r\n\tdescriptionFull : \"This gray-and-cerulean staff is topped with a small dragon claw carved from ivory. While holding the staff, you gain a +1 bonus to spell attack rolls. Whenever you score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\",\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"While holding the Staff of the Ivory Claw, I have a +1 bonus to spell attack rolls.\"\r\n\t\t],\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isSpell && !v.theWea.dc) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On crit, +3d6 radiant damage';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"While holding the Staff of the Ivory Claw whenever I score a critical hit with a spell attack, the target takes an extra 3d6 radiant damage.\"\r\n\t\t]\r\n\t},\r\n\tweight : 4\r\n};\r\nMagicItemsList[\"vox seeker\"] = {\r\n\tname : \"Vox Seeker\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This clockwork device resembles a metal crab the size of a dinner plate. Every action used to wind up this clockwork device allows it to operate for 1 minute, to a maximum of 10 minutes. See the vox seeker on a companion page. This creature is under the DM's control. If reduced to 0 HP, it is destroyed.\",\r\n\tdescriptionFull : \"This clockwork device resembles a metal crab the size of a dinner plate. Every action used to wind up the device allows it to operate for 1 minute, to a maximum of 10 minutes. While operational, the item uses the accompanying Vox Seeker stat block. This automaton is under the DM's control. A vox seeker reduced to 0 hit points is destroyed.\",\r\n\taction : [[\"action\", \" (wind up)\"]],\r\n\tcreaturesAdd : [[\"Vox Seeker\"]],\r\n\tcreatureOptions : [{\r\n\t\tname : \"Vox Seeker\",\r\n\t\tsource : [[\"W\", 270]],\r\n\t\tsize : 5,\r\n\t\ttype : \"Construct\",\r\n\t\talignment : \"\",\r\n\t\tac : 14,\r\n\t\thp : 7,\r\n\t\thd : [2, 4],\r\n\t\tspeed : \"20 ft, climb 20 ft\",\r\n\t\tscores : [2, 10, 12, 1, 10, 1],\r\n\t\tdamage_immunities : \"poison, psychic\",\r\n\t\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\t\tsenses : \"Blindsight 60 ft (blind beyond this radius\",\r\n\t\tpassivePerception : 10,\r\n\t\tlanguages : \"\",\r\n\t\tchallengeRating : \"0\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Pincer\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, 4, \"piercing\"],\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"+3 lightning damage\",\r\n\t\t\tabilitytodamage : false\r\n\t\t}],\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Creator\",\r\n\t\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Spider Climb\",\r\n\t\t\tdescription : \"The vox seeker can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.\"\r\n\t\t}, {\r\n\t\t\tname : \"Voice Lock\",\r\n\t\t\tdescription : \"The vox seeker must move toward and attack the source of the nearest voice within 60 ft of it, to the exclusion of all other targets, for as long as it remains operational.\"\r\n\t\t}]\r\n\t}]\r\n};\r\nMagicItemsList[\"weapon of certain death\"] = {\r\n\tname : \"Weapon of Certain Death\",\r\n\tnameTest : \"of Certain Death\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"When I damage a creature with an attack using this magic weapon, the target can't regain hit points until the start of my next turn.\",\r\n\tdescriptionFull : \"When you damage a creature with an attack using this magic weapon, the target can't regain hit points until the start of your next turn.\",\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"prefix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && (/of certain death/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"On hit, target can't heal until my next turn starts\";\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"of Certain Death\" in a the name of a weapon, it will be treated as the magic weapon \"Weapon of Certain Death\". On a hit, the target can\\'t regain hit points until the start of my next turn.'\r\n\t\t]\r\n\t}\r\n};\r\n\r\n// Vestiges of Divergence (contains contributions by kat9137 [Discord] aka sophiechiabatta [GitHub])\r\nvar EGtW_Vestiges_Replace = function (sDescr) {\r\n\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|giving|grants|of|to|for) I\\b/ig, \"$1 me\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; });\r\n}\r\nvar EGtW_DanothsVisorFullDescription = [\r\n\t\"These mithral-frame goggles with clear diamond lenses were used by the evoker Danoth Oro to spot invisible enemies and scout areas from afar.\",\r\n\t\">>Dormant<<. While wearing the goggles in their dormant state, you can see normally in darkness, both magical and nonmagical, to a distance of 60 feet. Additionally, you have advantage on Intelligence (Investigation) and Wisdom (Perception) checks that rely on sight.\",\r\n\t\">>Awakened<<. When Danoth's Visor reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 You see invisible creatures and objects within 60 feet of you as if they were visible, and you can see into the Ethereal Plane. Ethereal creatures and objects appear ghostly and translucent.\",\r\n\t\"\\u2022 As a bonus action, you can speak a command word and use the goggles to see into and through solid matter. This vision has a radius of 60 feet and lasts for 1 minute. To you, solid objects within that radius appear transparent. The vision can penetrate 1 foot of stone, 1 inch of common metal, or up to 3 feet of wood or dirt. Thicker substances block the vision, as does a thin sheet of lead. This property can't be used again until the next dawn.\",\r\n\t\"\\u2022 As a bonus action, you can speak a command word to switch the goggles into spyglass mode. While in this mode, creatures and objects viewed through the goggles are magnified to twice their size. Speaking the command word again reverts the goggles to their normal operation.\",\r\n\t\">>Exalted<<.\",\r\n\t\"When Danoth's Visor reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 You automatically detect illusions you can see and automatically succeed on saving throws against them. In addition, you see a bright aura around any creature that isn't in its true form.\",\r\n\t\"\\u2022 As an action, you can cast the antimagic field spell from the visor. This property can't be used again until the next dawn.\"\r\n];\r\nMagicItemsList[\"danoth's visor\"] = {\r\n\tname : \"Danoth's Visor\",\r\n\tsource : [[\"W\", 270]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"These mithral-frame goggles with clear diamond lenses were used by the evoker Danoth Oro to spot invisible enemies and scout areas from afar. See notes page for more information.\",\r\n\tdescriptionFull : EGtW_DanothsVisorFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_DanothsVisorFullDescription)\r\n\t}],\r\n\tvision : [[\"Devil's Sight\", \"fixed 60\"], [\"Adv. on Investigation and Perception check that rely on sight\", 0]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Danoth's Visor [dormant]\",\r\n\t\tdescription : \"These mithral-frame goggles with clear diamond lenses grant me the ability to see in normally in nonmagical and magical darkness out to 60 ft. Also, they grant me advantage on Intelligence (Investigation) and Wisdom (Perception) checks that rely on sight.\"\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Danoth's Visor [awakened]\",\r\n\t\tdescription : \"These mithral-frame goggles with clear diamond lenses grant me the ability to see, out to 60 ft, in nonmagical and magical darkness, invisible creatures and objects, and into the Ethereal plane. They give me adv. on Investigation and Perception checks that rely on sight. I can active them to see more, see Notes page.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (see through matter)\"]\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (spyglass mode)\"],\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Danoth's Visor (see through matter)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Danoth's Visor [exalted]\",\r\n\t\tdescription : \"These goggles grant me the ability to see, out to 60 ft, in normal and magical darkness, invisible creatures and objects, and into the Ethereal plane. They allow me to automatically detect illusions for what they are, succeed on saves against them, and see if creatures aren't in their true form. See Notes for more.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (see through matter)\"]\r\n\t\t\t[\"bonus action\", \"Danoth's Visor (spyglass mode)\"],\r\n\t\t],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Danoth's Visor (see through matter)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Danoth's Visor (Antimagic Field)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"antimagic field\"],\r\n\t\t\tselection : [\"antimagic field\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tsavetxt : { immune : [\"illusions\"] },\r\n\t}\r\n};\r\nvar EGtW_GrimoireInfinitusFullDescription = [\r\n\t\"Several of these spellbooks with gilded pages and silver-plated covers were created during the Age of Arcanum, but only one has been found since the Calamity ended. The book has an infinite number of pages, is three inches thick, eight inches wide, twelve inches long, and weighs three pounds.\",\r\n\t\">>Dormant<<. Most of the book is blank, but the following spells are recorded in the first pages of the tome: alarm, antimagic field, Bigby's hand, blight, charm person, confusion, control weather, create undead, detect thoughts, enlarge/reduce, fear, foresight, gaseous form, glyph of warding, legend lore, Leomund's tiny hut, mass suggestion, mislead, misty step, Mordenkainen's faithful hound, prismatic spray, ray of enfeeblement, silent image, teleport, and thunderwave.\",\r\n\t\"You can use the grimoire as your spellbook, and you can scribe new spells into it as normal. When you prepare wizard spells using the grimoire, the number of wizard spells you can prepare increases by 1.\",\r\n\t\">>Awakened<<. When the Grimoire Infinitus reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 While you carry the spellbook, you have advantage on saving throws against spells and magical effects.\",\r\n\t\"\\u2022 When you prepare wizard spells using the grimoire as your spellbook, the number of spells you can prepare increases by 1 again.\",\r\n\t\">>Exalted<<. When the Grimoire Infinitus reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 You can now use your Arcane Recovery feature twice between long rests, rather than once.\",\r\n\t\"\\u2022 When you prepare wizard spells using the grimoire as your spellbook, the number of spells you can prepare increases by 1 again.\"\r\n];\r\nMagicItemsList[\"grimoire infinitus\"] = {\r\n\tname : \"Grimoire Infinitus\",\r\n\tsource : [[\"W\", 271]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use to prepare wizards spells, I can prepare 1 additional spell.\",\r\n\tdescriptionFull : EGtW_GrimoireInfinitusFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_GrimoireInfinitusFullDescription)\r\n\t}],\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function (v) { return classes.known.wizard ? true : false; },\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"alarm\", \"antimagic field\", \"bigby's hand\", \"blight\", \"charm person\", \"confusion\", \"control weather\", \"create undead\", \"detect thoughts\", \"enlarge/reduce\", \"fear\", \"foresight\", \"gaseous form\", \"glyph of warding\", \"legend lore\", \"leomund's tiny hut\", \"mass suggestion\", \"mislead\", \"misty step\", \"mordenkainen's faithful hound\", \"prismatic spray\", \"ray of enfeeblement\", \"silent image\", \"teleport\", \"thunderwave\"]\r\n\t},\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Grimoire Infinitus [dormant]\",\r\n\t\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use to prepare wizard spells, I can prepare 1 additional spell. See Notes page for more information.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 1.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Grimoire Infinitus [awakened]\",\r\n\t\tdescription : \"This spellbook with unlimited gilded pages and silver-plated covers can be used by a wizard to prepare and store spells. It holds several spells already. When I use it to prepare wizard spells, I can prepare 2 extra spells. It also grants me advantage on saves against spells and magical effects. See Notes page.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 2.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tsavetxt : { adv_vs : [\"magic\"] }\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Grimoire Infinitus [exalted]\",\r\n\t\tdescription : \"This spellbook with unlimited pages can be used by a wizard to prepare and store spells. When I use it to prepare wizard spells, I can prepare 3 more. It also grants me adv. on saves vs. spells and magical effects and allows me to use Arcane Recovery an extra time per long rest. See Notes page for more information.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"prepare\" && spellcasters.indexOf(\"wizard\") !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"When I prepare wizard spells using the grimoire, the number of wizard spells I can prepare increases by 3.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tsavetxt : { adv_vs : [\"magic\"] },\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Arcane Recovery\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taddToExisting : true\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_HideFeralGuardianFullDescription = [\r\n\t\"It is believed that this polished and beautifully detailed leather armor was a gift from Melora, bestowed on a long-forgotten archdruid and champion of the natural world before the terrors of the Calamity.\",\r\n\t\">>Dormant<<. While wearing the armor in its dormant state, you gain the following benefits:\",\r\n\t\"\\u2022 The armor grants you a +1 bonus to AC.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, you have a +1 bonus to melee attack and damage rolls, and you retain the benefits of this armor.\",\r\n\t\"\\u2022 As an action, you can use the armor to cast polymorph on yourself, transforming into a giant owl while retaining your Intelligence, Wisdom, and Charisma scores. This property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. When the armor reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 The AC bonus of the armor increases to +2.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, your bonus to melee attack and damage rolls increases by 1 (to +2).\",\r\n\t\"\\u2022 When you cast the polymorph spell using this armor, you can transform into a cave bear.\",\r\n\t\">>Exalted<<. When the armor reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 The AC bonus of the armor increases to +3.\",\r\n\t\"\\u2022 While you are transformed by an effect that replaces any of your game statistics with those of another creature, your bonus to melee attack and damage rolls increases by 1 (to +3).\",\r\n\t\"\\u2022 When you cast the polymorph spell using this armor, you can transform into a guardian wolf.\"\r\n];\r\nMagicItemsList[\"hide of the feral guardian\"] = {\r\n\tname : \"Hide of the Feral Guardian\",\r\n\tsource : [[\"W\", 271]],\r\n\ttype : \"armor (studded leather)\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a bonus to melee attack and damage rolls. Once per dawn, I can use it to cast Polymorph on myself.\",\r\n\tdescriptionFull : EGtW_HideFeralGuardianFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 13,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_HideFeralGuardianFullDescription) + \"\\n\\nNOTE\\n   Be aware that the bonus to melee attacks and damage in wild shape are not automated.\"\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Hide of the Feral Guardian (Polymorph)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Hide of the Feral Guardian [dormant]\",\r\n\t\tdescription : \"This +1 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a +1 bonus to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to transform into a giant owl.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+1\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Hide of the Feral Guardian [awakened]\",\r\n\t\tdescription : \"This +2 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then also grants me a +2 bonus to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to become a giant owl or cave bear.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+2\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl or cave bear; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl or a cave bear, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Hide of the Feral Guardian [exalted]\",\r\n\t\tdescription : \"This +3 studded leather armor retains it benefits even when I'm transformed by an effect that replaces any of my game statistics with those of another creature and then grants a +2 to melee attack and damage rolls. Once per dawn, I can cast Polymorph on myself to become a giant owl, cave bear or guardian wolf.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*hide)(?=.*feral guardian).*$/i,\r\n\t\t\tname : \"Hide of the Feral Guardian\",\r\n\t\t\tsource : [[\"W\", 271]],\r\n\t\t\ttype : \"light\",\r\n\t\t\tac : \"12+3\",\r\n\t\t\tweight : 13,\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a giant owl, cave bear, or guardian wolf; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using the Hide of the Feral Guardian, I can cast Polymorph on myself once per dawn to transform myself into a giant owl, cave bear, or guardian wolf, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the armor.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Guardian Wolf\",\r\n\t\t\tsource : [[\"W\", 272]],\r\n\t\t\tsize : 1,\r\n\t\t\ttype : \"Monstrosity\",\r\n\t\t\talignment : \"\",\r\n\t\t\tac : 14,\r\n\t\t\thp : 66,\r\n\t\t\thd : [7, 12],\r\n\t\t\tspeed : \"60 ft\",\r\n\t\t\tscores : [22, 14, 16, 5, 12, 8],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 3\r\n\t\t\t},\r\n\t\t\tsenses : \"Adv. on Wis (Perception) checks using hearing/smell\",\r\n\t\t\tpassivePerception : 15,\r\n\t\t\tlanguages : \"Common, Elvish\",\r\n\t\t\tchallengeRating : \"4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 2,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Bite\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 10, \"piercing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"Target DC 16 Str save or knocked prone; One bite and one claw attack as an Attack action\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Claws\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [2, 8, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Multiattack\",\r\n\t\t\t\tdescription : \"As an action on its turn, the wolf can make one Bite and one Claws attack.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Keen Hearing and Smell\",\r\n\t\t\t\tdescription : \"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Pack Tactics\",\r\n\t\t\t\tdescription : \"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t\t}]\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_InfiltratorsKeyFullDescription = [\r\n\t\"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items during the Age of Arcanum.\",\r\n\t\">>Dormant<<. The Infiltrator's Key grants the following benefits in its dormant state:\",\r\n\t\"\\u2022 The key can be used as thieves' tools for the purpose of opening locks. When using the key, you are considered proficient in thieves' tools and you have advantage on ability checks made to open locks.\",\r\n\t\"\\u2022 While holding the key, your steps are muffled, giving you advantage on Dexterity (Stealth) checks made to move silently.\",\r\n\t\">>Awakened<<. When the Infiltrator's Key reaches an awakened state, it gains the following properties:\",\r\n\t\"\\u2022 While holding the key, you can use a bonus action to transform the key into a magic dagger or back into a key. While the key is in the form of a dagger, you gain a +1 bonus to attack and damage rolls made with it, and it returns to your hand immediately after it is used to make a ranged attack.\",\r\n\t\"\\u2022 While holding the key, you can use an action to cast one of the following spells from it: alter self, invisibility, knock, or pass without trace. Once a spell has been cast using the key, it can't be used to cast that spell again until the next dawn.\",\r\n\t\">>Exalted<<. When the Infiltrator's Key reaches an exalted state, it gains the following properties:\",\r\n\t\"\\u2022 As a bonus action, you can touch the key to a floor, wall, or ceiling that is no more than 5 feet thick and cause a magical opening to appear in the surface. When you create the opening, you choose its length and width, up to 10 feet for each dimension. The opening lasts until the key passes through it to the other side, at which point it disappears (if a creature is in the opening when the doorway closes, the creature is safely shunted to the nearest unoccupied space). The key can't be used to create another opening until the next dawn.\",\r\n\t\"\\u2022 While holding the key, you can use an action to cast one of the following spells from it: dimension door, gaseous form, or mislead. Once a spell has been cast using the key, it can't be used to cast that spell again until the next dawn.\"\r\n];\r\nMagicItemsList[\"infiltrator's key\"] = {\r\n\tname : \"Infiltrator's Key\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items during the Age of Arcanum. See notes page for more information.\",\r\n\tdescriptionFull : EGtW_InfiltratorsKeyFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_InfiltratorsKeyFullDescription)\r\n\t}],\r\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Infiltrator's Key [dormant]\",\r\n\t\tdescription : \"This mithral skeleton key was forged using the blood of twelve master thieves executed for trying to steal magic items. It can be used as thieves' tools for the purpose of opening locks. I'm considered proficient when I do so with this key and gain adv. While holding it, I have adv. on Stealth checks to move silently.\"\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Infiltrator's Key [awakened]\",\r\n\t\tdescription : \"I can use this mithral skeleton key as thieves' tools to open locks. I'm proficient with it and gain adv. on the roll. While holding it, I have adv. on Stealth checks to move silently. As a bonus action, I can transform it into a +1 dagger that returns immediately when thrown. I can use it to cast several spells, each once per dawn.\",\r\n\t\taction : [[\"bonus action\", \"Infiltrator's Key (transform dagger)\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"dagger\",\r\n\t\t\tregExpSearch : /infiltrator's key|key of the infiltrator/i,\r\n\t\t\tname : \"Infiltrator's Key\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdescription : \"Finesse, light, thrown; Returns when thrown\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\"],\r\n\t\t\tselection : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\"],\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 4\r\n\t\t}]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Infiltrator's Key [exalted]\",\r\n\t\tdescription : \"I can use this mithral skeleton key as thieves' tools to open locks. I'm proficient with it and gain adv. on the roll. While holding it, I have adv. on Stealth checks to move silently. As a bonus action, I can transform it into a +1 dagger that returns when thrown. I can use it to cast several spells, each once per dawn. See Notes.\",\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \"Infiltrator's Key (transform dagger)\"],\r\n\t\t\t[\"bonus action\", \"Infiltrator's Key (create opening)\"]\r\n\t\t],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"dagger\",\r\n\t\t\tregExpSearch : /infiltrator's key|key of the infiltrator/i,\r\n\t\t\tname : \"Infiltrator's Key\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdescription : \"Finesse, light, thrown; Returns when thrown\",\r\n\t\t\tmodifiers : [1, 1],\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\", \"dimension door\", \"gaseous form\", \"mislead\"],\r\n\t\t\tselection : [\"alter self\", \"invisibility\", \"knock\", \"pass without trace\", \"dimension door\", \"gaseous form\", \"mislead\"],\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 7\r\n\t\t}],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Infiltrator's Key (create opening)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_StormgirdleFullDescription = [\r\n\t\"A Stormgirdle is a wide belt made of thick leather branded with the symbol of Kord. The girdle's clasps are made from dragon ivory.\",\r\n\t\">>Dormant<<. While wearing the Stormgirdle in its dormant state, you have resistance to lightning damage and thunder damage, and your Strength score becomes 21 if it isn't already 21 or higher. In addition, you can use an action to become a Storm Avatar for 1 minute, gaining the following benefits for the duration:\",\r\n\t\"\\u2022 You have immunity to lightning damage and thunder damage.\",\r\n\t\"\\u2022 When you hit with a weapon attack that normally deals bludgeoning damage, it deals thunder damage instead. When you hit with a weapon attack that normally deals piercing or slashing damage, it deals lightning damage instead.\",\r\n\t\"\\u2022 As a bonus action, you can choose one creature you can see within 30 feet of you to be struck by lightning. The target must make a DC 15 Dexterity saving throw, taking 3d6 lightning damage on a failed save, or half as much damage on a successful one.\",\r\n\t\"Once you use the girdle's Storm Avatar property, that property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. While wearing the Stormgirdle in its awakened state, you gain the following benefits:\",\r\n\t\"\\u2022 Your Strength score becomes 23 if it isn't already 23 or higher.\",\r\n\t\"\\u2022 Your Storm Avatar's lightning strike deals 4d6 lightning damage (instead of 3d6).\",\r\n\t\"\\u2022 While transformed into a Storm Avatar, you gain a flying speed of 30 feet and can hover.\",\r\n\t\">>Exalted<<. While wearing the Stormgirdle in its exalted state, you gain the following benefits:\",\r\n\t\"\\u2022 Your Strength score becomes 25 if it isn't already 25 or higher.\",\r\n\t\"\\u2022 Your Storm Avatar's lightning strike deals 5d6 lightning damage (instead of 3d6).\",\r\n\t\"\\u2022 You can cast the control weather spell from the girdle. This property can't be used again until the next dawn.\"\r\n];\r\nMagicItemsList[\"stormgirdle\"] = {\r\n\tname : \"Stormgirdle\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"A wide belt of leather branded with the symbol of Kord. While attuned to and wearing this belt, I am resistant to lightning and thunder damage. My Strength score becomes 21, provided my Strength is not already 21 or higher. As an action, I can become a Storm Avatar for 1 minute. See notes page for more info.\",\r\n\tdescriptionFull : EGtW_StormgirdleFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_StormgirdleFullDescription)\r\n\t}],\r\n\tdmgres : [\"Lightning\", \"Thunder\"],\r\n\taction : [[\"action\", \" (Storm Avatar)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Storm Girdle (Storm Avatar)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*storm avatar)(?=.*lightning strike).*$/i,\r\n\t\tname : \"Storm Avatar's Lightning Strike\",\r\n\t\tsource : [[\"W\", 273]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [3, 6, \"lightning\"],\r\n\t\trange : '30 ft',\r\n\t\tdescription : \"Bonus action; Dex save, success - half damage\",\r\n\t\tmodifiers : [7, \"\"],\r\n\t\tdc : true,\r\n\t\tstormAvatarLightningStrike : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.stormAvatarLightningStrike && CurrentMagicItems.known.indexOf('stormgirdle') !== -1) {\r\n\t\t\t\t\tvar stormgirdleType = CurrentMagicItems.choices[CurrentMagicItems.known.indexOf('stormgirdle')];\r\n\t\t\t\t\tfields.Damage_Die = (stormgirdleType === \"exalted\" ? 5 : stormgirdleType === \"awakened\" ? 4 : 3) + 'd6';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\",\r\n\t\t\t1\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Stormgirdle [dormant]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 21. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. See Notes page for more information.\",\r\n\t\tscoresOverride : [21, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Stormgirdle [awakened]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 23. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. See Notes page for more information.\",\r\n\t\tscoresOverride : [23, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Stormgirdle [exalted]\",\r\n\t\tdescription : \"This wide belt of thick leather branded with the symbol of Kord grants me resistance to lightning and thunder damage and increases my Strength to 25. As an action once per dawn, I can use it to become a Storm Avatar for 1 minute. Once per dawn, I can cast Control Weather. See Notes page for more information.\",\r\n\t\tscoresOverride : [25, 0, 0, 0, 0, 0],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"control weather\"],\r\n\t\t\tselection : [\"control weather\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_VerminshroudFullDescription = [\r\n\t\"This patchy cloak was pieced together from the pelts of rats found feasting on the dead in Blightshore and is dotted with the bloated corpses of magically preserved insects along its seams.\",\r\n\t\">>Dormant<<. While wearing the Verminshroud in its dormant state, you gain the following benefits:\",\r\n\t\"\\u2022 You have advantage on Wisdom (Perception) checks that rely on smell, you are immune to disease, and you have darkvision out to a range of 60 feet. If you already have darkvision, wearing the cloak increases the range of your darkvision by 60 feet.\",\r\n\t\"\\u2022 As an action, you can use the Verminshroud to cast polymorph on yourself, transforming into a giant rat or rat while retaining your Intelligence, Wisdom, and Charisma scores, as well as the properties of the cloak. This property can't be used again until the next dawn.\",\r\n\t\">>Awakened<<. While wearing the Verminshroud in its awakened state, you gain the following benefits:\",\r\n\t\"\\u2022 You have resistance to poison damage.\",\r\n\t\"\\u2022 You can use an action to cast the insect plague spell (save DC 15) from the Verminshroud, requiring no material components. This property can't be used again until the next dawn.\",\r\n\t\"\\u2022 When you cast the polymorph spell using the Verminshroud, you can transform into a giant wasp.\",\r\n\t\">>Exalted<<. While wearing the Verminshroud in its exalted state, you gain the following benefits:\",\r\n\t\"\\u2022 You gain a climbing speed equal to your walking speed.\",\r\n\t\"\\u2022 Your teeth become razor-sharp natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal piercing damage equal to 1d6 + your Strength modifier, instead of the bludgeoning damage normal for an unarmed strike. You can make this attack as a bonus action. When you bite a creature and deal damage to it, the creature must succeed on a DC 17 Constitution saving throw or be poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the condition on itself on a success.\",\r\n\t\"\\u2022 When you cast the polymorph spell using the Verminshroud, you can transform into a giant scorpion.\"\r\n];\r\nMagicItemsList[\"verminshroud\"] = {\r\n\tname : \"Verminshroud\",\r\n\tsource : [[\"W\", 273]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This patchy cloak was pieced together from the pelts of rats found feasting on the dead in Blightshore and is dotted with the bloated corpses of magically preserved insects along its seams. See notes page for more info.\",\r\n\tdescriptionFull : EGtW_VerminshroudFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_VerminshroudFullDescription)\r\n\t}],\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"], [\"Adv. on Perception check that rely on smell\", 0]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Verminshroud (Polymorph)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Verminshroud [dormant]\",\r\n\t\tdescription : \"This patchy cloak of rat pelts grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, and advantage on Perception checks that rely on smell. Once per dawn, I can use it to cast Polymorph on myself to become a rat or a giant rat, but I retain my Int, Wis, and Cha, as well as the benefits of this cloak.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\"],\r\n\t\t\tselection : [\"polymorph\"],\r\n\t\t\tfirstCol : \"oncelr\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat or giant rat; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat or giant rat, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Verminshroud [awakened]\",\r\n\t\tdescription : \"This patchy cloak of rat pelts grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, adv. on Perception checks that rely on smell, and resistance to poison. Once per dawn, I can use it to cast Polymorph on myself to become a rat, giant rat, or giant wasp. I can cast Insect Plague. See Notes page\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Verminshroud (Insect Plague)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus :[{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\", \"insect plague\"],\r\n\t\t\tselection : [\"polymorph\", \"insect plague\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat, giant rat, or giant wasp; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat, giant rat, or giant wasp, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Verminshroud [exalted]\",\r\n\t\tdescription : \"This patchy cloak grants me immunity to disease, darkvision out to 60 ft, or extends it by 60 ft, adv. on Perception checks that rely on smell, resistance to poison, and a climbing speed. Once per dawn, I can use it to cast Polymorph on myself to become a rat, giant rat, giant wasp, or giant scorpion. See Notes page.\",\r\n\t\tdmgres : [\"Poison\"],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Verminshroud (Insect Plague)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"polymorph\", \"insect plague\"],\r\n\t\t\tselection : [\"polymorph\", \"insect plague\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"polymorph\" : {\r\n\t\t\t\tname : \"Polymorph (special)\",\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"I transform into a rat, giant rat, giant wasp, or giant scorpion; I retain my Int, Wis, Cha\",\r\n\t\t\t\tchanges : \"Using Verminshroud, I can cast Polymorph on myself once per dawn to transform myself into a rat, giant rat, giant wasp, or giant scorpion, while retaining my Intelligence, Wisdom, and Charisma scores as well as the benefits of the cloak.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } },\r\n\t\taction : [[\"bonus action\", \"Verminshroud: Bite\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*verminshroud)(?=.*bite).*$/i,\r\n\t\t\tname : \"Verminshroud: Bite\",\r\n\t\t\tsource : [[\"W\", 273]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Bonus action; DC17 Con save or poisoned 1 min, repeat save end of their turns\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nvar EGtW_WreathPrismFullDescription = [\r\n\t\"This loop of golden thorns is inset with dozens of gems representing the five colors of Tiamat.\",\r\n\t\">>Dormant<<. While wearing the wreath in its dormant state, you have darkvision out to a range of 60 feet. If you already have darkvision, wearing the wreath increases the range of your darkvision by 60 feet.\",\r\n\t\"When you hit a beast, dragon, or monstrosity of challenge rating 5 or lower with an attack, or when you grapple it, you can use the wreath to cast dominate monster on the creature (save DC 13). On a successful save, the target is immune to the power of the wreath for 24 hours. On a failure, a shimmering, golden image of the wreath appears as a collar around the target's neck or as a crown on its head (your choice) until it is no longer charmed by the spell. If you use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by you.\",\r\n\t\">>Awakened<<. Once the Wreath of the Prism reaches an awakened state, it gains the following benefits:\",\r\n\t\"\\u2022 You can affect creatures of challenge rating 10 or lower with the wreath.\",\r\n\t\"\\u2022 The save DC of the wreath's spell increases to 15.\",\r\n\t\">>Exalted<<. Once the Wreath of the Prism reaches an exalted state, it gains the following benefits:\",\r\n\t\"\\u2022 You can affect creatures of challenge rating 15 or lower with the wreath.\",\r\n\t\"\\u2022 The save DC of the wreath's spell increases to 17.\"\r\n];\r\nMagicItemsList[\"wreath of the prism\"] = {\r\n\tname : \"Wreath of the Prism\",\r\n\tsource : [[\"W\", 274]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision to 60 ft, or extend my darkvision by 60 ft. When I hit a beast, dragon, or monstrosity with an attack, I can cast dominate monster on that creature, depending on its CR. See notes page for info.\",\r\n\tdescriptionFull : EGtW_WreathPrismFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_WreathPrismFullDescription)\r\n\t}],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"dormant\" : {\r\n\t\tname : \"Wreath of the Prism [dormant]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 5 or lower with an attack, I can cast dominate monster on that creature (save DC 13). See notes page for more information.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 5 or lower, DC 13\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 5 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 5 when I hit it with an attack (save DC 13). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Wreath of the Prism [awakened]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 10 or lower with an attack, I can cast dominate monster on that creature (save DC 15). See notes page for more information.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 10 or lower, DC 15\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 10 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 10 when I hit it with an attack (save DC 15). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Wreath of the Prism [exalted]\",\r\n\t\tdescription : \"This loop of golden thorns is inset with dozens of gems that represent the five colors of Tiamat. I gain darkvision out to 60 ft, or extend it by 60 ft. When I hit a beast, dragon, or monstrosity of CR 15 or lower with an attack, I can cast dominate monster on that creature (save DC 17). See notes page for more information.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"CR 15 or lower, DC 17\",\r\n\t\t\tspells : [\"dominate monster\"],\r\n\t\t\tselection : [\"dominate monster\"]\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"dominate monster\" : {\r\n\t\t\t\tname : \"Dominate Monster (special)\",\r\n\t\t\t\tdescription : \"Cast on attack hit on CR 15 or lower beast, dragon, or monstrosity; spell ends if I do this again\",\r\n\t\t\t\tchanges : \"I can cast dominate monster on a beast, dragon, or monstrosity of CR 15 when I hit it with an attack (save DC 17). If I use the wreath to charm a second creature, the first spell immediately ends. When the spell ends, the target knows it was charmed by me.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n/* Supernatural gift\r\n\r\nMagicItemsList[\"hollow one\"] = {\r\n\tname : \"Hollow One\",\r\n\tsource : [[\"W\", 182]],\r\n\ttype : \"supernatural gift\",\r\n\trarity : \"\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I don't age and aging effects don't work on me. When I roll a 16 or higher on a death save, I regain 1 HP. I register as undead for spells and other effects. As an action once per long rest, I can unsettle a creature I can see within 15 ft, giving it disadv. on the next save it makes in the next minute (frightening effect).\",\r\n\tdescriptionLong : \"The void left behind by my departed soul is filled with the strange magic of Blightshore.\\nI don't age and aging effects don't work on me. When I roll a 16 or higher on a death save, I regain 1 HP. Although my creature type is unchanged, I register as undead for spells and other effects. As an action once per long rest, I can unsettle a creature I can see within 15 ft, giving it disadvantage on the next save it makes in the next minute. Constructs, undead, and creatures that can't be frightened are immune to this feature.\",\r\n\tdescriptionFull : \"As a Hollow One, the void left behind by your departed soul is filled with the strange magic of Blightshore. Becoming a Hollow One is a supernatural gift that bestows upon you the following traits.\\n\"+\r\n\ttoUni(\"Ageless\") + \". You don't age, and effects that would cause you to age don't work on you.\\n\"+\r\n\ttoUni(\"Cling to Life\") + \". When you make a death saving throw and roll 16 or higher, you regain 1 hit point.\\n\"+\r\n\ttoUni(\"Revenance\") + \". You retain your creature type, yet you register as undead to spells and other effects that detect the presence of the undead creature type.\\n\"+\r\n\ttoUni(\"Unsettling Presence\") + \". As an action, you can unsettle a creature you can see within 15 feet of you. The target has disadvantage on the next saving throw it makes within the next minute. Constructs, undead, and creatures that can't be frightened are immune to this feature. Once you use this feature, you can't use it again until you finish a long rest.\",\r\n\tsavetxt : { text : [\"Can't be aged\", \"Regain 1 HP on 16+ death save\"] },\r\n\taction : [[\"action\", \"Unsettling Presence\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Unsettling Presence\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"hollow one\"] = MagicItemsList[\"hollow one\"];\r\n\r\n*/"
  },
  {
    "path": "WotC material/pub_20200721_MOT.js",
    "content": "var iFileName = \"pub_20200721_MOT.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from Mythic Odysseys of Theros to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.MOT = {\r\n\tname : \"Mythic Odysseys of Theros\",\r\n\tabbreviation : \"MOT\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://dnd.wizards.com/products/mythic-odysseys-theros\",\r\n\tdate : \"2020/07/21\"\r\n};\r\n\r\nRaceList[\"leonin\"] = { // includes contributions by BraabHimself\r\n\tregExpSearch : /leonin/i,\r\n\tname : \"Leonin\",\r\n\tsource : [[\"MOT\", 20]],\r\n\tplural : \"Leonin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tskillstxt : \"Choose one from Athletics, Intimidation, Perception, or Survival\",\r\n\tlanguageProfs : [\"Common\", \"Leonin\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(leonin|\\bcats?\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Leonin Claws\",\r\n\t\tsource : [[\"MoT\", 21]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tabilitySave : 3,\r\n\tage : \" mature and age at about the same rate as humans\",\r\n\theight : \" are typically over 6 feet tall, with some standing over 7 feet (5'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 250 lb (180 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" are typically over 1,8 metres tall, with some standing over 2,1 metres (167 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 120 kg (80 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 2, 0, 0, 0],\r\n\tfeatures : {\r\n\t\t\"daunting roar\" : {\r\n\t\t\tname : \"Daunting Roar\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Leonin (+2 Constitution +1 Strength)\" + desc([\r\n\t\t\"Claws: I can use my claws to make unarmed strikes that deal 1d4 slashing damage.\",\r\n\t\t\"Daunting Roar: As a bonus action once per short rest, I can let out a menacing roar. Creatures of my choice within 10 ft of me that can hear me must make a Wisdom saving throw (DC 8 + Constitution modifier + Proficiency Bonus) or become frightened of me until the end of my next turn.\",\r\n\t\t\"Hunter's Instincts: I'm proficient in either Athletics, Intimidation, Perception, or Survival.\"\r\n\t])\r\n};\r\nRaceList[\"satyr\"] = { // includes contributions by BraabHimself\r\n\tregExpSearch : /satyr|goat\\s*(wo)?man/i,\r\n\tname : \"Satyr\",\r\n\tsource : [[\"MOT\", 24]],\r\n\tplural : \"Satyr\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"magic\"] },\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(satyr|\\bram\\b))(?=.*headbutt).*$/i,\r\n\t\tname : \"Satyr Headbutt\",\r\n\t\tsource : [[\"MOT\", 25]],\r\n\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tage : \" mature and age at about the same rate as humans\",\r\n\theight : \" range from just under 5 feet to about 6 feet in height, with generally slender builds (4'8\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 145 lbs (100 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from just under 1,5 metres to about 1,8 metres in height, with generally slender builds (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 66 kg (45 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\tskills : [\"Performance\", \"Persuasion\"],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\ttrait : \"Satyr (+1 Dexterity, +2 Charisma)\" + desc([\r\n\t\t\"Fey: My creature type is fey, rather than humanoid.\",\r\n\t\t\"Ram: I can use my head for unarmed strikes that deal 1d4 bludgeoning damage.\",\r\n\t\t\"Magic Resistance: I have advantage on saves against spells and other magical effects.\",\r\n\t\t\"Mirthful Leaps: Whenever I make a long or high jump, I can roll a d8 and add the number rolled to the number of feet I cover, even when making a standing jump. This extra distance costs movement as normal.\"\r\n\t])\r\n};\r\n// [dupl_start] Add centaur and minotaur race from Guildmasters' Guide to Ravnica, if not already present\r\nif (!SourceList.G) {\r\n\tRaceList[\"centaur\"] = {\r\n\t\tregExpSearch : /centaur/i,\r\n\t\tname : \"Centaur\",\r\n\t\tsortname : \"Centaur\",\r\n\t\tsource : [[\"MOT\", 19], [\"G\", 15]],\r\n\t\tplural : \"Centaurs\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 40, enc : 30 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\r\n\t\t\tname : \"Hooves\",\r\n\t\t\tsource : [[\"MOT\", 19], [\"G\", 15]],\r\n\t\t\tdamage : [1, 4, \"bludgeoning\"],\r\n\t\t\tdescription : \"Use as bonus action after charge 30 ft\",\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\taction : [[\"bonus action\", \"Hooves (after charge)\"]],\r\n\t\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, or Survival\",\r\n\t\tage : \" mature and age at about the same rate as humans\",\r\n\t\theight : \" stand between 6 and 7 feet tall, with their equine bodies reaching about 4 feet at the withers (6'0\\\" + 1d10\\\")\",\r\n\t\tweight : \" weigh around 670 lb (600 + 1d10 \\xD7 2d12 lb)\",\r\n\t\theightMetric : \" stand around 2 metres tall, with their equine bodies reaching about 1,5 metres at the withers (183 + 3d8 cm)\",\r\n\t\tweightMetric : \" weigh around 300 kg (270 + 3d8 \\xD7 4d12 / 10 kg)\",\r\n\t\tscores : [2, 0, 0, 0, 1, 0],\r\n\t\ttrait : \"Centaur (+2 Strength +1 Wisdom)\" + desc([\r\n\t\t\t\"Fey: My creature type is fey, rather than humanoid.\",\r\n\t\t\t\"Hooves: I can use my hooves for unarmed strikes that deal 1d4 bludgeoning damage.\",\r\n\t\t\t\"Charge: If I move 30 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can make a hooves attack against it as a bonus action.\",\r\n\t\t\t\"Equine Build: I count as one size larger for my carrying capacity and the weight I can push, drag, or lift. Because of my hooves, 1 ft of movement while climbing costs me 4 ft.\"\r\n\t\t], \"\\n \\u2022 \"),\r\n\t\tcarryingCapacity : 2\r\n\t};\r\n\tRaceList[\"minotaur\"] = {\r\n\t\tregExpSearch : /minotaur/i,\r\n\t\tname : \"Minotaur\",\r\n\t\tsortname : \"Minotaur\",\r\n\t\tsource : [[\"MOT\", 22], [\"G\", 19]],\r\n\t\tplural : \"Minotaurs\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Minotaur\"],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\t\tname : \"Horns\",\r\n\t\t\tsource : [[\"MOT\", 23], [\"G\", 19]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Attack as a bonus action after moving 20 ft with the Dash action\",\r\n\t\t\tselectNow : true\r\n\t\t}],\r\n\t\tskillstxt : \"Choose one from Intimidation or Persuasion\",\r\n\t\tage : \" reach adulthood around age 17 and live up to 150 years\",\r\n\t\theight : \" stand around 6 feet tall (5'4\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 300 pounds (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\theightMetric : \" stand around 175 cm tall (163 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 135 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\tscores : [2, 0, 1, 0, 0, 0],\r\n\t\tabilitySave : 1,\r\n\t\ttrait : \"Minotaur (+2 Strength +1 Constitution)\" + desc([\r\n\t\t\t\"Horns: I can use my horns for unarmed strikes that deal 1d6 piercing damage.\",\r\n\t\t\t\"Goring Rush: When taking a Dash action and moving at least 20 ft, I can make a horns attack as a bonus action.\",\r\n\t\t\t\"Hammering Horns: As a bonus action after I hit a melee attack during my Attack action, I can shove that target with my horns, if it is up to than one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 10 ft away from me.\"\r\n\t\t]),\r\n\t\tfeatures : {\r\n\t\t\t\"goring rush\" : {\r\n\t\t\t\tname : \"Goring Rush\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\r\n\t\t\t},\r\n\t\t\t\"hammering horns\" : {\r\n\t\t\t\tname : \"Hammering Horns\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\taction : [[\"bonus action\", \" (after hit)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}; // dupl_end\r\n// [dupl_start] Add Triton race from Volo's Guide to Monsters, if not already present\r\nif (!RaceList[\"triton\"]) {\r\n\tRaceList[\"triton\"] = {\r\n\t\tregExpSearch : /triton/i,\r\n\t\tname : \"Triton\",\r\n\t\tsource : [[\"MOT\", 26], [\"V\", 115]],\r\n\t\tplural : \"Triton\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 },\r\n\t\t\tswim : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Primordial\", \"Emissary of the Sea\"],\r\n\t\tdmgres : [\"Cold\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tage : \" reach maturity around age 15 and can live up to 200 years\",\r\n\t\theight : \" are around 5 feet tall (4'6\\\" + 2d10\\\")\",\r\n\t\tweight : \" weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" are around 1,6 metres tall (135 + 5d10 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [1, 0, 1, 0, 0, 1],\r\n\t\ttrait : \"Triton (+1 Strength, +1 Constitution, and +1 Charisma)\\nControl Air and Water: I can cast the Fog Cloud spell. Once I reach 3rd level, I can cast the Gust of Wind spell. Once I reach 5th level, I can cast the Wall of Water spell. All three spells can be used once per long rest. Charisma is my spellcasting ability for these spells.\\nEmissary of the Sea: I can communicate simple ideas to beasts that can breathe water.\\nGuardians of the Depths: Adapted to even the most extreme ocean depths, I have resistance to cold damage.\" + (typePF ? \"\\n\" : \" \") + \"Amphibious: I can breathe air and water.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tfeatures : {\r\n\t\t\t\"fog cloud\" : {\r\n\t\t\t\tname : \"Control Air and Water (level 1)\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Control Air and Water (1)\",\r\n\t\t\t\t\tspells : [\"fog cloud\"],\r\n\t\t\t\t\tselection : [\"fog cloud\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"gust of wind\" : {\r\n\t\t\t\tname : \"Control Air and Water (level 3)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Control Air and Water (3)\",\r\n\t\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"wall of water\" : {\r\n\t\t\t\tname : \"Control Air and Water (level 5)\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Control Air and Water (5)\",\r\n\t\t\t\t\tspells : [\"wall of water\"],\r\n\t\t\t\t\tselection : [\"wall of water\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}; // dupl_end\r\n// [dupl_start] Add Wall of Water spell, if not already present\r\nif (!SpellsList[\"wall of water\"]) {\r\n\tSpellsList[\"wall of water\"] = {\r\n\t\tname : \"Wall of Water\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 170], [\"E\", 23], [\"V\", 116], [\"MOT\", 27]],\r\n\t\tlevel : 3,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S,M\",\r\n\t\tcompMaterial : \"A drop of water\",\r\n\t\tduration : \"Conc, 10 min\",\r\n\t\tdescription : \"30\\xD71\\xD710ft (l\\xD7w\\xD7h) or 20-ft rad 20-ft high; dif. ter.; range wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\t\tdescriptionMetric : \"9\\xD70,3\\xD73m (l\\xD7w\\xD7h) or 6-m rad 6-m high; dif. ter.; ranged wea dis.; Fire dmg half; Cold dmg freezes\",\r\n\t\tdescriptionFull : \"You conjure up a wall of water on the ground at a point you can see within range. You can make the wall up to 30 feet long, 10 feet high, and 1 foot thick, or you can make a ringed wall up to 20 feet in diameter, 20 feet high, and 1 foot thick. The wall vanishes when the spell ends. The wall's space is difficult terrain.\" + \"\\n   \" + \"Any ranged weapon attack that enters the wall's space has disadvantage on the attack roll, and fire damage is halved if the fire effect passes through the wall to reach its target. Spells that deal cold damage that pass through the wall cause the area of the wall they pass through to freeze solid (at least a 5-foot square section is frozen). Each 5-foot-square frozen section has AC 5 and 15 hit points. Reducing a frozen section to 0 hit points destroys it. When a section is destroyed, the wall's water doesn't fill it.\"\r\n\t};\r\n}; // dupl_end\r\n\r\n// Subclasses (but add TCoE as main source, because it is more likely to be available at a table)\r\nAddSubClass(\"bard\", \"college of eloquence\", { // includes contributions by /u/Holynight6\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\r\n\tsubname : \"College of Eloquence\",\r\n\tsubnameShort: \"Eloquence\",\r\n\tsource : [[\"T\", 29], [\"MOT\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Silver Tongue\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make a Persuasion or Deception check, I can treat a roll of 9 or lower as a 10\")\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Unsettling Words\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I expend a Bardic Inspiration use & choose a target I can see in 60 ft\",\r\n\t\t\t\t\"It subtracts my inspiration die from the next save it makes before my next turn starts\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Unfailing Inspiration\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When a creature adds my Bardic Inspiration die to a roll but fails, they can keep the die\")\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Universal Speech\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can choose up to my Charisma modifier (min 1) creatures within 60 ft\",\r\n\t\t\t\t\"Those creatures magically understand any language I speak for an hour\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Infectious Inspiration\",\r\n\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature uses my inspiration die and succeeds, I can inspire another\",\r\n\t\t\t\t\"I give a creature within 60 ft that can hear me an inspiration die without expending any\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of glory\", { // includes contributions by BraabHimself\r\n\tregExpSearch : /^(((?=.*glory)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Glory\",\r\n\tsubnameShort: \"Glory\",\r\n\tsource : [[\"T\", 53], [\"MOT\", 29]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Peerless Athlete\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can get adv. on Str (Athletics) \\u0026 Dex (Acrobatics) checks for 10 min\",\r\n\t\t\t\t\"In that time, I also add +10 ft to jumps, and double what I can carry, push, drag, \\u0026 lift\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"guiding bolt\", \"heroism\", \"enhance ability\", \"magic weapon\", \"haste\", \"protection from energy\", \"compulsion\", \"freedom of movement\", \"commune\", \"flame strike\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Inspiring Smite\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action after dealing damage with Divine Smite, I can grant temporary HP\",\r\n\t\t\t\t\"I distribute the temporary HP how I choose across creatures within 30 ft, including me\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"2d8 + \" + n + \" temporary HP\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Alacrity\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, allies starting their turn in range gain bonus speed for that turn\"),\r\n\t\t\tspeed : { walk : { spd : \"+10\", enc : \"+10\" } },\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 7 ? \"\" : (n < 18 ? 5 : 10) + \"-foot aura; +10 ft walking speed\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Glorious Defense\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another in 10 ft is hit with an attack roll, I can grant bonus AC\",\r\n\t\t\t\t\"I must be able to see the attacker; I add my Cha mod (min 1) to the AC for that attack\",\r\n\t\t\t\t\"If it misses, I can do a weapon attack vs. the attacker, if in reach, as part of this reaction\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Living Legend\",\r\n\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can empower myself with legends, gaining the following for 1 min:\",\r\n\t\t\t\t\" \\u2022 My otherworldly presence grants me advantage on Charisma checks\",\r\n\t\t\t\t\" \\u2022 Once on each of my turns when I miss with a weapon attack, I can have it hit instead\",\r\n\t\t\t\t\" \\u2022 As a reaction when I fail a saving throw, I can reroll it, but must use the new roll\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 5+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Background\r\nBackgroundList[\"athlete\"] = { // includes contributions by Smashman\r\n\tregExpSearch : /athlete/i,\r\n\tname : \"Athlete\",\r\n\tsource : [[\"MOT\", 31]],\r\n\tskills : [\"Acrobatics\", \"Athletics\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [\"Vehicles (land)\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"A bronze discus or leather ball\", \"\", \"\"],\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"A lucky charm or past trophy\", \"\", \"\"],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Echoes of Victory\",\r\n\ttrait : [\r\n\t\t\"I feel most at peace during physical exertion, be it exercise or battle.\",\r\n\t\t\"I don't like to sit idle.\",\r\n\t\t\"I have a daily exercise routine that I refuse to break.\",\r\n\t\t\"Obstacles exist to be overcome.\",\r\n\t\t\"When I see others struggling, I offer to help.\",\r\n\t\t\"I love to trade banter and gibes.\",\r\n\t\t\"Anything worth doing is worth doing best.\",\r\n\t\t\"I get irritated if people praise someone else and not me.\",\r\n\t],\r\n\tideal : [\r\n\t\t[\"Competition\", \"Competition: I strive to test myself in all things. (Chaotic)\"],\r\n\t\t[\"Triumph\", \"Triumph: The best part of winning is seeing my rivals brought low. (Evil)\"],\r\n\t\t[\"Camaraderie\", \"Camaraderie: The strongest bonds are forged through struggle. (Good)\"],\r\n\t\t[\"People\", \"People: I strive to inspire my spectators. (Neutral)\"],\r\n\t\t[\"Tradition\", \"Tradition: Every game has rules, and the playing field must be level. (Lawful)\"],\r\n\t\t[\"Growth\", \"Growth: Lessons hide in victory and defeat. (Any)\"],\r\n\t],\r\n\tbond : [\r\n\t\t\"My teammates are my family.\",\r\n\t\t\"I will overcome a rival and prove myself their better.\",\r\n\t\t\"My mistake got someone hurt. I'll never make that mistake again.\",\r\n\t\t\"I will be the best for the honor and glory of my home.\",\r\n\t\t\"The person who trained me is the most important person in my world.\",\r\n\t\t\"I strive to live up to a specific hero's example.\",\r\n\t],\r\n\tflaw : [\r\n\t\t\"I indulge in a habit that threatens my reputation or my health.\",\r\n\t\t\"I'll do absolutely anything to win.\",\r\n\t\t\"I ignore anyone who doesn't compete and anyone who loses to me.\",\r\n\t\t\"I have lingering pain from old injuries.\",\r\n\t\t\"Any defeat or failure on my part is because my opponent cheated.\",\r\n\t\t\"I must be the captain of any group I join.\",\r\n\t]\r\n};\r\nBackgroundFeatureList[\"echoes of victory\"] = { // includes contributions by Smashman\r\n\tdescription : \"I have attracted admiration among spectators, fellow athletes, and trainers in the region that hosted my past athletic victories. When visiting any settlement within 100 miles of where I grew up, there is a 50 percent change that I can find someone there who admires me and is willing to provide information or temporary shelter.\",\r\n\tsource : [[\"MOT\", 31]]\r\n};\r\n\r\n// Creature: possible familiar\r\nCreatureList[\"anvilwrought raptor\"] = {\r\n\tname : \"Anvilwrought Raptor\",\r\n\tsource : [[\"MOT\", 209]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"familiar_not_al\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 18,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [12, 16, 14, 3, 14, 1],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tdamage_immunities : \"fire, poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Darkvision 120 ft; Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"understands one language of its creator but can't speak\",\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Beak\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two beak attacks as an Attack action\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The raptor has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}, {\r\n\t\tname : \"Recorded Mimicry\",\r\n\t\tdescription : \"The raptor can mimic any sound, including voices, it has heard in the last 24 hours. A creature that hears the sounds can tell they are imitations with a successful DC 12 Wisdom (Insight) check.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the raptor can make two Beak attacks.\"\r\n\t}],\r\n\tvariant : [{\r\n\t\tname : \"Variant: Familiar\",\r\n\t\tdescription : \"The anvilwrought can serve another creature as a familiar, forming a magical, telepathic bond with its willing master. While the two are bonded, the master can sense what the anvilwrought senses, as long as they are within 1 mile of each other.\"\r\n\t}]\r\n};\r\n\r\n// Magic Items (each contain contributions by BraabHimself)\r\nMagicItemsList[\"flying chariot\"] = {\r\n\tname : \"Flying Chariot\",\r\n\tsource : [[\"MOT\", 196]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"I gain +1 AC while riding this chariot, as do any passengers and the creatures pulling it. If this chariot is pulled by one or more flying creatures, they too can fly.\\n(The AC bonus is not added to the automation, as it is too situational.)\",\r\n\tdescriptionFull : \"The chariot's riders and creatures pulling the chariot gain a + 1 bonus to their AC.\"+\r\n\t\"\\n   If this magic chariot is pulled by one or more flying creatures, it too can fly.\",\r\n\tweight : 100\r\n};\r\nMagicItemsList[\"helm of the gods\"] = {\r\n\tname : \"Helm of the Gods\",\r\n\tsource : [[\"MOT\", 196]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"While wearing this helm, I know the location of all celestials and fiends within 30 ft, provided they aren't behind total cover. The helm has 3 charges, regaining 1d3 charges at dawn. I can use 1 charge to cast the spell stored in the helm (DC 13). After I finish a long rest, I can pray to a god to change the stored spell.\",\r\n\tdescriptionLong : \"While wearing this helm, I know the location of all celestials/fiends within 30 ft not behind total cover. The helm has 3 charges, regaining 1d3 at dawn. I can use 1 charge to cast the spell stored in it (DC 13). After a long rest, I can pray to a god to change the stored spell: Athreos: Protection from Evil/Good, Ephara: Sanctuary, Erebos: Inflict Wounds, Heliod: Guiding Bolt, Iroas: Heroism, Karametra: Goodberry, Keranos: Thunderous Smite, Klothys: Entangle, Kruphix: Dissonant Whispers, Mogis: Hellish Rebuke, Nylea: Faerie Fire, Pharika: Lesser Restoration, Phenax: Charm Person, Purphoros: Searing Smite, Thassa: Identify\",\r\n\tdescriptionFull : \"While wearing this helm, you know whether there is a celestial or fiend within 30 feet of you, as well as where the creature is located, provided the creature isn't behind total cover.\"+\r\n\t\"\\n   Whenever you finish a long rest while wearing the helm, you can pray to one of the gods listed on the Helm of the Gods table and store the listed spell in the helm, replacing any spell that is already stored there. The save DC for the spell is 13.\"+\r\n\t\"\\n   The helm has 3 charges. To cast a spell from the helm, you must expend 1 charge, and the helm regains 1d3 charges daily at dawn.\"+\r\n\ttoUni(\"\\n God\\t\\tSpell\")+\r\n\t\"\\n Athreos\\t\\tprotection from evil and good\"+\r\n\t\"\\n Ephara\\t\\tsanctuary\"+\r\n\t\"\\n Erebos\\t\\tinflict wounds\"+\r\n\t\"\\n Heliod\\t\\tguiding bolt\"+\r\n\t\"\\n Iroas\\t\\theroism\"+\r\n\t\"\\n Karametra\\tgoodberry\"+\r\n\t\"\\n Keranos\\t\\tthunderous smite\"+\r\n\t\"\\n Klothys\\t\\tentagle\"+\r\n\t\"\\n Kruphix\\t\\tdissonant whispers\"+\r\n\t\"\\n Mogis\\t\\thellish rebuke\"+\r\n\t\"\\n Nylea\\t\\tfaerie fire\"+\r\n\t\"\\n Pharika\\t\\tlesser restoration\"+\r\n\t\"\\n Phenax\\t\\tcharm person\"+\r\n\t\"\\n Purphoros\\tsearing smite\"+\r\n\t\"\\n Thassa\\t\\tidentify\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tfixedDC : 13,\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Athreos\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Ephara\",\r\n\t\tspells : [\"sanctuary\"],\r\n\t\tselection : [\"sanctuary\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Erebos\",\r\n\t\tspells : [\"inflict wounds\"],\r\n\t\tselection : [\"inflict wounds\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Heliod\",\r\n\t\tspells : [\"guiding bolt\"],\r\n\t\tselection : [\"guiding bolt\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Iroas\",\r\n\t\tspells : [\"heroism\"],\r\n\t\tselection : [\"heroism\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Karametra\",\r\n\t\tspells : [\"goodberry\"],\r\n\t\tselection : [\"goodberry\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Keranos\",\r\n\t\tspells : [\"thunderous smite\"],\r\n\t\tselection : [\"thunderous smite\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Klothys\",\r\n\t\tspells : [\"entangle\"],\r\n\t\tselection : [\"entangle\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Kruphix\",\r\n\t\tspells : [\"dissonant whispers\"],\r\n\t\tselection : [\"dissonant whispers\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Mogis\",\r\n\t\tspells : [\"hellish rebuke\"],\r\n\t\tselection : [\"hellish rebuke\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Nylea\",\r\n\t\tspells : [\"faerie fire\"],\r\n\t\tselection : [\"faerie fire\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Pharika\",\r\n\t\tspells : [\"lesser restoration\"],\r\n\t\tselection : [\"lesser restoration\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Phenax\",\r\n\t\tspells : [\"charm person\"],\r\n\t\tselection : [\"charm person\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Purphoros\",\r\n\t\tspells : [\"searing smite\"],\r\n\t\tselection : [\"searing smite\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"Thassa\",\r\n\t\tspells : [\"identify\"],\r\n\t\tselection : [\"identify\"],\r\n\t\tfirstCol : 1\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"protection from evil and good\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Athreos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"sanctuary\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Ephara after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"inflict wounds\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Erebos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"guiding bolt\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Heliod after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"heroism\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Iroas after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"goodberry\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Karametra after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"thunderous smite\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Keranos after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"entangle\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Klothys after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"dissonant whispers\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Kruphix after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"hellish rebuke\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Mogis after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"faerie fire\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Nylea after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"lesser restoration\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Pharika after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"charm person\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Phenax after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"searing smite\" : {\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Purphoros after a long rest and expend 1 charge.\"\r\n\t\t},\r\n\t\t\"identify\" : {\r\n\t\t\tritual : false,\r\n\t\t\tchanges : \"I can cast this spell if I prayed to Thassa after a long rest and expend 1 charge.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"molten bronze skin\"] = {\r\n\tname : \"Molten Bronze Skin\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"armor (breastplate, half plate, or plate)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. This armor can't be removed unless I choose to do so. It grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\tdescriptionFull : \"This magical armor appears as a jug of molten bronze. When you attune to it, the bronze adheres and contours to your skin. The armor can be worn under normal clothes, but it doesn't impede bodily functions. Once you put it on, it can't be removed unless you choose to do so.\"+\r\n\t\"\\n   While wearing the armor, you have resistance to fire damage. The armor also doesn't impose disadvantage on Dexterity (Stealth) checks.\",\r\n\tdmgres : [\"Fire\"],\r\n\tchoices : [\"Breastplate\", \"Half Plate\", \"Plate\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"breastplate\" : {\r\n\t\tdescription : \"This breastplate appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : 14,\r\n\t\t\tweight : 20,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"half plate\" : {\r\n\t\tdescription : \"This half plate armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"medium\",\r\n\t\t\tac : 15,\r\n\t\t\tweight : 40,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"plate\" : {\r\n\t\tdescription : \"This plate armor appears as a jug of molten bronze. When I attune to it, it adheres and contours to my skin. It can be worn under clothes and doesn't impede bodily functions. It can't be removed unless I choose to do so, grants me resistance to fire damage, and doesn't impose disadv. on Dex (Stealth) checks.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*molten)(?=.*bronze)(?=.*skin).*$/i,\r\n\t\t\tname : \"Molten Bronze Skin\",\r\n\t\t\tsource : [[\"MOT\", 197]],\r\n\t\t\ttype : \"heavy\",\r\n\t\t\tac : 18,\r\n\t\t\tweight : 65,\r\n\t\t\tstrReq : 15,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nMagicItemsList[\"potion of aqueous form\"] = {\r\n\tname : \"Potion of Aqueous Form\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"potion\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can drink this potion or administer it to another. The consumer of the potion turns into a pool of water and gains several benefits and limitations while in this form. They revert back to their true form after 10 minutes, if they become incapacitated, or if they die. See Notes page.\",\r\n\tdescriptionFull : \"When you drink this potion, you transform into a pool of water. You return to your true form after 10 minutes or if you are incapacitated or die.\"+\r\n\t\"\\n   You're under the following effects while in this form:\"+\r\n\t\"\\n\\n\" + toUni(\"Liquid Movement\") + \". You have a swimming speed of 30 feet. You can move over or through other liquids. You can enter and occupy the space of another creature. You can rise up to your normal height, and you can pass through even Tiny openings. You extinguish nonmagical flames in any space you enter.\"+\r\n\t\"\\n\\n\" + toUni(\"Watery Resilience\") + \". You have resistance to nonmagical damage. You also have advantage on Strength, Dexterity, and Constitution saving throws.\"+\r\n\t\"\\n\\n\" + toUni(\"Limitations\") + \". You can't talk, attack, cast spells, or activate magic items. Any objects you were carrying or wearing meld into your new form and are inaccessible, though you continue to be affected by anything you're wearing, such as armor.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tpopupName : \"Potion of Aqueous Form Effects\",\r\n\t\tnote : [\r\n\t\t\t\"The consumer of the potion is under the following effects:\",\r\n\t\t\t\"\\u2022 They have a swimming speed of 30 ft\",\r\n\t\t\t\"\\u2022 They can move over or through other liquids\",\r\n\t\t\t\"\\u2022 They can enter and occupy the space of another creature\",\r\n\t\t\t\"\\u2022 They can rise up to their normal height and pass through tiny openings\",\r\n\t\t\t\"\\u2022 They extinguish nonmagical flames in any space they enter\",\r\n\t\t\t\"\\u2022 They have resistance to nonmagical damage\",\r\n\t\t\t\"\\u2022 They have advantage on Strength, Dexterity, and Constitution saving throws\",\r\n\t\t\t\"\\u2022 They can't talk, attack, cast spells, or activate magic items\",\r\n\t\t\t\"\\u2022 Their equipment merges into their new form, but still gain their benefits\"\r\n\t\t]\r\n\t}],\r\n\tweight : 0.5\r\n};\r\nvar MOT_PyxisOfPandemoniumFullDescription = [\r\n\t\"A creature that touches this ornate wooden vessel for 1 minute gains the benefits of a short rest. That creature also gains the effects of the bless spell until the creature finishes a short or long rest. The creature can't gain these benefits again until it finishes a long rest.\",\r\n\t\"If the vessel is opened, roll on the Pyxis of Pandemonium table to determine what happens. Any spells cast by the vessel have a spell save DC of 17. One minute after the vessel is opened, it disappears. It reappears, sealed, in a random location on the same plane of existence 24 hours later.\",\r\n\t\">>Curse<<. Any creature that gains the benefit of a short rest from the vessel hears cloying telepathic whispers emanating it. That creature must make a DC 17 Wisdom saving throw. On a failed save, the creature is charmed by the vessel for 1 hour. The charmed creature does everything it can to open the vessel as soon as possible. On a successful save, the creature is immune to the vessel's whispers for 24 hours.\\n\",\r\n\ttoUni(\"d8\\tCalamity\"),\r\n\t\" 1\\t>>Androphagia<<. Each creature within 60 feet of the vessel must succeed on a DC 17 Wisdom saving throw or go berserk for l minute. The berserk creature must begin its turn using the Attack action to make one melee or ranged attack (its choice) against the creature nearest to it. The berserk creature can repeat the save at the end of its turn, ending the effect on itself on a success.\",\r\n\t\" 2\\t>>Bile Blight<<. The vessel casts the harm spell on each creature within 30 feet of it.\",\r\n\t\" 3\\t>>Flood<<. The vessel casts the tsunami spell at a point of the DM's choice within 120 feet of it.\",\r\n\t\" 4\\t>>Medusa's Gaze<<. The vessel casts the flesh to stone spell on each creature within 30 feet of it.\",\r\n\t\" 5\\t>>Labyrinth<<. The vessel casts the maze spell on each creature within 30 feet of it.\",\r\n\t\" 6\\t>>Nightmare<<. Tendrils of shadow seep from the vessel and form into 1d4 shadow demons (see the Monster Manual for their stat block), which appear in unoccupied spaces within 30 feet of it and are hostile.\",\r\n\t\" 7\\t>>Swarming Insects<<. The vessel casts the insect plague spell, centered on itself and with a radius of 30 feet.\",\r\n\t\" 8\\t>>Unbridled Revel<<. The vessel casts the Otto's irresistible dance spell on each creature within 30 feet of it.\"\r\n];\r\nMagicItemsList[\"pyxis of pandemonium\"] = {\r\n\tname : \"Pyxis of Pandemonium\",\r\n\tsource : [[\"MOT\", 197]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once per long rest, I gain the benefits of a short rest by touching this ornate vessel for 1 minute. I also gain the benefit of Bless until I finish my next rest. After benefiting from this vessel, I have to make a DC 17 Wis save or become charmed by the vessel for 1 hour. If charmed, I must do everything to open it. See Notes.\",\r\n\tdescriptionLong : \"Once per long rest, I can touch this ornate wooden vessel for 1 minute to gain the benefits of a short rest. I then also gain the benefit of the Bless spell until I finish my next rest. After I gain the benefits of a short rest from this vessel, I must make a DC 17 Wisdom save or become charmed by it for 1 hour. On a success, I am immune to its charm for 24 hours. If charmed, I will do everything I can to open the vessel as soon as possible. Once opened, the vessel causes a random effect to occur, then it disappears after 1 minute and reappears, sealed, in random location on the same plane. See Notes.\",\r\n\tdescriptionFull : MOT_PyxisOfPandemoniumFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Effects\",\r\n\t\tsource : [[\"MOT\", 197]],\r\n\t\tnote : desc(MOT_PyxisOfPandemoniumFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n};\r\nMagicItemsList[\"siren song lyre\"] = {\r\n\tname : \"Siren Song Lyre\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can play this lyre and cast one of the following spells from it: Animal Friendship, Charm Person, Enthrall, or Suggestion. The DC for these spells is 13. Once I cast a spell, I can't use the lyre to cast that spell again until the next dawn.\",\r\n\tdescriptionFull : \"You can use an action to play this lyre and cast one of the following spells from it: animal friendship, charm person, enthrall, suggestion. If the spell requires a saving throw, the spell save DC is 13.\\n   Once the instrument has been used to cast a spell, it can't be used to cast that spell again until the next dawn.\",\r\n\tweight : 2,\r\n\tfixedDC : 13,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Siren's Song Lyre [Animal Friendship]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Charm Person]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Enthrall]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Siren's Song Lyre [Suggestion]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"animal friendship\", \"charm person\", \"enthrall\", \"suggestion\"],\r\n\t\tselection : [\"animal friendship\", \"charm person\", \"enthrall\", \"suggestion\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 4\r\n\t}]\r\n};\r\nvar MOT_SlingBulletsOfAlthemoneFullDescription = [\r\n\t\"The sling bullets come in a pouch, which contains 1d4 + 4 bullets. Roll on the Magic Sling Bullets table for each bullet to determine its magical property.\",\r\n\t\"You have a +2 bonus to attack and damage rolls made with each of these bullets. If a bullet misses its target, the bullet teleports back into the pouch. Once a bullet hits a target, the bullet loses its magic.\\n\",\r\n\t\">>d4  Bullet<<\",\r\n\t\"1   >>Banishment<<. A creature that takes damage from this bullet must succeed on a DC 15 Charisma saving throw or be banished as though affected by the banishment spell.\",\r\n\t\"2   >>Fulguration<<. On a hit, this bullet deals an extra 2d8 lightning damage to its target. All other creatures within 10 feet of the target must each succeed on a DC 15 Constitution saving throw or take 1d8 thunder damage.\",\r\n\t\"3   >>Stunning<<. On a hit, this bullet deals an extra ldlO force damage, and the target is stunned until the end of your next turn.\",\r\n\t\"4   >>Tracking<<. A creature that takes damage from this bullet is marked with a glowing rune where the bullet hit. The mark lasts 24 hours. While the creature is marked, you always know the direction to it.\",\r\n];\r\nMagicItemsList[\"sling bullets of althemone\"] = {\r\n\tname : \"Sling Bullets of Althemone\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"weapon (sling bullet)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"These bullets come in a pouch containing 1d4 + 4 bullets. Attacks made with these sling bullets add +2 to hit and damage. If a bullet misses, it teleports back to its pouch. On a hit, the bullet's effect happens and the bullet loses its magic. I roll on the table to determine each bullet's magical effect, see Notes.\",\r\n\tdescriptionFull : MOT_SlingBulletsOfAlthemoneFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"sling\" && (/althemone/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Bullets return on a miss, special effect on hit';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Althemone\" in the name of a sling, it will be treated as using the Sling Bullets of Althemone. It has +2 to hit and damage, bullets return on a miss, and cause a magical effect on a hit.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName == \"sling\" && (/althemone/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Magic Sling Bullets Table\",\r\n\t\tsource : [[\"MOT\", 198]],\r\n\t\tnote : desc(MOT_SlingBulletsOfAlthemoneFullDescription.slice(2)).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/\\byou\\b/ig, \"I\").replace(/your/g, \"my\")\r\n\t}],\r\n\tweight : 1.5 // assuming an averyage of 6,5 bullets (0.4875) and a pouch (1)\r\n};\r\nMagicItemsList[\"two-birds sling\"] = {\r\n\tname : \"Two-Birds Sling\",\r\n\tsource : [[\"MOT\", 198]],\r\n\ttype : \"weapon (sling)\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This sling adds +1 to hit and damage rolls made with it. On a hit, I can cause the ammunition to ricochet towards a second target within 10 ft of the first, rolling a ranged attack against the second target as well.\",\r\n\tdescriptionFull : \"You have a +l bonus to attack and damage rolls made with this weapon.\"+\r\n\t\"\\n   When you make a ranged attack with this sling and hit a target, you can cause the ammunition to ricochet toward a second target within 10 feet of the first, and then make a ranged attack against the second target.\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"sling\",\r\n\t\tregExpSearch : /^(?=.*two-birds)(?=.*sling).*$/i,\r\n\t\tname : \"Two-Birds Sling\",\r\n\t\tsource : [[\"MOT\", 198]],\r\n\t\tdescription : \"Ammunition; On hit ricochet to another in 10 ft\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20200915_RotF.js",
    "content": "var iFileName = \"pub_20200915_RotF.js\";\nRequiredSheetVersion(\"14.0.5-beta\");\n// This file adds the content from the Icewind Dale: Rime of the Frostmaiden adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"RotF\"] = {\n\tname : \"Icewind Dale: Rime of the Frostmaiden [creatures, items, spells]\",\n\tabbreviation : \"RotF\",\n\tabbreviationSpellsheet : \"RF\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dnd.wizards.com/products/icewind-dale-rime-frostmaiden\",\n\tdate : \"2020/09/15\"\n};\n\n// Winter Survival Gear (contains contributions by Nod_Hero on Discord)\nGearList[\"cold weather\"] = {\n\tinfoname : \"Cold Weather [10 gp]\",\n\tname : \"Cold weather clothes\",\n\tsource : [[\"RotF\", 20]],\n\tamount : \"\",\n\tweight : 5,\n\ttype : \"clothes\"\n};\nGearList[\"crampons (2)\"] = {\n\tinfoname : \"Crampons (2) [2 gp]\",\n\tname : \"Crampons\",\n\tsource : [[\"RotF\", 20]],\n\tamount : 2,\n\tweight : 0.125\n};    \nGearList[\"snowshoes\"] = {\n\tinfoname : \"Snowshoes [2 gp]\",\n\tname : \"Snowshoes\",\n\tsource : [[\"RotF\", 20]],\n\tamount : \"\",\n\tweight : 4\n};\n\n// Creatures - new beasts (each contain contributions by BraabHimself)\n// Reindeer is just an elk under a different name and a moose uses the giant goat stat block. They have been added to the SRD code as a `nameAlt`\nCreatureList[\"awakened white moose\"] = {\n\tname : \"Awakened White Moose\",\n\tnameAlt : [\"Moose, Awakened White\"],\n\tsource : [[\"RotF\", 82]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Neutral Evil\",\n\tac : 11,\n\thp : 68,\n\thd : [8, 10],\n\tspeed : \"40 ft\",\n\tscores : [19, 11, 16, 10, 12, 6],\n\tpassivePerception : 11,\n\tlanguages : \"Druidic\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Antlers\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\n\t}, {\n\t\tname : \"Hooves\",\n\t\tability : 1,\n\t\tdamage : [2, 4, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One antlers and one hooves attack as an Attack action\"\n\t}],\n\ttraits : [{\n\t\tname : \"Charge\",\n\t\tdescription : \"If the moose moves at least 20 ft straight toward a target and then hits it with an antlers attack on the same turn, the target takes an extra 9 (2d8) bludgeoning damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be knocked prone.\"\n\t}, {\n\t\tname : \"Sure-Footed\",\n\t\tdescription : \"The moose has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the moose can make one Antlers and one Hooves attack.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Multiattack##. 1 Antlers and 1 Hooves attack.\",\n\t\t\"##Charge##. After moving 20 ft straight toward a target and then hitting it with an antlers attack on the same turn, the target takes an extra 2d8 bludgeoning damage and must make a DC 14 Str save or be knocked prone.\",\n\t\t\"##Sure-Footed##. Advantage on Str and Dex saves against effects that would knock it prone.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"fox\"] = {\n\tname : \"Fox\",\n\tcompanion : \"familiar_not_al\",\n\tsource : [[\"RotF\", 288]],\n\tsize : 5,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 2,\n\thd : [1, 4],\n\tspeed : \"30 ft, burrow 5 ft\",\n\tscores : [2, 16, 11, 3, 12, 6],\n\tskills : {\n\t\t\"perception\" : 3,\n\t\t\"stealth\" : 5\n\t},\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using hearing\",\n\tpassivePerception : 13,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 2,\n\t\tdamage : [1, \"\", \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false\n\t}],\n\ttraits : [{\n\t\tname : \"Keen Hearing\",\n\t\tdescription : \"The fox has advantage on Wisdom (Perception) checks that rely on hearing.\"\n\t}]\n};\nCreatureList[\"hare\"] = {\n\tname : \"Hare\",\n\tsource : [[\"RotF\", 294]],\n\tcompanion : \"familiar_not_al\",\n\tsize : 5,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 1,\n\thd : [1, 4],\n\tspeed : \"20 ft, burrow 5 ft\",\n\tscores : [1, 17, 9, 2, 11, 4],\n\tskills : {\n\t\t\"perception\" : 2,\n\t\t\"stealth\" : 5\n\t},\n\tpassivePerception : 12,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 0,\n\tattacks : [],\n\ttraits : [{\n\t\tname : \"Escape\",\n\t\tdescription : \"The hare can take the Dash, Disengage, or Hide action as a bonus action on each of its turns.\"\n\t}]\n};\nCreatureList[\"knucklehead trout\"] = {\n\tname : \"Knucklehead Trout\",\n\tsource : [[\"RotF\", 295]],\n\tsize : 4,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 7,\n\thd : [2, 6],\n\tspeed : \"0 ft, swim 30 ft\",\n\tscores : [14, 14, 11, 1, 6, 1],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 8,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}, {\n\t\tname : \"Tail\",\n\t\tability : 1,\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Water Breathing\",\n\t\tdescription : \"The trout can breathe only underwater.\"\n\t}]\n};\nCreatureList[\"mountain goat\"] = {\n\tname : \"Mountain Goat\",\n\tnameAlt : [\"Goat, Mountain\"],\n\tsource : [[\"RotF\", 304]],\n\tsize : 3,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 11,\n\thp : 13,\n\thd : [2, 8],\n\tspeed : \"40 ft, climb 30 ft\",\n\tscores : [14, 12, 14, 2, 10, 5],\n\tpassivePerception : 10,\n\tchallengeRating : \"1/8\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Ram\",\n\t\tability : 1,\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\n\t}],\n\ttraits : [{\n\t\tname : \"Charge\",\n\t\tdescription : \"If the goat moves at least 20 ft straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 3 (1d6) bludgeoning damage. If the target is a creature, it must succeed on a DC 12 Strength saving throw or be knocked prone.\"\n\t}, {\n\t\tname : \"Sure-Footed\",\n\t\tdescription : \"The goat has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Charge##. After moving 20 ft straight toward a target and then hitting it with a ram attack on the same turn, the target takes an extra 1d6 bludgeoning damage and must make a DC 12 Strength save or be knocked prone.\",\n\t\t\"##Sure-Footed##. Advantage on Strength and Dexterity saves against effects that would knock it prone.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"seal\"] = {\n\tname : \"Seal\",\n\tsource : [[\"RotF\", 308]],\n\tsize : 3,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 11,\n\thp : 9,\n\thd : [2, 8],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [10, 12, 11, 3, 12, 5],\n\tsenses : \"Darkvision 60 ft; Adv. on Wis (Perception) checks using smell\",\n\tpassivePerception : 11,\n\tchallengeRating : \"0\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [1, \"\", \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The seal can hold its breath for 15 minutes.\"\n\t}, {\n\t\tname : \"Keen Smell\",\n\t\tdescription : \"The seal has advantage on Wisdom (Perception) checks that rely on smell.\"\n\t}]\n};\nCreatureList[\"sperm whale\"] = {\n\tname : \"Sperm Whale\",\n\tnameAlt : [\"Whale, Sperm\"],\n\tsource : [[\"RotF\", 309]],\n\tsize : 0,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 13,\n\thp : 189,\n\thd : [14, 20],\n\tspeed : \"0 ft, swim 60 ft\",\n\tscores : [26, 8, 17, 3, 12, 5],\n\tsenses : \"Blindsight 120 ft; Adv. on Wis (Perception) checks using hearing\",\n\tpassivePerception : 11,\n\tchallengeRating : \"8\",\n\tproficiencyBonus : 3,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Bite\",\n\t\tability : 1,\n\t\tdamage : [3, 8, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; See Swallow feature\",\n\t\ttooltip : \"If the target is a Large or smaller creature, it must succeed on a DC 14 Dexterity saving throw or be swallowed by the whale. A swallowed creature has total cover against attacks and other effects outside the whale, and it takes 3 (1d6) acid damage at the start of each of the whale's turns. If the whale takes 30 damage or more on a single turn from a creature inside it, the whale must succeed on a DC 16 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the whale. If the whale dies, a swallowed creature can escape from the corpse by using 20 feet of movement, exiting prone.\"\n\t}, {\n\t\tname : \"Tail\",\n\t\tability : 1,\n\t\tdamage : [3, 6, \"bludgeoning\"],\n\t\trange : \"Melee (15 ft)\",\n\t\tdescription : \"1 bite \\u0026 1 tail attack as Attack action; Double damage vs. objects\",\n\t\ttooltip : \"If the target is an object, the tail attack deal 6d6 + twice the Strength modifier bludgeoning damage.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Swallow\",\n\t\tdescription : \"A Large or smaller creature hit by the whale's bite attack must make a DC 14 Dexterity saving throw or be swallowed whole. A swallowed creature has total cover against attacks and other effects outside the whale, and it takes 3 (1d6) acid damage at the start of each of the whale's turns. If the whale takes 30 damage or more on a single turn from a creature inside it, the whale must succeed on a DC 16 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 ft of the whale. If the whale dies, a swallowed creature can escape from the corpse by using 20 ft of movement, exiting prone.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Echolocation\",\n\t\tdescription : \"The whale can't use its blindsight while deafened.\"\n\t}, {\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The whale can hold its breath for 90 minutes.\"\n\t}, {\n\t\tname : \"Keen Hearing\",\n\t\tdescription : \"The whale has advantage on Wisdom (Perception) checks that rely on hearing.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the whale can make one Bite and one Tail attack.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Senses##. Blindsight 120 ft (unless deafened); Adv. on Wis (Perception) checks using hearing.\",\n\t\t\"##Hold Breath##. Can hold its breath for 90 minutes.\",\n\t\t\"##Swallow##. Large or smaller hit with bite DC 14 Dex save or swallowed. Swallowed: total cover from outside whale, 1d6 acid damage at start of each turn. If whale takes 30 or more damage in a turn from inside, it DC 16 Con save or spit out creature prone in 10 ft at end of turn.\",\n\t].join(\"\\n\"),\n};\nCreatureList[\"walrus\"] = {\n\tname : \"Walrus\",\n\tsource : [[\"RotF\", 312]],\n\tsize : 2,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 9,\n\thp : 22,\n\thd : [3, 10],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [15, 9, 14, 3, 11, 4],\n\tpassivePerception : 10,\n\tchallengeRating : \"1/4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Tusks\",\n\t\tability : 1,\n\t\tdamage : [2, 4, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"\"\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The walrus can hold its breath for 10 minutes.\"\n\t}]\n};\nCreatureList[\"giant walrus\"] = {\n\tname : \"Giant Walrus\",\n\tnameAlt : [\"Walrus, Giant\"],\n\tsource : [[\"RotF\", 312]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 9,\n\thp : 85,\n\thd : [9, 12],\n\tspeed : \"20 ft, swim 40 ft\",\n\tscores : [22, 9, 16, 3, 11, 4],\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 10,\n\tchallengeRating : \"4\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Body Flop\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"bludgeoning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One body flop and one tusks attack as an Attack action\"\n\t}, {\n\t\tname : \"Tusks\",\n\t\tability : 1,\n\t\tdamage : [3, 6, \"piercing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"One body flop and one tusks attack as an Attack action\"\n\t}],\n\ttraits : [{\n\t\tname : \"Hold Breath\",\n\t\tdescription : \"The walrus can hold its breath for 30 minutes.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the walrus can make one Body Flop and one Tusks attack.\"\n\t}]\n};\n\n// Creatures - for the Create Magos spell (each contain contributions by BraabHimself)\nCreatureList[\"demos magen\"] = {\n\tname : \"Demos Magen\",\n\tnameAlt : [\"Magen, Demos\"],\n\tsource : [[\"RotF\", 300]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 16,\n\thp : 51,\n\thd : [6, 8],\n\tspeed : \"30 ft\",\n\tscores : [14, 14, 18, 10, 10, 7],\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"understands the languages of its creator but can't speak\",\n\tchallengeRating : \"2\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Greatsword\",\n\t\tability : 1,\n\t\tdamage : [2, 6, \"slashing\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Two greatsword attacks as an Attack action\"\n\t}, {\n\t\tname : \"Light Crossbow\",\n\t\tability : 2,\n\t\tdamage : [1, 8, \"piercing\"],\n\t\trange : \"80/320 ft\",\n\t\tdescription : \"\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the magen can make two melee attacks.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}]\n};\nCreatureList[\"galvan magen\"] = {\n\tname : \"Galvan Magen\",\n\tnameAlt : [\"Magen, Galvan\"],\n\tsource : [[\"RotF\", 301]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 14,\n\thp : 68,\n\thd : [8, 8],\n\tspeed : \"30 ft, fly 30 ft (hover)\",\n\tscores : [10, 18, 18, 12, 10, 7],\n\tdamage_immunities : \"lightning, poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"understands the languages of its creator but can't speak\",\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 2,\n\tattacks : [{\n\t\tname : \"Shocking Touch\",\n\t\tability : 2,\n\t\tdamage : [1, 6, \"lightning\"],\n\t\trange : \"Melee (5 ft)\",\n\t\tdescription : \"Two shocking touch attacks as an Attack action; Adv. if target wears metal armor\"\n\t}, {\n\t\tname : \"Static Discharge (Recharge 5-6)\",\n\t\tability : 3,\n\t\tdamage : [4, 10, \"lightning\"],\n\t\trange : \"5-ft \\xD7 30-ft line\",\n\t\tdescription : \"Hits all in area; Dex save, success\\u2015 half damage; Disadv. if wearing metal armor\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\ttooltip : \"The magen discharges a lightning bolt in a 60-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw (with disadvantage if the creature is wearing armor made of metal), taking 22 (4d10) lightning damage on a failed save, or half as much damage on a successful one.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}],\n\tactions : [{\n\t\tname : \"Multiattack\",\n\t\tdescription : \"As an action on its turn, the magen can make two Shocking Touch attacks.\"\n\t}, {\n\t\tname : \"Static Discharge (Recharge 5-6)\",\n\t\tdescription : \"See Attack. The magen discharges a lightning bolt in a 60-ft line that is 5 ft wide. Each creature in that line must make a DC 14 Dexterity saving throw (with disadvantage if the creature is wearing armor made of metal), taking 4d12 lightning damage on a failed save, or half as much damage on a successful one.\"\n\t}]\n};\nCreatureList[\"hypnos magen\"] = {\n\tname : \"Hypnos Magen\",\n\tnameAlt : [\"Magen, Hypnos\"],\n\tsource : [[\"RotF\", 301]],\n\tsize : 3,\n\ttype : \"Construct\",\n\talignment : \"Unaligned\",\n\tac : 12,\n\thp : 34,\n\thd : [4, 8],\n\tspeed : \"30 ft\",\n\tscores : [10, 14, 18, 14, 10, 7],\n\tdamage_immunities : \"poison\",\n\tcondition_immunities : \"charmed, exhaustion, frightened, paralyzed, poisoned\",\n\tpassivePerception : 10,\n\tlanguages : \"telepathy 30 ft, understands the languages of its creator but can't speak\",\n\tchallengeRating : \"1\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Psychic Lash\",\n\t\tability : 4,\n\t\tdamage : [2, 10, \"psychic\"],\n\t\trange : \"60 ft\",\n\t\tdescription : \"One creature in sight; Wis save: success\\u2015 no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\ttraits : [{\n\t\tname : \"Fiery End\",\n\t\tdescription : \"If the magen dies, its body disintegrates in a harmless burst of fire and smoke, leaving behind anything it was wearing or carrying.\"\n\t}, {\n\t\tname : \"Magic Resistance\",\n\t\tdescription : \"The magen has advantage on saving throws against spells and other magical effects.\"\n\t}, {\n\t\tname : \"Unusual Nature\",\n\t\tdescription : \"The magen doesn't require air, food, drink, or sleep.\"\n\t}],\n\tfeatures : [{\n\t\tname : \"Magical Servants\",\n\t\tdescription : \"Magen make ideal servants. At creation, each is instilled with an instinct to protect itself and its creator, and it follows its creator's instructions without hesitation. When its taks is complete, a magen stands immobile and silent until its creator gives it new orders.\"\n\t}],\n\tactions : [{\n\t\tname : \"Suggestion\",\n\t\tdescription : \"The magen casts the Suggestion spell (save DC 12), requiring no material components. The target must be a creature that the magen can communicate with telepathically. If it succeeds on its saving throw, the target is immune to this magen's suggestion spell for the next 24 hours. The magen's spellcasting ability is Intelligence.\"\n\t}]\n};\n\n// Magic Items\nMagicItemsList[\"orc stone\"] = { // from Appendix B: Character Secrets\n\tname : \"Orc Stone\",\n\tsource : [[\"RotF\", 264]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by its recipient\",\n\tdescription : \"This stone was given to me by an orc whose life I saved. As an action, I can use it to summon an orc warrior spirit within 30 ft. The spirit disappears after 10 minutes or when reduced to 0 HP, understands any language I speak, and obeys my commands. After the stone is used three times, it turns to dust.\",\n\tdescriptionFull : \"I saved the life of an orc, who gave me a stone with the symbol of the Many-Arrows tribe (a humanoid skull pierced by three arrows) carved into it. The stone is an uncommon magic item that requires attunement, and only I can attune to it.\"+\n\t\"\\n   As an action, I can use the stone to summon the spirit of an orc warrior, which appears within 30 feet of me. The spirit uses the orc war chief stat block in the Monster Manual and disappears after 10 minutes or when reduced to 0 hit points. The spirit understands any language I speak and obeys my commands.\"+\n\t\"\\n   After the stone is used three times, it turns to dust.\",\n\tusages : 3,\n\trecovery : \"Never\",\n\tcreaturesAdd : [[\"Orc Stone Spirit\", true]],\n\tcreatureOptions : [{\n\t\tname : \"Orc Stone Spirit\",\n\t\tsource : [[\"MM\", 246], [\"RotF\", 264]],\n\t\tsize : 3,\n\t\ttype : \"Humanoid\",\n\t\talignment : \"Chaotic Evil\",\n\t\tac : 16,\n\t\thp : 93,\n\t\thd : [11, 8],\n\t\tspeed : \"30 ft\",\n\t\tscores : [18, 12, 18, 11, 11, 16],\n\t\tskills : {\n\t\t\t\"intimidation\" : 5,\n\t\t},\n\t\tlanguages: \"Understands any language its summoner speaks\",\n\t\tsenses : \"Darkvision 60 ft\",\n\t\tpassivePerception : 10,\n\t\tchallengeRating : \"4\",\n\t\tproficiencyBonus : 2,\n\t\tattacksAction : 2,\n\t\tattacks : [{\n\t\t\tname : \"Greataxe\",\n\t\t\tability : 1,\n\t\t\tdamage : ['1d12+1', 8, \"slashing\"],\n\t\t\trange : \"Melee\",\n\t\t\tdescription : \"Heavy, two-handed; Two attacks as an action\",\n\t\t}, {\n\t\t\tname : \"Spear\",\n\t\t\tability : 1,\n\t\t\tdamage : ['1d6+1', 8, \"piercing\"],\n\t\t\trange : \"Melee, 20/60 ft\",\n\t\t\tdescription : \"Thrown, versatile (1d8); Two attacks as an action\",\n\t\t}],\n\t\tfeatures : [{\n\t\t\tname : \"Gruumsh's Fury\",\n\t\t\tdescription : \"The orc deals an extra 1d8 damage when it hits with a weapon attack (included in the attacks).\"\n\t\t}, {\n\t\t\tname : \"Orc Stone\",\n\t\t\tdescription : \"Summoned by an Orc Stone, the orc spirit appears within 30 ft and disappears after 10 minutes or when reduced to 0 hit points. It obeys the command of its summoner.\"\n\t\t}],\n\t\tactions : [{\n\t\t\tname : \"Multiattack\",\n\t\t\tdescription : \"As an action on its turn, the orc can make two attacks.\"\n\t\t}, {\n\t\t\tname : \"Aggressive\",\n\t\t\tdescription : \"As a bonus action, the orc can move up to its speed toward a hostile creature that it can see.\"\n\t\t}, {\n\t\t\tname : \"Battle Cry (1/Day)\",\n\t\t\tdescription : \"As an action, the orc can utter a Battle Cry. Each creature of the orc's choice that is within 30 ft of it, can hear it, and not already affected by Battle Cry gain advantage on attack rolls until the start of the orc's next turn. The orc can then make one attack as a bonus action.\"\n\t\t}],\n\t\theader : \"Summoned\",\n\t}],\n};\nMagicItemsList[\"abracadabrus\"] = { // contains contributions by BraabHimself\n\tname : \"Abracadabrus\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This gemstone-studded wooden chest with a volume of 1.5 cu ft has 20 charges, regaining 1d20 charges at dawn. I roll a d20 if I use its last charge. On a 1, it loses its magic and gems. As an action, I can touch it and expend 1 charge to have up to 1 gp of nonmagical objects form inside, provided they fit and it's empty.\",\n\tdescriptionLong : \"This ornate, gemstone-studded wooden chest has a volume of 1.5 cu ft and weighs 25 lb. It has 20 charges and regains 1d20 expended charges daily at dawn. I roll a d20 if I use its last charge. On a 1, it loses its magic and gems. As an action, I can touch it and expend 1 charge to have up to 1 gp of nonmagical objects form inside (including raw materials, foodstuffs, and liquids), provided they fit inside and the chest is empty. Food and drink produced by the chest is delicious and spoils if not consumed after 24 hours. Gems and precious metals produced by the chest disappear after 1 minute.\",\n\tdescriptionFull : \"An abracadabrus is an ornate, gemstone-studded wooden chest that weighs 25 pounds while empty. Its interior compartment is a cube measuring 1\\u00BD feet on a side.\"+\n\t\"\\n   The chest has 20 charges. A creature can use an action to touch the closed lid of the chest and expend 1 of the chest's charges while naming one or more nonmagical objects (including raw materials, foodstuffs, and liquids) worth a total of 1 gp or less. The named objects magically appear in the chest, provided they can all fit inside it and the chest doesn't contain anything else. For example, the chest can conjure a plate of strawberries, a bowl of hot soup, a flagon of water, a stuffed animal, or a bag of twenty caltrops. Food and drink conjured by the chest are delicious, and they spoil if not consumed after 24 hours. Gems and precious metals created by the chest disappear after 1 minute.\"+\n\t\"\\n   The chest regains 1d20 expended charges daily at dawn. If the item's last charge is expended, roll a d20. On a 1, the chest loses its magic (becoming an ordinary chest), and its gemstones turn to dust.\",\n\tweight : 25,\n\tusages : 20,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d20\",\n\taction : [[\"action\", \"\"]]\n};\nMagicItemsList[\"cauldron of plenty\"] = { // contains contributions by BraabHimself\n\tname : \"Cauldron of Plenty\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This copper cauldron is 4 ft wide, 3.5 ft in diameter, and holds 30 gal. It has a lid, handles, and 5 clawed feet. Water stirred in it for 1 min becomes hot stew for 4 people per 1 gal. Stew stays hot in the cauldron, cools if removed, but cauldron's surface remains cool. Can be used 3 times per day, regaining all uses at dawn.\",\n\tdescriptionLong : \"This thick copper cauldron has turned green with age. It is 4ft wide, has a 3.5 ft diameter mouth, and holds 30 gallons. It has a lid, handles, and 5 clawed feet. If water is poured into the cauldron and stirred for 1 minute, it transforms into a hearty, hot stew, which can provide one nourishing meal for up to four people per 1 gallon. The stew remains hot while in the cauldron, then cools naturally after it is removed. The outside of the cauldron remains safe to touch despite the heat of the stew. The cauldron can create stew three times. It then ceases to function until the next dawn, when it regains all its uses.\",\n\tdescriptionFull : \"This cauldron is made of thick copper that has turned green with age. It is 4 feet wide, has a mouth 3\\u00BD feet in diameter, weighs 50 pounds, and can hold up to 30 gallons of liquid. Embossed on its bulging sides are images of satyrs and nymphs in repose, holding ladles. The cauldron comes with a lid and has side handles. It sits on five little clawed feet that keep it from tipping.\"+\n\t\"\\n   If water is poured into the cauldron and stirred for 1 minute, it transforms into a hearty, hot stew, which can provide one nourishing meal for up to four people per gallon. The stew remains hot while in the cauldron, then cools naturally after it is removed. The outside of the cauldron remains safe to touch despite the heat of the stew.\"+\n\t\"\\n   The cauldron can create stew three times. It then ceases to function until the next dawn, when it regains all its uses.\",\n\tweight : 50,\n\tusages : 3,\n\trecovery : \"dawn\"\n};\nvar IDRotF_HookOfFishersDelightFullDescription = [\n\t\"This tiny silver fishhook has a little gold feather attached to it. For it to function, the feathered hook must be tied to the end of a fishing line and immersed in enough water to fill at least a 10-foot cube. At the end of each uninterrupted hour of immersion, roll a d6. On a 6, a floppy, 6-inch-long magical fish appears on the end of the hook. The color and properties of the conjured fish are determined by rolling on the table below. Once the hook conjures a fish, it can't do so again until the next dawn.\\n\",\n\t\">>d20\\tFish color and result<<\",\n\t\"1-10\\t>>Green with copper bands<<. This tasty fish provides a day's worth of nourishment to one creature that eats it. The fish loses this property and rots if it's not eaten within 24 hours of being caught.\",\n\t\"11-14\\t>>Yellow with black stripes<<. Once removed from the hook, this awful-tasting fish can be thrown up to 120 feet, targeting a creature the thrower can see. The target must succeed on a DC 15 Strength saving throw or be knocked prone. The fish then disappears.\",\n\t\"15-18\\t>>Blue with white bands<<. When released from the hook, this fish squirms free, sprouts wings, follows you around, and sings a beautiful tune in Aquan. It disappears after 2d4 hours or when reduced to 0 hit points. The fish uses the quipper stat block, except that it can breathe air and has a flying speed of 30 feet.\",\n\t\"19-20\\t>>Gold with silver stripes<<. This tasty fish provides a day's worth of nourishment to one creature that eats it and grants 2d10 temporary hit points to that creature. The fish loses these properties and rots if it's not eaten within 24 hours of being caught.\"\n];\nMagicItemsList[\"hook of fisher's delight\"] = { // contains contributions by BraabHimself\n\tname : \"Hook of Fisher's Delight\",\n\tsource : [[\"RotF\", 314]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"For this tiny silver fishhook to work, I must attach it to the end of a fishing line and immerse it in at least 10 cu ft of water. Then, at the end of each uninterrupted hour of immersion, I roll a d6. On a 6, a magical fish appears on the hook; roll a d20 to determine the fish's properties on the table on the Notes page.\",\n\tdescriptionFull : IDRotF_HookOfFishersDelightFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Fish Properties Table\",\n\t\tnote : desc(IDRotF_HookOfFishersDelightFullDescription).replace(/>>|<</g, \"\").replace(/\\byou\\b/ig, \"I\").replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"lantern of tracking\"] = function () { // contains contributions by BraabHimself\n\tvar oObj = {\n\t\tname : \"Lantern of Tracking\",\n\t\tsource : [[\"RotF\", 314]],\n\t\ttype : \"wondrous item\",\n\t\trarity : \"common\",\n\t\tdescriptionFull : [\n\t\t\t\"This hooded lantern burns for 6 hours on 1 pint of oil, shedding bright light in a 30-foot radius and dim light for an additional 30 feet.\"+\n\t\t\t\"\\n   Each lantern of tracking is designed to track down a certain type of creature, which is determined by rolling on the Lantern of Tracking table. Once determined, this creature type can't be changed. While the lantern is within 300 feet of any creature of that type, its flame turns bright green. The lantern doesn't pinpoint the creature's exact location, however.\\n\",\n\t\t\ttoUni(\"d10\\tCreature Type\"),\n\t\t\t\"  1\\tAberrations\",\n\t\t\t\"  2\\tCelestials\",\n\t\t\t\"  3\\tConstructs\",\n\t\t\t\"  4\\tDragons\",\n\t\t\t\"  5\\tElementals\",\n\t\t\t\"  6\\tFey\",\n\t\t\t\"  7\\tFiends\",\n\t\t\t\"  8\\tGiants\",\n\t\t\t\"  9\\tMonstrosities\",\n\t\t\t\"10\\tUndead\"\n\t\t].join(\"\\n   \"),\n\t\tallowDuplicates : true,\n\t\tweight : 2,\n\t\tchoices : [\"Aberrations\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fey\", \"Fiends\", \"Giants\", \"Monstrosities\", \"Undead\"],\n\t\tchoicesNotInMenu : true\n\t};\n\tvar sDescr = \"This hooded lantern burns for 6 hours on 1 pint of oil, shedding bright light in a 30-ft radius and dim light for an additional 30 ft. While this lantern is within 300 ft of any CREATURE TYPE, its flame turns bright green. The lantern doesn't pinpoint the creature's exact location, however.\";\n\toObj.description = sDescr.replace(\"any CREATURE TYPE\", \"a specified creature type\");\n\tfor (var i = 0; i < oObj.choices.length; i++) {\n\t\tvar sChoice = oObj.choices[i].toLowerCase();\n\t\toObj[sChoice] = {\n\t\t\tname : \"Lantern of \" + oObj.choices[i] + \" Tracking\",\n\t\t\tsortname : \"Lantern of Tracking, \" + oObj.choices[i],\n\t\t\tdescription : sDescr.replace(\"CREATURE TYPE\", sChoice)\n\t\t}\n\t}\n\treturn oObj;\n}();\n// [dupl_start] reprint from Waterdeep: Dungeon of the Mad Mage\nif (!MagicItemsList[\"professor orb\"]) {\n\t\n\tMagicItemsList[\"professor orb\"] = { // contains contributions by Pengsloth\n\t\tname : \"Professor Orb\",\n\t\tsource : [[\"WDotMM\", 131], [\"RotF\", 315]],\n\t\ttype : \"wondrous item\",\n\t\trarity : \"rare\",\n\t\tstoryItemAL : true,\n\t\tdescription : \"This orb is sentient with the personality of a scholar, but no will of its own. It has Int 18, Wis and Cha of 3d6 each. It knows and reads 4 languages, can see/hear as a human out to 60 ft, and has extensive knowledge of 4 narrow academic subjects (+9 on checks). It knows Mage Hand, which it uses to move around.\",\n\t\tdescriptionFull : \"Each professor orb takes the form of a smooth, solid, 5-pound sphere of smoky gray quartz about the size of a grapefruit. Close examination reveals two or more pinpricks of silver light deep inside the sphere.\\n   A Professor Orb is sentient and has the personality of a scholar. Its alignment is determined by rolling on the alignment table in the \\\"Sentient Magic Items\\\" section in chapter 7 of the Dungeon Master's Guide. Regardless of its disposition, the orb has an Intelligence of 18, and Wisdom and Charisma scores determined by rolling 3d6 for each ability. The orb speaks, reads, and understands four languages, and can see and hear normally out to a range of 60 feet. Unlike most sentient items, the orb has no will of its own and can't initiate a conflict with the creature in possession of it.\\n   A Professor Orb has extensive knowledge of four narrow academic subjects. When making an Intelligence check to recall lore from any of its areas of expertise, the orb has a +9 bonus to its roll (including its Intelligence modifier).\\n   In addition to the knowledge it possesses, a professor orb can cast the Mage Hand cantrip at will. It uses the spell only to transport itself. Its spellcasting ability is Intelligence.\"\n\t}\n} // dupl_end\nMagicItemsList[\"professor skant\"] = { // contains contributions by Pengsloth\n\tname : \"Professor Skant\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This sentient orb with the personality of a scholar has Int 18, Wis 11, Cha 9, and no will of its own. It can hear and see out to 60 ft. It knows and reads Common, Draconic, Elvish, and Loross. It has+9 on checks regarding history of Netheril, vampirism, tarrasque, and Elverquisst. It moves itself around using Mage Hand.\",\n\tdescriptionLong : \"This sentient orb, which calls itself Professor Skant, has the personality of a scholar, but no will of its own to cause conflicts. It's a smooth, solid, 5 lb sphere of smoky gray quartz about the size of a grapefruit with two or more pinpricks of silver light deep inside. It's alignment is lawful good and it has Intelligence 18, Wisdom 11, and Charisma 9. It knows and reads Common, Draconic, Elvish, and Loross. It has expertise in the following academic topics (+9 on checks): history of Netheril, vampirism and the traits of vampires, rituals surrounding the making, bottling, and drinking of Elverquisst, and the tarrasque.\",\n\tdescriptionFull : \"The professor orb owned by Vellynne Harpell and stolen by Nass Lantomir calls itself Professor Skant. It is lawful good, and it has a Wisdom of 11 and a Charisma of 9 (as a professor orb, it has an Intelligence of 18). It speaks and reads Common, Draconic, Elvish, and Loross (the dead language of the Empire of Netheril). Professor Skant is a chatterbox and assumes all humanoids are dunderheads. When elaborating on its areas of expertise, it adopts an unintentionally patronizing tone. It has the following four areas of expertise:\"+\n\t\"\\n \\u2022 The history of Netheril (see the \\\"Fate of Netheril\\\" sidebar)\"+\n\t\"\\n \\u2022 Vampirism and the traits of vampires\"+\n\t\"\\n \\u2022 Rituals surrounding the making, bottling, and drinking of Elverquisst (a rare, ruby-colored elven liquor distilled from sunshine and rare summer fruits)\"+\n\t\"\\n \\u2022 The tarrasque (see the Monster Manual)\"+\n\t\"When making an Intelligence check to recall lore from any of its areas of expertise, the orb has a +9 bonus to its roll (including its Intelligence modifier).\"+\n\t\"\\n   Professor Skant takes the form of a smooth, solid, 5-pound sphere of smoky gray quartz about the size of a grapefruit. Close examination reveals two or more pinpricks of silver light deep inside the sphere.\"+\n\t\"\\n   Professor Skant can see and hear normally out to a range of 60 feet. Unlike most sentient items, the orb has no will of its own and can't initiate a conflict with the creature in possession of it.\"+\n\t\"\\n   In addition to the knowledge it possesses, Professor Skant can cast the mage hand cantrip at will. It uses the spell only to transport itself. Its spellcasting ability is Intelligence.\"\n};\nMagicItemsList[\"psi crystal\"] = { // contains contributions by BraabHimself\n\tname : \"Psi Crystal\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a creature with an intelligence score of 3 or higher\",\n\tprereqeval : function(v) { return Number(What(\"Int\")) >= 3; },\n\tdescription : \"While attuned to this orb, it glows with an inner purplish light and gives me telepathy. The range of telepathy and intensity of light are determined by my Intelligence score.\",\n\tdescriptionFull : \"This crystal grants you telepathy for as long as you remain attuned to it. See the introduction of the Monster Manual for rules on how this telepathy works.\"+\n\t\"\\n   The crystal also glows with a purplish inner light while you are attuned to it.\"+\n\t\"\\n   The higher your intelligence, the greater the light's intensity and the greater the range of the telepathy (see the table below).\"+\n\ttoUni(\"\\n\\nIntelligence\\tRange of   \\tLight\"+\n\t\"\\n    Score\\t\\tTelepathy  \\tIntensity\")+\n\t\"\\n      3-7\\t\\t  15 feet\\t\\tDim light out to a range of 5 ft\"+\n\t\"\\n      8-11\\t\\t  30 feet\\t\\tBright light in a 5-ft radius and dim light for an additional 5 ft\"+\n\t\"\\n    12-15\\t\\t  60 feet\\t\\tBright light in a 10-ft radius and dim light for an additional 10 ft\"+\n\t\"\\n    16 or higher\\t 120 feet\\t\\tBright light in a 15-ft radius and dim light for an additional 15 ft\",\n\tweight : 3,\n\tchoices : [\"Intelligence   3-7\", \"Intelligence   8-11\", \"Intelligence 12-15\", \"Intelligence 16 or higher\"],\n\tselfChoosing : function () {\n\t\tvar iInt = Number(What(\"Int\"));\n\t\treturn iInt >= 16 ? \"intelligence 16 or higher\" : iInt >= 12 ? \"intelligence 12-15\" : iInt >= 8 ? \"intelligence   8-11\" : \"intelligence   3-7\";\n\t},\n\t\"intelligence   3-7\" : {\n\t\tname : \"Psi Crystal (Int 3-7)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, dim light out to a range of 5 ft. It also grants me telepathy out to a range of 15 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence   8-11\" : {\n\t\tname : \"Psi Crystal (Int 8-11)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 5-ft radius and dim light for an additional 5 ft. It also grants me telepathy out to a range of 30 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence 12-15\" : {\n\t\tname : \"Psi Crystal (Int 12-15)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 10-ft radius and dim light for an additional 10 ft. It also grants me telepathy out to a range of 60 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t},\n\t\"intelligence 16 or higher\" : {\n\t\tname : \"Psi Crystal (Int 16+)\",\n\t\tdescription : \"While attuned to this orb, it glows with an inner purplish light, bright light in a 15-ft radius and dim light for an additional 15 ft. It also grants me telepathy out to a range of 120 ft. The range of telepathy and intensity of light are determined by my Intelligence score.\"\n\t}\n};\nMagicItemsList[\"scroll of tarrasque summoning\"] = { // contains contributions by BraabHimself\n\tname : \"Scroll of Tarrasque Summoning\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"scroll\",\n\trarity : \"legendary\",\n\tdescription : \"Once as an action, I can use this to cause the tarrasque to appear in an unoccupied space I can see within 1 mile. The tarrasque disappears when it drops to 0 hit points and is hostile toward all creatures other than itself.\",\n\tdescriptionFull : \"Using an action to read the scroll causes the tarrasque (see the creature's entry in the Monster Manual) to appear in an unoccupied space you can see within 1 mile of you. The tarrasque disappears when it drops to 0 hit points and is hostile toward all creatures other than itself.\"\n};\nMagicItemsList[\"scroll of the comet\"] = { // contains contributions by BraabHimself\n\tname : \"Scroll of the Comet\",\n\tsource : [[\"RotF\", 315]],\n\ttype : \"scroll\",\n\trarity : \"legendary\",\n\tdescription : \"Once as an action outdoors, I can use this to cause a comet to fall on a point I can see within 1 mile, creating a 50-ft deep, 500-ft radius crater. All creatures in the radius take 30d10 force damage and can make a DC 20 Dex save to halve this damage. It destroys all nonmagical objects and structures within the area.\",\n\tdescriptionFull : \"By using an action to read the scroll, you cause a comet to fall from the sky and crash to the ground at a point you can see up to 1 mile away from you. You must be outdoors when you use the scroll, or nothing happens and the scroll is wasted.\"+\n\t\"\\n   The comet creates a 50-foot-deep, 500-foot-radius crater on impact. Any creature in that radius must make a DC 20 Dexterity saving throw, taking 30d10 force damage on a failed saving throw, or half as much damage on a successful one. All structures in the crater are destroyed, as are all nonmagical objects that aren't being worn or held.\"\n};\nMagicItemsList[\"thermal cube\"] = { // contains contributions by BraabHimself\n\tname : \"Thermal Cube\",\n\tsource : [[\"RotF\", 316]],\n\ttype : \"wondrous item\",\n\trarity : \"common\",\n\tdescription : \"This 3-inch cube of solid brimstone generates enough dry heat to keep the temperature within 15 ft of it at 95 degrees Fahrenheit.\",\n\tdescriptionFull : \"This 3-inch cube of solid brimstone generates enough dry heat to keep the temperature within 15 feet of it at 95 degrees Fahrenheit (35 degrees Celsius).\"\n};\nMagicItemsList[\"ythryn mythallar\"] = { // contains contributions by BraabHimself\n\tname : \"Ythryn Mythallar\",\n\tsource : [[\"RotF\", 316]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"This 50 ft diameter crystal ball sheds light in a 300 ft radius and dim light for an additional 300 ft. Up to 8 creatures can attune to it at one time, a 9th creature's attunement fails. All those attuned to it can sense when it is used and they all must agree to any properties being used. See Notes page.\",\n\tdescriptionFull : \"A mythallar looks like an enormous crystal ball held in an ornate cradle. The globe sheds bright light in a 300-foot radius and dim light for an additional 300 feet. The globe draws magic from the Weave that can be harnessed for various purposes. For example, Netherese mages used mythallars to keep their cities aloft and empower their magic items. The bigger the mythallar, the more magic it can hold. The largest mythallars are 150 feet in diameter.\"+\n\t\"\\n   The Ythryn mythallar is a relatively small device\\u2014a mere 50 feet in diameter. To attune to this mythallar, a creature must finish a short rest within 30 feet of it, meditating on the mythallar. Up to eight creatures can be attuned to it at one time; otherwise, the Ythryn mythallar follows the attunement rules in the Dungeon Master's Guide. If a ninth creature tries to attune to the mythallar, nothing happens.\"+\n\t\"\\n   All creatures attuned to the Ythryn mythallar can sense when the device is being used. A creature attuned to the device can use any of its properties, but only if all other creatures attuned to the device agree to allow it. The Ythryn mythallar's properties are as follows:\"+\n\t\"\\n    \\u2022 While you're on the same plane of existence as the Ythryn mythallar, you can use an action to cause it to fly in any direction you choose at a speed of 30 feet. All matter within 500 feet of the device moves with it. The Ythryn mythallar and all structures held aloft by it hover in place when not in motion.\"+\n\t\"\\n   \\u2022 As an action, you can cause one magic item you are holding within 30 feet of the Ythryn mythallar to immediately regain all its expended charges or uses. A magic item recharged in this manner can't be recharged by the Ythryn mythallar again until after the item regains expended charges or uses on its own.\"+\n\t\"\\n   \\u2022 You can use the Ythryn mythallar to cast the control weather spell without requiring any components and without the need for you to be outdoors. This casting of the spell has a 50-mile radius. For the duration of the spell's casting time, you must be within 30 feet of the Ythryn mythallar or the spell fails.\"+\n\t\"\\n\" + toUni(\"Touching the Mythallar\") + \". Any creature that touches the globe of the mythallar must make a DC 22 Constitution saving throw, taking 180 (20d10 + 70) radiant damage on a failed save, or half as much damage on a successful one. Undead have disadvantage on this saving throw. Any object that touches the globe, other than an artifact or the mythallar's cradle, is disintegrated instantly (no save).\",\n\ttoNotesPage : [{\n\t\tname : \"Properties\",\n\t\tnote : [\n\t\t\t\"The Ythryn Mythallar is a 50 ft diameter crystal ball that sits on a cradle\",\n\t\t\t\"It has the following properties:\",\n\t\t\t\"\\u2022 Sheds light in a 300 ft radius and dim light for an additional 300 ft\",\n\t\t\t\"\\u2022 Up to 8 creatures can attune to it, a 9th attunement fails\",\n\t\t\t\"\\u2022 To attune, a creature must short rest within 30 ft of it\",\n\t\t\t\"\\u2022 All those attuned to it can sense when sense when it is being used\",\n\t\t\t\"\\u2022 All those attuned must agree to allow any properties to be used\",\n\t\t\t\"\\u2022 You can use an action to use the Ythryn Mythallar in the following ways:\",\n\t\t\t\"  \\u25E6 While on the same plane, give it a flying speed of 30 ft\",\n\t\t\t\"    All matter within 500 ft of it moves with it\",\n\t\t\t\"    The ball and all structures held aloft by it hover in place when not in motion\",\n\t\t\t\"  \\u25E6 Cause one magic item to regain all charges/uses\",\n\t\t\t\"    I must be within 30 ft of the ball and holding the item\",\n\t\t\t\"    It cannot be recharged again until all charges/uses are expended\",\n\t\t\t\"  \\u25E6 Cast the control weather spell without components or spell slots\",\n\t\t\t\"    It has a radius of 50 miles and can be cast inside\",\n\t\t\t\"    I must be within 30 ft of the ball for the casting time, or it will fail\",\n\t\t\t\"\\nTOUCHING THE MYTHALLAR\",\n\t\t\t\"Any creature that touches the ball must make a DC 22 Constitution save\",\n\t\t\t\"On a failure, they take 20d10 + 70 radiant damage, or half that on a success\",\n\t\t\t\"Undead have disadvantage on this saving throw\",\n\t\t\t\"Objects touching the ball, except artifacts or the cradle, disintegrate instantly\"\n\t\t]\n\t}]\n};\nMagicItemsList[\"the codicil of white\"] = {\n\tname : \"The Codicil of White\",\n\tsource : [[\"RotF\", 317]],\n\ttype : \"wondrous item\",\n\trarity : \"\",\n\tnotLegalAL : true,\n\tdescription : 'This volume bound in white fur, sealed with a silver lock, containing velum pages with silver edges is cold to the touch. While I have this tome in my possession, I gain resistance to cold damage. It contains the Frost Fingers spell which a wizard can learn and a poem incantation \"Rime of the Frostmaiden\".',\n\tdescriptionFull : \"The Codicil of White is a tall, thin volume bound in white ermine fur over seasoned boards of white pine and sealed with a clasp and lock of tarnished silver. The book is cold to the touch, and the fur is worn about the edges from use. The twenty-seven pages within are of vellum painted with silver gilt on the outer edges. The whole is sewn to a leather binding with strips of sinews, making it quite durable.\"+\n\t\"\\n   A creature with the codicil in its possession has resistance to cold damage.\"+\n\t\"\\n   The codicil was written by followers of Auril as a primer on her worship. The first page is a title page with the snowflake symbol of Auril on it. The remaining pages describe various priestly rituals and ceremonies in chilling detail. Nestled among these descriptions is a spell that wizards can learn (frost fingers, and a poem called \\\"Rime of the Frostmaiden\\\", see appendix E of Icewind Dale: Rime of the Frostmaiden). The poem is an incantation, the power of which can be used to split a glacier (see chapter 6 of Icewind Dale: Rime of the Frostmaiden). The poem might have other capabilities, at the DM's discretion\",\n\tdmgres : [\"Cold\"],\n\tweight : 3\n};\n// [dupl_start] reprint (mostly) from Monster Manual\nif (!MagicItemsList[\"shield guardian amulet\"]) {\n\tMagicItemsList[\"shield guardian amulet\"] = {\n\t\tname : \"Shield Guardian Amulet\",\n\t\tsource : [[\"M\", 271], [\"RotF\", 149]],\n\t\ttype : \"wondrous item\",\n\t\trarity : \"rare\",\n\t\tattunement : true,\n\t\tnotLegalAL : true,\n\t\tprerequisite : \"Requires attunement by a humanoid\",\n\t\tprereqeval : function(v) { return !CurrentRace.known || !RaceList[CurrentRace.known] || !/creature type/i.test(RaceList[CurrentRace.known].trait); },\n\t\tdescription : \"A shield guardian is magically linked to this amulet. It has AC 10, 10 HP, and immunity to poison and psychic damage. I know the distance and direction of the guardian while I'm wearing the amulet and I'm on the same plane as it. While within 10 ft of it, I can use the amulet to reactivate it with a DC 20 Arcana check.\",\n\t\tdescriptionFull : \"The amulet is a 4-inch-wide disk composed of silver-framed wood, with a rune carved into its face. A detect magic spell reveals a magical aura of enchantment around the amulet.\"+\n\t\t\"\\n   Every shield guardian has an amulet magically linked to it. A shield guardian can have only one corresponding amulet, and if that amulet is destroyed, the shield guardian is incapacitated until a replacement amulet is created.\"+\n\t\t\"\\n   A shield guardian's amulet is subject to direct attack if it isn't being worn or carried. It has AC 10, 10 hit points, and immunity to poison and psychic damage. Crafting an amulet requires 1 week and costs 1,000 gp in components.\"+\n\t\t\"\\n   A shield guardian's solitary focus is to protect the amulet's wearer. The amulet's wearer can command the guardian to attack its enemies or to guard the wielder against attack. If an attack threatens to injure the wearer, the construct can magically absorb the blow into its own body, even at a distance.\"+\n\t\t\"\\n   A humanoid that attunes to this amulet knows the distance and direction of the shield guardian, provided the amulet and the guardian are on the same plane of existence. As an action, the amulet's attuned wearer can try to reactivate the shield guardian, doing so with a successful DC 20 Intelligence (Arcana) check. Reactivation can only be attempted while the amulet and guardian are within 10 feet of each other.\",\n\t\tcreaturesAdd : [[\"Shield Guardian\"]],\n\t\tweight : 1\n\t}\n} // dupl_end\n\n// Spells\nSpellsList[\"blade of disaster\"] = {\n\tname : \"Blade of Disaster\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"T\", 106], [\"RotF\", 318]],\n\tlevel : 9,\n\tschool : \"Conj\",\n\ttime : \"1 bns\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"Create weapon; 2 spell atks 4d12 Force dmg; crit on 18+, triple dmg; bns a to move 30 ft \\u0026 do 2 atks\",\n\tdescriptionShorter : \"Create wea; 2 spell atks 4d12 Force dmg; crit 18+, triple dmg; bns a to move 30 ft \\u0026 2 atks\",\n\tdescriptionFull : \"You create a blade-shaped planar rift about 3 feet long in an unoccupied space you can see within range. The blade lasts for the duration. When you cast this spell, you can make up to two melee spell attacks with the blade, each one against a creature, loose object, or structure within 5 feet of the blade. On a hit, the target takes 4d12 force damage. This attack scores a critical hit if the number on the d20 is 18 or higher. On a critical hit, the blade deals an extra 8d12 force damage (for a total of 12d12 force damage).\"+\n\t\"\\n   As a bonus action on your turn, you can move the blade up to 30 feet to an unoccupied space you can see and then make up to two melee spell attacks with it again.\"+\n\t\"\\n   The blade can harmlessly pass through any barrier, including a wall of force.\"\n};\nSpellsList[\"create magen\"] = { // contains contributions by BraabHimself\n\tname : \"Create Magen\",\n\tsource : [[\"RotF\", 318]],\n\tclasses : [\"wizard\"],\n\tlevel : 7,\n\tschool : \"Trans\",\n\ttime : \"1 h\",\n\trange : \"Touch\",\n\tcomponents : \"V,S,M\\u2020\",\n\tcompMaterial : \"A vial of quicksilver worth 500 gp and a life-sized human doll, both of which the spell consumes, and an intricate crystal rod worth at least 1,500 gp that is not consumed\",\n\tduration : \"Instantaneous\",\n\tdescription : \"Transform doll into magen (500gp cons.); obeys me; my HP max reduced by its CR; see book (1.5k gp)\",\n\tdescriptionFull : \"While casting the spell, you place a vial of quicksilver in the chest of a life-sized human doll stuffed with ash or dust. You then stitch up the doll and drip your blood on it. At the end of the casting, you tap the doll with a crystal rod, transforming it into a magen clothed in whatever the doll was wearing. The type of magen is chosen by you during the casting of the spell. See appendix C for different kinds of magen and their statistics.\"+\n\t\"\\n   When the magen appears, your hit point maximum decreases by an amount equal to the magen's challenge rating (minimum reduction of 1). Only a wish spell can undo this reduction to your hit point maximum.\"+\n\t\"\\n   Any magen you create with this spell obeys your commands without question.\"\n};\nSpellsList[\"frost fingers\"] = { // contains contributions by BraabHimself\n\tname : \"Frost Fingers\",\n\tsource : [[\"RotF\", 318]],\n\tclasses : [\"wizard\"],\n\tlevel : 1,\n\tschool : \"Evoc\",\n\ttime : \"1 a\",\n\trange : \"S:15\" + (typePF ? \"-\" : \"\") + \"ft cone\",\n\tcomponents : \"V,S\",\n\tduration : \"Instantaneous\",\n\tsave : \"Con\",\n\tdescription : \"All in area 2d8+1d8/SL Cold dmg; save halves; unattended nonmagical liquids freeze\",\n\tdescriptionFull : \"Freezing cold blasts from your fingertips in a 15-foot cone. Each creature in that area must make a Constitution saving throw, taking 2d8 cold damage on a failed save, or half as much damage on a successful one.\"+\n\t\"\\n   The cold freezes nonmagical liquids in the area that aren't being worn or carried.\"+\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st.\"\n};\n"
  },
  {
    "path": "WotC material/pub_20201117-2_TCoE-sidekicks.js",
    "content": "var iFileName = \"pub_20201117-2_TCoE-sidekicks.js\";\r\nRequiredSheetVersion(\"13.1.7\");\r\n// This file adds the sidekick classes from Tasha's Cauldron of Everything (p142-147) to MPMB's Character Record Sheet\r\n\r\n/* - NOTICE -\r\n\tThese sidekick classes are available as normal classes because the sheet doesn't support classes for the companion page\r\n\r\n\tThese classes are excluded by default so that they aren't confused with normal classes\r\n\r\n\tThe base 1/2 CR creature will have to be added manually\r\n\tIt would be too complex and messy to add them all as racial options\r\n*/\r\n\r\n// Define the source, if it doesn't yet exist\r\nif (!SourceList.T) {\r\n\tSourceList.T = {\r\n\t\tname : \"Tasha's Cauldron of Everything\",\r\n\t\tabbreviation : \"TCoE\",\r\n\t\tabbreviationSpellsheet : \"T\",\r\n\t\tgroup : \"Primary Sources\",\r\n\t\turl : \"https://dnd.wizards.com/products/tashas-cauldron-everything\",\r\n\t\tdate : \"2020/11/17\"\r\n\t};\r\n}\r\n\r\n// Define some functions here, so we an use them for all sidekick classes without duplication\r\nglobal_TCoE_Sidekick_fn = {\r\n\t// prereqeval runs before any of the other class stuff is added, so we can even modify the ClassList object with it to set the HD\r\n\tprereqeval : function(v) {\r\n\t\tvar sClass = v['class'];\r\n\t\tvar sSubclass = v.subclass;\r\n\t\tvar sClassOld = CurrentVars.sidekickDialogShown === undefined ? false : CurrentVars.sidekickDialogShown[0];\r\n\t\t// If we already did this function for this (sub)class, stop now\r\n\t\tif (CurrentVars.sidekickDialogShown && CurrentVars.sidekickDialogShown[0] === sClass && (!CurrentVars.sidekickDialogShown[1] || CurrentVars.sidekickDialogShown[1] === sSubclass)) {\r\n\t\t\t// if no subclass was defined when previously calling this, but now there is one selected, add that to the CurrentVars\r\n\t\t\tif (!CurrentVars.sidekickDialogShown[1] && sSubclass) {\r\n\t\t\t\tCurrentVars.sidekickDialogShown[1] = sSubclass;\r\n\t\t\t\tSetStringifieds(\"vars\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// Tell the player what is about to happen and give an option to opt-out\r\n\t\tvar sClassName = ClassList[sClass].name.replace(/\\(?sidekick\\)?/i, '').trim();\r\n\t\tvar warningMsg = {\r\n\t\t\tnIcon : 3, // Status\r\n\t\t\tnType : 2, // Yes,No\r\n\t\t\tcTitle : \"Creating a Sidekick Works Differently\",\r\n\t\t\tcMsg : \"You are about to create a character with a \" + sClassName + \" sidekick class. Sidekick classes use the rules as described in Tasha's Cauldron of Everything, page 142. As this character sheet is intended for regular, non-sidekick classes, some changes will be made that you need to be aware off:\"\r\n\t\t};\r\n\t\tvar lineNo = 1;\r\n\t\t[\r\n\t\t\t\"A sidekick class is added to a creature of CR 1/2 or lower. Before continuing, lookup the stat block of the base creature you would like to use. You will have to manually enter its:\"+\r\n\t\t\t\t\"\\n   \\u2022 Ability scores\"+\r\n\t\t\t\t\"\\n   \\u2022 Proficiencies for: skills, saving throws, weapons, armor, languages, and tools\"+\r\n\t\t\t\t\"\\n   \\u2022 Attacks (tip: use Modifier fields for attacks that aren't weapons/cantrips)\"+\r\n\t\t\t\t\"\\n   \\u2022 Hit dice (you will be prompted to enter)\",\r\n\t\t\t\tsClass.indexOf('warrior') !== -1 ? false : 'To gain either the Expert of Spellcaster sidekick class, a creature must have at least one language in its stat block that it can speak.',\r\n\t\t\t'If you continue, the race and background automation will be turned off and the respective fields emptied. You can use these fields to enter the name and type of the base creature.'+\r\n\t\t\t\t'\\nFor example. when using the bandit stat block, you could enter:'+\r\n\t\t\t\t'\\n   \\u2022 Race: Elf'+\r\n\t\t\t\t'\\n   \\u2022 Background: Bandit'+\r\n\t\t\t\t'\\nYou can turn the automation back on with the \"Auto/Manual\" bookmark.',\r\n\t\t\t\"Sidekicks don't use experience points, but gain levels as the average level of the group goes up. Thus, simply ignore the experience points box and change the level when needed.\",\r\n\t\t\t\"Sidekick classes can't multiclass and haven't been tested to work that way.\"\r\n\t\t].forEach(function (line) {\r\n\t\t\tif (!line) return;\r\n\t\t\twarningMsg.cMsg += \"\\n\\n\" + lineNo + \". \" + line;\r\n\t\t\tlineNo++;\r\n\t\t});\r\n\t\twarningMsg.cMsg += \"\\n\\n\\n>>> Do you want to continue making a sidekick? <<<\";\r\n\t\twarningMsg.cMsg += \"\\n\\nIf you select 'No', the \" + v.classlevel + \" level(s) of this class will be counted towards the total character level, but none of its features will be added.\";\r\n\t\tif (app.alert(warningMsg) !== 4) return 'skip';\r\n\t\t// Save that this dialog has been shown\r\n\t\tCurrentVars.sidekickDialogShown = [sClass, sSubclass];\r\n\t\t// Remove race and background, and set them to manual\r\n\t\tglobal_TCoE_Sidekick_fn.manualRaceBackground();\r\n\t\t// if the sidekick HD is already defined, delete those HD first before applying the new one\r\n\t\tif (CurrentVars.sidekickHD && sClassOld && classes.old[sClassOld]) {\r\n\t\t\tglobal_TCoE_Sidekick_fn.eval([classes.old[sClassOld].classlevel, 0], false, false, true);\r\n\t\t};\r\n\t\t// Ask the player to enter the number and type of HD the creature has in its stat block\r\n\t\tCurrentVars.sidekickHD = AskUserOptions(\r\n\t\t\t\"Set Base Creature Hit Dice\", // title\r\n\t\t\t\"Enter the number and type of hit dice that the chosen base creature has in its stat block (i.e. without bonuses from sidekick levels).\\nThe sidekick will gain 1 extra HD for each level it gains after the first.\", // top explanation\r\n\t\t\t['Number of hit dice, for example \"2\"', 'Size of the hit dice, for example \"d8\"'],\r\n\t\t\tfalse, true,\r\n\t\t\t\"Be aware that you *can't* change the *size* of the hit die (e.g. d8) at a later time. To do that, you will have to first remove the sidekick class completely.\\n\\nHowever, you *can* change the *number* of hit dice manually by editing the appropriate field.\" // bottom explanation\r\n\t\t).map(function (n, idx) {\r\n\t\t\tvar a = n.replace(/.*?(\\d+).*/, \"$1\");\r\n\t\t\treturn !isNaN(a) ? Number(a) : idx === 0 ? 2 : 8;\r\n\t\t});\r\n\t\tClassList[sClass].die = CurrentVars.sidekickHD[1];\r\n\t\tCurrentClasses[sClass].die = CurrentVars.sidekickHD[1];\r\n\t\tSetStringifieds(\"vars\");\r\n\t},\r\n\t// Change the race and background to manual or auto\r\n\tmanualRaceBackground : function(bAuto) {\r\n\t\tif (bAuto && (CurrentVars.manual.background || CurrentVars.manual.race)) {\r\n\t\t\t// set to automatic\r\n\t\t\tif (CurrentVars.manual.background) {\r\n\t\t\t\tValue(\"Background\", \"\");\r\n\t\t\t\tSetToManual_Dialog.mBac = false;\r\n\t\t\t}\r\n\t\t\tif (CurrentVars.manual.race) {\r\n\t\t\t\tValue(\"Race\", \"\");\r\n\t\t\t\tSetToManual_Dialog.mRac = false;\r\n\t\t\t}\r\n\t\t\tSetToManual_Button(true);\r\n\t\t} else if (!bAuto) {\r\n\t\t\t// set to manual\r\n\t\t\tif (CurrentVars.manual.race || CurrentVars.manual.background || CurrentVars.manual.backgroundFeature) {\r\n\t\t\t\t// if currently already set to manual, set to auto before emptying the fields\r\n\t\t\t\tIsNotImport = false;\r\n\t\t\t\tignorePrereqs = true;\r\n\t\t\t\tSetToManual_Dialog.mBac = false;\r\n\t\t\t\tSetToManual_Dialog.mBFe = false;\r\n\t\t\t\tSetToManual_Dialog.mRac = false;\r\n\t\t\t\tSetToManual_Button(true);\r\n\t\t\t\tIsNotImport = true;\r\n\t\t\t\tignorePrereqs = false;\r\n\t\t\t};\r\n\t\t\t// Remove the race and background\r\n\t\t\tif (CurrentRace.known) Value(\"Race\", \"\");\r\n\t\t\tif (CurrentBackground.known) Value(\"Background\", \"\");\r\n\t\t\t// Set race and background to manual\r\n\t\t\tSetToManual_Dialog.mRac = true;\r\n\t\t\tSetToManual_Dialog.mBac = true;\r\n\t\t\tSetToManual_Button(true);\r\n\t\t}\r\n\t},\r\n\t// When removing a sidekick class, return some stuff to normal\r\n\tremoveeval : function(lvl) {\r\n\t\t// This could be called after the dialog was shown for another sidekick, so check if there is actually something to do\r\n\t\tvar sClass = CurrentVars.sidekickDialogShown ? CurrentVars.sidekickDialogShown[0] : false;\r\n\t\tvar sSubclass = CurrentVars.sidekickDialogShown ? CurrentVars.sidekickDialogShown[1] : false;\r\n\t\tif (!sClass || !classes.known[sClass] || classes.known[sClass].level ||\r\n\t\t\t(classes.old[sClass] && classes.old[sClass].subclass && classes.old[sClass].subclass !== sSubclass)\r\n\t\t\t) return;\r\n\t\t// Remove the extra sidekickHD and delete it from the CurrentVars\r\n\t\tglobal_TCoE_Sidekick_fn.eval(lvl, false, false, true);\r\n\t\tdelete CurrentVars.sidekickHD;\r\n\t\tdelete CurrentVars.sidekickDialogShown;\r\n\t\tSetStringifieds(\"vars\");\r\n\t\t// Reset race and background to auto (if not already)\r\n\t\tglobal_TCoE_Sidekick_fn.manualRaceBackground(true);\r\n\t},\r\n\t// After the HD has been set, we still need to enter the bonus HD, if any (this can't be done with the prereqeval)\r\n\teval : function(lvl, chc, undef, bRemove) {\r\n\t\tvar hd = CurrentVars.sidekickHD;\r\n\t\tvar extraHD = hd[0] - 1;\r\n\t\tif (isNaN(extraHD) || extraHD < 1) return;\r\n\t\tvar totalHD = bRemove ? lvl[0] : lvl[1] + extraHD;\r\n\t\tvar expectedHD = bRemove ? lvl[0] + extraHD : lvl[1];\r\n\t\t// Add the extra HD to the field\r\n\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\tvar dieFld = \"HD\" + i + \" Die\";\r\n\t\t\tvar lvlFld = \"HD\" + i + \" Level\";\r\n\t\t\tif (What(dieFld) == hd[1] && What(lvlFld) == expectedHD) {\r\n\t\t\t\tValue(lvlFld, totalHD);\r\n\t\t\t\tCurrentUpdates.types.push(\"hp\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcalcChanges_hp : function (totalHD, HDobj) {\r\n\t\t// remove 1st level max (and change its average and fixed value to reflect this change)\r\n\t\tvar hd = CurrentVars.sidekickHD[1];\r\n\t\tvar matchRegex = RegExp('(\\\\d+)(d' + hd + ' \\\\()(\\\\d+\\\\.?\\\\d+?)\\\\)');\r\n\t\tvar match = HDobj.dieStr[1] ? HDobj.dieStr[1].match(matchRegex) : false;\r\n\t\tif (!match) return;\r\n\t\tvar hdAverage = hd / 2 + 0.5;\r\n\t\tvar hdFixed = Math.ceil(hdAverage);\r\n\t\tHDobj.dieStr.shift();\r\n\t\tHDobj.average += hdAverage - hd;\r\n\t\tHDobj.fixed += hdFixed - hd;\r\n\t\tHDobj.dieStr[0] = HDobj.dieStr[0].replace(matchRegex, (Number(match[1]) + 1) + match[2] + (Number(match[3]) + hdAverage) + \") [sidekicks don't get max for 1st level]\");\r\n\t},\r\n\tspellcasting_additional : levels.map(function (n, idx) {\r\n\t\tvar cantr = [2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4][idx];\r\n\t\tvar splls = [1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11][idx];\r\n\t\treturn cantr + \" cantrips \\u0026 \" + splls + \" spells known\";\r\n\t})\r\n}\r\n\r\n// Add the three classes\r\nClassList[\"sidekick-expert-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*expert)(?=.*sidekick).*$/i,\r\n\tname : \"Expert (sidekick)\",\r\n\tsource : [[\"T\", 143]],\r\n\tprimaryAbility : \"Dexterity, Intelligence, or Charisma\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 10 ? 2 : n < 12 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose any five skills\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1],\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"The Spellcaster and Expert classes can only apply to creatures that can speak a language\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Dex, Int, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dexterity\", \"Intelligence\", \"Charisma\"],\r\n\t\t\t\"dexterity\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Dexterity Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Dexterity saving throws\"),\r\n\t\t\t\tsaves : [\"Dex\"]\r\n\t\t\t},\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Intelligence Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"]\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Charisma Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with light armor and in five skills of my choice\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and in five skills of my choice\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with two tools of my choice and with all simple weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tweaponProfs : [true, false],\r\n\t\t\t\ttoolProfs : [[\"Tool of my choice\", 2]]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency with light armor and in five skills of my choice\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"helpful\" : {\r\n\t\t\tname : \"Helpful\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I can use a bonus action to take the Help action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"cunning action\" : {\r\n\t\t\tname : \"Cunning Action\",\r\n\t\t\tsource : [[\"T\", 143]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I can use a bonus action to take the Dash, Disengage, or Hide action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"expertise\" : function() {\r\n\t\t\tvar a = {\r\n\t\t\t\tname : \"Expertise\",\r\n\t\t\t\tsource : [[\"T\", 143]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain expertise with two skills I am proficient with\",\r\n\t\t\t\t\t\"At level 15th, I gain expertise with two more skills I am proficient with\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Expertise with any two skill proficiencies, two more at level 15th\",\r\n\t\t\t\textraname : \"Expertise\",\r\n\t\t\t\textrachoices : [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\r\n\t\t\t\textraTimes : levels.map(function (n) { return n < 3 ? 0 : n < 15 ? 2 : 4; })\r\n\t\t\t}\r\n\t\t\tfor (var i = 0; i < a.extrachoices.length; i++) {\r\n\t\t\t\tvar attr = a.extrachoices[i].toLowerCase();\r\n\t\t\t\ta[attr] = {\r\n\t\t\t\t\tname : a.extrachoices[i] + \" Expertise\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tsource : a.source,\r\n\t\t\t\t\tskills : [[a.extrachoices[i], \"only\"]],\r\n\t\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? false : v.skillExpertiseLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn a;\r\n\t\t}(),\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 10th, 12th, 16th, and 19th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 10 ? 2 : n < 12 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"coordinated strike\" : {\r\n\t\t\tname : \"Coordinated Strike\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use Helpful to aid an ally to attack a creature up to 30 ft away from me\",\r\n\t\t\t\t\"If I do so, I add +2d6 damage on my next attack to that creature in the current turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"evasion\" : {\r\n\t\t\tname : \"Evasion\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If an effect allows me to make a Dex save for half damage, I take no damage on a success\",\r\n\t\t\t\t\"Also, I only take half damage on a failed save; I can't do this while incapacitated\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { text : [\"Dex save vs. area effects: fail \\u2015 half dmg, success \\u2015 no dmg\"] }\r\n\t\t},\r\n\t\t\"inspiring help\" : {\r\n\t\t\tname : \"Inspiring Help\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use the Help action, the creature that receives the help adds +1d6 to its d20 roll\",\r\n\t\t\t\t\"If it was an attack roll that hits without the +1d6, it can add it to the damage instead\",\r\n\t\t\t\t\"At 20th level, this bonus increases to 2d6\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : \"+\" + (n < 20 ? 1 : 2) + \"d6 bonus\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"reliable talent\" : {\r\n\t\t\tname : \"Reliable Talent\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc(\"If I make an ability check where I add my proficiency bonus, rolls of 9 or lower are 10\")\r\n\t\t},\r\n\t\t\"sharp mind\" : {\r\n\t\t\tname : \"Sharp Mind\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc('Choose Int, Wis, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Sharp Mind: Intelligence\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Int ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t},\r\n\t\t\t\"wisdom\" : {\r\n\t\t\t\tname : \"Sharp Mind: Wisdom\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Wisdom saving throws\"),\r\n\t\t\t\tsaves : [\"Wis\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Wis ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Sharp Mind: Charisma\",\r\n\t\t\t\tdescription : desc(\"I gain proficiency in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"],\r\n\t\t\t\tprereqeval : function(v) { return tDoc.getField(\"Cha ST Prof\").isBoxChecked(0) ? false : true; }\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nClassList[\"sidekick-spellcaster-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*(spellcaster|mage|healer|prodigy))(?=.*sidekick).*$/i,\r\n\tname : \"Spellcaster (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tprimaryAbility : \"Intelligence, Wisdom, or Charisma\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 12 ? 2 : n < 16 ? 3 : n < 18 ? 4 : 5;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"Spellcaster's Role\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1],\r\n\tabilitySave : 4,\r\n\tspellcastingFactor : 2,\r\n\tspellcastingTable : ClassList.artificer && ClassList.artificer.spellcastingTable ? ClassList.artificer.spellcastingTable : [[0, 0, 0, 0, 0, 0, 0, 0, 0]].concat(levels.map(function (n) {\r\n\t\treturn defaultSpellTable[Math.ceil(n / 2)];\r\n\t})),\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells :   [1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"The Spellcaster and Expert classes can only apply to creatures that can speak a language\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Int, Wis, or Cha save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\t\t\"intelligence\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Intelligence Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Intelligence saving throws\"),\r\n\t\t\t\tsaves : [\"Int\"]\r\n\t\t\t},\r\n\t\t\t\"wisdom\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Wisdom Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Wisdom saving throws\"),\r\n\t\t\t\tsaves : [\"Wis\"]\r\n\t\t\t},\r\n\t\t\t\"charisma\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Charisma Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Charisma saving throws\"),\r\n\t\t\t\tsaves : [\"Cha\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with all simple weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tweaponProfs : [true, false]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with light armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Arcana, History, Insight, Investigation, Medicine, Performance, Persuasion, and Religion\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcaster's Role\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose the role of the sidekick, mage, healer, or prodigy, and put it in the \"Class\" field')\r\n\t\t},\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 12th, 16th, and 18th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 12 ? 2 : n < 16 ? 3 : n < 18 ? 4 : 5) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"potent cantrips\" : {\r\n\t\t\tname : \"Potent Cantrips\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc(\"I add my spellcasting ability modifier to the damage I deal with any cantrip\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave) return;\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1] + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod > 0 && v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0) {\r\n\t\t\t\t\t\t\toutput.extraDmg += spAbiMod;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave || spellObj.psionic || spellObj.level !== 0) return;\r\n\t\t\t\t\t\tvar spAbi = AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1];\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(spAbi + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod < 1) return;\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", spAbi);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My cantrips get my spellcasting ability modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"empowered spells\" : {\r\n\t\t\tname : \"Empowered Spells\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Select one of the eight schools of magic using the \"Choose Feature\" button above',\r\n\t\t\t\t\"Whenever I cast a spell from the selected school by expending a spell slot, I empower it\",\r\n\t\t\t\t\"I add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar subclass = classes.known[\"sidekick-spellcaster-tcoe\"].subclass;\r\n\t\t\t\t\t\tvar spSchool = GetFeatureChoice(\"classes\", \"sidekick-spellcaster-tcoe\", \"empowered spells\");\r\n\t\t\t\t\t\tif (!subclass || !ClassSubList[subclass].abilitySave || !spSchool || spellObj.psionic || !spellObj.level) return;\r\n\t\t\t\t\t\tfor (var aSchl in spellSchoolList) {\r\n\t\t\t\t\t\t\tif (spellSchoolList[aSchl] == spSchool) {\r\n\t\t\t\t\t\t\t\tspSchool = aSchl;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (spellObj.school !== spSchool) return;\r\n\t\t\t\t\t\tvar spAbi = AbilityScores.abbreviations[ClassSubList[subclass].abilitySave - 1];\r\n\t\t\t\t\t\tvar spAbiMod = Number(What(spAbi + ' Mod'));\r\n\t\t\t\t\t\tif (spAbiMod < 1) return;\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", spAbiMod, true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", spAbiMod, true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Spells from my selected school cast by expending a spell slot get my spellcasting ability modifier added to their damage or healing rolls.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"Abjuration\", \"Conjuration\", \"Divination\", \"Enchantment\", \"Evocation\", \"Illusion\", \"Necromancy\", \"Transmutation\"],\r\n\t\t\t\"abjuration\" : {\r\n\t\t\t\tname : \"Empowered Abjurations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast an abjuration spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"conjuration\" : {\r\n\t\t\t\tname : \"Empowered Conjurations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a conjuration spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"divination\" : {\r\n\t\t\t\tname : \"Empowered Divinations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a divination spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"enchantment\" : {\r\n\t\t\t\tname : \"Empowered Enchantments\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a enchantment spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"evocation\" : {\r\n\t\t\t\tname : \"Empowered Evocations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a evocation spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"illusion\" : {\r\n\t\t\t\tname : \"Empowered Illusions\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast an illusion spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"necromancy\" : {\r\n\t\t\t\tname : \"Empowered Necromancy\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a necromancy spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"transmutation\" : {\r\n\t\t\t\tname : \"Empowered Transmutations\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I cast a transmutation spell by expending a spell slot, I can empower its effect\",\r\n\t\t\t\t\t\"I then add my spellcasting ability modifier to the damage or healing I roll for that spell\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"focused casting\" : {\r\n\t\t\tname : \"Focused Casting\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc(\"Taking damage can't break my concentration on a spell\")\r\n\t\t}\r\n\t}\r\n}\r\nClassList[\"sidekick-warrior-tcoe\"] = {\r\n\tdefaultExcluded : true,\r\n\tprereqeval : global_TCoE_Sidekick_fn.prereqeval,\r\n\tregExpSearch : /^(?=.*warrior)(?=.*sidekick).*$/i,\r\n\tname : \"Warrior (sidekick)\",\r\n\tsource : [[\"T\", 146]],\r\n\tprimaryAbility : \"Strength, Dexterity, or Constitution\",\r\n\tprereqs : \"Can't multiclass\",\r\n\timprovements : levels.map(function (n) {\r\n\t\treturn n < 4 ? 0 : n < 8 ? 1 : n < 12 ? 2 : n < 14 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6;\r\n\t}),\r\n\tdie : CurrentVars.sidekickHD ? CurrentVars.sidekickHD[1] : 8,\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, true, false]\r\n\t},\r\n\tequipment : \"\",\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3],\r\n\tfeatures : {\r\n\t\t\"a sidekick\" : {\r\n\t\t\tname : \"A Sidekick\",\r\n\t\t\tsource : [[\"T\", 142]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"A sidekick can be any creature with challenge rating of 1/2 or lower\",\r\n\t\t\t\t\"Fill out the stats block into the character sheet manually, the class adds to it\",\r\n\t\t\t\t\"The sidekick's level is the same as the average level of the group\",\r\n\t\t\t\t\"The hit dice of a sidekick are the same as those of the base creature, gaining +1 per level\",\r\n\t\t\t\t\"A sidekick does not get the benefits of a background, nor can it take feats or multiclass\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : global_TCoE_Sidekick_fn.calcChanges_hp\r\n\t\t\t},\r\n\t\t\teval : global_TCoE_Sidekick_fn.eval,\r\n\t\t\tremoveeval : global_TCoE_Sidekick_fn.removeeval\r\n\t\t},\r\n\t\t\"bonus proficiencies: saving throws\" : {\r\n\t\t\tname : \"Bonus Proficiencies: Saving Throws\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose Str, Dex, or Con save proficiency, using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\"],\r\n\t\t\t\"strength\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Strength Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Strength saving throws\"),\r\n\t\t\t\tsaves : [\"Str\"]\r\n\t\t\t},\r\n\t\t\t\"dexterity\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Dexterity Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Dexterity saving throws\"),\r\n\t\t\t\tsaves : [\"Dex\"]\r\n\t\t\t},\r\n\t\t\t\"constitution\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Constitution Saving Throws\",\r\n\t\t\t\tdescription : desc(\"I am proficient in Constitution saving throws\"),\r\n\t\t\t\tsaves : [\"Con\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"bonus proficiencies\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\",\r\n\t\t\t\t'If the base creature is a Humanoid or has a simple or martial weapon in its stat block,',\r\n\t\t\t\t'select it using the \"Choose Feature\" button above, so I gain more bonus proficiencies'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Base creature is a Humanoid or has a simple or martial weapon in its stat block\", \"Other base creatures\"],\r\n\t\t\t\"base creature is a humanoid or has a simple or martial weapon in its stat block\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\",\r\n\t\t\t\t\t\"Additionally, I gain proficiency with shields and all simple and martial weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\tarmorProfs : [false, false, false, true],\r\n\t\t\t\tweaponProfs : [true, true]\r\n\t\t\t},\r\n\t\t\t\"other base creatures\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies: Non-humanoid\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with all armor and two skills of my choice from the following list:\",\r\n\t\t\t\t\t\"Acrobatics, Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"martial role\" : {\r\n\t\t\tname : \"Martial Role\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose a Martial Role for the warrior using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Attacker\", \"Defender\"],\r\n\t\t\t\"attacker\" : {\r\n\t\t\t\tname : \"Martial Role: Attacker\",\r\n\t\t\t\tdescription : desc(\"I gain a +2 bonus to all my attack rolls\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (!v.isDC) output.extraHit += 2;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add a +2 bonus on the To Hit of all my attack rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"defender\" : {\r\n\t\t\t\tname : \"Martial Role: Defender\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction, I can give disadv. on an attack made vs. someone within 5 ft of me\",\r\n\t\t\t\t\t\"I need to be able to see the attacker to do this\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"second wind\" : {\r\n\t\t\tname : \"Second Wind\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can regain hit points equal to 1d10 + warrior level\",\r\n\t\t\t\t\"I can use this once per short rest (twice at 20th-level)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn \"1d10+\" + n;\r\n\t\t\t}),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n < 20 ? 1 : 2 }),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"improved critical\" : {\r\n\t\t\tname : \"Improved Critical\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I score a critical hit with my weapon attacks on a roll of 19 and 20\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && !v.isSpell && !v.CritChance && classes.known[\"sidekick-warrior\"]) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My weapon attacks score a critical on a to hit roll of both 19 and 20.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"ability score improvement\" : {\r\n\t\t\tname : \"Ability Score Improvement\",\r\n\t\t\tsource : [[\"T\", 146]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Increase one ability score by 2, or two ability scores by 1, up to a maximum of 20\",\r\n\t\t\t\t\"I gain this at 4th level and again at 8th, 12th, 14th, 16th, and 19th level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 4 ? \"\" : (n < 8 ? 1 : n < 12 ? 2 : n < 14 ? 3 : n < 16 ? 4 : n < 19 ? 5 : 6) + \"\\xD7 2 points increase\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"extra attack\" : {\r\n\t\t\tname : \"Extra Attack\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can attack twice, instead of once, whenever I take the Attack action on my turn\",\r\n\t\t\t\t\"This increases to three at 15th level\",\r\n\t\t\t\t\"If I have the Multiattack action, I can use either that or extra attack on a turn, not both\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : (n < 15 ? 1 : 3) + \" attacks as an action on my turn\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"battle readiness\" : {\r\n\t\t\tname : \"Battle Readiness\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc(\"I have advantage on my Initiative rolls\"),\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"improved defense\" : {\r\n\t\t\tname : \"Improved Defense\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc(\"I gain a +1 bonus to AC\"),\r\n\t\t\textraAC : { mod : 1 }\r\n\t\t},\r\n\t\t\"indomitable\" : {\r\n\t\t\tname : \"Indomitable\",\r\n\t\t\tsource : [[\"T\", 147]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can reroll a failed saving throw, but must keep the new result\",\r\n\t\t\t\t\"I can use this once per long rest (twice at 20th-level)\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 11 ? \"\" : n < 20 ? 1 : 2 }),\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// Add three subclasses to the spellcaster sidekick\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"mage\", {\r\n\tregExpSearch : /^(?=.*mage)(?=.*sidekick).*$/i,\r\n\tsubname : \"Mage\",\r\n\tfullname : \"Spellcaster: Mage (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 4,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"wizard\",\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast wizard cantrips/spells I know, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"I can use an arcane focus as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"healer\", {\r\n\tregExpSearch : /^(?=.*healer)(?=.*sidekick).*$/i,\r\n\tsubname : \"Healer\",\r\n\tfullname : \"Spellcaster: Healer (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 5,\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"druid\"],\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast cleric and druid cantrips/spells I know, using Wisdom as my spellcasting ability\",\r\n\t\t\t\t\"I can use a holy symbol or druidic focus as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sidekick-spellcaster-tcoe\", \"prodigy\", {\r\n\tregExpSearch : /^(?=.*prodigy)(?=.*sidekick).*$/i,\r\n\tsubname : \"Prodigy\",\r\n\tfullname : \"Spellcaster: Prodigy (sidekick)\",\r\n\tsource : [[\"T\", 144]],\r\n\tabilitySave : 6,\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"bard\", \"warlock\"],\r\n\t\tlevel : [0, 5]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"T\", 144]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast bard and warlock cantrips/spells I know, using Cha as my spellcasting ability\",\r\n\t\t\t\t\"I can use an arcane focus or musical instrument as a spellcasting focus for my spells\",\r\n\t\t\t\t\"Whenever I gain a level, I can replace one cantrip/spell I know with another I'm allowed\"\r\n\t\t\t]),\r\n\t\t\tadditional : global_TCoE_Sidekick_fn.spellcasting_additional\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/pub_20201117_TCoE.js",
    "content": "var iFileName = \"pub_20201117_TCoE.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\", 15);\r\n// This file adds the content from Tasha's Cauldron of Everything to MPMB's Character Record Sheet\r\n\r\n/*\tACKNOWLEDGEMENTS\r\n\tThis file contains contributions from many different people over on the /r/mpmb subreddit and\r\n\tthe MPMB Discord server.\r\n\r\n\tMany contributions have been reworked by Safety-Orange to fix bugs, make texts more uniform,\r\n\tadhere to MPMB's standards, and/or adhere to the latest syntax version.\r\n\tCombined with the fact that many contributions haven't been individually tracked (on GitHub),\r\n\tit is no longer possible to assign specific additions to a single person.\r\n\r\n\tInstead, here is a list of people (account names on GitHub) who made contributions,\r\n\thelped collect materials, or were otherwise essential to this script coming to fruition,\r\n\tin no particular order:\r\n\t\t- Nod_Hero#2046 (Discord)\r\n\t\t- Smashman\r\n\t\t- Metacomet10\r\n\t\t- BraabHimself\r\n\t\t- AelarTheElfRogue\r\n\t\t- uhohspaghetti0\r\n\t\t- Undrhil\r\n\t\t- easyboy\r\n\t\t- SoggieWafflz\r\n\t\t- phelot\r\n\t\t- Cosaur\r\n\t\t- remcovandalen\r\n\t\t- Seneschal55\r\n\t\t- Gam90\r\n\t\t- CountVladmir\r\n\t\t- alastairmarchant\r\n\t\t- edimshuffling\r\n\t\t- githubtkompare\r\n\t\t- Holynight6\r\n\t\t- lizrdgizrd\r\n\r\n\tThink you're missing from this list? Please let me know!\r\n*/\r\n\r\n// Define the source\r\nSourceList.T = {\r\n\tname : \"Tasha's Cauldron of Everything\",\r\n\tabbreviation : \"TCoE\",\r\n\tabbreviationSpellsheet : \"T\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/tashas-cauldron-everything\",\r\n\tdate : \"2020/11/17\"\r\n};\r\n\r\n// Add Custom Lineage\r\nRaceList[\"custom lineage\"] = {\r\n\tregExpSearch : /^(?=.*custom)(?=.*lineage).*$/i,\r\n\tname : \"Custom lineage\",\r\n\tsource : [[\"T\", 8]],\r\n\tplural : \"Custom lineages\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscorestxt : \"+2 to one ability score of my choice\",\r\n\teval : function() { AddString('Feat Note 1', 'Custom lineage bonus feat', '; '); },\r\n\tremoveeval : function() { RemoveString('Feat Note 1', 'Custom lineage bonus feat'); },\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I gain either darkvision with a range of 60 ft or proficiency with a skill of my choice. Use the Racial Options button to select either one.\"\r\n\t])\r\n};\r\nAddRacialVariant(\"custom lineage\", \"darkvision\", {\r\n\tregExpSearch : /darkvision/i,\r\n\tsource : [[\"T\", 8]],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I have darkvision with a range of 60 ft.\"\r\n\t])\r\n});\r\nAddRacialVariant(\"custom lineage\", \"skill proficiency\", {\r\n\tregExpSearch : /skill proficiency/i,\r\n\tsource : [[\"T\", 8]],\r\n\tskillstxt : \"Choose any one skill\",\r\n\ttrait : \"Custom Lineage (+2 to one ability score of my choice)\" + desc([\r\n\t\t\"Size: I am Small or Medium (my choice).\",\r\n\t\t\"Feat: I gain one feat of my choice for which I qualify.\",\r\n\t\t\"Variable Trait: I have proficiency with a skill of my choice.\"\r\n\t])\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Artificer Class >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// [dupl_start] reprints from Eberron: Rising from the Last War (after 2020 errata)\r\nif (!SourceList[\"E:RLW\"]) {\r\n\tClassList.artificer = {\r\n\t\tregExpSearch : /^(?=.*artificer)(?!.*wizard).*$/i,\r\n\t\tname : \"Artificer\",\r\n\t\tsource : [[\"E:RLW\", 54], [\"T\", 9]],\r\n\t\tprimaryAbility : \"Intelligence\",\r\n\t\tabilitySave : 4,\r\n\t\tprereqs : \"Intelligence 13\",\r\n\t\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\t\tdie : 8,\r\n\t\tsaves : [\"Con\", \"Int\"],\r\n\t\tskillstxt : {\r\n\t\t\tprimary : \"Choose two from Arcana, History, Investigation, Medicine, Nature, Perception, and Sleight of Hand\"\r\n\t\t},\r\n\t\ttoolProfs : {\r\n\t\t\tprimary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\", [\"Artisan's tools\", 1]],\r\n\t\t\tsecondary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n\t\t},\r\n\t\tarmorProfs : {\r\n\t\t\tprimary : [true, true, false, true],\r\n\t\t\tsecondary : [true, true, false, true]\r\n\t\t},\r\n\t\tweaponProfs : {\r\n\t\t\tprimary : [true, false, [\"Firearms\"]]\r\n\t\t},\r\n\t\tequipment : \"Artificer starting equipment:\" +\r\n\t\t\t\"\\n \\u2022 Any two simple weapons;\" +\r\n\t\t\t\"\\n \\u2022 A light crossbow and 20 bolts;\" +\r\n\t\t\t\"\\n \\u2022 Studded leather armor -or- scale mail;\" +\r\n\t\t\t\"\\n \\u2022 Thieves' tools and a dungeoneer's pack;\" +\r\n\t\t\t\"\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\t\tsubclasses : [\"Artificer Specialist\", []],\r\n\t\tsubclassGainedLevel : 3,\r\n\t\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\t\tspellcastingFactor : 2,\r\n\t\tspellcastingFactorRoundupMulti : true,\r\n\t\tspellcastingKnown : {\r\n\t\t\tcantrips : [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tspells : \"list\",\r\n\t\t\tprepared : true\r\n\t\t},\r\n\t\tfeatures : {\r\n\t\t\t\"magical tinkering\" : {\r\n\t\t\t\tname : \"Magical Tinkering\",\r\n\t\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I use thieves/artisan's tools to give 1 property to a nonmagical tiny object:\",\r\n\t\t\t\t\t\" \\u2022 Emit light (5-ft radius bright light, equal dim), an odor, or a nonverbal sound\",\r\n\t\t\t\t\t\" \\u2022 Static visual effect on one surface, or emit a 6-second recorded message when tapped\",\r\n\t\t\t\t\t\"If I instill a property in more objects than I can have active, the oldest loses its property\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"Intelligence modifier of active objects\",\r\n\t\t\t\taction : [[\"action\", \" (add/remove)\"]],\r\n\t\t\t\t\"infuse item\" : {\r\n\t\t\t\t\tname : \"Infuse Item\",\r\n\t\t\t\t\textraname : \"Artificer 2\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 57]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"When I finish a long rest, I can turn nonmagical objects into magic items using my infusions\",\r\n\t\t\t\t\t\t\"I can attune to it immediately; If I infuse too many items, the oldest loses its magic\",\r\n\t\t\t\t\t\t\"The infusion lasts until my death + my Int mod in days, but ends if I unlearn the infusion\",\r\n\t\t\t\t\t\t\"Each infusion can only be used in one item at a time and only in appropriate items\",\r\n\t\t\t\t\t\t\"Whenever I gain an artificer level, I can replace an infusion I know with another\",\r\n\t\t\t\t\t\t\"I can use an infused item as a spellcasting focus\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t\t\t})\r\n\t\t\t\t},\r\n\t\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\t\textrachoice : \"infuse item\",\r\n\t\t\t\t\tminlevel : 2\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"spellcasting\" : {\r\n\t\t\t\tname : \"Spellcasting\",\r\n\t\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can cast prepared artificer cantrips/spells, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\t\"To cast, I must use thieves' or artisan's tools I'm proficient with as a spellcasting focus\",\r\n\t\t\t\t\t\"I can cast my prepared artificer spells as rituals if they have the ritual tag\",\r\n\t\t\t\t\t\"Whenever I gain an artificer level, I can swap one artificer cantrip I know for another\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\t\treturn [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4][idx] + \" cantrips known\";\r\n\t\t\t\t}),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (!spellObj.psionic && spName == \"artificer\" && spellObj.compMaterial === SpellsList[spellKey].compMaterial) {\r\n\t\t\t\t\t\t\t\tvar extraFocus = classes.known.artificer.subclass.indexOf(\"artillerist\") !== -1 && classes.known.artificer.level > 4 ? \"my arcane firearm, \" : classes.known.artificer.subclass.indexOf(\"armorer\") !== -1 && classes.known.artificer.level > 2 ? \"my arcane armor, \" : \"\";\r\n\t\t\t\t\t\t\t\tspellObj.compMaterial = (spellObj.compMaterial ? spellObj.compMaterial + \".\\n\\nAlso a\" : \"A\") + \"lways requires my artificer spellcasting focus: thieves' tools, any set of artisan's tools I'm proficient with, \" + extraFocus + \"or an item infused by me.\";\r\n\t\t\t\t\t\t\t\tif (GetFeatureChoice(\"classes\", \"artificer\", \"spellcasting\", true).indexOf(\"don't change component column on spell sheet\") != -1) {\r\n\t\t\t\t\t\t\t\t\t// do nothing if set to do so\r\n\t\t\t\t\t\t\t\t} else if (!spellObj.components) {\r\n\t\t\t\t\t\t\t\t\tspellObj.components = \"M\\u0192\";\r\n\t\t\t\t\t\t\t\t} else if (spellObj.components.indexOf(\"M\") == -1) {\r\n\t\t\t\t\t\t\t\t\tspellObj.components += \",M\\u0192\";\r\n\t\t\t\t\t\t\t\t} else if ((/M([^\\u0192\\u2020]|$)/).test(spellObj.components)) {\r\n\t\t\t\t\t\t\t\t\tspellObj.components = spellObj.components.replace(\"M\", \"M\\u0192\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My artificer spells always require me to use a spellcasting focus: thieves' tools, artisan's tools I'm proficient with, or an item infused by me.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t},\r\n\t\t\t\textrachoices : [\"Don't change component column on spell sheet\"],\r\n\t\t\t\textraname : \"Artificer Spellcasting\",\r\n\t\t\t\t\"don't change component column on spell sheet\" : {\r\n\t\t\t\t\tname : \"[Meta] Don't alter spell sheets\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 55], [\"T\", 11]],\r\n\t\t\t\t\tdescription: desc(\"The automation will not add M\\u0192 to each artificer spell on the generated spell sheets\")\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"infuse item\" : {\r\n\t\t\t\tname : \"Infuse Item\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 12]],\r\n\t\t\t\tminlevel : 2,\r\n\t\t\t\tdescription : desc('Use the \"Choose Feature\" button above to add Artificer Infusions to the third page'),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12) + \" infusions known; max \" + (n < 6 ? 2 : n < 10 ? 3 : n < 14 ? 4 : n < 18 ? 5 : 6) + \" infused items\";\r\n\t\t\t\t}),\r\n\t\t\t\textraname : \"Artificer Infusion\",\r\n\t\t\t\textrachoices : [\"Boots of the Winding Path (prereq: level 6 artificer)\", \"Enhanced Arcane Focus\", \"Enhanced Defense (armor)\", \"Enhanced Defense (shield)\", \"Enhanced Weapon\", \"Homunculus Servant\", \"Radiant Weapon (prereq: level 6 artificer)\", \"Repeating Shot\", \"Repulsion Shield (prereq: level 6 artificer)\", \"Resistant Armor (prereq: level 6 artificer)\", \"Returning Weapon\"],\r\n\t\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? 0 : n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : n < 18 ? 10 : 12;\r\n\t\t\t\t}),\r\n\t\t\t\t\"boots of the winding path (prereq: level 6 artificer)\" : {\r\n\t\t\t\t\tname : \"Boots of the Winding Path\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"The wearer can use a bonus action to teleport up to 15 ft to an unoccupied space it can see\",\r\n\t\t\t\t\t\t\"It must be a space that the wearer had occupied some time during the current turn\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"pair of boots; requires attunement\",\r\n\t\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\t\tmagicitemsAdd : [\"Boots of the Winding Path\"]\r\n\t\t\t\t},\r\n\t\t\t\t\"enhanced arcane focus\" : {\r\n\t\t\t\t\tname : \"Enhanced Arcane Focus\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\t\tdescription: desc(\"The holder has a bonus to spell attack rolls and ignores half cover with spell attacks\"),\r\n\t\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\t\treturn \"rod/staff/wand; attunement; +\" + (n < 10 ? 1 : 2);\r\n\t\t\t\t\t}),\r\n\t\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\t\tAddMagicItem(\"Enhanced Arcane Focus +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\t\tRemoveMagicItem(\"enhanced arcane focus, +1 or +2\");\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"enhanced defense (armor)\" : {\r\n\t\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (shield)\") == -1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\t\tAddMagicItem(\"Armor +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\t\tRemoveMagicItem(\"armor, +1, +2, or +3\");\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"enhanced defense (shield)\" : {\r\n\t\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\t\treturn \"armor/shield; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tprereqeval : function(v) {\r\n\t\t\t\t\t\treturn GetFeatureChoice(\"classes\", \"artificer\", \"infuse item\", true).indexOf(\"enhanced defense (armor)\") == -1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\t\tAddMagicItem(\"Shield +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\t\tRemoveMagicItem(\"shield, +1, +2, or +3\");\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"enhanced weapon\" : {\r\n\t\t\t\t\tname : \"Enhanced Weapon\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\t\treturn \"simple/martial weapon; +\" + (n < 10 ? 1 : 2) + \" magical\";\r\n\t\t\t\t\t}),\r\n\t\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\t\tAddMagicItem(\"Weapon +\" + (classes.known.artificer.level < 10 ? 1 : 2));\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\t\tRemoveMagicItem(\"weapon, +1, +2, or +3\");\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"homunculus servant\" : {\r\n\t\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"The item I infuse becomes the heart of a homunculus that immediately forms around it\",\r\n\t\t\t\t\t\t\"I determine its appearance; It is friendly to me and my allies and obeys my commands\",\r\n\t\t\t\t\t\t'See \"Homunculus Servant\" on a companion page to see its game statistics'\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"gem or crystal of 100+ gp\",\r\n\t\t\t\t\taction : [[\"bonus action\", \" (command)\"]],\r\n\t\t\t\t\tcreaturesAdd : [[\"Homunculus Servant\"]],\r\n\t\t\t\t\tcreatureOptions : [{\r\n\t\t\t\t\t\tname : \"Homunculus Servant\",\r\n\t\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\t\t\tsize : 5,\r\n\t\t\t\t\t\ttype : \"Construct\",\r\n\t\t\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\t\t\tac : 13,\r\n\t\t\t\t\t\thp : 3,\r\n\t\t\t\t\t\thd : [2, 4],\r\n\t\t\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\t\t\tspeed : \"20 ft, fly 30 ft\",\r\n\t\t\t\t\t\tscores : [4, 15, 12, 10, 10, 7],\r\n\t\t\t\t\t\tsaves : [\"\", 4, \"\", \"\", \"\", \"\"],\r\n\t\t\t\t\t\tskills : {\r\n\t\t\t\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\t\t\t\"stealth\" : 4\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\t\t\tcondition_immunities : \"exhaustion, poisoned\",\r\n\t\t\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\t\t\tpassivePerception : 14,\r\n\t\t\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\t\t\tattacksAction : 1,\r\n\t\t\t\t\t\tattacks : [{\r\n\t\t\t\t\t\t\tname : \"Force Strike\",\r\n\t\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t\t\t}],\r\n\t\t\t\t\t\tfeatures : [{\r\n\t\t\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\t\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t\t\t}],\r\n\t\t\t\t\t\ttraits : [{\r\n\t\t\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\t\t\tdescription : \"The homunculus regains 2d6 hit points whenever the Mending spell is cast on it. Its HP total is equal to 1 + its creator's artificer level + its creator's Intelligence modifier. If it or its creator dies, the homunculus vanishes, leaving its heart in its space.\"\r\n\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\tname : \"Evasion\",\r\n\t\t\t\t\t\t\tdescription : \"If the homunculus is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, it instead takes no damage if it succeeds on the saving throw, and only half damage if it fails. It can't use this trait if it's incapacitated.\"\r\n\t\t\t\t\t\t}],\r\n\t\t\t\t\t\tactions : [{\r\n\t\t\t\t\t\t\tname : \"Channel Magic\",\r\n\t\t\t\t\t\t\tdescription : \"As a reaction, the homunculus delivers a spell cast by its creator that has a range of touch. The homunculus must be within 120 ft of its creator to do so.\"\r\n\t\t\t\t\t\t}],\r\n\t\t\t\t\t\theader : \"Construct\",\r\n\t\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\t\t\tHDobj.alt.push(1 + intMod + artLvl);\r\n\t\t\t\t\t\t\t\tHDobj.altStr.push(\" = 1 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + \" + artLvl + \" from its creator's artificer level\");\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}]\r\n\t\t\t\t},\r\n\t\t\t\t\"radiant weapon (prereq: level 6 artificer)\" : {\r\n\t\t\t\t\tname : \"Radiant Weapon\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"The weapon has a +1 bonus to attack and damage rolls made with it and it sheds light\",\r\n\t\t\t\t\t\t\"As a bonus action, its wielder can start/stop the light, 30-ft radius bright + 30 ft dim light\",\r\n\t\t\t\t\t\t\"The weapon has 4 charges, regaining 1d4 expended charges daily at dawn\",\r\n\t\t\t\t\t\t\"As a reaction when hit by an attack, the wielder can expend 1 charge to blind its attacker\",\r\n\t\t\t\t\t\t\"The attacker makes a Con save (my spell save DC) or is blinded until its next turn ends\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"simple/martial weapon; requires attunement\",\r\n\t\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\t\tmagicitemsAdd : [\"Radiant Weapon\"]\r\n\t\t\t\t},\r\n\t\t\t\t\"repeating shot\" : {\r\n\t\t\t\t\tname : \"Repeating Shot\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"The weapon requiring ammunition has a +1 bonus to attack and damage rolls made with it\",\r\n\t\t\t\t\t\t\"It magically produces one piece of ammunition whenever it is used to make a ranged attack\",\r\n\t\t\t\t\t\t\"Thus, it doesn't require ammunition and ignores the loading property if it has it\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"weapon with ammo; requires attunement\",\r\n\t\t\t\t\tmagicitemsAdd : [\"Repeating Shot\"]\r\n\t\t\t\t},\r\n\t\t\t\t\"repulsion shield (prereq: level 6 artificer)\" : {\r\n\t\t\t\t\tname : \"Repulsion Shield\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"The shield gives its wearer an extra +1 bonus to AC; It has 4 charges, regaining 1d4 daily\",\r\n\t\t\t\t\t\t\"As a reaction when hit in melee, the wearer can use 1 charge to push the attacker 15 ft\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"shield; requires attunement\",\r\n\t\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\t\tmagicitemsAdd : [\"Repulsion Shield\"]\r\n\t\t\t\t},\r\n\t\t\t\t\"resistant armor (prereq: level 6 artificer)\" : {\r\n\t\t\t\t\tname : \"Resistant Armor\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"The armor gives its wearer resistance to one type of damage, chosen at the time of infusion\",\r\n\t\t\t\t\t\t\"Choose from: acid,\tcold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\t\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\t\t\t\tmagicitemsAdd : [\"Armor of Resistance\"]\r\n\t\t\t\t},\r\n\t\t\t\t\"returning weapon\" : {\r\n\t\t\t\t\tname : \"Returning Weapon\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\t\t\t\tdescription : \"After being used for a ranged attack, the weapon returns immediately; +1 magical bonus\",\r\n\t\t\t\t\tadditional : \"weapon with the thrown property\",\r\n\t\t\t\t\tmagicitemsAdd : [\"Returning Weapon\"]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"the right tool for the job\" : {\r\n\t\t\t\tname : \"The Right Tool for the Job\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription: \" [using thieves' or artisan's tools]\" + desc(\"In 1 hour (during a rest) I can create a set of artisan's tools that last until I do so again\"),\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Artificer Specialist\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t'Choose a specialism and put it in the \"Class\" field on the first page',\r\n\t\t\t\t\t\"Choose either alchemist, artillerist, or battle smith\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"tool expertise\" : {\r\n\t\t\t\tname : \"Tool Expertise\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : \" [expertise with all tools I'm proficient with]\",\r\n\t\t\t\tskillstxt : \"Expertise with all tools I'm proficient with\",\r\n\t\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t\t},\r\n\t\t\t\"flash of genius\" : {\r\n\t\t\t\tname : \"Flash of Genius\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\t\tminlevel : 7,\r\n\t\t\t\tdescription: desc(\"As a reaction when I or another in 30 ft make a check/save, I can add my Int mod to it\"),\r\n\t\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\t\"magic item adept\" : {\r\n\t\t\t\tname : \"Magic Item Adept\",\r\n\t\t\t\tsource : [[\"E:RLW\", 57], [\"T\", 13]],\r\n\t\t\t\tminlevel : 10,\r\n\t\t\t\tdescription: desc(\"It takes me half the normal time and gold to craft common and uncommon magic items\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 10 ? \"\" : \"attune to \" + (n < 14 ? 4 : n < 18 ? 5 : 6) + \" magic items\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"spell-storing item\" : {\r\n\t\t\t\tname : \"Spell-Storing Item\",\r\n\t\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 13]],\r\n\t\t\t\tminlevel : 11,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can infuse a 1st-/2nd-level artificer spell into an item I touch\",\r\n\t\t\t\t\t\"It has to be a weapon or spellcasting focus for me; Stored spells are lost if I do this again\",\r\n\t\t\t\t\t\"The spell must have a casting time of 1 action, but I need not have it prepared\",\r\n\t\t\t\t\t\"A creature holding an infused item can use an action to cast the spell, using my abilities\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"cast stored spell\",\r\n\t\t\t\tusages : \"2\\xD7 Int mod per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(2, Number(What('Int Mod')) * 2);\",\r\n\t\t\t\trecovery : typePF ? \"LR\" : \"long rest\"\r\n\t\t\t},\r\n\t\t\t\"magic item savant\" : {\r\n\t\t\t\tname : \"Magic Item Savant\",\r\n\t\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription : \" [ignore class/race/spell/level attune require.]\"\r\n\t\t\t},\r\n\t\t\t\"soul of artifice\" : {\r\n\t\t\t\tname : \"Soul of Artifice\",\r\n\t\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\t\tminlevel : 20,\r\n\t\t\t\tdescription : \" [+1 on all saves per attuned magic item]\\n   As a reaction when I'm reduced to 0 HP, I can end one infusion to drop to 1 HP instead\",\r\n\t\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\tsavetxt : {\r\n\t\t\t\t\ttext : [\"+1 to all saves per attuned magic item\"]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tprereqLvl6 : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\tprereqLvl10 : function(v) { return classes.known.artificer.level >= 10; },\r\n\t\tprereqLvl14 : function(v) { return classes.known.artificer.level >= 14; },\r\n\t};\r\n\r\n\t// Set the Artificer infusion list for Replicate Magic Item\r\n\tRunFunctionAtEnd(function() {\r\n\t\tvar artMi = [\r\n\t\t\t// 2nd-level artificer\r\n\t\t\t[\"alchemy jug\", 2],\r\n\t\t\t[\"bag of holding\", 2],\r\n\t\t\t[\"cap of water breathing\", 2],\r\n\t\t\t[\"goggles of night\", 2],\r\n\t\t\t[\"rope of climbing\", 2],\r\n\t\t\t[\"sending stones\", 2],\r\n\t\t\t[\"wand of magic detection\", 2],\r\n\t\t\t[\"wand of secrets\", 2],\r\n\t\t\t// 6th-level artificer\r\n\t\t\t[\"boots of elvenkind\", 6],\r\n\t\t\t[\"cloak of elvenkind\", 6],\r\n\t\t\t[\"cloak of the manta ray\", 6],\r\n\t\t\t[\"eyes of charming\", 6],\r\n\t\t\t[\"gloves of thievery\", 6],\r\n\t\t\t[\"lantern of revealing\", 6],\r\n\t\t\t[\"pipes of haunting\", 6],\r\n\t\t\t[\"ring of water walking\", 6],\r\n\t\t\t// 10th-level artificer\r\n\t\t\t[\"boots of striding and springing\", 10],\r\n\t\t\t[\"boots of the winterlands\", 10],\r\n\t\t\t[\"bracers of archery\", 10],\r\n\t\t\t[\"brooch of shielding\", 10],\r\n\t\t\t[\"cloak of protection\", 10],\r\n\t\t\t[\"eyes of the eagle\", 10],\r\n\t\t\t[\"gauntlets of ogre power\", 10],\r\n\t\t\t[\"gloves of missile snaring\", 10],\r\n\t\t\t[\"gloves of swimming and climbing\", 10],\r\n\t\t\t[\"hat of disguise\", 10],\r\n\t\t\t[\"headband of intellect\", 10],\r\n\t\t\t[\"helm of telepathy\", 10],\r\n\t\t\t[\"medallion of thoughts\", 10],\r\n\t\t\t[\"necklace of adaptation\", 10], // TCoE addition\r\n\t\t\t[\"periapt of wound closure\", 10],\r\n\t\t\t[\"pipes of the sewers\", 10],\r\n\t\t\t[\"quiver of ehlonna\", 10],\r\n\t\t\t[\"ring of jumping\", 10],\r\n\t\t\t[\"ring of mind shielding\", 10],\r\n\t\t\t[\"slippers of spider climbing\", 10],\r\n\t\t\t[\"ventilating lung\", 10],\r\n\t\t\t[\"winged boots\", 10],\r\n\t\t\t// 14th-level artificer\r\n\t\t\t[\"amulet of health\", 14],\r\n\t\t\t[\"arcane propulsion arm\", 14],\r\n\t\t\t[\"belt of giant strength\", 14, \"hill (str 21, rare)\"],\r\n\t\t\t[\"boots of levitation\", 14],\r\n\t\t\t[\"boots of speed\", 14],\r\n\t\t\t[\"bracers of defense\", 14],\r\n\t\t\t[\"cloak of the bat\", 14],\r\n\t\t\t[\"dimensional shackles\", 14],\r\n\t\t\t[\"gem of seeing\", 14],\r\n\t\t\t[\"horn of blasting\", 14],\r\n\t\t\t[\"ring of free action\", 14],\r\n\t\t\t[\"ring of protection\", 14],\r\n\t\t\t[\"ring of the ram\", 14]\r\n\t\t];\r\n\t\t// add all common items (except potions and scrolls)\r\n\t\tfor (var mi in MagicItemsList) {\r\n\t\t\tvar aMI = MagicItemsList[mi];\r\n\t\t\tif (aMI.type && !(/potion|scroll/i).test(aMI.type) &&\r\n\t\t\t\t( (!aMI.rarity && aMI.choices) || (aMI.rarity && aMI.rarity.toLowerCase() === \"common\") )\r\n\t\t\t) {\r\n\t\t\t\t// only look at choices if the main object has no rarity (i.e. the choices have different rarities)\r\n\t\t\t\tif (!aMI.rarity && aMI.choices) {\r\n\t\t\t\t\tfor (var c = 0; c < aMI.choices.length; c++) {\r\n\t\t\t\t\t\tvar choiceNmLC = aMI.choices[c].toLowerCase();\r\n\t\t\t\t\t\tvar aMIchoice = aMI[choiceNmLC];\r\n\t\t\t\t\t\t// skip if not common rarity or a potion or a scroll\r\n\t\t\t\t\t\tif (!aMIchoice || !aMIchoice.rarity || aMIchoice.rarity.toLowerCase() !== \"common\" || (/potion|scroll/i).test(aMIchoice.type)) continue;\r\n\t\t\t\t\t\tartMi.push([mi, 0, choiceNmLC]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// the main object has rarity \"common\", so add it as a whole\r\n\t\t\t\t\tartMi.push([mi]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar theObj = ClassList.artificer.features[\"infuse item\"];\r\n\t\tfor (var a = 0; a < artMi.length; a++) {\r\n\t\t\tvar MI0 = artMi[a][0];\r\n\t\t\tvar MI1 = artMi[a][1];\r\n\t\t\tvar MI2 = artMi[a][2];\r\n\t\t\tvar anArtMi = MagicItemsList[MI0];\r\n\t\t\tif (!anArtMi) continue;\r\n\t\t\tif (MI2 && anArtMi[MI2]) {\r\n\t\t\t\tanArtMi = {\r\n\t\t\t\t\tname : anArtMi[MI2].name ? anArtMi[MI2].name : anArtMi.name + \" [\" + MI2.capitalize() + \"]\",\r\n\t\t\t\t\trarity : anArtMi[MI2].rarity ? anArtMi[MI2].rarity : anArtMi.rarity,\r\n\t\t\t\t\tsource : anArtMi[MI2].source ? anArtMi[MI2].source : anArtMi.source,\r\n\t\t\t\t\tattunement : anArtMi[MI2].attunement !== undefined ? anArtMi[MI2].attunement : anArtMi.attunement\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvar theI = anArtMi.name + (MI1 ? \" (prereq: level \" + MI1 + \" artificer)\" : \"\");\r\n\t\t\tvar theILC = theI.toLowerCase();\r\n\t\t\tif (theObj[theILC]) continue;\r\n\t\t\ttheObj[theILC] = {\r\n\t\t\t\tname : anArtMi.name,\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tsource : anArtMi.source,\r\n\t\t\t\tmagicitemsAdd : [anArtMi.name],\r\n\t\t\t\tadditional : anArtMi.attunement ? \"requires attunement\" : undefined,\r\n\t\t\t\tprereqeval : MI1 && MI1 > 2 ? ClassList.artificer[\"prereqLvl\" + MI1] : undefined,\r\n\t\t\t\tsubmenu : \"Replicate Magic Item\" + (MI1 ? \" (prereq: level \" + (\" \"+MI1).slice(-2) + \" artificer)\" : \" (common magic items) [\" + getLetterRange(anArtMi.name, [\"A-F\", \"G-Q\", \"R-Z\"]) + \"]\")\r\n\t\t\t};\r\n\t\t\ttheObj.extrachoices.push(theI);\r\n\t\t};\r\n\t});\r\n\r\n\t// Add the Alchemist specialism\r\n\tAddSubClass(\"artificer\", \"alchemist\", {\r\n\t\tregExpSearch : /^(?=.*alchemist)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Alchemist\",\r\n\t\tfullname : \"Alchemist\",\r\n\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools Proficiency\",\r\n\t\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with alchemist's supplies]\",\r\n\t\t\t\ttoolProfs : [\"Alchemist's supplies\"],\r\n\t\t\t\tspellcastingExtra : [\"healing word\", \"ray of sickness\", \"flaming sphere\", \"melf's acid arrow\", \"gaseous form\", \"mass healing word\", \"blight\", \"death ward\", \"cloudkill\", \"raise dead\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Experimental Elixir\",\r\n\t\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 14]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a long rest I can produce a number of elixirs in empty flasks I touch\",\r\n\t\t\t\t\t\"Also, as an action, I can expend a spell slot to create one elixir in a touched empty flask\",\r\n\t\t\t\t\t\"I need alchemist supplies on my person to do this; An elixir lasts until my next long rest\",\r\n\t\t\t\t\t\"For their effects, see the experimental elixir table on a Notes page; They work like potions\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 6 ? 1 : n < 15 ? 2 : 3) + \" elixir\" + (n < 6 ? \"\" : \"s\");\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Experimental Elixir Table\",\r\n\t\t\t\t\tnote : [\r\n\t\t\t\t\t\t\"Whenever I finish a long rest, I can magically produce a number of experimental elixir in empty flasks I touch. I can create one at 3rd level, two at 6th level, and three at 15th level.\",\r\n\t\t\t\t\t\t\"Creating an experimental elixir requires me to have alchemist's supplies on my person, and any elixir created like this lasts until it is drunk or until the end of my next long rest.\",\r\n\t\t\t\t\t\t\"I can create additional experimental elixirs by expending a spell slot of 1st level or higher for each one. When I do so, I use my action to create the elixir in an empty flask I touch.\",\r\n\t\t\t\t\t\t\"As an action, a creature can drink the elixir or administer it to an incapacitated creature.\",\r\n\t\t\t\t\t\t\"The effect of an elixir when someone drinks it is found on the table below. Roll to determine the effect for each elixir I create when finishing a long rest. I can choose the effect from the table for those created by expending a spell slot.\",\r\n\t\t\t\t\t\t\"\\n  D6\\tEFFECT\",\r\n\t\t\t\t\t\t\"1\\tHealing: The drinker regains a number of hit points equal to 2d4 + my Intelligence modifier.\",\r\n\t\t\t\t\t\t\"2\\tSwiftness: The drinker's walking speed increases by 10 ft for 1 hour.\",\r\n\t\t\t\t\t\t\"3\\tResilience: The drinker gains a +1 bonus to AC for 10 minutes.\",\r\n\t\t\t\t\t\t\"4\\tBoldness: The drinker can roll a d4 and add the number rolled to every attack roll and saving throw they make for the next minute.\",\r\n\t\t\t\t\t\t\"5\\tFlight: The drinker gains a flying speed of 10 ft for 10 minutes.\",\r\n\t\t\t\t\t\t\"6\\tTransformation: The drinker's body is transformed as if by the alter self spell. The drinker determines the transformation caused by the spell, the effects of which last for 10 minutes.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature5\" : {\r\n\t\t\t\tname : \"Alchemical Savant\",\r\n\t\t\t\tsource : [[\"E:RLW\", 58], [\"T\", 15]],\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I cast spells using alchemist's supplies as my spellcasting focus, I can enhance them\",\r\n\t\t\t\t\t\"I add my Int mod to one roll of acid, fire, necrotic, or poison damage, or restoring HP\"\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1 && (/acid|fire|necrotic|poison/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Artificer spells that deal acid, fire, necrotic, or poison damage which I cast while using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one damage die roll.\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\t\tvar toAdd = Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"acid|fire|necro\\\\.?|necrotic|poison\", toAdd, true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", toAdd, true, true)) {\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Artificer spells I cast using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one die rolled for dealing acid, fire, necrotic, or poison damage, or when restoring hit points.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Restorative Reagents\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Drinking my experimental elixirs now also grants 2d6 + my Int mod in temp HP (min 1)\",\r\n\t\t\t\t\t\"I can cast Lesser Restoration with alchemist's supplies without a spell slot (Int mod times)\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : \"Int mod per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tlimfeaname : \"Restorative Reagents: Lesser Restoration\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Restorative Reagents\",\r\n\t\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\t\tfirstCol : \"Sp\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"lesser restoration\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\t\tchanges : \"When using my Restorative Reagents class feature, I can cast Lesser Restoration a number of times per long rest equal to my Intelligence modifier. To do so, I have to use alchemist's supplies as my spellcasting focus.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Chemical Mastery\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 15]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tadditional: \"each spell 1\\xD7 per long rest\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I have resistance to acid and poison damage and immunity to being poisoned\",\r\n\t\t\t\t\t\"I can cast Greater Restoration and Heal each once per long rest without a spell slot\",\r\n\t\t\t\t\t\"I need alchemist's supplies as a focus for it, but the spells require no material components\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Acid\", \"Poison\"],\r\n\t\t\t\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Chemical Mastery\",\r\n\t\t\t\t\tspells : [\"greater restoration\", \"heal\"],\r\n\t\t\t\t\tselection : [\"greater restoration\", \"heal\"],\r\n\t\t\t\t\tfirstCol : \"oncelr\",\r\n\t\t\t\t\ttimes : 2\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"greater restoration\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\t\tdescription : \"Reduce exhaustion 1 lvl or end charm, petrify, curse, one ability score reduction, or max HP reduction\",\r\n\t\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Greater Restoration once per long rest without using a spell slot or requiring other material components.\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"heal\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\t\tallowUpCasting : false,\r\n\t\t\t\t\t\tchanges : \"When using my Chemical Mastery class feature and alchemist's supplies as my spellcasting focus, I can cast Heal once per long rest without using a spell slot.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// Add the Artillerist specialism\r\n\tAddSubClass(\"artificer\", \"artillerist\", {\r\n\t\tregExpSearch : /^(?=.*artillerist)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Artillerist\",\r\n\t\tfullname : \"Artillerist\",\r\n\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools Proficiency\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with woodcarver's tools]\",\r\n\t\t\t\ttoolProfs : [\"Woodcarver's tools\"],\r\n\t\t\t\tspellcastingExtra : [\"shield\", \"thunderwave\", \"scorching ray\", \"shatter\", \"fireball\", \"wind wall\", \"ice storm\", \"wall of fire\", \"cone of cold\", \"wall of force\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can use woodcarver's or smith's tools to create an eldritch cannon in 5 ft\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+) to create one cannon\",\r\n\t\t\t\t\t\"I decide its size (Small/Tiny), appearance, type: flamethrower, force ballista, or protector\",\r\n\t\t\t\t\t\"It disappears after 1 hour, when reduced to 0 HP, or if I dismiss it as an action\",\r\n\t\t\t\t\t\"As a bonus action when within 60 ft of it, I can activate it to move and do its action\",\r\n\t\t\t\t\t\"I can't have multiple cannons; Select \\\"Eldritch Cannon\\\" on a companion page for its stats\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\",\r\n\t\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : n < 15 ? \"1 cannon\" : \"2 cannons\";\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \" (create/dismiss)\"], [\"bonus action\", \" (activate)\"]],\r\n\t\t\t\tcreaturesAdd : [[\"Eldritch Cannon\"]],\r\n\t\t\t\tcreatureOptions : [{\r\n\t\t\t\t\tname : \"Eldritch Cannon\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 17]],\r\n\t\t\t\t\tsize : [4, 5],\r\n\t\t\t\t\ttype : \"Object\",\r\n\t\t\t\t\talignment : \"\",\r\n\t\t\t\t\tac : 18,\r\n\t\t\t\t\thp : 5,\r\n\t\t\t\t\thd : [\"\", \"\"],\r\n\t\t\t\t\tspeed : \"15 ft, climb 15 ft\",\r\n\t\t\t\t\tscores : [10, 10, 10, 10, 10, 10],\r\n\t\t\t\t\tdamage_immunities : \"poison, psychic\",\r\n\t\t\t\t\tpassivePerception : 10,\r\n\t\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\t\tattacksAction : 0,\r\n\t\t\t\t\tattacks : [{\r\n\t\t\t\t\t\tname : \"Flamethrower\",\r\n\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\tdamage : [2, 8, \"fire\"],\r\n\t\t\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\t\t\tdescription : \"Dex save, success - half damage; Unattended flammable objects ignite\",\r\n\t\t\t\t\t\tdc : true,\r\n\t\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\ttooltip : \"The cannon exhales fire in an adjacent 15-ft cone that its creator designates. Each creature in that area must make a Dexterity saving throw against its creator's artificer spell save DC, taking 2d8 fire damage on a failed save or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Force Ballista\",\r\n\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\tdamage : [2, 8, \"force\"],\r\n\t\t\t\t\t\trange : \"120 ft\",\r\n\t\t\t\t\t\tdescription : \"Creature hit is pushed 5 ft away\",\r\n\t\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\ttooltip : \"The cannon's creator makes a ranged spell attack, originating from the cannon, at one creature or object within 120 ft of it. On a hit, the target takes 2d8 force damage, and if the target is a creature, it is pushed up to 5 ft away from the cannon.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Detonate\",\r\n\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\tdamage : [3, 8, \"force\"],\r\n\t\t\t\t\t\trange : \"20-ft radius\",\r\n\t\t\t\t\t\tdescription : \"Dex save, success - half damage; Destroys cannon\",\r\n\t\t\t\t\t\tdc : true,\r\n\t\t\t\t\t\tuseSpellMod : \"artificer\",\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\ttooltip : \"As an action, its creator can command the cannon to detonate if its creator is within 60 ft of it. Doing so destroys the cannon and forces each creature within 20 ft of it to make a Dexterity saving throw against its creator's artificer spell save DC, taking 3d8 force damage on a failed save or half as much damage on a successful one.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tfeatures : [{\r\n\t\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\t\tdescription : \"The cannon regains 2d6 HP whenever Mending is cast on it.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Cannon Type\",\r\n\t\t\t\t\t\tdescription : \"Upon creation, the creator decides what type of cannon it is: Flamethrower, Force Ballista, or Protector. What feature/attack it can use depends on its type.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Protector\",\r\n\t\t\t\t\t\tdescription : \"The cannon emits a burst of positive energy that grants itself and each creature of its creator's choice within 10 ft of it a number of temporary hit points equal to 1d8 + its creator's Intelligence modifier (minimum of +1).\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\ttraits : [{\r\n\t\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\t\tdescription : \"As an object, the cannon only acts when activated by its creator, uses its creator's artificer spell attack and save DC, and has five times the artificer level in HP. It disappears after 1 hour, when reduced to 0 HP, or when its creator dismisses it as an action.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Activation\",\r\n\t\t\t\t\t\tdescription : \"The creator of the cannon can activate it as a bonus action while within 60 ft of it. Once activated, the cannon does as instructed, moves and uses the action associated with its type: flamethrower attack, force ballista attack, or protector feature.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Detonate (Artillerist 9)\",\r\n\t\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\t\tdescription : \"The creator of the cannon, can use an action to detonate the cannon when within 60 ft of it, see the attack section. The cannon's attacks now deal 3d8 damage.\",\r\n\t\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t\t// add the Detonate attack entry\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"Detonate\");\r\n\t\t\t\t\t\t\t// Upgrade the damage for the attacks\r\n\t\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"3d8\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\t\t// remove the Detonate attack entry\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t\t\t\t// Reset the damage for the attacks\r\n\t\t\t\t\t\t\tfor (var i = 1; i <= 2; i++) {\r\n\t\t\t\t\t\t\t\tValue(prefix + \"BlueText.Comp.Use.Attack.\" + i + \".Damage Die\", \"2d8\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Shimmering Field (Artillerist 15)\",\r\n\t\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\t\tdescription : \"The creator of the cannon and their allies have half cover while within 10 ft of the cannon.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\t\theader : \"Object\",\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\t\tHDobj.alt.push(5 * artLvl);\r\n\t\t\t\t\t\t\tHDobj.altStr.push(\" = 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t\t},\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// remove the Detonate attack if adding this creature before artificer level 9\r\n\t\t\t\t\t\tif (lvl[0] < 9) Value(prefix + \"Comp.Use.Attack.3.Weapon Selection\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature5\" : {\r\n\t\t\t\tname : \"Arcane Firearm\",\r\n\t\t\t\tsource : [[\"E:RLW\", 59], [\"T\", 18]],\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tdescription : \" [lasts until I use this feature again]\" + desc([\r\n\t\t\t\t\t\"After a long rest, I can use woodcarver's tools to enhance a wand, staff, or rod\",\r\n\t\t\t\t\t\"If I use this as my spellcasting focus for an artificer spell, I add +1d8 to one damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer\") !== -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\r\n\t\t\t\t\t\t\t\tvar d8Regex = /(\\d+)d8/;\r\n\t\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd8') != -1) {\r\n\t\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd8', 'Cd8');\r\n\t\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd8') != -1) {\r\n\t\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd8', 'Qd8');\r\n\t\t\t\t\t\t\t\t} else if (d8Regex.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d8Regex, Number(fields.Damage_Die.replace(d8Regex, '$1')) + 1 + 'd8');\r\n\t\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d8 dmg\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d8';\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\",\r\n\t\t\t\t\t\t10\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\") return;\r\n\t\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d8\", true, true);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I use my arcane firearm as a spellcasting focus for an artificer spell, I can add +1d8 to one of the spell's damage rolls.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Explosive Cannon\",\r\n\t\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription: desc(\"My eldritch cannons deal +1d8 damage; As an action, I can detonate a cannon in 60 ft\"),\r\n\t\t\t\taction : [[\"action\", \"Eldritch Cannon (detonate)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Fortified Position\",\r\n\t\t\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : \" [cannons grant half cover in 10 ft to allies]\" + desc([\r\n\t\t\t\t\t\"I can now have two cannons at the same time and activate both with one bonus action\",\r\n\t\t\t\t\t\"I can create 2 eldritch cannons with the same action (still only one with a spell slot)\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// Add the Battle Smith specialism\r\n\tAddSubClass(\"artificer\", \"battle smith\", {\r\n\t\tregExpSearch : /^(?=.*battle)(?=.*smith)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Battle Smith\",\r\n\t\tfullname : \"Battle Smith\",\r\n\t\tsource : [[\"E:RLW\", 60], [\"T\", 18]],\r\n\t\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Battle Ready \\u0026 Tool Proficiency\",\r\n\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with martial weapons and smith's tools\",\r\n\t\t\t\t\t\"I can use my Intelligence modifier instead of Strength or Dexterity for magic weapons\"\r\n\t\t\t\t]),\r\n\t\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\t\tspellcastingExtra : [\"heroism\", \"shield\", \"branding smite\", \"warding bond\", \"aura of vitality\", \"conjure barrage\", \"aura of purity\", \"fire shield\", \"banishing smite\", \"mass cure wounds\"],\r\n\t\t\t\tweaponProfs : [false, true],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isSpell && (v.theWea.isMagicWeapon || v.thisWeapon[1]) && (fields.Mod === 1 || fields.Mod === 2) && Number(What(\"Int\")) > Number(What(fields.Mod === 1 ? \"Str\" : \"Dex\"))) {\r\n\t\t\t\t\t\t\t\tfields.Mod = 4;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t'I can use my Intelligence modifier instead of Strength or Dexterity for the attack and damage rolls of magic weapons.'\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Steel Defender\",\r\n\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I end a long rest, I can use smith's tools to create a steel defender\",\r\n\t\t\t\t\t\"I determine its appearance; It obeys my commands and it acts on my initiative, after me\",\r\n\t\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\t\"It can take reactions and move on its turn even if I don't command it\",\r\n\t\t\t\t\t\"I can't have multiple at once; Select \\\"Steel Defender\\\" on a companion page for its stats\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (command)\"], [\"action\", \" (restore)\"]],\r\n\t\t\t\tcreaturesAdd : [[\"Steel Defender\"]],\r\n\t\t\t\tcreatureOptions : [{\r\n\t\t\t\t\tname : \"Steel Defender\",\r\n\t\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 19]],\r\n\t\t\t\t\tsize : 3,\r\n\t\t\t\t\ttype : \"Construct\",\r\n\t\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\t\tac : 15,\r\n\t\t\t\t\thp : 12,\r\n\t\t\t\t\thd : [2, 8],\r\n\t\t\t\t\thdLinked : [\"artificer\"],\r\n\t\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\t\tscores : [14, 12, 14, 4, 10, 6],\r\n\t\t\t\t\tsaves : [\"\", 3, 4, \"\", \"\", \"\"],\r\n\t\t\t\t\tskills : {\r\n\t\t\t\t\t\t\"athletics\" : 4,\r\n\t\t\t\t\t\t\"perception\" : 4\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\t\t\t\t\tpassivePerception : 14,\r\n\t\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\t\tattacksAction : 1,\r\n\t\t\t\t\tattacks : [{\r\n\t\t\t\t\t\tname : \"Force-Empowered Rend\",\r\n\t\t\t\t\t\tability : 4,\r\n\t\t\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\tuseSpellMod : \"artificer\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\t\tability : 0,\r\n\t\t\t\t\t\tdamage : [1, 4, \"force\"],\r\n\t\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\t\tdescription : \"After using the reaction, the attacker takes this damage, no attack roll required\",\r\n\t\t\t\t\t\tmodifiers : [\"-Prof\", \"oInt\"],\r\n\t\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tfeatures : [{\r\n\t\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\t\tdescription : \"The steel defender obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Vigilant\",\r\n\t\t\t\t\t\tdescription : \"The \" + (typePF ? \"\" : \"steel \") + \"defender can't be surprised.\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\ttraits : [{\r\n\t\t\t\t\t\tname : \"Healing\",\r\n\t\t\t\t\t\tdescription : \"The steel defender regains 2d6 HP whenever the Mending spell is cast on it. Its HP total is equal to 2 + its creator's artificer level times five + its creator's Int mod. Within an hour of its death, while within 5 ft, its creator can take an action to use smith's tools and expend a spell slot to have it return to full HP after 1 minute. If its creator dies, \" + (typePF ? \"the steel defender also perishes\" : \"so does it\") + \".\"\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tactions : [{\r\n\t\t\t\t\t\tname : \"Repair (3/Day)\",\r\n\t\t\t\t\t\tdescription : \"As an action, the \" + (typePF ? \"\" : \"magical mechanisms inside the \") + \"steel defender restore\" + (typePF ? \"s\" : \"\") + \" 2d8 + its proficiency bonus in HP to itself or to one construct or object within 5 ft of it.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Deflect Attack (reaction)\",\r\n\t\t\t\t\t\tdescription : typePF ? \"As a reaction, the steel defender imposes disadvantage on the attack roll of one creature it can see that is within 5 ft of it, provided the attack roll is against a creature other than the defender.\" : \"As a reaction, the defender imposes disadv. on the attack roll of one creature it can see within 5 ft, provided the creature attacks another than the defender.\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Arcane Jolt (Battle Smith 9)\",\r\n\t\t\t\t\t\tminlevel : 9,\r\n\t\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"Arcane Jolt (1d6): On hit, deal force damage or heal target in 30 ft\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname : \"Improved Defender (Battle Smith 15)\",\r\n\t\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\t\tdescription : \"The steel defender's Deflect Attack now deals 1d4 + its creator's Intelligence modifier in force damage to the attacker.\",\r\n\t\t\t\t\t\taddMod : [{ type : \"\", field : \"Comp.Use.AC\", mod : 2, text : \"The steel defender gains a +2 bonus to its AC (base AC of 15).\" }],\r\n\t\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (1d6)\", \"Arcane Jolt (2d6)\"));\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"Deflect Attack (reaction)\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.1.Description\", What(prefix + \"Comp.Use.Attack.1.Description\").replace(\"Arcane Jolt (2d6)\", \"Arcane Jolt (1d6)\"));\r\n\t\t\t\t\t\t\tValue(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tminlevelLinked : [\"artificer\"],\r\n\t\t\t\t\theader : \"Construct\",\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\t\tif (!classes.known.artificer) return;\r\n\t\t\t\t\t\t\tvar intMod = Number(What('Int Mod'));\r\n\t\t\t\t\t\t\tvar artLvl = classes.known.artificer.level;\r\n\t\t\t\t\t\t\tvar artLvl5 = 5 * artLvl;\r\n\t\t\t\t\t\t\tHDobj.alt.push(2 + intMod + artLvl5);\r\n\t\t\t\t\t\t\tHDobj.altStr.push(\" = 2 as a base\\n + \" + intMod + \" from its creator's Intelligence modifier\\n + 5 \\xD7 \" + artLvl + \" from five times its creator's artificer level (\" + artLvl5 + \")\");\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t\t},\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\t// remove the Deflect Attack (reaction) attack if adding this creature before artificer level 15\r\n\t\t\t\t\t\tif (lvl[0] < 15) Value(prefix + \"Comp.Use.Attack.2.Weapon Selection\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Arcane Jolt\",\r\n\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : function () {\r\n\t\t\t\t\tvar descr9 = desc([\r\n\t\t\t\t\t\t\"Once per turn when my steel defender or magic weapon hits a target, I can have it:\",\r\n\t\t\t\t\t\t\" \\u2022 Deal an extra +2d6 force damage to the target\",\r\n\t\t\t\t\t\t\" \\u2022 Restore 2d6 HP to another target within 30 ft of the one that was hit\"\r\n\t\t\t\t\t]);\r\n\t\t\t\t\tvar descr15 = descr9.replace(/2d6/g, '4d6');\r\n\t\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\t\treturn n < 9 ? \"\" : n < 15 ? descr9 : descr15;\r\n\t\t\t\t\t});\r\n\t\t\t\t}(),\r\n\t\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 9 ? \"\" : (n < 15 ? 2 : 4) + \"d6\";\r\n\t\t\t\t}),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.theWea.isMagicWeapon || v.thisWeapon[1]) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Arcane Jolt (' + (classes.known.artificer && classes.known.artificer.level >= 15 ? 4 : 2) + 'd6)';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once per turn when I hit with a magic weapon or my steel defender hits with its attack, I can use my Arcane Jolt class feature to have the hit either deal extra force damage or heal somebody within 30 ft of the target hit.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Improved Defender\",\r\n\t\t\t\tsource : [[\"E:RLW\", 61], [\"T\", 20]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My defender's Deflect Attack now deals its attacker 1d4 + my Int mod force damage\",\r\n\t\t\t\t\t\"My arcane jolt damage/healing increases to 4d6; My steel defender gains +2 AC\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// Add the new special magic items for the artificer class (infusions)\r\n\tMagicItemsList[\"boots of the winding path\"] = {\r\n\t\tname : \"Boots of the Winding Path\",\r\n\t\tsource : [[\"E:RLW\", 62], [\"T\", 21], [\"UA:A2\", 9], [\"UA:A3\", 12]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"While wearing these boots, I can teleport up to 15 ft as a bonus action to an unoccupied space I can see, as long as I occupied that space at some point during the current turn.\",\r\n\t\tdescriptionFull : \"While wearing these boots, a creature can teleport up to 15 feet as a bonus action to an unoccupied space the creature can see. The creature must have occupied that space at some point during the current turn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t}\r\n\tMagicItemsList[\"enhanced arcane focus, +1 or +2\"] = {\r\n\t\tname : \"Enhanced Arcane Focus, +1 or +2\",\r\n\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff)).*$/i,\r\n\t\tsource : [[\"E:RLW\", 62], [\"T\", 21]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls (or +2 if the artificer that created it is level 10 or higher). In addition, I ignore half cover when making a spell attack.\",\r\n\t\tdescriptionFull : \"While holding this rod, staff, or wand, a creature gains a +1 bonus to spell attack rolls. In addition, the creature ignores half cover when making a spell attack.\\n   The bonus increases to +2 when it is created by someone with 10 levels or more in the artificer class.\",\r\n\t\tattunement : true,\r\n\t\tweight : 1,\r\n\t\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\t\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\t\tchoices : [\"+1 to spell attacks\", \"+2 to spell attacks (artificer level 10+)\"],\r\n\t\t\"+1 to spell attacks\" : {\r\n\t\t\tname : \"Enhanced Arcane Focus +1\",\r\n\t\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?=.*\\+1)(?!.*\\+2).*$/i,\r\n\t\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +1 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellCalc : [\r\n\t\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"+2 to spell attacks (artificer level 10+)\" : {\r\n\t\t\tname : \"Enhanced Arcane Focus +2\",\r\n\t\t\tnameTest : /^(?=.*enhanced)(?=.*(arcane focus|rod|wand|staff))(?!.*\\+1)(?=.*\\+2).*$/i,\r\n\t\t\tdescription : \"While I am holding this arcane focus (rod, staff, or wand), I gain a +2 bonus to spell attack rolls and I ignore half cover when making a spell attack.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellCalc : [\r\n\t\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\t\tif (type == \"attack\") return 2;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I gain a +2 bonus to spell attack rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tMagicItemsList[\"radiant weapon\"] = {\r\n\t\tname : \"Radiant Weapon\",\r\n\t\tnameTest : \"Radiant\",\r\n\t\tsource : [[\"E:RLW\", 62], [\"T\", 22]],\r\n\t\ttype : \"weapon (any)\",\r\n\t\tdescription : \"This item adds a +1 on its to hit and damage, has 4 charges, and regains 1d4 at dawn. As a bonus action, I can have it start/stop shedding light, bright in 30 ft, dim in another 30 ft. As a reaction if hit by an attack, I can use 1 charge to blind the attacker until the end of its next turn unless it makes a Con save (my spell DC).\",\r\n\t\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it. While holding it, the wielder can take a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet. The wielder can extinguish the light as a bonus action.\\n   The weapon has 4 charges. As a reaction immediately after being hit by an attack, the wielder can expend 1 charge and cause the attacker to be blinded until the end of the attacker's next turn, unless the attacker succeeds on a Constitution saving throw against your spell save DC. The weapon regains 1d4 expended charges daily at dawn.\",\r\n\t\tattunement : true,\r\n\t\tusages : 4,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"blind attacker; regains 1d4\",\r\n\t\taction : [[\"bonus action\", \" (start/stop light)\"], [\"reaction\", \" (1 charge; after hit)\"]],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reaction to blind attacker';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the word \"Radiant\" in the name of a weapon, it will be treated as the magic weapon Radiant Weapon. It has +1 to hit and damage and can be used to shed light and to blind an attacker.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.isMeleeWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n\tMagicItemsList[\"repeating shot\"] = {\r\n\t\tname : \"Repeating Shot\",\r\n\t\tsource : [[\"E:RLW\", 62], [\"T\", 22], [\"UA:A3\", 13]],\r\n\t\ttype : \"weapon (any with ammunition)\",\r\n\t\tdescription : \"When I use this magic weapon to make a ranged attack, it magically produces one piece of ammunition and grants a +1 bonus to its attack and damage rolls. Thus, it doesn't require ammunition and ignores the loading property if it has it. The produced ammunition vanishes once it hits or misses a target.\",\r\n\t\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it when it's used to make a ranged attack, and it ignores the loading property if it has it.\\n   If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the weapon vanishes the instant after it hits or misses a target.\",\r\n\t\tattunement : true,\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !(/ammunition/i).test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '').replace(/(;|,)? ?loading/i, '');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Repeating Shot\" in the name of a weapon with the ammunition property, it will be treated as the magic weapon Repeating Shot. It has +1 to hit and damage and produces its own ammunition, thus its loading property is removed if it has it.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif ((/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText) && !v.isSpell) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n\tMagicItemsList[\"repulsion shield\"] = {\r\n\t\tname : \"Repulsion Shield\",\r\n\t\tsource : [[\"E:RLW\", 63], [\"T\", 23]],\r\n\t\ttype : \"shield\",\r\n\t\tdescription : \"I gain an additional +1 bonus to Armor Class while wielding this shield. The shield has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction immediately after being hit by a melee attack, I can expend 1 charge to push the attacker up to 15 ft away.\",\r\n\t\tdescriptionFull : \"A creature gains a +1 bonus to Armor Class while wielding this shield.\\n   The shield has 4 charges. While holding it, the wielder can use a reaction immediately after being hit by a melee attack to expend 1 of the shield's charges and push the attacker up to 15 feet away. The shield regains 1d4 expended charges daily at dawn.\",\r\n\t\tweight : 6,\r\n\t\tattunement : true,\r\n\t\tusages : 4,\r\n\t\tadditional : \"regains 1d4\",\r\n\t\trecovery : \"dawn\",\r\n\t\taction : [[\"reaction\", \" (1 charge)\"]],\r\n\t\tshieldAdd : [\"Repulsion Shield\", 3, 6]\r\n\t}\r\n\tMagicItemsList[\"returning weapon\"] = {\r\n\t\tname : \"Returning Weapon\",\r\n\t\tnameTest : \"Returning\",\r\n\t\tsource : [[\"E:RLW\", 63], [\"T\", 23], [\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\t\ttype : \"weapon (any thrown)\",\r\n\t\tdescription : \"This magic weapon grants a +1 bonus to attack and damage rolls I make with it. It returns to my hand immediately after I use it to make a ranged attack.\",\r\n\t\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it, and it returns to the wielder's hand immediately after it is used to make a ranged attack.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !/\\bthrown\\b/i.test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Returns immediately after ranged attack';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the word \"Returning\" in the name of a thrown weapon, it will be treated as the magic weapon Returning Weapon. It has +1 to hit and damage and returns to my hand immediately after I use it to make a ranged attack.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.isThrownWeapon && /returning/i.test(v.WeaponText)) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n} // dupl_end\r\n\r\n// New Artificer Infusions\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Arcane Propulsion Armor (prereq: level 14 artificer)\", {\r\n\tname : \"Arcane Propulsion Armor\",\r\n\tsource : [[\"T\", 20]],\r\n\tdescription : desc([\r\n\t\t\"The armor replaces any missing limbs of the wearer and can't be removed against its will\",\r\n\t\t\"It increases the wearer's walking speed by 5 ft; Its gauntlet can be used as melee weapons\"\r\n\t]),\r\n\tadditional : \"suit of armor; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 14; },\r\n\tmagicitemsAdd : [\"Arcane Propulsion Armor\"]\r\n});\r\nMagicItemsList[\"arcane propulsion armor\"] = {\r\n\tname : \"Arcane Propulsion Armor\",\r\n\tnameTest : /arcane.propulsion.*armou?r/i,\r\n\tsource : [[\"T\", 20]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\tdescriptionFull : \"The wearer of this armor gains these benefits:\\n \\u2022 The wearer's walking speed increases by 5 feet.\\n \\u2022 The armor includes gauntlets, each of which is a magic melee weapon that can be wielded only when the hand is holding nothing. The wearer is proficient with the gauntlets, and each one deals 1d8 force damage on a hit and has the thrown property, with a normal range of 20 feet and a long range of 60 feet. When thrown, the gauntlet detaches and flies at the attack's target, then immediately returns to the wearer and reattaches.\\n \\u2022 The armor can't be removed against the wearer's will.\\n \\u2022 If the wearer is missing any limbs, the armor replaces those limbs\\u2014hands, arms, feet, legs, or similar appendages. The replacements function identically to the body parts they replace.\",\r\n\tdescription : \"This armor replaces any missing limbs, increases my walking speed by 5 ft, and can't be removed against my will. I can use either empty-handed gauntlet as a proficient melee weapon with the thrown property. After a throwing attack with a gauntlet, it returns and reattaches immediately.\",\r\n\tattunement : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Arcane Propulsion\", \"Armor\"],\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Arcane Propulsion\"]\r\n\t},\r\n\tspeed : { walk : { spd : \"+5\", enc : \"+5\" } },\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*arcane)(?=.*propulsion)(?=.*gauntlet).*$/i,\r\n\t\tname : \"Arcane Propulsion Gauntlets\",\r\n\t\tsource : [[\"T\", 20]],\r\n\t\tability : 1,\r\n\t\ttype : \"AlwaysProf\",\r\n\t\tdamage : [1, 8, \"force\"],\r\n\t\trange : \"Melee, 20/60 ft\",\r\n\t\tdescription : \"Thrown; Returns immediately after thrown\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Magical Strength\", {\r\n\tname : \"Armor of Magical Strength\",\r\n\tsource : [[\"T\", 20]],\r\n\tdescription : desc([\r\n\t\t\"The armor has 6 charges, regaining 1d6 expended charges daily at dawn\",\r\n\t\t\"As a reaction when being knocked prone, the wearer can use 1 charge to not be prone\",\r\n\t\t\"When making a Str check/save, the wearer can use 1 charge to add its Int mod to the roll\"\r\n\t]),\r\n\tadditional : \"suit of armor; requires attunement\",\r\n\tmagicitemsAdd : [\"Armor of Magical Strength\"]\r\n});\r\nMagicItemsList[\"armor of magical strength\"] = {\r\n\tname : \"Armor of Magical Strength\",\r\n\tnameTest : \"of Magical Strength\",\r\n\tsource : [[\"T\", 20]],\r\n\ttype : \"armor (light, medium, or heavy)\",\r\n\tdescriptionFull : \"This armor has 6 charges. The wearer can expend the armor's charges in the following ways:\\n \\u2022 When the wearer makes a Strength check or a Strength saving throw, it can expend 1 charge to add a bonus to the roll equal to its Intelligence modifier.\\n \\u2022 If the creature would be knocked prone, it can use its reaction to expend 1 charge to avoid being knocked prone.\\nThe armor regains 1d6 expended charges daily at dawn.\",\r\n\tdescription : \"This armor has 6 charges and regains 1d6 expended charges daily at dawn. As a reaction when I would be knocked prone, I can expend 1 charge to avoid being knocked prone. When I make a Strength check or Strength saving throw, I can expend 1 charge to add my Intelligence modifier to the roll.\",\r\n\tattunement : true,\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : \"prefix\"\r\n\t},\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\"\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Helm of Awareness (prereq: level 10 artificer)\", {\r\n\tname : \"Helm of Awareness\",\r\n\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\tdescription: desc(\"The wearer has advantage on Initiative rolls and can't be surprised while not incapacitated\"),\r\n\tadditional : \"helmet; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 10; },\r\n\tmagicitemsAdd : [\"Helm of Awareness\"]\r\n});\r\nMagicItemsList[\"helm of awareness\"] = {\r\n\tname : \"Helm of Awareness\",\r\n\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"While wearing this helmet, I have advantage on initiative rolls. In addition, I can't be surprised, provided I'm not incapacitated.\",\r\n\tdescriptionFull : \"While wearing this helmet, a creature has advantage on initiative rolls. In addition, the wearer can't be surprised, provided it isn't incapacitated.\",\r\n\tattunement : true,\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tsavetxt : { immune : [\"surprised\"] }\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Mind Sharpener\", {\r\n\tname : \"Mind Sharpener\",\r\n\tsource : [[\"T\", 22]],\r\n\tdescription: desc(\"The wearer can use its reaction to ignore a failed Con save to maintain concentration\"),\r\n\tadditional : \"suit of armor or robes\",\r\n\tmagicitemsAdd : [\"Mind Sharpener\"]\r\n});\r\nMagicItemsList[\"mind sharpener\"] = {\r\n\tname : \"Mind Sharpener\",\r\n\tsource : [[\"T\", 22]],\r\n\tdescriptionFull : \"The infused item can send a jolt to the wearer to refocus their mind. The item has 4 charges. When the wearer fails a Constitution saving throw to maintain concentration on a spell, the wearer can use its reaction to expend 1 of the item's charges to succeed instead. The item regains 1d4 expended charges daily at dawn.\",\r\n\tdescription : \"This magic armor or robes can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 4,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4\",\r\n\tchoices : [\"Mind Sharpener Armor\", \"Mind Sharpener Robes\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"mind sharpener armor\" : {\r\n\t\tname : \"Mind\\u200A Sharpener\",\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"This magic armor can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\titemName1stPage : [\"suffix\", \"Mind Sharpener\"],\r\n\t\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t\t}\r\n\t},\r\n\t\"mind sharpener robes\" : {\r\n\t\tname : \"Mind Sharpener (Robes)\",\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"These magic robes can send a jolt to refocus my mind. It has 4 charges and regains 1d4 expended charges daily at dawn. As a reaction when I fail a Constitution saving throw to maintain concentration on a spell, I can expend 1 charge to succeed instead.\"\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Spell-Refueling Ring (prereq: level 6 artificer)\", {\r\n\tname : \"Spell-Refueling Ring\",\r\n\tsource : [[\"T\", 23]],\r\n\tdescription: desc(\"As an action once per dawn, this ring's wearer can recover one 3rd-level or lower spell slot\"),\r\n\tadditional : \"ring; requires attunement\",\r\n\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\tmagicitemsAdd : [\"Spell-Refueling Ring\"]\r\n});\r\nMagicItemsList[\"spell-refueling ring\"] = {\r\n\tname : \"Spell-Refueling Ring\",\r\n\tsource : [[\"T\", 23]],\r\n\ttype : \"ring\",\r\n\tdescriptionFull : \"While wearing this ring, the creature can recover one expended spell slot as an action. The recovered slot can be of 3rd level or lower. Once used, the ring can't be used again until the next dawn.\",\r\n\tdescription : \"As an action, I can activate this magic ring to recover one expended spell slot. The recovered slot can be of 3rd level or lower. Once used, the ring can't be used again until the next dawn.\",\r\n\tattunement : true,\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\n\r\n// Add the Armorer specialism (but after all other scripts, so that all armour options are present)\r\nRunFunctionAtEnd(function () {\r\n\tvar TCoE_Artificer_Subclass_Armorer = AddSubClass(\"artificer\", \"armorer\", {\r\n\t\tregExpSearch : /^(?=.*armou?rer)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Armorer\",\r\n\t\tfullname : \"Armorer\",\r\n\t\tsource : [[\"T\", 15]],\r\n\t\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools of the Trade\",\r\n\t\t\t\tsource : [[\"T\", 15]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with heavy armor \\u0026 smith's tools]\",\r\n\t\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\t\tspellcastingExtra : [\"magic missile\", \"thunderwave\", \"mirror image\", \"shatter\", \"hypnotic pattern\", \"lightning bolt\", \"fire shield\", \"greater invisibility\", \"passwall\", \"wall of force\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Arcane Armor\",\r\n\t\t\t\tsource : [[\"T\", 15]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [reverts back if I die or don another armor]\" + desc([\r\n\t\t\t\t\t\"As an action, I can use smith's tool to turn an armor I'm wearing into arcane armor\",\r\n\t\t\t\t\t\"As an action, I can don or doff it; As a bonus action, I can deploy or retract its helmet\",\r\n\t\t\t\t\t\"It can't be removed against my will, covers all my limbs, and even replaces missing limbs\",\r\n\t\t\t\t\t\"I ignore the Strength requirement of arcane armor and can use it as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (create/don/doff)\"], [\"bonus action\", \" (retract/deploy helmet)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.2\" : {\r\n\t\t\t\tname : \"Armor Model\",\r\n\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a rest, I can use smith's tools to change the model of my arcane armor\",\r\n\t\t\t\t\t'Select a model using the \"Choose Feature\" button; See \"Notes\" page for features of each'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"also see notes page\",\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Arcane Armor Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"I can customize my arcane armor to the guardian or infiltrator model whenever I finish a short or long rest, provided I have smith's tools in hand.\",\r\n\t\t\t\t\t\t\"Each model includes a special weapon. When I attack with that weapon, I can use my Intelligence modifier, instead of Strength or Dexterity, for the attack and damage rolls.\"\r\n\t\t\t\t\t])\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Guardian Arcane Armor\",\r\n\t\t\t\t\tpopupName : \"Guardian Arcane Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"\\u2022 Thunder Gauntlets: Each of the armor's gauntlets counts as a simple melee weapon while I'm not holding anything in it, and it deals 1d8 thunder damage on a hit. A creature hit by the gauntlet has disadvantage on attack rolls against targets other than me until the start of me next turn, as the armor magically emits a distracting pulse when the creature attacks someone else.\",\r\n\t\t\t\t\t\t\"\\u2022 Defensive Field: As a bonus action, I can gain temporary hit points equal to my artificer level, replacing any temporary hit points I already have. I lose these temporary hit points if I doff the armor. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when I finish a long rest.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infiltrator Arcane Armor\",\r\n\t\t\t\t\tpopupName : \"Infiltrator Arcane Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"\\u2022 Lightning Launcher: A gemlike node on one of the armored fists or on the chest (my choice) counts as a simple ranged weapon, with a normal range of 90 ft and a long range of 300 ft. It deals 1d6 lightning damage on a hit. Once on each of my turns when I hit a creature with it, I can deal an extra 1d6 lightning damage to that target.\",\r\n\t\t\t\t\t\t\"\\u2022 Powered Steps: My walking speed increases by 5 feet.\",\r\n\t\t\t\t\t\t\"\\u2022 Dampening Field: I have advantage on Dexterity (Stealth) checks. If the armor normally imposes disadvantage on such checks, the advantage and disadvantage cancel each other, as normal.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [],\r\n\t\t\t\tchoiceDependencies : [{\r\n\t\t\t\t\tfeature : \"subclassfeature15\",\r\n\t\t\t\t\tchoiceAttribute : true\r\n\t\t\t\t}],\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*thunder)(?=.*gauntlet).*$/i,\r\n\t\t\t\t\tname : \"Thunder Gauntlets\",\r\n\t\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 8, \"thunder\"],\r\n\t\t\t\t\trange : \"Melee\",\r\n\t\t\t\t\tdescription : \"Target hit disadv. on attacks vs. others than me until my next turn starts\",\r\n\t\t\t\t\tabilitytodamage : true,\r\n\t\t\t\t\tmonkweapon : true\r\n\t\t\t\t}, {\r\n\t\t\t\t\tregExpSearch : /^(?=.*lightning)(?=.*launcher).*$/i,\r\n\t\t\t\t\tname : \"Lightning Launcher\",\r\n\t\t\t\t\tsource : [[\"T\", 16]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 6, \"lightning\"],\r\n\t\t\t\t\trange : \"90/300 ft\",\r\n\t\t\t\t\tdescription : \"Once per turn on hit, +1d6 lightning damage\",\r\n\t\t\t\t\tabilitytodamage : true\r\n\t\t\t\t}],\r\n\t\t\t\t// Do this in the parent object, so that it is always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"bonus action\", \"Defensive Field (Guardian Model)\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Defensive Field (Guardian Model)\",\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Armor Modifications\",\r\n\t\t\t\tsource : [[\"T\", 17]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Arcane armor now counts as armor, boots, helmet, and a weapon for holding infusions\",\r\n\t\t\t\t\t\"Each can hold one infusion; The infusions remain when I change the armor's model\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"+2 infused items if\" + (typePF ? \"\" : \" used\") + \" on arcane armor\",\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Perfected Armor\",\r\n\t\t\t\tsource : [[\"T\", 17]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t'My armor gets additional features, based on the model; Use \"Choose Feature\" to select it',\r\n\t\t\t\t\t\"The guardian gets the ability to pull a creature closer as a reaction and make an attack\",\r\n\t\t\t\t\t\"The infiltrator gets an upgrade to its lightning launcher weapon attack\"\r\n\t\t\t\t]),\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Guardian Perfected Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Tinkering with my armor's energy system leads me to discover a powerful pulling force.\",\r\n\t\t\t\t\t\t\"As a reaction when a Huge or smaller creature I can see ends its turn within 30 ft of me, I can magically force the creature to make a Strength saving throw against my spell save DC, pulling the creature up to 30 ft toward me to an unoccupied space. If I pull the target to a space within 5 ft of me, I can make a melee weapon attack against it as part of this reaction.\",\r\n\t\t\t\t\t\t\"I can use this reaction a number of times equal to my proficiency bonus. I regain all expended uses of it when I finish a long rest.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infiltrator Perfected Armor Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Any creature that takes lightning damage from my Lightning Launcher glimmers with magical light until the start of my next turn.\",\r\n\t\t\t\t\t\t\"The glimmering creature sheds dim light in a 5-ft radius, and it has disadvantage on attack rolls against me, as the light jolts it if it attacks me. In addition, the next attack roll against it has advantage, and if that attack hits, the target takes an extra 1d6 lightning damage.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Arcane Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"guardian\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tadditional: \"Proficiency Bonus per long rest\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn in 30 ft, I have it make a Str save\",\r\n\t\t\t\t\t\t\"If it is Huge or smaller and fails, I pull it up to 30 ft towards me to an unoccupied space\",\r\n\t\t\t\t\t\t\"If I pull it within 5 ft, I can make a melee weapon attack vs. it as part of this reaction\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t\"infiltrator\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Infiltrator\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"Those hit by my lightning launcher shed 5-ft radius dim light until my next turn starts\",\r\n\t\t\t\t\t\t\"The light gives the target disadvantage on attacks rolls made against me\",\r\n\t\t\t\t\t\t\"Also, the next attack against it has advantage and deals an extra 1d6 lightning damage\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t// Do these in the parent object, so that they are always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"reaction\", \"Perfected Armor: Guardian\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tvar itsFea = ClassSubList[TCoE_Artificer_Subclass_Armorer].features[\"subclassfeature3.2\"];\r\n\tvar guardianTxt = desc([\r\n\t\t\"Both fists are Thunder Gauntlets, simple melee weapons that distract those hit by it\",\r\n\t\t\"As a bonus action, I can activate a defensive shield to gain my artificer level in temp HP\"\r\n\t])\r\n\tvar guardianAdditional = levels.map(function (n) {\r\n\t\treturn n + \" temp HP, Prof B. per long rest\";\r\n\t})\r\n\tvar infiltratorTxt = desc([\r\n\t\t\"+5 ft walking speed; Gemlike node in fist/chest is a ranged weapon, Lightning Launcher\",\r\n\t\t\"It gives me advantage on Dexterity (Stealth) checks\"\r\n\t])\r\n\tvar prereqFunc = function(v) {\r\n\t\tvar sParsed = ParseArmor(v.choice.replace(/(Guardian|Infiltrator) arcane /i, ''));\r\n\t\treturn sParsed && testSource(sParsed, ArmourList[sParsed], \"armorExcl\") ? \"skip\" : true;\r\n\t};\r\n\tfor (var armor in ArmourList) {\r\n\t\tvar anArm = ArmourList[armor];\r\n\t\tif (anArm.isMagicArmor || !anArm.weight || (CurrentVars.extraArmour && CurrentVars.extraArmour[armor])) continue;\r\n\t\t// Add the Guardian variant of the armor\r\n\t\tvar gArmName = \"Guardian Arcane \" + anArm.name;\r\n\t\titsFea[gArmName.toLowerCase()] = {\r\n\t\t\tname : (typePF ? \"Armor \" : \"\") + \"Model: Guardian \" + anArm.name,\r\n\t\t\tsubmenu : \"Guardian Arcane Armor\",\r\n\t\t\tdescription : guardianTxt,\r\n\t\t\tadditional : guardianAdditional,\r\n\t\t\tarmorAdd : { select : gArmName, options : [gArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Thunder Gauntlets\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tdependentChoices : \"guardian\"\r\n\t\t}\r\n\t\t// And now add the Infiltrator variant of the armor\r\n\t\tvar iArmName = \"Infiltrator Arcane \" + anArm.name;\r\n\t\titsFea[iArmName.toLowerCase()] = {\r\n\t\t\tname : \"Armor Model: Infiltrator \" + anArm.name,\r\n\t\t\tsubmenu : \"Infiltrator Arcane Armor\",\r\n\t\t\tdescription : infiltratorTxt + (anArm.stealthdis ? \", cancelling out the disadv. it imposes\" : \"\"),\r\n\t\t\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } },\r\n\t\t\tarmorAdd : { select : iArmName, options : [iArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Lightning Launcher\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tadvantages : [[\"Stealth\", true]],\r\n\t\t\tdependentChoices : \"infiltrator\"\r\n\t\t}\r\n\t\t// Lastly push both choices to the array\r\n\t\titsFea.choices.push(gArmName, iArmName);\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Barbarian Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Barbarian Optional Class Features\r\nAddFeatureChoice(ClassList.barbarian.features[\"danger sense\"], true, \"Primal Knowledge\", {\r\n\tname : \"Primal Knowledge\",\r\n\textraname : \"Optional Barbarian 3\",\r\n\tsource : [[\"T\", 24]],\r\n\tdescription : desc([\r\n\t\t\"At 3rd level and again at 10th level I gain proficiency with one skill of my choice\",\r\n\t\t\"I can choose from Animal Handling, Athletics, Intimidation, Nature, Perception, Survival\"\r\n\t]),\r\n\tskillstxt : \"Choose one from Animal Handling, Athletics, Intimidation, Nature, Perception and Survival.\\nChoose another from this list at 10th level\",\r\n\tprereqeval : function (v) { return classes.known.barbarian.level >= 3 ? true : \"skip\"; }\r\n}, \"Optional 3rd-level barbarian features\");\r\nAddFeatureChoice(ClassList.barbarian.features[\"feral instinct\"], true, \"Instinctive Pounce\", {\r\n\tname : \"Instinctive Pounce\",\r\n\textraname : \"Optional Barbarian 7\",\r\n\tsource : [[\"T\", 24]],\r\n\tdescription : desc([\r\n\t\t\"As part of the bonus action I use to enter rage, I can move up to half my speed\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"Rage (start & half move / end)\", \"Rage (start/end)\"]]\r\n}, \"Optional 7th-level barbarian features\");\r\n\r\n// Barbarian Subclasses\r\nAddSubClass(\"barbarian\", \"path of the beast\", {\r\n\tregExpSearch : /^(?=.*\\bbeast\\b)(?=.*(warrior|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Beast\",\r\n\tsubnameShort: \"Beast\",\r\n\tsource : [[\"T\", 24]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Form of the Beast\",\r\n\t\t\tsource : [[\"T\", 24]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my rage, I can transform to gain a bite, tail, or claws attack for that rage\",\r\n\t\t\t\t\"On a hit with the bite attack once on each of my turns, I can heal my Prof Bonus in HP\",\r\n\t\t\t\t\"This only works if I have less than half my hit points when I hit with this bite attack\",\r\n\t\t\t\t\"With the claws I can make one extra attack when I attack with it in my Attack action\",\r\n\t\t\t\t\"As a reaction with the tail when I'm hit, I can add 1d8 to my AC for that attack\",\r\n\t\t\t\t\"This only works if the hit is from an attack roll made a creature I can see within 30 ft\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*bite).*$/i,\r\n\t\t\t\tname : \"Bestial Bite\",\r\n\t\t\t\tsource : [[\"T\", 24]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; On a hit once on my turn, regain Prof Bonus in HP (if below 1/2 HP)\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*claws?).*$/i,\r\n\t\t\t\tname : \"Bestial Claws\",\r\n\t\t\t\tsource : [[\"T\", 24]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; Extra attack if used as part of Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*tail).*$/i,\r\n\t\t\t\tname : \"Bestial Tail\",\r\n\t\t\t\tsource : [[\"T\", 25]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Reach; Only in rage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"chosen weapon counts as magical\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"Bestial Tail\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bestial Soul\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can choose one of the following benefits until my next rest:\",\r\n\t\t\t\t\" \\u2022 Swimming speed equal to my walking speed and I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 Climb speed (same as walking) and no check to climb difficult surfaces or upside down\",\r\n\t\t\t\t\" \\u2022 Once per turn when I jump, I can extend it by the result of an Athletics check in feet\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.bestialNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The natural melee weapon that I gain from Form of the Beast count as magical for the purpose of overcoming resistance and immunity to nonmagical attacks and damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Infectious Fury\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In rage, when I hit a creature with my natural weapon, I can have it make a Wis save\",\r\n\t\t\t\t\"If it fails (DC 8 + my Prof Bonus + my Con mod) it suffers one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 It uses its reaction to make a melee attack against one creature I can see of my choice\",\r\n\t\t\t\t\" \\u2022 It takes 2d12 psychic damage\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Call the Hunt\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter rage, I can choose my Con mod of willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"Once on each of their turns, if they hit an attack, they can have it deal +1d6 damage\",\r\n\t\t\t\t\"This lasts as long as I rage; I gain 5 temporary HP per creature that accepts this benefit\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"path of wild magic\", {\r\n\tregExpSearch : /^(?=.*\\bwild\\b)(?=.*\\bmagic\\b).*$/i,\r\n\tsubname : \"Path of Wild Magic\",\r\n\tsubnameShort: \"Wild Magic\",\r\n\tsource : [[\"T\", 25]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Magic Awareness\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can open my awareness to the presence of concentrated magic\",\r\n\t\t\t\t\"Until my next turn ends, I know the location of any spell or magic item within 60 ft\",\r\n\t\t\t\t\"I also learn the school of magic of a spell; This doesn't reveal anything behind total cover\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wild Surge\",\r\n\t\t\tsource : [[\"T\", 25]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Whenever I enter my rage, I roll on the Wild Magic table (see Notes page)\"),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Magic Table\",\r\n\t\t\t\tsource : [[\"T\", 26]],\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"The magical energy roiling inside me sometimes erupts from me. Whenever I enter my rage, I have to roll on the table below to see what happens.\",\r\n\t\t\t\t\t\"If the effect calls for a saving throw, the DC is equal to 8 + my proficiency bonus + my Constitution modifier.\\n\",\r\n\t\t\t\t\t\"d8\\tEFFECT\",\r\n\t\t\t\t\t\" 1\\tShadowy tendrils lash around me. Each creature of my choice that I can see within 30 ft of me must succeed on a Constitution saving throw or take 1d12 necrotic damage. I also gain 1d12 temporary hit points.\",\r\n\t\t\t\t\t\" 2\\tI teleport up to 30 ft to an unoccupied space I can see. Until my rage ends, I can use this effect again on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 3\\tAn intangible spirit, which looks like a flumph or a pixie (my choice), appears within 5 ft of one creature of my choice that I can see within 30 ft of me. At the end of the current turn, the spirit explodes, and each creature within 5 ft of it must succeed on a Dexterity saving throw or take 1d6 force damage. Until my rage ends, I can use this effect again, summoning another spirit, on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 4\\tMagic infuses one weapon of my choice that I am holding. Until my rage ends, the weapon's damage type changes to force, and it gains the light and thrown properties, with a normal range of 20 ft and a long range of 60 ft. If the weapon leaves my hand, the weapon reappears in my hand at the end of the current turn.\",\r\n\t\t\t\t\t\" 5\\tWhenever a creature hits me with an attack roll before my rage ends, that creature takes 1d6 force damage, as magic lashes out in retribution.\",\r\n\t\t\t\t\t\" 6\\tUntil my rage ends, I am surrounded by multicolored, protective lights; I gain a +1 bonus to AC, and while within 10 ft of me, my allies gain the same bonus.\",\r\n\t\t\t\t\t\" 7\\tFlowers and vines temporarily grow around me; until my rage ends, the ground within 15 ft of me is difficult terrain for my enemies.\",\r\n\t\t\t\t\t\" 8\\tA bolt of light shoots from my chest. Another creature of my choice that I can see within 30 ft of me must succeed on a Constitution saving throw or take 1d6 radiant damage and be blinded until the start of my next turn. Until my rage ends, I can use this effect again on each of my turns as a bonus action.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bolstering Magic\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can touch a creature or myself and confer one of the following benefits:\",\r\n\t\t\t\t\" \\u2022 For 10 minutes, they can add 1d3 to any attack roll and ability check\",\r\n\t\t\t\t\" \\u2022 Roll 1d3. They regain an expended spell slot of a level equal to or lower than the roll\",\r\n\t\t\t\t\"A creature that receives the second benefit can't receive it again until after a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Unstable Backlash\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction in rage when taking damage or failing a save, I can lash out with magic\",\r\n\t\t\t\t\"I roll on the Wild Magic table and immediately apply the roll, replacing my current effect\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in rage on damage/save fail)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Controlled Surge\",\r\n\t\t\tsource : [[\"T\", 26]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I roll on the Wild Magic table, I can roll two dice and choose which to use\",\r\n\t\t\t\t\"If I roll the same on both dice, I can instead choose any effect on the Wild Magic table\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n// >>> Bard Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Bard Optional Class Features\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Additional Bard Spells\", {\r\n\tname : \"Additional Bard Spells\",\r\n\tsource : [[\"T\", 27]],\r\n\textraname : \"Optional Bard 1\",\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"color spray\", \"command\", \"aid\", \"enlarge/reduce\", \"mirror image\", \"mass healing word\", \"slow\", \"phantasmal killer\", \"rary's telepathic bond\", \"heroes' feast\", \"prismatic spray\", \"antipathy/sympathy\", \"prismatic wall\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the bard class with the following spells (spell level in brackets): Color Spray (1), Command (1), Aid (2), Enlarge/Reduce (2), Mirror Image (2), Mass Healing Word (3), Slow (3), Phantasmal Killer (4), Rary's Telepathic Bond (5), Heroes' Feast (6), Prismatic Spray (7), Antipathy/Sympathy (8), and Prismatic Wall (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features[\"jack of all trades\"], true, \"Magical Inspiration\", {\r\n\tname : \"Magical Inspiration\",\r\n\textraname : \"Optional Bard 2\",\r\n\tsource : [[\"T\", 27]],\r\n\tdescription : desc([\r\n\t\t\"A bardic inspiration die recipient can also use it when casting a damaging or healing spell\",\r\n\t\t\"They can expend the die and add it to healing or damage dealt to one target of the spell\"\r\n\t])\r\n}, \"Optional 2nd-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features[\"song of rest\"], true, \"Bardic Versatility\", {\r\n\tname : \"Bardic Versatility\",\r\n\textraname : \"Optional Bard 4\",\r\n\tsource : [[\"T\", 28]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the bard class, I can change one cantrip or expertise choice\",\r\n\t\t\"I can select another cantrip from the bard spell list or another skill I'm proficient with\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.bard.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level bard features\");\r\n\r\n// Bard Subclasses\r\nAddSubClass(\"bard\", \"college of creation\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*creation).*$/i,\r\n\tsubname : \"College of Creation\",\r\n\tsubnameShort: \"Creation\",\r\n\tsource : [[\"T\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mote of Potential\",\r\n\t\t\tsource : [[\"T\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Those who use my Bardic Inspiration die gain an extra bonus depending how they use it:\",\r\n\t\t\t\t\"\\u2022 Ability check: Roll the die twice and choose which result to use\",\r\n\t\t\t\t\"\\u2022 Attack roll: the target and others of my choice I can see in 5 ft must make a Con save\",\r\n\t\t\t\t\"  If failed, they take the die roll in thunder damage; This uses my spell save DC\",\r\n\t\t\t\t\"\\u2022 Saving throw: Grants temporary HP equal to the roll + my Cha mod (min 1 temp HP)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Performance of Creation\",\r\n\t\t\tsource : [[\"T\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tif (n < 14) {\r\n\t\t\t\t\tvar descr = [\r\n\t\t\t\t\t\t\"As an action, I create \" + (n < 6 ? \"a Medium\" : \"one Large\") + \" or smaller nonmagical item in an empty space in 10 ft\",\r\n\t\t\t\t\t\t\"It can't be worth more than \" + (20 * n) + \" gp; It lasts for my Proficiency Bonus in hours\",\r\n\t\t\t\t\t\t\"I can't have multiple, creating more makes the first one vanish\",\r\n\t\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t\t];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar descr = [\r\n\t\t\t\t\t\t\"As an action, I create my Charisma mod of nonmagical items in an empty space in 10 ft\",\r\n\t\t\t\t\t\t\"One can be Huge, the rest Small or smaller; They last for my Proficiency Bonus in hours\",\r\n\t\t\t\t\t\t\"I can't have more than my Cha mod; If I create more, I get to choose which vanish\",\r\n\t\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t\t];\r\n\t\t\t\t}\r\n\t\t\t\treturn desc(descr);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 2+\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Animating Performance\",\r\n\t\t\tsource : [[\"T\", 29]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can animate a Large or smaller nonmagical item I can see within 30 ft\",\r\n\t\t\t\t\"It is friendly and obeys my commands; It lasts for 1 hour, until it has 0 HP, or I die\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can take reactions and move on its turn without commands; I can't have multiple\",\r\n\t\t\t\t\"When I use bardic inspiration, I can command the item as part of the same bonus action\",\r\n\t\t\t\t'It acts on my initiative, after me; See \"Dancing Item\" on a companion page for its stats',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Dancing Item\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tcreaturesAdd : [[\"Dancing Item\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Dancing Item\",\r\n\t\t\t\tsource : [[\"T\", 29]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 16,\r\n\t\t\t\thp : 25,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"fly 30 ft (hover)\",\r\n\t\t\t\tscores : [18, 14, 16, 4, 10, 6],\r\n\t\t\t\tdamage_immunities : \"poison, psychic\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned, frightened\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1/2\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Slam\",\r\n\t\t\t\t\tability : 6,\r\n\t\t\t\t\tdamage : [1, 10, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"bard\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Variable Size\",\r\n\t\t\t\t\tdescription : \"The item animated can be Large or smaller.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The item obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Immutable Form\",\r\n\t\t\t\t\tdescription : \"The item is immune to any spell or effect that would alter its form.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Irrepressible Dance\",\r\n\t\t\t\t\tdescription : \"When any creature starts its turn within 10 ft of the item, the item can increase or decrease (its creator's choice) the walking speed of that creature by 10 ft until the end of the turn, provided the item isn't incapacitated.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : 'Animated',\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.bard) return;\r\n\t\t\t\t\t\tvar brdLvl = classes.known.bard.level;\r\n\t\t\t\t\t\tvar brdLvl5 = 5 * brdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(10 + brdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + brdLvl + \" from five times its creator's bard level (\" + brdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Creative Crescendo\",\r\n\t\t\tsource : [[\"T\", 29]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [enhances Performance of Creation]\"\r\n\t\t}\r\n\t}\r\n});\r\n// [dupl_start] reprints from Mythic Odysseys of Theros\r\nif (!SourceList.MOT) {\r\n\tAddSubClass(\"bard\", \"college of eloquence\", {\r\n\t\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\r\n\t\tsubname : \"College of Eloquence\",\r\n\t\tsubnameShort: \"Eloquence\",\r\n\t\tsource : [[\"T\", 29], [\"MOT\", 28]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Silver Tongue\",\r\n\t\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription: desc(\"When I make a Persuasion or Deception check, I can treat a roll of 9 or lower as a 10\")\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Unsettling Words\",\r\n\t\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I expend a Bardic Inspiration use & choose a target I can see in 60 ft\",\r\n\t\t\t\t\t\"It subtracts my inspiration die from the next save it makes before my next turn starts\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature6\" : {\r\n\t\t\t\tname : \"Unfailing Inspiration\",\r\n\t\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription: desc(\"When a creature adds my Bardic Inspiration die to a roll but fails, they can keep the die\")\r\n\t\t\t},\r\n\t\t\t\"subclassfeature6.1\" : {\r\n\t\t\t\tname : \"Universal Speech\",\r\n\t\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can choose up to my Charisma modifier (min 1) creatures within 60 ft\",\r\n\t\t\t\t\t\"Those creatures magically understand any language I speak for an hour\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t\t]),\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taltResource : \"SS 1+\",\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature14\" : {\r\n\t\t\t\tname : \"Infectious Inspiration\",\r\n\t\t\t\tsource : [[\"T\", 30], [\"MOT\", 28]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when a creature uses my inspiration die and succeeds, I can inspire another\",\r\n\t\t\t\t\t\"I give a creature within 60 ft that can hear me an inspiration die without expending any\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n} // dupl_end\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Cleric Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Cleric Optional Class Features\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Additional Cleric Spells\", {\r\n\tname : \"Additional Cleric Spells\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"T\", 30]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"aura of vitality\", \"aura of life\", \"aura of purity\", \"sunbeam\", \"sunburst\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the cleric class with the following spells (spell level in brackets): Aura of Vitality (3), Aura of Life (4), Aura of Purity (4), Sunbeam (6), Sunburst (8), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"channel divinity\"], true, \"Harness Divine Power\", {\r\n\tname : \"Channel Divinity: Harness Divine Power\",\r\n\textraname : \"Optional Cleric 2\",\r\n\tsource : [[\"T\", 30]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can expend a use of my channel divinity to regain one used spell slot\",\r\n\t\t\"The level of this spell slot can be no more than half my Proficiency Bonus (rounded up)\",\r\n\t\t\"I can only do this so many times per long rest, even if I have uses of channel divinity left\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : levels.map(function(n) {\r\n\t\treturn n < 3 ? \"\" : n < 6 ? 1 : n < 18 ? 2 : 3;\r\n\t}),\r\n\trecovery : \"long rest\"\r\n}, \"Optional 2nd-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"turn undead\"], true, \"Cantrip Versatility\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Cleric 4\",\r\n\tsource : [[\"T\", 31]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the cleric class, I can change one cleric cantrip for another\",\r\n\tprereqeval : function (v) { return classes.known.cleric.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level cleric features\");\r\n// Cleric subclass alternative feature, so only run this after we are sure all subclasses have been added\r\nRunFunctionAtEnd(function() {\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar domain = ClassList.cleric.subclasses[1][i];\r\n\t\tvar objDomain = ClassSubList[domain];\r\n\t\tif (!objDomain || !objDomain.features.subclassfeature8 || !(/divine strike|potent spellcasting/i).test(objDomain.features.subclassfeature8.name)) continue;\r\n\t\tCreateClassFeatureVariant(domain, \"subclassfeature8\", \"Blessed Strikes\", {\r\n\t\t\tname : \"Blessed Strikes\",\r\n\t\t\tsource : [[\"T\", 31]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When my weapon attack or cantrip damages a creature, I can do +1d8 radiant damage\",\r\n\t\t\t\t\"Once I deal this extra damage, I can't do so again until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && (v.isWeapon || (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0)) && /\\d/.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per round +1d8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per round, when a creature takes damage from one of my spell or weapon attacks, I can also deal 1d8 radiant damage to the target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// Cleric Subclasses\r\n// [dupl_start] reprints from Guildmasters' Guide to Ravnica\r\nif (!SourceList.G) {\r\n\tAddSubClass(\"cleric\", \"order domain\", {\r\n\t\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*order).*$/i,\r\n\t\tsubname : \"Order Domain\",\r\n\t\tsource : [[\"T\", 31], [\"G\", 25]],\r\n\t\tspellcastingExtra : [\"command\", \"heroism\", \"hold person\", \"zone of truth\", \"mass healing word\", \"slow\", \"compulsion\", \"locate creature\", \"commune\", \"dominate person\"],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature1\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription : desc(\"I gain proficiency with heavy armor, and either the Intimidation or Persuasion skill\"),\r\n\t\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\t\tskillstxt : \"Choose one from Intimidation or Persuasion\"\r\n\t\t\t},\r\n\t\t\t\"subclassfeature1.1\" : {\r\n\t\t\t\tname : \"Voice of Authority\",\r\n\t\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Whenever I use a spell slot to cast a spell on an ally, it can use its reaction to attack\",\r\n\t\t\t\t\t\"The ally makes one weapon attack against a target of my choice that I can see\",\r\n\t\t\t\t\t\"If the spell targets multiple allies, I can choose which one can make the attack\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"subclassfeature2\" : {\r\n\t\t\t\tname : \"Channel Divinity: Order's Demand\",\r\n\t\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\r\n\t\t\t\tminlevel : 2,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, all chosen targets in 30 ft that can see or hear me must make a Wis save\",\r\n\t\t\t\t\t\"If failed, it is charmed by me until the end of my next turn or it takes any damage\",\r\n\t\t\t\t\t\"Also, I can choose to have a charmed target drop what its holding when it fails its save\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature6\" : {\r\n\t\t\t\tname : \"Embodiment of the Law\",\r\n\t\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I cast an enchantment spell using a spell slot, I can reduce its casting time\",\r\n\t\t\t\t\t\"If the spell normally has a casting time of an action, I can now cast it as a bonus action\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (CurrentSpells[spName].refType == \"class\" && spellObj.school == \"Ench\" && spellObj.time == \"1 a\") {\r\n\t\t\t\t\t\t\t\tspellObj.time = \"1a/bns\"\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"When I cast an enchantment spell using a spell slot that normally requires 1 action to cast, I can reduce its casting time to a bonus action.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature8\" : {\r\n\t\t\t\tname : \"Divine Strike\",\r\n\t\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\r\n\t\t\t\tminlevel : 8,\r\n\t\t\t\tdescription : desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t\t}),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage' + (classes.known.cleric.level < 17 ? '' : ' \\u0026 again if hit by ally before my next turn');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature17\" : {\r\n\t\t\t\tname : \"Order's Wrath\",\r\n\t\t\t\tsource : [[\"T\", 32], [\"G\", 26]],\r\n\t\t\t\tminlevel : 17,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I deal my Divine Strike damage to a creature, it is cursed until my next turn starts\",\r\n\t\t\t\t\t\"The next time it is hit by a weapon attack from my allies, it takes +2d8 psychic damage\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n} // dupl_end\r\nAddSubClass(\"cleric\", \"peace domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*peace).*$/i,\r\n\tsubname : \"Peace Domain\",\r\n\tsource : [[\"T\", 32]],\r\n\tspellcastingExtra : [\"heroism\", \"sanctuary\", \"aid\", \"warding bond\", \"beacon of hope\", \"sending\", \"aura of purity\", \"otiluke's resilient sphere\", \"greater restoration\", \"rary's telepathic bond\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Emboldening Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"As an action, I can magically bond my Prof Bonus of willing creatures I can see in 30 ft\",\r\n\t\t\t\t\t\"I can be one of the bonded creatures; The bond lasts for 10 min or until I use this again\",\r\n\t\t\t\t\t\"While within \" + (n < 17 ? 30 : 60) + \" ft of another, a bonded target can add +1d4 to a save, attack, or check\",\r\n\t\t\t\t\t\"Each creature can add the +1d4 only once per turn\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Implement of Peace\",\r\n\t\t\tdescription : desc(\"I gain proficiency in the Insight, Performance, or Persuasion skill (my choice)\"),\r\n\t\t\tskillstxt : \"Choose one from: Insight, Performance, or Persuasion\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Balm of Peace\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can move up to my speed without provoking opportunity attacks\",\r\n\t\t\t\t\"During this move, I can heal each creature that I come within 5 ft of once\",\r\n\t\t\t\t\"I restore a number of hit points equal to 2d6 + my Wisdom modifier (minimum 1 HP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Protective Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My Emboldening Bond now also helps those bonded to protect each other if within range\",\r\n\t\t\t\t\"When one is about to take damage, another bonded can use its reaction to teleport closer\",\r\n\t\t\t\t\"They teleport to an empty space within 5 ft of the first and take all the damage instead\",\r\n\t\t\t\t\"From 17th-level, they count as having resistance for this damage, thus take only half\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"the bonded must be within \" + (n < 17 ? 30 : 60) + \" ft\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Expansive Bond\",\r\n\t\t\tsource : [[\"T\", 33]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Emboldening and Protective Bond work when the bonded are within 60 ft of each other\",\r\n\t\t\t\t\"Protective Bond now also grants resistance when used to take damage for another\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"twilight domain\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(twilight|transition)).*$/i,\r\n\tsubname : \"Twilight Domain\",\r\n\tsubnameShort: \"Twilight\",\r\n\tsource : [[\"T\", 34]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"moonbeam\", \"see invisibility\", \"aura of vitality\", \"leomund's tiny hut\", \"aura of life\", \"greater invisibility\", \"circle of power\", \"mislead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"T\", 34]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of Night\",\r\n\t\t\tsource : [[\"T\", 34]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain darkvision out to a range of 300 ft; As an action, I can grant others this as well\",\r\n\t\t\t\t\"I can grant it for 1 hour to my Wis mod (min 1) of willing targets I can see within 10 ft\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (grant others)\"]],\r\n\t\t\tvision : [[\"Darkvision\", 300]],\r\n\t\t\tadditional : \"grant others\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Vigilant Blessing\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can grant myself or a creature I touch adv. on the next initiative roll\",\r\n\t\t\t\t\"This benefit ends immediately after the roll or when I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Twilight Sanctuary\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use my holy symbol to create a 30-ft radius sphere around myself\",\r\n\t\t\t\t\"It moves with me, is filled with dim light, and lasts for 1 min or until I'm incapacitated\",\r\n\t\t\t\t\"When a creature, including me, ends its turn inside the sphere, I can grant it a benefit:\",\r\n\t\t\t\t\" \\u2022 I grant it temporary hit points equal to 1d6 + my cleric level\",\r\n\t\t\t\t\" \\u2022 I end one effect on it causing it to be charmed or frightened\",\r\n\t\t\t\t\"From 17th-level onwards, me and my allies have half cover while inside the sphere\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"1d6 + \" + n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Steps of Night\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can magically grant myself flight\",\r\n\t\t\t\t\"I gain a flying speed equal to my walking speed for 1 minute\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 radiant damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra radiant damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Twilight Shroud\",\r\n\t\t\tsource : [[\"T\", 35]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Me and my allies have half cover while in the sphere created by my Twilight Sanctuary\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Druid Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Druid Optional Class Features\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Additional Druid Spells\", {\r\n\tname : \"Additional Druid Spells\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"T\", 35]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"protection from evil and good\", \"augury\", \"continual flame\", \"enlarge/reduce\", \"aura of vitality\", \"elemental weapon\", \"revivify\", \"divination\", \"fire shield\", \"cone of cold\", \"flesh to stone\", \"symbol\", \"incendiary cloud\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the druid class with the following spells (spell level in brackets): Protection from Evil and Good (1), Augury (2), Continual Flame (2), Enlarge/Reduce (2), Aura of Vitality (3), Elemental Weapon (3), Revivify (3), Divination (4), Fire Shield (4), Cone of Cold (5), Flesh to Stone (6), Symbol (7), and Incendiary Cloud (8).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\nvar TCoE_Wild_Companion = {\r\n\tname : \"Wild Companion\",\r\n\textraname : \"Optional Druid 2\",\r\n\tsource : [[\"T\", 35], [\"UA:CFV\", 4]],\r\n\tdescription : desc([\r\n\t\t\"I can expend a use of wild shape to cast Find Familiar without material components\",\r\n\t\t\"The familiar always has the Fey type and disappears after half my druid level in hours\"\r\n\t]),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn n < 2 ? \"\" : Math.floor(n/2) + \" hours\";\r\n\t}),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Wild Companion\",\r\n\t\tspells : [\"find familiar\"],\r\n\t\tselection : [\"find familiar\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"find familiar\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Gain the services of a fey familiar; can see through its eyes; it can deliver touch spells; see B\",\r\n\t\t\tduration : \"\\u00BD druid lvl h\",\r\n\t\t\tchanges : \"By using my Wild Companion class feature, I can expend a use of wild shape to cast Find Familiar without material components. The familiar created this way always has the Fey type and disappears after a number of hours equal to half my druid level.\"\r\n\t\t}\r\n\t}\r\n}\r\nAddFeatureChoice(ClassList.druid.features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", TCoE_Wild_Companion, \"Optional 2nd-level druid features\");\r\nif (ClassSubList[\"druid-circle of the moon\"]) {\r\n\tAddFeatureChoice(ClassSubList[\"druid-circle of the moon\"].features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", TCoE_Wild_Companion, \"Optional 2nd-level druid features\");\r\n}\r\nAddFeatureChoice(ClassList.druid.features.druidic, true, \"Cantrip Versatility\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Druid 4\",\r\n\tsource : [[\"T\", 35]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the druid class, I can change one druid cantrip for another\",\r\n\tprereqeval : function (v) { return classes.known.druid.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level druid features\");\r\n\r\n// Druid Subclasses\r\n// [dupl_start] reprints from Guildmasters' Guide to Ravnica\r\nif (!SourceList.G) {\r\n\tAddSubClass(\"druid\", \"circle of spores\", {\r\n\t\tregExpSearch : /^(?=.*(druid|shaman))(?=.*spores).*$/i,\r\n\t\tsubname : \"Circle of Spores\",\r\n\t\tsubnameShort: \"Spores\",\r\n\t\tsource : [[\"T\", 36], [\"G\", 26]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature2\" : {\r\n\t\t\t\tname : \"Circle Spells\",\r\n\t\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\r\n\t\t\t\tminlevel : 2,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn the Chill Touch cantrip and gain the ability to cast certain spells\",\r\n\t\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Circle Spells\",\r\n\t\t\t\t\tspells : [\"chill touch\"],\r\n\t\t\t\t\tselection : [\"chill touch\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellcastingExtra : [\"blindness/deafness\", \"gentle repose\", \"animate dead\", \"gaseous form\", \"blight\", \"confusion\", \"cloudkill\", \"contagion\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature2.1\" : {\r\n\t\t\t\tname : \"Halo of Spores\",\r\n\t\t\t\tsource : [[\"T\", 36], [\"G\", 27]],\r\n\t\t\t\tminlevel : 2,\r\n\t\t\t\t description : desc([\r\n\t\t\t\t\t\"As a reaction when someone I can see in 10 ft starts its turn or moves, I can have it save\",\r\n\t\t\t\t\t\"It must succeed on a Constitution save or take necrotic damage from my cloud of spores\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : 'Con save or 1d' + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10) + \" necrotic damage\"; }),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature2.2\" : { // changed from poison to necrotic damage in TCoE\r\n\t\t\t\tname : \"Symbiotic Entity\",\r\n\t\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\r\n\t\t\t\tminlevel : 2,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can expend a Wild Shape use to boost my spores instead of transforming\",\r\n\t\t\t\t\t\"I gain 4 temporary hit points per druid level and my Halo of Spores damage increases\",\r\n\t\t\t\t\t\"Also, my melee weapon attacks do +1d6 necrotic damage with every hit\",\r\n\t\t\t\t\t\"This lasts for 10 min, until these temporary HP run out, or until I use Wild Shape again\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : Math.floor(n*4) + \" temp HP; Halo of Spores: 2d\" + (n < 6 ? 4 : n < 10 ? 6 : n < 14 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.isMeleeWeapon && (/\\b(spore|symbiotic)\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 necrotic damage';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the word \\\"Spore\\\" or \\\"Symbiotic\\\" in a melee weapon's name, it gets treated as a weapon that is infused by my Symbiotic Entity feature, adding +1d6 necrotic damage in the description.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"subclassfeature6\" : {\r\n\t\t\t\tname : \"Fungal Infestation\",\r\n\t\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when a Small/Medium beast/humanoid dies in 10 ft, I can animate it\",\r\n\t\t\t\t\t\"It rises as a zombie with 1 HP that follows my mental commands and dies after 1 hour\",\r\n\t\t\t\t\t\"It can only take the attack action for one melee attack; It takes its turns after mine\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature10\" : {\r\n\t\t\t\tname : \"Spreading Spores\",\r\n\t\t\t\tsource : [[\"T\", 37], [\"G\", 27]],\r\n\t\t\t\tminlevel : 10,\r\n\t\t\t\tdescription : \" [only while Symbiotic Entity is active]\" + desc([\r\n\t\t\t\t\t\"As a bonus action, I create a 10-ft cube of fungal spores within 30 ft, lasting for 1 min\",\r\n\t\t\t\t\t\"Any creature moving into or starting its turn in it must save against my Halo of Spores\",\r\n\t\t\t\t\t\"The cube ends if I use this feature again; While it persists, I can't use my Halo of Spores\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature14\" : {\r\n\t\t\t\tname : \"Fungal Body\",\r\n\t\t\t\tsource : [[\"T\", 38], [\"G\", 27]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I'm immune to being blinded, deafened, frightened, poisoned, and critical hits\"\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { immune : [\"blinded\", \"deafened\", \"frightened\", \"poisoned\", \"critical hits (unless incapacitated)\"] }\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n} // dupl_end\r\nAddSubClass(\"druid\", \"circle of the stars\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*circle)(?=.*stars).*$/i,\r\n\tsubname : \"Circle of the Stars\",\r\n\tsubnameShort: \"Stars\",\r\n\tsource : [[\"T\", 38]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Star Map\",\r\n\t\t\tsource : [[\"T\", 38]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I've created a star map, a Tiny object which I can use as my spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to create a replacement\",\r\n\t\t\t\t\"While holding it, I know the Guidance cantrip and always have Guiding Bolt prepared\",\r\n\t\t\t\t\"These count as druid spells, but do not count against the number of spells I can prepare\",\r\n\t\t\t\t\"I can cast Guiding Bolt without expending a spell slot my Proficiency Bonus per long rest\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guidance\"],\r\n\t\t\t\tselection : [\"guidance\"],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guiding bolt\"],\r\n\t\t\t\tselection : [\"guiding bolt\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tadditional : \"Guiding Bolt\",\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Starry Form\",\r\n\t\t\tsource : [[\"T\", 38]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend a use of wild shape to take on a starry form for 10 min\",\r\n\t\t\t\t\"In that form I shed bright light in a 10-ft radius and dim light for an extra 10-ft radius\",\r\n\t\t\t\t\"When I do so, I choose one constellation that glimmers on my body, granting me benefits\",\r\n\t\t\t\t'See the 3rd page \"Notes\" section for the benefits of the possible constellations',\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*luminous)(?=.*arrow).*$/i,\r\n\t\t\t\tname : \"Luminous Arrow\",\r\n\t\t\t\tsource : [[\"T\", 38]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"radiant\"],\r\n\t\t\t\trange : \"60 ft\",\r\n\t\t\t\tdescription : \"Use as bonus action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tuseSpellMod : \"druid\",\r\n\t\t\t\tluminousarrow : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\textraname : \"Starry Form\",\r\n\t\t\t\"archer constellation\" : {\r\n\t\t\t\tname : \"Archer Constellation\",\r\n\t\t\t\tsource : [[\"T\", 38]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can make a ranged spell attack to hurl a luminous arrow 60 ft\",\r\n\t\t\t\t\t\"I can also do this as part of the bonus action I use to assume the starry form\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier radiant damage\";\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (Luminous Arrow)\"]]\r\n\t\t\t},\r\n\t\t\t\"chalice constellation\" : {\r\n\t\t\t\tname : \"Chalice Constellation\",\r\n\t\t\t\tsource : [[\"T\", 39]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I cast a healing spell with a spell slot, I can heal myself or another within 30 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 10 ? 1 : 2) + \"d8 + Wisdom modifier hit points restored\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"dragon constellation\" : {\r\n\t\t\t\tname : \"Dragon Constellation\",\r\n\t\t\t\tsource : [[\"T\", 39]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can treat a roll below 10 as a 10 for Int/Wis checks and saves to maintain concentration\",\r\n\t\t\t\t\t\"From 10th-level onwards, I also gain a flying speed of 20 ft and can hover\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"archer constellation\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"chalice constellation\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"dragon constellation\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cosmic Omen\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I roll a die to gain an omen based on the result (odd/even)\",\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft makes an attack, check, or save, I can:\",\r\n\t\t\t\t\" \\u2022 Weal (even): add 1d6 to the number rolled for the attack, check, or save\",\r\n\t\t\t\t\" \\u2022 Woe (odd): subtract 1d6 from the number rolled for the attack, check, or save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Twinkling Constellations\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in my starry form, I can change the constellation at the start of each of my turns\",\r\n\t\t\t\t'The benefit of my constellations improve, see the 3rd page \"Notes\" section',\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.luminousarrow && fields.Damage_Die.indexOf('1d8') !== -1) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('1d8', '2d8');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'',\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Full of Stars\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"While in my starry form, I have resistance to bludgeoning, piercing, and slashing damage\"),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Bludgeoning\", \"Bludgeon. (in form)\"],\r\n\t\t\t\t[\"Piercing\", \"Piercing (in form)\"],\r\n\t\t\t\t[\"Slashing\", \"Slashing (in form)\"]\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of wildfire\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*wild.{0,1}fire).*$/i,\r\n\tsubname : \"Circle of Wildfire\",\r\n\tsubnameShort: \"Wildfire\",\r\n\tsource : [[\"T\", 39]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Spells\",\r\n\t\t\tsource : [[\"T\", 39]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My link to a wildfire spirit grants me access to spells, which count as druid spells to me\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"burning hands\", \"cure wounds\", \"flaming sphere\", \"scorching ray\", \"plant growth\",\"revivify\", \"aura of life\", \"fire shield\", \"flame strike\", \"mass cure wounds\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Summon Wildfire Spirit\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a wildfire spirit within 30 ft\",\r\n\t\t\t\t\"All within 10 ft of where it manifests must make a Dex save or take 2d10 fire damage\",\r\n\t\t\t\t\"It is friendly and obeys my commands; It lasts for 1 hour, until it has 0 HP, or I die\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can always take reactions and move on its turn; It acts on my initiative, after me\",\r\n\t\t\t\t'It disappears if I summon another; See \"Wildfire Spirit\" on a companion page for its stats',\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Wildfire Spirit\"]],\r\n\t\t\tcreaturesAdd : [[\"Wildfire Spirit\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Wildfire Spirit\",\r\n\t\t\t\tsource : [[\"T\", 40]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Elemental\",\r\n\t\t\t\talignment : \"\",\r\n\t\t\t\tac : 13,\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"30 ft, fly 30 ft (hover)\",\r\n\t\t\t\tscores : [10, 14, 14, 13, 15, 11],\r\n\t\t\t\tdamage_immunities : \"fire\",\r\n\t\t\t\tcondition_immunities : \"charmed, frightened, grappled, prone, restrained\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"understands the languages of its creator\",\r\n\t\t\t\tchallengeRating : \"1/2\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flame Seed\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"60 ft\",\r\n\t\t\t\t\tdescription : \"Ranged weapon attack\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"5-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 5 ft of teleportation origin, success - no damage; See traits\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [2, 6, \"fire\"],\r\n\t\t\t\t\trange : \"10-ft radius\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft where spirit is summoned, success - no damage\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The spirit obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command it to take another action. If its creator is incapacitated, it can take any action, not just Dodge.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tdescription : \"The spirit and each willing creature of its creator's choice within 5 ft of it teleport up to 15 ft to unoccupied spaces its creator can see. Then each creature within 5 ft of the space that the spirit left must succeed on a Dexterity saving throw against its creator's spell save DC or take fire damage equal to 1d6 + its proficiency bonus.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tdescription : \"The spirit appears in an unoccupied space of its creator's choice that its creator can see within 30 ft. Each creature within 10 ft of the spirit (other than its creator) when it appears must succeed on a Dexterity saving throw against its creator's spell save DC or take 2d6 fire damage.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Wildfire\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvl5 = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + drdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + drdLvl + \" from five times its creator's druid level (\" + drdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Enhanced Bond\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my wildfire spirit is present, I can have my spells originate from it (no range 'self')\",\r\n\t\t\t\t\"Also, I can then add 1d8 to a single roll of my spells that restore HP or deal fire damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Cauterizing Flames\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a Small or larger creature dies within 30 ft of me or wildfire spirit,\",\r\n\t\t\t\t\"I can have a spectral flame erupt in its space that lasts for 1 minute\",\r\n\t\t\t\t\"As a reaction when I see a creature enter the flame's space, I can extinguish the flame\",\r\n\t\t\t\t\"This heals or deals fire damage to the creature (my choice) equal to 2d10 + my Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Blazing Revival\",\r\n\t\t\tsource : [[\"T\", 40]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I drop to 0 HP and don't die, and my wildfire spirit is within 120 ft, it can save me\",\r\n\t\t\t\t\"I can have it drop to 0 HP; I then regain half my HP and immediately rise to my feet\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Fighter Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Fighter Optional Class Features\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Blind Fighting\", {\r\n\tname : \"Blind Fighting Style\",\r\n\tsource : [[\"T\", 41]],\r\n\tdescription : desc([\r\n\t\t\"I have blindsight with 10 ft range, allowing me to see anything not behind total cover\",\r\n\t\t\"In range, I can see invisible, but not hidden, things, even when blinded or in darkness\"\r\n\t]),\r\n\tvision : [[\"Blindsight\", 10]]\r\n});\r\nAddFightingStyle([\"fighter\", \"paladin\"], \"Interception\", {\r\n\tname : \"Interception Fighting Style\",\r\n\tsource : [[\"T\", 41], [\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature I can see hits another within 5 ft of me, I can intercept\",\r\n\t\t\"I reduce the damage the target takes by 1d10 + my Proficiency Bonus (min 0 damage)\",\r\n\t\t\"I can't be the target and it requires me wielding a shield or a simple or martial weapon\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\"], \"Thrown Weapon Fighting\", {\r\n\tname : \"Thrown Weapon Fighting Style\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : desc([\r\n\t\t\"I can draw a weapon with the thrown property as part of the attack I make with it\",\r\n\t\t\"In addition, my ranged attacks made with thrown weapons deal +2 damage\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isThrownWeapon && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2 damage when thrown';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I deal +2 damage when I hit a ranged attack made with a thrown weapon.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && !v.isMeleeWeapon) {\r\n\t\t\t\t\toutput.extraDmg += 2;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\"], \"Unarmed Fighting\", {\r\n\tname : \"Unarmed Fighting Style\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : desc([\r\n\t\t\"My unarmed strikes deal 1d6 damage, or 1d8 damage when I have both hands free\",\r\n\t\t\"At the start of my turn, I can deal 1d4 bludgeoning damage to one target I'm grappling\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\tif (fields.Damage_Die == 1 || fields.Damage_Die == \"1d4\") fields.Damage_Die = '1d6';\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Versatile (d8)';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d6 damage instead of 1, which increases to 1d8 if I have both hands free to make an unarmed strike with.\",\r\n\t\t\t1\r\n\t\t]\r\n\t}\r\n});\r\nAddFeatureChoice(ClassList.fighter.features['action surge'], true, \"Martial Versatility\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Fighter 4\",\r\n\tsource : [[\"T\", 42]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the fighter class, I can change a fighting style or a maneuver\",\r\n\tprereqeval : function (v) { return classes.known.fighter.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level fighter features\");\r\n// Fighter alternative class features and enhancements (only if Battle Master subclass exists)\r\nif (ClassSubList[\"fighter-battle master\"]) {\r\n\tAddFightingStyle([\"fighter\"], \"Superior Technique\", {\r\n\t\tname : \"Superior Technique\",\r\n\t\tsource : [[\"T\", 41], [\"UA:CFV\", 5]],\r\n\t\tadditional: \"1 maneuver; d6, 1\\xD7 per short rest\",\r\n\t\tdescription : desc([\r\n\t\t\t\"I gain one superiority die (d6) that I can expend to fuel a special Maneuver\",\r\n\t\t\t\"I can only use one Maneuver per attack; DCs are 8 + Prof B. + Str/Dex mod, my choice\",\r\n\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page'\r\n\t\t]),\r\n\t\tbonusClassExtrachoices : [{\r\n\t\t\t\"class\" : \"fighter\",\r\n\t\t\t\"subclass\" : \"fighter-battle master\",\r\n\t\t\t\"feature\" : \"subclassfeature3.1\",\r\n\t\t\t\"bonus\" : 1\r\n\t\t}],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : 'd6',\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taddToExisting : true\r\n\t\t}]\r\n\t});\r\n\t// New Maneuver options\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Ambush\", {\r\n\t\tname : \"Ambush\",\r\n\t\tsource : [[\"T\", 42], [\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"When I make an initiative roll or a Dex (Stealth) check, I can add a superiority die to it\",\r\n\t\t\t\"I can't do this if I'm incapacitated\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Bait and Switch\", {\r\n\t\tname : \"Bait and Switch\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"On my turn, I can expend a superiority die to swap places with an ally within 5 ft\",\r\n\t\t\t\"I can't do this if the ally is incapacitated or unwilling to swap\",\r\n\t\t\t\"Doing this costs me 5 ft of movement, but this doesn't provoke opportunity attacks\",\r\n\t\t\t\"Me or my ally (my choice) can then add the superiority die to AC until my next turn starts\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Brace\", {\r\n\t\tname : \"Brace\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when a creature I can see moves within my melee reach, I can attack it\",\r\n\t\t\t\"I expend a superiority die and make one weapon attack, adding the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Commanding Presence\", {\r\n\t\tname : \"Commanding Presence\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription: desc(\"When I make a Performance, Intimidation, or Persuasion check, I can add a superiority die\")\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Grappling Strike\", {\r\n\t\tname : \"Grappling Strike\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Immediately after hitting with a melee attack, I can use a bonus action to try to grapple\",\r\n\t\t\t\"I add the superiority die to the Str (Athletics) check; I can only do this on my own turn\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \" (after melee hit)\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Quick Toss\", {\r\n\t\tname : \"Quick Toss\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a bonus action, I can use a superiority die to do a ranged attack with a thrown weapon\",\r\n\t\t\t\"I can draw a thrown weapon as part of making this attack; I add the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Tactical Assessment\", {\r\n\t\tname : \"Tactical Assessment\",\r\n\t\tsource : [[\"T\", 42]],\r\n\t\tdescription: desc(\"When I make an Investigation, History, or Insight check, I can add a superiority die to it\")\r\n\t});\r\n}\r\n\r\n// Fighter Subclasses\r\nAddSubClass(\"fighter\", \"psi warrior\", {\r\n\tregExpSearch : /^(?=.*\\bpsi(onic)?s?\\b)(?=.*warrior).*$/i,\r\n\tsubname : \"Psi Warrior\",\r\n\tsource : [[\"T\", 42]],\r\n\tfullname : \"Psi Warrior\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Energy Dice\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain twice my proficiency bonus of psionic energy dice (PsiD) that fuel my psionics\",\r\n\t\t\t\t\"I regain all expended psionic energy dice after a long rest\",\r\n\t\t\t\t\"As a bonus action once per short rest, I can regain one expended psionic energy die\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 5 ? \"d6\" : n < 11 ? \"d8\" : n < 17 ? \"d10\" : \"d12\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Regain 1 Psionic Energy Die\"]],\r\n\t\t\tusages : \"Proficiency Bonus \\xD7 2 per \",\r\n\t\t\tusagescalc : \"event.value = Number(How('Proficiency Bonus'))*2\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Regain 1 Psionic Energy die\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psionic Power: Protective Field\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"1 psionic energy die\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce it\",\r\n\t\t\t\t\"I reduce the damage by the roll of the one psionic energy die I expend + my Int mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"Protective Field\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Psionic Power: Psionic Strike\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"1 psionic energy die\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once on each of my turns after I hit a target in 30 ft and damage it with a weapon,\",\r\n\t\t\t\t\"I can expend a psionic energy die to deal it the die roll + my Int mod in force damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.3\" : {\r\n\t\t\tname : \"Psionic Power: Telekinetic Movement\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can move a Large or smaller loose object or one willing creature in 30 ft\",\r\n\t\t\t\t\"I must be able to see the target and can move it up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"If it is a Tiny object, I can also move it to or from my hand; I can't move myself this way\",\r\n\t\t\t\t\"I can do this once per short rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Telekinetic Movement\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Telekinetic Adept: Psi-Powered Leap\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I gain a flying speed of twice my walking speed until the turn ends\",\r\n\t\t\t\t\"I can do this once per short rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Psi-Powered Leap\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature7.2\" : {\r\n\t\t\tname : \"Telekinetic Adept: Telekinetic Thrust\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tadditional: \"DC 8 + Prof B. + Int mod\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I deal damage with my Psionic Strike, I can have the target make a Strength save\",\r\n\t\t\t\t\"If failed, I knock the target prone or move it up to 10 ft in any direction horizontally\"\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guarded Mind\",\r\n\t\t\tsource : [[\"T\", 43]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend a psionic energy die to end all effects on me causing charmed or frightened\",\r\n\t\t\t\t\"I can do this if at the start of my turn; I also gain resistance to psychic damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Psychic\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Bulwark of Force\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can choose up to my Int mod of creatures (min 1) I can see in 30 ft\",\r\n\t\t\t\t\"This can include me; Each chosen gains half cover for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Telekinetic Master\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Telekinesis, requiring no spell slot or components, with Int spellcasting ability\",\r\n\t\t\t\t\"As a bonus action while concentrating on this spell, I can make one weapon attack\",\r\n\t\t\t\t\"I can cast Telekinesis once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Telekinetic Master\",\r\n\t\t\t\tspells : [\"telekinesis\"],\r\n\t\t\t\tselection : [\"telekinesis\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"telekinesis\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tchanges : \"Using Telekinetic Master, I can cast Telekinesis without requiring components or spell slots.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"Weapon Attack while Telekinesis conc.\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"rune knight\", {\r\n\tregExpSearch : /^(?=.*rune)(?=.*knight).*$/i,\r\n\tsubname : \"Rune Knight\",\r\n\tsource : [[\"T\", 44]],\r\n\tfullname : \"Rune Knight\",\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with smith's tools and I learn to speak, read, and write Giant\"),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tlanguageProfs : [\"Giant\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rune Carver\",\r\n\t\t\tsource : [[\"T\", 44]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn how to use magic runes to enhance my gear that I can wear or hold in my hand\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a rune and add it to the third page',\r\n\t\t\t\t\"When I finish a long rest, I can inscribe each rune I know upon a different item I touch\",\r\n\t\t\t\t\"Each item can hold only one rune and remains there until I finish a long rest\",\r\n\t\t\t\t\"Runes inscribed on a carried object grant both a passive and a limited-use active effect\",\r\n\t\t\t\t\"Whenever I gain a fighter level, I can swap a rune I know for another\",\r\n\t\t\t\t\"The DC for a rune's abilities is 8 + my Proficiency bonus + my Constitution modifier\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5) + \" runes known\"\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\textraname : \"Rune Knight 3\",\r\n\t\t\textrachoices : [\"Cloud Rune\", \"Fire Rune\", \"Frost Rune\", \"Stone Rune\", \"Hill Rune (prereq: level 7 fighter)\", \"Storm Rune (prereq: level 7 fighter)\"],\r\n\t\t\t\"cloud rune\" : {\r\n\t\t\t\tname : \"Cloud Rune\",\r\n\t\t\t\tsource : [[\"T\", 44]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a deceptiveness reminiscent of cloud giants\",\r\n\t\t\t\t\t\"I always gain advantage on Dexterity (Sleight of Hand) and Charisma (Deception) checks\",\r\n\t\t\t\t\t\"As a reaction when I or another I can see within 30 ft is hit by an attack, I can invoke this\",\r\n\t\t\t\t\t\"I select another target for the attack within 30 ft of me, using the same roll (ignore range)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Sleight of Hand\", true], [\"Deception\", true] ]\r\n\t\t\t},\r\n\t\t\t\"fire rune\" : {\r\n\t\t\t\tname : \"Fire Rune\",\r\n\t\t\t\tsource : [[\"T\", 44]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain craftsmanship reminiscent of great smiths\",\r\n\t\t\t\t\t\"I always double my proficiency bonus when making an ability check with a tool\",\r\n\t\t\t\t\t\"When I hit a creature with a weapon attack, I can invoke it to summon fiery shackles\",\r\n\t\t\t\t\t\"It takes an extra 2d6 fire damage and must make a Str save or be restrained for 1 min\",\r\n\t\t\t\t\t\"While restrained, the creature takes 2d6 fire damage at the start of each of its turns\",\r\n\t\t\t\t\t\"It can repeat the save at the end of each of its turns, banishing the shackles on a success\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t\t},\r\n\t\t\t\"frost rune\" : {\r\n\t\t\t\tname : \"Frost Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain might of those surviving wintry wilderness\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Animal Handling) and Charisma (Intimidation) checks\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke this to gain +2 on Str and Con checks and saves for 10 min\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Animal Handling\", true], [\"Intimidation\", true] ]\r\n\t\t\t},\r\n\t\t\t\"stone rune\" : {\r\n\t\t\t\tname : \"Stone Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain judiciousness reminiscent of stone giants\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Insight) checks and I gain darkvision out to 120 ft\",\r\n\t\t\t\t\t\"As a reaction when a creature I can see ends it turn within 30 ft, I can invoke this rune\",\r\n\t\t\t\t\t\"This causes the creature to make a Wisdom save or be charmed by me for 1 minute\",\r\n\t\t\t\t\t\"While charmed, it descends into a dreamy stupor, becoming incapacitated and has speed 0\",\r\n\t\t\t\t\t\"It can repeat the save at the end of each of its turns, ending the effect on a success\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tvision : [[\"Darkvision\", 120]],\r\n\t\t\t\tadvantages : [ [\"Insight\", true] ]\r\n\t\t\t},\r\n\t\t\t\"hill rune (prereq: level 7 fighter)\" : {\r\n\t\t\t\tname : \"Hill Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I gain a resilience reminiscent of hill giants\",\r\n\t\t\t\t\t\"I always gain advantage on saves against being poisoned and resistance to poison damage\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to gain resistance to bludg/slash/pierc damage for 1 min\"\r\n\t\t\t\t]),\r\n\t\t\t\tprereqeval : function(v) { return classes.known.fighter.level >= 7; },\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tdmgres : [\"Poison\"],\r\n\t\t\t\tsavetxt : { adv_vs : [\"poison\"] }\r\n\t\t\t},\r\n\t\t\t\"storm rune (prereq: level 7 fighter)\" : {\r\n\t\t\t\tname : \"Storm Rune\",\r\n\t\t\t\tsource : [[\"T\", 45]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I can glimpse the future like storm giants\",\r\n\t\t\t\t\t\"I always gain adv. on Int (Arcana) checks and I can't be surprised while not incapacitated\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to enter a prophetic state for 1 min or till incapacitated\",\r\n\t\t\t\t\t\"While in this state, I can use a reaction to cause a roll to gain advantage or disadvantage\",\r\n\t\t\t\t\t\"I can do this for attacks, saves, and checks of myself or others I can see within 60 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\tprereqeval : function(v) { return classes.known.fighter.level >= 7; },\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Arcana\", true] ],\r\n\t\t\t\tsavetxt : { immune : [\"surprised\"] },\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Giant's Might\",\r\n\t\t\tsource : [[\"T\", 45]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue myself with giant magic for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 Space permitted, I grow to a larger size category along with everything I'm wearing\",\r\n\t\t\t\t\" \\u2022 I have advantage on my Strength check and saves\",\r\n\t\t\t\t\" \\u2022 My weapon and unarmed strike attacks deal extra damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 18 ? \"Large\" : \"Huge\") + \", +1d\" + (n < 10 ? 6 : n < 18 ? 8 : 10) + \" damage\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { text : [\"Adv. on Str saves in Giant's Might\"] },\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.fighter && classes.known.fighter.level >= 3 && v.isWeapon && (/giant('s)? might/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tvar GMdmgDie = classes.known.fighter.level < 10 ? 'd6' : classes.known.fighter.level < 18 ? 'd8' : 'd10';\r\n\t\t\t\t\t\t\tvar dmgDieRx = RegExp('(\\\\d+)' + GMdmgDie, 'i');\r\n\t\t\t\t\t\t\tif (dmgDieRx.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tvar dmgDieMatch = fields.Damage_Die.match(dmgDieRx);\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(dmgDieRx, Number(dmgDieMatch[1]) + 1 + GMdmgDie);\r\n\t\t\t\t\t\t\t\tfields.Description = fields.Description.replace(/Versatile \\((\\d+d\\d+)\\)/i, 'Versatile ($1+1' + GMdmgDie + ')');\r\n\t\t\t\t\t\t\t} else if (!isNaN(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = 1 + GMdmgDie + \"+\" + fields.Damage_Die;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1' + GMdmgDie + ' damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (classes.known.fighter.level >= 18 && v.isMeleeWeapon) fields.Description += (fields.Description ? '; ' : '') + '+5 ft reach';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words \\\"Giant Might\\\" in the name of a weapon or unarmed strike, it gets treated as a weapon that I use while imbued by my Giant's Might feature. It adds +1d6 weapon damage. From 10th-level onwards, this increases to +1d8 damage. From 18th-level onwards, this increases to +1d10 damage and my reach increases by 5 ft (for melee weapons).\",\r\n\t\t\t\t\t8\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Runic Shield\",\r\n\t\t\tsource : [[\"T\", 45]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see a creature within 60 ft get hit by an attack, I can protect it\",\r\n\t\t\t\t\"The attacker must reroll its attack roll and use the new roll\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Great Stature\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My runes permanently make me grow; I add 3d4 inches to my length\",\r\n\t\t\t\t\"In addition, the extra weapon damage I deal with Giant Might increases to 1d8\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Master of Runes\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I can now invoke each of my runes twice per short rest instead of once\")\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Runic Juggernaut\",\r\n\t\t\tsource : [[\"T\", 46]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Giant's Might now adds +1d10 weapon damage, and can make me grow up to Huge\",\r\n\t\t\t\t\"While I'm Huge, my reach increases by 5 ft\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n// >>> Monk Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Monk Optional Class Features\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Dedicated Weapon\", {\r\n\tname : \"Dedicated Weapon\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"T\", 48]],\r\n\tdescription : desc([\r\n\t\t\"When I finish a short or long rest, I can focus ki and touch one simple or martial weapon\",\r\n\t\t\"From then on, until I use this feature again, this weapon counts as a monk weapon for me\",\r\n\t\t\"I have to be proficient with the weapon and it can't have the heavy or special property\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.monkweapon && !v.theWea.special && classes.known.monk && classes.known.monk.level && (/dedicated/i).test(v.WeaponTextName) && fields.Proficiency && (/simple|martial/i).test(v.theWea.type) && !(/\\b(heavy|special)\\b/i).test(fields.Description)) {\r\n\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Dedicated\" in the name of a simple or martial weapon that I\\'m proficient with and that doesn\\'t have the heavy or special property, it will be treated as a monk weapon.',\r\n\t\t\t1\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"unarmored movement\"], true, \"Ki-Fueled Attack\", {\r\n\tname : \"Ki-Fueled Attack\",\r\n\textraname : \"Optional Monk 3\",\r\n\tsource : [[\"T\", 48]],\r\n\tdescription : desc([\r\n\t\t\"If I use any ki points during my action on my turn, I can make an attack as a bonus action\",\r\n\t\t\"This attack has to be in the same turn and with an unarmed strike or a monk weapon\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 3rd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"deflect missiles\"], true, \"Quickened Healing (2 ki points)\", {\r\n\tname : \"Quickened Healing\",\r\n\textraname : \"Optional Monk 4\",\r\n\tsource : [[\"T\", 49]],\r\n\tdescription : \" [2 ki points]\\n   As an action, I can regain HP equal to the roll of my martial arts die + Proficiency Bonus\",\r\n\taction : [[\"action\", \"\"]]\r\n}, \"Optional 4th-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features[\"slow fall\"], true, \"Focused Aim (1-3 ki points)\", {\r\n\tname : \"Focused Aim\",\r\n\textraname : \"Optional Monk 5\",\r\n\tsource : [[\"T\", 49]],\r\n\tdescription : \" [1-3 ki points]\\n   When I miss an attack roll, I can spend ki to increase the roll by +2 per ki point (max +6)\",\r\n\tprereqeval : function (v) { return classes.known.monk.level >= 5 ? true : \"skip\"; }\r\n}, \"Optional 5th-level monk features\");\r\n\r\n// Monk Subclasses\r\nAddSubClass(\"monk\", \"way of mercy\", {\r\n\tregExpSearch : /^(?=.*mercy)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Mercy\",\r\n\tsubnameShort: \"Mercy\",\r\n\tsource : [[\"T\", 49]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Implements of Mercy\",\r\n\t\t\tsource : [[\"T\", 49]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Insight, Medicine, and herbalism kit; I have a special Merciful Mask\"\r\n\t\t\t]),\r\n\t\t\tskills : [\"Insight\", \"Medicine\"],\r\n\t\t\ttoolProfs : [\"Herbalism kit\"],\r\n\t\t\t\"hands of healing\" : {\r\n\t\t\t\tname : \"Hands of Healing\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"T\", 49]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"As an action, I can spend 1 ki point to touch a creature and restore a number of its HP\";\r\n\t\t\t\t\tvar b6 = \"It also recovers from one disease or being blinded, deafened, paralyzed, poisoned or stunned\";\r\n\t\t\t\t\tvar c = \"When I use Flurry of Blows, I can do this instead of one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, c] :\r\n\t\t\t\t\t\t[a, b6, n < 11 ? c : c.replace(\"one\", \"each\")]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; heal 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wisdom modifier\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"hands of harm\" : {\r\n\t\t\t\tname : \"Hands of Harm\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"When I hit a creature with an unarmed strike, I can spend 1 ki point to deal extra damage\";\r\n\t\t\t\t\tvar b6 = \"I can also subject the target to the poisoned condition until the end of my next turn\";\r\n\t\t\t\t\tvar c11 = \"When I use Flurry of Blows, I can do this with one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\tvar d = \"I can use this feature only once per turn\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, d] :\r\n\t\t\t\t\t\tn < 11 ? [a, b6, d] :\r\n\t\t\t\t\t\t[a, b6, c11, d]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wis mod necrotic damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hands of healing\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"hands of harm\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Physician's touch\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Hand of Healing also ends 1 disease, blinded, deafened, paralyzed, poisoned or stunned\",\r\n\t\t\t\t\"Hand of Harm also causes target to be poisoned until the end of my next turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Flurry of Healing and Harm\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use Hand of Healing instead of each Flurry of Blows unarmed strike without ki cost\",\r\n\t\t\t\t\"I can use Hand of Harm on one Flurry of Blows unarmed strike without ki cost\"\r\n\t\t\t]),\r\n\t\t\t\"hand of ultimate mercy\" : {\r\n\t\t\t\tname : \"Hand of Ultimate Mercy\",\r\n\t\t\t\textraname : \"Way of Mercy 17\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can spend 5 ki points and touch a creature that died in the last 24 hours\",\r\n\t\t\t\t\t\"The creature returns to life and regains 4d10 + my Wisdom modifier in hit points\",\r\n\t\t\t\t\t\"It is also cured of all these conditions: blinded, deafened, paralyzed, poisoned, and stunned\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : \"5 ki points\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hand of ultimate mercy\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the astral self\", {\r\n\tregExpSearch : /^(?=.*astral)(?=.*(self|projection|travel))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Astral Self\",\r\n\tsubnameShort: \"Astral Self\",\r\n\tsource : [[\"T\", 50]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arms of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : ' [1 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use my ki to summon the arms of my astral self for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\t\tregExpSearch : /^(?=.*\\bastral\\b)(?=.*\\barms?\\b).*$/i,\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\trange : \"Melee (+5 ft)\",\r\n\t\t\t\tdamage : [1, \"\", \"Force\"],\r\n\t\t\t\tdescription : \"+5 ft reach; Uses Str, Dex, or Wis\",\r\n\t\t\t\tisAstralArms : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"astral arms\" : {\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\textraname : \"Way of the Astral Self 3\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms to hover next to or over my own arms\",\r\n\t\t\t\t\t\"When I summon them, all creatures of my choice I can see in 10 ft must make a Dex save\",\r\n\t\t\t\t\t\"If failed, they take twice my martial arts die in force damage\",\r\n\t\t\t\t\t\"I can use the arms to make unarmed strikes, using Wisdom instead of Strength/Dexterity\",\r\n\t\t\t\t\t\"I have +5 ft reach on attacks made with my astral arms and they deal force damage\",\r\n\t\t\t\t\t\"They last for 10 minutes or until I'm incapacitated or die; I choose their appearance\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 2d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" force damage on summon\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral arms\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Visage of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 50]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : ' [1 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use my ki to summon the visage of my astral self for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage\", \"Summon Astral Arms\"]],\r\n\t\t\t\"astral visage\" : {\r\n\t\t\t\tname : \"Astral Visage\",\r\n\t\t\t\textraname : \"Way of the Astral Self 6\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action (or when summoning my astral arms), I can summon my astral visage\",\r\n\t\t\t\t\t\"It lasts for 10 minutes or until I'm incapacitated or die; I choose its appearance\",\r\n\t\t\t\t\t\"My astral visage covers my face like a helmet or mask and grants me the following benefits:\",\r\n\t\t\t\t\t\" \\u2022 Astral Sight: I can see normally in normal and magical darkness to a distance of 120 ft\",\r\n\t\t\t\t\t\" \\u2022 Wisdom of the Spirit: I have advantage on Wisdom (Insight) and Charisma (Intimidation)\",\r\n\t\t\t\t\t\" \\u2022 Word of the Spirit: I can have only one target I can see in 60 ft hear me, or all in 300 ft\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral visage\" }]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Body of the Astral Self\",\r\n\t\t\tsource : [[\"T\", 51]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : ' [see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"When I have both my astral arms and visage summoned, my astral body appears as well\",\r\n\t\t\t\t\"This spectral body covers me like an armor, connecting my astral arms and astral visage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"Deflect Energy\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Astral Body\",\r\n\t\t\t\textraname : \"Way of the Astral Self 11\",\r\n\t\t\t\tsource : [[\"T\", 51]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage are present]\" + desc([\r\n\t\t\t\t\t\" \\u2022 Deflect Energy: As a reaction when I take damage, I can reduce it by 1d10 + Wis mod\",\r\n\t\t\t\t\t\"   I can only do this if the damage I take is acid, cold, fire, force, lightning, or thunder\",\r\n\t\t\t\t\t\" \\u2022 Empowered Arms: Once per my turn, I can add martial art die to astral arms damage\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.isAstralArms && classes.known.monk && classes.known.monk.level) {\r\n\t\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once on each of my turns +1d' + aMonkDie + ' damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once on each of my turns when I hit a target with my astral arms, I can add my martial arts die to the damage dealt.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Awakened Astral Self\",\r\n\t\t\tsource : [[\"T\", 51]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : ' [5 ki; see 3rd page \"Notes\"]' + desc([\r\n\t\t\t\t\"As a bonus action, I can use 5 ki points to summon astral arms and visage with benefits\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Awakened Astral Self\",\r\n\t\t\t\textraname : \"Way of the Astral Self 17\",\r\n\t\t\t\tsource : [[\"T\", 50]],\r\n\t\t\t\tadditional: \"5 ki points\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms and astral visage, with extra benefits:\",\r\n\t\t\t\t\t\" \\u2022 Armor of the Spirit: I gain a +2 bonus to my armor class\",\r\n\t\t\t\t\t\" \\u2022 Astral Barrage: I can do three attacks with the Attack action, if all are with astral arms\",\r\n\t\t\t\t\t\"This lasts for 10 minutes or until I'm incapacitated or die\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Paladin Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Paladin Optional Class Features\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Additional Paladin Spells\", {\r\n\tname : \"Additional Paladin Spells\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"T\", 52]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gentle repose\", \"prayer of healing\", \"warding bond\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the paladin class with the following spells (spell level in brackets): Gentle Repose (2), Prayer of Healing (2), and Warding Bond (2).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\n// Blind Fighting & Interception already added in the Fighter Options section\r\nAddFightingStyle([\"paladin\"], \"Blessed Warrior\", {\r\n\tname : \"Blessed Warrior Fighting Style\",\r\n\tsource : [[\"T\", 52], [\"UA:CFV\", 6]],\r\n\tdescription : desc([\r\n\t\t\"I learn two cleric cantrips that count as paladin spells for me and use Cha for spellcasting\",\r\n\t\t\"Whenever I gain a paladin level, I can swap one of these for another cleric cantrip\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Blessed Warrior\",\r\n\t\t\"class\" : \"cleric\",\r\n\t\tlevel : [0, 0],\r\n\t\ttimes : 2\r\n\t}]\r\n});\r\nAddFeatureChoice(ClassList.paladin.features[\"subclassfeature3.0-channel divinity\"], true, \"Harness Divine Power\", {\r\n\tname : \"Channel Divinity: Harness Divine Power\",\r\n\textraname : \"Optional Paladin 3\",\r\n\tsource : [[\"T\", 52]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can expend a use of my channel divinity to regain one used spell slot\",\r\n\t\t\"The level of this spell slot can be no more than half my Proficiency Bonus (rounded up)\",\r\n\t\t\"I can only do this so many times per long rest, even if I have uses of channel divinity left\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : levels.map(function(n) {\r\n\t\treturn n < 3 ? \"\" : n < 7 ? 1 : n < 15 ? 2 : 3;\r\n\t}),\r\n\trecovery : \"long rest\"\r\n}, \"Optional 3rd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features['divine health'], true, \"Martial Versatility\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Paladin 4\",\r\n\tsource : [[\"T\", 53]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the paladin class, I can change my paladin fighting style\",\r\n\tprereqeval : function (v) { return classes.known.paladin.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level paladin features\");\r\n\r\n// Paladin Subclasses\r\n// [dupl_start] reprints from Mythic Odysseys of Theros\r\nif (!SourceList.MOT) {\r\n\tAddSubClass(\"paladin\", \"oath of glory\", {\r\n\t\tregExpSearch : /^(((?=.*glory)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\t\tsubname : \"Oath of Glory\",\r\n\t\tsubnameShort: \"Glory\",\r\n\t\tsource : [[\"T\", 53], [\"MOT\", 29]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Channel Divinity: Peerless Athlete\",\r\n\t\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can get adv. on Str (Athletics) \\u0026 Dex (Acrobatics) checks for 10 min\",\r\n\t\t\t\t\t\"In that time, I also add +10 ft to jumps, and double what I can carry, push, drag, \\u0026 lift\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\t\tspellcastingExtra : [\"guiding bolt\", \"heroism\", \"enhance ability\", \"magic weapon\", \"haste\", \"protection from energy\", \"compulsion\", \"freedom of movement\", \"commune\", \"flame strike\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Channel Divinity: Inspiring Smite\",\r\n\t\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action after dealing damage with Divine Smite, I can grant temporary HP\",\r\n\t\t\t\t\t\"I distribute the temporary HP how I choose across creatures within 30 ft, including me\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"2d8 + \" + n + \" temporary HP\";\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature7\" : {\r\n\t\t\t\tname : \"Aura of Alacrity\",\r\n\t\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\t\tminlevel : 7,\r\n\t\t\t\tdescription: desc(\"If I'm not incapacitated, allies starting their turn in range gain bonus speed for that turn\"),\r\n\t\t\t\tspeed : { walk : { spd : \"+10\", enc : \"+10\" } },\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 7 ? \"\" : (n < 18 ? 5 : 10) + \"-foot aura; +10 ft walking speed\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Glorious Defense\",\r\n\t\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction when I or another in 10 ft is hit with an attack roll, I can grant bonus AC\",\r\n\t\t\t\t\t\"I must be able to see the attacker; I add my Cha mod (min 1) to the AC for that attack\",\r\n\t\t\t\t\t\"If it misses, I can do a weapon attack vs. the attacker, if in reach, as part of this reaction\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature20\" : {\r\n\t\t\t\tname : \"Living Legend\",\r\n\t\t\t\tsource : [[\"T\", 54], [\"MOT\", 29]],\r\n\t\t\t\tminlevel : 20,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can empower myself with legends, gaining the following for 1 min:\",\r\n\t\t\t\t\t\" \\u2022 My otherworldly presence grants me advantage on Charisma checks\",\r\n\t\t\t\t\t\" \\u2022 Once on each of my turns when I miss with a weapon attack, I can have it hit instead\",\r\n\t\t\t\t\t\" \\u2022 As a reaction when I fail a saving throw, I can reroll it, but must use the new roll\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t\t]),\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taltResource : \"SS 5+\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n} // dupl_end\r\nAddSubClass(\"paladin\", \"oath of the watchers\", {\r\n\tregExpSearch : /^(?=.*watchers)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Watchers\",\r\n\tsubnameShort: \"Watchers\",\r\n\tsource : [[\"T\", 54]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Watcher's Will\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As an action, Cha mod of creatures I see in 30 ft adv. on Int/Wis/Cha saves for 1 min\"),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"alarm\", \"detect magic\", \"moonbeam\", \"see invisibility\", \"counterspell\", \"nondetection\", \"aura of purity\", \"banishment\", \"hold monster\", \"scrying\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure the Extraplanar\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all aberration, celestial, elemental, fey, fiend in 30 ft must make Wis save\",\r\n\t\t\t\t\"Succeeds if it can't hear me; On fail, turned for 1 minute or until it takes any damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Sentinel\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, chosen creatures in range and I add my Prof Bonus to Initiative\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"prof\", text : \"I can add my Proficiency Bonus to initiative rolls.\" }]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Vigilant Rebuke\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another I can see succeeds a Int, Wis, or Cha save, I can rebuke\",\r\n\t\t\t\t\"The creature that forced the saving throw takes 2d8 + my Charisma mod force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Mortal Bulwark\",\r\n\t\t\tsource : [[\"T\", 55]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 Truesight 120 ft; Adv. on attacks vs. aberrations, celestials, elementals, fey, and fiends\",\r\n\t\t\t\t\" \\u2022 When I hit and damage a creature with an attack, I can banish it if it fails a Cha save\",\r\n\t\t\t\t\"   It's banished to its native plane if not there now; It's immune for 24 hours on a success\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 5+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Ranger Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Ranger Optional Class Features\r\nvar TCoE_Deft_Explorer = function () {\r\n\tvar a = {\r\n\t\tname : \"Deft Explorer: Canny\",\r\n\t\tsource : [[\"T\", 56]],\r\n\t\tdescription: desc(\"I learn two languages and gain expertise with one skill I'm proficient with\"),\r\n\t\tlanguageProfs : [2],\r\n\t\tskillstxt : \"Expertise with one skill I'm proficient with\",\r\n\t\tadditional : \"extra benefits at 6th and 10th level\",\r\n\t\textraTimes : [1],\r\n\t\textraname : \"Canny (select skill for expertise)\",\r\n\t\textrachoices : [\"Acrobatics\", \"Animal Handling\", \"Arcana\", \"Athletics\", \"Deception\", \"History\", \"Insight\", \"Intimidation\", \"Investigation\", \"Medicine\", \"Nature\", \"Perception\", \"Performance\", \"Persuasion\", \"Religion\", \"Sleight of Hand\", \"Stealth\", \"Survival\"],\r\n\t\t\"roving benefit\" : {\r\n\t\t\tname : \"Roving\",\r\n\t\t\textraname : \"Deft Explorer Benefit 6\",\r\n\t\t\tsource : [[\"T\", 56]],\r\n\t\t\tdescription: desc(\"I gain +5 ft walking speed and climbing and swimming speed equal to my walking speed\"),\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : \"+5\", enc : \"+5\" },\r\n\t\t\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\t\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"tireless benefit\" : {\r\n\t\t\tname : \"Tireless\",\r\n\t\t\textraname : \"Deft Explorer Benefit 10\",\r\n\t\t\tsource : [[\"T\", 56]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I finish a short rest, I reduce my exhaustion level, if any, by 1\",\r\n\t\t\t\t\"As an action a number of times per long rest, I can give myself temp HP of 1d8 + Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : \"1d8 + Wis Mod\",\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\tautoSelectExtrachoices : [{\r\n\t\t\textrachoice : \"roving benefit\",\r\n\t\t\tminlevel : 6\r\n\t\t}, {\r\n\t\t\textrachoice : \"tireless benefit\",\r\n\t\t\tminlevel : 10\r\n\t\t}]\r\n\t}\r\n\tfor (var i = 0; i < a.extrachoices.length; i++) {\r\n\t\tvar attr = a.extrachoices[i].toLowerCase();\r\n\t\ta[attr] = {\r\n\t\t\tname : a.extrachoices[i] + \" Expertise\",\r\n\t\t\textraname : \"Deft Explorer Benefit 1\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : a.source,\r\n\t\t\tskills : [[a.extrachoices[i], \"only\"]],\r\n\t\t\tprereqeval : function(v) {\r\n\t\t\t\treturn v.skillProfsLC.indexOf(v.choice) === -1 ? false : v.skillExpertiseLC.indexOf(v.choice) === -1 ? true : \"markButDisable\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn a;\r\n}();\r\nCreateClassFeatureVariant(\"ranger\", \"natural explorer\", \"Deft Explorer\", TCoE_Deft_Explorer);\r\nvar TCoE_Favored_Foe = {\r\n\tname : \"Favored Foe\",\r\n\tsource : [[\"T\", 56]],\r\n\tdescription : desc([\r\n\t\t\"When I hit a creature with an attack roll, I can mark it as my favored enemy for 1 min\",\r\n\t\t\"I deal extra damage to it when I mark it and the first time I hit a marked on my turn\",\r\n\t\t\"Keeping a creature marked as favored enemy requires me to concentrate, like on a spell\"\r\n\t]),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn \"+1d\" + (n < 6 ? 4 : n < 14 ? 6 : 8) + \" damage\";\r\n\t}),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.isSpell && (classes.known.rangerua || classes.known.ranger) && /favou?red.{1,2}(foe|enemy)/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +1d' + (rngrLvl < 6 ? 4 : rngrLvl < 14 ? 6 : 8) + ' damage';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Favored Foe\" or \"Favored Enemy\" in the name of a weapon, it gets the bonus damage I do against marked favored enemies added to its description.'\r\n\t\t]\r\n\t}\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"favored enemy\", \"Favored Foe\", TCoE_Favored_Foe);\r\nvar TCoE_Additional_Ranger_Spells = {\r\n\tname : \"Additional Ranger Spells\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"searing smite\", \"aid\", \"enhance ability\", \"gust of wind\", \"magic weapon\", \"elemental weapon\", \"meld into stone\", \"revivify\", \"dominate beast\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the ranger class with the following spells (spell level in brackets): Entangle (1), Searing Smite (1), Aid (2), Enhance Ability (2), Gust of Wind (2), Magic Weapon (2), Elemental Weapon (3), Meld into Stone (3), Revivify (3), Dominate Beast (4), and Greater Restoration (5).\"\r\n\t\t]\r\n\t},\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 2) || (classes.known.rangerau && classes.known.rangerau.level >= 2) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Additional Ranger Spells (prereq: level 2 ranger)\", TCoE_Additional_Ranger_Spells, \"Optional ranger features\");\r\n// Blind Fighting & Thrown Weapon Fighting already added in the Fighter Options section\r\nAddFightingStyle([\"ranger\"], \"Druidic Warrior\", {\r\n\tname : \"Druidic Warrior Fighting Style\",\r\n\tsource : [[\"T\", 57], [\"UA:CFV\", 7]],\r\n\tdescription : desc([\r\n\t\t\"I learn two druid cantrips that count as ranger spells for me and use Wis for spellcasting\",\r\n\t\t\"Whenever I gain a ranger level, I can swap one of these for another druid cantrip\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druidic Warrior\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\ttimes : 2\r\n\t}]\r\n});\r\nvar TCoE_Ranger_Spellcasting_Focus = {\r\n\tname : \"Spellcasting Focus\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"T\", 57], [\"UA:CFV\", 8]],\r\n\tdescription: desc(\"I can use a druidic focus as a spellcasting focus for my ranger spells\"),\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 2) || (classes.known.rangerau && classes.known.rangerau.level >= 2) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Spellcasting Focus (prereq: level 2 ranger)\", TCoE_Ranger_Spellcasting_Focus, \"Optional ranger features\");\r\nvar TCoE_Primal_Awareness = {\r\n\tname : \"Primal Awareness\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : desc([\r\n\t\t\"I get bonus spells known, which do not count against the number of spells I can know\",\r\n\t\t\"In addition, I can cast each once per long rest without expending a spell slot\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the bonus spells from the normally selectable list\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I know the following spells, without them counting towards the maximum number of spells I can know: Speak with Animals, Beast Sense, Speak with Plants, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Primal Awareness\",\r\n\t\tspells : [\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tselection : [\"speak with animals\", \"beast sense\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : levels.map(function (n) {\r\n\t\t\treturn n < 5 ? 1 : n < 9 ? 2 : n < 13 ? 3 : n < 17 ? 4 : 5;\r\n\t\t})\r\n\t}]\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"primeval awareness\", \"Primal Awareness\", TCoE_Primal_Awareness);\r\nvar TCoE_Ranger_Martial_Versatility = {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Ranger 4\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\\n   Whenever I gain an ASI from the ranger class, I can change my ranger fighting style\",\r\n\tprereqeval : function (v) { return (classes.known.ranger && classes.known.ranger.level >= 4) || (classes.known.rangerau && classes.known.rangerau.level >= 4) ? true : \"skip\"; }\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Martial Versatility (prereq: level 4 ranger)\", TCoE_Ranger_Martial_Versatility, \"Optional ranger features\");\r\nvar TCoE_Natures_Veil = {\r\n\tname : \"Nature's Veil\",\r\n\tsource : [[\"T\", 57]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can become invisible along with any equipment I'm wearing/carrying\",\r\n\t\t\"This invisibility lasts until the start of my next turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"hide in plain sight\", \"Nature's Veil\", TCoE_Natures_Veil);\r\n\r\n// Add the Ranger alternative class features also to the Revised Ranger, if it exists after all scripts have ran\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList[\"rangerua\"]) return;\r\n\tCreateClassFeatureVariant(\"rangerua\", \"natural explorer\", \"Deft Explorer\", TCoE_Deft_Explorer);\r\n\r\n\t// Add Favored Foe as an alternative choice (can't be done by automation because of choices) and add \"Favored Foe\" variant option\r\n\t// Move some attributes from the main object to the favored enemy choice objects\r\n\t['additional', 'languageProfs', 'calcChanges'].forEach( function(attr) {\r\n\t\tvar fea = ClassList.rangerua.features[\"favored enemy\"];\r\n\t\tif (!fea[attr]) return;\r\n\t\t// Move the attribute to each of the choices\r\n\t\tfor (var i = 0; i < fea.choices.length; i++) {\r\n\t\t\tvar aCh = fea[fea.choices[i].toLowerCase()];\r\n\t\t\tif (aCh.source) continue; // don't do options that are not part of the original entry (which don't have a source)\r\n\t\t\taCh[attr] = fea[attr];\r\n\t\t}\r\n\t\t// Now delete the attributes from the parent object\r\n\t\tdelete fea[attr];\r\n\t});\r\n\t// Now add the alternative class feature as another choice\r\n\tAddFeatureChoice(ClassList.rangerua.features[\"favored enemy\"], false, \"[alternative feature] Favored Foe\", TCoE_Favored_Foe);\r\n\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Additional Ranger Spells (prereq: level 2 ranger)\", TCoE_Additional_Ranger_Spells, \"Optional ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Spellcasting Focus (prereq: level 2 ranger)\", TCoE_Ranger_Spellcasting_Focus, \"Optional ranger features\");\r\n\tCreateClassFeatureVariant(\"rangerua\", \"primeval awareness\", \"Primal Awareness\", TCoE_Primal_Awareness);\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Martial Versatility (prereq: level 4 ranger)\", TCoE_Ranger_Martial_Versatility, \"Optional ranger features\");\r\n\tCreateClassFeatureVariant(\"rangerua\", \"hide in plain sight\", \"Nature's Veil\", TCoE_Natures_Veil);\r\n});\r\n\r\n// Ranger (Beast Master) alternative class feature\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tvar TCoE_Primal_Companion_Attributes = {\r\n\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\tlanguages : \"understands the languages of its master but can't speak\",\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Master\",\r\n\t\t\tdescription : \"The beast obeys the commands of its master and shares its proficiency bonus. It takes its turn during that of its master, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its master takes a bonus action to command it to take another action. Its master can also forgo one attack during their Attack action to command the beast to take the Attack action. If its master is incapacitated, the beast can take any action, not just Dodge. The beast vanishes if its master dies.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Primal Rebirth\",\r\n\t\t\tdescription : \"Within an hour of the beast's death, its master can take an action to touch it and expend a spell slot to have it return to full HP after 1 minute.\"\r\n\t\t}, {\r\n\t\t\tname : \"Primal Bond\",\r\n\t\t\tdescription : \"The beast adds it proficiency bonus to all its ability check and saving throws.\"\r\n\t\t}, {\r\n\t\t\tname : \"Exceptional Training (Beast Master 7)\",\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : \"The beast's attacks count as magical for overcoming resistances and immunities.\",\r\n\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\tAddString(prefix + \"Comp.Use.Attack.1.Description\", \"Counts as magical\", \"; \");\r\n\t\t\t},\r\n\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\tRemoveString(prefix + \"Comp.Use.Attack.1.Description\", \"Counts as magical\");\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\tname : \"Bestial Fury (Beast Master 11)\",\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : \"When commanded to take the Attack action, the beast can make 2 attacks as part of its Attack action.\",\r\n\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\tValue(prefix + \"Comp.Use.Attack.perAction\", 2);\r\n\t\t\t},\r\n\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\tValue(prefix + \"Comp.Use.Attack.perAction\", 1);\r\n\t\t\t}\r\n\t\t}],\r\n\t\taddMod : [\r\n\t\t\t{ type : \"skill\", field : \"all\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" },\r\n\t\t\t{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" },\r\n\t\t\t{ type : \"save\", field : \"all\", mod : \"Prof\", text : \"The primal companion adds it proficiency bonus to all its ability check and saving throws.\" }\r\n\t\t],\r\n\t\tcalcChanges : {\r\n\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\tvar multiplier = What(prefix + \"Comp.Use.HD.Die\") == 6 ? [4, \"four\"] : [5, \"five\"];\r\n\t\t\t\tvar rngrLvlM = multiplier[0] * rngrLvl;\r\n\t\t\t\tHDobj.alt.push(multiplier[0] + rngrLvlM);\r\n\t\t\t\tHDobj.altStr.push(\" = \" + multiplier[0] + \" as a base\\n + \" + multiplier[0] + \" \\xD7 \" + rngrLvl + \" from \" + multiplier[1] + \" times its master's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t},\r\n\t\t\tsetAltHp : true\r\n\t\t}\r\n\t};\r\n\tCreateClassFeatureVariant(\"ranger-beast master\", \"subclassfeature3\", \"Primal Companion\", {\r\n\t\tname : \"Primal Companion\",\r\n\t\tsource : [[\"T\", 61]],\r\n\t\tdescription : desc([\r\n\t\t\t\"When I finish a long rest, I can summon a primal beast of the land, sea, or sky in 5 ft\",\r\n\t\t\t\"I determine what animal it looks like, but it always has primal markings\",\r\n\t\t\t\"It is friendly to me and my allies, obeys my commands, and acts during my turn\",\r\n\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\"I can also forgo one attack of my Attack action to command it to take the Attack action\",\r\n\t\t\t\"It can take reactions and move on its turn even if I don't command it\",\r\n\t\t\t\"As an action within 1 hour of it dying, I can touch it and expend a spell slot to revive it\",\r\n\t\t\t\"It then returns to full HP in 1 minute; It vanishes if I summon another one or if I die\"\r\n\t\t]),\r\n\t\taction : [\r\n\t\t\t[\"bonus action\", \" (command)\"],\r\n\t\t\t[\"action\", \" (revive)\"]\r\n\t\t],\r\n\t\tcreaturesAdd : [\r\n\t\t\t[\"Beast of the Land\", true],\r\n\t\t\t[\"Beast of the Sea\", true],\r\n\t\t\t[\"Beast of the Sky\", true]\r\n\t\t],\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Beast of the Land\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\thp : 20,\r\n\t\t\thd : [3, 8],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"40 ft, climb 40 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Maul\",\r\n\t\t\t\tability : 5,\r\n\t\t\t\tdamage : [1, 8, \"slashing\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"+1d6 damage if hits after moving 20 ft straight in same round, see Charge\",\r\n\t\t\t\ttooltip : \"If the beast moves at least 20 feet straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against your spell save DC or be knocked prone.\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tability : 5,\r\n\t\t\t\tdamage : [\"Str save\", \"\", \"Knocked prone\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"Str save or knocked prone; Only if maul hits after moving 20 ft straight in same round\",\r\n\t\t\t\ttooltip : \"If the beast moves at least 20 feet straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against your spell save DC or be knocked prone.\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tdescription : \"If the beast moves at least 20 ft straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against my spell save DC or be knocked prone.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits.map( function(n) {\r\n\t\t\t\tif (!typePF && /Exceptional Training/i.test(n.name)) {\r\n\t\t\t\t\tvar a = newObj(n);\r\n\t\t\t\t\ta.description = \"The beast's attacks count as magical.\";\r\n\t\t\t\t\treturn a;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn n;\r\n\t\t\t\t}\r\n\t\t\t}),\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Sea\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\thp : 20,\r\n\t\t\thd : [3, 8],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"5 ft, swim 60 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Binding Strike\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 6, \"Pierc./Bludg.\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"On hit, target is grappled (escape DC is spell DC) and beast can't use attack on others\",\r\n\t\t\t\ttooltip : \"If the beast hits a target with its blinding strike, the target is grappled (escape DC equal to your spellcasting save DC). Until this grapple ends, the beast can't use this attack on another target.\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Amphibious\",\r\n\t\t\t\tdescription : \"The beast can breathe both air and water.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits,\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Sky\",\r\n\t\t\tsource : [[\"T\", 61]],\r\n\t\t\tsize : 4,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Unaligned\",\r\n\t\t\tac : \"10+Dex+Prof\",\r\n\t\t\thp : 16,\r\n\t\t\thd : [3, 6],\r\n\t\t\thdLinked : TCoE_Primal_Companion_Attributes.hdLinked,\r\n\t\t\tspeed : \"10 ft, fly 60 ft\",\r\n\t\t\tscores : [6, 16, 13, 8, 14, 11],\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 12,\r\n\t\t\tlanguages : TCoE_Primal_Companion_Attributes.languages,\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tproficiencyBonusLinked : true,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Shred\",\r\n\t\t\t\tability : 2,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tuseSpellMod : \"ranger\"\r\n\t\t\t}],\r\n\t\t\tactions : [{\r\n\t\t\t\tname : \"Flyby\",\r\n\t\t\t\tdescription : \"The beast doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t\t}],\r\n\t\t\tfeatures : TCoE_Primal_Companion_Attributes.features,\r\n\t\t\ttraits : TCoE_Primal_Companion_Attributes.traits,\r\n\t\t\taddMod : TCoE_Primal_Companion_Attributes.addMod,\r\n\t\t\tcalcChanges : TCoE_Primal_Companion_Attributes.calcChanges,\r\n\t\t\tminlevelLinked : TCoE_Primal_Companion_Attributes.hdLinked\r\n\t\t}],\r\n\t\teval : function() {\r\n\t\t\t// Remove any ranger companion pages\r\n\t\t\tWhat(\"Template.extras.AScomp\").split(\",\").forEach(function (prefix) {\r\n\t\t\t\tif (What(prefix + \"Companion.Remember\") === \"companion\") {\r\n\t\t\t\t\tDoTemplate(\"AScomp\", \"Remove\", prefix, true)\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n}\r\n\r\n// Ranger Subclasses\r\nvar TCoE_Ranger_Subclass_Fey_Wanderer = AddSubClass(\"ranger\", \"fey wanderer\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*wanderer).*$/i,\r\n\tsubname : \"Fey Wanderer\",\r\n\tsource : [[\"T\", 58]],\r\n\tfullname : \"Fey Wanderer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dreadful Strikes\",\r\n\t\t\tsource : [[\"T\", 58]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My weapons deal extra psychic damage, but only once per turn per creature\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 11 ? 4 : 6) + \" psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isWeapon && (classes.known.ranger || classes.known.rangerua)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn per target +1d' + (rngrLvl < 11 ? 4 : 6) + ' psychic damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I hit a creature with a weapon, I can deal an extra 1d4 psychic damage to the target, which can take this extra damage only once per turn. From 11th-level, this damage increases to 1d6.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fey Wanderer Magic\",\r\n\t\t\tsource : [[\"T\", 58]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"charm person\", \"misty step\", \"dispel magic\", \"dimension door\", \"mislead\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\t'I gain proficiency in Deception, Performance, or Persuasion; Use \"Choose Feature\" button'\r\n\t\t\t]),\r\n\t\t\taddMod : [\"Deception\", \"Intimidation\", \"Performance\", \"Persuasion\"].map(function(skill){return { type : \"skill\", field : skill, mod : \"max(Wis|1)\", text : \"I can add my Wisdom modifier to any Charisma check I make (minimum of +1).\" };}),\r\n\t\t\tchoices : [\"Deception proficiency\", \"Performance proficiency\", \"Persuasion proficiency\"],\r\n\t\t\t\"deception proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Deception proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Deception\"]\r\n\t\t\t},\r\n\t\t\t\"performance proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Performance proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Performance\"]\r\n\t\t\t},\r\n\t\t\t\"persuasion proficiency\" : {\r\n\t\t\t\tname : \"Otherworldly Glamour\",\r\n\t\t\t\tdescription : \" [Persuasion proficiency]\\n   I can add my Wisdom modifier to any Charisma check I make (minimum of +1)\",\r\n\t\t\t\tskills : [\"Persuasion\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Beguiling Twist\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves against being charmed or frightened; Below uses my save DC\",\r\n\t\t\t\t\"As a reaction when a creature I see in 120 ft succeeds its save vs. charmed or frightened,\",\r\n\t\t\t\t\"I can have another I see in 120 ft make a Wis save or be charmed/frightened (I choose)\",\r\n\t\t\t\t\"This lasts for 1 minute and the target can repeat the save at the end of each of its turns\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Fey Reinforcements\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Summon Fey; It needs no material component, nor counts against spells known\",\r\n\t\t\t\t\"Once per long rest, I can cast it without expending a spell slot\",\r\n\t\t\t\t\"When I cast it, I can have it not require concentration, but than its duration is 1 minute\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fey Reinforcements\",\r\n\t\t\t\tspells : [\"summon fey\"],\r\n\t\t\t\tselection : [\"summon fey\"],\r\n\t\t\t\tfirstCol : 'oncelr+markedbox'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"summon fey\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tduration : \"Conc,1h/1min\",\r\n\t\t\t\t\tchanges : \"Using my Fey Reinforcements class feature, I can cast Summon Fey without requiring material components and I can cast it once per long rest without requiring a spell slot. Whenever I start casting the spell, I can modify it so that it doesn't require concentration. If I do so, the spell's duration becomes 1 minute for that casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Misty Wanderer\",\r\n\t\t\tsource : [[\"T\", 59]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Misty Step without a spell slot and can bring a willing creature in 5 ft along\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"misty step\") {\r\n\t\t\t\t\t\t\tspellObj.firstCol = \"oncelr+markedbox\";\r\n\t\t\t\t\t\t\tspellObj.description = \"I and one willing creature I can see within 5 ft of me teleport 30 ft to a unoccupied space I can see\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Whenever I cast misty step, I can bring along one willing creature I can see within 5 ft of me. That creature teleports to an unoccupied space of my choice within 5 ft of my destination space.\\nI can cast Misty Step without expending a spell slot a number of times per long rest equal to my Wisdom modifier (minimum of once).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nvar TCoE_Ranger_Subclass_Swarmkeeper = AddSubClass(\"ranger\", \"swarmkeeper\", {\r\n\tregExpSearch : /swarmkeeper/i,\r\n\tsubname : \"Swarmkeeper\",\r\n\tsource : [[\"T\", 59]],\r\n\tfullname : \"Swarmkeeper\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Gathered Swarm\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tvar a = [\r\n\t\t\t\t\t\"I'm bonded to a swarm of nature spirits crawling in my space; I choose their appearance\",\r\n\t\t\t\t\t\"Once on each of my turns, I can have it assist me after I hit a creature with an attack:\",\r\n\t\t\t\t\t\" \\u2022 The target takes an extra 1d\" + (n < 11 ? 6 : 8) + \" piercing damage from the swarm\",\r\n\t\t\t\t\t\" \\u2022 The target must make a Strength save or be moved 15 ft horizontally by the swarm\",\r\n\t\t\t\t\t\" \\u2022 The swarm moves me 5 ft horizontally\" + (n < 11 ? \"\" : \" and I have half cover until my next turn starts\"),\r\n\t\t\t\t\t\"I get to choose the direction whenever the target or I'm moved by the swarm\"\r\n\t\t\t\t];\r\n\t\t\t\tif (n >= 11) a.splice(4, 0, \"   Additionally, on a failed save, I can also have the target be knocked prone\");\r\n\t\t\t\tif (n >= 20) a.pop();\r\n\t\t\t\treturn desc(a);\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Mage Hand; When cast, its hand takes the form of my swarming nature spirits\",\r\n\t\t\t\t\"I get bonus spells known, which do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"web\", \"gaseous form\", \"arcane eye\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Writhing Tide\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can fly on my swarm for 1 minute: 10 ft flying speed and can hover\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Mighty Swarm\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : \" [improves Gathered Swarm, see above]\\n   Now 1d8 damage, knocks prone on failed save, or grants me half cover until next turn\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Swarming Dispersal\",\r\n\t\t\tsource : [[\"T\", 60]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can gain resistance to that damage and teleport\",\r\n\t\t\t\t\"I vanish into my swarm and teleport to an unoccupied space within 30 ft that I can see\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n// Add both subclasses to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(TCoE_Ranger_Subclass_Fey_Wanderer, TCoE_Ranger_Subclass_Swarmkeeper);\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Rogue Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Rogue Optional Class Features\r\nAddFeatureChoice(ClassList.rogue.features[\"thieves cant\"], true, \"Steady Aim\", {\r\n\tname : \"Steady Aim\",\r\n\textraname : \"Optional Rogue 3\",\r\n\tsource : [[\"T\", 62]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action if I don't move during my turn, I can give myself adv. on my next attack\",\r\n\t\t\"This attack roll has to be in the same turn and my speed is 0 until the end of the turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tprereqeval : function (v) { return classes.known.rogue.level >= 3 ? true : \"skip\"; }\r\n}, \"Optional 3rd-level rogue features\");\r\n\r\n// Rogue Subclasses\r\nAddSubClass(\"rogue\", \"phantom\", {\r\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*phantom).*$/i,\r\n\tsubname : \"Phantom\",\r\n\tsource : [[\"T\", 62]],\r\n\tfullname : \"Phantom\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Whispers of the Dead\",\r\n\t\t\tsource : [[\"UA:SR\", 1]],\r\n\t\t\tsource : [[\"T\", 62]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a rest, I gain a skill or tool proficiency of my choice until I change it again\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a short or long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wails from the Grave\",\r\n\t\t\tsource : [[\"T\", 62]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\tvar a = [\r\n\t\t\t\t\t\"Directly after I deal sneak attack damage to a creature on my turn, I \" + (n < 17 ? \"can\" : \"also\") + \" harm another\",\r\n\t\t\t\t\tn < 17 ? \"I then deal half my sneak attack in necrotic damage to a creature I can see within 30 ft\" : \"I deal half my sneak attack in necrotic damage to both it and another I can see in 30 ft\"\r\n\t\t\t\t];\r\n\t\t\t\tif (n >= 9) a.push(\"I can do this my Proficiency Bonus per long rest, or by destroying a soul trinket (ST)\");\r\n\t\t\t\treturn desc(a);\r\n\t\t\t}),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn Math.ceil(n / 4) + \"d6\";\r\n\t\t\t}),\r\n\t\t\taltResource : levels.map(function (n) {\r\n\t\t\t\treturn n < 9 ? \"\" : \"ST\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Tokens of the Departed\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : \" [max Proficiency Bonus of soul trinkets]\" + desc([\r\n\t\t\t\t\"As a reaction when I see a creature within 30 ft die, I can create a Tiny soul trinket\",\r\n\t\t\t\t\"The token of its life essence appears in my free hand; The DM determines its appearance\",\r\n\t\t\t\t\"While a soul trinket is on my person, I have advantage on death and Constitution saves\",\r\n\t\t\t\t\"As an action, I can destroy one of my soul trinkets and ask its associated spirit a question\",\r\n\t\t\t\t\"Its spirit appears and answers concisely in a language it knew; Trinket can be anywhere\"\r\n\t\t\t]),\r\n\t\t\taction : [\r\n\t\t\t\t[\"reaction\", \"Create Soul Trinket\"],\r\n\t\t\t\t[\"action\", \"Destroy Soul Trinket\"]\r\n\t\t\t],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Soul Trinkets (max Prof Bonus)\",\r\n\t\t\t\tusages : \"\",\r\n\t\t\t\trecovery : \"Special\"\r\n\t\t\t}],\r\n\t\t\tsavetxt : { text : [\"While soul trinket is on me, Adv. on Con and death saves\"] }\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ghost Walk\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can assume a spectral form with 10 ft flying speed and can hover\",\r\n\t\t\t\t\"Attacks vs. me have disadv.; I can move through creatures and objects as difficult terrain\",\r\n\t\t\t\t\"This lasts 10 min; I take 1d10 force damage if I end my turn inside a creature or object\",\r\n\t\t\t\t\"I can assume this form once per long rest, or by destroying one of my soul trinkets (ST)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"ST\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Death's Friend\",\r\n\t\t\tsource : [[\"T\", 63]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Wails from the Grave now also deals damage to the target of the original sneak attack\",\r\n\t\t\t\t\"If I don't have any soul trinkets at the end of a long rest, one appears in my hand\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"soulknife\", {\r\n\tregExpSearch : /soulknife/i,\r\n\tsubname : \"Soulknife\",\r\n\tsource : [[\"T\", 63]],\r\n\tfullname : \"Soulknife\",\r\n\tabilitySave : 2,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Energy Dice\",\r\n\t\t\tsource : [[\"T\", 64]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain twice my proficiency bonus of psionic energy dice (PsiD) that fuel my psionics\",\r\n\t\t\t\t\"I regain all expended psionic energy dice after a long rest; See psionic powers on page 3\",\r\n\t\t\t\t\"As a bonus action once per short rest, I can regain one expended psionic energy die\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 5 ? \"d6\" : n < 11 ? \"d8\" : n < 17 ? \"d10\" : \"d12\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"Regain 1 Psionic Energy Die\"]],\r\n\t\t\tusages : \"Proficiency Bonus \\xD7 2 per \",\r\n\t\t\tusagescalc : \"event.value = Number(How('Proficiency Bonus'))*2\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Regain 1 Psionic Energy die\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"short rest\"\r\n\t\t\t}],\r\n\t\t\textraname : \"Soulknife 3\",\r\n\t\t\t\"psi-bolstered knack\" : {\r\n\t\t\t\tname : \"Psionic Power: Psi-Bolstered Knack\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tadditional: \"1 PsiD if successful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I fail an check using a skill or tool I'm proficient with, I can add a psionic energy die to it\",\r\n\t\t\t\t\t\"The psionic energy die is only expended if this addition turns the failure into a success\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"psychic whispers\" : {\r\n\t\t\t\tname : \"Psionic Power: Psychic Whispers\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can select my Prof Bonus of creatures I can see and roll a psionic energy die\",\r\n\t\t\t\t\t\"For the roll of hours, I can telepathically communicate with each and they with me\",\r\n\t\t\t\t\t\"To send or receive messages (no action), we must be within 1 mile of each other\",\r\n\t\t\t\t\t\"A creature must be able to speak a language to do this; It can end the link at any time\",\r\n\t\t\t\t\t\"The first time I do this after a long rest, I don't expend the psionic energy die (PsiD)\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Psychic Whispers\",\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"PsiD\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"psi-bolstered knack\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"psychic whispers\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psychic Blades\",\r\n\t\t\tsource : [[\"T\", 64]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As part of an Attack action, I can manifest a psychic blade from a free hand to attack\",\r\n\t\t\t\t\"It vanishes immediately after making the attack and leaves no mark on its target\",\r\n\t\t\t\t\"As a bonus action after this attack, I can manifest and attack with another psychic blade\",\r\n\t\t\t\t\"To do this, my other hand needs to be free as well and this blade does only 1d4 damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Psychic Blade (after Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*psychic)(?=.*blade).*$/i,\r\n\t\t\t\tname : \"Psychic Blade\",\r\n\t\t\t\tsource : [[\"T\", 64]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Simple\",\r\n\t\t\t\tdamage : [1, 6, \"psychic\"],\r\n\t\t\t\trange : \"Melee, 60 ft\",\r\n\t\t\t\tdescription : \"Finesse, thrown; Bonus action: 1d4 instead of 1d6\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Soul Blades\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'My psi-suffused soul grants me more psionic powers, see the 3rd page \"Notes\" section',\r\n\t\t\t]),\r\n\t\t\textraname : \"Soulknife 9\",\r\n\t\t\t\"homing strikes\" : {\r\n\t\t\t\tname : \"Homing Strikes\",\r\n\t\t\t\tsource : [[\"T\", 65]],\r\n\t\t\t\tadditional: \"1 PsiD if successful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I miss an attack with my psychic blades, I can add a psionic energy die to the attack roll\",\r\n\t\t\t\t\t\"The psionic energy die is only expended if this addition turns the miss into a hit\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"psychic teleportation\" : {\r\n\t\t\t\tname : \"Psychic Teleportation\",\r\n\t\t\t\tsource : [[\"T\", 65]],\r\n\t\t\t\tadditional: \"1 PsiD\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can teleport up to 10 ft away times the roll of my psionic energy die\",\r\n\t\t\t\t\t\"I manifest a psychic blade and throw it to an empty space I can see before teleporting to it\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"homing strikes\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"psychic teleportation\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Psychic Veil\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become invisible along with what I'm wearing or carrying for 1 hour\",\r\n\t\t\t\t\"I can end it (no action); It also ends if I damage a creature or force one to make a save\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a psionic energy die (PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"PsiD\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Rend Mind\",\r\n\t\t\tsource : [[\"T\", 65]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use my psychic blade to deal sneak attack damage to a target, I can have it save\",\r\n\t\t\t\t\"It must make a Wisdom save (DC 8 + Prof Bonus + Dex mod) or be stunned for 1 min\",\r\n\t\t\t\t\"It can repeat the save at the end of each of its turns to end being stunned\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending three psionic energy dice (3 PsiD)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"3 PsiD\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Sorcerer Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Sorcerer Optional Class Features\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Additional Sorcerer Spells\", {\r\n\tname : \"Additional Sorcerer Spells\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"T\", 65]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"grease\", \"flame blade\", \"flaming sphere\", \"magic weapon\", \"vampiric touch\", \"fire shield\", \"bigby's hand\", \"flesh to stone\", \"otiluke's freezing sphere\", \"demiplane\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the sorcerer class with the following spells (spell level in brackets): Grease (1), Flame Blade (2), Flaming Sphere (2), Magic Weapon (2), Vampiric Touch (3), Fire Shield (4), Bigby's Hand (5), Flesh to Stone (6), Otiluke's Freezing Sphere (6), and Demiplane (8).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\n// Metamagic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Seeking Spell\", {\r\n\tname : \"Seeking Spell\",\r\n\tsource : [[\"T\", 66]],\r\n\tadditional: \"2 sorcery points\",\r\n\tdescription : desc([\r\n\t\t\"If I miss an attack roll for a spell, I can reroll the d20 and must use the new roll\",\r\n\t\t\"I can do this even if I already used another Metamagic option during the casting of the spell\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Transmuted Spell\", {\r\n\tname : \"Transmuted Spell\",\r\n\tsource : [[\"T\", 66]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"If the spell deals one of the below damage types, I can change it to another on the list\",\r\n\t\t\"These damage types are: acid, cold, fire, lightning, poison, or thunder\"\r\n\t])\r\n});\r\n// Other optional features\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Sorcerous Versatility (prereq: level 4 sorcerer)\", {\r\n\tname : \"Sorcerous Versatility\",\r\n\textraname : \"Optional Sorcerer 4\",\r\n\tsource : [[\"T\", 66]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the sorcerer class, I can change a cantrip or Metamagic choice\",\r\n\t\t\"I can select either another cantrip from the sorcerer spell list or another Metamagic option\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.sorcerer.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Magical Guidance (prereq: level 5 sorcerer)\", {\r\n\tname : \"Magical Guidance\",\r\n\textraname : \"Optional Sorcerer 5\",\r\n\tsource : [[\"T\", 66]],\r\n\tdescription : \" [1 sorcery point]\\n   When I make an ability check that fails, I can reroll the d20 and must use the new roll\",\r\n\tprereqeval : function (v) { return classes.known.sorcerer.level >= 5 ? true : \"skip\"; }\r\n}, \"Optional sorcerer features\");\r\n\r\n// Sorcerer Subclasses\r\nAddSubClass(\"sorcerer\", \"aberrant mind\", {\r\n\tregExpSearch : /^(?=.*aberrant)(?=.*mind).*$/i,\r\n\tsubname : \"Aberrant Mind\",\r\n\tsource : [[\"T\", 67]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Psionic Spells\",\r\n\t\t\tsource : [[\"T\", 67]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn additional spells, which do not count towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I gain a sorcerer level, I can replace one of these with another of the same level\",\r\n\t\t\t\t\"It must be a divination or enchantment spell on the sorcerer, wizard, or warlock spell list\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Psionic Spells (cantrip)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\textraspells : [\"mind sliver\"],\r\n\t\t\t\tselection : [\"mind sliver\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (1st-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"arms of hadar\", \"dissonant whispers\"],\r\n\t\t\t\tselection : [\"arms of hadar\", \"dissonant whispers\"],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (2nd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [2, 2],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"calm emotions\", \"detect thoughts\"],\r\n\t\t\t\tselection : [\"calm emotions\", \"detect thoughts\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 3 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (3rd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [3, 3],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"hunger of hadar\", \"sending\"],\r\n\t\t\t\tselection : [\"hunger of hadar\", \"sending\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 5 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (4th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [4, 4],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"evard's black tentacles\", \"summon aberration\"],\r\n\t\t\t\tselection : [\"evard's black tentacles\", \"summon aberration\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 7 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Psionic Spells (5th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Ench\", \"Div\"],\r\n\t\t\t\tlevel : [5, 5],\r\n\t\t\t\tfirstCol : \"PS\",\r\n\t\t\t\textraspells : [\"rary's telepathic bond\", \"telekinesis\"],\r\n\t\t\t\tselection : [\"rary's telepathic bond\", \"telekinesis\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 9 ? 0 : 2; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Telepathic Speech\",\r\n\t\t\tsource : [[\"T\", 67]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can telepathic link myself with a creature within 30 ft that I can see\",\r\n\t\t\t\t\"If we share a language, we can talk telepathically while in my Cha mod of miles (min 1)\",\r\n\t\t\t\t\"This last for my level in minutes, until I'm incapacitated, I die, or I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n + \" minute\" + (n > 1 ? \"s\" : \"\");\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Sorcery\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend sorcery points instead of a spell slot to cast a spell from my Psionic Spells\",\r\n\t\t\t\t\"This costs the spell's level in sorcery points, but in doing so requires no other components\",\r\n\t\t\t\t\"However, I do need to provide a material components if it is consumed by the spell\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Psychic Defenses\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I gain resistance to psychic damage and adv. on saves vs. being charmed or frightened\"),\r\n\t\t\tdmgres : [\"Psychic\"],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Revelation in Flesh\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend 1 or more sorcery points to transform for 10 minutes\",\r\n\t\t\t\t\"For each sorcery point used, I gain one of the following benefits of my choice:\",\r\n\t\t\t\t\" \\u2022 I can see any invisible creatures within 60 ft of me not behind total cover\",\r\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\" \\u2022 I gain a swimming speed equal to twice my walking speed \\u0026 I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 I can move, with equipment, through any space as narrow as 1 inch without squeezing\",\r\n\t\t\t\t\"   Also, I can spend 5 ft of movement to escape form a grapple or nonmagical restraints\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : \"1+ sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Warping Implosion\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport to an unoccupied space I can see within 120 ft\",\r\n\t\t\t\t\"All within 30 ft of where I left take 3d10 force damage and must make a Strength save\",\r\n\t\t\t\t\"If failed, each is pulled towards the space I left, ending up in the nearest empty space\",\r\n\t\t\t\t\"If successful, a creature takes only half damage and isn't pulled\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"clockwork soul\", {\r\n\tregExpSearch : /^((?=.*(sorcerer|witch))(?=.*mechanus)|(?=.*clockwork)(?=.*soul)).*$/i,\r\n\tsubname : \"Clockwork Soul\",\r\n\tsource : [[\"T\", 68]],\r\n\tfullname : \"Clockwork Soul\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Clockwork Magic\",\r\n\t\t\tsource : [[\"T\", 68]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn additional spells, which do not count towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I gain a sorcerer level, I can replace one of these with another of the same level\",\r\n\t\t\t\t\"It must be an abjuration or transmutation spell on the sorcerer, wizard, or warlock list\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Clockwork Magic (1st-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\textraspells : [\"alarm\", \"protection from evil and good\"],\r\n\t\t\t\tselection : [\"alarm\", \"protection from evil and good\"],\r\n\t\t\t\ttimes : 2\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (2nd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [2, 2],\r\n\t\t\t\textraspells : [\"aid\", \"lesser restoration\"],\r\n\t\t\t\tselection : [\"aid\", \"lesser restoration\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 3 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (3rd-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [3, 3],\r\n\t\t\t\textraspells : [\"dispel magic\", \"protection from energy\"],\r\n\t\t\t\tselection : [\"dispel magic\", \"protection from energy\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 5 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (4th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [4, 4],\r\n\t\t\t\textraspells : [\"freedom of movement\", \"summon construct\"],\r\n\t\t\t\tselection : [\"freedom of movement\", \"summon construct\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 7 ? 0 : 2; })\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Clockwork Magic (5th-level)\",\r\n\t\t\t\t\"class\" : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\t\t\tschool : [\"Abjur\", \"Trans\"],\r\n\t\t\t\tlevel : [5, 5],\r\n\t\t\t\textraspells : [\"greater restoration\", \"wall of force\"],\r\n\t\t\t\tselection : [\"greater restoration\", \"wall of force\"],\r\n\t\t\t\ttimes : levels.map(function (n) { return n < 9 ? 0 : 2; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Restore Balance\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 60 ft is about to roll a d20 with adv./disadv.,\",\r\n\t\t\t\t\"I can prevent that roll from being affected by advantage and disadvantage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bulwark of Law\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can imbue a creature I can see within 30 ft with a magical ward\",\r\n\t\t\t\t\"The ward has a number of d8s equal to the number of sorcery points I expend to do this\",\r\n\t\t\t\t\"As a reaction when the creature takes damage, it can expend any number of those dice\",\r\n\t\t\t\t\"The dice roll reduces the damage; The ward lasts until I finish a long rest or do this again\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1-5 sorcery points; 1d8 per point\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Trance of Order\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can enter a state of clockwork consciousness for 1 minute\",\r\n\t\t\t\t\"While in this state, attack rolls against me can't benefit from advantage\",\r\n\t\t\t\t\"Also, I can then treat a d20 roll below 9 as a 10 for my attack rolls, checks, and saves\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Clockwork Cavalcade\",\r\n\t\t\tsource : [[\"T\", 69]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can call spirits to bring balance in a 30-ft cube originating from me\",\r\n\t\t\t\t\"Inside the cube, the intangible spirits do all the following before vanishing:\",\r\n\t\t\t\t\" \\u2022 Restore up to 100 HP, divided among the creatures in the cube as I choose\",\r\n\t\t\t\t\" \\u2022 Repair all damaged objects entirely in the cube instantly\",\r\n\t\t\t\t\" \\u2022 End every spell of 6th-level or lower on objects or creatures of my choice in the cube\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending 7 sorcery points (7 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"7 SP\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Warlock Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Warlock Optional Class Features\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Additional Warlock Spells\", {\r\n\tname : \"Additional Warlock Spells\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"mislead\", \"planar binding\", \"teleportation circle\", \"gate\", \"weird\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the warlock class with the following spells (spell level in brackets): Mislead (5), Planar Binding (5), Teleportation Circle (5), Gate (9), and Weird (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\nAddWarlockPactBoon(\"Pact of the Talisman\", {\r\n\tname : \"Pact of the Talisman\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : desc([\r\n\t\t\"When the wearer of this amulet fails an ability check, they can add +1d4 to the roll\",\r\n\t\t\"I can give the talisman to others to use; The talisman turns to ash when I die\",\r\n\t\t\"If I lose my talisman, I can perform a 1-hour ceremony to gain a replacement\",\r\n\t\t\"This ceremony destroys the previous amulet and can be done during a short or long rest\"\r\n\t]),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddFeatureChoice(ClassList.warlock.features[\"pact boon\"], true, \"Eldritch Versatility\", {\r\n\tname : \"Eldritch Versatility\",\r\n\textraname : \"Optional Warlock 4\",\r\n\tsource : [[\"T\", 70]],\r\n\tdescription : \" [ASI = Ability Score Improvement]\" + desc([\r\n\t\t\"Whenever I gain an ASI from the warlock class, I can change one of the following things:\",\r\n\t\t\" \\u2022 I can replace one warlock cantrip with another cantrip from the warlock spell list\",\r\n\t\t\" \\u2022 I can replace my pact boon for another\",\r\n\t\t\" \\u2022 If I have Mystic Arcanum, I can replace one spell from it with another of the same level\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.warlock.level >= 4 ? true : \"skip\"; }\r\n}, \"Optional 4th-level warlock features\");\r\n// Eldritch Invocation options\r\nAddWarlockInvocation(\"Bond of the Talisman (prereq: level 12 warlock, Pact of the Talisman)\", {\r\n\tname : \"Bond of the Talisman\",\r\n\tsource : [[\"T\", 70]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can teleport to the unoccupied space closest to the wearer of my talisman\",\r\n\t\t\"The talisman's wearer can do the same to teleport to me; Only works if both on same plane\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 12 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Eldritch Mind\", {\r\n\tname : \"Eldritch Mind\",\r\n\tsource : [[\"T\", 71]],\r\n\tdescription: desc(\"I have advantage on my Constitution saving throws to maintain concentration on a spell\"),\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves\" }\r\n});\r\nAddWarlockInvocation(\"Far Scribe (prereq: level 5 warlock, Pact of the Tome)\", {\r\n\tname : \"Far Scribe\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Proficiency Bonus in creature names; I can remove one as an action\",\r\n\t\t\"I can cast Sending without a spell slot or material components, targeting one on the page\",\r\n\t\t\"Instead of saying the message, I write it on the page and any reply appears there as well\",\r\n\t\t\"This writing disappears after 1 minute; The target still hears the message in their mind\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Far Scribe\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Send 25 word message to crea named in book of shadows; it recognizes me and can respond 25 words\",\r\n\t\t\tchanges : \"By using Far Scribe, I can cast Sending without using a spell slot or material components, but only to target one of the creatures that wrote their name in my book of shadows. Instead of speaking the message, I write it in my book and any response appears there as well, lasting for 1 minute. The target still hears the message in their mind.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gift of the Protectors (prereq: level 9 warlock, Pact of the Tome)\", {\r\n\tname : \"Gift of the Protectors\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Proficiency Bonus in creature names; I can remove one as an action\",\r\n\t\t\"If a creature whose name is on the page drops to 0 HP, it magically drops to 1 HP instead\",\r\n\t\t\"This doesn't work if the creature would be killed outright\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Investment of the Chain Master (prereq: Pact of the Chain)\", {\r\n\tname : \"Investment of the Chain Master\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription : desc([\r\n\t\t\"When I cast Find Familiar, the summoned create has additional benefits:\",\r\n\t\t\"\\u2022 It gains a flying or swimming speed of 40 ft (my choice at casting)\",\r\n\t\t\"\\u2022 As a bonus action, I can command it to take the Attack action\",\r\n\t\t\"\\u2022 Its weapon attacks are considered magical for overcoming immunities and resistances\",\r\n\t\t\"\\u2022 If it forces a creature to make a saving throw, it uses my spell save DC\",\r\n\t\t\"\\u2022 As a reaction when it takes damage, I can grant it resistance against that damage\"\r\n\t]),\r\n\taction : [[\"bonus action\", \" (command to attack)\"], [\"reaction\", \" (give resistance)\"]],\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\tcalcChanges : {\r\n\t\tcompanionCallback : [function(prefix, oCrea, bAdd, sCompType) {\r\n\t\t\tif (sCompType !== \"pact_of_the_chain\") return;\r\n\t\t\tvar strFea = \"##\\u25C6 Investment of the Chain Master (TCoE 71)##. The familiar gains 40 ft fly or swim speed (my choice), its attacks are considered magical, and it can use my spell save DC instead of its own DC's (if any).\";\r\n\t\t\tvar strSpd = \"fly or swim 40 ft\";\r\n\t\t\tif (What(\"Unit System\") === \"metric\") {\r\n\t\t\t\tstrFea = ConvertToMetric(strFea, 0.5);\r\n\t\t\t\tstrSpd = ConvertToMetric(strSpd, 0.5);\r\n\t\t\t}\r\n\t\t\tvar aFnc = bAdd ? AddString : RemoveString;\r\n\t\t\taFnc(prefix + \"Comp.Use.Features\", strFea, true);\r\n\t\t\taFnc(prefix + \"Comp.Use.Speed\", strSpd, typePF ? \",\\n\" : \", \");\r\n\t\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\t\tvar baseFld = prefix + \"Comp.Use.Attack.\" + i;\r\n\t\t\t\tvar weaDescrFld = baseFld + \".Description\";\r\n\t\t\t\tvar strWeaDescr = What(weaDescrFld);\r\n\t\t\t\tif (bAdd && What(baseFld + \".Weapon Selection\") && !(/(,|;)? ?counts as magical/i).test(strWeaDescr)) {\r\n\t\t\t\t\tAddString(weaDescrFld, \"Counts as magical\", \"; \");\r\n\t\t\t\t} else if (!bAdd) {\r\n\t\t\t\t\tValue(weaDescrFld, strWeaDescr.replace(/(,|;)? ?counts as magical/i, ''));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"My pact of the chain familiars gain an extra feature listing the extra bonuses they gain.\"]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Protection of the Talisman (prereq: level 7 warlock, Pact of the Talisman)\", {\r\n\tname : \"Protection of the Talisman\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription: desc(\"When the wearer of my talisman fails a saving throw, they can add +1d4 to the roll\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 7 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Rebuke of the Talisman (prereq: Pact of the Talisman)\", {\r\n\tname : \"Rebuke of the Talisman\",\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when the wearer of my talisman is hit, I deal damage and push the attacker\",\r\n\t\t\"To be able to do this, I have to see the attacker and it has to be within 30 ft of me\",\r\n\t\t\"I deal it my Proficiency Bonus in psychic damage and push it 10 ft away from the talisman\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Undying Servitude (prereq: level 5 warlock)\", {\r\n\tname : \"Undying Servitude\",\r\n\tdescription: desc(\"Once per long rest, I can cast Animate Dead without using a spell slot\"),\r\n\tsource : [[\"T\", 71]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tusages : 1,\r\n\tadditional : \"no spell slot\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Undying Servitude\",\r\n\t\tspells : [\"animate dead\"],\r\n\t\tselection : [\"animate dead\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; }\r\n});\r\n\r\n// Warlock Subclasses\r\nAddSubClass(\"warlock\", \"the fathomless\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*fathomless).*$/i,\r\n\tsubname : \"the Fathomless\",\r\n\tsource : [[\"T\", 72]],\r\n\tspellcastingExtra : [\"create or destroy water\", \"thunderwave\", \"gust of wind\", \"silence\", \"lightning bolt\", \"sleet storm\", \"control water\", \"summon elemental\", \"bigby's hand\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Tentacle of the Deeps\",\r\n\t\t\tsource : [[\"T\", 72]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon or move a spectral tentacle and make an attack with it\",\r\n\t\t\t\t\"I can summon it to a space within 60 ft that I can see or move an existing one 30 ft\",\r\n\t\t\t\t\"I make melee spell attacks with 10 ft reach with it that deal cold damage\",\r\n\t\t\t\t\"Creatures hit by the tentacle suffer 10 ft speed reduction until the start of my next turn\",\r\n\t\t\t\t\"The 10-ft long tentacle lasts for 1 minute or until I summon another\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/move)\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8\";\r\n\t\t\t}),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*tentacle)(?=.*\\b(deeps?|spectral)\\b).*$/i,\r\n\t\t\t\tname : \"Tentacle of the Deeps\",\r\n\t\t\t\tsource : [[\"T\", 72]],\r\n\t\t\t\tability : 6,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"Cold\"],\r\n\t\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\t\tdescription : \"On hit, -10 ft speed until my next turn starts\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\ttentacleOfTheDeeps : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.tentacleOfTheDeeps && classes.known.warlock.level >= 10) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '2d8';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'',\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Gift of the Sea\",\r\n\t\t\tsource : [[\"T\", 72]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I have a swimming speed of 40 ft and I can breathe underwater\"),\r\n\t\t\tspeed : { swim : { spd : 40, enc : 30 } }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Oceanic Soul\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to cold damage now that I'm even more at home in the depths\",\r\n\t\t\t\t\"While I'm fully submerged, others who are as well can understand my speech and I theirs\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Cold\"],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"summon elemental\" : {\r\n\t\t\t\t\tdescription : \"Summon Water Elemental Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\t\t\t\t\tchanges : \"My warlock spell Summon Elemental can only call forth an elemental spirit of water.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Guardian Coil\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or a creature I see in 10 ft of my tentacle is damaged, it can help\",\r\n\t\t\t\t\"The tentacle interposes itself, reducing the damage of the attack for that creature\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8 damage reduced\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Grasping Tentacles\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Evard's Black Tentacles; Once per long rest, I can cast it without using a spell slot\",\r\n\t\t\t\t\"It counts as a warlock spell for me, but not towards the number of spell I can know\",\r\n\t\t\t\t\"Whenever I cast it, I gain temporary hit points equal to my warlock level\",\r\n\t\t\t\t\"Moreover, damage can't break my concentration on this spell\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n + \" temp HP; 1\\xD7 per long rest no SS\";\r\n\t\t\t}),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Grasping Tentacles\",\r\n\t\t\t\tspells : [\"evard's black tentacles\"],\r\n\t\t\t\tselection : [\"evard's black tentacles\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Evard's Black Tentacles (no spell slot)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey === \"evard's black tentacles\") {\r\n\t\t\t\t\t\t\tspellObj.description = \"I temp hp; All enter/start in 20-ft rad save or restrained \\u0026 3d6 Bludg. dmg/rnd; Str/Dex check escape\";\r\n\t\t\t\t\t\t\tspellObj.duration = \"Conc*, 1 min\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Whenever I cast Evard's Black Tentacles, I gain temporary hit points equal to my warlock level.\\n \\u2022 Damage can't break my concentration on this spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fathomless Plunge\",\r\n\t\t\tsource : [[\"T\", 73]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport myself and up to 5 willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"We reappear up to 1 mile away, inside or within 30 ft of a body of water I've seen\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the genie\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*(genie|dao|djinni|efreeti|marid)).*$/i,\r\n\tsubname : \"the Genie\",\r\n\tsource : [[\"T\", 73], [\"UA:SR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Choose Genie Kind\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Use the \"Choose Feature\" button above to choose the kind of genie your patron is'),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellList : [\r\n\t\t\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && spList.name && /mystic arcanum/i.test(spList.name) && spList.level[0] === 9) {\r\n\t\t\t\t\t\t\tspList.extraspells.push(\"wish\");\r\n\t\t\t\t\t\t} else if (spType.indexOf(\"bonus\") === -1 && spName === \"warlock\") {\r\n\t\t\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\t\t\tspList.notspells.push(\"wish\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The Genie patron adds Wish as a spell available for my 9th-level Mystic Arcanum selection.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"Dao (earth)\", \"Djinni (air)\", \"Efreeti (fire)\", \"Marid (water)\"],\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Dao, associated with earth\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"sanctuary\", \"phantasmal force\", \"spike growth\", \"create food and water\", \"meld into stone\", \"phantasmal killer\", \"stone shape\", \"creation\", \"wall of stone\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Djinni, associated with air\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"thunderwave\", \"gust of wind\", \"phantasmal force\", \"create food and water\", \"wind wall\", \"greater invisibility\", \"phantasmal killer\", \"creation\", \"seeming\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is an Efreeti, associated with fire\"),\r\n\t\t\t\tspellcastingExtra : [\"burning hands\", \"detect evil and good\", \"phantasmal force\", \"scorching ray\", \"create food and water\", \"fireball\", \"fire shield\", \"phantasmal killer\", \"creation\", \"flame strike\", \"wish\"]\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid Genie Patron\",\r\n\t\t\t\tdescription: desc(\"My genie patron is a Marid, associated with water\"),\r\n\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"fog cloud\", \"blur\", \"phantasmal force\", \"create food and water\", \"sleet storm\", \"control water\", \"phantasmal killer\", \"cone of cold\", \"creation\", \"wish\"]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature1.3\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Genie's Vessel\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My patron gifts me a magical vessel, a Tiny object, granting me a measure of its power\",\r\n\t\t\t\t\"I choose the vessel's appearance; I can use it as my spellcasting focus for warlock spells\",\r\n\t\t\t\t\"The vessel's AC is my spell save DC and it has my warlock level + Proficiency Bonus in HP\",\r\n\t\t\t\t\"If it is destroyed or lost, I can get a replacement with a 1-hour ceremony during a rest\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Genie's Vessel: Bottled Respite\",\r\n\t\t\tsource : [[\"T\", 74], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can vanish and enter the extradimensional space inside my genie's vessel\",\r\n\t\t\t\t\"The vessel stays in its location; The space inside is a 20-ft high, 20-ft radius cylinder\",\r\n\t\t\t\t\"As a bonus action, I can exit my vessel; I exit it early if I die or the vessel is destroyed\",\r\n\t\t\t\t\"I can remain inside for twice my Proficiency Bonus in hours; Objects can be left inside\"\r\n\t\t\t]),\r\n\t\t\tlimfeaname : \"Bottled Respite\",\r\n\t\t\taction : [[\"action\", \" (enter)\"], [\"bonus action\", \" (eject)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature1.3\" : {\r\n\t\t\tname : \"Genie's Wrath\",\r\n\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can deal bonus damage on my attacks, its type depending on my patron's genie kind\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is'\r\n\t\t\t]),\r\n\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Prof Bonus in extra bludgeoning damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' bludgeoning damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra bludgeoning damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra thunder damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' thunder damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra thunder damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra fire damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' fire damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra fire damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid's Wrath\",\r\n\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra cold damage\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (!v.isDC) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' cold damage';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra cold damage equal to my proficiency bonus.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Gift\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to a damage type depending on my patron's genie kind\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is',\r\n\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"dao (earth)\" : {\r\n\t\t\t\tname : \"Dao's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to bludgeoning damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Bludgeoning\"]\r\n\t\t\t},\r\n\t\t\t\"djinni (air)\" : {\r\n\t\t\t\tname : \"Djinni's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to thunder damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Thunder\"]\r\n\t\t\t},\r\n\t\t\t\"efreeti (fire)\" : {\r\n\t\t\t\tname : \"Efreeti's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to fire damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Fire\"]\r\n\t\t\t},\r\n\t\t\t\"marid (water)\" : {\r\n\t\t\t\tname : \"Marid's Elemental Gift\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain resistance to cold damage\",\r\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\r\n\t\t\t\tdmgres : [\"Cold\"]\r\n\t\t\t},\r\n\t\t\tadditional : \"Fly 10 min\",\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Sanctuary Vessel\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my vessel I can have up to 5 willing creatures I can see in 30 ft join me\",\r\n\t\t\t\t\"As a bonus action, I can eject any number of creatures from my genie's vessel\",\r\n\t\t\t\t\"Everyone is ejected when I leave it, I die, or if the vessel is destroyed\",\r\n\t\t\t\t\"Anyone who remains in the vessel for at least 10 min gains the benefits of a short rest\",\r\n\t\t\t\t\"Also, HD spend as part of this short rest has my Proficiency Bonus added to the roll\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Limited Wish\",\r\n\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tadditional: \"1\\xD7 per 1d4 long rests\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cast a 6th-level or lower spell with a casting time time of one action\",\r\n\t\t\t\t\"This can be any spell; It doesn't require any costly components, it simply takes effect\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Limited Wish\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"1d4 LR\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n// >>> Wizard Options >>> //\r\n// >>>>>>>>>>>>>>>>>>>>>> //\r\n\r\n// Wizard Optional Class Features\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Additional Wizard Spells\", {\r\n\tname : \"Additional Wizard Spells\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"T\", 75]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"augury\", \"enhance ability\", \"speak with dead\", \"divination\"]);\r\n\t\t\t},\r\n\t\t\t\"This optional class feature expands the spell list of the wizard class with the following spells (spell level in brackets): Augury (2), Enhance Ability (2), Speak with Dead (3), and Divination (4).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\nAddFeatureChoice(ClassList.wizard.features[\"arcane recovery\"], true, \"Cantrip Formulas\", {\r\n\tname : \"Cantrip Formulas\",\r\n\textraname : \"Optional Wizard 3\",\r\n\tsource : [[\"T\", 76]],\r\n\tdescription : desc([\r\n\t\t\"I have scribed arcane formulas in my spellbook with which I formulate cantrips in my mind\",\r\n\t\t\"Whenever I finish a long rest, I can use this to change a wizard cantrip I know for another\"\r\n\t]),\r\n\tprereqeval : function (v) { return classes.known.wizard.level >= 3 ? true : \"skip\"; },\r\n\tspellcastingPreparedCantrips: { \"class\": [\"wizard\"] },\r\n}, \"Optional 3rd-level wizard features\");\r\n\r\n// Wizard Subclasses\r\n// [dupl_start] reprints from Sword Coast Adventure Guide (after 2020 errata)\r\nif (!SourceList.S) {\r\n\tAddSubClass(\"wizard\", \"bladesinging\", {\r\n\t\tregExpSearch : /(bladesinging|bladesinger)/i,\r\n\t\tsubname : \"Tradition of Bladesinging\",\r\n\t\tsubnameShort: \"Bladesinging\",\r\n\t\tfullname : \"Bladesinger\",\r\n\t\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature2\" : {\r\n\t\t\t\tname : \"Training in War and Song\",\r\n\t\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\t\tminlevel : 2,\r\n\t\t\t\tdescription : desc(\"I gain proficiency with light armor, a one-handed melee weapon, and Performance\"),\r\n\t\t\t\tarmorProfs : [true, false, false, false],\r\n\t\t\t\tskills : [\"Performance\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature2.1\" : {\r\n\t\t\t\tname : \"Bladesong\",\r\n\t\t\t\tsource : [[\"S\", 142], [\"T\", 76]],\r\n\t\t\t\tminlevel : 2,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can start the bladesong for 1 minute; I can dismiss it at any time\",\r\n\t\t\t\t\t\"It stops when I wear a shield, medium or heavy armor, or attack with two hands\",\r\n\t\t\t\t\t\"While the bladesong is active I have the following benefits:\",\r\n\t\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to AC\",\r\n\t\t\t\t\t\" \\u2022 Base walking speed increases by 10 foot\",\r\n\t\t\t\t\t\" \\u2022 Advantage on Dexterity (Acrobatics) checks\",\r\n\t\t\t\t\t\" \\u2022 Intelligence modifier (min 1) to concentration saves for maintaining conc. on a spell\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start)\"]],\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\t\"subclassfeature6\" : {\r\n\t\t\t\tname : \"Extra Attack\",\r\n\t\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\t\tminlevel : 6,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can attack twice instead of once when I take the Attack action on my turn\",\r\n\t\t\t\t\t\"Moreover, I can cast one of my cantrips in place of one of those attacks\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"subclassfeature10\" : {\r\n\t\t\t\tname : \"Song of Defense\",\r\n\t\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\t\tminlevel : 10,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a reaction while my bladesong is active, I can expend a spell slot to reduce damage\",\r\n\t\t\t\t\t\"The damage I take is reduced by 5 for every level of the spell slot I expend\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (in bladesong)\"]]\r\n\r\n\t\t\t},\r\n\t\t\t\"subclassfeature14\" : {\r\n\t\t\t\tname : \"Song of Victory\",\r\n\t\t\t\tsource : [[\"S\", 142], [\"T\", 77]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription : desc(\"While my bladesong is active, I add my Int mod (min 1) to melee weapon attack damage\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.isMeleeWeapon && (/blade.?song/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\toutput.extraDmg += Math.max(1, Number(What('Int Mod')));\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the word \\\"Bladesong\\\" in the name or description of a melee weapon, it gets my Intelligence modifier added to its Damage.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n} // dupl_end\r\nAddSubClass(\"wizard\",\"order of scribes\", {\r\n\tregExpSearch : /^(?=.*wizard)(?=.*order)(?=.*scribes?).*$|scrivener/i,\r\n\tsubname : \"Order of Scribes\",\r\n\tsubnameShort: \"Scribes\",\r\n\tsource : [[\"T\", 77]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Wizardly Quill\",\r\n\t\t\tsource : [[\"T\", 77]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can magically create a Tiny quill with the following properties:\",\r\n\t\t\t\t\" \\u2022 It doesn't require ink and produces ink in the color of my choice when writing with it\",\r\n\t\t\t\t\" \\u2022 I require only 2 minutes per spell level to transcribe spells into my spellbook with it\",\r\n\t\t\t\t\" \\u2022 As a bonus action, I can use it to erase a text written with it if within 5 ft of the text\",\r\n\t\t\t\t\"The quill disappear if I create another or if I die\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create/erase)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Awakened Spellbook\",\r\n\t\t\tsource : [[\"T\", 77]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My spellbook gains sentience and grants me the following benefits while I am holding it:\",\r\n\t\t\t\t\" \\u2022 I can use the book as a spellcasting focus for my wizard spells\",\r\n\t\t\t\t\" \\u2022 When I cast a wizard spell using a spell slot, I can temporarily replace its damage type\",\r\n\t\t\t\t\"   The new type must appear in my spellbook in a spell of the same level as the spell slot\",\r\n\t\t\t\t\" \\u2022 Once per long rest, I can ritual cast a wizard spell without 10 min extra casting time\",\r\n\t\t\t\t\"I can replace it over a short rest, transferring its spells and sentience to a blank book\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"fast ritual cast\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Manifest Mind\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have the mind of my awakened spellbook manifest within 60 ft\",\r\n\t\t\t\t\"The spellbook needs to be on my person to do this; The mind is a Tiny spectral object\",\r\n\t\t\t\t\"The mind is intangible, doesn't occupy a space, hovers, and sheds dim light in 10 ft\",\r\n\t\t\t\t\"It can hear, see, has 60 ft darkvision, and telepathically shares with me what it perceives\",\r\n\t\t\t\t\"As a bonus action, I can dismiss it or move it up to 30 ft to an empty space I can see\",\r\n\t\t\t\t\"It can pass through creatures; It stops manifesting if it's over 300 ft from me or I die\",\r\n\t\t\t\t\"It also stop manifesting if Dispel Magic is cast on it or the awakened spellbook is no more\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a spell slot (SS 1+) to manifest it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (conjure/move/dismiss)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Manifest Mind: Cast Spell\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can have wizard spells I cast on my turn originate from the mind while its manifested\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Master Scrivener\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can write a spell in my awakened spellbook on a blank paper\",\r\n\t\t\t\t\"It must be a level 1 or 2 spell with 1 action casting time; My spellbook must be in 5 ft\",\r\n\t\t\t\t\"As an action, I can use this scroll to cast the spell on it at one higher level than normal\",\r\n\t\t\t\t\"Only I can use the scroll; The scroll turns blank again when I use it or finish a long rest\",\r\n\t\t\t\t\"Also, using my Wizardly Quill, the gold and time I need to craft spell scrolls is halved\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (cast scroll)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Master Scrivener scoll\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [1, 2],\r\n\t\t\t\tfirstCol : \"MS\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (!isDuplicate && spName === \"wizard\" && spellObj.firstCol === \"MS\" && (spellObj.level === 1 || spellObj.level === 2)) {\r\n\t\t\t\t\t\t\t// Calculate upcasting to be exactly 1 level higher\r\n\t\t\t\t\t\t\tvar rxMatch = /(\\d*d?\\d+)\\+(\\d*d?\\d+)\\/(\\d*SL)\\b/i;\r\n\t\t\t\t\t\t\twhile (rxMatch.test(spellObj.description)) {\r\n\t\t\t\t\t\t\t\tvar aMatch = spellObj.description.match(rxMatch);\r\n\t\t\t\t\t\t\t\tvar strDie1 = !isNaN(aMatch[1]) ? true : /\\d+d\\d+/i.test(aMatch[1]) ? aMatch[1].replace(/\\d+(d\\d+)/i, \"$1\") : false;\r\n\t\t\t\t\t\t\t\tvar strDie2 = !isNaN(aMatch[2]) ? true : /\\d+d\\d+/i.test(aMatch[2]) ? aMatch[2].replace(/\\d+(d\\d+)/i, \"$1\") : undefined;\r\n\t\t\t\t\t\t\t\tif (!/^SL$/i.test(aMatch[3])) {\r\n\t\t\t\t\t\t\t\t\t// only increases if more than 1 level higher spell slot, so nothing we can do with it, just remove all upcasting\r\n\t\t\t\t\t\t\t\t\tremoveSpellUpcasting(spellObj);\r\n\t\t\t\t\t\t\t\t} else if (/^\\d/.test(aMatch[1]) && strDie1 === strDie2) {\r\n\t\t\t\t\t\t\t\t\t// identical type steps (e.g. 1d6+1d6/SL or 3+1/SL), so add the second to the first\r\n\t\t\t\t\t\t\t\t\tvar strNew = (Number(aMatch[1].replace(/^(\\d+).*/, \"$1\")) + Number(aMatch[2].replace(/^(\\d+).*/, \"$1\"))) + aMatch[1].replace(/^\\d+(.*)/, \"$1\");\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(rxMatch, strNew);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// non-identical steps, so leave the first and second along, but remove the /SL\r\n\t\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(rxMatch, \"$1+$2\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// Remove costly material components\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/ \\(\\d+ ?gp( cons\\.?)?\\)/i, '');\r\n\t\t\t\t\t\t\t// List only the scroll as a component from the spell\r\n\t\t\t\t\t\t\tspellObj.components = \"M\\u2020\";\r\n\t\t\t\t\t\t\tspellObj.compMaterial = \"Spells cast from spell scrolls don't require any components other than the spell scroll itself.\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I finish a long rest, I can create a scroll of a spell in my spellbook using my Master Scrivener class feature. I can then cast this spell from the scroll and the spell is cast as if using a spell slot one level higher than its spell level.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"One with the Word\",\r\n\t\t\tsource : [[\"T\", 78]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : ' [see 3rd page \"Notes\" section]',\r\n\t\t\taction : [[\"reaction\", \" (when damaged)\"]],\r\n\t\t\tadvantages : [[\"Arcana\", true]],\r\n\t\t\t\"one with the word\" : {\r\n\t\t\t\tname : \"One with the Word\",\r\n\t\t\t\textraname : \"Order of Scribes 14\",\r\n\t\t\t\tsource : [[\"T\", 78]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While my awakened spellbook is on my person, I have advantage on Int (Arcana) checks\",\r\n\t\t\t\t\t\"As a reaction when I take damage while my spellbook's mind is manifested, I can dismiss it\",\r\n\t\t\t\t\t\"In dismissing the manifested mind like this, I prevent all of the damage taken by me\",\r\n\t\t\t\t\t\"After doing so, I lose spells with a combined level of 3d6 from my awakened spellbook\",\r\n\t\t\t\t\t\"If I do not have enough spells left to cover the number rolled, I drop to 0 HP instead\",\r\n\t\t\t\t\t\"The spells vanish from my spellbook, reappearing only after I finish 1d6 long rests\",\r\n\t\t\t\t\t\"I can't cast spells that I lost this way, even if found on a scroll or in another spellbook\"\r\n\t\t\t\t]),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"one with the word\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// >>>>>>>>>>>>>>>>> //\r\n// >>> New Feats >>> //\r\n// >>>>>>>>>>>>>>>>> //\r\nFeatsList[\"artificer initiate\"] = {\r\n\tname : \"Artificer Initiate\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"You've learned some of an artificer's inventiveness:\\n \\u2022 You learn one cantrip of your choice from the artificer spell list, and you learn one 1st-level spell of your choice from that list. Intelligence is your spellcasting ability for these spells.\\n \\u2022 You can cast this feat's 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n \\u2022 You gain proficiency with one type of artisan's tools of your choice, and you can use that type of tool as a spellcasting focus for any spell you cast that uses Intelligence as its spellcasting ability.\",\r\n\tdescription : typePF ? \"I learn a cantrip and a 1st-level spell from the artificer's spell list. Int is my spellcasting ability for these. Once per long rest, I can cast the 1st-level spell at its lowest level without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for spells I cast with Int as spellcasting ability.\" : \"I learn one cantrip and one 1st-level spell from the artificer's spell list. Intelligence is my spellcasting ability for these. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for any spell I cast that uses Intelligence as its spellcasting ability.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Artificer cantrip\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tallowUpCasting : true,\r\n\t\t\"class\" : 'artificer',\r\n\t\tlevel : [0, 0],\r\n\t}, {\r\n\t\tname : \"1st-level artificer spell\",\r\n\t\t\"class\" : 'artificer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr\",\r\n\t}],\r\n\ttoolProfs : [ [\"Artisan's tools\", 1] ]\r\n};\r\nFeatsList[\"chef\"] = {\r\n\tname : \"Chef\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"Time spent mastering the culinary arts has paid off, granting you the following benefits:\\n \\u2022 Increase your Constitution or Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with cook's utensils if you don't already have it.\\n \\u2022 As part of a short rest, you can cook special food, provided you have ingredients and cook's utensils on hand. You can prepare enough of this food for a number of creatures equal to 4 + your proficiency bonus. At the end of the short rest, any creature who eats the food and spends one or more Hit Dice to regain hit points regains an extra 1d8 hit points.\\n \\u2022 With one hour of work or when you finish a long rest, you can cook a number of treats equal to your proficiency bonus. These special treats last 8 hours after being made. A creature can use a bonus action to eat one of those treats to gain temporary hit points equal to your proficiency bonus.\",\r\n\tdescription : \"During a short rest, I can make food for 4 + my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus creatures; if they eat it and spend 1\" + (typePF ? \"+ HD\" : \" or more Hit Die\") + \", they regain 1d8 HP. In one hour or during a long rest, I can make treats equal to my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus that last for 8 hours; As a bonus action, one can eat a treat, gaining my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus in temporary HP. [+1 \" + (typePF ? \"Con or Wis\" : \"Constitution or Wisdom\") + \"]\",\r\n\taction : [[\"bonus action\", \"Consume Chef's Treat\"]],\r\n\ttoolProfs : [\"Cook's utensils\"],\r\n\tscorestxt : \"+1 Constitution or Wisdom\"\r\n};\r\nFeatsList[\"crusher\"] = {\r\n\tname : \"Crusher\",\r\n\tsource : [[\"T\", 79]],\r\n\tdescriptionFull : \"You are practiced in the art of crushing your enemies, granting you the following benefits:\\n \\u2022 Increase your Strength or Constitution by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals bludgeoning damage, you can move it 5 feet to an unoccupied space, provided the target is no more than one size larger than you.\\n \\u2022 When you score a critical hit that deals bludgeoning damage to a creature, attack rolls against that creature are made with advantage until the start of your next turn.\",\r\n\tdescription : \"Once per turn, when I hit a creature no more than one size larger than me with an attack that deals bludgeoning damage, I can move it 5 ft to an unoccupied space. If I score a critical hit that deals bludgeoning damage, attacks against the creature hit gain advantage until the start of my next turn. [+1 \" + (typePF ? \"Str or Con\" : \"Strength or Constitution\") + \"]\",\r\n\tscorestxt : \"+1 Strength or Constitution\"\r\n};\r\nFeatsList[\"eldritch adept\"] = {\r\n\tname : \"Eldritch Adept\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\r\n\tdescriptionFull : \"Studying occult lore, you have unlocked eldritch power within yourself: you learn one Eldritch Invocation option of your choice from the warlock class. If the invocation has a prerequisite of any kind, you can choose that invocation only if you're a warlock who meets the prerequisite.\\n   Whenever you gain a level, you can replace the invocation with another one from the warlock class.\",\r\n\tdescription : 'I learn one Eldritch Invocation from the warlock class for which I meet the prerequisites (2nd page \"Choose Feature\" button). I can replace this invocation for another whenever I gain a level.',\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"warlock\",\r\n\t\tfeature : \"eldritch invocations\",\r\n\t\tbonus : 1\r\n\t}],\r\n\tprerequisite : \"Spellcasting or Pact Magic feature\",\r\n\tprereqeval : function (v) { return v.isSpellcastingClass; }\r\n};\r\nFeatsList[\"fey touched\"] = {\r\n\tname : \"Fey Touched\",\r\n\tsource : [[\"T\", 79], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"Your exposure to the Feywild's magic has changed you, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn the misty step spell and one 1st-level spell of your choice. The 1st-level spell must be from the divination or enchantment school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\r\n\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Misty Step\",\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"1st-level Ench/Div spell\",\r\n\t\t'class': \"any\",\r\n\t\tschool : [\"Ench\", \"Div\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them \" + (typePF ? \"by expending\" : \"with\") + \" a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n// Add the fighting initiate only when all other code has run, so that we get fighting styles added by the code\r\nRunFunctionAtEnd(function() {\r\n\tif (!ClassList.fighter || !ClassList.fighter.features[\"fighting style\"]) return;\r\n\tvar FtngStyles = ClassList.fighter.features[\"fighting style\"];\r\n\tFeatsList[\"fighting initiate\"] = {\r\n\t\tname : \"Fighting Initiate\",\r\n\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\t\tdescriptionFull : \"Your martial training has helped you develop a particular style of fighting. As a result, you learn one Fighting Style option of your choice from the fighter class. If you already have a style, the one you choose must be different.\\n   Whenever you reach a level that grants the Ability Score Improvement feature, you can replace this feat's fighting style with another one from the fighter class that you don't have.\",\r\n\t\tdescription : \"I learn one Fighting Style from the fighter class, which must be one that I don't yet know. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\tprerequisite : \"Proficiency with a martial weapon\",\r\n\t\tprereqeval : function(v) {\r\n\t\t\treturn v.martialWeaponsProf || v.otherWeaponsProf.some(function (n) {\r\n\t\t\t\treturn WeaponsList[n] && (/Martial/i).test(WeaponsList[n].type);\r\n\t\t\t});\r\n\t\t},\r\n\t\tchoices : [],\r\n\t\t\"archery\" : {\r\n\t\t\tdescription : \"I gain a +2 bonus to attack rolls I make with ranged weapons. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"defense\" : {\r\n\t\t\tdescription : \"I gain a +1 bonus to my AC while I'm wearing armor. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"dueling\" : {\r\n\t\t\tdescription : \"When I wield a melee weapon in one hand and no other weapons, I gain a +2 bonus to damage rolls with that weapon. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"great weapon fighting\" : {\r\n\t\t\tdescription : \"When I roll a 1 or 2 on a damage die for an attack I make with a two-handed or versatile melee weapon that I'm wielding with two hands, I can reroll the die and must use the new roll, even if the new roll is a 1 or a 2. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"protection\" : {\r\n\t\t\tdescription : \"When a creature I can see attacks a target other than me that is within 5 ft of me, I can use my reaction to impose disadvantage on the attack roll. I must be wielding a shield to do this. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"two-weapon fighting\" : {\r\n\t\t\tdescription : \"When I engage in two-weapon fighting, I can add my ability modifier to the damage of the second (off-hand) attack. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : FtngStyles.source\r\n\t\t},\r\n\t\t\"blind fighting\" : {\r\n\t\t\tdescription : \"I have blindsight with a range of 10 ft, wherein I can effectively see anything that isn't behind total cover, including invisible things, even if I'm blinded or in darkness. This doesn't allow me to see things hidden from me. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 41]]\r\n\t\t},\r\n\t\t\"interception\" : {\r\n\t\t\tdescription : \"As a reaction when a creature I can see hits a target, other than me, within 5 ft of me with an attack, I can reduce the damage the target takes by 1d10 + my proficiency bonus (min 0 damage). I must be wielding a shield or a simple or martial weapon to do this. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 41], [\"UA:CFV\", 12]]\r\n\t\t},\r\n\t\t\"thrown weapon fighting\" : {\r\n\t\t\tdescription : \"I can draw a weapon that has the thrown property as part of the attack I make with the weapon. In addition, when I hit with a ranged attack using a thrown weapon, I gain a +2 bonus to the damage roll. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 42]]\r\n\t\t},\r\n\t\t\"unarmed fighting\" : {\r\n\t\t\tdescription : \"My unarmed strikes deal 1d6 damage, or 1d8 if I'm not wielding any weapons or a shield. At the start of each of my turns, I can deal 1d4 bludgeoning damage to one creature grappled by me. I can replace this fighting style for another whenever I gain an Ability Score Improvement.\",\r\n\t\t\tsource : [[\"T\", 42]]\r\n\t\t}\r\n\t};\r\n\tFtngStyles.choices.forEach(function (sName) {\r\n\t\tvar sNameLC = sName.toLowerCase();\r\n\t\tif (!FtngStyles[sNameLC]) return;\r\n\t\tFeatsList[\"fighting initiate\"].choices.push(sName);\r\n\t\tif (!FeatsList[\"fighting initiate\"][sNameLC]) {\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC] = {\r\n\t\t\t\tdescription : FtngStyles[sNameLC].description.replace(/^\\n   /i, '').replace(/\\n   /g, '. ') + \". I can replace this fighting style whenever I gain an ASI.\",\r\n\t\t\t\tsource : FtngStyles[sNameLC].source ? FtngStyles[sNameLC].source : FtngStyles.source\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Copy all attributes except name, source and description\r\n\t\tfor (var attr in FtngStyles[sNameLC]) {\r\n\t\t\tif ((/\\b(name|description|source)\\b/i).test(attr)) continue;\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC][attr] = FtngStyles[sNameLC][attr];\r\n\t\t}\r\n\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prereqeval) {\r\n\t\t\tFeatsList[\"fighting initiate\"][sNameLC].prereqeval = function(v) {\r\n\t\t\t\tvar knownStyles = GetFightingStyleSelection();\r\n\t\t\t\treturn knownStyles[v.choice] ? false : true;\r\n\t\t\t};\r\n\t\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prerequisite) FeatsList[\"fighting initiate\"][sNameLC].prerequisite = sName + \" Fighting Style is not selected anywhere else.\"\r\n\t\t};\r\n\t});\r\n});\r\nFeatsList[\"gunner\"] = {\r\n\tname : \"Gunner\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You have a quick hand and keen eye when employing firearms, granting you the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with firearms (see \\\"Firearms\\\" in the Dungeon Master's Guide).\\n \\u2022 You ignore the loading property of firearms.\\n \\u2022 Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls.\",\r\n\tdescription : \"I gain proficiency with firearms. I ignore the loading property of firearms. I don't suffer disadvantage on ranged attack rolls for being within 5 ft of a hostile creature. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tweaponProfs : [false, false, [\"Firearms\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/firearm/i).test(v.theWea.type) || (/firearm/i).test(v.theWea.list)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/([;,]? ?loading|loading[;,]? ?)/i, '');\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of firearms.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"metamagic adept\"] = {\r\n\tname : \"Metamagic Adept\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You've learned how to exert your will on your spells to alter how they function:\\n \\u2022 You learn two Metamagic options of your choice from the sorcerer class. You can use only one Metamagic option on a spell when you cast it, unless the option says otherwise. Whenever you reach a level that grants the Ability Score Improvement feature, you can replace one of these Metamagic options with another one from the sorcerer class.\\n \\u2022 You gain 2 sorcery points to spend on Metamagic (these points are added to any sorcery points you have from another source but can be used only on Metamagic). You regain all spent sorcery points when you finish a long rest.\",\r\n\tdescription : 'I learn two Metamagic options from the sorcerer class (2nd page \"Choose Feature\" button). I can use only one option on a spell unless it says otherwise. I gain 2 sorcery points, which I can only use for Metamagic. I regain all expended sorcery points when I finish a long rest. I can change one ' + (typePF ? '' : 'Metamagic option ') + 'whenever I gain an ' + (typePF ? 'ASI' : 'Ability Score Improvement') + '.',\r\n\tbonusClassExtrachoices : [{\r\n\t\t\"class\" : \"sorcerer\",\r\n\t\tfeature : \"metamagic\",\r\n\t\tbonus : 2\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Sorcery Points\",\r\n\t\tusages : 2,\r\n\t\trecovery : \"long rest\",\r\n\t\taddToExisting : true\r\n\t}],\r\n\tprerequisite : \"Spellcasting or Pact Magic feature\",\r\n\tprereqeval : function (v) { return v.isSpellcastingClass; }\r\n};\r\nFeatsList[\"piercer\"] = {\r\n\tname : \"Piercer\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You have achieved a penetrating precision in combat, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals piercing damage, you can reroll one of the attack's damage dice, and you must use the new roll.\\n \\u2022 When you score a critical hit that deals piercing damage to a creature, you can roll one additional damage die when determining the extra piercing damage the target takes.\",\r\n\tdescription : \"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target, I can roll one additional damage die. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((/pierc(\\.|ing)/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\tvar extraCritRegex = /\\d+(d\\d+ extra on a crit(ical)?( hit)?( in melee)?)/i;\r\n\t\t\t\t\tv.extraCritM = (v.extraCritM ? v.extraCritM : 0) + 1;\r\n\t\t\t\t\tif (extraCritRegex.test(fields.Description)) {\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');\r\n\t\t\t\t\t} else if ((/d\\d/).test(fields.Damage_Die)) {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\\d+).*/, '$1') + ' extra on a crit';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!(/re-?roll (one|1)? ?damage/i).test(fields.Description)) {\r\n\t\t\t\t\t\tfields.Description += '; Once per turn, re-roll one damage die';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target, I can roll one additional damage die.\",\r\n\t\t\t900\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"poisoner\"] = {\r\n\tname : \"Poisoner\",\r\n\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\r\n\tdescriptionFull : \"You can prepare and deliver deadly poisons, granting you the following benefits:\\n \\u2022 When you make a damage roll that deals poison damage, it ignores resistance to poison damage.\\n \\u2022 You can apply poison to a weapon or piece of ammunition as a bonus action, instead of an action.\\n \\u2022 You gain proficiency with the poisoner's kit if you don't already have it. With one hour of work using a poisoner's kit and expending 50 gp worth of materials, you can create a number of doses of potent poison equal to your proficiency bonus. Once applied to a weapon or piece of ammunition, the poison retains its potency for 1 minute or until you hit with the weapon or ammunition. When a creature takes damage from the coated weapon or ammunition, that creature must succeed on a DC 14 Constitution saving throw or take 2d8 poison damage and become poisoned until the end of your next turn.\",\r\n\tdescription : \"My poison damage rolls ignore poison resistance. As a bonus action, I can apply poison to a weapon or piece of ammo. I can use a poisoner's kit and 50 gp to create my Prof Bonus doses of poison in 1 hour. Potent 1 min after applying. DC 14 Con save or 2d8 poison damage and poisoned until the end of my next turn.\",\r\n\ttoolProfs : [\"Poisoner's kit\"],\r\n\taction : [[\"bonus action\", \"Apply poison to weapon/ammo\"]]\r\n};\r\nFeatsList[\"shadow touched\"] = {\r\n\tname : \"Shadow Touched\",\r\n\tsource : [[\"T\", 80]],\r\n\tdescriptionFull : \"Your exposure to the Shadowfell's magic has changed you, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You learn the invisibility spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You learn the invisibility spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\r\n\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Invisibility\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"1st-level Illus/Necro spell\",\r\n\t\t'class' : \"any\",\r\n\t\tschool : [\"Illus\", \"Necro\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Invisibility and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"skill expert\"] = {\r\n\tname : \"Skill Expert\",\r\n\tsource : [[\"T\", 80]],\r\n\tdescriptionFull : \"You have honed your proficiency with particular skills, granting you the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in one skill of your choice.\\n \\u2022 Choose one skill in which you have proficiency. You gain expertise with that skill, which means your proficiency bonus is doubled for any ability check you make with it. The skill you choose must be one that isn't already benefiting from a feature, such as Expertise, that doubles your proficiency bonus.\",\r\n\tdescription : \"I gain proficiency in one skill and expertise in that same skill or another skill I'm proficient with. [+1 to one ability score of my choice]\",\r\n\tskillstxt : \"Proficiency with one skill, and\\n   Expertise with one skill I'm proficient with\",\r\n\tscorestxt : \"+1 to one ability score of my choice\"\r\n};\r\nFeatsList[\"slasher\"] = {\r\n\tname : \"Slasher\",\r\n\tsource : [[\"T\", 81], [\"UA:F2\", 3]],\r\n\tdescriptionFull : \"You've learned where to cut to have the greatest results, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn when you hit a creature with an attack that deals slashing damage, you can reduce the speed of the target by 10 feet until the start of your next turn.\\n \\u2022 When you score a critical hit that deals slashing damage to a creature, you grievously wound it. Until the start of your next turn, the target has disadvantage on all attack rolls.\",\r\n\tdescription : \"Once per turn when I deal slashing damage to a target, I can reduce its speed by 10 ft until the start of my next turn. When I score a critical hit that deals slashing damage to a creature, the grievous wound causes it to have disadvantage on all attack rolls until the start of my next turn. [+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\"\r\n};\r\nFeatsList[\"telekinetic\"] = {\r\n\tname : \"Telekinetic\",\r\n\tsource : [[\"T\", 81]],\r\n\tdescriptionFull : \"You learn to move things with your mind, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You learn the mage hand cantrip. You can cast it without verbal or somatic components, and you can make the spectral hand invisible. If you already know this spell, its range increases by 30 feet when you cast it. Its spellcasting ability is the ability increased by this feat.\\n \\u2022 As a bonus action, you can try to telekinetically shove one creature you can see within 30 feet of you. When you do so, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + the ability modifier of the score increased by this feat) or be moved 5 feet toward you or away from you. A creature can willingly fail this save.\",\r\n\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str save vs. this feat's spell save DC or be moved 5 ft from or towards me. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Int, Wis, or Cha]\",\r\n\taction : [[\"bonus action\", \" Shove\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Mage Hand\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spellKey !== \"mage hand\") return;\r\n\t\t\t\tspellObj.components = \"\";\r\n\t\t\t\tif (spellObj.description === SpellsList[\"mage hand\"].description) spellObj.description = \"Create (in)visible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\";\r\n\t\t\t\tvar rangeRx = /(\\d+)( ?ft| ?m)/i;\r\n\t\t\t\tif (!/^(?=.*telekinetic)(?=.*feat).*$/i.test(CurrentSpells[spName].name) && rangeRx.test(spellObj.range)) {\r\n\t\t\t\t\t// add the +30 ft range only if not the entry for the feat itself\r\n\t\t\t\t\tvar spRangeM = spellObj.range.match(rangeRx);\r\n\t\t\t\t\tspellObj.range = spellObj.range.replace(rangeRx, Number(spRangeM[1]) + (What(\"Unit System\") === \"metric\" ? 9 : 30) + spRangeM[2]);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t},\r\n\t\t\t\"My Telekinetic feat allows me to cast the Mage Hand cantrip without verbal or somatic components and I can make the spectral hand invisible. If I already know the cantrip from another source, its range is also increased with 30 ft.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Intelligence is my spellcasting ability for these. [+1 Intelligence]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Wisdom is my spellcasting ability for these. [+1 Wisdom]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I know the Mage Hand cantrip, can cast it without components, and the spectral hand can be invisible. As a bonus action, I can shove one creature I can see within 30 ft. It must make a Str\" + (typePF ? \"\" : \"ength\") + \" save vs. this feat's spell save DC or be moved 5 ft\" + (typePF ? \"\" : \" away\") + \" from or towards me. Charisma is my spellcasting ability for these. [+1 Charisma]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"telepathic\"] = {\r\n\tname : \"Telepathic\",\r\n\tsource : [[\"T\", 81]],\r\n\tdescriptionFull : \"You awaken the ability to mentally connect with others, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\\n \\u2022 You can speak telepathically to any creature you can see within 60 feet of you. Your telepathic utterances are in a language you know, and the creature understands you only if it knows that language. Your communication doesn't give the creature the ability to respond to you telepathically.\\n \\u2022 You can cast the detect thoughts spell, requiring no spell slot or components, and you must finish a long rest before you can cast it this way again. Your spellcasting ability for the spell is the ability increased by this feat. If you have spell slots of 2nd level or higher, you can cast this spell with them.\",\r\n\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. My spellcasting ability is the ability I increase with this feat. [+1 Int, Wis, or Cha]\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Detect Thoughts\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tspellChanges : {\r\n\t\t\"detect thoughts\" : {\r\n\t\t\tcomponents : \"(V,S,M)\",\r\n\t\t\tchanges : \"My Telepathic feat allows me to cast Detect Thoughts once per long rest without requiring a spell slot or spell components, or by using a spell slot and cast it with components as normal.\"\r\n\t\t}\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Intelligence is my spellcasting ability for this. [+1 Int\" + (typePF ? \"\" : \"elligence\") + \"]\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Wisdom is my spellcasting ability for this. [+1 Wis\" + (typePF ? \"\" : \"dom\") + \"]\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I can telepathically speak to a creature I can see within 60 ft in a language I know, but it can't respond telepathically. I can cast Detect Thoughts once per long rest at its lowest level, requiring no spell slot or components, and can cast it using a spell slot as normal. Charisma is my spellcasting ability for this. [+1 Cha\" + (typePF ? \"\" : \"risma\") + \"]\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>> //\r\n// >>> New Spells >>> //\r\n// >>>>>>>>>>>>>>>>>> //\r\n// [dupl_start] reprint spells from Sword Coast Adventure Guide (after 2020 errata)\r\nif (!SourceList.S) {\r\n\tSpellsList[\"booming blade\"] = {\r\n\t\tname : \"Booming Blade\",\r\n\t\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"S:5-ft rad\",\r\n\t\tcomponents : \"S,M\\u0192\",\r\n\t\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\t\tduration : \"1 round\",\r\n\t\tdescription : \"Melee wea atk with cast; hit: 0d8 Thunder dmg, if it moves next round +1d8; +1d8 at CL5, 11, \\u0026 17\",\r\n\t\tdescriptionShorter : \"melee wea atk with cast; hit: 0d8 Thunder dmg, if move next rnd +1d8; +1d8 CL 5/11/17 \",\r\n\t\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Thunder dmg and if moves next round +`CD`d8 Thunder dmg\",\r\n\t\tdescriptionFull : \"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects and then becomes sheathed in booming energy until the start of your next turn. If the target willingly moves 5 feet or more before then, the target takes 1d8 thunder damage, and the spell ends.\\n   This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 thunder damage to the target on a hit, and the damage the target takes for moving increases to 2d8. Both damage rolls increase by 1d8 at 11th level (2d8 and 3d8) and again at 17th level (3d8 and 4d8).\",\r\n\t\tdynamicDamageBonus : {\r\n\t\t\textraDmgGroupsSameType : /(next r(?:ou)?nd )((?:\\+?\\d+d?\\d*)+)/i\r\n\t\t}\r\n\t};\r\n\tSpellsList[\"green-flame blade\"] = {\r\n\t\tname : \"Green-Flame Blade\",\r\n\t\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"S:5-ft rad\",\r\n\t\tcomponents : \"S,M\\u0192\",\r\n\t\tcompMaterial : \"A melee weapon worth at least 1 sp\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tdescription : \"Melee wea atk with cast; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\t\tdescriptionShorter : \"Melee wea atk; hit: 0d8 Fire dmg, 1 crea in 5 ft 0d8+spell mod Fire dmg; +1d8 CL5/11/17\",\r\n\t\tdescriptionCantripDie : \"Melee wea atk with cast; if hit: `CD-1`d8 Fire dmg, 1 crea in 5 ft `CD-1`d8+spellcasting ability modifier Fire dmg\",\r\n\t\tdescriptionFull : \"You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you. On a hit, the target suffers the weapon attack's normal effects, and you can cause green fire to leap from the target to a different creature of your choice that you can see within 5 feet of it. The second creature takes fire damage equal to your spellcasting ability modifier.\\n   This spell's damage increases when you reach certain levels. At 5th level, the melee attack deals an extra 1d8 fire damage to the target on a hit, and the fire damage to the second creature increases to 1d8 + your spellcasting ability modifier. Both damage rolls increase by 1d8 at 11th level (2d8 and 2d8) and 17th level (3d8 and 3d8).\"\r\n\t};\r\n\tSpellsList[\"lightning lure\"] = {\r\n\t\tname : \"Lightning Lure\",\r\n\t\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Evoc\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"S:15-ft rad\",\r\n\t\tcomponents : \"V\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"1 crea in 15 ft save or pulled 10 ft to me; if it ends in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5, 11, \\u0026 17\",\r\n\t\tdescriptionShorter : \"1 crea in 15 ft save or pulled 10 ft to me; if end in 5 ft, 1d8 Lightning dmg; +1d8 at CL 5/11/17\",\r\n\t\tdescriptionCantripDie : \"1 crea I see save or pulled 10 ft to me; if it ends in 5 ft, `CD`d8 Lightning dmg\",\r\n\t\tdescriptionFull : \"You create a lash of lightning energy that strikes at one creature of your choice that you can see within 15 feet of you. The target must succeed on a Strength saving throw or be pulled up to 10 feet in a straight line toward you and then take 1d8 lightning damage if it is within 5 feet of you.\" + \"\\n   \" + \"This spell's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8).\"\r\n\t};\r\n\tSpellsList[\"sword burst\"] = {\r\n\t\tname : \"Sword Burst\",\r\n\t\tclasses : [\"artificer\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"S:5-ft rad\",\r\n\t\tcomponents : \"V\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Dex\",\r\n\t\tdescription : \"All crea in range save or 1d6 Force damage; +1d6 at CL 5, 11, and 17\",\r\n\t\tdescriptionCantripDie : \"All crea in range save or `CD`d6 Force damage\",\r\n\t\tdescriptionFull : \"You create a momentary circle of spectral blades that sweep around you. All other creatures within 5 feet of you must succeed on a Dexterity saving throw or take 1d6 force damage.\" + \"\\n   \" + \"This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n\t};\r\n\tWeaponsList[\"booming blade\"] = {\r\n\t\tregExpSearch : /^(?=.*booming)(?=.*blade).*$/i,\r\n\t\tname : \"Booming Blade\",\r\n\t\tsource : [[\"T\", 106], [\"S\", 142]],\r\n\t\tlist : \"spell\",\r\n\t\tability : 6,\r\n\t\ttype : \"Cantrip\",\r\n\t\tdamage : [\"Bd8/Cd8\", \"\", \"thunder\"],\r\n\t\trange : \"With melee wea\",\r\n\t\tdescription : \"First damage added to the attack; second to the target if it moves next round\",\r\n\t\tabilitytodamage : false\r\n\t};\r\n\tWeaponsList[\"green-flame blade\"] = {\r\n\t\tregExpSearch : /^(?=.*green)(?=.*flame)(?=.*blade).*$/i,\r\n\t\tname : \"Green-Flame Blade\",\r\n\t\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\t\tlist : \"spell\",\r\n\t\tability : 6,\r\n\t\ttype : \"Cantrip\",\r\n\t\tdamage : [\"Bd8/Bd8\", \"\", \"fire\"],\r\n\t\trange : \"With melee wea\",\r\n\t\tdescription : \"First damage added to the attack; second to a target within 5 ft\",\r\n\t\tabilitytodamage : true\r\n\t};\r\n\tWeaponsList[\"lightning lure\"] = {\r\n\t\tregExpSearch : /^(?=.*lightning)(?=.*lure).*$/i,\r\n\t\tname : \"Lightning Lure\",\r\n\t\tsource : [[\"T\", 107], [\"S\", 143]],\r\n\t\tlist : \"spell\",\r\n\t\tability : 5,\r\n\t\ttype : \"Cantrip\",\r\n\t\tdamage : [\"C\", 8, \"lightning\"],\r\n\t\trange : \"15 ft\",\r\n\t\tdescription : \"Str save; success - nothing; fail - pulled 10 ft closer to me, only take damage if end within 5 ft of me\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true\r\n\t};\r\n\tWeaponsList[\"sword burst\"] = {\r\n\t\tregExpSearch : /^(?=.*sword)(?=.*burst).*$/i,\r\n\t\tname : \"Sword Burst\",\r\n\t\tsource : [[\"T\", 115], [\"S\", 143]],\r\n\t\tlist : \"spell\",\r\n\t\tability : 6,\r\n\t\ttype : \"Cantrip\",\r\n\t\tdamage : [\"C\", 6, \"force\"],\r\n\t\trange : \"5-ft radius\",\r\n\t\tdescription : \"Dex save, success - no damage; all creatures in range\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true\r\n\t};\r\n}\r\n// reprint spell from Icewind Dale: Rime of the Frostmaiden\r\nif (!SourceList.F) {\r\n\tSpellsList[\"blade of disaster\"] = {\r\n\t\tname : \"Blade of Disaster\",\r\n\t\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"T\", 106], [\"RotF\", 318]],\r\n\t\tlevel : 9,\r\n\t\tschool : \"Conj\",\r\n\t\ttime : \"1 bns\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 min\",\r\n\t\tdescription : \"Create weapon; 2 spell atks 4d12 Force dmg; crit on 18+, triple dmg; bns a to move 30 ft \\u0026 do 2 atks\",\r\n\t\tdescriptionShorter : \"Create wea; 2 spell atks 4d12 Force dmg; crit 18+, triple dmg; bns a to move 30 ft \\u0026 2 atks\",\r\n\t\tdescriptionFull : \"You create a blade-shaped planar rift about 3 feet long in an unoccupied space you can see within range. The blade lasts for the duration. When you cast this spell, you can make up to two melee spell attacks with the blade, each one against a creature, loose object, or structure within 5 feet of the blade. On a hit, the target takes 4d12 force damage. This attack scores a critical hit if the number on the d20 is 18 or higher. On a critical hit, the blade deals an extra 8d12 force damage (for a total of 12d12 force damage).\" +\r\n\t\t\"\\n   As a bonus action on your turn, you can move the blade up to 30 feet to an unoccupied space you can see and then make up to two melee spell attacks with it again.\" +\r\n\t\t\"\\n   The blade can harmlessly pass through any barrier, including a wall of force.\"\r\n\t};\r\n} // dupl_end\r\nSpellsList[\"dream of the blue veil\"] = {\r\n\tname : \"Dream of the Blue Veil\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 106]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"20 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A magic item or a willing creature from the destination world\",\r\n\tduration : \"6 hours\",\r\n\tdescription : \"9 willing crea unconscious for duration, after that travel to origin material plane of magic item or crea\",\r\n\tdescriptionFull : \"You and up to eight willing creatures within range fall unconscious for the spell's duration and experience visions of another world on the Material Plane, such as Oerth, Toril, Krynn, or Eberron. If the spell reaches its full duration, the visions conclude with each of you encountering and pulling back a mysterious blue curtain. The spell then ends with you mentally and physically transported to the world that was in the visions.\" +\r\n\t\"\\n   To cast this spell, you must have a magic item that originated on the world you wish to reach, and you must be aware of the world's existence, even if you don't know the world's name. Your destination in the other world is a safe location within 1 mile of where the magic item was created. Alternatively, you can cast the spell if one of the affected creatures was born on the other world, which causes your destination to be a safe location within 1 mile of where that creature was born.\" +\r\n\t\"\\n   The spell ends early on a creature if that creature takes any damage, and the creature isn't transported. If you take any damage, the spell ends for you and all the other creatures, with none of you being transported.\"\r\n};\r\nSpellsList[\"intellect fortress\"] = {\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 107]],\r\n\tlevel : 3,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1+1/SL crea, each max 30 ft apart, has Psychic damage resistance and adv. on Int, Wis, and Cha saves\",\r\n\tdescriptionFull : \"For the duration, you or one willing creature you can see within range has resistance to psychic damage, as well as advantage on Intelligence, Wisdom, and Charisma saving throws.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, you can target one additional creature for each slot level above 3rd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"mind sliver\"] = {\r\n\tname : \"Mind Sliver\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\tlevel : 0,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d6 Psychic dmg, -1d4 on first save before my next turn ends; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionShorter : \"1 crea save or 1d6 Psychic dmg, -1d4 on 1st save before my next turn end; +1d6 at CL 5/11/17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Psychic dmg and subtract 1d4 from first saving throw before my next turn ends\",\r\n\tdescriptionFull : \"You drive a disorienting spike of psychic energy into the mind of one creature you can see within range. The target must succeed on an Intelligence saving throw or take 1d6 psychic damage and subtract 1d4 from the next saving throw it makes before the end of your next turn.\" +\r\n\t\"\\n   This spell's damage increases by 1d6 when you reach certain levels: 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nWeaponsList[\"mind sliver\"] = {\r\n\tregExpSearch : /^(?=.*mind)(?=.*sliver).*$/i,\r\n\tname : \"Mind Sliver\",\r\n\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"psychic\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"1 creature Int save, success - no damage, fail - also -1d4 on first save before my next turn ends\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nSpellsList[\"spirit shroud\"] = {\r\n\tname : \"Spirit Shroud\",\r\n\tclasses : [\"cleric\", \"paladin\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 108]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 bns\",\r\n\trange : \"S:10-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"My atks +1d8+1d8/2SL Cold/Necro/Radiant dmg, no heal until next turn; any crea I see -10 ft spd\",\r\n\tdescriptionShorter : \"My atks +1d8+1d8/2SL Cold/Necro/Radiant dmg, no heal 1 rnd; any crea -10 ft spd\",\r\n\tdescriptionFull : \"You call forth spirits of the dead, which flit around you for the spell's duration. The spirits are intangible and invulnerable.\"+\r\n\t\"\\n   Until the spell ends, any attack you make deals 1d8 extra damage when you hit a creature within 10 feet of you. This damage is radiant, necrotic, or cold (your choice when you cast the spell). Any creature that takes this damage can't regain hit points until the start of your next turn.\"+\r\n\t\"\\n   In addition, any creature of your choice that you can see that starts its turn within 10 feet of you has its speed reduced by 10 feet until the start of your next turn.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for every two slot levels above 3rd.\",\r\n\tdynamicDamageBonus : {\r\n\t\tmultipleDmgTypes : {\r\n\t\t\tdmgTypes : [\"cold\", \"necrotic\", \"radiant\"],\r\n\t\t\tinDescriptionAs : \"Cold/Necro/Radiant\"\r\n\t\t}\r\n\t}\r\n};\r\nSpellsList[\"summon aberration\"] = {\r\n\tname : \"Summon Aberration\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 109]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A pickled tentacle and an eyeball in a platinum-inlaid vial worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Abberant Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth an aberrant spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Aberrant Spirit stat block. When you cast the spell, choose Beholderkin, Slaad, or Star Spawn. The creature resembles an aberration of that kind, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon beast\"] = {\r\n\tname : \"Summon Beast\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"T\", 109]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A feather, tuft of fur, and fish tail inside a gilded acorn worth at least 200 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Bestial Spirit; obeys commands; takes turn after mine; disappears at 0 hp (200gp)\",\r\n\tdescriptionFull : \"You call forth a bestial spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Bestial Spirit stat block. When you cast the spell, choose an environment: Air, Land, or Water. The creature resembles an animal of your choice that is native to the chosen environment, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon celestial\"] = {\r\n\tname : \"Summon Celestial\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"T\", 110]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A golden reliquary worth at least 500 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Celestial Spirit; obeys commands; takes turn after mine; disappears at 0 hp (500gp)\",\r\n\tdescriptionFull : \"You call forth a celestial spirit. It manifests in an angelic form in an unoccupied space that you can see within range. This corporeal form uses the Celestial Spirit stat block. When you cast the spell, choose Avenger or Defender. Your choice determines the creature's attack in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon construct\"] = {\r\n\tname : \"Summon Construct\",\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"T\", 111]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An ornate stone and metal lockbox worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Construct Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth the spirit of a construct. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Construct Spirit stat block. When you cast the spell, choose a material: Clay, Metal, or Stone. The creature resembles a golem or a modron (your choice) made of the chosen material, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon elemental\"] = {\r\n\tname : \"Summon Elemental\",\r\n\tclasses : [\"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"T\", 111]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Air, a pebble, ash, and water inside a gold-inlaid vial worth at least 400 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Elemental Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth an elemental spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Elemental Spirit stat block. When you cast the spell, choose an element: Air, Earth, Fire, or Water. The creature resembles a bipedal form wreathed in the chosen element, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon fey\"] = {\r\n\tname : \"Summon Fey\",\r\n\tclasses : [\"druid\", \"ranger\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 112]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded flower worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Fey Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a fey spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Fey Spirit stat block. When you cast the spell, choose a mood: Fuming, Mirthful, or Tricksy. The creature resembles a fey creature of your choice marked by the chosen mood, which determines one of the traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon fiend\"] = {\r\n\tname : \"Summon Fiend\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 112]],\r\n\tlevel : 6,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Humanoid blood inside a ruby vial worth at least 600 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Fiendish Spirit; obeys commands; takes turn after mine; disappears at 0 hp (600gp)\",\r\n\tdescriptionFull : \"You call forth a fiendish spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Fiendish Spirit stat block. When you cast the spell, choose Demon, Devil, or Yugoloth. The creature resembles a fiend of the chosen type, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon shadowspawn\"] = {\r\n\tname : \"Summon Shadowspawn\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 113]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Tears inside a gem worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Shadow Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a shadowy spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Shadow Spirit stat block. When you cast the spell, choose an emotion: Fury, Despair, or Fear. The creature resembles a misshapen biped marked by the chosen emotion, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"summon undead\"] = {\r\n\tname : \"Summon Undead\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 114]],\r\n\tlevel : 3,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded skull worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Undead Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth an undead spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Undead Spirit stat block. When you cast the spell, choose the creature's form: Ghostly, Putrid, or Skeletal. The spirit resembles an undead creature with the chosen form, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"tasha's caustic brew\"] = {\r\n\tname : \"Tasha's Caustic Brew\",\r\n\tnameAlt : \"Caustic Brew\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"T\", 115]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30-ft line\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A bit of rotten food\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"30-ft long 5-ft wide all save or 2d4+2d4/SL Acid dmg at start of turn; action to clean self or adjacent\",\r\n\tdescriptionShorter : \"30-ft long 5-ft wide all save or 2d4+2d4/SL Acid dmg at turn start; 1 a clean self/adjacent\",\r\n\tdescriptionFull : \"A stream of acid emanates from you in a line 30 feet long and 5 feet wide in a direction you choose. Each creature in the line must succeed on a Dexterity saving throw or be covered in acid for the spell's duration or until a creature uses its action to scrape or wash the acid off itself or another creature. A creature covered in the acid takes 2d4 acid damage at start of each of its turns.\" +\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 2d4 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"tasha's mind whip\"] = {\r\n\tname : \"Tasha's Mind Whip\",\r\n\tnameAlt : \"Mind Whip\",\r\n\tregExpSearch : /^(?=.*mind)(?=.*(whip|thrust)).*$/i, // \"Mind Thrust\" in UA:POR\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"T\", 115], [\"UA:POR\", 8]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1+1/SL crea, max 30 ft apart; 3d6 Psychic dmg; no rea; only move, act, or bns; save half, no act limit\",\r\n\tdescriptionShorter : \"1+1/SL crea, max 30 ft apart; 3d6 Psychic dmg; no rea; move, act, or bns; save half, no act limit\",\r\n\tdescriptionFull : \"You psychically lash out at one creature you can see within range. The target must make an Intelligence saving throw. On a failed save, the target takes 3d6 psychic damage, and it can't take a reaction until the end of its next turn. Moreover, on its next turn, it must choose whether it gets a move, an action, or a bonus action; it gets only one of the three. On a successful save, the target takes half as much damage and suffers none of the spell's other effects.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"tasha's otherworldly guise\"] = {\r\n\tname : \"Tasha's Otherworldly Guise\",\r\n\tnameShort : \"T's Otherworldly Guise\",\r\n\tnameAlt : \"Otherworldly Guise\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"T\", 116]],\r\n\tlevel : 6,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"An object engraved with a symbol of the Outer Planes, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Fire/Poison or Radiant/Necrotic/Charm immune; 40 ft fly; +2 AC; 2 atks; spellcast. abi atks (500gp)\",\r\n\tdescriptionFull : \"Uttering an incantation, you draw on the magic of the Lower Planes or Upper Planes (your choice) to transform yourself. You gain the following benefits until the spell ends:\" +\r\n\t\"\\n \\u2022 You are immune to fire and poison damage (Lower Planes) or radiant and necrotic damage (Upper Planes).\" +\r\n\t\"\\n \\u2022 You are immune to the poisoned condition (Lower Planes) or the charmed condition (Upper Planes).\" +\r\n\t\"\\n \\u2022 Spectral wings appear on your back, giving you a flying speed of 40 feet.\" +\r\n\t\"\\n \\u2022 You have a +2 bonus to AC.\" +\r\n\t\"\\n \\u2022 All your weapon attacks are magical, and when you make a weapon attack, you can use your spellcasting ability modifier, instead of Strength or Dexterity, for the attack and damage rolls.\" +\r\n\t\"\\n \\u2022 You can attack twice, instead of once, when you take the Attack action on your turn. You ignore this benefit if you already have a feature, like Extra Attack, that lets you attack more than once when you take the Attack action on your turn.\"\r\n};\r\n\r\n\r\n// >>>>>>>>>>>>>>>>>>> //\r\n// >>> Magic Items >>> //\r\n// >>>>>>>>>>>>>>>>>>> //\r\n// Tattoos\r\nvar TCoE_magicTattoosDescription = desc([\r\n\t\" >>Tattoo Attunement<<. To attune to this item, you hold the needle to your skin where you want the tattoo to appear, pressing the needle there throughout the attunement process. When the attunement is complete, the needle turns into the ink that becomes the tattoo, which appears on the skin.\",\r\n\t\" If your attunement to the tattoo ends, the tattoo vanishes, and the needle reappears in your space.\",\r\n\t\"\\n>>Magic Tattoos<< (TCoE 118)\",\r\n\t\" Blending magic and artistry with ink and needles, magic tattoos imbue their bearers with wondrous abilities. Magic tattoos are initially bound to magic needles, which transfer their magic to a creature.\",\r\n\t\" Once inscribed on a creature's body, damage or injury doesn't impair the tattoo's function, even if the tattoo is defaced. When applying a magic tattoo, a creature can customize the tattoo's appearance. A magic tattoo can look like a brand, scarification, a birthmark, patterns of scale, or any other cosmetic alteration.\",\r\n\t\" The rarer a magic tattoo is, the more space it typically occupies on a creature's skin. The table below offers guidelines for how large a given tattoo is.\",\r\n\t\"\\n>>Tattoo Rarity\\tArea Covered<<\",\r\n\t\"Common     \\tOne hand or foot or a quarter of a limb\",\r\n\t\"Uncommon   \\tHalf a limb or the scalp\",\r\n\t\"Rare\\t\\tOne limb\",\r\n\t\"Very Rare  \\tTwo limbs or the chest or upper back\",\r\n\t\"Legendary  \\tTwo limbs and the torso\"\r\n], \"\\n  \");\r\nmagicTattoosTxt = { // a public variable to be used for any magical tattoo that uses these rules\r\n\tbase : TCoE_magicTattoosDescription,\r\n\tunicode : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tuppercase : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/\\byou\\b/ig, \"I\"),\r\n\tplain : TCoE_magicTattoosDescription.replace(/>>(.*?)<</g, \"$1\").replace(/your/g, \"my\").replace(/\\byou\\b/ig, \"I\")\r\n};\r\nMagicItemsList[\"absorbing tattoo\"] = function() {\r\n\tvar oObj = {\r\n\t\tname : \"Absorbing Tattoo\",\r\n\t\tsource : [[\"T\", 119]],\r\n\t\ttype : \"wondrous item (tattoo)\",\r\n\t\trarity : \"very rare\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing. It grants me resistance to a damage type. As a reaction once per dawn when I take that type of damage, I can gain immunity against that instance of damage and recover half the damage as HP.\",\r\n\t\tdescriptionFull : \"Produced by a special needle, this magic tattoo features designs that emphasize one color.\"+\r\n\t\t\"\\n   \" + toUni(\"Damage Resistance\") + \". While the tattoo is on your skin, you have resistance to a type of damage associated with that color, as shown on the table below. The DM chooses the color or determines it randomly.\"+\r\n\t\ttoUni(\"\\nd10\\tDamage Type\\tColor\")+\r\n\t\t\"\\n   1\\tAcid\\t\\tGreen\"+\r\n\t\t\"\\n   2\\tCold\\t\\tBlue\"+\r\n\t\t\"\\n   3\\tFire\\t\\tRed\"+\r\n\t\t\"\\n   4\\tForce\\t\\tWhite\"+\r\n\t\t\"\\n   5\\tLightning  \\tYellow\"+\r\n\t\t\"\\n   6\\tNecrotic\\t\\tBlack\"+\r\n\t\t\"\\n   7\\tPoison\\t\\tViolet\"+\r\n\t\t\"\\n   8\\tPsychic\\t\\tSilver\"+\r\n\t\t\"\\n   9\\tRadiant\\t\\tGold\"+\r\n\t\t\"\\n 10\\tThunder\\t\\tOrange\"+\r\n\t\t\"\\n\\n   \" + toUni(\"Damage Absorption\") + \". When you take damage of the chosen type, you can use your reaction to gain immunity against that instance of the damage, and you regain a number of hit points equal to half the damage you would have taken. Once this reaction is used, it can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"Immunity\",\r\n\t\tchoices : [\"Acid (green)\", \"Cold (blue)\", \"Fire (red)\", \"Force (white)\", \"Lightning (yellow)\", \"Necrotic (black)\", \"Poison (violet)\", \"Psychic (silver)\", \"Radiant (gold)\", \"Thunder (orange)\"]\r\n\t};\r\n\tvar sDescr = \"When I attune to this magic needle, it disappears and I gain a COLOR magical tattoo of a design of my choosing. It grants me resistance to TYPE damage. As a reaction once per dawn when I take TYPE damage, I can gain immunity against that instance of damage and recover half the damage as HP.\";\r\n\tfor (var i = 0; i < oObj.choices.length; i++) {\r\n\t\tvar aType = oObj.choices[i].split(/ \\(|\\)/g);\r\n\t\toObj[oObj.choices[i].toLowerCase()] = {\r\n\t\t\tname : aType[0] + \" Absorbing Tattoo\",\r\n\t\t\tsortname : \"Absorbing Tattoo, \" + aType[0],\r\n\t\t\tdescription : sDescr.replace(/TYPE/g, aType[0].toLowerCase()).replace(/COLOR/g, aType[1]),\r\n\t\t\tdmgres : [aType[0]],\r\n\t\t\taction : [[\"reaction\", \" (Immunity)\"]]\r\n\t\t}\r\n\t}\r\n\treturn oObj;\r\n}();\r\nMagicItemsList[\"barrier tattoo\"] = {\r\n\tname : \"Barrier Tattoo\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\tdescription : \"This magic tattoo depicts protective imagery and uses ink that resembles liquid metal. While not wearing armor, this tattoo grants me an Armor Class related to the rarity of the tattoo.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo depicts protective imagery and uses ink that resembles liquid metal.\"+\r\n\t\"\\n   \" + toUni(\"Protection\") + \". While you aren't wearing armor, the tattoo grants you an Armor Class depending on the tattoo's rarity, as shown below. You can use a shield and still gain this benefit.\"+\r\n\ttoUni(\"\\nTattoo Rarity\\tAC\")+\r\n\t\"\\n  Uncommon\\t12 + your Dexterity modifier\"+\r\n\t\"\\n  Rare\\t\\t15 + your Dexterity modifier (maximum of +2)\"+\r\n\t\"\\n  Very Rare\\t18\\n\"+\r\n\tmagicTattoosTxt.unicode,\r\n\tattunement : true,\r\n\tchoices : [\"AC 12+Dex (uncommon)\", \"AC 15+Dex (rare)\", \"AC 18 (very rare)\"],\r\n\t\"ac 12+dex (uncommon)\" : {\r\n\t\tname : \"Barrier Tattoo (uncommon)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 12 + my Dexterity modifier. I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 12,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"ac 15+dex (rare)\" : {\r\n\t\tname : \"Barrier Tattoo (rare)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 15 + my Dexterity modifier (maximum of +2). I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 15,\r\n\t\t\tdex : 2,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"ac 18 (very rare)\" : {\r\n\t\tname : \"Barrier Tattoo (very rare)\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring protective imagery. While I'm not wearing armor, the tattoo grants me an AC of 18. I can use a shield and still gain this benefit.\",\r\n\t\tarmorOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*barrier)(?=.*tattoo).*$/i,\r\n\t\t\tname : \"Barrier Tattoo\",\r\n\t\t\tsource : [[\"T\", 122]],\r\n\t\t\tac : 18,\r\n\t\t\tdex : -10,\r\n\t\t\taffectsWildShape : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"blood fury tattoo\"] = {\r\n\tname : \"Blood Fury Tattoo\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo has 10 charges, regaining all at dawn. As a reaction when a creature I can see damages me, I can use 1 charge to make a melee attack with advantage against it. When I hit a creature with a melee attack, I can use 1 charge to deal it 4d6 necrotic damage and regain the same amount in hit points.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo evokes fury in its form and colors.\"+\r\n\t\"\\n   \" + toUni(\"Bloodthirsty Strikes\") + \". The tattoo has 10 charges, and it regains all expended charges daily at dawn. While this tattoo is on your skin, you gain the following benefits:\"+\r\n\t\"\\n \\u2022 When you hit a creature with a weapon attack, you can expend a charge to deal an extra 4d6 necrotic damage to the target, and you regain a number of hit points equal to the necrotic damage dealt.\"+\r\n\t\"\\n \\u2022 When a creature you can see damages you, you can expend a charge and use your reaction to make a melee attack against that creature, with advantage on your attack roll.\" + magicTattoosTxt.unicode,\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"reaction\", \" (after taking damage)\"]]\r\n}\r\nMagicItemsList[\"coiling grasp tattoo\"] = {\r\n\tname : \"Coiling Grasp Tattoo\",\r\n\tsource : [[\"T\", 123]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo features intertwining designs. As an action, I can have a creature I can see within 15 ft make a DC 14 Str save or take 3d6 force damage and be grappled. It can use its action to try and escape (DC 14 Athletics/Acrobatics). Grapple ends if I halt it, use it again, or if the target is more than 15 ft away.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo has long intertwining designs.\"+\r\n\t\"\\n   \" + toUni(\"Grasping Tendrils\") + \". While the tattoo is on your skin, you can, as an action, cause the tattoo to extrude into inky tendrils, which reach for a creature you can see within 15 feet of you. The creature must succeed on a DC 14 Strength saving throw or take 3d6 force damage and be grappled by you. As an action, the creature can escape the grapple by succeeding on a DC 14 Strength (Athletics) or Dexterity (Acrobatics) check. The grapple also ends if you halt it (no action required), if the creature is ever more than 15 feet away from you, or if you use this tattoo on a different creature.\" + magicTattoosTxt.unicode,\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*coiling grasp)(?=.*tattoo).*$/i,\r\n\t\tname : \"Coiling Grasp Tattoo\",\r\n\t\tsource : [[\"T\", 123]],\r\n\t\tability : 0,\r\n\t\ttype : \"Magic Item\",\r\n\t\tdamage : [3, 6, \"force\"],\r\n\t\trange : \"15 ft\",\r\n\t\tdescription : \"Str save, success - no damage, fail - grappled; Escape DC 14 Athletics/Acrobatics\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tmodifiers : [6, \"\"],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"eldritch claw tattoo\"] = {\r\n\tname : \"Eldritch Claw Tattoo\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This magical tattoo featuring clawlike forms makes my unarmed strikes magical with a +1 bonus to attack and damage. As a bonus action once per dawn, I can have it empower me for 1 minute so that all my melee attacks with weapons and unarmed strikes have 15 ft reach and deal an extra 1d6 force damage.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo depicts clawlike forms and other jagged shapes.\"+\r\n\t\"\\n   \" + toUni(\"Magical Strikes\") + \". While the tattoo is on your skin, your unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks, and you gain a +1 bonus to attack and damage rolls with unarmed strikes.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Maul\") + \". As a bonus action, you can empower the tattoo for 1 minute. For the duration, each of your melee attacks with a weapon or an unarmed strike can reach a target up to 15 feet away from you, as inky tendrils launch toward the target. In addition, your melee attacks deal an extra 1d6 force damage on a hit. Once used, this bonus action can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Eldritch Maul\",\r\n\taction : [[\"bonus action\", \" (Eldritch Maul)\"]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ((v.baseWeaponName === \"unarmed strike\" || v.isMeleeWeapon) && (/eldritch (claw|maul)/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tif (fields.Range.toLowerCase() === 'melee') {\r\n\t\t\t\t\t\tfields.Range = 'Melee (15 ft reach)';\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 force damage';\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '15 ft reach; +1d6 force damage';\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If I include the words 'Eldritch Maul' or 'Eldritch Claw' in the name of a melee weapon or an unarmed strike, it gets +10 ft reach and +1d6 force damage.\",\r\n\t\t\t700\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\toutput.magic += 1;\r\n\t\t\t\t}\r\n\t\t\t}, ''\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"ghost step tattoo\"] = {\r\n\tname : \"Ghost Step Tattoo\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action 3 times per day, I can become incorporeal until my next turn ends. While incorporeal, I can't be grappled or restrained, gain nonmagical bludgeoning, piercing, and slashing damage resistance, and can move through creatures or objects as difficult terrain (1d10 force damage if I end my turn in one).\",\r\n\tdescriptionFull : \"Produced by a special needle, this tattoo shifts and wavers on the skin, parts of it appearing blurred.\"+\r\n\t\"\\n   \" + toUni(\"Ghostly Form\") + \". The tattoo has 3 charges, and it regains all expended charges daily at dawn. As a bonus action while the tattoo is on your skin, you can expend 1 of the tattoo's charges to become incorporeal until the end of your next turn. For the duration, you gain the following benefits:\"+\r\n\t\"\\n \\u2022 You have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks.\"+\r\n\t\"\\n \\u2022 You can't be grappled or restrained.\"+\r\n\t\"\\n \\u2022 You can move through creatures and solid objects as if they were difficult terrain. If you end your turn in a solid object, you take 1d10 force damage. If the effect ends while you are inside a solid object, you instead are shunted to the nearest unoccupied space, and you take 1d10 force damage for every 5 feet traveled.\" + magicTattoosTxt.unicode,\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n}\r\nMagicItemsList[\"illuminator's tattoo\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Illuminator's Tattoo\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"While this beautiful calligraphy tattoo is on my skin, I can write with my fingertip as if it is an ink pen that never runs out of ink. As an action, I can touch writing up to one page and speak a creature's name, making it invisible to everyone else but me and the creature for up to 24 hours or until I or the creature touch it.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo features beautiful calligraphy, images of writing implements, and the like.\"+\r\n\t\"\\n   \" + toUni(\"Magical Scribing\") + \". While this tattoo is on your skin, you can write with your fingertip as if it were an ink pen that never runs out of ink.\"+\r\n\t\"\\n   As an action, you can touch a piece of writing up to one page in length and speak a creature's name. The writing becomes invisible to everyone other than you and the named creature for the next 24 hours. Either of you can dismiss the invisibility by touching the script (no action required). Once used, this action can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"lifewell tattoo\"] = {\r\n\tname : \"Lifewell Tattoo\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo of a design of my choosing featuring symbols of life and rebirth. It grants me resistance to necrotic damage. The first time per dawn when I would be reduced to 0 hit points, I drop to 1 hit point instead.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo features symbols of life and rebirth.\"+\r\n\t\"\\n   \" + toUni(\"Necrotic Resistance\") + \". You have resistance to necrotic damage.\"+\r\n\t\"\\n   \" + toUni(\"Life Ward\") + \". When you would be reduced to 0 hit points, you drop to 1 hit point instead. Once used, this property can't be used again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tdmgres : [\"Necrotic\"]\r\n}\r\nMagicItemsList[\"masquerade tattoo\"] = {\r\n\tname : \"Masquerade Tattoo\",\r\n\tsource : [[\"T\", 131]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"common\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a magical tattoo. As a bonus action, I can change its size, color, pattern, and location on my skin to whatever I want, but it's always obviously a tattoo. As an action once per dawn, I can use the tattoo to cast Disguise Self (DC 13 to discern the disguise).\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo appears on your body as whatever you desire.\"+\r\n\t\"\\n   \" + toUni(\"Fluid Ink\") + \". As a bonus action, you can shape the tattoo into any color or pattern and move it to any area of your skin. Whatever form it takes, it is always obviously a tattoo. It can range in size from no smaller than a copper piece to an intricate work of art that covers all your skin.\"+\r\n\t\"\\n   \" + toUni(\"Disguise Self\") + \". As an action, you can use the tattoo to cast the disguise self spell (DC 13 to discern the disguise). Once the spell is cast from the tattoo, it can't be cast from the tattoo again until the next dawn.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Disguise Self\",\r\n\taction : [[\"bonus action\", \" (change)\"]],\r\n\tfixedDC : 13,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Disguise Self\",\r\n\t\tspells : [\"disguise self\"],\r\n\t\tselection : [\"disguise self\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\nMagicItemsList[\"shadowfell brand tattoo\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Shadowfell Brand Tattoo\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"When I attune to this magic needle, it disappears and I gain a dark, abstract magical tattoo. It gives me darkvision with a range of 60 ft and advantage on Dexterity (Stealth) checks. As a reaction once per sunset when I take damage, I can become insubstantial for a moment, halving the damage I take.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo is dark in color and abstract.\"+\r\n\t\"\\n   \" + toUni(\"Shadow Essence\") + \". You gain darkvision with a range of 60 feet, and you have advantage on Dexterity (Stealth) checks.\"+\r\n\t\"\\n   \" + toUni(\"Shadowy Defense\") + \". When you take damage, you can use your reaction to become insubstantial for a moment, halving the damage you take. Then the reaction can't be used again until the next sunset.\" + magicTattoosTxt.unicode,\r\n\tusages : 1,\r\n\trecovery : \"sunset\",\r\n\taction : [[\"reaction\", \" (halve damage)\"]],\r\n\tadvantages : [\"Stealth\", true],\r\n\tvision : [[\"Darkvision\", 60]]\r\n}\r\nMagicItemsList[\"spellwrought tattoo\"] = {\r\n\tname : \"Spellwrought Tattoo\",\r\n\tsource : [[\"T\", 135]],\r\n\ttype : \"wondrous item (tattoo)\",\r\n\tdescription : \"When I hold this magic needle against my skin and speak the command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its spell, requiring no material components. The tattoo glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\tdescriptionFull : \"Produced by a special needle, this magic tattoo contains a single spell of up to 5th level, wrought on your skin by a magic needle. To use the tattoo, you must hold the needle against your skin and speak the command word. The needle turns into ink that becomes the tattoo, which appears on the skin in whatever design you like. Once the tattoo is there, you can cast its spell, requiring no material components. The tattoo glows faintly while you cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes from your skin.\"+\r\n\t\"\\n   The level of the spell in the tattoo determines the spell's saving throw DC, attack bonus, spellcasting ability modifier, and the tattoo's rarity, as shown in the table below.\\n\"+\r\n\ttoUni(\"\\n Spell\\t\\t     Spellcasting\\tSave\\tAttack\"+\r\n\t\"\\n Level\\tRarity\\t     Ability Mod.\\t DC\\tBonus\")+\r\n\t\"\\nCantrip\\tCommon\\t\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  1st\\tCommon\\t\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  2nd\\tUncommon\\t+3\\t 13\\t  +5\"+\r\n\t\"\\n  3rd\\tUncommon\\t+4\\t 15\\t  +7\"+\r\n\t\"\\n  4th\\tRare\\t\\t+4\\t 15\\t  +7\"+\r\n\t\"\\n  5th\\tRare\\t\\t+5\\t 17\\t  +9\" + magicTattoosTxt.unicode.replace(/[\\s\\S]*in your space\\.\\n */, \"\\n\"),\r\n\tallowDuplicates : true,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif ((/^spellwrought tattoo/i).test(spName)) {\r\n\t\t\t\t\tif (spellObj.components) spellObj.components = spellObj.components.replace(/,?[RM][\\u0192\\u2020]?/ig, '');\r\n\t\t\t\t\tif (spellObj.compMaterial) spellObj.compMaterial = \"Spell cast using a Spellwrought Tattoo, require no material components\";\r\n\t\t\t\t\tspellObj.ritual = false;\r\n\t\t\t\t\t[\"description\", \"descriptionMetric\", \"descriptionShorter\", \"descriptionShorterMetric\"].forEach (function (attr) {\r\n\t\t\t\t\t\tif (!spellObj[attr]) return;\r\n\t\t\t\t\t\tspellObj[attr] = spellObj[attr].replace(/ \\(\\d+k? ?gp( cons\\.?)?\\)/i, '');\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"When casting a spell using a Spellwrought Tattoo, no material components are needed, and can't be cast as a ritual.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"Cantrip (common)\", \"1st-level (common)\", \"2nd-level (uncommon)\", \"3rd-level (uncommon)\", \"4th-level (rare)\", \"5th-level (rare)\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"cantrip (common)\" : {\r\n\t\tname : \"Spellwrought Tattoo (cantrip)\",\r\n\t\tsortname : \"Spellwrought Tattoo  (cantrip)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its cantrip, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [0,0],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"1st-level (common)\" : {\r\n\t\tname : \"Spellwrought Tattoo (1st-level)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 1st-level spell, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [1,1],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"2nd-level (uncommon)\" : {\r\n\t\tname : \"Spellwrought Tattoo (2nd-level)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 2nd-level spell, requiring no material components, with DC 13, +5 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 13,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [2,2],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"3rd-level (uncommon)\" : {\r\n\t\tname : \"Spellwrought Tattoo (3rd-level)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 3rd-level spell, requiring no material components, with DC 15, +7 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [3,3],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"4th-level (rare)\" : {\r\n\t\tname : \"Spellwrought Tattoo (4th-level)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 4th-level spell, requiring no material components, with DC 15, +7 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 15,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [4,4],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t},\r\n\t\"5th-level (rare)\" : {\r\n\t\tname : \"Spellwrought Tattoo (5th-level)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"When I put this needle on my skin and speak its command word, it disappears and I gain a magical tattoo. I can use this tattoo to cast its 5th-level spell, requiring no material components, with DC 17, +9 spell attack. It glows faintly while I cast the spell and for the spell's duration. Once the spell ends, the tattoo vanishes.\",\r\n\t\tfixedDC : 17,\r\n\t\tspellFirstColTitle : \"Us\", // used\r\n\t\tspellcastingBonus : [{\r\n\t\t\tlevel : [5,5],\r\n\t\t\tpsionic : false,\r\n\t\t\ttimes : 20,\r\n\t\t\tfirstCol : \"checkbox\",\r\n\t\t\tmagicItemComponents : false\r\n\t\t}]\r\n\t}\r\n}\r\n// Bonus to spell attack rolls and saving throw DCs\r\nMagicItemsList[\"all-purpose tool\"] = {\r\n\tname : \"All-Purpose Tool\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by an artificer\",\r\n\tprereqeval : function(v) { return classes.known.artificer ? true : false; },\r\n\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\tdescriptionFull : \"This simple screwdriver can transform into a variety of tools; as an action, you can touch the item and transform it into any type of artisan's tool of your choice (see the \\\"Equipment\\\" chapter in the Player's Handbook for a list of artisan's tools). Whatever form the tool takes, you are proficient with it.\"+\r\n\t\"\\n   While holding this tool, you gain a bonus to the spell attack rolls and the saving throw DCs of your artificer spells. The bonus is determined by the tool's rarity.\"+\r\n\t\"\\n   As an action, you can focus on the tool to channel your creative forces. Choose a cantrip that you don't know from any class list. For 8 hours, you can cast that cantrip, and it counts as an artificer cantrip for you. Once this property is used, it can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"choose cantrip\",\r\n\tspellcastingAbility: \"artificer\",\r\n\tspellFirstColTitle: \"8h\",\r\n\tspellcastingPreparedCantrips: { 'class': 'any' },\r\n\tallowUpCasting: true,\r\n\tspellcastingBonus: [{\r\n\t\tname: 'Select 1 cantrip or enable',\r\n\t\t'class': 'any',\r\n\t\tlevel: [0, 0],\r\n\t}, {\r\n\t\tname: '\"Prepare cantrips just like',\r\n\t\tspells: [],\r\n\t}, {\r\n\t\tname: 'spells\" on the bottom left.',\r\n\t\tspells: [],\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the already known cantrips, from any source except magic items\r\n\t\t\t\tif (spName.indexOf('all-purpose tool') !== -1) {\r\n\t\t\t\t\tvar allSpellsKnown = [];\r\n\t\t\t\t\tfor (var sCast in CurrentSpells) {\r\n\t\t\t\t\t\tif (sCast.refType === \"item\") continue;\r\n\t\t\t\t\t\tvar oCast = CurrentSpells[sCast];\r\n\t\t\t\t\t\tif (oCast.selectCa) allSpellsKnown = allSpellsKnown.concat(oCast.selectCa);\r\n\t\t\t\t\t\tif (oCast.selectBo) allSpellsKnown = allSpellsKnown.concat(oCast.selectBo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar knownCantrips = OrderSpells(allSpellsKnown, \"single\", false, false, 0);\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat(knownCantrips);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t],\r\n\t},\r\n\taction : [[\"action\", \" (transform tool)\"], [\"action\", \" (choose cantrip)\"]],\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"All-Purpose Tool +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +1 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"All-Purpose Tool +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +2 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"All-Purpose Tool +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"As an action, I can transform this simple screwdriver into any set of artisan's tools and be proficient with them. While holding this tool, I gain a +3 bonus to my artificer spell attacks and save DCs. As an action once per dawn, I can choose any cantrip that I don't know and cast it as an artificer cantrip for the next 8 hours.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability, spell) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('artificer') !== -1 || (!spellcasters.length && ability === 4 && spell && SpellsList[spell] && SpellsList[spell].level === 0))) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the All-Purpose Tool, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my artificer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"amulet of the devout\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Amulet of the Devout\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\tdescriptionFull : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While you wear the holy symbol you gain a bonus to spell attack rolls and the saving throw DCs of your spells. The bonus is determined by the amulet's rarity.\"+\r\n\t\"\\n   While you wear this amulet, you can use your Channel Divinity feature without expending one of the feature's uses. Once this property is used, it can't be used again until the next dawn.\",\r\n\tweight : 1, // as amulet holy symbol\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Channel Divinity\",\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Amulet of the Devout +1\",\r\n\t\tnameTest : \"+1 Amulet of the Devout\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +1 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Amulet of the Devout +2\",\r\n\t\tnameTest : \"+2 Amulet of the Devout\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +2 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Amulet of the Devout +3\",\r\n\t\tnameTest : \"+3 Amulet of the Devout\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This amulet bears the symbol of a deity inlaid with precious stones or metals. While I wear this holy symbol, I gain a +3 bonus to spell attack rolls and saving throw DCs of my spells. Once per dawn, it allows me to use my Channel Divinity feature without expending one of the feature's uses.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\") return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing the Amulet of the Devout, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"arcane grimoire\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Arcane Grimoire\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a bonus to spell attack rolls and the saving throw DCs of my wizard spells.\",\r\n\tdescriptionFull : \"While you are holding this leather-bound book, you can use it as a spellcasting focus for your wizard spells, and you gain a bonus to spell attack rolls and the saving throw DCs of your wizard spells. The bonus is determined by the book's rarity.\"+\r\n\t\"\\n   You can use this book as a spellbook. In addition, when you use your Arcane Recovery feature, you can increase the number of spell slot levels you regain by 1.\",\r\n\tweight : 3, // as spellbook\r\n\tchangeeval : function() {\r\n\t\t// Update the limited feature \"Arcane Recovery\" to display 1 more spell level than for the wizard level (unless there is no wizard level)\r\n\t\tif (!classes.known.wizard) return;\r\n\t\t// This changeeval is called before the class feature updates the limited feature, so we need to use setTimeOut to do the change after\r\n\t\tvar arcaneGrimoireArcaneRecoveryFix = function() {\r\n\t\t\tvar lvls = Math.ceil(classes.known.wizard.level / 2) + 1;\r\n\t\t\tvar additional = \" (\" + lvls + \" levels of spell slots)\";\r\n\t\t\tvar tooltip = \"Arcane Grimoire (recover +1 level)\";\r\n\t\t\tAddFeature(\"Arcane Recovery\", 1, additional, \"long rest\", tooltip, \"replace\");\r\n\t\t}\r\n\t\tvar timeout = app.setTimeOut(\"arcaneGrimoireArcaneRecoveryFix();\", 300);\r\n\t},\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Arcane Grimoire +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +1 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Arcane Grimoire +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +2 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Arcane Grimoire +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"I can use this leather-bound book as a spellbook and it allows me to regain 1 extra spell slot level when I use Arcane Recovery (included in Limited Features). While holding it, I can use it as a spellcasting focus for my wizard spells and gain a +3 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('wizard') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Arcane Grimoire, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my wizard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"bloodwell vial\"] = { // contains contributions by lizrdgizrd\r\n\tname : \"Bloodwell Vial\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\tdescriptionFull : \"To attune to this vial, you must place a few drops of your blood into it. The vial can't be opened while your attunement to it lasts. If your attunement to the vial ends, the contained blood turns to ash. You can use the vial as a spellcasting focus for your spells while wearing or holding it, and you gain a bonus to spell attack rolls and to the saving throw DCs of your sorcerer spells. The bonus is determined by the vial's rarity.\"+\r\n\t\"\\n   In addition, when you roll any Hit Dice to recover hit points while you are carrying the vial, you can regain 5 sorcery points. This property of the vial can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"recover 5 Sorcery Points\",\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Bloodwell Vial +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +1 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Bloodwell Vial +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +1 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Bloodwell Vial +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While I wear or hold this vial to which I added a few drops of my blood, I gain a +3 bonus to my spell attack rolls and to the saving throw DCs of my sorcerer spells. While I'm attuned to it, it can't be opened. Once per dawn, when I roll any Hit Dice to recover HP while carrying this vial, I can regain 5 sorcery points.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('sorcerer') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While wearing or holding the Bloodwell Vial, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my sorcerer spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"moon sickle\"] = {\r\n\tname : \"Moon Sickle\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"weapon (sickle)\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or ranger\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.ranger || classes.known.rangerua ? true : false;\r\n\t},\r\n\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a bonus to attack and damage rolls made with it. While I'm holding it, I gain a bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\tdescriptionFull : \"This silver-bladed sickle glimmers softly with moonlight. While holding this magic weapon, you gain a bonus to attack and damage rolls made with it, and you gain a bonus to spell attack rolls and the saving throw DCs of your druid and ranger spells. The bonus is determined by the weapon's rarity. In addition, you can use the sickle as a spellcasting focus for your druid and ranger spells.\"+\r\n\t\"\\n   When you cast a spell that restores hit points, you can roll a d4 and add the number rolled to the amount of hit points restored, provided you are holding the sickle.\",\r\n\tweight : 2,\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tif (spellObj.psionic || !spellObj.level) return;\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"enervation\" :\r\n\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\tcase \"vampiric touch\" :\r\n\t\t\t\t\t\tvar useSpellDescr = getSpellShortDescription(spellKey, spellObj);\r\n\t\t\t\t\t\tvar strAdd = \" +1d4\";\r\n\t\t\t\t\t\tspellObj.description = useSpellDescr.replace(/(heals? (half|twice)( the damage dealt| that)?)( in HP)?/, \"$1\" + strAdd);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tdefault :\r\n\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d4\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"While holding the Moon Sickle when I cast a spell that restores hit points, I can roll a d4 and add the number rolled to the amount of hit points restored.\"\r\n\t\t]\r\n\t},\r\n\tchoices : [\"+1 weapon, +1 to spell attacks and DCs (uncommon)\", \"+2 weapon, +2 to spell attacks and DCs (rare)\", \"+3 weapon, +3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 weapon, +1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Moon Sickle +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +1 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +1 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +1\"], options : [\"Moon Sickle +1\"] }\r\n\t},\r\n\t\"+2 weapon, +2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Moon Sickle +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +2 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +2 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +2\"], options : [\"Moon Sickle +2\"] }\r\n\t},\r\n\t\"+3 weapon, +3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Moon Sickle +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"This silver-bladed sickle glimmers softly with moonlight. I gain a +3 bonus to attack and damage rolls made with it. While I'm holding it, I gain a +3 bonus to spell attack rolls and saving throw DCs of my druid and ranger spells, and spells I cast that restore HP add 1d4 to the number of HP restored.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && (spellcasters.indexOf('druid') !== -1 || spellcasters.indexOf('ranger') !== -1)) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Moon Sickle, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my druid and ranger spells.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\tweaponsAdd : { select : [\"Moon Sickle +3\"], options : [\"Moon Sickle +3\"] }\r\n\t}\r\n}\r\nMagicItemsList[\"rhythm maker's drum\"] = {\r\n\tname : \"Rhythm Maker's Drum\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this drum, I gain a bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\tdescriptionFull : \"While holding this drum, you gain a bonus to spell attack rolls and to the spell saving throw DCs or your bard spells. The bonus is determined by the drum's rarity.\"+\r\n\t\"\\n   As an action, you can play the drum to regain one use of your Bardic Inspiration feature. This property of the drum can't be used again until the next dawn.\",\r\n\tweight : 3,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \" (bardic inspiration)\"]],\r\n\tchoices : [\"+1 to spell attacks and DCs (uncommon)\", \"+2 to spell attacks and DCs (rare)\", \"+3 to spell attacks and DCs (very rare)\"],\r\n\t\"+1 to spell attacks and dcs (uncommon)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"While holding this drum, I gain a +1 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +1 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to spell attacks and dcs (rare)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +2\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"While holding this drum, I gain a +2 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +2 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to spell attacks and dcs (very rare)\" : {\r\n\t\tname : \"Rhythm Maker's Drum +3\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this drum, I gain a +3 bonus to spell attack rolls and to the spell saving throw DCs of my bard spells.\\nAs an action once per dawn, I can play the drum to regain one use of my Bardic Inspiration feature.\",\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type !== \"prepare\" && spellcasters.indexOf('bard') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"While holding the Rhythm Maker's Drum, I gain a +3 bonus to the spell attack rolls and saving throw DCs of my bard spells.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\n// Spellbook alternatives\r\nMagicItemsList[\"alchemical compendium\"] = {\r\n\tname : \"Alchemical Compendium\",\r\n\tsource : [[\"T\", 119]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this tome with spells as my spellbook and spellcasting focus. It has 3 charges, regaining 1d3 at dawn. With 1 charge \\u0026 1 min of study, I can change a prepared spell to a transmutation spell within. As an action, I can touch an unattended, nonmagical object and use charges to transform it into another. See tooltip.\",\r\n\tdescriptionLong : \"I can use this acrid smelling, stained, heavy book with metal fittings as my spellbook and, while held, as my spellcasting focus. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a transmutation spell within. As an action, I can touch an unattended, nonmagical object and use charges to transform it into another. For 1 charge, the object can be up to 1 ft on a side. I can spend additional charges to increase these dimensions by 2 ft per charge. The new object must have no higher gp value than the original.\",\r\n\tdescriptionFull : \"Acrid odors cling to this stained, heavy volume. The book's metal fittings are copper, iron, lead, silver, and gold, some frozen mid-transition from one metal to another. When found, the book contains the following spells: enlarge/reduce, feather fall, flesh to stone, gaseous form, magic weapon, and polymorph. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the transmutation school.\"+\r\n\t\"\\n \\u2022 As an action, you can touch a nonmagical object that isn't being worn or carried and spend a number of charges to transform the target into another object. For 1 charge, the object can be no larger than 1 foot on a side. You can spend additional charges to increase the maximum dimensions by 2 feet per charge. The new object must have a gold value equal to or less than the original.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"enlarge/reduce\", \"feather fall\", \"flesh to stone\", \"gaseous form\", \"magic weapon\", \"polymorph\"]\r\n\t},\r\n\taction : [[\"action\", \" (transform object)\"]]\r\n}\r\nMagicItemsList[\"astromancy archive\"] = {\r\n\tname : \"Astromancy Archive\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"As bonus action, I can (un)fold this disc into an armillary sphere. I can use it as a spellcasting focus and spellbook with 3 charges, regains 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can swap a prepared spell for a divination spell within. As a reaction, I can use 1 charge to add/subtract d4 from attack/check/save in 30 ft.\",\r\n\tdescriptionLong : \"As a bonus action, I can unfold this brass disc of articulated, concentric rings into an armillary sphere or back into a disc. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a divination spell within. As a reaction when I see a creature within 30 ft roll for an attack, check, or save, I can expend 1 change to add or subtract 1d4 from the roll. This happens after I see the roll but before the roll's effects are applied.\",\r\n\tdescriptionFull : \"This brass disc of articulated, concentric rings unfolds into an armillary sphere. As a bonus action, you can unfold it into the sphere or back into a disc. When found, it contains the following spells, which are wizard spells for you while you are attuned to it: augury, divination, find the path, foresight, locate creature, and locate object. It functions as a spellbook for you, with spells encoded on the rings.\"+\r\n\t\"\\n   While you are holding the archive, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The archive has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the archive, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the archive. The new spell must be of the divination school.\"+\r\n\t\"\\n \\u2022 When a creature you can see within 30 feet of you makes an attack roll, an ability check, or a saving throw, you can use your reaction to expend 1 charge and force the creature to roll a d4 and apply the number rolled as a bonus or penalty (your choice) to the original roll. You can do this after you see the roll but before its effects are applied.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Astromancy Archive\",\r\n\t\t\tspells : [\"augury\", \"divination\", \"find the path\"], // not wizard spells!\r\n\t\t\tselection : [\"augury\", \"divination\", \"find the path\"],\r\n\t\t\ttimes : 3\r\n\t\t}],\r\n\t\taddToKnown : [\"foresight\", \"locate creature\", \"locate object\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"bonus action\", \" (fold/unfold)\"],\r\n\t\t[\"reaction\", \" (add/subtract d4)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"atlas of endless horizons\"] = {\r\n\tname : \"Atlas of Endless Horizons\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a conjuration spell within. As a reaction when hit by an attack, I can use 1 charge to teleport up to 10 ft, making it miss if I'm out of range.\",\r\n\tdescriptionLong : \"This thick book is bound in dark leather, crisscrossed with inlaid silver lines suggesting a map or chart. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to replace one of my prepared wizard spells with a conjuration spell in this book. As a reaction when I am hit by an attack, I can expend 1 charge to teleport up to 10 ft to an unoccupied space I can see. If my new position is out of range of the attack, it misses me.\",\r\n\tdescriptionFull : \"This thick book is bound in dark leather, crisscrossed with inlaid silver lines suggesting a map or chart. When found, the book contains the following spells, which are wizard spells for you while you are attuned to the book: arcane gate, dimension door, gate, misty step, plane shift, teleportation circle, and word of recall. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the conjuration school.\"+\r\n\t\"\\n \\u2022 When you are hit by an attack, you can use your reaction to expend 1 charge to teleport up to 10 feet to an unoccupied space you can see. If your new position is out of range of the attack, it misses you.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Atlas of Endless Horizons\",\r\n\t\t\tspells : [\"word of recall\"], // not a wizard spell!\r\n\t\t\tselection : [\"word of recall\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"arcane gate\", \"dimension door\", \"gate\", \"misty step\", \"plane shift\", \"teleportation circle\"]\r\n\t},\r\n\taction : [[\"reaction\", \"Teleport 10ft (1 charge)\"]]\r\n}\r\nMagicItemsList[\"crystalline chronicle\"] = {\r\n\tname : \"Crystalline Chronicle\",\r\n\tsource : [[\"T\", 124]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this orb with spells as a wizard spellcasting focus and spellbook. It lets me use Mage Hand, Mind Sliver, and Message. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to another within. I can use 1 charge to ignore components of a wizard spell (max 100 gp).\",\r\n\tdescriptionLong : \"This grapefruit sized, etched crystal sphere hums pulses with irregular flares of inner light. I can retrieve and store information within the crystal as a spellbook by touching it. It contains several spells and has 3 charges, regaining 1d3 at dawn. While holding it, I can use it as a spellcasting focus for my wizard spells, I know the Mage Hand, Mind Sliver, and Message cantrips, I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to another within, and when I cast a wizard spell, I can expend 1 charge to cast it without verbal, somatic, or material components of up to 100 gp value.\",\r\n\tdescriptionFull : \"An etched crystal sphere the size of a grapefruit hums faintly and pulses with irregular flares of inner light. While you are touching the crystal, you can retrieve and store information and spells within the crystal at the same rate as reading and writing. When found, the crystal contains the following spells: detect thoughts, intellect fortress, Rary's telepathic bond, sending, telekinesis, Tasha's mind whip, and Tenser's floating disk. It functions as a spellbook for you, with its spells and other writing psychically encoded within it.\"+\r\n\t\"\\n   While you are holding the crystal, you can use it as a spellcasting focus for your wizard spells, and you know the mage hand, mind sliver, and message cantrips if you don't already know them.\"+\r\n\t\"\\n   The crystal has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the information within the crystal, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book.\"+\r\n\t\"\\n \\u2022 When you cast a wizard spell, you can expend 1 charge to cast the spell without verbal, somatic, or material components of up to 100 gp value.\",\r\n\tweight : 3, // As orb arcane focus\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"mage hand\", \"mind sliver\", \"message\", \"detect thoughts\", \"intellect fortress\", \"rary's telepathic bond\", \"sending\", \"telekinesis\", \"tasha's mind whip\", \"tenser's floating disk\"]\r\n\t}\r\n}\r\nMagicItemsList[\"duplicitous manuscript\"] = {\r\n\tname : \"Duplicitous Manuscript\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to an illusion spell within. As a reaction when a save or Investigation check is made vs. my illusion spells, I can use 1 charge to impose disadv.\",\r\n\tdescriptionLong : \"This book appears to be a volume of romance fiction to anyone but me. As an action, I can change its appearance and plot. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an illusion spell within. As a reaction while holding it when a creature I can see makes a save or an Intelligence (Investigation) check against an illusion spell I cast, I can expend 1 charge to impose disadvantage on the roll.\",\r\n\tdescriptionFull : \"To you, this book is a magical spellbook. To anyone else, the book appears to be a volume of verbose romance fiction. As an action, you can change the book's appearance and alter the plot of the romance.\"+\r\n\t\"\\n   When found, the book contains the following spells: hallucinatory terrain, major image, mirror image, mislead, Nystul's magic aura, phantasmal force, and silent image. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the illusion school.\"+\r\n\t\"\\n \\u2022 When a creature you can see makes an Intelligence (Investigation) check to discern the true nature of an illusion spell you cast, or makes a saving throw against an illusion spell you cast, you can use your reaction and expend 1 charge to impose disadvantage on the roll.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"hallucinatory terrain\", \"major image\", \"mirror image\", \"mislead\", \"nystul's magic aura\", \"phantasmal force\", \"silent image\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"reaction\", \" (impose disadv.)\"],\r\n\t\t[\"action\", \" (change book)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"fulminating treatise\"] = {\r\n\tname : \"Fulminating Treatise\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this tome as a wizard spellcasting focus and spellbook. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min study, I can change a prepared spell to an evocation spell within. As a reaction when my evocation spell damages a creature, I can use 1 charge to deal it 2d6 force damage and knock it prone.\",\r\n\tdescriptionLong : \"This thick, scorched book reeks of smoke and ozone, and sparks of energy crackles along the edges of its pages. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an evocation spell within. As a reaction while holding it when a creature I can see takes damage from an evocation spell I cast, I can expend 1 charge to deal the creature an extra 2d6 force damage and knock it prone if it's Large or smaller.\",\r\n\tdescriptionFull : \"This thick, scorched spellbook reeks of smoke and ozone, and sparks of energy crackles along the edges of its pages. When found, the book contains the following spells: contingency, fireball, gust of wind, Leomund's tiny hut, magic missile, thunderwave, and wall of force. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the evocation school.\"+\r\n\t\"\\n \\u2022 When one creature you can see takes damage from an evocation spell you cast, you can use your reaction and expend 1 charge to deal an extra 2d6 force damage to the creature and knock the creature prone if it is Large or smaller.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"contingency\", \"fireball\", \"gust of wind\", \"leomund's tiny hut\", \"magic missile\", \"thunderwave\", \"wall of force\"]\r\n\t},\r\n\taction : [[\"reaction\", \"Add 2d6 Force Dmg (1 chg)\"]]\r\n}\r\nMagicItemsList[\"heart weaver's primer\"] = {\r\n\tname : \"Heart Weaver's Primer\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this book as a wizard spellcasting focus and spellbook. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to an enchantment spell in it. When I cast an enchantment spell, I can use 1 charge to grant disadv. on the first save one target makes against the spell.\",\r\n\tdescriptionLong : \"This pristine book smells faintly of a random scent I find pleasing. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells that I can prepare as wizards spells. It has 3 charges and it regains 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an enchantment spell within the book. When I cast an enchantment spell while holding the book, I can expend 1 charge to impose disadvantage on the first saving throw one target makes against the spell.\",\r\n\tdescriptionFull : \"This pristine book smells faintly of a random scent you find pleasing. When found, the book contains the following spells: antipathy/sympathy, charm person, dominate person, enthrall, hypnotic pattern, modify memory, and suggestion. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the enchantment school.\"+\r\n\t\"\\n \\u2022 When you cast an enchantment spell, you can expend 1 charge to impose disadvantage on the first saving throw one target makes against the spell.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Heart Weaver's Primer\",\r\n\t\t\tspells : [\"enthrall\"], // not a wizard spell!\r\n\t\t\tselection : [\"enthrall\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"antipathy/sympathy\", \"charm person\", \"dominate person\", \"hypnotic pattern\", \"modify memory\", \"suggestion\"]\r\n\t}\r\n}\r\nMagicItemsList[\"libram of souls and flesh\"] = {\r\n\tname : \"Libram of Souls and Flesh\",\r\n\tsource : [[\"T\", 129]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 7 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a necromancy spell within. As an action, I can use 1 charge to appear undead for 10 min, causing undead I haven't damage to be indifferent.\",\r\n\tdescriptionLong : \"With covers made of skin and fittings of bone, this tome is cold to the touch, and fainlty whispers. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a necromancy spell within. As an action, I can expend 1 charge to appear undead for 10 minutes, fooling even spells. For the duration, undead are indifferent to me, unless I have damaged them. The effect ends early if I deal damage or force a creature to make a save.\",\r\n\tdescriptionFull : \"With covers made of skin and fittings of bone, this tome is cold to the touch, and it whispers faintly. When found, the book contains the following spells, which are wizard spells for you while you are attuned to the book: animate dead, circle of death, false life, finger of death, speak with dead, summon undead, and vampiric touch. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the necromancy school.\"+\r\n\t\"\\n \\u2022 As an action, you can expend 1 charge to take on a semblance of undeath for 10 minutes. For the duration, you take on a deathly appearance, and undead creatures are indifferent to you, unless you have damaged them. You also appear undead to all outward inspection and to spells used to determine the target's status. The effect ends if you deal damage or force a creature to make a saving throw.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Libram of Souls and Flesh\",\r\n\t\t\tspells : [\"speak with dead\"], // not a wizard spell!\r\n\t\t\tselection : [\"speak with dead\"]\r\n\t\t}],\r\n\t\taddToKnown : [\"animate dead\", \"circle of death\", \"false life\", \"finger of death\", \"summon undead\", \"vampiric touch\"]\r\n\t},\r\n\taction : [[\"action\", \"Semblance of Undeath\"]]\r\n}\r\nMagicItemsList[\"planecaller's codex\"] = {\r\n\tname : \"Planecaller's Codex\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"This spellbook starts with 6 spells and is a wizard spellcasting focus. It has 3 charges, regaining 1d3 at dawn. For 1 charge \\u0026 1 min of study, I can change a prepared spell to a conjuration spell within. When I cast a conjuration spell to summon or create one creature, I can give it adv. on attacks for 1 min for 1 charge.\",\r\n\tdescriptionLong : \"The pages of this book are bound in fiend hide, and its cover is embossed with a diagram of the multiverse. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 expended charges daily at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to a conjuration spell within the book. When I hold the book and cast a conjuration spell that summons or creates one creature, I can expend 1 charge to grant that creature advantage on attack rolls for 1 minute.\",\r\n\tdescriptionFull : \"The pages of this book are bound in fiend hide, and its cover is embossed with a diagram of the Great Wheel of the multiverse. When found, the book contains the following spells: banishment, find familiar, gate, magic circle, planar binding, and summon elemental. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the conjuration school.\"+\r\n\t\"\\n \\u2022 When you cast a conjuration spell that summons or creates one creature, you can expend 1 charge to grant that creature advantage on attack rolls for 1 minute.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"banishment\", \"find familiar\", \"gate\", \"magic circle\", \"planar binding\", \"summon elemental\"]\r\n\t}\r\n}\r\nMagicItemsList[\"protective verses\"] = {\r\n\tname : \"Protective Verses\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a wizard\",\r\n\tprereqeval : function(v) { return classes.known.wizard ? true : false; },\r\n\tdescription : \"I can use this book with an iron lock as a spellcasting focus and spellbook. As an action, I can use Arcane Lock it. It has 3 charges, regains 1d3 at dawn. For 1 charge \\u0026 1 min study, I can change a prepared spell to an abjuration within. I can use 1 charge when I cast an abjuration spell to give a creature in 30 ft 2d10 temp HP.\",\r\n\tdescriptionLong : \"This leather-bound spellbook is reinforced with iron and silver fittings and an iron lock (DC 20 to open). As an action, I can touch the book's cover and cause it to lock as if I cast arcane lock on it. I can use it as my spellbook and, while held, as a spellcasting focus for my wizard spells. It contains several spells and has 3 charges, regaining 1d3 charges at dawn. I can study the book for 1 minute and expend 1 charge to change one of my prepared spells to an abjuration spell within. When I hold the book and cast an abjuration, I can expend 1 charge to grant a creature I can see within 30 ft 2d10 temporary hit points.\",\r\n\tdescriptionFull : \"This leather-bound spellbook is reinforced with iron and silver fittings and an iron lock (DC 20 to open). As an action, you can touch the book's cover and cause it to lock as if you cast arcane lock on it. When found, the book contains the following spells: arcane lock, dispel magic, globe of invulnerability, glyph of warding, Mordenkainen's private sanctum, protection from evil, and symbol. It functions as a spellbook for you.\"+\r\n\t\"\\n   While you are holding the book, you can use it as a spellcasting focus for your wizard spells.\"+\r\n\t\"\\n   The book has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it:\"+\r\n\t\"\\n \\u2022 If you spend 1 minute studying the book, you can expend 1 charge to replace one of your prepared wizard spells with a different spell in the book. The new spell must be of the abjuration school.\"+\r\n\t\"\\n \\u2022 When you cast an abjuration spell, you can expend 1 charge to grant a creature you can see within 30 feet of you 2d10 temporary hit points.\",\r\n\tweight : 3, // as spellbook\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\tspellcastingBonusElsewhere : {\r\n\t\taddTo : \"wizard\",\r\n\t\taddToKnown : [\"arcane lock\", \"dispel magic\", \"globe of invulnerability\", \"glyph of warding\", \"mordenkainen's private sanctum\", \"protection from evil and good\", \"symbol\"]\r\n\t},\r\n\taction : [[\"action\", \" (Arcane Lock itself)\"]]\r\n}\r\n// Sorcerer stones\r\nMagicItemsList[\"astral shard\"] = {\r\n\tname : \"Astral Shard\",\r\n\tsource : [[\"T\", 120]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this crystal swirling with silver mist as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. Immediately after I cast a spell with a metamagic option while I hold or wear this shard, I can teleport to an unoccupied space I can see within 30 ft.\",\r\n\tdescriptionFull : \"This crystal is a solidified shard of the Astral Plane, swirling with silver mist. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus for your sorcerer spells while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, immediately after casting the spell you can teleport to an unoccupied space you can see within 30 feet of you.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"elemental essence shard\"] = {\r\n\tname : \"Elemental Essence Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this flickering crystal as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. It holds the essence of an Elemental Plane, which grants me additional benefits when I use a Metamagic option on a spell.\",\r\n\tdescriptionFull : \"This crackling crystal contains the essence of an elemental plane. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   Roll a d4 and consult the Elemental Essence Shards table to determine the shard's essence and property. When you use a Metamagic option on a spell while you are holding or wearing the shard, you can use that property.\"+\r\n\ttoUni(\"\\n d4\\tEssence\")+\r\n\t\"\\n  1\\tAir\"+\r\n\t\"\\n  2\\tEarth\"+\r\n\t\"\\n  3\\tFire\"+\r\n\t\"\\n  4\\tWater\\n\"+\r\n\t\"\\n   \" + toUni(\"Air\") + \". You can immediately fly up to 60 feet without provoking opportunity attacks.\"+\r\n\t\"\\n   \" + toUni(\"Earth\") + \". You gain resistance to a damage type of your choice until the start of your next turn.\"+\r\n\t\"\\n   \" + toUni(\"Fire\") + \". One target of the spell that you can see catches fire. The burning target takes 2d10 fire damage at the start of its next turn, and then the flames go out.\"+\r\n\t\"\\n   \" + toUni(\"Water\") + \". You create a wave of water that bursts out from you in a 10-foot radius. Each creature of your choice that you can see in that area takes 2d6 cold damage and must succeed on a Strength saving throw against your spell save DC or be pushed 10 feet away from you and fall prone.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"Air Essence\", \"Earth Essence\", \"Fire Essence\", \"Water Essence\"],\r\n\t\"air essence\" : {\r\n\t\tname : \"Air Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Air\",\r\n\t\tdescription : \"As an action, I can attach or detach this crackling crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can immediately fly up to 60 ft without provoking opportunity attacks.\"\r\n\t},\r\n\t\"earth essence\" : {\r\n\t\tname : \"Earth Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Earth\",\r\n\t\tdescription : \"As an action, I can attach or detach this crackling crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I gain resistance to a damage type of my choice until the start of my next turn.\"\r\n\t},\r\n\t\"fire essence\" : {\r\n\t\tname : \"Fire Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Fire\",\r\n\t\tdescription : \"As an action, I can attach/detach this crackling crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, one target of that spell that I can see catches fire for a round, taking 2d10 fire damage at the start of its next turn.\"\r\n\t},\r\n\t\"water essence\" : {\r\n\t\tname : \"Water Elemental Essence Shard\",\r\n\t\tsortname : \"Elemental Essence Shard, Water\",\r\n\t\tdescription : \"As an action, I can attach/detach this crackling crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, all chosen creatures in 10 ft of me take 2d6 cold damage and must make a Str save or fall prone \\u0026 be pushed back 10 ft\"\r\n\t}\r\n}\r\nMagicItemsList[\"far realm shard\"] = {\r\n\tname : \"Far Realm Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this crystal to an object. While I hold or wear it, it works as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option, I can have a creature I can see in 30 ft make a Cha save (my spell save DC) or take 3d6 psychic damage \\u0026 be frightened of me until my next turn starts.\",\r\n\tdescriptionFull : \"This writhing crystal is steeped in the warped essence of the Far Realm. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can cause a slimy tentacle to rip through the fabric of reality and strike one creature you can see within 30 feet of you. The creature must succeed on a Charisma saving throw against your spell save DC or take 3d6 psychic damage and become frightened of you until the start of your next turn.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"outer essence shard\"] = {\r\n\tname : \"Outer Essence Shard\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"I can use this flickering crystal as a spellcasting focus for my sorcerer spells while I hold or wear it. As an action, I can attach or detach it to a Tiny object. It holds the essence of an Outer Plane, which grants me additional benefits when I use a Metamagic option on a spell.\",\r\n\tdescriptionFull : \"This flickering crystal holds the essence of an Outer Plane. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   Roll a d4 and consult the Outer Essence Shards table to determine the shard's essence and property. When you use a Metamagic option on a spell while you are holding or wearing the shard, you can use that property.\"+\r\n\ttoUni(\"\\n d4\\tEssence\")+\r\n\t\"\\n  1\\tLawful\"+\r\n\t\"\\n  2\\tChaotic\"+\r\n\t\"\\n  3\\tGood\"+\r\n\t\"\\n  4\\tEvil\\n\"+\r\n\t\"\\n   \" + toUni(\"Lawful\") + \". You can end one of the following conditions affecting yourself or one creature you can see within 30 feet of you: charmed, blinded, deafened, frightened, poisoned, or stunned.\"+\r\n\t\"\\n   \" + toUni(\"Chaotic\") + \". Choose one creature who takes damage from the spell. That target has disadvantage on attack rolls and ability checks made before the start of your next turn.\"+\r\n\t\"\\n   \" + toUni(\"Good\") + \". You or one creature of your choice that you can see within 30 feet of you gains 3d6 temporary hit points.\"+\r\n\t\"\\n   \" + toUni(\"Evil\") + \". Choose one creature who takes damage from the spell. That target takes an extra 3d6 necrotic damage.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"Lawful Essence\", \"Chaotic Essence\", \"Good Essence\", \"Evil Essence\"],\r\n\t\"lawful essence\" : {\r\n\t\tname : \"Lawful Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Lawful\",\r\n\t\tdescription : \"As an action, I can attach/detach this flickering crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have myself or another I can see in 30 ft no longer be charmed, blinded, deafened, frightened, poisoned, or stunned.\"\r\n\t},\r\n\t\"chaotic essence\" : {\r\n\t\tname : \"Chaotic Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Chaotic\",\r\n\t\tdescription : \"As an action, I can attach/detach this flickering crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that was damaged by that spell have disadv. on its attacks and checks until my next turn starts.\"\r\n\t},\r\n\t\"good essence\" : {\r\n\t\tname : \"Good Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Good\",\r\n\t\tdescription : \"As an action, I can attach or detach this flickering crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that I can see within 30 ft or myself gain 3d6 temporary hit points.\"\r\n\t},\r\n\t\"evil essence\" : {\r\n\t\tname : \"Evil Outer Essence Shard\",\r\n\t\tsortname : \"Outer Essence Shard, Evil\",\r\n\t\tdescription : \"As an action, I can attach or detach this flickering crystal to a Tiny object. While I hold or wear it, I can use this crystal as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can have one creature that took damage from that spell take an extra 3d6 necrotic damage.\"\r\n\t}\r\n}\r\nMagicItemsList[\"shadowfell shard\"] = {\r\n\tname : \"Shadowfell Shard\",\r\n\tsource : [[\"T\", 135]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this dull crystal to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can curse a target of that spell to have disadv. on checks and saves with an ability score of my choice until my next turn ends.\",\r\n\tdescriptionFull : \"This dull, cold crystal sits heavy and leaden, saturated by the Shadowfell's despair. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can momentarily curse one creature targeted by the spell; choose one ability score, and until the end of your next turn, the creature has disadvantage on ability checks and saving throws that use that ability.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]]\r\n}\r\nMagicItemsList[\"feywild shard\"] = {\r\n\tname : \"Feywild Shard\",\r\n\tsource : [[\"T\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a sorcerer\",\r\n\tprereqeval : function(v) { return classes.known.sorcerer ? true : false; },\r\n\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and once per dawn when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table (see Notes for the table).\",\r\n\tdescriptionFull : \"This warm crystal glints with the sunset colors of the Feywild sky and evokes whispers of emotional memory. As an action, you can attach the shard to a Tiny object (such as a weapon or a piece of jewelry) or detach it. It falls off if your attunement to it ends. You can use the shard as a spellcasting focus while you hold or wear it.\"+\r\n\t\"\\n   When you use a Metamagic option on a spell while you are holding or wearing the shard, you can roll on the Wild Magic Surge table in the Player's Handbook. If the result is a spell, it is too wild to be affected by your Metamagic, and if it normally requires concentration, it doesn't require concentration in this case; the spell lasts for its full duration.\"+\r\n\t\"\\n   If you don't have the Wild Magic Sorcerous Origin, once this property is used to roll on the Wild Magic Surge table, it can't be used again until the next dawn.\",\r\n\tweight : 1, // as crystal arcane focus\r\n\taction : [[\"action\", \" (attach/detach)\"]],\r\n\tchoices : [\"As a wild magic sorcerer (Wild Mage)\", \"As any other sorcerer\"],\r\n\tselfChoosing : function () {\r\n\t\treturn classes.known.sorcerer && /wild mag(ic|e)/i.test(classes.known.sorcerer.subclass) ? \"as a wild magic sorcerer (wild mage)\" : \"as any other sorcerer\";\r\n\t},\r\n\t\"as a wild magic sorcerer (wild mage)\" : {\r\n\t\tname : \"Feywild Shard (Wild Mage)\",\r\n\t\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. It falls off if my attunement ends. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table.\"\r\n\t},\r\n\t\"as any other sorcerer\" : {\r\n\t\tname : \"Feywild Shard  \", // spaces are intentional\r\n\t\tdescription : \"As an action, I can attach/detach this warm crystal that glints with sunset colors to a Tiny object. While I hold or wear it, I can use it as a spellcasting focus for my sorcerer spells, and once per dawn when I use a Metamagic option on a spell, I can choose to roll on the Wild Magic Surge table (see Notes for the table).\",\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Feywild Shard (wild magic surge)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t}\r\n}\r\nif (ClassSubList['sorcerer-wild magic'] && ClassSubList['sorcerer-wild magic'].features.subclassfeature1.toNotesPage) { // Add the wild magic surge tables to this item\r\n\tMagicItemsList[\"feywild shard\"].toNotesPage = ClassSubList['sorcerer-wild magic'].features.subclassfeature1.toNotesPage;\r\n}\r\n// Bard instruments\r\nMagicItemsList[\"reveler's concertina\"] = {\r\n\tname : \"Reveler's Concertina\",\r\n\tsource : [[\"T\", 134]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this concertina, I gain a +2 bonus to the saving throw DC of my bard spells.\\nOnce per dawn, I can use the concertina to cast Otto's Irresistible Dance.\",\r\n\tdescriptionFull : \"While holding this concertina, you gain a +2 bonus to the saving throw DC of your bard spells.\"+\r\n\t\"\\n   As an action, you can use the concertina to cast Otto's irresistible dance from the item. This property of the concertina can't be used again until the next dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Irresistible Dance\",\r\n\tspellcastingAbility : \"class\", // https://www.sageadvice.eu/2015/11/27/hat-of-disguise-dc/\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Otto's Irresistible Dance\",\r\n\t\tspells : [\"otto's irresistible dance\"],\r\n\t\tselection : [\"otto's irresistible dance\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('bard') !== -1) return 2;\r\n\t\t\t},\r\n\t\t\t\"While holding the Reveler's Concertina, I gain a +2 bonus to the saving throw DCs of my bard spells.\"\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"lyre of building\"] = {\r\n\tname : \"Lyre of Building\",\r\n\tsource : [[\"T\", 131]],\r\n\ttype : \"wondrous item (instrument)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a bard\",\r\n\tprereqeval : function(v) { return classes.known.bard ? true : false; },\r\n\tdescription : \"While holding this lyre, I can cast mending as an action. As a reaction, I can protect a structure or object that takes damage from that damage type until the my next turn starts. As an action, I can play the lyre to cast Fabricate, Move Earth, Passwall, or Summon Construct from it, each spell once per dawn.\",\r\n\tdescriptionFull : \"While holding this lyre, you can cast mending as an action. You can also play the lyre as a reaction when an object or a structure you can see within 300 feet of you takes damage, causing it to be immune to that damage and any further damage of the same type until the start of your next turn.\"+\r\n\t\"\\n   In addition, you can play the lyre as an action to cast fabricate, move earth, passwall, or summon construct, and that spell can't be cast from it again until the next dawn.\",\r\n\tweight : 2,\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"mending\"],\r\n\t\tselection : [\"mending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"fabricate\", \"move earth\", \"passwall\", \"summon construct\"],\r\n\t\tselection : [\"fabricate\", \"move earth\", \"passwall\", \"summon construct\"],\r\n\t\tfirstCol : \"oncelr\",\r\n\t\ttimes : 4\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"fabricate\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Lyre of Building, I can cast Fabricate as an action.\"\r\n\t\t},\r\n\t\t\"mending\" : {\r\n\t\t\ttime : \"1 a\",\r\n\t\t\tchanges : \"Using the Lyre of Building, I can cast Mending as an action.\"\r\n\t\t}\r\n\t},\r\n\taction : [[\"reaction\", \" (protect object)\"]]\r\n}\r\n// Other magic items\r\nMagicItemsList[\"bell branch\"] = {\r\n\tname : \"Bell Branch\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or warlock\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.warlock ? true : false;\r\n\t},\r\n\tdescription : \"This silver branch with bells has 3 charges, regains 1d3 at dawn. I can use it as my spellcasting focus. As a bonus action, I can use 1 charge to detect the presence of aberrations, celestials, fiends, constructs, elementals, fey, or undead in 60 ft not behind total cover. I can use 1 charge to cast Protection from Evil and Good.\",\r\n\tdescriptionFull : \"This silver implement is shaped like a tree branch and is strung with small golden bells. The branch is a spellcasting focus for your spells while you hold it.\"+\r\n\t\"\\n   The branch has 3 charges, and it regains 1d3 expended charges daily at dawn. You can use the charges in the following ways while holding it.\"+\r\n\t\"\\n \\u2022 As a bonus action, you can expend 1 charge to detect the presence of aberrations, celestials, constructs, elementals, fey, fiends, or undead within 60 feet of you. If such creatures are present and don't have total cover from you, the bells ring softly, their tone indicating the creature types present.\"+\r\n\t\"\\n \\u2022 As an action, you can expend 1 charge to cast protection from evil and good.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \" (detect)\"]],\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Protection from Evil/Good\",\r\n\t\tspells : [\"protection from evil and good\"],\r\n\t\tselection : [\"protection from evil and good\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n}\r\nMagicItemsList[\"cauldron of rebirth\"] = {\r\n\tname : \"Cauldron of Rebirth\",\r\n\tsource : [[\"T\", 122]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or warlock\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.warlock ? true : false;\r\n\t},\r\n\tdescription : \"After a long rest, I can use this Tiny pot to create a potion of greater healing that lasts up to 24 hours. As an action, I can have it grow to fit a Medium creature, or shrink it back down. I can place a dead creature inside with 200 lb salt (10 gp) for 8 hours to Raise Dead. Once used, it can't do this again for 7 days.\",\r\n\tdescriptionFull : \"This Tiny pot bears relief scenes of heroes on its cast iron sides. You can use the cauldron as a spellcasting focus for your druid spells, and it functions as a suitable component for the scrying spell. When you finish a long rest, you can use the cauldron to create a potion of greater healing. The potion lasts for 24 hours, then loses its magic if not consumed.\"+\r\n\t\"\\n   As an action, you can cause the cauldron to grow large enough for a Medium creature to crouch within. You can revert the cauldron to its normal size as an action, harmlessly shunting anything that can't fit inside to the nearest unoccupied space.\"+\r\n\t\"\\n   If you place the corpse of a humanoid into the cauldron and cover the corpse with 200 pounds of salt (which costs 10 gp) for at least 8 hours, the salt is consumed and the creature returns to life as if by raise dead at the next dawn. Once used, this property can't be used again for 7 days.\",\r\n\taction : [[\"action\", \" (grow/shrink)\"]],\r\n\tusages : 1,\r\n\trecovery : \"7 days\",\r\n\tadditional : \"Raise Dead\"\r\n}\r\nMagicItemsList[\"devotee's censer\"] = {\r\n\tname : \"Devotee's Censer\",\r\n\tsource : [[\"T\", 126]],\r\n\ttype : \"weapon\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"I can use this magic flail, perforated with tiny holes, as a holy symbol. Attacks with it deal +1d8 radiant damage. As a bonus action once per dawn, I can speak the command word to cause it to emanate incense out to 10 ft for 1 minute. At the start of each of my turns, all creatures in the incense heal 1d4 hit points.\",\r\n\tdescriptionFull : \"The rounded head of this flail is perforated with tiny holes, arranged in symbols and patterns. The flail counts as a holy symbol for you. When you hit with an attack using this magic flail, the target takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   As a bonus action, you can speak the command word to cause the flail to emanate a thin cloud of incense out to 10 feet for 1 minute. At the start of each of your turns, you and any other creatures in the incense each regain 1d4 hit points. This property can't be used again until the next dawn.\",\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"bonus action\", \" (incense cloud)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*devotee)(?=.*censer).*$/i,\r\n\t\tname : \"Devotee's Censer\",\r\n\t\tsource : [[\"T\", 126]],\r\n\t\tdescription : \"+1d8 radiant damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"guardian emblem\"] = {\r\n\tname : \"Guardian Emblem\",\r\n\tsource : [[\"T\", 128]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.cleric || classes.known.paladin ? true : false;\r\n\t},\r\n\tdescription : \"As an action, I can attach or detach this symbol of a deity to a shield or a suit of armor. It has 3 charges, regaining all at dawn. As a reaction when I or a creature I can see within 30 ft suffers a critical hit while I wear the armor or wield the shield that bears the emblem, I can expend 1 charge to turn it into a normal hit.\",\r\n\tdescriptionFull : \"This emblem is the symbol of a deity or a spiritual tradition. As an action, you can attach the emblem to a suit of armor or a shield or remove it.\"+\r\n\t\"\\n   The emblem has 3 charges. When you or a creature you can see within 30 feet of you suffers a critical hit while you're wearing the armor or wielding the shield that bears the emblem, you can use your reaction to expend 1 charge to turn the critical hit into a normal hit instead.\"+\r\n\t\"\\n   The emblem regains all expended charges daily at dawn.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"stop critical\",\r\n\taction : [\r\n\t\t[\"action\", \" (attach/detach)\"],\r\n\t\t[\"reaction\", \" (stop critical)\"]\r\n\t]\r\n}\r\nMagicItemsList[\"nature's mantle\"] = {\r\n\tname : \"Nature's Mantle\",\r\n\tsource : [[\"T\", 133]],\r\n\ttype : \"wonderous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a druid or ranger.\",\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.druid || classes.known.ranger || classes.known.rangerua ? true : false;\r\n\t},\r\n\tdescription : \"This cloak shifts color and texture to blend with the terrain surrounding me. While wearing the cloak, I can use it as a spellcasting focus for my druid and ranger spells. While I am in an area that is lightly obscured, I can Hide as a bonus action even if I am being directly observed.\",\r\n\tdescriptionFull : \"This cloak shifts color and texture to blend with the terrain surrounding you. While wearing the cloak, you can use it as a spellcasting focus for your druid and ranger spells.\"+\r\n\t\"\\n   While you are in an area that is lightly obscured, you can Hide as a bonus action even if you are being directly observed.\",\r\n\taction : [[\"bonus action\", \" (Hide)\"]]\r\n}\r\n// [dupl_start] reprint from Eberron: Rising from the Last War\r\nif (!MagicItemsList[\"prosthetic limb\"]) {\r\n\tMagicItemsList[\"prosthetic limb\"] = {\r\n\t\tname : \"Prosthetic Limb\",\r\n\t\tsource : [[\"E:RLW\", 278], [\"W\", 268], [\"T\", 134]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"This artificial limb replaces a lost limb, like a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. As an action, I can detach or reattach it. It can't be removed against my will. It detaches if I die.\",\r\n\t\tdescriptionFull : \"This item replaces a lost limb\\u2014a hand, an arm, a foot, a leg, or a similar body part. While the prosthetic is attached, it functions identically to the part it replaces. You can detach or reattach it as an action, and it can't be removed against your will. It detaches if you die.\",\r\n\t\taction : [[\"action\", \" (attach/detach)\"]]\r\n\t}\r\n} // dupl_end\r\n"
  },
  {
    "path": "WotC material/pub_20210316_CM.js",
    "content": "var iFileName = \"pub_20210316_CM.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Candlekeep Mysteries adventure to MPMB's Character Record Sheet\r\n// All content in this file contains contributions by Ratatoskr589\r\n\r\nSourceList.CM = {\r\n\tname : \"Candlekeep Mysteries\",\r\n\tabbreviation : \"CM\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Forgotten Realms\",\r\n\turl : \"https://dnd.wizards.com/products/candlekeep-mysteries\",\r\n\tdate : \"2021/03/16\"\r\n};\r\n\r\nMagicItemsList[\"orcus figurine\"] = {\r\n\tname : \"Orcus Figurine\",\r\n\tsource : [[\"CM\", 44]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"\",\r\n\tstoryItemAL : true,\r\n\tattunement : false,\r\n\tdescription : \"This Tiny figurine smells of decaying flesh, detectable out to 5 ft. Within 30 ft of it, dead can't be brought back to life and undead can't be turned. If I hold it and pray for 1 hour, I have a 10% chance of calling a wraith for 1 hour that attacks all non-undead. Once summoned, the figurine can't do so again for 30 days.\",\r\n\tdescriptionFull : \"Carved from an ogre's petrified heart, the gray figurine depicts the Demon Prince of Undeath in ghastly detail, clutching his skull-topped wand in one hand and three severed heads by the hair in the other. The figurine smells like decaying flesh, and this scent is detectable out to a range of 5 feet.\"+\r\n\t\"\\n   The figurine is a Tiny object with AC 17, 3 hit points, and immunity to all types of damage except radiant damage. A detect evil and good spell or similar magic reveals that the figurine has been desecrated. As long as it has at least 1 hit point, the figurine has the following magical properties:\"+\r\n\t\"\\n   \\u2022 Undead within 30 feet of the figurine can't be turned.\"+\r\n\t\"\\n   \\u2022 Dead creatures within 30 feet of the figurine can't be brought back to life.\"+\r\n\t\"\\n   \\u2022 A creature that holds the figurine while praying to Orcus for at least 1 hour has a 10 percent chance of summoning a smoky avatar of the demon lord. Once this avatar is summoned, it can't be summoned again for 30 days. Orcus's avatar has the statistics of a wraith except that it's chaotic evil. It attacks all non-undead creatures it encounters, and it disappears after 1 hour or when reduced to 0 hit points.\"\r\n};\r\nMagicItemsList[\"radiance (wand)\"] = {\r\n\tname : \"Radiance (wand)\",\r\n\tsource : [[\"CM\", 87]],\r\n\ttype : \"wand\",\r\n\trarity : \"rare\", // inferred, as it is a wand of the war mage +1 (uncommon) with extra's\r\n\tattunement : true,\r\n\tdescription : \"While I am holding this exquisite golden hand mirror, I gain a +1 bonus to spell attack rolls and I ignore half cover when making a spell attack. This arcane focus sheds dim light in a 5-ft radius while in darkness. As a bonus action once per dawn, I can use Radiance to cast Enhance Ability on myself.\",\r\n\tdescriptionFull : \"While holding this wand, you gain a +1 bonus to spell attack rolls. In addition, you ignore half cover when making a spell attack. Radiance is in the form of an exquisite golden hand mirror.\"+\r\n\t\"\\n   While surrounded by darkness, it sheds dim light in a 5-foot radius. A creature that is attuned to Radiance can use a bonus action while holding the mirror to cast the enhance ability spell, choosing itself and no other creature as the spell's target. Once this property of the wand is used, it can't be used again until the next dawn.\",\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Radiance (Enhance Ability)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn, self only\",\r\n\t\tspells : [\"enhance ability\"],\r\n\t\tselection : [\"enhance ability\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"enhance ability\" : {\r\n\t\t\tdescription : \"I gain adv. on checks with 1 ability score; choosing Str, Dex, or Con gives secondary benefits\",\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\trange : \"Self\",\r\n\t\t\tchanges : \"Using Radiance, I can cast Enhance Ability once per dawn as a bonus action instead of an action, but only on myself.\"\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t]\r\n\t}\r\n};\r\nMagicItemsList[\"serpent scale armor\"] = {\r\n\tname : \"Serpent Scale Armor\",\r\n\tsource : [[\"CM\", 98]],\r\n\ttype : \"armor (scale mail)\",\r\n\trarity : \"uncommon\",\r\n\tattunement : false,\r\n\tdescription : \"This suit of magical scale mail is made from shimmering scales. Unlike normal scale mail, it does not impose disadvantage on my Dexterity (Stealth) checks and allows me to apply my full Dexterity modifier instead of the normal maximum of +2 for Medium armor.\",\r\n\tdescriptionFull : \"This suit of magic armor is made from shimmering scales. While wearing it, you can apply your full Dexterity modifier (instead of a maximum of +2) when determining your Armor Class. In addition, this armor does not impose disadvantage on your Dexterity (Stealth) checks.\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /serpent scale/i,\r\n\t\tname : \"Serpent Scale Armor\",\r\n\t\tsource : [[\"CM\", 98]],\r\n\t\ttype : \"medium\",\r\n\t\tac : 14,\r\n\t\tweight : 45,\r\n\t\tdex : 100,\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"serpent's fang\"] = {\r\n\tname : \"Serpent's Fang\",\r\n\tsource : [[\"CM\", 98]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"rare\",\r\n\tattunement : false,\r\n\tdescription : \"This single-edged magic sword is made from the scrimshawed fang of a giant serpent. Its hilt changes shape to adjust to the grasp of any creature that picks it up. The weapon deals an extra 1d10 poison damage to any target it hits.\",\r\n\tdescriptionFull : \"This single-edged magic sword is made from the scrimshawed fang of a giant serpent. Its hilt changes shape to adjust to the grasp of any creature that picks it up. The weapon deals an extra 1d10 poison damage to any target it hits.\",\r\n\tweight : 2,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /^(?=.*serpent)(?=.*fang).*$/i,\r\n\t\tname : \"Serpent's Fang\",\r\n\t\tsource : [[\"CM\", 98]],\r\n\t\tdescription : \"Versatile (d10); +1d10 poison damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nif (MagicItemsList[\"alchemy jug\"]) {\r\n\t// Make the default into a choice (if not done so already)\r\n\tif (!MagicItemsList[\"alchemy jug\"].choices) {\r\n\t\tMagicItemsList[\"alchemy jug\"].source = [[\"D\", 150], [\"CM\", 144]];\r\n\t\tMagicItemsList[\"alchemy jug\"].allowDuplicates = true;\r\n\t\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Regular (acid and poison)\", {\r\n\t\t\tname : \"Alchemy Jug (regular)\",\r\n\t\t\tsource : [[\"D\", 150]],\r\n\t\t\tdescription : MagicItemsList[\"alchemy jug\"].description,\r\n\t\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong,\r\n\t\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull\r\n\t\t}, true);\r\n\t};\r\n\t// Add the blue and orange jugs as choices\r\n\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Blue (hot tea)\", {\r\n\t\tname : \"Alchemy Jug (Blue)\",\r\n\t\tsource : [[\"CM\", 144]],\r\n\t\tdescription : MagicItemsList[\"alchemy jug\"].description.replace(\"acid (8 fl oz), basic poison (1/2 fl oz)\", \"boiling hot tea (1 qt)\"),\r\n\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong.replace(\"acid (8 fl. oz.), basic poison (1/2 fl. oz.)\", \"boiling hot tea (1 quart)\"),\r\n\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull.replace(/\\n8 ounces[\\s\\S]+/, \r\n\t\t\t\"\\n4 gallons  \\tBeer\\t\\t2 gallons  \\tVinegar\"+\r\n\t\t\t\"\\n1 quart   \\tBoiling hot tea\\t8 gallons  \\tWater, fresh\"+\r\n\t\t\t\"\\n1 gallon    \\tHoney\\t\\t12 gallons\\tWater, salt\"+\r\n\t\t\t\"\\n2 gallons \\tMayonnaise\\t1 gallon    \\tWine\"+\r\n\t\t\t\"\\n1 quart   \\tOil\"\r\n\t\t)\r\n\t});\r\n\tAddFeatureChoice(MagicItemsList[\"alchemy jug\"], false, \"Orange (soy sauce)\", {\r\n\t\tname : \"Alchemy Jug (Orange)\",\r\n\t\tsource : [[\"CM\", 144]],\r\n\t\tdescription : MagicItemsList[\"alchemy jug\"].description.replace(\"acid (8 fl oz), basic poison (1/2 fl oz)\", \"soy sauce (1 gal)\"),\r\n\t\tdescriptionLong : MagicItemsList[\"alchemy jug\"].descriptionLong.replace(\"acid (8 fl. oz.), basic poison (1/2 fl. oz.)\", \"soy sauce (1 gallon)\"),\r\n\t\tdescriptionFull : MagicItemsList[\"alchemy jug\"].descriptionFull.replace(/\\n8 ounces[\\s\\S]+/, \r\n\t\t\t\"\\n4 gallons  \\tBeer\\t\\t2 gallons  \\tVinegar\"+\r\n\t\t\t\"\\n1 gallon    \\tHoney\\t\\t8 gallons  \\tWater, fresh\"+\r\n\t\t\t\"\\n2 gallons \\tMayonnaise\\t12 gallons\\tWater, salt\"+\r\n\t\t\t\"\\n1 quart   \\tOil\\t\\t1 gallon    \\tWine\"+\r\n\t\t\t\"\\n1 gallon    \\tSoy sauce\"\r\n\t\t)\r\n\t});\r\n};\r\nMagicItemsList[\"gloves of soul catching\"] = {\r\n\tname : \"Gloves of Soul Catching\",\r\n\tsource : [[\"CM\", 169]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\t\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"My Constitution increases to 20 while wearing these gloves. After hitting with an unarmed strike while wearing these gloves, I can deal an extra 2d10 force damage to target and regain an equal amount of HP. Alternatively, instead of regaining hit points in this way, you can choose to gain advantage on one attack roll, ability check, or saving throw you make before the end of your next turn.\",\r\n\tdescriptionFull : \"Your Constitution score is 20 while you wear these gloves. This property of the gloves has no effect on you if your Constitution is already 20 or higher.\"+\r\n\t\"\\n   After making a successful unarmed strike while wearing these gloves, you can use the gloves to deal an extra 2d10 force damage to the target, and you regain a number of hit points equal to the force damage dealt. Alternatively, instead of regaining hit points in this way, you can choose to gain advantage on one attack roll, ability check, or saving throw you make before the end of your next turn.\",\r\n\tscoresOverride : [0, 0, 20, 0, 0, 0],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*gloves)(?=.*soul)(?=.*catching).*$/i,\r\n\t\tname : \"Gloves of Soul Catching\",\r\n\t\tsource : [[\"CM\", 169]],\r\n\t\tdescription : \"+2d10 force damage\",\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nMagicItemsList[\"watchful helm\"] = {\r\n\tname : \"Watchful Helm\",\r\n\tsource : [[\"CM\", 183]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\t\r\n\tattunement : true,\r\n\tdescription : \"While I wear this helm, I gain a +1 bonus to AC, remain aware of my surroundings even while asleep, and have advantage on Wisdom (Perception) checks that rely on sight. As a bonus action once per dawn, I can use it to cast See Invisibility.\",\r\n\tdescriptionFull : \"While you wear this helm, you gain a +1 bonus to AC and remain aware of your surroundings even while you're asleep, and you have advantage on Wisdom (Perception) checks that rely on sight.\"+\r\n\t\"\\n   As a bonus action, you can cast the see invisibility spell from the helm. Once this property of the helm is used, it can't be used again until the next dawn.\",\r\n\tweight : 1,\r\n\textraAC : [{name : \"Watchful Helm\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Watchful Helm (See Invisibility)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tvision : [[\"Adv. on Perception checks that rely on sight\", 0]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"see invisibility\"],\r\n\t\tselection : [\"see invisibility\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"see invisibility\" : {\r\n\t\t\ttime : \"1 bns\",\r\n\t\t\tchanges : \"Using the Watchful Helm, I can cast See Invisibility once per dawn as a bonus action instead of an action.\"\r\n\t\t}\r\n\t}\r\n};\r\nMagicItemsList[\"staff of fate\"] = {\r\n\tname : \"Staff of Fate\",\r\n\tsource : [[\"CM\", 183]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This +3 crystal quarterstaff has 6 charges. If I use its last charge, I roll a d20. On a 10+ it regains 1d6 charges, but on a 9 or less it becomes nonmagical. As a bonus action, I can expend 1 charge to give myself or a creature I can see a d4 that can be added to a check, save, attack, or damage roll before my next turn starts.\",\r\n\tdescriptionFull : \"This transparent crystal staff can be wielded as a magic quarterstaff that grants a +3 bonus to attack and damage rolls made with it.\"+\r\n\t\"\\n   \" + toUni(\"Altered Outcome\") + \". The staff has 6 charges. As a bonus action, you can expend 1 of the staff's charges to give yourself or one other creature that you can see a d4. The recipient can roll this d4 and add the number rolled to one ability check, attack roll, damage roll, or saving throw it makes before the start of your next turn. If this extra die is not used before then, it is lost.\"+\r\n\t\"\\n   If you expend the staff's last charge, roll a d20. On a roll of 9 or lower, the staff becomes a nonmagical quarterstaff that breaks the first time it scores a hit and deals damage. On a roll of 10 or higher, the staff regains 1d6 of its expended charges.\",\r\n\tweight : 4,\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Staff of Fate (Alter Outcome)\",\r\n\t\tusages : 6,\r\n\t\trecovery : \"Special\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /\\bstaff of fate\\b/i,\r\n\t\tname : \"Staff of Fate\",\r\n\t\tsource : [[\"CM\", 183]],\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n};\r\nvar CM_NetherScrollOfAzumar = \"After 30 days of studying 8 h/day, I make a DC 25 Int (Arcana) check. If failed, I take 16d10 psychic damage and start anew. On a success, I gain +2 Int to a max of 22, I gain advantage on saves against spells and magical effects, and a stone golem appears within 60 ft that acts as ally. If I die, the golem turns to dust.\";\r\nMagicItemsList[\"nether scroll of azumar\"] = {\r\n\tname : \"Nether Scroll of Azumar\",\r\n\tsource : [[\"CM\", 210]],\r\n\ttype : \"scroll\",\r\n\trarity : \"legendary\",\r\n\tstoryItemAL : true,\r\n\tchoicesNotInMenu : true,\r\n\tdescription : CM_NetherScrollOfAzumar,\r\n\tdescriptionFull : \"Unlike most scrolls, a Nether Scroll of Azumar is not a consumable magic item. It takes 30 days of concentrated study\\u2014at least 8 hours per day\\u2014to attempt to understand this scroll. After completing this study, you must make a DC 25 Intelligence (Arcana) check. If this check fails, you take 16d10 psychic damage, and you can attempt the check again after another 30 days of concentrated study.\"+\r\n\t\"\\n   When you succeed on the check, you gain the following benefits:\"+\r\n\t\"\\n   \\u2022 Your Intelligence score increases by 2, to a maximum of 22. Once you gain this benefit, you can't use this scroll to increase your Intelligence again.\"+\r\n\t\"\\n   \\u2022 You gain advantage on saving throws against spells and other magical effects.\"+\r\n\t\"\\n\\n   When you gain the scroll's benefits, a stone golem magically appears in an unoccupied space within 60 feet of you and acts as your ally. If you die, the golem turns to dust.\",\r\n\tchoices : [\"Not Read\", \"Read\"],\r\n\t\"not read\" : {\r\n\t\tdescription : CM_NetherScrollOfAzumar\r\n\t},\r\n\t\"read\" : { // contains contributions by Nod_Hero\r\n\t\tdescription : CM_NetherScrollOfAzumar,\r\n\t\teval : function() {\r\n\t\t\tvar src = \"Nether Scroll of Azumar\";\r\n\t\t\tMagicItemsList[\"manual of bodily health\"].applyStatBonus(src, \"Intelligence\", 2);\r\n\t\t\tSetProf(\"savetxt\", true, { adv_vs : [\"magic\"] }, src);\r\n\t\t},\r\n\t\tcreaturesAdd : [[\"Stone Golem\", \"stop\"]]\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20210518_VRGtR.js",
    "content": "var iFileName = \"pub_20210518_VRGtR.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all the player-material from Van Richten's Guide to Ravenloft to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.VRGtR = {\r\n\tname : \"Van Richten's Guide to Ravenloft\",\r\n\tabbreviation : \"VRGtR\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Ravenloft\",\r\n\turl : \"https://dnd.wizards.com/products/van-richtens-guide-ravenloft\",\r\n\tdate : \"2021/05/18\"\r\n};\r\n\r\n// Races\r\nRaceList[\"dhampir\"] = {\r\n\tregExpSearch : /dhampir/i,\r\n\tname : \"Dhampir\",\r\n\tsource : [[\"VRGtR\", 17]],\r\n\tplural : \"Dhampirs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Dhampir\" + (typePF ? \"\\n \" : \"\\t\") +\r\n\t\"\\u2022 Deathless Nature: I don't need to breathe.\" +\r\n\t\"\\n \\u2022 Spider Climb: Climbing speed equal to walking speed. At 3rd level, I can move up, down, and across vertical surfaces and upside down along ceilings, while leaving my hands free.\" +\r\n\t\"\\n \\u2022 Vampiric Bite: Uses Constitution and has adv. on the attack roll if I'm at or below half HP. My Proficiency Bonus per long rest, when I hit a creature other than a construct or undead, I can empower myself. I either regain HP or gain a bonus on my next ability check or attack roll. The bonus is equal to the piercing damage dealt.\",\r\n\tfeatures : {\r\n\t\t\"spider climb\" : { // So it doesn't interfere with inherited speeds by useFromPreviousRace\r\n\t\t\tname : \"Spider Climb\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t}\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*vampiric)(?=.*bite).*$/i,\r\n\t\tname : \"Vampiric Bite\",\r\n\t\tsource : [[\"VRGtR\", 17]],\r\n\t\tability : 3,\r\n\t\ttype : \"Simple\",\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Adv. while at or below half HP; Can empower myself on hit\",\r\n\t\tisAlwaysProf : true,\r\n\t\tabilitytodamage : true,\r\n\t\tmonkweapon : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Vampiric Bite\",\r\n\t\tadditional : \"empower myself\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Dhampir lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"prefix\" // e.g. \"Hill Dwarf Dhampir\"\r\n\t}\r\n};\r\nRaceList[\"hexblood\"] = {\r\n\tregExpSearch : /hexblood/i,\r\n\tname : \"Hexblood\",\r\n\tsource : [[\"VRGtR\", 18]],\r\n\tplural : \"Hexbloods\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Hexblood\" + (typePF ? \"\\n \" : \"\\t\") +\r\n\t\"\\u2022 Fey: My creature type is fey, rather than humanoid.\" +\r\n\t\"\\n \\u2022 Eerie Token: As a bonus action once per long rest, I can harmlessly remove a lock of my hair, one of my nails or teeth and imbue this token with magic until I finish a long rest. While the token is imbued in this way, I can telepathically speak to a creature holding it or see and hear around it. See the Notes page for more information.\" +\r\n\t\"\\n \\u2022 Hex Magic: I known Disguise Self and Hex. I can cast each spell once per long rest without using a spell slot, or by using a spell slot as normal.\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hexblood's Eerie Token\",\r\n\t\tnote : [\"As a bonus action, I can harmlessly remove a lock of my hair, one of my nails, or one of my teeth. This token is imbued with magic until I finish a long rest. While the token is imbued in this way, I can take these actions:\"+\r\n\t\t\"\\n\\u2022 Telepathic Message\",\r\n\t\t\"As an action, I can send a telepathic message to the creature holding or carrying the token, as long as I'm within 10 miles of it. The message can contain up to twenty-five words.\"+\r\n\t\t\"\\n\\u2022 Remote Viewing\",\r\n\t\t\"If I'm within 10 miles of the token, I can enter a trance as an action. The trance lasts for 1 minute, but it ends early if I dismiss it (no action required) or I'm incapacitated. During this trance, I can see and hear from the token as if I were located where it is. While I'm using my senses at the token's location, I'm blinded and deafened in regard to my own surroundings. When the trance ends, the token is harmlessly destroyed.\",\r\n\t\t\"\\nOnce I create a token using this feature, I can't do so again until I finish a long rest, at which point my missing part regrows.\"]\r\n\t}],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\taction : [[\"bonus action\", \"Eerie Token (create)\"], [\"action\", \"Eerie Token (use)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Eerie Token\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"hex magic\" : {\r\n\t\t\tname : \"Hex Magic\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Hex Magic\",\r\n\t\t\t\tspells : [\"disguise self\", \"hex\"],\r\n\t\t\t\tselection : [\"disguise self\", \"hex\"],\r\n\t\t\t\tfirstCol : 'oncelr+markedbox',\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tallowUpCasting : true,\r\n\t\t\t}],\r\n\t\t}\r\n\t},\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Hexblood lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"prefix\" // e.g. \"Tiefling Hexblood\"\r\n\t}\r\n};\r\nRaceList[\"reborn\"] = {\r\n\tregExpSearch : /reborn/i,\r\n\tname : \"Reborn\",\r\n\tsource : [[\"VRGtR\", 21]],\r\n\tplural : \"Reborns\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Reborn\" +\r\n\t\"\\n \\u2022 Deathless Nature: I don't need to sleep, eat, drink, or breathe. I have adv. on saves vs. disease, poison, and death saves. I have resistance to poison damage. Magic can't put me to sleep and I can finish a long rest in 4 hours if I spend it in an inactive, motionless state.\" +\r\n\t\"\\n \\u2022 Knowledge from a Past Life: When I make an ability check that uses a skill, I can add +1d6 to the roll after seeing the d20 result. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"disease\", \"poison\", \"death saves\"],\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Knowledge from a Past Life\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tuseFromPreviousRace : {\r\n\t\tmessage : \"If you replace a race with the Reborn lineage, you can keep the following elements of that race:\"+\r\n\t\tdesc([\"its size,\",\r\n\t\t\"any skill proficiencies you gained from it,\",\r\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\r\n\t\t\"any languages it knows.\"], \"\\n   \\u2022 \")+\r\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\r\n\t\tdesc([\"are size Medium or Small (your choice),\",\r\n\t\t\"gain proficiency in two skills of your choice, and\",\r\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\r\n\t\tdefaultTraits : {\r\n\t\t\tsize : [3, 4],\r\n\t\t\tskillstxt : \"Choose any two skills\"\r\n\t\t},\r\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\r\n\t\tupdateName : \"suffix\" // e.g. \"Reborn Human\"\r\n\t}\r\n};\r\n\r\n// Subclasses\r\nAddSubClass(\"bard\", \"college of spirits\",{\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*spirits?).*$/i,\r\n\tsubname : \"College of Spirits\",\r\n\tsubnameShort: \"Spirits\",\r\n\tsource : [[\"VRGtR\", 28]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Guiding Whispers\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Guidance cantrip and can cast it with a range of 60 ft\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guiding Whispers\",\r\n\t\t\t\tspells : [\"guidance\"],\r\n\t\t\t\tselection : [\"guidance\"],\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"guidance\" : {\r\n\t\t\t\t\trange : \"60 ft\",\r\n\t\t\t\t\tchanges : \"I can cast Guidance with a range of 60 ft.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Spiritual Focus\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [only for bard spells]\" + desc([\r\n\t\t\t\t\"I can use a candle, crystal ball, skull, spirit board, or tarokka deck as a spellcasting focus\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Tales from Beyond\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend a bardic inspiration die to roll on the Spirit Tales table\",\r\n\t\t\t\t\"I retain the rolled tale in my mind until I bestow its effects or finish a short or long rest\",\r\n\t\t\t\t\"I can only retain one tale at a time; I need to hold a spiritual focus to roll on the table\",\r\n\t\t\t\t\"As an action, I can choose a creature I see in 30 ft or myself to bestow the tale's effect\",\r\n\t\t\t\t\"The tales use my spell save DC; See the Notes page for the Spirit Tales table\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (roll on table)\"], [\"action\", \" (use effect)\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Spirit Tales Table\",\r\n\t\t\t\tnote : desc([\r\n\t\t\t\t\t\"As a bonus action while I'm holding my spiritual focus, I can reach out to spirits who tell their tales through me. I expend one use of my Bardic Inspiration and roll on the table below using my Bardic Inspiration die to determine the tale. I retain the tale in mind until I bestow the tale's effect or finish a short or long rest.\",\r\n\t\t\t\t\t\"I can retain only one of these tales in mind at a time, and rolling on the table immediately ends the effect of the previous tale.\",\r\n\t\t\t\t\t\"As an action, I can choose myself or one creature I can see within 30 ft to be the target of the tale's effect. If the tale requires a saving throw, the DC equals my spell save DC.\",\r\n\t\t\t\t\t\"\\nRoll \" + (typePF ? \"\" : \" \") + \"Tale\"\r\n\t\t\t\t])+\r\n\t\t\t\t desc([\r\n\t\t\t\t\t\"  1    Tale of the Clever Animal: For the next 10 minutes, whenever the target makes an Intelligence, a Wisdom, or a Charisma check, the target can roll my Bardic Inspiration die immediately after rolling the d20 and add it to the check.\",\r\n\t\t\t\t\t\"  2    Tale of the Renowned Duelist: I make a melee spell attack against the target. On a hit, the target takes force damage equal to two rolls of my Bardic Inspiration die + my Charisma modifier.\",\r\n\t\t\t\t\t\"  3    Tale of the Beloved Friends: The target and another creature of its choice it can see within 5 ft of it gains temporary hit points equal to a roll of my Bardic Inspiration die + my Charisma modifier.\",\r\n\t\t\t\t\t\"  4    Tale of the Runaway: The target can immediately use its reaction to teleport up to 30 ft to an unoccupied space it can see. When the target teleports, it can choose a number of creatures it can see within 30 ft of it up to my Charisma modifier (minimum of 0) to immediately use the same reaction.\",\r\n\t\t\t\t\t\"  5    Tale of the Avenger: For 1 minute, any creature that hits the target with a melee attack takes force damage equal to a roll of my Bardic Inspiration die.\",\r\n\t\t\t\t\t\"  6    Tale of the Traveler: The target gains temporary hit points equal to a roll of my Bardic Inspiration die + my bard level. While it has these temporary hit points, the target's walking speed increases by 10 ft and it gains a +1 bonus to its AC.\",\r\n\t\t\t\t\t\"  7    Tale of the Beguiler: The target must succeed on a Wisdom saving throw or take psychic damage equal to two rolls of my Bardic Inspiration die, and the target is incapacitated until the end of its next turn.\",\r\n\t\t\t\t\t\"  8    Tale of the Phantom: The target becomes invisible until the end of its next turn or until it hits a creature with an attack. If the target hits a creature with an attack during this invisibility, the creature it hits takes necrotic damage equal to a roll of my Bardic Inspiration die and is frightened of the target until the end of the frightened creature's next turn.\",\r\n\t\t\t\t\t\"  9    Tale of the Brute: Each creature of the target's choice it can see within 30 ft of it must make a Strength saving throw. On a failed save, a creature takes thunder damage equal to three rolls of my Bardic Inspiration die and is knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\r\n\t\t\t\t\t\" 10    Tale of the Dragon: The target spews fire from the mouth in a 30-ft cone. Each creature in that area must make a Dexterity saving throw, taking fire damage equal to four rolls of my Bardic Inspiration die on a failed save, or half as much damage on a successful one.\",\r\n\t\t\t\t\t\" 11    Tale of the Angel: The target regains hit points equal to two rolls of my Bardic Inspiration die + my Charisma modifier, and I end one condition from the following list affecting the target: blinded, deafened, paralyzed, petrified, or poisoned.\",\r\n\t\t\t\t\t\" 12    Tale of the Mind-Bender: I evoke an incomprehensible fable from an otherworldly being. The target must succeed on an Intelligence saving throw or take psychic damage equal to three rolls of my Bardic Inspiration die and be stunned until the end of its next turn.\"\r\n\t\t\t\t], \"\\n\")\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\tsource : [[\"VRGtR\", 28]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]] && v.thisWeapon[4].indexOf(\"bard\") !== -1) {\r\n\t\t\t\t\t\t\t// If RAW is selected, first test if this spell is eligible to use with a spellcasting focus\r\n\t\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\r\n\t\t\t\t\t\t\tvar spellObj = SpellsList[v.thisWeapon[3]];\r\n\t\t\t\t\t\t\tif (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components))) return;\r\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\r\n\t\t\t\t\t\t\tvar d6Regex = /(\\d+)d6/;\r\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd6') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd6', 'Cd6');\r\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd6') != -1) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd6', 'Qd6');\r\n\t\t\t\t\t\t\t} else if (d6Regex.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d6Regex, Number(fields.Damage_Die.replace(d6Regex, '$1')) + 1 + 'd6');\r\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d6 dmg\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d6';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.',\r\n\t\t\t\t\t1\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t// Do not process if a psionic, not a bard spell, or, if RAW is selected, not eligible to use with a spellcasting focus\r\n\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"bard\" || (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components)))) return;\r\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d6\", true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d6\", true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tchoices : [\"RAW: only +1d6 for spells with non-costly material components\", \"Allow +1d6 for any bard spell\"],\r\n\t\t\t\"raw: only +1d6 for spells with non-costly material components\" : {\r\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If I use a spiritual focus to cast a bard spell, I can add 1d6 to one damage or healing roll\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"allow +1d6 for any bard spell\" : {\r\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tdefaultChoice : \"allow +1d6 for any bard spell\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Spirit Session\",\r\n\t\t\tsource : [[\"VRGtR\", 29]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Using my spiritual focus, I can conduct a hour-long ritual to channel spirit during a rest\",\r\n\t\t\t\t\"The number of willing participants, me included, can be up to my Proficiency Bonus\",\r\n\t\t\t\t\"At the end, I learn a divination or necromancy spell of my choice until I start a long rest\",\r\n\t\t\t\t\"The spell can't be higher level than the number of participants and of a level I can cast\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Session\",\r\n\t\t\t\tschool : [\"Div\", \"Necro\"],\r\n\t\t\t\tfirstCol : \"SS\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Mystical Connection\",\r\n\t\t\tsource : [[\"VRGtR\", 29]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"For Tales from Beyond, I now roll my bardic inspiration die twice and \" + (typePF ? \"choose\" : \"select\") + \" which to use\",\r\n\t\t\t\t\"If I roll the same number on both dice, I can instead choose any effect on the table\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the undead\",{\r\n\tregExpSearch : /^(?=.*undead)(?=.*warlock).*$/i,\r\n\tsubname : \"the Undead\",\r\n\tsource : [[\"VRGtR\", 30]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"blindness/deafness\", \"phantasmal force\", \"phantom steed\", \"speak with dead\", \"death ward\", \"greater invisibility\", \"antilife shell\", \"cloudkill\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Form of Dread\",\r\n\t\t\tsource : [[\"VRGtR\", 30]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can transform for 1 minute and gain the following benefits:\",\r\n\t\t\t\t\" \\u2022 I gain temporary hit points equal to 1d10 + my warlock level\",\r\n\t\t\t\t\" \\u2022 I am immune to the frightened condition\",\r\n\t\t\t\t\" \\u2022 Once per turns when I hit an attack, I can force the target to make a Wis save\",\r\n\t\t\t\t\"   If the target fails this save, it is frightened of me until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn \"1d10+\" + n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { immune : [\"frightened (Form of Dread)\"] }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Grave Touched\",\r\n\t\t\tsource : [[\"VRGtR\", 30]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to eat, drink, or breathe\",\r\n\t\t\t\t\"Once per turn if I damage a creature with an attack, I can change its type to necrotic\",\r\n\t\t\t\t\"While I'm in my Form of Dread, I can roll one extra damage die for this necrotic damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Necrotic Husk\",\r\n\t\t\tsource : [[\"VRGtR\", 31]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to necrotic damage, or immunity while I'm in my Form of Dread\",\r\n\t\t\t\t\"As a reaction when reduced to 0 HP, I can drop to 1 HP instead and erupt with energy\",\r\n\t\t\t\t\"Each creature of my choice within 30 ft takes 2d10 + my warlock level necrotic damage\",\r\n\t\t\t\t\"After this, I gain 1 level of exhaustion and must complete 1d4 long rests to do so again\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"2d10+\" + n + \" damage, 1\\xD7 per 1d4 long rests\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdmgres : [[\"Necrotic\"]],\r\n\t\t\tsavetxt : { immune : [\"necrotic (Form of Dread)\"] },\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Necrotic Husk (revive)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"1d4 LR\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spirit Projection\",\r\n\t\t\tsource : [[\"VRGtR\", 31]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can project my spirit from my body, leaving it suspended and unconscious\",\r\n\t\t\t\t\"This lasts 1 hour or until my concentration is broken; Damage and effects affect both\",\r\n\t\t\t\t\"When it ends, I can have my spirit return to my body or my body teleport to my spirit\",\r\n\t\t\t\t\"My spirit has my abilities, but no gear; While projecting I gain the following benefits:\",\r\n\t\t\t\t\" \\u2022 My spirit and body gain resistance to bludgeoning, piercing, and slashing damage\",\r\n\t\t\t\t\" \\u2022 My conjuration/necromancy spells need no verbal, somatic, non-costly material comp.\",\r\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and can hover\",\r\n\t\t\t\t\" \\u2022 Move through creatures/objects as difficult terrain; 1d10 force damage if end turn in\",\r\n\t\t\t\t\" \\u2022 While in my Form of Dread, once per turns when I deal necrotic damage, I can heal\",\r\n\t\t\t\t\"   I regain hit points equal to half the amount of necrotic damage dealt\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds and Background Features\r\nBackgroundFeatureList[\"inheritor\"] = {\r\n\tdescription : \"I'm the clear inheritor of a famed legacy, my ancestor or mentor. I've inherited a token that marks me as their inheritor. Revealing my legacy lets me swiftly learn the local opinion of my predecessor, if they heard of it. As rumors spread swiftly, locals will consider me either a hero or a threat. Heroes are welcomed, while threats are encouraged to leave.\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"mist wanderer\"] = {\r\n\tdescription : \"The Mists whisper to me and guide me through. I immediately know if an object I'm touching is a Mist talisman, a nonmagical object that resonates with the domain where it originated, allowing the creature holding it to find a path to that domain. I recognize where the talisman originates from if I have been to its domain of origin.\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"spirit medium\"] = {\r\n\tdescription : \"A fateful experience made me believe I'm aligned with spirits and can serve as a conduit for their insights and goals. I have advantage on Arcana and Religion check to remember or research information about spirits and the afterlife. I have and am proficient with a device I made for communing with otherworldly forces (e.g. a spirit-board or tarokka deck).\",\r\n\tsource : [[\"VRGtR\", 31], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"trauma survivor\"] = {\r\n\tdescription : \"I faced something specifically traumatic and survived. Now people view me as an expert on it and can help others make it through. I'm aware of nonmagical recovery techniques, common resources, and misinformation. I know how to speak to sympathetic doctors, clergy, and leaders to can convince them to shelter one other than myself up to one month.\",\r\n\tsource : [[\"VRGtR\", 32], [\"ALbackground\", 0]]\r\n};\r\nBackgroundFeatureList[\"traveler\"] = {\r\n\tdescription : \"I come from another place that others couldn't begin to understand. I can find a spot to hide, rest, or recuperate among sympathetic trading caravans, itinerant families, or displaced groups, so long as I present no visible danger. Such groups will hide me, but won't risk their lives for me. I can tell if an object I can see and touch is from my homeland.\",\r\n\tsource : [[\"VRGtR\", 32], [\"ALbackground\", 0]]\r\n};\r\nBackgroundList[\"haunted one\"] = { // Reprint from Curse of Strahd, but re-define because of new \"horror\" background traits options\r\n\tregExpSearch : /haunted.one/i,\r\n\tname : \"Haunted One\",\r\n\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Arcana, Investigation, Religion, and Survival\",\r\n\tlanguageProfs : [2],\r\n\tgold : 0.1,\r\n\tequipleft : [\r\n\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t[\"Crowbar\", \"\", 5],\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Wooden Stakes\", 3, 1],\r\n\t\t[\"Holy symbol\", \"\", 1],\r\n\t\t[\"Holy water, flasks of\", \"\", 1],\r\n\t\t[\"Manacles\", \"\", 6],\r\n\t\t[\"Steel Mirror\", \"\", 0.5],\r\n\t\t[\"Oil, flasks of\", \"\", 1],\r\n\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t[\"Torch\", 3, 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Trinket of special significance\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Heart of Darkness\",\r\n\ttrait : [\r\n\t\t\"I don't run from evil. Evil runs from me.\",\r\n\t\t\"I like to read and memorize poetry. It keeps me calm and brings me fleeting moments of happiness.\",\r\n\t\t\"I spend money freely and live life to the fullest, knowing that tomorrow I might die.\",\r\n\t\t\"I live for the thrill of the hunt.\",\r\n\t\t\"I don't talk about the thing that torments me. I'd rather not burden others with my curse.\",\r\n\t\t\"I expect danger around every corner.\",\r\n\t\t\"I refuse to become a victim, and I will not allow others to be victimized.\",\r\n\t\t\"I put no trust in divine beings.\",\r\n\t\t\"I had an encounter that I believe gives me a special affinity with a supernatural creature or event.\",\r\n\t\t\"A signature piece of clothing or distinct weapon serves as an emblem of who I am.\",\r\n\t\t\"I never accept that I'm out of my depth.\",\r\n\t\t\"I must know the answer to every secret. No door remains unopened in my presence.\",\r\n\t\t\"I let people underestimate me, revealing my full competency only to those close to me.\",\r\n\t\t\"I compulsively seek to collect trophies of my travels and victories.\",\r\n\t\t\"It doesn't matter if the whole world's against me. I'll always do what I think is right.\",\r\n\t\t\"I have morbid interests and a macabre aesthetic.\",\r\n\t\t\"I have a personal ritual, mantra, or relaxation method I use to deal with stress.\",\r\n\t\t\"Nothing is more important than life, and I never leave anyone in danger.\",\r\n\t\t\"I'm quick to jump to extreme solutions. Why risk a lesser option not working?\",\r\n\t\t\"I'm easily startled, but I'm not a coward.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Sacrifice\", \"Sacrifice: I try to help those in need, no matter what the personal cost. (Good)\"],\r\n\t\t[\"Desperation\", \"Desperation: I'll stop the spirits that haunt me or die trying. (Any)\"],\r\n\t\t[\"Cleansing\", \"Cleansing: I kill monsters to make the world a safer place, and to exorcise my own demons. (Good)\"],\r\n\t\t[\"Vigilante\", \"Vigilante: I have a dark calling that puts me above the law. (Chaotic)\"],\r\n\t\t[\"Preparation\", \"Preparation: I like to know my enemy's capabilities and weaknesses before rushing into battle. (Lawful)\"],\r\n\t\t[\"Destruction\", \"Destruction: I'm a monster that destroys other monsters, and anything else that gets in my way. (Evil)\"],\r\n\t\t[\"Adrenaline\", \"Adrenaline: I've experienced such strangeness that now I feel alive only in extreme situations.\"],\r\n\t\t[\"Balance\", \"Balance: I strive to counter the deeds of someone for whom I feel responsible.\"],\r\n\t\t[\"Bound\", \"Bound: I've wronged someone and must work their will to avoid their curse.\"],\r\n\t\t[\"Escape\", \"Escape: I believe there is something beyond the world I know, and I need to find it.\"],\r\n\t\t[\"Legacy\", \"Legacy: I must do something great so that I'm remembered, and my time is running out.\"],\r\n\t\t[\"Misdirection\", \"Misdirection: I work vigorously to keep others from realizing my flaws or misdeeds.\"],\r\n\t\t[\"Obsession\", \"Obsession: I've lived this way for so long that I can't imagine another way.\"],\r\n\t\t[\"Obligation\", \"Obligation: I owe it to my people, faith, family, or teacher to continue a vaunted legacy.\"],\r\n\t\t[\"Promise\", \"Promise: My life is no longer my own. I must fulfill the dream of someone who's gone.\"],\r\n\t\t[\"Revelation\", \"Revelation: I need to know what lies beyond the mysteries of death, the world, or the Mists.\"],\r\n\t\t[\"Sanctuary\", \"Sanctuary: I know the forces at work in the world and strive to create islands apart from them.\"],\r\n\t\t[\"Truth\", \"Truth: I care about the truth above all else, even if it doesn't benefit anyone.\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I keep my thoughts and discoveries in a journal. My journal is my legacy.\",\r\n\t\t\"I would sacrifice my life and my soul to protect the innocent.\",\r\n\t\t\"My torment drove away the person I love. I strive to win back the love I've lost.\",\r\n\t\t\"A terrible guilt consumes me. I hope that I can find redemption through my actions.\",\r\n\t\t\"There's evil in me, I can feel it. It must never be set free.\",\r\n\t\t\"I have a child to protect. I must make the world a safer place for him (or her).\",\r\n\t\t\"I desperately need to get back to someone or someplace, but I lost them in the Mists.\",\r\n\t\t\"Everything I do is in the service of a powerful master, one I must keep a secret from everyone.\",\r\n\t\t\"I owe much to my vanished mentor. I seek to continue their work even as I search to find them.\",\r\n\t\t\"I've seen great darkness, and I'm committed to being a light against it\\u2014the light of all lights.\",\r\n\t\t\"Someone I love has become a monster, murderer, or other threat. It's up to me to redeem them.\",\r\n\t\t\"The world has been convinced of a terrible lie. It's up to me to reveal the truth.\",\r\n\t\t\"I deeply miss someone and am quick to adopt people who remind me of them.\",\r\n\t\t\"A great evil dwells within me. I will fight against it and the world's other evils for as long as I can.\",\r\n\t\t\"I'm desperately seeking a cure to an affliction or a curse, either for someone close to me for myself.\",\r\n\t\t\"Spirits are drawn to me. I do all I can to help them find peace.\",\r\n\t\t\"I use my cunning mind to solve mysteries and find justice for those who've been wronged.\",\r\n\t\t\"I lost someone I care about, but I still see them in guilty visions, recurring dreams, or as a spirit.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I have certain rituals that I must follow every day. I can never break them.\",\r\n\t\t\"I assume the worst in people.\",\r\n\t\t\"I feel no compassion for the dead. They're the lucky ones.\",\r\n\t\t\"I have an addiction.\",\r\n\t\t\"I am a purveyor of doom and gloom who lives in a world without hope.\",\r\n\t\t\"I talk to spirits that no one else can see.\",\r\n\t\t\"I believe doom follows me and that anyone who gets close to me will face a tragic end.\",\r\n\t\t\"I'm convinced something is after me, appearing in mirrors, dreams, and places where no one could.\",\r\n\t\t\"I'm especially superstitious and live life seeking to avoid bad luck, wicked spirits, or the Mists.\",\r\n\t\t\"I've done unspeakable evil and will do anything to prevent others from finding out.\",\r\n\t\t\"I am exceptionally credulous and believe any story or legend immediately.\",\r\n\t\t\"I'm a skeptic and don't believe in the power of rituals, religion, superstition, or spirits.\",\r\n\t\t\"I know my future is written and that anything I do will lead to a prophesied end.\",\r\n\t\t\"I need to find the best in everyone and everything, even when that means denying obvious malice.\",\r\n\t\t\"I've seen the evil of a type of place\\u2014like forests, cities, or graveyards\\u2014and resist going there.\",\r\n\t\t\"I'm exceptionally cautious, planning laboriously and devising countless contingencies.\",\r\n\t\t\"I have a reputation for defeating a great evil, but that's a lie and the wicked force knows.\",\r\n\t\t\"I know the ends always justify the means and am quick to make sacrifices to attain my goals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Harrowing Event\",\r\n\t\t\"Monster spared my life\",\r\n\t\t\"Born under a dark star\",\r\n\t\t\"Haunted by an apparition\",\r\n\t\t\"Dark arts in the family\",\r\n\t\t\"An oni took my sibling\",\r\n\t\t\"Memory of cured lycanthropy\",\r\n\t\t\"Raised by a hag\",\r\n\t\t\"Studied an eldritch tome\",\r\n\t\t\"Formerly possessed by a fiend\",\r\n\t\t\"Avenged a murder\"\r\n\t]\r\n};\r\n// [dupl_start] reprints from Curse of Strahd\r\nif (!SourceList.CoS) {\r\n\tPacksList.monsterhunter = {\r\n\t\tname : \"Monster hunter's pack (33 gp)\",\r\n\t\tsource : [[\"CoS\", 209], [\"VRGtR\", 34]],\r\n\t\titems : [\r\n\t\t\t[\"Chest, with:\", \"\", 25],\r\n\t\t\t[\"Crowbar\", \"\", 5],\r\n\t\t\t[\"Hammer\", \"\", 3],\r\n\t\t\t[\"Wooden stake\", 3, 1],\r\n\t\t\t[\"Amulet holy symbol\", \"\", \"\"],\r\n\t\t\t[\"Holy water, flasks of\", 1, 1],\r\n\t\t\t[\"Manacles\", \"\", 6],\r\n\t\t\t[\"Steel mirror\", \"\", 0.5],\r\n\t\t\t[\"Oil, flasks of\", 1, 1],\r\n\t\t\t[\"Tinderbox\", \"\", 1],\r\n\t\t\t[\"Torches\", 3, 1]\r\n\t\t]\r\n\t};\r\n\tBackgroundFeatureList[\"heart of darkness\"] = {\r\n\t\tdescription : \"Those who look into my eyes can see that I have faced unimaginable horror and that I am no stranger to darkness. Though they might fear me, commoners will extend me every courtesy and do their utmost to help. Unless I have shown myself to be a danger to them, they will even take up arms to fight with me, should I find myself facing an enemy alone.\",\r\n\t\tsource : [[\"CoS\", 209], [\"VRGtR\", 34], [\"ALbackground\", 0]]\r\n\t};\r\n} // dupl_end\r\nBackgroundList[\"investigator-vrgtr\"] = {\r\n\tregExpSearch : /^((?=.*investigator)(?=.*(VRGtR|Richten|Ravenloft))|private eye).*$/i,\r\n\tname : \"Investigator (VRGtR)\",\r\n\tsource : [[\"VRGtR\", 35], [\"ALbackground\", 0]],\r\n\tskillstxt : \"Choose two from Insight, Investigation, and Perception\",\r\n\ttoolProfs : [[\"Disguise kit\", 1], [\"Thieves' tools\", \"Dex\"]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Magnifying glass\", \"\", \"\"],\r\n\t\t[\"Evidence from a past case (horror trinket)\", \"\", \"\"],\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Belt Pouch (with coins)\", \"\", \"\"]\r\n\t],\r\n\tfeature : \"Official Inquiry\",\r\n\ttrait : [\r\n\t\t\"I had an encounter that I believe gives me a special affinity with a supernatural creature or event.\",\r\n\t\t\"A signature piece of clothing or distinct weapon serves as an emblem of who I am.\",\r\n\t\t\"I never accept that I'm out of my depth.\",\r\n\t\t\"I must know the answer to every secret. No door remains unopened in my presence.\",\r\n\t\t\"I let people underestimate me, revealing my full competency only to those close to me.\",\r\n\t\t\"I compulsively seek to collect trophies of my travels and victories.\",\r\n\t\t\"It doesn't matter if the whole world's against me. I'll always do what I think is right.\",\r\n\t\t\"I have morbid interests and a macabre aesthetic.\",\r\n\t\t\"I have a personal ritual, mantra, or relaxation method I use to deal with stress.\",\r\n\t\t\"Nothing is more important than life, and I never leave anyone in danger.\",\r\n\t\t\"I'm quick to jump to extreme solutions. Why risk a lesser option not working?\",\r\n\t\t\"I'm easily startled, but I'm not a coward.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Adrenaline\", \"Adrenaline: I've experienced such strangeness that now I feel alive only in extreme situations.\"],\r\n\t\t[\"Balance\", \"Balance: I strive to counter the deeds of someone for whom I feel responsible.\"],\r\n\t\t[\"Bound\", \"Bound: I've wronged someone and must work their will to avoid their curse.\"],\r\n\t\t[\"Escape\", \"Escape: I believe there is something beyond the world I know, and I need to find it.\"],\r\n\t\t[\"Legacy\", \"Legacy: I must do something great so that I'm remembered, and my time is running out.\"],\r\n\t\t[\"Misdirection\", \"Misdirection: I work vigorously to keep others from realizing my flaws or misdeeds.\"],\r\n\t\t[\"Obsession\", \"Obsession: I've lived this way for so long that I can't imagine another way.\"],\r\n\t\t[\"Obligation\", \"Obligation: I owe it to my people, faith, family, or teacher to continue a vaunted legacy.\"],\r\n\t\t[\"Promise\", \"Promise: My life is no longer my own. I must fulfill the dream of someone who's gone.\"],\r\n\t\t[\"Revelation\", \"Revelation: I need to know what lies beyond the mysteries of death, the world, or the Mists.\"],\r\n\t\t[\"Sanctuary\", \"Sanctuary: I know the forces at work in the world and strive to create islands apart from them.\"],\r\n\t\t[\"Truth\", \"Truth: I care about the truth above all else, even if it doesn't benefit anyone.\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I desperately need to get back to someone or someplace, but I lost them in the Mists.\",\r\n\t\t\"Everything I do is in the service of a powerful master, one I must keep a secret from everyone.\",\r\n\t\t\"I owe much to my vanished mentor. I seek to continue their work even as I search to find them.\",\r\n\t\t\"I've seen great darkness, and I'm committed to being a light against it\\u2014the light of all lights.\",\r\n\t\t\"Someone I love has become a monster, murderer, or other threat. It's up to me to redeem them.\",\r\n\t\t\"The world has been convinced of a terrible lie. It's up to me to reveal the truth.\",\r\n\t\t\"I deeply miss someone and am quick to adopt people who remind me of them.\",\r\n\t\t\"A great evil dwells within me. I will fight against it and the world's other evils for as long as I can.\",\r\n\t\t\"I'm desperately seeking a cure to an affliction or a curse, either for someone close to me for myself.\",\r\n\t\t\"Spirits are drawn to me. I do all I can to help them find peace.\",\r\n\t\t\"I use my cunning mind to solve mysteries and find justice for those who've been wronged.\",\r\n\t\t\"I lost someone I care about, but I still see them in guilty visions, recurring dreams, or as a spirit.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I believe doom follows me and that anyone who gets close to me will face a tragic end.\",\r\n\t\t\"I'm convinced something is after me, appearing in mirrors, dreams, and places where no one could.\",\r\n\t\t\"I'm especially superstitious and live life seeking to avoid bad luck, wicked spirits, or the Mists.\",\r\n\t\t\"I've done unspeakable evil and will do anything to prevent others from finding out.\",\r\n\t\t\"I am exceptionally credulous and believe any story or legend immediately.\",\r\n\t\t\"I'm a skeptic and don't believe in the power of rituals, religion, superstition, or spirits.\",\r\n\t\t\"I know my future is written and that anything I do will lead to a prophesied end.\",\r\n\t\t\"I need to find the best in everyone and everything, even when that means denying obvious malice.\",\r\n\t\t\"I've seen the evil of a type of place\\u2014like forests, cities, or graveyards\\u2014and resist going there.\",\r\n\t\t\"I'm exceptionally cautious, planning laboriously and devising countless contingencies.\",\r\n\t\t\"I have a reputation for defeating a great evil, but that's a lie and the wicked force knows.\",\r\n\t\t\"I know the ends always justify the means and am quick to make sacrifices to attain my goals.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Path to Mystery\",\r\n\t\t\"Proved friend's innocence\",\r\n\t\t\"My memory loss\",\r\n\t\t\"Helped spirit find peace\",\r\n\t\t\"Uncovered magical hoax\",\r\n\t\t\"Fugitive after wrongful convicion\",\r\n\t\t\"Tracking supernatural phenomena\",\r\n\t\t\"Tried to expose mysterious cabal\",\r\n\t\t\"Investigate unsolved crimes\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"official inquiry\"] = {\r\n\tdescription : \"Through a combination of fast-talking, determination, and official-looking documentation, I can gain access to a place or an individual related to a crime I'm investigating. Those who aren't involved in my investigation avoid impeding me or pass along my requests. Local law enforcement has firm opinions, viewing me as either a nuisance or one of their own.\",\r\n\tsource : [[\"VRGtR\", 35], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"harkon's bite\"] = {\r\n\tname : \"Harkon's Bite\",\r\n\tsource : [[\"VRGtR\", 137]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tdescription : \"This necklace with a dire wolf tooth gives me a +1 on checks and saves. Curse: I can't remove it once I'm attuned to it. If I don or remove the necklace, even if I'm not attuned, I'm afflicted with werewolf lycanthropy (MM 211). This lasts until the dawn after the next full moon, unless I'm still wearing the necklace at dawn.\",\r\n\tdescriptionFull : \"A dire wolf tooth dangles from this simple cord necklace. While you wear it, the necklace grants you a +1 bonus to ability checks and saving throws.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Attuning to Harkon's Bite curses you until either Harkon Lukas removes the necklace from you or you are targeted by a remove curse spell or similar magic. As long as you remain cursed, you cannot remove the necklace.\"+\r\n\t\"\\n   Upon donning or removing the necklace, whether you are attuned to it or not, you are afflicted with werewolf lycanthropy as detailed in the Monster Manual. The curse lasts until the dawn after the next full moon. If you are still wearing the necklace at this time, you are afflicted with the lycanthropy again.\",\r\n\taddMod : [\r\n\t\t{ type : \"save\", field : \"all\", mod : 1, text : \"I gain a +1 bonus on all my saving throws.\" },\r\n\t\t{ type : \"skill\", field : \"all\", mod : 1, text : \"I gain a +1 bonus on all my ability checks.\" },\r\n\t\t{ type : \"skill\", field : \"Init\", mod : 1, text : \"I gain a +1 bonus on all my ability checks.\" }\r\n\t]\r\n}\r\nvar VRGtR_nepentheFullDescription = [\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. When you hit a fiend or an undead with it, that creature takes an extra 2d10 radiant damage.\",\r\n\t\"While you hold the drawn sword, it creates an aura in a 10-foot radius around you. You and all creatures friendly to you in the aura have advantage on saving throws against spells and other magical effects. If you have 17 or more levels in the paladin class, the radius of the aura increases to 30 feet.\",\r\n\t\">>Sentience<<. Nepenthe is a sentient, neutral evil weapon with an Intelligence of 10, a Wisdom of 8, and a Charisma of 18. It has hearing and darkvision out to a range of 60 feet. It can read and understand Elvish. It can also speak Elvish, but only through the voice of its wielder, with whom the sword can communicate telepathically.\",\r\n\t\">>Personality<<. In its lifetime, the sword has beheaded thousands of criminals, not all of whom were guilty of the crimes for which they were convicted. The sword cannot distinguish the guilty from the innocent. With each beheading, it hungers for more justice and blood. The sword is corrupt and irredeemable.\"\r\n]\r\nMagicItemsList[\"nepenthe\"] = {\r\n\tname : \"Nepenthe\",\r\n\tsource : [[\"VRGtR\", 137]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"legendary\",\r\n\tmagicItemTable : \"I\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a paladin\",\r\n\tprereqeval : function (v) { return classes.known.paladin ? true : false; },\r\n\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 10-ft radius aura (30-ft if level 17 paladin) that grants me and my allies adv. on saves against spells and magical effects.\",\r\n\tdescriptionFull : VRGtR_nepentheFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(VRGtR_nepentheFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/(to|around) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /nepenthe/i,\r\n\t\tname : \"Nepenthe\",\r\n\t\tsource : [[\"VRGtR\", 137]],\r\n\t\tdescription : \"Versatile (1d10); +2d10 radiant damage vs. fiends and undead\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\tsavetxt : { adv_vs : [\"spells\", \"magical effects\"] },\r\n\tchoices : [\"Paladin level 1-16 (10-ft aura)\", \"Paladin level 17+ (30-ft aura)\"],\r\n\tselfChoosing : function () {\r\n\t\treturn !classes.known.paladin ? \"\" : classes.known.paladin.level < 17 ? \"paladin level 1-16 (10-ft aura)\" : \"paladin level 17+ (30-ft aura)\";\r\n\t},\r\n\t\"paladin level 1-16 (10-ft aura)\" : {\r\n\t\tname : \"Nepenthe\\u200A\",\r\n\t\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls made with it. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 10-ft radius aura that grants me and my allies advantage on saving throws against spells and magical effects.\"\r\n\t},\r\n\t\"paladin level 17+ (30-ft aura)\" : {\r\n\t\tname : \"Nepenthe\\u200A\\u200A\",\r\n\t\tdescription : \"This sentient holy avenger longsword gives me a +3 bonus to attack and damage rolls made with it. It does +2d10 radiant damage against fiends and undead. While holding the drawn sword, I have a 30-ft radius aura that grants me and my allies advantage on saving throws against spells and magical effects.\"\r\n\t}\r\n}\r\n\r\n/* Dark gift\r\n\r\nMagicItemsList[\"living shadow\"] = {\r\n\tname : \"Living Shadow\",\r\n\tsource : [[\"VRGtR\", 24]],\r\n\ttype : \"dark gift\",\r\n\trarity : \"\",\r\n\tdescription : \"I learn the Mage Hand cantrip and require no components to cast it. My Prof Bonus per long rest, I can gain +10 ft reach for one melee attack. The first time I roll a 1 on a d20 after a short rest, my shadow will act up. The next time I or another I can see in 30 ft rolls a d20, I roll a d4. If even: add to roll, odd: subtract.\",\r\n\tdescriptionLong : \"I learn the Mage Hand cantrip and require no components to cast it. The hand created by the spell is shadowy but is not bound to your actual shadow. My proficiency bonus per long rest, when I make a melee attack, I can gain +10 ft reach for that attack as my shadow stretches and delivers the attack. The first time after a short rest when I roll a 1 on an attack, check, or save, my shadow will act up. The next time I or a creature I can see within 30 ft rolls for an attack, check, or save, roll a d4. If the number is odd, reduce the total by that number. If it is even, increase the total by that number instead.\",\r\n\tdescriptionFull : \"The shadow you cast is animate and ever-present, even when lighting conditions would otherwise prevent it. Your shadow occasionally moves out of sync with you. Sometimes it appears to be undertaking random but mundane tasks, while at other times it acts out your darker impulses, threatening or even attacking other shadows. With effort, you can bend this shadow puppetry to your will.\\n\"+\r\n\ttoUni(\"Grasping Shadow\") + \". You learn the mage hand cantrip if you don't already know it, and require no components to cast it. The hand created by the spell is shadowy but is not bound to your actual shadow. Your spellcasting ability for this spell is Intelligence, Wisdom, or Charisma (your choice when you gain this Dark Gift).\\n\"+\r\n\ttoUni(\"Shadow Strike\") + \". When you make a melee attack roll, you can increase your reach for that attack by 10 feet. Your shadow stretches and delivers the attack as if it were you. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\\n\"+\r\n\ttoUni(\"Ominous Will\") + \". Immediately after you make an attack roll, an ability check, or a saving throw and roll a 1 on the d20, your shadow exerts a will of its own and might assist or hinder you or those around you. The next time you or a creature within 30 feet of you that you can see makes an attack roll, an ability check, or a saving throw, roll a d4. If the number is odd, reduce the total by the number rolled. If the number is even, increase the total by the number rolled. Once this effect occurs, it can't happen again until you finish a short or long rest.\",\r\n\taction : [[\"action\", \"Unsettling Presence\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Shadow Strike\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\r\n\t\trecovery : \"long rest\"\r\n\t}, {\r\n\t\tname : \"Ominous Will\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"short rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Grasping Shadow\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tchanges : \"Using Grasping Shadow from my Living Shadow dark gift, I can cast Mage Hand without any components. The hand created by the spell is shadowy but is not bound to my actual shadow.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"living shadow\"] = MagicItemsList[\"living shadow\"];\r\n\r\n*/"
  },
  {
    "path": "WotC material/pub_20210921_WBtW.js",
    "content": "var iFileName = \"pub_20210921_WBtW.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the content from The Wild Beyond the Witchlight adventure to MPMB's Character Record Sheet\r\n\r\nSourceList.WBtW = {\r\n\tname : \"The Wild Beyond the Witchlight\",\r\n\tabbreviation : \"WBtW\",\r\n\tgroup : \"Adventure Books\",\r\n\turl : \"https://dnd.wizards.com/products/wild-beyond-witchlight\",\r\n\tdate : \"2021/09/21\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"feylost\"] = {\r\n\tregExpSearch : /feylost/i,\r\n\tname : \"Feylost\",\r\n\tsource : [[\"WBtW\", 9], [\"ALbackground\", 0]],\r\n\tskills : [\"Deception\", \"Survival\"],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [[\"Elvish, Gnomish, Goblin, or Sylvan\", 1]],\r\n\tgold : 8,\r\n\tequipleft : [\r\n\t\t[\"Musical instrument of my choice\", \"\", \"\"],\r\n\t\t[\"Three Feywild trinkets\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Feywild Connection\",\r\n\ttrait : [\r\n\t\t\"I'm haunted by fey laughter that only I can hear, though I know it's just my mind playing tricks on me.\",\r\n\t\t\"Like a nomad, I can't settle down in one place for very long.\",\r\n\t\t\"Good music makes me weep like a baby.\",\r\n\t\t\"Wherever I go, I try to bring a little of the warmth and tranquility of home with me.\",\r\n\t\t\"I have never lost my childlike sense of wonder.\",\r\n\t\t\"When I have a new idea, I get wildly excited about it until I come up with another, better idea.\",\r\n\t\t\"I live by my own set of weird and wonderful rules.\",\r\n\t\t\"I can't bring myself to trust most adults.\"\r\n\t],\r\n\tideal : [\r\n\t\t[\"Friendship\", \"Friendship: I never leave a friend behind. (Good)\"],\r\n\t\t[\"Empathy\", \"Empathy: No creature should be made to suffer. (Good)\"],\r\n\t\t[\"Wanderlust\", \"Wanderlust: I prefer to take the less traveled path. (Chaotic)\"],\r\n\t\t[\"Changeability\", \"Changeability: Change is good, which is why I live by an ever-changing set of rules. (Chaotic)\"],\r\n\t\t[\"Honor\", \"Honor: A deal is a deal, and I would never break one. (Lawful)\"],\r\n\t\t[\"Rule of Three\", 'Rule of Three: Everything in the multiverse happens in threes. I see the \"rule of three\" everywhere. (Lawful)'],\r\n\t\t[\"Obsession\", \"Obsession: I won't let go of a grudge. (Evil)\"],\r\n\t\t[\"Greed\", \"Greed: I will do whatever it takes to get what I want, regardless of the harm it might cause. (Evil)\"]\r\n\t],\r\n\tbond : [\r\n\t\t\"I would never break my word.\",\r\n\t\t\"I find magic in all its forms to be compelling. The more magical a place, the more I am drawn to it.\",\r\n\t\t\"I do what I can to protect the natural world.\",\r\n\t\t\"A trusted friend is the most important thing in the multiverse to me.\",\r\n\t\t\"I can't bring myself to harm a Fey creature, either because I consider myself one or because I fear the repercussions.\",\r\n\t\t\"The Witchlight Carnival feels like home to me.\",\r\n\t\t\"I'm drawn to the Feywild and long to return there, if only for a short while.\",\r\n\t\t\"I feel indebted to Mister Witch and Mister Light for giving me a home and a purpose.\"\r\n\t],\r\n\tflaw : [\r\n\t\t\"I easily lose track of time. My poor sense of time means I'm always late.\",\r\n\t\t\"I think the whole multiverse is out to get me.\",\r\n\t\t\"I'm always operating under a tight timeline, and I'm obsessed with keeping everything on schedule.\",\r\n\t\t\"I'm a kleptomaniac who covets shiny, sparkling treasure.\",\r\n\t\t\"I'm forgetful. Sometimes I can't remember even the simplest things.\",\r\n\t\t\"I never give away anything for free and always expect something in return.\",\r\n\t\t\"I have many vices and tend to indulge them.\",\r\n\t\t\"I'm always changing my mind\\u2014well, almost always.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Fey Mark\",\r\n\t\t\"Iridescent color eyes\",\r\n\t\t\"Sweet scent\",\r\n\t\t\"Long whiskers\",\r\n\t\t\"Furry ears\",\r\n\t\t\"Skin sparkles in moonlight\",\r\n\t\t\"Flowers bloom in my presence\",\r\n\t\t\"Flowers wilt in my presence\",\r\n\t\t\"Vines for hair\",\r\n\t\t\"Brambles for hair\",\r\n\t\t\"Tail\"\r\n\t],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Feywild Visitor\",\r\n\t\tnote : [\r\n\t\t\t\"Whenever I'm sound asleep or in a deep trance during a long rest, a spirit of the Feywild might pay me a visit, if the DM wishes it. Determine the spirit's form by rolling on the table below. No harm ever comes to me as a result of such visits, which can last for minutes or hours, and I remember each visit when I wake up. Conversations that occur with a visitor can contain any number of things, from messages and insights to nonsense and red herrings, at the DM's discretion. Such conversations are always conducted in a language I can understand, even if the Feywild visitor can't speak that language normally.\\n\",\r\n\t\t\t\"d8\\tVisitor\",\r\n\t\t\t\" 1\\tAwakened creature (beast or plant that had the Awaken spell cast on it)\",\r\n\t\t\t\" 2\\tCentaur\",\r\n\t\t\t\" 3\\tDryad\",\r\n\t\t\t\" 4\\tFaerie dragon\",\r\n\t\t\t\" 5\\tPixie\",\r\n\t\t\t\" 6\\tSatyr\",\r\n\t\t\t\" 7\\tSprite\",\r\n\t\t\t\" 8\\tUnicorn\"\r\n\t\t]\r\n\t}]\r\n};\r\nBackgroundFeatureList[\"feywild connection\"] = {\r\n\tdescription : \"My mannerisms and knowledge of fey customs are recognized by natives of the Feywild, who see me as one of their own. Because of this, friendly Fey creatures are inclined to come to my aid if I am lost or need help in the Feywild.\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]]\r\n};\r\nBackgroundList[\"witchlight hand\"] = {\r\n\tregExpSearch : /^(?=.*(witchlight|carnival))(?=.*hand).*$/i,\r\n\tname : \"Witchlight Hand\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]],\r\n\tskills : [\"Performance\", \"Sleight of Hand\"],\r\n\ttoolProfs : [[\"Disguise kit or Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tgold : 8,\r\n\tequipleft : [\r\n\t\t[\"Disguise kit or Musical instrument\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"],\r\n\t\t[\"Feywild trinket\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Carnival uniform or Costume\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Carnival Fixture\",\r\n\ttrait : BackgroundList[\"feylost\"].trait,\r\n\tideal : BackgroundList[\"feylost\"].ideal,\r\n\tbond : BackgroundList[\"feylost\"].bond,\r\n\tflaw : BackgroundList[\"feylost\"].flaw,\r\n\textra : [\r\n\t\t\"Select Carnival Companion\",\r\n\t\t\"Old, cantankerous Witchlight hand\",\r\n\t\t\"Young, impressionable Witchlight hand\",\r\n\t\t\"Performer\",\r\n\t\t\"Retired performer\",\r\n\t\t\"Seasoned animal trainer\",\r\n\t\t\"Old blink dog\",\r\n\t\t\"Your hair is made of vines or brambles and grows back to normal length within 1 hour of being cut.\",\r\n\t\t\"You have a tail like that of a dog or another animal.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"carnival fixture\"] = {\r\n\tdescription : \"The Witchlight Carnival provides me with free, modest lodging and food. In addition, I may wander about the carnival and partake of its many wonders at no cost to me, provided I don't disrupt its shows or cause any other trouble.\",\r\n\tsource : [[\"WBtW\", 11], [\"ALbackground\", 0]]\r\n};\r\n\r\n// Races\r\nRaceList[\"fairy\"] = {\r\n\tregExpSearch : /fairy/i,\r\n\tname : \"Fairy\",\r\n\tsource : [[\"WBtW\", 12], [\"MotM\", 14]],\r\n\tplural : \"Fairies\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Fairy Magic\",\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"fairy magic (level 3)\" : {\r\n\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Faerie Fire\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"fairy magic (level 5)\" : {\r\n\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Enlarge/Reduce\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Fairy\"+\r\n\t\t(typePF ? \"\\n \\u2022 Fey: My \" : \" (\") + \"creature type is fey, rather than humanoid\" + (typePF ? \".\" : \")\") +\r\n\t\t\"\\n \\u2022 Flight: I have a flying speed equal to my walking speed. To use this speed, I can't be wearing medium or heavy armor.\"+\r\n\t\t\"\\n \\u2022 Fairy Magic: I know the Druidcraft cantrip. At 3rd level, I can cast Faerie Fire. At 5th level, I can cast Enlarge/Reduce. I can cast each spell without using a spell slot once per long rest, as well as by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\"\r\n};\r\nRaceList[\"harengon\"] = {\r\n\tregExpSearch : /harengon/i,\r\n\tname : \"Harengon\",\r\n\tsource : [[\"WBtW\", 13], [\"MotM\", 22]],\r\n\tplural : \"Harengons\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"I can add my proficiency bonus to my initiative rolls.\" }],\r\n\tscoresGeneric : true,\r\n\taction : [[\"reaction\", \"Lucky Footwork\"], [\"bonus action\", \"Rabbit Hop\"]],\r\n\tfeatures : {\r\n\t\t\"rabbit hop\" : {\r\n\t\t\tname : \"Rabbit Hop\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) {\r\n\t\t\t\tvar hopDistance = n * 5 + ' ft';\r\n\t\t\t\treturn What(\"Unit System\") === \"metric\" ? ConvertToMetric(hopDistance) : hopDistance;\r\n\t\t\t})\r\n\t\t}\r\n\t},\r\n\ttrait : \"Harengon\"+\r\n\t\t\"\\n \\u2022 Hare-Trigger: I can add my proficiency bonus to my initiative rolls.\"+\r\n\t\t\"\\n \\u2022 Leporine Senses: I have proficiency in the Perception skill.\"+\r\n\t\t\"\\n \\u2022 Lucky Footwork: As a reaction when I fail a Dexterity saving throw, I can add +1d4 to the result, potentially making it a success. I can't do this if I'm prone or my speed is 0.\"+\r\n\t\t\"\\n \\u2022 Rabbit Hop: As a bonus action if my speed isn't 0, I can jump 5 ft times my Prof Bonus without provoking opportunity attacks. I can do this my Prof Bonus times per long rest.\"\r\n};\r\n\r\n// Magic Items\r\nvar WBtW_Sentient_Item_toNotes = function (sDescr, skipConflict) {\r\n\tvar theR = desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|of|to|for) I\\b|\\bI to|\\bI an?\\b/ig, \"$1 me\")\r\n\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); });\r\n\treturn skipConflict ? theR : theR + \"\\n\\n\" + sentientItemConflictTxt\r\n}\r\nMagicItemsList[\"bobbing lily pad\"] = {\r\n\tname : \"Bobbing Lily Pad\",\r\n\tsource : [[\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This 10-ft diameter vehicle float on water and has a walking, flying, and swimming speed of 20 ft, and it can hover. While I ride it, it moves according to my spoken directions. The lily pad can transport up to 600 lb, but moves at only half speed when carrying more than 300 lb.\",\r\n\tdescriptionFull : \"This magic vehicle is a 10-foot-diameter leaf that floats on water. It has tendrils that propel it across land and across the water's surface (but not underwater), as well as through the air. It has a walking, flying, and swimming speed of 20 feet, and it can hover. It moves according to your spoken directions while you are riding it.\"+\r\n\t\"\\n   The lily pad can transport up to 300 pounds without hindrance. It can carry up to twice this weight, but it moves at half speed if it carries more than its normal capacity.\",\r\n}\r\nMagicItemsList[\"chromatic rose\"] = {\r\n\tname : \"Chromatic Rose\",\r\n\tsource : [[\"WBtW\", 208]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"While I hold this magic rose, it grants me resistance to a damage type determined by its color. If I would take 10+ damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 damage.\",\r\n\tdescriptionFull : \"This magic rose comes in one of five colors, as noted in the table below. While a rose is held, it gains a harmless visual effect as indicated on the table.\"+\r\n\t\"\\n   While holding the rose by its stem, you gain resistance to damage of the type associated with the rose's color. If you would take more than 10 damage of this type from a single source (after applying the resistance), the rose disintegrates, and you take no damage instead.\"+\r\n\t\"\\n   As an action, you can blow the petals from the rose to produce a 20-foot cone of acid, lightning, poisonous gas, fire, or cold, as dictated by the rose's damage type. Each creature in the cone must make a DC 15 Constitution saving throw, taking 3d10 damage of the appropriate type on a failed save, or half as much damage on a successful one. Using this property destroys the rose.\"+\r\n\ttoUni(\"\\n Color\\tVisual Effect\\tDamage Type\")+\r\n\t\"\\n Black\\tDrips acid\\tAcid\"+\r\n\t\"\\n Blue\\tCrackles with lightning\\tLightning\"+\r\n\t\"\\n Green\\tIssues green gas\\tPoison\"+\r\n\t\"\\n Red\\tWreathed in fire\\tFire\"+\r\n\t\"\\n White\\tCovered in frost\\tCold\",\r\n\tallowDuplicates : true,\r\n\taction : [[\"action\", \"Destroy Chromatic Rose for Cone\"]],\r\n\tchoices : [\"Black (acid)\", \"Blue (lightning)\", \"Green (poison)\", \"Red (fire)\", \"White (cold)\"],\r\n\tchoicesNotInMenu : true,\r\n\t\"black (acid)\" : {\r\n\t\tname : \"Black Chromatic Rose\",\r\n\t\tdescription : \"While I hold this acid dripping rose, it grants me acid resistance. If I would take more than 10 acid damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 acid damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Acid\"]\r\n\t},\r\n\t\"blue (lightning)\" : {\r\n\t\tname : \"Blue Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me lightning resistance. If I would take more than 10 lightning damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 lightning damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Lightning\"]\r\n\t},\r\n\t\"green (poison)\" : {\r\n\t\tname : \"Green Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me poison resistance. If I would take more than 10 poison damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 poison damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Poison\"]\r\n\t},\r\n\t\"red (fire)\" : {\r\n\t\tname : \"Red Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me fire resistance. If I would take more than 10 fire damage from a single source (after resistance), the rose disintegrates and I take no damage instead. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 fire damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Fire\"]\r\n\t},\r\n\t\"white (cold)\" : {\r\n\t\tname : \"White Chromatic Rose\",\r\n\t\tdescription : \"While I hold this magic rose, it grants me cold resistance. If I would take more than 10 cold damage from a single source (after resistance), the rose disintegrates and I take no damage. As an action, I can destroy it by blowing on its petals, causing a 20-ft cone that deals 3d10 cold damage, Con DC 15 halves.\",\r\n\t\tdmgres : [\"Cold\"]\r\n\t}\r\n}\r\nMagicItemsList[\"dust of corrosion\"] = {\r\n\tname : \"Dust of Corrosion\",\r\n\tsource : [[\"WBtW\", 209]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can throw this dust in the air, affecting a 10-ft cube that extends from me. Objects made of nonmagical ferrous metal in the area corrode and turn to dust. Creatures in the area (partly) made out of ferrous metal take 4d8 necrotic damage and can make a DC 13 Con save to halve this damage.\",\r\n\tdescriptionFull : \"As an action, you can throw this dust into the air, filling a 10-foot cube that extends out from you. Surfaces and objects made of nonmagical ferrous metal in the area instantly corrode and turn to dust, becoming useless and unsalvageable. Any creature in the area that is made wholly or partly out of ferrous metal must make a DC 13 Constitution saving throw, taking 4d8 necrotic damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   Found in a small packet, this dust is made from finely ground rust monster antennae. There is enough dust in each packet for one use.\",\r\n}\r\nMagicItemsList[\"eldritch staff\"] = {\r\n\tname : \"Eldritch Staff\",\r\n\tsource : [[\"WBtW\", 209]],\r\n\ttype : \"staff\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This +1 quarterstaff has 10 charges, regaining 1d6+4 charges at dawn. 5% chance it's destroyed If I use its last charge. When I hit with it, I can deal +1d8 lightning damage per charge (max 3). As a reaction when I'm damaged, I can use 3 charges to teleport 60 ft and become invisible until my next turn starts, or I attack/cast.\",\r\n\tdescriptionLong : \"This magic quarterstaff grants a +1 bonus to attack and damage rolls made with it. It has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff is destroyed in an otherwise harmless burst of eldritch energy. When I hit with it in melee, I can expend up to 3 charges, dealing +1d8 lightning damage per charge. As a reaction when I'm damaged while holding the staff, I can use 3 charges to become invisible and teleport 60 ft to an empty space I can see. I then remain invisible until the start of my next turn or until I attack, cast a spell, or deal damage.\",\r\n\tdescriptionFull : \"This staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it.\"+\r\n\t\"\\n   The staff has 10 charges and regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff is destroyed in an otherwise harmless burst of eldritch energy.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Attack\") + \". When you hit with a melee attack using the staff, you can expend up to 3 of its charges. For each charge you expend, the target takes an extra 1d8 lightning damage.\"+\r\n\t\"\\n   \" + toUni(\"Eldritch Escape\") + \". If you take damage while holding the staff, you can use your reaction to expend 3 of the staff's charges, whereupon you turn invisible and teleport yourself, along with any equipment you are wearing or carrying, up to 60 feet to an unoccupied space that you can see. You remain invisible until the start of your next turn or until you attack, cast a spell, or deal damage.\",\r\n\tweight : 4,\r\n\taction : [[\"reaction\", \" (if damaged)\"]],\r\n\tusages : 10,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6+4\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"quarterstaff\",\r\n\t\tregExpSearch : /eldritch staff/i,\r\n\t\tname : \"Eldritch Staff\",\r\n\t\tsource : [[\"WBtW\", 209]],\r\n\t\tdescription : \"Versatile (1d8); On hit, +1d8 lightning damage per charge (max 3)\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"ornithopter of flying\"] = {\r\n\tname : \"Ornithopter of Flying\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This contraption can lift up to 300 lb in the air. It has a flying speed of 30 ft and moves according to my spoken directions while I am riding it. It can't hover. If the ornithopter loses its rider while airborne, it falls and can't fly again for 1d6 + 4 days. It is 8 ft long, has a 14-ft wingspan, and weighs 25 lb.\",\r\n\tdescriptionFull : \"You can use this contraption to fly, provided your weight (including whatever you are wearing or carrying) doesn't exceed 300 pounds. The ornithopter has a flying speed of 30 feet, and it moves according to your spoken directions while you are riding it. It can't hover. If the ornithopter loses its rider while airborne, it falls and can't fly again for 1d6 + 4 days.\"+\r\n\t\"\\n   The ornithopter is 8 feet long, has a 14-foot wingspan, and weighs 25 pounds.\",\r\n\tweight : 25\r\n}\r\nMagicItemsList[\"pixie dust\"] = {\r\n\tname : \"Pixie Dust\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can sprinkle this dust on myself or another creature I can see within 5 ft. The recipient gains a flying speed of 30 ft and the ability to hover for 1 minute. If the creature is airborne when this effect ends, it falls safely to the ground, taking no damage and landing on its feet.\",\r\n\tdescriptionFull : \"As an action, you can sprinkle this dust on yourself or another creature you can see within 5 feet of you. The recipient gains a flying speed of 30 feet and the ability to hover for 1 minute. If the creature is airborne when this effect ends, it falls safely to the ground, taking no damage and landing on its feet.\"+\r\n\t\"\\n   A small packet holds enough pixie dust for one use.\",\r\n}\r\nMagicItemsList[\"potion of advantage\"] = {\r\n\tname : \"Potion of Advantage\",\r\n\tsource : [[\"WBtW\", 212]],\r\n\ttype : \"potion\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Once as an action, I can drink this potion of a sparkling, golden mist that moves and pours like water or administer it to another. The consumer of the potion gains advantage on one ability check, attack roll, or saving throw of its choice that it makes within the next hour.\",\r\n\tdescriptionFull : \"When you drink this potion, you gain advantage on one ability check, attack roll, or saving throw of your choice that you make within the next hour.\"+\r\n\t\"\\n   This potion takes the form of a sparkling, golden mist that moves and pours like water.\",\r\n}\r\n\r\nvar WBtW_Scissors_of_Shadow_Snipping_Full_Description = [\r\n\t\"As an action, you make a few snips with these iron shears and cause the shadow of a Humanoid creature you can see within 5 feet of you to detach from its source. If the creature is unwilling to give up its shadow, it can make a DC 15 Charisma saving throw, retaining its shadow on a success. Whether or not the shadow is snipped, this property of the scissors can't be used again until the next dawn.\",\r\n\t\"The detached shadow is rooted to the spot where it was snipped until you use a bonus action to cause it to behave in one of the following ways, either of which is possible only if you can see the shadow:\",\r\n\t\"\\u2022 You control the shadow's movements and can make the shadow move up to 30 feet across a solid or liquid surface, in any direction you choose (including along vertical surfaces), provided it remains within your sight at all times. The shadow is harmless and unable to be harmed, and it is invisible in darkness. It can't speak, and it doesn't require air, sleep, or nourishment.\",\r\n\t\"\\u2022 You can relinquish control of the shadow, at which point it becomes autonomous and behaves as the DM wishes. It uses the shadow stat block in the Monster Manual, but its creature type is Fey instead of Undead. A creature whose Strength is reduced to 0 by this shadow's Strength Drain attack does not die but falls unconscious instead. The creature regains consciousness and all its Strength after finishing a short or long rest.\",\r\n\t\"A creature whose shadow has detached from it is cursed. If a shadowless creature is subjected to any spell that ends a curse, or if its detached shadow is reduced to 0 hit points, the detached shadow disappears, and the creature regains its normal shadow instantly.\"\r\n];\r\nMagicItemsList[\"scissors of shadow snipping\"] = {\r\n\tname : \"Scissors of Shadow Snipping\",\r\n\tsource : [[\"WBtW\", 213]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a fey or a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; }, // no fey player races exist that don't have racial spellcasting\r\n\tdescription : \"As an action once per dawn, I can use these iron shears to detach the shadow of a Humanoid I can see within 5 ft. An involuntary target can make a DC 15 Cha save to resist. The detached shadow stays where it was snipped until I use a bonus action to control it or set it free. See Notes page.\",\r\n\tdescriptionFull : WBtW_Scissors_of_Shadow_Snipping_Full_Description.join(\"\\n   \"),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Scissors_of_Shadow_Snipping_Full_Description, true)\r\n\t}],\r\n\taction : [[\"action\", \" (snip)\"], [\"bonus action\", \" (control)\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n}\r\nvar WBtW_Snicker_Snack_Full_Description = [\r\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic vorpal sword. In addition, the weapon ignores resistance to slashing damage. When you use this weapon to attack a creature that has at least one head and roll a 20 on the attack roll, you cut off one of the creature's heads. The creature dies if it can't survive without the lost head. A creature is immune to this effect if it is immune to slashing damage, it doesn't have or need a head, it has legendary actions, or the DM decides that the creature is too big for its head to be cut off with this weapon. Such a creature instead takes an extra 6d8 slashing damage from the hit.\",\r\n\t\"While attuned to Snicker-Snack, you have proficiency with greatswords, and you can use your Charisma modifier instead of your Strength modifier for attack and damage rolls made with the weapon.\",\r\n\t\">>Sentience<<. Snicker-Snack is a sentient, chaotic good greatsword with an Intelligence of 9, a Wisdom of 14, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet. It can speak, read, and understand Common, and its voice sounds silvery and melodic. Snicker-Snack craves the destruction of evil Dragons and urges you to seek out these creatures and slay them.\",\r\n\t\">>Personality<<. Snicker-Snack has a fickle personality. It ends its attunement to you if you miss on attack rolls with the weapon three times in a row. Each time you finish a long rest after that happens, you can attempt to regain the sword's trust by making a contested Charisma check against Snicker-Snack. If you win the contest, your attunement to the weapon is instantly restored. Your attunement to the weapon can't be restored in any other way.\"\r\n];\r\nMagicItemsList[\"snicker-snack\"] = {\r\n\tname : \"Snicker-Snack\",\r\n\tsource : [[\"WBtW\", 213]],\r\n\ttype : \"weapon (greatsword)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a non-evil creature\",\r\n\tprereqeval : function(v) { return !/evil/i.test(What(\"Alignment\")); },\r\n\tdescription : \"I have a +3 bonus on attack and damage rolls with this sentient magic greatsword and can use Cha instead of Str. It ignores slashing resistance. On a 20 to hit, it cuts off \" + (typePF ? \"a head\" : \"one head, possibly killing it instantly\") + \". If the target has legendary actions, no head, too wide neck, or is immune to slashing damage, it takes +6d8 damage instead. See Notes.\",\r\n\tdescriptionFull : WBtW_Snicker_Snack_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 6,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Snicker_Snack_Full_Description)\r\n\t}],\r\n\tweaponProfs : [false, false [\"greatsword\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /snicker.snack/i,\r\n\t\tname : \"Snicker-Snack\",\r\n\t\tsource : [[\"WBtW\", 213]],\r\n\t\tdescription : \"Heavy, two-handed; Ignores slashing resistance; On 20 to hit: cut off head\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tisSnickerSnack : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.theWea.isSnickerSnack && fields.Mod === 1 && What('Cha') > What('Str')) {\r\n\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I can use my Charisma modifier instead of my Strength modifier for attack and damage rolls made with Snicker-Snack.\"\r\n\t\t]\r\n\t}\r\n}\r\nvar WBtW_Steel_Full_Description = [\r\n\t\"You have a +2 bonus to attack and damage rolls made with this magic weapon.\",\r\n\t\">>Revivify<<. You can use an action to cast the revivify spell from the sword. You must touch the target with the sword to cast the spell. Once this property of the weapon is used, it can't be used again until the next dawn.\",\r\n\t\">>Sentience<<. Steel is a sentient, lawful good longsword with an Intelligence of 8, a Wisdom of 11, and a Charisma of 15. It can see and hear out to a range of 60 feet. The sword can speak, read, and understand Common and Draconic. It frets over your well-being while you are attuned to it, and it doesn't like to back down from a fight.\"\r\n];\r\nMagicItemsList[\"steel\"] = {\r\n\tname : \"Steel\",\r\n\tsource : [[\"WBtW\", 214]],\r\n\ttype : \"weapon (longsword)\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a good-aligned creature\",\r\n\tprereqeval : function(v) { return /good/i.test(What(\"Alignment\")); },\r\n\tdescription : \"This sentient longsword adds +2 to attack and damage rolls made with it. As an action once per dawn, I can use it to cast Revivify on a target I touch with the sword. Steel is lawful good and frets over my well-being and doesn't like to back down from a fight. It has Int 8, Wis 11, and Cha 15. See Notes page.\",\r\n\tdescriptionFull : WBtW_Steel_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Steel_Full_Description)\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longsword\",\r\n\t\tregExpSearch : /['\"]steel['\"]/i,\r\n\t\tname : '\"Steel\"',\r\n\t\tsource : [[\"WBtW\", 214]],\r\n\t\tmodifiers : [2, 2],\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"revivify\"],\r\n\t\tselection : [\"revivify\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n}\r\nMagicItemsList[\"woodcutter's axe\"] = {\r\n\tname : \"Woodcutter's Axe\",\r\n\tsource : [[\"WBtW\", 214]],\r\n\ttype : \"weapon (greataxe)\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I have a +1 bonus to attack and damage rolls made with this magic greataxe. When I use this axe to make an attack against a plant (an ordinary plant or a creature with the Plant type) or a wooden object that isn't being worn or carried, the attack deals an extra 2d6 slashing damage on a hit.\",\r\n\tdescriptionFull : \"You have a +1 bonus to attack and damage rolls made with this magic weapon.\"+\r\n\t\"\\n   When you use this axe to make an attack against a plant (an ordinary plant or a creature with the Plant type) or a wooden object that isn't being worn or carried, the attack deals an extra 2d6 slashing damage on a hit.\",\r\n\tweight : 7,\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greataxe\",\r\n\t\tregExpSearch : /^(?=.*woodcutter)(?=.*axe).*$/i,\r\n\t\tname : \"Woodcutter's Axe\",\r\n\t\tsource : [[\"WBtW\", 214]],\r\n\t\tdescription : \"Heavy, two-handed; +2d6 damage vs. plants/wood\",\r\n\t\tmodifiers : [1, 1],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nvar WBtW_Witchlight_Vane_Full_Description = [\r\n\t\"This ornate rod is topped by a pair of butterfly wings and incorporates bits of red glass into its length. It weighs 3 pounds.\",\r\n\t\">>Magic Weapon<<. In the hands of one who is attuned to it, the vane can be wielded as a magic mace that grants a +3 bonus to attack and damage rolls made with it. In addition, the vane deals an extra 1d8 radiant damage on a hit.\",\r\n\t\">>Sense Mood<<. While the vane is inside the perimeter of the Witchlight Carnival, it can sense the mood of every creature in the carnival that has an Intelligence of 4 or higher. As an action, a creature attuned to the vane can use it to pinpoint the location of the happiest creature in the carnival.\",\r\n\t\"The butterfly shape at the top of the vane spins slowly clockwise when spirits in the carnival are generally high; if the general mood in the carnival is dour, the top of the vane spins slowly counterclockwise.\",\r\n\t\">>Sentience<<. The vane is a sentient, chaotic good wondrous item with an Intelligence of 11, a Wisdom of 14, and a Charisma of 14. It has hearing and normal vision out to a range of 30 feet, and it communicates by transmitting emotion to the creature attuned to it. Its purpose is to make sure everyone in the Witchlight Carnival is having a good time.\",\r\n\t\">>Additional Properties<<. The vane has the following additional properties:\",\r\n\t\"\\u2022 The creature holding the vane has vulnerability to lightning damage.\",\r\n\t\"\\u2022 The creature attuned to the vane can't be blinded, deafened, petrified, or stunned.\",\r\n\t\"\\u2022 While carrying the vane, the creature attuned to it can cast the dancing lights, polymorph, or ray of frost spell as an action, requiring no spell components and using Charisma as the spellcasting ability. After the vane's polymorph spell is cast, roll a d8; on a roll of 3 or 8, the vane can't be used to cast this spell again until the next dawn.\"\r\n];\r\nMagicItemsList[\"witchlight vane\"] = {\r\n\tname : \"Witchlight Vane\",\r\n\tsource : [[\"WBtW\", 27]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a mister light or his handpicked successor\",\r\n\tdescription : \"I can use this sentient ornate rod as a +3 mace that deals an extra 1d8 radiant damage on a hit. It can sense the mood of every creature in the carnival. As an action, I can pinpoint the happiest in the carnival. I can use it to cast spells. I can't be blinded, deafened, petrified, or stunned. See Notes page.\",\r\n\tdescriptionLong : \"This sentient ornate rod is topped by a pair of butterfly wings and incorporates bits of red glass into its length. I can use it as a +3 mace that deals an extra 1d8 radiant damage on a hit. It can sense the mood of every creature in the carnival. As an action, I can use it to pinpoint the happiest in the carnival. I can use it to cast Dancing Light, Ray of Frost, and Polymorph. After I use it to cast Polymorph, roll a d8. On a roll of 3 or 8, the vane can't be used to cast Polymorph again until the next dawn. It makes me vulnerable to lightning damage, but I can't be blinded, deafened, petrified, or stunned. See Notes page.\",\r\n\tdescriptionFull : WBtW_Witchlight_Vane_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tweight : 3,\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Witchlight_Vane_Full_Description)\r\n\t}],\r\n\taction : [[\"action\", \" (find happiest)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*witchlight)(?=.*vane).*$/i,\r\n\t\tname : \"Witchlight Vane\",\r\n\t\tsource : [[\"WBtW\", 27]],\r\n\t\tdescription : \"+1d8 radiant damage\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witchlight Vane [Polymorph] (25% chance use)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"dancing lights\", \"ray of frost\"],\r\n\t\tselection : [\"dancing lights\", \"ray of frost\"],\r\n\t}, {\r\n\t\tname : \"See Notes\",\r\n\t\tspells : [\"polymorph\"],\r\n\t\tselection : [\"polymorph\"],\r\n\t\tfirstCol : \"SP\"\r\n\t}],\r\n\tsavetxt : {\r\n\t\ttext : [\"Vulnerable to lightning\"],\r\n\t\timmune : [\"blinded\", \"deafened\", \"petrified\", \"stunned\"]\r\n\t}\r\n}\r\nvar WBtW_Witchlight_Watch_Full_Description = [\r\n\t\"This ornate pocket watch is fastened to the end of a gold chain. It glows with a faint golden light when opened, and it makes a soft ticking noise that can be heard only by the creature holding it. The face of the watch shows a miniature painting of the Witchlight Carnival ringed by a tiny henge, orbited at night by a mote of light small enough to slip through the eye of a needle. This light causes the henge to cast shadows, and these shadows allow the watch's owner to track the passage of time.\",\r\n\t\">>Carnival Setup and Takedown<<. The creature attuned to the watch can use an action to initiate the packing up or the unpacking of the Witchlight Carnival, provided the creature and the carnival are on the same plane of existence. In the span of 1 hour, all objects that are elements of the carnival are magically whisked about until everything is packed up and ready for travel, or unpacked and assembled. The watch has no effect on creatures, which can move about freely and safely while the carnival is being set up or taken down. Once the process of packing up or unpacking the carnival begins, it can't be stopped until the task is complete. When the watch is used to pack up or unpack the carnival, this property cannot be used again until 8 hours have elapsed.\",\r\n\t\">>Additional Properties<<. The pocket watch has the following additional properties:\",\r\n\t\"\\u2022 While carrying the watch, the creature attuned to it can cast the fire bolt, invisibility, or message spell as an action, requiring no spell components and using Intelligence as the spellcasting ability. After the watch's invisibility spell is cast, roll a d8; on a roll of 3 or 8, the watch can't be used to cast this spell again until the next dawn.\",\r\n\t\"\\u2022 The creature attuned to the watch gains 30 pounds. This extra weight vanishes when the attunement ends.\",\r\n\t\"\\u2022 The creature attuned to the watch must eat and drink eight times the normal amount each day.\"\r\n];\r\nMagicItemsList[\"witchlight watch\"] = {\r\n\tname : \"Witchlight Watch\",\r\n\tsource : [[\"WBtW\", 25]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a mister witch or his handpicked successor\",\r\n\tdescription : \"As an action once per 8 hours, I can use this ornate pocket watch to initiate the (un)packing of the carnival over the next hour. I can use it to cast Fire Bolt, Message, and Invisibility. After it casts Invisibility, I roll a d8. On a roll of 3 or 8, I can't cast this again until the next dawn. See Notes page.\",\r\n\tdescriptionLong : \"This ornate pocket watch is fastened to the end of a gold chain and glows with a faint golden light when opened. As an action once per 8 hours, I can use this ornate pocket watch to initiate the (un)packing of the carnival over the next hour, provided the carnival and I are on the same plane of existence. I can use it to cast Fire Bolt, Message, and Invisibility. After I use it to cast Invisibility, roll a d8. On a roll of 3 or 8, it can't be used to cast Invisibility again until the next dawn. As long as I'm attuned to it, I'm 30 lb heavier and must eat and drink eight times the normal amount each day. See Notes page.\",\r\n\tdescriptionFull : WBtW_Witchlight_Watch_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : WBtW_Sentient_Item_toNotes(WBtW_Witchlight_Watch_Full_Description, true)\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witchlight Watch [initiate (un)packing]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"8 hrs\"\r\n\t}, {\r\n\t\tname : \"Witchlight Watch [Invisibility] (25% chance use)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}],\r\n\taction : [[\"action\", \" [initiate (un)packing]\"]],\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"fire bolt\", \"message\"],\r\n\t\tselection : [\"fire bolt\", \"message\"],\r\n\t}, {\r\n\t\tname : \"See Notes\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"SP\"\r\n\t}],\r\n}\r\n// [dupl_start] reprints from Xanathar's Guide to Everything\r\nif (!SourceList.X) {\r\n\tMagicItemsList[\"cloak of many fashions\"] = {\r\n\t\tname : \"Cloak of Many Fashions\",\r\n\t\tsource : [[\"X\", 136], [\"WBtW\", 208]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"As a bonus action while wearing this cloak, I can change its style, color, and apparent qualities. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\t\tdescriptionFull : \"While wearing this cloak, you can use a bonus action to change the style, color, and apparent quality of the garment. The cloak's weight doesn't change. Regardless of its appearance, the cloak can't be anything but a cloak. Although it can duplicate the appearance of other magic cloaks, it doesn't gain their magical properties.\",\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t}\r\n\tMagicItemsList[\"dread helm\"] = {\r\n\t\tname : \"Dread Helm\",\r\n\t\tsource : [[\"X\", 137], [\"WBtW\", 209]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"This fearsome steel helm makes my eyes glow red while I wear it.\",\r\n\t\tdescriptionFull : \"This fearsome steel helm makes your eyes glow red while you wear it.\",\r\n\t\tweight : 1\r\n\t}\r\n\tMagicItemsList[\"instrument of scribing\"] = {\r\n\t\tname : \"Instrument of Scribing\",\r\n\t\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\t\ttype : \"wondrous item (instrument)\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 (or 7) words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\",\r\n\t\tdescriptionFull : \"This musical instrument has 3 charges. While you are playing it, you can use an action to expend 1 charge from the instrument and write a magical message on a nonmagical object or surface that you can see within 30 feet of you. The message can be up to six words long and is written in a language you know. If you are a bard, you can scribe an additional seven words and choose to make the message glow faintly, allowing it to be seen in nonmagical darkness. Casting Dispel Magic on the message erases it. Otherwise, the message fades away after 24 hours.\\n   The instrument regains all expended charges daily at dawn.\",\r\n\t\tattunement : true,\r\n\t\tweight : 3, // same as instrument of the bards\r\n\t\tchoices : [\"Bard (15-ft radius)\", \"Not a Bard (5-ft radius)\"],\r\n\t\tselfChoosing : function () {\r\n\t\t\treturn classes.known.bard ? \"bard (15-ft radius)\" : \"not a bard (5-ft radius)\";\r\n\t\t},\r\n\t\t\"bard (15-ft radius)\" : {\r\n\t\t\tname : \"Instrument\\u200A of Scribing\",\r\n\t\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 7 words in a language I know and I can have it glow faintly. Dispel Magic erases it, otherwise it fades away after 24 hours. This can be used 3 times per dawn.\"\r\n\t\t},\r\n\t\t\"not a bard (5-ft radius)\" : {\r\n\t\t\tname : \"Instrument\\u200A\\u200A of Scribing\",\r\n\t\t\tdescription : \"As an action while I'm playing this musical instrument, I can write a magical message on a nonmagical surface that I can see within 30 ft. The message can be up to 6 words in a language I know and fades away after 24 hours or when Dispel Magic is cast on it. The instrument can be used like this 3 times per dawn.\"\r\n\t\t}\r\n\t}\r\n\tMagicItemsList[\"orb of direction\"] = {\r\n\t\tname : \"Orb of Direction\",\r\n\t\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"As an action while holding this orb, I can determine which way is north. This property functions only on the Material Plane.\",\r\n\t\tdescriptionFull : \"While holding this orb, you can use an action to determine which way is north. This property functions only on the Material Plane.\",\r\n\t\tweight : 3,\r\n\t\taction : [[\"action\", \"\"]]\r\n\t}\r\n\tMagicItemsList[\"pipe of smoke monsters\"] = {\r\n\t\tname : \"Pipe of Smoke Monsters\",\r\n\t\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"As an action while smoking this pipe, I can exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-ft cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\",\r\n\t\tdescriptionFull : \"While smoking this pipe, you can use an action to exhale a puff of smoke that takes the form of a single creature, such as a dragon, a flumph, or a froghemoth. The form must be small enough to fit in a 1-foot cube and loses its shape after a few seconds, becoming an ordinary puff of smoke.\"\r\n\t}\r\n\tMagicItemsList[\"pole of collapsing\"] = {\r\n\t\tname : \"Pole of Collapsing\",\r\n\t\tsource : [[\"X\", 138], [\"WBtW\", 212]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"As an action while holding this 10 ft pole, I can speak a command word to have it collapse into a 1-ft-long rod. The poles weight doesn't change. As an action while holding the rod, I can speak a different command word to have it elongate back to a pole, but only as long as the surrounding space allows.\",\r\n\t\tdescriptionFull : \"While holding this 10-foot pole, you can use an action to speak a command word and cause it to collapse into a 1-foot-long rod, for ease of storage. The poles weight doesn't change. You can use an action to speak a different command word and cause the rod to revert to a pole; however, the rod will elongate only as far as the surrounding space allows.\",\r\n\t\tweight : 7,\r\n\t\taction : [[\"action\", \"\"]]\r\n\t}\r\n\tMagicItemsList[\"talking doll\"] = {\r\n\t\tname : \"Talking Doll\",\r\n\t\tsource : [[\"X\", 139], [\"WBtW\", 214]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"During a short rest with this doll within 5 ft of me, I can tell it to say up to 6 phrases of up to 6 words each, and set an observable condition under which the doll speaks each phrase. Conditions must happen within 5 ft of the doll. The doll can remember only 6 phrases and are lost when my attunement to it ends.\",\r\n\t\tdescriptionFull : \"While this stuffed doll is within 5 feet of you, you can spend a short rest telling it to say up to six phrases, none of which can be more than six words long, and set an observable condition under which the doll speaks each phrase. You can also replace old phrases with new ones. Whatever the condition, it must occur within 5 feet of the doll to make it speak. For example, whenever someone picks up the doll, it might say, \\\"I want a piece of candy.\\\" The doll's phrases are lost when your attunement to the doll ends.\"\r\n\t}\r\n\tMagicItemsList[\"wand of scowls\"] = {\r\n\t\tname : \"Wand of Scowls\",\r\n\t\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\t\ttype : \"wand\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to scowl for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\t\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to scowl for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of smiles.\",\r\n\t\tweight : 1,\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}\r\n\tMagicItemsList[\"wand of smiles\"] = {\r\n\t\tname : \"Wand of Smiles\",\r\n\t\tsource : [[\"X\", 140], [\"WBtW\", 214]],\r\n\t\ttype : \"wand\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"This wand has 3 charges, regain all at dawn. As an action, I can expend 1 of its charges and target a humanoid I can see within 30 ft. The target must succeed on a DC 10 Charisma save or be forced to smile for 1 minute. If I expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\t\tdescriptionFull : \"This wand has 3 charges. While holding it, you can use an action to expend 1 of its charges and target a humanoid you can see within 30 feet of you. The target must succeed on a DC 10 Charisma saving throw or be forced to smile for 1 minute.\\n   The wand regains all expended charges daily at dawn. If you expend the wand's last charge, roll a d20. On a 1, the wand transforms into a wand of scowls.\",\r\n\t\tweight : 1,\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}\r\n} // dupl_end\r\n\r\n// Beasts\r\nCreatureList[\"giant swan\"] = { // a giant eagle except that it has no talons, can attack twice with its beak as an action, and speaks Common and Auran\r\n\tname : \"Giant Swan\",\r\n\tnameAlt : [\"Swan, Giant\"],\r\n\tsource : [[\"WBtW\", 38]],\r\n\tsize : 2, //Large\r\n\ttype : \"Beast\",\r\n\talignment : \"Neutral Good\",\r\n\tac : 13,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, fly 80 ft\",\r\n\tscores : [16, 17, 13, 8, 14, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 4\r\n\t},\r\n\tsenses : \"Adv. on Wis (Perception) checks using sight\",\r\n\tpassivePerception : 14,\r\n\tlanguages : \"Common and Auran\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Beak\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two beak attack as an Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the swan can make two Beak attacks.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Keen Sight\",\r\n\t\tdescription : \"The swan has advantage on Wisdom (Perception) checks that rely on sight.\"\r\n\t}]\r\n}\r\nCreatureList[\"giant dragonfly\"] = {\r\n\tname : \"Giant Dragonfly\",\r\n\tnameAlt : [\"Dragonfly, Giant\"],\r\n\tsource : [[\"WBtW\", 234]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 16,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, fly 60 ft\",\r\n\tscores : [15, 18, 11, 3, 10, 3],\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Drone\",\r\n\t\tdescription : \"When it beats its wings, the dragonfly emits a loud droning sound that can be heard out to a range of 120 ft.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Uncanny Dodge\",\r\n\t\tdescription : \"As a reaction, the dragonfly can halve the damage it takes from an attack made against it, provided it can see the attacker.\"\r\n\t}]\r\n}\r\nCreatureList[\"giant snail\"] = {\r\n\tname : \"Giant Snail\",\r\n\tnameAlt : [\"Snail, Giant\"],\r\n\tsource : [[\"WBtW\", 234]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"10 ft, climb 10 ft\",\r\n\tscores : [15, 3, 11, 3, 10, 3],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Salt Osmosis\",\r\n\t\tdescription : \"Whenever the snail starts its turn in contact with a pound or more of salt, it takes 1d4 necrotic damage. Using an action to sprinkle a pound of salt on the snail deals 1d4 necrotic damage to it immediately and another 1d4 necrotic damage to it at the start of its next turn (after which the salt rubs off), provided the snail has not withdrawn into its shell.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Shell Defense\",\r\n\t\tdescription : \"As an action, the snail withdraws into its shell, gaining a +4 bonus to its AC until it emerges. It can emerge from its shell as a bonus action on its turn.\"\r\n\t}]\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20211019_FToD.js",
    "content": "var iFileName = \"pub_20211019_FToD.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all the player-material from Fizban's Treasury of Dragons to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.FToD = {\r\n\tname : \"Fizban's Treasury of Dragons\",\r\n\tabbreviation : \"FToD\",\r\n\tabbreviationSpellsheet : \"FD\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/treasury-dragons\",\r\n\tdate : \"2021/10/19\"\r\n};\r\n\r\n// Races\r\nvar FToD_dragonborns_add = function () { // New dragonborn variants\r\n\tvar objDragonborns = {\r\n\t\tChromatic : {\r\n\t\t\tregExpSearch : /^(?=.*chromatic)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 10]],\r\n\t\t\tvariants : [[\"Black\", \"Acid\"], [\"Blue\", \"Lightning\"], [\"Green\", \"Poison\"], [\"Red\", \"Fire\"], [\"White\", \"Cold\"]],\r\n\t\t\tbreathWeaponShape : \"5-ft by 30-ft line\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 5-ft by 30-ft line, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest. The damage increases with +1d10 at 5th, 11th, and 17th level.\",\r\n\t\t\t\t\"Chromatic Warding: From 5th level, I can protect myself using my draconic energies. As an action once per long rest, I can become immune to >>type<< damage for 1 minute.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"chromatic warding\" : {\r\n\t\t\t\t\tname : \"Chromatic Warding\",\r\n\t\t\t\t\tsource : [[\"FToD\", 10]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tGem : {\r\n\t\t\tregExpSearch : /^(?=.*gem)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 11]],\r\n\t\t\tvariants : [[\"Amethyst\", \"Force\"], [\"Crystal\", \"Radiant\"], [\"Emerald\", \"Psychic\"], [\"Sapphire\", \"Thunder\"], [\"Topaz\", \"Necrotic\"]],\r\n\t\t\tbreathWeaponShape : \"15-ft cone\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Prof Bonus). I can do this my Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus per long rest.\",\r\n\t\t\t\t\"Psionic Mind: \" + (typePF ? \"I can send telepathic messages to any creature I can see within 30 ft that understands at least one language.\" : \"I can telepathically message a creature with a language I can see in 30 ft.\"),\r\n\t\t\t\t\"Gem Flight: From 5th level, I can manifest spectral wings. As a bonus action once per long rest, I can gain, for 1 minute, a flying speed equal to my walking speed and can hover.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"gem flight\" : {\r\n\t\t\t\t\tname : \"Gem Flight\",\r\n\t\t\t\t\tsource : [[\"FToD\", 11]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tMetallic : {\r\n\t\t\tregExpSearch : /^(?=.*metallic)(?=.*dragonborn).*$/i,\r\n\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\tvariants : [[\"Brass\", \"Fire\"], [\"Bronze\", \"Lightning\"], [\"Copper\", \"Acid\"], [\"Gold\", \"Fire\"], [\"Silver\", \"Cold\"]],\r\n\t\t\tbreathWeaponShape : \"15-ft cone\",\r\n\t\t\ttrait : desc([\r\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action on my turn, I can replace one attack with a breath weapon that deals 1d10 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus). I can do this my Prof\" + (typePF ? \"iciency\" : \".\") + \" Bonus per long rest.\",\r\n\t\t\t\t\"Metallic Breath Weapon: At 5th level I gain a second breath weapon once per long rest, that works just like the first, but I choose the effect when I use it: Enervating: Con save or incapacitated until my next turn starts. Repulsion: Str save or pushed 20 ft and prone.\"\r\n\t\t\t], \"\\n \\u2022 \"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"metallic breath weapon\" : {\r\n\t\t\t\t\tname : \"Metallic Breath Weapon\",\r\n\t\t\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\t\t\tminlevel : 5,\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\t\tregExpSearch : /^(?=.*metallic)(?=.*breath)(?=.*weapon).*$/i,\r\n\t\t\t\t\t\tname : \"Metallic breath weapon\",\r\n\t\t\t\t\t\tsource : [[\"FToD\", 12]],\r\n\t\t\t\t\t\tability : 3,\r\n\t\t\t\t\t\ttype : 'Natural',\r\n\t\t\t\t\t\tdamage : ['Enervating', '', 'or Repulsion'],\r\n\t\t\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\t\t\tdescription : \"Repulsion: Str save or pushed 20 ft \\u0026 prone; Enervating: Con save or incapacitated till my next turn starts\",\r\n\t\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\t\tdc : true,\r\n\t\t\t\t\t\tselectNow : true\r\n\t\t\t\t\t}]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tfor (var sDrBrn in objDragonborns) {\r\n\t\tvar sDrBrnLC = sDrBrn.toLowerCase();\r\n\t\tvar oDrBrn = objDragonborns[sDrBrn];\r\n\t\tRaceList[sDrBrnLC + \" dragonborn\"] = {\r\n\t\t\tregExpSearch : oDrBrn.regExpSearch,\r\n\t\t\tname : sDrBrn + \" Dragonborn\",\r\n\t\t\tsortname : \"Dragonborn, \" + sDrBrn,\r\n\t\t\tsource : oDrBrn.source,\r\n\t\t\tplural : sDrBrn + \" Dragonborn\",\r\n\t\t\tsize : 3,\r\n\t\t\tspeed : {\r\n\t\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t\t},\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\t\t\tname : \"Breath weapon\",\r\n\t\t\t\tsource : oDrBrn.source,\r\n\t\t\t\tability : 3,\r\n\t\t\t\ttype : 'Natural',\r\n\t\t\t\tdamage : ['C', 10, 'fire'],\r\n\t\t\t\trange : oDrBrn.breathWeaponShape.replace('by', '\\xD7'),\r\n\t\t\t\tdescription : \"Hits all in area; Dex save, success - half damage\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tdbBreathWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\t\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\t\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\t\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\t\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\t\t\tscoresGeneric : true,\r\n\t\t\ttrait : sDrBrn + \" Dragonborn\"+\r\n\t\t\t\t\"\\n \\u2022 \" + sDrBrn + ' Ancestry: Choose a type of dragon using the \"Racial Options\" button. The damage type of my resistance and my breath weapon are determined by the dragon type chosen.'+\r\n\t\t\t\t+ oDrBrn.trait.replace(/>>type<< /ig, \"\"),\r\n\t\t\tfeatures : {\r\n\t\t\t\t\"breath weapon\" : {\r\n\t\t\t\t\tname : \"Breath Weapon\",\r\n\t\t\t\t\tminlevel : 1,\r\n\t\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tadditional : cantripDie.map(function (n) {\r\n\t\t\t\t\t\treturn n + 'd10';\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tcalcChanges : {\r\n\t\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && /dragonborn/i.test(CurrentRace.known) && CurrentRace.dmgres) {\r\n\t\t\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.dmgres[0];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t'',\r\n\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tvariants : []\r\n\t\t};\r\n\t\tif (oDrBrn.features) {\r\n\t\t\tfor (var sFea in oDrBrn.features) {\r\n\t\t\t\tRaceList[sDrBrnLC + \" dragonborn\"].features[sFea] = oDrBrn.features[sFea];\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (var i = 0; i < oDrBrn.variants.length; i++) {\r\n\t\t\tvar sDrBrnVar = oDrBrn.variants[i][0];\r\n\t\t\tvar sDrBrnDmg = oDrBrn.variants[i][1];\r\n\t\t\tAddRacialVariant(sDrBrnLC + \" dragonborn\", sDrBrnVar.toLowerCase(), {\r\n\t\t\t\tregExpSearch : RegExp(sDrBrnVar, \"i\"),\r\n\t\t\t\tname : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\",\r\n\t\t\t\ttrait : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\"+\r\n\t\t\t\t\toDrBrn.trait.replace(/>>TYPE<</g, sDrBrnDmg).replace(/>>type<</g, sDrBrnDmg.toLowerCase()),\r\n\t\t\t\tdmgres : [sDrBrnDmg]\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}();\r\n\r\n// Subclasses\r\nAddSubClass(\"monk\", \"ascendant dragon\", {\r\n\tregExpSearch : /^(?=.*ascendant)(?=.*(dragon|draconic))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Ascendant Dragon\",\r\n\tsubnameShort: \"Ascendant Dragon\",\r\n\tsource : [[\"FToD\", 13]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Disciple\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn to speak, read, and write Draconic or one other language of my choice\",\r\n\t\t\t\t\"I can change the damage type of my unarmed strikes to acid, cold, fire, lightning, poison\",\r\n\t\t\t\t\"As a reaction when I fail an Intimidation or Persuasion check, I can reroll the check\",\r\n\t\t\t\t\"If this reroll turns the check into a success, I can't do so again until I finish a long rest\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [[\"Draconic or other\", 1]],\r\n\t\t\taction : [[\"reaction\", \" (reroll check)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reroll\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"Change type to acid/cold/fire/lightning/poison\";\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I damage a target with an unarmed strike, I can change the damage type to acid, cold, fire, lightning or poison.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"breath of the dragon\" : {\r\n\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\textraname : \"Ascendant Dragon 3\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar iMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"When I take the Attack action on my turn, I can replace one attack with a breath weapon\",\r\n\t\t\t\t\t\t\"This deals \" + (n < 11 ? 2 : 3) + \"d\" + iMonkDie + \" acid, cold, fire, lightning, or poison (my choice) damage to all in the area\",\r\n\t\t\t\t\t\t\"The area can be a 20-ft cone or a 5-ft wide, 30-ft line; Dex save to halve the damage\",\r\n\t\t\t\t\t\t\"I can do this my Proficiency Bonus times per long rest, or by expending 2 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, I can expend 1 (extra) ki point when I use this feature to augment it\",\r\n\t\t\t\t\t\t\"The damage increases to 4d\" + iMonkDie + \" and the area to a 60-ft cone or a 5-ft wide, 90-ft line\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : \"Prof B. per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"2 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 11 ? 2 : 3) + \"d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon).*$/i,\r\n\t\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\ttype : \"Natural\",\r\n\t\t\t\t\tdamage : [2, 4, \"My choice\"],\r\n\t\t\t\t\trange : \"5-ft \\xD7 30-ft line\",\r\n\t\t\t\t\tdescription : \"All in area; Dex save for half damage; Alt: 20-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmonkweapon : false,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tWotAD_BreathWeapon : true,\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && v.theWea.WotAD_BreathWeapon) {\r\n\t\t\t\t\t\t\t\tvar n = classes.known.monk.level;\r\n\t\t\t\t\t\t\t\tvar aMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = (v.theWea.WotAD_BreathWeaponAugmented ? 4 : n < 11 ? 2 : 3) + \"d\" + aMonkDie;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My Breath of the Dragon deals damage equal to two rolls of my Martials Arts die. At 11th level, this increases to three rolls of my Martial Arts die. At 17th level, I can expend 1 ki point to augment the breath to increase the damage to four rolls of my Martial Arts die.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"breath of the dragon\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wings Unfurled\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Step of the Wind, I can gain a flying speed equal to my walking speed\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\"aspect of the wyrm\" : {\r\n\t\t\t\tname : \"Aspect of the Wyrm\",\r\n\t\t\t\textraname : \"Ascendant Dragon 11\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"As a bonus action, I can activate a 10 ft aura for 1 minute that grants me one benefit:\",\r\n\t\t\t\t\t\t\" \\u2022 My allies in the aura and I gain resistance to acid, cold, fire, lightning, or poison damage\",\r\n\t\t\t\t\t\t\" \\u2022 When I create this aura and as a bonus action while it is active, I can frighten a creature\",\r\n\t\t\t\t\t\t\"      One creature must make a Wisdom save or become frightened of me for 1 minute\",\r\n\t\t\t\t\t\t\"      It can repeat the save at the end of each of its turns, ending the effect on a success\",\r\n\t\t\t\t\t\t\"I can activate this aura once per long rest, or by expending 3 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, when I active this, I can choose any creatures I can see in the aura\",\r\n\t\t\t\t\t\t\"Each must then make a Dex save or take 3d10 acid, cold, fire, lightning, or poison damage\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"3 ki\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"aspect of the wyrm\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Ascendant Aspect\",\r\n\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I gain 10 ft blindsight and both Breath of the Dragon and Aspect of the Wyrm improve\"),\r\n\t\t\tvision : [[\"blindsight\", 10]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon)(?=.*augment).*$/i,\r\n\t\t\t\tname : \"Breath of the Dragon (Augmented)\",\r\n\t\t\t\tsource : [[\"FToD\", 13]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [4, 10, \"My choice\"],\r\n\t\t\t\trange : \"5-ft \\xD7 90-ft line\",\r\n\t\t\t\tdescription : \"[1 ki] All in area; Dex save for half damage; Alt: 60-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tmonkweapon : false,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tWotAD_BreathWeapon : true,\r\n\t\t\t\tWotAD_BreathWeaponAugmented : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nvar FToD_Ranger_Subclass_Drakewarden = AddSubClass(\"ranger\", \"drakewarden\", {\r\n\tregExpSearch : /^(?=.*(drake|dragon|draconic))(?=.*(warden|ranger|trainer)).*$/i,\r\n\tsubname : \"Drakewarden\",\r\n\tsource : [[\"FToD\", 15]],\r\n\tfullname : \"Drakewarden\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Gift\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Draconic language and the Thaumaturgy cantrip\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Draconic Gift\",\r\n\t\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drake Companion\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon my drake to appear in an empty space within 30 ft\",\r\n\t\t\t\t'Select a \"Drake Companion\" on the companion page for its stats and rules',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \" (summon)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\tcreaturesAdd : [[\"Drake Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Drake Companion\",\r\n\t\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Dragon\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : \"14+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [3, 10],\r\n\t\t\t\thdLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tminlevelLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [16, 12, 15, 8, 14, 8],\r\n\t\t\t\tsaves : [\"\", 3, \"\", \"\", 4, \"\"],\r\n\t\t\t\tdamage_immunities : \"the chosen Draconic Essence damage type\",\r\n\t\t\t\tsenses : \"Darkvision 40 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"Draconic\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\", //+1d6 damage of the chosen Draconic Essense type\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Warden\",\r\n\t\t\t\t\tdescription : \"The drake obeys the commands of its warden and shares its proficiency bonus. It takes its turn immediately after that of its warden, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its warden takes a bonus action to command it to take another action. If its warden is incapacitated, the drake can take any action, not just Dodge. The drake vanishes when it is reduced to 0 hit points, when its warden summons another drake, or when its warden dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Draconic Essence\",\r\n\t\t\t\t\tdescription : \"Chosen when summoned: acid, cold, fire, lightning, or poison damage.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infused Strikes\",\r\n\t\t\t\t\tdescription : \"As a reaction when another creature within 30 ft of the drake that it can see hits with a weapon attack, the drake can infuse the strike with its essence, causing the attack to deal an extra 1d6 damage of its chosen Draconic Essence damage type\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Bond of Fang and Scale (Drakewarden 7)\",\r\n\t\t\t\t\tminlevel : 7,\r\n\t\t\t\t\tdescription : \"The drake is now Medium and can be ridden as a mount. It has a flying speed equal to its walking speed, but can't fly with a rider on its back. The drake's bite deals an extra 1d6 damage of its chosen Draconic Essence type.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t\tAddString(prefix + \"Comp.Use.Attack.1.Description\", \"+1d6 damage of the chosen Draconic Essense type\");\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, ''));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 4); // Small\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Perfected Bond (Drakewarden 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The drake is now Large and can fly while its being ridden. Its bite attack deals an extra 1d6 damage (for a total of +2d6) of its chosen Draconic Essence type.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, '+2d6 damage of the chosen Draconic Essense type'));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sAtkFld = prefix + \"Comp.Use.Attack.1.Description\";\r\n\t\t\t\t\t\tValue(sAtkFld, What(sAtkFld).replace(/\\+\\d+d6 damage of the chosen Draconic Essense type/i, '+1d6 damage of the chosen Draconic Essense type'));\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.ranger && !classes.known.rangerua) return;\r\n\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\tvar rngrLvlM = 5 * rngrLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + rngrLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 as a base\\n + 5 \\xD7 \" + rngrLvl + \" from five times its warden's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Bond of Fang and Scale\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Medium, has a 40 ft fly speed, and can be ridden, but not while flying\",\r\n\t\t\t\t\"The drake's bite attack deals an extra 1d6 damage chosen by its Draconic Essense\",\r\n\t\t\t\t\"While it is summoned, I gain resistance to the damage type of its Draconic Essense\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"(See Drake)\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drake's Breath\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause my drake or myself to exhale a 30-ft cone breath weapon\",\r\n\t\t\t\t\"Its damage type is acid, cold, fire, lightning, or poison; Dex save to halve the damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : (n < 15 ? 8 : 10) + \"d6 damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*drake)(?=.*breath).*$/i,\r\n\t\t\t\tname : \"Drake's Breath\",\r\n\t\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [8, 6, \"My choice\"],\r\n\t\t\t\trange : \"30-ft cone\",\r\n\t\t\t\tdescription : \"Hits all in area; Dex save for half damage; Damage type: acid, cold, fire, lightning, or poison\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tDrakewardenDrakeBreath : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.DrakewardenDrakeBreath && (classes.known.rangerua || classes.known.ranger)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Damage_Die = (rngrLvl < 15 ? 8 : 10) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\",\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Perfected Bond\",\r\n\t\t\tsource : [[\"FToD\", 15]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Large, can serve as a mount, and adds another +1d6 damage to its bite\",\r\n\t\t\t\t\"As a reaction when the drake or I take damage while within 30 ft of each other,\",\r\n\t\t\t\t\"I can give myself or the drake resistance to that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reaction\"\r\n\t\t}\r\n\t}\r\n});\r\n// Add the subclass to the revised ranger as well, if it exists\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(FToD_Ranger_Subclass_Drakewarden);\r\n};\r\n\r\n// Feats\r\nFeatsList[\"gift of the chromatic dragon\"] = {\r\n\tname : \"Gift of the Chromatic Dragon\",\r\n\tsource : [[\"FToD\", 17], [\"UA:DO\", 4]],\r\n\tdescriptionFull : \"You've manifested some of the power of chromatic dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Chromatic Infusion\") + \". As a bonus action, you can touch a simple or martial weapon and infuse it with one of the following damage types: acid, cold, fire, lightning, or poison. For the next minute, the weapon deals an extra 1d4 damage of the chosen type when it hits. After you use this bonus action, you can't do so again until you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Reactive Resistance\") + \". When you take acid, cold, fire, lightning, or poison damage, you can use your reaction to give yourself resistance to that instance of damage. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"As a bonus action once per long rest, I can touch a simple or martial weapon and infuse it to deal +1d4 acid, cold, fire, poison, or lightning damage for 1 minute. As a reaction when I take acid, cold, fire, lightning, or poison damage, I can gain resistance to that damage instance. I can do this my Prof Bonus per long rest.\",\r\n\taction : [\r\n\t\t[\"bonus action\", \"Chromatic Gift (Chromatic Infusion)\"],\r\n\t\t[\"reaction\", \"Chromatic Gift (Reactive Resistance)\"]\r\n\t],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Chromatic Gift (Chromatic Infusion)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}, {\r\n\t\tname : \"Chromatic Gift (Reactive Resistance)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"gift of the gem dragon\"] = {\r\n\tname : \"Gift of the Gem Dragon\",\r\n\tsource : [[\"FToD\", 17], [\"UA:DO\", 5]],\r\n\tdescriptionFull : \"You've manifested some of the power of gem dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Telekinetic Reprisal\") + \". When you take damage from a creature that is within 10 feet of you, you can use your reaction to emanate telekinetic energy. The creature that dealt damage to you must make a Strength saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the creature takes 2d8 force damage and is pushed up to 10 feet away from you. On a successful save, the creature takes half as much damage and isn't pushed. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"As a reaction when I take damage from a creature that is within 10 ft, I can have it take 2d8 force damage and push it up to 10 ft away. If it succeeds on a Str save (DC 8 + Prof Bonus + chosen ability score modifier), it halves the damage and isn't pushed. I can do this my Prof Bonus per long rest. [+1 Int, Wis or Cha]\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + ( 8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod')) ) + ' (8 + Prof Bonus + Int mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Intelligence]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Wisdom]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it take 2d8 force damage and push it up to 10 ft away from me. If it succeeds a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod), it halves the damage and isn\\\\'t pushed. I can do this my Proficiency Bonus per long rest. [+1 Charisma]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"gift of the metallic dragon\"] = {\r\n\tname : \"Gift of the Metallic Dragon\",\r\n\tsource : [[\"FToD\", 17]],\r\n\tdescriptionFull : \"You've manifested some of the power of metallic dragons, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Draconic Healing\") + \". You learn the cure wounds spell. You can cast this spell without expending a spell slot. Once you cast this spell in this way, you can't do so again until you finish a long rest. You can also cast this spell using spell slots you have. The spell's spellcasting ability is Intelligence, Wisdom, or Charisma when you cast it with this feat (choose when you gain the feat).\"+\r\n\t\"\\n   \" + toUni(\"Protective Wings\") + \". You can manifest protective wings that can shield you or others. When you or another creature you can see within 5 feet of you is hit by an attack roll, you can use your reaction to manifest spectral wings from your back for a moment. You grant a bonus to the target's AC equal to your proficiency bonus against that attack roll, potentially causing it to miss. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I know Cure Wounds. I can cast it using spell slots and once per long rest without a spell slot. As a reaction when I or another I can see within 5 ft is hit by an attack, I can add my Proficiency Bonus to AC, potentially causing the attack to miss. I can do this my Proficiency Bonus per long rest.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tallowUpCasting : true,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Cure Wounds\",\r\n\t\tspells : [\"cure wounds\"],\r\n\t\tselection : [\"cure wounds\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\taction : [[\"reaction\", \"Metallic Gift (Protective Wings)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Metallic Gift (Protective Wings)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\n\r\n// Spells\r\nSpellsList[\"ashardalon's stride\"] = { // contains contributions by Nod_Hero (Flame Stride in UA:DO)\r\n\tname : \"Ashardalon's Stride\",\r\n\tnameAlt : \"Flame Stride\",\r\n\tclasses : [\"artificer\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 19], [\"UA:DO\", 6]],\r\n\tlevel : 3,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"+20+5/SL ft speed; provoke no opp atks for moving; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionShorter : \"+20+5/SL ft spd; no opp atks with move; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionMetric : \"+6+1,5/SL m spd; provoke no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionShorterMetric : \"+6+1,5/SL m spd; no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\r\n\tdescriptionFull : \"The billowing flames of a dragon blast from your feet, granting you explosive speed. For the duration, your speed increases by 20 feet and moving doesn't provoke opportunity attacks.\"+\r\n\t\"\\n   When you move within 5 feet of a creature or an object that isn't being worn or carried, it takes 1d6 fire damage from your trail of heat. A creature or object can take this damage only once during a turn.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, increase your speed by 5 feet for each spell slot level above 3rd. The spell deals an additional 1d6 fire damage for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"draconic transformation\"] = {\r\n\tname : \"Draconic Transformation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 19]],\r\n\tlevel : 7,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"S:60\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A statuette of a dragon, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Blindsight 30 ft; 60 ft fly speed; at cast and 1 bns: 60-ft cone all 6d8 Force damage, save half (500gp)\",\r\n\tdescriptionShorter : \"Blindsight 30 ft; 60 ft fly; at cast and 1 bns: 60-ft cone all 6d8 Force dmg, save half (500gp)\",\r\n\tdescriptionFull : \"With a roar, you draw on the magic of dragons to transform yourself, taking on various draconic features. You gain the following benefits until the spell ends:\"+\r\n\t\"\\n   \" + toUni(\"Blindsight\") + \". You have blindsight with a range of 30 feet. Within that range, you can effectively see anything that isn't behind total cover, even if you're blinded or in darkness. Moreover, you can see an invisible creature, unless the creature successfully hides from you.\"+\r\n\t\"\\n   \" + toUni(\"Breath Weapon\") + \". When you cast this spell, and as a bonus action on subsequent turns for the duration, you can exhale shimmering energy in a 60-foot cone. Each creature in that area must make a Dexterity saving throw, taking 6d8 force damage on a failed save, or half as much damage on a successful one.\"+\r\n\t\"\\n   \" + toUni(\"Wings\") + \". Incorporeal wings sprout from your back, giving you a flying speed of 60 feet.\"\r\n};\r\nSpellsList[\"fizban's platinum shield\"] = {\r\n\tname : \"Fizban's Platinum Shield\",\r\n\tnameAlt : \"Platinum Shield\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 20]],\r\n\tlevel : 6,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A platinum-plated dragon scale, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 crea Acid, Cold, Fire, Lightn. \\u0026 Poison resist., half cover, better Dex saves; 1 bns change crea (500gp)\",\r\n\tdescriptionFull : \"You create a field of silvery light that surrounds a creature of your choice within range (you can choose yourself). The field sheds dim light out to 5 feet. While surrounded by the field, a creature gains the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Cover\") + \". The creature has half cover.\"+\r\n\t\"\\n   \" + toUni(\"Damage Resistance\") + \". The creature has resistance to acid, cold, fire, lightning, and poison damage.\"+\r\n\t\"\\n   \" + toUni(\"Evasion\") + \". If the creature is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, the creature instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\"+\r\n\t\"\\n   As a bonus action on subsequent turns, you can move the field to another creature within 60 feet of the field.\"\r\n};\r\nSpellsList[\"nathair's mischief\"] = {\r\n\tname : \"Nathair's Mischief\",\r\n\tnameAlt : \"Mischief\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 20], [\"UA:DO\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A piece of crust from an apple pie\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Var\",\r\n\tdescription : \"20-ft cube of magic, roll d4 for effect; At start of my turn, move cube 10 ft and reroll effect; see book\",\r\n\tdescriptionFull : \"You fill a 20-foot cube you can see within range with fey and draconic magic. Roll on the Mischievous Surge table to determine the magical effect produced, and roll again at the start of each of your turns until the spell ends. You can move the cube up to 10 feet before you roll.\"+\r\n\t\"\\n\\nMischievous Surge\"+\r\n\ttoUni(\"\\nd4\\tEffect\")+\r\n\t\"\\n  1\\tThe smell of apple pie fills the air, and each creature in the cube must succeed on a Wisdom saving throw or become charmed by you until the start of your next turn.\"+\r\n\t\"\\n  2\\tBouquets of flowers appear all around, and each creature in the cube must succeed on a Dexterity saving throw or be blinded until the start of your next turn as the flowers spray water in their faces.\"+\r\n\t\"\\n  3\\tEach creature in the cube must succeed on a Wisdom saving throw or begin giggling until the start of your next turn. A giggling creature is incapacitated and uses all its movement to move in a random direction.\"+\r\n\t\"\\n  4\\tDrops of molasses hover in the cube, making it difficult terrain until the start of your next turn.\"\r\n};\r\nSpellsList[\"raulothim's psychic lance\"] = {\r\n\tname : \"Raulothim's Psychic Lance\",\r\n\tnameAlt : \"Psychic Lance\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea I see or can name 7d6+1d6/SL Psychic dmg \\u0026 incap. till start of my turn; save half, not incap.\",\r\n\tdescriptionShorter : \"1 crea I see or can name 7d6+1d6/SL Psychic dmg \\u0026 incap. for 1 rnd; save half, not incap.\",\r\n\tdescriptionFull : \"You unleash a shimmering lance of psychic power from your forehead at a creature that you can see within range. Alternatively, you can utter a creature's name. If the named target is within range, it becomes the spell's target even if you can't see it. If the named target isn't within range, the lance dissipates without effect.\"+\r\n\t\"\\n   The target must make an Intelligence saving throw. On a failed save, the target takes 7d6 psychic damage and is incapacitated until the start of your next turn. On a successful save, the creature takes half as much damage and isn't incapacitated.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d6 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"rime's binding ice\"] = { // Icingdeath's Frost in UA:DO\r\n\tname : \"Rime's Binding Ice\",\r\n\tnameAlt : \"Binding Ice\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21], [\"UA:DO\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"S:30\" + (typePF ? \"-\" : \"\") + \"ft cone\",\r\n\tcomponents : \"S,M\",\r\n\tcompMaterial : \"A vial of meltwater\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"All in area 3d8+1d8/SL Cold dmg and speed 0 for 1 min until 1 a to undo; save halves, normal speed\",\r\n\tdescriptionShorter : \"All in area 3d8+1d8/SL Cold dmg \\u0026 spd 0 for 1 min until 1 a to undo; save halves, normal spd\",\r\n\tdescriptionFull : \"A burst of cold energy emanates from you in a 30-foot cone. Each creature in that area must make a Constitution saving throw. On a failed save, a creature takes 3d8 cold damage and is hindered by ice formations for 1 minute, or until it or another creature within reach of it uses an action to break away the ice. A creature hindered by ice has its speed reduced to 0. On a successful save, a creature takes half as much damage and isn't hindered by ice.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, increase the cold damage by 1d8 for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"summon draconic spirit\"] = {\r\n\tname : \"Summon Draconic Spirit\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"FToD\", 21], [\"UA:DO\", 7]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"an object with the image of a dragon engraved on it, worth at least 500 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Draconic Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (500gp)\",\r\n\tdescriptionFull : \"You call forth a draconic spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Draconic Spirit stat block. When you cast this spell, choose a family of dragon: chromatic, gem, or metallic. The creature resembles a dragon of the chosen family, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\"+\r\n\t\"\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"amethyst lodestone\"] = {\r\n\tname : \"Amethyst Lodestone\",\r\n\tsource : [[\"FToD\", 22]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"This \" + (typePF ? \"\" : \"mineral \") + \"grants me adv. on Str saves. It has 6 charges, regain\" + (typePF ? \"s\" : \"ing\") + \" 1d6 at dawn.\"+\r\n\t\t(typePF ? \" \" : \"\\n\") + \"\\u2022 1 charge, bonus action: I gain a fly speed equal to walk speed for 10 min and I can hover.\"+\r\n\t\t(typePF ? \" \\u2022 1 charge, action: a creature I can see in 60 ft makes DC 18 Str save or pushed 20 ft in chosen direction.\" : \"\\n\\u2022 1 charge, action: a creature I can see in 60 ft must make a DC 18 Str save or be pushed up to 20 ft in a direction of my choice.\")+\r\n\t\t\" \\u2022 3 charges, action: I cast Reverse Gravity (DC 18).\",\r\n\tdescriptionFull : \"This fist-sized chunk of amethyst is infused with an amethyst dragon's ability to bend gravitational forces. While you are carrying the lodestone, you have advantage on Strength saving throws.\"+\r\n\t\"\\n   The lodestone has 6 charges for the following properties, which you can use while you are holding the stone. The stone regains 1d6 expended charges daily at dawn.\"+\r\n\t\"\\n   \" + toUni(\"Flight\") + \". As a bonus action, you can expend 1 charge to gain the power of flight for 10 minutes. For the duration, you gain a flying speed equal to your walking speed, and you can hover.\"+\r\n\t\"\\n   \" + toUni(\"Gravitational Thrust\") + \". As an action, you can expend 1 charge to focus gravity around a creature you can see within 60 feet of you. The target must succeed on a DC 18 Strength saving throw or be pushed up to 20 feet in a direction of your choice.\"+\r\n\t\"\\n   \" + toUni(\"Reverse Gravity\") + \". As an action, you can expend 3 charges to cast reverse gravity from the stone (save DC 18).\",\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tfixedDC : 18,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"reverse gravity\"],\r\n\t\tselection : [\"reverse gravity\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tadvantages : [[\"Strength\", true]],\r\n\tsavetxt : { text : [\"Adv. on Str saves\"] },\r\n\taction : [[\"bonus action\", \" (Flight)\"], [\"action\", \" (Grav. Thrust)\"]]\r\n}\r\nMagicItemsList[\"crystal blade\"] = {\r\n\tname : \"Crystal Blade\",\r\n\tsource : [[\"FToD\", 22]],\r\n\ttype : \"weapon (any sword)\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"This magic sword has 3 charges, regaining 1d3 at dawn. It deals an extra 1d8 radiant damage. When it does so to a creature, I can expend 1 charge to heal myself for the same amount. As a bonus action, I can have it start or stop shedding light: either 30 ft bright light and 30 ft dim, or only 10 ft dim.\",\r\n\tdescriptionFull : \"This magic sword's blade is fashioned from a horn or spine from a crystal dragon. When you hit with an attack roll using this sword, the target takes an extra 1d8 radiant damage.\"+\r\n\t\"\\n   The sword has 3 charges and regains 1d3 expended charges daily at dawn. When you hit a creature with an attack roll using the sword, you can expend 1 charge to regain a number of hit points equal to the extra radiant damage the sword dealt.\"+\r\n\t\"\\n   While you're holding the sword, you can use a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet, to cause it to shed dim light in a 10-foot radius, or to douse the light.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d3\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"sword\"],\r\n\t\titemName1stPage : [\"suffix\", \"Crystal Bladed\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\r\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/\\bcrystal bladed?\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d8 radiant damage; 1 charge to heal';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the words \"Crystal Blade\" or \"Crystal Bladed\" in a the name of a sword, it will be treated as the magic weapon Crystal Blade. The sword deals an extra 1d8 radiant damage and when it does so, I can expend 1 of its charges to heal me for the same amount.'\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"dragonhide belt, +1, +2, or +3\"] = {\r\n\tname : \"Dragonhide Belt, +1, +2, or +3\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a bonus to the save DCs of my ki features determined by its rarity: uncommon (+1), rare (+2), or very rare (+3). As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. I can't use this action again until the next dawn.\",\r\n\tdescriptionFull : \"This finely detailed belt is made of dragonhide. While wearing it, you gain a bonus to the saving throw DCs of your ki features. The bonus is determined by the belt's rarity: uncommon (+1), rare (+2), or very rare (+3). In addition, you can use an action to regain ki points equal to a roll of your Martial Arts die. You can't use this action again until the next dawn.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a monk\",\r\n\tprereqeval : function(v) { return classes.known.monk ? true : false; },\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regain ki points\",\r\n\tallowDuplicates : true,\r\n\tchoices : [\"+1 to ki save DCs (uncommon)\", \"+2 to ki save DCs (rare)\", \"+3 to ki save DCs (very rare)\"],\r\n\t\"+1 to ki save dcs (uncommon)\" : {\r\n\t\tname : \"Dragonhide Belt +1\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +1 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 1, text : \"I gain a +1 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 1;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +1 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+2 to ki save dcs (rare)\" : {\r\n\t\tname : \"Dragonhide Belt +2\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +2 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 2, text : \"I gain a +2 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 2;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +2 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"+3 to ki save dcs (very rare)\" : {\r\n\t\tname : \"Dragonhide Belt +3\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This finely detailed belt is made of dragonhide. While wearing it, I gain a +3 bonus to the saving throw DCs of my ki features. As an action, I can use it to regain ki points equal to a roll of my Martial Arts die. Once I do so, I can't use this action again until the next dawn.\",\r\n\t\taction : [[\"action\", \" (regain ki)\"]],\r\n\t\taddMod : [{\r\n\t\t\ttype : \"dc\", field : \"Wis\", mod : 3, text : \"I gain a +3 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t}],\r\n\t\tcalcChanges : {\r\n\t\t\tspellCalc : [\r\n\t\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\t\tif (type === \"dc\" && spellcasters.indexOf('monk') !== -1) return 3;\r\n\t\t\t\t},\r\n\t\t\t\t\"I gain a +3 bonus to the saving throw DCs of my ki features while attuned to this belt.\"\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"dragonlance\"] = {\r\n\tname : \"Dragonlance\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"weapon (lance or pike)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\tdescriptionFull : \"A dragonlance is a renowned weapon forged from rare metal with the aid of powerful artifacts associated with Bahamut. Different lances are forged for use by foot soldiers (as pikes) and by riders (as lances), but the magical properties of the weapons are the same.\"+\r\n\t\"\\n   You gain a +3 bonus to attack and damage rolls made with this magic weapon.\"+\r\n\t\"\\n   When you hit a Dragon with this weapon, the Dragon takes an extra 3d6 force damage, and any Dragon of your choice that you can see within 30 feet of you can immediately use its reaction to make a melee attack.\",\r\n\tchoices : [\"A lance for riders\", \"A pike for foot soldiers\"],\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\t\"a lance for riders\" : {\r\n\t\tname : \"Dragonlance (for riders)\",\r\n\t\tdescription : \"This magic lance forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"lance\",\r\n\t\t\tregExpSearch : /dragonlance/i,\r\n\t\t\tname : \"Dragonlance\",\r\n\t\t\tsource : [[\"FToD\", 23]],\r\n\t\t\tdescription : \"Reach, disadv. within 5 ft, two-handed if not mounted; +3d6 force damage vs. dragons\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"a pike for foot soldiers\" : {\r\n\t\tname : \"Dragonlance (for foot soldiers)\",\r\n\t\tdescription : \"This magic pike forged from rare metal grants me a +3 bonus to attack and damage rolls made with it. When I hit a dragon with it, the dragon takes an extra 3d6 force damage, and any Dragon of my choice that I can see within 30 ft can immediately use its reaction to make a melee attack.\",\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"pike\",\r\n\t\t\tregExpSearch : /^(?=.*dragonlance)(?=.*pike).*$/i,\r\n\t\t\tname : \"Dragonlance (pike)\",\r\n\t\t\tsource : [[\"FToD\", 23]],\r\n\t\t\tdescription : \"Heavy, reach, two-handed; +3d6 force damage vs. dragons\",\r\n\t\t\tmodifiers : [3, 3],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}\r\nMagicItemsList[\"dragon wing bow\"] = function () {\r\n\tvar obj = {\r\n\t\tname : \"Dragon Wing Bow\",\r\n\t\tsource : [[\"FToD\", 23]],\r\n\t\ttype : \"weapon (any bow)\",\r\n\t\trarity : \"rare\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This magic bow has limb tips shaped like dragon wings and is infused with the essence of a dragon's breath. Attacks made with it deal an extra 1d6 damage of the dragon's type. When I pull back the string without ammo loaded in it, the weapon creates its own that lasts until it hits or misses a target.\",\r\n\t\tdescriptionFull : \"The limb tips of this magic bow are shaped like a dragon's wings, and the weapon is infused with the essence of a chromatic, gem, or metallic dragon's breath. When you hit with an attack roll using this magic bow, the target takes an extra 1d6 damage of the same type as the breath infused in the bow\\u2014acid, cold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder.\"+\r\n\t\t\"\\n   If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you pull back the string. The ammunition created by the bow vanishes the instant after it hits or misses a target.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"bow\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\tvar testRegex = /bow/i;\r\n\t\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon || !v.isRangedWeapon || !/bow/i.test(v.baseWeaponName) || !/\\bdragon wing\\b/i.test(v.WeaponTextName)) return;\r\n\t\t\t\t\tvar oBowUse = false;\r\n\t\t\t\t\tfor (var i = 0; i < CurrentMagicItems.known.length; i++) {\r\n\t\t\t\t\t\tif (CurrentMagicItems.known[i] !== \"dragon wing bow\") continue;\r\n\t\t\t\t\t\tvar oBow = MagicItemsList[\"dragon wing bow\"][CurrentMagicItems.choices[i]];\r\n\t\t\t\t\t\t// see if this one matches\r\n\t\t\t\t\t\tif (oBow && oBow.dragonWingBowDragonType && v.WeaponTextName.toLowerCase().indexOf(oBow.dragonWingBowDragonType) !== -1) oBowUse = oBow;\r\n\t\t\t\t\t\t// save the first one found in case none match(ed)\r\n\t\t\t\t\t\tif (oBowUse === false) oBowUse = oBow;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (oBowUse) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 ' + oBowUse.dragonWingBowDmgType + ' damage; Creates own ammo';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Dragon Wing\" and a dragon type in the name of a bow, it will be treated as the magic weapon Dragon Wing Bow. The bow deals an extra 1d6 damage of the type of its associated dragon. It also requires no ammunition, creating its own if fired without loading ammunition.'\r\n\t\t\t]\r\n\t\t},\r\n\t\tchoices : [],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true\r\n\t};\r\n\tvar aDragons = [[\"Black\", \"acid\"], [\"Blue\", \"lightning\"], [\"Green\", \"poison\"], [\"Red\", \"fire\"], [\"White\", \"cold\"], [\"Amethyst\", \"force\"], [\"Crystal\", \"radiant\"], [\"Emerald\", \"psychic\"], [\"Sapphire\", \"thunder\"], [\"Topaz\", \"necrotic\"], [\"Brass\", \"fire\"], [\"Bronze\", \"lightning\"], [\"Copper\", \"acid\"], [\"Gold\", \"fire\"], [\"Silver\", \"cold\"]];\r\n\tvar aVowels = [\"a\", \"e\"];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i][0];\r\n\t\tvar sDragonLC = sDragon.toLowerCase();\r\n\t\tvar sDmg = aDragons[i][1];\r\n\t\tvar sNameTest = sDragon + \" Dragon Wing\";\r\n\t\tvar sNameFull = sNameTest + \" Bow\";\r\n\t\tvar sNameChoice = sDragon + \" dragon (\" + sDmg + \")\";\r\n\t\tvar sAorAn = aVowels.indexOf(sDragon[0].toLowerCase()) === -1 ? \"a \" : \"an \";\r\n\t\tobj.choices.push(sNameChoice);\r\n\t\tobj[sNameChoice.toLowerCase()] = {\r\n\t\t\tname : sNameFull,\r\n\t\t\tnameTest : sNameTest,\r\n\t\t\tdescription : \"This magic bow has limb tips shaped like dragon wings and is infused with the essence of \" + sAorAn + sDragonLC + \" dragon's breath. Attacks made with it deal an extra 1d6 \" + sDmg + \" damage. When I pull back the string without ammunition loaded in it, the weapon creates its own that lasts until it hits or misses a target.\",\r\n\t\t\tdragonWingBowDmgType : sDmg,\r\n\t\t\tdragonWingBowDragonType : sDragonLC\r\n\t\t}\r\n\t}\r\n\treturn obj;\r\n}();\r\nMagicItemsList[\"emerald pen\"] = {\r\n\tname : \"Emerald Pen\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"This pen is tipped with an emerald nib and requires no ink to write. While holding this pen, I can cast Illusory Script at will, requiring no material components.\",\r\n\tdescriptionFull : \"This pen is tipped with an emerald nib and requires no ink to write. While holding this pen, you can cast illusory script at will, requiring no material components.\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspells : [\"illusory script\"],\r\n\t\tselection : [\"illusory script\"],\r\n\t\tfirstCol : \"atwill\",\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"illusory script\" : {\r\n\t\t\tritual : false,\r\n\t\t\tchanges : \"Using the Emerald Pen, I can cast Illusory Script at will without requiring material components. Thus, the Ritual tag is removed.\"\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"flail of tiamat\"] = {\r\n\tname : \"Flail of Tiamat\",\r\n\tsource : [[\"FToD\", 23]],\r\n\ttype : \"weapon (flail)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical flail adds a +3 bonus to its attack and damage rolls and deals +5d4 damage. As an action once per dawn, I can have it breathe flames in a 90-ft cone that deals 14d6 damage, Dex save DC 18 to halve. Damage type is acid, cold, fire, lightning, or poison, which I can choose when I deal the damage (cone or hit).\",\r\n\tdescriptionFull : \"This magic flail is made in the image of Tiamat, with five jagged heads shaped like the heads of five different chromatic dragons. You gain a +3 bonus to attack and damage rolls made with this flail. When you hit with an attack roll using it, the target takes an extra 5d4 damage of your choice of one of the following damage types: acid, cold, fire, lightning, or poison.\"+\r\n\t\"\\n   While holding the flail, you can use an action and speak a command word to cause the heads to breathe multicolored flames in a 90-foot cone. Each creature in that area must make a DC 18 Dexterity saving throw. On a failed save, it takes 14d6 damage of one of the following damage types (your choice): acid, cold, fire, lightning, or poison. On a successful save, it takes half as much damage. Once this action is used, it can't be used again until the next dawn.\",\r\n\tweight : 2,\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Breathe Flames\",\r\n\taction : [[\"action\", \" (Breathe Flames)\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*flail)(?=.*tiamat).*$/i,\r\n\t\tname : \"Flail of Tiamat\",\r\n\t\tsource : [[\"FToD\", 23]],\r\n\t\tdescription : \"+5d4 acid, cold, fire, lightning, or poison damage\",\r\n\t\tmodifiers : [3, 3],\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nAddFeatureChoice(MagicItemsList[\"figurine of wondrous power\"], false, \"Gold Canary\", {\r\n\tsource : [[\"FToD\", 23]],\r\n\trarity : \"legendary\",\r\n\tdescription : \"As an action, I can speak the command word and throw this statuette to an empty space within 60 ft, where it becomes a giant canary for 8 hours (or once a year an adult gold dragon for 1 hour), until I use the command again, or it drops to 0 hp. It is friendly, understands my languages, and obeys my commands.\",\r\n\tdescriptionLong : \"As an action, I can speak the command word and throw this gold statuette of a canary to an unoccupied space within 60 ft, where it becomes a giant canary for up to 8 hours, until I use an action to repeat the command word, or it reaches 0 HP. It is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. Once per year, I can have it become an adult gold dragon for up to 1 hour. When it reverts back to a figurine, it can't be used again until the next dawn (canary) or 1 year has passed (dragon).\",\r\n\tdescriptionFull : \"This gold statuette is carved in the likeness of a canary and is small enough to fit in a pocket. If you use an action to speak the command word and throw the figurine to a point on the ground within 60 feet of you, the figurine becomes a living creature in one of two forms (you choose). If there isn't enough space for the creature where it would appear, the figurine doesn't become a creature. The two forms are as follows:\"+\r\n\t\"\\n   \" + toUni(\"Giant Canary Form\") + \". The figurine becomes a giant canary for up to 8 hours and can be ridden as a mount. Once the figurine has become a giant canary, it can't be used this way again until the next dawn.\"+\r\n\t\"\\n   \" + toUni(\"Gold Dragon Form\") + \". While you are missing half or more of your hit points, you can speak a different command word and the figurine becomes an adult gold dragon (see its stat block in the Monster Manual) for up to 1 hour. The dragon can't use any legendary actions or lair actions. Once the figurine has become an adult gold dragon, it can't be used this way again until 1 year has passed.\"+\r\n\t\"\\n   In either form, the creature is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the creature defends itself but takes no other actions.\"+\r\n\t\"\\n   The creature exists for a duration specific to each form. At the end of the duration, the creature reverts to its figurine form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature becomes a figurine again, its property can't be used again until a certain amount of time has passed, as specified in the description.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Gold Canary Figurine [canary form]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Gold Canary Figurine [dragon form]\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"1 year\"\r\n\t}]\r\n}, false, true);\r\nMagicItemsList[\"platinum scarf\"] = {\r\n\tname : \"Platinum Scarf\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can pull a scale from this scarf, of which it has 3 per dawn. When I do so, I can choose the effect: heal 10d4 HP to a creature I touch, or for 1 hour it becomes a shield (+1 shield that grants radiant damage immunity) or a light hammer (deals 2d4 radiant damage and +2d4 to chromatic dragons).\",\r\n\tdescriptionFull : \"This scarf is made of sturdy cloth and covered in platinum-colored scales.\"+\r\n\t\"\\n   As an action, you can pull a scale from the scarf and speak a command word. When you do so, choose one of the following effects:\"+\r\n\t\"\\n   \" + toUni(\"Breath of Life\") + \". The scale disappears, and you or a creature you touch regains 10d4 hit points.\"+\r\n\t\"\\n   \" + toUni(\"Platinum Shield\") + \". For 1 hour or until you dismiss it (no action required), the scale becomes a +1 shield, which you or another creature can use. A creature wielding the shield has immunity to radiant damage.\"+\r\n\t\"\\n   \" + toUni(\"Radiant Hammer\") + \". For 1 hour or until you dismiss it (no action required), the scale becomes a magic light hammer, which you or another creature can use. The weapon deals 2d4 radiant damage, instead of the bludgeoning damage normal for a light hammer. It deals an extra 2d4 radiant damage to chromatic dragons.\"+\r\n\t\"\\n   Once three scales have been pulled from the scarf, no more scales can be removed until the next dawn, when all the missing scales grow back. If you pull off a scale but don't speak a command word, it disappears after 1 minute.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\taction : [[\"action\", \"\"]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"light hammer\",\r\n\t\tregExpSearch : /^(?=.*platinum scarf)(?=.*radiant hammer).*$/i,\r\n\t\tname : \"Platinum Scarf's Radiant Hammer\",\r\n\t\tdamage : [2, 4, \"radiant\"],\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\tdescription : \"Light, thrown; +2d4 damage vs. chromatic dragons\",\r\n\t\tselectNow : true\r\n\t}]\r\n}\r\nMagicItemsList[\"potion of dragon's majesty\"] = function () { // NOG AFMAKEN!!!!\r\n\tvar obj = {\r\n\t\tname : \"Potion of Dragon's Majesty\",\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\ttype : \"potion\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"Once as an action, I can drink this potion or administer it to transform into an adult dragon for 1 hour. They can't use Change Shape, legendary actions, or lair actions. They retain languages, personality, and memories, but their equipment melds into the form or falls to the ground (their choice).\",\r\n\t\tdescriptionFull : \"This potion looks like liquid gold, with a single scale from a chromatic, gem, or metallic dragon suspended in it. When you drink this potion, you transform into an adult dragon of the same kind as the dragon the scale came from. The transformation lasts for 1 hour. Any equipment you are wearing or carrying melds into your new form or falls to the ground (your choice). For the duration, you use the game statistics of the adult dragon instead of your own, but you retain your languages, personality, and memories. You can't use a dragon's Change Shape or its legendary or lair actions.\",\r\n\t\tweight : 0.5,\r\n\t\tchoices : [],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true\r\n\t}\r\n\tvar aDragons = [\"Black\", \"Blue\", \"Green\", \"Red\", \"White\", \"Amethyst\", \"Crystal\", \"Emerald\", \"Sapphire\", \"Topaz\", \"Brass\", \"Bronze\", \"Copper\", \"Gold\", \"Silver\"];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i];\r\n\t\tvar sNameChoice = sDragon + \" Dragon\";\r\n\t\tobj.choices.push(sNameChoice);\r\n\t\tobj[sNameChoice.toLowerCase()] = {\r\n\t\t\tname : \"Potion of \" + sDragon + \" Dragon's Majesty\",\r\n\t\t\tdescription : \"Once as an action, I can drink this potion or administer it to transform into an adult \" + sDragon.toLowerCase() + \" dragon for 1 hour. They can't use Change Shape, legendary actions, or lair actions. They retain languages, personality, and memories, but their equipment melds into the form or falls to the ground (their choice).\"\r\n\t\t}\r\n\t}\r\n\treturn obj;\r\n}();\r\nMagicItemsList[\"ruby weave gem\"] = {\r\n\tname : \"Ruby Weave Gem\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"While I hold this gem, I can use it as my spellcasting focus. It has 3 charges per dawn. When I cast a spell while holding it, I can use charges to ignore 500 gp per charge of components with a gp cost. When I finish a long rest, I learn any one spell of a level I can cast until my next long rest. I can cast it using spell slots.\",\r\n\tdescriptionFull : \"While you are holding this gem, you can use it as a spellcasting focus for your spells.\"+\r\n\t\"\\n   The gem has 3 charges and regains all expended charges daily at dawn. When you cast a spell while holding this gem, you can expend up to 3 charges to ignore the spell's material components with a gold piece cost, up to 500 gp per charge expended.\"+\r\n\t\"\\n   When you finish a long rest, choose a spell from any class list. The spell you choose must be of a level you can cast. You know the chosen spell and can cast it with your spell slots of the appropriate level until the end of your next long rest.\",\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Any one spell per LR, so\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}, {\r\n\t\tname : \"add as many as needed\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}, {\r\n\t\tname : \"to have some choices.\",\r\n\t\t\"class\" : \"any\",\r\n\t\tpsionic : false,\r\n\t\tfirstCol : \"checkbox\"\r\n\t}]\r\n}\r\nMagicItemsList[\"sapphire buckler\"] = {\r\n\tname : \"Sapphire Buckler\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"shield\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"While I wield this crystalline blue shield, I have resistance to psychic and thunder damage. As a reaction when I take damage from a creature within 5 ft, I can deal it 2d6 thunder damage. As an action once per dawn, I can use it to know the direction of all aberrations within 1 mile until the end of my next turn.\",\r\n\tdescriptionFull : \"This crystalline blue shield is fashioned from a sapphire dragon's scale and is created to aid in rooting out the influence of Aberrations. While wielding the shield, you have resistance to psychic and thunder damage. Also, when you take damage from a creature that is within 5 feet of you, you can use your reaction to deal 2d6 thunder damage to that creature.\"+\r\n\t\"\\n   As an action, you can use the shield to help you locate Aberrations until the end of your next turn. If any Aberrations are within 1 mile of you, the shield emits a low humming tone for a moment, and you know the direction of all Aberrations within that range. Once this property is used, it can't be used again until the next dawn.\",\r\n\tweight : 6,\r\n\tshieldAdd : \"Sapphire Buckler\",\r\n\tdmgres : [\"Psychic\", \"Thunder\"],\r\n\taction : [[\"reaction\", \" (damaged in melee)\"], [\"action\", \" (locate aberrations)\"]]\r\n}\r\nMagicItemsList[\"topaz annihilator\"] = {\r\n\tname : \"Topaz Annihilator\",\r\n\tsource : [[\"FToD\", 24]],\r\n\ttype : \"weapon (firearm)\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This magical firearm deals 2d6 necrotic damage on a hit. It has the two-handed property, requires no ammunition, 100 ft short range, and 300 ft long range. Targets reduced to 0 HP by it turn to dust and only True Resurrection or Wish can restore them to life. Once per dawn, I can use it to cast Disintegrate (DC 18).\",\r\n\tdescriptionFull : \"This magic ranged weapon resembles a musket, but in lieu of any ammunition, it holds a glowing yellow scale from a topaz dragon in its heart.\"+\r\n\t\"\\n   The weapon has a normal range of 100 feet and a long range of 300 feet, and it has the two-handed property. It deals 2d6 necrotic damage on a hit. If this damage reduces a creature or object to 0 hit points, the target is reduced to dust. A creature reduced to dust can be restored to life only by a true resurrection or wish spell.\"+\r\n\t\"\\n   While the weapon is on your person, you can use an action to cast the disintegrate spell (save DC 18). Once this property is used, it can't be used again until the next dawn.\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*Topaz)(?=.*tiamat).*$/i,\r\n\t\tname : \"Topaz Annihilator\",\r\n\t\tsource : [[\"FToD\", 24]],\r\n\t\tability : 2,\r\n\t\ttype : \"firearm\",\r\n\t\tdamage : [2, 6, \"necrotic\"],\r\n\t\trange : \"100/300 ft\",\r\n\t\tweight : 10,\r\n\t\tdescription : \"Two-handed; Targets reduced to 0 HP turn to dust\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"Disintegrate\",\r\n\tfixedDC : 18,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per dawn\",\r\n\t\tspells : [\"disintegrate\"],\r\n\t\tselection : [\"disintegrate\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n}\r\nvar FToD_HoardItems = {\r\n\t\"dragon's wrath weapon\" : [\r\n\t\t\"This weapon is decorated with dragon heads, claws, wings, scales, or Draconic letters. When it steeps in a dragon's hoard, it absorbs the energy of the dragon's breath weapon and deals damage of that type with its special properties.\",\r\n\t\t\">>Slumbering (Uncommon)<<. Whenever you roll a 20 on your attack roll with this weapon, each creature of your choice within 5 feet of the target takes 5 damage of the type dealt by the dragon's breath weapon.\",\r\n\t\t\">>Stirring (Rare)<<. The Stirring weapon has the Slumbering property. In addition, you gain a +1 bonus to attack and damage rolls made using the weapon. On a hit, the weapon deals an extra 1d6 damage of the type dealt by the dragon's breath weapon.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened weapon has the Slumbering property, and it improves on the Stirring property. The bonus to attack and damage rolls increases to +2, and the extra damage dealt by the weapon increases to 2d6.\",\r\n\t\t\"As an action, you can unleash a 30-foot cone of destructive energy from the weapon. Each creature in that area must make a DC 16 Dexterity saving throw, taking 8d6 damage of the type dealt by the dragon's breath weapon on a failed save, or half as much damage on a successful one. Once this action is used, it can't be used again until the next dawn.\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant weapon has the Slumbering property, and it improves on the Stirring and Wakened properties. The bonus to attack and damage rolls increases to +3, and the extra damage dealt by the weapon increases to 3d6.\",\r\n\t\t\"The cone of destructive energy the weapon creates increases to a 60-foot cone, the save DC increases to 18, and the damage increases to 12d6.\"\r\n\t],\r\n\t\"dww-slumbering\" : {\r\n\t\tdescription : \"This magic weapon decorated with draconic ornaments has absorbed the energy of >>a dragon<< dragon's breath weapon. Whenever I roll a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 >>dmg type<< damage.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*slumbering)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On 20 to hit: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Slumbering\\\" in the name of a weapon, it will be treated as the magic item Slumbering Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (slumbering)\\\"). Whenever I roll a 20 on an attack roll with a slumbering dragon's wrath weapon, each creature of my choice within 5 ft of the target takes 5 damage of the associated dragon's type. \"\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"dww-stirring\" : {\r\n\t\tdescription : \"This dragon decorated weapon has absorbed the energy of >>a dragon<< dragon's breath weapon. I add +1 on attack and damage rolls made with it and it deals +1d6 >>dmg type<< damage. When I roll a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 >>dmg type<< damage.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*stirring)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Stirring\\\" in the name of a weapon, it will be treated as the magic item Stirring Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (stirring)\\\"). A stirring dragon's wrath weapon adds +1 to attack and damage rolls made with it. On a hit, the weapon deals an extra +1d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*stirring)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"dww-wakened\" : {\r\n\t\tdescription : \"This weapon uses >>dmg type<< of >>a dragon<< dragon. It adds +2 to its attack and damage rolls and deals +2d6 >>dmg type<< damage. On a 20 to hit, any creature of my choice in 5 ft of the target take 5 damage. As an action once per dawn, it can do a 30-ft cone, Dex DC 16 half, 8d6 damage dragon breath.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*wakened)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Wakened\\\" in the name of a weapon, it will be treated as the magic item Wakened Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (wakened)\\\"). A wakened dragon wrath weapon adds +2 to attack and damage rolls made with it. On a hit, the weapon deals an extra +2d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*wakened)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t},\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tlimfeaname : \">>dragon<< Dragon's Wrath Breath (wakened)\",\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : \"^(?=.*wakened)(?=.*>>dragon<< (dragon'?s? wrath|DW))(?=.*breath).*$\",\r\n\t\t\tname : \">>dragon<< Dragon's Wrath Breath (wakened)\",\r\n\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\tability : 0,\r\n\t\t\ttype : \"Magic Item\",\r\n\t\t\tdamage : [8, 6, \">>type<<\"],\r\n\t\t\trange : \"30-ft cone\",\r\n\t\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tdc : true,\r\n\t\t\tmodifiers : [8, \"\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"dww-ascendant\" : {\r\n\t\tdescription : \"This weapon uses >>dmg type<< of >>a dragon<< dragon. It adds +3 to its attack and damage rolls and deals +3d6 >>dmg type<< damage. On a 20 to hit, any creature of my choice in 5 ft of the target take 5 damage. As an action once per dawn, it can do a 60-ft cone, Dex DC 18 half, 12d6 damage dragon breath.\",\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*ascendant)(?=.*\\b(black|blue|green|red|white|amethyst|crystal|emerald|sapphire|topaz|brass|bronze|copper|gold|silver).(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tvar sWeaNmLC = v.WeaponTextName.toLowerCase();\r\n\t\t\t\t\t\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\t\t\t\t\t\tvar sDmgType = false;\r\n\t\t\t\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\t\t\t\tif (sWeaNmLC.indexOf(aDragons[i][0]) !== -1) {\r\n\t\t\t\t\t\t\t\tsDmgType = aDragons[i][1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!sDmgType) return;\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+3d6 ' + sDmgType + ' damage; On 20: 5 ' + sDmgType + ' damage to chosen in 5 ft of target';\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"If I include the words \\\"TYPE Dragon's Wrath\\\" or \\\"TYPE DW\\\" (where \\\"TYPE\\\" is replaced with a dragon's type like \\\"Red\\\") and \\\"Ascendant\\\" in the name of a weapon, it will be treated as the magic item Ascendant Dragon's Wrath Weapon (e.g. \\\"Red DW Longbow (ascendant)\\\"). An ascendant dragon wrath weapon adds +3 to attack and damage rolls made with it. On a hit, the weapon deals an extra +3d6 damage and on a 20 on an attack roll with it, each creature of my choice within 5 ft of the target takes 5 damage. The damage is of the associated dragon's type.\"\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && (v.isMeleeWeapon || v.isRangedWeapon) && /^(?=.*ascendant)(?=.*\\b(dragon'?s?.wrath|DW)\\b).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t},\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\tlimfeaname : \">>dragon<< Dragon's Wrath Breath (ascendant)\",\r\n\t\taction : [[\"action\", \"Dragon's Wrath Breath Weapon\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : \"^(?=.*ascendant)(?=.*>>dragon<< (dragon'?s? wrath|DW))(?=.*breath).*$\",\r\n\t\t\tname : \">>dragon<< Dragon's Wrath Breath (ascendant)\",\r\n\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\tability : 0,\r\n\t\t\ttype : \"Magic Item\",\r\n\t\t\tdamage : [12, 6, \">>type<<\"],\r\n\t\t\trange : \"60-ft cone\",\r\n\t\t\tdescription : \"Hits all in area; Dex save, success - half damage; Usable only once per dawn\",\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tdc : true,\r\n\t\t\tmodifiers : [10, \"\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\tdragonsWrathWeaponCreate : function() {\r\n\t\tvar aTypes = [[\"Slumbering\", \"uncommon\"], [\"Stirring\", \"rare\"], [\"Wakened\", \"very rare\"], [\"Ascendant\", \"legendary\"]];\r\n\t\tvar aDragons = [[\"Black\", \"acid\"], [\"Blue\", \"lightning\"], [\"Green\", \"poison\"], [\"Red\", \"fire\"], [\"White\", \"cold\"], [\"Amethyst\", \"force\"], [\"Crystal\", \"radiant\"], [\"Emerald\", \"psychic\"], [\"Sapphire\", \"thunder\"], [\"Topaz\", \"necrotic\"], [\"Brass\", \"fire\"], [\"Bronze\", \"lightning\"], [\"Copper\", \"acid\"], [\"Gold\", \"fire\"], [\"Silver\", \"cold\"]];\r\n\t\tvar aVowels = [\"a\", \"e\"];\r\n\t\tvar sDescriptionFull = FToD_HoardItems[\"dragon's wrath weapon\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); });\r\n\t\tvar sNotesDescription = FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon's wrath weapon\"]);\r\n\t\tfor (var t = 0; t < aTypes.length; t++) {\r\n\t\t\tvar sItemType = aTypes[t][0];\r\n\t\t\tvar sItemTypeLC = sItemType.toLowerCase();\r\n\t\t\tvar sItemName = \"Dragon's Wrath Weapon (\" + sItemTypeLC + \")\";\r\n\t\t\tvar sItemNameLC = sItemName.toLowerCase();\r\n\t\t\tvar oDwwObj = FToD_HoardItems[\"dww-\"+sItemTypeLC];\r\n\t\t\tMagicItemsList[sItemNameLC] = {\r\n\t\t\t\tname : sItemName,\r\n\t\t\t\tsource : [[\"FToD\", 25]],\r\n\t\t\t\ttype : \"weapon (any)\",\r\n\t\t\t\trarity : aTypes[t][1],\r\n\t\t\t\tattunement : true,\r\n\t\t\t\tdescription : oDwwObj.description.replace(/>>a dragon<</ig, \"a\").replace(/>>dmg type<< /ig, \"\"),\r\n\t\t\t\tdescriptionFull : sDescriptionFull,\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Full Text\",\r\n\t\t\t\t\tnote : sNotesDescription\r\n\t\t\t\t}],\r\n\t\t\t\tallowDuplicates : true,\r\n\t\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\tchoices : []\r\n\t\t\t}\r\n\t\t\tfor (var sAttr in oDwwObj) {\r\n\t\t\t\tif (/^(description|weaponOptions|limfeaname)$/.test(sAttr)) continue;\r\n\t\t\t\tMagicItemsList[sItemNameLC][sAttr] = oDwwObj[sAttr];\r\n\t\t\t}\r\n\t\t\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\t\t\tvar sDragon = aDragons[i][0];\r\n\t\t\t\tvar sDragonLC = sDragon.toLowerCase();\r\n\t\t\t\tvar sDmg = aDragons[i][1];\r\n\t\t\t\tvar sNameChoice = sDragon + \" dragon (\" + sDmg + \")\";\r\n\t\t\t\tvar sNameChoiceLC = sNameChoice.toLowerCase();\r\n\t\t\t\tvar sNameTest = sItemType + \" \" + sDragon + \" Dragon's Wrath\";\r\n\t\t\t\tvar sAorAnDragon = (aVowels.indexOf(sDragonLC[0]) === -1 ? \"a \" : \"an \") + sDragonLC;\r\n\t\t\t\tMagicItemsList[sItemNameLC].choices.push(sNameChoice);\r\n\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC] = {\r\n\t\t\t\t\tname : sNameTest + \" Weapon\",\r\n\t\t\t\t\tnameTest : sNameTest,\r\n\t\t\t\t\tdescription : oDwwObj.description.replace(/>>a dragon<</ig, sAorAnDragon).replace(/>>dmg type<</ig, sDmg),\r\n\t\t\t\t\tchooseGear : {\r\n\t\t\t\t\t\ttype : \"weapon\",\r\n\t\t\t\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\t\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\t\t\t\titemName1stPage : [\"between\", sDragon + \" Dragon's Wrath\", \"(\" + sItemTypeLC + \")\"]\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (oDwwObj.limfeaname) {\r\n\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].limfeaname = [oDwwObj.limfeaname.replace(/>>dragon<</ig, sDragon)]\r\n\t\t\t\t}\r\n\t\t\t\tif (oDwwObj.weaponOptions) {\r\n\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].weaponOptions = [{}];\r\n\t\t\t\t\tfor (var sAttr in oDwwObj.weaponOptions[0]) {\r\n\t\t\t\t\t\tvar toSet = oDwwObj.weaponOptions[0][sAttr];\r\n\t\t\t\t\t\tswitch (sAttr) {\r\n\t\t\t\t\t\t\tcase \"regExpSearch\":\r\n\t\t\t\t\t\t\t\ttoSet = RegExp(toSet.replace(/>>dragon<</ig, sDragonLC), \"i\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\ttoSet = toSet.replace(/>>dragon<</ig, sDragon);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"damage\":\r\n\t\t\t\t\t\t\t\ttoSet = [toSet[0], toSet[1], sDmg];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tMagicItemsList[sItemNameLC][sNameChoiceLC].weaponOptions[0][sAttr] = toSet;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"dragon-touched focus\" : [\r\n\t\t\"This wondrous item can be a scepter, an orb, an amulet, a crystal, or another finely crafted object. It typically incorporates imagery of dragons' wings, claws, teeth, or scales.\",\r\n\t\t\">>Slumbering (Uncommon)<<. You have advantage on initiative rolls. While you are holding the focus, it can function as a spellcasting focus for all your spells.\",\r\n\t\t\">>Stirring (Rare)<<. The Stirring focus has the Slumbering property, and it gains an additional property determined by the family of the dragon in whose hoard it became Stirring:\",\r\n\t\t\"\\u2022 Chromatic. Whenever you use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, roll a d6, and you gain a bonus equal to the number rolled to one of the spell's damage rolls.\",\r\n\t\t\"\\u2022 Gem. Whenever you use a spell slot to cast a spell, you can immediately teleport to an unoccupied space you can see within 15 feet of you.\",\r\n\t\t\"\\u2022 Metallic. When a creature you can see within 30 feet of you makes a saving throw, you can use your reaction to give that creature advantage on the saving throw.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened focus has the Slumbering and Stirring properties, and while you are holding a Wakened focus, you can use it to cast certain spells. Once the item is used to cast a given spell, it can't be used to cast that spell again until the next dawn. The spells are determined by the family of the dragon in whose hoard it became Wakened. An asterisk indicates a new spell that appears earlier in this chapter.\",\r\n\t\t\"\\u2022 Chromatic. Hold monster, Rime's binding ice\",\r\n\t\t\"\\u2022 Gem. Rary's telepathic bond, Raulothim's psychic lance\",\r\n\t\t\"\\u2022 Metallic. Fizban's platinum shield, legend lore\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant focus has the Slumbering, Stirring, and Wakened properties. In addition, when you cast a spell of 1st level or higher while holding this focus, you can treat the spell as if it were cast using a 9th-level spell slot. Once this property is used, it can't be used again until the next dawn.\"\r\n\t],\r\n\tdtf_chromatic : {\r\n\t\tcalcChanges : {\r\n\t\t\tspellAdd : [\r\n\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\tif (CurrentSpells[spName].refType == \"class\" && !spellObj.psionic && spellObj.level !== 0 && (/(check|checked|marked)box/i.test(spellObj.firstCol) || (spName === \"warlock\" && !/atwill|sp/i.test(spellObj.firstCol)))) return genericSpellDmgEdit(spellKey, spellObj, \"acid|cold|fire|lightning|lightn\\\\.?|poison\", \"1d6\", true, true);\r\n\t\t\t\t},\r\n\t\t\t\t\"Whenever I use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, roll a d6, and I gain a bonus equal to the number rolled to one of the spell's damage rolls.\"\r\n\t\t\t]\r\n\t\t},\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (Hold Monster)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (Rime's Binding Ice)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"hold monster\", \"rime's binding ice\"],\r\n\t\t\tselection : [\"hold monster\", \"rime's binding ice\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_gem : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (Rary's Telepathic Bond)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (R's Psychic Lance)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"rary's telepathic bond\", \"raulothim's psychic lance\"],\r\n\t\t\tselection : [\"rary's telepathic bond\", \"raulothim's psychic lance\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_metallic : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (F's Platinum Shield)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}, {\r\n\t\t\tname : \"Dragon-Touched Focus (Legend Lore)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Once per dawn\",\r\n\t\t\tspells : [\"fizban's platinum shield\", \"legend lore\"],\r\n\t\t\tselection : [\"fizban's platinum shield\", \"legend lore\"],\r\n\t\t\tfirstCol : \"oncelr\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\tdtf_ascendant : {\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Dragon-Touched Focus (upcast to 9th-level)\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}]\r\n\t},\r\n\t\"dragon vessel\" : [\r\n\t\t\"This vessel can be a potion bottle, drinking horn, or other container meant to hold a liquid.\",\r\n\t\t\">>Slumbering (Uncommon)<<. As a bonus action, if the vessel is empty, you can speak the command word to fill the vessel with one of the following (your choice): ale, olive oil, a potion of healing, or a potion of climbing. Once this property is used, it can't be used until the next dawn. A potion you create in this way loses its magical properties if it isn't imbibed within 24 hours.\",\r\n\t\t\">>Stirring (Rare)<<. In addition to the options for a Slumbering vessel, you can fill a Stirring vessel with mead, a potion of fire breath, or a potion of healing (greater).\",\r\n\t\t\">>Wakened (Very Rare)<<. In addition to the options for a Slumbering or Stirring vessel, you can fill a Wakened vessel with wine, a potion of flying, or a potion of healing (superior).\",\r\n\t\t\">>Ascendant (Legendary)<<. In addition to the options for other states, you can fill an Ascendant vessel with whiskey, a potion of healing (supreme), or a potion of dragon's majesty (described earlier in this chapter).\"\r\n\t],\r\n\t\"scaled ornament\" : [\r\n\t\t\"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes.\",\r\n\t\t\">>Slumbering (Uncommon)<<. You have advantage on saving throws you make to avoid being charmed or frightened or to end those conditions on you.\",\r\n\t\t\">>Stirring (Rare)<<. You gain a +1 bonus to AC, and you can't be charmed or frightened. Moreover, each creature of your choice within 30 feet of you has advantage on saving throws it makes to avoid being charmed or frightened or to end those conditions on itself.\",\r\n\t\t\">>Wakened (Very Rare)<<. The Wakened ornament has the Stirring property. In addition, when you would take damage of the type dealt by the breath of the dragon in whose hoard the ornament became Wakened, you can use your reaction to take no damage instead, and you regain hit points equal to the damage you would have taken. Once this property is used, it can't be used again until the next dawn.\",\r\n\t\t\">>Ascendant (Legendary)<<. The Ascendant ornament has the Stirring and Wakened properties. In addition, while you are wearing the ornament, you gain a flying speed equal to your walking speed and can hover. While you are flying using this speed, spectral dragon wings appear on your back.\"\r\n\t],\r\n\thoardMagicItems : [\r\n\t\t\"\\n\\n\\u25C6 Hoard Magic Items (FToD 25)\",\r\n\t\t\"Certain magic items can absorb the ambient magic of a dragon's hoard. The mightier the dragon, the more powerful the item becomes when it is steeped in the dragon's hoard. These items, called hoard items, have four states. A hoard item in its Slumbering state has certain base properties, and it gains additional properties when it enters the Stirring (young dragon), Wakened (adult dragon), or Ascendant (ancient dragon) state.\",\r\n\t\t\"Ordinarily, a hoard item must steep in a dragon's hoard for 1 year to reach the maximum possible state allowed by the age of the hoard's dragon. For example, a hoard item that steeps in an adult dragon's hoard for 1 year enters its Wakened state.\",\r\n\t\t\"When a dragon is slain, the magic surrounding its hoard becomes volatile. This allows a hoard item to steep more quickly in the hoard. A hoard item steeped in a dragon's hoard for 8 hours rises one state, as long as the steeping begins within 1 hour of the dragon's death and occurs within the dragon's lair. Steeping in this way can't raise the state of the item beyond the state associated with the dragon's age.\",\r\n\t\t\"Just as hoard items can grow in power by absorbing the ambient magic of a dragon's hoard, so too can these treasures fall back into slumber. If no creature is attuned to a hoard item and that item isn't in a dragon's hoard, the item decreases in power by one state every 30 days until it is Slumbering.\"\r\n\t].join(\"\\n   \"),\r\n\tto1stPerson : function (sDescr) {\r\n\t\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t\t.replace(/(by|of|to|for|on) I\\b|\\bI to|\\bI an?\\b/ig, \"$1 me\")\r\n\t\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\r\n\t\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t\t.replace(/   >>(.*?)( \\(.*?\\))?<<. /g, function(a, p1, p2) { return \"\\n   \" + p1.toUpperCase() + p2.toLowerCase() + \"\\n   \"; })+\r\n\t\t\tFToD_HoardItems.hoardMagicItems;\r\n\t}\r\n}\r\nFToD_HoardItems.dragonsWrathWeaponCreate();\r\nMagicItemsList[\"dragon-touched focus\"] = {\r\n\tname : \"Dragon-Touched Focus\",\r\n\tnameTest : /^(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\tsource : [[\"FToD\", 26]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"\",\r\n\tdescriptionFull : FToD_HoardItems[\"dragon-touched focus\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Full Text\",\r\n\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon-touched focus\"])\r\n\t}],\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\tadvantages : [[\"Initiative\", true]],\r\n\tchoices : [\"Slumbering (uncommon)\", \"Stirring - Chromatic (rare)\", \"Stirring - Gem (rare)\", \"Stirring - Metallic (rare)\", \"Wakened - Chromatic (very rare)\",  \"Wakened - Gem (very rare)\",  \"Wakened - Metallic (very rare)\", \"Ascendant - Chromatic (legendary)\", \"Ascendant - Gem (legendary)\", \"Ascendant - Metallic (legendary)\"],\r\n\t\"slumbering (uncommon)\" : {\r\n\t\tname : \"Dragon-Touched Focus (slumbering)\",\r\n\t\tnameTest : /^(?=.*slumbering)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"This wondrous item can be a scepter, an orb, an amulet, a crystal, or another finely crafted object. It typically incorporates imagery of dragons' wings, claws, teeth, or scales. It grants me advantage on initiative rolls. While I am holding the focus, it can function as a spellcasting focus for all my spells.\"\r\n\t},\r\n\t\"stirring - chromatic (rare)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of chromatic dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus and when I use a spell slot to cast a spell that deals acid, cold, fire, lightning, or poison damage, I can add +1d6 to one of the spell's damage rolls.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges\r\n\t},\r\n\t\"stirring - gem (rare)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of gem dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus and when I use a spell slot to cast a spell I can immediately teleport to an unoccupied space I can see within 15 ft.\"\r\n\t},\r\n\t\"stirring - metallic (rare)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (stirring)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*stirring)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"This ornate object with imagery of metallic dragon limbs or scales grants me advantage on initiative rolls. While I am holding it, I can use it as my spellcasting focus. As a reaction when a creature I can see within 30 ft makes a saving throw, I can grant it advantage on that save.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]]\r\n\t},\r\n\t\"wakened - chromatic (very rare)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus and I can add +1d6 to one damage roll of spells I cast with a spell slot that deal acid, cold, fire, lightning, or poison damage. It also grants me advantage on initiative and allows me to cast Hold Monster and Rime's Binding Ice each once per dawn.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges,\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_chromatic.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_chromatic.extraLimitedFeatures\r\n\t},\r\n\t\"wakened - gem (very rare)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus and I can immediately teleport to an unoccupied space I can see within 15 ft when I cast a spell with a spell slot. It also grants me advantage on initiative and allows me to cast Rary's Telepathic Bond and Raulothim's Psychic Lance each once per dawn.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_gem.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_gem.extraLimitedFeatures\r\n\t},\r\n\t\"wakened - metallic (very rare)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (wakened)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*wakened)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"While holding this object, I can use it as my spellcasting focus. As a reaction when a creature I can see within 30 ft makes a saving throw, I can grant it advantage on that save. It also grants me advantage on initiative and allows me to cast Fizban's Platinum Shield and Legend Lore each once per dawn.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_metallic.extraLimitedFeatures,\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_metallic.spellcastingBonus\r\n\t},\r\n\t\"ascendant - chromatic (legendary)\" : {\r\n\t\tname : \"Chromatic Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*chromatic)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus and I can add 1d6 to a roll of acid, cold, fire, lightning, or poison damage for spells I cast with a spell slot. It grants me adv. on initiative and allows me to cast 2 spells once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\tcalcChanges : FToD_HoardItems.dtf_chromatic.calcChanges,\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_chromatic.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_chromatic.extraLimitedFeatures)\r\n\t},\r\n\t\"ascendant - gem (legendary)\" : {\r\n\t\tname : \"Gem Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*gem)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus and I can teleport to an empty space I can see in 15 ft when I cast a spell with a spell slot. It also grants me adv. on initiative and allows me to cast 2 spells each once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\tspellcastingAbility : \"class\",\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_gem.spellcastingBonus,\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_gem.extraLimitedFeatures)\r\n\t},\r\n\t\"ascendant - metallic (legendary)\" : {\r\n\t\tname : \"Metallic Dragon-Touched Focus (ascendant)\",\r\n\t\tnameTest : /^(?=.*metallic)(?=.*ascendant)(?=.*dragon.touched)(?=.*(focus|rod|wand|staff|scepter|orb|amulet|crystal)).*$/i,\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"While holding this, I can use it as my spellcasting focus. As a reaction when a creature I can see in 30 ft makes a save, I can grant it adv. on that save. It also grants me adv. on initiative and allows me to cast 2 spells each once per dawn. Once per dawn, I can treat a spell I cast as if casted with a 9th-level spell slot.\",\r\n\t\taction : [[\"reaction\", \"Dragon-Touched Focus (adv. on save)\"]],\r\n\t\tspellcastingAbility : \"class\",\r\n\t\textraLimitedFeatures : FToD_HoardItems.dtf_metallic.extraLimitedFeatures,\r\n\t\tspellcastingBonus : FToD_HoardItems.dtf_ascendant.extraLimitedFeatures.concat(FToD_HoardItems.dtf_metallic.spellcastingBonus)\r\n\t}\r\n}\r\nMagicItemsList[\"dragon vessel\"] = {\r\n\tname : \"Dragon Vessel\",\r\n\tsource : [[\"FToD\", 27]],\r\n\ttype : \"wondrous item\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one liquid of my choice. The list of options depends on the level and rarity of the item.\",\r\n\tdescriptionFull : FToD_HoardItems[\"dragon vessel\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Full Text\",\r\n\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"dragon vessel\"])\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"dawn\",\r\n\tallowDuplicates : true,\r\n\tchoicesNotInMenu : true,\r\n\tchoices : [\"Slumbering (uncommon)\", \"Stirring (rare)\", \"Wakened (very rare)\", \"Ascendant (legendary)\"],\r\n\t\"slumbering (uncommon)\" : {\r\n\t\tname : \"Dragon Vessel (slumbering)\",\r\n\t\trarity : \"uncommon\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one of the following of my choice:  ale, olive oil, a potion of healing, or a potion of climbing. A potion loses its magic if it is not consumed within 24 hours.\"\r\n\t},\r\n\t\"stirring (rare)\" : {\r\n\t\tname : \"Dragon Vessel (stirring)\",\r\n\t\trarity : \"rare\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill the vessel with one of the following of my choice:  ale, mead, olive oil, a potion of healing (normal or greater), or a potion of climbing. A potion loses its magic if it is not consumed within 24 hours.\"\r\n\t},\r\n\t\"wakened (very rare)\" : {\r\n\t\tname : \"Dragon Vessel (wakened)\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"As a bonus action once per dawn, if this magical container is empty, I can speak the command word to fill it with one of the following of my choice:  ale, mead, wine, olive oil, a potion of healing (normal, greater, or superior), a potion of climbing, or a potion of flying. Unused potions lose their magic after 24 hours.\"\r\n\t},\r\n\t\"ascendant (legendary)\" : {\r\n\t\tname : \"Dragon Vessel (ascendant)\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"As a bonus action once per dawn, I can speak the command word to fill this empty vessel with one of my choice:  ale, mead, wine, whiskey, olive oil, a potion of healing (normal, greater, superior, or supreme), a potion of climbing, a potion of flying, or a potion of dragon's majesty. Potions lose magic after 24 hours.\"\r\n\t}\r\n}\r\nMagicItemsList[\"scaled ornament\"] = function (n) {\r\n\tvar obj = {\r\n\t\tname : \"Scaled Ornament\",\r\n\t\tsource : [[\"FToD\", 27]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tattunement : true,\r\n\t\tdescription : \"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes.\",\r\n\t\tdescriptionFull : FToD_HoardItems[\"scaled ornament\"].join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Full Text\",\r\n\t\t\tnote : FToD_HoardItems.to1stPerson(FToD_HoardItems[\"scaled ornament\"])\r\n\t\t}],\r\n\t\tallowDuplicates : true,\r\n\t\tchoicesNotInMenu : true,\r\n\t\tchoices : [\"Slumbering (uncommon)\", \"Stirring (rare)\"],\r\n\t\t\"slumbering (uncommon)\" : {\r\n\t\t\tname : \"Scaled Ornament (slumbering)\",\r\n\t\t\trarity : \"uncommon\",\r\n\t\t\tdescription : \"This ornament can be jewelry, a cloak, or another wearable accessory. It appears to be fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes. It grants me advantage on saving throws to avoid being charmed or frightened and to end those conditions on myself.\",\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"stirring (rare)\" : {\r\n\t\t\tname : \"Scaled Ornament (stirring)\",\r\n\t\t\trarity : \"rare\",\r\n\t\t\tdescription : \"This ornament is fashioned from a dragon's scale, tooth, or claw, or it incorporates images in those shapes. It makes me immune to being charmed or frightened and grants my allies within 30 ft advantage on saves to avoid or end those conditions on themselves. It also gives me a +1 bonus to my AC.\",\r\n\t\t\tsavetxt : { immune : [\"charmed\", \"frightened\"] },\r\n\t\t\textraAC : [{\r\n\t\t\t\tmod : 1,\r\n\t\t\t\tname : \"Scaled Ornament\",\r\n\t\t\t\tmagic : true,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm attuned to the scaled ornament.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"wakened (very rare)\" : {\r\n\t\t\tname : \"Scaled Ornament (wakened)\",\r\n\t\t\trarity : \"very rare\",\r\n\t\t\tdescription : \"\"\r\n\t\t},\r\n\t\t\"ascendant (legendary)\" : {\r\n\t\t\tname : \"Scaled Ornament (ascendant)\",\r\n\t\t\trarity : \"legendary\",\r\n\t\t\tdescription : \"\"\r\n\t\t}\r\n\t};\r\n\tvar aDragons = [[\"black\", \"acid\"], [\"blue\", \"lightning\"], [\"green\", \"poison\"], [\"red\", \"fire\"], [\"white\", \"cold\"], [\"amethyst\", \"force\"], [\"crystal\", \"radiant\"], [\"emerald\", \"psychic\"], [\"sapphire\", \"thunder\"], [\"topaz\", \"necrotic\"], [\"brass\", \"fire\"], [\"bronze\", \"lightning\"], [\"copper\", \"acid\"], [\"gold\", \"fire\"], [\"silver\", \"cold\"]];\r\n\tvar aChoicesNew = [[], []];\r\n\tfor (var i = 0; i < aDragons.length; i++) {\r\n\t\tvar sDragon = aDragons[i][0];\r\n\t\tvar sDmg = aDragons[i][1];\r\n\t\tvar sWakenedChoice = \"Wakened - \" + sDragon + \" dragon - \" + sDmg + \" (very rare)\";\r\n\t\tvar sWakenedChoiceLC = sWakenedChoice.toLowerCase();\r\n\t\tvar sWakenedName = \"Scaled Ornament (\" + sDragon + \", wakened)\";\r\n\t\tvar sAscendantChoice = \"Ascendant - \" + sDragon + \" dragon - \" + sDmg + \" (very rare)\";\r\n\t\tvar sAscendantChoiceLC = sAscendantChoice.toLowerCase();\r\n\t\tvar sAscendantName = \"Scaled Ornament (\" + sDragon + \", ascendant)\";\r\n\t\taChoicesNew[0].push(sWakenedChoice);\r\n\t\taChoicesNew[1].push(sAscendantChoice);\r\n\t\tobj[sWakenedChoiceLC] = {\r\n\t\t\tname : sWakenedName,\r\n\t\t\trarity : \"very rare\",\r\n\t\t\tdescription : \"This wearable accessory makes me immune to being charmed or frightened and grants my allies within 30 ft adv. on saves vs. those conditions. It also gives me a +1 bonus to my AC. As a reaction once per dawn when I take \" + sDmg + \" damage, I can ignore that damage and heal for the same amount instead.\",\r\n\t\t\tsavetxt : obj[\"stirring (rare)\"].savetxt,\r\n\t\t\textraAC : obj[\"stirring (rare)\"].extraAC,\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Scaled Ornament (absorb \" + sDmg + \")\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"dawn\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"reaction\", \"Scaled Ornament (absorb \" + sDmg + \")\"]],\r\n\t\t}\r\n\t\tobj[sAscendantChoiceLC] = newObj(obj[sWakenedChoiceLC]);\r\n\t\tobj[sAscendantChoiceLC].name = sAscendantName;\r\n\t\tobj[sAscendantChoiceLC].rarity = \"legendary\";\r\n\t\tobj[sAscendantChoiceLC].description = \"This makes me immune to being charmed or frightened and my allies in 30 ft gain adv. on saves vs. those conditions. It also gives me +1 bonus to AC, a flying speed equal to my walking speed, and I can hover. As a reaction once per dawn when I take \" + sDmg + \" damage, I can ignore it and instead heal that amount.\";\r\n\t\tobj[sAscendantChoiceLC].speed = { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t}\r\n\tobj.choices = obj.choices.concat(aChoicesNew[0]).concat(aChoicesNew[1]);\r\n\treturn obj;\r\n}();\r\n\r\n// Creatures\r\nCreatureList[\"giant canary\"] = {\r\n\tname : \"Giant Canary\",\r\n\tnameAlt : [\"Canary, Giant\"],\r\n\tsource : [[\"FToD\", 23]],\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 26,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, fly 60 ft\",\r\n\tscores : [10, 14, 12, 2, 10, 6],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned\",\r\n\tsenses : \"Blindsight 60 ft (blind beyond this radius)\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Peck\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 10, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}]\r\n};\r\nCreatureList[\"dragonnel\"] = { // Alternate for Find Greater Steed spell (contributed by Nod_Hero)\r\n\tname : \"Dragonnel\",\r\n\tsource : [[\"FToD\", 190]],\r\n\tsize : 2, //Large\r\n\ttype : \"Dragon\",\r\n\tcompanion : [\"steed_not_al\"],\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 58,\r\n\thd : [9, 10],\r\n\tspeed : \"30 ft, fly 60 ft\",\r\n\tscores : [16, 15, 12, 8, 13, 10],\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Blindsight 30 ft; Darkvision 120 ft\",\r\n\tpassivePerception : 13,\r\n\tlanguages : \"understands Draconic and Common but can't speak\",\r\n\tchallengeRating : \"2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Rend\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 6, \"slashing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Two rend attacks as Attack action\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn, the dragonnel can make two Rend attacks.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The dragonnel doesn't provoke an opportunity attack when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20211207_SCC.js",
    "content": "var iFileName = \"pub_20211207_SCC.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\", 15);\r\n// This file adds all the player-material from Strixhaven: A Curriculum of Chaos to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList.SCC = {\r\n\tname : \"Strixhaven: A Curriculum of Chaos\",\r\n\tabbreviation : \"SCC\",\r\n\tabbreviationSpellsheet : \"SC\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Magic: The Gathering\",\r\n\turl : \"https://dnd.wizards.com/products/strixhaven-curriculum-chaos\",\r\n\tdate : \"2021/12/07\"\r\n};\r\n\r\n// Race\r\nRaceList[\"owlin\"] = {\r\n\tregExpSearch : /owlin/i,\r\n\tname : \"Owlin\",\r\n\tsource : [[\"SCC\", 29]],\r\n\tplural : \"Owlin\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tskills : [\"Stealth\"],\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\r\n\ttrait : \"Owlin\"+\r\n\t\"\\n \\u2022 Flight: Thanks to my wings, I have a flying speed equal to my walking speed. I can't use this flying speed if I'm wearing medium or heavy armor.\"+\r\n\t\"\\n \\u2022 Silent Feathers: I have proficiency in the Stealth skill.\"\r\n};\r\n\r\n// Backgrounds\r\nBackgroundList[\"lorehold student\"] = {\r\n\tregExpSearch : /^(?=.*lorehold)(?=.*student).*$/i,\r\n\tname : \"Lorehold Student\",\r\n\tsource : [[\"SCC\", 31]],\r\n\tskills : [\"History\", \"Religion\"],\r\n\tlanguageProfs : [2],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Tome of history\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Hammer\", \"\", 3],\r\n\t\t[\"Hooded lantern\", \"\", 2],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Lorehold Initiate\",\r\n\ttrait : [\r\n\t\t\"I thrive on esoteric lore. The more obscure the historical references I can include in everyday conversation, the better.\",\r\n\t\t\"By searching for these lost artifacts, I hope to find who I really am along the way.\",\r\n\t\t\"I can barely go a minute without talking about my research. I have so much knowledge in my head, and it needs to be let out somewhere!\",\r\n\t\t\"The spirits of the dead are so much more interesting to talk with than living classmates.\",\r\n\t\t\"I can speak eloquently about the historical ramifications of an ancient war. But ask me to add two-digit numbers together, and I'm a mess.\",\r\n\t\t\"In the end, it's all just entropy. Everything falls apart someday.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"lorehold initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Lorehold college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Comprehend Languages, Identify, Borrowed Knowledge, Locate Object, Speak with Dead, Spirit Guardians, Arcane Eye, Stone Shape, Flame Strike, and Legend Lore.\",\r\n\tsource : [[\"SCC\", 31]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"comprehend languages\", \"identify\", \"borrowed knowledge\", \"locate object\", \"speak with dead\", \"spirit guardians\", \"arcane eye\", \"stone shape\", \"flame strike\", \"legend lore\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Comprehend Languages, Identify, Borrowed Knowledge, Locate Object, Speak with Dead, Spirit Guardians, Arcane Eye, Stone Shape, Flame Strike, and Legend Lore.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"lorehold\" }],\r\n};\r\nBackgroundList[\"prismari student\"] = {\r\n\tregExpSearch : /^(?=.*prismari)(?=.*student).*$/i,\r\n\tname : \"Prismari Student\",\r\n\tsource : [[\"SCC\", 32]],\r\n\tskills : [\"Acrobatics\", \"Performance\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Artisan's tools or Musical instrument\", 1]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Artisan's tools or musical instrument\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Prismari Initiate\",\r\n\ttrait : [\r\n\t\t\"I'm the life of the party, and I expect everyone's attention when I walk into a room.\",\r\n\t\t\"Two weeks ago, I was enthralled with my latest project. Now, I think it's garbage and deserves to be destroyed.\",\r\n\t\t\"I believe everyone has the ability to express their truest selves through art, and I'm happy to quietly push them in the right direction.\",\r\n\t\t\"Everyone is a critic, and I work to win them all over.\",\r\n\t\t\"I'm beset with such an overwhelming sense of ennui regarding my art. Nothing quite captures my attention anymore.\",\r\n\t\t\"Instead of confronting my negative emotions, I channel them into explosive artistic displays.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"prismari initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Prismari college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Chromatic Orb, Thunderwave, Flaming Sphere, Kinetic Jaunt, Haste, Water Walk, Freedom of Movement, Wall of Fire, Cone of Cold, and Conjure Elemental.\",\r\n\tsource : [[\"SCC\", 32]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"chromatic orb\", \"thunderwave\", \"flaming sphere\", \"kinetic jaunt\", \"haste\", \"water walk\", \"freedom of movement\", \"wall of fire\", \"cone of cold\", \"conjure elemental\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Chromatic Orb, Thunderwave, Flaming Sphere, Kinetic Jaunt, Haste, Water Walk, Freedom of Movement, Wall of Fire, Cone of Cold, and Conjure Elemental.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"prismari\" }],\r\n};\r\nBackgroundList[\"quandrix student\"] = {\r\n\tregExpSearch : /^(?=.*quandrix)(?=.*student).*$/i,\r\n\tname : \"Quandrix Student\",\r\n\tsource : [[\"SCC\", 33]],\r\n\tskills : [\"Arcana\", \"Nature\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Abacus\", \"\", 2],\r\n\t\t[\"Book of arcane theory\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Quandrix Initiate\",\r\n\ttrait : [\r\n\t\t\"When I find a subject I'm interested in, I won't stop studying until I know everything about it. It keeps me up at night.\",\r\n\t\t\"I hope this all makes sense to me one day. Until then, I'm going to keep faking it.\",\r\n\t\t\"Equations and patterns come naturally to my mind. I wish friendship came just as easily.\",\r\n\t\t\"I believe I'm always the smartest person in the room. And I'll prove it, even if no one asks me to.\",\r\n\t\t\"If these classes have taught me anything, it's that reality is a lie, and nothing matters. So why bother?\",\r\n\t\t\"Before I graduate, I want to achieve something mathematically impossible. I must leave a legacy!\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"quandrix initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Quandrix college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Entangle, Guiding Bolt, Enlarge/Reduce, Vortex Warp, Aura of Vitality, Haste, Control Water, Freedom of Movement, Circle of Power, and Passwall.\",\r\n\tsource : [[\"SCC\", 33]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"guiding bolt\", \"enlarge/reduce\", \"vortex warp\", \"aura of vitality\", \"haste\", \"control water\", \"freedom of movement\", \"circle of power\", \"passwall\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Entangle, Guiding Bolt, Enlarge/Reduce, Vortex Warp, Aura of Vitality, Haste, Control Water, Freedom of Movement, Circle of Power, and Passwall.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"quandrix\" }],\r\n};\r\nBackgroundList[\"silverquill student\"] = {\r\n\tregExpSearch : /^(?=.*silverquill)(?=.*student).*$/i,\r\n\tname : \"Silverquill Student\",\r\n\tsource : [[\"SCC\", 35]],\r\n\tskills : [\"Intimidation\", \"Persuasion\"],\r\n\tlanguageProfs : [2],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Book of poetry\", \"\", 5]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Silverquill Initiate\",\r\n\ttrait : [\r\n\t\t\"I'll say whatever I need to in order to maintain my high social status.\",\r\n\t\t\"I prefer saying the blunt truth over a pretty lie, and I don't particularly care whose feelings I hurt.\",\r\n\t\t\"I believe that uplifting my peers is the best way to succeed.\",\r\n\t\t\"I've mastered the art of using humor as a defense, and I always have a charming joke ready.\",\r\n\t\t\"I always wait before speaking, analyzing the situation for whichever angle is most advantageous to my goals.\",\r\n\t\t\"No one knows about the all-nighters I've pulled to keep my magic looking effortless, and I'm going to keep it that way.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"silverquill initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Silverquill college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Dissonant Whispers, Silvery Barbs, Calm Emotions, Darkness, Beacon of Hope, Daylight, Compulsion, Confusion, Dominate Person, and Rary's Telepathic Bond.\",\r\n\tsource : [[\"SCC\", 35]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"dissonant whispers\", \"silvery barbs\", \"calm emotions\", \"darkness\", \"beacon of hope\", \"daylight\", \"compulsion\", \"confusion\", \"dominate person\", \"rary's telepathic bond\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Dissonant Whispers, Silvery Barbs, Calm Emotions, Darkness, Beacon of Hope, Daylight, Compulsion, Confusion, Dominate Person, and Rary's Telepathic Bond.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"silverquill\" }],\r\n};\r\nBackgroundList[\"witherbloom student\"] = {\r\n\tregExpSearch : /^(?=.*witherbloom)(?=.*student).*$/i,\r\n\tname : \"Witherbloom Student\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tskills : [\"Nature\", \"Survival\"],\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [\"Herbalism kit\"],\r\n\tgold : 15,\r\n\tequipleft : [\r\n\t\t[\"Black ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"],\r\n\t\t[\"Book about plant identification\", \"\", 5],\r\n\t\t[\"Iron pot\", \"\", 10],\r\n\t\t[\"Herbalism kit\", \"\", 3]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"School uniform\", \"\", 4], // as costume\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Witherbloom Initiate\",\r\n\ttrait : [\r\n\t\t\"I love brewing up a new recipe, even if some might be repulsed by my choice of ingredients. Or the final product. Or both.\",\r\n\t\t\"My fashion sense is like my garden: withered, black, and weird.\",\r\n\t\t\"I'm going to befriend every single monster in this swamp if it's the last thing I do.\",\r\n\t\t\"Everything in this world dies eventually. The question is, what will you do with the time you have left?\",\r\n\t\t\"I know we just met, but when you die, may I have your bones? For research.\",\r\n\t\t\"Don't interrupt me; I'm brooding.\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"witherbloom initiate\"] = {\r\n\tdescription : \"I gain the Strixhaven Initiate feat for the Witherbloom college. In addition, I add the following spells to the spell list of all my spellcasting classes, if any: Cure Wounds, Inflict Wounds, Lesser Restoration, Wither and Bloom, Revivify, Vampiric Touch, Blight, Death Ward, Antilife Shell, and Greater Restoration.\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// don't add if this is not a class or a list of spells is already given\r\n\t\t\t\tif (!ClassList[spName] || spList.spells || spList.psionic) return;\r\n\t\t\t\t// if this is an 'extra spell', also test if it uses the class' spell list or not\r\n\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && (spList.school || !spList[\"class\"] || (spList[\"class\"].indexOf(spName) === -1 && spName !== \"fighter\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cure wounds\", \"inflict wounds\", \"lesser restoration\", \"wither and bloom\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"My background feature adds extra spells to the spell list(s) of my spellcasting class(es): Cure Wounds, Inflict Wounds, Lesser Restoration, Wither and Bloom, Revivify, Vampiric Touch, Blight, Death Ward, Antilife Shell, and Greater Restoration.\"\r\n\t\t]\r\n\t},\r\n\tfeatsAdd: [{ key: \"strixhaven initiate\", choice: \"witherbloom\" }],\r\n};\r\n\r\n// Feats\r\nFeatsList[\"strixhaven initiate\"] = {\r\n\tname : \"Strixhaven Initiate\",\r\n\tsource : [[\"SCC\", 36]],\r\n\tdescription : \"I learn two cantrips and a 1st-level spell from a list depending on my Strixhaven college. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You have studied some magical theory and have learned a few spells associated with Strixhaven University.\"+\r\n\t\"\\n   Choose one of Strixhaven's colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. You learn two cantrips and one 1st-level spell based on the college you choose, as specified in the Strixhaven Spells table.\"+\r\n\t\"\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\tchoices : [\"Lorehold\", \"Prismari\", \"Quandrix\", \"Silverquill\", \"Witherbloom\"],\r\n\t\"lorehold\" : {\r\n\t\tdescription : \"I learn two cantrips (Light, Sacred Flame, or Thaumaturgy) and a 1st-level spell from the cleric or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"light\", \"sacred flame\", \"thaumaturgy\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"prismari\" : {\r\n\t\tdescription : \"I learn two cantrips (Fire Bolt, Prestidigitation, or Ray of Frost) and a 1st-level spell from the bard or sorcerer spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"fire bolt\", \"prestidigitation\", \"ray of frost\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"bard\", \"sorcerer\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"quandrix\" : {\r\n\t\tdescription : \"I learn two cantrips (Druidcraft, Guidance, or Mage Hand) and a 1st-level spell from the druid or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"druidcraft\", \"guidance\", \"mage hand\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"silverquill\" : {\r\n\t\tdescription : \"I learn two cantrips (Sacred Flame, Thaumaturgy, or Vicious Mockery) and a 1st-level spell from the bard or cleric spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can have Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"sacred flame\", \"thaumaturgy\", \"vicious mockery\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"bard\", \"cleric\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t},\r\n\t\"witherbloom\" : {\r\n\t\tdescription : \"I learn two cantrips (Chill Touch, Druidcraft, or Spare the Dying) and a 1st-level spell from the druid or wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"druidcraft\", \"spare the dying\"],\r\n\t\t\ttimes : 2,\r\n\t\t}, {\r\n\t\t\tname : \"1st-level spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"strixhaven mascot\"] = {\r\n\tname : \"Strixhaven Mascot\",\r\n\tsource : [[\"SCC\", 37]],\r\n\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of my college's mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\tdescriptionFull : \"You have learned how to summon a Strixhaven mascot to assist you, granting you these benefits:\"+\r\n\t\"\\n \\u2022 You can cast the find familiar spell as a ritual. Your familiar can take the form of the mascot associated with the college you chose for the Strixhaven Initiate feat: a spirit statue mascot (Lorehold), an art elemental mascot (Prismari), a fractal mascot (Quandrix), an inkling mascot (Silverquill), or a pest mascot (Witherbloom).\"+\r\n\t\"\\n \\u2022 When you take the Attack action on your turn, you can forgo one attack to allow your mascot familiar to make one attack of its own with its reaction.\"+\r\n\t\"\\n \\u2022 If your mascot familiar is within 60 feet of you, you can teleport as an action, swapping places with the familiar. If your destination space is too small for you to occupy, the teleportation fails and is wasted. Once you teleport in this way, you can't do so again until you finish a long rest, unless you expend a spell slot of 2nd level or higher to do it again.\",\r\n\tprerequisite : \"4th level, Strixhaven Initiate feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"strixhaven initiate\") !== -1; },\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Swap places with Strixhaven Mascot\",\r\n\t\trecovery : \"long rest\",\r\n\t\tusages : 1,\r\n\t\taltResource : \"SS 2+\"\r\n\t}],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Strixhaven Mascot\",\r\n\t\tspells : [\"find familiar\"],\r\n\t\tselection : [\"find familiar\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t}],\r\n\tchoices : [\"Lorehold\", \"Prismari\", \"Quandrix\", \"Silverquill\", \"Witherbloom\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iStrixInit = CurrentFeats.known.indexOf(\"strixhaven initiate\");\r\n\t\tif (iStrixInit !== -1 && CurrentFeats.choices[iStrixInit]) {\r\n\t\t\treturn CurrentFeats.choices[iStrixInit];\r\n\t\t}\r\n\t},\r\n\t\"lorehold\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Spirit Statue Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Spirit Statue Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"prismari\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of an Art Elemental Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make an attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Art Elemental Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"quandrix\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Fractal Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Fractal Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"silverquill\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of an Inkling Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Inkling Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t},\r\n\t\"witherbloom\" : {\r\n\t\tdescription : \"I can cast Find Familiar as a ritual and it can take the form of a Pest Mascot. When I take the Attack action on my turn, I can forgo one attack to have it make one attack with its reaction. As an action once per long rest (or 2nd-level spell slot) while its within 60 ft, I can teleport to swap places with it, if there's space.\",\r\n\t\tcreaturesAdd : [[\"Pest Mascot\", true, false, \"strixhaven_mascot\"]]\r\n\t}\r\n};\r\nif (CompanionList.familiar && CompanionList.pact_of_the_chain) { // Needs to be revisited for v24\r\n\tCompanionList.strixhaven_mascot = {\r\n\t\tname : \"Strixhaven Mascot\",\r\n\t\tnameTooltip : \"Strixhaven Mascot (feat)\",\r\n\t\tnameOrigin : \"variant of the Find Familiar 1st-level conjuration [ritual] spell\",\r\n\t\tnameMenu : \"Strixhaven Mascot familiar (feat)\",\r\n\t\tsource : [[\"SCC\", 37]],\r\n\t\tincludeCheck : CompanionList.pact_of_the_chain.includeCheck,\r\n\t\taction : [[\"action\", \"Swap places with Strixhaven Mascot\"]].concat(CompanionList.familiar.action),\r\n\t\tattributesChange : CompanionList.pact_of_the_chain.attributesChange,\r\n\t\tattributesAdd : CompanionList.familiar.attributesAdd,\r\n\t\tnotes : function() {\r\n\t\t\tvar a = newObj(CompanionList.pact_of_the_chain.notes);\r\n\t\t\ta[0].description = [\r\n\t\t\t\t\"appearing in an unoccupied space within 10 ft\",\r\n\t\t\t\t\"It assumes a chosen beast or mascot form (can change at every casting), see the spell and feat\",\r\n\t\t\t\t\"It has the chosen form's statistics, but its type changes from beast to celestial, fey, or fiend\",\r\n\t\t\t\t\"When the familiar drops to 0 hit points, it disappears, leaving behind no physical form\",\r\n\t\t\t\t\"It reappears when I cast this spell again (in a new form if so desired)\"\r\n\t\t\t].join(\"\\n   \");\r\n\t\t\ta.push({\r\n\t\t\t\tname : \"As an action while it is within 60 ft, we can teleport\",\r\n\t\t\t\tdescription : [\r\n\t\t\t\t\t\"swapping places if there is enough space\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t\t].join(\"\\n   \"),\r\n\t\t\t\tjoinString : \", \"\r\n\t\t\t});\r\n\t\t\treturn a;\r\n\t\t}()\r\n\t};\r\n}\r\n\r\n// Spells\r\nSpellsList[\"borrowed knowledge\"] = {\r\n\tname : \"Borrowed Knowledge\",\r\n\tclasses : [\"bard\", \"cleric\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"SCC\", 37]],\r\n\tlevel : 2,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A book worth at least 25 gp.\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"Gain proficiency with one skill; ends early if cast again (25gp)\",\r\n\tdescriptionFull : \"You draw on knowledge from spirits of the past. Choose one skill in which you lack proficiency. For the spell's duration, you have proficiency in the chosen skill. The spell ends early if you cast it again.\"\r\n};\r\nSpellsList[\"kinetic jaunt\"] = {\r\n\tname : \"Kinetic Jaunt\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 37]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"+10 ft walk spd; provoke no opportunity atks; move through crea space, counts not as difficult terrain\",\r\n\tdescriptionFull : \"You magically empower your movement with dance-like steps, giving yourself the following benefits for the duration.\"+\r\n\t\"\\n \\u2022 Your walking speed increases by 10 feet.\"+\r\n\t\"\\n \\u2022 You don't provoke opportunity attacks.\"+\r\n\t\"\\n \\u2022 You can move through the space of another creature, and it doesn't count as difficult terrain. If you end your turn in another creature's space, you are shunted to the last unoccupied space you occupied, and you take 1d8 force damage.\"\r\n};\r\nSpellsList[\"silvery barbs\"] = {\r\n\tname : \"Silvery Barbs\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when a creature you can see within 60 feet of yourself succeeds on an attack roll, an ability check, or a saving throw\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea reroll d20 and use lowest for atk, check, or save; 1 crea adv. next atk, check, or save in 1 min\",\r\n\tdescriptionFull : \"You magically distract the triggering creature and turn its momentary uncertainty into encouragement for another creature. The triggering creature must reroll the d20 and use the lower roll.\"+\r\n\t\"\\n   You can then choose a different creature you can see within range (you can choose yourself). The chosen creature has advantage on the next attack roll, ability check, or saving throw it makes within 1 minute. A creature can be empowered by only one use of this spell at a time.\"\r\n};\r\nSpellsList[\"vortex warp\"] = {\r\n\tname : \"Vortex Warp\",\r\n\tclasses : [\"artificer\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or teleported to a sufficiently empty space of my choice within range; +30 ft/SL range\",\r\n\tdescriptionFull : \"You magically twist space around another creature you can see within range. The target must succeed on a Constitution saving throw (the target can choose to fail), or the target is teleported to an unoccupied space of your choice that you can see within range. The chosen space must be on a surface or in a liquid that can support the target without the target having to squeeze.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the range of the spell increases by 30 feet for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"wither and bloom\"] = {\r\n\tname : \"Wither and Bloom\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"SCC\", 38]],\r\n\tlevel : 2,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A withered vine twisted into a loop.\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"10-ft rad any crea 2d6+1d6/SL Necrotic dmg, save half; 1 crea can heal using 1+1/SL HD; see B\",\r\n\tdescriptionFull : \"You invoke both death and life upon a 10-foot-radius sphere centered on a point within range. Each creature of your choice in that area must make a Constitution saving throw, taking 2d6 necrotic damage on a failed save, or half as much damage on a successful one. Nonmagical vegetation in that area withers.\"+\r\n\t\"\\n   In addition, one creature of your choice in that area can spend and roll one of its unspent Hit Dice and regain a number of hit points equal to the roll plus your spellcasting ability modifier.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d6 for each slot above the 2nd, and the number of Hit Dice that can be spent and added to the healing roll increases by one for each slot above 2nd.\"\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"bottle of boundless coffee\"] = {\r\n\tname : \"Bottle of Boundless Coffee\",\r\n\tsource : [[\"SCC\", 38]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This metal bottle is full with delicious, comfortably warm coffee, but I can't feel the heat. It has a stopper on a little chain. It will accept only the coffee it produces. Each time I drink the coffee, I roll a d20. On a 1, the bottle stops dispensing coffee for 1 hour. Unless drunk, the coffee vanishes when it leaves the bottle.\",\r\n\tdescriptionFull : \"This metal bottle carries delicious, warm coffee. The bottle comes with a stopper, which is attached to the bottle by a little chain. Even when open, the bottle won't accept any liquid other than the coffee it produces. The coffee inside is always comfortably warm, and none of the heat can be felt through the bottle.\"+\r\n\t\"\\n   Each time you drink the coffee, roll a d20. On a 1, the bottle refuses to dispense coffee for the next hour. If you pour coffee from the bottle, rather than drinking from it, the coffee vanishes the moment it leaves the bottle.\"\r\n}\r\nMagicItemsList[\"cuddly strixhaven mascot\"] = {\r\n\tname : \"Cuddly Strixhaven Mascot\",\r\n\tsource : [[\"SCC\", 38]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This soft, Tiny, magic toy represents a Strixhaven mascot. As an action, I can press it to my arm, shoulder, or leg, and it attaches there for 1 hour or until I remove it as an action. Once per long rest while this toy is on my person, I can give myself advantage on the save to avoid or end the frightened condition on myself.\",\r\n\tdescriptionFull : \"Representing one of the mascots of Strixhaven, this soft, Tiny, magic toy is perfect for cuddling. If you press it to your arm, shoulder, or leg as an action, the toy stays attached there for 1 hour or until you use an action to remove it.\"+\r\n\t\"\\n   The toy can also be used to fight off fear. When you make a saving throw to avoid or end the frightened condition on yourself, you can give yourself advantage on the roll if the toy is on your person. You must decide to do so before rolling the d20. If the save succeeds, you can't use the toy in this way until you finish a long rest.\",\r\n\taction : [[\"action\", \" (attach/remove)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n}\r\nMagicItemsList[\"lorehold primer\"] = {\r\n\tname : \"Lorehold Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an History or Religion check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level cleric or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Lorehold Primer is a magic textbook created at Strixhaven's Lorehold College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (History) or Intelligence (Religion) check while holding the primer, you can expend 1 charge to give yourself 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the cleric or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Lorehold Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Lorehold Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfCreateSCCPrimerSpellsEntry : function(bAddIt, sName, aClasses) {\r\n\t\tvar sNameLC = sName.toLowerCase();\r\n\t\tif (bAddIt) {\r\n\t\t\tCurrentSpells[sNameLC] = {\r\n\t\t\t\tname : sName + ' (item)',\r\n\t\t\t\tlist : { 'class' : aClasses, level : [1, 1] },\r\n\t\t\t\tknown : { spells : 1 },\r\n\t\t\t\tbonus : {\r\n\t\t\t\t\tbon0 : {\r\n\t\t\t\t\t\tname : 'Either select a spell',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbon1 : {\r\n\t\t\t\t\t\tname : 'or just select \"Full List\"',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbon2 : {\r\n\t\t\t\t\t\tname : 'on the bottom left',\r\n\t\t\t\t\t\tspells : []\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\ttypeList : 4,\r\n\t\t\t\trefType : \"item\",\r\n\t\t\t\tallowUpCasting : false,\r\n\t\t\t\tfirstCol : \"LR\"\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tdelete CurrentSpells[sNameLC];\r\n\t\t}\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\teval : function () {\r\n\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Lorehold Primer\", ['cleric', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Lorehold Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"prismari primer\"] = {\r\n\tname : \"Prismari Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Acrobatics or Performance check, after the d20 roll. If I study it in a long rest, I can pick a 1st-level bard or sorcerer spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Prismari Primer is a magic textbook created at Strixhaven's Prismari College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make a Dexterity (Acrobatics) or a Charisma (Performance) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the bard or sorcerer spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Prismari Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Prismari Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Prismari Primer\", ['bard', 'sorcerer']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Prismari Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"quandrix primer\"] = {\r\n\tname : \"Quandrix Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Arcana or Nature check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level druid or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Quandrix Primer is a magic textbook created at Strixhaven's Quandrix College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (Arcana) or an Intelligence (Nature) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the druid or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Quandrix Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Quandrix Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Quandrix Primer\", ['druid', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Quandrix Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"silverquill primer\"] = {\r\n\tname : \"Silverquill Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to an Intimidation or Persuasion check, after the d20 roll. If I study it in a long rest, I can pick a 1st-level bard or cleric spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Silverquill Primer is a magic textbook created at Strixhaven's Silverquill College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make a Charisma (Intimidation) or a Charisma (Persuasion) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the bard or cleric spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Silverquill Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Silverquill Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Silverquill Primer\", ['bard', 'cleric']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Silverquill Primer\");\r\n\t}\r\n}\r\nMagicItemsList[\"strixhaven pennant\"] = {\r\n\tname : \"Strixhaven Pennant\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"This magic pennant bears the symbol of Strixhaven or one of its colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. While I wave the pennant, the symbol on it glitters, and the pennant sheds bright light in a 10-ft radius and dim light for an additional 10 ft.\",\r\n\tdescriptionFull : \"This magic pennant bears the symbol of Strixhaven or one of its colleges: Lorehold, Prismari, Quandrix, Silverquill, or Witherbloom. While you wave the pennant, the symbol on it glitters, and the pennant sheds bright light in a 10-foot-radius and dim light for an additional 10 feet.\"\r\n}\r\nMagicItemsList[\"witherbloom primer\"] = {\r\n\tname : \"Witherbloom Primer\",\r\n\tsource : [[\"SCC\", 39]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This magic textbook has 3 charges, regaining 1d3 used charges at dawn. While holding it, I can use 1 charge to add +1d4 to a Nature or Survival check, after the d20 roll. If I study it during a long rest, I can pick a 1st-level druid or wizard spell. I can cast the spell once without a spell slot before my next long rest ends.\",\r\n\tdescriptionFull : \"The Witherbloom Primer is a magic textbook created at Strixhaven's Witherbloom College. The primer has 3 charges, and it regains 1d3 expended charges daily at dawn. If you make an Intelligence (Nature) or Wisdom (Survival) check while holding the primer, you can expend 1 charge to give yourself a 1d4 bonus to the check, immediately after you roll the d20.\"+\r\n\t\"\\n   In addition, if you study the primer at the end of a long rest, you can choose one 1st-level spell from the druid or wizard spell list. Before you finish your next long rest, you can cast the chosen spell once without a spell slot if you are holding the primer. Your spellcasting ability for this spell is your choice of Intelligence, Wisdom, or Charisma.\",\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Witherbloom Primer charges (regains 1d3)\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\"\r\n\t}, {\r\n\t\tname : \"Witherbloom Primer (cast spell)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\teval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(true, \"Witherbloom Primer\", ['druid', 'wizard']);\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif (MagicItemsList[\"lorehold primer\"])\r\n\t\t\tMagicItemsList[\"lorehold primer\"].fCreateSCCPrimerSpellsEntry(false, \"Witherbloom Primer\");\r\n\t}\r\n}\r\nvar SCC_Murgaxors_Orb_Full_Description = [\r\n\t\"Roiling green mist fills this glass orb, which the exiled Strixhaven mage Murgaxor once used in foul magical experiments. Murgaxor's spirit has infused the orb, which he uses to spread a terrible curse among Strixhaven's students.\",\r\n\t\">>Sentience<<. Murgaxor's orb is a sentient, chaotic evil magic item with the following properties:\",\r\n\t\"\\u2022 The orb has an Intelligence of 20, a Wisdom of 16, and a Charisma of 16, as well as hearing and darkvision out to a range of 30 feet.\",\r\n\t\"\\u2022 The orb can speak, read, and understand Common, and it can communicate telepathically with any creature touching it.\",\r\n\t\"\\u2022 At any time during your turn, the orb can cast the suggestion spell (save DC 17), targeting you or one other creature that touched the orb within the last 24 hours. This isn't a power of the orb that you control.\",\r\n\t\">>Curse<<. Any Humanoid you touch while holding the orb must succeed on a DC 10 Wisdom saving throw or become cursed. Each creature cursed by the orb bears an echo of Murgaxor's hateful thoughts, and that creature suffers from headaches that are persistent but not debilitating until the curse ends. On your turn, the orb can use an action to produce one of the following effects, targeting one or more creatures it has cursed:\",\r\n\t\"\\u2022 >>Unconsciousness<<. The cursed creature falls unconscious for 1 hour. The creature is roused if it takes damage or someone uses an action to shake or slap it awake.\",\r\n\t\"\\u2022 >>Visions of Terror<<. The cursed creature sees terrifying visions, causing it to view all creatures that aren't also cursed as dangerous monsters for 10 minutes. The cursed creature must use its action each round to make one attack against the nearest non-cursed creature. If the cursed creature has multiple possible targets, it attacks one at random. This effect ends if the cursed creature is incapacitated.\",\r\n\t\"After either of these effects ends, the affected creature is no longer cursed. The curse can also be removed from a creature with a remove curse spell or similar magic. All cases of the curse end if Murgaxor's orb is destroyed.\",\r\n\t\">>Magical Signature<<. As a side effect of the orb's curse, the spell detect magic reveals an aura of enchantment surrounding creatures bearing the curse. This aura is distinctive, but in a way detect magic offers no further details about.\",\r\n\t\">>Destroying the Orb<<. Murgaxor's orb has AC 18; 20 hit points; immunity to necrotic, poison, and psychic damage; and resistance to all other types of damage. If reduced to 0 hit points, the orb shatters.\"\r\n]\r\nMagicItemsList[\"murgaxor's orb\"] = {\r\n\tname : \"Murgaxor's Orb\",\r\n\tsource : [[\"SCC\", 126]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"This sentient, chaotic evil orb bears a curse. It can communicate telepathically with any creature touching it. It can cast Suggestion on my turn, possibly on me. I have no control over it. Any Humanoid I touch while holding the orb must make a DC 10 Wisdom save or become cursed. See the Notes page.\",\r\n\tdescriptionFull : SCC_Murgaxors_Orb_Full_Description.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(SCC_Murgaxors_Orb_Full_Description).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(targeting) you/ig, \"$1 me\").replace(/you /ig, \"I \").replace(/feet/ig, \"ft\") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"masque charm\"] = {\r\n\tname : \"Masque Charm\",\r\n\tsource : [[\"SCC\", 127]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"While wearing this small silver pin, I can cast Disguise Self once per sunset. It has DC 13 to discern the disguise. I can have the spell last its normal 1 hour duration, or 6 hours. If I choose 6 hours, the charm becomes nonmagical when the spell ends. In either case, the spell ends if the pin is removed from me.\",\r\n\tdescriptionFull : \"A masque charm is a small silver pin. While wearing this charm, you can use an action to cast the disguise self spell (DC 13 to discern the disguise). Once the spell is cast, it can't be cast from the charm again until the next sunset. When casting the spell, you can have the spell last for its normal 1 hour duration or for 6 hours. If you choose the 6-hour duration, the charm becomes nonmagical when the spell ends. In either case, the spell ends if the charm is removed from you.\",\r\n\tusages : 1,\r\n\trecovery : \"Sunset\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per sunset\",\r\n\t\tspells : [\"disguise self\"],\r\n\t\tselection : [\"disguise self\"],\r\n\t\tfirstCol : \"oncelr\"\r\n   }],\r\n   fixedDC : 13\r\n}\r\n\r\n// Creatures (for Strixhaven Mascot feat)\r\nCreatureList[\"art elemental mascot\"] = { // Prismari\r\n\tname : \"Art Elemental Mascot\",\r\n\tnameAlt : [\"Mascot, Art Elemental\"],\r\n\tsource : [[\"SCC\", 185]],\r\n\tsize : 4,\r\n\ttype : \"Elemental\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 11,\r\n\thp : 18,\r\n\thd : [4, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [6, 13, 12, 8, 11, 15],\r\n\tskills : {\r\n\t\t\"performance\" : 4\r\n\t},\r\n\tdamage_resistances : \"cold, fire\",\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Joyful Flare\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"fire\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}, {\r\n\t\tname : \"Melancholic Bolt\",\r\n\t\tability : 2,\r\n\t\tdamage : [2, 4, \"cold\"],\r\n\t\trange : \"30 ft\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Captivating Artistry (1/Day)\",\r\n\t\tdescription : \"As an action, the elemental can target one creature it can see within 30 ft of itself. The target must succeed on a DC 12 Charisma saving throw or be charmed for 1 minute. The charmed target can repeat the save at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"When the elemental dies, it explodes in a burst of colored light. Each creature within 5 ft of the elemental must succeed on a DC 11 Constitution saving throw or be blinded for 1 minute. A blinded creature can repeat the save at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}]\r\n};\r\nCreatureList[\"fractal mascot\"] = { // Quandrix\r\n\tname : \"Fractal Mascot\",\r\n\tnameAlt : [\"Mascot, Fractal\"],\r\n\tsource : [[\"SCC\", 192]],\r\n\tsize : 4,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 12,\r\n\thp : 27,\r\n\thd : [6, 6],\r\n\tspeed : \"30 ft\",\r\n\tscores : [12, 14, 13, 7, 10, 5],\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"poisoned\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Quantum Strike\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"force\"],\r\n\t\trange : \"30 ft\",\r\n\t\tdescription : \"+1d4 damage if the fractal is Medium or bigger\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Augment (bonus action)\",\r\n\t\tdescription : \"The fractal can increase its size by one category as a bonus action. While the fractal is Medium or bigger, it makes Strength checks and Strength saving throws with advantage. The fractal can become no larger than Huge via this bonus action.\"\r\n\t}, {\r\n\t\tname : \"Diminish (bonus action)\",\r\n\t\tdescription : \"The fractal can decreases its size by one category as a bonus action. While the fractal is Tiny, it makes attack rolls, Dexterity checks, and Dexterity saving throws with advantage. The fractal can become no smaller than 1 ft in height via this bonus action.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Relative Density\",\r\n\t\tdescription : \"The fractal can move through creatures and objects as if they were difficult terrain. It takes 1d10 force damage if it ends its turn inside an object.\"\r\n\t}]\r\n};\r\nCreatureList[\"inkling mascot\"] = { // Silverquill\r\n\tname : \"Inkling Mascot\",\r\n\tnameAlt : [\"Mascot, Inkling\"],\r\n\tsource : [[\"SCC\", 195]],\r\n\tsize : 5,\r\n\ttype : \"Ooze\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 18,\r\n\thd : [4, 4],\r\n\tspeed : \"10 ft, fly 30 ft (hover)\",\r\n\tscores : [10, 16, 14, 6, 7, 11],\r\n\tskills : {\r\n\t\t\"stealth\" : 5\r\n\t},\r\n\tdamage_immunities : \"psychic\",\r\n\tcondition_immunities : \"blinded, charmed, deafened, exhaustion, prone\",\r\n\tsenses : \"Blindsight 60 ft\",\r\n\tpassivePerception : 8,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Blot\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"psychic\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Ink Spray (1/Day)\",\r\n\t\tdescription : \"As an action, the inkling can spray viscous ink at one creature within 15 ft of itself. The target must succeed on a DC 12 Constitution saving throw or be blinded until the end of the inkling's next turn.\"\r\n\t}, {\r\n\t\tname : \"Shadow Stealth (bonus action)\",\r\n\t\tdescription : \"While in dim light or darkness, the inkling can take the Hide action as a bonus action.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amorphous\",\r\n\t\tdescription : \"The inkling can move through a space as narrow as 1 inch wide without squeezing.\"\r\n\t}]\r\n};\r\nCreatureList[\"pest mascot\"] = { // Witherbloom\r\n\tname : \"Pest Mascot\",\r\n\tnameAlt : [\"Mascot, Pest\"],\r\n\tsource : [[\"SCC\", 203]],\r\n\tsize : 5,\r\n\ttype : \"Monstrosity\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 22,\r\n\thd : [4, 4],\r\n\tspeed : \"30 ft\",\r\n\tscores : [11, 14, 17, 5, 13, 4],\r\n\tskills : {\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 13,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Regeneration\",\r\n\t\tdescription : \"The pest regains 5 hit points at the start of its turn if it has at least 1 hit point. If it takes fire damage, this trait doesn't function at the start of the pest's next turn.\"\r\n\t}, {\r\n\t\tname : \"Spiny Hide\",\r\n\t\tdescription : \"At the start of each of its turns, the pest deals 1d4 piercing damage to any creature grappling it or that it is grappling.\"\r\n\t}]\r\n};\r\nCreatureList[\"spirit statue mascot\"] = { // Lorehold\r\n\tname : \"Spirit Statue Mascot\",\r\n\tnameAlt : [\"Mascot, Spirit Statue\"],\r\n\tsource : [[\"SCC\", 216]],\r\n\tsize : 3,\r\n\ttype : \"Construct\",\r\n\tcompanion : \"strixhaven_mascot\",\r\n\talignment : \"Any alignment\",\r\n\tac : 14,\r\n\thp : 26,\r\n\thd : [4, 8],\r\n\tspeed : \"30 ft\",\r\n\tscores : [14, 9, 15, 12, 13, 8],\r\n\tskills : {\r\n\t\t\"arcana\" : 5,\r\n\t\t\"history\" : 5,\r\n\t\t\"perception\" : 3\r\n\t},\r\n\tpassivePerception : 13,\r\n\tlanguages : \"any languages it knew in life\",\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Slam\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Counsel of the Past (2/Day)\",\r\n\t\tdescription : \"The spirit statue touches one creature. Once within the next 10 minutes, that creature can roll a d4 and add the number rolled to one ability check of its choice, immediately after rolling the d20.\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Death Burst\",\r\n\t\tdescription : \"When the spirit statue is reduced to 0 hit points, the statue crumbles, and the spirit returns to the afterlife in a burst of ghostly white flame. Each creature within 5 ft of it must succeed on a DC 12 Constitution saving throw or take 1d6 radiant damage.\"\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20220125_MotM.js",
    "content": "var iFileName = \"pub_20220125_MotM.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all the player-material from Mordenkainen Presents: Monsters of the Multiverse to MPMB's Character Record Sheet\r\n// Includes many contributions by Nod_Hero and BraabHimself\r\n\r\n// Define the source\r\nSourceList.MotM = {\r\n\tname : \"Mordenkainen Presents: Monsters of the Multiverse\",\r\n\tabbreviation : \"MotM\",\r\n\tgroup : \"Primary Sources\",\r\n\turl : \"https://dnd.wizards.com/products/monsters-of-the-multiverse\",\r\n\tdate : \"2022/01/25\" // box set release date\r\n};\r\n\r\n//Add Races\r\nRaceList[\"multiverse aarakocra\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*aarakocra).*$/i,\r\n\tname : \"Multiverse Aarakocra\",\r\n\tsortname : \"Aarakocra, Multiverse\",\r\n\tsource : [[\"MotM\", 5]],\r\n\tplural : \"Aarakocra\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /talon/i,\r\n\t\tname : \"Talons\",\r\n\t\tsource : [[\"MotM\", 5]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"wind caller\" : {\r\n\t\t\tname : \"Wind Caller\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wind Caller\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Gust of Wind\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"gust of wind\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"gust of wind\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"gust of wind\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Wind Caller trait.\",\r\n\t\t\t\t\tchanges : \"Using Wind Caller, I can cast Gust of Wind once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Aarakocra\"+\r\n\t\t\"\\n \\u2022 Flight: I have a flying speed equal to my walking speed. To use this speed, I can't be wearing medium or heavy armor.\"+\r\n\t\t\"\\n \\u2022 Talons: My unarmed strikes with talons deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Wind Caller: At 3rd level, I can cast Gust of Wind without using a spell slot or material component once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for this (one-time choice).\"\r\n};\r\nvar MotM_Aasimar_trait = (typePF ? \"\\n\" : \"\") + \" \\u2022 Light Bearer: I know the Light cantrip.\" +\r\n\"\\n \\u2022 Healing Hands: As an action once per long rest, I can touch a creature and heal it for a number of d4s equal to my Prof\" + (typePF ? \".\" : \"iciency\") + \" Bonus.\";\r\nvar MotM_Aasimar_HealingHands = {\r\n\tname : \"Healing Hands\",\r\n\tminlevel : 1,\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tadditional : ProficiencyBonusList.map(function(n) { return n + \"d4 healing\"; }),\r\n\taction : [[\"action\", \"\"]]\r\n};\r\nRaceList[\"multiverse aasimar\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*aasimar).*$/i,\r\n\tname : \"Multiverse Aasimar\",\r\n\tsortname : \"Aasimar, Multiverse\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Aasimar\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Celestial Revelation: At 3rd level, I choose one option from Necrotic Shroud, Radiant Consumption, or Radiant Soul. As a bonus action once per long rest, I can transform and gain its benefits. This transformation lasts for 1 minute or until I end it as a bonus action.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands\r\n\t}\r\n};\r\nAddRacialVariant(\"multiverse aasimar\", \"necrotic shroud\", {\r\n\tregExpSearch : /shroud/i,\r\n\tname : \"Necrotic Shroud Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tabilitySave : 6,\r\n\ttrait : \"Aasimar (Necrotic Shroud)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Necrotic Shroud (3rd level): Once per long rest, I can transform for 1 minute as a bonus action (start/end), causing enemies within 10 ft to make a Cha save (DC 8 + Cha mod + Prof Bonus) or become frightened of me until my next turn ends. Also, once on each of my turns, I can deal my Prof Bonus in necrotic damage to one damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"necrotic shroud\" : {\r\n\t\t\tname : \"Necrotic Shroud\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" necrotic damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"multiverse aasimar\", \"radiant consumption\", {\r\n\tregExpSearch : /consumption/i,\r\n\tname : \"Radiant Consumption Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\ttrait : \"Aasimar (Radiant Consumption)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Radiant Consumption (3rd level): Once per long rest, I can transform for 1 minute as a bonus action (start/end). I shed 10-ft radius bright light and 10-ft dim light. At the end of my turns, all in this bright light take my Prof Bonus in radiant damage. Also, once on my turns, I can deal Prof Bonus in radiant damage to one damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"radiant consumption\" : {\r\n\t\t\tname : \"Radiant Consumption\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" radiant damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddRacialVariant(\"multiverse aasimar\", \"radiant soul\", {\r\n\tregExpSearch : /soul/i,\r\n\tname : \"Radiant Soul Aasimar\",\r\n\tsource : [[\"MotM\", 7]],\r\n\tplural : \"Aasimar\",\r\n\ttrait : \"Aasimar (Radiant Soul)\" + MotM_Aasimar_trait +\r\n\t\t\"\\n \\u2022 Radiant Soul (3rd level): As a bonus action once per long rest, I can transform to gain spectral wings that give my a flying speed equal to my walking speed. These last for 1 minute or until I dismiss them as a bonus action. Once on each of my turns while active, I can deal my Prof Bonus in radiant damage to one target damaged by my attack or spell.\",\r\n\tfeatures : {\r\n\t\t\"healing hands\" : MotM_Aasimar_HealingHands,\r\n\t\t\"radiant soul\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" radiant damage\"; }),\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nRaceList[\"multiverse bugbear\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*bugbear).*$/i,\r\n\tname : \"Multiverse Bugbear\",\r\n\tsortname : \"Bugbear, Multiverse\",\r\n\tsource : [[\"MotM\", 8]],\r\n\tplural : \"Bugbears\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tskills : [\"Stealth\"],\r\n\tscoresGeneric : true,\r\n\tcarryingCapacity : 2,\r\n\ttrait : \"Bugbear (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have adv. on saves to avoid or end being charmed.\"+\r\n\t\t\"\\n \\u2022 Powerful Build: I count as one size larger for the weight I can carry.\"+\r\n\t\t\"\\n \\u2022 Long-Limbed: I add 5 ft of reach with my melee attacks on my turn.\"+\r\n\t\t\"\\n \\u2022 Sneaky: I am proficient in Stealth and can move through and stop in a space large enough for a Small creature without squeezing.\"+\r\n\t\t\"\\n \\u2022 Surprise Attack: My attacks deal +2d6 damage if the target hasn't taken a turn yet\" + (typePF ? \" in the current combat.\" : \".\")\r\n};\r\nRaceList[\"multiverse centaur\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*centaur).*$/i,\r\n\tname : \"Multiverse Centaur\",\r\n\tsortname : \"Centaur, Multiverse\",\r\n\tsource : [[\"MotM\", 9]],\r\n\tplural : \"Centaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\r\n\t\tname : \"Hooves\",\r\n\t\tsource : [[\"MotM\", 9]],\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\tdescription : \"Use as bonus action after charge 30 ft\",\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : [[\"bonus action\", \"Hooves (after charge)\"]],\r\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, or Survival\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Centaur\"+\r\n\t\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\r\n\t\t\"\\n \\u2022 Hooves: I can use my hooves for unarmed strikes that deal 1d6 bludgeoning damage.\"+\r\n\t\t\"\\n \\u2022 Charge: If I move 30 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can make a hooves attack against it as a bonus action.\"+\r\n\t\t\"\\n \\u2022 Equine Build: I count as one size larger for my carrying capacity and the weight I can push, drag, or lift. Because of my hooves, 1 ft of movement while climbing costs me 4 ft.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse changeling\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*changeling).*$/i,\r\n\tname : \"Multiverse Changeling\",\r\n\tsortname : \"Changeling, Multiverse\",\r\n\tsource : [[\"MotM\", 41]],\r\n\tplural : \"Changelings\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose two from Deception, Insight, Intimidation, Performance, and Persuasion\",\r\n\tage : \" typically live to be around 100 years old. While a changeling can transform to conceal their age, the effects of aging affect them similarly to humans\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Changeling\"+\r\n\t\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\r\n\t\t\"\\n \\u2022 Shapechanger: As an action, I can change my appearance and voice to or from a humanoid-shaped form I have seen, not changing my equipment. I determine the specifics of the form like hair length, eye color, and sex. I can adjust my height and weight between Medium and Small and can appear as a member of another race, though none of my game statistics change. I revert back when I die.\"+\r\n\t\t(typePF ? \"\\n \\u2022 Changeling Instincts: I gain proficiency with 2 of the following skills: Deception, Insight, Intimidation, Performance, or Persuasion.\" : \"\"),\r\n\taction : [[\"action\", \"Shapechanger\"]]\r\n};\r\nRaceList[\"multiverse deep gnome\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))((?=.*\\b(underdarks?|deep|depths?)\\b)(?=.*\\bgnomes?\\b)|(?=.*svirfneblin)).*$/i,\r\n\tname : \"Multiverse Svirfneblin\",\r\n\tsortname : \"Gnome, Deep, Multiverse\",\r\n\tsource : [[\"MotM\", 41]],\r\n\tplural : \"Svirfneblin\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. spells\"] },\r\n\tage : \" can live to be 500 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Svirfneblin (my creature type is humanoid, gnome)\"+\r\n\t\t\"\\n \\u2022 Svirfneblin Camouflage: Proficiency bonus per long rest, I can gain adv. on Stealth checks.\"+\r\n\t\t\"\\n \\u2022 Gnomish Magic Resistance: I have advantage on Int, Wis, and Cha saves vs. spells.\"+\r\n\t\t\"\\n \\u2022 Gift of the Svirfneblin: At 3rd level, I can cast Disguise Self once per long rest without a spell slot. At 5th level, I can cast Nondetection once per long rest without a spell slot or material components. I can also cast each spell using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"svirfneblin camouflage\" : {\r\n\t\t\tname : \"Svirfneblin Camouflage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"gift of the svirfneblin (level 3)\" : {\r\n\t\t\tname : \"Gift of the Svirfneblin (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Gift of the Svirfneblin\",\r\n\t\t\t\tspells : [\"disguise self\"],\r\n\t\t\t\tselection : [\"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Disguise Self\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"gift of the svirfneblin (level 5)\" : {\r\n\t\t\tname : \"Gift of the Svirfneblin (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Gift of the Svirfneblin\",\r\n\t\t\t\tspells : [\"nondetection\"],\r\n\t\t\t\tselection : [\"nondetection\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"nondetection\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"nondetection\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Gift of the Svirfneblin trait.\",\r\n\t\t\t\t\tchanges : \"Using Gift of the Svirfneblin, I can cast Nondetection once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Nondetection\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse duergar\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))((?=.*\\bduergars?\\b)|((?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b)(?=.*\\b(grey|gray|underdark)\\b))).*$/i,\r\n\tname : \"Multiverse Duergar\",\r\n\tsortname : \"Duergar, Multiverse\",\r\n\tsource : [[\"MotM\", 12]],\r\n\tplural : \"Duergar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 120]],\r\n\tsavetxt : { adv_vs : [\"charmed\", \"poisoned\", \"stunned\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tage : \" can live to be 350 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Duergar (my creature type is humanoid, dwarf)\"+\r\n\t\t\"\\n \\u2022 Dwarven Resilience \\u0026 Psionic Fortitude: I have advantage on saving throws to avoid or end being poisoned, charmed, or stunned and I have resistance to poison damage.\"+\r\n\t\t\"\\n \\u2022 Duergar Magic: At 3rd level, I learn the Enlarge/Reduce spell. At 5th level, I learn the Invisibility spell. I can cast each spell on myself once per long rest without using a spell slot or material components, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"duergar magic (level 3)\" : {\r\n\t\t\tname : \"Duergar Magic (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic\",\r\n\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"enlarge/reduce\" : {\r\n\t\t\t\t\trange : \"Self/\" + SpellsList[\"enlarge/reduce\"].range,\r\n\t\t\t\t\tcomponents : SpellsList[\"enlarge/reduce\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"enlarge/reduce\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Duergar Magic trait.\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Enlarge/Reduce on myself once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Enlarge/Reduce\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"duergar magic (level 5)\" : {\r\n\t\t\tname : \"Duergar Magic (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Duergar Magic\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"invisibility\" : {\r\n\t\t\t\t\trange : \"Self/\" + SpellsList[\"invisibility\"].range,\r\n\t\t\t\t\tcomponents : SpellsList[\"invisibility\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"invisibility\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Duergar Magic trait.\",\r\n\t\t\t\t\tchanges : \"Using Duergar Magic, I can cast Invisibility on myself once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Invisibility\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse eladrin\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Multiverse Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin), Multiverse\",\r\n\tsource : [[\"MotM\", 13]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\tabilitySave : [4, 5, 6],\r\n\ttrait : \"Eladrin (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Shifting Seasons: After finish a long rest, I can align with a season.\"+\r\n\t\t\"\\n \\u2022 Fey Step: Prof Bonus per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. At 3rd level, additional effects based on my season.\",\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Shifting Seasons\",\r\n\t\tsource : [[\"MotM\", 13]],\r\n\t\tpopupName : \"Eladrin Shifting Season Features\",\r\n\t\tadditional : \"save DC 8 + Prof Bonus + Int/Wis/Cha mod\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"\\u2022 Autumn (Eladrin Season)\",\r\n\t\t\t\" After using Fey Step, up to 2 creatures I can see within 10 ft of me must make a Wis save\",\r\n\t\t\t\" If failed, a target is charmed by me for 1 minute, or until I or my allies damage it\",\r\n\t\t\t\"\\u2022 Winter (Eladrin Season)\",\r\n\t\t\t\" When I use Fey Step, one target \" + (typePF ? \"with\" : \"\") + \"in 5 ft of where I teleported from must make a Wis save\",\r\n\t\t\t\" If failed, it is frightened of me until the end of my next turn\",\r\n\t\t\t\"\\u2022 Spring (Eladrin Season)\",\r\n\t\t\t\" When I use Fey Step, I can instead teleport one willing creature I touch within 5 ft of me\",\r\n\t\t\t\" It teleports to an unoccupied space of my choice that I can see within 30 ft of me\",\r\n\t\t\t\"\\u2022 Summer (Eladrin Season)\",\r\n\t\t\t\" After using Fey Step, each creature of my choice I can see within 5 ft of me takes damage\",\r\n\t\t\t\" This is fire damage equal to my proficiency bonus\"\r\n\t\t]\r\n\t}]\r\n};\r\n// [dupl_start] reprints from Wild Beyond the Witchlight\r\nif (!RaceList[\"fairy\"]) {\r\n\tRaceList[\"fairy\"] = {\r\n\t\tregExpSearch : /fairy/i,\r\n\t\tname : \"Fairy\",\r\n\t\tsource : [[\"WBtW\", 12], [\"MotM\", 14]],\r\n\t\tplural : \"Fairies\",\r\n\t\tsize : 4,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 },\r\n\t\t\tfly : { spd : \"walk\", enc : 0 }\r\n\t\t},\r\n\t\tscoresGeneric : true,\r\n\t\tspellcastingAbility : [4, 5, 6],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Fairy Magic\",\r\n\t\t\tspells : [\"druidcraft\"],\r\n\t\t\tselection : [\"druidcraft\"],\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"fairy magic (level 3)\" : {\r\n\t\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Fairy Magic (level 3)\",\r\n\t\t\t\t\tspells : [\"faerie fire\"],\r\n\t\t\t\t\tselection : [\"faerie fire\"],\r\n\t\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\t\tallowUpCasting : true\r\n\t\t\t\t}],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Faerie Fire\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"fairy magic (level 5)\" : {\r\n\t\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Fairy Magic (level 5)\",\r\n\t\t\t\t\tspells : [\"enlarge/reduce\"],\r\n\t\t\t\t\tselection : [\"enlarge/reduce\"],\r\n\t\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\t\tallowUpCasting : true\r\n\t\t\t\t}],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Enlarge/Reduce\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Fairy\"+\r\n\t\t\t(typePF ? \"\\n \\u2022 Fey: My \" : \" (\") + \"creature type is fey, rather than humanoid\" + (typePF ? \".\" : \")\") +\r\n\t\t\t\"\\n \\u2022 Flight: I have a flying speed equal to my walking speed. To use this speed, I can't be wearing medium or heavy armor.\"+\r\n\t\t\t\"\\n \\u2022 Fairy Magic: I know the Druidcraft cantrip. At 3rd level, I learn Faerie Fire. At 5th level, I learn Enlarge/Reduce. I can cast each spell without using a spell slot once per long rest, as well as by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\"\r\n\t};\r\n}\r\nif (!RaceList[\"harengon\"]) {\r\n\tRaceList[\"harengon\"] = {\r\n\t\tregExpSearch : /harengon/i,\r\n\t\tname : \"Harengon\",\r\n\t\tsource : [[\"WBtW\", 13], [\"MotM\", 22]],\r\n\t\tplural : \"Harengons\",\r\n\t\tsize : [3, 4],\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 },\r\n\t\t},\r\n\t\tskills : [\"Perception\"],\r\n\t\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"I can add my proficiency bonus to my initiative rolls.\" }],\r\n\t\tscoresGeneric : true,\r\n\t\taction : [[\"reaction\", \"Lucky Footwork\"], [\"bonus action\", \"Rabbit Hop\"]],\r\n\t\tfeatures : {\r\n\t\t\t\"rabbit hop\" : {\r\n\t\t\t\tname : \"Rabbit Hop\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : ProficiencyBonusList.map(function(n) {\r\n\t\t\t\t\tvar hopDistance = n * 5 + ' ft';\r\n\t\t\t\t\treturn What(\"Unit System\") === \"metric\" ? ConvertToMetric(hopDistance) : hopDistance;\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\ttrait : \"Harengon\"+\r\n\t\t\t\"\\n \\u2022 Hare-Trigger: I can add my proficiency bonus to my initiative rolls.\"+\r\n\t\t\t\"\\n \\u2022 Leporine Senses: I have proficiency in the Perception skill.\"+\r\n\t\t\t\"\\n \\u2022 Lucky Footwork: As a reaction when I fail a Dexterity saving throw, I can add +1d4 to the result, potentially making it a success. I can't do this if I'm prone or my speed is 0.\"+\r\n\t\t\t\"\\n \\u2022 Rabbit Hop: As a bonus action if my speed isn't 0, I can jump 5 ft times my Prof Bonus without provoking opportunity attacks. I can do this my Prof Bonus times per long rest.\",\r\n\t};\r\n} // dupl_end\r\nRaceList[\"multiverse firbolg\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*firbolg).*$/i,\r\n\tname : \"Multiverse Firbolg\",\r\n\tsortname : \"Firbolg, Multiverse\",\r\n\tsource : [[\"MotM\", 15]],\r\n\tplural : \"Firbolg\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Speech of Beast and Leaf\", 1],\r\n\tage : \" can live up to 500 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Firbolg\"+\r\n\t\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Powerful Build: I count as one size larger for my carrying capacity.\"+\r\n\t\t\"\\n \\u2022 Hidden Step: Proficiency Bonus per long rest, as a bonus action, I can turn invisible until my next turn starts, as per the Invisibility spell.\"+\r\n\t\t\"\\n \\u2022 Firbolg Magic: I can cast Detect Magic and Disguise Self each once per long rest, or using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Speech of Beast and Leaf: I can make my words understood, in a limited manner, by Beasts, Plants, and vegetation. I have advantage on Charisma checks to influence them.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"firbolg magic \" : {\r\n\t\t\tname : \"Firbolg Magic\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Firbolg Magic\",\r\n\t\t\t\tspells : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tselection : [\"detect magic\", \"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Magic\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Disguise Self\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"disguise self\" : {\r\n\t\t\t\t\tdescription : \"Alter appearance, up to 3ft shorter/taller; Int(Investigation) check vs. spell DC to determine disguise\",\r\n\t\t\t\t\tchanges : \"Using Firbolg Magic, I can cast Disguise Self once per long rest without using a spell slot. When I cast it using Firbolg Magic, I can also seem up to 3 feet shorter or taller.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"hidden step\" : {\r\n\t\t\tname : \"Hidden Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse air genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bairs?\\b).*$/i,\r\n\tname : \"Multiverse Air Genasi\",\r\n\tsortname : \"Genasi, Air, Multiverse\",\r\n\tsource : [[\"MotM\", 16]],\r\n\tplural : \"Air genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Air Genasi\"+\r\n\t\"\\n \\u2022 Unending Breath: I can hold my breath indefinitely while I am not incapacitated.\"+\r\n\t\"\\n \\u2022 Lightning Resistance: I have resistance to lightning damage.\"+\r\n\t\"\\n \\u2022 Mingle with the Wind: I know the Shocking Grasp cantrip. At 3rd level, I learn Feather Fall. At 5th level, I learn Levitate. I can cast each spell without using a spell slot or material components once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Mingle with the Wind\",\r\n\t\tspells : [\"shocking grasp\"],\r\n\t\tselection : [\"shocking grasp\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"mingle with the wind (level 3)\" : {\r\n\t\t\tname : \"Mingle with the Wind (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"feather fall\"],\r\n\t\t\t\tselection : [\"feather fall\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Feather Fall\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"feather fall\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"feather fall\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"feather fall\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Mingle with the Wind trait.\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Feather Fall once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"mingle with the wind (level 5)\" : {\r\n\t\t\tname : \"Mingle with the Wind (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mingle with the Wind\",\r\n\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\tselection : [\"levitate\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Levitate\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"levitate\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"levitate\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Mingle with the Wind trait.\",\r\n\t\t\t\t\tchanges : \"Using Mingle with the Wind, I can cast Levitate once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse earth genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bearths?\\b).*$/i,\r\n\tname : \"Multiverse Earth Genasi\",\r\n\tsortname : \"Genasi, Earth, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Earth genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Earth Genasi\"+\r\n\t\"\\n \\u2022 Earth Walk: I can move across difficult terrain without expending extra movement if I am using my walking speed on the ground or a floor.\"+\r\n\t\"\\n \\u2022 Merge with Stone: I can cast the Blade Ward cantrip as normal and as a bonus action Prof Bonus times per long rest. At 5th level, I can cast Pass Without Trace without using a spell slot or material component once per long rest, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"Merge with Stone (level 1)\" : {\r\n\t\t\tname : \"Merge with Stone\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"blade ward\"],\r\n\t\t\t\tselection : [\"blade ward\"],\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Blade Ward (as bonus action)\",\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\"\r\n\t\t\t}],\r\n\t\t\taction : [[\"bonus action\", \"Blade Ward\"]],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"blade ward\" : {\r\n\t\t\t\t\ttime : \"1 a/bns\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Blade Ward as a bonus action a number of times per long rest equal to my proficiency bonus.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"merge with stone (level 5)\" : {\r\n\t\t\tname : \"Merge with Stone (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Merge with Stone\",\r\n\t\t\t\tspells : [\"pass without trace\"],\r\n\t\t\t\tselection : [\"pass without trace\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Pass Without Trace\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"pass without trace\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"pass without trace\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"pass without trace\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Merge with Stone trait.\",\r\n\t\t\t\t\tchanges : \"Using Merge with Stone, I can cast Pass Without Trace once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse fire genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bfires?\\b).*$/i,\r\n\tname : \"Multiverse Fire Genasi\",\r\n\tsortname : \"Genasi, Fire, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Fire genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Fire Genasi\"+\r\n\t\"\\n \\u2022 Fire Resistance: I have resistance to fire damage.\"+\r\n\t\"\\n \\u2022 Reach to the Blaze: I know the Produce Flame cantrip. At 3rd level, I learn Burning Hands. At 5th level, I learn Flame Blade. I can cast each spell without using a spell slot or material components once per long rest, or by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Reach to the Blaze\",\r\n\t\tspells : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"reach to the blaze (level 3)\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze\",\r\n\t\t\t\tspells : [\"burning hands\"],\r\n\t\t\t\tselection : [\"burning hands\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Burning Hands\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"reach to the blaze (level 5)\" : {\r\n\t\t\tname : \"Reach to the Blaze (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Reach to the Blaze\",\r\n\t\t\t\tspells : [\"flame blade\"],\r\n\t\t\t\tselection : [\"flame blade\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Flame Blade\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"flame blade\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"flame blade\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"flame blade\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Reach to the Blaze trait.\",\r\n\t\t\t\t\tchanges : \"Using Reach to the Blaze, I can cast Flame Blade once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse water genasi\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*(genasi|planetouched))(?=.*\\bwaters?\\b).*$/i,\r\n\tname : \"Multiverse Water Genasi\",\r\n\tsortname : \"Genasi, Water, Multiverse\",\r\n\tsource : [[\"MotM\", 17]],\r\n\tplural : \"Water genasi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Acid\"],\r\n\tage : \" can live up to 120 years\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Water Genasi\"+\r\n\t\"\\n \\u2022 Amphibious: I can breathe air and water\" + (typePF ? \"and I have a swimming speed equal to my walking speed.\" : \", have a swimming speed equal to walking speed.\")+\r\n\t\"\\n \\u2022 Acid Resistance: I have resistance to acid damage.\"+\r\n\t\"\\n \\u2022 Call to the Wave: I know the Acid Splash cantrip. At 3rd level, I can cast Create or Destroy Water without using a spell slot once per long rest. At 5th level, I can cast Water Walk without using a spell slot or material components once per long rest. I can also cast each spell using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these\" + (typePF ? \" (one-time choice).\" : \".\"),\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Call to the Wave\",\r\n\t\tspells : [\"acid splash\"],\r\n\t\tselection : [\"acid splash\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"call to the wave (level 3)\" : {\r\n\t\t\tname : \"Call to the Wave (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave\",\r\n\t\t\t\tspells : [\"create or destroy water\"],\r\n\t\t\t\tselection : [\"create or destroy water\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Create or Destroy Water\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"call to the wave (level 5)\" : {\r\n\t\t\tname : \"Call to the Wave (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Call to the Wave\",\r\n\t\t\t\tspells : [\"water walk\"],\r\n\t\t\t\tselection : [\"water walk\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Water Walk\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"water walk\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"water walk\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"water walk\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Call to the Wave trait.\",\r\n\t\t\t\t\tchanges : \"Using Call to the Wave, I can cast Water Walk once per long rest without requiring material components. I can also cast it using a spell slot as normal, but then it does require material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"multiverse githyanki\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*githyanki).*$/i,\r\n\tname : \"Multiverse Githyanki\",\r\n\tsortname : \"Githyanki, Multiverse\",\r\n\tsource : [[\"MotM\", 18]],\r\n\tplural : \"Githyanki\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Psychic\"],\r\n\tskillstxt : \"Choose any one skill that lasts until the end of my next long rest\",\r\n\ttoolProfs : [[\"Astral Knowledge: tool/weapon\", 1]],\r\n\tage : \" typically live to be around 100 years old. Githyanki who reside in the Astral Plane can live indefinitely.\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Githyanki\"+\r\n\t\t\"\\n \\u2022 Astral Knowledge: When I finish a long rest, I gain proficiency with 1 skill and with 1 weapon or tool from the PHB until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Githyanki Psionics: I know the Mage Hand cantrip, but require no components to cast it and the hand is invisible. At 3rd level, I learn Jump. At 5th level, I learn Misty Step. I can cast each without using components or a spell slot once per long rest, as well as by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githyanki Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\r\n\t\t\tchanges : \"Using Githyanki Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"githyanki psionics (level 3)\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (3)\",\r\n\t\t\t\tspells : [\"jump\"],\r\n\t\t\t\tselection : [\"jump\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Jump\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"jump\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"jump\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"jump\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Githyanki Psionics trait.\",\r\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Jump once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"githyanki psionics (level 5)\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (5)\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Misty Step\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"misty step\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"misty step\"].components + \"*\",\r\n\t\t\t\t\tchanges : \"Using Githyanki Psionics, I can cast Misty Step once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n// Githzerai\r\nRaceList[\"multiverse githzerai\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*githzerai).*$/i,\r\n\tname : \"Multiverse Githzerai\",\r\n\tsortname : \"Githzerai, Multiverse\",\r\n\tsource : [[\"MotM\", 19]],\r\n\tplural : \"Githzerai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] },\r\n\tdmgres : [\"Psychic\"],\r\n\tage : \" typically live to be around 100 years old. Githzerai who reside in the Astral Plane can live indefinitely.\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Githzerai\"+\r\n\t\t\"\\n \\u2022 Githzerai Psionics: I know the Mage Hand cantrip, but require no components to cast it and the hand is invisible. At 3rd level, I learn Shield. At 5th level, I learn Detect Thoughts. I can cast each without using components or a spell slot once per long rest, or by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Mental Discipline: I have advantage on saving throws to avoid or end the charmed and frightened conditions on myself.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githzerai Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiple\",\r\n\t\t\tchanges : \"Using Githzerai Psionics, I can cast Mage Hand without requiring components and the spectral hand is invisible.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"githzerai psionics (level 3)\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (3)\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Shield\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"shield\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"shield\"].components + \"*\",\r\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Shield once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"githzerai psionics (level 5)\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (5)\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Detect Thoughts\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect thoughts\" : {\r\n\t\t\t\t\tcomponents : SpellsList[\"detect thoughts\"].components + \"*\",\r\n\t\t\t\t\tcompMaterial : SpellsList[\"detect thoughts\"].compMaterial + \"\\nMaterial component is only needed when cast using a spell slot, not when cast using the Githzerai Psionics trait.\",\r\n\t\t\t\t\tchanges : \"Using Githzerai Psionics, I can cast Detect Thoughts once per long rest without requiring components. I can also cast it using a spell slot as normal, but then it does require components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse goblin\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*goblin).*$/i,\r\n\tname : \"Multiverse Goblin\",\r\n\tsortname : \"Goblin, Multiverse\",\r\n\tsource : [[\"MotM\", 20]],\r\n\tplural : \"Goblins\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"fury of the small\" : {\r\n\t\t\tname : \"Fury of the Small\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" damage\"; })\r\n\t\t}\r\n\t},\r\n\taction : [[\"bonus action\", \"Nimble Escape (disengage/hide)\"]],\r\n\ttrait : \"Goblin (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have advantage on saving throws to avoid or end the charmed condition on myself.\"+\r\n\t\t\"\\n \\u2022 Fury of the Small: A number of times per long rest equal to my Proficiency Bonus, when I damage a creature of a size category larger than mine with an attack or a spell, I can have it take extra damage equal to my Proficiency Bonus.\"+\r\n\t\t\"\\n \\u2022 Nimble Escape: As a bonus action, I can take the Disengage or Hide action.\"\r\n};\r\nRaceList[\"multiverse goliath\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*goliath).*$/i,\r\n\tname : \"Multiverse Goliath\",\r\n\tsortname : \"Goliath, Multiverse\",\r\n\tsource : [[\"MotM\", 21]],\r\n\tplural : \"Goliaths\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Athletics\"],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"stone's endurance\" : {\r\n\t\t\tname : \"Stone's Endurance\",\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Goliath\"+\r\n\t\t\"\\n \\u2022 Stone's Endurance: Proficiency Bonus per long rest, when I take damage, I can use my reaction to reduce the damage by 1d12 + my Constitution modifier.\"+\r\n\t\t\"\\n \\u2022 Little Giant: I have proficiency in the Athletics skill and count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\"\\n \\u2022 Mountain Born: I have resistance to cold damage and I'm acclimated to high altitude, including elevations above 20000 ft.\",\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse hobgoblin\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*hobgoblin).*$/i,\r\n\tname : \"Multiverse Hobgoblin\",\r\n\tsortname : \"Hobgoblin, Multiverse\",\r\n\tsource : [[\"MotM\", 23]],\r\n\tplural : \"Hobgoblins\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tfeatures : {\r\n\t\t\"fey gift\" : {\r\n\t\t\tname : \"Fey Gift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \" (Help action)\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"fortune from the many\" : {\r\n\t\t\tname : \"Fortune from the Many\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"fey gift: additional effect\" : {\r\n\t\t\tname : \"Fey Gifts: Additional Effects\",\r\n\t\t\tminlevel : 3,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Whenever I use Fey Gift to take the Help action, I can choose one of these additional effects:\",\r\n\t\t\t\t\t\" \\u2022 Hospitality: The one I help and I each gain 1d6 + my Prof Bonus in temporary HP\",\r\n\t\t\t\t\t\" \\u2022 Passage: The one I help and I both gain +10 ft walking speed until my next turn stats\",\r\n\t\t\t\t\t\" \\u2022 Spite: The first time the one I help hits an attack roll before my next turn starts,\",\r\n\t\t\t\t\t\"   the creature hit gains disadvantage on its next attack roll within the next minute\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hobgoblin (my creature type is humanoid, goblinoid)\"+\r\n\t\t\"\\n \\u2022 Fey Ancestry: I have adv. on saves to avoid or end being charmed.\"+\r\n\t\t'\\n \\u2022 Fey Gift: Prof Bonus per long rest, I can take the Help action as a bonus action. From 3rd-level, I can produce an additional effect when I do this: Hospitality, Passage, or Spite.'+\r\n\t\t\"\\n \\u2022 Fortune from the Many: Prof Bonus per long rest, when I miss an attack or fail an ability check or saving throw, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +3).\"\r\n};\r\nRaceList[\"multiverse kenku\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*kenku).*$/i,\r\n\tname : \"Multiverse Kenku\",\r\n\tsortname : \"Kenku, Multiverse\",\r\n\tsource : [[\"MotM\", 24]],\r\n\tplural : \"Kenku\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose any two skills\",\r\n\tabilitySave : 6,\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"kenku recall\" : {\r\n\t\t\tname : \"Kenku Recall\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kenku\"+\r\n\t\t\"\\n \\u2022 Expert Duplication: I have adv. on checks to produce exact copies of writing or craftwork.\"+\r\n\t\t\"\\n \\u2022 Kenku Recall: Proficiency Bonus per long rest, I can give myself advantage on an ability check using any skill in which I have proficiency.\"+\r\n\t\t\"\\n \\u2022 Mimicry: I can mimic sounds and voices I have heard. Creatures hearing me can determine the imitation with a successful Wisdom (Insight) check against a DC of 8 + my Proficiency Bonus + my Charisma modifier.\"\r\n};\r\nvar MotM_Kobold_Draconic_Cry = \"\\n \\u2022 Draconic Cry: As a bonus action, I can let out a cry. Until the start of my next turn, my allies and I have advantage on attack rolls against any enemies within 10 ft of me who could hear the cry. I can do this a number of times per long rest equal to my Proficiency Bonus.\";\r\nRaceList[\"multiverse kobold\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*kobold).*$/i,\r\n\tname : \"Multiverse Kobold\",\r\n\tsortname : \"Kobold, Multiverse\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tplural : \"Kobolds\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"draconic cry\" : {\r\n\t\t\tname : \"Draconic Cry\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy: Choose one of the following with the \"Racial Options\" button:'+\r\n\t\t\"\\n    - Defiance: I have advantage on saves vs. being frightened\"+\r\n\t\t\"\\n    - Draconic Sorcery: I know one sorcerer cantrip of my choice\"+\r\n\t\t\"\\n    - Craftiness: I gain proficiency in one of the following: Arcana, Investigation, Medicine, Sleight of Hand, or Survival.\"+\r\n\t\tMotM_Kobold_Draconic_Cry\r\n};\r\nAddRacialVariant(\"multiverse kobold\", \"craftiness\", {\r\n\tregExpSearch : /craftiness/i,\r\n\tname : \"Craftiness Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tskillstxt : \"Choose one from Arcana, Investigation, Medicine, Sleight of Hand, or Survival\",\r\n\ttrait : \"Kobold\"+\r\n\t\t\"\\n \\u2022 Kobold Legacy (Craftiness): I gain proficiency in one of the following skills of my choice: Arcana, Investigation, Medicine, Sleight of Hand, or Survival.\"+\r\n\t\tMotM_Kobold_Draconic_Cry\r\n});\r\nAddRacialVariant(\"multiverse kobold\", \"defiance\", {\r\n\tregExpSearch : /defiance/i,\r\n\tname : \"Defiance Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tplural : \"Kobolds\",\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy (Defiance): I have advantage on saving throws to avoid or end the frightened condition on myself.'+\r\n\t\tMotM_Kobold_Draconic_Cry,\r\n});\r\nAddRacialVariant(\"multiverse kobold\", \"draconic sorcery\", {\r\n\tregExpSearch : /sorcery/i,\r\n\tname : \"Draconic Sorcery Multiverse Kobold\",\r\n\tsource : [[\"MotM\", 25]],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Kobold Legacy\",\r\n\t\t\"class\" : \"sorcerer\",\r\n\t\tlevel : [0, 0],\r\n\t}],\r\n\ttrait : \"Kobold\"+\r\n\t\t'\\n \\u2022 Kobold Legacy (Draconic Sorcery): I know one cantrip from the sorcerer spell list. Intelligence, Wisdom, or Charisma is my spellcasting ability for it (one-time choice).'+\r\n\t\tMotM_Kobold_Draconic_Cry,\r\n});\r\n// Lizardfolk\r\nRaceList[\"multiverse lizardfolk\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*lizard(folk|man|men)).*$/i,\r\n\tname : \"Multiverse Lizardfolk\",\r\n\tsortname : \"Lizardfolk, Multiverse\",\r\n\tsource : [[\"MotM\", 26]],\r\n\tplural : \"Lizardfolk\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tskillstxt : \"Choose two from Animal Handling, Medicine, Nature, Perception, Stealth, and Survival\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bbite\\b/i,\r\n\t\tname : \"Bite\",\r\n\t\tsource : [[\"MotM\", 26]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*natural)(?=.*armou?r).*$/i,\r\n\t\tname : \"Natural Armor\",\r\n\t\tsource : [[\"MotM\", 26]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"hungry jaws\" : {\r\n\t\t\tname : \"Hungry Jaws\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return n + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Lizardfolk\"+\r\n\t\t\"\\n \\u2022 Bite: My unarmed strikes with my fanged maw deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 15 minutes at a time.\"+\r\n\t\t\"\\n \\u2022 Hungry Jaws: Prof Bonus per long rest, as a bonus action, I can make a special bite attack. If it hits, it deals damage and I gain temporary HP equal to my proficiency bonus.\"+\r\n\t\t\"\\n \\u2022 Natural Armor: I have an AC of 13 + Dexterity modifier + shield.\"+\r\n\t\t\"\\n \\u2022 Nature's Intuition: I gain proficiency with two of the following  Animal Handling, Medicine, Nature, Perception, Stealth, or Survival.\"\r\n};\r\nRaceList[\"multiverse minotaur\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*minotaur).*$/i,\r\n\tname : \"Multiverse Minotaur\",\r\n\tsortname : \"Minotaur, Multiverse\",\r\n\tsource : [[\"MotM\", 27]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"MotM\", 27]],\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\tdescription : \"Attack as a bonus action after moving 20 ft with the Dash action\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tabilitySave : 1,\r\n\tvision : [[\"Always know north\", 0], [\"Adv. on Survival to navigate or track\", 0]],\r\n\taction : [[\"bonus action\", \"Goring Rush (with Dash)\"], [\"bonus action\", \"Hammering Horns (after hit)\"]],\r\n\ttrait : \"Minotaur\"+(typePF ? \"\\n\" : \"\")+\r\n\t\t\" \\u2022 Horns: My unarmed strikes with horns deal 1d6 piercing damage.\"+\r\n\t\t\"\\n \\u2022 Goring Rush: When taking a Dash action and moving at least 20 ft, I can make a horns attack as a bonus action.\"+\r\n\t\t\"\\n \\u2022 Hammering Horns: As a bonus action after I hit a melee attack on my turn during my Attack action, I can shove the target, if it's up to one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 10 ft away from me.\"+\r\n\t\t\"\\n \\u2022 Labyrinthine Recall: \" + (typePF ? \"I always know which direction is north, and have adv. on any Wis (Survival) check I make to navigate or track.\" : \"I have adv. on Survival to navigate or track and always know north.\")\r\n};\r\nRaceList[\"multiverse orc\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))(?=.*orc).*$/i,\r\n\tname : \"Multiverse Orc\",\r\n\tsortname : \"Orc, Multiverse\",\r\n\tsource : [[\"MotM\", 28]],\r\n\tplural : \"Orcs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Orc\"+\r\n\t\t\"\\n \\u2022 Adrenaline Rush: Proficiency bonus per long rest, I can take the Dash action as a bonus action and gain my proficiency bonus in temporary hit points.\"+\r\n\t\t\"\\n \\u2022 Powerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"+\r\n\t\t\"\\n \\u2022 Relentless Endurance: Once per long rest, when I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead.\",\r\n\tfeatures : {\r\n\t\t\"adrenaline rush\" : {\r\n\t\t\tname : \"Adrenaline Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" temp HP\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t},\r\n\t\t\"relentless endurance\" : {\r\n\t\t\tname : \"Relentless Endurance\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\nRaceList[\"multiverse satyr\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*satyr).*$/i,\r\n\tname : \"Multiverse Satyr\",\r\n\tsortname : \"Satyr, Multiverse\",\r\n\tsource : [[\"MotM\", 29]],\r\n\tplural : \"Satyr\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 35, enc : 25 }\r\n\t},\r\n\tsavetxt : { adv_vs : [\"spells\"] },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(satyr|\\bram\\b))(?=.*headbutt).*$/i,\r\n\t\tname : \"Satyr Headbutt\",\r\n\t\tsource : [[\"MotM\", 29]],\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tscoresGeneric : true,\r\n\tskills : [\"Performance\", \"Persuasion\"],\r\n\ttrait : \"Satyr (my creature type is fey, rather than humanoid)\"+\r\n\t\t\"\\n \\u2022 Ram: My unarmed strikes with my horned head deal 1d6 bludgeoning damage.\"+\r\n\t\t\"\\n \\u2022 Magic Resistance: I have advantage on saves against spells.\"+\r\n\t\t\"\\n \\u2022 Mirthful Leaps: Whenever I make a long or high jump, I can roll a d8 and add the number rolled to the number of feet I cover, even when making a standing jump. This extra distance costs movement as normal.\"+\r\n\t\t\"\\n \\u2022 Reveler: I have proficiency in Performance, Persuasion, and one musical instrument.\"\r\n};\r\nRaceList[\"multiverse sea elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\r\n\tname : \"Multiverse Sea Elf\",\r\n\tsortname : \"Elf, Sea, Multiverse\",\r\n\tsource : [[\"MotM\", 30]],\r\n\tplural : \"Sea Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Friend of the Sea\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Sea Elf (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Child of the Sea. I can breathe air and water and have resistance to cold damage.\"+\r\n\t\t\"\\n \\u2022 Friend of the Sea: I can communicate simple ideas to beasts with a swimming speed. It can understand my words, though I have no special ability to understand it in return.\"\r\n};\r\nRaceList[\"multiverse shadar-kai\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*(multiverse|motm\\b))((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\r\n\tname : \"Multiverse Shadar-kai\",\r\n\tsortname : \"Elf, Shadow (Shadar-kai), Multiverse\",\r\n\tsource : [[\"MotM\", 31]],\r\n\tplural : \"Shadar-kai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tdmgres : [\"Necrotic\"],\r\n\tskills : [\"Perception\"],\r\n\ttoolProfs : [[\"Trance: tool or weapon\", 2]],\r\n\tage : \" can live to be 750 years old\",\r\n\tscoresGeneric : true,\r\n\ttrait : \"Shadar-kai (my creature type is humanoid, elf)\"+\r\n\t\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours while meditating consciously. At the end of the trance, I gain 2 weapon/tool proficiencies until the end of my next long rest.\"+\r\n\t\t\"\\n \\u2022 Blessing of the Raven Queen: Prof Bonus per long rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see. Once I reach 3rd level, I then also appear translucent and have resistance to all damage until the start of my next turn.\",\r\n\tfeatures : {\r\n\t\t\"blessing of the raven queen\" : {\r\n\t\t\tname : \"Blessing of the Raven Queen\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n[{\r\n\tname : \"Beasthide\",\r\n\tregExpSearch : \"(?=.*beast)(?=.*hide)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Beasthide): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance. This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain 1d6 + twice my proficiency bonus in temporary hit points and a +1 bonus to my AC.\",\r\n\textra : {\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"1d6 + \" + (2 * n) + \" temp HP\"; })\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}, {\r\n\tname : \"Longtooth\",\r\n\tregExpSearch : \"(?=.*long)(?=.*(tooth|teeth))\",\r\n\ttrait : \"\\n \\u2022 Shifting (Longtooth): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points and my fangs elongate. As part of the bonus action when I shift and as a bonus action while shifted, I can make a single unarmed strike with my elongated fangs that deals 1d6 piercing damage.\",\r\n\textra : {\r\n\t\taction : [[\"bonus action\", \"Longtooth Fangs (while shifted)\"]],\r\n\t\tweaponOptions : [{\r\n\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\r\n\t\t\tname : \"Longtooth Fangs\",\r\n\t\t\tsource : [[\"MotM\", 32]],\r\n\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\tdescription : \"Only while shifted; One attack as bonus action\",\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n}, {\r\n\tname : \"Swiftstride\",\r\n\tregExpSearch : \"(?=.*swift)(?=.*stride)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Swiftstride): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points and +10 ft to my walking speed. Additionally, as a reaction when a creature ends its turn within 5 ft of me, I can move up to 10 ft. This reactive movement doesn't provoke opportunity attacks.\",\r\n\textra : {\r\n\t\taction : [['reaction', 'Reactive Stride (while shifted)']]\r\n\t}\r\n}, {\r\n\tname : \"Wildhunt\",\r\n\tregExpSearch : \"(?=.*wild)(?=.*hunt)\",\r\n\ttrait : \"\\n \\u2022 Shifting (Wildhunt): Prof Bonus per long rest, as a bonus action, I can assume a more bestial appearance. This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action. When I shift, I gain twice my proficiency bonus in temporary hit points. While I'm shifted, I have advantage on Wisdom checks and no creature within 30 ft of me can make an attack roll with advantage against me unless I'm incapacitated.\",\r\n\textra : {\r\n\t\tvision : [\r\n\t\t\t[\"Darkvision\", 60],\r\n\t\t\t[\"While shifted, creatures within 30 ft can't attack me with adv.\", 0]\r\n\t\t],\r\n\t\tsavetxt : { text : [\"While shifted, Adv. on Wis checks\"] }\r\n\t}\r\n}].forEach(function(o) {\r\n\tvar objNm = \"multiverse \" + o.name.toLowerCase() + \" shifter\";\r\n\tRaceList[objNm] = {\r\n\t\tregExpSearch : RegExp(\"^(?=.*(multiverse|motm\\\\b))\" + o.regExpSearch + \"(?=.*shifter).*$\", \"i\"),\r\n\t\tname : \"Multiverse \" + o.name + \" Shifter\",\r\n\t\tsortname : \"Shifter, \" + o.name + \", Multiverse\",\r\n\t\tsource : [[\"MotM\", 32]],\r\n\t\tplural : o.name + \" shifters\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tskillstxt : \"Choose one skill from Acrobatics, Athletics, Intimidation, or Survival\",\r\n\t\tscoresGeneric : true,\r\n\t\ttrait : o.name + \" Shifter\"+\r\n\t\t\t\"\\n \\u2022 Bestial Instincts: I have proficiency in Acrobatics, Athletics, Intimidation, or Survival.\"+\r\n\t\t\to.trait,\r\n\t\tfeatures : {\r\n\t\t\t\"shift\" : {\r\n\t\t\t\tname : \"Shift\",\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tadditional : ProficiencyBonusList.map(function(n) { return 2 * n + \" temp HP\"; }),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tfor (var attr in o.extra) {\r\n\t\tRaceList[objNm][attr] = o.extra[attr];\r\n\t}\r\n});\r\nRaceList[\"tabaxi-motm\"] = { // just a plain improvement over the previous, no need to make it a separate \"multiverse\" choice\r\n\tregExpSearch : /tabaxi/i,\r\n\tname : \"Tabaxi\",\r\n\tsource : [[\"MotM\", 33]],\r\n\tplural : \"Tabaxi\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tskills : [\"Perception\", \"Stealth\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(tabaxi|\\bcat\\b))(?=.*claw).*$/i,\r\n\t\tname : \"Tabaxi Claws\",\r\n\t\tsource : [[\"MotM\", 33]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tage : \" reach adulthood in their late teens and live less than 100 years [according to VGtM]\",\r\n\theight : \", when Medium sized, range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\") [according to VGtM]\",\r\n\tweight : \", when Medium sized, weigh around 150 lb (90 + 2d10 \\xD7 2d4 lb) [according to VGtM]\",\r\n\theightMetric : \", when Medium sized, range from 1,5 to well over 1,8 metres tall (145 + 5d10 cm) [according to VGtM]\",\r\n\tweightMetric : \", when Medium sized, weigh around 70 kg (40 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tfeatures : {\r\n\t\t\"feline agility\" : {\r\n\t\t\tname : \"Feline Agility\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \" Turn\",\r\n\t\t\tadditional : \"still for 1 turn to recover\",\r\n\t\t\ttooltip : \" (can be replenished by not moving for one whole turn)\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Tabaxi\"+\r\n\t\t\"\\n \\u2022 Cat's Talent: I have proficiency in Perception and Stealth.\"+\r\n\t\t\"\\n \\u2022 Cat's Claws: I can use my retractable claws to make unarmed strikes dealing 1d6 slashing damage. They also give me a climbing speed equal to my walking speed.\"+\r\n\t\t\"\\n \\u2022 Feline Agility: When moving on my turn in combat, I can move double my speed. Once I do this, I can't do it again until I don't move at all on one of my turns.\"\r\n};\r\nRaceList[\"tortle-motm\"] = { // just a plain improvement over the previous, no need to make it a separate \"multiverse\" choice\r\n\tregExpSearch : /tortle/i,\r\n\tname : \"Tortle\",\r\n\tsortname : \"Tortle\",\r\n\tsource : [[\"MotM\", 34]],\r\n\tplural : \"Tortles\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tskillstxt : \"Choose one from Animal Handling, Medicine, Nature, Perception, Stealth, or Survival\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*shell).*$/i,\r\n\t\tname : \"Tortle's Shell\",\r\n\t\tsource : [[\"MotM\", 34]],\r\n\t\tac : 17,\r\n\t\tdex : -10,\r\n\t\tselectNow : true\r\n\t}],\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*tortle)(?=.*\\bclaws?\\b).*$/i,\r\n\t\tname : \"Tortle's Claws\",\r\n\t\tsource : [[\"MotM\", 34]],\r\n\t\tdamage : [1, 6, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\tscoresGeneric : true,\r\n\tage : \" reach adulthood by the age of 15 and live an average of 50 years [according to the Tortle Package]\",\r\n\theight : \", when Medium sized, stand between 5 and 6 feet tall (4'10\\\" + 2d8\\\") [according to the Tortle Package]\",\r\n\tweight : \", when Medium sized, weigh around 450 lb (400 + 2d8 \\xD7 2d4 lb) [according to the Tortle Package]\",\r\n\theightMetric : \", when Medium sized, stand between 1,5 and 1,8 metres tall (150 + 5d8 cm) [according to the Tortle Package]\",\r\n\tweightMetric : \", when Medium sized, weigh around 190 kg (180 + 5d8 \\xD7 4d4 / 10 kg) [according to the Tortle Package]\",\r\n\taction : [[\"action\", \"Shell Defense (start)\"], [\"bonus action\", \"Shell Defense (end)\"]],\r\n\ttrait : \"Tortle\"+\r\n\t\t\"\\n \\u2022 Claws: My unarmed strikes with my claws deal 1d6 slashing damage.\"+\r\n\t\t\"\\n \\u2022 Hold Breath: I can hold my breath for up to 1 hour at a time.\"+\r\n\t\t\"\\n \\u2022 Natural Armor: I have a base AC of 17, but I can't add my Dex to it or wear armor.\"+\r\n\t\t\"\\n \\u2022 Shell Defense: As an action, I can withdraw into my shell and gain +4 AC and adv. on Str and Con saves, but I count as prone, have speed 0, have disadv. on Dex saves, and can't take reactions. The only action I can take is a bonus action to emerge from the shell.\"\r\n};\r\nRaceList[\"multiverse triton\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*triton).*$/i,\r\n\tname : \"Multiverse Triton\",\r\n\tsortname : \"Triton, Multiverse\",\r\n\tsource : [[\"MotM\", 35]],\r\n\tplural : \"Triton\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tdmgres : [\"Cold\"],\r\n\tlanguageProfs : [\"Common\", \"Emissary of the Sea\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tscoresGeneric : true,\r\n\ttrait : \"Triton\"+\r\n\t\t\"\\n \\u2022 Control Air and Water: I can cast the Fog Cloud spell. At 3rd level, Gust of Wind. At 5th level, Water Walk. I can cast each without using a spell slot once per long rest, and by using spell slots as normal. Int, Wis, or Cha is my spellcasting ability for these (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Emissary of the Sea: I can communicate simple ideas to beasts, elementals, and monstrosities with a swimming speed. They can understand my words, though I have no special ability to understand them in return.\"+\r\n\t\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Amphibious: I can breathe air and water.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"control air and water (level 1)\" : {\r\n\t\t\tname : \"Control Air and Water (level 1)\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"fog cloud\"],\r\n\t\t\t\tselection : [\"fog cloud\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Fog Cloud\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 1+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"control air and water (level 3)\" : {\r\n\t\t\tname : \"Control Air and Water (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Gust of Wind\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"control air and water (level 5)\" : {\r\n\t\t\tname : \"Control Air and Water (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Control Air and Water\",\r\n\t\t\t\tspells : [\"water walk\"],\r\n\t\t\t\tselection : [\"water walk\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Water Walk\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 3+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n};\r\nRaceList[\"multiverse yuan-ti\"] = {\r\n\tregExpSearch : /^(?=.*(multiverse|motm\\b))(?=.*yuan.ti).*$/i,\r\n\tname : \"Multiverse Yuan-Ti\",\r\n\tsortname : \"Yuan-Ti, Multiverse\",\r\n\tsource : [[\"MotM\", 36]],\r\n\tplural : \"Yuan-Ti\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"poisoned\", \"spells\"],\r\n\t},\r\n\tscoresGeneric : true,\r\n\ttrait : \"Yuan-Ti\"+\r\n\t\t\"\\n \\u2022 Serpentine Spellcasting: I know the Poison Spray cantrip and I can cast Animal Friendship on snakes at will. Once I reach 3rd level, I can cast Suggestion once per long rest, and by using spell slots as normal. Intelligence, Wisdom, or Charisma is my spellcasting ability for these spells (one-time choice).\"+\r\n\t\t\"\\n \\u2022 Magic and Poison Resistance: I have advantage on saving throws against spells and on saving throws to avoid or end being poisoned. I also have resistance to poison damage.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Serpentine Spellcasting (level 1)\",\r\n\t\tspells : [\"poison spray\", \"animal friendship\"],\r\n\t\tselection : [\"poison spray\", \"animal friendship\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2,\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tdescription : \"One snake with Intelligence 3 or less save or charmed for the duration\",\r\n\t\t\tchanges : \"I can cast Animal Friendship at-will, but only to target snakes.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"serpentine spellcasting (level 3)\" : {\r\n\t\t\tname : \"Serpentine Spellcasting (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Serpentine Spellcasting (level 3)\",\r\n\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\tfirstCol : 'oncelr',\r\n\t\t\t\tallowUpCasting : true\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Suggestion\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 2+\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Creatures\r\n// [dupl_start] reprints from Volo's Guide to Monsters\r\nif (!SourceList[\"V\"]) {\r\n\tCreatureList[\"aurochs\"] = {\r\n\t\tname : \"Aurochs\",\r\n\t\tsource : [[\"V\", 207], [\"MotM\", 71]],\r\n\t\tsize : 2, //Large\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"cattle\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 11,\r\n\t\thp : 38,\r\n\t\thd : [4, 10], //[#, die]\r\n\t\tspeed : \"50 ft\",\r\n\t\tscores : [20, 10, 19, 2, 12, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tpassivePerception : 11,\r\n\t\tchallengeRating : \"2\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Gore\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [2, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Charge\",\r\n\t\t\tdescription : \"If the aurochs moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) piercing damage. A targeted creature must succeed on a DC 15 Strength saving throw or be knocked prone.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"ox\"] = {\r\n\t\tname : \"Ox\",\r\n\t\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\t\tsize : 2, //Large\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"cattle\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 10,\r\n\t\thp : 15,\r\n\t\thd : [2, 10], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Gore\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Charge\",\r\n\t\t\tdescription : \"If the ox moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t\t}, {\r\n\t\t\tname : \"Beast of Burden\",\r\n\t\t\tdescription : \"The oxen is considered to be a Huge animal for the purpose of determining its carrying capacity.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"deep rothe\"] = {\r\n\t\tname : \"Deep Roth\\xE9\",\r\n\t\tnameAlt : [\"Roth\\xE9, Deep\"],\r\n\t\tsource : [[\"V\", 208], [\"MotM\", 71]],\r\n\t\tsize : 3, //Medium\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"cattle\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 10,\r\n\t\thp : 13,\r\n\t\thd : [2, 8], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tsenses : \"Darkvision 60 ft\",\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Gore\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Charge\",\r\n\t\t\tdescription : \"If the roth\\xE9 moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t\t}, {\r\n\t\t\tname : \"Dancing Lights\",\r\n\t\t\tdescription : \"The roth\\xE9 casts dancing lights, requiring no spell components and using Wisdom as the spellcasting ability.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"stench kow\"] = {\r\n\t\tname : \"Stench Kow\",\r\n\t\tsource : [[\"V\", 208], [\"MotM\", 72]],\r\n\t\tsize : 2, //Large\r\n\t\ttype : \"Fiend\", // Change in MotM from Beast\r\n\t\tsubtype : \"cattle\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 10,\r\n\t\thp : 15,\r\n\t\thd : [2, 10], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [18, 10, 12, 2, 10, 4], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tdamage_resistances : \"cold, fire, and poison damage\",\r\n\t\tsenses : \"Darkvision 60 ft\",\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Gore\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 20 ft straight in the same round, deals extra 2d6 damage (Charge)\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Charge\",\r\n\t\t\tdescription : \"If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 7 (2d6) piercing damage.\"\r\n\t\t}, {\r\n\t\t\tname : \"Stench\",\r\n\t\t\tdescription : \"Any creature other than a stench kow starting its turn within 5 ft of a stench kow must make a DC 12 Constitution saving throw or be poisoned until the start of the creature's next turn. On a successful saving throw, the creature is immune to the stench of all stench kows for 1 hour.\"\r\n\t\t}],\r\n\t\twildshapeString : [\r\n\t\t\ttypePF ? \"##Senses##. Darkvision 60 ft.\\n##Resistances##. cold, fire, poison.\" : \"Darkvision 60 ft. ##Resistances##. cold, fire, poison.\",\r\n\t\t\t\"##Charge##. If the stench kow moves at least 20 ft straight toward a target and then hits it with a gore attack on the same turn, it deals extra 2d6 piercing damage.\",\r\n\t\t\t\"##Stench##. Any creature starting its turn within 5 ft of a stench kow must make a DC 12 Con save or be poisoned until the start of the its next turn. On a success, it is immune to the stench of all stench kows for 1 hour.\",\r\n\t\t].join(\"\\n\")\r\n\t};\r\n\tCreatureList[\"dolphin\"] = {\r\n\t\tname : \"Dolphin\",\r\n\t\tsource : [[\"V\", 208], [\"MotM\", 97]],\r\n\t\tsize : 3, //Medium\r\n\t\ttype : \"Beast\",\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 12,\r\n\t\thp : 11,\r\n\t\thd : [2, 8], //[#, die]\r\n\t\tspeed : \"swim 60 ft\",\r\n\t\tscores : [14, 13, 13, 6, 12, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 3\r\n\t\t},\r\n\t\tsenses : \"Blindsight 60 ft\",\r\n\t\tpassivePerception : 13,\r\n\t\tchallengeRating : \"1/8\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Slam\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 6, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"If used after moving 30 ft straight in the same round, deals extra 1d6 damage (Charge)\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Charge\",\r\n\t\t\tdescription : \"If the dolphin moves at least 30 ft straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 3 (1d6) bludgeoning damage.\"\r\n\t\t}, {\r\n\t\t\tname : \"Hold Breath\",\r\n\t\t\tdescription : \"The dolphin can hold its breath for 20 minutes.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"cranium rat\"] = {\r\n\t\tname : \"Cranium Rat\",\r\n\t\tnameAlt : [\"Rat, Cranium\"],\r\n\t\tsource : [[\"V\", 133], [\"MotM\", 83]],\r\n\t\tsize : 5, //Tiny\r\n\t\ttype : \"Aberration\", // Change in MotM from Beast\r\n\t\tcompanion : \"familiar_not_al\",\r\n\t\talignment : \"Lawful Evil\",\r\n\t\tac : 12,\r\n\t\thp : 2,\r\n\t\thd : [1, 4], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [2, 14, 10, 4, 11, 8], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tsenses : \"Darkvision 30 ft\",\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"0\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\",\r\n\t\t\tabilitytodamage : false\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Illumination\",\r\n\t\t\tdescription : \"As a bonus action, the cranium rat can shed dim light from its brain in a 5-foot radius or extinguish the light.\"\r\n\t\t}, {\r\n\t\t\tname : \"Telepathic Shroud\",\r\n\t\t\tdescription : \"The cranium rat is immune to any effect that would sense its emotions or read its thoughts, as well as to all divination spells.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"brontosaurus\"] = {\r\n\t\tname : \"Brontosaurus\",\r\n\t\tsource : [[\"V\", 139], [\"ToA\", 215], [\"MotM\", 95]],\r\n\t\tsize : 0, //Gargantuan\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 15,\r\n\t\thp : 121,\r\n\t\thd : [9, 20], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [21, 9, 17, 2, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tsaves : [\"\", \"\", 6, \"\", \"\", \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"5\",\r\n\t\tproficiencyBonus : 3,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Stomp\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [5, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (20 ft)\",\r\n\t\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\"\r\n\t\t}, {\r\n\t\t\tname : \"Tail\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [6, 8, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (20 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"deinonychus\"] = {\r\n\t\tname : \"Deinonychus\",\r\n\t\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\t\tsize : 3, //Medium\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 26,\r\n\t\thd : [4, 8], //[#, die]\r\n\t\tspeed : \"40 ft\",\r\n\t\tscores : [15, 15, 14, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 3\r\n\t\t},\r\n\t\tpassivePerception : 13,\r\n\t\tchallengeRating : \"1\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 3,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Claw\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 8, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Two claw and one bite as one Attack action; If used after moving 20 ft straight in the same round, see Pounce trait\"\r\n\t\t}, {\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 8, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"Two claw and one bite as one Attack action (also, see Pounce trait)\"\r\n\t\t}],\r\n\t\tactions : [{\r\n\t\t\tname : \"Multiattack\",\r\n\t\t\tdescription : \"As an action on its turn, the deinonychus can make two Claw and one Bite attack.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Pounce\",\r\n\t\t\tdescription : \"If the deinonychus moves at least 20 ft straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the deinonychus can make one bite attack against it as a bonus action.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"dimetrodon\"] = {\r\n\t\tname : \"Dimetrodon\",\r\n\t\tsource : [[\"V\", 139], [\"ToA\", 217], [\"MotM\", 95]],\r\n\t\tsize : 3, //Medium\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 12,\r\n\t\thp : 19,\r\n\t\thd : [3, 8], //[#, die]\r\n\t\tspeed : \"30 ft, swim 20 ft\",\r\n\t\tscores : [14, 10, 15, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 2\r\n\t\t},\r\n\t\tpassivePerception : 12,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [2, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"hadrosaurus\"] = {\r\n\t\tname : \"Hadrosaurus\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 224], [\"MotM\", 96]],\r\n\t\tsize : 2, //Large\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 11,\r\n\t\thp : 19,\r\n\t\thd : [3, 10], //[#, die]\r\n\t\tspeed : \"40 ft\",\r\n\t\tscores : [15, 10, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 2\r\n\t\t},\r\n\t\tpassivePerception : 12,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Tail\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"quetzalcoatlus\"] = {\r\n\t\tname : \"Quetzalcoatlus\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 230], [\"MotM\", 96]],\r\n\t\tsize : 1, //Huge\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 30,\r\n\t\thd : [4, 12], //[#, die]\r\n\t\tspeed : \"10 ft, fly 80 ft\",\r\n\t\tscores : [15, 13, 13, 2, 10, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 2\r\n\t\t},\r\n\t\tpassivePerception : 12,\r\n\t\tchallengeRating : \"2\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [3, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\tdescription : \"If used after diving 30 ft towards a target, the attack deals 3d6 extra damage (Dive Attack)\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Dive Attack\",\r\n\t\t\tdescription : \"If the quetzalcoatlus is flying and dives at least 30 ft toward a creature and then hits it with a bite attack, the attack deals an extra 10 (3d6) damage to the target.\"\r\n\t\t}, {\r\n\t\t\tname : \"Flyby\",\r\n\t\t\tdescription : \"The quetzalcoatlus doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"stegosaurus\"] = {\r\n\t\tname : \"Stegosaurus\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 231], [\"MotM\", 96]],\r\n\t\tsize : 1, //Huge\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 76,\r\n\t\thd : [8, 12], //[#, die]\r\n\t\tspeed : \"40 ft\",\r\n\t\tscores : [20, 9, 17, 2, 11, 5], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tpassivePerception : 10,\r\n\t\tchallengeRating : \"4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 1,\r\n\t\t\tdamage : [6, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"velociraptor\"] = {\r\n\t\tname : \"Velociraptor\",\r\n\t\tsource : [[\"V\", 140], [\"ToA\", 235], [\"MotM\", 96]],\r\n\t\tsize : 5, //Tiny\r\n\t\ttype : \"Beast\",\r\n\t\tsubtype : \"dinosaur\", // MotM addition\r\n\t\talignment : \"Unaligned\",\r\n\t\tac : 13,\r\n\t\thp : 10,\r\n\t\thd : [3, 4], //[#, die]\r\n\t\tspeed : \"30 ft\",\r\n\t\tscores : [6, 14, 13, 4, 12, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 3\r\n\t\t},\r\n\t\tpassivePerception : 13,\r\n\t\tchallengeRating : \"1/4\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 2,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, 6, \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t\t}, {\r\n\t\t\tname : \"Claw\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, 4, \"slashing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"One bite and one claw attack as an Attack action\"\r\n\t\t}],\r\n\t\tactions : [{\r\n\t\t\tname : \"Multiattack\",\r\n\t\t\tdescription : \"As an action on its turn, the velociraptor can make one Bite and one Claw attack.\"\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Pack Tactics\",\r\n\t\t\tdescription : \"The velociraptor has advantage on an attack roll against a creature if at least one of the velociraptor's allies is within 5 ft of the creature and the ally isn't incapacitated.\"\r\n\t\t}]\r\n\t};\r\n\tCreatureList[\"gazer\"] = {\r\n\t\tname : \"Gazer\",\r\n\t\tsource : [[\"V\", 126], [\"MotM\", 134]],\r\n\t\tsize : 5, //Tiny\r\n\t\ttype : \"Aberration\",\r\n\t\tsubtype : \"Beholder\", // MotM addition\r\n\t\tcompanion : \"familiar_not_al\",\r\n\t\talignment : \"Neutral Evil\",\r\n\t\tac : 13,\r\n\t\thp : 13,\r\n\t\thd : [3, 4], //[#, die]\r\n\t\tspeed : \"0 ft, fly 30 ft\",\r\n\t\tscores : [3, 17, 14, 3, 10, 7], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tsaves : [\"\", \"\", \"\", \"\", 2, \"\"], //[Str, Dex, Con, Int, Wis, Cha]\r\n\t\tskills : {\r\n\t\t\t\"perception\" : 4,\r\n\t\t\t\"stealth\" : 5\r\n\t\t},\r\n\t\tsenses : \"Darkvision 60 ft\",\r\n\t\tpassivePerception : 14,\r\n\t\tchallengeRating : \"1/2\",\r\n\t\tproficiencyBonus : 2,\r\n\t\tattacksAction : 1,\r\n\t\tattacks : [{\r\n\t\t\tname : \"Bite\",\r\n\t\t\tability : 2,\r\n\t\t\tdamage : [1, \"\", \"piercing\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\tdescription : \"\"\r\n\t\t}, {\r\n\t\t\tname : \"Eye Rays\",\r\n\t\t\tability : 3,\r\n\t\t\tdamage : [\"Special\", \"\", \"\"], //[#, die, type] \"\" for die is allowed\r\n\t\t\trange : \"60 ft\",\r\n\t\t\tdescription : \"Shoot two randomly determined different rays as one action; Each ray has its own target; See traits\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false\r\n\t\t}],\r\n\t\ttraits : [{\r\n\t\t\tname : \"Aggressive\",\r\n\t\t\tdescription : \"As a bonus action, the gazer moves its speed toward an enemy that it can see.\"\r\n\t\t}, {\r\n\t\t\tname : \"Mimicry\",\r\n\t\t\tdescription : \"The gazer can mimic simple speech it has heard, in any language. Any who hear this can tell it is an imitation with a successful DC 10 Wis (Insight) check.\"\r\n\t\t}],\r\n\t\tactions : [{\r\n\t\t\tname : \"Eye Rays\",\r\n\t\t\tdescription : \"1. Dazing Ray: Wisdom saving throw or charmed until the start of the gazer's next turn. While charmed, half speed and disadv. on attacks.\\n2. Fear Ray: Wisdom saving throw or frightened until the start of the gazer's next turn.\\n3. Frost Ray: Target must make a Dexterity saving throw or 10 (3d6) cold damage.\\n4. Telekinetic Ray: Medium or smaller creature, Strength saving throw or be moved up to 30 ft away from the gazer. If it is an unattended Tiny object, the gazer moves it up to 30 ft in any direction. It can exert fine control on objects this way.\" // MotM: no longer 10 lb limit, just Tiny object\r\n\t\t}],\r\n\t\tvariant : [{\r\n\t\t\tname : \"Variant: Familiar\",\r\n\t\t\tdescription : \"The gazer can serve another creature as a familiar, forming a telepathic bond with its willing master, provided that the master is at least a 3rd-level spellcaster. While the two are bonded, the master can sense what the gazer senses as long as they are within 1 mile of each other. If its master causes it physical harm, the gazer will end its service as a familiar, breaking the telepathic bond.\"\r\n\t\t}]\r\n\t};\r\n} // dupl_end\r\n"
  },
  {
    "path": "WotC material/pub_20220315_CotN.js",
    "content": "var iFileName = \"pub_20220315_CotN.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds all the magic items from Critical Role: Call of the Netherdeep to MPMB's Character Record Sheet\r\n\r\nSourceList.CotN = {\r\n\tname : \"Critical Role: Call of the Netherdeep [magic items]\",\r\n\tabbreviation : \"CotN\",\r\n\tabbreviationSpellsheet : \"MO\",\r\n\tgroup : \"Adventure Books\",\r\n\tcampaignSetting : \"Critical Role\",\r\n\turl : \"https://dnd.wizards.com/products/call-netherdeep\",\r\n\tdate : \"2022/03/15\"\r\n};\r\n\r\nCreatureList[\"young horizonback tortoise\"] = { // Contains contributions by Nod_Hero\r\n\tname : \"Young Horizonback Tortoise\",\r\n\tnameAlt : [\"Tortoise, Young Horizonback\"],\r\n\tsource : [[\"CotN\", 26]],\r\n\tsize : 1,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 15,\r\n\thp : 68,\r\n\thd : [8, 12],\r\n\tspeed : \"30 ft\",\r\n\tscores : [19, 11, 15, 2, 12, 5],\r\n\tpassivePerception : 11,\r\n\tlanguages : \"understands Goblin but can't speak\",\r\n\tchallengeRating : \"3\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [4, 6, \"piercing\"],\r\n\t\trange : \"Melee (10 ft)\",\r\n\t\tdescription : \"Target must succeed on a DC 14 Strength saving throw or be knocked prone\",\r\n\t\tmodifiers : [1, \"\"]\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Amphibious\",\r\n\t\tdescription : \"The tortoise can breathe air and water.\",\r\n\t}]\r\n};\r\n\r\nMagicItemsList[\"breathing bubble\"] = {\r\n\tname : \"Breathing Bubble\",\r\n\tsource : [[\"W\", 266], [\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"This translucent, bubble-like sphere has a slightly tacky outer surface. I gain its benefits only while wearing it over my head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tdescriptionFull : \"This translucent, bubble-like sphere has a slightly tacky outer surface, and you gain the item's benefits only while wearing it over your head like a helmet. The bubble contains 1 hour of breathable air. The bubble regains all its expended air daily at dawn.\",\r\n\tusages : 1,\r\n\trecovery : \"dawn\"\r\n};\r\nMagicItemsList[\"earring of message\"] = {\r\n\tname : \"Earring of Message\",\r\n\tsource : [[\"CotN\", 212]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"The blue crystal of this earring is wrapped with delicate copper wire. The earring has 5 charges. While wearing it, I can use an action to expend 1 charge and cast the message spell. The earring regains 1d4 + 1 expended charges daily at dawn.\",\r\n\tdescriptionFull : \"The blue crystal of this earring is wrapped with delicate copper wire. The earring has 5 charges. While wearing it, you can use an action to expend 1 charge and cast the message spell. The earring regains 1d4 + 1 expended charges daily at dawn.\",\r\n\tusages : 5,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d4+1\",\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"message\"],\r\n\t\tselection : [\"message\"],\r\n\t\tfirstCol : '1'\r\n\t}]\r\n};\r\nMagicItemsList[\"medal of muscle\"] = {\r\n\tname : \"Medal of Muscle\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as a an action, I can squeeze this medal tightly in the palm of my hand. Doing so gives me advantage on Strength checks and Strength saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"You can squeeze this medal tightly in the palm of your hand as an action. Doing so gives you advantage on Strength checks and Strength saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the conch\"] = {\r\n\tname : \"Medal of the Conch\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can rub this medal to gain a swimming speed equal to my walking speed for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to rub this medal, you gain a swimming speed equal to your walking speed for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the horizonback\"] = {\r\n\tname : \"Medal of the Horizonback\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as a reaction when I would be hit by an attack, I can increase my AC by 5 until the start of my next turn, including against the triggering attack. I must be wearing the medal and able to see the creature that made the triggering attack. Once this property has been used, the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you would be hit by an attack, you can use your reaction to increase your AC by 5 until the start of your next turn, including against the triggering attack. You must be wearing the medal and able to see the creature that made the triggering attack to use this property. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the maze\"] = {\r\n\tname : \"Medal of the Maze\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can trace the maze inscribed on this medal to gain advantage on Wisdom checks and to know the quickest route to the end of any nonmagical path or maze for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to trace the maze inscribed on this medal, you gain advantage on Wisdom checks and know the quickest route to the end of any nonmagical path or maze for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of the meat pie\"] = {\r\n\tname : \"Medal of the Meat Pie\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can press this medal to my mouth to gain 2d4 + 2 temporary hit points. Once this property has been used, it can't be used again, and the medal becomes nonmagical. While magical, this medal is slightly warm to the touch (as if it's fresh from the oven) and smells faintly of baked pie crust.\",\r\n\tdescriptionFull : \"You gain 2d4 + 2 temporary hit points when you use an action to press this medal to your mouth. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"+\r\n\t\"\\n   While magical, this medal is slightly warm to the touch (as if it's fresh from the oven) and smells faintly of baked pie crust.\"\r\n};\r\nMagicItemsList[\"medal of the wetlands\"] = {\r\n\tname : \"Medal of the Wetlands\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can trace the edge of this medal, making it so that difficult terrain doesn't cost me extra movement for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"When you use an action to trace the edge of this medal, difficult terrain doesn't cost you extra movement for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"medal of wit\"] = {\r\n\tname : \"Medal of Wit\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can press this medal to my temple to give me advantage on Intelligence checks and Intelligence saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\",\r\n\tdescriptionFull : \"You can press this medal to your temple as an action. Doing so gives you advantage on Intelligence checks and Intelligence saving throws for 1 hour. Once this property has been used, it can't be used again, and the medal becomes nonmagical.\"\r\n};\r\nMagicItemsList[\"ring of red fury\"] = {\r\n\tname : \"Ring of Red Fury\",\r\n\tsource : [[\"CotN\", 214]],\r\n\ttype : \"ring\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This ring allows me to breathe water and gives me a swimming speed equal to my walking speed. As a bonus action once per long rest, I can use it to, for 1 minute, have adv. on Str checks and saves, add my Prof Bonus to damage rolls of my attacks, ignore difficult terrain, be immune to paralyzed and restrained.\",\r\n\tdescriptionLong : \"While wearing this ring with a stripe of ruidium running through it, I am able to breathe water and I have a swimming speed equal to my walking speed. As a bonus action once per long rest, I can use it to, for 1 minute, have adv. on my Strength checks and saves, add my proficiency bonus to the damage rolls of my attacks, have difficult terrain not cost me extra movement, and be immune to being paralyzed and restrained. When I do this bonus action, I have to make a DC 20 Charisma save or gain 1 level of exhaustion and become corrupted. If the Apotheon is killed or redeemed, this ring turns into a Ring of Free Action.\",\r\n\tdescriptionFull : [\r\n\t\t\"This ring has a stripe of ruidium running through it. While wearing the ring, you gain the following benefits:\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Rage\") + \". As a bonus action, you can use the ring to gain the following benefits, which last for 1 minute or until you are incapacitated:\",\r\n\t\t\"\\u2022 You have advantage on Strength checks and Strength saving throws.\",\r\n\t\t\"\\u2022 When you hit with an attack, you can add your proficiency bonus to the damage roll.\",\r\n\t\t\"\\u2022 Difficult terrain doesn't cost you extra movement, and you are immune to the paralyzed and restrained conditions.\",\r\n\t\t\"You can't use this property of the ring again until you finish a long rest.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you use the Ruidium Rage property of the ring, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and the ring of red fury becomes a Ring of Free Action.\"\r\n\t].join(\"\\n   \"),\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nMagicItemsList[\"ruidium armor\"] = {\r\n\tname : \"Ruidium Armor\",\r\n\tnameTest : /ruidium.*armou?r/i,\r\n\tsource : [[\"CotN\", 215]],\r\n\ttype : \"armor (medium or heavy)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic armor containing ruidium gives me resistance to psychic damage, a swimming speed equal to my walking speed, and allows me to breathe water. If I roll a 1 on a save while wearing it, I must make a DC 15 Charisma save or gain 1 level of exhaustion and become corrupted by ruidium.\",\r\n\tdescriptionFull : [\r\n\t\t\"This magic armor has a dull, rusty color or has veins of ruidium running through it. While you wear this armor, you gain the following benefits:\",\r\n\t\t\"\\u2022 You have resistance to psychic damage.\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you roll a 1 on a saving throw while wearing this armor, you must make a DC 15 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and ruidium armor becomes +1 armor.\"\r\n\t].join(\"\\n   \"),\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"armor\",\r\n\t\tprefixOrSuffix : [\"between\", \"Ruidium\", \"Armor\"],\r\n\t\titemName1stPage : [\"suffix\", \"Ruidium\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn !(/medium|heavy/i).test(inObj.type) || (/hide/i).test(inObj.name);\r\n\t\t},\r\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t},\r\n\tdmgres : [\"Psychic\"],\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n};\r\nMagicItemsList[\"ruidium shield\"] = {\r\n\tname : \"Ruidium Shield\",\r\n\tsource : [[\"CotN\", 215]],\r\n\ttype : \"shield\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic shield gives me resistance to psychic damage, a swimming speed equal to my walking speed, and allows me to breathe water. As a reaction when I take psychic damage, I can have another creature I can see in 30 ft take the damage instead, but I must make a DC 20 Cha save or gain 1 level of exhaustion.\",\r\n\tdescriptionFull : [\r\n\t\t\"Tendrils of ruidium extend across the metal surface of this shield. While this shield is on your person, you gain the following benefits:\",\r\n\t\t\"\\u2022 You have resistance to psychic damage.\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Psychic Reflection\") + \". When you take psychic damage while holding the shield, you can use your reaction to choose another creature you can see within 30 feet of you. That creature takes the psychic damage you would have taken.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you use the shield's Psychic Reflection property, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and a ruidium shield becomes a +2 shield.\"\r\n\t].join(\"\\n   \"),\r\n\tweight : 6,\r\n\tshieldAdd : \"Ruidium Shield\",\r\n\tdmgres : [\"Psychic\"],\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\taction : [[\"reaction\", \" (if taking psychic damage)\"]]\r\n}\r\nMagicItemsList[\"ruidium weapon\"] = {\r\n\tname : \"Ruidium Weapon\",\r\n\tnameTest : \"Ruidium\",\r\n\tsource : [[\"CotN\", 216]],\r\n\ttype : \"weapon (any)\",\r\n\trarity : \"very rare\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"This magic weapon deals an extra 2d6 psychic damage to creatures. It also allows me to breath water and gives me a swimming speed equal to my walking speed. If I roll a 1 on an attack roll with it, I must make a DC 20 Cha save or gain 1 level of exhaustion and become corrupted by ruidium.\",\r\n\tdescriptionFull : [\r\n\t\t\"This magic weapon has a dull, rusty color or has veins of ruidium running through it. While this weapon is on your person, you gain the following benefits:\",\r\n\t\t\"\\u2022 You can breathe water.\",\r\n\t\t\"\\u2022 You gain a swimming speed equal to your walking speed.\",\r\n\t\ttoUni(\"Ruidium Strike\") + \". A creature you hit with this weapon takes an extra 2d6 psychic damage.\",\r\n\t\ttoUni(\"Ruidium Corruption\") + \". When you roll a 1 on an attack roll made with this weapon, you must make a DC 20 Charisma saving throw. On a failed save, you gain 1 level of exhaustion. If you are not already suffering from ruidium corruption, you become corrupted when you fail this save.\",\r\n\t\ttoUni(\"If Ruidium Is Destroyed\") + \". If the Apotheon is killed or redeemed, all the ruidium in Exandria is destroyed instantly, and a ruidium weapon becomes a +2 weapon.\"\r\n\t].join(\"\\n   \"),\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif ( /ruidium/i.test(v.WeaponTextName) ) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d6 psychic damage vs. creatures';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Ruidium\" in the name of a weapon, it will be treated as the magic item Ruidium Weapon. Whenever it hits a creature, it deals an extra 2d6 psychic damage.'\r\n\t\t]\r\n\t},\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n};\r\nMagicItemsList[\"teleportation tablet\"] = {\r\n\tname : \"Teleportation Tablet\",\r\n\tsource : [[\"CotN\", 216]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tnotLegalAL : true,\r\n\tdescription : \"Once as an action, I can break this clay tablet in half to create a 5-ft radius Teleportation Circle to its predetermined destination within 30 ft, lasting until the end of my next turn. I can learn its destination by studying it for 10 minutes and making a DC 21 Arcana check. Once broken, the tablet turns to dust.\",\r\n\tdescriptionFull : \"This clay tablet is eight inches long, four inches wide, and half an inch thick. Inscribed on it is the sigil sequence for a permanent teleportation circle. A creature that studies the sequence for 10 minutes can make a DC 21 Intelligence (Arcana) check, learning the circle's destination on a success.\"+\r\n\t\"\\n   You can use an action to break the tablet in half, turning it to dust. If the tablet is broken while it is on the same plane of existence as the teleportation circle whose sigil sequence was engraved on it, a 10-foot-diameter teleportation circle of glowing blue light appears on the ground in an unoccupied space you choose within 30 feet of you. This teleportation circle has the characteristics of one created using the teleportation circle spell, except that it connects to the teleportation circle whose sigil sequence appears on the tablet.\"+\r\n\t\"\\n   The teleportation circle created by the tablet disappears at the end of your next turn.\"\r\n};\r\n\r\n// Vestige of Divergence\r\nvar EGtW_Vestiges_Replace = function (sDescr) {\r\n\treturn desc(sDescr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\r\n\t\t.replace(/you are/ig, \"I am\").replace(/\\byou\\b/ig, \"I\")\r\n\t\t.replace(/(by|giving|grants|of|to|for) I\\b/ig, \"$1 me\")\r\n\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\r\n\t\t.replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; });\r\n}\r\nvar EGtW_JewelOfThreePrayersFullDescription = [\r\n\t\"The Jewel of Three Prayers is a Vestige of Divergence. In ancient times, Alyxian the Apotheon bore this amulet as a symbol of his covenant with three Prime Deities: Sehanine the Moon Weaver, Avandra the Change Bringer, and Corellon the Arch Heart.[[ When the jewel is found, only Sehanine's power thrums within its dormant heart. The power of the other two deities waits to be reawakened by a hero \\u2014 or heroes \\u2014 who can follow in Alyxian's footsteps.]]\",\r\n\t\">>Dormant<<. In this state, the Jewel of Three Prayers is a glittering golden disk attached to a fine golden chain. The chain magically resizes to function as a necklace for the creature that wears it.\",\r\n\t\"In its Dormant State, the jewel has the following properties:\",\r\n\t\"\\u2022 You gain a +1 bonus to AC while wearing the jewel.\",\r\n\t\"\\u2022 While wearing or holding the jewel, you can use an action to cause it to shed bright light in a 15-foot radius and dim light for an additional 15 feet. The light lasts until you extinguish it (no action required).\",\r\n\t\"\\u2022 The jewel has 3 charges and regains all its expended charges daily at dawn. While holding the jewel, you can expend 1 charge from it to cast the invisibility spell.\",\r\n\t\">>Awakened<<. In this state, the jewel has received the blessing of Avandra the Change Bringer. Three delicate spires unfurl from the jewel's center, like the buds of flowers opening in the spring. Three lapis lazuli stones rest like dewdrops on these spires.\",\r\n\t\"The following benefits of the jewel improve:\",\r\n\t\"\\u2022 The bonus that the jewel confers to your AC increases to +2.\",\r\n\t\"\\u2022 Its number of charges increases to 5.\",\r\n\t\"The jewel gains the following additional properties, which you can use while wearing or holding it:\",\r\n\t\"\\u2022 You can expend 1 of the jewel's charges (no action required) to end one of the following conditions on yourself: grappled, paralyzed, or restrained.\",\r\n\t\"\\u2022 When another creature you can see within 60 feet of you fails a saving throw, you can expend 1 of the jewel's charges as a reaction to enable that creature to reroll the saving throw, potentially turning a failure into a success. The creature must use the new roll.\",\r\n\t\">>Exalted<<. In this state, the jewel has received the blessing of Corellon the Arch Heart. A gleaming emerald surrounded by a halo of gold appears on the jewel.\",\r\n\t\"The following benefits of the jewel improve:\",\r\n\t\"\\u2022 The bonus that the jewel confers to your AC increases to +3.\",\r\n\t\"\\u2022 Its number of charges increases to 7.\",\r\n\t\"The jewel gains the following additional properties, which you can use while wearing or holding it:\",\r\n\t\"\\u2022 You gain the ability to breathe water, and you gain a swimming speed equal to your walking speed.\",\r\n\t\"\\u2022 Each of your allies within 30 feet of you gains the ability to breathe water and gains a swimming speed equal to its walking speed.\",\r\n\t\"\\u2022 As a bonus action, you can expend 1 of the jewel's charges to target yourself or one willing creature you can see within 15 feet of yourself. The target teleports to an unoccupied space of your choice within 15 feet of yourself, along with any equipment the target is wearing or carrying. The target appears in a flash of golden radiance, and each creature of your choice within 5 feet of the target's new location must make a DC 18 Constitution saving throw. On a failed save, the creature takes 4d10 radiant damage and is blinded until the start of your next turn. On a successful save, the creature takes half as much damage and isn't blinded.\"\r\n];\r\nMagicItemsList[\"jewel of three prayers\"] = {\r\n\tname : \"Jewel of Three Prayers\",\r\n\tsource : [[\"CotN\", 213]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tnotLegalAL : true,\r\n\tattunement : true,\r\n\tdescription : \"The golden chain of this intricate jewel magically resizes to function as a necklace for the creature that wears it. In ancient times, Alyxian the Apotheon bore this amulet as a symbol of his covenant with three Prime Deities: Sehanine the Moon Weaver, Avandra the Change Bringer, and Corellon the Arch Heart.\",\r\n\tdescriptionFull : EGtW_JewelOfThreePrayersFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }).replace(/\\[\\[|\\]\\]/g, ''),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : EGtW_Vestiges_Replace(EGtW_JewelOfThreePrayersFullDescription).replace(/\\[\\[.*?\\]\\]/, '')\r\n\t}],\r\n\tchoices : [\"Dormant\", \"Awakened\", \"Exalted\"],\r\n\tchoicesNotInMenu : true,\r\n\tspellcastingAbility : \"class\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"invisibility\"],\r\n\t\tselection : [\"invisibility\"],\r\n\t\tfirstCol : \"1\"\r\n\t}],\r\n\taction : [[\"action\", \" (shed light)\"]],\r\n\t\"dormant\" : {\r\n\t\tname : \"Jewel of Three Prayers [dormant]\",\r\n\t\tdescription : \"This piece of jewelry grants me +1 AC and has 3 charges, regaining all at dawn. As an action, I can use it to shed bright light in a 15-ft radius and dim for another 15 ft (extinguishing requires no action). I can expend 1 charge to cast Invisibility.\",\r\n\t\tusages : 3,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}]\r\n\t},\r\n\t\"awakened\" : {\r\n\t\tname : \"Jewel of Three Prayers [awakened]\",\r\n\t\tdescription : \"This grants me +2 AC. It has 5 charges, regaining all at dawn. As an action, I can have it shed 15-ft radius bright light and dim for another 15 ft. I can use 1 charge to cast Invisibility or stop being grappled, paralyzed, or restrained. As a reaction when I see a creature in 60 ft fail a save, I can use 1 charge to have it reroll.\",\r\n\t\tusages : 5,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 2, magic : true, text : \"I gain a +2 bonus to AC while attuned.\"}],\r\n\t\taction : [[\"reaction\", \"Jewel of Three Prayers (reroll save)\"]]\r\n\t},\r\n\t\"exalted\" : {\r\n\t\tname : \"Jewel of Three Prayers [exalted]\",\r\n\t\tdescription : \"This grants me +3 AC. It has 7 charges, regaining all at dawn. As an action, I can have it shed 15-ft radius bright light and dim for another 15 ft. I can use 1 charge to cast Invisibility or stop being grappled, paralyzed, or restrained. As a reaction when I see failed save in 60 ft, I can use 1 charge for a reroll. See notes.\",\r\n\t\tusages : 7,\r\n\t\trecovery : \"dawn\",\r\n\t\textraAC : [{name : \"Jewel of Three Prayers\", mod : 3, magic : true, text : \"I gain a +3 bonus to AC while attuned.\"}],\r\n\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } },\r\n\t\taction : [[\"reaction\", \"Jewel of Three Prayers (reroll save)\"], [\"bonus action\", \"Jewel of Three Prayers (teleport)\"]]\r\n\t}\r\n}\r\n"
  },
  {
    "path": "WotC material/pub_20220816_Spelljammer.js",
    "content": "var iFileName = \"pub_20220816_Spelljammer.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n/*\r\n\tThis file adds the Character Options content from the \"Spelljammer: Adventures in Space\" set\r\n\t(the \"Astral Adventurer's Guide\" book and the \"Boo's Astral Menagerie\" book)\r\n\tto MPMB's Character Record Sheet\r\n\r\n\tIncludes many contributions by Nod_Hero\r\n\r\n\t- ERRATA -\r\n\tNote that this document includes the second \"Spelljammer: Adventures in Space\" Errata\r\n\thttps://media.dndbeyond.com/compendium-images/errata/SAiS/SJA-Errata.pdf\r\n*/\r\n\r\n\r\n// Unless otherwise noted, page numbers refer to the \"Astral Adventurer's Guide\" book\r\nSourceList[\"S:AiS\"] = {\r\n\tname : \"Spelljammer: Adventures in Space\",\r\n\tabbreviation : \"S:AiS\",\r\n\tabbreviationSpellsheet : \"SJ\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Spelljammer\",\r\n\turl : \"https://dnd.wizards.com/products/spelljammer\",\r\n\tdate : \"2022/08/16\"\r\n};\r\n\r\n// Backgrounds from Astral Adventurer's Guide\r\nBackgroundList[\"astral drifter\"] = {\r\n\tregExpSearch : /^(?=.*astral)(?=.*drifter).*$/i,\r\n\tname : \"Astral Drifter\",\r\n\tsource : [[\"S:AiS\", 7]],\r\n\tskills : [\"Insight\", \"Religion\"],\r\n\tlanguageProfs : [[\"Any, Celestial or Gith recommended\", 2]],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Diary\", \"\", 5],\r\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t[\"Ink pen (quill)\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Divine Contact\",\r\n\textra : [\"Select a Divine Contact\",\r\n\t\t\"Corellon (art/magic; CG)\",\r\n\t\t\"Tymora (good fortune; CG)\",\r\n\t\t\"Fharlanghn (horizons/travel; NG)\",\r\n\t\t\"Istus (fate/destiny; N)\",\r\n\t\t\"Nuada (war/warriors; N)\",\r\n\t\t\"Zivilyn (wisdom; N)\",\r\n\t\t\"Arawn (life/death; NE)\",\r\n\t\t\"Hecate (magic/moons; CE)\",\r\n\t\t\"Celestian (stars/wanderers; N)\",\r\n\t\t\"Ptah (knowledge/secrets; LN)\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"divine contact\"] = {\r\n\tdescription : \"I am 20d6 years older than I look, thanks to time spent in the Astral Sea without aging. While in the Astral Sea, I crossed paths with a wandering deity. The encounter was brief and nonviolent, yet it made a lasting impression on me. This deity saw fit to share one secret or obscure bit of cosmic lore with me. I gain the Magic Initiate [Cleric] feat.\",\r\n\tsource : [[\"S:AiS\", 7]],\r\n\tfeatsAdd: [{ key: \"magic initiate\", choice: \"cleric\" }],\r\n};\r\n\r\nBackgroundList[\"wildspacer\"] = {\r\n\tregExpSearch : /wildspacer/i,\r\n\tname : \"Wildspacer\",\r\n\tsource : [[\"S:AiS\", 8]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (space)\"],\r\n\tgold : 10,\r\n\tequipleft : [\r\n\t\t[\"Hempen rope, feet of\", 50, 0.2],\r\n\t\t[\"Grappling hook\", \"\", 4]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Belaying pin (club)\", \"\", 2],\r\n\t\t[\"Belt pouch (with coins)\", \"\", 1],\r\n\t],\r\n\tfeature : \"Wildspace Adaptation\",\r\n\textra : [\"Select a Close Encounter\",\r\n\t\t\"Beholder\",\r\n\t\t\"Cosmic horror\",\r\n\t\t\"Feyr\",\r\n\t\t\"Lunar dragon\",\r\n\t\t\"Mind flayer\",\r\n\t\t\"Neh-thalggu\",\r\n\t\t\"Neogi\",\r\n\t\t\"Space clown\",\r\n\t\t\"Vampirate\",\r\n\t\t\"Void scavver\",\r\n\t]\r\n};\r\nBackgroundFeatureList[\"wildspace adaptation\"] = {\r\n\tdescription : \"I was raised in the void of Wildspace, home to asteroid miners, moon farmers, and other hardy folk. Life in Wildspace has toughened me to face the terrors and other challenges of the airless night and I've learned how to adapt to zero gravity. Being weightless doesn't give me disadvantage on any of my melee attack rolls and I gain the Tough feat.\",\r\n\tsource : [[\"S:AiS\", 8]],\r\n\tfeatsAdd: [\"Tough\"],\r\n};\r\n\r\n// Races from Astral Adventurer's Guide\r\nRaceList[\"astral elf\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(astral|silver void)\\b).*$/i,\r\n\tname : \"Astral elf\",\r\n\tsortname : \"Elf, Astral\",\r\n\tsource : [[\"S:AiS\", 10]],\r\n\tplural : \"Astral elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old. Because nothing ages in the Astral Plane, astral elves from that plane can be thousands of years old.\",\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tskillstxt : \"Perception and choose any one skill which lasts until the end of my next Astral Trance\",\r\n\ttoolProfs : [[\"Astral Trance: tool or weapon\", 1]],\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Astral Fire\",\r\n\t\tspells : [\"dancing lights\", \"light\", \"sacred flame\"],\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"starlight step\" : {\r\n\t\t\tname : \"Starlight Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Astral Elf (my creature type is humanoid, elf)\"+\r\n\t\"\\n \\u2022 Starlight Step: A number of times per long rest equal to my proficiency bonus, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\"+\r\n\t\"\\n \\u2022 Astral Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours if I spend those hours in a trancelike meditation, during which I remain conscious. Whenever I finish this trance, I gain proficiency with one skill, and one weapon or tool of my choice. They last until I finish my next long rest.\"\r\n};\r\nRaceList[\"autognome\"] = {\r\n\tregExpSearch : /autognome/i,\r\n\tname : \"Autognome\",\r\n\tsource : [[\"S:AiS\", 11]],\r\n\tplural : \"Autognomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tage : \" can live for centuries, typically up to 500 years\",\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*casing).*$/i,\r\n\t\tname : \"Armored Casing\",\r\n\t\tsource : [[\"S:AiS\", 2]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Built for Success\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\tdmgres : [\"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"paralyzed\", \"poison\"],\r\n\t\timmune : [\"disease\"]\r\n\t},\r\n\ttoolProfs : [[\"Tool of my choice\", 2]],\r\n\ttrait : typePF ?\r\n\t\t\"Autognome (my creature type is Construct)\"+\r\n\t\t\"\\n \\u2022 Armored Casing: My base AC is 13 + my Dexterity modifier.\"+\r\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save, after I see the roll, but before the effect.\"+\r\n\t\t\"\\n \\u2022 Mechanical Nature: I don't need to eat, drink or breathe.\"+\r\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay in an inactive and motionless state during which I'm conscious.\"+\r\n\t\t\"\\n \\u2022 Healing Machine: Cure Wounds, Healing Word, and Spare the Dying work on me. If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\r\n\t\t:\r\n\t\t\"Autognome (my creature type is Construct; I don't need to eat, drink or breathe)\"+\r\n\t\t\"\\n \\u2022 Armored Casing: While I'm not wearing armor, my AC is 13 + my Dexterity modifier.\"+\r\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save. I can do this after seeing the d20 roll, but before knowing the roll's effects.\"+\r\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay inactive and motionless.\"+\r\n\t\t\"\\n \\u2022 Healing Machine: Cure Wounds, Healing Word, and Spare the Dying work on me. If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\r\n};\r\nRaceList[\"giff\"] = {\r\n\tregExpSearch : /giff|hippofolk/i,\r\n\tname : \"Giff\",\r\n\tsource : [[\"S:AiS\", 12]],\r\n\tplural : \"Giff\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tfeatures : {\r\n\t\t\"astral spark\" : {\r\n\t\t\tname : \"Astral Spark\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"+\" + n + \" force damage\"; })\r\n\t\t}\r\n\t},\r\n\tweaponProfs : [false, false, [\"Firearms\"]],\r\n\tcarryingCapacity : 2,\r\n\tsavetxt : { text : [\"Adv. on Str saves and checks\"] },\r\n\tadvantages : [[\"Strength\", true]],\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (/firearm/i.test(v.theWea.type) || /firearm/i.test(v.theWea.list)) {\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/([;,]? ?loading|loading[;,]? ?)/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"No disadv. at long range\";\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I ignore the loading quality of firearms and attacking at long range with a firearm doesn't impose disadvantage on my attack roll.\"\r\n\t\t]\r\n\t},\r\n\ttrait : \"Giff\"+\r\n\t\"\\n \\u2022 Astral Spark: My proficiency bonus times per long rest, when I hit a target with a simple or martial weapon, I can once per turn deal extra force damage equal to my prof\" + (typePF ? \"iciency\" : \".\") + \" bonus.\"+\r\n\t\"\\n \\u2022 Firearms Mastery: I am proficient with firearms, ignore their loading property, and they don't impose disadvantage at long range.\"+\r\n\t\"\\n \\u2022 Hippo Build: I have advantage on Strength saves and checks. In addition, I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"\r\n};\r\nRaceList[\"hadozee\"] = {\r\n\tregExpSearch : /hadozee/i,\r\n\tname : \"Hadozee\",\r\n\tsource : [[\"S:AiS\", 13]],\r\n\tplural : \"Hadozees\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\tscoresGeneric : true,\r\n\taction : [\r\n\t\t[\"bonus action\", \"Dexterous Feet (Use an Object)\"],\r\n\t\t[\"reaction\", \"Glide (if 10 ft above ground)\"]\r\n\t],\r\n\tfeatures : {\r\n\t\t\"hadozee dodge\" : {\r\n\t\t\tname : \"Hadozee Dodge\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : ProficiencyBonusList.map(function(n) { return \"1d6+\" + n + \" damage\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Hadozee\"+\r\n\t\"\\n \\u2022 Dexterous Feet: As a bonus action, I can manipulate an object, open or close a door or container, or pick up or set down a Tiny object.\"+\r\n\t\"\\n \\u2022 Glide: As a reaction when I fall at least 10 ft above the ground, I can extend my skin membranes to glide my walking speed horizontally, and take 0 damage from the fall.\"+\r\n\t\"\\n \\u2022 Hadozee Dodge: A number of times equal to my proficiency bonus per long rest, as a reaction when I take damage, I can reduce the damage by 1d6 + my proficiency bonus.\"\r\n};\r\nRaceList[\"plasmoid\"] = {\r\n\tregExpSearch : /plasmoid/i,\r\n\tname : \"Plasmoid\",\r\n\tsource : [[\"S:AiS\", 14]],\r\n\tplural : \"Plasmoids\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tscoresGeneric : true,\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Acid\", \"Poison\"],\r\n\tsavetxt : {\r\n\t\tadv_vs : [\"poison\"],\r\n\t\ttext : [\"Adv. on grapple checks\"]\r\n\t},\r\n\taction : [\r\n\t\t[\"action\", \"Reshape Body\"],\r\n\t\t[\"bonus action\", \"Extrude/Reabsorb Pseudopod\"]\r\n\t],\r\n\ttrait : \"Plasmoid (my creature type is Ooze)\"+\r\n\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Hold Breath: I can hold my breath for 1 hour.\"+\r\n\t\"\\n \\u2022 Amorphous: I can squeeze through a 1-inch wide space without my equipment or clothes. \" + (typePF ? \"I have advantage on grapple checks.\" : \"I also have advantage on ability checks I make to initiate or escape a grapple.\")+\r\n\t\"\\n \\u2022 Shape Self: As an action, I can reshape my body to have a head and limbs, or back to a limbless blob. As a bonus action, I can extrude/reabsorb a pseudopod up to 6 inch wide and 10 ft long. As part of the bonus action, it can manipulate objects, open/close doors, or pick up/set down a Tiny object. It can carry up to 10 lb, but not attack or use magic items.\"\r\n};\r\nRaceList[\"thri-kreen\"] = {\r\n\tregExpSearch : /thri.?kreen/i,\r\n\tname : \"Thri-kreen\",\r\n\tsource : [[\"S:AiS\", 15]],\r\n\tplural : \"Thri-kreen\",\r\n\tsize : [3, 4],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\t// age, height and weight taken from Shining South (2004) p17 (using the male option)\r\n\tage : \" reach maturity around 7 years old and typically live around 30 years\",\r\n\theight : \" stand between 5 and 7 feet tall (5'2\\\" + 2d10\\\")\",\r\n\tweight : \" weigh between 140 and 375 pounds (135 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand from 1,6 to over 2 metres tall (160 + 5d10 cm)\",\r\n\tweightMetric : \" weigh between 60 and 180 kg (60 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tlanguageProfs : [\"Common\", \"Thri-kreen Telepathy\", 1],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*carapace)(?=.*chameleon).*$/i,\r\n\t\tname : \"Chameleon Carapace\",\r\n\t\tsource : [[\"S:AiS\", 4]],\r\n\t\tac : 13,\r\n\t\tselectNow : true\r\n\t}],\r\n\taction : [[\"action\", \"Chameleon Carapace\"]],\r\n\ttrait : \"Thri-kreen (my creature type is Monstrosity)\"+\r\n\t\"\\n \\u2022 Chameleon Carapace: My base AC is 13 + Dex mod. As an action, \" + (typePF ? \"I can gain adv. on Stealth checks to hide in my current surroundings.\" : \"I can have it match my current surroundings, granting me adv. on Stealth checks to hide in those surroundings.\")+\r\n\t\"\\n \\u2022 Secondary Arms: \" + (typePF ? \"I have two slightly smaller arms below my primary pair of arms. I can use these secondary arms\" : \"Able\") + \" to manipulate objects, hold Tiny objects, or wield light weapons.\"+\r\n\t\"\\n \\u2022 Sleepless: I don't \" + (typePF ? \"\" : \"require \") + \"sleep. I rest by refraining from strenuous activity.\"+\r\n\t\"\\n \\u2022 \" + (typePF ? \"Thri-kreen \" : \"\") + \"Telepathy: I can't speak, but can communicate telepathically to any willing creatures within 120 ft that understand at least one language. Any can break this (no action).\"\r\n};\r\n\r\n// Spells from Astral Adventurer's Guide\r\nSpellsList[\"air bubble\"] = {\r\n\tname : \"Air Bubble\",\r\n\tclasses : [\"artificer\", \"druid\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"S:AiS\", 22]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Create spectral globe of fresh air around a head of 1+2/SL willing creatures, lasts for the duration\",\r\n\tdescriptionFull : \"You create a spectral globe around the head of a willing creature you can see within range. The globe is filled with fresh air that lasts until the spell ends. If the creature has more than one head, the globe of air appears around only one of its heads (which is all the creature needs to avoid suffocation, assuming that all its heads share the same respiratory system).\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can create two additional globes of fresh air for each slot level above 2nd.\"\r\n};\r\nSpellsList[\"create spelljamming helm\"] = {\r\n\tname : \"Create Spelljamming Helm\", \r\n\tnameShort : typePF ? \"Create spelljamming helm\" : \"Create spelljammin' helm\", // Lowercase or won't fit, shortened for Colourful version\r\n\tclasses : [\"artificer\", \"wizard\"],\r\n\tsource : [[\"S:AiS\", 22]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A crystal rod worth at least 5,000 gp, which the spell consumes\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"One Large or smaller unoccupied chair I touch transforms into a spelljamming helm (5000gp cons.)\",\r\n\tdescriptionFull : \"Holding the rod used in the casting of the spell, you touch a Large or smaller chair that is unoccupied. The rod disappears, and the chair is transformed into a spelljamming helm.\"\r\n};\r\n\r\n// Magic Items from Astral Adventurer's Guide\r\nMagicItemsList[\"fish suit\"] = {\r\n\tname : \"Fish Suit\",\r\n\tsource : [[\"S:AiS\", 22]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tsavetxt : { immune : [\"surrounding gas\"] },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }, // flying speed is more situational, so not added to the listing\r\n\tdescription : \"This bulky suit takes 1 minute to don or doff. While worn, I can breathe in an airless environment and am immune to any gas that surrounds me. The suit grants me a swimming speed equal to my walking speed while underwater, or a flying speed equal to my walking speed in an environment with no gravity.\",\r\n\tdescriptionFull : \"This bulky suit, which fully encases your head and body, takes 1 minute to don or doff. While worn, it enables you to breathe in an airless environment and renders you immune to the harmful effects of any gas that surrounds you. The suit also grants you a swimming speed equal to your walking speed while underwater, or a flying speed equal to your walking speed in an environment with no gravity.\"\r\n};\r\nvar SJAAG_SpelljammingHelm = [\r\n\t\"The function of this ornate chair is to propel and maneuver a ship on which it has been installed through space and air. It can also propel and maneuver a ship on water or underwater, provided the ship is built for such travel. The ship in question must weigh 1 ton or more.\",\r\n\t\"The sensation of being attuned to a spelljamming helm is akin to the pins-and-needles effect one experiences after one's arm or leg falls asleep, but not as painful.\",\r\n\t\"While attuned to a spelljamming helm and sitting in it, you gain the following abilities for as long as you maintain concentration (as if concentrating on a spell):\",\r\n\t\"\\u2022 You can use the spelljamming helm to move the ship through space, air, or water up to the ship's speed. If the ship is in space and no other objects weighing 1 ton or more are within 1 mile of it, you can use the spelljamming helm to move the vessel fast enough to travel 100 million miles in 24 hours.\",\r\n\t\"\\u2022 You can steer the vessel, albeit in a somewhat clumsy fashion, in much the way that a rudder or oars can be used to maneuver a seafaring ship.\",\r\n\t\"\\u2022 At any time, you can see and hear what's happening on and around the vessel as though you were standing in a location of your choice aboard it.\",\r\n\t\">>Transfer Attunement<<. You can use an action to touch a willing spellcaster. That creature attunes to the spelljamming helm immediately, and your attunement to it ends.\"\r\n];\r\nMagicItemsList[\"spelljamming helm\"] = {\r\n\tname : \"Spelljamming Helm\",\r\n\tsource : [[\"S:AiS\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"While attuned to  this ornate chair and sitting in it, I can propel and maneuver the ship on which it has been installed through space, air, or water up to the ship's speed. I need to maintain concentration as if concentrating on a spell to do so. The ship can move faster in space if nothing is nearby. See Notes page.\",\r\n\tdescriptionFull : SJAAG_SpelljammingHelm.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\taction : [[\"action\", \" (Transfer Attunement)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(SJAAG_SpelljammingHelm).replace(/your/ig, \"my\").replace(/\\byou\\b/ig, \"I\").replace(/   >>(.*?)<<\\. /g, function(a, match) { return \"\\n\" + match.toUpperCase() + \"\\n   \"; })\r\n\t}]\r\n};\r\nMagicItemsList[\"wildspace orrery\"] = {\r\n\tname : \"Wildspace Orrery\",\r\n\tsource : [[\"S:AiS\", 23]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"uncommon\",\r\n\tdescription : \"Inside a Wildspace system, this portable arcane device automatically tracks the positions and movements of all suns, planets, moons, and comets within that system, projecting a display of all these bodies in the space above its current location, marking itself as a white, pulsating pinprick of light.\",\r\n\tdescriptionFull : \"Inside a Wildspace system, this portable arcane device automatically tracks the positions and movements of all suns, planets, moons, and comets within that system, projecting a display of all these bodies in the space above its current location. In that display, a white, pulsating pinprick of light marks the orrery's location.\"\r\n};\r\n\r\n// Beasts from Boo's Astral Menagerie\r\nCreatureList[\"space eel\"] = {\r\n\tname : \"Space Eel\",\r\n\tnameAlt : [\"Eel, Space\"],\r\n\tsource : [[\"S:AiS\", 55]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 14,\r\n\thp : 7,\r\n\thd : [2, 6],\r\n\tspeed : \"10 ft, fly 30 ft\",\r\n\tscores : [12, 18, 11, 1, 10, 1],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"1/2\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 2,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Attaches on hit; While attached, auto-damage at turn start, but can't make bite attacks\",\r\n\t\ttooltip : \"On a hit, the eel attaches to the target. While attached, the eel can't make bite attacks. Instead, the target takes the bite damage at the start of each of the eel's turns. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t}, {\r\n\t\tname : \"Tail Spine\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tdescription : \"Target DC 10 Con save or poisoned and paralyzed for 1 min (can save as each turn ends)\",\r\n\t\ttooltip : \"The target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Unusual Nature\",\r\n\t\tdescription : \"The eel doesn't require air.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Multiattack\",\r\n\t\tdescription : \"As an action on its turn if not attached to a creature, the eel can make one Bite and one Tail Spine attack.\"\r\n\t}, {\r\n\t\tname : \"Attach\",\r\n\t\tdescription : \"If the eel hits with its bite attack, it attaches to the target. While attached, the eel can't make bite attacks. Instead, the target takes the bite damage at the start of each of the eel's turns. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t}, {\r\n\t\tname : \"Tail Spine\",\r\n\t\tdescription : \"If the eel hits with its tail spine, the target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\"\r\n\t}],\r\n\twildshapeString : [\r\n\t\t\"##Senses##. Darkvision 60 ft\",\r\n\t\t\"##Unusual Nature##. Doesn't require air.\",\r\n\t\t\"##Multiattack##. 1 bite and 1 tail spine attack if not attached to a creature.\",\r\n\t\t\"##Bite##. Attaches to the target hit by its bite attack, dealing bite damage at the start of each turn. The eel can detach itself as a bonus action. A creature, including the target, can use its action to detach the eel.\"\r\n\t].join(\"\\n\"),\r\n};\r\nCreatureList[\"space guppy\"] = {\r\n\tname : \"Space Guppy\",\r\n\tnameAlt : [\"Guppy, Space\"],\r\n\tsource : [[\"S:AiS\", 55]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 13,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"0 ft, fly 30 ft\",\r\n\tscores : [3, 16, 10, 1, 10, 1],\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Tail Slap\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, \"\", \"bludgeoning\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Air Envelope\",\r\n\t\tdescription : \"If it has at least 1 hit point, the guppy can generate an air envelope around itself when in a vacuum. This air envelope can sustain the guppy and one other Tiny creature in its space indefinitely.\"\r\n\t}, {\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The guppy doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}]\r\n};\r\nCreatureList[\"giant space hamster\"] = {\r\n\tname : \"Giant Space Hamster\",\r\n\tnameAlt : [\"Hamster, Giant Space\"],\r\n\tsource : [[\"S:AiS\", 56]], // page number in Boo's Astral Menagerie\r\n\tsize : 2,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 10],\r\n\tspeed : \"30 ft, burrow 10 ft\",\r\n\tscores : [14, 12, 10, 2, 12, 4],\r\n\tpassivePerception : 11,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [2, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}]\r\n};\r\nCreatureList[\"space mollymawk\"] = {\r\n\tname : \"Space Mollymawk\",\r\n\tnameAlt : [\"Mollymawk, Space\"],\r\n\tsource : [[\"S:AiS\", 57]], // page number in Boo's Astral Menagerie\r\n\tsize : 4,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 12,\r\n\thp : 3,\r\n\thd : [1, 6],\r\n\tspeed : \"10 ft, fly 50 ft\",\r\n\tscores : [6, 14, 11, 3, 12, 3],\r\n\tskills : {\r\n\t\t\"perception\" : 5\r\n\t},\r\n\tpassivePerception : 15,\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 4, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Flyby\",\r\n\t\tdescription : \"The mollymawk doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t}, {\r\n\t\tname : \"Hold Breath\",\r\n\t\tdescription : \"The mollymawk can hold its breath for 15 minutes.\"\r\n\t}]\r\n};\r\nCreatureList[\"space swine\"] = {\r\n\tname : \"Space Swine\",\r\n\tnameAlt : [\"Swine, Space\"],\r\n\tsource : [[\"S:AiS\", 57]], // page number in Boo's Astral Menagerie\r\n\tsize : 3,\r\n\ttype : \"Beast\",\r\n\talignment : \"Unaligned\",\r\n\tac : 11,\r\n\thp : 22,\r\n\thd : [4, 8],\r\n\tspeed : \"40 ft, fly 40 ft\",\r\n\tscores : [14, 12, 10, 2, 12, 4],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"survival\" : 4\r\n\t},\r\n\tpassivePerception : 14,\r\n\tchallengeRating : \"1/4\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Barding\",\r\n\t\tdescription : \"Space swine that are trained for battle are typically outfitted with half-plate barding and are referred to as death squealers. This barding gives them an AC of 16.\"\r\n\t}],\r\n\twildshapeString : \" \" // the barding trait is not applicable to wild shapes\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20221206_Dragonlance.js",
    "content": "var iFileName = \"pub_20221206_Dragonlance.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the Character Options content from Dragonlance: Shadow of the Dragon Queen to MPMB's Character Record Sheet\r\n\r\nSourceList[\"D:SotDQ\"] = {\r\n\tname : \"Dragonlance: Shadow of the Dragon Queen\",\r\n\tabbreviation : \"D:SotDQ\",\r\n\tgroup : \"Campaign Sourcebooks\",\r\n\tcampaignSetting : \"Dragonlance\",\r\n\turl : \"https://dnd.wizards.com/products/dragonlance\",\r\n\tdate : \"2022/12/06\"\r\n};\r\n\r\nRaceList[\"kender\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"D:SotDQ\", 27]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"frightened\"]},\r\n\tskillstxt : \"Choose one from Insight, Investigation, Sleight of Hand, Stealth, or Survival\",\r\n\tabilitySave : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"fearless\" : {\r\n\t\t\tname : \"Fearless\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t\"\\n \\u2022 Fearless: I have adv. on saves against the frightened condition. Once per long rest when I fail \" + (typePF ? \"such a save\" : \"a save to avoid being frightened\") + \", I can choose to succeed\" + (typePF ? \".\" : \" instead\")+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can taunt a creature within 60 ft of me that can hear and understand me. They must make a Wisdom \" + (typePF ? \"saving throw or have disadvantage\" : \"save (DC 8 + Prof B + Int/Wis/Cha mod; one-time choice) or have disadv.\") + \" on attack rolls not made against me until the start of my next turn. I can do this a number of times per long rest equal to my proficiency bonus.\" + (typePF ? \" The DC equals 8 + my proficiency bonus + Intelligence, Wisdom, or Charisma modifier (one-time choice when selecting this race).\" : \"\")\r\n};\r\n\r\nBackgroundList[\"knight of solamnia\"] = {\r\n\tregExpSearch : /^(?=.*(knight|champion|warrior))(?=.*solamnia).*$/i,\r\n\tname : \"Knight of Solamnia\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Squire of Solamnia\",\r\n\ttrait : [ // Kept those from the UA article\r\n\t\t\"I pledge my sword to the greater good. If I must perish in pursuit of that good, so be it.\",\r\n\t\t\"My comrades-in-arms are my family. I'll do whatever it takes to keep them safe.\",\r\n\t\t\"The protection of innocent people comes first. All other concerns come second.\",\r\n\t\t\"I joined the knights for the free meals, but their lessons grew on me over time.\",\r\n\t\t\"I wish my deeds to become the stuff of legends\\xD7just like those of the knighthood's heroic founders.\",\r\n\t\t\"A dishonorable act drove me to become a knight. I have acted with honor ever since.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Choose a Trinket\",\r\n\t\t\"Silver disk, recording my heroics\",\r\n\t\t\"Piece of a fallen knight's armor\",\r\n\t\t\"Pendant with a crown/rose/sword\",\r\n\t\t\"Pommel of my mentor's sword\",\r\n\t\t\"Favor from someone I defended\",\r\n\t\t\"Locket with silver dragon sketch\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"squire of solamnia\"] = {\r\n\tdescription : \"I gain the Squire of Solamnia feat. In addition, the Knights of Solamnia provide me free, modest lodging and food at any of their fortresses or encampments.\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2], [\"UA:HoK\", 3]],\r\n\tfeatsAdd: [\"Squire of Solamnia\"],\r\n};\r\n\r\nBackgroundList[\"mage of high sorcery\"] = {\r\n\tregExpSearch : /^(?=.*(mage|wizard|magus))(?=.*high)(?=.*sorcery).*$/i,\r\n\tname : \"Mage of High Sorcery\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\tskills : [\"Arcana\", \"History\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Bottle of colored ink\", \"\", \"\"],\r\n\t\t[\"Ink pen\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Initiate of High Sorcery\",\r\n\ttrait : [ // Kept those from the UA article\r\n\t\t\"I wish to use my knowledge of magic to better people's lives.\",\r\n\t\t\"My study of magic might reveal all manner of secrets.\",\r\n\t\t\"Magic is a means to power, and I will use it to pursue my ambitions.\",\r\n\t\t\"I learned magic so I'd be able to protect those I care about.\",\r\n\t\t\"I use my magic to maintain the balance between all things.\",\r\n\t\t\"Whether in the past, present, or future, I will be the greatest mage ever known.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Choose a Trinket\",\r\n\t\t\"Unopened letter from first teacher\",\r\n\t\t\"Broken black/red/white wooden wand\",\r\n\t\t\"Scroll with incomprehensible formula\",\r\n\t\t\"Stone-covered foldable device\",\r\n\t\t\"Pouch with triple moon symbol\",\r\n\t\t\"Spellbook with triple moon symbol\",\r\n\t\t\"Lens to see Nuitari, invisible moon\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"initiate of high sorcery\"] = {\r\n\tdescription : \"I gain the Initiate of High Sorcery feat. In addition, the Mages of High Sorcery provide me with free, modest lodging and food indefinitely at any occupied Tower of High Sorcery and for one night at the home of an organization member.\",\r\n\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\tfeatsAdd: [\"Initiate of High Sorcery\"],\r\n};\r\n\r\n\r\n// Feats tree for Initiate of High Sorcery\r\nFeatsList[\"initiate of high sorcery\"] = {\r\n\tname : \"Initiate of High Sorcery\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a wizard cantrip and two 1st-levels spell from a list depending on my chosen moon. I can cast each spell once per long rest at its lowest levels without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You've received training from magic-users affiliated with the Mages of High Sorcery.\"+\r\n\t\"\\n   Choose one of the three moons of Krynn to influence your magic: the black moon, Nuitari; the red moon, Lunitari; or the white moon, Solinari. You learn one cantrip of your choice from the wizard spell list and two 1st-level spells based on the moon you choose, as specified in the Lunar Spells table.\"+\r\n\t\"\\n\\n\" + toUni(\"Lunar Spells\")+\r\n\t\"\\n\" + toUni(\"Moon\\t1st-Level Spell\")+\r\n\t\"\\nNuitari\\tChoose two from dissonant whispers, false life,\"+\r\n\t\"\\n\\thex, and ray of sickness\"+\r\n\t\"\\nLunitari\\tChoose two from color spray, disguise self,\"+\r\n\t\"\\n\\tfeather fall, and longstrider\"+\r\n\t\"\\nSolinari\\tChoose two from comprehend languages, detect\"+\r\n\t\"\\n\\tevil and good, protection from evil and good, and\"+\r\n\t\"\\n\\tshield\"+\r\n\t\"\\n\\n   You can cast each of the chosen 1st-level spells without a spell slot, and you must finish a long rest before you can cast them in this way again. You can also cast the spells using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\tprerequisite : \"Dragonlance Campaign, plus Sorcerer, Wizard, or Mage of High Sorcery background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.wizard || classes.known.sorcerer || CurrentBackground.known.indexOf('mage of high sorcery') !== -1 || /initiate of high sorcery/i.test(What(\"Background Feature\"));\r\n\t},\r\n\tchoices : [\"Nuitari\", \"Lunitari\", \"Solinari\"],\r\n\t\"nuitari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Dissonant Whispers, False Life, Hex, or Ray of Sickness). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level spell\",\r\n\t\t\tspells : [\"dissonant whispers\", \"false life\", \"hex\", \"ray of sickness\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"lunitari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Color Spray, Disguise Self, Feather Fall, Longstrider). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level spell\",\r\n\t\t\tspells : [\"color spray\", \"disguise self\", \"feather fall\", \"longstrider\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"solinari\" : {\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Comprehend Languages, Detect Evil and Good, Protection from Evil and Good, Shield). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level spell\",\r\n\t\t\tspells : [\"comprehend languages\", \"detect evil and good\", \"protection from evil and good\", \"shield\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"adept of the black robes\"] = {\r\n\tname : \"Adept of the Black Robes\",\r\n\tsource : [[\"D:SotDQ\", 31], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn one 2nd-level Ench or Necro spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When a creature I can see within 60 ft fails its save vs. my damaging spell, I can expend HD up to the spell's level and add the rolls to the damage of the spell for that one creature.\",\r\n\tdescriptionFull : \"You chose the moon Nuitari to influence your magic, and your ambition and loyalty to the Order of the Black Robes have been recognized, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ambitious Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the evocation or necromancy school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Life Channel\") + \". You can channel your life force into the power of your magic. When a creature you can see within 60 feet fails on a saving throw against a spell that deals damage that you cast, you can expend a number of Hit Dice equal to the level of the spell. Roll the expended Hit Dice and add them together. The damage that the creature takes increases by an amount equal to that total.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Nuitari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'nuitari';\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Evoc/Necro spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_nuitari',\r\n\tallowUpCasting : true\r\n};\r\nFeatsList[\"adept of the red robes\"] = {\r\n\tname : \"Adept of the Red Robes\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a 2nd-level Illusion or Transmutation spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When I roll 9 or lower on the d20 for an attack or ability check, I can treat the roll as a 10. I can do this a number of times per long rest equal to my proficiency bonus.\",\r\n\tdescriptionFull : \"You chose the moon Lunitari to influence your magic, and your dedication to maintaining the balance between all things has been recognized by the Order of the Red Robes, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Insightful Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the illusion or transmutation school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Magical Balance\") + \". When you make an attack roll, an ability check, or a saving throw, and roll a 9 or lower on the d20, you can use your reaction to balance fate and treat the roll as a 10. you can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Lunitari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'lunitari';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Illus/Trans spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Illus\", \"Trans\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_lunitari',\r\n\tallowUpCasting : true\r\n};\r\nFeatsList[\"adept of the white robes\"] = {\r\n\tname : \"Adept of the White Robes\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn one 2nd-level Abjur or Div spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. As a reaction when I or a creature I can see within 30 ft is damaged, I can expend a spell slot and roll d6s equal to its level to reduce the damage by that much + my spellcasting modifier.\",\r\n\tdescriptionFull : \"You chose the moon Solinari to influence your magic, and your oath to use magic to make the world a better place has been recognized by the Order of the White Robes, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Protective Magic\") + \". You learn one 2nd-level spell of you choice. The 2nd-level spell must be from the abjuration or divination school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\"\\n   \" + toUni(\"Protective Ward\") + \". When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to expend a spell slot and weave protective magic around the target. Roll a number of d6s equal to the level of the spell slot expended and reduce the damage the target takes by the total rolled on those dice + your spellcasting ability modifier.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery (Solinari) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'solinari';\r\n\t},\r\n\taction : [[\"reaction\", \"\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Abjur/Div spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Div\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 'initiate of high sorcery_-_solinari',\r\n\tallowUpCasting : true\r\n};\r\n\r\n// Feat Divinely Favored\r\nFeatsList[\"divinely favored\"] = {\r\n\tname : \"Divinely Favored\",\r\n\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\tdescription : \"I learn a cleric cantrip, a 1st-level spell based on my alignment, and Augury. I can cast the spells each once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\tdescriptionFull : \"A god chose you to carry a spark of their power.\"+\r\n\t\"\\n   You learn one cantrip of your choice from the cleric spell list and one 1st-level spell based on the alignment of your character, as specified in the table below. You also learn the augury spell.\"+\r\n\t\"\\n\\n\" + toUni(\"Alignment\\t1st-level Spell\")+\r\n\t\"\\n Evil\\t\\tChoose one 1st level warlock spell\"+\r\n\t\"\\n Good\\t\\tChoose one 1st-level cleric spell\"+\r\n\t\"\\n Neutral\\t\\tChoose one 1st-level druid spell\"+\r\n\t\"\\n\\n   You can cast the chosen 1st-level spell and the augury spell without a spell slot, and you must finish a long rest before you can cast either of these spells in this way again. You can also cast these spells using spell slots you have of the appropriate level.\"+\r\n\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\t\"\\n\\n   In addition, you can use a holy symbol as a spellcasting focus for any spell you cast that uses the spellcasting ability you choose when you select this feat.\",\r\n\tchoices : [\"Evil (warlock spell)\", \"Good (cleric spell)\", \"Neutral (druid spell)\"],\r\n\t\"evil (warlock spell)\" : {\r\n\t\tname : \"Divinely Favored [Evil]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level warlock spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock Spell\",\r\n\t\t\t\"class\" : [\"warlock\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"good (cleric spell)\" : {\r\n\t\tname : \"Divinely Favored [Good]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level cleric spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric Spell\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"neutral (druid spell)\" : {\r\n\t\tname : \"Divinely Favored [Neutral]\",\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level druid spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\tlevel : [0, 0],\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid Spell\",\r\n\t\t\t\"class\" : [\"druid\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}, {\r\n\t\t\tname : \"Augury\",\r\n\t\t\tspells : [\"augury\"],\r\n\t\t\tselection : [\"augury\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t}\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nFeatsList[\"squire of solamnia\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"D:SotDQ\", 34]],\r\n\tdescription : \"Mounting or dismounting costs me only 5-ft of movement. Once per turn, I can grant myself advantage on a weapon attack, adding +1d8 to the damage roll if it hits. I can use this benefit my proficiency bonus per long rest, but a use is expended only if the attack hits.\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Mount Up\") + \". Mounting or dismounting costs you only 5 feet of movement.\"+\r\n\t\"\\n   \" + toUni(\"Precise Strike\") + \". Once per turn, when you make a weapon attack roll against a creature, you can cause the attack roll to have advantage. If the attack hits, you roll a d8 and add the number rolled as a bonus to the attack's damage roll. You can use this benefit a number of times equal to your proficiency bonus, but a use is expended only if the attack hits. You regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"Dragonlance Campaign, plus Fighter, Paladin, or Knight of Solamnia background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.fighter || classes.known.paladin || CurrentBackground.known.indexOf('knight of solamnia') !== -1 || /squire of solamnia/i.test(What(\"Background Feature\"));\r\n\t},\r\n\tlimfeaname : \"Precise Strike (Squire of Solamnia)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the crown\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"D:SotDQ\", 32]],\r\n\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Strength, Dexterity, or Constitution]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Dexterity, or Constitution by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Commanding Rally\") + \". As a bonus action, you can command one ally within 30 feet of yourself to attack. If that ally can see or hear you, they can immediately make one weapon attack as a reaction. If the attack hits, the ally can roll a d8 and add the number rolled as a bonus to the attack's damage roll. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Commanding Rally (Knight of the Crown)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\"],\r\n\t\"strength\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Strength]\",\r\n\t\tscores : [1,0,0,0,0,0]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Dexterity]\",\r\n\t\tscores : [0,1,0,0,0,0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tdescription : \"As a bonus action, I can use Commanding Rally on one ally within 30 ft that can see or hear me to immediately make one weapon attack as a reaction. +1d8 is added to the damage roll, if it hits. I can do this my proficiency bonus per long rest. [+1 Constitution]\",\r\n\t\tscores : [0,0,1,0,0,0]\r\n\t}\r\n};\r\nFeatsList[\"knight of the rose\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"D:SotDQ\", 33]],\r\n\tdescription : \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + my proficiency bonus + the modifier of the ability chosen to increase temporary hit points. I can do this my proficiency bonus per long rest. [+1 Constitution, Wisdom, or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution, Wisdom, or Charisma by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Bolstering Rally\") + \". As a bonus action, you can encourage one creature you can see within 30 feet of yourself (you can choose yourself). If the target can see or hear you, the target gains temporary hit points equal to 1d8 + your proficiency bonus + the ability modifier of the ability score increased by this feat. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Bolstering Rally (Knight of the Rose)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Constitution\", \"Wisdom\", \"Charisma\"],\r\n\t\"constitution\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Con Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Constitution modifier). I can do this my proficiency bonus per long rest. [+1 Constitution]\";',\r\n\t\tscores : [0,0,1,0,0,0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Wis Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Wisdom modifier). I can do this my proficiency bonus per long rest. [+1 Wisdom]\";',\r\n\t\tscores : [0,0,0,0,1,0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculation : 'event.value = \"As a bonus action, I can use Bolstering Rally on myself or an ally within 30 ft that I can see and can see or hear me. They gain 1d8 + \" + (Number(How(\"Proficiency Bonus\")) + Number(What(\"Cha Mod\"))) + \" temporary hit points (1d8 + proficiency bonus + Charisma modifier). I can do this my proficiency bonus per long rest. [+1 Charisma]\";',\r\n\t\tscores : [0,0,0,0,0,1]\r\n\t}\r\n};\r\nFeatsList[\"knight of the sword\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"D:SotDQ\", 33]],\r\n\tdescription : \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC (8 + Prof Bonus + mod of the ability increased by this feat) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Int/Wis/Cha]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Demoralizing Strike\") + \". Once per turn, when you hit a creature with a weapon attack roll, you can attempt to frighten that target. The target must make a Wisdom saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the target is frightened of you until the end of your next turn. On a successful save, the target has disadvantage on the next attack roll it makes before the end of its next turn. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia\") !== -1; },\r\n\tlimfeaname : \"Demoralizing Strike (Knight of the Sword)\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = Number(How('Proficiency Bonus'));\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Int Mod\"))) + \" (8 + Prof Bonus + Int mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Int]\";',\r\n\t\tscores : [0,0,0,1,0,0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Wis Mod\"))) + \" (8 + Prof Bonus + Wis mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Wis]\";',\r\n\t\tscores : [0,0,0,0,1,0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculation : 'event.value = \"Once per turn, when I hit a creature with a weapon attack, I can have it make a Wisdom save DC \" + (8 + Number(How(\"Proficiency Bonus\")) + Number(What(\"Cha Mod\"))) + \" (8 + Prof Bonus + Cha mod) or be frightened of me until my next turn ends. On a successful save, the target has disadv. on its next attack before its next turn ends. I can do this my proficiency bonus per long rest. [+1 Cha]\";',\r\n\t\tscores : [0,0,0,0,0,1]\r\n\t}\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"sorcerer\", \"lunar sorcery\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|sorcery|witch))(?=.*(lunar|moon)).*$/i,\r\n\tsubname : \"Lunar Sorcery\",\r\n\tfullname : \"Lunar Sorcerer\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Lunar Embodiment\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tadditional : levels.map(function (n) { return (n < 3 ? 3 : n < 5 ? 6 : n < 7 ? 9 : n < 9 ? 12 : 15) + \" additional spells known\"}),\r\n\t\t\tspellcastingExtra : [\r\n\t\t\t\t// full moon\r\n\t\t\t\t\"shield\", \"lesser restoration\", \"dispel magic\", \"death ward\", \"rary's telepathic bond\",\r\n\t\t\t\t// new moon\r\n\t\t\t\t\"ray of sickness\", \"blindness/deafness\", \"vampiric touch\", \"confusion\", \"hold monster\",\r\n\t\t\t\t// crescent moon\r\n\t\t\t\t\"color spray\", \"alter self\", \"phantom steed\", \"hallucinatory terrain\", \"mislead\"\r\n\t\t\t],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tdescription : levels.map(function(n) {\r\n\t\t\t\tvar phases = {\r\n\t\t\t\t\t\"\\u25CB Full: \" : [\"Shield\", \"Lesser Restoration\", \"Dispel Magic\", \"Death Ward\", \"Rary's Telepathic Bond\"],\r\n\t\t\t\t\t\"\\u25CF New: \" : [\"Ray of Sickness\", \"Blindness/deafness\", \"Vampiric Touch\", \"Confusion\", \"Hold Monster\"],\r\n\t\t\t\t\t\"\\u25D6 Crescent: \" : [\"Color Spray\", \"Alter Self\", \"Phantom Steed\", \"Hallucinatory Terrain\", \"Mislead\"]\r\n\t\t\t\t};\r\n\t\t\t\tvar aReturn = [\r\n\t\t\t\t\t\"When I finish a long rest, I can choose a lunar phase: Full, New, or Crescent Moon\",\r\n\t\t\t\t\t\"I can cast the 1st-level spell of that lunar phase once per long rest without a spell slot\"\r\n\t\t\t\t];\r\n\t\t\t\tvar iSpellsAdd = n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : 5;\r\n\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\taReturn.push(phase + phases[phase].slice(0,iSpellsAdd).join(\", \"));\r\n\t\t\t\t}\r\n\t\t\t\t//aReturn.push(\"I know all \" + (iSpellsAdd * 3) + \" spells above; They don't count towards the number of spells I can know\");\r\n\t\t\t\treturn desc(aReturn);\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName === \"sorcerer\" && !isDuplicate && CurrentSpells.sorcerer.extra.indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\tvar phases = {\r\n\t\t\t\t\t\t\t\t\"F\" : [\"shield\", \"lesser restoration\", \"dispel magic\", \"death ward\", \"rary's telepathic bond\"],\r\n\t\t\t\t\t\t\t\t\"N\" :  [\"ray of sickness\", \"blindness/deafness\", \"vampiric touch\", \"confusion\", \"hold monster\"],\r\n\t\t\t\t\t\t\t\t\"C\" : [\"color spray\", \"alter self\", \"phantom steed\", \"hallucinatory terrain\", \"mislead\"]\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\t\t\t\tif (phases[phase].indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\t\t\tspellObj.firstCol = phase;\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'The letters \"F\", \"N\", or \"C\" in the first column are used to indicate that a spell belongs to either the Full Moon, New Moon, or Crescent Moon lunar phase.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tspellFirstColTitle : \"Ph\",\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"1st-level lunar phase spell\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Moon Fire\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I know the Sacred Flame cantrip and can use it on 2 creatures within 5 ft of each other\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Moon Fire\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tweaponsAdd : { select : [\"Sacred Flame\"] },\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sacred flame\" : {\r\n\t\t\t\t\tdescription : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 at CL 5, 11, and 17\",\r\n\t\t\t\t\tdescriptionShorter : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 CL 5/11/17\",\r\n\t\t\t\t\tdescriptionCantripDie : \"Up to 2 creas I see, max 5 ft apart, save or `CD`d8 Radiant dmg; no bonus for cover on save\",\r\n\t\t\t\t\tchanges : \"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName == 'sacred flame') {\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(\"1 creature\", \"up to 2 creatures within 5 ft\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Lunar Boons\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Each lunar phase is additionally associated with spells of the following schools of magic:\",\r\n\t\t\t\t\"\\u25CB Full: Abjur \\u0026 Div\\t\\t\\u25CF New: Ench \\u0026 Necro\\t\" + (typePF ? \"\\t\" : Array(8).join(\" \")) + \"\\u25D6 Crescent: Illus \\u0026 Trans\",\r\n\t\t\t\t\"I can reduce the sorcery point needed for Metamagic of spells of my current phase by 1\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Waxing and Waning\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 sorcery point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 sorcery point to change my lunar phase\",\r\n\t\t\t\t\"I can cast each lunar phase's 1st-level spells once per long rest, if it is my current phase\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Shield (in Full lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Ray of Sickness (in New lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Color Spray (in Crescent lunar phase)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}],\r\n\t\t\teval : function () {\r\n\t\t\t\tRemoveFeature(\"1st-level lunar phase spell\", 0, \"\", \"\", \"Lunar Sorcerer: Lunar Embodiment\");\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tAddFeature(\"1st-level lunar phase spell\", 1, \"\", \"long rest\", \"Lunar Sorcerer: Lunar Embodiment\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Lunar Empowerment\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [passive benefits for current phase]\" + desc([\r\n\t\t\t\t\"\\u25CB Full: I shed bright light in a 10-ft radius \\u0026 dim light for extra 10 ft\",\r\n\t\t\t\t\"  Myself and creatures I choose in 10 ft have adv. on Investigation and Perception checks\",\r\n\t\t\t\t\"\\u25CF New: I have adv. on Stealth checks; While I'm in darkness, attacks have disadv. vs me\",\r\n\t\t\t\t\"\\u25D6 Crescent: I have resistance to Necrotic and Radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Necrotic\", \"Necro. (in crescent)\"],\r\n\t\t\t\t[\"Radiant\", \"Rad. (in crescent)\"]\r\n\t\t\t]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Lunar Phenomenon\",\r\n\t\t\tsource : [[\"D:SotDQ\", 0]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional: \"per phase: 1\\xD7 per long rest or 5 SP\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, or as part of changing phase, I can use a power of the (new) phase:\",\r\n\t\t\t\t\"\\u25CB Full: Chosen creatures within 30 ft of me must make a Constitution save or be blinded\",\r\n\t\t\t\t\"  This lasts until their next turn ends; I also heal one creature within 30 ft for 3d8 HP\",\r\n\t\t\t\t\"\\u25CF New: Chosen creatures within 30 ft of me must make a Dexterity save\",\r\n\t\t\t\t\"  If failed, they take 3d10 Necrotic damage and have 0 speed until their next turn ends\",\r\n\t\t\t\t\"  Also, I become invisible until the end of my next turn, or until I attack or cast a spell\",\r\n\t\t\t\t\"\\u25D6 Crescent: I can magically teleport to an unoccupied space I can see within 60 ft\",\r\n\t\t\t\t\"  Both of us gain resistance to all damage until the start of my next turn\",\r\n\t\t\t\t\"I can use each phase's bonus action 1/LR, or by spending 5 sorcery points to use it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Lunar Phenomenon (Full)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (New)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (Crescent)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Weapon, Hoopak\r\nWeaponsList[\"hoopak, melee\"] = {\r\n\tregExpSearch : /hoopak/i,\r\n\tname : \"Hoopak, melee\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tlist : \"melee\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 6, \"piercing\"],\r\n\trange : \"Melee\",\r\n\tweight : 2,\r\n\tdescription : \"Finesse, two-handed; Can be used ranged (40/160 ft) with ammo, for 1d4 bludgeoning damage\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\nWeaponsList[\"hoopak, ranged\"] = {\r\n\tregExpSearch : /^(?=.*hoopak)(?=.*ranged).*$/i,\r\n\tname : \"Hoopak, ranged\",\r\n\tsource : [[\"D:SotDQ\", 0]],\r\n\tlist : \"ranged\",\r\n\tability : 1,\r\n\ttype : \"Martial\",\r\n\tdamage : [1, 4, \"bludgeoning\"],\r\n\trange : \"40/160 ft\",\r\n\tweight : 2,\r\n\tdescription : \"Ammunition, finesse, two-handed; Can be used in melee without ammo, for 1d6 piercing damage\",\r\n\tspecial : true,\r\n\tabilitytodamage : true\r\n};\r\n\r\n// Magic Items\r\nMagicItemsList[\"flying citadel helm\"] = {\r\n\tname : \"Flying Citadel Helm\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\tdescription : \"This ornate chair allows me to maneuver a flying citadel while concentrating (as if a spell). I can move the citadel through the air 80 ft/round or 8 miles/h, steer it, and see and hear from its highest point as though I was at that location. As an action or bonus action, I can transfer attunement to a willing spellcaster.\",\r\n\tdescriptionFull : \"The function of this ornate chair is to propel and maneuver a flying citadel on which it has been installed. The chair has AC 15, 18 hit points, and immunity to poison and psychic damage. It is destroyed if reduced to 0 hit points.\"+\r\n\t\"\\n   The sensation of being attuned to a flying citadel helm is akin to the pins-and-needles effect one experiences after one's arm or leg falls asleep, but not as intense.\"+\r\n\t\"\\n   While attuned to a flying citadel helm and sitting in it, you gain the following abilities for as long as you maintain concentration (as if concentrating on a spell):\"+\r\n\t\"\\n \\u2022 You can use the flying citadel helm to move the citadel through the air, up to 80 feet per round, or up to 8 miles per hour.\"+\r\n\t\"\\n \\u2022 You can steer the citadel, albeit in a somewhat clumsy fashion, in much the way that a rudder or oars can be used to maneuver a seafaring ship.\"+\r\n\t\"\\n \\u2022 At any time, you can see and hear from the highest point outside the citadel as though you were at that location.\"+\r\n\t\"\\n\\n   If no creature attuned to the helm is maintaining concentration, the citadel remains motionless in its space.\"+\r\n\t\"\\n   \"+toUni(\"Transfer Attunement\")+\". You can use an action or a bonus action to touch a willing spellcaster, whereupon that creature attunes to the flying citadel helm immediately, and your attunement to the flying citadel helm ends.\"+\r\n\t\"\\n   \"+toUni(\"Crash\")+\". Should the flying citadel helm be destroyed, the citadel it is installed on loses power and begins to crumble. If the crumbling citadel is in the air, it descends at a rate of 30 feet per round, or 300 feet per minute. Any creature on the citadel or on the ground within 120 feet of the citadel when it lands must make a DC 20 Dexterity saving throw, taking 39 (6d12) bludgeoning damage on a failed save, or half as much damage on a successful one.\",\r\n\taction : [\r\n\t\t[\"action\", \" (Transfer Attunement)\"],\r\n\t\t[\"bonus action\", \" (Transfer Attunement)\"]\r\n\t]\r\n};\r\nMagicItemsList[\"kagonesti forest shroud\"] = {\r\n\tname : \"Kagonesti Forest Shroud\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"This cloak of autumnal leaves woven together grants me advantage on Dexterity (Stealth) checks. As a bonus action once per dawn, I can use it to magically teleport to an unoccupied space I can see within 30 ft. I then have advantage on the next attack roll I make before the end of the turn.\",\r\n\tdescriptionFull : \"This cloak appears to be made of autumnal leaves woven together. While you wear this cloak, you have advantage on Dexterity (Stealth) checks, and you can use a bonus action to magically teleport, along with any equipment you are wearing or carrying, to an unoccupied space you can see within 30 feet of yourself. You then have advantage on the next attack roll you make before the end of the turn. Once this bonus action is used, it can't be used again until the next dawn.\",\r\n\tadvantages : [[\"Stealth\", true]],\r\n\taction : [[\"bonus action\", \" (teleport)\"]],\r\n\tusages : 1,\r\n\trecovery : \"Dawn\",\r\n\tadditional : \"teleport\"\r\n};\r\nMagicItemsList[\"mirror of reflected pasts\"] = {\r\n\tname : \"Mirror of Reflected Pasts\",\r\n\tsource : [[\"D:SotDQ\", 190]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can (de)activate this mirror. It can be activated once per dawn, making it hover in the air, can't be moved, and when a non-construct sees its reflection in it while within 30 ft, it must make a DC 15 Wis save. It is paralyzed until the mirror is deactivated. It can retry the save at the end of each of its turns.\",\r\n\tdescriptionLong : \"As an action, I can activate this mirror of elven design once per dawn, or deactive it. While active, it hovers in the air and can't be moved. When a non-construct creature within 30 ft of the mirror sees its reflection in it, the creature must make a DC 15 Wisdom save or become paralyzed. The creature can repeat the save at the end of each of its turns, but is otherwise paralyzed until the  mirror is deactivated. A successful save makes a creature immune for 24 hours. While paralyzed by the mirror, the creature sees idealized versions of events from their past reflected in the mirror's glass.\",\r\n\tdescriptionFull : \"This mirror of elven design allows those who stare into it to reflect on positive memories. The 3-foot-tall mirror weighs 25 pounds, and it has AC 11, 10 hit points, and vulnerability to bludgeoning damage. It shatters and is destroyed if reduced to 0 hit points.\"+\r\n\t\"While holding the mirror upright, you can use an action to speak its command word and activate it. While activated, the mirror hovers in the air, and it can be destroyed but not moved. It remains activated until you use an action to speak the command word again or your attunement to the mirror ends, at which point the mirror harmlessly floats to the ground. Once the mirror has been deactivated, it can't be activated again until the next dawn.\"+\r\n\t\"If a non-Construct creature other than you sees its reflection in the activated mirror while within 30 feet of it, that creature must succeed on a DC 15 Wisdom saving throw or become paralyzed until the mirror is deactivated or until that creature can no longer see the mirror. A creature paralyzed by the mirror can repeat the saving throw at the end of each of its turns, ending the effect on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to this mirror's effect for the next 24 hours.\"+\r\n\t\"While paralyzed by the mirror, the creature sees events from their past reflected in the mirror's glass. These memories aren't real, but rather idealized versions of those occurrences. Nearby observers can glimpse flashes of these memories if looking indirectly at the mirror.\",\r\n\tweight : 25,\r\n\taction : [[\"action\", \" [(de)activate]\"]],\r\n\tusages : 1,\r\n\trecovery : \"Dawn\"\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20230221_KftGV.js",
    "content": "var iFileName = \"pub_20230221_KftGV.js\";\r\nRequiredSheetVersion(\"13.1.1\");\r\n// This file adds the magic items from the Keys from the Golden Vault adventure book to MPMB's Character Record Sheet\r\n\r\nSourceList[\"KftGV\"] = {\r\n\tname : \"Keys from the Golden Vault [items]\",\r\n\tabbreviation : \"KftGV\",\r\n\tgroup : \"Adventure Books\",\r\n\turl : \"https://dnd.wizards.com/products/keys-from-the-golden-vault\",\r\n\tdate : \"2023/02/21\"\r\n};\r\n\r\nvar KftGV_ConstantoriPortrait = [\r\n\t\"This painting by famed artist Dkesii Kwan depicts Constantori, a beautiful courtier, who was paid a staggering sum to be Dkesii's model. Whether Constantori's actual appearance matches the painting remains a subject of debate. The portrait is one of several paintings commissioned by the late Daiyani Grysthorn, a crime lord who frequently gave magical paintings as gifts to her most esteemed associates.\",\r\n\t\">>Sentience<<. Constantori's Portrait is a sentient, lawful evil item with an Intelligence score of 14, a Wisdom score of 12, and a Charisma score of 8. It can hear within a range of 120 feet and has darkvision within a range of 60 feet, but it can't see anything behind itself.\",\r\n\t\"The painting can converse in Common, Draconic, and Elvish as if it were a living person, though Constantori's mouth doesn't move. Whenever conversation occurs within the portrait's auditory range, the painting eagerly gathers secrets, the names of secret tellers, significant events, or any political conversations.\",\r\n\t\">>Personality<<. Constantori's Portrait is demanding, condescending, and vain. It doesn't like being covered or placed out of sight, and it loudly condemns anyone who tries to remove it from its gold-leaf frame.\",\r\n\t\">>Wealth of Information<<. The painting's primary purpose is to observe and recall conversations. Over the past few decades, Constantori's Portrait has quietly observed countless conversations and now possesses an unquantifiable amount of lore\\u2014everything from criminal conspiracies to secret passwords. The DM decides what the painting knows and what it doesn't.\",\r\n\t\"While attuned to the painting, you can take an action to telepathically contact it over any distance, provided the painting and you are on the same plane of existence. The painting can't telepathically contact you, however. Maintaining telepathic contact with the painting requires your concentration (as if concentrating on a spell).\",\r\n\t\">>Guardian Portrait<<. While you are attuned to the painting, you can command it to guard its location against one or more creatures you identify as the painting's enemies. The painting performs this function until you command it to stop or until your attunement to the painting ends.\",\r\n\t\"The painting has 3 charges. When a creature the painting identifies as its enemy starts its turn in a space the painting can see, the painting expends 1 of its charges to cast magic missile (3 missiles), targeting that creature. The painting regains all expended charges daily at dawn.\",\r\n\t\"The painting is a Small object with AC 12, 20 hit points, and immunity to poison damage. In its gold-leaf frame, the painting weighs 15 pounds. If the painting has at least 1 hit point and is targeted by a mending spell, it regains 2d6 hit points.\"\r\n];\r\nMagicItemsList[\"constantori's portrait\"] = {\r\n\tname : \"Constantori's Portrait\",\r\n\tsource : [[\"KftGV\", 101]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"very rare\",\r\n\tattunement : true,\r\n\tdescription : \"As an action, I can telepathically contact this sentient painting over any distance while on the same plane. It can't contact me. Maintaining contact requires concentration like on a spell. I can command the painting to guard an area. It can cast Magic Missile 3 times per dawn. See Notes page.\",\r\n\tdescriptionFull : KftGV_ConstantoriPortrait.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(KftGV_ConstantoriPortrait).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(contact) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}],\r\n\taction : [[\"action\", \" (contact)\"]],\r\n\tusages : 3,\r\n\trecovery : \"dawn\",\r\n\tspellFirstColTitle : \"Ch\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"magic missile\"],\r\n\t\tselection : [\"magic missile\"],\r\n\t\tfirstCol : 1\r\n\t}]\r\n};\r\n\r\nMagicItemsList[\"shard of xeluan\"] = {\r\n\tname : \"Shard of Xeluan\",\r\n\tsource : [[\"KftGV\", 134]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tattunement : true,\r\n\tdescription : \"While holding this 1-ft long obsidian shard, I can use it as a spellcasting focus, and I gain a +1 bonus to my spell attack rolls. While it is on my person, I gain +4 Strength up to 22. Attuning to this shard extends its curse to me: When I roll a 1 on a check, attack, or save, I must roll on its misfortunes table, see Notes.\",\r\n\tdescriptionFull : \"This 1-foot-long shard of obsidian has veins of silver and gold beneath its cold surface.\"+\r\n\t\"\\n   \" + toUni(\"Empowered Magic\") + \". While holding the shard, you can use it as a spellcasting focus, and it gives you a +1 bonus to your spell attack rolls.\"+\r\n\t\"\\n   \" + toUni(\"Enhanced Strength\") + \". Your Strength score increases by 4 while the shard is on your person. The shard can't raise your Strength score above 22.\"+\r\n\t\"\\n   \" + toUni(\"Curse\") + \". Attuning to this item extends its curse to you. You remain cursed until you are targeted by a remove curse spell or similar magic, or until the shard is reattached to Xeluan's petrified heart.\"+\r\n\t\"\\n   The shard's curse causes misfortune to befall you. When you roll a 1 on an attack roll, an ability check, or a saving throw, roll on the Shard Misfortunes table to determine the misfortune. For as long as this misfortune lasts, no other shard misfortunes befall you.\"+\r\n\t\"\\n\\n \" + toUni(\"d6\\tMisfortune\")+\r\n\t\"\\n  1\\tYou accidentally cut yourself with the shard and are poisoned until the next dawn.\"+\r\n\t\"\\n  2\\tYou experience a vision of an ancient calamity\\u2014a beautiful city threatened by crumbling mountains and erupting volcanoes\\u2014and are stunned until the end of your next turn.\"+\r\n\t\"\\n  3\\tFor a few seconds, the ground shakes under you. You and each creature within 10 feet of you must succeed on a DC 16 Dexterity saving throw or be knocked prone.\"+\r\n\t\"\\n  4\\tThe shard releases three glowing darts of magical force that target one random creature within 30 feet of you. If no such target exists, you become the target. Each dart hits automatically and deals 3 (1d4 + 1) force damage to the target.\"+\r\n\t\"\\n  5\\tUntil the next dawn, Beasts with an Intelligence score of 3 or lower are hostile to you.\"+\r\n\t\"\\n  6\\tNothing seems to go your way. Until the next dawn, you have disadvantage on ability checks.\",\r\n\tcalcChanges : {\r\n\t\tspellCalc : [\r\n\t\t\tfunction (type, spellcasters, ability) {\r\n\t\t\t\tif (type == \"attack\") return 1;\r\n\t\t\t},\r\n\t\t\t\"I gain a +1 bonus to spell attack rolls.\"\r\n\t\t]\r\n\t},\r\n\tscores : [4, 0, 0, 0, 0, 0],\r\n\tscoresMaximum : [22, 0, 0, 0, 0, 0],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Shard Misfortunes Table\",\r\n\t\tnote : [\r\n\t\t\t\"Attuning to this item extends its curse to me. I remain cursed until I'm targeted by a remove curse spell or similar magic, or until the shard is reattached to Xeluan's petrified heart.\",\r\n\t\t\t\"The shard's curse causes misfortune to befall me. When I roll a 1 on an attack roll, an ability check, or a saving throw, roll on the Shard Misfortunes table to determine the misfortune. For as long as this misfortune lasts, no other shard misfortunes befall me.\",\r\n\t\t\t\"\\n  d6\\tMisfortune\",\r\n\t\t\t\"1\\tI accidentally cut myself with the shard and are poisoned until the next dawn.\"+\r\n\t\t\t\"2\\tI experience a vision of an ancient calamity: a beautiful city threatened by crumbling mountains and erupting volcanoes. I am stunned until the end of my next turn.\"+\r\n\t\t\t\"3\\tFor a few seconds, the ground shakes under me. Each creature within 10 ft of me, myself included, must succeed on a DC 16 Dexterity saving throw or be knocked prone.\"+\r\n\t\t\t\"4\\tThe shard releases three glowing darts of magical force that target one random creature within 30 ft of me. If no such target exists, I become the target. Each dart hits automatically and deals 1d4+1 force damage to the target.\"+\r\n\t\t\t\"5\\tUntil the next dawn, Beasts with an Intelligence score of 3 or lower are hostile to me.\"+\r\n\t\t\t\"6\\tNothing seems to go my way. Until the next dawn, I have disadvantage on ability checks.\"\r\n\t\t]\r\n\t}]\r\n};\r\n\r\nvar KftGV_ShardSolitaire = {\r\n\tdescriptionFull : \"This gemstone contains an unstable extradimensional rift. Its facets are ribboned with iridescent veins that seem to move of their own accord. Five types of shard solitaire are known to exist, each one a different type of gemstone: black sapphire, diamond, jacinth, rainbow pearl, and ruby.\"+\r\n\t\"\\n   \" + toUni(\"Rift Step\") + \". As a bonus action, while wearing or holding the shard solitaire, you can teleport yourself, along with anything you're wearing or carrying, to an unoccupied space you can see within 30 feet of yourself.\"+\r\n\t\"\\n   When you use this property, you can tap into the unstable power of the stone's extradimensional rift to increase the teleport distance by up to 30 feet, but if you teleport more than 30 feet using Rift Step, you must succeed on a DC 16 Constitution saving throw or take 3d10 force damage immediately after you teleport.\"+\r\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". The stone has 6 charges and regains 1d6 expended charges daily at dawn. \",\r\n\tdescriptionTable : \"The Shard Solitaire Types table lists the spells common to all shard solitaires, as well as the spells specific to each kind of stone. As an action, you can cast one of the stone's spells by expending the requisite number of charges, requiring no material components (save DC 16).\"+\r\n\t\"\\n\\n \" + toUni(\"Shard Solitaire\\tSpells\")+\r\n\t\"\\n  All\\t\\tBanishment (3 charges; the target is banished to the stone's extradimensional space\"+\r\n\t\"\\n\\t\\tfor the spell's duration), Mirror Image (1 charge)\"+\r\n\t\"\\n  Black sapphire\\tBlight (3 charges), Finger of Death (6 charges)\"+\r\n\t\"\\n  Diamond\\tIce Storm (3 charges), Simulacrum (6 charges; the duplicate created by the spell\"+\r\n\t\"\\n\\t\\thas the same number of hit points as the creature it imitates)\"+\r\n\t\"\\n  Jacinth\\t\\tFireball (2 charges), Fire Storm (6 charges)\"+\r\n\t\"\\n  Rainbow pearl\\tPrismatic Spray (6 charges), Water Breathing (2 charges)\"+\r\n\t\"\\n  Ruby\\t\\tFly (2 charges), Teleport (6 charges)\",\r\n\tspellcastingBonus : [{\r\n\t\tfixedDC : 16,\r\n\t\tname : \"1 charge\",\r\n\t\tspells : [\"mirror image\"],\r\n\t\tselection : [\"mirror image\"],\r\n\t\tfirstCol : 1\r\n\t}, {\r\n\t\tname : \"3 charges\",\r\n\t\tspells : [\"banishment\"],\r\n\t\tselection : [\"banishment\"],\r\n\t\tfirstCol : 3\r\n\t}],\r\n\tspellChanges_banishment : {\r\n\t\tdescription : \"1 crea save or banished to the stone's extradimensional space for the spell's duration\",\r\n\t\tchanges : \"The target is instead banished to the stone's extradimensional space for the spell's duration.\"\r\n\t}\r\n};\r\nMagicItemsList[\"shard solitaire\"] = {\r\n\tname : \"Shard Solitaire\",\r\n\tsource : [[\"KftGV\", 193]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"legendary\",\r\n\tattunement : true,\r\n\tdescription : \"As a bonus action while wearing or holding this gemstone, I can teleport up to 60 ft to an empty space I can see. If I teleport over 30 ft, I need to make a DC 16 Con save or take 3d10 force damage. It has 6 charges, regaining 1d6 at dawn. I can use these charges to cast several spells as an action, see the spell sheet.\",\r\n\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull.replace(\": black sapphire, diamond, jacinth, rainbow pearl, and ruby.\", \", as shown in the Shard Solitaire Types table.\") + KftGV_ShardSolitaire.descriptionTable,\r\n\tallowDuplicates : true,\r\n\tusages : 6,\r\n\trecovery : \"dawn\",\r\n\tadditional : \"regains 1d6\",\r\n\tchoices : [\"Black Sapphire\", \"Diamond\", \"Jacinth\", \"Rainbow Pearl\", \"Ruby\"],\r\n\t\"black sapphire\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The black sapphire shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Blight (3 charges), Finger of Death (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Black Sapphire (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"3 charges\",\r\n\t\t\tspells : [\"blight\"],\r\n\t\t\tselection : [\"blight\"],\r\n\t\t\tfirstCol : 3\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"finger of death\"],\r\n\t\t\tselection : [\"finger of death\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"diamond\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The diamond shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Ice Storm (3 charges), Simulacrum (6 charges; the duplicate created by the spell has the same number of hit points as the creature it imitates).\",\r\n\t\taction : [[\"bonus action\", \"Diamond (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"3 charges\",\r\n\t\t\tspells : [\"ice storm\"],\r\n\t\t\tselection : [\"ice storm\"],\r\n\t\t\tfirstCol : 3\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"simulacrum\"],\r\n\t\t\tselection : [\"simulacrum\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment,\r\n\t\t\t\"simulacrum\" : {\r\n\t\t\t\ttime : \"1 a\",\r\n\t\t\t\tdescription : \"Create illusory duplicate of humanoid/beast; follows my verbal commands; has full HP, not half; See B\",\r\n\t\t\t\tchanges : \"Cast as 1 action and the duplicate created by the spell has the same number of hit points as the creature it imitates.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"jacinth\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The jacinth shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Fireball (2 charges), Fire Storm (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Jacinth (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"fireball\"],\r\n\t\t\tselection : [\"fireball\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"fire storm\"],\r\n\t\t\tselection : [\"fire storm\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"rainbow pearl\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The rainbow pearl shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Prismatic Spray (6 charges), Water Breathing (2 charges).\",\r\n\t\taction : [[\"bonus action\", \"Rainbow Pearl (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"prismatic spray\"],\r\n\t\t\tselection : [\"prismatic spray\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}, {\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"water breathing\"],\r\n\t\t\tselection : [\"water breathing\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t},\r\n\t\"ruby\" : {\r\n\t\tdescriptionFull : KftGV_ShardSolitaire.descriptionFull + \"The ruby shard solitaire can be used to cast the following spells: Banishment (3 charges; the target is banished to the stone's extradimensional space for the spell's duration), Mirror Image (1 charge), Fly (2 charges), Teleport (6 charges).\",\r\n\t\taction : [[\"bonus action\", \"Ruby (Shard Step)\"]],\r\n\t\tspellFirstColTitle : \"Ch\",\r\n\t\tspellcastingBonus : KftGV_ShardSolitaire.spellcastingBonus.concat([{\r\n\t\t\tname : \"2 charges\",\r\n\t\t\tspells : [\"fly\"],\r\n\t\t\tselection : [\"fly\"],\r\n\t\t\tfirstCol : 2\r\n\t\t}, {\r\n\t\t\tname : \"6 charges\",\r\n\t\t\tspells : [\"teleport\"],\r\n\t\t\tselection : [\"teleport\"],\r\n\t\t\tfirstCol : 6\r\n\t\t}]),\r\n\t\tspellChanges : {\r\n\t\t\t\"banishment\" : KftGV_ShardSolitaire.spellChanges_banishment\r\n\t\t}\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/pub_20230815_GotG.js",
    "content": "var iFileName = \"pub_20230815_GotG.js\";\nRequiredSheetVersion(\"14.0.5-beta\");\n// This file adds the player-material from Bigby Presents: Glory of the Giants to MPMB's Character Record Sheet\n\nSourceList[\"GotG\"] = {\n\tname : \"Bigby Presents: Glory of the Giants\",\n\tabbreviation : \"GotG\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://www.dndbeyond.com/marketplace/sourcebooks/bigby-presents-glory-of-the-giants\",\n\tdate : \"2023/08/15\"\n};\n\nAddSubClass(\"barbarian\", \"giant\", {\n\tregExpSearch : /^((?=.*(marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n))|((?=.*(warrior|fighter))(?=.*(feral|tribal))))(?=.*giant).*$/i,\n\tsubname : \"Path of the Giant\",\n\tsubnameShort: \"Giant\",\n\tsource : [[\"GotG\", 11]],\n\tabilitySave : 1,\n\tspellcastingAbility : 5,\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Giant Power\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc(\"I learn Giant, and the Druidcraft or Thaumaturgy cantrip with Wis as spellcasting ability\"),\n\t\t\tlanguageProfs : [\"Giant\"],\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Giant Power\",\n\t\t\t\tspells : [\"druidcraft\", \"thaumaturgy\"],\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Giant's Havoc\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn desc([\n\t\t\t\t\t\"While raging, I add the bonus damage to ranged thrown weapon attacks that use Str,\",\n\t\t\t\t\t\"I gain +\" + (n < 14 ? 5 : 10) + \" ft reach, and I can become \" + (n < 14 ? 'Large' : 'Huge') + \" along with what I'm wearing, if there is room\"\n\t\t\t\t]);\n\t\t\t})\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Elemental Cleaver\",\n\t\t\tsource : [[\"GotG\", 11]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn desc([\n\t\t\t\t\t\"When I rage, I can infuse a weapon I'm holding with acid, cold, fire, thunder, or lightning\",\n\t\t\t\t\t\"While raging, its damage type changes to the chosen type and it deals +\" + (n < 14 ? 1 : 2) + \"d6 damage,\",\n\t\t\t\t\t\"it gains the thrown (20/60 ft) property, and reappears instantly after a thrown attack\",\n\t\t\t\t\t\"As a bonus action, I can change the chosen type; The bonuses only function for me\"\n\t\t\t\t]);\n\t\t\t}),\n\t\t\taction : [[\"bonus action\", \" (change type)\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif ((v.isMeleeWeapon || v.isRangedWeapon) && classes.known.barbarian && classes.known.barbarian.level && /^(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Damage_Type = \"Varies\";\n\t\t\t\t\t\t\tvar isThrownWeapon = /\\bthrown\\b/i.test(v.WeaponText);\n\t\t\t\t\t\t\tvar extraDmg = classes.known.barbarian.level < 14 ? '+1d6 damage' : '+2d6 damage';\n\t\t\t\t\t\t\tvar extraProp = v.isRangedWeapon && !isThrownWeapon ? 'Thrown (20/60 ft), returning; ' : isThrownWeapon ? 'Returning; ' : 'Thrown, returning; ';\n\t\t\t\t\t\t\tvar hasRange = /\\d+ ?(f.{0,2}t|m)/i.test(fields.Range);\n\t\t\t\t\t\t\tif (!hasRange) {\n\t\t\t\t\t\t\t\tfields.Range += ', 20/60 ft';\n\t\t\t\t\t\t\t} else if ((!v.isRangedWeapon || isThrownWeapon) && hasRange) {\n\t\t\t\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\n\t\t\t\t\t\t\t\tif (rangeNmbr.length === 1) {\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[0].replace(',', '.'));\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = fields.Range.replace(longRange,\"long_range\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvar shortRange = Number(rangeNmbr[0].replace(',', '.'));\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[1].replace(',', '.'));\n\t\t\t\t\t\t\t\t\ttempRange = fields.Range;\n\t\t\t\t\t\t\t\t\tif (shortRange < 20) tempRange = tempRange.replace(shortRange,\"short_range\");\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = tempRange.replace(longRange,\"long_range\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfields.Range = tempRange.replace(\"short_range\", 20).replace(\"long_range\", 60);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + extraProp + extraDmg;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the words 'Elemental Cleaver' in a weapon's name, the Elemental Cleaver infused weapon properties will be added to it and its damage type will be set to 'Varies'. Also, my Rage's bonus damage will be added to it if it is a melee weapon that uses Strength.\"\n\t\t\t\t],\n\t\t\t\tatkCalc : [\n\t\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && fields.Mod === 1 && classes.known.barbarian && classes.known.barbarian.level && /^(?!.*\\brage\\b)(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.barbarian.level < 9 ? 2 : classes.known.barbarian.level < 16 ? 3 : 4;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Mighty Impel\",\n\t\t\tsource : [[\"GotG\", 12]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\treturn \" [DC 8 + Prof Bonus + Str mod]\" + desc([\n\t\t\t\t\t\"As a bonus action while raging, I can hurl a \" + (n < 14 ? 'Medium' : 'Large') + \" or smaller creature within my reach\",\n\t\t\t\t\t\"I move it to an empty space I can see within 30 ft; Unwilling can save to avoid this\",\n\t\t\t\t\t\"If it doesn't end this movement on a surface that can support it, it falls and lands prone\"\n\t\t\t\t]);\n\t\t\t}),\n\t\t\taction : [[\"bonus action\", \" (in rage)\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Demiurgic Colossus\",\n\t\t\tsource : [[\"GotG\", 12]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"While raging, my reach increases by 10 ft, and my size can increase to Huge\",\n\t\t\t\t\"Mighty Impel works on Large creatures; Elemental Cleaver increases to +2d6 damage\",\n\t\t\t])\n\t\t}\n\t}\n});\n\nBackgroundList[\"giant foundling\"] = {\n\tregExpSearch : /^(?=.*giant)(?=.*foundling).*$/i,\n\tname : \"Giant Foundling\",\n\tsource : [[\"GotG\", 12]],\n\tskills : [\"Intimidation\", \"Survival\"],\n\tgold : 10,\n\tlanguageProfs : [\"Giant\", 1],\n\tequipleft : [\n\t\t[\"Backpack\", \"\", 5],\n\t\t[\"Small stone/sprig from home\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Strike of the Giants\",\n\ttrait : [\n\t\t\"What I lack in stature compared to giants, I make up for with sheer spite.\",\n\t\t\"I insist on being taken seriously as a full-grown adult. Nobody talks down to me!\",\n\t\t\"Crowded spaces make me uncomfortable. I'd much rather be in an open field than a bustling tavern.\",\n\t\t\"I embrace my shorter stature. It helps me stay unnoticed\\u2014and underestimated.\",\n\t\t\"Every avalanche begins as a single pebble.\",\n\t\t\"The world always feels too big, and I'm afraid I'll never find my place in it.\"\n\t],\n\textra : [\n\t\t\"Choose an Origin Story\",\n\t\t\"Found as a baby\",\n\t\t\"Rescued by stone giants\",\n\t\t\"Lost in the jungle with frost giant\",\n\t\t\"Family killed in war of giants\",\n\t\t\"Studied with storm giant oracle\",\n\t\t\"Adopted by cloud giant\"\n\t]\n};\nBackgroundFeatureList[\"strike of the giants\"] = {\n\tdescription : \"I grew up among giants or where they lived. Something about this environment\\u2014the food, water, elemental magic, or some blessing\\u2014caused me to grow to a remarkable size for my kind. I'm used to moving through a world much bigger than I, and that is reflected in my skills, attitude, and perspective on life. I gain the Strike of the Giants feat.\",\n\tsource : [[\"GotG\", 13], [\"UA:WotM\", 4]],\n\tfeatsAdd: [\"Strike of the Giants\"],\n};\n\nBackgroundList[\"rune carver\"] = {\n\tregExpSearch : /^(?=.*rune)(?=.*carver).*$/i,\n\tname : \"Rune Carver\",\n\tsource : [[\"GotG\", 14]],\n\tskills : [\"History\", \"Perception\"],\n\tgold : 10,\n\ttoolProfs : [[\"Artisan's tools\", 1]],\n\tlanguageProfs : [\"Giant\"],\n\tequipleft : [\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\n\t\t[\"Small knife\", \"\", 0.5],\n\t\t[\"Whetstone\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Common clothes\", \"\", 3],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Rune Shaper\",\n\ttrait : [\n\t\t\"Is it practical to learn an ancient language that is rarely spoken? No. But is it fun? Very.\",\n\t\t\"I learned one of my ancestors was a lauded rune carver whose story was lost to time. I seek to rekindle that legacy.\",\n\t\t\"The old, traditional markings of runecraft look so boring. Why not give my runes some flair?\",\n\t\t\"In my studies of runes, I strive to understand how great civilizations of the past fell, so I can prevent it from happening to societies of the present.\",\n\t\t\"Life may be a whirlwind of chaos, but whenever I create my runes, I feel at peace.\",\n\t\t\"My brain struggles to process words written in ink, but the feeling of carved runes makes my mind sing.\"\n\t],\n\textra : [\n\t\t\"Choose a Rune Style\",\n\t\t\"Needle in wax/clay\",\n\t\t\"Whittle wooden figurines\",\n\t\t\"Engraved glass beads\",\n\t\t\"Stitched into hems of clothing\",\n\t\t\"Carved animal bones\",\n\t\t\"Drawn into candles\"\n\t]\n};\nBackgroundFeatureList[\"rune shaper\"] = {\n\tdescription : \"I've dedicated my life to studying runecraft, taught by a master rune carver or learned by poring over ancient engravings. I can tap into the supernatural power held within runes. The art of runecraft has been adopted by many outside of giant society and those often incorporate their native language among the Giant runes. I gain the Rune Shaper feat.\",\n\tsource : [[\"GotG\", 14]],\n\tfeatsAdd: [\"Rune Shaper\"],\n};\n\n// Feats - first the Strike of the Giants tree\nFeatsList[\"strike of the giants\"] = {\n\tname : \"Strike of the Giants\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"Martial weapon proficiency or Giant Foundling background\",\n\tprereqeval : function (v) {\n\t\treturn v.martialWeaponsProf || CurrentBackground.known.indexOf('giant foundling') !== -1 || /strike of the giants/i.test(What(\"Background Feature\"));\n\t},\n\tdescriptionFull : \"You have absorbed primeval magic that gives you an echo of the might of giants. When you take this feat, choose one of the benefits listed below. Once per turn, when you hit a target with a melee weapon attack or a ranged weapon attack using a thrown weapon, you can imbue the attack with an additional effect depending on the benefit you chose:\"+\n\t\"\\n   \" + toUni(\"Cloud Strike\") + \". The target takes an extra 1d4 thunder damage. If the target is a creature, it must succeed on a Wisdom saving throw, or you become invisible to it until the start of your next turn or until immediately after you make an attack roll or cast a spell.\"+\n\t\"\\n   \" + toUni(\"Fire Strike\") + \". The target takes an extra 1d10 fire damage.\"+\n\t\"\\n   \" + toUni(\"Frost Strike\") + \". The target takes an extra 1d6 cold damage. If the target is a creature, it must succeed on a Constitution saving throw, or its speed is reduced to 0 until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Hill Strike\") + \". The target takes an extra 1d6 damage of the weapon's type. If the target is a creature, it must succeed on a Strength saving throw or have the prone condition.\"+\n\t\"\\n   \" + toUni(\"Stone Strike\") + \". The target takes an extra 1d6 force damage. If the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet from you in a straight line.\"+\n\t\"\\n   \" + toUni(\"Storm Strike\") + \". The target takes an extra 1d6 lightning damage. If the target is a creature, it must succeed on a Constitution saving throw, or it has disadvantage on attack rolls until the start of your next turn.\"+\n\t\"\\n   The saving throw DC for these effects equals 8 + your proficiency bonus + your Strength or Constitution modifier.\"+\n\t\"\\n   You can use this feat a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\tchoices : [\"Cloud Strike\", \"Fire Strike\", \"Frost Strike\", \"Hill Strike\", \"Stone Strike\", \"Storm Strike\"],\n\t\"cloud strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d4 thunder damage. It must then make a Wis save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or I become invisible to it until my next turn starts, I make an attack, or I cast a spell. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"fire strike\" : {\n\t\tdescription : \"I have absorbed primeval magic that gives me an echo of the might of giants. Once per turn when I hit with a melee weapon attack or thrown weapon, the target takes +1d10 fire damage. I can do this a number of times per long rest equal to my proficiency bonus.\"\n\t},\n\t\"frost strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 cold damage. It must then make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or its speed is reduced to 0 until my next turn starts. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"hill strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 damage. It must then make a Str save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or be knocked prone. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"stone strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 force damage. It must then make a Wis save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or be pushed 10 ft away from me in a straight line. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t},\n\t\"storm strike\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Math.max( Number(What('Str Mod')), Number(What('Con Mod')) ); event.value = 'Once per turn, when I hit with a melee weapon attack or thrown weapon, the target takes +1d6 lightning damage. It must then make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof Bonus + Str/Con mod) or it gets disadvantage on attack rolls until my next turn starts. I can do this ' + iProfB + ' (Prof Bonus) times per long rest.';\"\n\t}\n}\nFeatsList[\"ember of the fire giant\"] = {\n\tname : \"Ember of the Fire Giant\",\n\tsource : [[\"GotG\", 17]],\n\tprerequisite : \"4th level, Strike of the Giants (Fire Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'fire strike';\n\t},\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\n\t\"\\n\" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace a single attack with a magical burst of flame. Each creature of your choice in a 15-foot-radius sphere centered on you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, a creature takes fire damage equal to 1d8 + your proficiency bonus, and it has the blinded condition until the start of your next turn. On a successful save, the creature takes half as much damage only. You can use your Searing Ignition a number of times equal to your proficiency bonus (but no more than once per turn), and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I get fire resistance. Prof B. per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8 + Prof B. fire damage, blind until my next turn starts. Dex save DC 8 + Prof B. + Str/Con/Wis mod half damage, not blind. [+1 Str/Con/Wis]\",\n\textraLimitedFeatures : [{\n\t\tname : \"Searing Ignition\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Fire\"],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Str mod) halves damage, not blinded. [+1 Str]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 1,\n\t\t\ttype : 'AlwaysProf',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Con mod) halves damage, not blinded. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 3,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I get fire resistance. ' + iProfB + '\\xD7 (Prof) per long rest, when I use the Attack action on my turn, I can replace one attack with Searing Ignition: Chosen targets in 15-ft radius sphere on me take 1d8+' + iProfB + ' (Prof B.) fire damage, blinded until my next turn starts. Dex save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Wis mod) halves damage, not blinded. [+1 Wis]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\n\t\t\tname : \"Searing Ignition\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 5,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'fire'],\n\t\t\trange : \"15-ft radius\",\n\t\t\tdescription : \"Affects only chosen targets; Dex save halves, otherwise blinded until my next turn starts\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"fury of the frost giant\"] = {\n\tname : \"Fury of the Frost Giant\",\n\tsource : [[\"GotG\", 17]],\n\tprerequisite : \"4th level, Strike of the Giants (Frost Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'frost strike';\n\t},\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\n\t\"\\n\" + toUni(\"Frigid Retaliation\") + \". Immediately after a creature you can see within 30 feet of you hits you with an attack roll and deals damage, you can use your reaction to retaliate with a conjured blast of ice. The creature must make a Constitution saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, the creature takes cold damage equal to 1d8 + your proficiency bonus, and its speed is reduced to 0 until the end of its next turn. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I gain cold resistance. As a reaction when a creature I see within 30 ft damages me with an attack, I can, Prof B. times per long rest, use Frigid Retaliation: it must make a Con save DC 8 + Prof B. + Str/Con/Wis mod or take 1d8 + Prof B. cold damage and have speed 0 until its next turn ends. [+1 Str/Con/Wis]\",\n\taction : [[\"reaction\", \"Frigid Retaliation\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Frigid Retaliation\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Cold\"],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Str mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Str]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 1,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Con mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 3,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I gain cold resistance. As a reaction when a creature I see within 30 ft hits me with an attack roll and deals damage, I can, ' + iProfB + ' times (Prof B.) per long rest, use Frigid Retaliation: it must make a Con save DC ' + (8 + iProfB + iMod) + ' (8 + Prof B. + Wis mod) or take 1d8+' + iProfB + ' (Prof B.) cold damage and have speed 0 until its next turn ends. [+1 Wis]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*frigid)(?=.*retaliation).*$/i,\n\t\t\tname : \"Frigid Retaliation\",\n\t\t\tsource : [[\"GotG\", 17]],\n\t\t\tability : 5,\n\t\t\ttype : 'Magical',\n\t\t\tdamage : [1, 8, 'cold'],\n\t\t\trange : \"30 ft\",\n\t\t\tdescription : \"Reaction; Con save - success: no damage, fail: also 0 speed until target's next turn ends\",\n\t\t\tabilitytodamage : false,\n\t\t\tdc : true,\n\t\t\tisNotWeapon : true,\n\t\t\tmodifiers : [\"\", \"Prof\"],\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"guile of the cloud giant\"] = {\n\tname : \"Guile of the Cloud Giant\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"4th level, Strike of the Giants (Cloud Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'cloud strike';\n\t},\n\tdescriptionFull : \"You've manifested the confounding magic emblematic of cloud giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Charisma by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Cloudy Escape\") + \". When a creature you can see hits you with an attack roll, you can use your reaction to give yourself resistance to that attack's damage. You then teleport to an unoccupied space that you can see within 30 feet of yourself. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can give myself resistance to that attack's damage. I then teleport to an unoccupied space that I can see within 30 ft. I can do this reaction my proficiency bonus times per long rest.\",\n\taction : [[\"reaction\", \"Cloudy Escape\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Cloudy Escape\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Charisma\"],\n\t\"strength\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Strength]\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Constitution]\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"As a reaction when a creature I see within 30 ft hits me with an attack roll, I can use Cloudy Escape: I give myself resistance to that attack's damage and then I teleport to an unoccupied space that I can see within 30 ft. I can do this Proficiency Bonus per long rest. [+1 Charisma]\",\n\t\tscores : [0,0,0,0,0,1]\n\t}\n};\nFeatsList[\"keenness of the stone giant\"] = {\n\tname : \"Keenness of the Stone Giant\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"4th level, Strike of the Giants (Stone Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'stone strike';\n\t},\n\tdescriptionFull : \"You've manifested the physical talents emblematic of stone giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Cavernous Sight\") + \". You gain darkvision with a range of 60 feet. If you already have darkvision from another source, its range increases by 60 feet.\"+\n\t\"\\n\" + toUni(\"Stone Throw\") + \". As a bonus action, you can take a rock and make a magical attack with it. The attack is a ranged spell attack with a range of 60 feet that uses the ability score you increased with this feat as the spellcasting ability. On a hit, the rock deals 1d10 force damage, and the target must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + the spellcasting ability modifier) or have the prone condition. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I gain +60 ft Darkvision. As a bonus action, Prof Bonus times per long rest, I can make a magical Stone Throw attack. It is a spell attack with 60 ft range that deals 1d10 force damage and the target hit must make a Str save or be knocked prone. This uses the ability increased as spellcasting ability. [+1 Str/Con/Wis]\",\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\taction : [[\"bonus action\", \"Stone Throw\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Stone Throw\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Strength as spellcasting ability. [+1 Strength]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 1,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Constitution as spellcasting ability. [+1 Con]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 3,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Wis Mod')); event.value = 'I gain +60 ft Darkvision. As a bonus action, ' + iProfB + ' (Prof Bonus) times per long rest, I can make a magical Stone Throw attack: a spell attack (+' + (iProfB + iMod) + ') with 60 ft range that deals 1d10 force damage and the target hit must make a Strength save (DC ' + (8 + iProfB + iMod) + ') or be knocked prone. This uses Wisdom as spellcasting ability. [+1 Wisdom]';\",\n\t\tweaponOptions : [{\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*throw).*$/i,\n\t\t\tname : \"Stone Throw\",\n\t\t\tsource : [[\"GotG\", 18]],\n\t\t\tability : 5,\n\t\t\ttype : 'Spell',\n\t\t\tdamage : [1, 10, 'force'],\n\t\t\trange : \"60 ft\",\n\t\t\tdescription : \"Bonus action; Target Strength save (DC 8 + To Hit) or be knocked prone\",\n\t\t\tabilitytodamage : false,\n\t\t\tselectNow : true\n\t\t}],\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\nFeatsList[\"soul of the storm giant\"] = {\n\tname : \"Soul of the Storm Giant\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"4th level, Strike of the Giants (Storm Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'storm strike';\n\t},\n\tdescriptionFull : \"You've manifested the tempest magic emblematic of storm giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Charisma by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself with an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts until the start of your next turn or until you are incapacitated. While the aura is active, you have resistance to lightning and thunder damage. In addition, attack rolls against you have disadvantage, and whenever another creature starts its turn within the aura, you can force the creature to make a Strength saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, the creature's speed is halved until the start of its next turn. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"As a bonus action, Prof B. per long rest, I can make a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning/thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to a Str save DC 8 + Prof + Str/Con/Cha mod or halve their speed until their next turn starts. [+1 Str/Con/Cha]\",\n\taction : [[\"bonus action\", \"Maelstrom Aura\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Maelstrom Aura\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tchoices : [\"Strength\", \"Constitution\", \"Charisma\"],\n\t\"strength\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Str mod) or halve their speed until their next turn starts. [+1 Str]';\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Con Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Con mod) or halve their speed until their next turn starts. [+1 Con]';\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"\",\n\t\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Cha Mod')); event.value = 'As a bonus action, ' + iProfB + '\\xD7 (Prof) per long rest, I can invoke a 10-ft radius Maelstrom Aura until my next turn starts: I get lightning \\u0026 thunder resistance, attacks vs. me have disadv., I can force those starting their turn inside to make a Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Cha mod) or halve their speed until their next turn starts. [+1 Cha]';\",\n\t\tscores : [0,0,0,0,0,1]\n\t}\n};\nFeatsList[\"vigor of the hill giant\"] = {\n\tname : \"Vigor of the Hill Giant\",\n\tsource : [[\"GotG\", 19]],\n\tprerequisite : \"4th level, Strike of the Giants (Hill Strike) feat\",\n\tprereqeval : function(v) {\n\t\tvar iStrikeGiants = CurrentFeats.known.indexOf(\"strike of the giants\");\n\t\treturn v.characterLevel >= 4 && iStrikeGiants !== -1 && CurrentFeats.choices[iStrikeGiants] === 'hill strike';\n\t},\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\n\t\"\\n\\n\" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom by 1, to a maximum of 20.\"+\n\t\"\\n\\n\" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or give you the prone condition, you can use your reaction to steady yourself. You aren't moved and don't have the prone condition.\"+\n\t\"\\n\" + toUni(\"Iron Stomach\") + \". Whenever you eat food as part of a short rest and spend one or more Hit Dice to regain hit points, you regain additional hit points equal to your Constitution modifier + your proficiency bonus.\",\n\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Constitution modifier + my proficiency bonus. [+1 Strength/Constitution/Wisdom]\",\n\taction : [[\"reaction\", \"Bulwark\"]],\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\n\t\"strength\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 St\" + (typePF ? \"rength\" : \"\") + \"]\",\n\t\tscores : [1,0,0,0,0,0]\n\t},\n\t\"constitution\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 Con\" + (typePF ? \"stitution\" : \"\") + \"]\",\n\t\tscores : [0,0,1,0,0,0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"Bulwark: When I would be moved or knocked prone I can use my reaction to prevent that. Iron Stomach: Whenever I eat food as part of a short rest and spend HD to regain hit points, I regain additional hp equal to my Con\" + (typePF ? \"stitution\" : \"\") + \" modifier + my proficiency bonus. [+1 Wis\" + (typePF ? \"dom\" : \"\") + \"]\",\n\t\tscores : [0,0,0,0,1,0]\n\t}\n};\n// Feats - Rune Shaper\nvar GotG_RuneShaper = [\n\t\"You've studied the magic of Giant runes, granting you the following benefits:\",\n\t\">>Comprehend Languages<<. You learn the comprehend languages spell. You can cast this spell without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using any spell slots you have.\",\n\t\">>Rune Magic<<. You know a number of runes equal to half your proficiency bonus (rounded down), chosen from the Rune Spells table. Whenever you finish a long rest, you can inscribe each rune you know onto one nonmagical weapon, armor, piece of clothing, or other object you touch. You temporarily learn the 1st-level spells that correspond to the runes you inscribed, as specified on the Rune Spells table, and you know those spells until you finish a long rest, when the runes fade. While you are wearing or carrying any rune-marked object, you can cast the spells associated with those runes using any spell slots you have.\",\n\t\"You can also invoke a rune inscribed on an object you are wearing or carrying and cast its associated spell without expending a spell slot or using material components. Once you cast the spell in this way, you can't do so again until you finish a long rest. Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\n\t\"Each time you gain a level, you can replace one of the runes you know with another one from the Rune Spells table below.\\n\",\n\t\">>Rune\\tSpell<<\",\n\t\"Cloud\\tFog Cloud\",\n\t\"Death\\tInflict Wounds\",\n\t\"Dragon\\tChromatic Orb\",\n\t\"Enemy\\tDisguise Self\",\n\t\"Fire\\tBurning Hands\",\n\t\"Friend\\tSpeak with Animals\",\n\t\"Frost\\tArmor of Agathys\",\n\t\"Hill\\tGoodberry\",\n\t\"Journey\\tLongstrider\",\n\t\"King\\tCommand\",\n\t\"Mountain\\tEntangle\",\n\t\"Stone\\tSanctuary\",\n\t\"Storm\\tThunderwave\"\n];\nFeatsList[\"rune shaper\"] = {\n\tname : \"Rune Shaper\",\n\tsource : [[\"GotG\", 18]],\n\tprerequisite : \"Spellcasting feature or Rune Carver background\",\n\tprereqeval : function(v) { return v.isSpellcastingClass || CurrentBackground.known.indexOf('rune carver') !== -1 || /rune shaper/i.test(What(\"Background Feature\")); },\n\tdescriptionFull : GotG_RuneShaper.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\tdescription : \"I know half my Prof Bonus, rounded down, in runes. After a long rest, I can inscribe each rune on a nonmagical objects I touch. It lasts until my next long rest. I can cast Comprehend Languages and each inscribed rune's spell once per long rest without a spell slot or material components, or by using spell slots. See Notes.\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellFirstColTitle : \"PR\",\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Comprehend languages\",\n\t\tspells : [\"comprehend languages\"],\n\t\tselection : [\"comprehend languages\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}, {\n\t\tname : \"Runes\",\n\t\tspells : [\"fog cloud\", \"inflict wounds\", \"chromatic orb\", \"disguise self\", \"burning hands\", \"speak with animals\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"entangle\", \"sanctuary\", \"thunderwave\"],\n\t\tfirstCol : \"oncelr+markedbox\",\n\t\tlinkTimesToHalfProf : true, // custom attribute, for use in calcChanges.spellList\n\t\ttimes : 1 // half proficiency bonus, so always minimum of 1\n\t}],\n\tchangeeval : function() {\n\t\tif (!CurrentSpells['rune shaper']) return;\n\t\t// See if the proficiency bonus changed to trigger the changes dialog\n\t\t// Don't set the times attribute here, but instead on every call to the spell dialog\n\t\tvar halfProf = Math.floor( Number(How('Proficiency Bonus')) / 2 );\n\t\tif (CurrentSpells['rune shaper'].halfProf != halfProf) {\n\t\t\tCurrentSpells['rune shaper'].halfProf = halfProf;\n\t\t\tCurrentUpdates.types.push(\"spells\");\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tspellList : [\n\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t// Change the times attribute to be half proficiency, rounded down\n\t\t\t\t// Do it this way, so it is updated even if a bonus to proficiency was manually applied\n\t\t\t\tif (spName === 'rune shaper' && spType === 'feat-bonus' && spList.name === \"Comprehend languages\") {\n\t\t\t\t\tvar oCast = CurrentSpells['rune shaper'];\n\t\t\t\t\tvar halfProf = Math.floor( Number(How('Proficiency Bonus')) / 2 );\n\t\t\t\t\toCast.halfProf = halfProf;\n\t\t\t\t\tfor (var key in oCast.bonus) {\n\t\t\t\t\t\tvar aBonus = oCast.bonus[key];\n\t\t\t\t\t\tif (!isArray(aBonus)) aBonus = [aBonus];\n\t\t\t\t\t\tfor (var i = 0; i < aBonus.length; i++) {\n\t\t\t\t\t\t\tif (aBonus[i].linkTimesToHalfProf) {\n\t\t\t\t\t\t\t\taBonus[i].times = halfProf;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"\"\n\t\t]\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(GotG_RuneShaper).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/Your/g, \"My\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(contact|granting) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}]\n};\n\nCreatureList[\"spotted lion\"] = {\n\tname : \"Spotted Lion\",\n\tnameAlt : [\"Lion, Spotted\"],\n\tsource : [[\"GotG\", 177]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 15,\n\thp : 66,\n\thd : [7, 12],\n\tspeed : \"60 ft\",\n\tscores : [23, 14, 17, 5, 13, 10],\n\tskills : {\n\t\t\"perception\" : 5,\n\t\t\"stealth\" : 6\n\t},\n\tsenses : \"Darkvision 60 ft\",\n\tpassivePerception : 15,\n\tchallengeRating : \"3\",\n\tproficiencyBonus : 2,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Rend\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"Bonus action on prone target; If used after 20 ft straight move, see Pounce trait\",\n\t\ttooltip : \"If the lion moved at least 20 ft straight toward the target immediately before hitting it, the target must succeed on a DC 16 Strength saving throw or have the prone condition. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Pack Tactics\",\n\t\tdescription : \"The lion has advantage on an attack roll against a creature if at least one of the lion's allies is within 5 feet of the target and the ally doesn't have the incapacitated condition.\"\n\t}, {\n\t\tname : \"Pounce\",\n\t\tdescription : \"If the lion moved at least 20 ft straight toward the target immediately before hitting it, the target must succeed on a DC 16 Strength saving throw or have the prone condition. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t}],\n\twildshapeString : [\n\t\t\"##Senses##. Darkvision 60 ft.\",\n\t\t\"##Pack Tactics##. Advantage on attack rolls if at least one capable ally is within 5 ft of the target.\",\n\t\t\"##Pounce##. If moved 20 ft straight to the target before hitting it, the target must succeed on a DC 16 Strength saving throw or be knocked prone. If the target has the prone condition, the lion can make another Rend attack against it as a bonus action.\"\n\t].join(\"\\n\")\n};\nCreatureList[\"titanothere\"] = {\n\tname : \"Titanothere\",\n\tsource : [[\"GotG\", 185]],\n\tsize : 1,\n\ttype : \"Beast\",\n\talignment : \"Unaligned\",\n\tac : 16,\n\thp : 136,\n\thd : [13, 12],\n\tspeed : \"50 ft\",\n\tscores : [25, 10, 19, 2, 12, 6],\n\tpassivePerception : 11,\n\tchallengeRating : \"5\",\n\tproficiencyBonus : 3,\n\tattacksAction : 1,\n\tattacks : [{\n\t\tname : \"Stomp\",\n\t\tability : 1,\n\t\tdamage : [2, 8, \"piercing\"],\n\t\trange : \"Melee (10 ft)\",\n\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\",\n\t\ttooltip : \"If the titanothere moved at least 20 feet straight toward the target immediately before hitting it, the target takes an extra 13 (3d8) bludgeoning damage, and if the target is a creature, it must succeed on a DC 18 Strength saving throw or be knocked prone.\"\n\t}],\n\ttraits : [{\n\t\tname : \"Beast of Burden\",\n\t\tdescription : \"The titanothere is considered to be one size larger for the purpose of determining its carrying capacity.\"\n\t}, {\n\t\tname : \"Charge\",\n\t\tdescription : \"If the titanothere moved at least 20 feet straight toward the target immediately before hitting it, the target takes an extra 13 (3d8) bludgeoning damage, and if the target is a creature, it must succeed on a DC 18 Strength saving throw or be knocked prone.\"\n\t}]\n};\n\n// Magic Items (excluding Horizon Puzzle Cube, because that's really just a storytelling device)\nMagicItemsList[\"elven thrower\"] = { // spear, but otherwise identical to Dwarven Thrower\n\tname : \"Elven Thrower\",\n\tsource : [[\"GotG\", 64]],\n\ttype : \"weapon (spear)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by an Elf\",\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this magic weapon. When you hit with a ranged attack using this weapon, it deals an extra 1d8 damage or, if the target is a Giant, 2d8 damage. Immediately after the attack, the weapon flies back to your hand.\",\n\tdescription : \"I gain a +3 bonus to attack and damage rolls made with this magic spear. When I hit with a ranged attack using this weapon, it deals an extra 1d8 damage or, if the target is a Giant, 2d8 damage. Immediately after the attack, the weapon flies back to my hand.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"spear\",\n\t\tregExpSearch : /^(?=.*elven)(?=.*thrower).*$/i,\n\t\tname : \"Elven Thrower\",\n\t\tsource : [[\"SRD\", 220], [\"D\", 167]],\n\t\trange : \"Melee, 20/60 ft\",\n\t\tdescription : \"Thrown, versatile (1d8); +1d8 damage when thrown (2d8 vs. giants) and returns immediately\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}]\n};\n\nMagicItemsList[\"armor of safeguarding\"] = {\n\tname : \"Armor of Safeguarding\",\n\tnameTest : \"of Safeguarding\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"armor (heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"Set in the center of this armor's chest is a citrine engraved with the shield rune.\"+\n\t\"\\n   While wearing this armor, your hit point maximum increases by an amount equal to 10 + your level.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the armor's rune to cast the beacon of hope spell with it; the spell has a duration of 1 minute and doesn't require concentration. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"Set in the center of this armor's chest is a citrine engraved with the shield rune. While wearing this armor, my max hp increases by my level + 10. As an action once per dawn, I can invoke its shield rune to cast Beacon of Hope with a duration of 1 minute without requiring concentration.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Beacon of Hope\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy/i.test(inObj.type);\n\t\t}\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"Beacon of Hope\",\n\t\tspells : [\"beacon of hope\"],\n\t\tselection : [\"beacon of hope\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tspellChanges : {\n\t\t\"beacon of hope\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"I can cast Beacon of Hope once per dawn without it requiring concentration.\"\n\t\t}\n\t},\n\tcalcChanges : {\n\t\thp : function (totalHD, HDobj, prefix) {\n\t\t\treturn [10 + (classes.totallevel ? classes.totallevel : 0)];\n\t\t}\n\t}\n};\nMagicItemsList[\"bloodshed blade\"] = {\n\tname : \"Bloodshed Blade\",\n\tnameTest : \"Bloodshed\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"weapon (any sword)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"The hilt of this sword bears a carnelian engraved with the blood rune.\"+\n\t\"\\n   You can add your Constitution modifier (minimum of +1) to the damage rolls of attacks made with this weapon.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you target a creature with an attack using this weapon, you can invoke the sword's rune, causing it to flare with crimson light and infusing your attack with bloodthirsty precision. You then spend and roll one of your unspent Hit Dice and add the number rolled to the attack roll. You can choose to invoke the rune after rolling the d20.\"+\n\t\"\\n   If this attack hits, you can also spend and roll any number of your unspent Hit Dice and add the total rolled to the weapon's damage.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This sword with a carnelian engraved hilt adds my Con mod to damage rolls (min +1). Once per dawn after I roll to hit against a creature with it, I can invoke its blood rune and expend one HD to add to the to hit total. If this attack hits, I can expend any HD I have left and add them to the damage roll.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /\\bbloodshed\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\toutput.extraDmg += Math.max(1, Number(What(\"Con Mod\")));\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Bloodshed\" in a the name of a sword, it will be treated as the magic weapon Bloodshed Blade, which adds my Constitution modifier (minimum of +1) to its damage rolls.'\n\t\t]\n\t}\n};\nMagicItemsList[\"crown of the wrath bringer\"] = {\n\tname : \"Crown of the Wrath Bringer\",\n\tsource : [[\"GotG\", 111]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This jagged iron circlet bears ornaments in the shape of the enemy rune. When worn, the crown glows with pale light as it draws upon the wearer's fury to strike opponents with vicious terror.\"+\n\t\"\\n   When you make an attack roll against a creature and hit it while wearing this crown, you can spend and roll one of your unspent Hit Dice. The creature takes extra psychic damage equal to the number rolled.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the crown's rune to cast the fear spell (save DC 15) with it; the spell has a duration of 1 minute and doesn't require concentration. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"When I hit a creature with an attack roll while wearing this jagged icon circlet, I can spend one HD to have the attack deal that much extra psychic damage. As an action once per dawn, I can invoke its enemy rune to cast Fear (DC 15) with a duration of 1 minute without requiring concentration.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Fear\",\n\tfixedDC : 15,\n\tspellcastingBonus : [{\n\t\tname : \"Fear\",\n\t\tspells : [\"fear\"],\n\t\tselection : [\"fear\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tspellChanges : {\n\t\t\"fear\" : {\n\t\t\tduration : \"1 min\",\n\t\t\tchanges : \"I can cast Fear once per dawn without it requiring concentration.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"delver's claws\"] = {\n\tname : \"Delver's Claws\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"The back of this weatherworn leather glove is adorned with three large metal hooks shaped like a mole's claws. Stitched into the glove's palm is the mountain rune.\"+\n\t\"\\n   The glove is considered a simple melee weapon with the finesse and light properties, and it deals 1d4 slashing damage on a hit. While attuned to the glove, you gain a burrowing speed equal to your walking speed and blindsight to 15 feet.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \"As an action, you can invoke the glove's rune to bolster yourself with the sturdiness of the earth. Spend and roll a number of your unspent Hit Dice up to a maximum equal to your proficiency bonus. You then regain a number of hit points equal to the total roll plus your Constitution modifier.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This weatherworn leather glove is a simple, finesse, light melee weapon, dealing 1d4 slashing damage. While attuned, I gain 15 ft blindsight and a burrow speed equal to my walking speed. As an action once per dawn, I can invoke its mountain rune to spend up to Prof Bonus HD to regain hp (total roll + Con mod).\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*delver)(?=.*claw).*$/i,\n\t\tname : \"Delver's Claws\",\n\t\tsource : [[\"GotG\", 112]],\n\t\tability : 1,\n\t\ttype : \"Simple\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Finesse, light\",\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\tspeed : { burrow : { spd : \"walk\", enc : \"walk\" } },\n\tvision : [[\"Blindsight\", 15]],\n\taction : [[\"action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"glowrune pigment\"] = {\n\tname : \"Glowrune Pigment\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescriptionFull : \"This set of 1d4 + 2 small paint pots contains pigments mixed from crushed luminescent gemstones. This magical paint bestows temporary magical gifts on creatures with runes drawn on their skin with this paint.\"+\n\t\"\\n   One paint pot contains enough pigment to paint one rune. A creature can spend 10 minutes to paint one of the following runes onto itself or another creature:\"+\n\t\"\\n   \" + toUni(\"Journey Rune\") + \". Difficult terrain doesn't cost the painted creature extra movement.\"+\n\t\"\\n   \" + toUni(\"Life Rune\") + \". The painted creature gains 10 temporary hit points and has advantage on death saving throws.\"+\n\t\"\\n   \" + toUni(\"Light Rune\") + \". The painted creature gains darkvision to a range of 30 feet. If the painted creature already has darkvision from another source, the range of its darkvision increases by 30 feet.\"+\n\t\"\\n   \" + toUni(\"Mountain Rune\") + \". The painted creature is immune to being knocked prone and has advantage on Strength and Constitution saving throws.\"+\n\t\"\\n   \" + toUni(\"Shield Rune\") + \". The painted creature has advantage on Dexterity saving throws against effects that deal damage.\"+\n\t\"\\n   A creature can benefit from only one painted rune at a time, so a new rune painted on a creature has no effect unless the old one is removed first. The rune's benefits last for 8 hours or until the painted creature uses its action to wipe away the rune.\",\n\tdescription : \"This set of 1d4+2 paint pots can each be used to draw one rune on a creature in 10 min, which lasts for 8 hours: \\u2022 No penalty from difficult terrain. \\u2022 10 temp hp and adv. on death saves. \\u2022 +30 ft darkvision. \\u2022 Can't be knocked prone and adv. on Str saves and Con saves. \\u2022 Adv. on Dex save vs. damaging effects.\"\n};\nvar GotG_HarpOfGildedPlenty = [\n\t\"This golden harp is sculpted in the image of the god Iallanis, depicted as a young cloud giant woman. When a creature comes within 5 feet of the harp, the instrument animates and is capable of speaking, singing, and playing by itself.\",\n\t\"Whenever you attempt to attune to the harp, you must first make either a DC 15 Charisma (Performance) check or a DC 20 Charisma (Persuasion) check to convince the harp that you are worthy, attuning to the harp on a success. If you fail, you can't attempt to attune to the harp again until the next dawn. Once you have successfully attuned to the harp, the harp resizes to suit you.\",\n\t\">>Stalwart Song<<. Whenever you make a Charisma check while attuned to the harp, you can treat a roll of 9 or lower on the die as a 10.\",\n\t\">>Feast of Plenty<<. If you spend 10 minutes playing the harp, you can cast the heroes' feast spell from it. Once this property is used, it can't be used again until 1d10 + 10 days have passed.\",\n\t\">>Soothing Melody<<. As an action, you can use the harp to cast the calm emotions spell (save DC 19). When the spell is cast using the harp, its duration increases to 1 hour, provided you maintain concentration on the spell. This property can be used five times, and it regains all uses at dawn.\",\n\t\">>Sentience<<. The harp is a sentient, chaotic good object with an Intelligence of 13, a Wisdom of 15, and a Charisma of 20. It has hearing and darkvision to a range of 120 feet.\",\n\t\"The harp can speak, read, and understand Common and Giant. It can also communicate telepathically with the creature attuned to it.\",\n\t\"The harp has a dramatic and pompous personality, taking extreme pride in the quality of music produced from its strings. If the harp is shorter than 6 feet tall, it bemoans its height.\"\n];\nMagicItemsList[\"harp of gilded plenty\"] = {\n\tname : \"Harp of Gilded Plenty\",\n\tsource : [[\"GotG\", 112]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : GotG_HarpOfGildedPlenty.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(GotG_HarpOfGildedPlenty).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/\\bf(oo|ee)t\\b/ig, \"ft\").replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(suit) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tprerequisite : \"To attune to the harp, you must first make either a DC 15 Charisma (Performance) check or a DC 20 Charisma (Persuasion) check to convince the harp that you are worthy. You can retry after the next dawn.\",\n\tprereqeval : function() { return false; }, // so that everyone reads the prerequisite before adding the item\n\tdescription : \"This sentient harp is dramatic and pompous, see notes. I can treat a roll of 9 or lower as a 10 for Charisma checks. I can cast Heroes' Feast by playing it for 10 min, but can't do so again until 1d10+10 days have passed. Five times per dawn, I can use it to cast Calm Emotions (DC 19) with a 1 hour duration.\",\n\textraLimitedFeatures : [{\n\t\tname : \"Harp of Gilded Plenty: Calm Emotions\",\n\t\tusages : 5,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Harp: Heroes' Feast\",\n\t\tusages : 1,\n\t\trecovery : \"Special\",\n\t\tadditional : \"1d10+10 days\"\n\t}],\n\tspellFirstColTitle : \"Ch\",\n\tfixedDC : 19,\n\tspellcastingBonus : [{\n\t\tname : \"5\\xD7 per dawn\",\n\t\tspells : [\"calm emotions\"],\n\t\tselection : [\"calm emotions\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"1\\xD7 per 1d10+10 days\",\n\t\tspells : [\"heroes' feast\"],\n\t\tselection : [\"heroes' feast\"],\n\t\tfirstCol : \"Sp\"\n\t}]\n};\nMagicItemsList[\"lash of immolation\"] = {\n\tname : \"Lash of Immolation\",\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (whip)\",\n\trarity : \"rare\",\n\tdescriptionFull : \"The handle of this dark leather whip bears the fire rune, and embers dance around the whip's tail.\"+\n\t\"\\n   You gain a +1 bonus to attack and damage rolls made with this weapon, and on a hit, the whip deals an extra 1d6 fire damage. When you score a critical hit with an attack using this whip, the target also has the restrained condition until the start of your next turn, as fiery bands lash around the target.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you make an attack with the whip and hit, you can use your reaction to invoke the whip's rune. Doing so increases the extra fire damage dealt by the whip to 2d6.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This +1 dark leather whip ha embers dancing around its tail. It deals +1d6 fire damage. When I score a critical hit with it, the target is restrained until my next turn starts, as fiery bands lash around it. As a reaction once per dawn when I hit with it, I can invoke its fire rune to increase the fire damage to 2d6.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"whip\",\n\t\tregExpSearch : /^(?=.*lash)(?=.*immolation).*$/i,\n\t\tname : \"Lash of Immolation\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdescription : \"Finesse, reach; +1d6 fire damage (1/dawn +2d6); Critical hit: restrained until my next turn starts\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"longbow of the healing hearth\"] = {\n\tname : \"Longbow of the Healing Hearth\",\n\tnameAlt : typePF ? \"\" : \"Healing Hearth\", // shorter for the colourful spell sheet\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (longbow)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"This ivory longbow is inscribed with a prayer to the god Hiatea, the runes of which are entwined with gilded engravings of wheat stalks and deer antlers.\"+\n\t\"\\n   You gain a +3 bonus to attack and damage rolls made with this weapon. If you load no ammunition in the weapon, it produces its own, automatically creating one magic arrow when you pull back the string. The arrow created by the bow vanishes the instant after it hits or misses a target.\"+\n\t\"\\n   The bow has 8 charges for the following properties, which you can use while wielding the bow. The bow regains 1d4 + 1 charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Curative Arrow\") + \". When you take the Attack action using the bow, you can expend 1 charge to replace one of your attacks with a blazing arrow of curative magic, which automatically hits one creature you can see within 150 feet of you. The target can then immediately spend and roll one of its unspent Hit Dice and regain a number of hit points equal to the roll plus your Wisdom modifier (minimum of +1).\"+\n\t\"\\n   If the target has no unspent Hit Dice remaining, nothing happens. You can use a curative arrow only once per turn.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". While holding the bow, you can use an action to expend 1 or more of its charges to cast one of the following spells from it (save DC 18): create food and water (1 charge), warding bond (2 charges), guardian of faith (3 charges).\",\n\tdescription : \"This +3 ivory longbow creates its own ammo if needed and has 8 charges, regaining 1d4+1 at dawn. Instead of one attack in my Attack action, I can use 1 charge to have a target I see in 150 ft use 1 HD to regain hp + my Wis mod. I can use charges to cast (DC 18): Create Food \" + (typePF ? \"\\u0026\" : \"and\") + \" Water, Warding Bond, Guardian of Faith.\",\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longbow\",\n\t\tregExpSearch : /^(?=.*longbow)(?=.*healing)(?=.*hearth).*$/i,\n\t\tname : \"Longbow of the Healing Hearth\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdescription : \"Ammunition, heavy, two-handed; Creates own ammo\",\n\t\tmodifiers : [3, 3],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 8,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tfixedDC : 18,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"create food and water\"],\n\t\tselection : [\"create food and water\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"warding bond\"],\n\t\tselection : [\"warding bond\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"guardian of faith\"],\n\t\tselection : [\"guardian of faith\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"lucent destroyer\"] = {\n\tname : \"Lucent Destroyer\",\n\tsource : [[\"GotG\", 113]],\n\ttype : \"weapon (musket)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This magic weapon is a triple-barreled bronze musket. You gain a +1 bonus to attack and damage rolls made with it. It requires no ammunition, its damage is radiant instead of piercing, and it doesn't have the loading property. The base of the weapon is emblazoned with the light rune.\"+\n\t\"\\n   Additionally, while attuned to the weapon, you can cast dancing lights from the musket at will.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the weapon's rune to cast the sunbeam spell (save DC 17) with it. Once the rune has been invoked, it can't be invoked again until the next dawn.\"+\n\t\"\\n\\nIt's up to the DM to decide whether a character has proficiency with a firearm. Characters in most D\\u0026D worlds wouldn't have such proficiency. During their downtime, characters can use the training rules in the Player's Handbook to acquire proficiency, assuming that they have enough ammunition to keep the weapons working while mastering their use.\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magical musket emblazoned with the light rune. It deals radiant damage and doesn't need to be loaded with ammunition. It allows me to cast Dancing Lights at will and Sunbeam (DC 17) once per dawn by invoking the rune.\",\n\tweight : 10,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"musket\",\n\t\tregExpSearch : /^(?=.*lucent)(?=.*destroyer).*$/i,\n\t\tname : \"Lucent Destroyer\",\n\t\tsource : [[\"GotG\", 113]],\n\t\tdamage : [1, 12, \"radiant\"],\n\t\tdescription : \"Two-handed\",\n\t\tmodifiers : [1, 1],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune: Sunbeam\",\n\tfixedDC : 17,\n\tspellcastingBonus : [{\n\t\tname : \"At will\",\n\t\tspells : [\"dancing lights\"],\n\t\tselection : [\"dancing lights\"],\n\t\tfirstCol : \"atwill\"\n\t}, {\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"sunbeam\"],\n\t\tselection : [\"sunbeam\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"mistral mantle\"] = {\n\tname : \"Mistral Mantle\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This thick, fur-lined cloak has the frost rune stitched on the hem in silvery blue thread. Frigid wind swirls around the cloak, regardless of the weather.\"+\n\t\"\\n   While wearing this cloak, you have resistance to cold damage. Additionally, when you move within 5 feet of a creature, you can cause the cloak's cold wind to buffet the creature. The creature must succeed on a DC 14 Dexterity saving throw or take 1d6 cold damage and have the prone condition. A creature can be affected by the mantle only once during a turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the mantle's rune to cast the sleet storm spell (save DC 14) with it. When you use the mantle to cast the spell, the area of the spell isn't difficult terrain for you, and you can see through the storm, ignoring the normal penalties of a heavily obscured area.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This thick, fur-lined cloak gives me cold resistance. When I move within 5 ft of a creature, I can have it make a DC 14 Dex save once per turn or take 1d6 cold damage and become prone. As an action once per dawn, I can invoke its frost rune to cast Sleet Storm (DC 14), which I can move and see through normally.\",\n\tdmgres : [\"Cold\"],\n\tfixedDC : 14,\n\tspellcastingBonus : [{\n\t\tname : \"Sleet Storm\",\n\t\tspells : [\"sleet storm\"],\n\t\tselection : [\"sleet storm\"],\n\t\tfirstCol : 'oncelr'\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Sleet Storm\"\n};\nMagicItemsList[\"nimbus coronet\"] = {\n\tname : \"Nimbus Coronet\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"The design of this bronze circlet resembles swirling clouds. At its center is set a deep-blue stone, upon which is inscribed the cloud rune.\"+\n\t\"\\n   While wearing this circlet, you take no damage from falling. Additionally, as a bonus action, you and everything you are wearing or carrying can teleport to an unoccupied space you can see within 15 feet of yourself, reappearing in a puff of shimmering clouds.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the circlet's rune to assume a cloudlike form. The form lasts for 1 minute, until you are incapacitated, or until you dismiss it (no action required).\"+\n\t\"\\n   While in cloud form, you have a flying speed of 60 feet and resistance to bludgeoning, piercing, and slashing damage.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"I take no damage from falling while wearing this bronze circlet. As a bonus action, I can use it to teleport to an empty space I see within 15 ft. As an action once per dawn, I can invoke its cloud rune to become cloudlike for up to 1 minute. I then gain 60 ft fly speed, bludgeoning, slashing and piercing resistance.\",\n\taction : [[\"bonus action\", \" (teleport 15 ft)\"], [\"action\", \" (invoke rune)\"]],\n\tsavetxt : { immune : [\"falling damage\"] },\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"orb of skoraeus\"] = {\n\tname : \"Orb of Skoraeus\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescriptionFull : \"Said to be infused with the wisdom and power of the god Skoraeus, this polished stone orb is veined with iridescent crystal that seems to glow from within. The orb is 8 inches in diameter and weighs 8 pounds, making it a palm-sized trinket for a stone giant but a more unwieldy item for a Medium creature to use.\"+\n\t\"\\n   While holding this orb, you can use it as a spellcasting focus for your spells. You also gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Abundant Components\") + \". The orb has 3 charges and regains all expended charges at dawn. When you cast a spell while holding this orb, you can expend up to 3 charges to ignore the spell's material components with a gold piece cost, up to 300 gp per charge expended.\"+\n\t\"\\n   \" + toUni(\"Astute Mind\") + \". You gain a +2 bonus to any Constitution saving throw you make to maintain your concentration on a spell.\"+\n\t\"\\n   \" + toUni(\"Divine Sight\") + \". You can see normally in darkness, both magical and nonmagical, to a distance of 120 feet.\",\n\tdescription : 'I can use this polished stone orb as a spellcasting focus that grants me +2 to concentration saves and \"Divine Sight\", the ability to see in normal and magical darkness out to 120 ft. It has 3 charges per dawn. When I cast a spell, I can expend charges to ignore 300 gp worth of material components per charge used.',\n\tweight : 8,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tvision : [[\"Divine Sight\", 120]],\n\tsavetxt : {\n\t\ttext : [\"+2 on concentration saves\"]\n\t}\n};\nMagicItemsList[\"prehistoric figurine of wondrous power\"] = {\n\tname : \"Prehistoric Figurine of Wondrous Power\",\n\tsource : [[\"GotG\", 114]],\n\ttype : \"wondrous item\",\n\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, these statuettes depict dinosaurs and related creatures from the earliest days of the world.\"+\n\t\"\\n   As an action, you can throw a prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living creature. If the space where the creature would appear is occupied by other creatures or objects, or if there isn't enough space for the creature, the figurine doesn't become a creature.\"+\n\t\"\\n   The creature is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the creature defends itself but takes no other actions. See the Monster Manual for the creature's statistics.\"+\n\t\"\\n   The creature exists for a duration specific to each figurine. At the end of the duration, the creature reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the creature becomes a figurine again, its property can't be used again until a certain amount of time has passed, as specified in the figurine's description.\",\n\tdescription : \"As an action, I can speak the command word and throw one or more statuettes to an unoccupied space within 60 ft where it becomes a specific creature for a certain amount of time. It is friendly, understands my languages, and obeys my commands.\",\n\taction : [[\"action\", \"\"]],\n\tchoices : [\"Carnelian Triceratops\", \"Jasper Tyrannosaurus Rex\", \"Kyanite Pteranodon\", \"Pyrite Plesiosaurus\"],\n\t\"carnelian triceratops\" : {\n\t\trarity : \"very rare\",\n\t\tdescription : \"As an action, I can speak the command word and throw this carnelian statuette to an unoccupied space within 60 ft, where it becomes a triceratops for 6 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this carnelian statuette of a triceratops to an unoccupied space within 60 ft, where it becomes a triceratops for up to 6 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the triceratops defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 10 days have passed.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this carnelian statuette depicts a triceratops.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living triceratops. If the space where the triceratops would appear is occupied by other creatures or objects, or if there isn't enough space for the triceratops, the figurine doesn't become a triceratops.\"+\n\t\t\"\\n   The triceratops is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the triceratops defends itself but takes no other actions. It can be ridden as a mount. See the Monster Manual for the triceratops's statistics.\"+\n\t\t\"\\n   The triceratops exists for up to 6 hours. At the end of the duration, the triceratops reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the triceratops becomes a figurine again, its property can't be used again until 10 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"10 days\"\n\t},\n\t\"jasper tyrannosaurus rex\" : {\n\t\trarity : \"legendary\",\n\t\tdescription : \"As an action, I can speak the command word and throw this jasper statuette to an unoccupied space within 60 ft, where it becomes a T-rex for up to 1 hour, until I use the command word again, or it reaches 0 HP. It is friendly, obeys my commands, and understands my languages. I can lose control of it, see notes.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this jasper statuette of a T-rex to an unoccupied space within 60 ft, where it becomes a T-rex for up to 1 hour, until I use an action to repeat the command word, or it reaches 0 HP. It is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 14 days have passed. Whenever I command it (even if reverting back), roll a d20. On a 1, I lose control and it becomes hostile until it drops to 0 hp.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this jasper statuette depicts a tyrannosaurus rex.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living tyrannosaurus rex. If the space where the tyrannosaurus rex would appear is occupied by other creatures or objects, or if there isn't enough space for the tyrannosaurus rex, the figurine doesn't become a tyrannosaurus rex.\"+\n\t\t\"\\n   The tyrannosaurus rex is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the tyrannosaurus rex defends itself but takes no other actions. See the Monster Manual for the tyrannosaurus rex's statistics.\"+\n\t\t\"\\n   The tyrannosaurus rex exists for up to 1 hour. At the end of the duration, the tyrannosaurus rex reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the tyrannosaurus rex becomes a figurine again, its property can't be used again until 14 days have passed.\"+\n\t\t\"\\n   Whenever you command the figurine while it's in tyrannosaurus rex form (including commanding it to revert to figurine form), you must roll a d20. On a 1, you lose control of the figurine, and it becomes hostile to you and your companions until it is reduced to 0 hit points, at which point it reverts to figurine form.\",\n\t\tusages : 1,\n\t\trecovery : \"14 days\",\n\t\ttoNotesPage : [{\n\t\t\tname : \"Lose Control\",\n\t\t\tnote : desc(\"Whenever I command the figurine while it's in tyrannosaurus rex form (including commanding it to revert to figurine form), I must roll a d20. On a 1, I lose control of the figurine, and it becomes hostile to me and my companions until it is reduced to 0 hit points, at which point it reverts to figurine form.\")\n\t\t}]\n\t},\n\t\"kyanite pteranodon\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"As an action, I can speak the command word and throw this kyanite statuette to an unoccupied space within 60 ft, where it becomes a pteranodon for 8 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this kyanite statuette of a pteranodon to an unoccupied space within 60 ft, where it becomes a pteranodon for up to 8 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount if I'm Medium or smaller, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 7 days have passed.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this kyanite statuette depicts a pteranodon.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living pteranodon. If the space where the pteranodon would appear is occupied by other creatures or objects, or if there isn't enough space for the pteranodon, the figurine doesn't become a pteranodon.\"+\n\t\t\"\\n   The pteranodon is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the pteranodon defends itself but takes no other actions. If your size is Medium or smaller, you can ride the pteranodon as a mount. See the Monster Manual for the pteranodon's statistics.\"+\n\t\t\"\\n   The pteranodon exists for up to 8 hours. At the end of the duration, the pteranodon reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the pteranodon becomes a figurine again, its property can't be used again until 7 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"7 days\"\n\t},\n\t\"pyrite plesiosaurus\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"As an action, I can speak the command word and throw this pyrite statuette to an unoccupied space within 60 ft, where it becomes a plesiosaurus for 12 hours, until I use the command word again, or it reaches 0 HP. It can be ridden as a mount, is friendly, understands my languages, and obeys my commands.\",\n\t\tdescriptionLong : \"As an action, I can speak the command word and throw this pyrite statuette of a plesiosaurus to an unoccupied space within 60 ft, where it becomes a plesiosaurus for up to 12 hours, until I use an action to repeat the command word, or it reaches 0 HP. It can be ridden as a mount, is friendly to me and my allies, understands my languages, and obeys my spoken commands. If I issue no commands, the creature defends itself but takes no other actions. When it reverts back to a figurine, it can't be used again until 4 days have passed. While I'm riding it, I can use it to cast Water Breathing at will.\",\n\t\tdescriptionFull : \"Larger and more roughly hewn than typical figurines of wondrous power, this pyrite statuette depicts a plesiosaurus.\"+\n\t\t\"\\n   As an action, you can throw the prehistoric figurine of wondrous power to a point on the ground within 60 feet of yourself while speaking a command word, whereupon the figurine magically transforms into a living plesiosaurus. If the space where the plesiosaurus would appear is occupied by other creatures or objects, or if there isn't enough space for the plesiosaurus, the figurine doesn't become a plesiosaurus.\"+\n\t\t\"\\n   The plesiosaurus is friendly to you and your companions. It understands your languages and obeys your spoken commands. If you issue no commands, the plesiosaurus defends itself but takes no other actions. It can be ridden as a mount. While you are riding the plesiosaurus, you can use it to cast water breathing at will. See the Monster Manual for the plesiosaurus's statistics.\"+\n\t\t\"\\n   The plesiosaurus exists for up to 12 hours. At the end of the duration, the plesiosaurus reverts to its statuette form. It reverts to a figurine early if it drops to 0 hit points or if you use an action to speak the command word again while touching it. When the plesiosaurus becomes a figurine again, its property can't be used again until 4 days have passed.\",\n\t\tusages : 1,\n\t\trecovery : \"4 days\",\n\t\tspellcastingBonus : [{\n\t\t\tname : \"At will while riding it\",\n\t\t\tspells : [\"water breathing\"],\n\t\t\tselection : [\"water breathing\"],\n\t\t\tfirstCol : \"atwill\"\n\t\t}]\n\t}\n};\nMagicItemsList[\"reaper's scream\"] = {\n\tname : \"Reaper's Scream\",\n\tsource : [[\"GotG\", 115]],\n\ttype : \"weapon (morningstar)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"The spikes of this iron morningstar glow with sickly, pale light. The death rune is inscribed on its shaft and inlaid with pearl.\"+\n\t\"\\n   You gain a +2 bonus to attack and damage rolls made with this weapon, and attacks with this weapon deal necrotic damage instead of piercing damage.\"+\n\t\"\\n   When you attack a creature with this weapon and roll a 20 on the attack roll, you gain 10 temporary hit points. Any creature that hits you with a melee attack while you have 1 or more of these temporary hit points takes 10 necrotic damage.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As a bonus action, you can invoke the weapon's rune, unleashing the screams of every creature slain by the weapon in one cacophonous burst. Each creature of your choice within 60 feet of you must succeed on a DC 15 Wisdom saving throw or have the stunned condition until the start of your next turn.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This +2 morningstar deals necrotic damage. When I roll a 20 to hit vs. a creature, I gain 10 \" + (typePF ? \"temp\" : \"temporary\") + \" hp. Melee attackers that hit me take 10 necrotic \" + (typePF ? \"dmg\" : \"damage\") + \" while these last. As a bonus action once per dawn, I can invoke its death rune to have chosen \" + (typePF ? \"\" : \"creatures \") + \"within 60 ft make a Wis save DC 15 or be stunned until my next turn starts.\",\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"morningstar\",\n\t\tregExpSearch : /^(?=.*reaper)(?=.*scream).*$/i,\n\t\tname : \"Reaper's Scream\",\n\t\tsource : [[\"GotG\", 115]],\n\t\tdescription : \"On 20 to hit: 10 temp hp (see magic item)\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\taction : [[\"bonus action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"ring of amity\"] = {\n\tname : \"Ring of Amity\",\n\tsource : [[\"GotG\", 115]],\n\ttype : \"ring\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This ring is carved from hematite and bears an engraving of the friend rune.\"+\n\t\"\\n   When you first attune to this ring, you can touch one willing creature and form a magical bond between the two of you. While this bond lasts, whenever you are subjected to a spell or magical effect that restores hit points, the bonded creature also receives the benefits of the spell or effect.\"+\n\t\"\\n   You can bond with a different creature whenever you finish a long rest, provided that you can touch the creature and the creature is willing.\"+\n\t\"\\n   A creature can benefit from only one ring of amity's bond at a time. The bond ends if either you or the creature travels to a different plane of existence, if you bond with a different creature at the end of a long rest, or if you sever the bond as a bonus action.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When the bonded creature hits a target with an attack roll, you can use your reaction to invoke the ring's rune if you are within 60 feet of the bonded creature. The bonded creature's attack is then turned into a critical hit.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"This hematite ring allows me to bond to one willing creature I touch, which I can change every long rest. When a magical effect restores my hp, my bond also benefits from this effect. As a reaction once per dawn when my bond is within 60 ft and hits an attack, I can invoke the ring's friend rune to make it a critical hit.\",\n\tdescriptionLong : \"This hematite ring allows me to bond to one willing creature I touch, which I can change every long rest. A creature can only benefit from one such bond at the same time. The bond ends if we are no longer on the same plane, if I bond with another, or if I sever it as a bonus action. While this bond lasts, whenever I'm subjected to a spell or magical effect that restores hp, the bonded creature also receives the benefits of the spell or effect. As a reaction once per dawn when my bond is within 60 ft and hits with an attack roll, I can invoke the ring's friend rune to turn the hit into a critical hit.\",\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"sanctum amulet\"] = {\n\tname : \"Sanctum Amulet\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"A black opal pendant hangs at the base of this pearlescent chain. The sacred rune is inscribed on the back of the pendant.\"+\n\t\"\\n   While wearing this item, you have resistance to necrotic damage. Additionally, you can cast the spare the dying cantrip using either an action or a bonus action.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When a creature you can see within 60 feet of you is reduced to 0 hit points as a result of taking damage, you can use your reaction to invoke the item's rune, causing the pendant to flash with pale light. The creature then instead drops to 1 hit point.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this black opal pendant on a pearlescent chain, I have resistance to necrotic damage and can cast Spare the Dying as an action or bonus action. As a reaction once per dawn when I see a creature within 60 ft drop to 0 hp by damage, I can invoke the pendant's sacred rune to restore it to 1 hp.\",\n\tdmgres : [\"Necrotic\"],\n\tspellcastingBonus : [{\n\t\tname : \"Spare the Dying\",\n\t\tspells : [\"spare the dying\"],\n\t\tselection : [\"spare the dying\"],\n\t\tfirstCol : 'atwill'\n\t}],\n\tspellChanges : {\n\t\t\"spare the dying\" : {\n\t\t\ttime : \"1 a/bns\",\n\t\t\tchanges : \"I can cast Spare the Dying either as an action or as a bonus action.\"\n\t\t}\n\t},\n\taction : [[\"reaction\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"shield of the blazing dreadnought\"] = {\n\tname : \"Shield of the Blazing Dreadnought\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"Modeled after the formidable spiked tower shields wielded by some fire giants, this iron shield emanates a constant warmth.\"+\n\t\"\\n   You can use a bonus action to activate the shield, causing glowing lava to flow through the shield's grooves for 1 minute. While the shield is active, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Blazing Soul\") + \". You have immunity to fire damage.\"+\n\t\"\\n   \" + toUni(\"Cleansing Fire\") + \". As an action, you can cause the shield to flare with the cleansing fire of the god Surtur. Choose one creature you can see within 30 feet of yourself (you can choose yourself). One disease or condition of your choice affecting this creature ends immediately; the condition can be blinded, charmed, deafened, or poisoned.\"+\n\t\"\\n   \" + toUni(\"Shield Bash\") + \". When you take the Attack action on your turn, you can replace one of your attacks with a shield bash, targeting one creature you can see within 5 feet of yourself. The target must make a Strength saving throw (DC equals 8 + your proficiency bonus + your Strength modifier). On a failed save, the target takes 3d6 bludgeoning damage plus 3d6 fire damage and is knocked prone. On a successful save, the target takes half as much damage only. You can use Shield Bash only once per turn.\"+\n\t\"\\n   Once the shield has been activated, it can't be activated again until the next dawn.\",\n\tdescription : \"As a bonus action once per dawn, I can activate this iron shield to grant me the following for 1 minute: \\u2022 Immune to fire. \\u2022 As an action, I can remove disease, blinded, charmed, deafened, or poisoned from myself a creature I can see within 30 ft (Cleansing Fire). \\u2022 I can make a shield bash attack once per turn (see attack).\",\n\tdescriptionLong : \"As a bonus action once per dawn, I can activate this iron shield to grant me the following benefits for 1 minute: \\u2022 Blazing Soul: Immunity to fire damage.\"+\n\t\"\\n\\u2022 Cleansing Fire: As an action, I can remove a disease from myself or a creature I can see within 30 ft or the blinded, charmed, deafened, or poisoned condition.\"+\n\t\"\\n\\u2022 Shield Bash: When I take the Attack action on my turn, I can replace one attack with a shield bash to deal 3d6 bludgeoning and 3d6 fire damage and knock prone one creature within 5 ft. It can make a Str save (DC 8 + Prof B. + Str mod) to take half the damage only.\",\n\tweight : 6,\n\tshieldAdd : \"Shield of the Blazing Dreadnought\",\n\tsavetxt : { immune : [\"fire (while Blazing Dreadnought active)\"] },\n\taction : [\n\t\t[\"bonus action\", \" (activate)\"],\n\t\t[\"action\", \"Cleansing Fire (while Blazing Dreadnought active)\"],\n\t],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"activate\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*blazing)(?=.*dreadnought)(?=.*shield).*$/i,\n\t\tname : \"Blazing Dreadnought Shield Bash\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tability : 1,\n\t\ttype : 'AlwaysProf',\n\t\tdamage : ['3d8 Fire + 3d8', '', 'bludgeoning'],\n\t\trange : \"Melee\",\n\t\tdescription : \"Str save for half damage; If failed, also knocked prone; Once per Attack action while shield is active\",\n\t\tabilitytodamage : false,\n\t\tdc : true,\n\t\tisNotWeapon : true,\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"staff of the rooted hills\"] = {\n\tname : \"Staff of the Rooted Hills\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"The hill rune is carved into this gnarled wooden staff. The staff magically resizes to match the height of any creature that attunes to it.\"+\n\t\"\\n   The staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it. The first time you hit any creature with the staff on your turn, the creature must succeed on a DC 12 Strength saving throw or be restrained by spectral vines until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the staff's rune to cast either hold person (save DC 12) or speak with plants with the staff. When you cast hold person using the staff, the target is wreathed in spectral vines.\"+\n\t\"\\n   Once the rune has been invoked to cast either spell, it can't be invoked again until the next dawn.\",\n\tdescription : \"A creature hit with this +1 quarterstaff must make a DC 12 Str save or be restrained by spectral vines until my next turn starts. As an action once per dawn, I can invoke its hill rune to cast either Hold Person (DC 12) or Speak with Plants with it. The target of this Hold Person is wreathed in spectral vines.\",\n\tweight : 4,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*staff)(?=.*rooted)(?=.*hills).*$/i,\n\t\tname : \"Staff of the Rooted Hills\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tdescription : \"Versatile (1d8); On hit, DC 12 Str save or restrained until my next turn starts\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Hold Person or Speak with Plants\",\n\tfixedDC : 12,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"Hold Person\",\n\t\tspells : [\"hold person\"],\n\t\tselection : [\"hold person\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"Speak with Plants\",\n\t\tspells : [\"speak with plants\"],\n\t\tselection : [\"speak with plants\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"stonebreaker's breastplate\"] = {\n\tname : \"Stonebreaker's Breastplate\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"armor (breastplate)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescriptionFull : \"This breastplate is made from marbled granite, though it feels no heavier than a typical metal breastplate. Its chest is emblazoned with the stone rune.\"+\n\t\"\\n   While wearing this breastplate, you have resistance to bludgeoning, piercing, and slashing damage and are immune to being knocked prone.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the breastplate's rune to cast the wall of stone spell (save DC 14) with it. When you cast the spell in this way, you have advantage on saving throws made to maintain concentration on the spell.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this marbled granite breastplate, I have resistance to bludgeoning, piercing, and slashing damage and can't be knocked prone. As an action once per dawn, I can invoke its stone rune to cast Wall of Stone (DC 14) with it. It also grants me advantage on concentration saves for the spell cast in this way.\",\n\tarmorAdd : { select : \"Stonebreaker's Breastplate\", options : [\"Stonebreaker's Breastplate\"] },\n\tweight : 20,\n\tdmgres : [\"Bludgeoning\", \"Slashing\", \"Piercing\"],\n\tsavetxt : { immune : [\"knocked prone\"] },\n\taction : [[\"action\", \"\"]],\n\tfixedDC : 14,\n\tspellcastingBonus : [{\n\t\tname : \"Wall of Stone\",\n\t\tspells : [\"wall of stone\"],\n\t\tselection : [\"wall of stone\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Wall of Stone\"\n};\nMagicItemsList[\"thunderbuss\"] = {\n\tname : \"Thunderbuss\",\n\tsource : [[\"GotG\", 116]],\n\ttype : \"weapon (pistol)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"This magic ranged weapon is a flared pistol with the storm rune engraved along the barrel. You gain a +1 bonus to attack and damage rolls made with it. It requires no ammunition, its damage is thunder instead of piercing, and it doesn't have the loading property.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As a bonus action, you can invoke the weapon's rune to launch a ball of energy to a point you can see within 30 feet of yourself. The energy then detonates into a 10-foot-radius sphere of turbulent wind and thunder centered on that point, and each creature in that sphere must make a DC 14 Constitution saving throw. On a failed save, a creature takes 3d6 thunder damage, and it can't take reactions until the end of your next turn. On a successful save, a creature takes half as much damage only.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\"+\n\t\"\\n\\nIt's up to the DM to decide whether a character has proficiency with a firearm. Characters in most D\\u0026D worlds wouldn't have such proficiency. During their downtime, characters can use the training rules in the Player's Handbook to acquire proficiency, assuming that they have enough ammunition to keep the weapons working while mastering their use.\",\n\tdescription : \"This +1 pistol deals thunder damage and requires loading nor ammunition. As a bonus action once per dawn, I can invoke its storm rune on a point within 30 ft. All creatures in a 10-ft radius must make a DC 14 Con save or take 3d6 thunder damage and no reactions until my next turn ends. Only half damage if saved.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"pistol\",\n\t\tregExpSearch : /thunderbuss/i,\n\t\tname : \"Thunderbuss\",\n\t\tsource : [[\"GotG\", 116]],\n\t\tdamage : [1, 10, \"thunder\"],\n\t\tdescription : \"\",\n\t\tmodifiers : [1, 1],\n\t\tammo : \"\",\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\",\n\taction : [[\"bonus action\", \" (invoke rune)\"]]\n};\nMagicItemsList[\"war horn of valor\"] = {\n\tname : \"War Horn of Valor\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescriptionFull : \"This brass war horn is engraved with the war rune, which glows purple when the horn is blown.\"+\n\t\"\\n   You can blow the horn as a bonus action. When you do, if you have the frightened condition, you immediately end that condition on yourself. You also have advantage on saving throws against being frightened until the start of your next turn.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". When you blow the horn, you can also invoke the rune, imbuing the horn's deep call with protective magic that affects creatures of your choice within 30 feet of yourself. You and all affected creatures gain a +1 bonus to AC until the start of your next turn.\"+\n\t\"\\n   Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"As a bonus action, I can blow this brass war horn with the war rune to stop being frightened and gain adv. on saves against being frightened until my next turn starts. Once per dawn when I blow it, I can also invoke its rune, imbuing all chosen creatures within 30 ft with a +1 bonus to AC until my next turn starts.\",\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"wayfarer's boots\"] = {\n\tname : \"Wayfarer's Boots\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This pair of boots is made of durable cloth, with the journey rune stitched in golden thread above each heel. While you are wearing this item, your walking speed increases by 10 feet, and you have advantage on Wisdom (Survival) checks.\"+\n\t\"\\n   \" + toUni(\"Invoking the Runes\") + \". As a bonus action, you can invoke the boots' runes to cast the expeditious retreat spell with them. Once the runes have been invoked, they can't be invoked again until the next dawn.\",\n\tdescription : \"While I'm wearing this pair of durable cloth boots with the journey rune stitched in golden thread above each heel, I have +10 ft walking speed and advantage on Wisdom (Survival) checks. As a bonus action once per dawn, I can invoke the boots' runes to cast Expeditious Retreat with them.\",\n\tspeed : { walk : { spd : \"+10\", enc : \"+10\" } },\n\tadvantages : [[\"Survival\", true]],\n\tspellcastingBonus : [{\n\t\tname : \"Expeditious Retreat\",\n\t\tspells : [\"expeditious retreat\"],\n\t\tselection : [\"expeditious retreat\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Expeditious Retreat\"\n};\nMagicItemsList[\"wyrmreaver gauntlets\"] = {\n\tname : \"Wyrmreaver Gauntlets\",\n\tsource : [[\"GotG\", 117]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescriptionFull : \"Originally crafted for ground-bound giant brawlers to fight against dragons and other enormous predators of the sky, these studded gauntlets are engraved with the dragon rune.\"+\n\t\"\\n   While you are wearing these gauntlets, your unarmed strike deals an additional 1d6 force damage on a hit. Additionally, whenever you finish a long rest, choose one of the following damage types: acid, cold, fire, lightning, or poison. You have resistance to the chosen damage type until you finish another long rest.\"+\n\t\"\\n   \" + toUni(\"Invoking the Runes\") + \". As a bonus action, you can invoke the gauntlets' runes and summon two enormous spectral fists that envelop the gauntlets and mimic your hand motions. The fists can also launch themselves to strike distant opponents, returning immediately to your space after they hit or miss.\"+\n\t\"\\n   The fists last for 1 minute or until you are incapacitated. While the spectral fists are active, unarmed strikes you make on your turn have a reach of 30 feet, and when you hit a creature with an opportunity attack made with your unarmed strike, the creature must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + your Strength modifier) or have the prone condition.\"+\n\t\"\\n   Once the runes have been invoked, they can't be invoked again until the next dawn.\",\n\tdescription : \"+1d6 force damage to unarmed strikes. Each long rest, choose a resistance it grants me: acid, cold, fire, lightning, or poison. As a bonus action once per dawn, invoke the rune for 1 min: 30 ft range unarmed strikes, target hit with opportunity attacks with it must make Str save DC 8+Prof B.+Str mod or be knocked prone.\",\n\tcalculate : \"var iProfB = Number(How('Proficiency Bonus')), iMod = Number(What('Str Mod')); event.value = (typePF ? '' : 'These gauntlets add ') + '+1d6 force damage to unarmed strikes. Each long rest, I pick a resistance it grants me: acid, cold, fire, lightning, or poison. As a bonus action once per dawn, invoke the rune for 1 min: 30 ft range unarmed strikes, target hit with opportunity attacks with it must make Str save DC ' + (8 + iProfB + iMod) + ' (8+Prof+Str) or be knocked prone.';\",\n\tdmgres : [\"acid,cold,fire,lightn.,or poison\"],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 force damage; Opportunity attack: Str save or prone';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"My unarmed strike deals an additional 1d6 force damage on a hit.\"\n\t\t]\n\t},\n\taction : [[\"bonus action\", \" (invoke rune)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"invoke rune\"\n};\nMagicItemsList[\"zephyr armor\"] = {\n\tname : \"Zephyr Armor\",\n\tnameTest : /zephyr.*armou?r/i,\n\tsource : [[\"GotG\", 117]],\n\ttype : \"armor (light)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescriptionFull : \"This fine set of white-and-silver armor bears the wind rune upon its chest.\"+\n\t\"\\n   While wearing this armor, you have advantage on Dexterity (Acrobatics) checks and Dexterity saving throws as your movements are bolstered by gentle currents of wind.\"+\n\t\"\\n   \" + toUni(\"Invoking the Rune\") + \". As an action, you can invoke the armor's rune to cast the wind wall spell (save DC 15) with it. Once the rune has been invoked, it can't be invoked again until the next dawn.\",\n\tdescription : \"While wearing this white-and-silver armor with the wind rune on its chest, I have advantage on Dex (Acrobatics) checks and Dexterity saves as my movements are bolstered by gentle currents of wind. As an action once per dawn, I can invoke the armor's rune to cast Wind Wall (DC 15) with it.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Zephyr\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Zephyr\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/light/i.test(inObj.type);\n\t\t}\n\t},\n\tadvantages : [[\"Acrobatics\", true], [\"Dexterity\", true]],\n\tsavetxt : { text : [\"Adv. on Dex saves\"] },\n\tfixedDC : 13,\n\tspellcastingBonus : [{\n\t\tname : \"Wind Wall\",\n\t\tspells : [\"wind wall\"],\n\t\tselection : [\"wind wall\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Wind Wall\"\n};\n"
  },
  {
    "path": "WotC material/pub_20230919_PaBTSO.js",
    "content": "var iFileName = \"pub_20230919_PaBTSO.js\";\nRequiredSheetVersion(\"13.2.0\");\n// This file adds the magic items from the Phandelver and Below: The Shattered Obelisk adventure from the D&D 5e starter set to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"PaBTSO\"] = {\n\tname : \"Phandelver and Below: The Shattered Obelisk [items]\",\n\tabbreviation : \"PaBTSO\",\n\tgroup : \"Adventure Books\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://dndstore.wizards.com/us/product/820931/phandelver-and-below-the-shattered-obelisk-digital-plus-physical-bundle\",\n\tdate : \"2023/09/19\"\n};\n\n// Magic Items\n// [dupl_start] reprint from Lost Mines of Phandelver\nif (!SourceList[\"LMoP\"]) {\n\tMagicItemsList[\"dragonguard\"] = {\n\t\tname : \"Dragonguard\",\n\t\tsource : [[\"PaBTSO\", 72], [\"LMoP\", 48]],\n\t\ttype : \"armor (breastplate)\",\n\t\trarity : \"rare\",\n\t\tmagicItemTable : \"G\",\n\t\tdescription : \"This +1 breastplate has a gold dragon motif worked into its design. It grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\n\t\tdescriptionFull : \"This +1 breastplate has a gold dragon motif worked into its design. Created for a human hero of Neverwinter named Tergon, it grants its wearer advantage on saving throws against the breath weapons of creatures that have the dragon type.\",\n\t\tweight : 20,\n\t\tarmorOptions : [{\n\t\t\tregExpSearch : /dragonguard/i,\n\t\t\tname : \"Dragonguard\",\n\t\t\tsource : [[\"PaBTSO\", 72], [\"LMoP\", 48]],\n\t\t\ttype : \"medium\",\n\t\t\tac : \"14+1\",\n\t\t\tweight : 20,\n\t\t\tselectNow : true\n\t\t}],\n\t\tsavetxt : { adv_vs : [\"breath weapons of dragons\"] }\n\t}\n\tMagicItemsList[\"hew\"] = {\n\t\tname : \"Hew\",\n\t\tsource : [[\"PaBTSO\", 54], [\"LMoP\", 33]],\n\t\ttype : \"weapon (battleaxe)\",\n\t\trarity : \"uncommon\",\n\t\tmagicItemTable : \"F\",\n\t\tdescription : 'Dwarvish runes on the head of this rusty battleaxe read \"Hew\". It adds a +1 bonus to attack and damage rolls made with it and deals maximum damage against plant creatures or objects made of wood. While carrying it, I feel uneasy when I travel through a forest, as its creator was a dwarf smith who feuded with dryads.',\n\t\tdescriptionFull : 'This rusty old battleaxe of dwarven manufacture has runes in Dwarvish on the axe head which read \"Hew\". Hew is a +1 battleaxe that deals maximum damage when the wielder hits a plant creature or an object made of wood. The axe\\'s creator was a dwarf smith who feuded with the dryads of a forest where he used it for protection while he cut firewood. Whoever carries the axe feels uneasy whenever he or she travels through a forest.',\n\t\tweight : 4,\n\t\tweaponOptions : [{\n\t\t\tbaseWeapon : \"battleaxe\",\n\t\t\tregExpSearch : /\\bhew\\b/i,\n\t\t\tname : '\"Hew\"',\n\t\t\tsource : [[\"LMoP\", 33], [\"PaBTSO\", 54]],\n\t\t\tdescription : \"Versatile (1d10); Max damage against plant creatures and wooden objects\",\n\t\t\tmodifiers : [1, 1],\n\t\t\tselectNow : true\n\t\t}]\n\t}\n\tMagicItemsList[\"lightbringer\"] = {\n\t\tname : \"Lightbringer\",\n\t\tsource : [[\"PaBTSO\", 54], [\"LMoP\", 48]],\n\t\ttype : \"weapon (mace)\",\n\t\trarity : \"uncommon\",\n\t\tmagicItemTable : \"F\",\n\t\tdescription : \"This mace adds a +1 bonus to attack and damage rolls made with it. It is made for a cleric of the god of dawn, with its head shaped like a sunburst and made of solid brass. I can command it to glow as bright as a torch. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\n\t\tdescriptionFull : \"This +1 mace was made for a cleric of Lathander, the god of dawn. The head of the mace is shaped like a sunburst and is made of solid brass. Named Lightbringer, this weapon glows as bright as a torch when its wielder commands. While glowing, the mace deals an extra 1d6 radiant damage to undead creatures.\",\n\t\tweight : 4,\n\t\tweaponOptions : [{\n\t\t\tbaseWeapon : \"mace\",\n\t\t\tregExpSearch : /lightbringer/i,\n\t\t\tname : \"Lightbringer\",\n\t\t\tsource : [[\"PaBTSO\", 54], [\"LMoP\", 48]],\n\t\t\tdescription : \"Command to glow as torch and deal +1d6 radiant damage to undead\",\n\t\t\tmodifiers : [1, 1],\n\t\t\tselectNow : true\n\t\t}]\n\t}\n\tMagicItemsList[\"spider staff\"] = {\n\t\tname : \"Spider Staff\",\n\t\tsource : [[\"PaBTSO\", 220], [\"LMoP\", 53]],\n\t\ttype : \"staff\",\n\t\trarity : \"rare\",\n\t\tmagicItemTable : \"G\",\n\t\tdescription : \"Attacks with this black adamantine quarterstaff topped with a spider deal +1d6 poison damage on a hit. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Spider Climb (1 charge) or Web (2 charges, spell save DC 15).\",descriptionFull : \"The top of this magic quarterstaff is shaped like a spider. It deals an extra 1d6 poison damage on a hit when used to make a weapon attack.\"+\n\t\ttoUni(\"\\n   Spells\") + \". The staff has 10 charges. While holding it, you can expend the requisite number of charges to cast one of the following spells from the staff: spider climb (1 charge) or web (2 charges; spell save DC 15).\"+\n\t\t\"\\n   The staff regains 1d6+4 expended charges daily at dusk. If you expend the staff's last charge, roll a d20. On a 1, the staff crumbles to dust and is destroyed.\",\n\t\tattunement : true,\n\t\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\n\t\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\n\t\tweight : 4,\n\t\tusages : 10,\n\t\trecovery : \"dawn\",\n\t\tadditional : \"regains 1d6+4\",\n\t\tweaponOptions : [{\n\t\t\tbaseWeapon : \"quarterstaff\",\n\t\t\tregExpSearch : /^(?=.*spider)(?=.*staff).*$/i,\n\t\t\tname : \"Spider Staff\",\n\t\t\tsource : [[\"PaBTSO\", 220], [\"LMoP\", 53]],\n\t\t\tdescription : \"Versatile (1d8); +1d6 poison damage\",\n\t\t\tselectNow : true\n\t\t}],\n\t\tfixedDC : 15,\n\t\tspellFirstColTitle : \"Ch\",\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"spider climb\"],\n\t\t\tselection : [\"spider climb\"],\n\t\t\tfirstCol : 1\n\t\t}, {\n\t\t\tname : \"2 charges\",\n\t\t\tspells : [\"web\"],\n\t\t\tselection : [\"web\"],\n\t\t\tfirstCol : 2\n\t\t}]\n\t}\n\tMagicItemsList[\"staff of defense\"] = {\n\t\tname : \"Staff of Defense\",\n\t\tsource : [[\"PaBTSO\", 220], [\"LMoP\", 53]],\n\t\ttype : \"staff\",\n\t\trarity : \"rare\",\n\t\tmagicItemTable : \"G\",\n\t\tdescription : \"This slender, hollow staff is made of glass yet is as strong as oak. While holding it, I gain a +1 bonus to AC. It has 10 charges and regains 1d6+4 expended charges at dawn. If I use its last charge, roll a d20. On a 1, it is destroyed. I can use its charges to cast Mage Armor (1 charge) or Shield (2 charges) as an action.\",\n\t\tdescriptionFull : \"This slender, hollow staff is made of glass yet is as strong as oak. It weighs 3 pounds. While holding the staff, you have a +1 bonus to your Armor Class.\"+\n\t\ttoUni(\"\\n   Spells\") + \". The staff has 10 charges. While holding it, you can expend the requisite number of charges to cast one of the following spells from the staff: mage armor (1 charge) or shield (2 charges).\"+\n\t\t\"\\n   The staff regains 1d6+4 expended charges daily at dawn. If you expend the staff's last charge, roll a d20. On a 1, the staff shatters and is destroyed.\",\n\t\tattunement : true,\n\t\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\n\t\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\n\t\tweight : 3,\n\t\tusages : 10,\n\t\trecovery : \"dawn\",\n\t\tadditional : \"regains 1d6+4\",\n\t\tspellcastingAbility : \"class\",\n\t\tspellFirstColTitle : \"Ch\",\n\t\tweaponsAdd : { options : [\"Staff of Defense\"] },\n\t\tspellcastingBonus : [{\n\t\t\tname : \"1 charge\",\n\t\t\tspells : [\"mage armor\"],\n\t\t\tselection : [\"mage armor\"],\n\t\t\tfirstCol : 1\n\t\t}, {\n\t\t\tname : \"2 charges\",\n\t\t\tspells : [\"shield\"],\n\t\t\tselection : [\"shield\"],\n\t\t\tfirstCol : 2\n\t\t}],\n\t\tspellChanges : {\n\t\t\t\"shield\" : {\n\t\t\t\ttime : \"1 a\",\n\t\t\t\tchanges : \"Cast as an action.\"\n\t\t\t}\n\t\t},\n\t\textraAC : [{name : \"Staff of Defense\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while holding the Staff of Defense.\"}],\n\t}\n} // dupl_end\nMagicItemsList[\"netherese ring of protection\"] = {\n\tname : \"Netherese Ring of Protection\",\n\tsource : [[\"PaBTSO\", 50]],\n\ttype : \"ring\",\n\trarity : \"rare\",\n\tdescription : \"This ring is made from a single piece of mystical green glass that's stronger than steel. It grants me a +1 bonus to AC and saving throws. It also gives me a +4 bonus to saves and checks made to avoid dropping or being disarmed of any item held in the hand this ring is on.\",\n\tdescriptionFull : \"You gain a +1 bonus to AC and saving throws while wearing this ring.\"+\n\t\"\\n   The ring is made from a single piece of mystical green glass that's stronger than steel. It has the added property of making the wearer less likely to drop or lose anything held in the hand the ring is on. The wearer receives a +4 bonus to saving throws or checks made to avoid dropping or being disarmed of any item held in that hand.\",\n\tattunement : true,\n\textraAC : [{name : \"Netherese Ring of Protection\", mod : 1, magic : true, text : \"I gain a +1 bonus to AC while attuned.\"}],\n\taddMod : [{ type : \"save\", field : \"all\", mod : 1, text : \"While I wear the Netherese Ring of Protection, I gain a +1 bonus to all my saving throws.\" }],\n\tsavetxt : { text : [\"+4 to avoid disarm/drop held\"] }\n}\nMagicItemsList[\"statuette of augury\"] = {\n\tname : \"Statuette of Augury\",\n\tsource : [[\"PaBTSO\", 62]],\n\ttype : \"wondrous item\",\n\trarity : \"unknown\",\n\tdescription : \"This gold statuette of an elf is imbued with divination magic. A non-evil creature grasping the statue can ask it a question and receive a telepathic response, as though the creature had cast Augury. Once a creature has asked its question and received a response, it can never activate the statuette again.\",\n\tdescriptionFull : \"This gold statuette of an elf is worth 100 gp, and is imbued with divination magic. A non-evil creature grasping the statue can ask it a question and receive a telepathic response, as though the creature had cast augury. Once a creature has asked its question and received a response, it can never activate the statuette again.\",\n\tspellcastingBonus : [{\n\t\tname : \"Statuette of Augury\",\n\t\tspells : [\"augury\"],\n\t\tselection : [\"augury\"],\n\t\tfirstCol : \"1\\xD7\"\n\t}]\n}\nMagicItemsList[\"bracers of celerity\"] = {\n\tname : \"Bracers of Celerity\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This pair of lightweight bronze bracers is lined with soft, purple velvet and engraved with swirling designs. While I'm wearing these bracers, all my speeds increase by 10 ft, and I have advantage on saving throws I make to avoid or end the paralyzed or restrained condition on myself.\",\n\tdescriptionFull : \"This pair of lightweight bronze bracers is lined with soft, purple velvet and engraved with swirling designs.\"+\n\t\"\\n   While you're wearing these bracers, all your speeds increase by 10 feet, and you have advantage on saving throws you make to avoid or end the paralyzed or restrained condition on yourself.\",\n\tattunement : true,\n\tspeed : { allModes : { bonus : \"+10\" } },\n\tsavetxt : { adv_vs : [\"paralyzed\", \"restrained\"] }\n}\nMagicItemsList[\"cape of enlargement\"] = {\n\tname : \"Cape of Enlargement\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This cape has 3 charges, regaining 1d3 daily at dawn. As a bonus action, I can use 1 charge to enlarge myself for 10 min or end this effect. While enlarged, my size increases by one category as space allows, I have adv. on Strength checks and saves, and I add my Prof Bonus to my weapon and unarmed strike damage.\",\n\tdescriptionFull : \"Ancient runes are stitched in silver thread along the hem of this grayish-purple cape.\"+\n\t\"\\n   The cape has 3 charges. As a bonus action while wearing the cape, you can expend 1 of its charges to enlarge yourself, granting yourself the following benefits:\"+\n\t\"\\n   \\u2022 Your size increases by one category\\u2014from Medium to Large, for example. If there isn't enough room for your size to increase by one category, you instead become the maximum possible size in the space available.\"+\n\t\"\\n   \\u2022 You have advantage on Strength checks and Strength saving throws.\"+\n\t\"\\n   \\u2022 When you hit with an attack roll using a weapon or an unarmed strike, you can add your proficiency bonus to the attack's damage.\"+\n\t\"\\n   These benefits last for 10 minutes or until you use another bonus action to dismiss them. The cape regains 1d3 expended charges daily at dawn.\",\n\tattunement : true,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\taction : [[\"bonus action\", \" (enlarge/stop)\"]],\n}\nMagicItemsList[\"flayer slayer\"] = {\n\tname : \"Flayer Slayer\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"weapon (greataxe)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this greataxe adorned with carvings of decapitated mind flayers. An aberration hit with this greataxe takes +1d12 slashing damage and if it is currently grappling a creature, it must succeed on a DC 15 Strength save or release each creature it is grappling.\",\n\tdescriptionFull : \"Carvings of decapitated mind flayers adorn this greataxe's metal blade. You gain a +1 bonus to attack and damage rolls made with this greataxe.\"+\n\t\"\\n   An Aberration hit with this greataxe takes an extra 1d12 slashing damage. If the Aberration is currently grappling a creature, the Aberration must succeed on a DC 15 Strength saving throw or release each creature it is grappling.\",\n\tattunement : true,\n\tweight : 7,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greataxe\",\n\t\tregExpSearch : /flayer slayer/i,\n\t\tname : \"Flayer Slayer\",\n\t\tsource : [[\"PaBTSO\", 217]],\n\t\tdescription : \"Heavy, two-handed; Aberrations: +1d12 damage \\u0026 DC 15 Str save or release all grappled\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"luminous war pick\"] = {\n\tname : \"Luminous War Pick\",\n\tsource : [[\"PaBTSO\", 217]],\n\ttype : \"weapon (war pick)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this war pick inlaid with crushed pearlescent stones that imbue it with a faint luminescence. As a bonus action once per dawn, I can use it to cast the daylight spell, choosing a point on the war pick as a target for the spell.\",\n\tdescriptionFull : \"The haft of this war pick is inlaid with crushed pearlescent stones that imbue the weapon with a faint luminescence. You gain a +1 bonus to attack and damage rolls made with this war pick.\"+\n\t\"\\n   While wielding the war pick, you can use a bonus action to cast the daylight spell, choosing a point on the war pick. Once you use this bonus action, it can't be used again until the next dawn.\",\n\tattunement : true,\n\tweight : 2,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"war pick\",\n\t\tregExpSearch : /^(?=.*\\bluminous\\b)((?=.*\\bkuwas?\\b)|((?=.*pick)(?=.*war))|((?!.*(heavy|great|light))(?=.*\\bpicks?\\b))).*$/i,\n\t\tname : \"Luminous War Pick\",\n\t\tsource : [[\"PaBTSO\", 217]],\n\t\tdescription : \"\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"daylight\"],\n\t\tselection : [\"daylight\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Daylight\",\n\taction : [[\"bonus action\", \" (Daylight)\"]],\n\tspellChanges : {\n\t\t\"daylight\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tdescription : \"60-ft rad bright light + 60-ft dim light from point on pick; only magical darkness of SL 4+ works in it\",\n\t\t\tchanges : \"While wielding the Luminous War Pick, I can use a bonus action to cast the daylight spell, choosing a point on the war pick.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"mind crystal\"] = {\n\tname : \"Mind Crystal\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"When you cast a spell that has a casting time of 1 action while holding a mind crystal, I can modify it in a specific way determined by the type of mind crystal. I can't use a mind crystal and a Metamagic option on the same spell. Once a mind crystal is used, it becomes a nonmagical gem worth 50 gp.\",\n\tdescriptionFull : \"These gemstones contain a crystallized bit of spellcasting magic. Different types of mind crystals exist, each with a different single-use effect.\"+\n\t\"\\n   When you cast a spell that has a casting time of 1 action while holding a mind crystal, you can modify the spell in a specific way. You can use only a single mind crystal to modify the spell, and you can't use a mind crystal and a Metamagic option on the same spell. Once you use a mind crystal, it becomes a nonmagical gem worth 50 gp.\"+\n\ttoUni(\"\\n   Careful\") + \". (Uncommon) Choose up to three creatures affected by the spell. The chosen creatures automatically succeed on their saving throws against the spell.\"+\n\ttoUni(\"\\n   Distant\") + \". (Uncommon) If the spell has a range of 5 feet or more and doesn't have a range of self, the spell's range increases by 100 feet. If the spell has a range of touch, its range becomes 30 feet.\"+\n\ttoUni(\"\\n   Empowered\") + \". (Uncommon) When you roll damage for the spell, you can reroll up to three damage dice. You must use the new rolls.\"+\n\ttoUni(\"\\n   Extended\") + \". (Uncommon) If the spell has a duration of 1 minute or longer, double the spell's duration, to a maximum duration of 24 hours.\"+\n\ttoUni(\"\\n   Heightened\") + \". (Rare) Choose one creature affected by the spell. That creature has disadvantage on the first saving throw it makes against the spell.\"+\n\ttoUni(\"\\n   Quickened\") + \". (Rare) You change the spell's casting time to 1 bonus action for this casting.\"+\n\ttoUni(\"\\n   Subtle\") + \". (Common) You cast the spell without any somatic or verbal components for this casting.\",\n\tallowDuplicates : true,\n\tchoices : ['Careful', 'Distant', 'Empowered', 'Extended', 'Heightened', 'Quickened', 'Subtle'],\n\t\"careful\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. Choose up to three creatures affected by the spell. The chosen creatures automatically succeed on their saving throws against the spell. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"distant\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action and a range other then self. If the spell has a range of touch, its range becomes 30 ft. If the spell has a range of 5 ft or more, it increases by 100 ft. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"empowered\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. When you roll damage for the spell, you can reroll up to three damage dice. You must use the new rolls. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"extended\" : {\n\t\trarity : \"uncommon\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. If the spell has a duration of 1 minute or longer, double the spell's duration, to a maximum duration of 24 hours. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"heightened\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. Choose one creature affected by the spell. That creature has disadvantage on the first saving throw it makes against the spell. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"quickened\" : {\n\t\trarity : \"rare\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. The spell's casting time is changed to 1 bonus action for this casting. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t},\n\t\"subtle\" : {\n\t\trarity : \"common\",\n\t\tdescription : \"I can use this crystal once while holding it and casting a spell with a casting time of 1 action. The spell doesn't require any somatic or verbal components for this casting. A spell can be modified only by a single mind crystal or metamagic, not both.\"\n\t}\n}\nMagicItemsList[\"mindblasting cap\"] = {\n\tname : \"Mindblasting Cap\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As a bonus action once per dawn, I can use this cap to project psychic energy in a 60-ft cone. All in the area must make a DC 15 Int save or take 5d8 psychic damage and be stunned for 1 min. If saved, deals half damage and not stunned. Stunned creatures can repeat the save at the end of each of their turns.\",\n\tdescriptionFull : \"This soft, violet cap bears stitching in the pattern of folds on a brain.\"+\n\t\"\\n   As a bonus action while wearing the cap, you can project psychic energy in a 60-foot cone. Each creature in that area must make a DC 15 Intelligence saving throw. On a failed save, a creature takes 5d8 psychic damage and has the stunned condition for 1 minute. On a successful save, the creature takes half as much damage only. At the end of each of its turns, a stunned creature can repeat the saving throw, ending the stunned condition on itself on a success.\"+\n\t\"\\n   Once this bonus action is used, it can't be used again until the next dawn.\",\n\tattunement : true,\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*mindblasting)(?=.*cap).*$/i,\n\t\tname : \"Mindblasting Cap\",\n\t\tsource : [[\"PaBTSO\", 218]],\n\t\tability : 0,\n\t\ttype : \"Magic Item\",\n\t\tdamage : [5, 8, \"psychic\"],\n\t\trange : \"60-ft cone\",\n\t\tdescription : \"Int save or stunned for 1 min, re-save end of turn; Success - half damage, not stunned\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, 0],\n\t\tdc : true,\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"mindguard crown\"] = {\n\tname : \"Mindguard Crown\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"While I wear this adamantine crown, I have advantage on Intelligence, Wisdom, and Charisma saving throws, and I have resistance to psychic damage.\",\n\tdescriptionFull : \"While you wear this adamantine crown, you have advantage on Intelligence, Wisdom, and Charisma saving throws, and you have resistance to psychic damage.\",\n\tattunement : true,\n\tdmgres : [\"Psychic\"],\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tadvantages : [[\"Intelligence\", true], [\"Wisdom\", true], [\"Charisma\", true]]\n}\nvar PaBTSO_mudslickTowerFullDescription = [\n\t'You can use an action to place this 1-inch-diameter granite sphere on the ground and speak its command word, which is \"petrification\" in Terran. The sphere rapidly grows into a stout tower that remains until you use an action to touch the tower and speak the command word again, whereupon the tower shrinks back to a 1-inch-diameter granite sphere. The tower must be empty to shrink in this way. The tower bristles with muddy knobs that constantly extrude and retract across its surface, as though the tower were breathing through a coating of thick mud.',\n\t\"Each creature in the area where the tower appears must make a DC 15 Dexterity saving throw, taking 10d10 bludgeoning damage on a failed save, or half as much damage on a successful one. In either case, the creature is pushed to an unoccupied space outside but next to the tower. Objects in the area that aren't being worn or carried take this damage and are pushed automatically.\"+\n\t\"Whenever it expands, the mudslick tower merges with any natural stone it touches, awkwardly tipping and wedging itself to touch as much natural stone as it can.\",\n\t\"The tower is 20 feet on a side and 30 feet high, with arrow slits on all sides and a battlement atop it. Its interior is divided into two floors, with a ladder running along one wall to connect them. The ladder ends at a trapdoor leading to the roof. When activated, the tower has a small door on the side facing you. The door opens only at your command, which you can speak as a bonus action. It is immune to the knock spell and similar magic, such as that of a chime of opening.\",\n\t\"Although it looks like stone, the tower is made of adamantine, and its magic prevents creatures from tipping it over. The roof, the door, and the walls each have 100 hit points, immunity to damage from nonmagical weapons excluding siege weapons, and resistance to all other damage. While merged with natural stone, the mudslick tower has immunity to all damage. Only a wish spell can repair the tower (this use of the spell counts as replicating a spell of 8th level or lower). Each casting of wish causes the roof, the door, or one wall to regain 50 hit points.\"\n];\nMagicItemsList[\"mudslick tower\"] = {\n\tname : \"Mudslick Tower\",\n\tsource : [[\"PaBTSO\", 218]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As an action, I can command this granite sphere to expand to a 20-ft square, 30-ft high tower of adamantine. If it is empty, I can command it to shrink back down as an action. It has two floors  and a roof with battlements, connected by ladders. The front door only opens on my command, as a bonus action.\",\n\tdescriptionFull : PaBTSO_mudslickTowerFullDescription.join(\"\\n   \"),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : desc(PaBTSO_mudslickTowerFullDescription).replace(/feet/ig, \"ft\").replace(/your/g, \"my\").replace(/(facing) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t}],\n\taction : [[\"action\", \" (expand/shrink)\"]]\n}\nMagicItemsList[\"potion of psionic fortitude\"] = {\n\tname : \"Potion of Psionic Fortitude\",\n\tsource : [[\"PaBTSO\", 219]],\n\ttype : \"potion\",\n\trarity : \"uncommon\",\n\tdescription : \"Once as an action, I can drink this potion or administer it to another to grant, for 1 hour, advantage on saving throws to avoid or end the charmed or stunned condition. This black potion swirls with shimmering flecks of pink and purple.\",\n\tdescriptionFull : \"When you drink this potion, you have advantage for 1 hour on saving throws you make to avoid or end the charmed or stunned condition on yourself.\"+\n\t\"\\n   This black potion swirls with shimmering flecks of pink and purple.\",\n\tweight : 0.5\n}\nMagicItemsList[\"ring of the orator\"] = {\n\tname : \"Ring of the Orator\",\n\tsource : [[\"PaBTSO\", 219]],\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This ring has 6 charges, regaining 1d6 daily at dawn. I can use 1 charge to project my voice to be heard clearly by all within 1 mile, for 1 min. Magical silence, 1 ft stone, 1 inch metal, lead, or 3 ft wood blocks this. During this, I can have creatures I can see understand me even if they don't know the language I speak.\",\n\tdescriptionFull : \"This ring has 6 charges. While you wear it, you can expend 1 of its charges to project your voice to be heard clearly by all creatures within 1 mile of yourself, regardless of intervening noise, for 1 minute. Magical silence, 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood blocks this projection. If you project your voice while speaking a language the listening creatures don't understand, you can make the creatures understand what you're saying. You must be able to see the creatures to make them understand. The ring regains 1d6 expended charges daily at dawn.\",\n\tattunement : true,\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\"\n}\n"
  },
  {
    "path": "WotC material/pub_20231017_Planescape.js",
    "content": "var iFileName = \"pub_20231017_Planescape.js\";\nRequiredSheetVersion(\"14.0.5-beta\");\n// This file adds the Character Options content from the \"Planescape: Adventures in the Multiverse\" set (the \"Sigil and the Outlands\" book) to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"P:AitM\"] = {\n\tname : \"Planescape: Adventures in the Multiverse\",\n\tabbreviation : \"P:AitM\",\n\tabbreviationSpellsheet : \"PS\",\n\tgroup : \"Campaign Sourcebooks\",\n\tcampaignSetting : \"Planescape\",\n\turl : \"https://dndstore.wizards.com/us/product/820944/planescape-adventures-in-the-multiverse-digital-plus-physical-bundle\",\n\tdate : \"2023/10/17\"\n};\n\n// Backgrounds from Sigil and the Outlands\nBackgroundList[\"gate warden\"] = {\n\tregExpSearch : /^(?=.*gate)(?=.*warden).*$/i,\n\tname : \"Gate Warden\",\n\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\n\tskills : [\"Persuasion\", \"Survival\"],\n\tgold : 10,\n\tlanguageProfs : [[\"Any (Abyssal, Celestial, or Infernal recommended)\", 2]],\n\tequipleft : [\n\t\t[\"Blank book\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen or quill\", \"\", \"\"],\n\t\t[\"Ring of keys to unknown locks\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Planar Infusion\",\n\ttrait : [\n\t\t\"Strange events and otherworldly creatures don't phase me.\",\n\t\t\"I think in terms of exchange; something for something, nothing for nothing.\",\n\t\t\"I speak with an unusual cadence.\",\n\t\t\"I pepper my speech with borrowed words or curses from planar languages.\",\n\t\t\"I've seen enough to know that you can't take anyone at face value, so I scrutinize everyone.\",\n\t\t\"I have a superstitious habit I picked up from my gate-town, such as touching iron when I'm nervous or arranging objects in a specific order.\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Vial pendant with glowing honey\",\n\t\t\"Whispering lead ingot thumbprint\",\n\t\t\"Two chiming lodestone spheres\",\n\t\t\"Skin-safe smoldering pebble of coal\",\n\t\t\"Light up white feather\",\n\t\t\"Hard to remove chain-link ring\"\n\t]\n};\nBackgroundFeatureList[\"planar infusion\"] = {\n\tdescription : \"I spent a good amount of time somewhere influenced by planar forces. I'm accustomed to experiences that would leave others reeling in terror or captivated by beauty, and I'm comfortable dealing with fiends and celestials. I know where to find free, modest lodging and food in the community I grew up in. Also, I gain the Scion of the Outer Planes feat.\",\n\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\n\tfeatsAdd: [\"Scion of the Outer Planes\"],\n};\n\nBackgroundList[\"planar philosopher\"] = {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher).*$/i,\n\tname : \"Planar Philosopher\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\"],\n\tskillstxt : \"Arcana, and one skill determined by your faction or one skill of your choice.\",\n\tgold : 10,\n\tlanguageProfs : [2],\n\tequipleft : [\n\t\t[\"Portal key (e.g. bag of golden tea leaves)\", \"\", 3],\n\t\t[\"Manifesto of my guiding philosophy\", \"\", 1]\n\t],\n\tequipright : [\n\t\t[\"Common clothes in faction's style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t],\n\tfeature : \"Conviction\",\n\ttrait : [\n\t\t\"I don't venerate any gods. With time, we can be as powerful as them or greater.\",\n\t\t\"Experience is everything, I live in the moment.\",\n\t\t\"When things crumble, I find meaning in the dust.\",\n\t\t\"Life thrives through order, and I seek to maintain that order.\",\n\t\t\"When others make plans, the multiverse laughs and so do I.\",\n\t\t\"I know what's right, and none will stand in my way.\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Inscribed locket with image of mentor\",\n\t\t\"Cranium rat skull with glass eyes\",\n\t\t\"Torn parchment with half a puzzle\",\n\t\t\"Bracelet of twisted razorvine stems\",\n\t\t\"Fragment of verdigris bronze blade\",\n\t\t\"Broken symbol of forgotten god\"\n\t]\n};\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of athar\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*athar).*$/i,\n\tname : \"Planar Philosopher of Athar\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Religion\"],\n\tequipright : [\n\t\t[\"Common clothes in Athar style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of bleak cabal\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*bleak cabal).*$/i,\n\tname : \"Planar Philosopher of Bleak Cabal\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Insight\"],\n\tequipright : [\n\t\t[\"Common clothes in Bleak Cabal style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of doomguard\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*doomguard).*$/i,\n\tname : \"Planar Philosopher of Doomguard\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Nature\"],\n\tequipright : [\n\t\t[\"Common clothes in Doomguard style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of fated\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*fated).*$/i,\n\tname : \"Planar Philosopher of Fated\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Intimidation\"],\n\tequipright : [\n\t\t[\"Common clothes in Fated style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of fraternity of order\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*fraternity of order).*$/i,\n\tname : \"Planar Philosopher of Fraternity of Order\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"History\"],\n\tequipright : [\n\t\t[\"Common clothes in Fraternity of Order style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of hands of havoc\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*hands of havoc).*$/i,\n\tname : \"Planar Philosopher of Hands of Havoc\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Stealth\"],\n\tequipright : [\n\t\t[\"Common clothes in Hands of Havoc style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of harmonium\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*harmonium).*$/i,\n\tname : \"Planar Philosopher of Harmonium\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Perception\"],\n\tequipright : [\n\t\t[\"Common clothes in Harmonium style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of heralds of dust\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*heralds of dust).*$/i,\n\tname : \"Planar Philosopher of Heralds of Dust\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Medicine\"],\n\tequipright : [\n\t\t[\"Common clothes in Heralds of Dust style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of mercykillers\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*mercykillers).*$/i,\n\tname : \"Planar Philosopher of Mercykillers\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Survival\"],\n\tequipright : [\n\t\t[\"Common clothes in Mercykillers style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of mind's eye\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*mind's eye).*$/i,\n\tname : \"Planar Philosopher of Mind's Eye\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Persuasion\"],\n\tequipright : [\n\t\t[\"Common clothes in Mind's Eye style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of society of sensation\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*society of sensation).*$/i,\n\tname : \"Planar Philosopher of Society of Sensation\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Performance\"],\n\tequipright : [\n\t\t[\"Common clothes in Society of Sensation style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nAddBackgroundVariant(\"planar philosopher\", \"planar philosopher of transcendent order\", {\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher)(?=.*transcendent order).*$/i,\n\tname : \"Planar Philosopher of Transcendent Order\",\n\tsource : [[\"P:AitM\", 8]],\n\tskills : [\"Arcana\", \"Athletics\"],\n\tequipright : [\n\t\t[\"Common clothes in Transcendent Order style\", \"\", 3],\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\n\t]\n});\nBackgroundFeatureList[\"conviction\"] = {\n\tdescription : \"I subscribe to a distinct philosophy that seeks to understand the nature of the planes or a hidden truth of the multiverse and spread my philosophy. I am part of a network of like-minded believers who provide me free, modest lodging and food at any of their holding or the homes of other faction members. Also, I gain the Scion of the Outer Planes feat.\",\n\tsource : [[\"P:AitM\", 8], [\"UA:WotM\", 4]],\n\tfeatsAdd: [\"Scion of the Outer Planes\"],\n};\n\n// Feats from Sigil and the Outlands\nFeatsList[\"scion of the outer planes\"] = {\n\tname : \"Scion of the Outer Planes\",\n\tsource : [[\"P:AitM\", 12]],\n\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I can select a plane and gain resistance to a damage type and learn a cantrip associated with that plane. I can cast the cantrip without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\tdescriptionFull : \"Your connection to an Outer Plane infuses you with the energy there. Choose a type of plane listed in the Planar Infusion table. Your choice gives you resistance to a damage type and the ability to cast a cantrip, as specified in the table. You can cast this cantrip without material components, and your spellcasting ability for it is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\n\ttoUni(\"\\n\\nPlane\\t\\tResistance\\tCantrip\")+\n\t\"\\nChaotic Outer\\tPoison\\t\\tMinor Illusion\"+\n\t\"\\nEvil Outer  \\tNecrotic\\t\\tChill Touch\"+\n\t\"\\nGood Outer  \\tRadiant\\t\\tSacred Flame\"+\n\t\"\\nLawful Outer\\tForce\\t\\tGuidance\"+\n\t\"\\nThe Outlands\\tPsychic\\t\\tMage Hand\",\n\tprerequisite : \"Planescape Campaign\",\n\tspellcastingAbility : [4,5,6],\n\tchoices : ['Chaotic Outer Plane (Poison, Minor Illusion)', 'Evil Outer Plane (Necrotic, Chill Touch)', 'Good Outer Plane (Radiant, Sacred Flame)', 'Lawful Outer Plane (Force, Guidance)', 'The Outlands (Psychic, Mage Hand)'],\n\t'chaotic outer plane (poison, minor illusion)' : {\n\t\tname : \"Scion of the Outer Planes (Chaotic Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to a chaotic outer plane gives me resistance to poison damage and I know the Minor Illusion cantrip, which requires no material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Chaotic Outer Plane\",\n\t\t\tspells : [\"minor illusion\"],\n\t\t\tselection : [\"minor illusion\"],\n\t\t}],\n\t\tdmgres : [\"Poison\"],\n\t\tspellChanges : {\n\t\t\t\"minor illusion\" : {\n\t\t\t\tcomponents : \"S\",\n\t\t\t\tcompMaterial : \"\",\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Minor Illusion without material components.\"\n\t\t\t}\n\t\t}\n\t},\n\t'evil outer plane (necrotic, chill touch)' : {\n\t\tname : \"Scion of the Outer Planes (Evil Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an evil outer plane. This connection gives me resistance to necrotic damage and I know the Chill Touch cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Evil Outer Plane\",\n\t\t\tspells : [\"chill touch\"],\n\t\t\tselection : [\"chill touch\"],\n\t\t}],\n\t\tdmgres : [\"Necrotic\"]\n\t},\n\t'good outer plane (radiant, sacred flame)' : {\n\t\tname : \"Scion of the Outer Planes (Good Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an good outer plane. This connection gives me resistance to radiant damage and I know the Sacred Flame cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Good Outer Plane\",\n\t\t\tspells : [\"sacred flame\"],\n\t\t\tselection : [\"sacred flame\"],\n\t\t}],\n\t\tdmgres : [\"Radiant\"]\n\t},\n\t'lawful outer plane (force, guidance)' : {\n\t\tname : \"Scion of the Outer Planes (Lawful Outer Plane)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an lawful outer plane. This connection gives me resistance to force damage and I know the Guidance cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Lawful Outer Plane\",\n\t\t\tspells : [\"guidance\"],\n\t\t\tselection : [\"guidance\"],\n\t\t}],\n\t\tdmgres : [\"Force\"]\n\t},\n\t'the outlands (psychic, mage hand)' : {\n\t\tname : \"Scion of the Outer Planes (the Outlands)\",\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from a plane of the outlands. This gives me resistance to psychic damage and I know the Mage Hand cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\n\t\tspellcastingAbility : [4,5,6],\n\t\tallowUpCasting : true,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"The Outlands\",\n\t\t\tspells : [\"mage hand\"],\n\t\t\tselection : [\"mage hand\"],\n\t\t}],\n\t\tdmgres : [\"Psychic\"]\n\t}\n};\nFeatsList[\"agent of order\"] = {\n\tname : \"Agent of Order\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save (DC 8 + Prof Bonus + spellcasting ability mod of Scion of the Outer Planes) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest.\",\n\tcalculate : \"try { var a = Object.keys(CurrentSpells); var b = a.find(/scion of the outer planes/i); var c = CurrentSpells[a[b]]; var dc = c && c.calcSpellScores ? c.calcSpellScores.dc : '[Error: generate spell sheet first]'; } catch(e) { var dc = '[Error: select Scion of the Outer Planes feat]'; }; event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + dc + ' (= Scion of the Outer Planes spell DC) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 to any one ability score].';\",\n\tdescriptionFull : \"You can channel cosmic forces of order to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Stasis Strike\") + \". Once per turn, when you damage a creature you can see within 60 feet of yourself, you can deal an extra 1d8 force damage to the target, and it must make a Wisdom saving throw (DC equal to 8 + your proficiency bonus + the modifier of the spellcasting ability you chose for the Scion of the Outer Planes feat) as spectral bindings try to ensnare it. On a successful save, the target escapes. On a failed save, the target has the restrained condition until the start of your next turn. These bindings manifest as chains or some other symbol of stasis. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Lawful Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'lawful outer plane (force, guidance)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\"\n};\nFeatsList[\"baleful scion\"] = {\n\tname : \"Baleful Scion\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"Once per turn, when I damage a creature I can see within 60 ft, I can also deal 1d6 + my Proficiency Bonus necrotic damage to it. I then regain a number of hit points equal to this necrotic damage dealt. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of evil to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Life-Draining Grasp\") + \". Once per turn, when you damage a creature you can see within 60 feet of yourself, you can also deal necrotic damage to it. The necrotic damage equals 1d6 + your proficiency bonus, and you regain a number of hit points equal to this necrotic damage dealt. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Evil Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'evil outer plane (necrotic, chill touch)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\"\n};\nFeatsList[\"cohort of chaos\"] = {\n\tname : \"Cohort of Chaos\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"When I roll a 1 or a 20 on an attack roll or save, a the magic of chaos flares up and I roll on the Chaotic Flare table to determine what happens (see notes for table). As a bonus action, my Proficiency Bonus per long rest, I can force a flare to happen. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of chaos to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Chaotic Flare\") + \". When you roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through you. Roll a d4 and consult the table below to determine what happens. A flare lasts until the end of your next turn, and a new flare can't occur until after the first flare ends.\"+\n\ttoUni(\"\\n\\nd4\\tFlare\")+\n\t\"\\n  1\\tBattle Fury: A creature of your choice that you can see is filled with reckless fury. It has advantage on attack rolls and disadvantage on ability checks.\"+\n\t\"\\n  2\\tDisruption Field: Waves of energy ripple around you. Every creature that starts its turn within 5 feet of you, or that moves into that area for the first time on a turn, takes 1d8 force damage.\"+\n\t\"\\n  3\\tUnbound: When you move, you can use some or all of your walking speed to teleport yourself once, along with any equipment you're wearing or carrying, up to the distance used to an unoccupied space that you can see.\"+\n\t\"\\n  4\\tWailing Winds: Winds swirl in a 15-foot-radius sphere centered on you. You and any other creatures in that area have disadvantage on Wisdom saving throws.\"+\n\t\"\\n\\n   You can also forcibly release a chaotic flare as a bonus action, rolling on the table as normal to determine the effects. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Chaotic Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'chaotic outer plane (poison, minor illusion)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\tadditional : \"force flare\",\n\taction : [[\"bonus action\", \" (force flare)\"]],\n\ttoNotesPage : [{\n\t\tname : \"Chaotic Flare Table\",\n\t\tnote : [\n\t\t\t\"When I roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through Me. I roll a d4 on the table below to determine what happens. A flare lasts until the end of my next turn, and a new flare can't occur until after the first flare ends.\",\n\t\t\t\"As a bonus action, I can forcibly release a chaotic flare, rolling on the table as normal to determine the effects. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when you finish a long rest.\",\n\t\t\t\"\\n d4  Flare\",\n\t\t\t\"1  Battle Fury: A creature of my choice that I can see is filled with reckless fury. It has advantage on attack rolls and disadvantage on ability checks.\",\n\t\t\t\"2  Disruption Field: Waves of energy ripple around me. Every creature that starts its turn within 5 ft of me, or that moves into that area for the first time on a turn, takes 1d8 force damage.\",\n\t\t\t\"3  Unbound: When I move, I can use some or all of my walking speed to teleport once, along with any equipment I'm wearing or carrying, up to the distance used to an unoccupied space that I can see.\",\n\t\t\t\"4  Wailing Winds: Winds swirl in a 15-ft radius sphere centered on me. Creatures in that area, myself included, have disadvantage on Wisdom saving throws.\"\n\t\t]\n\t}]\n};\nFeatsList[\"outlands envoy\"] = {\n\tname : \"Outlands Envoy\",\n\tsource : [[\"P:AitM\", 10]],\n\tdescription : \"I can cast Misty Step and Tongues each once per long rest without requiring a spell slot or material components. I can also cast them using a spell slot as normal. My spellcasting ability for these spells is the same as the one for the Scion of the Outer Planes feat. [+1 to any one ability score]\",\n\tdescriptionFull : \"You have spent significant time in Sigil or the Outlands, the crossroads of the multiverse. Being steeped in converging planar energies grants you these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Crossroads Emissary\") + \". You learn the misty step and tongues spells. You can cast each spell once using this feat without a spell slot, and you must finish a long rest before you can cast that spell in this way again. When you cast tongues using this feat, you require no material components. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the one chosen when you gained the Scion of the Outer Planes feat.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (the Outlands) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'the outlands (psychic, mage hand)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tspellcastingAbility : \"scion of the outer planes\",\n\tspellcastingBonus : [{\n\t\tname : \"Crossroads Emissary\",\n\t\tspells : [\"misty step\", \"tongues\"],\n\t\tselection : [\"misty step\", \"tongues\"],\n\t\tfirstCol : \"oncelr+markedbox\",\n\t\ttimes : 2\n\t}],\n\tspellChanges : {\n\t\t\"tongues\" : {\n\t\t\tcomponents : SpellsList.tongues.components.replace(\"M\", \"M*\"),\n\t\t\tcompMaterial : \"When using a spell slot: \"+SpellsList.tongues.compMaterial,\n\t\t\tchanges : \"Using Outlands Envoy, I can cast Tongues once per long rest without expending a spell slot or requiring material components.\"\n\t\t}\n\t}\n};\nFeatsList[\"planar wanderer\"] = {\n\tname : \"Planar Wanderer\",\n\tsource : [[\"P:AitM\", 11]],\n\tdescription : \"After each long rest, I can gain acid, cold, or fire resistance, that lasts until my next long rest ends. I know the direction to the last portal I used while on the same plane as it. As an action, I can try to open or close a portal (portal cracker). As an action once per long rest, I can detect portals (portal sense). See notes.\",\n\tdescriptionFull : \"You can draw on the forces of the multiverse to survive cosmic extremes and to traverse its infinite realms, granting you these benefits:\"+\n\t\"\\n   \" + toUni(\"Planar Adaptation\") + \". When you finish a long rest, you gain resistance to either acid, cold, or fire damage (your choice) until you finish your next long rest.\"+\n\t\"\\n   \" + toUni(\"Portal Cracker\") + \". Your experience with portals allows you to open them without a portal key. As an action, you can concentrate on a portal you're aware of that is within 5 feet of yourself and make a DC 20 Intelligence (Arcana) check. On a failed check, you take 3d8 psychic damage and can't use this benefit on that portal again until you finish a long rest. On a successful check, you can force the portal open or closed for 1 hour. For that duration, the portal doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"+\n\t\"\\n   \" + toUni(\"Portal Sense\") + \". You know the direction to the last planar portal you used while you and the portal are on the same plane of existence. Moreover, as an action, you can detect the location of any portals within 30 feet of you that aren't behind total cover. Once you detect a portal with this action, you can't use the action again until you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\n\tprereqeval : function(v) {\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes\") !== -1;\n\t},\n\tdmgres : [\"Acid/Cold/Fire\"],\n\taction : [[\"action\", \" (Portal Cracker)\"], [\"action\", \" (Portal Sense)\"]],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tadditional : \"Portal Sense\",\n\ttoNotesPage : [{\n\t\tname : \"Portal Cracker\",\n\t\tnote : [\n\t\t\t\"My experience with portals allows me to open them without a portal key.\",\n\t\t\t\"As an action, I can concentrate on a portal I'm aware of that is within 5 ft of me and make a DC 20 Intelligence (Arcana) check.\",\n\t\t\t\"On a failed check, I take 3d8 psychic damage and can't do this on that portal again until I finish a long rest.\",\n\t\t\t\"On a successful check, I can force the portal open or closed for 1 hour. For that duration, the portal doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"\n\t\t]\n\t}, {\n\t\tname : \"Portal Sense\",\n\t\tadditional : \"1\\xD7 per long rest\",\n\t\tnote : [\n\t\t\t\"I know the direction to the last planar portal I used while I and the portal are on the same plane of existence.\",\n\t\t\t\"As an action, I can detect the location of any portals within 30 ft of me that aren't behind total cover.\",\n\t\t\t\"Once I detect a portal with this action, I can't use the action again until I finish a long rest.\"\n\t\t],\n\t\tamendTo : \"Portal Cracker\"\n\t}]\n};\nFeatsList[\"righteous heritor\"] = {\n\tname : \"Righteous Heritor\",\n\tsource : [[\"P:AitM\", 11]],\n\tdescription : \"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce the damage taken by 1d10 + my Proficiency Bonus. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\n\tdescriptionFull : \"You can channel cosmic forces of good to gain these benefits:\"+\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase one ability score of your choice by 1, to a maximum of 20.\"+\n\t\"\\n   \" + toUni(\"Soothe Pain\") + \". When you or a creature within 30 feet of you takes damage, you can use your reaction to reduce that damage by 1d10 + your proficiency bonus. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Good Outer Plane) feat\",\n\tprereqeval : function(v) {\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes\");\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'good outer plane (radiant, sacred flame)';\n\t},\n\tscorestxt : \"+1 to one ability score of your choice\",\n\tusages : \"Proficiency bonus per \",\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\trecovery : \"long rest\",\n\taction : [[\"reaction\", \"\"]]\n};\n\n\n// Magic Items from Sigil and the Outlands\nMagicItemsList[\"mimir\"] = {\n\tname : \"Mimir\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can stow or toss this skull-shaped device in the air to activate it, making it float 1d3 ft near me. Once per dawn as an action while active, I can use it to cast Legend Lore. It speaks the revieled lore aloud. While active, it answers questions about the planes of existence I or someone I designate ask it.\",\n\tdescriptionLong : \"As a bonus action, I can toss this skull-shaped device covered with planar sigils into the air to activate it, causing it to float 1d3 ft near me but considered worn by me. I can use another bonus action to seize and stow it. It has AC 22, 25 HP, immunity to poison and psychic damage, and resistance to all other damage. Another can use an action to grab it with a successful unarmed strike or DC 22 Acrobatics check. Once per dawn as an action while active, I can use it to cast Legend Lore. It speaks the revealed lore aloud. While active, it answers questions about the planes of existence I or someone I designate ask it.\",\n\tdescriptionFull : \"This skull-shaped device is filled with knowledge. The device weighs 5 pounds and is covered with subtle etchings of planar sigils.\"+\n\t\"As a bonus action, you can toss the device into the air, whereupon it floats at a distance of 1d3 feet from you and you can access its properties. While the mimir is floating, a creature other than you can use an action to grasp or net the device, either by making a successful unarmed strike against AC 22 or a successful DC 22 Dexterity (Acrobatics) check. You can use a bonus action to seize and stow the device.\"+\n\t\"The device has AC 22, 25 hit points, immunity to poison and psychic damage, and resistance to all other damage. It is considered to be an object that is being worn while it is floating near you.\"+\n\ttoUni(\"\\n   Esoteric Knowledge\") + \". While the device is floating, you can use an action to cast legend lore from the device. The device speaks the revealed lore aloud. Once this property has been used, it can't be used again until the next dawn.\"+\n\ttoUni(\"\\n   Planar Knowledge\") + \". The device knows basic, useful information about the planes of existence. While the device is floating, it verbally answers questions you or anyone you designate poses to it about that topic. It knows the information about the planes in the Dungeon Master's Guide, as well as basic information about the gate-towns of the Outlands (presented in chapter 3 of Sigil and the Outlands).\",\n\taction : [[\"bonus action\", \" (activate/stow)\"]],\n\tweight : 5,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Legend Lore\",\n\tspellcastingBonus : [{\n\t\tname : \"once per dawn\",\n\t\tspells : [\"legend lore\"],\n\t\tselection : [\"legend lore\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"portal compass\"] = {\n\tname : \"Portal Compass\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This portable arcane instrument points in the direction of the last portal it passed through while it and the portal are on the same plane of existence. If that portal no longer exists, the needle becomes static until the compass passes through a new portal.\",\n\tdescriptionFull : \"This portable arcane instrument points in the direction of the last portal it passed through while it and the portal are on the same plane of existence. If that portal no longer exists, the needle becomes static until the compass passes through a new portal.\"\n};\nMagicItemsList[\"sensory stone\"] = {\n\tname : \"Sensory Stone\",\n\tsource : [[\"P:AitM\", 13]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"This stone stores a single experience. As an action, one touching the stone can experience it harmlessly. As a reaction, I can replace the experience within with a new, six-second sensation experienced by a creature within 30 ft. As a bonus action, I can destroy it to end the charmed or frightened effect on myself.\",\n\tdescriptionFull : \"This small, smooth stone contains the essence of a single experience.\"+\n\t\"As an action, you or a willing creature you designate can touch the stone and experience the sensation as if it happened to the designated creature. The illusory experience is fleeting and harmless, however real it might feel in the moment.\"+\n\ttoUni(\"\\n   Record Sensation\") + \". You can use your reaction to record a short sensation lasting no longer than 6 seconds experienced by a creature of your choice within 30 feet of yourself, infusing the essence of that experience into the stone. This replaces any sensation already stored within the stone.\"+\n\ttoUni(\"\\n   Siphon Sensation\") + \". As a bonus action, you can draw on the stone's magic to end the charmed or frightened condition on yourself, destroying the stone in the process.\",\n\taction : [\n\t\t[\"action\", \" (experience)\"],\n\t\t[\"reaction\", \" (record)\"],\n\t\t[\"bonus action\", \" (destroy to end charmed/frightened)\"]\n\t]\n};\n\n\n// Spells from Sigil and the Outlands\nSpellsList[\"gate seal\"] = {\n\tname : \"Gate Seal\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"P:AitM\", 12]],\n\tlevel : 4,\n\tschool : \"Abjur\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u2020\",\n\tcompMaterial : \"A broken portal key, which the spell consumes\",\n\tduration : \"24 h\",\n\tdescription : \"30-ft cube wherein all portals close and can't be opened, and no planar travel; SL6: until dispelled\",\n\tdescriptionFull : \"You fortify the fabric of the planes in a 30-foot cube you can see within range. Within that area, portals close and can't be opened for the duration. Spells and other effects that allow planar travel or open portals, such as gate or plane shift, fail if used to enter or leave the area. The cube is stationary.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, the spell lasts until dispelled.\"\n};\nSpellsList[\"warp sense\"] = {\n\tname : \"Warp Sense\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"P:AitM\", 12]],\n\tlevel : 2,\n\tschool : \"Div\",\n\ttime : \"1 a\",\n\trange : \"Self\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A razorvine leaf\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"Know presence of portals in 30 ft; 1 a DC 15 spell ability chk to see destination \\u0026 portal key, ends spell\",\n\tdescriptionFull : \"For the duration, you sense the presence of portals, even inactive ones, within 30 feet of yourself.\"+\n\t\"\\n   If you detect a portal in this way, you can use your action to study it. Make a DC 15 ability check using your spellcasting ability. On a successful check, you learn the destination plane of the portal and what portal key it requires, then the spell ends. On a failed check, you learn nothing and can't study that portal again using this spell until you cast it again.\"+\n\t\"\\n   The spell can penetrate most barriers but is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt.\"\n};\n\n// Beast from Turn of Fortune's Wheel\n// Whirlwyrm is just a giant crocodile under a different name, it has been added to the SRD code as a `nameAlt`\n"
  },
  {
    "path": "WotC material/pub_20231030_CoA.js",
    "content": "var iFileName = \"pub_20231030_CoA.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the magic items from the Chains of Asmodeus adventure from Extra Life to MPMB's Character Record Sheet\n\nSourceList[\"CoA\"] = {\n\tname : \"Chains of Asmodeus\",\n\tabbreviation : \"CoA\",\n\tgroup : \"Extra Life\",\n\tcampaignSetting : \"Forgotten Realms\",\n\turl : \"https://www.dmsguild.com/product/457996/Chains-of-Asmodeus\",\n\tdate : \"2023/10/30\",\n\tdefaultExcluded : true\n};\n\nCoA_Corruption = {\n\tprocess : function(bAddRemove, sItem) {\n\t\t// Make a variable to remember the settings for this\n\t\tif (!CurrentVars.CoA_Corruption) {\n\t\t\tCurrentVars.CoA_Corruption = {\n\t\t\t\titems : [],\n\t\t\t\tpresent : false,\n\t\t\t\tsavedAlert : false\n\t\t\t};\n\t\t}\n\t\tvar bProcessIt = false;\n\t\tvar bItemPresent = CurrentVars.CoA_Corruption.items.indexOf(sItem) !== -1;\n\t\t// If removing, test if present and the triggering item is in the list\n\t\tif (!bAddRemove && bItemPresent) {\n\t\t\tCurrentVars.CoA_Corruption.items.eject(sItem);\n\t\t\tif (CurrentVars.CoA_Corruption.items.length !== 0) {\n\t\t\t\t// Still items present, so don't change anything\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\t// Removing note in final step if present \n\t\t\t\tbProcessIt = CurrentVars.CoA_Corruption.present ? true : false;\n\t\t\t\t// Make pop-up appear at next corrupting item addition\n\t\t\t\tCurrentVars.CoA_Corruption.savedAlert = false;\n\t\t\t}\n\t\t} else if (bAddRemove) { // Adding\n\t\t\t// Add the item to the list of items processed\n\t\t\tif (!bItemPresent) CurrentVars.CoA_Corruption.items.push(sItem);\n\t\t\tif (CurrentVars.CoA_Corruption.savedAlert) {\n\t\t\t\t// The state of the alert was saved, so don't prompt and do nothing\n\t\t\t\treturn;\n\t\t\t} else if (!CurrentVars.CoA_Corruption.present) {\n\t\t\t\t// If not present and dialog state was not saved, ask the user if the rules should be added to a notes page\n\t\t\t\tvar oMsg = {\n\t\t\t\t\tcTitle : \"Show Infernal Item Corruption (DM-only) Rules?\",\n\t\t\t\t\tcMsg : 'The cursed infernal item \"' + MagicItemsList[sItem].name + '\" can cause corruption.\\nDo you want to add the Infernal Item Corruption rules intended for the DM to a Notes page on your character sheet for reference?\\n\\nIMPORTANT: these rules are not intended to be read by players, only by the DM.\\n\\nThese notes will be automatically removed when you remove all corrupting items.',\n\t\t\t\t\tnIcon : 2, // Question\n\t\t\t\t\tnType : 2, // Yes,No\n\t\t\t\t\toCheckbox : {\n\t\t\t\t\t\tcMsg : \"Don't ask me again next time I add a corrupting item (unless I have removed all corrupting items)\",\n\t\t\t\t\t\tbInitialValue : true,\n\t\t\t\t\t\tbAfterValue : false\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Add the note if \"Yes\" was clicked\n\t\t\t\tbProcessIt = app.alert(oMsg) === 4;\n\t\t\t\t// Save the checkbox state\n\t\t\t\tCurrentVars.CoA_Corruption.savedAlert = oMsg.oCheckbox.bAfterValue;\n\t\t\t}\n\t\t}\n\t\tif (bProcessIt) {\n\t\t\tCurrentVars.CoA_Corruption.present = bAddRemove;\n\t\t\tprocessToNotesPage(bAddRemove, CoA_Corruption.toNotesPage, \"items\", {}, false, [\"Chains of Asmodeus, page 271\"]);\n\t\t}\n\t\tSetStringifieds(\"vars\"); // Save the global variable to a field\n\t},\n\ttoNotesPage : [{ // intentionally doesn't include a source\n\t\tname : \"INFERNAL ITEM CORRUPTION\",\n\t\tpopupName : 'The \"Infernal Item Corruption\" rules from Chains of Asmodeus (page 271)',\n\t\tnote : [\n\t\t\t\"\",\n\t\t\t\"Cursed infernal items can be used by mortals, but they always require attunement. Once attuned, the mortal risks an increasing chance of being corrupted by the item., eventually transforming into a devil.\",\n\t\t\t\"   Mortals that receive express permission from Asmodeus, or that make an infernal contract to acquire a magic item, don't suffer these corrupting effects.\",\n\t\t\t\"\",\n\t\t\t\"1. STAGE ONE CORRUPTION: BEGINNINGS\",\n\t\t\t\"Once a character has attuned to a cursed infernal magic item or artifact, it begins the infernal corruption process. Each time that character finishes a long rest, they must make a DC 10 Wisdom save (tieflings have advantage on this save). On a success, the character suffers no effects, but the DC increases by 1 the next time they must make this save. On a failure, the character progresses to Stage Two unless Dispel Evil and Good is cast on them before their next long rest.\",\n\t\t\t\"   While in Stage One, the infernal corruption can be prevented by breaking attunement to the corrupting item. This prevents further Wisdom saves and resets the DC of the save, if the character were to attune to the item again.\",\n\t\t\t\"\",\n\t\t\t\"2. STAGE TWO CORRUPTION: SUFFERINGS\",\n\t\t\t\"While in Stage Two, the character becomes delusional, seeing plots against them where there are none. Additionally, each time they rest, they experience terrifying visions and infernal whispers. Whenever they finish a long rest, they take 1d12 necrotic damage, which ignores resistances and immunities and can't be healed until a Dispel Evil and Good or Remove Curse spell is cast on them. Once the character has taken this damage six times, they progress to Stage Three.\",\n\t\t\t\"   While in Stage Two, the infernal corruption can be removed with one of the following spells: Divine Word, Heal, Mass Heal, True Polymorph, True Resurrection, or Wish.\",\n\t\t\t\"\\n3. STAGE THREE CORRUPTION: DEPARTINGS\",\n\t\t\t\"While in Stage Three, the character begins to suffer physical transformation, and slowly embraces evil. After they finish their first long rest upon entering Stage Three they must roll on the table below to determine how the infernal curse starts shaping them into a devil. In addition, a part-devil character is rendered infertile and detects as a Fiend to Detect Evil and Good spells and similar magic.\",\n\t\t\t\"\",\n\t\t\t\"   d10\\tTransformation\",\n\t\t\t\"     1\\tTheir fingertips elongate into claws\",\n\t\t\t\"     2\\tNon-functional leathery wings sprout from their back\",\n\t\t\t\"     3\\tDevilish horns grow upon their head\",\n\t\t\t\"     4\\tEach night more and more of their skin burns, leaving charred patches\",\n\t\t\t\"     5\\tOne eye turns milky white, the other turns yellow\",\n\t\t\t\"     6\\tTheir spine painfully elongates into a skeletal tail\",\n\t\t\t\"     7\\tTheir skin starts to calcify, turning portions into bone\",\n\t\t\t\"     8\\tTheir feet painfully twist to resemble cloven hooves\",\n\t\t\t\"     9\\tAll their hair falls out, replaced by tiny spikes\",\n\t\t\t\"   10\\tAll their teeth fall out, with new jagged teeth tearing through the gums each morning\",\n\t\t\t\"\",\n\t\t\t\"The character begins to experience waking whispers pushing them towards evil and they suffer terrifying visions whenever they rest, breaking their spirit and pushing them further to evil. Each time they finish a short or long rest, they must make a DC 10 Wisdom save. If they performed at least one evil act, such as making a decision that increased the suffering of others, they make the save with disadvantage. When they fail the save, they progress to Stage Four.\",\n\t\t\t\"   While in Stage Three, the infernal corruption can be ended with one of the following spells: True Polymorph, True Resurrection or Wish.\",\n\t\t\t\"\",\n\t\t\t\"4. STAGE FOUR CORRUPTION: FINALITIES\",\n\t\t\t\"When the character finishes their first long rest after reaching Stage Four, the character's alignment shifts to lawful evil. They're now bound by the devil's code, requiring them to honor any pact made and acquire souls in service of Asmodeus. Lastly, their physical form changes, morphing to resemble a devil (DM's choice).\",\n\t\t\t\"   Once the character reaches Stage Four, the only two cures are the Wish spell, which counts as beyond the scope of the spell, or by signing an infernal contract with Asmodeus to reclaim their soul.\"\n\t\t].join(\"\\n\")\n\t}],\n\tdescription : \"\\n   \" + toUni(\"Corrupting\") + '. This item corrupts. See the \"Infernal Item Corruption\" rules (CoA 271).'\n}\n\nMagicItemsList[\"amulet of appearance\"] = {\n\tname : \"Amulet of Appearance\",\n\tsource : [[\"CoA\", 267]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"My equipment always shines as if just polished and my wounds do not appear to others. I'm immune to being frightened and poisoned. However, whenever I would otherwise be affected by these conditions, a random non-evil humanoid on the material plane whom I have met is affected instead. I know this.\",\n\tdescriptionFull : \"Your armor, weapons, and other equipment always shine as if just polished. Even if you're wounded, your wounds do not appear to others. You're immune to the frightened and poisoned conditions, as these would otherwise ruin your elegant appearance. However, whenever you would otherwise have been affected by one of these conditions, a random non-evil Humanoid on the Material Plane whom you have previously met gets the condition instead. You know this.\",\n\tsavetxt : { immune : [\"frightened\", \"poisoned\"] }\n}\nMagicItemsList[\"amulet of betrayal\"] = {\n\tname : \"Amulet of Betrayal\",\n\tsource : [[\"CoA\", 267]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can move one of the following conditions from myself to an ally within 60 ft: blinded, deafened, frightened, poisoned, stunned, exhaustion. When transferring exhaustion, all my exhaustion levels are moved. If the chosen ally is immune to a transferred condition, the transfer fails.\",\n\tdescriptionFull : \"You can use a bonus action to move one of the following conditions from yourself to an ally within 60 feet of you: blinded, deafened, frightened, poisoned, stunned, exhaustion. When transferring exhaustion, move all your exhaustion levels. If the chosen ally is immune to a transferred condition, the transfer fails.\",\n\taction : [[\"bonus action\", \"\"]]\n}\nMagicItemsList[\"amulet of duplicity\"] = {\n\tname : \"Amulet of Duplicity\",\n\tsource : [[\"CoA\", 267]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"When I die, a copy of my naked corpse is left in my place while I'm brought to an extradimensional space. After 24 hours, I heal 1 hp and am brought back to the place I left, but with a different face. I have disadv. on Persuasion checks to reveal who I am. I can't relay this information and forget it when unattuning.\",\n\tdescriptionLong : \"When I die, the amulet leaves a copy of my naked corpse in my place while I'm transported to an extradimensional space, stable at 0 hp. After 24 hours, I regain 1 hp and am returned to the place I left with different facial features. Only a Wish spell can restore my true identity. I have disadvantage on Charisma (Persuasion) checks to reveal myself. The amulet is cursed. Identifying it only shows it prevents death and one can't explain its power once attuned. When unattuned, one immediately forgets what the amulet does. A Remove Curse spell reveals the details of the curse but doesn't lift it from the amulet.\",\n\tdescriptionFull : \"When you die, you're transported to an extradimensional space where you're stabilized at 0 hit points and kept in that state. The amulet creates a perfect copy of your corpse and places it where you were just before you died, but without any of your worn or carried items. After 24 hours, you regain 1 hit point and are returned to the location of your near-death. Everything about you is the same, except that your facial features are entirely different from before. Only a Wish spell can restore your true identity.\"+\n\t\"\\n   Until then, you have disadvantage on any Charisma (Persuasion) checks to attempt to reveal who you really are.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". An Identify spell or similar reveals only that the amulet can prevent death. Once you attune to the amulet, you can't describe its ability to any other creature, and if unattuned, you immediately forget what the amulet does. A Remove Curse spell reveals the details of the curse but does not remove it from the amulet.\"\n}\nMagicItemsList[\"bracers of asmodeus\"] = {\n\tname : \"Bracers of Asmodeus\",\n\tsource : [[\"CoA\", 267]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"These are cursed, corrupting, and give +2 AC while not wearing armor or using a shield. I can't unattune to them. They make me obsessed with scheming, manipulation, and always bartering for better deals, often using blackmail. If I decline an opportunity to make money at another's expense, I take 3d10 necrotic damage.\",\n\tdescriptionFull : \"You have a +2 bonus to AC while wearing these bracers, if you do not wear armor or use a shield at the same time.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". While attuned to the bracers, you become obsessed with plotting, scheming, and manipulation. You always barter for better deals, often using secrets or leveraging other offers in the process. If you ever decline an opportunity to better yourself financially at another's expense, you immediately take 3d10 necrotic damage. Only the Remove Curse spell allows you to end attunement to this item.\"+\n\tCoA_Corruption.description,\n\teval :       function() { CoA_Corruption.process(true,  \"bracers of asmodeus\") },\n\tremoveeval : function() { CoA_Corruption.process(false, \"bracers of asmodeus\") },\n\textraAC : [{\n\t\tmod : 2,\n\t\tmagic : true,\n\t\ttext : \"I gain a +2 bonus to AC while I'm not wearing armor or using a shield.\",\n\t\tstopeval : function (v) { return v.wearingArmor || v.usingShield; }\n\t}]\n}\nMagicItemsList[\"canian fork\"] = {\n\tname : \"Canian Fork\",\n\tsource : [[\"CoA\", 267]],\n\ttype : \"weapon (trident)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"This magic, cursed, corrupting trident gives me +3 bonus to attack and damage rolls made with. I can't willing to part with it and can't unattune to it without Remove Curse. I'm vulnerable to radiant damage. When I receive magical healing I have to succeed on a DC 15 Con save or the healing has no effect.\",\n\tdescriptionFull : \"You have a +3 bonus to attack and damage rolls made with this magic weapon. In addition, you can make one additional attack with it as a bonus action on each of your turns.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. You're also vulnerable to radiant damage and each time you receive magical healing, you must make a DC 15 Constitution saving throw.\"+\n\t\"\\n   On a failed save, the healing has no effect. Only the Remove Curse spell allows you to end attunement to this item.\"+\n\tCoA_Corruption.description,\n\teval :       function() { CoA_Corruption.process(true,  \"canian fork\") },\n\tremoveeval : function() { CoA_Corruption.process(false, \"canian fork\") },\n\tweight : 4,\n\tsavetxt : { text : [\"Vulnerable to radiant damage\"] },\n\taction : [[\"bonus action\", \" attack\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"trident\",\n\t\tregExpSearch : /^(?=.*canian)(?=.*fork).*$/i,\n\t\tname : \"Canian Fork\",\n\t\tsource : [[\"CoA\", 267]],\n\t\tdescription : \"Thrown, versatile (1d8); Bonus action: 1 attack\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"condensed order\"] = {\n\tname : \"Condensed Order\",\n\tsource : [[\"CoA\", 267]],\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Once as an action, I can snuff this silvery powder extracted from those of a lawful persuasion, or administer it to another. The consumer is immune to the flesh warping feature of demonic ichor and gains advantage on saves against effects from a demonic source. These benefits last for 8 hours.\",\n\tdescriptionFull : \"Condensed Order is a silvery powder that can be extracted from those of a lawful persuasion. Devils bound for the warfronts of Avernus take flasks and snuff boxes of the stuff to fortify themselves against exposure to the raw chaos of demons. Taking the substance requires an action and makes you immune to the flesh warping feature of demonic ichor. It also gives you advantage on saving throws against any effect from a demonic source. These benefits last for 8 hours.\"\n}\nMagicItemsList[\"demonbone polearm\"] = {\n\tname : \"Demonbone Polearm\",\n\tnameTest : \"Demonbone\",\n\tsource : [[\"CoA\", 268]],\n\ttype : \"weapon (polearm)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"As a reaction when damaged by a creature in reach, I can attack it once with this +2 polearm. It is cursed, I can't unattune to it and have disadv. with other weapons. If I take damage, I must make a DC 15 Wis save or go berserk: I attack those near to me until none remain in 60 ft or I'm calmed with a DC 15 Persuasion\" + (typePF ? \".\" : \"check.\"),\n\tdescriptionLong : \"I have a +2 bonus on attack and damage rolls made with this magic quarterstaff. As a reaction when I'm damaged by a creature in this weapon's reach, I can make one melee attack against it. This weapon is cursed, I'm unwilling to part with it, can't unattune to it without Remove Curse, and have disadvantage with other weapons. When I take damage, I must make a DC 15 Wisdom save or go berserk: I attack the nearest creature using this weapon with all my attacks, moving to the next nearest until none remain that I can sea or hear within 60 ft of me. I can also be calmed with a DC 15 Charisma (Persuasion) check.\",\n\tdescriptionFull : \"You have a +2 bonus to attack and damage rolls made with this magic weapon. In addition, when you're damaged by a creature in reach, you may use your reaction to make one melee attack against it with this weapon.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. While attuned, you have disadvantage on attack rolls with weapons other than this one.\"+\n\t\"\\n   Whenever a hostile creature damages you, you must succeed on a DC 15 Wisdom saving throw or go berserk. While berserk, you must use your action on each of your turns to attack the creature nearest to you with the weapon. If you can make extra attacks as part of the Attack action, you use those extra attacks, moving to attack the next nearest creature after you fell your current target. If you have multiple possible targets, you attack one at random.\"+\n\t\"\\n   You're berserk until you start your turn with no creatures within 60 feet of you that you can see or hear. Alternatively, an ally can use an action to make a DC 15 Charisma (Persuasion) check and if successful, you're no longer berserk. Only the Remove Curse spell allows you to end attunement to this item.\"+\n\tCoA_Corruption.description,\n\teval :       function() { CoA_Corruption.process(true,  \"demonbone polearm\") },\n\tremoveeval : function() { CoA_Corruption.process(false, \"demonbone polearm\") },\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"polearm\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /\\b(polearm|glaive|halberd|lance|pike|quarterstaff|spear)\\b/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tvar testRegex = /\\b(polearm|glaive|halberd|lance|pike|quarterstaff|spear)\\b/i;\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/demonbone/i).test(v.WeaponTextName) && (testRegex.test(v.thisWeapon[0]) || ( v.theWea.baseWeapon && testRegex.test(v.theWea.baseWeapon) ))) {\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Demonbone\" in a the name of a polearm, it will be treated as the magic weapon Demonbone Polearm. It adds +2 to hit and damage, can be used as a reaction when I\\'m damaged by a creature within reach to attack them, an is cursed causing me to go beserk when I\\'m damaged.'\n\t\t]\n\t},\n\taction : [[\"reaction\", \" (when damaged)\"]]\n}\nMagicItemsList[\"gauntlets of rage\"] = {\n\tname : \"Gauntlets of Rage\",\n\tsource : [[\"CoA\", 268]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a bard, sorcerer, warlock, or wizard\",\n\tprereqeval : function(v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock || classes.known.wizard ? true : false; },\n\tdescription : \"The first melee weapon attack I make after a short rest sends me into a fury for 1 minute. I can't cast spells or speak, am immune to charmed and frightened, and when I deal damage, I heal 2d8 hp and end this fury or one condition. Also, I can use a spell slot before a melee attack for +1d6 necrotic damage per spell level.\",\n\tdescriptionLong : \"I gain the power of never-ending fury. The first melee weapon attack I make after I finish a short or long rest automatically send me into a special fury for 1 minute. While furious, I can't cast spells, can't verbally communicate, and am immune to the charmed and frightened conditions. Each time I deal damage, I regain 2d8 hit points and may immediately remove a condition I currently suffer from or end this fury. Also, while in this fury, I may spend a spell slot before I make a melee attack. Doing so causes the attack to deal an extra 1d6 necrotic damage per level of spell slot expended, if it hits.\",\n\tdescriptionFull : \"You gain the power of never-ending fury. After you make a melee weapon attack, you automatically enter a special fury for 1 minute. While furious, you can't cast spells, can't verbally communicate, and are immune to the charmed and frightened conditions. Each time you deal damage, you regain 2d8 hit points and may immediately remove a condition you currently suffer from or end this fury. Additionally, while in this fury, you may spend a spell slot before you make a melee attack. Doing so causes the attack to deal an extra 3 (1d6) necrotic damage per level of spell slot expended, if the attack hits. Once used you may not use this fury again until you finish a short or long rest.\",\n\tusages : 1,\n\trecovery : \"short rest\",\n\tsavetxt : { text : [\"Immune to charmed and frightened in fury\"] }\n}\nMagicItemsList[\"infernal amulet\"] = {\n\tname : \"Infernal Amulet\",\n\tsource : [[\"CoA\", 268]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"While wearing this amulet, I can use it as a spellcasting focus for my spells, and it grants a +2 bonus to my spell save DC and spell attack bonus. It is cursed and corrupting. I'm unwilling to part with it and require Remove Curse to unattune to it. It gives me disadvantage on Strength saving throws and Strenght checks.\",\n\tdescriptionFull : \"While wearing this amulet, you can use it as a spellcasting focus for your spells, and it grants a +2 bonus to your spell save DC and spell attack bonus.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this amulet while attuned to it and you wear it always. While wearing the amulet you have disadvantage on Strength saving throws and Strength checks. Only the Remove Curse spell allows you to remove the item and end attunement.\"+\n\tCoA_Corruption.description,\n\teval :       function() { CoA_Corruption.process(true,  \"infernal amulet\") },\n\tremoveeval : function() { CoA_Corruption.process(false, \"infernal amulet\") },\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type != \"prepare\") return 2;\n\t\t\t},\n\t\t\t\"While wearing the Infernal Amulet my spell save DC and spell attack bonus each increase by 2.\"\n\t\t]\n\t},\n\tadvantages : [[\"Athletics\", false], [\"Strength\", false]]\n}\nif (typePF) MagicItemsList[\"infernal amulet\"].savetxt = { text : [\"Disadv. on Str saves/checks\"] }\nMagicItemsList[\"infernal plate armor\"] = {\n\tname : \"Infernal Plate Armor\",\n\tsource : [[\"CoA\", 268]],\n\ttype : \"armor (plate)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"While wearing this armor, I gain a +2 bonus to AC. This armor is cursed and corrupting. I can't take it off or unattune to it without Remove Curse. It makes me vulnerable to the following damage types: force, lightning, psychic, radiant, and thunder.\",\n\tdescriptionFull : \"While wearing this armor, you gain a +2 bonus to AC.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". Once you wear this armor, and are attuned to it, you can't remove it. Only the Remove Curse spell allows you to end the attunement and finally doff it. While wearing the armor, you're vulnerable to the following damage types: force, lightning, psychic, radiant, and thunder.\"+\n\tCoA_Corruption.description,\n\teval :       function() { CoA_Corruption.process(true,  \"infernal plate armor\") },\n\tremoveeval : function() { CoA_Corruption.process(false, \"infernal plate armor\") },\n\tweight : 65,\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*infernal)(?=.*plate).*$/i,\n\t\tname : \"Infernal Plate Armor\",\n\t\tsource : [[\"CoA\", 268]],\n\t\ttype : \"heavy\",\n\t\tac : \"18+2\",\n\t\tstealthdis : true,\n\t\tweight : 65,\n\t\tstrReq : 15,\n\t\tselectNow : true\n\t}],\n\tsavetxt : { text : [\"Vulnerable to force, lightning, psychic, radiant, and thunder damage\"] },\n}\nMagicItemsList[\"knife of stolen resistance\"] = {\n\tname : \"Knife of Stolen Resistance\",\n\tsource : [[\"CoA\", 268]],\n\ttype : \"weapon (dagger)\",\n\trarity : \"rare\",\n\tdescription : \"As an action once per long rest, I can use this knife to carve a single infernal rune into the flesh of an unconscious Beast, Celestial, Dragon, Fey, or Giant. Over the next 10 minutes the creature dies in agony, only Wish can stop this. If the creature has any resistances or immunities, I gain those while its dying.\",\n\tdescriptionFull : \"Using an action, you carve a single infernal rune into the flesh of an unconscious Beast, Celestial, Dragon, Fey, or Giant with this knife. Over the next 10 minutes the creature dies an agonizing death that can't be prevented short of the Wish spell. If the creature has any resistances or immunities, you gain those resistances and immunities until the creature dies or a Wish spell is used to save the creature. The knife's power can't be used again until you finish a long rest.\",\n\tweight : 1,\n\taction : [[\"action\", \"\"]],\n\tusages : 1,\n\trecovery : \"long rest\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*knife)(?=.*stolen)(?=.*resistance).*$/i,\n\t\tname : \"Knife of Stolen Resistance\",\n\t\tsource : [[\"CoA\", 268]],\n\t\tselectNow : true\n\t}]\n}\nMagicItemsList[\"ring of collecting\"] = {\n\tname : \"Ring of Collecting\",\n\tsource : [[\"CoA\", 268]],\n\ttype : \"ring\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As an action once per dawn, I can use this ring to cast Tiny Hut. As a bonus action, I can disintegrate an up to Medium sized, nonmagical piece of art within 60 ft. That art now appears inside the tiny hut, vanishing forever if removed from it. For every 1000 gp of art added, the tiny hut get +1 ft radius and lasts +1 hour.\",\n\tdescriptionLong : \"As an action once per dawn, I can use this ring to cast Leomund's Tiny Hut. As a bonus action, I can use this ring to disintegrate an up to Medium sized, nonmagical piece of art (drawing, painting, or sculpture) within 60 ft. That art now appears inside the tiny hut, for me to appreciate whenever I desire. If I try to remove this art from the tiny hut, it vanishes forever. I can steadily improve this space, but only by denying such beauty from the rest of the world. For every 1000 gp of art acquired, the tiny hut increases in size by adding +1 ft to its radius and lasts +1 hour.\",\n\tdescriptionFull : \"While wearing this ring you can use it to cast the Leomund's Tiny Hut spell as an action. Once this property is used, it can't be used again until the next dawn. Additionally, as a bonus action, you can use the ring to disintegrate any nonmagical piece of art (drawing, painting, or sculpture) within 60 feet that is no larger than Medium-sized. That art now appears inside the tiny hut, for you to appreciate whenever you desire. If you try to remove this art from the tiny hut, it vanishes forever. You can steadily improve this space, but only by denying such beauty to the rest of the world. For every 1,000 gp of art acquired, the tiny hut increases in size by adding another foot to its radius and lasts one additional hour.\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"leomund's tiny hut\"],\n\t\tselection : [\"leomund's tiny hut\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"leomund's tiny hut\" : {\n\t\t\ttime : \"1 a\",\n\t\t\tduration : \"8h+1h/1k gp\",\n\t\t\tdescription : \"10ft+1ft/1000 gp rad immobile dome of force; 9 Medium crea; blocks magic; ends if I leave; see book\",\n\t\t\tchanges : \"Using the Ring of Collecting, I can cast Leomund's Tiny Hut as an action instead of taking 1 minute. Once this property is used, it can't be used again until the next dawn. For every 1000 gp of art acquired, the tiny hut increases in size by adding +1 ft to its radius and lasts +1 hour.\"\n\t\t}\n\t},\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Leomund's Tiny Hut\",\n\taction : [[\"bonus action\", \" (steal art)\"]]\n}\nMagicItemsList[\"ring of the copycat\"] = {\n\tname : \"Ring of the Copycat\",\n\tsource : [[\"CoA\", 268]],\n\ttype : \"ring\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"As a reaction when an ally within 60 ft casts a spell, I can cast it as well as long as I can't normally cast it and it requires 10 gp or less material components. The cloned spell uses the original caster's abilities, originates from me and I choose its targets, but my ally can't cast this spell again until they finish a long rest.\",\n\tdescriptionFull : \"You gain the ability to channel energy from allies to cast spells, even if you normally can't. When an ally within 60 feet of you casts a spell that you normally can't cast and that requires 10 gp or fewer in material components, you may use a reaction to cast that spell. When cast in this way, the spell is cast using your ally's spellcasting ability, spell save DC, and spell attack bonus, as needed. You decide this cloned spell's target, as specified in the spell's description, and the spell originates from you. After you use this ability, your ally can't cast this spell again until they finish a long rest.\",\n\taction : [[\"reaction\", \"\"]]\n}\nMagicItemsList[\"ring of treachery\"] = {\n\tname : \"Ring of Treachery\",\n\tsource : [[\"CoA\", 269]],\n\ttype : \"ring\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This ring has 3 charges, which are restored whenever I finish a long rest. As a reaction when I am damaged, I can expend one charge to transfer that damage to a random creature (allies included) within 60 ft of me.\",\n\tdescriptionFull : \"This ring has 3 charges. While wearing this ring, when you're damaged, you may use a reaction to expend a charge and transfer that damage to a random creature (which could include an ally) within 60 feet. All charges are restored when you finish a long rest.\",\n\taction : [[\"reaction\", \" (when damaged)\"]],\n\tusages : 3\n}\nMagicItemsList[\"sage's mirror\"] = {\n\tname : \"Sage's Mirror\",\n\tsource : [[\"CoA\", 269]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tdescription : \"This mirror has 3 charges, regaining all at dusk. As an action, I can expend 1 charge to cast either Find the Path or Legend Lore. With each use, it is apparent that the information gleaned from the mirror comes from a chamber in the Nine Hells where sages and scholars are tortured for the answers to each question.\",\n\tdescriptionFull : \"This item has 3 charges and regains all charges at dusk. You can use an action and expend 1 of the mirror's charges to cast one of the following spells:\"+\n\t\"\\n \\u2022 Find the Path\"+\n\t\"\\n \\u2022 Legend Lore\"+\n\t\"\\n   With each use, it is apparent that the information gleaned from the mirror comes from a chamber in the Nine Hells where sages and scholars are tortured for the answers to each question.\",\n\tusages : 3,\n\trecovery : \"Dusk\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"find the path\", \"legend lore\"],\n\t\tselection : [\"find the path\", \"legend lore\"],\n\t\tfirstCol : 1,\n\t\ttimes : 2\n\t}],\n\tspellChanges : {\n\t\t\"find the path\" : {\n\t\t\ttime : \"1 a\",\n\t\t\tchanges : \"Using the Sage's Mirror, I can cast Find the Path as an action when I expend one of its charges.\"\n\t\t},\n\t\t\"legend lore\" : {\n\t\t\ttime : \"1 a\",\n\t\t\tchanges : \"Using the Sage's Mirror, I can cast Legend Lore as an action when I expend one of its charges.\"\n\t\t}\n\t}\n}\nMagicItemsList[\"skull of selfish knowledge\"] = {\n\tname : \"Skull of Selfish Knowledge\",\n\tsource : [[\"CoA\", 269]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"As an action, I can make this magical skull devour a nonmagical book, map, or scroll. Once devoured, the learning is forever available to me, but I can never write the information down or communicate it to others. It is for me alone.\",\n\tdescriptionFull : \"You may use an action to make the magical skull devour a nonmagical book, map, or scroll. Once devoured the learning is forever available to you, but you can never write the information down or communicate it to others. It is for you alone.\",\n\taction : [[\"action\", \"\"]]\n}\n// [dupl_start] reprint from Baldur's Gate: Descent into Avernus\nif (!MagicItemsList[\"soul coin\"]) {\n\tvar DiA_soulCoinFullDescription = [\n\t\t\"Soul coins are about 5 inches across and about 1 inch thick, minted from infernal iron. Each coin weighs one-third of a pound, and is inscribed with Infernal writing and a spell that magically binds a single soul to the coin. Because each soul coin has a unique soul trapped within it, each has a story. A creature might have been imprisoned as a result of defaulting on a deal, while another might be the victim of a night hag's curse.\",\n\t\t\">>Carrying Soul Coins<<. To hold a soul coin is to feel the soul bound within it\\u2014overcome with rage or fraught with despair.\",\n\t\t\"An evil creature can carry as many soul coins as it wishes (up to its maximum weight allowance). A non-evil creature can carry a number of soul coins equal to or less than its Constitution modifier without penalty. A non-evil creature carrying a number of soul coins greater than its Constitution modifier has disadvantage on its attack rolls, ability checks, and saving throws.\",\n\t\t\">>Using a Soul Coin<<. A soul coin has 3 charges. A creature carrying the coin can use its action to expend 1 charge from a soul coin and use it to do one of the following:\",\n\t\t\"\\u2022 >>Drain Life<<. You siphon away some of the soul's essence and gain 1d10 temporary hit points.\",\n\t\t\"\\u2022 >>Query<<. You telepathically ask the soul a question and receive a brief telepathic response, which you can understand. The soul knows only what it knew in life, but it must answer you truthfully and to the best of its ability. The answer is no more than a sentence or two and might be cryptic.\\n\",\n\t\t\">>Freeing a Soul<<. Casting a spell that removes a curse on a soul coin frees the soul trapped within it, as does expending all of the coin's charges. The coin itself rusts from within and is destroyed once the soul is released. A freed soul travels to the realm of the god it served or the outer plane most closely tied to its alignment (DM's choice). The souls of lawful evil creatures released from soul coins typically emerge from the River Styx as lemure devils.\",\n\t\t\"A soul can also be freed by destroying the coin that contains it. A soul coin has AC 19, 1 hit point for each charge it has remaining, and immunity to all damage except that which is dealt by a hellfire weapon or an infernal war machine's furnace.\",\n\t\t\"Freeing a soul from a soul coin is considered a good act, even if the soul belongs to an evil creature.\",\n\t\t\">>Hellish Currency<<. Soul coins are a currency of the Nine Hells and are highly valued by devils. The coins are used among the infernal hierarchy to barter for favors, bribe the unwilling, and reward the faithful for services rendered.\",\n\t\t\"Soul coins are created by Mammon and his greater devils on Minauros, the third layer of the Nine Hells, in a vast chamber where the captured souls of evil mortals are bound into the coins. These coins are then distributed throughout the Nine Hells to be used for goods and services, infernal deals, dark bargains, and bribes.\"\n\t];\n\tMagicItemsList[\"soul coin\"] = {\n\t\tname : \"Soul Coin\",\n\t\tsource : [[\"DiA\", 225], [\"CoA\", 269]],\n\t\ttype : \"wondrous item\",\n\t\trarity : \"uncommon\",\n\t\tdescription : \"Each coin traps a unique soul, whose rage or despair is felt by me while I hold it. A coin has 3 charges. As an action, I can expend 1 charge to either siphon the soul's essence to grant me 1d10 temporary HP or telepathically ask the soul a question which it must answer truthfully. See \\\"Notes\\\" page for more.\",\n\t\tdescriptionFull : DiA_soulCoinFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\n\t\ttoNotesPage : [{\n\t\t\tname : \"Features\",\n\t\t\tnote : desc(DiA_soulCoinFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(answer) you/ig, \"$1 me\").replace(/you /ig, \"I \")\n\t\t}],\n\t\tweight : 0.3,\n\t\tusages : 3,\n\t\trecovery : \"Never\",\n\t\taction : [[\"action\", \"\"]]\n\t}\n}\n// dupl_end\nMagicItemsList[\"stygian spear\"] = {\n\tname : \"Stygian Spear\",\n\tsource : [[\"CoA\", 270]],\n\ttype : \"weapon (spear or javelin)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"This +2 weapon deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\n\tdescriptionFull : \"You have a +2 bonus to attack and damage rolls made with this magic weapon. When you throw it, it deals one extra die of damage on a hit. After you throw it and it hits or misses, it flies back to your hand immediately.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. In addition, you have disadvantage on attack rolls made with weapons other than this one.\"+\n\t\"\\n   Whenever you roll a 1 on an attack roll using this weapon, your target changes to your closest ally.\"+\n\t\"\\n   If there are multiple allies, randomly determine which is the target. Make a new attack roll with advantage against your ally. If the attack hits, in addition to the standard damage you deal an extra 2d6 poison damage. Only the Remove Curse spell allows you to end attunement to this item.\"+\n\tCoA_Corruption.description,\n\teval :       function() { CoA_Corruption.process(true,  \"stygian spear\") },\n\tremoveeval : function() { CoA_Corruption.process(false, \"stygian spear\") },\n\tchoices : [\"Javelin\", \"Spear\"],\n\t\"javelin\" : {\n\t\tname : \"Stygian Javelin\",\n\t\tdescription : \"This +2 javelin deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\n\t\tdescriptionLong : \"I have a +2 bonus to attack and damage rolls made with this magic javelin. When I throw it, it deals one extra die of damage on a hit and it flies back to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. Whenever I roll a 1 on an attack roll using this weapon, I instead attack my closest ally. I make a new attack roll with advantage against my ally and if it hits, this weapon deals an extra +2d6 poison damage. If there are multiple allies, randomly determine the target.\",\n\t\tweaponOptions : [{\n\t\t\tbaseWeapon : \"javelin\",\n\t\t\tregExpSearch : /^(?=.*stygian)(?=.*javelin).*$/i,\n\t\t\tname : \"Stygian Javelin\",\n\t\t\tsource : [[\"CoA\", 270]],\n\t\t\tdescription : \"Returning, thrown; Thrown: +1d6 damage; On 1: adv. attack ally \\u0026 +2d6 poison damage\",\n\t\t\tmodifiers : [2, 2],\n\t\t\tselectNow : true\n\t\t}],\n\t\tweight : 2\n\t},\n\t\"spear\" : {\n\t\tname : \"Stygian\\u200A Spear\",\n\t\tdescription : \"This +2 spear deals +1d6 damage when thrown. It returns to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. On a 1 to hit, I attack the closest ally with adv. and deal +2d6 poison damage.\",\n\t\tdescriptionLong : \"I have a +2 bonus to attack and damage rolls made with this magic spear. When I throw it, it deals one extra die of damage on a hit and it flies back to my hand immediately after it hits or misses. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. Whenever I roll a 1 on an attack roll using this weapon, I instead attack my closest ally. I make a new attack roll with advantage against my ally and if it hits, this weapon deals an extra +2d6 poison damage. If there are multiple allies, randomly determine the target.\",\n\t\tweaponOptions : [{\n\t\t\tbaseWeapon : \"spear\",\n\t\t\tregExpSearch : /^(?=.*stygian)(?=.*spear).*$/i,\n\t\t\tname : \"Stygian Spear\",\n\t\t\tsource : [[\"CoA\", 270]],\n\t\t\tdescription : \"Returning, thrown, versatile (1d8); Thrown: +1d6 damage; On 1: adv. attack ally \\u0026 +2d6 poison damage\",\n\t\t\tmodifiers : [2, 2],\n\t\t\tselectNow : true\n\t\t}],\n\t\tweight : 3\n\t}\n}\nMagicItemsList[\"sword of retribution\"] = {\n\tname : \"Sword of Retribution\",\n\tnameTest : \"of Retribution\",\n\tsource : [[\"CoA\", 270]],\n\ttype : \"weapon (any sword)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tcursed: true,\n\tdescription : \"Damage from this +3 sword can be regained only through resting. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune, and have disadv. with other weapons. After a long rest, I must make a DC 11 Con save or only get the benefits of a short rest due to nightmares.\",\n\tdescriptionLong : \"I gain a +3 bonus to attack and damage rolls made with this sword. Hit points lost to this weapon's damage can be regained only through a short or long rest, rather than by regeneration, magic, or any other means. It is cursed and corrupting. I'm unwilling to part with it, require Remove Curse to unattune to it, and gives me disadvantage on attacks with other weapons. When I sleep, I experience nightmares of the past of the vengeful spirit possessing the sword, culminating in its death. After a long rest, I must make a DC 11 Constitution saving throw or only gain the benefits of a short rest.\",\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this sword. Hit points lost to this weapon's damage can be regained only through a short or long rest, rather than by regeneration, magic, or any other means.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". You're unwilling to part with this weapon while attuned to it. While attuned to this weapon, you also have disadvantage on attack rolls made with weapons other than this one.\"+\n\t\"\\n   The vengeful spirit possessing the sword shares its history and lust for vengeance with the wielder. After each successful long rest, you experience nightmares of the spirit's past, culminating in its death. When you wake, you must make a DC 11 Constitution saving throw. On a failed save, you only gain the benefits of a short rest. Only the Remove Curse spell allows you to end attunement to this item.\"+\n\tCoA_Corruption.description,\n\teval :       function() { CoA_Corruption.process(true,  \"sword of retribution\") },\n\tremoveeval : function() { CoA_Corruption.process(false, \"sword of retribution\") },\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !(testRegex).test(inObjKey) && (!inObj.baseWeapon || !(testRegex).test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of retribution/i).test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Only rest heals this damage; Cursed';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of Retribution\" in the name of a sword, it will be treated as the magic weapon Sword of Retribution. It gives a +3 bonus to attack and damage. Damage it deals can\\'t be healed except by resting, and it also bears a curse.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.isMeleeWeapon && (/sword|scimitar|rapier/i).test(v.baseWeaponName) && (/of retribution/i).test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n}\nvar CoA_VialOfGreed = [\n\t\"This small glass vial can stockpile resources for use in the future. Once stored, resources last for 1 century before vanishing. As an action you make the vial store any number of the following resources, which are magically consumed and converted into a violet-colored liquid:\",\n\t\"\\u2022 Up to 31 days of food and/or drink. The flavors are lost, instead becoming tasteless.\",\n\t\"\\u2022 Up to 7 days of alcohol. The flavors are lost, instead becoming tasteless.\",\n\t\"\\u2022 Up to 5 magic scrolls that affect a single creature. The target of the spell is you, and if the spell requires concentration, you can concentrate.\",\n\t\"\\u2022 Up to 5 magic potions. No more than 2 duplicate potions can be stored at a time.\",\n\t\"You may have more than one kind of resource in the vial, up to the limits expressed above. You can use a bonus action to consume one day of food (or alcohol) or activate one scroll or magic potion. If activating a magic scroll, the effects of that scroll must end before you can activate another scroll from the Vial of Greed.\"\n];\nMagicItemsList[\"vial of greed\"] = {\n\tname : \"Vial of Greed\",\n\tsource : [[\"CoA\", 270]],\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"As an action, I can have this small glass vial magically store: food and drink (up to 31 days), alcohol (up to 7 days), magic scrolls that affect 1 creature (up to 5), and magic potions (up to 5, no 3 can be the same). As a bonus action, I can use or consume one of those stored, but the food, drink and alcohol is tasteless.\",\n\tdescriptionFull : CoA_VialOfGreed.join(\"\\n   \"),\n\ttoNotesPage : [{\n\t\tname : \"Vial of Greed Features\",\n\t\tnote : desc(CoA_VialOfGreed).replace(/is you/ig, \"is me\").replace(/you /ig, \"I \")\n\t}],\n\taction : [\n\t\t[\"action\", \"Store in Vial of Greed\"],\n\t\t[\"bonus action\", \"Use from Vial of Greed\"]\n\t]\n}\nMagicItemsList[\"weapon of agonizing paralysis\"] = {\n\tname : \"Weapon of Agonizing Paralysis\",\n\tnameTest : \"of Agonizing Paralysis\",\n\tsource : [[\"CoA\", 271]],\n\ttype : \"weapon (any melee)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This magic weapon has a +3 bonus to hit and damage. When it reduces a creature to 0 hp, they don't die but are instead healed to 1 hp and paralyzed. While paralyzed, infernal runes appear as if carved into their flesh and at the start of each of their turns they suffer immense pain and gain a level of exhaustion.\",\n\tdescriptionFull : \"You have a +3 bonus to attack and damage rolls made with this magic weapon. When this weapon reduces a creature to 0 hit points, the creature doesn't die. Instead, infernal runes appear as if carved into their flesh and they're healed to 1 hit point. They now have the paralyzed condition until the condition is removed by a Lesser Restoration spell or similar magic. When the condition is removed, the runes disappear. At the start of each of their turns while they're paralyzed, the creature suffers immense pain and gains a level of exhaustion.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /melee/i.test(inObj.range);\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /^(?=.*agonizing)(?=.*paralysis).*$/i.test(v.baseWeaponName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'At 0 hp: paralyzed not dead';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of Agonizing Paralysis\" in a the name of a melee weapon, it will be treated as the magic weapon Weapon of Agonizing Paralysis. It has +3 to hit and damage and when it brings a target to 0 hp, they are healed to 1 hp and paralyzed.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /^(?=.*agonizing)(?=.*paralysis).*$/i.test(v.baseWeaponName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n}\n"
  },
  {
    "path": "WotC material/pub_20231114_BoMT.js",
    "content": "var iFileName = \"pub_20231114_BoMT.js\";\nRequiredSheetVersion(\"14.0.5-beta\");\n// This file adds the Character Options content from the \"The Book of Many Things\" book (from the \"The Deck of Many Things\" set) to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"BoMT\"] = {\n\tname : \"The Book of Many Things\",\n\tabbreviation : \"BoMT\",\n\tabbreviationSpellsheet : \"MT\",\n\tgroup : \"Primary Sources\",\n\turl : \"https://dndstore.wizards.com/us/en/product/865604/the-deck-of-many-things-digital-plus-physical-bundle\",\n\tdate : \"2023/11/14\"\n};\n\nBackgroundList[\"rewarded\"] = {\n\tregExpSearch : /rewarded/i,\n\tname : \"Rewarded\",\n\tsource : [[\"BoMT\", 57]],\n\tskills : [\"Insight\", \"Persuasion\"],\n\tgold : 18,\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tequipleft : [\n\t\t[\"Paper, sheets of\", \"\", 5],\n\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\n\t\t[\"Ink pen\", \"\", \"\"],\n\t\t[\"Gaming set matching my proficiency\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Fine clothes\", \"\", 6],\n\t\t[\"Signet ring\", \"\", \"\"],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Fortune's Favor\",\n\ttrait : [\n\t\t\"A safe home is a foundation on which anything else can be built. (Key, Throne)\",\n\t\t\"I was elevated to heights I could never otherwise attain, and I won't waste my fortune. (Star, Sun)\",\n\t\t\"I try to be a source of inspiration and joy to others. Life is never as bad as you think! (Euryale, Jester)\",\n\t\t\"Courage and boldness can carry the day when all else fails. (Comet, Knight)\",\n\t\t\"My good fortune means I can lift others up as well. (Gem, Moon)\",\n\t\t\"Having the right answers is the first step to solving any problem, no matter how dire. (Fates, Sage)\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Perfumed scarf from admirer\",\n\t\t\"Crystal glows as candle\",\n\t\t\"Letter from far-off influential\",\n\t\t\"Symbol with unknown meaning\",\n\t\t\"Ever-crisp playing card\",\n\t\t\"Half a medallion\"\n\t]\n};\nBackgroundFeatureList[\"fortune's favor\"] = {\n\tdescription : \"I have unexpected good fortune in life, caused by something like a genie who granted me wishes, extraordinary luck during a game, me honing my skills to endure a supernatural trial, or some other force that transformed my life. This boon is reflected in my choice of one free feat: Lucky, Magic Initiate, or Skilled.\",\n\tsource : [[\"BoMT\", 57]],\n\tfeatsAdd: [{\n\t\toptions: [\n\t\t\t{ key: 'lucky' },\n\t\t\t{ key: 'magic initiate' },\n\t\t\t{ key: 'skilled' },\n\t\t],\n\t}],\n};\n\nBackgroundList[\"ruined\"] = {\n\tregExpSearch : /ruined/i,\n\tname : \"Ruined\",\n\tsource : [[\"BoMT\", 58]],\n\tskills : [\"Stealth\", \"Survival\"],\n\tgold : 13,\n\tlanguageProfs : [1],\n\ttoolProfs : [[\"Gaming set\", 1]],\n\tequipleft : [\n\t\t[\"Cracked hourglass\", \"\", 1],\n\t\t[\"Rusty manacles\", \"\", 6],\n\t\t[\"Bottle, glass (half-empty)\", \"\", 2],\n\t\t[\"Hunting trap\", \"\", 25],\n\t\t[\"Gaming set matching my proficiency\", \"\", \"\"]\n\t],\n\tequipright : [\n\t\t[\"Traveler's clothes\", \"\", 4],\n\t\t[\"Pouch (with coins)\", \"\", 1]\n\t],\n\tfeature : \"Still Standing\",\n\ttrait : [\n\t\t\"I've changed from my past, and I work to live up to my new path. (Balance, Throne)\",\n\t\t\"Every moment is a gift I refuse to squander. (Euryale, Skull)\",\n\t\t\"Now that I've overcome having nothing, I can survive anything. (Fool, Ruin, Talons)\",\n\t\t\"I know enemies are set against me, and I always prepare for the worst. (Flames, Rogue)\",\n\t\t\"I interpret every event as part of a larger pattern I just haven't worked out yet. (Puzzle, Star)\",\n\t\t\"I must make up for so much time I've already lost. (Donjon, Void)\"\n\t],\n\textra : [\n\t\t\"Select a Trinket\",\n\t\t\"Rusted scrap of family heirloom\",\n\t\t\"Ancient land deed, lost in obscurity\",\n\t\t\"Bauble once imbued with powerful magic\",\n\t\t\"Battered, pierced playing card\",\n\t\t\"Yellowed whispering humanoid tooth\",\n\t\t\"Keepsake from friend turned enemy\"\n\t]\n};\nBackgroundFeatureList[\"still standing\"] = {\n\tdescription : \"I have weathered ruinous misfortune in my life and I possess hidden reserves because of this. Possibly I've had to keep my senses sharp, had to redouble my efforts to reclaim what is mine, had to stoically persevered through it, or experienced something else transformative. How I've dealt with this is reflected in my choice of one free feat: Alert, Skilled, or Tough.\",\n\tsource : [[\"BoMT\", 58]],\n\tfeatsAdd: [{\n\t\toptions: [\n\t\t\t{ key: 'alert' },\n\t\t\t{ key: 'skilled' },\n\t\t\t{ key: 'tough' },\n\t\t],\n\t}],\n};\n\n\nFeatsList[\"cartomancer\"] = {\n\tname : \"Cartomancer\",\n\tsource : [[\"BoMT\", 49]],\n\tdescription : 'I can use a card deck as a spellcasting focus. I learn and can do stage magic with Prestidigitation. I conceal its components as card tricks when doing so. When I finish a long rest, I can store a spell from my class\\' spell list into a card, see \"Hidden Ace\" notes.',\n\tdescriptionFull : \"You have learned to channel your magic through a deck of cards. You can use a card deck as your spellcasting focus, and you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Card Tricks\") + \". You learn the Prestidigitation cantrip and can use it to create illusions that duplicate the effects of stage magic. When you use Prestidigitation in this way, you can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\"+\n\t\"\\n   \" + toUni(\"Hidden Ace\") + \". When you finish a long rest, you can choose one spell from your class's spell list and imbue that spell into a card. The chosen spell must have a casting time of 1 action, and it must be a level for which you have spell slots. The card remains imbued with this spell for 8 hours. While the card is imbued with the spell, you can use a bonus action to flourish the card and cast the spell within. The card then immediately loses its magic.\",\n\tprerequisite : \"4th-level, Spellcasting feature\",\n\tprereqeval : function(v) { return v.characterLevel >= 4 && v.isSpellcastingClass; },\n\tspellcastingBonus : [{\n\t\tname : \"Cartomancer\",\n\t\tspells : [\"prestidigitation\"],\n\t\tselection : [\"prestidigitation\"],\n\t}],\n\tspellChanges : {\n\t\t\"prestidigitation\" : {\n\t\t\tcomponents : \"V,S*\",\n\t\t\tcompMaterial : \"When I duplicate the effects of stage magic, I can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\",\n\t\t\tdescription : \"Harmless sensation, illusory image, snuff light, clean/soil/chill/warm/flavor, stage magic (hide comp)\",\n\t\t\tchanges : \"When I duplicate the effects of stage magic, I can conceal the verbal and somatic components of the spell as ordinary conversation and card handling.\"\n\t\t}\n\t},\n\taction : [[\"bonus action\", \"Hidden Ace (use imbued card)\"]],\n\ttoNotesPage : [{\n\t\tname : \"Hidden Ace\",\n\t\tpage3notes : true,\n\t\tnote : [\n\t\t\t\"When I finish a long rest, I can imbue a spell from my class' spell list into a card for 8 hours\",\n\t\t\t\"The spell must have a casting time of 1 action and be a level for which I have spell slots\",\n\t\t\t\"As a bonus action, I can flourish the card and cast the spell within; It then loses its magic\"\n\t\t]\n\t}]\n};\n\n\nvar BoMT = {\n\ttoDescrFull : function (sDescr) {\n\t\tif (typeof sDescr !== \"string\") sDescr = sDescr.join(\"\\n   \");\n\t\treturn sDescr.replace(/\\[\\[.*?\\]\\]/g, \"$1\")\n\t\t\t.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); });\n\t},\n\tto1stPerson : function (sDescr, joinStr) {\n\t\tif (typeof sDescr === \"string\") sDescr = [sDescr];\n\t\treturn desc(sDescr, joinStr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\n\t\t\t.replace(/you aren't/ig, \"I'm not\").replace(/you were/ig, \"I was\")\n\t\t\t.replace(/you are|you're/ig, \"I am\").replace(/yours\\b/ig, \"mine\")\n\t\t\t.replace(/\\byou\\b/ig, \"I\")\n\t\t\t.replace(/(aid|freeing|around|resurrected|beneath|between|\\w\\ws|by|of|to|for|on) I\\b/ig, \"$1 me\")\n\t\t\t.replace(/(toward) I\\b/ig, \"$1s me\")\n\t\t\t.replace(/(cards|items) me\\b/ig, \"$1 I\")\n\t\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\n\t\t\t.replace(/yours\\b/g, \"mine\").replace(/Yours/g, \"Mine\")\n\t\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\n\t\t\t.replace(/\\[\\[.*?\\]\\]/g, \"\")\n\t\t\t.replace(/(\\n *|\\u2022 |\\u25C6 )>>(.*?)( \\(.*?\\))?<<\\. /g, function(a, p1, p2, p3, p4) {\n\t\t\t\tif (/\\n   /.test(p1)) {\n\t\t\t\t\treturn \"\\n\\n   \" + p2.toUpperCase() + p3.toLowerCase() + \"\\n   \";\n\t\t\t\t} else {\n\t\t\t\t\treturn p1 + p2 + p3 + \": \";\n\t\t\t\t}\n\t\t\t});\n\t},\n\t\"voidwalker armor\" : \"This armor is cursed, and attuning to it extends the curse to you. As long as you remain cursed, you're unwilling to part with the armor. Taking it off fails to end the curse. While cursed in this way, you feel disconnected from your body, continuously hearing whispers that call for you to join them. Whenever you finish a long rest while cursed, you must make a DC 11 Charisma saving throw. On a failed save, your soul is drawn from your body and trapped in an object on a different plane of existence. The object and location of this object are chosen by the DM[[ (but might be the House of Cards; see chapter 18)]]. While your soul is trapped in this way, your body is inert and doesn't age or require sustenance. Destroying the object frees your soul; otherwise, only a Wish spell can restore your soul to your body.\",\n\t\"telescopic transporter\" : \"This enormous telescope allows you to view distant celestial objects, including stars, Wildspace systems, and Astral Sea phenomena like the cities of deities or the petrified husks of dead gods.\"+\n\t\t\"\\n   After spending 1 hour calibrating the telescope, you can attempt to travel to the planet or celestial body at which the telescope is currently pointed. At the end of the hour, you make a DC 17 Intelligence (Arcana) check. On a successful check, you and eight other willing creatures touching the telescope, along with everything all travelers are wearing and carrying, safely teleport to unoccupied spaces at the intended destination. On a failed check, a mishap occurs instead. The DM rolls on the table below to determine the mishap or chooses a mishap that's good for the campaign.\"+\n\t\t\"\\n\\nd6\\tMishap\"+\n\t\t\"\\n 1\\tThe travelers appear adrift in the Astral Sea.\"+\n\t\t\"\\n 2\\tThe travelers appear on a different plane of existence, determined randomly or chosen by the DM.\"+\n\t\t\"\\n 3\\tExcess cosmic energy overloads the telescope, causing it to explode. Each creature within 60 feet of the telescope takes 8d6 necrotic damage. Any Humanoid who survives this damage is transformed into a different kind of creature, as if it had been subject to the Reincarnate spell.\"+\n\t\t\"\\n 4\\tA creature from the Astral Sea (such as a githyanki knight) appears within 60 feet of the telescope. The DM decides its attitude.\"+\n\t\t\"\\n 5\\tThe travelers appear on a different planet or celestial body in the Wildspace system nearest to their target destination.\"+\n\t\t\"\\n 6\\tThe travelers arrive at their intended destination, but they each appear coated in harmless slime.\",\n\t\"sage's signet\" : {\n\t\t\"augury\" : {\n\t\t\ttime : \"1 a\",\n\t\t\tchanges : \"Using the Sage's Signet I can cast Augury once per dawn as an action.\"\n\t\t}\n\t},\n\t\"shrieking greaves\" : \"The greaves are cursed, and becoming attuned to them extends the curse to you. You can't remove the greaves or end your attunement to them until you are targeted by a Remove Curse spell or similar magic.\"+\n\t\"\\n   You have disadvantage on saving throws against the frightened condition. Whenever you start your turn frightened, the greaves release an ear-piercing scream. You and each creature within 10 feet of you must make a DC 15 Constitution saving throw, taking 2d8 thunder damage on a failed save, or half as much damage on a successful one.\",\n\t\"spindle of fate\" : [\n\t\t\">>Battle Foreknowledge<<. When you roll initiative, you can expend 1 charge to add or subtract your proficiency bonus from the total roll.\",\n\t\t\">>Doom Foretold<<. As an action, you can expend 2 charges to target a creature within 30 feet of yourself and invoke that creature's doom. While the target is on the same plane of existence as you are, you can sense the direction to its location, and you know the direction of its movement if it's in motion. Additionally, once per turn when you deal damage to the doomed creature, you can roll 1d6 and add the number rolled to the damage roll. These benefits persist for 1 hour or until you target another creature with this effect.\",\n\t\t\">>Twist of Fate<<. When a creature within 60 feet of you makes a saving throw or an attack roll, you can use your reaction to expend 3 charges and alter the outcome, turning a failed saving throw into a successful one, a missed attack roll into a hit, or vice versa.\"\n\t],\n\t\"starshot crossbow\" : [\n\t\t\"This crossbow is crafted from blackened wood, and its limbs bear pearl inlays depicting constellations. You ignore the loading property with this crossbow. If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the weapon vanishes the instant after it hits or misses a target. The crossbow has 3 charges and regains 1d3 expended charges daily at dawn.\",\n\t\t\">>Constellations<<. The crossbow is decorated with three constellations. As a bonus action, you can tap one of the constellations to invoke it, expending 1 charge and producing one of the following effects:\",\n\t\t\" \\u2022 >>Balance<<. The next time you hit a creature with a ranged attack roll using this crossbow before the end of your next turn, you or another creature of your choice within 30 feet of you can regain hit points equal to 1d8 plus your proficiency bonus.\",\n\t\t\" \\u2022 >>Flames<<. Until the end of your next turn, when you hit a creature with a ranged attack roll using this crossbow, the attack deals an additional 2d8 fire damage.\",\n\t\t\" \\u2022 >>Rogue<<. Until the end of your next turn, you have the invisible condition, and anything you are wearing or carrying is also invisible.\"\n\t],\n\t\"deck of miscellany\" : [\n\t\t\"Playing Card\\t\\tItem(s)\",\n\t\t\"  [3\\u2666] Three of diamonds  \\tWooden abacus\",\n\t\t\"  [4\\u2666] Four of diamonds  \\tFour vials of perfume\",\n\t\t\"  [5\\u2666] Five of diamonds  \\t5 days' worth of rations\",\n\t\t\"  [6\\u2666] Six of diamonds\\t\\tIron pot\",\n\t\t\"  [7\\u2666] Seven of diamonds  \\tDisguise kit\",\n\t\t\"  [8\\u2666] Eight of diamonds  \\tWindow (up to 5 feet wide and 5 feet high), which you can place on a vertical surface up to 5 feet thick and which allows you to look through the surface\",\n\t\t\"  [9\\u2666] Nine of diamonds  \\tManacles\",\n\t\t\"[10\\u2666] Ten of diamonds  \\tTen sheets of parchment\",\n\t\t\"  [3\\u2665] Three of hearts\\t\\tThree daggers\",\n\t\t\"  [4\\u2665] Four of hearts\\t\\tFour flasks of oil\",\n\t\t\"  [5\\u2665] Five of hearts\\t\\tFive silk robes\",\n\t\t\"  [6\\u2665] Six of hearts\\t\\tForgery kit\",\n\t\t\"  [7\\u2665] Seven of hearts\\t\\tQuarterstaff\",\n\t\t\"  [8\\u2665] Eight of hearts\\t\\tFishing tackle\",\n\t\t\"  [9\\u2665] Nine of hearts\\t\\tLeather pouch containing 18 gp\",\n\t\t\"[10\\u2665] Ten of hearts\\t\\t10 crossbow bolt\",\n\t\t\"  [3\\u2663] Three of clubs\\t\\tThree books, written in Common, about random historical events\",\n\t\t\"  [4\\u2663] Four of clubs\\t\\tCanvas tent\",\n\t\t\"  [5\\u2663] Five of clubs\\t\\t50 feet of coiled silk rope\",\n\t\t\"  [6\\u2663] Six of clubs\\t\\tTwo crowbars\",\n\t\t\"  [7\\u2663] Seven of clubs\\t\\tHealer's kit\",\n\t\t\"  [8\\u2663] Eight of clubs\\t\\tEight gems worth 5 gp each\",\n\t\t\"  [9\\u2663] Nine of clubs\\t\\tLamp\",\n\t\t\"[10\\u2663] Ten of clubs\\t\\t10 feet of iron chain\",\n\t\t\"  [3\\u2660] Three of spades\\t\\tThree spears\",\n\t\t\"  [4\\u2660] Four of spades\\t\\tSteel mirror\",\n\t\t\"  [5\\u2660] Five of spades\\t\\t15-foot wooden pole\",\n\t\t\"  [6\\u2660] Six of spades\\t\\tBurlap sack\",\n\t\t\"  [7\\u2660] Seven of spades\\t\\tTwo sets of fine clothes\",\n\t\t\"  [8\\u2660] Eight of spades\\t\\tShovel\",\n\t\t\"  [9\\u2660] Nine of spades\\t\\tLight hammer\",\n\t\t\"[10\\u2660] Ten of spades\\t\\tTen arrows\"\n\t],\n\t\"deck of many more things\" : {\n\t\tfeatures : [\n\t\t\t\"Like the Deck of Many Things, the Deck of Many More Things manifests differently on various worlds. While it can include fewer or different cards, it frequently appears with a Deck of Many Things as part of a combined deck of sixty-six illuminated cards. The combined deck is usually protected by a box or pouch. The forty-four cards of the Deck of Many More Things bear similar imagery to those in the Deck of Many Things and have potent magical effects, which are detailed later in this description. Notably, cards from the Deck of Many More Things are more likely to be beneficial, though about a third of them are still dangerous.\",\n\t\t\t\"Before you draw a card, you must declare how many cards you intend to draw and then draw them randomly. Unless a card allows you to draw additional cards, any cards drawn exceeding this number have no effect.\",\n\t\t\t\"As soon as you draw a card, its magic takes effect. You must draw each card you declared no more than 1 hour after the previous draw. Unless a card states otherwise, if you fail to draw the chosen number, the remaining number of cards fly from the deck and take effect simultaneously.\",\n\t\t\t\"Unless it is the Fool or the Jester card, a drawn card immediately takes effect, fades from existence, and reappears in the deck, making it possible to draw the same card multiple times.\",\n\t\t\t\"The DM can use the physical cards provided in The Deck of Many Things card set to build a combined Deck of Many Things and Deck of Many More Things, including whichever cards they desire. Alternatively, roll on the Deck of Many More Things table below to randomly determine what cards are drawn.\",\n\t\t\t\"\\n1d100\\tCard\"+\t\"\\t\\t1d100\\tCard\",\n\t\t\t\"01\\tAberration\"+\t\"\\t\\t   34\\tMine\",\n\t\t\t\"02\\tBalance*\"+\t\t\"\\t\\t   35\\tMonstrosity\",\n\t\t\t\"03\\tBeast\"+\t\t\"\\t\\t   36\\tMoon*\",\n\t\t\t\"04\\tBook\"+\t\t\t\"\\t\\t   37\\tOoze\",\n\t\t\t\"05\\tBridge\"+\t\t\"\\t\\t   38\\tPath\",\n\t\t\t\"06\\tCampfire\"+\t\t\"\\t\\t   39\\tPit\",\n\t\t\t\"07\\tCavern\"+\t\t\"\\t\\t   40\\tPlant\",\n\t\t\t\"08\\tCelestial\"+\t\"\\t\\t   41\\tPriest\",\n\t\t\t\"09\\tComet*\"+\t\t\"\\t\\t   42\\tPrisoner\",\n\t\t\t\"10\\tConstruct\"+\t\"\\t\\t   43\\tPuzzle*\",\n\t\t\t\"11\\tCorpse\"+\t\t\"\\t\\t   44\\tRing\",\n\t\t\t\"12\\tCrossroads\"+\t\"\\t\\t   45\\tRogue*\",\n\t\t\t\"13\\tDonjon*\"+\t\t\"\\t\\t   46\\tRuin*\",\n\t\t\t\"14\\tDoor\"+\t\t\t\"\\t\\t   47\\tSage*\",\n\t\t\t\"15\\tDragon\"+\t\t\"\\t\\t   48\\tShield\",\n\t\t\t\"16\\tElemental\"+\t\"\\t\\t   49\\tShip\",\n\t\t\t\"17\\tEuryale*\"+\t\t\"\\t\\t   50\\tSkull*\",\n\t\t\t\"18\\tExpert\"+\t\t\"\\t\\t   51\\tStaff\",\n\t\t\t\"19\\tFates*\"+\t\t\"\\t\\t   52\\tStairway\",\n\t\t\t\"20\\tFey\"+\t\t\t\"\\t\\t   53\\tStar*\",\n\t\t\t\"21\\tFiend\"+\t\t\"\\t\\t   54\\tStatue\",\n\t\t\t\"22\\tFlames*\"+\t\t\"\\t\\t   55\\tSun*\",\n\t\t\t\"23\\tFool*\"+\t\t\"\\t\\t   56\\tTalons*\",\n\t\t\t\"24\\tGem*\"+\t\t\t\"\\t\\t   57\\tTavern\",\n\t\t\t\"25\\tGiant\"+\t\t\"\\t\\t   58\\tTemple\",\n\t\t\t\"26\\tHumanoid\"+\t\t\"\\t\\t   59\\tThrone*\",\n\t\t\t\"27\\tJester*\"+\t\t\"\\t\\t   60\\tTomb\",\n\t\t\t\"28\\tKey*\"+\t\t\t\"\\t\\t   61\\tTower\",\n\t\t\t\"29\\tKnight*\"+\t\t\"\\t\\t   62\\tTree\",\n\t\t\t\"30\\tLance\"+\t\t\"\\t\\t   63\\tUndead\",\n\t\t\t\"31\\tMage\"+\t\t\t\"\\t\\t   64\\tVoid*\",\n\t\t\t\"32\\tMap\"+\t\t\t\"\\t\\t   65\\tWarrior\",\n\t\t\t\"33\\tMaze\"+\t\t\t\"\\t\\t   66\\tWell\",\n\t\t\t\"67-00\\tRoll again\\n\",\n\t\t\t\"* Found in the Deck of Many Things as depicted in the Dungeon Master's Guide\"\n\t\t],\n\t\tcards : [\n\t\t\t\">>Aberration<<. You gain telepathy within a range of 90 feet.\",\n\t\t\t\">>Beast<<. You immediately transform into a random Beast with a CR of 5 or lower. Your game statistics—including your ability scores, hit points, and possible actions—are replaced by the Beast's game statistics, and any nonmagical equipment you're wearing or carrying melds into your new form and can't be used. Any magic items you're carrying drop in an unoccupied space within 5 feet of your new form.\"+\n\t\t\t\"\\n   You remain transformed in this way for 2d12 days; nothing can alter your form while you're under the effects of this card, but the Wish spell can end the transformation early. When you revert to your normal form, you return to the same state you were in when you initially transformed.\",\n\t\t\t\">>Book<<. You gain the ability to speak, read, and write 1d6 + 2 languages of your choice.\",\n\t\t\t\">>Bridge<<. You gain the ability to cast the Time Stop spell 1d3 times. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Campfire<<. You immediately gain the benefits of finishing a long rest.\",\n\t\t\t\">>Cavern<<. You gain a climbing speed equal to your walking speed. You also gain the ability to move up, down, across vertical surfaces, and along ceilings, while leaving your hands free.\",\n\t\t\t\">>Celestial<<. You sprout a pair of softly luminescent, feathered wings from your back and gain a flying speed of 30 feet.\",\n\t\t\t\">>Construct<<. A homunculus appears in an unoccupied space within 5 feet of you. The appearance of the homunculus is determined by the DM, and the homunculus treats you as its creator.\",\n\t\t\t\">>Corpse<<. You immediately drop to 0 hit points, have the unconscious condition, and must begin making death saving throws. Spells and other magical effects that restore hit points have no effect on you until you are stabilized. If you fail three death saving throws, you die and can be resurrected only by the Wish spell.\",\n\t\t\t\">>Crossroads<<. Roll a d20. If the roll is even, you age 1d10 years. If the roll is odd, you become younger by 1d10 years, to a minimum of 1 year. This effect can be undone only by the Wish spell, divine intervention, or similar magic.\",\n\t\t\t\">>Door<<. You gain the ability to cast the Gate spell 1d4 times, requiring no material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Dragon<<. A dragon egg appears at your feet and immediately hatches into a dragon wyrmling. The type of dragon is chosen by the DM. The wyrmling views you as its parent and is staunchly loyal to you and your allies.\",\n\t\t\t\">>Elemental<<. You become immune to one of the following damage types (choose immediately upon drawing this card): acid, cold, fire, lightning, or thunder.\",\n\t\t\t\">>Expert<<. Your Dexterity score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Fey<<. A fey crossing opens into the Feywild, and you're immediately pulled through it, disappearing in a flash of rainbow-colored light. You draw no more cards.\"+\n\t\t\t\"\\n   The fey crossing appears as a shimmering fractal of light above the deck, and it remains open for 1 minute after the card is drawn. The precise location in the Feywild to which the fey crossing leads is determined by the DM.\",\n\t\t\t\">>Fiend<<. A powerful Fiend appears in a nearby unoccupied space and offers you a deal.[[ The precise nature of this deal is up to the DM, but usually the Fiend offers some material reward in exchange for you and your allies completing a task for the Fiend.]] The Fiend is indifferent to you and can be bargained with; it keeps its side of any bargain it makes, though it might twist the wording of any agreement to suit its purposes. If attacked, or if negotiations fail and you refuse the Fiend's offer, it returns to its home plane.\",\n\t\t\t\">>Giant<<. You immediately grow 2d10 inches in height, and your hit point maximum and current hit points both increase by 20.\",\n\t\t\t\">>Humanoid<<. You can immediately choose to stop drawing from the deck, regardless of how many cards you initially declared.\",\n\t\t\t\">>Lance<<. All your ability scores increase by 1, to a maximum of 20.\",\n\t\t\t\">>Mage<<. Your Intelligence score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Map<<. At any time you choose within 1 year of drawing this card, you can mentally name or describe an object or individual that is familiar to you. You immediately know the location of the object or individual, as well as the distance between you and the object or individual, even if the object or individual is on a different plane of existence. If you named an individual, you know if they are alive and any conditions they have. If you named an object, you know if it is broken or not. If you named a magic item that has charges, you know how many charges it has remaining.\",\n\t\t\t\">>Maze<<. You gain 1d3 levels of exhaustion.\",\n\t\t\t\">>Mine<<. A pile of 2d6 gems (each worth 5,000 gp) and 1d10 chunks of precious ore (each worth 2,500 gp) appears at your feet.\"\n\t\t],\n\t\tcards2 : [\n\t\t\t\">>Monstrosity<<. A Large or larger Monstrosity with a challenge rating of 10 or less (chosen by the DM) appears in an unoccupied space within 15 feet of you. The creature is hostile toward you and attacks immediately. The creature disappears when it is killed or when you are reduced to 0 hit points. If there isn't enough space for a Large or larger creature to appear, this card has no effect.\",\n\t\t\t\">>Ooze<<. A gelatinous cube immediately appears in your space and engulfs you. The gelatinous cube is hostile and remains until it is destroyed. If there isn't enough space for the gelatinous cube to appear, this card has no effect.\",\n\t\t\t\">>Path<<. Your walking speed increases by 10 feet.\",\n\t\t\t\">>Pit<<. A pit opens beneath you. You plummet 3d6 \\xD7 10 feet, take damage from the fall, and have the prone condition.\",\n\t\t\t\">>Plant<<. You gain the ability to cast Speak with Plants without using a spell slot; you must finish a long rest before you can cast it this way again. If you have spell slots of 3rd level or higher, you can cast this spell using them. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Priest<<. Your Wisdom score increases by 2, to a maximum of 22.\",\n\t\t\t\">>Prisoner<<. Glowing chains made of magical force appear and wrap around you. You have the restrained condition until the chains are destroyed or you are freed. While you have this condition, you can't cast spells, and any magic items you're wearing or carrying have their properties suppressed. You draw no more cards. The chains are immune to damage and can't be dispelled using the Dispel Magic spell or similar magic. However, a Disintegrate spell destroys the chains instantly, freeing you. Another creature can also free you by succeeding on a DC 30 Dexterity check using thieves' tools.\",\n\t\t\t\">>Ring<<. A rare or rarer magic ring appears on your finger. If you have the attunement slots available, you're automatically attuned to the ring when it appears. The DM chooses the ring.\",\n\t\t\t\">>Shield<<. A rare or rarer suit of magic armor that you are proficient with appears in your hands. The DM chooses the armor. If you lack proficiency with any armor, your base AC instead now equals 12 + your Dexterity modifier while you aren't wearing armor.\",\n\t\t\t\">>Ship<<. You gain proficiency in three skills chosen by the DM.\",\n\t\t\t\">>Staff<<. A rare or rarer magic rod, staff, or wand appears in your hands. The DM chooses the item.\",\n\t\t\t\">>Stairway<<. You can choose to either decrease your number of declared draws by two or receive a rare or rarer wondrous item, which appears in your hands. The DM chooses the item.\",\n\t\t\t\">>Statue<<. You immediately have the petrified condition as your body is transformed into marble. The petrification lasts until you are freed with the Greater Restoration spell or similar magic.\",\n\t\t\t\">>Tavern<<. Your Charisma score increases by 2 to a maximum of 22.\",\n\t\t\t\">>Temple<<. A deity or entity of similar power becomes bound to aid you. At any point in time between drawing the card and when you die, you can use your action to call on this entity for divine intervention, and the entity is bound to answer. The parameters and nature of this intervention are chosen by the DM. If you die without having used this intervention, the deity fulfills its obligation by casting the Resurrection spell on you. Once the entity has answered your call for divine intervention or resurrected you, the entity is no longer bound to aid you.\",\n\t\t\t\">>Tomb<<. At any time you choose within 1 year of drawing this card, you can cast the True Resurrection spell once without expending a spell slot or requiring material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Tower<<. Draw two additional cards beyond your declared number of draws. The magic of these cards doesn't immediately take effect; instead, choose one of the two additional cards to keep, returning the other to the deck. The magic of the card you keep takes effect immediately thereafter.\",\n\t\t\t\">>Tree<<. Your skin immediately becomes rough, like tree bark. Your base AC now equals 15 + your Dexterity modifier while you aren't wearing armor, but you have vulnerability to fire damage. This transformation can be undone only by the Wish spell, divine intervention, or similar magic.\",\n\t\t\t\">>Undead<<. Somewhere on the Material Plane, a revenant rises. This revenant blames you for its existence and relentlessly hunts you to exact its revenge. The revenant exists until either 1 year passes, the revenant kills you, or you use a Wish spell to banish it permanently to the afterlife.\",\n\t\t\t\">>Warrior<<. Your Strength score increases by 2 to a maximum of 22.\",\n\t\t\t\">>Well<<. You learn three cantrips of your choice from any spell list.\"\n\t\t]\n\t},\n\t\"deck of wild cards\" : [\n\t\t\"This deck of heavy vellum cards hums with the magic of the Elemental Chaos.\",\n\t\t\"The magic of the deck functions only if cards are drawn at random (a deck of real-world playing cards can simulate the deck). As an action, you can draw a random card from this deck and throw it to make a ranged spell attack, using Dexterity for the attack roll. The card has a range of 30 feet. On a hit, it deals 1d4 slashing damage and imposes a magical effect determined by its suit, as detailed in the table below. The card immediately returns to the deck after it hits or misses a target.\\n\",\n\t\t\"d4\\tSuit\\tEffect\",\n\t\t\" 1\\t\\u2663 (Rods)\\tThe card explodes in a burst of fire. The target and each creature within 5 feet of it must succeed on a DC 15 Dexterity saving throw or take 2d8 fire damage.\",\n\t\t\" 2\\t\\u2666 (Coins)\\tThe card shoots streaks of lightning. The target must make a DC 15 Dexterity saving throw. On a failed save, the target has the blinded condition until the end of your next turn, and each creature within 10 feet of the target takes 1d6 lightning damage.\",\n\t\t\" 3\\t\\u2665 (Cups)\\tThe card covers the target in a thick layer of ice. The target takes 1d10 cold damage and must succeed on a DC 15 Constitution saving throw or have the restrained condition until the end of your next turn.\",\n\t\t\" 4\\t\\u2660 (Swords)\\tThe card unleashes a sharp, concussive blast. The target and each creature within 5 feet of it take 1d6 force damage and must succeed on a DC 15 Strength saving throw or have the prone condition.\"\n\t],\n\t\"deck of wonder\" : {\n\t\tfeatures : [\n\t\t\t\"Created in the image of the Deck of Many Things, this deck of ivory or vellum cards bestows an assortment of minor benefits and penalties on those who draw from it. Most (75 percent) of these decks have only thirteen cards, but the rest have twenty-two.\",\n\t\t\t\"Before you draw a card, you must declare how many cards you intend to draw, then draw them randomly. Any additional cards drawn have no effect. Unless a card states otherwise, as soon as you draw a card from the deck, its magic takes effect. You must draw each card you declared no more than 1 hour after the previous draw. If you fail to draw the chosen number, the remaining number of cards fly from the deck and take effect simultaneously.\",\n\t\t\t\"Unless it is the Mystery card, a drawn card immediately takes effect, fades from existence, and reappears in the deck, making it possible to draw the same card multiple times.\",\n\t\t\t\"You can use an altered deck of playing cards to simulate the deck, as shown in the table below.\",\n\t\t\t\"\\n1d13\\t1d22\\tPlaying Card\\t\\tCard\",\n\t\t\t\"\\t   1\\t[A\\u2666] Ace of diamonds\\t\\tChancellor*\",\n\t\t\t\"1\\t   2\\t[K\\u2666] King of diamonds\\t\\tDay\",\n\t\t\t\"2\\t   3\\t[Q\\u2666] Queen of diamonds \\tNight\",\n\t\t\t\"3\\t   4\\t[J\\u2666] Jack of diamonds\\t\\tDawn\",\n\t\t\t\"\\t   5\\t[2\\u2666] Two of diamonds\\t\\tDusk*\",\n\t\t\t\"\\t   6\\t[A\\u2665] Ace of hearts\\t\\tDestiny*\",\n\t\t\t\"4\\t   7\\t[K\\u2665] King of hearts\\t\\tCrown\",\n\t\t\t\"5\\t   8\\t[Q\\u2665] Queen of hearts\\t\\tLock\",\n\t\t\t\"6\\t   9\\t[J\\u2665] Jack of hearts\\t\\tChampion\",\n\t\t\t\"\\t   10\\t[2\\u2665] Two of hearts\\t\\tCoin*\",\n\t\t\t\"\\t   11\\t[A\\u2663] Ace of clubs\\t\\tVulture*\",\n\t\t\t\"7\\t   12\\t[K\\u2663] King of clubs\\t\\tChaos\",\n\t\t\t\"8\\t   13\\t[Q\\u2663] Queen of clubs\\t\\tOrder\",\n\t\t\t\"9\\t   14\\t[J\\u2663] Jack of clubs\\t\\tBeginning\",\n\t\t\t\"\\t   15\\t[2\\u2663] Two of clubs\\t\\tMystery*\",\n\t\t\t\"\\t   16\\t[A\\u2660] Ace of spades\\t\\tIsolation*\",\n\t\t\t\"10\\t   17\\t[K\\u2660] King of spades\\t\\tEnd\",\n\t\t\t\"11\\t   18\\t[Q\\u2660] Queen of spades\\t\\tMonster\",\n\t\t\t\"12\\t   19\\t[J\\u2660] Jack of spades\\t\\tKnife\",\n\t\t\t\"\\t   20\\t[2\\u2660] Two of spades\\t\\tJustice*\",\n\t\t\t\"\\t   21\\tJoker (with TM)\\t\\tStudent*\",\n\t\t\t\"13\\t   22\\tJoker (no TM)\\t\\tMischief\\n\",\n\t\t\t\"* Found only in a deck with twenty-two cards\"\n\t\t],\n\t\tcards : [\n\t\t\t\">>Beginning<<. Your hit point maximum and current hit points increase by 2d10. Your hit point maximum remains increased in this way for the next 8 hours.\",\n\t\t\t\">>Champion<<. You gain a +1 bonus to weapon attack and damage rolls. This bonus lasts for 8 hours.\",\n\t\t\t\">>Chancellor<<. Within 8 hours of drawing this card, you can cast Augury once as an action, requiring no material components. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Chaos<<. You gain resistance to one of the following damage types (chosen by the DM): acid, cold, fire, lightning, or thunder. This resistance lasts for 1d12 days.\",\n\t\t\t\">>Coin<<. Five pieces of jewelry, each worth 100 gp, or ten gemstones, each worth 50 gp, appear at your feet.\",\n\t\t\t\">>Crown<<. You learn the Friends cantrip. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice). If you already know this cantrip, the card has no effect.\",\n\t\t\t\">>Dawn<<. This card invigorates you. For the next 8 hours, you can add your proficiency bonus to your initiative rolls.\",\n\t\t\t\">>Day<<. You gain a +1 bonus to saving throws. This benefit lasts until you finish a long rest.\",\n\t\t\t\">>Destiny<<. This card protects you against an untimely demise. The first time after drawing this card that you would drop to 0 hit points from taking damage, you instead drop to 1 hit point.\",\n\t\t\t\">>Dusk<<. This card supernaturally saps your energy. You have disadvantage on initiative rolls. This effect lasts until you finish a long rest, but it can be ended early by a Remove Curse spell or similar magic.\",\n\t\t\t\">>End<<. This card is an omen of death. You take 2d10 necrotic damage, and your hit point maximum is reduced by an amount equal to the damage taken. This effect can't reduce your hit point maximum below 10 hit points. This reduction lasts until you finish a long rest, but it can be ended early by a Remove Curse spell or similar magic.\",\n\t\t\t\">>Isolation<<. You disappear, along with anything you are wearing or carrying, and become trapped in a harmless extradimensional space for 1d4 minutes. You draw no more cards. You then reappear in the space you left or the nearest unoccupied space. When you reappear, you must succeed on a DC 11 Constitution saving throw or have the poisoned condition for 1 hour as your body reels from the extradimensional travel.\",\n\t\t\t\">>Justice<<. You momentarily gain the ability to balance the scales of fate. For the next 8 hours, whenever you or a creature within 60 feet of you is about to roll a d20 with advantage or disadvantage, you can use your reaction to prevent the roll from being affected by advantage or disadvantage.\",\n\t\t\t\">>Knife<<. An uncommon magic weapon you're proficient with appears in your hands. The DM chooses the weapon.\",\n\t\t\t\">>Lock<<. You gain the ability to cast Knock 1d3 times. Use your Intelligence, Wisdom, or Charisma as the spellcasting ability (your choice).\",\n\t\t\t\">>Mischief<<. You receive an uncommon wondrous item (chosen by the DM), or you can draw two additional cards beyond your declared draws.\",\n\t\t\t\">>Monster<<. This card's monstrous visage curses you. While cursed in this way, whenever you make a saving throw, you must roll 1d4 and subtract the number rolled from the total. The curse lasts until you finish a long rest, but it can be ended early with a Remove Curse spell or similar magic.\",\n\t\t\t\">>Mystery<<. You have disadvantage on Intelligence saving throws for 1 hour. Discard this card and draw from the deck again; together, the two draws count as one of your declared draws.\",\n\t\t\t\">>Night<<. You gain darkvision within a range of 300 feet. This darkvision lasts for 8 hours.\",\n\t\t\t\">>Order<<. You gain resistance to one of the following damage types (chosen by the DM): force, necrotic, poison, psychic, or radiant. This resistance lasts for 1d12 days.\",\n\t\t\t\">>Student<<. You gain proficiency in Wisdom saving throws. If you already have this proficiency, you instead gain proficiency in Intelligence or Charisma saving throws (your choice).\",\n\t\t\t\">>Vulture<<. One nonmagical item or piece of equipment in your possession (chosen by the DM) disappears. The item remains nearby but concealed for a short time, so it can be found with a successful DC 15 Wisdom (Perception) check. If the item isn't recovered within 1 hour, it disappears forever.\"\n\t\t]\n\t}\n}\n\nMagicItemsList[\"antimagic armor\"] = {\n\tname : \"Antimagic Armor\",\n\tnameTest : /antimagic.*armou?r/i,\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"While wearing this armor, once per dawn I can cast Antimagic Field, requiring no spell components. In addition, as a reaction once per dawn, I can give myself advantage on a saving throw I make against a spell.\",\n\tdescriptionFull : \"While wearing this armor, you can use your reaction to give yourself advantage on a saving throw you make against a spell. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   In addition, while you wear this armor, you can use it to cast Antimagic Field, requiring no spell components. Once this property is used, it can't be used again until the next dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Antimagic\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Antimagic\"]\n\t},\n\taction : [[\"reaction\", \"Adv. save vs. spell (1\\xD7 per dawn)\"]],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"antimagic field\"],\n\t\tselection : [\"antimagic field\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Adv. save vs. spell (Antimagic Armor)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Antimagic Field (Antimagic Armor)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tspellChanges : {\n\t\t\"antimagic field\" : {\n\t\t\tcomponents : \"\",\n\t\t\tcompMaterial : \"\",\n\t\t\tchanges : \"While wearing the armor, it requires no components to cast Antimagic Field.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"armor of fungal spores\"] = {\n\tname : \"Armor of Fungal Spores\",\n\tnameTest : \"of Fungal Spores\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (medium)\",\n\trarity : \"uncommon\",\n\tdescription : \"As a bonus action once per dawn while wearing this armor, I can make it emit poisonous spores. These spores fill a 10-ft radius sphere centered on myself. Each creature in that area must make a DC 15 Constitution save or be poisoned until the end of my next turn.\",\n\tdescriptionFull : \"While wearing this armor, you can take a bonus action to make the armor emit poisonous spores, which fill a 10-foot-radius sphere centered on yourself. Each creature in that area must succeed on a DC 15 Constitution saving throw or have the poisoned condition until the end of your next turn. Once this property is used, it can't be used again until the next dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/medium/i.test(inObj.type);\n\t\t}\n\t},\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"armor of the fallen\"] = {\n\tname : \"Armor of the Fallen\",\n\tnameTest : \"of the Fallen\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (medium or heavy)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"While wearing this armor, I can use it to cast either Animate Dead or Speak with Dead. Once the armor has cast a spell in this way, it can't cast either spell until the next dawn. My soul keeps this armor together. If I die while attuned to the armor, the armor is destroyed.\",\n\tdescriptionFull : \"While wearing this armor, you can use it to cast either Speak with Dead or Animate Dead. Once the armor has cast a spell in this way, it can't cast either spell until the next dawn.\"+\n\t\"\\n   Your soul keeps this armor together. If you die while you are attuned to the armor, the armor is destroyed.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy|medium/i.test(inObj.type);\n\t\t}\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"either or\",\n\t\tspells : [\"animate dead\", \"speak with dead\"],\n\t\tselection : [\"animate dead\", \"speak with dead\"],\n\t\tfirstCol : \"SP\",\n\t\ttimes : 2\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"armor of weightlessness\"] = {\n\tname : \"Armor of Weightlessness\",\n\tnameTest : \"of Weightlessness\",\n\tsource : [[\"BoMT\", 65]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This armor has 5 charges, regaining 1d4+1 expended charges daily at dawn. As a bonus action while wearing it, I can expend 1 or more charges to cast Jump (1 charge) or Levitate (2 charges) on myself.\",\n\tdescriptionFull : \"This armor has 5 charges. While you wear it, you can use a bonus action to expend 1 or more charges to cast one of the following spells from the armor, targeting yourself: Jump (1 charge) or Levitate (2 charges).\"+\n\t\"\\n   This armor regains 1d4 + 1 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"prefix\", \"armor\"]\n\t},\n\tusages : 5,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge (self only)\",\n\t\tspells : [\"jump\"],\n\t\tselection : [\"jump\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges (self only)\",\n\t\tspells : [\"levitate\"],\n\t\tselection : [\"levitate\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"jump\" : {\n\t\t\tname : \"Jump (self only)\",\n\t\t\ttime : \"1 bns\",\n\t\t\trange : \"Self\",\n\t\t\tdescription : \"My jump distance is tripled for the duration\",\n\t\t\tchanges : \"Using the Armor of Weightlessness, I can cast Jump as a bonus action, but only on myself.\"\n\t\t},\n\t\t\"levitate\" : {\n\t\t\tname : \"Levitate (self only)\",\n\t\t\ttime : \"1 bns\",\n\t\t\trange : \"Self\",\n\t\t\tsave : \"\",\n\t\t\tdescription : \"I float and move up vertically up to 20 ft; As part of my move each round, I can move up/down 20 ft\",\n\t\t\tchanges : \"Using the Armor of Weightlessness, I can cast Levitate as a bonus action, but only on myself.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"baleful talon\"] = {\n\tname : \"Baleful Talon\",\n\tsource : [[\"BoMT\", 34]], // Chapter 5: Gem\n\ttype : \"weapon (dagger)\",\n\trarity : \"very rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this hooked, obsidian dagger. When I hit a creature with it and roll a 19 or 20 to hit, the dagger flares with sickly light and deals +6d6 necrotic damage. The creature can make a DC 15 Con save to halve the damage. It turns to dust if this reduces its HP to 0.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this hooked, obsidian dagger.\"+\n\t\"\\n   When you hit a creature with this magic weapon and roll a 19 or 20 on the attack roll, the creature must make a DC 15 Constitution saving throw as the dagger flares with sickly light. The creature takes 6d6 necrotic damage on a failed save, or half as much on a successful one. If this damage reduces the creature to 0 hit points, the creature disintegrates into dust.\",\n\tweight : 1,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*baleful)(?=.*talon).*$/i,\n\t\tname : \"Baleful Talon\",\n\t\tsource : [[\"BoMT\", 34]],\n\t\tdescription : \"Finesse, light, thrown; Roll of 19-20: +6d6 necrotic damage, DC 15 Con save halves\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"blasted goggles\"] = {\n\tname : \"Blasted Goggles\",\n\tsource : [[\"BoMT\", 174]], // Chapter 20: Flames\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"These tinker's goggles have 3 charges, regaining 1d3 daily at dawn. As an action, I can use 1 charge to shoot a beam of light: a creature I can see within 120 ft must make a DC 15 Dexterity save or take 3d6 fire damage. If this is a natural 20, I'm blinded for 24 hours. Cursed: I can't remove these or end attunement.\",\n\tdescriptionFull : \"These tinker's goggles have 3 charges. As an action, you can expend 1 charge to shoot a beam of fiery light from the goggles at a creature you can see within 120 feet of yourself. The target must succeed on a DC 15 Dexterity saving throw or take 3d6 fire damage. The goggles regain 1d3 expended charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Cursed\") + \". The goggles are cursed, and becoming attuned to them extends the curse to you. You can't remove the goggles or end your attunement to them until you are targeted by a Remove Curse spell or similar magic.\"+\n\t\"\\n   Whenever you use the goggles' fiery beam and the target rolls a 20 on the d20 for the saving throw, the goggles expose you to a flash of violent bright light. As a result, you have the blinded condition for 24 hours.\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\"\n};\nMagicItemsList[\"bloodrage greataxe\"] = {\n\tname : \"Bloodrage Greataxe\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (greataxe)\",\n\trarity : \"uncommon\",\n\tdescription : \"I gain a +2 bonus to attack and damage rolls made with this magic greataxe while I have half my hit points or fewer.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic greataxe while you have half your hit points or fewer.\",\n\tweight : 7,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"greataxe\",\n\t\tregExpSearch : /^(?=.*bloodrage)(?=.*(great|heavy|weida))(?=.*(axe|\\bono|\\bfu|masakari)s?\\b).*$/i,\n\t\tname : \"Bloodrage Greataxe\",\n\t\tsource : [[\"BoMT\", 66]],\n\t\tdescription : \"Heavy, two-handed; If I'm \\u2264 \\u00BD HP: +2 to hit \\u0026 damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"bloodseeker ammunition\"] = {\n\tname : \"Bloodseeker Ammunition\",\n\tnameTest : \"Bloodseeker\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"very rare\",\n\tdescription : \"Ranged attack rolls made with this magic ammunition have advantage against any creature doesn't have all its hit points.\",\n\tdescriptionFull : \"Ranged attack rolls made with this ammunition have advantage against any creature doesn't have all its hit points.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"boomerang shield\"] = {\n\tname : \"Boomerang Shield\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"shield\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"I can make a ranged weapon attack with this magic shield. It reappears in my hand the instant after it hits or misses a target. It has a range of 20 ft and a long range of 60 ft, uses Strength or Dexterity (my choice), I add my proficiency bonus if I'm proficient with shields, and it deals 1d6 slashing damage.\",\n\tdescriptionFull : \"You can make a ranged weapon attack with this magic shield. It has a normal range of 20 feet and a long range of 60 feet, and it uses your Strength or Dexterity for the attack roll (your choice). If you're proficient with shields, you are proficient with attacks made using this shield. On a hit, it deals 1d6 slashing damage. If you throw the shield, it reappears in your hand the instant after it hits or misses a target.\",\n\tweight : 6,\n\tshieldAdd : \"Boomerang Shield\",\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*boomerang)(?=.*shield).*$/i,\n\t\tname : \"Boomerang Shield\",\n\t\tsource : [[\"BoMT\", 66]],\n\t\tability : 1,\n\t\ttype : \"Shield\",\n\t\tdamage : [1, 6, \"slashing\"],\n\t\trange : \"20/60 ft\",\n\t\tweight : 6,\n\t\tdescription : \"Finesse, thrown; Reappears instantly\", // Not actually finesse, but easier to code this way and shouldn't cause any issues\n\t\tabilitytodamage : true,\n\t\tselectNow : true\n\t}],\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.theWea.name === \"Boomerang Shield\" && tDoc.getField(\"Proficiency Shields\").isBoxChecked(0)) {\n\t\t\t\t\tfields.Proficiency = true;\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n};\nMagicItemsList[\"bow of conflagration\"] = {\n\tname : \"Bow of Conflagration\",\n\tnameTest : \"of Conflagration\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any bow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"Ammunition fired from this bow blazes brightly. When I hit with an attack roll using this bow, the target takes an extra 1d6 fire damage. If the target is a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of my turns until a creature uses an action to extinguish the flames.\",\n\tdescriptionFull : \"Ammunition fired from this bow blazes brightly. When you hit with an attack roll using this bow, the target takes an extra 1d6 fire damage. If the target is a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of your turns until a creature uses an action to extinguish the flames.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /conflagration/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 fire damage; ignites target object';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Conflagration\" in the name of a bow, it will be treated as the magic weapon Bow of Conflagration. The bow deals an extra 1d6 fire damage. If I target and hit a flammable, nonmagical object, it catches fire, taking 1d6 fire damage at the start of each of my turns until a creature uses an action to extinguish the flames.'\n\t\t]\n\t}\n};\nMagicItemsList[\"bow of melodies\"] = {\n\tname : \"Bow of Melodies\",\n\tnameTest : \"of Melodies\",\n\tsource : [[\"BoMT\", 66]], // Chapter 9: Knight\n\ttype : \"weapon (any bow)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This bow has multiple strings. I can use these to play one of two melodies on each attack, imbuing it with magic. Melody of Precision: If I'm proficient with Performance, I add +1 (+2 if expertise) to the attack roll. Melody of Reverberation: the attack deals my Charisma modifier in extra thunder damage.\",\n\tdescriptionFull : \"This bow has multiple strings and resembles a lyre or small harp. By strumming the strings while setting an arrow to the bow, you imbue the arrow with magic.\"+\n\t\"\\n   You can play one of the following melodies when you use the bow to make a ranged weapon attack. You must choose to do so before you make the attack roll, and you can play only one melody per attack.\"+\n\t\"\\n   \" + toUni(\"Melody of Precision\") + \". If you're proficient in Performance, you gain a +1 bonus to the attack roll. If you have expertise in Performance, you gain a +2 bonus instead.\"+\n\t\"\\n   \" + toUni(\"Melody of Reverberation\") + \". The melody you strum echoes loudly. On a hit, the target takes extra thunder damage equal to your Charisma modifier.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tvar chaMod = Number(What('Cha Mod'));\n\t\t\t\t// Only add a description if positive Cha Mod and Melody of Precision is not an option or Reverberation is part of the name\n\t\t\t\tif (!v.theWea.isMagicWeapon && chaMod > 0 && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*melod(ies|y))(?!.*precision).*$/i.test(v.WeaponTextName) && (/reverberation/i.test(v.WeaponTextName) || !hasSkillProf(\"Performance\")[0])) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+' + chaMod + ' (Cha mod) thunder damage';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Melody\" or \"Melodies\" in the name of a bow, it will be treated as the magic weapon Bow of Melodies. If I also include either \"Precision\" or \"Reverberation\" in the name, the respective bonus will be added. if I include neither of those in the name, the bonus will be determined automatically, the Melody of Precision if proficient with Performance (+1 or +2 bonus to hit) or Melody of Reverberation otherwise (+Cha mod thunder damage).'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\t// Add to hit bonus if name doesn't include Reverberation. Will be zero if not proficient in Performance\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*melod(ies|y))(?!.*reverberation).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tvar perfProf = hasSkillProf(\"Performance\");\n\t\t\t\t\toutput.extraHit += perfProf[1] ? 2 : perfProf[0] ? 1 : 0;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"breastplate of balance\"] = {\n\tname : \"Breastplate of Balance\",\n\tsource : [[\"BoMT\", 34]], // Chapter 5: Gem\n\ttype : \"armor (breastplate)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This burnished copper breastplate with merchant's scales on the chest has 4 charges, regaining 1d4 at dawn. As a reaction when I or another I can see within 60 ft is about to roll a d20 with (dis)advantage, I can use 1 charge to prevent this (dis)advantage. As a bonus action, I can use 2 charges to cast Lesser Restoration.\",\n\tdescriptionFull : \"This burnished copper breastplate looks as if it were made of interlocking gears. Merchant's scales are emblazoned across the chest.\"+\n\t\"\\n   The armor has 4 charges. You can use the charges in the following ways while wearing the armor:\"+\n\t\"\\n   \" + toUni(\"Equalize\") + \". When you or a creature you can see within 60 feet of yourself is about to roll a d20 with advantage or disadvantage, you can expend 1 charge and take a reaction to prevent the roll from being affected by advantage or disadvantage.\"+\n\t\"\\n   \" + toUni(\"Expunge Imbalance\") + \". As a bonus action, you can expend 2 charges to cast the Lesser Restoration spell from the armor.\"+\n\t\"\\n   The armor regains 1d4 expended charges daily at dawn.\",\n\tweight : 20,\n\taction : [[\"reaction\", \" (if dis./adv.)\"]],\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\",\n\tarmorAdd : {\n\t\tselect : \"Breastplate of Balance\",\n\t\toptions : [\"Breastplate of Balance\"]\n\t},\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"2 charges\",\n\t\tspells : [\"lesser restoration\"],\n\t\tselection : [\"lesser restoration\"],\n\t\tfirstCol : 2\n\t}],\n\tspellChanges : {\n\t\t\"lesser restoration\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"While wearing the armor, I can use 2 of its charges to cast Lesser Restoration as a bonus action.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"card sharp's deck\"] = {\n\tname : \"Card Sharp's Deck\",\n\tsource : [[\"BoMT\", 40]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : 'The cards of this deck shimmer around the edges. As an action, I can throw a card as ranged spell attack using Dexterity. This \"Deadly Deal\" attack has 120 ft range and deals 1d8 force damage. As an action once per dawn, I can shuffle the deck to cast Spray of Cards at 3rd level with it (save DC 15).',\n\tdescriptionFull : \"The cards of this deck shimmer around the edges. While holding this deck, you can use the following properties:\"+\n\t\"\\n   \" + toUni(\"Deadly Deal\") + \". As an action, you can use this deck to make a ranged spell attack by throwing a spectral card and using Dexterity for the attack roll. The card has a range of 120 feet and deals 1d8 force damage on a hit.\"+\n\t\"\\n   \" + toUni(\"Spray of Cards\") + \". As an action, you can shuffle the deck and cast the Spray of Cards spell at 3rd level from the deck (spell save DC 15). Once the deck has cast the spell, it can't cast the spell again until the next dawn.\",\n\taction : [[\"action\", \"\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*deadly)(?=.*deal).*$/i,\n\t\tname : \"Deadly Deal\",\n\t\tsource : [[\"BoMT\", 40]],\n\t\tability : 2,\n\t\ttype : \"Spell\",\n\t\tdamage : [1, 8, \"force\"],\n\t\trange : \"120 ft\",\n\t\tdescription : \"\",\n\t\tabilitytodamage : false,\n\t\tselectNow : true\n\t}],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Spray of Cards\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"spray of cards\"],\n\t\tselection : [\"spray of cards\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"spray of cards\" : {\n\t\t\tdescription : \"All in area 3d10 Force dmg and blinded until their next turn ends; save halves \\u0026 not blinded\",\n\t\t\tdescriptionShorter : false,\n\t\t\tchanges : \"Using Card Sharp's Deck I can cast Spray of Cards at 3rd level once per dawn.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"clockwork armor\"] = {\n\tname : \"Clockwork Armor\",\n\tnameTest : /clockwork.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (heavy)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"The outside surface and internal joints of this armor whir with interlocking gears, drawing on the magic of the plane of Mechanus. The armor has 4 charges and regains 1d4 used charges daily at dawn. If I make a d20 roll while wearing it, I can expend 1 charge to change the number rolled to a 10.\",\n\tdescriptionFull : \"The outside surface and internal joints of this armor whir with interlocking gears, drawing on the orderly magic of the plane of Mechanus.\"+\n\t\"\\n   The armor has 4 charges. If you make a d20 roll while wearing this armor, you can expend 1 charge to change the number rolled to a 10. The armor regains 1d4 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Clockwork\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Clockwork\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn !/heavy/i.test(inObj.type);\n\t\t}\n\t},\n\tusages : 4,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\"\n};\nMagicItemsList[\"crown of whirling comets\"] = {\n\tname : \"Crown of Whirling Comets\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This crown has 6 charges, regaining 1d6 at dawn. As a bonus action, I can use 1 charge to fly my walking speed and hover, for 10 min. I can use 3 charges to cast Ice Storm (DC 16). As an action, I can launch one frigid starlight bolt per charge used, that each deal 2d4 cold damage to a creature I can see within 120 ft.\",\n\tdescriptionLong : \"This delicate silver tiara decorated with stellar iconography has gems on the tiara's points that detach and closely orbit my head. It has 6 charges, regaining 1d6 used charges daily at dawn. As a bonus action, I can use 1 charge to gain a flying speed equal to my walking speed and I can hover, for 10 minutes. As an action, I can expend any number of charges to launch one frigid starlight bolt per charge used to a creature I can see within 120 ft. Each bolt automatically hits and deals 2d4 cold damage. Bolts can be used to hit the same or different targets. As an action, I can use 3 charges to cast Ice Storm (save DC 16).\",\n\tdescriptionFull : \"This delicate silver tiara is decorated with stellar iconography. While you wear the crown, the gems on the tiara's points detach and closely orbit your head.\"+\n\t\"\\n   The crown has 6 charges for the following properties, which you can use while wearing the crown:\"+\n\t\"\\n   \" + toUni(\"Star Flight\") + \". As a bonus action, you can spend 1 charge to gain the power of flight for 10 minutes. For the duration, you gain a flying speed equal to your walking speed, and you can hover. While flying, you glow faintly with starlight.\"+\n\t\"\\n   \" + toUni(\"Starlight Strike\") + \". As an action, you can spend any number of charges to launch bolts of frigid starlight. You launch a number of bolts equal to the number of charges spent, and you can direct the bolts to target one creature or several, so long as all creatures are within 120 feet of you and you can see them. The bolts automatically strike their targets, and each bolt deals 2d4 cold damage.\"+\n\t\"\\n   \" + toUni(\"Whirling Hail\") + \". As an action, you can spend 3 charges and cast the Ice Storm spell (save DC 16).\"+\n\t\"\\n   The crown regains 1d6 expended charges daily at dawn.\",\n\taction : [[\"bonus action\", \" (fly)\"], [\"action\", \" (bolts)\"]],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\tfixedDC : 16,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"3 charges\",\n\t\tspells : [\"ice storm\"],\n\t\tselection : [\"ice storm\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"deck of dimensions\"] = {\n\tname : \"Deck of Dimensions\",\n\tsource : [[\"BoMT\", 40]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This deck has 6 charges, regaining 1d6 used at dawn. As a bonus action, I can use 1 charge to throw a card to an empty spot either within 60 ft and teleport to it, or within 5 ft and teleport to it once in the next 8 hours as an action. I can use 3 charges to cast Arcane Gate, but can't use the deck while the gate is active.\",\n\tdescriptionLong : \"These cards are decorated with intricate designs of different planes of existence. The deck has 6 charges, regaining 1d6 used charges daily at dawn. As a bonus action, I can use 1 charge to throw a card to an empty space either within 60 ft and teleport to it now, or within 5 ft and leave it there to use an action within the next 24 hours to speak the card's name and teleport to it. Once I teleport to a card, or 8 hours passed, the card vanishes and returns to the deck. As an action, I can use 3 charges to cast Arcane Gate, but the fluttering cards of the deck make up the gate, rendering the deck useless while it's active.\",\n\tdescriptionFull : \"The backs of the cards in this deck are decorated with intricate designs representing different planes of existence. The deck has 6 charges. While holding it, you can expend 1 or more of its charges to use the following properties:\"+\n\t\"\\n   \" + toUni(\"Marked Card\") + \". As a bonus action, you can expend 1 charge to draw a card from the deck and place it in an unoccupied space within 5 feet of you. The card then becomes marked with an invisible sigil. Once within the next 24 hours, as an action, you can speak the marked card's name and teleport to the card's location, along with any equipment you are wearing or carrying, appearing in the closest unoccupied space to the card. After you teleport in this way, or after 8 hours, the card returns to the deck, and the mark on it fades.\"+\n\t\"\\n   \" + toUni(\"Riffling Portal\") + \". As an action, you can expend 3 charges to cast the Arcane Gate spell from the deck. The deck vanishes, and fluttering cards create the spell's portal rings. When the spell ends, the deck reappears in your possession.\"+\n\t\"\\n   \" + toUni(\"Shuffling Stride\") + \". As a bonus action, you can expend 1 charge to throw a card from the deck to an unoccupied space within 60 feet of yourself and teleport, along with any equipment you're wearing or carrying, to that space. The card then vanishes and returns to the deck.\"+\n\t\"\\n   The deck regains 1d6 expended charges daily at dawn.\",\n\taction : [[\"bonus action\", \" (throw card)\"], [\"action\", \" (teleport back)\"]],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"3 charges\",\n\t\tspells : [\"arcane gate\"],\n\t\tselection : [\"arcane gate\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"deck of many more things\"] = {\n\tname : \"Deck of Many More Things\",\n\tsource : [[\"BoMT\", 51]], // Chapter 7: Sage\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tdescription : \"Before drawing cards from this deck, I must declare how many I wish to draw and then draw that number randomly. Any cards drawn in excess have no effect. When a card is drawn, its magic takes effect, it fades from existence, and, unless the card is the Fool or the Jester, reappears in the deck. See Notes page.\",\n\tdescriptionFull : \"Over the centuries since the first Deck of Many Things was created, many have sought and failed to replicate it. But some have created new cards. These forty-four additional cards are known collectively as the Deck of Many More Things. (More information on creating new cards for this deck appears in chapter 2.)\"+\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].features) +\n\t\"\\n\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].cards) +\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"deck of many more things\"].cards2),\n\ttoNotesPage : [{\n\t\tname : \"Features and Table\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].features)\n\t}, {\n\t\tname : \"Cards and Their Effects, part 1\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].cards, \"\\n\\u2022 \").replace(/Use my Int/g, \"I use my Int\").replace(/at my ft/ig, \"my feet\")\n\t}, {\n\t\tname : \"Cards and Their Effects, part 2\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of many more things\"].cards2, \"\\n\\u2022 \").replace(/Use my Int/g, \"I use my Int\").replace(/I'm not/g, \"not\")\n\t}, {\n\t\tname : \"Deck of Many Things' Cards and Effects\",\n\t\tsource : MagicItemsList[\"deck of many things\"].source,\n\t\tnote : MagicItemsList[\"deck of many things\"].toNotesPage[1].note\n\t}]\n};\nMagicItemsList[\"deck of miscellany\"] = {\n\tname : \"Deck of Miscellany\",\n\tsource : [[\"BoMT\", 41]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Each card of the 32 cards in this wooden box has an illustration of a different item or set of items. As an action, I can pick a card and throw it in an empty space within 5 ft. There it transforms into the item(s) depicted. See the table on the Notes page for the items and the associated real-world playing cards.\",\n\tdescriptionFull : \"This wooden box contains a set of thirty-two parchment cards.\"+\n\t\"\\n   The face of each card bears an illustration of a different item or set of items. As an action, you can draw a card of your choice from the deck and throw it to the ground in an unoccupied space within 5 feet of yourself. When the card hits the ground, the card permanently transforms into the item or set of items depicted on its face. An altered deck of real-world playing cards can simulate the deck, as shown in the table below.\\n\\n\" + BoMT[\"deck of miscellany\"].join(\"\\n\"),\n\taction : [[\"action\", \"\"]],\n\ttoNotesPage : [{\n\t\tname : \"Cards and Their Items\",\n\t\tnote : \"\\n   This wooden box contains a set of thirty-two parchment cards. The face of each card bears an illustration of a different item or set of items. As an action, I can pick a remaining card and throw it to the ground in an unoccupied space within 5 ft. When the card hits the ground, the card permanently transforms into the item or set of items depicted on its face.\"+\n\t\tBoMT.to1stPerson(\"\\nUsed\\t\" + BoMT[\"deck of miscellany\"].join(\"\\n  \\u2610\\t\")) // empty ballet box\n\t}]\n};\nMagicItemsList[\"deck of oracles\"] = {\n\tname : \"Deck of Oracles\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"If I spend 10 minutes consulting this deck of oracle cards when I finish a long rest, I can roll a d20 and record result. Once in the next 8 hours after a creature within 60 ft makes a check, attack roll, or save, I can use my reaction to have it use the number I rolled instead. Once per dawn, I can use these to cast Divination.\",\n\tdescriptionFull : \"The illustrations on this deck of oracle cards move or change subtly when viewed indirectly. When you finish a long rest, you can spend 10 minutes consulting the cards for an omen of the coming day. Roll a d20 and record the number rolled. Once in the next 8 hours, immediately after a creature within 60 feet of you makes an ability check, an attack roll, or a saving throw, you can use your reaction to discard the d20 roll; the creature must use the number you rolled in place of its roll.\"+\n\t\"\\n   Additionally, while holding the cards, you can cast Divination from them. Once this property is used, it can't be used again until the next dawn.\",\n\taction : [[\"reaction\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Divination\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"divination\"],\n\t\tselection : [\"divination\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"deck of wild cards\"] = {\n\tname : \"Deck of Wild Cards\",\n\tsource : [[\"BoMT\", 41]], // Chapter 6: Rogue\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"As an action, I can draw a random card from this deck of heavy vellum cards and throw it. I make a ranged spell attack using Dex with a range of 30 ft, dealing 1d4 slashing damage on a hit and one of four magical effects depending on the card drawn, see Notes page. The thrown card returns to the deck after the attack.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"deck of wild cards\"]),\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*deck)(?=.*wild)(?=.*cards?).*$/i,\n\t\tname : \"Deck of Wild Cards\",\n\t\tsource : [[\"BoMT\", 41]],\n\t\tability : 2,\n\t\ttype : \"Spell\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Also random effect on hit, see Notes page\",\n\t\tabilitytodamage : false,\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Random Card Effects\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wild cards\"])\n\t}]\n};\nMagicItemsList[\"deck of wonder\"] = {\n\tname : \"Deck of Wonder\",\n\tsource : [[\"BoMT\", 55]], // Chapter 7: Sage\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"Before drawing cards from this deck, I must declare how many I wish to draw and then draw that number randomly. Any cards drawn in excess have no effect. When a card is drawn, its magic takes effect and then it fades from existence and reappears in the deck. See Notes page.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"deck of wonder\"].features) + \"\\n\\n   \" + BoMT.toDescrFull(BoMT[\"deck of wonder\"].cards),\n\ttoNotesPage : [{\n\t\tname : \"Features and Table\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wonder\"].features)\n\t}, {\n\t\tname : \"Cards and Their Effects\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"deck of wonder\"].cards, \"\\n\\u2022 \")\n\t}]\n};\nMagicItemsList[\"donjon's sundering sphere\"] = {\n\tname : \"Donjon's Sundering Sphere\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"Attuning to this marble-size crystal sphere includes attaching it to a nonmagical melee weapon, that then becomes magical +1. It grants me adv. on saves vs. being send to another dimension. Once per dawn when I hit a creature, I can have it make a DC 16 Cha save or be stuck in a demiplane until its next turn ends.\",\n\tdescriptionLong : \"Attuning to this marble-size crystal sphere includes attaching it to the hilt of a nonmagical melee weapon weapon, that then becomes a magic weapon with a +1 bonus to attack and damage rolls. While wielding it, I have advantage on save against being send to an extradimensional space or another plane of existence. Once per dawn when I hit a creature with this weapon, I can have it make a DC 16 Charisma save or be banished to a harmless demiplane until its next turn ends. It returns to the space it left, or the nearest empty space. When I end my attunement to the sphere, it detaches from the weapon.\",\n\tdescriptionFull : \"This marble-size crystal sphere glows with extraplanar energy.\"+\n\t\"\\n   As part of attuning to this item, you press the crystal sphere to the hilt of a nonmagical melee weapon of your choice, magically attaching the sphere to the weapon. The weapon becomes a magic weapon with a +1 bonus to attack and damage rolls. While wielding this weapon, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Dimensional Anchor\") + \". You have advantage on saving throws against spells or effects that would send you to an extradimensional space, a demiplane, or another plane of existence against your will.\"+\n\t\"\\n   \" + toUni(\"Isolating Smite\") + \". When you hit a creature with this weapon, you can force the creature to make a DC 16 Charisma saving throw. On a failed save, the creature is banished to a harmless demiplane until the end of its next turn. When the banished creature returns, it reappears in the space it left or the nearest unoccupied space if that space is occupied. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   When you end your attunement to the sphere, the sphere harmlessly detaches from the weapon, and the weapon reverts to a nonmagical piece of equipment.\",\n\tsavetxt : {\n\t\tadv_vs : [\"being send to other plane/dimension\"]\n\t},\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Banish\",\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /\\bdonjon'?s\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Donjon\\'s\" in the name of a melee weapon, it will be treated as a melee weapon with the Donjon\\'s Sundering Sphere attached. It adds a +1 bonus to attack and damage rolls made with it.'\n\t\t]\n\t}\n};\nMagicItemsList[\"dried leech\"] = {\n\tname : \"Dried Leech\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"uncommon\",\n\tdescription : \"If a creature is hit by this magic ammunition, the leech animates and attaches to the target, dealing 1d4 piercing damage at the start of each of their turns. The leech detaches if it deals at least 10 damage or the target dies. Anyone can use their action to detach a leech. A detached leech dies and turns nonmagical.\",\n\tdescriptionFull : \"This leech has been dried and imbued with a mote of animating magic. If you hit a creature with a ranged attack roll using this ammunition, the leech springs to life and sinks its teeth into the target, dealing 1d4 piercing damage at the start of each of the target's turns. If the leech deals at least 10 damage or the target dies, the leech falls off. A creature, including the target, can use its action to detach the leech. Once a leech is no longer attached to its target, the leech dies and is no longer magical.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"euryale's aegis\"] = {\n\tname : \"Euryale's Aegis\",\n\tsource : [[\"BoMT\", 35]], // Chapter 5: Gem\n\ttype : \"shield\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This brass shield grants me poison resistance and petrification immunity. I can use it to cast 3 spells, each once per dawn. As a bonus action once per dawn, a target I can see within 30 ft must make a DC 20 Con save or be restrained until its next turn starts, at which point it must save again or be petrified for 24 hours.\",\n\tdescriptionLong : \"This gleaming brass shield bears a relief of the legendary medusa druid Euryale. It grants me poison resistance and immunity to being petrified. I can use it to cast 3 spells, each once per dawn: Lesser Restoration, Locate Creature, and Transport via Plants.\\nAs a bonus action once per dawn, I can try to petrify a creature I can see within 30 ft. It must make a DC 20 Constitution save or be restrained while its body turns to stone. When its next turn starts, it must then make a DC 20 Constitution save again or be petrified for 24 hours. On a successful save, the restrained condition ends.\",\n\tdescriptionFull : \"This gleaming brass shield bears a relief of the legendary medusa druid Euryale.\"+\n\t\"\\n   While wielding this shield, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Blessing of Euryale\") + \". You have resistance to poison damage and are immune to the petrified condition.\"+\n\t\"\\n   \" + toUni(\"Petrifying Heraldry\") + \". As a bonus action, you can make the front of the shield flare with a medusa's petrifying magic, causing the relief's eyes to glow brightly. Choose one creature you can see within 30 feet of you. The creature must succeed on a DC 20 Constitution saving throw, or it has the restrained condition as its body turns to stone. The restrained creature must make another DC 20 Constitution saving throw at the start of its next turn. On a failed save, the creature has the petrified condition for 24 hours. On a successful save, the restrained condition ends. Once this bonus action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". While wielding the shield, you can use an action to cast one of the following spells from it: Lesser Restoration, Locate Creature, Transport via Plants. Once you use the shield to cast a spell, the shield can't cast that spell again until the next dawn.\",\n\tweight : 6,\n\taction : [[\"bonus action\", \" - Petrify\"]],\n\tshieldAdd : \"Euryale's Aegis\",\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\timmune : [\"petrified\"]\n\t},\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"lesser restoration\", \"locate creature\", \"transport via plants\"],\n\t\tselection : [\"lesser restoration\", \"locate creature\", \"transport via plants\"],\n\t\tfirstCol : \"oncelr\",\n\t\ttimes : 3\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Euryale's Aegis - Petrify\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Euryale's Aegis (each spell once)\",\n\t\tusages : 3,\n\t\trecovery : \"dawn\"\n\t}]\n};\nMagicItemsList[\"fabulist gem\"] = {\n\tname : \"Fabulist Gem\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"As a bonus action, I can use this glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\",\n\tdescriptionFull : \"This glittering red gem is commonly found embedded in a ring or brooch.\"+\n\t\"\\n   While wearing the gem, you gain the following benefits.\"+\n\t\"\\n   \" + toUni(\"Counterfeit Coins\") + \". You can use your action to magically create a pile of coins, worth no more than 100 gp total, in an unoccupied space within 10 feet of yourself. The pile must appear on a surface that can support it. After 1 hour, the coins vanish, regardless of where they are. Once this action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Illusory Fashion\") + \". As a bonus action, you can magically change the appearance of your clothing and armor. You can change the style, color, and apparent quality of what you're wearing, or you can make it appear as if you were wearing different garments entirely. In either case, the changes wrought by this magic fail to pass physical inspection.\",\n\taction : [[\"action\", \" - Counterfeit Coins\"], [\"bonus action\", \" - Illusory Fashion\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Fabulist Gem - Counterfeit Coins\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tchoices : [\"Brooch\", \"Ring\"],\n\t\"brooch\" : {\n\t\tname : \"Fabulist Gem Brooch\",\n\t\tdescription : \"As a bonus action, I can use this brooch's glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\"\n\t},\n\t\"ring\" : {\n\t\tname : \"Fabulist Gem Ring\",\n\t\ttype : \"ring\",\n\t\tdescription : \"As a bonus action, I can use this ring's glittering red gem to change the appearance of what I'm wearing, the color, pattern, or to something different entirely. This doesn't pass physical inspection. As an action once per dawn, I can create a pile of coins up to 100 gp on a surface within 10 ft. They last for 1 hour.\"\n\t}\n};\nMagicItemsList[\"fate cutter shears\"] = {\n\tname : \"Fate Cutter Shears\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"weapon (dagger)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"The blades of these pruning shears bear many nicks and dents but still cut cleanly. They function as a magic dagger that deal +1d6 force damage. Once per dawn when I hit a creature with them, I can cut their fate. Until that target finishes a long rest, attack rolls against them score a critical hit on a roll of 19 or 20.\",\n\tdescriptionFull : \"The blades of these pruning shears bear many nicks and dents but still cut cleanly. The shears function as a magic dagger. The weapon has the following properties:\"+\n\t\"\\n   \" + toUni(\"Ever Sharp\") + \". When you hit with an attack using the shears, the target takes an extra 1d6 force damage.\"+\n\t\"\\n   \" + toUni(\"Sever Threads\") + \". When you hit a creature with the shears, you can cut that creature's fate. Until the target finishes a long rest, attack rolls against it score a critical hit on a roll of 19 or 20 on the d20. Once this property is used, it can't be used again until the next dawn.\",\n\tweight : 1,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Sever Threads\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"dagger\",\n\t\tregExpSearch : /^(?=.*fate)(?=.*cutt(er|ing))(?=.*(shears?|dagger)).*$/i,\n\t\tname : \"Fate Cutter Shears\",\n\t\tsource : [[\"BoMT\", 61]],\n\t\tdescription : \"Finesse, light, thrown; +1d6 force damage\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"fate dealer's deck\"] = {\n\tname : \"Fate Dealer's Deck\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a cleric or paladin\",\n\tprereqeval : function (v) { return classes.known.paladin || classes.known.cleric ? true : false; },\n\tdescription : \"While holding this deck, I can use it as a spellcasting focus and I gain a bonus to my spell attack rolls and spell save DC determined by its rarity: rare (+1), very rare (+2), or legendary (+3). As an action, I can draw a card and expend and roll one HD to heal or deal radiant damage to a creature within 30 ft I can see, equal to the roll and the deck's bonus.\",\n\tdescriptionFull : \"The backs of these cards are inscribed with glyphs representing the Inner Planes, the Outer Planes, or the holy symbols of various deities. While holding this deck, you can use it as a spellcasting focus, and you gain a bonus to spell attack rolls and to your spell save DC. The bonus is determined by the deck's rarity: rare (+1), very rare (+2), or legendary (+3).\"+\n\t\"\\n   In addition, while you're holding the deck, you can draw a card as an action to expend and roll one of your Hit Dice and add the deck's bonus to the number rolled. One creature you can see within 30 feet of you either takes radiant damage or regains hit points (your choice) equal to the total.\",\n\tchoices : [\"+1 Fate Dealer's Deck (rare)\", \"+2 Fate Dealer's Deck (very rare)\", \"+3 Fate Dealer's Deck (legendary)\"],\n\t\"+1 fate dealer's deck (rare)\" : {\n\t\tname : \"Fate Dealer's Deck +1\",\n\t\tnameTest : \"+1 Fate Dealer's Deck\",\n\t\trarity : \"rare\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +1 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +1.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 1;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +1 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t},\n\t\"+2 fate dealer's deck (very rare)\" : {\n\t\tname : \"Fate Dealer's Deck +2\",\n\t\tnameTest : \"+2 Fate Dealer's Deck\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +2 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +2.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 2;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +2 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t},\n\t\"+3 fate dealer's deck (legendary)\" : {\n\t\tname : \"Fate Dealer's Deck +3\",\n\t\tnameTest : \"+3 Fate Dealer's Deck\",\n\t\trarity : \"legendary\",\n\t\tdescription : \"While holding this deck, I can use it as a spellcasting focus and it gives me a +3 bonus to my spell attacks and spell save DC. As an action, I can draw a card from it and expend and roll one of my HD. I then choose a creature within 30 ft that I can see and either heal it or deal it radiant damage equal to the roll +3.\",\n\t\tcalcChanges : {\n\t\t\tspellCalc : [\n\t\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\t\tif (type !== \"prepare\") return 3;\n\t\t\t\t},\n\t\t\t\t\"While holding the Fate Dealer's Deck, I gain a +3 bonus to spell attack rolls and to the saving throw DCs of my spells.\"\n\t\t\t]\n\t\t}\n\t}\n};\nMagicItemsList[\"feywrought armor\"] = {\n\tname : \"Feywrought Armor\",\n\tnameTest : /feywrought.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"While wearing this colorful, flowery armor that was forged in the Feywild, I have advantage on saves to avoid or end the charmed condition on myself. The armor has 3 charges and regains 1d3 used charges daily at dawn. As an action, I can use 1 charge to cast Compulsion (save DC 15) from it.\",\n\tdescriptionFull : \"This colorful, flowery armor was forged in the Feywild and is infused with that plane's captivating magic.\"+\n\t\"\\n   While wearing this armor, you have advantage on saving throws you make to avoid or end the charmed condition on yourself.\"+\n\t\"\\n   This armor has 3 charges. You can use an action to expend a charge to cast the Compulsion spell (save DC 15) from this armor. The armor regains 1d3 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Feywrought\", \"Armor\"],\n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Feywrought\"]\n\t},\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tsavetxt : { adv_vs : [\"charmed\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"compulsion\"],\n\t\tselection : [\"compulsion\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"fool's blade\"] = {\n\tname : \"Fool's Blade\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"weapon (any sword)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action once per dawn, I can use this weapon +2 to feint a target within 5 ft, giving me adv. on attacks vs. it until my next turn starts. As a reaction once per dawn when a creature within 60 ft attacks me, I can have it make a DC 15 Int save or have it target another of my choice within its reach.\",\n\tdescriptionLong : \"This magic weapon appears ordinary, but bears strong illusion magic that allows me to deceive opponents. I have a +2 bonus to attack and damage rolls with it.\\nFool's Feint: As a bonus action once per dawn, I can feint a creature within 5 ft, giving me advantage on attack rolls against it until the start of my next turn.\\nMisdirect: As a reaction once per dawn when a creature within 60 ft targets me with an attack roll, I can have it make a DC 15 Intelligence save. On a failed save, the attack instead targets another creature of my choice that is within the attacker's reach.\",\n\tdescriptionFull : \"This weapon appears ordinary, but it bears strong illusion magic that allows its wielder to skillfully deceive opponents.\"+\n\t\"\\n   You have a +2 bonus to attack and damage rolls made with this magic weapon. While wielding it, you also gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Fool's Feint\") + \". As a bonus action, you can feint, choosing a creature within 5 feet of you as your target. Until the start of your next turn, you have advantage on attack rolls against the target. Once this bonus action is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Misdirect\") + \". When a creature within 60 feet of you targets you with an attack roll, you can use your reaction to require that creature to make a DC 15 Intelligence saving throw. On a failed save, the attack instead targets another creature of your choice that is within the attacker's reach. Once this reaction has been used, it can't be used again until the next dawn.\",\n\taction : [[\"bonus action\", \" - Feint\"], [\"reaction\", \" - Misdirect\"]],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"brackets\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\titemName1stPage : [\"suffix\", \"Fool's\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /\\bfool'?s\\b/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Fool\\'s\" in the name of a sword, it will be treated as the magic weapon Fool\\'s Blade. It adds a +2 bonus to attack and damage rolls made with it.'\n\t\t]\n\t}\n};\nMagicItemsList[\"forcebreaker weapon\"] = {\n\tname : \"Forcebreaker Weapon\",\n\tnameTest : \"Forcebreaker\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (any that deals bludgeoning damage)\",\n\trarity : \"very rare\",\n\tdescription : \"This magic weapon gives +2 to hit and damage. It was crafted to destroy structures made of magical force, such as a Wall of Force. With one strike with this weapon, I can shatter a Large or smaller structure of magical force, or shatter a 20-ft cube portion of a Huge or larger structure.\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic weapon.\"+\n\t\"\\n   This weapon was crafted to destroy structures made of force, such as those created by Forcecage or Wall of Force. Striking a Large or smaller structure of magical force with this weapon automatically shatters that structure. If the target is a Huge or larger structure of force, this weapon shatters a 20-foot-cube portion of it.\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar damageArr = inObj.baseWeapon && !inObj.damage ? WeaponsList[inObj.baseWeapon].damage : inObj.damage;\n\t\t\treturn !/bludg(\\.|eoning)/i.test(damageArr.toString());\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && /forcebreaker/i.test(v.WeaponTextName) && /bludg(\\.|eoning)/i.test(fields.Damage_Type)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Shatters magical force';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Forcebreaker\" in the name of a bludgeoning weapon, it will be treated as the magic weapon Forcebreaker Weapon. It adds a +2 bonus to attack and damage rolls made with it.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && /forcebreaker/i.test(v.WeaponTextName) && /bludg(\\.|eoning)/i.test(fields.Damage_Type)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 2;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"glimmering moonbow\"] = {\n\tname : \"Glimmering Moonbow\",\n\tnameTest : \"Glimmering Moon\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"weapon (any bow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This silver-and-black bow adds +1 to its to hit and damage rolls, creates its own ammo that lasts until it hits or misses a target, and deals +1d6 radiant damage. As a bonus action once per dawn, I can use it to gain resistance to piercing, bludgeoning, and slashing damage until my next turn starts, \",\n\tdescriptionFull : \"This silver-and-black bow is engraved with the phases of the moon. You gain a +1 bonus to attack and damage rolls made with this magic weapon.\"+\n\t\"\\n   When you hit with a ranged attack roll using this magic bow, the target takes an extra 1d6 radiant damage. If you load no ammunition in the weapon, it produces its own, automatically creating one piece of magic ammunition when you make a ranged attack with it. The ammunition created by the bow vanishes the instant after it hits or misses a target.\"+\n\t\"\\n   While wielding this magic bow, you can use a bonus action to enter a semi-incorporeal state until the start of your next turn. While semi-incorporeal, you have resistance to bludgeoning, piercing, and slashing damage. Once this bonus action is used, it can't be used again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"resistances\",\n\taction : [[\"bonus action\", \" (resistances)\"]],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"bow\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /bow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*glimmering)(?=.*moon).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(;|,)? ?(loading|Counts as magical)/ig, '');\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 radiant damage';\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"Glimmering\" and \"Moon\" in the name of a bow, it will be treated as the magic weapon Glimmering Moonbow. It has +1 to hit and damage, deals +1d6 radiant damage, and produces its own ammunition, thus its loading property is removed if it has it.'\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /bow/i.test(v.baseWeaponName) && /^(?=.*glimmering)(?=.*moon).*$/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t}, ''\n\t\t]\n\t}\n};\nMagicItemsList[\"gloomwrought armor\"] = {\n\tname : \"Gloomwrought Armor\",\n\tnameTest : /gloomwrought.*armou?r/i,\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"armor (light, medium, or heavy)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"While wearing this intricate grayscale armor forged in the Shadowfell, I have advantage on saves to avoid or end the frightened condition on myself. The armor has 3 charges and regains 1d3 used charges daily at dawn. As an action, I can use 1 charge to cast Calm Emotions (save DC 15) from it.\",\n\tdescriptionFull : \"This intricate grayscale armor was forged in the Shadowfell and is infused with that plane's gloom.\"+\n\t\"\\n   While you're wearing this armor, you have advantage on saving throws you make to avoid or end the frightened condition on yourself.\"+\n\t\"\\n   This armor has 3 charges. You can expend a charge to cast the Calm Emotions spell (save DC 15) from the armor. This armor regains 1d3 expended charges daily at dawn.\",\n\tchooseGear : {\n\t\ttype : \"armor\",\n\t\tprefixOrSuffix : [\"between\", \"Gloomwrought\", \"Armor\"], \n\t\tdescriptionChange : [\"prefix\", \"armor\"],\n\t\titemName1stPage : [\"suffix\", \"Gloomwrought\"]\n\t},\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"calm emotions\"],\n\t\tselection : [\"calm emotions\"],\n\t\tfirstCol : 1\n\t}]\n};\nMagicItemsList[\"grasping whip\"] = {\n\tname : \"Grasping Whip\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (whip)\",\n\trarity : \"rare\",\n\tdescription : \"I gain a +1 bonus to attack and damage rolls made with this magic whip. When I hit a creature or object that is Large or smaller with this whip, I can pull that creature or object 5 ft toward me instead of dealing damage.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic whip. When you hit a creature or object that is Large or smaller with this whip, you can pull that creature or object 5 feet toward you instead of dealing damage.\",\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"whip\",\n\t\tregExpSearch : /^(?=.*grasping)(?=.*whip).*$/i,\n\t\tname : \"Grasping Whip\",\n\t\tsource : [[\"BoMT\", 67]],\n\t\tdescription : \"Finesse, reach; Forgo damage to pull \\u2264 Large 5 ft to me\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"hammer of runic focus\"] = {\n\tname : \"Hammer of Runic Focus\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"weapon (warhammer)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"As a bonus action three times per dawn, I can slam this hammer on the ground, creating a 15-ft radius glowing circle of runes wherein it's a +3 warhammer glowing with matching runes. The rune circle disappears after 1 minute, when I create another, or when I dismiss it as a bonus action.\",\n\tdescriptionFull : \"This magic hammer has 3 charges. As a bonus action, you can expend 1 charge and slam this hammer on the ground, creating a 15-foot-radius circle of glowing runes centered on the point of impact. While you're inside that area, your hammer glows with matching runes, and you gain a +3 bonus to attack and damage rolls made with this hammer. The rune circle disappears after 1 minute, when you create another rune circle, or when you dismiss the rune circle as a bonus action. This hammer regains 1d3 expended charges daily at dawn.\",\n\tweight : 2,\n\taction : [[\"bonus action\", \" (start/end)\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"warhammer\",\n\t\tregExpSearch : /^(?=.*hammer)(?=.*runic)(?=.*focus).*$/i,\n\t\tname : \"Hammer of Runic Focus\",\n\t\tsource : [[\"BoMT\", 67]],\n\t\tdescription : \"Versatile (1d10); +2 to hit/damage while inside its circle\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"house of cards\"] = {\n\tname : \"House of Cards\",\n\tsource : [[\"BoMT\", 61]], // Chapter 8: Fates\n\ttype : \"wondrous item\",\n\trarity : \"uncommon\",\n\tdescription : \"As an action once per dawn, I can have this deck of cards deal themselves into a shelter centered on a point within 30 ft. It can be any shape that fits in a 40-ft cube, with 1 door and up to 4 windows, that only I can open or close. It has 15 AC, 50 HP, and lasts for 24 hours, I dismiss it as an action, or it reaches 0 HP.\",\n\tdescriptionLong : \"This deck of cards is decorated with geometric shapes that have a protective motif. As an action once per dawn, I can cause the cards to transform into a shelter made of cards centered on a point within 30 ft. It can be any shaped I want that fits in a 40-ft cube. It has a floor, a roof, one door and up to four windows, and only I can open or close them. It has a comfortable temperature inside, AC 15, 50 HP, and immunity to poison and psychic damage. It lasts for 24 hours, until I dismiss it as an action, or until it is reduced to 0 HP. When the shelter's duration ends, it transforms back into a deck of cards in my hand.\",\n\tdescriptionFull : \"This deck of cards is decorated with geometric shapes that have a protective motif. While you're holding the deck, you can use an action to shuffle it and cause the cards to deal themselves out and transform into a shelter made of cards. The shelter can be shaped however you desire, but it must fit in a 40-foot cube centered on a point within 30 feet of you. The shelter has one door and up to four windows, and only you can open or close them. It has a floor and a roof, and it maintains a comfortable temperature inside.\"+\n\t\"\\n   The shelter has AC 15, 50 hit points, and immunity to poison and psychic damage. The shelter lasts for 24 hours, until you dismiss it as an action, or until it is reduced to 0 hit points. When the shelter's duration ends, it transforms back into a deck of cards and appears in your hand. Once the deck has transformed into a shelter, it can't be used again until the next dawn.\",\n\taction : [[\"action\", \"\"]],\n\tusages : 1,\n\trecovery : \"dawn\"\n};\nMagicItemsList[\"jester's mask\"] = {\n\tname : \"Jester's Mask\",\n\tsource : [[\"BoMT\", 36]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a bard, sorcerer, or warlock\",\n\tprereqeval : function (v) { return classes.known.bard || classes.known.sorcerer || classes.known.warlock ? true : false; },\n\tdescription : \"I can use this harlequin mask as a spellcasting focus. It adds a +3 bonus to my spell attacks and spell save DCs that use Charisma. Once per dawn when I roll a 1 on a d20, I can change it to a 20. As a reaction once per dawn when I'm hit by an attack roll, I can teleport 30 ft to an empty space I can see, taking no damage.\",\n\tdescriptionLong : \"While I'm wearing this colorful, harlequin domino mask edged with pearls, it grants me:\"+\n\t\"\\u2022 Charismatic Focus: I can use it as a spellcasting focus and it grants me a +3 bonus to spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"+\n\t\"\\u2022 Marvelous Escape: As a reaction once per dawn when a creature hits me with an attack roll, I can teleport in a puff of smoke and sparkles instead of taking damage. I teleport to an empty space I can see within 30 ft, along with anything I'm wearing or carrying.\"+\n\t\"\\u2022 Topsy-Turvy: Once per dawn when I roll a 1 on a d20, I can treat it as a 20 instead.\",\n\tdescriptionFull : \"This colorful, harlequin domino mask is edged with pearls. While wearing this mask, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Charismatic Focus\") + \". You can use the mask as a spellcasting focus. You gain a +3 bonus to any spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"+\n\t\"\\n   \" + toUni(\"Marvelous Escape\") + \". When a creature hits you with an attack roll, you can use your reaction to disappear in a puff of smoke and colorful sparkles. You take no damage and instead teleport, along with anything you are wearing or carrying, to an unoccupied space you can see within 30 feet of yourself. Once this reaction is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Topsy-Turvy\") + \". When you roll a 1 on a d20, you can treat the roll as if you rolled a 20 instead. Once this property is used, it can't be used again until the next dawn.\",\n\taction : [[\"reaction\", \" (escape)\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Jester's Mask - Marvelous Escape\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Jester's Mask - Topsy-Turvy\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tcalcChanges : {\n\t\tspellCalc : [\n\t\t\tfunction (type, spellcasters, ability) {\n\t\t\t\tif (type !== \"prepare\" && ability === 6) return 3;\n\t\t\t},\n\t\t\t\"While wearing the Jester's Mask, I gain a +3 bonus to any spell attack rolls and spell saving throw DCs that use Charisma as the spellcasting ability.\"\n\t\t]\n\t}\n};\nMagicItemsList[\"plate of knight's fellowship\"] = {\n\tname : \"Plate of Knight's Fellowship\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"armor (plate)\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This gleaming set of silver-and-gold plate armor never tarnishes. As a bonus action once per dawn, I can use it to summon a warrior spirit (knight) to an empty spot within 30 ft. It lasts for 1 minute or until reduced to 0 HP. It is an ally to me, shares my initiative and obeys my commands. See the Companion page.\",\n\tdescriptionFull : \"This gleaming set of silver-and-gold plate armor never tarnishes.\"+\n\t\"\\n   While wearing this armor, you can use a bonus action to summon the spirit of a warrior to your aid. The spirit's corporeal form manifests in an unoccupied space of your choice within 30 feet of you, and it uses the knight stat block. The spirit disappears when it drops to 0 hit points or after 1 minute, whichever comes first.\"+\n\t\"\\n   The spirit is an ally to you and your companions. In combat, the spirit shares your initiative count but takes its turn immediately after yours. The spirit obeys your commands (no action required by you); if you don't issue any commands, the spirit takes the Dodge action and uses its movement to avoid danger.\"+\n\t\"\\n   Once this bonus action is used, it can't be used again until the next dawn.\",\n\tweight : 65,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"bonus action\", \"\"]],\n\tarmorAdd : {\n\t\tselect : \"Plate of Knight's Fellowship\",\n\t\toptions : [\"Plate of Knight's Fellowship\"]\n\t},\n\tcreaturesAdd : [[\"Knight\"]],\n\tcreatureOptions : [{\n\t\tname : \"Knight\",\n\t\tsource : [[\"SRD\", 400], [\"M\", 347]],\n\t\teval : function(prefix) {\n\t\t\tValue(prefix + \"Comp.Desc.Name\", \"Warrior Spirit\");\n\t\t},\n\t\tsize : 3,\n\t\ttype : \"Humanoid\",\n\t\talignment : \"any alignment\",\n\t\tac : 18,\n\t\thp : 52,\n\t\thd : [8, 8],\n\t\tspeed : \"30 ft\",\n\t\tscores : [16, 11, 14, 11, 11, 15],\n\t\tsaves : [\"\", \"\", 4, \"\", 2, \"\"],\n\t\tpassivePerception : 10,\n\t\tlanguages : \"any one language (usually Common)\",\n\t\tchallengeRating : \"3\",\n\t\tproficiencyBonus : 2,\n\t\tattacksAction : 2,\n\t\tattacks : [{\n\t\t\tname : \"Greatsword\",\n\t\t\tability : 1,\n\t\t\tdamage : [2, 6, \"slashing\"],\n\t\t\trange : \"Melee (5 ft)\",\n\t\t\tdescription : \"Heavy, two-handed; Two greatsword attacks as an Attack action\"\n\t\t}, {\n\t\t\tname : \"Heavy Crossbow\",\n\t\t\tability : 2,\n\t\t\tdamage : [1, 10, \"piercing\"],\n\t\t\trange : \"100/400 ft\",\n\t\t\tdescription : \"Ammunition, heavy, loading, two-handed\"\n\t\t}],\n\t\tactions : [{\n\t\t\tname : \"Multiattack\",\n\t\t\tdescription : \"As an action on its turn, the knight can make two melee attacks.\"\n\t\t} ,{\n\t\t\tname : \"Leadership (Recharges after a Short or Long Rest)\",\n\t\t\tdescription : \"As an action, the knight can activate this ability. Then, for 1 minute, the knight can utter a special command or warning whenever a nonhostile creature that it can see within 30 ft of it makes an attack roll or save. The creature can add +1d4 to its roll provided it can hear and understand the knight. A creature can benefit from only one Leadership die at a time. This effect ends if the knight is incapacitated.\"\n\t\t}, {\n\t\t\tname : \"Parry\",\n\t\t\tdescription : \"As a reaction, the knight can add +2 AC against one melee attack that would hit it. To do so, the knight must see the attacker and be wielding a melee weapon.\"\n\t\t}],\n\t\tfeatures : [{\n\t\t\tname : \"Brave\",\n\t\t\tdescription : \"The knight has advantage on saving throws against being frightened.\"\n\t\t}, {\n\t\t\tname : \"Summoned\",\n\t\t\tdescription : \"The warrior spirit is an ally to you and your companions. It shares your initiative count but takes its turn immediately after yours. The spirit obeys your commands (no action), or takes the Dodge action and uses its movement to avoid danger if issued no commands. The spirit disappears when it drops to 0 hit points or after 1 minute, whichever comes first.\"\n\t\t}]\n\t}]\n};\nMagicItemsList[\"ring of puzzler's wit\"] = {\n\tname : \"Ring of Puzzler's Wit\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"ring\",\n\trarity : \"uncommon\",\n\tdescription : \"This gold ring bears a fluorite stone and is enchanted to sharpen the wearer's mind. The ring has 3 charges and regains 1d4-1 expended charges daily at dawn. When I make an Intelligence check, I can expend 1 charge to grant myself advantage on the check.\",\n\tdescriptionFull : \"This gold ring bears a fluorite stone and is enchanted to sharpen the wearer's mind.\"+\n\t\"\\n   The ring has 3 charges and regains 1d4 - 1 expended charges daily at dawn. When you make an Intelligence check, you can expend 1 charge to grant yourself advantage on the check.\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4-1\"\n};\nMagicItemsList[\"rod of hellish flames\"] = {\n\tname : \"Rod of Hellish Flames\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"rod\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"I can use this black iron rod as an arcane focus and it grants me resistance to fire and necrotic damage. Once per dawn I can use it to cast Hellish Rebuke as a 4th-level spell (save DC 16). When I cast a spell that deals fire or necrotic damage, I can once per dawn use it to maximize the damage instead of rolling.\",\n\tdescriptionFull : \"Glowing cinders orbit the flanged head of this black iron rod.\"+\n\t\"\\n   This rod can be used as an arcane focus. While holding this rod, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Hellish Resistance\") + \". You have resistance to fire and necrotic damage.\"+\n\t\"\\n   \" + toUni(\"Searing Rebuke\") + \". You can cast the Hellish Rebuke spell as a 4th-level spell (save DC 16) from the rod. Once you use the rod to cast the spell, the rod can't cast the spell again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Surge of Brimstone\") + \". Whenever you cast a spell that deals fire or necrotic damage, you can use the rod to deal the maximum damage instead of rolling. Once this property is used, it can't be used again until the next dawn.\",\n\tweight : 2,\n\textraLimitedFeatures : [{\n\t\tname : \"Rod of Hellish Flames (Hellish Rebuke)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Rod of Hellish Flames (maximize)\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}],\n\tdmgres : [\"Fire\", \"Necrotic\"],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"hellish rebuke\"],\n\t\tselection : [\"hellish rebuke\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"hellish rebuke\" : {\n\t\t\tdescription : \"Cast when taking damage, creature that dealt damage takes 5d10 Fire damage; save halves\",\n\t\t\tchanges : \"Using the Rod of Hellish Flames, I cast Hellish Rebuke as if I'm using a 4th-level spell slot, doing 5d10 damage, once per dawn.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"rogue's mantle\"] = {\n\tname : \"Rogue's Mantle\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This dark, hooded mantle of thick cloth gives me +60 ft darkvision. As a bonus action, I can use it to teleport 30 ft from and into dim light or darkness, to an empty space I can see. I then have advantage on my first attack before my turn ends. Also, I can use it to cast Antagonize once per dawn (save DC 15).\",\n\tdescriptionFull : \"This dark, hooded mantle of thick cloth is infused with secretive and deceptive magic. While wearing it, you gain the following benefits:\"+\n\t\"\\n   \" + toUni(\"Darkvision\") + \". You gain darkvision within a range of 60 feet. If you already have darkvision, the mantle increases your darkvision's range by 60 feet instead.\"+\n\t\"\\n   \" + toUni(\"Move in Shadows\") + \". While you are in dim light or darkness, you can use a bonus action to teleport, along with anything you are wearing or carrying, up to 30 feet to an unoccupied space you can see that is also in dim light or darkness. You then have advantage on the first melee attack you make before the end of the turn.\"+\n\t\"\\n   \" + toUni(\"Willful Enmity\") + \". You can cast the Antagonize spell (save DC 15) from the mantle. Once the mantle has cast the spell, it can't cast the spell again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Antagonize\",\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\n\taction : [[\"bonus action\", \" (teleport)\"]],\n\tfixedDC : 15,\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"antagonize\"],\n\t\tselection : [\"antagonize\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\nMagicItemsList[\"ruinous flail\"] = {\n\tname : \"Ruinous Flail\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"weapon (flail)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This ash-gray, cold to the touch flail +1 deals double damage to objects and structures. Once per dawn, I can have a creature hit by it make a DC 15 Con save or be poisoned for 1 minute and take 2d4 necrotic damage at the start of each of its turns. It can repeat the save at the end of each of its turns to end the effects.\",\n\tdescriptionFull : \"This ash-gray flail is cold to the touch. You gain a +1 bonus to attack and damage rolls made with this magic weapon, and it deals double damage to objects and structures.\"+\n\t\"\\n   Additionally, when you hit a creature with this weapon, you can force the creature to make a DC 15 Constitution saving throw. On a failed save, the creature has the poisoned condition for 1 minute. The poisoned creature takes 2d4 necrotic damage at the start of each of its turns. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Once this property is used in this way, it can't be used again until the next dawn.\",\n\tweight : 2,\n\tusages : 1,\n\trecovery : \"dawn\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"flail\",\n\t\tregExpSearch : /^(?=.*ruinous)(?=.*flail).*$/i,\n\t\tname : \"Ruinous Flail\",\n\t\tsource : [[\"BoMT\", 37]],\n\t\tdescription : \"Double damage to objects; Once per dawn: target DC 15 Con save or poisoned, see item\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sage's signet\"] = {\n\tname : \"Sage's Signet\",\n\tsource : [[\"BoMT\", 37]], // Chapter 5: Gem\n\ttype : \"ring\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a spellcaster\",\n\tprereqeval : function(v) { return v.isSpellcaster; },\n\tdescription : \"This gilded ring with a beautiful engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury and two more spells depending on the signet each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\tdescriptionFull : \"This gilded ring bears a beautiful engraving and is imbued with powers of keen wisdom and foresight. While wearing this ring, you can use an action to cast the Augury spell from the ring. Once you use the ring to cast the spell, the ring can't cast the spell again until the next dawn.\"+\n\t\"\\n   Six varieties of Sage's Signet rings exist, each with a different signet (see the table below). A ring's signet determines its rarity as well as the additional spells it can cast. While wearing a Sage's Signet, you can cast each of its additional spells once from the ring using your Intelligence as the spellcasting ability. Once you cast each of the additional spells from the ring, it can't cast the spell again until the next dawn.\"+\n\t\"\\n\\nSignet\\tRarity\\tSpells\"+\n\t\"\\nBear\\tVery rare\\tEnlarge/Reduce, Polymorph\"+\n\t\"\\nHart\\tVery rare\\tAura of Vitality, Mass Cure Wounds\"+\n\t\"\\nLion\\tVery rare\\tDestructive Wave, Fireball\"+\n\t\"\\nSerpent\\tRare\\tFear, Hex\"+\n\t\"\\nSongbird\\tRare\\tCharm Person, Hypnotic Pattern\"+\n\t\"\\nWolf\\tVery rare\\tFreedom of Movement, Pass without Trace\",\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"each spell once\",\n\tchoices : [\"Bear (very rare)\", \"Hart (very rare)\", \"Lion (very rare)\", \"Serpent (rare)\", \"Songbird (rare)\", \"Wolf (very rare)\"],\n\t\"bear (very rare)\" :  {\n\t\tname : \"Sage's Signet (Bear)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful bear engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Enlarge/Reduce, and Polymorph each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"enlarge/reduce\", \"polymorph\"],\n\t\t\tselection : [\"augury\", \"enlarge/reduce\", \"polymorph\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"hart (very rare)\" :  {\n\t\tname : \"Sage's Signet (Hart)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful hart engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Aura of Vitality, and Mass Cure Wounds each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"aura of vitality\", \"mass cure wounds\"],\n\t\t\tselection : [\"augury\", \"aura of vitality\", \"mass cure wounds\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"lion (very rare)\" :  {\n\t\tname : \"Sage's Signet (Lion)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful lion engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Destructive Wave, and Fireball each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"destructive wave\", \"fireball\"],\n\t\t\tselection : [\"augury\", \"destructive wave\", \"fireball\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"serpent (rare)\" :  {\n\t\tname : \"Sage's Signet (Serpent)\",\n\t\trarity : \"rare\",\n\t\tdescription : \"This gilded ring with a beautiful serpent engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Fear, and Hex each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"fear\", \"hex\"],\n\t\t\tselection : [\"augury\", \"fear\", \"hex\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"songbird (rare)\" :  {\n\t\tname : \"Sage's Signet (Songbird)\",\n\t\trarity : \"rare\",\n\t\tdescription : \"This gilded ring with a beautiful songbird engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Charm Person, and Hypnotic Pattern each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"charm person\", \"hypnotic pattern\"],\n\t\t\tselection : [\"augury\", \"charm person\", \"hypnotic pattern\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t},\n\t\"wolf (very rare)\" :  {\n\t\tname : \"Sage's Signet (Wolf)\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"This gilded ring with a beautiful wolf engraving is imbued with powers of keen wisdom and foresight. While wearing this ring, I can cast Augury, Freedom of Movement, and Pass without Trace each once per dawn using my Intelligence as the spellcasting ability. Casting Augury using this ring only takes one action.\",\n\t\tspellcastingAbility : 4,\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Once per dawn\",\n\t\t\tspells : [\"augury\", \"freedom of movement\", \"pass without trace\"],\n\t\t\tselection : [\"augury\", \"freedom of movement\", \"pass without trace\"],\n\t\t\tfirstCol : \"oncelr\",\n\t\t\ttimes : 3\n\t\t}],\n\t\tspellChanges : BoMT[\"sage's signet\"]\n\t}\n};\nMagicItemsList[\"shield of the tortoise\"] = {\n\tname : \"Shield of the Tortoise\",\n\tsource : [[\"BoMT\", 67]], // Chapter 9: Knight\n\ttype : \"shield\",\n\trarity : \"uncommon\",\n\tattunement : true,\n\tdescription : \"This +1 shield curses me as soon as I attune to it. While I'm cursed by it, I can't discard it, I can't break my attunement to it, and I am sluggish. Sluggish means that my speed is halved and when I roll initiative, I always treat the roll on the d20 as a 1. I can't change my initiative by any means.\",\n\tdescriptionFull : \"While you are wielding this shield, you gain a +1 bonus to AC. This bonus is in addition to the shield's normal bonus to AC.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". This item is cursed. Attuning to it extends the curse to you until you are targeted by a Remove Curse spell or similar magic. You cannot discard the shield, and remain attuned to it, as long as you are cursed. As long as you are cursed, you are sluggish. Your speed is halved. When you roll initiative, treat the roll on your d20 as a 1. You can't change your initiative by any means.\",\n\tweight : 6,\n\tshieldAdd : [\"Shield of the Tortoise\", 3, 6],\n\tspeed : { allModes : { bonus : \"/2\" } }\n};\nMagicItemsList[\"shrieking greaves\"] = {\n\tname : \"Shrieking Greaves\",\n\tsource : [[\"BoMT\", 174]], // Chapter 20: Flames\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"These black leg guards have 3 charges, regaining 1d3 used charges daily at dawn. As a bonus action, I can use 1 charge to gain +30 ft walking speed and adv. on Dex saves for 1 minute. They are cursed, see Notes page. I have disadv. on saves vs. being frightened and they scream if I start my turn frightened.\",\n\tdescriptionLong : \"These black leg guards are decorated with monstrous skulls screaming in terror. They have 3 charges, regaining 1d3 used charges daily at dawn. As a bonus action, I can use 1 charge to increase my walking speed by 30 ft, and gain advantage on Dexterity saves. These effects last for 1 minute. The greaves are cursed, and I can't remove or end my attunement to them. They give me disadvantage on saves against being frightened. When I start my turn frightened, they release an ear-piercing scream. I and all within 10 ft of me take 2d8 thunder damage and can make a DC 15 Constitution save to halve this damage.\",\n\tdescriptionFull : \"Each of these black leg guards is decorated with a motif of monstrous skulls screaming in terror.\"+\n\t\"\\n   The greaves have 3 charges. While wearing these greaves, you can use a bonus action to expend 1 charge to increase your walking speed by 30 feet, and you have advantage on Dexterity saving throws. These effects last for 1 minute. The greaves regain 1d3 expended charges daily at dawn.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". \" + BoMT.toDescrFull(BoMT[\"shrieking greaves\"]),\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\ttoNotesPage : [{\n\t\tname : \"Shrieking Greaves Curse\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"shrieking greaves\"]])\n\t}]\n};\nMagicItemsList[\"skull helm\"] = {\n\tname : \"Skull Helm\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"While wearing this skull-shaped helm, I have resistance to cold, poison, and necrotic damage. Additionally, I can cast Spirit of Death from it without requiring material components. Once I use the helm to cast the spell, it can't cast this spell again until the next dawn.\",\n\tdescriptionFull : \"While wearing this skull-shaped helm, you have resistance to cold, poison, and necrotic damage.\"+\n\t\"\\n   Additionally, while wearing the helm, you can cast Spirit of Death from it without requiring material components. Once you use the helm to cast the spell, the helm can't cast this spell again until the next dawn.\",\n\tdmgres : [\"Cold\", \"Poison\", \"Necrotic\"],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Spirit of Death\",\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"spirit of death\"],\n\t\tselection : [\"spirit of death\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tspellChanges : {\n\t\t\"spirit of death\" : {\n\t\t\tcomponents : \"\",\n\t\t\tcompMaterial : \"\",\n\t\t\tdescription : \"Summon a Reaper Spirit; obeys commands; takes turn after mine; disappears at 0 hp\",\n\t\t\tchanges : \"While wearing the helmet, it requires no material components to cast Spirit of Death.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"sling of giant felling\"] = {\n\tname : \"Sling of Giant Felling\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (sling)\",\n\trarity : \"uncommon\",\n\tdescription : \"When I hit a creature with the Giant type with a ranged attack roll using this magic sling, the creature must succeed on a DC 18 Constitution saving throw or be knocked prone.\",\n\tdescriptionFull : \"When you hit a Giant creature with a ranged attack roll using this magic sling, the creature must succeed on a DC 18 Constitution saving throw or have the prone condition.\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"sling\",\n\t\tregExpSearch : /^(?=.*sling)(?=.*giant)(?=.*felling).*$/i,\n\t\tname : \"Sling of Giant Felling\",\n\t\tsource : [[\"BoMT\", 68]],\n\t\tdescription : \"Ammunition; Giants: DC 18 Con save or prone\",\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"spindle of fate\"] = {\n\tname : \"Spindle of Fate\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"wand\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This wand has 6 charges, regains 1d6 at dawn. I can use 1 charge to add my Prof Bonus to my initiative after the roll. As an action, I can use 2 charges to invoke a creature's doom. As a reaction when a creature within 60 ft makes an attack or save, I can use 3 charges to change the outcome. See Notes page.\",\n\tdescriptionFull : \"This wand is shaped like a drop spindle wrapped in red thread. The wand has 6 charges that can be used for the following properties:\"+\n\t\"\\n   \" + BoMT.toDescrFull(BoMT[\"spindle of fate\"])+\n\t\"\\n   The wand regains 1d6 expended charges daily at dawn.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"spindle of fate\"]),\n\taction : [[\"action\", \" - Doom Foretold\"], [\"reaction\", \" - Twist of Fate\"]],\n\tweight : 1,\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d6\",\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : [\n\t\t\t\"This wand is shaped like a drop spindle wrapped in red thread. The wand has 6 charges, regaining 1d6 expended charges daily at dawn. The charges can be used for the following properties:\"+\n\t\t\tBoMT.to1stPerson(BoMT[\"spindle of fate\"])\n\t\t]\n\t}]\n};\nMagicItemsList[\"starshot crossbow\"] = {\n\tname : \"Starshot Crossbow\",\n\tnameTest : \"Starshot\",\n\tsource : [[\"BoMT\", 38]], // Chapter 5: Gem\n\ttype : \"weapon (any crossbow)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This black wooden crossbow has pearl inlays depicting three constellations. It has 3 charges, regaining 1d3 at dawn. It produces its own ammo that lasts until it hits or misses a target. As a bonus action, I can use 1 charge to tap and invoke one of its constellations, see Notes page for the options.\",\n\tdescriptionLong : \"This crossbow of blackened wood has pearl inlays depicting three different constellations. It has 3 charges and regains 1d3 used charged daily at dawn. It produces its own ammo that lasts until it hits or misses a target. As a bonus action, I can use 1 charge to tap and invoke one of its constellations, see Notes for full text. Balance: next hit with the crossbow before my next turn ends heals me or another within 30 ft of me for 1d8+my Prof Bonus. Flames: until my next turn ends, the crossbow deals +2d8 fire damage. Rogue: until my next turn ends, I become invisible as well as anything I'm wearing or carrying.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"starshot crossbow\"]),\n\taction : [[\"bonus action\", \"\"]],\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /crossbow/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isRangedWeapon && /crossbow/i.test(v.baseWeaponName) && /Starshot/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\tfields.Description = fields.Description.replace(/(;|,)? ?(loading|Counts as magical)/ig, '');\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the word \"Starshot\" in the name of a crossbow, it will be treated as the magic weapon Starshot Crossbow. It produces its own ammunition, thus its loading property is removed.'\n\t\t]\n\t},\n\ttoNotesPage : [{\n\t\tname : \"Features and Constellations\",\n\t\tnote : BoMT.to1stPerson(BoMT[\"starshot crossbow\"])\n\t}]\n};\nMagicItemsList[\"stonemaker war pick\"] = {\n\tname : \"Stonemaker War Pick\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (war pick)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This war pick adds +1 to attack and damage rolls. I can use it to cast Meld into Stone once per dawn. If I score a critical hit with it against a creature that has 100 HP or fewer, I can use 1 charge to have the target make a DC 15 Con save or be petrified for 8 hours. It has 1d6+1 charges that can't be replenished.\",\n\tdescriptionFull : \"You gain a +1 bonus to attack and damage rolls made with this magic war pick. It has the following special properties:\"+\n\t\"\\n   \" + toUni(\"Meld into Stone\") + \". You can cast the Meld into Stone spell from this war pick. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Petrification\") + \". The war pick has 1d6 + 1 charges. If you score a critical hit against a creature that has fewer than 100 hit points, you can expend 1 charge from the war pick to have that creature make a DC 15 Constitution saving throw. On a failed save, the creature has the petrified condition for 8 hours. When the war pick has no charges remaining, it loses this property.\",\n\tweight : 2,\n\textraLimitedFeatures : [{\n\t\tname : \"Stonemaker War Pick - Meld into Stone\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Stonemaker War Pick - Petrification\",\n\t\tusages : \"1d6+1\",\n\t\trecovery : \"Never\"\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"meld into stone\"],\n\t\tselection : [\"meld into stone\"],\n\t\tfirstCol : \"oncelr\"\n\t}],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"war pick\",\n\t\tregExpSearch : /^(?=.*stonemaker)(((?=.*pick)(?=.*war))|((?!.*(heavy|great|light))(?=.*\\bpicks?\\b))).*$|\\bkuwas?\\b/i,\n\t\tname : \"Stonemaker War Pick\",\n\t\tsource : [[\"BoMT\", 68]],\n\t\tdescription : \"Can petrify on critical hit, see item\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sun staff\"] = {\n\tname : \"Sun Staff\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a cleric, druid, or wizard\",\n\tprereqeval : function (v) { return classes.known.cleric || classes.known.druid || classes.known.wizard ? true : false; },\n\tdescription : \"This +1 quarterstaff deals +1d8 fire damage on an attack. I can use it as a spellcasting focus. Once per dawn when I cast a spell using a spell slot, I can reroll my Prof Bonus of fire or radiant damage dice. As a bonus action, I can toggle it glowing with sunlight: 15-ft radius bright light and dim light for another 15 ft.\",\n\tdescriptionFull : \"Veins of sunstone run through this wooden staff. This staff can be wielded as a magic quarterstaff that grants a +1 bonus to attack and damage rolls made with it. When you hit with an attack roll using this staff, the target takes an extra 1d8 fire damage.\"+\n\t\"\\n   \" + toUni(\"Solar Focus\") + \". You can use the staff as a spellcasting focus. While holding the staff, you can reroll a number of damage dice up to your proficiency bonus when you use a spell slot to cast a spell that deals fire or radiant damage. You must use the new rolls. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Sunny Glow\") + \". As a bonus action, you can cause the staff to glow with sunlight. While glowing, the staff sheds bright light in a 15-foot radius and dim light for an additional 15 feet. The light lasts until you use another bonus action to extinguish it.\",\n\tweight : 4,\n\taction : [[\"bonus action\", \" (glow on/off)\"]],\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"reroll damage\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"quarterstaff\",\n\t\tregExpSearch : /^(?=.*sun)(?=.*staff).*$/i,\n\t\tname : \"Sun Staff\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\tdescription : \"Versatile (1d8); +1d8 fire damage\",\n\t\tmodifiers : [1, 1],\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"sword of the planes\"] = {\n\tname : \"Sword of the Planes\",\n\tnameTest : \"of the Planes\",\n\tsource : [[\"BoMT\", 68]], // Chapter 9: Knight\n\ttype : \"weapon (any sword)\",\n\trarity : \"legendary\",\n\tattunement : true,\n\tdescription : \"This +3 weapon can tear the fabric of reality. As an action once per dawn, I can slice a rift to a location on another plane in an empty space within 5 ft of me. The rift can be up to 10 ft high and wide. Anything entering the rift is instantly transported. The DM determines where it goes exactly.\",\n\tdescriptionFull : \"You gain a +3 bonus to attack and damage rolls made with this magic sword.\"+\n\t\"\\n   This sword can tear the fabric of reality, creating a temporary rift between planes. You can use your action to choose a different plane of existence from the one you're on and slice through an unoccupied space within 5 feet of yourself, creating a rift to that other plane. The rift can be up to 10 feet high and 10 feet wide, and it lasts for 1 minute. Once this property is used, it can't be used again until the next dawn.\"+\n\t\"\\n   You can specify a target destination, such as the City of Brass on the Elemental Plane of Fire or the palace of Dispater on the second layer of the Nine Hells, and the rift opens in or near that destination (DM's discretion). If you are trying to reach the City of Brass, for example, the rift might appear on the Street of Steel, before the Gate of Ashes, or facing the city from across the Sea of Fire, at the DM's discretion.\"+\n\t\"\\n   Anything that enters the rift is instantly transported to the other plane, appearing in the unoccupied space nearest to the rift.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"sword\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\tvar testRegex = /sword|scimitar|rapier/i;\n\t\t\treturn !testRegex.test(inObjKey) && (!inObj.baseWeapon || !testRegex.test(inObj.baseWeapon));\n\t\t}\n\t},\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (!v.theWea.isMagicWeapon && v.isMeleeWeapon && /sword|scimitar|rapier/i.test(v.baseWeaponName) && /of the Planes/i.test(v.WeaponTextName)) {\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 3;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of the Planes\" in a the name of a sword, it will be treated as the magic weapon Sword of the Planes. It has +3 to hit and damage.'\n\t\t]\n\t}\n};\nMagicItemsList[\"telescopic transporter\"] = {\n\tname : \"Telescopic Transporter\",\n\tsource : [[\"BoMT\", 105]], // Chapter 13: Star\n\ttype : \"wondrous item\",\n\trarity : \"legendary\",\n\tdescription : \"This enormous telescope allows me to view distant celestial objects, including stars, Wildspace systems, and Astral Sea phenomena. With 1 hour of calibrating, I can use it to attempt to travel to whatever it is pointed at. With a DC 17 Arcana check me and 8 others teleport, otherwise a mishap, see Notes.\",\n\tdescriptionFull : BoMT.toDescrFull(BoMT[\"telescopic transporter\"]),\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"telescopic transporter\"]])\n\t}]\n};\nMagicItemsList[\"tidecaller trident\"] = {\n\tname : \"Tidecaller Trident\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"weapon (trident)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This magic trident gives a +2 bonus to attack and damage made with it and advantage on attack rolls when used underwater. The trident has 3 charges, regaining 1d3 expended charges daily at dawn. I can expend these charges to cast spells (save DC 15): Control Water (1 charge) or Tsunami (3 charges).\",\n\tdescriptionFull : \"You gain a +2 bonus to attack and damage rolls made with this magic trident. You also have advantage on attack rolls made with this weapon while underwater.\"+\n\t\"\\n   This trident has 3 charges. You can expend 1 charge to cast Control Water (save DC 15) from the trident or 3 charges to cast Tsunami (save DC 15) from it instead. The trident regains 1d3 expended charges daily at dawn.\",\n\tweight : 4,\n\tusages : 3,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d3\",\n\tweaponOptions : [{\n\t\tbaseWeapon : \"trident\",\n\t\tregExpSearch : /^(?=.*tidecaller)(?=.*trident).*$/i,\n\t\tname : \"Tidecaller Trident\",\n\t\tsource : [[\"BoMT\", 69]],\n\t\tdescription : \"Thrown, versatile (1d8); Adv. when underwater\",\n\t\tmodifiers : [2, 2],\n\t\tselectNow : true\n\t}],\n\tfixedDC : 15,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"control water\"],\n\t\tselection : [\"control water\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"tsunami\"],\n\t\tselection : [\"tsunami\"],\n\t\tfirstCol : 3\n\t}]\n};\nMagicItemsList[\"voidwalker armor\"] = {\n\tname : \"Voidwalker Armor\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"armor (studded leather)\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This black studded leather armor bears a red sheen. As a bonus action once per dawn, I can summon a projection of myself in an empty space within 30 ft. It's a translucent copy of me, immune to all damage and conditions, that I can make attacks and cast spells from. The projection disappears at the end of my turn.\",\n\tdescriptionFull : \"This black studded leather armor bears a red sheen. While wearing this armor, you can use a bonus action to summon a projection of yourself in an unoccupied space within 30 feet of yourself. The projection is a translucent copy of you that has immunity to all damage and conditions, and you can make attacks and cast spells with a range other than self as if standing in the projection's space. The projection disappears at the end of your turn. Once you use this bonus action, it can't be used again until the next dawn.\"+\n\t\"\\n   \" + toUni(\"Curse\") + \". \" + BoMT.toDescrFull(BoMT[\"voidwalker armor\"]),\n\tweight : 13,\n\tusages : 1,\n\trecovery : \"dawn\",\n\taction : [[\"bonus action\", \"\"]],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*voidwalker)(?=.*armou?r).*$/i,\n\t\tname : \"Voidwalker Armor\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\ttype : \"light\",\n\t\tac : 12,\n\t\tweight : 13,\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Voidwalker Curse\",\n\t\tnote : BoMT.to1stPerson([BoMT[\"voidwalker armor\"]])\n\t}]\n};\nMagicItemsList[\"warrior's passkey\"] = {\n\tname : \"Warrior's Passkey\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"wondrous item\",\n\trarity : \"rare\",\n\tattunement : true,\n\tdescription : \"This silver skeleton key is warm to the touch. I can use it to cast Knock while in its key form. As a bonus action, I can transform it into a magic +1 longsword that deals 1d10 force damage and I'm proficient with. The sword reverts back to a key if it leaves my grasp, I use a bonus action to do so, or my attunement ends.\",\n\tdescriptionFull : \"This silver skeleton key is warm to the touch. While holding the key in its key form, you can use an action to cast the Knock spell from the key.\"+\n\t\"\\n   \" + toUni(\"Transforming the Key\") + \". While holding the key, you can use a bonus action to transform it into a magic longsword. You are considered proficient with the sword, and you have a +1 bonus to attack and damage rolls made with it. On a hit, the sword deals 1d10 force damage. The item remains in its sword form until it leaves your grasp or you use another bonus action to revert it to its key form.\"+\n\t\"\\n   If you end your attunement to the item while it's in its sword form, it automatically reverts to its key form.\",\n\taction : [[\"bonus action\", \" (transform)\"]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /^(?=.*warrior)(?=.*passkey).*$/i,\n\t\tname : \"Warrior's Passkey\",\n\t\tsource : [[\"BoMT\", 39]],\n\t\tdamage : [1, 10, \"force\"],\n\t\tmodifiers : [1, 1],\n\t\tisAlwaysProf : true,\n\t\tdescription : \"\",\n\t\tweight : 0,\n\t\tselectNow : true\n\t}],\n\tspellcastingBonus : [{\n\t\tname : \"At will\",\n\t\tspells : [\"knock\"],\n\t\tselection : [\"knock\"],\n\t\tfirstCol : \"atwill\"\n\t}]\n};\nMagicItemsList[\"weapon of throne's command\"] = {\n\tname : \"Weapon of Throne's Command\",\n\tnameTest : \"of Throne's Command\",\n\tsource : [[\"BoMT\", 39]], // Chapter 5: Gem\n\ttype : \"weapon (any)\",\n\trarity : \"very rare\",\n\tattunement : true,\n\tdescription : \"This +1 weapon grants me proficiency with Intimidation and Persuasion. It has 5 charges, regaining 1d4 at dawn. As a bonus action, I can expend charges to cast a spell from it with save DC 16: Command (1 charge), Zone of Truth (2), Compulsion (4), Banishment (4), or Dominate Person (5).\",\n\tdescriptionLong : \"This weapon is bedecked in ornate gold filigree and deep-blue and maroon jewels. I gain a +1 bonus to attack and damage rolls made with this weapon. Additionally, I gain proficiency in the Intimidation and Persuasion skills if I don't already have it. The weapon has 5 charges, regaining 1d4 expended charges daily at dawn. As a bonus action, I can expend 1 or more of its charges to cast one of the following spells (save DC 16): Command (1 charge), Zone of Truth (2 charges), Compulsion (4 charges), Banishment (4 charges), or Dominate Person (5 charges).\",\n\tdescriptionFull : \"This weapon is bedecked in ornate gold filigree and deep-blue and maroon jewels. You gain a +1 bonus to attack and damage rolls made with this weapon. Additionally, you gain proficiency in the Intimidation and Persuasion skills if you don't already have it.\"+\n\t\"\\n   \" + toUni(\"Spellcasting\") + \". The weapon has 5 charges. You can use a bonus action and expend 1 or more of its charges to cast one of the following spells (save DC 16): Command (1 charge), Zone of Truth (2 charges), Compulsion (4 charges), Banishment (4 charges), or Dominate Person (5 charges).\"+\n\t\"\\n   The weapon regains 1d4 expended charges daily at dawn.\",\n\tskills : [\"Intimidation\", \"Persuasion\"],\n\tchooseGear : {\n\t\ttype : \"weapon\",\n\t\tprefixOrSuffix : \"prefix\",\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\n\t},\n\tusages : 5,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4\",\n\tfixedDC : 16,\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"command\"],\n\t\tselection : [\"command\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"zone of truth\"],\n\t\tselection : [\"zone of truth\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"4 charges\",\n\t\tspells : [\"banishment\", \"compulsion\"],\n\t\tselection : [\"banishment\", \"compulsion\"],\n\t\tfirstCol : 4,\n\t\ttimes : 2\n\t}, {\n\t\tname : \"5 charges\",\n\t\tspells : [\"dominate person\"],\n\t\tselection : [\"dominate person\"],\n\t\tfirstCol : 5\n\t}],\n\tcalcChanges : {\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (/of throne'?s? command/.test(v.WeaponTextName)) {\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\n\t\t\t\t}\n\t\t\t},\n\t\t\t'If I include the words \"of Throne\\'s Command\" in a the name of a weapon, it will be treated as the magic weapon Weapon of Throne\\'s Command. It adds a +1 bonus to attack and damage rolls.'\n\t\t]\n\t},\n\tspellChanges : {\n\t\t\"command\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Command as a bonus action.\"\n\t\t},\n\t\t\"zone of truth\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Zone of Truth as a bonus action.\"\n\t\t},\n\t\t\"banishment\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Banishment as a bonus action.\"\n\t\t},\n\t\t\"compulsion\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Compulsion as a bonus action.\"\n\t\t},\n\t\t\"dominate person\" : {\n\t\t\ttime : \"1 bns\",\n\t\t\tchanges : \"Using the Weapon of Throne's Command, I can cast Dominate Person as a bonus action.\"\n\t\t}\n\t}\n};\nMagicItemsList[\"winged ammunition\"] = {\n\tname : \"Winged Ammunition\",\n\tnameTest : \"Winged\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"weapon (any ammunition)\",\n\trarity : \"uncommon\",\n\tdescription : \"Ranged weapon attack rolls made with this magic ammunition ignore half and three-quarters cover. In addition, attacking at long range doesn't impose disadvantage on ranged weapon attack rolls made with this ammunition.\",\n\tdescriptionFull : \"Ranged weapon attack rolls made with this ammunition ignore half and three-quarters cover. In addition, attacking at long range doesn't impose disadvantage on ranged weapon attack rolls made with this ammunition.\",\n\tallowDuplicates : true,\n\tchooseGear : {\n\t\ttype : \"ammo\",\n\t\tprefixOrSuffix : \"suffix\",\n\t\tdescriptionChange : [\"replace\", \"ammunition\"],\n\t\texcludeCheck : function (inObjKey, inObj) {\n\t\t\treturn /vials|flasks/i.test(inObj.icon);\n\t\t}\n\t}\n};\nMagicItemsList[\"wraps of unarmed prowess\"] = {\n\tname : \"Wraps of Unarmed Prowess, +1, +2, or +3\",\n\tnameTest : \"Wraps of Unarmed Prowess\",\n\tsource : [[\"BoMT\", 69]], // Chapter 9: Knight\n\ttype : \"wondrous item\",\n\tdescription : \"While wearing these cloth wraps, my unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks, and I gain a bonus to their attack and damage rolls. The bonus is determined by rarity: uncommon (+1), rare (+2), or very rare (+3).\",\n\tdescriptionFull : \"While you're wearing these cloth wraps, your unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage, and you gain a bonus to the attack and damage rolls of your unarmed strikes. The bonus is determined by the wraps' rarity: uncommon (+1), rare (+2), or very rare (+3).\",\n\tchoices : [\"+1 Wraps of Unarmed Prowess (uncommon)\", \"+2 Wraps of Unarmed Prowess (rare)\", \"+3 Wraps of Unarmed Prowess (very rare)\"],\n\t\"+1 wraps of unarmed prowess (uncommon)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +1\",\n\t\tnameTest : \"+1 Wraps of Unarmed Prowess\",\n\t\trarity : \"uncommon\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +1 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +1 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 1;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t},\n\t\"+2 wraps of unarmed prowess (rare)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +2\",\n\t\tnameTest : \"+2 Wraps of Unarmed Prowess\",\n\t\trarity : \"rare\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +2 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +2 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 2;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t},\n\t\"+3 wraps of unarmed prowess (very rare)\" : {\n\t\tname : \"Wraps of Unarmed Prowess +3\",\n\t\tnameTest : \"+3 Wraps of Unarmed Prowess\",\n\t\trarity : \"very rare\",\n\t\tdescription : \"While I'm wearing these cloth wraps, I gain a +3 bonus to the attack and damage rolls of my unarmed strikes. My unarmed strikes are considered magical for the purpose of overcoming immunity and resistance to nonmagical attacks and damage.\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\" && !/counts as( a)? magical/i.test(fields.Description)) {\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"My unarmed strikes get a +3 bonus to To Hit and Damage and count as magical for overcoming resistances and immunities.\",\n\t\t\t\t700\n\t\t\t],\n\t\t\tatkCalc : [\n\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\n\t\t\t\t\t\toutput.magic += 3;\n\t\t\t\t\t}\n\t\t\t\t}, ''\n\t\t\t]\n\t\t}\n\t}\n};\n\n\nSpellsList[\"antagonize\"] = {\n\tname : \"Antagonize\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 3,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"30 ft\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A playing card depicting a rogue\",\n\tduration : \"Instantaneous\",\n\tsave : \"Wis\",\n\tdescription : \"1 crea 4d4+1d4/SL Psychic dmg, use rea to melee atk vs. crea I see (or dis. atk 1 rnd); save half, no rea\",\n\tdescriptionShorter : \"1 crea 4d4+1d4/SL Psychic dmg, rea melee atk vs. crea I see (or dis. atk 1 rnd); save half, no rea\",\n\tdescriptionFull : \"You whisper magical words that antagonize one creature of your choice within range. The target must make a Wisdom saving throw. On a failed save, the target takes 4d4 psychic damage and must immediately use its reaction to make a melee attack against another creature of your choice that you can see. If the target can't make this attack (for example, because there is no one within its reach or because its reaction is unavailable), the target instead has disadvantage on the next attack roll it makes before the start of your next turn. On a successful save, the target takes half as much damage only.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d4 for each slot level above 3rd.\"\n};\nSpellsList[\"spirit of death\"] = {\n\tname : \"Spirit of Death\",\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 4,\n\tschool : \"Necro\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A gilded playing card worth at least 400 gp and depicting an avatar of death\",\n\tduration : \"Conc, 1 h\",\n\tdescription : \"Summon a Reaper Spirit; obeys commands; takes turn after mine; disappears at 0 hp (400gp)\",\n\tdescriptionFull : \"You call forth a spirit that embodies death. The spirit manifests in an unoccupied space you can see within range and uses the reaper spirit stat block. The spirit disappears when it is reduced to 0 hit points or when the spell ends.\"+\n\t\"\\n   The spirit is an ally to you and your companions. In combat, the spirit shares your initiative count and takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue the spirit any commands, it takes the Dodge action and uses its movement to avoid danger.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the reaper spirit stat block.\"\n};\nSpellsList[\"spray of cards\"] = {\n\tname : \"Spray of Cards\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"BoMT\", 50]],\n\tlevel : 2,\n\tschool : \"Conj\",\n\ttime : \"1 a\",\n\trange : \"S:15\" + (typePF ? \"-\" : \"\") + \"ft cone\",\n\tcomponents : \"V,S,M\",\n\tcompMaterial : \"A deck of cards\",\n\tduration : \"Instantaneous\",\n\tsave : \"Dex\",\n\tdescription : \"All in area 2d10+1d10/SL Force dmg and blinded until their next turn ends; save halves \\u0026 not blinded\",\n\tdescriptionShorter : \"All in area 2d10+1d10/SL Force dmg, blinded till their next turn ends; save half \\u0026 not blinded\",\n\tdescriptionFull : \"You spray a 15-foot cone of spectral cards. Each creature in that area must make a Dexterity saving throw. On a failed save, a creature takes 2d10 force damage and has the blinded condition until the end of its next turn. On a successful save, a creature takes half as much damage only.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d10 for each slot level above 2nd.\"\n};\n"
  },
  {
    "path": "WotC material/pub_20240521_VEoR.js",
    "content": "var iFileName = \"pub_20240521_VEoR.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the magic item from the Vecna: Eve of Ruin adventure to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"VEoR\"] = {\n\tname : \"Vecna: Eve of Ruin\",\n\tabbreviation : \"VEoR\",\n\tgroup : \"Adventure Books\",\n\turl : \"https://dndstore.wizards.com/us/en/product/924703/vecna-eve-of-ruin-digital-plus-physical-bundle\",\n\tdate : \"2024/05/21\"\n};\n\nMagicItemsList[\"chime of exile\"] = {\n\tname : \"Chime of Exile\",\n\tsource : [[\"VEoR\", 46]],\n\ttype : \"wondrous item\",\n\trarity : \"very rare\",\n\tdescription : \"This silver chime is engraved with delicate magic sigils. As an action once per dawn, I can hold the chime and cast the Banishment spell (save DC 20). If the target of the spell has 50 hit points or fewer, it automatically fails its saving throw.\",\n\tdescriptionFull : \"This silver chime is engraved with delicate magic sigils. While holding the chime, you can use an action to cast the Banishment spell (spell save DC 20). If the target of the spell has 50 hit points or fewer, it automatically fails its saving throw. Once the chime has been used to cast the spell, it can't be used this way again until the next dawn.\",\n\tusages : 1,\n\trecovery : \"dawn\",\n\tadditional : \"Banishment\",\n\tfixedDC : 20,\n\tspellcastingBonus : [{\n\t\tname : \"Once per dawn\",\n\t\tspells : [\"banishment\"],\n\t\tselection : [\"banishment\"],\n\t\tfirstCol : \"oncelr\"\n\t}]\n};\n"
  },
  {
    "path": "WotC material/pub_20240716_QftIS.js",
    "content": "var iFileName = \"pub_20240716_QftIS.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the futuristic and magic item from the Quests from the Infinite Staircase adventure anthology to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"QftIS\"] = {\n\tname : \"Quests from the Infinite Staircase\",\n\tabbreviation : \"QftIS\",\n\tgroup : \"Adventure Books\",\n\turl : \"https://dndstore.wizards.com/us/en/product/928653/quests-from-the-infinite-staircase-digital-plus-physical-bundle\",\n\tdate : \"2024/07/16\"\n};\n\ntry {\n\tvar QftIS = { toDescrFull : BoMT.toDescrFull, to1stPerson : BoMT.to1stPerson };\n} catch (err) {\n// [dupl_start] redefine the variables, not needed in minified version\n\tvar QftIS = {\n\t\ttoDescrFull : function (sDescr) {\n\t\t\tif (typeof sDescr !== \"string\") sDescr = sDescr.join(\"\\n   \");\n\t\t\treturn sDescr.replace(/\\[\\[.*?\\]\\]/g, \"$1\")\n\t\t\t\t.replace(/>>(.*?)<</g, function(a, match) { return toUni(match); });\n\t\t},\n\t\tto1stPerson : function (sDescr, joinStr) {\n\t\t\tif (typeof sDescr === \"string\") sDescr = [sDescr];\n\t\t\treturn desc(sDescr, joinStr).replace(/\\bf(oo|ee)t\\b/ig, \"ft\")\n\t\t\t\t.replace(/you aren't/ig, \"I'm not\").replace(/you were/ig, \"I was\")\n\t\t\t\t.replace(/you are|you're/ig, \"I am\").replace(/yours\\b/ig, \"mine\")\n\t\t\t\t.replace(/\\byou\\b/ig, \"I\")\n\t\t\t\t.replace(/(aid|freeing|around|resurrected|beneath|between|\\w\\ws|by|of|to|for|on) I\\b/ig, \"$1 me\")\n\t\t\t\t.replace(/(toward) I\\b/ig, \"$1s me\")\n\t\t\t\t.replace(/(cards|items) me\\b/ig, \"$1 I\")\n\t\t\t\t.replace(/\\bI (to|a|an)\\b/ig, \"me $1\")\n\t\t\t\t.replace(/yours\\b/g, \"mine\").replace(/Yours/g, \"Mine\")\n\t\t\t\t.replace(/your/g, \"my\").replace(/Your/g, \"My\")\n\t\t\t\t.replace(/\\[\\[.*?\\]\\]/g, \"\")\n\t\t\t\t.replace(/(\\n *|\\u2022 |\\u25C6 )>>(.*?)( \\(.*?\\))?<<\\. /g, function(a, p1, p2, p3, p4) {\n\t\t\t\t\tif (/\\n   /.test(p1)) {\n\t\t\t\t\t\treturn \"\\n\\n   \" + p2.toUpperCase() + p3.toLowerCase() + \"\\n   \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn p1 + p2 + p3 + \": \";\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t}\n\t} // dupl_end\n}\nQftIS.replaceEnergyCellPlain = \">>Replacing the Energy Cell<<. While the >>THING<< has charges remaining, its energy cell can't be removed. Once the >>THING<< has 0 charges, you can replace the energy cell with a new cell by using an action or a bonus action.\"\nQftIS.replaceEnergyCell = \"\\n   \" + QftIS.replaceEnergyCellPlain.replace(\">>Replacing the Energy Cell<<\", toUni(\"Replacing the Energy Cell\"));\n\n// Futuristic items added as magic items, but set to be excluded by default\nMagicItemsList[\"antigravity belt\"] = {\n\tname : \"Antigravity Belt\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\", // not really magic items, so these use their own category \n\trarity : \"priceless\", // as per QftIS page 192\n\tdefaultExcluded : true,\n\tdescription : \"This belt has 10 charges per energy cell, which can be replaced as a (bonus) action if empty. As a bonus action, I can use charges to activate it for 1 min per charge, causing me to float in place. As a bonus action and when activating it, I can move 20 ft vertically. I can push off to move horizontally at half my speed.\",\n\tdescriptionLong : \"Metal tubes ring the lower edge of this wide belt powered by an energy cell stored in a metal case near the buckle. It has 10 charges per energy cell, which can be replaced as a (bonus) action when empty. As a bonus action, I can expend charges to activate the belt for 1 min per charge. While active, I float in place. As a bonus action and as part of activating it, I can ascend or descend up to 20 ft vertically. I can move myself horizontally by being pushed or towed or by scooting myself along a surface at half my walking speed. I can deactivate it as a bonus action; If I'm still levitating when it deactivates, I fall.\",\n\tdescriptionFull : \"Metal tubes ring the lower edge of this wide belt. It is powered by an energy cell stored in a metal case near the buckle. Placing a full energy cell in the belt gives the belt 10 charges.\"+\n\t\"\\n   \" + toUni(\"Activating the Belt\") + \". As a bonus action, you can expend any number of the belt's charges to activate it; the belt remains active for 1 minute per charge expended. You can use a bonus action to deactivate the belt early, but doing so doesn't recover any expended charges.\"+\n\t\"\\n   When you activate the belt, and as a bonus action while it remains active, you can rise or descend vertically up to 20 feet. You remain floating in place while the property is active, and you can move yourself horizontally by being pushed or towed or by scooting yourself along a surface, such as a wall or ceiling, at half your walking speed. If you are still levitating when the belt deactivates, you fall.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"belt\"),\n\tusages : 10,\n\trecovery : \"E-Cell\",\n\taction : [\n\t\t[\"bonus action\", \" (activate/stop)\"],\n\t\t[\"bonus action\", \"Replace Energy Cell\"]\n\t]\n};\nMagicItemsList[\"robot controller\"] = {\n\tname : \"Robot Controller\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This handheld device has 3 charges per energy cell, which can be replaced as a (bonus) action if empty. As an action, I can use 1 charge to Control one construct within 60 ft or Disrupt all within 30 ft to become incapacitated. They can make a DC 15 Wisdom save to resist and repeat the save. See Notes page.\",\n\tdescriptionFull : \"This small handheld device features a glass pane with a glowing display that responds to your touch.\"+\n\t\"\\n   The controller is powered by an energy cell stored in the device. Placing a full energy cell in the device gives the device 3 charges.\"+\n\t\"\\n   As an action while holding this device, you can expend 1 of its charges to cause one of the following effects:\"+\n\t\"\\n \\u2022 \" + toUni(\"Control\") + \". One Construct of your choice within 60 feet of you must succeed on a DC 15 Wisdom saving throw or have the charmed condition for 1 minute. While charmed in this way, the Construct obeys your verbal commands, and you and the Construct can communicate remotely with each other through the device. Whenever the charmed Construct takes damage, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\t\"\\n \\u2022 \" + toUni(\"Disrupt\") + \". Constructs of your choice within 30 feet of you must succeed on a DC 15 Wisdom saving throw or have the incapacitated condition for 1 minute. An incapacitated Construct can repeat the saving throw at the end of its turns, ending the effect on itself on a success.\",\n\tusages : 3,\n\trecovery : \"E-Cell\",\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : [\n\t\t\t\"This small handheld device features a glass pane with a glowing display that responds to my touch. It is powered by an energy cell, which gives it 3 charges. As an action or a bonus action, I can replace this energy cell with a new one, but only once it is empty.\",\n\t\t\t\"As an action, I can expend 1 charge to cause one of the following effects:\"+\n\t\t\t\" \\n \\u2022 Control: One construct of my choice within 60 ft of me must succeed on a DC 15 Wisdom saving throw or have the charmed condition for 1 minute. While charmed in this way, the Construct obeys my verbal commands, and we can communicate remotely with each other through the device. Whenever the charmed construct takes damage, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\t\t\t\" \\n \\u2022 Disrupt: All constructs of my choice within 30 ft of me must succeed on a DC 15 Wisdom saving throw or have the incapacitated condition for 1 minute. An incapacitated construct can repeat the saving throw at the end of its turns, ending the effect on itself on a success.\"\n\t\t]\n\t}]\n};\n// Futuristic Grenades\nWeaponsList[\"grenade, concussion\"] = {\n\tregExpSearch : /^(?=.*grenade)(?=.*concussion).*$/i,\n\tname : \"Concussion Grenade\",\n\tnameAlt : [\"Grenade, Concussion\"],\n\tsource : [[\"D\", 268]],\n\tlist : \"explosive\",\n\tability : 0,\n\ttype : \"Explosive\",\n\tdamage : [6, 6, \"force\"],\n\trange : \"60 ft\",\n\tweight : 1,\n\tdescription : \"All within 20-ft radius, Dex save halves\",\n\tabilitytodamage : false,\n\tmodifiers : [7, \"\"],\n\tdc : true,\n\tammo : \"grenade\",\n\tisNotWeapon : true,\n\tisAlwaysProf : false,\n\ttooltip : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\"\\n   A concussion grenade explodes in a concussive blast that fills a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d6 force damage on a failed save or half as much damage on a successful one.\",\n\tdefaultExcluded : true\n};\nif (MagicItemsList[\"grenade\"]) {\n\tAddFeatureChoice(MagicItemsList[\"grenade\"], false, \"Concussion Grenade\", {\n\t\tname : \"Concussion Grenade\",\n\t\tsortname : \"Grenade, Concussion\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"explosive, futuristic\",\n\t\trarity : \"priceless\",\n\t\tdefaultExcluded : true,\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. All creatures within 20 ft of an exploding concussion grenade take 6d6 force damage, but can make a DC 15 Dexterity save to halve that damage.\",\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\t\"\\n   A concussion grenade explodes in a concussive blast that fills a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking 6d6 force damage on a failed save or half as much damage on a successful one.\",\n\t\tweaponsAdd : { select : [\"Concussion Grenade\"] },\n\t\teval : function() { // make sure the weapon and ammo are not excluded\n\t\t\tif (CurrentSources.weapExcl.eject(\"grenade, concussion\") !== -1) SetWeaponsdropdown();\n\t\t\tif (CurrentSources.ammoExcl.eject(\"grenade\") !== -1) SetAmmosdropdown();\n\t\t}\n\t}, false, true);\n\tAddFeatureChoice(MagicItemsList[\"grenade\"], false, \"Sleep Grenade\", {\n\t\tname : \"Sleep Grenade\",\n\t\tsortname : \"Grenade, Sleep\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"explosive, futuristic\",\n\t\trarity : \"priceless\",\n\t\tdefaultExcluded : true,\n\t\tdescription : \"As an action, I can throw a grenade at a point up to 60 ft away or double that with a grenade launcher. A soporific mist releases from a sleep grenade, then dissipates. All within 20 ft of it must make a DC 15 Con save or fall unconscious for 1 hour, until taking damage, or until another using an action to shake awake.\",\n\t\tdescriptionFull : \"As an action, a character can throw a grenade at a point up to 60 feet away. With a grenade launcher, the character can propel the grenade up to 120 feet away.\"+\n\t\t\"\\n   A sleep grenade releases a cloud of soporific mist that fills a 20-foot-radius sphere, then dissipates. Each creature in that area must succeed on a DC 15 Constitution saving throw or have the unconscious condition for 1 hour. The condition ends on a creature early if the creature takes damage or if another creature uses an action to shake it awake.\"\n\t}, false, true);\n}\n// Futuristic Weapons\nMagicItemsList[\"needler pistol\"] = {\n\tname : \"Needler pistol\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"futuristic item\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This pistol has 10 charges per energy cell, which can be replaced as a (bonus) action once empty. As an action, I can use 1 charge to fire a burst needlelike darts from it in a 15-ft cone, dealing 8d4 piercing damage to all creatures in the area. Creatures can make a DC 15 Dexterity saving throw to half the damage.\",\n\tdescriptionFull : \"This strange pistol resembles a flask with a honeycomb of tubes sticking out its front. The weapon is powered by an energy cell stored at the base of the flask. Placing a full energy cell in the pistol gives the pistol 10 charges.\"+\n\t\"\\n   As an action while holding this pistol, you can expend 1 of its charges to fire a burst of glowing, needlelike darts from the pistol in a 15-foot cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 8d4 piercing damage on a failed save or half as much damage on a successful one.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\tusages : 10,\n\trecovery : \"E-Cell\",\n\tweight : 2, // Guess by MPMB\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*needler)(?=.*pistol).*$/i,\n\t\tname : \"Needler Pistol\",\n\t\tnameAlt : [\"Pistol, Needler\"],\n\t\tsource : [[\"QftIS\", 192]],\n\t\tability : 0,\n\t\ttype : \"Firearm\",\n\t\tdamage : [8, 4, \"piercing\"],\n\t\trange : \"15-ft Cone\",\n\t\tweight : 2, // Guess by MPMB\n\t\tdescription : \"Dex save for half damage; Ammunition, reload (10 shots)\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, \"\"],\n\t\tdc : true,\n\t\tammo : \"energy cell\",\n\t\tisAlwaysProf : false,\n\t\ttooltip : \"As an action while holding this pistol, you can expend 1 of its charges to fire a burst of glowing, needlelike darts from the pistol in a 15-ft cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 8d4 piercing damage on a failed save or half as much damage on a successful one.\" + QftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\t\tselectNow : true\n\t}]\n};\nMagicItemsList[\"paralysis pistol\"] = {\n\tname : \"Paralysis Pistol\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"technological device\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This pistol has 6 charges per energy cell, which can be replaced as a (bonus) action once empty. As an action, I can use 1 charge to fire the pistol at a creature I can see within 60 ft, which must then make a DC 15 Constitution save or be paralyzed for 1 min. The target can repeat the save at the end of each of its turns.\",\n\tdescriptionFull : \"This curious-looking pistol is shaped like a large, glass bulb with a handle on the bottom and brass prongs protruding from its front. The weapon is powered by an energy cell stored in its grip. Placing a full energy cell in the pistol gives the pistol 6 charges.\"+\n\t\"\\n   As an action while holding this pistol, you can expend 1 of its charges to fire a ray of crackling energy at a creature you can see within 60 feet of yourself. The target must succeed on a DC 15 Constitution saving throw or have the paralyzed condition for 1 minute. At the end of each of the target's turns, it can repeat the saving throw, ending the effect on itself on a success.\"+\n\tQftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\tusages : 6,\n\trecovery : \"E-Cell\",\n\tweight : 2, // Guess by MPMB\n\taction : [[\"action\", \"\"], [\"bonus action\", \"Replace Energy Cell\"]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*paralysis)(?=.*pistol).*$/i,\n\t\tname : \"Paralysis pistol\",\n\t\tnameAlt : [\"Pistol, Paralysis\"],\n\t\tsource : [[\"QftIS\", 192]],\n\t\tability : 0,\n\t\ttype : \"Firearm\",\n\t\tdamage : [\"Con save\", \"\", \"Paralyzed\"],\n\t\trange : \"60 ft\",\n\t\tweight : 2, // Guess by MPMB\n\t\tdescription : \"Paralyzed for 1 min; Repeat save at end of turn; Ammunition, reload (6 shots)\",\n\t\tabilitytodamage : false,\n\t\tmodifiers : [7, \"\"],\n\t\tdc : true,\n\t\tammo : \"energy cell\",\n\t\tisAlwaysProf : false,\n\t\ttooltip : \"As an action while holding this pistol, you can expend 1 of its charges to fire a ray of crackling energy at a creature you can see within 60 ft of yourself. The target must succeed on a DC 15 Constitution saving throw or have the paralyzed condition for 1 minute. At the end of each of the target's turns, it can repeat the saving throw, ending the effect on itself on a success.\" + QftIS.replaceEnergyCell.replace(/>>THING<</g, \"pistol\"),\n\t\tselectNow : true\n\t}]\n};\n// Futuristic Armour\nQftIS.poweredArmor = [\n\t\"This suit of technologically advanced plate armor includes an under-suit that can fully seal, a helmet with a full face mask and crystal lenses in the eyeholes, and a set of gauntlets. The armor is powered by an energy cell stored in a compartment on the thigh plate.\",\n\t\"Placing a full energy cell in the armor gives the armor 24 charges. A suit of powered armor functions as a suit of normal plate armor, even when it has 0 charges remaining.\",\n\t\">>Activating the Armor<<. As an action, you can expend any number of the armor's charges to activate it; the armor remains active for 1 hour per charge expended. You can use a bonus action to deactivate the armor early, but doing so doesn't recover any expended charges.\",\n\t\"While the armor is active, you gain the following benefits:\"+\n\t\"\\n \\u2022 >>Augmented Physicality<<. You have advantage on Strength checks, and your carrying capacity is doubled.\"+\n\t\"\\n \\u2022 >>Environmental Adaptation<<. The armor seals airtight and provides its own atmosphere. You can breathe normally in any environment and withstand extreme temperatures, and you're unaffected by harmful gases, as well as contact and inhaled poisons.\"+\n\t\"\\n \\u2022 >>Force Field<<. When you would take damage, you can use your reaction to expend 1 of the armor's charges to deploy a defensive force field. Roll 3d10 and reduce the damage taken by the total rolled.\"+\n\t\"\\n \\u2022 >>Propulsion<<. As a bonus action, you can expend 1 of the armor's charges to gain a flying speed equal to your walking speed for 1 minute. If you're airborne when this duration ends, you fall.\",\n\tQftIS.replaceEnergyCellPlain.replace(/>>THING<</g, \"armor\")\n]\nMagicItemsList[\"powered armor\"] = {\n\tname : \"Powered Armor\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"technological device\",\n\trarity : \"priceless\",\n\tdefaultExcluded : true,\n\tdescription : \"This plate armor has 24 charges per energy cell, which can be replaced as a (bonus) action if empty. As an action, I can expend charges to active it for 1 hour per charge. While active, I gain adv. on Str, double carrying capacity, have my own atmosphere to breath in, and can use Force Field and Propulsion, see Notes.\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.poweredArmor),\n\tusages : 24,\n\trecovery : \"E-Cell\",\n\tweight : 65,\n\taction : [\n\t\t[\"action\", \"Activate Powered Armor (1 h/charge)\"],\n\t\t[\"reaction\", \"Powered Armor: Force Field (1 charge)\"],\n\t\t[\"bonus action\", \"Powered Armor: Propulsion (1 charge)\"],\n\t\t[\"bonus action\", \"Replace Energy Cell\"]\n\t],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*powered)(?=.*armou?r).*$/i,\n\t\tname : \"Powered Armor\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\ttype : \"heavy\",\n\t\tac : 18,\n\t\tstealthdis : true,\n\t\tweight : 65,\n\t\tstrReq : 15\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.poweredArmor)\n\t}]\n};\n\n// Magic Items\nQftIS.heretic = [\n\t\"The blasphemous weapon Heretic was created by a cult to steal power from good-aligned gods. The blade hungers to strike down servants of the Upper Planes and weaken the forces of good.\",\n\t\"You gain a +3 bonus to attack and damage rolls made with this magic weapon. Heretic has 6 charges for the following properties; the sword regains 1d4 + 1 charges daily at dawn:\"+\n\t\"\\n \\u2022 >>Destroy Devotion<<. Once per turn when you hit a creature with this weapon, you can expend 1 of its charges to attempt to render the target powerless. The target must succeed on a DC 17 Constitution saving throw or have the paralyzed condition until the start of your next turn. Celestials have disadvantage on the save.\"+\n\t\"\\n \\u2022 >>Faith Hunter<<. While holding the sword, you can use an action to expend 1 or more of its charges to cast one of the following spells from it: Detect Evil and Good (1 charge), Fly (2 charges), or True Seeing (3 charges).\",\n\t\">>Sentience<<. Heretic is a sentient, chaotic evil weapon with an Intelligence of 17, a Wisdom of 17, and a Charisma of 15. It has hearing and darkvision out to a range of 120 feet.\",\n\t\"The weapon can speak, read, and understand Common and Giant, and it can communicate with its wielder telepathically. Its voice is soft and deep but rises in a wild furor when it's aware Celestials or worshipers of good-aligned deities are present. While you are attuned to it, Heretic also understands every language you know.\",\n\t\">>Personality<<. Heretic craves the destruction of good-aligned gods and their supporters. The blade is condescending and snobby, especially in the company of priests and other pious folk, at whom it often directs sneering comments. When Heretic identifies its quarry, it erupts in a frenzied need for violence.\"\n];\nMagicItemsList[\"heretic\"] = {\n\tname : \"Heretic\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"weapon (longsword)\",\n\trarity : \"legendary\",\n\tdescription : \"This sentient longsword adds +3 to hit and damage and has 6 charges, regaining 1d4+1 at dawn. Once per turn on a hit with it, I can use 1 charge to force a DC 17 Con save or paralyze until my next turn. As an action, I can cast spells from it: Detect Evil and Good (1 charge), Fly (2 charges), or True Seeing (3 charges).\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.heretic),\n\tattunement : true,\n\tprerequisite : \"Requires attunement by a non-good creature\",\n\tprereqeval : function(v) { return !/good/i.test(What(\"Alignment\")); },\n\tweight : 3,\n\tweaponOptions : [{\n\t\tbaseWeapon : \"longsword\",\n\t\tregExpSearch : /heretic/i,\n\t\tname : \"Heretic\",\n\t\tsource : [[\"QftIS\", 192]],\n\t\tdescription : \"Versatile (1d10); On hit, 1 charge to paralyze (DC 17 Con save)\",\n\t\tmodifiers : [3, 3],\n\t\tselectNow : true\n\t}],\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.heretic) + \"\\n\\n\" + sentientItemConflictTxt\n\t}],\n\tusages : 6,\n\trecovery : \"dawn\",\n\tadditional : \"regains 1d4+1\",\n\tspellFirstColTitle : \"Ch\",\n\tspellcastingBonus : [{\n\t\tname : \"1 charge\",\n\t\tspells : [\"detect evil and good\"],\n\t\tselection : [\"detect evil and good\"],\n\t\tfirstCol : 1\n\t}, {\n\t\tname : \"2 charges\",\n\t\tspells : [\"fly\"],\n\t\tselection : [\"fly\"],\n\t\tfirstCol : 2\n\t}, {\n\t\tname : \"3 charges\",\n\t\tspells : [\"true seeing\"],\n\t\tselection : [\"true seeing\"],\n\t\tfirstCol : 2\n\t}]\n}\nQftIS.staffOfRuling = [\n\t\"An ornate carving of a serpent adorned with a coursing river spirals down the length of this redand-gold staff. While you're holding it, you can use an action to produce one of the following effects. Once the staff has produced an effect, it can't produce that effect again until the next dawn.\",\n\t\">>Orb of Lightning<<. You create a Small orb of lightning in an unoccupied space you can see within 60 feet of yourself. You concentrate on this orb as if concentrating on a spell. As a bonus action, you can move the orb up to 20 feet in any direction.\",\n\t\"When your concentration ends, or when a creature enters the orb's space or starts its turn there, the orb detonates in a 20-foot-radius sphere. Each creature in that area must make a DC 15 Dexterity saving throw, taking lightning damage equal to the total accumulated damage on a failed save, or half as much damage on a successful one; the orb's base damage is 6d6, and if at the end of your turn the orb hasn't detonated, its damage increases by 2d6, to a maximum of 10d6.\",\n\t\">>Staff to Snake<<. You throw the staff to an unoccupied space within 10 feet of you, and the staff becomes a giant poisonous snake. The snake is under your control and shares your initiative count, but it takes its turn immediately after yours.\",\n\t\"On your turn, you can mentally command the snake if it is within 60 feet of you and you don't have the incapacitated condition. You decide what action the snake takes and where it moves during its turn, or you can issue it a general command, such as to attack your enemies or guard a location.\",\n\t\"If you use a bonus action to speak the command word again, or if the snake is reduced to 0 hit points, the snake reverts to staff form in its current space.\",\n\t\">>Thunderclap<<. You point the staff skyward, producing a fearsome thunderclap. Each creature of your choice in a 30-foot-radius sphere centered on you must succeed on a DC 15 Constitution saving throw or have the deafened and frightened conditions until the end of your next turn.\"\n];\nMagicItemsList[\"staff of ruling\"] = {\n\tname : \"Staff of Ruling\",\n\tsource : [[\"QftIS\", 192]],\n\ttype : \"staff\",\n\trarity : \"rare\",\n\tdescription : \"As an action, I can use this redand-gold staff with an ornate serpent carving to produce one of several effects: Orb of Lightning, Staff to Snake, or Thunderclap. Once the staff has produced an effect, it can't produce that effect again until the next dawn. See Notes page for the effect descriptions.\",\n\tdescriptionFull : QftIS.toDescrFull(QftIS.staffOfRuling),\n\tattunement : true,\n\tweight : 4,\n\ttoNotesPage : [{\n\t\tname : \"Features\",\n\t\tnote : QftIS.to1stPerson(QftIS.staffOfRuling)\n\t}],\n\taction : [[\"action\", \"\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Staff of Ruling: Orb of Lightning\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Staff of Ruling: Staff to Snake\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}, {\n\t\tname : \"Staff of Ruling: Thunderclap\",\n\t\tusages : 1,\n\t\trecovery : \"dawn\"\n\t}]\n}"
  },
  {
    "path": "WotC material/pub_al_20190917_ALPG-v9.1.js",
    "content": "var iFileName = \"pub_al_20190917_ALPG-v9.1.js\";\nRequiredSheetVersion(\"13.0.8\");\n// This file adds the winged aasimar/tiefling from the Adventurers League Player's Guide v9.1: Inglorious Redemption to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"ALPGs9\"] = {\n\tname : \"AL Player's Guide v9.1: Inglorious Redemption\",\n\tabbreviation : \"ALPGs9\",\n\tgroup : \"Adventurers League\",\n\turl : \"https://www.dropbox.com/s/8r1cwjrk6n2rzyo/AL-Players-Guide-v9.1-Forgotten-Realms.pdf?dl=1\", // used to be https://www.dmsguild.com/product/208178\n\tdate : \"2019/09/17\",\n\tdefaultExcluded : true\n};\n\n/*\n\tAdd this source to the Aasimar from VGtM and the Winged Tiefling variant from SCAG\n\tAlso, add a winged variant to the three Aasimar subraces from VGtM\n*/\n[\n\t[\"fallen aasimar\", false],\n\t[\"protector aasimar\", false],\n\t[\"scourge aasimar\", false],\n\t[\"tiefling-winged\", true],\n\t[\"feral tiefling-winged\", true]\n].forEach(function (rac) {\n\tvar rObj = rac[1] ? RaceSubList[rac[0]] : RaceList[rac[0]];\n\tif (!rObj) return;\n\trObj.source = (isArray(rObj.source[0]) ? rObj.source : [rObj.source]).concat([[\"ALPGs9\", 6]]);\n\tif (rac[0].indexOf(\"aasimar\") !== -1) {\n\t\tAddRacialVariant(rac[0], \"winged\", {\n\t\t\tregExpSearch : /wing/i,\n\t\t\tname : \"Winged \" + rObj.name,\n\t\t\tsource : [[\"ALPGs9\", 6]],\n\t\t\tplural : \"Winged \" + rObj.plural,\n\t\t\tspeed : {\n\t\t\t\twalk : { spd : 30, enc : 20 },\n\t\t\t\tfly : { spd : 30, enc : 0 }\n\t\t\t},\n\t\t\ttrait : \"Winged \" + rObj.trait.replace(/\\)(\\r|\\n|.)+/, \")\\n\\nHealing Hands:\\n   As an action, once per long rest, I can touch to heal for my level in HP.\\nWings:\\n   Once I'm 5th level, I sprout feathered wings from my shoulder blades that give me a flying speed of 30 feet when I'm not wearing heavy armor.\"),\n\t\t\tfeatures : {\n\t\t\t\t\"healing hands\" : {\n\t\t\t\t\tname : \"Healing Hands\",\n\t\t\t\t\tusages : 1,\n\t\t\t\t\tminlevel : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tadditional : levels.map(function (n) { return n + \" HP\"; }),\n\t\t\t\t\taction : [[\"action\", \"\"]]\n\t\t\t\t}\n\t\t\t},\n\t\t\tabilitySave : \"\",\n\t\t\tspellcastingAbility : \"\",\n\t\t\tspellcastingBonus : \"\"\n\t\t});\n\t}\n});\n"
  },
  {
    "path": "WotC material/ua_20150202_Eberron.js",
    "content": "var iFileName = \"ua_20150202_Eberron.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Eberron article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:E\"] = {\r\n\tname : \"Unearthed Arcana: Eberron\",\r\n\tabbreviation : \"UA:E\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Eberron_v1.1.pdf\",\r\n\tdate : \"2015/02/02\"\r\n};\r\n\r\n// Adds three races:\r\n// Changeling\r\nRaceList[\"changeling-ua\"] = {\r\n\tregExpSearch : /changeling/i,\r\n\tname : \"Changeling\",\r\n\tsource : [[\"UA:E\", 1]],\r\n\tplural : \"Changelings\",\r\n\tsize : 3,\r\n\tskills : [\"Deception\"],\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 2],\r\n\tage : \" reach adulthood in their early teens and live around 80 years\",\r\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\r\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 1],\r\n\ttrait : \"Changeling (+1 Dexterity, +1 Charisma)\\nShapechanger:\\n   As an action, I can polymorph into any humanoid of my size that I have seen, or back into my true form.\\n   However, my equipment does not change with me.\\n   If I die, I revert to my natural appearance.\",\r\n\taction : ['action', 'Polymorph']\r\n};\r\n// Warforged\r\nRaceList[\"warforged-ua\"] = {\r\n\tregExpSearch : /warforged/i,\r\n\tname : \"Warforged\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tplural : \"Warforged\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tsavetxt : { immune : [\"disease\"] },\r\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\r\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\r\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 0],\r\n\ttrait : \"Warforged (+1 Strength, +1 Constitution)\\nLiving Construct:\\n   Even though I was constructed, I am a living creature. I am immune to disease. I do not need to eat or breathe, but I can ingest food and drink if I wish.\\n   Instead of sleeping, I enter an inactive state for 4 hours each day. I do not dream in this state; I am fully aware of my surroundings and notice approaching enemies and other events as normal. I still need 8 hours for a long rest.\",\r\n\textraAC : {\r\n\t\tname : \"Composite Plating\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC.\"\r\n\t}\r\n};\r\n// Shifter and its 6 subraces\r\nRaceList[\"shifter-ua\"] = {\r\n\tregExpSearch : /shifter/i,\r\n\tname : \"Shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Shifters\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood at the end of their teens and live around 100 years\",\r\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity and +1 to other ability score depending on type of shifter\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\ttrait : \"Shifter (+1 Dexterity and +1 to other ability score depending on type of shifter)\\n   Use the \\\"Racial Options\\\" button to select type of shifter.\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and another bonus depending on the type of shifter.\",\r\n\tfeatures : {\r\n\t\t\"shift\" : {\r\n\t\t\tname : \"Shift\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"shifter-ua\", \"beasthide\", {\r\n\tregExpSearch : /beasthide/i,\r\n\tname : \"Beasthide shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Beasthide shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 1, 1, 0, 0, 0],\r\n\ttrait : \"Beasthide Shifter (+1 Dexterity, +1 Constitution)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain a +1 bonus to my AC.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"cliffwalk\", {\r\n\tregExpSearch : /cliffwalk/i,\r\n\tname : \"Cliffwalk shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Cliffwalk shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Cliffwalk Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain a climb speed of 30 feet.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"longstride\", {\r\n\tregExpSearch : /longstride/i,\r\n\tname : \"Longstride shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Longstride shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Longstride Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I can use the Dash action as a bonus action.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"longtooth\", {\r\n\tregExpSearch : /(longtooth|longteeth)/i,\r\n\tname : \"Longtooth shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Longtooth shifters\",\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\blongtooth\\b/i,\r\n\t\tname : \"Longtooth\",\r\n\t\tsource : [[\"UA:E\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Only while shifted; Target up to my size is grappled\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 1, 0, 0, 0, 0],\r\n\ttrait : \"Longtooth Shifter (+1 Strength, +1 Dexterity)\\nShifting: On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again. While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and, as an action, I can make can make a bite attack. This is a melee weapon attack that uses Strength and deals 1d6 piercing damage. If this attack hits a target that is my size or smaller, the target is also grappled.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"razorclaw\", {\r\n\tregExpSearch : /razorclaw/i,\r\n\tname : \"Razorclaw shifter\",\r\n\tsource : [[\"UA:E\", 2]],\r\n\tplural : \"Razorclaw shifters\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /\\brazorclaw\\b/i,\r\n\t\tname : \"Razorclaw\",\r\n\t\tsource : [[\"UA:E\", 2]],\r\n\t\tdamage : [1, \"\", \"slashing\"],\r\n\t\tdescription : \"Only while shifted, use instead of unarmed strike: Can use as bonus action; Finesse\",\r\n\t\tselectNow : true\r\n\t}],\r\n\tscorestxt : \"\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Razorclaw Shifter (+2 Dexterity)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and, as a bonus action, I can make an unarmed strike that can use my Dexterity for the attack roll and damage, dealing slashing damage.\"\r\n});\r\nAddRacialVariant(\"shifter-ua\", \"wildhunt\", {\r\n\tregExpSearch : /wildhunt/i,\r\n\tname : \"Wildhunt shifter\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tplural : \"Wildhunt shifters\",\r\n\tscorestxt : \"\",\r\n\tscores : [0, 1, 0, 0, 1, 0],\r\n\ttrait : \"Wildhunt Shifter (+1 Dexterity, +1 Wisdom)\\nShifting:\\n   On my turn, I can shift as a bonus action. Shifting lasts for 1 minute or until I end it on my turn as a bonus action. I must finish a short rest before I can shift again.\\n   While shifted, I gain temporary hit points equal to my level + my Constitution modifier (minimum of 1) and I gain advantage on all Wisdom-based checks and saving throws.\"\r\n});\r\n\r\n// 12 variants of the Dragonmark feat\r\nFeatsList[\"dragonmark-ua\"] = {\r\n\tname : \"Dragonmark\",\r\n\tsource : [[\"UA:E\", 6]],\r\n\tdescription : \"Select the type of dragonmark using the little square button in this feat line.\",\r\n\tchoices : [\"Detection\", \"Finding\", \"Handling\", \"Healing\", \"Hospitality\", \"Making\", \"Passage\", \"Scribing\", \"Sentinel\", \"Shadow\", \"Storm\", \"Warding\"],\r\n\t\"detection\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Detection, the dragonmark of House Medani, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Detect Magic, Mage Hand\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Detect Thoughts\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Clairvoyance\",\r\n\t\tdescription : \"I learn the Mage Hand cantrip. I can also cast Detect Magic, Detect Thoughts (from 5th level onwards), and Clairvoyance (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"mage hand\", \"detect magic\", \"detect thoughts\", \"clairvoyance\"],\r\n\t\t\tselection : [\"mage hand\", \"detect magic\", \"detect thoughts\", \"clairvoyance\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"finding\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Finding, the dragonmark of House Tharashk, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Identify, Mage Hand\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Locate Object\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Clairvoyance\",\r\n\t\tdescription : \"I learn the Mage Hand cantrip. I can also cast Identify, Locate Object (from 5th level onwards), and Clairvoyance (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"mage hand\", \"identify\", \"locate object\", \"clairvoyance\"],\r\n\t\t\tselection : [\"mage hand\", \"identify\", \"locate object\", \"clairvoyance\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"handling\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Handling, the dragonmark of House Vadalis, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Druidcraft, Speak with Animals\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Beast Sense\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Conjure Animals\",\r\n\t\tdescription : \"I learn the Druidcraft cantrip. I can also cast Speak with Animals, Beast Sense (from 5th level onwards), and Conjure Animals (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"druidcraft\", \"speak with animals\", \"beast sense\", \"conjure animals\"],\r\n\t\t\tselection : [\"druidcraft\", \"speak with animals\", \"beast sense\", \"conjure animals\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"healing\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Healing, the dragonmark of House Jorasco, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Cure Wounds, Spare the Dying\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Lesser Restoration\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Revivify\",\r\n\t\tdescription : \"I learn the Spare the Dying cantrip. I can also cast Cure Wounds, Lesser Restoration (from 5th level onwards), and Revivify (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"spare the dying\", \"cure wounds\", \"lesser restoration\", \"revivify\"],\r\n\t\t\tselection : [\"spare the dying\", \"cure wounds\", \"lesser restoration\", \"revivify\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"hospitality\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Hospitality, the dragonmark of House Ghallanda, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Charisma as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Friends, Unseen Servant\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Rope Trick\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Leomund's Tiny Hut\",\r\n\t\tdescription : \"I learn the Friends cantrip. I can also cast Unseen Servant, Rope Trick (from 5th level onwards), and Leomund's Tiny Hut (from 9th level onwards), each once per long rest. Charisma is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tspells : [\"friends\", \"unseen servant\", \"rope trick\", \"leomund's tiny hut\"],\r\n\t\t\tselection : [\"friends\", \"unseen servant\", \"rope trick\", \"leomund's tiny hut\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"making\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Making, the dragonmark of House Cannith, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Identify, Mending\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Magic Weapon\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Fabricate\",\r\n\t\tdescription : \"I learn the Mending cantrip. I can also cast Identify, Magic Weapon (from 5th level onwards), and Fabricate (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"mending\", \"identify\", \"magic weapon\", \"fabricate\"],\r\n\t\t\tselection : [\"mending\", \"identify\", \"magic weapon\", \"fabricate\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"passage\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Passage, the dragonmark of House Orien, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Expeditious Retreat, Light\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Misty Step\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Teleportation Circle\",\r\n\t\tdescription : \"I learn the Light cantrip. I can also cast Expeditious Retreat, Misty Step (from 5th level onwards), and Teleportation Circle (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"light\", \"expeditious retreat\", \"misty step\", \"teleportation circle\"],\r\n\t\t\tselection : [\"light\", \"expeditious retreat\", \"misty step\", \"teleportation Circle\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"scribing\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Scribing, the dragonmark of House Sivis, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Comprehend Languages, Message\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Sending\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Tongues\",\r\n\t\tdescription : \"I learn the Message cantrip. I can also cast Comprehend Languages, Sending (from 5th level onwards), and Tongues (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"message\", \"comprehend languages\", \"sending\", \"tongues\"],\r\n\t\t\tselection : [\"message\", \"comprehend languages\", \"sending\", \"tongues\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"sentinel\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Sentinel, the dragonmark of House Deneith, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Wisdom as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Blade Ward, Compelled Duel\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Blur\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Protection from Energy\",\r\n\t\tdescription : \"I learn the Blade Ward cantrip. I can also cast Compelled Duel, Blur (from 5th level onwards), and Protection from Energy (from 9th level onwards), each once per long rest. Wisdom is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tspells : [\"blade ward\", \"compelled duel\", \"blur\", \"protection from energy\"],\r\n\t\t\tselection : [\"blade ward\", \"compelled duel\", \"blur\", \"protection from energy\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"shadow\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Shadow, the dragonmark of House Phiarlan and House Thuranni, and are a member of one of those houses.\\n   You gain the ability to innately cast spells and cantrips, using Charisma as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Dancing Lights, Disguise Self\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Darkness\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Nondetection\",\r\n\t\tdescription : \"I learn the Dancing Lights cantrip. I can also cast Disguise Self, Darkness (from 5th level onwards), and Nondetection (from 9th level onwards), each once per long rest. Charisma is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tspells : [\"dancing lights\", \"disguise self\", \"darkness\", \"nondetection\"],\r\n\t\t\tselection : [\"dancing lights\", \"disguise self\", \"darkness\", \"nondetection\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"storm\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Storm, the dragonmark of House Lyrander, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Fog Cloud, Shocking Grasp\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Gust of Wind\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Sleet Storm\",\r\n\t\tdescription : \"I learn the Shocking Grasp cantrip. I can also cast Fog Cloud, Gust of Wind (from 5th level onwards), and Sleet Storm (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"shocking grasp\", \"fog cloud\", \"gust of wind\", \"sleet storm\"],\r\n\t\t\tselection : [\"shocking grasp\", \"fog cloud\", \"gust of wind\", \"sleet storm\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t},\r\n\t\"warding\" : {\r\n\t\tdescriptionFull : \"Your have the magical mark of Warding, the dragonmark of House Kundarak, and are a member of that house.\\n   You gain the ability to innately cast spells and cantrips, using Intelligence as your spellcasting ability. You cast each spell at its lowest level. Once you cast a given spell this way, you must finish a long rest before you can cast it innately again. You must still expend any material components. Your dragonmark confers the following benefits:\\n   \" + toUni(\"Least Dragonmark\") + \". When you first take this feat, you gain the least dragonmark. You learn the following spells: Alarm, Resistance\\n   \" + toUni(\"Lesser Dragonmark\") + \". At 5th level and higher, your mark becomes more potent, improving to lesser dragonmark. You learn the following spell: Arcane Lock\\n   \" + toUni(\"Greater Dragonmark\") + \". At 9th level and higher, your mark's power increases again, becoming a greater dragonmark. You learn the following spell: Magic Circle\",\r\n\t\tdescription : \"I learn the Resistance cantrip. I can also cast Alarm, Arcane Lock (from 5th level onwards), and Magic Circle (from 9th level onwards), each once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Dragonmark\",\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tspells : [\"resistance\", \"alarm\", \"arcane lock\", \"magic circle\"],\r\n\t\t\tselection : [\"resistance\", \"alarm\", \"arcane lock\", \"magic circle\"],\r\n\t\t\ttimes : [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}]\r\n\t}\r\n}\r\n\r\n// Adds a subclass for the Wizard, called \"Tradition of the Artificer\"\r\nAddSubClass(\"wizard\", \"artificer-ua\", {\r\n\tregExpSearch : /^((?=.*(wizard|mage|magus))(?=.*artificer))|(?=.*infuser).*$/i,\r\n\tsubname : \"Tradition of the Artificer\",\r\n\tsource : [[\"UA:E\", 3]],\r\n\tfullname : \"Wizard (Artificer)\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Infuse Potions\",\r\n\t\t\tsource : [[\"UA:E\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce magic potions if I spend 10 minutes and expend a spell slot\",\r\n\t\t\t\t\"I can not regain the spell slot until the potion is consumed or a week has passed\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"3 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\", \"4 potions\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Infuse Scrolls\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce a scroll after a short rest if I spend 10 minutes and my Arcane Recovery\",\r\n\t\t\t\t\"I subtract the spell's level from the levels worth of slots I regain using Arcane Recovery\",\r\n\t\t\t\t\"This reduction applies till the scroll is used and I finish a long rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"1 scroll\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\", \"2 scrolls\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Infuse Weapons and Armor\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can spend 10 minutes to produce a magic weapon, armor, a shield, or ammunition\",\r\n\t\t\t\t\"The item retains its magic for 8 hours and the spell slot I expend is:\",\r\n\t\t\t\t\"2nd: +1 ammunition (20 pieces), 3rd: +1 weapon or +1 shield, 4th: +1 armor,\",\r\n\t\t\t\t\"5th: +2 weapon or +2 ammunition (20 pieces), 6th: +3 armor.\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"1 weapon or armor\", \"1 weapon or armor\", \"1 weapon or armor\", \"1 weapon or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\", \"2 weapons or armor\"]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Superior Artificer\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can create one additional scroll, potion, weapon, or armor when I use Infuse\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Artificer\",\r\n\t\t\tsource : [[\"UA:E\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can produce a variety of magic items from Tables A and B from the DMG\",\r\n\t\t\t\t\"It takes 1 week for such an item and I cannot do it again for a month\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"Month\"\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20150406_Modifying-Classes.js",
    "content": "var iFileName = \"ua_20150406_Modifying-Classes.js\";\r\nRequiredSheetVersion(\"13.0.8\", 15);\r\n// This file adds the content from the Unearthed Arcana: Modifying Classes article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MC\"] = {\r\n\tname : \"Unearthed Arcana: Modifying Classes\",\r\n\tabbreviation : \"UA:MC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA3_ClassDesignVariants.pdf\",\r\n\tdate : \"2015/04/06\"\r\n};\r\n// Also needs the PHB source, as the spell-less ranger uses stuff from there\r\nif (!SourceList.P) {\r\n\tSourceList.P = {\r\n\t\tname : \"Player's Handbook\",\r\n\t\tabbreviation : \"PHB\",\r\n\t\tgroup : \"Primary Sources\",\r\n\t\turl : \"https://dnd.wizards.com/products/rpg_playershandbook\",\r\n\t\tdate : \"2014/08/19\"\r\n\t};\r\n};\r\n\r\n// Adds a subclass for the Sorcerer, called \"Favored Soul\", but only have it added at the very end, after all cleric subclasses have been defined\r\nRunFunctionAtEnd(function() {\r\n\tvar SorcererSubclassFavoredSoul = AddSubClass(\"sorcerer\", \"favored soul-ua\", {\r\n\t\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\t\tsubname : \"Favored Soul\",\r\n\t\tsource : [[\"UA:MC\", 8]],\r\n\t\tfullname : \"Favored Soul\",\r\n\t\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature1\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tsource : [[\"UA:MC\", 9]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription: desc(\"I gain proficiency with light armor, medium armor, shields, and simple weapons\"),\r\n\t\t\t\tarmorProfs : [true, true, false, true],\r\n\t\t\t\tweaponProfs : [true, false]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature1.1\" : {\r\n\t\t\t\tname : \"Chosen of the Gods\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 1,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t'Choose a Cleric Domain using the \"Choose Feature\" button above',\r\n\t\t\t\t\t\"I add the chosen domain's spells to my known spells, when they are of a level I can cast\",\r\n\t\t\t\t\t\"These count as sorcerer spells, but do not count against the number of spells I can know\",\r\n\t\t\t\t]),\r\n\t\t\t\tchoices : []\r\n\t\t\t},\r\n\t\t\t\"subclassfeature14\" : {\r\n\t\t\t\tname : \"Divine Wings\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 14,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I sprout feathered or bat wings from my back unless blocked by armor\",\r\n\t\t\t\t\t\"I gain a fly speed equal to my current speed until I dismiss the wings as a bonus action\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (start/stop)\"]],\r\n\t\t\t\tspeed : { fly : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t\t},\r\n\t\t\t\"subclassfeature18\" : {\r\n\t\t\t\tname : \"Power of the Chosen\",\r\n\t\t\t\tsource : [[\"UA:MC\", 8]],\r\n\t\t\t\tminlevel : 18,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When I cast a spell I gained from the Chosen of the Gods class feature, I heal myself\",\r\n\t\t\t\t\t\"I regain a number of HP equal to my Charisma modifier (minimum 1) + the spell's level\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\t// Adding all cleric domain spells to the options of the first level ability \"Chosen of the Gods\"\r\n\tvar FSfeat = ClassSubList[SorcererSubclassFavoredSoul].features[\"subclassfeature1.1\"];\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar cDomain = ClassSubList[ClassList.cleric.subclasses[1][i]];\r\n\t\tif (cDomain && cDomain.spellcastingExtra) {\r\n\t\t\tvar eSpells = newObj(cDomain.spellcastingExtra);\r\n\t\t\teSpells[100] = \"AddToKnown\";\r\n\t\t\tvar dSource = cDomain.source ? cDomain.source : cDomain.features[\"subclassfeature1\"] && cDomain.features[\"subclassfeature1\"].source ? cDomain.features[\"subclassfeature1\"].source :[[\"UA:MC\", 8]];\r\n\t\t\t\r\n\t\t\tvar suffix = 1;\r\n\t\t\tvar entryDoNm = cDomain.subname;\r\n\t\t\twhile (FSfeat.choices.indexOf(entryDoNm) !== -1) {\r\n\t\t\t\tsuffix += 1;\r\n\t\t\t\tentryDoNm = cDomain.subname + \" (\" + suffix + \")\";\r\n\t\t\t};\r\n\t\t\tFSfeat.choices.push(entryDoNm);\r\n\t\t\tFSfeat[entryDoNm.toLowerCase()] = {\r\n\t\t\t\tname : \"Chosen of the Gods: \" + cDomain.subname,\r\n\t\t\t\tsource : dSource,\r\n\t\t\t\tspellcastingExtra : eSpells,\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I add the \" + cDomain.subname.toLowerCase() + \" spells to my known spells, if they are of a level I can cast\",\r\n\t\t\t\t\t\"These count as sorcerer spells, but do not count against the number of spells I can know\",\r\n\t\t\t\t]),\r\n\t\t\t};\r\n\t\t};\r\n\t};\r\n});\r\n\r\n// A version of the ranger, the spell-less ranger\r\nClassList[\"spell-less ranger\"] = {\r\n\tregExpSearch : /^(?=.*spell.?less)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Spell-less Ranger\",\r\n\tsource : [[\"UA:MC\", 6]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tabilitySave : 1,\r\n\tabilitySaveAlt : 2,\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 10,\r\n\tsaves : [\"Str\", \"Dex\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Spell-less Ranger starting equipment:\\n \\u2022 Scale mail -or- leather armor;\\n \\u2022 Two shortswords -or- two simple melee weapons;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Ranger Archetype\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"favored enemy\" : ClassList.ranger.features[\"favored enemy\"],\r\n\t\t\"natural explorer\" : ClassList.ranger.features[\"natural explorer\"],\r\n\t\t\"combat superiority\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special Maneuvers\",\r\n\t\t\t\t\"I regain all superiority dice after a short rest\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"d8\",\r\n\t\t\tusages : levels.map( function(n) {\r\n\t\t\t\treturn n < 2 ? \"\" : n < 9 ? 4 : n < 17 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"combat maneuvers\" : {\r\n\t\t\tname : \"Combat Maneuvers\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page',\r\n\t\t\t\t\"I can use a Maneuver by expending a superiority die (only one Maneuver per attack)\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\treturn (n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6) + \" maneuvers known\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Maneuver\",\r\n\t\t\textrachoices : [\"Commander's Strike\", \"Disarming Attack\", \"Distracting Strike\", \"Evasive Footwork\", \"Feinting Attack\", \"Goading Attack\", \"Lunging Attack\", \"Maneuvering Attack\", \"Menacing Attack\", \"Parry\", \"Precision Attack\", \"Pushing Attack\", \"Rally\", \"Riposte\", \"Sweeping Attack\", \"Trip Attack\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 5 ? 2 : n < 9 ? 3 : n < 13 ? 4 : n < 17 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"commander's strike\" : {\r\n\t\t\t\tname : \"Commander's Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I forgo one attack of my Attack action to use a bonus action to direct an ally I see/hear\",\r\n\t\t\t\t\t\"The ally can use a reaction to make an attack, adding the superiority die to damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t\t},\r\n\t\t\t\"disarming attack\" : {\r\n\t\t\t\tname : \"Disarming Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Strength save or drops a held object of my choice to its feet\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"distracting strike\" : {\r\n\t\t\t\tname : \"Distracting Strike\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"The next attack of an ally before my next turn has adv. against the creature\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"evasive footwork\" : {\r\n\t\t\t\tname : \"Evasive Footwork\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Use when moving; I add the superiority die to my AC until I stop moving\")\r\n\t\t\t},\r\n\t\t\t\"feinting attack\" : {\r\n\t\t\t\tname : \"Feinting Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can feint to gain adv. on my next attack against a target within 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"goading attack\" : {\r\n\t\t\t\tname : \"Goading Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wis save or has disadv. vs. other targets until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"lunging attack\" : {\r\n\t\t\t\tname : \"Lunging Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can spend a superiority die to increase the reach of a melee weapon attack by 5 ft\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"maneuvering attack\" : {\r\n\t\t\t\tname : \"Maneuvering Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Ally can use reaction to move half speed without opportunity attack from the target\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"menacing attack\" : {\r\n\t\t\t\tname : \"Menacing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to my attack's damage\",\r\n\t\t\t\t\t\"Target makes a Wisdom save or is frightened of me until the end of my next turn\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"parry\" : {\r\n\t\t\t\tname : \"Parry\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"When damaged in melee, I can use a reaction to reduce it by superiority die + Dex mod\"),\r\n\t\t\t\taction : [[\"reaction\", \" (when damaged in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"precision attack\" : {\r\n\t\t\t\tname : \"Precision Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"I add the superiority die to my attack roll, either before or after rolling\")\r\n\t\t\t},\r\n\t\t\t\"pushing attack\" : {\r\n\t\t\t\tname : \"Pushing Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be pushed up to 15 ft away\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"rally\" : {\r\n\t\t\t\tname : \"Rally\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc(\"Ally that can see/hear me gets temporary HP equal to superiority die + Charisma mod\"),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"riposte\" : {\r\n\t\t\t\tname : \"Riposte\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When missed in melee, I can use my reaction to make one melee attack vs. the attacker\",\r\n\t\t\t\t\t\"If the attack hits, I add the superiority die to my attack's damage\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (after missed in melee)\"]]\r\n\t\t\t},\r\n\t\t\t\"sweeping attack\" : {\r\n\t\t\t\tname : \"Sweeping Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature and a second creature is within 5 ft of the first\",\r\n\t\t\t\t\t\"If the original attack roll hits this second creature, it takes the superiority die in damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"trip attack\" : {\r\n\t\t\t\tname : \"Trip Attack\",\r\n\t\t\t\tsource : [[\"P\", 74]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\t\"If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"fighting style\" : ClassList.ranger.features[\"fighting style\"],\r\n\t\t\"poultices\" : {\r\n\t\t\tname : \"Poultices\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In 1 hour, I can create a number of poultices equal to my Wisdom modifier (min 1)\",\r\n\t\t\t\t\"The number of poultices I can have with me can't exceed my Wisdom modifier (min 1)\",\r\n\t\t\t\t\"I can applying a poultice in 1 minute, healing a creature; Poultices last for 24 hours\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\treturn \"heals \" + Math.ceil(n/2) + \"d6\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"primeval awareness\" : {\r\n\t\t\tname : \"Primeval Awareness\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can focus my awareness for 1 min, once per short rest\",\r\n\t\t\t\t\"Out to 1 mile (6 in favored terrain), I sense if certain types of creatures are present\",\r\n\t\t\t\t\"These types are: aberration, celestial, dragon, elemental, fey, fiend, and undead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Archetype\",\r\n\t\t\tsource : [[\"UA:MC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose a Ranger Archetype you strive to emulate and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose either Spell-less Beast Master or Spell-less Hunter\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"land's stride\" : ClassList.ranger.features[\"land's stride\"],\r\n\t\t\"natural antivenom\" : {\r\n\t\t\tname : \"Natural Antivenom\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves vs. poison and resistance to poison damage\",\r\n\t\t\t\t\"When I use a poultice, in addition to healing, I cure one poison effect on the creature\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"poison\"] },\r\n\t\t\tdmgres : [\"Poison\"]\r\n\t\t},\r\n\t\t\"hide in plain sight\" : ClassList.ranger.features[\"land's stride\"],\r\n\t\t\"call natural allies\" : {\r\n\t\t\tname : \"Call Natural Allies\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in an area that is my Favored Terrain, I can call on beasts within 1 mile to help\",\r\n\t\t\t\t\"The DM determines the beasts: 1\\xD7CR 2, 2\\xD7CR 1, 4\\xD7CR 1/2, or 8\\xD7CR 1/4\",\r\n\t\t\t\t\"They will fight alongside me, are friendly to me and my allies, and help up to 1 hour\",\r\n\t\t\t\t\"After I use these feature, I can't use it in the same general area again for 24 hours\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"vanish\" : ClassList.ranger.features[\"vanish\"],\r\n\t\t\"relentless\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:MC\", 7]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t},\r\n\t\t\"feral senses\" : ClassList.ranger.features[\"feral senses\"],\r\n\t\t\"foe slayer\" : ClassList.ranger.features[\"foe slayer\"]\r\n\t}\r\n};\r\n// Create the Hunter subclass for the spell-less ranger\r\nvar UAMC_SLR_Hunter = newObj(ClassSubList[\"ranger-hunter\"]);\r\nUAMC_SLR_Hunter.source = [\"UA:MC\", 6];\r\ndelete UAMC_SLR_Hunter.fullname;\r\nUAMC_SLR_Hunter.regExpSearch = /^(?=.*spell.?less)(?!.*(monster|barbarian|bard|cleric|druid|fighter|monk|paladin|rogue|sorcerer|warlock|wizard))(?=.*(hunter|huntress|hunts(wo)?m(e|a)n)).*$/i;\r\nAddSubClass(\"spell-less ranger\", \"hunter-ua\", UAMC_SLR_Hunter);\r\n// Create the Beast Master subclass for the spell-less ranger\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tvar UAMC_SLR_Beast_Master = newObj(ClassSubList[\"ranger-beast master\"]);\r\n\tUAMC_SLR_Beast_Master.source = [\"UA:MC\", 6];\r\n\tdelete UAMC_SLR_Beast_Master.fullname;\r\n\tUAMC_SLR_Beast_Master.regExpSearch = /^(?=.*spell.?less)(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural|green))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i;\r\n\tUAMC_SLR_Beast_Master.features[\"subclassfeature15\"] = {\r\n\t\tname : \"Beastly Coordination\",\r\n\t\tsource : [[\"UA:MC\", 7]],\r\n\t\tminlevel : 15,\r\n\t\tdescription: desc(\"My companion can, as a reaction, halve an attack's damage from an attacker that I see\")\r\n\t};\r\n\tAddSubClass(\"spell-less ranger\", \"beast master-ua\", UAMC_SLR_Beast_Master);\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20150504_Waterborne-Adventures.js",
    "content": "var iFileName = \"ua_20150504_Waterborne-Adventures.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Waterborne Adventures article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:WA\"] = {\r\n\tname : \"Unearthed Arcana: Waterborne Adventures\",\r\n\tabbreviation : \"UA:WA\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Waterborne_v3.pdf\",\r\n\tdate : \"2015/05/04\"\r\n};\r\n\r\n// New Fighting Style\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Mariner\", { // Still valid 2021-09-21\r\n\tname : \"Mariner Fighting Style\",\r\n\tsource : [[\"UA:WA\", 3]],\r\n\tdescription: desc([\r\n\t\t\"While not wearing heavy armor or using a shield, I gain +1 AC and swim/climb speed\",\r\n\t\t\"The swimming and climbing speeds are equal to my current walking speed\",\r\n\t]),\r\n\tspeed : {\r\n\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t},\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor and not using a shield.\",\r\n\t\tstopeval : function (v) { return v.heavyArmor || v.usingShield; }\r\n\t}\r\n});\r\n\r\n// Add the Minotaur (Krynn) race and its three variants\r\nRaceList[\"minotaur-ua\"] = {\r\n\tregExpSearch : /minotaur/i,\r\n\tname : \"Minotaur\",\r\n\tsource : [[\"UA:WA\", 1]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\"],\r\n\ttoolProfs : [\"Navigator's tools\", \"Vehicles (water)\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"UA:WA\", 1]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 10, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"Advantage on all checks made to shove a creature, but not to avoid being shoved myself\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\r\n\theight : \" are well over 6 feet tall\",\r\n\tweight : \" weigh around 300 lb\",\r\n\theightMetric : \" are well over 1,8 metres tall\",\r\n\tweightMetric : \" weigh around 135 kg\",\r\n\tscorestxt : \"+1 Strength, and either +1 Intelligence, +1 Wisdom, or another +1 Strength\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\ttrait : \"Minotaur (+1 Strength, and either +1 Int, Wis, or Str) use \\\"Racial Options\\\" button\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\",\r\n\tfeatures : {\r\n\t\t\"goring rush\" : {\r\n\t\t\tname : \"Goring Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\r\n\t\t},\r\n\t\t\"hammering horns\" : {\r\n\t\t\tname : \"Hammering Horns\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"minotaur-ua\", \"cunning\", {\r\n\tregExpSearch : /(cunning|wisdom)/i,\r\n\tname : \"Minotaur [Cunning]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Minotaur [cunning] (+1 Strength, +1 Wisdom)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\nAddRacialVariant(\"minotaur-ua\", \"intellect\", {\r\n\tregExpSearch : /(intellect|intelligence)/i,\r\n\tname : \"Minotaur [Intellect]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 1, 0, 0],\r\n\ttrait : \"Minotaur [intellect] (+1 Strength, +1 Intelligence)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\nAddRacialVariant(\"minotaur-ua\", \"strength\", {\r\n\tregExpSearch : /(strength|strong|\\bmight\\b)/i,\r\n\tname : \"Minotaur [Strength]\",\r\n\tsource : [[\"UA:WA\", 2]],\r\n\tscorestxt : \"\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\ttrait : \"Minotaur [strength] (+2 Strength)\\nHorns: I am proficient with my horns, a 1d10 piercing damage melee weapon that grant me advantage on shoving a creature, but not to avoid being shoved myself.\\nGoring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\\nHammering Horns: When taking a melee Attack action, I can attempt to shove with my horns as a bonus action. I cannot use this to knock a creature prone.\\nLabyrinthine Recall: I can perfectly recall any path I have travelled.\"\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20150803_Modern-Magic.js",
    "content": "var iFileName = \"ua_20150803_Modern-Magic.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Modern Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MM\"] = {\r\n\tname : \"Unearthed Arcana: Modern Magic\",\r\n\tabbreviation : \"UA:MM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Modern\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_ModernMagic.pdf\",\r\n\tdate : \"2015/08/03\"\r\n};\r\n\r\n// A subclass for the Cleric, called \"City Domain\"\r\nAddSubClass(\"cleric\", \"city domain-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(urban|city)).*$/i,\r\n\tsubname : \"City Domain\",\r\n\tsource : [[\"UA:MM\", 1]],\r\n\tspellcastingExtra : [\"comprehend languages\", \"remote access-ua\", \"find vehicle-ua\", \"heat metal\", \"lightning bolt\", \"protection from ballistics-ua\", \"locate creature\", \"synchronicity-ua\", \"commune with city-ua\", \"shutdown-ua\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrip\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn the On/Off cantrip if I didn't already know it\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (On/Off)\",\r\n\t\t\t\tspells : [\"on/off-ua\"],\r\n\t\t\t\tselection : [\"on/off-ua\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with sidearms and land vehicles\"),\r\n\t\t\tweaponProfs : [false, false, [\"Sidearms\"]],\r\n\t\t\ttoolProfs : [\"Vehicles (land)\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Heart of the City\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While I'm in a city, I can gain adv. on a Cha (Deception, Intimidation, Persuasion) check\",\r\n\t\t\t\t\"I'm considered proficient with the appropriate skill for that one check\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Spirits of the City\",\r\n\t\t\tsource : [[\"UA:MM\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I make all city utilities in 30 ft either stop or work perfectly for 1 min\",\r\n\t\t\t\t\"Additionally, all hostiles within 30 ft must make a Cha save at the time of use\",\r\n\t\t\t\t\"If failed, it is either knocked prone or restrained (my choice) by city hazards\",\r\n\t\t\t\t\"A restrained target can escape with an Athletics or Acrobatics check vs. my spell DC\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Block Watch\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"While in an urban environment, I'm proficient and expertise in Insight and Perception\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Express Transit\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can teleport from one mass transit site to another in the same city\",\r\n\t\t\t\t\"This works just like a Teleport spell; Mass transits sites include bus/train/subway stops\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Warlock, called \"Ghost in the Machine\"\r\nAddSubClass(\"warlock\", \"ghost in the machine-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*warlock)(?=.*ghost)(?=.*(machine|computer)).*$/i,\r\n\tsubname : \"the Ghost in the Machine\",\r\n\tsource : [[\"UA:MM\", 2]],\r\n\tspellcastingExtra : [\"infallible relay-ua\", \"remote access-ua\", \"arcane hacking-ua\", \"digital phantom-ua\", \"haywire-ua\", \"invisibility to cameras-ua\", \"conjure knowbot-ua\", \"system backdoor-ua\", \"shutdown-ua\", \"synchronicity-ua\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I am proficient with hacking tools and know the On/Off cantrip\"),\r\n\t\t\ttoolProfs : [\"Hacking tools\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrip (On/Off)\",\r\n\t\t\t\tspells : [\"on/off-ua\"],\r\n\t\t\t\tselection : [\"on/off-ua\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Information Surge\",\r\n\t\t\tsource : [[\"UA:MM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause a computerized device within 30 ft to make an Int save\",\r\n\t\t\t\t\"If the device is held/used by a creature, that creature makes the saving throw\",\r\n\t\t\t\t\"If the device is not held/used, it makes a save with a +0 modifier and disadvantage\",\r\n\t\t\t\t\"On a failed save, the device stops functioning until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wire Walk\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can teleport through a hardwired network to a point I can see\",\r\n\t\t\t\t\"Both where I start and end must be a device, cable, or socket connected to the network\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Personal Encryption\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on saves vs. scrying, thought detection, and magics for learning my location\",\r\n\t\t\t\t\"If the effect doesn't let me a save, the user has disadv. on checks to use it on me, if any\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Technovirus\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I make a melee spell attack to infect someone with a techno-organic virus\",\r\n\t\t\t\t\"The target takes 8d10 psychic damage, or half that with a successful Con save\",\r\n\t\t\t\t\"If it failed its save, I can use an action to cast Command on it while it remains infected\",\r\n\t\t\t\t\"It makes its save vs. this Command with disadvantage and I can cast it at any range\",\r\n\t\t\t\t\"It is infected until my next long rest; The virus can be removed with Lesser Restoration\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Wizard, called \"Technomancy\" (contributed by AKA_Sketch)\r\nAddSubClass(\"wizard\", \"technomancy-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /technomancy|technomancer/i,\r\n\tsubname : \"Technomancy\",\r\n\tsource : [[\"UA:MM\", 3]],\r\n\tfullname : \"Technomancer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\": {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I gain proficiency with sidearms and hacking tools\"),\r\n\t\t\tweaponProfs : [false, false, [\"Sidearms\"]],\r\n\t\t\ttoolProfs : [\"Hacking tools\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\": {\r\n\t\t\tname : \"Technological Savant\",\r\n\t\t\tsource : [[\"UA:MM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use a single tablet computer (or similar) instead of a spellbook\",\r\n\t\t\t\t\"Spells copied into this device cost half the normal amount of gp\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\": {\r\n\t\t\tname : \"Program Spell\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast a spell into a device of at least smartphone-level of computing power\",\r\n\t\t\t\t\"Variables of the spell are chosen at time of casting; I can have only one active at a time\",\r\n\t\t\t\t\"As an action within the next 48 hours, the spell can be cast from the device\",\r\n\t\t\t\t\"I can't activate a concentration spell in this way if I am concentrating on another spell\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature10\": {\r\n\t\t\tname : \"Online Casting\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast a spell, that is not area-of-effect, through networked electronic devices\",\r\n\t\t\t\t\"If the spell requires sight/hearing, the audio/visual must be transmitted electronically\",\r\n\t\t\t\t\"The spell's range is determined from me to my device plus from the target to its device\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\": {\r\n\t\t\tname : \"Chained Device\",\r\n\t\t\tsource : [[\"UA:MM\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use a held/worn tablet computer to concentrate on a spell I cast instead of me\",\r\n\t\t\t\t\"If the device is separated from me, turned off, or broken, the effect is lost\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a new Warlock invocation\r\nAddWarlockInvocation(\"Arcane Gunslinger (prereq: Pact of the Blade)\", { // Still valid 2021-09-21\r\n\tname : \"Arcane Gunslinger\",\r\n\tdescription : desc([\r\n\t\t\"My pact weapon can take firearm forms, and I can transform magical firearms into one\"\r\n\t]),\r\n\tsource : [[\"UA:MM\", 3]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isRangedWeapon && /firearm/i.test(v.theWea.type + \" \" + v.theWea.list) && /\\bpact\\b/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.pactWeapon = true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If I include the word 'Pact' in a firearm weapon's name, it gets treated as my Pact Weapon.\",\r\n\t\t\t90\r\n\t\t]\r\n\t}\r\n});\r\n\r\n/*\tAdds 14 spells that are, according to the article, 'suitable' for the Sorcerer, Warlock, or Wizard spell list. 1 of those is also considered suitable for the Paladin spell list.\r\n\t\r\n\tStrangely enough, adding all these spells to the Warlock spell list makes the Ghost in the Machine's Expanded Spell List class feature completely useless\r\n*/\r\nSpellsList[\"arcane hacking-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Arcane Hacking\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tlevel : 2,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Hacking tools\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Adv on Int (hacking tools) vs. encryption; Use Int (hacking tools) to remove protective spells; See book\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You gain advantage on all Intelligence checks using hacking tools to break software encryption or online security when using a foreign system. This spell also allows you to break 2nd-level and lower protective spells such as arcane lock or glyph of warding by making an Intelligence check using hacking tools against the spell save DC of the spell's caster.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can attempt to counteract a spell set to secure the foreign system if the spell's level is equal to or less than the level of the spell slot you used.\"\r\n};\r\nSpellsList[\"commune with city-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Commune with City\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tritual : true,\r\n\tlevel : 5,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn up to three facts about surrounding city, out to 1 mile above- or 600 ft underground; see B\",\r\n\tdescriptionFull : \"You briefly become one with the city and gain knowledge of the surrounding area. Aboveground, this spell gives you knowledge of the area within 1 mile of you. In sewers and other underground settings, you gain knowledge of the area within 600 feet of you.\" + \"\\n   \" + \"You instantly gain knowledge of up to three facts of your choice about any of the following subjects as they relate to the area:\" + \"\\n  \\u2022 \" + \"Terrain and bodies of water\" + \"\\n  \\u2022 \" + \"Prevalent buildings, plants, animals, or intelligent creatures\" + \"\\n  \\u2022 \" + \"Powerful (CR 1 or higher) celestials, fey, fiends, elementals, or undead\" + \"\\n  \\u2022 \" + \"Influences from other planes of existence\" + \"\\n  \\u2022 \" + \"Electrical currents, wireless signals, and active transit lines and tracks\" + \"\\n\\n   \" + \"For example, you could determine the location of powerful undead in the area, the location of major sources of electrical power or interference, and the location of any nearby parks.\"\r\n};\r\nSpellsList[\"conjure knowbot-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Knowbot\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 5]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"500 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Create bot in touched device; computer checks 1 bns instead of 1 a for me; SL5: 1 h, 1000 ft, see book\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You touch a single computerized device or computer system to conjure a knowbot\\u2014a partially sentient piece of software imprinted with vestiges of your own skills and computer abilities. For the duration of the spell, you can use a bonus action to have the knowbot execute a computer-related task that would normally require an action. The knowbot makes Intelligence ability checks using your ability score and proficiency bonuses (including your proficiency with hacking tools, if applicable).\" + \"\\n   \" + \"You have a limited telepathic bond with the knowbot, out to a range of 500 feet from the device or system where the knowbot was conjured. If you move beyond this range, the knowbot disappears in 2d4 rounds, as if the duration of the spell had expired. Moving within range again immediately reestablishes the bond. The knowbot is bound to the system in which it was created, and it stays there until it is dismissed or the spell's duration expires.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the spell's duration increases to 1 hour. Additionally, your telepathic bond with the knowbot is effective out to a range of 1,000 feet, and if you leave the range of the bond, the knowbot continues performing its last directed task until the spell expires.\"\r\n};\r\nSpellsList[\"digital phantom-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Digital Phantom\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A small piece of copper wire\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Me and any others in same computer system +10 on Int to avoid detection; leave no trace on exit\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell works to actively hide your presence within a computer system. For the spell's duration, you and any other users you choose on your local network gain a +10 bonus to Intelligence checks to avoid detection by administrators, knowbots, tracking software, and the like. Whenever you and your chosen users leave any computer system you are working in while this spell is in effect, all trace of your previous presence in that system is erased.\"\r\n};\r\nSpellsList[\"find vehicle-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Find Vehicle\",\r\n\tclasses : [\"paladin\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 6]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"10 min\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Gain services of land spirit-vehicle; expertise, share spells with it; SL3: water, SL5: air, SL7: any; see B\",\r\n\tdescriptionFull : \"You summon a spirit that assumes the form of a nonmilitary land vehicle of your choice, appearing in an unoccupied space within range. The vehicle has the statistics of a normal vehicle of its sort, though it is celestial, fey, or fiendish (your choice) in origin. The physical characteristics of the vehicle reflect its origin to some degree. For example, a fiendish SUV might be jet black in color, with tinted windows and a sinister-looking front grille.\" + \"\\n   \" + \"You have a supernatural bond with the conjured vehicle that allows you to drive beyond your normal ability. While driving the conjured vehicle, you are considered proficient with vehicles of its type, and you add double your proficiency bonus to ability checks related to driving the vehicle. While driving the vehicle, you can make any spell you cast that targets only you also target the vehicle.\" + \"\\n   \" + \"If the vehicle drops to 0 hit points, it disappears, leaving behind no physical form. You can also dismiss the vehicle at any time as an action, causing it to disappear.\" + \"\\n   \" + \"You can't have more than one vehicle bonded by this spell at a time. As an action, you can release the vehicle from its bond at any time, causing it to disappear.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can conjure a nonmilitary water vehicle large enough to carry six Medium creatures. When you cast this spell using a spell slot of 5th level or higher, you can conjure a nonmilitary air vehicle large enough to carry ten Medium creatures. When you cast this spell using a spell slot of 7th level or higher, you can conjure any type of vehicle, subject to the DM's approval.\"\r\n};\r\nSpellsList[\"haywire-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Haywire\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"10 ft(+5 ft/SL) rad all electronic devices go haywire, see B; for hold devices, crea gets to save\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell plays havoc with electronic devices, making the use of such devices all but impossible. Each electronic device in a 10-foot-radius sphere centered on a point you choose within range is subject to random behavior while it remains within the area. A device not held by a creature is automatically affected. If an electronic device is held by a creature, that creature must succeed on a Wisdom saving throw or have the device affected by the spell.\" + \"\\n   \" + \"At the start of each of your turns, roll a d6 for each affected device to determine its behavior. Except where otherwise indicated, that behavior lasts until the start of your next turn while this spell is in effect.\" + \"\\n\\n\" + toUni(\"d10\") + \"\\t\" + toUni(\"Behavior\") + \"\\n  \" + \"1\\tThe device shuts down and must be restarted. Do not roll again for this device until it is restarted.\\n2–4\\tThe device does not function.\" + \"\\n  \" + \"5\\tThe device experiences a power surge, causing an electric shock to the wielder (if any) and one random creature within 5 feet of the device. Each affected creature must make a Dexterity saving throw against your spell save DC, taking 6d6 lightning damage on a failed save, or half as much damage on a successful one.\" + \"\\n  \" + \"6\\tThe device is usable as normal.\\n\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the radius of the sphere affected by the spell increases by 5 feet for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"infallible relay-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Infallible Relay\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A mobile phone\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 known crea save or has to answer my call from phone within 100 ft of it; it has to save to end call\",\r\n\tdescriptionFull : \"[Technomagic]\\n   With this spell, you can target any creature with whom you have spoken previously, as long as the two of you are on the same plane of existence. When you cast the spell, the nearest functioning telephone or similar communications device within 100 feet of the target begins to ring. If there is no suitable device close enough to the target, the spell fails.\" + \"\\n   \" + \"The target must make a successful Charisma saving throw or be compelled to answer your call. Once the connection is established, the call is crystal clear and cannot be dropped until the conversation has ended or the spell's duration ends. You can end the conversation at any time, but a target must succeed on a Charisma saving throw to end the conversation.\"\r\n};\r\nSpellsList[\"invisibility to cameras-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Invisibility to Cameras\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 3,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A scrap of black paper\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Up to 4 crea and anything they are wearing or carrying become undetectable for electornic sensors\",\r\n\tdescriptionFull : \"[Technomagic]\\n   Four creatures of your choice within range become undetectable to electronic sensors and cameras for the duration of the spell. Anything a target is wearing or carrying is likewise undetectable as long as it is on the target's person. The targets remain visible to vision.\"\r\n};\r\nSpellsList[\"on/off-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"On/Off\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 7]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Activate or deactivate 1 electornic device that has a way of doing so accessible from the outside of it\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This cantrip allows you to activate or deactivate any electronic device within range, as long as the device has a clearly defined on or off function that can be easily accessed from the outside of the device. Any device that requires a software- based shutdown sequence to activate or deactivate cannot be affected by on/off.\"\r\n};\r\nSpellsList[\"protection from ballistics-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Protection from Ballistics\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 3,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A shell casing\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"1 crea gains resistance to nonmagical ballistic damage\",\r\n\tdescriptionFull : \"This spell enchants the flesh of the target against the impact of bullets. Until the spell ends, the target has resistance to nonmagical ballistic damage.\"\r\n};\r\nSpellsList[\"remote access-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Remote Access\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"I can use any electronic device within range as if it were in my hands\",\r\n\tdescriptionFull : \"[Technomagic]\\n   You can use any electronic device within range as if it were in your hands. This is not a telekinesis effect. Rather, this spell allows you to simulate a device's mechanical functions electronically. You are able to access only functions that a person using the device manually would be able to access. You can use remote access with only one device at a time.\"\r\n};\r\nSpellsList[\"shutdown-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Shutdown\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 5,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Shut down all electronic devices within range; if controlled/held by crea, it can save to keep active\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell shuts down all electronic devices within range that are not wielded by or under the direct control of a creature. If an electronic device within range is used by a creature, that creature must succeed on a Constitution saving throw to prevent the device from being shut down. While the spell remains active, no electronic device within range can be started or restarted.\"\r\n};\r\nSpellsList[\"synchronicity-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Synchronicity\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 crea not slowed by mundane delays, disadv on opportunity attacks to it, adv to Stealth and driving\",\r\n\tdescriptionFull : \"The creature you touch feels reality subtly shifted to its favor while this spell is in effect.\" + \"\\n   \" + \"The target isn't inconvenienced by mundane delays of any sort. Traffic lights are always green, there's always a waiting elevator, and a taxi is always around the corner. The target can run at full speed through dense crowds, and attacks of opportunity provoked by the target's movement are made with disadvantage.\" + \"\\n   \" + \"Synchronicity grants advantage to Dexterity (Stealth) checks, since the target always finds a handy piece of cover available. Additionally, the target has advantage on all ability checks made to drive a vehicle.\" + \"\\n   \" + \"In the event that two or more creatures under the effect of synchronicity are attempting to avoid being inconvenienced by each other, the creatures engage in a contest of Charisma each time the effects of the spells would oppose each other.\"\r\n};\r\nSpellsList[\"system backdoor-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"System Backdoor\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:MM\", 8]],\r\n\tlevel : 4,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Hacking tools\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Gain admin access to 1 system; defeats 3rd or lower technomancy spells; SL5+: defeats same or lower\",\r\n\tdescriptionFull : \"[Technomagic]\\n   This spell allows you to bypass system security in order to create a secure login on a foreign system. The login you create allows you administrator-level privileges in any computer system not enhanced through technomagic. The login defeats any technomagic spells of 3rd level or lower.\" + \"\\n   \" + \"Once the duration of the spell expires, the login and all privileges are wiped from the system.\" + \"\\n   \" + \"System logs still show the activity of the user, but the user identification cannot be found or traced.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, you are able to bypass technomagic spells if the spell's level is equal to or less than the level of the spell slot you used.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20150909_Ranger.js",
    "content": "﻿// This code was contributed by Lewis Henderson\r\n//\r\n// Please note that the original .pdf has the hit dice as 2d6 per level.\r\n// There isn't any way to implement this, so the hit dice is recorded as a d12.\r\n// Also note that there is no automation for the companion page included in this.\r\n//\r\n// You will have to choose the ranger's animal spirit from the companion race drop-down list and add the Wisdom modifier bonus to attacks and saves manually.\r\nvar iFileName = \"ua_20150909_Ranger.js\";\r\nRequiredSheetVersion(\"13.0.8\", 15);\r\n// This file adds the content from the Unearthed Arcana: Ranger article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:R\"] = {\r\n\tname : \"Unearthed Arcana: Ranger\",\r\n\tabbreviation : \"UA:R\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/DX_0907_UA_RangerOptions.pdf\",\r\n\tdate : \"2015/09/09\"\r\n};\r\n\r\n// Define a new class, called \"Playtest Ranger\" and its 3 subclasses\r\nClassList[\"ua-playtest-ranger\"] = {\r\n\tregExpSearch : /^(?=.*playtest)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Playtest Ranger\",\r\n\tsource : [[\"UA:R\", 0]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\tdie : 12,\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tsaves : [\"Dex\", \"Wis\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [\"Herbalism kit\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, true],\r\n\t\tsecondary : [true, false, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Playtest Ranger starting equipment:\\n \\u2022 leather armor;\\n \\u2022 Two shortswords -or- two martial melee weapons -or- a martial weapon and a shield;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows -or- a martial weapon.\",\r\n\tsubclasses : [\"Ranger Path\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"ambuscade\" : {\r\n\t\t\tname : \"Ambuscade\",\r\n\t\t\tsource : [[\"UA:R\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I roll initiative, I gain a special turn before others can act\",\r\n\t\t\t\t\"During this bonus turn, I can only use the Attack or Hide action\",\r\n\t\t\t\t\"I can't be surprised, but if I would be surprised I don't get the bonus turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"natural explorer\" : ClassList.ranger.features[\"natural explorer\"],\r\n\t\t\"fighting style\" : ClassList.ranger.features[\"fighting style\"],\r\n\t\t\"skirmisher's stealth\" : {\r\n\t\t\tname : \"Skirmisher's Stealth\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn, I can choose a creature I'm hidden from\",\r\n\t\t\t\t\"During that turn, I remain hidden from it, regardless of my actions\",\r\n\t\t\t\t\"As a bonus action at the end of my turn, I can use the Hide action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Path\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a Ranger Path you wish to follow and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose Guardian, Seeker, or Stalker\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"primeval awareness\" : ClassList.ranger.features[\"primeval awareness\"]\r\n\t}\r\n};\r\nAddSubClass(\"ua-playtest-ranger\", \"guardian-ua\", {\r\n\tregExpSearch : /^(?=.*guardian)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Guardian\",\r\n\tsource : [[\"UA:R\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Brown Bear Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my brown bear spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a brown bear and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Guardian's Shroud\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription :\"\\n   \" + \"When I call my spirit animal, I grant me or an ally I can see 2d6 + Wis mod temp HP\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ua-playtest-ranger\", \"seeker-ua\", {\r\n\tregExpSearch : /^(?=.*seeker)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Seeker\",\r\n\tsource : [[\"UA:R\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Giant Eagle Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my giant eagle spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a giant eagle and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Seeker's Eye\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I call my spirit animal, I can choose a creature that I can see\",\r\n\t\t\t\t\"Until the end of my next turn, all attacks against the target have advantage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"ua-playtest-ranger\", \"stalker-ua\", {\r\n\tregExpSearch : /^(?=.*stalker)((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Stalker\",\r\n\tsource : [[\"UA:R\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Dire Wolf Spirit Companion\",\r\n\t\t\tsource : [[\"UA:R\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have my dire wolf spirit animal materialize or dismiss it\",\r\n\t\t\t\t\"It has all the stats of a dire wolf and adds my Wis mod to its attacks and saves\",\r\n\t\t\t\t\"Its HP is half my ranger level or the total in its stat block, whichever is higher\",\r\n\t\t\t\t\"It takes it turn right after my initiative and is under my complete control\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Stalker's Fangs\",\r\n\t\t\tsource : [[\"UA:R\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I call my spirit animal, I can choose a creature that I can see\",\r\n\t\t\t\t\"The target's next weapon attack hit deals 2d6 + Wis mod extra slashing damage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20151005_Prestige Classes and Rune Magic.js",
    "content": "var iFileName = \"ua_20151005_Prestige Classes and Rune Magic.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Prestige Classes and Rune Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:PCRM\"] = {\r\n\tname : \"Unearthed Arcana: Prestige Classes and Rune Magic\",\r\n\tabbreviation : \"UA:PCRM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/UA_Rune_Magic_Prestige_Class.pdf\",\r\n\tdate : \"2015/10/05\"\r\n};\r\n\r\n// Adds a prestige class, called \"Rune Scribe\" (includes contributions by K.12)\r\nClassList[\"rune scribe\"] = { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*rune)(?=.*scribe).*$/i,\r\n\tname : \"Rune Scribe\",\r\n\tsource : [[\"UA:PCRM\", 2]],\r\n\tprimaryAbility : \"Dexterity and Intelligence\",\r\n\tprereqs : \"\\n   - Dexterity 13 and Intelligence 13;\\n   - Proficiency in the Arcana skill\\n   - Complete a special task: You must find a rune and present it to an NPC rune scribe who accepts it in return for tutoring you in the ways of rune magic\",\r\n\tdie : 8,\r\n\timprovements : levels.map(function (n) {return 0}),\r\n\ttoolProfs : {\r\n\t\tsecondary : [\"Calligrapher's Supplies\", \"Mason's Tools\", \"Woodcarver's Tools\"]\r\n\t},\r\n\tsubclasses : [\"\", []],\r\n\tsubclassGainedLevel : 100,\r\n\tprestigeClassPrereq : 5,\r\n\tattacks : levels.map(function (n) {return 1}),\r\n\tspellcastingFactor : 1,\r\n\tfeatures : {\r\n\t\t\"rune lore\" : {\r\n\t\t\tname : \"Rune Lore\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the basics of scribing runes, and can activate all properties of a master rune\",\r\n\t\t\t\t\"The first rune I master is the one I found to qualify to become a rune scribe\",\r\n\t\t\t\t\"To use any features of a master rune, I need to first attune to it just like a magic item\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add master runes to the third page'\r\n\t\t\t]),\r\n\t\t\textraname : \"Master Rune\",\r\n\t\t\textrachoices : [\"Opal of the Ild Rune\", \"Orb of the Stein Rune\", \"Pennant of the Vind Rune\", \"Shard of the Kalt Rune\"],\t\r\n\t\t\t\"opal of the ild rune\" : {\r\n\t\t\t\tname : \"Opal of the Ild Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 4]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Ignite (simple): As an action, ignite touched flammable object; Fire extends 1 ft from it\",\r\n\t\t\t\t\t\"- Fire Tamer (simple): As an action, extinguish touched open flame up to 10-ft radius\",\r\n\t\t\t\t\t\"   I can expend a spell slot to extend that radius by 20 ft/SL\",\r\n\t\t\t\t\t\"- Fire's Friend (simple): While attuned, I have resistance to cold damage\",\r\n\t\t\t\t\t\"- Combustion (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   The target automatically takes 1d10 + 1d10/SL fire damage\",\r\n\t\t\t\t\t\"- Flame Brand (complex): During a short rest, I can augment a weapon, or 20 ammo\",\r\n\t\t\t\t\t\"   The weapon or ammo deals fire damage; It lasts for 24 hours or until I use this again\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"- Flame Stoker (complex): While attuned, I roll any fire damage twice and use the higher\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\taction : ['action', 'Ild Rune (Ignite, Fire Tamer, Combusion)']\r\n\t\t\t},\r\n\t\t\t\"orb of the stein rune\" : {\r\n\t\t\t\tname : \"Orb of the Stein Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 5]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Indomitable Stand (simple): As an action, I gain abilities until I move\",\r\n\t\t\t\t\t\"   I have advantage on all ability checks and saving throws to resist being moved\",\r\n\t\t\t\t\t\"   Anyone moving within 10 ft makes a DC 12 Str save or has speed 0 until its next turn\",\r\n\t\t\t\t\t\"- Stone Soul (simple): While attuned, I cannot be petrified\",\r\n\t\t\t\t\t\"- Stone's Secrets (simple): As an action, I learn everybody's current location within 30 ft\",\r\n\t\t\t\t\t\"   They have to touch the same surface as I'm touching with my hand\",\r\n\t\t\t\t\t\"- Crushing Brand (complex): During a short rest, I can augment a bludgeoning weapon\",\r\n\t\t\t\t\t\"   The weapon's bludgeoning damage ignores resistances and immunities\",\r\n\t\t\t\t\t\"   If the weapon deals its maximum damage, the target is also knocked prone\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"   These effects last for 24 hours or until I use Crushing Brand again\",\r\n\t\t\t\t\t\"- Earthen Step (complex): I can cast Meld Into Stone as a bonus action once per short rest\",\r\n\t\t\t\t\t\"- Overwhelming Bolt (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   It takes 2d8+1d8/SL bludg. dmg and is prone; DC 12+SL Str save for half \\u0026 not prone\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [['action', 'Stein Rune (Indomitable Stand, Secrets, Bolt)']],\r\n\t\t\t\tsavetxt : { immune : [\"petrified\"] },\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Orb of the Stein Rune\",\r\n\t\t\t\t\tspells : [\"meld into stone\"],\r\n\t\t\t\t\tselection : [\"meld into stone\"], \r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tchanges : \"Using my Orb of the Stein Rune, I can cast Meld Into Stone as a bonus action once per short rest.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Earthen Step (Orb of the Stein Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"pennant of the vind rune\" : {\r\n\t\t\t\tname : \"Pennant of the Vind Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 5]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Comforting Wind (simple): While attuned, I can't suffocate or drown\",\r\n\t\t\t\t\t\"   Also, I gain advantage on saves against inhaled poisons, toxins, and similar effects\",\r\n\t\t\t\t\t\"- Wind Step (simple): As an action, I fly 20 ft, after which I fall if I'm still airborne\",\r\n\t\t\t\t\t\"- Wind's Grasp (simple): As a reaction when falling, I can take no damage from the fall\",\r\n\t\t\t\t\t\"- Howling Brand (complex): During a short rest, I can augment a ranged weapon\",\r\n\t\t\t\t\t\"   Its range is doubled and attacks with it do not suffer disadvantage due to range\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"   These effects last for 24 hours or until I use Howling Brand again\",\r\n\t\t\t\t\t\"- Shrieking Bolt (complex): As an action, I expend spell slot to target a creature I can see\",\r\n\t\t\t\t\t\"   It 2d8+1d8/SL bludg. dmg \\u0026 pushed 10 ft; DC 12+SL Str save for half \\u0026 not pushed\",\r\n\t\t\t\t\t\"- Wind Walker (complex): I can cast Levitate as a bonus action once per short rest\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [['action', 'Vind Rune (Wind Step, Shrieking Bolt)'], ['reaction', \"Vind Rune (Wind's Grasp)\"]],\r\n\t\t\t\tsavetxt : { adv_vs : [\"inhaled poison\"] },\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Pennant of the Vind Rune\",\r\n\t\t\t\t\tspells : [\"levitate\"],\r\n\t\t\t\t\tselection : [\"levitate\"], \r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"levitate\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tchanges : \"Using my Pennant of the Vind Rune, I can cast Levitate as a bonus action once per short rest.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Wind Walker (Pennant of the Vind Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"shard of the kalt rune\" : {\r\n\t\t\t\tname : \"Shard of the Kalt Rune\",\r\n\t\t\t\tsource : [[\"UA:PCRM\", 6]],\r\n\t\t\t\tdescription : \" [rare, requires attunement]\" + desc([\r\n\t\t\t\t\t\"- Frigid Touch (simple): As an action, I freeze water that I touch a 10-ft radius\",\r\n\t\t\t\t\t\"- Frost Friend (simple): While attuned, I have resistance to fire damage\",\r\n\t\t\t\t\t\"- Icy Mantle (simple): As an action, me or a creature I touch gains a protective mantle\",\r\n\t\t\t\t\t\"   The next time taking bludg., slash., pierc. damage, it absorbs the damage and falls apart\",\r\n\t\t\t\t\t\"- Freezing Bolt (complex): As an action, I expend spell slot and touch a creature\",\r\n\t\t\t\t\t\"   It takes 2d8+1d8/SL cold damage and its speed is 0 until the end of my next turn\",\r\n\t\t\t\t\t\"   If it succeeds on a DC 12+SL Con save, it takes only half damage and has normal speed\",\r\n\t\t\t\t\t\"- Ice Brand (complex): During a short rest, I can augment a weapon, or 20 ammo pieces\",\r\n\t\t\t\t\t\"   The weapon or ammo deals cold damage; It lasts for 24 hours or until I use this again\",\r\n\t\t\t\t\t\"   I can expend a spell slot to also give the weapon a magic bonus of slot level dived by 3\",\r\n\t\t\t\t\t\"- Winter's Howl (complex): I can cast Sleet Storm as an action once per short rest\"\r\n\t\t\t\t]),\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\taction : ['action', 'Kalt Rune (Touch, Mantle, Bolt, Howl)'],\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Shard of the Kalt Rune\",\r\n\t\t\t\t\tspells : [\"sleet storm\"],\r\n\t\t\t\t\tselection : [\"sleet storm\"],\r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Winter's Howl (Shard of the Kalt Rune)\",\r\n\t\t\t\t\tusages : 1,\r\n\t\t\t\t\trecovery : \"short rest\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"runic magic\" : {\r\n\t\t\tname : \"Runic Magic\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I obtain spell slots as if gaining a level in a full spellcasting class, but don't learn spells\")\r\n\t\t},\r\n\t\t\"runic discovery\" : {\r\n\t\t\tname : \"Runic Discovery\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I know a number of master runes which I can attune to, even if not in my possession\",\r\n\t\t\t\t\"Attuning or de-attuning in this manner can be done over the course of a short rest\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 2) return \"\";\r\n\t\t\t\treturn (n < 3 ? 1 : n < 5 ? 2 : 3) + \" known master runes\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"living rune\" : {\r\n\t\t\tname : \"Living Rune\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I get 2 points that I can add to one or two of my ability scores as I see fit\",\r\n\t\t\t\t\"When I finish a long rest, I can re-allocate these point(s) from a single score to another\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"rune mastery\" : {\r\n\t\t\tname : \"Rune Mastery\",\r\n\t\t\tsource : [[\"UA:PCRM\", 3]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription: desc(\"One rune I'm attuned to doesn't count toward the limit of magic items I can attune to\")\r\n\t\t}\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20151102_Light,-Dark,-Underdark!.js",
    "content": "var iFileName = \"ua_20151102_Light,-Dark,-Underdark!.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Light, Dark, Underdark! article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:LDU\"] = {\r\n\tname : \"Unearthed Arcana: Light, Dark, Underdark!\",\r\n\tabbreviation : \"UA:LDU\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/02_UA_Underdark_Characters.pdf\",\r\n\tdate : \"2015/11/02\"\r\n};\r\n\r\n// New Fighting Styles\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Close Quarters Shooter\", { // Still valid 2021-09-21\r\n\tname : \"Close Quarters Shooting Fighting Style\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tdescription: desc([\r\n\t\t\"+1 bonus to attack rolls I make with ranged attacks\",\r\n\t\t\"I don't have disadvantage when making a ranged attack while within 5 ft of a hostile\",\r\n\t\t\"My ranged attacks ignore half and three-quarters cover against targets within 30 ft\",\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isRangedWeapon) output.extraHit += 1;\r\n\t\t\t},\r\n\t\t\t\"My ranged weapons get a +1 bonus on the To Hit.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Tunnel Fighter\", { // Still valid 2021-09-21\r\n\tname : \"Tunnel Fighting Style\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tdescription: desc([\r\n\t\t\"As a bonus action, I enter a defensive stance that lasts until the start of my next turn\",\r\n\t\t\"While I'm in this defensive stance I gain the following two benefits:\",\r\n\t\t\"\\u2022 I can make opportunity attacks without using my reaction\",\r\n\t\t\"\\u2022 I can make a melee attack as a reaction if a hostile moves >5 ft while in my reach\",\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\n\r\n// A subclass for the Ranger, called \"Deep Stalker\"\r\nAddSubClass(\"ranger\", \"deep stalker-ua\", {\r\n\tregExpSearch : /^(?=.*deep)(?=.*stalker).*$/i,\r\n\tsubname : \"Deep Stalker\",\r\n\tsource : [[\"UA:LDU\", 1]],\r\n\tfullname : \"Deep Stalker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Underdark Scout\",\r\n\t\t\tsource : [[\"UA:LDU\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"In the first turn of combat I have +10 ft speed and +1 attack with the Attack action\",\r\n\t\t\t\t\"All turns after that, I can take the Hide action as a bonus action at the end of my turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (Hide at end of turn)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Deep Stalker Magic\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 90 ft darkvision and add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"glyph of warding\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tvision : [[\"Darkvision\", 90]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I am proficient with Wisdom saving throws\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Once during my turn when I miss an attack, I can immediately make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Stalker's Dodge\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Sorcerer, called \"Shadow\"\r\nAddSubClass(\"sorcerer\", \"shadow sorcerer-ua\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*shadow).*$/i,\r\n\tsubname : \"Shadow\",\r\n\tsource : [[\"UA:LDU\", 2]],\r\n\tfullname : \"Shadow Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 60 ft darkvision and can cast Darkness by spending 1 sorcery point\",\r\n\t\t\t\t\"I can see through any darkness spell I cast using this ability\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 sorcery point\",\r\n\t\t\tvision : [[\"Darkvision\", 60]],\r\n\t\t\taction : [[\"action\", \" (1 sorcery point)\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Eyes of the Dark\",\r\n\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\tfirstCol : 1\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"darkness\" : {\r\n\t\t\t\t\tdescription : \"15-ft rad darkness on point/obj; I see normally; darkvision doesn't work; only magical light of SL 3+\",\r\n\t\t\t\t\tchanges : \"Using my Eyes of the Dark class feature I can cast Darkness by spending 1 sorcery point and I can see through that Darkness without issue.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Strength of the Grave\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When damage reduces me to 0 HP, that isn't radiant damage or a critical hit,\",\r\n\t\t\t\t\"I can make a Constitution save (DC 5 + damage taken) to drop to 1 HP instead\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hound of Ill Omen\",\r\n\t\t\tsource : [[\"UA:LDU\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional : \"3 sorcery points\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I target a creature I can see and summon a hound within 30 ft of it\",\r\n\t\t\t\t\"The hound has all the stats of a medium sized dire wolf with the following exceptions:\",\r\n\t\t\t\t\"\\u2022 At the start of its turn, it automatically knows where the target is\",\r\n\t\t\t\t\"\\u2022 It can only move towards and make (opportunity) attack against the target\",\r\n\t\t\t\t\"\\u2022 It can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"\\u2022 It takes 5 force damage if it ends its turn inside an object\",\r\n\t\t\t\t\"The target has disadvantage on saves vs. my spells while the hound is within 5 ft of it\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Walk\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action when I'm in dim light or darkness, I can teleport up to 120 ft\",\r\n\t\t\t\t\"The destination has to be unoccupied, within line of sight, and in dim light or darkness\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Shadow Form\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional : \"3 sorcery points\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I transform into a shadow form for 1 minute\",\r\n\t\t\t\t\"While transformed, I have resistance to all damage types except force damage\",\r\n\t\t\t\t\"Also, I can move through other creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 5 force damage if I end my turn inside an object\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (3 sorcery points)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// A subclass for the Warlock, called \"The Undying Light\"\r\nAddSubClass(\"warlock\", \"the undying light-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*light)(?=.*(immortal|undying|neverending|unending)).*$/i,\r\n\tsubname : \"the Undying Light\",\r\n\tsource : [[\"UA:LDU\", 3]],\r\n\tspellcastingExtra : [\"burning hands\", \"flaming sphere\", \"daylight\", \"fire shield\", \"flame strike\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I add my Cha modifier to cantrips/spells I cast that deal fire or radiant damage\",\r\n\t\t\t\t\"I have resistance to radiant damage and know the Light and Sacred Flame cantrips\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Radiant Soul\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Radiant Soul\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) output.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"UA:LDU\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I would make a death saving throw, I can instead spring back to my feet\",\r\n\t\t\t\t\"I immediately stand up and recover HP equal to half my current HP maximum\",\r\n\t\t\t\t\"Also, all hostiles within 30 ft of me take 10 + Charisma modifier in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Radiant Resilience\",\r\n\t\t\tsource : [[\"UA:LDU\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"UA:LDU\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I touch a creature and heal it by expending dice from my pool\",\r\n\t\t\t\t\"I subtract the number of d6's used from my pool; I can expend up to 5d6 at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain expended uses with a long rest\",\r\n\t\t\t]),\r\n\t\t\tusages : \"15d6 per \",\r\n\t\t\tusagescalc : \"event.value = '15d6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20151217_That-Old-Black-Magic.js",
    "content": "var iFileName = \"ua_20151217_That-Old-Black-Magic.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: That Old Black Magic article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:TOBM\"] = {\r\n\tname : \"Unearthed Arcana: That Old Black Magic\",\r\n\tabbreviation : \"UA:TOBM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/07_UA_That_Old_Black_Magic.pdf\",\r\n\tdate : \"2015/12/17\"\r\n};\r\n\r\n// Adds the Abyssal Tiefling\r\nRaceList[\"abyssal tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*abyssal)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\tname : \"Abyssal tiefling\",\r\n\tsortname : \"Tiefling, Abyssal\",\r\n\tsource : [[\"UA:TOBM\", 1]],\r\n\tplural : \"Abyssal tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Abyssal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Abyssal Tiefling (+1 Constitution, +2 Charisma)\\nAbyssal Fortitude: My HP maximum increases with half the levels I have (min 1). Abyssal Arcana: After each long rest I gain randomly determined spellcasting ability (d6). This is a cantrip, and on both 3rd and 5th level a spell that I can cast once, at 2nd-level.\\n1: (Dancing Lights, Burning Hands, Alter Self); 2: (True Strike, Charm Person, Darkness)\" + (!typePF ? \";\" : \" \") + \" 3: (Light, Magic Missile, Invisibility); 4: (Spare the Dying, Hideous Laughter, Mirror Image)\" + (!typePF ? \";\" : \" \") + \" 5: (Message, Cure Wounds, Levitate); 6: (Prestidigitation, Thunderwave, Spider Climb)\",\r\n\tabilitySave : 6,\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Abyssal Arcana (level 1)\",\r\n\t\tspells : [\"dancing lights\", \"true strike\", \"light\", \"message\", \"spare the dying\", \"prestidigitation\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tcalcChanges : {\r\n\t\thp : function (totalHD) { return [Math.max(1, Math.floor(totalHD / 2)), \"Abyssal Fortitude\"]; }\r\n\t},\r\n\tfeatures : {\r\n\t\t\"abyssal arcana (level 3)\" : {\r\n\t\t\tname : \"Abyssal Arcana (level 3)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Abyssal Arcana (level 3)\",\r\n\t\t\t\tspells : [\"burning hands\", \"charm person\", \"magic missile\", \"cure wounds\", \"tasha's hideous laughter\", \"thunderwave\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"abyssal arcana (level 5)\" : {\r\n\t\t\tname : \"Abyssal Arcana (level 5)\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Abyssal Arcana (level 5)\",\r\n\t\t\t\tspells : [\"alter self\", \"darkness\", \"invisibility\", \"levitate\", \"mirror image\", \"spider climb\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tvariants : RaceList.tiefling && RaceList.tiefling.variants ? RaceList.tiefling.variants : []\r\n};\r\n//now do the variants\r\nvar UATOBM_addAbyssalTiefling = function(){\r\n\tvar replaceTraitTxt = [\"+1 Intelligence, +2 Charisma\", \"+1 Constitution, +2 Charisma\"];\r\n\tvar replaceNameTxt = [\"tiefling\", \"abyssal tiefling\"];\r\n\tRaceList[\"abyssal tiefling-ua\"].variants.forEach( function(nVar) {\r\n\t\tif (!RaceSubList[\"tiefling-\" + nVar]) return;\r\n\t\tRaceSubList[\"abyssal tiefling-ua-\" + nVar] = newObj(RaceSubList[\"tiefling-\" + nVar]);\r\n\t\tvar thisVar = RaceSubList[\"abyssal tiefling-ua-\" + nVar];\r\n\t\tthisVar.trait = thisVar.trait.replace(replaceTraitTxt[0], replaceTraitTxt[1]);\r\n\t\tthisVar.trait = thisVar.trait.replace(replaceNameTxt[0].capitalize(), replaceNameTxt[1].capitalize());\r\n\t\tthisVar.name = thisVar.name.replace(replaceNameTxt[0], replaceNameTxt[1]);\r\n\t\tthisVar.plural = thisVar.plural.replace(replaceNameTxt[0], replaceNameTxt[1]);\r\n\t});\r\n}();\r\n\r\n/*\tAdds 5 spells for summoning fiends to the Sorcerer and the Wizard spell lists\r\n\t\r\n\tThis code was contributed by David\r\n*/\r\nSpellsList[\"conjure lesser demon-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Lesser Demon\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from an intelligent humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon 8 (16 at SL6, 32 at SL8) manes/dretches that are hostile to all non-demons, attacking nearest\",\r\n\tdescriptionFull : \"You summon up to a total of eight manes or dretches that appear in unoccupied spaces you can see within range. A manes or dretch disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The demons are hostile to all creatures. Roll initiative for the summoned demons as a group, which has its own turns. The demons attack the nearest non-demons to the best of their ability.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground with the blood used as a material component. The circle is large enough to encompass your space. The summoned demons cannot cross the circle or target anyone in it while the spell lasts. Using the material component in this manner consumes it.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 6th or 7th level, you summon sixteen demons. If you cast it using a spell slot of 8th or 9th level, you summon thirty-two demons.\"\r\n};\r\nSpellsList[\"conjure barlgura-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Barlgura\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"Summon a barlgura that is hostile to all non-demons, attacking the nearest\",\r\n\tdescriptionFull : \"You summon a barlgura that appears in an unoccupied space you can see within range. The barlgura disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The barlgura is hostile to all non-demons. Roll initiative for the barlgura, which has its own turns. At the start of its turn, it moves toward and attacks the nearest non-demon it can perceive. If two or more creatures are equally near, it picks one at random. If it cannot see any potential enemies, the barlgura moves in a random direction in search of foes.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned barlgura cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure hezrou-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Hezrou\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 2]],\r\n\tlevel : 7,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"Food worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a hezrou that I might control as long as there is food; At half HP it leaves, see B (100gp cons.)\",\r\n\tdescriptionFull : \"You summon a hezrou that appears in an unoccupied space you can see within range. The hezrou disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The hezrou's attitude depends on the value of the food used as a material component for this spell. Roll initiative for the hezrou, which has its own turns. At the start of the hezrou's turn, the DM makes a secret Charisma check on your behalf, with a bonus equal to the food's value divided by 20. The check DC starts at 10 and increases by 2 each round. You can issue orders to the hezrou and have it obey you as long as you succeed on the Charisma check.\" + \"\\n   \" + \"If the check fails, the spell no longer requires concentration and the demon is no longer under your control. The hezrou then focuses on devouring any corpses it can see. If there are no such meals at hand, it attacks the nearest creatures and eats anything it kills. If its hit points are reduced to below half its hit point maximum, it returns to the Abyss.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned hezrou cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure shadow demon-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Shadow Demon\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 3]],\r\n\tlevel : 4,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A vial of blood from an intelligent humanoid killed within the past 24 hours\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a shadow demon that I control while not in bright light, can attack, and within 100 ft, see B\",\r\n\tdescriptionFull : \"You summon a shadow demon that appears in an unoccupied space you can see within range. The shadow demon disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"Roll initiative for the shadow demon, which has its own turns. You can issue orders to the shadow demon, and it obeys you as long as it can attack a creature on each of its turns and does not start its turn in an area of bright light. If either of these conditions is not met, the shadow demon immediately makes a Charisma check contested by your Charisma check. If you fail the check, the spell no longer requires concentration and the demon is no longer under your control. The demon automatically succeeds on the check if it is more than 100 feet away from you.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned shadow demon cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\nSpellsList[\"conjure vrock-ua\"] = { // Still valid 2021-09-21\r\n\tname : \"Conjure Vrock\",\r\n\tclasses : [\"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:TOBM\", 3]],\r\n\tlevel : 5,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"A gem worth at least 100 gp, which the spell consumes\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a vrock that I might control for some rounds, depending on gem value, see B (100gp cons.)\",\r\n\tdescriptionFull : \"You summon a vrock that appears in an unoccupied space you can see within range. The vrock disappears when it drops to 0 hit points or when the spell ends.\" + \"\\n   \" + \"The vrock's attitude depends on the value of the gem used as a material component for this spell. Roll initiative for the vrock, which has its own turns. At the start of the vrock's turn, the DM makes a secret Charisma check on your behalf, with a bonus equal to the gem's value divided by 20. The check DC starts at 10 and increases by 2 each round. You can issue orders to the vrock and have it obey you as long as you succeed on the Charisma check.\" + \"\\n   \" + \"If the check fails, the spell no longer requires concentration and the vrock is no longer under your control. The vrock takes no actions on its next turn and uses its telepathy to tell any creature it can see that it will fight in exchange for treasure. The creature that gives the vrock the most expensive gem can command it for the next 1d6 rounds. At the end of that time, it offers the bargain again. If no one offers the vrock treasure before its next turn begins, it attacks the nearest creatures for 1d6 rounds before returning to the Abyss.\" + \"\\n   \" + \"As part of casting the spell, you can scribe a circle on the ground using the blood of an intelligent humanoid slain within the past 24 hours. The circle is large enough to encompass your space. The summoned vrock cannot cross the circle or target anyone in it while the spell lasts.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20160104_Kits-of-Old.js",
    "content": "var iFileName = \"ua_20160104_Kits-of-Old.js\";\r\nRequiredSheetVersion(\"13.0.8\", 15);\r\n// This file adds the content from the Unearthed Arcana: Kits of Old article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:KoO\"] = {\r\n\tname : \"Unearthed Arcana: Kits of Old\",\r\n\tabbreviation : \"UA:KoO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2015/downloads/dnd/04_UA_Classics_Revisited.pdf\",\r\n\tdate : \"2016/01/04\"\r\n};\r\n\r\n// Adds four subclasses, 2 for the bard, 2 for the fighter\r\nAddSubClass(\"bard\", \"college of swords-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"UA:KoO\", 1]],\r\n\tattacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and scimitars\"),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : function () {\r\n\t\t\tvar FSfea = newObj(FightingStyles.two_weapon);\r\n\t\t\tFSfea.source = [\"UA:KoO\", 1];\r\n\t\t\tFSfea.minlevel = 3;\r\n\t\t\treturn FSfea;\r\n\t\t}(),\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"UA:KoO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action on my turn, I can do one of the following flourishes:\",\r\n\t\t\t\t\"I have to use a dagger, longsword, rapier, scimitar, or shortsword while doing this\",\r\n\t\t\t\t\"\\u2022 Defensive Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action, I add the die to my AC until the start of my next turn\",\r\n\t\t\t\t\"\\u2022 Trick Shooter's Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action with a dagger ranged attack, I add the die to the attack roll\",\r\n\t\t\t\t\"   If the target is an unattended, inanimate object, the result of the die is doubled\",\r\n\t\t\t\t\"\\u2022 Unnerving Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"   As a bonus action when reducing a foe to 0 HP with a melee attack, I leave it alive\",\r\n\t\t\t\t\"   The target stays at 1 HP and is frightened of me for my Cha modifier in minutes\",\r\n\t\t\t\t\"   It must also make a Cha save at a DC of my spell save + the bardic inspiration die\",\r\n\t\t\t\t\"   If failed, it answers truthfully any questions I ask and obeys me while frightened\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (one inspiration die)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Battle Magic\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"When I use my action to cast a Bard spell, I can make one bonus action weapon attack\"),\r\n\t\t\taction : [[\"bonus action\", \" (with Bard spell)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of satire-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*satire).*$/i,\r\n\tsubname : \"College of Satire\",\r\n\tsubnameShort: \"Satire\",\r\n\tsource : [[\"UA:KoO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with thieves' tools, sleight of hand, and one other skill of my choice\"),\r\n\t\t\tskills : [\"Sleight of Hand\"],\r\n\t\t\tskillstxt : \"Thieves' Tools, Sleight of Hand, and any one other skill\",\r\n\t\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Tumbling Fool\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I tumble which gives the benefits of the Dash and Disengage actions\",\r\n\t\t\t\t\"I also gain a climbing speed at my current speed and half damage from falling\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspeed : { climb : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fool's Insight\",\r\n\t\t\tsource : [[\"UA:KoO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can cast Detect Thoughts, but on a save the target suffers an embarrassing social gaffe\"),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fool's Insight\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : \"(S)\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect thoughts\" : {\r\n\t\t\t\t\tdescription : \"1 a read thoughts of visible Int>3 crea or detect invisible in 30 ft; save for probing, social gaffe on save\",\r\n\t\t\t\t\tchanges : \"I can cast this spell a number of times equal to my Charisma modifier per long rest and when I do so and the target makes its save, it suffers an embarrassing social gaffe.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fool's Luck\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tadditional: \"one bardic inspiration die\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I fail an ability check, saving throw, or attack roll, I can add one inspiration die\",\r\n\t\t\t\t\"If this turns the roll into a success, I have to note down the number rolled\",\r\n\t\t\t\t\"I can't use this ability again until the DM subtracts the amount from a check or attack\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"reset\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier-ua\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"UA:KoO\", 3]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one skill and any one tool\",\r\n\t\t\t\t\"For skills I can choose from Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"1 Skill and 1 Tool proficiencies\", \"2 Skill proficiencies\"],\r\n\t\t\t\"1 skill and 1 tool proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I gain proficiency with one skill and any one tool of my choice\",\r\n\t\t\t\t\t\"For the skill, I can choose Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, Insight, Performance, or Persuasion\",\r\n\t\t\t\ttoolProfs : [[\"Any tool\", 1]]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc(\"I gain two skill proficiencies: Animal Handling, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Animal Handling, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling to influence/control an animal; I add the superiority die to the roll\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 Use on a mount, before rolling to hit with a lance; I add the die to the damage roll\",\r\n\t\t\t\t\"   Also, the target must make a Str save (DC 8 + Prof + Str mod) or be knocked prone\",\r\n\t\t\t\t\"\\u2022 As a reaction when I'm hit or my mount is hit, I add the superiority die to AC\",\r\n\t\t\t\t\"   If the attack still hits, I or my mount only take half damage from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (if hit/mount hit)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use two superiority dice, instead of just one, to increase the damage of my lance\",\r\n\t\t\t\t\"If doing so, the target has disadvantage on its Str save to avoid being knocked prone\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"scout-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"UA:KoO\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with three skills or two skills and Thieves' Tools; For skills choose from:\",\r\n\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"2 Skill proficiencies and Thieves' Tools proficiency\", \"3 Skill proficiencies\"],\r\n\t\t\t\"2 skill proficiencies and thieves' tools proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with two skills and Thieves' Tools; For skills choose from:\",\r\n\t\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose two from: Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, or Survival\",\r\n\t\t\t\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]]\r\n\t\t\t},\r\n\t\t\t\"3 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I gain proficiency with three skills, chosen from:\",\r\n\t\t\t\t\t\"Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, and Survival\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose three from: Acrobatics, Athletics, Investigation, Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling an Athletics, Nature, Perception, Stealth, or Survival check\",\r\n\t\t\t\t\"   I add half the superiority die to the roll (rounding up)\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 As a reaction when I'm hit while wearing light/medium armor, I add the die to AC\",\r\n\t\t\t\t\"   If the attack still hits, I only take half damage from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (if hit)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : function () {\r\n\t\t\tvar NEfea = newObj(ClassList.ranger.features[\"natural explorer\"]);\r\n\t\t\tNEfea.source = [\"UA:KoO\", 4];\r\n\t\t\tNEfea.minlevel = 3;\r\n\t\t\tNEfea.additional = [\"\", \"\", \"1 favored terrain\", \"1 favored terrain\", \"1 favored terrain\", \"1 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"2 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\", \"3 favored terrains\"];\r\n\t\t\treturn NEfea;\r\n\t\t}(),\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:KoO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20160404_Gothic-Heroes.js",
    "content": "var iFileName = \"ua_20160404_Gothic-Heroes.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n// This file adds the content from the Unearthed Arcana: Gothic Heroes article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:GH\"] = {\r\n\tname : \"Unearthed Arcana: Gothic Heroes\",\r\n\tabbreviation : \"UA:GH\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.dnd.wizards.com/upload/articles/UA%20Gothic%20Characters.pdf\",\r\n\tdate : \"2016/04/04\"\r\n};\r\n\r\n// Adds 8 new races, the Revenant versions of the Aasimar, Dragonborn, Dwarf, Elf, Gnome, Halfling, Human, and Tiefling\r\n// All revenants are still valid 2021-09-21\r\nRaceList[\"aasimar revenant-ua\"] = { // Based on the VGtM Aasimar, made with /u/RebelMage's help\r\n\tregExpSearch : /^(?=.*revenant)((?=.*aasimar)|((?=.*planetouched)(?=.*(celestial|angel)))).*$/i,\r\n\tname : \"Aasimar Revenant\",\r\n\tsortname : \"Revenant, Aasimar\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Aasimar\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Celestial\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Necrotic\", \"Radiant\"],\r\n\tage : \" reach adulthood in their late teens and live around 160 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Aasimar Revenant (+1 Constitution, +2 Charisma)\" + (typePF ? \"\\n\" : \" \") + \"Light Bearer: I know the Light cantrip. Healing Hands: As an action, once per long rest, I can touch to heal for my level in HP.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Light Bearer\",\r\n\t\tspells : [\"light\"],\r\n\t\tselection : [\"light\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"healing hands\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tusages : 1,\r\n\t\t\tminlevel : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : [\"1 HP\", \"2 HP\", \"3 HP\", \"4 HP\", \"5 HP\", \"6 HP\", \"7 HP\", \"8 HP\", \"9 HP\", \"10 HP\", \"11 HP\", \"12 HP\", \"13 HP\", \"14 HP\", \"15 HP\", \"16 HP\", \"17 HP\", \"18 HP\", \"19 HP\", \"20 HP\"],\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dwarf revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\b(dwarfs?|dwarves|dwarfish|dwarvish|dwarven)\\b).*$/i,\r\n\tname : \"Dwarf Revenant\",\r\n\tsortname : \"Revenant, Dwarf\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Dwarves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 0, 3, 0, 0, 0],\r\n\ttrait : \"Dwarf Revenant (+3 Constitution)\\nStonecunning: I have expertise on Int (History) checks related to the origin of stonework.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"elf revenant-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)(?=.*revenant)(?=.*\\b(elfs?|elves|elvish|elven)\\b).*$/i,\r\n\tname : \"Elf Revenant\",\r\n\tsortname : \"Revenant, Elf\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Elves\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Elf Revenant (+2 Dexterity, +1 Constitution)\\nTrance: I don't sleep, but meditate for 4 hours a day, needing only 4 hours for a long rest.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"halfling revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\b(halflings?|hobbits?)\\b).*$/i,\r\n\tname : \"Halfling Revenant\",\r\n\tsortname : \"Revenant, Halfling\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Halflings\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 1, 0, 0, 0],\r\n\ttrait : \"Halfling Revenant (+2 Dexterity, +1 Constitution)\" + (typePF ? \"\\n\" : \" \") + \"Lucky: I reroll 1's on attack/check/save. Halfling Nimbleness: I can move through the space of anybody of a size larger than me.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\"\r\n};\r\nRaceList[\"gnome revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)(?=.*\\bgnomes?\\b).*$/i,\r\n\tname : \"Gnome Revenant\",\r\n\tsortname : \"Revenant, Gnome\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Gnomes\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 2, 0, 0],\r\n\ttrait : \"Gnome Revenant (+1 Constitution, +2 Intelligence)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\nRaceList[\"dragonborn revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*dragonborn)(?=.*revenant).*$/i,\r\n\tname : \"Dragonborn Revenant\",\r\n\tsortname : \"Revenant, Dragonborn\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Dragonborn\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Draconic\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\r\n\t\tname : \"Breath weapon\",\r\n\t\tsource : [[\"UA:GH\", 1]],\r\n\t\tability : 3,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [2, 6, \"necrotic\"],\r\n\t\trange : '5-ft \\xD7 30-ft line',\r\n\t\tdescription : \"Hits all in area; Con save, success - half damage; Usable only once per short rest\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true,\r\n\t\tdbBreathWeapon : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tage : \" reach adulthood by 15 and live around 80 years\",\r\n\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [1, 0, 1, 0, 0, 1],\r\n\ttrait : \"Dragonborn Revenant (+1 Strength, +1 Constitution, +1 Charisma)\\nBreath Weapon: As an action, 5 ft by 30 ft line, Dex save halves, necrotic damage.\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish an unresolved task. I will rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. I always know the distance and direction to creatures involved with my goal.\",\r\n\tdmgres : [\"Necrotic\"],\r\n\tfeatures : {\r\n\t\t\"draconic ancestry\" : {\r\n\t\t\tname : \"Draconic Ancestry\",\r\n\t\t\tlimfeaname : \"Breath Weapon\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + 'd6';\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && CurrentRace.known === 'dragonborn revenant' && CurrentRace.level > 5) {\r\n\t\t\t\t\t\t\toutput.die = output.die.replace('2d6', (CurrentRace.level < 11 ? 3 : CurrentRace.level < 16 ? 4 : 5) + 'd6');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"human revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*human)(?=.*revenant).*$/i,\r\n\tname : \"Human Revenant\",\r\n\tsortname : \"Revenant, Human\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Humans\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Constitution and +1 to two different ability scores of my choice\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\ttrait : \"Human Revenant (+1 Constitution and +1 to two different ability scores of my choice)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\nRaceList[\"tiefling revenant-ua\"] = {\r\n\tregExpSearch : /^(?=.*revenant)((?=.*tiefling)|(?=.*planetouched)(?=.*(hell|abyss|fiend|devil))).*$/i,\r\n\tname : \"Tiefling Revenant\",\r\n\tsortname : \"Revenant, Tiefling\",\r\n\tsource : [[\"UA:GH\", 1]],\r\n\tplural : \"Tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 1, 0, 0, 2],\r\n\ttrait : \"Tiefling Revenant (+1 Constitution, +2 Charisma)\\nRelentless Nature: I have returned to life with one goal: avenge my death or finish a critical, unresolved task. I will find rest once I fulfill my goal, but until then I can't truly die. Whenever I'm below half my max HP at the start of my turn, I regain 1 HP. If I die, I return to life within 24 hours. If my body was destroyed, it is reformed within 1 mile of where I died. Any destroyed equipment is not regained. I always know the distance and direction between me and any creature involved with my goal that is on the same plane.\"\r\n};\r\n\r\n// Adds 2 subclasses, 1 for the Fighter and 1 for the rogue\r\nAddSubClass(\"fighter\", \"monster hunter-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*monster)(?=.*hunter).*$/i,\r\n\tsubname : \"Monster Hunter\",\r\n\tsource : [[\"UA:GH\", 2]],\r\n\tfullname : \"Monster Hunter\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one skill and any one tool\",\r\n\t\t\t\t\"For skills I can choose Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"1 Skill and 1 Tool proficiencies\", \"2 Skill proficiencies\"],\r\n\t\t\t\"1 skill and 1 tool proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I gain proficiency with one skill and any one tool of my choice\",\r\n\t\t\t\t\t\"For the skill, I can choose Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: Arcana, History, Insight, Investigation, Nature, or Perception\",\r\n\t\t\t\ttoolProfs : [[\"Any tool\", 1]]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies\" : {\r\n\t\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\t\tdescription: desc(\"I gain 2 skill proficiencies: Arcana, History, Insight, Investigation, Nature, or Perception\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Arcana, History, Insight, Investigation, Nature, and Perception\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\"\\u2022 Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\"\\u2022 Use after damaging a creature; I add the superiority die to the damage roll\",\r\n\t\t\t\t\"   Also, the attack imposes disadvantage on any concentration save resulting from it\",\r\n\t\t\t\t\"\\u2022 Use after Int/Wis/Cha save, before knowing success/fail; add the die to the save total\",\r\n\t\t\t\t\"\\u2022 Use with Wis (Perception) to detect hidden or Wis (Insight) to see if lying to me\",\r\n\t\t\t\t\"   After rolling but before knowing if success/fail; I add the superiority die to the check\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Hunter's Mysticism\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\t\t\t\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can cast Detect Magic as a ritual and Protection from Evil & Good once per long rest\",\r\n\t\t\t\t\"I gain the ability to speak one of the following languages: Abyssal, Celestial, or Infernal\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (Prot vs. Evil/Good)\"]],\r\n\t\t\tlanguageProfs : [[\"Abyssal, Celestial, or Infernal\", 1]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t\tspellcastingAbility : 5\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Spirit Seeker\",\r\n\t\t\t\tspells : [\"protection from evil and good\"],\r\n\t\t\t\tselection : [\"protection from evil and good\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect magic\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Monster Slayer\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Whenever I use a superiority die, I can choose to expend two, adding both to the roll\",\r\n\t\t\t\t\"If the target is an aberration, fey, fiend, or undead, both dice deal maximum damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:GH\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"rogue\", \"inquisitive-ua\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*inquisitive).*$/i,\r\n\tsubname : \"Inquisitive\",\r\n\tsource : [[\"UA:GH\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ear for Deceit\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When using Wis (Insight) to sense if someone is lying, I can choose to use a fixed total\",\r\n\t\t\t\t\"This total is 8 + Wis modifier + proficiency bonus (if proficient, or twice if expertise)\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Eye for Detail\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use the bonus action granted by Cunning Action for the following as well:\",\r\n\t\t\t\t\"\\u2022 To make a Wisdom (Perception) check to spot a hidden creature or object\",\r\n\t\t\t\t\"\\u2022 To make an Intelligence (Investigation) check to uncover and decipher clues\",\r\n\t\t\t\t\"\\u2022 To use Insightful Fighting (see below)\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Insightful Fighting\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action or bonus action, I can decipher the tactics of an active opponent I can see\",\r\n\t\t\t\t\"I have to make a Wisdom (Insight) check vs. the target's Charisma (Deception) check\",\r\n\t\t\t\t\"If I succeed, I can use sneak attack on the target regardless of advantage/disadvantage\",\r\n\t\t\t\t\"This benefit lasts for 1 minute or until I successfully use Insightful Fighting again\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Steady Eye\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc(\"If not moving during my turn, I gain adv. on Wis (Perception) to find hidden things\")\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Unerring Eye\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can sense magical deceptions within 30 feet of me, but not what it does\",\r\n\t\t\t\t\"I learn the presence of illusions, shapechanged creatures, or magic designed to deceive\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Eye for Weakness\",\r\n\t\t\tsource : [[\"UA:GH\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"While my Insightful Fighting is active, I add 2d6 to sneak attacks against that target\")\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20160606_Feats.js",
    "content": "var iFileName = \"ua_20160606_Feats.js\";\nRequiredSheetVersion(\"13.0.8\");\n// This file adds the content from the Unearthed Arcana: Feats article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:F\"] = {\n\tname : \"Unearthed Arcana: Feats\",\n\tabbreviation : \"UA:F\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2016/downloads/DND/UA-Feats-V1.pdf\",\n\tdate : \"2016/06/06\"\n};\n\n// Add 8 feats: 4 'weapon mastery' feats and 4 'tool' feats\n// This doesn't add the \"Warhammer Master\" feat, as that is only in the article to illustrate how not to design a feat\nFeatsList[\"fell handed-ua\"] = {\n\tname : \"Fell Handed\",\n\tsource : [[\"UA:F\", 2], [\"UA\", 0]],\n\tdescriptionFull : \"You master the handaxe, battleaxe, greataxe, warhammer, and maul. You gain the following benefits when using any of them:\\n \\u2022 You gain a +1 bonus to attack rolls you make with the weapon.\\n \\u2022 Whenever you have advantage on a melee attack roll you make with the weapon and hit, you can knock the target prone if the lower of the two d20 rolls would also hit the target.\\n \\u2022 Whenever you have disadvantage on a melee attack roll you make with the weapon, the target takes bludgeoning damage equal to your Strength modifier (minimum of 0) if the attack misses but the higher of the two d20 rolls would have hit.\\n \\u2022 If you use the Help action to aid an ally's melee attack while you're wielding the weapon, you knock the target's shield aside momentarily. In addition to the ally gaining advantage on the attack roll, the ally gains a +2 bonus to the roll if the target is using a shield.\",\n\tdescription : \"With a handaxe, battleaxe, greataxe, warhammer, or maul, I get +1 to hit, knock prone if I have adv. and hit with both rolls, with disadv. still do Str mod in bludg. damage if I miss but the other die would've hit, can use Help to give ally +2 to hit vs. enemy with a shield.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif ((/handaxe|battleaxe|greataxe|warhammer|maul/).test(v.baseWeaponName)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Adv: knock prone if both dice hit; Disadv: Str Mod bludg. damage on miss but 2nd die would hit';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a handaxe, battleaxe, greataxe, warhammer, or maul, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 When attacking with advantage, the target is knocked prone if both die would hit;\\n \\u2022 When attacking with disadvantage and missing, still do my Strength modifier in bludgeoning damage.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif ((/handaxe|battleaxe|greataxe|warhammer|maul/).test(v.baseWeaponName)) output.extraHit += 1;\n\t\t\t}, \"\"]\n\t}\n};\nFeatsList[\"blade mastery-ua\"] = {\n\tname : \"Blade Mastery\",\n\tsource : [[\"UA:F\", 2], [\"UA\", 0]],\n\tdescriptionFull : \"You master the shortsword, longsword, scimitar, rapier, and greatsword. You gain the following benefits when using any of them:\\n \\u2022 You gain a +1 bonus to attack rolls you make with the weapon.\\n \\u2022 On your turn, you can use your reaction to assume a parrying stance, provided you have the weapon in hand. Doing so grants you a +1 bonus to your AC until the start of your next turn or until you're not holding the weapon.\\n \\u2022 When you make an opportunity attack with the weapon, you have advantage on the attack roll.\",\n\tdescription : \"With a shortsword, longsword, greatsword, scimitar, or rapier, I get +1 to hit, advantage on opportunity attacks, and with the weapon in hand I can use my reaction to assume a parrying stance that gives me +1 AC until the start of my next turn.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif ((/shortsword|longsword|greatsword|scimitar|rapier/).test(v.baseWeaponName)) {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Advantage on opportunity attacks';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a shortsword, longsword, greatsword, scimitar, or rapier, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 Advantage on opportunity attacks.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif ((/shortsword|longsword|greatsword|scimitar|rapier/).test(v.baseWeaponName)) output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"reaction\", \" Parrying Stance\"]]\n};\nFeatsList[\"flail mastery-ua\"] = {\n\tname : \"Flail Mastery\",\n\tsource : [[\"UA:F\", 3], [\"UA\", 0]],\n\tdescriptionFull : \"The flail is a tricky weapon to use, but you have spent countless hours mastering it. You gain the following benefits:\\n \\u2022 You gain a +1 bonus to attack rolls you make with a flail.\\n \\u2022 As a bonus action on your turn, you can prepare yourself to extend your flail to sweep over targets' shields. Until the end of this turn, your attack rolls with a flail gain a +2 bonus against any target using a shield.\\n \\u2022 When you hit with an opportunity attack using a flail, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + your Strength modifier) or be knocked prone.\",\n\tcalculate : \"event.value = 'With a flail, I get +1 to hit, and enemies hit by an opportunity attack with it have to make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + What('Str Mod')) + ' (8 + Prof Bonus + Str mod) or be knocked prone. As a bonus action, I can get +2 to hit with my flail vs. targets with shields until the end of my turn.';\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == 'flail') {\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'On opportunity attack hit, Strength save (DC 8 + Prof Bonus + Str mod) or knocked prone';\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a flail, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 Targets hit with it must make a Strength saving throw (DC 8 + proficiency bonus + Strength modifier) or be knocked prone.\"\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.baseWeaponName == 'flail') output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"bonus action\", \"\"]]\n};\nFeatsList[\"spear mastery-ua\"] = {\n\tname : \"Spear Mastery\",\n\tsource : [[\"UA:F\", 3], [\"UA\", 0]],\n\tdescriptionFull : \"Though the spear is a simple weapon to learn, it rewards you for the time you have taken to master it. You gain the following benefits:\\n \\u2022 You gain a +1 bonus to attack rolls you make with a spear.\\n \\u2022 When you use a spear, its damage die changes from a d6 to a d8, and from a d8 to a d10 when wielded with two hands. (This benefit has no effect if another feature has already improved the weapon's die.)\\n \\u2022 You can set your spear to receive a charge. As a bonus action, choose a creature you can see that is at least 20 feet away from you. If that creature moves within your spear's reach on its next turn, you can make a melee attack against it with your spear as a reaction. If the attack hits, the target takes an extra 1d8 piercing damage, or an extra 1d10 piercing damage if you wield the spear with two hands. You can't use this ability if the creature used the Disengage action before moving.\\n \\u2022 As a bonus action on your turn, you can increase your reach with a spear by 5 feet for the rest of your turn.\",\n\tdescription : \"With a spear, I get +1 to hit and it does d8 damage (versatile d10). As a bonus action, I select a target at least 20 ft away. If it moves in reach on its next turn, I can attack it as a reaction, extra damage die. As a bonus action, I can increase the spear's reach by 5 ft.\",\n\tcalcChanges : {\n\t\tatkAdd : [\n\t\t\tfunction (fields, v) {\n\t\t\t\tif (v.baseWeaponName == 'spear') {\n\t\t\t\t\tfields.Damage_Die = fields.Damage_Die === '1d6' ? '1d8' : fields.Damage_Die;\n\t\t\t\t\tfields.Description = fields.Description.replace('versatile (1d8)', 'versatile (1d10)');\n\t\t\t\t};\n\t\t\t},\n\t\t\t\"With a spear, I get the following benefits:\\n \\u2022 +1 to hit;\\n \\u2022 The spear damage die increases to d8 (versatile d10).\",\n\t\t\t1\n\t\t],\n\t\tatkCalc : [\n\t\t\tfunction (fields, v, output) {\n\t\t\t\tif (v.baseWeaponName == 'spear') output.extraHit += 1;\n\t\t\t}, \"\"]\n\t},\n\taction : [[\"bonus action\", \" (set vs. charge)\"], ['bonus action', ' (increase reach)']]\n};\nFeatsList[\"alchemist-ua\"] = {\n\tname : \"Alchemist\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You have studied the secrets of alchemy and are an expert in its practice, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with alchemist's supplies. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\\n \\u2022 As an action, you can identify one potion within 5 feet of you, as if you had tasted it. You must see the liquid for this benefit to work.\\n \\u2022 Over the course of any short rest, you can temporarily improve the potency of one potion of healing of any rarity. To use this benefit, you must have alchemist's supplies with you, and the potion must be within reach. If the potion is drunk no more than 1 hour after the short rest ends, the creature drinking the potion can forgo the potion's die roll and regains the maximum number of hit points that the potion can restore.\",\n\tdescription : \"I gain proficiency with alchemist's supplies, or expertise if already proficient. As an action, I can identify a potion within 5 ft. During a rest with alchemist's supplies, I can enhance a potion of healing, to heal its max. Consuming it within 1 hour maximizes its effects [+1 Int]\",\n\tscores : [0, 0, 0, 1, 0, 0],\n\taction : [[\"action\", \" (identify potion)\"]],\n\ttoolProfs : [[\"Alchemist's supplies\", \"Int\"]],\n\teval : function () {\n\t\tif ((/(alchemist|alchemy).*(supplies|kit)/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/(alchemist|alchemy).*(supplies|kit)/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"burglar-ua\"] = {\n\tname : \"Burglar\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You pride yourself on your quickness and your close study of certain clandestine activities. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with thieves' tools. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\",\n\tdescription : \"I gain proficiency with thieves' tools, or expertise with them if I'm already proficient. [+1 Dexterity]\",\n\tscores : [0, 1, 0, 0, 0, 0],\n\ttoolProfs : [[\"Thieves' tools\", \"Dex\"]],\n\teval : function () {\n\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"gourmand-ua\"] = {\n\tname : \"Gourmand\",\n\tsource : [[\"UA:F\", 4]],\n\tdescriptionFull : \"You have mastered a variety of special recipes, allowing you to prepare exotic dishes with useful effects. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with cook's utensils. If you are already proficient with them, you add double your proficiency bonus to checks you make with them.\\n \\u2022 As an action, you can inspect a drink or plate of food within 5 feet of you and determine whether it is poisoned, provided that you can see and smell it.\\n \\u2022 During a long rest, you can prepare and serve a meal that helps you and your allies recover from the rigors of adventuring, provided you have suitable food, cook's utensils, and other supplies on hand. The meal serves up to six people, and each person who eats it regains two additional Hit Dice at the end of the long rest. In addition, those who partake of the meal have advantage on Constitution saving throws against disease for the next 24 hours.\",\n\tdescription : \"I gain proficiency with cook's utensils, or expertise if already proficient. As an action, I can detect poison in food within 5 ft. In a long rest with food/supplies, I can have 6 creatures regain 2 extra HD and give them adv. on Con saves vs. disease for 24 hours. [+1 Con]\",\n\tscores : [0, 0, 1, 0, 0, 0],\n\taction : [[\"action\", \" (inspect food)\"]],\n\ttoolProfs : [[\"Cook's utensils\", \"Int\"]],\n\teval : function () {\n\t\tif ((/cook.*utensils/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/cook.*utensils/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\nFeatsList[\"master of disguise-ua\"] = {\n\tname : \"Master of Disguise\",\n\tsource : [[\"UA:F\", 4], [\"UA\", 0]],\n\tdescriptionFull : \"You have honed your ability to shape your personality and to read the personalities of others. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with the disguise kit. If you are already proficient with it, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you spend 1 hour observing a creature, you can then spend 8 hours crafting a disguise you can quickly don to mimic that creature. Making the disguise requires a disguise kit. You must make checks as normal to disguise yourself, but you can assume the disguise as an action.\",\n\tdescription : \"I gain proficiency with the disguise kit, or expertise with it if I'm already proficient. After observing a creature for 1 hour, I can craft a disguise to mimic it in 8 hours with a disguise kit. Once finished, I can don this disguise as an action. [+1 Charisma]\",\n\tscores : [0, 0, 0, 0, 0, 1],\n\taction : [[\"action\", \" (don disguise)\"]],\n\ttoolProfs : [[\"Disguise kit\", \"Cha\"]],\n\teval : function () {\n\t\tif ((/disguise.*kit/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', true);\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/disguise.*kit/i).test(What('Too Text'))) {\n\t\t\tCheckbox('Too Exp', false);\n\t\t};\n\t}\n};\n"
  },
  {
    "path": "WotC material/ua_20160801_The-Faithful.js",
    "content": "var iFileName = \"ua_20160801_The-Faithful.js\";\nRequiredSheetVersion(\"14.0.1-beta\", 15);\n// This file adds the content from the Unearthed Arcana: The Faithful article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TF\"] = {\n\tname : \"Unearthed Arcana: The Faithful\",\n\tabbreviation : \"UA:TF\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA%20Non-Divine%20Faithful%20SFG.pdf\",\n\tdate : \"2016/08/01\"\n};\n\n// Adds 2 subclasses, 1 for the Warlock and 1 for the Wizard\nAddSubClass(\"warlock\", \"the seeker-ua\", { // Still valid 2021-09-21\n\tregExpSearch : /^(?=.*warlock)(?=.*seeker).*$/i,\n\tsubname : \"the Seeker\",\n\tsource : [[\"UA:TF\", 1]],\n\tspellcastingExtra : [\"feather fall\", \"jump\", \"levitate\", \"locate object\", \"clairvoyance\", \"sending\", \"arcane eye\", \"locate creature\", \"legend lore\", \"passwall\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Shielding Aurora\",\n\t\t\tsource : [[\"UA:TF\", 1]],\n\t\t\tminlevel : 1,\n\t\t\tdescription: desc([\n\t\t\t\t\"As a bonus action, I create a whirling aurora of brilliant energy around me\",\n\t\t\t\t\"It lasts until the end of my next turn and grants me resistance to all damage\",\n\t\t\t\t\"Any hostile ending its turn in 10 ft of me get Warlock level + Cha mod radiant damage\",\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Astral Refuge\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription: desc([\n\t\t\t\t\"As an action, I can step into an astral refuge, coming back at the end of the turn\",\n\t\t\t\t\"While in the astral refuge, I can take two actions to cast spells targeting just me\",\n\t\t\t]),\n\t\t\taction : [[\"action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Far Wanderer\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription: desc(\"I no longer need to breathe, and I gain resistance to fire damage and cold damage\"),\n\t\t\tdmgres : [\"Cold\", \"Fire\"]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Astral Sequestration\",\n\t\t\tsource : [[\"UA:TF\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription: desc([\n\t\t\t\t\"With a 5 minutes ritual, I can shift myself and ten willing creatures to the Astral Plane\",\n\t\t\t\t\"While sequestered an Astral Plane, we gain the full benefits of a short rest\",\n\t\t\t\t\"After this rest, we return to the same space as before, without any time having passed\",\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t}\n});\n\n// Add a Pact Boon option that is only available for \"the Seeker\" subclass\nAddFeatureChoice(ClassList.warlock.features[\"pact boon\"], false, \"Pact of the Star Chain\", {\n\tname : \"Pact of the Star Chain\",\n\tsource : [[\"UA:TF\", 1]],\n\tdescription : desc([\n\t\t\"My patron grants me an item of power which disappears when I die\",\n\t\t\"While it is on my person, I can cast Augury as a ritual\",\n\t\t\"Additionally, once per short rest, I can get advantage on an Intelligence check\",\n\t\t\"If I lose this item I can perform a 1-hour ceremony to get a replacement\"\n\t]),\n\tusages : 1,\n\trecovery : \"short rest\",\n\tspellcastingBonus : [{\n\t\tname : \"Pact of the Star Chain\",\n\t\tspells : [\"augury\"],\n\t\tselection : [\"augury\"],\n\t\tfirstCol : SpellRitualTag,\n\t}],\n\tspellChanges : {\n\t\t\"augury\" : {\n\t\t\ttime : \"11 min\",\n\t\t\tchanges : \"With my Pact of the Star Chain boon I can cast Augury only as a ritual, thus requiring 10 extra minutes to cast it.\"\n\t\t}\n\t},\n\tprereqeval : function(v) {\n\t\treturn classes.known.warlock && classes.known.warlock.subclass.indexOf(\"the seeker\") !== -1 ? true : \"skip\";\n\t}\n});\nRunFunctionAtEnd(function() {\n\tvar theTheurgySubclass = AddSubClass(\"wizard\", \"theurgy-ua\", { // Still valid 2021-09-21\n\t\tregExpSearch : /^((?=.*mystic)(?=.*theurge))|(?=.*(theurgy|theurgist)).*$/i,\n\t\tsubname : \"Theurgy\",\n\t\tsource : [[\"UA:TF\", 1], [\"UA:WR\", 1]],\n\t\tfullname : \"Theurgist\",\n\t\tfeatures : {\n\t\t\t\"subclassfeature2\" : {\n\t\t\t\tname : \"Arcane Initiate\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t'Choose a Cleric Domain using the \"Choose Feature\" button above',\n\t\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\t\"I can replace it with one of the chosen domain spells, if it is of a level I can cast\",\n\t\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t\t]),\n\t\t\t\tcalcChanges : {\n\t\t\t\t\tspellList : [\n\t\t\t\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1 || !CurrentSpells.wizard.extra || !CurrentSpells.wizard.selectSp || !spList.level || !spList.level[1]) return;\n\t\t\t\t\t\t\tvar domainSpells = CurrentSpells.wizard.extra;\n\t\t\t\t\t\t\t// now stop this function if even one of the domain spells is not already in the spellbook\n\t\t\t\t\t\t\tvar knownSpells = [].concat(CurrentSpells.wizard.selectSp ? CurrentSpells.wizard.selectSp : []).concat(CurrentSpells.wizard.selectSpSB ? CurrentSpells.wizard.selectSpSB : []);\n\t\t\t\t\t\t\tfor (var i = 0; i < domainSpells.length; i++) {\n\t\t\t\t\t\t\t\tif (knownSpells.indexOf(domainSpells[i]) == -1) return;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// get all the cleric spells, level 1-9\n\t\t\t\t\t\t\tvar clericSpells = CreateSpellList({\"class\" : \"cleric\", level : [1,9]});\n\t\t\t\t\t\t\tspList.extraspells = spList.extraspells.concat(clericSpells);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"When I gain a wizard level after my spellbook already has all the spells of my chosen domain, I can instead select any cleric spell of a level I can cast as one of the spells I gain from levelling up.\"\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\tchoices : [],\n\t\t\t\tchoiceDependencies : [{\n\t\t\t\t\tfeature : \"subclassfeature2.3\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature6\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature10\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature14\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"subclassfeature2.1\" : {\n\t\t\t\tname : \"Channel Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc(\"I can channel arcane energy from my deity; the save for this is my wizard spell DC\"),\n\t\t\t\tusages : [0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3],\n\t\t\t\trecovery : \"short rest\"\n\t\t\t},\n\t\t\t\"subclassfeature2.2\" : {\n\t\t\t\tname : \"Channel Arcana: Divine Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"As a bonus action, I speak a prayer to control the flow of magic around me\",\n\t\t\t\t\t\"The next spell I cast gains a +2 bonus to its attack roll or saving throw DC\",\n\t\t\t\t]),\n\t\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t\t},\n\t\t\t\"subclassfeature2.3\" : {\n\t\t\t\tname : \"Channel Arcana: Domain\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature6\" : {\n\t\t\t\tname : \"Arcane Acolyte\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 6,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature10\" : {\n\t\t\t\tname : \"Arcane Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 10,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature14\" : {\n\t\t\t\tname : \"Arcane High Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 14,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t}\n\t\t}\n\t});\n\tvar MTfeat = ClassSubList[theTheurgySubclass].features;\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\n\t\tvar aDomain = ClassSubList[ClassList.cleric.subclasses[1][i]];\n\t\tif (!aDomain) continue;\n\t\tvar dSource = aDomain.source ? aDomain.source : aDomain.features[\"subclassfeature1\"] && aDomain.features[\"subclassfeature1\"].source ? aDomain.features[\"subclassfeature1\"].source : [[\"UA:TF\", 0], [\"UA:WR\", 0]];\n\t\t\n\t\tvar suffix = 1;\n\t\tvar entryDoNm = aDomain.subname;\n\t\twhile (MTfeat[\"subclassfeature2\"].choices.indexOf(entryDoNm) !== -1) {\n\t\t\tsuffix += 1;\n\t\t\tentryDoNm = aDomain.subname + \" (\" + suffix + \")\";\n\t\t};\n\t\tMTfeat[\"subclassfeature2\"].choices.push(entryDoNm);\n\t\tMTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()] = {\n\t\t\tname : \"Arcane Initiate: \" + aDomain.subname,\n\t\t\tsource : dSource,\n\t\t\tspellcastingExtra : aDomain.spellcastingExtra,\n\t\t\tdescription: desc([\n\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\"I can replace it with one of the \" + aDomain.subname.toLowerCase() + \" spells, if it is of a level I can cast\",\n\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t]),\n\t\t};\n\t\tvar AIdomain = MTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()];\n\t\tfor (var aFea in aDomain.features) {\n\t\t\tvar dFea = aDomain.features[aFea];\n\t\t\tif (dFea.minlevel === 2 && (/channel divinity/i).test(dFea.name)) {\n\t\t\t\tMTfeat[\"subclassfeature2.3\"].choices.push(entryDoNm);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name = MTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name.replace(/channel divinity/i, \"Channel Arcana\");\n\t\t\t};\n\t\t\tif (dFea.minlevel === 1 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature6\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature6\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 6 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature10\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature10\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 17 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature14\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature14\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t};\n\t};\n});\n"
  },
  {
    "path": "WotC material/ua_20160912_The-Ranger,-Revised.js",
    "content": "var iFileName = \"ua_20160912_The-Ranger,-Revised.js\";\r\nRequiredSheetVersion(\"13.1.0\");\r\n// This file adds the content from the Unearthed Arcana: The Ranger, Revised article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RR\"] = {\r\n\tname : \"Unearthed Arcana: The Ranger, Revised\",\r\n\tabbreviation : \"UA:RR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_RevisedRanger.pdf\",\r\n\tdate : \"2016/09/12\"\r\n};\r\n\r\n//adds an alternative ranger class, including three subclasses\r\nClassList.rangerua = {\r\n\tregExpSearch : /^((?=.*(ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tname : \"Ranger\",\r\n\tsource : [[\"UA:RR\", 2]],\r\n\tprimaryAbility : \"Dexterity and Wisdom\",\r\n\tabilitySave : 5,\r\n\tprereqs : \"Dexterity 13 and Wisdom 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 10,\r\n\tsaves : [\"Str\", \"Dex\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, and Survival\",\r\n\t\tsecondary : \"Choose one from Animal Handling, Athletics, Insight, Investigation, Nature, Perception, Stealth, or Survival\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, true],\r\n\t\tsecondary : [true, true]\r\n\t},\r\n\tequipment : \"Ranger starting equipment:\\n \\u2022 Scale mail -or- leather armor;\\n \\u2022 Two shortswords -or- two simple melee weapons;\\n \\u2022 A dungeoneer's pack -or- an explorer's pack;\\n \\u2022 A longbow and a quiver of 20 arrows.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Ranger Conclaves\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"ranger\"\r\n\t},\r\n\tspellcastingKnown : {\r\n\t\tspells : [0, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"favored enemy\" : {\r\n\t\t\tname : \"Favored Enemy\",\r\n\t\t\tsource : [[\"UA:RR\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a favored enemy',\r\n\t\t\t\t\"Choose from beasts, fey, humanoids, monstrosities, or undead\",\r\n\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against the chosen favored enemy\",\r\n\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about them\",\r\n\t\t\t\t\"I also learn one language of my choice, typically one associated with the favored enemy\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 6 ? \"+2\" : \"+4\") + \" weapon attack damage\";\r\n\t\t\t}),\r\n\t\t\tchoices : [\"Beasts\", \"Fey\", \"Humanoids\", \"Monstrosities\", \"Undead\"],\r\n\t\t\t\"beasts\" : {\r\n\t\t\t\tname : \"Favored Enemy: Beasts\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against beasts\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about beasts\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with beasts\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"fey\" : {\r\n\t\t\t\tname : \"Favored Enemy: Fey\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against fey\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about fey\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with fey\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"humanoids\" : {\r\n\t\t\t\tname : \"Favored Enemy: Humanoids\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against humanoids\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about humanoids\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with humanoids\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"monstrosities\" : {\r\n\t\t\t\tname : \"Favored Enemy: Monstrosities\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against monstrosities\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about monstrosities\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with monstrosities\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"undead\" : {\r\n\t\t\t\tname : \"Favored Enemy: Undead\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I get a bonus to damage rolls with weapon attacks against undead\",\r\n\t\t\t\t\t\"I have adv. on Wis (Survival) to track and Int checks to recall info about undead\",\r\n\t\t\t\t\t\"I learn a language, typically one spoken by or associated with undead\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [1],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.isSpell && classes.known.rangerua && classes.known.rangerua.level && (/favou?red.{1,2}enemy/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.rangerua.level < 6 ? 2 : 4;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Favored Enemy' in the name or description of a weapon, it gets bonus damage, depending on my Ranger level.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"natural explorer\" : {\r\n\t\t\tname : \"Natural Explorer\",\r\n\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"On my first turn in combat, I have adv. on attacks against those that did not yet act\",\r\n\t\t\t\t\"I ignore difficult terrain; I have adv. on Initiative; I have benefits in travel, see page 3\",\r\n\t\t\t]),\r\n\t\t\t\"travel benefits\" : {\r\n\t\t\t\tname : \"Travel Benefits\",\r\n\t\t\t\textraname : \"Natural Explorer\",\r\n\t\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"After one hour of traveling in the wilderness I gain the following benefits:\",\r\n\t\t\t\t\t\" \\u2022 My allies and I are not slowed by difficult terrain and can't get lost except by magic\",\r\n\t\t\t\t\t\" \\u2022 I am alert to danger even when doing something else; I forage twice as much food\",\r\n\t\t\t\t\t\" \\u2022 If alone (or alone with animal companion), I can move stealthily at my normal pace\",\r\n\t\t\t\t\t\" \\u2022 When tracking others, I also learn their exact number, size, and time since passing\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"travel benefits\" }],\r\n\t\t\tadvantages : [[\"Initiative\", true]]\r\n\t\t},\r\n\t\t\"fighting style\" : function () {\r\n\t\t\tvar FSfea = newObj(ClassList.ranger.features[\"fighting style\"]);\r\n\t\t\tFSfea.source = [\"UA:RR\", 3];\r\n\t\t\treturn FSfea;\r\n\t\t}(),\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"UA:RR\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can cast ranger spells that I know, using Wisdom as my spellcasting ability\"),\r\n\t\t\tadditional : [\"\", \"2 spells known\", \"3 spells known\", \"3 spells known\", \"4 spells known\", \"4 spells known\", \"5 spells known\", \"5 spells known\", \"6 spells known\", \"6 spells known\", \"7 spells known\", \"7 spells known\", \"8 spells known\", \"8 spells known\", \"9 spells known\", \"9 spells known\", \"10 spells known\", \"10 spells known\", \"11 spells known\", \"11 spells known\"]\r\n\t\t},\r\n\t\t\"primeval awareness\" : {\r\n\t\t\tname : \"Primeval Awareness\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I haven't attacked a beast within the last 10 min, I can communicate with it\",\r\n\t\t\t\t\"As an action, I convey simple ideas, and read mood, intent, emotions, needs, etc.\",\r\n\t\t\t\t\"By concentrating for 1 min, I know if any of my favored enemies are within 5 miles\",\r\n\t\t\t\t\"Per group, I sense the number, general direction, distance, and type of favored enemy\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (communicate)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ranger Conclave\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose a Ranger Conclave you strive to emulate and put it in the \"Class\" field',\r\n\t\t\t\t\"Choose either Beast Conclave, Deep Stalker Conclave or Hunter Conclave\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"greater favored enemy\" : {\r\n\t\t\tname : \"Greater Favored Enemy\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a greater favored enemy',\r\n\t\t\t\t\"Choose from aberrations, celestials, constructs, dragons, elementals, fiends, or giants\",\r\n\t\t\t\t\"I get all the bonuses from Favored Enemy for this creature type as well\",\r\n\t\t\t\t\"Additionally, I have adv. on saves vs. spells and abilities of this greater favored enemy\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"+4 weapon attack damage\",\r\n\t\t\tchoices : [\"Aberrations\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fiends\", \"Giants\"],\r\n\t\t\t\"aberrations\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Aberrations\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against aberrations\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by aberrations\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of aberrations\"] }\r\n\t\t\t},\r\n\t\t\t\"celestials\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Celestials\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against celestials\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by celestials\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of celestials\"] }\r\n\t\t\t},\r\n\t\t\t\"constructs\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Constructs\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against constructs\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by constructs\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of constructs\"] }\r\n\t\t\t},\r\n\t\t\t\"dragons\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Dragons\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against dragons\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by dragons\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of dragons\"] }\r\n\t\t\t},\r\n\t\t\t\"elementals\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Elementals\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against elementals\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by elementals\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of elementals\"] }\r\n\t\t\t},\r\n\t\t\t\"fiends\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Fiends\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against fiends\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by fiends\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of fiends\"] }\r\n\t\t\t},\r\n\t\t\t\"giants\" : {\r\n\t\t\t\tname : \"Greater Favored Enemy: Giants\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The bonuses I get from Favored Enemy now also work against giants\",\r\n\t\t\t\t\t\"Additionally, I have advantage on saves against spells and abilities used by giants\",\r\n\t\t\t\t]),\r\n\t\t\t\tsavetxt : { adv_vs : [\"spells/abilities of giants\"] }\r\n\t\t\t},\r\n\t\t\tlanguageProfs : [1]\r\n\t\t},\r\n\t\t\"fleet of foot\" : {\r\n\t\t\tname : \"Fleet of Foot\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"I can take the Dash action as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"hide in plain sight\" : {\r\n\t\t\tname : \"Hide in Plain Sight\",\r\n\t\t\tsource : [[\"UA:RR\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I hide on my turn without moving, others take -10 Wis (Perception) to find me\",\r\n\t\t\t\t\"This lasts until something reveals my presence, or until I (voluntarily) move/fall prone\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"vanish\" : {\r\n\t\t\tname : \"Vanish\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can't be nonmagically tracked if I don't want to be and can Hide as a bonus action\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"feral senses\" : {\r\n\t\t\tname : \"Feral Senses\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When not blinded or deafened, I'm aware of invisible, non-hidden creatures in 30 ft\",\r\n\t\t\t\t\"I don't have disadvantage when attacking creatures I am aware of but can't see\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"foe slayer\" : {\r\n\t\t\tname : \"Foe Slayer\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc(\"Once per turn, I can add Wis mod to the attack or damage roll after I see the die roll\")\r\n\t\t}\r\n\t}\r\n};\r\n\r\nAddSubClass(\"rangerua\", \"beast master-ua\", {\r\n\tregExpSearch : /^(?=.*(animal|beast))((?=.*(master|ranger|strider))|((?=.*(nature|natural))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Beast Conclave\",\r\n\tsource : [[\"UA:RR\", 5]],\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Animal Companion\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I call an animal by spending 8 hours and 50 gp; I can revive it with 8 hours and 25 gp\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"+1 HD for companion\", \"+2 HD for companion\", \"+3 HD for companion\", \"+4 HD for companion\", \"+5 HD for companion\", \"+6 HD for companion\", \"+7 HD for companion\", \"+8 HD for companion\", \"+9 HD for companion\", \"+10 HD for companion\", \"+11 HD for companion\", \"+12 HD for companion\", \"+13 HD for companion\", \"+14 HD for companion\", \"+15 HD for companion\", \"+16 HD for companion\", \"+17 HD for companion\"],\r\n\t\t\tcreaturesAdd : [[\"Animal Companion\", false, function(AddRemove, prefix) {\r\n\t\t\t\tif (!AddRemove) return;\r\n\t\t\t\tvar compOptions = [\"Ape\", \"Black Bear\", \"Boar\", \"Giant Badger\", \"Giant Weasel\", \"Mule\", \"Panther\", \"Wolf\"];\r\n\t\t\t\tvar selectedRace = AskUserOptions(\"Select Animal Companion\", \"Select which beast you would like to have as your animal companion.\\nYou can change the beast at any time using the \\\"Companion Options\\\" button at the top of the Companion page.\", compOptions, \"radio\", true);\r\n\t\t\t\tApplyCompRace(selectedRace, prefix, \"companionrr\");\r\n\t\t\t}]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Companion's Bond\",\r\n\t\t\tsource : [[\"UA:RR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"My companion gains several benefits, see the Companion's sheet\")\r\n\t\t},\r\n\t\t\"subclassfeature5\" : {\r\n\t\t\tname : \"Coordinated Attack\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription: desc(\"If I take the Attack action, my companion can use its reaction to make a melee attack\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Beast's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"While my companion can see me, it has advantage on all saving throws\")\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Storm of Claws and Fangs\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"My companion can, as an action, make melee attacks vs. all creatures within 5 ft of it\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Superior Beast's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 6]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"My companion can, as a reaction, halve an attack's damage from attacker that it sees\")\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Beast Conclave's Animal Companion as a companion option\r\nCompanionList.companionrr = {\r\n\tname : \"Animal Companion\",\r\n\tnameTooltip : \"Beast Conclave: Animal Companion\",\r\n\tnameOrigin : \"Beast Conclave 3\",\r\n\tnameMenu : \"Animal Companion (Beast Conclave feature)\",\r\n\tsource : [[\"UA:RR\", 5]],\r\n\tincludeCheck : function(sCrea, objCrea, iCreaCR) {\r\n\t\t// Only specific animals\r\n\t\treturn /^(ape|black bear|boar|giant badger|giant weasel|mule|panther|wolf)$/i.test(sCrea);\r\n\t},\r\n\tattributesAdd : {\r\n\t\theader : \"Companion\",\r\n\t\tminlevelLinked : [\"rangerua\", \"ranger\", \"spell-less ranger\"],\r\n\t\tattacksAction : 1,\r\n\t\tproficiencyBonusLinked : true,\r\n\t\tfeatures : [{\r\n\t\t\tname : \"Coordinated Attack\",\r\n\t\t\tdescription : \"As a reaction when the ranger owner takes the Attack action, the companion can make one melee attack.\",\r\n\t\t\tminlevel : 5\r\n\t\t}, {\r\n\t\t\tname : \"Storm of Claws and Fangs\",\r\n\t\t\tdescription : \"As an action, the companion can make a melee attack against each creature that is within 5 ft.\",\r\n\t\t\tminlevel : 11\r\n\t\t}, {\r\n\t\t\tname : \"Superior Beast's Defense\",\r\n\t\t\tdescription : \"As a reaction, the companion can halve the damage of an attack from an attacker that it can see.\",\r\n\t\t\tminlevel : 15\r\n\t\t}],\r\n\t\thdLinked : function(prefix) {\r\n\t\t\tvar iTotalHD = CurrentCompRace[prefix] && CurrentCompRace[prefix].hd ? CurrentCompRace[prefix].hd[0] : 0;\r\n\t\t\tvar bRngLvls = false;\r\n\t\t\t[\"rangerua\", \"ranger\", \"spell-less ranger\"].forEach(function (n) {\r\n\t\t\t\tif (classes.known[n]) {\r\n\t\t\t\t\tbRngLvls = true;\r\n\t\t\t\t\tiTotalHD += classes.known[n].level > 3 ? classes.known[n].level - 3 : 0;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tif (!bRngLvls && classes.totallevel > 3) iTotalHD += classes.totallevel - 3;\r\n\t\t\treturn iTotalHD;\r\n\t\t}\r\n\t},\r\n\tnotes : [{\r\n\t\tname : \"Call forth and bond with an animal\",\r\n\t\tdescription : \"from the wilderness by spending 8 hours and 50 gp\",\r\n\t\tjoinString : \" \"\r\n\t}, {\r\n\t\tname : \"I can have one companion at a time\",\r\n\t\tdescription : \"If it dies, I can spend 8 hours and 25 gp to bring it back\",\r\n\t\tjoinString : \"; \"\r\n\t}, {\r\n\t\tname : \"Companion's Bond\",\r\n\t\tdescription : [\r\n\t\t\t\"It obeys my commands as best it can, or acts on its own if I can't command it\",\r\n\t\t\t\"When moving stealthily together with only my companion, we can move at a normal pace\",\r\n\t\t\t\"It uses my Proficiency Bonus instead of its own and adds this to its AC and damage rolls\",\r\n\t\t\t\"My companion gains proficiency with 2 skills of my choice (not automated), as well as all saves\",\r\n\t\t\t\"It gains a HD (and thus HP) for every ranger level I gain after 3rd, and an ASI whenever I do\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : typePF ? \": \" : \"\\n   \"\r\n\t}, {\r\n\t\tname : \"In Combat\",\r\n\t\tdescription : [\r\n\t\t\t\"My companion rolls for initiative and takes actions as normal, but can't use Multiattack\",\r\n\t\t\t\"My companion gains a bonus on damage rolls against my favored enemies just like me\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : typePF ? \": \" : \":\\n   \"\r\n\t}, {\r\n\t\tname : \"Coordinated Attack (Beast Conclave 5, UA:RR 6)\",\r\n\t\tdescription : \"When I take the Attack action, my companion can use its reaction to make one melee attack\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 5\r\n\t}, {\r\n\t\tname : \"Beast's Defense (Beast Conclave 7, UA:RR 6)\",\r\n\t\tdescription : \"While my companion can see me, it has advantage on all saving throws\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 7\r\n\t}, {\r\n\t\tname : \"Storm of Claws and Fangs (Beast Conclave 11, UA:RR 6)\",\r\n\t\tdescription : \"My companion can, as an action, make a melee attack vs. all creatures within 5 ft of it\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 11\r\n\t}, {\r\n\t\tname : \"Superior Beast's Defense (Beast Conclave 15, UA:RR 6)\",\r\n\t\tdescription : \"My companion can, as a reaction, halve the damage of an attack from an attacker that it sees\",\r\n\t\tjoinString : \"\\n   \",\r\n\t\tminlevel : 15\r\n\t}],\r\n\tattributesChange : function(sCrea, objCrea) {\r\n\t\t// Add Prof to attack damage\r\n\t\tfor (var i = 0; i < objCrea.attacks.length; i++) {\r\n\t\t\tvar oAtk = objCrea.attacks[i];\r\n\t\t\tif (!oAtk.modifiers) {\r\n\t\t\t\toAtk.modifiers = [\"\", \"Prof\"];\r\n\t\t\t} else {\r\n\t\t\t\toAtk.modifiers[1] += \"+Prof\";\r\n\t\t\t}\r\n\t\t\tif (oAtk.description) { // Remove multiattack\r\n\t\t\t\toAtk.description = oAtk.description.replace(/(((One|Two|2).+as an Attack action)|(2 per Attack));? ?/i, '');\r\n\t\t\t}\r\n\t\t};\r\n\t\t// Remove multiattack trait/feature/action\r\n\t\t[\"traits\", \"features\", \"actions\"].forEach(function (n) {\r\n\t\t\tif (!objCrea[n]) return;\r\n\t\t\tfor (var i = objCrea[n].length - 1; i > -1; i--) {\r\n\t\t\t\tvar oN = objCrea[n][i];\r\n\t\t\t\tif (oN.name && /multiattack/i.test(oN.name)) {\r\n\t\t\t\t\tobjCrea[n].splice(i, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t\t// Proficient with all saving throws\r\n\t\tvar aSaves = objCrea.saves ? objCrea.saves : [\"\", \"\", \"\", \"\", \"\", \"\"];\r\n\t\tfor (var i = 0; i < aSaves.length; i++) {\r\n\t\t\tvar iProfSave = Math.round((objCrea.scores[i] - 10.5) * 0.5) + objCrea.proficiencyBonus;\r\n\t\t\tif (aSaves[i] === \"\" || aSaves[i] < iProfSave) {\r\n\t\t\t\taSaves[i] = iProfSave;\r\n\t\t\t}\r\n\t\t}\r\n\t\tobjCrea.saves = aSaves;\r\n\t},\r\n\teval : function(prefix, lvl) {\r\n\t\t// Set the alignment to be the same as the main character\r\n\t\tvar iAlignInx = tDoc.getField(\"Alignment\").currentValueIndices;\r\n\t\tif (iAlignInx !== -1) {\r\n\t\t\tPickDropdown(prefix + \"Comp.Desc.Alignment\", iAlignInx);\r\n\t\t} else {\r\n\t\t\tValue(prefix + \"Comp.Desc.Alignment\", What(\"Alignment\"));\r\n\t\t}\r\n\t\t// Set HP to use fixed values\r\n\t\tvar sHPfld = prefix + \"Comp.Use.HP.Max\";\r\n\t\tvar aHPsets = How(sHPfld).split(\",\");\r\n\t\taHPsets[3] = \"fixed\";\r\n\t\tAddTooltip(sHPfld, undefined, aHPsets.toString());\r\n\t\t// Add Prof to the AC, if not already present\r\n\t\tAddToModFld(prefix + \"Comp.Use.AC\", \"Prof\", false, \"Animal Companion\", \"An beast conclave's animal companion adds its proficiency bonus (Prof) to its AC.\");\r\n\t\t// Alert player of things that have to be done manually\r\n\t\tapp.alert({\r\n\t\t\tcMsg : toUni(\"Pick Two Skills\") + \"\\nThe Ranger's Animal Companion that you have just added, gains proficiency with two additional skills to those already selected. Because there is no automation for selecting these proficiencies, please do so manually.\\n\\n\" + toUni(\"Ability Score Improvements\") + \"\\nThe Ranger's Animal Companion gains Ability Score Improvements (ASI) whenever your character gains them. An animal companion can't use these to take feats. There is no automation for adding these ASIs either, so please don't forget to increase the ability scores for the animal companion when you get the reminder pop-up for ASI changes.\\nAlso, remember that any DCs for abilities that the beast possesses are based on ability scores modifier and that they might need to be manually changed when increasing ability scores modifiers.\\nThe 'Notes' section on the companion page automatically keeps track of how many points you can increase the ability scores with and what the base value of those scores are according to the Monster Manual.\",\r\n\t\t\tnIcon : 3,\r\n\t\t\tcTitle : \"Don't forget the Skills and Ability Score Improvements!\"\r\n\t\t});\r\n\t},\r\n\tchangeeval : function (prefix, lvl) {\r\n\t\t// Update the string with the number of Ability Score Improvements (ASI)\r\n\t\tvar objCreaFnd = CurrentCompRace[prefix];\r\n\t\tif (objCreaFnd.typeFound !== \"creature\" || !CreatureList[objCreaFnd.known]) return;\r\n\t\tvar objCrea = CreatureList[objCreaFnd.known];\r\n\t\tvar iASIs = 0;\r\n\t\tfor (var aClass in classes.known) {\r\n\t\t\tif (!CurrentClasses[aClass].improvements) continue;\r\n\t\t\tvar classLvL = Math.min(CurrentClasses[aClass].improvements.length, classes.known[aClass].level);\r\n\t\t\tiASIs += 2 * CurrentClasses[aClass].improvements[classLvL - 1];\r\n\t\t}\r\n\t\tvar sNote = What(prefix + \"Cnote.Left\");\r\n\t\tvar sNoteNew = sNote;\r\n\t\tif (!iASIs) {\r\n\t\t\tsNoteNew = sNote.replace(/[\\r\\n]? *Currently, \\d+ points.*/, \"\");\r\n\t\t} else {\r\n\t\t\tvar sIncreases = \"Currently, \" + iASIs + \" points to divide \" + (objCrea && objCrea.scores ? \"(default: \" + objCrea.scores[0] + \" Str, \" + objCrea.scores[1] + \" Dex, \" + objCrea.scores[2] + \" Con, \" + objCrea.scores[3] + \" Int, \" + objCrea.scores[4] + \" Wis, \" + objCrea.scores[5] + \" Cha)\" : \"among the ability scores\");\r\n\t\t\tsNoteNew = sNote.replace(/(ASI.*)([\\r\\n]? *Currently, \\d+ points.*)?/, \"$1\\r   \" + sIncreases);\r\n\t\t}\r\n\t\tif (sNote !== sNoteNew) Value(prefix + \"Cnote.Left\", sNoteNew);\r\n\t}\r\n}\r\n\r\nAddSubClass(\"rangerua\", \"hunter-ua\", {\r\n\tregExpSearch : /^(?!.*(monster|barbarian|bard|cleric|druid|fighter|monk|paladin|rogue|sorcerer|warlock|wizard))(?=.*(hunter|huntress|hunts(wo)?m(e|a)n)).*$/i,\r\n\tsubname : \"Hunter Conclave\",\r\n\tsource : [[\"UA:RR\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hunter's Prey\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Choose Colossus Slayer, Giant Killer, or Horde Breaker with the \"Choose Feature\" button'),\r\n\t\t\tchoices : [\"Colossus Slayer\", \"Giant killer\", \"Horde Breaker\"],\r\n\t\t\t\"colossus slayer\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Colossus Slayer\",\r\n\t\t\t\tdescription: desc(\"Once per turn, when hitting someone that is below max HP, I do an extra 1d8 damage\")\r\n\t\t\t},\r\n\t\t\t\"giant killer\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Giant Killer\",\r\n\t\t\t\tdescription: desc(\"As a reaction, when a Large or larger enemy in 5 ft attacks me, I can attack it once\"),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"horde breaker\" : {\r\n\t\t\t\tname : \"Hunter's Prey: Horde Breaker\",\r\n\t\t\t\tdescription: desc(\"Once per turn, when I hit a creature, I can make an attack vs. another within 5 ft of it\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Defensive Tactics\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc('\"Choose Feature\" button to choose Escape the Horde, Multiattack Defense, or Steel Will'),\r\n\t\t\tchoices : [\"Escape the Horde\", \"Multiattack Defense\", \"Steel Will\"],\r\n\t\t\t\"escape the horde\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Escape the Horde\",\r\n\t\t\t\tdescription: desc(\"Creatures attacking me with opportunity attacks have disadvantage on the attack rolls\")\r\n\t\t\t},\r\n\t\t\t\"multiattack defense\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Multiattack Defense\",\r\n\t\t\t\tdescription: desc(\"When a creature hits me, I gain +4 AC against that creature for the rest of the turn\")\r\n\t\t\t},\r\n\t\t\t\"steel will\" : {\r\n\t\t\t\tname : \"Defensive Tactic: Steel Will\",\r\n\t\t\t\tdescription: desc(\"I have advantage on saves against being frightened\"),\r\n\t\t\t\tsavetxt : { adv_vs : [\"frightened\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Multiattack\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc('Choose Volley or Whirlwind Attack using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Volley\", \"Whirlwind Attack\"],\r\n\t\t\t\"volley\" : {\r\n\t\t\t\tname : \"Multiattack: Volley\",\r\n\t\t\t\tdescription: desc(\"As an action, I can make ranged attacks vs. all within a 10-ft radius of a point in range\"),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"whirlwind attack\" : {\r\n\t\t\t\tname : \"Multiattack: Whirlwind Attack\",\r\n\t\t\t\tdescription: desc(\"As an action, I can make melee attacks vs. all creatures within 5 ft of me\"),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Superior Hunter's Defense\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc('\"Choose Feature\" button to choose Evasion, Stand Against the Tide, or Uncanny Dodge'),\r\n\t\t\tchoices : [\"Evasion\", \"Stand Against the Tide\", \"Uncanny Dodge\"],\r\n\t\t\t\"evasion\" : {\r\n\t\t\t\tname : \"Evasion\",\r\n\t\t\t\tdescription: desc(\"My Dexterity saves vs. areas of effect negate damage on success and halve it on failure\"),\r\n\t\t\t\tsavetxt : { text : [\"Dex save vs. area effects: fail \\u2015 half dmg, success \\u2015 no dmg\"] }\r\n\t\t\t},\r\n\t\t\t\"stand against the tide\" : {\r\n\t\t\t\tname : \"Stand Against the Tide\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"When a creature misses me with a melee attack, I can use my reaction on the attack\",\r\n\t\t\t\t\t\"I force the attacker to repeat it vs. another (not attacker) of my choice within range\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"uncanny dodge\" : {\r\n\t\t\t\tname : \"Uncanny Dodge\",\r\n\t\t\t\tdescription: desc(\"As a reaction, I halve the damage of an attack from an attacker that I can see\"),\r\n\t\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"rangerua\", \"deep stalker-ua\", {\r\n\tregExpSearch : /^(?=.*deep)(?=.*stalker).*$/i,\r\n\tsubname : \"Deep Stalker Conclave\",\r\n\tsource : [[\"UA:RR\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Underdark Scout\",\r\n\t\t\tsource : [[\"UA:RR\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"In the first turn of combat I have +10 ft speed and +1 attack with the Attack action\",\r\n\t\t\t\t\"When I'm hiding or trying to hide, others gain no benefit from darkvision to detect me\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Deep Stalker Magic\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have 90 ft darkvision (or +30 ft) and gain extra known spells at level 3, 5, 9, 13, 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"disguise self\", \"rope trick\", \"glyph of warding\", \"greater invisibility\", \"seeming\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tvision : [[\"Darkvision\", \"fixed 90\"], [\"Darkvision\", \"+30\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Iron Mind\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I am proficient with Wisdom saving throws\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Stalker's Flurry\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Once during my turn when I miss an attack, I can immediately make an extra attack\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Stalker's Dodge\",\r\n\t\t\tsource : [[\"UA:RR\", 8]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I'm attacked without adv., I can impose disadv. on the attack roll\"),\r\n\t\t\taction : [[\"reaction\", \" (when attacked)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// By popular demand, the XGtE, TCoE, FToD ranger subclasses, if they exist, are added as an option to the Revised Ranger\r\n// Note that there are no rules by WotC that support doing this!\r\nvar UARR_AddRangerSubclassesToRevisedRanger = function() {\r\n\tvar aSources = [\"X\", \"T\", \"FToD\"];\r\n\tvar aRngrSubs = ClassList.ranger.subclasses[1];\r\n\tfor (var i = 0; i < aRngrSubs.length; i++) {\r\n\t\tvar sSub = aRngrSubs[i];\r\n\t\tvar oSub = ClassSubList[sSub];\r\n\t\tif (!oSub || !oSub.source || ClassList.rangerua.subclasses[1].indexOf(sSub) !== -1) continue;\r\n\t\tvar sSubSrc = isArray(oSub.source[0]) ? oSub.source[0][0] : oSub.source[0];\r\n\t\tif (aSources.indexOf(sSubSrc) === -1) continue;\r\n\t\tClassList.rangerua.subclasses[1].push(sSub);\r\n\t}\r\n}();\r\n"
  },
  {
    "path": "WotC material/ua_20161107_Barbarian-Primal-Paths.js",
    "content": "var iFileName = \"ua_20161107_Barbarian-Primal-Paths.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Barbarian Primal Paths article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BPP\"] = {\r\n\tname : \"Unearthed Arcana: Barbarian Primal Paths\",\r\n\tabbreviation : \"UA:BPP\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Barbarian.pdf\",\r\n\tdate : \"2016/11/07\"\r\n};\r\n\r\n// A three subclasses for the Barbarian\r\nAddSubClass(\"barbarian\", \"ancestral guardian-ua\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"UA:BPP\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action while raging, I can choose a creature within 5 ft of me that I can see\",\r\n\t\t\t\t\"The creature has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"If it takes the Disengage action within 5 feet of me, its speed is halved for its turn\",\r\n\t\t\t\t\"This lasts until the start of my next turn or my rage ends, whichever comes \",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Ancestral Shield\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm raging, I can transfer my resistance to an ally I can see within 30 ft of me\",\r\n\t\t\t\t\"As a reaction when an ally takes bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\"My ally keeps the resistance, and I lose it, until the start of my next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can consult my ancestral spirits to give myself advantage on a Int or Wis check\"),\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"UA:BPP\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm raging, I can have my vengeful ancestors attack for 2d8 force damage\",\r\n\t\t\t\t\"As a reaction when I or an ally I can see within 30 feet of me is damaged in melee\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"storm herald-ua\", {\r\n\tregExpSearch : /^(?=.*storm)(?=.*herald).*$/i,\r\n\tsubname : \"Path of the Storm Herald\",\r\n\tsubnameShort: \"Storm Herald\",\r\n\tfullname : \"Storm Herald\",\r\n\tsource : [[\"UA:BPP\", 2]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Storm Aura\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the aura',\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Desert\", \"Sea\", \"Tundra\"],\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm of Fury: Desert\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"Any enemy that ends its turn in my aura takes fire damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2 fire damage\", \"3 fire damage\", \"3 fire damage\", \"3 fire damage\", \"3 fire damage\", \"4 fire damage\", \"4 fire damage\", \"4 fire damage\", \"4 fire damage\", \"5 fire damage\", \"5 fire damage\", \"5 fire damage\", \"5 fire damage\", \"6 fire damage\", \"6 fire damage\", \"6 fire damage\", \"6 fire damage\", \"7 fire damage\"]\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm of Fury: Sea\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"At the end of each of my turns, I can choose a creature in my aura, other than myself\",\r\n\t\t\t\t\t\"It must make a Dex save or take lightning damage, or half damage on a successful save\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Constitution modifier\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"2d6\", \"3d6\", \"3d6\", \"3d6\", \"3d6\", \"3d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\", \"4d6\"],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"turn\"\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm of Fury: Tundra\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I emanate a 10-ft radius aura that shapes the environment around me\",\r\n\t\t\t\t\t\"Any enemy that ends its turn in my aura takes cold damage\",\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : [\"\", \"\", \"2 cold damage\", \"3 cold damage\", \"3 cold damage\", \"3 cold damage\", \"3 cold damage\", \"4 cold damage\", \"4 cold damage\", \"4 cold damage\", \"4 cold damage\", \"5 cold damage\", \"5 cold damage\", \"5 cold damage\", \"5 cold damage\", \"6 cold damage\", \"6 cold damage\", \"6 cold damage\", \"6 cold damage\", \"7 cold damage\"]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{\r\n\t\t\t\tfeature : \"subclassfeature6\"\r\n\t\t\t}, {\r\n\t\t\t\tfeature : \"subclassfeature14\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Storm Soul\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Storm Soul: Desert\",\r\n\t\t\t\tdescription: desc(\"I have resistance to fire damage and don't suffer the effects of extreme heat\"),\r\n\t\t\t\tdmgres : [\"Fire\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme heat\"] }\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Storm Soul: Sea\",\r\n\t\t\t\tdescription: desc(\"I have resistance to lightning damage and can breathe underwater\"),\r\n\t\t\t\tdmgres : [\"Lightning\"]\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Storm Soul: Tundra\",\r\n\t\t\t\tdescription: desc(\"I have resistance to cold damage and don't suffer the effects of extreme cold\"),\r\n\t\t\t\tdmgres : [\"Cold\"],\r\n\t\t\t\tsavetxt : { immune : [\"effects of extreme cold\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Shield of the Storm\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While I'm raging, allies within my aura gain the benefits of my Storm Soul feature\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Raging Storm\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the effect'),\r\n\t\t\tchoices : [\"desert\", \"sea\", \"tundra\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"desert\" : {\r\n\t\t\t\tname : \"Raging Storm: Desert\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Enemy in my aura move more than 5 ft on the ground must make a Strength save\",\r\n\t\t\t\t\t\"On a fail, it moves only 5 ft and its speed drops to 0 until the start of its next turn\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Constitution modifier\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"sea\" : {\r\n\t\t\t\tname : \"Raging Storm: Sea\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"Creatures in my aura hit by my attack must make a Str save or be knocked prone\",\r\n\t\t\t\t\t\"The DC for this save is 8 + my proficiency bonus + my Strength modifier\",\r\n\t\t\t\t]),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.barbarian && classes.known.barbarian.level > 13 && (/\\brage\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Str save or knocked prone';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"If I include the word 'Rage' in a melee weapon's name, it will show in its description that it forces targets that are hit to make a Strength saving throw or be knocked prone.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"tundra\" : {\r\n\t\t\t\tname : \"Raging Storm: Tundra\",\r\n\t\t\t\tdescription: desc(\"The area within my aura is difficult terrain for my enemies\")\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"barbarian\", \"zealot-ua\", {\r\n\tregExpSearch : /zealot/i,\r\n\tsubname : \"Path of the Zealot\",\r\n\tsubnameShort: \"Zealot\",\r\n\tfullname : \"Zealot\",\r\n\tsource : [[\"UA:BPP\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Divine Fury\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, I can become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t'Choose a damage type using the \"Choose Feature\" button above',\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"1d6+1\", \"1d6+2\", \"1d6+2\", \"1d6+3\", \"1d6+3\", \"1d6+4\", \"1d6+4\", \"1d6+5\", \"1d6+5\", \"1d6+6\", \"1d6+6\", \"1d6+7\", \"1d6+7\", \"1d6+8\", \"1d6+8\", \"1d6+9\", \"1d6+9\", \"1d6+10\"],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"turn\",\r\n\t\t\tchoices : [\"Necrotic Damage\", \"Radiant Damage\"],\r\n\t\t\t\"necrotic damage\" : {\r\n\t\t\t\tname : \"Divine Fury: Necrotic\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t\t\"At the end of my turn, each creature within 5 feet of me takes necrotic damage\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"radiant damage\" : {\r\n\t\t\t\tname : \"Divine Fury: Radiant\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"While raging, I become cloaked in an aura of divine power until my rage ends\",\r\n\t\t\t\t\t\"At the end of my turn, each creature within 5 feet of me takes radiant damage\",\r\n\t\t\t\t]),\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Warrior of the Gods\",\r\n\t\t\tsource : [[\"UA:BPP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Spells restoring me to life (not undeath or anything else) don't need material comp.\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Zealous Focus\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when I fail a saving throw while raging, I can instead succeed on it\",\r\n\t\t\t\t\"Doing so immediately ends my rage and I can't rage again until I finish a short rest\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \" (in Rage)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Zealous Presence\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I howl in fury and unleash a battle cry infused with divine energy\",\r\n\t\t\t\t\"Allies within 60 ft of me gain adv. on attacks and saves until the start of my next turn\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \" (allies within 60 feet)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage Beyond Death\",\r\n\t\t\tsource : [[\"UA:BPP\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While raging, having 0 hit points doesn't knock me unconscious\",\r\n\t\t\t\t\"I still must make death saves, and I suffer the normal effects of taking damage\",\r\n\t\t\t\t\"However, if I would die due to failing death saves, I don't die until my rage ends\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20161114_Bard-Colleges.js",
    "content": "var iFileName = \"ua_20161114_Bard-Colleges.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Bard Colleges article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BC\"] = {\r\n\tname : \"Unearthed Arcana: Bard Colleges\",\r\n\tabbreviation : \"UA:BC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Bard.pdf\",\r\n\tdate : \"2016/11/14\"\r\n};\r\n\r\n// Adds 2 subclasses for the Bard\r\nAddSubClass(\"bard\", \"college of glamour-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*glamour).*$/i,\r\n\tsubname : \"College of Glamour\",\r\n\tsubnameShort: \"Glamour\",\r\n\tsource : [[\"UA:BC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Mantle of Inspiration\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I expend one bardic inspiration die to aid those within 60 ft of me\",\r\n\t\t\t\t\"A number of allies equal to my Cha mod gain twice the die roll in temporary HP\",\r\n\t\t\t\t\"They can use a reaction to move their speed toward me, without opportunity attacks\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Enthralling Performance\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By performing for at least 10 minutes, I can charm humanoids within 60 ft of me\",\r\n\t\t\t\t\"At the end of the performance, my Cha mod number of targets must make a Wis save\",\r\n\t\t\t\t\"On a fail, a target is charmed for 1 hour; If success, it doesn't knows I tried to charm it\",\r\n\t\t\t\t\"While charmed, the target idolizes me, hinders those opposing me, and avoids violence\",\r\n\t\t\t\t\"This lasts until a target takes damage, I attack it, or if it sees me attacking its allies\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\tsource : [[\"UA:BC\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I take on an appearance of unearthly beauty for 1 minute\",\r\n\t\t\t\t\"As a bonus action during this time, I can cast Command without using a spell slot\",\r\n\t\t\t\t\"Creatures charmed by me automatically fail their saves against these Command spells\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Mantle of Majesty\",\r\n\t\t\t\tspells : [\"command\"],\r\n\t\t\t\tselection : [\"command\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"command\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tdescription : \"1 crea save (fails save if charmed) or follow one word command, e.g. approach, drop, flee, halt\",\r\n\t\t\t\t\tchanges : \"Using my Mantle of Majesty class feature, I can cast Command as a bonus action once per long rest without using a spell slot, thus only affect a single target.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can cast Sanctuary on myself without using a spell slot\",\r\n\t\t\t\t\"If a creature fails its save to this, I gain adv. on all Cha checks against it for 1 min\",\r\n\t\t\t\t\"In addition, the target has disadv. on saves it makes against my spells on my next turn\",\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Unbreakable Majesty\",\r\n\t\t\t\tspells : [\"sanctuary\"],\r\n\t\t\t\tselection : [\"sanctuary\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sanctuary\" : {\r\n\t\t\t\t\ttime : \"Self\",\r\n\t\t\t\t\tdescription : \"Any trying to atk/target me must save or fail, dis. on save vs. spell I cast next turn, I adv. on Cha vs. it\",\r\n\t\t\t\t\tchanges : \"Using my Unbreakable Majesty class feature, I can cast Sanctuary once per short rest without using a spell slot, but only on myself.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of whispers-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*whispers).*$/i,\r\n\tsubname : \"College of Whispers\",\r\n\tsubnameShort: \"Whispers\",\r\n\tsource : [[\"UA:BC\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Venomous Blades\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I hit with a weapon attack, I can expend a bardic inspiration die to add damage\",\r\n\t\t\t\t\"I roll the inspiration die twice, dealing the total in Poison damage to the target\",\r\n\t\t\t\t\"I can do this no more than once per round on my turn\",\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Venomous Words\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By speaking in private with a humanoid for at least 10 minutes, I can try to frighten it\",\r\n\t\t\t\t\"After the conversation, the target must make a Wisdom save or be frightened of me\",\r\n\t\t\t\t\"If the save is successful, the target doesn't know I try to frighten it\",\r\n\t\t\t\t\"While frightened, the target avoids the company of others, including its allies\",\r\n\t\t\t\t\"The target also tries to hide in the most secret, safest place available to it\",\r\n\t\t\t\t\"This lasts for 1 hour or until it is attacked/damaged, or if it sees me attacking its allies\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mantle of Whispers\",\r\n\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature dies within 5 ft or by my hand, I can capture its shadow\",\r\n\t\t\t\t\"I can use shadows of those with the same type and size as me (or Medium if I'm Small)\",\r\n\t\t\t\t\"I can have only one captured shadow at a time and I can don it as a shadow disguise\",\r\n\t\t\t]),\r\n\t\t\t\"shadow disguise\" : {\r\n\t\t\t\tname : \"Shadow Disguise\",\r\n\t\t\t\textraname : \"Mantle of Whispers\",\r\n\t\t\t\tsource : [[\"UA:BC\", 2]],\r\n\t\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', ' (end)']],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can don a shadow that I captured as a disguise for 1 hour or until I stop it\",\r\n\t\t\t\t\t\"I take on the creature's appearance and I can access its surface memories, but not secrets\",\r\n\t\t\t\t\t\"I have access to information that it would would freely share with a casual acquaintance\",\r\n\t\t\t\t\t\"This is enough that I can pass myself off as the creature by drawing on its memories\",\r\n\t\t\t\t\t\"Anybody can see through the disguise with a Wis (Insight) check vs. my Cha (Deception) +5\",\r\n\t\t\t\t\t\"The knowledge disappears when the disguise ends\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"shadow disguise\" }]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shadow Lore\",\r\n\t\t\tsource : [[\"UA:BC\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I whisper to a creature within 30 ft that can hear and understand me\",\r\n\t\t\t\t\"Only the target can hear me; It must make a Wisdom save or be charmed by me\",\r\n\t\t\t\t\"If failed, it thinks I know its most mortifying secret, otherwise it only hears mumbling\",\r\n\t\t\t\t\"While charmed, the target obeys my commands, but won't risk its life or fight for me\",\r\n\t\t\t\t\"This lasts for 8 hours or until I or my allies attack or damage it\",\r\n\t\t\t\t\"When the effect ends, the target has no idea why it was so afraid of me\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20161121_Cleric-Divine-Domains.js",
    "content": "var iFileName = \"ua_20161121_Cleric-Divine-Domains.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Cleric Divine Domains article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CDD\"] = {\r\n\tname : \"Unearthed Arcana: Cleric Divine Domains\",\r\n\tabbreviation : \"UA:CDD\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Cleric.pdf\",\r\n\tdate : \"2016/11/21\"\r\n};\r\n\r\n// Adds 3 subclasses for the Cleric\r\nAddSubClass(\"cleric\", \"forge domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(forge|forgery|blacksmith)).*$/i,\r\n\tsubname : \"Forge Domain\",\r\n\tsource : [[\"UA:CDD\", 1]],\r\n\tspellcastingExtra : [\"searing smite\", \"shield\", \"heat metal\", \"magic weapon\", \"elemental weapon\", \"protection from energy\", \"fabricate\", \"wall of fire\", \"animate objects\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Blessing of the Forge\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"At the end of a long rest, I can imbue magic into a nonmagical weapon or armor\",\r\n\t\t\t\t\"It becomes magical: +1 AC if armor, or +1 to attack and damage rolls if a weapon\",\r\n\t\t\t\t\"This lasts until the end of my next long rest\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Artisan's Blessing\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"During a short rest, I can conduct a ritual to craft an item that is at least part metal\",\r\n\t\t\t\t\"The object can be worth up to 100 gp, and I must expend metals of equal value to it\",\r\n\t\t\t\t\"The item can be an exact duplicate of a nonmagical item if I possess the original\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Forge\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"+6 force damage\", \"+7 force damage\", \"+8 force damage\", \"+9 force damage\", \"+10 force damage\", \"+11 force damage\", \"+12 force damage\", \"+13 force damage\", \"+14 force damage\", \"+15 force damage\", \"+16 force damage\", \"+17 force damage\", \"+18 force damage\", \"+19 force damage\", \"+20 force damage\"],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain a +1 AC while wearing medium or heavy armor, and resistance to fire damage\",\r\n\t\t\t\t\"When I hit a construct with an attack, I deal my cleric level in additional force damage\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Fire\"],\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm wearing medium or heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.heavyArmor && !v.mediumArmor; }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 fire damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 fire damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra fire damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Saint of Forge and Fire\",\r\n\t\t\tsource : [[\"UA:CDD\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain immunity to fire damage\",\r\n\t\t\t\t\"If wearing heavy armor, I'm resistant to nonmagical bludg./piercing/slashing damage\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"fire\"] },\r\n\t\t\tdmgres : [[\"Bludgeoning\", \"Bludg. (nonmagical)\"], [\"Piercing\", \"Pierc. (nonmagical)\"], [\"Slashing\", \"Slash. (nonmagical)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"grave domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(grave)).*$/i,\r\n\tsubname : \"Grave Domain\",\r\n\tsource : [[\"UA:CDD\", 2]],\r\n\tspellcastingExtra : [\"bane\", \"false life\", \"gentle repose\", \"ray of enfeeblement\", \"revivify\", \"vampiric touch\", \"blight\", \"death ward\", \"antilife shell\", \"raise dead\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Circle of Mortality\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Spells I cast to heal a living creature at 0 HP have their dice count as their max result\",\r\n\t\t\t\t\"As a bonus action, I can cast the Spare the Dying cantrip, if I know it\",\r\n\t\t\t]),\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"spare the dying\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\trange : \"Touch\",\r\n\t\t\t\t\tchanges : \"I can cast spare the dying as a bonus action instead of an action.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Eyes of the Grave\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"By spending 1 min in uninterrupted contemplation, I sense undead within 1 mile\",\r\n\t\t\t\t\"I learn their number, distance, and direction from me\",\r\n\t\t\t\t\"In addition, I know the creature type of the one with the highest CR\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Path to the Grave\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can touch a creature to make it take extra damage from one attack\",\r\n\t\t\t\t\"It is vulnerable to all the damage from the next spell or attack from me or an ally\",\r\n\t\t\t\t\"This only applies to the first time that source inflicts damage, and then ends\",\r\n\t\t\t\t\"If the creature has resistance or is immune to the damage, it instead loses it\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sentinel at Death's Door\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc(\"As a reaction, I turn a critical hit to me or an ally I see within 30 ft to a normal hit\")\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 necrotic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 necrotic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra necrotic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Keeper of Souls\",\r\n\t\t\tsource : [[\"UA:CDD\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per round, if I'm not incapacitated, I can manipulate the energy of the dying\",\r\n\t\t\t\t\"When an enemy I can see dies within 30 ft of me, I or an ally within 30 ft regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the enemy's number of Hit Dice\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"cleric\", \"protection domain-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(protection|protect|defend|defense)).*$/i,\r\n\tsubname : \"Protection Domain\",\r\n\tsource : [[\"UA:CDD\", 3]],\r\n\tspellcastingExtra : [\"compelled duel\", \"protection from evil and good\", \"aid\", \"protection from poison\", \"protection from energy\", \"slow\", \"guardian of faith\", \"otiluke's resilient sphere\", \"antilife shell\", \"wall of force\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Shield of the Faithful\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction, when someone within 5 ft of me is attacked, I impose disadv. on the roll\",\r\n\t\t\t\t\"To do this, I must be able to see both the attacker and the target\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Radiant Defense\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I channel blessed energy into an ally that I can see within 30 ft of me\",\r\n\t\t\t\t\"The first time the ally is hit within the next minute, the attacker takes radiant damage\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"2d10+2\", \"2d10+3\", \"2d10+4\", \"2d10+5\", \"2d10+6\", \"2d10+7\", \"2d10+8\", \"2d10+9\", \"2d10+10\", \"2d10+11\", \"2d10+12\", \"2d10+13\", \"2d10+14\", \"2d10+15\", \"2d10+16\", \"2d10+17\", \"2d10+18\", \"2d10+19\", \"2d10+20\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Blessed Healer\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I restore HP to another with a spell, I regain 2 + the spell (slot) level in HP\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\t// note that several healing spells are not present here because they don't restore hp at casting (only later)\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"life transference\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"Necrotic\", \"Necro\").replace(\", and\", \",\") + \"; I then regain 2+SL HP\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"mass heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = \"Heal 700 HP, split over crea in range, each then +11 HP; also cures blind, deaf, diseases; I heal +11 HP\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"power word heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/heals all.*/i, \"full HP; not charmed, frightened, paralyzed, stunned; can stand up as rea; if other, I heal 2+SL\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"regenerate\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\" for rest of duration\", \"\");\r\n\t\t\t\t\t\t\tcase \"heal\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"all diseases\", \"diseases\");\r\n\t\t\t\t\t\t\tcase \"cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"healing word\" :\r\n\t\t\t\t\t\t\tcase \"mass cure wounds\" :\r\n\t\t\t\t\t\t\tcase \"mass healing word\" :\r\n\t\t\t\t\t\t\tcase \"prayer of healing\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/creatures?/i, \"crea\").replace(\"within\", \"in\").replace(\"spellcasting ability modifier\", \"spellcasting ability mod\") + \"; if other, I heal 2+SL\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast a spell that restores hit points to another creature than myself at the moment of casting, I also heal 2 + the level of the spell slot (or spell slot equivalent) hit points.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 radiant damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra radiant damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Indomitable Defense\",\r\n\t\t\tsource : [[\"UA:CDD\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \" (transfer)\"], ['bonus action', ' (return)']],\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain resistance to two of: bludgeoning, necrotic, piercing, radiant, or slashing damage\",\r\n\t\t\t\t\"Whenever I finish a short or long rest, I can change the damage types chosen\",\r\n\t\t\t\t\"As an action, I can transfer both resistances to one creature I touch\",\r\n\t\t\t\t\"As a bonus action, I can transfer the resistances back to myself\",\r\n\t\t\t\t\"Otherwise, the creature keeps this resistance until the end of my next short or long rest\",\r\n\t\t\t]),\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20161128_Druid-Circles.js",
    "content": "var iFileName = \"ua_20161128_Druid-Circles.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Druid Circles article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:DC\"] = {\r\n\tname : \"Unearthed Arcana: Druid Circles\",\r\n\tabbreviation : \"UA:DC\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UA_Druid11272016_CAWS.pdf\",\r\n\tdate : \"2016/11/28\"\r\n};\r\n\r\n// Adds 3 subclasses for the Druid\r\nAddSubClass(\"druid\", \"circle of dreams-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*\\bdreams\\b).*$/i,\r\n\tsubname : \"Circle of Dreams\",\r\n\tsubnameShort: \"Dreams\",\r\n\tsource : [[\"UA:DC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Balm of the Summer Court\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have a pool of fey energy represented by a number of d6s equal to my druid level\",\r\n\t\t\t\t\"As a bonus action, I can spend dice to heal an ally within 120 ft of me that I can see\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"The ally heals an amount equal to the total rolled and gains 1 temp HP per die spent\",\r\n\t\t\t\t\"In addition, the ally gains +5 ft speed per die spent, which lasts for 1 minute\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) { return n < 2 ? \"\" : n + \"d6 per \"; }),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Hearth of Moonlight and Shadow\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of a short or long rest, I can create a warded area of 30-ft radius\",\r\n\t\t\t\t\"Within this area, my allies and I gain +5 on Wis (Perception) checks to detect creatures\",\r\n\t\t\t\t\"Also, any light from open flames is not visible from outside the area\",\r\n\t\t\t\t\"This effect lasts until the end of the rest or when I leave the area\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hidden Paths\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"On my turn, I can teleport up to 30 ft to where I can see; Moved distance costs speed\",\r\n\t\t\t\t\"As an action, I can teleport a willing ally I touch up to 30 ft to a spot I can see\",\r\n\t\t\t\t\"Once I used either option, I can't use this feature again until 1d4 rounds have passed\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"1d4 rounds\",\r\n\t\t\taction : [[\"action\", \" (on ally)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Purifying Light\",\r\n\t\t\tsource : [[\"UA:DC\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot with a spell to restores HP, I can use Dispel Magic on the target\",\r\n\t\t\t\t\"The Dispel Magic counts as if being cast with the same spell slot as the healing spell\",\r\n\t\t\t\t\"Each creature effected by the Dispel Magic costs as one use of this feature\"\r\n\t\t\t]),\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of the shepherd-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"UA:DC\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Beast Speech\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Bond\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can summon a spirit to an empty space within 60 ft that I can see\",\r\n\t\t\t\t\"The Bear, Hawk, or Wolf spirit, creates a 30-ft radius aura and persist for 1 minute\",\r\n\t\t\t\t\"It doesn't occupy space, is immobile, and counts as neither a creature nor an object\",\r\n\t\t\t\t\"\\u2022 Bear: my allies in the area and I instantly gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"   While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: my allies and I gain advantage on attacks against targets in the aura\",\r\n\t\t\t\t\"\\u2022 Wolf: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"   If I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"Beast I summon with my spells have +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that restores hit points, it restores an additional 2 + the level of the spell slot (or spell slot equivalent) used to cast the spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Whenever I finish a long rest, I gain the benefits of a Death Ward spell for 24 hours\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Guardian Spirit\",\r\n\t\t\t\tspells : [\"death ward\"],\r\n\t\t\t\tselection : [\"death ward\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"death ward\" : {\r\n\t\t\t\t\trange : \"Self\",\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Once, when I drops to 0 HP I drops to 1 HP instead; or negates first instantaneous kill effect\",\r\n\t\t\t\t\tduration : \"24 h\",\r\n\t\t\t\t\tchanges : \"Whenever I finish a long rest, I gain the benefits of a Death Ward spell for 24 hours.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"UA:DC\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can summon protectors\",\r\n\t\t\t\t\"I gain the benefits of a Conjure Animals spell as if cast with a 9th-level spell slot\",\r\n\t\t\t\t\"It summons 4 beast of my choice with CR 2 or lower within 20 ft of me for 1 hour\",\r\n\t\t\t\t\"If they receive no commands from me, they protect me from harm and attack foes\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"druid\", \"circle of twilight-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*twilight).*$/i,\r\n\tsubname : \"Circle of Twilight\",\r\n\tsubnameShort: \"Twilight\",\r\n\tsource : [[\"UA:DC\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Harvest's Scythe\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I have a pool of energy represented by a number of d10s equal to my druid level\",\r\n\t\t\t\t\"When I roll damage for a spell, I can do extra necrotic damage with dice from the pool\",\r\n\t\t\t\t\"I can spend up to half my druid level worth of dice from the pool at once\",\r\n\t\t\t\t\"If I any hostiles die from an augmented spell, I can heal one ally I can see within 30 ft\",\r\n\t\t\t\t\"The ally regains 2 HP per die spent; or 5 HP per die if one of the slain was undead\",\r\n\t\t\t]),\r\n\t\t\tusages : [\"\", \"2d10 per \", \"3d10 per \", \"4d10 per \", \"5d10 per \", \"6d10 per \", \"7d10 per \", \"8d10 per \", \"9d10 per \", \"10d10 per \", \"11d10 per \", \"12d10 per \", \"13d10 per \", \"14d10 per \", \"15d10 per \", \"16d10 per \", \"17d10 per \", \"18d10 per \", \"19d10 per \", \"20d10 per \"],\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Speech Beyond the Grave\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Once per short rest, I can cast Speak with Dead without spell slots or material comp.\",\r\n\t\t\t\t\"The target and I can understand each other, regardless of language or intelligence\",\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Speech Beyond the Grave\",\r\n\t\t\t\tspells : [\"speak with dead\"],\r\n\t\t\t\tselection : [\"speak with dead\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"speak with dead\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell once per short rest without requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Watcher at the Threshold\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain resistance to necrotic and radiant damage\",\r\n\t\t\t\t\"While I'm not incapacitated, allies within 30 ft of me gain adv. on their death saves\",\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Necrotic\", \"Radiant\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Paths of the Dead\",\r\n\t\t\tsource : [[\"UA:DC\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Once per short rest, I can cast Etherealness without needing a spell slot\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Paths of the Dead\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Paths of the Dead class feature I can cast Etherealness once per short rest without needing a spell slot, thus can only target 1 creature.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20161205_Fighter-Martial-Archetypes.js",
    "content": "var iFileName = \"ua_20161205_Fighter-Martial-Archetypes.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Eberron article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FMA\"] = {\r\n\tname : \"Unearthed Arcana: Fighter Martial Archetypes\",\r\n\tabbreviation : \"UA:FMA\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/2016_Fighter_UA_1205_1.pdf\",\r\n\tdate : \"2016/12/05\"\r\n};\r\n\r\n// Adds 4 subclasses for the Fighter\r\nAddSubClass(\"fighter\", \"arcane archer-ua\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"UA:FMA\", 1]],\r\n\tfullname : \"Arcane Archer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arcane Arrow\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can create one magical arrow that I can fire with a bow\",\r\n\t\t\t\t\"A shot with the arrow counts as magical and does additional force damage on a hit\",\r\n\t\t\t\t\"When I create the arrow, I can apply one of my known Arcane Shots on it\",\r\n\t\t\t\t\"This arrow lasts until the end of my turn or until I hit or miss a target with it\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 18 ? \"+2\" : \"+4\") + \"d6 force damage\";\r\n\t\t\t}),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : ['bonus action', 'Create Magical Arrow'],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((/longbow|shortbow/i).test(v.baseWeaponName) && (/^(?=.*arcane)(?=.*arrow).*$/i).test(v.WeaponTextName) && classes.known.fighter && classes.known.fighter.level) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; +' : '+') + (classes.known.fighter.level < 18 ? 2 : 4) + 'd6 force damage';\r\n\t\t\t\t\t\t\tif (!v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as magical/i).test(fields.Description)) fields.Description += '; Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Arcane Arrow' in a longbow or shortbow's name, it gets an added description of the damage this Arcane Arrow adds.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to add Arcane Shots to the third page'),\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" known\"; }),\r\n\t\t\textraname : \"Arcane Shot\",\r\n\t\t\textrachoices : [\"Beguiling Arrow\", \"Brute Bane Arrow\", \"Bursting Arrow\", \"Defending Arrow\", \"Grasping Arrow\", \"Piercing Arrow\", \"Seeking Arrow\", \"Shadow Arrow\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"beguiling arrow\" : {\r\n\t\t\t\tname : \"Beguiling Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\t\tadditional: \"Enchantment\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, I choose an ally withing 30 feet of the target\",\r\n\t\t\t\t\t\"The target can't attack the chosen ally or include the ally in any harmful area of effects\",\r\n\t\t\t\t\t\"This effect stops if the target is immune to charm effects or the ally damages the target\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"brute bane arrow\" : {\r\n\t\t\t\tname : \"Brute Bane Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\t\tadditional: \"Necromancy\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, the target's attacks deal half damage until the end of my next turn\",\r\n\t\t\t\t\t\"Only attacks that deal bludgeoning, piercing or slashing damage are halved\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"bursting arrow\" : {\r\n\t\t\t\tname : \"Bursting Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Evocation\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, all creatures within 10 ft of the target creature take 2d6 force damage\")\r\n\t\t\t},\r\n\t\t\t\"defending arrow\" : {\r\n\t\t\t\tname : \"Defending Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Abjuration\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, the target has disadv. on its next attack before the end of my next turn\")\r\n\t\t\t},\r\n\t\t\t\"grasping arrow\" : {\r\n\t\t\t\tname : \"Grasping Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Conjuration\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If the arrow hits, the target is wrapped with grasping, thorny brambles for 1 minute\",\r\n\t\t\t\t\t\"The target has -10 ft speed; It takes 2d6 slashing damage when moving more than 1 ft\",\r\n\t\t\t\t\t\"As an action, the target or a creature can remove the brambles with a DC 10 Str check\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"piercing arrow\" : {\r\n\t\t\t\tname : \"Piercing Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Transmutation\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"The arrow transform into an ethereal dart that creates a line of 1 ft wide and 30 ft long\",\r\n\t\t\t\t\t\"I then make a separate attack using my Arcane Arrow against each creature in that line\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"seeking arrow\" : {\r\n\t\t\t\tname : \"Seeking Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Divination\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can make a ranged attack against a creature I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners and obstacles to hit the target\",\r\n\t\t\t\t\t\"The attack ignores 1/2 and 3/4 cover and disadvantage from range or being out of sight\",\r\n\t\t\t\t\t\"The attack misses if the target is too far away or there is no path for the arrow to travel\",\r\n\t\t\t\t\t\"I know if the arrow hits the target, but don't learn the location unless it's in line of sight\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"shadow arrow\" : {\r\n\t\t\t\tname : \"Shadow Arrow\",\r\n\t\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\t\tadditional: \"Illusion\",\r\n\t\t\t\tdescription: desc(\"If the arrow hits, the target can't see beyond 30 ft until the end of my next turn\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Archer's Lore\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills\",\r\n\t\t\t\t\"I can choose from: Arcana, Athletics, Nature, Perception, Stealth, or Survival\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from Arcana, Athletics, Nature, Perception, Stealth, and Survival\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Conjure Arrows\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can create up to 20 nonmagical arrows that remain for 10 minutes\",\r\n\t\t\t\t\"The arrows vanish if I use this feature again with 10 minutes\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Arrow\",\r\n\t\t\tsource : [[\"UA:FMA\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one use of Arcane Arrow one minute after I expend my last remaining use of it\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"knight-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?!.*(exalted|sacred|holy|divine|nature|natural|purple.*dragon|green|fey|horned))(?=.*knight).*$/i,\r\n\tsubname : \"Knight\",\r\n\tsource : [[\"UA:FMA\", 2]],\r\n\tfullname : \"Knight\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement\",\r\n\t\t\t\t\"I have advantage on saving throws made to avoid falling off my mount\",\r\n\t\t\t\t\"If I fall off my mount for less than 10 ft while not incapacitated, I land on my feet\",\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Implacable Mark\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I hit a creature with a melee weapon attack, I mark it until the end of my next turn\",\r\n\t\t\t\t\"A marked target has disadv. on any attacks vs. those that didn't mark it\",\r\n\t\t\t\t\"I can attack the target I marked if it is within 5 ft of me and does one of the following:\",\r\n\t\t\t\t\"\\u2022 It moves at least 1 foot on its turn\",\r\n\t\t\t\t\"\\u2022 It makes an attack that it suffers disadv. on from being marked\",\r\n\t\t\t\t\"This attack uses my reaction, has adv., and adds my fighter level as extra damage\",\r\n\t\t\t\t\"I can still do this if I already used my reaction this round, but not this turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/\\b(implacable.?mark|marked)\\b/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.fighter.level;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Implacable Mark' or 'Marked' in the name of a melee weapon, it gets my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Noble Cavalry\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I gain proficiency with two skills or one language\",\r\n\t\t\t\t\"I can choose the skills from: Animal Handling, History, Insight, Persuasion, and Religion\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"2 Skill proficiencies: Animal Handling, History, Insight, Persuasion, or Religion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Noble Cavalry\",\r\n\t\t\t\tdescription: desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"2 skill proficiencies: animal handling, history, insight, persuasion, or religion\" : {\r\n\t\t\t\tname : \"Noble Cavalry\",\r\n\t\t\t\tdescription: desc(\"I gain 2 skill proficiencies: Animal Handling, History, Insight, Persuasion, or Religion\"),\r\n\t\t\t\tskillstxt : \"Choose two from: Animal Handling, History, Insight, Persuasion, or Religion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Hold the Line\",\r\n\t\t\tsource : [[\"UA:FMA\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature within 5 ft of me moves at least 1 ft, I can attack it\",\r\n\t\t\t\t\"This attack is made with a melee weapon attack and deals extra damage on a hit\",\r\n\t\t\t\t\"If this hits, the attack reduces the target's speed to 0 until the end of this turn\",\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : \"+\" + Math.floor(n / 2) + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && classes.known.fighter && classes.known.fighter.level > 9 && (/holds?.the.line/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.floor(classes.known.fighter.level / 2);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Hold the Line' in the name of a melee weapon, it gets half my fighter level added to its Damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Defender's Blade\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can do opportunity attacks if I already used my reaction this round, but not this turn\",\r\n\t\t\t\t\"I gain a +1 bonus to AC when I'm wearing heavy armor\",\r\n\t\t\t]),\r\n\t\t\textraAC : {\r\n\t\t\t\tmod : 1,\r\n\t\t\t\ttext : \"I gain a +1 bonus to AC while I'm wearing heavy armor.\",\r\n\t\t\t\tstopeval : function (v) { return !v.heavyArmor; }\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"samurai-ua\", {\r\n\tregExpSearch : /samurai/i,\r\n\tsubname : \"Samurai\",\r\n\tsource : [[\"UA:FMA\", 3]],\r\n\tfullname : \"Samurai\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fighting Spirit\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can give myself benefits that last until the end of my next turn\",\r\n\t\t\t\t\"I then gain adv. on my attacks and resistance to bludgeoning/piercing/slashing damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Elegant Courtier\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\"I gain proficiency with either one language or the History, Insight, or Persuasion skill\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: History, Insight, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Elegant Courtier\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\t\"I gain proficiency with one language of my choice\",\r\n\t\t\t\t]),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: history, insight, or persuasion\" : {\r\n\t\t\t\tname : \"Elegant Courtier\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"I can add my Wis modifier to any Cha check to persuade anyone of a high social station\",\r\n\t\t\t\t\t\"I gain proficiency with one skill: History, Insight, or Persuasion\",\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"Choose one from: History, Insight, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Unbreakable Will\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I gain proficiency with Wis saves, or if I'm already proficient, either Int or Cha saves\"),\r\n\t\t\tsaves : [\"Wis\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Strength Before Death\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I take damage that would reduce me to 0 HP, I can delay that damage\",\r\n\t\t\t\t\"I then immediately take a bonus turn, interrupting the current turn\",\r\n\t\t\t\t\"I don't take the delayed damage until the bonus turn ends and can affect that damage\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"sharpshooter-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /sharpshooter/i,\r\n\tsubname : \"Sharpshooter\",\r\n\tsource : [[\"UA:FMA\", 3]],\r\n\tfullname : \"Sharpshooter\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Steady Aim\",\r\n\t\t\tsource : [[\"UA:FMA\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can carefully aim my ranged weapon on a target I can see in range\",\r\n\t\t\t\t\"Until the end of my turn, my attacks with this weapon on that target get to:\",\r\n\t\t\t\t\"Ignore half and three-quarter cover; Add 2 + half fighter level damage per hit\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + (2 + Math.floor(n / 2)) + \" damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isRangedWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/steady.{0,3}aim/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Ignores 1/2 and 3/4 cover';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Steady Aim' in the name of a ranged weapon, it gets 2 + half my fighter level added to its Damage, and the fact that it ignores half and three-quarter cover added to its description.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isRangedWeapon && classes.known.fighter && classes.known.fighter.level > 2 && (/steady.{0,3}aim/i).test(v.WeaponTextName)) { output.extraDmg += 2 + Math.floor(classes.known.fighter.level / 2); };\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Careful Eyes\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I can take the Search action\",\r\n\t\t\t\t\"I gain proficiency with one skill, Perception, Investigation, or Survival\",\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose one from: Perception, Investigation, or Survival\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Close-Quarters Shooting\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I don't have disadvantage when making a ranged attack while within 5 ft of a hostile\",\r\n\t\t\t\t\"A hostile within 5 ft that I hit with a ranged attack on my turn, can't take reactions\",\r\n\t\t\t\t\"This lasts until the end of my turn\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rapid Strike\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"If I have adv. on an attack, I can forgo it to make an extra attack as a bonus action\",\r\n\t\t\t\t\"This attack has to be with the same weapon against the same target\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Snap Shot\",\r\n\t\t\tsource : [[\"UA:FMA\", 4]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"I can make one more ranged attack with my Attack action on my first turn of combat\")\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20161212_Monk-Monastic-Traditions.js",
    "content": "var iFileName = \"ua_20161212_Monk-Monastic-Traditions.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Monk Monastic Traditions article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:MMT\"] = {\r\n\tname : \"Unearthed Arcana: Monk Monastic Traditions\",\r\n\tabbreviation : \"UA:MMT\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/M_2016_UAMonk1_12_12WKWT.pdf\",\r\n\tdate : \"2016/12/12\"\r\n};\r\n\r\n// Adds 2 subclasses for the Monk\r\nAddSubClass(\"monk\", \"way of the kensei-ua\", {\r\n\tregExpSearch : /kensei/i,\r\n\tsubname : \"Way of the Kensei\",\r\n\tsubnameShort: \"Kensei\",\r\n\tsource : [[\"UA:MMT\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of the Kensei\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tadditional: \"3 martial weapons proficiencies\",\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"Martial weapons I am proficient with count as kensei weapons for me\",\r\n\t\t\t\t\"With these, I can use Dex instead of Str and use the Martial Arts damage die\",\r\n\t\t\t\t\"As a bonus action, my kensei weapon deal +1d4 bludg. damage for an Attack action\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (after hit)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level > 2 && fields.Proficiency && !v.isSpell && v.baseWeaponName !== 'shortsword' && (/martial/i).test(v.theWea.type)) {\r\n\t\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tvar curDie = eval_ish(fields.Damage_Die.replace('d', '*'));\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tvar curDie = 'x';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif (isNaN(curDie) || curDie < aMonkDie) {\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = '1d' + aMonkDie;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 bludg. damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I can use either Strength or Dexterity and my Martial Arts damage die in place of the normal damage die for any martial weapons I am proficient with (Kensei Weapons).\\n \\u2022 If I score a hit with one of these kensei weapons as part of an Attack action, I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 bludgeoning damage.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"kensei defense\" : {\r\n\t\t\t\tname : \"Kensei Defense\",\r\n\t\t\t\textraname : \"Way of the Kensei 3\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"If I make an unarmed strike with an Attack action, I can use my kensei weapon to defend\",\r\n\t\t\t\t\t\"Until the start of my next turn, if I'm not incapacitated, I gain +2 AC while holding it\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"kensei defense\" }]\r\n\t\t},\r\n\t\t\"ki-empowered strikes\" : {\r\n\t\t\tname : \"One with the Blade\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((v.baseWeaponName == \"unarmed strike\" || (!v.isSpell && (/martial/i).test(v.theWea.type) && fields.Proficiency)) && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My unarmed strikes and Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Precise Strike\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \"As a bonus action, I can focus my attention on one creature I can see within 30 ft\" + \"\\n   \" + \"This turn, I double my proficiency bonus on my next weapon attack against that mark\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.isSpell && !v.isDC && (/precise.{0,3}strike/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.prof *= 2;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Precise Strike' in a weapon's name, or description it gets twice my proficiency bonus added to its To Hit instead of only once.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tadditional: \"1 to 3 ki points\",\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As a bonus action, I can grant my weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\"This bonus is equal to the number of ki points I spend; It lasts for 1 minute\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"On each of my turns, I can reroll one weapon attack roll I make that misses\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of tranquility-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*tranquility|tranquil|calm|diplomatic|diplomat)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Tranquility\",\r\n\tsubnameShort: \"Tranquility\",\r\n\tsource : [[\"UA:MMT\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of Tranquility\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I cast Sanctuary on me, no material comp., lasts 8 hours, hostiles must save every hour\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"1 min\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Way of Tranquility\",\r\n\t\t\t\tspells : [\"sanctuary\"],\r\n\t\t\t\tselection : [\"sanctuary\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sanctuary\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\ttime : \"8 h\",\r\n\t\t\t\t\tdescription : \"I'm warded; any who want to attack/target must first make save; doesn't protect vs. area spells\",\r\n\t\t\t\t\tchanges : \"Using my Path of Tranquility class feature I can cast Sanctuary without requiring material components and lasting for 8 hours, but it only affects myself and hostiles can attempt a new save every hour.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Healing Hands\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I use points to heal living creature; or 5 points to cure one poison/disease\",\r\n\t\t\t\t\"With Flurry of Blows, I can replace one unarmed strike with a use of this feature\",\r\n\t\t\t]),\r\n\t\t\tusages : [0, 0, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Emissary of Peace\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [Performance or Persuasion prof]\" + \"\\n   \" + \"I get adv. on Cha checks to calm or counsel peace; not with Deception or Intimidation\",\r\n\t\t\tskillstxt : \"Choose one from: Performance or Persuasion\",\r\n\t\t\t\"douse the flames of war\" : {\r\n\t\t\t\tname : \"Douse the Flames of War\",\r\n\t\t\t\textraname : \"Way of Tranquility 11\",\r\n\t\t\t\tsource : [[\"UA:MMT\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, a creature I touch must make a Wisdom save or have no violent impulses\",\r\n\t\t\t\t\t\"If the target is missing any HP it succeeds on the save; The effect lasts for 1 minute\",\r\n\t\t\t\t\t\"During this time, it can't attack or cast spells that deal damage or force a saving throw\",\r\n\t\t\t\t\t\"This effect ends if the target is attacked, takes damage, or is forced to make a saving throw\",\r\n\t\t\t\t\t\"It also ends if the target witnesses any of those things happening to its allies\",\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"douse the flames of war\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Anger of a Gentle Soul\",\r\n\t\t\tsource : [[\"UA:MMT\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"As a reaction if another I see goes to 0 HP, I get bonus damage until my next turn ends\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"+17\", \"+18\", \"+19\", \"+20\"],\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20161219_Paladin-Sacred-Oaths.js",
    "content": "var iFileName = \"ua_20161219_Paladin-Sacred-Oaths.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Paladin Sacred Oaths article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:PSO\"] = {\r\n\tname : \"Unearthed Arcana: Paladin Sacred Oaths\",\r\n\tabbreviation : \"UA:PSO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/UAPaladin_SO_20161219_1.pdf\",\r\n\tdate : \"2016/12/19\"\r\n};\r\n\r\n// Adds 2 subclasses for the Paladin\r\nAddSubClass(\"paladin\", \"oath of conquest-ua\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"UA:PSO\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"I can use my channel divinity to break a foe's will that I hit with my melee weapon\",\r\n\t\t\t\t\"The target must make a Wisdom saving throw or become frightened for 1 minute\",\r\n\t\t\t\t\"The target can repeat this save at the end of each or its turn to end the effect\",\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"blight\", \"dominate beast\", \"dominate person\", \"insect plague\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"While I'm not incapacitated, enemies in range have disadv. on saves vs. being frightened\"),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"10-foot aura\", \"30-foot aura\", \"30-foot aura\", \"30-foot aura\"]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Implacable Spirit\",\r\n\t\t\tsource : [[\"UA:PSO\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I can't be charmed\"),\r\n\t\t\tsavetxt : { immune : [\"charmed\"] }\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\"\\u2022 I have resistance all damage\",\r\n\t\t\t\t\"\\u2022 I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\"\\u2022 My melee weapons score critical hits on a roll of 19 or 20\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of treachery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^((?=.*blackguard)|(((?=.*(treachery|tyranny|tyrant))(?=.*paladin))|((?=.*(profane|unholy))(?=.*(knight|fighter|warrior|warlord|trooper))))).*$/i,\r\n\tsubname : \"Oath of Treachery\",\r\n\tsubnameShort: \"Treachery\",\r\n\tsource : [[\"UA:PSO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conjure Duplicate\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As an action, I create 1 illusory duplicate of myself within 30 ft of me for 1 min (conc)\",\r\n\t\t\t\t\"As a bonus action, I can move it up to 30 ft to a space I can see within 120 ft of me\",\r\n\t\t\t\t\"I can cast spells as though I was in its space, but still have to use my own senses\",\r\n\t\t\t\t\"I have advantage on attacks if the target is within 5 ft of the duplicate and me\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], ['bonus action', 'Move Duplicate']],\r\n\t\t\tspellcastingExtra : [\"charm person\", \"expeditious retreat\", \"invisibility\", \"mirror image\", \"gaseous form\", \"haste\", \"confusion\", \"greater invisibility\", \"dominate person\", \"passwall\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Poison Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I imbue one weapon or piece of ammunition with poison upon touch\",\r\n\t\t\t\t\"This poison lasts for 1 minute and will affect the next time I hit a target with it\",\r\n\t\t\t\t\"The target takes 2d10 + my paladin level poison damage immediately after the hit\",\r\n\t\t\t\t\"I automatically roll 20 on the 2d10 if I have advantage on the attack roll\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"2d10+\" + n + \" damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && (/^(?=.*poison)(?=.*strike).*$/i).test(v.WeaponTextName) && classes.known.paladin && classes.known.paladin.level) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+2d10+' + classes.known.paladin.level + ' poison damage (or ' + (classes.known.paladin.level + 20) + ' if adv.)';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Poison Strike' in a weapon's name, it gets an added description of the extra 2d10 + paladin level of poison damage it would do. If I have advantage on the attack, I can treat the 2d10 as rolling 20 in total.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Cull the Herd\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"I have adv. on melee attacks against creatures that have an ally of it within 5 ft of it\")\r\n\t\t},\r\n\t\t\"subclassfeature7.1\" : {\r\n\t\t\tname : \"Treacherous Strike\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction when a creature within 5 ft misses me, I can redirect the attack\",\r\n\t\t\t\t\"If it can be charmed, it rerolls the attack on a target of my choice within 5 ft of it\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 3,\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Blackguard's Escape\",\r\n\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a reaction after I am hit by an attack, I can teleport up to 60 ft to a spot I can see\",\r\n\t\t\t\t\"In doing this, I also become invisible (as the spell) until the end of my next turn\",\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\"icon of deceit\" : {\r\n\t\t\t\tname : \"Icon of Deceit\",\r\n\t\t\t\textraname : \"Oath of Treachery 20\",\r\n\t\t\t\tsource : [[\"UA:PSO\", 3]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\t\"\\u2022 I become invisible\",\r\n\t\t\t\t\t\"\\u2022 If I have adv. on an attack, I do 20 extra damage with it if it hits\",\r\n\t\t\t\t\t\"\\u2022 If a creature hits me on its turn, it must make a Wis save or I control its next action\",\r\n\t\t\t\t\t\"   Provided it can be charmed and I am not incapacitated when it takes the action\",\r\n\t\t\t\t]),\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"icon of deceit\",\r\n\t\t\t\tminlevel : 20\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20170109_Artificer_dupl.js",
    "content": "var iFileName = \"ua_20170109_Artificer.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n// This file adds the content from the Unearthed Arcana: Artificer article to MPMB's Character Record Sheet\r\n// WARNING: there are no published multiclassing rules for Artificer; the ones provided here are extrapolated from other classes\r\n\r\n// Define the source\r\nSourceList[\"UA:A\"] = {\r\n\tname : \"Unearthed Arcana: Artificer\",\r\n\tabbreviation : \"UA:A\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/1_UA_Artificer_20170109.pdf\",\r\n\tdate : \"2017/01/09\"\r\n};\r\n\r\n// Adds a new class, the Artificer, with 2 subclasses\r\n// This code was for a big part contributed by RCanine on ENworld\r\nClassList['artificer-ua'] = {\r\n\tregExpSearch : /^(?=.*artificer)(?!.*wizard).*$/i,\r\n\tname : \"Artificer\",\r\n\tsource : [[\"UA:A\", 1]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Con\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose three from Arcana, Deception, History, Investigation, Medicine, Nature, Religion, and Sleight of Hand\",\r\n\t\tsecondary : \"Choose one from Arcana, Deception, History, Investigation, Medicine, Nature, Religion, and Sleight of Hand\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [[\"Thieves' tools\", \"Dex\"], [\"Any tool\", 2]],\r\n\t\tsecondary : [[\"Any tool\", 1]]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, false]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false]\r\n\t},\r\n\tequipment : \"Artificer starting equipment:\\n \\u2022 A handaxe and a light hammer -or- any two simple weapons;\\n \\u2022 Scale mail -or- studded leather armor;\\n \\u2022 A light crossbow and 20 bolts;\\n \\u2022 A dungeoneer's pack;\\n \\u2022 Thieves' tools.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Artificer Specialism\", []],\r\n\tsubclassGainedLevel : 1,\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tspellcastingFactor : 3,\r\n\tspellcastingKnown : {\r\n\t\tspells : [0, 0, 3, 4, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, 11, 11, 11, 12, 13]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Artificer Specialist\",\r\n\t\t\tsource : [[\"UA:A\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose an Artificer Specialism and put it in the \"Class\" field on the first page',\r\n\t\t\t\t\"Choose either Alchemist or Gunsmith\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"magic item analysis\" : {\r\n\t\t\tname : \"Magic Item Analysis\",\r\n\t\t\tsource : [[\"UA:A\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can cast Detect Magic and Identify as rituals without requiring material components\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Magic Item Analysis\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Magic Item Analysis\",\r\n\t\t\t\tspells : [\"identify\"],\r\n\t\t\t\tselection : [\"identify\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect magic\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t},\r\n\t\t\t\t\"identify\" : {\r\n\t\t\t\t\ttime : \"11 min\",\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"I can cast this spell without requiring material components, but only as a ritual, thus its casting time is always 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"tool expertise\" : {\r\n\t\t\tname : \"Tool Expertise\",\r\n\t\t\tsource : [[\"UA:A\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I have expertise with any tool proficiencies I gain from the artificer class\"),\r\n\t\t\tskillstxt : \"expertise with any tool proficiencies gained from the artificer class\",\r\n\t\t\teval : function () {\r\n\t\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\t\tCheckbox('Too Exp', true);\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tif ((/thieve.?s.*tools/i).test(What('Too Text'))) {\r\n\t\t\t\t\tCheckbox('Too Exp', false);\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"wondrous invention\" : {\r\n\t\t\tname : \"Wondrous Invention\",\r\n\t\t\tsource : [[\"UA:A\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc('I gain a magic item that I have crafted; Use the \"Choose Feature\" button above'),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : n < 5 ? \"1 item\" : (n < 10 ? 2 : n < 15 ? 3 : n < 20 ? 4 : 5) + \" items\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Magic Item\",\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 5 ? 1 : n < 10 ? 2 : n < 15 ? 3 : n < 20 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\textrachoices : []\r\n\t\t\t//come back to this with the function to make the individual entries\r\n\t\t},\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"UA:A\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast artificer spells that I know, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"I can use an arcane focus as a spellcasting focus\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\treturn n < 3 ? \"\" : [0, 0, 3, 4, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, 11, 11, 11, 12, 13][idx] + \" spells known\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"infuse magic\" : {\r\n\t\t\tname : \"Infuse Magic\",\r\n\t\t\tsource : [[\"UA:A\", 4]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By spending 1 minute, I can infuse one of my artificer spells into a nonmagical item\",\r\n\t\t\t\t\"This expends a spell slot as normal and the spell must have a casting time of 1 action\",\r\n\t\t\t\t\"An item holds max one spell for 8 hours; I can have up to my Int mod of infused items\",\r\n\t\t\t\t\"A creature holding an infused item can use an action to cast the spell, using my ability\",\r\n\t\t\t\t\"The spell's target is the creature activating it or, with area of effect spells, the item\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"mechanical servant\" : {\r\n\t\t\tname : \"Mechanical Servant\",\r\n\t\t\tsource : [[\"UA:A\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I create a construct that obeys my orders; It acts on its own initiative\",\r\n\t\t\t\t\"I can repair it to 1 HP during a long rest, or build a new one in a week with 1000 gp\",\r\n\t\t\t\t\"As a reaction when I'm attacked in melee, I can have it make a melee attack back\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Large beast, CR 2 or less\",\r\n\t\t\tcreaturesAdd : [[\"Mechanical Servant\", false, function(AddRemove, prefix) {\r\n\t\t\t\tif (!AddRemove) return;\r\n\t\t\t\tvar cObj = MakeCompMenu_CompOptions(prefix, \"justCompanions\");\r\n\t\t\t\tif (!cObj.mechanicalserv || !cObj.mechanicalserv.length) {\r\n\t\t\t\t\tvar selectedRace = \"Warhorse\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar compOptions = cObj.mechanicalserv.map(function(n) { return n[0] });\r\n\t\t\t\t\tvar selectedRace = AskUserOptions(\"Select Mechanical Servant\", \"Select which beast you would like to have as your mechanical servant.\\nThis can be any beast that is Large and that has a challenge rating of 2.\\nYou can change the beast at any time using the \\\"Companion Options\\\" button at the top of the Companion page.\", compOptions, \"radio\", true);\r\n\t\t\t\t}\r\n\t\t\t\tApplyCompRace(selectedRace, prefix, \"mechanicalserv\");\r\n\t\t\t}]]\r\n\t\t},\r\n\t\t\"superior attunement\" : {\r\n\t\t\tname : \"Superior Attunement\",\r\n\t\t\tsource : [[\"UA:A\", 4]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : \"\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 5 ? \"\" : \"attune to \" + (n < 15 ? 4 : n < 20 ? 5 : 6) + \" magic items instead of 3\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"soul of artifice\" : {\r\n\t\t\tname : \"Soul of Artifice\",\r\n\t\t\tsource : [[\"UA:A\", 4]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription: desc(\"I gain a +1 bonus to all saving throws per magic item I am currently attuned to\"),\r\n\t\t\tsavetxt : {\r\n\t\t\t\ttext : [\"+1 to all saves per attuned magic item\"]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n// Alchemist subclass for the Artificer\r\nAddSubClass(\"artificer-ua\", \"alchemist\", {\r\n\tregExpSearch : /^(?=.*alchemist)(?!.*wizard).*$/i,\r\n\tsubname : \"Alchemist\",\r\n\tfullname : \"Alchemist\",\r\n\tsource : [[\"UA:A\", 5]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Alchemist's Satchel\",\r\n\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I craft an Alchemist's Satchel, a magic item with which I can create concoctions\",\r\n\t\t\t\t\"Whenever I reach in, it holds the material for the Alchemical Formula I want to use\",\r\n\t\t\t\t\"If lost, I craft another by spending 8 hours a day for 3 days and 100 gp of materials\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Alchemy Formulae\",\r\n\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Alchemical Formulae that I can use if I have my Alchemist's Satchel within reach\",\r\n\t\t\t\t\"I learn the Alchemical Acid and Fire formulae, and additional depending on my level\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select additional Alchemical Formulae'\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 3 ? 1 : n < 9 ? 2 : n < 14 ? 3 : n < 17 ? 4 : 5) + \" additional formula\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Alchemical Formula\",\r\n\t\t\textrachoices : [\"Healing Draught\", \"Smoke Stick\", \"Swift Step Draught\", \"Tanglefoot Bag\", \"Thunderstone\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 1 : n < 9 ? 2 : n < 14 ? 3 : n < 17 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\t\"healing draught\" : {\r\n\t\t\t\tname : \"Healing Draught\",\r\n\t\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can take a vial of healing liquid from my satchel, which lasts for 1 hour\",\r\n\t\t\t\t\t\"Anyone can drink this as an action, healing in doing so, after which the vial disappears\",\r\n\t\t\t\t\t\"One vial heals a number of d8 equal to half my artificer level (rounded up) in HP\",\r\n\t\t\t\t\t\"After being healed this way, a creature can't do so again until it finishes a long rest\",\r\n\t\t\t\t\t\"While a Healing Draught exists, I can't use this formula to create another one\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"Heals \" + Math.ceil(n / 2) + \"d8\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"smoke stick\" : {\r\n\t\t\t\tname : \"Smoke Stick\",\r\n\t\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can take a smoke stick from my satchel and throw it up to 30 ft away\",\r\n\t\t\t\t\t\"The stick produces smoke in a 10-ft radius around it, blocking vision, incl. darkvision\",\r\n\t\t\t\t\t\"It disappears after 1 minute; After creating one, I can't create a new one for 1 minute\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"swift step draught\" : {\r\n\t\t\t\tname : \"Swift Step Draught\",\r\n\t\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I take a vial of brown liquid from my satchel, which lasts for 1 minute\",\r\n\t\t\t\t\t\"Any creature can drink this vial as an action, gaining +20 ft speed for 1 minute\",\r\n\t\t\t\t\t\"After use, the vial disappears; After creating one, I can't create a new one for 1 minute\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"tanglefoot bag\" : {\r\n\t\t\t\tname : \"Tanglefoot Bag\",\r\n\t\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can hurl a bag of black tar to a point on the ground within 30 ft\",\r\n\t\t\t\t\t\"It bursts and covers the ground with sticky goo in a 5-ft radius, which lasts for 1 min\",\r\n\t\t\t\t\t\"It is difficult terrain and anyone starting its turn in it has its speed halved for that turn\",\r\n\t\t\t\t\t\"After creating one, I can't create a new one for 1 minute\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"thunderstone\" : {\r\n\t\t\t\tname : \"Thunderstone\",\r\n\t\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can hurl a crystalline shard at a creature/object/surface within 30 ft\",\r\n\t\t\t\t\t\"It shatters on impact and any creature within 10 ft must make a Constitution save\",\r\n\t\t\t\t\t\"If failed, a creature is knocked prone and pushed 10 ft away from the point of impact\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Formula: Alchemical Acid\",\r\n\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can hurl a vial of acid at a creature or object within 30 ft\",\r\n\t\t\t\t\"It shatters on impact and the target must succeed on a Dex save or take acid damage\",\r\n\t\t\t\t\"An object automatically fails its saving throw and takes maximum damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn Math.ceil(n / 2) + \"d6 acid damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*alchemical)(?=.*acid).*$/i,\r\n\t\t\t\tname : \"Alchemical Acid\",\r\n\t\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\t\tlist : \"artificer\",\r\n\t\t\t\tability : 4,\r\n\t\t\t\ttype : \"Artificer\",\r\n\t\t\t\tdamage : [1, 6, \"acid\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"Dex save, success - no damage; Objects automatically take maximum damage\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tartAlcAcid : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.artAlcAcid && classes.known['artificer-ua'] && classes.known['artificer-ua'].level) {\r\n\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t\tfields.Damage_Die = Math.ceil(classes.known['artificer-ua'].level / 2) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.3\" : {\r\n\t\t\tname : \"Formula: Alchemical Fire\",\r\n\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can hurl a vial of volatile liquid at a creature/object/surface within 30 ft\",\r\n\t\t\t\t\"It explodes and all within a 5-ft radius must succeed on a Dex save or take fire damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn Math.ceil(n / 3) + \"d6 fire damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*alchemical)(?=.*fire).*$/i,\r\n\t\t\t\tname : \"Alchemical Fire\",\r\n\t\t\t\tsource : [[\"UA:A\", 5]],\r\n\t\t\t\tlist : \"artificer\",\r\n\t\t\t\tability : 4,\r\n\t\t\t\ttype : \"Artificer\",\r\n\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"Dex save, success - no damage; All creatures within 5-ft of the point of impact have to save\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tartAlcFire : true,\r\n\t\t\t\tselectNow : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.artAlcFire && classes.known['artificer-ua'] && classes.known['artificer-ua'].level) {\r\n\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t\tfields.Damage_Die = Math.ceil(classes.known['artificer-ua'].level / 3) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Gunsmith subclass for the Artificer\r\nAddSubClass(\"artificer-ua\", \"gunsmith\", {\r\n\tregExpSearch : /^(?=.*gunsmith)(?!.*wizard).*$/i,\r\n\tsubname : \"Gunsmith\",\r\n\tfullname : \"Gunsmith\",\r\n\tsource : [[\"UA:A\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Master Smith\",\r\n\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\"I gain proficiency with smith's tools and I learn the mending cantrip\"]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Master Smith\",\r\n\t\t\t\tspells : [\"mending\"],\r\n\t\t\t\tselection : [\"mending\"]\r\n\t\t\t}],\r\n\t\t\ttoolProfs : [\"Smith's tools\"]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Thunder Cannon\",\r\n\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I craft a magical firearm, my thunder cannon, with which I am proficient\",\r\n\t\t\t\t\"If lost, I craft another by spending 8 hours a day for 3 days and 100 gp of materials\"\r\n\t\t\t]),\r\n\t\t\tweaponProfs : [false, false, [\"thunder cannon\"]],\r\n\t\t\taction : [[\"bonus action\", \" (reload)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?!.*(blast|monger|piercing|explosive|round))(?=.*\\bthunder)(?=.*cannon\\b).*$/i,\r\n\t\t\t\tname : \"Thunder Cannon\",\r\n\t\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Thunder Cannon\",\r\n\t\t\t\tdamage : [2, 6, \"piercing\"],\r\n\t\t\t\trange : \"150/500 ft\",\r\n\t\t\t\tweight : 12, // made up, based on the weight of real rifles\r\n\t\t\t\tdescription : \"Ammunition, loading, two-handed, bonus action to reload\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tammo : \"Arcane Magazine\",\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tammoOptions : [{\r\n\t\t\t\tname : \"Arcane Magazine\",\r\n\t\t\t\tsource : [[\"UA:A\", 7]],\r\n\t\t\t\tweight : 0.2, // based on the weight of renaissance bullets from the DMG\r\n\t\t\t\ticon : \"Bullets\",\r\n\t\t\t\tinvName : \"Thunder Cannon Rounds\",\r\n\t\t\t\talternatives : [/^((?=.*arcane)(?=.*magazine)|(?=.*thunder)(?=.*cannon)(?=.*rounds)).*$/i]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Arcane Magazine\",\r\n\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I craft a leather bag that holds my tools, ammunition, and materials for the weapon\",\r\n\t\t\t\t\"I can use it to produce 40 rounds of ammo after a long rest or 10 after a short rest\",\r\n\t\t\t\t\"If lost, I can create a new one as part of a long rest with 25 gp of materials\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Thunder Monger\",\r\n\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\"As an action, I can make an attack with my thunder cannon that does extra damage\"]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 3) return \"\";\r\n\t\t\t\treturn \"+\" + Math.floor((n - 1) / 2) + \"d6 thunder damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bthunder)(?=.*monger\\b).*$/i,\r\n\t\t\t\tname : \"Thunder Cannon (Monger)\",\r\n\t\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Thunder Cannon\",\r\n\t\t\t\tdamage : [2, 6, \"piercing\"],\r\n\t\t\t\trange : \"150/500 ft\",\r\n\t\t\t\tdescription : \"Ammunition, loading, two-handed, bonus action to reload\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tammo : \"Arcane Magazine\",\r\n\t\t\t\tartTCmonger : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.artTCmonger && classes.known['artificer-ua'] && classes.known['artificer-ua'].level > 2) {\r\n\t\t\t\t\t\t\tfields.Description += '; +' + Math.floor((classes.known['artificer-ua'].level - 1) / 2) + 'd6 thunder damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Blast Wave\",\r\n\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make a special attack with my thunder cannon in a 15-ft cone\",\r\n\t\t\t\t\"Creatures in the area must make a Str save or take damage and pushed back 10 ft\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 9 ? \"\" :\r\n\t\t\t\tn < 13 ? \"2d6 force damage\" :\r\n\t\t\t\tn < 17 ? \"3d6 force damage\" :\r\n\t\t\t\t\"4d6 force damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bthunder)(?=.*cannon\\b)(?=.*\\bblast)(?=.*wave\\b).*$/i,\r\n\t\t\t\tname : \"Thunder Cannon (Blast Wave)\",\r\n\t\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\t\tability : 4,\r\n\t\t\t\ttype : \"Thunder Cannon\",\r\n\t\t\t\tdamage : [2, 6, \"force\"],\r\n\t\t\t\trange : \"15-ft cone\",\r\n\t\t\t\tdescription : \"Ammunition, loading, two-handed, bonus action to reload; Str save or damage and pushed back 10 ft\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tammo : \"Arcane Magazine\",\r\n\t\t\t\tartTCblast : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.artTCblast && classes.known['artificer-ua'] && classes.known['artificer-ua'].level >= 13) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = (classes.known['artificer-ua'].level < 17 ? 3 : 4) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Piercing Round\",\r\n\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make a special attack with my thunder cannon in a 30-ft line\",\r\n\t\t\t\t\"Creatures in the 5-ft wide line must make a Dex save or take damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 14 ? \"\" :\r\n\t\t\t\tn < 19 ? \"4d6 lightning damage\" :\r\n\t\t\t\t\"6d6 lightning damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bthunder)(?=.*cannon\\b)(?=.*\\bpiercing)(?=.*round\\b).*$/i,\r\n\t\t\t\tname : \"Thunder Cannon (Piercing Round)\",\r\n\t\t\t\tsource : [[\"UA:A\", 6]],\r\n\t\t\t\tability : 4,\r\n\t\t\t\ttype : \"Thunder Cannon\",\r\n\t\t\t\tdamage : [4, 6, \"lightning\"],\r\n\t\t\t\trange : \"30-ft line\",\r\n\t\t\t\tdescription : \"Ammunition, loading, two-handed, bonus action to reload; 5 ft wide line; Dex save or damage\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tammo : \"Arcane Magazine\",\r\n\t\t\t\tartTCpiercing : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.artTCpiercing && classes.known['artificer-ua'] && classes.known['artificer-ua'].level >= 19) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '6d6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Explosive Round\",\r\n\t\t\tsource : [[\"UA:A\", 7]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make a special exploding attack with my thunder cannon\",\r\n\t\t\t\t\"A 30-ft radius sphere somewhere within range of the thunder cannon is affected\",\r\n\t\t\t\t\"Creatures in the area must make a Dexterity saving throw or take 4d8 fire damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"4d8 fire damage\",\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bthunder)(?=.*cannon\\b)(?=.*\\bexplosive)(?=.*round\\b).*$/i,\r\n\t\t\t\tname : \"Thunder Cannon (Explosive Round)\",\r\n\t\t\t\tsource : [[\"UA:A\", 7]],\r\n\t\t\t\tability : 4,\r\n\t\t\t\ttype : \"Thunder Cannon\",\r\n\t\t\t\tdamage : [4, 8, \"fire\"],\r\n\t\t\t\trange : \"500 ft\",\r\n\t\t\t\tdescription : \"Ammunition, loading, two-handed, bonus action to reload; 30-ft radius sphere; Dex save or damage\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tammo : \"Arcane Magazine\",\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Set the Artificer class spell list and Create the choices for the wondrous items class feature of the artificer\r\nvar UAA_SetArtificerAttr = function(){\r\n\tvar artSp = [\r\n\t\t// level 1\r\n\t\t\"alarm\",\r\n\t\t\"cure wounds\",\r\n\t\t\"disguise self\",\r\n\t\t\"expeditious retreat\",\r\n\t\t\"false life\",\r\n\t\t\"jump\",\r\n\t\t\"longstrider\",\r\n\t\t\"sanctuary\",\r\n\t\t\"shield of faith\",\r\n\t\t// level 2\r\n\t\t\"aid\",\r\n\t\t\"alter self\",\r\n\t\t\"arcane lock\",\r\n\t\t\"blur\",\r\n\t\t\"continual flame\",\r\n\t\t\"darkvision\",\r\n\t\t\"enhance ability\",\r\n\t\t\"enlarge/reduce\",\r\n\t\t\"invisibility\",\r\n\t\t\"lesser restoration\",\r\n\t\t\"levitate\",\r\n\t\t\"magic weapon\",\r\n\t\t\"protection from poison\",\r\n\t\t\"rope trick\",\r\n\t\t\"see invisibility\",\r\n\t\t\"spider climb\",\r\n\t\t// level 3\r\n\t\t\"blink\",\r\n\t\t\"fly\",\r\n\t\t\"gaseous form\",\r\n\t\t\"glyph of warding\",\r\n\t\t\"haste\",\r\n\t\t\"protection from energy\",\r\n\t\t\"revivify\",\r\n\t\t\"water breathing\",\r\n\t\t\"water walk\",\r\n\t\t// level 4\r\n\t\t\"arcane eye\",\r\n\t\t\"death ward\",\r\n\t\t\"fabricate\",\r\n\t\t\"freedom of movement\",\r\n\t\t\"leomund's secret chest\",\r\n\t\t\"mordenkainen's faithful hound\",\r\n\t\t\"mordenkainen's private sanctum\",\r\n\t\t\"otiluke's resilient sphere\",\r\n\t\t\"stone shape\",\r\n\t\t\"stoneskin\"\r\n\t];\r\n\tfor (var a = 0; a < artSp.length; a++) {\r\n\t\tvar anArtSp = SpellsList[artSp[a]];\r\n\t\tif(anArtSp && anArtSp.classes && anArtSp.classes.indexOf(\"artificer-ua\") === -1) anArtSp.classes.push(\"artificer-ua\");\r\n\t};\r\n\tvar artMi = [\r\n\t\t[\"bag of holding\"],\r\n\t\t[\"cap of water breathing\"],\r\n\t\t[\"driftglobe\"],\r\n\t\t[\"goggles of night\"],\r\n\t\t[\"sending stones\"],\r\n\t\t[\"alchemy jug\", 5],\r\n\t\t[\"helm of comprehending languages\", 5],\r\n\t\t[\"lantern of revealing\", 5],\r\n\t\t[\"ring of swimming\", 5],\r\n\t\t[\"robe of useful items\", 5],\r\n\t\t[\"rope of climbing\", 5],\r\n\t\t[\"wand of magic detection\", 5],\r\n\t\t[\"wand of secrets\", 5],\r\n\t\t[\"bag of beans\", 10],\r\n\t\t[\"chime of opening\", 10],\r\n\t\t[\"decanter of endless water\", 10],\r\n\t\t[\"eyes of minute seeing\", 10],\r\n\t\t[\"folding boat\", 10],\r\n\t\t[\"heward's handy haversack\", 10],\r\n\t\t[\"boots of striding and springing\", 15],\r\n\t\t[\"bracers of archery\", 15],\r\n\t\t[\"brooch of shielding\", 15],\r\n\t\t[\"broom of flying\", 15],\r\n\t\t[\"hat of disguise\", 15],\r\n\t\t[\"slippers of spider climbing\", 15],\r\n\t\t[\"eyes of the eagle\", 20],\r\n\t\t[\"gem of brightness\", 20],\r\n\t\t[\"gloves of missile snaring\", 20],\r\n\t\t[\"gloves of swimming and climbing\", 20],\r\n\t\t[\"ring of jumping\", 20],\r\n\t\t[\"ring of mind shielding\", 20],\r\n\t\t[\"wings of flying\", 20]\r\n\t];\r\n\tvar theObj = ClassList['artificer-ua'].features[\"wondrous invention\"];\r\n\tfor (var a = 0; a < artMi.length; a++) {\r\n\t\tvar MI0 = artMi[a][0];\r\n\t\tvar MI1 = artMi[a][1];\r\n\t\tvar anArtMi = MagicItemsList[MI0];\r\n\t\tif (!anArtMi) continue;\r\n\t\tvar theI = anArtMi.name + (MI1 ? \" (prereq: level \" + MI1 + \" artificer)\" : \"\");\r\n\t\tvar theILC = theI.toLowerCase();\r\n\t\ttheObj[theILC] = {\r\n\t\t\tname : anArtMi.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : anArtMi.source,\r\n\t\t\teval : 'AddMagicItem(\"' + anArtMi.name + '\");',\r\n\t\t\tremoveeval : 'if (CurrentMagicItems.known.indexOf(\"' + MI0 + '\") != -1) { MagicItemClear(CurrentMagicItems.known.indexOf(\"' + MI0 + '\") + 1, true); };'\r\n\t\t};\r\n\t\tif (MI1) theObj[theILC].prereqeval = \"classes.known['artificer-ua'].level >= \" + MI1;\r\n\t\ttheObj.extrachoices.push(theI);\r\n\t};\r\n}();\r\n\r\n// Add the mechanical servant as an option on the companion page\r\nCompanionList.mechanicalserv = {\r\n\tname : \"Mechanical Servant\",\r\n\tnameTooltip : \"Artificer: Mechanical Servant\",\r\n\tnameOrigin : \"Artificer 6\",\r\n\tnameMenu : \"Mechanical Servant (2017 Artificer feature)\",\r\n\tsource : [[\"UA:A\", 4]],\r\n\tincludeCheck : function(sCrea, objCrea, iCreaCR) {\r\n\t\treturn objCrea.type.toLowerCase() === \"beast\" && objCrea.size === 2 && iCreaCR <= 2 ? true : false;\r\n\t},\r\n\taction : [[\"reaction\", \"Mechanical Servant (if attacked)\"]],\r\n\tnotes : [{\r\n\t\tname : \"The mechanical servant has the statistics\",\r\n\t\tdescription : [\r\n\t\t\t\"of a chosen large beast of challenge rating 2 or lower\",\r\n\t\t\t\"It has the Construct type, understands any language that I know, and has 60 ft Darkvision\",\r\n\t\t\t\"In addition, it is immune to poison damage, being poisoned, and being charmed\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : \" \"\r\n\t}, {\r\n\t\tname : \"I can have one servant at a time\",\r\n\t\tdescription : [\r\n\t\t\t\"If it dies, I can repair it or create a new one\",\r\n\t\t\t\"I can repair the servant over the course of a long rest, which restores it to 1 HP\",\r\n\t\t\t\"I can build a new servant by spending 8 hours a day for 7 days and 1000 gp of materials\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : \"; \"\r\n\t}, {\r\n\t\tname : \"The servant rolls initiative and takes actions as normal\",\r\n\t\tdescription : \"obeying my commands as best it can\",\r\n\t\tjoinString : \", \"\r\n\t}, {\r\n\t\tname : \"As a reaction when I am attacked\",\r\n\t\tdescription : [\r\n\t\t\t\"in melee and my mechanical servant is within 5 ft of me,\",\r\n\t\t\t\"I can command the servant to use its reaction to make a melee attack against the attacker\"\r\n\t\t].join(\"\\n   \"),\r\n\t\tjoinString : \" \"\r\n\t}],\r\n\tattributesAdd : {\r\n\t\theader : \"Servant\",\r\n\t\ttype : \"Construct\",\r\n\t\tdamage_immunities : \"poison\",\r\n\t\tcondition_immunities : \"charmed, poisoned\",\r\n\t\tsenses : \"Darkvision 60 ft\",\r\n\t\tlanguages : \"understands the languages its creator speaks\"\r\n\t},\r\n\tattributesChange : function(sCrea, objCrea) {\r\n\t\t// Fix duplicate stuff\r\n\t\tif (!sCrea || !CreatureList[sCrea]) return;\r\n\t\tvar oOrigCrea = CreatureList[sCrea];\r\n\t\t// Fix possible duplicate darkvision if the base creature already has it\r\n\t\tif (oOrigCrea.senses) {\r\n\t\t\tvar rxDarkvision = /[,;]?.?darkvision.(\\d+).?(ft|m)|(\\d+).?(ft|m).?darkvision/i;\r\n\t\t\tvar mDarkvisionMatch = oOrigCrea.senses.match(rxDarkvision);\r\n\t\t\tif (mDarkvisionMatch) {\r\n\t\t\t\tvar iDvRange = mDarkvisionMatch[2].toLowerCase === \"m\" ? Math.round(mDarkvisionMatch[1] / UnitsList.metric.length, 0) : Number(mDarkvisionMatch[1]);\r\n\t\t\t\tobjCrea.senses = objCrea.senses.replace( (iDvRange >= 60 ? /[,;]? Darkvision 60 ft/i : rxDarkvision), \"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Fix possible duplicate poison damage immunity\r\n\t\tif (oOrigCrea.damage_immunities && /poison/i.test(oOrigCrea.damage_immunities)) {\r\n\t\t\tobjCrea.damage_immunities = objCrea.damage_immunities.replace(/[,;]? poison/i, \"\");\r\n\t\t}\r\n\t\t// Fix possible duplicate condition immunities\r\n\t\tif (oOrigCrea.condition_immunities && /charmed/i.test(oOrigCrea.damage_immunities)) {\r\n\t\t\tobjCrea.damage_immunities = objCrea.damage_immunities.replace(/[,;]? charmed/i, \"\");\r\n\t\t}\r\n\t\tif (oOrigCrea.condition_immunities && /poisoned/i.test(oOrigCrea.damage_immunities)) {\r\n\t\t\tobjCrea.damage_immunities = objCrea.damage_immunities.replace(/[,;]? poisoned/i, \"\");\r\n\t\t}\r\n\t}\r\n}\r\n"
  },
  {
    "path": "WotC material/ua_20170116_Ranger-and-Rogue.js",
    "content": "var iFileName = \"ua_20170116_Ranger-and-Rogue.js\";\r\nRequiredSheetVersion(\"13.2.0\");\r\n// This file adds the content from the Unearthed Arcana: Ranger and Rogue article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RnR\"] = {\r\n\tname : \"Unearthed Arcana: Ranger and Rogue\",\r\n\tabbreviation : \"UA:RnR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2016/dnd/downloads/2017_01_UA_RangerRogue_0117JCMM.pdf\",\r\n\tdate : \"2017/01/16\"\r\n};\r\n\r\n// Adds 3 subclasses: 2 for the Ranger (and the Revised Ranger), and 1 for the Rogue\r\nvar UARnR_theHorizonWalkerSubclass = {\r\n\tregExpSearch : /^(?=.*horizon)(?=.*walker).*$/i,\r\n\tsubname : \"Horizon Walker\",\r\n\tsource : [[\"UA:RnR\", 1]],\r\n\tfullname : \"Horizon Walker\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Planar magic\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add a spell to my known spells at level 3, 5, 9, 13, and 17\",\r\n\t\t\t\t\"These count as ranger spells, but do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"alter self\", \"protection from energy\", \"banishment\", \"teleportation circle\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Planar Walker\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I choose an enemy within 30 ft of me that I can see\",\r\n\t\t\t\t\"Until the end of this turn, my attack against that enemy ignore damage resistances\",\r\n\t\t\t\t\"In addition, the first time I hit it this turn, it takes an extra 1d6 force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Portal Lore\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I sense the distance and direction to any planar portals within 1000 ft\",\r\n\t\t\t\t\"I also sense to which plane the portal leads to; I can't sense details if obscured by magic\",\r\n\t\t\t\t\"I can use this feature additional times by expending spell slots of 2nd level or higher\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ethereal Step\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"As a bonus action, I can cast the Etherealness spell, which lasts until the end of the turn\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Ethereal Step\",\r\n\t\t\t\tspells : [\"etherealness\"],\r\n\t\t\t\tselection : [\"etherealness\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"etherealness\" : {\r\n\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\tduration : \"1 rnd\",\r\n\t\t\t\t\tdescription : \"I go to Ethereal Plane; move there, but able to perceive 60 ft into the normal plane\",\r\n\t\t\t\t\tchanges : \"Using my Ethereal Step class feature I can cast Etherealness as a bonus action once per short rest, but it only affects myself and lasts until the end of my turn.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Distant Strike\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"With the Attack action, I can teleport 10 ft before each attack, to a place I can see\",\r\n\t\t\t\t\"If I attack two different creatures with this action, I get an extra attack against a third\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Spectral Defense\",\r\n\t\t\tsource : [[\"UA:RnR\", 1]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"As a reaction when I take damage, I can halve that damage against me\"),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddSubClass(\"ranger\", \"horizon walker-ua\", UARnR_theHorizonWalkerSubclass);\r\nvar UARnR_thePrimevalGuardianSubclass = { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*primeval)(?=.*guardian).*$/i,\r\n\tsubname : \"Primeval Guardian\",\r\n\tsource : [[\"UA:RnR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Guardian magic\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"entangle\", \"enhance ability\", \"conjure animals\", \"giant insect\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Guardian Soul\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action, I transform to or from a guardian form, changing me as follows:\",\r\n\t\t\t\t\"\\u2022 I grow to Large size, all my movement is reduced to 5 ft, and I get +5 ft reach\",\r\n\t\t\t\t\"\\u2022 I gain half my ranger level in temporary HP at the start of each of my turns\",\r\n\t\t\t\t\"This ends when I'm incapacitated; When it ends, I lose all temporary HP I got from it\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"1 temp HP per round\", \"2 temp HP per round\", \"2 temp HP per round\", \"3 temp HP per round\", \"3 temp HP per round\", \"4 temp HP per round\", \"4 temp HP per round\", \"5 temp HP per round\", \"5 temp HP per round\", \"6 temp HP per round\", \"6 temp HP per round\", \"7 temp HP per round\", \"7 temp HP per round\", \"8 temp HP per round\", \"8 temp HP per round\", \"9 temp HP per round\", \"9 temp HP per round\", \"10 temp HP per round\"],\r\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Piercing Thorns\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Once each turn, a hit from my weapon attack can deal 1d6 extra piercing damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell) fields.Description += (fields.Description ? '; ' : '') + 'Once per turn, +1d6 piercing damage';\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My weapon attacks can deal 1d6 extra piercing damage once per turn.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ancient Fortitude\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I assume my guardian form, my HP \\u0026 max HP increase by twice my ranger level\",\r\n\t\t\t\t\"When I leave the form, my max HP reverts back, and any excess HP I have is lost\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"+16 max HP\", \"+18 max HP\", \"+20 max HP\", \"+22 max HP\", \"+24 max HP\", \"+26 max HP\", \"+28 max HP\", \"+30 max HP\", \"+32 max HP\", \"+34 max HP\", \"+36 max HP\", \"+38 max HP\", \"+40 max HP\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Rooted Defense\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"While in guardian form, the ground within 30 ft of me is difficult terrain for hostiles\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Guardian Aura\",\r\n\t\t\tsource : [[\"UA:RnR\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"While I'm in my guardian form, I heal allies that start their turn within 30 ft of me\",\r\n\t\t\t\t\"They heal half my ranger level if they are below half HP and not undead or constructs\",\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"Heals 7 HP\", \"Heals 8 HP\", \"Heals 8 HP\", \"Heals 9 HP\", \"Heals 9 HP\", \"Heals 10 HP\"]\r\n\t\t}\r\n\t}\r\n};\r\nAddSubClass(\"ranger\", \"primeval guardian-ua\", UARnR_thePrimevalGuardianSubclass);\r\nif (ClassList[\"rangerua\"]) { // add them to the Revised Ranger as well, if it is defined\r\n\tvar UARnR_theHorizonConclaveSubclass = newObj(UARnR_theHorizonWalkerSubclass);\r\n\tUARnR_theHorizonConclaveSubclass.subname = \"Horizon Conclave\";\r\n\tUARnR_theHorizonConclaveSubclass.regExpSearch = /^(?=.*horizon)(?=.*conclave).*$/i\r\n\tdelete UARnR_theHorizonConclaveSubclass.fullname;\r\n\tAddSubClass(\"rangerua\", \"horizon conclave-ua\", UARnR_theHorizonConclaveSubclass);\r\n\tvar UARnR_thePrimevalGuardianConclaveSubclass = newObj(UARnR_thePrimevalGuardianSubclass);\r\n\tUARnR_thePrimevalGuardianConclaveSubclass.subname = \"Primeval Guardian Conclave\";\r\n\tdelete UARnR_thePrimevalGuardianConclaveSubclass.fullname;\r\n\tAddSubClass(\"rangerua\", \"primeval guardian conclave-ua\", UARnR_thePrimevalGuardianConclaveSubclass);\r\n};\r\nAddSubClass(\"rogue\", \"scout-ua\", {\r\n\tregExpSearch : /scout/i,\r\n\tsubname : \"Scout\",\r\n\tsource : [[\"UA:RnR\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Skirmisher\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile ends its turn within 5 ft of me, I can move half my speed\",\r\n\t\t\t\t\"This movement does not provoke attacks of opportunity\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Survivalist\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency and expertise with the Nature and Survival skills\"),\r\n\t\t\tskills : [['Nature', 'full'], ['Survival', 'full']]\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Superior Mobility\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription: desc(\"I gain +10 ft to my walking speed (and swimming/climbing speed, if applicable)\"),\r\n\t\t\tspeed : { \r\n\t\t\t\tallModes : { bonus : \"+10\", exclude : [\"fly\", \"burrow\"] }\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Ambush Master\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action in the first combat round with a surprised foe, I can lead the ambush\",\r\n\t\t\t\t\"If I do so, allies who can see me gets +5 to their initiative roll, up to my initiative value\",\r\n\t\t\t\t\"Also, each ally gains +10 ft to its speed that lasts until the end their next turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (first round)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Sudden Strike\",\r\n\t\t\tsource : [[\"UA:RnR\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"With the Attack action, I can make one additional attack as a bonus action\",\r\n\t\t\t\t\"This attack can benefit from my Sneak Attack even if I already used it this turn\",\r\n\t\t\t\t\"However, I still can't use Sneak Attack on a single target more than once per turn\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with Attack action)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20170206_Sorcerous-Origins.js",
    "content": "var iFileName = \"ua_20170206_Sorcerous-Origins.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Sorcerous Origins article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SO\"] = {\r\n\tname : \"Unearthed Arcana: Sorcerous Origins\",\r\n\tabbreviation : \"UA:SO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/26_UASorcererUA020617s.pdf\",\r\n\tdate : \"2017/02/06\"\r\n};\r\n\r\n// Adds 4 subclasses for the Sorcerer\r\n//this code includes contributions by /u/SoilentBrad, as well as LamentingDemon on GitHub\r\nAddSubClass(\"sorcerer\", \"favored soul-ua2\", {\r\n\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\tsubname : \"Favored Soul\",\r\n\tsource : [[\"UA:SO\", 1]],\r\n\tfullname : \"Favored Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"When I select my 1st level or higher spells, I can also pick spells from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t]),\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Supernatural Resilience\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My hit point maximum increases by an amount equal to my sorcerer level\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Supernatural Resilience (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Blessed Countenance\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t'Choose an otherworldly quality using the \"Choose Feature\" button above',\r\n\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Beautiful\", \"Youthful\", \"Kind\", \"Imposing\"],\r\n\t\t\t\"beautiful\" : {\r\n\t\t\t\tname : \"Beautiful\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of beauty\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"youthful\" : {\r\n\t\t\t\tname : \"Youthful\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of youthfulness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"kind\" : {\r\n\t\t\t\tname : \"Kind\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of kindness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\t\"imposing\" : {\r\n\t\t\t\tname : \"Imposing\",\r\n\t\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\t\tdescription: desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of imposingness\",\r\n\t\t\t\t\t\"When my proficiency bonus applies to a Charisma check, I double that bonus\",\r\n\t\t\t\t]),\r\n\t\t\t},\r\n\t\t\tskillstxt : \"I gain expertise in any Charisma-based skill I'm proficient with\",\r\n\t\t\tskills : [[\"Deception\", \"only\"], [\"Intimidation\", \"only\"], [\"Performance\", \"only\"], [\"Persuasion\", \"only\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Divine Purity\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I become immune to disease and poison\"),\r\n\t\t\tsavetxt : { immune : [\"poison\", \"disease\"] }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"UA:SO\", 1]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my maximum hit points\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad, as well as Toby L.\r\nAddSubClass(\"sorcerer\", \"phoenix sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*phoenix)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Phoenix Sorcery\",\r\n\tsource : [[\"UA:SO\", 1]],\r\n\tfullname : \"Phoenix Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Ignite\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"As an action, I can magically ignite a flammable object by touching it with my hand\"),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Mantle of Flame\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can wreathe myself in fire for 1 minute, gaining these benefits:\",\r\n\t\t\t\t\" - I shed bright light in a 30-ft radius and dim light for an additional 30 ft\",\r\n\t\t\t\t\" - I deal my Charisma modifier in fire damage to all that touch me\",\r\n\t\t\t\t\" - I also deal this damage to all that hit me with a melee attack from within 5 ft\",\r\n\t\t\t\t\" - When I roll for fire damage on my turn, I add my Charisma damage to the result\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Phoenix Spark\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I am reduced to 0 HP, I can draw on the phoenix to stay at 1 HP\",\r\n\t\t\t\t\"All creatures within 10 ft of me take half my sorcerer level + my Cha mod fire damage\",\r\n\t\t\t\t\"If I have Mantle of Flame active, this damage is my sorcerer level + twice my Cha mod\",\r\n\t\t\t\t\"If I use this feature, my Mantle of Flame immediately ends\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn Math.floor(n / 2) + \"+Cha \\u007Cor\\u007C \" + n + \"+2\\xD7Cha\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Nourishing Fire\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell using a spell slot that includes a fire damage roll, I regain HP\",\r\n\t\t\t\t\"The HP regained is equal to the spell slot level + my Charisma modifier\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Form of the Phoenix\",\r\n\t\t\tsource : [[\"UA:SO\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my Mantle of Flame is active, I gain the following additional benefits:\",\r\n\t\t\t\t\"- I have a flying speed of 40 ft and can hover\",\r\n\t\t\t\t\"- I have resistance to all damage\",\r\n\t\t\t\t\"- If I use my Phoenix Spark, it deals an extra 20 fire damage to each creature\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [[\"All\", \"All (Mantle of Flame)\"]]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad\r\nAddSubClass(\"sorcerer\", \"sea sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*sea)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Sea Sorcery\",\r\n\tsource : [[\"UA:SO\", 2]],\r\n\tfullname : \"Sea Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Soul of the Sea\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I can breathe underwater and I have a swim speed equal to my walking speed\"),\r\n\t\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Curse of the Sea\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can curse a target that I hit with a cantrip or that fails its save against my cantrip\",\r\n\t\t\t\t\"This lasts until the end of my next turn or until I curse another target like this\",\r\n\t\t\t\t\"Once per turn when I cast a spell, I can trigger an active curse, if a condition is met\",\r\n\t\t\t\t\" - If spell dealt cold damage to it, its has -15 ft speed until the end of my next turn\",\r\n\t\t\t\t\" - If the spell dealt lightning damage to it, that damage is increased with my Cha mod\",\r\n\t\t\t\t\" - If the spell moved the target, it is moved an additional 15 ft\",\r\n\t\t\t\t\"Only one of these effects can be applied, even if the spell meets multiple conditions\",\r\n\t\t\t\t\"If the spell triggering the curse is a cantrip, the target stays cursed for another round\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Watery Defense\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain resistance to fire damage\",\r\n\t\t\t\t\"I can protect myself when an attack deals bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\"As a reaction when that happens, I reduce the damage by my sorcerer level + Charisma\",\r\n\t\t\t\t\"I can then also move up to 30 ft without provoking opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn n + \" + Charisma score\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tdmgres : [\"Fire\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Shifting Form\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain the ability to enter a liquid state while moving, squeezing through small spaces\",\r\n\t\t\t\t\"When I move on my turn, I take half damage from opportunity attacks\",\r\n\t\t\t\t\"I can move through any enemy's space, but can't willingly end my move in that space\",\r\n\t\t\t\t\"On my turn, I can move through any opening of at least 3 inches in diameter\",\r\n\t\t\t\t\"I can't end my move in a space smaller than one size category smaller than I am\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Water Soul\",\r\n\t\t\tsource : [[\"UA:SO\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to eat, drink, or sleep; Critical hits against me become normal hits\",\r\n\t\t\t\t\"I gain resistance to bludgeoning, piercing, and slashing damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Bludgeoning\", \"Piercing\", \"Slashing\"]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/SoilentBrad\r\nAddSubClass(\"sorcerer\", \"stone sorcery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*stone)(?=.*(sorcerer|sorcery|witch)).*$/i,\r\n\tsubname : \"Stone Sorcery\",\r\n\tsource : [[\"UA:SO\", 3]],\r\n\tfullname : \"Stone Sorcerer\",\r\n\tspellcastingExtra : [\"compelled duel\", \"searing smite\", \"thunderous smite\", \"wrathful smite\", \"branding smite\", \"magic weapon\", \"blinding smite\", \"elemental weapon\", \"staggering smite\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with shields, simple weapons and martial weapons\"),\r\n\t\t\tarmorProfs : [false, false, false, true],\r\n\t\t\tweaponProfs : [true, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Metal Magic\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My affinity for metal allows me to select from a broader range of spells\")\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Stone's Durability\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My hit point maximum increases by an amount equal to my sorcerer level\",\r\n\t\t\t\t\"As an action, I can gain an AC of 13 + Constitution modifier + shield\",\r\n\t\t\t\t\"This AC lasts until I don armor, I'm incapacitated, or use a bonus action to end it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (start)\"], ['bonus action', \" (end)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Stone's Durability (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*stone)(?=.*durability).*$/i,\r\n\t\t\t\tname : \"Stone's Durability\",\r\n\t\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\t\tac : \"13+Con\",\r\n\t\t\t\tdex : -10,\r\n\t\t\t\taffectsWildShape : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Stone Aegis\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can grant an aegis to an ally I can see within 60 ft of me\",\r\n\t\t\t\t\"The aegis reduces any bludgeoning, piercing, or slashing damage taken by the target\",\r\n\t\t\t\t\"This aegis lasts for 1 minute, until I use it again, or until I'm incapacitated\",\r\n\t\t\t\t\"As a reaction when the protected ally is attacked with a melee attack, I can teleport\",\r\n\t\t\t\t\"I can do this only if the attacker is within 60 ft of me and I can see it\",\r\n\t\t\t\t\"I teleport to an empty space next to it and make one melee weapon attack against it\",\r\n\t\t\t\t\"If this attack hits, the attack deals extra force damage\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\tif (n < 6) return \"\";\r\n\t\t\t\treturn (Math.floor(n / 4) + 2) + \" damage reduction; +\" + (n < 11 ? 1 : n < 17 ? 2 : 3) + \"d10 force damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"], ['reaction', 'Aegis Teleport']]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Stone's Edge\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per casting of a spell that deals damage, I can choose one creature damaged by it\",\r\n\t\t\t\t\"That creature takes extra force damage equal to half my sorcerer level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map( function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : Math.floor(n / 2) + \" force damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Earth Master's Aegis\",\r\n\t\t\tsource : [[\"UA:SO\", 4]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"My Stone's Aegis can now affect up to three creatures\")\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20170213_Warlock-and-Wizard.js",
    "content": "var iFileName = \"ua_20170213_Warlock-and-Wizard.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the content from the Unearthed Arcana: Warlock and Wizard article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:WnW\"] = {\r\n\tname : \"Unearthed Arcana: Warlock and Wizard\",\r\n\tabbreviation : \"UA:WnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/20170213_Wizrd_Wrlck_UAv2_i48nf.pdf\",\r\n\tdate : \"2017/02/13\"\r\n};\r\n\r\n// Adds 3 subclasses, 2 for the Warlock, and 1 for the Wizard\r\n//this code includes contributions by Greg N.\r\nAddSubClass(\"warlock\", \"the hexblade-ua\", {\r\n\tregExpSearch : /^(?=.*hexblade)(?=.*warlock).*$/i,\r\n\tsubname : \"the Hexblade\",\r\n\tsource : [[\"UA:WnW\", 1]],\r\n\tspellcastingExtra : [\"shield\", \"wrathful smite\", \"branding smite\", \"magic weapon\", \"blink\", \"elemental weapon\", \"phantasmal killer\", \"staggering smite\", \"cone of cold\", \"destructive wave\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Hex Warrior\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor, shields, and martial weapons\",\r\n\t\t\t\t\"With one-handed melee weapons I can use Charisma instead of Strength or Dexterity\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, true],\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && !(/((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?\\b/i).test(v.WeaponText) && What('Cha Mod') > What(AbilityScores.abbreviations[fields.Mod - 1] + ' Mod')) {\r\n\t\t\t\t\t\t\tfields.Mod = 6;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"For melee weapons that lack the two-handed property, I can use my Charisma instead of Strength or Dexterity.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hexblade's Curse\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can curse a creature I can see within 30 ft of me for 1 minute\",\r\n\t\t\t\t\" - I add my proficiency bonus to damage rolls against the cursed target\",\r\n\t\t\t\t\" - My attack rolls against the curse target score a critical hit on a roll of 19 and 20\",\r\n\t\t\t\t\" - If the target dies while cursed, I regain HP equal to my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : levels.map( function(n) { return n < 14 ? 1 : \"\"; }),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isDC && /hexblade/i.test(v.WeaponTextName) && !v.CritChance) {\r\n\t\t\t\t\t\t\tv.CritChance = 19;\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Crit on 19-20';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Hexblade' in the name of a weapon, the automation will treat the attack as being against a target of the Hexblade's Curse: adding my proficiency bonus to the damage and adding the increased chance of a critical hit to the description.\",\r\n\t\t\t\t\t19\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/hexblade/i).test(v.WeaponTextName)) output.extraDmg += output.prof;\r\n\t\t\t\t\t}, \"\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Shadow Hound\",\r\n\t\t\tsource : [[\"UA:WnW\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My shadow becomes a hound of pure darkness; Truesight reveals its nature\",\r\n\t\t\t\t\"As a bonus action, I can have it slip into the shadow of another I can see within 60 ft\",\r\n\t\t\t\t\"I know the distance/direction to the target; I ignore 1/2, 3/4 cover of the target\",\r\n\t\t\t\t\"My shadow returns to me if I use a bonus action to do so, I become incapacitated, \",\r\n\t\t\t\t\"a spell is used to stop it, or if one of us moves to another plane of existence\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Armor of Hexes\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Targets affected by my hexblade's curse have a 50% of missing me with any attack roll\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Hexes\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer need to rest to be able to use my Hexblade's Curse again\",\r\n\t\t\t\t\"However, when I curse a new target, the curse immediately ends on the previous target\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by Ben Y. and Wizzard\r\nAddSubClass(\"warlock\", \"the raven queen-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*\\braven)(?=.*queen\\b).*$/i,\r\n\tsubname : \"the Raven Queen\",\r\n\tsource : [[\"UA:WnW\", 2]],\r\n\tspellcastingExtra : [\"false life\", \"sanctuary\", \"silence\", \"spiritual weapon\", \"feign death\", \"speak with dead\", \"ice storm\", \"locate creature\", \"commune\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Sentinel Raven\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain the services of a spirit in the form of a raven (using the stats of a raven)\",\r\n\t\t\t\t\"It always obeys my commands, rolls its own initiative, and can be slain\",\r\n\t\t\t\t\"While it's within 100 ft, I can telepathically speak with it and see/hear what it does\",\r\n\t\t\t\t\"While it's on my shoulder, I gain Darkvision 30 ft and add my Cha mod to Perception\",\r\n\t\t\t\t\"While it's on my shoulder, it can't be targeted, take damage, or take actions\",\r\n\t\t\t\t\"It vanishes if it is more than 5 miles away from me, it dies, or if I die\",\r\n\t\t\t\t\"If it dies, I gain advantage on all attack rolls against its killer for 24 hours\",\r\n\t\t\t\t\"After a short rest, I can recall it to me regardless of its location or if it died\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", 30]],\r\n\t\t\taddMod : { type : \"skill\", field : \"Perc\", mod : \"max(Cha|0)\", text : \"While my sentinel raven is perched on my shoulder, I can add my Charisma modifier to Perception.\" },\r\n\t\t\tcreaturesAdd : [[\"Sentinel Raven\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Sentinel Raven\",\r\n\t\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\t\tsize : 5,\r\n\t\t\t\ttype : \"Beast\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : 12,\r\n\t\t\t\thp : 1,\r\n\t\t\t\thd : [1, 4],\r\n\t\t\t\tspeed : \"10 ft, fly 50 ft\",\r\n\t\t\t\tscores : [2, 14, 8, 2, 12, 6],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"perception\" : 3\r\n\t\t\t\t},\r\n\t\t\t\tpassivePerception : 13,\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Beak\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [1, \"\", \"piercing\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Mimicry\",\r\n\t\t\t\t\tdescription : \"The raven can mimic simple sounds it has heard, such as a person whispering, a baby crying, or an animal chittering. A creature that hears the sounds can tell they are imitations with a successful DC 10 Wisdom (Insight) check.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Sentinel\",\r\n\t\t\t\t\tdescription : \"The raven doesn't require sleep. While it is within 100 feet of me, it can awaken me from sleep as a bonus action.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Shoulder Perch\",\r\n\t\t\t\t\tdescription : \"While perched on my shoulder, the raven can't be targeted by any attack or other harmful effect; only I can cast spells on it; it can't take damage; and it is incapacitated. It then also grants me darkvision 30 ft and a bonus to my Wisdom (Perception) equal to my Charisma modifier.\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Sent by the Raven Queen\",\r\n\t\t\t\t\tdescription : \"The raven acts independently of me, but it always obeys my commands. In combat, it rolls its own initiative and acts on its own turn, but I control how it acts. If it is slain by a creature, I gain advantage on all attack rolls against the killer for the next 24 hours. While the raven is within 100 ft of me, I can telepathically command it and see through its eyes and hear what it hears.\\n   The raven vanishes when it dies, if I die, or if we are separated by more than 5 miles. At the end of a short or long rest, I can call the raven back to reappear within 5 ft of me, regardless where it is or if it died.\"\r\n\t\t\t\t}]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of the Raven\",\r\n\t\t\tsource : [[\"UA:WnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, when my raven is perched on my shoulder, I can merge our bodies\",\r\n\t\t\t\t\"I become tiny and replace my speed with the raven's (10 ft, fly 50 ft)\",\r\n\t\t\t\t\"I can then use my action only to Dash, Disengage, Dodge, Help, Hide, or Search\",\r\n\t\t\t\t\"While merged, I still get all the benefits of my raven being perched on my shoulder\",\r\n\t\t\t\t\"I can end this as an action\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (start)\"], ['action', ' (end)']]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Raven's Shield\",\r\n\t\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I can't be frightened, have advantage on death saves, and resistance to necrotic damage\"),\r\n\t\t\tsavetxt : { immune : [\"frightened\"], adv_vs : [\"death\"] },\r\n\t\t\tdmgres : [\"Necrotic\"]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Queen's Right Hand\",\r\n\t\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"I can cast Finger of Death once per long rest\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Queen's Right Hand\",\r\n\t\t\t\tspells : [\"finger of death\"],\r\n\t\t\t\tselection : [\"finger of death\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n//this code includes contributions by /u/magicmanfk\r\nAddSubClass(\"wizard\", \"lore mastery-ua\", { // Still valid 2021-09-21\r\n\tregExpSearch : /^(?=.*\\blore)(?=.*mastery?\\b).*$/i,\r\n\tsubname : \"Lore Mastery\",\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tfullname : \"Lore Master\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Lore Master\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use my Intelligence modifier for initiative instead of my Dexterity modifier\",\r\n\t\t\t\t\"I get expertise with each Arcana, History, Nature, and Religion, if I'm proficient with it\"\r\n\t\t\t]),\r\n\t\t\tskills : [[\"Arcana\", \"only\"], [\"History\", \"only\"], [\"Nature\", \"only\"], [\"Religion\", \"only\"]],\r\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int-Dex|0)\", text : \"I use my Intelligence modifier for initiative rolls instead of Dexterity.\" }\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spell Secrets: Elements\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can change the damage type of spells I cast using spell slots (so not cantrips)\",\r\n\t\t\t\t\"I can swap out acid, cold, fire, force, lightning, necrotic, radiant, or thunder damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2.2\" : {\r\n\t\t\tname : \"Spell Secrets: Saves\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I can change the saving throw ability score to another for a spell I cast using a spell slot\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Alchemical Casting\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell with a spell slot, I can expend one additional spell slot to augment it\",\r\n\t\t\t\t\" - 1st-level slot: one damage roll of the spell adds +2d10 force damage\",\r\n\t\t\t\t\" - 2nd-level slot: if the range of the spell is at least 30 ft, it becomes 1 mile\",\r\n\t\t\t\t\" - 3rd-level slot: the spell's save DC increases by 2\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Prodigious Memory\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"As a bonus action, I can replace one of my prepared spells with another from my book\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master of Magic\",\r\n\t\t\tsource : [[\"UA:WnW\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can call to mind one spell of my choice from any class' spell list\",\r\n\t\t\t\t\"This spell must be of a level I have spell slots for and that I don't already have prepared\",\r\n\t\t\t\t\"I can then cast it using the normal spellcasting rules, including expending a spell slot\",\r\n\t\t\t\t\"It counts a wizard spell; I can only cast the spell during the same turn I call it to mind\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add many new Warlock invocations\r\n// Most probably still valid 2021-09-21, have to check\r\nAddWarlockInvocation(\"Aspect of the Moon (prereq: the Archfey patron)\", {\r\n\tname : \"Aspect of the Moon\",\r\n\tdescription: desc(\"I don't need to sleep nor can be magically forced to; I can rest while doing light activity\"),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tsavetxt : { text : [\"Nothing can force me to sleep\"] }\r\n});\r\nAddWarlockInvocation(\"Burning Hex (prereq: the Hexblade patron)\", {\r\n\tname : \"Burning Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can cause a target affected by my hexblade's curse to take damage\",\r\n\t\t\"It immediately takes fire damage equal to my Charisma modifier (min 1)\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Caiphon's Beacon (prereq: the Great Old One patron)\", {\r\n\tname : \"Caiphon's Beacon\",\r\n\tdescription : desc([\r\n\t\t\"I gain proficiencies with the Deception and Stealth skills\",\r\n\t\t\"I have advantage on attack rolls against charmed creatures\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass); },\r\n\tskills : [\"Deception\", \"Stealth\"]\r\n});\r\nAddWarlockInvocation(\"Chilling Hex (prereq: the Hexblade patron)\", {\r\n\tname : \"Chilling Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can swirl frost around a target affected by my hexblade's curse\",\r\n\t\t\"All creatures within 5 ft of the target take cold damage equal to my Cha modifier (min 1)\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Chronicle of the Raven Queen (prereq: the Raven Queen patron, Pact of the Tome)\", {\r\n\tname : \"Chronicle of the Raven Queen\",\r\n\tdescription : desc([\r\n\t\t\"Within 1 minute of a creature's death, I can use my book of shadows to ask it 1 question\",\r\n\t\t\"To do this, I need to put the corpse's hand on the book and speak the question aloud\",\r\n\t\t\"Its spirit writes the answer, to the best of its knowledge, in blood in a language I choose\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tprereqeval : function(v) { return (/raven queen/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome'; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Claw of Acamar (prereq: the Great Old One patron, Pact of the Blade)\", {\r\n\tname : \"Claw of Acamar\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a black, lead flail with grasping tentacles for a head\",\r\n\t\t\"It has reach and can reduce a creature's speed to 0 on a hit until the end of my next turn\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 necrotic damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"flail\",\r\n\t\tregExpSearch : /^(?=.*\\bclaw\\b)(?=.*\\bacamar\\b).*$/i,\r\n\t\tname : \"Claw of Acamar\",\r\n\t\tsource : [[\"UA:WnW\", 3]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, reach; On hit: Reduces speed to 0, Expend spell slot for +2d8 necrotic damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Cloak of Baalzebul (prereq: the Fiend patron)\", {\r\n\tname : \"Cloak of Baalzebul\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can conjure or dismiss a swarm of buzzing flies around me\",\r\n\t\t\"This gives me adv. on Cha (Intimidation) checks, but disadv. on all other Charisma checks\",\r\n\t\t\"Creatures starting their turn within 5 ft of me take poison damage equal to my Cha mod\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 3]],\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \" (start/end)\"]]\r\n});\r\nAddWarlockInvocation(\"Curse Bringer (prereq: the Hexblade patron, Pact of the Blade)\", {\r\n\tname : \"Curse Bringer\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a silver greatsword with black runes etched in the blade\",\r\n\t\t\"If I bring a target of my hexblade's curse to 0 HP with it, I can move the curse to another\",\r\n\t\t\"It can reduce a creature's speed to 0 on a hit until the end of my next turn\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 slashing damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"greatsword\",\r\n\t\tregExpSearch : /^(?=.*\\bcurse)(?=.*bringer\\b).*$/i,\r\n\t\tname : \"Curse Bringer\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, heavy, two-handed; On hit: Reduces speed to 0, Expend spell slot for +2d8 slashing damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Kiss of Mephistopheles (prereq: level 5 warlock, the Fiend patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Kiss of Mephistopheles\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action when my Eldritch Blast hits, I can cast Fireball using a warlock spell slot\",\r\n\t\t\"The origin of the Fireball is the creature that was hit with my Eldritch Blast attack\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && classes.known.warlock.level >= 5 && (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Frost Lance (prereq: the Archfey patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Frost Lance\",\r\n\tdescription : desc([\r\n\t\t\"When my Eldritch Blast hits a creature once or more, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gaze of Khirad (prereq: level 7 warlock, the Great Old One patron)\", {\r\n\tname : \"Gaze of Khirad\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can see through solid object out to 30 ft until the end of my current turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 7; },\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Grasp of Hadar (prereq: the Great Old One patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Grasp of Hadar\",\r\n\tdescription : desc(\"Once per turn when my Eldritch Blast hits a creature, I can move it 10 ft closer to me\"),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/great old one/).test(classes.known.warlock.subclass); },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target moved 10 ft to me';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can move it in a straight line 10 ft closer to me.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Green Lord's Gift (prereq: the Archfey patron)\", {\r\n\tname : \"Green Lord's Gift\",\r\n\tdescription : desc([\r\n\t\t\"When I regain HP, all dice for determining the HP I heal are treated as rolling maximum\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and isn't a magic weapon\r\n\t\t\t\tif (v.pactWeapon && !output.magic && !v.theWea.isMagicWeapon) {\r\n\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +1 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Mace of Dispater (prereq: the Fiend patron, Pact of the Blade)\", {\r\n\tname : \"Mace of Dispater\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create an iron mace forged in Dis, the 2nd layer of the Nine Hells\",\r\n\t\t\"I can knock a target prone with it on a hit, if the target's size is Huge or smaller\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 force damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"mace\",\r\n\t\tregExpSearch : /^(?=.*\\bmace\\b)(?=.*\\bdispater\\b).*$/i,\r\n\t\tname : \"Mace of Dispater\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon; On hit: knock Huge or smaller prone, Expend spell slot for +2d8 force damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Moon Bow (prereq: the Archfey patron, Pact of the Blade)\", {\r\n\tname : \"Moon Bow\",\r\n\tdescription : desc([\r\n\t\t\"As a pact weapon, I can create a longbow that creates arrows of white wood when drawn\",\r\n\t\t\"Its arrows last for 1 minute; I have advantage on attack rolls against lycanthropes with it\",\r\n\t\t\"On a hit, I can expend a spell slot to have it do +2d8 radiant damage per spell slot level\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 3 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"longbow\",\r\n\t\tregExpSearch : /^(?=.*\\bmoon)(?=.*bow\\b).*$/i,\r\n\t\tname : \"Moon Bow\",\r\n\t\tsource : [[\"UA:WnW\", 4]],\r\n\t\tpactWeapon : true,\r\n\t\tdescription : \"Pact weapon, heavy, two-handed; Adv. vs. lycanthropes; On hit, expend spell slot for +2d8 radiant damage per slot level\",\r\n\t\tselectNow : true\r\n\t}]\r\n});\r\nAddWarlockInvocation(\"Path of the Seeker (prereq: the Seeker patron)\", {\r\n\tname : \"Path of the Seeker\",\r\n\tdescription : desc([\r\n\t\t\"I ignore difficult terrain; I have advantage on saving throws against being paralyzed\",\r\n\t\t\"I also have advantage on checks to escape a grapple, manacles, or rope bindings\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tprereqeval : function(v) { return (/\\bseeker\\b/).test(classes.known.warlock.subclass); },\r\n\tsavetxt : { adv_vs : [\"paralyzed\"] }\r\n});\r\nAddWarlockInvocation(\"Raven Queen's Blessing (prereq: the Raven Queen patron, Eldritch Blast cantrip)\", {\r\n\tname : \"Raven Queen's Blessing\",\r\n\tdescription : desc([\r\n\t\t\"When I score a critical hit with Eldritch Blast, I can choose an ally I can see within 30 ft\",\r\n\t\t\"That ally can immediately expend one HD to regain HP, just like after a short rest\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && (/raven queen/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 5 warlock, the Hexblade patron)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport next to a target affected by my hexblade's curse\",\r\n\t\t\"To do so, I must see the target and the space I'm teleporting to, and be within 30 ft of it\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return (/hexblade/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Sea Twins' Gift (prereq: the Archfey patron)\", {\r\n\tname : \"Sea Twins' Gift\",\r\n\tdescription : desc([\r\n\t\t\"I can breathe underwater and I have a swim speed equal to my walking speed\",\r\n\t\t\"Once per long rest, I can cast Water Breathing using a warlock spell slot (PHB 287)\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sea Twins' Gift\",\r\n\t\tspells : [\"water breathing\"],\r\n\t\tselection : [\"water breathing\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\barchfey\\b/).test(classes.known.warlock.subclass); },\r\n\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n});\r\nAddWarlockInvocation(\"Seeker's Speech (prereq: the Seeker patron)\", {\r\n\tname : \"Seeker's Speech\",\r\n\tdescription : desc([\r\n\t\t\"When I finish a long rest, I pick two languages that I know until I finish my next long rest\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\bseeker\\b/).test(classes.known.warlock.subclass); }\r\n});\r\nAddWarlockInvocation(\"Shroud of Ulban (prereq: level 18 warlock, the Great Old One patron)\", {\r\n\tname : \"Shroud of Ulban\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can turn myself invisible for 1 minute\",\r\n\t\t\"If I attack, deal damage, or force a creature to make a save, I become visible again\",\r\n\t\t\"However, I only become visible at the end of the current turn\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 4]],\r\n\tsubmenu : \"[warlock level 18+]\",\r\n\tprereqeval : function(v) { return (/great old one/).test(classes.known.warlock.subclass) && classes.known.warlock.level >= 18; },\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Superior Pact Weapon (prereq: level 9 warlock, Pact of the Blade)\", {\r\n\tname : \"Superior Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +2 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus in its name, is not a magic weapon, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tvar iPactWeaBonus = 2;\r\n\t\t\t\tif (v.pactWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && ((!v.pactMag && !output.magic) || (v.pactMag && v.pactMag < iPactWeaBonus))) {\r\n\t\t\t\t\tif (v.pactMag) output.magic -= v.pactMag;\r\n\t\t\t\t\tv.pactMag = iPactWeaBonus;\r\n\t\t\t\t\toutput.magic += v.pactMag;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +2 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Tomb of Levistus (prereq: the Fiend patron)\", {\r\n\tname : \"Tomb of Levistus\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when I take damage, I can entomb myself in ice until the end of my turn\",\r\n\t\t\"I get 10 temp. HP per warlock level, which can be used to absorb the triggering damage\",\r\n\t\t\"Until the ice is gone, I have vulnerability to fire damage, 0 speed, and am incapacitated\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tprereqeval : function(v) { return (/\\bfiend\\b/).test(classes.known.warlock.subclass); },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Ultimate Pact Weapon (prereq: level 15 warlock, Pact of the Blade)\", {\r\n\tname : \"Ultimate Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"Any pact weapon I create is a +3 magic weapon, if it isn't already a magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:WnW\", 5]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 15 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus in its name, is not a magic weapon, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tvar iPactWeaBonus = 3;\r\n\t\t\t\tif (v.pactWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && ((!v.pactMag && !output.magic) || (v.pactMag && v.pactMag < iPactWeaBonus))) {\r\n\t\t\t\t\tif (v.pactMag) output.magic -= v.pactMag;\r\n\t\t\t\t\tv.pactMag = iPactWeaBonus;\r\n\t\t\t\t\toutput.magic += v.pactMag;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name or gets it from somewhere else and is not a magic weapon, the calculation will add +3 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20170313_The-Mystic-Class.js",
    "content": "var iFileName = \"ua_20170313_The-Mystic-Class.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: The Mystic Class article to MPMB's Character Record Sheet\r\n// WARNING: there are no published multiclassing rules for Mystic; the ones provided here are extrapolated from other classes\r\n\r\n// Define the source\r\nSourceList[\"UA:TMC\"] = {\r\n\tname : \"Unearthed Arcana: The Mystic Class\",\r\n\tabbreviation : \"UA:TMC\",\t\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UAMystic3.pdf\",\r\n\tdate : \"2017/03/13\"\r\n};\r\n\r\n// Add spell schools\r\nspellSchoolList[\"Avatar\"] = \"avatar\";\r\nspellSchoolList[\"Awake\"]  = \"awakened\";\r\nspellSchoolList[\"Immor\"]  = \"immortal\";\r\nspellSchoolList[\"Nomad\"]  = \"nomad\";\r\nspellSchoolList[\"Wu Jen\"] = \"wu jen\";\r\n\r\n// Adds a new class, the Mystic, with 6 subclasses\r\nClassList.mystic = {\r\n\tregExpSearch : /psion\\b|mystic/i,\r\n\tname : \"Mystic\",\r\n\tsource : [[\"UA:TMC\", 1]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Wis\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Insight, Medicine, Nature, Perception, and Religion\"\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, false, false, false]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false]\r\n\t},\r\n\tequipment : \"Mystic starting equipment:\\n \\u2022 A spear -or- a mace;\\n \\u2022 Leather mail -or- studded leather armor;\\n \\u2022 A light crossbow and 20 bolts -or- any simple weapon;\\n \\u2022 A scholar's pack -or- an explorer's pack.\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Mystic Order\", []],\r\n\tsubclassGainedLevel : 1,\r\n\tattacks : [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n\tspellcastingFactor : \"psionic0\",\r\n\tspellcastingKnown : {\r\n\t\tcantrips : levels.map(function (n) { return n < 3 ? 1 : n < 10 ? 2 : n < 17 ? 3 : 4; }),\r\n\t\tspells : levels.map(function (n) { return n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : n < 12 ? 5 : n < 15 ? 6 : n < 18 ? 7 : 8; })\r\n\t},\r\n\tspellcastingList : {\r\n\t\t\"class\" : \"mystic\",\r\n\t\tpsionic : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"psi points\" : {\r\n\t\t\tname : \"Psi Points\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I use psi points to fuel my psionic disciplines, up to my psi limit per instance\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 4 : n < 3 ? 6 : n < 4 ? 14 : n < 5 ? 17 :\r\n\t\t\t\tn < 6 ? 27 : n < 7 ? 32 : n < 8 ? 38 : n < 9 ? 44 : n < 10 ? 57 :\r\n\t\t\t\tn < 18 ? 64 : 71;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 3 ? 2 : n < 5 ? 3 : n < 7 ? 5 : n < 9 ? 6 : 7) + \" psi limit\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"psionics\" : {\r\n\t\t\tname : \"Psionics\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use psionic talents/disciplines that I know, using Intelligence as my psionic ability\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tvar talent = n < 3 ? \"1 talent\" : (n < 10 ? 2 : n < 17 ? 3 : 4) + \" talents\";\r\n\t\t\t\tvar discpl = n < 3 ? \"1 discipline\" : (n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : n < 12 ? 5 : n < 15 ? 6 : n < 18 ? 7 : 8) + \" disciplines\";\r\n\t\t\t\treturn talent + \" \\u0026 \" + discpl + \" known\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"psychic focus\" : {\r\n\t\t\tname : \"Psychic Focus\",\r\n\t\t\tsource : [[\"UA:TMC\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can choose one of my psionic disciplines and gain its focus benefit\",\r\n\t\t\t\t\"I can only focus on one at a time; It stays until I focus on another, or I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Mystic Order\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc('Choose a Mystic Order that shapes the nature of your rage and put it in the \"Class\" field')\r\n\t\t},\r\n\t\t\"mystical recovery\" : {\r\n\t\t\tname : \"Mystical Recovery\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action after using psi points on a discipline, I can regain HP per point spent\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"telepathy\" : {\r\n\t\t\tname : \"Telepathy\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can telepathically speak to creatures I can see within 120 ft, if they know a language\" // 'to' not 'with', so one-way\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"strength of mind\" : {\r\n\t\t\tname : \"Strength of Mind\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 4,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After a short rest, I can change my Wisdom save proficiency to another ability score\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"potent psionics\" : {\r\n\t\t\tname : \"Potent Psionics\",\r\n\t\t\tsource : [[\"UA:TMC\", 4]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\",\r\n\t\t\t\t\"In addition, I add my Intelligence modifier to my psionic talent damage rolls\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.mystic && classes.known.mystic.level > 7 && !v.isSpell) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.mystic.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\\n \\u2022 My psionic talents get my Intelligence modifier added to their damage roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (classes.known.mystic && classes.known.mystic.level > 7 && v.thisWeapon[3] && v.thisWeapon[4].indexOf('mystic') !== -1 && SpellsList[v.thisWeapon[3]].level === 0) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Int Mod');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic && spellObj.level == 0) {\r\n\t\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+|Acid, Cold, Fire, Lightning, or Thunder\", \"Int\", true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My psionic talents get my Intelligence modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"consumptive power\" : {\r\n\t\t\tname : \"Consumptive Power\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per long rest, I can use my HP to fuel a psionic discipline instead of psi points\",\r\n\t\t\t\t\"I lose the HP; My HP max is reduced with the same until I finish my next long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"psionic mastery\" : {\r\n\t\t\tname : \"Psionic Mastery\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain a pool of special psi points that last until I finish a long rest\",\r\n\t\t\t\t\"I can use these, without psi limit, for disciplines that require an action or bonus action\",\r\n\t\t\t\t\"I can use either these or psi points from my normal pool for a discipline, but not both\",\r\n\t\t\t\t\"I can concentrate on all disciplines that use these special points at the same time\",\r\n\t\t\t\t\"I lose concentration if I cast a discipline requiring concentration from my normal pool\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\tif (n < 11) return \"\";\r\n\t\t\t\treturn n < 13 ? 1 : n < 15 ? 2 : n < 17 ? 3 : 4;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 11) return \"\";\r\n\t\t\t\treturn \"pool of \" + (n < 15 ? 9 : 11) + \" psi points\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"psionic body\" : {\r\n\t\t\tname : \"Psionic Body\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I no longer age and I have resistance to bludgeoning, piercing, and slashing damage\",\r\n\t\t\t\t\"I'm immune to disease, poison damage, and the poisoned condition\",\r\n\t\t\t\t\"If I die, I have a 55% chance of discorporating instead and returning 1d3 days later\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { immune : [\"poison\", \"disease\"] },\r\n\t\t\tdmgres : [\"Bludgeoning\", \"Piercing\", \"Slashing\"]\r\n\t\t}\r\n\t}\r\n};\r\n// Order of the Avatar subclass for the Mystic\r\nAddSubClass(\"mystic\", \"avatar-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*avatar).*$/i,\r\n\tsubname : \"Order of the Avatar\",\r\n\tsource : [[\"UA:TMC\", 5]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, chosen from the avatar disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Avatar\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Armor Training\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and shields.\"),\r\n\t\t\tarmorProfs : [false, true, false, true]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Avatar of Battle\",\r\n\t\t\tsource : [[\"UA:TMC\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Allies within 30 ft of me gain +2 on initiative rolls while I'm not incapacitated\")\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Avatar of Healing\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Allies within 30 ft of me that get healed through a psionic discipline, get extra healing\",\r\n\t\t\t\t\"They add my Intelligence modifier to the HP regained, as long as I'm not incapacitated\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!What(\"Int Mod\") || What(\"Int Mod\") <= 0) return;\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"pr1-mend wounds\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"healed for \", \"healed for \" + What(\"Int Mod\") + \"+\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"pr2-restore health\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"1 HP\", (1 + What(\"Int Mod\")) + \" HP\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"I add my Intelligence modifier to the hit points I restore using my psionic disciplines.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Avatar of Speed\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Allies within 30 ft of me can use Dash as a bonus action while I'm not incapacitated\")\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Awakened subclass for the Mystic\r\nAddSubClass(\"mystic\", \"awakened-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*awakened).*$/i,\r\n\tsubname : \"Order of the Awakened\",\r\n\tsource : [[\"UA:TMC\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : \" [+2 awakened disciplines]\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Awake\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Awakened Talent\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with two skills of my choice, taken from the following list:\",\r\n\t\t\t\t\"Animal Handling, Deception, Insight, Intimidation, Investigation, Perception, Persuasion\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from: Animal Handling, Deception, Insight, Intimidation, Investigation, Perception, and Persuasion\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Investigation\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"By concentrating on an object I'm holding for 10 minutes, I learn the object's history\",\r\n\t\t\t\t\"I see/hear its surroundings the previous hour and know who hold it in the last 24 hours\",\r\n\t\t\t\t\"Also, for the next 24 hours, I can use an action to locate it and see its surroundings\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Surge\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can end my psychic focus to impose disadv. on a save vs. a discipline or talent I use\",\r\n\t\t\t\t\"Once I do this, I can't regain psychic focus in any discipline until I can use this again\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Spectral Form\",\r\n\t\t\tsource : [[\"UA:TMC\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become ghostly and move through objects and creatures for 10 min\",\r\n\t\t\t\t\"I also have resistance to all damage and move at half speed; I can end it as an action\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Immortal subclass for the Mystic\r\nAddSubClass(\"mystic\", \"immortal-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*immortal).*$/i,\r\n\tsubname : \"Order of the Immortal\",\r\n\tsource : [[\"UA:TMC\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, taken from the immortal disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Immor\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Immortal Durability\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My hit point maximum increases by an amount equal to my mystic level\",\r\n\t\t\t\t\"If not wearing armor or wielding a shield, my AC is 10 + my Dex mod + my Con mod\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.mystic) {\r\n\t\t\t\t\t\treturn [classes.known.mystic.level, \"Immortal Durability (mystic level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*immortal)(?=.*durability).*$/i,\r\n\t\t\t\tname : \"Immortal Durability\",\r\n\t\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\t\tac : \"10+Con\",\r\n\t\t\t\taffectsWildShape : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Resilience\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of each turn, I gain my Intelligence modifier in temporary HP (min 0)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Surge of Health\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can halve that damage, but end my psychic focus\",\r\n\t\t\t\t\"Once I do this, I can't regain psychic focus in any discipline until I can use this again\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Immortal Will\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I end my turn at 0 HP, I can use 5 psi points to regain mystic level + Con mod in HP\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 14) return \"\";\r\n\t\t\t\treturn \"HP: \" + n + \" + Constitution modifier\";\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Nomad subclass for the Mystic\r\nAddSubClass(\"mystic\", \"nomad-ua\", {\r\n\tregExpSearch : /^(?=.*(psion\\b|mystic))(?=.*nomad).*$/i,\r\n\tsubname : \"Order of the Nomad\",\r\n\tsource : [[\"UA:TMC\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know two additional psionic disciplines, taken from the nomad disciplines\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Nomad\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Breadth of Knowledge\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"After I finish a long rest, I gain two proficiencies in chosen language, tool, or skill\",\r\n\t\t\t\t\"These proficiencies last until I finish my next long rest\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Memory of One Thousand Steps\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when hit by an attack, I can teleport away, causing the attack to miss\",\r\n\t\t\t\t\"I can teleport to any empty space that I had occupied since the start of my last turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Superior Teleportation\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a psionic discipline to teleport, I can increase its distance by up to 10 ft\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"ns1-step of a dozen paces\" :\r\n\t\t\t\t\t\t\t\tvar addDist = What(\"Unit System\") === \"metric\" ? 3 : 10;\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+ (ft|m))/i, addDist + \"+$1\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"ns3-defensive step\" :\r\n\t\t\t\t\t\t\tcase \"ns4-there and back again\" :\r\n\t\t\t\t\t\t\t\tvar addDist = What(\"Unit System\") === \"metric\" ? 3 : 10;\r\n\t\t\t\t\t\t\t\tvar theDist = Number(spellObj.description.replace(/.*(\\d+) (ft|m).*/i, \"$1\"));\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+) (ft|m)/i, (theDist + addDist) + \" $2\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My psionic disciplines that teleport have 10 ft added to the distance of their teleportation.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Effortless Journey\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once during my turn, I can teleport instead of moving, up to my movement speed \",\r\n\t\t\t\t\"I subtracting the distance teleported from my remaining speed\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Soul Knife subclass for the Mystic\r\nAddSubClass(\"mystic\", \"soul knife-ua\", {\r\n\tregExpSearch : /^(?=.*soul\\b)(?=.*\\bknife).*$/i,\r\n\tsubname : \"Order of the Soul Knife\",\r\n\tsource : [[\"UA:TMC\", 7]],\r\n\tfullname : \"Soul Knife\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Martial Training\",\r\n\t\t\tsource : [[\"UA:TMC\", 7]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with medium armor and martial weapons\"),\r\n\t\t\tarmor : [false, true, false, false],\r\n\t\t\tweapons : [false, true]\t\t\t\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Soul Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can create or dismiss my soul knives on both my fists\",\r\n\t\t\t\t\"As a bonus action, I can parry with these to get +2 AC until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create/dismiss)\"], ['bonus action', ' Parry']],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bsoul)(?=.*(knives|knife|weapon)\\b).*$/i,\r\n\t\t\t\tname : \"Soul Knife\",\r\n\t\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Martial\",\r\n\t\t\t\tdamage : [1, 8, \"psychic\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Finesse, light\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Hone the Blade\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can spend psi points to give my soul knives a bonus to attack and damage for 10 min\",\r\n\t\t\t\t\"2 psi points: +1; 5 psi points: +2; 7 psi points: +4\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Consumptive Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I slay an enemy with a soul knife attack, I immediately regain 2 psi points\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Phantom Knife\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make one attack with my soul knife, treating the target's AC as 10\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n// Order of the Wu Jen subclass for the Mystic\r\nAddSubClass(\"mystic\", \"wu jen-ua\", {\r\n\tregExpSearch : /^(?=.*\\bwu\\b)(?=.*\\bjen\\b).*$/i,\r\n\tsubname : \"Order of the Wu Jen\",\r\n\tsource : [[\"UA:TMC\", 8]],\r\n\tfullname : \"Wu Jen\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : \" [+2 wu jen disciplines]\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Disciplines\",\r\n\t\t\t\t\"class\" : \"mystic\",\r\n\t\t\t\tschool : [\"Wu Jen\"],\r\n\t\t\t\tlevel : [1, 9],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tpsionic : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Hermit's Study\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with two skills of my choice, taken from the following list:\",\r\n\t\t\t\t\"Animal Handling|Arcana|History|Insight|Medicine|Nature|Perception|Religion|Survival\"\r\n\t\t\t]),\r\n\t\t\tskillstxt : \"Choose two from: Animal Handling, Arcana, History, Insight, Medicine, Nature, Perception, Religion, and Survival\"\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Elemental Attunement\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If a target's resistance reduces damage of one of my psionic disciplines, I can bypass it\",\r\n\t\t\t\t\"With 1 extra psi point for the discipline (psi limit permitting), the resistance is ignored\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Arcane Dabbler\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I know 3 wizard spells (1-3 level); When I gain a mystic level, I can swap one of these\",\r\n\t\t\t\t\"As a bonus action, I can use psi points to make spell slots; Last until my next long rest\",\r\n\t\t\t\t\"2 PP: 1st-level; 3 PP: 2nd-level; 5 PP: 3rd-level; 6 PP: 4th-level; 7 PP: 5th-level\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Arcane Dabbler\",\r\n\t\t\t\t\"class\" : \"wizard\",\r\n\t\t\t\tlevel : [1, 3],\r\n\t\t\t\ttimes : 3\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Elemental Mastery\",\r\n\t\t\tsource : [[\"UA:TMC\", 8]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage to which I have resistance, I can ignore that damage\",\r\n\t\t\t\t\"I gain immunity to that damage type until the start of my next turn\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// The Psionic Talents for the Mystic (with contributions by rabidknave)\r\nPsionicsList[\"beacon-ua-psy\"] = {\r\n\tname : \"Beacon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h (D)\",\r\n\tdescription : \"My body sheds bright light 20-ft rad and dim light 20-ft, in chosen color; dismiss as a bonus action\",\r\n\tdescriptionFull : \"As a bonus action, you cause bright light to radiate from your body in a 20-foot radius and dim light for an additional 20 feet. The light can be colored as you like. The light lasts for 1 hour, and you can extinguish it earlier as a bonus action.\"\r\n};\r\nPsionicsList[\"blade meld-ua-psy\"] = {\r\n\tname : \"Blade Meld\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"One-handed melee weapon I'm holding merges with hand; it can't be removed for the duration\",\r\n\tdescriptionFull : \"As a bonus action, a one-handed melee weapon you hold becomes one with your hand. For the next minute, you can't let go of the weapon nor can it be forced from your grasp.\"\r\n};\r\nPsionicsList[\"blind spot-ua-psy\"] = {\r\n\tname : \"Blind Spot\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 creature save or treats me as invisible until the end of my next turn\",\r\n\tdescriptionFull : \"As an action, you erase your image from the mind of one creature you can see within 120 feet of you; the target must succeed on a Wisdom saving throw, or you are invisible to it until the end of your next turn.\"\r\n};\r\nPsionicsList[\"delusion-ua-psy\"] = {\r\n\tname : \"Delusion\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"1 crea either hears a sound (whisper-scream), or sees up to 5-ft cube object that disappears on touch\",\r\n\tdescriptionFull : \"As an action, you plant a false belief in the mind of one creature that you can see within 60 feet of you. You can create a sound or an image. Only the target of this talent perceives the sound or image you create.\" + \"\\n   \" + \"If you create a sound, its volume can range from a whisper to a scream. It can be your voice, someone else's voice, a creature's roar, a musical instrument, or any other sound you pick. It lasts for 1 minute.\" + \"\\n   \" + \"If you create an object, it must fit within a 5-foot cube and can't move or be reflective. The image can't create any effect that influences a sense other than sight. The image lasts for 1 minute, and it disappears if the creature touches it.\"\r\n};\r\nPsionicsList[\"energy beam-ua-psy\"] = {\r\n\tname : \"Energy Beam\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or 1d8 Acid, Cold, Fire, Lightning, or Thunder dmg; +1d8 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d8 Acid, Cold, Fire, Lightning, or Thunder dmg\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 90 feet of you. The target must succeed on a Dexterity saving throw or take 1d8 acid, cold, fire, lightning, or thunder damage (your choice).\" + \"\\n   \" + \"The talent's damage increases by 1d8 when you reach 5th level (2d8), 11th level (3d8), and 17th level (4d8)\"\r\n};\r\nPsionicsList[\"light step-ua-psy\"] = {\r\n\tname : \"Light Step\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My walking speed increases by 10 ft; standing up costs 0 movement, once\",\r\n\tdescriptionFull : \"As a bonus action, you alter your density and weight to improve your mobility. For the rest of your turn, your walking speed increases by 10 feet, and the first time you stand up this turn, you do so without expending any of your movement if your speed is greater than 0.\"\r\n};\r\nPsionicsList[\"mind meld-ua-psy\"] = {\r\n\tname : \"Mind Meld\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 bns\",\r\n\trange : \"120 ft\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I communicate telepathically with 1 willing crea (int > 1) and gain access to 1 memory of theirs\",\r\n\tdescriptionFull : \"As a bonus action, you can communicate telepathically with one willing creature you can see within 120 feet of you. The target must have an Intelligence of at least 2, otherwise this talent fails and the action is wasted.\" + \"\\n   \" + \"This communication can occur until the end of the current turn. You don't need to share a language with the target for it to understand your telepathic utterances, and it understands you even if it lacks a language. You also gain access to one memory of the target's choice, gaining perfect recall of one thing it saw or did.\"\r\n};\r\nPsionicsList[\"mind slam-ua-psy\"] = {\r\n\tname : \"Mind Slam\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Force dmg, and knocked prone if Large or smaller; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Force dmg, and knocked prone if Large or smaller\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on a Constitution saving throw or take 1d6 force damage. If it takes any of this damage and is Large or smaller, it is knocked prone.\" + \"\\n   \" + \"The talent's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6)\"\r\n};\r\nPsionicsList[\"mind thrust-ua-psy\"] = {\r\n\tname : \"Mind Thrust\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10 Psychic dmg; +1d10 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d10 Psychic dmg\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 120 feet of you. The target must succeed on an Intelligence saving throw or take 1d10 psychic damage.\" + \"\\n   \" + \"The talent's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nPsionicsList[\"mystic charm-ua-psy\"] = {\r\n\tname : \"Mystic Charm\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 humanoid save or charmed until end of my next turn\",\r\n\tdescriptionFull : \"As an action, you beguile one humanoid you can see within 120 feet of you. The target must succeed on a Charisma saving throw or be charmed by you until the end of your next turn.\"\r\n};\r\nPsionicsList[\"mystic hand-ua-psy\"] = {\r\n\tname : \"Mystic Hand\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"Move 1 unattended object (up to 10 lbs) up to 30 ft, or manipulate an object\",\r\n\tdescriptionFull : \"You can use your action to manipulate or move one object within 30 feet of you. The object can't weigh more than 10 pounds, and you can't affect an object being worn or carried by another creature. If the object is loose, you can move it up to 30 feet in any direction.\" + \"\\n   \" + \"This talent allows you to open an unlocked door, pour out a beer stein, and so on.\" + \"\\n   \" + \"The object falls to the ground at the end of your turn if you leave it suspended in midair.\"\r\n};\r\nPsionicsList[\"psychic hammer-ua-psy\"] = {\r\n\tname : \"Psychic Hammer\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tpsionic : true,\r\n\tlevel : 0,\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1d6 Force dmg and moved up to 10 ft in chosen direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Force dmg and moved up to 10 ft in chosen direction\",\r\n\tdescriptionFull : \"As an action, you try to grasp one creature you can see within 120 feet of you, with a hand crafted from telekinetic energy. The target must succeed on a Strength saving throw or take 1d6 force damage. If it takes any of this damage and is Large or smaller, you can move it up to 10 feet in a straight line in a direction of your choice. You can't lift the target off the ground unless it is already airborne or underwater.\" + \"\\n   \" + \"The talent's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\n\r\n// Psionic Disciplines for the Mystic\r\n//the adaptive body discipline\r\nPsionicsList[\"adaptive body-ua-psy\"] = {\r\n\tname : \"Adaptive Body\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I don't need to eat, breathe, or sleep; I can long rest with 8 hours of light activity, without sleep\",\r\n\tdescriptionFull : \"You can alter your body to match your surroundings, allowing you to withstand punishing environments. With greater psi energy, you can extend this protection to others.\" + PsychicFocus + \"While focused on this discipline, you don't need to eat, breathe, or sleep. To gain the benefits of a long rest, you can spend 8 hours engaged in light activity, rather than sleeping during any of it.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ab1-environmental adaptation\", \"ab2-adaptive shield\", \"ab3-energy adaptation\", \"ab4-energy immunity\"]\r\n};\r\nPsionicsList[\"ab1-environmental adaptation\"] = {\r\n\tname : \"Environmental Adaptation\",\r\n\tnameShort : \"Environmental Adapt.\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"1 creature ignores the effects of extreme heat or cold (but not Fire or Cold damage)\",\r\n\tdescriptionFull : \"As an action, you or a creature you touch ignores the effects of extreme heat or cold (but not cold or fire damage) for the next hour.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ab2-adaptive shield\"] = {\r\n\tname : \"Adaptive Shield\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take acid, cold, fire, lightning, or thunder damage\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"If taking Acid, Cold, Fire, Lightning, or Thunder damage, gain resistance to it until end of next turn\",\r\n\tdescriptionFull : \"When you take acid, cold, fire, lightning, or thunder damage, you can use your reaction to gain resistance to damage of that type -including the triggering damage- until the end of your next turn.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ab3-energy adaptation\"] = {\r\n\tname : \"Energy Adaptation\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 creature gains resistance to either Acid, Cold, Fire, Lightning, or Thunder damage\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and give it resistance to acid, cold, fire, lightning, or thunder damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ab4-energy immunity\"] = {\r\n\tname : \"Energy Immunity\",\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 creature gains immunity to either Acid, Cold, Fire, Lightning, or Thunder damage\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and give it immunity to acid, cold, fire, lightning, or thunder damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the aura sight discipline (contributed by Justin W.)\r\nPsionicsList[\"aura sight-ua-psy\"] = {\r\n\tname : \"Aura Sight\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 10]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Wisdom (Insight) checks\",\r\n\tdescriptionFull : \"You refocus your sight to see the energy that surrounds all creatures. You perceive auras, energy signatures that can reveal key elements of a creature's nature.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Wisdom (Insight) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"as1-asses foe\", \"as2-read moods\", \"as3-view aura\", \"as4-perceive the unseen\"]\r\n};\r\nPsionicsList[\"as1-asses foe\"] = {\r\n\tname : \"Asses Foe\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn one creature's current HP total and all its immunities, resistances, and vulnerabilities\",\r\n\tdescriptionFull : \"As a bonus action, you analyze the aura of one creature you see. You learn its current hit point total and all its immunities, resistances, and vulnerabilities.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"as2-read moods\"] = {\r\n\tname : \"Read Moods\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn an one-word summary of the emotional state of up to 6 crea\",\r\n\tdescriptionFull : \"As a bonus action, you learn a one-word summary of the emotional state of up to six creatures you can see, such as happy, confused, afraid, or violent.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"as3-view aura\"] = {\r\n\tname : \"View Aura\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Monitor 1 crea: current HP, if magic effects it, basic emotional state; adv. on Insight/Cha checks vs. it\",\r\n\tdescriptionFull : \"As an action, you study one creature's aura. Until your concentration ends, while you can see the target, you learn if it's under the effect of any magical or psionic effects, its current hit point total, and its basic emotional state. While this effect lasts, you have advantage on Wisdom (Insight) and Charisma checks you make against it.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"as4-perceive the unseen\"] = {\r\n\tname : \"Perceive the Unseen\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"See all creatures, including hidden and invisible ones, regardless of lighting conditions\",\r\n\tdescriptionFull : \"As a bonus action, you gain the ability to see auras even of invisible or hidden creatures. Until your concentration ends, you can see all creatures, including hidden and invisible ones, regardless of lighting conditions.\",\r\n\tfirstCol : 5\r\n};\r\n//the bestial form discipline (contributed by rabidknave)\r\nPsionicsList[\"bestial form-ua-psy\"] = {\r\n\tname : \"Bestial Form\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Wisdom (Animal Handling) checks\",\r\n\tdescriptionFull : \"You transform your body, gaining traits of different beasts.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Wisdom (Animal Handling) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"bf1-bestial claws\", \"bf2-bestial transformation\", \"bf3-bt - amphibious\", \"bf4-bt - climbing\", \"bf5-bt - flight\", \"bf6-bt - keen senses\", \"bf7-bt - perfect senses\", \"bf8-bt - swimming\", \"bf9-bt - tough hide\"]\r\n};\r\nPsionicsList[\"bf1-bestial claws\"] = {\r\n\tname : \"Bestial Claws\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee weapon attack with manifested claw, dealing 1d10/PP Slashing dmg\",\r\n\tdescriptionFull : \"You manifest long claws for an instant and make a melee weapon attack against one creature within 5 feet of you. On a hit, this attack deals 1d10 slashing damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf2-bestial transformation\"] = {\r\n\tname : \"Bestial Transformation\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"Alter physique to gain one or more of following effects; sum PP cost for a single use; end with bns a\",\r\n\tdescriptionFull : \"As a bonus action, you alter your physical form to gain different characteristics. When you use this ability, you can choose one or more of the following effects. Each effect has its own psi point cost. Add them together to determine the total cost. This transformation lasts for 1 hour, until you die, or until you end it as a bonus action.\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"bf3-bt - amphibious\"] = {\r\n\tname : \" - Amphibious\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I'm able to breathe air and water by gaining gills\",\r\n\tdescriptionFull : \"You gain gills; you can breathe air and water\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf4-bt - climbing\"] = {\r\n\tname : \" - Climbing\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain climbing speed equal to my walking speed by growing tiny hooked claws\",\r\n\tdescriptionFull : \"You grow tiny hooked claws that give you gain a climbing speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf5-bt - flight\"] = {\r\n\tname : \" - Flight\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain flying speed equal to my walking speed by sprouting wings\",\r\n\tdescriptionFull : \"Wings sprout from your back. You gain a flying speed equal to your walking speed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"bf6-bt - keen senses\"] = {\r\n\tname : \" - Keen Senses\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain advantage on Wisdom (Perception) checks through more sensitive eyes and ears\",\r\n\tdescriptionFull : \"Your eyes and ears become more sensitive. You gain advantage on Wisdom (Perception) checks.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf7-bt - perfect senses\"] = {\r\n\tname : \" - Perfect Senses\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I see invisible creatures/objects within 10 ft, even when blinded, through smell\",\r\n\tdescriptionFull : \"You gain a keen sense of smell and an instinct to detect prey. You can see invisible creatures and objects within 10 feet of you, even if you are blinded.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"bf8-bt - swimming\"] = {\r\n\tname : \" - Swimming\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain swimming speed equal to my walking speed by growing fins and webbed feet/hands\",\r\n\tdescriptionFull : \"You gain fins and webbing between your fingers and toes; you gain a swimming speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"bf9-bt - tough hide\"] = {\r\n\tname : \" - Tough Hide\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"\",\r\n\trange : \"Self\",\r\n\tduration : \"1 hr (D)\",\r\n\tdescription : \"I gain +2 bonus to AC through thicker skin\",\r\n\tdescriptionFull : \"Your skin becomes as tough as leather; you gain a +2 bonus to AC.\",\r\n\tfirstCol : 2\r\n};\r\n//the brute force discipline (contributed by rabidknave)\r\nPsionicsList[\"brute force-ua-psy\"] = {\r\n\tname : \"Brute Force\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Strength (Athletics) checks\",\r\n\tdescriptionFull : \"You augment your natural strength with psionic energy, granting you the ability to achieve incredible feats of might.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Strength (Athletics) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"bf1-brute strike\", \"bf2-knock back\", \"bf3-mighty leap\", \"bf4-feat of strength\"]\r\n};\r\nPsionicsList[\"bf1-brute strike\"] = {\r\n\tname : \"Brute Strike\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My next melee attack during this turn deals +1d6/PP damage, of the same type as the melee attack\",\r\n\tdescriptionFull : \"As a bonus action, you gain a bonus to your next damage roll against a target you hit with a melee attack during the current turn. The bonus equals +1d6 per psi point spent, and the bonus damage is the same type as the attack. If the attack has more than one damage type, you choose which one to use for the bonus damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf2-knock back\"] = {\r\n\tname : \"Knock Back\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you hit a target with a melee attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"Use after melee atk hit; crea hit save or move 10 ft/PP away; if it then hits obj, 1d6/PP Bludg. dmg\", //added the damage\r\n\tdescriptionFull : \"When you hit a target with a melee attack, you can activate this ability as a reaction. The target must succeed on a Strength saving throw or be knocked 10 feet away from you per psi point spent. The target moves in a straight line. If it hits an object, this movement immediately ends and the target takes 1d6 bludgeoning damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf3-mighty leap\"] = {\r\n\tname : \"Mighty Leap\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"Move\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"As part of my movement, jump 20 ft/PP in any direction\",\r\n\tdescriptionFull : \"As part of your movement, you jump in any direction up to 20 feet per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"bf4-feat of strength\"] = {\r\n\tname : \"Feat of Strength\",\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain +5 bonus to Strength checks until the end of next turn\",\r\n\tdescriptionFull : \"As a bonus action, you gain a +5 bonus to Strength checks until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\n//the celerity discipline (contributed by rabidknave)\r\nPsionicsList[\"celerity-ua-psy\"] = {\r\n\tname : \"Celerity\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My walking speed increases by 10 ft\",\r\n\tdescriptionFull : \"You channel psionic power into your body, honing your reflexes and agility to an incredible degree. The world seems to slow down while you continue to move as normal.\" + PsychicFocus + \"While focused on this discipline, your walking speed increases by 10 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"c1-rapid step\", \"c2-agile defense\", \"c3-blur of motion\", \"c4-surge of speed\", \"c5-surge of action\"]\r\n};\r\nPsionicsList[\"c1-rapid step\"] = {\r\n\tname : \"Rapid Step\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"My walking, swim, and climb speeds increases by 10 ft/PP; doesn't grant new movement modes\",\r\n\tdescriptionFull : \"As a bonus action, you increase your walking speed by 10 feet per psi point spent until the end of the current turn. If you have a climbing or swimming speed, this increase applies to that speed as well.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"c2-agile defense\"] = {\r\n\tname : \"Agile Defense\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I can take the Dodge action now, as part of using this power\",\r\n\tdescriptionFull : \"As a bonus action, you take the Dodge action.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c3-blur of motion\"] = {\r\n\tname : \"Blur of Motion\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I'm invisible while moving during the current turn\",\r\n\tdescriptionFull : \"As an action, you cause yourself to be invisible during any of your movement during the current turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c4-surge of speed\"] = {\r\n\tname : \"Surge of Speed\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I don't provoke opportunity attacks and gain a climbing speed equal to my walking speed\",\r\n\tdescriptionFull : \"As a bonus action, you gain two benefits until the end of the current turn: you don't provoke opportunity attacks, and you have a climbing speed equal to your walking speed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"c5-surge of action\"] = {\r\n\tname : \"Surge of Action\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I can take either the Dash action or make one weapon attack now, as part of using this power\",\r\n\tdescriptionFull : \"As a bonus action, you can Dash or make one weapon attack.\",\r\n\tfirstCol : 5\r\n};\r\n//the corrosive metabolism discipline (contributed by rabidknave)\r\nPsionicsList[\"corrosive metabolism-ua-psy\"] = {\r\n\tname : \"Corrosive Metabolism\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 11]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Acid and Poison damage\",\r\n\tdescriptionFull : \"Your control over your body allows you to deliver acid or poison attacks.\" + PsychicFocus + \"While focused on this discipline, you have resistance to acid and poison damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cm1-corrosive touch\", \"cm2-venom strike\", \"cm3-acid spray\", \"cm4-breath of the black dragon\", \"cm5-breath of the green dragon\"]\r\n};\r\nPsionicsList[\"cm1-corrosive touch\"] = {\r\n\tname : \"Corrosive Touch\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\", //use \"Touch\" instead of \"5 ft\" when its about reach\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 1d10/PP Acid damage; save halves\", // use \"; save halves\" for this kind of situations\r\n\tdescriptionFull : \"As an action, you deliver a touch of acid to one creature within your reach. The target must make a Dexterity saving throw, taking 1d10 acid damage per psi point spent on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cm2-venom strike\"] = {\r\n\tname : \"Venom Strike\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea 1d6/PP Poison damage; save halves; if save failed, poisoned until end of my next turn\",\r\n\tdescriptionFull : \"As an action, you create a poison spray that targets one creature you can see within 30 feet of you. The target must make a Constitution saving throw. On a failed save, it takes 1d6 poison damage per psi point spent and is poisoned until the end of your next turn. On a successful save, the target takes half as much damage and isn't poisoned.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cm3-acid spray\"] = {\r\n\tname : \"Acid Spray\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you take piercing or slashing damage\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use after I take Piercing or Slashing damage; all creatures in range take 2d6 Acid damage\",\r\n\tdescriptionFull : \"As a reaction when you take piercing or slashing damage, you cause acid to spray from your wound; each creature within 5 feet of you takes 2d6 acid damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cm4-breath of the black dragon\"] = {\r\n\tname : \"Breath of the Black Dragon\",\r\n\tnameShort : \"Breath o/t Black Dragon\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"60-ft long 5-ft wide line all creatures 6d6(+1d6/extra PP) Acid dmg; save halves\",\r\n\tdescriptionFull : \"You exhale a wave of acid in a 60-foot line that is 5 feet wide. Each creature in the line must make a Constitution saving throw, taking 6d6 acid damage on a failed save, or half as much on a successful one. You can increase the damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"cm5-breath of the green dragon\"] = {\r\n\tname : \"Breath of the Green Dragon\",\r\n\tnameShort : \"Breath o/t Green Dragon\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"90-ft cone\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"All creatures 10d6 poison damage; save halves\",\r\n\tdescriptionFull : \"You exhale a cloud of poison in a 90-foot cone. Each creature in the line must make a Constitution saving throw, taking 10d6 poison damage on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : 7\r\n};\r\n//the crown of despair discipline (contributed by rabidknave)\r\nPsionicsList[\"crown of despair-ua-psy\"] = {\r\n\tname : \"Crown of Despair\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Intimidation) checks\",\r\n\tdescriptionFull : \"You have learned to harvest seeds of despair in a creature's psyche, wracking it with self-doubt and inaction.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Intimidation) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cd1-crowned in sorrow\", \"cd2-call to inaction\", \"cd3-visions of despair\", \"cd4-dolorous mind\"]\r\n};\r\nPsionicsList[\"cd1-crowned in sorrow\"] = {\r\n\tname : \"Crowned in Sorrow\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn start\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea 1d8/PP Psychic dmg and can't take reactions; save halves damage and normal reactions\",\r\n\tdescriptionFull : \"As an action, one creature you can see within 60 feet of you must make a Charisma saving throw. On a failed save, it takes 1d8 psychic damage per psi point spent, and it can't take reactions until the start of its next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cd2-call to inaction\"] = {\r\n\tname : \"Call to Inaction\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"After 1 min conversation, 1 crea save or incapacitated; ends if it or its ally is attacked (charm effect)\",\r\n\tdescriptionFull : \"If you spend 1 minute conversing with a creature, you can attempt to seed it with overwhelming ennui. At the end of the minute, you can use an action to force the creature to make a Wisdom saving throw. The save automatically succeeds if the target is immune to being charmed. On a failed save, it sits and is incapacitated until your concentration ends. This effect immediately ends if the target or any ally it can see is attacked or takes damage. On a successful save, the creature is unaffected and has no inkling of your attempt to bend its will.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cd3-visions of despair\"] = {\r\n\tname : \"Visions of Despair\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea 3d6(+1d6/extra PP) Psychic dmg and speed reduced to 0; save halves and no speed reduction\",\r\n\tdescriptionFull : \"As an action, you force one creature you can see within 60 feet of you to make a Charisma saving throw. On a failed save, it takes 3d6 psychic damage, and its speed is reduced to 0 until the end of its next turn. On a successful save, it takes half as much damage. You can increase the damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"cd4-dolorous mind\"] = {\r\n\tname : \"Dolorous Mind\",\r\n\tsource : [[\"UA:TMC\", 12]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or incapacitated and speed 0; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you choose one creature you can see within 60 feet of you. It must succeed on a Charisma saving throw, or it is incapacitated and has a speed of 0 until your concentration ends. It can repeat this saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 5\r\n};\r\n//the crown of disgust discipline\r\nPsionicsList[\"crown of disgust-ua-psy\"] = {\r\n\tname : \"Crown of Disgust\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"5-ft rad around me is difficult terrain for creatures that aren't immune to being frightened\",\r\n\tdescriptionFull : \"You cause a creature to be flooded with emotions of disgust.\" + PsychicFocus + \"While you are focused on this discipline, the area in a 5-foot radius around you is difficult terrain for any enemy that isn't immune to being frightened.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cd1-eye of horror\", \"cd2-wall of repulsion\", \"cd3-visions of disgust\", \"cd4-world of horror\"]\r\n};\r\nPsionicsList[\"cd1-eye of horror\"] = {\r\n\tname : \"Eye of Horror\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or 1d6/PP Psychic damage and can't move closer; save halves and no movement restriction\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Charisma saving throw. On a failed save, it takes 1d6 psychic damage per psi point spent and can't move closer to you until the end of its next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cd2-wall of repulsion\"] = {\r\n\tname : \"Wall of Repulsion\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"Up to 30\\xD71\\xD710 ft (l\\xD7w\\xD7h) invisible wall of energy; save to move through it, even for unwilling move\",\r\n\tdescription : \"Up to 9\\xD70,3\\xD73 m (l\\xD7w\\xD7h) invisible wall of energy; save to move through it, even for unwilling move\",\r\n\tdescriptionFull : \"As an action, you create an invisible, insubstantial wall of energy within 60 feet of you that is up to 30 feet long, 10 feet high, and 1 foot thick. The wall lasts until your concentration ends. Any creature attempting to move through it must make a Wisdom saving throw. On a failed save, a creature can't move through the wall until the start of its next turn. On a successful save, the creature can pass through it. A creature must make this save whenever it attempts to pass through the wall, whether willingly or unwillingly.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"cd3-visions of disgust\"] = {\r\n\tname : \"Visions of Disgust\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 5d6 Psychic dmg (half on save) & 1d6 Psychic dmg per crea within 5 ft at its turn end\",\r\n\tdescriptionFull : \"You cause a creature to regard all other beings as horrid, alien entities. As an action, choose one creature you can see within 60 feet of you. The target must make a Wisdom saving throw. On a failed save, it takes 5d6 psychic damage, and until your concentration ends, it takes 1d6 psychic damage per creature within 5 feet of it at the end of each of its turns. On a successful save, the target takes only half the initial damage and suffers none of the other effects.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"cd4-world of horror\"] = {\r\n\tname : \"World of Horror\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"6 crea 8d6 Psychic dmg, frightened, \\u0026 do only melee atks; save halves, no other effects; save each rnd\",\r\n\tdescriptionFull : \"As an action, choose up to six creatures within 60 feet of you. Each target must make a Charisma saving throw. On a failed save, a target takes 8d6 psychic damage, and it is frightened until your concentration ends. On a successful save, a target takes half as much damage.\" + \"\\n   \" + \"While frightened by this effect, a target's speed is reduced to 0, and the target can use its action, and any bonus action it might have, only to make melee attacks. The frightened target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the crown of rage discipline\r\nPsionicsList[\"crown of rage-ua-psy\"] = {\r\n\tname : \"Crown of Rage\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Any crea within range has disadvantage on melee attack rolls against targets other than me\",\r\n\tdescriptionFull : \"You place a mote of pure fury within a creature's mind, causing its bloodlust to overcome its senses and for it to act as you wish it to.\" + PsychicFocus + \"While you are focused on this discipline, any enemy within 5 feet of you that makes a melee attack roll against creatures other than you does so with disadvantage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"cr1-primal fury\", \"cr2-fighting words\", \"cr3-mindless courage\", \"cr4-punishing fury\"]\r\n};\r\nPsionicsList[\"cr1-primal fury\"] = {\r\n\tname : \"Primal Fury\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or 1d6/PP Psychic dmg, use rea to move its speed toward nearest enemy (charm effect)\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Charisma saving throw or take 1d6 psychic damage per psi point spent on this ability and immediately use its reaction to move its speed in a straight line toward its nearest enemy. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"cr2-fighting words\"] = {\r\n\tname : \"Fighting Words\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"After 1 min conversation, 1 crea save or attack one other, chosen crea for 5 rnds (charm effect)\",\r\n\tdescriptionFull : \"If you spend 1 minute conversing with a creature, you can attempt to leave a simmering violence in its mind. At the end of the minute, you can use an action to force the creature to make a Wisdom saving throw to resist feeling violent urges against one creature you describe to it or name. The save automatically succeeds if the target is immune to being charmed. On a failed save, the target attacks the chosen creature if it sees that creature before your concentration ends, using weapons or spells against a creature it was already hostile toward or unarmed strikes against an ally or a creature it was neutral toward. Once the fight starts, it continues to attack for 5 rounds before this effect ends. This effect immediately ends if the target or any ally it can see is attacked or takes damage from any creature other than the one it has been incited against. On a successful save, the creature is unaffected and has no inkling of your attempt to bend its will.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cr3-mindless courage\"] = {\r\n\tname : \"Mindless Courage\",\r\n\tsource : [[\"UA:TMC\", 13]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or it can only move towards the nearest enemy it can see, or not move at all (charm effect)\",\r\n\tdescriptionFull : \"You cause a creature's bloodlust to overcome its sense of preservation. As a bonus action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or, until the end of your next turn, it can't willingly move unless its movement brings it closer to its nearest enemy that it can see. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"cr4-punishing fury\"] = {\r\n\tname : \"Punishing Fury\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or when it makes melee atk, all in 5 ft of it can make melee atk vs. it as rea (charm effect)\",\r\n\tdescriptionFull : \"You cause a creature's rage to grow so hot that it attacks without heeding its own safety. As a bonus action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or, until your concentration ends, any creature within 5 feet of it can use a reaction to make a melee attack against it whenever the target makes a melee attack. The save automatically succeeds if the target is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\n//the diminution discipline (contributed by mattohara & TheBob427)\r\nPsionicsList[\"diminution-ua-psy\"] = {\r\n\tname : \"Diminution\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I have advantage on Dexterity (Stealth) checks\",\r\n\tdescriptionFull : \"You manipulate the matter that composes your body, drastically reducing your size without surrendering any of your might.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Dexterity (Stealth) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"d1-miniature form\", \"d2-toppling shift\", \"d3-sudden shift\", \"d4-microscopic form\"]\r\n};\r\nPsionicsList[\"d1-miniature form\"] = {\r\n\tname : \"Miniature Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : 'Become Tiny, gain +5 to Dex (Stealth) and can fit through gaps of up to 6\" without squeezing',\r\n\tdescriptionMetric : \"Become Tiny, gain +5 to Dex (Stealth) and can fit through gaps of up to 15 cm without squeezing\",\r\n\tdescriptionFull : \"As a bonus action, you become Tiny until your concentration ends. While this size, you gain a +5 bonus to Dexterity (Stealth) checks and can move through gaps up to 6 inches across without squeezing.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"d2-toppling shift\"] = {\r\n\tname : \"Toppling Shift\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 creature save or be knocked prone\",\r\n\tdescriptionFull : \"As a bonus action, you shift to an incredibly small size and then suddenly return to normal, sending an opponent flying backward. Choose one creature you can see within 5 feet of you. It must succeed on a Strength saving throw or be knocked prone.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"d3-sudden shift\"] = {\r\n\tname : \"Sudden Shift\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use when hit by an attack; it misses, and I move up to 5 ft without provoking opportunity attacks\",\r\n\tdescriptionFull : \"As a reaction when you are hit by an attack, you shift down to minute size to avoid the attack. The attack misses, and you move up to 5 feet without provoking opportunity attacks before returning to normal size.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"d4-microscopic form\"] = {\r\n\tname : \"Microscopic Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Become diminutive, gain +5 AC, +10 to Dex (Stealth), can fit through 1\\\" gaps, but can't use wea atks\",\r\n\tdescriptionMetric : \"Become diminutive, gain +5 AC, +10 to Dex (Stealth), can fit through 2,5 cm gaps, can't use wea atks\",\r\n\tdescriptionFull : \"As a bonus action, you become smaller than Tiny until your concentration ends. While this size, you gain a +10 bonus to Dexterity (Stealth) checks and a +5 bonus to AC, you can move through gaps up to 1 inch across without squeezing, and you can't make weapon attacks.\",\r\n\tfirstCol : 7\r\n};\r\n//the giant growth discipline (contributed by mattohara & TheBob427)\r\nPsionicsList[\"giant growth-ua-psy\"] = {\r\n\tname : \"Giant Growth\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My reach increases by 5 ft\",\r\n\tdescriptionFull : \"You infuse yourself with psionic energy to grow to tremendous size, bolstering your strength and durability.\" + PsychicFocus + \"While focused on this discipline, your reach increases by 5 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"gg1-ogre form\", \"gg2-giant form\"]\r\n};\r\nPsionicsList[\"gg1-ogre form\"] = {\r\n\tname : \"Ogre Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"10 temp. HP; for duration: become Large, +5 ft reach, melee attacks deal +1d4 Bludgeoning dmg\",\r\n\tdescriptionFull : \"As a bonus action, you gain 10 temporary hit points. In addition, until your concentration ends, your melee weapon attacks deal an extra 1d4 bludgeoning damage on a hit, and your reach increases by 5 feet. If you're smaller than Large, you also become Large for the duration.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"gg2-giant form\"] = {\r\n\tname : \"Giant Form\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"30 temp. HP; for duration: become Huge, +10 ft reach, melee attacks deal +2d6 Bludgeoning dmg\",\r\n\tdescriptionFull : \"As a bonus action, you gain 30 temporary hit points. In addition, until your concentration ends, your melee weapon attacks deal an extra 2d6 bludgeoning damage on a hit, and your reach increases by 10 feet. If you're smaller than Huge, you also become Huge for the duration.\",\r\n\tfirstCol : 7\r\n};\r\n//the intellect fortress discipline (contributed by TheBob427)\r\nPsionicsList[\"intellect fortress-ua-psy\"] = {\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Psychic damage\",\r\n\tdescriptionFull : \"You forge an indomitable wall of psionic energy around your mind-one that allows you to launch counterattacks against your opponents.\" + PsychicFocus + \"While focused on this discipline, you have resistance to psychic damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"if1-psychic backlash\", \"if2-psychic parry\", \"if3-psychic redoubt\"]\r\n};\r\nPsionicsList[\"if1-psychic backlash\"] = {\r\n\tname : \"Psychic Backlash\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\trange : \"Sight\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I impose dis. on an attack roll vs. me; if I'm hit anyway, the attacker takes 2d10 Psychic damage\",\r\n\tdescriptionFull : \"As a reaction, you can impose disadvantage on an attack roll against you if you can see the attacker. If the attack still hits you, the attacker takes 2d10 psychic damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"if2-psychic parry\"] = {\r\n\tname : \"Psychic Parry\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you make an Intelligence, a Wisdom, or a Charisma saving throw\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Add +1/PP to the result of an Int, Wis, or Cha save; use after rolling, but before knowing if successful\",\r\n\tdescriptionFull : \"As a reaction when you make an Intelligence, a Wisdom, or a Charisma saving throw, you gain a +1 bonus to that saving throw for each psi point you spend on this ability. You can use this ability after rolling the die but before suffering the results.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"if3-psychic redoubt\"] = {\r\n\tname : \"Psychic Redoubt\",\r\n\tsource : [[\"UA:TMC\", 14]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Any creatures in range gain resistance to Psychic damage and advantage on Int, Wis, and Cha saves\",\r\n\tdescriptionFull : \"As an action, you create a field of protective psychic energy. Choose any number of creatures within 30 feet of you. Until your concentration ends, each target has resistance to psychic damage and advantage on Intelligence, Wisdom, and Charisma saving throws.\",\r\n\tfirstCol : 5\r\n};\r\n//the iron durability discipline (contributed by mattohara)\r\nPsionicsList[\"iron durability-ua-psy\"] = {\r\n\tname : \"Iron Durability\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +1 bonus to AC\",\r\n\tdescriptionFull : \"You transform your body to become a living metal, allowing you to shrug off attacks that would cripple weaker creatures.\" + PsychicFocus + \"While focused on this discipline, you gain a +1 bonus to AC.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"id1-iron hide\", \"id2-steel hide\", \"id3-iron resistance\"]\r\n};\r\nPsionicsList[\"id1-iron hide\"] = {\r\n\tname : \"Iron Hide\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain +1/PP AC; use when hit by attack; bonus works against triggering attack\",\r\n\tdescriptionFull : \"As a reaction when you are hit by an attack, you gain a +1 bonus to AC for each psi point you spend on this ability. The bonus lasts until the end of your next turn. This bonus applies against the triggering attack.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"id2-steel hide\"] = {\r\n\tname : \"Steel Hide\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"I gain resistance to Bludgeoning, Piercing, and Slashing damage\",\r\n\tdescriptionFull : \"As a bonus action, you gain resistance to bludgeoning, piercing, and slashing damage until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"id3-iron resistance\"] = {\r\n\tname : \"Iron Resistance\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"I gain resistance to bludgeoning, piercing, or slashing (my choice)\",\r\n\tdescriptionFull : \"As an action, you gain resistance to bludgeoning, piercing, or slashing damage (your choice), which lasts until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of awe discipline (contributed by mattohara)\r\nPsionicsList[\"mantle of awe-ua-psy\"] = {\r\n\tname : \"Mantle of Awe\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a bonus to Charisma checks, bonus equals half my Intelligence modifier (min 1)\",\r\n\tdescriptionFull : \"You learn to use psionic energy to manipulate others with a subtle combination of psi and your own, natural charm.\" + PsychicFocus + \"While focused on this discipline, you gain a bonus to Charisma checks. The bonus equals half your Intelligence modifier (minimum of +1).\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"moa1-charming presence\", \"moa2-center of attention\", \"moa3-invoke awe\"]\r\n};\r\nPsionicsList[\"moa1-charming presence\"] = {\r\n\tname : \"Charming Presence\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"10 min\",\r\n\tdescription : \"2d8/PP HP of conscious, not in combat, not immune to charm crea charmed; use HP max, not current\",\r\n\tdescriptionFull : \"As an action, you exert an aura of sympathetic power. Roll 2d8 per psi point spent on this ability; the total is how many hit points worth of creatures this option can affect. Creatures within 30 feet of you are affected in ascending order of their hit point maximums, ignoring incapacitated creatures, creatures immune to being charmed, and creatures engaged in combat.\" + \"\\n   \" + \"Starting with the creature that has the lowest hit point maximum, each creature affected by this option is charmed by you for 10 minutes, regarding you as a friendly acquaintance. Subtract each creature's hit point maximum from the total before moving on to the next creature. A creature's hit point maximum must be equal to or less than the remaining total for that creature to be affected.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"moa2-center of attention\"] = {\r\n\tname : \"Center of Attention\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 crea save or all other creatures are invisible to it; ends if it leaves my sight/earshot or takes dmg\",\r\n\tdescriptionFull : \"As an action, you exert an aura of power that grabs a creature's attention. Choose one creature you can see within 60 feet of you. It must make a Charisma saving throw. On a failed save, the creature is so thoroughly distracted by you that all other creatures are invisible to it until your concentration ends. This effect ends if the creature can no longer see or hear you or if it takes damage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"moa3-invoke awe\"] = {\r\n\tname : \"Invoke Awe\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"5 crea save or charmed, obey verbal commands; no self harm; will atk crea that atk me; save each rnd\",\r\n\tdescriptionFull : \"As an action, you exert an aura that inspires awe in others. Choose up to 5 creatures you can see within 60 feet of you. Each target must succeed on an Intelligence saving throw or be charmed by you until your concentration ends. While charmed, the target obeys all your verbal commands to the best of its ability and without doing anything obviously self-destructive. The charmed target will attack only creatures that it has seen attack you since it was charmed or that it was already hostile toward. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of command discipline\r\nPsionicsList[\"mantle of command-ua-psy\"] = {\r\n\tname : \"Mantle of Command\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"When ending a turn I didn't move in, use my rea to have 1 ally within 30 ft move half its speed\",\r\n\tdescriptionFull : \"You exert an aura of trust and authority, enhancing the coordination among your allies.\" + PsychicFocus + \"While focused on this discipline, when you end your turn and didn't move during it, you can use your reaction to allow one ally you can see within 30 feet of you to move up to half their speed, following a path of your choice. To move in this way, the ally mustn't be incapacitated.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mc1-coordinated movement\", \"mc2-commander's sight\", \"mc3-command to strike\", \"mc4-strategic mind\", \"mc5-overwhelming attack\"]\r\n};\r\nPsionicsList[\"mc1-coordinated movement\"] = {\r\n\tname : \"Coordinated Movement\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 5 allies I can see can use their reaction to move half their speed, following a path I choose\",\r\n\tdescriptionFull : \"As a bonus action, choose up to five allies you can see within 60 feet of you. Each of those allies can use their reaction to move up to half their speed, following a path of your choice.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc2-commander's sight\"] = {\r\n\tname : \"Commander's Sight\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 rnd\",\r\n\tdescription : \"I mark 1 crea; until the start of my next turn, my allies have adv. on attacks vs. it\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. Until the start of your next turn, your allies have advantage on attack rolls against that target.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc3-command to strike\"] = {\r\n\tname : \"Command to Strike\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 ally I can see can use their reaction to take the Attack action, with me choosing the targets\",\r\n\tdescriptionFull : \"As an action, choose one ally you can see within 60 feet of you. That ally can use their reaction to immediately take the Attack action. You choose the targets.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mc4-strategic mind\"] = {\r\n\tname : \"Strategic Mind\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 ally can, on its turn, either add 1d4 to its attack rolls or take Dash or Disengage as a bonus action\",\r\n\tdescriptionFull : \"As an action, you exert an aura of trust and command that unites your allies into a cohesive unit. Until your concentration ends, any ally within 60 feet of you on their turn can, as a bonus action, take the Dash or Disengage action or roll a d4 and add the number rolled to each attack roll they make that turn.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mc5-overwhelming attack\"] = {\r\n\tname : \"Overwhelming Attack\",\r\n\tsource : [[\"UA:TMC\", 15]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 5 allies I see can use their reactions to take the Attack action, with me choosing the targets\",\r\n\tdescriptionFull : \"As an action, choose up to five allies you can see within 60 feet of you. Each of those allies can use their reaction to take the Attack action. You choose the targets of the attacks.\",\r\n\tfirstCol : 7\r\n};\r\n//the mantle of courage discipline\r\nPsionicsList[\"mantle of courage-ua-psy\"] = {\r\n\tname : \"Mantle of Courage\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My and allies within 10 ft that can see me have advantage on saves vs. being frightened\",\r\n\tdescriptionFull : \"You focus your mind on courage, radiating confidence and bravado to your allies.\" + PsychicFocus + \"While focused on this discipline, you and allies within 10 feet of you who can see you have advantage on saving throws against being frightened.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mc1-incite courage\", \"mc2-aura of victory\", \"mc3-pillar of confidence\"]\r\n};\r\nPsionicsList[\"mc1-incite courage\"] = {\r\n\tname : \"Incite Courage\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Up to 6 creatures are no longer frightened\",\r\n\tdescriptionFull : \"As a bonus action, choose up to six creatures you can see within 60 feet of you. If any of those creatures is frightened, that condition ends on that creature.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mc2-aura of victory\"] = {\r\n\tname : \"Aura of Victory\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"When an enemy I can see is reduced to 0 HP, me and allies within range gain 2/PP temporary HP\",\r\n\tdescriptionFull : \"As a bonus action, you project psionic energy until your concentration ends. The energy fortifies you and your allies when your enemies are felled; whenever an enemy you can see is reduced to 0 hit points, you and each of your allies within 30 feet of you gain temporary hit points equal to double the psi points spent to activate this effect.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mc3-pillar of confidence\"] = {\r\n\tname : \"Pillar of Confidence\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"Me \\u0026 up to 5 crea gain, on their turn, a special action to either make 1 wea atk, Dash, or Disengage\",\r\n\tdescriptionFull : \"As an action, you and up to five creatures you can see within 60 feet of you each gain one extra action to use on their individual turns. The action goes away if not used before the end of your next turn. the action can be used only to make one weapon attack or to take the Dash or Disengage action.\",\r\n\tfirstCol : 6\r\n};\r\n//the mantle of fear discipline\r\nPsionicsList[\"mantle of fear-ua-psy\"] = {\r\n\tname : \"Mantle of Fear\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Intimidation) checks\",\r\n\tdescriptionFull : \"You tap into a well of primal fear and turn yourself into a beacon of terror to your enemies.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Intimidation) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-incite fear\", \"mf2-unsettling aura\", \"mf3-incite panic\"]\r\n};\r\nPsionicsList[\"mf1-incite fear\"] = {\r\n\tname : \"Incite Fear\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or be frightened of me; repeat save each turn when out of line of sight\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Wisdom saving throw or become frightened of you until your concentration ends. Whenever the frightened target ends its turn in a location where it can't see you, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf2-unsettling aura\"] = {\r\n\tname : \"Unsettling Aura\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"All crea in range that can see me move only half speed when moving towards me (frightening effect)\",\r\n\tdescriptionFull : \"As a bonus action, you cloak yourself in unsettling psychic energy. Until your concentration ends, any enemy within 60 feet of you that can see you must spend 1 extra foot of movement for every foot it moves toward you. A creature ignores this effect if immune to being frightened.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf3-incite panic\"] = {\r\n\tname : \"Incite Panic\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"8 crea save each rnd or frightened and spend turn on random move or melee atk; 3 saves ends; see B\",\r\n\tdescriptionFull : \"As an action, choose up to eight creatures you can see within 90 feet of you that can see you. At the start of each of a target's turns before your concentration ends, the target must make a Wisdom saving throw. On a failed save, the target is frightened until the start of its next turn, and you roll a die. If you roll an odd number, the frightened target moves half its speed in a random direction and takes no action on that turn, other than to scream in terror. If you roll an even number, the frightened target makes one melee attack against a random target within its reach. If there is no such target, it moves half its speed in a random direction and takes no action on that turn. This effect ends on a target if it succeeds on three saving throws against it.\",\r\n\tfirstCol : 5\r\n};\r\n//the mantle of fury discipline\r\nPsionicsList[\"mantle of fury-ua-psy\"] = {\r\n\tname : \"Mantle of Fury\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Me and allies within 10 ft at start of my turn gain +5 ft walking speed for that turn\",\r\n\tdescriptionFull : \"You allow the primal fury lurking deep within your mind to burst forth, catching you and your allies in an implacable bloodthirst.\" + PsychicFocus + \"While focused on this discipline in combat, you and any ally who starts their turn within 10 feet of you gains a 5-foot increase to their walking speed during that turn.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-incite fury\", \"mf2-mindless charge\", \"mf3-aura of bloodletting\", \"mf4-overwhelming fury\"]\r\n};\r\nPsionicsList[\"mf1-incite fury\"] = {\r\n\tname : \"Incite Fury\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"3 creatures can add 1d4 to the damage of melee weapon attacks during the duration\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three allies you can see within 60 feet of you (you can choose yourself in place of one of the allies). Until your concentration ends, each target can roll a d4 when rolling damage for a melee weapon attack and add the number rolled to the damage roll.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf2-mindless charge\"] = {\r\n\tname : \"Mindless Charge\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"3 creatures can use their reactions to move their speed straight towards the nearest enemy\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three creatures you can see within 60 feet of you. Each target can immediately use its reaction to move up to its speed in a straight line toward its nearest enemy.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf3-aura of bloodletting\"] = {\r\n\tname : \"Aura of Bloodletting\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Me and all creatures within range during the duration have advantage on melee attack rolls\",\r\n\tdescriptionFull : \"As a bonus action, you unleash an aura of rage. Until your concentration ends, you and any creature within 60 feet of you has advantage on melee attack rolls.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf4-overwhelming fury\"] = {\r\n\tname : \"Overwhelming Fury\",\r\n\tsource : [[\"UA:TMC\", 16]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"1 creature save or it can use its actions only to make melee attacks; save at the end of each of its turns\",\r\n\tdescriptionFull : \"As an action, you flood rage into one creature you can see within 60 feet of you. The target must succeed on a Charisma saving throw, or it can use its actions only to make melee attacks until your concentration ends. It can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 5\r\n};\r\n//the mantle of joy discipline\r\nPsionicsList[\"mantle of joy-ua-psy\"] = {\r\n\tname : \"Mantle of Joy\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Persuasion) checks\",\r\n\tdescriptionFull : \"You tap into the joy within you, radiating it outward in soothing, psychic energy that brings hope and comfort to creatures around you.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Persuasion) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mj1-soothing presence\", \"mj2-comforting aura\", \"mj3-aura of jubilation\", \"mj4-beacon of recovery\"]\r\n};\r\nPsionicsList[\"mj1-soothing presence\"] = {\r\n\tname : \"Soothing Presence\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"3 creatures gain 3/PP temporary hit points\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three creatures you can see within 60 feet of you. Each target gains 3 temporary hit points per psi point spent on this effect.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mj2-comforting aura\"] = {\r\n\tname : \"Comforting Aura\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Sight\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"3 creatures can add 1d4 on every saving throw during the duration\",\r\n\tdescriptionFull : \"As a bonus action, choose up to three allies you can see (you can choose yourself in place of one of the allies). Until your concentration ends, each target can roll a d4 when making a saving throw and add the number rolled to the total.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mj3-aura of jubilation\"] = {\r\n\tname : \"Aura of Jubilation\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"All creatures within range that can see me have disadvantage on Perception and Investigation checks\",\r\n\tdescriptionFull : \"As a bonus action, you radiate a distracting mirth until your concentration ends. Each creature within 60 feet of you that can see you suffers disadvantage on any checks using the Perception and Investigation skills.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mj4-beacon of recovery\"] = {\r\n\tname : \"Beacon of Recovery\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Avatar\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Me + 5 allies can make an extra save against every effect that allows a save at the start/end of a turn\",\r\n\tdescriptionFull : \"As a bonus action, you and up to five allies you can see within 60 feet of you can immediately make saving throws against every effect they're suffering that allows a save at the start or end of their turns.\",\r\n\tfirstCol : 5\r\n};\r\n//the mastery of air discipline (contributed by mattohara)\r\nPsionicsList[\"mastery of air-ua-psy\"] = {\r\n\tname : \"Mastery of Air\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I take no falling damage and ignore difficult terrain when walking\",\r\n\tdescriptionFull : \"You become one with the power of elemental air.\" + PsychicFocus + \"While focused on this discipline, you take no falling damage, and you ignore difficult terrain when walking.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ma1-wind step\", \"ma2-wind stream\", \"ma3-cloak of air\", \"ma4-wind form\", \"ma5-misty form\", \"ma6-animate air\"]\r\n};\r\nPsionicsList[\"ma1-wind step\"] = {\r\n\tname : \"Wind Step\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"Move\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"Fly 20 ft/PP as part of my move this turn; if I end my turn in the air, my fall\",\r\n\tdescriptionFull : \"As part of your move on your turn, you can fly up to 20 feet for each psi point spent. If you end this flight in the air, you fall unless something else holds you aloft.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ma2-wind stream\"] = {\r\n\tname : \"Wind Stream\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"30-ft long 5-ft wide all crea 1d8/PP Bludgeoning dmg and knocked prone; save halves and not prone\",\r\n\tdescriptionFull : \"As an action, you create a line of focused air that is 30 feet long and 5 feet wide. Each creature in that area must make a Strength saving throw, taking 1d8 bludgeoning damage per psi point spent and being knocked prone on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ma3-cloak of air\"] = {\r\n\tname : \"Cloak of Air\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Atks vs. me have dis.; when missed by melee atk, use rea to have attacker repeat the attack on itself\",\r\n\tdescriptionFull : \"As a bonus action, you seize control of the air around you to create a protective veil. Until your concentration ends, attack rolls against you have disadvantage, and when a creature you can see misses you with a melee attack, you can use your reaction to force the creature to repeat the attack roll against itself.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ma4-wind form\"] = {\r\n\tname : \"Wind Form\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I gain a flying speed of 60 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain a flying speed of 60 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ma5-misty form\"] = {\r\n\tname : \"Misty Form\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : 'Gain resistance to Bludgeoning/Piercing/Slashing, can only take Dash actions, fit through 1\" opening',\r\n\tdescriptionMetric : \"Gain resistance to Bludgeoning/Piercing/Slashing, only take Dash actions, fit through 2,5 cm opening\",\r\n\tdescriptionFull : \"As an action, your body becomes like a misty cloud until your concentration ends. In this form, you gain resistance to bludgeoning, piercing, and slashing damage, and you can't take actions other than the Dash action. You can pass through openings that are no more than 1 inch wide without squeezing.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"ma6-animate air\"] = {\r\n\tname : \"Animate Air\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon an air elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause an air elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of fire discipline\r\nPsionicsList[\"mastery of fire-ua-psy\"] = {\r\n\tname : \"Mastery of Fire\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Fire damage and gain a +2 bonus on rolls for Fire damage\",\r\n\tdescriptionFull : \"You align your mind with the energy of elemental fire.\" + PsychicFocus + \"While focused on this discipline, you gain resistance to fire damage, and you gain a +2 bonus to rolls for fire damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-combustion\", \"mf2-rolling flame\", \"mf3-detonation\", \"mf4-fire storm\", \"mf5-animate fire\"]\r\n};\r\nPsionicsList[\"mf1-combustion\"] = {\r\n\tname : \"Combustion\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d10/PP Fire dmg, on fire: 1d6 Fire dmg/rnd, it can 1 a to end; save half \\u0026 not on fire\",\r\n\tdescriptionFull : \"As an action, choose one creature or object you can see within 120 feet of you. The target must make a Constitution save. On a failed save, the target takes 1d10 fire damage per psi point spent, and it catches on fire, taking 1d6 fire damage at the end of each of its turns until your concentration ends or until it or a creature adjacent to it extinguishes the flames with an action. On a successful save, the target takes half as much damage and doesn't catch on fire.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf2-rolling flame\"] = {\r\n\tname : \"Rolling Flame\",\r\n\tsource : [[\"UA:TMC\", 17]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"20-ft cube all 5 Fire damage and any that end their turn in it also 5 Fire damage\",\r\n\tdescriptionFull : \"As an action, you create fire in a 20-foot-by-20-foot cube within 5 feet of you. The fire lasts until your concentration ends. Any creature in that area when you use this ability and any creature that ends its turn there takes 5 fire damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf3-detonation\"] = {\r\n\tname : \"Detonation\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"20-ft rad all creatures save or 7d6 Fire damage and knocked prone; save halves and not prone\",\r\n\tsave : \"Con\",\r\n\tdescriptionFull : \"As an action, you create a fiery explosion at a point you can see within 120 feet of you. Each creature in a 20-foot-radius sphere centered on that point must make a Constitution saving throw, taking 7d6 fire damage and being knocked prone on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mf4-fire storm\"] = {\r\n\tname : \"Fire Storm\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"All creatures that end their turn within 5 ft of me take 3d6 Fire damage\",\r\n\tdescriptionFull : \"As a bonus action, you become wreathed in flames until your concentration ends. Any creature that end its turn within 5 feet of you takes 3d6 fire damage.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mf5-animate fire\"] = {\r\n\tname : \"Animate Fire\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a fire elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause a fire elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of force discipline\r\nPsionicsList[\"mastery of force-ua-psy\"] = {\r\n\tname : \"Mastery of Force\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Strength checks\",\r\n\tdescriptionFull : \"As a student of psionic power, you perceive the potential energy that flows through all things. You reach out with your mind, transforming the potential into the actual. Objects and creatures move at your command.\" + PsychicFocus + \". While focused on this discipline, you have advantage on Strength checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mf1-push\", \"mf2-move\", \"mf3-inertial armor\", \"mf4-telekinetic barrier\", \"mf5-grasp\", \"mf6-crush (with grasp)\" , \"mf7-move (with grasp)\"]\r\n};\r\nPsionicsList[\"mf1-push\"] = {\r\n\tname : \"Push\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1d8/PP Force dmg and pushed 5 ft/PP straight away; save halves and not pushed\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Strength saving throw. On a failed save, it takes 1d8 force damage per psi point spent and is pushed up to 5 feet per point spent in a straight line away from you. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf2-move\"] = {\r\n\tname : \"Move\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Move obj 60 ft, after which it falls; crea under obj DC 10 save or 1d6+1d6/PP Bludg. dmg; see book\",\r\n\tdescriptionFull : \"Choose one object you can see within 60 feet of you that isn't being worn or carried by another creature and that isn't secured in place. It can't be larger than 20 feet on a side, and its maximum weight depends on the psi points spent on this ability, as shown below.\" + \"\\n   \" + \"As an action, you move the object up to 60 feet, and you must keep the object within sight during this movement. If the object ends this movement in the air, it falls. If the object would fall on a creature, the creature must succeed on a DC 10 Dexterity saving throw or take damage as listed on the table below.\\n\\n  \" + toUni(\"Psi\") + \"\\t\" + toUni(\"Maximum\") + \"    \" + toUni(\"Bludgeoning\") + \"\\n\" + toUni(\"Points\") + \"\\t \" + toUni(\"Weight\") + \"\\t        \" + toUni(\"Damage\") + \"\\n    2\\t     25 lbs.  \\t             2d6\" + \"\\n    3\\t     50 lbs.  \\t             4d6\" + \"\\n    5\\t   250 lbs.  \\t             6d6\" + \"\\n    6\\t   500 lbs.  \\t             7d6\" + \"\\n    7\\t 1000 lbs.  \\t             8d6\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"mf3-inertial armor\"] = {\r\n\tname : \"Inertial Armor\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"I gain AC 14 + Dex modifier and resistance to Force dmg if not wearing armor; ends if don armor\",\r\n\tdescriptionFull : \"As an action, you sheathe yourself in an intangible field of magical force. For 8 hours, your base AC is 14 + your Dexterity modifier, and you gain resistance to force damage. This effect ends if you are wearing or don armor.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mf4-telekinetic barrier\"] = {\r\n\tname : \"Telekinetic Barrier\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"40-ft long, 10-ft high, 1-inch thick transparent wall of energy; each 10-ft section has AC 10 \\u0026 10 HP\",\r\n\tdescriptionFull : \"As an action, you create a transparent wall of telekinetic energy, at least one portion of which must be within 60 feet of you. The wall is 40 feet long, 10 feet high, and 1 inch thick. The wall lasts until your concentration ends. Each 10-foot section of the wall has an AC of 10 and 10 hit points.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf5-grasp\"] = {\r\n\tname : \"Grasp\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 crea save or grappled; escape Athl./Acro. vs. my spell atk +1/PP; if grappled I can Crush/Move\",\r\n\tsave : \"Str\",\r\n\tdescriptionFull : \"You attempt to grasp a creature in telekinetic energy and hold it captive. As an action, choose one creature you can see within 60 feet of you. The target must succeed on a Strength saving throw or be grappled by you until your concentration ends or until the target leaves your reach, which is 60 feet for this grapple.\" + \"\\n   \" + \"The grappled target can escape by succeeding on a Strength (Athletics) or Dexterity (Acrobatics) check contested by your psionic ability plus your proficiency bonus. When a target attempts to escape in this way, you can spend psi points to boost your check, abiding by your psi limit. You gain a +1 bonus per psi point spent.\" + \"\\n   \" + \"While a target is grappled in this manner, you create one of the following effects as an action: \" + toUni(\"Crush\") + \" (1–7 psi) The target takes 1d6 bludgeoning damage per psi point spent.\" + toUni(\"Move\") + \" (1–7 psi) You move the target up to 5 feet per psi point spent. You can move it in the air and hold it there. It falls if the grapple ends.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mf6-crush (with grasp)\"] = {\r\n\tname : \" - Crush (with Grasp)\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature grappled by Grasp takes 1d6/PP Bludgeoning damage\",\r\n\tdescriptionFull : \"While the target is grappled by Grasp from the Mastery of Force discipline, you can use Crush on it as an action:\" + \"\\n  \" + \"The target takes 1d6 bludgeoning damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mf7-move (with grasp)\"] = {\r\n\tname : \" - Move (with Grasp)\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature grappled by Grasp moved up to 5 ft/PP; can hold it aloft, but it falls when grapple ends\",\r\n\tdescriptionFull : \"While the target is grappled by Grasp from the Mastery of Force discipline, you can use Move on it as an action:\" + \"\\n  \" + \"You move the target up to 5 feet per psi point spent. You can move it in the air and hold it there. It falls if the grapple ends.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\n//the mastery of ice discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of ice-ua-psy\"] = {\r\n\tname : \"Mastery of Ice\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Cold damage\",\r\n\tdescriptionFull : \"You master the power of ice, shaping it to meet you demands.\" + PsychicFocus + \"While focused on this discipline, you have resistance to cold damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mi1-ice spike\", \"mi2-ice sheet\", \"mi3-frozen sanctuary\", \"mi4-frozen rain\", \"mi5-ice barrier\"]\r\n};\r\nPsionicsList[\"mi1-ice spike\"] = {\r\n\tname : \"Ice Spike\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 creature save or 1d8/PP Cold damage and speed halved; save halves and normal speed\",\r\n\tdescriptionFull : \"As an action, you hurl a mote of ice at one creature you can see within 120 feet of you. The target must make a Dexterity saving throw. On a failed save, the target takes 1d8 cold damage per psi point spent and has its speed halved until the start of your next turn. On a successful save, the target takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mi2-ice sheet\"] = {\r\n\tname : \"Ice Sheet\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"10 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"Create 20-ft rad of difficult terrain; crea move more than 10 ft save or prone; on slope slide to bottom\",\r\n\tdescriptionFull : \"As an action, choose a point on the ground you can see within 60 feet of you. The ground in a 20-foot radius centered on that point becomes covered in ice for 10 minutes. It is difficult terrain, and any creature that moves more than 10 feet on it must succeed on a Dexterity saving throw or fall prone. If the surface is sloped, a creature that falls prone in the area immediately slides to the bottom of the slope.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mi3-frozen sanctuary\"] = {\r\n\tname : \"Frozen Sanctuary\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I gain 20 temporary hit points\",\r\n\tdescriptionFull : \"As a bonus action, you sheathe yourself with icy resilience. You gain 20 temporary hit points.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mi4-frozen rain\"] = {\r\n\tname : \"Frozen Rain\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all 6d6(+1d6/extra PP) Cold dmg \\u0026 spd 0; save half \\u0026 no spd 0; 1 a Athl. vs DC for no spd 0\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 120 feet of you. The air in a 20-foot-radius sphere centered on that point becomes deathly cold and saturated with moisture. Each creature in that area must make a Constitution saving throw. On a failed save, a target takes 6d6 cold damage, and its speed is reduced to 0 until your concentration ends. On a successful save, a target takes half as much damage.\" + \"\\n   \" + \"As an action, a target that has its speed reduced can end the effect early if it succeeds on a Strength (Athletics) check with a DC equal to this effect's save DC.\" + \"\\n   \" + \"You can increase this effect's damage by 1d6 per each additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"mi5-ice barrier\"] = {\r\n\tname : \"Ice Barrier\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"60\\xD71\\xD715ft (l\\xD7w\\xD7h) wall; a 10-ft section has AC 12 & 30 HP; melee atks do same as Cold dmg back\",\r\n\tdescriptionMetric : \"20\\xD70,3\\xD75m (l\\xD7w\\xD7h) wall; a 3-m section has AC 12 & 30 hp; melee atks do same as Cold dmg back\",\r\n\tdescriptionFull : \"As an action, you create a wall of ice, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Each 10-foot section of the wall has AC 12 and 30 hit points. A creature that damages the wall with a melee attack takes cold damage equal to the damage the creature dealt to the wall.\",\r\n\tfirstCol : 6\r\n};\r\n//the mastery of light and darkness discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of light and darkness-ua-psy\"] = {\r\n\tname : \"Mastery of Light and Darkness\",\r\n\tnameShort : \"Mastery of Light \\u0026 Dark\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I can see through natural and magical darkness out to 30 ft\",\r\n\tdescriptionFull : \"You claim dominion over light and darkness with your mind.\" + PsychicFocus + \"While focused on this discipline, natural and magical darkness within 30 feet of you has no effect on your vision.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mld1-darkness\", \"mld2-light\", \"mld3-shadow beasts\", \"mld4-radiant beam\"]\r\n};\r\nPsionicsList[\"mld1-darkness\"] = {\r\n\tname : \"Darkness\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"10 ft/PP rad darkness from point; darkvision doesn't work; only magical light of SL 3 or higher works\",\r\n\tdescriptionFull : \"As an action, you create an area of magical darkness, which foils darkvision. Choose a spot you can see within 60 feet of you. Magical darkness radiates from that point in a sphere with a 10-foot radius per psi point spent on this ability. The light produced by spells of 2nd level or less is suppressed in this area.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mld2-light\"] = {\r\n\tname : \"Light\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea/obj save or sheds bright light 20-ft rad and dim light 20-ft, and can't hide, atks vs. it have adv.\",\r\n\tdescriptionFull : \"As an action, an object you touch radiates light in a 20-foot radius and dim light for an additional 20 feet. The light lasts until your concentration ends. Alternatively, a creature you touch radiates light in the same manner if it fails a Dexterity saving throw. While lit in this manner, it can't hide, and attack rolls against it gain advantage.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mld3-shadow beasts\"] = {\r\n\tname : \"Shadow Beasts\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Summon 2 shadows that obeys my verbal commands; See Monster Manual, page 269\",\r\n\tdescriptionFull : \"As an action, you cause two shadows to appear in unoccupied spaces you can see within 60 feet of you. The shadows last until your concentration ends, and they obey your verbal commands. In combat, roll for their initiative, and choose their behavior during their turns. When this effect ends, the shadows disappear. See the Monster Manual for their stat block.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mld4-radiant beam\"] = {\r\n\tname : \"Radiant Beam\",\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea 6d6(+1d6/extra PP) Radiant dmg, blinded, save each turn to end blind; save halves \\u0026 not blind\",\r\n\tdescriptionFull : \"As an action, you project a beam of light at one creature you can see within 60 feet of you. The target must make a Dexterity saving throw. On a failed save, it takes 6d6 radiant damage and is blinded until your concentration ends. On a successful save, it takes half as much damage. A blinded target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\" + \"\\n   \" + \"You can increase this effect's damage by 1d6 per each additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\n//the mastery of water discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of water-ua-psy\"] = {\r\n\tname : \"Mastery of Water\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 19]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a swimming speed equal to my walking speed and I can breathe underwater\",\r\n\tdescriptionFull : \"Your mind becomes one with elemental water, attuning your thoughts to its ebb and flow.\" + PsychicFocus + \"While focused on this discipline, you have a swimming speed equal to your walking speed, and you can breathe underwater.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mwa1-dessicate\", \"mwa2-watery grasp\", \"mwa3-water whip\", \"mwa4-water breathing\",\"mwa5-water sphere\",\"mwa6-animate water\"]\r\n};\r\nPsionicsList[\"mwa1-dessicate\"] = {\r\n\tname : \"Dessicate\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 creature 1d10/PP Necrotic damage; save halves\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make a Constitution saving throw, taking 1d10 necrotic damage per psi point spent on this ability, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mwa2-watery grasp\"] = {\r\n\tname : \"Watery Grasp\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"20-ft sq all save or 2d6(+1d6/extra PP) Bludg. dmg, prone, pulled 10 ft to me; save half \\u0026 not prone\",\r\n\tdescriptionFull : \"As an action, you unleash a wave that surges forth and then retreats to you like the rising tide. You create a wave in a 20-foot-by-20-foot square. At least some portion of the square's border must be within 5 feet of you. Any creature in that square must make a Strength saving throw. On a failed save, a target takes 2d6 bludgeoning damage, is knocked prone, and is pulled up to 10 feet closer to you. On a successful save, a target takes half as much damage. You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"2-7\"\r\n};\r\nPsionicsList[\"mwa3-water whip\"] = {\r\n\tname : \"Water Whip\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"60\\xD75-ft (l\\xD7w) all 3d6(+1d6/extra PP) Bludg. dmg \\u0026 move to empty spot on line; save half \\u0026 no move\",\r\n\tdescriptionMetric : \"20\\xD71,5m (l\\xD7w) all 3d6(+1d6/extra PP) Bludg. dmg, move to empty spot on line; save half \\u0026 no move\",\r\n\tdescriptionFull : \"As an action, you unleash a jet of water in a line that is 60 feet long and 5 feet wide. Each creature in the line must make a Strength saving throw, taking 3d6 bludgeoning damage on a failed save, or half as much damage on a successful one. In addition, you can move each target that fails its saving throw to any unoccupied space touching the line. You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"mwa4-water breathing\"] = {\r\n\tname : \"Water Breathing\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Me and up to 10 willing creatures can breathe underwater for the duration\",\r\n\tdescriptionFull : \"As an action, you grant yourself and up to ten willing creatures you can see within 60 feet of you the ability to breathe underwater for the next 24 hours.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"mwa5-water sphere\"] = {\r\n\tname : \"Water Sphere\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 crea save or half speed, dis. on atks, can see only 10 ft, atks vs. it also dis.; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you cause a sphere of water to form around a creature. Choose one creature you can see within 60 feet of you. The target must make a Dexterity saving throw. On a failed save, it becomes trapped in the sphere of water until your concentration ends. While the target is trapped, its speed is halved, it suffers disadvantage on attack rolls, and it can't see anything more than 10 feet away from it. However, attack rolls against it also suffer disadvantage. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a successful one.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mwa6-animate water\"] = {\r\n\tname : \"Animate Water\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon a water elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause a water elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of weather discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of weather-ua-psy\"] = {\r\n\tname : \"Mastery of Weather\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain resistance to Lightning and Thunder damage\",\r\n\tdescriptionFull : \"Your mind reaches into the sky, reshaping the stuff of storms to serve your needs.\" + PsychicFocus + \"While focused on this discipline, you have resistance to lightning and thunder damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mw1-cloud steps\", \"mw2-hungry lightning\", \"mw3-wall of clouds\", \"mw4-whirlwind\", \"mw5-lightning leap\", \"mw6-wall of thunder\", \"mw7-thunder clap\"]\r\n};\r\nPsionicsList[\"mw1-cloud steps\"] = {\r\n\tname : \"Cloud Steps\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"U summon a 10 ft by 10 ft spiral staircase, that reaches 20 ft/PP upward\",\r\n\tdescriptionFull : \"As an action, you conjure forth clouds to create a solid, translucent staircase that lasts until your concentration ends. The stairs form a spiral that fills a 10-foot-by-10-foot area and reaches upward 20 feet per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mw2-hungry lightning\"] = {\r\n\tname : \"Hungry Lightning\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"1 creature 1d8/PP Lightning damage; save halves; disadvantage on save if wearing heavy armor\",\r\n\tdescriptionFull : \"As an action, you lash out at one creature you can see within 60 feet of you with tendrils of lightning. The target must make a Dexterity saving throw, with disadvantage if it's wearing heavy armor. The target takes 1d8 lightning damage per psi point spent on a failed save, or half as much damage on a successful one.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mw3-wall of clouds\"] = {\r\n\tname : \"Wall of Clouds\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I create a 60-ft long, 15-ft high, 1-ft thick wall of clouds that blocks vision; it must start in range\",\r\n\tdescriptionFull : \"As an action, you create a wall of clouds, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Creatures can pass through it without hindrance, but the wall blocks vision.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mw4-whirlwind\"] = {\r\n\tname : \"Whirlwind\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Str\",\r\n\tdescription : \"20-ft rad all crea save or 1d6 Bludg. dmg & moved to chosen empty space in rad; obj moved as well\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Winds howl in a 20-foot-radius sphere centered on that point. Each creature in the sphere must succeed on a Strength saving throw or take 1d6 bludgeoning damage and be moved to an unoccupied space of your choice in the sphere. Any loose object in the sphere is moved to an unoccupied space of your choice within it if the object weighs no more than 100 pounds.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mw5-lightning leap\"] = {\r\n\tname : \"Lightning Leap\",\r\n\tsource : [[\"UA:TMC\", 20]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft line\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"60-ft long 5-ft wide all 6d6(+1d6/extra PP) Lightning dmg; save halves; I teleport to spot on line\",\r\n\tdescriptionFull : \"As an action, you let loose a line of lightning that is 60 feet long and 5 feet wide. Each creature in the line must make a Dexterity saving throw, taking 6d6 lightning damage on a failed save, or half as much damage on a successful one. You can then teleport to an unoccupied space touched by the line.\" + \"\\n   \" + \"You can increase this ability's damage by 1d6 per additional psi point spent on it.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\nPsionicsList[\"mw6-wall of thunder\"] = {\r\n\tname : \"Wall of Thunder\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Str\",\r\n\tdescription : \"60\\xD71\\xD715 ft (l\\xD7w\\xD7h) wall; diff. terr.; crea start/move in save or 6d6 Thunder dmg, push 30 ft, prone\",\r\n\tdescriptionMetric : \"20\\xD70,3\\xD75 m (l\\xD7w\\xD7h) wall; diff. terr.; crea start/move in save or 6d6 Thunder dmg, push 10m, prone\",\r\n\tdescriptionFull : \"As an action, you create a wall of thunder, at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Every foot moved through the wall costs 1 extra foot of movement. When a creature moves into the wall's space for the first time on a turn or starts its turn there, that creature must succeed on a Strength saving throw, or it takes 6d6 thunder damage, is pushed in a straight line up to 30 feet away from the wall, and is knocked prone.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mw7-thunder clap\"] = {\r\n\tname : \"Thunder Clap\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Con\",\r\n\tdescription : \"20-ft rad all save or 8d6 Thunder dmg and stunned until my next turn ends; save halves \\u0026 no stun\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Thunder energy erupts in a 20-foot-radius sphere centered on that point. Each creature in that area must make Constitution saving throw. On a failed save, a target takes 8d6 thunder damage, and it is stunned until the end of your next turn. On a successful save, a target takes half as much damage.\",\r\n\tfirstCol : 7\r\n};\r\n//the mastery of wood and earth discipline (contributed by Justin W.)\r\nPsionicsList[\"mastery of wood and earth-ua-psy\"] = {\r\n\tname : \"Mastery of Wood and Earth\",\r\n\tnameShort : \"Mastery of Wood \\u0026 Earth\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +1 bonus to AC\",\r\n\tdescriptionFull : \"You attune your mind to seize control of wood and earth.\" + PsychicFocus + \"While focused on this discipline, you have a +1 bonus to AC.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"mwe1-animate weapon\", \"mwe2-warp weapon\", \"mwe3-warp armor\", \"mwe4-wall of wood\", \"mwe5-armored form\", \"mwe6-animate earth\"]\r\n};\r\nPsionicsList[\"mwe1-animate weapon\"] = {\r\n\tname : \"Animate Weapon\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea attacked by my 1-handed melee wea; use discipline score for atk/dmg; +1d10/PP Force dmg\",\r\n\tdescriptionFull : \"As an action, your mind seizes control of a one-handed melee weapon you're holding. The weapon flies toward one creature you can see within 30 feet of you and makes a one-handed melee weapon attack against it, using your discipline attack modifier for the attack and damage rolls. On a hit, the weapon deals its normal damage, plus an extra 1d10 force damage per psi point spent on this ability. The weapon returns to your grasp after it attacks.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"mwe2-warp weapon\"] = {\r\n\tname : \"Warp Weapon\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Str\",\r\n\tdescription : \"1 crea save or 1 chosen nonmagical wea it is holding can't be used to attack until my next turn ends\",\r\n\tdescriptionFull : \"As an action, choose one nonmagical weapon held by one creature you can see within 60 feet of you. That creature must succeed on a Strength saving throw, or the chosen weapon can't be used to attack until the end of your next turn.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"mwe3-warp armor\"] = {\r\n\tname : \"Warp Armor\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea wearing a nonmagical armor save or have AC 10 + its Dex modifier until my next turn ends\",\r\n\tdescriptionFull : \"As an action, choose a nonmagical suit of armor worn by one creature you can see within 60 feet of you. That creature must succeed on a Constitution saving throw, or the creature's AC becomes 10 + its Dexterity modifier until the end of your next turn.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mwe4-wall of wood\"] = {\r\n\tname : \"Wall of Wood\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Create 60-ft long, 15-ft high, 1-ft thick wall of solid wood; each 5-ft section has AC 12 and 100 HP\",\r\n\tdescriptionFull : \"As an action, you create a wall of wood at least one portion of which must be within 60 feet of you. The wall is 60 feet long, 15 feet high, and 1 foot thick. The wall lasts until your concentration ends. Each 5-foot wide section of the wall has AC 12 and 100 hit points. Breaking one section creates a 5-foot by 5-foot hole in it, but the wall otherwise remains intact.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"mwe5-armored form\"] = {\r\n\tname : \"Armored Form\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain resistance to Bludgeoning, Piercing, and Slashing damage\",\r\n\tdescriptionFull : \"As a bonus action, you gain resistance to bludgeoning, piercing, and slashing damage, which lasts until your concentration ends.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"mwe6-animate earth\"] = {\r\n\tname : \"Animate Earth\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Wu Jen\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon an earth elemental that obeys my verbal commands; See Monster Manual, page 124\",\r\n\tdescriptionFull : \"As an action, you cause an earth elemental to appear in an unoccupied space you can see within 120 feet of you. The elemental lasts until your concentration ends, and it obeys your verbal commands. In combat, roll for its initiative, and choose its behavior during its turns. When this effect ends, the elemental disappears. See the Monster Manual for its stat block.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic arrow discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic arrow-ua-psy\"] = {\r\n\tname : \"Nomadic Arrow\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"My ranged weapon attacks ignore disadvantage, but can't get adv. if it was subject to dis.\",\r\n\tdescriptionFull : \"You imbue a ranged weapon with a strange semblance of sentience, allowing it to unerringly find its mark.\" + PsychicFocus + \"While you are focused on this discipline, any attack roll you make for a ranged weapon attack ignores disadvantage. If disadvantage would normally apply to the roll, that roll also can't benefit from advantage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"na1-speed dart\", \"na2-seeking missile\", \"na3-faithful archer\"]\r\n};\r\nPsionicsList[\"na1-speed dart\"] = {\r\n\tname : \"Speed Dart\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"1 ranged weapon gains psionic power; next hit with it deals +1d10/PP Psychic damage\",\r\n\tdescriptionFull : \"As a bonus action, you imbue one ranged weapon you hold with psionic power. The next attack you make with it that hits before the end of the current turn deals an extra 1d10 psychic damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"na2-seeking missile\"] = {\r\n\tname : \"Seeking Missile\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you miss with a ranged weapon attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"When I miss with a ranged attack, I can reroll the attack roll against the same target\",\r\n\tdescriptionFull : \"As a reaction when you miss with a ranged weapon attack, you can repeat the attack roll against the same target.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"na3-faithful archer\"] = {\r\n\tname : \"Faithful Archer\",\r\n\tsource : [[\"UA:TMC\", 21]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"1 ranged weapon gains sentience; free attack with it at the start of each turn; thrown weapons return\",\r\n\tdescriptionFull : \"As a bonus action, you imbue a ranged weapon with a limited sentience. Until your concentration ends, you can make an extra attack with the weapon at the start of each of your turns (no action required). If it is a thrown weapon, it returns to your grasp each time you make any attack with it.\",\r\n\tfirstCol : 5\r\n};\r\n//the nomadic chameleon discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic chameleon-ua-psy\"] = {\r\n\tname : \"Nomadic Chameleon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Dexterity (Stealth) checks\",\r\n\tdescriptionFull : \"You create a screen of psychic power that distorts your appearance, allowing you to blend into the background or even turn invisible.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Dexterity (Stealth) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"nc1-chameleon\", \"nc2-step from sight\", \"nc3-enduring invisibility\"]\r\n};\r\nPsionicsList[\"nc1-chameleon\"] = {\r\n\tname : \"Chameleon\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"This turn end\",\r\n\tdescription : \"I can hide, regardless of requirements; at end of turn, remain hidden only if requirements are met\",\r\n\tdescriptionFull : \"As an action, you can attempt to hide even if you fail to meet the requirements needed to do so. At the end of the current turn, you remain hidden only if you then meet the normal requirements for hiding.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"nc2-step from sight\"] = {\r\n\tname : \"Step from Sight\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I (+1 crea/extra PP) become invisible; attacking/targeting/affecting other crea makes a crea visible\",\r\n\tdescriptionFull : \"As a bonus action, cloak yourself from sight. You can target one additional creature for every additional psi point you spend on this ability. The added targets must be visible to you and within 60 feet of you.\" + \"\\n   \" + \"Each target turns invisible and remains so until your concentration ends or until immediately after it targets, damages, or otherwise affects any creature with an attack, a spell, or another ability.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"nc3-enduring invisibility\"] = {\r\n\tname : \"Enduring Invisibility\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I turn invisible for the duration\",\r\n\tdescriptionFull : \"As a bonus action, you turn invisible and remain so until your concentration ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic mind discipline (contributed by mattohara)\r\nPsionicsList[\"nomadic mind-ua-psy\"] = {\r\n\tname : \"Nomadic Mind\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain proficiency with one skill, tool, or language\",\r\n\tdescriptionFull : \"You dispatch part of your psyche into the noosphere, the collective vista of minds and knowledge possessed by living things.\" + PsychicFocus + \"Whenever you focus on this discipline, you choose one skill or tool and have proficiency with it until your focus ends. Alternatively, you gain the ability to read and write one language of your choice until your focus ends.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"nm1-wandering mind\", \"nm2-find creature\", \"nm3-item lore\", \"nm4-psychic speech\", \"nm5-wandering eye\", \"nm6-phasing eye\"]\r\n};\r\nPsionicsList[\"nm1-wandering mind\"] = {\r\n\tname : \"Wandering Mind\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"10 min\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"Gain prof. with 1 skill/2PP: Animal Hand., History, Medicine, Nature, Performance, Religion, Survival\",\r\n\tdescriptionFull : \"You enter a deep contemplation. If you concentrate for this option's full duration, you then gain proficiency with up to three of the following skills (one skill for every 2 psi points spent): Animal Handling, Arcana, History, Medicine, Nature, Performance, Religion, and Survival. The benefit lasts for 1 hour, no concentration required.\",\r\n\tfirstCol : \"2-6\"\r\n};\r\nPsionicsList[\"nm2-find creature\"] = {\r\n\tname : \"Find Creature\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 h\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Learn general location of a creature, within 1-3 miles; if it's on other plane, learn which plane instead\",\r\n\tdescriptionFull : \"You cast your mind about for information about a specific creature. If you concentrate for this option's full duration, you then gain a general understanding of the creature's current location. You learn the region, city, town, village, or district where it is, pinpointing an area between 1 and 3 miles on a side (DM's choice). If the creature is on another plane of existence, you instead learn which plane.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"nm3-item lore\"] = {\r\n\tname : \"Item Lore\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 h\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 magical item or magic-imbued crea/obj; learn properties, how to use, and spells affecting it\",\r\n\tdescriptionFull : \"You carefully study an item. If you concentrate for this option's full duration while remaining within 5 feet of the item, you then gain the benefits of an identify spell cast on that item.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"nm4-psychic speech\"] = {\r\n\tname : \"Psychic Speech\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"1 h\",\r\n\tdescription : \"I understand all spoken/written languages and all with a language can understand what I say\",\r\n\tdescriptionFull : \"As an action, you attune your mind to the psychic imprint of all language. For 1 hour, you gain the ability to understand any language you hear or attempt to read. In addition, when you speak, all creatures that can understand a language understand what you say, regardless of what language you use.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"nm5-wandering eye\"] = {\r\n\tname : \"Wandering Eye\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : 'Create invisible, moving (unlimited range, 30ft/rnd) 1\" magic eye with darkvision I see through',\r\n\tdescription : \"Create invisible, moving (unlimited range, 10m/rnd) 2,5cm magic eye /w darkvision I see through\",\r\n\tdescriptionFull : \"As an action, you create a psychic sensor within 60 feet of you. The sensor lasts until your concentration ends. The sensor is invisible and hovers in the air. You mentally receive visual information from it, which has normal vision and darkvision with a range of 60 feet. The sensor can look in all directions. As an action, you can move the sensor up to 30 feet in any direction. There is no limit to how far away from you the eye can move, but it can't enter another plane of existence. A solid barrier blocks the eye's movement, but the eye can pass through an opening as small as 1 inch in diameter.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"nm6-phasing eye\"] = {\r\n\tname : \"Phasing Eye\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"As Wandering Eye above, except the eye can move through objects but can't end its movement in one\",\r\n\tdescriptionFull : \"As Wandering Eye above, except the eye can move through solid objects but can't end its movement in one. If it does so, the effect immediately ends.\",\r\n\tfirstCol : 7\r\n};\r\n//the nomadic step discipline (contributed by Justin W.)\r\nPsionicsList[\"nomadic step-ua-psy\"] = {\r\n\tname : \"Nomadic Step\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"1/turn; after I teleport, increase speed by 10 ft until end of my turn\",\r\n\tdescriptionFull : \"You exert your mind on the area around you, twisting the intraplanar pathways you perceive to allow instantaneous travel.\" + PsychicFocus + \"After you teleport on your turn while focused on this discipline, your walking speed increases by 10 feet until the end of the turn, as you are propelled by the magic of your teleportation. You can receive this increase only once per turn.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"ns1-step of a dozen paces\", \"ns2-nomadic anchor\", \"ns3-defensive step\", \"ns4-there and back again\", \"ns5-transposition\", \"ns6-baleful transposition\", \"ns7-phantom caravan\", \"ns8-nomad's gate\"]\r\n};\r\nPsionicsList[\"ns1-step of a dozen paces\"] = {\r\n\tname : \"Step of a Dozen Paces\",\r\n\tsource : [[\"UA:TMC\", 22]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"I teleport up to 20 ft/PP to where I can see, instead of moving this turn; only if not moved yet\",\r\n\tdescriptionFull : \"If you haven't moved yet on your turn, you take a bonus action to teleport up to 20 feet per psi point spent to an unoccupied space you can see, and your speed is reduced to 0 until the end of the turn.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"ns2-nomadic anchor\"] = {\r\n\tname : \"Nomadic Anchor\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"Create 5-ft cu teleport anchor; any teleport from this discipline can go to it if within range\",\r\n\tdescriptionFull : \"As an action, you create an invisible, intangible teleportation anchor in a 5-foot cube you can see within 120 feet of you. For the next 8 hours, whenever you use this psionic discipline to teleport, you can instead teleport to the anchor, even if you can't see it, but it must be within range of the teleportation ability.\",\r\n\tfirstCol : 1\r\n};\r\nPsionicsList[\"ns3-defensive step\"] = {\r\n\tname : \"Defensive Step\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"When hit by an attack, I gain +4 AC, and then teleport 10 ft to a space I can see\",\r\n\tdescriptionFull : \"When you are hit by an attack, you can use your reaction to gain a +4 bonus to AC against that attack, possibly turning it into a miss. You then teleport up to 10 feet to an unoccupied space you can see.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ns4-there and back again\"] = {\r\n\tname : \"There and Back Again\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"End of Turn\",\r\n\tdescription : \"I teleport 20 ft and move half my speed; I may teleport back to starting spot at end of my turn\",\r\n\tdescriptionFull : \"As a bonus action, you teleport up to 20 feet to an unoccupied space you can see and then move up to half your speed. At the end of your turn, you can teleport back to the spot you occupied before teleporting, unless it is now occupied or on a different plane of existence.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"ns5-transposition\"] = {\r\n\tname : \"Transposition\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Willing creature and I teleport, swapping places, instead of moving this turn; only if not moved yet\",\r\n\tdescriptionFull : \"If you haven't moved yet on your turn, choose an ally you can see within 60 feet of you. As a bonus action, you and that creature teleport, swapping places, and your speed is reduced to 0 until the end of the turn. This ability fails and is wasted if either of you can't fit in the destination space.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"ns6-baleful transposition\"] = {\r\n\tname : \"Baleful Transposition\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 creature save or it and I teleport, swapping places\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 120 feet of you. That creature must make a Wisdom saving throw. On a failed save, you and that creature teleport, swapping places. This ability fails and is wasted if either of you can't fit in the destination space.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"ns7-phantom caravan\"] = {\r\n\tname : \"Phantom Caravan\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Me and up to 6 willing creatures teleport up to 1 mile to a spot I can see\",\r\n\tdescriptionFull : \"As an action, you and up to six willing creatures of your choice that you can see within 60 feet of you teleport up to 1 mile to a spot you can see. If there isn't an open space for all the targets to occupy at the arrival point, this ability fails and is wasted.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"ns8-nomad's gate\"] = {\r\n\tname : \"Nomad's Gate\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Create a 5-ft cu in range, and another up to 1 mile away; anyone entering one, teleports to the other\",\r\n\tdescriptionFull : \"As an action, you create a 5-foot cube of dim, gray light within 5 feet of you. You create an identical cube at any point of your choice within 1 mile that you have viewed within the past 24 hours. Until your concentration ends, anyone entering one of the cubes immediately teleports to the other one, appearing in an unoccupied space next to it. The teleportation fails if there is no space for the creature to appear in.\",\r\n\tfirstCol : 7\r\n};\r\n//the precognition discipline (contributed by Justin W.)\r\nPsionicsList[\"precognition-ua-psy\"] = {\r\n\tname : \"Precognition\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advangage on initiative rolls\",\r\n\tdescriptionFull : \"By analyzing information around you, from subtle hints to seemingly disconnected facts, you learn to weave a string of probabilities in an instant that gives you extraordinary insights.\" + PsychicFocus + \"While focused on this discipline, you have advantage on initiative rolls.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"p1-precognitive hunch\", \"p2-all-around sight\", \"p3-danger sense\", \"p4-victory before battle\"]\r\n};\r\nPsionicsList[\"p1-precognitive hunch\"] = {\r\n\tname : \"Precognitive Hunch\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I add 1d4 to attack rolls, saving throws, and ability checks\",\r\n\tdescriptionFull : \"As a bonus action, you open yourself to receive momentary insights that improve your odds of success; until your concentration ends, whenever you make an attack roll, a saving throw, or an ability check, you roll a d4 and add it to the total.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"p2-all-around sight\"] = {\r\n\tname : \"All-Around Sight\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are hit by an attack\",\r\n\trange : \"Self\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"After an attack hits me, impose disadvantage on that attack roll\",\r\n\tdescriptionFull : \"In response to an attack hitting you, you use your reaction to impose disadvantage on that attack roll, possibly causing it to miss.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"p3-danger sense\"] = {\r\n\tname : \"Danger Sense\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 8 h\",\r\n\tdescription : \"I gain +10 on the initiative roll, can't be surprised, and attacks against me can't gain advantage\",\r\n\tdescriptionFull : \"As an action, you create a psychic model of reality in your mind and set it to show you a few seconds into the future. Until your concentration ends, you can't be surprised, attack rolls against you can't gain advantage, and you gain a +10 bonus to initiative.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"p4-victory before battle\"] = {\r\n\tname : \"Victory Before Battle\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"\",\r\n\trange : \"60-ft rad\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Use when rolling initiative; grant myself and up to 5 creatures +10 on the initiative roll\",\r\n\tdescriptionFull : \"When you roll initiative, you can use this ability to grant yourself and up to five creatures of your choice within 60 feet of you a +10 bonus to initiative.\",\r\n\tfirstCol : 7\r\n};\r\n//the psionic restoration discipline (contributed by Justin W.)\r\nPsionicsList[\"psionic restoration-ua-psy\"] = {\r\n\tname : \"Psionic Restoration\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"While focused, I can touch a creature with 0 HP as a bonus action and stabilize it\",\r\n\tdescriptionFull : \"You wield psionic energy to cure wounds and restore health to yourself and others.\" + PsychicFocus + \"While focused on this discipline, you can use a bonus action to touch a creature that has 0 hit points and stabilize it.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pr1-mend wounds\", \"pr2-restore health\", \"pr3-restore life\", \"pr4-restore vigor\"]\r\n};\r\nPsionicsList[\"pr1-mend wounds\"] = {\r\n\tname : \"Mend Wounds\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature is healed for 1d8/PP HP\",\r\n\tdescriptionFull : \"As an action, you can spend psi points to restore hit points to one creature you touch. The creature regains 1d8 hit points per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pr2-restore health\"] = {\r\n\tname : \"Restore Health\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature is cured of either blindness, deafness, paralysis, poison, or 1 disease\",\r\n\tdescriptionFull : \"As an action, you touch one creature and remove one of the following conditions from it: blinded, deafened, paralyzed, or poisoned. Alternatively, you remove one disease from the creature.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pr3-restore life\"] = {\r\n\tname : \"Restore Life\",\r\n\tsource : [[\"UA:TMC\", 23]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Resurrects 1 crea that has died in last minute to 1 HP, if not missing vital body parts or died of old age\",\r\n\tdescriptionFull : \"As an action, you touch one creature that has died within the last minute. The creature returns to life with 1 hit point. This ability can't return to life a creature that has died of old age, nor can it restore a creature missing any vital body parts.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pr4-restore vigor\"] = {\r\n\tname : \"Restore Vigor\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 crea removes either 1 ability score reduction, 1 HP max reduction effect, or 1 level of exhaustion\",\r\n\tdescriptionFull : \"As an action, you can touch one creature and choose one of the following: remove any reductions to one of its ability scores, remove one effect that reduces its hit point maximum, or reduce its exhaustion level by one.\",\r\n\tfirstCol : 7\r\n};\r\n//the psionic weapon discipline (contributed by Justin W.)\r\nPsionicsList[\"psionic weapon-ua-psy\"] = {\r\n\tname : \"Psionic Weapon\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"1 weapon or unarmed strike does Psychic dmg and counts as magical; no Str or Dex to dmg until CL6\",\r\n\tdescriptionFull : \"You have learned how to channel psionic energy into your attacks, lending them devastating power.\" + PsychicFocus + \"Whenever you focus on this discipline, choose one weapon you're holding or your unarmed strike. When you attack with it while focused on this discipline, its damage is psychic and magical, rather than its normal damage type. Until you reach 6th level as a mystic, you don't add your Strength or Dexterity modifier to the psychic attack's damage rolls.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pw1-ethereal weapon\", \"pw2-lethal strike\", \"pw3-augmented weapon\"]\r\n};\r\nPsionicsList[\"pw1-ethereal weapon\"] = {\r\n\tname : \"Ethereal Weapon\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"1 crea save or auto hit by my next wea/unarmed atk; save halves atk dmg \\u0026 negates any side-effects\",\r\n\tdescriptionFull : \"As a bonus action, you temporarily transform one weapon you're holding or your unarmed strike into pure psionic energy. The next attack you make with it before the end of your turn ignores the target's armor, requiring no attack roll. Instead, the target makes a Dexterity saving throw against this discipline. On a failed save, the target takes the attack's normal damage and suffers its additional effects. On a successful save, the target takes half damage from the attack but suffers no additional effects that would normally be imposed on a hit.\",\r\n\tfirstCol : 1\r\n};\r\nPsionicsList[\"pw2-lethal strike\"] = {\r\n\tname : \"Lethal Strike\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Next turn end\",\r\n\tdescription : \"My next weapon or unarmed attack that hits does +1d10/PP Psychic damage\",\r\n\tdescriptionFull : \"As a bonus action, you imbue a weapon you're holding or your unarmed strike with psychic energy. The next time you hit with it before the end of your turn, it deals an extra 1d10 psychic damage per psi point spent.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pw3-augmented weapon\"] = {\r\n\tname : \"Augmented Weapon\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Immor\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Touch\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"1 weapon becomes a magic weapon with a +3 bonus to its attack and damage rolls\",\r\n\tdescriptionFull : \"As a bonus action, touch one simple or martial weapon. Until your concentration ends, that weapon becomes a magic weapon with a +3 bonus to its attack and damage rolls.\",\r\n\tfirstCol : 5\r\n};\r\n//the psychic assault discipline\r\nPsionicsList[\"psychic assault-ua-psy\"] = {\r\n\tname : \"Psychic Assault\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain a +2 bonus to damage rolls with psionic talents that deal Psychic damage\",\r\n\tdescriptionFull : \"You wield your mind like a weapon, unleashing salvos of psionic energy.\" + PsychicFocus + \"While focused on this discipline, you gain a +2 bonus to damage rolls with psionic talents that deal psychic damage.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pa1-psionic blast\", \"pa2-ego whip\", \"pa3-id insinuation\", \"pa4-psychic blast\", \"pa5-psychic crush\"]\r\n};\r\nPsionicsList[\"pa1-psionic blast\"] = {\r\n\tname : \"Psionic Blast\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"1 creature takes 1d8/PP Psychic damage\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target takes 1d8 psychic damage per psi point spent on this ability.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pa2-ego whip\"] = {\r\n\tname : \"Ego Whip\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 3d8 Psychic dmg, next turn just Dodge/Disengage/Hide action; save half \\u0026 act normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, the creature takes 3d8 psychic damage, and it is filled with self-doubt, leaving it able to use its action on its next turn only to take the Dodge, Disengage, or Hide action. On a successful saving throw, it takes half as much damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pa3-id insinuation\"] = {\r\n\tname : \"Id Insinuation\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 5d8 Psychic dmg, next turn only Dodge/Attack action; save halves \\u0026 act normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, the creature takes 5d8 psychic damage, and it goes into a fury, as its id runs rampant. On its next turn, it can use its action only to take the Dodge or Attack action. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pa4-psychic blast\"] = {\r\n\tname : \"Psychic Blast\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60-ft cone\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"All creatures 8d8(+2d8/extra PP) Psychic dmg; save halves\",\r\n\tdescriptionFull : \"As an action, you unleash devastating psychic energy in a 60-foot cone. Each creature in that area must make an Intelligence saving throw, taking 8d8 psychic damage on a failed save, or half as much damage on a successful one. You can increase the damage by 2d8 if you spend 1 more psi point on this ability.\",\r\n\tfirstCol : \"6-7\"\r\n};\r\nPsionicsList[\"pa5-psychic crush\"] = {\r\n\tname : \"Psychic Crush\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"20-ft cu all crea save or 8d8 Psychic dmg \\u0026 stunned until my next turn ends; save halves \\u0026 no stun\",\r\n\tdescriptionFull : \"As an action, you create a 20-foot cube of psychic energy within 120 feet of you. Each creature in that area must make an Intelligence saving throw. On a failed save, a target takes 8d8 psychic damage and is stunned until the end of your next turn. On a successful save, a target takes half as much damage.\",\r\n\tfirstCol : 7\r\n};\r\n//the psychic disruption discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic disruption-ua-psy\"] = {\r\n\tname : \"Psychic Disruption\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I have advantage on Charisma (Deception) checks\",\r\n\tdescriptionFull : \"You create psychic static that disrupts other creatures' ability to think clearly.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Deception) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pd1-distracting haze\", \"pd2-daze\", \"pd3-mind storm\"]\r\n};\r\nPsionicsList[\"pd1-distracting haze\"] = {\r\n\tname : \"Distracting Haze\",\r\n\tsource : [[\"UA:TMC\", 24]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, can't see more than 10 ft; save halves and see normal\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. That creature must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and can't see anything more than 10 feet from it until your concentration ends. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pd2-daze\"] = {\r\n\tname : \"Daze\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or incapacitated until end of my next turn or it takes any damage\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. That creature must make an Intelligence saving throw. On a failed save, the target is incapacitated until the end of your next turn or until it takes any damage.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"pd3-mind storm\"] = {\r\n\tname : \"Mind Storm\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"20-ft rad all crea 6d8(+1d6/extra PP) Psychic dmg and dis. on saves; save halves and no dis. on saves\",\r\n\tdescriptionFull : \"As an action, choose a point you can see within 60 feet of you. Each creature in a 20-foot-radius sphere centered on that point must make a Wisdom saving throw. On a failed save, a target takes 6d8 psychic damage and suffers disadvantage on all saving throws until the end of your next turn. On a successful save, a creature takes half as much damage. You can increase the damage by 1d6 per additional psi point spent on this ability.\",\r\n\tfirstCol : \"5-7\"\r\n};\r\n//the psychic inquisition discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic inquisition-ua-psy\"] = {\r\n\tname : \"Psychic Inquisition\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I know when a creature telepathically communicating with me is lying\",\r\n\tdescriptionFull : \"You reach into a creature's mind to uncover information or plant ideas within it.\" + PsychicFocus + \"While focused on this discipline, you know when a creature communicating with you via telepathy is lying.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pi1-hammer of inquisition\", \"pi2-forceful query\", \"pi3-ransack mind\", \"pi4-phantom idea\"]\r\n};\r\nPsionicsList[\"pi1-hammer of inquisition\"] = {\r\n\tname : \"Hammer of Inquisition\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, dis. next Wis save before my next turn; save halves \\u0026 no effects\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and suffers disadvantage on its next Wisdom saving throw before the end of your next turn. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pi2-forceful query\"] = {\r\n\tname : \"Forceful Query\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or they must truthfully answer a yes or no question (charm effect)\",\r\n\tdescriptionFull : \"As an action, you ask a question of one creature that can see and hear you within 30 feet of you. The question must be phrased so that it can be answered with a yes or no, otherwise this ability fails. The target must succeed on a Wisdom saving throw, or it replies with a truthful answer. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"pi3-ransack mind\"] = {\r\n\tname : \"Ransack Mind\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 h\",\r\n\trange : \"30 ft\",\r\n\tduration : \"12/24/48 h\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 3 saves if in range for full duration; learn key memories from 12/24/48 h (1/2/3 failed saves)\",\r\n\tdescriptionFull : \"While you concentrate on this ability, you probe one creature's mind. The creature must remain within 30 feet of you, and you must be able to see it. If you reach the ability's full duration, the target must make three Intelligence saving throws, and you learn information from it based on the number of saving throws it fails.\" + \"\\n   \" + \"With one failed saving throw, you learn its key memories from the past 12 hours.\" + \"\\n   \" + \"With two failed saving throws, you learn its key memories from the past 24 hours.\" + \"\\n   \" + \"With three failed saving throws, you learn its key memories from the past 48 hours.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pi4-phantom idea\"] = {\r\n\tname : \"Phantom Idea\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 h\",\r\n\trange : \"30 ft\",\r\n\tduration : \"4/24/48 h\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 3 saves if in range for full duration; implant memory lasting 4/24/48 h (1/2/3 failed saves)\",\r\n\tdescriptionFull : \"While you concentrate on this ability, you probe one creature's mind. The creature must remain within 30 feet of you, and you must be able to see it. If you reach the ability's full duration, the target must make three Intelligence saving throws, and you plant a memory or an idea in it, which lasts for a number of hours based on the number of saving throws it fails. You choose whether the idea or memory is trivial (such as “I had porridge for breakfast” or “Ale is the worst”) or personality-defining (“I failed to save my village from orc marauders and am therefore a coward” or “Magic is a scourge, so I renounce it”).\" + \"\\n   \" + \"With one failed saving throw, the idea or memory lasts for the next 4 hours. With two failed saving throws, it lasts for 24 hours. With three failed saving throws, it lasts for 48 hours.\",\r\n\tfirstCol : 6\r\n};\r\n//the psychic phantoms discipline (contributed by Justin W.)\r\nPsionicsList[\"psychic phantoms-ua-psy\"] = {\r\n\tname : \"Psychic Phantoms\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain advantage on Charisma (Deception) checks\",\r\n\tdescriptionFull : \"Your power reaches into a creature's mind and causes it false perceptions.\" + PsychicFocus + \"While focused on this discipline, you have advantage on Charisma (Deception) checks.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"pp1-distracting figment\", \"pp2-phantom foe\", \"pp3-phantom betrayal\", \"pp4-phantom riches\"]\r\n};\r\nPsionicsList[\"pp1-distracting figment\"] = {\r\n\tname : \"Distracting Figment\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Next turn end\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or 1d10/PP Psychic dmg, can't use rea, melee atks vs. it have adv.; save halves \\u0026 no effects\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it takes 1d10 psychic damage per psi point spent and thinks it perceives a threatening creature just out of its sight; until the end of your next turn, it can't use reactions, and melee attack rolls against it have advantage. On a successful save, it takes half as much damage.\",\r\n\tfirstCol : \"1-7\"\r\n};\r\nPsionicsList[\"pp2-phantom foe\"] = {\r\n\tname : \"Phantom Foe\",\r\n\tsource : [[\"UA:TMC\", 25]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or no rea and 1d8(+1d8/extra PP) Psychic dmg at start its turn; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, it perceives a horrid creature adjacent to it until your concentration ends. During this time, the target can't take reactions, and it takes 1d8 psychic damage at the start of each of its turns. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. You can increase the damage by 1d8 for each additional psi point spent on the ability.\",\r\n\tfirstCol : \"3-7\"\r\n};\r\nPsionicsList[\"pp3-phantom betrayal\"] = {\r\n\tname : \"Phantom Betrayal\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or targets its allies with attacks/damaging effects; save at end of each turn (charm effect)\",\r\n\tdescriptionFull : \"As an action, you plant delusional paranoia in a creature's mind. Choose one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or until your concentration ends, it must target its allies with attacks and other damaging effects. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"pp4-phantom riches\"] = {\r\n\tname : \"Phantom Riches\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I move it and it can't act if not taking dmg since last turn; save at end of each turn\",\r\n\tdescriptionFull : \"As an action, you plant the phantom of a greatly desired object in a creature's mind. Choose one creature you can see within 60 feet of you. The target must make an Intelligence saving throw. On a failed save, you gain partial control over the target's behavior until your concentration ends; the target moves as you wish on each of its turns, as it thinks it pursues the phantom object it desires. If it hasn't taken damage since its last turn, it can use its action only to admire the object you created in its perception. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\",\r\n\tfirstCol : 7\r\n};\r\n//the telepathic contact discipline (contributed by Justin W.)\r\nPsionicsList[\"telepathic contact-ua-psy\"] = {\r\n\tname : \"Telepathic Contact\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"Use telepathy class feature with up to 6 crea; If no telepathy feature, gain telepathy 120 ft instead\",\r\n\tdescriptionFull : \"By channeling psionic power, you gain the ability to control other creatures by substituting your will for their own.\" + PsychicFocus + \"While focused on this discipline, you gain the ability to use your Telepathy class feature with up to six creatures at once. If you don't have that feature from the mystic class, you instead gain it while focused on this discipline.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"tc1-exacting query\", \"tc2-occluded mind\", \"tc3-broken will\", \"tc4-psychic grip\", \"tc5-psychic domination\"]\r\n};\r\nPsionicsList[\"tc1-exacting query\"] = {\r\n\tname : \"Exacting Query\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or answer 1 telepathically asked question; on save, target is immune until my long rest\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, the target truthfully answers one question you ask it via telepathy. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"tc2-occluded mind\"] = {\r\n\tname : \"Occluded Mind\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"5 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or believes telepathic statement; on save, target immune until my long rest (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, the target believes one statement of your choice for the next 5 minutes that you communicate to it via telepathy. The statement can be up to ten words long, and it must describe you or a creature or an object the target can see. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"tc3-broken will\"] = {\r\n\tname : \"Broken Will\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I control it on its next turn; on save, target immune until my long rest (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can communicate with via telepathy. The target must make an Intelligence saving throw. On a failed save, you choose the target's movement and action on its next turn. On a successful save, the target is unaffected, and you can't use this ability on it again until you finish a long rest. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 5\r\n};\r\nPsionicsList[\"tc4-psychic grip\"] = {\r\n\tname : \"Psychic Grip\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or paralyzed; save at end of each turn, on failure I use rea to have it move half its speed\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or it is paralyzed until your concentration ends. At the end of each of its turns, it can repeat the saving throw. On a success, this effect ends. On a failure, you can use your reaction to force the target to move up to half its speed, even though it's paralyzed.\",\r\n\tfirstCol : 6\r\n};\r\nPsionicsList[\"tc5-psychic domination\"] = {\r\n\tname : \"Psychic Domination\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Awake\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or I direct its actions and move on its turns; save at end of each turn (charm effect)\",\r\n\tdescriptionFull : \"As an action, you target one creature you can see within 60 feet of you. The target must succeed on an Intelligence saving throw, or you choose the creature's actions and movement on its turns until your concentration ends. At the end of each of its turns, it can repeat the saving throw, ending the effect on itself on a success. A creature is immune to this ability if it is immune to being charmed.\",\r\n\tfirstCol : 7\r\n};\r\n//the third eye discipline (contributed by Justin W.)\r\nPsionicsList[\"third eye-ua-psy\"] = {\r\n\tname : \"Third Eye\",\r\n\tclasses : [\"mystic\"],\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"Psi-F.\",\r\n\tduration : \"While focused\",\r\n\tdescription : \"I gain darkvision 60 ft; if already darkvision of 60 ft or more, increase range by 10 ft instead\",\r\n\tdescriptionFull : \"You create a third, psychic eye in your mind which you cast out into the world. It channels thoughts and knowledge back to you, greatly enhancing your senses.\" + PsychicFocus + \"While focused on this discipline, you have darkvision with a range of 60 feet. If you already have darkvision with that range or greater, increase its range by 10 feet.\",\r\n\tfirstCol : \"checkbox\",\r\n\tdependencies : [\"te1-tremorsense\", \"te2-unwavering eye\", \"te3-piercing sight\", \"te4-truesight\"]\r\n};\r\nPsionicsList[\"te1-tremorsense\"] = {\r\n\tname : \"Tremorsense\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain tremorsense with a radius of 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain tremorsense with a radius of 30 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"te2-unwavering eye\"] = {\r\n\tname : \"Unwavering Eye\",\r\n\tsource : [[\"UA:TMC\", 26]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"1 min\",\r\n\tdescription : \"I gain advantage on Wisdom checks\",\r\n\tdescriptionFull : \"As a bonus action, you gain advantage on Wisdom checks for 1 minute\",\r\n\tfirstCol : 2\r\n};\r\nPsionicsList[\"te3-piercing sight\"] = {\r\n\tname : \"Piercing Sight\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I see through objects that are up to 1 ft thick within 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain the ability to see through objects that are up to 1 foot thick within 30 feet of you. This sight lasts until your concentration ends.\",\r\n\tfirstCol : 3\r\n};\r\nPsionicsList[\"te4-truesight\"] = {\r\n\tname : \"Truesight\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tpsionic : true,\r\n\tlevel : 1,\r\n\tschool : \"Nomad\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"I gain truesight with a radius of 30 ft\",\r\n\tdescriptionFull : \"As a bonus action, you gain truesight with a radius of 30 feet, which lasts until your concentration ends.\",\r\n\tfirstCol : 5\r\n};\r\n\r\n// Psionic Discipline 'Mastery of Force' power 'Inertial Armour'\r\nArmourList[\"inertial armor-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*(inertial|psychic|psionic))(?=.*armou?r).*$/i,\r\n\tname : \"Inertial armor\",\r\n\tsource : [[\"UA:TMC\", 18]],\r\n\tac : 14,\r\n\tlist : \"magic\"\r\n};\r\n\r\n// Psionic Talents that work like damage cantrips\r\nWeaponsList[\"energy beam-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\benergy\\b)(?=.*\\bbeam\\b).*$/i,\r\n\tname : \"Energy Beam\",\r\n\tsource : [[\"UA:TMC\", 27]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 8, \"My choice\"],\r\n\trange : \"90 ft\",\r\n\tdescription : \"Dex save, success - no damage; Acid, cold, fire, lightning, or thunder damage [my choice]\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"mind slam-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bmind\\b)(?=.*\\bslam\\b).*$/i,\r\n\tname : \"Mind Slam\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"60 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - Large or smaller target also knocked prone\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"mind thrust-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bmind\\b)(?=.*\\bthrust\\b).*$/i,\r\n\tname : \"Mind Thrust\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"psychic\"],\r\n\trange : \"120 ft\",\r\n\tdescription : \"Int save, success - no damage\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"psychic hammer-ua-psy\"] = {\r\n\tregExpSearch : /^(?=.*\\bpsychic\\b)(?=.*\\bhammer\\b).*$/i,\r\n\tname : \"Psychic Hammer\",\r\n\tsource : [[\"UA:TMC\", 28]],\r\n\tlist : \"psionic\",\r\n\tability : 4,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"force\"],\r\n\trange : \"120 ft\",\r\n\tdescription : \"Str save, success - no damage, fail - also move 10 ft in chosen direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20170320_Wizard-Revisited.js",
    "content": "var iFileName = \"ua_20170320_Wizard-Revisited.js\";\nRequiredSheetVersion(\"13.0.8\", 15);\n// This file adds the content from the Unearthed Arcana: Wizard Revisited article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:WR\"] = {\n\tname : \"Unearthed Arcana: Wizard Revisited\",\n\tabbreviation : \"UA:WR\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2017/dnd/downloads/MJ320UAWizardVF2017.pdf\",\n\tdate : \"2017/03/20\"\n};\n\n// Adds 1 new subclass for the Wizard (with contributions by erickrause)\nAddSubClass(\"wizard\", \"war magic-ua\", {\n\tregExpSearch : /^(?=.*war)(?=.*(magic|mage)).*$/i,\n\tsubname : \"War Magic\",\n\tsource : [[\"UA:WR\", 2]],\n\tfullname : \"War Mage\",\n\tfeatures : {\n\t\t\"subclassfeature2\" : { //has to be identical to a feature named in the ClassList\n\t\t\tname : \"Arcane Deflection\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a reaction when I'm hit by an attack, I can gain +2 to my AC against that attack\",\n\t\t\t\t\"As a reaction when I fail a Con save, I can gain +4 bonus to that saving throw\",\n\t\t\t\t\"After I do either, I can't cast spells other than cantrips until the end of my next turn\"\n\t\t\t]),\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Tactical Wit\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"I gain a bonus to my initiative rolls equal to my Intelligence modifier\"\n\t\t\t]),\n\t\t\taddMod : { type : \"skill\", field : \"Init\", mod : \"max(Int|0)\", text : \"I can add my Intelligence modifier to initiative rolls.\" }\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Power Surge\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When multiple targets have to save vs. one of my spells, I can have it do more damage\",\n\t\t\t\t\"On the turn I cast the spell, I can roll 2 additional damage dice for it\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\"\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Durable Magic\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"While I'm maintaining concentration on a spell, I gain +2 to AC and all saving throws\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Deflecting Shroud\",\n\t\t\tsource : [[\"UA:WR\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I use my Arcane Deflection feature, magical energy arcs from me\",\n\t\t\t\t\"Any creatures of my choice within 10 ft of me take half my level in force damage\"\n\t\t\t]),\n\t\t\tadditional : levels.map( function(n) { return n < 14 ? \"\" : Math.floor(n/2) + \" force damage\"; })\n\t\t}\n\t}\n});\n// [dupl_start] Don't add the Theurgy subclass if the source UA:TF is present, as that class is identical to the one found in Unearthed Arcana: The Faithful (2016/08/01)\nif (!SourceList[\"UA:TF\"]) {\nRunFunctionAtEnd(function() {\n\tvar theTheurgySubclass = AddSubClass(\"wizard\", \"theurgy-ua\", { // Still valid 2021-09-21\n\t\tregExpSearch : /^((?=.*mystic)(?=.*theurge))|(?=.*(theurgy|theurgist)).*$/i,\n\t\tsubname : \"Theurgy\",\n\t\tsource : [[\"UA:TF\", 1], [\"UA:WR\", 1]],\n\t\tfullname : \"Theurgist\",\n\t\tfeatures : {\n\t\t\t\"subclassfeature2\" : {\n\t\t\t\tname : \"Arcane Initiate\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t'Choose a Cleric Domain using the \"Choose Feature\" button above',\n\t\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\t\"I can replace it with one of the chosen domain spells, if it is of a level I can cast\",\n\t\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t\t]),\n\t\t\t\tcalcChanges : {\n\t\t\t\t\tspellList : [\n\t\t\t\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1 || !CurrentSpells.wizard.extra || !CurrentSpells.wizard.selectSp || !spList.level || !spList.level[1]) return;\n\t\t\t\t\t\t\tvar domainSpells = CurrentSpells.wizard.extra;\n\t\t\t\t\t\t\t// now stop this function if even one of the domain spells is not already in the spellbook\n\t\t\t\t\t\t\tvar knownSpells = [].concat(CurrentSpells.wizard.selectSp ? CurrentSpells.wizard.selectSp : []).concat(CurrentSpells.wizard.selectSpSB ? CurrentSpells.wizard.selectSpSB : []);\n\t\t\t\t\t\t\tfor (var i = 0; i < domainSpells.length; i++) {\n\t\t\t\t\t\t\t\tif (knownSpells.indexOf(domainSpells[i]) == -1) return;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// get all the cleric spells, level 1-9\n\t\t\t\t\t\t\tvar clericSpells = CreateSpellList({\"class\" : \"cleric\", level : [1,9]});\n\t\t\t\t\t\t\tspList.extraspells = spList.extraspells.concat(clericSpells);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"When I gain a wizard level after my spellbook already has all the spells of my chosen domain, I can instead select any cleric spell of a level I can cast as one of the spells I gain from levelling up.\"\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\tchoices : [],\n\t\t\t\tchoiceDependencies : [{\n\t\t\t\t\tfeature : \"subclassfeature2.3\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature6\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature10\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature14\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"subclassfeature2.1\" : {\n\t\t\t\tname : \"Channel Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc(\"I can channel arcane energy from my deity; the save for this is my wizard spell DC\"),\n\t\t\t\tusages : [0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3],\n\t\t\t\trecovery : \"short rest\"\n\t\t\t},\n\t\t\t\"subclassfeature2.2\" : {\n\t\t\t\tname : \"Channel Arcana: Divine Arcana\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc([\n\t\t\t\t\t\"As a bonus action, I speak a prayer to control the flow of magic around me\",\n\t\t\t\t\t\"The next spell I cast gains a +2 bonus to its attack roll or saving throw DC\",\n\t\t\t\t]),\n\t\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t\t},\n\t\t\t\"subclassfeature2.3\" : {\n\t\t\t\tname : \"Channel Arcana: Domain\",\n\t\t\t\tsource : [[\"UA:TF\", 2], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 2,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature6\" : {\n\t\t\t\tname : \"Arcane Acolyte\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 1]],\n\t\t\t\tminlevel : 6,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature10\" : {\n\t\t\t\tname : \"Arcane Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 10,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t},\n\t\t\t\"subclassfeature14\" : {\n\t\t\t\tname : \"Arcane High Priest\",\n\t\t\t\tsource : [[\"UA:TF\", 3], [\"UA:WR\", 2]],\n\t\t\t\tminlevel : 14,\n\t\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the domain'),\n\t\t\t\tchoices : [],\n\t\t\t\tchoicesNotInMenu : true\n\t\t\t}\n\t\t}\n\t});\n\tvar MTfeat = ClassSubList[theTheurgySubclass].features;\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\n\t\tvar aDomain = ClassSubList[ClassList.cleric.subclasses[1][i]];\n\t\tif (!aDomain) continue;\n\t\tvar dSource = aDomain.source ? aDomain.source : aDomain.features[\"subclassfeature1\"] && aDomain.features[\"subclassfeature1\"].source ? aDomain.features[\"subclassfeature1\"].source : [[\"UA:TF\", 0], [\"UA:WR\", 0]];\n\t\t\n\t\tvar suffix = 1;\n\t\tvar entryDoNm = aDomain.subname;\n\t\twhile (MTfeat[\"subclassfeature2\"].choices.indexOf(entryDoNm) !== -1) {\n\t\t\tsuffix += 1;\n\t\t\tentryDoNm = aDomain.subname + \" (\" + suffix + \")\";\n\t\t};\n\t\tMTfeat[\"subclassfeature2\"].choices.push(entryDoNm);\n\t\tMTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()] = {\n\t\t\tname : \"Arcane Initiate: \" + aDomain.subname,\n\t\t\tsource : dSource,\n\t\t\tspellcastingExtra : aDomain.spellcastingExtra,\n\t\t\tdescription: desc([\n\t\t\t\t\"When I gain a wizard level I can replace one of the spells I would add to my spellbook\",\n\t\t\t\t\"I can replace it with one of the \" + aDomain.subname.toLowerCase() + \" spells, if it is of a level I can cast\",\n\t\t\t\t\"If my spellbook has all the domain spells, I can select any cleric spell of a level I can cast\",\n\t\t\t\t\"Other wizards cannot copy cleric spells from my spellbook into their own spellbooks\",\n\t\t\t]),\n\t\t};\n\t\tvar AIdomain = MTfeat[\"subclassfeature2\"][entryDoNm.toLowerCase()];\n\t\tfor (var aFea in aDomain.features) {\n\t\t\tvar dFea = aDomain.features[aFea];\n\t\t\tif (dFea.minlevel === 2 && (/channel divinity/i).test(dFea.name)) {\n\t\t\t\tMTfeat[\"subclassfeature2.3\"].choices.push(entryDoNm);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\tMTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name = MTfeat[\"subclassfeature2.3\"][entryDoNm.toLowerCase()].name.replace(/channel divinity/i, \"Channel Arcana\");\n\t\t\t};\n\t\t\tif (dFea.minlevel === 1 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature6\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature6\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature6\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 6 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature10\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature10\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature10\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (dFea.minlevel === 17 && !dFea.armor && !dFea.weapons && !dFea.armorProfs && !dFea.weaponProfs) {\n\t\t\t\tif (MTfeat[\"subclassfeature14\"].choices.indexOf(entryDoNm) === -1) { //if the entry does not exist yet\n\t\t\t\t\tMTfeat[\"subclassfeature14\"].choices.push(entryDoNm);\n\t\t\t\t\tMTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()] = newObj(dFea);\n\t\t\t\t} else { //add to the existing entry\n\t\t\t\t\tvar theFea = MTfeat[\"subclassfeature14\"][entryDoNm.toLowerCase()];\n\t\t\t\t\ttheFea.name += \" \\u0026 \" + dFea.name;\n\t\t\t\t\ttheFea.description += dFea.description;\n\t\t\t\t\tfor (var subFea in dFea) {\n\t\t\t\t\t\tif (theFea[subFea] === undefined) theFea[subFea] = dFea[subFea];\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t};\n\t};\n});\n}; // dupl_end\n"
  },
  {
    "path": "WotC material/ua_20170327_A-Trio-of-Subclasses.js",
    "content": "var iFileName = \"ua_20170327_A Trio-of-Subclasses.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: A Trio of Subclasses article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:AToS\"] = {\r\n\tname : \"Unearthed Arcana: A Trio of Subclasses\",\r\n\tabbreviation : \"UA:AToS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UAThreeSubclasses.pdf\",\r\n\tdate : \"2017/03/27\"\r\n};\r\n\r\n// Adds three subclass: 1 for the Monk, 1 for the Paladin, and 1 for the Ranger\r\nAddSubClass(\"monk\", \"way of the drunken master-ua\", {\r\n\tregExpSearch : /^((?=.*drunken)(?=.*master))|((?=.*drunk)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior)))).*$/i,\r\n\tsubname : \"Way of the Drunken Master\",\r\n\tsubnameShort: \"Drunken Master\",\r\n\tfullname : \"Drunken Master\",\r\n\tsource : [[\"UA:AToS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Drunken Technique\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the Performance skill\",\r\n\t\t\t\t\"When using Flurry of Blows, I gain the benefits of a Disengage and +10 ft speed this turn\"\r\n\t\t\t]),\r\n\t\t\tskills : [\"Performance\"]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Tipsy Sway\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"As a reaction when missed in melee, attacker instead hits another I can see within 5 ft\"),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drunkard's Luck\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"Before I roll for a save, I can spend 1 ki to give myself advantage on it\"),\r\n\t\t\tadditional : \"1 ki point\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Intoxicated Frenzy\",\r\n\t\t\tsource : [[\"UA:AToS\", 1]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I can make 3 extra attacks with Flurry of Blows if each is used on a different target\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of redemption-ua\", {\r\n\tregExpSearch : /^((?=.*redeemer)|((?=.*redemption)(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Redemption\",\r\n\tsubnameShort: \"Redemption\",\r\n\tsource : [[\"UA:AToS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Armor of Peace\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When not wearing armor or wielding a shield, my AC is 16 + my Dexterity modifier\"),\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*armou?r)(?=.*peace).*$/i,\r\n\t\t\t\tname : \"Armor of Peace\",\r\n\t\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\t\tac : 16,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"shield\", \"sleep\", \"hold person\", \"ray of enfeeblement\", \"counterspell\", \"hypnotic pattern\", \"otiluke's resilient sphere\", \"stoneskin\", \"hold monster\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Emissary of Peace\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, I gain +5 to my next Charisma (Persuasion) check in the next min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Channel Divinity: Rebuke the Violent\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a hostile within 10 ft damages another in melee, I can rebuke it\",\r\n\t\t\t\t\"It takes the same damage as it dealt but as radiant damage, with a Wis save to halve it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.3\" : {\r\n\t\t\tname : \"Warrior of Reconciliation\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can charm a creature when I reduce it to 0 HP with a simple, bludgeoning weapon\",\r\n\t\t\t\t\"It is peaceful, docile and only does what I command it to, but it can't cause harm\",\r\n\t\t\t\t\"For 1 min, until I'm incap., or I or allies attack it or have it save; after it is unconscious\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Guardian\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when an ally within 10 ft takes damage, I instead take the damage\",\r\n\t\t\t\t\"This damage can't be reduced in any way; Other effects might still apply to my ally\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Protective Spirit\",\r\n\t\t\tsource : [[\"UA:AToS\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"At the end of my turn when I'm below half HP and not incapacitated, I regain HP\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"1d6+\" + Math.floor(n/2) + \" HP\"; })\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Emissary of Redemption\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When taking damage from a creature, I take only half and it takes the other half\",\r\n\t\t\t\t\"This stops working on any that I attack or force to make a save, until I have a long rest\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"All from creatures\"]\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Monster Slayer subclass to both the normal and Revised Ranger (if it is defined)\r\nvar UAAToS_rangerSubclassMonsterSlayerUA = AddSubClass(\"ranger\", \"monster slayer-ua\", {\r\n\tregExpSearch : /^(?=.*monster)(?=.*slayer).*$/i,\r\n\tsubname : \"Monster Slayer\",\r\n\tsource : [[\"UA:AToS\", 3]],\r\n\tfullname : \"Monster Slayer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Slayer's Mysticism\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"protection from evil and good\", \"zone of truth\", \"magic circle\", \"banishment\", \"planar binding\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Slayer's Eye\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can study a creature within 120 ft that I can see\",\r\n\t\t\t\t\"I learn its vulnerabilities, immunities, resistances, and the effects damaging it can have\",\r\n\t\t\t\t\"My first weapon hit on it each turn does +1d6 damage, until I study another or rest\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Supernatural Defense\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add 1d6 to saves I make against abilities of the current target of my Slayer's Eye\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Relentless Slayer\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction, I can stop the target of my Slayer's Eye from escaping, if within 30 ft\",\r\n\t\t\t\t\"If I win a contested Wis check, it wastes it action to teleport/transform/plane shift\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Slayer's Counter\",\r\n\t\t\tsource : [[\"UA:AToS\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when the target of my Slayer's Eye has me make a save, I can attack it\",\r\n\t\t\t\t\"I can make one weapon attack; If this hits, I automatically succeed on the saving throw\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UAAToS_rangerSubclassMonsterSlayerUA); };\r\n"
  },
  {
    "path": "WotC material/ua_20170403_Starter-Spells.js",
    "content": "var iFileName = \"ua_20170403_Starter-Spells.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Starter Spells article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SS\"] = {\r\n\tname : \"Unearthed Arcana: Starter Spells\",\r\n\tabbreviation : \"UA:SS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-Starter-Spells.pdf\",\r\n\tdate : \"2017/04/03\"\r\n};\r\n\r\n/*\tAdds 17 spells of lower levels to all class' spell lists\r\n\t\r\n\tThis code was contributed by SoilentBrad\r\n*/\r\nSpellsList[\"cause fear-uass\"] = {\r\n\tname : \"Cause Fear\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tlevel : 1,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or frightened; crea disadvantage on save if 25 HP or less; no effect on undead/constructs\",\r\n\tdescriptionFull : \"You awaken the sense of mortality in one creature you can see within range. The target must succeed on a Wisdom saving throw or become frightened for the duration. A target with 25 hit points or fewer makes the saving throw with disadvantage. The spell has no effect on constructs or undead.\"\r\n};\r\nSpellsList[\"ceremony-uass\"] = {\r\n\tname : \"Ceremony\",\r\n\tclasses : [\"cleric\", \"paladin\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 h\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"25 gp worth of powdered silver\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Perform religious ceremony on target(s) that are within 10 ft throughout the casting; see book (25gp)\",\r\n\tdescriptionFull : \"You perform one of several religious ceremonies. When you cast the spell, choose one of the following ceremonies, the target of which must be within 10 feet of you throughout the casting.\" + \"\\n   \" + toUni(\"Atonement\") + \": You touch one willing creature whose alignment has changed, and you make a DC 20 Wisdom (Insight) check. On a success, you restore the target to its original alignment.\" + \"\\n   \" + toUni(\"Bless Water\") + \": You touch one vial of water and cause it to become holy water.\" + \"\\n   \" + toUni(\"Coming of Age\") + \": You touch one humanoid old enough to be a young adult. For the next 24 hours, whenever the target makes an ability check, it can roll a d4 and add the number rolled to the ability check. A creature can benefit from this ceremony just once.\" + \"\\n   \" + toUni(\"Dedication\") + \": You touch one humanoid who would willingly convert to your religion or who wishes to be dedicated to your god's service. For the next 24 hours, whenever the target makes a saving throw, it can roll a d4 and add the number rolled to the save. A creature can benefit from this ceremony just once.\" + \"\\n   \" + toUni(\"Funeral Rite\") + \": You bless one corpse within 5 feet of you. For the next 24 hours, the target can't become undead by any means short of a wish spell.\" + \"\\n   \" + toUni(\"Investiture\") + \": You touch one willing humanoid. Choose one 1st-level spell you have prepared and expend a spell slot and any material components as if you were casting that spell. The spell has no effect. Instead, the target can cast this spell once without having to expend a spell slot or use material components. If the target doesn't cast the spell within 1 hour, the invested spell is lost.\" + \"\\n   \" + toUni(\"Marriage\") + \": You touch adult humanoids willing to be bonded together in marriage. For the next 24 hours, each target gains a +2 bonus to AC and saving throws while they are within 30 feet of each other. A creature can benefit from this ceremony just once.\"\r\n};\r\nSpellsList[\"chaos bolt-uass\"] = {\r\n\tname : \"Chaos Bolt\",\r\n\tclasses : [\"sorcerer\"],\r\n\tsource : [[\"UA:SS\", 2]],\r\n\tlevel : 1,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Spell atk 2d8+1d6/SL dmg, d8s set dmg type, see B; double on d8s: new atk vs. crea in 30 ft of target\",\r\n\tdescriptionFull : \"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 damage. Choose one of the d8s. The number it rolled determines the type of damage, as shown below.\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Damage Type\") + \"\\n  1\\tAcid\" + \"\\n  2\\tCold\" + \"\\n  3\\tFire\" + \"\\n  4\\tForce\" + \"\\n  5\\tLightning\" + \"\\n  6\\tPoison\" + \"\\n  7\\tPsychic\" + \"\\n  8\\tThunder\" + \"\\n\\n   \" + \"If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\" + \"\\n   \" + \"A creature can be targeted only once by this mass of chaotic energy.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 2nd level or higher, each target takes extra damage of the type rolled. The extra damage equals 1d6 for each slot level above 1st.\"\r\n};\r\nSpellsList[\"guiding hand-uass\"] = {\r\n\tname : \"Guiding Hand\",\r\n\tclasses : [\"bard\", \"cleric\", \"druid\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 min\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 8 h\",\r\n\tdescription : \"Tiny incorporeal hand directs me to one major landmark I name that is on the same plane\",\r\n\tdescriptionFull : \"You create a Tiny incorporeal hand of shimmering light in an unoccupied space you can see within range. The hand exists for the duration, but it disappears if you teleport or you travel to a different plane of existence.\" + \"\\n   \" + \"When the hand appears, you name one major landmark, such as a city, mountain, castle, or battlefield on the same plane of existence as you. Someone in history must have visited the site and mapped it. If the landmark appears on no map in existence, the spell fails. Otherwise, whenever you move toward the hand, it moves away from you at the same speed you moved, and it moves in the direction of the landmark, always remaining 5 feet away from you.\" + \"\\n   \" + \"If you don't move toward the hand, it remains in place until you do and beckons for you to follow once every 1d4 minutes.\"\r\n};\r\nSpellsList[\"hand of radiance-uass\"] = {\r\n\tname : \"Hand of Radiance\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"5-ft rad\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"Any creatures I can see in 5-ft radius save or 1d6 Radiant damage; +1d6 damage at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"Any creatures I can see in 5-ft radius save or `CD`d6 Radiant damage\",\r\n\tdescriptionFull : \"You raise your hand, and burning radiance erupts from it. Each creature of your choice that you can see within 5 feet of you must succeed on a Constitution saving throw or take 1d6 radiant damage.\" + \"\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"healing elixir-uass\"] = {\r\n\tname : \"Healing Elixir\",\r\n\tclasses : [\"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 1,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"Alchemist's supplies\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"Make vial with alchemist's supplies; heals 2d4+2 HP as an action; if not used, disappears after 24 h\",\r\n\tdescriptionShorter : \"Make vial with alchemist's supplies; 1 a to heal 2d4+2 HP; if not used, disappears after 24 h\",\r\n\tdescriptionFull : \"You create a healing elixir in a simple vial that appears in your hand. The elixir retains its potency for the duration or until it's consumed, at which point the vial vanishes.\" + \"\\n   \" + \"As an action, a creature can drink the elixir or administer it to another creature. The drinker regains 2d4 + 2 hit points.\"\r\n};\r\nSpellsList[\"infestation-uass\"] = {\r\n\tname : \"Infestation\",\r\n\tclasses : [\"druid\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A living flea\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 crea save or 1d6 Piercing damage and moved 5 ft in random direction; +1d6 at CL 5, 11, and 17\",\r\n\tdescriptionCantripDie : \"1 crea save or `CD`d6 Piercing damage and moved 5 ft in random direction\",\r\n\tdescriptionFull : \"You cause mites, fleas, and other parasites to appear momentarily on one creature you can see within range. The target must succeed on a Constitution saving throw or take 1d6 piercing damage. If the target takes any of that damage, the target moves 5 feet in a random direction. Roll a d8 for the direction:\" + \"\\n\\n\" + toUni(\"d8\") + \"\\t\" + toUni(\"Direction\") + \"\\n  1\\tNorth\" + \"\\n  2\\tNortheast\" + \"\\n  3\\tEast\" + \"\\n  4\\tSoutheast\" + \"\\n  5\\tSouth\" + \"\\n  6\\tSouthwest\" + \"\\n  7\\tWest\" + \"\\n  8\\tNorthwest\" + \"\\n\\n   \" + \"The spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n};\r\nSpellsList[\"primal savagery-uass\"] = {\r\n\tname : \"Primal Savagery\",\r\n\tclasses : [\"druid\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 0,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"5 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Melee spell attack deals 1d10 Piercing or Slashing dmg (my choice); +1d10 at CL 5, 11, and 17\",\r\n\tdescription : \"Melee spell attack deals `CD`d10 Piercing or Slashing dmg (my choice)\",\r\n\tdescriptionFull : \"Your teeth or fingernails lengthen and sharpen. You choose which. Make a melee spell attack against one creature within 5 feet of you. On a hit, the target takes 1d10 piercing or slashing damage (your choice). After you make the attack, your teeth or fingernails return to normal.\" + \"\\n   \" + \"The spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).\"\r\n};\r\nSpellsList[\"puppet-uass\"] = {\r\n\tname : \"Puppet\",\r\n\tclasses : [\"bard\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"S\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Con\",\r\n\tdescription : \"1 humanoid save or move its speed to where I choose and drop held items, if chosen (charm effect)\",\r\n\tdescriptionFull : \"Your gesture forces one humanoid you can see within range to make a Constitution saving throw. On a failed save, the target must move up to its speed in a direction you choose. In addition, you can cause the target to drop whatever it is holding. This spell has no effect on a humanoid that is immune to being charmed.\"\r\n};\r\nSpellsList[\"sense emotion-uass\"] = {\r\n\tname : \"Sense Emotion\",\r\n\tclasses : [\"bard\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Div\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"Now and as 1 a for duration, sense emotion of humanoid in range; sense calm if not humanoid/charm\",\r\n\tdescriptionFull : \"You attune your senses to pick up the emotions of others for the duration. When you cast the spell, and as your action on each turn until the spell ends, you can focus your senses on one humanoid you can see within 30 feet of you. You instantly learn the target's prevailing emotion, whether it's love, anger, pain, fear, calm, or something else. If the target isn't actually humanoid or it is immune to being charmed, you sense that it is calm.\"\r\n};\r\nSpellsList[\"snare-uass\"] = {\r\n\tname : \"Snare\",\r\n\tclasses : [\"druid\", \"ranger\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u2020\",\r\n\tcompMaterial : \"30 feet of cord or rope, which is consumed by the spell\",\r\n\tduration : \"Dispel/trigger\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"5-ft rad magical trap; Int (Inv) to see; save or restrained upside down 3 ft in the air; save/rnd at dis\",\r\n\tdescriptionFull : \"While you cast this spell, you use the cord or rope to create a circle with a 5-foot radius on a flat surface within your reach. When you finish casting, the cord or rope disappears to become a magical trap.\" + \"\\n   \" + \"The trap is nearly invisible and requires a successful Intelligence (Investigation) check against your spell save DC to be found.\" + \"\\n   \" + \"The trap triggers when a Small creature or larger moves into the area protected by the spell. The triggering creature must succeed on a Dexterity saving throw or fall prone and be hoisted into the air until it hangs upside down 3 feet above the protected surface, where it is restrained.\" + \"\\n   \" + \"The restrained creature can make a Dexterity saving throw with disadvantage at the end of each of its turns and ends the restrained effect on a success. Alternatively, another creature that can reach the restrained creature can use an action to make an Intelligence (Arcana) check against your spell save DC. On a success, the restrained effect also ends.\"\r\n};\r\nSpellsList[\"sudden awakening-uass\"] = {\r\n\tname : \"Sudden Awakening\",\r\n\tclasses : [\"bard\", \"ranger\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"10 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Any creatures within range awaken and can then stand up from prone without expending movement\",\r\n\tdescriptionFull : \"Each sleeping creature you choose within range awakens, and then each prone creature within range can stand up without expending any movement.\"\r\n};\r\nSpellsList[\"unearthly chorus-uass\"] = {\r\n\tname : \"Unearthly Chorus\",\r\n\tclasses : [\"bard\"],\r\n\tsource : [[\"UA:SS\", 4]],\r\n\tlevel : 1,\r\n\tschool : \"Illus\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft rad\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 10 min\",\r\n\tsave : \"Cha\",\r\n\tdescription : \"Use bns a to make 1 crea in range save or be friendly for 1 h; I adv on Cha (Performance) checks\",\r\n\tdescriptionFull : \"Music of a style you choose fills the air around you in a 30-foot radius. The music spreads around corners and can be heard from up to 100 feet away. The music moves with you, centered on you for the duration.\" + \"\\n   \" + \"Until the spell ends, you make Charisma (Performance) checks with advantage. In addition, you can use a bonus action on each of your turns to beguile one creature you choose within 30 feet of you that can see you and hear the music. The creature must make a Charisma saving throw. If you or your companions are attacking it, the creature automatically succeeds on the saving throw. On a failure, the creature becomes friendly to you for as long as it can hear the music and for 1 hour thereafter. You make Charisma (Deception) checks and Charisma (Persuasion) checks against creatures made friendly by this spell with advantage.\"\r\n};\r\nSpellsList[\"virtue-uass\"] = {\r\n\tname : \"Virtue\",\r\n\tclasses : [\"cleric\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tlevel : 0,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"1 creature that has at least 1 HP gets 1d4 + spellcasting ability modifier in temporary hit points\",\r\n\tdescriptionFull : \"You touch one creature, imbuing it with vitality. If the target has at least 1 hit point, it gains a number of temporary hit points equal to 1d4 + your spellcasting ability modifier. The temporary hit points are lost when the spell ends.\"\r\n};\r\nSpellsList[\"wild cunning-uass\"] = {\r\n\tname : \"Wild Cunning\",\r\n\tclasses : [\"druid\", \"ranger\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tritual : true,\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 a\",\r\n\trange : \"120 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Instantaneous\",\r\n\tdescription : \"Call spirits of nature to aid me with finding food, drink, tracks, shelter, or camping; see book\",\r\n\tdescriptionFull : \"You call out to the spirits of nature to aid you. When you cast this spell, choose one of the following effects:\" + \"\\n  \\u2022 \" + \"If there are any tracks on the ground within range, you know where they are, and you make Wisdom (Survival) checks to follow these tracks with advantage for 1 hour or until you cast this spell again.\" + \"\\n  \\u2022 \" + \"If there is edible forage within range, you know it and where to find it.\" + \"\\n  \\u2022 \" + \"If there is clean drinking water within range, you know it and where to find it.\" + \"\\n  \\u2022 \" + \"If there is suitable shelter for you and your companions with range, you know it and where to find.\" + \"\\n  \\u2022 \" + \"Send the spirits to bring back wood for a fire and to set up a campsite in the area using your supplies. The spirits build the fire in a circle of stones, put up tents, unroll bedrolls, and put out any rations and water for consumption.\" + \"\\n  \\u2022 \" + \"Have the spirits instantly break down a campsite, which includes putting out a fire, taking down tents, packing up bags, and burying any rubbish.\"\r\n};\r\nSpellsList[\"zephyr strike-uass\"] = { // clarification: https://twitter.com/JeremyECrawford/status/849302527069884416\r\n\tname : \"Zephyr Strike\",\r\n\tclasses : [\"ranger\"],\r\n\tsource : [[\"UA:SS\", 5]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Moving doesn't provoke opportunity atks; next wea atk has adv and gives +30 ft speed for that turn\",\r\n\tdescriptionFull : \"You move like the wind. For the duration, your movement doesn't provoke opportunity attacks.\" + \"\\n   \" + \"In addition, the first time you make a weapon attack on your turn before the spell ends, you make the attack roll with advantage, and your speed increases by 30 feet until the end of that turn.\"\r\n};\r\n\r\n// Weapons (attack cantrips)\r\nWeaponsList[\"hand of radiance-uass\"] = {\r\n\tregExpSearch : /^(?=.*hand)(?=.*radiance).*$/i,\r\n\tname : \"Hand of Radiance\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"radiant\"],\r\n\trange : \"5-ft radius\",\r\n\tdescription : \"Con save, success - no damage; Only chosen creatures I can see are affected\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"infestation-uass\"] = {\r\n\tregExpSearch : /infestation/i,\r\n\tname : \"Infestation\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 6,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 6, \"piercing\"],\r\n\trange : \"30 ft\",\r\n\tdescription : \"Con save, success - no damage, fail - target also moved 5 ft in random direction\",\r\n\tabilitytodamage : false,\r\n\tdc : true\r\n};\r\nWeaponsList[\"primal savagery-uass\"] = {\r\n\tregExpSearch : /^(?=.*primal)(?=.*savagery).*$/i,\r\n\tname : \"Primal Savagery\",\r\n\tsource : [[\"UA:SS\", 3]],\r\n\tlist : \"spell\",\r\n\tability : 5,\r\n\ttype : \"Cantrip\",\r\n\tdamage : [\"C\", 10, \"piercing\"],\r\n\trange : \"Melee (5 ft)\",\r\n\tdescription : \"Does either Piercing or Slashing damage (my choice)\",\r\n\tabilitytodamage : false\r\n};\r\n// dupl_start\r\nif (!SourceList.X) {\r\n\tSpellsList[\"toll the dead\"] = {\r\n\t\tname : \"Toll the Dead\",\r\n\t\tclasses : [\"cleric\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Necro\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Wis\",\r\n\t\tdescription : \"1 crea save or 1d12 Necrotic damage (only 1d8 if at full HP); +1d12/1d8 at CL 5, 11, and 17\",\r\n\t\tdescriptionCantripDie : \"1 crea save or `CD`d12 Necrotic damage (only `CD`d8 if at full hp)\",\r\n\t\tdescriptionFull : \"You point at one creature you can see within range, and the sound of a dolorous bell fills the air around it for a moment. The target must succeed on a Wisdom saving throw or take 1d8 necrotic damage. If the target is missing any of its hit points, it instead takes 1d12 necrotic damage.\" + \"\\n   \" + \"The spell's damage increases by one die when you reach 5th level (2d8 or 2d12), 11th level (3d8 or 3d12), and 17th level (4d8 or 4d12).\"\r\n\t};\r\n\tWeaponsList[\"toll the dead\"] = {\r\n\t\tregExpSearch : /^(?=.*toll)(?=.*the)(?=.*dead).*$/i,\r\n\t\tname : \"Toll the Dead\",\r\n\t\tsource : [[\"X\", 169], [\"UA:SS\", 4]],\r\n\t\tlist : \"spell\",\r\n\t\tability : 5,\r\n\t\ttype : \"Cantrip\",\r\n\t\tdamage : [\"C\", 12, \"necrotic\"],\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"Wis save, success - no damage; If target is at full HP, d8 instead of d12 damage\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true\r\n\t};\r\n} // dupl_end\r\n"
  },
  {
    "path": "WotC material/ua_20170417_Feats-for-Skills.js",
    "content": "var iFileName = \"ua_20170417_Feats-for-Skills.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the content from the Unearthed Arcana: Feats for Skills article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FS\"] = {\r\n\tname : \"Unearthed Arcana: Feats for Skills\",\r\n\tabbreviation : \"UA:FS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-SkillFeats.pdf\",\r\n\tdate : \"2017/04/17\"\r\n};\r\n\r\n// Add 18 feats, corresponding with the 18 skills\r\nFeatsList[\"acrobat-ua\"] = {\r\n\tname : \"Acrobat\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You become more nimble, gaining the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Acrobatics skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 As a bonus action, you can make a DC 15 Dexterity (Acrobatics) check. If you succeed, difficult terrain doesn't cost you extra movement until the end of the current turn.\",\r\n\tdescription : \"I gain expertise with Acrobatics, or proficiency if not so already. As a bonus action, I can make a DC 15 Dexterity (Acrobatics) check to have difficult terrain not cost me extra movement for this turn. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Acrobatics\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"animal handler-ua\"] = {\r\n\tname : \"Animal Handler\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You master the techniques needed to train and handle animals. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Animal Handling skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can use a bonus action on your turn to command one friendly beast within 60 feet of you that can hear you and that isn't currently following the command of someone else. You decide now what action the beast will take and where it will move during its next turn, or you issue a general command that lasts for 1 minute, such as to guard a particular area.\",\r\n\tdescription : \"I gain expertise with Animal Handling, or proficiency if not so already. As a bonus action, I can command a friendly beast not under another's command within 60 ft. If it hears me, I decide its next turn or give a general command lasting for 1 minute. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Animal Handling\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"arcanist-ua\"] = {\r\n\tname : \"Arcanist\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You study the arcane arts, gaining the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Arcana skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Prestidigitation and Detect Magic spells. You can cast detect magic once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Arcana, or proficiency if not so already. I learn the Prestidigitation cantrip. I can cast Detect Magic without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Arcana\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Arcanist\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"prestidigitation\"],\r\n\t\tselection : [\"prestidigitation\"],\r\n\t}, {\r\n\t\tname : \"Arcanist (1x long rest)\",\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"brawny-ua\"] = {\r\n\tname : \"Brawny\",\r\n\tsource : [[\"UA:FS\", 1]],\r\n\tdescriptionFull : \"You become stronger, gaining the following benefits:\\n \\u2022 Increase your Strength score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Athletics skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You count as if you were one size larger for the purpose of determining your carrying capacity.\",\r\n\tdescription : \"I gain expertise with Athletics, or proficiency if not so already. I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift. [+1 Strength]\",\r\n\tscores : [1, 0, 0, 0, 0, 0],\r\n\tskills : [[\"Athletics\", \"increment\"]],\r\n\tcarryingCapacity : 2\r\n};\r\nFeatsList[\"diplomat-ua\"] = {\r\n\tname : \"Diplomat\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You master the arts of diplomacy, gaining the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Persuasion skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you spend 1 minute talking to someone who can understand what you say, you can make a Charisma (Persuasion) check contested by the creature's Wisdom (Insight) check. If you or your companions are fighting the creature, your check automatically fails. If your check succeeds, the target is charmed by you as long as it remains within 60 feet of you and for 1 minute thereafter.\",\r\n\tdescription : \"I gain expertise with Persuasion, or proficiency if not so already. With a one minute long conversation outside of combat, I can make a Persuasion vs. its Insight. If successful, it is charmed by me as long as it remains within 60 ft and 1 minute after that [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Persuasion\", \"increment\"]]\r\n};\r\nFeatsList[\"empathic-ua\"] = {\r\n\tname : \"Empathic\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You possess keen insight into how other people think and feel. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Insight skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can use your action to try to get uncanny insight about one humanoid you can see within 30 feet of you. Make a Wisdom (Insight) check contested by the target's Charisma (Deception) check. If your check succeeds, you have advantage on attack rolls and ability checks against the target until the end of your next turn.\",\r\n\tdescription : \"I gain expertise with Insight, or proficiency if not so already. As an action, a humanoid within 30 ft I can see must make its Deception vs. my Insight or I gain advantage on attacks and ability checks against it until the end of my next turn. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Insight\", \"increment\"]]\r\n};\r\nFeatsList[\"historian-ua\"] = {\r\n\tname : \"Historian\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"Your study of history rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the History skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Help action to aid another creature's ability check, you can make a DC 15 Intelligence (History) check. On a success, that creature's check gains a bonus equal to your proficiency bonus, as you share pertinent advice and historical examples. To receive this bonus, the creature must be able to understand what you're saying.\",\r\n\tdescription : \"I gain expertise with History, or proficiency if not so already. When I use the Help action to help a creature that can understand me with an ability check, I can make a DC 15 Int (History) check to give a bonus equal to my proficiency bonus. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"History\", \"increment\"]],\r\n\taction : [[\"action\", \"\"]]\r\n};\r\nFeatsList[\"investigator-ua\"] = {\r\n\tname : \"Investigator\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You have an eye for detail and can pick out the smallest clues. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Investigation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You can take the Search action as a bonus action.\",\r\n\tdescription : \"I gain expertise with Investigation, or proficiency if not so already. As a bonus action, I can take the Search action. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Investigation\", \"increment\"]],\r\n\taction : [[\"bonus action\", \" (Search)\"]]\r\n};\r\nFeatsList[\"medic-ua\"] = {\r\n\tname : \"Medic\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You master the physician's arts, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Medicine skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 During a short rest, you can clean and bind the wounds of up to six willing beasts and humanoids. Make a DC 15 Wisdom (Medicine) check for each creature. On a success, if a creature spends a Hit Die during this rest, that creature can forgo the roll and instead regain the maximum number of hit points the die can restore. A creature can do so only once per rest, regardless of how many Hit Dice it spends.\",\r\n\tdescription : \"I gain expertise with Medicine, or proficiency if not so already. During a short rest, I can attend to the wounds of up to 6 creatures. With a DC 15 Wis (Medicine) check for each creature, that target gets the maximum result on one of its HD that it uses. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Medicine\", \"increment\"]]\r\n};\r\nFeatsList[\"menacing-ua\"] = {\r\n\tname : \"Menacing\",\r\n\tsource : [[\"UA:FS\", 2]],\r\n\tdescriptionFull : \"You become fearsome to others, gaining the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Intimidation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Attack action on your turn, you can replace one attack with an attempt to demoralize one humanoid you can see within 30 feet of you that can see and hear you. Make a Charisma (Intimidation) check contested by the target's Wisdom (Insight) check. If your check succeeds, the target is frightened until the end of your next turn. If your check fails, the target can't be frightened by you in this way for 1 hour.\",\r\n\tdescription : \"I gain expertise with Intimidation, or proficiency if not so already. Instead of 1 attack in my Attack action, a humanoid within 30 ft I can see and that can see and hear me must make its Insight vs. my Intimidation or be frightened until end of my next turn. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Intimidation\", \"increment\"]]\r\n};\r\nFeatsList[\"naturalist-ua\"] = {\r\n\tname : \"Naturalist\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"Your extensive study of nature rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Nature skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Druidcraft and Detect Poison and Disease spells. You can cast Detect Poison and Disease once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Nature, or proficiency if not so already. I learn the Druidcraft cantrip. I can cast Detect Poison and Disease without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Nature\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Naturalist\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t}, {\r\n\t\tname : \"Naturalist (1x long rest)\",\r\n\t\tspells : [\"detect poison and disease\"],\r\n\t\tselection : [\"detect poison and disease\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"perceptive-ua\"] = {\r\n\tname : \"Perceptive\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You hone your senses until they become razor sharp. You gain the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Perception skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 Being in a lightly obscured area doesn't impose disadvantage on your Wisdom (Perception) checks if you can both see and hear.\",\r\n\tdescription : \"I gain expertise with Perception, or proficiency if not so already. I don't have disadvantage on my Perception checks from being in a lightly obscured area (dim light), provided that I can still both see and hear. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Perception\", \"increment\"]],\r\n\tvision : [[\"No disadv. on Perception in lightly obscured or dim light\", 0]]\r\n};\r\nFeatsList[\"performer-ua\"] = {\r\n\tname : \"Performer\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You master performance so that you can command any stage. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Performance skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 While performing, you can try to distract one humanoid you can see who can see and hear you. Make a Charisma (Performance) check contested by the humanoid's Wisdom (Insight) check. If your check succeeds, you grab the humanoid's attention enough that it makes Wisdom (Perception) and Intelligence (Investigation) checks with disadvantage until you stop performing.\",\r\n\tdescription : \"I gain expertise with Performance, or proficiency if not so already. While performing, I can distract one humanoid. It must make its Insight vs. my Performance or have disadv. on its Perception and Investigation checks until I stop performing. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Performance\", \"increment\"]]\r\n};\r\nFeatsList[\"quick-fingered-ua\"] = {\r\n\tname : \"Quick-Fingered\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"Your nimble fingers and agility let you perform sleight of hand. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Sleight of Hand skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 As a bonus action, you can make a Dexterity (Sleight of Hand) check to plant something on someone else, conceal an object on a creature, lift a purse, or take something from a pocket.\",\r\n\tdescription : \"I gain expertise with Sleight of Hand, or proficiency if not so already. As a bonus action, I can make a Dexterity (Sleight of Hand) check to plant something on someone else, conceal an object on a creature, lift a purse, or take something from a pocket. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Sleight of Hand\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"silver-tongued-ua\"] = {\r\n\tname : \"Silver-Tongued\",\r\n\tsource : [[\"UA:FS\", 3]],\r\n\tdescriptionFull : \"You develop your conversational skill to better deceive others. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Deception skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 When you take the Attack action on your turn, you can replace one attack with an attempt to deceive one humanoid you can see within 30 feet of you that can see and hear you. Make a Charisma (Deception) check contested by the target's Wisdom (Insight) check. If your check succeeds, your movement doesn't provoke opportunity attacks from the target and your attack rolls against it have advantage; both benefits last until the end of your next turn or until you use this ability on a different target. If your check fails, the target can't be deceived by you in this way for 1 hour.\",\r\n\tdescription : \"I gain expertise with Deception, or proficiency if not so already. Instead of 1 attack in my Attack action, a humanoid within 30 ft makes its Insight vs. my Deception or until end of my next turn, I gain adv. on attacks and don't provoke its opportunity attacks. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Deception\", \"increment\"]]\r\n};\r\nFeatsList[\"stealthy-ua\"] = {\r\n\tname : \"Stealthy\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"You know how best to hide. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Stealth skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 If you are hidden, you can move up to 10 feet in the open without revealing yourself if you end the move in a position where you're not clearly visible.\",\r\n\tdescription : \"I gain expertise with Stealth, or proficiency if not so already. When I'm hidden, I can move 10 ft to another position without revealing myself, provided that I won't be clearly visible in this new position either. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0],\r\n\tskills : [[\"Stealth\", \"increment\"]]\r\n};\r\nFeatsList[\"survivalist-ua\"] = {\r\n\tname : \"Survivalist\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"You master wilderness lore, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Survival skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Alarm spell. You can cast it once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Survival, or proficiency if not so already. I can cast Alarm without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Wisdom]\",\r\n\tscores : [0, 0, 0, 0, 1, 0],\r\n\tskills : [[\"Survival\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"1x long rest\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tspells : [\"alarm\"],\r\n\t\tselection : [\"alarm\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\nFeatsList[\"theologian-ua\"] = {\r\n\tname : \"Theologian\",\r\n\tsource : [[\"UA:FS\", 4]],\r\n\tdescriptionFull : \"Your extensive study of religion rewards you with the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in the Religion skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Thaumaturgy and Detect Evil and Good spells. You can cast Detect Evil and Good once without expending a spell slot, and you regain the ability to do so when you finish a long rest.\",\r\n\tdescription : \"I gain expertise with Religion, or proficiency if not so already. I learn the Thaumaturgy cantrip. I can cast Detect Evil and Good without using a spell slot. Once I do so, I can't do it again until I finish a long rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tskills : [[\"Religion\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Theologian\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t}, {\r\n\t\tname : \"Theologian (1x long rest)\",\r\n\t\tspells : [\"detect evil and good\"],\r\n\t\tselection : [\"detect evil and good\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20170424_Feats-for-Races.js",
    "content": "var iFileName = \"ua_20170424_Feats-for-Races.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Feats for Races article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FR\"] = {\r\n\tname : \"Unearthed Arcana: Feats for Races\",\r\n\tabbreviation : \"UA:FR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/RJSJC2017_04UASkillFeats_24v10.pdf\",\r\n\tdate : \"2017/04/24\"\r\n};\r\n\r\n// Adds 46 feats (23 + 13 variants of Grudge-Bearer), all of which have a racial prerequisite\r\nFeatsList[\"barbed hide-ua\"] = {\r\n\tname : \"Barbed Hide\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"One of your ancestors was a barbed devil or other spiky fiend. Barbs protrude from your head. You gain the following benefits:\\n \\u2022 Increase your Charisma score by 1, to a maximum of 20.\\n \\u2022 As a bonus action, you can cause small barbs to protrude all over your body or cause them to retract. At the start of each of your turns while the barbs are out, you deal 1d6 piercing damage to any creature grappling you or any creature grappled by you.\\n \\u2022 You gain proficiency in the Intimidation skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\",\r\n\tdescription : \"I gain expertise with Intimidation, or proficiency if not so already. As a bonus action, I can protrude/retract small barbs from my skin. With them out, at the start of each of my turns I deal 1d6 piercing damage to any I'm grappling or are grappling me. [+1 Cha]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Intimidation\", \"increment\"]],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"bountiful luck-ua\"] = {\r\n\tname : \"Bountiful Luck\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"Whenever an ally you can see within 30 feet of you rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, you can use your reaction to let the ally reroll the die. The ally must use the new roll.\",\r\n\tdescription : \"Whenever an ally I can see within 30 feet of me rolls a 1 on the d20 for an attack roll, an ability check, or a saving throw, I can use my reaction to let the ally reroll the die. The ally must use the new roll.\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"critter friend-ua\"] = {\r\n\tname : \"Critter Friend\",\r\n\tsource : [[\"UA:FR\", 1]],\r\n\tprerequisite : \"Being a Forest Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('forest gnome') !== -1; },\r\n\tdescriptionFull : \"Your friendship with animals mystically deepens. You gain the following benefits:\\n \\u2022 You gain proficiency in the Animal Handling skill. If you are already proficient in the skill, you add double your proficiency bonus to checks you make with it.\\n \\u2022 You learn the Speak with Animals spell and can cast it at will, without expending a spell slot. You also learn the Animal Friendship spell, and you can cast it once with this feat, without expending a spell slot. You regain the ability to cast it in this way when you finish a long rest. Intelligence is your spellcasting ability for these spells.\",\r\n\tdescription : \"I gain expertise with Animal Handling, or proficiency if I didn't have that already. I can cast Speak With Animals and Animal Friendship without using a spell slot. I can cast each of these spells like this once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\tskills : [[\"Animal Handling\", \"increment\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per long rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"speak with animals\"],\r\n\t\tselection : [\"speak with animals\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"animal friendship\"],\r\n\t\tselection : [\"animal friendship\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dragon fear-ua\"] = {\r\n\tname : \"Dragon Fear\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"When angered, you radiate menace. You gain the following benefits:\\n \\u2022 Increase your Strength or Charisma score by 1, to a maximum of 20.\\n \\u2022 Instead of exhaling destructive energy, you can roar and expend a use of your breath weapon to force each creature of your choice within 30 feet of you to make a Wisdom saving throw (DC 8 + your proficiency bonus + your Charisma modifier). A target automatically succeeds if it can't hear or see you. On a failed save, a target becomes frightened for 1 minute. If the frightened target takes any damage, it can repeat the saving throw, ending the effect on itself on a success.\",\r\n\tcalculate : \"event.value = 'I can expend a Breath Weapon use to roar instead. Each creature of my choice within 30 ft that can see and hear me must make a DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' Wis save (8 + Prof Bonus + Cha mod) or be frightened for 1 min. It can repeat the save whenever it takes damage. [+1 Str or Cha]';\",\r\n\tscorestxt : \"+1 Strength or Charisma\",\r\n\taction : [['action', 'Breath Weapon or Dragon Fear', 'Breath Weapon']]\r\n};\r\nFeatsList[\"dragon hide-ua\"] = {\r\n\tname : \"Dragon Hide\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You inherited the might and majesty of your dragon ancestors. You gain the following benefits:\\n \\u2022 Increase your Strength or Charisma score by 1, to a maximum of 20.\\n \\u2022 You grow retractable claws from the tips of your fingers. Extending or retracting the claws requires no action. The claws are natural weapons, which you can use to make unarmed strikes. If you hit with them, you deal slashing damage equal to 1d4 + your Strength modifier, instead of the bludgeoning damage normal for an unarmed strike.\\n \\u2022 Your scales harden; you gain a +1 bonus to AC while you aren't wearing armor.\",\r\n\tdescription : \"I gain retractable claws that I can retract or extend, requiring no action. While extended, my unarmed strikes deal 1d4 slashing damage. My scales harden, giving me a +1 bonus to AC when I'm not wearing armor. [+1 Strength or Charisma]\",\r\n\tscorestxt : \"+1 Strength or Charisma\",\r\n\tweaponOptions : [{\r\n\t\tbaseWeapon : \"unarmed strike\",\r\n\t\tregExpSearch : /^(?=.*(retractable|dragon))(?=.*claw).*$/i,\r\n\t\tname : \"Retractable Claws\",\r\n\t\tsource : [[\"UA:FR\", 2]],\r\n\t\tdamage : [1, 4, \"slashing\"],\r\n\t\tselectNow : true\r\n\t}],\r\n\textraAC : {\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing armor.\",\r\n\t\tstopeval : function (v) { return v.wearingArmor; }\r\n\t}\r\n};\r\nFeatsList[\"dragon wings-ua\"] = {\r\n\tname : \"Dragon Wings\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dragonborn\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dragonborn') !== -1; },\r\n\tdescriptionFull : \"You sprout draconic wings. With your wings, you have a flying speed of 20 feet if you aren't wearing heavy armor and aren't exceeding your carrying capacity.\",\r\n\tdescription : \"I sprout draconic wings. With my wings, I have a flying speed of 20 feet if I am not wearing heavy armor and I am not exceeding my carrying capacity or encumbered.\",\r\n\tspeed : { fly : { spd : 20, enc : 0 } }\r\n};\r\nFeatsList[\"drow high magic-ua\"] = {\r\n\tname : \"Drow High Magic\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Drow (Dark Elf)\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dark elf') !== -1; },\r\n\tdescriptionFull : \"You learn more of the spells typical for your people. You learn Detect Magic and can cast it at will, without expending a spell slot. You also learn Levitate and Dispel Magic, each of which you can cast once without expending a spell slot. You regain the ability to cast the spell in this way when you finish a long rest. Charisma is your spellcasting ability for these spells.\",\r\n\tdescription : \"I can cast Detect Magic at will, without expending a spell slot. I can also cast Levitate and Dispel Magic without expending a spell slot, but each only once per long rest. Charisma is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"At will\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspells : [\"detect magic\"],\r\n\t\tselection : [\"detect magic\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"levitate\"],\r\n\t\tselection : [\"levitate\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"dispel magic\"],\r\n\t\tselection : [\"dispel magic\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\nFeatsList[\"dwarf resilience-ua\"] = {\r\n\tname : \"Dwarf Resilience\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have the blood of dwarf heroes flowing through your veins. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 Whenever you take the Dodge action in combat, you can spend one Hit Die to heal yourself. Roll the die, add your Constitution modifier, and regain a number of hit points equal to the total (minimum of 1).\",\r\n\tdescription : \"Whenever I take the Dodge action in combat, I can spend one Hit Die to heal myself. I roll the die, add my Constitution modifier, and regain a number of hit points equal to the total (minimum of 1). [+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0]\r\n};\r\nFeatsList[\"elven accuracy-ua\"] = {\r\n\tname : \"Elven Accuracy\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being an Elf or a Half-Elf\",\r\n\tprereqeval : function(v) { return (/elf|eladrin|avariel|grugach|shadar-kai/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have uncanny aim. You gain the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 Whenever you have advantage on an attack roll, you can reroll one of the dice once.\",\r\n\tdescription : \"Whenever I have advantage on an attack roll, I can reroll one of the dice once. [+1 Dexterity]\",\r\n\tscores : [0, 1, 0, 0, 0, 0]\r\n};\r\nFeatsList[\"everybody-ua's friend\"] = {\r\n\tname : \"Everybody's Friend\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Half-Elf\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*elf).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You develop your magnetic personality to ease your way through the world. You gain the following benefits:\\n \\u2022 You gain proficiency in the Deception and Persuasion skills. If you're already proficient in either skill, your proficiency bonus is doubled for any check you make with that skill.\",\r\n\tdescription : \"I gain expertise with Deception and Persuasion, or proficiency with them if I didn't have that already. [+1 Charisma]\",\r\n\tscores : [0, 0, 0, 0, 0, 1],\r\n\tskills : [[\"Deception\", \"increment\"], [\"Persuasion\", \"increment\"]]\r\n};\r\nFeatsList[\"fade away-ua\"] = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"UA:FR\", 2]],\r\n\tprerequisite : \"Being a Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('gnome') !== -1; },\r\n\tdescriptionFull : \"You can draw on your magical heritage to escape danger. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 When you take damage, you can use a reaction to magically become invisible until the end of your next turn or until you attack, deal damage, or force someone to make a saving throw. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"As a reaction when I take damage, I can magically become invisible until the end of my next turn or until I attack, deal damage, or force someone to make a saving throw. Once I do this, I can't do so again until I finish a short rest. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"fey teleportation-ua\"] = {\r\n\tname : \"Fey Teleportation\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a High Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('high elf') !== -1; },\r\n\tdescriptionFull : \"Drawing on your fey ancestry, you have learned how to teleport. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn the Misty Step spell and can cast it once without expending a spell slot. You regain the ability to cast it in this way when you finish a short or long rest. Intelligence is your spellcasting ability for this spell.\",\r\n\tdescription : \"I can cast Misty Step without using a spell slot. I can do so once per short rest. Intelligence is my spellcasting ability for this spell. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per short rest\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"misty step\"],\r\n\t\tselection : [\"misty step\"],\r\n\t\tfirstCol : 'oncesr'\r\n\t}],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"flames of phlegethos-ua\"] = {\r\n\tname : \"Flames of Phlegethos\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"You learn to call on hellfire to serve your commands. You gain the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 When you roll fire damage for a spell you cast, you can reroll any roll of 1 on the fire damage dice, but you must use the new roll, even if it is another 1.\\n \\u2022 Whenever you cast a spell that deals fire damage, you can cause flames to wreathe you until the end of your next turn. The flames don't harm you or your possessions, and they shed bright light out to 30 feet and dim light for an additional 30 feet. While the flames are present, any creature within 5 feet of you that hits you with a melee attack takes 1d4 fire damage.\",\r\n\tdescription : \"When I cast a fire damage spell, I can reroll any 1 on fire damage dice. I can then sheathe myself in flame until my next turn ends. These shed bright light in 30 ft, dim light in 30 ft and cause any within 5 ft that hit me in melee take 1d4 fire damage. [+1 Int or Cha]\",\r\n\tscorestxt : \"+1 Intelligence or Charisma\"\t\r\n};\r\nFeatsList[\"grudge-bearer-ua\"] = {\r\n\tname : \"Grudge-Bearer\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Dwarf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('dwarf') !== -1; },\r\n\tdescriptionFull : \"You have a deep hatred for a particular kind of creature. Choose your foes, a type of creature to bear the burden of your wrath: aberrations, beasts, celestials, constructs, dragons, elementals, fey, fiends, giants, monstrosities, oozes, plants, or undead. Alternatively, you can choose two races of humanoid (such as gnolls and orcs). You gain the following benefits:\\n \\u2022 Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\\n \\u2022 During the first round of any combat against your chosen foes, your attack rolls against any of them have advantage.\\n \\u2022 When any of your chosen foes makes an opportunity attack against you, it makes the attack roll with disadvantage.\\n \\u2022 Whenever you make an Intelligence (Arcana, History, Nature, or Religion) check to recall information about your chosen foes, you add double your proficiency bonus to the check, even if you're not normally proficient.\",\r\n\tdescription : \"My hatred for a creature type gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\",\r\n\tscorestxt : \"+1 Strength, Constitution, or Wisdom\",\r\n\tchoices : [\"2 Humanoids\", \"Aberrations\", \"Beasts\", \"Celestials\", \"Constructs\", \"Dragons\", \"Elementals\", \"Fey\", \"Fiends\", \"Giants\", \"Monstrosities\", \"Oozes\", \"Plants\", \"Undead\"],\r\n\t\"2 humanoids\" : {\r\n\t\tdescription : \"My hatred for 2 humanoid races gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana/History/Nature/Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\taberrations : {\r\n\t\tdescription : \"My hatred for aberrations gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tbeasts : {\r\n\t\tdescription : \"My hatred for beasts gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tcelestials : {\r\n\t\tdescription : \"My hatred for celestials gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tconstructs : {\r\n\t\tdescription : \"My hatred for constructs gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tdragons : {\r\n\t\tdescription : \"My hatred for dragons gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\telementals : {\r\n\t\tdescription : \"My hatred for elementals gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tfey : {\r\n\t\tdescription : \"My hatred for fey gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tfiends : {\r\n\t\tdescription : \"My hatred for fiends gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tgiants : {\r\n\t\tdescription : \"My hatred for giants gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tmonstrosities : {\r\n\t\tdescription : \"My hatred for monstrosities gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\toozes : {\r\n\t\tdescription : \"My hatred for oozes gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tplants : {\r\n\t\tdescription : \"My hatred for plants gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t},\r\n\tundead : {\r\n\t\tdescription : \"My hatred for undead gives me these benefits against them: Adv. on attacks in the first round of combat. Their opportunity attacks have disadv. against me. I add twice my Prof Bonus on related Arcana, History, Nature, and Religion checks. [+1 Str, Con, or Wis]\"\r\n\t}\r\n};\r\nFeatsList[\"human determination-ua\"] = {\r\n\tname : \"Human Determination\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Human\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('human') !== -1; },\r\n\tdescriptionFull : \"You are filled with a determination that can draw the unreachable within your reach. You gain the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 When you make an attack roll, an ability check, or a saving throw, you can do so with advantage. Once you use this ability, you can't use it again until you finish a short or long rest.\",\r\n\tdescription : \"When I make an attack roll, an ability check, or a saving throw, I can do so with advantage. Once I use this ability, I can't do so again until I finish a short rest.\\n[+1 to one ability score]\",\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"attack/check/save\"\r\n};\r\nFeatsList[\"infernal constitution-ua\"] = {\r\n\tname : \"Infernal Constitution\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Tiefling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('tiefling') !== -1; },\r\n\tdescriptionFull : \"Fiendish blood runs strong in you. You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You have resistance to cold and poison damage.\\n \\u2022 You have advantage on saving throws against being poisoned.\",\r\n\tdescription : \"I have resistance to cold and poison damage and I have advantage on saving throws against being poisoned.\\n[+1 Constitution]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tdmgres : [\"Cold\", \"Poison\"],\r\n\tsavetxt : { adv_vs : [\"poison\"] }\r\n};\r\nFeatsList[\"orcish aggression-ua\"] = {\r\n\tname : \"Orcish Aggression\",\r\n\tsource : [[\"UA:FR\", 3]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"As a bonus action, you can move up to your speed toward an enemy of your choice that you can see or hear. You must end this move closer to the enemy than you started.\",\r\n\tdescription : \"As a bonus action, I can move up to my speed toward an enemy of my choice that I can see or hear. I must end this move closer to the enemy than I started.\",\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"orcish fury-ua\"] = {\r\n\tname : \"Orcish Fury\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Half-Orc\",\r\n\tprereqeval : function(v) { return (/^(?=.*half)(?=.*orc).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"Your fury burns tirelessly. You gain the following benefits:\\n \\u2022 Increase your Strength or Constitution score by 1, to a maximum of 20.\\n \\u2022 When you hit with an attack made with a simple or martial weapon, you can roll one of the weapon's damage dice an additional time and add it as extra damage of the weapon's damage type. Once you use this ability, you can't use it again until you finish a short or long rest.\\n \\u2022 Immediately after you use your Relentless Endurance trait, you can use your reaction to make one weapon attack.\",\r\n\tdescription : \"Once per short rest, I can roll an extra damage die for an attack with a simple or martial weapon. In addition, Immediately after I use my Relentless Endurance trait, I can use my reaction to make one weapon attack. [+1 Strength or Constitution]\",\r\n\tscorestxt : \"+1 Strength or Constitution\",\r\n\taction : [[\"reaction\", \" (after Relentless Endurance)\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"extra damage\"\r\n};\r\nFeatsList[\"prodigy-ua\"] = {\r\n\tname : \"Prodigy\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Half-Elf or a Human\",\r\n\tprereqeval : function(v) { return (/human|^(?=.*half)(?=.*elf).*$/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain one skill proficiency of your choice, one tool proficiency of your choice, and fluency in one language of your choice.\",\r\n\tdescription : \"I gain one skill proficiency of my choice, one tool proficiency of my choice, fluency in one language of my choice, and +1 to one ability score of my choice. [+1 to one ability score]\",\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tskillstxt : \"Choose any one skill\",\r\n\tlanguageProfs : [1],\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n};\r\nFeatsList[\"second chance-ua\"] = {\r\n\tname : \"Second Chance\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Halfling\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('halfling') !== -1; },\r\n\tdescriptionFull : \"You have a knack for learning new things. You gain the following benefits:\\n \\u2022 Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\\n \\u2022 When a creature you can see hits you with an attack roll, you can use your reaction to force that creature to reroll. Once you use this ability, you can't do so again until you finish a short or long rest.\",\r\n\tdescription : \"When a creature I can see hits me with an attack roll, I can use my reaction to force that creature to reroll. Once I use this ability, I can't do so again until I finish a short rest.\\n[+1 Dexterity, Constitution, or Charisma]\",\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nFeatsList[\"squat nimbleness-ua\"] = {\r\n\tname : \"Squat Nimbleness\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Dwarf, Gnome, or Halfling\",\r\n\tprereqeval : function(v) { return (/dwarf|gnome|halfling/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You are uncommonly nimble for your race. You gain the following benefits:\\n \\u2022 Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n \\u2022 Increase your walking speed by 5 feet.\\n \\u2022 You gain proficiency in the Acrobatics or Athletics skill. If you're already proficient in the skill, your proficiency bonus is doubled for any check you make with it.\",\r\n\tdescription : \"My walking speed increases by 5 ft. I gain proficiency in the Acrobatics or Athletics skill. If I'm already proficient in the chosen skill, I gain expertise with it instead.\\n[+1 Strength or Dexterity]\",\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tskillstxt : \"Proficiency with Acrobatics or Athletics; or gain Expertise if already proficient\",\r\n\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } }\r\n};\r\nFeatsList[\"wonder maker-ua\"] = {\r\n\tname : \"Wonder Maker\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Rock Gnome\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('rock gnome') !== -1; },\r\n\tdescriptionFull : \"You master the tinker techniques of your people. You gain the following benefits:\\n \\u2022 When you make a check using your proficiency with tinker's tools, you add double your proficiency bonus to the check.\\n \\u2022 When you make a device with your Tinker trait, you have the following additional options for what you make:\\n \\u2022 \" + toUni(\"Alarm\") + \". This device senses when a creature moves to within 15 feet of it without speaking aloud a password chosen when you create it. One round after a creature moves into range, the alarm makes a shrill ringing that lasts for 1 minute and can be heard from up to 300 feet away.\\n \\u2022 \" + toUni(\"Calculator\") + \". This device makes doing sums easy.\\n \\u2022 \" + toUni(\"Lifter\") + \". This device can be used as a block and tackle, allowing its user to hoist five times the weight the user can normally lift.\\n \\u2022 \" + toUni(\"Timekeeper\") + \". This pocket watch keeps accurate time.\\n \\u2022 \" + toUni(\"Weather Sensor\") + \". When used as an action, this device predicts weather conditions in a 1-mile radius over the next 4 hours, showing one symbol (clouds, sun/moon, rain, or snow) for each hour.\",\r\n\tdescription : \"I gain expertise with Tinker's Tools. I get additional Tinker options: Alarm (audible to 300 ft for 1 min), Calculator, Lifter (as block and tackle that multiplies max lift weight by 5), Timekeeper (pocket watch), Weather Sensor (predict for 1-mile, 4 hours) [+1 Dex or Int]\",\r\n\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\teval : function () {\r\n\t\tif ((/tinker.*tool/i).test(What('Too Text'))) {\r\n\t\t\tCheckbox('Too Exp', true);\r\n\t\t};\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tif ((/tinker.*tool/i).test(What('Too Text'))) {\r\n\t\t\tCheckbox('Too Exp', false);\r\n\t\t};\r\n\t}\r\n};\r\nFeatsList[\"wood elf magic-ua\"] = {\r\n\tname : \"Wood Elf Magic\",\r\n\tsource : [[\"UA:FR\", 4]],\r\n\tprerequisite : \"Being a Wood Elf\",\r\n\tprereqeval : function(v) { return CurrentRace.known.indexOf('wood elf') !== -1; },\r\n\tdescriptionFull : \"You learn the magic of the primeval woods. You learn one druid cantrip of your choice. You also learn Longstrider and Pass Without Trace, each of which you can cast once without expending a spell slot. You regain the ability to cast the spell in this way when you finish a long rest. Wisdom is your spellcasting ability for these spells.\",\r\n\tdescription : \"I learn a druid cantrip. In addition, I can cast Longstrider and Pass Without Trace, without expending a spell slot, but each only once per long rest. Wisdom is my spellcasting ability for these three spells.\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Druid Cantrip\",\r\n\t\tspellcastingAbility : 5,\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"longstrider\"],\r\n\t\tselection : [\"longstrider\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}, {\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"pass without trace\"],\r\n\t\tselection : [\"pass without trace\"],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20170501_Revised-Subclasses.js",
    "content": "var iFileName = \"ua_20170501_Revised-Subclasses.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Revised Subclasses article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RS\"] = {\r\n\tname : \"Unearthed Arcana: Revised Subclasses\",\r\n\tabbreviation : \"UA:RS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-RevisedSubclasses.pdf\",\r\n\tdate : \"2017/05/01\"\r\n};\r\n\r\n// Add 5 subclasses from previous Unearthed Arcana articles: 1 for the Barbarian, 1 for the Bard, 1 for the Fighter, 1 for the Monk, and 1 for the Sorcerer\r\nAddSubClass(\"barbarian\", \"ancestral guardian2-ua\", {\r\n\tregExpSearch : /^(?=.*ancestral)(?=.*guardian).*$/i,\r\n\tsubname : \"Path of the Ancestral Guardian\",\r\n\tsubnameShort: \"Ancestral Guardian\",\r\n\tfullname : \"Ancestral Guardian\",\r\n\tsource : [[\"UA:RS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Ancestral Protectors\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, the first creature I hit with an attack on my turn becomes distracted\",\r\n\t\t\t\t\"While distracted, it has disadvantage on attack rolls that don't target me\",\r\n\t\t\t\t\"In addition, everybody but me counts as having resistance to all of the target's attacks\",\r\n\t\t\t\t\"This lasts until the start of my next turn, or until my rage ends\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Spirit Shield\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction while raging when an ally I see within 30 ft is damaged, I can reduce it\",\r\n\t\t\t\t\"My guardian spirits reduce the damage by an amount equal to the roll of the dice\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) { return n < 6 ? \"\" : (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d8 damage reduced\"; }),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Consult the Spirits\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Through consulting my ancestral spirits, I can cast Clairvoyance without a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Consult the Spirits\",\r\n\t\t\t\tspells : [\"clairvoyance\"],\r\n\t\t\t\tselection : [\"clairvoyance\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Vengeful Ancestors\",\r\n\t\t\tsource : [[\"UA:RS\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"Whenever I use Spirit Shield to reduce damage, the attacker takes the reduced damage\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"bard\", \"college of swords2-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*\\bswords?\\b).*$/i,\r\n\tsubname : \"College of Swords\",\r\n\tsubnameShort: \"Swords\",\r\n\tsource : [[\"UA:RS\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with medium armor and scimitars\",\r\n\t\t\t\t\"I can use a simple or martial melee weapon that I'm proficient with as spellcasting focus\"\r\n\t\t\t]),\r\n\t\t\tarmorProfs : [false, true, false, false],\r\n\t\t\tweaponProfs : [false, false, [\"scimitar\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Fighting Style\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc('Select a Fighting Style for the college of swords using the \"Choose Feature\" button above'),\r\n\t\t\tchoices : [\"Dueling\", \"Two-Weapon Fighting\"],\r\n\t\t\t\"dueling\" : FightingStyles.dueling,\r\n\t\t\t\"two-weapon fighting\" : FightingStyles.two_weapon\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Blade Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can make one melee weapon attack and use one flourish option below\",\r\n\t\t\t\t\"In addition, I gain +10 ft to my walking speed until the end of the current turn\",\r\n\t\t\t\t\" - Defensive Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    I add the result of the die to my AC until the start of my next turn\",\r\n\t\t\t\t\" - Slashing Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    If the attack hits, I can use a die to deal damage to creatures next to the target\",\r\n\t\t\t\t\"    All creatures within 5 ft of the target take the result of the die in damage\",\r\n\t\t\t\t\" - Mobile Flourish [one Bardic Inspiration die]\",\r\n\t\t\t\t\"    If the attack hits, I can use a die to push the target back 5 + the die result in feet\",\r\n\t\t\t\t\"    After this, I can use my reaction to move my speed to a space next to the target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cunning Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"When I take the Blade Flourish action, I can attack twice, but still only use one flourish\")\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Master Flourish\",\r\n\t\t\tsource : [[\"UA:RS\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"When I do a Blade Flourish, I can use a d6 instead of expending a Bardic Inspiration die\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"arcane archer2-ua\", {\r\n\tregExpSearch : /^(?=.*arcane)(?=.*archer).*$/i,\r\n\tsubname : \"Arcane Archer\",\r\n\tsource : [[\"UA:RS\", 2]],\r\n\tfullname : \"Arcane Archer\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Magic Arrow\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I fire a nonmagical arrow from a short- or longbow I can make it magical\",\r\n\t\t\t\t\"This magical arrow gives a +1 bonus to the attack and damage rolls for the one attack\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif ((/longbow|shortbow/i).test(v.baseWeaponName) && !v.theWea.isMagicWeapon) output.magic += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Any longbow or shortbow that doesn't include a magic bonus in its name gets a +1 magical bonus to damage and to hit as any arrows fired with it are automatically made magical.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can unleash magical effects when I fire a magic arrow from a short- or longbow\",\r\n\t\t\t\t\"I can use this once per turn as part of the Attack action, after an attack hits\",\r\n\t\t\t\t\"I know a number of Arcane Shot Options and learn additional at certain levels\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Arcane Shots Options to the third page'\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6) + \" options known\"; }),\r\n\t\t\textraname : \"Arcane Shot Option\",\r\n\t\t\textrachoices : [\"Banishing Arrow [Abjuration]\", \"Brute Bane Arrow [Necromancy]\", \"Bursting Arrow [Evocation]\", \"Grasping Arrow [Conjuration]\", \"Mind-Scrambling Arrow [Enchantment]\", \"Piercing Arrow [Transmutation]\", \"Seeking Arrow [Divination]\", \"Shadow Arrow [Illusion]\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : n < 18 ? 5 : 6;\r\n\t\t\t}),\r\n\t\t\t\"banishing arrow [abjuration]\" : {\r\n\t\t\t\tname : \"Banishing Arrow [Abjuration]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target makes a Cha save or is banished to the Feywild until the end of its next turn\",\r\n\t\t\t\t\t\"While banished, its speed is 0 and is incapacitated; It re-appearing in the same spot\",\r\n\t\t\t\t\t\"When I reach 18th level, this Arcane Shot Option also does an extra 2d6 force damage\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 18 ? \"\" : \"+2d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"brute bane arrow [necromancy]\" : {\r\n\t\t\t\tname : \"Brute Bane Arrow [Necromancy]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra necrotic damage and must make a Constitution save\",\r\n\t\t\t\t\t\"If failed, the damage of the target's attacks is halved until the start of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 necrotic damage\"; })\r\n\t\t\t},\r\n\t\t\t\"bursting arrow [evocation]\" : {\r\n\t\t\t\tname : \"Bursting Arrow [Evocation]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription: desc(\"The target, in addition to the shot, and all creatures within 10 ft of it take damage\"),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"grasping arrow [conjuration]\" : {\r\n\t\t\t\tname : \"Grasping Arrow [Conjuration]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra poison damage as brambles wrap around it for 1 minute\",\r\n\t\t\t\t\t\"The brambles give it -10 ft speed and do it slashing damage every round it moves\",\r\n\t\t\t\t\t\"These can be removed by it or another as an action with Strength (Athletics) vs. my DC\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 18 ? 2 : 4) + \"d6 poison/slash. damage\"; })\r\n\t\t\t},\r\n\t\t\t\"mind-scrambling arrow [enchantment]\" : {\r\n\t\t\t\tname : \"Mind-Scrambling Arrow [Enchantment]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, it can't attack or harm one of my allies within 30 ft of it that I choose\",\r\n\t\t\t\t\t\"This lasts until the start of my next turn or until the chosen ally harms the target\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 damage\"; })\r\n\t\t\t},\r\n\t\t\t\"piercing arrow [transmutation]\" : {\r\n\t\t\t\tname : \"Piercing Arrow [Transmutation]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but shoot the arrow in a 30-ft long, 1-ft wide line\",\r\n\t\t\t\t\t\"It passes through objects, ignoring cover, but all creatures in the area take damage\",\r\n\t\t\t\t\t\"The damage is the same as a normal hit from my attack, plus extra piercing damage\",\r\n\t\t\t\t\t\"A creature can make a Dexterity save to reduce the damage by half\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 piercing damage\"; })\r\n\t\t\t},\r\n\t\t\t\"seeking arrow [divination]\" : {\r\n\t\t\t\tname : \"Seeking Arrow [Divination]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"With this I don't roll for the attack, but I choose a target I have seen in the last minute\",\r\n\t\t\t\t\t\"The seeking arrow moves around corners, obstacles, and ignores cover to hit the target\",\r\n\t\t\t\t\t\"It is hit if it is within the weapon's range and there is a path for the arrow to get to it\",\r\n\t\t\t\t\t\"The target takes the full damage of the attack plus extra force damage\",\r\n\t\t\t\t\t\"It can make a Dexterity save to reduce the damage by half; If failed, I know its location\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 1 : 2) + \"d6 force damage\"; })\r\n\t\t\t},\r\n\t\t\t\"shadow arrow [illusion]\" : {\r\n\t\t\t\tname : \"Shadow Arrow [Illusion]\",\r\n\t\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The target takes extra psychic damage and must succeed on a Wisdom save\",\r\n\t\t\t\t\t\"If failed, the target can't see anything beyond 5 ft until the end of my next turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : \"+\" + (n < 18 ? 2 : 4) + \"d6 psychic damage\"; })\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Arcane Archer's Lore\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with either the Arcana or Nature skill\"),\r\n\t\t\tskillstxt : \"Choose one from: Arcana or Nature\"\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Curving Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I miss with a magic arrow, I can use a bonus action to redirect the attack\",\r\n\t\t\t\t\"I reroll the attack against a different target within 60 ft of the original target\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Ever-Ready Shot\",\r\n\t\t\tsource : [[\"UA:RS\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one use of Arcane Shot if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the kensei2-ua\", {\r\n\tregExpSearch : /kensei/i,\r\n\tsubname : \"Way of the Kensei\",\r\n\tsubnameShort: \"Kensei\",\r\n\tsource : [[\"UA:RS\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Path of the Kensei\",\r\n\t\t\tsource : [[\"UA:RS\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Some weapons, that don't have the heavy or special property, are kensei weapons for me\",\r\n\t\t\t\t\"At least one ranged and one melee weapon, more at higher levels (longbow does qualify)\",\r\n\t\t\t\t\"With these: proficient, count as a monk weapons, special bonuses while holding them:\",\r\n\t\t\t\t\" - If I do an unarmed strike during an Attack action, +2 AC until my next turn starts\",\r\n\t\t\t\t\" - As a bonus action, ranged kensei weapon attacks deal +1d4 damage in current turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (with ranged)\"]],\r\n\t\t\tadditional : levels.map( function(n) { return n < 3 ? \"\" : (n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + \" kensei weapons\"; }),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level > 2 && !v.isSpell && !v.theWea.monkweapon && (/kensei/i).test(v.WeaponTextName) && !v.theWea.special && (!(/heavy|special/i).test(fields.Description) || v.baseWeaponName === 'longbow')) {\r\n\t\t\t\t\t\t\tv.theWea.monkweapon = true;\r\n\t\t\t\t\t\t\tv.theWea.kenseiweapon = true;\r\n\t\t\t\t\t\t\tif (v.isRangedWeapon) {\r\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 damage';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfields.Proficiency = true;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the word 'Kensei' in the name of a weapon that doesn't have the Heavy or Special attribute, or that is a longbow, that weapon gains the same benefits as any other 'Monk Weapon'.\\nIn addition, with ranged 'Kensei Weapons', I can take a bonus action to have that hit, and any other hit after that as part of the same action, do +1d4 damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"ki-empowered strikes\" : {\r\n\t\t\tname : \"One with the Blade\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"My unarmed strikes and kensei weapon attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description) && (v.baseWeaponName === \"unarmed strike\" || v.theWea.kenseiweapon)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My unarmed strikes and any Kensei Weapons count as magical for overcoming resistances and immunities.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"precise strike\" : {\r\n\t\t\t\tname : \"Precise Strike\",\r\n\t\t\t\textraname : \"Way of the Kensei 6\",\r\n\t\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\t\tdescription: desc(\"Once per turn when I hit with a kensei weapon, I can do a martial arts die extra damage\"),\r\n\t\t\t\tadditional : \"1 ki point\"\r\n\t\t\t},\r\n\t\t\t\"sharpen the blade\" : {\r\n\t\t\t\tname : \"Sharpen the Blade\",\r\n\t\t\t\textraname : \"Way of the Kensei 11\",\r\n\t\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can grant my kensei weapon a bonus to attack and damage rolls\",\r\n\t\t\t\t\t\"This bonus is equal to the number of ki points I spend; It lasts for 1 minute\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"1 to 3 ki points\",\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"precise strike\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"sharpen the blade\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Unerring Accuracy\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"Once per turn, if I miss a monk weapon attack on my turn, I can reroll the attack roll\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"sorcerer\", \"favoured soul-uars\", {\r\n\tregExpSearch : /^(?=.*favou?red)(?=.*soul).*$/i,\r\n\tsubname : \"Favored Soul\",\r\n\tsource : [[\"UA:RS\", 5]],\r\n\tfullname : \"Favored Soul\",\r\n\tspellcastingList : {\r\n\t\t\"class\" : [\"cleric\", \"sorcerer\"]\r\n\t},\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Divine Magic\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I select my 1st level or higher spells, I can also pick spells from the cleric spell list\",\r\n\t\t\t\t\"These cleric spells count as sorcerer spells for me\",\r\n\t\t\t\t\"I also learn Cure Wounds, which doesn't count against my number of spells known\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Divine Magic\",\r\n\t\t\t\tspells : [\"cure wounds\"],\r\n\t\t\t\tselection : [\"cure wounds\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Favored by the Gods\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"If I fail a saving throw or miss with an attack roll, I can add 2d4 to the total\"),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Empowered Healing\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 sorcery point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I roll dice for healing with one of my sorcerer spells, I can reroll them once\",\r\n\t\t\t\t\"By spending 1 sorcery point, I can reroll any number of those dice for that spell\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Angelic Form\",\r\n\t\t\tsource : [[\"UA:RS\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose an otherworldly quality using the \"Choose Feature\" button above',\r\n\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Beautiful\", \"Youthful\", \"Kind\", \"Imposing\"],\r\n\t\t\t\"beautiful\" : {\r\n\t\t\t\tname : \"Angelic Form: Beautiful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of beauty\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"youthful\" : {\r\n\t\t\t\tname : \"Angelic Form: Youthful\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of youthfulness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"kind\" : {\r\n\t\t\t\tname : \"Angelic Form: Kind\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of kindness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"imposing\" : {\r\n\t\t\t\tname : \"Angelic Form: Imposing\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"My appearance takes on an otherworldly quality of imposingness\",\r\n\t\t\t\t\t\"As a bonus action, I can manifest a pair of spectral wings that give me 30 ft fly speed\",\r\n\t\t\t\t\t\"These wings last until I become incapacitated or I dismiss them as a bonus action\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \" Wings\"]],\r\n\t\t\tspeed : { fly : { spd : 30, enc : 20 } }\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Unearthly Recovery\",\r\n\t\t\tsource : [[\"UA:RS\", 6]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action when I have less than half of my max HP remaining, I can heal myself\",\r\n\t\t\t\t\"I regain a number of HP equal to half my hit point maximum\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20170605_Revised-Class-Options.js",
    "content": "var iFileName = \"ua_20170605_Revised-Class-Options.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n// This file adds the content from the Unearthed Arcana: Revised Class Options article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:RCO\"] = {\r\n\tname : \"Unearthed Arcana: Revised Class Options\",\r\n\tabbreviation : \"UA:RCO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/June5UA_RevisedClassOptv1.pdf\",\r\n\tdate : \"2017/06/05\"\r\n};\r\n\r\n// Adds 4 revised subclasses from previous Unearthed Arcana articles: 1 for the Druid, 1 for the Fighter, 1 for the Paladin, and 1 for the Warlock\r\nAddSubClass(\"druid\", \"circle of the shepherd2-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*shepherd).*$/i,\r\n\tsubname : \"Circle of the Shepherd\",\r\n\tsubnameShort: \"Shepherd\",\r\n\tsource : [[\"UA:RCO\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Speech of the Woods\",\r\n\t\t\tsource : [[\"UA:RCO\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can talk with beasts, they understand me and I them, to the limit of their intelligence\",\r\n\t\t\t\t\"This doesn't automatically make me friends with all beasts; Additionally, I learn Sylvan\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Sylvan\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Spirit Totem\",\r\n\t\t\tsource : [[\"UA:RCO\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon, or move, a spirit to a point I can see within 60 ft\",\r\n\t\t\t\t\"The spirit is a Bear, Hawk, or Unicorn (see below), which has a 30-ft radius aura\",\r\n\t\t\t\t\"It is incorporeal, immobile, doesn't counts as a creature or object, and persists for 1 min\",\r\n\t\t\t\t\"\\u2022 Bear: my allies in the area and I instantly gain 5 + my druid level in temp HP\",\r\n\t\t\t\t\"   While in the aura, my allies and I gain advantage on Strength checks and saves\",\r\n\t\t\t\t\"\\u2022 Hawk: As a reaction, I can grant advantage on an attack vs. a target in the aura\",\r\n\t\t\t\t\"\\u2022 Unicorn: my allies and I gain advantage on ability checks to detect targets in the aura\",\r\n\t\t\t\t\"   If I cast a healing spell with a spell slot, allies in the aura heal my druid level in HP\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mighty Summoner\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"Beasts or Fey I summon with spells get +2 HP per HD and their attacks count as magical\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\t\t\tcase \"conjure animals\" :\r\n\t\t\t\t\t\t\tcase \"conjure fey\" :\r\n\t\t\t\t\t\t\t\tspellObj.description += \"; each +2 HP/HD, magical natural attacks\";\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\tcase \"conjure woodland beings\" :\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/fey.*/, \"fey; obeys commands if its align. agrees; breaks free if break conc.; +2 HP/HD, magic atks\");\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use a spell that restores hit points, it restores an additional 2 + the level of the spell slot (or spell slot equivalent) used to cast the spell.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Guardian Spirit\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"When a Beast or Fey that I summoned ends its turn in my Spirit Totem aura, it heals\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 10) return \"\";\r\n\t\t\t\treturn \"heals \" + Math.floor(n / 2) + \" HP\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Faithful Summons\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I am reduced to 0 HP or incapacitated against my will, I can cast Conjure Animals\",\r\n\t\t\t\t\"This is done as if using a 9th-level spell slot to summon 4 beast of my choice up to CR 2\",\r\n\t\t\t\t\"They appear within 20 ft of me, last 1 hour, and protect me from harm and attack foes\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Faithful Summons\",\r\n\t\t\t\tspells : [\"conjure animals\"],\r\n\t\t\t\tselection : [\"conjure animals\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"conjure animals\" : {\r\n\t\t\t\t\tnameShort : \"Conjure Animals (level 9)\",\r\n\t\t\t\t\trange : \"20 ft\",\r\n\t\t\t\t\tduration : \"1 h\",\r\n\t\t\t\t\tdescription : \"Summon 4 CR 2 beasts; protect me from harm and attack foes\",\r\n\t\t\t\t\tchanges : \"Using my Faithful Summons class feature when I'm reduced to 0 HP, I can cast Conjure Animals as if using a 9th-level spell slot. This then summons 4 beast of my choice up to CR 2 within 20 ft of me without needing concentration.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"fighter\", \"cavalier2-ua\", {\r\n\tregExpSearch : /cavalier/i,\r\n\tsubname : \"Cavalier\",\r\n\tsource : [[\"UA:RCO\", 2]],\r\n\tfullname : \"Cavalier\",\r\n\tabilitySave : 1,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\",\r\n\t\t\t\t\"Alternatively, I learn one language of my choice\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Language proficiency\", \"Skill proficiency: Animal Handling, History, Insight, Performance, or Persuasion\"],\r\n\t\t\t\"language proficiency\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription: desc(\"I learn one language of my choice\"),\r\n\t\t\t\tlanguageProfs : [1]\r\n\t\t\t},\r\n\t\t\t\"skill proficiency: animal handling, history, insight, performance, or persuasion\" : {\r\n\t\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\t\tdescription: desc(\"I gain proficiency with Animal Handling, History, Insight, Performance, or Persuasion\"),\r\n\t\t\t\tskillstxt : \"Choose one from: Animal Handling, History, Insight, Performance, or Persuasion\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Born in the Saddle\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have advantage on saves to avoid falling off my mount, and land on my feet if I fail\",\r\n\t\t\t\t\"Mounting or dismounting a creature costs me only 5 ft of movement instead of half\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { adv_vs : [\"falling off my mount\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Combat Superiority\",\r\n\t\t\tsource : [[\"UA:RCO\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain a number of superiority dice that I can use to fuel special maneuvers (see below)\",\r\n\t\t\t\t\"I can use only one maneuver per attack; I regain all superiority dice after a short rest\",\r\n\t\t\t\t\" \\u2022 Control Mount (Maneuver, UA:RCO 3)\",\r\n\t\t\t\t\"   Use after rolling Wis (Animal Handling) to influence an animal I or an ally is riding\",\r\n\t\t\t\t\"   I add the superiority die to the result\",\r\n\t\t\t\t\" \\u2022 Precision Attack (Maneuver, UA:RCO 3)\",\r\n\t\t\t\t\"   Use after rolling to hit; I add the superiority die to my attack roll\",\r\n\t\t\t\t\" \\u2022 Trip Attack (Maneuver, UA:RCO 3) [DC 8 + Prof Bonus + Str mod]\",\r\n\t\t\t\t\"   Use after hitting a creature; I add the superiority die to the attack's damage\",\r\n\t\t\t\t\"   If target is Large or smaller, it must make a Strength save or be knocked prone\",\r\n\t\t\t\t\" \\u2022 Warding Maneuver (Maneuver, UA:RCO 3) [only while wielding weapon or shield]\",\r\n\t\t\t\t\"   As a reaction when I or a creature within 5 ft is hit, I add the superiority die to AC\",\r\n\t\t\t\t\"   If the attack still hits, the target counts as having resistance against the attack\"\r\n\t\t\t]),\r\n\t\t\tadditional : [\"\", \"\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d8\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d10\", \"d12\", \"d12\", \"d12\"],\r\n\t\t\tusages : [0, 0, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6],\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : ['reaction', 'Warding Maneuver']\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Ferocious Charger\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use two superiority dice, instead of just one, when using the Trip Attack Maneuver\",\r\n\t\t\t\t\"If doing so, both dice are added to the damage and the target has disadv. on its Str save\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Improved Combat Superiority\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"My superiority dice turn into d10s at 10th level and into d12s at 18th level\")\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Relentless\",\r\n\t\t\tsource : [[\"UA:RCO\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription: desc(\"I regain one superiority die if I have no more remaining when I roll initiative\")\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of conquest2-ua\", {\r\n\tregExpSearch : /^((?=.*(knight tyrant|iron mongers))|((?=.*(conquest|tyranny|tyrant))(((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper))))))).*$/i,\r\n\tsubname : \"Oath of Conquest\",\r\n\tsubnameShort: \"Conquest\",\r\n\tsource : [[\"UA:RCO\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Conquering Presence\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all creatures of my choice within 30-ft radius must make a Wisdom save\",\r\n\t\t\t\t\"If failed, a target is frightened for 1 minute; It can save again at the end of each turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"armor of agathys\", \"command\", \"hold person\", \"spiritual weapon\", \"bestow curse\", \"fear\", \"dominate beast\", \"stoneskin\", \"cloudkill\", \"dominate person\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Guided Strike\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"When I make an attack roll, I can add a +10 bonus to the roll after seeing the d20 roll\")\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of Conquest\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Enemies that are frightened of me have their speed reduced to 0 while in my aura\",\r\n\t\t\t\t\"They also take psychic damage whenever they start theirs turn within my aura\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 7) return \"\";\r\n\t\t\t\treturn (n < 18 ? 10 : 30) + \"-foot aura; \" + Math.floor(n / 2) + \" psychic damage\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Scornful Rebuke\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I'm hit with an attack while I'm not incapacitated, the attacker takes damage\",\r\n\t\t\t\t\"This is psychic damage equal to my Charisma modifier (minimum of 0)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Invincible Conqueror\",\r\n\t\t\tsource : [[\"UA:RCO\", 4]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" - I have resistance to all damage\",\r\n\t\t\t\t\" - I can make an additional attack as part of my Attack action\",\r\n\t\t\t\t\" - My melee weapons score critical hits on a roll of 19 or 20\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the celestial-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*celestial).*$/i,\r\n\tsubname : \"the Celestial\",\r\n\tsource : [[\"UA:RCO\", 4]],\r\n\tspellcastingExtra : [\"burning hands\", \"cure wounds\", \"flaming sphere\", \"lesser restoration\", \"daylight\", \"revivify\", \"guardian of faith\", \"wall of fire\", \"flame strike\", \"greater restoration\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I know the Light and Sacred Flame cantrips\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"light\"],\r\n\t\t\t\tselection : [\"light\"]\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Bonus Cantrips\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Healing Light\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can heal a creature on touch by expending dice from my pool\",\r\n\t\t\t\t\"I can expend up to my Charisma modifier (min 1) of dice at a time\",\r\n\t\t\t\t\"The target heals HP equal to the roll of the dice; I regain all expended dice on a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function (n) {\r\n\t\t\t\treturn (n + 1) + \"d6 per \";\r\n\t\t\t}),\r\n\t\t\tusagescalc : \"event.value = !classes.known.warlock ? '' : (1 + classes.known.warlock.level) + 'd6';\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Radiant Soul\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add my Cha modifier to cantrips/spells I cast that deal fire or radiant damage\",\r\n\t\t\t\t\"Additionally, I have resistance to radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Radiant\"],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isSpell && (/fire|radiant/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += What('Cha Mod');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire|radiant\", \"Cha\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips and spells that fire or radiant damage get my Charisma modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Radiant Resilience\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short or long rest, I and up to five allies gain temporary hit points\",\r\n\t\t\t\t\"I get my warlock level + Cha mod, while my allies get half my warlock level + Cha mod\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 10) return \"\";\r\n\t\t\t\treturn \"Me: \" + n + \"+Cha mod; Allies: \" + Math.floor(n / 2) + \"+Cha mod\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Searing Vengeance\",\r\n\t\t\tsource : [[\"UA:RCO\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"At the start of my turn when I would make a death save, I can instead spring back up\",\r\n\t\t\t\t\"I can stand up and recover HP equal to half my current HP maximum\",\r\n\t\t\t\t\"Also, creatures of my choice within 30 ft of me take 2d8 + Cha mod in radiant damage\",\r\n\t\t\t\t\"Damaged creatures are blinded until the end of my current turn\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add Warlock invocations, revised versions from previous Unearthed Arcana articles, and new ones\r\n// Most probably still valid 2021-09-21, have to check\r\n// dupl_start\r\nif (!SourceList.X || SourceList.X.abbreviation !== \"XGtE\") {\r\n\tAddWarlockInvocation(\"Aspect of the Moon (prereq: Pact of the Tome)\", {\r\n\t\tname : \"Aspect of the Moon\",\r\n\t\tdescription: desc(\"I don't need sleep nor can be forced to by any means; I can rest while doing light activity\"),\r\n\t\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\t\tsubmenu : \"[improves Pact of the Tome]\",\r\n\t\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome'; },\r\n\t\tsavetxt : { text : [\"Nothing can force me to sleep\"] }\r\n\t});\r\n\tAddWarlockInvocation(\"Cloak of Flies (prereq: level 5 warlock)\", {\r\n\t\tname : \"Cloak of Flies\",\r\n\t\tdescription : desc([\r\n\t\t\t\"As a bonus action, I can surround myself with a 5-ft radius magical aura of buzzing flies\",\r\n\t\t\t\"It lasts until I'm incapacitated or dismiss it as a bonus action; Total cover block the aura\",\r\n\t\t\t\"The aura grants me adv. on Cha (Intimidation), but disadv. on all other Cha checks\",\r\n\t\t\t\"Creatures starting their turn in the aura take my Cha mod (min 0) in poison damage\"\r\n\t\t]),\r\n\t\tsource : [[\"X\", 56], [\"UA:RCO\", 5]],\r\n\t\tsubmenu : \"[warlock level  5+]\",\r\n\t\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\t\trecovery : \"short rest\",\r\n\t\tusages : 1,\r\n\t\taction : [[\"bonus action\", \" (start/stop)\"]]\r\n\t});\r\n\tAddWarlockInvocation(\"Gift of the Depths (prereq: level 5 warlock)\", {\r\n\t\tname : \"Gift of the Depths\",\r\n\t\tdescription : desc([\r\n\t\t\t\"I can breathe underwater and I have a swim speed equal to my walking speed\",\r\n\t\t\t\"Once per long rest, I can cast Water Breathing without using a spell slot (PHB 287)\"\r\n\t\t]),\r\n\t\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\t\tsubmenu : \"[warlock level  5+]\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Gift of the Depths\",\r\n\t\t\tspells : [\"water breathing\"],\r\n\t\t\tselection : [\"water breathing\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n\t});\r\n\tAddWarlockInvocation(\"Gift of the Ever-Living Ones (prereq: Pact of the Chain)\", {\r\n\t\tname : \"Gift of the Ever-Living Ones\",\r\n\t\tdescription: desc(\"When I regain HP while my familiar is within 100 ft, I regain the max the dice can roll\"),\r\n\t\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\t\tsubmenu : \"[improves Pact of the Chain]\",\r\n\t\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain'; }\r\n\t});\r\n\tAddWarlockInvocation(\"Grasp of Hadar (prereq: Eldritch Blast cantrip)\", {\r\n\t\tname : \"Grasp of Hadar\",\r\n\t\tdescription : desc(\"Once per turn when my Eldritch Blast hits a creature, I can move it 10 ft closer to me\"),\r\n\t\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\t\tsubmenu : \"[improves Eldritch Blast]\",\r\n\t\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; Target moved 10 ft to me';\r\n\t\t\t\t},\r\n\t\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can move it in a straight line 10 ft closer to me.\"\r\n\t\t\t]\r\n\t\t}\r\n\t});\r\n\tAddWarlockInvocation(\"Shroud of Shadow (prereq: level 15 warlock)\", {\r\n\t\tname : \"Shroud of Shadow\",\r\n\t\tdescription: desc(\"I can cast Invisibility at will, without using spell slots (PHB 254)\"),\r\n\t\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\t\tsubmenu : \"[warlock level 15+]\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Shroud of Shadow\",\r\n\t\t\tspells : [\"invisibility\"],\r\n\t\t\tselection : [\"invisibility\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tprereqeval : function(v) { return classes.known.warlock.level >= 15; },\r\n\t\tspellChanges : {\r\n\t\t\t\"invisibility\" : {\r\n\t\t\t\tdescription : \"1 crea invisible; attacking/casting makes the crea visible; anything worn/carried also invisible\",\r\n\t\t\t\tchanges : \"With the Shroud of Shadow invocation I can cast Invisibility at will, but when I do so I am unable to cast it using a higher level spell slot.\"\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tAddWarlockInvocation(\"Tomb of Levistus (prereq: level 5 warlock)\", {\r\n\t\tname : \"Tomb of Levistus\",\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when I take damage, I can entomb myself in ice until the end of my turn\",\r\n\t\t\t\"During, I get 10 temp. HP per warlock level, which I use to absorb the triggering damage\",\r\n\t\t\t\"After, till the ice is gone, I also get vulnerability to fire, 0 speed, and am incapacitated\"\r\n\t\t]),\r\n\t\tsource : [[\"X\", 57], [\"UA:RCO\", 6]],\r\n\t\tsubmenu : \"[warlock level  5+]\",\r\n\t\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\t\trecovery : \"short rest\",\r\n\t\tusages : 1,\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tadditional : levels.map( function(n) { return (n * 10) + \" temp HP\"; })\r\n\t});\r\n\tAddWarlockInvocation(\"Trickster's Escape (prereq: level 7 warlock)\", {\r\n\t\tname : \"Trickster's Escape\",\r\n\t\tdescription: desc(\"Once per long rest, I can cast Freedom of Movement on myself without using a spell slot\"),\r\n\t\tsource : [[\"X\", 57], [\"UA:RCO\", 7]],\r\n\t\tsubmenu : \"[warlock level  7+]\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Trickster's Escape\",\r\n\t\t\tspells : [\"freedom of movement\"],\r\n\t\t\tselection : [\"freedom of movement\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\t\tspellChanges : {\r\n\t\t\t\"freedom of movement\" : {\r\n\t\t\t\trange : \"Self\",\r\n\t\t\t\tdescription : \"Magic can't reduce my speed, paralyze or restrain me; I can use 5 ft to escape nonmagical restrains\",\r\n\t\t\t\tchanges : \"With the Trickster's Escape invocation I can cast Freedom of Movement, but only on myself.\"\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n} // dupl_end\r\nAddWarlockInvocation(\"Eldritch Smite (prereq: level 5 warlock, Pact of the Blade)\", {\r\n\tname : \"Eldritch Smite\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when I hit a creature with my pact weapon, I can do extra damage\",\r\n\t\t\"By expending a warlock spell slot, the creature takes extra damage and is knocked prone\",\r\n\t\t\"It takes 1d8 force damage and another 1d8 force damage per level of the spell slot\",\r\n\t\t\"If the target takes any of this bonus damage, it is knocked prone if it is Huge or smaller\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; }\r\n});\r\nAddWarlockInvocation(\"Frost Lance (prereq: Eldritch Blast cantrip)\", { // Still valid 2021-09-21\r\n\tname : \"Frost Lance\",\r\n\tdescription : desc([\r\n\t\t\"Once per turn when my Eldritch Blast hits a creature, I can reduce its speed by 10 ft\",\r\n\t\t\"This speed reduction lasts until the end of my next turn\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast; },\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == 'eldritch blast') fields.Description += '; 1 target -10 ft speed';\r\n\t\t\t},\r\n\t\t\t\"When I hit a creature with my Eldritch Blast cantrip once or more times in a turn, I can reduce its speed by 10 ft until the end of my next turn.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Ghostly Gaze (prereq: level 7 warlock)\", {\r\n\tname : \"Ghostly Gaze\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can see through solid objects out to 30 ft, until the end of my current turn\",\r\n\t\t\"Objects appear ghostly to me; I also gain 30 ft darkvision for the duration\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\trecovery : \"short rest\",\r\n\tusages : 1,\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Improved Pact Weapon (prereq: Pact of the Blade)\", {\r\n\tname : \"Improved Pact Weapon\",\r\n\tdescription : desc([\r\n\t\t\"I can use any pact weapon I create as my spellcasting focus for warlock spells\",\r\n\t\t\"Any pact weapon I create is a +1 magic weapon, if it isn't already a +1 magic weapon\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tprereqeval : function(v) { return GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade'; },\r\n\tcalcChanges : {\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t// Test if this is a pact weapon, has no + bonus from somewhere else, and doesn't already have a improved pact weapon bonus\r\n\t\t\t\tif (v.pactWeapon && !output.magic) {\r\n\t\t\t\t\tvar bContinue = true;\r\n\t\t\t\t\t// Now test if this isn't a weaponOptions addition with a static + bonus set to the modifier fields\r\n\t\t\t\t\tif (v.theWea.isMagicWeapon && v.theWea.modifiers) {\r\n\t\t\t\t\t\t// Test the first two modifiers to see if both offer a +1 or more. Returns `true` if one contains no numbers or is less than the improved pact weapon bonus\r\n\t\t\t\t\t\tvar bContinue = v.theWea.modifiers.slice(0, 2).some(function (n) {\r\n\t\t\t\t\t\t\tif (!n || !/\\d/.test(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = 0;\r\n\t\t\t\t\t\t\t} else if (isNaN(n)) {\r\n\t\t\t\t\t\t\t\tvar nmbr = n.match(/(^|\\+|-)\\d+\\b/g);\r\n\t\t\t\t\t\t\t\tnmbr = !nmbr ? 0 : nmbr.reduce(function(a, b) {return Number(a) + Number(b)});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar nmbr = Number(n);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn nmbr < 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if the continue boolean wasn't set to false, we can proceed\r\n\t\t\t\t\tif (bContinue) {\r\n\t\t\t\t\t\tv.pactMag = 1;\r\n\t\t\t\t\t\toutput.magic = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"If my Pact Weapon doesn't already include a magical bonus in its name and is not a magic weapon with at least a +1 bonus, the calculation will add +1 to its To Hit and Damage.\"\r\n\t\t]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Kiss of Mephistopheles (prereq: level 5 warlock, Eldritch Blast cantrip)\", {\r\n\tname : \"Kiss of Mephistopheles\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action when my Eldritch Blast hits, I can cast Fireball using a warlock spell slot\",\r\n\t\t\"The origin of the Fireball is the creature that was hit with my Eldritch Blast attack\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[improves Eldritch Blast]\",\r\n\tprereqeval : function(v) { return v.hasEldritchBlast && classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Maddening Hex (prereq: level 5 warlock)\", {\r\n\tname : \"Maddening Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I cause pain around a target affected by a hex of mine (spell/feature)\",\r\n\t\t\"It and any of my choice within 5 ft of it take my Cha mod (min 0) in psychic damage\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  5+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 5; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Relentless Hex (prereq: level 7 warlock)\", {\r\n\tname : \"Relentless Hex\",\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can teleport next to a target affected by a hex of mine (spell/feature)\",\r\n\t\t\"To do so, I must see the target and the space I'm teleporting to, and be within 30 ft of it\"\r\n\t]),\r\n\tsource : [[\"UA:RCO\", 6]],\r\n\tsubmenu : \"[warlock level  7+]\",\r\n\tprereqeval : function(v) { return classes.known.warlock.level >= 7; },\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20170911_Eladrin-and-Gith.js",
    "content": "var iFileName = \"ua_20170911_Eladrin-and-Gith.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Eladrin and Gith article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:EnG\"] = {\r\n\tname : \"Unearthed Arcana: Eladrin and Gith\",\r\n\tabbreviation : \"UA:EnG\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-Eladrin-Gith.pdf\",\r\n\tdate : \"2017/09/11\"\r\n};\r\n\r\n// Adds three races:\r\n// Alternative version of the Eladrin\r\nRaceList[\"eladrin-uaeng\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*eladrin)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(feys?|feywild)\\b))).*$/i,\r\n\tname : \"Eladrin\",\r\n\tsortname : \"Elf, Fey (Eladrin)\",\r\n\tsource : [[\"UA:EnG\", 1]],\r\n\tplural : \"Eladrin\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d12 \\xD7 2d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity, +1 Intelligence or Charisma\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Eladrin (+2 Dexterity, +1 Intelligence or Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nFey Step: Once per short rest, as a bonus action, I can magically teleport up to 30 ft to an unoccupied space I can see.\" + (typePF ? \"\\n\" : \" \") + \"Shifting Seasons: After a short or long rest, I can align myself with a season, granting me access to a cantrip until my next rest: Friends, Chill Touch, Minor Illusion, or Fire Bolt. My spellcasting ability for this is Int or Cha, whichever is higher.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shifting Seasons\",\r\n\t\tspells : [\"friends\", \"chill touch\", \"minor illusion\", \"fire bolt\"],\r\n\t\tselection : [\"friends\", \"chill touch\", \"minor illusion\", \"fire bolt\"],\r\n\t\tfirstCol : \"checkbox\",\r\n\t\ttimes : 4\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"fey step\" : {\r\n\t\t\tname : \"Fey Step\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n// Githyanki and its two variants\r\nRaceList[\"githyanki-ua\"] = {\r\n\tregExpSearch : /githyanki/i,\r\n\tname : \"Githyanki\",\r\n\tsource : [[\"UA:EnG\", 2]],\r\n\tplural : \"Githyanki\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gith\", 1],\r\n\tarmorProfs : [true, true, false, false],\r\n\tskillstxt : \"Choose any one skill or tool\",\r\n\tage : \" reach adulthood in their late teens and live for about a century\",\r\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (5'0\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 135 lb (100 + 2d12 \\xD7 2d4 lb)\",\r\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 61 kg (45 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [2, 0, 0, 1, 0, 0],\r\n\ttrait : \"Githyanki (+2 Strength, +1 Intelligence)\\nGithyanki Psionics:\" + desc([\r\n\t\t\"I know the Mage Hand cantrip.\",\r\n\t\t\"At 3rd level, I can cast the Jump spell once per long rest.\",\r\n\t\t\"At 5th level, I can also cast the Misty Step spell once per long rest.\",\r\n\t\t\"Intelligence is my spellcasting ability for these spells.\",\r\n\t\t\"I don't require components to cast these spells.\"\r\n\t]),\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githyanki Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"jump\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 3)\",\r\n\t\t\tlimfeaname : \"Jump\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (3)\",\r\n\t\t\t\tspells : [\"jump\"],\r\n\t\t\t\tselection : [\"jump\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"misty step\" : {\r\n\t\t\tname : \"Githyanki Psionics (level 5)\",\r\n\t\t\tlimfeaname : \"Misty Step\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githyanki Psionics (5)\",\r\n\t\t\t\tspells : [\"misty step\"],\r\n\t\t\t\tselection : [\"misty step\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"githyanki-ua\", \"tool proficiency\", {\r\n\tregExpSearch : /tool proficiency/i,\r\n\ttoolProfs : [[\"Any tool\", 1]]\r\n});\r\nAddRacialVariant(\"githyanki-ua\", \"skill proficiency\", {\r\n\tregExpSearch : /skill proficiency/i,\r\n\tskillstxt : \"Choose any one skill\"\r\n});\r\n// Githzerai\r\nRaceList[\"githzerai-ua\"] = {\r\n\tregExpSearch : /githzerai/i,\r\n\tname : \"Githzerai\",\r\n\tsource : [[\"UA:EnG\", 3]],\r\n\tplural : \"Githzerai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gith\"],\r\n\tage : \" reach adulthood in their late teens and live for about a century\",\r\n\theight : \" are more leaner and taller than humans, most are a slender 6 feet tall (4'11\\\" + 2d12\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d12 \\xD7 1d4 lb)\",\r\n\theightMetric : \" are more leaner and taller than humans, most are a slender 1,8 metres tall (150 + 5d12 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 2, 0],\r\n\ttrait : \"Githzerai (+1 Intelligence, +2 Wisdom)\\n\" + (typePF ? \"\\n\" : \"\") + \"Monastic Training: I gain a +1 bonus to AC while I'm not wearing medium or heavy armor and not using a shield.\\n\\nGithzerai Psionics: I know the Mage Hand cantrip. At 3rd level, I can cast the Shield spell once per long rest. At 5th level, I can also cast the Detect Thoughts spell once per long rest. Wisdom is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Githzerai Psionics (1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"shield\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 3)\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (3)\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"detect thoughts\" : {\r\n\t\t\tname : \"Githzerai Psionics (level 5)\",\r\n\t\t\tlimfeaname : \"Detect Thoughts\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Githzerai Psionics (5)\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\textraAC : {\r\n\t\tname : \"Monastic Training\",\r\n\t\tmod : 1,\r\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing medium or heavy armor and not using a shield.\",\r\n\t\tstopeval : function (v) { return v.mediumArmor || v.heavyArmor || v.usingShield; }\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20171009_Fiendish-Options.js",
    "content": "var iFileName = \"ua_20171009_Fiendish-Options.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Fiendish Options article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FO\"] = {\r\n\tname : \"Unearthed Arcana: Fiendish Options\",\r\n\tabbreviation : \"UA:FO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA_FiendishOptions.pdf\",\r\n\tdate : \"2017/10/09\"\r\n};\r\n\r\n// Adds 8 subraces for the Tiefling, even though it doesn't have any in the PHB/SRD\r\n// Much of this code was contributed by Friedrich\r\n// [dupl_start] Note that the Abyssal Tiefling is the same as the Tiefling in the PHB/SRD, so it is not added (again) by this code\r\nif (!RaceList[\"baalzebul tiefling\"]) {\r\n\tRaceList[\"baalzebul tiefling\"] = {\r\n\t\tregExpSearch : /^(?=.*baalzebul)(?=.*tiefling|planetouched).*$/i,\r\n\t\tname : \"Baalzebul tiefling\",\r\n\t\tsortname : \"Tiefling, Baalzebul\",\r\n\t\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\r\n\t\tplural : \"Baalzebul tieflings\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\t\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 1, 0, 2],\r\n\t\ttrait : \"Baalzebul Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Maladomini:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Ray of Sickness spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Crown of Madness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Legacy of Maladomini (1)\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"ray of sickness\" : {\r\n\t\t\t\tname : \"Legacy of Maladomini (level 3)\",\r\n\t\t\t\tlimfeaname : \"Ray of Sickness (3d8)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Maladomini (3)\",\r\n\t\t\t\t\tspells : [\"ray of sickness\"],\r\n\t\t\t\t\tselection : [\"ray of sickness\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"ray of sickness\" : {\r\n\t\t\t\t\t\tdescription : \"Spell attack for 3d8 Poison dmg; save or also poisoned until end of my next turn\",\r\n\t\t\t\t\t\tchanges : \"Using Legacy of Maladomini, I cast Ray of Sickness as if I'm using a 2nd-level spell slot.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"crown of madness\" : {\r\n\t\t\t\tname : \"Legacy of Maladomini (level 5)\",\r\n\t\t\t\tlimfeaname : \"Crown of Madness\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Maladomini (5)\",\r\n\t\t\t\t\tspells : [\"crown of madness\"],\r\n\t\t\t\t\tselection : [\"crown of madness\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}\r\nif (!RaceList[\"fierna tiefling\"]) {\r\n\tRaceList[\"fierna tiefling\"] = {\r\n\t\tregExpSearch : /^(?=.*fierna)(?=.*tiefling|planetouched).*$/i,\r\n\t\tname : \"Fierna tiefling\",\r\n\t\tsortname : \"Tiefling, Fierna\",\r\n\t\tsource : [[\"MToF\", 21], [\"UA:FO\", 1]],\r\n\t\tplural : \"Fierna tieflings\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\t\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 0, 1, 2],\r\n\t\ttrait : \"Fierna Tiefling (+1 Wisdom, +2 Charisma)\\n\\nLegacy of Phlegethos:\\n   I know the Friends cantrip.\\n   At 3rd level, I can cast the Charm Person spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Suggestion spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\t\tabilitySave : 6,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Legacy of Phlegethos (1)\",\r\n\t\t\tspells : [\"friends\"],\r\n\t\t\tselection : [\"friends\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"charm person\" : {\r\n\t\t\t\tname : \"Legacy of Phlegethos (level 3)\",\r\n\t\t\t\tlimfeaname : \"Charm Person (2 targets)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Phlegethos (3)\",\r\n\t\t\t\t\tspells : [\"charm person\"],\r\n\t\t\t\t\tselection : [\"charm person\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"charm person\" : {\r\n\t\t\t\t\t\tdescription : \"2 humanoids, max 30 ft apart, save or charmed; adv. on save if me/ally is fighting it\",\r\n\t\t\t\t\t\tchanges : \"Using Legacy of Phlegethos, I cast Charm Person as if I'm using a 2nd-level spell slot.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"suggestion\" : {\r\n\t\t\t\tname : \"Legacy of Phlegethos (level 5)\",\r\n\t\t\t\tlimfeaname : \"Suggestion\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Phlegethos (5)\",\r\n\t\t\t\t\tspells : [\"suggestion\"],\r\n\t\t\t\t\tselection : [\"suggestion\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}\r\nif (!RaceList[\"glasya tiefling\"]) {\r\n\tRaceList[\"glasya tiefling\"] = {\r\n\t\tregExpSearch : /^(?=.*glasya)(?=.*tiefling|planetouched).*$/i,\r\n\t\tname : \"Glasya tiefling\",\r\n\t\tsortname : \"Tiefling, Glasya\",\r\n\t\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\r\n\t\tplural : \"Glasya tieflings\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\t\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 1, 0, 0, 0, 2],\r\n\t\ttrait : \"Glasya Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Malbolge:\\n   I know the Minor Illusion cantrip.\\n   At 3rd level, I can cast the Disguise Self spell once per long rest.\\n   At 5th level, I can also cast the Invisibility spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Legacy of Malbolge (1)\",\r\n\t\t\tspells : [\"minor illusion\"],\r\n\t\t\tselection : [\"minor illusion\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"disguise self\" : {\r\n\t\t\t\tname : \"Legacy of Malbolge (level 3)\",\r\n\t\t\t\tlimfeaname : \"Disguise Self\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Malbolge (3)\",\r\n\t\t\t\t\tspells : [\"disguise self\"],\r\n\t\t\t\t\tselection : [\"disguise self\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"invisibility\" : {\r\n\t\t\t\tname : \"Legacy of Malbolge (level 5)\",\r\n\t\t\t\tlimfeaname : \"Invisibility\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Malbolge (5)\",\r\n\t\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}\r\nif (!RaceList[\"levistus tiefling\"]) {\r\n\tRaceList[\"levistus tiefling\"] = {\r\n\t\tregExpSearch : /^(?=.*levistus)(?=.*tiefling|planetouched).*$/i,\r\n\t\tname : \"Levistus tiefling\",\r\n\t\tsortname : \"Tiefling, Levistus\",\r\n\t\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\r\n\t\tplural : \"Levistus tieflings\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\t\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 1, 0, 0, 2],\r\n\t\ttrait : \"Levistus Tiefling (+1 Constitution, +2 Charisma)\\n\\nLegacy of Stygia:\\n   I know the Ray of Frost cantrip.\\n   At 3rd level, I can cast the Armor of Agathys spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Darkness spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Legacy of Stygia (1)\",\r\n\t\t\tspells : [\"ray of frost\"],\r\n\t\t\tselection : [\"ray of frost\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"armor of agathys\" : {\r\n\t\t\t\tname : \"Legacy of Stygia (level 3)\",\r\n\t\t\t\tlimfeaname : \"Armor of Agathys (2nd-level)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Stygia (3)\",\r\n\t\t\t\t\tspells : [\"armor of agathys\"],\r\n\t\t\t\t\tselection : [\"armor of agathys\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"armor of agathys\" : {\r\n\t\t\t\t\t\tdescription : \"10 temp HP; as long as temp HP last any crea that hits in melee takes 10 Cold dmg\",\r\n\t\t\t\t\t\tchanges : \"Using Legacy of Stygia, I cast Armor of Agathys as if I'm using a 2nd-level spell slot.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"darkness\" : {\r\n\t\t\t\tname : \"Legacy of Stygia (level 5)\",\r\n\t\t\t\tlimfeaname : \"Darkness\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Stygia (5)\",\r\n\t\t\t\t\tspells : [\"darkness\"],\r\n\t\t\t\t\tselection : [\"darkness\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}\r\nif (!RaceList[\"mammon tiefling\"]) {\r\n\tRaceList[\"mammon tiefling\"] = {\r\n\t\tregExpSearch : /^(?=.*mammon)(?=.*tiefling|planetouched).*$/i,\r\n\t\tname : \"Mammon tiefling\",\r\n\t\tsortname : \"Tiefling, Mammon\",\r\n\t\tsource : [[\"MToF\", 22], [\"UA:FO\", 2]],\r\n\t\tplural : \"Mammon tieflings\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\t\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [0, 0, 0, 1, 0, 2],\r\n\t\ttrait : \"Mammon Tiefling (+1 Intelligence, +2 Charisma)\\nLegacy of Minauros:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast the Tenser's Floating Disk spell once per short rest.\\n   At 5th level, I can also cast the Arcane Lock spell without a material component once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Legacy of Minauros (1)\",\r\n\t\t\tspells : [\"mage hand\"],\r\n\t\t\tselection : [\"mage hand\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"tenser's floating disk\" : {\r\n\t\t\t\tname : \"Legacy of Minauros (level 3)\",\r\n\t\t\t\tlimfeaname : \"Tenser's Floating Disk\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Minauros (3)\",\r\n\t\t\t\t\tspells : [\"tenser's floating disk\"],\r\n\t\t\t\t\tselection : [\"tenser's floating disk\"],\r\n\t\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"arcane lock\" : {\r\n\t\t\t\tname : \"Legacy of Minauros (level 5)\",\r\n\t\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Minauros (5)\",\r\n\t\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"arcane lock\" : {\r\n\t\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast this spell once per long rest without requiring material components.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n}\r\nif (!RaceList[\"zariel tiefling\"]) {\r\n\tRaceList[\"zariel tiefling\"] = {\r\n\t\tregExpSearch : /^(?=.*zariel)(?=.*tiefling|planetouched).*$/i,\r\n\t\tname : \"Zariel tiefling\",\r\n\t\tsortname : \"Tiefling, Zariel\",\r\n\t\tsource : [[\"MToF\", 23], [\"UA:FO\", 2]],\r\n\t\tplural : \"Zariel tieflings\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tdmgres : [\"Fire\"],\r\n\t\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\t\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\t\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\t\tscores : [1, 0, 0, 0, 0, 2],\r\n\t\ttrait : \"Zariel Tiefling (+1 Strength, +2 Charisma)\\n\\nLegacy of Avernus:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Searing Smite spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Branding Smite spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Legacy of Avernus (1)\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : 'atwill'\r\n\t\t}],\r\n\t\tfeatures : {\r\n\t\t\t\"searing smite\" : {\r\n\t\t\t\tname : \"Legacy of Avernus (level 3)\",\r\n\t\t\t\tlimfeaname : \"Searing Smite (2d6)\",\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Avernus (3)\",\r\n\t\t\t\t\tspells : [\"searing smite\"],\r\n\t\t\t\t\tselection : [\"searing smite\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"searing smite\" : {\r\n\t\t\t\t\t\tdescription : \"Next melee weapon hit +2d6 Fire dmg and target ignites; save to end spell or 1d6 Fire dmg\",\r\n\t\t\t\t\t\tchanges : \"Using Legacy of Avernus, I cast Searing Smite as if I'm using a 2nd-level spell slot.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"branding smite\" : {\r\n\t\t\t\tname : \"Legacy of Avernus (level 5)\",\r\n\t\t\t\tlimfeaname : \"Branding Smite\",\r\n\t\t\t\tminlevel : 5,\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Legacy of Avernus (5)\",\r\n\t\t\t\t\tspells : [\"branding smite\"],\r\n\t\t\t\t\tselection : [\"branding smite\"],\r\n\t\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n} // dupl_end\r\nRaceList[\"dispater tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*dispater)(?=.*tiefling|planetouched).*$/i,\r\n\tname : \"Dispater tiefling\",\r\n\tsortname : \"Tiefling, Dispater\",\r\n\tsource : [[\"UA:FO\", 1]],\r\n\tplural : \"Dispater tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 1, 0, 0, 0, 2],\r\n\ttrait : \"Dispater Tiefling (+1 Dexterity, +2 Charisma)\\n\\nLegacy of Dis:\\n   I know the Thaumaturgy cantrip.\\n   At 3rd level, I can cast the Disguise Self spell once per long rest.\\n   At 5th level, I can also cast the Invisibility spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Legacy of Dis (level 1)\",\r\n\t\tspells : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"disguise self\" : {\r\n\t\t\tname : \"Legacy of Dis (level 3)\",\r\n\t\t\tlimfeaname : \"Disguise Self\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Dis (level 3)\",\r\n\t\t\t\tspells : [\"disguise self\"],\r\n\t\t\t\tselection : [\"disguise self\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"invisibility\" : {\r\n\t\t\tname : \"Legacy of Dis (level 5)\",\r\n\t\t\tlimfeaname : \"Invisibility\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Dis (level 5)\",\r\n\t\t\t\tspells : [\"invisibility\"],\r\n\t\t\t\tselection : [\"invisibility\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"mephistopheles tiefling-ua\"] = {\r\n\tregExpSearch : /^(?=.*mephistopheles)(?=.*tiefling|planetouched).*$/i,\r\n\tname : \"Mephistopheles tiefling\",\r\n\tsortname : \"Tiefling, Mephistopheles\",\r\n\tsource : [[\"UA:FO\", 2]],\r\n\tplural : \"Mephistopheles tieflings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Infernal\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Fire\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" range from 5 to over 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 1, 0, 2],\r\n\ttrait : \"Mephistopheles Tiefling (+1 Intelligence, +2 Charisma)\\n\\nLegacy of Cania:\\n   I know the Mage Hand cantrip.\\n   At 3rd level, I can cast the Magic Missile spell once per long rest as a 2nd-level spell.\\n   At 5th level, I can also cast the Web spell once per long rest.\\n   Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Legacy of Cania (level 1)\",\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"magic missile\" : {\r\n\t\t\tname : \"Legacy of Cania (level 3)\",\r\n\t\t\tlimfeaname : \"Magic Missile (2 darts)\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Cania (level 3)\",\r\n\t\t\t\tspells : [\"magic missile\"],\r\n\t\t\t\tselection : [\"magic missile\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"magic missile\" : {\r\n\t\t\t\t\tdescription : \"4 darts hit creature(s) I can see for 1d4+1 Force dmg per dart\",\r\n\t\t\t\t\tchanges : \"Using Legacy of Cania, I cast Magic Missile as if I'm using a 2nd-level spell slot.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"web\" : {\r\n\t\t\tname : \"Legacy of Cania (level 5)\",\r\n\t\t\tlimfeaname : \"Web\",\r\n\t\t\tminlevel : 5,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Legacy of Cania (level 5)\",\r\n\t\t\t\tspells : [\"web\"],\r\n\t\t\t\tselection : [\"web\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20171113_Elf-Subraces.js",
    "content": "var iFileName = \"ua_20171113_Elf-Subraces.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Elf Subraces article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:ES\"] = {\r\n\tname : \"Unearthed Arcana: Elf Subraces\",\r\n\tabbreviation : \"UA:ES\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2017/dnd/downloads/UA-ElfSubraces.pdf\",\r\n\tdate : \"2017/11/13\"\r\n};\r\n\r\n// Adds 4 new subraces for the elf\r\nRaceList[\"avariel-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*avariel)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(winged?|wings?|flying|air)\\b))).*$/i,\r\n\tname : \"Avariel\",\r\n\tsortname : \"Elf, Winged (Avariel)\",\r\n\tsource : [[\"UA:ES\", 1]],\r\n\tplural : \"Avariel\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tfly : { spd : 30, enc : 0 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\", \"Auran\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from 5 to over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from 1,5 to over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Avariel (+2 Dexterity)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nFlight: I have a flying speed of 30 feet. To use this speed, I can't be wearing medium or heavy armor.\"\r\n};\r\nRaceList[\"grugach elf-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*grugach)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(wilds?|wilderness)\\b))).*$/i,\r\n\tname : \"Grugach\",\r\n\tsortname : \"Elf, Wild (Grugach)\",\r\n\tsource : [[\"UA:ES\", 1]],\r\n\tplural : \"Grugach\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Elvish\", \"Sylvan\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tweaponProfs : [false, false, [\"spear\", \"longbow\", \"shortbow\", \"net\"]],\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" stand around 5 feet tall (4'5\\\" + 2d6\\\")\",\r\n\tweight : \" weigh around 100 lb (75 + 2d6 \\xD7 1d6 lb)\",\r\n\theightMetric : \" range from well under to well over 1,5 metres tall (135 + 5d6 cm)\",\r\n\tweightMetric : \" weigh around 45 kg (35 + 5d6 \\xD7 2d6 / 10 kg)\",\r\n\tscores : [1, 2, 0, 0, 0, 0],\r\n\ttrait : \"Grugach (+1 Strength, +2 Dexterity)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\\nCantrip: I know one cantrip of my choice from the druid spell list. Wisdom is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 5,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Grugach Cantrip\",\r\n\t\t\"class\" : \"druid\",\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\teval : function () {\r\n\t\tRemoveLangTool('language', 'Common');\r\n\t}\r\n};\r\n// Edit the Wood Elf PHB entry, if available, to not match on Grugach\r\nif (RaceList[\"wood elf\"]) {\r\n\tRaceList[\"wood elf\"].regExpSearch = RaceList[\"wood elf\"].regExpSearch.replace(/grugach\\|?|wilds\\?\\|?/g, \"\");\r\n}\r\n// dupl_start\r\nif (!RaceList[\"sea elf\"]) {\r\n\tRaceList[\"sea elf\"] = {\r\n\t\tregExpSearch : /^(?!.*half)((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(seas?|oceans?|water)\\b)).*$/i,\r\n\t\tname : \"Sea elf\",\r\n\t\tsortname : \"Elf, Sea\",\r\n\t\tsource : [[\"MToF\", 62], [\"W\", 163], [\"UA:ES\", 1]],\r\n\t\tplural : \"Sea elves\",\r\n\t\tsize : 3,\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : 30, enc : 20 },\r\n\t\t\tswim : { spd : 30, enc : 20 }\r\n\t\t},\r\n\t\tweaponProfs : [false, false, [\"spear\", \"trident\", \"light crossbow\", \"net\"]],\r\n\t\tlanguageProfs : [\"Common\", \"Elvish\", \"Aquan\", \"Friend of the Sea\"],\r\n\t\tvision : [[\"Darkvision\", 60]],\r\n\t\tsavetxt : {\r\n\t\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\t\tadv_vs : [\"charmed\"]\r\n\t\t},\r\n\t\tskills : [\"Perception\"],\r\n\t\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\t\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\r\n\t\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\r\n\t\theightMetric : \" range from under 1,5 to almost 1,8 metres tall (140 + 5d8 cm)\",\r\n\t\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\t\tscores : [0, 2, 1, 0, 0, 0],\r\n\t\ttrait : \"Sea Elf (+2 Dexterity, +1 Constitution)\" + desc([\r\n\t\t\t\"Trance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. While meditating, I can dream after a fashion. After resting in this way, I gain the same benefit that a human does from 8 hours of sleep, thus needing only 4 hours for a long rest.\",\r\n\t\t\t\"Child of the Sea. I have 30 ft swimming speed and can breathe air and water.\",\r\n\t\t\t\"Friend of the Sea: Through sounds and gestures, I can communicate simple ideas with any beast that has an inborn swimming speed.\"\r\n\t\t]) // edited to be the same as in MToF instead of \"Small or smaller beasts that have an inborn swimming speed.\"\r\n\t};\r\n} // dupl_end\r\nRaceList[\"shadar-kai elf-ua\"] = {\r\n\tregExpSearch : /^(?!.*half)((?=.*shadar-kai)|((?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(shadows?|shadowfell)\\b))).*$/i,\r\n\tname : \"Shadar-kai\",\r\n\tsortname : \"Elf, Shadow (Shadar-kai)\",\r\n\tsource : [[\"UA:ES\", 2]],\r\n\tplural : \"Shadar-kai\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'8\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d8 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 52 kg (40 + 5d8 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Shadar-kai (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nBlessing of the Raven Queen: Once per short rest, as a bonus action, I can magically teleport up to 15 ft to an unoccupied space I can see, and, until the start of my next turn, I have resistance to all damage and appear translucent.\" + (typePF ? \"\\n\" : \" \") + \"Cantrip: I know one cantrip: Chill Touch, Spare the Dying, or Thaumaturgy. Charisma is my spellcasting ability for it.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shadar-kai Cantrip\",\r\n\t\tspells : [\"chill touch\", \"spare the dying\", \"thaumaturgy\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"blessing of the raven queen\" : {\r\n\t\t\tname : \"Blessing of the Raven Queen\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20180108_Three-Subclasses.js",
    "content": "var iFileName = \"ua_20180108_Three-Subclasses.js\";\nRequiredSheetVersion(\"13.1.14\", 15);\n// This file adds the content from the Unearthed Arcana: Three Subclasses article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TS\"] = {\n\tname : \"Unearthed Arcana: Three Subclasses\",\n\tabbreviation : \"UA:TS\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA-3Subclasses0108.pdf\",\n\tdate : \"2018/01/08\"\n};\n\n// Adds 3 subclasses: 1 for the Druid, 1 for the Fighter, and 1 for the Wizard\nAddSubClass(\"druid\", \"circle of spores-ua\", {\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*spores).*$/i,\n\tsubname : \"Circle of Spores\",\n\tsubnameShort: \"Spores\",\n\tsource : [[\"UA:TS\", 1]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Circle Spells\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"My link to the cycle of life and death gives me with the ability to cast certain spells\",\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\n\t\t\t\t\"In addition, I learn the Chill Touch cantrip\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Circle Spells\",\n\t\t\t\tspells : [\"chill touch\"],\n\t\t\t\tselection : [\"chill touch\"],\n\t\t\t\tfirstCol : 'atwill'\n\t\t\t}],\n\t\t\tspellcastingExtra : [\"gentle repose\", \"ray of enfeeblement\", \"animate dead\", \"gaseous form\", \"blight\", \"confusion\", \"cloudkill\", \"contagion\"]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Halo of Spores\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription: desc(\"As a reaction on my turn, I can do poison damage to one creature I can see within 10 ft\"),\n\t\t\tadditional : levels.map(function (n) { return n < 2 ? \"\" : (n < 6 ? 3 : n < 10 ? 6 : n < 14 ? 9 : 12) + \" poison damage\"; }),\n\t\t\taction : [[\"reaction\", \" (on my turn)\"]]\n\t\t},\n\t\t\"subclassfeature2.2\" : {\n\t\t\tname : \"Symbiotic Entity\",\n\t\t\tsource : [[\"UA:TS\", 1]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I expend a Wild Shape use to boost my spores instead of transforming\",\n\t\t\t\t\"I then gain 3 temporary HP per druid level and my Halo of Spores does double damage\",\n\t\t\t\t\"Also, my melee weapon attacks do +1d6 poison damage with every hit\",\n\t\t\t\t\"This lasts for 10 minutes or until I use Wild Shape again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 2 ? \"\" : Math.floor(n*3) + \" temp HP; Halo of Spores: \" + (n < 6 ? 6 : n < 10 ? 12 : n < 14 ? 18 : 24) + \" damage\";\n\t\t\t}),\n\t\t\taction : [[\"action\", \"\"]],\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (v.isMeleeWeapon && (/\\b(spore|symbiotic)\\b/i).test(v.WeaponTextName)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d6 poison damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"If I include the word 'Spore' or 'Symbiotic' in a melee weapon's name or description, it gets treated as a weapon that is infused by my Symbiotic Entity feature, adding +1d6 poison damage in the description.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Fungal Infestation\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I kill a humanoid with my Halo of Spores, it rises as a zombie at the end of my turn\",\n\t\t\t\t\"This zombie has 1 HP, only takes the Attack action, and can only make 1 attack with it\",\n\t\t\t\t\"It follows my mental commands and takes it turn after mine; It lasts for 1 hour\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Spreading Spores\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I create a 10-ft cube of fungal spores within 30 ft, lasting for 1 min\",\n\t\t\t\t\"Any creature starting its turn in the cube takes the damage of my Halo of Spores\",\n\t\t\t\t\"The cube ends if I use this again; While the cube persists, I can't use my Halo of Spores\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Fungal Body\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 14,\n\t\t\tdescription: desc(\"I'm immune to critical hits and to being blinded, deafened, frightened, and poisoned\"),\n\t\t\tsavetxt : { immune : [\"blinded\", \"deafened\", \"frightened\", \"poisoned\", \"critical hits\"] }\n\t\t}\n\t}\n});\nvar UATS_fighterBruteSubclassUA = AddSubClass(\"fighter\", \"brute-ua\", {\n\tregExpSearch : /brute/i,\n\tsubname : \"Brute\",\n\tsource : [[\"UA:TS\", 2]],\n\tfullname : \"Brute\",\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Brute Force\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 3,\n\t\t\tdescription: desc(\"I do additional damage with weapons that I'm proficient with\"),\n\t\t\tadditional : levels.map(function (n) { \n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 10 ? 4 : n < 16 ? 6 : n < 20 ? 8 : 10) + \" weapon damage\";\n\t\t\t}),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\tif (classes.known.fighter && classes.known.fighter.level > 2 && !v.isSpell && !v.isNaturalWeapon && fields.Proficiency) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1d' + (classes.known.fighter.level < 10 ? 4 : classes.known.fighter.level < 16 ? 6 : classes.known.fighter.level < 20 ? 8 : 10) + ' damage';\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\t\"I do +1d4 damage with weapons that I'm proficient with. This increases to 1d6 at 10th level, 1d8 at 16th level, and 1d10 at 20th level.\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature7\" : {\n\t\t\tname : \"Brutish Durability\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 7,\n\t\t\tdescription : desc([\n\t\t\t\t\"I add +1d6 to all my saving throws, including death saves\",\n\t\t\t\t\"If the total of a death save is 20 or more, it counts as rolling a 20\"\n\t\t\t]),\n\t\t\tsavetxt : { text : [\"Add 1d6 to all saves\"] }\n\t\t},\n\t\t\"subclassfeature15\" : {\n\t\t\tname : \"Devastating Critical\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 15,\n\t\t\tdescription: desc(\"Whenever I score a critical hit with a weapon, I add my fighter level to the damage\"),\n\t\t\tadditional : levels.map(function (n) { return n < 15 ? \"\" : \"+\" + n + \" damage on crit\"; })\n\t\t},\n\t\t\"subclassfeature18\" : {\n\t\t\tname : \"Survivor\",\n\t\t\tsource : [[\"UA:TS\", 2]],\n\t\t\tminlevel : 18,\n\t\t\tdescription : desc([\n\t\t\t\t\"If I have less than half my max HP at the start of my turn, I heal myself\",\n\t\t\t\t\"I regain HP equal to 5 + Constitution modifier (min 1); This doesn't work if I'm at 0 HP\"\n\t\t\t])\n\t\t}\n\t}\n});\nRunFunctionAtEnd(function () {\n\tvar FSfea = newObj(ClassList.fighter.features[\"fighting style\"]);\n\tFSfea.name = \"Additional Fighting Style\";\n\tFSfea.source = [\"UA:TS\", 2];\n\tFSfea.minlevel = 10;\n\tFSfea.extrachoices = \"\";\n\tFSfea.description = desc('Choose an Additional Fighting Style using the \"Choose Feature\" button above');\n\tClassSubList[UATS_fighterBruteSubclassUA].features.subclassfeature10 = FSfea;\n});\nAddSubClass(\"wizard\", \"school of invention-ua\", {\n\tregExpSearch : /^(?=.*wizard)(?=.*invent(ion|or)).*$/i,\n\tsubname : \"School of Invention\",\n\tsubnameShort: \"Invention\",\n\tfullname : \"Wizard (Inventor)\",\n\tsource : [[\"UA:TS\", 2]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Tools of the Inventor\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription: desc(\"I gain proficiency with light armor and two tools of my choice\"),\n\t\t\ttoolProfs : [[\"Any one tool\", 2]],\n\t\t\tarmorProfs : [true, false, false, false]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Arcanomechanical Armor\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"After a long rest, I can transform a studded leather armor into arcanomechanical armor\",\n\t\t\t\t\"This is a magic light armor that gives AC 12 + Dex mod and force resistance, if attuned\",\n\t\t\t\t\"Only I can attune to it; Creating a new one removes the magic from the previous\"\n\t\t\t]),\n\t\t\tdmgres : [\"Force\"],\n\t\t\tarmorOptions : [{\n\t\t\t\tregExpSearch : /arcanomechanical/i,\n\t\t\t\tname : \"Arcanomechanical\",\n\t\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\t\ttype : \"light\",\n\t\t\t\tac : 12,\n\t\t\t\tweight : 8,\n\t\t\t\tinvName : \"Arcanomechanical armor\",\n\t\t\t\tselectNow : true\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature2.2\" : {\n\t\t\tname : \"Reckless Casting\",\n\t\t\tsource : [[\"UA:TS\", 3]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can attempt to cast a random spell or cantrip by rolling a d10 on a table\",\n\t\t\t\t\"On a roll of 10, I roll again twice on that table and cast both results\",\n\t\t\t\t\"However, if I then roll 10 on either dice, the whole casting fails and the action is wasted\",\n\t\t\t\t\"If I choose cantrip, I roll on the table once and cast the result\",\n\t\t\t\t\"If I choose a spell, I expend a spell slot and roll twice on the table for the slot's level\",\n\t\t\t\t\"I can then choose which of the results I use; Use 5th-level table for spell slots over level 5\"\n\t\t\t]),\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Reckless Casting Tables\",\n\t\t\t\tnote : \"\\nd10\\tCantrip\\t\\td10\\tCantrip\" + desc([\n\t\t\t\t\t\" 1\\tAcid Splash\\t\\t    6\\tRay of Frost\",\n\t\t\t\t\t\" 2\\tChill Touch\\t\\t    7\\tShocking Grasp\",\n\t\t\t\t\t\" 3\\tFire Bolt\\t\\t    8\\tSacred Flame\",\n\t\t\t\t\t\" 4\\tLight\\t\\t    9\\tThorn Whip\",\n\t\t\t\t\t\" 5\\tPoison Spray\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t1st-Level Spell\\td10\\t1st-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBurning Hands\\t    6\\tFog Cloud\",\n\t\t\t\t\t\" 2\\tChromatic Orb\\t    7\\tJump\",\n\t\t\t\t\t\" 3\\tColor Spray\\t\\t    8\\tMagic Missile\",\n\t\t\t\t\t\" 4\\tFaerie Fire\\t\\t    9\\tThunderwave\",\n\t\t\t\t\t\" 5\\tFalse Life\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t2nd-Level Spell\\td10\\t2nd-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlur\\t\\t    6\\tLevitate\",\n\t\t\t\t\t\" 2\\tDarkness\\t\\t    7\\tMelf's Acid Arrow\",\n\t\t\t\t\t\" 3\\tEnlarge/Reduce\\t    8\\tScorching Ray\",\n\t\t\t\t\t\" 4\\tGust of Wind\\t    9\\tShatter\",\n\t\t\t\t\t\" 5\\tInvisibility\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t3rd-Level Spell\\td10\\t3rd-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlink\\t\\t    6\\tGaseous Form\",\n\t\t\t\t\t\" 2\\tFear\\t\\t    7\\tLightning Bolt\",\n\t\t\t\t\t\" 3\\tFeign Death \\t    8\\tSleet Storm\",\n\t\t\t\t\t\" 4\\tFireball\\t\\t    9\\tStinking Cloud\",\n\t\t\t\t\t\" 5\\tFly\\t\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t4th-Level Spell\\td10\\t4th-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tBlight\\t\\t    6\\tIce Storm\",\n\t\t\t\t\t\" 2\\tConfusion\\t\\t    7\\tPhantasmal Killer\",\n\t\t\t\t\t\" 3\\tEvard's Black Tentacles\\t    8\\tStoneskin\",\n\t\t\t\t\t\" 4\\tFire Shield\\t\\t    9\\tWall of Fire\",\n\t\t\t\t\t\" 5\\tGreater Invisibility\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t]) + \"\\n\\nd10\\t5th-Level Spell\\td10\\t5th-Level Spell\" + desc([\n\t\t\t\t\t\" 1\\tCloudkill\\t\\t    6\\tInsect Plague\",\n\t\t\t\t\t\" 2\\tCone of Cold\\t    7\\tMass Cure Wounds\",\n\t\t\t\t\t\" 3\\tDestructive Wave\\t    8\\tWall of Force\",\n\t\t\t\t\t\" 4\\tFlame Strike\\t    9\\tWall of Stone\",\n\t\t\t\t\t\" 5\\tHold Monster\\t  10\\tRoll twice; Another 10, all is wasted\"\n\t\t\t\t])\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Alchemical Casting\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"I can manipulate spells cast while wearing and attuned to my Arcanomechanical Armor\",\n\t\t\t\t\"By expending an additional 1st or 2nd-level spell slot, I do the following:\",\n\t\t\t\t\"\\u2022 1st: I can substitute acid, cold, fire, lightning, or thunder damage for another type\",\n\t\t\t\t\"\\u2022 2nd: I increase the spells damage, if any, by 2d10 force damage against one target\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Prodigious Inspiration\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 10,\n\t\t\tdescription: desc(\"As a bonus action, I can replace a prepared spell with another from my spellbook\"),\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Controlled Chaos\",\n\t\t\tsource : [[\"UA:TS\", 4]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I expend a spell slot to cast a spell using Reckless Casting, it is more powerful\",\n\t\t\t\t\"I can roll on the table that is one level higher than the spell slot expended\"\n\t\t\t])\n\t\t}\n\t}\n});\n"
  },
  {
    "path": "WotC material/ua_20180409_Order-Domain.js",
    "content": "var iFileName = \"ua_20180409_Order-Domain.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Order Domain article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:OD\"] = {\r\n\tname : \"Unearthed Arcana: Order Domain\",\r\n\tabbreviation : \"UA:OD\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_OrderDomain.pdf\",\r\n\tdate : \"2018/04/09\"\r\n};\r\n\r\n// New Subclass for Cleric: Order Domain\r\nAddSubClass(\"cleric\", \"order domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*order).*$/i,\r\n\tsubname : \"Order Domain\",\r\n\tsource : [[\"UA:OD\", 1]],\r\n\tspellcastingExtra : [\"command\", \"heroism\", \"enhance ability\", \"hold person\", \"mass healing word\", \"slow\", \"compulsion\", \"locate creature\", \"commune\", \"dominate person\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Voice of Authority\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I use a spell slot to cast a spell on an ally, it can use its reaction to attack\",\r\n\t\t\t\t\"The ally makes one weapon attack against a target of my choice that I can see\",\r\n\t\t\t\t\"If the spell targets multiple allies, I can choose which one can make the attack\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Order's Demand\",\r\n\t\t\tsource : [[\"UA:OD\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, all chosen targets in 30 ft that can see or hear me must make a Wis save\",\r\n\t\t\t\t\"If failed, it is charmed by me until the end of my next turn or it takes any damage\",\r\n\t\t\t\t\"Also, I can choose to have any of the charmed targets to fall prone on a failed save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Order's Dominion\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast an enchantment spell using a spell slot, I regain one expended spell slot\",\r\n\t\t\t\t\"The regained slot must be lower level than the one used, and no higher than 5th-level\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 force damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 force damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra force damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Order's Wrath\",\r\n\t\t\tsource : [[\"UA:OD\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I deal my Divine Strike damage to a creature, it takes extra damage from my allies\",\r\n\t\t\t\t\"The first time each turn that it is hit with a weapon attack, it takes 2d8 force damage\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20180514_Centaur-and-Minotaur.js",
    "content": "var iFileName = \"ua_20180514_Centaur-and-Minotaur.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Centaur and Minotaur article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CnM\"] = {\r\n\tname : \"Unearthed Arcana: Centaur and Minotaur\",\r\n\tabbreviation : \"UA:CnM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA-Centaur.pdf\",\r\n\tdate : \"2018/05/14\"\r\n};\r\n\r\n// Add the Centaur race\r\nRaceList[\"centaur-ua\"] = {\r\n\tregExpSearch : /centaur/i,\r\n\tname : \"Centaur\",\r\n\tsortname : \"Centaur\",\r\n\tsource : [[\"UA:CnM\", 1]],\r\n\tplural : \"Centaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Sylvan\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\b(hoofs?|hooves)\\b/i,\r\n\t\tname : \"Hooves\",\r\n\t\tsource : [[\"UA:CnM\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\trange : \"Melee\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tskills : [\"Survival\"],\r\n\tage : \" reach adulthood in their late teens and live around 100 years\",\r\n\theight : \" stand between 7 and 8 feet tall (front hooves to their crowns) and 6 to 8 feet long (from their chest to the back of their rumps)\", // from 3.5e Races of Faerun\r\n\tweight : \" weigh anywhere from 950 to 1200 lb\", // from 3.5e Races of Faerun\r\n\theightMetric : \" stand between 2,1 and 2,4 metres tall (front hooves to their crowns) and 1,8 to 2,4 metres long (from their chests to the back of their rumps)\",\r\n\tweightMetric : \" weigh anywhere from 430 to 550 kg\",\r\n\tscores : [2, 0, 0, 0, 1, 0],\r\n\ttrait : \"Centaur (+2 Strength +1 Wisdom)\" + desc([\r\n\t\t\"Hooves: I can use my hooves in melee (1d6 bludgeoning damage).\",\r\n\t\t\"Charge: Once per short rest, if I move 20 ft straight toward a creature and then hit it with a melee weapon attack on the same turn, I can roll the weapon's damage dice twice.\",\r\n\t\t\"Equine Build: I count as one size larger for my carrying capacity. While climbing, 1 ft of movement costs me 5 ft. A medium or smaller creature can ride me as a mount.\",\r\n\t\t\"Hybrid Nature: I am affected by effects that work on either humanoids or monstrosities.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"charge\" : {\r\n\t\t\tname : \"Charge\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t}\r\n\t},\r\n\tcarryingCapacity : 2\r\n};\r\n\r\n// Add the Minotaur race\r\nRaceList[\"minotaur-uacnm\"] = {\r\n\tregExpSearch : /minotaur/i,\r\n\tname : \"Minotaur\",\r\n\tsortname : \"Minotaur\",\r\n\tsource : [[\"UA:CnM\", 2]],\r\n\tplural : \"Minotaurs\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Minotaur\"],\r\n\tweaponOptions : [{\r\n\t\tregExpSearch : /\\bhorns?\\b/i,\r\n\t\tname : \"Horns\",\r\n\t\tsource : [[\"UA:CnM\", 2]],\r\n\t\tability : 1,\r\n\t\ttype : \"Natural\",\r\n\t\tdamage : [1, 6, \"piercing\"],\r\n\t\trange : \"Melee\",\r\n\t\tdescription : \"One horns attack as a bonus action if taking the Dash action\",\r\n\t\tabilitytodamage : true,\r\n\t\tselectNow : true\r\n\t}],\r\n\tskills : [\"Intimidation\"],\r\n\tage : \" reach adulthood around age 17 and live up to 150 years\",\r\n\theight : \" are well over 6 feet tall\",\r\n\tweight : \" weigh around 300 lb\",\r\n\theightMetric : \" are well over 1,8 metres tall\",\r\n\tweightMetric : \" weigh around 135 kg\",\r\n\tscores : [2, 0, 1, 0, 0, 0],\r\n\tabilitySave : 1,\r\n\ttrait : \"Minotaur (+2 Strength +1 Constitution)\" + desc([\r\n\t\t\"Horns: I have horns that I can use in melee (1d6 piercing damage).\",\r\n\t\t\"Goring Rush: When taking a Dash action, I can make a horns attack as a bonus action.\",\r\n\t\t\"Hammering Horns: As a reaction after I hit a melee attack during my Attack action, I can shove that target with my horns, if it is no more than one size larger than me. It must make a Str save (DC 8 + Str mod + Prof Bonus) or be pushed up to 5 ft away from me.\",\r\n\t\t\"Hybrid Nature: I am affected by effects that work on either humanoids or monstrosities.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"goring rush\" : {\r\n\t\t\tname : \"Goring Rush\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"bonus action\", \" (with Dash)\"]]\r\n\t\t},\r\n\t\t\"hammering horns\" : {\r\n\t\t\tname : \"Hammering Horns\",\r\n\t\t\tminlevel : 1,\r\n\t\t\taction : [[\"reaction\", \" (after hit)\"]]\r\n\t\t}\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20180611_Giant-Soul-Sorcerer.js",
    "content": "var iFileName = \"ua_20180611_Giant-Soul-Sorcerer.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Giant Soul Sorcerer article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:GSS\"] = {\r\n\tname : \"Unearthed Arcana: Giant Soul Sorcerer\",\r\n\tabbreviation : \"UA:GSS\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_GiantSoul.pdf\",\r\n\tdate : \"2018/06/11\"\r\n};\r\n\r\nAddSubClass(\"sorcerer\", \"giant soul-ua\", {\r\n\tregExpSearch : /^(?=.*giant)(?=.*soul)(?=.*sorcerer).*$/i,\r\n\tsubname : \"Giant Soul\",\r\n\tsource : [[\"UA:GSS\", 1]],\r\n\tfullname : \"Giant Soul Sorcerer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Jotun Resilience\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My hit point maximum increases by an amount equal to my sorcerer level\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD) {\r\n\t\t\t\t\tif (classes.known.sorcerer) {\r\n\t\t\t\t\t\treturn [classes.known.sorcerer.level, \"Jotun Resilience (sorcerer level)\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Mark of Ordning\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a giant heritage using the \"Choose Feature\" button above',\r\n\t\t\t\t\"I learn spells based on my giant heritage, which I add to my known spells\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Cloud Giant\", \"Fire Giant\", \"Frost Giant\", \"Hill Giant\", \"Stone Giant\", \"Storm Giant\"],\r\n\t\t\t\"cloud giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Cloud Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Minor Illusion, Fog Cloud and Invisibility to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"minor illusion\", \"fog cloud\", \"invisibility\"],\r\n\t\t\t\t\tselection : [\"minor illusion\", \"fog cloud\", \"invisibility\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"fire giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Fire Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Fire Bolt, Burning Hands, and Flaming Sphere to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"fire bolt\", \"burning hands\", \"flaming sphere\"],\r\n\t\t\t\t\tselection : [\"fire bolt\", \"burning hands\", \"flaming sphere\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"frost giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Frost Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Ray of Frost, Armor of Agathys, and Hold Person to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"ray of frost\", \"armor of agathys\", \"hold person\"],\r\n\t\t\t\t\tselection : [\"ray of frost\", \"armor of agathys\", \"hold person\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"hill giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Hill Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Shillelagh, Heroism, and Enlarge/Reduce to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"shillelagh\", \"heroism\", \"enlarge/reduce\"],\r\n\t\t\t\t\tselection : [\"shillelagh\", \"heroism\", \"enlarge/reduce\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"stone giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Stone Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Resistance, Entangle, and Spike Growth to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"resistance\", \"entangle\", \"spike growth\"],\r\n\t\t\t\t\tselection : [\"resistance\", \"entangle\", \"spike growth\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\t\"storm giant\" : {\r\n\t\t\t\tname : \"Mark of Ordning: Storm Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Thunderwave, Shocking Grasp, and Gust of Wind to my known sorcerer spells\",\r\n\t\t\t\t\t\"These do not count against the number of cantrips/spells I can know\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mark of Ordning\",\r\n\t\t\t\t\tspells : [\"thunderwave\", \"shocking grasp\", \"gust of wind\"],\r\n\t\t\t\t\tselection : [\"thunderwave\", \"shocking grasp\", \"gust of wind\"],\r\n\t\t\t\t\ttimes : [2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\tchoiceDependencies : [{ feature : \"subclassfeature6\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Soul of Lost Ostoria\",\r\n\t\t\tsource : [[\"UA:GSS\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc('Use the \"Choose Feature\" button above to select the giant heritage'),\r\n\t\t\tchoices : [\"Cloud Giant\", \"Fire Giant\", \"Frost Giant\", \"Hill Giant\", \"Stone Giant\", \"Storm Giant\"],\r\n\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\"cloud giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Cloud Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action after casting any of my Mark of Ordning spells, I can teleport\",\r\n\t\t\t\t\t\"I teleport to an unoccupied space that I can see up to my Con mod + 10 ft away\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"fire giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Fire Giant\",\r\n\t\t\t\tdescription: desc(\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells\"),\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkCalc : [\r\n\t\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\t\tif (v.baseWeaponName == 'fire bolt') output.extraDmg += Math.max(What('Con Mod'), 1);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells: Fire Bolt, Burning Hands, and Flaming Sphere\"\r\n\t\t\t\t\t],\r\n\t\t\t\t\tspellAdd : [\r\n\t\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\t\tif (spName == \"sorcerer\" && (/^(fire bolt|burning hands|flaming sphere)$/i).test(spellKey)) {\r\n\t\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(/d(6|10)/, \"d$1+\" + Math.max(1, What(\"Con Mod\")));\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"I add my Constitution modifier (min 1) to the damage of my Mark of Ordning spells: Fire Bolt, Burning Hands, and Flaming Sphere\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"frost giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Frost Giant\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I gain temporary HP\",\r\n\t\t\t\t\t\"I gain my Con mod in temporary HP (min 1) and its added to that of the spell (if any)\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"hill giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Hill Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I can magically push others\",\r\n\t\t\t\t\t\"I can select up to two creatures within 5 ft of me that each have to make a Str save\",\r\n\t\t\t\t\t\"If failed, it is pushed my Con mod (min 1) + 5 ft away from me; It can choose to fail\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"stone giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Stone Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I gain a bonus to AC\",\r\n\t\t\t\t\t\"My AC increases with my Constitution modifier (min +1) until the end of my next turn\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"storm giant\" : {\r\n\t\t\t\tname : \"Soul of Lost Ostoria: Storm Giant\",\r\n\t\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Immediately after casting any of my Mark of Ordning spells, I shoot lightning\",\r\n\t\t\t\t\t\"Up to 3 targets in 30 ft that I can see take my Con mod (min 1) in lightning damage\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Rage of Fallen Ostoria\",\r\n\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I start casting a sorcerer spell using a spell slot on my turn, I can grow in size\",\r\n\t\t\t\t\"It lasts for 1 min or until I die or am incapacitated; I can activate it only once per turn\",\r\n\t\t\t\t\"While it lasts, I enjoy the following benefits (which are cumulative, except the damage):\",\r\n\t\t\t\t\"\\u2022 I increase size by one category (from Medium to Large, for example)\",\r\n\t\t\t\t\"\\u2022 My current HP and maximum HP increase by a number equal to my sorcerer level\",\r\n\t\t\t\t\"\\u2022 My reach and walking speed both increase by 5 ft\",\r\n\t\t\t\t\"\\u2022 I gain advantage on Strength checks and Strength saving throws\",\r\n\t\t\t\t\"\\u2022 I add my Constitution modifier to the damage of my melee weapon attacks (min +1)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : \"+\" + n + \" HP\";\r\n\t\t\t}),\r\n\t\t\tusages : levels.map(function(n) {\r\n\t\t\t\treturn n < 14 ? \"\" : n < 18 ? 1 : 2;\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Blessing of the All Father\",\r\n\t\t\tsource : [[\"UA:GSS\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"I add +2 to my Constitution and its maximums increases to 22\"),\r\n\t\t\tscores : [0, 0, 2, 0, 0, 0],\r\n\t\t\tscoresMaximum : [0, 0, 22, 0, 0, 0]\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20180723_Races-of-Eberron.js",
    "content": "var iFileName = \"ua_20180723_Races-of-Eberron.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the content from the Unearthed Arcana: Races of Eberron article to MPMB's Character Record Sheet\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\n\n// Define the sources\nSourceList[\"UA:RoE\"] = {\n\tname : \"Unearthed Arcana: Races of Eberron\",\n\tabbreviation : \"UA:RoE\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Eberron\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/723UA_EberronRaces7232018.pdf\",\n\tdate : \"2018/07/23\"\n};\n\n// The changeling\nRaceList[\"changeling-ua2\"] = {\n\tregExpSearch : /changeling/i,\n\tname : \"Changeling\",\n\tsource : [[\"WGtE\", 61], [\"UA:RoE\", 2]],\n\tplural : \"Changelings\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Choose two from Deception, Intimidation, Insight, and Persuasion\",\n\tlanguageProfs : [\"Common\", 2],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" reach adulthood in their early teens and live around 80 years\",\n\theight : \" stand between 5 and 6 feet tall (5'1\\\" + 2d4\\\")\",\n\tweight : \" weigh around 140 lb (115 + 2d4 \\xD7 2d4 lb)\",\n\theightMetric : \" stand between 1,5 to over 1,8 metres tall (155 + 5d4 cm)\",\n\tweightMetric : \" weigh around 65 kg (52 + 5d4 \\xD7 4d4 / 10 kg)\",\n\tscorestxt : \"+2 Charisma, and +1 Dexterity or +1 Intelligence\",\n\tscores : [0, 0, 0, 0, 0, 2],\n\ttrait : \"Changeling (+2 Charisma, and +1 Dexterity or +1 Intelligence)\\nChange Appearance: As an action, I can polymorph to or from a humanoid form of my size I have seen, not changing my equipment. I revert back if I die and have adv. on Deception.\\nUnsettling Visage: As a reaction once per short rest when I'm attacked by a seen attacker, I can impose disadv. Doing this reveals my shapeshifting nature to all within 30 ft.\\nDivergent Persona: I have proficiency with one tool, and an alternate persona. While in the alternate form, my proficiency bonus with that tool is doubled.\",\n\taction : [[\"action\", \"Change Appearance\"]],\n\tfeatures : {\n\t\t\"unsettling visage\" : {\n\t\t\tname : \"Unsettling Visage\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"reaction\", \"\"]]\n\t\t}\n\t}\n};\n\n// The kalashtar\nRaceList[\"kalashtar-ua\"] = { //this code includes contributions by /u/SoilentBrad\n\tregExpSearch : /kalashtar/i,\n\tname : \"Kalashtar\",\n\tsource : [[\"WGtE\", 63], [\"UA:RoE\", 4]],\n\tplural : \"Kalashtar\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Advantage with either Insight, Intimidation, Performance, or Persuasion\",\n\tlanguageProfs : [\"Common\", \"Quori\", 1],\n\tsavetxt : { immune : [\"effects that require me to dream\"] },\n\tdmgres : [\"Psychic\"],\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\n\theight : \" range from 5 and a half to well over 6 feet tall (5'4\\\" + 2d6\\\")\",\n\tweight : \" weigh around 145 lb (110 + 2d6 \\xD7 1d6 lb)\",\n\theightMetric : \" range from 1,7 to 1,9 metres tall (160 + 5d6 cm)\",\n\tweightMetric : \" weigh around 65 kg (50 + 5d6 \\xD7 2d6 / 10 kg)\",\n\tscorestxt : \"+1 Wisdom, +1 Charisma, and +1 to one other ability score of my choice\",\n\tscores : [0, 0, 0, 0, 1, 1],\n\ttrait : \"Kalashtar (+1 Wisdom, +1 Charisma, and +1 to one other\" + (typePF ? \"\" : \" ability score of my choice\") + \")\\nDual Mind: As a reaction after I roll a Wis\" + (typePF ? \" save, I can gain adv.\" : \"dom saving throw, I can gain advantage\") + \" on it.\\nMind Link: I can speak telepathically to any creature I can see within 60 ft, as long as it can speak at least one language. As a bonus action, I can give that creature the ability to speak telepathically back to me until the start of my next turn.\\nPsychic Glamour: I have adv. on Insight, Intimidation, Performance, or Persuasion checks.\\nSevered from Dreams: I don't dream and thus immune to spells that affect dreams.\",\n\taction : [['bonus action', 'Mind Link'], ['reaction', 'Dual Mind']]\n};\n\n// The four subraces of the shifter\nRaceList[\"beasthide shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*beast)(?=.*hide).*$/i,\n\tname : \"Beasthide shifter\",\n\tsortname : \"Shifter, Beasthide\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Beasthide shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Athletics\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 2, 0, 0, 0],\n\ttrait : \"Beasthide Shifter: (+1 Dexterity, +2 Constitution)\\n\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to 1d6 + my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I have a +1 bonus to AC\",\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"longtooth shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*long)(?=.*(tooth|teeth)).*$/i,\n\tname : \"Longtooth shifter\",\n\tsortname : \"Shifter, Longtooth\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Longtooth shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*fangs?)(?=.*long)(?=.*(tooth|teeth)).*$/i,\n\t\tname : \"Longtooth Fangs\",\n\t\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\t\tdamage : [1, 6, \"piercing\"],\n\t\tdescription : \"Only while shifted; One attack as bonus action\",\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Intimidation\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [2, 1, 0, 0, 0, 0],\n\ttrait : \"Longtooth Shifter: (+2 Strength, +1 Dexterity)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Constitution modifier (minimum 1 temporary hit point).\\nWhile transformed like this, I use my elongated fangs to make unarmed strikes, dealing 1d6 piercing damage. As a bonus action, I can maken one attack with my fangs.\",\n\taction : ['bonus action', 'Attack with Longtooth Fangs'],\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"swiftstride shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*swift)(?=.*stride).*$/i,\n\tname : \"Swiftstride shifter\",\n\tsortname : \"Shifter, Swiftstride\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Swiftstride shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Acrobatics\", \"Perception\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 2, 0, 0, 0, 1],\n\ttrait : \"Swiftstride Shifter: (+2 Dexterity, +1 Charisma)\\nShifting: As a bonus action once per short rest, I can assume a more bestial appearance.\\nThis transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nWhile transformed like this, my walking speed increases with 5 ft.\\nAs a reaction when an enemy ends its turn within 5 ft of me while I'm shifted, I can move 10 ft without provoking opportunity attacks.\",\n\taction : ['reaction', 'Stride (while shifted)'],\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t}\n\t}\n};\nRaceList[\"wildhunt shifter-ua\"] = {\n\tregExpSearch : /^(?=.*shifter)(?=.*wild)(?=.*hunt).*$/i,\n\tname : \"Wildhunt shifter\",\n\tsortname : \"Shifter, Wildhunt\",\n\tsource : [[\"WGtE\", 66], [\"UA:RoE\", 6]],\n\tplural : \"Wildhunt shifters\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tvision : [[\"Darkvision\", 60]],\n\tskills : [\"Perception\", \"Survival\"],\n\tage : \" reach young adulthood at age 10 and rarely live over 70\",\n\theight : \" range from under 5 to almost 6 feet tall (4'6\\\" + 2d8\\\")\",\n\tweight : \" weigh around 135 lb (90 + 2d8 \\xD7 2d4 lb)\",\n\theightMetric : \" range from under 1,5 to 1,8 metres tall (4'6\\\" + 5d8 cm)\",\n\tweightMetric : \" weigh around 65 kg (40 + 5d8 \\xD7 4d4 / 10 kg)\",\n\tscores : [0, 1, 0, 0, 2, 0],\n\ttrait : \"Wildhunt Shifter: (+1 Dexterity, +2 Wisdom)\\nShifting: As a bonus action once per short rest, I can transform and get adv. on Wis checks.\" + (typePF ? \" \" : \"\\n\") + \"This transformation lasts for 1 minute, until I die, or until I revert back as a bonus action.\\nWhen I shift, I gain temporary HP equal to my level + my Con\" + (typePF ? \"stitution modifier (minimum 1 temporary hit point\" : \" mod (minimum 1 temp HP\") + \").\\nMark the Scent: As a bonus action once per short rest, I can mark a creature that I can see within 10 ft. Until the end of my next long rest, my proficiency bonus is doubled for checks to find this target, and I always know its location if it is within 60 ft of me.\",\n\tfeatures : {\n\t\t\"shift\" : {\n\t\t\tname : \"Shift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]]\n\t\t},\n\t\t\"mark the scent\" : {\n\t\t\tname : \"Mark the Scent\",\n\t\t\tminlevel : 1,\n\t\t\tusages : 1,\n\t\t\trecovery : \"short rest\",\n\t\t\taction : [[\"bonus action\", \"\"]]\n\t\t}\n\t}\n};\n\n// The three subraces of the warforged\nRaceList[\"envoy warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*envoy).*$/i,\n\tname : \"Envoy warforged\",\n\tsortname : \"Warforged, Envoy\",\n\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\tplural : \"Envoy warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tskillstxt : \"Choose any one skill, any one tool, and expertise with any one tool I'm proficient with\",\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscorestxt : \"+1 Constitution and +1 to two other ability scores of my choice\",\n\tscores : [0, 0, 1, 0, 0, 0],\n\ttrait : \"Envoy Warforged (+1 Constitution and +1 to two other abilit\" + (typePF ? \"ies\" : \"y scores of my choice\") + \")\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nIntegrated Tool: I have expertise with one tool and it is integrated into my body.\",\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\nRaceList[\"juggernaut warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*juggernaut).*$/i,\n\tname : \"Juggernaut warforged\",\n\tsortname : \"Warforged, Juggernaut\",\n\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\tplural : \"Juggernaut warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*warforged)(?=.*iron)(?=.*fists?).*$/i,\n\t\tname : \"Warforged Iron Fists\",\n\t\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\t\tdamage : [1, 4, \"bludgeoning\"],\n\t\tselectNow : true\n\t}],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscores : [2, 0, 1, 0, 0, 0],\n\ttrait : \"Juggernaut Warforged (+2 Strength, +1 Constitution)\" + (typePF ? \"\" : \" Iron Fists: unarmed strikes do 1d4.\") + \"\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nPowerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\" + (typePF ? \" Iron Fists: My unarmed strikes do 1d4 damage.\" : \"\"),\n\tcarryingCapacity : 2,\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\nRaceList[\"skirmisher warforged-ua\"] = {\n\tregExpSearch : /^(?=.*warforged)(?=.*skirmisher).*$/i,\n\tname : \"Skirmisher warforged\",\n\tsortname : \"Warforged, Skirmisher\",\n\tsource : [[\"WGtE\", 70], [\"UA:RoE\", 9]],\n\tplural : \"Skirmisher warforged\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\timmune : [\"disease\", \"exhaustion from lack of rest\"],\n\t\tadv_vs : [\"poison\"]\n\t},\n\tdmgres : [\"Poison\"],\n\tage : \" are created as adults and will only start to show signs of physical deterioration after 150 years, but have no further aging effects\",\n\theight : \" stand between 6 and 7 feet tall (5'10\\\" + 2d6\\\")\",\n\tweight : \" weigh around 300 lb (270 + 2d6 \\xD7 4 lb)\",\n\theightMetric : \" stand between 1,8 and 2,1 metres tall (178 + 5d6 cm)\",\n\tweightMetric : \" weigh around 135 kg (125 + 5d6 \\xD7 8 / 10 kg)\",\n\tscores : [0, 2, 1, 0, 0, 0],\n\ttrait : \"Skirmisher Warforged (+2 Dexterity, +1 Constitution)\\nWarforged Resilience: I do not need to sleep, eat, drink, or breathe.\\nSentry's Rest: To benefit from a long rest, I need to enter an inactive state for 6 hours, during which I am not rendered unconscious and can see and hear as normal.\\nIntegrated Protection: My AC depends on armor proficiency: none (11+Dex), light (11+Dex+Prof B.), medium (13+Dex+Prof B.), heavy (16+Prof B.; Stealth disadv.). I can use a shield.\\nLight Step: If I travel alone for an hour or more, I can move stealthily at a normal pace.\",\n\teval : function() {\n\t\tvar lightProf = tDoc.getField('Proficiency Armor Light').isBoxChecked(0);\n\t\tif (tDoc.getField('Proficiency Armor Heavy').isBoxChecked(0)) {\n\t\t\tCurrentRace.armorAdd.select = 'Heavy Plating';\n\t\t} else if (tDoc.getField('Proficiency Armor Medium').isBoxChecked(0) && ((What('Dex') < 18 && lightProf) || !lightProf)) {\n\t\t\tCurrentRace.armorAdd.select = 'Composite Plating';\n\t\t} else {\n\t\t\tCurrentRace.armorAdd.select = 'Darkwood Core' + (lightProf ? \" (Prof)\" : \"\");\n\t\t};\n\t},\n\tremoveeval : function () {\n\t\tif ((/darkwood core|composite plating|heavy plating/).test(CurrentArmour.known)) {\n\t\t\ttDoc.resetForm(['AC Armor Description']);\n\t\t};\n\t},\n\tarmorAdd : { select : \"\" },\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core).*$/i,\n\t\tname : \"Darkwood core\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : 11\n\t}, {\n\t\tregExpSearch : /^(?=.*darkwood)(?=.*core)(?=.*prof).*$/i,\n\t\tname : \"Darkwood core (Prof)\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\tac : \"11+Prof\"\n\t}, {\n\t\tregExpSearch : /^(?=.*composite)(?=.*plating).*$/i,\n\t\tname : \"Composite plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"medium\",\n\t\tac : \"13+Prof\",\n\t\tdex : 2\n\t}, {\n\t\tregExpSearch : /^(?=.*heavy)(?=.*plating).*$/i,\n\t\tname : \"Heavy plating\",\n\t\tsource : [[\"WGtE\", 69], [\"UA:RoE\", 9]],\n\t\ttype : \"heavy\",\n\t\tac : \"16+Prof\",\n\t\tstealthdis : true\n\t}]\n};\n"
  },
  {
    "path": "WotC material/ua_20180810_Magic-Items-of-Eberron.js",
    "content": "var iFileName = \"ua_20180810_Magic-Items-of-Eberron.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Magic Items of Eberron to MPMB's Character Record Sheet\r\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\r\n\r\n// Define the sources\r\nSourceList[\"UA:MIoE\"] = {\r\n\tname : \"Unearthed Arcana: Magic Items of Eberron\",\r\n\tabbreviation : \"UA:MIoE\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_Magic_Items_of_Eberron.pdf\",\r\n\tdate : \"2018/08/10\"\r\n};\r\n\r\n// [dupl_start] Duplicates from Eberron: Rising from the Last War\r\nif (!SourceList[\"E:RLW\"]) {\r\n\tMagicItemsList[\"cleansing stone\"] = {\r\n\t\tname : \"Cleansing Stone\",\r\n\t\tsource : [[\"E:RLW\", 276], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"This stone sphere is 1 ft in diameter and engraved with mystic sigils. As an action while touching it, I can activate it to remove dirt and grime from my garments and my person.\",\r\n\t\tdescriptionFull : \"A cleansing stone is a stone sphere one foot in diameter, engraved with mystic sigils. When touching the stone, you can use an action to activate it and remove dirt and grime from your garments and your person. Cleansing stones are often embedded into pedestals in public squares in Aundair or found in high-end Ghallanda inns.\",\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tweight : 88 // using average marble/limestone density of 2.711 g/cm3\r\n\t}\r\n\tMagicItemsList[\"everbright lantern\"] = {\r\n\t\tname : \"Everbright Lantern\",\r\n\t\tsource : [[\"E:RLW\", 277], [\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"This bullseye lantern is powered by a dragonshard imbued with the effect of a Continual Flame spell. The light never goes out, but it can be shuttered off. It casts bright light in a 60-ft cone and dim light for an additional 60 ft.\",\r\n\t\tdescriptionFull : \"An everbright lantern contains an Eberron dragonshard imbued with the effect of a continual flame spell. This bright light is mounted inside a normal bullseye lantern, allowing the light to be shuttered off. An everbright lantern provides clear illumination in a 60-foot cone and shadowy illumination in a 120-foot cone, just like a mundane bullseye lantern, but its flame never goes out.\",\r\n\t\tweight : 2\r\n\t}\r\n\tMagicItemsList[\"imbued wood focus\"] = {\r\n\t\t// Note that this item is implemented here against RAW,\r\n\t\t// because according to PHB page 203 a spellcasting focus can only be used for\r\n\t\t// spells with a material component that is neither costly nor consumed.\r\n\t\t// See also https://dnd.wizards.com/articles/sage-advice/rules-spellcasting\r\n\t\t// This would mean that the Imbued Wood Focus in only useful for a limited number of spells.\r\n\t\t// Instead, this code just applies the damage bonus to all damage spells that roll for their damage.\r\n\t\tname : \"Imbued Wood Focus\",\r\n\t\tsource : [[\"E:RLW\", 277], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"This rod, wand, or staff is cut from a tree infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal the associated damage type add a +1 bonus to one of their damage rolls.\",\r\n\t\tdescriptionFull : \"An imbued wood focus is a rod, staff, or wand cut from a tree infused with extraplanar energy. If you're a spell­caster, you can use this orb as a spellcasting focus.\\n   When you cast a damage-dealing spell using this item as your spellcasting focus, you gain a +1 bonus to one damage roll of the spell, provided the damage is of the type associated with the item's wood. The types of wood and their associated damage types are listed in the table below.\\n\\n\" + toUni(\"Wood\\t\\t\\tDamage Type\") + \"\\nFernian Ash\\t\\tFire\\nIrian Rosewood\\t\\tRadiant\\nKythrian Manchineel  \\tAcid or Poison\\nLamannian Oak\\t\\tLightning or Thunder\\nMabaran Ebony\\t\\tNecrotic\\nRisian Pine\\t\\tCold\\nShavarran Birch\\t\\tForce\\nXorian Wenge\\t\\tPsychic\",\r\n\t\tattunement : true,\r\n\t\tallowDuplicates : true,\r\n\t\tweight : 2,\r\n\t\tchoices : [\"Fernian Ash (fire)\", \"Irian Rosewood (radiant)\", \"Kythrian Manchineel (acid and poison)\", \"Lamannian Oak (lightning and thunder)\", \"Mabaran Ebony (necrotic)\", \"Risian Pine (cold)\", \"Shavarran Birch (force)\", \"Xorian Wenge (psychic)\"],\r\n\t\t\"fernian ash (fire)\" : {\r\n\t\t\tname : \"Fernian Ash Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Fernian Ash (fire)\",\r\n\t\t\tnameTest : /^(?=.*fernian)(?=.*ash)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Fernian ash, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal fire damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && (/fire/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"fire\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal fire damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"irian rosewood (radiant)\" : {\r\n\t\t\tname : \"Irian Rosewood Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Irian Rosewood (radiant)\",\r\n\t\t\tnameTest : /^(?=.*irian)(?=.*rosewood)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Irian rosewood, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal radiant damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && (/radiant/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"radiant\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal radiant damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"kythrian manchineel (acid and poison)\" : {\r\n\t\t\tname : \"Kythrian Manchineel Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Kythrian Manchineel (acid and poison)\",\r\n\t\t\tnameTest : /^(?=.*kythrian)(?=.*manchineel)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Kythrian manchineel, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal acid or poison damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && (/acid|poison/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"acid|poison\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal acid or poison damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"lamannian oak (lightning and thunder)\" : {\r\n\t\t\tname : \"Lamannian Oak Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Lamannian Oak (lightning and thunder)\",\r\n\t\t\tnameTest : /^(?=.*lamannian)(?=.*oak)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Lamannian oak, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal lightning or thunder damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && (/lightning|thunder/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"lightning|thunder\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal lightning or thunder damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"mabaran ebony (necrotic)\" : {\r\n\t\t\tname : \"Mabaran Ebony Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Mabaran Ebony (necrotic)\",\r\n\t\t\tnameTest : /^(?=.*mabaran)(?=.*ebony)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Mabaran ebony, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal necrotic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && (/necrotic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"necro\\\\.?|necrotic\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal necrotic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"risian pine (cold)\" : {\r\n\t\t\tname : \"Risian Pine Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Risian Pine (cold)\",\r\n\t\t\tnameTest : /^(?=.*risian)(?=.*pine)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Risian pine, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal cold damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && (/cold/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"cold\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal cold damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"shavarran birch (force)\" : {\r\n\t\t\tname : \"Shavarran Birch Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Shavarran Birch (force)\",\r\n\t\t\tnameTest : /^(?=.*shavarran)(?=.*birch)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Shavarran birch, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal force damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] == \"eldritch blast\") {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1 dmg\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[3] != \"eldritch blast\" && (/force/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"force\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal force damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"xorian wenge (psychic)\" : {\r\n\t\t\tname : \"Xorian Wenge Rod, Wand, or Staff\",\r\n\t\t\tsortname : \"Imbued Wood Focus, Xorian Wenge (psychic)\",\r\n\t\t\tnameTest : /^(?=.*xorian)(?=.*wenge)(?=.*(rod|wand|staff)).*$/i,\r\n\t\t\tdescription : \"This rod, wand, or staff made of Xorian wenge, wood infused with extraplanar energy. I can use it as spellcasting focus for all my spells. If I do so, spells I cast that deal psychic damage add a +1 bonus to one of their damage rolls.\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && (/psychic/i).test(fields.Damage_Type)) output.extraDmg += 1;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"psychic\", 1, true, true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I use this as my spellcasting focus, spells I cast that deal psychic damage get a +1 bonus added to one of their damage rolls.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tMagicItemsList[\"orb of shielding\"] = {\r\n\t\tname : \"Orb of Shielding\",\r\n\t\tsource : [[\"E:RLW\", 278], [\"WGtE\", 114], [\"UA:MIoE\", 1]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"common\",\r\n\t\tdescription : \"An orb of shielding is made from crystal or stone aligned to one of the planes. I can use it as my spellcasting focus. While I am holding the orb and take damage of the type associated with the material the orb is made from, I can use my reaction to reduce the damage by 1d4 (to a minimum of 0).\",\r\n\t\tdescriptionFull : \"An orb of shielding is made from crystal or stone aligned to one of the planes. While you are holding the orb and take damage of the type associated with the material your orb is made from, you can use your reaction to reduce the damage by 1d4. The materials and their associated damage types are listed below.\\n\" +\r\n\t\t\"\\n \\u2022 Fernian basalt: Fire damage\" +\r\n\t\t\"\\n \\u2022 Irian quartz: Radiant damage\" +\r\n\t\t\"\\n \\u2022 Kythrian skarn: Acid or poison damage\" +\r\n\t\t\"\\n \\u2022 Lamannian flint: Lightning or thunder damage\" +\r\n\t\t\"\\n \\u2022 Mabaran obsidian: Necrotic damage\" +\r\n\t\t\"\\n \\u2022 Quori celestine, Xorian marble: Psychic damage\" +\r\n\t\t\"\\n \\u2022 Risian shale: Cold damage\" +\r\n\t\t\"\\n \\u2022 Shavaran chert: Force damage\",\r\n\t\tattunement : true,\r\n\t\tallowDuplicates : true,\r\n\t\tweight : 3,\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tchoices : [\"Fernian Basalt (fire)\", \"Irian Quartz (radiant)\", \"Kythrian Skarn (acid or poison)\", \"Lamannian Flint (lightning or thunder)\", \"Mabaran Obsidian (necrotic)\", \"Quori Celestine (psychic)\", \"Risian Shale (cold)\", \"Shavaran Chert (force)\", \"Xorian Marble (psychic)\"],\r\n\t\t\"fernian basalt (fire)\" : {\r\n\t\t\tname : \"Orb of Shielding [Fernian Basalt]\",\r\n\t\t\tdescription : \"This stone orb is made from fernian basalt. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take fire damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"irian quartz (radiant)\" : {\r\n\t\t\tname : \"Orb of Shielding [Irian Quartz]\",\r\n\t\t\tdescription : \"This crystal orb is made from irian quartz. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take radiant damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"kythrian skarn (acid or poison)\" : {\r\n\t\t\tname : \"Orb of Shielding [Kythrian Skarn]\",\r\n\t\t\tdescription : \"This stone orb is made from kythrian skarn. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take acid or poison damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"lamannian flint (lightning or thunder)\" : {\r\n\t\t\tname : \"Orb of Shielding [Lamannian Flint]\",\r\n\t\t\tdescription : \"This stone orb is made from lamannian flint. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take lightning or thunder damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"mabaran obsidian (necrotic)\" : {\r\n\t\t\tname : \"Orb of Shielding [Mabaran Obsidian]\",\r\n\t\t\tdescription : \"This crystal orb is made from mabaran obsidian. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take necrotic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"quori celestine (psychic)\" : {\r\n\t\t\tname : \"Orb of Shielding [Quori Celestine]\",\r\n\t\t\tdescription : \"This crystal orb is made from quori celestine. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take psychic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"risian shale (cold)\" : {\r\n\t\t\tname : \"Orb of Shielding [Risian Shale]\",\r\n\t\t\tdescription : \"This stone orb is made from risian shale. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take cold damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"shavaran chert (force)\" : {\r\n\t\t\tname : \"Orb of Shielding [Shavaran Chert]\",\r\n\t\t\tdescription : \"This stone orb is made from shavaran chert. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take force damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t},\r\n\t\t\"xorian marble (psychic)\" : {\r\n\t\t\tname : \"Orb of Shielding [Xorian Marble]\",\r\n\t\t\tdescription : \"This stone orb is made from xorian marble. I can use it as my spellcasting focus. As a reaction while I am holding the orb and take psychic damage, I can reduce the damage by 1d4 (to a minimum of 0).\"\r\n\t\t}\r\n\t}\r\n\tMagicItemsList[\"spellshard\"] = {\r\n\t\tname : \"Spellshard\",\r\n\t\tsource : [[\"E:RLW\", 279], [\"WGtE\", 115], [\"UA:MIoE\", 3]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"This dragonshard is imbued with a text. By concentrating while holding it, I can see its pages in my mind's eye and it will draw me to the right section if I think of a topic. I can add content to it with a simple ritual and can use it as a wizard's spellbook, costing 1 gp per \\\"page\\\" I add to the shard.\",\r\n\t\tallowDuplicates : true,\r\n\t\tchoices : [\"normal\", \"advanced\"],\r\n\t\t\"normal\" : {\r\n\t\t\tname : \"Spellshard \",\r\n\t\t\tallowDuplicates : true,\r\n\t\t\trarity : \"common\",\r\n\t\t\tdescription : \"This dragonshard is imbued with a work of literature. By holding it and concentrating, I can see its pages in my mind's eye and it will draw me to the right section if I think of a topic. I can add content to it with a simple ritual and can use it as a wizard's spellbook, costing 1 gp per \\\"page\\\" I add to the shard.\",\r\n\t\t\tdescriptionLong : \"This polished dragonshard fits into the palm of my hand. It is imbued with a particular work of literature. By holding it and concentrating, I can see its pages in my mind's eye. Thinking of a particular phrase or topic will draw me to the first section that addresses it. I can add content to it with a simple ritual, allowing me to use it as a wizard's spellbook costing 1 gp per \\\"page\\\" in the shard, but otherwise functions as a mundane spellbook. Spellshards can also be used as diaries or journals.\"\r\n\t\t},\r\n\t\t\"advanced\" : {\r\n\t\t\tname : \"Advanced Spellshard\",\r\n\t\t\tallowDuplicates : true,\r\n\t\t\trarity : \"uncommon\",\r\n\t\t\tdescription : \"This dragonshard is imbued with a text. By concentrating and speaking the passphrase, I can see its pages in my mind's eye and it will draw me to the right section if I think of a topic. I can add content to it with a simple ritual and can use it as a wizard's spellbook, costing 1 gp per \\\"page\\\" I add to the shard.\",\r\n\t\t\tdescriptionLong : \"This polished dragonshard fits into the palm of my hand. It is imbued with a particular work of literature. By holding it, concentrating, and speaking its passphrase, I can see its pages in my mind's eye. Thinking of a particular phrase or topic will draw me to the first section that addresses it. I can add content to it with a simple ritual, allowing me to use it as a wizard's spellbook costing 1 gp per \\\"page\\\" in the shard, but otherwise functions as a mundane spellbook. Spellshards can also be used as diaries or journals.\"\r\n\t\t}\r\n\t}\r\n} // dupl_end\r\n// Different or not available in Eberron: Rising from the Last War\r\nMagicItemsList[\"band of loyalty-ua\"] = {\r\n\tname : \"Band of Loyalty\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"ring\",\r\n\trarity : \"common\",\r\n\tdescription : \"If I'm reduced to zero hit points while attuned to this ring, I instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\tdescriptionFull : \"If you are reduced to zero hit points while attuned to a band of loyalty, you instantly die. These rings are favored by spies who can't afford to fall into enemy hands.\",\r\n\tattunement : true\r\n}\r\nvar UAMIoE_docentFullDescription = [\r\n\t\"A docent is a small metal sphere, approximately 2 inches across, studded with dragonshards. Despite a strong magical aura, it has no obvious abilities. When you attune to a docent, the sphere becomes embedded in your chest and comes to life\\u2014literally.\",\r\n\t\">>Sentience<<. A docent is a sentient neutral item with an Intelligence of 16, a Wisdom of 14, and a Charisma of 14. It can perceive the world through your senses.\",\r\n\t\"A docent communicates telepathically with its wielder and can speak, read, and understand Common and Giant.\",\r\n\t\">>Personality<<. A docent is designed to advise and assist the warforged it's attached to. One of the simple functions of a docent is to serve as a translator. The docent's properties are under its control, and if you have a bad relationship with your docent it may refuse to assist you… or simply lie about information that it obtains. However, if you treat your docent well it could serve as a useful ally.\",\r\n\t\"The origin of docents is a great mystery. House Cannith created the first warforged thirty years ago. But the docents come from the distant land of Xen'drik and appear to be thousands of years old. Were they created to interface with some other form of construct? Or are the modern warforged a new interpretation of an ancient design? The docents claim to have forgotten their creators… but this is a mystery waiting to be unraveled. While all docents come from Xen'drik, some have been brought to Khorvaire by explorers and it's possible to encounter them in the Five Nations.\",\r\n\t\">>Languages<<. All docents understand Common and Giant, but a docent knows up to four additional languages. Elvish and Draconic are common options. If a docent knows less than six languages in total, it can add new languages to its repertoire after encountering them. So a docent found in Xen'drik may have never encountered a dwarf before… but after spending some time in Khorvaire studying dwarves, it could pick up the Dwarvish language.\",\r\n\t\">>Properties<<. A docent possesses up to three of the following properties:\",\r\n\t\"\\u2022 The docent can cast the detect magic spell at will.\",\r\n\t\"\\u2022 The docent can cast the detect evil and good spell at will.\",\r\n\t\"\\u2022 The docent can detect any form of divination or scrying targeting it and its warforged host.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Arcana) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (History) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Investigation) checks.\",\r\n\t\"\\u2022 The docent has a +7 bonus to Intelligence (Nature) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Insight) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Perception) checks.\",\r\n\t\"\\u2022 The docent has a +6 bonus to Wisdom (Medicine) checks targeting its warforged host. If the host is rendered unconscious, the docent will automatically attempt to stabilize them once each turn.\",\r\n\t\"You can use a bonus action on your turn to request that the docent use one of its properties on your behalf.\"\r\n];\r\nMagicItemsList[\"docent-ua\"] = {\r\n\tname : \"Docent\",\r\n\tsource : [[\"WGtE\", 121], [\"UA:MIoE\", 3]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"rare\",\r\n\tdescription : \"I can embed this sentient small metal sphere studded with dragonshards into my chest. I can communicate telepathically with it. It can serve me as an advisor and a translator, as it knowns 6 languages. It also knows spells and/or skills that I can have it use as a bonus action. See Notes page.\",\r\n\tdescriptionFull : UAMIoE_docentFullDescription.join(\"\\n   \").replace(/>>(.*?)<</g, function(a, match) { return toUni(match); }),\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) { return (/warforged/i).test(CurrentRace.known); },\r\n\taction : [[\"bonus action\", \"\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : desc(UAMIoE_docentFullDescription).replace(/>>(.*?)<</g, function(a, match) { return match.toUpperCase(); }).replace(/your/g, \"my\").replace(/you are /ig, \"I am \").replace(/(of|on|assist) you/ig, \"$1 me\").replace(/you /ig, \"I \") + \"\\n\\n\" + sentientItemConflictTxt\r\n\t}]\r\n}\r\nMagicItemsList[\"feather token-ua\"] = {\r\n\tname : \"Feather Token\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Once as a bonus action while the token is in my possession, I can use it to cast Feather Fall. This small metal disk is inscribed with the image of a feather and only holds sufficient charge for a single use, after which it loses its power.\",\r\n\tdescriptionFull : \"This small metal disk is inscribed with the image of a feather. While the token is in your possession, you can cast feather fall as a bonus action. A feather token only holds sufficient charge for a single use, after which it loses its power. While it's an expensive form of insurance, frequent airship travelers and citizens of Sharn often appreciate the security it provides.\"\r\n}\r\nMagicItemsList[\"glamerweave-ua\"] = {\r\n\tname : \"Glamerweave\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Glamerweave clothing is imbued with cosmetic illusions that have no impact on combat. Most of the time, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. A gown could appear to be wreathed in flames, or a hat orbited by illusory butterflies.\",\r\n\tdescriptionFull : \"Glamerweave clothing is imbued with cosmetic illusions. Traditionally, these patterns are contained within the cloth, but higher-end glamerweave can have more dramatic effects. You could have a gown that appears to be wreathed in flames, or a hat that's orbited by illusory butterflies. Regardless of the design, these are cosmetic effects and have no impact on combat.\\n\\n\" + [\r\n\t\ttoUni(\"1d8\\tDescription\"),\r\n\t\t\"  1\\tA hat orbited by the twelve moons\",\r\n\t\t\"  2\\tLong gloves wreathed in cold flames\",\r\n\t\t\"  3\\tA traveler's cloak lined with glittering stars\",\r\n\t\t\"  4\\tA scarlet gown that glows with inner radiance\",\r\n\t\t\"  5\\tA cloth shirt that appears to be a chain shirt\",\r\n\t\t\"  6\\tA silver gown surrounded by drifting snowflakes\",\r\n\t\t\"  7\\tA robe with two dragons wrestling across the back\",\r\n\t\t\"  8\\tA cloak that slowly and subtly shifts colors\"\r\n\t].join(\"\\n\")\r\n}\r\nMagicItemsList[\"shiftweave-ua\"] = {\r\n\tname : \"Shiftweave\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 2]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"Up to five different outfits are embedded into these clothes that have transmutation magic woven into their fabric. As an action, I can speak a command word to transform the outfit into one of the other designs contained within.\",\r\n\tdescriptionFull : \"Transmutation magic is woven into the fabric of shiftweave clothing. When a suit of shiftweave is created, up to five different outfits can be embedded into the cloth. By taking an action and uttering a command word, you can transform your shiftweave outfit into one of the other designs contained within it. To determine the price of a suit of shiftweave, combine the value of all of the outfits it contains and add 25 gp to that amount.\",\r\n\taction : [[\"action\", \"\"]]\r\n}\r\nMagicItemsList[\"armblade-ua\"] = {\r\n\tname : \"Armblade\",\r\n\tsource : [[\"WGtE\", 120], [\"UA:MIoE\", 3]],\r\n\ttype : \"weapon (any one-handed melee weapon)\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a warforged, I can integrate this weapon in my forearm by attuning to it. While attached, it can't be disarmed or removed against my will, but I can't use that hand for other actions. I can spend one minute to end the attunement and remove the armblade. The weapon isn't inherently magical.\",\r\n\tdescriptionFull : \"An armblade is a weapon designed to integrate with the forearm of a warforged. If you're a warforged, you can attach an armblade by attuning to it. An attached armblade cannot be disarmed or removed from you against your will, but while the weapon is attached you cannot use that hand for other actions. You can spend one minute to end the attunement and remove the armblade.\\n   An armblade isn't inherently considered to be a magic weapon for purposes of overcoming damage resistance. However, any sort of magical melee weapon could be created as an armblade, so you could acquire a vicious armblade or a vorpal armblade.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t},\r\n\tallowDuplicates : true,\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"brackets\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\treturn (!inObj.description || (/two.{0,3}handed/i).test(inObj.description)) || (!inObj.range || !(/melee/i).test(inObj.range));\r\n\t\t}\r\n\t}\r\n}\r\nMagicItemsList[\"wand sheath-ua\"] = {\r\n\tname : \"Wand Sheath\",\r\n\tsource : [[\"WGtE\", 115], [\"UA:MIoE\", 4]],\r\n\ttype : \"wondrous item\",\r\n\trarity : \"common\",\r\n\tdescription : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. The wand doesn't count to the number of items I can attune to. As a bonus action, I can then retract/extend it while keeping my hand free.\",\r\n\tdescriptionLong : \"As a warforged, I can integrate this sheath in my forearm by attuning to it. It can only be removed if I spend a minute to end the attunement. As an action, I can insert a wand in it. I still need to attune to this wand if it requires me to do so, but the wand wand then doesn't count towards the number of items I can attune to. When I take the wand out of the sheath, I lose attunement with it. As a bonus action, I can retract or extend a wand in the sheath. While retracted, the wand can't be damaged. While extended, I can use the wand as if holding it, but my hand remains free for other actions.\",\r\n\tdescriptionFull : \"A wand sheath is designed to integrate with the forearm of a warforged. If you're a warforged, you can attach a wand sheath by attuning to it. While the wand sheath is attached, it cannot be removed from you against your will. You can spend one minute to end the attunement and remove the wand sheath.\\n   You can insert a wand into the sheath as an action. While the wand is sheathed, you gain the following benefits:\\n \\u2022 You can retract the wand into your forearm or extend it from your forearm as a bonus action. While it is retracted, it cannot be damaged or removed.\\n \\u2022 While the wand is extended, you can use it as if you were holding it, but your hand remains free for other actions.\\n \\u2022 If the sheathed wand requires attunement, you must attune to the wand before you can use it. However, the wand sheath and the attached wand only count as a single item for purposes of the maximum number of items you can be attuned to. If you remove the wand from the sheath, you immediately lose your attunement to the wand.\",\r\n\tattunement : true,\r\n\tprerequisite : \"Requires attunement by a warforged\",\r\n\tprereqeval : function (v) {\r\n\t\treturn (/warforged/i).test(CurrentRace.known);\r\n\t},\r\n\taction : [[\"action\", \" (insert)\"], [\"bonus action\", \" (extend/retract)\"]]\r\n}\r\n"
  },
  {
    "path": "WotC material/ua_20180813_Races-of-Ravnica.js",
    "content": "var iFileName = \"ua_20180813_Races-of-Ravnica.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the content from the Unearthed Arcana: Races of Ravnica article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:RoR\"] = {\n\tname : \"Unearthed Arcana: Races of Ravnica\",\n\tabbreviation : \"UA:RoR\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Magic: The Gathering\",\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_RavnicaRaces.pdf\",\n\tdate : \"2018/08/13\"\n};\n\n// Add Loxodon\nRaceList[\"loxodon-ua\"] = {\n\tregExpSearch : /loxodon/i,\n\tname : \"Loxodon\",\n\tsource : [[\"UA:RoR\", 1]],\n\tplural : \"Loxodons\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\"],\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\ttoolProfs : [\"Mason's tools\"],\n\tarmorOptions : [{\n\t\tregExpSearch : /^((?=.*natural)(?=.*armou?r)|(?=.*loxodon)(?=.*(hide|skin))).*$/i,\n\t\tname : \"Natural Armor\",\n\t\tsource : [[\"UA:RoR\", 1]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\tvision : [[\"Keen Smell\", 0]],\n\tage : \" physically mature at the same rate as humans, but are considered young until they reach the age of 60 and live about 450 years\",\n\theight : \" stand between 7 and 8 feet tall\",\n\tweight : \" weigh between 300 and 400 pounds\",\n\theightMetric : \" stand between 2 and 2,5 metres tall\",\n\tweightMetric : \" weigh between 150 to 200 kg\",\n\tscores : [0, 0, 2, 0, 1, 0],\n\ttrait : \"Loxodon (+2 Constitution, +1 Wisdom)\" + desc([\n\t\t\"Powerful Build: I count as one size larger for my carrying capacity, push, drag, and lift.\",\n\t\t\"Stonecunning: I can add double my proficiency bonus to Intelligence (History) checks related to the origin of stonework, instead of my normal proficiency bonus.\",\n\t\t\"Keen Smell: I have advantage on Wisdom (Perception) and Intelligence (Investigation) checks that rely on smell.\",\n\t\t\"Natural Armor: \" + (typePF ? \"I have an AC of\" : \"My thick, leathery skin gives me AC\") + \" 13 + Dexterity modifier + shield.\"\n\t]),\n\tcarryingCapacity : 2\n};\n\n// Add Simic Hybrid\nRaceList[\"simic hybrid-ua\"] = {\n\tregExpSearch : /^(?=.*(simic|elf|dwarf|human|orc))(?=.*hybrid).*$/i,\n\tname : \"Simic hybrid\",\n\tsource : [[\"UA:RoR\", 3]],\n\tplural : \"Simic hybrids\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", \"Elvish\"],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptionsSp : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*grappling)(?=.*(appendage|tentacle|claw)).*$/i,\n\t\tname : \"Grappling Appendages\",\n\t\tsource : [[\"UA:RoR\", 3]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tdescription : \"After hitting, start grapple on target as a bonus action\"\n\t}, {\n\t\tregExpSearch : /^(?=.*acid)(?=.*spit).*$/i,\n\t\tname : \"Acid Spit\",\n\t\tsource : [[\"UA:RoR\", 3]],\n\t\tability : 3,\n\t\ttype : \"Natural\",\n\t\tdamage : [\"C\", 10, \"acid\"],\n\t\trange : \"30 ft\",\n\t\tdescription : \"Dex save, success - no damage\",\n\t\tabilitytodamage : false,\n\t\tdc : true\n\t}],\n\textraACSp : {\n\t\tname : \"Carapace\",\n\t\tmod : 1,\n\t\ttext : \"I gain a +1 bonus to AC while I'm not wearing heavy armor.\",\n\t\tstopeval : function (v) { return v.heavyArmor; }\n\t},\n\tage : \" age the same as the base humanoid race, although the maximum lifespan is somewhat reduced\",\n\theight : \" are of the same height as another of its humanoid race\",\n\tweight : \" are of the same weight as another of its humanoid race\",\n\tscorestxt : \"+2 Constitution and +1 to one other ability score of my choice\",\n\tscores : [0, 0, 2, 0, 0, 0],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (1st level): Choose one to three types of enhancement using the \\\"Racial Options\\\" button: Manta Glide, Nimble Climber, or Underwater Adaptation.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can either choose one I didn't take at 1st level or choose Grappling Appendages, Carapace, or Acid Spit.\",\n\tfeatures : {\n\t\t\"animal enhancement\" : {\n\t\t\tname : \"Animal Enhancement\",\n\t\t\tminlevel : 5,\n\t\t\teval : function() {\n\t\t\t\tvar curChoice = ParseRace(What('Race Remember'))[1].capitalize();\n\t\t\t\tvar AEoptions = [\"Manta Glide\", \"Nimble Climber\", \"Underwater Adaptation\", \"Grappling Appendages\", \"Carapace\", \"Acid Spit\"];\n\t\t\t\tif (curChoice && AEoptions.indexOf(curChoice) !== -1) AEoptions.splice(AEoptions.indexOf(curChoice), 1);\n\t\t\t\tvar theChoice = AskUserOptions('Simic Hybrid 5th-level Animal Enhancement', 'The Simic Hybrid race offers a choice of animal enhancement at 5th-level. Make a selection to update the sheet accordingly. You can only change this selection by removing the Simic Hybrid race or changing its variant.', AEoptions, 'radio', true);\n\t\t\t\tvar feaTxt = '';\n\t\t\t\tvar rObjNm = \"simic hybrid-ua\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Manta Glide\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { climb : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\";\n\t\t\t\t\t\tSetProf(\"speed\", true, { swim : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Grappling Appendages): I have two extra appendages which I can use to make unarmed strikes for 1d6 bludgeoning damage. As a bonus action after hitting with them, I can try to grapple the target. I can't use these appendages to wield anything.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tAddWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tAddAction(\"bonus action\", \"Grappling Appendages (after hit)\", \"being a \" + rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Carapace): My skin is covered by a thick shell, giving my a +1 to AC whenever I'm not wearing heavy armor.\";\n\t\t\t\t\t\tprocessExtraAC(true, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tfeaTxt = \"Animal Enhancement (Acid Spit): As an action, I can spit acid at a single creature within 30 ft that I can see. It must make a Dexterity saving throw with DC 8 + Con modifier + Prof Bonus or take 2d10 acid damage. This increases with 1d10 at 11th and 17th level.\";\n\t\t\t\t\t\tprocessWeaponOptions(true, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tAddWeapon(\"Acid Spit\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tif (What(\"Unit System\") !== \"imperial\") feaTxt = ConvertToMetric(feaTxt, 0.5);\n\t\t\t\tValue(\"Racial Traits\", What(\"Racial Traits\").replace(/Animal Enhancement \\(5th level\\):.*/, '') + feaTxt);\n\t\t\t\tValue(\"Race Remember\", What(\"Race Remember\") + \"-*\" + theChoice.replace(' ', '_') + \"*\");\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar theRegex = /\\*(Manta_Glide|Nimble_Climber|Underwater_Adaptation|Grappling_Appendages|Carapace|Acid_Spit)\\*/i;\n\t\t\t\tvar raceRem = What(\"Race Remember\");\n\t\t\t\tif (!theRegex.test(raceRem)) return;\n\t\t\t\tvar theChoice = raceRem.match(theRegex)[1].replace('_', ' ').capitalize();\n\t\t\t\tvar rObjNm = \"simic hybrid-ua\";\n\t\t\t\tvar rObj = RaceList[rObjNm];\n\t\t\t\tvar rNm = rObj.name;\n\t\t\t\tswitch (theChoice) {\n\t\t\t\t\tcase \"Nimble Climber\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { climb : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Underwater Adaptation\":\n\t\t\t\t\t\tSetProf(\"speed\", false, { swim : { spd : 'walk', enc : 'walk' } }, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Grappling Appendages\":\n\t\t\t\t\t\tRemoveWeapon(\"Grappling Appendages\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[0]);\n\t\t\t\t\t\tRemoveAction(\"bonus action\", \"Grappling Appendages (after hit)\", \"being a \" + rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Carapace\":\n\t\t\t\t\t\tprocessExtraAC(false, rNm + \": Animal Enhancement (Carapace)\", rObj.extraACSp, rNm);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Acid Spit\":\n\t\t\t\t\t\tRemoveWeapon(\"Acid Spit\");\n\t\t\t\t\t\tprocessWeaponOptions(false, rObjNm, rObj.weaponOptionsSp[1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t};\n\t\t\t\tValue(\"Racial Traits\", What(\"Unit System\") === \"imperial\" ? CurrentRace.trait : ConvertToMetric(CurrentRace.trait, 0.5));\n\t\t\t}\n\t\t}\n\t}\n};\nAddRacialVariant(\"simic hybrid-ua\", \"manta glide\", {\n\tregExpSearch : /manta glide/i,\n\tsource : [[\"UA:RoR\", 3]],\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Manta Glide): I have manta ray-like wings that I can use to slow my fall. I subtract 100 ft when calculating falling damage and I can move 2 ft horizontally for every 1 ft I descend.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Nimble Climber, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid-ua\", \"nimble climber\", {\n\tregExpSearch : /nimble climber/i,\n\tsource : [[\"UA:RoR\", 3]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Nimble Climber): I have a climbing speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Underwater Adaptation, Grappling Appendages, Carapace, or Acid Spit.\"\n});\nAddRacialVariant(\"simic hybrid-ua\", \"underwater adaptation\", {\n\tregExpSearch : /underwater adaptation/i,\n\tsource : [[\"UA:RoR\", 3]],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tswim : { spd : 'walk', enc : 'walk' }\n\t},\n\ttrait : \"Simic Hybrid (+2 Constitution and +1 to one other ability score of my choice)\\n   Animal Enhancement (Underwater Adaptation): I can breathe air and water, and I have a swimming speed equal to my walking speed.\\n   Animal Enhancement (5th level): At 5th level, I gain another animal enhancement. I can choose Manta Glide, Nimble Climber, Grappling Appendages, Carapace, or Acid Split.\"\n});\n\n// Add Vedalken\nRaceList[\"vedalken-ua\"] = {\n\tregExpSearch : /vedalken/i,\n\tname : \"Vedalken\",\n\tsource : [[\"UA:RoR\", 4]],\n\tplural : \"Vedalken\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves\"] },\n\tskillstxt : \"Choose one from Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. I add 1d4 to a check with the chosen skill\",\n\tlanguageProfs : [\"Common\"],\n\ttoolProfs : [[\"Any tool\", 1]],\n\tage : \" age at the same rate as humans and typically live 350 to 500 years\",\n\theight : \" stand between 6 and 6 and a half feet tall\",\n\tweight : \" weigh around 200 pounds\",\n\theightMetric : \" stand between 1,8 and 2 metres tall\",\n\tweightMetric : \" weigh around 100 kg\",\n\tscores : [0, 0, 0, 2, 1, 0],\n\ttrait : \"Vedalken (+2 Intelligence, +1 Wisdom)\\n   Vedalken Dispassion: I have advantage on all Intelligence, Wisdom, and Charisma saving throws.\\n   Tireless Precision: I am proficient with any one tool and one skill of my choice: Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. Whenever I make an ability check with the chosen tool or skill, I can add 1d4 to the check's total.\",\n\tadvantages : [[\"Int\", true], [\"Wis\", true], [\"Cha\", true]]\n};\n\n// Add Viashino\nRaceList[\"viashino-ua\"] = {\n\tregExpSearch : /viashino/i,\n\tname : \"Viashino\",\n\tsource : [[\"UA:RoR\", 5]],\n\tplural : \"Viashino\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tskillstxt : \"Choose one from Acrobatics or Stealth\",\n\tlanguageProfs : [\"Common\", \"Draconic\"],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*viashino)(?=.*bite).*$/i,\n\t\tname : \"Viashino bite\",\n\t\tsource : [[\"UA:RoR\", 5]],\n\t\tdamage : [1, 4, \"piercing\"],\n\t\tselectNow : true\n\t}, {\n\t\tregExpSearch : /^(?=.*lashing)(?=.*tail).*$/i,\n\t\tname : \"Lashing tail\",\n\t\tsource : [[\"UA:RoR\", 5]],\n\t\tability : 1,\n\t\ttype : \"Natural\",\n\t\tdamage : [1, 4, \"slashing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Only as reaction\",\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\tage : \" reach adulthood in their early teens and rarely live past 60 due to their violent lives\",\n\theight : \" stand about as tall as humans\",\n\tweight : \" have lithe, wiry frames and are thus lighter than a human of the same height\",\n\tscores : [1, 2, 0, 0, 0, 0],\n\taction : [[\"reaction\", \"Lashing Tail (after being hit)\"]],\n\ttrait : \"Viashino (+1 Strength, +2 Dexterity)\\n\\nBite: I can use my fanged maw to make unarmed strikes dealing 1d4 piercing damage.\\n\\nLashing Tail: I have semi-prehensile tail that is tipped with a bony blade. As a reaction when a creature I can see within 5 ft damages me with a melee attack, I can use my tail to make an unarmed strike against it dealing 1d4 slashing damage.\"\n};\n"
  },
  {
    "path": "WotC material/ua_20180910_Dragonmarks.js",
    "content": "var iFileName = \"ua_20180910_Dragonmarks.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n// This file adds the content from the Unearthed Arcana: Dragonmarks article to MPMB's Character Record Sheet\r\n// Note that this content also appears in the script for Wayfinder's Guide to Eberron and thus both sources are included for all things here\r\n\r\n// Define the sources\r\nSourceList[\"UA:D\"] = {\r\n\tname : \"Unearthed Arcana: Dragonmarks\",\r\n\tabbreviation : \"UA:D\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\tcampaignSetting : \"Eberron\",\r\n\turl : \"https://media.wizards.com/2018/dnd/downloads/UA_Dragonmarks.pdf\",\r\n\tdate : \"2018/09/10\"\r\n};\r\n\r\n// Dragonmarks subraces\r\nRaceList[\"dragonmark detection half-elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*detection)|(?=.*house)(?=.*medani)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Detection (Half-Elf)\",\r\n\tsource : [[\"WGtE\", 96], [\"UA:D\", 2]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 0, 0, 1, 0, 1],\r\n\ttrait : \"Half-Elf, Dragonmark of Detection (+1 Intelligence, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Deductive Intuition: I can add my Intuition Die (1d4) to my Intelligence (Investigation) and Wisdom (Insight) checks.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Sense Threats: I can cast Detect Magic and Detect Poison and Disease as rituals using Intelligence as my spellcasting ability.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sense Threats\",\r\n\t\tspells : [\"detect magic\", \"detect poison and disease\"],\r\n\t\tselection : [\"detect magic\", \"detect poison and disease\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"detect magic\" : {\r\n\t\t\ttime : \"10 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t},\r\n\t\t\"detect poison and disease\" : {\r\n\t\t\ttime : \"10 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark finding half-orc-ua\"] = {\r\n\tregExpSearch : /^(?=.*half)(?=.*\\bor(c|k))((?=.*mark)(?=.*finding)|(?=.*house)(?=.*tharashk)).*$/i,\r\n\tname : \"Half-orc (dragonmark)\",\r\n\tsortname : \"Dragonmark, Finding (Half-Orc)\",\r\n\tsource : [[\"WGtE\", 97], [\"UA:D\", 2]],\r\n\tplural : \"Half-orcs (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Orc\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tage : \" reach adulthood around age 14 and rarely live longer than 75 years\",\r\n\theight : \" range from 5 to well over 6 feet tall (4'10\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 215 lb (140 + 2d10 \\xD7 2d6 lb)\",\r\n\theightMetric : \" range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 100 kg (65 + 5d10 \\xD7 4d6 / 10 kg)\",\r\n\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Half-Orc, Dragonmark of Finding (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Hunter's Intuition: I add my Intuition Die (1d4) to my Perception and Survival checks.\\n   Imprint Prey: As a bonus action once per short rest, I imprint a target I can see in 30 ft or with a Survival check when tracking it, lasting until it dies or I use this again. I double my Intuition Die for tracking it, sense its general location in 60 ft, my attacks vs. it ignore half cover and don't have disadv. if I can't see it, and it has no adv. vs. me if I can't see it.\\n\" + (typePF ? \"Nature's Voice: cast Locate Animals/Plants as a ritual from 3rd level.\" : \"   Nature's Voice: Once I reach 3rd level, I can cast Locate Animals or Plants as a ritual.\"),\r\n\tfeatures : {\r\n\t\t\"imprint prey\" : {\r\n\t\t\tname : \"Imprint Prey\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"locate animals or plants\" : {\r\n\t\t\tname : \"Locate Animals or Plants\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Nature's Voice\",\r\n\t\t\t\tspells : [\"locate animals or plants\"],\r\n\t\t\t\tselection : [\"locate animals or plants\"],\r\n\t\t\t\tfirstCol : SpellRitualTag,\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"locate animals or plants\" : {\r\n\t\t\t\t\ttime : \"10 min\",\r\n\t\t\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark handling human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*handling)|(?=.*house)(?=.*vadalis)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Handling (Human)\",\r\n\tsource : [[\"WGtE\", 98], [\"UA:D\", 3]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Handling (+1 Dex\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"terity, +1 Wisdom, +1 to any one ability score\") + \")\\n   Wild Intuition: I can add my Intuition Die (1d4) to my Wisdom (Animal Handling) and Intelligence (Nature) checks.\\n   Expert Handling: I can use the Help action to aid an ally animal companion or mount even when they are within 30 ft of me, rather than just within 5 ft.\\n   Primal Connection: Once per short rest, I can cast Animal Friendship using Wisdom \" + (typePF ? \"as my spellcasting ability\" : \"\") + \".\\n   \" + (typePF ? \"The Bigger They Are: My spells that normally affect only beasts now also affect monstrosities with an Intelligence of 3 or lower.\" : \"Bigger They Are: My spells that affect only beasts, also affect monstrosities with Int < 4.\"),\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"animal friendship\" : {\r\n\t\t\tname : \"Primal Connection\",\r\n\t\t\tlimfeaname : \"Animal Friendship\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Primal Connection\",\r\n\t\t\t\tspells : [\"animal friendship\"],\r\n\t\t\t\tselection : [\"animal friendship\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\tswitch (spellKey) {\r\n\t\t\t\t\tcase \"animal friendship\" :\r\n\t\t\t\t\t\tspellObj.description = spellObj.description.replace(\"beasts\", \"beasts/monstrosities\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"beast bond\" :\r\n\t\t\t\t\t\tspellObj.description = \"Telepathic link with 1 beast/monstrosity Int<4 while in sight; it has adv. on atks vs. crea I can see\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"beast sense\" :\r\n\t\t\t\t\t\tspellObj.description = \"Use senses of 1 willing monstrosity Int<4 or beast; I'm blinded and deafened while doing so\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"dominate beast\" :\r\n\t\t\t\t\t\tspellObj.description = \"1 monstrosity Int<4 or beast save or charmed, follows telepathic commands, 1 a for complete control\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\tcase \"speak with animals\" :\r\n\t\t\t\t\t\tspellObj.description = \"Communicate verbally with monstrosities Int<4 or beasts for duration; interactions limited by their Int\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Spells I cast that only affect beasts can also affect monstrosities with an Intelligence score of 3 or lower.\"\r\n\t\t]\r\n\t}\r\n};\r\nRaceList[\"dragonmark healing halfling-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*healing)|(?=.*house)(?=.*jorasco)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Healing (Halfling)\",\r\n\tsource : [[\"WGtE\", 99], [\"UA:D\", 3]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 1, 0],\r\n\ttrait : \"Halfling, Dragonmark of Healing (+2 Dexterity, +1 Wisdom)\" + (typePF ? \"\\n  \" : \"\") + \r\n\t\t\" Lucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\" + desc([\r\n\t\t\"Halfling Nimbleness: I can move through the space of Medium and larger creatures.\",\r\n\t\t\"Medical Intuition: I \" + (typePF ? \"\" : \"can\") + \" add my Intuition Die (1d4) to \" + (typePF ? \"Medicine\" : \"my Wisdom (Medicine)\") + \" checks.\",\r\n\t\t\"Healing Touch: As an action once per short rest, I can spend one of my Hit Dice to heal myself or a creature I touch. I heal the roll of the die plus my Wisdom modifier.\",\r\n\t\t\"Jorasco's Blessing: I know the Spare the Dying cantrip.\"\r\n\t]),\r\n\tfeatures : {\r\n\t\t\"healing touch\" : {\r\n\t\t\tname : \"Healing Touch\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Jorasco's Blessing\",\r\n\t\tspells : [\"spare the dying\"],\r\n\t\tselection : [\"spare the dying\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}]\r\n};\r\nRaceList[\"dragonmark hospitality halfling-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*hospitality)|(?=.*house)(?=.*ghallanda)).*$/i,\r\n\tname : \"Halfling (dragonmark)\",\r\n\tsortname : \"Dragonmark, Hospitality (Halfling)\",\r\n\tsource : [[\"WGtE\", 100], [\"UA:D\", 4]],\r\n\tplural : \"Halflings (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Halfling\"],\r\n\tsavetxt : { adv_vs : [\"frightened\"] },\r\n\tage : \" reach adulthood at age 20 and live around 150 years\",\r\n\theight : \" average about 3 feet tall (2'7\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" average about 90 cm tall (80 + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Halfling, Dragonmark of Hospitality (+2 Dexterity, +1 Charisma)\\nLucky: When I roll a 1 on an attack roll, ability check, or saving throw, I can reroll the die and must use the new roll.\\nHalfling Nimbleness: I can move through the space of Medium and larger creatures.\\nEver Hospitable: I can add my Intuition Die (1d4) to my Charisma (Persuasion) checks and ability checks involving brewer's supplies or cook's utensils.\\nInnkeeper's Charms: I know Friends and Prestidigitation with Cha as my spellcasting ability.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Innkeeper's Charms\",\r\n\t\tspells : [\"friends\", \"prestidigitation\"],\r\n\t\tselection : [\"friends\", \"prestidigitation\"],\r\n\t\tfirstCol : 'atwill',\r\n\t\ttimes : 2\r\n\t}]\r\n};\r\nRaceList[\"dragonmark making human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*making)|(?=.*house)(?=.*cannith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Making (Human)\",\r\n\tsource : [[\"WGtE\", 101], [\"UA:D\", 4]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\ttoolProfs : [[\"Artisan's tools\", 1]],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Intelligence, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 1, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Making (+1 Dex\" + (typePF ? \", +2 Int or +2 Dex, +1 Int\" : \"terity, +1 Intelligence, +1 to Dex or Int, my choice\") + \")\\nArtisan's Intuition: I can add my Intuition Die (1d4) to ability checks with artisan's tools.\\nMagecraft: I can create a magic item that gives me the ability to cast one wizard cantrip of my choice, using Intelligence as my spellcasting ability. This works while the item is in my possession. At the end of a long rest, I can replace it with a new item and cantrip.\\nSpellsmith: Once per long rest, I can spend 1 minute to make a nonmagical armor or weapon gain a +1 bonus for the next hour. Maker's Gift: I know the mending cantrip.\",\r\n\tfeatures : {\r\n\t\t\"spellsmith\" : {\r\n\t\t\tname : \"Spellsmith\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\teval : function () {\r\n\t\tCurrentSpells['dragonmark making human'] = {\r\n\t\t\tname : 'Human (dragonmark)',\r\n\t\t\tability : 4,\r\n\t\t\tlist : { 'class' : 'wizard', level : [0, 0], notspells : ['mending'] },\r\n\t\t\tknown : { cantrips : 1, spells : 'list' },\r\n\t\t\tbonus : {\r\n\t\t\t\tbonus1 : {\r\n\t\t\t\t\tname : \"Maker's Gift\",\r\n\t\t\t\t\tspells : ['mending'],\r\n\t\t\t\t\tselection : ['mending'],\r\n\t\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttypeList : 2,\r\n\t\t\trefType : \"race\"\r\n\t\t};\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tdelete CurrentSpells['dragonmark making human'];\r\n\t\tSetStringifieds('spells'); CurrentUpdates.types.push('spells');\r\n\t}\r\n};\r\nRaceList[\"dragonmark passage human-ua\"] = { // different in Unearthed Arcana\r\n\tregExpSearch : /^((?=.*mark)(?=.*passage)|(?=.*house)(?=.*orien)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Passage (Human)\",\r\n\tsource : [[\"UA:D\", 4]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 40, enc : 30 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+2 Dexterity and +1 to another ability score of my choice\",\r\n\tscores : [0, 2, 0, 0, 0, 0],\r\n\ttrait : \"Human, Dragonmark of Passage (+2 Dexterity and +1 to another ability score)\\n   Intuitive Motion: I can add my Intuition Die (1d4) to my Strength (Athletics) checks and any ability checks involving operating or maintaining a land vehicle.\\n   Orien's Grace: I can forgo half my movement speed for my turn to no longer provoke opportunity attacks for the rest of that turn.\\n   Shared Passage: As a bonus action once per long rest, I can teleport myself and a willing ally within 5 ft a distance up to my walking speed to an unoccupied space I can see.\",\r\n\tfeatures : {\r\n\t\t\"shared passage\" : {\r\n\t\t\tname : \"Shared Passage\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark scribing gnome-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*scribing)|(?=.*house)(?=.*sivis)).*$/i,\r\n\tname : \"Gnome (dragonmark)\",\r\n\tsortname : \"Dragonmark, Scribing (Gnome)\",\r\n\tsource : [[\"WGtE\", 103], [\"UA:D\", 5]],\r\n\tplural : \"Gnomes (dragonmark)\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 15 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Gnomish\", 1],\r\n\ttoolProfs : [\"Calligrapher's supplies\", \"Forgery kits\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { text : [\"Adv. on Int/Wis/Cha saves vs. magic\"] },\r\n\tage : \" start adult life around age 40 and can live 350 to almost 500 years\",\r\n\theight : \" are 3 to 4 feet tall (2'11\\\" + 2d4\\\")\",\r\n\tweight : \" weigh around 40 lb (35 + 2d4 lb)\",\r\n\theightMetric : \" are 90 to 120 cm tall (2'11\\\" + 5d4)\",\r\n\tweightMetric : \" weigh around 18 kg (16 + 5d4 / 10 kg)\",\r\n\tscores : [0, 0, 0, 2, 0, 1],\r\n\ttrait : \"Gnome, Dragonmark of Scribing (+2 Intelligence, +1 Charisma)\\n   Gifted Scribe: I can add my Intuition Die (1d4) to ability checks involving calligrapher's supplies or forgery kits. I am proficient with both of these tools.\\n   Whispering Wind: I know the Message cantrip.\\n   Scribe's Insight: I can cast Comprehend Languages once per long rest.\\nIntelligence is my spellcasting ability for the spells gained from being a gnome, dragonmark of scribing.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Whispering Wind\",\r\n\t\tspells : [\"message\"],\r\n\t\tselection : [\"message\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"comprehend languages\" : {\r\n\t\t\tname : \"Scribe's Insight\",\r\n\t\t\tlimfeaname : \"Comprehend Languages\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Scribe's Insight\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark sentinel human-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*sentinel)|(?=.*house)(?=.*deneith)).*$/i,\r\n\tname : \"Human (dragonmark)\",\r\n\tsortname : \"Dragonmark, Sentinel (Human)\",\r\n\tsource : [[\"WGtE\", 104], [\"UA:D\", 5]],\r\n\tplural : \"Humans (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", 1],\r\n\tage : \" reach adulthood in their late teens and live less than 100 years\",\r\n\theight : \" range from barely 5 to well over 6 feet tall (4'8\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 165 lb (110 + 2d10 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from barely 1,5 to well over 1,8 metres tall (145 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (50 + 5d10 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Strength, +1 Wisdom, and +1 to any one ability score of my choice\",\r\n\tscores : [1, 0, 0, 0, 1, 0],\r\n\ttrait : \"Human, Dragonmark of Sentinel (+1 Str\" + (typePF ? \", +1 Wis, +1 to one ability\" : \"ength, +1 Wisdom, +1 to any one ability score\") + \")\\n   Sentinel's Intuition: I can add my Intuition Die (1d4) to Initiative rolls and my Wisdom (Perception) checks.\\n   Sentinel's Shield: I know the Blade Ward cantrip. I can cast Shield once per short rest.\\n   Vigilant Guardian: As an action, I can designate an ally as my ward, gaining adv. on Insight and Perception checks to spot threats to it. As a reaction when I see my ward being attacked while within 5 ft, I can swap places with it, becoming the target of the attack.\",\r\n\taction : [['action', 'Vigilant Guardian (designate ward)'], ['reaction', 'Vigilant Guardian (swap with ward)']],\r\n\tfeatures : {\r\n\t\t\"shield\" : {\r\n\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\tlimfeaname : \"Shield\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\tspells : [\"blade ward\"],\r\n\t\t\t\tselection : [\"blade ward\"],\r\n\t\t\t\tfirstCol : 'atwill'\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Sentinel's Shield\",\r\n\t\t\t\tspells : [\"shield\"],\r\n\t\t\t\tselection : [\"shield\"],\r\n\t\t\t\tfirstCol : 'oncesr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark shadow elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*shadow)|(?=.*house)(?=.*(phiarlan|thuranni))).*$/i,\r\n\tname : \"Elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Shadow (Elf)\",\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tplural : \"Elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tskills : [\"Perception\"],\r\n\tskillstxt : \"Perception and proficiency with either Performance or one musical instrument\",\r\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old\",\r\n\theight : \" range from under 5 to over 6 feet tall (4'6\\\" + 2d10\\\")\",\r\n\tweight : \" weigh around 115 lb (90 + 2d10 \\xD7 1d4 lb)\",\r\n\theightMetric : \" range from under 1,5 to over 1,8 metres tall (140 + 5d10 cm)\",\r\n\tweightMetric : \" weigh around 55 kg (40 + 5d10 \\xD7 2d4 / 10 kg)\",\r\n\tscores : [0, 2, 0, 0, 0, 1],\r\n\ttrait : \"Elf, Dragonmark of Shadow (+2 Dexterity, +1 Charisma)\\nTrance: Elves don't need to sleep, but meditate semiconsciously, for 4 hours a day. This gives the same benefit as a human gets from 8 hours of sleep (long rest takes only 4 hours).\\nGift of the Shadows: I can add my Intuition Die (1d4) to Performance and Stealth checks.\\nShape Shadows: I know the Minor Illusion cantrip using Charisma as my spellcasting ability.\\nSlip Into Shadow: As a bonus action once per short rest, I can use the Hide action even while I have no cover or if I'm being observed.\",\r\n\tspellcastingAbility : 6,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Shape Shadows\",\r\n\t\tspells : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"slip into shadow\" : {\r\n\t\t\tname : \"Slip Into Shadow\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n};\r\nAddRacialVariant(\"dragonmark shadow elf-ua\", \"performance, \", {\r\n\tregExpSearch : /performance/i,\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tskills : [\"Perception\", \"Performance\"],\r\n\tskillstxt : \"\"\r\n});\r\nAddRacialVariant(\"dragonmark shadow elf-ua\", \"musical instrument, \", {\r\n\tregExpSearch : /musical instrument/i,\r\n\tsource : [[\"WGtE\", 105], [\"UA:D\", 6]],\r\n\tskillstxt : \"\",\r\n\ttoolProfs : [[\"Musical instrument\", 1]]\r\n});\r\nRaceList[\"dragonmark storm half-elf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*storm)|(?=.*house)(?=.*lyrandar)).*$/i,\r\n\tname : \"Half-elf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Storm (Half-Elf)\",\r\n\tsource : [[\"WGtE\", 106], [\"UA:D\", 6]],\r\n\tplural : \"Half-elves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 },\r\n\t\tswim : { spd : 30, enc : 20 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Elvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tdmgres : [\"Lightning\"],\r\n\tsavetxt : {\r\n\t\ttext : [\"Magic can't put me to sleep\"],\r\n\t\tadv_vs : [\"charmed\"]\r\n\t},\r\n\tage : \" reach adulthood around age 20 and often live over 180 years\",\r\n\theight : \" range from 5 to 6 feet tall (4'9\\\" + 2d8\\\")\",\r\n\tweight : \" weigh around 155 lb (110 + 2d8 \\xD7 2d4 lb)\",\r\n\theightMetric : \" range from 1,5 to 1,8 metres tall (145 + 5d8 cm)\",\r\n\tweightMetric : \" weigh around 70 kg (50 + 5d8 \\xD7 4d4 / 10 kg)\",\r\n\tscorestxt : \"+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice\",\r\n\tscores : [0, 1, 0, 0, 0, 1],\r\n\ttrait : \"Half-Elf, Dragonmark of Storm (+1 Dexterity, +1 Charisma, and +1 to any one ability score of my choice)\\n\" + (typePF ? \"\\n\" : \"   \") + \"Windwright's Intuition: I can add my Intuition Die (1d4) to my Dexterity (Acrobatics) checks and any ability checks involving operating or maintaining a water or air vehicle.\\n\" + (typePF ? \"\\n\" : \"   \") + \"Headwinds: I know the Gust cantrip. Once I reach 3rd level, I can cast Gust of Wind once per long rest. Charisma is my spellcasting ability for these spells.\",\r\n\tspellcastingAbility : 6, // Not mentioned in WGtE, but essential!\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Headwinds (level 1)\",\r\n\t\tspells : [\"gust\"],\r\n\t\tselection : [\"gust\"],\r\n\t\tfirstCol : 'atwill'\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"gust of wind\" : {\r\n\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\tlimfeaname : \"Gust of Wind\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Headwinds (level 3)\",\r\n\t\t\t\tspells : [\"gust of wind\"],\r\n\t\t\t\tselection : [\"gust of wind\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\nRaceList[\"dragonmark warding dwarf-ua\"] = {\r\n\tregExpSearch : /^((?=.*mark)(?=.*warding)|(?=.*house)(?=.*kundarak)).*$/i,\r\n\tname : \"Dwarf (dragonmark)\",\r\n\tsortname : \"Dragonmark, Warding (Dwarf)\",\r\n\tsource : [[\"WGtE\", 108], [\"UA:D\", 7]],\r\n\tplural : \"Dwarves (dragonmark)\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 25, enc : 25 }\r\n\t},\r\n\tlanguageProfs : [\"Common\", \"Dwarvish\"],\r\n\tvision : [[\"Darkvision\", 60]],\r\n\tsavetxt : { adv_vs : [\"poison\"] },\r\n\tdmgres : [\"Poison\"],\r\n\tweaponProfs : [false, false, [\"battleaxe\", \"handaxe\", \"warhammer\", \"light hammer\"]],\r\n\ttoolProfs : [[\"Smith, brewer, or mason tools\", 1]],\r\n\tage : \" are considered young until they are 50 and live about 350 years\",\r\n\theight : \" stand between 4 and 5 feet tall (4' + 2d4\\\")\",\r\n\tweight : \" weigh around 150 lb (130 + 2d4 \\xD7 2d6 lb)\",\r\n\theightMetric : \" stand between 1,2 and 1,5 metres tall (120 + 5d4 cm)\",\r\n\tweightMetric : \" weigh around 75 kg (60 + 5d4 \\xD7 4d6 / 10 kg)\",\r\n\tscores : [0, 1, 2, 1, 0, 0],\r\n\ttrait : \"Dwarf, Dragonmark of Warding (+1 Dex\" + (typePF ? \", +2 Con, +1 Int\" : \"terity, +2 Constitution, +1 Intelligence\") + \")\\n   Stonecunning: When I make an Intelligence (History) check related to the origin of stonework, I am considered having expertise in the History skill.\\n   Master of Locks: I can add my Intuition Die (1d4) to Intelligence (History), Intelligence (Investigation), and ability checks with thieves' tools, if it involves lock or trap mechanisms.\\n   Wards and Seals: I can cast Alarm as a ritual. Once I reach 3rd level, I can cast Arcane Lock once per long rest. Intelligence is my spellcasting ability for these.\",\r\n\tspellcastingAbility : 4,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Wards and Seals (level 1)\",\r\n\t\tspells : [\"alarm\"],\r\n\t\tselection : [\"alarm\"],\r\n\t\tfirstCol : SpellRitualTag,\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"alarm\" : {\r\n\t\t\ttime : \"11 min\",\r\n\t\t\tchanges : \"I can cast this spell only as a ritual, thus its casting time is 10 minutes longer.\"\r\n\t\t}\r\n\t},\r\n\tfeatures : {\r\n\t\t\"arcane lock\" : {\r\n\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\tlimfeaname : \"Arcane Lock\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wards and Seals (level 3)\",\r\n\t\t\t\tspells : [\"arcane lock\"],\r\n\t\t\t\tselection : [\"arcane lock\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Greater Dragonmark feats\r\nFeatsList[\"greater dragonmark-ua\"] = {\r\n\tname : \"Greater Dragonmark\",\r\n\tsource : [[\"WGtE\", 110], [\"UA:D\", 7]],\r\n\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase one ability score by 1, to a maximum of 20. The abilities available to you are based on your mark, as shown on the Greater Dragonmark Benefits table.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn a set of spells, each of which you can cast once without expending a spell slot or using a material component. The list of spells, the spellcasting ability for them, and the type of rest you must complete to regain the use of these spells are shown on the Greater Dragonmark Benefits table.\",\r\n\tdescription : \"Select the type of greater dragonmark using the square button on this feat line.\\nMy Intuition Die increases with one step (for example d4 to d6), I gain spellcating abilities, and an increase to one ability score.\",\r\n\teval : function () {\r\n\t\tvar raceTrait = What('Racial Traits');\r\n\t\tif ((/my Intuition Die \\(1d4\\)/i).test(raceTrait)) {\r\n\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d4\\)/i, 'my Intuition Die (1d6)'));\r\n\t\t};\r\n\t},\r\n\tremoveeval : function () {\r\n\t\tvar raceTrait = What('Racial Traits');\r\n\t\tif ((/my Intuition Die \\(1d6\\)/i).test(raceTrait)) {\r\n\t\t\tValue('Racial Traits', raceTrait.replace(/my Intuition Die \\(1d6\\)/i, 'my Intuition Die (1d4)'));\r\n\t\t};\r\n\t},\r\n\tchoices : [\"Detection\", \"Finding\", \"Handling\", \"Healing\", \"Hospitality\", \"Making\", \"Passage\", \"Scribing\", \"Sentinel\", \"Shadow\", \"Storm\", \"Warding\"],\r\n\t\"detection\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Detection\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*detection).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Charisma or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells See Invisibility and True Seeing, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast See Invisibility and True Seeing each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Charisma or Intelligence]\",\r\n\t\tscorestxt : \"+1 Charisma or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"see invisibility\", \"true seeing\"],\r\n\t\t\tselection : [\"see invisibility\", \"true seeing\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"see invisibility\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"true seeing\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 willing crea gains truesight 120 ft; see through illusions, hidden doors, ethereal plane\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"finding\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Finding\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*finding).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity, Strength, or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Locate Creature and Find the Path, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Locate Creature and Find the Path each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 \" + (typePF ? \"Strength, Dexterity, or Wisdom]\" : \"Str, Dex, or Wis]\"),\r\n\t\tscorestxt : \"+1 Strength, Dexterity, or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"locate creature\", \"find the path\"],\r\n\t\t\tselection : [\"locate creature\", \"find the path\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"locate creature\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"find the path\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Know the shortest route to a location I am familiar with and are on the same plane with\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"handling\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Handling\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*handling).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Beast Sense and Dominate Beast, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Beast Sense and Dominate Beast each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"beast sense\", \"dominate beast\"],\r\n\t\t\tselection : [\"beast sense\", \"dominate beast\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t},\r\n\t\"healing\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Healing\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*healing).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Mass Healing Word and Greater Restoration, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Mass Healing Word and Greater Restoration each once per long rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Dexterity or Wisdom]\",\r\n\t\tscorestxt : \"+1 Dexterity or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\tselection : [\"mass healing word\", \"greater restoration\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"greater restoration\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Reduce exhaustion or end charm, petrify, curse, stat or max HP reduction\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"hospitality\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Hospitality\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*hospitality).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sanctuary and Mordenkainen's Magnificent Mansion, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sanctuary and \" + (typePF ? \"Mordenkainen's \" : \"\") + \"Magnificent Mansion each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\tselection : [\"sanctuary\", \"mordenkainen's magnificent mansion\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"sanctuary\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"mordenkainen's magnificent mansion\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create extradimensional mansion with rooms, food and servants to serve 100 people; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"making\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Making\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*making).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Fabricate and Creation, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Fabricate and Creation each once per long rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Dexterity or Intelligence]\",\r\n\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"fabricate\", \"creation\"],\r\n\t\t\tselection : [\"fabricate\", \"creation\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"creation\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"passage\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Passage\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*passage).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Constitution score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Blink and Teleportation Circle, each of which you can cast once without expending a spell slot or using a material component. Constitution is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Blink and Teleportation Circle each once per long rest without using spell slots or requiring material components. Constitution is my spellcasting ability for these. [+1 Dexterity or Constitution]\",\r\n\t\tscorestxt : \"+1 Dexterity or Constitution\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"blink\", \"teleportation circle\"],\r\n\t\t\tselection : [\"blink\", \"teleportation circle\"],\r\n\t\t\tspellcastingAbility : 3,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"teleportation circle\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create a circle to teleport to another teleportation circle on same plane; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"scribing\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Scribing\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*scribing).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Intelligence or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Sending and Tongues, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Sending and Tongues each once per short rest without using spell slots or requiring material components. Intelligence is my spellcasting ability for these. [+1 Intelligence or Charisma]\",\r\n\t\tscorestxt : \"+1 Intelligence or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\tspells : [\"sending\", \"tongues\"],\r\n\t\t\tselection : [\"sending\", \"tongues\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncesr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"sending\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"tongues\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"sentinel\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Sentinel\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*sentinel).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Strength or Wisdom score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Compelled Duel, Warding Bond, each of which you can cast once without expending a spell slot or using a material component. Wisdom is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a short or long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Compelled Duel and Warding Bond each once per short rest without using spell slots or requiring material components. Wisdom is my spellcasting ability for these. [+1 Strength or Wisdom]\",\r\n\t\tscorestxt : \"+1 Strength or Wisdom\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per short\",\r\n\t\t\tspells : [\"compelled duel\", \"warding bond\"],\r\n\t\t\tselection : [\"compelled duel\", \"warding bond\"],\r\n\t\t\tspellcastingAbility : 5,\r\n\t\t\tfirstCol : 'oncesr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"warding bond\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 crea +1 AC, +1 saves, resistance all dmg; if it takes dmg I take same dmg; ends if >60 ft away\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"shadow\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Shadow\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*shadow).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Nondetection and Mislead, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Nondetection and Mislead each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"nondetection\", \"mislead\"],\r\n\t\t\tselection : [\"nondetection\", \"mislead\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"nondetection\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"1 crea or object up to 10 cu ft hidden from all divination magic\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"storm\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Storm\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*storm).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Charisma score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Control Water and Control Winds, each of which you can cast once without expending a spell slot or using a material component. Charisma is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\",\r\n\t\tdescription : \"My Intuition Die increases with one step (d4 to d6, for example). I can cast Control Water and Control Winds each once per long rest without using spell slots or requiring material components. Charisma is my spellcasting ability for these. [+1 Dexterity or Charisma]\",\r\n\t\tscorestxt : \"+1 Dexterity or Charisma\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"control water\", \"control winds\"],\r\n\t\t\tselection : [\"control water\", \"control winds\"],\r\n\t\t\tspellcastingAbility : 6,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"control water\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"warding\" : {\r\n\t\tprerequisite : \"Being level 8 or higher and possessing the Dragonmark of Warding\",\r\n\t\tprereqeval : function(v) { return v.characterLevel > 7 && (/^(?=.*dragonmark)(?=.*warding).*$/i).test(CurrentRace.known); },\r\n\t\tdescriptionFull : \"Your dragonmark has grown in size and power. This enhances your existing dragonmark, and the benefits are based on the mark that you already possess. A greater dragonmark provides the following benefits:\\n \\u2022 Increase your Dexterity or Intelligence score by 1, to a maximum of 20.\\n \\u2022 The die type of your dragonmarked Intuition Die increases by one (for example, from a d4 to a d6).\\n \\u2022 You learn the spells Knock, Glyph of Warding and Leomund's Secret Chest*, each of which you can cast once without expending a spell slot or using a material component. Intelligence is your spellcasting ability for these spells. Once you cast a spell using this feature, and you must finish a long rest before you can do so again.\\n\\n* To cast Leomund's Secret Chest using this feat, you must have a Siberys dragonshard with a value of at least 100 gp. While you have this dragonshard in hand, it serves as the spell's focus, and you can use it to summon and dismiss the chest.\",\r\n\t\tdescription : \"My Intuition Die increases one step. I can cast Knock, Secret Chest, and Glyph of Warding each once per long rest without spell slot or material component. Secret Chest requires a 100 gp Siberys dragonshard as a focus. These use Int as spellcasting ability. [+1 Dex or Int]\",\r\n\t\tscorestxt : \"+1 Dexterity or Intelligence\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"1\\xD7 per long\",\r\n\t\t\tspells : [\"knock\", \"glyph of warding\"],\r\n\t\t\tselection : [\"knock\", \"glyph of warding\"],\r\n\t\t\tspellcastingAbility : 4,\r\n\t\t\tfirstCol : 'oncelr',\r\n\t\t\ttimes : 2\r\n\t\t}, {\r\n\t\t\tname : \"with Siberys dragonshard\",\r\n\t\t\tspells : [\"leomund's secret chest\"],\r\n\t\t\tselection : [\"leomund's secret chest\"],\r\n\t\t\tfirstCol : 'oncelr'\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"glyph of warding\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Create a glyph that triggers on set condition; Int(Investigation) vs. Spell DC; see book\",\r\n\t\t\t\tchanges : \"Spells cast through my Greater Dragonmark don't require material components.\"\r\n\t\t\t},\r\n\t\t\t\"leomund's secret chest\" : {\r\n\t\t\t\tcompMaterial : \"A Siberys dragonshard with a value of at least 100 gp\",\r\n\t\t\t\tdescription : \"Hide chest with content in Ethereal Plane for 60 days, after that chance of loss; 1 a reappear (100gp)\",\r\n\t\t\t\tchanges : \"Leomund's Secret Chest cast through my Greater Dragonmark of Warding requires a Siberys dragonshard as a focus instead of an exquisite chest and its tiny replica.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Aberrant Dragonmark feat\r\nFeatsList[\"aberrant dragonmark-ua\"] = {\r\n\tname : \"Aberrant Dragonmark\",\r\n\tsource : [[\"WGtE\", 112], [\"UA:D\", 9]],\r\n\tprerequisite : \"Not having a dragonmark\",\r\n\tprereqeval : function(v) { return !(/dragonmark/i).test(CurrentRace.known); },\r\n\tdescriptionFull : \"You have manifested an aberrant dragonmark. Determine its appearance and the flaw associated with it (see the table below for examples). You gain the following benefits:\\n \\u2022 Increase your Constitution score by 1, to a maximum of 20.\\n \\u2022 You learn a cantrip from the sorcerer spell list. In addition, choose a 1st-level spell from the sorcerer spell list. You learn that spell and can cast it at its lowest level. Once you cast it, you must finish a long rest before you can cast it again. Constitution is your spellcasting ability for these spells.\\n \\u2022 You can increase the power of your aberrant spells at the risk of your own vitality. When you cast a spell with your aberrant mark, you can use one of your Hit Dice to increase the spell's level by 1. Immediately after you cast the spell, roll the Hit Die. You take damage equal to the number rolled.\\n\\n\" + toUni(\"1d8\") + \"\\t\" + toUni(\"Aberrant Mark Flaw\") + \"\\n1\\tYour mark is a source of constant physical pain.\\n2\\tYour mark whispers to you, though you may not understand what it says.\\n3\\tIn times of stress, your mark may trigger a cantrip effect involuntarily.\\n4\\tThe skin around your mark has an unusual appearance: burned, scaly, withered, etc.\\n5\\tMundane animals become uneasy around you.\\n6\\tYou have dramatic mood swings any time you use your mark.\\n7\\tYour appearance changes in a minor way every time you use your mark.\\n8\\tYou have horrific nightmares after you use your mark.\",\r\n\tdescription : \"I learn a sorcerer cantrip and a 1st-level sorcerer spell, using Con as my spellcasting ability. I can cast the spell once per long rest without a spell slot. I can use a Hit Die when casting the spell, casting it as if with a level 2 spell slot and taking the HD as damage. [+1 Con]\",\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\tspellcastingAbility : 3,\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Sorcerer cantrip\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [0, 0],\r\n\t\tfirstCol : 'atwill'\r\n\t}, {\r\n\t\tname : \"Sorcerer 1st-level spell\",\r\n\t\t'class' : 'sorcerer',\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : 'oncelr'\r\n\t}]\r\n};\r\n\r\n// [dupl_start] Gust cantrip reprint\r\nif (!SpellsList[\"gust\"]) {\r\n\tSpellsList[\"gust\"] = {\r\n\t\tname : \"Gust\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 157], [\"E\", 19], [\"E:RLW\", 50], [\"UA:D\", 6], [\"WGtE\", 107]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"30 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Instantaneous\",\r\n\t\tsave : \"Str\",\r\n\t\tdescription : \"Med. or smaller crea save or push 5 ft; or push unattended 5 lb obj 10 ft; or harmless sensory effect\",\r\n\t\tdescriptionFull : \"You seize the air and compel it to create one of the following effects at a point you can see within range.\" + \"\\n \" + \"\\u2022 One Medium or smaller creature that you choose must succeed on a Strength saving throw or be pushed up to 5 feet away from you.\" + \"\\n \" + \"\\u2022 You create a small blast of air capable of moving one object that is neither held nor carried and that weighs no more than 5 pounds. The object is pushed up to 10 feet away from you. It isn't pushed with enough force to cause damage.\" + \"\\n \" + \"\\u2022 You create a harmless sensory affect using air, such as causing leaves to rustle, wind to slam shutters shut, or your clothing to ripple in a breeze.\"\r\n\t};\r\n}\r\n// Control Winds reprint (only in Unearthed Arcana article, not in WGtE)\r\nif (!SpellsList[\"control winds\"]) {\r\n\tSpellsList[\"control winds\"] = {\r\n\t\tname : \"Control Winds\",\r\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\r\n\t\tsource : [[\"X\", 152], [\"E\", 16], [\"UA:D\", 8]],\r\n\t\tlevel : 5,\r\n\t\tschool : \"Trans\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"300 ft\",\r\n\t\tcomponents : \"V,S\",\r\n\t\tduration : \"Conc, 1 h\",\r\n\t\tdescription : \"100-ft cube of air either gusts, downdraft, or updraft; affects flying/jump/ranged; 1 a change; see B\",\r\n\t\tdescriptionFull : \"You take control of the air in a 100-foot cube that you can see within range. Choose one of the following effects when you cast the spell. The effect lasts for the spell's duration, unless you use your action on a later turn to switch to a different effect. You can also use your action to temporarily halt the effect or to restart one you've halted.\" + \"\\n   \" + toUni(\"Gusts\") + \": A wind picks up within the cube, continually blowing in a horizontal direction you designate. You choose the intensity of the wind: calm, moderate, or strong. If the wind is moderate or strong, ranged weapon attacks that enter or leave the cube or pass through it have disadvantage on their attack rolls. If the wind is strong, any creature moving against the wind must spend 1 extra foot of movement for each foot moved.\" + \"\\n   \" + toUni(\"Downdraft\") + \": You cause a sustained blast of strong wind to blow downward from the top of the cube. Ranged weapon attacks that pass through the cube or that are made against targets within it have disadvantage on their attack rolls. A creature must make a Strength saving throw if it flies into the cube for the first time on a turn or starts its turn there flying. On a failed save, the creature is knocked prone.\" + \"\\n   \" + toUni(\"Updraft\") + \": You cause a sustained updraft within the cube, rising upward from the cube's bottom side. Creatures that end a fall within the cube take only half damage from the fall. When a creature in the cube makes a vertical jump, the creature can jump up to 10 feet higher than normal.\"\r\n\t};\r\n} // dupl_end\r\n"
  },
  {
    "path": "WotC material/ua_20190228_Artificer_dupl.js",
    "content": "var iFileName = \"ua_20190228_Artificer.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the content from the Unearthed Arcana: Artificer 2019 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:A2\"] = {\r\n\tname : \"Unearthed Arcana: Artificer 2019\",\r\n\tabbreviation : \"UA:A2\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-Artificer-2019.pdf\",\r\n\tdate : \"2019/02/28\"\r\n};\r\n\r\n// Adds a new class, the Artificer, with 2 subclasses\r\nClassList['artificer-ua2'] = {\r\n\tregExpSearch : /^(?=.*artificer)(?!.*wizard).*$/i,\r\n\tname : \"Artificer\",\r\n\tsource : [[\"UA:A2\", 1]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Con\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Investigation, Medicine, Nature, Perception, and Sleight of Hand\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\", [\"Any artisan's tool\", 1]],\r\n\t\tsecondary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false, [\"hand crossbow\", \"heavy crossbow\"]]\r\n\t},\r\n\tequipment : \"Artificer starting equipment:\" +\r\n\t\t\"\\n \\u2022 any two simple weapons;\" +\r\n\t\t\"\\n \\u2022 A light crossbow and 20 bolts;\" +\r\n\t\t\"\\n \\u2022 Studded leather armor -or- scale mail;\" +\r\n\t\t\"\\n \\u2022 Thieves' tools and a dungeoneer's pack;\" +\r\n\t\t\"\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Artificer Specialist\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingTable : [[0, 0, 0, 0, 0, 0, 0, 0, 0]].concat(levels.map(function (n) {\r\n\t\treturn defaultSpellTable[Math.ceil(n / 2)];\r\n\t})),\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells : \"list\",\r\n\t\tprepared : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"magical tinkering\" : {\r\n\t\t\tname : \"Magical Tinkering\",\r\n\t\t\tsource : [[\"UA:A2\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I use thieves' or an artisan's tools to give max 1 property to a tiny object:\",\r\n\t\t\t\t\" \\u2022 Emit light (5-ft radius bright light, equal dim light), an odor, or a nonverbal sound\",\r\n\t\t\t\t\" \\u2022 Static visual effect on one of its surfaces; picture, 25 words, shapes, or a mix of those\",\r\n\t\t\t\t\"If I instill a property in more objects than I can have active, the oldest loses its property\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Intelligence modifier of active objects\",\r\n\t\t\taction : [[\"action\", \" (add/remove)\"]]\r\n\t\t},\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"UA:A2\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast prepared artificer cantrips/spells, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"To cast, I must use thieves' or artisan's tools I'm proficient with as a spellcasting focus\",\r\n\t\t\t\t\"I can cast my prepared artificer spells as rituals if they have the ritual tag\",\r\n\t\t\t\t\"Whenever I gain an artificer level, I can swap one artificer cantrip I know for another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\treturn [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4][idx] + \" cantrips known\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic && spName == \"artificer-ua2\") {\r\n\t\t\t\t\t\t\tspellObj.compMaterial = (spellObj.compMaterial ? spellObj.compMaterial + \"; \" : \"\") + \"My artificer spellcasting focus: thieves' tools, artisan's tools I'm proficient with, \" + (classes.known[\"artificer-ua2\"].subclass.indexOf(\"artillerist\") !== -1 ? \"rod, staff, wand, \" : \"\") + \"or an item infused by me.\";\r\n\t\t\t\t\t\t\tif (!spellObj.components) {\r\n\t\t\t\t\t\t\t\tspellObj.components = \"M\\u0192\";\r\n\t\t\t\t\t\t\t} else if (spellObj.components.indexOf(\"M\") == -1) {\r\n\t\t\t\t\t\t\t\tspellObj.components += \",M\\u0192\";\r\n\t\t\t\t\t\t\t} else if ((/M([^\\u0192\\u2020]|$)/).test(spellObj.components)) {\r\n\t\t\t\t\t\t\t\tspellObj.components = spellObj.components.replace(\"M\", \"M\\u0192\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My artificer spells always require me to use a spellcasting focus: thieves' tools, artisan's tools I'm proficient with, or an item infused by me.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\textraname : \"Artificer 2\",\r\n\t\t\t\"infuse item\" : {\r\n\t\t\t\tname : \"Infuse Item\",\r\n\t\t\t\tsource : [[\"UA:A2\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can turn nonmagical objects into magic items using my infusions\",\r\n\t\t\t\t\t\"I can attune to it immediately; If I infuse too many items, the oldest loses its magic\",\r\n\t\t\t\t\t\"The infusion lasts until my death + my Int mod in days, but ends if I unlearn the infusion\",\r\n\t\t\t\t\t\"Each infusion can only be used in one item at a time and only in appropriate items\",\r\n\t\t\t\t\t\"I can use an infused item as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 4 ? 3 : n < 7 ? 4 : n < 11 ? 5 : n < 15 ? 6 : n < 19 ? 7 : 8) + \" infusions known; max \" + (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + \" infused items\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"infuse item\",\r\n\t\t\t\tminlevel : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"infuse item\" : {\r\n\t\t\tname : \"Infuse Item\",\r\n\t\t\tsource : [[\"UA:A2\", 5]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Artificer Infusions to the third page',\r\n\t\t\t\t\"Whenever I gain an artificer level, I can replace an infusion I know with another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 4 ? 3 : n < 7 ? 4 : n < 11 ? 5 : n < 15 ? 6 : n < 19 ? 7 : 8) + \" infusions known; max \" + (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + \" infused items\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Artificer Infusion\",\r\n\t\t\textrachoices : [\"Boots of the Winding Path (prereq: level 4 artificer)\", \"Enhanced Defense\", \"Enhanced Weapon\", \"Many-Handed Pouch (prereq: level 4 artificer)\", \"Radiant Weapon (prereq: level 8 artificer)\", \"Resistant Armor (prereq: level 8 artificer)\", \"Returning Weapon\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 4 ? 3 : n < 7 ? 4 : n < 11 ? 5 : n < 15 ? 6 : n < 19 ? 7 : 8;\r\n\t\t\t}),\r\n\t\t\t\"boots of the winding path (prereq: level 4 artificer)\" : {\r\n\t\t\t\tname : \"Boots of the Winding Path\",\r\n\t\t\t\tsource : [[\"UA:A2\", 9]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The wearer can use a bonus action to teleport up to 15 ft to an unoccupied space it can see\",\r\n\t\t\t\t\t\"It must be a space that the wearer had occupied some time during the current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"pair of boots; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua2\"].level >= 4; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Boots of the Winding Path\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"boots of the winding path\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"UA:A2\", 9]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 12 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Armor +\" + (classes.known[\"artificer-ua2\"].level < 12 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"armor, +1, +2, or +3\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced weapon\" : {\r\n\t\t\t\tname : \"Enhanced Weapon\",\r\n\t\t\t\tsource : [[\"UA:A2\", 9]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"simple/martial weapon; +\" + (n < 12 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Weapon +\" + (classes.known[\"artificer-ua2\"].level < 12 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"weapon, +1, +2, or +3\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"many-handed pouch (prereq: level 4 artificer)\" : {\r\n\t\t\t\tname : \"Many-Handed Pouch\",\r\n\t\t\t\tsource : [[\"UA:A2\", 9]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The infused pouches all share one interdimensional space the size of a single pouch\",\r\n\t\t\t\t\t\"Thus, reaching into any of the pouches allows access to the same storage space\",\r\n\t\t\t\t\t\"A pouch only functions if it is within 100 miles of another infused pouch\",\r\n\t\t\t\t\t\"When the infusion ends, the contents is moved to one of the pouches, chosen randomly\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"2-5 pouches\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua2\"].level >= 4; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Many-Handed Pouch\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"many-handed pouch\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"radiant weapon (prereq: level 8 artificer)\" : {\r\n\t\t\t\tname : \"Radiant Weapon\",\r\n\t\t\t\tsource : [[\"UA:A2\", 9]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon has a +1 bonus to attack and damage rolls made with it and it sheds light\",\r\n\t\t\t\t\t\"As a bonus action, its wielder can start/stop the light, 30-ft radius bright + 30 ft dim light\",\r\n\t\t\t\t\t\"Once per short rest as a reaction after being hit in melee, the wielder can blind its attacker\",\r\n\t\t\t\t\t\"The attack must succeed on a Con save (spell save DC) or be blinded until its next turn ends\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"simple/martial weapon; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua2\"].level >= 8; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Radiant Weapon\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"radiant weapon\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"resistant armor (prereq: level 8 artificer)\" : {\r\n\t\t\t\tname : \"Resistant Armor\",\r\n\t\t\t\tsource : [[\"UA:A2\", 10]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The armor gives its wearer resistance to one type of damage, chosen at the time of infusion\",\r\n\t\t\t\t\t\"Choose from: acid, cold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua2\"].level >= 8; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Armor of Resistance\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"armor of resistance\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"returning weapon\" : {\r\n\t\t\t\tname : \"Returning Weapon\",\r\n\t\t\t\tsource : [[\"UA:A2\", 10]],\r\n\t\t\t\tdescription : \"After being used for a ranged attack, the weapon returns immediately; +1 magical bonus\",\r\n\t\t\t\tadditional : \"simple/martial weapon with the thrown property\",\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Returning Weapon\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"returning weapon\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"tool expertise\" : {\r\n\t\t\tname : \"Tool Expertise\",\r\n\t\t\tsource : [[\"UA:A2\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [expertise with all tools I am proficient with]\",\r\n\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Artificer Specialist\",\r\n\t\t\tsource : [[\"UA:A2\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a specialism and put it in the \"Class\" field on the first page',\r\n\t\t\t\t\"Choose either alchemist or artillerist\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"arcane armament\" : {\r\n\t\t\tname : \"Arcane Armament\",\r\n\t\t\tsource : [[\"UA:A2\", 5]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : \" [as Extra Attack, but only with magic weapon]\"\r\n\t\t},\r\n\t\t\"the right cantrip for the job\" : {\r\n\t\t\tname : \"The Right Cantrip for the Job\",\r\n\t\t\tsource : [[\"UA:A2\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Whenever I finish a short/long rest, I can swap one of my artificer cantrips for another\")\r\n\t\t},\r\n\t\t\"spell-storing item\" : {\r\n\t\t\tname : \"Spell-Storing Item\",\r\n\t\t\tsource : [[\"UA:A2\", 5]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can infuse a 1st-/2nd-level artificer spell into an item I touch\",\r\n\t\t\t\t\"It must be a simple or martial weapon, or something I can use as a spellcasting focus\",\r\n\t\t\t\t\"The spell must have a casting time of 1 action, but I need not have it prepared\",\r\n\t\t\t\t\"A creature holding an infused item can use an action to cast the spell, using my abilities\",\r\n\t\t\t\t\"The item can produce the spell a number of times equal to twice my Int mod (min 2)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"soul of artifice\" : {\r\n\t\t\tname : \"Soul of Artifice\",\r\n\t\t\tsource : [[\"UA:A2\", 6]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : \" [+1 on all saves per attuned magic item (max 6)]\",\r\n\t\t\tsavetxt : {\r\n\t\t\t\ttext : [\"+1 to all saves per attuned magic item\"]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Add the Alchemist specialism\r\nAddSubClass(\"artificer-ua2\", \"alchemist\", {\r\n\tregExpSearch : /^(?=.*alchemist)(?!.*wizard).*$/i,\r\n\tsubname : \"Alchemist\",\r\n\tfullname : \"Alchemist\",\r\n\tsource : [[\"UA:A2\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools of the Trade\",\r\n\t\t\tsource : [[\"UA:A2\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can craft magical potions for half the usual gold and in a quarter of the usual time\"),\r\n\t\t\tadditional : \"alchemist's and herbalism kit proficiency\",\r\n\t\t\ttoolProfs : [\"Alchemist's supplies\", \"Herbalism kit\"],\r\n\t\t\teval : function () {\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Alchemist's supplies\", \"\", 8);\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Herbalism kit\", \"\", 3);\r\n\t\t\t},\r\n\t\t\tspellcastingExtra : [\"purify food and drink\", \"ray of sickness\", \"melf's acid arrow\", \"web\", \"create food and water\", \"stinking cloud\", \"blight\", \"death ward\", \"cloudkill\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Alchemical Homunculus\",\r\n\t\t\tsource : [[\"UA:A2\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I end a long rest, I can use alchemist's supplies to create an alchemical homunculus\",\r\n\t\t\t\t\"I determine its appearance; I can have only 1 at a time, making a new one kills the older\",\r\n\t\t\t\t\"It obeys my commands, is friendly to my allies and I, and acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can only do acidic spittle, alchemical salve, or take the Dash, Disengage, or Help action\",\r\n\t\t\t\t\"Its HP maximum is equal to five times my artificer level + my Intelligence modifier\",\r\n\t\t\t\t\"If it dies, I can, as an action within the hour, spend a spell slot to restore it to its full HP\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (restore)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\teval : function () {\r\n\t\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\t\tvar prefix = false;\r\n\t\t\t\tif (AScompA) {\r\n\t\t\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\t\t\tif (!What(AScompA[a] + 'Comp.Race')) {\r\n\t\t\t\t\t\t\tprefix = AScompA[a];\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!prefix) prefix = DoTemplate('AScomp', 'Add');\r\n\t\t\t\tValue(prefix + 'Comp.Race', \"Alchemical Homunculus\");\r\n\t\t\t\tValue(prefix + 'Comp.Type', \"Construct\");\r\n\t\t\t\tAddSkillProf(\"Perception\", true, false, false, 2, prefix);\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\t\tif (!AScompA) return;\r\n\t\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\t\tif (What(AScompA[a] + 'Comp.Race').toLowerCase().indexOf(\"alchemical homunculus\") !== -1) {\r\n\t\t\t\t\t\tDoTemplate(\"AScomp\", \"Remove\", AScompA[a], true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA) {\r\n\t\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\t\tif (!AScompA) return;\r\n\t\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\t\tif (What(AScompA[a] + 'Comp.Race').toLowerCase().indexOf(\"alchemical homunculus\") !== -1) {\r\n\t\t\t\t\t\tValue(AScompA[a] + \"Comp.Use.HP.Max\", Math.round(lvlA[1] * 5 + What(\"Int Mod\")));\r\n\t\t\t\t\t\tValue(AScompA[a] + \"Comp.Use.Proficiency Bonus\", ProficiencyBonusList[classes.totallevel - 1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Alchemical Mastery\",\r\n\t\t\tsource : [[\"UA:A2\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can enhance the spell I cast when I use alchemist's supplies as my spellcasting focus\",\r\n\t\t\t\t\"I then add my Int mod to one die roll for dealing acid or poison damage, or restoring HP\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer-ua2\") !== -1 && (/poison|acid/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells that deal poison or acid damage which I cast while using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one damage die roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\" || (/color spray|sleep/).test(spellKey)) return;\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tvar toAdd = Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\tif ((/healing spirit|aura of vitality/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description += \" (+\" + toAdd + \" once)\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t} else if (genericSpellDmgEdit(spellKey, spellObj, \"acid|poison\", toAdd < 2 ? 1 : \"Int\", true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// other healing spells\r\n\t\t\t\t\t\t\tvar testRegex = /(.*?\\d+d\\d+)(\\+\\d+)?((\\+\\d+d?\\d*\\/\\d?SL)?(\\+spell(casting)? (ability )?mod(ifier)?|(\\+|-)\\d+ \\(.{3}\\))? hp.*)/i;\r\n\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(testRegex);\r\n\t\t\t\t\t\t\tif (!theMatch) return false;\r\n\t\t\t\t\t\t\tif (theMatch[2]) {\r\n\t\t\t\t\t\t\t\tvar theMid = Number(theMatch[2]) + toAdd;\r\n\t\t\t\t\t\t\t\tif (theMid > -1) theMid = \"+\" + theMid;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar theMid = \"+\" + toAdd;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(testRegex, \"$1\" + theMid + \"$3\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells I cast using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one die rolled for healing, poison damage, or acid damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Alchemical Mastery: Lesser Restoration\",\r\n\t\t\tsource : [[\"UA:A2\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can cast Lesser Restoration without a spell slot if I use alchemist's supplies as a focus\"),\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Alchemical Mastery\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"Sp\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"lesser restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tchanges : \"When using my Alchemical Mastery class feature, I can cast Lesser Restoration a number of times per long rest equal to my Intelligence modifier. To do so, I have to use alchemist's supplies as my spellcasting focus\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Chemical Savant\",\r\n\t\t\tsource : [[\"UA:A2\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I always have resistance to acid and poison damage and immunity to being poisoned\",\r\n\t\t\t\t\"Once per long rest, I can cast Greater Restoration without a spell slot or material comp.\",\r\n\t\t\t\t\"To do so, I have to use alchemist's supplies as my spellcasting focus\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Acid\", \"Poison\"],\r\n\t\t\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"Greater Restoration\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Chemical Savant\",\r\n\t\t\t\tspells : [\"greater restoration\"],\r\n\t\t\t\tselection : [\"greater restoration\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"greater restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tdescription : \"Reduce exhaustion 1 lvl or end charm, petrify, curse, one ability score reduction, or max HP reduction\",\r\n\t\t\t\t\tchanges : \"When using my Chemical Savant class feature and alchemist's supplies as my spellcasting focus, I can cast Greater Restoration once per long rest without using a spell slot or requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Alchemist's Alchemical Homunculus\r\nCreatureList[\"alchemical homunculus-ua\"] = {\r\n\tname : \"Alchemical Homunculus\",\r\n\tsource : [[\"UA:A3\", 7], [\"UA:A2\", 6]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 5,\r\n\thd : [],\r\n\tspeed : \"20 ft, fly 30 ft\",\r\n\tscores : [4, 15, 11, 10, 10, 7],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tdamage_immunities : \"acid, poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Acidic Spittle\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"acid\"],\r\n\t\trange : \"30 ft\",\r\n\t\tmodifiers : [\"\", \"Prof-2\"]\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Creator\",\r\n\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It only takes the Dodge action, unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Acidic Spittle, Alchemical Salve, Dash, Disengage, or Help action.\"\r\n\t}, {\r\n\t\tname : \"Healing\",\r\n\t\tdescription : \"The homunculus regains 2d6 HP whenever the Mending spell is cast on it.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Alchemical Salve (3/Day)\",\r\n\t\tdescription : \"The homunculus produces a salve and touches one creature designated by its creator, granting it one of the following magical benefits chosen by its creator:\" +\r\n\t\t\"\\n  \\u2022 Buoyancy: The target gains a flying speed of 10 ft for 10 minutes.\" +\r\n\t\t\"\\n  \\u2022 Inspiration: The target feels giddy and effective, gaining advantage on certain ability checks in the next hour. The target chooses the checks before or after rolling. The magic runs out after the target has used it on a number of checks equal to the Intelligence modifier of the homunculus' creator (minimum of 1).\" +\r\n\t\t\"\\n  \\u2022 Resilience: The target gains a number of temporary hit points equal to 2d6 + the Intelligence modifier of the homunculus' creator.\"\r\n\t}]\r\n}\r\n\r\n// Add the Artillerist specialism\r\nAddSubClass(\"artificer-ua2\", \"artillerist\", {\r\n\tregExpSearch : /^(?=.*artillerist)(?!.*wizard).*$/i,\r\n\tsubname : \"Artillerist\",\r\n\tfullname : \"Artillerist\",\r\n\tsource : [[\"UA:A2\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools of the Trade\",\r\n\t\t\tsource : [[\"UA:A2\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use rods, wands, and staffs as a spellcasting focus\",\r\n\t\t\t\t\"I can craft magical wands for half the usual gold and in a quarter of the usual time\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"proficiency with smith's \\u0026 woodcarver's tools\",\r\n\t\t\ttoolProfs : [\"Smith's tools\", \"Woodcarver's tools\"],\r\n\t\t\teval : function () {\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Smith's tools\", \"\", 8);\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Woodcarver's tools\", \"\", 5);\r\n\t\t\t\tAddToInv(\"gear\", \"r\", \"Wooden wand\", \"\", 1);\r\n\t\t\t},\r\n\t\t\tspellcastingExtra : [\"shield\", \"thunderwave\", \"scorching ray\", \"shatter\", \"fireball\", \"wind wall\", \"ice storm\", \"wall of fire\", \"cone of cold\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Turret\",\r\n\t\t\tsource : [[\"UA:A2\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use smith's tools to summon a Medium turret within 5 ft of me\",\r\n\t\t\t\t\"I can do so a number of times per long rest for free, or by spending a spell slot\",\r\n\t\t\t\t\"If I create more turrets than I can have active, the oldest one disappears\",\r\n\t\t\t\t\"When I summon one, I decide what type it is: flamethrower, force ballista, or defender\",\r\n\t\t\t\t\"It disappears after 10 minutes, when reduced to 0 HP, or if I dismiss it as an action\",\r\n\t\t\t\t\"When within 60 ft of it, I can activate it as a bonus action, or detonate it as an action\",\r\n\t\t\t\t\"See the companion page for how the different types of turrets operate\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 14 ? 1 : 2;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 14 ? \"max 1 active turret\"  : \"max 2 active turrets\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (summon/detonate)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\teval : function () {\r\n\t\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\t\tvar prefix = false;\r\n\t\t\t\tif (AScompA) {\r\n\t\t\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\t\t\tif (!What(AScompA[a] + 'Comp.Race')) {\r\n\t\t\t\t\t\t\tprefix = AScompA[a];\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!prefix) prefix = DoTemplate('AScomp', 'Add');\r\n\t\t\t\tValue(prefix + 'Comp.Race', \"Arcane Turret\");\r\n\t\t\t\tValue(prefix + 'Comp.Type', \"Construct\");\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\t\tif (!AScompA) return;\r\n\t\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\t\tif (What(AScompA[a] + 'Comp.Race').toLowerCase().indexOf(\"arcane turret\") !== -1) {\r\n\t\t\t\t\t\tDoTemplate(\"AScomp\", \"Remove\", AScompA[a], true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA) {\r\n\t\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\t\tif (!AScompA) return;\r\n\t\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\t\tif (What(AScompA[a] + 'Comp.Race').toLowerCase().indexOf(\"arcane turret\") !== -1) {\r\n\t\t\t\t\t\tValue(AScompA[a] + \"Comp.Use.HP.Max\", lvlA[1] * 5);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wand Prototype\",\r\n\t\t\tsource : [[\"UA:A2\", 8]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can use woodcarver's tools to turn a wand into a magic item\",\r\n\t\t\t\t\"I can only infuse a nonmagical wooden wand and it lasts until I finish my next long rest\",\r\n\t\t\t\t\"I infuse it with an artificer cantrip, even one I don't know, with a 1 action casting time\",\r\n\t\t\t\t\"As an action, I can use the wand to cast the cantrip, using my spellcasting ability\",\r\n\t\t\t\t\"I also add my Intelligence modifier (min 1) to any damage rolls for that cantrip\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"infuse wand with \" + (n < 14 ? \"1 cantrip\" : \"2 cantrips\");\r\n\t\t\t}),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wand Prototype\",\r\n\t\t\t\t\"class\" : \"artificer-ua2\",\r\n\t\t\t\tnotspells : [\"magic stone\", \"mending\", \"shillelagh\"], // all cantrips with a casting time that is not 1 action\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\ttimes : levels.map(function(n) {\r\n\t\t\t\t\treturn n < 14 ? 1 : 2;\r\n\t\t\t\t}),\r\n\t\t\t\tfirstCol : \"W\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.thisWeapon[3] || v.thisWeapon[4].indexOf(\"artificer-ua2\") == -1) return;\r\n\t\t\t\t\t\tvar artSp = CurrentSpells[\"artificer-ua2\"];\r\n\t\t\t\t\t\tif (!artSp || !artSp.selectBo || !v.thisWeapon[3] || v.thisWeapon[4].indexOf(\"artificer-ua2\") == -1 || artSp.selectCa.indexOf(v.thisWeapon[3]) !== -1) return;\r\n\t\t\t\t\t\tvar artBoSp = CurrentSpells[\"artificer-ua2\"].bonus.subclassfeature6.selection;\r\n\t\t\t\t\t\tif (artBoSp && artBoSp.indexOf(v.thisWeapon[3]) !== -1) {\r\n\t\t\t\t\t\t\toutput.die = output.die.replace(/C/g, 1).replace(/B/g, 0).replace(/0.?d\\d+/g, 0);\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips cast through a wand infused by my Wand Prototype class feature get my Intelligence modifier added to their damage (minimum of +1) and are cast as if coming from a magic item (thus don't require any components nor scale with level).\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName != \"artificer-ua2\" || isDuplicate || !CurrentSpells[\"artificer-ua2\"]) return;\r\n\t\t\t\t\t\tvar artBoSp = CurrentSpells[\"artificer-ua2\"].bonus.subclassfeature6.selection;\r\n\t\t\t\t\t\tif (!artBoSp || artBoSp.indexOf(spellKey) == -1) return;\r\n\t\t\t\t\t\tspellObj.components = \"\";\r\n\t\t\t\t\t\tspellObj.compMaterial = \"Spells cast by magic items don't require any components.\";\r\n\t\t\t\t\t\tvar aSpell = SpellsList[spellKey];\r\n\t\t\t\t\t\tif (aSpell.descriptionCantripDie) {\r\n\t\t\t\t\t\t\tvar cDie = 1;\r\n\t\t\t\t\t\t\tvar newCantripDieDescr = aSpell.descriptionCantripDie;\r\n\t\t\t\t\t\t\twhile ((/`CD(-|\\+|\\*)?\\d*`/).test(newCantripDieDescr)) {\r\n\t\t\t\t\t\t\t\tif ((/`CD(-|\\+)\\d+`/).test(newCantripDieDescr)) {\r\n\t\t\t\t\t\t\t\t\tvar cDie = cDie + Number(newCantripDieDescr.replace(/.*`CD((-|\\+)\\d+)`.*/, \"$1\"));\r\n\t\t\t\t\t\t\t\t} else if ((/`CD\\*\\d+`/).test(newCantripDieDescr)) {\r\n\t\t\t\t\t\t\t\t\tvar cDie = cDie * Number(newCantripDieDescr.replace(/.*`CD\\*(\\d+)`.*/, \"$1\"));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tnewCantripDieDescr = newCantripDieDescr.replace(/`CD(-|\\+|\\*)?\\d*`/, cDie);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspellObj.description = newCantripDieDescr.replace(/\\b0d\\d+()/g, \"$1\").replace(/\\b0d\\d+/g, \"0\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgenericSpellDmgEdit(spellKey, spellObj, \"[\\\\w\\\\.]+\", Math.max(Number(What(\"Int Mod\")), 1), false, true)\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips cast through a wand infused by my Wand Prototype class feature get my Intelligence modifier added to their damage (minimum of +1) and are cast as if coming from a magic item (thus don't require any components nor scale with level).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fortified Position\",\r\n\t\t\tsource : [[\"UA:A2\", 8]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"My allies and I have half cover while within 10 ft of an arcane turret I created\")\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Artillerist's Arcane Turret\r\nCreatureList[\"arcane turret-ua\"] = {\r\n\tname : \"Arcane Turret\",\r\n\tsource : [[\"UA:A3\", 10], [\"UA:A2\", 7]],\r\n\tsize : 3,\r\n\ttype : \"Construct\",\r\n\talignment : \"Neutral\",\r\n\tac : 18,\r\n\thp : 15,\r\n\thd : [0, 0],\r\n\tspeed : \"15 ft, climb 15 ft\",\r\n\tscores : [10, 10, 10, 10, 10, 10],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"all conditions\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 0,\r\n\tattacksAction : 0,\r\n\tattacks : [{\r\n\t\tname : \"Flamethrower\",\r\n\t\tability : 4,\r\n\t\tdamage : [1, 8, \"fire\"],\r\n\t\trange : \"15-ft cone\",\r\n\t\tdescription : \"Dex save, success - half damage; Unattended flammable objects ignite\",\r\n\t\tdc : true,\r\n\t\tmodifiers : [\"oProf+oInt\", \"\"],\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"The turret exhales fire in an adjacent 15-foot cone that the creator designate. Each creature in that area must make a Dexterity saving throw against the creator's spell save DC, taking 1d8 fire damage on a failed save or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\"\r\n\t}, {\r\n\t\tname : \"Force Ballista\",\r\n\t\tability : 4,\r\n\t\tdamage : [2, 8, \"force\"],\r\n\t\trange : \"120 ft\",\r\n\t\tdescription : \"Creatures hit are pushed 5 ft away\",\r\n\t\tmodifiers : [\"oProf+oInt\", \"\"],\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"Make a range spell attack, originating from the turret, at one creature or object within 120 feet of it. On a hit, the target takes 2d8 force damage, and if the target is a creature, it is pushed up to 5 feet away from the turret.\"\r\n\t}, {\r\n\t\tname : \"Detonate\",\r\n\t\tability : 4,\r\n\t\tdamage : [3, 6, \"force\"],\r\n\t\trange : \"10-ft radius\",\r\n\t\tdescription : \"Dex save, success - half damage; Destroys turret\",\r\n\t\tdc : true,\r\n\t\tmodifiers : [\"oProf+oInt\", \"\"],\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"Detonate destroys the turret and forces each creature within 10 feet of it to make a Dexterity saving throw against your spell save DC, taking 3d6 force damage on a failed save or half as much damage on a successful one.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Healing\",\r\n\t\tdescription : \"The turret regains 2d6 HP whenever Mending is cast on it.\"\r\n\t}, {\r\n\t\tname : \"Turret Type\",\r\n\t\tdescription : \"Upon creation, the creator decides what type of turret it is: Flamethrower, Force Ballista, or Defender. What feature/attack it can use depends on its type.\"\r\n\t}, {\r\n\t\tname : \"Defender\",\r\n\t\tdescription : \"The turret emits a burst of positive energy that grants itself and each creature of the creator's choice within 10 feet of it a number of temporary hit points equal to 1d8 + the creator's Intelligence modifier (minimum of +1).\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Creator\",\r\n\t\tdescription : \"The turret only does something when activated by its creator. It uses the spell attack and spell save DC of its creator, and has five times the creator's artificer level in HP.\"\r\n\t}, {\r\n\t\tname : \"Activation\",\r\n\t\tdescription : \"The creator of the turret can activate it as a bonus action while within 60 ft of it. Once activated, the turret does as its creator wishes, move to an unoccupied space and use the action associated with its type:\" +\r\n\t\t\"\\n  \\u2022 Flamethrower: use the flamethrower attack.\" +\r\n\t\t\"\\n  \\u2022 Force Ballista: use the force ballista attack.\" +\r\n\t\t\"\\n  \\u2022 Defender: use the defender feature, see the features to the left.\"\r\n\t}, {\r\n\t\tname : \"Detonate\",\r\n\t\tdescription : \"The creator of the turret can use an action to detonate the turret when within 60 ft of it, see the attack section.\"\r\n\t}]\r\n};\r\n\r\n// Add the new spell\r\nSpellsList[\"arcane weapon-ua\"] = {\r\n\tname : \"Arcane Weapon\",\r\n\tclasses : [\"artificer-ua3\", \"artificer-ua2\"],\r\n\tsource : [[\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 wea +1d6 dmg (acid, cold, fire, lightn., poison, or thunder); 1 bns change dmg type; SL3: conc, 8 h\",\r\n\tdescriptionFull : \"You channel arcane energy into one simple or martial weapon you're holding, and choose one damage type: acid, cold, fire, lightning, poison, or thunder. Until the spell ends, you deal an extra 1d6 damage of the chosen type to any target you hit with the weapon. If the weapon isn't magical, it becomes a magic weapon for the spell's duration.\\n   As a bonus action, you can change the damage type, choosing from the options above.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can maintain your concentration on the spell for up to 8 hours. \"\r\n};\r\n\r\n// Add the new magic items\r\nif (!MagicItemsList[\"boots of the winding path\"]) {\r\n\tMagicItemsList[\"boots of the winding path\"] = {\r\n\t\tname : \"Boots of the Winding Path\",\r\n\t\tsource : [[\"E:RLW\", 62], [\"T\", 21], [\"UA:A2\", 9], [\"UA:A3\", 12]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"While wearing these boots, I can teleport up to 15 ft as a bonus action to an unoccupied space I can see, as long as I occupied that space at some point during the current turn.\",\r\n\t\tdescriptionFull : \"While wearing these boots, a creature can teleport up to 15 feet as a bonus action to an unoccupied space the creature can see. The creature must have occupied that space at some point during the current turn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t}\r\n}\r\nMagicItemsList[\"many-handed pouch-ua\"] = {\r\n\tname : \"Many-Handed Pouch\",\r\n\tsource : [[\"UA:A3\", 13], [\"UA:A2\", 9]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"These 2-5 pouches all share one interdimensional space of the same capacity as a single pouch. Thus, reaching into any of the pouches allows access to the same storage space. A pouch only functions if it is within 100 miles of another pouch of its set.\",\r\n\tdescriptionFull : \"The infused pouches all share one interdimensional space of the same capacity as a single pouch. Thus, reaching into any of the pouches allows access to the same storage space. A pouch operates as long as it is within 100 miles of another one of the pouches; the pouch is otherwise empty and won't accept any contents.\\n   If this infusion ends, the items stored in the shared space move into one of the pouches, determined at random. The rest of the pouches become empty.\"\r\n}\r\nMagicItemsList[\"radiant weapon-ua\"] = {\r\n\tname : \"Radiant Weapon\",\r\n\tnameTest : \"Radiant\",\r\n\tsource : [[\"UA:A3\", 13], [\"UA:A2\", 9]],\r\n\ttype : \"weapon (any)\",\r\n\tdescription : \"This magic weapon adds a +1 on its attacks and damage. As a bonus action, I can start or stop it shedding light, bright in 30 ft and dim for another 30 ft. Once per short rest as a reaction when hit by a melee attack, I can blind the attacker until the end of its next turn unless it makes a Con save (my spell DC).\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it. While holding it, the wielder can take a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet. The wielder can extinguish the light as a bonus action.\\n   As a reaction immediately after being hit by a melee attack, the wielder can cause the attacker to be blinded until the end of the attacker's next turn, unless the attacker succeeds on a Constitution saving throw against your spell save DC. Once used, this reaction can't be used again until the wielder finishes a short or long rest.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"blind attacker\",\r\n\taction : [[\"bonus action\", \" (shed light/stop)\"], [\"reaction\", \" (after melee hit)\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reaction to blind attacker';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Radiant\" in the name of a weapon, it will be treated as the magic weapon Radiant Weapon. It has +1 to hit and damage and can be used to shed light or blind an attacker.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\nif (!MagicItemsList[\"returning weapon\"]) {\r\n\tMagicItemsList[\"returning weapon\"] = {\r\n\t\tname : \"Returning Weapon\",\r\n\t\tnameTest : \"Returning\",\r\n\t\tsource : [[\"E:RLW\", 63], [\"T\", 23], [\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\t\ttype : \"weapon (any thrown)\",\r\n\t\tdescription : \"This magic weapon grants a +1 bonus to attack and damage rolls I make with it. It returns to my hand immediately after I use it to make a ranged attack.\",\r\n\t\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it, and it returns to the wielder's hand immediately after it is used to make a ranged attack.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !(/melee/i).test(inObj.range) || !(/thrown/i).test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && v.isWeapon && /^(?=.*returning)(?=.*\\bthrown\\b).*$/i.test(v.WeaponText) && /\\d ?(ft|m)\\.?[^)]/.test(fields.Range)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Returns immediately after ranged attack';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the word \"Returning\" in the name of a thrown weapon, it will be treated as the magic weapon Returning Weapon. It has +1 to hit and damage and returns to my hand immediately after I use it to make a ranged attack.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.isWeapon && /^(?=.*returning)(?=.*\\bthrown\\b).*$/i.test(v.WeaponText) && /\\d ?(ft|m)\\.?[^)]/.test(fields.Range)) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// Set the Artificer class spell list\r\nvar UAA2_SetArtificerSpells = function(){\r\n\tvar artSp = [\r\n\t\t\"acid splash\",\r\n\t\t\"dancing lights\",\r\n\t\t\"fire bolt\",\r\n\t\t\"guidance\",\r\n\t\t\"light\",\r\n\t\t\"mage hand\",\r\n\t\t\"mending\",\r\n\t\t\"message\",\r\n\t\t\"poison spray\",\r\n\t\t\"prestidigitation\",\r\n\t\t\"ray of frost\",\r\n\t\t\"resistance\",\r\n\t\t\"shocking grasp\",\r\n\t\t\"spare the dying\",\r\n\t\t\"thorn whip\",\r\n\t\t// level 1\r\n\t\t\"alarm\",\r\n\t\t\"cure wounds\",\r\n\t\t\"detect magic\",\r\n\t\t\"disguise self\",\r\n\t\t\"expeditious retreat\",\r\n\t\t\"false life\",\r\n\t\t\"grease\",\r\n\t\t\"identify\",\r\n\t\t\"jump\",\r\n\t\t\"longstrider\",\r\n\t\t\"sanctuary\",\r\n\t\t\"shield of faith\",\r\n\t\t// level 2\r\n\t\t\"aid\",\r\n\t\t\"alter self\",\r\n\t\t\"arcane lock\",\r\n\t\t\"blur\",\r\n\t\t\"continual flame\",\r\n\t\t\"darkvision\",\r\n\t\t\"enhance ability\",\r\n\t\t\"enlarge/reduce\",\r\n\t\t\"heat metal\",\r\n\t\t\"invisibility\",\r\n\t\t\"lesser restoration\",\r\n\t\t\"levitate\",\r\n\t\t\"magic mouth\",\r\n\t\t\"magic weapon\",\r\n\t\t\"protection from poison\",\r\n\t\t\"rope trick\",\r\n\t\t\"see invisibility\",\r\n\t\t\"spider climb\",\r\n\t\t// level 3\r\n\t\t\"blink\",\r\n\t\t\"dispel magic\",\r\n\t\t\"elemental weapon\",\r\n\t\t\"fly\",\r\n\t\t\"gaseous form\",\r\n\t\t\"glyph of warding\",\r\n\t\t\"haste\",\r\n\t\t\"protection from energy\",\r\n\t\t\"revivify\",\r\n\t\t\"water breathing\",\r\n\t\t\"water walk\",\r\n\t\t// level 4\r\n\t\t\"arcane eye\",\r\n\t\t\"fabricate\",\r\n\t\t\"freedom of movement\",\r\n\t\t\"leomund's secret chest\",\r\n\t\t\"mordenkainen's faithful hound\",\r\n\t\t\"mordenkainen's private sanctum\",\r\n\t\t\"otiluke's resilient sphere\",\r\n\t\t\"stone shape\",\r\n\t\t\"stoneskin\",\r\n\t\t// level 5\r\n\t\t\"animate objects\",\r\n\t\t\"bigby's hand\",\r\n\t\t\"creation\",\r\n\t\t\"greater restoration\",\r\n\t\t\"wall of stone\"\r\n\t];\r\n\tfor (var a = 0; a < artSp.length; a++) {\r\n\t\tvar aArtSp = SpellsList[artSp[a]];\r\n\t\tif(aArtSp && aArtSp.classes && aArtSp.classes.indexOf(\"artificer-ua2\") === -1) aArtSp.classes.push(\"artificer-ua2\");\r\n\t};\r\n\tvar artMi = [\r\n\t\t[\"alchemy jug\"],\r\n\t\t[\"bag of holding\"],\r\n\t\t[\"cap of water breathing\"],\r\n\t\t[\"cloak of the manta ray\"],\r\n\t\t[\"goggles of night\"],\r\n\t\t[\"lantern of revealing\"],\r\n\t\t[\"rope of climbing\"],\r\n\t\t[\"sending stones\"],\r\n\t\t[\"wand of magic detection\"],\r\n\t\t[\"wand of secrets\"],\r\n\t\t[\"boots of elvenkind\", 12],\r\n\t\t[\"boots of striding and springing\", 12],\r\n\t\t[\"boots of the winterlands\", 12],\r\n\t\t[\"bracers of archery\", 12],\r\n\t\t[\"brooch of shielding\", 12],\r\n\t\t[\"cloak of elvenkind\", 12],\r\n\t\t[\"cloak of protection\", 12],\r\n\t\t[\"eyes of charming\", 12],\r\n\t\t[\"eyes of the eagle\", 12],\r\n\t\t[\"gauntlets of ogre power\", 12],\r\n\t\t[\"gloves of missile snaring\", 12],\r\n\t\t[\"gloves of swimming and climbing\", 12],\r\n\t\t[\"gloves of thievery\", 12],\r\n\t\t[\"hat of disguise\", 12],\r\n\t\t[\"headband of intellect\", 12],\r\n\t\t[\"helm of telepathy\", 12],\r\n\t\t[\"medallion of thoughts\", 12],\r\n\t\t[\"periapt of wound closure\", 12],\r\n\t\t[\"pipes of haunting\", 12],\r\n\t\t[\"pipes of the sewers\", 12],\r\n\t\t[\"quiver of ehlonna\", 12],\r\n\t\t[\"ring of jumping\", 12],\r\n\t\t[\"ring of mind shielding\", 12],\r\n\t\t[\"ring of water walking\", 12],\r\n\t\t[\"slippers of spider climbing\", 12],\r\n\t\t[\"winged boots\", 12],\r\n\t\t[\"amulet of health\", 16],\r\n\t\t[\"belt of giant strength\", 16, \"hill (str 21, rare)\"],\r\n\t\t[\"boots of levitation\", 16],\r\n\t\t[\"boots of speed\", 16],\r\n\t\t[\"bracers of defense\", 16],\r\n\t\t[\"cloak of the bat\", 16],\r\n\t\t[\"dimensional shackles\", 16],\r\n\t\t[\"gem of seeing\", 16],\r\n\t\t[\"horn of blasting\", 16],\r\n\t\t[\"ring of free action\", 16],\r\n\t\t[\"ring of protection\", 16],\r\n\t\t[\"ring of the ram\", 16]\r\n\t];\r\n\tvar theObj = ClassList['artificer-ua2'].features[\"infuse item\"];\r\n\tfor (var a = 0; a < artMi.length; a++) {\r\n\t\tvar MI0 = artMi[a][0];\r\n\t\tvar MI1 = artMi[a][1];\r\n\t\tvar MI2 = artMi[a][2];\r\n\t\tvar anArtMi = MagicItemsList[MI0];\r\n\t\tif (!anArtMi) continue;\r\n\t\tif (MI2) {\r\n\t\t\tanArtMi = {\r\n\t\t\t\tname : MagicItemsList[MI0][MI2].name ? MagicItemsList[MI0][MI2].name : MagicItemsList[MI0].name + \" [\" + MI2.capitalize() + \"]\",\r\n\t\t\t\tsource : MagicItemsList[MI0][MI2].source ? MagicItemsList[MI0][MI2].source : MagicItemsList[MI0].source,\r\n\t\t\t\tattunement : MagicItemsList[MI0][MI2].attunement !== undefined ? MagicItemsList[MI0][MI2].attunement : MagicItemsList[MI0].attunement\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar theI = \"Replicate: \" + anArtMi.name + (MI1 ? \" (prereq: level \" + MI1 + \" artificer)\" : \"\");\r\n\t\tvar theILC = theI.toLowerCase();\r\n\t\ttheObj[theILC] = {\r\n\t\t\tname : anArtMi.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : anArtMi.source,\r\n\t\t\teval : 'AddMagicItem(\"' + anArtMi.name + '\");',\r\n\t\t\tremoveeval : MI2 ? 'if (CurrentMagicItems.choices.indexOf(\"' + MI2 + '\") != -1) { MagicItemClear(CurrentMagicItems.choices.indexOf(\"' + MI2 + '\") + 1, true); };' : 'if (CurrentMagicItems.known.indexOf(\"' + MI0 + '\") != -1) { MagicItemClear(CurrentMagicItems.known.indexOf(\"' + MI0 + '\") + 1, true); };'\r\n\t\t};\r\n\t\tif (anArtMi.attunement) theObj[theILC].additional = \"requires attunement\";\r\n\t\tif (MI1) theObj[theILC].prereqeval = \"classes.known['artificer-ua2'].level >= \" + MI1;\r\n\t\ttheObj.extrachoices.push(theI);\r\n\t};\r\n}();\r\n"
  },
  {
    "path": "WotC material/ua_20190514_Artificer_dupl.js",
    "content": "var iFileName = \"ua_20190514_Artificer.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n// This file adds the content from the second Unearthed Arcana: Artificer article of 2019 to MPMB's Character Record Sheet\r\n// It doesn't change anything compared to the UA article of 2019/02/28, but adds additional options: more spells, subclasses, and magic items\r\n\r\n// Define the source\r\nSourceList[\"UA:A3\"] = {\r\n\tname : \"Unearthed Arcana: Artificer 2019v2\",\r\n\tabbreviation : \"UA:A3\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-Artificer2-2019.pdf\",\r\n\tdate : \"2019/05/14\"\r\n};\r\n\r\n// Adds a new class, the Artificer, with 4 subclasses\r\nClassList['artificer-ua3'] = {\r\n\tregExpSearch : /^(?=.*artificer)(?!.*wizard).*$/i,\r\n\tname : \"Artificer\",\r\n\tsource : [[\"UA:A3\", 1]],\r\n\tprimaryAbility : \"Intelligence\",\r\n\tabilitySave : 4,\r\n\tprereqs : \"Intelligence 13\",\r\n\timprovements : [0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5],\r\n\tdie : 8,\r\n\tsaves : [\"Con\", \"Int\"],\r\n\tskillstxt : {\r\n\t\tprimary : \"Choose two from Arcana, History, Investigation, Medicine, Nature, Perception, and Sleight of Hand\"\r\n\t},\r\n\ttoolProfs : {\r\n\t\tprimary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\", [\"Artisan's tools\", 1]],\r\n\t\tsecondary : [[\"Thieves' tools\", \"Dex\"], \"Tinker's tools\"]\r\n\t},\r\n\tarmorProfs : {\r\n\t\tprimary : [true, true, false, true],\r\n\t\tsecondary : [true, true, false, true]\r\n\t},\r\n\tweaponProfs : {\r\n\t\tprimary : [true, false, [\"hand crossbow\", \"heavy crossbow\"]]\r\n\t},\r\n\tequipment : \"Artificer starting equipment:\" +\r\n\t\t\"\\n \\u2022 Any two simple weapons;\" +\r\n\t\t\"\\n \\u2022 A light crossbow and 20 bolts;\" +\r\n\t\t\"\\n \\u2022 Studded leather armor -or- scale mail;\" +\r\n\t\t\"\\n \\u2022 Thieves' tools and a dungeoneer's pack;\" +\r\n\t\t\"\\n\\nAlternatively, choose 5d4 \\xD7 10 gp worth of starting equipment instead of both the class' and the background's starting equipment.\",\r\n\tsubclasses : [\"Artificer Specialist\", []],\r\n\tsubclassGainedLevel : 3,\r\n\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\tspellcastingFactor : 2,\r\n\tspellcastingFactorRoundupMulti : true, // 2019v2\r\n\tspellcastingKnown : {\r\n\t\tcantrips : [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4],\r\n\t\tspells : \"list\",\r\n\t\tprepared : true\r\n\t},\r\n\tfeatures : {\r\n\t\t\"magical tinkering\" : {\r\n\t\t\tname : \"Magical Tinkering\",\r\n\t\t\tsource : [[\"UA:A3\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I use thieves' or an artisan's tools to give max 1 property to a tiny object:\",\r\n\t\t\t\t\" \\u2022 Emit light (5-ft radius bright light, equal dim light), an odor, or a nonverbal sound\",\r\n\t\t\t\t\" \\u2022 Static visual effect on one of its surfaces; picture, 25 words, shapes, or a mix of those\",\r\n\t\t\t\t\"If I instill a property in more objects than I can have active, the oldest loses its property\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"Intelligence modifier of active objects\",\r\n\t\t\taction : [[\"action\", \" (add/remove)\"]],\r\n\t\t\textraname : \"Artificer 2\",\r\n\t\t\t\"infuse item\" : {\r\n\t\t\t\tname : \"Infuse Item\",\r\n\t\t\t\tsource : [[\"UA:A3\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can turn nonmagical objects into magic items using my infusions\",\r\n\t\t\t\t\t\"I can attune to it immediately; If I infuse too many items, the oldest loses its magic\",\r\n\t\t\t\t\t\"The infusion lasts until my death + my Int mod in days, but ends if I unlearn the infusion\",\r\n\t\t\t\t\t\"Each infusion can only be used in one item at a time and only in appropriate items\",\r\n\t\t\t\t\t\"I can use an infused item as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 2 ? \"\" : (n < 4 ? 3 : n < 7 ? 4 : n < 11 ? 5 : n < 15 ? 6 : n < 19 ? 7 : 8) + \" infusions known; max \" + (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + \" infused items\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"infuse item\",\r\n\t\t\t\tminlevel : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"spellcasting\" : {\r\n\t\t\tname : \"Spellcasting\",\r\n\t\t\tsource : [[\"UA:A3\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast prepared artificer cantrips/spells, using Intelligence as my spellcasting ability\",\r\n\t\t\t\t\"To cast, I must use thieves' or artisan's tools I'm proficient with as a spellcasting focus\",\r\n\t\t\t\t\"I can cast my prepared artificer spells as rituals if they have the ritual tag\",\r\n\t\t\t\t\"Whenever I gain an artificer level, I can swap one artificer cantrip I know for another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\treturn [2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4][idx] + \" cantrips known\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (!spellObj.psionic && spName == \"artificer-ua3\") {\r\n\t\t\t\t\t\t\tspellObj.compMaterial = (spellObj.compMaterial ? spellObj.compMaterial + \"; \" : \"\") + \"My artificer spellcasting focus: thieves' tools, artisan's tools I'm proficient with, \" + (classes.known[\"artificer-ua3\"].subclass.indexOf(\"artillerist\") !== -1 ? \"rod, staff, wand, \" : \"\") + \"or an item infused by me.\";\r\n\t\t\t\t\t\t\tif (GetFeatureChoice(\"classes\", \"artificer-ua3\", \"spellcasting\", true).indexOf(\"don't change component column on spell sheet\") != -1) {\r\n\t\t\t\t\t\t\t\t// do nothing if set to do so\r\n\t\t\t\t\t\t\t} else if (!spellObj.components) {\r\n\t\t\t\t\t\t\t\tspellObj.components = \"M\\u0192\";\r\n\t\t\t\t\t\t\t} else if (spellObj.components.indexOf(\"M\") == -1) {\r\n\t\t\t\t\t\t\t\tspellObj.components += \",M\\u0192\";\r\n\t\t\t\t\t\t\t} else if ((/M([^\\u0192\\u2020]|$)/).test(spellObj.components)) {\r\n\t\t\t\t\t\t\t\tspellObj.components = spellObj.components.replace(\"M\", \"M\\u0192\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My artificer spells always require me to use a spellcasting focus: thieves' tools, artisan's tools I'm proficient with, or an item infused by me.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\textrachoices : [\"Don't change component column on spell sheet\"],\r\n\t\t\textraname : \"Artificer Spellcasting\",\r\n\t\t\t\"don't change component column on spell sheet\" : {\r\n\t\t\t\tname : \"[Meta] Don't alter spell sheets\",\r\n\t\t\t\tsource : [[\"UA:A3\", 3]],\r\n\t\t\t\tdescription: desc(\"The automation will not add M\\u0192 to each artificer spell on the generated spell sheets\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"infuse item\" : {\r\n\t\t\tname : \"Infuse Item\",\r\n\t\t\tsource : [[\"UA:A3\", 5]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Artificer Infusions to the third page',\r\n\t\t\t\t\"Whenever I gain an artificer level, I can replace an infusion I know with another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : (n < 4 ? 3 : n < 7 ? 4 : n < 11 ? 5 : n < 15 ? 6 : n < 19 ? 7 : 8) + \" infusions known; max \" + (n < 6 ? 2 : n < 11 ? 3 : n < 16 ? 4 : 5) + \" infused items\";\r\n\t\t\t}),\r\n\t\t\textraname : \"Artificer Infusion\",\r\n\t\t\textrachoices : [\"Boots of the Winding Path (prereq: level 4 artificer)\", \"Enhanced Defense\", \"Enhanced Weapon\", \"Enhanced Wand\", \"Many-Handed Pouch (prereq: level 4 artificer)\", \"Radiant Weapon (prereq: level 8 artificer)\", \"Repeating Shot\", \"Repulsion Shield (prereq: level 8 artificer)\", \"Resistant Armor (prereq: level 8 artificer)\", \"Returning Weapon\"],\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? 0 : n < 4 ? 3 : n < 7 ? 4 : n < 11 ? 5 : n < 15 ? 6 : n < 19 ? 7 : 8;\r\n\t\t\t}),\r\n\t\t\t\"boots of the winding path (prereq: level 4 artificer)\" : {\r\n\t\t\t\tname : \"Boots of the Winding Path\",\r\n\t\t\t\tsource : [[\"UA:A3\", 12]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The wearer can use a bonus action to teleport up to 15 ft to an unoccupied space it can see\",\r\n\t\t\t\t\t\"It must be a space that the wearer had occupied some time during the current turn\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"pair of boots; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua3\"].level >= 4; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Boots of the Winding Path\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"boots of the winding path\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced defense\" : {\r\n\t\t\t\tname : \"Enhanced Defense\",\r\n\t\t\t\tsource : [[\"UA:A3\", 12]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"armor/shield; +\" + (n < 12 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Armor +\" + (classes.known[\"artificer-ua3\"].level < 12 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"armor, +1, +2, or +3\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced wand\" : { // 2019v2\r\n\t\t\t\tname : \"Enhanced Wand\",\r\n\t\t\t\tsource : [[\"UA:A3\", 12]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"Wand of the War Mage +\" + (n < 12 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Wand of the War Mage +\" + (classes.known[\"artificer-ua3\"].level < 12 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"wand of the war mage, +1, +2, or +3\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"enhanced weapon\" : {\r\n\t\t\t\tname : \"Enhanced Weapon\",\r\n\t\t\t\tsource : [[\"UA:A3\", 12]],\r\n\t\t\t\tdescription : \"\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"simple/martial weapon; +\" + (n < 12 ? 1 : 2) + \" magical\";\r\n\t\t\t\t}),\r\n\t\t\t\teval : function (lvl, chc) {\r\n\t\t\t\t\tAddMagicItem(\"Weapon +\" + (classes.known[\"artificer-ua3\"].level < 12 ? 1 : 2));\r\n\t\t\t\t},\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"weapon, +1, +2, or +3\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"many-handed pouch (prereq: level 4 artificer)\" : {\r\n\t\t\t\tname : \"Many-Handed Pouch\",\r\n\t\t\t\tsource : [[\"UA:A3\", 13]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The infused pouches all share one interdimensional space the size of a single pouch\",\r\n\t\t\t\t\t\"Thus, reaching into any of the pouches allows access to the same storage space\",\r\n\t\t\t\t\t\"A pouch only functions if it is within 100 miles of another infused pouch\",\r\n\t\t\t\t\t\"When the infusion ends, the contents is moved to one of the pouches, chosen randomly\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"2-5 pouches\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua3\"].level >= 4; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Many-Handed Pouch\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"many-handed pouch\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"radiant weapon (prereq: level 8 artificer)\" : {\r\n\t\t\t\tname : \"Radiant Weapon\",\r\n\t\t\t\tsource : [[\"UA:A3\", 13]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon has a +1 bonus to attack and damage rolls made with it and it sheds light\",\r\n\t\t\t\t\t\"As a bonus action, its wielder can start/stop the light, 30-ft radius bright + 30 ft dim light\",\r\n\t\t\t\t\t\"Once per short rest as a reaction after being hit in melee, the wielder can blind its attacker\",\r\n\t\t\t\t\t\"The attack must succeed on a Con save (spell save DC) or be blinded until its next turn ends\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"simple/martial weapon; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua3\"].level >= 8; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Radiant Weapon\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"radiant weapon\") != -1 ? CurrentMagicItems.known.indexOf(\"radiant weapon\") : CurrentMagicItems.known.indexOf(\"radiant weapon-ua\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"repeating shot\" : { // 2019v2\r\n\t\t\t\tname : \"Repeating Shot\",\r\n\t\t\t\tsource : [[\"UA:A3\", 13]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The weapon requiring ammunition has a +1 bonus to attack and damage rolls made with it\",\r\n\t\t\t\t\t\"It magically produces one piece of ammunition whenever it is used to make a ranged attack\",\r\n\t\t\t\t\t\"Thus, it doesn't require ammunition and ignores the loading property if it has it\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"weapon with ammo; requires attunement\",\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Repeating Shot\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"repeating shot\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"repulsion shield (prereq: level 8 artificer)\" : { // 2019v2\r\n\t\t\t\tname : \"Repulsion Shield\",\r\n\t\t\t\tsource : [[\"UA:A3\", 14]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The shield gives its wearer an additional +1 bonus to AC\",\r\n\t\t\t\t\t\"As a reaction when hit by a melee attack, the wearer can push their attacker up to 15 ft\",\r\n\t\t\t\t\t\"This reaction can only be used once per short or long rest\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"shield; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua3\"].level >= 8; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Repulsion Shield\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"repulsion shield\") != -1 ? CurrentMagicItems.known.indexOf(\"repulsion shield\") : CurrentMagicItems.known.indexOf(\"repulsion shield-ua\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"resistant armor (prereq: level 8 artificer)\" : {\r\n\t\t\t\tname : \"Resistant Armor\",\r\n\t\t\t\tsource : [[\"UA:A3\", 14]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The armor gives its wearer resistance to one type of damage, chosen at the time of infusion\",\r\n\t\t\t\t\t\"Choose from: acid,\tcold, fire, force, lightning, necrotic, poison, psychic, radiant, or thunder\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\t\t\tprereqeval : function(v) { return classes.known[\"artificer-ua3\"].level >= 8; },\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Armor of Resistance\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"armor of resistance\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"returning weapon\" : {\r\n\t\t\t\tname : \"Returning Weapon\",\r\n\t\t\t\tsource : [[\"UA:A3\", 14]],\r\n\t\t\t\tdescription : \"After being used for a ranged attack, the weapon returns immediately; +1 magical bonus\",\r\n\t\t\t\tadditional : \"simple/martial weapon with the thrown property\",\r\n\t\t\t\teval : function (lvl, chc) { AddMagicItem(\"Returning Weapon\"); },\r\n\t\t\t\tremoveeval : function (lvl, chc) {\r\n\t\t\t\t\tvar loc = CurrentMagicItems.known.indexOf(\"returning weapon\");\r\n\t\t\t\t\tif (loc == -1) return;\r\n\t\t\t\t\tMagicItemClear(loc + 1, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"tool expertise\" : {\r\n\t\t\tname : \"Tool Expertise\",\r\n\t\t\tsource : [[\"UA:A3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : \" [expertise with all tools I am proficient with]\",\r\n\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t},\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Artificer Specialist\",\r\n\t\t\tsource : [[\"UA:A3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Choose a specialism and put it in the \"Class\" field on the first page',\r\n\t\t\t\t\"Choose either alchemist, archivist, artillerist, or battle smith\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"arcane armament\" : {\r\n\t\t\tname : \"Arcane Armament\",\r\n\t\t\tsource : [[\"UA:A3\", 6]],\r\n\t\t\tminlevel : 5,\r\n\t\t\tdescription : \" [as Extra Attack, but only with magic weapon]\"\r\n\t\t},\r\n\t\t\"the right cantrip for the job\" : {\r\n\t\t\tname : \"The Right Cantrip for the Job\",\r\n\t\t\tsource : [[\"UA:A3\", 6]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"Whenever I finish a short/long rest, I can swap one of my artificer cantrips for another\")\r\n\t\t},\r\n\t\t\"spell-storing item\" : {\r\n\t\t\tname : \"Spell-Storing Item\",\r\n\t\t\tsource : [[\"UA:A3\", 6]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can infuse a 1st-/2nd-level artificer spell into an item I touch\",\r\n\t\t\t\t\"It must be a simple or martial weapon, or something I can use as a spellcasting focus\",\r\n\t\t\t\t\"The spell must have a casting time of 1 action, but I need not have it prepared\",\r\n\t\t\t\t\"A creature holding an infused item can use an action to cast the spell, using my abilities\",\r\n\t\t\t\t\"The item can produce the spell a number of times equal to twice my Int mod (min 2)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"soul of artifice\" : {\r\n\t\t\tname : \"Soul of Artifice\",\r\n\t\t\tsource : [[\"UA:A3\", 6]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : \" [+1 on all saves per attuned magic item (max 6)]\",\r\n\t\t\tsavetxt : {\r\n\t\t\t\ttext : [\"+1 to all saves per attuned magic item\"]\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tartificerCompFunc : {\r\n\t\tadd : function (compName) {\r\n\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\tvar prefix = false;\r\n\t\t\tif (AScompA) {\r\n\t\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\t\tif (!What(AScompA[a] + 'Comp.Race')) {\r\n\t\t\t\t\t\tprefix = AScompA[a];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!prefix) prefix = DoTemplate('AScomp', 'Add');\r\n\t\t\tValue(prefix + 'Comp.Race', compName);\r\n\t\t\tValue(prefix + 'Comp.Type', \"Construct\");\r\n\t\t\tvar changeMsg = \"The \" + compName + \" has been added to the companion page at page number \" + (tDoc.getField(prefix + 'Comp.Race').page + 1);\r\n\t\t\tCurrentUpdates.types.push(\"notes\");\r\n\t\t\tif (!CurrentUpdates.notesChanges) {\r\n\t\t\t\tCurrentUpdates.notesChanges = [changeMsg];\r\n\t\t\t} else {\r\n\t\t\t\tCurrentUpdates.notesChanges.push(changeMsg);\r\n\t\t\t}\r\n\t\t\treturn prefix;\r\n\t\t},\r\n\t\tremove : function (compName) {\r\n\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\tif (!AScompA) return;\r\n\t\t\tcompName = compName.toLowerCase();\r\n\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\tif (What(AScompA[a] + 'Comp.Race').toLowerCase().indexOf(compName) !== -1) {\r\n\t\t\t\t\tDoTemplate(\"AScomp\", \"Remove\", AScompA[a], true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tupdate : function (compName, newHP, newProf) {\r\n\t\t\tvar AScompA = isTemplVis('AScomp') ? What('Template.extras.AScomp').split(',') : false;\r\n\t\t\tvar prefixes = [];\r\n\t\t\tif (!AScompA) return prefixes;\r\n\t\t\tcompName = compName.toLowerCase();\r\n\t\t\tfor (var a = 1; a < AScompA.length; a++) {\r\n\t\t\t\tif (What(AScompA[a] + 'Comp.Race').toLowerCase().indexOf(compName) !== -1) {\r\n\t\t\t\t\tif (newHP !== undefined) Value(AScompA[a] + \"Comp.Use.HP.Max\", newHP);\r\n\t\t\t\t\tif (newProf !== undefined) Value(AScompA[a] + \"Comp.Use.Proficiency Bonus\", newProf);\r\n\t\t\t\t\tprefixes.push(AScompA[a]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn prefixes;\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Add the Alchemist specialism\r\nAddSubClass(\"artificer-ua3\", \"alchemist\", {\r\n\tregExpSearch : /^(?=.*alchemist)(?!.*wizard).*$/i,\r\n\tsubname : \"Alchemist\",\r\n\tfullname : \"Alchemist\",\r\n\tsource : [[\"UA:A3\", 6]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools of the Trade\",\r\n\t\t\tsource : [[\"UA:A3\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can craft magical potions for half the usual gold and in a quarter of the usual time\"),\r\n\t\t\tadditional : \"alchemist's and herbalism kit proficiency\",\r\n\t\t\ttoolProfs : [\"Alchemist's supplies\", \"Herbalism kit\"],\r\n\t\t\teval : function () {\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Alchemist's supplies\", \"\", 8);\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Herbalism kit\", \"\", 3);\r\n\t\t\t},\r\n\t\t\tspellcastingExtra : [\"purify food and drink\", \"ray of sickness\", \"melf's acid arrow\", \"web\", \"create food and water\", \"stinking cloud\", \"blight\", \"death ward\", \"cloudkill\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Alchemical Homunculus\",\r\n\t\t\tsource : [[\"UA:A3\", 6]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I end a long rest, I can use alchemist's supplies to create an alchemical homunculus\",\r\n\t\t\t\t\"I determine its appearance; I can have only 1 at a time, making a new one kills the older\",\r\n\t\t\t\t\"It obeys my commands, is friendly to my allies and I, and acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"It can only do acidic spittle, alchemical salve, or take the Dash, Disengage, or Help action\",\r\n\t\t\t\t\"Its HP maximum is equal to five times my artificer level + my Intelligence modifier\",\r\n\t\t\t\t\"If it dies, I can, as an action within the hour, spend a spell slot to restore it to its full HP\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (restore)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\teval : function () {\r\n\t\t\t\tvar prefix = ClassList['artificer-ua3'].artificerCompFunc.add(\"Alchemical Homunculus\");\r\n\t\t\t\tAddSkillProf(\"Perception\", true, false, false, 2, prefix);\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tClassList['artificer-ua3'].artificerCompFunc.remove(\"alchemical homunculus\");\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA) {\r\n\t\t\t\tvar newProf = ProficiencyBonusList[classes.totallevel - 1];\r\n\t\t\t\tvar newHP = Math.round(lvlA[1] * 5 + What(\"Int Mod\"));\r\n\t\t\t\tClassList['artificer-ua3'].artificerCompFunc.update(\"alchemical homunculus\", newHP, newProf);\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Alchemical Mastery\",\r\n\t\t\tsource : [[\"UA:A3\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can enhance the spell I cast when I use alchemist's supplies as my spellcasting focus\",\r\n\t\t\t\t\"I then add my Int mod to one die roll for dealing acid or poison damage, or restoring HP\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.thisWeapon[3] && v.thisWeapon[4].indexOf(\"artificer-ua3\") !== -1 && (/poison|acid/i).test(fields.Damage_Type)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells that deal poison or acid damage which I cast while using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one damage die roll.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"artificer\" || (/color spray|sleep/).test(spellKey)) return;\r\n\t\t\t\t\t\tvar startDescr = spellObj.description;\r\n\t\t\t\t\t\tvar toAdd = Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\tif ((/healing spirit|aura of vitality/i).test(spellKey)) {\r\n\t\t\t\t\t\t\tspellObj.description += \" (+\" + toAdd + \" once)\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t} else if (genericSpellDmgEdit(spellKey, spellObj, \"acid|poison\", toAdd < 2 ? 1 : \"Int\", true, true)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// other healing spells\r\n\t\t\t\t\t\t\tvar testRegex = /(.*?\\d+d\\d+)(\\+\\d+)?((\\+\\d+d?\\d*\\/\\d?SL)?(\\+spell(casting)? (ability )?mod(ifier)?|(\\+|-)\\d+ \\(.{3}\\))? hp.*)/i;\r\n\t\t\t\t\t\t\tvar theMatch = spellObj.description.match(testRegex);\r\n\t\t\t\t\t\t\tif (!theMatch) return false;\r\n\t\t\t\t\t\t\tif (theMatch[2]) {\r\n\t\t\t\t\t\t\t\tvar theMid = Number(theMatch[2]) + toAdd;\r\n\t\t\t\t\t\t\t\tif (theMid > -1) theMid = \"+\" + theMid;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar theMid = \"+\" + toAdd;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspellObj.description = spellObj.description.replace(testRegex, \"$1\" + theMid + \"$3\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn startDescr !== spellObj.description;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Artificer spells I cast using alchemist's supplies as my spellcasting focus, have my Intelligence modifier (min 1) added to one die rolled for healing, poison damage, or acid damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Alchemical Mastery: Lesser Restoration\",\r\n\t\t\tsource : [[\"UA:A3\", 7]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can cast Lesser Restoration without a spell slot if I use alchemist's supplies as a focus\"),\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Alchemical Mastery\",\r\n\t\t\t\tspells : [\"lesser restoration\"],\r\n\t\t\t\tselection : [\"lesser restoration\"],\r\n\t\t\t\tfirstCol : \"Sp\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"lesser restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tchanges : \"When using my Alchemical Mastery class feature, I can cast Lesser Restoration a number of times per long rest equal to my Intelligence modifier. To do so, I have to use alchemist's supplies as my spellcasting focus\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Chemical Savant\",\r\n\t\t\tsource : [[\"UA:A2\", 7]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I always have resistance to acid and poison damage and immunity to being poisoned\",\r\n\t\t\t\t\"Once per long rest, I can cast Greater Restoration without a spell slot or material comp.\",\r\n\t\t\t\t\"To do so, I have to use alchemist's supplies as my spellcasting focus\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Acid\", \"Poison\"],\r\n\t\t\tsavetxt : { immune : [\"poisoned condition\"] },\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"Greater Restoration\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Chemical Savant\",\r\n\t\t\t\tspells : [\"greater restoration\"],\r\n\t\t\t\tselection : [\"greater restoration\"],\r\n\t\t\t\tfirstCol : \"oncelr\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"greater restoration\" : {\r\n\t\t\t\t\tcomponents : \"V,S,M\\u0192\",\r\n\t\t\t\t\tcompMaterial : \"Alchemist's supplies\",\r\n\t\t\t\t\tdescription : \"Reduce exhaustion 1 lvl or end charm, petrify, curse, one ability score reduction, or max HP reduction\",\r\n\t\t\t\t\tchanges : \"When using my Chemical Savant class feature and alchemist's supplies as my spellcasting focus, I can cast Greater Restoration once per long rest without using a spell slot or requiring material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Alchemist's Alchemical Homunculus\r\nCreatureList[\"alchemical homunculus-ua\"] = {\r\n\tname : \"Alchemical Homunculus\",\r\n\tsource : [[\"UA:A3\", 7], [\"UA:A2\", 6]],\r\n\tsize : 5,\r\n\ttype : \"Construct\",\r\n\talignment : \"Neutral\",\r\n\tac : 13,\r\n\thp : 5,\r\n\thd : [],\r\n\tspeed : \"20 ft, fly 30 ft\",\r\n\tscores : [4, 15, 11, 10, 10, 7],\r\n\tskills : {\r\n\t\t\"perception\" : 4,\r\n\t\t\"stealth\" : 4\r\n\t},\r\n\tdamage_immunities : \"acid, poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"0\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Acidic Spittle\",\r\n\t\tability : 2,\r\n\t\tdamage : [1, 6, \"acid\"],\r\n\t\trange : \"30 ft\",\r\n\t\tmodifiers : [\"\", \"Prof-2\"]\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Creator\",\r\n\t\tdescription : \"The homunculus obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It only takes the Dodge action, unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Acidic Spittle, Alchemical Salve, Dash, Disengage, or Help action.\"\r\n\t}, {\r\n\t\tname : \"Healing\",\r\n\t\tdescription : \"The homunculus regains 2d6 HP whenever the Mending spell is cast on it.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Alchemical Salve (3/Day)\",\r\n\t\tdescription : \"The homunculus produces a salve and touches one creature designated by its creator, granting it one of the following magical benefits chosen by its creator:\" +\r\n\t\t\"\\n  \\u2022 Buoyancy: The target gains a flying speed of 10 ft for 10 minutes.\" +\r\n\t\t\"\\n  \\u2022 Inspiration: The target feels giddy and effective, gaining advantage on certain ability checks in the next hour. The target chooses the checks before or after rolling. The magic runs out after the target has used it on a number of checks equal to the Intelligence modifier of the homunculus' creator (minimum of 1).\" +\r\n\t\t\"\\n  \\u2022 Resilience: The target gains a number of temporary hit points equal to 2d6 + the Intelligence modifier of the homunculus' creator.\"\r\n\t}]\r\n}\r\n\r\n// Add the Archivist specialism (new in 2019v2)\r\nAddSubClass(\"artificer-ua3\", \"archivist\", {\r\n\tregExpSearch : /^(?=.*archivist)(?!.*wizard).*$/i,\r\n\tsubname : \"Archivist\",\r\n\tfullname : \"Archivist\",\r\n\tsource : [[\"UA:A3\", 7]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools of the Trade\",\r\n\t\t\tsource : [[\"UA:A3\", 7]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with calligrapher's supplies and the forgery kit\",\r\n\t\t\t\t\"I can craft magical scrolls for half the usual gold and in a quarter of the usual time\"\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Calligrapher's supplies\", \"Forgery kit\"],\r\n\t\t\teval : function () {\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Calligrapher's supplies\", \"\", 5);\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Forgery kit\", \"\", 5);\r\n\t\t\t},\r\n\t\t\tspellcastingExtra : [\"comprehend languages\", \"dissonant whispers\", \"detect thoughts\", \"locate object\", \"hypnotic pattern\", \"tongues\", \"locate creature\", \"phantasmal killer\", \"legend lore\", \"modify memory\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Artificial Mind\",\r\n\t\t\tsource : [[\"UA:A3\", 8]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I end a long rest, I can use calligrapher's supplies on a tiny nonmagical object\",\r\n\t\t\t\t\"It gain a magical keen mind; I can have only 1 at a time, creating more kills the older\",\r\n\t\t\t\t\"See 3rd page for the telepathic advisor and manifest mind features of this magic item\",\r\n\t\t\t\t\"As an action, I can use its information overload: a target in 5 ft must make an Int save\",\r\n\t\t\t\t\"If fail, it takes psychic damage & the 1st attack vs. it before my next turn ends has adv.\",\r\n\t\t\t\t\"If this deals damage, I can expend a spell slot to add damage of 1d8 + 1d8 per slot level\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n, idx) {\r\n\t\t\t\treturn n < 3 ? \"\" : (cantripDie[idx]) + 'd8 psychic damage';\r\n\t\t\t}),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*information)(?=.*overload).*$/i,\r\n\t\t\t\tname : \"Information Overload\",\r\n\t\t\t\tsource : [[\"UA:A3\", 8]],\r\n\t\t\t\tability : 4,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"psychic\"],\r\n\t\t\t\trange : \"5 ft of mind\",\r\n\t\t\t\tdescription : \"Int save; Fail - damage and 1st attack before my next turn ends vs. target has adv; Use spell slot for extra damage\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tmonkweapon : false,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tisInformationOverload : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [function (fields, v) {\r\n\t\t\t\t\tif (v.theWea.isInformationOverload && classes.known['artificer-ua3'] && classes.known['artificer-ua3'].level > 4) {\r\n\t\t\t\t\t\tfields.Damage_Die = cantripDie[classes.known['artificer-ua3'].level - 1] + \"d8\";\r\n\t\t\t\t\t};\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\taction : [[\"bonus action\", \"Manifest Mind (start/stop/move)\"], [\"action\", \"Manifest Mind (use its senses)\"]],\r\n\t\t\textraname : \"Artificial Mind\",\r\n\t\t\t\"telepathic advisor\" : {\r\n\t\t\t\tname : \"Telepathic Advisor\",\r\n\t\t\t\tsource : [[\"UA:A3\", 8]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While my artificial mind is on my person, it telepathically grants me two skill proficiencies\",\r\n\t\t\t\t\t\"I can choose which skills when I create the artificial mind, depending on its raw material\",\r\n\t\t\t\t\t\"Animal raw material: two from Animal Handling, Insight, Medicine, Perception, \\u0026 Survival\",\r\n\t\t\t\t\t\"Mineral raw material: two from Deception, Intimidation, Performance, and Persuasion\",\r\n\t\t\t\t\t\"Plant raw material: two from Arcana, History, Investigation, Nature, and Religion\"\r\n\t\t\t\t]),\r\n\t\t\t\tskillstxt : \"I can choose two skill proficiencies based on the raw material the Artificial Mind is made from:\\n   - Animal raw material: two from Animal Handling, Insight, Medicine, Perception, and Survival\\n   - Mineral raw material: two from Deception, Intimidation, Performance, and Persuasion\\n   - Plant raw material: two Arcana, History, Investigation, Nature, and Religion\"\r\n\t\t\t},\r\n\t\t\t\"manifest mind\" : {\r\n\t\t\t\tname : \"Manifest Mind\",\r\n\t\t\t\tsource : [[\"UA:A3\", 8]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can have the artificial mind create a spectral presence within 60 ft\",\r\n\t\t\t\t\t\"This requires the item to be on my person and it stops if the presence goes beyond 300 ft\",\r\n\t\t\t\t\t\"I decide its spectral appearance; It is intangible, invulnerable, and sheds dim light in 10 ft\",\r\n\t\t\t\t\t\"While manifested, the spectral mind can hear and see, and has 60 ft darkvision\",\r\n\t\t\t\t\t\"As an action, I can use the mind's senses instead of my own until I stop concentrating on it\",\r\n\t\t\t\t\t\"As a bonus action, I can cause the spectral mind to hover 30 ft, passing through creatures\",\r\n\t\t\t\t\t\"When I cast an artificer spell on my turn, I can have the origins of it be the spectral mind\",\r\n\t\t\t\t\t\"I can cast spells through it a number of times per long rest equal to my Intelligence mod\"\r\n\t\t\t\t]),\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Cast spell through Manifest Mind\",\r\n\t\t\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\t\t\trecovery : \"long rest\"\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"telepathic advisor\" }, { extrachoice : \"manifest mind\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Mind Network\",\r\n\t\t\tsource : [[\"UA:A3\", 9]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add my Int mod to artificer spells that deal psychic damage and information overload\",\r\n\t\t\t\t\"With my artificial mind, I communicate telepathically with anyone carrying my infusions\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.theWea.isInformationOverload || (v.isSpell && (/psychic/i).test(fields.Damage_Type) && v.thisWeapon[4].indexOf('artificer-ua3') !== -1)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(1, What('Int Mod'));\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My artificer cantrips and spells that deal psychic damage, as well as my artificial mind's information overload get my Intelligence modifier added to their damage.\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spName == 'artificer-ua3' && !spellObj.psionic) return genericSpellDmgEdit(spellKey, spellObj, \"psychic\", \"Int\", true);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"My artificer cantrips and spells that deal psychic damage get my Intelligence modifier added to their damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Pure Information\",\r\n\t\t\tsource : [[\"UA:A3\", 9]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to boost information overload, its target must make another save\",\r\n\t\t\t\t\"On a failed Intelligence saving throw it is stunned until the end of my next turn\",\r\n\t\t\t\t\"As an action while my artificial mind is on my person, I can teleport (infoportation)\",\r\n\t\t\t\t\"I teleport to an unoccupied space nearest to the spectral mind or an item infused by me\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 2nd-level or higher spell slot (SS 2+)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 2+\",\r\n\t\t\tadditional : \"Infoportation\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the Artillerist specialism\r\nAddSubClass(\"artificer-ua3\", \"artillerist\", {\r\n\tregExpSearch : /^(?=.*artillerist)(?!.*wizard).*$/i,\r\n\tsubname : \"Artillerist\",\r\n\tfullname : \"Artillerist\",\r\n\tsource : [[\"UA:A3\", 8]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools of the Trade\",\r\n\t\t\tsource : [[\"UA:A3\", 9]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can use rods, wands, and staffs as a spellcasting focus\",\r\n\t\t\t\t\"I can craft magical wands for half the usual gold and in a quarter of the usual time\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"proficiency with smith's \\u0026 woodcarver's tools\",\r\n\t\t\ttoolProfs : [\"Smith's tools\", \"Woodcarver's tools\"],\r\n\t\t\teval : function () {\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Smith's tools\", \"\", 8);\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Woodcarver's tools\", \"\", 5);\r\n\t\t\t\tAddToInv(\"gear\", \"r\", \"Wooden wand\", \"\", 1);\r\n\t\t\t},\r\n\t\t\tspellcastingExtra : [\"shield\", \"thunderwave\", \"scorching ray\", \"shatter\", \"fireball\", \"wind wall\", \"ice storm\", \"wall of fire\", \"cone of cold\", \"wall of force\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Arcane Turret\",\r\n\t\t\tsource : [[\"UA:A3\", 10]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use smith's tools to summon a Medium turret within 5 ft of me\",\r\n\t\t\t\t\"I can do so a number of times per long rest for free, or by spending a spell slot\",\r\n\t\t\t\t\"If I create more turrets than I can have active, the oldest one disappears\",\r\n\t\t\t\t\"When I summon one, I decide what type it is: flamethrower, force ballista, or defender\",\r\n\t\t\t\t\"It disappears after 10 minutes, when reduced to 0 HP, or if I dismiss it as an action\",\r\n\t\t\t\t\"When within 60 ft of it, I can activate it as a bonus action, or detonate it as an action\",\r\n\t\t\t\t\"See the companion page for how the different types of turrets operate\"\r\n\t\t\t]),\r\n\t\t\tusages : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 14 ? 1 : 2;\r\n\t\t\t}),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 14 ? \"max 1 active turret\"  : \"max 2 active turrets\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \" (summon/detonate)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\teval : function () {\r\n\t\t\t\tClassList['artificer-ua3'].artificerCompFunc.add(\"Arcane Turret\");\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tClassList['artificer-ua3'].artificerCompFunc.remove(\"arcane turret\");\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA) {\r\n\t\t\t\tClassList['artificer-ua3'].artificerCompFunc.update(\"arcane turret\", lvlA[1] * 5);\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wand Prototype\",\r\n\t\t\tsource : [[\"UA:A3\", 10]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can use woodcarver's tools to turn a wand into a magic item\",\r\n\t\t\t\t\"I can only infuse a nonmagical wooden wand and it lasts until I finish my next long rest\",\r\n\t\t\t\t\"I infuse it with an artificer cantrip, even one I don't know, with a 1 action casting time\",\r\n\t\t\t\t\"As an action, I can use the wand to cast the cantrip, using my spellcasting ability\",\r\n\t\t\t\t\"I also add my Intelligence modifier (min 1) to any damage rolls for that cantrip\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"infuse wand with \" + (n < 14 ? \"1 cantrip\" : \"2 cantrips\");\r\n\t\t\t}),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wand Prototype\",\r\n\t\t\t\t\"class\" : \"artificer-ua3\",\r\n\t\t\t\tnotspells : [\"magic stone\", \"mending\", \"shillelagh\"], // all cantrips with a casting time that is not 1 action\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t\ttimes : levels.map(function(n) {\r\n\t\t\t\t\treturn n < 14 ? 1 : 2;\r\n\t\t\t\t}),\r\n\t\t\t\tfirstCol : \"W\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (!v.thisWeapon[3] || v.thisWeapon[4].indexOf(\"artificer-ua3\") == -1) return;\r\n\t\t\t\t\t\tvar artSp = CurrentSpells[\"artificer-ua3\"];\r\n\t\t\t\t\t\tif (!artSp || !artSp.selectBo || !v.thisWeapon[3] || v.thisWeapon[4].indexOf(\"artificer-ua3\") == -1 || artSp.selectCa.indexOf(v.thisWeapon[3]) !== -1) return;\r\n\t\t\t\t\t\tvar artBoSp = CurrentSpells[\"artificer-ua3\"].bonus.subclassfeature6.selection;\r\n\t\t\t\t\t\tif (artBoSp && artBoSp.indexOf(v.thisWeapon[3]) !== -1) {\r\n\t\t\t\t\t\t\toutput.die = output.die.replace(/C/g, 1).replace(/B/g, 0).replace(/0.?d\\d+/g, 0);\r\n\t\t\t\t\t\t\toutput.extraDmg += Math.max(Number(What(\"Int Mod\")), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips cast through a wand infused by my Wand Prototype class feature get my Intelligence modifier added to their damage (minimum of +1) and are cast as if coming from a magic item (thus don't require any components nor scale with level).\"\r\n\t\t\t\t],\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName != \"artificer-ua3\" || isDuplicate || !CurrentSpells[\"artificer-ua3\"]) return;\r\n\t\t\t\t\t\tvar artBoSp = CurrentSpells[\"artificer-ua3\"].bonus.subclassfeature6.selection;\r\n\t\t\t\t\t\tif (!artBoSp || artBoSp.indexOf(spellKey) == -1) return;\r\n\t\t\t\t\t\tspellObj.components = \"\";\r\n\t\t\t\t\t\tspellObj.compMaterial = \"Spells cast by magic items don't require any components.\";\r\n\t\t\t\t\t\tvar aSpell = SpellsList[spellKey];\r\n\t\t\t\t\t\tif (aSpell.descriptionCantripDie) {\r\n\t\t\t\t\t\t\tvar cDie = 1;\r\n\t\t\t\t\t\t\tvar newCantripDieDescr = aSpell.descriptionCantripDie;\r\n\t\t\t\t\t\t\twhile ((/`CD(-|\\+|\\*)?\\d*`/).test(newCantripDieDescr)) {\r\n\t\t\t\t\t\t\t\tif ((/`CD(-|\\+)\\d+`/).test(newCantripDieDescr)) {\r\n\t\t\t\t\t\t\t\t\tvar cDie = cDie + Number(newCantripDieDescr.replace(/.*`CD((-|\\+)\\d+)`.*/, \"$1\"));\r\n\t\t\t\t\t\t\t\t} else if ((/`CD\\*\\d+`/).test(newCantripDieDescr)) {\r\n\t\t\t\t\t\t\t\t\tvar cDie = cDie * Number(newCantripDieDescr.replace(/.*`CD\\*(\\d+)`.*/, \"$1\"));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tnewCantripDieDescr = newCantripDieDescr.replace(/`CD(-|\\+|\\*)?\\d*`/, cDie);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspellObj.description = newCantripDieDescr.replace(/\\b0d\\d+()/g, \"$1\").replace(/\\b0d\\d+/g, \"0\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgenericSpellDmgEdit(spellKey, spellObj, \"[\\\\w\\\\.]+\", Math.max(Number(What(\"Int Mod\")), 1), false, true)\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Cantrips cast through a wand infused by my Wand Prototype class feature get my Intelligence modifier added to their damage (minimum of +1) and are cast as if coming from a magic item (thus don't require any components nor scale with level).\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Fortified Position\",\r\n\t\t\tsource : [[\"UA:A3\", 10]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription: desc(\"My allies and I have half cover while within 10 ft of an arcane turret I created\")\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Artillerist's Arcane Turret\r\nCreatureList[\"arcane turret-ua\"] = {\r\n\tname : \"Arcane Turret\",\r\n\tsource : [[\"UA:A3\", 10], [\"UA:A2\", 7]],\r\n\tsize : 3,\r\n\ttype : \"Construct\",\r\n\talignment : \"Neutral\",\r\n\tac : 18,\r\n\thp : 15,\r\n\thd : [0, 0],\r\n\tspeed : \"15 ft, climb 15 ft\",\r\n\tscores : [10, 10, 10, 10, 10, 10],\r\n\tdamage_immunities : \"poison, psychic\",\r\n\tcondition_immunities : \"all conditions\",\r\n\tpassivePerception : 10,\r\n\tlanguages : \"\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 0,\r\n\tattacksAction : 0,\r\n\tattacks : [{\r\n\t\tname : \"Flamethrower\",\r\n\t\tability : 4,\r\n\t\tdamage : [1, 8, \"fire\"],\r\n\t\trange : \"15-ft cone\",\r\n\t\tdescription : \"Dex save, success - half damage; Unattended flammable objects ignite\",\r\n\t\tdc : true,\r\n\t\tmodifiers : [\"oProf+oInt\", \"\"],\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"The turret exhales fire in an adjacent 15-foot cone that the creator designate. Each creature in that area must make a Dexterity saving throw against the creator's spell save DC, taking 1d8 fire damage on a failed save or half as much damage on a successful one. The fire ignites any flammable objects in the area that aren't being worn or carried.\"\r\n\t}, {\r\n\t\tname : \"Force Ballista\",\r\n\t\tability : 4,\r\n\t\tdamage : [2, 8, \"force\"],\r\n\t\trange : \"120 ft\",\r\n\t\tdescription : \"Creatures hit are pushed 5 ft away\",\r\n\t\tmodifiers : [\"oProf+oInt\", \"\"],\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"Make a range spell attack, originating from the turret, at one creature or object within 120 feet of it. On a hit, the target takes 2d8 force damage, and if the target is a creature, it is pushed up to 5 feet away from the turret.\"\r\n\t}, {\r\n\t\tname : \"Detonate\",\r\n\t\tability : 4,\r\n\t\tdamage : [3, 6, \"force\"],\r\n\t\trange : \"10-ft radius\",\r\n\t\tdescription : \"Dex save, success - half damage; Destroys turret\",\r\n\t\tdc : true,\r\n\t\tmodifiers : [\"oProf+oInt\", \"\"],\r\n\t\tabilitytodamage : false,\r\n\t\ttooltip : \"Detonate destroys the turret and forces each creature within 10 feet of it to make a Dexterity saving throw against your spell save DC, taking 3d6 force damage on a failed save or half as much damage on a successful one.\"\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Healing\",\r\n\t\tdescription : \"The turret regains 2d6 HP whenever Mending is cast on it.\"\r\n\t}, {\r\n\t\tname : \"Turret Type\",\r\n\t\tdescription : \"Upon creation, the creator decides what type of turret it is: Flamethrower, Force Ballista, or Defender. What feature/attack it can use depends on its type.\"\r\n\t}, {\r\n\t\tname : \"Defender\",\r\n\t\tdescription : \"The turret emits a burst of positive energy that grants itself and each creature of the creator's choice within 10 feet of it a number of temporary hit points equal to 1d8 + the creator's Intelligence modifier (minimum of +1).\"\r\n\t}],\r\n\ttraits : [{\r\n\t\tname : \"Creator\",\r\n\t\tdescription : \"The turret only does something when activated by its creator. It uses the spell attack and spell save DC of its creator, and has five times the creator's artificer level in HP.\"\r\n\t}, {\r\n\t\tname : \"Activation\",\r\n\t\tdescription : \"The creator of the turret can activate it as a bonus action while within 60 ft of it. Once activated, the turret does as its creator wishes, move to an unoccupied space and use the action associated with its type:\" +\r\n\t\t\"\\n  \\u2022 Flamethrower: use the flamethrower attack.\" +\r\n\t\t\"\\n  \\u2022 Force Ballista: use the force ballista attack.\" +\r\n\t\t\"\\n  \\u2022 Defender: use the defender feature, see the features to the left.\"\r\n\t}, {\r\n\t\tname : \"Detonate\",\r\n\t\tdescription : \"The creator of the turret can use an action to detonate the turret when within 60 ft of it, see the attack section.\"\r\n\t}]\r\n};\r\n\r\n// Add the Battle Smith specialism (new in 2019v2)\r\nAddSubClass(\"artificer-ua3\", \"battle smith\", {\r\n\tregExpSearch : /^(?=.*battle)(?=.*smith)(?!.*wizard).*$/i,\r\n\tsubname : \"Battle Smith\",\r\n\tfullname : \"Battle Smith\",\r\n\tsource : [[\"UA:A3\", 11]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tools of the Trade \\u0026 Battle Ready\",\r\n\t\t\tsource : [[\"UA:A3\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with leatherworker's tools, smith's tools, and martial weapons\",\r\n\t\t\t\t\"I can craft magical armor for half the usual gold and in a quarter of the usual time\",\r\n\t\t\t\t\"I can use my Intelligence modifier instead of Strength or Dexterity for magic weapons\"\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Leatherworker's tools\", \"Smith's tools\"],\r\n\t\t\teval : function () {\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Leatherworker's tools\", \"\", 5);\r\n\t\t\t\tAddToInv(\"gear\", \"l\", \"Smith's tools\", \"\", 8);\r\n\t\t\t},\r\n\t\t\tweaponProfs : [false, true],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (!v.isSpell && (v.theWea.isMagicWeapon || v.thisWeapon[1]) && (fields.Mod === 1 || fields.Mod === 2) && Number(What(\"Int\")) > Number(What(fields.Mod === 1 ? \"Str\" : \"Dex\"))) {\r\n\t\t\t\t\t\t\tfields.Mod = 4;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'I can use my Intelligence modifier instead of Strength or Dexterity for the attack and damage rolls of magic weapons.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tspellcastingExtra : [\"heroism\", \"searing smite\", \"branding smite\", \"warding bond\", \"aura of vitality\", \"blinding smite\", \"aura of purity\", \"staggering smite\", \"banishing smite\", \"mass cure wounds\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Iron Defender\",\r\n\t\t\tsource : [[\"UA:A3\", 11]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I end a long rest, I can use smith's tools to create an iron defender\",\r\n\t\t\t\t\"I determine its appearance; I can have only 1 at a time, making a new one kills the older\",\r\n\t\t\t\t\"It obeys my commands, is friendly to my allies and I, and acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes reactions and the Dodge action\",\r\n\t\t\t\t\"If commanded to, it can only take an action to bite, repair, Dash, Disengage, or Help\",\r\n\t\t\t\t\"Its HP maximum is equal to five times my artificer level + my Int Mod + its Con mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (restore)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\teval : function () {\r\n\t\t\t\tvar prefix = ClassList['artificer-ua3'].artificerCompFunc.add(\"Iron Defender\");\r\n\t\t\t\tAddSkillProf(\"Perception\", true, false, false, 2, prefix);\r\n\t\t\t},\r\n\t\t\tremoveeval : function () {\r\n\t\t\t\tClassList['artificer-ua3'].artificerCompFunc.remove(\"iron defender\");\r\n\t\t\t},\r\n\t\t\tchangeeval : function (lvlA) {\r\n\t\t\t\tvar newProf = ProficiencyBonusList[classes.totallevel - 1];\r\n\t\t\t\tvar pres = ClassList['artificer-ua3'].artificerCompFunc.update(\"iron defender\", undefined, newProf);\r\n\t\t\t\tif (!pres.length) return;\r\n\t\t\t\tvar lvlH = Math.max(lvlA[0], lvlA[1]), lvlL = Math.min(lvlA[0], lvlA[1]);\r\n\t\t\t\tvar newHP = Math.round(lvlA[1] * 5 + What(\"Int Mod\"));\r\n\t\t\t\tfor (var i = 0; i < pres.length; i++) {\r\n\t\t\t\t\tValue(pres[i] + \"Comp.Use.HP.Max\", newHP + What(pres[i] + \"Comp.Use.Ability.Con.Mod\"));\r\n\t\t\t\t\tif (lvlL < 6 && lvlH >= 6) { // Arcane Jolt\r\n\t\t\t\t\t\tValue(pres[i] + \"Comp.Use.Attack.1.Description\", lvlA[1] >= 6 ? \"Counts as magical; Can channel energy (Arcane Jolt)\" : \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (lvlL < 14 && lvlH >= 14) { // Improved Defender\r\n\t\t\t\t\t\tValue(pres[i] + \"Comp.Use.Attack.2.Weapon Selection\", lvlA[1]>= 14 ? \"Defensive Pounce\" : \"\");\r\n\t\t\t\t\t\tif (lvlA[1] >= 14) {\r\n\t\t\t\t\t\t\tValue(pres[i] + \"Comp.Use.Attack.2.Range\", \"Melee (5 ft)\");\r\n\t\t\t\t\t\t\tValue(pres[i] + \"Comp.Use.Attack.2.Description\", \"As reaction on target that attacks another; Automatically hits and target has disadv. on its attack\");\r\n\t\t\t\t\t\t\tValue(pres[i] + \"Comp.Use.Attack.2.Damage Type\", \"Force\");\r\n\t\t\t\t\t\t\tPickDropdown(pres[i] + \"Comp.Use.Attack.2.Mod\", 5);\r\n\t\t\t\t\t\t\tValue(pres[i] + \"BlueText.Comp.Use.Attack.2.Damage Die\", \"1d4\");\r\n\t\t\t\t\t\t\tValue(pres[i] + \"BlueText.Comp.Use.Attack.2.Damage Bonus\", \"oInt-Wis\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Arcane Jolt\",\r\n\t\t\tsource : [[\"UA:A3\", 12]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"The bite attack of my iron defender is considered magical\",\r\n\t\t\t\t\"I can channel energy through the defender's bite attack and my magic weapon attacks\",\r\n\t\t\t\t\"Once per turn when such an attack hits, I can have it do extra force damage or heal\",\r\n\t\t\t\t\"If I choose to heal, I restore HP to a creature that I can see within 30 ft of the target\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : (n < 14 ? 2 : 4) + \"d4\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Improved Defender\",\r\n\t\t\tsource : [[\"UA:A3\", 14]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My iron defender's defensive pounce now also deals 1d4 + my Int mod in force damage\",\r\n\t\t\t\t\"The damage and healing from arcane jolt increases from 2d4 to 4d4\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n// Add the Battle Smith's Iron Defender (new in 2019v2)\r\nCreatureList[\"iron defender-ua\"] = {\r\n\tname : \"Iron Defender\",\r\n\tsource : [[\"UA:A3\", 11]],\r\n\tsize : 3,\r\n\ttype : \"Construct\",\r\n\talignment : \"Neutral\",\r\n\tac : 15,\r\n\thp : 7,\r\n\thd : [],\r\n\tspeed : \"40 ft\",\r\n\tscores : [14, 12, 14, 4, 10, 6], //[Str, Dex, Con, Int, Wis, Cha]\r\n\tskills : { \"perception\" : 4 },\r\n\tdamage_immunities : \"poison\",\r\n\tcondition_immunities : \"charmed, exhaustion, poisoned\",\r\n\tpassivePerception : 10,\r\n\tsenses : \"Darkvision 60 ft\",\r\n\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\tchallengeRating : \"1\",\r\n\tproficiencyBonus : 2,\r\n\tattacksAction : 1,\r\n\tattacks : [{\r\n\t\tname : \"Bite\",\r\n\t\tability : 1,\r\n\t\tdamage : [1, 8, \"piercing\"],\r\n\t\trange : \"Melee (5 ft)\",\r\n\t\tmodifiers : [\"\", \"Prof-2\"]\r\n\t}],\r\n\tfeatures : [{\r\n\t\tname : \"Creator\",\r\n\t\tdescription : \"The iron defender obeys the commands of its creator and has the same proficiency bonus. It takes its turn after its creator, on the same initiative count. It only takes the Dodge action, unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Bite, Repair, Dash, Disengage, or Help action. Within an hour of its death, its creator can expend a spell slot as an action while within 5 ft to have it return to full HP after 1 minute.\"\r\n\t}],\r\n\tactions : [{\r\n\t\tname : \"Healing\",\r\n\t\tdescription : \"The iron defender regains 2d6 HP whenever the Mending spell is cast on it.\"\r\n\t}, {\r\n\t\tname : \"Vigilant\",\r\n\t\tdescription : \"The iron defender can't be surprised.\"\r\n\t}, {\r\n\t\tname : \"Repair (3/Day)\",\r\n\t\tdescription : \"As an action, the magical mechanisms inside the iron defender restore 2d8 + its proficiency bonus in hit points to itself or to one construct or object within 5 ft of it.\"\r\n\t}, {\r\n\t\tname : \"Defensive Pounce (reaction)\",\r\n\t\tdescription : \"As a reaction, the iron defender imposes disadvantage on the attack roll of one creature it can see that is within 5 ft of it, provided the attack roll is against a creature other than the iron defender.\"\r\n\t}]\r\n};\r\n\r\n// Add the new spell\r\nSpellsList[\"arcane weapon-ua\"] = {\r\n\tname : \"Arcane Weapon\",\r\n\tclasses : [\"artificer-ua3\", \"artificer-ua2\"],\r\n\tsource : [[\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\tlevel : 1,\r\n\tschool : \"Trans\",\r\n\ttime : \"1 bns\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"1 wea +1d6 dmg (acid, cold, fire, lightn., poison, or thunder); 1 bns change dmg type; SL3: conc, 8 h\",\r\n\tdescriptionFull : \"You channel arcane energy into one simple or martial weapon you're holding, and choose one damage type: acid, cold, fire, lightning, poison, or thunder. Until the spell ends, you deal an extra 1d6 damage of the chosen type to any target you hit with the weapon. If the weapon isn't magical, it becomes a magic weapon for the spell's duration.\\n   As a bonus action, you can change the damage type, choosing from the options above.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can maintain your concentration on the spell for up to 8 hours. \"\r\n};\r\n\r\n// Add the new magic items\r\nif (!MagicItemsList[\"boots of the winding path\"]) {\r\n\tMagicItemsList[\"boots of the winding path\"] = {\r\n\t\tname : \"Boots of the Winding Path\",\r\n\t\tsource : [[\"E:RLW\", 62], [\"T\", 21], [\"UA:A2\", 9], [\"UA:A3\", 12]],\r\n\t\ttype : \"wondrous item\",\r\n\t\tdescription : \"While wearing these boots, I can teleport up to 15 ft as a bonus action to an unoccupied space I can see, as long as I occupied that space at some point during the current turn.\",\r\n\t\tdescriptionFull : \"While wearing these boots, a creature can teleport up to 15 feet as a bonus action to an unoccupied space the creature can see. The creature must have occupied that space at some point during the current turn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t}\r\n}\r\nMagicItemsList[\"many-handed pouch-ua\"] = {\r\n\tname : \"Many-Handed Pouch\",\r\n\tsource : [[\"UA:A3\", 13], [\"UA:A2\", 9]],\r\n\ttype : \"wondrous item\",\r\n\tdescription : \"These 2-5 pouches all share one interdimensional space of the same capacity as a single pouch. Thus, reaching into any of the pouches allows access to the same storage space. A pouch only functions if it is within 100 miles of another pouch of its set.\",\r\n\tdescriptionFull : \"The infused pouches all share one interdimensional space of the same capacity as a single pouch. Thus, reaching into any of the pouches allows access to the same storage space. A pouch operates as long as it is within 100 miles of another one of the pouches; the pouch is otherwise empty and won't accept any contents.\\n   If this infusion ends, the items stored in the shared space move into one of the pouches, determined at random. The rest of the pouches become empty.\"\r\n}\r\nMagicItemsList[\"radiant weapon-ua\"] = {\r\n\tname : \"Radiant Weapon\",\r\n\tnameTest : \"Radiant\",\r\n\tsource : [[\"UA:A3\", 13], [\"UA:A2\", 9]],\r\n\ttype : \"weapon (any)\",\r\n\tdescription : \"This magic weapon adds a +1 on its attacks and damage. As a bonus action, I can start or stop it shedding light, bright in 30 ft and dim for another 30 ft. Once per short rest as a reaction when hit by a melee attack, I can blind the attacker until the end of its next turn unless it makes a Con save (my spell DC).\",\r\n\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it. While holding it, the wielder can take a bonus action to cause it to shed bright light in a 30-foot radius and dim light for an additional 30 feet. The wielder can extinguish the light as a bonus action.\\n   As a reaction immediately after being hit by a melee attack, the wielder can cause the attacker to be blinded until the end of the attacker's next turn, unless the attacker succeeds on a Constitution saving throw against your spell save DC. Once used, this reaction can't be used again until the wielder finishes a short or long rest.\",\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\tadditional : \"blind attacker\",\r\n\taction : [[\"bonus action\", \" (shed light/stop)\"], [\"reaction\", \" (after melee hit)\"]],\r\n\tchooseGear : {\r\n\t\ttype : \"weapon\",\r\n\t\tprefixOrSuffix : \"suffix\",\r\n\t\tdescriptionChange : [\"replace\", \"weapon\"]\r\n\t},\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Reaction to blind attacker';\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t'If I include the word \"Radiant\" in the name of a weapon, it will be treated as the magic weapon Radiant Weapon. It has +1 to hit and damage and can be used to shed light and to blind an attacker.'\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isMeleeWeapon && !v.isSpell && (/radiant/i).test(v.WeaponTextName)) {\r\n\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\nMagicItemsList[\"repulsion shield-ua\"] = { // 2019v2\r\n\tname : \"Repulsion Shield\",\r\n\tsource : [[\"UA:A3\", 14]],\r\n\ttype : \"shield\",\r\n\tdescription : \"I gain a +1 bonus to Armor Class while wielding this shield. As a reaction immediately after being hit by a melee attack, I can push the attacker up to 15 ft away. Once used, this reaction can't be used again until I finish a short or long rest.\",\r\n\tdescriptionFull : \"A creature gains a +1 bonus to Armor Class while wielding this shield. While holding it, the wielder can use a reaction immediately after being hit by a melee attack to push the attacker up to 15 feet away. Once used, this reaction can't be used again until the wielder finishes a short or long rest.\",\r\n\tweight : 6,\r\n\tattunement : true,\r\n\tusages : 1,\r\n\trecovery : \"short rest\",\r\n\taction : [[\"reaction\", \"\"]],\r\n\tshieldAdd : [\"Repulsion Shield\", 3, 6],\r\n}\r\n// dupl_start\r\nif (!MagicItemsList[\"repeating shot\"]) {\r\n\tMagicItemsList[\"repeating shot\"] = { // 2019v2\r\n\t\tname : \"Repeating Shot\",\r\n\t\tsource : [[\"E:RLW\", 62], [\"T\", 22], [\"UA:A3\", 13]],\r\n\t\ttype : \"weapon (any with ammunition)\",\r\n\t\tdescription : \"When I use this magic weapon to make a ranged attack, it magically produces one piece of ammunition and grants a +1 bonus to its attack and damage rolls. Thus, it doesn't require ammunition and ignores the loading property if it has it. The produced ammunition vanishes once it hits or misses a target.\",\r\n\t\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it when it's used to make a ranged attack, and it ignores the loading property if it has it.\\n   The weapon requires no ammunition; it magically produces one piece of ammunition each time you make a ranged attack with it, unless you manually load it. The ammunition produced by the weapon vanishes the instant after the it hits or misses a target.\",\r\n\t\tattunement : true,\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !(/ammunition/i).test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && !v.isSpell && (/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '').replace(/(;|,)? ?loading/i, '');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the words \"Repeating Shot\" in the name of a weapon with the ammunition property, it will be treated as the magic weapon Repeating Shot. It has +1 to hit and damage and produces its own ammunition, thus its loading property is removed if it has it.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif ((/^(?=.*repeating shot)(?=.*ammunition).*$/i).test(v.WeaponText) && !v.isSpell) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\nif (!MagicItemsList[\"returning weapon\"]) {\r\n\tMagicItemsList[\"returning weapon\"] = {\r\n\t\tname : \"Returning Weapon\",\r\n\t\tnameTest : \"Returning\",\r\n\t\tsource : [[\"E:RLW\", 63], [\"T\", 23], [\"UA:A3\", 14], [\"UA:A2\", 10]],\r\n\t\ttype : \"weapon (any thrown)\",\r\n\t\tdescription : \"This magic weapon grants a +1 bonus to attack and damage rolls I make with it. It returns to my hand immediately after I use it to make a ranged attack.\",\r\n\t\tdescriptionFull : \"This magic weapon grants a +1 bonus to attack and damage rolls made with it, and it returns to the wielder's hand immediately after it is used to make a ranged attack.\",\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"weapon\",\r\n\t\t\tprefixOrSuffix : \"suffix\",\r\n\t\t\tdescriptionChange : [\"replace\", \"weapon\"],\r\n\t\t\texcludeCheck : function (inObjKey, inObj) {\r\n\t\t\t\treturn !(/melee/i).test(inObj.range) || !(/thrown/i).test(inObj.description);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tif (!v.theWea.isMagicWeapon && v.isWeapon && /^(?=.*returning)(?=.*\\bthrown\\b).*$/i.test(v.WeaponText) && /\\d ?(ft|m)\\.?[^)]/.test(fields.Range)) {\r\n\t\t\t\t\t\tv.theWea.isMagicWeapon = true;\r\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/(, |; )?Counts as magical/i, '');\r\n\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Returns immediately after ranged attack';\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'If I include the word \"Returning\" in the name of a thrown weapon, it will be treated as the magic weapon Returning Weapon. It has +1 to hit and damage and returns to my hand immediately after I use it to make a ranged attack.'\r\n\t\t\t],\r\n\t\t\tatkCalc : [\r\n\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\tif (v.isWeapon && /^(?=.*returning)(?=.*\\bthrown\\b).*$/i.test(v.WeaponText) && /\\d ?(ft|m)\\.?[^)]/.test(fields.Range)) {\r\n\t\t\t\t\t\toutput.magic = v.thisWeapon[1] + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}, ''\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n} // dupl_end\r\n\r\n// Set the Artificer class spell list\r\nvar UAA3_SetArtificerSpells = function(){\r\n\tvar artSp = [\r\n\t\t\"acid splash\",\r\n\t\t\"create bonfire\", // 2019v2\r\n\t\t\"dancing lights\",\r\n\t\t\"fire bolt\",\r\n\t\t\"frostbite\", // 2019v2\r\n\t\t\"guidance\",\r\n\t\t\"light\",\r\n\t\t\"mage hand\",\r\n\t\t\"magic stone\", // 2019v2\r\n\t\t\"mending\",\r\n\t\t\"message\",\r\n\t\t\"poison spray\",\r\n\t\t\"prestidigitation\",\r\n\t\t\"ray of frost\",\r\n\t\t\"resistance\",\r\n\t\t\"shocking grasp\",\r\n\t\t\"spare the dying\",\r\n\t\t\"thorn whip\",\r\n\t\t\"thunderclap\", // 2019v2\r\n\t\t// level 1\r\n\t\t\"absorb elements\", // 2019v2\r\n\t\t\"alarm\",\r\n\t\t\"catapult\", // 2019v2\r\n\t\t\"cure wounds\",\r\n\t\t\"detect magic\",\r\n\t\t\"disguise self\",\r\n\t\t\"expeditious retreat\",\r\n\t\t\"faerie fire\", // 2019v2\r\n\t\t\"false life\",\r\n\t\t\"feather fall\", // 2019v2\r\n\t\t\"grease\",\r\n\t\t\"identify\",\r\n\t\t\"jump\",\r\n\t\t\"longstrider\",\r\n\t\t\"sanctuary\",\r\n\t\t\"snare\", // 2019v2, replaces \"shield of faith\"\r\n\t\t// level 2\r\n\t\t\"aid\",\r\n\t\t\"alter self\",\r\n\t\t\"arcane lock\",\r\n\t\t\"blur\",\r\n\t\t\"continual flame\",\r\n\t\t\"darkvision\",\r\n\t\t\"enhance ability\",\r\n\t\t\"enlarge/reduce\",\r\n\t\t\"heat metal\",\r\n\t\t\"invisibility\",\r\n\t\t\"lesser restoration\",\r\n\t\t\"levitate\",\r\n\t\t\"magic mouth\",\r\n\t\t\"magic weapon\",\r\n\t\t\"protection from poison\",\r\n\t\t\"pyrotechnics\", // 2019v2\r\n\t\t\"rope trick\",\r\n\t\t\"see invisibility\",\r\n\t\t\"skywrite\", // 2019v2\r\n\t\t\"spider climb\",\r\n\t\t// level 3\r\n\t\t\"blink\",\r\n\t\t\"catnap\", // 2019v2\r\n\t\t\"dispel magic\",\r\n\t\t\"elemental weapon\",\r\n\t\t\"flame arrows\", // 2019v2\r\n\t\t\"fly\",\r\n\t\t\"gaseous form\",\r\n\t\t\"glyph of warding\",\r\n\t\t\"haste\",\r\n\t\t\"protection from energy\",\r\n\t\t\"revivify\",\r\n\t\t\"tiny servant\", // 2019v2\r\n\t\t\"water breathing\",\r\n\t\t\"water walk\",\r\n\t\t// level 4\r\n\t\t\"arcane eye\",\r\n\t\t\"elemental bane\", // 2019v2\r\n\t\t\"fabricate\",\r\n\t\t\"freedom of movement\",\r\n\t\t\"leomund's secret chest\",\r\n\t\t\"mordenkainen's faithful hound\",\r\n\t\t\"mordenkainen's private sanctum\",\r\n\t\t\"otiluke's resilient sphere\",\r\n\t\t\"stone shape\",\r\n\t\t\"stoneskin\",\r\n\t\t\"vitriolic sphere\", // 2019v2\r\n\t\t// level 5\r\n\t\t\"animate objects\",\r\n\t\t\"bigby's hand\",\r\n\t\t\"creation\",\r\n\t\t\"greater restoration\",\r\n\t\t\"skill empowerment\", // 2019v2\r\n\t\t\"transmute rock\", // 2019v2\r\n\t\t\"wall of stone\"\r\n\t];\r\n\tfor (var a = 0; a < artSp.length; a++) {\r\n\t\tvar aArtSp = SpellsList[artSp[a]];\r\n\t\tif(aArtSp && aArtSp.classes && aArtSp.classes.indexOf(\"artificer-ua3\") === -1) aArtSp.classes.push(\"artificer-ua3\");\r\n\t};\r\n\tvar artMi = [\r\n\t\t[\"alchemy jug\"],\r\n\t\t[\"bag of holding\"],\r\n\t\t[\"cap of water breathing\"],\r\n\t\t[\"cloak of the manta ray\"],\r\n\t\t[\"goggles of night\"],\r\n\t\t[\"lantern of revealing\"],\r\n\t\t[\"rope of climbing\"],\r\n\t\t[\"sending stones\"],\r\n\t\t[\"wand of magic detection\"],\r\n\t\t[\"wand of secrets\"],\r\n\t\t[\"boots of elvenkind\", 12],\r\n\t\t[\"boots of striding and springing\", 12],\r\n\t\t[\"boots of the winterlands\", 12],\r\n\t\t[\"bracers of archery\", 12],\r\n\t\t[\"brooch of shielding\", 12],\r\n\t\t[\"cloak of elvenkind\", 12],\r\n\t\t[\"cloak of protection\", 12],\r\n\t\t[\"eyes of charming\", 12],\r\n\t\t[\"eyes of the eagle\", 12],\r\n\t\t[\"gauntlets of ogre power\", 12],\r\n\t\t[\"gloves of missile snaring\", 12],\r\n\t\t[\"gloves of swimming and climbing\", 12],\r\n\t\t[\"gloves of thievery\", 12],\r\n\t\t[\"hat of disguise\", 12],\r\n\t\t[\"headband of intellect\", 12],\r\n\t\t[\"helm of telepathy\", 12],\r\n\t\t[\"medallion of thoughts\", 12],\r\n\t\t[\"periapt of wound closure\", 12],\r\n\t\t[\"pipes of haunting\", 12],\r\n\t\t[\"pipes of the sewers\", 12],\r\n\t\t[\"quiver of ehlonna\", 12],\r\n\t\t[\"ring of jumping\", 12],\r\n\t\t[\"ring of mind shielding\", 12],\r\n\t\t[\"ring of water walking\", 12],\r\n\t\t[\"slippers of spider climbing\", 12],\r\n\t\t[\"winged boots\", 12],\r\n\t\t[\"amulet of health\", 16],\r\n\t\t[\"belt of giant strength\", 16, \"hill (str 21, rare)\"],\r\n\t\t[\"boots of levitation\", 16],\r\n\t\t[\"boots of speed\", 16],\r\n\t\t[\"bracers of defense\", 16],\r\n\t\t[\"cloak of the bat\", 16],\r\n\t\t[\"dimensional shackles\", 16],\r\n\t\t[\"gem of seeing\", 16],\r\n\t\t[\"horn of blasting\", 16],\r\n\t\t[\"ring of free action\", 16],\r\n\t\t[\"ring of protection\", 16],\r\n\t\t[\"ring of the ram\", 16]\r\n\t];\r\n\tvar theObj = ClassList['artificer-ua3'].features[\"infuse item\"];\r\n\tfor (var a = 0; a < artMi.length; a++) {\r\n\t\tvar MI0 = artMi[a][0];\r\n\t\tvar MI1 = artMi[a][1];\r\n\t\tvar MI2 = artMi[a][2];\r\n\t\tvar anArtMi = MagicItemsList[MI0];\r\n\t\tif (!anArtMi) continue;\r\n\t\tif (MI2) {\r\n\t\t\tanArtMi = {\r\n\t\t\t\tname : MagicItemsList[MI0][MI2].name ? MagicItemsList[MI0][MI2].name : MagicItemsList[MI0].name + \" [\" + MI2.capitalize() + \"]\",\r\n\t\t\t\tsource : MagicItemsList[MI0][MI2].source ? MagicItemsList[MI0][MI2].source : MagicItemsList[MI0].source,\r\n\t\t\t\tattunement : MagicItemsList[MI0][MI2].attunement !== undefined ? MagicItemsList[MI0][MI2].attunement : MagicItemsList[MI0].attunement\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar theI = \"Replicate: \" + anArtMi.name + (MI1 ? \" (prereq: level \" + MI1 + \" artificer)\" : \"\");\r\n\t\tvar theILC = theI.toLowerCase();\r\n\t\ttheObj[theILC] = {\r\n\t\t\tname : anArtMi.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : anArtMi.source,\r\n\t\t\teval : 'AddMagicItem(\"' + anArtMi.name + '\");',\r\n\t\t\tremoveeval : MI2 ? 'if (CurrentMagicItems.choices.indexOf(\"' + MI2 + '\") != -1) { MagicItemClear(CurrentMagicItems.choices.indexOf(\"' + MI2 + '\") + 1, true); };' : 'if (CurrentMagicItems.known.indexOf(\"' + MI0 + '\") != -1) { MagicItemClear(CurrentMagicItems.known.indexOf(\"' + MI0 + '\") + 1, true); };'\r\n\t\t};\r\n\t\tif (anArtMi.attunement) theObj[theILC].additional = \"requires attunement\";\r\n\t\tif (MI1) theObj[theILC].prereqeval = \"classes.known['artificer-ua3'].level >= \" + MI1;\r\n\t\ttheObj.extrachoices.push(theI);\r\n\t};\r\n}();\r\n"
  },
  {
    "path": "WotC material/ua_20190815_Barbarian-and-Monk.js",
    "content": "var iFileName = \"ua_20190815_Barbarian-and-Monk.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Barbarian and Monk article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BnM\"] = {\r\n\tname : \"Unearthed Arcana: Barbarian and Monk\",\r\n\tabbreviation : \"UA:BnM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-WildAstral.pdf\",\r\n\tdate : \"2019/08/15\"\r\n};\r\n\r\n// Add a subclasses for the Barbarian and one for the Monk\r\nAddSubClass(\"barbarian\", \"path of the wild soul-ua\", {\r\n\tregExpSearch : /^(?=.*\\bwild\\b)(?=.*\\bsoul\\b).*$/i,\r\n\tsubname : \"Path of the Wild Soul\",\r\n\tsubnameShort: \"Wild Soul\",\r\n\tfullname : \"Wild Soul\",\r\n\tsource : [[\"UA:BnM\", 1]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Lingering Magic\",\r\n\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Detect Magic without spell slots or components, using Con for spellcasting\",\r\n\t\t\t\t\"When I do so, I faintly glow a color corresponding to the school of magic I detect\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Con mod (min 1) per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Lingering Magic\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"]\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"detect magic\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tritual : false,\r\n\t\t\t\t\tchanges : \"Using my Path of the Wild Soul class feature I can cast Detect Magic without requiring components or spell slots.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Wild Surge\",\r\n\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Whenever I enter my rage, I have to roll on the Wild Surge table (see Notes page)\"),\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Wild Surge Table\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 1]],\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"Magic erupts from me while I rage. Whenever I enter my rage, I have to roll on the table below to see what happens.\",\r\n\t\t\t\t\t\"If the effect calls for a saving throw, the DC is equal to 8 + my proficiency bonus + my Constitution modifier.\\n\",\r\n\t\t\t\t\t\"d8\\tEFFECT\",\r\n\t\t\t\t\t\" 1\\tNecrotic energy bursts from me. Each creature within 30 ft of me takes 1d10 necrotic damage, and I gain temporary HP equal to the sum of the necrotic damage dealt to the creatures.\",\r\n\t\t\t\t\t\" 2\\tI teleport up to 20 ft to an unoccupied space I can see. Until my rage ends, I can activate this effect again on each of my turns as a bonus action.\",\r\n\t\t\t\t\t\" 3\\tI conjure 1d4 intangible spirits that look like flumphs in unoccupied spaces within 30 ft of me. Each spirit immediately flies 30 ft in a random direction. At the end of my turn, all spirits explode and each creature within 5 ft of one or more of them must succeed on a Dexterity saving throw or take 2d8 force damage.\",\r\n\t\t\t\t\t\" 4\\tArcane energy enshrouds me. Until my rage ends, I gain a +2 bonus to AC, and whenever a creature within 10 ft of me hits me with an attack, that creature takes force damage equal to my Constitution modifier.\",\r\n\t\t\t\t\t\" 5\\tPlant life temporarily grows around me: until my rage ends, the ground within 10 ft of me is difficult terrain.\",\r\n\t\t\t\t\t\" 6\\tArcane energy taps into the minds of those around me. Each creature within 30 ft of me must succeed on a Wisdom saving throw or I see a glimpse of the creature's thoughts, learning how it plans to attack me. As a result, the creature has disadvantage on attack rolls against me until the start of my next turn.\",\r\n\t\t\t\t\t\" 7\\tShadows weave around a weapon of my choice I am holding. Until my rage ends, my weapon deals psychic damage instead of its bludgeoning, slashing, or piercing damage, and it gains the light and thrown properties with a normal range of 20 ft and a long range of 60 ft. If I drop the weapon or throw it, the weapon dissipates and reappears in my hand at the end of my turn.\",\r\n\t\t\t\t\t\" 8\\tA beam of brilliant light lances from my chest in a 5-ft-wide, 60-ft-long line. Each creature in the line must succeed on a Constitution saving throw or take 2d8 radiant damage and be blinded until the start of my next turn.\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Magic Reserves\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can touch a creature and roll a die to channel magic into it\",\r\n\t\t\t\t\"The target regains an expended spell slot of a level equal to or less then the die roll\",\r\n\t\t\t\t\"If it has no expended spell slots of that level, it gains 5\\xD7 the die roll in temp HP instead\",\r\n\t\t\t\t\"Regardless of what happens, I take force damage equal to five times the die roll\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : n < 14 ? \"1d4\" : \"1d6\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Arcane Rebuke\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I have to make a save while raging, the magic in my soul lashes out\",\r\n\t\t\t\t\"This causes the creature forcing me to make the save, if any, to take 3d6 force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \" (in Rage after save)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Chaotic Fury\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action while raging, I can reroll the effect on the Wild Surge table\",\r\n\t\t\t\t\"This replaces the current wild surge effect with a new one\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (in Rage)\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of the astral self-ua\", {\r\n\tregExpSearch : /^(?=.*astral)(?=.*(self|projection|travel))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Astral Self\",\r\n\tsubnameShort: \"Astral Self\",\r\n\tsource : [[\"UA:BnM\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Arms of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"My ki mastery allows me to summon portions of my astral self; See 3rd page notes\"),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms\"], [\"bonus action\", \"Astral Arm Attacks (after Attack action)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*\\bastral\\b)(?=.*\\barms?\\b).*$/i,\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, \"\", typePF ? \"Necrotic/Radiant\" : \"necrotic|radiant\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"10 ft reach; Uses Str, Dex, or Wis; Deals necrotic or radiant damage\",\r\n\t\t\t\tmonkweapon : true,\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\t\"astral arms\" : {\r\n\t\t\t\tname : \"Astral Arms\",\r\n\t\t\t\textraname : \"Way of the Astral Self 3\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon my astral arms for 10 minutes; I choose their appearance\",\r\n\t\t\t\t\t\"While they are summoned, I can use Wisdom instead of Strength for Strength checks/saves\",\r\n\t\t\t\t\t\"The arms are melee monk weapons with 10 ft reach that can use Wis instead of Str/Dex\",\r\n\t\t\t\t\t\"I can choose to have them deal either radiant or necrotic damage\",\r\n\t\t\t\t\t\"After I use them in my Attack action, I can use them for more attacks as a bonus action\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"2 ki points; \" + (n < 11 ? 1 : n < 17 ? 2 : 3) + \" bonus action attack\" + (n < 11 ? \"\" : \"s\");\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral arms\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Visage of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I can now also summon the visage of my astral self; See third page notes section\"),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage\", \"Summon Astral Arms\"]],\r\n\t\t\t\"astral visage\" : {\r\n\t\t\t\tname : \"Astral Visage\",\r\n\t\t\t\textraname : \"Way of the Astral Self 6\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tadditional: \"1 ki point\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action (or when summoning my astral arms), I can summon my astral visage\",\r\n\t\t\t\t\t\"It covers my face like a helmet or mask and I choose its appearance; It lasts for 10 minutes\",\r\n\t\t\t\t\t\"It grants adv. on Insight \\u0026 Intimidation, and the ability to see 120 ft in (magical) darkness\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral visage\" }]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Awakening of the Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"While having both astral arms and visage summoned, I gain extra benefits, see 3rd page\"),\r\n\t\t\t\"deflect energy\" : {\r\n\t\t\t\tname : \"Deflect Energy\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"As a reaction when I take acid, cold, fire, force, or lightning damage, I can deflect it\",\r\n\t\t\t\t\t\"By doing so, the damage is reduced by 1d10 + my Wisdom modifier + my Monk level\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"empowered arms\" : {\r\n\t\t\t\tname : \"Empowered Arms\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"Once per turn when I hit an astral arms attack, I can add a martial arts die to its damage\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"word of the spirit\" : {\r\n\t\t\t\tname : \"Word of the Spirit\",\r\n\t\t\t\textraname : \"Awakening of the Astral Self\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tdescription : \" [if both astral arms \\u0026 visage]\" + desc([\r\n\t\t\t\t\t\"I can direct my words to a creature I can see within 30 ft so that only it can hear me\",\r\n\t\t\t\t\t\"Alternatively, I can amplify my voice so that it is heard by all within 600 ft of me\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [\r\n\t\t\t\t{ extrachoice : \"deflect energy\" },\r\n\t\t\t\t{ extrachoice : \"empowered arms\" },\r\n\t\t\t\t{ extrachoice : \"word of the spirit\" }\r\n\t\t\t]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Complete Astral Self\",\r\n\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can now also summon the body of my astral self; See third page notes section\",\r\n\t\t\t\t\"This spectral body covers my physique like armor, connecting with the arms and visage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"Summon Astral Arms and/or Visage, or Complete\", \"Summon Astral Arms and/or Visage\"], [\"reaction\", \"Ki Consumption (Complete Astral Self)\"]],\r\n\t\t\t\"astral body\" : {\r\n\t\t\t\tname : \"Astral Body\",\r\n\t\t\t\textraname : \"Way of the Astral Self 17\",\r\n\t\t\t\tsource : [[\"UA:BnM\", 3]],\r\n\t\t\t\tadditional: \"10 ki points\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can summon the arms, visage, and body of my astral self for 10 min\",\r\n\t\t\t\t\t\"This gives me the arms, visage, +2 bonus to AC while not incapacitated, and as follows:\",\r\n\t\t\t\t\t\"When I take the Attack action I can choose to make 3 attacks with my astral arms instead\",\r\n\t\t\t\t\t\"As a reaction when a creature in 10 ft is reduced to 0 HP, I can regain my Wis mod in ki\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"astral body\" }]\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20190905_Sorcerer-and-Warlock.js",
    "content": "var iFileName = \"ua_20190905_Sorcerer-and-Warlock.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Sorcerer and Warlock article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SnW\"] = {\r\n\tname : \"Unearthed Arcana: Sorcerer and Warlock\",\r\n\tabbreviation : \"UA:SnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-AberrantLurk.pdf\",\r\n\tdate : \"2019/09/05\"\r\n};\r\n\r\n// Add a subclasses for the Sorcerer and one for the Warlock\r\n// Both contain work by /u/KaydeArcane\r\nvar UASnW_abberantMindExtraSpell = [\"arms of hadar\", \"dissonant whispers\", \"calm emotions\", \"detect thoughts\", \"hunger of hadar\", \"sending\", \"compulsion\", \"evard's black tentacles\", \"modify memory\", \"rary's telepathic bond\"];\r\nAddSubClass(\"sorcerer\", \"aberrant mind-ua\", {\r\n\tregExpSearch : /^(?=.*aberrant)(?=.*mind).*$/i,\r\n\tsubname : \"Aberrant Mind\",\r\n\tsource : [[\"UA:SnW\", 1]],\r\n\tspellcastingExtra : UASnW_abberantMindExtraSpell,\r\n\tspellcastingExtraApplyNonconform : true,\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Invasive Thoughts\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can telepathic link myself with a creature within 30 ft that I can see\",\r\n\t\t\t\t\"This lasts for 10 minutes, until I'm incapacitated or die, or I use this ability again\",\r\n\t\t\t\t\"I can telepathically talk with the target; It can speak back if it understands a language\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Psionic Spells\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn additional spells, which do not count towards the number of spell I can know\")\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Warped Being\",\r\n\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"My aberrant origin gives me an AC of 13 + my Dex mod when I am not wearing armor\"),\r\n\t\t\tarmorOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*warped)(?=.*being).*$/i,\r\n\t\t\t\tname : \"Warped Being\",\r\n\t\t\t\tsource : [[\"UA:SnW\", 1]],\r\n\t\t\t\tac : 13,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Psionic Sorcery\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can expend sorcery points instead of a spell slot to cast a spell from my Psionic Spells\",\r\n\t\t\t\t\"This costs the spell's level in sorcery points, but the spell requires no other components\"\r\n\t\t\t]),\r\n\t\t\tspellFirstColTitle : \"SP\",\r\n\t\t\tspellChanges : function () {\r\n\t\t\t\tvar fullReObj = {};\r\n\t\t\t\tUASnW_abberantMindExtraSpell.map(function (s) {\r\n\t\t\t\t\tvar spObj = SpellsList[s] ? SpellsList[s] : { level : 1 };\r\n\t\t\t\t\tfullReObj[s] = {\r\n\t\t\t\t\t\tfirstCol : spObj.level,\r\n\t\t\t\t\t\tcompMaterial : (spObj.compMaterial ? spObj.compMaterial + \"\\n\" : \"\") + \"If I cast this spell by expending Sorcery Points, it doesn't require any components\",\r\n\t\t\t\t\t\tchanges : \"I can cast this spell by expending a number of Sorcery Points equal to its level instead of expending a spell slot. When I do so, the spell doesn't require any components.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\treturn fullReObj;\r\n\t\t\t}()\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Psychic Defenses\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription: desc(\"I gain resistance to psychic damage and adv. on saves vs. being charmed or frightened\"),\r\n\t\t\tdmgres : [\"Psychic\"],\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Revelation in Flesh\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend 1 or more sorcery points to transform for 1 minute\",\r\n\t\t\t\t\"For each sorcery point used, I gain one of the following benefits of my choice:\",\r\n\t\t\t\t\"\\u2022 I gain a swimming speed equal to my walking speed and the ability to breathe water\",\r\n\t\t\t\t\"\\u2022 I gain a flying speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\"\\u2022 I can move, with equipment, through any space as narrow as 1 inch without squeezing\",\r\n\t\t\t\t\"  I can spend 5 ft of movement to escape form a grapple or from nonmagical restraints\",\r\n\t\t\t\t\"\\u2022 I am aware of the location of any hidden/invisible creatures within 60 ft of me\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : \"1+ sorcery points\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Warp Reality\",\r\n\t\t\tsource : [[\"UA:SnW\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can radiate a 20-ft radius aura of difficult terrain for 1 minute\",\r\n\t\t\t\t\"Creatures that start their turn within the aura take 2d10 psychic damage\",\r\n\t\t\t\t\"When creating it, I can choose any creatures I can see to be unaffected by this aura\",\r\n\t\t\t\t\"As a bonus action, I can end this aura to teleport myself and others away\",\r\n\t\t\t\t\"I teleport myself and any creature in the aura to a location I can see within 1 mile\",\r\n\t\t\t\t\"An unwilling creature can succeed on a Charisma saving throw to avoid being teleported\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \" (create)\"], [\"bonus action\", \" (end)\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the lurker in the deep-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*lurker)(?=.*(deep|depth)).*$/i,\r\n\tsubname : \"the Lurker in the Deep\",\r\n\tsource : [[\"UA:SnW\", 2]],\r\n\tspellcastingExtra : [\"create or destroy water\", \"thunderwave\", \"gust of wind\", \"shatter\", \"lightning bolt\", \"sleet storm\", \"control water\", \"evard's black tentacles\", \"commune with nature\", \"cone of cold\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Grasp of the Deep\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can summon or move a spectral tentacle and make an attack with it\",\r\n\t\t\t\t\"I can summon it to a space within 60 ft that I can see or move an existing one 30 ft\",\r\n\t\t\t\t\"I make melee spell attacks with 10 ft reach with it that deal cold or lightning damage\",\r\n\t\t\t\t\"Creatures hit by the tentacle suffer 10 ft speed reduction until the start of my next turn\",\r\n\t\t\t\t\"The 10-ft long tentacle lasts for 1 minute or until I summon another\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (summon/move)\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn (n < 10 ? 1 : 2) + \"d8\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Cha mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^((?=.*grasp)(?=.*deep)|(?=.*spectral)(?=.*tentacle)).*$/i,\r\n\t\t\t\tname : \"Grasp of the Deep\",\r\n\t\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\t\tability : 6,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"Cold/Lightning\"],\r\n\t\t\t\trange : \"Melee (10 ft)\",\r\n\t\t\t\tdescription : \"My choice of cold or lightning damage; Target -10 ft speed until my next turn starts\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tlitdGraspOfTheDeep : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.litdGraspOfTheDeep && classes.known.warlock.level >= 10) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '2d8';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Scion of the Deep\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can communicate telepathically with any aberration, beast, elemental, or monstrosity\",\r\n\t\t\t\t\"The creature must be within 120 ft of me and have an innate swimming speed\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Fathomless Soul\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : \" [cold resistance]\\n   I have a swimming speed equal to my walking speed; I can breathe both air and water\",\r\n\t\t\tdmgres : [\"Cold\"],\r\n\t\t\tspeed : { swim : { spd : \"walk\", enc : \"walk\" } }\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Guardian Grasp\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature in 10 ft of my tentacle takes damage, I can have it help\",\r\n\t\t\t\t\"One creature takes only half damage and my spectral tentacle vanishes\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Devouring Maw\",\r\n\t\t\tsource : [[\"UA:SnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon a 10-ft radius translucent maw within 60 ft for 1 minute\",\r\n\t\t\t\t\"Creatures in the maw as it appear must Str save or be restrained, can repeat as action\",\r\n\t\t\t\t\"Creatures starting their turn in the maw take 3d6 cold or lightning damage (my choice)\",\r\n\t\t\t\t\"If a creature is in the maw at the start of my turn, I gain my warlock level in temp HP\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 10 ? \"\" : n + \" temp HP\";\r\n\t\t\t}),\r\n\t\t\trecovery : \"short rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Unleash the Depths\",\r\n\t\t\tsource : [[\"UA:SnW\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can choose one of the following effects to occur within 30 ft of me:\",\r\n\t\t\t\t\"\\u2022 Teleport myself and up to 5 willing creatures I can see within 30 ft of the chosen point\",\r\n\t\t\t\t\"  The destination must be within 100 miles and visited by me within the last 24 hours\",\r\n\t\t\t\t\"\\u2022 5 creatures within 30 ft of the chosen point that I can see are attacked by tentacles\",\r\n\t\t\t\t\"  The targets take 6d10 cold or lightning damage (my choice) and are knocked prone\",\r\n\t\t\t\t\"  Each can make a Dexterity save to halve the damage and avoid being knocked prone\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// [dupl_start] (mostly) the same as in Tasha's Cauldron of Everything\r\nif (!SourceList.T) {\r\n\tSpellsList[\"mind sliver\"] = {\r\n\t\tname : \"Mind Sliver\",\r\n\t\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Ench\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V\",\r\n\t\tduration : \"1 rnd\",\r\n\t\tsave : \"Int\",\r\n\t\tdescription : \"1 crea save or 1d6 Psychic dmg, -1d4 on first save before my next turn ends; +1d6 at CL 5, 11, and 17\",\r\n\t\tdescriptionCantripDie : \"1 crea save or `CD`d6 Psychic dmg and subtract 1d4 from first saving throw before my next turn ends\",\r\n\t\tdescriptionFull : \"You drive a disorienting spike of psychic energy into the mind of one creature you can see within range. The target must make an Intelligence saving throw. Unless the saving throw is successful, the target takes 1d6 psychic damage, and the first time it makes a saving throw before the end of your next turn, it must roll a d4 and subtract the number rolled from the save.\\n   This spell's damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n\t};\r\n\tWeaponsList[\"mind sliver\"] = {\r\n\t\tregExpSearch : /^(?=.*mind)(?=.*sliver).*$/i,\r\n\t\tname : \"Mind Sliver\",\r\n\t\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\t\tlist : \"spell\",\r\n\t\tability : 6,\r\n\t\ttype : \"Cantrip\",\r\n\t\tdamage : [\"C\", 6, \"psychic\"],\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"1 creature Int save, success - no damage, fail - also -1d4 on first save before my next turn ends\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true\r\n\t};\r\n} // dupl_end\r\n"
  },
  {
    "path": "WotC material/ua_20190918_Bard-and-Paladin.js",
    "content": "var iFileName = \"ua_20190918_Bard-and-Paladin.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Bard and Paladin article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:BnP\"] = {\r\n\tname : \"Unearthed Arcana: Bard and Paladin\",\r\n\tabbreviation : \"UA:BnP\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-EloquentHeroics.pdf\",\r\n\tdate : \"2019/09/18\"\r\n};\r\n\r\n// Add a subclasses for the bard and one for the paladin\r\nAddSubClass(\"bard\", \"college of eloquence-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*eloquence).*$/i,\r\n\tsubname : \"College of Eloquence\",\r\n\tsubnameShort: \"Eloquence\",\r\n\tsource : [[\"UA:BnP\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Universal Speech\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend one bardic inspiration die to make me understood by all\",\r\n\t\t\t\t\"I roll the die, that many creatures I can see within 60 ft of me are affected for 10 min\",\r\n\t\t\t\t\"Those affected magically understand me and I gain adv. on Cha checks to influence them\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Soothing Words\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I can cast Calm Emotions without expending a spell slot\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Soothing Words\",\r\n\t\t\t\tspells : [\"calm emotions\"],\r\n\t\t\t\tselection : [\"calm emotions\"],\r\n\t\t\t\tfirstCol : 'Sp'\r\n\t\t\t}],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Undeniable Logic\",\r\n\t\t\tsource : [[\"UA:BnP\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can expend one bardic inspiration die to encourage or befuddle\",\r\n\t\t\t\t\"One creature I can see within 60 ft that can hear me gets one of the following effects:\",\r\n\t\t\t\t\" \\u2022 It heals HP equal to the die roll and has adv. on its next save before my next turn ends\",\r\n\t\t\t\t\" \\u2022 It suffers psychic damage equal to the die roll and must make an Intelligence save\",\r\n\t\t\t\t\"   On a failed save, it also suffers disadv. on its next save before the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1 bardic inspiration die\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Infectious Inspiration\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My bardic inspiration dice are not lost if the check, attack, or save it was added to fails\",\r\n\t\t\t\t\"As a reaction when the same thing happens but the roll succeeds, I can inspire another\",\r\n\t\t\t\t\"I give a creature within 60 ft that can hear me an inspiration die without expending any\",\r\n\t\t\t\t\"I can use this reaction a number of times per long rest equal to my Cha mod (min 1)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Cha mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of heroism-ua\", {\r\n\tregExpSearch : /^(?=.*\\bhero)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of Heroism\",\r\n\tsubnameShort: \"Heroism\",\r\n\tsource : [[\"UA:BnP\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Peerless Athlete\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, I gain adv. on Str (Athletics) and Dex (Acrobatics) checks for 10 min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"expeditious retreat\", \"guiding bolt\", \"enhance ability\", \"enthrall\", \"haste\", \"protection from energy\", \"compulsion\", \"freedom of movement\", \"commune\", \"conjure volley\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Legendary Strike\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As a bonus action, my weapon attacks score a critical hit on a roll of 19 or 20 for 1 min\"),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Mighty Deed\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I score a critical hit or reduce a target to 0 HP, I can bolster morale or demoralize\",\r\n\t\t\t\t\"Up to my Cha mod (min 1) of creatures I can see in 30 ft suffer the same chosen effect:\",\r\n\t\t\t\t\" \\u2022 All creatures gain temp HP equal to 1d6 + my Charisma modifier (min 1 temp HP)\",\r\n\t\t\t\t\" \\u2022 All creatures must make a Wis save or be frightened of me until my next turn starts\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"Round\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Glorious Defense\",\r\n\t\t\tsource : [[\"UA:BnP\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see hits me with an attack roll, I can gain bonus AC\",\r\n\t\t\t\t\"I add my Cha mod (min 1) to my AC for that attack, potentially causing it to miss me\",\r\n\t\t\t\t\"If it misses, I can make one weapon attack against the attacker as part of this reaction\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Living Myth\",\r\n\t\t\tsource : [[\"UA:BnP\", 3]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 I have advantage on all Charisma checks\",\r\n\t\t\t\t\" \\u2022 Once on each of my turns when I miss with a weapon attack, I can cause it to hit\",\r\n\t\t\t\t\" \\u2022 As a reaction when I fail a saving throw, I can choose to succeed instead\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20191003_Cleric-Druid-and-Wizard.js",
    "content": "var iFileName = \"ua_20191003_Cleric-Druid-and-Wizard.js\";\r\nRequiredSheetVersion(\"13.0.8\");\r\n// This file adds the content from the Unearthed Arcana: Cleric, Druid, and Wizard article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CDnW\"] = {\r\n\tname : \"Unearthed Arcana: Cleric, Druid, and Wizard\",\r\n\tabbreviation : \"UA:CDnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-TwilightFireNames.pdf\",\r\n\tdate : \"2019/10/03\"\r\n};\r\n\r\n// Add a subclass for the Cleric\r\nAddSubClass(\"cleric\", \"twilight domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(twilight|transition)).*$/i,\r\n\tsubname : \"Twilight Domain\",\r\n\tsource : [[\"UA:CDnW\", 1]],\r\n\tspellcastingExtra : [\"faerie fire\", \"sleep\", \"darkness\", \"invisibility\", \"aura of vitality\", \"leomund's tiny hut\", \"aura of life\", \"greater invisibility\", \"circle of power\", \"dream\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Bonus Proficiency\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I gain proficiency with martial weapons and heavy armor\"),\r\n\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\tweaponProfs : [false, true]\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Eyes of Night\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain Darkvision with unlimited range and can give this benefit to allies\",\r\n\t\t\t\t\"As an action, I can grant this to chosen creatures I can see within 10 ft for 10 minutes\"\r\n\t\t\t]),\r\n\t\t\tvision : [[\"Darkvision\", \"unlimited\"]],\r\n\t\t\tadditional : \"extend to others\",\r\n\t\t\tusages : \"Wis mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature1.2\" : {\r\n\t\t\tname : \"Vigilant Blessing\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can grant myself or a creature I touch adv. on the next initiative roll\",\r\n\t\t\t\t\"This benefit ends immediately after the roll or when I use this feature again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Twilight Sanctuary\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can use my holy symbol to create a 30-ft radius sphere around myself\",\r\n\t\t\t\t\"It moves with me, is filled with dim light, and lasts for 1 min or until I'm incapacitated\",\r\n\t\t\t\t\"When a creature, including me, ends its turn inside the sphere, I can grant it a benefit\",\r\n\t\t\t\t\"It either gains 1d8 temp HP or one effect causing it to be charmed or frightened ends\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Steps of the Brave\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on saves against being frightened\",\r\n\t\t\t\t\"As a bonus action while I'm in dim light or darkness, I can give myself a fly speed\",\r\n\t\t\t\t\"This fly speed is equal to my walking speed and lasts until the end of my next turn\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Divine Strike\",\r\n\t\t\tsource : [[\"UA:CDnW\", 1]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription: desc(\"Once per turn, when I hit a creature with a weapon attack, I can do extra damage\"),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\tif (n < 8) return \"\";\r\n\t\t\t\treturn \"+\" + (n < 14 ? 1 : 2) + \"d8 psychic damage\";\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && v.isWeapon) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per turn +' + (classes.known.cleric.level < 14 ? 1 : 2) + 'd8 psychic damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn, I can have one of my weapon attacks that hit do extra psychic damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Midnight Shroud\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast Darkness, I can choose my Wis mod of creatures I can see\",\r\n\t\t\t\t\"The chosen creatures can see through the Darkness; I can be one of the chosen creatures\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\t// note that several healing spells are not present here because they don't restore hp at casting (only later)\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spellKey == \"darkness\" && (!spellObj.fistCol || spellObj.fistCol == \"markedbox\")) {\r\n\t\t\t\t\t\t\tspellObj.description = \"15-ft rad darkness on point/obj; no darkvision; only magic light SL 3+ works; Wis mod of crea can see\";\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Darkness using a spell slot, I can choose a number of creatures that I can see (myself included) equal to my Wisdom modifier (minimum 1).The chosen creatures can see through the Darkness.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Druid\r\nAddSubClass(\"druid\", \"circle of wildfire-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*wild.{0,1}fire).*$/i,\r\n\tsubname : \"Circle of Wildfire\",\r\n\tsubnameShort: \"Wildfire\",\r\n\tsource : [[\"UA:CDnW\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Circle Spells\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My mystical bond with a wildfire spirit gives me the ability to cast certain spells\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\r\n\t\t\t\t\"In addition, I learn the Fire Bolt cantrip\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Circle Spells\",\r\n\t\t\t\tspells : [\"fire bolt\"],\r\n\t\t\t\tselection : [\"fire bolt\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"locate animals or plants\", \"scorching ray\", \"fireball\", \"plant growth\", \"aura of life\", \"fire shield\", \"flame strike\", \"raise dead\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Summon Wildfire\",\r\n\t\t\tsource : [[\"UA:CDnW\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a wildfire spirit within 30 ft\",\r\n\t\t\t\t\"All within 10 ft of where it manifests must make a Dex save or take 2d10 fire damage\",\r\n\t\t\t\t\"It disappears after 1 hour, when it is reduced to 0 HP, or I summon another\",\r\n\t\t\t\t\"It obeys my commands, is friendly to my allies and I, and acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"Its HP maximum is equal to its Con mod + my Wis mod + five times my druid level\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Wildfire\"]],\r\n\t\t\tcreaturesAdd : [[\"Wildfire Spirit\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Wildfire Spirit\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Elemental\",\r\n\t\t\t\talignment : \"Chaotic\",\r\n\t\t\t\tac : 13,\r\n\t\t\t\thp : 12,\r\n\t\t\t\thd : [2, 6],\r\n\t\t\t\tspeed : \"20 ft, fly 30 ft (hover)\",\r\n\t\t\t\tscores : [10, 14, 14, 13, 15, 11],\r\n\t\t\t\tsaves : [\"\", 4, 4, \"\", 4, \"\"],\r\n\t\t\t\tskills : {\r\n\t\t\t\t\t\"nature\" : 4\r\n\t\t\t\t},\r\n\t\t\t\tdamage_immunities : \"fire\",\r\n\t\t\t\tcondition_immunities : \"charmed, frightened, grappled, prone, restrained\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"understands the languages of its creator\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Flame Seed\",\r\n\t\t\t\t\tability : 2,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"30 ft\",\r\n\t\t\t\t\tdescription : \"Ranged weapon attack\",\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Teleportation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [1, 6, \"fire\"],\r\n\t\t\t\t\trange : \"10 ft\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft of teleportation origin, success - no damage; See traits\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Fiery Manifestation\",\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\tdamage : [2, 10, \"fire\"],\r\n\t\t\t\t\trange : \"10 ft\",\r\n\t\t\t\t\tdescription : \"Dex save for all within 10 ft where spirit is summoned, success - no damage\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"druid\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The spirit obeys the commands of its creator and has the same proficiency bonus. It takes its turn immediately after its creator, on the same initiative count. It only takes the Dodge action, unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Flame Seed, Fiery Teleportation, Dash, Disengage, Help, or Hide action.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Fiery Teleportation (1\\xD7 per short rest)\",\r\n\t\t\t\t\tdescription : \"The spirit and each willing creature of its creator's choice within 5 ft of it teleport up to 30 ft to unoccupied spaces its creator can see. Each creature within 10 ft of the space that the spirit left must succeed on a Dexterity saving throw against its creator's spell save DC or take fire damage equal to 1d6 + its proficiency bonus.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : \"Wildfire\",\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvl5 = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + drdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its creator's Intelligence modifier\\n + 5 \\xD7 \" + drdLvl + \" from five times its creator's druid level (\" + drdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Enhanced Bond\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While my wildfire spirit is present, I can have my spells originate from it (no range 'self')\",\r\n\t\t\t\t\"Also, I can then add 1d8 to a single roll of my spells that restore HP or deal fire damage\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Flames of Life\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature dies in 30 ft of me/wildfire spirit, I can have flames erupt\",\r\n\t\t\t\t\"The creature has to be Small or larger; The flames last for 1 minute or until touched\",\r\n\t\t\t\t\"When I see someone touch the flames, it heals or takes fire damage for 2d10 + Wis mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Blazing Endurance\",\r\n\t\t\tsource : [[\"UA:CDnW\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"If I drop to 0 HP and don't die, I can stay at 1 HP instead with 5\\xD7 druid level temp HP\",\r\n\t\t\t\t\"Also, all chosen creatures that I can see within 30 ft take 2d10 + druid level fire damage\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Wizard\r\nAddSubClass(\"wizard\", \"onomancy-ua\", {\r\n\tregExpSearch : /onomancy|onomancer/i,\r\n\tsubname : \"Onomancy\",\r\n\tsource : [[\"UA:CDnW\", 4]],\r\n\tfullname : \"Onomancer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription: desc(\"I learn a language of my choice and gain proficiency with calligrapher's tools\"),\r\n\t\t\ttoolProfs : [\"Calligrapher's tools\"],\r\n\t\t\tlanguageProfs : [1]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Extract Name\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 60 ft make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is charmed by me until my next turn ends and I mentally learn its true name\",\r\n\t\t\t\t\"If successful, I know that my magic failed and can't use this feature again on it\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature2.2\" : {\r\n\t\t\tname : \"Fateful Naming\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I add Bane and Bless to my spellbook and they count as wizard spells for me\",\r\n\t\t\t\t\"These are always prepared, but don't count against the number of spells I can prepare\",\r\n\t\t\t\t\"I can cast either spell without using a spell slot by speaking the true name of a target\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Fateful Naming\",\r\n\t\t\t\tspells : [\"bane\", \"bless\"],\r\n\t\t\t\tselection : [\"bane\", \"bless\"],\r\n\t\t\t\ttimes : 2,\r\n\t\t\t\tfirstCol : \"markedbox\"\r\n\t\t\t}],\r\n\t\t\tadditional : \"with true name\",\r\n\t\t\tusages : \"Int mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Resonants\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add Resonants to the third page',\r\n\t\t\t\t\"Whenever I gain a wizard level, I can replace a Resonant I know with another\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : (n < 10 ? 2 : 4) + \" resonants known\";\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? 0 : n < 10 ? 2 : 4;\r\n\t\t\t}),\r\n\t\t\textraname : \"Resonant\",\r\n\t\t\textrachoices : [\"Absorption\", \"Devastation\", \"Dissolution\", \"Nullification\", \"Puppetry\", \"Sympathy\"],\r\n\t\t\t\"absorption\" : {\r\n\t\t\t\tname : \"Absorption\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"When the spell deals damage to the named target, I gain a number of temporary hit points\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn (n < 10 ? 3 : n < 14 ? 4 : 5) + \"d6 temporary hit points\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"devastation\" : {\r\n\t\t\t\tname : \"Devastation\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"The named creature has disadvantage on its first saving throw against the spell\")\r\n\t\t\t},\r\n\t\t\t\"dissolution\" : {\r\n\t\t\t\tname : \"Dissolution\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"The first time the named creature takes damage from the spell, it takes extra damage\"),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn \"+\" + (n < 10 ? 2 : n < 14 ? 3 : 4) + \"d8 force damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"nullification\" : {\r\n\t\t\t\tname : \"Nullification\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"If the named creature is affected by any other spells, I know what those spells are\",\r\n\t\t\t\t\t\"In addition, I can try to end one of my choice with an Int check (DC 10 + spell level)\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"puppetry\" : {\r\n\t\t\t\tname : \"Puppetry\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"The first time the named creature takes damage from the spell, it is moved as well\",\r\n\t\t\t\t\t\"I choose to knock it prone or move it up to 10 ft directly towards me or away from me\"\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t\"sympathy\" : {\r\n\t\t\t\tname : \"Sympathy\",\r\n\t\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\t\tdescription: desc(\"I can target the named creature with the spell even if I can't see it or it is has total cover\")\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Resonant Utterance\",\r\n\t\t\tsource : [[\"UA:CDnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a spell slot to cast a wizard spell, I can use one resonant that I know\",\r\n\t\t\t\t\"The resonant will only work if I speak the true name of a creature targeted by the spell\"\r\n\t\t\t]),\r\n\t\t\tusages : \"half wizard level per \",\r\n\t\t\tusagescalc : \"event.value = classes.known.wizard ? Math.floor(classes.known.wizard.level / 2) : 0;\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Relentless Naming\",\r\n\t\t\tsource : [[\"UA:CDnW\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I speak the true name of a creature when I cast a damage dealing spell at it,\",\r\n\t\t\t\t\"I can have that spell deal force or psychic damage instead of its normal damage type\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20191017_Fighter-Ranger-and-Rogue.js",
    "content": "var iFileName = \"ua_20191017_Fighter-Ranger-and-Rogue.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Fighter, Ranger, and Rogue article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FRnR\"] = {\r\n\tname : \"Unearthed Arcana: Fighter, Ranger, and Rogue\",\r\n\tabbreviation : \"UA:FRnR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-RuneSwarmRevived.pdf\",\r\n\tdate : \"2019/10/17\"\r\n};\r\n\r\n// Add a subclass for the Fighter\r\nAddSubClass(\"fighter\", \"rune knight-ua\", {\r\n\tregExpSearch : /^(?=.*rune)(?=.*knight).*$/i,\r\n\tsubname : \"Rune Knight\",\r\n\tsource : [[\"UA:FRnR\", 1]],\r\n\tfullname : \"Rune Knight\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Bonus Proficiencies\",\r\n\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain proficiency with smith's tools and I learn to speak, read, and write Giant\"),\r\n\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\tlanguageProfs : [\"Giant\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Rune Magic\",\r\n\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn how to use runes to enhance my weapons, armor, and shields\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select a rune and add it to the third page',\r\n\t\t\t\t\"When I finish a long rest, I can inscribe each rune I know upon a different item I touch\",\r\n\t\t\t\t\"Each item can hold only one rune and remains there until I finish a long rest\",\r\n\t\t\t\t\"Runes inscribed on a carried object grant both a passive and a limited-use active effect\",\r\n\t\t\t\t\"Whenever I gain a fighter level, I can swap a rune I know for another\",\r\n\t\t\t\t\"The DC for a rune's abilities is 8 + my Proficiency bonus + my Intelligence modifier\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : (n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5) + \" runes known\"\r\n\t\t\t}),\r\n\t\t\textraTimes : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? 0 : n < 7 ? 2 : n < 10 ? 3 : n < 15 ? 4 : 5;\r\n\t\t\t}),\r\n\t\t\textraname : \"Rune\",\r\n\t\t\textrachoices : [\"Haug (Hill Rune)\", \"Ild (Fire Rune)\", \"Ise (Frost Rune)\", \"Skye (Cloud Rune)\", \"Stein (Stone Rune)\", \"Uvar (Storm Rune)\"],\r\n\t\t\t\"haug (hill rune)\" : {\r\n\t\t\t\tname : \"Haug\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I gain a resilience reminiscent of hill giants\",\r\n\t\t\t\t\t\"I always gain advantage on saves against being poisoned and resistance to poison damage\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to gain resistance to bludg/slash/pierc damage for 1 min\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Haug Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tdmgres : [\"Poison\"],\r\n\t\t\t\tsavetxt : { adv_vs : [\"poison\"] }\r\n\t\t\t},\r\n\t\t\t\"ild (fire rune)\" : {\r\n\t\t\t\tname : \"Ild\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 1]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain craftsmanship reminiscent of fire giants\",\r\n\t\t\t\t\t\"I always double my proficiency bonus when making an ability check with a tool\",\r\n\t\t\t\t\t\"When I hit a creature with a weapon attack, I can invoke it to summon fiery shackles\",\r\n\t\t\t\t\t\"It must make a Str save or be restrained for 1 min; Repeat save at end of each of its turns\",\r\n\t\t\t\t\t\"While restrained, the creature takes 2d6 fire damage at the start of each of its turns\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Ild Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tskillstxt : \"expertise with all tools I am proficient with\",\r\n\t\t\t\teval : function () { Checkbox('Too Exp', true); },\r\n\t\t\t\tremoveeval : function () { Checkbox('Too Exp', false); }\r\n\t\t\t},\r\n\t\t\t\"ise (frost rune)\" : {\r\n\t\t\t\tname : \"Ise\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a stoic calm reminiscent of frost giants\",\r\n\t\t\t\t\t\"I always gain advantage on Wisdom (Animal Handling) and Charisma (Intimidation) checks\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke this rune to gain +2 Strength (max 30) for 10 minutes\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Ise Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Animal Handling\", true], [\"Intimidation\", true] ]\r\n\t\t\t},\r\n\t\t\t\"skye (cloud rune)\" : {\r\n\t\t\t\tname : \"Skye\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain a deceptiveness reminiscent of cloud giants\",\r\n\t\t\t\t\t\"I always gain advantage on Dexterity (Sleight of Hand) and Charisma (Deception) checks\",\r\n\t\t\t\t\t\"As a reaction when I or a target I see get hit by an attack within 30 ft, I can invoke this\",\r\n\t\t\t\t\t\"This causes the attack to target another within 30 ft with the same roll (ignore range)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Skye Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Sleight of Hand\", true], [\"Deception\", true] ]\r\n\t\t\t},\r\n\t\t\t\"stein (stone rune)\" : {\r\n\t\t\t\tname : \"Stein\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this, I gain insightfulness reminiscent of stone giants\",\r\n\t\t\t\t\t\"I always gain adv. on Wisdom (Insight) checks and I gain darkvision 60 ft (or +30 ft)\",\r\n\t\t\t\t\t\"As a reaction when a creature I can see ends it turn within 30 ft, I can invoke this rune\",\r\n\t\t\t\t\t\"This causes the creature to make a Wisdom save or be charmed by me for 1 minute\",\r\n\t\t\t\t\t\"While charmed, it descends into a dreamy stupor, becoming incapacitated and has speed 0\",\r\n\t\t\t\t\t\"This ends early if it takes damage or someone uses an action to shake it out of this state\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"reaction\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Stein Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]],\r\n\t\t\t\tadvantages : [ [\"Insight\", true] ]\r\n\t\t\t},\r\n\t\t\t\"uvar (storm rune)\" : {\r\n\t\t\t\tname : \"Uvar\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"While I wear an object inscribed with this rune, I can glimpse the future like storm giants\",\r\n\t\t\t\t\t\"I always gain adv. on Int (Arcana) checks and I can't be surprised while not incapacitated\",\r\n\t\t\t\t\t\"As a bonus action, I can invoke it to enter a prophetic state for 1 min or till incapacitated\",\r\n\t\t\t\t\t\"While in this state, I can use a reaction to cause a roll to gain advantage or disadvantage\",\r\n\t\t\t\t\t\"I can do this for attacks, saves, and checks of myself or others I can see within 60 ft of me\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \" (invoke)\"]],\r\n\t\t\t\tlimfeaname : \"Uvar Rune\",\r\n\t\t\t\tadditional : \"invoke\",\r\n\t\t\t\tusages : [\"\", \"\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2],\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\tadvantages : [ [\"Arcana\", true] ],\r\n\t\t\t\tsavetxt : { immune : [\"surprised\"] },\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Giant Might\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue myself with giant magic for 1 minute and gain benefits:\",\r\n\t\t\t\t\" \\u2022 Space permitted, I grow to Large size along with everything I'm wearing\",\r\n\t\t\t\t\" \\u2022 Advantage on Strength check and saves; My weapon attacks deal extra damage\"\r\n\t\t\t]),\r\n\t\t\tusages : 2,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : levels.map(function (n){\r\n\t\t\t\treturn n < 3 ? \"\" : \"+1d\" + (n < 10 ? 6 : 8) + \" weapon damage\"\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tsavetxt : { text : [\"Adv. on Str saves in giant might\"] }\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Defensive Runes\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I see a creature get hit by an attack within 60 ft, I can grant it AC\",\r\n\t\t\t\t\"The creature adds 1 + my Int mod (min 2) to its AC for the attack; I learn another rune\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Great Stature\",\r\n\t\t\tsource : [[\"UA:FRnR\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My runes permanently make me grow; I add 3d4 inches to my length\",\r\n\t\t\t\t\"In addition, my Giant Might adds more weapon damage and I learn another rune\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Rune Magic Mastery\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : \" \\n  I can use each of my runes twice instead of once per short rest and I learn another rune\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Blessing of the All Father\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription: desc(\"When I use Giant Might, I can have it also affect a willing ally that I can see within 60 ft\")\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Ranger (and also to the Revised Ranger)\r\nvar UAFRnR_rangerSubclassSwarmkeeperUA = AddSubClass(\"ranger\", \"swarmkeeper-ua\", {\r\n\tregExpSearch : /swarmkeeper/i,\r\n\tsubname : \"Swarmkeeper\",\r\n\tsource : [[\"UA:FRnR\", 3]],\r\n\tfullname : \"Swarmkeeper\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn Mage Hand; When I cast it, the hand takes the form of swarming nature spirits\",\r\n\t\t\t\t\"I get bonus spells known, which do not count against the number of spells I can know\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Swarmkeeper Magic\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"web\", \"gaseous form\", \"giant insect\", \"insect plague\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Gathered Swarm\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I constantly have a swarm of fey spirits crawling in my space, they look like Tiny beasts\",\r\n\t\t\t\t\"As a bonus action, I can agitate that swarm for 1 minute, empowering my attacks\",\r\n\t\t\t\t\"Once per turn when I hit with a weapon attack, I can have it deal extra force damage\",\r\n\t\t\t\t\"In addition, the creature hit is moved 5 ft towards or away from me (my choice)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : \"+\" + (n < 11 ? 1 : 2) + \"d6 force dmg\";\r\n\t\t\t}),\r\n\t\t\tusages : \"Wis mod per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Writhing Tide\",\r\n\t\t\tsource : [[\"UA:FRnR\", 3]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I activate Gathered Swarm, I gain one additional benefit of my choice:\",\r\n\t\t\t\t\" \\u2022 I gain +10 ft walking speed and I can take the Disengage action as a bonus action\",\r\n\t\t\t\t\" \\u2022 I gain climb speed equal to walk speed & need no check for difficult surfaces or ceilings\",\r\n\t\t\t\t\" \\u2022 I gain a 10 ft fly speed and I can hover\"\r\n\t\t\t]),\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"scuttling eyes\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"storm of minions\",\r\n\t\t\t\tminlevel : 15\r\n\t\t\t}],\r\n\t\t\t\"scuttling eyes\" : {\r\n\t\t\t\tname : \"Scuttling Eyes\",\r\n\t\t\t\textraname : \"Swarmkeeper 11\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can from a spirit of my swarm into a Tiny beast of my choice for 1 hour\",\r\n\t\t\t\t\t\"It has AC 18, my senses, and 40 ft speed it can use to walk, climb, fly, or swim\",\r\n\t\t\t\t\t\"It telepathically relays what it sees and hears to me and I can speak through it\",\r\n\t\t\t\t\t\"During my turn, I can telepathically command it and it can hide using my Stealth\",\r\n\t\t\t\t\t\"If it is damaged, I must make a Wis save (DC 10 or half damage if higher) or it vanishes\",\r\n\t\t\t\t\t\"As an action, I can dismiss it early and I can teleport to an empty space within 5 ft of it\",\r\n\t\t\t\t\t\"I can also invoke this ability by spending a spell slot of 3rd level or higher\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \" (summon/dismiss)\"]],\r\n\t\t\t\tadditional : \"or level 3 spell slot\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t},\r\n\t\t\t\"storm of minions\" : {\r\n\t\t\t\tname : \"Storm of Minions\",\r\n\t\t\t\textraname : \"Swarmkeeper 15\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can create a 10-ft radius swarm-filled sphere on a point within 120 ft\",\r\n\t\t\t\t\t\"I can choose any number of creatures that I can see to be unaffected by it\",\r\n\t\t\t\t\t\"It lasts minute, is difficult terrain for others, and I can move it 30 ft as a bonus action\",\r\n\t\t\t\t\t\"Others that start their turn in it take 2d8 necrotic damage and must make a Con save\",\r\n\t\t\t\t\t\"On a success, they take half damage, but if failed, are blinded until their next turn starts\",\r\n\t\t\t\t\t\"At the start of my turn, if a Small or larger creature was damaged by it, I heal 1d8 HP\",\r\n\t\t\t\t\t\"I can also invoke this ability by spending a spell slot of 4th level or higher\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : \"or level 4 spell slot\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UAFRnR_rangerSubclassSwarmkeeperUA); };\r\n\r\n// Add a subclass for the Rogue\r\nAddSubClass(\"rogue\", \"the revived-ua\", {\r\n\tregExpSearch : /^(?=.*(rogue|miscreant))(?=.*revived).*$/i,\r\n\tsubname : \"the Revived\",\r\n\tsource : [[\"UA:FRnR\", 4]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Tokens of Past Lives\",\r\n\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I gain a chosen skill or tool proficiency and can change it whenever I finish a long rest\"),\r\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Revived Nature\",\r\n\t\t\tsource : [[\"UA:FRnR\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have resistance to poison damage and adv. on saves against disease and being poisoned\",\r\n\t\t\t\t\"I don't need to eat, drink, breathe, or sleep; I must spend 4 hours inactive for a long rest\",\r\n\t\t\t\t\"I'm motionless during this inactive state, remain semiconscious, and can hear as normal\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"Poison\"],\r\n\t\t\tsavetxt : { adv_vs : [\"disease\", \"poison\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Bolts from the Grave\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Immediately after I use my cunning action, I can unleash bolts of necrotic energy\",\r\n\t\t\t\t\"This is a ranged spell attack with 30 ft range, which I'm proficient with, using Dexterity\",\r\n\t\t\t\t\"If it hits, it deals my sneak attack damage, provided I didn't use sneak attack this turn\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*bolts?)(?=.*grave).*$/i,\r\n\t\t\t\tname : \"Bolts from the Grave\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\t\tability : 2,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 6, \"necrotic\"],\r\n\t\t\t\trange : \"30 ft\",\r\n\t\t\t\tdescription : \"Immediately after using cunning action; Only if I not yet used sneak attack this turn\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisBoltsFromTheGrave : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.rogue && classes.known.rogue.level && v.theWea.isBoltsFromTheGrave) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = Math.ceil(classes.known.rogue.level / 2) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Connect with the Dead\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Speak with Dead without a spell slot or material components using Intelligence\",\r\n\t\t\t\t\"Doing this gives me a random proficiency (roll 1d3) that lasts until I finish my next rest:\",\r\n\t\t\t\t\"[1] language of my choice; [2] skill or tool of my choice; [3] saving throw of my choice\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Connect with the Dead\",\r\n\t\t\t\tspells : [\"speak with dead\"],\r\n\t\t\t\tselection : [\"speak with dead\"],\r\n\t\t\t\tfirstCol : \"oncesr\",\r\n\t\t\t\tspellcastingAbility : 4\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"speak with dead\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Connect with the Dead, I can cast Speak with Dead once per short rest without using a spell slot or material component.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short rest\"\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Audience with Death\",\r\n\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I have adv. on death saves; Whenever I make one, I can ask a question to a death entity\",\r\n\t\t\t\t'It answers truthfully with \"yes\", \"no\", or \"unknown\", using the knowledge of all that died',\r\n\t\t\t\t\"When at 0 HP and healed or stabilized, I can change any of my traits/ideals/bonds/flaws\"\r\n\t\t\t]),\r\n\t\t\tsavetxt : { text : [\"Adv. on death saves\"] },\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"ethereal jaunt\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}],\r\n\t\t\t\"ethereal jaunt\" : {\r\n\t\t\t\tname : \"Ethereal Jaunt\",\r\n\t\t\t\tsource : [[\"UA:FRnR\", 5]],\r\n\t\t\t\textraname : \"the Revived 17\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I can now use my cunning action to teleport to an unoccupied space within 30 ft\",\r\n\t\t\t\t\t\"I don't need to see where I'm going, but it fails if I'd go through a magical force effect\",\r\n\t\t\t\t\t\"I'm shunted if I appear in an occupied space and take force damage of 2\\xD7 the ft moved\"\r\n\t\t\t\t])\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20191104_Class-Feature-Variants.js",
    "content": "var iFileName = \"ua_20191104_Class-Feature-Variants.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\", 15);\r\n// This file adds the content from the Unearthed Arcana: Class Feature Variants article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:CFV\"] = {\r\n\tname : \"Unearthed Arcana: Class Feature Variants\",\r\n\tabbreviation : \"UA:CFV\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA_ClassFeatures.pdf\",\r\n\tdate : \"2019/11/04\"\r\n};\r\n\r\n// Proficiency Versatility is not something governed by import automation, thus skipped\r\n\r\n// Barbarian alternative class features\r\nCreateClassFeatureVariant(\"barbarian\", \"danger sense\", \"Survival Instincts (ua)\", {\r\n\tname : \"Survival Instincts\",\r\n\tsource : [[\"UA:CFV\", 1]],\r\n\tdescription : desc([\r\n\t\t\"I gain proficiency and expertise with two skills of my choice\",\r\n\t\t\"I can choose from Animal Handling, Medicine, Nature, Perception, and Survival\"\r\n\t]),\r\n\tskillstxt : \"Proficiency and expertise with two from Animal Handling, Medicine, Nature, Perception, and Survival\"\r\n});\r\nCreateClassFeatureVariant(\"barbarian\", \"fast movement\", \"Instinctive Pounce (ua)\", {\r\n\tname : \"Instinctive Pounce\",\r\n\tsource : [[\"UA:CFV\", 1]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature ends it move within 15 ft of me, I can move towards it\",\r\n\t\t\"I move up to half my speed closer to it; This move doesn't provoke opportunity attacks\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\n\r\n// Bard alternative class features enhancements\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Bard Spell List\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"bard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cause fear\", \"color spray\", \"command\", \"aid\", \"enlarge/reduce\", \"mind spike\", \"mirror image\", \"phantasmal force\", \"mass healing word\", \"slow\", \"tiny servant\", \"phantasmal killer\", \"contact other plane\", \"rary's telepathic bond\", \"heroes' feast\", \"mental prison\", \"scatter\", \"tenser's transformation\", \"power word pain\", \"prismatic spray\", \"antipathy/sympathy\", \"maze\", \"prismatic wall\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the bard class with the following spells (spell level in brackets): Cause Fear (1), Color Spray (1), Command (1), Aid (2), Enlarge/Reduce (2), Mind Spike (2), Mirror Image (2), Phantasmal Force (2), Mass Healing Word (3), Slow (3), Tiny Servant (3), Phantasmal Killer (4), Contact Other Plane (5), Rary's Telepathic Bond (5), Heroes' Feast (6), Mental Prison (6), Scatter (6), Tenser's Transformation (6), Power Word Pain (7), Prismatic Spray (7), Antipathy/Sympathy (8), Maze (8), and Prismatic Wall (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Magical Inspiration (ua)\", {\r\n\tname : \"Magical Inspiration\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : desc([\r\n\t\t\"A bardic inspiration die recipient can also use it when casting a damaging or healing spell\",\r\n\t\t\"They can expend the die and add its result to one damage or healing roll of the spell\"\r\n\t])\r\n}, \"Optional 1st-level bard features\");\r\nAddFeatureChoice(ClassList.bard.features.spellcasting, true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Bard 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription: desc(\"After a long rest, I can swap a bard cantrip or spell I know for another of the same level\")\r\n}, \"Optional 1st-level bard features\");\r\n\r\n// Cleric alternative class features and enhancements\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription: desc(\"Whenever I gain a cleric level, I can replace a cleric cantrip I know with another\")\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Cleric Spell List\",\r\n\textraname : \"Optional Cleric 1\",\r\n\tsource : [[\"UA:CFV\", 3]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"cleric\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"cause fear\", \"wrathful smite\", \"branding smite\", \"aura of vitality\", \"aura of life\", \"aura of purity\", \"skill empowerment\", \"wall of light\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the cleric class with the following spells (spell level in brackets): Cause Fear (1), Wrathful Smite (1), Branding Smite (2), Aura of Vitality (3), Aura of Life (4), Aura of Purity (4), Skill Empowerment (5), Wall of Light (5), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level cleric features\");\r\nAddFeatureChoice(ClassList.cleric.features[\"channel divinity\"], true, \"Harness Divine Power (ua)\", {\r\n\tname : \"Channel Divinity:\\xA0Harness Divine Power\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription: desc(\"As a bonus action, I can use my holy symbol and a prayer to regain 1 used level 1 spell slot\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 2nd-level cleric features\");\r\n// Cleric subclass alternative feature, so only run this after we are sure all subclasses have been added\r\nRunFunctionAtEnd(function() {\r\n\tfor (var i = 0; i < ClassList.cleric.subclasses[1].length; i++) {\r\n\t\tvar domain = ClassList.cleric.subclasses[1][i];\r\n\t\tvar objDomain = ClassSubList[domain];\r\n\t\tif (!objDomain || !objDomain.features.subclassfeature8 || !(/divine strike|potent spellcasting/i).test(objDomain.features.subclassfeature8.name)) continue;\r\n\t\tCreateClassFeatureVariant(domain, \"subclassfeature8\", \"Blessed Strikes (ua)\", {\r\n\t\t\tname : \"Blessed Strikes\",\r\n\t\t\tsource : [[\"UA:CFV\", 4]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When a creature is damaged by my weapon attack/spell, I can do +1d8 radiant damage\",\r\n\t\t\t\t\"Once I deal this extra damage, I can't do so again until the start of my next turn\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (classes.known.cleric && (v.isWeapon || (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]].level === 0)) && /\\d/.test(fields.Damage_Die)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per round +1d8 radiant damage';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"Once per turn when a creature takes damage from one of my spell or weapon attacks, I can also deal 1d8 radiant damage to the target.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// Druid alternative class features and enhancements\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription: desc(\"Whenever I gain a druid level, I can replace a druid cantrip I know with another\")\r\n}, \"Optional 1st-level druid features\");\r\nAddFeatureChoice(ClassList.druid.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Druid Spell List\",\r\n\textraname : \"Optional Druid 1\",\r\n\tsource : [[\"UA:CFV\", 4]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"druid\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"ceremony\", \"protection from evil and good\", \"augury\", \"continual flame\", \"enlarge/reduce\", \"aura of vitality\", \"elemental weapon\", \"revivify\", \"thunder step\", \"wall of sand\", \"divination\", \"fire shield\", \"cone of cold\", \"dawn\", \"immolation\", \"flesh to stone\", \"symbol\", \"incendiary cloud\", \"mass polymorph\", \"power word heal\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the druid class with the following spells (spell level in brackets): Ceremony (1), Protection from Evil and Good (1), Augury (2), Continual Flame (2), Enlarge/Reduce (2), Aura of Vitality (3), Elemental Weapon (3), Revivify (3), Thunder Step (3), Wall of Sand (3), Divination (4), Fire Shield (4), Cone of Cold (5), Dawn (5), Immolation (5), Flesh to Stone (6), Symbol (7), Incendiary Cloud (8), Mass Polymorph (9), and Power Word Heal (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level druid features\");\r\n// [dupl_start] the same as in Tasha's Cauldron of Everything\r\nif (!SourceList.T) {\r\n\tvar UACFV_Wild_Companion = {\r\n\t\tname : \"Wild Companion\",\r\n\t\textraname : \"Optional Druid 2\",\r\n\t\tsource : [[\"T\", 35], [\"UA:CFV\", 4]],\r\n\t\tdescription : desc([\r\n\t\t\t\"I can expend a use of wild shape to cast Find Familiar without material components\",\r\n\t\t\t\"The familiar always has the Fey type and disappears after half my druid level in hours\"\r\n\t\t]),\r\n\t\tadditional : levels.map(function (n) {\r\n\t\t\treturn n < 2 ? \"\" : Math.floor(n/2) + \" hours\";\r\n\t\t}),\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Wild Companion\",\r\n\t\t\tspells : [\"find familiar\"],\r\n\t\t\tselection : [\"find familiar\"],\r\n\t\t\tfirstCol : \"Sp\"\r\n\t\t}],\r\n\t\tspellChanges : {\r\n\t\t\t\"find familiar\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tdescription : \"Gain the services of a fey familiar; can see through its eyes; it can deliver touch spells; see B\",\r\n\t\t\t\tduration : \"\\u00BD druid lvl h\",\r\n\t\t\t\tchanges : \"By using my Wild Companion class feature, I can expend a use of wild shape to cast Find Familiar without material components. The familiar created this way always has the Fey type and disappears after a number of hours equal to half my druid level.\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tAddFeatureChoice(ClassList.druid.features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", UACFV_Wild_Companion, \"Optional 2nd-level druid features\");\r\n\tif (ClassSubList[\"druid-circle of the moon\"]) {\r\n\t\tAddFeatureChoice(ClassSubList[\"druid-circle of the moon\"].features[\"subclassfeature2.wild shape\"], true, \"Wild Companion\", UACFV_Wild_Companion, \"Optional 2nd-level druid features\");\r\n\t}\r\n} // dupl_end\r\n\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nAddFeatureChoice(ClassList.fighter.features[\"fighting style\"], true, \"Martial Versatility (ua)\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Fighter 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a fighter level, I can swap a fighting style I know for another I'm allowed\")\r\n}, \"Optional 1st-level fighter features\");\r\n// All the other fighting styles are available for all three classes, fighter, paladin, and ranger, so add them to all three here\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Blind Fighting (ua)\", {\r\n\tname : \"Blind Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"Being unable to see a creature doesn't impose disadvantage on my attack rolls against it\",\r\n\t\t\"However, this doesn't help me if the creature is hidden from me\"\r\n\t])\r\n});\r\n// [dupl_start] the same as in Tasha's Cauldron of Everything\r\nif (!SourceList.T) {\r\n\tAddFightingStyle([\"fighter\", \"paladin\"], \"Interception\", {\r\n\t\tname : \"Interception Fighting Style\",\r\n\t\tsource : [[\"T\", 41], [\"UA:CFV\", 12]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when a creature I can see hits another within 5 ft of me, I can intercept\",\r\n\t\t\t\"I reduce the damage the target takes by 1d10 + my Proficiency Bonus (min 0 damage)\",\r\n\t\t\t\"I can't be the target and it requires me wielding a shield or a simple or martial weapon\"\r\n\t\t]),\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t});\r\n} // dupl_end\r\nAddFightingStyle([\"ranger\"], \"Interception\", { // different for the Ranger, doesn't get this in TCoE\r\n\tname : \"Interception Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"As a reaction when a creature I can see hits a target within 5 ft of me, I can intercept\",\r\n\t\t\"I reduce the damage the target takes by 1d10 + my Proficiency Bonus (min 0 damage)\",\r\n\t\t\"I can only do this while wielding a shield or a simple or martial weapon\"\r\n\t]),\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Thrown Weapon Fighting (ua)\", {\r\n\tname : \"Thrown Weapon Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 13]],\r\n\tdescription : desc([\r\n\t\t\"I can draw a weapon with the thrown property as part of the attack I make with it\",\r\n\t\t\"In addition, my ranged attacks made with thrown weapons deal +1 damage\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.isThrownWeapon && v.isMeleeWeapon) {\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + '+1 damage when thrown';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"I deal +1 damage when I hit a ranged attack made with a thrown weapon.\"\r\n\t\t],\r\n\t\tatkCalc : [\r\n\t\t\tfunction (fields, v, output) {\r\n\t\t\t\tif (v.isThrownWeapon && !v.isMeleeWeapon) {\r\n\t\t\t\t\toutput.extraDmg += 1;\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"\"\r\n\t\t]\r\n\t}\r\n});\r\nAddFightingStyle([\"fighter\", \"ranger\", \"paladin\"], \"Unarmed Fighting (ua)\", {\r\n\tname : \"Unarmed Fighting Style\",\r\n\tsource : [[\"UA:CFV\", 13]],\r\n\tdescription : desc([\r\n\t\t\"My unarmed strikes deal 1d6 damage, or 1d8 damage when I have both hands free\",\r\n\t\t\"When I successfully start a grapple, I can deal 1d4 bludgeoning damage to the target\",\r\n\t\t\"Until the grapple ends, I can also deal this damage whenever I hit it with a melee attack\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tatkAdd : [\r\n\t\t\tfunction (fields, v) {\r\n\t\t\t\tif (v.baseWeaponName == \"unarmed strike\") {\r\n\t\t\t\t\tif (fields.Damage_Die == 1 || fields.Damage_Die == \"1d4\") fields.Damage_Die = '1d6';\r\n\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Versatile (d8)';\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\t\"My unarmed strikes deal 1d6 damage instead of 1, which increases to 1d8 if I have both hands free to make an unarmed strike with.\",\r\n\t\t\t2\r\n\t\t]\r\n\t}\r\n});\r\nif (ClassSubList[\"fighter-battle master\"]) {\r\n\t// Fighter alternative class features and enhancements (only if Battle Master subclass exists)\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Maneuver Versatility (ua)\", {\r\n\t\tname : \"Maneuver Versatility\",\r\n\t\textraname : \"Optional Battle Master 3\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"Whenever I finish a long rest, I can replace a Maneuver I know with another\")\r\n\t}, \"Optional 3rd-level battle master features\");\r\n\t// [dupl_start] the same as in Tasha's Cauldron of Everything\r\n\tif (!SourceList.T) {\r\n\t\tAddFightingStyle([\"fighter\"], \"Superior Technique\", {\r\n\t\t\tname : \"Superior Technique\",\r\n\t\t\tsource : [[\"T\", 41], [\"UA:CFV\", 5]],\r\n\t\t\tadditional: \"1 maneuver; d6, 1\\xD7 per short rest\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain one superiority die (d6) that I can expend to fuel a special Maneuver\",\r\n\t\t\t\t\"I can only use one Maneuver per attack; DCs are 8 + Prof B. + Str/Dex mod, my choice\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to add a Maneuver to the third page'\r\n\t\t\t]),\r\n\t\t\tbonusClassExtrachoices : [{\r\n\t\t\t\t\"class\" : \"fighter\",\r\n\t\t\t\t\"subclass\" : \"fighter-battle master\",\r\n\t\t\t\t\"feature\" : \"subclassfeature3.1\",\r\n\t\t\t\t\"bonus\" : 1\r\n\t\t\t}],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Combat Superiority\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\tadditional : 'd6',\r\n\t\t\t\trecovery : \"short rest\",\r\n\t\t\t\taddToExisting : true\r\n\t\t\t}]\r\n\t\t});\r\n\t\t// New Maneuver options\r\n\t\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Ambush\", {\r\n\t\t\tname : \"Ambush\",\r\n\t\t\tsource : [[\"T\", 42], [\"UA:CFV\", 5]],\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I make an initiative roll or a Dex (Stealth) check, I can add a superiority die to it\",\r\n\t\t\t\t\"I can't do this if I'm incapacitated\"\r\n\t\t\t])\r\n\t\t});\r\n\t} // dupl_end\r\n\t// New Maneuver options\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Bait and Switch (ua)\", {\r\n\t\tname : \"Bait and Switch\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"On my turn, I can expend a superiority die to swap places with an ally within 5 ft\",\r\n\t\t\t\"Doing this costs me 5 ft of movement, but this doesn't provoke opportunity attacks\",\r\n\t\t\t\"The ally then adds the superiority die to its AC until the start of my next turn\"\r\n\t\t])\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Brace (ua)\", {\r\n\t\tname : \"Brace\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a reaction when a creature I can see moves within 5 of me, I can attack it\",\r\n\t\t\t\"I expend a superiority die and make one weapon attack, adding the die to the damage\"\r\n\t\t]),\r\n\t\tlimfeaname : \"Brace\\xA0\",\r\n\t\taction : [[\"reaction\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Restraining Strike\", {\r\n\t\tname : \"Restraining Strike\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Immediately after hitting with a melee weapon attack, I can use a bonus action to grapple\",\r\n\t\t\t\"I add the superiority die to the Str (Athletics) check; I can only do this on my own turn\",\r\n\t\t\t\"The target is also restrained while grappled in this way\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \" (after melee weapon hit)\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Silver Tongue\", {\r\n\t\tname : \"Silver Tongue\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"When I make a Cha (Deception) or Cha (Persuasion) check, I can add a superiority die to it\")\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Snipe\", {\r\n\t\tname : \"Snipe\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As a bonus action, I can expend a superiority die and make a ranged weapon attack\",\r\n\t\t\t\"I can draw a thrown weapon as part of making this attack; I add the die to the damage\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"\"]]\r\n\t});\r\n\tAddFeatureChoice(ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"], true, \"Studious Eye\", {\r\n\t\tname : \"Studious Eye\",\r\n\t\tsource : [[\"UA:CFV\", 5]],\r\n\t\tdescription: desc(\"When I make a Wis (Insight) or Int (Investigation) check, I can add a superiority die to it\")\r\n\t});\r\n}\r\n\r\n// Monk class features enhancements\r\n// Add the monk weapon options as extrachoices\r\nRunFunctionAtEnd(function () {\r\n\tvar UACFV_Monk_Weapon = {\r\n\t\tname : \"Martial Arts Weapons\",\r\n\t\textraname : \"Monk Weapon\",\r\n\t\textrachoices : [],\r\n\t\tsource : [[\"UA:CFV\", 6]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Unarmed strike \\u0026 5 + Wis mod simple/martial weapons (not two-handed/heavy/special)\",\r\n\t\t\t\"With these monk weapons, I can use Dex instead of Str and the Martial Arts damage die\",\r\n\t\t\t\"When taking an Attack action with these, I get one unarmed strike as a bonus action\"\r\n\t\t]),\r\n\t\tcalcChanges : {\r\n\t\t\tatkAdd : [\r\n\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\tvar monkWeapons = [\"unarmed strike\"].concat(GetFeatureChoice(\"classes\", \"monk\", \"martial arts\", true));\r\n\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && (monkWeapons.indexOf(v.baseWeaponName) != -1 || (/monk weapon/i).test(v.WeaponTextName))) {\r\n\t\t\t\t\t\tvar aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10; }(classes.known.monk.level);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tvar curDie = eval_ish(fields.Damage_Die.replace('d', '*'));\r\n\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\tvar curDie = 'x';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tif (isNaN(curDie) || curDie < aMonkDie) {\r\n\t\t\t\t\t\t\tfields.Damage_Die = '1d' + aMonkDie;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tif (fields.Mod === 1 || fields.Mod === 2 || What(AbilityScores.abbreviations[fields.Mod - 1] + \" Mod\") < What(AbilityScores.abbreviations[v.StrDex - 1] + \" Mod\")) {\r\n\t\t\t\t\t\t\tfields.Mod = v.StrDex;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\t\"I can use either Strength or Dexterity and my Martial Arts damage die in place of the normal damage die for any 'Monk Weapons', which include unarmed strike and 5 + my Wisdom modifier of simple or martial weapons of my choice that I'm proficient with and that don't have the two-handed, heavy, or special property.\\n   I can select these weapon using the \\\"Choose Feature\\\" button on the 2nd page, or have them count as such by including the words \\\"Monk Weapon\\\" in the name of the weapon.\",\r\n\t\t\t\t1\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\tfor (var weapon in WeaponsList) {\r\n\t\tvar aWea = WeaponsList[weapon];\r\n\t\t// skip attacks that are not simple or martial weapons, that have the heavy, two-handed, or special property, are magic weapons, or those that are spells or cantrips\r\n\t\tif (aWea.isMagicWeapon || !(/simple|martial/i).test(aWea.type) || (/heavy|special|((^|[^+-]\\b)2|\\btwo).?hand(ed)?s?/i).test(aWea.description) || aWea.special || (/spell|cantrip/i).test(aWea.list)) continue;\r\n\t\tUACFV_Monk_Weapon.extrachoices.push(aWea.name);\r\n\t\tUACFV_Monk_Weapon[aWea.name.toLowerCase()] = {\r\n\t\t\tname : aWea.name,\r\n\t\t\tdescription : \"\",\r\n\t\t\tsource : aWea.source,\r\n\t\t\tweaponsAdd : { select : [aWea.name] },\r\n\t\t\tsubmenu : ((/simple/i).test(aWea.type) ? \"\\x1BSimple weapon, \" : \"Martial weapon, \") + ((/^(?!.*melee).*\\d+.*$/i).test(aWea.range) ? \"ranged\" : \"melee\"),\r\n\t\t\tprereqeval : 'testSource(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"], \"weapExcl\") ? \"skip\" : isProficientWithWeapon(\"' + weapon + '\", WeaponsList[\"' + weapon + '\"]);'\r\n\t\t}\r\n\t}\r\n\tCreateClassFeatureVariant(\"monk\", \"martial arts\", \"Choose Monk Weapons\", UACFV_Monk_Weapon);\r\n\t// Move some stuff around, because the original Martial Arts feature was moved into a choice, but we want to keep its original \"additional\", \"action\", \"eval\", \"removeeval\" attributes\r\n\tvar UACFV_Martial_Arts = ClassList.monk.features[\"martial arts\"];\r\n\tvar UACFV_Martial_Arts_Original = UACFV_Martial_Arts[\"\\x1B[original] martial arts\"];\r\n\tif (UACFV_Martial_Arts_Original) {\r\n\t\t[\"additional\", \"action\", \"eval\", \"removeeval\"].forEach(function (n) {\r\n\t\t\tif (!UACFV_Martial_Arts_Original[n]) return;\r\n\t\t\tUACFV_Martial_Arts[n] = UACFV_Martial_Arts_Original[n];\r\n\t\t\tdelete UACFV_Martial_Arts_Original[n];\r\n\t\t});\r\n\t}\r\n});\r\n// Ki enhancements\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Ki-Fueled Strike (ua)\", {\r\n\tname : \"Ki-Fueled Strike\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription: desc(\"If I spend any ki points during my action, I can make an unarmed strike as a bonus action\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Distant Eye (1 ki point) (ua)\", {\r\n\tname : \"Distant Eye\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \" [1 ki point]\\n   My ranged weapon attacks during this turn ignore the disadvantage from long range\"\r\n}, \"Optional 2nd-level monk features\");\r\nAddFeatureChoice(ClassList.monk.features.ki, true, \"Quickened Healing (2 ki points) (ua)\", {\r\n\tname : \"Quickened Healing\",\r\n\textraname : \"Optional Monk 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \" [2 ki points]\\n   As an action, I can regain a number of hit points equal to the roll of my martial arts die\",\r\n\taction : [[\"action\", \"\"]]\r\n}, \"Optional 2nd-level monk features\");\r\n\r\n// Paladin alternative class features and enhancements\r\n// [dupl_start] the same as in Tasha's Cauldron of Everything\r\nif (!SourceList.T) {\r\n\tAddFightingStyle([\"paladin\"], \"Blessed Warrior\", {\r\n\t\tname : \"Blessed Warrior Fighting Style\",\r\n\t\tsource : [[\"T\", 52], [\"UA:CFV\", 6]],\r\n\t\tdescription : desc([\r\n\t\t\t\"I learn two cleric cantrips that count as paladin spells for me and use Cha for spellcasting\",\r\n\t\t\t\"Whenever I gain a paladin level, I can swap one of these for another cleric cantrip\"\r\n\t\t]),\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Blessed Warrior\",\r\n\t\t\t\"class\" : \"cleric\",\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t});\r\n} // dupl_end\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Martial Versatility (ua)\", {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a paladin level, I can swap a fighting style I know for another I'm allowed\")\r\n}, \"Optional 2nd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Paladin Spell List\",\r\n\textraname : \"Optional Paladin 2\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"paladin\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"gentle repose\", \"prayer of healing\", \"warding bond\", \"life transference\", \"spirit guardians\", \"dawn\", \"flame strike\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the paladin class with the following spells (spell level in brackets): Gentle Repose (2), Prayer of Healing (2), Warding Bond (2), Life Transference (3), Spirit Guardians (3), Dawn (5), and Flame Strike (5).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 2nd-level paladin features\");\r\nAddFeatureChoice(ClassList.paladin.features[\"subclassfeature3.0-channel divinity\"], true, \"Harness Divine Power (ua)\", {\r\n\tname : \"Channel Divinity:\\xA0Harness Divine Power\",\r\n\textraname : \"Optional Paladin 3\",\r\n\tsource : [[\"UA:CFV\", 6]],\r\n\tdescription: desc(\"As a bonus action, I can use my holy symbol and a prayer to regain 1 used level 1 spell slot\"),\r\n\taction : [[\"bonus action\", \"\"]]\r\n}, \"Optional 3rd-level paladin features\");\r\n\r\n// Ranger alternative class features and enhancements\r\nvar UACFV_Deft_Explorer = {\r\n\tname : \"Deft Explorer\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : desc('Use the \"Choose Feature\" button above to add a deft explorer benefit to the third page'),\r\n\tadditional : levels.map(function (n) {\r\n\t\treturn n < 6 ? \"1 benefit\" : (n < 10 ? 2 : 3) + \" benefits\";\r\n\t}),\r\n\textraTimes : levels.map(function (n) {\r\n\t\treturn n < 6 ? 1 : n < 10 ? 2 : 3;\r\n\t}),\r\n\textraname : \"Deft Explorer Benefit\",\r\n\textrachoices : [\"Canny\", \"Roving\", \"Tireless\"],\r\n\t\"canny\" : {\r\n\t\tname : \"Canny\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription : desc([\r\n\t\t\t\"I learn two language of my choice, and proficiency and expertise with one skill of my choice\",\r\n\t\t\t\"The skill I have to choose from: Animal Handling, Athletics, History, Insight, Investigation,\",\r\n\t\t\t\"Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t\t]),\r\n\t\tlanguageProfs : [2],\r\n\t\tskillstxt : \"Proficiency and expertise with one from Animal Handling, Athletics, History, Insight, Investigation, Medicine, Nature, Perception, Stealth, or Survival\"\r\n\t},\r\n\t\"roving\" : {\r\n\t\tname : \"Roving\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription: desc(\"I gain +5 ft walking speed and climbing and swimming speed equal to my walking speed\"),\r\n\t\tspeed : {\r\n\t\t\twalk : { spd : \"+5\", enc : \"+5\" },\r\n\t\t\tclimb : { spd : \"walk\", enc : \"walk\" },\r\n\t\t\tswim : { spd : \"walk\", enc : \"walk\" }\r\n\t\t}\r\n\t},\r\n\t\"tireless\" : {\r\n\t\tname : \"Tireless\",\r\n\t\tsource : [[\"UA:CFV\", 7]],\r\n\t\tdescription : desc([\r\n\t\t\t\"Whenever I finish a short or long rest, I reduce my exhaustion level, if any, by 1\",\r\n\t\t\t\"As an action a number of times per day, I can give myself temp HP of 1d10 + Wis mod\"\r\n\t\t]),\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : \"Wisdom modifier per \",\r\n\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\trecovery : \"long rest\"\r\n\t},\r\n\tautoSelectExtrachoices : []\r\n}\r\nCreateClassFeatureVariant(\"ranger\", \"natural explorer\", \"Deft Explorer (ua)\", UACFV_Deft_Explorer);\r\nvar UACFV_Favored_Foe = {\r\n\tname : \"Favored Foe\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : desc([\r\n\t\t\"I know Hunter's Mark and it doesn't count against the number of spells I can know\",\r\n\t\t\"I can cast it a number of times without using a spell slot or requiring concentration\",\r\n\t\t\"I can also use a spell slot to cast it as normal, but then it does require concentration\"\r\n\t]),\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Favored Foe\",\r\n\t\tspells : [\"hunter's mark\"],\r\n\t\tselection : [\"hunter's mark\"],\r\n\t\tfirstCol : \"Sp\"\r\n\t}],\r\n\tusages : \"Wisdom modifier per \",\r\n\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\trecovery : \"long rest\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"hunter's mark\"]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"favored enemy\", \"Favored Foe (ua)\", UACFV_Favored_Foe);\r\n// Now some easier alternatives/enhancements\r\n// [dupl_start] the same as in Tasha's Cauldron of Everything\r\nif (!SourceList.T) {\r\n\tAddFightingStyle([\"ranger\"], \"Druidic Warrior\", {\r\n\t\tname : \"Druidic Warrior Fighting Style\",\r\n\t\tsource : [[\"T\", 57], [\"UA:CFV\", 7]],\r\n\t\tdescription : desc([\r\n\t\t\t\"I learn two druid cantrips that count as ranger spells for me and use Wis for spellcasting\",\r\n\t\t\t\"Whenever I gain a ranger level, I can swap one of these for another druid cantrip\"\r\n\t\t]),\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Druidic Warrior\",\r\n\t\t\t\"class\" : \"druid\",\r\n\t\t\tlevel : [0, 0],\r\n\t\t\ttimes : 2\r\n\t\t}]\r\n\t});\r\n} // dupl_end\r\n// The enhancement option for fighting styles has to be added to each class separately\r\nvar UACFV_Ranger_Martial_Versatility = {\r\n\tname : \"Martial Versatility\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a ranger level, I can swap a fighting style I know for another I'm allowed\")\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Martial Versatility (ua)\", UACFV_Ranger_Martial_Versatility, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Ranger_Expanded_Spell_List = {\r\n\tname : \"Expanded Ranger Spell List\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 7]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif ((spName !== \"ranger\" && spName !== \"rangerua\") || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"entangle\", \"searing smite\", \"aid\", \"enhance ability\", \"gust of wind\", \"magic weapon\", \"warding bond\", \"blinding smite\", \"meld into stone\", \"revivify\", \"tongues\", \"death ward\", \"dominate beast\", \"awaken\", \"greater restoration\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the ranger class with the following spells (spell level in brackets): Entangle (1), Searing Smite (1), Aid (2), Enhance Ability (2), Gust of Wind (2), Magic Weapon (2), Warding Bond (2), Blinding Smite (3), Meld into Stone (3), Revivify (3), Tongues (3), Death Ward (4), Dominate Beast (4), Awaken (5), and Greater Restoration (5).\"\r\n\t\t]\r\n\t}\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Expanded Spell List (ua)\", UACFV_Ranger_Expanded_Spell_List, \"Optional 2nd-level ranger features\");\r\nvar UACFV_Ranger_Spell_Versatility = {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Ranger 2\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription: desc(\"When I finish a long rest, I can replace a ranger spell I know with another of the same level\")\r\n};\r\nAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Spell Versatility (ua)\", UACFV_Ranger_Spell_Versatility, \"Optional 2nd-level ranger features\");\r\n// [dupl_start] the same as in Tasha's Cauldron of Everything\r\nif (!SourceList.T) {\r\n\tvar TCoE_Ranger_Spellcasting_Focus = {\r\n\t\tname : \"Spellcasting Focus\",\r\n\t\textraname : \"Optional Ranger 2\",\r\n\t\tsource : [[\"T\", 57], [\"UA:CFV\", 8]],\r\n\t\tdescription: desc(\"I can use a druidic focus as a spellcasting focus for my ranger spells\")\r\n\t};\r\n\tAddFeatureChoice(ClassList.ranger.features.spellcasting, true, \"Spellcasting Focus\", TCoE_Ranger_Spellcasting_Focus, \"Optional 2nd-level ranger features\");\r\n} // dupl_end\r\nvar UACFV_Primal_Awareness = {\r\n\tname : \"Primal Awareness\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription : desc([\r\n\t\t\"I get bonus spells known, which do not count against the number of spells I can know\",\r\n\t\t\"In addition, I can cast each once per long rest without expending a spell slot\"\r\n\t]),\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Remove the bonus spells from the normally selectable list\r\n\t\t\t\tif ((spName === \"ranger\" || spName === \"rangerua\") && spType.indexOf(\"bonus\") === -1) {\r\n\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\r\n\t\t\t\t\tspList.notspells = spList.notspells.concat([\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"]);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I know the following spells, without them counting towards the maximum number of spells I can know: Detect Magic, Speak with Animals, Beast Sense, Locate Animals or Plants, Speak with Plants, Locate Creature, and Commune with Nature.\"\r\n\t\t]\r\n\t},\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Primal Awareness\",\r\n\t\tspells : [\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tselection : [\"detect magic\", \"speak with animals\", \"beast sense\", \"locate animals or plants\", \"speak with plants\", \"locate creature\", \"commune with nature\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : levels.map(function (n) {\r\n\t\t\treturn n < 5 ? 2 : n < 9 ? 4 : n < 13 ? 5 : n < 17 ? 6 : 7;\r\n\t\t})\r\n\t}]\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"primeval awareness\", \"Primal Awareness (ua)\", UACFV_Primal_Awareness);\r\nvar UACFV_Fade_Away = {\r\n\tname : \"Fade Away\",\r\n\tsource : [[\"UA:CFV\", 8]],\r\n\tdescription : desc([\r\n\t\t\"As a bonus action, I can become invisible along with any equipment I'm wearing/carrying\",\r\n\t\t\"This invisibility lasts until the start of my next turn\"\r\n\t]),\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : 1,\r\n\trecovery : \"short rest\"\r\n};\r\nCreateClassFeatureVariant(\"ranger\", \"hide in plain sight\", \"Fade Away (ua)\", UACFV_Fade_Away);\r\nif (ClassSubList[\"ranger-beast master\"]) {\r\n\tAddFeatureChoice(ClassSubList[\"ranger-beast master\"].features[\"subclassfeature3\"], true, \"Beast of the Air/Earth (ua)\", {\r\n\t\tname : \"Beast of the Air/Earth\",\r\n\t\textraname : \"Optional Beast Master 3\",\r\n\t\tsource : [[\"UA:CFV\", 8]],\r\n\t\tdescription : desc([\r\n\t\t\t\"My ranger's companion can be a primal beast whose lineage stretches back to the beginning\",\r\n\t\t\t\"This beast of the air or earth takes the form of a regular animal, but has different abilities\",\r\n\t\t\t\"Its hit points total is equal to its Con mod + my Wis mod + 5 times my ranger level\",\r\n\t\t\t\"As a bonus action, I can command it to make one attack or take the Hide action\",\r\n\t\t\t\"If it dies, I can revive it within 1 hour as an action where I expend a spell slot and touch it\",\r\n\t\t\t\"It then returns to life with all its hit points after 1 minute\"\r\n\t\t]),\r\n\t\taction : [[\"bonus action\", \"Command Beast of the Air/Earth\"], [\"action\", \"Revive Beast of the Air/Earth\"]],\r\n\t\tcreaturesAdd : [[\"Beast of the Air\", true], [\"Beast of the Earth\", true]],\r\n\t\tcreatureOptions : [{\r\n\t\t\tname : \"Beast of the Air\",\r\n\t\t\tsource : [[\"UA:CFV\", 8]],\r\n\t\t\tsize : 4,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Neutral\",\r\n\t\t\tac : 13,\r\n\t\t\thp : 6,\r\n\t\t\thd : [1, 6],\r\n\t\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\t\tspeed : \"10 ft, fly 60 ft\",\r\n\t\t\tscores : [6, 16, 13, 8, 14, 11],\r\n\t\t\tsaves : [\"\", 5, 3, \"\", 4, \"\"],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\"stealth\" : 5\r\n\t\t\t},\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 14,\r\n\t\t\tlanguages : \"understands the languages of its master (me)\",\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Shred\",\r\n\t\t\t\tability : 2,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\"\r\n\t\t\t}],\r\n\t\t\tfeatures : [{\r\n\t\t\t\tname : \"Ready Companion\",\r\n\t\t\t\tdescription : \"As a bonus action, I can command the beast to make its shred attack or to Hide.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Primal Rebirth\",\r\n\t\t\t\tdescription : \"If the beast has died within the last hour, I can use my action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Flyby\",\r\n\t\t\t\tdescription : \"The beast doesn't provoke opportunity attacks when it flies out of an enemy's reach.\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\t\tvar rngrLvl5 = 5 * rngrLvl;\r\n\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + rngrLvl5);\r\n\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its master's Wisdom modifier\\n + 5 \\xD7 \" + rngrLvl + \" from five times its master's ranger level (\" + rngrLvl5 + \")\");\r\n\t\t\t\t},\r\n\t\t\t\tsetAltHp : true,\r\n\t\t\t\thpForceRecalc : true\r\n\t\t\t},\r\n\t\t\tcompanionApply : \"companion\"\r\n\t\t}, {\r\n\t\t\tname : \"Beast of the Earth\",\r\n\t\t\tsource : [[\"UA:CFV\", 9]],\r\n\t\t\tsize : 3,\r\n\t\t\ttype : \"Beast\",\r\n\t\t\talignment : \"Neutral\",\r\n\t\t\tac : 12,\r\n\t\t\thp : 7,\r\n\t\t\thd : [1, 8],\r\n\t\t\thdLinked : [\"ranger\", \"spell-less ranger\"],\r\n\t\t\tspeed : \"40 ft, climb or swim 40 ft\",\r\n\t\t\tscores : [14, 14, 15, 8, 14, 11],\r\n\t\t\tsaves : [\"\", 4, 4, \"\", 4, \"\"],\r\n\t\t\tskills : {\r\n\t\t\t\t\"perception\" : 4,\r\n\t\t\t\t\"stealth\" : 4\r\n\t\t\t},\r\n\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\tpassivePerception : 14,\r\n\t\t\tlanguages : \"understands the languages of its master (me)\",\r\n\t\t\tchallengeRating : \"1/4\",\r\n\t\t\tproficiencyBonus : 2,\r\n\t\t\tattacksAction : 1,\r\n\t\t\tattacks : [{\r\n\t\t\t\tname : \"Maul\",\r\n\t\t\t\tability : 1,\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\tdescription : \"If used after moving 20 ft straight in the same round, see Charge trait\"\r\n\t\t\t}],\r\n\t\t\tfeatures : [{\r\n\t\t\t\tname : \"Movement Mode\",\r\n\t\t\t\tdescription : \"When I bond with the beast, I choose wether it has a climb speed or a swim speed.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Ready Companion\",\r\n\t\t\t\tdescription : \"As a bonus action, I can command the beast to make its shred attack or to Hide.\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Primal Rebirth\",\r\n\t\t\t\tdescription : \"If the beast has died within the last hour, I can use my action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored.\"\r\n\t\t\t}],\r\n\t\t\ttraits : [{\r\n\t\t\t\tname : \"Charge\",\r\n\t\t\t\tdescription : \"If the beast moves at least 20 ft straight toward a target and then hits it with a maul attack on the same turn, the target takes an extra 1d6 slashing damage. If the target is a creature, it must succeed on a Strength saving throw against my spell save DC or be knocked prone.\"\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\tif (!classes.known.ranger && !classes.known[\"spell-less ranger\"]) return;\r\n\t\t\t\t\tvar wisMod = Number(What('Wis Mod'));\r\n\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known[\"spell-less ranger\"].level;\r\n\t\t\t\t\tvar rngrLvl5 = 5 * rngrLvl;\r\n\t\t\t\t\tHDobj.alt.push(HDobj.conMod + wisMod + rngrLvl5);\r\n\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + wisMod + \" from its master's Wisdom modifier\\n + 5 \\xD7 \" + rngrLvl + \" from five times its master's ranger level (\" + rngrLvl5 + \")\");\r\n\t\t\t\t},\r\n\t\t\t\tsetAltHp : true,\r\n\t\t\t\thpForceRecalc : true\r\n\t\t\t},\r\n\t\t\tcompanionApply : \"companion\"\r\n\t\t}]\r\n\t}, \"Optional 3rd-level beast master features\");\r\n}\r\n\r\n// Add the Ranger alternative class features also to the Revised Ranger, if it exists\r\nif (ClassList[\"rangerua\"]) {\r\n\tCreateClassFeatureVariant(\"rangerua\", \"natural explorer\", \"Deft Explorer (ua)\", UACFV_Deft_Explorer);\r\n\r\n\t// Add Favored Foe as an alternative choice (can't be done by automation because of choices) and add \"Favored Foe\" variant option\r\n\t// Move some attributes from the main object to the favored enemy choice objects\r\n\t['additional', 'languageProfs', 'calcChanges'].forEach( function(attr) {\r\n\t\tvar fea = ClassList.rangerua.features[\"favored enemy\"];\r\n\t\tif (!fea[attr]) return;\r\n\t\t// Move the attribute to each of the choices\r\n\t\tfor (var i = 0; i < fea.choices.length; i++) {\r\n\t\t\tvar aCh = fea[fea.choices[i].toLowerCase()];\r\n\t\t\tif (aCh.source) continue; // don't do options that are not part of the original entry (which don't have a source)\r\n\t\t\taCh[attr] = fea[attr];\r\n\t\t}\r\n\t\t// Now delete the attributes from the parent object\r\n\t\tdelete fea[attr];\r\n\t});\r\n\t// Now add the alternative class feature as another choice\r\n\tAddFeatureChoice(ClassList.rangerua.features[\"favored enemy\"], false, \"[alternative feature] Favored Foe (ua)\", UACFV_Favored_Foe);\r\n\r\n\t// The enhancement option for fighting styles has to be added to each class separately\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Martial Versatility (ua)\", UACFV_Ranger_Martial_Versatility, \"Optional 2nd-level ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Expanded Spell List (ua)\", UACFV_Ranger_Expanded_Spell_List, \"Optional 2nd-level ranger features\");\r\n\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Spell Versatility (ua)\", UACFV_Ranger_Spell_Versatility, \"Optional 2nd-level ranger features\");\r\n\t// [dupl_start] the same as in Tasha's Cauldron of Everything\r\n\tif (!SourceList.T) {\r\n\t\tAddFeatureChoice(ClassList.rangerua.features.spellcasting, true, \"Spellcasting Focus\", TCoE_Ranger_Spellcasting_Focus, \"Optional 2nd-level ranger features\");\r\n\t} // dupl_end\r\n\tCreateClassFeatureVariant(\"rangerua\", \"primeval awareness\", \"Primal Awareness (ua)\", UACFV_Primal_Awareness);\r\n\tCreateClassFeatureVariant(\"rangerua\", \"hide in plain sight\", \"Fade Away (ua)\", UACFV_Fade_Away);\r\n}\r\n\r\n// Rogue alternative class feature enhancement\r\nAddFeatureChoice(ClassList.rogue.features[\"cunning action\"], true, \"Cunning Action: Aim (ua)\", {\r\n\tname : \"Cunning Action: Aim\",\r\n\textraname : \"Optional Rogue 2\",\r\n\tsource : [[\"UA:CFV\", 9]],\r\n\tdescription : desc([\r\n\t\t\"I can also use my cunning action bonus action to carefully aim my next attack\",\r\n\t\t\"If I don't move in my turn, I give myself adv. on my next attack in the current turn\",\r\n\t\t\"After I use cunning action to aim, my speed is 0 until the end of the current turn\"\r\n\t])\r\n}, \"Optional 2nd-level rogue features\");\r\n\r\n// Sorcerer alternative class features and enhancements\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Sorcerer Spell List\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"UA:CFV\", 9]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"sorcerer\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"primal savagery\", \"grease\", \"protection from evil and good\", \"flame blade\", \"flaming sphere\", \"vampiric touch\", \"fire shield\", \"flesh to stone\", \"demiplane\", \"foresight\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the sorcerer class with the following spells (spell level in brackets): Primal Savagery (cantrip), Grease (1), Protection from Evil and Good (1), Flame Blade (2), Flaming Sphere (2), Vampiric Touch (3), Fire Shield (4), Flesh to Stone (6), Demiplane (8), and Foresight (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features.spellcasting, true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Sorcerer 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription: desc(\"After a long rest, I can swap a sorcerer cantrip/spell I know for another of the same level\")\r\n}, \"Optional sorcerer features\");\r\n// Font of Magic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Empowering Reserves\", {\r\n\tname : \"Empowering Reserves\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [2 sorcery points]\\n   When I make an ability check on my turn, I can gain advantage on the check\"\r\n}, \"Optional 2nd-level sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Imbuing Touch\", {\r\n\tname : \"Imbuing Touch\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [2 sorcery points]\\n   As an action, I can touch a nonmagical weapon and make it count as magical for 1 minute\",\r\n\taction : [[\"action\", \" (2 sorcery points)\"]]\r\n}, \"Optional 2nd-level sorcerer features\");\r\nAddFeatureChoice(ClassList.sorcerer.features[\"font of magic\"], true, \"Sorcerous Fortitude (ua)\", {\r\n\tname : \"Sorcerous Fortitude\",\r\n\textraname : \"Optional Sorcerer 2\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \" [1+ sorcery points]\\n   As an action, I can gain 1d4 temporary hit points per sorcery point I spend\",\r\n\taction : [[\"action\", \" (1+ sorcery points)\"]]\r\n}, \"Optional 2nd-level sorcerer features\");\r\n// Metamagic options\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Elemental Spell (ua)\", {\r\n\tname : \"Elemental Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"If the spell deals one of the below damage types, I can change it to another on the list\",\r\n\t\t\"These damage types are: acid, cold, fire, lightning, or thunder\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Seeking Spell (ua)\", {\r\n\tname : \"Seeking\\xA0Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"1 sorcery point\",\r\n\tdescription : desc([\r\n\t\t\"I can ignore half- and three-quarters cover for the one spell I'm casting\",\r\n\t\t\"This applies both to my spell attack rolls as to the Dexterity saving throws of the targets\"\r\n\t])\r\n});\r\nAddFeatureChoice(ClassList.sorcerer.features[\"metamagic\"], true, \"Unerring Spell (ua)\", {\r\n\tname : \"Unerring Spell\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tadditional: \"2 sorcery points\",\r\n\tdescription : desc([\r\n\t\t\"If I make an attack roll for a spell and miss, I can use this to reroll the attack once\",\r\n\t\t\"I can use unerring spell even if I already used another metamagic option for the spell\"\r\n\t])\r\n});\r\n\r\n// Warlock alternative class features and enhancements\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Spell Versatility (ua)\", {\r\n\tname : \"Spell Versatility\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription: desc(\"After a long rest, I can swap a warlock cantrip or spell I know for another of the same level\")\r\n}, \"Optional 1st-level warlock features\");\r\nAddFeatureChoice(ClassList.warlock.features[\"pact magic\"], true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Warlock Spell List\",\r\n\textraname : \"Optional Warlock 1\",\r\n\tsource : [[\"UA:CFV\", 10]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"warlock\" || (spType.indexOf(\"bonus\") !== -1 && (!spList[\"class\"] || spList[\"class\"] !== \"warlock\"))) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"thunderwave\", \"knock\", \"animate dead\", \"life transference\", \"greater invisibility\", \"phantasmal killer\", \"mislead\", \"modify memory\", \"planar binding\", \"teleportation circle\", \"create homunculus\", \"magic jar\", \"project image\", \"abi-dalzim's horrid wilting\", \"gate\", \"shapechange\", \"weird\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the warlock class with the following spells (spell level in brackets): Thunderwave (1), Knock (2), Animate Dead (3), Life Transference (3), Greater Invisibility (4), Phantasmal Killer (4), Mislead (5), Modify Memory (5), Planar Binding (5), Teleportation Circle (5), Create Homunculus (6), Magic Jar (6), Project Image (7), Abi-Dalzim's Horrid Wilting (8), Gate (9), Shapechange (9), and Weird (9).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level warlock features\");\r\n// New Eldritch Invocations\r\nAddWarlockInvocation(\"Bond of the Talisman (prereq: level 12 warlock, Pact of the Talisman) (ua)\", {\r\n\tname : \"Bond of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can teleport to the unoccupied space closest to the wearer of my talisman\",\r\n\t\t\"The talisman's wearer can do the same to teleport to me; Only works if both on same plane\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 12 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Chain Master's Fury (prereq: level 9 warlock, Pact of the Chain)\", {\r\n\tname : \"Chain Master's Fury\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription: desc(\"As a bonus action, I can command my familiar to make one attack\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\taction : [[\"bonus action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Armor (prereq: Pact of the Blade)\", {\r\n\tname : \"Eldritch Armor\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Blade]\",\r\n\tdescription : desc([\r\n\t\t\"As an action, I can touch an unattended suit of armor and instantly don it\",\r\n\t\t\"I am proficient with this suit of armor until it is removed\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the blade';\r\n\t},\r\n\taction : [[\"action\", \"\"]]\r\n});\r\nAddWarlockInvocation(\"Eldritch Mind (prereq: Pact of the Tome)\", {\r\n\tname : \"Eldritch Mind\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription: desc(\"I have advantage on my Constitution saving throws to maintain concentration on a spell\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\tsavetxt : { text : \"Adv. on Con (Concentration) saves\" }\r\n});\r\nAddWarlockInvocation(\"Far Scribe (prereq: level 5 warlock, Pact of the Tome) (ua)\", {\r\n\tname : \"Far\\xA0Scribe\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Cha mod (min 1) in creature names; I can remove one as an action\",\r\n\t\t\"I can cast Sending without a spell slot or material components, targeting one on the page\",\r\n\t\t\"Instead of saying the message, I write it on the page and any reply appears there as well\",\r\n\t\t\"This writing disappears after 1 minute; The target still hears the message in their mind\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 5 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Far Scribe\",\r\n\t\tspells : [\"sending\"],\r\n\t\tselection : [\"sending\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"sending\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\",\r\n\t\t\tdescription : \"Send 25 word message to crea named in book of shadows; it recognizes me and can respond 25 words\",\r\n\t\t\tchanges : \"By using Far Scribe, I can cast Sending without using a spell slot or material components, but only to target one of the creatures that wrote their name in my book of shadows. Instead of speaking the message, I write it in my book and any response appears there as well, lasting for 1 minute. The target still hears the message in their mind.\"\r\n\t\t}\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Gift of the Protectors (prereq: level 9 warlock, Pact of the Tome) (ua)\", {\r\n\tname : \"Gift of the\\xA0Protectors\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Tome]\",\r\n\tdescription : desc([\r\n\t\t\"My book of shadows has a new page; As an action, a creature can write its name on it\",\r\n\t\t\"This page can hold my Cha mod (min 1) in creature names; I can remove one as an action\",\r\n\t\t\"If a creature whose name is on the page drops to 0 HP, it magically drops to 1 HP instead\",\r\n\t\t\"This doesn't work if the creature would be killed outright\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the tome';\r\n\t},\r\n\taction : [[\"action\", \" (erase name)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n});\r\nAddWarlockInvocation(\"Investment of the Chain Master (prereq: Pact of the Chain) (ua)\", {\r\n\tname : \"Investment of the Chain\\xA0Master\",\r\n\tsource : [[\"UA:CFV\", 11]],\r\n\tsubmenu : \"[improves Pact of the Chain]\",\r\n\tdescription : desc([\r\n\t\t\"When I cast Find Familiar, the summoned create has additional benefits:\",\r\n\t\t\"\\u2022 It gains a flying or swimming speed of 40 ft (my choice at casting)\",\r\n\t\t\"\\u2022 It no longer needs to breathe\",\r\n\t\t\"\\u2022 Its weapon attacks are considered magical for overcoming immunities and resistances\",\r\n\t\t\"\\u2022 If it forces a creature to make a saving throw, it uses my spell save DC\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon') == 'pact of the chain';\r\n\t},\r\n\tcalcChanges : {\r\n\t\tcompanionCallback : [function(prefix, oCrea, bAdd, sCompType) {\r\n\t\t\tif (sCompType !== \"pact_of_the_chain\") return;\r\n\t\t\tvar strFea = \"##\\u25C6 Investment of the Chain Master (UA:CFV 11)##.: The familiar gains 40 ft fly or swim speed (my choice), doesn't need to breathe, its attacks are considered magical, and it can use my spell save DC instead of its own DC's (if any).\";\r\n\t\t\tvar strSpd = \"fly or swim 40 ft\";\r\n\t\t\tif (What(\"Unit System\") === \"metric\") {\r\n\t\t\t\tstrFea = ConvertToMetric(strFea, 0.5);\r\n\t\t\t\tstrSpd = ConvertToMetric(strSpd, 0.5);\r\n\t\t\t}\r\n\t\t\tvar aFnc = bAdd ? AddString : RemoveString;\r\n\t\t\taFnc(prefix + \"Comp.Use.Features\", strFea, true);\r\n\t\t\taFnc(prefix + \"Comp.Use.Speed\", strSpd, typePF ? \",\\n\" : \", \");\r\n\t\t\tfor (var i = 1; i <= 3; i++) {\r\n\t\t\t\tvar baseFld = prefix + \"Comp.Use.Attack.\" + i;\r\n\t\t\t\tvar weaDescrFld = baseFld + \".Description\";\r\n\t\t\t\tvar strWeaDescr = What(weaDescrFld);\r\n\t\t\t\tif (bAdd && What(baseFld + \".Weapon Selection\") && !(/(,|;)? ?counts as magical/i).test(strWeaDescr)) {\r\n\t\t\t\t\tAddString(weaDescrFld, \"Counts as magical\", \"; \");\r\n\t\t\t\t} else if (!bAdd) {\r\n\t\t\t\t\tValue(weaDescrFld, strWeaDescr.replace(/(,|;)? ?counts as magical/i, ''));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"My pact of the chain familiars gain an extra feature listing the extra bonuses they gain.\"]\r\n\t}\r\n});\r\nAddWarlockInvocation(\"Protection of the Talisman (prereq: level 9 warlock, Pact of the Talisman) (ua)\", {\r\n\tname : \"Protection of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription: desc(\"The wearer of my talisman adds 1d4 to saving throw rolls in which they lack proficiency\"),\r\n\tprereqeval : function(v) {\r\n\t\treturn classes.known.warlock.level >= 9 && GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\tsavetxt : { text : [\"+1d4 to nonproficient saves\"] }\r\n});\r\nAddWarlockInvocation(\"Rebuke of the Talisman (prereq: Pact of the Talisman) (ua)\", {\r\n\tname : \"Rebuke of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tsubmenu : \"[improves Pact of the Talisman]\",\r\n\tdescription : desc([\r\n\t\t\"As a reaction when the wearer of my talisman is hit, I deal damage and push the attacker\",\r\n\t\t\"To be able to do this, I have to see the attacker and it has to be within 30 ft of me\",\r\n\t\t\"I deal it my Cha mod in psychic damage (min 1) and push it 10 ft away from the talisman\"\r\n\t]),\r\n\tprereqeval : function(v) {\r\n\t\treturn GetFeatureChoice('class', 'warlock', 'pact boon').indexOf(\"pact of the talisman\") !== -1;\r\n\t},\r\n\taction : [[\"reaction\", \"\"]]\r\n});\r\n// Pact Boon option\r\nAddWarlockPactBoon(\"Pact of the Talisman (ua)\", {\r\n\tname : \"Pact of the\\xA0Talisman\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : desc([\r\n\t\t\"The wearer of this amulet adds 1d4 to checks with skills in which they lack proficiency\",\r\n\t\t\"I can give the talisman to others to use; The talisman turns to ash when I die\",\r\n\t\t\"If I lose my talisman, I can perform a 1-hour ceremony to gain a replacement\",\r\n\t\t\"This ceremony destroys the previous amulet and can be done during a short or long rest\"\r\n\t])\r\n});\r\n\r\n// Wizard alternative class features and enhancements\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Cantrip Versatility (ua)\", {\r\n\tname : \"Cantrip Versatility\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription: desc(\"Whenever I gain a wizard level, I can replace a wizard cantrip I know with another\")\r\n}, \"Optional 1st-level wizard features\");\r\nAddFeatureChoice(ClassList.wizard.features.spellcasting, true, \"Expanded Spell List (ua)\", {\r\n\tname : \"Expanded Wizard Spell List\",\r\n\textraname : \"Optional Wizard 1\",\r\n\tsource : [[\"UA:CFV\", 12]],\r\n\tdescription : \"\",\r\n\tcalcChanges : {\r\n\t\tspellList : [\r\n\t\t\tfunction(spList, spName, spType) {\r\n\t\t\t\t// Stop this is not the class' spell list or if this is for a bonus spell entry\r\n\t\t\t\tif (spName !== \"wizard\" || spType.indexOf(\"bonus\") !== -1) return;\r\n\t\t\t\tspList.extraspells = spList.extraspells.concat([\"augury\", \"enhance ability\", \"speak with dead\", \"divination\"]);\r\n\t\t\t},\r\n\t\t\t\"This alternative class feature enhancement expands the spell list of the wizard class with the following spells (spell level in brackets): Augury (2), Enhance Ability (2), Speak with Dead (3), and Divination (4).\"\r\n\t\t]\r\n\t}\r\n}, \"Optional 1st-level wizard features\");\r\n"
  },
  {
    "path": "WotC material/ua_20191125_Fighter-Rogue-and-Wizard.js",
    "content": "var iFileName = \"ua_20191125_Fighter-Rogue-and-Wizard.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana: Fighter, Rogue, and Wizard (psionics) article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:FRnW\"] = {\r\n\tname : \"Unearthed Arcana: Fighter, Rogue, and Wizard\",\r\n\tabbreviation : \"UA:FRnW\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2019/dnd/downloads/UA-PsychicSoulPsionics.pdf\",\r\n\tdate : \"2019/11/25\"\r\n};\r\n\r\n// Add a subclass for the Fighter\r\nAddSubClass(\"fighter\", \"psychic warrior-ua\", {\r\n\tregExpSearch : /^(?=.*psychic)(?=.*warrior).*$/i,\r\n\tsubname : \"Psychic Warrior\",\r\n\tsource : [[\"UA:FRnW\", 1]],\r\n\tfullname : \"Psychic Warrior\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psionic Armament\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar a = desc([\r\n\t\t\t\t\t\"When I finish a long rest, I can choose to augment my defenses or strikes until the next\",\r\n\t\t\t\t\t\" \\u2022 As a reaction, augmented defenses allow me to reduce the damage taken by 1d10\",\r\n\t\t\t\t\t\"   I can reduce the damage taken by myself or by a creature that I can see within 30 ft\",\r\n\t\t\t\t\t\" \\u2022 Once per turn, augmented strikes adds +1d4 psychic damage to my weapon attack\"\r\n\t\t\t\t]);\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 10 ? a : a.replace('1d10', '1d12').replace('1d4', '1d6');\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 3 ? \"\" : n < 10 ? \"1d10 defense; 1d4 offense\" : \"1d12 defense; 1d6 offense\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"reaction\", \"Augmented Defenses\"]]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Telekinetic Hand\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I learn the Mage Hand cantrip, can cast it without components, and can make it invisible\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Telekinetic Hand\",\r\n\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tdescription : \"Create invisible spectral hand for simple tasks or carry up to 10 lb; 1 a to control; can't have multiples\",\r\n\t\t\t\t\tchanges : \"My Telekinetic Hand class feature allows me to cast Mage Hand without components and I can make the spectral hand invisible.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Strength of Mind\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 20 ft make a Strength save\",\r\n\t\t\t\t\"It takes 2d6 + Int mod psychic damage \\u0026 moves 15 ft away or towards me (my choice)\",\r\n\t\t\t\t\"If its save succeeds, it takes half damage and isn't moved; DC 8 + Prof Bonus + Int mod\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Telekinetic Bulwark\",\r\n\t\t\tsource : [[\"UA:FRnW\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I take the Attack action, I can forgo one of the attacks to project psionic power\",\r\n\t\t\t\t\"Myself and my allies within 10 ft of me gain half cover and adv. on Strength saves\",\r\n\t\t\t\t\"This 10-ft radius bastion around me lasts for 1 minute or until I'm incapacitated\",\r\n\t\t\t\t\"I regain the usage of this feature after I use my second wind feature\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tlimfeaname : \"Telekinetic Bulwark [Second Wind regains]\"\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Agonizing Strikes\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I hit a creature with a weapon attack, I can deal an extra +2d10 psychic damage\",\r\n\t\t\t\t\"The target also has to make a Constitution save (DC 8 + my Prof Bonus + my Int mod)\",\r\n\t\t\t\t\"If it fails, it falls prone and has disadv. on its next ability check until my next turn starts\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Psychic Dreadnaught\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I take damage, I can give myself the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 At the start of each of my turns, I regain 10 hit points\",\r\n\t\t\t\t\" \\u2022 My walking speed increases by +10 ft\",\r\n\t\t\t\t\" \\u2022 If I'm prone, I can stand up by spending 5 ft of movement\",\r\n\t\t\t\t\"These benefits also end when I'm incapacitated\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Rogue\r\nAddSubClass(\"rogue\", \"soulknife-ua\", {\r\n\tregExpSearch : /soulknife/i,\r\n\tsubname : \"Soulknife\",\r\n\tsource : [[\"UA:FRnW\", 2]],\r\n\tfullname : \"Soulknife\",\r\n\tabilitySave : 4,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Psychic Blade\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can create a magical blade from one or both of my hands\",\r\n\t\t\t\t\"Disappear if I'm incapacitated, leave my hand (not thrown), or I dismiss it (no action)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (create)\"]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*soulknife)(?=.*psychic)(?=.*blade).*$/i,\r\n\t\t\t\tname : \"Soulknife's Psychic Blade\",\r\n\t\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Simple\",\r\n\t\t\t\tdamage : [1, 6, \"psychic\"],\r\n\t\t\t\trange : \"Melee, 30/60 ft\",\r\n\t\t\t\tdescription : \"Finesse, light, thrown\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tisSoulknifePsychicBlade : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Psionic Enhancement\",\r\n\t\t\tsource : [[\"UA:FRnW\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can choose one of these benefits until my next long rest:\",\r\n\t\t\t\t\" \\u2022 Talk telepathically with those I can see in 30 ft; Can respond if they know a language\",\r\n\t\t\t\t\" \\u2022 Increase my walking speed by 5 ft\",\r\n\t\t\t\t\" \\u2022 Increase my maximum and current HP with my Intelligence modifier plus rogue level\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature9\" : {\r\n\t\t\tname : \"Terrifying Blade\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 9,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I damage a creature with my psychic blade, it must make a Wisdom saving throw\",\r\n\t\t\t\t\"If it fails, it is frightened of me until my the start of my next turn\",\r\n\t\t\t\t\"If it succeeds, it is immune to this for 24 hours; DC 8 + my Prof Bonus + my Int mod\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.isSoulknifePsychicBlade) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Wis save or frightened for 1 round';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature13\" : {\r\n\t\t\tname : \"Psychic Veil\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 13,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can become invisible along with everything I'm wearing or carrying\",\r\n\t\t\t\t\"This ends after 10 minutes, if I make an attack, or if I force a creature to make a save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Rend Mind\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can deal 12d6 psychic damage to a creature I can see within 30 ft\",\r\n\t\t\t\t\"It also makes an Int save or is stunned until my next turn starts; Half damage on success\",\r\n\t\t\t\t\"It has disadv. on the save if I'm hidden from it; DC 10 + my Prof Bonus + my Int mod\",\r\n\t\t\t\t\"I must have a psychic blade manifested to do so and one vanishes when I use this feature\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Wizard\r\nAddSubClass(\"wizard\", \"psionics-ua\", {\r\n\tregExpSearch : /^((?=.*(wizard|mage|magus))(?=.*psionics)|(?=.*(psionicist|mentalist)))(?!.*(wild mage|\\bpsion\\b|mystic)).*$/i,\r\n\tsubname : \"Psionics\",\r\n\tsource : [[\"UA:FRnW\", 3]],\r\n\tfullname : \"Psionicist\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Psionic Focus\",\r\n\t\t\tsource : [[\"UA:FRnW\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn to channel psionic energy through an object special to me, my psionic focus\",\r\n\t\t\t\t\"It allows me to reroll a roll of 1 on any psychic or force damage die for my wizard spells\",\r\n\t\t\t\t\"I can use this as my spellcasting focus; If lost, I can recreate it by meditating for 1 hour\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Psionic Devotion\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'I learn one cantrip: Friends, Mage Hand, or Message; Use \"Choose Feature\" button above',\r\n\t\t\t\t\"While my psionic focus is on me, I can cast it as a bonus action without components\"\r\n\t\t\t]),\r\n\t\t\tchoices : [\"Friends\", \"Mage Hand\", \"Message\"],\r\n\t\t\t\"friends\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Friends\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn the Friends cantrip and while my psionic focus in on me, I am better at casting it\",\r\n\t\t\t\t\t\"I can cast it as a bonus action without components and the target doesn't become hostile\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"friends\"],\r\n\t\t\t\t\tselection : [\"friends\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"friends\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"Adv. on Cha checks vs. 1 crea currently not hostile; when spell ends, crea realizes I used magic\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Friends as a bonus action without requiring any components and when the spell ends, the target doesn't become hostile to me.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"mage hand\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Mage Hand\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn Mage Hand and while my psionic focus in on me, I am better at casting it\",\r\n\t\t\t\t\t\"I can then cast it as a bonus action without components and can make the hand invisible\",\r\n\t\t\t\t\t\"Also, I can control the hand as a bonus action instead of an action\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"mage hand\"],\r\n\t\t\t\t\tselection : [\"mage hand\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"mage hand\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tdescription : \"Create invisible hand for simple tasks or carry up to 10 lb; 1 bns action to control; can't have multiples\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Mage Hand as a bonus action without requiring any components, can make the hand invisible, and controlling the hand is a bonus action for me.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"message\" : {\r\n\t\t\t\tname : \"Psionic Devotion: Message\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I learn the Message cantrip and while my psionic focus in on me, I'm better at casting it\",\r\n\t\t\t\t\t\"I can then cast it as a bonus action without components\",\r\n\t\t\t\t\t\"Also, I don't need to point at the target or whisper the message out loud\"\r\n\t\t\t\t]),\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Psionic Devotion\",\r\n\t\t\t\t\tspells : [\"message\"],\r\n\t\t\t\t\tselection : [\"message\"],\r\n\t\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"message\" : {\r\n\t\t\t\t\t\ttime : \"1 bns\",\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tdescription : \"1 crea hears message I think; can reply with a whisper; nobody can overhear; needs no straight line\",\r\n\t\t\t\t\t\tchanges : \"While my psionic focus is on my person, I can cast Message as a bonus action without requiring any components, don't need to point toward the target, and I don't need to whisper my message out loud.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Thought Form\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can use my psionic focus to transform my body into luminous energy\",\r\n\t\t\t\t\"I chose the shape (my size); It sheds 5-ft radius dim light; My equipment melds into it\",\r\n\t\t\t\t\"My psionic focus hovers within the energy; In this form, I have the following benefits:\",\r\n\t\t\t\t\" \\u2022 Spells I cast require no verbal, somatic, or material components without a gold cost\",\r\n\t\t\t\t\" \\u2022 I have resistance to psychic and nonmagical bludgeoning/piercing/slashing damage\",\r\n\t\t\t\t\"This lasts for 10 minutes or until I'm incapacitated, die, or use a bonus action to end it\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Mental Discipline\",\r\n\t\t\tsource : [[\"UA:FRnW\", 4]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t'I learn one spell: Dominate Person, Scrying, or Telekinesis; Use \"Choose Feature\" button',\r\n\t\t\t\t\"I can cast the spell without a spell slot once per long rest (and normally with a spell slot)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tchoices : [\"Dominate Person\", \"Scrying\", \"Telekinesis\"],\r\n\t\t\t\"dominate person\" : {\r\n\t\t\t\tname : \"Mental Discipline: Dominate Person\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Dominate Person to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Dominate Person (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"dominate person\"],\r\n\t\t\t\t\tselection : [\"dominate person\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"dominate person\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Dominate Person without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"scrying\" : {\r\n\t\t\t\tname : \"Mental Discipline: Scrying\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Scrying to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Scrying (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"scrying\"],\r\n\t\t\t\t\tselection : [\"scrying\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"scrying\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Scrying without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"telekinesis\" : {\r\n\t\t\t\tname : \"Mental Discipline: Telekinesis\",\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"I add Telekinesis to my spellbook and can cast it without requiring components\",\r\n\t\t\t\t\t\"Once per long rest, I can cast it without using a spell slot; I can also prepare it as normal\"\r\n\t\t\t\t]),\r\n\t\t\t\tlimfeaname : \"Telekinesis (without spell slot)\",\r\n\t\t\t\tspellcastingBonus : [{\r\n\t\t\t\t\tname : \"Mental Discipline\",\r\n\t\t\t\t\tspells : [\"telekinesis\"],\r\n\t\t\t\t\tselection : [\"telekinesis\"]\r\n\t\t\t\t}],\r\n\t\t\t\tspellChanges : {\r\n\t\t\t\t\t\"telekinesis\" : {\r\n\t\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\t\tchanges : \"I can cast Telekinesis without requiring any components. Once per long rest, I can cast it without using a spell slot. I can also cast it by using spell slots as normal.\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10.1\" : {\r\n\t\t\tname : \"Empowered Psionics\",\r\n\t\t\tsource : [[\"UA:FRnW\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"I add my Int modifier to one target of my wizard spells that do psychic or force damage\"),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\r\n\t\t\t\t\t\tif (spName.indexOf(\"wizard\") != -1) {\r\n\t\t\t\t\t\t\treturn genericSpellDmgEdit(spellKey, spellObj, \"force|psychic\", \"Int\", true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I deal psychic or force damage with a wizard spell, I can add my Intelligence modifier to the damage against one of the spell's targets.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Thought Travel\",\r\n\t\t\tsource : [[\"UA:FRnW\", 5]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While in my thought form, I gain a fly speed equal to my walking speed and I can hover\",\r\n\t\t\t\t\"I can then also move through creatures and objects as if they were difficult terrain\",\r\n\t\t\t\t\"I take 1d10 force damage if I end my turn inside an object\",\r\n\t\t\t\t\"If I end my thought form while inside an object, I'm shunted to the nearest empty space\",\r\n\t\t\t\t\"I then take 1d10 force damage for every 5 ft traveled\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// The new spells\r\nSpellsList[\"ego whip-ua\"] = {\r\n\tname : \"Ego Whip\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 4,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea save or can't cast spells and disadv. on atks, checks, and saves; save end of each turn to end\",\r\n\tdescriptionFull : \"You lash the mind of one creature you can see within range, filling it with despair. The target must succeed on an Intelligence saving throw or suffer disadvantage on attack rolls, ability checks, and saving throws, and it can't cast spells. At the end of each of its turns, the target can make another Intelligence saving throw. On a success, the spell ends on the target.\"\r\n};\r\nSpellsList[\"id insinuation-ua\"] = {\r\n\tname : \"Id Insinuation\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 1,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 1 min\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or incapacitated and end of each turn 1d12 Psychic damage, after which it can save to end\",\r\n\tdescriptionShorter : \"1 crea save or incapacitated \\u0026 end of each turn 1d12 Psychic damage, can save to end after\",\r\n\tdescriptionFull : \"You unleash a torrent of conflicting desires in the mind of one creature you can see within range, impairing its ability to make decisions. The target must succeed on a Wisdom saving throw or be incapacitated. At the end of each of its turns, it takes 1d12 psychic damage, and it can then make another Wisdom saving throw. On a success, the spell ends on the target.\"\r\n};\r\nSpellsList[\"intellect fortress-ua_frnw\"] = { // completely different than later iterations in UA:POR and TCoE\r\n\tname : \"Intellect Fortress\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 5,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"Conc, 10 min\",\r\n\tdescription : \"I have advantage on all saves and I can use my reaction to have a creature in 30 ft reroll a failed save\",\r\n\tdescriptionFull : \"You create a faintly shimmering barrier of protective psychic power around you. For the duration, you have advantage on all saving throws.\\n   When another creature that you can see within 30 feet of you fails a saving throw, you can use your reaction to allow them to reroll the save. They must use the new roll.\"\r\n};\r\nSpellsList[\"mental barrier-ua\"] = {\r\n\tname : \"Mental Barrier\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 rea\",\r\n\ttimeFull : \"1 reaction, which you take when you are forced to make an Intelligence, a Wisdom, or a Charisma saving throw\",\r\n\trange : \"Self\",\r\n\tcomponents : \"V\",\r\n\tduration : \"1 rnd\",\r\n\tdescription : \"I have Psychic damage resistance and adv. on Int, Wis, and Cha saves until the start of my next turn\",\r\n\tdescriptionFull : \"You protect your mind with a wall of looping, repetitive thought. Until the start of your next turn, you have advantage on Intelligence, Wisdom, and Charisma saving throws, and you have resistance to psychic damage.\"\r\n};\r\n// [dupl_start] (mostly) the same as in Tasha's Cauldron of Everything\r\nif (!SourceList.T) {\r\n\t// almost duplicate from UA:SnW, but now also on the Bard's spell list\r\n\t// too much alike to the final TCoE version, so don't include it if TCoE is available\r\n\tSpellsList[\"mind sliver\"] = { \r\n\t\tname : \"Mind Sliver\",\r\n\t\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\t\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\t\tlevel : 0,\r\n\t\tschool : \"Ench\",\r\n\t\ttime : \"1 a\",\r\n\t\trange : \"60 ft\",\r\n\t\tcomponents : \"V\",\r\n\t\tduration : \"1 rnd\",\r\n\t\tsave : \"Int\",\r\n\t\tdescription : \"1 crea save or 1d6 Psychic dmg, -1d4 on first save before my next turn ends; +1d6 at CL 5, 11, and 17\",\r\n\t\tdescriptionCantripDie : \"1 crea save or `CD`d6 Psychic dmg and subtract 1d4 from first saving throw before my next turn ends\",\r\n\t\tdescriptionFull : \"You drive a disorienting spike of psychic energy into the mind of one creature you can see within range. The target must make an Intelligence saving throw. Unless the saving throw is successful, the target takes 1d6 psychic damage, and the first time it makes a saving throw before the end of your next turn, it must roll a d4 and subtract the number rolled from the save.\\n   This spell's damage increases by 1d6 when you reach certain levels: 5th level (2d6), 11th level (3d6), and 17th level (4d6).\"\r\n\t};\r\n\tWeaponsList[\"mind sliver\"] = {\r\n\t\tregExpSearch : /^(?=.*mind)(?=.*sliver).*$/i,\r\n\t\tname : \"Mind Sliver\",\r\n\t\tsource : [[\"T\", 108], [\"UA:SnW\", 4], [\"UA:FRnW\", 7], [\"UA:POR\", 7]],\r\n\t\tlist : \"spell\",\r\n\t\tability : 6,\r\n\t\ttype : \"Cantrip\",\r\n\t\tdamage : [\"C\", 6, \"psychic\"],\r\n\t\trange : \"60 ft\",\r\n\t\tdescription : \"1 creature Int save, success - no damage, fail - also -1d4 on first save before my next turn ends\",\r\n\t\tabilitytodamage : false,\r\n\t\tdc : true\r\n\t};\r\n} // dupl_end\r\nSpellsList[\"mind thrust-ua\"] = { // rather different than later iterations in UA:POR and TCoE\r\n\tname : \"Mind Thrust\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 7]],\r\n\tlevel : 2,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 bns\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 rnd\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1+1/SL crea, all max 30 ft apart, 3d6 Psychic dmg, only Dash/Diseng. next turn; save half, any action\",\r\n\tdescriptionFull : \"You propel a lance of psionic disruption into the mind of one creature you can see within range. The target must make an Intelligence saving throw. On a failed save, the target takes 3d6 psychic damage, and it can use its action only to Dash or Disengage on its next turn. On a successful save, the target takes half as much damage, and this spell doesn't limit its action options.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, you can target one additional creature for each slot level above 2nd. The creatures must be within 30 feet of each other when you target them.\"\r\n};\r\nSpellsList[\"psionic blast-ua\"] = {\r\n\tname : \"Psionic Blast\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 3,\r\n\tschool : \"Evoc\",\r\n\ttime : \"1 a\",\r\n\trange : \"30-ft cone\",\r\n\tcomponents : \"V\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Dex\",\r\n\tdescription : \"All crea 5d8+1d8/SL Force dmg, 20 ft pushed away, knocked prone; save half, not pushed or prone\",\r\n\tdescriptionShorter : \"All 5d8+1d8/SL Force dmg, 20 ft pushed away, knocked prone; save half, not pushed or prone\",\r\n\tdescriptionFull : \"You unleash a destructive wave of mental power in a 30-foot cone. Each creature in the area must make a Dexterity saving throw. On a failed save, a target takes 5d8 force damage, is pushed 20 feet directly away from you, and is knocked prone. On a successful save, a target takes half as much damage and isn't pushed or knocked prone.\" + AtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d8 for each slot level above 3rd.\"\r\n};\r\nSpellsList[\"psychic crush-ua\"] = {\r\n\tname : \"Psychic Crush\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 6,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"1 min\",\r\n\tsave : \"Int\",\r\n\tdescription : \"1 crea 12d6 Psychic damage and stunned for 1 min; save half, not stunned; save at turn end to stop\",\r\n\tdescriptionFull : \"You overload the mind of one creature you can see within range, filling its psyche with discordant emotions. The target must make an Intelligence saving throw. On a failed save, the target takes 12d6 psychic damage and is stunned for 1 minute. On a successful save, the target takes half as much damage and isn't stunned.\\n   The stunned target can make an Intelligence saving throw at the end of each of its turns. On a successful save, the spell ends on the target.\",\r\n\tdynamicDamageBonus : { multipleDmgMoments : false }\r\n};\r\nSpellsList[\"thought shield-ua\"] = {\r\n\tname : \"Thought Shield\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tlevel : 2,\r\n\tschool : \"Abjur\",\r\n\ttime : \"1 a\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S\",\r\n\tduration : \"8 h\",\r\n\tdescription : \"1 crea's mind can't be read/detected, telepathy only if wanted, adv. on saves vs. lie detecting effects\",\r\n\tdescriptionFull : \"You weave a clouding veil over the mind of one creature you touch. For the duration, the target's mind can't be read or detected, creatures can't telepathically communicate with the target unless the target allows it, and the target has advantage on saving throws against any effect that would determine whether it is telling the truth.\"\r\n};\r\n\r\n// Add the two psionic-themed feats\r\nFeatsList[\"telekinetic-ua\"] = {\r\n\tname : \"Telekinetic\",\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tdescriptionFull : \"You learn to move things with your mind. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You learn the mage hand cantrip. You can cast it without verbal or somatic components, and you can make the spectral hand invisible.\\n \\u2022 As a bonus action, you can try to shove one creature you can see within 5 feet of the spectral hand created by your mage hand spell. When you do so, the target must succeed on a Strength saving throw (DC 8 + your proficiency bonus + your Intelligence modifier) or be pushed 5 feet away from you.\",\r\n\tdescription : \"I learn the Mage Hand cantrip, can cast it without components, and can make it invisible. As a bonus action, I can use it to try and shove a creature I can see within 5 ft of it. The target must make a Str save (Int based) or be shoved 5 ft away from me. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Telekinetic\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tspells : [\"mage hand\"],\r\n\t\tselection : [\"mage hand\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"mage hand\" : {\r\n\t\t\tcomponents : \"\",\r\n\t\t\tsave : \"Str\",\r\n\t\t\tdescription : \"Invisible hand, simple tasks, carries 10 lb; 1 a to control; not multiple; 1 bns 1 crea save or shove 5 ft\",\r\n\t\t\tchanges : \"My Telekinetic feat allows me to cast Mage Hand without verbal or somatic components and I can make the spectral hand invisible.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"telepathic-ua\"] = {\r\n\tname : \"Telepathic\",\r\n\tsource : [[\"UA:FRnW\", 8]],\r\n\tdescriptionFull : \"You awaken the ability to mentally connect with others. You gain the following benefits:\\n \\u2022 Increase your Intelligence score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency in one skill of your choice from the following list: Deception, Insight, Intimidation, or Persuasion.\\n \\u2022 You can communicate telepathically with any creature you can see within 30 feet of you. If it understands at least one language, it can respond to you telepathically.\",\r\n\tdescription : \"I gain proficiency with one skill chosen from Deception, Insight, Intimidation, or Persuasion. I can communicate telepathically with any creature I can see within 30 feet of me. If it understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\tscores : [0, 0, 0, 1, 0, 0],\r\n\tchoices : [\"Deception\", \"Insight\", \"Intimidation\", \"Persuasion\"],\r\n\t\"deception\" : {\r\n\t\tdescription : \"I gain proficiency with Deception. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Deception\"]\r\n\t},\r\n\t\"insight\" : {\r\n\t\tdescription : \"I gain proficiency with Insight. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Insight\"]\r\n\t},\r\n\t\"intimidation\" : {\r\n\t\tdescription : \"I gain proficiency with Intimidation. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Intimidation\"]\r\n\t},\r\n\t\"persuasion\" : {\r\n\t\tdescription : \"I gain proficiency with Persuasion. I can communicate telepathically with any creature I can see within 30 ft of me. If the creature understands at least one language, it can respond to me telepathically. [+1 Intelligence]\",\r\n\t\tskills : [\"Persuasion\"]\r\n\t}\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20200114_Subclasses-Part-1.js",
    "content": "var iFileName = \"ua_20200114_Subclasses-Part-1.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 1 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP1\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 1\",\r\n\tabbreviation : \"UA:SP1\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020-Subclasses01.pdf\",\r\n\tdate : \"2020/01/14\"\r\n};\r\n\r\n// Add a subclasses for the Barbarian, Monk, Paladin, and Warlock\r\nAddSubClass(\"barbarian\", \"path of the beast-ua\", {\r\n\tregExpSearch : /^(?=.*\\bbeast\\b)(?=.*(warrior|marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n)).*$/i,\r\n\tsubname : \"Path of the Beast\",\r\n\tsubnameShort: \"Beast\",\r\n\tsource : [[\"UA:SP1\", 1]],\r\n\tabilitySave : 3,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Form of the Beast\",\r\n\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter my rage, I can transform to gain a bite, tail, or claws attack for that rage\",\r\n\t\t\t\t\"The bite attack allows me to regain my Con mod in HP on a hit once on my turn\",\r\n\t\t\t\t\"The claws attack allows me to make one extra attack when I use it in my Attack action\"\r\n\t\t\t]),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*bite).*$/i,\r\n\t\t\t\tname : \"Bestial Bite\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 8, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; On a hit once on my turn, regain Con mod in HP\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*claws?).*$/i,\r\n\t\t\t\tname : \"Bestial Claws\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 6, \"slashing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Only in rage; Extra attack if used as part of Attack action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}, {\r\n\t\t\t\tregExpSearch : /^(?=.*(bestial|beast))(?=.*tail).*$/i,\r\n\t\t\t\tname : \"Bestial Tail\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\t\tability : 1,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [1, 12, \"piercing\"],\r\n\t\t\t\trange : \"Melee\",\r\n\t\t\t\tdescription : \"Reach; Only in rage\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tbestialNaturalWeapon : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tadditional : levels.map(function(n) {\r\n\t\t\t\treturn n < 6 ? \"\" : \"chosen weapon counts as magical\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bestial Soul\",\r\n\t\t\tsource : [[\"UA:SP1\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a short rest, I can choose one of the following benefits until my next rest:\",\r\n\t\t\t\t\" \\u2022 Swimming speed equal to my walking speed and I can breathe underwater\",\r\n\t\t\t\t\" \\u2022 Climb speed (same as walking) and no check to climb difficult surfaces or upside down\",\r\n\t\t\t\t\" \\u2022 Once per turn when I jump, I can extend it by the result of an Athletics check in feet\"\r\n\t\t\t]),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.bestialNaturalWeapon && !v.thisWeapon[1] && !v.theWea.isMagicWeapon && !(/counts as( a)? magical/i).test(fields.Description)) {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Counts as magical';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"The natural melee weapon that I gain from Form of the Beast count as magical for the purpose of overcoming resistance and immunity to nonmagical attacks and damage.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Infectious Fury\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"In rage, when I hit a creature with my natural weapon, I can have it make a Wis save\",\r\n\t\t\t\t\"If it fails (DC 8 + my Prof Bonus + my Con mod) it suffers one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 It uses its reaction to make a melee attack against one creature I can see of my choice\",\r\n\t\t\t\t\" \\u2022 It takes 2d12 psychic damage\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Call the Hunt\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I enter rage, I can choose my Con mod of willing creatures I can see within 30 ft\",\r\n\t\t\t\t\"The targets gain the Reckless Attack feature and I have adv. on saves vs. being frightened\",\r\n\t\t\t\t\"I also gain 5 temporary hit points per creature that accepts this benefit\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Constitution modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Con Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"monk\", \"way of mercy-ua\", {\r\n\tregExpSearch : /^(?=.*mercy)((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of Mercy\",\r\n\tsubnameShort: \"Mercy\",\r\n\tsource : [[\"UA:SP1\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Implements of Mercy\",\r\n\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I gain proficiency with the herbalism and poisoner's kit, and either Insight or Medicine\",\r\n\t\t\t\t'Use the \"Choose Feature\" button above to select the skill proficiency, Insight or Medicine'\r\n\t\t\t]),\r\n\t\t\ttoolProfs : [\"Herbalism kit\", \"Poisoner's kit\"],\r\n\t\t\tchoices : [\"proficiency with Insight\", \"proficiency with Medicine\"],\r\n\t\t\t\"proficiency with insight\" : {\r\n\t\t\t\tname : \"Implements of Mercy - Insight\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription: desc(\"I gain proficiency in the Insight skill and with the herbalism kit and the poisoner's kit\"),\r\n\t\t\t\tskills : [\"Insight\"]\r\n\t\t\t},\r\n\t\t\t\"proficiency with medicine\" : {\r\n\t\t\t\tname : \"Implements of Mercy - Medicine\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription: desc(\"I gain proficiency in the Medicine skill and with the herbalism kit and the poisoner's kit\"),\r\n\t\t\t\tskills : [\"Medicine\"]\r\n\t\t\t},\r\n\t\t\t\"hands of healing\" : {\r\n\t\t\t\tname : \"Hands of Healing\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 2]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar a = \"As an action, I can spend 1 ki point to touch a creature and restore a number of its HP\";\r\n\t\t\t\t\tvar b6 = \"It also recovers from one disease or the blinded, deafened, paralyzed, or poisoned condition\";\r\n\t\t\t\t\tvar c = \"When I use Flurry of Blows, I can do this instead of one unarmed strike (no extra ki cost)\";\r\n\t\t\t\t\treturn desc( n < 6 ? [a, c] :\r\n\t\t\t\t\t\t[a, b6, n < 11 ? c : c.replace(\"one\", \"each\")]\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; heal 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" + Wisdom modifier\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\"hands of harm\" : {\r\n\t\t\t\tname : \"Hands of Harm\",\r\n\t\t\t\textraname : \"Way of Mercy 3\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I hit a creature with an unarmed strike, I can spend 1 ki point to deal extra damage\",\r\n\t\t\t\t\t\"Only once per turn; If the target is incapacitated or poisoned, I roll the damage die 3 times\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : \"1 ki point; 1d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10) + \" necrotic damage\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hands of healing\"\r\n\t\t\t}, {\r\n\t\t\t\textrachoice : \"hands of harm\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Noxious Aura\",\r\n\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"1 ki point\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 ki point to gain a 5-ft radius toxic aura for 1 minute\",\r\n\t\t\t\t\"While active, ranged attacks have disadv. vs. me; It ends if I'm incapacitated or dismiss it\",\r\n\t\t\t\t\"Others who start their turn in it must make a Con save or be poisoned and take damage\",\r\n\t\t\t\t\"They take my Wis mod in poison damage (min 0); Poisoned lasts until my next turn ends\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Healing Technique\",\r\n\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription: desc(\"With hands of healing I can also end: 1 disease, blinded, deafened, paralyzed, or poisoned\"),\r\n\t\t\t\"hand of mercy\" : {\r\n\t\t\t\tname : \"Hand of Mercy\",\r\n\t\t\t\textraname : \"Way of Mercy 17\",\r\n\t\t\t\tsource : [[\"UA:SP1\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can use 4 ki to have a touched creature make a Con save (can fail willingly)\",\r\n\t\t\t\t\t\"If failed, it becomes paralyzed in a state of suspended animation for my monk level in days\",\r\n\t\t\t\t\t\"It also has immunity to all damage, and curses, diseases, poisons affecting it are suspended\",\r\n\t\t\t\t\t\"The creature appears dead to all inspection and to spells used to determine its status\",\r\n\t\t\t\t\t\"I can end the effect at will (no action required); I can have only one affected at a time\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 17 ? \"\" : \"4 ki points; \" + n + \" days\";\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"hand of mercy\",\r\n\t\t\t\tminlevel : 17\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"paladin\", \"oath of the watchers-ua\", {\r\n\tregExpSearch : /^(?=.*watchers)((?=.*paladin)|((?=.*(exalted|sacred|holy|divine))(?=.*(knight|fighter|warrior|warlord|trooper)))).*$/i,\r\n\tsubname : \"Oath of the Watchers\",\r\n\tsubnameShort: \"Watchers\",\r\n\tsource : [[\"UA:SP1\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Channel Divinity: Watcher's Will\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"As an action, Cha mod of creatures I see in 30 ft adv. on Int/Wis/Cha saves for 1 min\"),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tspellcastingExtra : [\"alarm\", \"chromatic orb\", \"augury\", \"moonbeam\", \"counterspell\", \"nondetection\", \"aura of purity\", \"banishment\", \"hold monster\", \"hallow\"]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Channel Divinity: Abjure the Extraplanar\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, elementals, fey, fiends, and aberrations within 30 ft must make a Wis save\",\r\n\t\t\t\t\"Succeeds if it can't hear me; On fail, turned for 1 minute or until it takes any damage\",\r\n\t\t\t\t\"Turned: move away, never within 30 ft of me, no reactions or actions other than Dash\",\r\n\t\t\t\t\"Turned: may Dodge instead of Dash when nowhere to move and unable to escape bonds\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Aura of the Sentinel\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription: desc(\"If I'm not incapacitated, chosen creatures in range and I add my Cha mod to Initiative\"),\r\n\t\t\tadditional : levels.map(function (n) { return n < 7 ? \"\" : (n < 18 ? 10 : 30) + \"-foot aura\"; }),\r\n\t\t\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"max(Cha|1)\", text : \"I can add my Charisma modifier (min +1) to initiative rolls.\" }]\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Vigilant Rebuke\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or another I can see saves against a spell, I can damage the caster\",\r\n\t\t\t\t\"Has to succeed save within 30 ft of me vs. unwanted spell; 2d8 + Cha mod force damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature20\" : {\r\n\t\t\tname : \"Mortal Bulwark\",\r\n\t\t\tsource : [[\"UA:SP1\", 4]],\r\n\t\t\tminlevel : 20,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain the following benefits for 1 minute:\",\r\n\t\t\t\t\" \\u2022 Truesight out to 120 ft and adv. on attacks vs. elementals, fey, fiends, and aberrations\",\r\n\t\t\t\t\" \\u2022 I can force creatures I hit and damage with an attack to make a Charisma save\",\r\n\t\t\t\t\"   If failed, the target is banished to its native plane of existence if it's not currently there\",\r\n\t\t\t\t\"   If successful, the creature can't be banished by this feature for 24 hours\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nAddSubClass(\"warlock\", \"the noble genie-ua\", {\r\n\tregExpSearch : /^(?=.*warlock)(?=.*noble)(?=.*\\b(genie|djinni|dao|efreeti)\\b).*$/i,\r\n\tsubname : \"the Noble Genie\",\r\n\tsource : [[\"UA:SP1\", 4]],\r\n\tspellcastingExtra : [\"fog cloud\", \"sleep\", \"enlarge/reduce\", \"phantasmal force\", \"create food and water\", \"protection from energy\", \"polymorph\", \"phantasmal killer\", \"bigby's hand\", \"creation\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Collector's Vessel\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My patron gives me a magical vessel, a Tiny object which I can use as a spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to receive a replacement\",\r\n\t\t\t\t\"As an action while holding it, I can create a tether to a willing target I can see in 100 ft\",\r\n\t\t\t\t\"This lasts for 1 hour, until I do this again, or the tethered target is reduced to 0 HP\",\r\n\t\t\t\t\"It also ends when the tethered target ends its turn further than 100 ft from me\",\r\n\t\t\t\t\"While the tether lasts, I add my Cha mod (min +1) to my Wis (Perception) checks\",\r\n\t\t\t\t\"Also, I can have spells I cast originate from the tethered creature's space\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Resistance\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can gain acid, cold, fire, or lightning resistance (my choice)\",\r\n\t\t\t\t\"This lasts until I finish my next long rest; A creature tethered to my vessel also gains this\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Protective Wish\",\r\n\t\t\tsource : [[\"UA:SP1\", 5]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I or my tethered creature is hit by an attack, we can swap places\",\r\n\t\t\t\t\"As we both teleport to each others location, the one hit by the attack switches as well\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10.1\" : {\r\n\t\t\tname : \"Genie's Entertainment\",\r\n\t\t\tsource : [[\"UA:SP1\", 6]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can have a creature I can see within 90 ft make a Charisma save\",\r\n\t\t\t\t\"If failed, it is drawn into my vessel and teleported to my patron's court for 1 minute\",\r\n\t\t\t\t\"In there it is stunned but unharmed; At the end of each of its turns it can save to return\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Collector's Call\",\r\n\t\t\tsource : [[\"UA:SP1\", 6]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can implore my patron if I make a Persuasion check vs. my spell save DC\",\r\n\t\t\t\t\"If I fail, the use is wasted; If I succeed, I can choose one of the following effects:\",\r\n\t\t\t\t\" \\u2022 A creature I can see in 60 ft heals 8d6 HP and 1 disease or condition affecting it ends\",\r\n\t\t\t\t\"   This condition can be blinded, charmed, deafened, frightened, paralyzed, or poisoned\",\r\n\t\t\t\t\" \\u2022 A creature I can see in 60 ft has disadv. on attacks \\u0026 saves until my next turn starts\",\r\n\t\t\t\t\" \\u2022 I can cast Legend Lore without using material components\",\r\n\t\t\t\t\"I can regain a use of this by sacrificing 500 gp of nonmagical treasure to my patron\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Collector's Call\",\r\n\t\t\t\tspells : [\"legend lore\"],\r\n\t\t\t\tselection : [\"legend lore\"],\r\n\t\t\t\tfirstCol : 'Sp'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"legend lore\" : {\r\n\t\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tdescription : \"Learn summary of lore of named or described person, place, or object\",\r\n\t\t\t\t\tchanges : \"When I use my Collector's Call feature to cast Legend Lore, it doesn't require any material components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20200206_Subclasses-Part-2.js",
    "content": "var iFileName = \"ua_20200206_Subclasses-Part-2.js\";\r\nRequiredSheetVersion(\"13.1.14\");\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 2 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP2\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 2\",\r\n\tabbreviation : \"UA:SP2\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_02_06_Subclasses2.pdf\",\r\n\tdate : \"2020/02/06\"\r\n};\r\n\r\n// Add a subclass for the Bard and the functionality for its Dancing Item\r\nAddSubClass(\"bard\", \"college of creation-ua\", {\r\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*creation).*$/i,\r\n\tsubname : \"College of Creation\",\r\n\tsubnameShort: \"Creation\",\r\n\tsource : [[\"UA:SP2\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Note of Potential\",\r\n\t\t\tsource : [[\"UA:SP2\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can also grant a note of potential to whomever I give a bardic inspiration die\",\r\n\t\t\t\t\"This tiny, invulnerable object orbits in 5 ft; It enhances the use of the inspiration die:\",\r\n\t\t\t\t\"\\u2022 Note of Destruction (used for attack roll): others within 5 ft must make a Con save\",\r\n\t\t\t\t\"  If failed, they take the die roll in thunder damage; This uses my spell save DC\",\r\n\t\t\t\t\"\\u2022 Note of Protection (used for save): Grants temp HP equal to the roll + my Cha mod\",\r\n\t\t\t\t\"\\u2022 Note of Ingenuity (used for check): Roll the die twice and choose which result to use\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Animating Performance\",\r\n\t\t\tsource : [[\"UA:SP2\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can animate a Large or smaller nonmagical item I can see within 30 ft\",\r\n\t\t\t\t\"It lasts for 1 hour or until it has 0 HP; I control it and it acts on my initiative, after me\",\r\n\t\t\t\t\"Unless I use a bonus action to command it, it only takes the Dodge action on its turn\",\r\n\t\t\t\t\"When I use bardic inspiration, I can command the item as part of the same bonus action\",\r\n\t\t\t\t\"I can't have multiple at once; Select \\\"Dancing Item\\\" on a companion page for its stats\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"], [\"bonus action\", \"Command Dancing Item\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tcreaturesAdd : [[\"Dancing Item\"]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Dancing Item\",\r\n\t\t\t\tsource : [[\"UA:SP2\", 2]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Construct\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : 16,\r\n\t\t\t\thp : 33,\r\n\t\t\t\thd : [],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [18, 12, 16, 4, 10, 6],\r\n\t\t\t\tdamage_immunities : \"poison\",\r\n\t\t\t\tcondition_immunities : \"charmed, exhaustion, poisoned, frightened\",\r\n\t\t\t\tpassivePerception : 10,\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tlanguages : \"understands the languages of its creator but can't speak\",\r\n\t\t\t\tchallengeRating : \"1\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Force-Empowered Slam\",\r\n\t\t\t\t\tability : 6,\r\n\t\t\t\t\tdamage : [1, 10, \"force\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tmodifiers : [\"\", \"oCha\"],\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tuseSpellMod : \"bard\"\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Creator\",\r\n\t\t\t\t\tdescription : \"The item obeys the commands of its creator and uses its creator's spell attack modifier for its attack rolls. It takes its turn immediately after its creator, on the same initiative count. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its creator takes a bonus action to command to do otherwise, in which case it can only take the Dash, Force-Empowered Slam (and possibly Endless Waltz), Disengage, Help, Hide, or Search action.\"\r\n\t\t\t\t}],\r\n\t\t\t\tactions : [{\r\n\t\t\t\t\tname : \"Immutable Form\",\r\n\t\t\t\t\tdescription : \"The item is immune to any spell or effect that would alter its form.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Endless Waltz\",\r\n\t\t\t\t\tdescription : \"Immediately after the item makes a slam attack, it can take the Dodge action as a bonus action.\"\r\n\t\t\t\t}],\r\n\t\t\t\theader : 'Animated',\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.bard) return;\r\n\t\t\t\t\t\tvar chaMod = Number(What('Cha Mod'));\r\n\t\t\t\t\t\tvar brdLvl = classes.known.bard.level;\r\n\t\t\t\t\t\tvar brdLvl5 = 5 * brdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(HDobj.conMod + chaMod + brdLvl5);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = \" + HDobj.conMod + \" from its Constitution modifier\\n + \" + chaMod + \" from its creator's Charisma modifier\\n + 5 \\xD7 \" + brdLvl + \" from five times its creator's bard level (\" + brdLvl5 + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true,\r\n\t\t\t\t\thpForceRecalc : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Performance of Creation\",\r\n\t\t\tsource : [[\"UA:SP2\", 2]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"As an action, I create a Large or smaller nonmagical item in an empty space in 10 ft\",\r\n\t\t\t\t\t\"Max \" + (20 * n) + \" gp value; I can't have multiple, creating more makes the first one vanish\",\r\n\t\t\t\t\t\"It vanishes when my next turn ends, unless I use my action to extend its life 1 extra turn\",\r\n\t\t\t\t\t\"If I sustain it for 1 minute this way, it continues to exists for my bard level in hours\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 5+\"\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Cleric\r\nAddSubClass(\"cleric\", \"unity domain-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*unity).*$/i,\r\n\tsubname : \"Unity Domain\",\r\n\tsource : [[\"UA:SP2\", 2]],\r\n\tspellcastingExtra : [\"heroism\", \"shield of faith\", \"aid\", \"warding bond\", \"beacon of hope\", \"sending\", \"aura of purity\", \"guardian of faith\", \"greater restoration\", \"rary's telepathic bond\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Emboldening Bond\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : function () {\r\n\t\t\t\tvar descr = desc([\r\n\t\t\t\t\t\"As an action, I can magically bond two willing targets I can see in 30 ft (can be me)\",\r\n\t\t\t\t\t\"While within 30 ft of the other, a bonded target can add +d4 to a save, attack, or check\",\r\n\t\t\t\t\t\"This can only be added once per turn; The bond lasts for 1 hour or until I use this again\",\r\n\t\t\t\t\t\"I can do this once per long rest, after which I can do so by expending a spell slot (SS 1+)\"\r\n\t\t\t\t]);\r\n\t\t\t\tvar descr17 = descr.replace('While within 30 ft of the other', 'While on the same plane');\r\n\t\t\t\treturn levels.map(function (n) {\r\n\t\t\t\t\treturn n < 17 ? descr : descr17;\r\n\t\t\t\t});\r\n\t\t\t}(),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Shared Burden\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft takes damage, I can divide that damage\",\r\n\t\t\t\t\"I then choose a number of willing creatures that I can see equal to my Wis mod (min 1)\",\r\n\t\t\t\t\"I distribute the damage over these and the original target, each taking at least 1 damage\",\r\n\t\t\t\t\"Damage resistances and vulnerabilities are only applied after the damage is distributed\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Protective Bond\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My emboldening bond now also allows the two bonded to shield each other of damage\",\r\n\t\t\t\t\"When the other takes damage, one can use its reaction to give it resistance to all damage\",\r\n\t\t\t\t\"This resistance lasts until the end of the current turn\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 6 ? \"\" : n < 17 ? \"the bonded must be within 30 ft\" : \"the bonded must be on the same plane\";\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Enduring Unity\",\r\n\t\t\tsource : [[\"UA:SP2\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"The 30 ft restriction no longer applies to my emboldening and protective bond features\",\r\n\t\t\t\t\"My emboldening bond now also empowers a bonded if the other is reduced to 0 HP\",\r\n\t\t\t\t\"If that happens, the bonded creature above 0 HP gains the following benefits:\",\r\n\t\t\t\t\" \\u2022 Advantage on attack rolls, ability checks, and saving throws; Resistance to all damage\",\r\n\t\t\t\t\" \\u2022 As an action, it can touch its bonded partner to expend and roll HD to heal\",\r\n\t\t\t\t\"These benefits lasts for 1 minute or until the downed creature regains at least 1 HP\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add a subclass for the Sorcerer\r\nAddSubClass(\"sorcerer\", \"clockwork soul-ua\", {\r\n\tregExpSearch : /^((?=.*(sorcerer|witch))(?=.*mechanus)|(?=.*clockwork)(?=.*soul)).*$/i,\r\n\tsubname : \"Clockwork Soul\",\r\n\tsource : [[\"UA:SP2\", 4]],\r\n\tfullname : \"Clockwork Soul\",\r\n\tspellcastingExtra : [\"alarm\", \"protection from evil and good\", \"find traps\", \"heat metal\", \"counterspell\", \"glyph of warding\", \"arcane eye\", \"otiluke's resilient sphere\", \"animate objects\", \"wall of force\"],\r\n\tspellcastingExtraApplyNonconform : true,\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Clockwork Magic\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription: desc(\"I learn additional spells, which do not count towards the number of spell I can know\")\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Restore Balance\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 60 ft is about to roll a d20 with adv./disadv.,\",\r\n\t\t\t\t\"I can prevent that roll from being affected by advantage and disadvantage.\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Charisma modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Cha Mod'));\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Bulwark of Law\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can imbue a creature I can see within 30 ft with a magical ward\",\r\n\t\t\t\t\"I grant it a number of d8s equal to the number of sorcery points I expend when I do this\",\r\n\t\t\t\t\"When it takes damage, it can use its reaction to spend and roll any number of those dice\",\r\n\t\t\t\t\"The dice roll reduces the damage; The ward lasts until I finish a long rest or do this again\"\r\n\t\t\t]),\r\n\t\t\tadditional : \"1-5 sorcery points; 1d8 per point\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Trance of Order\",\r\n\t\t\tsource : [[\"UA:SP2\", 4]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can enter a state of clockwork consciousness for 1 minute\",\r\n\t\t\t\t\"While in this state, attack rolls against me can't benefit from advantage\",\r\n\t\t\t\t\"Also, I can then treat a d20 roll below 9 as a 10 for my attack rolls, checks, and saves\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 5 sorcery points (5 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"5 SP\"\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Clockwork Cavalcade\",\r\n\t\t\tsource : [[\"UA:SP2\", 5]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can call spirits to bring balance in a 30-ft cube originating from me\",\r\n\t\t\t\t\"Inside the cube, the intangible spirits do all the following before vanishing:\",\r\n\t\t\t\t\" \\u2022 Restore up to 100 HP, divided among the creatures in the cube as I see fit\",\r\n\t\t\t\t\" \\u2022 Repair all damaged objects in the cube\",\r\n\t\t\t\t\" \\u2022 End spells of my choice of 6th-level or lower on objects or creatures in the cube\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 7 sorcery points (7 SP)\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"7 SP\"\r\n\t\t}\r\n\t}\r\n});\r\n"
  },
  {
    "path": "WotC material/ua_20200224_Subclasses-Part-3.js",
    "content": "var iFileName = \"ua_20200206_Subclasses-Part-3.js\";\r\nRequiredSheetVersion(\"13.1.14\", 15);\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 3 article to MPMB's Character Record Sheet\r\n\r\n// Define the source\r\nSourceList[\"UA:SP3\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 3\",\r\n\tabbreviation : \"UA:SP3\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020-Subclasses03_0224.pdf\",\r\n\tdate : \"2020/02/24\"\r\n};\r\n\r\n// Add a subclass for the Artificer (but after all other scripts, so that all armour options are present)\r\nRunFunctionAtEnd(function () {\r\n\tif (!ClassList.artificer) { return; };\r\n\tvar UASP3_artificerSubclassArmorerUA = AddSubClass(\"artificer\", \"armorer-ua\", {\r\n\t\tregExpSearch : /^(?=.*armou?rer)(?!.*wizard).*$/i,\r\n\t\tsubname : \"Armorer\",\r\n\t\tfullname : \"Armorer\",\r\n\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\tattacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],\r\n\t\tfeatures : {\r\n\t\t\t\"subclassfeature3\" : {\r\n\t\t\t\tname : \"Tools of the Trade\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : \" [proficient with heavy armor \\u0026 smith's tools]\",\r\n\t\t\t\ttoolProfs : [\"Smith's tools\"],\r\n\t\t\t\tarmorProfs : [false, false, true, false],\r\n\t\t\t\tspellcastingExtra : [\"magic missile\", \"shield\", \"mirror image\", \"shatter\", \"hypnotic pattern\", \"lightning bolt\", \"fire shield\", \"greater invisibility\", \"passwall\", \"wall of force\"]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.1\" : {\r\n\t\t\t\tname : \"Power Armor\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 1]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I can use smith's tool to turn a suit of heavy armor into power armor\",\r\n\t\t\t\t\t\"It continues to be power armor until I doff it, don another armor, or I die\",\r\n\t\t\t\t\t\"It can't be removed against my will, covers all my limbs, and even replaces missing limbs\",\r\n\t\t\t\t\t\"I ignore the Strength requirement of power armor and can use it as a spellcasting focus\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature3.2\" : {\r\n\t\t\t\tname : \"Armor Model\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 3,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"When I finish a rest, I can use smith's tools to change the model of my arcane armor\",\r\n\t\t\t\t\t'Select a model using the \"Choose Feature\" button; See \"Notes\" page for features of each'\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"also see notes page\",\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Power Armor Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"I can customize my power armor to the guardian or infiltrator model whenever I finish a short or long rest, provided I have smith's tools in hand.\",\r\n\t\t\t\t\t\t\"Each model includes a special weapon. When I attack with that weapon, I can use my Intelligence modifier, instead of Strength or Dexterity, for the attack and damage rolls.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Guardian Power Armor (Armorer 3, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"\\u2022 Thunder Gauntlets: The armored fists of the guardian power armor each count as a simple melee weapon, and each deals 1d8 thunder damage on a hit. A creature hit by the gauntlet has disadvantage on attack rolls against targets other than me until the start of me next turn, as the armor magically emits a distracting pulse when the creature attacks someone else.\",\r\n\t\t\t\t\t\t\"\\u2022 Defensive Field: As a bonus action, I can gain temporary hit points equal to my artificer level, replacing any temporary hit points I already have. I lose these temporary hit points if I doff the armor.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Infiltrator Power Armor (Armorer 3, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"\\u2022 Lightning Launcher: A gemlike node on one of the armored fists or on the chest (my choice) counts as a simple ranged weapon, with a normal range of 90 ft and a long range of 300 ft. It deals 1d6 lightning damage on a hit. Once on each of my turns when I hit a creature with it, I can deal an extra 1d6 lightning damage to that target.\",\r\n\t\t\t\t\t\t\"\\u2022 Powered Steps: My walking speed increases by 5 feet.\",\r\n\t\t\t\t\t\t\"\\u2022 Second Skin: The armor's weight is negligible, and it becomes formfitting and wearable under clothing. If the armor normally imposes disadvantage on Dexterity (Stealth) checks, the power armor doesn't.\"\r\n\t\t\t\t\t])\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [],\r\n\t\t\t\tchoiceDependencies : [{\r\n\t\t\t\t\tfeature : \"subclassfeature15\",\r\n\t\t\t\t\tchoiceAttribute : true\r\n\t\t\t\t}],\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*thunder)(?=.*gauntlet).*$/i,\r\n\t\t\t\t\tname : \"Thunder Gauntlets\",\r\n\t\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 8, \"thunder\"],\r\n\t\t\t\t\trange : \"Melee\",\r\n\t\t\t\t\tdescription : \"Target hit disadv. on attacks vs. others than me until my next turn starts\",\r\n\t\t\t\t\tabilitytodamage : true,\r\n\t\t\t\t\tmonkweapon : true\r\n\t\t\t\t}, {\r\n\t\t\t\t\tregExpSearch : /^(?=.*lightning)(?=.*launcher).*$/i,\r\n\t\t\t\t\tname : \"Lightning Launcher\",\r\n\t\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\t\tability : 4,\r\n\t\t\t\t\ttype : \"Simple\",\r\n\t\t\t\t\tdamage : [1, 6, \"lightning\"],\r\n\t\t\t\t\trange : \"90/300 ft\",\r\n\t\t\t\t\tdescription : \"Once per turn on hit, +1d6 lightning damage\",\r\n\t\t\t\t\tabilitytodamage : true\r\n\t\t\t\t}],\r\n\t\t\t\t// Do this in the parent object, so that it is always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\taction : [[\"bonus action\", \"Defensive Field (Guardian Model)\"]]\r\n\t\t\t},\r\n\t\t\t\"subclassfeature9\" : {\r\n\t\t\t\tname : \"Armor Modifications\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 9,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"Power armor now counts as armor, boots, bracers, and a weapon for holding infusions\",\r\n\t\t\t\t\t\"I can infuse two of those after a rest without counting towards the number of items\"\r\n\t\t\t\t]),\r\n\t\t\t\tadditional : \"+2 infused items, if used on power armor\"\r\n\t\t\t},\r\n\t\t\t\"subclassfeature15\" : {\r\n\t\t\t\tname : \"Perfected Armor\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 2]],\r\n\t\t\t\tminlevel : 15,\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t'My armor gets additional features, based on the model; Use \"Choose Feature\" to select it',\r\n\t\t\t\t\t\"The guardian gets the ability to pull a creature closer as a reaction and make an attack\",\r\n\t\t\t\t\t\"The infiltrator gets an upgrade to its lightning launcher weapon attack\"\r\n\t\t\t\t]),\r\n\t\t\t\ttoNotesPage : [{\r\n\t\t\t\t\tname : \"Guardian Perfected Armor Features\",\r\n\t\t\t\t\tpopupName : \"Perfected Armor: Model Features\",\r\n\t\t\t\t\tnote : desc([\r\n\t\t\t\t\t\t\"Tinkering with my armor's energy system leads me to discover a powerful pulling force.\",\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn within 30 ft of me, I can force the creature to succeed on a Strength saving throw against my spell save DC or be pulled up to 30 ft toward me to an unoccupied space. If I pull the target to space within 5 ft of me, I can make a melee weapon attack against it as part of this reaction.\",\r\n\t\t\t\t\t\t\"I can use this reaction a number of times equal to my Intelligence modifier (min 1). I regain all expended uses of it when I finish a long rest.\"\r\n\t\t\t\t\t]) + \"\\n\\n\\u25C6 Infiltrator Perfected Armor Features (Armorer 15, UA:SP3 2)\" + desc([\r\n\t\t\t\t\t\t\"Any creature that takes lightning damage from my Lightning Launcher glimmers with light until the start of my next turn.\",\r\n\t\t\t\t\t\t\"The glimmering creature sheds dim light in a 5-ft radius, and the next attack roll against it by a creature other than me has advantage. If that attack hits, it deals an extra 1d6 lightning damage.\"\r\n\t\t\t\t\t]),\r\n\t\t\t\t\tamendTo : \"Power Armor Model Features\"\r\n\t\t\t\t}],\r\n\t\t\t\tchoices : [\"guardian\", \"infiltrator\"],\r\n\t\t\t\tchoicesNotInMenu : true,\r\n\t\t\t\t\"guardian\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tadditional: \"Intelligence modifier per long rest\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"As a reaction when a creature I can see ends its turn in 30 ft, I have it make a Str save\",\r\n\t\t\t\t\t\t\"If it fails, I pull it up to 30 ft towards me to an empty space\",\r\n\t\t\t\t\t\t\"If I pull it within 5 ft, I can make a melee weapon attack vs. it as part of this reaction\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t\"infiltrator\" : {\r\n\t\t\t\t\tname : \"Perfected Armor: Infiltrator\",\r\n\t\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\t\"Those hit by my lightning launcher shed 5-ft radius dim light until my next turn starts\",\r\n\t\t\t\t\t\t\"Also, the next attack roll made by another than me vs. the target has advantage\",\r\n\t\t\t\t\t\t\"If that attack hits, it deals an extra 1d6 lightning damage\"\r\n\t\t\t\t\t])\r\n\t\t\t\t},\r\n\t\t\t\t// Do these in the parent object, so that they are always visible and people printing the sheet can more easily switch between the two models\r\n\t\t\t\t// Also, the armor model can be changed on a short rest, but the limited feature only resets on a long rest, so shouldn't be removed\r\n\t\t\t\taction : [[\"reaction\", \"Perfected Armor: Guardian\"]],\r\n\t\t\t\textraLimitedFeatures : [{\r\n\t\t\t\t\tname : \"Perfected Armor: Guardian\",\r\n\t\t\t\t\tusages : \"Intelligence modifier per \",\r\n\t\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\t\tusagescalc : \"event.value = Math.max(1, What('Int Mod'));\"\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tif (!UASP3_artificerSubclassArmorerUA || !ClassSubList[UASP3_artificerSubclassArmorerUA]) return;\r\n\tvar itsFea = ClassSubList[UASP3_artificerSubclassArmorerUA].features[\"subclassfeature3.2\"];\r\n\tvar guardianTxt = desc([\r\n\t\t\"Both fists are Thunder Gauntlets, simple melee weapons that distract those hit by it\",\r\n\t\t\"As a bonus action, I can activate a defensive shield to gain my artificer level in temp HP\"\r\n\t])\r\n\tvar guardianAdditional = levels.map(function (n) {\r\n\t\treturn n + \" temp HP; see notes page\";\r\n\t})\r\n\tvar infiltratorTxt = desc([\r\n\t\t\"+5 ft walking speed; Gemlike node in fist/chest is a ranged weapon, Lightning Launcher\",\r\n\t\t\"The power armor is formfitting, has negligible weight, and doesn't give disadv. on Stealth\"\r\n\t])\r\n\tvar prereqFunc = function(v) {\r\n\t\tvar sParsed = ParseArmor(v.choice.replace(/(Guardian|Infiltrator) arcane /i, ''));\r\n\t\treturn sParsed && testSource(sParsed, ArmourList[sParsed], \"armorExcl\") ? \"skip\" : true;\r\n\t};\r\n\tfor (var armor in ArmourList) {\r\n\t\tvar anArm = ArmourList[armor];\r\n\t\tif (anArm.type != \"heavy\" || anArm.isMagicArmor || !anArm.weight || (CurrentVars.extraArmour && CurrentVars.extraArmour[armor])) continue;\r\n\t\t// Add the Guardian variant of the armor\r\n\t\tvar gArmName = \"Guardian Power \" + anArm.name;\r\n\t\titsFea[gArmName.toLowerCase()] = {\r\n\t\t\tname : (typePF || anArm.name.length < 16 ? \"Armor \" : \"\") + \"Model: Guardian \" + anArm.name,\r\n\t\t\tsubmenu : \"Guardian Power Armor\",\r\n\t\t\tdescription : guardianTxt,\r\n\t\t\tadditional : guardianAdditional,\r\n\t\t\tarmorAdd : { select : gArmName, options : [gArmName] },\r\n\t\t\tweaponsAdd : { select : [\"Thunder Gauntlets\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tdependentChoices : \"guardian\"\r\n\t\t}\r\n\t\t// And now add the Infiltrator variant of the armor\r\n\t\tvar iArm = newObj(anArm);\r\n\t\tiArm.name = \"Infiltrator Power \" + anArm.name;\r\n\t\tiArm.weight = 0;\r\n\t\tiArm.stealthdis = false;\r\n\t\tiArm.strReq = 0;\r\n\t\tiArm.selectNow = true;\r\n\t\tif (iArm.regExpSearch.indexOf(\".*$/\") == -1) {\r\n\t\t\tiArm.regExpSearch = iArm.regExpSearch.replace(/^/, \"infiltrator.*\");\r\n\t\t} else {\r\n\t\t\tiArm.regExpSearch = iArm.regExpSearch.replace(/\\.\\*\\$$/, \"(?=.infiltrator).*$\");\r\n\t\t};\r\n\t\titsFea[iArm.name.toLowerCase()] = {\r\n\t\t\tname : \"Armor Model: Infiltrator \" + anArm.name,\r\n\t\t\tsubmenu : \"Infiltrator Power Armor\",\r\n\t\t\tdescription : infiltratorTxt,\r\n\t\t\tspeed : { walk : {spd : \"+5\", enc : \"+5\" } },\r\n\t\t\tweaponsAdd : { select : [\"Lightning Launcher\"] },\r\n\t\t\tprereqeval : prereqFunc,\r\n\t\t\tarmorOptions : [iArm],\r\n\t\t\tdependentChoices : \"infiltrator\"\r\n\t\t}\r\n\t\t// Lastly push both choices to the array\r\n\t\titsFea.choices.push(gArmName, iArm.name);\r\n\t}\r\n});\r\n\r\n// Add the new Artificer infusions\r\nif (ClassList.artificer && ClassList.artificer.features[\"infuse item\"]) {\r\n\t// [dupl_start] the same as in Tasha's Cauldron of Everything\r\n\tif (!SourceList.T) {\r\n\t\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Helm of Awareness (prereq: level 10 artificer)\", {\r\n\t\t\tname : \"Helm of Awareness\",\r\n\t\t\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\t\t\tdescription: desc(\"The wearer has advantage on Initiative rolls and can't be surprised while not incapacitated\"),\r\n\t\t\tadditional : \"helmet; requires attunement\",\r\n\t\t\tprereqeval : function(v) { return classes.known.artificer.level >= 10; },\r\n\t\t\tmagicitemsAdd : [\"Helm of Awareness\"]\r\n\t\t});\r\n\t\tMagicItemsList[\"helm of awareness\"] = {\r\n\t\t\tname : \"Helm of Awareness\",\r\n\t\t\tsource : [[\"T\", 21], [\"UA:SP3\", 3]],\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\tdescription : \"While wearing this helmet, I have advantage on initiative rolls. In addition, I can't be surprised, provided I'm not incapacitated.\",\r\n\t\t\tdescriptionFull : \"While wearing this helmet, a creature has advantage on initiative rolls. In addition, the wearer can't be surprised, provided it isn't incapacitated.\",\r\n\t\t\tattunement : true,\r\n\t\t\tadvantages : [[\"Initiative\", true]],\r\n\t\t\tsavetxt : { immune : [\"surprised\"] }\r\n\t\t};\r\n\t} // dupl_end\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Magical Strength (ua) (prereq: level 10 artificer)\", {\r\n\t\tname : \"Armor of Magical Strength\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"The wearer of the armor can use its Int mod instead of its Str mod for Str checks/saves\",\r\n\t\t\t\"The armor has 4 charges, regaining 1d4 expended charges daily at dawn\",\r\n\t\t\t\"As a reaction when being knocked prone, the wearer can use 1 charge to not be prone\"\r\n\t\t]),\r\n\t\tadditional : \"suit of armor; requires attunement\",\r\n\t\tprereqeval : function(v) { return classes.known.artificer.level >= 10; },\r\n\t\tmagicitemsAdd : [\"Armor of Magical Strength (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"armor of magical strength-ua\"] = {\r\n\t\tname : \"Armor of Magical Strength (UA)\",\r\n\t\tnameTest : \"of Magical Strength (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"This armor has 4 charges and regains 1d4 charges daily at dawn. As a reaction when I would be knocked prone, I can expend 1 charge to not be knocked prone. It allows me to use my Intelligence modifier instead of my Strength modifier when making Strength checks or Strength saves.\",\r\n\t\tdescriptionFull : \"While wearing this armor, a creature can use its Intelligence modifier in place of its Strength modifier when making Strength checks and Strength saving throws.\\n   The armor has 4 charges. As a reaction when it would be knocked prone, the wearer can expend 1 charge to not be knocked prone. The armor regains 1d4 expended charges daily at dawn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tchooseGear : {\r\n\t\t\ttype : \"armor\",\r\n\t\t\tprefixOrSuffix : \"prefix\"\r\n\t\t},\r\n\t\tusages : 4,\r\n\t\trecovery : \"dawn\",\r\n\t\tadditional : \"regains 1d4\",\r\n\t\taddMod : [{\r\n\t\t\ttype : \"save\", field : \"Str\", mod : \"max(Int-Str|0)\",\r\n\t\t\ttext : \"While attuned to the Armor of Magical Strength (UA), I can use my Intelligence modifier instead of my Strength modifier for Strength saving throws.\"\r\n\t\t}, {\r\n\t\t\ttype : \"skill\", field : \"Athletics\", mod : \"max(Int-Str|0)\",\r\n\t\t\ttext : \"While attuned to the Armor of Magical Strength (UA), I can use my Intelligence modifier instead of my Strength modifier for Strength checks.\"\r\n\t\t}]\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Armor of Tools\", {\r\n\t\tname : \"Armor of Tools\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"The armor can have a set of artisan's or thieves' tools integrated into it as an action\",\r\n\t\t\t\"The tools remain integrated for 8 hours, or until removed as an action\",\r\n\t\t\t\"The wearer can add its Intelligence modifier to checks made with the integrated tools\"\r\n\t\t]),\r\n\t\tadditional : \"suit of armor\",\r\n\t\tmagicitemsAdd : [\"Armor of Tools\"]\r\n\t});\r\n\tMagicItemsList[\"armor of tools-ua\"] = {\r\n\t\tname : \"Armor of Tools\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\tdescription : \"As an action, I can integrate a set of artisan's or thieves' tools into this magic studded leather armor, which can hold only one set at a time. The tools remain integrated for 8 hours or until I remove them as an action. I can add my Intelligence modifier as a bonus to any ability checks I make with the integrated tools.\",\r\n\t\tdescriptionFull : \"As an action, a creature wearing this infused armor can integrate into it artisan's tools or thieves' tools. The tools remain integrated in the armor for 8 hours or until the wearer removes the tools as an action. The armor can have only one tool integrated at a time.\\n   The wearer can add its Intelligence modifier to any ability checks it makes with the integrated tool. The wearer must have a hand free to use the tool.\",\r\n\t\taction : [[\"action\", \"\"]]\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Mind Sharpener (ua)\", {\r\n\t\tname : \"Mind Sharpener\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription: desc(\"The wearer can use its reaction to ignore a failed Con save to maintain concentration\"),\r\n\t\tadditional : \"suit of armor or robes\",\r\n\t\tmagicitemsAdd : [\"Mind Sharpener (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"mind sharpener-ua\"] = {\r\n\t\tname : \"Mind Sharpener (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : \"This magic armor or robes can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\",\r\n\t\tdescriptionFull : \"The infused item can send a jolt to the wearer to refocus their mind. While wearing this infused item, whenever the creature fails a Constitution saving throw to maintain concentration on a spell, it can use its reaction to succeed instead.\",\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tchoices : [\"Mind Sharpener Armor\", \"Mind Sharpener Robes\"],\r\n\t\t\"mind sharpener armor\" : {\r\n\t\t\tname : \"Mind\\u200A Sharpener (UA)\",\r\n\t\t\ttype : \"armor (light, medium, or heavy)\",\r\n\t\t\tdescription : \"This magic armor can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\",\r\n\t\t\tchooseGear : {\r\n\t\t\t\ttype : \"armor\",\r\n\t\t\t\tprefixOrSuffix : \"brackets\",\r\n\t\t\t\titemName1stPage : [\"suffix\", \"Mind Sharpener\"],\r\n\t\t\t\tdescriptionChange : [\"prefix\", \"armor\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"mind sharpener robes\" : {\r\n\t\t\tname : \"Mind Sharpener (UA) (Robes)\",\r\n\t\t\ttype : \"wondrous item\",\r\n\t\t\tdescription : \"These magic robes can send a jolt to refocus my mind. Whenever I fail a Constitution saving throw to maintain concentration on a spell, I can use my reaction to succeed instead.\"\r\n\t\t}\r\n\t};\r\n\tAddFeatureChoice(ClassList.artificer.features[\"infuse item\"], true, \"Spell-Refueling Ring (ua) (prereq: level 6 artificer)\", {\r\n\t\tname : \"Spell-Refueling Ring\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\tdescription : desc([\r\n\t\t\t\"As an action once per dawn, the wearer of this ring can recover one expended spell slot\",\r\n\t\t\t\"The maximum level of the spell slot is equal to the number of magic items it is attuned to\"\r\n\t\t]),\r\n\t\tadditional : \"ring; requires attunement\",\r\n\t\tprereqeval : function(v) { return classes.known.artificer.level >= 6; },\r\n\t\tmagicitemsAdd : [\"Spell-Refueling Ring (UA)\"]\r\n\t});\r\n\tMagicItemsList[\"spell-refueling ring-ua\"] = {\r\n\t\tname : \"Spell-Refueling Ring (UA)\",\r\n\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\ttype : \"ring\",\r\n\t\tdescription : \"As an action, I can activate this magic ring to recover one expended spell slot. The maximum level of the recovered slot is equal to the number of magic items I am attuned to when I activate this ring. Once used, the ring can't be used again until the next dawn.\",\r\n\t\tdescriptionFull : \"While wearing this ring, the creature can recover one expended spell slot as an action. The maximum level of the recovered slot is equal to the number of magic items the wearer is currently attuned to. Once used, the ring can't be used again until the next dawn.\",\r\n\t\tattunement : true,\r\n\t\taction : [[\"action\", \"\"]],\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\"\r\n\t};\r\n}\r\n\r\nAddSubClass(\"druid\", \"circle of the stars-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*circle)(?=.*stars).*$/i,\r\n\tsubname : \"Circle of the Stars\",\r\n\tsubnameShort: \"Stars\",\r\n\tsource : [[\"UA:SP3\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Star Map\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I've created a star map, a Tiny object which I can use as my spellcasting focus\",\r\n\t\t\t\t\"If I lose it, I can perform a 1-hour ceremony during a rest to create a replacement\",\r\n\t\t\t\t\"I can use it to cast Augury or Guiding Bolt, even unprepared, without using a spell slot\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Star Map\",\r\n\t\t\t\tspells : [\"guiding bolt\", \"augury\"],\r\n\t\t\t\tselection : [\"guiding bolt\", \"augury\"],\r\n\t\t\t\tfirstCol : \"Sp\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Starry Form\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to take on a starry form for 10 minutes\",\r\n\t\t\t\t\"In that form I shed bright light in a 10-ft radius and dim light for an extra 10-ft radius\",\r\n\t\t\t\t\"When I do so, I choose one constellation below to grant me benefits in my starry form:\",\r\n\t\t\t\t\"\\u2022 Chalice: When I use a spell slot to cast a healing spell, I also heal a creature in 30 ft\",\r\n\t\t\t\t\"  This can be myself or the original target; I restore 1d8 + half my druid level in HP\",\r\n\t\t\t\t\"\\u2022 Archer: As a bonus action, I can make a ranged spell attack to hurl a luminous arrow\",\r\n\t\t\t\t\"  This has a range of 60 ft and deals radiant damage equal to 1d8 + my Wisdom mod\",\r\n\t\t\t\t\"\\u2022 Dragon: I can treat a roll below 10 as a 10 for Int/Wis checks and concentration saves\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (Archer Constellation)\"]],\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 2 ? \"\" : \"Chalice: heals 1d8+\" + Math.floor(n/2) + \" HP\";\r\n\t\t\t}),\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*luminous)(?=.*arrow).*$/i,\r\n\t\t\t\tname : \"Luminous Arrow\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Spell\",\r\n\t\t\t\tdamage : [1, 8, \"radiant\"],\r\n\t\t\t\trange : \"60 ft\",\r\n\t\t\t\tdescription : \"Use as bonus action\",\r\n\t\t\t\tabilitytodamage : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Cosmic Omen\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I finish a long rest, I can roll a die to gain an omen based on the result (odd/even)\",\r\n\t\t\t\t\"As a reaction when a creature I can see in 30 ft makes an attack, check, or save, I can:\",\r\n\t\t\t\t\"\\u2022 Weal (even): add 1d6 to the number rolled for the attack, check, or save\",\r\n\t\t\t\t\"\\u2022 Woe (odd): subtract 1d6 from the number rolled for the attack, check, or save\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\tusages : \"Wisdom modifier per \",\r\n\t\t\tusagescalc : \"event.value = Math.max(1, What('Wis Mod'));\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Full of Stars\",\r\n\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription: desc(\"While in my starry form, I have resistance to bludgeoning, piercing, and slashing damage\"),\r\n\t\t\tdmgres : [\r\n\t\t\t\t[\"Bludgeoning\", \"Bludgeon. (in form)\"],\r\n\t\t\t\t[\"Piercing\", \"Piercing (in form)\"],\r\n\t\t\t\t[\"Slashing\", \"Slashing (in form)\"]\r\n\t\t\t],\r\n\t\t\t\"star flare\" : {\r\n\t\t\t\tname : \"Star Flare\",\r\n\t\t\t\textraname : \"Circle of the Stars 14\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 3]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As an action, I conjure a 30-ft radius sphere of light on a point within 120 ft I can see\",\r\n\t\t\t\t\t\"I then teleport each willing creature in that sphere to an empty space within 30 ft of it\",\r\n\t\t\t\t\t\"Creatures left within the sphere must make a Con save or take 4d10 radiant damage\",\r\n\t\t\t\t\t\"Those that failed the save are also blinded until the end of my next turn\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 5th-level or higher spell slot (SS 5+)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 5+\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"star flare\",\r\n\t\t\t\tminlevel : 14\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar UASP3_rangerSubclassFeyWandererUA = AddSubClass(\"ranger\", \"fey wanderer-ua\", {\r\n\tregExpSearch : /^(?=.*fey)(?=.*wanderer).*$/i,\r\n\tsubname : \"Fey Wanderer\",\r\n\tsource : [[\"UA:SP3\", 5]],\r\n\tfullname : \"Fey Wanderer\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Fey Wanderer Magic\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"I get bonus spells known, which do not count against the number of spells I can know\"),\r\n\t\t\tspellcastingExtra : [\"charm person\", \"misty step\", \"dispel magic\", \"banishment\", \"mislead\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Cunning Will\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription: desc(\"Adv. on saves vs. charm/frightened; Proficiency in Deception, Performance, or Persuasion\"),\r\n\t\t\tskillstxt : \"Choose one from: Deception, Performance, or Persuasion\",\r\n\t\t\tsavetxt : { adv_vs : [\"charmed\", \"frightened\"] }\r\n\t\t},\r\n\t\t\"subclassfeature3.2\" : {\r\n\t\t\tname : \"Dreadful Strikes\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can imbue the weapons I'm holding with magic until my turn ends\",\r\n\t\t\t\t\"They count as magical and deal +1d6 psychic damage, but only once to a single creature\",\r\n\t\t\t\t\"I can also do this as part of the same bonus action as making an off-hand attack\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Blessings of the Courts\",\r\n\t\t\tsource : [[\"UA:SP3\", 5]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Once per turn when I hit a weapon attack, I can expend a spell slot for extra damage\",\r\n\t\t\t\t\"The target takes +3d6 psychic damage and must make a Wis save or be frightened of me\",\r\n\t\t\t\t\"This lasts until the end of my next turn; In addition, I add my Wis mod to Cha checks\"\r\n\t\t\t]),\r\n\t\t\taddMod : [\"Deception\", \"Intimidation\", \"Performance\", \"Persuasion\"].map(function(skill){return {type : \"skill\", field : skill, mod : \"Wis\", text : \"I add my Wisdom modifier to my Charisma checks\"};})\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Beguiling Twist\",\r\n\t\t\tsource : [[\"UA:SP3\", 6]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when a creature I can see in 120 ft succeeds a save vs. charmed/frightened\",\r\n\t\t\t\t\"I can have another I can see in 120 ft make a Wis save or suffer one effect of my choice:\",\r\n\t\t\t\t\" \\u2022 For 1 min, it's frightened of me or charmed; It can save again at the end of its turns\",\r\n\t\t\t\t\" \\u2022 It takes 3d10 psychic damage\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]],\r\n\t\t\t\"misty presence\" : {\r\n\t\t\t\tname : \"Misty Presence\",\r\n\t\t\t\textraname : \"Fey Wanderer 15\",\r\n\t\t\t\tsource : [[\"UA:SP3\", 6]],\r\n\t\t\t\tdescription : desc([\r\n\t\t\t\t\t\"As a bonus action, I can have a creature I can see within 30 ft make a Wisdom save\",\r\n\t\t\t\t\t\"On a failed save, it cannot see or hear me for 24 hours or until I use this feature again\",\r\n\t\t\t\t\t\"The target can repeat its save if I hit it with an attack, force it to save, or deal it damage\",\r\n\t\t\t\t\t\"On a successful save, the creature is immune to my use of this feature for 7 days\",\r\n\t\t\t\t\t\"I can do this once per long rest, or by expending a 4th-level or higher spell slot (SS 4+)\"\r\n\t\t\t\t]),\r\n\t\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"SS 4+\"\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"misty presence\",\r\n\t\t\t\tminlevel : 15\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) { ClassList.rangerua.subclasses[1].push(UASP3_rangerSubclassFeyWandererUA); };\r\n"
  },
  {
    "path": "WotC material/ua_20200512_Subclasses-Revisited.js",
    "content": "var iFileName = \"ua_20200512_Subclasses-Revisited.js\";\nRequiredSheetVersion(\"13.0.8\", 15);\n// This file adds the content from the Unearthed Arcana: Fighter, Ranger, and Rogue article to MPMB's Character Record Sheet\n// This file contains contributions by Undrhil and Metacomet10\n\nSourceList[\"UA:SR\"] = {\n\tname : \"Unearthed Arcana: Subclasses Revisited\",\n\tabbreviation : \"UA:SR\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_SubclassesRevisited_0512.pdf\",\n\tdate : \"2020/05/12\"\n};\n\nAddSubClass(\"rogue\", \"phantom-ua\", {\n\tregExpSearch : /^(?!.*(barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|sorcerer|warlock|wizard))(?=.*phantom).*$/i,\n\tsubname : \"Phantom\",\n\tsource : [[\"UA:SR\", 1]],\n\tfullname : \"Phantom\",\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Whispers of the Dead\",\n\t\t\tsource : [[\"UA:SR\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"Whenever I finish a short or long rest, I can gain one skill or tool proficiency of my choice\",\n\t\t\t\t\"This proficiency lasts until I use this feature again to gain a different proficiency\"\n\t\t\t]),\n\t\t\tskillstxt : \"Choose one skill or tool; I can change the choice whenever I finish a short or long rest\"\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Wails from the Grave\",\n\t\t\tsource : [[\"UA:SR\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : levels.map(function (n) {\n\t\t\t\tvar a = [\n\t\t\t\t\t\"Directly after I deal sneak attack damage to a creature on my turn, I \" + (n < 17 ? \"can\" : \"also\") + \" harm another\",\n\t\t\t\t\tn < 17 ? \"I then deal half my sneak attack in psychic damage to a creature I can see within 30 ft\" : \"I deal half my sneak attack in psychic damage to both it and another I can see in 30 ft\"\n\t\t\t\t];\n\t\t\t\treturn desc(a);\n\t\t\t}),\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\",\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn Math.ceil(n / 4) + \"d6\";\n\t\t\t}),\n\t\t},\n\t\t\"subclassfeature9\" : {\n\t\t\tname : \"Tokens of the Departed\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 9,\n\t\t\tdescription : \" [max Proficiency Bonus of soul trinkets]\" + desc([\n\t\t\t\t\"As a reaction when I see a creature within 30 ft die, I can create a Tiny soul trinket\",\n\t\t\t\t\"The token of its life essence appears in my free hand; The DM determines its appearance\",\n\t\t\t\t\"While a soul trinket is on my person, I have advantage on death and Constitution saves\",\n\t\t\t\t\"As an action, I can destroy one of my soul trinkets and ask its associated spirit a question\",\n\t\t\t\t\"Its spirit appears and answers concisely in a language it knew; Trinket can be anywhere\"\n\t\t\t]),\n\t\t\taction : [\n\t\t\t\t[\"reaction\", \"Create Soul Trinket\"],\n\t\t\t\t[\"action\", \"Destroy Soul Trinket\"]\n\t\t\t],\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Soul Trinkets (max Prof Bonus)\",\n\t\t\t\tusages : \"\",\n\t\t\t\trecovery : \"Special\"\n\t\t\t}],\n\t\t\tsavetxt : { text : [\"While soul trinket is on me, Adv. on Con and death saves\"] }\n\t\t},\n\t\t\"subclassfeature13\" : {\n\t\t\tname : \"Ghost Walk\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 13,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can assume a spectral form with 10 ft flying speed and can hover\",\n\t\t\t\t\"Attacks vs. me have disadv.; I can move through creatures and objects as difficult terrain\",\n\t\t\t\t\"This lasts 10 min; I take 1d10 force damage if I end my turn inside a creature or object\",\n\t\t\t\t\"I can assume this form once per long rest, or by destroying one of my soul trinkets (ST)\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (start/end)\"]],\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taltResource : \"ST\"\n\t\t},\n\t\t\"subclassfeature17\" : {\n\t\t\tname : \"Death Knoll\",\n\t\t\tsource : [[\"UA:SR\", 2]],\n\t\t\tminlevel : 17,\n\t\t\tdescription : desc([\n\t\t\t\t\"Wails from the Grave now also deals damage to the target of the original sneak attack\"\n\t\t\t])\n\t\t}\n\t}\n});\n\n// [dupl_start] the same as in Tasha's Cauldron of Everything\nif (!SourceList.T) {\n\tAddSubClass(\"warlock\", \"the genie\", {\n\t\tregExpSearch : /^(?=.*warlock)(?=.*(genie|dao|djinni|efreeti|marid)).*$/i,\n\t\tsubname : \"the Genie\",\n\t\tsource : [[\"T\", 73], [\"UA:SR\", 2]],\n\t\tfeatures : {\n\t\t\t\"subclassfeature1\" : {\n\t\t\t\tname : \"Choose Genie Kind\",\n\t\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\n\t\t\t\tminlevel : 1,\n\t\t\t\tdescription : desc('Use the \"Choose Feature\" button above to choose the kind of genie your patron is'),\n\t\t\t\tcalcChanges : {\n\t\t\t\t\tspellList : [\n\t\t\t\t\t\tfunction(spList, spName, spType) {\n\t\t\t\t\t\t\tif (spType.indexOf(\"bonus\") !== -1 && spList.name && /mystic arcanum/i.test(spList.name) && spList.level[0] === 9) {\n\t\t\t\t\t\t\t\tspList.extraspells.push(\"wish\");\n\t\t\t\t\t\t\t} else if (spType.indexOf(\"bonus\") === -1 && spName === \"warlock\") {\n\t\t\t\t\t\t\t\tif (!spList.notspells) spList.notspells = [];\n\t\t\t\t\t\t\t\tspList.notspells.push(\"wish\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"The Genie patron adds Wish as a spell available for my 9th-level Mystic Arcanum selection.\"\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\tchoices : [\"Dao (earth)\", \"Djinni (air)\", \"Efreeti (fire)\", \"Marid (water)\"],\n\t\t\t\t\"dao (earth)\" : {\n\t\t\t\t\tname : \"Dao Genie Patron\",\n\t\t\t\t\tdescription: desc(\"My genie patron is a Dao, associated with earth\"),\n\t\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"sanctuary\", \"phantasmal force\", \"spike growth\", \"create food and water\", \"meld into stone\", \"phantasmal killer\", \"stone shape\", \"creation\", \"wall of stone\", \"wish\"]\n\t\t\t\t},\n\t\t\t\t\"djinni (air)\" : {\n\t\t\t\t\tname : \"Djinni Genie Patron\",\n\t\t\t\t\tdescription: desc(\"My genie patron is a Djinni, associated with air\"),\n\t\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"thunderwave\", \"gust of wind\", \"phantasmal force\", \"create food and water\", \"wind wall\", \"greater invisibility\", \"phantasmal killer\", \"creation\", \"seeming\", \"wish\"]\n\t\t\t\t},\n\t\t\t\t\"efreeti (fire)\" : {\n\t\t\t\t\tname : \"Efreeti Genie Patron\",\n\t\t\t\t\tdescription: desc(\"My genie patron is an Efreeti, associated with fire\"),\n\t\t\t\t\tspellcastingExtra : [\"burning hands\", \"detect evil and good\", \"phantasmal force\", \"scorching ray\", \"create food and water\", \"fireball\", \"fire shield\", \"phantasmal killer\", \"creation\", \"flame strike\", \"wish\"]\n\t\t\t\t},\n\t\t\t\t\"marid (water)\" : {\n\t\t\t\t\tname : \"Marid Genie Patron\",\n\t\t\t\t\tdescription: desc(\"My genie patron is a Marid, associated with water\"),\n\t\t\t\t\tspellcastingExtra : [\"detect evil and good\", \"fog cloud\", \"blur\", \"phantasmal force\", \"create food and water\", \"sleet storm\", \"control water\", \"phantasmal killer\", \"cone of cold\", \"creation\", \"wish\"]\n\t\t\t\t},\n\t\t\t\tchoiceDependencies : [{\n\t\t\t\t\tfeature : \"subclassfeature1.3\"\n\t\t\t\t}, {\n\t\t\t\t\tfeature : \"subclassfeature6\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"subclassfeature1.1\" : {\n\t\t\t\tname : \"Genie's Vessel\",\n\t\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\n\t\t\t\tminlevel : 1,\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"My patron gifts me a magical vessel, a Tiny object, granting me a measure of its power\",\n\t\t\t\t\t\"I choose the vessel's appearance; I can use it as my spellcasting focus for warlock spells\",\n\t\t\t\t\t\"The vessel's AC is my spell save DC and it has my warlock level + Proficiency Bonus in HP\",\n\t\t\t\t\t\"If it is destroyed or lost, I can get a replacement with a 1-hour ceremony during a rest\"\n\t\t\t\t])\n\t\t\t},\n\t\t\t\"subclassfeature1.2\" : {\n\t\t\t\tname : \"Genie's Vessel: Bottled Respite\",\n\t\t\t\tsource : [[\"T\", 74], [\"UA:SR\", 3]],\n\t\t\t\tminlevel : 1,\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"As an action, I can vanish and enter the extradimensional space inside my genie's vessel\",\n\t\t\t\t\t\"The vessel stays in its location; The space inside is a 20-ft high, 20-ft radius cylinder\",\n\t\t\t\t\t\"As a bonus action, I can exit my vessel; I exit it early if I die or the vessel is destroyed\",\n\t\t\t\t\t\"I can remain inside for twice my Proficiency Bonus in hours; Objects can be left inside\"\n\t\t\t\t]),\n\t\t\t\tlimfeaname : \"Bottled Respite\",\n\t\t\t\taction : [[\"action\", \" (enter)\"], [\"bonus action\", \" (eject)\"]],\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"long rest\"\n\t\t\t},\n\t\t\t\"subclassfeature1.3\" : {\n\t\t\t\tname : \"Genie's Wrath\",\n\t\t\t\tsource : [[\"T\", 73], [\"UA:SR\", 3]],\n\t\t\t\tminlevel : 1,\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"I can deal bonus damage on my attacks, its type depending on my patron's genie kind\",\n\t\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is'\n\t\t\t\t]),\n\t\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\n\t\t\t\tchoicesNotInMenu : true,\n\t\t\t\t\"dao (earth)\" : {\n\t\t\t\t\tname : \"Dao's Wrath\",\n\t\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Prof Bonus in extra bludgeoning damage\",\n\t\t\t\t\tcalcChanges : {\n\t\t\t\t\t\tatkAdd : [\n\t\t\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\t\t\tif (!v.isDC) {\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' bludgeoning damage';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra bludgeoning damage equal to my proficiency bonus.\"\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"djinni (air)\" : {\n\t\t\t\t\tname : \"Djinni's Wrath\",\n\t\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra thunder damage\",\n\t\t\t\t\tcalcChanges : {\n\t\t\t\t\t\tatkAdd : [\n\t\t\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\t\t\tif (!v.isDC) {\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' thunder damage';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra thunder damage equal to my proficiency bonus.\"\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"efreeti (fire)\" : {\n\t\t\t\t\tname : \"Efreeti's Wrath\",\n\t\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra fire damage\",\n\t\t\t\t\tcalcChanges : {\n\t\t\t\t\t\tatkAdd : [\n\t\t\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\t\t\tif (!v.isDC) {\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' fire damage';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra fire damage equal to my proficiency bonus.\"\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"marid (water)\" : {\n\t\t\t\t\tname : \"Marid's Wrath\",\n\t\t\t\t\tdescription : \" [once on each of my turns]\\n   When I hit an attack, I can have it deal my Proficiency Bonus in extra cold damage\",\n\t\t\t\t\tcalcChanges : {\n\t\t\t\t\t\tatkAdd : [\n\t\t\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\t\t\tif (!v.isDC) {\n\t\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + 'Once per my turn +' + How('Proficiency Bonus') + ' cold damage';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"Once on each of my turns, I can have one of my attacks that hit deal extra cold damage equal to my proficiency bonus.\"\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"subclassfeature6\" : {\n\t\t\t\tname : \"Elemental Gift\",\n\t\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\n\t\t\t\tminlevel : 6,\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"I gain resistance to a damage type depending on my patron's genie kind\",\n\t\t\t\t\t'Use the \"Choose Feature\" button above to choose the kind of genie your patron is',\n\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\n\t\t\t\t]),\n\t\t\t\tchoices : [\"dao (earth)\", \"djinni (air)\", \"efreeti (fire)\", \"marid (water)\"],\n\t\t\t\tchoicesNotInMenu : true,\n\t\t\t\t\"dao (earth)\" : {\n\t\t\t\t\tname : \"Dao's Elemental Gift\",\n\t\t\t\t\tdescription : desc([\n\t\t\t\t\t\t\"I gain resistance to bludgeoning damage\",\n\t\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\n\t\t\t\t\t]),\n\t\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\n\t\t\t\t\tdmgres : [\"Bludgeoning\"]\n\t\t\t\t},\n\t\t\t\t\"djinni (air)\" : {\n\t\t\t\t\tname : \"Djinni's Elemental Gift\",\n\t\t\t\t\tdescription : desc([\n\t\t\t\t\t\t\"I gain resistance to thunder damage\",\n\t\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\n\t\t\t\t\t]),\n\t\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\n\t\t\t\t\tdmgres : [\"Thunder\"]\n\t\t\t\t},\n\t\t\t\t\"efreeti (fire)\" : {\n\t\t\t\t\tname : \"Efreeti's Elemental Gift\",\n\t\t\t\t\tdescription : desc([\n\t\t\t\t\t\t\"I gain resistance to fire damage\",\n\t\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\n\t\t\t\t\t]),\n\t\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\n\t\t\t\t\tdmgres : [\"Fire\"]\n\t\t\t\t},\n\t\t\t\t\"marid (water)\" : {\n\t\t\t\t\tname : \"Marid's Elemental Gift\",\n\t\t\t\t\tdescription : desc([\n\t\t\t\t\t\t\"I gain resistance to cold damage\",\n\t\t\t\t\t\t\"As a bonus action, I can gain a flying speed of 30 ft and I can hover, for 10 minutes\"\n\t\t\t\t\t]),\n\t\t\t\t\taction : [[\"bonus action\", \" (start fly)\"]],\n\t\t\t\t\tdmgres : [\"Cold\"]\n\t\t\t\t},\n\t\t\t\tadditional : \"Fly 10 min\",\n\t\t\t\tusages : \"Prof Bonus per \",\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\t\trecovery : \"long rest\"\n\t\t\t},\n\t\t\t\"subclassfeature10\" : {\n\t\t\t\tname : \"Sanctuary Vessel\",\n\t\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\n\t\t\t\tminlevel : 10,\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"When I enter my vessel I can have up to 5 willing creatures I can see in 30 ft join me\",\n\t\t\t\t\t\"As a bonus action, I can eject any number of creatures from my genie's vessel\",\n\t\t\t\t\t\"Everyone is ejected when I leave it or if the vessel is destroyed\",\n\t\t\t\t\t\"Anyone who remains in the vessel for at least 10 min gains the benefits of a short rest\",\n\t\t\t\t\t\"Also, HD spend as part of this short rest has my Proficiency Bonus added to the roll\"\n\t\t\t\t])\n\t\t\t},\n\t\t\t\"subclassfeature14\" : {\n\t\t\t\tname : \"Limited Wish\",\n\t\t\t\tsource : [[\"T\", 75], [\"UA:SR\", 3]],\n\t\t\t\tminlevel : 14,\n\t\t\t\tadditional: \"1\\xD7 per 1d4 long rests\",\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"As an action, I can cast a 6th-level or lower spell with a casting time time of one action\",\n\t\t\t\t\t\"This can be any spell; It doesn't require any costly components, it simply takes effect\"\n\t\t\t\t]),\n\t\t\t\taction : [[\"action\", \"\"]],\n\t\t\t\textraLimitedFeatures : [{\n\t\t\t\t\tname : \"Limited Wish\",\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"1d4 LR\"\n\t\t\t\t}]\n\t\t\t}\n\t\t}\n\t});\n} // dupl_end\n\n/* This UA version of Order of Scribes is not done yet\nAddSubClass(\"wizard\",\"order of scribes-ua\", {\n\tregExpSearch : /^(?=.*wizard)(?=.*order)(?=.*scribes?).*$|scrivener/i,\n\tsubname : \"Order of Scribes\",\n\tsource : [[\"UA:SR\", 4]],\n\tfeatures : {\n\t\t\"subclassfeature2\" : {\n\t\t\tname : \"Wizardly Quill\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can magically create a Tiny quill with the following properties:\",\n\t\t\t\t\" \\u2022 It doesn't require ink and produces ink in the color of my choice when writing with it\",\n\t\t\t\t\" \\u2022 The gold and time required to transcribe spells into my spellbook with it are halved\",\n\t\t\t\t\" \\u2022 As a bonus action, I can use it to erase a text written with it if within 5 ft of the text\",\n\t\t\t\t\"The quill disappear if I create another or if I die\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (create/erase)\"]]\n\t\t},\n\t\t\"subclassfeature2.1\" : {\n\t\t\tname : \"Awakened Spellbook\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 2,\n\t\t\tdescription : desc ([\n\t\t\t\t\"My spellbook gains sentience and grants me the following benefits while I am holding it:\",\n\t\t\t\t\" \\u2022 I can use the book as a spellcasting focus for my wizard spells\",\n\t\t\t\t\" \\u2022 When I cast a wizard spell using a spell slot, I can temporarily replace its damage type\",\n\t\t\t\t\"   The new damage type must appear in another spell in my awakened spellbook\",\n\t\t\t\t\" \\u2022 Once per long rest, I can ritual cast a wizard spell without 10 min extra casting time\",\n\t\t\t\t\"I can replace it over a short rest, transferring its spells and sentience to a blank book\"\n\t\t\t]),\n\t\t\tadditional : \"fast ritual cast\",\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Master Scrivener\",\n\t\t\tsource : [[\"UA:SR\", 4]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"When I finish a long rest, I can write a spell in my awakened spellbook on a blank paper\",\n\t\t\t\t\"It must be a level 1 or 2 spell with 1 action casting time; My spellbook must be in 5 ft\",\n\t\t\t\t\"As an action, I can use this scroll to cast the spell on it at one higher level than normal\",\n\t\t\t\t\"Only I can use the scroll; The scroll turns blank again when I use it or finish a long rest\",\n\t\t\t\t\"Also, using my Wizardly Quill, the gold and time I need to craft spell scrolls is halved\"\n\t\t\t]),\n\t\t\taction : [[\"action\", \" (cast scroll)\"]],\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t// Finished until here\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Manifest Mind\",\n\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc('As a bonus action, I can cause my Awakened Spellbook to manifest. See \"Note\" page'),\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Manifest Mind\",\n\t\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\t\tpage3notes : false,\n\t\t\t\tnote : desc ([\"As a bonus action with my Awakened Spellbook on my person, I can cause the mind to\",\n\t\t\t\t\"manifest as a Tiny spectral construct, hovering in an unoccupied space of my choice within\",\n\t\t\t\t\"60 ft. It is intangible and doesn't occupy its space, and it sheds dim light in a 10 ft radius.\",\n\t\t\t\t\"It looks like a ghostly tome, a cascade of text, or a scholar from the past \\(my choice.\\).\",\n\t\t\t\t\"\\(See Companion Page for statistics for this construct.\\)\",\n\t\t\t\t\"While manifested, it can hear and see and has darkvision with a range of 60 ft. As an\",\n\t\t\t\t\"action, I can hear and see using its senses instead of my own, until my concentration\",\n\t\t\t\t\"ends \\(as if concentrating on a spell\\).\",\n\t\t\t\t\"Whenever I cast a wizard spell on my turn, I can cast it as if I were in the spectral mind's\",\n\t\t\t\t\"space, using its senses. I can do this a number of times per day equal to my proficiency\",\n\t\t\t\t\"bonus, and I regain all uses when I finish a long rest.\",\n\t\t\t\t\"As a bonus action, I can cause it to hover up to 30 ft to an unoccupied space that I or it\",\n\t\t\t\t\"can see. It can pass through creatures but not objects. It stops manifesting if it is ever\",\n\t\t\t\t\"more than 300 ft away from me, if it drops to 0 hit points, if I die, or if I dismiss it as\",\n\t\t\t\t\"a bonus action.\"\n\t\t\t\t])\n\t\t\t}],\n\t\t\teval : function() {\n\t\t\t\tvar companionFunctions = ClassList.artificer ? ClassList.artificer.artificerCompFunc : ClassList.wizard.artificer.CompFunc;\n\t\t\t\tcompanionFunctions.add(\"Manifest Mind\");\n\t\t\t\tClassList.wizard.wizardCompFunc.update(10, What('Int mod'),What('AC'),What('Str mod'),What('Dex mod'),What('Con mod'),What('Wis mod'),What('Cha mod'));\n\t\t\t},\n\t\t\tremoveeval : function() {\n\t\t\t\tvar companionFunctions = ClassList.artificer ? ClassList.artificer.artificerCompFunc : ClassList.wizard.artificerCompFunc;\n\t\t\t\tcompanionFunctions.remove(\"Manifest Mind\");\n\t\t\t},\n\t\t\taction : [[\"bonus action\",\"\"],[\"bonus action\",\"Hover spellbook 30ft\"],[\"bonus action\",\"dismiss Manifestation\"]],\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"One with the Word\",\n\t\t\tsource : [[\"UA:SR\", 5]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"While I am holding my Awakened Spellbook and it is manifest, I can take an action to\",\n\t\t\t\t\"swap places with the manifestation. I can do this a number of times equal to my\",\n\t\t\t\t\"proficiency bonus and I regain all expended uses when I finish a long rest.\",\n\t\t\t\t\"If I die but at least one spell remains in my Awakened Spellbook, I can return to\",\n\t\t\t\t\"life after 1 minute within 5 ft of the book. I revive with 1 hit point. I then roll\",\n\t\t\t\t\"3d6 and the spellbook loses spells of my choice that have a combined spell level\",\n\t\t\t\t\"equal to that roll or higher. I am incapable of casting the lost spells, even if I\",\n\t\t\t\t\"find them on a scroll or in another spellbook. I can only restore my ability to cast\",\n\t\t\t\t\"one of these spells with the wish spell, which will restore one spell per casting.\"\n\t\t\t]),\n\t\t\taction : [[\"action\",\"Swap places with spellbook\"]],\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t}\n});\n*/\n"
  },
  {
    "path": "WotC material/ua_20200713_Feats-2020.js",
    "content": "var iFileName = \"ua_20200713_Feats-2020.js\";\nRequiredSheetVersion(\"14.0.5-beta\", 15);\n// This file adds the content from the Unearthed Arcana 2020: Feats article to MPMB's Character Record Sheet\n// All content in this file contains contributions by AelarTheElfRogue\n\n// Define the source\nSourceList[\"UA:F2\"] = {\n\tname : \"Unearthed Arcana: Feats 2020\",\n\tabbreviation : \"UA:F2\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_Feats.pdf\",\n\tdate : \"2020/07/13\"\n};\n\n// [dupl_start] (mostly) the same as in Tasha's Cauldron of Everything\n// feats that allow a change every level in UA, but not/different in TCoE are not added again, because the difference is so small\nif (!SourceList.T) {\n\tFeatsList[\"artificer initiate\"] = {\n\t\tname : \"Artificer Initiate\",\n\t\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\n\t\tdescriptionFull : \"You've learned some of an artificer's inventiveness, granting you the following benefits:\\n \\u2022 You learn one cantrip of your choice from the artificer spell list, and you learn one 1st-level spell of your choice from that list. Intelligence is your spellcasting ability for these spells. Whenever you gain a level, you can replace one of these spells with another spell of the same level from the artificer spell list.\\n \\u2022 You can cast this feat's 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n \\u2022 You gain proficiency with one type of artisan's tools of your choice, and you can use that type of tool as a spellcasting focus for any spell you cast that uses Intelligence as its spellcasting ability.\", // only slightly different than TCoE: allowed to switch spells every level\n\t\tdescription : typePF ? \"I learn a cantrip and a 1st-level spell from the artificer's spell list. Int is my spellcasting ability for these. Once per long rest, I can cast the 1st-level spell at its lowest level without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for spells I cast with Int as spellcasting ability.\" : \"I learn one cantrip and one 1st-level spell from the artificer's spell list. Intelligence is my spellcasting ability for these. I can cast the 1st-level spell at its lowest level once per long rest without using a spell slot. I gain proficiency in one artisan's tool, which I can use as a spellcasting focus for any spell I cast that uses Intelligence as its spellcasting ability.\",\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Artificer cantrip\",\n\t\t\tspellcastingAbility : 4,\n\t\t\t\"class\" : 'artificer',\n\t\t\tlevel : [0, 0],\n\t\t}, {\n\t\t\tname : \"1st-level artificer spell\",\n\t\t\t\"class\" : 'artificer',\n\t\t\tlevel : [1, 1],\n\t\t\tfirstCol : \"oncelr\",\n\t\t}],\n\t\ttoolProfs : [ [\"Artisan's tools\", 1] ]\n\t};\n\tFeatsList[\"chef\"] = {\n\t\tname : \"Chef\",\n\t\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\n\t\tdescriptionFull : \"Time spent mastering the culinary arts has paid off, granting you the following benefits:\\n \\u2022 Increase your Constitution or Wisdom score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with cook's utensils if you don't already have it.\\n \\u2022 As part of a short rest, you can cook special food, provided you have ingredients and cook's utensils on hand. You can prepare enough of this food for a number of creatures equal to 4 + your proficiency bonus. At the end of the short rest, any creature who eats the food and spends one or more Hit Dice to regain hit points regains an extra 1d8 hit points.\\n \\u2022 With one hour of work or when you finish a long rest, you can cook a number of treats equal to your proficiency bonus. These special treats last 8 hours after being made. A creature can use a bonus action to eat one of those treats to gain temporary hit points equal to your proficiency bonus.\",\n\t\tdescription : \"During a short rest, I can make food for 4 + my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus creatures; if they eat it and spend 1\" + (typePF ? \"+ HD\" : \" or more Hit Die\") + \", they regain 1d8 HP. In one hour or during a long rest, I can make treats equal to my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus that last for 8 hours; As a bonus action, one can eat a treat, gaining my Prof\" + (typePF ? \"\" : \"iciency\") + \" Bonus in temporary HP. [+1 \" + (typePF ? \"Con or Wis\" : \"Constitution or Wisdom\") + \"]\",\n\t\taction : [[\"bonus action\", \"Consume Chef's Treat\"]],\n\t\ttoolProfs : [\"Cook's utensils\"],\n\t\tscorestxt : \"+1 Constitution or Wisdom\"\n\t};\n\tFeatsList[\"eldritch adept\"] = {\n\t\tname : \"Eldritch Adept\",\n\t\tsource : [[\"T\", 79], [\"UA:F2\", 1]],\n\t\tdescriptionFull : \"Studying occult lore, you have unlocked eldritch power within yourself: you learn one Eldritch Invocation option of your choice from the warlock class. If the invocation has a prerequisite, you can choose that invocation only if you're a warlock and only if you meet the prerequisite.\\n   Whenever you gain a level, you can replace the invocation with another one from the warlock class.\",\n\t\tdescription : 'I learn one Eldritch Invocation from the warlock class for which I meet the prerequisites (2nd page \"Choose Feature\" button). I can replace this invocation for another whenever I gain a level.',\n\t\tbonusClassExtrachoices : [{\n\t\t\t\"class\" : \"warlock\",\n\t\t\tfeature : \"eldritch invocations\",\n\t\t\tbonus : 1\n\t\t}],\n\t\tprerequisite : \"Spellcasting or Pact Magic feature\",\n\t\tprereqeval : function (v) { return v.isSpellcastingClass; }\n\t};\n\tFeatsList[\"fey touched\"] = {\n\t\tname : \"Fey Touched\",\n\t\tsource : [[\"T\", 79], [\"UA:F2\", 2]],\n\t\tdescriptionFull : \"Your exposure to the Feywild's magic has changed you, granting you the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn the misty step spell and one 1st-level spell of your choice. The 1st-level spell must be from the divination or enchantment school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\n\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\n\t\tspellcastingBonus : [{\n\t\t\tname : \"Misty Step\",\n\t\t\tspells : [\"misty step\"],\n\t\t\tselection : [\"misty step\"],\n\t\t\tfirstCol : \"oncelr+markedbox\"\n\t\t}, {\n\t\t\tname : \"1st-level Ench/Div spell\",\n\t\t\t'class': \"any\",\n\t\t\tschool : [\"Ench\", \"Div\"],\n\t\t\tlevel : [1, 1],\n\t\t\tfirstCol : \"oncelr+markedbox\"\n\t\t}],\n\t\tspellcastingAbility : 4,\n\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\t\t\"intelligence\" : {\n\t\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them \" + (typePF ? \"by expending\" : \"with\") + \" a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\n\t\t\tspellcastingAbility : 4,\n\t\t\tscores : [0, 0, 0, 1, 0, 0]\n\t\t},\n\t\t\"wisdom\" : {\n\t\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\n\t\t\tspellcastingAbility : 5,\n\t\t\tscores : [0, 0, 0, 0, 1, 0]\n\t\t},\n\t\t\"charisma\" : {\n\t\t\tdescription : \"I learn Misty Step and one 1st level divination or enchantment spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\n\t\t\tspellcastingAbility : 6,\n\t\t\tscores : [0, 0, 0, 0, 0, 1]\n\t\t}\n\t};\n\tRunFunctionAtEnd(function() {\n\t\tif (!ClassList.fighter || !ClassList.fighter.features[\"fighting style\"]) return;\n\t\tvar FtngStyles = ClassList.fighter.features[\"fighting style\"];\n\t\tFeatsList[\"fighting initiate\"] = {\n\t\t\tname : \"Fighting Initiate\",\n\t\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\n\t\t\tdescriptionFull : \"Your martial training has helped you develop a particular style of fighting. As a result, you learn one Fighting Style option of your choice from the fighter class. If you already have a style, the one you choose must be different.\\n   Whenever you gain a level, you can replace this feat's fighting style with another one from the fighter class that you don't have.\", // only slightly different than TCoE: allowed to switch style every level instead of only at ASI\n\t\t\tdescription : \"I learn one Fighting Style from the fighter class, which must be one that I don't yet know. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\tprerequisite : \"Proficiency with a martial weapon\",\n\t\t\tprereqeval : function(v) {\n\t\t\t\treturn v.martialWeaponsProf || v.otherWeaponsProf.some(function (n) {\n\t\t\t\t\treturn WeaponsList[n] && (/Martial/i).test(WeaponsList[n].type);\n\t\t\t\t});\n\t\t\t},\n\t\t\tchoices : [],\n\t\t\t\"archery\" : {\n\t\t\t\tdescription : \"I gain a +2 bonus to attack rolls I make with ranged weapons. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : FtngStyles.source\n\t\t\t},\n\t\t\t\"defense\" : {\n\t\t\t\tdescription : \"I gain a +1 bonus to my AC while I'm wearing armor. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : FtngStyles.source\n\t\t\t},\n\t\t\t\"dueling\" : {\n\t\t\t\tdescription : \"When I wield a melee weapon in one hand and no other weapons, I gain a +2 bonus to damage rolls with that weapon. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : FtngStyles.source\n\t\t\t},\n\t\t\t\"great weapon fighting\" : {\n\t\t\t\tdescription : \"When I roll a 1 or 2 on a damage die for an attack I make with a two-handed or versatile melee weapon that I'm wielding with two hands, I can reroll the die and must use the new roll, even if the new roll is a 1 or a 2. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : FtngStyles.source\n\t\t\t},\n\t\t\t\"protection\" : {\n\t\t\t\tdescription : \"When a creature I can see attacks a target other than me that is within 5 ft of me, I can use my reaction to impose disadvantage on the attack roll. I must be wielding a shield to do this. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : FtngStyles.source\n\t\t\t},\n\t\t\t\"two-weapon fighting\" : {\n\t\t\t\tdescription : \"When I engage in two-weapon fighting, I can add my ability modifier to the damage of the second (off-hand) attack. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : FtngStyles.source\n\t\t\t},\n\t\t\t\"blind fighting\" : {\n\t\t\t\tdescription : \"I have blindsight with a range of 10 ft, wherein I can effectively see anything that isn't behind total cover, including invisible things, even if I'm blinded or in darkness. This doesn't allow me to see things hidden from me. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : [[\"T\", 41]]\n\t\t\t},\n\t\t\t\"interception\" : {\n\t\t\t\tdescription : \"As a reaction when a creature I can see hits a target, other than me, within 5 ft of me with an attack, I can reduce the damage the target takes by 1d10 + my proficiency bonus (min 0 damage). I must be wielding a shield or a simple or martial weapon to do this. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : [[\"T\", 41], [\"UA:CFV\", 12]]\n\t\t\t},\n\t\t\t\"thrown weapon fighting\" : {\n\t\t\t\tdescription : \"I can draw a weapon that has the thrown property as part of the attack I make with the weapon. In addition, when I hit with a ranged attack using a thrown weapon, I gain a +2 bonus to the damage roll. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : [[\"T\", 42]]\n\t\t\t},\n\t\t\t\"unarmed fighting\" : {\n\t\t\t\tdescription : \"My unarmed strikes deal 1d6 damage, or 1d8 if I'm not wielding any weapons or a shield. At the start of each of my turns, I can deal 1d4 bludgeoning damage to one creature grappled by me. I can replace this fighting style for another whenever I gain a level.\",\n\t\t\t\tsource : [[\"T\", 42]]\n\t\t\t}\n\t\t};\n\t\tFtngStyles.choices.forEach(function (sName) {\n\t\t\tvar sNameLC = sName.toLowerCase();\n\t\t\tif (!FtngStyles[sNameLC]) return;\n\t\t\tFeatsList[\"fighting initiate\"].choices.push(sName);\n\t\t\tif (!FeatsList[\"fighting initiate\"][sNameLC]) {\n\t\t\t\tFeatsList[\"fighting initiate\"][sNameLC] = {\n\t\t\t\t\tdescription : FtngStyles[sNameLC].description.replace(/^\\n   /i, '').replace(/\\n   /g, '. ') + \". I can replace this fighting style whenever I gain a level.\",\n\t\t\t\t\tsource : FtngStyles[sNameLC].source ? FtngStyles[sNameLC].source : FtngStyles.source\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Copy all attributes except name, source and description\n\t\t\tfor (var attr in FtngStyles[sNameLC]) {\n\t\t\t\tif ((/\\b(name|description|source)\\b/i).test(attr)) continue;\n\t\t\t\tFeatsList[\"fighting initiate\"][sNameLC][attr] = FtngStyles[sNameLC][attr];\n\t\t\t}\n\t\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prereqeval) {\n\t\t\t\tFeatsList[\"fighting initiate\"][sNameLC].prereqeval = function(v) {\n\t\t\t\t\tvar knownStyles = GetFightingStyleSelection();\n\t\t\t\t\treturn knownStyles[v.choice] ? false : true;\n\t\t\t\t};\n\t\t\t\tif (!FeatsList[\"fighting initiate\"][sNameLC].prerequisite) FeatsList[\"fighting initiate\"][sNameLC].prerequisite = sName + \" Fighting Style is not selected anywhere else.\"\n\t\t\t};\n\t\t});\n\t});\n\tFeatsList[\"gunner\"] = {\n\t\tname : \"Gunner\",\n\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\n\t\tdescriptionFull : \"You have a quick hand and keen eye when employing firearms, granting you the following benefits:\\n \\u2022 Increase your Dexterity score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with firearms (see \\\"Firearms\\\" in the Dungeon Master's Guide).\\n \\u2022 You ignore the loading property of firearms.\\n \\u2022 Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attack rolls.\",\n\t\tdescription : \"I gain proficiency with firearms. I ignore the loading property of firearms. I don't suffer disadvantage on ranged attack rolls for being within 5 ft of a hostile creature. [+1 Dexterity]\",\n\t\tscores : [0, 1, 0, 0, 0, 0],\n\t\tweaponProfs : [false, false, [\"Firearms\"]],\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif ((/firearm/i).test(v.theWea.type) || (/firearm/i).test(v.theWea.list)) {\n\t\t\t\t\t\tfields.Description = fields.Description.replace(/([;,]? ?loading|loading[;,]? ?)/i, '');\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\t\"I ignore the loading quality of firearms.\"\n\t\t\t]\n\t\t}\n\t};\n\tFeatsList[\"metamagic adept\"] = {\n\t\tname : \"Metamagic Adept\",\n\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\n\t\tdescriptionFull : \"You've learned how to exert your will on your spells to alter how they function. You gain the following benefits:\\n \\u2022 You learn two Metamagic options of your choice from the sorcerer class. You can use only one Metamagic option on a spell when you cast it, unless the option says otherwise. Whenever you gain a level, you can replace one of your Metamagic options with another one from the sorcerer class.\\n \\u2022 You gain 2 sorcery points to spend on Metamagic (these points are added to any sorcery points you have from another source but can be used only on Metamagic). You regain all spent sorcery points when you finish a long rest.\", // only slightly different than TCoE: allowed to switch option every level instead of only at ASI\n\t\tdescription : 'I learn two Metamagic options from the sorcerer class (2nd page \"Choose Feature\" button). I can use only one option on a spell unless it says otherwise. I gain 2 sorcery points, which I can only use for Metamagic. I regain all expended sorcery points when I finish a long rest. I can change one ' + (typePF ? '' : 'Metamagic option ') + 'whenever I gain a level.',\n\t\tbonusClassExtrachoices : [{\n\t\t\t\"class\" : \"sorcerer\",\n\t\t\tfeature : \"metamagic\",\n\t\t\tbonus : 2\n\t\t}],\n\t\textraLimitedFeatures : [{\n\t\t\tname : \"Sorcery Points\",\n\t\t\tusages : 2,\n\t\t\trecovery : \"long rest\",\n\t\t\taddToExisting : true\n\t\t}],\n\t\tprerequisite : \"Spellcasting or Pact Magic feature\",\n\t\tprereqeval : function (v) { return v.isSpellcastingClass; }\n\t};\n\tFeatsList[\"piercer\"] = {\n\t\tname : \"Piercer\",\n\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\n\t\tdescriptionFull : \"You have achieved a penetrating precision in combat, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals piercing damage, you can reroll one of the attack's damage dice, and you must use the new roll.\\n \\u2022 When you score a critical hit that deals piercing damage to a creature, you can roll one additional damage die when determining the extra piercing damage the target takes.\",\n\t\tdescription : \"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target I can roll one additional damage die. [+1 Strength or Dexterity]\",\n\t\tscorestxt : \"+1 Strength or Dexterity\",\n\t\tcalcChanges : {\n\t\t\tatkAdd : [\n\t\t\t\tfunction (fields, v) {\n\t\t\t\t\tif ((/pierc(\\.|ing)/i).test(fields.Damage_Type)) {\n\t\t\t\t\t\tvar extraCritRegex = /\\d+(d\\d+ extra on a crit(ical)?( hit)?( in melee)?)/i;\n\t\t\t\t\t\tv.extraCritM = (v.extraCritM ? v.extraCritM : 0) + 1;\n\t\t\t\t\t\tif (extraCritRegex.test(fields.Description)) {\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');\n\t\t\t\t\t\t} else if ((/d\\d/).test(fields.Damage_Die)) {\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\\d+).*/, '$1') + ' extra on a crit in melee';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!(/re-?roll (one|1)? ?damage/i).test(fields.Description)) {\n\t\t\t\t\t\t\tfields.Description += '; Once per turn, re-roll one damage die';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"Once per turn when I deal piercing damage to a target, I can reroll one of the damage die and use the new roll. If I deal piercing damage on a critical hit to a target, I can roll one additional damage die.\",\n\t\t\t\t900\n\t\t\t]\n\t\t}\n\t};\n\tFeatsList[\"poisoner\"] = {\n\t\tname : \"Poisoner\",\n\t\tsource : [[\"T\", 80], [\"UA:F2\", 2]],\n\t\tdescriptionFull : \"You can prepare and deliver deadly poisons, gaining the following benefits:\\n \\u2022 When you make a damage roll, you ignore resistance to poison damage.\\n \\u2022 You can coat a weapon in poison as a bonus action, instead of an action.\\n \\u2022 You gain proficiency with the poisoner's kit if you don't already have it. With one hour of work using a poisoner's kit and expending 50 gp worth of materials, you can create a number of doses of potent poison equal to your proficiency bonus. Once applied, the poison retains potency for 1 minute or until you hit with the weapon. When a weapon coated in this poison deals damage to a creature, that creature must succeed on a DC 14 Constitution saving throw or take 2d8 poison damage and become poisoned until the end of your next turn.\", // only slightly different than TCoE: not explicitly allowed to coat ammunition\n\t\tdescription : \"My poison damage rolls ignore poison resistance. As a bonus action, I can apply poison to a weapon. I can use a poisoner's kit and 50 gp to create my Proficiency Bonus doses of poison in 1 hour. Potent 1 min after applying. DC 14 Con save or 2d8 poison damage and poisoned until the end of my next turn.\",\n\t\ttoolProfs : [\"Poisoner's kit\"],\n\t\taction : [[\"bonus action\", \"Apply poison to weapon/ammo\"]]\n\t};\n\tFeatsList[\"slasher\"] = {\n\t\tname : \"Slasher\",\n\t\tsource : [[\"T\", 81], [\"UA:F2\", 3]],\n\t\tdescriptionFull : \"You've learned where to cut to have the greatest results, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn when you hit a creature with an attack that deals slashing damage, you can reduce the speed of the target by 10 feet until the start of your next turn.\\n \\u2022 When you score a critical hit that deals slashing damage to a creature, you grievously wound it. Until the start of your next turn, the target has disadvantage on all attack rolls.\",\n\t\tdescription : \"Once per turn when I deal slashing damage to a target, I can reduce its speed by 10 ft until the start of my next turn. When I score a critical hit that deals slashing damage to a creature, the grievous wound causes it to have disadvantage on all attack rolls until the start of my next turn. [+1 Strength or Dexterity]\",\n\t\tscorestxt : \"+1 Strength or Dexterity\"\n\t};\n} // dupl_end\nFeatsList[\"crusher-ua\"] = {\n\tname : \"Crusher\",\n\tsource : [[\"UA:F2\", 1]],\n\tdescriptionFull : \"You are practiced in the art of crushing your enemies, granting you the following benefits:\\n \\u2022 Increase your Strength or Dexterity by 1, to a maximum of 20.\\n \\u2022 Once per turn, when you hit a creature with an attack that deals bludgeoning damage, you can move it 5 feet to an unoccupied space, provided the target is no more than one size larger than you.\\n \\u2022 When you score a critical hit that deals bludgeoning damage to a creature, attack rolls against that creature are made with advantage until the end of your next turn.\",\n\tdescription : \"Once per turn, when I hit a creature no more than one size larger than me with an attack that deals bludgeoning damage, I can move it 5 ft to an unoccupied space. If I score a critical hit that deals bludgeoning damage, attacks against the creature hit gain advantage until the start of my next turn. [+1 \" + (typePF ? \"Str or Dex\" : \"Strength or Dexterity\") + \"]\",\n\tscorestxt : \"+1 Strength or Dexterity\"\n};\nFeatsList[\"practiced expert-ua\"] = {\n\tname : \"Practiced Expert\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You have honed your proficiency with particular skills or tools, gaining the following benefits:\\n \\u2022 Increase one ability score of your choice by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with one skill or tool of your choice.\\n \\u2022 Choose one of your skill or tool proficiencies. Your proficiency bonus is doubled for any ability check you make that uses the chosen proficiency.\",\n\tdescription : \"I gain proficiency in one skill or tool, and expertise in that same skill or tool, or another skill or tool I'm proficient with. [+1 to one ability score of my choice]\",\n\tskillstxt : \"Proficiency with one skill or tool, and\\n   Expertise with one skill or tool I'm proficient with\",\n\tscorestxt : \"+1 to one ability score of my choice\"\n};\nFeatsList[\"shadow touched-ua\"] = {\n\tname : \"Shadow Touched\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You learn how to bend shadows from your experience with the Shadowfell. You gain the following benefits:\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\\n \\u2022 You learn the darkness spell and one 1st-level spell of your choice. The 1st-level spell must be from the illusion or necromancy school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level. The spells' spellcasting ability is the ability increased by this feat.\",\n\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them if I have a spell slot to do so. My spellcasting ability is the ability I choose to increase when I gain this feat. [+1 Intelligence, Wisdom, or Charisma]\",\n\tspellcastingBonus : [{\n\t\tname : \"Darkness\",\n\t\tspells : [\"darkness\"],\n\t\tselection : [\"darkness\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}, {\n\t\tname : \"1st-level Illus/Necro spell\",\n\t\t'class' : \"any\",\n\t\tschool : [\"Illus\", \"Necro\"],\n\t\tlevel : [1, 1],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}],\n\tspellcastingAbility : 4,\n\tallowUpCasting : true,\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\t\"intelligence\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Intelligence is my spellcasting ability for these spells. [+1 Intelligence]\",\n\t\tspellcastingAbility : 4,\n\t\tscores : [0, 0, 0, 1, 0, 0]\n\t},\n\t\"wisdom\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Wisdom is my spellcasting ability for these spells. [+1 Wisdom]\",\n\t\tspellcastingAbility : 5,\n\t\tscores : [0, 0, 0, 0, 1, 0]\n\t},\n\t\"charisma\" : {\n\t\tdescription : \"I learn Darkness and one 1st level illusion or necromancy spell. I can cast each once per long rest at their lowest level without expending a spell slot, and can cast them by expending a spell slot as normal. Charisma is my spellcasting ability for these spells. [+1 Charisma]\",\n\t\tspellcastingAbility : 6,\n\t\tscores : [0, 0, 0, 0, 0, 1]\n\t}\n};\nFeatsList[\"shield training-ua\"] = {\n\tname : \"Shield Training\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You've trained in the effective use of shields. You gain the following benefits:\\n \\u2022 Increase your Strength, Dexterity, or Constitution score by 1, to a maximum of 20.\\n \\u2022 You gain proficiency with shields.\\n \\u2022 In combat, you can don or doff a shield as the free object interaction on your turn.\\n \\u2022 If you have the Spellcasting or Pact Magic feature, you can use a shield as a spellcasting focus.\",\n\tdescription : \"I gain proficiency with shields. I can don or doff a shield as the free object interaction on my turn. If I have the Spellcasting or Pact Magic feature, I can use my shield as a spellcasting focus. [+1 Strength, Dexterity, or Constitution]\",\n\tscorestxt : \"+1 Strength, Dexterity, or Constitution\",\n\tarmorProfs : [false, false, false, true]\n};\nFeatsList[\"tandem tactician-ua\"] = {\n\tname : \"Tandem Tactician\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"Your presence in a scrap tends to elevate your comrades. You gain the following benefits:\\n \\u2022 You can use the Help action as a bonus action.\\n \\u2022 When you use the Help action to aid an ally in attacking a creature, increase the range of the Help action by 10 feet. Additionally, you can help two allies targeting the same creature within range when you use the Help action this way.\",\n\tdescription : \"I can use the Help action as a bonus action. When I use the Help action to aid an ally in attacking a creature, the range of the Help action increases with 10 ft. I can help two allies targeting the same creature within range when I use the Help action this way.\",\n\taction : [[\"bonus action\", \"\"]]\n};\nFeatsList[\"tracker-ua\"] = {\n\tname : \"Tracker\",\n\tsource : [[\"UA:F2\", 3]],\n\tdescriptionFull : \"You have spent time hunting creatures and honed your skills, gaining the following benefits:\\n \\u2022 Increase your Wisdom score by 1, to a maximum of 20.\\n \\u2022 You learn the hunter's mark spell. You can cast it once without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have. Wisdom is your spellcasting ability for this spell.\\n \\u2022 You have advantage on Wisdom (Survival) checks to track creatures.\",\n\tdescription : \"I can cast Hunter's Mark once per long rest at its lowest level without expending a spell slot, and can cast it by expending a spell slot as normal. Wisdom is my spellcasting ability for this. I have advantage on Wisdom (Survival) checks to track creatures. [+1 Wisdom]\",\n\tscores : [0, 0, 0, 0, 1, 0],\n\tspellcastingBonus : [{\n\t\tname : \"1\\xD7/LR \\u0026 spell slot\",\n\t\tspellcastingAbility : 5,\n\t\tallowUpCasting : true,\n\t\tspells : [\"hunter's mark\"],\n\t\tselection : [\"hunter's mark\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}]\n};"
  },
  {
    "path": "WotC material/ua_20200805_Subclasses-Part-4.js",
    "content": "var iFileName = \"ua_20200805_Subclasses-Part-4.js\";\nRequiredSheetVersion(\"13.0.8\");\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 4 article to MPMB's Character Record Sheet\n// This file contains contributions by AelarTheElfRogue\n\n// Define the source\nSourceList[\"UA:SP4\"] = {\n\tname : \"Unearthed Arcana: Subclasses, Part 4\",\n\tabbreviation : \"UA:SP4\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_Subclasses04.pdf\",\n\tdate : \"2020/08/05\"\n};\n\nAddSubClass(\"bard\", \"college of spirits-ua\",{\n\tregExpSearch : /^(?=.*(college|bard|minstrel|troubadour|jongleur))(?=.*spirits?).*$/i,\n\tsubname : \"College of Spirits\",\n\tsubnameShort: \"Spirits\",\n\tsource : [[\"UA:SP4\", 1]],\n\tfeatures : {\n\t\t\"subclassfeature3\" : {\n\t\t\tname : \"Guiding Whispers\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"I learn the Guidance cantrip and can cast it with a range of 60 ft\"\n\t\t\t]),\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Guiding Whispers\",\n\t\t\t\tspells : [\"guidance\"],\n\t\t\t\tselection : [\"guidance\"],\n\t\t\t\tfirstCol : \"atwill\"\n\t\t\t}],\n\t\t\tspellChanges : {\n\t\t\t\t\"guidance\" : {\n\t\t\t\t\trange : \"60 ft\",\n\t\t\t\t\tchanges : \"I can cast Guidance with a range of 60 ft.\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"subclassfeature3.1\" : {\n\t\t\tname : \"Spiritual Focus\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : \" [only for bard spells]\" + desc([\n\t\t\t\t\"I can use a candle, crystal ball, skull, spirit board, or tarokka deck as a spellcasting focus\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature3.2\" : {\n\t\t\tname : \"Tales from Beyond\",\n\t\t\tsource : [[\"UA:SP4\", 1]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can expend a bardic inspiration die to roll on the Spirits' Tales table\",\n\t\t\t\t\"I retain the rolled tale in my mind until I bestow its effects or finish a short or long rest\",\n\t\t\t\t\"I can only retain one tale at a time; I need to hold a spiritual focus to roll on the table\",\n\t\t\t\t\"As an action, I can choose a creature I see in 30 ft or myself to bestow the tale's effect\",\n\t\t\t\t\"The tales use my spell save DC; See the Notes page for the Spirits' Tales table\"\n\t\t\t]),\n\t\t\taction : [[\"bonus action\", \" (roll on table)\"], [\"action\", \" (use effect)\"]],\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Spirits' Tales Table\",\n\t\t\t\tnote : desc([\n\t\t\t\t\t\"As a bonus action while I'm holding my spiritual focus, I can reach out to spirits who tell their tales through me. I expend one use of my Bardic Inspiration and roll on the table below using my Bardic Inspiration die to determine the tale. I retain the tale in mind until I bestow the tale's effect or finish a short or long rest.\",\n\t\t\t\t\t\"I can retain only one of these tales in mind at a time, and rolling on the table immediately ends the effect of the previous tale.\",\n\t\t\t\t\t\"As an action, I can choose myself or one creature I can see within 30 ft to be the target of the tale's effect. If the tale requires a saving throw, the DC equals my spell save DC.\",\n\t\t\t\t\t\"\\nRoll \" + (typePF ? \"\" : \" \") + \"Tale\"\n\t\t\t\t])+\n\t\t\t\tdesc([\n\t\t\t\t\t\"  1    Beast: I recite the tale of a clever animal. For 1 minute, the target has advantage on Wisdom (Perception) checks and advantage on attack rolls against a creature if another enemy is within 5 ft of it, and that enemy isn't incapacitated.\",\n\t\t\t\t\t\"  2    Warrior: I recount the story of a renowned duelist. Make a melee spell attack against the target as an attacking spectral warrior briefly appears in a unoccupied space within 5 ft of the target before vanishing. On a hit, the target takes force damage equal to two rolls of my Bardic Inspiration die + my Charisma modifier.\",\n\t\t\t\t\t\"  3    Friends: I recite the tale of friends who found each other in the afterlife. The target and another creature of its choice it can see within 5 ft of it regains hit points equal to a roll of my Bardic Inspiration die + my Charisma modifier.\",\n\t\t\t\t\t\"  4    Runaway: I tell the tale of an adventurer that could escape any confinement. The target can immediately use its reaction to teleport up to 30 ft to an unoccupied space it can see. When the target teleports, it can choose a number of creatures it can see within 30 ft of it up to my Charisma modifier (minimum of 1) to immediately use the same reaction.\",\n\t\t\t\t\t\"  5    Avenger: I recount the tale of an avenging knight. For 1 minute, whenever a creature the target can see within 30 ft of it is damaged by a creature, the target can use its reaction to deal force damage equal to a roll of my Bardic Inspiration die to the attacker.\",\n\t\t\t\t\t\"  6    Hero: I speak the tale of an epic hero. The target gains temporary hit points equal to a roll of my Bardic Inspiration die + my bard level. While it has these temporary hit points, the target's walking speed increases by 10 ft.\",\n\t\t\t\t\t\"  7    Fey: I recount the tale of a mischievous fey. The target must succeed on a Wisdom saving throw or become charmed by me until the end of its next turn. The charmed target must use its action to make a melee attack against a creature other than itself that I mentally choose. The target can act normally on its turn if I choose no other creature.\",\n\t\t\t\t\t\"  8    Dark Spirit: I speak a dreadful tale of a slayer in the dark. The target becomes invisible until the end of its next turn or until it hits a creature with an attack. If it hits a creature with an attack during this invisibility, that creature takes necrotic damage equal to a roll of my Bardic Inspiration die and is frightened of the target until the end of its next turn.\",\n\t\t\t\t\t\"  9    Giant: I speak of the deeds of a mighty giant. Each creature of the target's choice it can see within 30 ft of it must make a Strength saving throw, taking force damage equal to two rolls of my Bardic Inspiration die on a failed save and is knocked prone. A creature that succeeds on its saving throw takes half as much damage and isn't knocked prone.\",\n\t\t\t\t\t\" 10    Dragon: I breathe a poem of a wrathful dragon. The target magically spews fire from their mouth in a 30-ft cone. Each creature in that area must make a Dexterity saving throw, taking fire damage equal to three rolls of my Bardic Inspiration die on a failed save, or half as much damage on a successful one.\",\n\t\t\t\t\t\" 11    Celestial: I speak of the exalted deeds of a celestial. The target regains hit points equal to two rolls of my Bardic Inspiration die + my bard level, and I end one disease or a condition from the following list affecting the target: blinded, deafened, paralyzed, petrified, or poisoned.\",\n\t\t\t\t\t\" 12    Unknown: I utter an incomprehensible fable from a being beyond the stars. The target must succeed on an Intelligence saving throw or take psychic damage equal to three rolls of my Bardic Inspiration die, and the target is unable to speak any language for 1 minute.\"\n\t\t\t\t], \"\\n\")\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\tsource : [[\"UA:SP4\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\n\t\t\t]),\n\t\t\tcalcChanges : {\n\t\t\t\tatkAdd : [\n\t\t\t\t\tfunction (fields, v, output) {\n\t\t\t\t\t\tif (v.thisWeapon[3] && SpellsList[v.thisWeapon[3]] && v.thisWeapon[4].indexOf(\"bard\") !== -1) {\n\t\t\t\t\t\t\t// If RAW is selected, first test if this spell is eligible to use with a spellcasting focus\n\t\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\n\t\t\t\t\t\t\tvar spellObj = SpellsList[v.thisWeapon[3]];\n\t\t\t\t\t\t\tif (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components))) return;\n\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(/D/g, 'd');\n\t\t\t\t\t\t\tvar d6Regex = /(\\d+)d6/;\n\t\t\t\t\t\t\tif (fields.Damage_Die.indexOf('Bd6') != -1) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Bd6', 'Cd6');\n\t\t\t\t\t\t\t} else if (fields.Damage_Die.indexOf('Cd6') != -1) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace('Cd6', 'Qd6');\n\t\t\t\t\t\t\t} else if (d6Regex.test(fields.Damage_Die)) {\n\t\t\t\t\t\t\t\tfields.Damage_Die = fields.Damage_Die.replace(d6Regex, Number(fields.Damage_Die.replace(d6Regex, '$1')) + 1 + 'd6');\n\t\t\t\t\t\t\t} else if (v.thisWeapon[3] == \"eldritch blast\") {\n\t\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"One ray +1d6 dmg\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfields.Damage_Die += '+1d6';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\n\t\t\t\t],\n\t\t\t\tspellAdd : [\n\t\t\t\t\tfunction (spellKey, spellObj, spName) {\n\t\t\t\t\t\t// Do not process if a psionic, not a bard spell, or, if RAW is selected, not eligible to use with a spellcasting focus\n\t\t\t\t\t\tvar isRAW = GetFeatureChoice(\"classes\", \"bard\", \"subclassfeature6\") === \"raw: only +1d6 for spells with non-costly material components\";\n\t\t\t\t\t\tif (spellObj.psionic || spName !== \"bard\" || (isRAW && (!spellObj.components || !/\\bM\\b/.test(spellObj.components) || /M\\u0192|M\\u2020/.test(spellObj.components)))) return;\n\t\t\t\t\t\tif (genericSpellDmgEdit(spellKey, spellObj, \"\\\\w+\\\\.?\", \"1d6\", true, true) || genericSpellDmgEdit(spellKey, spellObj, \"heal\", \"1d6\", true, true)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'When I cast a bard spell, I can use my spiritual focus to add 1d6 to one damage roll or roll to restore hit points.\\n   Going by rules as written (RAW), the spiritual focus has to be used as a spellcasting focus for this bonus to be added. This means that it can only be used on spells with a non-costly material component. Most DMs will forgo this technicality and that is why this sheet will add the 1d6 to any damage/healing spell by default. You can enable to use the stricter rules as written with the \"Choose Feature\" button on the second page.'\n\t\t\t\t]\n\t\t\t},\n\t\t\tchoices : [\"RAW: only +1d6 for spells with non-costly material components\", \"Allow +1d6 for any bard spell\"],\n\t\t\t\"raw: only +1d6 for spells with non-costly material components\" : {\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"If I use a spiritual focus to cast a bard spell, I can add 1d6 to one damage or healing roll\"\n\t\t\t\t])\n\t\t\t},\n\t\t\t\"allow +1d6 for any bard spell\" : {\n\t\t\t\tname : \"Spiritual Focus: Improve spells\",\n\t\t\t\tdescription : desc([\n\t\t\t\t\t\"While holding a spiritual focus, I can add 1d6 to one damage or healing roll of bard spells\"\n\t\t\t\t])\n\t\t\t},\n\t\t\tdefaultChoice : \"allow +1d6 for any bard spell\"\n\t\t},\n\t\t\"subclassfeature6.1\" : {\n\t\t\tname : \"Spirit Session\",\n\t\t\tsource : [[\"UA:SP4\", 2]],\n\t\t\tminlevel : 6,\n\t\t\tdescription : desc([\n\t\t\t\t\"Using my spiritual focus, I can conduct a hour-long ritual to channel spirit during a rest\",\n\t\t\t\t\"The number of willing participants, me included, can be up to my Proficiency Bonus\",\n\t\t\t\t\"At the end, I learn a divination or necromancy spell of my choice until I start a long rest\",\n\t\t\t\t\"The spell can't be higher level than the number of participants and of a level I can cast\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Spirit Session\",\n\t\t\t\tschool : [\"Div\", \"Necro\"],\n\t\t\t\tfirstCol : \"SS\"\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Mystical Connection\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"I can roll a d6 instead of expending a bardic inspiration die when I do Tales from Beyond\",\n\t\t\t\t\"Even if I roll a d6, I still roll my bardic inspiration die for the effect, but not expend it\"\n\t\t\t])\n\t\t}\n\t}\n});\nAddSubClass(\"warlock\", \"the undead-ua\",{\n\tregExpSearch : /^(?=.*undead)(?=.*warlock).*$/i,\n\tsubname : \"the Undead\",\n\tsource : [[\"UA:SP4\", 1]],\n\tspellcastingExtra : [\"bane\", \"false life\", \"blindness/deafness\", \"phantasmal force\", \"phantom steed\", \"speak with dead\", \"death ward\", \"greater invisibility\", \"antilife shell\", \"cloudkill\"],\n\tfeatures : {\n\t\t\"subclassfeature1\" : {\n\t\t\tname : \"Form of Dread\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 1,\n\t\t\tdescription : desc([\n\t\t\t\t\"As a bonus action, I can transform for 1 minute and gain the following benefits:\",\n\t\t\t\t\" \\u2022 I gain temporary hit points equal to 1d10 + my warlock level\",\n\t\t\t\t\" \\u2022 I am immune to the frightened condition\",\n\t\t\t\t\" \\u2022 Once per turns when I hit an attack, I can force the target to make a Wis save\",\n\t\t\t\t\"   If the target fails this save, it is frightened of me until the end of my next turn\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn \"1d10+\" + n + \" temp HP\";\n\t\t\t}),\n\t\t\tusages : \"Prof Bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"bonus action\", \"\"]],\n\t\t\tsavetxt : { immune : [\"frightened (Form of Dread)\"] }\n\t\t},\n\t\t\"subclassfeature6\" : {\n\t\t\tname : \"Grave Touched\",\n\t\t\tsource : [[\"UA:SP4\", 3]],\n\t\t\tminlevel : 3,\n\t\t\tdescription : desc([\n\t\t\t\t\"I no longer need to eat, drink, or breathe\",\n\t\t\t\t\"When I damage a creature with an attack, I can change the damage type to necrotic\",\n\t\t\t\t\"While I'm in my Form of Dread, I can roll one extra damage die for this necrotic damage\"\n\t\t\t])\n\t\t},\n\t\t\"subclassfeature10\" : {\n\t\t\tname : \"Mortal Husk\",\n\t\t\tsource : [[\"UA:SP4\", 4]],\n\t\t\tminlevel : 10,\n\t\t\tdescription : desc([\n\t\t\t\t\"I have resistance to necrotic damage, or immunity while I'm in my Form of Dread\",\n\t\t\t\t\"When I'm reduced to 0 HP, I can cause my body to explode and I revive with 1 HP after\",\n\t\t\t\t\"Each creature of my choice within 30 ft takes 2d10 + my warlock level necrotic damage\",\n\t\t\t\t\"After this, I gain 1 level of exhaustion and must complete 1d4 long rests to do so again\"\n\t\t\t]),\n\t\t\tadditional : levels.map(function (n) {\n\t\t\t\treturn n < 10 ? \"\" : \"2d10+\" + n + \" damage, 1\\xD7 per 1d4 long rests\"\n\t\t\t}),\n\t\t\tdmgres : [[\"Necrotic\"]],\n\t\t\tsavetxt : { immune : [\"necrotic (Form of Dread)\"] },\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Mortal Husk (revive)\",\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"1d4 LR\"\n\t\t\t}]\n\t\t},\n\t\t\"subclassfeature14\" : {\n\t\t\tname : \"Spirit Projection\",\n\t\t\tsource : [[\"UA:SP4\", 4]],\n\t\t\tminlevel : 14,\n\t\t\tdescription : desc([\n\t\t\t\t\"As an action, I can project my spirit from my body, leaving it suspended and unconscious\",\n\t\t\t\t\"This lasts 1 hour or until my concentration is broken; Damage and effects affect both\",\n\t\t\t\t\"When it ends, I can have my spirit return to my body or my body teleport to my spirit\",\n\t\t\t\t\"My spirit has my abilities, but no gear; While projecting I gain the following benefits:\",\n\t\t\t\t\" \\u2022 My spirit and body gain resistance to bludgeoning, piercing, and slashing damage\",\n\t\t\t\t\" \\u2022 My conjuration/necromancy spells need no verbal, somatic, non-costly material comp.\",\n\t\t\t\t\" \\u2022 I gain a flying speed equal to my walking speed and can hover\",\n\t\t\t\t\" \\u2022 Move through creatures/objects as difficult terrain; 1d10 force damage if end turn in\",\n\t\t\t\t\" \\u2022 While in my Form of Dread, once per turns when I deal necrotic damage, I can heal\",\n\t\t\t\t\"   I regain hit points equal to half the amount of necrotic damage dealt\"\n\t\t\t]),\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\",\n\t\t\taction : [[\"action\", \"\"]]\n\t\t}\n\t}\n});\n"
  },
  {
    "path": "WotC material/ua_20201026_Subclasses-Part-5.js",
    "content": "var iFileName = \"ua_20201026_Subclasses-Part-5.js\";\r\nRequiredSheetVersion(\"14.0.0-beta\");\r\n// This file adds the content from the Unearthed Arcana 2020: Subclasses, Part 5 article to MPMB's Character Record Sheet\r\n// This file contains contributions by WondrousLittleWizard\r\n\r\n// Define the source\r\nSourceList[\"UA:SP5\"] = {\r\n\tname : \"Unearthed Arcana: Subclasses, Part 5\",\r\n\tabbreviation : \"UA:SP5\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2020/dnd/downloads/UA2020_102620_Subclasses05.pdf\",\r\n\tdate : \"2020/10/26\"\r\n};\r\n\r\nAddSubClass(\"monk\", \"ascendant dragon-ua\", {\r\n\tregExpSearch : /^(?=.*ascendant)(?=.*(dragon|draconic))((?=.*(monk|monastic))|((?=.*martial)(?=.*(artist|arts)))|((?=.*spiritual)(?=.*warrior))).*$/i,\r\n\tsubname : \"Way of the Ascendant Dragon\",\r\n\tsubnameShort: \"Ascendant Dragon\",\r\n\tsource : [[\"UA:SP5\", 1]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Disciple\",\r\n\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can change the damage type of my unarmed strikes to acid, cold, fire, lightning, poison\",\r\n\t\t\t\t\"As a reaction when I fail an Intimidation or Persuasion check, I can reroll the check\",\r\n\t\t\t\t\"If this turns it into a success, I can't do so again until I finish a long rest; I learn Draconic\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\taction : [[\"reaction\", \" (reroll check)\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"reroll\",\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName === \"unarmed strike\") {\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + \"Change type to acid/cold/fire/lightning/poison\";\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I damage a target with an unarmed strike, I can change the damage type to acid, cold, fire, lightning or poison.\"\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t\"breath of the dragon\" : {\r\n\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\textraname : \"Ascendant Dragon 3\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar iMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"When I take the Attack action on my turn, I can replace one attack with a breath weapon\",\r\n\t\t\t\t\t\t\"This deals \" + (n < 11 ? 2 : 3) + \"d\" + iMonkDie + \" acid, cold, fire, lightning, or poison (my choice) damage to all in the area\",\r\n\t\t\t\t\t\t\"The area can be a 20-ft cone or a 5-ft wide, 30-ft line; Dex save to halve the damage\",\r\n\t\t\t\t\t\t\"I can do this my Proficiency Bonus times per long rest, or by expending 1 ki point\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) return desc(aDesc);\r\n\t\t\t\t\tvar aDesc17 = [\r\n\t\t\t\t\t\t\"From 17th-level, the energy clings to those damaged by this, hurting them every turn\",\r\n\t\t\t\t\t\t\"At the start of each of their turns, they take 1d\" + iMonkDie + \" damage of the chosen type\",\r\n\t\t\t\t\t\t\"At the end of each of their turns, they can repeat the save to end this effect on themselves\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\treturn desc(aDesc.concat(aDesc17));\r\n\t\t\t\t}),\r\n\t\t\t\tusages : \"Prof B. per \",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"1 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 3 ? \"\" : (n < 11 ? 2 : 3) + \"d\" + (n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\tweaponOptions : [{\r\n\t\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*dragon).*$/i,\r\n\t\t\t\t\tname : \"Breath of the Dragon\",\r\n\t\t\t\t\tsource : [[\"UA:SP5\", 1]],\r\n\t\t\t\t\tability : 5,\r\n\t\t\t\t\ttype : \"Natural\",\r\n\t\t\t\t\tdamage : [2, 4, \"My choice\"],\r\n\t\t\t\t\trange : \"5-ft \\xD7 30-ft line\",\r\n\t\t\t\t\tdescription : \"All in area; Dex save for half damage; Alt: 20-ft cone; Type: acid/cold/fire/lightning/poison\",\r\n\t\t\t\t\tdc : true,\r\n\t\t\t\t\tmonkweapon : false,\r\n\t\t\t\t\tabilitytodamage : false,\r\n\t\t\t\t\tUA_WotAD_BreathWeapon : true,\r\n\t\t\t\t\tselectNow : true\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\tatkAdd : [\r\n\t\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\t\tif (classes.known.monk && classes.known.monk.level && v.theWea.UA_WotAD_BreathWeapon) {\r\n\t\t\t\t\t\t\t\tvar n = classes.known.monk.level;\r\n\t\t\t\t\t\t\t\tvar aMonkDie = n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : 10;;\r\n\t\t\t\t\t\t\t\tfields.Damage_Die = (n < 11 ? 2 : 3) + \"d\" + aMonkDie;\r\n\t\t\t\t\t\t\t\tif (n >= 17) fields.Description += (fields.Description ? '; ' : '') + 'Clings to targets';\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"My Breath of the Dragon deals damage equal to two rolls of my Martials Arts die. At 11th level, this increases to three rolls of my Martial Arts die. At 17th level, the energy clings to the target. At the start of each of a target's turns, it takes damage of the type the breath dealt equal to one roll of my Martial Arts die. At the end of its turn, the creature can repeat the save, ending the effect on itself on a success.\"\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{ extrachoice : \"breath of the dragon\" }]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Wings Unfurled\",\r\n\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tadditional: \"Prof B. / long rest or 1 ki\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use Step of the Wind, I can gain a flying speed equal to my walking speed\",\r\n\t\t\t\t\"I can do this Prof Bonus per long rest, or by using 2 ki points to use Step of the Wind\"\r\n\t\t\t]),\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Wings Unfurled\",\r\n\t\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\t\taltResource : \"1 ki\"\r\n\t\t\t}],\r\n\t\t\t\"aspect of the wyrm\" : {\r\n\t\t\t\tname : \"Aspect of the Wyrm\",\r\n\t\t\t\textraname : \"Ascendant Dragon 11\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\t\tvar aDesc = [\r\n\t\t\t\t\t\t\"As a bonus action, I can activate a 30 ft aura of draconic power that lasts for 1 minute\",\r\n\t\t\t\t\t\t\"I choose acid, cold, fire, lightning, or poison damage when I activate this aura\",\r\n\t\t\t\t\t\t\"From 17th-level, all creatures of my choosing in the aura take 4d10 damage of this type\",\r\n\t\t\t\t\t\t\"My allies in the aura and myself gain resistance to the chosen damage type\",\r\n\t\t\t\t\t\t\"When an attack hits one of us, the one hit can use their reaction to damage the attacker\",\r\n\t\t\t\t\t\t\"This damage is of the chosen damage type, equal to one roll of my martial arts\",\r\n\t\t\t\t\t\t\"I can activate this aura once per long rest, or by expending 4 ki points\"\r\n\t\t\t\t\t];\r\n\t\t\t\t\tif (n < 17) aDesc.splice(2,1);\r\n\t\t\t\t\treturn desc(aDesc);\r\n\t\t\t\t}),\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"4 ki\",\r\n\t\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\t\treturn n < 11 ? \"\" : \"1d\" + (n < 17 ? 8 : 10);\r\n\t\t\t\t}),\r\n\t\t\t\taction : [[\"bonus action\", \" (activate)\"], [\"reaction\", \" (if active)\"]]\r\n\t\t\t},\r\n\t\t\tautoSelectExtrachoices : [{\r\n\t\t\t\textrachoice : \"aspect of the wyrm\",\r\n\t\t\t\tminlevel : 11\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Ascendant Aspect\",\r\n\t\t\tsource : [[\"UA:SP5\", 2]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription: desc(\"I gain 30 ft blindsight and both Breath of the Dragon and Aspect of the Wyrm improve\"),\r\n\t\t\tvision : [[\"blindsight\", 30]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar UASP5_Ranger_Subclass_Drakewarden = AddSubClass(\"ranger\", \"drakewarden-ua\", {\r\n\tregExpSearch : /^(?=.*(drake|dragon|draconic))(?=.*(warden|ranger|trainer)).*$/i,\r\n\tsubname : \"Drakewarden\",\r\n\tsource : [[\"UA:SP5\", 2]],\r\n\tfullname : \"Drakewarden\",\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Draconic Gift\",\r\n\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I learn the Draconic language and the Thaumaturgy cantrip\"\r\n\t\t\t]),\r\n\t\t\tlanguageProfs : [\"Draconic\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Draconic Gift\",\r\n\t\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Drake Companion\",\r\n\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can summon my drake to an empty space within 30 ft that I can see\",\r\n\t\t\t\t'Select a \"Drake Companion\" on the companion page for its stats and rules',\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 1st-level or higher spell slot (SS 1+)\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 1+\",\r\n\t\t\taction : [[\"action\", \" (summon)\"], [\"bonus action\", \" (command)\"]],\r\n\t\t\tcreaturesAdd : [[\"Drake Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Drake Companion\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 3]],\r\n\t\t\t\tsize : 4,\r\n\t\t\t\ttype : \"Dragon\",\r\n\t\t\t\talignment : \"Unaligned\",\r\n\t\t\t\tac : \"14+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [3, 10],\r\n\t\t\t\thdLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tminlevelLinked : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tspeed : \"40 ft\",\r\n\t\t\t\tscores : [16, 12, 15, 8, 14, 8],\r\n\t\t\t\tsaves : [\"\", 3, \"\", \"\", 4, \"\"],\r\n\t\t\t\tdamage_immunities : \"the chosen Draconic Essence damage type\",\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 12,\r\n\t\t\t\tlanguages : \"Draconic\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Bite\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 6, \"piercing\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"Only 1d6 is piercing damage, the rest is of the chosen Draconic Essence damage type\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Warden\",\r\n\t\t\t\t\tdescription : \"The drake obeys the commands of its warden and shares its proficiency bonus. It takes its turn immediately after that of its warden, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its warden takes a bonus action to command it to take another action. If its warden is incapacitated, the drake can take any action, not just Dodge. The drake vanishes after a number of hours equal to its proficiency bonus, when it is reduced to 0 hit points, when its warden summons another drake, or when its warden dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Draconic Essence\",\r\n\t\t\t\t\tdescription : \"When the drake is summoned, choose a damage type: acid, cold, fire, lightning, or poison.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Infused Strikes\",\r\n\t\t\t\t\tdescription : \"As a reaction when another creature within 30 ft of the drake that it can see hits with a weapon attack, the drake can infuse the strike with its essence, causing the attack to deal an extra 1d6 damage of its chosen Draconic Essence damage type\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Bond of Fang and Scale (Drakewarden 7)\",\r\n\t\t\t\t\tminlevel : 7,\r\n\t\t\t\t\tdescription : \"When the drake is summoned, it gains either a 40 ft swimming speed and can breathe underwater, or a 40 ft flying speed and has wings. The drake's bite deals an extra 1d6 damage of its chosen Draconic Essence type.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"BlueText.Comp.Use.Attack.1.Damage Die\", mod : \"1d6\", text : \"The drake's bite attack deals an extra 1d6 damage of the type chosen for its Draconic Essence.\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly/swim 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"fly/swim 40 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Perfected Bond (Drakewarden 15)\",\r\n\t\t\t\t\tminlevel : 15,\r\n\t\t\t\t\tdescription : \"The drake's size is now Large and its bite attack deals an extra 1d6 damage (for a total of +2d6) of its chosen Draconic Essence type.\",\r\n\t\t\t\t\taddMod : [{ type : \"\", field : \"BlueText.Comp.Use.Attack.1.Damage Die\", mod : \"1d6\", text : \"The drake's bite attack deals another extra 1d6 damage (for a total of +2d6) of the type chosen for its Draconic Essence.\" }],\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 4); // Small\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.ranger && !classes.known.rangerua) return;\r\n\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\tvar rngrLvlM = 5 * rngrLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(5 + rngrLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 5 as a base\\n + 5 \\xD7 \" + rngrLvl + \" from five times its warden's ranger level (\" + rngrLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature7\" : {\r\n\t\t\tname : \"Bond of Fang and Scale\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 7,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I summon my drake I can choose for it to have 40 ft flying or swimming speed\",\r\n\t\t\t\t\"If I choose swimming, it also gains the ability to breathe underwater\",\r\n\t\t\t\t\"The drake's bite attack deals an extra 1d6 damage chosen by its Draconic Essense\",\r\n\t\t\t\t\"While it is summoned, I gain resistance to the damage type of its Draconic Essense\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [\"(See Drake)\"]\r\n\t\t},\r\n\t\t\"subclassfeature11\" : {\r\n\t\t\tname : \"Drake's Breath\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 11,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can cause my drake or myself to exhale a 30-ft cone breath weapon\",\r\n\t\t\t\t\"Its damage type is acid, cold, fire, lightning, or poison; Dex save to halve the damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\tadditional : levels.map(function (n) {\r\n\t\t\t\treturn n < 11 ? \"\" : (n < 15 ? 6 : 8) + \"d6 damage\";\r\n\t\t\t}),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tregExpSearch : /^(?=.*drake)(?=.*breath).*$/i,\r\n\t\t\t\tname : \"Drake's Breath\",\r\n\t\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\t\tability : 5,\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tdamage : [6, 6, \"My choice\"],\r\n\t\t\t\trange : \"30-ft cone\",\r\n\t\t\t\tdescription : \"Hits all in area; Dex save for half damage; Damage type: acid, cold, fire, lightning, or poison\",\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdc : true,\r\n\t\t\t\tuseSpellMod : [\"ranger\", \"rangerua\"],\r\n\t\t\t\tDrakewardenDrakeBreath : true,\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.theWea.DrakewardenDrakeBreath && (classes.known.rangerua || classes.known.ranger)) {\r\n\t\t\t\t\t\t\tvar rngrLvl = classes.known.ranger ? classes.known.ranger.level : classes.known.rangerua.level;\r\n\t\t\t\t\t\t\tfields.Damage_Die = (rngrLvl < 15 ? 6 : 8) + 'd6';\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\",\r\n\t\t\t\t\t1\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature15\" : {\r\n\t\t\tname : \"Perfected Bond\",\r\n\t\t\tsource : [[\"UA:SP5\", 4]],\r\n\t\t\tminlevel : 15,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My drake is now Large and its bite deals +1d6 damage chosen by its Draconic Essence\",\r\n\t\t\t\t\"As a reaction when the drake or I take damage while within 30 ft of each other,\",\r\n\t\t\t\t\"I can give myself or the drake resistance to that instance of damage\",\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\nif (ClassList.rangerua) {\r\n\tClassList.rangerua.subclasses[1].push(UASP5_Ranger_Subclass_Drakewarden);\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20210126_Gothic-Lineages.js",
    "content": "var iFileName = \"ua_20210126_Gothic-Lineages.js\";\nRequiredSheetVersion(\"14.0.1-beta\");\n// This file adds the content from the Unearthed Arcana 2021: Gothic Lineages article to MPMB's Character Record Sheet\n// This file contains contributions by Metacomet10, MarvinTheParanoidAndroid, and CountVladmir\n\nSourceList[\"UA:GL\"] = {\n\tname : \"Unearthed Arcana: Gothic Lineages\",\n\tabbreviation : \"UA:GL\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Ravenloft\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_GothicLineages.pdf\",\n\tdate : \"2021/01/26\"\n};\n\nRaceList[\"dhampir-ua\"] = {\n\tregExpSearch : /dhampir/i,\n\tname : \"Dhampir\",\n\tsource : [[\"UA:GL\", 2]],\n\tplural : \"Dhampirs\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 35, enc : 25 },\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tweaponOptions : [{\n\t\tregExpSearch : /^(?=.*vampiric)(?=.*bite).*$/i,\n\t\tname : \"Vampiric Bite\",\n\t\tsource : [[\"VRGtR\", 17]],\n\t\tability : 3,\n\t\ttype : \"Simple\",\n\t\tdamage : [1, 4, \"piercing\"],\n\t\trange : \"Melee\",\n\t\tdescription : \"Adv. while at or below half HP; Can empower myself on hit\",\n\t\tisAlwaysProf : true,\n\t\tabilitytodamage : true,\n\t\tmonkweapon : true,\n\t\tselectNow : true\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Vampiric Bite\",\n\t\tadditional : \"empower myself\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\n\t\trecovery : \"long rest\"\n\t}],\n\tscorestxt : \"+2 to one ability score, and +1 to a different score of my choice\",\n\ttrait : \"Dhampir\" + (typePF ? \"\\n \" : \"\\t\") +\n\t\"\\u2022 Type: My creature type is both Humanoid and Undead.\" +\n\t\"\\n \\u2022 Spider Climb: Climbing speed equal to walking speed. At 3rd level, I can move up, down, and across vertical surfaces and upside down along ceilings, while leaving my hands free.\" +\n\t\"\\n \\u2022 Vampiric Bite: Uses Constitution and has adv. on the attack roll if I'm at or below half HP. My Proficiency Bonus per long rest, when I hit a creature other than a construct or undead, I can empower myself. I either regain HP or gain a bonus on my next ability check or attack roll. The bonus is equal to the piercing damage dealt.\"\n};\nRaceList[\"hexblood-ua\"] = {\n\tregExpSearch : /hexblood/i,\n\tname : \"Hexblood\",\n\tsource : [[\"UA:GL\", 4]],\n\tplural : \"Hexbloods\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscorestxt : \"+2 to one ability score, and +1 to a different score of my choice\",\n\ttrait : \"Hexblood\" + (typePF ? \"\\n \" : \"\\t\") +\n\t\"\\u2022 Fey Resilience: I'm both Humanoid and Fey. I have adv. on saves vs. charms.\" +\n\t\"\\n \\u2022 Magic Token: As an action once per long rest, I can harmlessly remove a lock of my hair, one of my nails or teeth and imbue this token with magic until I finish a long rest. While the token is imbued in this way, I can telepathically speak to a creature holding it or see and hear around it. See the Notes page for more information.\" +\n\t\"\\n \\u2022 Hex Magic: I known Disguise Self and Hex. I can cast each spell once per long rest without using a spell slot, or by using a spell slot.\",\n\ttoNotesPage : [{\n\t\tname : \"Hexblood's Magic Token\",\n\t\tnote : [\"As an action, I can harmlessly pull out one of my nails, a tooth, or a lock of hair. This token is imbued with magic until I finish a long rest.\",\n\t\t\"While the token is imbued in this way, I can use an action to send a telepathic message to the creature holding or carrying the token, as long as I'm on the same plane of existence and are within 10 miles of it. The message can contain up to twenty-five words.\",\n\t\t\"In addition, while I'm within 10 miles of the token, I can use an action to enter a trance for 1 minute, during which I can see and hear from the token as if I was located where it is. While I'm using my senses at the token's location, I'm blinded and deafened in regard to my own surroundings. Afterward, the token is harmlessly destroyed.\",\n\t\t\"Once I create a token using this feature, I can't do so again until I finish a long rest, at which point my missing part regrows.\"]\n\t}],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\taction : [[\"action\", \"Magic Token\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Magic Token\",\n\t\tusages : 1,\n\t\trecovery : \"long rest\"\n\t}],\n\tspellcastingAbility : [4, 5, 6],\n\tfeatures : {\n\t\t\"hex magic\" : {\n\t\t\tname : \"Hex Magic\",\n\t\t\tminlevel : 1,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Hex Magic\",\n\t\t\t\tspells : [\"disguise self\", \"hex\"],\n\t\t\t\tselection : [\"disguise self\", \"hex\"],\n\t\t\t\tfirstCol : 'oncelr+markedbox',\n\t\t\t\ttimes : 2,\n\t\t\t\tallowUpCasting : true\n\t\t\t}],\n\t\t}\n\t}\n};\nRaceList[\"reborn-ua\"] = {\n\tregExpSearch : /reborn/i,\n\tname : \"Reborn\",\n\tsource : [[\"UA:GL\", 5]],\n\tplural : \"Reborns\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\ttrait : \"Reborn\" + (typePF ? \"\\n \" : \"  \") +\n\t\"\\u2022 Type: My creature type is Humanoid, as well as Construct or Undead (my choice).\" +\n\t\"\\n \\u2022 Deathless Nature: I don't need to sleep, eat, drink, or breathe. I have adv. on saves vs. disease, poison, and death saves. I have resistance to poison damage. Magic can't put me to sleep and I can finish a long rest in 4 hours if I spend it inactive and motionless.\" +\n\t\"\\n \\u2022 Knowledge from a Past Life: When I make an ability check that uses a skill, I can add +1d6 to the roll after seeing the d20 result. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"disease\", \"poison\", \"death saves\"],\n\t},\n\textraLimitedFeatures : [{\n\t\tname : \"Knowledge from a Past Life\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus')\",\n\t\trecovery : \"long rest\"\n\t}],\n\tuseFromPreviousRace : {\n\t\tmessage : \"If you replace a race with the Reborn lineage, you can keep the following elements of that race:\"+\n\t\tdesc([\"its size,\",\n\t\t\"any skill proficiencies you gained from it,\",\n\t\t\"any climbing, flying, or swimming speed you gained from it, and\",\n\t\t\"any languages it knows and gain no new languages.\"], \"\\n   \\u2022 \")+\n\t\t\"\\n\\nIf you don't keep any of those elements or you choose this lineage at character creation, you instead:\"+\n\t\tdesc([\"are size Medium or Small (your choice),\",\n\t\t\"gain proficiency in two skills of your choice, and\",\n\t\t\"can speak, read, and write Common and one other language that you and your DM agree is appropriate.\"], \"\\n   \\u2022 \"),\n\t\tdefaultTraits : {\n\t\t\tsize : [3, 4],\n\t\t\tskillstxt : \"Choose any two skills\"\n\t\t},\n\t\tgainTraits : [\"size\", \"age\", \"height\", \"weight\", \"heightMetric\", \"weightMetric\", \"languageProfs\", \"skillstxt\", \"skills\", \"speed.climb\", \"speed.fly\", \"speed.swim\"],\n\t\tupdateName : \"suffix\"\n\t}\n};\nAddRacialVariant(\"reborn-ua\", \"undead\", {\n\tregExpSearch : /undead/i,\n\tsource : [[\"UA:GL\", 5]],\n\ttrait : RaceList[\"reborn-ua\"].trait.replace(\"Humanoid, as well as Construct or Undead (my choice)\", \"both Humanoid and Undead\").replace(\"  \", \"\\t\")\n});\nAddRacialVariant(\"reborn-ua\", \"construct\", {\n\tregExpSearch : /construct/i,\n\tsource : [[\"UA:GL\", 5]],\n\ttrait : RaceList[\"reborn-ua\"].trait.replace(\"Humanoid, as well as Construct or Undead (my choice)\", \"both Humanoid and Construct\").replace(\"  \", \"\\t\")\n});\n"
  },
  {
    "path": "WotC material/ua_20210311_Folk-of-the-Feywild.js",
    "content": "var iFileName = \"ua_20210311_Folk-of-the-Feywild.js\";\nRequiredSheetVersion(\"13.0.8\");\n// This file adds the content from the Unearthed Arcana 2021: Folk of the Feywild article to MPMB's Character Record Sheet\n// This file contains contributions by CountVladmir and othercrow\n\nSourceList[\"UA:FotF\"] = {\n\tname : \"Unearthed Arcana: Folk of the Feywild\",\n\tabbreviation : \"UA:FotF\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_FeyFolk.pdf\",\n\tdate : \"2021/03/11\"\n};\n\nRaceList[\"fairy-ua\"] = {\n\tregExpSearch : /fairy/i,\n\tname : \"Fairy\",\n\tsource : [[\"UA:FotF\", 2]],\n\tplural : \"Fairies\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tfly : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Fairy Magic\",\n\t\tspells : [\"druidcraft\"],\n\t\tselection : [\"druidcraft\"],\n\t\tfirstCol : \"atwill\"\n\t}],\n\tfeatures : {\n\t\t\"fairy magic\" : {\n\t\t\tname : \"Fairy Magic\",\n\t\t\tminlevel : 1,\n\t\t\tspellcastingBonus : [{\n\t\t\t\tname : \"Fairy Magic\",\n\t\t\t\tspells : [\"faerie fire\"],\n\t\t\t\tselection : [\"faerie fire\"],\n\t\t\t\tfirstCol : 'oncelr',\n\t\t\t\tallowUpCasting : true\n\t\t\t}],\n\t\t\textraLimitedFeatures : [{\n\t\t\t\tname : \"Faerie Fire\",\n\t\t\t\tusages : 1,\n\t\t\t\trecovery : \"long rest\",\n\t\t\t\taltResource : \"SS 1+\"\n\t\t\t}]\n\t\t}\n\t},\n\ttrait : \"Fairy\"+\n\t\"\\n \\u2022 Fey: My creature type is fey, rather than humanoid.\"+\n\t\"\\n \\u2022 Fairy Flight: I have a magical flying speed equal to my walking speed and can hover.\"+\n\t\"\\n \\u2022 Fairy Magic: I know the Druidcraft and Faerie Fire spells, and can cast the latter without using a spell slot once per long rest, as well as using slots as normal.\"+\n\t\"\\n \\u2022 Fey Passage: I can squeeze through a space as narrow as 1 inch wide.\"\n};\n\nRaceList[\"feywild hobgoblin-ua\"] = {\n\tregExpSearch : /^(?=.*feywild)(?=.*hobgoblin).*$/i,\n\tname : \"Feywild hobgoblin\",\n\tsortname : \"Hobgoblin, Feywild\",\n\tsource : [[\"UA:FotF\", 2]],\n\tplural : \"Feywild hobgoblins\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tfeatures : {\n\t\t\"fey gift\" : {\n\t\t\tname : \"Fey Gift\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\taction : [[\"bonus action\", \" (Help action)\"]],\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"fortune from the many\" : {\n\t\t\tname : \"Fortune from the Many\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t},\n\t\t\"fey gift - additional effect\" : {\n\t\t\tname : \"Fey Gifts - Additional Effects\",\n\t\t\tminlevel : 3,\n\t\t\ttoNotesPage : [{\n\t\t\t\tname : \"Fey Gifts - Additional Effects\",\n\t\t\t\tpage3notes : true,\n\t\t\t\tnote : [\n\t\t\t\t\t\"Whenever I take the Help action, I can choose one of the following effects:\",\n\t\t\t\t\t\" \\u2022 Hospitality: The target and I each gain 1d6 + my Proficiency Bonus in temporary HP\",\n\t\t\t\t\t\" \\u2022 Passage: The target and I gain +10 ft walking speed until my next turn starts\",\n\t\t\t\t\t\" \\u2022 Spite: Enhances the first attack by the target or me that hits before my next turn starts\",\n\t\t\t\t\t\"   The creature hit has disadvantage on its next attack roll it makes within the next minute\"\n\t\t\t\t]\n\t\t\t}]\n\t\t}\n\t},\n\ttrait : \"Feywild hobgoblin\"+\n\t\"\\n \\u2022 Fey Gift: I can take the Help action as a bonus action my Proficiency Bonus per long rest.\"+\n\t\"\\n \\u2022 Fortune from the Many: When I miss an attack or fail an ability check or a save, I can gain a bonus to the roll equal to the number of allies I can see within 30 ft of me (max +5). I can do this a number of times per long rest equal to my Proficiency Bonus.\"+\n\t'\\n \\u2022 From 3rd-level onwards, whenever I take the Help action, I can choose to produce an additional effect: Hospitality, Passage, or Spite. See the 3rd page \"Notes\" section.'\n};\n\nRaceList[\"owlfolk-ua\"] = {\n\tregExpSearch : /owlfolk/i,\n\tname : \"Owlfolk\",\n\tsource : [[\"UA:FotF\", 3]],\n\tplural : \"Owlfolk\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tfly : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tskills : [\"Stealth\"],\n\tvision : [[\"Darkvision\", 90]],\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Magic Sight\",\n\t\tspells : [\"detect magic\"],\n\t\tselection : [\"detect magic\"]\n\t}],\n\taction : [[\"reaction\", \"Nimble Flight\"]],\n\ttrait : \"Owlfolk\"+\n\t\"\\n \\u2022 Magic Sight: I know the spell Detect Magic and can cast as a ritual or by using spell slots as normal.\"+\n\t\"\\n \\u2022 Nimble Flight: My wings give me a flying speed equal to my walking speed. As a reaction when I fall, I can make a Dexterity saving throw (DC 10) to stop falling and fly in place until the start of my next turn.\"+\n\t\"\\n \\u2022 Silent Feathers: I have proficiency in the Stealth skill.\"\n};\n\nRaceList[\"rabbitfolk-ua\"] = {\n\tregExpSearch : /rabbitfolk/i,\n\tname : \"Rabbitfolk\",\n\tsource : [[\"UA:FotF\", 3]],\n\tplural : \"Rabbitfolk\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t},\n\tskills : [\"Perception\"],\n\taddMod : [{ type : \"skill\", field : \"Init\", mod : \"Prof\", text : \"I can add my proficiency bonus to initiative rolls.\" }],\n\tlanguageProfs : [\"Common\", 1],\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\taction : [[\"reaction\", \"Lucky Footwork\"]],\n\ttrait : \"Rabbitfolk\"+\n\t\"\\n \\u2022 Hare-Trigger: I add my proficiency bonus to initiative rolls.\"+\n\t\"\\n \\u2022 Leporine Senses: I have proficiency in the Perception skill.\"+\n\t\"\\n \\u2022 Lucky Footwork: As a reaction when I fail a Dexterity saving throw, I can add +1d4 to the result, potentially making it a success.\"+\n\t\"\\n \\u2022 Rabbit Hop: Once during each of my turns when I walk at least 5 ft, I can hop an extra 1d12 ft without it costing any extra movement. I can only do this if my speed isn't 0.\"\n};\n"
  },
  {
    "path": "WotC material/ua_20210414_Draconic-Options.js",
    "content": "var iFileName = \"ua_20210414_Draconic-Options.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the content from the Unearthed Arcana 2021: Draconic Options article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:DO\"] = {\n\tname : \"Unearthed Arcana: Draconic Options\",\n\tabbreviation : \"UA:DO\",\n\tgroup : \"Unearthed Arcana\",\n\turl : \"https://media.wizards.com/2021/downloads/Unearthed-Arcana-2021-Draconic-Options.pdf\",\n\tdate : \"2021/04/14\"\n};\n\n// Draconic Races\nvar UADO_dragonborns_add = function () { // New dragonborn variants\n\tvar objDragonborns = {\n\t\tChromatic : {\n\t\t\tregExpSearch : /^(?=.*chromatic)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\tvariants : [[\"Black\", \"Acid\"], [\"Blue\", \"Lightning\"], [\"Green\", \"Poison\"], [\"Red\", \"Fire\"], [\"White\", \"Cold\"]],\n\t\t\tbreathWeaponShape : \"5-ft by 30-ft line\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 5-ft by 30-ft line, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest. The damage increases to 3d8 at 5th level, 4d8 at 11th level, and 5d8 at 17th level.\",\n\t\t\t\t\"Chromatic Warding: From 3rd level, I can protect myself using my draconic energies. As an action once per long rest, I can become immune to >>type<< damage for 10 minutes.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"chromatic warding\" : {\n\t\t\t\t\tname : \"Chromatic Warding\",\n\t\t\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\taction : [[\"action\", \"\"]]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tMetallic : {\n\t\t\tregExpSearch : /^(?=.*metallic)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 2]],\n\t\t\tvariants : [[\"Brass\", \"Fire\"], [\"Bronze\", \"Lightning\"], [\"Copper\", \"Acid\"], [\"Gold\", \"Fire\"], [\"Silver\", \"Cold\"]],\n\t\t\tbreathWeaponShape : \"15-ft cone\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest.\",\n\t\t\t\t\"Metallic Breath Weapon: At 3rd level I gain a second breath weapon once per long rest, that works just like the first. It doesn't deal damage, but I can choose one effect: Str save or pushed 20 ft and prone, or Con save or incapacitated until my next turn starts.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"metallic breath weapon\" : {\n\t\t\t\t\tname : \"Metallic Breath Weapon\",\n\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tweaponOptions : [{\n\t\t\t\t\t\tregExpSearch : /^(?=.*metallic)(?=.*breath)(?=.*weapon).*$/i,\n\t\t\t\t\t\tname : \"Metallic breath weapon\",\n\t\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\t\tability : 3,\n\t\t\t\t\t\ttype : 'Natural',\n\t\t\t\t\t\tdamage : ['Str save or', '', 'Con save'],\n\t\t\t\t\t\trange : \"15-ft cone\",\n\t\t\t\t\t\tdescription : \"Str save or pushed 20 ft and knocked prone -or- Con save or incapacitated until my next turn starts\",\n\t\t\t\t\t\tabilitytodamage : false,\n\t\t\t\t\t\tdc : true,\n\t\t\t\t\t\tselectNow : true\n\t\t\t\t\t}]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tGem : {\n\t\t\tregExpSearch : /^(?=.*gem)(?=.*dragonborn).*$/i,\n\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\tvariants : [[\"Amethyst\", \"Force\"], [\"Crystal\", \"Radiant\"], [\"Emerald\", \"Psychic\"], [\"Sapphire\", \"Thunder\"], [\"Topaz\", \"Necrotic\"]],\n\t\t\tbreathWeaponShape : \"15-ft cone\",\n\t\t\ttrait : desc([\n\t\t\t\t\">>TYPE<< Breath Weapon: When I take the Attack action, I can replace one attack with a breath weapon that deals 2d8 >>type<< damage to all in a 15-ft cone, Dex save halves (DC 8 + Con mod + Proficiency Bonus). I can do this my Proficiency Bonus per long rest.\",\n\t\t\t\t\"Psionic Mind: I can speak telepathically to \" + (typePF ? \"any creature I can see within 30 ft that understands a language but it can't respond.\" : \"a creature with a language I can see in 30 ft.\"),\n\t\t\t\t\"Gem Flight: From 3rd level, I can temporarily fly. As a bonus action once per long rest, I can gain a flying speed equal to my walking speed and can hover. This lasts for 1 minute.\"\n\t\t\t], \"\\n \\u2022 \"),\n\t\t\tfeatures : {\n\t\t\t\t\"gem flight\" : {\n\t\t\t\t\tname : \"Gem Flight\",\n\t\t\t\t\tsource : [[\"UA:DO\", 3]],\n\t\t\t\t\tminlevel : 3,\n\t\t\t\t\tusages : 1,\n\t\t\t\t\trecovery : \"long rest\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor (var sDrBrn in objDragonborns) {\n\t\tvar sDrBrnLC = sDrBrn.toLowerCase();\n\t\tvar oDrBrn = objDragonborns[sDrBrn];\n\t\tRaceList[sDrBrnLC + \" dragonborn-ua\"] = {\n\t\t\tregExpSearch : oDrBrn.regExpSearch,\n\t\t\tname : sDrBrn + \" Dragonborn\",\n\t\t\tsortname : \"Dragonborn, \" + sDrBrn,\n\t\t\tsource : oDrBrn.source,\n\t\t\tplural : sDrBrn + \" Dragonborn\",\n\t\t\tsize : 3,\n\t\t\tspeed : {\n\t\t\t\twalk : { spd : 30, enc : 20 }\n\t\t\t},\n\t\t\tlanguageProfs : [\"Common\", 1],\n\t\t\tweaponOptions : [{\n\t\t\t\tregExpSearch : /^(?=.*breath)(?=.*weapon).*$/i,\n\t\t\t\tname : \"Breath weapon\",\n\t\t\t\tsource : oDrBrn.source,\n\t\t\t\tability : 3,\n\t\t\t\ttype : 'Natural',\n\t\t\t\tdamage : ['Q', 8, 'fire'],\n\t\t\t\trange : oDrBrn.breathWeaponShape.replace('by', '\\xD7'),\n\t\t\t\tdescription : \"Hits all in area; Dex save, success - half damage\",\n\t\t\t\tabilitytodamage : false,\n\t\t\t\tdc : true,\n\t\t\t\tdbBreathWeapon : true,\n\t\t\t\tselectNow : true\n\t\t\t}],\n\t\t\tage : \" reach adulthood by 15 and live around 80 years\",\n\t\t\theight : \" stand well over 6 feet tall (5'6\\\" + 2d8\\\")\",\n\t\t\tweight : \" weigh around 240 lb (175 + 2d8 \\xD7 2d6 lb)\",\n\t\t\theightMetric : \" stand well over 1,8 metres tall (170 + 5d8 cm)\",\n\t\t\tweightMetric : \" weigh around 110 kg (80 + 5d8 \\xD7 4d6 / 10 kg)\",\n\t\t\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\t\t\ttrait : sDrBrn + \" Dragonborn\"+\n\t\t\t\t\"\\n \\u2022 \" + sDrBrn + ' Ancestry: Choose a type of dragon using the \"Racial Options\" button. The damage type of my resistance and my breath weapon are determined by the dragon type chosen.'+\n\t\t\t\t+ oDrBrn.trait.replace(/>>type<< /ig, \"\"),\n\t\t\tfeatures : {\n\t\t\t\t\"breath weapon\" : {\n\t\t\t\t\tname : \"Breath Weapon\",\n\t\t\t\t\tminlevel : 1,\n\t\t\t\t\tusages : \"Proficiency bonus per \",\n\t\t\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\t\t\trecovery : \"long rest\",\n\t\t\t\t\tadditional : levels.map(function (n) {\n\t\t\t\t\t\treturn (n < 5 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + 'd8';\n\t\t\t\t\t}),\n\t\t\t\t\tcalcChanges : {\n\t\t\t\t\t\tatkAdd : [\n\t\t\t\t\t\t\tfunction (fields, v) {\n\t\t\t\t\t\t\t\tif (v.theWea.dbBreathWeapon && (/dragonborn/i).test(CurrentRace.known) && CurrentRace.variant) {\n\t\t\t\t\t\t\t\t\tfields.Damage_Type = CurrentRace.dmgres[0];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tvariants : []\n\t\t};\n\t\tif (oDrBrn.features) {\n\t\t\tfor (var sFea in oDrBrn.features) {\n\t\t\t\tRaceList[sDrBrnLC + \" dragonborn-ua\"].features[sFea] = oDrBrn.features[sFea];\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0; i < oDrBrn.variants.length; i++) {\n\t\t\tvar sDrBrnVar = oDrBrn.variants[i][0];\n\t\t\tvar sDrBrnDmg = oDrBrn.variants[i][1];\n\t\t\tAddRacialVariant(sDrBrnLC + \" dragonborn-ua\", sDrBrnVar.toLowerCase(), {\n\t\t\t\tregExpSearch : RegExp(sDrBrnVar, \"i\"),\n\t\t\t\tname : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\",\n\t\t\t\ttrait : sDrBrnVar + \" \" + sDrBrnLC + \" dragonborn\"+\n\t\t\t\t\toDrBrn.trait.replace(/>>TYPE<</g, sDrBrnDmg).replace(/>>type<</g, sDrBrnDmg.toLowerCase()),\n\t\t\t\tdmgres : [sDrBrnDmg]\n\t\t\t});\n\t\t}\n\t}\n}();\nRaceList[\"draconic kobold-ua\"] = {\n\tregExpSearch : /^(?=.*draconic)(?=.*kobold).*$/i,\n\tname : \"Draconic kobold\",\n\tsortname : \"Kobold, Draconic\",\n\tsource : [[\"UA:DO\", 4]],\n\tplural : \"Draconic kobolds\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tage : \" reach adulthood at age 6 and can live up to 120 years, but rarely do so\",\n\theight : \" are between 2 and 3 feet tall (2'1\\\" + 2d4\\\")\",\n\tweight : \" weigh between 25 and 35 lb (25 + 2d4 \\xD7 1 lb)\",\n\theightMetric : \" are between 65 and 90 cm tall (63 + 5d4 cm)\",\n\tweightMetric : \" weigh between 10 and 15 kg (11 + 5d4 \\xD7 2 / 10 kg)\",\n\tscorestxt : \"+2 to one ability score and +1 to a different score of my choice, -or- +1 to three different scores of my choice\",\n\tfeatures : {\n\t\t\"draconic roar\" : {\n\t\t\tname : \"Draconic Roar\",\n\t\t\tminlevel : 1,\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\taction : [[\"bonus action\", \"\"]],\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t}\n\t},\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy: Choose one of the following with the \"Racial Options\" button: (1) Brave: advantage on saves vs. being frightened, (2) Cantrip: I know one sorcerer cantrip of my choice, or (3) Tail: I can use my tail that deals 1d6 damage to make unarmed strikes.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n};\nAddRacialVariant(\"draconic kobold-ua\", \"brave\", {\n\tregExpSearch : /brave/i,\n\tname : \"Draconic Kobold-Brave\",\n\tsource : [[\"UA:DO\", 4]],\n\tplural : \"Draconic Kobolds\",\n\tsavetxt : { adv_vs : [\"frightened\"] },\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Brave): I have advantage on saving throws to avoid or end the frightened condition on myself.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\nAddRacialVariant(\"draconic kobold-ua\", \"cantrip\", {\n\tregExpSearch : /cantrip/i,\n\tsource : [[\"UA:DO\", 4]],\n\tspellcastingAbility : [4, 5, 6],\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Draconic Legacy\",\n\t\t\"class\" : \"sorcerer\",\n\t\tlevel : [0, 0],\n\t\tfirstCol : 'atwill'\n\t}],\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Cantrip). I know one cantrip from the sorcerer spell list. Intelligence, Wisdom, or Charisma is my spellcasting ability for it (chosen when I select this race).'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\nAddRacialVariant(\"draconic kobold-ua\", \"tail\", {\n\tregExpSearch : /tail/i,\n\tsource : [[\"UA:DO\", 4]],\n\tweaponOptions : [{\n\t\tbaseWeapon : \"unarmed strike\",\n\t\tregExpSearch : /^(?=.*draconic)(?=.*tail).*$/i,\n\t\tname : \"Draconic Tail\",\n\t\tsource : [[\"UA:DO\", 4]],\n\t\tdamage : [1, 6, \"bludgeoning\"],\n\t\tselectNow : true\n\t}],\n\ttrait : \"Draconic Kobold\"+\n\t'\\n \\u2022 Draconic Legacy (Tail): I can make unarmed strikes with my tail. The tail deals 1d6 + my Strength modifier bludgeoning damage.'+\n\t\"\\n \\u2022 Draconic Roar: As a bonus action, I can let out a draconic roar at enemies within 10 ft. Until the end of my next turn, my allies and I have advantage on attack rolls against any enemies who could hear the roar. I can do this my Proficiency Bonus per long rest.\"\n});\n\n// [dupl_start] Draconic Feats and Spell (that were virtually unchanged in Fizban's Treasury of Dragons)\nif (!SourceList.FToD) {\n\tFeatsList[\"gift of the chromatic dragon\"] = {\n\t\tname : \"Gift of the Chromatic Dragon\",\n\t\tsource : [[\"FToD\", 17], [\"UA:DO\", 4]],\n\t\tdescriptionFull : \"You've manifested some of the power of chromatic dragons, granting you the following benefits:\"+\n\t\t\"\\n \\u2022 As a bonus action, you can touch a simple or martial weapon and infuse it with one of the following damage types: acid, cold, fire, lightning, or poison. For the next minute, the weapon deals an extra 1d4 damage of the chosen type when it hits. After you use this ability, you can't do so again until you finish a long rest.\"+\n\t\t\"\\n \\u2022 When you take acid, cold, fire, lightning, or poison damage, you can use your reaction to give yourself resistance to that instance of damage. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\t\tdescription : \"As a bonus action once per long rest, I can touch a simple or martial weapon and infuse it to deal +1d4 acid, cold, fire, poison, or lightning damage for 1 minute. As a reaction when I take acid, cold, fire, lightning, or poison damage, I can gain resistance to that damage instance. I can do this my Prof Bonus per long rest.\",\n\t\taction : [\n\t\t\t[\"bonus action\", \"Chromatic Gift (Infuse Weapon)\"],\n\t\t\t[\"reaction\", \"Chromatic Gift (Resistance)\"]\n\t\t],\n\t\textraLimitedFeatures : [{\n\t\t\tname : \"Chromatic Gift (Infuse Weapon)\",\n\t\t\tusages : 1,\n\t\t\trecovery : \"long rest\"\n\t\t}, {\n\t\t\tname : \"Chromatic Gift (Resistance)\",\n\t\t\tusages : \"Proficiency bonus per \",\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\t\trecovery : \"long rest\"\n\t\t}]\n\t};\n\tFeatsList[\"gift of the gem dragon\"] = {\n\t\tname : \"Gift of the Gem Dragon\",\n\t\tsource : [[\"FToD\", 17], [\"UA:DO\", 5]],\n\t\tdescriptionFull : \"You've manifested some of the power of gem dragons, granting you the following benefits:\"+\n\t\t\"\\n \\u2022 Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\n\t\t\"\\n \\u2022 When you take damage from a creature that is within 10 feet of you, you can use your reaction to emanate telekinetic energy. The creature that dealt damage to you must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat) or take 2d8 force damage and be pushed 10 feet away from you. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\t\tdescription : \"As a reaction when I take damage from a creature that is within 10 ft, I can have it make a Str save (DC 8 + Prof Bonus + chosen ability score modifier) or take 2d8 force damage and be pushed 10 ft away. I can do this my Prof Bonus per long rest. [+1 Int, Wis or Cha]\",\n\t\taction : [[\"reaction\", \"\"]],\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\",\n\t\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\n\t\t\"intelligence\" : {\n\t\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or take 2d8 force damage and be pushed 10 ft away from me. I can do this my Prof Bonus per long rest. [+1 Intelligence]';\",\n\t\t\tscores : [0, 0, 0, 1, 0, 0]\n\t\t},\n\t\t\"wisdom\" : {\n\t\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or take 2d8 force damage and be pushed 10 ft away from me. I can do this my Prof Bonus per long rest. [+1 Wisdom]';\",\n\t\t\tscores : [0, 0, 0, 0, 1, 0]\n\t\t},\n\t\t\"charisma\" : {\n\t\t\tcalculate : \"event.value = 'As a reaction when I take damage from a creature that is within 10 ft of me, I can have it make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or take 2d8 force damage and be pushed 10 ft away from me. I can do this my Prof Bonus per long rest. [+1 Charisma]';\",\n\t\t\tscores : [0, 0, 0, 0, 0, 1]\n\t\t}\n\t};\n\tSpellsList[\"flame stride-ua\"] = { // contains contributions by Nod_Hero (Ashardalon's Stride in FToD)\n\t\tname : \"Flame Stride\",\n\t\tclasses : [\"artificer\", \"ranger\", \"sorcerer\", \"wizard\"],\n\t\tsource : [[\"FToD\", 19], [\"UA:DO\", 6]],\n\t\tlevel : 3,\n\t\tschool : \"Trans\",\n\t\ttime : \"1 bns\",\n\t\trange : \"Self\",\n\t\tcomponents : \"V,S\",\n\t\tduration : \"Conc, 1 min\",\n\t\tdescription : \"+20+5/SL ft speed; provoke no opp atks for moving; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\n\t\tdescriptionShorter : \"+20+5/SL ft spd; no opp atks with move; all crea/obj in 5 ft of path 1d6+1d6/SL Fire dmg\",\n\t\tdescriptionMetric : \"+6+1,5/SL m spd; provoke no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\n\t\tdescriptionShorterMetric : \"+6+1,5/SL m spd; no opp atks in move; all crea/obj in 1,5 m of path 1d6+1d6/SL Fire dmg\",\n\t\tdescriptionFull : \"The billowing flames of a dragon cover your feet, granting you explosive speed. For the duration, your speed increases by 20 feet and moving doesn't provoke opportunity attacks.\"+\n\t\t\"\\n   When you move within 5 feet of a creature or object that isn't being worn or carried, it takes 1d6 fire damage from your trail of heat. A creature or object can take this damage only once during a turn.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, increase your speed by 5 feet for each spell slot level above 3rd. Additionally, the spell deals an additional 1d6 fire damage for each slot level above 3rd.\"\n\t};\n\tSpellsList[\"nathair's mischief\"] = {\n\t\tname : \"Nathair's Mischief\",\n\t\tnameAlt : \"Mischief\",\n\t\tclasses : [\"bard\", \"sorcerer\", \"wizard\"],\n\t\tsource : [[\"FToD\", 20], [\"UA:DO\", 6]],\n\t\tlevel : 2,\n\t\tschool : \"Illus\",\n\t\ttime : \"1 a\",\n\t\trange : \"60 ft\",\n\t\tcomponents : \"S,M\",\n\t\tcompMaterial : \"A piece of crust from an apple pie\",\n\t\tduration : \"Conc, 1 min\",\n\t\tsave : \"Var\",\n\t\tdescription : \"20-ft cube of magic, roll d4 for effect; At start of my turn, move cube 10 ft and reroll effect; see book\",\n\t\tdescriptionFull : \"You fill a 20-foot cube centered on a point you choose within range with fey and draconic magic. Roll on the Mischievous Surge table to determine the magical effect produced. At the start of each of your turns, you can move the cube up to 10 feet and reroll on the table.\"+\n\t\t\"\\n\\nMischievous Surge\"+\n\t\ttoUni(\"\\nd4\\tEffect\")+\n\t\t\"\\n  1\\tThe smell of apple pie fills the air, and each creature in the cube must succeed on a Wisdom saving throw or become charmed by you until the start of your next turn.\"+\n\t\t\"\\n  2\\tBouquets of flowers appear all around, and each creature in the cube must succeed on a Dexterity saving throw or be blinded until the start of your next turn as the flowers spray water in their faces.\"+\n\t\t\"\\n  3\\tEach creature in the cube must succeed on a Wisdom saving throw or begin giggling until the start of your next turn. A giggling creature is incapacitated and uses all its movement to move in a random direction.\"+\n\t\t\"\\n  4\\tDrops of molasses appear and hover in the cube, turning it into difficult terrain until the start of your next turn.\"\n\t};\n\tSpellsList[\"summon draconic spirit\"] = {\n\t\tname : \"Summon Draconic Spirit\",\n\t\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\n\t\tsource : [[\"FToD\", 21], [\"UA:DO\", 7]],\n\t\tlevel : 5,\n\t\tschool : \"Conj\",\n\t\ttime : \"1 a\",\n\t\trange : \"60 ft\",\n\t\tcomponents : \"V,S,M\\u0192\",\n\t\tcompMaterial : \"An art object from a dragon's hoard, worth at least 500 gp\",\n\t\tduration : \"Conc, 1 min\",\n\t\tdescription : \"Summon choice of Draconic Spirit; obeys commands; takes turn after mine; vanishes at 0 hp (500gp)\",\n\t\tdescriptionFull : \"You call forth a draconic spirit. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Draconic Spirit stat block. When you cast this spell, choose a family of dragon: Chromatic, Gem, or Metallic. The creature resembles a dragon of the chosen family, which determines certain traits in its stat block. The creature disappears when it drops to 0 hit points or when the spell ends.\"+\n\t\t\"\\n   The creature is an ally to you and your companions. In combat, the creature shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 6th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\n\t};\n\tSpellsList[\"icingdeath's frost-ua\"] = { // Rime's Binding Ice in FToD\n\t\tname : \"Icingdeath's Frost\",\n\t\tnameAlt : \"Binding Ice\",\n\t\tclasses : [\"sorcerer\", \"wizard\"],\n\t\tsource : [[\"FToD\", 21], [\"UA:DO\", 6]],\n\t\tlevel : 2,\n\t\tschool : \"Evoc\",\n\t\ttime : \"1 a\",\n\t\trange : \"S:15\" + (typePF ? \"-\" : \"\") + \"ft cone\",\n\t\tcomponents : \"S,M\",\n\t\tcompMaterial : \"A vial of meltwater\",\n\t\tduration : \"Instantaneous\",\n\t\tsave : \"Con\",\n\t\tdescription : \"All in area 3d8+1d8/SL Cold dmg and speed 0 for 1 min until 1 a to undo; save halves, normal speed\",\n\t\tdescriptionShorter : \"All in area 3d8+1d8/SL Cold dmg \\u0026 spd 0 for 1 min until 1 a to undo; save halves, normal spd\",\n\t\tdescriptionFull : \"A burst of icy cold energy emanates from you in a 30-foot cone. Each creature in that area must make a Constitution saving throw. On a failed save, a creature takes 3d8 cold damage and is covered in ice for 1 minute or until a creature uses its action to break the ice off itself or another creature. A creature covered in ice has its speed reduced to 0. On a successful save, a creature takes half as much damage with no additional effects.\"+\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 3rd level or higher, increase the cold damage by 1d8 for each slot level above 2nd.\"\n\t};\n} // dupl_end\n\n// Draconic Feats\nFeatsList[\"gift of the metallic dragon-ua\"] = {\n\tname : \"Gift of the Metallic Dragon\",\n\tsource : [[\"UA:DO\", 4]],\n\tdescriptionFull : \"You've manifested some of the power of metallic dragons, granting you the following benefits:\"+\n\t\"\\n \\u2022 You learn the cure wounds spell. You can cast this spell without expending a spell slot. Once you cast this spell in this way, you can't do so again until you finish a long rest. You can also cast this spell using spell slots you have. The spell's spellcasting ability is Intelligence, Wisdom, or Charisma when you cast it with this feat (choose when you gain the feat).\"+\n\t\"\\n \\u2022 You can manifest protective wings that can shield you or others from attacks. When you or another creature you can see within 5 feet of you is hit by an attack roll, you can use your reaction to manifest spectral wings from your back for a moment. Roll a d4 and grant a bonus to the target's AC equal to the number rolled against that attack roll, potentially causing it to miss. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\n\tdescription : \"I know Cure Wounds. I can cast it using spell slots and once per long rest without a spell slot. As a reaction when I or another I can see within 5 ft is hit by an attack, I can add a d4 to AC, potentially causing the attack to miss. I can do this my Prof Bonus per long rest.\",\n\tspellcastingAbility : [4, 5, 6],\n\tallowUpCasting : true,\n\tspellcastingBonus : [{\n\t\tname : \"Cure Wounds\",\n\t\tspells : [\"cure wounds\"],\n\t\tselection : [\"cure wounds\"],\n\t\tfirstCol : \"oncelr+markedbox\"\n\t}],\n\taction : [[\"reaction\", \"Metallic Gift (Spectral Wings)\"]],\n\textraLimitedFeatures : [{\n\t\tname : \"Metallic Gift (Spectral Wings)\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}]\n};\n\n// Draconic Spells\nSpellsList[\"draconic transformation-ua\"] = {\n\tname : \"Draconic Transformation\",\n\tclasses : [\"druid\", \"sorcerer\", \"wizard\"],\n\tsource : [[\"UA:DO\", 5]],\n\tlevel : 7,\n\tschool : \"Trans\",\n\ttime : \"1 bns\",\n\trange : \"Self\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A statuette of a dragon, worth at least 500 gp\",\n\tduration : \"Conc, 1 min\",\n\tsave : \"Dex\",\n\tdescription : \"Blindsight 30 ft; 40 ft fly speed; at cast and 1 bns: 30-ft cone all 3d8 Force damage, save half (500gp)\",\n\tdescriptionShorter : \"Blindsight 30 ft; 40 ft fly; at cast and 1 bns: 30-ft cone all 3d8 Force dmg, save half (500gp)\",\n\tdescriptionFull : \"With a roar, you draw on the magic of dragons to transform yourself, taking on various draconic features. You gain the following benefits until the spell ends:\"+\n\t\"\\n \\u2022 You have blindsight with a range of 30 feet. Within that range, you can effectively see anything that isn't behind total cover, even if you're blinded or in darkness. Moreover, you can see an invisible creature, unless the creature successfully hides from you.\"+\n\t\"\\n \\u2022 Incorporeal wings sprout from your back, giving you a flying speed of 40 feet.\"+\n\t\"\\n \\u2022 When you cast this spell, and as a bonus action on subsequent turns for the duration, you can exhale a breath of shimmering energy in a 30-foot cone. Each creature in the area must make a Dexterity saving throw, taking 3d8 force damage on a failed save or half as much damage on a successful one.\"\n};\nSpellsList[\"fizban's platinum shield-ua\"] = {\n\tname : \"Fizban's Platinum Shield\",\n\tnameAlt : \"Platinum Shield\",\n\tclasses : [\"sorcerer\", \"wizard\"],\n\tsource : [[\"UA:DO\", 5]],\n\tlevel : 6,\n\tschool : \"Abjur\",\n\ttime : \"1 a\",\n\trange : \"60 ft\",\n\tcomponents : \"V,S,M\\u0192\",\n\tcompMaterial : \"A platinum-plated dragon scale, worth at least 500 gp\",\n\tduration : \"Conc, 1 min\",\n\tdescription : \"1 crea Acid, Cold, Fire, Lightn. \\u0026 Poison resist., half cover, better Dex saves; 1 bns change crea (500gp)\",\n\tdescriptionFull : \"You create a field of silvery light that surrounds a creature of your choice within range (you can choose yourself). The field sheds dim light out to 5 feet.\"+\n\t\"\\n   As a bonus action on subsequent turns, you can move the field to another creature within 60 feet of the field.\"+\n\t\"\\n   The creature protected by the field gains the following benefits:\"+\n\t\"\\n \\u2022 The creature has half cover.\"+\n\t\"\\n \\u2022 The creature has resistance to acid, cold, fire, lightning, and poison damage.\"+\n\t\"\\n \\u2022 If the creature is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, the creature instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.\"\n};\nSpellsList[\"raulothim's psychic lance-ua\"] = {\n\tname : \"Raulothim's Psychic Lance\",\n\tnameAlt : \"Psychic Lance\",\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\n\tsource : [[\"UA:DO\", 6]],\n\tlevel : 4,\n\tschool : \"Ench\",\n\ttime : \"1 a\",\n\trange : \"120 ft\",\n\tcomponents : \"V\",\n\tduration : \"Instantaneous\",\n\tsave : \"Int\",\n\tdescription : \"1 crea I see or name I know save or 10d6+1d6/SL Psychic dmg \\u0026 incapacitated till my next turn starts\",\n\tdescriptionShorter : \"1 crea I see or name I know save or 10d6+1d6/SL Psychic dmg \\u0026 incapacitated for 1 rnd\",\n\tdescriptionFull : \"You unleash a shimmering lance of psychic power from your forehead at a creature that you can see within range. Alternatively, you can utter the creature's name. If the named target is within range, it gains no benefit from cover or invisibility as the lance homes in on it. If the named target isn't within range, the lance dissipates, and the spell slot is not expended.\"+\n\t\"\\n   The target must succeed on an Intelligence saving throw or take 10d6 psychic damage and be incapacitated until the start of your next turn.\"+\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, the damage increases by 1d6 for each slot level above 4th.\"\n};\n"
  },
  {
    "path": "WotC material/ua_20211008_Travelers-of-the-Multiverse.js",
    "content": "var iFileName = \"ua_20211008_Travelers-of-the-Multiverse.js\";\nRequiredSheetVersion(\"13.1.14\");\n// This file adds the content from the Unearthed Arcana 2021: Travelers of the Multiverse article to MPMB's Character Record Sheet\n\n// Define the source\nSourceList[\"UA:TotM\"] = {\n\tname : \"Unearthed Arcana: Travelers of the Multiverse\",\n\tabbreviation : \"UA:TotM\",\n\tgroup : \"Unearthed Arcana\",\n\tcampaignSetting : \"Spelljammer\",\n\turl : \"https://media.wizards.com/2021/dnd/downloads/UA2021_TravelersoftheMultiverse.pdf\",\n\tdate : \"2021/10/08\"\n};\n\n// New races\nRaceList[\"astral elf-ua\"] = {\n\tregExpSearch : /^(?!.*half)(?=.*\\b(elfs?|elves|elvish|elven)\\b)(?=.*\\b(astral|silver void)\\b).*$/i,\n\tname : \"Astral elf\",\n\tsortname : \"Elf, Astral\",\n\tsource : [[\"UA:TotM\", 2]],\n\tplural : \"Astral elves\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Elvish or other\", 1]],\n\tscoresGeneric : true,\n\tage : \" typically claim adulthood around age 100 and can live to be 750 years old. Because nothing ages in the Astral Plane, astral elves from that plane can be thousands of years old.\",\n\tvision : [[\"Darkvision\", 60]],\n\tsavetxt : {\n\t\ttext : [\"Magic can't put me to sleep\"],\n\t\tadv_vs : [\"charmed\"]\n\t},\n\tskills : [\"Perception\"],\n\tspellcastingAbility : [4, 5, 6],\n\tspellcastingBonus : [{\n\t\tname : \"Astral Fire\",\n\t\tspells : [\"dancing lights\", \"light\", \"sacred flame\"],\n\t\tfirstCol : \"atwill\"\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Radiant Soul\",\n\t\tusages : 1,\n\t\trecovery : \"short rest\"\n\t}],\n\ttrait : \"Astral Elf\"+\n\t\"\\n \\u2022 Radiant Soul: Once per short rest when I succeed on a death save, I can regain HP equal to my proficiency bonus + my Int, Wis, or Cha mod (choose when selecting this race).\"+\n\t\"\\n \\u2022 Trance: I don't need to sleep, and magic can't put me to sleep. I can finish a long rest in 4 hours if I spend those hours in a trancelike meditation, during which I remain conscious.\"+\n\t\"\\n \\u2022 Trance Proficiencies. Whenever I finish a long rest using Trance, I gain two proficiencies, each one with a weapon or a tool of my choice. They last until I finish my next long rest.\"\n};\nRaceList[\"autognome-ua\"] = {\n\tregExpSearch : /autognome/i,\n\tname : \"Autognome\",\n\tsource : [[\"UA:TotM\", 2]],\n\tplural : \"Autognomes\",\n\tsize : 4,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tlanguageProfs : [\"Common\", [\"Gnomish or other\", 1]],\n\tscoresGeneric : true,\n\tage : \" can live for centuries, up to 500 years\",\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*casing).*$/i,\n\t\tname : \"Armored Casing\",\n\t\tsource : [[\"UA:TotM\", 2]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\textraLimitedFeatures : [{\n\t\tname : \"Built for Success\",\n\t\tusages : \"Proficiency bonus per \",\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\n\t\trecovery : \"long rest\"\n\t}],\n\tdmgres : [\"Poison\"],\n\tsavetxt : {\n\t\tadv_vs : [\"paralyzed\", \"poison\"],\n\t\timmune : [\"disease\"]\n\t},\n\ttoolProfs : [[\"Tool of my choice\", 2]],\n\ttrait : typePF ?\n\t\t\"Autognome (my type is Construct)\"+\n\t\t\"\\n \\u2022 Cure Wounds, Healing Word, and Spare the Dying work on me.\"+\n\t\t\"\\n \\u2022 Armored Casing: My base AC is 13 + my Dexterity modifier.\"+\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save, after I see the roll, but before the effect.\"+\n\t\t\"\\n \\u2022 Mechanical Nature: I don't need to eat, drink or breathe.\"+\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay in an inactive and motionless state during which I'm conscious.\"+\n\t\t\"\\n \\u2022 True Life: If Mending is cast on me, I can expend one HD like during a short rest to regain hit points.\"\n\t\t:\n\t\t\"Autognome (type is Construct; Cure Wounds, Healing Word, Spare the Dying work on me)\"+\n\t\t\"\\n \\u2022 Armored Casing: While I'm not wearing armor, my AC is 13 + my Dexterity modifier.\"+\n\t\t\"\\n \\u2022 Built for Success: For my Prof B. per long rest, I can add +1d4 to an attack, check, or save. I can do this after seeing the d20 roll, but before knowing the roll's effects.\"+\n\t\t\"\\n \\u2022 Mechanical Nature: I have immunities/resistances and don't need to eat, drink or breathe\"+\n\t\t\"\\n \\u2022 Sentry's Rest: I only need 6 hours to finish a long rest if I stay inactive and motionless.\"+\n\t\t\"\\n \\u2022 True Life: If Mending is cast on me, I can expend one HD like during a short rest.\"\n};\nRaceList[\"giff-ua\"] = {\n\tregExpSearch : /giff|hippofolk/i,\n\tname : \"Giff\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Giff\",\n\tsize : 3,\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\tcarryingCapacity : 2,\n\tsavetxt : { text : [\"Adv. on Str saves and checks\"] },\n\tadvantages : [[\"Strength\", true]],\n\ttrait : \"Giff\"+\n\t\"\\n \\u2022 Damage Dealer: Like a hippopotamus in a crystalware shop, I am naturally adept at damaging things. When I roll a 1 on a damage die for a melee attack, I can reroll the die and use the new roll. I can do so no more than once per turn.\"+\n\t\"\\n \\u2022 Hippo Build: I have advantage on Strength-based ability checks and Strength saving throws. In addition, I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\"\n};\nRaceList[\"hadozee-ua\"] = {\n\tregExpSearch : /hadozee/i,\n\tname : \"Hadozee\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Hadozees\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 },\n\t\tclimb : { spd : \"walk\", enc : \"walk\" }\n\t},\n\tscoresGeneric : true,\n\taction : [\n\t\t[\"bonus action\", \"Dexterous Feet (Use an Object)\"],\n\t\t[\"reaction\", \"Glide (negate falling damage)\"]\n\t],\n\ttrait : \"Hadozee\"+\n\t\"\\n \\u2022 Dexterous Feet: As a bonus action, I can do the Use an Object action.\"+\n\t\"\\n \\u2022 Glide: If I'm not incapacitated or wearing heavy armor, I can extend my skin membranes and glide. When I do so, I can perform the following aerial maneuvers:\"+\n\t\"   - When I fall, I can move up to 5 ft horizontally for every 1 ft I descend.\"+\n\t\"   - As a reaction when I would take damage from a fall, I can reduce this damage to 0.\"\n};\nRaceList[\"plasmoid-ua\"] = {\n\tregExpSearch : /plasmoid/i,\n\tname : \"Plasmoid\",\n\tsource : [[\"UA:TotM\", 3]],\n\tplural : \"Plasmoids\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\tvision : [[\"Darkvision\", 60]],\n\tdmgres : [\"Acid\", \"Poison\"],\n\tsavetxt : {\n\t\tadv_vs : [\"poison\"],\n\t\ttext : [\"Adv. on grapple checks\"]\n\t},\n\taction : [[\"bonus action\", \"Extrude/Reabsorb Pseudopod\"]],\n\ttrait : \"Plasmoid (my type is Ooze)\"+\n\t(typePF ? \"\\n\" : \"\") + \" \\u2022 Hold Breath: I can hold my breath for 1 hour.\"+\n\t\"\\n \\u2022 Amorphous: I can squeeze through a 1-inch wide space without my equipment or clothes. \" + (typePF ? \"I have advantage on grapple checks.\" : \"I also have advantage on ability checks I make to initiate or escape a grapple.\")+\n\t\"\\n \\u2022 Shape Self: While not incapacitated, I can reshape my body to have a head and limbs, or back to a limbless blob (no action). As a bonus action, I can extrude/reabsorb a pseudopod up to 6 inch wide and 10 ft long. It can carry up to 10 lb. I can use it to manipulate objects, open unlocked doors, stow/retrieve objects, or pour out contents of a container.\" + (typePF ? \" It can't attack or use magic items.\" : \"\")\n};\nRaceList[\"thri-kreen-ua\"] = {\n\tregExpSearch : /thri.?kreen/i,\n\tname : \"Thri-kreen\",\n\tsource : [[\"UA:TotM\", 4]],\n\tplural : \"Thri-kreen\",\n\tsize : [3, 4],\n\tspeed : {\n\t\twalk : { spd : 30, enc : 20 }\n\t},\n\tscoresGeneric : true,\n\t// age, height and weight taken from Shining South (2004) p17 (using the male option)\n\tage : \" reach maturity around 7 years old and typically live around 30 years\",\n\theight : \" stand between 5 and 7 feet tall (5'2\\\" + 2d10\\\")\",\n\tweight : \" weigh between 140 and 375 pounds (135 + 2d10 \\xD7 2d6 lb)\",\n\theightMetric : \" stand from 1,6 to over 2 metres tall (160 + 5d10 cm)\",\n\tweightMetric : \" weigh between 60 and 180 kg (60 + 5d10 \\xD7 4d6 / 10 kg)\",\n\tlanguageProfs : [\"Common\", \"Thri-kreen Telepathy\", 1],\n\tvision : [[\"Darkvision\", 60]],\n\tarmorOptions : [{\n\t\tregExpSearch : /^(?=.*carapace)(?=.*chameleon).*$/i,\n\t\tname : \"Chameleon Carapace\",\n\t\tsource : [[\"UA:TotM\", 4]],\n\t\tac : 13,\n\t\tselectNow : true\n\t}],\n\taction : [[\"action\", \"Chameleon Carapace\"]],\n\ttrait : \"Thri-kreen (my type is Monstrosity)\"+\n\t\"\\n \\u2022 Chameleon Carapace: \" + (typePF ? \"AC 13 + Dex,\" : \"My base AC is 13 + Dex mod. I have\") + \" adv. on Stealth checks to hide.\"+\n\t\"\\n \\u2022 Secondary Arms: I have two slightly smaller arms below my primary pair of arms.\" + (typePF ? \" \" : \"\\n   \") + \"I can't use these secondary arms to wield a shield or weapons other than light weapons.\"+\n\t\"\\n \\u2022 Sleepless: I don't \" + (typePF ? \"\" : \"require \") + \"sleep. I rest by refraining from strenuous activity.\"+\n\t\"\\n \\u2022 \" + (typePF ? \"Thri-kreen \" : \"\") + \"Telepathy: I can communicate telepathically to any number of willing creatures I can see that understand at least one language, while within 120 ft. Any can break this (no action).\"\n};\n"
  },
  {
    "path": "WotC material/ua_20220308_Heroes-of-Krynn.js",
    "content": "// This file adds the content from the Unearthed Arcana 2022: Heroes of Krynn article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n\r\nvar iFileName = \"ua_20220308_Heroes-of-Krynn.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n\r\nSourceList[\"UA:HoK\"] = {\r\n\tname : \"Unearthed Arcana: Heroes of Krynn\",\r\n\tabbreviation : \"UA:HoK\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022HeroesofKrynn.pdf\",\r\n\tdate : \"2022/03/08\"\r\n};\r\n\r\n// Race\r\nRaceList[\"kender-ua\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"UA:HoK\", 1]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"frightened\"]},\r\n\tabilitySave : 6,\r\n\tfeatures : {\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"kender ace\" : {\r\n\t\t\tname : \"Kender Ace\",\r\n\t\t\tminlevel : 3,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Kender Ace Table\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"I possess a magical ability to pull an item out of a bag or another container.\",\r\n\t\t\t\t\t\"As a bonus action, I can reach into a container I'm carrying and roll a d6 to determine the item I pull out.\",\r\n\t\t\t\t\t\"The object glimmers softly and disappears after 1 hour.\",\r\n\t\t\t\t\t\"I can use this bonus action a number of times equal to my proficiency bonus, and you regain all expended uses when I finish a long rest.\\n\",\r\n\t\t\t\t\t\"  d6\\tItem\",\r\n\t\t\t\t\t\"   1\\t5d6 gold pieces\",\r\n\t\t\t\t\t\"   2\\t1 simple weapon of my choice that has the light property\",\r\n\t\t\t\t\t\"   3\\t1 item of my choice from the Adventuring Gear table (PHB 148), no more than 1 gp and 1 lb\",\r\n\t\t\t\t\t\"   4\\t1 random item from the Trinkets table (PHB 159)\",\r\n\t\t\t\t\t\"   5\\tMy choice of a crowbar or a grappling hook\",\r\n\t\t\t\t\t\"   6\\t1 item of my choice from the Tools table (PHB 154), no more than 10 gp\"\r\n\t\t\t\t]\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t(typePF ? \"\\n \" : \"\\t\")+\"\\u2022 Brave: I have adv. on saves to avoid or end being frightened.\"+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can have a creature that can hear and understand me within 60 ft make a Wisdom save (DC 8 + Prof B. + Cha mod) or gain disadv. on attacks until my next turn starts. I can do this a number of times per long rest equal to my Prof Bonus.\"+\r\n\t'\\n \\u2022 Kender Ace: Starting at 3rd-level, as a bonus action, I can reach into a container and roll on the Kender Aces table to determine the item I pull out, see the \"Notes\" section. I can do this a number of times per long rest equal to my proficiency bonus.'\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"sorcerer\", \"lunar magic-ua\", {\r\n\tregExpSearch : /^(?=.*(sorcerer|witch))(?=.*(lunar|moon)).*$/i,\r\n\tsubname : \"Lunar Magic\",\r\n\tsource : [[\"UA:HoK\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Moon Fire\",\r\n\t\t\tsource : [[\"UA:HoK\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc(\"I know the Sacred Flame cantrip and can use it on 2 creatures within 5 ft of each other\"),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Moon Fire\",\r\n\t\t\t\tspells : [\"sacred flame\"],\r\n\t\t\t\tselection : [\"sacred flame\"]\r\n\t\t\t}],\r\n\t\t\tweaponsAdd : { select : [\"Sacred Flame\"] },\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"sacred flame\" : {\r\n\t\t\t\t\tdescription : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 at CL 5, 11, and 17\",\r\n\t\t\t\t\tdescriptionShorter : \"Up to 2 creas I see, max 5 ft apart, save or 1d8 Radiant dmg; no cover bonus; +1d8 CL 5/11/17\",\r\n\t\t\t\t\tdescriptionCantripDie : \"Up to 2 creas I see, max 5 ft apart, save or `CD`d8 Radiant dmg; no bonus for cover on save\",\r\n\t\t\t\t\tchanges : \"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.baseWeaponName == 'sacred flame') {\r\n\t\t\t\t\t\t\tfields.Description = fields.Description.replace(\"1 creature\", \"up to 2 creatures within 5 ft\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"When I cast Sacred Flame, I can target one creature as normal or target two creatures within range that are within 5 feet of each other.\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Lunar Embodiment\",\r\n\t\t\tsource : [[\"UA:HoK\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tadditional : levels.map(function (n) { return (n < 3 ? 3 : n < 5 ? 6 : n < 7 ? 9 : n < 9 ? 12 : 15) + \" additional spells known\"}),\r\n\t\t\tspellcastingExtra : [\"faerie fire\", \"dissonant whispers\", \"sanctuary\", \"moonbeam\", \"darkness\", \"blindness/deafness\", \"death ward\", \"bestow curse\", \"phantom steed\", \"freedom of movement\", \"evard's black tentacles\", \"hallucinatory terrain\", \"mass cure wounds\", \"mislead\", \"dream\"],\r\n\t\t\tspellcastingExtraApplyNonconform : true,\r\n\t\t\tdescription : levels.map(function(n) {\r\n\t\t\t\tvar phases = {\r\n\t\t\t\t\t\"\\u25CB Full: \" : [\"Faerie Fire\", \"Moonbeam\", \"Death Ward\", \"Freedom of Movement\", \"Mass Cure Wounds\"],\r\n\t\t\t\t\t\"\\u25CF New: \" : [\"Dissonant Whispers\", \"Darkness\", \"Bestow Curse\", \"Evard's Black Tentacles\", \"Mislead\"],\r\n\t\t\t\t\t\"\\u25D6 Crescent: \" : [\"Sanctuary\", \"Blindness/deafness\", \"Phantom Steed\", \"Hallucinatory Terrain\", \"Dream\"]\r\n\t\t\t\t};\r\n\t\t\t\tvar aReturn = [\r\n\t\t\t\t\t\"When I finish a long rest, I can choose a lunar phase: Full, New, or Crescent Moon\",\r\n\t\t\t\t\t\"I can cast the spells of the chosen lunar phase each once per long rest without a spell slot\"\r\n\t\t\t\t];\r\n\t\t\t\tvar iSpellsAdd = n < 3 ? 1 : n < 5 ? 2 : n < 7 ? 3 : n < 9 ? 4 : 5;\r\n\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\taReturn.push(phase + phases[phase].slice(0,iSpellsAdd).join(\", \"));\r\n\t\t\t\t}\r\n\t\t\t\t//aReturn.push(\"I know all \" + (iSpellsAdd * 3) + \" spells above; They don't count towards the number of spells I can know\");\r\n\t\t\t\treturn desc(aReturn);\r\n\t\t\t}),\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tspellAdd : [\r\n\t\t\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\t\t\tif (spName === \"sorcerer\" && !isDuplicate && CurrentSpells.sorcerer.extra.indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\tvar phases = {\r\n\t\t\t\t\t\t\t\t\"F\" : [\"faerie fire\", \"moonbeam\", \"death ward\", \"freedom of movement\", \"mass cure wounds\"],\r\n\t\t\t\t\t\t\t\t\"N\" : [\"dissonant whispers\", \"darkness\", \"bestow curse\", \"evard's black tentacles\", \"mislead\"],\r\n\t\t\t\t\t\t\t\t\"C\" : [\"sanctuary\", \"blindness/deafness\", \"phantom steed\", \"hallucinatory terrain\", \"dream\"]\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfor (var phase in phases) {\r\n\t\t\t\t\t\t\t\tif (phases[phase].indexOf(spellKey) !== -1) {\r\n\t\t\t\t\t\t\t\t\tspellObj.firstCol = phase;\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t'The letters \"F\", \"N\", or \"C\" in the first column are used to indicate that a spell belongs to either the Full Moon, New Moon, or Crescent Moon lunar phase.'\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\tspellFirstColTitle : \"Ph\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\t// Because Death Ward is a 4th-level spell, but gained at 5th level, we need to manually add it at sorcerer level 5 and 6\r\n\t\t\t\tname : \"Death Ward\",\r\n\t\t\t\tspells : [\"death ward\"],\r\n\t\t\t\tselection : [\"death ward\"],\r\n\t\t\t\tfirstCol : \"F\",\r\n\t\t\t\ttimes : levels.map(function(n){ return n === 5 || n === 6 ? 1 : 0; })\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Lunar Boons\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Each lunar phase is additionally associated with spells of the following schools of magic:\",\r\n\t\t\t\t\"\\u25CB Full: Abjur \\u0026 Conj\\t\\t\\u25CF New: Evoc \\u0026 Necro\\t\" + (typePF ? \"\\t\" : Array(8).join(\" \")) + \"\\u25D6 Crescent: Div \\u0026 Trans\",\r\n\t\t\t\t\"I can reduce the sorcery point needed for Metamagic of spells of my current phase by 1\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6.1\" : {\r\n\t\t\tname : \"Waxing and Waning\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can spend 1 sorcery point to change my lunar phase\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Lunar Empowerment\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : \" [passive benefits for current phase]\" + desc([\r\n\t\t\t\t\"\\u25CB Full: I shed bright light in a 10-ft radius and dim light for an additional 10 ft\",\r\n\t\t\t\t\"        Myself and creatures I choose inside this bright light have advantage on saves\",\r\n\t\t\t\t\"\\u25CF New: Adv. on Stealth checks; If I'm in dim light or darkness, attacks have disadv. vs me\",\r\n\t\t\t\t\"\\u25D6 Crescent: I have resistance to Necrotic and Radiant damage\"\r\n\t\t\t]),\r\n\t\t\tdmgres : [[\"Necrotic\", \"Necro. (in crescent)\"], [\"Radiant\", \"Rad. (in crescent)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature18\" : {\r\n\t\t\tname : \"Lunar Phenomenon\",\r\n\t\t\tsource : [[\"UA:HoK\", 3]],\r\n\t\t\tminlevel : 18,\r\n\t\t\tadditional: \"per phase: 1\\xD7 per long rest or 5 SP\",\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, or as part of changing phase, I can use a power of the (new) phase:\",\r\n\t\t\t\t\"\\u25CB Full: Chosen creatures within 30 ft of me must make a Constitution save or be blinded\",\r\n\t\t\t\t\"   This lasts until their next turn ends; I also heal one creature within 30 ft for 3d8 HP\",\r\n\t\t\t\t\"\\u25CF New: Chosen creatures within 30 ft of me must make a Dexterity save\",\r\n\t\t\t\t\"   If failed, they take 3d10 Necrotic damage and have 0 speed until their next turn ends\",\r\n\t\t\t\t\"   Also, I become invisible until the end of my next turn, or until I attack or cast a spell\",\r\n\t\t\t\t\"\\u25D6 Crescent: I can magically teleport to an unoccupied space I can see within 60 ft\",\r\n\t\t\t\t\"   I gain resistance to all damage until the start of my next turn\",\r\n\t\t\t\t\"I can use each phase's bonus action 1/LR, or by spending 5 sorcery points to use it again\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\textraLimitedFeatures : [{\r\n\t\t\t\tname : \"Lunar Phenomenon (Full)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (New)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunar Phenomenon (Crescent)\",\r\n\t\t\t\tusages : 1,\r\n\t\t\t\trecovery : \"long rest\",\r\n\t\t\t\taltResource : \"5 SP\"\r\n\t\t\t}]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds\r\nBackgroundList[\"knight of solamnia-ua\"] = {\r\n\tregExpSearch : /^(?=.*(knight|champion|warrior))(?=.*solamnia).*$/i,\r\n\tname : \"Knight of Solamnia\",\r\n\tsource : [[\"UA:HoK\", 3]],\r\n\tskills : [\"Athletics\", \"Survival\"],\r\n\tgold : 10,\r\n\ttoolProfs : [[\"Musical instrument\", 1]],\r\n\tlanguageProfs : [1],\r\n\tequipleft : [\r\n\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t[\"Deck of cards\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Squire of Solamnia\",\r\n\ttrait : [\r\n\t\t\"I pledge my sword to the greater good. If I must perish in pursuit of that good, so be it.\",\r\n\t\t\"My comrades-in-arms are my family. I'll do whatever it takes to keep them safe.\",\r\n\t\t\"The protection of innocent people comes first. All other concerns come second.\",\r\n\t\t\"I joined the knights for the free meals, but their lessons grew on me over time.\",\r\n\t\t\"I wish my deeds to become the stuff of legends\\xD7just like those of the knighthood's heroic founders.\",\r\n\t\t\"A dishonorable act drove me to become a knight. I have acted with honor ever since.\"\r\n\t]\r\n};\r\n// [dupl_start] Backgrounds identical to Dragonlance: Shadow of the Dragon Queen\r\nif (!SourceList[\"D:SotDQ\"]) {\r\n\tBackgroundFeatureList[\"squire of solamnia\"] = {\r\n\t\tdescription : \"I gain the Squire of Solamnia feat. In addition, the Knights of Solamnia provide me free, modest lodging and food at any of their fortresses or encampments.\",\r\n\t\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2], [\"UA:HoK\", 3]],\r\n\t\tfeatsAdd: [\"Squire of Solamnia\"],\r\n\t};\r\n\tBackgroundList[\"mage of high sorcery\"] = {\r\n\t\tregExpSearch : /^(?=.*(mage|wizard|magus))(?=.*high)(?=.*sorcery).*$/i,\r\n\t\tname : \"Mage of High Sorcery\",\r\n\t\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\t\tskills : [\"Arcana\", \"History\"],\r\n\t\tgold : 10,\r\n\t\tlanguageProfs : [2],\r\n\t\tequipleft : [\r\n\t\t\t[\"Bottle of colored ink\", \"\", \"\"],\r\n\t\t\t[\"Ink pen\", \"\", \"\"]\r\n\t\t],\r\n\t\tequipright : [\r\n\t\t\t[\"Common clothes\", \"\", 3],\r\n\t\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t\t],\r\n\t\tfeature : \"Initiate of High Sorcery\",\r\n\t\ttrait : [\r\n\t\t\t\"I wish to use my knowledge of magic to better people's lives.\",\r\n\t\t\t\"My study of magic might reveal all manner of secrets.\",\r\n\t\t\t\"Magic is a means to power, and I will use it to pursue my ambitions.\",\r\n\t\t\t\"I learned magic so I'd be able to protect those I care about.\",\r\n\t\t\t\"I use my magic to maintain the balance between all things.\",\r\n\t\t\t\"Whether in the past, present, or future, I will be the greatest mage ever known.\"\r\n\t\t],\r\n\t\textra : [\r\n\t\t\t\"Choose a Trinket\",\r\n\t\t\t\"Unopened letter from first teacher\",\r\n\t\t\t\"Broken black/red/white wooden wand\",\r\n\t\t\t\"Scroll with incomprehensible formula\",\r\n\t\t\t\"Stone-covered foldable device\",\r\n\t\t\t\"Pouch with triple moon symbol\",\r\n\t\t\t\"Spellbook with triple moon symbol\",\r\n\t\t\t\"Lens to see Nuitari, invisible moon\"\r\n\t\t]\r\n\t};\r\n\tBackgroundFeatureList[\"initiate of high sorcery\"] = {\r\n\t\tdescription : \"I gain the Initiate of High Sorcery feat. In addition, the Mages of High Sorcery provide me with free, modest lodging and food indefinitely at any occupied Tower of High Sorcery and for one night at the home of an organization member.\",\r\n\t\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\t\tfeatsAdd: [\"Initiate of High Sorcery\"],\r\n\t};\r\n} // dupl_end\r\n\r\n/*\tFeats\r\n\tAll the below feats are the work of PoetOfGod and have not been double-checked\r\n\tby Safety-Orange, because the \"Revised\" article has already been published\r\n\tand that superseeds all these feats with newer versions.\r\n*/\r\n\r\n// Feats tree for Initiate of High Sorcery\r\nFeatsList[\"initiate of high sorcery-ua\"] = {\r\n\tname : \"Initiate of High Sorcery\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"I learn a cantrip and a first level spell from a list depending on my chosen moon. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You've received training from magic-users affiliated with the Mages of High Sorcery.\\n   Choose one of three moons of Krynn, each of which is associated with a distinct type of magic: the black moon, Nuitari; the red moon, Lunitari; or the white moon, Solinari. You learn one cantrip and one 1st-level spell based on the moon you choose, as specified in the Lunar Spells table.\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\\n\\n\" + toUni(\"Lunar Spells\") + \"\\n\" + toUni(\"Moon\") + \"\\t\" + toUni(\"Cantrips\") + \"\\t\\t\" + toUni(\"1st-level Spell\") + \"\\nNuitari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tchill touch, mage\\tspell from the evocation or\\n\\thand, and vicious\\tnecromany school of magic.\\n\\tmockery\\nLunitari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tguidance,\\t\\tspell from the school of\\n\\tmessage, and\\tdivination or transmutation.\\n\\tprestidigitation\\nSolinari\\tChoose one from\\tChoose one 1st-level wizard\\n\\tproduce flame,\\tspell from the abjuration or\\n\\tresistance, and\\tconjuration school of magic.\\n\\tspare the dying\",\r\n\tprerequisite : \"Apprentice of High Sorcery\",\r\n\tchoices : [\"Intelligence - Nuitari\", \"Intelligence - Lunitari\", \"Intelligence - Solinari\", \"Wisdom - Nuitari\", \"Wisdom - Lunitari\", \"Wisdom - Solinari\", \"Charisma - Nuitari\", \"Charisma - Lunitari\", \"Charisma - Solinari\"],\r\n\t// nine choices, one for each ability and moon\r\n\t\"intelligence - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Intelligence as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Wisdom as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - nuitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Chill Touch, Mage Hand, or Vicious Mockery) and a 1st-level Evoc/Necro spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Nuitari Cantrip\",\r\n\t\t\tspells : [\"chill touch\", \"mage hand\", \"vicious mockery\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Nuitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - lunitari\" : {\r\n\t\tdescription : \"I learn a cantrip (Guidance, Message, or Prestidigitation) and a 1st-level Div/Trans spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lunitari Cantrip\",\r\n\t\t\tspells : [\"guidance\", \"message\", \"prestidigitation\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Lunitari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Div\", \"Trans\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - solinari\" : {\r\n\t\tdescription : \"I learn a cantrip (Produce Flame, Resistance, or Spare the Dying) and a 1st-level Abjur/Conj spell from wizard spell list. I can cast the spell once per long rest at its lowest level without expending a spell slot, and can cast it if I have a spell slot to do so. I use Charisma as my spellcasting ability for this.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Solinari Cantrip\",\r\n\t\t\tspells : [\"produce flame\", \"resistance\", \"spare the dying\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"Solinari 1st-level Spell\",\r\n\t\t\t\"class\" : \"wizard\",\r\n\t\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n};\r\nFeatsList[\"adept of the black robes-ua\"] = {\r\n\tname : \"Adept of the Black Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Choose an ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\tdescriptionFull : \"Your ambition and loyalty to the Order of the Black Robes has been recognized, granting you these benefits:\\n\" + toUni(\"Ambitious Magic.\") + \" You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the evocation or necromancy school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Life Channel.\") + \" You can channel your lifeforce into the power of your magic. When a creature you can see within 60 feet fails on a saving throw against a spell you cast, you can expend a number of Hit Dice equal to the level of the spell. Roll a number of Hit Die equal to half the number of Hit Dice expended (rounded up) and the damage the triggering creature takes increases by an amount equal to the total rolled of those dice.\",\r\n\tprerequisite : \"4th-level, Initiate of High Sorcery feat, Any Non-Good Alignment\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1 && !(/good/i).test(What(\"Alignment\")); },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Evoc/Necro spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Evoc or Necro spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. If creature I can see within 60 ft fails a save vs my spell I can spend HD equal to spell's level. I roll half that many HD and the creature takes that much additional damage.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\nFeatsList[\"adept of the red robes-ua\"] = {\r\n\tname : \"Adept of the Red Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\tdescriptionFull : \"Your pursuit of truth and dedication to maintaining the balance between all things has been recognized by the Order of the Red Robes, granting you these benefits:\\n\" + toUni(\"Insightful Magic.\") + \" You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the divination or transmutation school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Magical Balance.\") + \" When you make an attack roll, an ability check, or a saving throw, and roll a 9 or lower on the d20, you can use your reaction to balance fate and treat the roll as a 10. you can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1; },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Div/Trans spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Div\", \"Trans\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\taction : [[\"reaction\", \"Magical Balance\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Div or Trans spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. If I roll less than a 10 on an atk, check, or save, I can use my reaction to treat it as a 10. I can do this a number of times equal to my proficiency bonus per long rest.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\nFeatsList[\"adept of the white robes-ua\"] = {\r\n\tname : \"Adept of the White Robes\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Choose an ability for this spell. When a creature w/in 30 ft takes damage I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the damage by that much + my SC ability mod.\",\r\n\tdescriptionFull : \"Your oath to use magic to make the world a better place has been recognized by the Order of the White Robes, granting you these benefits:\\n\" + toUni(\"Protective Magic.\") + \" You learn one 2nd-level spell of you choice. The 2nd-level spell must be from the abjuration or conjuration school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\\n\" + toUni(\"Protective Ward.\") + \" When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to expend a spell slot and weave protective magic around the target. Roll a number of d4s equal to the level of the spell slot expended and reduce the damage the target takes by the total rolled on those dice + your spellcasting ability modifier.\",\r\n\tprerequisite : \"4th level, Initiate of High Sorcery feat, Any Non-Evil Alignment\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\") !== -1 && !(/evil/i).test(What(\"Alignment\")); },\r\n\tspellcastingBonus : [{\r\n\t\tname : \"2nd-level Abjur/Conj spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Conj\"],\r\n\t\tlevel : [2, 2],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}],\r\n\tspellcastingAbility : 4,\r\n\tallowUpCasting : true,\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery-ua\");\r\n\t\tif (iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit]) {\r\n\t\t\treturn CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iHghSrcyInit].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Int is my ability for this spell. When a creature w/in 30 ft takes damage I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the damage by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Wis is my ability for this spell. When a crea w/in 30 ft takes dmg I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the dmg by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Conj spell. I can cast this spell 1/LR w/out using a spell slot, and can cast it normally. Cha is my ability for this spell. When a crea w/in 30 ft takes dmg I can use a reaction to expend a spell slot and roll d4s equal to the spell's level and reduce the dmg by that much + my SC ability mod.\",\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\n\r\n// Feat tree for Divinely Favored\r\nFeatsList[\"divinely favored-ua\"] = {\r\n\tname : \"Divinely Favored\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn Thaumaturgy and one 1st-level spell based on my alignment. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spells that use the chosen ability.\",\r\n\tdescriptionFull : \"A god has chosen you to carry a spark of their divine power.\\n   You learn the thaumaturgy cantrip and one 1st-level spell based on the alignment of your character, as specified in the Alignment Spells table.\\n   You can cast the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\\n\\n\" + toUni(\"Alignment Spells\") + \"\\n\" + toUni(\"Alignment\") + \"   \" + toUni(\"1st-level Spell\") + \"\\nEvil\\t\t Choose one 1st level warlock or wizard spell.\\nGood\\t\t Choose one 1st-level cleric or wizard spell.\\nNeutral\\t\t Choose one 1st-level druid or wizard spell.\\n\\n   In addition, you can use a holy symbol as a spellcasting focus for any spell you cast that uses the spellcasting ability you choose when you select this feat.\",\r\n\tchoices : [\"Intelligence - Good\", \"Intelligence - Neutral\", \"Intelligence - Evil\", \"Wisdom - Good\", \"Wisdom - Neutral\", \"Wisdom - Evil\", \"Charisma - Good\", \"Charisma - Neutral\", \"Charisma - Evil\"],\r\n\t// nine choices, one for each alignment and ability pair\r\n\t\"intelligence - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"intelligence - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Intelligence is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Intelligence.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 4,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"wisdom - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Wisdom is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Wisdom.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 5,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - good\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level cleric or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Cleric/Wizard Spell\",\r\n\t\t\t\"class\" : [\"cleric\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - neutral\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level druid or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Druid/Wizard Spell\",\r\n\t\t\t\"class\" : [\"druid\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t},\r\n\t\"charisma - evil\" : {\r\n\t\tdescription : \"I learn Thaumaturgy and one 1st-level warlock or wizard spell. I can cast the 1st level spell once per long rest without a spell slot, and I can cast it normally. Charisma is my spellcasting ability for these spells. I can use a holy symbol as a spellcasting focus for all my spells that use Charisma.\",\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingAbility : 6,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Thaumaturgy\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}, {\r\n\t\t\tname : \"1st-level Warlock/Wizard Spell\",\r\n\t\t\t\"class\" : [\"warlock\", \"wizard\"],\r\n\t\t\tlevel : [1, 1],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"divine communications-ua\"] = {\r\n\tname : \"Divine Communications\",\r\n\tsource : [[\"UA:HoK\", 5]],\r\n\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. My chosen ability from Divinely Favored is my spellcasting ability for these spells\",\r\n\tdescriptionFull : \"Your connection to your god deepens, granting you these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase the ability score of the spellcasting ability chosen when you gained the Divinely Favored feat by 1, to a maximum of 20.\\n\" + toUni(\"Celestial Tongues.\") + \" You learn to speak, read, and write Celestial, and two other languages of your choice.\\n\" + toUni(\"Divine Omens.\") + \" You can cast the augury and commune spell without a spell slot, and you must finish 1d4 long rests before you can cast it in this way again. You can also cast the spell using the spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gained the Divinely Favored feat.\",\r\n\tprerequisite : \"4th level, Divinely Favored feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"divinely favored-ua\") !== -1; },\r\n\tlanguageProfs : [\"Celestial\", 2],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Augury and Commune\",\r\n\t\tspells : [\"augury\", \"commune\"],\r\n\t\tselection : [\"augury\", \"commune\"],\r\n\t\ttimes : 2\r\n\t}],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\tselfChoosing : function () {\r\n\t\t// extract just the ability from the divinely favored choices\r\n\t\tvar iDvnFav = CurrentFeats.known.indexOf(\"divinely favored-ua\");\r\n\t\tif (iDvnFav !== -1 && CurrentFeats.choices[iDvnFav]) {\r\n\t\t\treturn CurrentFeats.choices[iDvnFav].toString().split(\" \")[0].charAt(0).toUpperCase() + CurrentFeats.choices[iDvnFav].toString().split(\" \")[0].slice(1);\r\n\t\t}\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Intelligence is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 4,\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Wisdom is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 5,\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"I learn Augury and Commune. I can cast these spells without a spell slot, then must wait 1d4 long rests before doing so again, and I can cast it normally. Charisma is my spellcasting ability for these spells\",\r\n\t\tspellcastingAbility : 6,\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\n\r\n// Feats tree for Squire of Solamnia\r\nFeatsList[\"squire of solamnia-ua\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"As a reaction once per long rest when I see another creature 30 ft make a save, I can give them advantage if they can hear and understand me. I gain proficiency with with medium armor and martial weapons. I have advantage on saves to avoid falling off a mount.\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\\n\" + toUni(\"Martial Training.\") + \" You gain proficiency with medium armor and martial weapons.\\n\" + toUni(\"Defensive Rider.\") + \" You have advantage on saving throws made to avoid falling off a mount.\\n\" + toUni(\"Encouraging Rally.\") + \" When another creature you can see within 30 feet of you makes a saving throw, you can use your reaction to inspire them. If the target can hear you and understands you, it gains advantage on the saving throw. Once you use this reaction, you can't do so again until you finish a long rest.\",\r\n\tprerequisite : \"Squireship in the Knights of Solamnia\",\r\n\tarmorProfs : [false, true, false, false],\r\n\tweaponProfs : [false, true],\r\n\tsavetxt : { adv_vs : [\"falling off a mount\"]},\r\n\taction : [[\"reaction\", \"Encouraging Rally (Squire of Solamnia)\"]],\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Encouraging Rally (Squire of Solamnia)\",\r\n\t\tusages : 1,\r\n\t\trecovery : \"long rest\"\r\n\t}]\r\n};\r\nFeatsList[\"knight of the crown-ua\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"When a creature within 30 ft makes an attack roll against another creature within 5 ft, I can use my reaction to grant advantage on the attack roll. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase your Strength or Dexterity score by 1, to a maximum of 20.\\n\" + toUni(\"Tactical Teamwork.\") + \" When a creature you can see within 30 feet of you makes an attack roll against another creature that is within 5 feet of you, you can use your reaction to grant advantage on the attack roll. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\taction : [[\"reaction\", \"Tactical Teamwork (Knight of the Crown)\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the sword-ua\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"I gain proficiency in the chosen ability saving throw. After I or a creature I can see within 30 feet fails an Int, Wis, or Cha save, I can expend a HD. I roll that die and increase the save by that much. Once I change a fail into a success, I can't do so again until a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\\n\" + toUni(\"Disciplined Spirit.\") + \" You gain proficiency in Intelligence, Wisdom, or Charisma saving throws (your choice when you take this feat).\\n\" + toUni(\"Willpower.\") + \" Immediately after you or a creature you can see within 30 feet of you fail an Intelligence, Wisdom, or Charisma saving throw, you can expend a Hit Die. The saving throw increases by an amount equal to a roll of that Hit Die, potentially turning a failure into a success. Once you turn a failed saving throw into a successful one using this feat, you can't do so again until you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tsaves : [\"Int\"]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tsaves : [\"Wis\"]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tsaves : [\"Cha\"]\r\n\t},\r\n\tusages : 1,\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"knight of the rose-ua\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"UA:HoK\", 6]],\r\n\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + the modifier of the score increased by this feat. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\\n\" + toUni(\"Ability Score Increase.\") + \" Increase your Constitution or Charisma score by 1, to a maximum of 20.\\n\" + toUni(\"Bolstering Rally.\") + \" When you roll initiative, you can choose up to three other creatures you can see within 30 feet of you. Each creature can gain temporary hit points equal to a roll of your Hit Die + your proficiency bonus + the ability modifier of the ability score increased by this feat. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua\") !== -1; },\r\n\tscorestxt : \"+1 Constitution or Charisma\",\r\n\tchoices : [\"Constitution\", \"Charisma\"],\r\n\t\"constitution\" : {\r\n\t\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + my Constitution modifier. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"When I roll initiative I can choose up to 3 other creatures I can see within 30 ft. They gain temp HP equal to a roll of my HD + my proficiency bonus + my Charisma modifier. I can do this a number of times equal to my Proficiency Bonus and regain all expended uses when I finish a long rest.\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20220425_Heroes-of-Krynn-Revisited.js",
    "content": "// This file adds the content from the Unearthed Arcana 2022: Heroes of Krynn Revisited article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\n\r\nvar iFileName = \"ua_20220425_Heroes-of-Krynn-Revisited.js\";\r\nRequiredSheetVersion(\"14.0.5-beta\");\r\n\r\nSourceList[\"UA:HoKR\"] = {\r\n\tname : \"Unearthed Arcana: Heroes of Krynn Revisited\",\r\n\tabbreviation : \"UA:HoKR\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-HeroesofKrynnRevisited.pdf\",\r\n\tdate : \"2022/04/25\"\r\n};\r\n\r\nRaceList[\"kender-ua2\"] = {\r\n\tregExpSearch : /kender/i,\r\n\tname : \"Kender\",\r\n\tsource : [[\"UA:HoKR\", 1]],\r\n\tplural : \"Kender\",\r\n\tsize : 4,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { immune : [\"frightened\"]},\r\n\tskillstxt : \"Choose one from Insight, Investigation, Sleight of Hand, Stealth, or Survival\",\r\n\tabilitySave : [4, 5, 6],\r\n\tfeatures : {\r\n\t\t\"taunt\" : {\r\n\t\t\tname : \"Taunt\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t},\r\n\ttrait : \"Kender\"+\r\n\t\"\\n \\u2022 Fearless: I am immune to the frightened condition.\"+\r\n\t\"\\n \\u2022 Taunt: As a bonus action, I can taunt a creature within 60 ft of me that can hear and understand me. They must make a Wisdom saving throw or have disadvantage on attack rolls not made against me until the start of my next turn. I can do this a number of times per long rest equal to my proficiency bonus. The DC equals 8 + proficiency bonus + Intelligence, Wisdom, or Charisma modifier (one-time choice).\"\r\n};\r\n\r\n// [dupl_start] Backgrounds identical to Dragonlance: Shadow of the Dragon Queen\r\nif (!SourceList[\"D:SotDQ\"]) {\r\n\tBackgroundList[\"knight of solamnia\"] = {\r\n\t\tregExpSearch : /^(?=.*(knight|champion|warrior))(?=.*solamnia).*$/i,\r\n\t\tname : \"Knight of Solamnia\",\r\n\t\tsource : [[\"UA:HoKR\", 2]],\r\n\t\tskills : [\"Athletics\", \"Survival\"],\r\n\t\tgold : 10,\r\n\t\tlanguageProfs : [2],\r\n\t\tequipleft : [\r\n\t\t\t[\"Insignia of rank\", \"\", \"\"],\r\n\t\t\t[\"Deck of cards\", \"\", \"\"]\r\n\t\t],\r\n\t\tequipright : [\r\n\t\t\t[\"Common clothes\", \"\", 3],\r\n\t\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t\t],\r\n\t\tfeature : \"Squire of Solamnia\",\r\n\t\ttrait : [\r\n\t\t\t\"I pledge my sword to the greater good. If I must perish in pursuit of that good, so be it.\",\r\n\t\t\t\"My comrades-in-arms are my family. I'll do whatever it takes to keep them safe.\",\r\n\t\t\t\"The protection of innocent people comes first. All other concerns come second.\",\r\n\t\t\t\"I joined the knights for the free meals, but their lessons grew on me over time.\",\r\n\t\t\t\"I wish my deeds to become the stuff of legends\\xD7just like those of the knighthood's heroic founders.\",\r\n\t\t\t\"A dishonorable act drove me to become a knight. I have acted with honor ever since.\"\r\n\t\t]\r\n\t};\r\n\tBackgroundFeatureList[\"squire of solamnia\"] = {\r\n\t\tdescription : \"I gain the Squire of Solamnia feat. In addition, the Knights of Solamnia provide me free, modest lodging and food at any of their fortresses or encampments.\",\r\n\t\tsource : [[\"UA:HoKR\", 2], [\"UA:HoK\", 3]],\r\n\t\tfeatsAdd: [\"Squire of Solamnia\"],\r\n\t};\r\n\tBackgroundList[\"mage of high sorcery\"] = {\r\n\t\tregExpSearch : /^(?=.*(mage|wizard|magus))(?=.*high)(?=.*sorcery).*$/i,\r\n\t\tname : \"Mage of High Sorcery\",\r\n\t\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 3], [\"UA:HoK\", 4]],\r\n\t\tskills : [\"Arcana\", \"History\"],\r\n\t\tgold : 10,\r\n\t\tlanguageProfs : [2],\r\n\t\tequipleft : [\r\n\t\t\t[\"Bottle of colored ink\", \"\", \"\"],\r\n\t\t\t[\"Ink pen\", \"\", \"\"]\r\n\t\t],\r\n\t\tequipright : [\r\n\t\t\t[\"Common clothes\", \"\", 3],\r\n\t\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t\t],\r\n\t\tfeature : \"Initiate of High Sorcery\",\r\n\t\ttrait : [\r\n\t\t\t\"I wish to use my knowledge of magic to better people's lives.\",\r\n\t\t\t\"My study of magic might reveal all manner of secrets.\",\r\n\t\t\t\"Magic is a means to power, and I will use it to pursue my ambitions.\",\r\n\t\t\t\"I learned magic so I'd be able to protect those I care about.\",\r\n\t\t\t\"I use my magic to maintain the balance between all things.\",\r\n\t\t\t\"Whether in the past, present, or future, I will be the greatest mage ever known.\"\r\n\t\t],\r\n\t\textra : [\r\n\t\t\t\"Choose a Trinket\",\r\n\t\t\t\"Silver disk, recording my heroics\",\r\n\t\t\t\"Piece of a fallen knight's armor\",\r\n\t\t\t\"Pendant with a crown/rose/sword\",\r\n\t\t\t\"Pommel of my mentor's sword\",\r\n\t\t\t\"Favor from someone I defended\",\r\n\t\t\t\"Locket with silver dragon sketch\"\r\n\t\t],\r\n\t\textra : [\r\n\t\t\t\"Choose a Trinket\",\r\n\t\t\t\"Unopened letter from first teacher\",\r\n\t\t\t\"Broken black/red/white wooden wand\",\r\n\t\t\t\"Scroll with incomprehensible formula\",\r\n\t\t\t\"Stone-covered foldable device\",\r\n\t\t\t\"Pouch with triple moon symbol\",\r\n\t\t\t\"Spellbook with triple moon symbol\",\r\n\t\t\t\"Lens to see Nuitari, invisible moon\"\r\n\t\t]\r\n\t};\r\n\tBackgroundFeatureList[\"initiate of high sorcery\"] = {\r\n\t\tdescription : \"I gain the Initiate of High Sorcery feat. In addition, the Mages of High Sorcery provide me with free, modest lodging and food indefinitely at any occupied Tower of High Sorcery and for one night at the home of an organization member.\",\r\n\t\tsource : [[\"D:SotDQ\", 0], [\"UA:HoKR\", 2], [\"UA:HoK\", 3]],\r\n\t\tfeatsAdd: [\"Initiate of High Sorcery\"],\r\n\t};\r\n\r\n\t// Feats tree for Initiate of High Sorcery\r\n\tFeatsList[\"initiate of high sorcery\"] = {\r\n\t\tname : \"Initiate of High Sorcery\",\r\n\t\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\t\tdescription : \"I learn a wizard cantrip and two 1st-levels spell from a list depending on my chosen moon. I can cast each spell once per long rest at its lowest levels without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tdescriptionFull : \"You've received training from magic-users affiliated with the Mages of High Sorcery.\"+\r\n\t\t\"\\n   Choose one of three moons of Krynn to influence your magic: the black moon, Nuitari; the red moon, Lunitari; or the white moon, Solinari. You learn one cantrip of your choice from the wizard spell list and two 1st-level spells based on the moon you choose, as specified in the Lunar Spells table.\"+\r\n\t\t\"\\n   You can cast each of the chosen 1st-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast the spell using any spell slots you have.\"+\r\n\t\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\t\t\"\\n\\n\" + toUni(\"Lunar Spells\")+\r\n\t\t\"\\n\" + toUni(\"Moon\\t1st-level Spell\")+\r\n\t\t\"\\nNuitari\\tChoose two from dissonant whispers, false life,\"+\r\n\t\t\"\\n\\thex, and ray of sickness\"+\r\n\t\t\"\\nLunitari\\tChoose two from color spray, disguise self,\"+\r\n\t\t\"\\n\\tfeather fall, and longstrider\"+\r\n\t\t\"\\nSolinari\\tChoose two from comprehend languages, detect\"+\r\n\t\t\"\\n\\tevil and good, protection from evil and good, and\"+\r\n\t\t\"\\n\\tshield\",\r\n\t\tprerequisite : \"Sorcerer or Wizard Class or Mage of High Sorcery Background\",\r\n\t\tprereqeval : function (v) {\r\n\t\t\treturn classes.known.wizard || classes.known.sorcerer || CurrentBackground.known.indexOf('mage of high sorcery') !== -1;\r\n\t\t},\r\n\t\tchoices : [\"Nuitari\", \"Lunitari\", \"Solinari\"],\r\n\t\t\"nuitari\" : {\r\n\t\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Dissonant Whispers, False Life, Hex, or Ray of Sickness). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\t\tspellcastingAbility : [4,5,6],\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Nuitari 1st-level spell\",\r\n\t\t\t\tspells : [\"dissonant whispers\", \"false life\", \"hex\", \"ray of sickness\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"lunitari\" : {\r\n\t\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Color Spray, Disguise Self, Feather Fall, Longstrider). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\t\tspellcastingAbility : [4,5,6],\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Lunitari 1st-level spell\",\r\n\t\t\t\tspells : [\"color spray\", \"disguise self\", \"feather fall\", \"longstrider\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"solinari\" : {\r\n\t\t\tdescription : \"I learn a wizard cantrip and two 1st-level spells (Comprehend Languages, Detect Evil and Good, Protection from Evil and Good, Shield). I can cast each spell once per long rest at its lowest level without expending a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\t\tspellcastingAbility : [4,5,6],\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Wizard Cantrip\",\r\n\t\t\t\t\"class\" : [\"wizard\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Solinari 1st-level spell\",\r\n\t\t\t\tspells : [\"comprehend languages\", \"detect evil and good\", \"protection from evil and good\", \"shield\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\t\t\ttimes : 2\r\n\t\t\t}]\r\n\t\t}\r\n\t};\r\n\tFeatsList[\"adept of the black robes\"] = {\r\n\t\tname : \"Adept of the Black Robes\",\r\n\t\tsource : [[\"D:SotDQ\", 31], [\"UA:HoKR\", 4]],\r\n\t\tdescription : \"I learn one 2nd-level Ench or Necro spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When a creature I can see within 60 ft fails its save vs. my damaging spell, I can expend HD up to the spell's level and add the rolls to the damage of the spell for that one creature.\",\r\n\t\tdescriptionFull : \"You chose the moon Nuitari to influence your magic, and your ambition and loyalty to the Order of the Black Robes has been recognized, granting you these benefits:\"+\r\n\t\t\"\\n   \" + toUni(\"Ambitious Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the evocation or necromancy school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\t\"\\n   \" + toUni(\"Life Channel\") + \". You can channel your lifeforce into the power of your magic. When a creature you can see within 60 feet fails on a saving throw against a spell that deals damage that you cast, you can expend a number of Hit Dice equal to the level of the spell. Roll the expended Hit Dice and add them together. The damage that the creature takes increases by an amount equal to that total.\",\r\n\t\tprerequisite : \"4th level, Initiate of High Sorcery (Nuitari) feat\",\r\n\t\tprereqeval : function(v) {\r\n\t\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'nuitari';\r\n\t\t},\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"2nd-level Evoc/Necro spell\",\r\n\t\t\t\"class\" : \"any\",\r\n\t\t\tschool : [\"Evoc\", \"Necro\"],\r\n\t\t\tlevel : [2, 2],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 'initiate of high sorcery_-_nuitari',\r\n\t\tallowUpCasting : true\r\n\t};\r\n\tFeatsList[\"adept of the red robes\"] = {\r\n\t\tname : \"Adept of the Red Robes\",\r\n\t\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\t\tdescription : \"I learn a 2nd-level Illusion or Transmutation spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. When I roll 9 or lower on the d20 for an attack or ability check, I can treat the roll as a 10. I can do this a number of times per long rest equal to my proficiency bonus.\",\r\n\t\tdescriptionFull : \"You chose the moon Lunitari to influence your magic, and your dedication to maintaining the balance between all things has been recognized by the Order of the Red Robes, granting you these benefits:\"+\r\n\t\t\"\\n   \" + toUni(\"Insightful Magic\") + \". You learn one 2nd-level spell of your choice. The 2nd-level spell must be from the illusion or transmutation school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\t\"\\n   \" + toUni(\"Magical Balance\") + \". When you make an attack roll, an ability check, or a saving throw, and roll a 9 or lower on the d20, you can use your reaction to balance fate and treat the roll as a 10. you can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\t\tprerequisite : \"4th level, Initiate of High Sorcery (Lunitari) feat\",\r\n\t\tprereqeval : function(v) {\r\n\t\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'lunitari';\r\n\t\t},\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"2nd-level Illus/Trans spell\",\r\n\t\t\t\"class\" : \"any\",\r\n\t\t\tschool : [\"Illus\", \"Trans\"],\r\n\t\t\tlevel : [2, 2],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 'initiate of high sorcery_-_lunitari',\r\n\t\tallowUpCasting : true\r\n\t};\r\n\tFeatsList[\"adept of the white robes\"] = {\r\n\t\tname : \"Adept of the White Robes\",\r\n\t\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\t\tdescription : \"I learn one 2nd-level Abjur or Div spell, which I can cast once per long rest at its lowest level without a spell slot, or as normal with one. As a reaction when I or a creature I can see within 30 ft is damaged, I can expend a spell slot and roll d6s equal to its level to reduce the damage by that much + my spellcasting modifier.\",\r\n\t\tdescriptionFull : \"You chose the moon Solinari to influence your magic, and your oath to use magic to make the world a better place has been recognized by the Order of the White Robes, granting you these benefits:\"+\r\n\t\t\"\\n   \" + toUni(\"Protective Magic\") + \". You learn one 2nd-level spell of you choice. The 2nd-level spell must be from the abjuration or divination school of magic. You can cast this feat's 2nd-level spell without a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gain the Initiate of High Sorcery feat.\"+\r\n\t\t\"\\n   \" + toUni(\"Protective Ward\") + \". When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to expend a spell slot and weave protective magic around the target. Roll a number of d6s equal to the level of the spell slot expended and reduce the damage the target takes by the total rolled on those dice + your spellcasting ability modifier.\",\r\n\t\tprerequisite : \"4th level, Initiate of High Sorcery (Solinari) feat\",\r\n\t\tprereqeval : function(v) {\r\n\t\t\tvar iHghSrcyInit = CurrentFeats.known.indexOf(\"initiate of high sorcery\");\r\n\t\t\treturn v.characterLevel >= 4 && iHghSrcyInit !== -1 && CurrentFeats.choices[iHghSrcyInit] === 'solinari';\r\n\t\t},\r\n\t\taction : [[\"reaction\", \"\"]],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"2nd-level Abjur/Div spell\",\r\n\t\t\t\"class\" : \"any\",\r\n\t\t\tschool : [\"Abjur\", \"Div\"],\r\n\t\t\tlevel : [2, 2],\r\n\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 'initiate of high sorcery_-_solinari',\r\n\t\tallowUpCasting : true\r\n\t};\r\n\r\n\t// Feat Divinely Favored\r\n\tFeatsList[\"divinely favored\"] = {\r\n\t\tname : \"Divinely Favored\",\r\n\t\tsource : [[\"D:SotDQ\", 32], [\"UA:HoKR\", 4]],\r\n\t\tdescription : \"I learn a cleric cantrip, a 1st-level spell based on my alignment, and Augury. I can cast the spells each once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I can choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\tdescriptionFull : \"A god has chosen you to carry a spark of their divine power.\"+\r\n\t\t\"\\n   You learn one cantrip of your choice from the cleric spell list and one 1st-level spell based on the alignment of your character, as specified in the table below. You also learn the augury spell.\"+\r\n\t\t\"\\n   You can cast the chosen 1st-level spell and the augury spell without a spell slot, and you must finish a long rest before you can cast either of these spells in this way again. You can also cast these spells using spell slots you have of the appropriate level.\"+\r\n\t\t\"\\n   Your spellcasting ability for this feat's spells is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\t\t\"\\n\\n\" + toUni(\"Alignment\\t1st-level Spell\")+\r\n\t\t\"\\n Evil\\t\\tChoose one 1st level warlock spell\"+\r\n\t\t\"\\n Good\\t\\tChoose one 1st-level cleric spell\"+\r\n\t\t\"\\n Neutral\\t\\tChoose one 1st-level druid spell\"+\r\n\t\t\"\\n\\n   In addition, you can use a holy symbol as a spellcasting focus for any spell you cast that uses the spellcasting ability you choose when you select this feat.\",\r\n\t\tchoices : [\"Evil (warlock spell)\", \"Good (cleric spell)\", \"Neutral (druid spell)\"],\r\n\t\t\"evil (warlock spell)\" : {\r\n\t\t\tname : \"Divinely Favored [Evil]\",\r\n\t\t\tdescription : \"I learn a cleric cantrip, a 1st-level warlock spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\t\tspellcastingAbility : [4,5,6],\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"1st-level Warlock Spell\",\r\n\t\t\t\t\"class\" : [\"warlock\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Augury\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"good (cleric spell)\" : {\r\n\t\t\tname : \"Divinely Favored [Good]\",\r\n\t\t\tdescription : \"I learn a cleric cantrip, a 1st-level cleric spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\t\tspellcastingAbility : [4,5,6],\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"1st-level Cleric Spell\",\r\n\t\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Augury\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"neutral (druid spell)\" : {\r\n\t\t\tname : \"Divinely Favored [Neutral]\",\r\n\t\t\tdescription : \"I learn a cleric cantrip, a 1st-level druid spell, and Augury. I can cast each spell once per long rest at their lowest level without a spell slot, or by using a spell slot as normal. I choose Int, Wis, or Cha as my spellcasting ability for this. I can use a holy symbol as a spellcasting focus for any spell that uses the chosen ability.\",\r\n\t\t\tspellcastingAbility : [4,5,6],\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Cleric Cantrip\",\r\n\t\t\t\t\"class\" : [\"cleric\"],\r\n\t\t\t\tlevel : [0, 0],\r\n\t\t\t}, {\r\n\t\t\t\tname : \"1st-level Druid Spell\",\r\n\t\t\t\t\"class\" : [\"druid\"],\r\n\t\t\t\tlevel : [1, 1],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}, {\r\n\t\t\t\tname : \"Augury\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : \"oncelr+markedbox\"\r\n\t\t\t}]\r\n\t\t}\r\n\t};\r\n} // dupl_end\r\n\r\n// Feats tree for Squire of Solamnia\r\nvar UA_HoKR_KnightlyManeuvers_Notes = function (n) {\r\n\t// Get the name, source, and description from the maneuver of the Battle Master subclass, if that subclass is present\r\n\tif (ClassSubList[\"fighter-battle master\"] && ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"] && ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"][n]) {\r\n\t\tvar sourceObj = ClassSubList[\"fighter-battle master\"].features[\"subclassfeature3.1\"][n];\r\n\t} else {\r\n\t\t// Subclass or maneuver not found, thus only add the name\r\n\t\tvar sourceObj = {\r\n\t\t\tname : n.capitalize(),\r\n\t\t\tsource : [[\"P\", 74]],\r\n\t\t\tdescription : \"\"\r\n\t\t};\r\n\t}\r\n\treturn {\r\n\t\tname : sourceObj.name,\r\n\t\tsource : sourceObj.source,\r\n\t\tnote : sourceObj.description,\r\n\t\tpage3notes : true,\r\n\t\tadditional : \"Knightly Maneuver\"\r\n\t};\r\n};\r\nFeatsList[\"squire of solamnia-ua2\"] = {\r\n\tname : \"Squire of Solamnia\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"Mounting/dismounting costs a 5-ft move. I learn one Knightly Maneuver: Lunging Attack, Precision Attack, or Pushing Attack. I can change which I know after each long rest. The DC is 8 + Prof B + Str or Dex mod (my choice). I gain Prof Bonus of Superiority Dice (d6) to use with these, regaining them after a long rest.\",\r\n\tcalculate : \"event.value = 'Mounting/dismounting costs a 5-ft move. I learn one Knightly Maneuver: Lunging Attack, Precision Attack, or Pushing Attack. DC is ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Dex Mod')))) + ' (8 + Prof Bonus + Str/Dex mod). I can change which I know after each long rest. I gain Prof Bonus of Superiority Dice (d6) to use with these, regaining them after a long rest.';\",\r\n\tdescriptionFull : \"Your training in the ways of the Knights of Solamnia grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Mount Up\") + \". Mounting or dismounting costs you only 5 feet of movement.\"+\r\n\t\"\\n   \" + toUni(\"Squire Maneuvers\") + \". You learn the Lunging Attack, Precision Attack, or Pushing Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with another one from the list above.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain a number of superiority dice equal to your proficiency bonus. These dice are d6s, and you can use them only with the maneuver you gain from this feat and with any maneuvers you gain from feats that have this feat as a prerequisite. A superiority die is expended when you use it, and you regain all expended superiority dice when you finish a long rest.\",\r\n\tprerequisite : \"Fighter or Paladin Class or Knight of Solamnia Background\",\r\n\tprereqeval : function (v) {\r\n\t\treturn classes.known.fighter || classes.known.paladin || CurrentBackground.known.indexOf('knight of solamnia') !== -1;\r\n\t},\r\n\tlimfeaname : \"Knightly Superiority Dice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"var total = CurrentFeats.known.indexOf('squire of solamnia-ua2') === -1 ? 0 : Number(How('Proficiency Bonus')); for (var i = 0; i < CurrentFeats.known.length; i++) { var oFeat = FeatsList[CurrentFeats.known[i]]; if (oFeat && oFeat.knightlySuperiority && oFeat.knightlySuperiority.use) { total += oFeat.knightlySuperiority.use; }; }; event.value = total;\", // complex because it works for all feats\r\n\trecovery : \"long rest\",\r\n\tadditional : 'd6',\r\n\tknightlySuperiority : {\r\n\t\tdie : 6,\r\n\t\tprereq : true\r\n\t},\r\n\ttoNotesPage : [\"lunging attack\", \"precision attack\", \"pushing attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the crown-ua2\"] = {\r\n\tname : \"Knight of the Crown\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Distracting Strike or Goading Attack. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Strength or Dexterity]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Crown, a group that extols the virtues of cooperation, loyalty, and obedience. You excel in group combat and gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength or Dexterity score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Crown Maneuvers\") + \". You learn the Distracting Strike or the Goading Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Strength or Dexterity\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\ttoNotesPage : [\"distracting strike\", \"goading attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the sword-ua2\"] = {\r\n\tname : \"Knight of the Sword\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Maneuvering Attack or Menacing Attack. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Intelligence, Wisdom, or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Sword, a group devoted to heroism and courage. Bravery steels your spirit, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Sword Maneuvers\") + \". You learn the Maneuvering Attack or the Menacing Attack maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). If the maneuver requires a saving throw, the save's DC equals 8 + your proficiency bonus + your Strength or Dexterity modifier (your choice). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Intelligence, Wisdom, or Charisma\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\ttoNotesPage : [\"maneuvering attack\", \"menacing attack\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\nFeatsList[\"knight of the rose-ua2\"] = {\r\n\tname : \"Knight of the Rose\",\r\n\tsource : [[\"UA:HoKR\", 5]],\r\n\tdescription : \"I learn one extra Knightly Maneuver: Commander's Strike or Rally. I can change which one of these I know after each long rest. I gain two extra Knightly Superiority Dice and the dice become d8s. [+1 Constitution or Charisma]\",\r\n\tdescriptionFull : \"You are a Knight of Solamnia aligned with the Order of the Rose, a group known for leadership, justice, and wisdom. Your resolve grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Rose Maneuvers\") + \". You learn the Commander's Strike or Rally maneuver from the Battle Master subclass of the fighter in the Player's Handbook (choose the maneuver when you gain this feat). Whenever you finish a long rest, you can replace the maneuver you learned from this feat with the other maneuver offered by it.\"+\r\n\t\"\\n   \" + toUni(\"Superiority Dice\") + \". You gain two superiority dice, which you add to the dice you have from the Squire of Solamnia feat. All the dice are now d8s.\",\r\n\tprerequisite : \"4th level, Squire of Solamnia feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"squire of solamnia-ua2\") !== -1; },\r\n\tscorestxt : \"+1 Constitution or Charisma\",\r\n\tknightlySuperiority : {\r\n\t\tdie : 8,\r\n\t\tuse : 2\r\n\t},\r\n\taction : [\r\n\t\t[\"bonus action\", \"Commander's Strike (with Attack action)\"],\r\n\t\t[\"bonus action\", \"Rally\"]\r\n\t],\r\n\ttoNotesPage : [\"commander's strike\", \"rally\"].map(UA_HoKR_KnightlyManeuvers_Notes)\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20220523_Giant-Options.js",
    "content": "// This file adds the content from the Unearthed Arcana 2022: Giant Options article to MPMB's Character Record Sheet\r\n// Contains contributions by Thravieus Windhelm / PoetOfGod (GitHub) / @PoetOfGod#6077 (Discord)\r\nvar iFileName = \"ua_20220523_Giant-Options.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n\r\nSourceList[\"UA:GO\"] = {\r\n\tname : \"Unearthed Arcana: Giant Options\",\r\n\tabbreviation : \"UA:GO\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-drjwf73f8n.pdf\",\r\n\tdate : \"2022/05/23\"\r\n};\r\n\r\nAddSubClass(\"barbarian\", \"giant-ua\", {\r\n\tregExpSearch : /^((?=.*(marauder|barbarian|viking|(norse|tribes?|clans?)(wo)?m(a|e)n))|((?=.*(warrior|fighter))(?=.*(feral|tribal))))(?=.*giant).*$/i,\r\n\tsubname : \"Path of the Giant\",\r\n\tsubnameShort: \"Giant\",\r\n\tsource : [[\"UA:GO\", 1]],\r\n\tabilitySave : 1,\r\n\tspellcastingAbility : 5,\r\n\tfeatures : {\r\n\t\t\"subclassfeature3\" : {\r\n\t\t\tname : \"Giant Power\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : desc(\"I learn Giant, and the Druidcraft or Thaumaturgy cantrip with Wis as spellcasting ability\"),\r\n\t\t\tlanguageProfs : [\"Giant\"],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Giant Power\",\r\n\t\t\t\tspells : [\"druidcraft\", \"thaumaturgy\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature3.1\" : {\r\n\t\t\tname : \"Giant's Havoc\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 3,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"While raging, I add the bonus damage to ranged thrown weapon attacks that use Str,\",\r\n\t\t\t\t\t\"I gain +\" + (n < 14 ? 5 : 10) + \" ft reach, and I become \" + (n < 14 ? 'Large' : 'Huge') + \" along with what I'm wearing, if there is room\"\r\n\t\t\t\t]);\r\n\t\t\t})\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Elemental Cleaver\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn desc([\r\n\t\t\t\t\t\"When I rage, I can infuse a weapon I'm holding with acid, cold, fire, thunder, or lightning\",\r\n\t\t\t\t\t\"While raging, its damage type changes to the chosen type and it deals +\" + (n < 14 ? 1 : 2) + \"d6 damage,\",\r\n\t\t\t\t\t\"it gains the thrown (20/60 ft) property, and reappears instantly after a thrown attack\",\r\n\t\t\t\t\t\"As a bonus action, I can change the chosen type; The bonuses only function for me\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \" (change type)\"]],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif ((v.isMeleeWeapon || v.isRangedWeapon) && classes.known.barbarian && classes.known.barbarian.level && /^(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\tfields.Damage_Type = \"Varies\";\r\n\t\t\t\t\t\t\tvar isThrownWeapon = /\\bthrown\\b/i.test(v.WeaponText);\r\n\t\t\t\t\t\t\tvar extraDmg = classes.known.barbarian.level < 14 ? '+1d6 damage' : '+2d6 damage';\r\n\t\t\t\t\t\t\tvar extraProp = v.isRangedWeapon && !isThrownWeapon ? 'Thrown (20/60 ft), returning; ' : isThrownWeapon ? 'Returning; ' : 'Thrown, returning; ';\r\n\t\t\t\t\t\t\tvar hasRange = /\\d+ ?(f.{0,2}t|m)/i.test(fields.Range);\r\n\t\t\t\t\t\t\tif (!hasRange) {\r\n\t\t\t\t\t\t\t\tfields.Range += ', 20/60 ft';\r\n\t\t\t\t\t\t\t} else if ((!v.isRangedWeapon || isThrownWeapon) && hasRange) {\r\n\t\t\t\t\t\t\t\tvar rangeNmbr = fields.Range.match(/\\d+([.,]\\d+)?/g);\r\n\t\t\t\t\t\t\t\tif (rangeNmbr.length === 1) {\r\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[0].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = fields.Range.replace(longRange,\"long_range\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tvar shortRange = Number(rangeNmbr[0].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\tvar longRange = Number(rangeNmbr[1].replace(',', '.'));\r\n\t\t\t\t\t\t\t\t\ttempRange = fields.Range;\r\n\t\t\t\t\t\t\t\t\tif (shortRange < 20) tempRange = tempRange.replace(shortRange,\"short_range\");\r\n\t\t\t\t\t\t\t\t\tif (longRange < 60) tempRange = tempRange.replace(longRange,\"long_range\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfields.Range = tempRange.replace(\"short_range\", 20).replace(\"long_range\", 60);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfields.Description += (fields.Description ? '; ' : '') + extraProp + extraDmg;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"If I include the words 'Elemental Cleaver' in a weapon's name, the Elemental Cleaver infused weapon properties will be added to it and its damage type will be set to 'Acid'. Also, my Rage's bonus damage will be added to it if it is a melee weapon that uses Strength.\"\r\n\t\t\t\t],\r\n\t\t\t\tatkCalc : [\r\n\t\t\t\t\tfunction (fields, v, output) {\r\n\t\t\t\t\t\tif (v.isMeleeWeapon && fields.Mod === 1 && classes.known.barbarian && classes.known.barbarian.level && /^(?!.*\\brage\\b)(?=.*elemental)(?=.*cleaver).*$/i.test(v.WeaponTextName)) {\r\n\t\t\t\t\t\t\toutput.extraDmg += classes.known.barbarian.level < 9 ? 2 : classes.known.barbarian.level < 16 ? 3 : 4;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Mighty Impel\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : levels.map(function (n) {\r\n\t\t\t\treturn \" [DC 8 + Prof Bonus + Str mod]\" + desc([\r\n\t\t\t\t\t\"As a bonus action while raging, I can hurl a \" + (n < 14 ? 'Medium' : 'Large') + \" or smaller creature within my reach\",\r\n\t\t\t\t\t\"I move it to an empty space I can see within 30 ft; Unwilling can save to avoid this\",\r\n\t\t\t\t\t\"If it doesn't end this movement on a surface that can support it, it falls and lands prone\"\r\n\t\t\t\t]);\r\n\t\t\t}),\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Demiurgic Colossus\",\r\n\t\t\tsource : [[\"UA:GO\", 1]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"While raging, my reach increases by 10 ft, and my size can increase to Huge\",\r\n\t\t\t\t\"Mighty Impel works on Large creatures; Elemental Cleaver increases to +2d6 damage\",\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"druid\", \"circle of the primeval-ua\", {\r\n\tregExpSearch : /^(?=.*(druid|shaman))(?=.*(primeval|behemoth)).*$/i,\r\n\tsubname : \"Circle of the Primeval\",\r\n\tsubnameShort: \"Primeval\",\r\n\tsource : [[\"UA:GO\", 2]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Keeper of Old\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc(\"I gain proficiency in History; I can add d4 to my Intelligence (History) checks\"),\r\n\t\t\tskills : [\"History\"]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Primeval Companion\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can expend a use of wild shape to summon a primeval companion\",\r\n\t\t\t\t\"The companion appears in an empty spot within 30 ft with the appearance of my choice\",\r\n\t\t\t\t\"It vanishes when reduced to 0 hit points, when I die, and when I summon another one\"\r\n\t\t\t]),\r\n\t\t\taction : [\r\n\t\t\t\t[\"action\", \"Summon Primeval Companion\"],\r\n\t\t\t\t[\"bonus action\", \"Command Primeval Companion\"]\r\n\t\t\t],\r\n\t\t\tcreaturesAdd : [[\"Primeval Companion\", true]],\r\n\t\t\tcreatureOptions : [{\r\n\t\t\t\tname : \"Primeval Companion\",\r\n\t\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\t\tsize : 3,\r\n\t\t\t\ttype : \"Beast\",\r\n\t\t\t\talignment : \"Neutral\",\r\n\t\t\t\tac : \"11+Dex+Prof\",\r\n\t\t\t\thp : 20,\r\n\t\t\t\thd : [2, 10],\r\n\t\t\t\thdLinked : [\"druid\"],\r\n\t\t\t\tminlevelLinked : [\"druid\"],\r\n\t\t\t\tspeed : \"30 ft\",\r\n\t\t\t\tscores : [15, 15, 17, 6, 12, 8],\r\n\t\t\t\tsaves : [\"\", 4, 5, \"\", \"\", \"\"],\r\n\t\t\t\tsenses : \"Darkvision 60 ft\",\r\n\t\t\t\tpassivePerception : 11,\r\n\t\t\t\tlanguages : \"Understands the languages of its summoner\",\r\n\t\t\t\tchallengeRating : \"0\",\r\n\t\t\t\tproficiencyBonus : 2,\r\n\t\t\t\tproficiencyBonusLinked : true,\r\n\t\t\t\tattacksAction : 1,\r\n\t\t\t\tattacks : [{\r\n\t\t\t\t\tname : \"Strike\",\r\n\t\t\t\t\tability : 1,\r\n\t\t\t\t\tdamage : [1, 8, \"bludgeoning\"],\r\n\t\t\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\t\t\trange : \"Melee (5 ft)\",\r\n\t\t\t\t\tdescription : \"My choice of bludgeoning, piercing, or slashing damage\",\r\n\t\t\t\t\tabilitytodamage : false\r\n\t\t\t\t}],\r\n\t\t\t\tfeatures : [{\r\n\t\t\t\t\tname : \"Primeval Companion\",\r\n\t\t\t\t\tdescription : \"The primeval companion obeys the commands of its summoner and shares its proficiency bonus. It takes its turn immediately after that of its summoner, on the same initiative. It can move and take reactions on its own, but only takes the Dodge action on its turn unless its summoner takes a bonus action to command it to take another action. If its summoner is incapacitated, the companion can take any action, not just Dodge. The companion vanishes when it is reduced to 0 hit points, when its summoner summons another companion, or when its summoner dies.\"\r\n\t\t\t\t}],\r\n\t\t\t\ttraits : [{\r\n\t\t\t\t\tname : \"Intercept attack\",\r\n\t\t\t\t\tdescription : \"As a reaction when a creature the companion can see hits a target within 5 ft of the companion with an attack, the target instead takes half the damage. The companion takes the remainder of the damage\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Prehistoric Conduit (Circle of the Primeval 6)\",\r\n\t\t\t\t\tminlevel : 6,\r\n\t\t\t\t\tdescription : \"Spells cast by the companion's summoner with a range other than self can originate from the companion instead. Also, the companion has advantage on saving throws against spells cast by its summoner. If the companion would normally take half damage on a successful save against these spells, instead, it takes no damage on a success and half and no other effects on a fail.\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname : \"Titanic Bond (Circle of the Primeval 10)\",\r\n\t\t\t\t\tminlevel : 10,\r\n\t\t\t\t\tdescription : \"The companion's size is now Large and it gains either a swimming or climbing speed equal to its walking speed.\",\r\n\t\t\t\t\teval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 2); // Large\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"swim/climb 30 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\ttDoc.getField(prefix + \"Comp.Use.Speed\").value += sMoveStr;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tremoveeval : function(prefix, lvl) {\r\n\t\t\t\t\t\tPickDropdown(prefix + \"Comp.Desc.Size\", 3); // Medium\r\n\t\t\t\t\t\tvar sMoveStr = (typePF ? \",\\n\" : \", \") + \"swim or climb 30 ft\";\r\n\t\t\t\t\t\tif (What(\"Unit System\") === \"metric\") sMoveStr = ConvertToMetric(sMoveStr, 0.5);\r\n\t\t\t\t\t\tValue(prefix + \"Comp.Use.Speed\", What(prefix + \"Comp.Use.Speed\").replace(sMoveStr, \"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}],\r\n\t\t\t\tcalcChanges : {\r\n\t\t\t\t\thp : function (totalHD, HDobj, prefix) {\r\n\t\t\t\t\t\tif (!classes.known.druid) return;\r\n\t\t\t\t\t\tvar drdLvl = classes.known.druid.level;\r\n\t\t\t\t\t\tvar drdLvlM = 5 * drdLvl;\r\n\t\t\t\t\t\tHDobj.alt.push(10 + drdLvlM);\r\n\t\t\t\t\t\tHDobj.altStr.push(\" = 10 as a base\\n + 5 \\xD7 \" + drdLvl + \" from five times its summoner's druid level (\" + drdLvlM + \")\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsetAltHp : true\r\n\t\t\t\t}\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Prehistoric Conduit\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Spells I cast with the range of touch can originate from my primeval companion\",\r\n\t\t\t\t\"The primeval companion has advantage on saving throws against my spells\",\r\n\t\t\t\t\"If the companion would take half damage on a successful save against a spell I cast,\",\r\n\t\t\t\t\"it instead takes no damage on a success and half damage and no other effects on a fail\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Titanic Bond\",\r\n\t\t\tsource : [[\"UA:GO\", 2]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"My companion grows to Large; it gains a climb or swim speed equal to its walking speed\",\r\n\t\t\t\t\"When I hit an attack or spell damage a creature I can see, I can have it make a Wis save\",\r\n\t\t\t\t\"If failed, the target is frightened of me until the end of my next turn\",\r\n\t\t\t\t\"I can do this only while my primeval companion is summoned, and only once per turn\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Scourge of the Ancients\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I use a bonus action to command my companion, I can expend a spell slot so that:\",\r\n\t\t\t\t\" \\u2022 It becomes Huge if there is room, and gains 10 times the spell slot level in temp HP\",\r\n\t\t\t\t\" \\u2022 On a hit, the companion's Strike deals an extra 1d8 + the spell slot level damage\",\r\n\t\t\t\t\" \\u2022 Its walking (and climbing or swimming) speed increases with 5 ft per spell slot level\",\r\n\t\t\t\t\"These benefits last for 1 hour, until the companion vanishes, or until I use this again\"\r\n\t\t\t])\r\n\t\t}\r\n\t}\r\n});\r\n\r\nAddSubClass(\"wizard\", \"runecrafter-ua\", {\r\n\tregExpSearch : /runecrafting|runecrafter/i,\r\n\tsubname : \"Tradition of Runecrafting\",\r\n\tsubnameShort: \"Runecrafting\",\r\n\tfullname : \"Runecrafter\",\r\n\tsource : [[\"UA:GO\", 3]],\r\n\tfeatures : {\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Runes of Understanding\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I always have Comprehend Languages prepared and can cast it without using a spell slot\",\r\n\t\t\t\t\"It doesn't count against the number of spells I can prepare\"\r\n\t\t\t]),\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Runes of Understanding\",\r\n\t\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"subclassfeature2.1\" : {\r\n\t\t\tname : \"Runic Empowerment\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"When I cast a spell using a spell slot, I can invoke one of the following runes:\",\r\n\t\t\t\t\" \\u2022 Life Rune: Me or a creature I can see within 30 ft gains 5 temp HP per spell slot level\",\r\n\t\t\t\t\" \\u2022 War Rune: A creature I can see within 30 ft is marked until the end of my next turn\",\r\n\t\t\t\t\"   Attack rolls against it gain a bonus equal to half the spell slot level, rounded up\",\r\n\t\t\t\t\" \\u2022 Wind Rune: Until my next turn starts, my speed increases by 5 ft per spell slot level\",\r\n\t\t\t\t\"   Additionally, my movement doesn't provoke opportunity attacks\"\r\n\t\t\t]),\r\n\t\t\tusages : \"Prof Bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Sigils of Warding\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a reaction when I fail a Strength, Dexterity, or Constitution save, I can call on a rune\",\r\n\t\t\t\t\"I expend a use of my Runic Empowerment feature and succeed on the save instead\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"subclassfeature10\" : {\r\n\t\t\tname : \"Rune Maven\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 10,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"Whenever I use Arcane Recovery, I also regain uses of Runic Empowerment\",\r\n\t\t\t\t\"I regain a number of uses equal to half my Intelligence modifier, rounded up (min 1)\"\r\n\t\t\t])\r\n\t\t},\r\n\t\t\"subclassfeature14\" : {\r\n\t\t\tname : \"Engraved Enmity\",\r\n\t\t\tsource : [[\"UA:GO\", 3]],\r\n\t\t\tminlevel : 14,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can have a creature I can see within 60 ft make a Wisdom save\",\r\n\t\t\t\t\"If failed, it is marked by an enmity rune for 1 min, or until I lose my concentration\",\r\n\t\t\t\t\"A glowing energy mote hovers over the marked and it suffers the following effects:\",\r\n\t\t\t\t\" \\u2022 The marked has disadvantage on saving throws against spells I cast\",\r\n\t\t\t\t\" \\u2022 The glow makes the marked visible even if invisible, and they can't become invisible\",\r\n\t\t\t\t\" \\u2022 When marking and as a bonus action on subsequent turns, I can curse the creature\",\r\n\t\t\t\t\"   The next time an ally hits the cursed with an attack, it also takes 1d8 force damage\",\r\n\t\t\t\t\"I can do this once per long rest, or by expending a 3rd-level or higher spell slot (SS 3+)\"\r\n\t\t\t]),\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tusages : 1,\r\n\t\t\taltResource : \"SS 3+\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t}\r\n\t}\r\n});\r\n\r\n/*\tFeats\r\n\tAll the below feats are the work of PoetOfGod and have not been double-checked\r\n\tby Safety-Orange, because the \"Revised\" article \"Wonders of the Multiverse\"\r\n\thas already been published, superseding all these feats with newer versions.\r\n*/\r\nFeatsList[\"elemental touched-ua\"] = {\r\n\tname : \"Elemental Touched\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Planes, granting you a measure of control over the natural world around you. You learn either the druidcraft or thaumaturgy cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you gain this feat).\\n   Whenever you finish a long rest, you can choose which element you are attuned to: Air, Earth, Fire, or Water. Depending on your choice, you can use a bonus action to cause one of the following effects:\"+\r\n\t\"\\n\\n\" + toUni(\"Air\") + \". You gain a fly speed equal to your walking speed until the end of your turn. If you are airborne at the end of your turn after using this movement and aren't held aloft by other means, you fall.\"+\r\n\t\"\\n\" + toUni(\"Earth\") + \". You cause the ground within 30 feet of you to become difficult terrain for 1 minute or until you create this effect again. During that time, you can move across ground that is difficult terrain without spending extra movement.\"+\r\n\t\"\\n\" + toUni(\"Fire\") + \". You surround yourself in a cloud of ash and smoke. Until the end of your turn, your movement doesn't provoke opportunity attacks.\"+\r\n\t\"\\n\" + toUni(\"Water\") + \". You can create a forceful surge of water directed at a creature within 15 feet of you that you can see. The creature must succeed on a Strength saving throw (which it can choose to fail) against a DC equal to 8 + your spellcasting ability modifier + your proficiency bonus or be pushed up to 10 feet away from you. The water vanishes immediately after the creature succeeds or fails.\"+\r\n\t\"\\n\\nYou can create this effect a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I learn druidcraft or thaumaturgy. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Druidcraft\", \"Thaumaturgy\"],\r\n\t\"druidcraft\" : {\r\n\t\tdescription : \"I learn druidcraft. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Touched\",\r\n\t\t\tspells : [\"druidcraft\"],\r\n\t\t\tselection : [\"druidcraft\"]\r\n\t\t}]\r\n\t},\r\n\t\"thaumaturgy\" : {\r\n\t\tdescription : \"I learn thaumaturgy. End of a LR pick Air, Earth, Fire, Water, as a bns action: Air. Gain fly spd = to walk spd, fall at end of turn; Earth. 30 ft rad diff terr for 1 min, move freely through diff terr; Fire. No opp atks this turn; Water. 1 visible crea w/in 15 ft Str save DC 8 + SC mod + Prof or pushed 10 ft away. Prof Uses / LR.\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Touched\",\r\n\t\t\tspells : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"]\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"outsized might-ua\"] = {\r\n\tname : \"Outsized Might\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tdescriptionFull : \"You have absorbed primeval magic that allows you, despite your relatively small stature, to embody the might of titanic creatures. This grants you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Little but Mighty\") + \". You gain proficiency in either the Athletics or Acrobatics skill.\"+\r\n\t\"\\n\" + toUni(\"Powerful Build\") + \". You count as one size larger when determining your carrying capacity and the amount you can push, drag, or lift.\"+\r\n\t\"\\n\" + toUni(\"Stalwart\") + \". You have advantage on saving throws against being moved or knocked prone.\",\r\n\tdescription : \"I gain proficiency in Athletics or Acrobatics. I count as one size larger when determining my carrying capacity and the amount I can push, drag, or lift. I have advantage on saving throws against being moved or knocked prone.\",\r\n\tskillstxt : \"Choose Athletics or Acrobatics\",\r\n\tcarryingCapacity : 2,\r\n\tsavetxt : { adv_vs : [\"moved\", \"prone\"]}\r\n};\r\n\r\n// X of the X Giant feats\r\nFeatsList[\"ember of the fire giant-ua\"] = {\r\n\tname : \"Ember of the Fire Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\r\n\t\"\\n\" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace one of your attacks with a magical burst of flame. Each creature of your choice within 15 feet of you that can see you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + your Constitution modifier). On a failed save, a creature takes fire damage equal to 2d6 + your proficiency bonus and is blinded until the start of your next turn; on a successful save, the creature takes half as much damage with no additional effects. You can use your Searing Ignition a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I gain resistance to fire damage. When I take the Attack action on my turn I can use an attack to instead make each creature I choose within 15 ft roll a Dex save DC 8 + Prof + Con mod. On a fail they take 2d6 + Prof Fire dmg, blinded until the start of my next turn. Success halves and no other effect. Prof Uses / LR.\",\r\n\taction : [[\"action\", \"Searing Ignition (as Attack action)\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Fire\"]\r\n};\r\nFeatsList[\"fury of the frost giant-ua\"] = {\r\n\tname : \"Fury of the Frost Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\r\n\t\"\\n\" + toUni(\"Frigid Vengeance\") + \". When a creature hits you with an attack roll, you can use your reaction to retaliate with a burst of magical ire. The creature must succeed on a Wisdom saving throw (DC equals 8 + your proficiency bonus + your Consitution modifier) or be frightened of you until the start of its next turn. You can use your reaction in this way a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"I gain resistance to cold damage. When I am hit with an attack roll I can use my reaction to make them roll a Wis save DC 8 + Prof + Con mod. On a failure they are frightened until the start of their next turn. Prof Uses / LR.\",\r\n\taction : [[\"reaction\", \"Frigid Vengeance\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Cold\"]\r\n};\r\nFeatsList[\"guile of the cloud giant-ua\"] = {\r\n\tname : \"Guile of the Cloud Giant\",\r\n\tsource : [[\"UA:GO\", 4]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested the airy speech and magic emblematic of cloud giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Misty Form\") + \". You can cast the blur spell without using a spell slot or material components. When you cast the spell in this way, the spell doesn't require you to maintain concentration on it. Once you cast the spell in this way, you can't do so again until you finish a long rest. You can also cast this spell in the normal way using spell slots you have of appropriate level.\"+\r\n\t\"\\nIntelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat).\"+\r\n\t\"\\n\" + toUni(\"Silver Tongue\") + \". You gain proficiency in either the Deception or Persuasion skill. Your proficiency bonus is doubled for any ability check you make using this skill.\",\r\n\tdescription : \"I gain proficiency and expertise in Deception or Persuasion. Once per long rest I can cast Blur without using a spell slot, material components, or concentration. I can also cast it normally with spell slots.\",\r\n\tskillstxt : \"Choose Deception or Persuasion. You also gain expertise with that skill\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Guile of the Cloud Giant\",\r\n\t\tspells : [\"blur\"],\r\n\t\tselection : [\"blur\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}]\r\n};\r\nFeatsList[\"keenness of the stone giant-ua\"] = {\r\n\tname : \"Keenness of the Stone Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the protection and spellcasting emblematic of stone giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Dreamer's Magic\") + \" You learn the detect thoughts spell and one 1st-level spell of your choice. The 1st-level spell must be from the abjuration or the divination school of magic. You can cast each of these spells without expending a spell slot. Once you cast either of these spells in this way, you can't cast that spell in this way again until you finish a long rest. You can also cast these spells using spell slots you have of the appropriate level.\"+\r\n\t\"\\nIntelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat).\"+\r\n\t\"\\n\" + toUni(\"Mountain Sight\") + \". You gain darkvision out to a range of 60 feet. If you already have darkvision from another source, its range increases by 30 feet\",\r\n\tdescription : \"I learn detect thoughts and a 1st level Abjur or Div spell. I can cast these without a spell slot once per long rest, or as normal. I gain 60 ft of Darkvision or if I already have darkvision I get an extra 30 feet of Darkvision.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Keenness of the Stone Giant\",\r\n\t\tspells : [\"detect thoughts\"],\r\n\t\tselection : [\"detect thoughts\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}, {\r\n\t\tname : \"1st-level Abjur/Div spell\",\r\n\t\t\"class\" : \"any\",\r\n\t\tschool : [\"Abjur\", \"Div\"],\r\n\t\tlevel : [1, 1],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\tallowUpCasting : true\r\n\t}],\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+30\"]]\r\n};\r\nFeatsList[\"soul of the storm giant-ua\"] = {\r\n\tname : \"Soul of the Storm Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"8th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 8; },\r\n\tdescriptionFull : \"You've manifested divination abilities and tempest magic emblematic of storm giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself in an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts for 1 minute or until you are incapacitated. While the aura is active, attack rolls against you have disadvantage, and whenever a creature starts its turn within the sphere, you can force the creature's speed to be halved until the start of its next turn. Once you use this bonus action, you can't do so again until you finish a long rest.\"+\r\n\t\"\\n\" + toUni(\"Storm's Oracle\") + \". You can cast the divination spell as a ritual, without needing amterial components.\\n Intelligence, Wisdom, or Charisma is your spellcasting ability for this feature (choose when you gain this feat). Once you cast the spell in this way, you can't do so again until you finish a long rest.\",\r\n\tdescription : \"I learn Divination and can cast it once per long rest as a ritual without using a spell slot or materials. Once per long rest as a bonus action I create a 10 ft rad that lasts for 1 min or until I am incapacitated. Atks against me have disadv, when creas start their turn in the area I can halve their spd until their next turn.\",\r\n\taction : [[\"bonus action\", \"Maelstrom Aura\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Storm's Oracle\",\r\n\t\tspells : [\"divination\"],\r\n\t\tselection : [\"divination\"],\r\n\t\tfirstCol : \"oncelr\"\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"divination\" : {\r\n\t\t\tcomponents : \"V,S\",\r\n\t\t\tcompMaterial : \"\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"vigor of the hill giant-ua\"] = {\r\n\tname : \"Vigor of the Hill Giant\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4; },\r\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\r\n\t\"\\n\\n\" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or knock you prone, you can use your reaction to steady yourself. You are then neither moved nor knocked prone.\"+\r\n\t\"\\n\" + toUni(\"Hearty Health\") + \". When you are subjected to a spell that restores your hit points, you can regain additional hit points equal to your Constitution modifier. You can regain these additional hit points a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tdescription : \"When I would be moved or knocked prone I can use my reaction to not. When I would restore hit points from a spell I can regain an additional Con mod hit points, I can regain hit points this way Prof Uses / LR.\",\r\n\taction : [[\"reaction\", \"Bulwark\"]]\r\n};\r\n\r\n// Rune Carver Apprentice feat tree\r\nFeatsList[\"rune carver apprentice-ua\"] = {\r\n\tname : \"Rune Carver Apprentice\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tdescriptionFull : \"You've begun studying the art of runecraft, which allows you to temporarily mark your items and imbue them with magic.\"+\r\n\t\"\\n   Whenever you finish a long rest, you can mark one nonmagical weapon, armor, piece of clothing, or other object you can touch with a rune of your choice. You temporarily learn one 1st-level spell based on the rune you choose, as specified in the table below, and you know the spell until you finish a long rest, when the rune fades.\"+\r\n\t\"\\n\\n\" + toUni(\"Rune\\tSpell\")+\r\n\t\"\\nBlood\\tFalse life\"+\r\n\t\"\\nCloud\\tFog cloud\"+\r\n\t\"\\nDeath\\tRay of sickness\"+\r\n\t\"\\nDragon\\tChromatic orb\"+\r\n\t\"\\nEnemy\\tBane\"+\r\n\t\"\\nFire\\tBurning hands\"+\r\n\t\"\\nFriend\\tBless\"+\r\n\t\"\\nFrost\\tArmor of Agathys\"+\r\n\t\"\\nHill\\tGoodberry\"+\r\n\t\"\\nJourney\\tLongstrider\"+\r\n\t\"\\nKing\\tCommand\"+\r\n\t\"\\nLight\\tGuiding bolt\"+\r\n\t\"\\nLife\\tCure wounds\"+\r\n\t\"\\nMountain\\tJump\"+\r\n\t\"\\nShield\\tShield\"+\r\n\t\"\\nStone\\tSanctuary\"+\r\n\t\"\\nStorm\\tThunderwave\"+\r\n\t\"\\nWar\\tHeroism\"+\r\n\t\"\\nWind\\tFeather fall\"+\r\n\t\"\\n\\nWhile you are wearing or carrying the rune-marked object, you can cast the chosen spell associated with the rune once without using a spell slot or material components, and you can also cast the spell using any spell slots you have.\"+\r\n\t\"\\n   Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you gain this feat).\",\r\n\tdescription : \"At the end of a long rest, I can mark a nonmagical object I can touch with a rune. I learn a 1st-level spell until I finish a long rest when the rune fades. While wearing or carrying the object I can cast the spell once without using a spell slot or material components, or as normal.\",\r\n\tspellcastingAbility : [4, 5, 6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Rune Carver\",\r\n\t\tspells : [\"false life\", \"fog cloud\", \"ray of sickness\", \"chromatic orb\", \"bane\", \"burning hands\", \"bless\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"guiding bolt\", \"cure wounds\", \"jump\", \"shield\", \"sanctuary\", \"thunderwave\", \"heroism\", \"feather fall\"],\r\n\t\tselection : [\"false life\", \"fog cloud\", \"ray of sickness\", \"chromatic orb\", \"bane\", \"burning hands\", \"bless\", \"armor of agathys\", \"goodberry\", \"longstrider\", \"command\", \"guiding bolt\", \"cure wounds\", \"jump\", \"shield\", \"sanctuary\", \"thunderwave\", \"heroism\", \"feather fall\"],\r\n\t\ttimes : 19,\r\n\t\tfirstCol : \"R\",\r\n\t\tallowUpCasting : true\r\n\t}]\r\n};\r\nFeatsList[\"rune carver adept-ua\"] = {\r\n\tname : \"Rune Carver Adept\",\r\n\tsource : [[\"UA:GO\", 5]],\r\n\tprerequisite : \"4th level, Rune Carver Apprentice feat\",\r\n\tprereqeval : function(v) { return v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"rune carver apprentice\") !== -1; },\r\n\tdescriptionFull : \"Your skill with the art of runecraft has increased.\\n   Whenever you finish a long rest, you can now mark a number of objects equal to your proficiency bonus with a rune from the Rune Carver Apprentice feat. An object can have only one rune at a time, and you must inscribe a different rune on each object.\",\r\n\tdescription : \"At the end of a long rest, when using the Rune Carver apprentice feat, I can now inscribe a number of objects up to my Proficiency Bonus. Each object can only have one rune, and each rune must be different.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/ua_20220718_Wonders-of-the-Multiverse.js",
    "content": "// This file adds the content from the Unearthed Arcana 2022: Wonders of the Multiverse article to MPMB's Character Record Sheet\r\nvar iFileName = \"ua_20220718_Wonders-of-the-Multiverse.js\";\r\nRequiredSheetVersion(\"14.0.1-beta\");\r\n\r\nSourceList[\"UA:WotM\"] = {\r\n\tname : \"Unearthed Arcana: Wonders of the Multiverse\",\r\n\tabbreviation : \"UA:WotM\",\r\n\tgroup : \"Unearthed Arcana\",\r\n\turl : \"https://media.wizards.com/2022/dnd/downloads/UA2022-WondersoftheMultiverse.pdf\",\r\n\tdate : \"2022/07/18\"\r\n};\r\n\r\n// Race\r\nRaceList[\"glitchling-ua\"] = {\r\n\tregExpSearch : /glitchling/i,\r\n\tname : \"Glitchling\",\r\n\tsource : [[\"UA:WotM\", 2]],\r\n\tplural : \"Glitchlings\",\r\n\tsize : 3,\r\n\tspeed : {\r\n\t\twalk : { spd : 30, enc : 20 }\r\n\t},\r\n\tscoresGeneric : true,\r\n\tsavetxt : { adv_vs : [\"charmed\"] },\r\n\tarmorOptions : [{\r\n\t\tregExpSearch : /^(?=.*armou?red)(?=.*plating).*$/i,\r\n\t\tname : \"Armored Plating\",\r\n\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\tac : 14,\r\n\t\tselectNow : true\r\n\t}],\r\n\tfeatures : {\r\n\t\t\"balance chaos\" : {\r\n\t\t\tname : \"Balance Chaos\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"vestigial wings\" : {\r\n\t\t\tname : \"Vestigial Wings\",\r\n\t\t\tminlevel : 1,\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t}\r\n\t},\r\n\ttrait : \"Glitchling (my type is Construct)\"+\r\n\t\"\\n \\u2022 Armored Plating: My base AC is 14 + my Dexterity modifier.\"+\r\n\t\"\\n \\u2022 Living Construct: Life preserving spells that normally don't affect constructs work on me.\" + (typePF ? \" (e.g. Cure Wounds, Spare the Dying).\" : \"\")+\r\n\t\"\\n \\u2022 Ordered Mind: I have adv. on Wis (Insight) checks and on saves against being charmed.\"+\r\n\t\"\\n \\u2022 Balance Chaos: \" + (typePF ? \"My proficiency bonus per long rest, I can treat an attack roll or save roll of 9 or lower as a 10 instead.\" : \"Prof Bonus per long rest, I can treat a save/attack roll below 10 as a 10.\")+\r\n\t\"\\n \\u2022 Vestigial Wings: Prof Bonus per long rest, I can gain a flying speed equal to my walking speed for 1 turn, but fall if I end my turn aloft.\"\r\n};\r\n\r\n// Subclass\r\nAddSubClass(\"cleric\", \"fate-ua\", {\r\n\tregExpSearch : /^(?=.*(cleric|priest|clergy|acolyte))(?=.*(fate|destiny)).*$/i,\r\n\tsubname : \"Fate Domain\",\r\n\tsource : [[\"UA:WotM\", 2]],\r\n\tspellcastingExtra : [\"dissonant whispers\", \"heroism\", \"see invisibility\", \"warding bond\", \"beacon of hope\", \"clairvoyance\", \"death ward\", \"divination\", \"commune\", \"geas\"],\r\n\tfeatures : {\r\n\t\t\"subclassfeature1\" : {\r\n\t\t\tname : \"Omens and Portents\",\r\n\t\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"I can cast Augury once per long rest without using a spell slot or requiring components\",\r\n\t\t\t\t\"Once I do, my divination spells have -25% of no/random answer until I finish a long rest\"\r\n\t\t\t]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tadditional : \"Augury\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Omens and Portents\",\r\n\t\t\t\tspells : [\"augury\"],\r\n\t\t\t\tselection : [\"augury\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"augury\" : {\r\n\t\t\t\t\tcomponents : \"\",\r\n\t\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\t\tchanges : \"Using Omens and Portents, I can cast Augury once per long rest without expending a spell slot or requiring components.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"subclassfeature1.1\" : {\r\n\t\t\tname : \"Thies That Bind\",\r\n\t\t\tsource : [[\"UA:WotM\", 2]],\r\n\t\t\tminlevel : 1,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As an action, I can magically tie my fate to a creature or object I touch for 1 hour\",\r\n\t\t\t\t\"Unwilling creatures can make a Wisdom save to resist; It ends early if I do this again\",\r\n\t\t\t\t\"I know the direction to a bound target's location and the direction of its movement\",\r\n\t\t\t\t\"Once per turn, a spell I cast on the target using a spell slot gets +1d6 damage or healing\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature2\" : {\r\n\t\t\tname : \"Channel Divinity: Strands of Fate\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 2,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can manipulate the strands of fate for 1 minute while concentrating\",\r\n\t\t\t\t\"As a reaction when a creature I see makes a check or attack, I can impose adv. or disadv.\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \" (activate)\"], [\"reaction\", \" (if active)\"]]\r\n\t\t},\r\n\t\t\"subclassfeature6\" : {\r\n\t\t\tname : \"Insightful Striking\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 6,\r\n\t\t\tdescription : desc([\r\n\t\t\t\t\"As a bonus action, I can gain a brief vision of the defenses of a creature I see within 30 ft\",\r\n\t\t\t\t\"Until the end of my next turn, I gain one of the following effects:\",\r\n\t\t\t\t\" \\u2022 I add 1d6 to my next attack roll against the target \",\r\n\t\t\t\t\" \\u2022 The target subtracts 1d6 from the next saving throw it makes against a spell I cast\"\r\n\t\t\t]),\r\n\t\t\taction : [[\"bonus action\", \"\"]],\r\n\t\t\tusages : \"Proficiency bonus per \",\r\n\t\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\t\trecovery : \"long rest\"\r\n\t\t},\r\n\t\t\"subclassfeature8\" : {\r\n\t\t\tname : \"Potent Spellcasting\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 8,\r\n\t\t\tdescription : desc(\"I add my Wisdom modifier to the damage I deal with my cleric cantrips\"),\r\n\t\t\tcalcChanges : GenericClassFeatures[\"potent spellcasting\"].calcChanges\r\n\t\t},\r\n\t\t\"subclassfeature17\" : {\r\n\t\t\tname : \"Visions of the Future\",\r\n\t\t\tsource : [[\"UA:WotM\", 3]],\r\n\t\t\tminlevel : 17,\r\n\t\t\tdescription : desc([\"Once per long rest, I can cast Foresight without a spell slot with a duration of 1 minute\"]),\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tlimfeaname : \"Visions of the Future (Foresight)\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Visions of the Future\",\r\n\t\t\t\tspells : [\"foresight\"],\r\n\t\t\t\tselection : [\"foresight\"],\r\n\t\t\t\tfirstCol : 'oncelr'\r\n\t\t\t}],\r\n\t\t\tspellChanges : {\r\n\t\t\t\t\"foresight\" : {\r\n\t\t\t\t\tduration : \"1 min\",\r\n\t\t\t\t\tchanges : \"Using Visions of the Future, I can cast Foresight once per long rest without expending a spell slot; when I cast the spell in this way, the spell's duration is 1 minute for that casting.\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Backgrounds, first those not reprinted exactly as in this UA\r\nBackgroundList[\"giant foundling-ua\"] = {\r\n\tregExpSearch : /^(?=.*giant)(?=.*foundling).*$/i,\r\n\tname : \"Giant Foundling\",\r\n\tsource : [[\"UA:WotM\", 4]],\r\n\tskills : [\"Intimidation\", \"Survival\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipleft : [\r\n\t\t[\"Backpack\", \"\", 5],\r\n\t\t[\"Small stone/sprig reminding of home\", \"\", \"\"]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Strike of the Giants\",\r\n\ttrait : [\r\n\t\t\"What I lack in stature, I make up for with sheer spite.\",\r\n\t\t\"Sometimes size does matter, okay? If I see a beast bigger than me, I'm immediately running away.\",\r\n\t\t\"Crowded spaces make me uncomfortable. I'd much rather be in a wide-open field than a bustling tavern.\",\r\n\t\t\"I like being small. It helps me stay unnoticed\\u2014and underestimated.\",\r\n\t\t\"Size is just half the story. Every avalanche begins as a single pebble.\",\r\n\t\t\"The world always feels too big, and I'm afraid I'll never find my place in it.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select an Origin Story\",\r\n\t\t\"Found as a baby\" + (typePF ? \"\": \" by nomadic giants\"),\r\n\t\t\"Rescued from mountain crag\" + (typePF ? \"\": \" by stone giants\"),\r\n\t\t\"Found as a child lost in a jungle\" + (typePF ? \"\": \" by a frost giant\"),\r\n\t\t\"Home/family killed by warring giants\"\r\n\t]\r\n};\r\nBackgroundList[\"planar philosopher-ua\"] = {\r\n\tregExpSearch : /^(?=.*planar)(?=.*philosopher).*$/i,\r\n\tname : \"Planar Philosopher\",\r\n\tsource : [[\"UA:WotM\", 4]],\r\n\tskills : [\"Arcana\", \"Persuasion\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [2],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins from different planes)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Conviction\",\r\n\ttrait : [\r\n\t\t\"I don't venerate any gods; we can be as powerful or greater than them.\",\r\n\t\t\"Experience is everything, live in the moment.\",\r\n\t\t\"When things crumble, I find meaning in the ashes.\",\r\n\t\t\"Life thrives through order; I won't tolerate disruptions.\",\r\n\t\t\"When others make plans, the multiverse laughs and so do I.\",\r\n\t\t\"I know what's right, and no one will stand in my way.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Trinket\",\r\n\t\t\"Inscribed locket with image of mentor\",\r\n\t\t\"Bleached rat skull with glass eyes\",\r\n\t\t\"Torn parchment with half a puzzle\",\r\n\t\t\"Bracelet of twisted razorvine stems\",\r\n\t\t\"Fragment of verdigris bronze blade\",\r\n\t\t\"Smooth stone with holy symbols\"\r\n\t]\r\n};\r\nBackgroundList[\"rune carver-ua\"] = {\r\n\tregExpSearch : /^(?=.*rune)(?=.*carver).*$/i,\r\n\tname : \"Rune Carver\",\r\n\tsource : [[\"UA:WotM\", 5]],\r\n\tskills : [\"History\", \"Perception\"],\r\n\tgold : 10,\r\n\tlanguageProfs : [\"Giant\", 1],\r\n\tequipleft : [\r\n\t\t[\"Set of artisan's tools\", \"\", \"\"],\r\n\t\t[\"Small knife\", \"\", 0.5],\r\n\t\t[\"Whetstone\", \"\", 1]\r\n\t],\r\n\tequipright : [\r\n\t\t[\"Common clothes\", \"\", 3],\r\n\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t],\r\n\tfeature : \"Rune Carver Apprentice\",\r\n\ttrait : [\r\n\t\t\"Is it practical to learn an ancient language that is rarely used in everyday speech? No. But is it fun? Very.\",\r\n\t\t\"I learned one of my ancestors was a lauded rune carver whose story was lost to time. I seek to rekindle that legacy.\",\r\n\t\t\"The old, traditional markings of runecraft look so boring. Why not give your runes some flair?\",\r\n\t\t\"In my studies of runes, I strive to understand how great civilizations of the past fell, so that I may prevent it from happening to societies of the present.\",\r\n\t\t\"Life may be a whirlwind of chaos around me, but whenever I create my runes, I feel at peace.\",\r\n\t\t\"My brain struggles to process ink words written on paper, but the tactile feeling of carved runes makes my mind sing.\"\r\n\t],\r\n\textra : [\r\n\t\t\"Select a Rune Style\",\r\n\t\t\"Use fine metal needle to inscribe\",\r\n\t\t\"On small wooden figurines\",\r\n\t\t\"On glass beads in necklace/bracelet\",\r\n\t\t\"Stitched into the hems of clothing\",\r\n\t\t\"Carved on set of animal bones\",\r\n\t\t\"Drawn into candles\"\r\n\t]\r\n};\r\nBackgroundFeatureList[\"rune carver apprentice\"] = {\r\n\tdescription : \"I've dedicated my life to studying the practice of runecraft. Whether I was personally taught by a master rune carver or learned by poring over engravings in ancient ruins, I understand how to tap into the supernatural power held within runes. Also, I gain the Rune Carver Apprentice feat.\",\r\n\tsource : [[\"UA:WotM\", 5]],\r\n\tfeatsAdd: [\"Rune Carver Apprentice\"],\r\n};\r\n\r\n// Then the backgrounds that haven't been altered in the book\r\n// [dupl_start] have been reprinted in Planescape: Adventures in the Multiverse or Bigby Presents: Glory of the Giants\r\nif (!BackgroundList[\"gate warden\"]) {\r\n\tBackgroundList[\"gate warden\"] = {\r\n\t\tregExpSearch : /^(?=.*gate)(?=.*warden).*$/i,\r\n\t\tname : \"Gate Warden\",\r\n\t\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\r\n\t\tskills : [\"Persuasion\", \"Survival\"],\r\n\t\tgold : 10,\r\n\t\tlanguageProfs : [[\"Any (Abyssal, Celestial, or Infernal recommended)\", 2]],\r\n\t\tequipleft : [\r\n\t\t\t[\"Blank book\", \"\", 5],\r\n\t\t\t[\"Ink, 1 ounce bottle of\", 1, \"\"],\r\n\t\t\t[\"Ink pen or quill\", \"\", \"\"],\r\n\t\t\t[\"Ring of keys to unknown locks\", \"\", \"\"]\r\n\t\t],\r\n\t\tequipright : [\r\n\t\t\t[\"Traveler's clothes\", \"\", 4],\r\n\t\t\t[\"Pouch (with coins)\", \"\", 1]\r\n\t\t],\r\n\t\tfeature : \"Planar Infusion\",\r\n\t\ttrait : [\r\n\t\t\t\"Strange events and otherworldly creatures don't phase me.\",\r\n\t\t\t\"I think in terms of exchange; something for something, nothing for nothing.\",\r\n\t\t\t\"I speak with an unusual cadence.\",\r\n\t\t\t\"I pepper my speech with borrowed words or curses from planar languages.\",\r\n\t\t\t\"I've seen enough to know that you can't take anyone at face value, so I scrutinize everyone I deal with.\",\r\n\t\t\t\"I have a superstitious habit I picked up, such as touching iron when I'm nervous or arranging objects in a specific order.\"\r\n\t\t],\r\n\t\textra : [\r\n\t\t\t\"Select a Trinket\",\r\n\t\t\t\"Vial pendant with glowing honey\",\r\n\t\t\t\"Whispering lead ingot thumbprint\",\r\n\t\t\t\"Two chiming lodestone spheres\",\r\n\t\t\t\"Skin-safe smoldering pebble of coal\",\r\n\t\t\t\"Light up white feather\",\r\n\t\t\t\"Hard to remove chain-link ring\"\r\n\t\t]\r\n\t};\r\n}\r\nif (!BackgroundFeatureList[\"planar infusion\"]) {\r\n\tBackgroundFeatureList[\"planar infusion\"] = {\r\n\t\tdescription : \"I spent a good amount of time somewhere influenced by planar forces. I'm accustomed to experiences that would leave others reeling in terror or captivated by beauty, and I'm comfortable dealing with fiends and celestials. I know where to find free, modest lodging and food in the community I grew up in. Also, I gain the Scion of the Outer Planes feat.\",\r\n\t\tsource : [[\"P:AitM\", 7], [\"UA:WotM\", 3]],\r\n\t\tfeatsAdd: [\"Scion of the Outer Planes\"],\r\n\t};\r\n}\r\n\r\nif (!BackgroundFeatureList[\"strike of the giants\"]) {\r\n\tBackgroundFeatureList[\"strike of the giants\"] = {\r\n\t\tdescription : \"I grew up among giants, even though I'm not one. Something about this environment ensured that I grew to a remarkable size and I have learned how to embody the titanic might of giants. I'm used to moving through a world much bigger than me, and that is reflected in my skills, attitude, and perspective on life. I gain the Strike of the Giants feat.\",\r\n\t\tsource : [[\"GotG\", 13], [\"UA:WotM\", 4]],\r\n\t\tfeatsAdd: [\"Strike of the Giants\"],\r\n\t};\r\n}\r\n\r\nif (!BackgroundFeatureList[\"conviction\"]) {\r\n\tBackgroundFeatureList[\"conviction\"] = {\r\n\t\tdescription : \"I subscribe to a distinct philosophy that seeks to understand the nature of the planes or a hidden truth of the multiverse and spread my philosophy. I am part of a network of like-minded believers who provide me free, modest lodging and food at any of their holding or the homes of other faction members. Also, I gain the Scion of the Outer Planes feat.\",\r\n\t\tsource : [[\"P:AitM\", 8], [\"UA:WotM\", 4]],\r\n\t\tfeatsAdd: [\"Scion of the Outer Planes\"],\r\n\t};\r\n}\r\n// dupl_end\r\n\r\n\r\n// Feats\r\nFeatsList[\"cartomancer-ua\"] = {\r\n\tname : \"Cartomancer\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : 'I can use a deck of cards as a spellcasting focus. When doing so, Prof Bonus per long rest I can add +1d4 to the damage of one target of a spell I cast. I know Prestidigitation and can also cast it to do stage magic, concealing its components. When I finish a long rest, I can store a spell into a card, see \"Hidden Ace\" notes.',\r\n\tdescriptionFull : \"You have learned to channel your magic through a deck of playing cards, granting you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Card Focus\") + \". You can use a deck of cards as your spellcasting focus. When you use the deck as a focus to cast a spell that deals damage, roll a d4. You gain a bonus to one damage roll of the spell equal to the number rolled. This bonus applies to one creature of your choice that you can see damaged by the spell; you can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses of it when you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Card Tricks\") + \". You learn the prestidigitation cantrip and can use it to create illusions that duplicate the effects of stage magic. When you use prestidigitation in this way, you can conceal the verbal and somatic components of the spell as mundane conversation and card-handling.\"+\r\n\t\"\\n   \" + toUni(\"Hidden Ace\") + \". When you finish a long rest, you can choose one spell you know and imbue it into a card; the chosen spell must have a casting time of 1 action, and its level must be less than or equal to your proficiency bonus. While the card is imbued with the spell, you can use your bonus action to flourish the card and cast the spell within. The card then immediately loses its magic.\",\r\n\tprerequisite : \"4th-level; Sorcerer, Warlock, or Wizard Class\",\r\n\tprereqeval : function (v) {\r\n\t\treturn v.characterLevel >= 4 && (classes.known.wizard || classes.known.warlock || classes.known.sorcerer);\r\n\t},\r\n\textraLimitedFeatures : [{\r\n\t\tname : \"Cartomancer (+1d4 spell damage)\",\r\n\t\tusages : \"Proficiency bonus per \",\r\n\t\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\t\trecovery : \"long rest\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"Hidden Ace (use imbued card)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Hidden Ace\",\r\n\t\tpage3notes : true,\r\n\t\tnote : [\r\n\t\t\t\"Whenever I finish a long rest, I can imbue a spell I know into a card until I flourish the card\",\r\n\t\t\t\"The spell must have a casting time of 1 action and a level no more than my Prof Bonus\",\r\n\t\t\t\"As a bonus action, I can flourish the card to cast the stored spell, ousting it from the card\"\r\n\t\t]\r\n\t}]\r\n};\r\n\r\n// Scion of the Outer Planes feat tree\r\nFeatsList[\"scion of the outer planes-ua\"] = {\r\n\tname : \"Scion of the Outer Planes\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I can select a plane and gain resistance to a damage type and learn a cantrip associated with that plane. I can cast the cantrip without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\tdescriptionFull : \"You are influenced by and adept at navigating planar pathways and the strange realities of the Outer Planes.\"+\r\n\t\"\\n   Whether planar essence infuses you or you have extraplanar ancestry, your connection to a plane infuses you with the energies found there. Choose a type of plane listed in the table below. Your choice gives you resistance to a damage type and the ability to cast a cantrip, as specified in the table. You can cast this cantrip without material components, and your spellcasting ability for it is Intelligence, Wisdom, or Charisma (choose when you select this feat).\"+\r\n\ttoUni(\"\\n\\nPlane\\t\\tResistance\\tCantrip\")+\r\n\t\"\\nAstral\\t\\tPsychic\\t\\tMessage\"+\r\n\t\"\\nChaotic Outer\\tNecrotic\\t\\tMinor Illusion\"+\r\n\t\"\\nEvil Outer  \\tNecrotic\\t\\tChill Touch\"+\r\n\t\"\\nGood Outer  \\tRadiant\\t\\tSacred Flame\"+\r\n\t\"\\nLawful Outer\\tRadiant\\t\\tGuidance\"+\r\n\t\"\\nThe Outlands\\tPsychic\\t\\tMage Hand\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tchoices : ['Astral Plane (Psychic, Message)', 'Chaotic Outer Plane (Necrotic, Minor Illusion)', 'Evil Outer Plane (Necrotic, Chill Touch)', 'Good Outer Plane (Radiant, Sacred Flame)', 'Lawful Outer Plane (Radiant, Guidance)', 'The Outlands (Psychic, Mage Hand)'],\r\n\t'astral plane (psychic, message)' : {\r\n\t\tname : \"Scion of the Outer Planes (Astral Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to the astral plane gives me resistance to psychic damage and I know the Message cantrip, which I can cast without material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Astral Plane\",\r\n\t\t\tspell : [\"message\"],\r\n\t\t\tselection : [\"message\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Psychic\"],\r\n\t\tspellChanges : {\r\n\t\t\t\"message\" : {\r\n\t\t\t\tcomponents : \"V,S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Message without material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t'chaotic outer plane (necrotic, minor illusion)' : {\r\n\t\tname : \"Scion of the Outer Planes (Chaotic Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. My connection to a chaotic outer plane gives me resistance to necrotic damage and I know the Minor Illusion cantrip, which requires no material components. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Chaotic Outer Plane\",\r\n\t\t\tspells : [\"minor illusion\"],\r\n\t\t\tselection : [\"minor illusion\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Necrotic\"],\r\n\t\tspellChanges : {\r\n\t\t\t\"minor illusion\" : {\r\n\t\t\t\tcomponents : \"S\",\r\n\t\t\t\tcompMaterial : \"\",\r\n\t\t\t\tchanges : \"Using Scion of the Outer Planes, I can cast Minor Illusion without material components.\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t'evil outer plane (necrotic, chill touch)' : {\r\n\t\tname : \"Scion of the Outer Planes (Evil Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an evil outer plane. This connection gives me resistance to necrotic damage and I know the Chill Touch cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Evil Outer Plane\",\r\n\t\t\tspells : [\"chill touch\"],\r\n\t\t\tselection : [\"chill touch\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Necrotic\"]\r\n\t},\r\n\t'good outer plane (radiant, sacred flame)' : {\r\n\t\tname : \"Scion of the Outer Planes (Good Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an good outer plane. This connection gives me resistance to radiant damage and I know the Sacred Flame cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Good Outer Plane\",\r\n\t\t\tspells : [\"sacred flame\"],\r\n\t\t\tselection : [\"sacred flame\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Radiant\"]\r\n\t},\r\n\t'lawful outer plane (radiant, guidance)' : {\r\n\t\tname : \"Scion of the Outer Planes (Lawful Outer Plane)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from an lawful outer plane. This connection gives me resistance to radiant damage and I know the Guidance cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Lawful Outer Plane\",\r\n\t\t\tspells : [\"guidance\"],\r\n\t\t\tselection : [\"guidance\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Radiant\"]\r\n\t},\r\n\t'the outlands (psychic, mage hand)' : {\r\n\t\tname : \"Scion of the Outer Planes (The Outlands)\",\r\n\t\tdescription : \"I am adept at navigating planar pathways and the strange realities of the outer planes. I'm infused with or have ancestry from a plane of the outlands. This gives me resistance to psychic damage and I know the Mage Hand cantrip. I can choose Int, Wis, or Cha as my spellcasting ability for this.\",\r\n\t\tspellcastingAbility : [4,5,6],\r\n\t\tallowUpCasting : true,\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"The Outlands\",\r\n\t\t\tspells : [\"mage hand\"],\r\n\t\t\tselection : [\"mage hand\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tdmgres : [\"Psychic\"]\r\n\t}\r\n};\r\nFeatsList[\"agent of order-ua\"] = {\r\n\tname : \"Agent of Order\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save (DC 8 + Prof Bonus + the modifier of the ability score increased by this feat) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest.\",\r\n\tdescriptionFull : \"You can channel cosmic forces of order that lock the multiverse into patterns. Your actions are your own to choose, but these forces grant you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Stasis Strike\") + \". Once per turn when you damage a creature you can see within 60 feet of yourself, you can deal an extra 1d8 force damage to the target, and it must succeed on a Wisdom saving throw (DC equal to 8 + your proficiency bonus + the modifier of the ability score increased by this feat) or be restrained by spectral bindings until the start of your next turn. These bindings manifest as chains, gears, encasing stone, or some other symbol of stasis. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Lawful Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'lawful outer plane (radiant, guidance)';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tchoices : [\"Strength\", \"Dexterity\", \"Constitution\", \"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof Bonus + Str mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Strength]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"dexterity\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Dex Mod'))) + ' (8 + Prof Bonus + Dex mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Dexterity]';\",\r\n\t\tscores : [0, 1, 0, 0, 0, 0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof Bonus + Con mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Constitution]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Intelligence]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Wisdom]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'Once per turn when I damage a creature I see within 60 ft, I can deal +1d8 force damage to it, and it must succeed on a Wis save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or be restrained until my next turn starts. I can do this a number of times equal to my Prof Bonus per long rest. [+1 Charisma]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"baleful scion-ua\"] = {\r\n\tname : \"Baleful Scion\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"Once per turn, when I hit a creature with a melee weapon attack, I can also deal 1d6 + my Proficiency Bonus necrotic damage to it. I then regain a number of hit points equal to this necrotic damage dealt. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel cosmic forces of evil that cause pain but invigorate your being. You can choose your own actions despite this malign connection. You gain the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Life-Draining Grasp\") + \". Once per turn, when you hit a creature with a melee weapon attack, you can also deal necrotic damage to it. The damage equals 1d6 + your proficiency bonus, and you regain a number of hit points equal to this necrotic damage dealt. You can use this feature a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Evil Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'evil outer plane (necrotic, chill touch)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\"\r\n};\r\nFeatsList[\"cohort of chaos-ua\"] = {\r\n\tname : \"Cohort of Chaos\",\r\n\tsource : [[\"UA:WotM\", 6]],\r\n\tdescription : \"When I roll a 1 or a 20 on an attack roll or save, a the magic of chaos flares up and I roll on the Chaotic Flare table to determine what happens (see notes for table). As a bonus action, my Proficiency Bonus per long rest, I can force a flare to happen. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel the cosmic forces of chaos that drive the multiverse toward both freedom and disarray. Your actions are still yours to choose, but you gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Chaotic Flare\") + \". When you roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through you. Roll on the table below to determine what happens. A flare lasts until the end of your next turn, and a new flare can't occur until after the first flare ends.\"+\r\n\ttoUni(\"\\n\\nd4\\tFlare\")+\r\n\t\"\\n  1\\tDisruption Field: Waves of energy ripple in a 10-foot sphere centered on you. Every creature other than you that starts its turn in that area, or that moves into that area for the first time on a turn, takes 1d8 force damage.\"+\r\n\t\"\\n  2\\tBattle Fury: A creature of your choice that you can see is filled with reckless fury. The creature has advantage on attack rolls and disadvantage on ability checks.\"+\r\n\t\"\\n  3\\tUnbound: When you move, you can use some or all of your walking speed to teleport once, along with any equipment you're wearing or carrying, up to the distance used to an unoccupied space that you can see.\"+\r\n\t\"\\n  4\\tWailing Winds: Howling winds swirl around you in a 60-foot radius. You and any creature in that radius has disadvantage on Wisdom saving throws.\"+\r\n\t\"\\n\\n   You can also forcibly release a chaotic flare as a bonus action, rolling on the table as normal to determine the effects. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Chaotic Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'chaotic outer plane (necrotic, minor illusion)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tadditional : \"force flare\",\r\n\taction : [[\"bonus action\", \" (force flare)\"]],\r\n\ttoNotesPage : [{\r\n\t\tname : \"Chaotic Flare Table\",\r\n\t\tnote : [\r\n\t\t\t\"When I roll a 1 or a 20 on an attack roll or a saving throw, the magic of chaos flows through me. I roll on the table below to determine what happens. A flare lasts until the end of my next turn, and a new flare can't occur until after the first flare ends.\",\r\n\t\t\t\"As a bonus action, I can forcibly release a chaotic flare, rolling on the table as normal to determine the effects. I can use this bonus action a number of times equal to my proficiency bonus, and I regain all expended uses when you finish a long rest.\",\r\n\t\t\t\"\\n d4  Flare\",\r\n\t\t\t\"1  Disruption Field: Waves of energy ripple in a 10-ft sphere centered on me. Every creature other than me that starts its turn in that area, or that moves into that area for the first time on a turn, takes 1d8 force damage.\",\r\n\t\t\t\"2  Battle Fury: A creature of my choice that I can see is filled with reckless fury. The creature has advantage on attack rolls and disadvantage on ability checks.\",\r\n\t\t\t\"3  Unbound: When I move, I can use some or all of my walking speed to teleport once, along with any equipment I'm wearing or carrying, up to the distance used to an unoccupied space that I can see.\",\r\n\t\t\t\"4  Wailing Winds: Howling winds swirl around me in a 60-ft radius. I and any creature in that radius have disadvantage on Wisdom saving throws.\"\r\n\t\t]\r\n\t}]\r\n};\r\nFeatsList[\"outlands envoy-ua\"] = {\r\n\tname : \"Outlands Envoy\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I can cast Misty Step and Tongues each once per long rest without requiring a spell slot or material components. I can also cast them using a spell slot as normal. My spellcasting ability for these spells is the same as the one for the Scion of the Outer Planes feat. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You have spent significant time in Sigil or elsewhere in the Outlands, the crossroads of the multiverse. Being steeped in converging planar energies grants you these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Crossroads Emissary\") + \". You learn the misty step and tongues spells. You can cast each spell once using this feat without a spell slot, and you must finish a long rest before you can cast that spell in this way again. When you cast tongues using this feat, you require no material components. You can also cast these spells using spell slots you have of the appropriate level. The spell's spellcasting ability is the one chosen when you gained the Scion of the Outer Planes feat.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes-ua\") !== -1;\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tspellcastingAbility : \"scion of the outer planes-ua\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Crossroads Emissary\",\r\n\t\tspells : [\"misty step\", \"tongues\"],\r\n\t\tselection : [\"misty step\", \"tongues\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : 2\r\n\t}],\r\n\tspellChanges : {\r\n\t\t\"tongues\" : {\r\n\t\t\tcomponents : SpellsList.tongues.components.replace(\"M\", \"M*\"),\r\n\t\t\tcompMaterial : \"When using a spell slot: \"+SpellsList.tongues.compMaterial,\r\n\t\t\tchanges : \"Using Outlands Envoy, I can cast Tongues once per long rest without expending a spell slot or requiring material components.\"\r\n\t\t}\r\n\t}\r\n};\r\nFeatsList[\"planar wanderer-ua\"] = {\r\n\tname : \"Planar Wanderer\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"After each long rest, I can gain acid, cold, or fire resistance, that lasts until my next long rest ends. I know the direction to the last portal I used while on the same plane as it. As an action, I can try to open or close a portal (portal cracker). As an action once per long rest, I can detect portals (portal sense). See notes.\",\r\n\tdescriptionFull : \"You can draw on the forces of the multiverse to survive cosmic extremes and to traverse its infinite realms. You gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Planar Adaptation\") + \". When you finish a long rest, you gain resistance to either acid, cold, or fire damage (your choice) until you finish your next long rest.\"+\r\n\t\"\\n   \" + toUni(\"Portal Cracker\") + \". Your experience with portals allows you to operate them without the proper portal key. As an action, you can concentrate on a portal you're aware of that is within 5 feet of you and make a DC 20 Wisdom (Survival) check. On a failure, you take 3d8 force damage and you can't use this feature on that portal again until you finish a long rest. On a success, you can force the portal open or closed for 1 hour. For that duration, a portal closed in this way doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"+\r\n\t\"\\n   \" + toUni(\"Portal Sense\") + \". You know the direction to the last planar portal you used while you and the portal are on the same plane. Moreover, as an action, you can detect the location of any portals within 30 feet of you that aren't behind total cover. Once you detect a portal with this action, you can't use the action again until you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"scion of the outer planes-ua\") !== -1;\r\n\t},\r\n\tdmgres : [\"Acid/Cold/Fire\"],\r\n\taction : [[\"action\", \" (Portal Cracker)\"], [\"action\", \" (Portal Sense)\"]],\r\n\tusages : 1,\r\n\trecovery : \"long rest\",\r\n\tadditional : \"Portal Sense\",\r\n\ttoNotesPage : [{\r\n\t\tname : \"Portal Cracker\",\r\n\t\tnote : [\r\n\t\t\t\"My experience with portals allows me to operate them without the proper portal key.\",\r\n\t\t\t\"As an action, I can concentrate on a portal I'm aware of that is within 5 ft of me and make a DC 20 Wisdom (Survival) check.\",\r\n\t\t\t\"On a failure, I take 3d8 force damage and I can't use this feature on that portal again until I finish a long rest.\",\r\n\t\t\t\"On a success, I can force the portal open or closed for 1 hour. For that duration, a portal closed in this way doesn't respond to its portal key unless a creature employing the key succeeds on a DC 20 Intelligence (Arcana) check as an action.\"\r\n\t\t]\r\n\t}, {\r\n\t\tname : \"Portal Sense\",\r\n\t\tadditional : \"1\\xD7 per long rest\",\r\n\t\tnote : [\r\n\t\t\t\"I know the direction to the last planar portal I used while I and the portal are on the same plane.\",\r\n\t\t\t\"As an action, I can detect the location of any portals within 30 ft of me that aren't behind total cover.\",\r\n\t\t\t\"Once I detect a portal with this action, I can't use the action again until I finish a long rest.\"\r\n\t\t],\r\n\t\tamendTo : \"Portal Cracker\"\r\n\t}]\r\n};\r\nFeatsList[\"righteous heritor-ua\"] = {\r\n\tname : \"Righteous Heritor\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"As a reaction when I or a creature I can see within 30 ft takes damage, I can reduce the damage taken by 1d10 + my Proficiency Bonus. I can do this a number of times equal to my Proficiency Bonus per long rest. [+1 to any one ability score]\",\r\n\tdescriptionFull : \"You can channel the cosmic forces of good that foster serenity and fellowship. You are still free to choose your own actions, but gain these benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase an ability score of your choice by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Soothe Pain\") + \". When you or a creature you can see within 30 feet of you takes damage, you can use your reaction to dull its suffering and reduce the damage it takes by 1d10 + your proficiency bonus. You can use this benefit a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Scion of the Outer Planes (Good Outer Plane) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"scion of the outer planes-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'good outer plane (radiant, sacred flame)';\r\n\t},\r\n\tscorestxt : \"+1 to one ability score of your choice\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\n\r\n// Strike of the Giants feat tree\r\nFeatsList[\"strike of the giants-ua\"] = {\r\n\tname : \"Strike of the Giants\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"As a bonus action, I can call on the power of my giant magic to imbue my attacks with additional power. The next time I hit a target with a melee or thrown weapon attack within the next minute, the attack has an additional effect depending on the origin of my giant magic (hill, stone, frost, fire, cloud or storm).\",\r\n\tdescriptionFull : \"You have absorbed primeval magic that gives you an echo of the might of giants. Choose one of the kinds of giants listed below. As a bonus action, you can call on the power of your giant magic to imbue your attacks with additional power. The next time you hit a target with a melee or thrown weapon attack within the next minute, the attack has an additional effect depending on the origin of your giant magic:\"+\r\n\tdesc([\r\n\t\ttoUni(\"Hill Giant\") + \". The target takes an extra 1d6 damage of the weapon's type. If the target is a creature, it must succeed on a Strength saving throw or be knocked prone.\",\r\n\t\ttoUni(\"Stone Giant\") + \". The target takes an extra 1d6 force damage. If the target is a creature, it must succeed on a Strength saving throw or be pushed 10 feet away from you in a straight line.\",\r\n\t\ttoUni(\"Frost Giant\") + \". The target takes an extra 1d6 cold damage. If the target is a creature, it must succeed on a Constitution saving throw, or its speed is reduced to 0 until the start of your next turn.\",\r\n\t\ttoUni(\"Fire Giant\") + \". The target takes an extra 1d8 fire damage.\",\r\n\t\ttoUni(\"Cloud Giant\") + \". The target takes an extra 1d4 thunder damage. If the target is a creature, it must succeed on a Wisdom saving throw, or you become invisible to it until the start of your next turn.\",\r\n\t\ttoUni(\"Storm Giant\") + \". The target takes an extra 1d6 lightning damage. If the target is a creature, it must succeed on a Constitution saving throw, or it has disadvantage on attack rolls until the start of your next turn.\\n\",\r\n\t\t\"The saving throw DC for these effects equals 8 + your proficiency bonus + your Strength or Constitution modifier.\",\r\n\t\t\"You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\"\r\n\t]),\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Hill Giant\", \"Stone Giant\", \"Frost Giant\", \"Fire Giant\", \"Cloud Giant\", \"Storm Giant\"],\r\n\t\"hill giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of hill giants. The next time I hit with a melee or thrown weapon attack within the next minute, it deals +1d6 damage and if the target is a creature, it must make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or be knocked prone.';\"\r\n\t},\r\n\t\"stone giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of stone giants. My next hit in the next minute with a melee or thrown weapon attack deals +1d6 force damage and the target must make a Strength save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or be pushed 10 ft away from me in a straight line.';\"\r\n\t},\r\n\t\"frost giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of frost giants. The next hit with my melee or thrown weapon attack within 1 minute deals +1d6 cold damage, and if the target is a creature, it must make a Con save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or its speed is 0 until my next turn starts.';\"\r\n\t},\r\n\t\"fire giant\" : {\r\n\t\tdescription : \"I have absorbed primeval magic that gives me an echo of the might of fire giants. As a bonus action, I can call on this power and the next time I hit a target with a melee or thrown weapon attack within the next minute, that attack deals +1d8 fire damage. I can do this my Proficiency Bonus per long rest.\"\r\n\t},\r\n\t\"cloud giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of cloud giants. My next hit within 1 minute with a melee or thrown weapon attack deals +1d4 thunder damage, and the target must make a Wisdom save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or I become invisible to it until my next turn starts.';\"\r\n\t},\r\n\t\"storm giant\" : {\r\n\t\tcalculate : \"event.value = 'As a bonus action my Prof Bonus per long rest, I can call on the might of storm giants. My next hit within 1 minute with a melee or thrown weapon attack deals +1d6 lightning damage, and the target must make a Con save DC ' + (8 + Number(How('Proficiency Bonus')) + Math.max(Number(What('Str Mod')), Number(What('Con Mod')))) + ' (8 + Prof Bonus + Str/Con mod) or it has disadv. on attack rolls until my next turn starts.';\"\r\n\t}\r\n};\r\nFeatsList[\"ember of the fire giant-ua2\"] = {\r\n\tname : \"Fury of the Fire Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+Prof Bonus fire damage & are blinded until my next turn starts. Dex save (8 + Prof B. + Str/Con/Wis mod) for half damage & not blinded.\",\r\n\tdescriptionFull : \"You've manifested the fiery combat emblematic of fire giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Born of Flame\") + \". You have resistance to fire damage.\"+\r\n\t\"\\n   \" + toUni(\"Searing Ignition\") + \". When you take the Attack action on your turn, you can replace a single attack with a magical burst of flame. Each creature of your choice within 15 feet of you that can see you must make a Dexterity saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, a creature takes fire damage equal to 1d8 + your proficiency bonus, and it is blinded until the start of your next turn. On a successful save, the creature takes half as much damage and isn't blinded. You can use your Searing Ignition a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Fire Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'fire giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Fire\"],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) for half damage \\u0026 not blinded. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 1,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B.+ Con mod) for half damage \\u0026 not blinded. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 3,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I have fire resistance. My Prof Bonus per long rest, I can replace one attack of an Attack action on my turn with Searing Ignition: Chosen creatures I can see within 15 ft take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) fire damage \\u0026 are blinded until my next turn starts. Dex save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) for half damage \\u0026 not blinded. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*searing)(?=.*ignition).*$/i,\r\n\t\t\tname : \"Searing Ignition\",\r\n\t\t\tsource : [[\"UA:WotM\", 7]],\r\n\t\t\tability : 5,\r\n\t\t\ttype : \"Spell\",\r\n\t\t\tdamage : [1, 8, \"fire\"],\r\n\t\t\trange : \"15-ft radius\",\r\n\t\t\tdescription : \"Hits all of my choice in range; Dex save for half damage; Failed - blinded until my next turn starts\",\r\n\t\t\tdc : true,\r\n\t\t\tabilitytodamage : false,\r\n\t\t\tmodifiers : [\"\", \"Prof\"],\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"fury of the frost giant-ua2\"] = {\r\n\tname : \"Fury of the Frost Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Con save (DC 8 + Prof B. + Str/Con/Wis mod) or take 1d8 + Prof Bonus  cold damage and have its speed reduced by half until my next turn ends.\",\r\n\tdescriptionFull : \"You've manifested the icy might emblematic of frost giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Born of Ice\") + \". You have resistance to cold damage.\"+\r\n\t\"\\n   \" + toUni(\"Frigid Retaliation\") + \". Immediately after a creature you can see within 30 feet of you hits you with an attack roll and deals damage, you can use your reaction to retaliate with a conjured blast of ice. The creature must make a Constitution saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat). On a failed save, it takes 1d8 + your proficiency bonus cold damage, and its speed is halved until the end of its next turn. You can use this reaction a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Frost Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'frost giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tdmgres : [\"Cold\"],\r\n\taction : [[\"reaction\", \"\"]],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof Bonus) cold damage and have its speed reduced by half until my next turn ends. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B. + Con mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof B.) cold damage and have its speed reduced by half until my next turn ends. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I have cold resistance. As a reaction my Prof Bonus per long rest, when a creature I can see within 30 ft hits and deals damage with an attack, I can have it make a Constitution save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) or take 1d8+' + How('Proficiency Bonus') + ' (Prof Bonus) cold damage and have its speed reduced by half until my next turn ends. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t}\r\n};\r\nFeatsList[\"guile of the cloud giant-ua2\"] = {\r\n\tname : \"Guile of the Cloud Giant\",\r\n\tsource : [[\"UA:WotM\", 7]],\r\n\tdescription : \"As a reaction when a creature I can see hits me with an attack roll, I can give myself resistance to that attack's damage. I then teleport to an unoccupied space that I can see within 30 ft. I can do this a number of times equal to half my Proficiency Bonus (rounded up) per long rest. [+1 Dex, Con, or Cha]\",\r\n\tdescriptionFull : \"You've manifested the airy speech and magic emblematic of cloud giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Dexterity, Constitution, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Cloudy Escape\") + \". When a creature you can see hits you with an attack roll, you can use your reaction to give yourself resistance to that attack's damage. You then teleport to an unoccupied space that you can see within 30 feet of yourself. You can use this reaction a number of times equal to half your proficiency bonus (rounded up), and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Cloud Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'cloud giant';\r\n\t},\r\n\tscorestxt : \"+1 Dexterity, Constitution, or Charisma\",\r\n\tusages : \"Half proficiency bonus (rounded up) per \",\r\n\tusagescalc : \"event.value = Math.ceil(Number(How('Proficiency Bonus'))/2);\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\nFeatsList[\"keenness of the stone giant-ua2\"] = {\r\n\tname : \"Keenness of the Stone Giant\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, 60/180 ft, 1d10 bludgeoning damage. Target hit must make a Str save DC 10 (8 + Prof B. + Str/Con/Wis mod) or be knocked prone.\",\r\n\tdescriptionFull : \"You've manifested the physical talents emblematic of stone giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Strength, Constitution, or Wisdom score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Stone Throw\") + \". As a bonus action, you can touch a rock that can fit in the palm of your hand and imbue it with magic. While the rock is imbued with magic and you are wielding it, the rock is a magic ranged weapon with which you're proficient, and it has the thrown property with a normal range of 60 feet and a long range of 180 feet. On a hit, the rock deals 1d10 bludgeoning damage, and if the target is a creature, it must succeed on a Strength saving throw (DC equals 8 + your proficiency bonus + the modifier of the ability increased by this feat) or be knocked prone. The magic remains in the rock until you hit with it or finish a long rest. You can imbue a number of rocks equal to your proficiency bonus with this bonus action, and you regain all expended uses when you finish a long rest.\"+\r\n\t\"\\n   \" + toUni(\"Cavernous Sight\") + \". You gain darkvision out to a range of 60 feet. If you already have darkvision from another source, its range increases by 60 feet.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Stone Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'stone giant';\r\n\t},\r\n\tvision : [[\"Darkvision\", \"fixed 60\"], [\"Darkvision\", \"+60\"]],\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tadditional : \"Imbue Stone\",\r\n\taction : [[\"bonus action\", \" (Imbue Stone)\"]],\r\n\tchoices : [\"Strength\", \"Constitution\", \"Wisdom\"],\r\n\t\"strength\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Str Mod'))) + ' (8 + Prof B. + Str mod) or be knocked prone. [+1 Str]';\",\r\n\t\tscores : [1, 0, 0, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 1,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tisMagicWeapon : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"constitution\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Con Mod'))) + ' (8 + Prof B. + Con mod) or be knocked prone. [+1 Con]';\",\r\n\t\tscores : [0, 0, 1, 0, 0, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 3,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I gain +60 ft darkvision. As a bonus action my Prof Bonus per long rest, I can imbue a rock with magic until I finish a long rest or hit with it. I can use it as a proficient thrown weapon, ' + (What('Unit System') === 'metric' ? '18/54 m' : '60/180 ft') + ', 1d10 bludgeoning damage. Target hit must make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof B. + Wis mod) or be knocked prone. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tweaponOptions : [{\r\n\t\t\tregExpSearch : /^(?=.*stone)(?=.*giant)(?=.*throw).*$/i,\r\n\t\t\tname : \"Stone Giant's Stone Throw\",\r\n\t\t\tsource : [[\"UA:WotM\", 8]],\r\n\t\t\tability : 5,\r\n\t\t\ttype : \"AlwaysProf\",\r\n\t\t\tdamage : [1, 10, \"bludgeoning\"],\r\n\t\t\trange : \"60/180 ft\",\r\n\t\t\tdescription : \"Thrown; On hit: Str save (DC 8 + To Hit) or knocked prone; Counts as magical\",\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tselectNow : true\r\n\t\t}]\r\n\t}\r\n};\r\nFeatsList[\"soul of the storm giant-ua2\"] = {\r\n\tname : \"Soul of the Storm Giant\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save (DC 8 + Prof Bonus + Int/Wis/Cha mod) or halve its speed until my next turn starts.\",\r\n\tdescriptionFull : \"You've manifested divination abilities and tempest magic emblematic of storm giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Intelligence, Wisdom, or Charisma score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Maelstrom Aura\") + \". As a bonus action, you surround yourself in an aura of magical wind and lightning that extends 10 feet from you in every direction but not through total cover. The aura lasts until the start of your next turn or until you are incapacitated. While the aura is active, attack rolls against you have disadvantage, and whenever a creature starts its turn within the aura, you can force the creature to make a Strength saving throw (DC equals 8 + your proficiency bonus + the ability modifier of the score increased by this feat). On a failed save, the creature's speed is halved until the start of its next turn. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Storm Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'storm giant';\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\taction : [[\"action\", \"\"]],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or halve its speed until my next turn starts. [+1 Int]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0]\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or halve its speed until my next turn starts. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0]\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'As an action my Prof Bonus per long rest, I can give myself a 10-ft radius magical aura until my next turn starts. This imposes disadv. on attacks against me and when a creature starts its turn within, I can have it make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or halve its speed until my next turn starts. [+1 Cha]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1]\r\n\t}\r\n};\r\nFeatsList[\"vigor of the hill giant-ua2\"] = {\r\n\tname : \"Vigor of the Hill Giant\",\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tdescription : \"When I'm subjected to an effect that would move me at least 5 ft or knock me prone, I can use my reaction to steady myself and stop this from happening. Whenever I eat food as part of a short rest and spend one or more HD to regain HP, I regain additional HP equal to my Con mod + my Proficiency Bonus. [+1 Con]\",\r\n\tdescriptionFull : \"You've manifested the resilience emblematic of hill giants, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Ability Score Increase\") + \". Increase your Constitution score by 1, to a maximum of 20.\"+\r\n\t\"\\n   \" + toUni(\"Bulwark\") + \". When you are subjected to an effect that would move you at least 5 feet or knock you prone, you can use your reaction to steady yourself. You are then neither moved nor knocked prone.\"+\r\n\t\"\\n   \" + toUni(\"Iron Stomach\") + \". Whenever you eat food as part of a short rest and spend one or more Hit Dice to regain hit points, you regain additional hit points equal to your Constitution modifier + your proficiency bonus.\",\r\n\tprerequisite : \"4th-level, Strike of the Giants (Hill Giant) feat\",\r\n\tprereqeval : function(v) {\r\n\t\tvar iParentFeat = CurrentFeats.known.indexOf(\"strike of the giants-ua\");\r\n\t\treturn v.characterLevel >= 4 && iParentFeat !== -1 && CurrentFeats.choices[iParentFeat] === 'hill giant';\r\n\t},\r\n\tscores : [0, 0, 1, 0, 0, 0],\r\n\taction : [[\"reaction\", \"\"]]\r\n};\r\n\r\n// Rune Carver Apprentice feat tree\r\nFeatsList[\"rune carver apprentice-ua2\"] = {\r\n\tname : \"Rune Carver Apprentice\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know Comprehend Languages and cast it once per long rest without a spell slot. I know two runes, which I can inscribe and use to cast their associated spell once per long rest without a spell slot or material components. I can also cast all three spells with spell slots as normal. See notes page.\",\r\n\tdescriptionFull : \"You've begun studying the art of runecraft.\" + desc([\r\n\t\t\"You learn the comprehend languages spell. You can cast this spell without expending a spell slot, and you must finish a long rest before you can cast it in this way again. You can also cast this spell using any spell slots you have.\",\r\n\t\t\"You know two runes of your choice from the Rune Spells table. Whenever you finish a long rest, you can mark one nonmagical weapon, armor, piece of clothing, or other object you touch with a rune you know. You temporarily learn one 1st-level spell based on the rune you inscribed, as specified in the Rune Spells table, and you know the spell until you finish a long rest, when the rune fades.\\n\",\r\n\t\ttoUni(\"Rune\\t\\tSpell\"),\r\n\t\t\"Death\\t\\tRay of sickness\",\r\n\t\t\"Dragon\\t\\tChromatic orb\",\r\n\t\t\"Enemy\\t\\tDisguise self\",\r\n\t\t\"Friend\\t\\tSpeak with animals\",\r\n\t\t\"Journey   \\tLongstrider\",\r\n\t\t\"King\\t\\tCommand\",\r\n\t\t\"Mountain\\tEntangle\",\r\n\t\t\"Sacred\\t\\tSanctuary\\n\",\r\n\t\t\"While you are wearing or carrying the rune-marked object, you can cast the spell associated with the chosen rune once without using a spell slot or material components, and you can also cast the spell using any spell slots you have.\",\r\n\t\t\"Your spellcasting ability for this feat is Intelligence, Wisdom, or Charisma (choose when you select this feat).\",\r\n\t\t\"Each time you gain a level, you can replace one of the runes you know with a different one from the Rune Spells table.\"\r\n\t]),\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Once per long rest\",\r\n\t\tspells : [\"comprehend languages\"],\r\n\t\tselection : [\"comprehend languages\"],\r\n\t\tfirstCol : \"oncelr+markedbox\"\r\n\t}, {\r\n\t\tname : \"Select Rune Spell\",\r\n\t\tspells : [\"ray of sickness\", \"chromatic orb\", \"disguise self\", \"speak with animals\", \"longstrider\", \"command\", \"entangle\", \"sanctuary\"],\r\n\t\tfirstCol : \"oncelr+markedbox\",\r\n\t\ttimes : 2,\r\n\t\tallowUpCasting : true\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName === \"rune carver apprentice-ua2\" && spellKey !== \"comprehend languages\") {\r\n\t\t\t\t\tspellObj.components = spellObj.components.replace(/M(\\u0192)?/, \"M*\");\r\n\t\t\t\t\tspellObj.description = spellObj.description.replace(/(\\d+) ?gp/, \"$1*gp\");\r\n\t\t\t\t\tspellObj.ritual = false;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"If the rune spells that I know are inscribed on something in my possession, I can cast each once per long rest without without using a spell slot or material components, or I can cast them using spell slots as normal.\"\r\n\t\t]\r\n\t},\r\n\ttoNotesPage : [{\r\n\t\tname : \"Features\",\r\n\t\tnote : [\r\n\t\t\t\"I know Comprehend Languages and can cast it without expending a spell slot once per long rest. I can also cast this spell using any spell slots I have.\",\r\n\t\t\t\"I know two runes of my choice from the list below. Whenever I finish a long rest, I can mark one nonmagical weapon, armor, piece of clothing, or other object I touch with a rune I know. I temporarily learn one 1st-level spell based on the rune I inscribed and I know the spell until I finish a long rest, when the rune fades.\",\r\n\t\t\t\"While I'm wearing or carrying the rune-marked object, I can cast its associated spell once per long rest without using a spell slot or material components. I can also cast the spell using any spell slots I have.\",\r\n\t\t\t\"My spellcasting ability for this is Intelligence, Wisdom, or Charisma (choose when selecting this feat).\",\r\n\t\t\t\"Each time I gain a level, I can replace one of the runes I know with a different one from the list.\\n\",\r\n\t\t\t\"RUNE\\t\\tSPELL\\t\\tSCHOOL\",\r\n\t\t\t\"Death\\t\\tRay of Sickness\\tNecromancy\",\r\n\t\t\t\"Dragon\\t\\tChromatic Orb\\tEvocation\",\r\n\t\t\t\"Enemy\\t\\tDisguise Self   \\tIllusion\",\r\n\t\t\t\"Friend\\t\\tSpeak With Animals\\tDivination\",\r\n\t\t\t\"Journey\\t\\tLongstrider\\t\\tTransmutation\",\r\n\t\t\t\"King\\t\\tCommand\\t\\tEnchantment\",\r\n\t\t\t\"Mountain\\t\\tEntangle\\t\\tConjuration\",\r\n\t\t\t\"Sacred\\t\\tSanctuary\\t\\tAbjuration\"\r\n\t\t]\r\n\t}]\r\n};\r\nFeatsList[\"rune carver adept-ua2\"] = {\r\n\tname : \"Rune Carver Adept\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends.\",\r\n\tdescriptionFull : \"Your ability to draw out power from runes has grown.\" + desc([\r\n\t\t\"Increase the ability score of the spellcasting ability chosen when you gained the Rune Carver Apprentice feat by 1, to a maximum of 20.\",\r\n\t\t\"Whenever you cast a spell from the Rune Spells table, or a spell of a school of magic associated with the spell you marked on an object from your Rune Carver Apprentice feat, you can invoke runic power, granting you one of these benefits of your choice:\",\r\n\t\ttoUni(\"Battle Runes\") + \". Choose one creature you can see within 30 feet of yourself. Until the end of that creature's next turn, it has advantage on the next attack roll it makes.\",\r\n\t\ttoUni(\"Healing Runes\") + \". Choose one creature you can see within 30 feet of yourself. That creature gains temporary hit points equal to your level.\",\r\n\t\ttoUni(\"Runic Winds\") + \". Choose one creature you can see within 30 feet of yourself. Until the end of that creature's turn, its movement doesn't provoke opportunity attacks, and its walking speed increases by 10 feet.\",\r\n\t\t\"You can invoke runic power a number of times equal to your proficiency bonus, but no more than once per spell you cast. You regain all expended uses when you finish a long rest.\"\r\n\t]),\r\n\tprerequisite : \"4th-level, Rune Carver Apprentice feat\",\r\n\tprereqeval : function(v) {\r\n\t\treturn v.characterLevel >= 4 && CurrentFeats.known.indexOf(\"rune carver apprentice-ua2\") !== -1;\r\n\t},\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tselfChoosing : function() {\r\n\t\tif (CurrentSpells[\"rune carver apprentice-ua2\"] && !isNaN(CurrentSpells[\"rune carver apprentice-ua2\"].ability)) {\r\n\t\t\treturn AbilityScores.names[CurrentSpells[\"rune carver apprentice-ua2\"].ability - 1].toLowerCase();\r\n\t\t}\r\n\t},\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Int]';\",\r\n\t\tscores : [0, 0, 0, 1, 0, 0],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Intelligence)\"\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Wis]';\",\r\n\t\tscores : [0, 0, 0, 0, 1, 0],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Wisdom)\"\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tdescription : \"My Prof Bonus per long rest, whenever I cast a spell of a school that one of my runes belongs to, I can grant a creature I can see within 30 ft a benefit: \\u2022 +10 ft walking speed and its movement provokes no opportunity attacks until its turn ends, \\u2022 my level in temp HP, or \\u2022 adv. on its next attack until its turn ends. [+1 Cha]';\",\r\n\t\tscores : [0, 0, 0, 0, 0, 1],\r\n\t\tscorestxt : \"+1 to the ability score of the spellcasting ability chosen for the Rune Carver Apprentice feat (Charisma)\"\r\n\t}\r\n};\r\n\r\n// Scion of Elemental X\r\nFeatsList[\"scion of elemental air-ua\"] = {\r\n\tname : \"Scion of Elemental Air\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know the Minor Illusion cantrip (choice of Int, Wis, or Cha spellcasting ability). As a bonus action, I can gain a flying speed equal to my walking speed until my turn ends, but fall after this movement if I'm airborne and not held aloft by other means. I can do this bonus action my Proficiency Bonus per long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Air, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the minor illusion cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Wind's Glide\") + \". You can use a bonus action to gain a flying speed equal to your walking speed until the end of your turn. If you are airborne at the end of your turn after using this movement and aren't held aloft by other means, you fall. You can use this bonus action a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"minor illusion\"],\r\n\t\tselection : [\"minor illusion\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"scion of elemental earth-ua\"] = {\r\n\tname : \"Scion of Elemental Earth\",\r\n\tsource : [[\"UA:WotM\", 8]],\r\n\tdescription : \"I know the Druidcraft cantrip (choice of Int, Wis, or Cha spellcasting ability). As a bonus action, I can conjure a bulwark of earth that provides half cover to me or a creature of my choice within 30 ft of myself, until the start of my next turn. I can create this bulwark my Proficiency Bonus per long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Earth, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the druidcraft cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Earthen Shield\") + \". You can use a bonus action to conjure a bulwark of earth that provides half cover to you or a creature of your choice within 30 feet of yourself. The bulwark remains until the start of your next turn. You can create this bulwark a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"druidcraft\"],\r\n\t\tselection : [\"druidcraft\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]]\r\n};\r\nFeatsList[\"scion of elemental fire-ua\"] = {\r\n\tname : \"Scion of Elemental Fire\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"I know the Dancing Lights and Produce Flame cantrips. I can choose Int, Wis, or Cha as my spellcasting ability for this.. I can cast Produce Flame as normal, and I can also cast it as a bonus action a number of times equal to my Proficiency Bonus, regaining all expended uses when I finish a long rest.\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Fire, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the dancing lights cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Fervent Blaze\") + \". You learn the produce flame cantrip, using the same spellcasting ability chosen for this feat's Elemental Magic benefit. You can cast produce flame as normal, and you can also cast it as a bonus action a number of times equal to your proficiency bonus, regaining all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingAbility : [4,5,6],\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"dancing lights\"],\r\n\t\tselection : [\"dancing lights\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}, {\r\n\t\tname : \"Fervent Blaze\",\r\n\t\tspell : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"]\r\n\t}, {\r\n\t\tname : \"Fervent Blaze (bonus action)\",\r\n\t\tspell : [\"produce flame\"],\r\n\t\tselection : [\"produce flame\"]\r\n\t}],\r\n\tcalcChanges : {\r\n\t\tspellAdd : [\r\n\t\t\tfunction (spellKey, spellObj, spName, isDuplicate) {\r\n\t\t\t\tif (spName === \"scion of elemental fire-ua\" && spellKey === \"produce flame\") {\r\n\t\t\t\t\tif (isDuplicate) {\r\n\t\t\t\t\t\tspellObj.firstCol = \"SP\";\r\n\t\t\t\t\t\tspellObj.time = \"1 bns\";\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tspellObj.firstCol = \"atwill\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"I can cast Produce Flame as a bonus action a number of times equal to my proficiency bonus, regaining all expended uses when I finish a long rest.\"\r\n\t\t]\r\n\t}\r\n};\r\nFeatsList[\"scion of elemental water-ua\"] = {\r\n\tname : \"Scion of Elemental Water\",\r\n\tsource : [[\"UA:WotM\", 9]],\r\n\tdescription : \"\",\r\n\tdescriptionFull : \"You've been exposed to the primordial magic of the Elemental Plane of Water, granting you the following benefits:\"+\r\n\t\"\\n   \" + toUni(\"Elemental Magic\") + \". You learn the thaumaturgy cantrip, using Intelligence, Wisdom, or Charisma as the spellcasting ability (choose when you select this feat).\"+\r\n\t\"\\n   \" + toUni(\"Wave Surge\") + \". You can use a bonus action to create a forceful surge of water directed at a creature within 15 feet of you that you can see. The target must make a Strength saving throw; the DC for this save is equal to 8 + your proficiency bonus + the spellcasting ability modifier chosen for this feat, and a creature can choose to fail this saving throw. On a failure, the target is pushed up to 10 feet away from you or pulled up to 10 feet toward you (your choice). The water vanishes immediately after the creature succeeds or fails. You can create this effect a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.\",\r\n\tusages : \"Proficiency bonus per \",\r\n\tusagescalc : \"event.value = How('Proficiency Bonus');\",\r\n\trecovery : \"long rest\",\r\n\tspellcastingBonus : [{\r\n\t\tname : \"Elemental Magic\",\r\n\t\tspell : [\"thaumaturgy\"],\r\n\t\tselection : [\"thaumaturgy\"],\r\n\t\tfirstCol : \"atwill\"\r\n\t}],\r\n\taction : [[\"bonus action\", \"\"]],\r\n\tchoices : [\"Intelligence\", \"Wisdom\", \"Charisma\"],\r\n\t\"intelligence\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Int as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Int Mod'))) + ' (8 + Prof Bonus + Int mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 4\r\n\t},\r\n\t\"wisdom\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Wis as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Wis Mod'))) + ' (8 + Prof Bonus + Wis mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 5\r\n\t},\r\n\t\"charisma\" : {\r\n\t\tcalculate : \"event.value = 'I know the Thaumaturgy cantrip using Cha as spellcasting ability. As a bonus action my Proficiency Bonus per long rest, I can have a creature within 15 ft that I can see make a Str save DC ' + (8 + Number(How('Proficiency Bonus')) + Number(What('Cha Mod'))) + ' (8 + Prof Bonus + Cha mod) or be pushed away from me or pulled towards me for up to 10 ft (my choice). The target can opt to fail.';\",\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Elemental Magic\",\r\n\t\t\tspell : [\"thaumaturgy\"],\r\n\t\t\tselection : [\"thaumaturgy\"],\r\n\t\t\tfirstCol : \"atwill\"\r\n\t\t}],\r\n\t\tspellcastingAbility : 6\r\n\t}\r\n};\r\n\r\n// Spells\r\nSpellsList[\"antagonize-ua\"] = {\r\n\tname : \"Antagonize\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 3,\r\n\tschool : \"Ench\",\r\n\ttime : \"1 a\",\r\n\trange : \"30 ft\",\r\n\tcomponents : \"V,S,M\",\r\n\tcompMaterial : \"A playing card depicting a rogue\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : \"Wis\",\r\n\tdescription : \"1 crea save or 4d4+1d4/SL Psychic dmg & melee atk vs. chosen crea; if none in range, dis. on next atk\",\r\n\tdescriptionShorter : \"1 crea save or 4d4+1d4/SL Psychic dmg & melee atk vs. chosen crea; if no in range, dis. next atk\",\r\n\tdescriptionFull : \"You whisper magical words that antagonize one creature of your choice within range. The target must make a Wisdom saving throw. On a failed save, it takes 4d4 psychic damage and must immediately use its reaction, if available, to make a melee attack against another creature of your choice that you can see. If no other creature is within range, the target has disadvantage on the next attack roll it makes before the start of your next turn.\"+\r\n\t\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d4 for each slot level above 4th.\"\r\n};\r\nSpellsList[\"house of cards-ua\"] = {\r\n\tname : \"House of Cards\",\r\n\tclasses : [\"artificer\", \"bard\", \"sorcerer\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 min\",\r\n\trange : \"Touch\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A deck of cards\",\r\n\tduration : \"24 h\",\r\n\tdescription : \"30-ft high tower, lifts up; 3 floors, 10-ft sq top floor; 5\\xD710 ft card: AC 10, 1 HP; all in half cover (5 sp)\",\r\n\tdescriptionMetric : \"10-m high tower, lifts up; 3 floors, 3-m sq top floor; 1,5\\xD73m card: AC 10, 1 HP; all in half cover (5 sp)\",\r\n\tdescriptionFull : \"You touch the ground and conjure forth a defensive structure made of enormous playing cards. The structure rises with you at its center, harmlessly lifting you and any creatures in the area. The house of cards has a square base that is 30 feet on each side, and it has three floors with 10-foot-high ceilings. The second floor is 20 feet on each side, and the top floor is 10 feet on each side\\u2014both centered above the bottom floor. Ramps connect the interior of each floor, and empty doorframes connect the interior and exterior of each level. Creatures inside or on top of the structure have half cover.\"+\r\n\t\"\\n   Each card that comprises the house is 5 feet wide and 10 feet tall and is very fragile. A card has AC 10 and 1 hit point. The cards are immune to poison and psychic damage. Reducing a card to 0 hit points destroys it. Every time a card is destroyed, roll 1d6. If you roll a 5 or a 6, the house collapses, ending the spell.\"+\r\n\t\"\\n   The house and all its cards vanish when the spell ends.\"\r\n};\r\nSpellsList[\"spirit of death-ua\"] = {\r\n\tname : \"Spirit of Death\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 10]],\r\n\tlevel : 4,\r\n\tschool : \"Necro\",\r\n\ttime : \"1 a\",\r\n\trange : \"60 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded playing card depicting an avatar of death worth at least 400 gp\",\r\n\tduration : \"Conc, 1 min\",\r\n\tdescription : \"Summon spirit to atk 1 crea; obeys commands; takes turn after me; ends if it or target at 0 hp (400gp)\",\r\n\tdescriptionFull : \"You call forth a spirit that embodies death itself. Choose a creature you can see within range. The spirit manifests in an unoccupied space that you can see within 10 feet of the target, and the target becomes haunted by the spirit. The spirit uses the Reaper Spirit stat block. The spirit disappears when it or the haunted creature is reduced to 0 hit points, or when the spell ends.\"+\r\n\t\"\\n   The reaper spirit is an ally to you and your companions. In combat, the spirit shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you), but it will only attack the haunted creature. If you don't issue the spirit any commands, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 5th level or higher, use the higher level wherever the spell's level appears in the stat block.\"\r\n};\r\nSpellsList[\"spray of cards-ua\"] = {\r\n\tname : \"Spray of Cards\",\r\n\tclasses : [\"bard\", \"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 11]],\r\n\tlevel : 2,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"15-ft cone\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A deck of cards\",\r\n\tduration : \"Instantaneous\",\r\n\tsave : typePF ? \"W/D\" : \"W/d\",\r\n\tdescription : \"All in area either: Wis save or blinded 1 rnd; or 2d10+1d10/2SL Force dmg, Dex save halves (5sp)\",\r\n\tdescriptionFull : \"You spray spectral cards from your hands or sleeve; the cards blind or slash at your enemies, and then vanish. Choose one of the following effects for the cards.\"+\r\n\t\"\\n   \" + toUni(\"Blinding Cards\") + \". Each creature in a 15-foot cone must succeed on a Wisdom saving throw or be blinded until the end of their next turn.\"+\r\n\t\"\\n   \" + toUni(\"Cutting Cards\") + \". Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes 2d10 force damage on a failed save or half as much damage on a successful one.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the damage of cutting cards increases by 1d10 for every two slot levels above 2nd.\"\r\n};\r\nSpellsList[\"summon warrior spirit-ua\"] = {\r\n\tname : \"Summon Warrior Spirit\",\r\n\tclasses : [\"sorcerer\", \"warlock\", \"wizard\"],\r\n\tsource : [[\"UA:WotM\", 11]],\r\n\tlevel : 3,\r\n\tschool : \"Conj\",\r\n\ttime : \"1 a\",\r\n\trange : \"90 ft\",\r\n\tcomponents : \"V,S,M\\u0192\",\r\n\tcompMaterial : \"A gilded playing card depicting a knight worth at least 300 gp\",\r\n\tduration : \"Conc, 1 h\",\r\n\tdescription : \"Summon choice of Warrior Spirit; obeys commands; takes turn after mine; disappears at 0 hp (300gp)\",\r\n\tdescriptionFull : \"You call forth a warrior spirit from the legendary Deck of Many Things. It manifests in an unoccupied space that you can see within range. This corporeal form uses the Warrior Spirit stat block. When you cast the spell, choose a type of warrior: barbarian, fighter, or monk. The warrior resembles a humanoid armed appropriately to the chosen class, which determines certain traits in its stat block. The warrior disappears when it drops to 0 hit points or when the spell ends.\"+\r\n\t\"\\n   The warrior is an ally to you and your companions. In combat, the warrior shares your initiative count, but it takes its turn immediately after yours. It obeys your verbal commands (no action required by you). If you don't issue any, it takes the Dodge action and uses its move to avoid danger.\"+\r\n\tAtHigherLevels + \"When you cast this spell using a spell slot of 4th level or higher, the creature assumes the higher level for that casting wherever it uses the spell's level in its stat block.\"\r\n};\r\n"
  },
  {
    "path": "WotC material/wip_excluded-magic-items.js",
    "content": "/*\r\n\tThis file contains the magic items found in WotC publications that have been\r\n\texcluded from the first round of transcriptions\r\n\r\n\tThese items include all artifacts and some intelligent items\r\n\r\n\tAs wel as items that are not normally usable by players such as plot devices\r\n*/\r\n{ // pub_20141104_RoT.js\r\n\t// Artifact\r\n\tMagicItemsList[\"draakhorn\"] = {\r\n\t\tname : \"Draakhorn\",\r\n\t\tsource : [[\"RoT\", 93]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"The Draakhorn was a gift from Tiamat in the war between dragons and giants. It was once the horn of her ancient red dragon consort, Ephelomon, that she gave to dragonkind to help them in their war against the giants. The Draakhorn is a signaling device, and it is so large that it requires two Medium creatures (or one Large or larger) to hold it while a third creature sounds it, making the earth resonate to its call. The horn has been blasted with fire into a dark ebony hue and is wrapped in bands of bronze with draconic runes that glow with purple eldritch fire.\\n   The low, moaning drone of the Draakhorn discomfits normal animals within a few miles, and it alerts all dragons within two thousand miles to rise and be wary, for great danger is at hand. Coded blasts were once used to signal specific messages. Knowledge of those codes has been lost to the ages.\\n   Those with knowledge of the Draakhorn's history know that it was first built to signal danger to chromatic dragons\\u2014a purpose the Cult of the Dragon has corrupted to call chromatic dragons to the Well of Dragons from across the North.\\n   Within 50 feet of any enclosed space where the horn is blown, the air begins to shimmer from the sound. Any character within 20 feet of the entry to the enclosed space must succeed on a DC 12 Strength check to continue pushing against the pressure of the sound. A failure indicates the character can advance no farther toward the entry.\\n   For any character entering the enclosed space, the sound fades to silence\\u2014because any creature that enters the enclosed space is temporarily deafened and must make a DC 12 Constitution saving throw. Success indicates the deafness ends 2 minutes after the Draakhorn ceases to sound. Failure indicates the character remains deafened for 1 hour after the Draakhorn ceases to sound.\\n   While the horn is sounding, a creature must make a DC 15 Constitution saving throw the first time on a turn the creature enters a 150-foot cone in front of the horn or starts its turn there. On a failed save, the creature takes 27 (6d8) thunder damage and is knocked prone. On a successful save, the creature takes half damage and isn't knocked prone.\"\r\n\t}\r\n}\r\n{ // pub_20141209_DMG.js\r\n\t// Intelligent Items with sub-choices\r\n\tMagicItemsList[\"moonblade\"] = {\r\n\t\tname : \"Moonblade\",\r\n\t\tsource : [[\"D\", 217]],\r\n\t\ttype : \"weapon (longsword)\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Of all the magic items created by the elves, one of the most prized and jealously guarded is a moon blade. In ancient times, nearly all elven noble houses claimed one such blade. Over the centuries, some blades have faded from the world, their magic lost as family lines have become extinct. Other blades have vanished with their bearers during great quests. Thus, only a few of these weapons remain.\\n   A moonblade passes down from parent to child. The sword chooses its bearer and remains bonded to that person for life. If the bearer dies, another heir can claim the blade. If no worthy heir exists, the sword lies dormant. It functions like a normal longsword until a worthy soul finds it and lays claim to its power.\\n   A moonblade serves only one master at a time. The attunement process requires a special ritual in the throne room of an elven regent or in a temple dedicated to the elven gods.\\n   A moonblade won't serve anyone it regards as craven, erratic, corrupt, or at odds with preserving and protecting elvenkind. If the blade rejects you, you make ability checks, attack rolls, and saving throws with disadvantage for 24 hours. If the blade accepts you, you become attuned to it and a new rune appears on the blade. You remain attuned to the weapon until you die or the weapon is destroyed.\\n   A moonblade has one rune on its blade for each master it has served (typically 1d6+1). The first rune always grants a +1 bonus to attack and damage rolls made with this magic weapon. Each rune beyond the first grants the moon blade an additional property. The DM chooses each property or determines it randomly on the Moon Blade Properties table.\\n\\n\" + toUni(\"d100\") + \"\\t\" + toUni(\"Property\") + \"\\n01-40\\tIncrease the bonus to attack and damage rolls by 1, to a maximum of +3. Reroll if the moonblade already has a +3 bonus.\\n41-80\\tThe moonblade gains a randomly determined minor property (see \\\"Special Features\\\" DMG p143).\\n81-82\\tThe moonblade gains the finesse property.\\n83-84\\tThe moonblade gains the thrown property (range 20/60 feet).\\n85-86\\tThe moonblade functions as a defender.\\n87-90\\tThe moon blade scores a critical hit on a roll of 19 or 20.\\n91-92\\tWhen you hit with an attack using the moon blade, the attack deals an extra 1d6 slashing damage.\\n93-94\\tWhen you hit a creature of a specific type (such as dragon, fiend, or undead) with the moonblade, the target takes an extra 1d6 damage of one of these types: acid, cold, fire, lightning, or thunder.\\n95-96\\tYou can use a bonus action to cause the moonblade to flash brightly. Each creature that can see you and is within 30 feet of you must succeed on a DC 15 Constitution saving throw or become blinded for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. This property can't be used again until you take a short rest while attuned to the weapon.\\n97-98\\tThe moonblade functions as a ring of spell storing.\\n99\\tYou can use an action to call forth an elfshadow, provided that you don't already have one serving you. The elfshadow appears in an unoccupied space within 120 feet of you. It uses the statistics for a shadow, except it is neutral, immune to effects that turn undead, and doesn't create new shadows. You control this creature, deciding how it acts and moves. It remains until it drops to 0 hit points or you dismiss it as an action.\\n00\\tThe moonblade functions as a vorpal sword.\\n\\n\\n   \" + toUni(\"Sentience\") + \". A moon blade is a sentient neutral good weapon with an Intelligence of 12, a Wisdom of 10, and a Charisma of 12. It has hearing and darkvision out to a range of 120 feet.\\n   The weapon communicates by transmitting emotions, sending a tingling sensation through the wielder's hand when it wants to communicate something it has sensed. It can communicate more explicitly, through visions or dreams, when the wielder is either in a trance or asleep.\\n   \" + toUni(\"Personality\") + \". Every moonblade seeks the advancement of elvenkind and elven ideals. Courage, loyalty, beauty, music, and life are all part of this purpose.\\n   The weapon is bonded to the family line it is meant to serve. Once it has bonded with an owner who shares its ideals, its loyalty is absolute.\\n   If a moon blade has a flaw, it is overconfidence. Once it has decided on an owner, it believes that only that person should wield it, even if the owner falls short of elven ideals.\",\r\n\t\tattunement : true,\r\n\t\tweight : 3\r\n\t}\r\n\t// Artifacts\r\n\tMagicItemsList[\"axe of the dwarvish lords\"] = {\r\n\t\tname : \"Axe of the Dwarvish Lords\",\r\n\t\tsource : [[\"D\", 221]],\r\n\t\ttype : \"weapon (battleaxe)\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Seeing the peril his people faced, a young dwarf prince came to believe that his people needed something to unite them. Thus, he set out to forge a weapon that would be such a symbol.\\n   Venturing deep under the mountains, deeper than any dwarf had ever delved, the young prince came to the blazing heart of a great volcano. With the aid of Moradin, the dwarven god of creation, he first crafted four great tools: the Brutal Pick, the Earthheart Forge, the Anvil of Songs, and the Shaping Hammer. With them, he forged the Axe of the Dwarvish Lords.\\n   Armed with the artifact, the prince returned to the dwarf clans and brought peace. His axe ended grudges and answered slights. The clans became allies, and they threw back their enemies and enjoyed an era of prosperity. This young dwarf is remembered as the First King. When he became old, he passed the weapon, which had become his badge of office, to his heir. The rightful inheritors passed the axe on for many generations.\\n   Later, in a dark era marked by treachery and wickedness, the axe was lost in a bloody civil war fomented by greed for its power and the status it bestowed. Centuries later, the dwarves still search for the axe, and many adventurers have made careers of chasing after rumors and plundering old vaults to find it.\\n   \" + toUni(\"Magic Weapon\") + \". The Axe of the Dwarvish Lords is a magic weapon that grants a +3 bonus to attack and damage rolls made with it. The axe also functions as a belt of dwarvenkind, a dwarven thrower, and a sword of sharpness.\\n   \" + toUni(\"Random Properties\") + \". The axe has the following randomly determined properties:\\n \\u2022 2 minor beneficial properties\\n \\u2022 1 major beneficial property\\n \\u2022 2 minor detrimental properties\\n   \" + toUni(\"Blessings of Moradin\") + \". If you are a dwarf attuned to the axe, you gain the following benefits:\\n \\u2022 You have immunity to poison damage.\\n \\u2022 The range of your darkvision increases by 60 feet.\\n \\u2022 You gain proficiency with artisan's tools related to blacksmithing, brewing, and stonemasonry.\\n   \" + toUni(\"Conjure Earth Elemental\") + \". If you are holding the axe, you can use your action to cast the Conjure Elemental spell from it, summoning an earth elemental. You can't use this property again until the next dawn.\\n   \" + toUni(\"Travel the Depths\") + \". You can use an action to touch the axe to a fixed piece of dwarven stonework and cast the Teleport spell from the axe. If your intended destination is underground, there is no chance of a mishap or arriving somewhere unexpected. You can't use this property again until 3 days have passed.\\n   \" + toUni(\"Curse\") + \". The axe bears a curse that affects any non-dwarf that becomes attuned to it. Even if the attunement ends, the curse remains. With each passing day, the creature's physical appearance and stature become more dwarflike. After seven days, the creature looks like a typical dwarf, but the creature neither loses its racial traits nor gains the racial traits of a dwarf. The physical changes wrought by the axe aren't considered magical in nature (and therefore can't be dispelled), but they can be undone by any effect that removes a curse, such as a Greater Restoration or Remove Curse spell.\\n   \" + toUni(\"Destroying the Axe\") + \". The only way to destroy the axe is to melt it down in the Earthheart Forge, where it was created. It must remain in the burning forge for fifty years before it finally succumbs to the fire and is consumed.\",\r\n\t\tattunement : true,\r\n\t\tweight : 4,\r\n\t\tcursed : true\r\n\t}\r\n\tMagicItemsList[\"book of exalted deeds\"] = {\r\n\t\tname : \"Book of Exalted Deeds\",\r\n\t\tsource : [[\"D\", 222]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"The definitive treatise on all that is good in the multiverse, the fabled Book of Exalted Deeds figures prominently in many religions. Rather than being a scripture devoted to a particular faith, the book's various authors filled the pages with their own vision of true virtue, providing guidance for defeating evil.\\n   The Book of Exalted Deeds rarely lingers in one place. As soon as the book is read, it vanishes to some other corner of the multiverse where its moral guidance can bring light to a darkened world. Although attempts have been made to copy the work, efforts to do so fail to capture its magical nature or translate the benefits it offers to those pure of heart and firm of purpose.\\n   A heavy clasp, wrought to look like angel wings, keeps the book's contents secure. Only a creature of good alignment that is attuned to the book can release the clasp that holds it shut. Once the book is opened, the attuned creature must spend 80 hours reading and studying the book to digest its contents and gain its benefits. Other creatures that peruse the book's open pages can read the text but glean no deeper meaning and reap no benefits. An evil creature that tries to read from the book takes 24d6 radiant damage. This damage ignores resistance and immunity, and can't be reduced or avoided by any means. A creature reduced to 0 hit points by this damage disappears in a blinding flash and is destroyed, leaving its possessions behind.\\n   Benefits granted by the Book of Exalted Deeds last only as long as you strive to do good. If you fail to perform at least one act of kindness or generosity within the span of 10 days, or if you willingly perform an evil act, you lose all the benefits granted by the book.\\n   \" + toUni(\"Random Properties\") + \". The Book of Exalted Deeds has the following random properties:\\n \\u2022 2 minor beneficial properties\\n \\u2022 2 major beneficial properties\\n   \" + toUni(\"Increased Wisdom\") + \". After you spend the requisite amount of time reading and studying the book, your Wisdom score increases by 2, to a maximum of 24. You can't gain this benefit from the book more than once.\\n   \" + toUni(\"Enlightened Magic\") + \". Once you've read and studied the book, any spell slot you expend to cast a cleric or paladin spell counts as a spell slot of one level higher.\\n   \" + toUni(\"Halo\") + \". Once you've read and studied the book, you gain a protective halo. This halo sheds bright light in a 10-foot radius and dim light for an additional 10 feet. You can dismiss or manifest the halo as a bonus action. While present, the halo gives you advantage on Charisma (Persuasion) checks made to interact with good creatures and Charisma (Intimidation) checks made to interact with evil creatures. In addition, fiends and undead within the halo's bright light make attack rolls against you with disadvantage.\\n   \" + toUni(\"Destroying the Book\") + \". It is rumored that the Book of Exalted Deeds can't be destroyed as long as good exists in the multiverse. However, drowning the book in the River Styx removes all writing and imagery from its pages and renders the book powerless for 1d100 years.\",\r\n\t\tweight : 5,\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a creature of good alignment\",\r\n\t\tprereqeval : function(v) { return (/good/i).test(What(\"Alignment\")); }\r\n\t}\r\n\tMagicItemsList[\"book of vile darkness\"] = {\r\n\t\tname : \"Book of Vile Darkness\",\r\n\t\tsource : [[\"D\", 222]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"The contents of this foul manuscript of ineffable wickedness are the meat and drink of those in evil's thrall. No mortal was meant to know the secrets it contains, knowledge so horrid that to even glimpse the scrawled pages invites madness.\\n   Most believe the lich-god Vecna authored the Book of Vile Darkness. He recorded in its pages every diseased idea, every unhinged thought, and every example of blackest magic he came across or devised. Vecna covered every vile topic he could, making the book a gruesome catalog of all mortal wrongs.\\n   Other practitioners of evil have held the book and added their own input to its catalog of vile knowledge. Their additions are clear, for the writers of later works stitched whatever they were writing into the tome or, in some cases, made notations and additions to existing text. There are places where pages are missing, torn. or covered so completely with ink, blood, and scratches that the original text can't be divined.\\n   Nature can't abide the book's presence. Ordinary plants wither in its presence, animals are unwilling to approach it, and the book gradually destroys whatever it touches. Even stone cracks and turns to powder if the book rests on it long enough.\\n   A creature attuned to the book must spend 80 hours reading and studying it to digest its contents and reap its benefits. The creature can then freely modify the book's contents, provided that those modifications advance evil and expand the lore already contained within.\\n   Whenever a non-evil creature attunes to the Book of Vile Darkness, that creature must make a DC 17 Charisma saving throw. On a failed save, the creature's alignment changes to neutral evil.\\n   The Book of Vile Darkness remains with you only as long as you strive to work evil in the world. If you fail to perform at least one evil act within the span of 10 days, or if you willingly perform a good act, the book disappears. If you die while attuned to the book, an entity of great evil claims your soul. You can't be restored to life by any means while your soul remains imprisoned.\\n   \" + toUni(\"Random Properties\") + \". The Book of Vile Darkness has the following random properties:\\n \\u2022 3 minor beneficial properties\\n \\u2022 1 major beneficial property\\n \\u2022 3 minor detrimental properties\\n \\u2022 2 major detrimental properties\\n   \" + toUni(\"Adjusted Ability Scores\") + \". After you spend the requisite amount of time reading and studying the book, one ability score of your choice increases by 2, to a maximum of 24. Another ability score of your choice decreases by 2, to a minimum of 3. The book can't adjust your ability scores again.\\n   \" + toUni(\"Mark of Darkness\") + \". After you spend the requisite amount of time reading and studying the book, you acquire a physical disfigurement as a hideous sign of your devotion to vile darkness. An evil rune might appear on your face, your eyes might become glossy black, or horns might sprout from your forehead. Or you might become wizened and hideous, lose all facial features, gain a forked tongue, or some other feature the DM chooses. The mark of darkness grants you advantage on Charisma (Persuasion) checks made to interact with evil creatures and Charisma (Intimidation) checks made to interact with non-evil creatures.\\n   \" + toUni(\"Command Evil\") + \". While you are attuned to the book and holding it, you can use an action to cast the Dominate Monster spell on an evil target (save DC 18). You can't use this property again until the next dawn.\\n   \" + toUni(\"Dark Lore\") + \". You can reference the Book of Vile Darkness whenever you make an Intelligence check to recall information about some aspect of evil, such as lore about demons. When you do so, double your proficiency bonus on that check.\\n   \" + toUni(\"Dark Speech\") + \". While you carry the Book of Vile Darkness and are attuned to it, you can use an action to recite word from its pages in a foul language known as Dark Speech. Each time you do so, you take 1d12 psychic damage, and each non-evil creature within 15 feet of you takes 3d6 psychic damage.\\n   \" + toUni(\"Destroying the Book\") + \". The Book of Vile Darkness allows pages to be torn from it, but any evil lore contained on those pages finds its way back into the book eventually, usually when a new author adds pages to the tome.\\n   If a solar tears the book in two, the book is destroyed for 1d100 years, after which it reforms in some dark corner of the multiverse.\\n   A creature attuned to the book for one hundred years can unearth a phrase hidden in the original text that, when translated to Celestial and spoken aloud, destroys both the speaker and the book in a blinding flash of radiance. However, as long as evil exists in the multiverse, the book reforms 1d10 \\xD7 100 years later.\\n   If all evil in the multiverse is wiped out, the book turns to dust and is forever destroyed.\",\r\n\t\tattunement : true,\r\n\t\tweight : 5\r\n\t}\r\n\tMagicItemsList[\"hand of vecna\"] = {\r\n\t\tname : \"Hand of Vecna\",\r\n\t\tsource : [[\"D\", 224]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Seldom is the name of Vecna spoken except in a hushed voice. Vecna was, in his time, one of the mightiest of all wizards. Through dark magic and conquest, he forged a terrible empire. For all his power, Vecna couldn't escape his own mortality. He began to fear death and take steps to prevent his end from ever coming about.\\n   Orcus, the demon prince of undeath, taught Vecna a ritual that would allow him to live on as a lich. Beyond death, he became the greatest of all liches. Even though his body gradually withered and decayed, Vecna continued to expand his evil dominion. So formidable and hideous was his temper that his subjects feared to speak his name. He was the Whispered One, the Master of the Spider Throne, the Undying King, and the Lord of the Rotted Tower.\\n   Some say that Vecna's lieutenant Kas coveted the Spider Throne for himself, or that the sword his lord made for him seduced him into rebellion. Whatever the reason, Kas brought the Undying King's rule to an end in a terrible battle that left Vecna's tower a heap of ash. Of Vecna, all that remained were one hand and one eye, grisly artifacts that still seek to work the Whispered One's will in the world.\\n   The Eye of Vecna and the Hand of Vecna might be found together or separately. The eye looks like a bloodshot organ torn free from the socket. The hand is a mummified and shriveled left extremity.\\n   To attune to the eye, you must gouge out your own eye and press the artifact into the empty socket. The eye grafts itself to your head and remains there until you die. Once in place, the eye transforms into a golden eye with a slit for a pupil, much like that of a cat. If the eye is ever removed, you die.\\n   To attune to the hand, you must lop off your left hand at the wrist and the press the artifact against the stump. The hand grafts itself to your arm and becomes a functioning appendage. If the hand is ever removed, you die.\\n   \" + toUni(\"Random Properties\") + \". The Eye of Vecna and the Hand of Vecna each have the following random properties:\\n \\u2022 1 minor beneficial property\\n \\u2022 1 major beneficial property\\n \\u2022 1 minor detrimental property\\n\\n\" + toUni(\"Properties of the Hand\") + \". Your alignment changes neutral evil, and you gain the following benefits:\\n \\u2022 Your Strength score becomes 20, unless it is already 20 or higher.\\n \\u2022 Any melee spell attack you make with the hand, and any melee weapon attack made with a weapon held by it, deals an extra 2d8 cold damage on a hit.\\n \\u2022 The hand has 8 charges. You can use an action and expend 1 or more charges to cast one of the following spells (save DC 18) from it: Finger of Death (5 charges), Sleep (1 charge), Slow (2 charges), or Teleport (3 charges). The hand regains 1d4+4 expended charges daily at dawn. Each time you cast a spell from the hand, it casts the Suggestion spell on you (save DC 18), demanding that you commit an evil act. The hand might have a specific act in mind or leave it up to you.\\n\\n\" + toUni(\"Properties of the Eye and Hand\") + \". If you are attuned to both the hand and eye, you gain the following additional benefits:\\n \\u2022 You are immune to disease and poison.\\n \\u2022 Using the eye's X-ray vision never causes you to suffer exhaustion.\\n \\u2022 You experience premonitions of danger and, unless you are incapacitated, can't be surprised.\\n \\u2022 If you start your turn with at least 1 hit point, you regain 1d10 hit points.\\n \\u2022 If a creature has a skeleton, you can attempt to turn its bones to jelly with a touch of the Hand of Vecna. You can do so by using an action to make a melee attack against a creature you can reach, using your choice your melee attack bonus for weapons or spells. On a hit, the target must succeed on a DC 18 Constitution saving throw or drop to 0 hit points.\\n \\u2022 You can use an action to cast Wish. This property can't be used again until 30 days have passed.\\n\\n\" + toUni(\"Destroying the Eye and Hand\") + \". If the Eye of Vecna and the Hand of Vecna are both attached to the same creature, and that creature is slain by the Sword of Kas, both the eye and the hand burst into flame, turn to ash, and are destroyed forever. Any other attempt to destroy the eye or hand seems to work, but the artifact reappears in one of Vecna's many hidden vaults, where it waits to be rediscovered.\",\r\n\t\tattunement : true\r\n\t}\r\n\tMagicItemsList[\"eye of vecna\"] = {\r\n\t\tname : \"Eye of Vecna\",\r\n\t\tsource : [[\"D\", 224]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Seldom is the name of Vecna spoken except in a hushed voice. Vecna was, in his time, one of the mightiest of all wizards. Through dark magic and conquest, he forged a terrible empire. For all his power, Vecna couldn't escape his own mortality. He began to fear death and take steps to prevent his end from ever coming about.\\n   Orcus, the demon prince of undeath, taught Vecna a ritual that would allow him to live on as a lich. Beyond death, he became the greatest of all liches. Even though his body gradually withered and decayed, Vecna continued to expand his evil dominion. So formidable and hideous was his temper that his subjects feared to speak his name. He was the Whispered One, the Master of the Spider Throne, the Undying King, and the Lord of the Rotted Tower.\\n   Some say that Vecna's lieutenant Kas coveted the Spider Throne for himself, or that the sword his lord made for him seduced him into rebellion. Whatever the reason, Kas brought the Undying King's rule to an end in a terrible battle that left Vecna's tower a heap of ash. Of Vecna, all that remained were one hand and one eye, grisly artifacts that still seek to work the Whispered One's will in the world.\\n   The Eye of Vecna and the Hand of Vecna might be found together or separately. The eye looks like a bloodshot organ torn free from the socket. The hand is a mummified and shriveled left extremity.\\n   To attune to the eye, you must gouge out your own eye and press the artifact into the empty socket. The eye grafts itself to your head and remains there until you die. Once in place, the eye transforms into a golden eye with a slit for a pupil, much like that of a cat. If the eye is ever removed, you die.\\n   To attune to the hand, you must lop off your left hand at the wrist and the press the artifact against the stump. The hand grafts itself to your arm and becomes a functioning appendage. If the hand is ever removed, you die.\\n   \" + toUni(\"Random Properties\") + \". The Eye of Vecna and the Hand of Vecna each have the following random properties:\\n \\u2022 1 minor beneficial property\\n \\u2022 1 major beneficial property\\n \\u2022 1 minor detrimental property\\n\\n\" + toUni(\"Properties of the Eye\") + \". Your alignment changes to neutral evil, and you gain the following benefits:\\n \\u2022 You have truesight.\\n \\u2022 You can use an action to see as if you were wearing a ring of X-ray vision. You can end this effect as a bonus action.\\n \\u2022 The eye has 8 charges. You can use an action and expend 1 or more charges to cast one of the following spells (save DC 18) from it: Clairvoyance (2 charges), Crown of Madness (1 charge), Disintegrate (4 charges), Dominate Monster (5 charges), or Eyebite (4 charges). The eye regains 1d4+4 expended charges daily at dawn. Each time you cast a spell from the eye, there is a 5% chance that Vecna tears your soul from your body, devours it, and then takes control of the body like a puppet. If that happens, you become an NPC under the DM's control.\\n\\n\" + toUni(\"Properties of the Eye and Hand\") + \". If you are attuned to both the hand and eye, you gain the following additional benefits:\\n \\u2022 You are immune to disease and poison.\\n \\u2022 Using the eye's X-ray vision never causes you to suffer exhaustion.\\n \\u2022 You experience premonitions of danger and, unless you are incapacitated, can't be surprised.\\n \\u2022 If you start your turn with at least 1 hit point, you regain 1d10 hit points.\\n \\u2022 If a creature has a skeleton, you can attempt to turn its bones to jelly with a touch of the Hand of Vecna. You can do so by using an action to make a melee attack against a creature you can reach, using your choice your melee attack bonus for weapons or spells. On a hit, the target must succeed on a DC 18 Constitution saving throw or drop to 0 hit points.\\n \\u2022 You can use an action to cast Wish. This property can't be used again until 30 days have passed.\\n\\n\" + toUni(\"Destroying the Eye and Hand\") + \". If the Eye of Vecna and the Hand of Vecna are both attached to the same creature, and that creature is slain by the Sword of Kas, both the eye and the hand burst into flame, turn to ash, and are destroyed forever. Any other attempt to destroy the eye or hand seems to work, but the artifact reappears in one of Vecna's many hidden vaults, where it waits to be rediscovered.\",\r\n\t\tattunement : true\r\n\t}\r\n\tMagicItemsList[\"sword of kas\"] = {\r\n\t\tname : \"Sword of Kas\",\r\n\t\tsource : [[\"D\", 226]],\r\n\t\ttype : \"weapon (longsword)\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"When Vecna grew in power, he appointed an evil and ruthless lieutenant, Kas the Bloody Handed, to act as his bodyguard and right hand. This despicable villain served as advisor, warlord, and assassin. His successes earned him Vecna's admiration and a reward: a sword with as dark a pedigree as the man who would wield it.\\n   For a long time, Kas faithfully served the lich but as Kas's power grew, so did his hubris. His sword urged him to supplant Vecna, so that they could rule the lich's empire in Vecna's stead. Legend says Vecna's destruction came at Kas's hand, but Vecna also wrought his rebellious lieutenant's doom, leaving only Kas's sword behind. The world was made brighter thereby.\\n   The Sword of Kas is a magic, sentient longsword that grants a +3 bonus to attack and damage rolls made with it. It scores a critical hit on a roll of 19 or 20, and deals an extra 2d10 slashing damage to undead.\\n   If the sword isn't bathed in blood within 1 minute of being drawn from its scabbard, its wielder must make a DC 15 Charisma saving throw. On a successful save, the wielder takes 3d6 psychic damage. On a failed save, the wielder is dominated by the sword, as if by the Dominate Monster spell, and the sword demands that it be bathed in blood. The spell effect ends when the sword's demand is met.\\n   \" + toUni(\"Random Properties\") + \". The Sword of Kas has the following random properties:\\n \\u2022 1 minor beneficial property\\n \\u2022 1 major beneficial property\\n \\u2022 1 minor detrimental property\\n \\u2022 1 major detrimental property\\n\\n\" + toUni(\"Spirit of Kas\") + \". While the sword is on your person, you add a d10 to your initiative at the start of every combat. In addition, when you use an action to attack with the sword, you can transfer some or all of its attack bonus to your Armor Class instead. The adjusted bonuses remain in effect until the start of your next turn.\\n   \" + toUni(\"Spells\") + \". While the sword is on your person, you can use an action to cast one of the following spells (save 18) from it: Call Lightning, Divine Word, or Finger of Death. Once you use the sword to cast a spell, you can't cast that spell again from it until the next dawn.\\n   \" + toUni(\"Sentience\") + \". The Sword of Kas is a sentient chaotic evil weapon with an Intelligence of 15, a Wisdom of 13, and a Charisma of 16. It has hearing and darkvision out to a range of 120 feet.\\n   The weapon communicates telepathically with its wielder and can speak, read, and understand Common\\n   \" + toUni(\"Personality\") + \". The sword's purpose is to bring ruin to Vecna. Killing Vecna's worshipers, destroying the lich's works, and foiling his machinations all help to fulfill this goal.\\n   The Sword of Kas also seeks to destroy anyone corrupted by the Eye and Hand of Vecna. The sword's obsession with those artifacts eventually becomes a fixation for its wielder.\\n   \" + toUni(\"Destroying the Sword\") + \". A creature attuned to both the Eye of Vecna and the Hand of Vecna can use the wish property of those combined artifacts to unmake the Sword of Kas. The creature must cast the Wish spell and make a Charisma check contested by the Charisma check of the sword. The sword must be within 30 feet of the creature, or the spell fails. If the sword wins the contest, nothing happens, and the Wish spell is wasted. If the sword loses the contest, it is destroyed.\",\r\n\t\tattunement : true,\r\n\t\tweight : 3\r\n\t}\r\n\tMagicItemsList[\"wand of orcus\"] = {\r\n\t\tname : \"Wand of Orcus\",\r\n\t\tsource : [[\"D\", 227]],\r\n\t\ttype : \"wand\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"The ghastly Wand of Orcus rarely leaves Orcus's side. The device, as evil as its creator, shares the demon lord's aims to snuff out the lives of all living things and bind the Material Plane in the stasis of undeath. Orcus allows the wand to slip from his grasp from time to time. When it does, it magically appears wherever its master senses an opportunity to achieve some fell goal.\\n   Made from bones as hard as iron, the wand is topped with a magically enlarged skull that once belonged to a human hero slain by Orcus. The wand can magically change in size to better conform to the grip of its user. Plants wither, drinks spoil, flesh rots, and vermin thrive in the wand's presence.\\n   Any creature besides Orcus that tries to attune to the wand must make a DC 17 Constitution saving throw. On a successful save, the creature takes 10d6 necrotic damage. On a failed save, the creature dies and rises as a zombie.\\n   In the hands of one who is attuned to it, the wand can be wielded as a magic mace that grants a +3 bonus to attack and damage rolls made with it. The wand deals an extra 2d12 necrotic damage on a hit.\\n   \" + toUni(\"Random Properties\") + \". The Wand of Orcus has the following random properties:\\n \\u2022 2 minor beneficial properties\\n \\u2022 1 major beneficial property\\n \\u2022 2 minor detrimental properties\\n \\u2022 1 major detrimental property\\nThe detrimental properties of the Wand of Orcus are suppressed while the wand is attuned to Orcus himself.\\n\\n\" + toUni(\"Protection\") + \". You gain a +3 bonus to Armor Class while holding the wand.\\n   \" + toUni(\"Spells\") + \". The wand has 7 charges. While holding it, you can use an action and expend 1 or more of its charges to cast one of the following spells (save DC 18) from it: Animate Dead (1 charge), Blight (2 charges), Circle of Death (3 charges), Finger of Death (3 charges), Power Word Kill (4 charges), or Speak with Dead (1 charge). The wand regains 1d4+3 expended charges daily at dawn.\\n   While attuned to the wand, Orcus or a follower blessed by him can cast each of the wand's spells using 2 fewer charges (minimum of 0).\\n   \" + toUni(\"Call Undead\") + \". While you are holding the wand, you can use an action to conjure skeleton and zombie, calling forth as many of them as you can divide 500 hit points among, each undead having average hit points. The undead magically rise up from the ground or otherwise form in unoccupied spaces within 300 feet of you and obey your commands until they are destroyed or until dawn of the next day, when they collapse into inanimate piles of bones and rotting corpses. Once you use this property of the wand, you can't use it again until the next dawn.\\n   While attuned to the wand, Orcus can summon any kind of undead, not just skeletons and zombies. The undead don't perish or disappear at dawn the following day, remaining until Orcus dismisses them.\\n   \" + toUni(\"Sentience\") + \". The Wand of Orcus is a sentient, chaotic evil item with an Intelligence of 16, a Wisdom of 12, and a Charisma of 16. It has hearing and darkvision out to a range of 120 feet.\\n   The wand communicates telepathically with its wielder and can speak, read, and understand Abyssal and Common.\\n   \" + toUni(\"Personality\") + \". The wand's purpose is to help satisfy Orcus's desire to slay everything in the multiverse. The wand is cold, cruel, nihilistic, and bereft of humor. In order to further its master's goals, the wand feigns devotion to its current user and makes grandiose promises that it has no intention of fulfilling, such as vowing to help its user overthrow Orcus.\\n   \" + toUni(\"Destroying the Wand\") + \". Destroying the Wand of Orcus requires that it be taken to the Positive Energy Plane by the ancient hero whose skull surmounts it. For this to happen, the long-lost hero must first be restored to life\\u2014no easy task, given the fact that Orcus has imprisoned the hero's soul and keeps it hidden and well guarded.\\n   Bathing the wand in positive energy causes it to crack and explode, but unless the above conditions are met, the wand instantly reforms on Orcus's layer of the Abyss.\",\r\n\t\tattunement : true,\r\n\t\tweight : 4\r\n\t}\r\n}\r\n{ // pub_20160906_SKT.js\r\n\tMagicItemsList[\"wyrmskull throne\"] = { // artifact\r\n\t\tname : \"Wyrmskull Throne\",\r\n\t\tsource : [[\"SKT\", 237]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Built by dwarven gods and entrusted to the rulers of Shanatar, an ancient dwarven empire. The Wyrmskull Throne was a symbol of dwarven power and pride for ages untold. The throne hovers a foot off the ground and is a massive thing made of polished obsidian with oversized feet\\u2014the impaled skulls of four ancient blue dragons. Runes glisten in the carved obsidian winking to life with blue energy when the throne's powers are activated.\\n   After the fall of Shanatar, the Wyrmskull Throne fell into the clutches of less honorable creatures. A band of adventurers wrested the throne from the aquatic elf tyrant Gantar Kraok and sold it to the storm giant Neri for a considerable fortune. Neri had the throne magically enlarged and gave it to her husband, King Hekaton, as a gift, along with one of the Ruling Scepters of Shanatar, which she had found in a wreck at the bottom of the Trackless Sea. Only a creature attuned to a Ruling Scepter and in possession of it can harness the powers of the Wyrmskull Throne, which has become the centerpiece of King Hekaton's throne room in the undersea citadel of Maelstrom. Fear of the throne's power has helped prevent evil giants from challenging or threatening Hekaton's leadership.\\n   Any creature not attuned to a Ruling Scepter who sits on the throne is paralyzed and encased in a magical force field. While encased, the creature can't be touched or moved from the throne. Touching a Ruling Scepter to the force field dispels the field, though the creature remains paralyzed until it is separated from the throne.\\n   Any creature seated on the throne can hear faint Whispers in Draconic\\u2014the whisperings of four blue dragons whose skulls adorn the throne. Although powerless, these spirits try to influence the decisions of the throne's master\\n   \" + toUni(\"Properties of the Throne\") + \". The throne has 9 charges and regains all expended charges daily at dawn. A creature that sits on the throne while attuned to a Ruling Sceptor in its possession can harness the throne's properties, which are as follows:\\n   The throne gains a flying speed of 30 feet and can hover and flies where the creature wills. This property doesn't expend any charges.\\n   Both the throne and the creature sitting on it can move through earth and stone without disturbing the material they move through. This property doesn't expend any charges.\\n   As an action, the creature can expend 1 charge to cast Lightning Bolt (spell save DC 19) from the throne. The spell is cast as though using a 9th-level spell slot and deals 49 (14d6) lightning damage. The bolt discharges from the mouth of one of the throne's blue dragon skulls.\\n   As an action, the creature can expend 2 charges to cast the Globe of Invulnerability spell from the throne. The globe encloses both the creature and the throne.\\n   As an action, the creature can expend 3 charges to create a spectral image of an ancient blue dragon that surrounds both it and the throne. The spectral dragon lasts for 1 minute. At the end of each of the creature's turns, the spectral dragon makes one bite attack and two claw attacks against targets of the creature's choice. These attacks have the same attack bonus, reach, and damage as an ancient blue dragon's bite and claw attacks.\\n   \" + toUni(\"Destroying the Throne\") + \". The Wyrmskull Throne can be destroyed by breaking at least five Ruling Scepters of Shanatar simultaneously on it. This fact has never been recorded or sung of among the dwarves or any bards or storytellers, and it can't be discovered with an ability check. Characters who want to destroy the throne must go on a quest to learn the method for doing so. The throne's destruction triggers an explosion, as shards of obsidian fly out in all directions. Each creature and object within a 30-foot-radius sphere centered on the throne must succeed on a DC 21 Dexterity saving throw, taking 70 (20d6) slashing damage on a failed save, or half as much damage on a successful one.\"\r\n\t}\r\n}\r\n{ // pub_20170919_ToA.js\r\n\tMagicItemsList[\"ring of winter\"] = {\r\n\t\tname : \"Ring of Winter\",\r\n\t\tsource : [[\"ToA\", 207]],\r\n\t\ttype : \"ring\",\r\n\t\trarity : \"artifact\",\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Artus Cimber has kept this item in his possession for over a century. The Ring of Winter is a golden band that resizes to fit snugly on the finger of its wearer. A thin layer of frost coats the outside of the ring, which normal heat can't melt. The ring feels ice cold to the touch and initially numbs the hand that wears it, but this cold ceases to be felt by one who is attuned to this ring.\\n   The Ring of Winter is sentient and tries to take control of any creature that wears it (see \\\"Sentient Magic Items\\\" chapter 7 of the Dungeon Master's Guide). If it succeeds, the ring compels its wearer to cause undue harm to everyone and everything around it, in a cold-hearted attempt to incur the wrath of enemies and bring the wearer's doom.\\n   \" + toUni(\"Sentience\") + \". The Ring of Winter is a sentient chaotic evil item with an Intelligence of 14, a Wisdom of 14, and a Charisma of 17. The ring communicates by transmitting emotion to the creature carrying or wielding it, and it has hearing and normal vision out to a range of 60 feet. The ring craves destruction, and it likes inflicting indiscriminate harm on others.\\n   \" + toUni(\"Nondetection\") + \". The Ring of Winter defies attempts to magically locate it. Neither the ring nor its wearer can be targeted by any divination magic or perceived through magical scrying sensors.\\n   \" + toUni(\"Frozen Time\") + \". As long as you wear the ring, you don't age naturally. This effect is similar to suspended animation, in that your age doesn't catch up to you once the ring is removed. The ring doesn't protect its wearer from magical or supernatural aging effects, such as the Horrifying Visage of a ghost.\\n   \" + toUni(\"Cold Immunity\") + \". While attuned to and wearing the ring, you have immunity to cold damage and don't suffer any ill effects from extreme cold (see chapter 5 of the Dungeon's Master Guide).\\n   \" + toUni(\"Magic\") + \". The Ring of Winter has 12 charges and regains all its expended charges daily at dawn. While wearing the ring, you can expend the necessary number of charges to activate one of the following properties:\\n \\u2022 You can expend 1 charge as an action and use the ring to lower the temperature in a 120-foot-radius sphere centered on a point you can see within 300 feet of you. The temperature in that area drops 20 degrees per minute, to a minimum of -30 degrees Fahrenheit. Frost and ice begin to form on surfaces once the temperature drops below 32 degrees. This effect is permanent unless you use the ring to end it as an action, at which point the temperature in the area returns to normal at a rate of 10 degrees per minute.\\n \\u2022 You can cast one of the following spells from the ring (spell save DC 17) by expending the necessary number of charges: Bigby's Hand (2 charges; the hand is made of ice, is immune to cold damage, and deals bludgeoning damage instead of force damage as a clenched fist), Cone of Cold (2 charges), flesh to ice (3 charges; as Flesh to Stone except that the target turns to solid ice with the density and durability of stone), Ice Storm (2 charges), Otiluke's Freezing Sphere (3 charges), Sleet Storm (1 charge), Spike Growth (1 charge; the spikes are made of ice), or Wall of Ice (2 charges).\\n \\u2022 You can expend the necessary number of charges as an action and use the ring to create either an inanimate ice object (2 charges) or an animated ice creature (4 charges). The ice object can't have any moving parts, must be able to fit inside a 10-foot cube, and has the density and durability of metal or stone (your choice). The ice creature must be modeled after a beast with a challenge rating of 2 or less. The ice creature has the same statistics as the beast it models, with the following changes: the creature is a construct with vulnerability to fire damage, immunity to cold and poison damage, and immunity to the following conditions: charmed, exhaustion, frightened, paralyzed, petrified, and poisoned. The ice creature obeys only its creator's commands. The ice object or creature appears in an unoccupied space within 60 feet of you. It melts into a pool of normal water after 24 hours or when it drops to 0 hit points. In extreme heat, it loses 5 (1d10) hit points per minute as it melts. Use the guidelines in chapter 8 of the Dungeon Master's Guide to determine the hit points of an inanimate object if they become necessary.\\n\\n\" + toUni(\"Other Properties\") + \". The Ring of Winter is rumored to possess other properties that can be activated only by an evil being whose will the ring can't break. Frost giants have long believed that the ring can be used to freeze entire worlds, while a djinni in the service of a Calishite pasha once claimed that the ring could be used to summon and control white dragons, as well as the mighty ice primordial named Cryonax.\\n   \" + toUni(\"Destroying the Ring\") + \". The ring is nigh indestructible, resisting even the most intense magical heat. If it is placed on the finger of the powerful archfey known as the Summer Queen, the ring melts away and is destroyed forever.\",\r\n\t\tattunement : true,\r\n\t\tweight : 1\r\n\t}\r\n\tMagicItemsList[\"staff of the forgotten one\"] = {\r\n\t\tname : \"Staff of the Forgotten One\",\r\n\t\tsource : [[\"ToA\", 208]],\r\n\t\ttype : \"staff\",\r\n\t\trarity : \"artifact\",\r\n\t\tstoryItemAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This crooked staff is carved from bone and topped with the skull of a forgotten archmage whom Acererak destroyed long ago. Etched into the skull's forehead is Acererak's rune, which is known on many worlds as a sign of death.\\n   \" + toUni(\"Beneficial Properties\") + \". While the staff is on your person, you gain the following benefits:\\n \\u2022 Your proficiency bonus to Intelligence (Arcana) and Intelligence (History) checks is doubled.\\n \\u2022 You can't be blinded, charmed, deafened, frightened, petrified, or stunned.\\n \\u2022 Undead with a challenge rating of 2 or lower will neither threaten nor attack you unless you harm them.\\n \\u2022 You can wield the staff as a +3 quarterstaff that deals an extra 10 (3d6) necrotic damage on a hit.\\n\\n\" + toUni(\"Invoke Curse\") + \". The Staff of the Forgotten One has 7 charges and regains 1d4+3 expended charges daily at dawn. While holding the staff, you can use an action to expend 1 charge and target one creature you can see within 60 feet of you. The target must succeed on a Constitution saving throw (using your spell save DC) or be cursed. While cursed in this way, the target can't regain hit points and has vulnerability to necrotic damage. A Greater Restoration, Remove Curse, or similar spell ends the curse on the target.\\n   \" + toUni(\"The Forgotten One\") + \". The bodiless life force of a dead archmage empowers the staff and is imprisoned within it. The rune carved into the staff's skull protects Acererak from this spirit's vengeance. Each time a creature other than Acererak expends any of the staff's charges, there is a 50% chance that the life force tries to possess the staff wielder. The wielder must succeed on a DC 20 Charisma saving throw or be possessed, becoming an NPC under the DM's control. If the intruding life force is targeted by magic such as a Dispel Evil and Good spell, it becomes trapped in the staff once more. Once it takes control of another creature, the insane spirit of the dead archmage attempts to destroy the staff.\\n   \" + toUni(\"Destroying the Staff\") + \". A creature in possession of the staff can use an action to break it over one knee or a solid surface. The staff is destroyed and releases its remaining magic in an explosion that expands to fill a 30-foot-radius sphere centered on it. Each creature in the area must make a DC 18 Dexterity saving throw, taking 132 (24d10) force damage on a failed save, or half as much damage on a successful one. When the staff is destroyed, the life force of the Forgotten One is released to the afterlife. Where it goes is anyone's guess.\",\r\n\t\tattunement : true,\r\n\t\tweight : 4\r\n\t}\r\n}\r\n{ // pub_20180723_WGtE.js\r\n\t// Eldritch Machines are not portable and are plot devices\r\n\t// It doesn't really make sense to add them to a character sheet\r\n\tMagicItemsList[\"dimensional seal\"] = {\r\n\t\tname : \"Dimensional Seal\",\r\n\t\tsource : [[\"WGtE\", 118]],\r\n\t\ttype : \"eldritch machine\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"A dimensional seal is a massive stone slab covered with a complex pattern of runes and sigils. The seal projects an invisible field with a radius of two miles. This field blocks all forms of conjuration magic and any other effect that involves teleportation or planar travel. It also negates the effects of any manifest zone within the field.\\n   Dimensional seals are usually found in the Eldeen Reaches and the Shadow Marches, as relics of the conflict between the Gatekeeper druids and the daelkyr. The techniques used to create these seals have been long lost. It's said that as a whole, the dimensional seals keep the daelkyr bound in Khyber and prevent Xoriat from becoming coterminous with Eberron. If enough of these seals are destroyed, there could be serious consequences for the world.\"\r\n\t}\r\n\tMagicItemsList[\"mabaran resonator\"] = {\r\n\t\tname : \"Mabaran Resonator\",\r\n\t\tsource : [[\"WGtE\", 118]],\r\n\t\ttype : \"eldritch machine\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This horrific device draws on the power of Mabar, infusing the dead with the malign energies of the Endless Night. While it is active, any creature that dies within two miles of the resonator reanimates in one round as a zombie under the control of creature attuned to the device. At the DM's discretion, more powerful creatures can return as other forms of undead.\",\r\n\t\tattunement : true\r\n\t}\r\n\tMagicItemsList[\"master's call\"] = {\r\n\t\tname : \"Master's Call\",\r\n\t\tsource : [[\"WGtE\", 119]],\r\n\t\ttype : \"eldritch machine\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"While this looks like a scrap heap assembled from shattered constructs and wreckage from the Mournland, this eldritch machine possesses tremendous power. You gain the following benefits while you are attuned to the master's call and within one mile of the device.\\n \\u2022 You can sense the presence and location of all warforged within ten miles.\\n \\u2022 You have advantage on any Charisma-based check made against a warforged.\\n \\u2022 While you are in contact with the master's call, you can use an action to target a warforged within ten miles of the device. You can send a telepathic message of up to 25 words to the target. They must make a Wisdom saving throw, with a difficulty of 14 + your Intelligence modifier. On a failed save, the target is affected by a Suggestion compelling them to follow your command. This effect doesn't require concentration; it lasts for eight hours, until you choose to end it, or until the victim successfully fulfils the command, whichever comes first. You can control up to eight warforged at once using this effect.\"\r\n\t}\r\n\tMagicItemsList[\"storm sphere\"] = {\r\n\t\tname : \"Storm Sphere\",\r\n\t\tsource : [[\"WGtE\", 119]],\r\n\t\ttype : \"eldritch machine\",\r\n\t\trarity : \"very rare\",\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This eldritch machine is a form of dragonmark focus item; you must have the Greater Mark of Storms to attune to this device. Storm spires allow House Lyrandar to influence the weather, which can be a boon for the local population or a curse if the Lyrandar baron chooses to demand payment for desired conditions. You gain the following benefits while you are attuned to a storm spire.\\n \\u2022 You can sense weather patterns within a 100-mile radius of the spire and accurately predict the weather for up to 24 hours.\\n \\u2022 While you are within 60 feet of the spire, you can use an action to cast any of the following spells: Call Lightning, Gust of Wind. You cast these as 5th level spells, and Intelligence is your spellcasting ability.\\n \\u2022 While you are within 5 feet of the spire, you can cast Control Weather as a ten-minute ritual. This allows you to pick a point within 100 miles of the spire and influence the weather within a 10-mile radius of that point. Maintaining this effect requires concentration.\\n \\u2022 You can also use an action to influence the weather within a ten-mile radius of the spire itself; you don't have to use concentration to maintain this effect, and you can sustain this at the same time that you're manipulating distant weather.\",\r\n\t\tattunement : true\r\n\t}\r\n\tMagicItemsList[\"spell sink\"] = {\r\n\t\tname : \"Spell Sink\",\r\n\t\tsource : [[\"WGtE\", 119]],\r\n\t\ttype : \"eldritch machine\",\r\n\t\trarity : \"legendary\",\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This device creates an Antimagic Field that covers a three-mile radius around the spell sink. The form that it takes will depend on the nature of its creator. The Ashbound druids despise unnatural magic, and if they create a spell sink it will be a living artifact\\u2014a twisted tree that consumes the mystical energies around it. Conversely, a mad artificer would create a massive vessel of dragonshards and exotic metals. It might be that the sole purpose of the device is to negate magic, or it could be that it is absorbing all magical energies in the area and storing that power for a cataclysmic effect!\"\r\n\t}\r\n}\r\n{ // pub_20180918_WDH.js\r\n\tMagicItemsList[\"stone of golorr\"] = {\r\n\t\tname : \"Stone of Golorr\",\r\n\t\tsource : [[\"WDH\", 192]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tstoryItemAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"The Stone of Golorr is a glossy, greenish-gray stone that fits in the palm of your hand. The stone is actually an aboleth named Golorr, transformed by magic into an object.\\n   \" + toUni(\"Random Properties\") + \". The Stone of Golorr has the following properties, determined by rolling on the tables in the \\\"Artifacts\\\" section in chapter 7 of the Dungeon Master's Guide:\\n \\u2022 1 minor beneficial property\\n \\u2022 1 minor detrimental property\\n\\n\" + toUni(\"Legend Lore\") + \". The Stone of Golorr has 3 charges and regains 1d3 expended charges daily at dawn. While holding the stone, you can expend 1 of its charges to cast the Legend Lore spell.\\n   By using the stone to cast legend lore, you communicate directly with the aboleth, and it shares its knowledge with you. The aboleth can't lie to you, but the information it provides is often cryptic or vague.\\n   The aboleth knows where Lord Neverember's secret vault is located. It also knows that three keys are needed to open the vault and that a gold dragon named Aurinax inhabits the vault and guards its treasures.\\n   \" + toUni(\"Failed Memory\") + \". When your attunement to the Stone of Golorr ends, you must make a DC 16 Wisdom saving throw. On a failed save, you lose all memory of the stone being in your possession and all knowledge imparted by it. A Remove Curse spell cast on you has a 20% chance of restoring the lost knowledge and memories, and a Greater Restoration spell does so automatically.\\n   \" + toUni(\"Sentience\") + \". The Stone of Golorr is a sentient lawful evil magic item with an Intelligence of 18, a Wisdom of 15, and a Charisma of 18. It has hearing and darkvision out to a range of 120 feet. It can communicate telepathically with the creature that is attuned to it, as long as that creature understands at least one language. In addition, the aboleth learns the greatest desires of any creature that communicates telepathically with the stone.\\n   The Stone of Golorr hungers for information and prefers not to remain in the clutches of any creature for too long. Whenever the stone desires a new owner, it demands to be given to another intelligent creature as quickly as possible. If its demands are ignored, it tries to take control of its owner (see \\\"Sentient Magic Items\\\" in chapter 7 of the Dungeon Master's Guide).\\n   \" + toUni(\"Personality\") + \". The Stone of Golorr has an alien intellect that is both domineering and hungry for knowledge. It thinks of itself as an ageless and immortal god.\\n   \" + toUni(\"Destroying the Stone\") + \". While in stone form, the aboleth isn't a creature and isn't subject to effects that target creatures. The Stone of Golorr is immune to all damage. Casting an Antipathy/Sympathy spell on the stone destroys it if the antipathy effect is selected and the spell is directed to repel aberrations. When the spell is cast in this way, the stone transforms into mucus and is destroyed, and Golorr the aboleth appears in an unoccupied space within 30 feet of the stone's remains. The aboleth is incensed by the stone's destruction, and it attacks all other creatures it can see.\",\r\n\t\tattunement : true\r\n\t}\r\n}\r\n{ // pub_20181107_LLoK.js\r\n\tMagicItemsList[\"deck of several things\"] = { // plot device\r\n\t\tname : \"Deck of Several Things\",\r\n\t\tsource : [[\"LLoK\", 53]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"legendary\",\r\n\t\tstoryItemAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Stored in a leather pouch, this unique deck contains twenty-two colored cards made of some strong but unknown metal, each of which features a design printed as a mosaic of raised dots. Before you draw a card, you must declare how many cards you intend to draw and then draw them randomly (you can use an altered deck of playing cards to simulate the deck). Any cards drawn in excess of this number have no effect. Otherwise, as soon as you draw a card from the deck, its magic takes effect. You must draw each card no more than 1 hour after the previous draw. If you fail to draw the chosen number, the remaining number of cards fly from the deck on their own and take effect all at once.\\n   Once a card is drawn, it fades from existence. Unless the card is the Fool or the Jester, the card reappears in the deck, making it possible to draw the same card twice.\\n\\n\" + toUni(\"1d22\\tPlaying Card\\tCard\") + \"\\n1\\tAce of diamonds\\tVizier\\n2\\tKing of diamonds\\tSun\\n3\\tQueen of diamonds\\tMoon\\n4\\tJack of diamonds\\tStar\\n5\\tTwo of diamonds\\tComet\\n6\\tAce of hearts\\tThe Fates\\n7\\tKing of hearts\\tThrone\\n8\\tQueen of hearts\\tKey\\n9\\tJack of hearts\\tKnight\\n10\\tTwo of hearts\\tGem\\n11\\tAce of clubs\\tTalons\\n12\\tKing of clubs\\tThe Void\\n13\\tQueen of clubs\\tFlames\\n14\\tJack of clubs\\tSkull\\n15\\tTwo of clubs\\tIdiot\\n16\\tAce of spades\\tDonjon\\n17\\tKing of spades\\tRuin\\n18\\tQueen of spades\\tEuryale\\n19\\tJack of spades\\tRogue\\n20\\tTwo of spades\\tBalance\\n21\\tJoker (with TM)\\tFool\\n22\\tJoker (no TM)\\tJester\\n\\n\\n   \" + toUni(\"Balance\") + \". Your mind suffers a wrenching alteration, causing your alignment to change for the duration of the adventure. Lawful becomes chaotic, good becomes evil, and vice versa. If you are true neutral or unaligned, this card has no effect on you.\\n   \" + toUni(\"Comet\") + \". If you single-handedly defeat the next hostile monster or group of monsters you encounter, you have advantage on ability checks made using one skill of your choice for the duration of the adventure. Otherwise, this card has no effect.\\n   \" + toUni(\"Donjon\") + \". You are instantly teleported to and confined within the prison of the Monastery of the Distressed Body (area M6). Everything you were wearing and carrying stays behind in the space you occupied when you disappeared. You draw no more cards.\\n   \" + toUni(\"Euryale\") + \". The card's medusa-like visage curses you. You take a -1 penalty on saving throws for the duration of the adventure.\\n   \" + toUni(\"The Fates\") + \". Reality's fabric unravels and spins anew, allowing you to avoid or erase one event as if it never happened. You can use the card's magic as soon as you draw the card or at any other point during the adventure.\\n   \" + toUni(\"Flames\") + \". The Grand Master of the Monastery of the Distressed Body becomes your enemy. The bone devil seeks your ruin, savoring your suffering before attempting to slay you. If the Grand Master has already been defeated, you gain the enmity of Garret Levistusson's patron\\u2014a similarly powerful devil.\\n   \" + toUni(\"Fool\") + \". For the duration of the adventure, you lose proficiency with one skill or gain disadvantage on all checks made with one skill (with the skill and the penalty determined by the DM). Discard this card and draw from the deck again, counting both draws as one of your declared draws.\\n   \" + toUni(\"Gem\") + \". The 1,000 gp hoard of the leprechaun from the Wilderness Encounters table (see appendix A) appears at your feet. If that treasure has already been claimed, you gain an equivalent hoard.\\n   \" + toUni(\"Idiot\") + \". Reduce your Intelligence by 1d4 + 1 (to a minimum score of 1) for the duration of the adventure. You can draw one additional card beyond your declared draws.\\n   \" + toUni(\"Jester\") + \". You gain proficiency in a skill of your choice for the duration of the adventure, or you can draw two additional cards beyond your declared draws.\\n   \" + toUni(\"Key\") + \". A common or uncommon magic weapon with which you are proficient, or a spell scroll featuring a spell of a level you can cast, appears in your hands. The DM chooses the weapon or spell, which you possess for the duration of this adventure.\\n   \" + toUni(\"Knight\") + \". You gain the service of any of the NPCs in the \\\"Hirelings\\\" section not currently with the party, who appears in a space you choose within 30 feet of you. The NPC serves you loyally for the duration of the adventure, believing that the fates have drawn them to you. You control this character.\\n   \" + toUni(\"Moon\") + \". You are granted the ability to cast any spell of 5th level or lower, and can use that ability 1d3 times for the duration of the adventure.\\n   \" + toUni(\"Rogue\") + \". An NPC of the DM's choice becomes secretly hostile toward you. The identity of your new enemy isn't known until the NPC or someone else reveals it. Any enchantment spell cast on the NPC at 6th level or higher can end the NPC's hostility toward you.\\n   \" + toUni(\"Ruin\") + \". All forms of wealth that you carry or own, other than magic items, are lost to you. This wealth can be recovered either in the treasury of the Monastery of the Distressed Body (area M10) or Kwalish's lab in Daoine Gloine (area O7), whichever comes later in the adventure.\\n   \" + toUni(\"Skull\") + \". You summon an avatar of death\\u2014a mechanical skeleton (use bone naga statistics) clad in a tattered black robe. It appears in a space of the DM's choice within 10 feet of you and attacks you, warning all others that you must win the battle alone. The avatar fights until you die or it drops to 0 hit points, whereupon it disappears. If anyone tries to help you, the helper summons its own avatar of death. A creature slain by an avatar of death can't be restored to life.\\n   \" + toUni(\"Star\") + \". Increase one of your ability scores by 1 for the duration of the adventure. The score can exceed 20 but can't exceed 24.\\n   \" + toUni(\"Sun\") + \". You gain proficiency in the skill of your choice for the duration of the adventure. In addition, a common or uncommon wondrous item appears in your hands. The DM chooses the item, which you possess for the duration of this adventure.\\n   \" + toUni(\"Talons\") + \". Every magic item you wear or carry is lost to you. These items can be recovered either in the treasury of the Monastery of the Distressed Body (area M10) or Kwalish's lab in Daoine Gloine (area O7), whichever comes later in the adventure.\\n   \" + toUni(\"Throne\") + \". You gain proficiency in the Persuasion skill and you double your proficiency bonus on checks made with that skill for the duration of the adventure. In addition, the Monastery of the Distressed Body's brains in jars regard you thereafter as the monastery's rightful master. You must defeat or otherwise clear out the Grand Master and its servants before you can claim the monastery as yours.\\n   \" + toUni(\"Vizier\") + \". At any one time you choose within the duration of the adventure, you can ask a question in meditation and mentally receive a truthful answer to that question. Besides information, the answer helps you solve a puzzling problem or other dilemma. In other words, the knowledge comes with wisdom on how to apply it.\\n   \" + toUni(\"The Void\") + \". This black card spells disaster. Your soul is drawn from your body and held within machinery in either the control room of the Monastery of the Distressed Body (area M8) or Kwalish's lab in Daoine Gloine (area O7), whichever comes later in the adventure. While your soul is trapped in this way, your body is incapacitated. Divination, Contact Other Plane, or a similar spell of 4th level or higher reveals the location of the machinery that holds your soul. You draw no more cards.\"\r\n\t}\r\n}\r\n{ // pub_20190917_DiA.js\r\n\tMagicItemsList[\"sword of zariel\"] = {\r\n\t\tname : \"Sword of Zariel\",\r\n\t\tsource : [[\"DiA\", 225]],\r\n\t\ttype : \"weapon (longsword)\",\r\n\t\trarity : \"artifact\",\r\n\t\tstoryItemAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This longsword belonged to the angel Zariel before her fall from grace. Fashioned from celestial steel, it gives off a faint glow and hum. The weapon chooses who can attune to it and who can't. It desires a wielder who embodies bravery and heroism.\\n   \"+\r\n\t\ttoUni(\"Attunement\") + \".The sword allows you to attune to it immediately, without having to take a short rest. The first time you attune to the sword, you are transformed into a heavenly, idealized version of yourself, blessed with otherworldly beauty and a touch of heaven in your heart. Neither magic nor divine intervention can reverse this transformation. Your alignment becomes lawful good, and you gain the following traits:\\n \\u2022  \" + toUni(\"Angelic Language\") + \". You can speak, read, and write Celestial.\\n \\u2022  \" + toUni(\"Celestial Resistance\") + \". You have resistance to necrotic and radiant damage.\\n \\u2022  \" + toUni(\"Divine Presence\") + \". Your Charisma score becomes 20, unless it is already 20 or higher.\\n \\u2022  \" + toUni(\"Feathered Wings\") + \". You sprout a beautiful pair of feathered wings that grant you a flying speed of 90 feet and the ability to hover. If you already have a different kind of wings, these new wings replace the old ones, which fall off.\\n \\u2022  \" + toUni(\"Truesight\") + \". Your eyes become luminous pools of silver. You can see in normal and magical darkness, see invisible creatures and objects, automatically detect visual illusions and succeed on saving throws against them, perceive the original form of a shapechanger or a creature that is transformed by magic, and see into the Ethereal Plane, all within a range of 60 feet.\\n \\u2022  \" + toUni(\"New Personality\") + \". You gain new personality traits, determined by rolling once on each of the following tables. These traits override any conflicting personality trait, ideal, bond, or flaw.\\n\\n\"+\r\n\t\ttoUni(\"d8\\tPersonality Trait\")+\r\n\t\t\"\\n 1\\tI treat all beings, even enemies, with respect.\"+\r\n\t\t\"\\n 2\\tI won't tell a lie.\"+\r\n\t\t\"\\n 3\\tI enjoy sharing my philosophical worldview and experiences with others.\"+\r\n\t\t\"\\n 4\\tI cut right to the chase in every conversation.\"+\r\n\t\t\"\\n 5\\tI often quote (or misquote) religious texts.\"+\r\n\t\t\"\\n 6\\tI anger quickly when I witness cruelty or injustice.\"+\r\n\t\t\"\\n 7\\tMy praise and trust are earned and never given freely.\"+\r\n\t\t\"\\n 8\\tI like everything clean and organized.\\n\\n\"+\r\n\t\ttoUni(\"d6\\tIdeal\")+\r\n\t\t\"\\n 1\\tCharity. I always help those in need. (Good)\"+\r\n\t\t\"\\n 2\\tFaith. I choose to follow the tenets of a particular lawful good deity to the letter. (Lawful)\"+\r\n\t\t\"\\n 3\\tResponsibility. It is the duty of the strong to protect the weak. (Lawful)\"+\r\n\t\t\"\\n 4\\tRespect. All people deserve to be treated with dignity. (Good)\"+\r\n\t\t\"\\n 5\\tHonor. The way I conduct myself determines my reward in the afterlife. (Lawful)\"+\r\n\t\t\"\\n 6\\tRedemption. All creatures are capable of change for the better. (Good)\\n\\n\"+\r\n\t\ttoUni(\"d6\\tBond\")+\r\n\t\t\"\\n 1\\tI have a favorite religious hymn that I constantly hum.\"+\r\n\t\t\"\\n 2\\tI must keep a written record of my beliefs and the sins that I witness. When finished, this book will be my gift to the multiverse.\"+\r\n\t\t\"\\n 3\\tI have cherished memories of Idyllglen, though I've only seen this bucolic town in dreams.\"+\r\n\t\t\"\\n 4\\tI would die for those who fight beside me, regardless of their faults.\"+\r\n\t\t\"\\n 5\\tI seek to honor the angel Zariel by destroying fiends and other evildoers wherever I find them.\"+\r\n\t\t\"\\n 6\\tThe Sword of Zariel has chosen me. I shall not fail to wield it justly.\\n\\n\"+\r\n\t\ttoUni(\"d6\\tFlaw\")+\r\n\t\t\"\\n 1\\tI am too quick to judge others.\"+\r\n\t\t\"\\n 2\\tI offer forgiveness too readily.\"+\r\n\t\t\"\\n 3\\tI will sacrifice innocent lives for the greater good.\"+\r\n\t\t\"\\n 4\\tFlaw? What flaw? I am flawless. Utter perfection!\"+\r\n\t\t\"\\n 5\\tI allow nothing to stand in the way of my crusade to eradicate evil from the multiverse.\"+\r\n\t\t\"\\n 6\\tI ignore those who do not support my plans, for my calling is higher than all others.\\n\\n\"+\r\n\t\ttoUni(\"Holy Light\") + \".The sword sheds bright light in a 5-foot radius and dim light for an additional 5 feet. Fiends find the sword's light disconcerting and painful, even if they can't see it, and have disadvantage on attack rolls made within the weapon's radius of bright light.\\n   As a bonus action, you can intensify the sword's light, causing it to shed bright light in a 15-foot radius and dim light for an additional 15 feet, or reduce its glow to its normal intensity.\\n   \"+\r\n\t\ttoUni(\"Random Properties\") + \".The sword has 2 minor minor beneficial properties.\\n   \"+\r\n\t\ttoUni(\"Searing Radiance\") + \".The sword deals an extra 9 (2d8) radiant damage to any creature it hits, or 16 (3d10) radiant damage if you're wielding the weapon with two hands. An evil creature that takes this radiant damage must succeed on a DC 17 Constitution saving throw or be blinded until the end of its next turn.\\n   \"+\r\n\t\ttoUni(\"Sentience\") + \".The Sword of Zariel is a sentient, lawful good item with an Intelligence of 10, a Wisdom of 20, and a Charisma of 18. It has hearing and normal vision out to a range of 30 feet.\\n   The sword communicates by transmitting emotion to the creature carrying or wielding it.\\n   \"+\r\n\t\ttoUni(\"Truth Seer\") + \".While holding the sword, you gain advantage on all Wisdom (Insight) checks.\\n   \"+\r\n\t\ttoUni(\"Destroying the Sword\") + \".\\n   Zariel can destroy the sword simply by grasping it. She couldn't bring herself to do so when she was an angel, but as an archdevil she has no compunction about ridding the multiverse of the weapon. The sword is also destroyed if it's used to shatter the Companion (see \\\"Shattering the Companion\\\"), unless the blade is wielded by an angel of challenge rating 15 or higher, or a good-aligned cleric or paladin of at least 10th level.\\n   If Zariel is killed for good (that is, if she dies in the Nine Hells), the sword becomes no harder to destroy than a normal longsword.\",\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a creature the sword deems worthy\"\r\n\t}\r\n}\r\n{ // pub_20200915_IDRotF.js\r\n\tMagicItemsList[\"chwinga charms\"] = { // contains contributions by Nod_Hero on Discord\r\n\t\tname : \"Chwinga Charms\",\r\n\t\tsource : [[\"F\"]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"rare\",\r\n\t\tdescriptionFull : \"This tiny object looks like a snowflake. Different types of chwinga charms exist, each with a different effect.\",\r\n\t\tallowDuplicates : true,\r\n\t\tchoices : [\"Animal Conjuring\", \"Biting Cold\", \"Bounty\", \"Cold Resistance\", \"Heroism\", \"Snowball Strike\", \"The Ice Troll\", \"The Snow Walker\", \"The Traveler's Haven\", \"Vitality\"],\r\n\t\t\"animal conjuring\" : {\r\n\t\t\tdescription : \"This tiny object looks like a snowflake. As an action, I can cast the Conjure Animals spell (3rd-level version). The charm disappears after 3 uses.\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"never\",\r\n\t\t\tspellFirstColTitle : \"Ch\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1 charge\",\r\n\t\t\t\tspells : [\"conjure animals\"],\r\n\t\t\t\tselection : [\"conjure animals\"],\r\n\t\t\t\tfirstCol : 1\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"biting cold\" : {\r\n\t\t\tdescription : \"This tiny object looks like a snowflake. As a bonus action, I can can expend 1 of the charm's charges to wreathe my weapon attacks with biting cold for 1 minute. Until this effect ends, I deal an extra 1d6 cold damage when I hit with a melee or ranged weapon attack. The charm disappears after 3 uses.\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"never\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"bounty\" : {\r\n\t\t\tdescription : \"This tiny object looks like a snowflake. As an action, I can can expend 1 of the charm's charges to cast the Create Food And Water spell, requiring no components. The charm disappears after 3 uses.\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"never\",\r\n\t\t\tspellFirstColTitle : \"Ch\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1 charge\",\r\n\t\t\t\tspells : [\"create food and water\"],\r\n\t\t\t\tselection : [\"create food and water\"],\r\n\t\t\t\tfirstCol : 1\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"cold resistance\" : {\r\n\t\t\tdescription : \"This tiny object looks like a snowflake. As an action, I can expend the charm to give myself resistance to cold damage for 24 hours.\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"never\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"heroism\" : {\r\n\t\t\tdescription : \"This tiny object looks like a snowflake. As an action, I can can expend the charm to give myself the benefit of a Potion of Heroism. I gain 10 temporary hit points that last for 1 hour and am under the effect of the Bless spell (no concentration required).\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"never\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"snowball strike\" : {\r\n\t\t\tdescription : \"As a bonus action, I can can expend 1 of the charm's charges to create a magical snowball in my hand and throw it. The snowball is a magic ranged weapon , has a 20/60 range, deals 1d4 cold damage, and scores a critical hit on a roll of 19 or 20. On a critical hit, the target is blinded until the end of its next turn\",\r\n\t\t\tusages : 5,\r\n\t\t\trecovery : \"never\",\r\n\t\t\taction : [[\"bonus action\", \"\"]]\r\n\t\t},\r\n\t\t\"the ice troll\" : {\r\n\t\t\tdescription : \"This tiny object looks like a snowflake. As a reaction when I take cold damage, I can expend the charm to reduce the damage to 0. I regain a number of hit points equal to half the cold damage I would have taken.\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"never\",\r\n\t\t\taction : [[\"reaction\", \"\"]]\r\n\t\t},\r\n\t\t\"the snow walker\" : {\r\n\t\t\tdescription : \"As an action, I can expend 1 of the charm's charges to gain these 24 hour benefits: I can see 60 ft through areas heavily obscured by snow, I am immune to the effects of extreme cold (described in DMG), and I and my allies within 15 feet of me ignore snow/ice difficult terrain. The charm disappears after 3 uses.\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"never\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t},\r\n\t\t\"the traveler's haven\" : {\r\n\t\t\tdescription : \"This tiny object looks like a snowflake. As an action, I can expend 1 of the charm's charges to cast the Leomund's Tiny Hut spell, no components required. The charm disappears after 3 uses.\",\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"never\",\r\n\t\t\tspellFirstColTitle : \"Ch\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"1 charge\",\r\n\t\t\t\tspells : [\"leomund's tiny hut\"],\r\n\t\t\t\tselection : [\"leomund's tiny hut\"],\r\n\t\t\t\tfirstCol : 1\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"vitality\" : {\r\n\t\t\tdescription : \"As an action, I can can expend the charm to give myself the benefit of a Potion of Vitality. I remove any exhaustion I am suffering and am cured of any disease or poison affecting me. For the next 24 hours, I regain the maximum number of hit points for any Hit Die I spend.\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"never\",\r\n\t\t\taction : [[\"action\", \"\"]]\r\n\t\t}\r\n\t};\r\n}\r\n{ // pub_20201117_TCoE.js\r\n\tMagicItemsList[\"baba yaga's mortar and pestle\"] = { // contains contributions by lizrdgizrd\r\n\t\tname : \"Baba Yaga's Mortar and Pestle\",\r\n\t\tsource : [[\"T\", 121]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tdescription : \"I can expand the mortar to fit up to a Large creature. I can make the pestle a quarterstaff and back at will. When hitting with a melee attack I can add 1d8 force for each charge expended up to 3. Holding both, I can fill the mortar with any nonmagical plant, fluid or mineral worth 10 gp by speaking its name.\",\r\n\t\tdescriptionFull : \"The creations of the immortal Bab Yaga defy the laws of mortal magic. Among the notorious implements that cement her legend on countless worlds are the artifacts that propel her through the planes: Baba Yaga's Mortar and Pestle. These signature tools of Baba Yaga are a single artifact for purposes of attunement. Should the two objects become separated, the pestle appears next to the mortar at the next dawn.\\n  Random Properties. This artifact has the following random properties, which you can determine by rolling on the teables in the \\\"Artifacts\\\" section of the Dungeon Master's Guide:\\n  2 minor beneficial properties\\n  1 major beneficial property\\n  1 minor detrimental property\\n  Properties of the Mortar. The mortar is a Tiny wooden bowl. However, the mortar increases in size to accommodate anything you place inside, expanding--if there's enough space--up to Large size, meaning it can hold even a Large creature.\\n  Properties of the Pestle. The pestle is a 6-inch-long, worn wooden tool. Once during your turn while you are holding the pestle, you can extend it into a quarterstaff or shrink it back into a pestle (no action required). As a quarterstaff, the pestle is a magic weapon that grants a +3 bonus to attack and damage rolls made with it.\\n  The pestle has 12 charges. When you hit with a melee attack using the pestle, you can expend up to 3 of its charges to deal an extra 1d8 force damage for each charge expended. The pestle regains all expended charges daily at dawn.\\n  Perfect Tools. While holding the mortar and pestle, you can use your action to say the name of any nonmagical plant, mineral, or fluid worth 10 gp or less. The mortar instantly fills with the desired amount of that material. Once you use this action you can't do so again until you finish a short or long rest.\\n  You can also use the artifact as alchemist's supplies, brewer's supplies, cook's utensils, an herbalism kit, and a poisoner's kit. You have advantage on any check you make using the artifact as one of these tools.\\n  Primal Parts. As an action while the pestle and the mortar is within 5 geet of you, you can command the pestle to grind. For the next minute, or until you use your action to verbally command it to stop, the pestle moves on its own, grinding the contents of the mortar into a mush or fine powder that's equally useful for cooking or alchemy. At the start of each of your turns, whatever is in the mortar takes 4d10 force damage. If this reduces the target's hit points to 0, the target is reduce to powder, pulp, or paste, as appropriate. Only magic items are unaffected. If you wish, when the pestle stops, you can have the mortar separate its contents--like powdered bone, crushed herbs, pulped organs--into separate piles.\\n  Traverse the Night. If you are holding the pestle while you are inside the mortar, you can use your action to verbally command the mortar to travel to a specific place or creature. You don't need to know where your destination is, but it must be a specific destination--not just the nearest river or a red dragon's lair. If the stated destination is within 1,000 miles of you, the mortar lifts into the air and vanishes. You and any creatures in the mortar travel through a dreamlike sky, with hazy reflections of the world passing by below. Creatures might see images of you streaking through the sky between your point of origin and the destination. You arrive at the location 1 hour later or, if it is night, 1 minute later.\\n  Bones Know Their Home. When you command the mortar to travel, you can instead throw out the dust or paste of something ground by the mortar and name a location on a different plane of existence or a different world on the Material Plane. If that material came from a creature native to the named plane or world, the mortar travels through an empty night sky to an unoccupied space at that destination, arriving in 1 minute.\\n  Destroying the Mortar and Pestle. The mortar and pestle are destroyed if they are crushed underfoot by the Dancing Hut of Baba Yaga or by Baba Yaga herself.\",\r\n\t\tattunement : true,\r\n\t\tusages : 12,\r\n\t\trecovery : \"dawn\",\r\n\t\taction : [\r\n\t\t\t[\"action\", \"Traverse the Night\"],\r\n\t\t\t[\"action\", \"Primal Parts\"],\r\n\t\t\t[\"action\", \"Perfect Tools\"]\r\n\t\t],\r\n\t\tweaponOptions : [{\r\n\t\t\tname : \"Baba Yaga's Pestle\",\r\n\t\t\tsource : [[\"T\", 121]],\r\n\t\t\tregExpSearch : /^(?=.*pestle)(?=.*yaga's)(?=.*baba).*$/i,\r\n\t\t\tdescription : \"Versatile (1d8); 1-3 charges per attack add 1d8 force damage per charge\",\r\n\t\t\tmodifiers : [3,3],\r\n\t\t\ttype : \"simple\",\r\n\t\t\tability : 1,\r\n\t\t\tabilitytodamage : true,\r\n\t\t\tdamage : [1, 6, \"bludgeoning\"],\r\n\t\t\trange : \"Melee\",\r\n\t\t\ttooltip : \"I have to expand Baba Yaga's Pestle into a quarterstaff before I may use it as a weapon.\",\r\n\t\t\tdefaultExcluded : true\r\n\t\t}]\r\n\t}\r\n\tMagicItemsList[\"crook of rao\"] = { // contains contributions by lizrdgizrd\r\n\t\tname : \"Crook of Rao\",\r\n\t\tsource : [[\"T\", 123]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tdescription : \"While holding the crook, I can expend 1 or more charges to cast one of its spells. I can spend 10 minutes to banish all fiends below CR 19 within 1 mile to their home plane for 100 years.\",\r\n\t\tdescriptionFull : \"Ages ago, the serene god Rao created a tool to shield his fledgling faithful against the evils of the Lower Planes. Yet, as eons passed, mortals developed their own methods of dealing with existential threats, and the crook was largely forgotten. In recent ages, though, the Crook of Rao was rediscovered and leveraged against the rising power of the Witch Queen Iggwilv (one of the names of the wizard Tasha). Although she was defeated, Iggwilv managed to damage the crook during the battle, infecting it with an insidious curse--and the potential for future victory. In the aftermath, the crook was again lost. Occasionally it reappears, but the famed artifact is not what it was. Whether or not the artifact's bearers realize its full threat, few risk using the Crook of Rao--potentially for the final time.\\n  Random Properties. The artifact has the following random properties, which you can determine by reolling on the tables in the \\\"Arifacts\\\" section of the Dungeon Master's Guide:\\n  2 minor beneficial properties\\n  1 major beneficial property\\n  1 minor detrimental property\\n  Spells. The crook has 6 charges. While holding it, you can use an action to expend 1 or more of its charges to cast one of the following spells (save DC 18) from it: aura of life (2 charges), aura of purity (2 charges), banishment (1 charge), beacon of hope (1 charge), mass cure wounds (3 charges). The crook regains 1d6 expended charges daily at dawn.\\n  Absolute Banishment. While you are attuned to the crook and holding it, you can spend 10 minutes to banish all but the mightiest fiends within 1 mile of you. Any fiend with a challenge rating of 19 or higher is unaffected. Each banished fiend is sent back to its home plane and can't return to the plane the Crook of Rao banished it from for 100 years.\\n\\nSee the Notes section for further information.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Crook of Rao\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\nFailing Matrix\",\r\n\t\t\t\t\"Whenvever the Crook of Rao's Absolute Banishment property is used, or when its last charge is expended, roll on the Extraplanar Reversal table. Any creature conjured as a result of this effect appear in random unoccupied spaces within 60 feet of you and are not under your control.\",\r\n\t\t\t\t\"\\nExtraplanar Reversal\",\r\n\t\t\t\t\" d100   Effect\",\r\n\t\t\t\t\"01-25   A portal to a random plane opens. The portal closes after 5 mintues.\",\r\n\t\t\t\t\"26-45   2d4 imps and 2d4 quasits appear.\",\r\n\t\t\t\t\"46-60   1d8 succubi/incubi appear.\",\r\n\t\t\t\t\"61-70   1d10 barbed devils and 1d10 vrocks appear.\",\r\n\t\t\t\t\"71-80   1 arcanoloth, 1 night hag, and 1 rakshasa appear.\",\r\n\t\t\t\t\"81-85   1 ice devil and 1 marilith appear.\",\r\n\t\t\t\t\"86-90   1 balor and 1 pit fiend appear. At the DM's discretion, a portal opens\\n       into the presence of a archdevil or demon lord instead, then closes\\n       after 5 minutes.\",\r\n\t\t\t\t\"91-00   Iggwilv's Curse (see the Iggwilv's Curse property).\",\r\n\t\t\t\t\"\\nIggwilv's Curse\",\r\n\t\t\t\t\"When the Crook was last used against Iggwilv, the Witch Queen lashed out at the artifact, infecting its magical matrix. Over the years, this curse has spread within the crook, threatening to violently pervert its ancient magic. If this occurs, the Crook of Rao, as it is currently known, is destroyed, its magical matrix inverting and exploding into a 50-foot diameter portal. This portal functions as a permanent gate spell cast by Iggwilv. The gate then, once per round on an initiateve count 20, audibly speaks a fiend's name in Iggwilv's voice, doing so until the gate calls on every fiend ever banished by the Crook of Rao. If the fiend still exists, it is drawn through the gate. This process takes eighteen years to complete, at the end of which the gate becomes a permanent portal to Pazunia, the first layer of the Abyss.\",\r\n\t\t\t\t\"\\nDestroying or Repairing the Crook\",\r\n\t\t\t\t\"The Crook of Rao can either be destroyed or repaired by journeying to Mount Celestiaand obtaining a tear from the eternally serene god Rao. One way to make the emontionless god cry would be to reunite Rao with the spirit of his first worshipper who sought revelations byond the multiverse long ago. The Crook dissolves if immersed in teh god's tear for a year and a day. If washed in the tear daily for 30 days the Crook loses its Failing Matrix Property.\",\r\n\t\t\t]\r\n\t\t}],\r\n\t\tattunement : true,\r\n\t\tusages : 6,\r\n\t\trecovery : \"dawn\",\r\n\t\taction : [[\"action\", \"Absolute Banishment\"]],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Aura of Life\",\r\n\t\t\tspells : [\"aura of life\"],\r\n\t\t\tselection : [\"aura of life\"],\r\n\t\t\tfirstCol : \"2c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Aura of Purity\",\r\n\t\t\tspells : [\"aura of purity\"],\r\n\t\t\tselection : [\"aura of purity\"],\r\n\t\t\tfirstCol : \"2c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Banishment\",\r\n\t\t\tspells : [\"banishment\"],\r\n\t\t\tselection : [\"banishment\"],\r\n\t\t\tfirstCol : \"1c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Beacon of Hope\",\r\n\t\t\tspells : [\"beacon of hope\"],\r\n\t\t\tselection : [\"beacon of hope\"],\r\n\t\t\tfirstCol : \"1c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Mass Cure Wounds\",\r\n\t\t\tspells : [\"mass cure wounds\"],\r\n\t\t\tselection : [\"mass cure wounds\"],\r\n\t\t\tfirstCol : \"3c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 18,\r\n\t\t}]\r\n\t}\r\n\tMagicItemsList[\"demonomicon of iggwilv\"] = { // contains contributions by lizrdgizrd\r\n\t\tname : \"Demonomicon of Iggwilv\",\r\n\t\tsource : [[\"T\", 125]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tdescription : \"While holding the Demonomicon, when I make an Intelligence check regarding demons or a Wisdom check related to the Abyss I can add double my proficiency bonus to the check. When I make a spell damage roll against a fiend I apply the maximum damage.\",\r\n\t\tdescriptionFull : \"An expansive treatise documenting the Abyss's infinite layers and inhabitants, the Demonomicon of Iggwilv is the most thorough and blasphemous tome of demonology in the multiverse. The tome recounts both the oldest and most current profanities of the Abyss and demons. Demons have attempted to censor the text, and while sections have been ripped from the book's spine, the general chapters remain, ever revealing demonic secrets. And the book holds more than blasphemies. Caged behind lines of script roils a secret piece of the Abyss itself, which keeps the book up-to-date, no matter how many pages are removed, and it longs to be more than mere reference material.\\n  Random Properties. The artifact has the following random properties, which you can determine by rolling on the tables in the \\\"Artifacts\\\" section of the Dungeon Master's Guide:\\n  2 minor beneficial properties\\n  1 minor detrimental property\\n  1 major detrimental property\\n  Spells. The book has 8 charges. It regains 1d8 expended charges daily at dawn. While holding it, you can use an action to cast Tasha's hideous laughter from it or to expend 1 or more of its charges to cast one of the following spells (save DC 20) from it: magic circle (1 charge), magic jar (2 charges), planar ally (3 charges), planar binding (2 charges), plane shift (to layers of the Abyss only; 3 charges), summon fiend (3 charges).\\n  Abyssal Reference. You can reference the Demonomicon whenever you make an Intelligence check to discern information about demons or a Wisdom (Survival) check related to the Abyss. When you do so, you can add double your proficiency bonus to the check.\\n\\nSee the Notes section for further information.\",\r\n\t\tattunement : true,\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Demonomicon of Iggwilv\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\nFiendish Scourging\",\r\n\t\t\t\t\"Your magic causes pain to fiends. While carrying the book, when you make a damage roll for a spell you cast against a fiend, you use the maximum possible result instead of rolling.\",\r\n\t\t\t\t\"\\nEnsnarement\",\r\n\t\t\t\t\"While carrying the book, whenever you cast the magic circle spell naming only fiends, or the planar binding spell targeting a fiend, the spell is cast at 9th level, regardless of what level spell slot you used, if any. Additionally, the fiend has disadvantage on its saving throw against the spell.\",\r\n\t\t\t\t\"\\nContainment\",\r\n\t\t\t\t\"The first 10 pages of the Demonomicon are blank. As an action while holding the book, you can target a fiend that you can see that is trapped within a magic circle. The fiend must succeed on a DC 20 Charisma saving throw with disadvantage or become trapped within one of the Demonomicon's empty blank pages, which fills with writing detailing the trapped creature's widely known name and depravities. Once Used, this action can't be used again until the next dawn.\\n  When you finish a long rest, if you and the Demonomicon are on the same plan of existence, the trapped creature of the highest challenge rating within the book can attempt to possess you. You must make a DC 20 Charisma saving throw. On a failure, you are possessed by the creature, which controls you like a puppet. The possessing creature can release you as an action, appearing in the closest unoccupied space. On a successful save, the fiend can't try to possess you again for 7 days.\\n  When the tome is discovered it has 1d4 fiends occupying its pages, typically an assortment of demons.\",\r\n\t\t\t\t\"\\nDestroying the Demonomicon\",\r\n\t\t\t\t\"To destroy the book, six different demon lords must each tear out a sixth of the book's pages. If this occurs, the pages reappear after 24 hours. Before all those hours pass, anyone who opens the book's remaining binding is transported to a nascent layer of the Abyss that lies hidden within the book. At the heart of this dadly, semi-sentient domain lies a long-lost artifact, Fraz-Urb'luu's Staff. If the staff is dragged from the pocket plane, the tome is reduced to a mundane and quite out-of-date copy of the Tome of Zyx, the work that served as the foundation for the Demonomicon. Once the staff emerges, the demon lord Fraz-Urb'luu instantly knows.\",\r\n\t\t\t]\r\n\t\t}],\r\n\t\tusages : 8,\r\n\t\trecovery : \"dawn\",\r\n\t\taction : [[\"action\", \"Containment\"]],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Magic Circle\",\r\n\t\t\tspells : [\"magic circle\"],\r\n\t\t\tselection : [\"magic circle\"],\r\n\t\t\tfirstCol : \"1c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 20,\r\n\t\t},{\r\n\t\t\tname : \"Magic Jar\",\r\n\t\t\tspells : [\"magic jar\"],\r\n\t\t\tselection : [\"magic jar\"],\r\n\t\t\tfirstCol : \"3c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 20,\r\n\t\t},{\r\n\t\t\tname : \"Planar Ally\",\r\n\t\t\tspells : [\"planar ally\"],\r\n\t\t\tselection : [\"planar ally\"],\r\n\t\t\tfirstCol : \"3c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 20,\r\n\t\t},{\r\n\t\t\tname : \"Planar Binding\",\r\n\t\t\tspells : [\"planar binding\"],\r\n\t\t\tselection : [\"planar binding\"],\r\n\t\t\tfirstCol : \"2c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 20,\r\n\t\t},{\r\n\t\t\tname : \"Plane Shift (Abyss)\",\r\n\t\t\tspells : [\"plane shift\"],\r\n\t\t\tselection : [\"plane shift\"],\r\n\t\t\tfirstCol : \"3c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 20,\r\n\t\t},{\r\n\t\t\tname : \"Summon Fiend\",\r\n\t\t\tspells : [\"summon fiend\"],\r\n\t\t\tselection : [\"summon fiend\"],\r\n\t\t\tfirstCol : \"3c\",\r\n\t\t\tallowUpCasting : true,\r\n\t\t\tfixedDC : 20,\r\n\t\t}]\r\n\t}\r\n\tMagicItemsList[\"mighty servant of leuk-o\"] = { // contains contributions by lizrdgizrd\r\n\t\tname : \"Mighty Servant of Leuk-o\",\r\n\t\tsource : [[\"T\", 131]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tdescription : \"While attuned to this construct, I can enter it and control it along with one other creature. See the Notes section for full information and stat block.\",\r\n\t\tdescriptionFull : \"  Named for the warlord who infamously employed it, the Mighty Servant of Leuk-o is a fantastically powerful, 10-foot-tall machine that turns into an animate construct when piloted. Crafted of a gleaming black alloy of unknown origin, the servant is often described as a combination of a disproportioned dwarf and an oversized beetle. The servant contains enough space for 1 ton of cargo and a crew compartment within, from which up to two Medium creatures can control it--and potentially execute a spree of unstoppable destruction.\\n  Tales of the servant's origins involve more conjecture than fact, often referring to otherworldly beings, the mysterious Barrier Peaks in Oerth, and the supposedly related device known as the Machine of Lum the Mad. The best details on the device's origins and operation can be found in the Mind of Metal, a tome of artificer's secrets that connects the device to the traditions of the lost Olman people, and which was written by Lum the Mad's several tiems over granddaughter, Lum the Maestro, while she reconstructed the long disassembled Mighty Servant of Leuk-o.\\n  Dangerous Attunement. Two creatures can be attuned to the servant at a time. If a third creature tries to attune to it, nothing happens.\\n  The servant's controls are accessed by a hatch in its upper back, which is easily opened while there are no creatures attuned to the artifact.\\n  Attuning to the artifact requires two hours, which can be undertaken as part of a long rest, during which time you must be inside the servant, interating with its controls. While crew memebers are attuning themselves, any creature or structure outside and within 50 feet of the servant has a 25 percent chance of being accidentally targeted by one of its Destructive Fist attacks once during the attunement. This process must be undergone every time a creature attunes itself to the artifact.\\n\\n  See the Notes section for further information.\",\r\n\t\t\ttoNotesPage : [{\r\n\t\t\tname : \"Mighty Servant of Leuk-o\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\nControlling the Servant.\",\r\n\t\t\t\t\"  While any creatures are attuned to the artifact, attuned creatures can open the hatch as easily as any other door. Other creatures can open the hatch as an action with a successful DC 25 Dexterity check using thieve's tools. A knock spell cast on the hatch also opens it until the start of the caster's next turn.\\n  A creature can enter or exit through the hatch by spending 10 feet of momvement. Those inside the servant have total cover from effects originating outside it. The controls within it allow creatures to see outside without obstruction.\\n  While you are inside the servant, you can command it by using the controls. During your turn (for either attuned creature), you can command it in the following ways:\\n \\u2022 Open or close the hatch (no action required, once per turn)\\n \\u2022 Move the servant up to its speed (no action requred)\\n \\u2022 As an action, you can command the servant to take one of the actions in its stat block or some other action.\\n \\u2022 When a creature provokes an opportunity attack from the servant, you can use your reaction to command the servant to make one Destructive Fist attack against that creature.\\n  While there are no attuned creatures inside the servant, it is an inert object.\\n \",\r\n\t\t\t\t\"\\nGhost in the Machine.\",\r\n\t\t\t\t\"  Upon his death, the soul of the mighty warlord Leuk-o was drawn into the artifact and has become its animating force. The servant has been known to attack or move of its own accord, particularly if doing so will cause destruction. Once every 24 hours, the servant, at the DM's discretion, takes one action while uncrewed.\\n  If the servant loses half of its hit points or more, each creature attuned to it must succeed on a DC 20  Wisdom saving throw or be charmed for 24 hours. While charmed in this way, the creature goes on a destructive spree, seeking to destroy structures and attack any unattuned creatures within sight of the servant, starting with those threatening the artifact--preferably using the servant, if possible.\",\r\n\t\t\t\t\"\\nSelf-Destruct\",\r\n\t\t\t\t\"  By inputting a specific series of lever pulls and button presses, the servant's two crew members can cause it to explode. The self-destruct code is not revealed to crew members when they attune to the artifact. If the code is discovered (the DM determines how), it requires two attuned crew members to be inside the servant and spend their actions on 3 consecutive rounds performing the command. Should the crew members begin the process of entering the code, though, the servant uses its Ghost in the Machine property and turns the crew memebers against each other.\\n  If the crew members successfully implement the code, at the end of the third round, the servant explodes. Every creature in a 100-foot-radius sphere centered on the servant must make a DC 25 Dexterity saving throw. On a failed save, a creature takes 87 (25d6) force damage, 87 (25d6) lightning damage, and 87 (25d6) thunder damage. On a successful save, a creature takes half as much damage. Objects and structures in the area take triple damage. Creatures inside the servant are slain instantly and leave behind no remains.\\n  This does not destroy the servant permanently. Rather, 2d6 days later, its parts--left arm, left leg, right arm, right leg, lower torso, and upper torso--drop from the sky in random places within 1,000 miles of the explosion. If brought within 5 feet of one another, the pieces reconnect and reform the servant.\",\r\n\t\t\t\t\"\\nDestroying the Servant\",\r\n\t\t\t\t\"  The servant can be destroyed in two ways. After it has self-destructed, its disconnected pieces can be melted down in on of the forge-temples of its ancient Olman creators. Alternatively, if the servant strikes the Machine of Lum the Mad, both artifacts explode in an erubtion that is three times the size and three times the damage as the servant's self-destruct property.\"\r\n\t\t\t]},{\r\n\t\t\tname : \"Mighty Servant of Leuko-o Stat Block\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\nMighty Servant of Leuk-o\",\r\n\t\t\t\t\"Huge construct\",\r\n\t\t\t\t\"\\nArmor Class: 22 (natural armor)\\nHit Points: 310 (27d12 + 135)\\nSpeed: 60 ft.\",\r\n\t\t\t\t\" STR       DEX      CON      INT      WIS       CHA\\n30 (+10)  14 (+2)  20 (+5)  1 (-5)  14 (+2)  10 (+0)\",\r\n\t\t\t\t\"\\nSaving Throws: Wis +9, Cha +7\\nSkills: Perception +9\\nDamage Resistances: piercing, slashing\\nDamage Immunities: acid, bludgeoning, cold, fire, lightning, necrotic, poison, psychic, radiant\\nCondition Immunities: all conditions but invisible and prone\\nSenses: blindsight 120 ft., passive Perception: 19\\nLanguages: understands the languages of creatures attuned to it but can't speak\\nChallenge: --\\tProficiency Bonus: +7\",\r\n\t\t\t\t\"\\nImmutable Existence. The servant is immune to any spell or effect that would alter its form or send it to another plane of existence.\\nMagic Resistant Construction. The servant has advantage on saving throws against spells and other magical effects, and spell attacks made against it have disadvantage.\\nRegeneration. The servant regains 10 hit points at the start of its turn. If it is reduced to 0 hit points, this trait doesn't function until an attuned creature spends 24 hours repairing the artifact or until the artifact is subjected to lightning damage.\\nStanding Leap. The servant's long jump is up to 50 feet and its high jump is up to 25 feet, with or without a running start.\\nUnusual Nature. The servant doesn't require air, food, drink, or sleep.\",\r\n\t\t\t\t\"\\nActions\\nDestructive Fist. Melee or Ranged Weapon Attack: +17 to hit, reach 10 ft. or range 120 ft., one target. Hit: 36 (4d12 + 10) force damage. If the target is an object, it takes triple damage.\\nCrushing Leap. If the servant jumps at least 25 feet as a part of its movement, it can then use this action to land on its feet in a space that contains one or more other creatures. Each of those creatures is pushed to an unoccupied space within 5 feet of the servant and must make a DC 25 Dexterity saving throw. On a failed save, a creature takes 26 (4d12) bludgeoning damage and is knocked prone. On a successful save, a creature takes half as much damage and isn't knocked prone.\"\r\n\t\t\t]\r\n\t\t}],\r\n\t\tattunement : true,\r\n\t\taction : [[\"reaction\", \"Destructive Fist Attack\"]],\r\n\t}\r\n\tMagicItemsList[\"luba's tarokka of souls\"] = { // contains contributions by lizrdgizrd\r\n\t\tname : \"Luba's Tarokka of Souls\",\r\n\t\tsource : [[\"T\", 129]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tdescription : \"When holding this deck, I can use an action to cast one of the spells from it. I automatically succeed on Constitution saving throws for divination spells. I can draw a card from the deck to add advantage or disadvantage for a creature I can see within 15 feet.\",\r\n\t\tdescriptionFull : \"  Not all lingering spirits are tragic souls, lost on their way to the hereafter. Some languish as prisoners, souls so wicked mortals dare not free them upon an unsuspecting afterlife.\\n  Created by a figure of Vistani legend, Luba's Tarokka of Souls shaped the destiny of countless heroes. The prophecies of this deck of cards also revealed great evils and guided its creator into the path of nefarious forces. Untold times the deck's creator, Mother Luba, narrowly escaped doom, spared only by her keen insigths. But even for her, not all wickedness could be escaped. In the most dire cases, Mother Luba managed to ensnare beings of pure evil amid the strands of fate, imprisoning them within her tarroka deck. There these foul spirits dwell still, trapped within a nether realm hidden amid shuffling cards, waiting for fate to turn foul--as it inevitably will.\\n  Like all tarokka decks, the Tarokka of Souls is a lavishly illustrated collection of fifty-four cards, comprising the fourteen cards of the high deck and forty other cards divided into four suits: coins, glyphs, stars, and swords.\\n  Random Properties. The artifact has the following random properties, which you can determine by rolling on the tables in the \\\"Artifacts\\\" section of the Dungeon Master's Guide:\\n  2 minor detrimental properties\\n  2 minor beneficial properties\\n  Spells. While holding the deck, you can use an action to cast one of the following spells (save DC 18) from it: comprehend languages, detect evil and good, detect magic, detect poison and disease, locate object, or scrying. Once you use the deck to cast a spell, you can't cast that spell again from it until the next dawn.\\n Enduring Vision. While holding the deck, you automatically succeed on Constitution saving throws made to maintain your concentration on divination spells.\\n\\nSee the Notes section for further information.\",\r\n\t\ttoNotesPage : [{\r\n\t\t\tname : \"Luba's Tarokka of Souls\",\r\n\t\t\tnote : [\r\n\t\t\t\t\"\\nTwist of Fate\",\r\n\t\t\t\t\"As an action, you can draw a card from the deck and twist the fortune of another creature you can see within 15 feet of you. Choose one of the following effects:\\n\",\r\n\t\t\t\t\"Weal. The creature has advantage on attack rolls, ability checks, and saving throws for the next hour.\",\r\n\t\t\t\t\"Woe. The creature has disadvantage on attack rolls, ability checks, and saving throws for the next hour.\",\r\n\t\t\t\t\"\\n  The deck can be used in this way twice, and you regain all expended uses at the next dawn.\",\r\n\t\t\t\t\"\\nPrisoners of Fate\",\r\n\t\t\t\t\"Whenever you use the Twist of Fate property, there is a chance that one of the souls trapped in the deck escapes. Roll d100 and consult the Souls of the Tarokka table. If you roll one of the high cards, the soul associated with it escapes. You can find its statistics in the Monster Manual. If you roll a soul that has already escaped, roll again.\",\r\n\t\t\t\t\"\\nSouls of the Tarokka\",\r\n\t\t\t\t\"d100\\tCard\\t\\tSoul\",\r\n\t\t\t\t\"  1\\tArtifact\\t\\tFlameskull\",\r\n\t\t\t\t\"  2\\tBeast\\t\\tWraith\",\r\n\t\t\t\t\"  3\\tBroken One\\tBanshee\",\r\n\t\t\t\t\"  4\\tDarklord\\t\\tVampire\",\r\n\t\t\t\t\"  5\\tDonjon\\t\\tMummy\",\r\n\t\t\t\t\"  6\\tExecutioner\\t\\tDeath knight\",\r\n\t\t\t\t\"  7\\tGhost\\t\\tGhost\",\r\n\t\t\t\t\"  8\\tHorseman\\t\\tMummy lord\",\r\n\t\t\t\t\"  9\\tInnocent\\t\\tGhost\",\r\n\t\t\t\t\" 10\\tMarionette\\t\\tMummy\",\r\n\t\t\t\t\" 11\\tMists\\t\\tWraith\",\r\n\t\t\t\t\" 12\\tRaven\\t\\tVampire spawn\",\r\n\t\t\t\t\" 13\\tSeer\\t\\tVampire\",\r\n\t\t\t\t\" 14\\tTempter\\t\\tVampire spawn\",\r\n\t\t\t\t\"15-00\\t--\\t\\t--\",\r\n\t\t\t\t\"\\n  The released soul appears at a random location within 10d10 miles of you and terrorizes the living. Until the released soul is destroyed, it gains the benefit of a weal from the deck's Twist of Fate property, and both you and the original target of Twist of Fate suffer the effect of Woe.\",\r\n\t\t\t\t\"\\nShuffling Fate\",\r\n\t\t\t\t\"If you go 7 days without using the Twist of Fate property, your attunement to Luba's Tarroka of Souls ends, and you can't attune to it again until after another creature uses Twist of Fate on you.\",\r\n\t\t\t\t\"\\nDestroying the Deck\",\r\n\t\t\t\t\"Luba's Tarokka of Souls can be destroyed only if all fourteen souls within are released and destroyed. This reveals a fifteenth soul, a lich, that inhabits the Nether card, which appears only when the fourteen souls are defeated. If this ancient entity is destroyed, the Nether card vanishes and the deck becomes a normal tarokka deck, with no special properties, but it inlcudes a new card of the DM's design.\"\r\n\t\t\t]\r\n\t\t}],\r\n\t\tattunement : true,\r\n\t\tusages : 1,\r\n\t\trecovery : \"dawn\",\r\n\t\taction : [[\"action\", \"Cast Spell from Tarokka\"]],\r\n\t\textraLimitedFeatures : [{\r\n\t\t\tname : \"Twist of Fate\",\r\n\t\t\tusages : \"2\",\r\n\t\t\trecovery : \"dawn\"\r\n\t\t}],\r\n\t\tspellcastingBonus : [{\r\n\t\t\tname : \"Comprehend Languages\",\r\n\t\t\tspells : [\"comprehend languages\"],\r\n\t\t\tselection : [\"comprehend languages\"],\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Detect Evil and Good\",\r\n\t\t\tspells : [\"detect evil and good\"],\r\n\t\t\tselection : [\"detect evil and good\"],\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Detect Magic\",\r\n\t\t\tspells : [\"detect magic\"],\r\n\t\t\tselection : [\"detect magic\"],\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Detect Poison and Disease\",\r\n\t\t\tspells : [\"detect poison and disease\"],\r\n\t\t\tselection : [\"detect poison and disease\"],\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Locate Object\",\r\n\t\t\tspells : [\"locate object\"],\r\n\t\t\tselection : [\"locate object\"],\r\n\t\t\tfixedDC : 18,\r\n\t\t},{\r\n\t\t\tname : \"Scrying\",\r\n\t\t\tspells : [\"scrying\"],\r\n\t\t\tselection : [\"scrying\"],\r\n\t\t\tfixedDC : 18,\r\n\t\t}]\r\n\t}\r\n\tMagicItemsList[\"teeth of dahlver-nar\"] = { // contains contributions by lizrdgizrd\r\n\t\tname : \"Teeth of Dahlver-nar\",\r\n\t\tsource : [[\"T\", 135]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tallowduplicates : true,\r\n\t\tdescription : \"I can sow these teeth to summon creatures specific to each tooth that remain for 10 mintues. I can implant these teeth into my own mouth and gain effects specific to each tooth. I can only have 1 + my Charisma modifier teeth implanted at a time.\",\r\n\t\tdescriptionFull : \"  The Teeth of Dahlver-Nar are stories given form. They are a collection of teeth, each suggestive of wildly different origins and made from various materials. The collection rests within a leather pouch, stitched with images of heroes and whimsical creatures. Where the teeth fall, they bring legends to life.\\n  Using the Teeth. While you are holding the pouch, you can use an action to draw one tooth, Roll on the Teeth of Dahlver-Nar table to determine which tooth you draw, and you can either sow the tooth or implant it (both of which are described later).\\n  If you don't sow or implant the tooth, roll a die at the end of your turn. On an even number, the tooth vanishes, and creatures appear as if you sowed the tooth, but they are hostile to you and your allies. On an odd number, the tooth replaces one of your teeth as if you implanted it (potentially replacing another implanted tooth, see below).\\n  Each tooth can only be used once. Track which teeth have been used. If a tooth's result is rolled after it's been used, you draw the next lowest unused tooth on the table.\\n  Sowing Teeth. To sow the tooth, you place it on the ground in an unoccupied space within your reach, or you throw it into an unoccupied space within 10 feet of you in a body of water that is at least 50 feet wide and 50 feet long. Upon doing so, the tooth burrows into the ground and vanishes, leaving no hole behind, or it vanishes into the water. The creatures noted in the Creatures Summoned column appear in an unoccupied space as close to where the tooth was sown as possible. The creatures are allies to you, speak all languages you speak, and linger for 10 minutes before disappearing, unless otherwise noted.\\n\\nSee Page 3 Notes section for more information.\",\r\n\t\tchoices : [\"pouch of teeth (add first)\", \"d20 1\", \"d20 2\", \"d20 3\", \"d20 4\", \"d20 5\", \"d20 6\", \"d20 7\", \"d20 8\", \"d20 9\", \"d20 10\", \"d20 11\", \"d20 12\", \"d20 13\", \"d20 14\", \"d20 15\", \"d20 16\", \"d20 17\", \"d20 18\", \"d20 19\", \"d20 20\"],\r\n\t\t\"pouch of teeth (add first)\" : {\r\n\t\t\tname : \"Pouch for Teeth of Dahlver-Nar\",\r\n\t\t\tdescription : \"I can sow these teeth to summon creatures specific to each tooth that remain for 10 mintues. I can implant these teeth into my own mouth and gain effects specific to each tooth. I can only have 1 + my Charisma modifier teeth implanted at a time.\",\r\n\t\t\tattunement : true,\r\n\t\t\ttoNotesPage : [{\r\n\t\t\t\tname : \"Teeth of Dahlver-Nar\",\r\n\t\t\t\tpage3notes : true,\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"\\nImplanting Teeth.\",\r\n\t\t\t\t\t\"  To implant the tooth, you place it in your mouth, whereupon one of your own teeth falls out, and the drawn tooth takes its place, resizing to fit in your mouth. Once the tooth is implanted, you gain the effect noted in the Implanted Effect column. The tooth can't be removed while you are attuned to the teeth, and you can't voluntarily end your attunement to them. If removed after your death, the tooth vanishes. You can have a maximum number of the teeth are implanted at one time equal to 1 + your Constitution modifier (mimimum of 2 teeth total). If you try to implant more teeth, the newly implanted tooth replaces one of the previous teeth, determined randomly. The replaced tooth vanishes, and you lose the implanted effect.\",\r\n\t\t\t\t\t\"\\nRecovering Teeth.\",\r\n\t\t\t\t\t\"  Once all the teeth have vanished, their pouch also vanishes. The pouch with all the teeth then appears in a random destination, which could be on a different world of the Material Plane.\",\r\n\t\t\t\t\t\"\\nDestroying the Teeth.\",\r\n\t\t\t\t\t\"  Each tooth must be destroyed individually by sowing it in the area where the tooth's story originated, with the intention to destroy it. When planted in this way, creatures summoned are not friendly to you and do not vanish. Some of the creatures summoned merely head off in search of home, while others act as their tales dictate. In either case, the tooth is gone forever.\",\r\n\t\t\t\t\t\"\\nSee extra Notes page for Teeth of Dahlver-Nar table\",\r\n\t\t\t\t\t\"\\nTo implant a tooth, add another instance of the Teeth of Dahlver-Nar and select the tooth rolled. If you are running out of space for magic items, move one (or more) to the overflow page and then use the Set Pages Layout function to show the overflow page.\"\r\n\t\t\t\t]},{\r\n\t\t\t\tname : \"Teeth of Dahlver-Nar table\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"1d20\\tTale and Tooth\\t\\tCreatures Summoned\\n Implanted Effect\",\r\n\t\t\t\t\t\" 1\\tThe Staring Cats of Uldun-dar\\t  9 cats\\n\\t(ivory cat molar)\\nThe tooth has 8 charges. As an action, you can expend 1 charge to cast the revivify spell from the tooth. If you are dead at the start of your turn, the tooth expends 1 charge and casts revivify ton you.\",\r\n\t\t\t\t\t\" 2\\tDuggle's Surprising Day\\t  1 commoner\\n\\t(human molar)\\nWhen you finish a long rest, the tooth casts sanctuary (DC 18) on you, and the spell lasts for 24 hours or until you break it.\",\r\n\t\t\t\t\t\" 3\\tThe Golden Age of Dhakaan\\t 10 goblins\\n\\t(golden goblin bicuspid)\\t  1 goblin boss\\n When you are hit by an attack and an ally is within 5 feet of you, you can use your reaction to cause them to be hit instead. You can't use this reaction again until you finish a short or long rest.\",\r\n\t\t\t\t\t\" 4\\tThe Mill Road Murders\\t\\t 3 green hags\\n\\t(halfling canine)\\t\\t in a coven\\n When you damage a target that hasn't taken a turn in this combat, the target takes an extra 3d10 slashing damage from ghostly blades.\",\r\n\t\t\t\t\t\" 5\\tDooms of the Malpheggi\\t 1 lizardfolk queen\\n\\t(emerald lizardfolk fang)\\t 4 lizardfolk\\n You gain reptilian scales, granting you a +2 bonus to your AC. Additionally, when you finish a long rest, you must succeed on a DC 15 Constitution saving throw or gain 1 level of exhaustion.\",\r\n\t\t\t\t\t\" 6\\tThe Stable Hand's Secret\\t 2 incubi\\n\\t(sweet-tasting human canine)\\n When you make a Charisma check against a humanoid, you can roll a d10 and add the number rolled as a bonus to the result. The creature then becomes hostile to you at the next dawn.\",\r\n\t\t\t\t\t\" 7\\tThe Donkey's Dream\\t\\t 1 unicorn\\n\\t(rainbow-colored donkey molar)\\n The tooth has 3 charges. As an action, you can expend 1 charge to touch a creature. The target regains 2d8 + 2 hit points, and all diseases and poisons affecting it are removed. When you use this actio, a shimmering image of a unicorn's horn appears until the end of your turn, sprouting from your forehead. The tooth regains all expended charges daily at dawn. You gain the following flaw: \\\"When I see your wickedness in action, I must oppose it.\\\"\",\r\n\t\t\t\t\t\" 8\\tBeyond the Rock of Bral\\t 2 mind flayers\\n\\t(Silver mind flayer tooth)\\n You gain telepathy out to 120 feet as described in the Monster Manual, and you can cast the detect thoughts spell at will, requiring no components. You also have disadvantage on Wisdom (Insight) and Wisdom (Perception) checks from constant whispers of memories and nearby minds.\",\r\n\t\t\t\t\t\" 9\\tThe Disappearances of Half\\t 4 giant toads\\n\\tHollow (vomerine tooth of a\\n\\tLarge toad)\\n Your long jump is up to 30 feet and your high jump is up to 15 feet, with or without a running start.\",\r\n\t\t\t\t\t\"10\\tLegendry of Phantoms and\\t 1 giant octopus,\\n\\tGhosts (obsidian human molar)\\t 1 mage, 1 specter\\n As an action, you can use the tooth to cast the Evard's black tentacles spell (DC 18). Once this property is used, it can't be used again until the next dawn.\",\r\n\t\t\t\t\t\"11\\tThe Thousand Deaths of Jander\\t 1 vampire\\n\\tSunstar (yellowed vampire fang)\\n You can make a bite attack as an unarmed strike. On a hit, it deals 1d6 piercing damage plus 3d6 necrotic damage. You regain a number of hit points equal to the necrotic damage dealt. While you are in sunlight, you can't regain hit points.\",\r\n\t\t\t\t\t\"12\\tNightmares of Kaggash\\t 1 beholder\\n\\t(twisted beholder tooth)\\n As an action, you can cast the eyebite spell from the tooth. Once you use this action, it can't be used again until the next dawn. Whenever you finish a long rest, roll a d20. On a 20, an aberation chosen by the DM appears within 90 feet of you and attacks.\",\r\n\t\t\t\t]},{\r\n\t\t\t\tname : \"Teeth of Dahlver-Nar table (cont)\",\r\n\t\t\t\tnote : [\r\n\t\t\t\t\t\"13\\tThree Bridges to the Sky\\t 3 oni\\n\\t(lapis lazuli oni tooth)\\n You gain a flying speed of 30 feet, and you can use the tooth to cast the detect magic spell at will. While you are attuned to fewer than 3 magic items, you gain 1 level of exhaustion that can't removed until you are attuned to 3 or more magic items.\",\r\n\t\t\t\t\t\"14\\tThe Claws of Dragotha\\t\\t 1 adult red dracolich\\n\\t(broken translucent fang)\\n You can use the tooth to cast the create undead spell. Once this property is used, it can't be used again until the next dawn. Each time you create an undead creature using the tooth, a skeleton, zombie, or ghoul also appears at a random location within 5 miles of you, searching for the living to kill. A humanoid killed by these undead rises as the same type of undead at the next midnight.\",\r\n\t\t\t\t\t\"15\\tAshes of the Ages and Eternal\\t 1 dao, 1 djinni\\n\\tFire (jade humanoid bicuspid)\\t 1 efreeti, 1 marid\\n You can use the tooth to cast counterspell at 9th level. Once you use this property, it can't be used again until the next dawn. Whenever you finish a long rest, your hit point maximum is reduced by d10. If this reduces your hit point maximum to 0, you die.\",\r\n\t\t\t\t\t\"16\\tDaughters of Bel (green\\t\\t 1 pit fiend\\n\\tsteel pit fiend fang)\\n You can use the tooth to cast dominate monster (DC 18). Once you use this property, it can't be used again until the next dawn. You smell strongly of burning sulfur.\",\r\n\t\t\t\t\t\"17\\tWhy the Sky Screams\\t\\t 1 ancient blue dragon\\n\\t(blue dragon fang)\\n You gain immunity to lightning damage and vulnerability to thunder damage.\",\r\n\t\t\t\t\t\"18\\tThe Last Tarrasque (jagged\\t 1 tarrasque (ignores you and\\n\\tsiiver of tarrasque tooth)\\t your commands; appears for\\n\\t\\t\\t\\t 1d4 rounds then vanishes)\\n You deal double damage to objects and structures. If you take 20 or more damage in one turn, you must succeed on a DC18 Wisdom saving throw or spend your next turn in a murderous fury. During this rage, you must use your action to make an unarmed strike against a creature that damaged you, or a random creature you can see if you weren't damaged by a creature, moving as close as you can to the target if necessary.\",\r\n\t\t\t\t\t\"19\\tIncendax's Tooth (ruby-veined\\t 1 ancient red dragon\\n\\tred dragon fang)\\n You gain immunity to fire damage, and as an action, you can exhale fire in a 90-foot cone. Each creature in that area must make a DC 24 Dexterity saving throw, taking 26d6 fire damage on a failed save, or half as much damage on a successful one. After using the breath weapon, you gain 2 levels of exhaustion.\",\r\n\t\t\t\t\t\"20\\tDalver-Nar's Tooth\\t\\t 1 priest\\n\\t(dusty human molar)\\n As an action you can call on a divine force to come to your aid. Describe the assistance you seek, and the DM decides the nature of the intervention; the effect of any cleric spell would be appropriate. Once this property is used, it can't be used again for 7 days.\"\r\n\t\t\t\t]\r\n\t\t\t}],\r\n\t\t},\r\n\t\t\"d20 1\" : {\r\n\t\t\tname : \"Implanted ivory cat molar\",\r\n\t\t\tdescription : \"I have implanted the ivory cat molar from the Teeth of Dahlver-Nar. The tooth has 8 charges that I can use to cast revivify. If I am dead at the start of my turn the tooth expends 1 charge and casts revivify on me.\",\r\n\t\t\tdescriptionFull : \"The tooth has 8 charges. As an action, you can expend 1 charge to cast the revivify spell from the tooth. If you are dead at the start of your turn, the tooth expends 1 charge and casts revivify ton you.\",\r\n\t\t\tusages : 8,\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 1\",\r\n\t\t\t\tspells : [\"revivify\"],\r\n\t\t\t\tselection : [\"revivify\"]\r\n\t\t\t}],\r\n\t\t\tattunement : false\r\n\t\t},\r\n\t\t\"d20 2\" : {\r\n\t\t\tname : \"Implanted human molar\",\r\n\t\t\tdescription : \"I have implanted the human molar from the Teeth of Dahlver-Nar. When I finish a long rest, the tooth casts sanctuary (DC18) on me, and it last for 24 hours or until I break it.\",\r\n\t\t\tdescriptionFull : \"When you finish a long rest, the tooth casts sanctuary (DC 18) on you, and the spell lasts for 24 hours or until you break it.\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"long rest\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 2\",\r\n\t\t\t\tspells : [\"sanctuary\"],\r\n\t\t\t\tselection : [\"sanctuary\"],\r\n\t\t\t\tfixedDC : 18\r\n\t\t\t}],\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 136]]\r\n\t\t},\r\n\t\t\"d20 3\" : {\r\n\t\t\tname : \"Implanted golden goblin bicuspid\",\r\n\t\t\tdescription : \"I have implanted the golden goblin bicuspid from the Teeth of Dahlver-Nar. When I am hit by an attack I can use my reaction to cause an ally within 5 feet of me to be hit instead. I can use this again after a short or long rest.\",\r\n\t\t\tdescriptionFull : \"When you are hit by an attack and an ally is within 5 feet of you, you can use your reaction to cause them to be hit instead. You can't use this reaction again until you finish a short or long rest.\",\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"short/long rest\",\r\n\t\t\taction : [[\"reaction\", \"Redirect Attack to Ally\"]],\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 136]]\r\n\t\t},\r\n\t\t\"d20 4\" : {\r\n\t\t\tname : \"Implanted halfling canine\",\r\n\t\t\tdescription : \"I have implanted the halfling canine from the Teeth of Dahlver-Nar. When I damage a target that hasn't taken a turn in this combat, the target takes an extra 3d10 slashing damage.\",\r\n\t\t\tdescriptionFull : \"When you damage a target that hasn't taken a turn in this combat, the target takes an extra 3d10 slashing damage from ghostly blades.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 136]]\r\n\t\t},\r\n\t\t\"d20 5\" : {\r\n\t\t\tname : \"Implanted emerald lizardfolk fang\",\r\n\t\t\tdescription : \"I have implanted the emerald lizardfolk fang from the Teeth of Dahlver-Nar. I gain reptilian scales that give me a +2 to my AC. When I finish a long rest I must succeed on a DC 15 Constitution save or gain 1 level of exhaustion.\",\r\n\t\t\tdescriptionFull : \"You gain reptilian scales, granting you a +2 bonus to your AC. Additionally, when you finish a long rest, you must succeed on a DC 15 Constitution saving throw or gain 1 level of exhaustion.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 136]],\r\n\t\t\textraAC : [{\r\n\t\t\t\tmod : 2,\r\n\t\t\t\tname : \"Teeth of Dahlver-Nar\",\r\n\t\t\t\ttext : \"I gain reptilian scales and +2 to my AC.\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 6\" : {\r\n\t\t\tname : \"Implanted sweet-tasting human canine\",\r\n\t\t\tdescription : \"I have implanted the sweet-tasting human canine from the Teeth of Dahlver-Nar. When I make a Charisma check against a humanoid, I can roll a d10 and add the result as a bonus. The creature becomes hostile to me at dawn.\",\r\n\t\t\tdescriptionFull : \"When you make a Charisma check against a humanoid, you can roll a d10 and add the number rolled as a bonus to the result. The creature then becomes hostile to you at the next dawn.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 136]]\r\n\t\t},\r\n\t\t\"d20 7\" : {\r\n\t\t\tname : \"Implanted rainbow-colored donkey molar\",\r\n\t\t\tdescription : \"I have implanted the rainbow-colored donkey molar from the Teeth of Dahlver-Nar. As an action, I can expend 1 charge to touch a creature and give them 2d8 + 2 hit points and remove all diseases and poisons affecting it. I then have a shimmering unicorn horn until the end of my turn.\",\r\n\t\t\tdescriptionFull : \"The tooth has 3 charges. As an action, you can expend 1 charge to touch a creature. The target regains 2d8 + 2 hit points, and all diseases and poisons affecting it are removed. When you use this action, a shimmering image of a unicorn's horn appears until the end of your turn, sprouting from your forehead. The tooth regains all expended charges daily at dawn. You gain the following flaw: \\\"When I see wickedness in action, I must oppose it.\\\"\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 136]],\r\n\t\t\taction : [[\"action\", \"Add Temp HP & Cure\"]],\r\n\t\t\tusages : 3,\r\n\t\t\trecovery : \"dawn\"\r\n\t\t},\r\n\t\t\"d20 8\" : {\r\n\t\t\tname : \"Implanted silver mind flayer tooth\",\r\n\t\t\tdescription : \"I have implanted the silver mind flayer tooth from the Teeth of Dahlver-Nar. I gain telepathy out to 120 ft and can cast the detect thoughts spell at will. I have disadvantage on Wisdom (Insight) and Wisdom (Perception) checks from constant whispers of memories and nearby minds.\",\r\n\t\t\tdescriptionFull : \"You gain telepathy out to 120 ft as described in the Monster Manual, and you can cast the detect thoughts spell at will, requiring no components. You also have disadvantage on Wisdom (Insight) and Wisdom (Perception) checks from constant whispers of memories and nearby minds.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 136]],\r\n\t\t\tvision : [[\"telepathy\", 120]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Detect Thoughts\",\r\n\t\t\t\tspells : [\"detect thoughts\"],\r\n\t\t\t\tselection : [\"detect thoughts\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 9\" : {\r\n\t\t\tname : \"Implanted vomerine tooth of a Large toad\",\r\n\t\t\tdescription : \"I have implanted the vomerine tooth of a Large toad from the Teeth of Dahlver-Nar. My long jump is up to 30 feet and my high jump is up to 15 feet with or without a running start.\",\r\n\t\t\tdescriptionFull : \"Your long jump is up to 30 feet and your high jump is up to 15 feet with or without a running start.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]]\r\n\t\t},\r\n\t\t\"d20 10\" : {\r\n\t\t\tname : \"Implanted obsidian human molar\",\r\n\t\t\tdescription : \"I have implanted the obsidian human molar from the Teeth of Dahlver-Nar. As an action, I can use the tooth to cast Evard's black tentacles spell (DC 18). I can't use it again until the next dawn.\",\r\n\t\t\tdescriptionFull : \"As an action, you can use the tooth to cast Evard's black tentacles spell (DC 18). Once this property is uesd, it can't be used again until the next dawn.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\",\r\n\t\t\taction : [[\"action\", \"Cast Evard's black tentacles\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 10\",\r\n\t\t\t\tspells : [\"evard's black tentacles\"],\r\n\t\t\t\tselection : [\"evard's black tentacles\"],\r\n\t\t\t\tfixedDC : 18,\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 11\" : {\r\n\t\t\tname : \"Implanted yellowed vampire fang\",\r\n\t\t\tdescription : \"I have implanted the yellowed vampire fang from the Teeth of Dahlver-Nar. I can make a bite attack as an unarmed strike. On a hit I deal 1d6 piercing damage plus 3d6 necrotic damage. I regain hit points equal to the necrotic damage dealt. While in sunlight, I can't regain hit points.\",\r\n\t\t\tdescriptionFull : \"You can make a bite attack as an unarmed strike. On a hit, it deals 1d6 piercing damage plus 3d6 necrotic damage. You regain a number of hit points equal to the necrotic damage dealt. While you are in sunlight, you can't regain hit points.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Bite\",\r\n\t\t\t\tsource : [[\"T\", 137]],\r\n\t\t\t\tregExpSearch : /^(?=.*bite).*$/i,\r\n\t\t\t\tdescription : \"additional 3d6 necrotic damage, necrotic damage regained in hit points\",\r\n\t\t\t\tbaseWeapon : \"unarmed strike\",\r\n\t\t\t\tselectNow : true\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 12\" : {\r\n\t\t\tname : \"Implanted twisted beholder tooth\",\r\n\t\t\tdescription : \"I have implanted the twisted beholder tooth from the Teeth of Dahlver-Nar. As an action, once per day, I can cast the eyebite spell. When I finish a long rest, roll a d20 and on a 20, an aberration the DM chooses appears within 30 feet of me and attacks.\",\r\n\t\t\tdescriptionFull : \"As an action, you can cast the eyebite spell from the tooth. Once you use this action, you can't use it again until the next dawn. Whenever you finish a long rest, roll a d20. On a 20, an aberration chosen by the DM appears within 30 feet of you and attacks.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\",\r\n\t\t\taction : [[\"action\", \"Cast eyebite\"]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 12\",\r\n\t\t\t\tspells : [\"eyebite\"],\r\n\t\t\t\tselection : [\"eyebite\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 13\" : {\r\n\t\t\tname : \"Implanted lapis lazuli oni fang\",\r\n\t\t\tdescription : \"I have implanted the lapis lazuli oni fang from the Teeth of Dahlver-Nar. I gain a flying speed of 30 feet, and I can cast detect magic at will. While I am attuned to fewer than 3 magic items, I gain 1 level of exhaustion that can't be removed until I have attuned 3 items.\",\r\n\t\t\tdescriptionFull : \"You gain a flying speed of 30 feet, and you can use the tooth to cast the detect magic spell at will. While you are attuned to fewer than 3 magic items, you gain 1 level of exhaustion that can't be removed until you are attuned to 3 or more magic items.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 13\",\r\n\t\t\t\tspells : [\"detect magic\"],\r\n\t\t\t\tselection : [\"detect magic\"],\r\n\t\t\t\tfirstCol : \"atwill\"\r\n\t\t\t}],\r\n\t\t\tspeed : {\r\n\t\t\t\tfly : {spd : 30, enc : 0}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"d20 14\" : {\r\n\t\t\tname : \"Implanted broken translucent fang\",\r\n\t\t\tdescription : \"I have implanted the broken translucent fang from the Teeth of Dahlver-Nar. Once per day, I can use the tooth to cast create undead. When I create an undead creature, a skeleton, zombie or ghoul also appears within 5 miles of me, searching for the living to kill.\",\r\n\t\t\tdescriptionFull : \"You can use the tooth to cast the create undead spell. Once this property is used, it can't be used again until the next dawn. Each time you create an undead creature using the tooth, a skeleton, zombie or ghoul also appears at a random location within 5 miles of you, searching for the living to kill. A humanoid killed by these undead rises as the same type of undead at the next midnight.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 14\",\r\n\t\t\t\tspells : [\"create undead\"],\r\n\t\t\t\tselection : [\"create undead\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 15\" : {\r\n\t\t\tname : \"Implanted jade humanoid bicuspid\",\r\n\t\t\tdescription : \"I have implanted the jade humanoid bicuspid from the Teeth of Dahlver-Nar. Once per day, I can use the tooth to cast counterspell at 9th level. Whenever I finish a long rest, if I haven't used the tooth to cast counterspell, my hit point maximum is reduced by 2d10.\",\r\n\t\t\tdescriptionFull : \"You can use the tooth to cast counterspell at 9th level. Once you use this property, it can't be used again until the next dawn. Whenever you finish a long rest, if you haven't used the tooth to counter a spell since your last long rest, your hit point maximum is reduced by 2d10. If this reduces your hit point maximum to 0, you die.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 15\",\r\n\t\t\t\tspells : [\"counterspell\"],\r\n\t\t\t\tselection : [\"counterspell\"]\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 16\" : {\r\n\t\t\tname : \"Implanted green steel pit fiend fang\",\r\n\t\t\tdescription : \"I have implanted the green steel pit fiend fang from the Teeth of Dahlver-Nar. Once per day, I can use the tooth to cast dominate monster (DC 18). I smell strongly of burning sulfur.\",\r\n\t\t\tdescriptionFull : \"You can use the tooth to cast dominate monster (DC 18). Once you use this property, it can't be used again until the next dawn. You smell strongly of burning sulfur.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"dawn\",\r\n\t\t\tspellcastingBonus : [{\r\n\t\t\t\tname : \"Implanted Tooth d20 = 16\",\r\n\t\t\t\tspells : [\"dominate monster\"],\r\n\t\t\t\tselection : [\"dominate monster\"],\r\n\t\t\t\tfixedDC : 18\r\n\t\t\t}]\r\n\t\t},\r\n\t\t\"d20 17\" : {\r\n\t\t\tname : \"Implanted blue dragon fang\",\r\n\t\t\tdescription : \"I have implanted the blue dragon fang from the Teeth of Dahlver-Nar. I gain immunity to lightning damage and vulnerability to thunder damage.\",\r\n\t\t\tdescriptionFull : \"You gain immunity to lightning damage and vulnerability to thunder damage.\",\r\n\t\t\tattunement : false,\r\n\t\t\tsource : [[\"T\", 137]],\r\n\t\t\tsavetxt : {\r\n\t\t\t\timmune : [\"lightning\"],\r\n\t\t\t\ttext : [\"Vulnerable to Thunder damage\"]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"d20 18\" : {\r\n\t\t\tname : \"Implanted jagged sliver of tarrasque tooth\",\r\n\t\t\tdescription : \"I have implanted the jagged sliver of tarrasque tooth from the Teeth of Dahlver-Nar. I deal double damage to objects and structures. If I take 20 or more damage in one turn, I must succeed on a DC 18 Wisdom save or spend the next turn in a murderous rage.\",\r\n\t\t\tdescriptionFull : \"You deal double damage to objects and structures. If you take 20 or more damage in one turn, you must succeed on a DC 18 Wisdom saving throw or spend your next turn in a murderous fury. During this rage, you must use your action to make an unarmed strike against a creature that damaged you, or a random creature you can see if you weren't damaged by a creature, moving as close as you can to the target if necessary.\",\r\n\t\t\tattunement : false,\r\n\t\t},\r\n\t\t\"d20 19\" : {\r\n\t\t\tname : \"Implanted ruby-veined red dragon fang\",\r\n\t\t\tdescription : \"I have implanted the ruby-veined red dragon fang from the Teeth of Dahlver-Nar. I gain immunity to fire damage and I can exhale fire in a 90-foot cone. Creatures in my cone must make a DC 24 Dexterity save or take 26d6 fire damage or half on success.\",\r\n\t\t\tdescriptionFull : \"You gain immunity to fire damage, and as an action, you can exhale fire in a 90-foot cone. Each creature in that area must make a DC 24 Dexterity saving throw, taking 26d6 fire damage on a failed save, or half as much damage on a successful one. After using the breath weapon, you gain 2 levels of exhaustion.\",\r\n\t\t\tattunement : false,\r\n\t\t\taction : [[\"action\", \"Red Dragon fang (ToD-N)\"]],\r\n\t\t\tsavetxt : {\r\n\t\t\t\timmune : [\"fire\"]\r\n\t\t\t},\r\n\t\t\tweaponOptions : [{\r\n\t\t\t\tname : \"Red Dragon fang (ToD-N)\",\r\n\t\t\t\tsource : [[\"T\", 137]],\r\n\t\t\t\ttype : \"Natural\",\r\n\t\t\t\tability : 2,\r\n\t\t\t\tregExpSearch : /^(?=.*red)(?=.*dragon)(?=.*tod-n).*$/i,\r\n\t\t\t\tabilitytodamage : false,\r\n\t\t\t\tdamage : [26, 6, \"fire\"],\r\n\t\t\t\trange : \"90 foot cone\",\r\n\t\t\t\tdc : true,\r\n\t\t\t\tdescription : \"90 foot cone; Dexterity save DC 24, half damage on success\",\r\n\t\t\t\tselectNow : true\r\n\t\t\t}],\r\n\t\t\tcalcChanges : {\r\n\t\t\t\tatkAdd : [\r\n\t\t\t\t\tfunction (fields, v) {\r\n\t\t\t\t\t\tif (v.WeaponTextName == \"Red Dragon fang (ToD-N)\") {\r\n\t\t\t\t\t\t\tfields.To_Hit_Bonus = 'DC ' + (16 - What('Dex Mod'));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"d20 20\" : {\r\n\t\t\tname : \"Implanted dusty human molar\",\r\n\t\t\tdescription : \"I have implanted the dusty human molar from the Teeth of Dahlver-Nar. As an action, I can call on a divine force for aid. Once I use this property, I can't use it again for 7 days.\",\r\n\t\t\tdescriptionFull : \"As an action you can call on a divine force to come to your aid. Describe the assistance you seek, and the DM decides the nature of the intervention; the effect of any cleric spell would be appropriate. Once this property is used, it can't be used again for 7 days.\",\r\n\t\t\tattunement : false,\r\n\t\t\tusages : 1,\r\n\t\t\trecovery : \"7 days\"\r\n\t\t}\r\n\t}\r\n}\r\n{ // pub_20210921_WBtW\r\n\tMagicItemsList[\"iggwilv's cauldron\"] = {\r\n\t\tname : \"Iggwilv's Cauldron\",\r\n\t\tsource : [[\"WBtW\", 209]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tattunement : true,\r\n\t\tprerequisite : \"Requires attunement by a spellcaster\",\r\n\t\tprereqeval : function(v) { return v.isSpellcaster; },\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"Iggwilv crafted this wondrous cauldron with the help of her adoptive mother, the archfey Baba Yaga. The cauldron has two forms. Only Iggwilv or Baba Yaga can change the cauldron from one form to another (by using an action to touch it), which either can do without being attuned to the item. In its first form, the cauldron is made of solid gold and embossed on the outside with images of bare-branched trees, falling leaves, and broomsticks. In its second form, the cauldron is made of iron and embossed on the outside with images of bats, toads, cats, lizards, and snakes\\u2014eight of each animal. In either form, the cauldron is roughly 3 feet in diameter and has a 2-foot-wide mouth, a round lid with a molded handle at the top, and eight clawed feet for stability. The cauldron weighs 80 pounds when empty, and it can hold up to 100 gallons of liquid.\"+\r\n\t\t\"\\n   \" + toUni(\"Attunement\") + \". Any Humanoid creature that attunes to the cauldron must succeed on a DC 15 Constitution saving throw or be aged to the point of decrepitude. In this state, the creature's speed is halved, the range of its vision and hearing is reduced to 30 feet, and it has disadvantage on all ability checks, attack rolls, and saving throws. The creature will reach the end of its natural life span in 3d8 days. Only a wish spell or divine intervention can reverse this aging effect on the creature.\"+\r\n\t\t\"\\n   Three hags can attune to the cauldron simultaneously, provided they have formed a coven. If the coven disbands, the attunement ends for all three hags.\"+\r\n\t\t\"\\n   \" + toUni(\"Random Properties\") + \". Regardless of the form it takes, the cauldron has the following random properties:\"+\r\n\t\t\"\\n \\u2022 1 minor beneficial property (determined by rolling on the Minor Beneficial Properties table in the Dungeon Master's Guide)\"+\r\n\t\t\"\\n \\u2022 1 minor detrimental property (determined by rolling on the Minor Detrimental Properties table in the Dungeon Master's Guide)\"+\r\n\t\t\"\\n   \" + toUni(\"Gold Cauldron\") + \". The gold cauldron has the following properties:\"+\r\n\t\t\"\\n \\u2022 If water is poured into the cauldron and stirred for 1 minute, it transforms into a hearty, hot stew that provides one nourishing meal for up to four people per gallon of water used. The stew remains hot while in the cauldron, then cools naturally after it is removed. The outside of the cauldron remains safe to touch despite the heat of the stew.\"+\r\n\t\t\"\\n \\u2022 If wine is poured into the cauldron and stirred for 10 minutes, it transforms into a magical elixir that fortifies up to four people per gallon of wine used. Any creature that imbibes the elixir gains 10 temporary hit points. Any of the elixir that isn't consumed within 1 hour vanishes. Once used, this property of the cauldron can't be used again until the next dawn.\"+\r\n\t\t\"\\n \\u2022 When the cauldron is filled with 90 gallons of water mixed with 10 gallons of wine, it can be used as the focus for a scrying spell. When this spell is cast using the cauldron as its focus, the target of the spell fails its saving throw automatically, and the spell works even if its caster and the target are on different planes of existence. When the spell ends, all the liquid in the cauldron vanishes.\"+\r\n\t\t\"\\n \\u2022 Dipping the bristles of an ordinary broom into the water-filled cauldron transforms the broom into a broom of flying for 3 days. Once used, this property of the cauldron can't be used again until the next dawn.\"+\r\n\t\t\"\\n   \" + toUni(\"Iron Cauldron\") + \". The iron cauldron has the following properties:\"+\r\n\t\t\"\\n \\u2022 You can use an action to scream into the empty cauldron, which magically summons a swarm of bats that flies out of the cauldron and acts immediately after you in the initiative order. The swarm obeys your commands and disappears after 1 minute if it hasn't been destroyed by then. Once used, this property of the cauldron can't be used again until the next dawn.\"+\r\n\t\t\"\\n \\u2022 If at least 1 gallon of blood is poured into the cauldron and stirred for 1 minute, it turns into a cloud of harmless black smoke that erupts from the cauldron and dissipates quickly. At the same time, all Humanoid creatures within a certain radius of the cauldron fall unconscious for 1 hour, except those that are attuned to the cauldron or immune to being charmed. The radius of the effect is 100 feet per gallon of blood used. An unconscious creature awakens if it takes damage or if someone uses an action to shake or slap it. Once used, this property of the cauldron can't be used again until the next dawn.\"+\r\n\t\t\"\\n \\u2022 Tying a dead frog or toad to the end of an ordinary branch and dipping it in the water-filled cauldron transforms the branch into a wand of polymorph with 3 charges. This wand can't recharge and crumbles to ashes when its final charge is expended. Once used, this property of the cauldron can't be used again for 8 days.\"+\r\n\t\t\"\\n \\u2022 If you spend 1 minute touching the cauldron with a unicorn's horn while reciting the poem called \\\"The Witch Queen's Cauldron\\\" (see the accompanying sidebar), all creatures within 1,000 feet of the cauldron except those that are attuned to it become frozen in time. A time-frozen creature is incapacitated, can't move or speak, doesn't age, and is unaware of its surroundings or the passage of time. Moreover, it can't be moved, harmed in any way, or affected by any other magic. All other conditions and effects on the creature are suppressed until it is no longer frozen in time. Destroying the cauldron, sending it to another plane of existence, or touching it with a unicorn's horn for 1 minute while reciting \\\"The Witch Queen's Cauldron\\\" ends the time-freezing effect on all creatures. The effect also ends on any creature that comes into contact with an antimagic field or is touched by a unicorn's horn.\"+\r\n\t\t\"\\n   \" + toUni(\"Destroying the Cauldron\") + \". The cauldron is a Medium object with AC 19, 80 hit points, and immunity to damage from any source other than a flame tongue or frost brand weapon. Reducing the cauldron to 0 hit points with such a weapon shatters the cauldron into eight pieces of roughly equal size, whereupon all ongoing effects created by the cauldron end as it loses its magic.\"+\r\n\t\t\"\\n   The destruction of Iggwilv's Cauldron causes all hags in the multiverse to lose the Shared Spellcasting trait gained by being in a coven (see the \\\"Hag Covens\\\" sidebar in the Monster Manual).\"+\r\n\t\t\"\\n   \" + toUni(\"Reconstructing the Cauldron\") + \". If all eight pieces of the shattered cauldron are within 5 feet of one another, a wish spell can reassemble them, restoring the cauldron and all its properties. The cauldron's reconstruction also restores the Shared Spellcasting trait of hag covens throughout the multiverse.\"\r\n\t}\r\n}\r\n{ // pub_20230815_GotG\r\n\tMagicItemsList[\"adze of annam\"] = {\r\n\t\tname : \"Adze of Annam\",\r\n\t\tsource : [[\"GotG\", 110]],\r\n\t\ttype : \"weapon (greataxe)\",\r\n\t\trarity : \"artifact\",\r\n\t\tattunement : true,\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This massive adze is said to have been wielded by All-Father Annam, not as a weapon but as the tool he used to shape the various worlds of the Material Plane eons ago.\"+\r\n\t\t\"\\n   \" + toUni(\"Random Properties\") + \". The adze has the following random properties, determined by rolling on the appropriate table in the Dungeon Master's Guide:\"+\r\n\t\t\"\\n \\u2022 2 minor beneficial properties\"+\r\n\t\t\"\\n \\u2022 1 major beneficial property\"+\r\n\t\t\"\\n \\u2022 2 minor detrimental properties\"+\r\n\t\t\"\\n   \" + toUni(\"Magic Weapon\") + \". When a creature attunes to the adze, the artifact magically adjusts its size so that creature can wield it as a greataxe. The adze is a magic weapon that grants a +3 bonus to attack and damage rolls made with it. On a hit, the adze deals an additional 3d12 force damage. It also deals double damage to objects and structures.\"+\r\n\t\t\"\\n   \" + toUni(\"Divine Mattock\") + \". As an action, you can call upon the might of the All-Father and use the adze to cast move earth or fabricate. Once this property is used, it can't be used again until the next dawn.\",\r\n\t\tweight : 7\r\n\t}\r\n\tMagicItemsList[\"bigby's beneficent bracelet\"] = {\r\n\t\tname : \"Bigby's Beneficent Bracelet\",\r\n\t\tsource : [[\"GotG\", 111]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tattunement : true,\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This gorgeous jewelry piece, crafted by the wizard Bigby himself, consists of four gold rings attached via delicate chains to a wrist cuff studded with sapphires and diamonds.\"+\r\n\t\t\"\\n   \" + toUni(\"Random Properties\") + \". The bracelet has the following random properties, determined by rolling on the appropriate table in the Dungeon Master's Guide:\"+\r\n\t\t\"\\n \\u2022 1 minor beneficial properties\"+\r\n\t\t\"\\n \\u2022 1 major beneficial property\"+\r\n\t\t\"\\n \\u2022 1 minor detrimental properties\"+\r\n\t\t\"\\n   \" + toUni(\"Dexterous Fingers\") + \". While wearing the bracelet, you can cast mage hand.\"+\r\n\t\t\"\\n   \" + toUni(\"Force Sculpture\") + \". By focusing and channeling the bracelet's magic for 1 minute, you can create a spectral copy of a Large or smaller nonmagical object. The copy appears in an unoccupied space within 10 feet of you, and it is made of tangible but translucent force that mimics the size, weight, and other properties of the object it's copying. The copy must appear on a surface or liquid that can support it. Creatures can touch and interact with the copy as if it were a nonmagical object.\"+\r\n\t\t\"\\n   The copy is immune to all damage and can't be dispelled, but a disintegrate spell destroys it immediately. Otherwise, the copy disappears after 8 hours or when you dismiss it as an action.\"+\r\n\t\t\"\\n   The bracelet can create up to three copies and regains all expended uses at dawn.\"+\r\n\t\t\"\\n   \" + toUni(\"Helpful Hand\") + \". As an action, you can use the bracelet to cast Bigby's hand as a 9th-level spell (spell attack bonus +13). When you cast the spell this way, the spell doesn't require concentration. Once this property is used, it can't be used again until the next dawn.\"\r\n\t}\r\n\tMagicItemsList[\"helm of perfect potential\"] = {\r\n\t\tname : \"Helm of Perfect Potential\",\r\n\t\tsource : [[\"GotG\", 112]],\r\n\t\ttype : \"wondrous item\",\r\n\t\trarity : \"artifact\",\r\n\t\tattunement : true,\r\n\t\tnotLegalAL : true,\r\n\t\tdescription : \"\",\r\n\t\tdescriptionFull : \"This copper-hued helm contains a shard of the Elemental Chaos embedded in its forehead, surrounded by a motif of a rising sun. Legend says Annam fashioned this helm for his daughter Diancastra to hold the fragment of chaos she used to prove her worth to her father.\"+\r\n\t\t\"\\n   \" + toUni(\"Random Properties\") + \". The helm has the following random properties, determined by rolling on the appropriate table in the Dungeon Master's Guide:\"+\r\n\t\t\"\\n \\u2022 2 minor beneficial properties\"+\r\n\t\t\"\\n \\u2022 1 major beneficial property\"+\r\n\t\t\"\\n \\u2022 1 minor detrimental properties\"+\r\n\t\t\"\\n   \" + toUni(\"Master of Guile\") + \". While wearing the helm, you have advantage on Charisma (Deception) and Wisdom (Insight) checks.\"+\r\n\t\t\"\\n   \" + toUni(\"Arrow of Elemental Havoc\") + \". As a bonus action while wearing the helm, you can launch a bolt of searing elemental energy toward a creature you can see within 90 feet of yourself. The target must make a DC 20 Dexterity saving throw. On a failed save, the creature takes 4d6 acid, cold, fire, lightning, or thunder damage (your choice). On a successful save, the creature takes half as much damage.\"+\r\n\t\t\"\\n   \" + toUni(\"Spellcasting\") + \". The helm has 6 charges and regains 1d6 charges each dawn. As an action while wearing the helm, you can expend 1 or more of its charges to cast one of the following spells (save DC 20): elemental weapon (1 charge), call lightning (2 charges), wall of fire (3 charges), conjure elemental (4 charges), tsunami (5 charges).\"\r\n\t}\r\n}"
  },
  {
    "path": "gulpfile.js",
    "content": "/*jshint esversion: 6 */\n\nconst { series, parallel, src, dest } = require('gulp');\nconst fs      = require('fs');\nconst log     = require('fancy-log');\nconst concat  = require('gulp-concat');\nconst header  = require('gulp-header');\nconst rename  = require('gulp-rename');\nconst replace = require('gulp-replace');\nconst uglify  = require('gulp-uglify');\n\nconst stableVersion = '\"14.0.6-beta\"';\nconst stableMaxVers = '\"15.0.0\"';\nconst betaVersion   = '\"24.0.6-beta\"';\nconst betaMaxVers   = false;\nconst betaFolder    = \"/v24\";\nconst parentFolder  = \"WotC material\";\nconst hasBetaFolder = fs.existsSync(`${parentFolder}${betaFolder}`);\n\nfunction getTooOldCheck(requiredVersion, maxVersion) {\n\tif (!requiredVersion) return '';\n\tconst aVer  = requiredVersion.match(/\\d+/g);\n\tconst verNo = aVer[0] + aVer[1].padStart(3, '0') + aVer[2].padStart(3, '0');\n\tconst latest = !maxVersion ? 'the latest version' : `this required version or a later version (but lower than v${maxVersion.replace(/\"/g, '')})`;\n\treturn `if (sheetVersion < ${verNo}) { throw \"This add-on script was made for a newer version of the sheet (v${requiredVersion.replace(/\"/g, '')}). Please use ${latest} and try again.\\\\n\\\\nYou can get the different versions at www.flapkan.com.\\\\n\\\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };`;\n}\nfunction getTooNewCheck(requiredVersion, maxVersion) {\n\tif (!maxVersion) return '';\n\tconst aVer  = maxVersion.match(/\\d+/g);\n\tconst verNo = aVer[0] + aVer[1].padStart(3, '0') + aVer[2].padStart(3, '0');\n\treturn `if (sheetVersion >= ${verNo}) { throw \"This add-on script was made for a lower version of the sheet (one before v${maxVersion.replace(/\"/g, '')}). Please use the required version (v${requiredVersion.replace(/\"/g, '')}) or a later version and try again.\\\\n\\\\nYou can get the different versions at www.flapkan.com.\\\\n\\\\nFrom v24.0.0 onwards, the sheet uses the 2024 (5.5e) rules, while lower versions use the 5e (2014) rules.\"; };`;\n}\n\nfunction concatAndMin(glob, fileName, beta) {\n\tlog.info(`Minifying and concatenating type '${glob}' for ${beta ? `beta (${betaVersion})` : `stable (${stableVersion})`} version`);\n\tconst folder = `${parentFolder}${beta ? betaFolder : ''}`;\n\tconst requiredVersion = beta ? betaVersion : stableVersion;\n\tconst maxVersion = beta ? betaMaxVers : stableMaxVers;\n\tconst tooOldCheck = getTooOldCheck(requiredVersion, maxVersion);\n\tconst tooNewCheck = getTooNewCheck(requiredVersion, maxVersion);\n\treturn src([`${folder}/${glob}_*.js`, `!${folder}/${glob}_*_dupl.js`, `!${folder}/${glob}_*_wip.js`])\n\t\t.pipe(replace(/var iFileName ?= ?['\"](.*?)['\"];/g,\"// $1\"))\n\t\t.pipe(replace(/RequiredSheetVersion\\(.*?\\)[,;][\\r\\n]*/g, \"\"))\n\t\t.pipe(replace(/\\/\\/.*?dupl_start[\\s\\S]*?dupl_end.*?[\\r\\n]*/ig,\"\"))\n\t\t.pipe(concat(`${fileName}.js`, {newLine: '\\n'}))\n\t\t.pipe(header(`${tooOldCheck}\\n${tooNewCheck}\\nvar iFileName = \"${fileName}.js\";\\nRequiredSheetVersion(${requiredVersion}${maxVersion ? ', ' + maxVersion : ''});\\n\\n`))\n\t\t.pipe(dest(folder))\n\t\t.pipe(uglify())\n\t\t.pipe(replace(`${fileName}.js`, `${fileName}.min.js`))\n\t\t.pipe(rename({extname: '.min.js'}))\n\t\t.pipe(dest(folder));\n}\n\nfunction combine(minified, beta) {\n\tconst folder = `WotC material${beta ? betaFolder : ''}`;\n\tconst fileHead = 'all_WotC_';\n\tconst path = `${folder}/${fileHead}`;\n\tconst ext = minified ? '.min.js' : '.js';\n\tconst newLine = minified ? '' : '\\n';\n\tconst fileName = `${fileHead}pub+UA${ext}`;\n\tconst requiredVersion = beta ? betaVersion : stableVersion;\n\tconst maxVersion = beta ? betaMaxVers : stableMaxVers;\n\tconst tooOldCheck = getTooOldCheck(requiredVersion, maxVersion);\n\tconst tooNewCheck = getTooNewCheck(requiredVersion, maxVersion);\n\tconst replaceStartRx = minified ? \n\t\t/if ?\\(sheetVersion ?< ?\\d+\\.?\\d*e?\\d*\\)[ {]*?throw[\\s\\S]*?(var)|()RequiredSheetVersion\\(.*?\\)[,;]|()iFileName ?= ?['\"].*?['\"][,;]/g\n\t\t:\n\t\t/if ?\\(sheetVersion ?< ?\\d+\\.?\\d*e?\\d*\\)[ {]*?throw[\\s\\S]*?RequiredSheetVersion\\(.*?\\)[,;][\\r\\n]*/;\n\tconst replaceStartWith = minified ? '$1' : '';\n\tlet headerChecks = [tooOldCheck];\n\tif (tooNewCheck) headerChecks.push(tooNewCheck);\n\theaderChecks = headerChecks.concat([\n\t\t`var iFileName = \"${fileName}\";`,\n\t\t`RequiredSheetVersion(${requiredVersion}${maxVersion ? ', ' + maxVersion : ''});`,\n\t\t'', '',\n\t]);\n\treturn src([`${path}published${ext}`, `${path}unearthed_arcana${ext}`])\n\t\t.pipe(replace(replaceStartRx, replaceStartWith))\n\t\t.pipe(concat(fileName, {newLine}))\n\t\t.pipe(header(headerChecks.join(newLine)))\n\t\t.pipe(dest(folder));\n}\n\nconst combineUnminifiedBuilder = (beta) => {\n\tconst combineUnminified = () => {\n\t\tlog.info(`Combining Unminified Published and UA for ${beta ? `beta (${betaVersion})` : `stable (${stableVersion})`} version`);\n\t\treturn combine(false, beta);\n\t}\n\treturn combineUnminified;\n};\nconst combineMinifiedBuilder = (beta) => {\n\tconst combineMinified = () => {\n\t\tlog.info(`Combining Minified Published and UA for ${beta ? `beta (${betaVersion})` : `stable (${stableVersion})`} version`);\n\t\treturn combine(true, beta);\n\t}\n\treturn combineMinified;\n};\n\nconst combineAllBuilder = (beta) => {\n\tconst combineAll = parallel(combineUnminifiedBuilder(beta), combineMinifiedBuilder(beta));\n\treturn combineAll;\n};\n\nfunction concatAndMinPub() {\n\treturn concatAndMin(\"pub\", \"all_WotC_published\");\n}\n\nfunction concatAndMinUA() {\n\treturn concatAndMin(\"ua\", \"all_WotC_unearthed_arcana\");\n}\n\nconst combineStable = combineAllBuilder();\n\nfunction concatAndMinPubBeta() {\n\treturn concatAndMin(\"pub\", \"all_WotC_published\", true);\n}\n\nfunction concatAndMinUABeta() {\n\treturn concatAndMin(\"ua\", \"all_WotC_unearthed_arcana\", true);\n}\n\nconst minifyStable = series(\n\tparallel(\n\t\tconcatAndMinPub,\n\t\tconcatAndMinUA\n\t),\n\tcombineStable\n);\n\nlet minify;\n\nif ( hasBetaFolder ) {\n\n\tconst combineBeta = combineAllBuilder(true);\n\n\tconst minifyBeta = series(\n\t\tparallel(\n\t\t\tconcatAndMinPubBeta,\n\t\t\tconcatAndMinUABeta\n\t\t),\n\t\tcombineBeta\n\t);\n\n\texports.minifyBeta   = minifyBeta;\n\t\n\tminify = parallel(\n\t\tminifyStable,\n\t\tminifyBeta\n\t);\n\n} else {\n\n\tminify = minifyStable;\n\n}\n\nexports.minifyStable = minifyStable;\nexports.minify       = minify;\nexports.default      = minify;"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"imports-for-mpmb-s-character-sheet\",\n  \"version\": \"1.0.0\",\n  \"description\": \"This git repository holds different fan-created materials that can be used with the popular MorePurpleMoreBetter's Character Record Sheet. The repository for the sheet is [found here](https://github.com/morepurplemorebetter/MPMBs-Character-Record-Sheet).\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/safety-orange/Imports-for-MPMB-s-Character-Sheet.git\"\n  },\n  \"scripts\": {\n    \"minify\": \"gulp\",\n    \"minifyStable\": \"gulp minifyStable\",\n    \"minifyBeta\": \"gulp minifyBeta\"\n  },\n  \"private\": true,\n  \"author\": \"safety-orange\",\n  \"bugs\": {\n    \"url\": \"https://github.com/safety-orange/Imports-for-MPMB-s-Character-Sheet/issues\"\n  },\n  \"homepage\": \"https://github.com/safety-orange/Imports-for-MPMB-s-Character-Sheet#readme\",\n  \"devDependencies\": {\n    \"fancy-log\": \"^2.0.0\",\n    \"gulp\": \"^5.0.0\",\n    \"gulp-concat\": \"^2.6.1\",\n    \"gulp-header\": \"^2.0.9\",\n    \"gulp-rename\": \"^2.0.0\",\n    \"gulp-replace\": \"^1.1.4\",\n    \"gulp-uglify\": \"^3.0.2\"\n  }\n}\n"
  }
]